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