@master/css 2.0.0-beta.138 → 2.0.0-beta.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config/keyframes.js +1 -1
- package/dist/cjs/config/rules.js +1 -1
- package/dist/cjs/css.js +1 -1
- package/dist/cjs/methods/extract-classes-from-html.js +1 -0
- package/dist/cjs/methods/index.js +1 -1
- package/dist/cjs/methods/render-from-html.js +1 -1
- package/dist/cjs/methods/render-rules-from-html.js +1 -0
- package/dist/cjs/methods/render-rules.js +1 -0
- package/dist/config/rules.d.ts +2 -2
- package/dist/esm/config/keyframes.mjs +1 -1
- package/dist/esm/config/rules.mjs +1 -1
- package/dist/esm/css.mjs +1 -1
- package/dist/esm/methods/extract-classes-from-html.mjs +1 -0
- package/dist/esm/methods/index.mjs +1 -1
- package/dist/esm/methods/render-from-html.mjs +1 -1
- package/dist/esm/methods/render-rules-from-html.mjs +1 -0
- package/dist/esm/methods/render-rules.mjs +1 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +9 -9
- package/dist/methods/extract-classes-from-html.d.ts +1 -0
- package/dist/methods/index.d.ts +3 -0
- package/dist/methods/render-rules-from-html.d.ts +3 -0
- package/dist/methods/render-rules.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var Ve=Object.defineProperty;var Xe=(t,e,r)=>e in t?Ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ne=(t,e,r)=>(Xe(t,typeof e!="symbol"?e+"":e,r),r);function xe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ye(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 ke(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=ke(r):xe(r)?e[i]=ye(r):e[i]=G({},r):e[i]=r}),e}function ve(t,e){return e==="__proto__"?void 0:t[e]}function G(...t){let e={},r,i;return t.forEach(function(o){typeof o!="object"||o===null||Array.isArray(o)||Object.keys(o).forEach(function(s){if(i=ve(e,s),r=ve(o,s),r!==e)if(typeof r!="object"||r===null){e[s]=r;return}else if(Array.isArray(r)){e[s]=ke(r);return}else if(xe(r)){e[s]=ye(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[s]=G({},r);return}else{e[s]=G(i,r);return}})}),e}var me=[":disabled",":active",":focus",":hover"];var re={"(":")","'":"'",'"':'"',"{":"}"};function ae(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,o="",s,h=e.charCodeAt(0);if(r==1&&h==45)return"\\"+e;for(;++i<r;){if(s=e.charCodeAt(i),s==0){o+="\uFFFD";continue}if(s>=1&&s<=31||s==127||i==0&&s>=48&&s<=57||i==1&&s>=48&&s<=57&&h==45){o+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){o+=e.charAt(i);continue}o+="\\"+e.charAt(i)}return o}var He={unit:"",order:0,separators:[","]},le=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=G(He,r.config);let{unit:o,order:s,colored:h,native:m,analyze:d,transform:l,declare:g,create:n}=this.config,{scope:f,important:k,functions:S}=i.config,{themeNames:w,colorNames:v,colorThemesMap:C,selectors:a,breakpoints:c,mediaQueries:u,themeAffectedClassesBy:p,globalValues:x}=i,$=p[e];n&&n.call(this,e);let T,A,O,U,q;if(r.origin==="semantics"){let[z,L]=r.value;U=e.slice(z.length),T=L}else{let z;if(d)[z,O]=d.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),this.prefix.includes("(")?(this.prefix=void 0,z=e):z=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],z=e.slice(1));q=[];let L=this,E=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let R="",y=0;(function M(b,W,j,B=void 0,I=[],X=[],D){let Q=B===void 0,V,K=N=>N==="'"||N==='"',te=()=>V=R.length,J=()=>{if(R){let N=R,P=Q?N:R.slice(V);if(R="",_="",E&&P in E&&!I.includes(P)){let H=y;y=0,M(E[P].toString(),W,void 0,B,[...I,P],X,D),y=H,Q||(R=R.slice(0,V)+R)}else if(x&&P in x&&!X.includes(P)){let H=y;y=0,M(x[P].toString(),W,void 0,B,I,[...X,P],D),y=H,Q||(R=R.slice(0,V)+R)}else if(Q){let H=!D&&L.analyzeUnitValue(P,W);q.push({value:H?.value??P,unit:H?.unit})}else{let H=!D&&L.analyzeUnitValue(P,W);R=H?N.slice(0,V)+H.value+H.unit:N}te()}},ee=K(j);te();let _="";for(;y<b.length;y++){let N=b[y];if(N===j){if(ee){R+=N;let P=0;for(let H=R.length-2;R[H]==="\\";H--)P++;if(P%2)continue}else J(),R+=N;return}else if(!ee&&N in re){let P=N==="("&&_&&S?.[_];P?.name&&(R=R.slice(0,R.length-_.length)+P.name,_=P.name),R+=N,y++;let H=re[N];M(b,P?.unit??W,H,_||B||"",I,X,D||!!P?.transform),P?.transform&&(R=R.slice(0,V+_.length+1)+P.transform.call(L,R.slice(V+_.length+1,-1))+R.slice(-1)),Q&&(K(H)?(q.push(R),R=""):J()),_=""}else if((N==="|"||N===" ")&&j!=="}"&&(!ee||B==="path"))J(),Q||(R+=" ",V++);else{if(!ee){if(N==="."){if(isNaN(+b[y+1]))break;b[y-1]==="-"&&(R+="0")}else if(F.includes(N)){J(),Q?q.push(N):(R+=N,V++);continue}else if(Q&&(N==="#"&&(R||q.length&&b[y-1]!=="|"&&q[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(N)))break;_+=N}R+=N}}B===void 0&&J()})(z,o),U=z.slice(y)}this.order=typeof s=="function"?s.call(this,this.prefix):s,U[0]==="!"&&(this.important=!0,U=U.slice(1));let be=z=>{let L=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,M)=>M%3?y:y.replace(/_/g," ")).join(""),E=[],F="",R=0;for(let y=0;y<L.length;y++){let M=L[y];if(M==="\\"){F+=M+L[++y];continue}!R&&M===","?(E.push(F),F=""):(F+=M,R&&M===")"?R--:M==="("&&R++)}return F&&E.push(F),E};this.prefixSelectors=O?be(O):[""];let ue=U.split("@"),de=ue[0];if(de){this.vendorSuffixSelectors={};let z=(y,M,b,W)=>{for(let[j,B]of M)if(j.test(y)){for(let I of B)z(y.replace(j,I),M,b,!0);return}W&&b.push(y)},L=[];""in a?z(de,a[""],L,!0):L.push(de);let E={};for(let[y,M]of Object.entries(a)){if(!y)continue;let b=[];for(let W of L)z(W,M,b,!1);b.length&&(E[y]=b)}let F=(y,M)=>{let b=M.reduce((W,j)=>(W.push(...be(j)),W),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...b):this.vendorSuffixSelectors[y]=b},R=Object.keys(E);if(R.length)for(let y of R)F(y,E[y]);else F("",L);for(let y of Object.values(this.vendorSuffixSelectors))for(let M of y){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));for(let b=0;b<me.length;b++)if(M.includes(me[b])){(this.priority===-1||this.priority>b)&&(this.priority=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let z=1;z<ue.length;z++){let L=ue[z];if(L)if(w.includes(L))this.theme=L;else if(L==="rtl"||L==="ltr")this.direction=L;else{let E,F,R=L.indexOf("_");if(R!==-1)E=L.slice(0,R),F=L.slice(R);else{let y=L.indexOf("(");y!==-1&&(E=L.slice(0,y),F=L.slice(y))}if(!E){E="media";let y=[];this.media={token:L,features:{}};let M=L.split("&");for(let b of M)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")y.push("(orientation:"+b+")");else if(b==="motion"||b==="reduced-motion")y.push("(prefers-reduced-motion:"+(b==="motion"?"no-preference":"reduce")+")");else if(u&&b in u)y.push(u[b]);else{let W={token:b},j="",B="",I=0;b.startsWith("<=")?(B="<=",j="max-width"):b.startsWith(">=")||c[b]?(B=">=",j="min-width"):b.startsWith(">")?(B=">",j="min-width",I=.02):b.startsWith("<")&&(B="<",j="max-width",I=-.02);let X=B?b.replace(B,""):b,D=c[X];switch(j){case"max-width":case"min-width":D?Object.assign(W,this.analyzeUnitValue(D.toString(),"px")):Object.assign(W,this.analyzeUnitValue(X,"px")),W.unit==="px"&&(W.value+=I),this.media.features[j]=W,y.push("("+j+":"+(W.value+W.unit)+")");break}}F="",this.media.type&&(F=this.media.type),y.length&&(F+=(F?" and ":"")+y.join(" and "))}F&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+F.replace(/_/g," "))}}let fe=(z,L)=>{let E,F=(M,b,W)=>{let j="";this.direction&&(j+="[dir="+this.direction+"] ");let B=this.prefixSelectors.map(D=>D+j),I=(D,Q)=>B.map(V=>(D?"."+D+" ":"")+(f?f+" ":"")+V).reduce((V,K)=>(V.push(W.reduce((te,J)=>(te.push(K+"."+ae(Q)+J),te),[]).join(",")),V),[]).join(","),X=I(b,e)+($?Object.entries($).filter(([D])=>this.theme||!h||!b||!D||D===b).map(([D,Q])=>Q.reduce((V,K)=>V+","+I(this.theme??((h||A)&&b||D),K),"")).join(""):"")+"{"+M+"}";for(let D of Object.keys(this.at).sort((Q,V)=>V==="supports"?-1:1))X="@"+D+" "+this.at[D]+"{"+X+"}";return X},R=[];if(q){let M=this.theme?[this.theme,""]:[z],b,W;for(let j of q)if(typeof j=="string")R.push(j);else{let B=j.value;if(j.unit)B+=j.unit;else if(h&&C&&v){let I=!1,X=!1;B=B.replace(new RegExp(`(^|,| |\\()((?:${v.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(D,Q,V,K)=>{X=!0;let te=C[V];if(te){let J;for(let ee of M)if(J=te[ee])break;if(J){I=!0;let ee=J;if(K){let _=K.endsWith("%")?parseFloat(K)/100:+K;_=isNaN(_)?1:Math.min(Math.max(_,0),1),ee+=Math.round(_*255).toString(16).toUpperCase().padStart(2,"0")}return Q+ee}}return D}),X&&(W=I)}W!==void 0&&!b&&(b=W),R.push(B)}if(L&&(b===void 0?z:!b))return;if(E=R.reduce((j,B,I)=>j+B+(B===","||q[I+1]===","||I===q.length-1?"":" "),""),l&&(E=l.call(this,E,this.css.config)),h&&E==="current"&&(E="currentColor"),g){let j,B;if(q.length===1){let I=q[0];typeof I=="object"&&(j=I.value,B=I.unit)}T=g.call(this,B?j:E,B||"")}else T={[m]:E}}let y={};for(let M in T){let b=(B,I)=>{let X=I+((this.important||k)&&!I.endsWith("!important")?"!important":"");B in y?y[B].push(X):y[B]=[X]},W=M+":",j=T[M];if(typeof j=="object"){A=!0;for(let B in j)b(B,W+j[B])}else b(z,W+j.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let b in y)this.natives.push({text:F(y[b].join(";"),b,M),theme:b})};if(this.theme)fe(this.theme,!1);else if(h)for(let z of w)fe(z,!0);else fe("",!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 o="",s=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(e.includes("/")){let[h,m]=e.split("/");return{value:+h/+m*100+"%",unit:o}}else{let h=+s[1];return o=s[3]||"",o||((i==="rem"||i==="em")&&(h=h/this.css.config.rootSize),o=i||""),{value:h,unit:o}}}}};var Se={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function oe(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 ce(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function Y(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,o="0"in t?oe(t[0]):[0,0,0],s,h,m=[],d=()=>{let l=s-i,g=h.map((n,f)=>(n-o[f])/l);for(let n of m){let f=n-i,k=o.map((S,w)=>Math.round(S+g[w]*f));t[n]="#"+ce.call(this,...k)}};for(let l=1;l<100;l++)l in t?(m.length?(s=l,h=oe(t[l]),d(),m.length=0,o=h):o=oe(t[l]),i=l):m.push(l);m.length&&(s=100,h="100"in t?oe(t[100]):[255,255,255],d())}return e||(t[""]=t[r?"500":"50"]),t}var Re={black:"#000000",white:"#ffffff",slate:Y({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:Y({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:Y({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:Y({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:Y({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:Y({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:Y({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:Y({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:Y({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:Y({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:Y({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:Y({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:Y({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:Y({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:Y({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:Y({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:Y({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:Y({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:Y({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:Y({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var we=16;var Ce="";var $e={"::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 Te={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}};var Me=["dark","light"];var Ue={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,g)=>{let n=g.indexOf(":");if(n!==-1){l in e||(e[l]={});let f=e[l],k=g.slice(0,n);k in f||(f[k]=g.slice(n+1))}},i=l=>{let g=(n,f)=>{let k=f.slice(ae(l.className).length).match(/\{(.*)\}/)[1].split(";");for(let S of k)r(n,S)};if(this.theme){let n=l.natives.find(f=>f.theme===this.theme)??l.natives.find(f=>!f.theme);n&&g(this.theme,n.text)}else for(let n of l.natives)g(n.theme,n.text)},o=[],s="",h=()=>{s&&(o.push(s.replace(/ /g,"")),s="")},m=1;(function l(g){for(;m<t.length;m++){let n=t[m];if(!g){if(n===";"){h();continue}if(n==="}")break}if(s+=n,g===n){if(g==="'"||g==='"'){let f=0;for(let k=s.length-2;s[k]==="\\";k--)f++;if(f%2)continue}break}else n in re&&g!=="'"&&g!=='"'&&(m++,l(re[n]))}})(void 0),h();for(let l of o){let g=this.css.create(l);if(Array.isArray(g))for(let n of g)i(n);else g?i(g):r(this.theme??"",l)}let d={};for(let l in e)for(let[g,n]of Object.entries(e[l]))g in d?d[g][l]=n:d[g]={[l]:n};return d}},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){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},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"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},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:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},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},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},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:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},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},overflowX:{native:!0},overflowY:{native:!0},overflow:{native:!0,order:-1},overscrollBehaviorX:{native:!0},overscrollBehaviorY:{native:!0},overscrollBehavior:{native:!0,order:-1},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:{content:"content-box",border:"border-box",padding:"padding-box",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 Be.call(this,t)},delete(t){return je.call(this,t)},insert(){return Oe.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Be.call(this,t)},delete(t){return je.call(this,t)},insert(){return Oe.call(this)}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderTopColor:{match:"^b(?:t|order-top(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderBottomColor:{match:"^b(?:b|order-bottom(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderLeftColor:{match:"^b(?:l|order-left(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderRightColor:{match:"^b(?:r|order-right(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderXColor:{match:"^b(?:x|order-x(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},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,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},order:-2},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:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},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:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gapX:{unit:"rem",native:!0},gapY:{unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},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},scrollMarginLeft:{match:"^sml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^smr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^smt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^smb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:smx|scroll-margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}}},scrollMarginY:{match:"^(?:smy|scroll-margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}}},scrollMargin:{match:"^sm:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^spl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^spr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^spt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^spb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:spx|scroll-padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}}},scrollPaddingY:{match:"^(?:spy|scroll-padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}}},scrollPadding:{match:"^sp:.",native:!0,unit:"rem",order:-1},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:{content:"content-box",border:"border-box",padding:"padding-box",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:{content:"content-box",border:"border-box",padding:"padding-box",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}}}},Le=Ue;function Be(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 je(){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 Oe(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,o=r?.sheet;for(let s of this.keyframeNames)if(s in e)e[s].count++;else{let h={text:`@keyframes ${s}{`+Object.entries(t.keyframes[s]).map(([d,l])=>`${d}{${Object.entries(l).map(([g,n])=>g+":"+n).join(";")}}`).join("")+"}",theme:""},m;if(Object.keys(e).length?(m=i[0]).natives.push(h):i.splice(0,0,m={natives:[h],get text(){return this.natives.map(d=>d.text).join("")}}),o){let d;for(let l=0;l<o.cssRules.length;l++){let g=o.cssRules[l];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===s){d=g;break}}if(d)h.cssRule=d;else{let l=m.natives.length-1;o.insertRule(h.text,l),h.cssRule=o.cssRules[l]}}e[s]={native:h,count:1}}}}var We=!1;var Ee=!0;var Ie=!1;var Ae={fade:{"0%":{opacity:0},to:{opacity:0}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}};var he={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=d=>d==="+"||d==="-"||d==="*"||d==="/",r="",i,o="",s=!1,h=!1,m=(d,l="",g="")=>{if(i===2&&!h){let n=this.analyzeUnitValue(o,he.calc.unit);n&&(o=n.value+n.unit)}r+=o+l+d+g,i=null,h=!1,o=""};for(let d=0;d<t.length;d++){let l=t[d];if(l==="("||l===")")s=l===")",m(l);else if(l===",")m(l,""," ");else{switch(i){case 1:break;case 2:if(e(l)){m(l," "," ");continue}else/[0-9]/.test(l)||(h=!0);break;default:s&&(r+=" "),isNaN(+l)?e(l)||(i=1):i=2;break}i?o+=l:r+=l}}return m(""),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 se={breakpoints:Se,colors:Re,rootSize:16,scope:Ce,selectors:$e,semantics:Te,themes:Me,rules:Le,override:!1,observe:!0,important:!1,functions:he,keyframes:Ae};var ze=[",",".","#","[","!","*",">","+","~",":","@"];var ge=typeof window<"u",De=()=>{let t=document.createElement("style");return t.id="master",t},ie=class{constructor(e=se){this.config=e;e?.override||(this.config=G(se,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),ge&&this.config.observe&&this.observe(document),ie.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;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:o,colors:s,values:h,breakpoints:m,mediaQueries:d,rules:l}=this.config;function g(a){return a.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function n(a,c,u="",p={}){let x=O=>O?(u?u+"-":"")+O:u,$=Object.entries(a),T=[],A=[];for(let O of $){let U=O[1];(typeof U=="object"&&!Array.isArray(U)?T:A).push(O)}for(let[O,U]of T)n(U,c,x(O),p);if(c&&u)A.length&&(p[u]=A.reduce((O,[U,q])=>(O[U]=q,O),{}));else for(let[O,U]of A)p[x(O)]=U;return p}if(e)for(let[a,c]of Object.entries(n(e,!0)))this.semantics.push([new RegExp("^"+g(a)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[a,c]]);if(i)for(let[a,c]of Object.entries(n(i,!1))){let u=new RegExp(g(a)+"(?![a-z-])");for(let p of Array.isArray(c)?c:[c]){let x=p.match(/^::-[a-z]+-/m)?.[0]??"",$=this.selectors[x];$||($=this.selectors[x]=[]);let T=$.find(([A])=>A===u);T||(T=[u,[]],$.push(T)),T[1].push(p)}}h&&(this.globalValues=n(h,!1)),m&&(this.breakpoints=n(m,!1)),d&&(this.mediaQueries=n(d,!1));let f=r?n(r,!1):{},k=o&&!Array.isArray(o)?Object.entries(o).filter(([,{classes:a}])=>a).reduce((a,[c,{classes:u}])=>(a[c]=n(u,!1),a),{}):{},S=[...Object.keys(f),...Object.entries(k).flatMap(([a,c])=>Object.keys(c))],w=a=>{if(a in this.classes)return;let c=this.classes[a]=[],u=(p,x)=>{if(!x)return;let $=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let T of $){let A=O=>{O in this.themeAffectedClassesBy?p in this.themeAffectedClassesBy[O]?this.themeAffectedClassesBy[O][p].push(a):this.themeAffectedClassesBy[O][p]=[a]:this.themeAffectedClassesBy[O]={[p]:[a]},c.includes(O)||c.push(O)};if(S.includes(T)){w(T);for(let O of this.classes[T])A(O)}else A(T)}};u("",f?.[a]);for(let[p,x]of Object.entries(k))u(p,x?.[a])};for(let a of S)w(a);for(let a in this.themeAffectedClassesBy){let c=this.classesBy[a]=[];for(let u of Object.values(this.themeAffectedClassesBy[a]))for(let p of u)c.includes(p)||c.push(p)}let v=(a,c)=>{if(!c)return;let u=n(c,!0);for(let[p,x]of Object.entries(u)){let $=typeof x=="string"?{"":x}:x;for(let[T,A]of Object.entries($)){let O=p+(T?"-"+T:"");O in this.colorThemesMap?this.colorThemesMap[O][a]=A:this.colorThemesMap[O]={[a]:A}}}for(let p in c)this.colorNames.includes(p)||this.colorNames.push(p)};if(v("",s),o)if(Array.isArray(o))this.themeNames.push(...o);else for(let a in o){let c=o[a];v(a,c.colors),this.themeNames.push(a)}let C=a=>{for(let[c,u]of Object.entries(this.colorThemesMap))for(let[p,x]of Object.entries(u))x.startsWith("#")||a(c,u,p,x)};if(C((a,c,u,p)=>{let x=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(p);if(x){let $="#"+ce(+x[1],+x[2],+x[3]);x[4]&&($+=Math.round(255*+x[4]).toString(16)),c[u]=$}}),C((a,c,u,p)=>{let[x,$]=p.split("/"),T=this.colorThemesMap[x];if(T){let A=(u?T[u]:void 0)??T[""];c[u]=$?A.slice(0,7)+Math.round(255*+$).toString(16):A}else console.warn(`\`${p}\` doesn't exist in the extended config \`.colors\``),delete c[u],Object.keys(c).length||delete this.colorThemesMap[a]}),l)for(let a in l){let c=l[a],{native:u,values:p,colored:x}=c,$=c.match;if(c.id=a,c.native=u===!0?a.replace(/(?!^)[A-Z]/g,T=>"-"+T).toLowerCase():void 0,p&&(this.values[a]=n(p,!1)),$){let T=Object.keys(this.values[a]??{});$.includes("$values")&&($=T.length?$.replace(/\$values/,T.join("|")):$.replace(/(?:\|)?\$values/,"")),x&&$.includes("$colors")&&($=this.colorNames.length?$.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):$.replace(/(?:\|)?\$colors/,"")),this.matches[a]=new RegExp($)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(ge&&e){this.root=e;let i=e===document;i&&(ie.root=this),this.host=i?document.documentElement:root.host;let o=i?document.head:e,s=i?document.styleSheets:e.styleSheets;for(let m of s){let{ownerNode:d}=m;if(d.id==="master"){this.style=d;break}}if(this.style)for(let m=0;m<this.style.sheet.cssRules.length;m++){let d=this.style.sheet.cssRules[m];if(d.constructor.name==="CSSKeyframesRule")continue;let l=n=>{if(n.selectorText){let k=n.selectorText.split(", ")[0].split(" ");for(let S=0;S<k.length;S++){let w=k[S];if(w[0]==="."){let v=w.slice(1),C="";for(let a=0;a<v.length;a++){let c=v[a],u=v[a+1];if(c==="\\"){if(a++,u!=="\\"){C+=u;continue}}else if(ze.includes(c))break;C+=c}if(!(C in this.ruleBy)&&!(C in this.classes)){let a=this.create(C)[0];if(a)return a}}}}else if(n.cssRules)for(let f=0;f<n.cssRules.length;f++){let k=l(n.cssRules[f]);if(k)return k}},g=l(d);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let n=0;n<g.natives.length;n++)g.natives[n].cssRule=this.style.sheet.cssRules[m+n];m+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=De(),o.append(this.style);let h=m=>{m.forEach(d=>{d in this.countBy?this.countBy[d]++:(this.countBy[d]=1,this.insert(d))})};h(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(m=>h(m.classList)),this.observer=new MutationObserver(m=>{let d={},l=[],g=[],n=[],f=(v,C)=>{C?v.classList.forEach(S):v.classList.forEach(k);let a=v.children;for(let c=0;c<a.length;c++){let u=a[c];u.classList&&(g.push(u),f(u,C))}},k=v=>{v in d?d[v]++:d[v]=1},S=v=>{v in d?d[v]--:v in this.countBy&&(d[v]=-1)},w=(v,C)=>{for(let a=0;a<v.length;a++){let c=v[a];c.classList&&!g.includes(c)&&!n.includes(c)&&(c.isConnected!==C?(g.push(c),f(c,C)):n.push(c))}};for(let v=0;v<m.length;v++){let C=m[v],{addedNodes:a,removedNodes:c,type:u,target:p}=C;if(u==="attributes"){if(l.find(x=>x.target===p))continue;l.push(C)}else w(a,!1),(!p.isConnected||!g.includes(p))&&w(c,!0)}if(!(!l.length&&!Object.keys(d).length)){for(let{oldValue:v,target:C}of l){let a=g.includes(C),c=C.classList,u=v?v.split(" "):[];if(a){if(C.isConnected)continue;for(let p of u)c.contains(p)||S(p)}else if(C.isConnected){c.forEach(p=>{u.includes(p)||k(p)});for(let p of u)c.contains(p)||S(p)}}for(let v in d){let C=d[v],a=(this.countBy[v]||0)+C;a===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=a)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),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],o=this.matches[r],{symbol:s,native:h}=i;if(o&&o.test(e))return{origin:"match",config:i};if(s&&e.startsWith(s))return{origin:"symbol",config:i};if(h&&e.startsWith(h+":"))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 o=this.match(i);if(o)return new le(i,o,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(se,e),this.cache(),!this.style)return;let r=De();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=ie.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=o=>{let s=this.ruleBy[o];if(!(!s||o in this.classesBy&&this.classesBy[o].some(h=>h in this.countBy))){if(r&&s.natives.length){let h=s.natives[0];for(let m=0;m<r.cssRules.length;m++)if(r.cssRules[m]===h.cssRule){for(let l=0;l<s.natives.length;l++)r.deleteRule(m);break}}this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[o],s.config.delete&&s.config.delete.call(s,o)}};if(e in this.classes){for(let o of this.classes[e])o in this.countBy||i(o);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,o=this.rules.length-1,{media:s,order:h,priority:m,hasWhere:d,className:l}=r,g=(n,f,k,S)=>{let w=0,v;f&&(w=n.findIndex(f)),k&&(v=n.findIndex(k)),w===-1&&(w=n.length),(v===void 0||v===-1)&&(v=n.length);let C=n.slice(w,v);for(let a=0;a<C.length;a++){let c=C[a];if(!(c.priority===-1||S&&S(c))&&(c.priority<m||c.priority===m&&(d&&!c.hasWhere||c.order>=h)))return w+a}return w+C.length};if(s){let n=this.rules.findIndex(f=>f.media);if(n!==-1){let f=s.features["max-width"],k=s.features["min-width"];if(f&&k){let S=f.value-k.value;for(let w=o;w>=n;w--){i=w;let v=this.rules[w],C=v.media,a=C.features["max-width"],c=C.features["min-width"];if(!a||!c){i++;break}let u=a.value-c.value;if(u===S){if(d!==v.hasWhere)continue;if(m!==-1){let p=[this.rules[w]];for(let x=w-1;x>=n;x--){let $=this.rules[x];if($.hasWhere!==d)break;let T=$.media,A=T.features["max-width"],O=T.features["min-width"];if(!A||!O||A.value-O.value!==u)break;p.unshift(this.rules[x])}i=g(this.rules,x=>x.media&&x.priority!==-1&&x.media.features["min-width"]&&x.media.features["max-width"])}break}else if(u>S)break}}else if(k)for(let S=n;S<=o;S++){i=S;let w=this.rules[S],v=w.media,C=v.features["max-width"],a=v.features["min-width"];if(C){if(a)break;continue}let c=a?.value;if(c===k.value){if(!d&&w.hasWhere){i++;continue}if(m!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else for(let u=S;u<=o;u++){let p=this.rules[u],x=p.media,$=x.features["min-width"];if(!x.features["max-width"]){if(p.hasWhere!==d||$.value!==c||p.order>=h)break;i=u+1}}break}else{if(c>k.value)break;i++}}else if(f)for(let S=o;S>=n;S--){i=S;let w=this.rules[S],v=w.media,C=v.features["max-width"];if(v.features["min-width"])continue;let c=C?.value;if(!c||c>f.value){i++;break}else if(c===f.value){if(d&&!w.hasWhere)continue;if(m!==-1)i=g(this.rules,u=>u.media,u=>u.media&&u.priority!==-1&&u.media.features["min-width"]&&u.media.features["max-width"],u=>!u.media.features["min-width"]&&!u.media.features["max-width"]);else{let u=[this.rules[S]];for(let p=S-1;p>=n;p--){let x=this.rules[p],$=x.media,T=$.features["min-width"],A=$.features["max-width"];if(!T&&(!A||A.value!==c||x.hasWhere!==d))break;u.unshift(x)}for(let p=0;p<u.length;p++){let x=u[p];if(!x.media.features["min-width"]){if(x.order>=h)break;i=S-u.length+2+p}}}break}}}if(i===void 0)if(n===-1)i=o+1;else if(m!==-1)i=n+g(this.rules.slice(n),void 0,f=>f.media.features["max-width"]||f.media.features["min-width"]);else if(d){let f=n;for(;f<this.rules.length;f++){let k=this.rules[f];if(k.priority!==-1||!k.hasWhere||k.order>=h){i=f;break}}i===void 0&&(i=f)}else for(let f=n;f<=o;f++){i=f;let k=this.rules[f],S=k.media;if(k.priority!==-1||S.features["max-width"]||S.features["min-width"])break;if(k.hasWhere)i++;else if(k.order>=h)break}}else if(m===-1){if(d)i=this.rules.findIndex(n=>!n.hasWhere||n.media||n.priority!==-1||n.order>=h),i===-1&&(i=o+1);else{let n=0;for(;n<this.rules.length;n++){let f=this.rules[n];if(f.media||!f.hasWhere&&(f.order>=h||f.priority!==-1)){i=n;break}}i===void 0&&(i=n)}!i&&Object.keys(this.keyframes).length&&i++}else i=g(this.rules,void 0,n=>n.media);if(this.rules.splice(i,0,r),this.ruleBy[l]=r,this.style){let n=this.style.sheet,f=0,k=S=>{let w=this.rules[S];if(w){if(!w.natives.length)return k(S-1);let v=w.natives[w.natives.length-1].cssRule;for(let C=0;C<n.cssRules.length;C++)if(n.cssRules[C]===v){f=C+1;break}}};k(i-1);for(let S=0;S<r.natives.length;)try{let w=r.natives[S];n.insertRule(w.text,f),w.cssRule=n.cssRules[f++],S++}catch(w){console.error(w),r.natives.splice(S,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},Z=ie;ne(Z,"root"),ne(Z,"config",se),ne(Z,"instances",[]),ne(Z,"refresh",e=>{for(let r of ie.instances)r.refresh(e)});ge&&(window.MasterCSS=Z);var Ne={store:"theme",init:!0},Qe=typeof document<"u",Fe=typeof localStorage<"u",Pe=class{constructor(e,r=Qe?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(Fe&&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.n(),this.current=e)}get value(){return this.r}set current(e){let r=this.t;this.t=e,this.host&&r!==e&&(r&&this.host.classList.remove(r),e&&!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,Fe&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};function er(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 ir(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 _e=/&(amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,qe={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'",quot:'"',"#34":'"'};function Ye(t,e){if(!t)return;let r=new Z({...e,observe:!1}),i=/\sclass="([^"]*)"/gm,o;for(;o=i.exec(t);){let s=o[1].replace(/\n/g,"").split(" ").filter(h=>h).map(h=>h.replace(_e,(m,d)=>qe[d]));for(let h of s)h in r.countBy||(r.insert(h),r.countBy[h]=1)}return r.text}function lr(t,e){if(!t)return;let r=`<style id="master">${Ye(t,e)}</style>`;return t.replace(/<\/head>/,`${r}$&`)}function Ze(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 o=i.reduce(function(m,d){var l=d.match(/\n([\t ]+|(?!\s).)/g);return l?m.concat(l.map(function(g){var n,f;return(f=(n=g.match(/[\t ]/g))===null||n===void 0?void 0:n.length)!==null&&f!==void 0?f:0})):m},[]);if(o.length){var s=new RegExp(`
|
|
2
|
-
[ ]{`+Math.min.apply(Math,
|
|
3
|
-
`)})}i[0]=i[0].replace(/^\r?\n/,"");var
|
|
4
|
-
`)&&(
|
|
5
|
-
`).map(function(
|
|
6
|
-
`)),
|
|
1
|
+
var He=Object.defineProperty;var Ue=(t,e,r)=>e in t?He(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ne=(t,e,r)=>(Ue(t,typeof e!="symbol"?e+"":e,r),r);function ye(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ke(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 Re(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=Re(r):ye(r)?e[i]=ke(r):e[i]=J({},r):e[i]=r}),e}function xe(t,e){return e==="__proto__"?void 0:t[e]}function J(...t){let e={},r,i;return t.forEach(function(a){typeof a!="object"||a===null||Array.isArray(a)||Object.keys(a).forEach(function(s){if(i=xe(e,s),r=xe(a,s),r!==e)if(typeof r!="object"||r===null){e[s]=r;return}else if(Array.isArray(r)){e[s]=Re(r);return}else if(ye(r)){e[s]=ke(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[s]=J({},r);return}else{e[s]=J(i,r);return}})}),e}var he=[":disabled",":active",":focus",":hover"];var re={"(":")","'":"'",'"':'"',"{":"}"};function ae(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,a="",s,x=e.charCodeAt(0);if(r==1&&x==45)return"\\"+e;for(;++i<r;){if(s=e.charCodeAt(i),s==0){a+="\uFFFD";continue}if(s>=1&&s<=31||s==127||i==0&&s>=48&&s<=57||i==1&&s>=48&&s<=57&&x==45){a+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){a+=e.charAt(i);continue}a+="\\"+e.charAt(i)}return a}var Qe={unit:"",order:0,separators:[","]},le=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=J(Qe,r.config);let{unit:a,order:s,colored:x,native:m,analyze:h,transform:n,declare:b,create:c}=this.config,{scope:d,important:g,functions:T}=i.config,{themeNames:C,colorNames:f,colorThemesMap:w,selectors:o,breakpoints:u,mediaQueries:p,themeAffectedClassesBy:l,globalValues:k}=i,R=l[e];c&&c.call(this,e);let $,I,M,X,q;if(r.origin==="semantics"){let[z,L]=r.value;X=e.slice(z.length),$=L}else{let z;if(h)[z,M]=h.call(this,e);else if(r.origin==="match"){let B=e.indexOf(":");this.prefix=e.slice(0,B+1),this.prefix.includes("(")?(this.prefix=void 0,z=e):z=e.slice(B+1)}else r.origin==="symbol"&&(this.symbol=e[0],z=e.slice(1));q=[];let L=this,E=this.values,N=[","];this.config.separators.length&&N.push(...this.config.separators);let S="",y=0;(function B(v,W,O,j=void 0,A=[],H=[],F){let Q=j===void 0,Y,K=D=>D==="'"||D==='"',te=()=>Y=S.length,G=()=>{if(S){let D=S,P=Q?D:S.slice(Y);if(S="",_="",E&&P in E&&!A.includes(P)){let U=y;y=0,B(E[P].toString(),W,void 0,j,[...A,P],H,F),y=U,Q||(S=S.slice(0,Y)+S)}else if(k&&P in k&&!H.includes(P)){let U=y;y=0,B(k[P].toString(),W,void 0,j,A,[...H,P],F),y=U,Q||(S=S.slice(0,Y)+S)}else if(Q){let U=!F&&L.analyzeUnitValue(P,W);q.push({value:U?.value??P,unit:U?.unit})}else{let U=!F&&L.analyzeUnitValue(P,W);S=U?D.slice(0,Y)+U.value+U.unit:D}te()}},ee=K(O);te();let _="";for(;y<v.length;y++){let D=v[y];if(D===O){if(ee){S+=D;let P=0;for(let U=S.length-2;S[U]==="\\";U--)P++;if(P%2)continue}else G(),S+=D;return}else if(!ee&&D in re){let P=D==="("&&_&&T?.[_];P?.name&&(S=S.slice(0,S.length-_.length)+P.name,_=P.name),S+=D,y++;let U=re[D];B(v,P?.unit??W,U,_||j||"",A,H,F||!!P?.transform),P?.transform&&(S=S.slice(0,Y+_.length+1)+P.transform.call(L,S.slice(Y+_.length+1,-1))+S.slice(-1)),Q&&(K(U)?(q.push(S),S=""):G()),_=""}else if((D==="|"||D===" ")&&O!=="}"&&(!ee||j==="path"))G(),Q||(S+=" ",Y++);else{if(!ee){if(D==="."){if(isNaN(+v[y+1]))break;v[y-1]==="-"&&(S+="0")}else if(N.includes(D)){G(),Q?q.push(D):(S+=D,Y++);continue}else if(Q&&(D==="#"&&(S||q.length&&v[y-1]!=="|"&&q[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;_+=D}S+=D}}j===void 0&&G()})(z,a),X=z.slice(y)}this.order=typeof s=="function"?s.call(this,this.prefix):s,X[0]==="!"&&(this.important=!0,X=X.slice(1));let ve=z=>{let L=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,B)=>B%3?y:y.replace(/_/g," ")).join(""),E=[],N="",S=0;for(let y=0;y<L.length;y++){let B=L[y];if(B==="\\"){N+=B+L[++y];continue}!S&&B===","?(E.push(N),N=""):(N+=B,S&&B===")"?S--:B==="("&&S++)}return N&&E.push(N),E};this.prefixSelectors=M?ve(M):[""];let de=X.split("@"),fe=de[0];if(fe){this.vendorSuffixSelectors={};let z=(y,B,v,W)=>{for(let[O,j]of B)if(O.test(y)){for(let A of j)z(y.replace(O,A),B,v,!0);return}W&&v.push(y)},L=[];""in o?z(fe,o[""],L,!0):L.push(fe);let E={};for(let[y,B]of Object.entries(o)){if(!y)continue;let v=[];for(let W of L)z(W,B,v,!1);v.length&&(E[y]=v)}let N=(y,B)=>{let v=B.reduce((W,O)=>(W.push(...ve(O)),W),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...v):this.vendorSuffixSelectors[y]=v},S=Object.keys(E);if(S.length)for(let y of S)N(y,E[y]);else N("",L);for(let y of Object.values(this.vendorSuffixSelectors))for(let B of y){this.hasWhere!==!1&&(this.hasWhere=B.includes(":where("));for(let v=0;v<he.length;v++)if(B.includes(he[v])){(this.priority===-1||this.priority>v)&&(this.priority=v);break}}}else this.vendorSuffixSelectors={"":[""]};for(let z=1;z<de.length;z++){let L=de[z];if(L)if(C.includes(L))this.theme=L;else if(L==="rtl"||L==="ltr")this.direction=L;else{let E,N,S=L.indexOf("_");if(S!==-1)E=L.slice(0,S),N=L.slice(S);else{let y=L.indexOf("(");y!==-1&&(E=L.slice(0,y),N=L.slice(y))}if(!E){E="media";let y=[];this.media={token:L,features:{}};let B=L.split("&");for(let v of B)if(v==="all"||v==="print"||v==="screen"||v==="speech")this.media.type=v;else if(v==="\u{1F5A8}")this.media.type="print";else if(v==="landscape"||v==="portrait")y.push("(orientation:"+v+")");else if(v==="motion"||v==="reduced-motion")y.push("(prefers-reduced-motion:"+(v==="motion"?"no-preference":"reduce")+")");else if(p&&v in p)y.push(p[v]);else{let W={token:v},O="",j="",A=0;v.startsWith("<=")?(j="<=",O="max-width"):v.startsWith(">=")||u[v]?(j=">=",O="min-width"):v.startsWith(">")?(j=">",O="min-width",A=.02):v.startsWith("<")&&(j="<",O="max-width",A=-.02);let H=j?v.replace(j,""):v,F=u[H];switch(O){case"max-width":case"min-width":F?Object.assign(W,this.analyzeUnitValue(F.toString(),"px")):Object.assign(W,this.analyzeUnitValue(H,"px")),W.unit==="px"&&(W.value+=A),this.media.features[O]=W,y.push("("+O+":"+(W.value+W.unit)+")");break}}N="",this.media.type&&(N=this.media.type),y.length&&(N+=(N?" and ":"")+y.join(" and "))}N&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+N.replace(/_/g," "))}}let me=(z,L)=>{let E,N=(B,v,W)=>{let O="";this.direction&&(O+="[dir="+this.direction+"] ");let j=this.prefixSelectors.map(F=>F+O),A=(F,Q)=>j.map(Y=>(F?"."+F+" ":"")+(d?d+" ":"")+Y).reduce((Y,K)=>(Y.push(W.reduce((te,G)=>(te.push(K+"."+ae(Q)+G),te),[]).join(",")),Y),[]).join(","),H=A(v,e)+(R?Object.entries(R).filter(([F])=>this.theme||!x||!v||!F||F===v).map(([F,Q])=>Q.reduce((Y,K)=>Y+","+A(this.theme??((x||I)&&v||F),K),"")).join(""):"")+"{"+B+"}";for(let F of Object.keys(this.at).sort((Q,Y)=>Y==="supports"?-1:1))H="@"+F+" "+this.at[F]+"{"+H+"}";return H},S=[];if(q){let B=this.theme?[this.theme,""]:[z],v,W;for(let O of q)if(typeof O=="string")S.push(O);else{let j=O.value;if(O.unit)j+=O.unit;else if(x&&w&&f){let A=!1,H=!1;j=j.replace(new RegExp(`(^|,| |\\()((?:${f.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(F,Q,Y,K)=>{H=!0;let te=w[Y];if(te){let G;for(let ee of B)if(G=te[ee])break;if(G){A=!0;let ee=G;if(K){let _=K.endsWith("%")?parseFloat(K)/100:+K;_=isNaN(_)?1:Math.min(Math.max(_,0),1),ee+=Math.round(_*255).toString(16).toUpperCase().padStart(2,"0")}return Q+ee}}return F}),H&&(W=A)}W!==void 0&&!v&&(v=W),S.push(j)}if(L&&(v===void 0?z:!v))return;if(E=S.reduce((O,j,A)=>O+j+(j===","||q[A+1]===","||A===q.length-1?"":" "),""),n&&(E=n.call(this,E,this.css.config)),x&&E==="current"&&(E="currentColor"),b){let O,j;if(q.length===1){let A=q[0];typeof A=="object"&&(O=A.value,j=A.unit)}$=b.call(this,j?O:E,j||"")}else $={[m]:E}}let y={};for(let B in $){let v=(j,A)=>{let H=A+((this.important||g)&&!A.endsWith("!important")?"!important":"");j in y?y[j].push(H):y[j]=[H]},W=B+":",O=$[B];if(typeof O=="object"){I=!0;for(let j in O)v(j,W+O[j])}else v(z,W+O.toString())}for(let B of Object.values(this.vendorSuffixSelectors))for(let v in y)this.natives.push({text:N(y[v].join(";"),v,B),theme:v})};if(this.theme)me(this.theme,!1);else if(x)for(let z of C)me(z,!0);else me("",!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 a="",s=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(e.includes("/")){let[x,m]=e.split("/");return{value:+x/+m*100+"%",unit:a}}else{let x=+s[1];return a=s[3]||"",a||((i==="rem"||i==="em")&&(x=x/this.css.config.rootSize),a=i||""),{value:x,unit:a}}}}};var Se={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function oe(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 ce(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function V(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,a="0"in t?oe(t[0]):[0,0,0],s,x,m=[],h=()=>{let n=s-i,b=x.map((c,d)=>(c-a[d])/n);for(let c of m){let d=c-i,g=a.map((T,C)=>Math.round(T+b[C]*d));t[c]="#"+ce.call(this,...g)}};for(let n=1;n<100;n++)n in t?(m.length?(s=n,x=oe(t[n]),h(),m.length=0,a=x):a=oe(t[n]),i=n):m.push(n);m.length&&(s=100,x="100"in t?oe(t[100]):[255,255,255],h())}return e||(t[""]=t[r?"500":"50"]),t}var Ce={black:"#000000",white:"#ffffff",slate:V({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:V({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:V({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:V({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:V({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:V({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:V({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:V({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:V({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:V({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:V({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:V({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:V({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:V({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:V({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:V({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:V({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:V({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:V({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:V({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var we=16;var $e="";var Te={"::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 Me={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}};var Be=["dark","light"];var _e={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=(n,b)=>{let c=b.indexOf(":");if(c!==-1){n in e||(e[n]={});let d=e[n],g=b.slice(0,c);g in d||(d[g]=b.slice(c+1))}},i=n=>{let b=(c,d)=>{let g=d.slice(ae(n.className).length).match(/\{(.*)\}/)[1].split(";");for(let T of g)r(c,T)};if(this.theme){let c=n.natives.find(d=>d.theme===this.theme)??n.natives.find(d=>!d.theme);c&&b(this.theme,c.text)}else for(let c of n.natives)b(c.theme,c.text)},a=[],s="",x=()=>{s&&(a.push(s.replace(/ /g,"")),s="")},m=1;(function n(b){for(;m<t.length;m++){let c=t[m];if(!b){if(c===";"){x();continue}if(c==="}")break}if(s+=c,b===c){if(b==="'"||b==='"'){let d=0;for(let g=s.length-2;s[g]==="\\";g--)d++;if(d%2)continue}break}else c in re&&b!=="'"&&b!=='"'&&(m++,n(re[c]))}})(void 0),x();for(let n of a){let b=this.css.create(n);if(Array.isArray(b))for(let c of b)i(c);else b?i(b):r(this.theme??"",n)}let h={};for(let n in e)for(let[b,c]of Object.entries(e[n]))b in h?h[b][n]=c:h[b]={[n]:c};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){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},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"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},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:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},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},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},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:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},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},overflowX:{native:!0},overflowY:{native:!0},overflow:{native:!0,order:-1},overscrollBehaviorX:{native:!0},overscrollBehaviorY:{native:!0},overscrollBehavior:{native:!0,order:-1},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:{content:"content-box",border:"border-box",padding:"padding-box",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 je.call(this,t)},delete(t){return Oe.call(this,t)},insert(){return Le.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return je.call(this,t)},delete(t){return Oe.call(this,t)},insert(){return Le.call(this)}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderTopColor:{match:"^b(?:t|order-top(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderBottomColor:{match:"^b(?:b|order-bottom(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderLeftColor:{match:"^b(?:l|order-left(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderRightColor:{match:"^b(?:r|order-right(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderXColor:{match:"^b(?:x|order-x(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},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,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},order:-2},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:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},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:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},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},scrollMarginLeft:{match:"^sml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^smr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^smt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^smb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:smx|scroll-margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}}},scrollMarginY:{match:"^(?:smy|scroll-margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}}},scrollMargin:{match:"^sm:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^spl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^spr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^spt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^spb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:spx|scroll-padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}}},scrollPaddingY:{match:"^(?:spy|scroll-padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}}},scrollPadding:{match:"^sp:.",native:!0,unit:"rem",order:-1},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:{content:"content-box",border:"border-box",padding:"padding-box",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:{content:"content-box",border:"border-box",padding:"padding-box",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}}}},We=_e;function je(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 Oe(){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 Le(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,a=r?.sheet;for(let s of this.keyframeNames)if(s in e)e[s].count++;else{let x={text:`@keyframes ${s}{`+Object.entries(t.keyframes[s]).map(([h,n])=>`${h}{${Object.entries(n).map(([b,c])=>b+":"+c).join(";")}}`).join("")+"}",theme:""},m;if(Object.keys(e).length?(m=i[0]).natives.push(x):i.splice(0,0,m={natives:[x],get text(){return this.natives.map(h=>h.text).join("")}}),a){let h;for(let n=0;n<a.cssRules.length;n++){let b=a.cssRules[n];if(b.constructor.name!=="CSSKeyframesRule")break;if(b.name===s){h=b;break}}if(h)x.cssRule=h;else{let n=m.natives.length-1;a.insertRule(x.text,n),x.cssRule=a.cssRules[n]}}e[s]={native:x,count:1}}}}var Ee=!1;var Ae=!0;var Ie=!1;var ze={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}};var ge={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=h=>h==="+"||h==="-"||h==="*"||h==="/",r="",i,a="",s=!1,x=!1,m=(h,n="",b="")=>{if(i===2&&!x){let c=this.analyzeUnitValue(a,ge.calc.unit);c&&(a=c.value+c.unit)}r+=a+n+h+b,i=null,x=!1,a=""};for(let h=0;h<t.length;h++){let n=t[h];if(n==="("||n===")")s=n===")",m(n);else if(n===",")m(n,""," ");else{switch(i){case 1:break;case 2:if(e(n)){m(n," "," ");continue}else/[0-9]/.test(n)||(x=!0);break;default:s&&(r+=" "),isNaN(+n)?e(n)||(i=1):i=2;break}i?a+=n:r+=n}}return m(""),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 se={breakpoints:Se,colors:Ce,rootSize:16,scope:$e,selectors:Te,semantics:Me,themes:Be,rules:We,override:!1,observe:!0,important:!1,functions:ge,keyframes:ze};var Fe=[",",".","#","[","!","*",">","+","~",":","@"];var pe=typeof window<"u",De=()=>{let t=document.createElement("style");return t.id="master",t},ie=class{constructor(e=se){this.config=e;e?.override||(this.config=J(se,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),pe&&this.config.observe&&this.observe(document),ie.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;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:a,colors:s,values:x,breakpoints:m,mediaQueries:h,rules:n}=this.config;function b(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(o,u,p="",l={}){let k=M=>M?(p?p+"-":"")+M:p,R=Object.entries(o),$=[],I=[];for(let M of R){let X=M[1];(typeof X=="object"&&!Array.isArray(X)?$:I).push(M)}for(let[M,X]of $)c(X,u,k(M),l);if(u&&p)I.length&&(l[p]=I.reduce((M,[X,q])=>(M[X]=q,M),{}));else for(let[M,X]of I)l[k(M)]=X;return l}if(e)for(let[o,u]of Object.entries(c(e,!0)))this.semantics.push([new RegExp("^"+b(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[o,u]]);if(i)for(let[o,u]of Object.entries(c(i,!1))){let p=new RegExp(b(o)+"(?![a-z-])");for(let l of Array.isArray(u)?u:[u]){let k=l.match(/^::-[a-z]+-/m)?.[0]??"",R=this.selectors[k];R||(R=this.selectors[k]=[]);let $=R.find(([I])=>I===p);$||($=[p,[]],R.push($)),$[1].push(l)}}x&&(this.globalValues=c(x,!1)),m&&(this.breakpoints=c(m,!1)),h&&(this.mediaQueries=c(h,!1));let d=r?c(r,!1):{},g=a&&!Array.isArray(a)?Object.entries(a).filter(([,{classes:o}])=>o).reduce((o,[u,{classes:p}])=>(o[u]=c(p,!1),o),{}):{},T=[...Object.keys(d),...Object.entries(g).flatMap(([o,u])=>Object.keys(u))],C=o=>{if(o in this.classes)return;let u=this.classes[o]=[],p=(l,k)=>{if(!k)return;let R=Array.isArray(k)?k:k.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let $ of R){let I=M=>{M in this.themeAffectedClassesBy?l in this.themeAffectedClassesBy[M]?this.themeAffectedClassesBy[M][l].push(o):this.themeAffectedClassesBy[M][l]=[o]:this.themeAffectedClassesBy[M]={[l]:[o]},u.includes(M)||u.push(M)};if(T.includes($)){C($);for(let M of this.classes[$])I(M)}else I($)}};p("",d?.[o]);for(let[l,k]of Object.entries(g))p(l,k?.[o])};for(let o of T)C(o);for(let o in this.themeAffectedClassesBy){let u=this.classesBy[o]=[];for(let p of Object.values(this.themeAffectedClassesBy[o]))for(let l of p)u.includes(l)||u.push(l)}let f=(o,u)=>{if(!u)return;let p=c(u,!0);for(let[l,k]of Object.entries(p)){let R=typeof k=="string"?{"":k}:k;for(let[$,I]of Object.entries(R)){let M=l+($?"-"+$:"");M in this.colorThemesMap?this.colorThemesMap[M][o]=I:this.colorThemesMap[M]={[o]:I}}}for(let l in u)this.colorNames.includes(l)||this.colorNames.push(l)};if(f("",s),a)if(Array.isArray(a))this.themeNames.push(...a);else for(let o in a){let u=a[o];f(o,u.colors),this.themeNames.push(o)}let w=o=>{for(let[u,p]of Object.entries(this.colorThemesMap))for(let[l,k]of Object.entries(p))k.startsWith("#")||o(u,p,l,k)};if(w((o,u,p,l)=>{let k=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(l);if(k){let R="#"+ce(+k[1],+k[2],+k[3]);k[4]&&(R+=Math.round(255*+k[4]).toString(16)),u[p]=R}}),w((o,u,p,l)=>{let[k,R]=l.split("/"),$=this.colorThemesMap[k];if($){let I=(p?$[p]:void 0)??$[""];u[p]=R?I.slice(0,7)+Math.round(255*+R).toString(16):I}else console.warn(`\`${l}\` doesn't exist in the extended config \`.colors\``),delete u[p],Object.keys(u).length||delete this.colorThemesMap[o]}),n)for(let o in n){let u=n[o],{native:p,values:l,colored:k}=u,R=u.match;if(u.id=o,u.native=p===!0?o.replace(/(?!^)[A-Z]/g,$=>"-"+$).toLowerCase():void 0,l&&(this.values[o]=c(l,!1)),R){let $=Object.keys(this.values[o]??{});R.includes("$values")&&(R=$.length?R.replace(/\$values/,$.join("|")):R.replace(/(?:\|)?\$values/,"")),k&&R.includes("$colors")&&(R=this.colorNames.length?R.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):R.replace(/(?:\|)?\$colors/,"")),this.matches[o]=new RegExp(R)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(pe&&e){this.root=e;let i=e===document;i&&(ie.root=this),this.host=i?document.documentElement:root.host;let a=i?document.head:e,s=i?document.styleSheets:e.styleSheets;for(let m of s){let{ownerNode:h}=m;if(h.id==="master"){this.style=h;break}}if(this.style)for(let m=0;m<this.style.sheet.cssRules.length;m++){let h=this.style.sheet.cssRules[m];if(h.constructor.name==="CSSKeyframesRule")continue;let n=c=>{if(c.selectorText){let g=c.selectorText.split(", ")[0].split(" ");for(let T=0;T<g.length;T++){let C=g[T];if(C[0]==="."){let f=C.slice(1),w="";for(let o=0;o<f.length;o++){let u=f[o],p=f[o+1];if(u==="\\"){if(o++,p!=="\\"){w+=p;continue}}else if(Fe.includes(u))break;w+=u}if(!(w in this.ruleBy)&&!(w in this.classes)){let o=this.create(w)[0];if(o)return o}}}}else if(c.cssRules)for(let d=0;d<c.cssRules.length;d++){let g=n(c.cssRules[d]);if(g)return g}},b=n(h);if(b){this.rules.push(b),this.ruleBy[b.className]=b;for(let c=0;c<b.natives.length;c++)b.natives[c].cssRule=this.style.sheet.cssRules[m+c];m+=b.natives.length-1,b.config.insert?.call(b)}}else this.style=De(),a.append(this.style);let x=m=>{m.forEach(h=>{h in this.countBy?this.countBy[h]++:(this.countBy[h]=1,this.insert(h))})};x(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(m=>x(m.classList)),this.observer=new MutationObserver(m=>{let h={},n=[],b=[],c=[],d=(f,w)=>{w?f.classList.forEach(T):f.classList.forEach(g);let o=f.children;for(let u=0;u<o.length;u++){let p=o[u];p.classList&&(b.push(p),d(p,w))}},g=f=>{f in h?h[f]++:h[f]=1},T=f=>{f in h?h[f]--:f in this.countBy&&(h[f]=-1)},C=(f,w)=>{for(let o=0;o<f.length;o++){let u=f[o];u.classList&&!b.includes(u)&&!c.includes(u)&&(u.isConnected!==w?(b.push(u),d(u,w)):c.push(u))}};for(let f=0;f<m.length;f++){let w=m[f],{addedNodes:o,removedNodes:u,type:p,target:l}=w;if(p==="attributes"){if(n.find(k=>k.target===l))continue;n.push(w)}else C(o,!1),(!l.isConnected||!b.includes(l))&&C(u,!0)}if(!(!n.length&&!Object.keys(h).length)){for(let{oldValue:f,target:w}of n){let o=b.includes(w),u=w.classList,p=f?f.split(" "):[];if(o){if(w.isConnected)continue;for(let l of p)u.contains(l)||T(l)}else if(w.isConnected){u.forEach(l=>{p.includes(l)||g(l)});for(let l of p)u.contains(l)||T(l)}}for(let f in h){let w=h[f],o=(this.countBy[f]||0)+w;o===0?(delete this.countBy[f],this.delete(f)):(f in this.countBy||this.insert(f),this.countBy[f]=o)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),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],a=this.matches[r],{symbol:s,native:x}=i;if(a&&a.test(e))return{origin:"match",config:i};if(s&&e.startsWith(s))return{origin:"symbol",config:i};if(x&&e.startsWith(x+":"))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 a=this.match(i);if(a)return new le(i,a,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=J(se,e),this.cache(),!this.style)return;let r=De();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=ie.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=a=>{let s=this.ruleBy[a];if(!(!s||a in this.classesBy&&this.classesBy[a].some(x=>x in this.countBy))){if(r&&s.natives.length){let x=s.natives[0];for(let m=0;m<r.cssRules.length;m++)if(r.cssRules[m]===x.cssRule){for(let n=0;n<s.natives.length;n++)r.deleteRule(m);break}}this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[a],s.config.delete&&s.config.delete.call(s,a)}};if(e in this.classes){for(let a of this.classes[e])a in this.countBy||i(a);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,a=Object.keys(this.keyframes).length,s=this.rules.length-1,{media:x,order:m,priority:h,hasWhere:n,className:b}=r,c=(d,g,T,C)=>{let f=a?1:0,w;g&&(f=d.findIndex(g)),T&&(w=d.findIndex(T)),f===-1&&(f=d.length),(w===void 0||w===-1)&&(w=d.length);let o=d.slice(f,w);for(let u=0;u<o.length;u++){let p=o[u];if(!(p.priority===-1||C&&C(p))&&(p.priority<h||p.priority===h&&(n&&!p.hasWhere||p.order>=m)))return f+u}return f+o.length};if(x){let d=this.rules.findIndex(g=>g.media);if(d!==-1){let g=x.features["max-width"],T=x.features["min-width"];if(g&&T){let C=g.value-T.value;for(let f=s;f>=d;f--){i=f;let w=this.rules[f],o=w.media,u=o.features["max-width"],p=o.features["min-width"];if(!u||!p){i++;break}let l=u.value-p.value;if(l===C){if(n!==w.hasWhere)continue;if(h!==-1){let k=[this.rules[f]];for(let R=f-1;R>=d;R--){let $=this.rules[R];if($.hasWhere!==n)break;let I=$.media,M=I.features["max-width"],X=I.features["min-width"];if(!M||!X||M.value-X.value!==l)break;k.unshift(this.rules[R])}i=c(this.rules,R=>R.media&&R.priority!==-1&&R.media.features["min-width"]&&R.media.features["max-width"])}break}else if(l>C)break}}else if(T)for(let C=d;C<=s;C++){i=C;let f=this.rules[C],w=f.media,o=w.features["max-width"],u=w.features["min-width"];if(o){if(u)break;continue}let p=u?.value;if(p===T.value){if(!n&&f.hasWhere){i++;continue}if(h!==-1)i=c(this.rules,l=>l.media,l=>l.media&&l.priority!==-1&&l.media.features["min-width"]&&l.media.features["max-width"],l=>!l.media.features["min-width"]&&!l.media.features["max-width"]);else for(let l=C;l<=s;l++){let k=this.rules[l],R=k.media,$=R.features["min-width"];if(!R.features["max-width"]){if(k.hasWhere!==n||$.value!==p||k.order>=m)break;i=l+1}}break}else{if(p>T.value)break;i++}}else if(g)for(let C=s;C>=d;C--){i=C;let f=this.rules[C],w=f.media,o=w.features["max-width"];if(w.features["min-width"])continue;let p=o?.value;if(!p||p>g.value){i++;break}else if(p===g.value){if(n&&!f.hasWhere)continue;if(h!==-1)i=c(this.rules,l=>l.media,l=>l.media&&l.priority!==-1&&l.media.features["min-width"]&&l.media.features["max-width"],l=>!l.media.features["min-width"]&&!l.media.features["max-width"]);else{let l=[this.rules[C]];for(let k=C-1;k>=d;k--){let R=this.rules[k],$=R.media,I=$.features["min-width"],M=$.features["max-width"];if(!I&&(!M||M.value!==p||R.hasWhere!==n))break;l.unshift(R)}for(let k=0;k<l.length;k++){let R=l[k];if(!R.media.features["min-width"]){if(R.order>=m)break;i=C-l.length+2+k}}}break}}}if(i===void 0)if(d===-1)i=s+1;else if(h!==-1)i=d+c(this.rules.slice(d),void 0,g=>g.media.features["max-width"]||g.media.features["min-width"]);else if(n){let g=d;for(;g<this.rules.length;g++){let T=this.rules[g];if(T.priority!==-1||!T.hasWhere||T.order>=m){i=g;break}}i===void 0&&(i=g)}else for(let g=d;g<=s;g++){i=g;let T=this.rules[g],C=T.media;if(T.priority!==-1||C.features["max-width"]||C.features["min-width"])break;if(T.hasWhere)i++;else if(T.order>=m)break}}else if(h===-1){let d=a?1:0;if(n)for(;d<this.rules.length;d++){let g=this.rules[d];if(!g.hasWhere||g.media||g.priority!==-1||g.order>=m){i=d;break}}else for(;d<this.rules.length;d++){let g=this.rules[d];if(g.media||!g.hasWhere&&(g.order>=m||g.priority!==-1)){i=d;break}}i===void 0&&(i=d)}else i=c(this.rules,void 0,d=>d.media);if(this.rules.splice(i,0,r),this.ruleBy[b]=r,this.style){let d=this.style.sheet,g=0,T=C=>{let f=this.rules[C];if(f){if(!f.natives.length)return T(C-1);let w=f.natives[f.natives.length-1].cssRule;for(let o=0;o<d.cssRules.length;o++)if(d.cssRules[o]===w){g=o+1;break}}};T(i-1);for(let C=0;C<r.natives.length;)try{let f=r.natives[C];d.insertRule(f.text,g),f.cssRule=d.cssRules[g++],C++}catch(f){console.error(f),r.natives.splice(C,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},Z=ie;ne(Z,"root"),ne(Z,"config",se),ne(Z,"instances",[]),ne(Z,"refresh",e=>{for(let r of ie.instances)r.refresh(e)});pe&&(window.MasterCSS=Z);var Ne={store:"theme",init:!0},qe=typeof document<"u",Pe=typeof localStorage<"u",Ve=class{constructor(e,r=qe?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?J(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(Pe&&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.n(),this.current=e)}get value(){return this.r}set current(e){let r=this.t;this.t=e,this.host&&r!==e&&(r&&this.host.classList.remove(r),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Pe&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};function rr(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 or(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 Ze=/&(amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,Ke={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'",quot:'"',"#34":'"'};function ue(t){if(t)return t.split(/\sclass="([^"]*)"/gm).filter((e,r)=>r%2===1).map(e=>e.split(" ")).flat().map(e=>e.replace(Ze,(r,i)=>Ke[i]))}function Ye(t,e){if(!t)return;let r=ue(t);if(!r.length)return;let i=new Z({...e,observe:!1});for(let a of r)a in i.countBy||i.insert(a)&&(i.countBy[a]=1);return i.text}function fr(t,e){if(!t)return;let r=`<style id="master">${Ye(t,e)}</style>`;return t.replace(/<\/head>/,`${r}$&`)}function Xe(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.rules}function vr(t,e){if(!t)return;let r=ue(t);if(r.length)return Xe(r,e)}function Ge(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 a=i.reduce(function(m,h){var n=h.match(/\n([\t ]+|(?!\s).)/g);return n?m.concat(n.map(function(b){var c,d;return(d=(c=b.match(/[\t ]/g))===null||c===void 0?void 0:c.length)!==null&&d!==void 0?d:0})):m},[]);if(a.length){var s=new RegExp(`
|
|
2
|
+
[ ]{`+Math.min.apply(Math,a)+"}","g");i=i.map(function(m){return m.replace(s,`
|
|
3
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var x=i[0];return e.forEach(function(m,h){var n=x.match(/(?:^|\n)( *)$/),b=n?n[1]:"",c=m;typeof m=="string"&&m.includes(`
|
|
4
|
+
`)&&(c=String(m).split(`
|
|
5
|
+
`).map(function(d,g){return g===0?d:""+b+d}).join(`
|
|
6
|
+
`)),x+=c+i[h+1]}),x}var be=Ge;function Rr({compiler:t,jit:e,ext:r}={}){let i=(c,d=", ")=>c.filter(g=>g).join(d),a=r==="ts",s=r==="js",x=r!=="ts",m=s?"":"export ",h=s?"const":"import",n=s?" = require(":" from ",b=s?")":"";return[(a||e)&&`${h} ${i([e&&(s?"{ MasterCSS }":"MasterCSS"),a?"{ Config }":""])}${n}'@master/css'${b}`,a&&t&&`${h} { Options }${n}'@master/css-compiler'${b}`,(a||e||a&&t)&&"",x&&"/** @type {import('@master/css').Config} */",be`${m}const config${a?": Config":""} = {
|
|
7
7
|
themes: {},
|
|
8
8
|
colors: {},
|
|
9
9
|
classes: {},
|
|
@@ -12,7 +12,7 @@ var Ve=Object.defineProperty;var Xe=(t,e,r)=>e in t?Ve(t,e,{enumerable:!0,config
|
|
|
12
12
|
breakpoints: {},
|
|
13
13
|
selectors: {},
|
|
14
14
|
mediaQueries: {}
|
|
15
|
-
}`,t&&"",t&&
|
|
15
|
+
}`,t&&"",t&&x&&"/** @type {import('@master/css-compiler').Options} */",t&&be`${m}const compilerOptions${a?": Options":""} = {
|
|
16
16
|
sources: [],
|
|
17
17
|
classes: {
|
|
18
18
|
fixed: [],
|
|
@@ -20,6 +20,6 @@ var Ve=Object.defineProperty;var Xe=(t,e,r)=>e in t?Ve(t,e,{enumerable:!0,config
|
|
|
20
20
|
}
|
|
21
21
|
}`,e&&`
|
|
22
22
|
${m}const css = new MasterCSS(config)`,!m&&`
|
|
23
|
-
module.exports = { ${i(["config",e&&"css",t&&"compilerOptions"])} }`].filter(
|
|
23
|
+
module.exports = { ${i(["config",e&&"css",t&&"compilerOptions"])} }`].filter(c=>typeof c=="string").join(`
|
|
24
24
|
`)+`
|
|
25
|
-
`}export{Z as MasterCSS,le as Rule,
|
|
25
|
+
`}export{Z as MasterCSS,le as Rule,Ve as Theme,Se as breakpoints,Ce as colors,se as config,Z as default,Rr as defineContent,J as extend,ue as extractClassesFromHTML,V as fillColorScale,ge as functions,rr as getDocThemeInitScript,Ie as important,ze as keyframes,Ae as observe,Ee as override,or as render,Ye as renderFromHTML,fr as renderIntoHTML,Xe as renderRules,vr as renderRulesFromHTML,we as rootSize,We as rules,$e as scope,Te as selectors,Me as semantics,Ne as themeSettings,Be as themes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function extractClassesFromHTML(html: string): string[];
|
package/dist/methods/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from './render';
|
|
2
2
|
export * from './render-from-html';
|
|
3
3
|
export * from './render-into-html';
|
|
4
|
+
export * from './render-rules';
|
|
5
|
+
export * from './render-rules-from-html';
|
|
6
|
+
export * from './extract-classes-from-html';
|
|
4
7
|
export * from './fill-color-scale';
|
|
5
8
|
export * from './define-content';
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css","scripts":{"build":"techor pack --extra-external @master/css-compiler --shakable","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/keyframes.css":"^2.0.0-beta.
|
|
1
|
+
{"name":"@master/css","scripts":{"build":"techor pack --extra-external @master/css-compiler --shakable","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/keyframes.css":"^2.0.0-beta.139","@master/normal.css":"^2.0.0-beta.139","@techor/fs":"^2.1.4","@techor/log":"^2.1.4","chokidar":"^3.5.3","commander":"^10.0.0","fast-glob":"^3.2.12"},"devDependencies":{"@techor/extend":"^2.1.4","ts-dedent":"^2.2.0","vite":"^4.2.1"},"version":"2.0.0-beta.139"}
|