@master/css 2.0.0-beta.123 → 2.0.0-beta.124
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/rules.js +1 -1
- package/dist/cjs/theme.js +1 -1
- package/dist/config/rules.d.ts +0 -1
- package/dist/esm/config/rules.js +1 -1
- package/dist/esm/theme.js +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +9 -9
- package/dist/theme.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var Pe=Object.defineProperty;var _e=(e,t,r)=>t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var K=(e,t,r)=>(_e(e,typeof t!="symbol"?t+"":t,r),r);function Re(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Te(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 Me(e){let t=[];return e.forEach(function(r,s){typeof r=="object"&&r!==null?Array.isArray(r)?t[s]=Me(r):Re(r)?t[s]=Te(r):t[s]=Q({},r):t[s]=r}),t}function Ce(e,t){return t==="__proto__"?void 0:e[t]}function Q(...e){let t={},r,s;return e.forEach(function(a){typeof a!="object"||a===null||Array.isArray(a)||Object.keys(a).forEach(function(l){if(s=Ce(t,l),r=Ce(a,l),r!==t)if(typeof r!="object"||r===null){t[l]=r;return}else if(Array.isArray(r)){t[l]=Me(r);return}else if(Re(r)){t[l]=Te(r);return}else if(typeof s!="object"||s===null||Array.isArray(s)){t[l]=Q({},r);return}else{t[l]=Q(s,r);return}})}),t}function oe(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 a=[",",...s],l=[],c="",n=0;return function m(h,o,i,f="",p=[],x=[]){let b,S=!1;o&&(o===")"&&c.slice(-1)==="$"?b=c.length-1:(o==="'"||o==='"')&&(S=!0),c+=h[n++]);let C=()=>{let u=c;if(c="",t&&u in t&&!p.includes(u)){let g=n;n=0,m(t[u].toString(),void 0,void 0,void 0,[...p,u],x),n=g}else if(r&&u in r&&!x.includes(u)){let g=n;n=0,m(r[u].toString(),void 0,void 0,void 0,p,[...x,u]),n=g}else l.push({value:u})};for(;n<h.length;n++){let u=h[n];if(u===o){if(c+=u,S){let g=0;for(let d=c.length-2;c[d]==="\\";d--)g++;if(g%2)continue}b!==void 0&&(c=c.slice(0,b)+c.slice(b).replace(/\$\((.*)\)/,"var(--$1)")),i||(S?l.push(c):C(),f="",c="");break}else if(!S&&u in Y)m(h,Y[u],i===void 0?0:i+1,f,p,x);else if((u==="|"||u===" ")&&o!=="}"&&(!S||f==="path"))o?c+=" ":C();else{if(!o){if(u==="."){if(isNaN(+h[n+1]))break;h[n-1]==="-"&&(c+="0")}else if(a.includes(u)){c&&C(),l.push(u);continue}else if(u==="#"&&(c||l.length&&h[n-1]!=="|"&&l[n-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(u))break;f+=u}c+=u}}i===void 0&&c&&C()}(e),[l,e.slice(n)]}function ae(e,t,r){if(r){let s="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[l,c]=e.split("/");return{value:+l/+c*100+"%",unit:s}}else{let l=+a[1];return s=a[3]||"",s||((r==="rem"||r==="em")&&(l=l/t),s=r||""),{value:l,unit:s}}}}function Oe(e,t,r){let s=o=>o==="+"||o==="-"||o==="*"||o==="/",a="",l,c="",n=!1,m=!1;function h(o,i="",f=""){if(l===2&&!m){let p=ae(c,t,r);p&&(c=p.value+p.unit)}a+=c+i+o+f,l=null,m=!1,c=""}for(let o=0;o<e.length;o++){let i=e[o];if(i==="("||i===")")n=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)||(m=!0);break;default:n&&(a+=" "),isNaN(+i)?s(i)||(l=1):l=2;break}l?c+=i:a+=i}}return c&&(a+=c),a}function le(e,t,r,s,a,l){let c="",n="",m;if(typeof e=="number")c=e,n=t||"";else{if(s){let o=!1,i=!1;e=e.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(f,p,x,b)=>{i=!0;let S=s[x];if(S){let C;for(let u of l)if(C=S[u])break;if(C){o=!0;let u=C;if(b){let g=b.endsWith("%")?parseFloat(b)/100:+b;g=isNaN(g)?1:Math.min(Math.max(g,0),1),u+=Math.round(g*255).toString(16).toUpperCase().padStart(2,"0")}return p+u}}return f}),i&&(m=o)}let h=ae(e,a,t);if(h)return h;c=(e.indexOf("calc(")===-1?e:Oe(e,a,t)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:c,unit:n,colorMatched:m}}var ye=[":disabled",":active",":focus",":hover"];function ce(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,a="",l,c=t.charCodeAt(0);if(r==1&&c==45)return"\\"+t;for(;++s<r;){if(l=t.charCodeAt(s),l==0){a+="\uFFFD";continue}if(l>=1&&l<=31||l==127||s==0&&l>=48&&l<=57||s==1&&l>=48&&l<=57&&c==45){a+="\\"+l.toString(16)+" ";continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){a+=t.charAt(s);continue}a+="\\"+t.charAt(s)}return a}var fe=class{constructor(t,r,s){this.className=t;this.meta=r;this.css=s;let{id:a,unit:l="rem",order:c=0,colorful:n,prop:m,analyzeToken:h,getThemeProps:o,parseValue:i,get:f}=r.config||{},{rootSize:p,scope:x,important:b}=s.config,{themeNames:S,colorNames:C,colorThemesMap:u,selectors:g,globalValues:d,breakpoints:k,mediaQueries:y}=s,M=s.values[a],R=s.relationThemesMap[t],j=t;this.order=c;let O,B,_,G;if(r.origin==="semantics"){let[L,E]=r.value;_=j.slice(L.length),O=E}else if(h)[B,G,_]=h.call(this,j,M,d);else{let L;if(r.origin==="matches"){let E=j.indexOf(":");this.prefix=j.slice(0,E+1),this.prefix.includes("(")?(this.prefix=void 0,L=j):L=j.slice(E+1)}else r.origin==="symbol"&&(this.symbol=j[0],L=j.slice(1));[G,_]=Z(L,M,d)}_[0]==="!"&&(this.important=!0,_=_.slice(1));let we=L=>{let E=L.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((w,T)=>T%3?w:w.replace(/_/g," ")).join(""),$=[],N="",D=0;for(let w=0;w<E.length;w++){let T=E[w];if(T==="\\"){N+=T+E[++w];continue}!D&&T===","?($.push(N),N=""):(N+=T,D&&T===")"?D--:T==="("&&D++)}return N&&$.push(N),$};this.prefixSelectors=B?we(B):[""];let pe=_.split("@"),be=pe[0];if(be){this.vendorSuffixSelectors={};let L=(w,T,v,A)=>{for(let[W,F]of T)if(W.test(w)){for(let P of F)L(w.replace(W,P),T,v,!0);return}A&&v.push(w)},E=[];""in g?L(be,g[""],E,!0):E.push(be);let $={};for(let[w,T]of Object.entries(g)){if(!w)continue;let v=[];for(let A of E)L(A,T,v,!1);v.length&&($[w]=v)}let N=(w,T)=>{let v=T.reduce((A,W)=>(A.push(...we(W)),A),[]);w in this.vendorSuffixSelectors?this.vendorSuffixSelectors[w].push(...v):this.vendorSuffixSelectors[w]=v},D=Object.keys($);if(D.length)for(let w of D)N(w,$[w]);else N("",E);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<ye.length;v++)if(T.includes(ye[v])){(this.priority===-1||this.priority>v)&&(this.priority=v);break}}}else this.vendorSuffixSelectors={"":[""]};for(let L=1;L<pe.length;L++){let E=pe[L];if(E)if(S.includes(E))this.theme=E;else if(E==="rtl"||E==="ltr")this.direction=E;else{let $,N,D=E.indexOf("_");if(D!==-1)$=E.slice(0,D),N=E.slice(D);else{let w=E.indexOf("(");w!==-1&&($=E.slice(0,w),N=E.slice(w))}if(!$){$="media";let w=[];this.media={token:E,features:{}};let T=E.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},W="",F="",P=0;v.startsWith("<=")?(F="<=",W="max-width"):v.startsWith(">=")||k[v]?(F=">=",W="min-width"):v.startsWith(">")?(F=">",W="min-width",P=.02):v.startsWith("<")&&(F="<",W="max-width",P=-.02);let U=F?v.replace(F,""):v,z=k[U];switch(W){case"max-width":case"min-width":z?Object.assign(A,le(z,"px")):Object.assign(A,le(U,"px")),A.unit==="px"&&(A.value+=P),this.media.features[W]=A,w.push("("+W+":"+(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 ie=(L,E)=>{let $,N,D=(T,v,A)=>{let W="";this.direction&&(W+="[dir="+this.direction+"] ");let F=this.prefixSelectors.map(z=>z+W),P=(z,ne)=>F.map(q=>(z?"."+z+" ":"")+(x?x+" ":"")+q).reduce((q,xe)=>(q.push(A.reduce((Se,Ve)=>(Se.push(xe+"."+ce(ne)+Ve),Se),[]).join(",")),q),[]).join(","),U=P(v,t)+(R?Object.entries(R).filter(([z])=>this.theme||!n||!v||!z||z===v).map(([z,ne])=>ne.reduce((q,xe)=>q+","+P(this.theme??((n||o)&&v||z),xe),"")).join(""):"")+"{"+T+"}";for(let z of Object.keys(this.at).sort((ne,q)=>q==="supports"?-1:1))U="@"+z+" "+this.at[z]+"{"+U+"}";return U},w=[];if(G){let T,v;for(let A of G)typeof A=="string"?w.push(A):(T=le(A.value,l,n&&C,n&&u,p,this.theme?[this.theme,""]:[L]),T.colorMatched!==void 0&&v!==!0&&(v=T.colorMatched),w.push(T.value+T.unit));if(E&&(v===void 0?L:!v))return;if(w.length===1?T?($=T.value,N=T.unit):$=w[0]:$=w.reduce((A,W,F)=>A+W+(W===","||G[F+1]===","||F===G.length-1?"":" "),""),typeof $!="object"){i&&($=i.call(this,$,this.css.config)),n&&$==="current"&&($="currentColor");let A={unit:N,value:$,important:this.important};if(o){let W=o.call(this,A,s);for(let F in W)for(let P of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:$,text:D(Object.entries(W[F]).map(([U,z])=>oe(U,{important:(this.important||b)&&!z.endsWith("!important"),unit:"",value:z})).join(";"),F,P),theme:F});return}else f&&($=f.call(this,A))}}else $=O;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:$,text:D(typeof $=="object"?Object.entries($).map(([v,A])=>oe(v,{...typeof A=="object"?A:{unit:"",value:A},important:this.important||b})).join(";"):oe(m,{unit:N,value:$,important:this.important||b}),L,T),theme:L})};if(o)ie(void 0,!1);else if(this.theme)ie(this.theme,!1);else if(n)for(let L of S)ie(L,!0);else ie("",!1)}at={};priority=-1;natives=[];get text(){return this.natives.map(t=>t.text).join("")}};var ee={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function te(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 ue(e,t,r){return((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)}function I(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,a="0"in e?te(e[0]):[0,0,0],l,c,n=[],m=()=>{let h=l-s,o=c.map((i,f)=>(i-a[f])/h);for(let i of n){let f=i-s,p=a.map((x,b)=>Math.round(x+o[b]*f));e[i]="#"+ue.call(this,...p)}};for(let h=1;h<100;h++)h in e?(n.length?(l=h,c=te(e[h]),m(),n.length=0,a=c):a=te(e[h]),s=h):n.push(h);n.length&&(l=100,c="100"in e?te(e[100]):[255,255,255],m())}return t||(e[""]=e[r?"500":"50"]),e}var $e={black:"#000000",white:"#ffffff",slate:I({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:I({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:I({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:I({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:I({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:I({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:I({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:I({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:I({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:I({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:I({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:I({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:I({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:I({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:I({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:I({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:I({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:I({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:I({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:I({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var je=16;var Ee="";var Ae={"::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 Ne={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 Le=["dark","light"];var he={store:"theme"};function re(e,t,r=""){let s="border-";r&&(r="-"+r);let a=/^b(order)?-?(.)?/.exec(e)[2],l=s+"left"+r,c=s+"right"+r,n=s+"top"+r,m=s+"bottom"+r;switch(a){case"x":return{[l]:t,[c]:t};case"y":return{[n]:t,[m]:t};case"l":return{[l]:t};case"r":return{[c]:t};case"t":return{[n]:t};case"b":return{[m]:t};default:return{["border"+r]:t}}}function ve(e,t,{rootSize:r}){let s="",a=0;return function l(c,n){let m="",h=n?t(n):"",o=()=>{m&&(s+=!h||Number.isNaN(+m)?m:+m/(h==="rem"?r:1)+h,m="")};for(;a<e.length;a++){let i=e[a];if(i===c&&(c!=="'"||e[a+1]===")")){o(),s+=i;break}else i===","||i===" "?(o(),s+=i):!m&&i==="'"?(s+=i,a++,l(i),m=""):m&&i==="("?(s+=m+i,a++,l(")",m),m=""):m+=i}o()}(),s}var X={content:"content-box",border:"border-box",padding:"padding-box"};var se={min:"min-content",max:"max-content"};var H={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let e in ee)H[e]=ee[e]/16+"rem";(()=>{let e=typeof global<"u"?global:window;if(!e.CSS&&!e.CSS?.escape){let t=function(r){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let s=String(r),a=s.length,l=-1,c="",n,m=s.charCodeAt(0);if(a==1&&m==45)return"\\"+s;for(;++l<a;){if(n=s.charCodeAt(l),n==0){c+="\uFFFD";continue}if(n>=1&&n<=31||n==127||l==0&&n>=48&&n<=57||l==1&&n>=48&&n<=57&&m==45){c+="\\"+n.toString(16)+" ";continue}if(n>=128||n==45||n==95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){c+=s.charAt(l);continue}c+="\\"+s.charAt(l)}return c};e.CSS||(e.CSS={}),e.CSS.escape=t,globalThis.CSS.escape=t}})();var We={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,o)=>{let i=o.indexOf(":");if(i!==-1){h in r||(r[h]={});let f=r[h],p=o.slice(0,i);p in f||(f[p]=o.slice(i+1))}},a=h=>{let o=(i,f)=>{let p=f.slice(ce(h.className).length).match(/\{(.*)\}/)[1].split(";");for(let x of p)s(i,x)};if(this.theme){let i=h.natives.find(f=>f.theme===this.theme)??h.natives.find(f=>!f.theme);i&&o(this.theme,i.text)}else for(let i of h.natives)o(i.theme,i.text)},l=[],c="",n=()=>{c&&(l.push(c.replace(/ /g,"")),c="")},m=1;(function h(o){for(;m<e.value.length;m++){let i=e.value[m];if(!o){if(i===";"){n();continue}if(i==="}")break}if(c+=i,o===i){if(o==="'"||o==='"'){let f=0;for(let p=c.length-2;c[p]==="\\";p--)f++;if(f%2)continue}break}else i in Y&&o!=="'"&&o!=='"'&&(m++,h(Y[i]))}})(void 0),n();for(let h of l){let o=t.create(h);if(Array.isArray(o))for(let i of o)a(i);else o?a(o):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",a=r+"-right",l=r+"-top",c=r+"-bottom";switch(this.prefix[1]){case"x":return{[s]:e,[a]:e};case"y":return{[l]:e,[c]:e};case"l":return{[s]:e};case"r":return{[a]:e};case"t":return{[l]:e};case"b":return{[c]: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:H},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:H},height:{matches:"^h:.",values:H},minWidth:{matches:"^min-w:.",values:H},minHeight:{matches:"^min-h:.",values:H},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:H},maxWidth:{matches:"^max-w:.",values:H},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:{...X,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,a,l)=>{let c,n;switch(s){case"translate":c="rem";break;case"skew":c="deg";break;case"rotate":a==="3d"&&(n=!0),c="deg";break;default:return r}let m=l.split(",");return r.replace(l,m.map((h,o)=>!n||m.length-1===o?Number.isNaN(+h)?h:h/(c==="rem"?t:1)+c: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 re(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 a=1;a<s.length-1;a++)r+=s[a][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 re(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 re(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 re(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:X},backgroundOrigin:{matches:"^(?:bg|background):(?:$values)(?!\\|)",values:X},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 ve(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 ve(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:se},gridAutoFlow:{matches:"^grid-flow:."},gridAutoRows:{values:se},gridTemplateAreas:{},gridTemplateColumns:{matches:"^grid-template-cols:.",values:se},gridTemplateRows:{values:se},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:{...X,margin:"margin-box"}},shapeMargin:{matches:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$"},shapeImageThreshold:{unit:""},clipPath:{matches:"^clip:.",values:{...X,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 Ie=!1;var ze=!0;var Fe=!1;var me={breakpoints:ee,colors:$e,rootSize:16,scope:Ee,selectors:Ae,semantics:Ne,themes:Le,theme:he,rules:We,override:!1,observe:!0,important:!1};var de=class{constructor(t=typeof document<"u"?document.documentElement:null,r){this.host=t;this.options=r;this.options=Q(he,r),this.options.store&&this.storage?this.syncWithStorage():this.options.default&&this.set(this.options.default,{emit:!1,store:!1})}darkMQL=typeof window<"u"?window.matchMedia?.("(prefers-color-scheme:dark)"):void 0;get storage(){let{store:t}=this.options;if(t)return localStorage.getItem(t)}current;value;set(t,r={store:!0,emit:!0}){if(t!==this.value){let s;t==="system"?(this.darkMQL?.addEventListener?.("change",this.onThemeChange),s=this.darkMQL?.matches?"dark":"light"):(this.removeDarkMQLListener(),s=t),s&&(this.host.classList.remove(this.current),this.host.classList.add(s),this.host.style&&(this.host.style.colorScheme=s)),this.current=s,this.value=t,r.store,this.storage,this.options.store&&localStorage.setItem(this.options.store,t),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this}))}}syncWithStorage(){if(typeof window<"u"&&this.options.store){let t=this.storage;(t==="system"&&(t=this.darkMQL?.matches?"dark":"light")||t)&&(this.host.classList.add(t),this.host.style.colorScheme=t,this.set(t,{emit:!1,store:!1}))}}removeDarkMQLListener(){this.darkMQL?.removeEventListener("change",this.onThemeChange)}onThemeChange=t=>{this.set(t.matches?"dark":"light")};destroy(){this.darkMQL?.removeEventListener("change",this.onThemeChange)}};var De=[",",".","#","[","!","*",">","+","~",":","@"];var ge=typeof window<"u",J=class{constructor(t){this.config=t;this.config?.override||(this.config=Q(me,t)),this.cache(),ge&&this.config.observe&&this.observe(document),J.instances.push(this),this.ready=!0}rules=[];ruleOfClass={};countOfClass={};ready=!1;e=ge?new MutationObserver(t=>{let r={},s=[],a=[],l=[],c=(o,i)=>{i?o.classList.forEach(m):o.classList.forEach(n);let f=o.children;for(let p=0;p<f.length;p++){let x=f[p];x.classList&&(a.push(x),c(x,i))}},n=o=>{o in r?r[o]++:r[o]=1},m=o=>{o in r?r[o]--:o in this.countOfClass&&(r[o]=-1)},h=(o,i)=>{for(let f=0;f<o.length;f++){let p=o[f];p.classList&&!a.includes(p)&&!l.includes(p)&&(p.isConnected!==i?(a.push(p),c(p,i)):l.push(p))}};for(let o=0;o<t.length;o++){let i=t[o],{addedNodes:f,removedNodes:p,type:x,target:b}=i;if(x==="attributes"){if(s.find(S=>S.target===b))continue;s.push(i)}else h(f,!1),(!b.isConnected||!a.includes(b))&&h(p,!0)}if(!(!s.length&&!Object.keys(r).length)){for(let{oldValue:o,target:i}of s){let f=a.includes(i),p=i.classList,x=o?o.split(" "):[];if(f){if(i.isConnected)continue;for(let b of x)p.contains(b)||m(b)}else if(i.isConnected){p.forEach(b=>{x.includes(b)||n(b)});for(let b of x)p.contains(b)||m(b)}}for(let o in r){let i=r[o],f=(this.countOfClass[o]||0)+i;f===0?(delete this.countOfClass[o],this.delete(o)):(o in this.countOfClass||this.insert(o),this.countOfClass[o]=f)}}}):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:a,colors:l,values:c,breakpoints:n,mediaQueries:m,rules:h}=this.config;function o(u){return u.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function i(u,g,d="",k={}){let y=O=>O?(d?d+"-":"")+O:d,M=Object.entries(u),R=[],j=[];for(let O of M){let B=O[1];(typeof B=="object"&&!Array.isArray(B)?R:j).push(O)}for(let[O,B]of R)i(B,g,y(O),k);if(g&&d)j.length&&(k[d]=j.reduce((O,[B,_])=>(O[B]=_,O),{}));else for(let[O,B]of j)k[y(O)]=B;return k}if(t)for(let[u,g]of Object.entries(i(t,!0)))this.semantics.push([new RegExp("^"+o(u)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[u,g]]);if(s)for(let[u,g]of Object.entries(i(s,!1))){let d=new RegExp(o(u)+"(?![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 R=M.find(([j])=>j===d);R||(R=[d,[]],M.push(R)),R[1].push(k)}}c&&(this.globalValues=i(c,!1)),n&&(this.breakpoints=i(n,!1)),m&&(this.mediaQueries=i(m,!1));let f=r?i(r,!1):{},p=a&&!Array.isArray(a)?Object.entries(a).filter(([,{classes:u}])=>u).reduce((u,[g,{classes:d}])=>(u[g]=i(d,!1),u),{}):{},x=[...Object.keys(f),...Object.entries(p).flatMap(([u,g])=>Object.keys(g))],b=u=>{if(u in this.classes)return;let g=this.classes[u]=[],d=(k,y)=>{if(!y)return;let M=Array.isArray(y)?y:y.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let R of M){let j=O=>{O in this.relationThemesMap?k in this.relationThemesMap[O]?this.relationThemesMap[O][k].push(u):this.relationThemesMap[O][k]=[u]:this.relationThemesMap[O]={[k]:[u]},g.includes(O)||g.push(O)};if(x.includes(R)){b(R);for(let O of this.classes[R])j(O)}else j(R)}};d("",f?.[u]);for(let[k,y]of Object.entries(p))d(k,y?.[u])};for(let u of x)b(u);for(let u in this.relationThemesMap){let g=this.relations[u]=[];for(let d of Object.values(this.relationThemesMap[u]))for(let k of d)g.includes(k)||g.push(k)}let S=(u,g)=>{if(!g)return;let d=i(g,!0);for(let[k,y]of Object.entries(d)){let M=typeof y=="string"?{"":y}:y;for(let[R,j]of Object.entries(M)){let O=k+(R?"-"+R:"");O in this.colorThemesMap?this.colorThemesMap[O][u]=j:this.colorThemesMap[O]={[u]:j}}}for(let k in g)this.colorNames.includes(k)||this.colorNames.push(k)};if(S("",l),a)if(Array.isArray(a))this.themeNames.push(...a);else for(let u in a){let g=a[u];S(u,g.colors),this.themeNames.push(u)}let C=u=>{for(let[g,d]of Object.entries(this.colorThemesMap))for(let[k,y]of Object.entries(d))y.startsWith("#")||u(g,d,k,y)};if(C((u,g,d,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="#"+ue(+y[1],+y[2],+y[3]);y[4]&&(M+=Math.round(255*+y[4]).toString(16)),g[d]=M}}),C((u,g,d,k)=>{let[y,M]=k.split("/"),R=this.colorThemesMap[y];if(R){let j=(d?R[d]:void 0)??R[""];g[d]=M?j.slice(0,7)+Math.round(255*+M).toString(16):j}else console.warn(`\`${k}\` doesn't exist in the extended config \`.colors\``),delete g[d],Object.keys(g).length||delete this.colorThemesMap[u]}),h)for(let u in h){let g=h[u],{matches:d,prop:k,values:y}=g;if(g.id=u,g.prop=k===!1?"":u.replace(/(?!^)[A-Z]/g,M=>"-"+M).toLowerCase(),y&&(this.values[u]=i(y,!1)),d){let M=Object.keys(this.values[u]??{}),R=d.indexOf("$values");this.matches[u]=new RegExp(R===-1?d:M.length?d.slice(0,R)+M.join("|")+d.slice(R+7):d.slice(0,R-(d[R-1]==="|"?1:0))+d.slice(R+7+(d[R+7]==="|"?1:0)))}}}observe(t,r={subtree:!0,childList:!0}){if(ge&&t){this.root=t;let s=t===document;s&&(J.root=this),this.host=s?document.documentElement:root.host,this.theme=new de(this.host,this.config.theme);let a=s?document.head:t,l=s?document.styleSheets:t.styleSheets;for(let n of l){let{title:m,href:h,ownerNode:o}=n;(m==="master"||h&&h.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(h))&&(this.style=o)}if(this.style)for(let n=0;n<this.style.sheet.cssRules.length;n++){let m=o=>{if(o.selectorText){let f=o.selectorText.split(", ")[0].split(" ");for(let p=0;p<f.length;p++){let x=f[p];if(x[0]==="."){let b=x.slice(1),S="";for(let C=0;C<b.length;C++){let u=b[C],g=b[C+1];if(u==="\\"){if(C++,g!=="\\"){S+=g;continue}}else if(De.includes(u))break;S+=u}if(!(S in this.ruleOfClass)&&!(S in this.classes)){let C=this.create(S)[0];if(C)return C}}}}else if(o.cssRules)for(let i=0;i<o.cssRules.length;i++){let f=m(o.cssRules[i]);if(f)return f}},h=m(this.style.sheet.cssRules[n]);if(h){this.rules.push(h),this.ruleOfClass[h.className]=h;for(let o=0;o<h.natives.length;o++)h.natives[o].cssRule=this.style.sheet.cssRules[n+o];n+=h.natives.length-1}}else{this.style=document.createElement("style"),this.style.title="master";let n=a.querySelector('link[rel="styleSheet"], style');n?n.before(this.style):a.append(this.style)}let c=n=>{n.forEach(m=>{m in this.countOfClass?this.countOfClass[m]++:(this.countOfClass[m]=1,this.insert(m))})};c(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(n=>c(n.classList)),this.e.observe(t,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){this.e.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,this.theme?.destroy(),this.theme=null}match(t){for(let r in this.config.rules){let s=this.config.rules[r],a=this.matches[r],{colorStarts:l,symbol:c,prop:n}=s,{colorNames:m,colorThemesMap:h}=this;if(a&&a.test(t))return{origin:"matches",config:s};if(l){if(t.match("^"+l+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))"))return{origin:"matches",config:s};if(m.length&&t.indexOf("|")===-1){let o=t.match("^"+l+"((?:"+m.join("|")+")[0-9a-zA-Z-]*)");if(o&&o[1]in h)return{origin:"matches",config:s}}}if(c&&t.startsWith(c))return{origin:"symbol",config:s};if(n&&t.startsWith(n+":"))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 a=this.match(s);if(a)return new fe(s,a,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=Q(me,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=J.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let r=this.style.sheet,s=a=>{let l=this.ruleOfClass[a];if(!(!l||a in this.relations&&this.relations[a].some(c=>c in this.countOfClass))){if(l.natives.length){let c=l.natives[0];for(let n=0;n<r.cssRules.length;n++)if(r.cssRules[n]===c.cssRule){for(let h=0;h<l.natives.length;h++)r.deleteRule(n);this.rules.splice(this.rules.indexOf(l),1);break}}delete this.ruleOfClass[a]}};if(t in this.classes){for(let a of this.classes[t])a in this.countOfClass||s(a);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,a=this.rules.length-1,{media:l,order:c,priority:n,hasWhere:m,className:h}=r,o=(i,f,p,x)=>{let b=0,S;f&&(b=i.findIndex(f)),p&&(S=i.findIndex(p)),b===-1&&(b=i.length),(S===void 0||S===-1)&&(S=i.length);let C=i.slice(b,S);for(let u=0;u<C.length;u++){let g=C[u];if(!(g.priority===-1||x&&x(g))&&(g.priority<n||g.priority===n&&(m&&!g.hasWhere||g.order>=c)))return b+u}return b+C.length};if(l){let i=this.rules.findIndex(f=>f.media);if(i!==-1){let f=l.features["max-width"],p=l.features["min-width"];if(f&&p){let x=f.value-p.value;for(let b=a;b>=i;b--){s=b;let S=this.rules[b],C=S.media,u=C.features["max-width"],g=C.features["min-width"];if(!u||!g){s++;break}let d=u.value-g.value;if(d===x){if(m!==S.hasWhere)continue;if(n!==-1){let k=[this.rules[b]];for(let y=b-1;y>=i;y--){let M=this.rules[y];if(M.hasWhere!==m)break;let R=M.media,j=R.features["max-width"],O=R.features["min-width"];if(!j||!O||j.value-O.value!==d)break;k.unshift(this.rules[y])}s=o(this.rules,y=>y.media&&y.priority!==-1&&y.media.features["min-width"]&&y.media.features["max-width"])}break}else if(d>x)break}}else if(p)for(let x=i;x<=a;x++){s=x;let b=this.rules[x],S=b.media,C=S.features["max-width"],u=S.features["min-width"];if(C){if(u)break;continue}let g=u?.value;if(g===p.value){if(!m&&b.hasWhere){s++;continue}if(n!==-1)s=o(this.rules,d=>d.media,d=>d.media&&d.priority!==-1&&d.media.features["min-width"]&&d.media.features["max-width"],d=>!d.media.features["min-width"]&&!d.media.features["max-width"]);else for(let d=x;d<=a;d++){let k=this.rules[d],y=k.media,M=y.features["min-width"];if(!y.features["max-width"]){if(k.hasWhere!==m||M.value!==g||k.order>=c)break;s=d+1}}break}else{if(g>p.value)break;s++}}else if(f)for(let x=a;x>=i;x--){s=x;let b=this.rules[x],S=b.media,C=S.features["max-width"];if(S.features["min-width"])continue;let g=C?.value;if(!g||g>f.value){s++;break}else if(g===f.value){if(m&&!b.hasWhere)continue;if(n!==-1)s=o(this.rules,d=>d.media,d=>d.media&&d.priority!==-1&&d.media.features["min-width"]&&d.media.features["max-width"],d=>!d.media.features["min-width"]&&!d.media.features["max-width"]);else{let d=[this.rules[x]];for(let k=x-1;k>=i;k--){let y=this.rules[k],M=y.media,R=M.features["min-width"],j=M.features["max-width"];if(!R&&(!j||j.value!==g||y.hasWhere!==m))break;d.unshift(y)}for(let k=0;k<d.length;k++){let y=d[k];if(!y.media.features["min-width"]){if(y.order>=c)break;s=x-d.length+2+k}}}break}}}if(s===void 0)if(i===-1)s=a+1;else if(n!==-1)s=i+o(this.rules.slice(i),void 0,f=>f.media.features["max-width"]||f.media.features["min-width"]);else if(m){let f=i;for(;f<this.rules.length;f++){let p=this.rules[f];if(p.priority!==-1||!p.hasWhere||p.order>=c){s=f;break}}s===void 0&&(s=f)}else for(let f=i;f<=a;f++){s=f;let p=this.rules[f],x=p.media;if(p.priority!==-1||x.features["max-width"]||x.features["min-width"])break;if(p.hasWhere)s++;else if(p.order>=c)break}}else if(n===-1)if(m)s=this.rules.findIndex(i=>!i.hasWhere||i.media||i.priority!==-1||i.order>=c),s===-1&&(s=a+1);else{let i=0;for(;i<this.rules.length;i++){let f=this.rules[i];if(f.media||!f.hasWhere&&(f.order>=c||f.priority!==-1)){s=i;break}}s===void 0&&(s=i)}else s=o(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,f=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 C=0;C<i.cssRules.length;C++)if(i.cssRules[C]===S){f=C+1;break}}};p(s-1);for(let x=0;x<r.natives.length;)try{let b=r.natives[x];i.insertRule(b.text,f),b.cssRule=i.cssRules[f++],x++}catch(b){console.error(b),r.natives.splice(x,1)}}}}get text(){return this.rules.map(t=>t.text).join("")}},V=J;K(V,"root"),K(V,"config",me),K(V,"instances",[]),K(V,"refresh",t=>{for(let r of J.instances)r.refresh(t)});ge&&(window.MasterCSS=V);function br(e,t){if(!e?.length)return;let r=new V({...t,observe:!1});for(let s of e)s in r.countOfClass||r.insert(s)&&(r.countOfClass[s]=1);return r.text}function Be(e,t){if(!e)return;let r=new V({...t,observe:!1}),s=/\sclass="([^"]*)"/gm,a;for(;a=s.exec(e);){let l=a[1].replace(/\n/g,"").split(" ").filter(c=>c);for(let c of l)c in r.countOfClass||(r.insert(c),r.countOfClass[c]=1)}return r.text}function wr(e,t){if(e)return e.replace(/(<link[^>]*?rel="styleSheet".*?>|<style.*?>|<\/head>)/,`<style title="master">${Be(e,t)}</style>$1`)}function Qe(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 a=s.reduce(function(n,m){var h=m.match(/\n([\t ]+|(?!\s).)/g);return h?n.concat(h.map(function(o){var i,f;return(f=(i=o.match(/[\t ]/g))===null||i===void 0?void 0:i.length)!==null&&f!==void 0?f:0})):n},[]);if(a.length){var l=new RegExp(`
|
|
2
|
-
[ ]{`+Math.min.apply(Math,
|
|
3
|
-
`)})}s[0]=s[0].replace(/^\r?\n/,"");var
|
|
4
|
-
`)&&(i=String(
|
|
5
|
-
`).map(function(f,p){return p===0?f:""+
|
|
6
|
-
`)),
|
|
1
|
+
var Pe=Object.defineProperty;var _e=(e,t,r)=>t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var K=(e,t,r)=>(_e(e,typeof t!="symbol"?t+"":t,r),r);function Re(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Te(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 Me(e){let t=[];return e.forEach(function(r,s){typeof r=="object"&&r!==null?Array.isArray(r)?t[s]=Me(r):Re(r)?t[s]=Te(r):t[s]=Q({},r):t[s]=r}),t}function Ce(e,t){return t==="__proto__"?void 0:e[t]}function Q(...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=Ce(t,l),r=Ce(o,l),r!==t)if(typeof r!="object"||r===null){t[l]=r;return}else if(Array.isArray(r)){t[l]=Me(r);return}else if(Re(r)){t[l]=Te(r);return}else if(typeof s!="object"||s===null||Array.isArray(s)){t[l]=Q({},r);return}else{t[l]=Q(s,r);return}})}),t}function oe(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 m(h,n,i,f="",p=[],x=[]){let b,S=!1;n&&(n===")"&&a.slice(-1)==="$"?b=a.length-1:(n==="'"||n==='"')&&(S=!0),a+=h[c++]);let C=()=>{let u=a;if(a="",t&&u in t&&!p.includes(u)){let g=c;c=0,m(t[u].toString(),void 0,void 0,void 0,[...p,u],x),c=g}else if(r&&u in r&&!x.includes(u)){let g=c;c=0,m(r[u].toString(),void 0,void 0,void 0,p,[...x,u]),c=g}else l.push({value:u})};for(;c<h.length;c++){let u=h[c];if(u===n){if(a+=u,S){let g=0;for(let d=a.length-2;a[d]==="\\";d--)g++;if(g%2)continue}b!==void 0&&(a=a.slice(0,b)+a.slice(b).replace(/\$\((.*)\)/,"var(--$1)")),i||(S?l.push(a):C(),f="",a="");break}else if(!S&&u in Y)m(h,Y[u],i===void 0?0:i+1,f,p,x);else if((u==="|"||u===" ")&&n!=="}"&&(!S||f==="path"))n?a+=" ":C();else{if(!n){if(u==="."){if(isNaN(+h[c+1]))break;h[c-1]==="-"&&(a+="0")}else if(o.includes(u)){a&&C(),l.push(u);continue}else if(u==="#"&&(a||l.length&&h[c-1]!=="|"&&l[c-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(u))break;f+=u}a+=u}}i===void 0&&a&&C()}(e),[l,e.slice(c)]}function ae(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 Oe(e,t,r){let s=n=>n==="+"||n==="-"||n==="*"||n==="/",o="",l,a="",c=!1,m=!1;function h(n,i="",f=""){if(l===2&&!m){let p=ae(a,t,r);p&&(a=p.value+p.unit)}o+=a+i+n+f,l=null,m=!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)||(m=!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 le(e,t,r,s,o,l){let a="",c="",m;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"),(f,p,x,b)=>{i=!0;let S=s[x];if(S){let C;for(let u of l)if(C=S[u])break;if(C){n=!0;let u=C;if(b){let g=b.endsWith("%")?parseFloat(b)/100:+b;g=isNaN(g)?1:Math.min(Math.max(g,0),1),u+=Math.round(g*255).toString(16).toUpperCase().padStart(2,"0")}return p+u}}return f}),i&&(m=n)}let h=ae(e,o,t);if(h)return h;a=(e.indexOf("calc(")===-1?e:Oe(e,o,t)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:a,unit:c,colorMatched:m}}var ye=[":disabled",":active",":focus",":hover"];function ce(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 fe=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:m,analyzeToken:h,getThemeProps:n,parseValue:i,get:f}=r.config||{},{rootSize:p,scope:x,important:b}=s.config,{themeNames:S,colorNames:C,colorThemesMap:u,selectors:g,globalValues:d,breakpoints:k,mediaQueries:y}=s,M=s.values[o],R=s.relationThemesMap[t],j=t;this.order=a;let O,B,_,G;if(r.origin==="semantics"){let[L,E]=r.value;_=j.slice(L.length),O=E}else if(h)[B,G,_]=h.call(this,j,M,d);else{let L;if(r.origin==="matches"){let E=j.indexOf(":");this.prefix=j.slice(0,E+1),this.prefix.includes("(")?(this.prefix=void 0,L=j):L=j.slice(E+1)}else r.origin==="symbol"&&(this.symbol=j[0],L=j.slice(1));[G,_]=Z(L,M,d)}_[0]==="!"&&(this.important=!0,_=_.slice(1));let we=L=>{let E=L.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((w,T)=>T%3?w:w.replace(/_/g," ")).join(""),$=[],N="",F=0;for(let w=0;w<E.length;w++){let T=E[w];if(T==="\\"){N+=T+E[++w];continue}!F&&T===","?($.push(N),N=""):(N+=T,F&&T===")"?F--:T==="("&&F++)}return N&&$.push(N),$};this.prefixSelectors=B?we(B):[""];let pe=_.split("@"),be=pe[0];if(be){this.vendorSuffixSelectors={};let L=(w,T,v,A)=>{for(let[W,D]of T)if(W.test(w)){for(let P of D)L(w.replace(W,P),T,v,!0);return}A&&v.push(w)},E=[];""in g?L(be,g[""],E,!0):E.push(be);let $={};for(let[w,T]of Object.entries(g)){if(!w)continue;let v=[];for(let A of E)L(A,T,v,!1);v.length&&($[w]=v)}let N=(w,T)=>{let v=T.reduce((A,W)=>(A.push(...we(W)),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("",E);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<ye.length;v++)if(T.includes(ye[v])){(this.priority===-1||this.priority>v)&&(this.priority=v);break}}}else this.vendorSuffixSelectors={"":[""]};for(let L=1;L<pe.length;L++){let E=pe[L];if(E)if(S.includes(E))this.theme=E;else if(E==="rtl"||E==="ltr")this.direction=E;else{let $,N,F=E.indexOf("_");if(F!==-1)$=E.slice(0,F),N=E.slice(F);else{let w=E.indexOf("(");w!==-1&&($=E.slice(0,w),N=E.slice(w))}if(!$){$="media";let w=[];this.media={token:E,features:{}};let T=E.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},W="",D="",P=0;v.startsWith("<=")?(D="<=",W="max-width"):v.startsWith(">=")||k[v]?(D=">=",W="min-width"):v.startsWith(">")?(D=">",W="min-width",P=.02):v.startsWith("<")&&(D="<",W="max-width",P=-.02);let U=D?v.replace(D,""):v,z=k[U];switch(W){case"max-width":case"min-width":z?Object.assign(A,le(z,"px")):Object.assign(A,le(U,"px")),A.unit==="px"&&(A.value+=P),this.media.features[W]=A,w.push("("+W+":"+(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 ie=(L,E)=>{let $,N,F=(T,v,A)=>{let W="";this.direction&&(W+="[dir="+this.direction+"] ");let D=this.prefixSelectors.map(z=>z+W),P=(z,ne)=>D.map(q=>(z?"."+z+" ":"")+(x?x+" ":"")+q).reduce((q,xe)=>(q.push(A.reduce((Se,Ve)=>(Se.push(xe+"."+ce(ne)+Ve),Se),[]).join(",")),q),[]).join(","),U=P(v,t)+(R?Object.entries(R).filter(([z])=>this.theme||!c||!v||!z||z===v).map(([z,ne])=>ne.reduce((q,xe)=>q+","+P(this.theme??((c||n)&&v||z),xe),"")).join(""):"")+"{"+T+"}";for(let z of Object.keys(this.at).sort((ne,q)=>q==="supports"?-1:1))U="@"+z+" "+this.at[z]+"{"+U+"}";return U},w=[];if(G){let T,v;for(let A of G)typeof A=="string"?w.push(A):(T=le(A.value,l,c&&C,c&&u,p,this.theme?[this.theme,""]:[L]),T.colorMatched!==void 0&&v!==!0&&(v=T.colorMatched),w.push(T.value+T.unit));if(E&&(v===void 0?L:!v))return;if(w.length===1?T?($=T.value,N=T.unit):$=w[0]:$=w.reduce((A,W,D)=>A+W+(W===","||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 W=n.call(this,A,s);for(let D in W)for(let P of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:$,text:F(Object.entries(W[D]).map(([U,z])=>oe(U,{important:(this.important||b)&&!z.endsWith("!important"),unit:"",value:z})).join(";"),D,P),theme:D});return}else f&&($=f.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])=>oe(v,{...typeof A=="object"?A:{unit:"",value:A},important:this.important||b})).join(";"):oe(m,{unit:N,value:$,important:this.important||b}),L,T),theme:L})};if(n)ie(void 0,!1);else if(this.theme)ie(this.theme,!1);else if(c)for(let L of S)ie(L,!0);else ie("",!1)}at={};priority=-1;natives=[];get text(){return this.natives.map(t=>t.text).join("")}};var ee={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function te(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 ue(e,t,r){return((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)}function I(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?te(e[0]):[0,0,0],l,a,c=[],m=()=>{let h=l-s,n=a.map((i,f)=>(i-o[f])/h);for(let i of c){let f=i-s,p=o.map((x,b)=>Math.round(x+n[b]*f));e[i]="#"+ue.call(this,...p)}};for(let h=1;h<100;h++)h in e?(c.length?(l=h,a=te(e[h]),m(),c.length=0,o=a):o=te(e[h]),s=h):c.push(h);c.length&&(l=100,a="100"in e?te(e[100]):[255,255,255],m())}return t||(e[""]=e[r?"500":"50"]),e}var $e={black:"#000000",white:"#ffffff",slate:I({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:I({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:I({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:I({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:I({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:I({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:I({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:I({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:I({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:I({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:I({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:I({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:I({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:I({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:I({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:I({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:I({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:I({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:I({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:I({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var je=16;var Ee="";var Ae={"::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 Ne={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 Le=["dark","light"];var he={store:"theme"};function re(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,m=s+"bottom"+r;switch(o){case"x":return{[l]:t,[a]:t};case"y":return{[c]:t,[m]:t};case"l":return{[l]:t};case"r":return{[a]:t};case"t":return{[c]:t};case"b":return{[m]:t};default:return{["border"+r]:t}}}function ve(e,t,{rootSize:r}){let s="",o=0;return function l(a,c){let m="",h=c?t(c):"",n=()=>{m&&(s+=!h||Number.isNaN(+m)?m:+m/(h==="rem"?r:1)+h,m="")};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):!m&&i==="'"?(s+=i,o++,l(i),m=""):m&&i==="("?(s+=m+i,o++,l(")",m),m=""):m+=i}n()}(),s}var X={content:"content-box",border:"border-box",padding:"padding-box"};var se={min:"min-content",max:"max-content"};var H={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let e in ee)H[e]=ee[e]/16+"rem";var We={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 f=r[h],p=n.slice(0,i);p in f||(f[p]=n.slice(i+1))}},o=h=>{let n=(i,f)=>{let p=f.slice(ce(h.className).length).match(/\{(.*)\}/)[1].split(";");for(let x of p)s(i,x)};if(this.theme){let i=h.natives.find(f=>f.theme===this.theme)??h.natives.find(f=>!f.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="")},m=1;(function h(n){for(;m<e.value.length;m++){let i=e.value[m];if(!n){if(i===";"){c();continue}if(i==="}")break}if(a+=i,n===i){if(n==="'"||n==='"'){let f=0;for(let p=a.length-2;a[p]==="\\";p--)f++;if(f%2)continue}break}else i in Y&&n!=="'"&&n!=='"'&&(m++,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:H},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:H},height:{matches:"^h:.",values:H},minWidth:{matches:"^min-w:.",values:H},minHeight:{matches:"^min-h:.",values:H},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:H},maxWidth:{matches:"^max-w:.",values:H},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:{...X,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 m=l.split(",");return r.replace(l,m.map((h,n)=>!c||m.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 re(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 re(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 re(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 re(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:X},backgroundOrigin:{matches:"^(?:bg|background):(?:$values)(?!\\|)",values:X},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 ve(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 ve(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:se},gridAutoFlow:{matches:"^grid-flow:."},gridAutoRows:{values:se},gridTemplateAreas:{},gridTemplateColumns:{matches:"^grid-template-cols:.",values:se},gridTemplateRows:{values:se},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:{...X,margin:"margin-box"}},shapeMargin:{matches:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$"},shapeImageThreshold:{unit:""},clipPath:{matches:"^clip:.",values:{...X,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 Ie=!1;var ze=!0;var De=!1;var me={breakpoints:ee,colors:$e,rootSize:16,scope:Ee,selectors:Ae,semantics:Ne,themes:Le,theme:he,rules:We,override:!1,observe:!0,important:!1};var de=class{constructor(t=typeof document<"u"?document.documentElement:null,r){this.host=t;this.options=r;this.options=Q(he,r),this.options.store&&this.storage?this.syncWithStorage():this.options.default&&this.set(this.options.default,{emit:!1,store:!1})}darkMQL=typeof window<"u"?window.matchMedia?.("(prefers-color-scheme:dark)"):void 0;get storage(){let{store:t}=this.options;if(t)return localStorage.getItem(t)}current;value;set(t,r={store:!0,emit:!0}){if(t!==this.value){let s;t==="system"?(this.darkMQL?.addEventListener?.("change",this.onThemeChange),s=this.darkMQL?.matches?"dark":"light"):(this.removeDarkMQLListener(),s=t),this.value=t,r.store&&this.storage!==t&&this.options.store&&localStorage.setItem(this.options.store,t),this.e(s)}}e(t,r={store:!0,emit:!0}){this.current&&this.host.classList.remove(this.current),this.host.classList.add(t),this.host.style&&(this.host.style.colorScheme=t),this.current=t,r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this}))}syncWithStorage(){if(typeof window<"u"&&this.options.store){let t=this.storage;(t==="system"&&(t=this.darkMQL?.matches?"dark":"light")||t)&&(this.host.classList.add(t),this.host.style.colorScheme=t,this.set(t,{emit:!1,store:!1}))}}removeDarkMQLListener(){this.darkMQL?.removeEventListener("change",this.onThemeChange)}onThemeChange=t=>{this.e(t.matches?"dark":"light")};destroy(){this.darkMQL?.removeEventListener("change",this.onThemeChange)}};var Fe=[",",".","#","[","!","*",">","+","~",":","@"];var ge=typeof window<"u",J=class{constructor(t){this.config=t;this.config?.override||(this.config=Q(me,t)),this.cache(),ge&&this.config.observe&&this.observe(document),J.instances.push(this),this.ready=!0}rules=[];ruleOfClass={};countOfClass={};ready=!1;t=ge?new MutationObserver(t=>{let r={},s=[],o=[],l=[],a=(n,i)=>{i?n.classList.forEach(m):n.classList.forEach(c);let f=n.children;for(let p=0;p<f.length;p++){let x=f[p];x.classList&&(o.push(x),a(x,i))}},c=n=>{n in r?r[n]++:r[n]=1},m=n=>{n in r?r[n]--:n in this.countOfClass&&(r[n]=-1)},h=(n,i)=>{for(let f=0;f<n.length;f++){let p=n[f];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:f,removedNodes:p,type:x,target:b}=i;if(x==="attributes"){if(s.find(S=>S.target===b))continue;s.push(i)}else h(f,!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 f=o.includes(i),p=i.classList,x=n?n.split(" "):[];if(f){if(i.isConnected)continue;for(let b of x)p.contains(b)||m(b)}else if(i.isConnected){p.forEach(b=>{x.includes(b)||c(b)});for(let b of x)p.contains(b)||m(b)}}for(let n in r){let i=r[n],f=(this.countOfClass[n]||0)+i;f===0?(delete this.countOfClass[n],this.delete(n)):(n in this.countOfClass||this.insert(n),this.countOfClass[n]=f)}}}):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:m,rules:h}=this.config;function n(u){return u.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function i(u,g,d="",k={}){let y=O=>O?(d?d+"-":"")+O:d,M=Object.entries(u),R=[],j=[];for(let O of M){let B=O[1];(typeof B=="object"&&!Array.isArray(B)?R:j).push(O)}for(let[O,B]of R)i(B,g,y(O),k);if(g&&d)j.length&&(k[d]=j.reduce((O,[B,_])=>(O[B]=_,O),{}));else for(let[O,B]of j)k[y(O)]=B;return k}if(t)for(let[u,g]of Object.entries(i(t,!0)))this.semantics.push([new RegExp("^"+n(u)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[u,g]]);if(s)for(let[u,g]of Object.entries(i(s,!1))){let d=new RegExp(n(u)+"(?![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 R=M.find(([j])=>j===d);R||(R=[d,[]],M.push(R)),R[1].push(k)}}a&&(this.globalValues=i(a,!1)),c&&(this.breakpoints=i(c,!1)),m&&(this.mediaQueries=i(m,!1));let f=r?i(r,!1):{},p=o&&!Array.isArray(o)?Object.entries(o).filter(([,{classes:u}])=>u).reduce((u,[g,{classes:d}])=>(u[g]=i(d,!1),u),{}):{},x=[...Object.keys(f),...Object.entries(p).flatMap(([u,g])=>Object.keys(g))],b=u=>{if(u in this.classes)return;let g=this.classes[u]=[],d=(k,y)=>{if(!y)return;let M=Array.isArray(y)?y:y.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let R of M){let j=O=>{O in this.relationThemesMap?k in this.relationThemesMap[O]?this.relationThemesMap[O][k].push(u):this.relationThemesMap[O][k]=[u]:this.relationThemesMap[O]={[k]:[u]},g.includes(O)||g.push(O)};if(x.includes(R)){b(R);for(let O of this.classes[R])j(O)}else j(R)}};d("",f?.[u]);for(let[k,y]of Object.entries(p))d(k,y?.[u])};for(let u of x)b(u);for(let u in this.relationThemesMap){let g=this.relations[u]=[];for(let d of Object.values(this.relationThemesMap[u]))for(let k of d)g.includes(k)||g.push(k)}let S=(u,g)=>{if(!g)return;let d=i(g,!0);for(let[k,y]of Object.entries(d)){let M=typeof y=="string"?{"":y}:y;for(let[R,j]of Object.entries(M)){let O=k+(R?"-"+R:"");O in this.colorThemesMap?this.colorThemesMap[O][u]=j:this.colorThemesMap[O]={[u]:j}}}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 u in o){let g=o[u];S(u,g.colors),this.themeNames.push(u)}let C=u=>{for(let[g,d]of Object.entries(this.colorThemesMap))for(let[k,y]of Object.entries(d))y.startsWith("#")||u(g,d,k,y)};if(C((u,g,d,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="#"+ue(+y[1],+y[2],+y[3]);y[4]&&(M+=Math.round(255*+y[4]).toString(16)),g[d]=M}}),C((u,g,d,k)=>{let[y,M]=k.split("/"),R=this.colorThemesMap[y];if(R){let j=(d?R[d]:void 0)??R[""];g[d]=M?j.slice(0,7)+Math.round(255*+M).toString(16):j}else console.warn(`\`${k}\` doesn't exist in the extended config \`.colors\``),delete g[d],Object.keys(g).length||delete this.colorThemesMap[u]}),h)for(let u in h){let g=h[u],{matches:d,prop:k,values:y}=g;if(g.id=u,g.prop=k===!1?"":u.replace(/(?!^)[A-Z]/g,M=>"-"+M).toLowerCase(),y&&(this.values[u]=i(y,!1)),d){let M=Object.keys(this.values[u]??{}),R=d.indexOf("$values");this.matches[u]=new RegExp(R===-1?d:M.length?d.slice(0,R)+M.join("|")+d.slice(R+7):d.slice(0,R-(d[R-1]==="|"?1:0))+d.slice(R+7+(d[R+7]==="|"?1:0)))}}}observe(t,r={subtree:!0,childList:!0}){if(ge&&t){this.root=t;let s=t===document;s&&(J.root=this),this.host=s?document.documentElement:root.host,this.theme=new de(this.host,this.config.theme);let o=s?document.head:t,l=s?document.styleSheets:t.styleSheets;for(let c of l){let{title:m,href:h,ownerNode:n}=c;(m==="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 m=n=>{if(n.selectorText){let f=n.selectorText.split(", ")[0].split(" ");for(let p=0;p<f.length;p++){let x=f[p];if(x[0]==="."){let b=x.slice(1),S="";for(let C=0;C<b.length;C++){let u=b[C],g=b[C+1];if(u==="\\"){if(C++,g!=="\\"){S+=g;continue}}else if(Fe.includes(u))break;S+=u}if(!(S in this.ruleOfClass)&&!(S in this.classes)){let C=this.create(S)[0];if(C)return C}}}}else if(n.cssRules)for(let i=0;i<n.cssRules.length;i++){let f=m(n.cssRules[i]);if(f)return f}},h=m(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(m=>{m in this.countOfClass?this.countOfClass[m]++:(this.countOfClass[m]=1,this.insert(m))})};a(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(c=>a(c.classList)),this.t.observe(t,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){this.t.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,this.theme?.destroy(),this.theme=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:m,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(m.length&&t.indexOf("|")===-1){let n=t.match("^"+l+"((?:"+m.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 fe(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=Q(me,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=J.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:m,className:h}=r,n=(i,f,p,x)=>{let b=0,S;f&&(b=i.findIndex(f)),p&&(S=i.findIndex(p)),b===-1&&(b=i.length),(S===void 0||S===-1)&&(S=i.length);let C=i.slice(b,S);for(let u=0;u<C.length;u++){let g=C[u];if(!(g.priority===-1||x&&x(g))&&(g.priority<c||g.priority===c&&(m&&!g.hasWhere||g.order>=a)))return b+u}return b+C.length};if(l){let i=this.rules.findIndex(f=>f.media);if(i!==-1){let f=l.features["max-width"],p=l.features["min-width"];if(f&&p){let x=f.value-p.value;for(let b=o;b>=i;b--){s=b;let S=this.rules[b],C=S.media,u=C.features["max-width"],g=C.features["min-width"];if(!u||!g){s++;break}let d=u.value-g.value;if(d===x){if(m!==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!==m)break;let R=M.media,j=R.features["max-width"],O=R.features["min-width"];if(!j||!O||j.value-O.value!==d)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(d>x)break}}else if(p)for(let x=i;x<=o;x++){s=x;let b=this.rules[x],S=b.media,C=S.features["max-width"],u=S.features["min-width"];if(C){if(u)break;continue}let g=u?.value;if(g===p.value){if(!m&&b.hasWhere){s++;continue}if(c!==-1)s=n(this.rules,d=>d.media,d=>d.media&&d.priority!==-1&&d.media.features["min-width"]&&d.media.features["max-width"],d=>!d.media.features["min-width"]&&!d.media.features["max-width"]);else for(let d=x;d<=o;d++){let k=this.rules[d],y=k.media,M=y.features["min-width"];if(!y.features["max-width"]){if(k.hasWhere!==m||M.value!==g||k.order>=a)break;s=d+1}}break}else{if(g>p.value)break;s++}}else if(f)for(let x=o;x>=i;x--){s=x;let b=this.rules[x],S=b.media,C=S.features["max-width"];if(S.features["min-width"])continue;let g=C?.value;if(!g||g>f.value){s++;break}else if(g===f.value){if(m&&!b.hasWhere)continue;if(c!==-1)s=n(this.rules,d=>d.media,d=>d.media&&d.priority!==-1&&d.media.features["min-width"]&&d.media.features["max-width"],d=>!d.media.features["min-width"]&&!d.media.features["max-width"]);else{let d=[this.rules[x]];for(let k=x-1;k>=i;k--){let y=this.rules[k],M=y.media,R=M.features["min-width"],j=M.features["max-width"];if(!R&&(!j||j.value!==g||y.hasWhere!==m))break;d.unshift(y)}for(let k=0;k<d.length;k++){let y=d[k];if(!y.media.features["min-width"]){if(y.order>=a)break;s=x-d.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,f=>f.media.features["max-width"]||f.media.features["min-width"]);else if(m){let f=i;for(;f<this.rules.length;f++){let p=this.rules[f];if(p.priority!==-1||!p.hasWhere||p.order>=a){s=f;break}}s===void 0&&(s=f)}else for(let f=i;f<=o;f++){s=f;let p=this.rules[f],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(m)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 f=this.rules[i];if(f.media||!f.hasWhere&&(f.order>=a||f.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,f=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 C=0;C<i.cssRules.length;C++)if(i.cssRules[C]===S){f=C+1;break}}};p(s-1);for(let x=0;x<r.natives.length;)try{let b=r.natives[x];i.insertRule(b.text,f),b.cssRule=i.cssRules[f++],x++}catch(b){console.error(b),r.natives.splice(x,1)}}}}get text(){return this.rules.map(t=>t.text).join("")}},V=J;K(V,"root"),K(V,"config",me),K(V,"instances",[]),K(V,"refresh",t=>{for(let r of J.instances)r.refresh(t)});ge&&(window.MasterCSS=V);function pr(e,t){if(!e?.length)return;let r=new V({...t,observe:!1});for(let s of e)s in r.countOfClass||r.insert(s)&&(r.countOfClass[s]=1);return r.text}function Be(e,t){if(!e)return;let r=new V({...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 kr(e,t){if(e)return e.replace(/(<link[^>]*?rel="styleSheet".*?>|<style.*?>|<\/head>)/,`<style title="master">${Be(e,t)}</style>$1`)}function Qe(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,m){var h=m.match(/\n([\t ]+|(?!\s).)/g);return h?c.concat(h.map(function(n){var i,f;return(f=(i=n.match(/[\t ]/g))===null||i===void 0?void 0:i.length)!==null&&f!==void 0?f:0})):c},[]);if(o.length){var l=new RegExp(`
|
|
2
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");s=s.map(function(c){return c.replace(l,`
|
|
3
|
+
`)})}s[0]=s[0].replace(/^\r?\n/,"");var a=s[0];return t.forEach(function(c,m){var h=a.match(/(?:^|\n)( *)$/),n=h?h[1]:"",i=c;typeof c=="string"&&c.includes(`
|
|
4
|
+
`)&&(i=String(c).split(`
|
|
5
|
+
`).map(function(f,p){return p===0?f:""+n+f}).join(`
|
|
6
|
+
`)),a+=i+s[m+1]}),a}var ke=Qe;function Rr({compiler:e,jit:t,ext:r}={}){let s=(i,f=", ")=>i.filter(p=>p).join(f),o=r==="ts",l=r==="js",a=r!=="ts",c=l?"":"export ",m=l?"const":"import",h=l?" = require(":" from ",n=l?")":"";return[(o||t)&&`${m} ${s([t&&(l?"{ MasterCSS }":"MasterCSS"),o?"{ Config }":""])}${h}'@master/css'${n}`,o&&e&&`${m} { Options }${h}'@master/css-compiler'${n}`,(o||t||o&&e)&&"",a&&"/** @type {import('@master/css').Config} */",ke`${c}const config${o?": Config":""} = {
|
|
7
7
|
themes: {},
|
|
8
8
|
colors: {},
|
|
9
9
|
classes: {},
|
|
@@ -12,14 +12,14 @@ var Pe=Object.defineProperty;var _e=(e,t,r)=>t in e?Pe(e,t,{enumerable:!0,config
|
|
|
12
12
|
breakpoints: {},
|
|
13
13
|
selectors: {},
|
|
14
14
|
mediaQueries: {}
|
|
15
|
-
}`,e&&"",e&&
|
|
15
|
+
}`,e&&"",e&&a&&"/** @type {import('@master/css-compiler').Options} */",e&&ke`${c}const compilerOptions${o?": Options":""} = {
|
|
16
16
|
sources: [],
|
|
17
17
|
classes: {
|
|
18
18
|
fixed: [],
|
|
19
19
|
ignored: []
|
|
20
20
|
}
|
|
21
21
|
}`,t&&`
|
|
22
|
-
${
|
|
22
|
+
${c}const css = new MasterCSS(config)`,!c&&`
|
|
23
23
|
module.exports = { ${s(["config",t&&"css",e&&"compilerOptions"])} }`].filter(i=>typeof i=="string").join(`
|
|
24
24
|
`)+`
|
|
25
|
-
`}function
|
|
25
|
+
`}function Mr(e="theme"){return`let storage=localStorage.getItem("${e}");if("system"===storage&&(storage=window.matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light")||storage){const a=document.documentElement;a.classList.add(storage),a.style.colorScheme=storage}`}export{V as MasterCSS,fe as Rule,de as Theme,ee as breakpoints,$e as colors,me as config,V as default,Rr as defineContent,Q as extend,I as fillColorScale,Mr as getSyncWithStoredThemeScript,De as important,ze as observe,Ie as override,pr as render,Be as renderFromHTML,kr as renderIntoHTML,je as rootSize,We as rules,Ee as scope,Ae as selectors,Ne as semantics,he as theme,Le as themes};
|
package/dist/theme.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css","scripts":{"build":"aron pack --extra-external @master/css-compiler","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.js","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/keyframes.css":"^2.0.0-beta.
|
|
1
|
+
{"name":"@master/css","scripts":{"build":"aron pack --extra-external @master/css-compiler","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.js","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/keyframes.css":"^2.0.0-beta.124","@master/normal.css":"^2.0.0-beta.124","@techor/log":"^1.1.0","chokidar":"^3.5.3","commander":"^10.0.0","fast-glob":"^3.2.12","fs-extra":"^11.1.0"},"devDependencies":{"to-extend":"^1.5.2","ts-dedent":"^2.2.0"},"version":"2.0.0-beta.124"}
|