@master/css 2.0.0-beta.127 → 2.0.0-beta.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config/functions.js +1 -0
- package/dist/cjs/config/index.js +1 -1
- package/dist/cjs/config/rules.js +1 -1
- package/dist/cjs/css.js +1 -1
- package/dist/cjs/methods/render-from-html.js +1 -1
- package/dist/cjs/methods/render.js +1 -1
- package/dist/cjs/rule.js +1 -1
- package/dist/cjs/utils/parse-rule-value.js +1 -1
- package/dist/config/functions.d.ts +7 -0
- package/dist/config/index.d.ts +3 -1
- package/dist/css.d.ts +4 -5
- package/dist/esm/bin/index.mjs +2 -0
- package/dist/esm/config/colors.mjs +1 -0
- package/dist/esm/config/functions.mjs +1 -0
- package/dist/esm/config/index.mjs +1 -0
- package/dist/esm/config/rules.mjs +1 -0
- package/dist/esm/constants/sizing-values.mjs +1 -0
- package/dist/esm/css.mjs +1 -0
- package/dist/esm/index.browser.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/methods/fill-color-scale.mjs +1 -0
- package/dist/esm/methods/index.mjs +1 -0
- package/dist/esm/methods/render-from-html.mjs +1 -0
- package/dist/esm/methods/render-into-html.mjs +1 -0
- package/dist/esm/methods/render.mjs +1 -0
- package/dist/esm/rule.mjs +1 -0
- package/dist/esm/utils/is-plain-object.mjs +1 -0
- package/dist/esm/utils/is-symbol.mjs +1 -0
- package/dist/esm/utils/parse-rule-value.mjs +1 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.js +10 -10
- package/dist/index.mjs +11 -11
- package/dist/rule.d.ts +20 -23
- package/package.json +1 -1
- package/dist/cjs/utils/analyze-unit-value.js +0 -1
- package/dist/cjs/utils/analyze-value-token.js +0 -1
- package/dist/cjs/utils/get-border-props.js +0 -1
- package/dist/cjs/utils/get-css-property-text.js +0 -1
- package/dist/cjs/utils/normalize-css-calc-text.js +0 -1
- package/dist/cjs/utils/parse-value-unit.js +0 -1
- package/dist/esm/bin/index.js +0 -2
- package/dist/esm/config/colors.js +0 -1
- package/dist/esm/config/index.js +0 -1
- package/dist/esm/config/rules.js +0 -1
- package/dist/esm/constants/sizing-values.js +0 -1
- package/dist/esm/css.js +0 -1
- package/dist/esm/index.browser.js +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/methods/fill-color-scale.js +0 -1
- package/dist/esm/methods/index.js +0 -1
- package/dist/esm/methods/render-from-html.js +0 -1
- package/dist/esm/methods/render-into-html.js +0 -1
- package/dist/esm/methods/render.js +0 -1
- package/dist/esm/rule.js +0 -1
- package/dist/esm/utils/analyze-unit-value.js +0 -1
- package/dist/esm/utils/analyze-value-token.js +0 -1
- package/dist/esm/utils/get-border-props.js +0 -1
- package/dist/esm/utils/get-css-property-text.js +0 -1
- package/dist/esm/utils/is-plain-object.js +0 -1
- package/dist/esm/utils/is-symbol.js +0 -1
- package/dist/esm/utils/normalize-css-calc-text.js +0 -1
- package/dist/esm/utils/parse-rule-value.js +0 -1
- package/dist/esm/utils/parse-value-unit.js +0 -1
- package/dist/utils/analyze-unit-value.d.ts +0 -4
- package/dist/utils/analyze-value-token.d.ts +0 -3
- package/dist/utils/get-border-props.d.ts +0 -3
- package/dist/utils/get-css-property-text.d.ts +0 -5
- package/dist/utils/normalize-css-calc-text.d.ts +0 -5
- package/dist/utils/parse-value-unit.d.ts +0 -2
- /package/dist/esm/config/{breakpoints.js → breakpoints.mjs} +0 -0
- /package/dist/esm/config/{important.js → important.mjs} +0 -0
- /package/dist/esm/config/{observe.js → observe.mjs} +0 -0
- /package/dist/esm/config/{override.js → override.mjs} +0 -0
- /package/dist/esm/config/{root-size.js → root-size.mjs} +0 -0
- /package/dist/esm/config/{scope.js → scope.mjs} +0 -0
- /package/dist/esm/config/{selectors.js → selectors.mjs} +0 -0
- /package/dist/esm/config/{semantics.js → semantics.mjs} +0 -0
- /package/dist/esm/config/{themes.js → themes.mjs} +0 -0
- /package/dist/esm/constants/{box-underneath.js → box-underneath.mjs} +0 -0
- /package/dist/esm/constants/{content-extrema.js → content-extrema.mjs} +0 -0
- /package/dist/esm/constants/{selector-symbols.js → selector-symbols.mjs} +0 -0
- /package/dist/esm/constants/{sorted-selectors.js → sorted-selectors.mjs} +0 -0
- /package/dist/esm/constants/{start-symbol.js → start-symbol.mjs} +0 -0
- /package/dist/esm/methods/{define-content.js → define-content.mjs} +0 -0
- /package/dist/esm/polyfills/{css-escape.js → css-escape.mjs} +0 -0
- /package/dist/esm/{theme.js → theme.mjs} +0 -0
- /package/dist/esm/utils/{concat-arrays.js → concat-arrays.mjs} +0 -0
- /package/dist/esm/utils/{css-escape.js → css-escape.mjs} +0 -0
- /package/dist/esm/utils/{delay.js → delay.mjs} +0 -0
- /package/dist/esm/utils/{get-type.js → get-type.mjs} +0 -0
- /package/dist/esm/utils/{hex-to-rgb.js → hex-to-rgb.mjs} +0 -0
- /package/dist/esm/utils/{read-package.js → read-package.mjs} +0 -0
- /package/dist/esm/utils/{rgb-to-hex.js → rgb-to-hex.mjs} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var le=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var Qe=Object.prototype.hasOwnProperty;var qe=(e,t,r)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ze=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},Ge=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ue(t))!Qe.call(e,o)&&o!==r&&le(e,o,{get:()=>t[o],enumerable:!(s=He(t,o))||s.enumerable});return e};var Ye=e=>Ge(le({},"__esModule",{value:!0}),e);var ee=(e,t,r)=>(qe(e,typeof t!="symbol"?t+"":t,r),r);var st={};Ze(st,{MasterCSS:()=>B,Rule:()=>te,Theme:()=>je,breakpoints:()=>X,colors:()=>ye,config:()=>ne,default:()=>B,defineContent:()=>rt,extend:()=>_,fillColorScale:()=>W,getDocThemeInitScript:()=>Je,important:()=>$e,observe:()=>Oe,override:()=>Me,render:()=>Ke,renderFromHTML:()=>Ae,renderIntoHTML:()=>et,rootSize:()=>ve,rules:()=>Te,scope:()=>ke,selectors:()=>we,semantics:()=>Se,themeSettings:()=>Ee,themes:()=>Re});module.exports=Ye(st);function Le(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function De(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 Fe(e){let t=[];return e.forEach(function(r,s){typeof r=="object"&&r!==null?Array.isArray(r)?t[s]=Fe(r):Le(r)?t[s]=De(r):t[s]=_({},r):t[s]=r}),t}function ze(e,t){return t==="__proto__"?void 0:e[t]}function _(...e){let t={},r,s;return e.forEach(function(o){typeof o!="object"||o===null||Array.isArray(o)||Object.keys(o).forEach(function(l){if(s=ze(t,l),r=ze(o,l),r!==t)if(typeof r!="object"||r===null){t[l]=r;return}else if(Array.isArray(r)){t[l]=Fe(r);return}else if(Le(r)){t[l]=De(r);return}else if(typeof s!="object"||s===null||Array.isArray(s)){t[l]=_({},r);return}else{t[l]=_(s,r);return}})}),t}function ce(e,t){return(e?e+":":"")+(t.unit?t.value+t.unit:t.value)+(t.important?"!important":"")}var Y={"(":")","'":"'",'"':'"',"{":"}"};function Z(e,t,r,s=[]){let o=[",",...s],l=[],a="",c=0;return function d(h,n,i,u="",p=[],x=[]){let b,S=!1;n&&(n===")"&&a.slice(-1)==="$"?b=a.length-1:(n==="'"||n==='"')&&(S=!0),a+=h[c++]);let R=()=>{let f=a;if(a="",t&&f in t&&!p.includes(f)){let g=c;c=0,d(t[f].toString(),void 0,void 0,void 0,[...p,f],x),c=g}else if(r&&f in r&&!x.includes(f)){let g=c;c=0,d(r[f].toString(),void 0,void 0,void 0,p,[...x,f]),c=g}else l.push({value:f})};for(;c<h.length;c++){let f=h[c];if(f===n){if(a+=f,S){let g=0;for(let m=a.length-2;a[m]==="\\";m--)g++;if(g%2)continue}b!==void 0&&(a=a.slice(0,b)+a.slice(b).replace(/\$\((.*)\)/,"var(--$1)")),i||(S?l.push(a):R(),u="",a="");break}else if(!S&&f in Y)d(h,Y[f],i===void 0?0:i+1,u,p,x);else if((f==="|"||f===" ")&&n!=="}"&&(!S||u==="path"))n?a+=" ":R();else{if(!n){if(f==="."){if(isNaN(+h[c+1]))break;h[c-1]==="-"&&(a+="0")}else if(o.includes(f)){a&&R(),l.push(f);continue}else if(f==="#"&&(a||l.length&&h[c-1]!=="|"&&l[c-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(f))break;u+=f}a+=f}}i===void 0&&a&&R()}(e),[l,e.slice(c)]}function ue(e,t,r){if(r){let s="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[l,a]=e.split("/");return{value:+l/+a*100+"%",unit:s}}else{let l=+o[1];return s=o[3]||"",s||((r==="rem"||r==="em")&&(l=l/t),s=r||""),{value:l,unit:s}}}}function Be(e,t,r){let s=n=>n==="+"||n==="-"||n==="*"||n==="/",o="",l,a="",c=!1,d=!1;function h(n,i="",u=""){if(l===2&&!d){let p=ue(a,t,r);p&&(a=p.value+p.unit)}o+=a+i+n+u,l=null,d=!1,a=""}for(let n=0;n<e.length;n++){let i=e[n];if(i==="("||i===")")c=i===")",h(i);else if(i===",")h(i,""," ");else{switch(l){case 1:break;case 2:if(s(i)){h(i," "," ");continue}else/[0-9]/.test(i)||(d=!0);break;default:c&&(o+=" "),isNaN(+i)?s(i)||(l=1):l=2;break}l?a+=i:o+=i}}return a&&(o+=a),o}function fe(e,t,r,s,o,l){let a="",c="",d;if(typeof e=="number")a=e,c=t||"";else{if(s){let n=!1,i=!1;e=e.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(u,p,x,b)=>{i=!0;let S=s[x];if(S){let R;for(let f of l)if(R=S[f])break;if(R){n=!0;let f=R;if(b){let g=b.endsWith("%")?parseFloat(b)/100:+b;g=isNaN(g)?1:Math.min(Math.max(g,0),1),f+=Math.round(g*255).toString(16).toUpperCase().padStart(2,"0")}return p+f}}return u}),i&&(d=n)}let h=ue(e,o,t);if(h)return h;a=(e.indexOf("calc(")===-1?e:Be(e,o,t)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:a,unit:c,colorMatched:d}}var xe=[":disabled",":active",":focus",":hover"];function he(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),r=t.length,s=-1,o="",l,a=t.charCodeAt(0);if(r==1&&a==45)return"\\"+t;for(;++s<r;){if(l=t.charCodeAt(s),l==0){o+="\uFFFD";continue}if(l>=1&&l<=31||l==127||s==0&&l>=48&&l<=57||s==1&&l>=48&&l<=57&&a==45){o+="\\"+l.toString(16)+" ";continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){o+=t.charAt(s);continue}o+="\\"+t.charAt(s)}return o}var te=class{constructor(t,r,s){this.className=t;this.meta=r;this.css=s;let{id:o,unit:l="rem",order:a=0,colorful:c,prop:d,analyzeToken:h,getThemeProps:n,parseValue:i,get:u}=r.config||{},{rootSize:p,scope:x,important:b}=s.config,{themeNames:S,colorNames:R,colorThemesMap:f,selectors:g,globalValues:m,breakpoints:k,mediaQueries:y}=s,M=s.values[o],C=s.relationThemesMap[t],E=t;this.order=a;let O,V,H,G;if(r.origin==="semantics"){let[I,j]=r.value;H=E.slice(I.length),O=j}else if(h)[V,G,H]=h.call(this,E,M,m);else{let I;if(r.origin==="matches"){let j=E.indexOf(":");this.prefix=E.slice(0,j+1),this.prefix.includes("(")?(this.prefix=void 0,I=E):I=E.slice(j+1)}else r.origin==="symbol"&&(this.symbol=E[0],I=E.slice(1));[G,H]=Z(I,M,m)}H[0]==="!"&&(this.important=!0,H=H.slice(1));let Ie=I=>{let j=I.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((w,T)=>T%3?w:w.replace(/_/g," ")).join(""),$=[],N="",F=0;for(let w=0;w<j.length;w++){let T=j[w];if(T==="\\"){N+=T+j[++w];continue}!F&&T===","?($.push(N),N=""):(N+=T,F&&T===")"?F--:T==="("&&F++)}return N&&$.push(N),$};this.prefixSelectors=V?Ie(V):[""];let ge=H.split("@"),pe=ge[0];if(pe){this.vendorSuffixSelectors={};let I=(w,T,v,A)=>{for(let[z,D]of T)if(z.test(w)){for(let P of D)I(w.replace(z,P),T,v,!0);return}A&&v.push(w)},j=[];""in g?I(pe,g[""],j,!0):j.push(pe);let $={};for(let[w,T]of Object.entries(g)){if(!w)continue;let v=[];for(let A of j)I(A,T,v,!1);v.length&&($[w]=v)}let N=(w,T)=>{let v=T.reduce((A,z)=>(A.push(...Ie(z)),A),[]);w in this.vendorSuffixSelectors?this.vendorSuffixSelectors[w].push(...v):this.vendorSuffixSelectors[w]=v},F=Object.keys($);if(F.length)for(let w of F)N(w,$[w]);else N("",j);for(let w of Object.values(this.vendorSuffixSelectors))for(let T of w){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let v=0;v<xe.length;v++)if(T.includes(xe[v])){(this.priority===-1||this.priority>v)&&(this.priority=v);break}}}else this.vendorSuffixSelectors={"":[""]};for(let I=1;I<ge.length;I++){let j=ge[I];if(j)if(S.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let $,N,F=j.indexOf("_");if(F!==-1)$=j.slice(0,F),N=j.slice(F);else{let w=j.indexOf("(");w!==-1&&($=j.slice(0,w),N=j.slice(w))}if(!$){$="media";let w=[];this.media={token:j,features:{}};let T=j.split("&");for(let v of T)if(v==="all"||v==="print"||v==="screen"||v==="speech")this.media.type=v;else if(v==="\u{1F5A8}")this.media.type="print";else if(v==="landscape"||v==="portrait")w.push("(orientation:"+v+")");else if(v==="motion"||v==="reduced-motion")w.push("(prefers-reduced-motion:"+(v==="motion"?"no-preference":"reduce")+")");else if(y&&v in y)w.push(y[v]);else{let A={token:v},z="",D="",P=0;v.startsWith("<=")?(D="<=",z="max-width"):v.startsWith(">=")||k[v]?(D=">=",z="min-width"):v.startsWith(">")?(D=">",z="min-width",P=.02):v.startsWith("<")&&(D="<",z="max-width",P=-.02);let Q=D?v.replace(D,""):v,L=k[Q];switch(z){case"max-width":case"min-width":L?Object.assign(A,fe(L,"px")):Object.assign(A,fe(Q,"px")),A.unit==="px"&&(A.value+=P),this.media.features[z]=A,w.push("("+z+":"+(A.value+A.unit)+")");break}}N="",this.media.type&&(N=this.media.type),w.length&&(N+=(N?" and ":"")+w.join(" and "))}N&&(this.at[$]=($ in this.at?this.at[$]+" and ":"")+N.replace(/_/g," "))}}let oe=(I,j)=>{let $,N,F=(T,v,A)=>{let z="";this.direction&&(z+="[dir="+this.direction+"] ");let D=this.prefixSelectors.map(L=>L+z),P=(L,ae)=>D.map(q=>(L?"."+L+" ":"")+(x?x+" ":"")+q).reduce((q,be)=>(q.push(A.reduce((We,_e)=>(We.push(be+"."+he(ae)+_e),We),[]).join(",")),q),[]).join(","),Q=P(v,t)+(C?Object.entries(C).filter(([L])=>this.theme||!c||!v||!L||L===v).map(([L,ae])=>ae.reduce((q,be)=>q+","+P(this.theme??((c||n)&&v||L),be),"")).join(""):"")+"{"+T+"}";for(let L of Object.keys(this.at).sort((ae,q)=>q==="supports"?-1:1))Q="@"+L+" "+this.at[L]+"{"+Q+"}";return Q},w=[];if(G){let T,v;for(let A of G)typeof A=="string"?w.push(A):(T=fe(A.value,l,c&&R,c&&f,p,this.theme?[this.theme,""]:[I]),T.colorMatched!==void 0&&v!==!0&&(v=T.colorMatched),w.push(T.value+T.unit));if(j&&(v===void 0?I:!v))return;if(w.length===1?T?($=T.value,N=T.unit):$=w[0]:$=w.reduce((A,z,D)=>A+z+(z===","||G[D+1]===","||D===G.length-1?"":" "),""),typeof $!="object"){i&&($=i.call(this,$,this.css.config)),c&&$==="current"&&($="currentColor");let A={unit:N,value:$,important:this.important};if(n){let z=n.call(this,A,s);for(let D in z)for(let P of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:$,text:F(Object.entries(z[D]).map(([Q,L])=>ce(Q,{important:(this.important||b)&&!L.endsWith("!important"),unit:"",value:L})).join(";"),D,P),theme:D});return}else u&&($=u.call(this,A))}}else $=O;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:$,text:F(typeof $=="object"?Object.entries($).map(([v,A])=>ce(v,{...typeof A=="object"?A:{unit:"",value:A},important:this.important||b})).join(";"):ce(d,{unit:N,value:$,important:this.important||b}),I,T),theme:I})};if(n)oe(void 0,!1);else if(this.theme)oe(this.theme,!1);else if(c)for(let I of S)oe(I,!0);else oe("",!1)}at={};priority=-1;natives=[];get text(){return this.natives.map(t=>t.text).join("")}};var X={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function re(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function de(e,t,r){return((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)}function W(e){typeof e=="string"&&(e={"":e});let t=""in e,r=!1;for(let s in e)if(s&&+s>=100){r=!0;break}if(!r&&(!t||Object.keys(e).length>1)){let s=0,o="0"in e?re(e[0]):[0,0,0],l,a,c=[],d=()=>{let h=l-s,n=a.map((i,u)=>(i-o[u])/h);for(let i of c){let u=i-s,p=o.map((x,b)=>Math.round(x+n[b]*u));e[i]="#"+de.call(this,...p)}};for(let h=1;h<100;h++)h in e?(c.length?(l=h,a=re(e[h]),d(),c.length=0,o=a):o=re(e[h]),s=h):c.push(h);c.length&&(l=100,a="100"in e?re(e[100]):[255,255,255],d())}return t||(e[""]=e[r?"500":"50"]),e}var ye={black:"#000000",white:"#ffffff",slate:W({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:W({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:W({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:W({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:W({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:W({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:W({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:W({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:W({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:W({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:W({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:W({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:W({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:W({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:W({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:W({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:W({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:W({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:W({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:W({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var ve=16;var ke="";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("};var Se={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"},overflow:{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"}};var Re=["dark","light"];function se(e,t,r=""){let s="border-";r&&(r="-"+r);let o=/^b(order)?-?(.)?/.exec(e)[2],l=s+"left"+r,a=s+"right"+r,c=s+"top"+r,d=s+"bottom"+r;switch(o){case"x":return{[l]:t,[a]:t};case"y":return{[c]:t,[d]:t};case"l":return{[l]:t};case"r":return{[a]:t};case"t":return{[c]:t};case"b":return{[d]:t};default:return{["border"+r]:t}}}function Ce(e,t,{rootSize:r}){let s="",o=0;return function l(a,c){let d="",h=c?t(c):"",n=()=>{d&&(s+=!h||Number.isNaN(+d)?d:+d/(h==="rem"?r:1)+h,d="")};for(;o<e.length;o++){let i=e[o];if(i===a&&(a!=="'"||e[o+1]===")")){n(),s+=i;break}else i===","||i===" "?(n(),s+=i):!d&&i==="'"?(s+=i,o++,l(i),d=""):d&&i==="("?(s+=d+i,o++,l(")",d),d=""):d+=i}n()}(),s}var J={content:"content-box",border:"border-box",padding:"padding-box"};var ie={min:"min-content",max:"max-content"};var U={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let e in X)U[e]=X[e]/16+"rem";var Te={group:{matches:"^(?:.+?[*_>~+])?\\{.+?\\}",unit:"",prop:!1,analyzeToken(e,t,r){let s=0;for(;s<e.length&&!(e[s]==="{"&&e[s-1]!=="\\");s++);return[e.slice(0,s),...Z(e.slice(s),t,r)]},getThemeProps(e,t){let r={},s=(h,n)=>{let i=n.indexOf(":");if(i!==-1){h in r||(r[h]={});let u=r[h],p=n.slice(0,i);p in u||(u[p]=n.slice(i+1))}},o=h=>{let n=(i,u)=>{let p=u.slice(he(h.className).length).match(/\{(.*)\}/)[1].split(";");for(let x of p)s(i,x)};if(this.theme){let i=h.natives.find(u=>u.theme===this.theme)??h.natives.find(u=>!u.theme);i&&n(this.theme,i.text)}else for(let i of h.natives)n(i.theme,i.text)},l=[],a="",c=()=>{a&&(l.push(a.replace(/ /g,"")),a="")},d=1;(function h(n){for(;d<e.value.length;d++){let i=e.value[d];if(!n){if(i===";"){c();continue}if(i==="}")break}if(a+=i,n===i){if(n==="'"||n==='"'){let u=0;for(let p=a.length-2;a[p]==="\\";p--)u++;if(u%2)continue}break}else i in Y&&n!=="'"&&n!=='"'&&(d++,h(Y[i]))}})(void 0),c();for(let h of l){let n=t.create(h);if(Array.isArray(n))for(let i of n)o(i);else n?o(n):s(this.theme??"",h)}return r}},variable:{matches:"^\\$[^ (){}A-Z]+:[^ ]",unit:"",prop:!1,get(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{matches:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$"},fontWeight:{matches:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",unit:"",values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{matches:"^f(?:ont)?:(?:$values)(?!\\|)",values:{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"}},fontSmoothing:{matches:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",unit:"",prop:!1,get(e){let t={};switch(e.value){case"subpixel-antialiased":t["-webkit-font-smoothing"]=t["-moz-osx-font-smoothing"]={...e,value:"auto"};break;case"antialiased":t["-webkit-font-smoothing"]={...e,value:"antialiased"},t["-moz-osx-font-smoothing"]={...e,value:"grayscale"};break}return t}},fontStyle:{matches:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",unit:"deg"},fontVariantNumeric:{matches:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)"},fontFeatureSettings:{matches:"^font-feature:."},font:{matches:"^f:.",unit:"",order:-1},color:{matches:"^(?:color|fg|foreground):.",colorful:!0,unit:""},spacing:{matches:"^[pm][xytblr]?:.",prop:!1,get(e){let r=this.prefix[0]==="m"?"margin":"padding",s=r+"-left",o=r+"-right",l=r+"-top",a=r+"-bottom";switch(this.prefix[1]){case"x":return{[s]:e,[o]:e};case"y":return{[l]:e,[a]:e};case"l":return{[s]:e};case"r":return{[o]:e};case"t":return{[l]:e};case"b":return{[a]:e};default:return{[r]:e}}},get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}},margin:{matches:"^margin(?:-(?:left|right|top|bottom))?:.",prop:!1,get(e){return{[this.prefix.slice(0,-1)]:e}},get order(){return this.prefix==="margin:"?-1:0}},padding:{matches:"^padding(?:-(?:left|right|top|bottom))?:.",prop:!1,get(e){return{[this.prefix.slice(0,-1)]:e}},get order(){return this.prefix==="padding:"?-1:0}},flexBasis:{values:U},flexWrap:{matches:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)"},flexGrow:{unit:""},flexShrink:{unit:""},flexDirection:{matches:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",values:{col:"column","col-reverse":"column-reverse"}},flex:{unit:"",order:-1},display:{matches:"^d:."},width:{matches:"^w:.",values:U},height:{matches:"^h:.",values:U},minWidth:{matches:"^min-w:.",values:U},minHeight:{matches:"^min-h:.",values:U},wH:{matches:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",prop:!1,analyzeToken(e,t,r){return["",...Z(e,t,r,["x"])]},get(e){let[t,r]=e.value.split(" x ");return{width:{...e,value:t},height:{...e,value:r}}}},minWH:{matches:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",prop:!1,analyzeToken(e,t,r){return["",...Z(e.slice(4),t,r,["x"])]},get(e){let[t,r]=e.value.split(" x ");return{"min-width":{...e,value:t},"min-height":{...e,value:r}}}},maxWH:{matches:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",prop:!1,analyzeToken(e,t,r){return["",...Z(e.slice(4),t,r,["x"])]},get(e){let[t,r]=e.value.split(" x ");return{"max-width":{...e,value:t},"max-height":{...e,value:r}}}},contain:{},content:{},counterIncrement:{unit:""},counterReset:{unit:""},letterSpacing:{matches:"^ls:.",unit:"em"},lineHeight:{matches:"^lh:.",unit:""},objectFit:{matches:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)"},objectPosition:{matches:"^(?:object|obj):(?:top|bottom|right|left|center|$values)"},textAlign:{matches:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)"},textDecorationColor:{colorStarts:"text-decoration:",colorful:!0},textDecorationStyle:{matches:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)"},textDecorationThickness:{matches:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",unit:"em"},textDecorationLine:{matches:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)"},textDecoration:{matches:"^t(?:ext)?:(?:underline|line-through|overline|$values)",colorful:!0,order:-1},textUnderlineOffset:{},textOverflow:{matches:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))"},textOrientation:{matches:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)"},textTransform:{matches:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)"},textRendering:{matches:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)"},textIndent:{},verticalAlign:{matches:"^(?:v|vertical):."},columns:{matches:"^(?:columns|cols):.",unit:"",order:-1},whiteSpace:{unit:""},inset:{matches:"^(?:top|bottom|left|right):.",get(e){return{[this.prefix.slice(0,-1)]:e}}},lines:{matches:"^lines:.",unit:"",prop:!1,get(e){return{overflow:{...e,value:"hidden"},display:{...e,value:"-webkit-box"},"overflow-wrap":{...e,value:"break-word"},"text-overflow":{...e,value:"ellipsis"},"-webkit-box-orient":{...e,value:"vertical"},"-webkit-line-clamp":e}}},maxHeight:{matches:"^max-h:.",values:U},maxWidth:{matches:"^max-w:.",values:U},boxSizing:{matches:"^box:(?:$values)(?!\\|)",values:{content:"content-box",border:"border-box"}},opacity:{unit:""},visibility:{},clear:{},float:{},isolation:{},overflow:{matches:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",prop:!1,get(e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":e};case"y":return{"overflow-y":e}}return{overflow:e}},get order(){return-1}},overscrollBehavior:{matches:"^overscroll-behavior(?:-[xy])?:",prop:!1,get(e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":e};case"y":return{"overscroll-behavior-y":e};default:return{"overscroll-behavior":e}}}},zIndex:{matches:"^z:.",unit:""},position:{values:{abs:"absolute",rel:"relative"}},cursor:{},pointerEvents:{},resize:{},touchAction:{},wordBreak:{unit:""},wordSpacing:{unit:"em"},userDrag:{get(e){return{"user-drag":e,"-webkit-user-drag":e}}},userSelect:{get(e){return{"user-select":e,"-webkit-user-select":e}}},textShadow:{colorful:!0},textSize:{matches:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",prop:!1,get(e){let{unit:t,value:r}=e,s=.75;return{"font-size":e,"line-height":{...e,value:t==="em"?r+s+t:`calc(${r}${t} + ${s}em)`,unit:""}}}},textFillColor:{matches:"^text-fill-color:.",colorStarts:"(?:text-fill|text|t):",colorful:!0,prop:!1,get(e){return{"-webkit-text-fill-color":e}}},textStrokeWidth:{matches:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",prop:!1,get(e){return{"-webkit-text-stroke-width":e}}},textStrokeColor:{matches:"^text-stroke-color:.",colorStarts:"text-stroke:",colorful:!0,prop:!1,get(e){return{"-webkit-text-stroke-color":e}}},textStroke:{matches:"^text-stroke:.",prop:!1,get(e){return{"-webkit-text-stroke":e}}},boxShadow:{matches:"^s(?:hadow)?:.",colorful:!0},tableLayout:{},transformBox:{matches:"^transform:(?:$values)(?!\\|)",values:{...J,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{matches:"^transform:(?:flat|preserve-3d|$values)(?!\\|)"},transformOrigin:{matches:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",unit:"px"},transform:{matches:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",unit:"",parseValue(e,{rootSize:t}){return e.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(r,s,o,l)=>{let a,c;switch(s){case"translate":a="rem";break;case"skew":a="deg";break;case"rotate":o==="3d"&&(c=!0),a="deg";break;default:return r}let d=l.split(",");return r.replace(l,d.map((h,n)=>!c||d.length-1===n?Number.isNaN(+h)?h:h/(a==="rem"?t:1)+a:h).join(","))})}},transitionProperty:{matches:"^~property:."},transitionTimingFunction:{matches:"^~easing:."},transitionDuration:{matches:"^~duration:.",unit:"ms"},transitionDelay:{matches:"^~delay:.",unit:"ms"},transition:{symbol:"~",order:-1},animationDelay:{matches:"^@delay:.",unit:"ms"},animationDirection:{matches:"^@direction:."},animationDuration:{matches:"^@duration:.",unit:"ms"},animationFillMode:{matches:"^@fill-mode:."},animationIterationCount:{matches:"^@iteration-count:.",unit:""},animationName:{matches:"^@name:."},animationPlayState:{matches:"^@play-state:."},animationTimingFunction:{matches:"^@easing:."},animation:{symbol:"@",unit:"",order:-1},borderColor:{matches:"^border(?:-(?:left|right|top|bottom))?-color:.",colorStarts:"b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?:",colorful:!0,prop:!1,get(e){return se(this.prefix,e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{matches:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",prop:!1,get(e){if(this.prefix){let r="",s=this.prefix.split("-");if(s.length>1)for(let o=1;o<s.length-1;o++)r+=s[o][0];else r=this.prefix.slice(1,-1);switch(r){case"t":return{"border-top-left-radius":e,"border-top-right-radius":e};case"tl":case"lt":return{"border-top-left-radius":e};case"rt":case"tr":return{"border-top-right-radius":e};case"b":return{"border-bottom-left-radius":e,"border-bottom-right-radius":e};case"bl":case"lb":return{"border-bottom-left-radius":e};case"br":case"rb":return{"border-bottom-right-radius":e};case"l":return{"border-top-left-radius":e,"border-bottom-left-radius":e};case"r":return{"border-top-right-radius":e,"border-bottom-right-radius":e};default:return{"border-radius":e}}}let t=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(t)?t:"border-radius"]:e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{matches:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",prop:!1,get(e){return se(this.prefix,e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{matches:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",prop:!1,get(e){return se(this.prefix,e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{matches:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)"},borderSpacing:{},borderImageOutset:{},borderImageRepeat:{matches:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)"},borderImageSlice:{unit:""},borderImageSource:{matches:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)"},borderImageWidth:{matches:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$"},borderImage:{unit:""},border:{matches:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",colorful:!0,prop:!1,get(e){return se(this.prefix,e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{matches:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)"},backgroundBlendMode:{},backgroundColor:{colorStarts:"(?:bg|background):",unit:"",colorful:!0},backgroundClip:{matches:"^(?:bg|background):(?:text|$values)(?!\\|)",get(e){return{"-webkit-background-clip":e,"background-clip":e}},values:J},backgroundOrigin:{matches:"^(?:bg|background):(?:$values)(?!\\|)",values:J},backgroundPosition:{matches:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",unit:"px"},backgroundRepeat:{matches:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])"},backgroundSize:{matches:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)"},backgroundImage:{matches:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",colorful:!0},background:{matches:"^bg:.",colorful:!0,order:-1},mixBlendMode:{matches:"^blend:."},backdropFilter:{matches:"^bd:.",colorful:!0,get(e){return{"backdrop-filter":e,"-webkit-backdrop-filter":e}},parseValue(e,t){return Ce(e,r=>{switch(r){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},t)}},filter:{matches:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",colorful:!0,parseValue(e,t){return Ce(e,r=>{switch(r){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},t)}},fill:{colorStarts:"fill:",colorful:!0},strokeDasharray:{},strokeDashoffset:{},strokeWidth:{matches:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$"},stroke:{colorful:!0},x:{unit:""},y:{unit:""},cx:{unit:""},cy:{unit:""},rx:{unit:""},ry:{unit:""},gridColumnStart:{matches:"^grid-col-start:.",unit:""},gridColumnEnd:{matches:"^grid-col-end:.",unit:""},gridColumn:{matches:"^grid-col(?:umn)?(?:-span)?:.",unit:"",order:-1,parseValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{matches:"^grid-cols:.",unit:"",get(e){return{display:{...e,value:"grid"},"grid-template-columns":{...this,value:"repeat("+e.value+",minmax(0,1fr))"}}}},gridRowStart:{unit:""},gridRowEnd:{unit:""},gridRow:{matches:"^grid-row-span:.",unit:"",order:-1,parseValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{unit:"",get(e){return{display:{...e,value:"grid"},"grid-auto-flow":{...e,value:"column"},"grid-template-rows":{...e,value:"repeat("+e.value+",minmax(0,1fr))"}}}},gridAutoColumns:{matches:"^grid-auto-cols:.",values:ie},gridAutoFlow:{matches:"^grid-flow:."},gridAutoRows:{values:ie},gridTemplateAreas:{},gridTemplateColumns:{matches:"^grid-template-cols:.",values:ie},gridTemplateRows:{values:ie},gridTemplate:{order:-1},gridArea:{unit:"",order:-1},grid:{order:-1},gap:{matches:"^gap(?:-x|-y)?:.",order:-1,prop:!1,get(e){switch(this.prefix[4]){case"x":return{"column-gap":e};case"y":return{"row-gap":e};default:return{gap:e}}}},order:{matches:"^o:.",unit:"",values:{first:-999999,last:999999}},breakInside:{},breakBefore:{},breakAfter:{},boxDecorationBreak:{matches:"^box:(?:slice|clone|$values)(?!\\|)",get(e){return{"box-decoration-break":e,"-webkit-box-decoration-break":e}}},aspectRatio:{matches:"^aspect:.",unit:""},columnSpan:{matches:"^col-span:."},alignContent:{matches:"^ac:."},alignItems:{matches:"^ai:."},alignSelf:{matches:"^as:"},justifyContent:{matches:"^jc:."},justifyItems:{matches:"^ji:."},justifySelf:{matches:"^js:."},placeContent:{order:-1},placeItems:{order:-1},placeSelf:{order:-1},listStylePosition:{matches:"^list-style:(?:inside|outside|$values)(?!\\|)"},listStyleType:{matches:"^list-style:(?:disc|decimal|$values)(?!\\|)"},listStyleImage:{matches:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)"},listStyle:{order:-1},outlineColor:{colorStarts:"outline:",colorful:!0},outlineOffset:{},outlineStyle:{matches:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)"},outlineWidth:{matches:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$"},outline:{order:-1,colorful:!0},accentColor:{colorStarts:"accent:",colorful:!0},appearance:{},caretColor:{colorStarts:"caret:",colorful:!0},scrollBehavior:{},scrollMargin:{matches:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",prop:!1,get(e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":e,"scroll-margin-right":e};case"y":return{"scroll-margin-top":e,"scroll-margin-bottom":e};case"l":return{"scroll-margin-left":e};case"r":return{"scroll-margin-right":e};case"t":return{"scroll-margin-top":e};case"b":return{"scroll-margin-bottom":e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{matches:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",prop:!1,get(e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":e,"scroll-padding-right":e};case"y":return{"scroll-padding-top":e,"scroll-padding-bottom":e};case"l":return{"scroll-padding-left":e};case"r":return{"scroll-padding-right":e};case"t":return{"scroll-padding-top":e};case"b":return{"scroll-padding-bottom":e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{matches:"^scroll-snap:(?:start|end|center|$values)"},scrollSnapStop:{matches:"^scroll-snap:(?:normal|always|$values)(?!\\|)"},scrollSnapType:{matches:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)"},willChange:{},writingMode:{matches:"^writing:."},direction:{},shapeOutside:{matches:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",values:{...J,margin:"margin-box"}},shapeMargin:{matches:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$"},shapeImageThreshold:{unit:""},clipPath:{matches:"^clip:.",values:{...J,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{},maskImage:{get(e){return{"mask-image":e,"-webkit-mask-image":e}}}};var Me=!1;var Oe=!0;var $e=!1;var ne={breakpoints:X,colors:ye,rootSize:16,scope:ke,selectors:we,semantics:Se,themes:Re,rules:Te,override:!1,observe:!0,important:!1};var Ve=[",",".","#","[","!","*",">","+","~",":","@"];var me=typeof window<"u",K=class{constructor(t){this.config=t;this.config?.override||(this.config=_(ne,t)),this.cache(),me&&this.config.observe&&this.observe(document),K.instances.push(this),this.ready=!0}rules=[];ruleOfClass={};countOfClass={};ready=!1;r=me?new MutationObserver(t=>{let r={},s=[],o=[],l=[],a=(n,i)=>{i?n.classList.forEach(d):n.classList.forEach(c);let u=n.children;for(let p=0;p<u.length;p++){let x=u[p];x.classList&&(o.push(x),a(x,i))}},c=n=>{n in r?r[n]++:r[n]=1},d=n=>{n in r?r[n]--:n in this.countOfClass&&(r[n]=-1)},h=(n,i)=>{for(let u=0;u<n.length;u++){let p=n[u];p.classList&&!o.includes(p)&&!l.includes(p)&&(p.isConnected!==i?(o.push(p),a(p,i)):l.push(p))}};for(let n=0;n<t.length;n++){let i=t[n],{addedNodes:u,removedNodes:p,type:x,target:b}=i;if(x==="attributes"){if(s.find(S=>S.target===b))continue;s.push(i)}else h(u,!1),(!b.isConnected||!o.includes(b))&&h(p,!0)}if(!(!s.length&&!Object.keys(r).length)){for(let{oldValue:n,target:i}of s){let u=o.includes(i),p=i.classList,x=n?n.split(" "):[];if(u){if(i.isConnected)continue;for(let b of x)p.contains(b)||d(b)}else if(i.isConnected){p.forEach(b=>{x.includes(b)||c(b)});for(let b of x)p.contains(b)||d(b)}}for(let n in r){let i=r[n],u=(this.countOfClass[n]||0)+i;u===0?(delete this.countOfClass[n],this.delete(n)):(n in this.countOfClass||this.insert(n),this.countOfClass[n]=u)}}}):null;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={};let{semantics:t,classes:r,selectors:s,themes:o,colors:l,values:a,breakpoints:c,mediaQueries:d,rules:h}=this.config;function n(f){return f.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function i(f,g,m="",k={}){let y=O=>O?(m?m+"-":"")+O:m,M=Object.entries(f),C=[],E=[];for(let O of M){let V=O[1];(typeof V=="object"&&!Array.isArray(V)?C:E).push(O)}for(let[O,V]of C)i(V,g,y(O),k);if(g&&m)E.length&&(k[m]=E.reduce((O,[V,H])=>(O[V]=H,O),{}));else for(let[O,V]of E)k[y(O)]=V;return k}if(t)for(let[f,g]of Object.entries(i(t,!0)))this.semantics.push([new RegExp("^"+n(f)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[f,g]]);if(s)for(let[f,g]of Object.entries(i(s,!1))){let m=new RegExp(n(f)+"(?![a-z-])");for(let k of Array.isArray(g)?g:[g]){let y=k.match(/^::-[a-z]+-/m)?.[0]??"",M=this.selectors[y];M||(M=this.selectors[y]=[]);let C=M.find(([E])=>E===m);C||(C=[m,[]],M.push(C)),C[1].push(k)}}a&&(this.globalValues=i(a,!1)),c&&(this.breakpoints=i(c,!1)),d&&(this.mediaQueries=i(d,!1));let u=r?i(r,!1):{},p=o&&!Array.isArray(o)?Object.entries(o).filter(([,{classes:f}])=>f).reduce((f,[g,{classes:m}])=>(f[g]=i(m,!1),f),{}):{},x=[...Object.keys(u),...Object.entries(p).flatMap(([f,g])=>Object.keys(g))],b=f=>{if(f in this.classes)return;let g=this.classes[f]=[],m=(k,y)=>{if(!y)return;let M=Array.isArray(y)?y:y.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let C of M){let E=O=>{O in this.relationThemesMap?k in this.relationThemesMap[O]?this.relationThemesMap[O][k].push(f):this.relationThemesMap[O][k]=[f]:this.relationThemesMap[O]={[k]:[f]},g.includes(O)||g.push(O)};if(x.includes(C)){b(C);for(let O of this.classes[C])E(O)}else E(C)}};m("",u?.[f]);for(let[k,y]of Object.entries(p))m(k,y?.[f])};for(let f of x)b(f);for(let f in this.relationThemesMap){let g=this.relations[f]=[];for(let m of Object.values(this.relationThemesMap[f]))for(let k of m)g.includes(k)||g.push(k)}let S=(f,g)=>{if(!g)return;let m=i(g,!0);for(let[k,y]of Object.entries(m)){let M=typeof y=="string"?{"":y}:y;for(let[C,E]of Object.entries(M)){let O=k+(C?"-"+C:"");O in this.colorThemesMap?this.colorThemesMap[O][f]=E:this.colorThemesMap[O]={[f]:E}}}for(let k in g)this.colorNames.includes(k)||this.colorNames.push(k)};if(S("",l),o)if(Array.isArray(o))this.themeNames.push(...o);else for(let f in o){let g=o[f];S(f,g.colors),this.themeNames.push(f)}let R=f=>{for(let[g,m]of Object.entries(this.colorThemesMap))for(let[k,y]of Object.entries(m))y.startsWith("#")||f(g,m,k,y)};if(R((f,g,m,k)=>{let y=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(k);if(y){let M="#"+de(+y[1],+y[2],+y[3]);y[4]&&(M+=Math.round(255*+y[4]).toString(16)),g[m]=M}}),R((f,g,m,k)=>{let[y,M]=k.split("/"),C=this.colorThemesMap[y];if(C){let E=(m?C[m]:void 0)??C[""];g[m]=M?E.slice(0,7)+Math.round(255*+M).toString(16):E}else console.warn(`\`${k}\` doesn't exist in the extended config \`.colors\``),delete g[m],Object.keys(g).length||delete this.colorThemesMap[f]}),h)for(let f in h){let g=h[f],{matches:m,prop:k,values:y}=g;if(g.id=f,g.prop=k===!1?"":f.replace(/(?!^)[A-Z]/g,M=>"-"+M).toLowerCase(),y&&(this.values[f]=i(y,!1)),m){let M=Object.keys(this.values[f]??{}),C=m.indexOf("$values");this.matches[f]=new RegExp(C===-1?m:M.length?m.slice(0,C)+M.join("|")+m.slice(C+7):m.slice(0,C-(m[C-1]==="|"?1:0))+m.slice(C+7+(m[C+7]==="|"?1:0)))}}}observe(t,r={subtree:!0,childList:!0}){if(me&&t){this.root=t;let s=t===document;s&&(K.root=this),this.host=s?document.documentElement:root.host;let o=s?document.head:t,l=s?document.styleSheets:t.styleSheets;for(let c of l){let{title:d,href:h,ownerNode:n}=c;(d==="master"||h&&h.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(h))&&(this.style=n)}if(this.style)for(let c=0;c<this.style.sheet.cssRules.length;c++){let d=n=>{if(n.selectorText){let u=n.selectorText.split(", ")[0].split(" ");for(let p=0;p<u.length;p++){let x=u[p];if(x[0]==="."){let b=x.slice(1),S="";for(let R=0;R<b.length;R++){let f=b[R],g=b[R+1];if(f==="\\"){if(R++,g!=="\\"){S+=g;continue}}else if(Ve.includes(f))break;S+=f}if(!(S in this.ruleOfClass)&&!(S in this.classes)){let R=this.create(S)[0];if(R)return R}}}}else if(n.cssRules)for(let i=0;i<n.cssRules.length;i++){let u=d(n.cssRules[i]);if(u)return u}},h=d(this.style.sheet.cssRules[c]);if(h){this.rules.push(h),this.ruleOfClass[h.className]=h;for(let n=0;n<h.natives.length;n++)h.natives[n].cssRule=this.style.sheet.cssRules[c+n];c+=h.natives.length-1}}else{this.style=document.createElement("style"),this.style.title="master";let c=o.querySelector('link[rel="styleSheet"], style');c?c.before(this.style):o.append(this.style)}let a=c=>{c.forEach(d=>{d in this.countOfClass?this.countOfClass[d]++:(this.countOfClass[d]=1,this.insert(d))})};a(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(c=>a(c.classList)),this.r.observe(t,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){this.r.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let t=this.style.sheet;if(t)for(let r=t.cssRules.length-1;r>=0;r--)t.deleteRule(r);this.style.remove(),this.style=null}match(t){for(let r in this.config.rules){let s=this.config.rules[r],o=this.matches[r],{colorStarts:l,symbol:a,prop:c}=s,{colorNames:d,colorThemesMap:h}=this;if(o&&o.test(t))return{origin:"matches",config:s};if(l){if(t.match("^"+l+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))"))return{origin:"matches",config:s};if(d.length&&t.indexOf("|")===-1){let n=t.match("^"+l+"((?:"+d.join("|")+")[0-9a-zA-Z-]*)");if(n&&n[1]in h)return{origin:"matches",config:s}}}if(a&&t.startsWith(a))return{origin:"symbol",config:s};if(c&&t.startsWith(c+":"))return{origin:"matches",config:s}}for(let r of this.semantics)if(t.match(r[0]))return{origin:"semantics",value:r[1]}}create(t){let r=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];let o=this.match(s);if(o)return new te(s,o,this)};return(t in this.classes?this.classes[t].map(s=>r(s)):[r(t)]).filter(s=>s&&s.text)}refresh(t){if(t?.override?this.config=t:this.config=_(ne,t),this.cache(),!this.style)return;let r=document.createElement("style");r.title="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.insert(s)}destroy(){let t=K.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let r=this.style.sheet,s=o=>{let l=this.ruleOfClass[o];if(!(!l||o in this.relations&&this.relations[o].some(a=>a in this.countOfClass))){if(l.natives.length){let a=l.natives[0];for(let c=0;c<r.cssRules.length;c++)if(r.cssRules[c]===a.cssRule){for(let h=0;h<l.natives.length;h++)r.deleteRule(c);this.rules.splice(this.rules.indexOf(l),1);break}}delete this.ruleOfClass[o]}};if(t in this.classes){for(let o of this.classes[t])o in this.countOfClass||s(o);delete this.ruleOfClass[t]}else s(t)}insert(t){let r=this.create(t);return r.length?(this.insertRules(r),!0):!1}insertRules(t){for(let r of t){if(this.ruleOfClass[r.className])continue;let s,o=this.rules.length-1,{media:l,order:a,priority:c,hasWhere:d,className:h}=r,n=(i,u,p,x)=>{let b=0,S;u&&(b=i.findIndex(u)),p&&(S=i.findIndex(p)),b===-1&&(b=i.length),(S===void 0||S===-1)&&(S=i.length);let R=i.slice(b,S);for(let f=0;f<R.length;f++){let g=R[f];if(!(g.priority===-1||x&&x(g))&&(g.priority<c||g.priority===c&&(d&&!g.hasWhere||g.order>=a)))return b+f}return b+R.length};if(l){let i=this.rules.findIndex(u=>u.media);if(i!==-1){let u=l.features["max-width"],p=l.features["min-width"];if(u&&p){let x=u.value-p.value;for(let b=o;b>=i;b--){s=b;let S=this.rules[b],R=S.media,f=R.features["max-width"],g=R.features["min-width"];if(!f||!g){s++;break}let m=f.value-g.value;if(m===x){if(d!==S.hasWhere)continue;if(c!==-1){let k=[this.rules[b]];for(let y=b-1;y>=i;y--){let M=this.rules[y];if(M.hasWhere!==d)break;let C=M.media,E=C.features["max-width"],O=C.features["min-width"];if(!E||!O||E.value-O.value!==m)break;k.unshift(this.rules[y])}s=n(this.rules,y=>y.media&&y.priority!==-1&&y.media.features["min-width"]&&y.media.features["max-width"])}break}else if(m>x)break}}else if(p)for(let x=i;x<=o;x++){s=x;let b=this.rules[x],S=b.media,R=S.features["max-width"],f=S.features["min-width"];if(R){if(f)break;continue}let g=f?.value;if(g===p.value){if(!d&&b.hasWhere){s++;continue}if(c!==-1)s=n(this.rules,m=>m.media,m=>m.media&&m.priority!==-1&&m.media.features["min-width"]&&m.media.features["max-width"],m=>!m.media.features["min-width"]&&!m.media.features["max-width"]);else for(let m=x;m<=o;m++){let k=this.rules[m],y=k.media,M=y.features["min-width"];if(!y.features["max-width"]){if(k.hasWhere!==d||M.value!==g||k.order>=a)break;s=m+1}}break}else{if(g>p.value)break;s++}}else if(u)for(let x=o;x>=i;x--){s=x;let b=this.rules[x],S=b.media,R=S.features["max-width"];if(S.features["min-width"])continue;let g=R?.value;if(!g||g>u.value){s++;break}else if(g===u.value){if(d&&!b.hasWhere)continue;if(c!==-1)s=n(this.rules,m=>m.media,m=>m.media&&m.priority!==-1&&m.media.features["min-width"]&&m.media.features["max-width"],m=>!m.media.features["min-width"]&&!m.media.features["max-width"]);else{let m=[this.rules[x]];for(let k=x-1;k>=i;k--){let y=this.rules[k],M=y.media,C=M.features["min-width"],E=M.features["max-width"];if(!C&&(!E||E.value!==g||y.hasWhere!==d))break;m.unshift(y)}for(let k=0;k<m.length;k++){let y=m[k];if(!y.media.features["min-width"]){if(y.order>=a)break;s=x-m.length+2+k}}}break}}}if(s===void 0)if(i===-1)s=o+1;else if(c!==-1)s=i+n(this.rules.slice(i),void 0,u=>u.media.features["max-width"]||u.media.features["min-width"]);else if(d){let u=i;for(;u<this.rules.length;u++){let p=this.rules[u];if(p.priority!==-1||!p.hasWhere||p.order>=a){s=u;break}}s===void 0&&(s=u)}else for(let u=i;u<=o;u++){s=u;let p=this.rules[u],x=p.media;if(p.priority!==-1||x.features["max-width"]||x.features["min-width"])break;if(p.hasWhere)s++;else if(p.order>=a)break}}else if(c===-1)if(d)s=this.rules.findIndex(i=>!i.hasWhere||i.media||i.priority!==-1||i.order>=a),s===-1&&(s=o+1);else{let i=0;for(;i<this.rules.length;i++){let u=this.rules[i];if(u.media||!u.hasWhere&&(u.order>=a||u.priority!==-1)){s=i;break}}s===void 0&&(s=i)}else s=n(this.rules,void 0,i=>i.media);if(this.rules.splice(s,0,r),this.ruleOfClass[h]=r,this.style){let i=this.style.sheet,u=0,p=x=>{let b=this.rules[x];if(b){if(!b.natives.length)return p(x-1);let S=b.natives[b.natives.length-1].cssRule;for(let R=0;R<i.cssRules.length;R++)if(i.cssRules[R]===S){u=R+1;break}}};p(s-1);for(let x=0;x<r.natives.length;)try{let b=r.natives[x];i.insertRule(b.text,u),b.cssRule=i.cssRules[u++],x++}catch(b){console.error(b),r.natives.splice(x,1)}}}}get text(){return this.rules.map(t=>t.text).join("")}},B=K;ee(B,"root"),ee(B,"config",ne),ee(B,"instances",[]),ee(B,"refresh",t=>{for(let r of K.instances)r.refresh(t)});me&&(window.MasterCSS=B);var Ee={store:"theme",init:!0},Xe=typeof document<"u",Pe=typeof localStorage<"u",je=class{constructor(t,r=Xe?document.documentElement:null){this.settings=t;this.host=r;this.settings=t?_(Ee,t):Ee,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;s;t;init(){let t=this.settings.default,r=this.storage;r&&(t=r),this.value=t}get storage(){let{store:t}=this.settings;if(Pe&&t)return localStorage.getItem(t)}get systemValue(){return this.e.matches?"dark":"light"}set value(t){this.s=t,t==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.n(),this.current=t)}get value(){return this.s}set current(t){let r=this.t;this.t=t,this.host&&(r&&this.host.classList.remove(r),this.host.classList.contains(t)||(this.host.classList.add(t),this.host.style&&(this.host.style.colorScheme=t)))}get current(){return this.t}switch(t,r={store:!0,emit:!0}){t&&t!==this.value&&(this.value=t,Pe&&this.storage!==t&&this.settings.store&&localStorage.setItem(this.settings.store,t),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.e?.removeEventListener("change",this.i)}i=t=>{this.current=t.matches?"dark":"light"};destroy(){this.n()}};function Je(e){return e=Object.assign({store:"theme"},e),`let e${e.default?`='${e.default}'`:""};const c=localStorage.getItem("${e.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}function Ke(e,t){if(!e?.length)return;let r=new B({...t,observe:!1});for(let s of e)s in r.countOfClass||r.insert(s)&&(r.countOfClass[s]=1);return r.text}function Ae(e,t){if(!e)return;let r=new B({...t,observe:!1}),s=/\sclass="([^"]*)"/gm,o;for(;o=s.exec(e);){let l=o[1].replace(/\n/g,"").split(" ").filter(a=>a);for(let a of l)a in r.countOfClass||(r.insert(a),r.countOfClass[a]=1)}return r.text}function et(e,t){if(e)return e.replace(/(<link[^>]*?rel="styleSheet".*?>|<style.*?>|<\/head>)/,`<style title="master">${Ae(e,t)}</style>$1`)}function tt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var s=Array.from(typeof e=="string"?[e]:e);s[s.length-1]=s[s.length-1].replace(/\r?\n([\t ]*)$/,"");var o=s.reduce(function(c,d){var h=d.match(/\n([\t ]+|(?!\s).)/g);return h?c.concat(h.map(function(n){var i,u;return(u=(i=n.match(/[\t ]/g))===null||i===void 0?void 0:i.length)!==null&&u!==void 0?u:0})):c},[]);if(o.length){var l=new RegExp(`
|
|
2
|
-
[ ]{`+Math.min.apply(Math,
|
|
3
|
-
`)})}
|
|
4
|
-
`)&&(
|
|
5
|
-
`).map(function(
|
|
6
|
-
`)),
|
|
1
|
+
var he=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var Qe=Object.prototype.hasOwnProperty;var qe=(t,e,r)=>e in t?he(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Ze=(t,e)=>{for(var r in e)he(t,r,{get:e[r],enumerable:!0})},Ye=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ue(e))!Qe.call(t,n)&&n!==r&&he(t,n,{get:()=>e[n],enumerable:!(i=He(e,n))||i.enumerable});return t};var Ge=t=>Ye(he({},"__esModule",{value:!0}),t);var ae=(t,e,r)=>(qe(t,typeof e!="symbol"?e+"":e,r),r);var st={};Ze(st,{MasterCSS:()=>G,Rule:()=>le,Theme:()=>Ae,breakpoints:()=>se,colors:()=>ke,config:()=>fe,default:()=>G,defineContent:()=>it,extend:()=>X,fillColorScale:()=>_,functions:()=>pe,getDocThemeInitScript:()=>Ke,important:()=>Oe,observe:()=>Ee,override:()=>Be,render:()=>et,renderFromHTML:()=>Ie,renderIntoHTML:()=>tt,rootSize:()=>Se,rules:()=>Me,scope:()=>Ce,selectors:()=>Re,semantics:()=>$e,themeSettings:()=>je,themes:()=>Te});module.exports=Ge(st);function ze(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function De(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function Fe(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=Fe(r):ze(r)?e[i]=De(r):e[i]=X({},r):e[i]=r}),e}function Le(t,e){return e==="__proto__"?void 0:t[e]}function X(...t){let e={},r,i;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(o){if(i=Le(e,o),r=Le(n,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=Fe(r);return}else if(ze(r)){e[o]=De(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[o]=X({},r);return}else{e[o]=X(i,r);return}})}),e}var we=[":disabled",":active",":focus",":hover"];var ie={"(":")","'":"'",'"':'"',"{":"}"};function de(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,i=-1,n="",o,f=e.charCodeAt(0);if(r==1&&f==45)return"\\"+e;for(;++i<r;){if(o=e.charCodeAt(i),o==0){n+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&f==45){n+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(i);continue}n+="\\"+e.charAt(i)}return n}var Xe={unit:"",order:0,separators:[","]},le=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=X(Xe,r.config);let{unit:n,order:o,colored:f,native:u,analyze:b,transform:c,declare:a,create:s}=this.config,{scope:l,important:p,functions:w}=i.config,{themeNames:x,colorNames:O,colorThemesMap:j,selectors:d,breakpoints:m,mediaQueries:h,themeAffectedClassesBy:k,globalValues:y}=i,C=k[e];this.order=o,s&&s.call(this,e);let R,N,B,Q,Y;if(r.origin==="semantics"){let[L,E]=r.value;Q=e.slice(L.length),R=E}else{let L;if(b)[L,B]=b.call(this,e);else if(r.origin==="match"){let $=e.indexOf(":");this.prefix=e.slice(0,$+1),this.prefix.includes("(")?(this.prefix=void 0,L=e):L=e.slice($+1)}else r.origin==="symbol"&&(this.symbol=e[0],L=e.slice(1));Y=[];let E=this,I=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",v=0;(function $(g,A,M,T=void 0,W=[],H=[],z){let q=T===void 0,P,J=D=>D==="'"||D==='"',re=()=>P=S.length,K=()=>{if(S){let D=S,V=q?D:S.slice(P);if(S="",Z="",I&&V in I&&!W.includes(V)){let U=v;v=0,$(I[V].toString(),A,void 0,T,[...W,V],H,z),v=U,q||(S=S.slice(0,P)+S)}else if(y&&V in y&&!H.includes(V)){let U=v;v=0,$(y[V].toString(),A,void 0,T,W,[...H,V],z),v=U,q||(S=S.slice(0,P)+S)}else if(q){let U=!z&&E.analyzeUnitValue(V,A);Y.push({value:U?.value??V,unit:U?.unit})}else{let U=!z&&E.analyzeUnitValue(V,A);S=U?D.slice(0,P)+U.value+U.unit:D}re()}},ee=J(M);re();let Z="";for(;v<g.length;v++){let D=g[v];if(D===M){if(ee){S+=D;let V=0;for(let U=S.length-2;S[U]==="\\";U--)V++;if(V%2)continue}else K(),S+=D;return}else if(!ee&&D in ie){let V=D==="("&&Z&&w?.[Z];V?.native&&(S=S.slice(0,S.length-Z.length)+V.native,Z=V.native),S+=D,v++;let U=ie[D];$(g,V?.unit??A,U,Z||T||"",W,H,z||!!V?.transform),V?.transform&&(S=S.slice(0,P+Z.length+1)+V.transform.call(E,S.slice(P+Z.length+1,-1))+S.slice(-1)),q&&(J(U)?(Y.push(S),S=""):K()),Z=""}else if((D==="|"||D===" ")&&M!=="}"&&(!ee||T==="path"))K(),q||(S+=" ",P++);else{if(!ee){if(D==="."){if(isNaN(+g[v+1]))break;g[v-1]==="-"&&(S+="0")}else if(F.includes(D)){K(),q?Y.push(D):(S+=D,P++);continue}else if(q&&(D==="#"&&(S||Y.length&&g[v-1]!=="|"&&Y[v-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;Z+=D}S+=D}}T===void 0&&K()})(L,n),Q=L.slice(v)}Q[0]==="!"&&(this.important=!0,Q=Q.slice(1));let Ne=L=>{let E=L.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((v,$)=>$%3?v:v.replace(/_/g," ")).join(""),I=[],F="",S=0;for(let v=0;v<E.length;v++){let $=E[v];if($==="\\"){F+=$+E[++v];continue}!S&&$===","?(I.push(F),F=""):(F+=$,S&&$===")"?S--:$==="("&&S++)}return F&&I.push(F),I};this.prefixSelectors=B?Ne(B):[""];let ve=Q.split("@"),xe=ve[0];if(xe){this.vendorSuffixSelectors={};let L=(v,$,g,A)=>{for(let[M,T]of $)if(M.test(v)){for(let W of T)L(v.replace(M,W),$,g,!0);return}A&&g.push(v)},E=[];""in d?L(xe,d[""],E,!0):E.push(xe);let I={};for(let[v,$]of Object.entries(d)){if(!v)continue;let g=[];for(let A of E)L(A,$,g,!1);g.length&&(I[v]=g)}let F=(v,$)=>{let g=$.reduce((A,M)=>(A.push(...Ne(M)),A),[]);v in this.vendorSuffixSelectors?this.vendorSuffixSelectors[v].push(...g):this.vendorSuffixSelectors[v]=g},S=Object.keys(I);if(S.length)for(let v of S)F(v,I[v]);else F("",E);for(let v of Object.values(this.vendorSuffixSelectors))for(let $ of v){this.hasWhere!==!1&&(this.hasWhere=$.includes(":where("));for(let g=0;g<we.length;g++)if($.includes(we[g])){(this.priority===-1||this.priority>g)&&(this.priority=g);break}}}else this.vendorSuffixSelectors={"":[""]};for(let L=1;L<ve.length;L++){let E=ve[L];if(E)if(x.includes(E))this.theme=E;else if(E==="rtl"||E==="ltr")this.direction=E;else{let I,F,S=E.indexOf("_");if(S!==-1)I=E.slice(0,S),F=E.slice(S);else{let v=E.indexOf("(");v!==-1&&(I=E.slice(0,v),F=E.slice(v))}if(!I){I="media";let v=[];this.media={token:E,features:{}};let $=E.split("&");for(let g of $)if(g==="all"||g==="print"||g==="screen"||g==="speech")this.media.type=g;else if(g==="\u{1F5A8}")this.media.type="print";else if(g==="landscape"||g==="portrait")v.push("(orientation:"+g+")");else if(g==="motion"||g==="reduced-motion")v.push("(prefers-reduced-motion:"+(g==="motion"?"no-preference":"reduce")+")");else if(h&&g in h)v.push(h[g]);else{let A={token:g},M="",T="",W=0;g.startsWith("<=")?(T="<=",M="max-width"):g.startsWith(">=")||m[g]?(T=">=",M="min-width"):g.startsWith(">")?(T=">",M="min-width",W=.02):g.startsWith("<")&&(T="<",M="max-width",W=-.02);let H=T?g.replace(T,""):g,z=m[H];switch(M){case"max-width":case"min-width":z?Object.assign(A,this.analyzeUnitValue(z.toString(),"px")):Object.assign(A,this.analyzeUnitValue(H,"px")),A.unit==="px"&&(A.value+=W),this.media.features[M]=A,v.push("("+M+":"+(A.value+A.unit)+")");break}}F="",this.media.type&&(F=this.media.type),v.length&&(F+=(F?" and ":"")+v.join(" and "))}F&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+F.replace(/_/g," "))}}let ye=(L,E)=>{let I,F=($,g,A)=>{let M="";this.direction&&(M+="[dir="+this.direction+"] ");let T=this.prefixSelectors.map(z=>z+M),W=(z,q)=>T.map(P=>(z?"."+z+" ":"")+(l?l+" ":"")+P).reduce((P,J)=>(P.push(A.reduce((re,K)=>(re.push(J+"."+de(q)+K),re),[]).join(",")),P),[]).join(","),H=W(g,e)+(C?Object.entries(C).filter(([z])=>this.theme||!f||!g||!z||z===g).map(([z,q])=>q.reduce((P,J)=>P+","+W(this.theme??((f||N)&&g||z),J),"")).join(""):"")+"{"+$+"}";for(let z of Object.keys(this.at).sort((q,P)=>P==="supports"?-1:1))H="@"+z+" "+this.at[z]+"{"+H+"}";return H},S=[];if(Y){let $=this.theme?[this.theme,""]:[L],g,A;for(let M of Y)if(typeof M=="string")S.push(M);else{let T=M.value;if(M.unit)T+=M.unit;else if(f&&j&&O){let W=!1,H=!1;T=T.replace(new RegExp(`(^|,| |\\()((?:${O.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(z,q,P,J)=>{H=!0;let re=j[P];if(re){let K;for(let ee of $)if(K=re[ee])break;if(K){W=!0;let ee=K;if(J){let Z=J.endsWith("%")?parseFloat(J)/100:+J;Z=isNaN(Z)?1:Math.min(Math.max(Z,0),1),ee+=Math.round(Z*255).toString(16).toUpperCase().padStart(2,"0")}return q+ee}}return z}),H&&(A=W)}A!==void 0&&!g&&(g=A),S.push(T)}if(E&&(g===void 0?L:!g))return;if(I=S.reduce((M,T,W)=>M+T+(T===","||Y[W+1]===","||W===Y.length-1?"":" "),""),c&&(I=c.call(this,I,this.css.config)),f&&I==="current"&&(I="currentColor"),a){let M,T;if(Y.length===1){let W=Y[0];typeof W=="object"&&(M=W.value,T=W.unit)}R=a.call(this,T?M:I,T||"")}else R={[u]:I}}let v={};for(let $ in R){let g=(T,W)=>{let H=W+((this.important||p)&&!W.endsWith("!important")?"!important":"");T in v?v[T].push(H):v[T]=[H]},A=$+":",M=R[$];if(typeof M=="object"){N=!0;for(let T in M)g(T,A+M[T])}else g(L,A+M.toString())}for(let $ of Object.values(this.vendorSuffixSelectors))for(let g in v)this.natives.push({text:F(v[g].join(";"),g,$),theme:g})};if(this.theme)ye(this.theme,!1);else if(f)for(let L of x)ye(L,!0);else ye("",!1)}at={};priority=-1;natives=[];config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let i=r??this.config.unit;if(i){let n="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[f,u]=e.split("/");return{value:+f/+u*100+"%",unit:n}}else{let f=+o[1];return n=o[3]||"",n||((i==="rem"||i==="em")&&(f=f/this.css.config.rootSize),n=i||""),{value:f,unit:n}}}}};var se={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function ce(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function me(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function _(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,n="0"in t?ce(t[0]):[0,0,0],o,f,u=[],b=()=>{let c=o-i,a=f.map((s,l)=>(s-n[l])/c);for(let s of u){let l=s-i,p=n.map((w,x)=>Math.round(w+a[x]*l));t[s]="#"+me.call(this,...p)}};for(let c=1;c<100;c++)c in t?(u.length?(o=c,f=ce(t[c]),b(),u.length=0,n=f):n=ce(t[c]),i=c):u.push(c);u.length&&(o=100,f="100"in t?ce(t[100]):[255,255,255],b())}return e||(t[""]=t[r?"500":"50"]),t}var ke={black:"#000000",white:"#ffffff",slate:_({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:_({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:_({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:_({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:_({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:_({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:_({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:_({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:_({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:_({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:_({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:_({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:_({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:_({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:_({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:_({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:_({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:_({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:_({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:_({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Se=16;var Ce="";var Re={"::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("};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"},overflow:{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"}};var Te=["dark","light"];var ne={content:"content-box",border:"border-box",padding:"padding-box"};var ue={min:"min-content",max:"max-content"};var te={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in se)te[t]=se[t]/16+"rem";var Me={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(c,a)=>{let s=a.indexOf(":");if(s!==-1){c in e||(e[c]={});let l=e[c],p=a.slice(0,s);p in l||(l[p]=a.slice(s+1))}},i=c=>{let a=(s,l)=>{let p=l.slice(de(c.className).length).match(/\{(.*)\}/)[1].split(";");for(let w of p)r(s,w)};if(this.theme){let s=c.natives.find(l=>l.theme===this.theme)??c.natives.find(l=>!l.theme);s&&a(this.theme,s.text)}else for(let s of c.natives)a(s.theme,s.text)},n=[],o="",f=()=>{o&&(n.push(o.replace(/ /g,"")),o="")},u=1;(function c(a){for(;u<t.length;u++){let s=t[u];if(!a){if(s===";"){f();continue}if(s==="}")break}if(o+=s,a===s){if(a==="'"||a==='"'){let l=0;for(let p=o.length-2;o[p]==="\\";p--)l++;if(l%2)continue}break}else s in ie&&a!=="'"&&a!=='"'&&(u++,c(ie[s]))}})(void 0),f();for(let c of n){let a=this.css.create(c);if(Array.isArray(a))for(let s of a)i(s);else a?i(a):r(this.theme??"",c)}let b={};for(let c in e)for(let[a,s]of Object.entries(e[c]))a in b?b[a][c]=s:b[a]={[c]:s};return console.log(b),b}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){let e={};switch(t){case"subpixel-antialiased":e["-webkit-font-smoothing"]=e["-moz-osx-font-smoothing"]="auto";break;case"antialiased":e["-webkit-font-smoothing"]="antialiased",e["-moz-osx-font-smoothing"]="grayscale";break}return e}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},margin:{match:"^m(?:argin(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ve.call(this,t+e)},get order(){return this.prefix==="margin:"||this.prefix==="m:"?-1:0}},padding:{match:"^p(?:adding(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ve.call(this,t+e)},get order(){return this.prefix==="padding:"||this.prefix==="p:"?-1:0}},flexBasis:{values:te,unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:te},height:{match:"^h:.",unit:"rem",native:!0,values:te},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:te},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:te},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},inset:{match:"^(?:top|bottom|left|right):.",unit:"rem",native:!0,declare(t,e){return{[this.prefix.slice(0,-1)]:t+e}}},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:te},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:te},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflow:{match:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",declare(t,e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t+e};case"y":return{"overflow-y":t+e}}return{overflow:t+e}},get order(){return-1}},overscrollBehavior:{match:"^overscroll-behavior(?:-[xy])?:",declare(t,e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t+e};case"y":return{"overscroll-behavior-y":t+e};default:return{"overscroll-behavior":t+e}}}},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.75+e:`calc(${t}${e} + ${.75}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{...ne,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1},borderColor:{match:"^b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return ge(this.prefix,t+e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{match:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",unit:"rem",declare(t,e){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let o=1;o<n.length-1;o++)i+=n[o][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{"border-top-left-radius":t+e,"border-top-right-radius":t+e};case"tl":case"lt":return{"border-top-left-radius":t+e};case"rt":case"tr":return{"border-top-right-radius":t+e};case"b":return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e};case"bl":case"lb":return{"border-bottom-left-radius":t+e};case"br":case"rb":return{"border-bottom-right-radius":t+e};case"l":return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e};case"r":return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e};default:return{"border-radius":t+e}}}let r=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(r)?r:"border-radius"]:t+e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{match:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",declare(t,e){return ge(this.prefix,t+e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{match:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",unit:"rem",declare(t,e){return ge(this.prefix,t+e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0},border:{match:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",unit:"rem",colored:!0,values:{current:"currentColor"},declare(t,e){return ge(this.prefix,t+e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:ne},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:ne},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:ue},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:ue,native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,values:ue},gridTemplateRows:{native:!0,values:ue},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gap:{match:"^gap(?:-x|-y)?:.",unit:"rem",order:-1,declare(t,e){switch(this.prefix[4]){case"x":return{"column-gap":t+e};case"y":return{"row-gap":t+e};default:return{gap:t+e}}}},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMargin:{match:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t+e,"scroll-margin-right":t+e};case"y":return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e};case"l":return{"scroll-margin-left":t+e};case"r":return{"scroll-margin-right":t+e};case"t":return{"scroll-margin-top":t+e};case"b":return{"scroll-margin-bottom":t+e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{match:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t+e,"scroll-padding-right":t+e};case"y":return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e};case"l":return{"scroll-padding-left":t+e};case"r":return{"scroll-padding-right":t+e};case"t":return{"scroll-padding-top":t+e};case"b":return{"scroll-padding-bottom":t+e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{...ne,margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{...ne,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}};function Ve(t){if(this.prefix.includes("-"))return{[this.prefix.slice(0,-1)]:t};let r=this.prefix[0]==="m"?"margin":"padding",i=r+"-left",n=r+"-right",o=r+"-top",f=r+"-bottom";switch(this.prefix[1]){case"x":return{[i]:t,[n]:t};case"y":return{[o]:t,[f]:t};case"l":return{[i]:t};case"r":return{[n]:t};case"t":return{[o]:t};case"b":return{[f]:t};default:return{[r]:t}}}function ge(t,e,r=""){let i="border-";r&&(r="-"+r);let n=/^b(order)?-?(.)?/.exec(t)[2],o=i+"left"+r,f=i+"right"+r,u=i+"top"+r,b=i+"bottom"+r;switch(n){case"x":return{[o]:e,[f]:e};case"y":return{[u]:e,[b]:e};case"l":return{[o]:e};case"r":return{[f]:e};case"t":return{[u]:e};case"b":return{[b]:e};default:return{["border"+r]:e}}}var Be=!1;var Ee=!0;var Oe=!1;var pe={$:{native:"var",transform(t){return"--"+t}},calc:{transform(t){let e=b=>b==="+"||b==="-"||b==="*"||b==="/",r="",i,n="",o=!1,f=!1,u=(b,c="",a="")=>{if(i===2&&!f){let s=this.analyzeUnitValue(n,pe.calc.unit);s&&(n=s.value+s.unit)}r+=n+c+b+a,i=null,f=!1,n=""};for(let b=0;b<t.length;b++){let c=t[b];if(c==="("||c===")")o=c===")",u(c);else if(c===",")u(c,""," ");else{switch(i){case 1:break;case 2:if(e(c)){u(c," "," ");continue}else/[0-9]/.test(c)||(f=!0);break;default:o&&(r+=" "),isNaN(+c)?e(c)||(i=1):i=2;break}i?n+=c:r+=c}}return u(""),r}},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:""}};var fe={breakpoints:se,colors:ke,rootSize:16,scope:Ce,selectors:Re,semantics:$e,themes:Te,rules:Me,override:!1,observe:!0,important:!1,functions:pe};var _e=[",",".","#","[","!","*",">","+","~",":","@"];var be=typeof window<"u",oe=class{constructor(e){this.config=e;this.config?.override||(this.config=X(fe,e)),this.cache(),be&&this.config.observe&&this.observe(document),oe.instances.push(this)}rules=[];ruleBy={};countBy={};r=be?new MutationObserver(e=>{let r={},i=[],n=[],o=[],f=(a,s)=>{s?a.classList.forEach(b):a.classList.forEach(u);let l=a.children;for(let p=0;p<l.length;p++){let w=l[p];w.classList&&(n.push(w),f(w,s))}},u=a=>{a in r?r[a]++:r[a]=1},b=a=>{a in r?r[a]--:a in this.countBy&&(r[a]=-1)},c=(a,s)=>{for(let l=0;l<a.length;l++){let p=a[l];p.classList&&!n.includes(p)&&!o.includes(p)&&(p.isConnected!==s?(n.push(p),f(p,s)):o.push(p))}};for(let a=0;a<e.length;a++){let s=e[a],{addedNodes:l,removedNodes:p,type:w,target:x}=s;if(w==="attributes"){if(i.find(O=>O.target===x))continue;i.push(s)}else c(l,!1),(!x.isConnected||!n.includes(x))&&c(p,!0)}if(!(!i.length&&!Object.keys(r).length)){for(let{oldValue:a,target:s}of i){let l=n.includes(s),p=s.classList,w=a?a.split(" "):[];if(l){if(s.isConnected)continue;for(let x of w)p.contains(x)||b(x)}else if(s.isConnected){p.forEach(x=>{w.includes(x)||u(x)});for(let x of w)p.contains(x)||b(x)}}for(let a in r){let s=r[a],l=(this.countBy[a]||0)+s;l===0?(delete this.countBy[a],this.delete(a)):(a in this.countBy||this.insert(a),this.countBy[a]=l)}}}):null;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={};let{semantics:e,classes:r,selectors:i,themes:n,colors:o,values:f,breakpoints:u,mediaQueries:b,rules:c}=this.config;function a(d){return d.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(d,m,h="",k={}){let y=B=>B?(h?h+"-":"")+B:h,C=Object.entries(d),R=[],N=[];for(let B of C){let Q=B[1];(typeof Q=="object"&&!Array.isArray(Q)?R:N).push(B)}for(let[B,Q]of R)s(Q,m,y(B),k);if(m&&h)N.length&&(k[h]=N.reduce((B,[Q,Y])=>(B[Q]=Y,B),{}));else for(let[B,Q]of N)k[y(B)]=Q;return k}if(e)for(let[d,m]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+a(d)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[d,m]]);if(i)for(let[d,m]of Object.entries(s(i,!1))){let h=new RegExp(a(d)+"(?![a-z-])");for(let k of Array.isArray(m)?m:[m]){let y=k.match(/^::-[a-z]+-/m)?.[0]??"",C=this.selectors[y];C||(C=this.selectors[y]=[]);let R=C.find(([N])=>N===h);R||(R=[h,[]],C.push(R)),R[1].push(k)}}f&&(this.globalValues=s(f,!1)),u&&(this.breakpoints=s(u,!1)),b&&(this.mediaQueries=s(b,!1));let l=r?s(r,!1):{},p=n&&!Array.isArray(n)?Object.entries(n).filter(([,{classes:d}])=>d).reduce((d,[m,{classes:h}])=>(d[m]=s(h,!1),d),{}):{},w=[...Object.keys(l),...Object.entries(p).flatMap(([d,m])=>Object.keys(m))],x=d=>{if(d in this.classes)return;let m=this.classes[d]=[],h=(k,y)=>{if(!y)return;let C=Array.isArray(y)?y:y.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let R of C){let N=B=>{B in this.themeAffectedClassesBy?k in this.themeAffectedClassesBy[B]?this.themeAffectedClassesBy[B][k].push(d):this.themeAffectedClassesBy[B][k]=[d]:this.themeAffectedClassesBy[B]={[k]:[d]},m.includes(B)||m.push(B)};if(w.includes(R)){x(R);for(let B of this.classes[R])N(B)}else N(R)}};h("",l?.[d]);for(let[k,y]of Object.entries(p))h(k,y?.[d])};for(let d of w)x(d);for(let d in this.themeAffectedClassesBy){let m=this.classesBy[d]=[];for(let h of Object.values(this.themeAffectedClassesBy[d]))for(let k of h)m.includes(k)||m.push(k)}let O=(d,m)=>{if(!m)return;let h=s(m,!0);for(let[k,y]of Object.entries(h)){let C=typeof y=="string"?{"":y}:y;for(let[R,N]of Object.entries(C)){let B=k+(R?"-"+R:"");B in this.colorThemesMap?this.colorThemesMap[B][d]=N:this.colorThemesMap[B]={[d]:N}}}for(let k in m)this.colorNames.includes(k)||this.colorNames.push(k)};if(O("",o),n)if(Array.isArray(n))this.themeNames.push(...n);else for(let d in n){let m=n[d];O(d,m.colors),this.themeNames.push(d)}let j=d=>{for(let[m,h]of Object.entries(this.colorThemesMap))for(let[k,y]of Object.entries(h))y.startsWith("#")||d(m,h,k,y)};if(j((d,m,h,k)=>{let y=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(k);if(y){let C="#"+me(+y[1],+y[2],+y[3]);y[4]&&(C+=Math.round(255*+y[4]).toString(16)),m[h]=C}}),j((d,m,h,k)=>{let[y,C]=k.split("/"),R=this.colorThemesMap[y];if(R){let N=(h?R[h]:void 0)??R[""];m[h]=C?N.slice(0,7)+Math.round(255*+C).toString(16):N}else console.warn(`\`${k}\` doesn't exist in the extended config \`.colors\``),delete m[h],Object.keys(m).length||delete this.colorThemesMap[d]}),c)for(let d in c){let m=c[d],{native:h,values:k,colored:y}=m,C=m.match;if(m.id=d,m.native=h===!0?d.replace(/(?!^)[A-Z]/g,R=>"-"+R).toLowerCase():void 0,k&&(this.values[d]=s(k,!1)),C){let R=Object.keys(this.values[d]??{});C.includes("$values")&&(C=R.length?C.replace(/\$values/,R.join("|")):C.replace(/(?:\|)?\$values/,"")),y&&C.includes("$colors")&&(C=this.colorNames.length?C.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):C.replace(/(?:\|)?\$colors/,"")),this.matches[d]=new RegExp(C)}}}observe(e,r={subtree:!0,childList:!0}){if(be&&e){this.root=e;let i=e===document;i&&(oe.root=this),this.host=i?document.documentElement:root.host;let n=i?document.head:e,o=i?document.styleSheets:e.styleSheets;for(let u of o){let{title:b,href:c,ownerNode:a}=u;(b==="master"||c&&c.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(c))&&(this.style=a)}if(this.style)for(let u=0;u<this.style.sheet.cssRules.length;u++){let b=a=>{if(a.selectorText){let l=a.selectorText.split(", ")[0].split(" ");for(let p=0;p<l.length;p++){let w=l[p];if(w[0]==="."){let x=w.slice(1),O="";for(let j=0;j<x.length;j++){let d=x[j],m=x[j+1];if(d==="\\"){if(j++,m!=="\\"){O+=m;continue}}else if(_e.includes(d))break;O+=d}if(!(O in this.ruleBy)&&!(O in this.classes)){let j=this.create(O)[0];if(j)return j}}}}else if(a.cssRules)for(let s=0;s<a.cssRules.length;s++){let l=b(a.cssRules[s]);if(l)return l}},c=b(this.style.sheet.cssRules[u]);if(c){this.rules.push(c),this.ruleBy[c.className]=c;for(let a=0;a<c.natives.length;a++)c.natives[a].cssRule=this.style.sheet.cssRules[u+a];u+=c.natives.length-1}}else{this.style=document.createElement("style"),this.style.title="master";let u=n.querySelector('link[rel="styleSheet"], style');u?u.before(this.style):n.append(this.style)}let f=u=>{u.forEach(b=>{b in this.countBy?this.countBy[b]++:(this.countBy[b]=1,this.insert(b))})};f(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(u=>f(u.classList)),this.r.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){this.r.disconnect(),this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style.sheet;if(e)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style.remove(),this.style=null}match(e){for(let r in this.config.rules){let i=this.config.rules[r],n=this.matches[r],{symbol:o,native:f}=i;if(n&&n.test(e))return{origin:"match",config:i};if(o&&e.startsWith(o))return{origin:"symbol",config:i};if(f&&e.startsWith(f+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let n=this.match(i);if(n)return new le(i,n,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=X(fe,e),this.cache(),!this.style)return;let r=document.createElement("style");r.title="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=oe.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style.sheet,i=n=>{let o=this.ruleBy[n];if(!(!o||n in this.classesBy&&this.classesBy[n].some(f=>f in this.countBy))){if(o.natives.length){let f=o.natives[0];for(let u=0;u<r.cssRules.length;u++)if(r.cssRules[u]===f.cssRule){for(let c=0;c<o.natives.length;c++)r.deleteRule(u);this.rules.splice(this.rules.indexOf(o),1);break}}delete this.ruleBy[n],o.config.delete&&o.config.delete.call(this,n)}};if(e in this.classes){for(let n of this.classes[e])n in this.countBy||i(n);delete this.ruleBy[e]}else i(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let i,n=this.rules.length-1,{media:o,order:f,priority:u,hasWhere:b,className:c}=r,a=(s,l,p,w)=>{let x=0,O;l&&(x=s.findIndex(l)),p&&(O=s.findIndex(p)),x===-1&&(x=s.length),(O===void 0||O===-1)&&(O=s.length);let j=s.slice(x,O);for(let d=0;d<j.length;d++){let m=j[d];if(!(m.priority===-1||w&&w(m))&&(m.priority<u||m.priority===u&&(b&&!m.hasWhere||m.order>=f)))return x+d}return x+j.length};if(o){let s=this.rules.findIndex(l=>l.media);if(s!==-1){let l=o.features["max-width"],p=o.features["min-width"];if(l&&p){let w=l.value-p.value;for(let x=n;x>=s;x--){i=x;let O=this.rules[x],j=O.media,d=j.features["max-width"],m=j.features["min-width"];if(!d||!m){i++;break}let h=d.value-m.value;if(h===w){if(b!==O.hasWhere)continue;if(u!==-1){let k=[this.rules[x]];for(let y=x-1;y>=s;y--){let C=this.rules[y];if(C.hasWhere!==b)break;let R=C.media,N=R.features["max-width"],B=R.features["min-width"];if(!N||!B||N.value-B.value!==h)break;k.unshift(this.rules[y])}i=a(this.rules,y=>y.media&&y.priority!==-1&&y.media.features["min-width"]&&y.media.features["max-width"])}break}else if(h>w)break}}else if(p)for(let w=s;w<=n;w++){i=w;let x=this.rules[w],O=x.media,j=O.features["max-width"],d=O.features["min-width"];if(j){if(d)break;continue}let m=d?.value;if(m===p.value){if(!b&&x.hasWhere){i++;continue}if(u!==-1)i=a(this.rules,h=>h.media,h=>h.media&&h.priority!==-1&&h.media.features["min-width"]&&h.media.features["max-width"],h=>!h.media.features["min-width"]&&!h.media.features["max-width"]);else for(let h=w;h<=n;h++){let k=this.rules[h],y=k.media,C=y.features["min-width"];if(!y.features["max-width"]){if(k.hasWhere!==b||C.value!==m||k.order>=f)break;i=h+1}}break}else{if(m>p.value)break;i++}}else if(l)for(let w=n;w>=s;w--){i=w;let x=this.rules[w],O=x.media,j=O.features["max-width"];if(O.features["min-width"])continue;let m=j?.value;if(!m||m>l.value){i++;break}else if(m===l.value){if(b&&!x.hasWhere)continue;if(u!==-1)i=a(this.rules,h=>h.media,h=>h.media&&h.priority!==-1&&h.media.features["min-width"]&&h.media.features["max-width"],h=>!h.media.features["min-width"]&&!h.media.features["max-width"]);else{let h=[this.rules[w]];for(let k=w-1;k>=s;k--){let y=this.rules[k],C=y.media,R=C.features["min-width"],N=C.features["max-width"];if(!R&&(!N||N.value!==m||y.hasWhere!==b))break;h.unshift(y)}for(let k=0;k<h.length;k++){let y=h[k];if(!y.media.features["min-width"]){if(y.order>=f)break;i=w-h.length+2+k}}}break}}}if(i===void 0)if(s===-1)i=n+1;else if(u!==-1)i=s+a(this.rules.slice(s),void 0,l=>l.media.features["max-width"]||l.media.features["min-width"]);else if(b){let l=s;for(;l<this.rules.length;l++){let p=this.rules[l];if(p.priority!==-1||!p.hasWhere||p.order>=f){i=l;break}}i===void 0&&(i=l)}else for(let l=s;l<=n;l++){i=l;let p=this.rules[l],w=p.media;if(p.priority!==-1||w.features["max-width"]||w.features["min-width"])break;if(p.hasWhere)i++;else if(p.order>=f)break}}else if(u===-1)if(b)i=this.rules.findIndex(s=>!s.hasWhere||s.media||s.priority!==-1||s.order>=f),i===-1&&(i=n+1);else{let s=0;for(;s<this.rules.length;s++){let l=this.rules[s];if(l.media||!l.hasWhere&&(l.order>=f||l.priority!==-1)){i=s;break}}i===void 0&&(i=s)}else i=a(this.rules,void 0,s=>s.media);if(this.rules.splice(i,0,r),this.ruleBy[c]=r,this.style){let s=this.style.sheet,l=0,p=w=>{let x=this.rules[w];if(x){if(!x.natives.length)return p(w-1);let O=x.natives[x.natives.length-1].cssRule;for(let j=0;j<s.cssRules.length;j++)if(s.cssRules[j]===O){l=j+1;break}}};p(i-1);for(let w=0;w<r.natives.length;)try{let x=r.natives[w];s.insertRule(x.text,l),x.cssRule=s.cssRules[l++],w++}catch(x){console.error(x),r.natives.splice(w,1)}}}}get text(){return this.rules.map(e=>e.text).join("")}},G=oe;ae(G,"root"),ae(G,"config",fe),ae(G,"instances",[]),ae(G,"refresh",e=>{for(let r of oe.instances)r.refresh(e)});be&&(window.MasterCSS=G);var je={store:"theme",init:!0},Je=typeof document<"u",Pe=typeof localStorage<"u",Ae=class{constructor(e,r=Je?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?X(je,e):je,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;i;t;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(Pe&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.i=e,e==="system"?(this.e?.addEventListener?.("change",this.s),this.current=this.systemValue):(this.n(),this.current=e)}get value(){return this.i}set current(e){let r=this.t;this.t=e,this.host&&(r&&this.host.classList.remove(r),this.host.classList.contains(e)||(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Pe&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.e?.removeEventListener("change",this.s)}s=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};function Ke(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}function et(t,e){if(!t?.length)return;let r=new G({...e,observe:!1});for(let i of t)i in r.countBy||r.insert(i)&&(r.countBy[i]=1);return r.text}function Ie(t,e){if(!t)return;let r=new G({...e,observe:!1}),i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(t);){let o=n[1].replace(/\n/g,"").split(" ").filter(f=>f);for(let f of o)f in r.countBy||(r.insert(f),r.countBy[f]=1)}return r.text}function tt(t,e){if(t)return t.replace(/(<link[^>]*?rel="styleSheet".*?>|<style.*?>|<\/head>)/,`<style title="master">${Ie(t,e)}</style>$1`)}function rt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(u,b){var c=b.match(/\n([\t ]+|(?!\s).)/g);return c?u.concat(c.map(function(a){var s,l;return(l=(s=a.match(/[\t ]/g))===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0})):u},[]);if(n.length){var o=new RegExp(`
|
|
2
|
+
[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(u){return u.replace(o,`
|
|
3
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var f=i[0];return e.forEach(function(u,b){var c=f.match(/(?:^|\n)( *)$/),a=c?c[1]:"",s=u;typeof u=="string"&&u.includes(`
|
|
4
|
+
`)&&(s=String(u).split(`
|
|
5
|
+
`).map(function(l,p){return p===0?l:""+a+l}).join(`
|
|
6
|
+
`)),f+=s+i[b+1]}),f}var We=rt;function it({compiler:t,jit:e,ext:r}={}){let i=(s,l=", ")=>s.filter(p=>p).join(l),n=r==="ts",o=r==="js",f=r!=="ts",u=o?"":"export ",b=o?"const":"import",c=o?" = require(":" from ",a=o?")":"";return[(n||e)&&`${b} ${i([e&&(o?"{ MasterCSS }":"MasterCSS"),n?"{ Config }":""])}${c}'@master/css'${a}`,n&&t&&`${b} { Options }${c}'@master/css-compiler'${a}`,(n||e||n&&t)&&"",f&&"/** @type {import('@master/css').Config} */",We`${u}const config${n?": Config":""} = {
|
|
7
7
|
themes: {},
|
|
8
8
|
colors: {},
|
|
9
9
|
classes: {},
|
|
@@ -12,14 +12,14 @@ var le=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var Ue=Objec
|
|
|
12
12
|
breakpoints: {},
|
|
13
13
|
selectors: {},
|
|
14
14
|
mediaQueries: {}
|
|
15
|
-
}`,
|
|
15
|
+
}`,t&&"",t&&f&&"/** @type {import('@master/css-compiler').Options} */",t&&We`${u}const compilerOptions${n?": Options":""} = {
|
|
16
16
|
sources: [],
|
|
17
17
|
classes: {
|
|
18
18
|
fixed: [],
|
|
19
19
|
ignored: []
|
|
20
20
|
}
|
|
21
|
-
}`,
|
|
22
|
-
${
|
|
23
|
-
module.exports = { ${
|
|
21
|
+
}`,e&&`
|
|
22
|
+
${u}const css = new MasterCSS(config)`,!u&&`
|
|
23
|
+
module.exports = { ${i(["config",e&&"css",t&&"compilerOptions"])} }`].filter(s=>typeof s=="string").join(`
|
|
24
24
|
`)+`
|
|
25
25
|
`}
|