@master/css 2.0.0-beta.137 → 2.0.0-beta.138
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/index.js +1 -1
- 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/config/index.d.ts +1 -2
- package/dist/config/keyframes.d.ts +5 -5
- package/dist/config/rules.d.ts +4 -4
- package/dist/esm/config/index.mjs +1 -1
- 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/index.browser.js +1 -1
- package/dist/index.js +7 -7
- package/dist/index.mjs +8 -8
- package/package.json +1 -1
- package/dist/cjs/config/precedence.js +0 -1
- package/dist/config/precedence.d.ts +0 -1
- package/dist/esm/config/precedence.mjs +0 -1
package/dist/index.browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var Ne=Object.defineProperty;var Fe=(t,e,r)=>e in t?Ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ne=(t,e,r)=>(Fe(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]=J({},r):e[i]=r}),e}function ve(t,e){return e==="__proto__"?void 0:t[e]}function J(...t){let e={},r,i;return t.forEach(function(u){typeof u!="object"||u===null||Array.isArray(u)||Object.keys(u).forEach(function(l){if(i=ve(e,l),r=ve(u,l),r!==e)if(typeof r!="object"||r===null){e[l]=r;return}else if(Array.isArray(r)){e[l]=ke(r);return}else if(xe(r)){e[l]=ye(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[l]=J({},r);return}else{e[l]=J(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,u="",l,x=e.charCodeAt(0);if(r==1&&x==45)return"\\"+e;for(;++i<r;){if(l=e.charCodeAt(i),l==0){u+="\uFFFD";continue}if(l>=1&&l<=31||l==127||i==0&&l>=48&&l<=57||i==1&&l>=48&&l<=57&&x==45){u+="\\"+l.toString(16)+" ";continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){u+=e.charAt(i);continue}u+="\\"+e.charAt(i)}return u}var De={unit:"",order:0,separators:[","]},le=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=J(De,r.config);let{unit:u,order:l,colored:x,native:y,analyze:d,transform:c,declare:g,create:n}=this.config,{scope:f,important:R,functions:k}=i.config,{themeNames:S,colorNames:p,colorThemesMap:C,selectors:s,breakpoints:o,mediaQueries:a,themeAffectedClassesBy:h,globalValues:b}=i,$=h[e];n&&n.call(this,e);let T,I,O,_,q;if(r.origin==="semantics"){let[z,E]=r.value;_=e.slice(z.length),T=E}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 E=this,L=this.values,D=[","];this.config.separators.length&&D.push(...this.config.separators);let w="",v=0;(function M(m,W,j,B=void 0,A=[],X=[],N){let Q=B===void 0,P,Z=F=>F==="'"||F==='"',te=()=>P=w.length,K=()=>{if(w){let F=w,V=Q?F:w.slice(P);if(w="",H="",L&&V in L&&!A.includes(V)){let U=v;v=0,M(L[V].toString(),W,void 0,B,[...A,V],X,N),v=U,Q||(w=w.slice(0,P)+w)}else if(b&&V in b&&!X.includes(V)){let U=v;v=0,M(b[V].toString(),W,void 0,B,A,[...X,V],N),v=U,Q||(w=w.slice(0,P)+w)}else if(Q){let U=!N&&E.analyzeUnitValue(V,W);q.push({value:U?.value??V,unit:U?.unit})}else{let U=!N&&E.analyzeUnitValue(V,W);w=U?F.slice(0,P)+U.value+U.unit:F}te()}},G=Z(j);te();let H="";for(;v<m.length;v++){let F=m[v];if(F===j){if(G){w+=F;let V=0;for(let U=w.length-2;w[U]==="\\";U--)V++;if(V%2)continue}else K(),w+=F;return}else if(!G&&F in re){let V=F==="("&&H&&k?.[H];V?.name&&(w=w.slice(0,w.length-H.length)+V.name,H=V.name),w+=F,v++;let U=re[F];M(m,V?.unit??W,U,H||B||"",A,X,N||!!V?.transform),V?.transform&&(w=w.slice(0,P+H.length+1)+V.transform.call(E,w.slice(P+H.length+1,-1))+w.slice(-1)),Q&&(Z(U)?(q.push(w),w=""):K()),H=""}else if((F==="|"||F===" ")&&j!=="}"&&(!G||B==="path"))K(),Q||(w+=" ",P++);else{if(!G){if(F==="."){if(isNaN(+m[v+1]))break;m[v-1]==="-"&&(w+="0")}else if(D.includes(F)){K(),Q?q.push(F):(w+=F,P++);continue}else if(Q&&(F==="#"&&(w||q.length&&m[v-1]!=="|"&&q[v-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(F)))break;H+=F}w+=F}}B===void 0&&K()})(z,u),_=z.slice(v)}this.order=typeof l=="function"?l.call(this,this.prefix):l,_[0]==="!"&&(this.important=!0,_=_.slice(1));let be=z=>{let E=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((v,M)=>M%3?v:v.replace(/_/g," ")).join(""),L=[],D="",w=0;for(let v=0;v<E.length;v++){let M=E[v];if(M==="\\"){D+=M+E[++v];continue}!w&&M===","?(L.push(D),D=""):(D+=M,w&&M===")"?w--:M==="("&&w++)}return D&&L.push(D),L};this.prefixSelectors=O?be(O):[""];let de=_.split("@"),fe=de[0];if(fe){this.vendorSuffixSelectors={};let z=(v,M,m,W)=>{for(let[j,B]of M)if(j.test(v)){for(let A of B)z(v.replace(j,A),M,m,!0);return}W&&m.push(v)},E=[];""in s?z(fe,s[""],E,!0):E.push(fe);let L={};for(let[v,M]of Object.entries(s)){if(!v)continue;let m=[];for(let W of E)z(W,M,m,!1);m.length&&(L[v]=m)}let D=(v,M)=>{let m=M.reduce((W,j)=>(W.push(...be(j)),W),[]);v in this.vendorSuffixSelectors?this.vendorSuffixSelectors[v].push(...m):this.vendorSuffixSelectors[v]=m},w=Object.keys(L);if(w.length)for(let v of w)D(v,L[v]);else D("",E);for(let v of Object.values(this.vendorSuffixSelectors))for(let M of v){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));for(let m=0;m<me.length;m++)if(M.includes(me[m])){(this.priority===-1||this.priority>m)&&(this.priority=m);break}}}else this.vendorSuffixSelectors={"":[""]};for(let z=1;z<de.length;z++){let E=de[z];if(E)if(S.includes(E))this.theme=E;else if(E==="rtl"||E==="ltr")this.direction=E;else{let L,D,w=E.indexOf("_");if(w!==-1)L=E.slice(0,w),D=E.slice(w);else{let v=E.indexOf("(");v!==-1&&(L=E.slice(0,v),D=E.slice(v))}if(!L){L="media";let v=[];this.media={token:E,features:{}};let M=E.split("&");for(let m of M)if(m==="all"||m==="print"||m==="screen"||m==="speech")this.media.type=m;else if(m==="\u{1F5A8}")this.media.type="print";else if(m==="landscape"||m==="portrait")v.push("(orientation:"+m+")");else if(m==="motion"||m==="reduced-motion")v.push("(prefers-reduced-motion:"+(m==="motion"?"no-preference":"reduce")+")");else if(a&&m in a)v.push(a[m]);else{let W={token:m},j="",B="",A=0;m.startsWith("<=")?(B="<=",j="max-width"):m.startsWith(">=")||o[m]?(B=">=",j="min-width"):m.startsWith(">")?(B=">",j="min-width",A=.02):m.startsWith("<")&&(B="<",j="max-width",A=-.02);let X=B?m.replace(B,""):m,N=o[X];switch(j){case"max-width":case"min-width":N?Object.assign(W,this.analyzeUnitValue(N.toString(),"px")):Object.assign(W,this.analyzeUnitValue(X,"px")),W.unit==="px"&&(W.value+=A),this.media.features[j]=W,v.push("("+j+":"+(W.value+W.unit)+")");break}}D="",this.media.type&&(D=this.media.type),v.length&&(D+=(D?" and ":"")+v.join(" and "))}D&&(this.at[L]=(L in this.at?this.at[L]+" and ":"")+D.replace(/_/g," "))}}let he=(z,E)=>{let L,D=(M,m,W)=>{let j="";this.direction&&(j+="[dir="+this.direction+"] ");let B=this.prefixSelectors.map(N=>N+j),A=(N,Q)=>B.map(P=>(N?"."+N+" ":"")+(f?f+" ":"")+P).reduce((P,Z)=>(P.push(W.reduce((te,K)=>(te.push(Z+"."+ae(Q)+K),te),[]).join(",")),P),[]).join(","),X=A(m,e)+($?Object.entries($).filter(([N])=>this.theme||!x||!m||!N||N===m).map(([N,Q])=>Q.reduce((P,Z)=>P+","+A(this.theme??((x||I)&&m||N),Z),"")).join(""):"")+"{"+M+"}";for(let N of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))X="@"+N+" "+this.at[N]+"{"+X+"}";return X},w=[];if(q){let M=this.theme?[this.theme,""]:[z],m,W;for(let j of q)if(typeof j=="string")w.push(j);else{let B=j.value;if(j.unit)B+=j.unit;else if(x&&C&&p){let A=!1,X=!1;B=B.replace(new RegExp(`(^|,| |\\()((?:${p.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(N,Q,P,Z)=>{X=!0;let te=C[P];if(te){let K;for(let G of M)if(K=te[G])break;if(K){A=!0;let G=K;if(Z){let H=Z.endsWith("%")?parseFloat(Z)/100:+Z;H=isNaN(H)?1:Math.min(Math.max(H,0),1),G+=Math.round(H*255).toString(16).toUpperCase().padStart(2,"0")}return Q+G}}return N}),X&&(W=A)}W!==void 0&&!m&&(m=W),w.push(B)}if(E&&(m===void 0?z:!m))return;if(L=w.reduce((j,B,A)=>j+B+(B===","||q[A+1]===","||A===q.length-1?"":" "),""),c&&(L=c.call(this,L,this.css.config)),x&&L==="current"&&(L="currentColor"),g){let j,B;if(q.length===1){let A=q[0];typeof A=="object"&&(j=A.value,B=A.unit)}T=g.call(this,B?j:L,B||"")}else T={[y]:L}}let v={};for(let M in T){let m=(B,A)=>{let X=A+((this.important||R)&&!A.endsWith("!important")?"!important":"");B in v?v[B].push(X):v[B]=[X]},W=M+":",j=T[M];if(typeof j=="object"){I=!0;for(let B in j)m(B,W+j[B])}else m(z,W+j.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let m in v)this.natives.push({text:D(v[m].join(";"),m,M),theme:m})};if(this.theme)he(this.theme,!1);else if(x)for(let z of S)he(z,!0);else he("",!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 u="",l=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(l)if(e.includes("/")){let[x,y]=e.split("/");return{value:+x/+y*100+"%",unit:u}}else{let x=+l[1];return u=l[3]||"",u||((i==="rem"||i==="em")&&(x=x/this.css.config.rootSize),u=i||""),{value:x,unit:u}}}}};var we={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function se(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,u="0"in t?se(t[0]):[0,0,0],l,x,y=[],d=()=>{let c=l-i,g=x.map((n,f)=>(n-u[f])/c);for(let n of y){let f=n-i,R=u.map((k,S)=>Math.round(k+g[S]*f));t[n]="#"+ce.call(this,...R)}};for(let c=1;c<100;c++)c in t?(y.length?(l=c,x=se(t[c]),d(),y.length=0,u=x):u=se(t[c]),i=c):y.push(c);y.length&&(l=100,x="100"in t?se(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 Se="";var Ce={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var $e={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},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 Te=["dark","light"];var Ve={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(c,g)=>{let n=g.indexOf(":");if(n!==-1){c in e||(e[c]={});let f=e[c],R=g.slice(0,n);R in f||(f[R]=g.slice(n+1))}},i=c=>{let g=(n,f)=>{let R=f.slice(ae(c.className).length).match(/\{(.*)\}/)[1].split(";");for(let k of R)r(n,k)};if(this.theme){let n=c.natives.find(f=>f.theme===this.theme)??c.natives.find(f=>!f.theme);n&&g(this.theme,n.text)}else for(let n of c.natives)g(n.theme,n.text)},u=[],l="",x=()=>{l&&(u.push(l.replace(/ /g,"")),l="")},y=1;(function c(g){for(;y<t.length;y++){let n=t[y];if(!g){if(n===";"){x();continue}if(n==="}")break}if(l+=n,g===n){if(g==="'"||g==='"'){let f=0;for(let R=l.length-2;l[R]==="\\";R--)f++;if(f%2)continue}break}else n in re&&g!=="'"&&g!=='"'&&(y++,c(re[n]))}})(void 0),x();for(let c of u){let g=this.css.create(c);if(Array.isArray(g))for(let n of g)i(n);else g?i(g):r(this.theme??"",c)}let d={};for(let c in e)for(let[g,n]of Object.entries(e[c]))g in d?d[g][c]=n:d[g]={[c]: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 Me.call(this,t)},delete(t){return Be.call(this,t)},insert(){return je.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Me.call(this,t)},delete(t){return Be.call(this,t)},insert(){return je.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}}}},Oe=Ve;function Me(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 Be(){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 je(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,u=r?.sheet;for(let l of this.keyframeNames)if(l in e)e[l].count++;else{let x={text:`@keyframes ${l} {`+Object.entries(t.keyframes[l]).map(([d,c])=>`${d} {${Object.entries(c).map(([g,n])=>g+": "+n).join(";")}}`).join(",")+"}",theme:""},y;if(Object.keys(e).length?(y=i[0]).natives.push(x):i.splice(0,0,y={natives:[x],get text(){return this.natives.map(d=>d.text).join("")}}),u){let d;for(let c=0;c<u.cssRules.length;c++){let g=u.cssRules[c];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===l){d=g;break}}if(d)x.cssRule=d;else{let c=y.natives.length-1;u.insertRule(x.text,c),x.cssRule=u.cssRules[c]}}e[l]={native:x,count:1}}}}var Ee={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)"},"100%":{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}},ping:{"75%,100%":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},"100%":{transform:"none"}},rotate:{"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)"},"100%":{transform:"none"}}};var ge={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=d=>d==="+"||d==="-"||d==="*"||d==="/",r="",i,u="",l=!1,x=!1,y=(d,c="",g="")=>{if(i===2&&!x){let n=this.analyzeUnitValue(u,ge.calc.unit);n&&(u=n.value+n.unit)}r+=u+c+d+g,i=null,x=!1,u=""};for(let d=0;d<t.length;d++){let c=t[d];if(c==="("||c===")")l=c===")",y(c);else if(c===",")y(c,""," ");else{switch(i){case 1:break;case 2:if(e(c)){y(c," "," ");continue}else/[0-9]/.test(c)||(x=!0);break;default:l&&(r+=" "),isNaN(+c)?e(c)||(i=1):i=2;break}i?u+=c:r+=c}}return y(""),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 We="highest";var oe={breakpoints:we,colors:Re,rootSize:16,scope:Se,selectors:Ce,semantics:$e,themes:Te,rules:Oe,override:!1,observe:!0,important:!1,functions:ge,keyframes:Ee,precedence:We};var Le=[",",".","#","[","!","*",">","+","~",":","@"];var pe=typeof window<"u",Ae=()=>{let t=document.createElement("style");return t.id="master",t},ie=class{constructor(e=oe){this.config=e;e?.override||(this.config=J(oe,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:u,colors:l,values:x,breakpoints:y,mediaQueries:d,rules:c}=this.config;function g(s){return s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function n(s,o,a="",h={}){let b=O=>O?(a?a+"-":"")+O:a,$=Object.entries(s),T=[],I=[];for(let O of $){let _=O[1];(typeof _=="object"&&!Array.isArray(_)?T:I).push(O)}for(let[O,_]of T)n(_,o,b(O),h);if(o&&a)I.length&&(h[a]=I.reduce((O,[_,q])=>(O[_]=q,O),{}));else for(let[O,_]of I)h[b(O)]=_;return h}if(e)for(let[s,o]of Object.entries(n(e,!0)))this.semantics.push([new RegExp("^"+g(s)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[s,o]]);if(i)for(let[s,o]of Object.entries(n(i,!1))){let a=new RegExp(g(s)+"(?![a-z-])");for(let h of Array.isArray(o)?o:[o]){let b=h.match(/^::-[a-z]+-/m)?.[0]??"",$=this.selectors[b];$||($=this.selectors[b]=[]);let T=$.find(([I])=>I===a);T||(T=[a,[]],$.push(T)),T[1].push(h)}}x&&(this.globalValues=n(x,!1)),y&&(this.breakpoints=n(y,!1)),d&&(this.mediaQueries=n(d,!1));let f=r?n(r,!1):{},R=u&&!Array.isArray(u)?Object.entries(u).filter(([,{classes:s}])=>s).reduce((s,[o,{classes:a}])=>(s[o]=n(a,!1),s),{}):{},k=[...Object.keys(f),...Object.entries(R).flatMap(([s,o])=>Object.keys(o))],S=s=>{if(s in this.classes)return;let o=this.classes[s]=[],a=(h,b)=>{if(!b)return;let $=Array.isArray(b)?b:b.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let T of $){let I=O=>{O in this.themeAffectedClassesBy?h in this.themeAffectedClassesBy[O]?this.themeAffectedClassesBy[O][h].push(s):this.themeAffectedClassesBy[O][h]=[s]:this.themeAffectedClassesBy[O]={[h]:[s]},o.includes(O)||o.push(O)};if(k.includes(T)){S(T);for(let O of this.classes[T])I(O)}else I(T)}};a("",f?.[s]);for(let[h,b]of Object.entries(R))a(h,b?.[s])};for(let s of k)S(s);for(let s in this.themeAffectedClassesBy){let o=this.classesBy[s]=[];for(let a of Object.values(this.themeAffectedClassesBy[s]))for(let h of a)o.includes(h)||o.push(h)}let p=(s,o)=>{if(!o)return;let a=n(o,!0);for(let[h,b]of Object.entries(a)){let $=typeof b=="string"?{"":b}:b;for(let[T,I]of Object.entries($)){let O=h+(T?"-"+T:"");O in this.colorThemesMap?this.colorThemesMap[O][s]=I:this.colorThemesMap[O]={[s]:I}}}for(let h in o)this.colorNames.includes(h)||this.colorNames.push(h)};if(p("",l),u)if(Array.isArray(u))this.themeNames.push(...u);else for(let s in u){let o=u[s];p(s,o.colors),this.themeNames.push(s)}let C=s=>{for(let[o,a]of Object.entries(this.colorThemesMap))for(let[h,b]of Object.entries(a))b.startsWith("#")||s(o,a,h,b)};if(C((s,o,a,h)=>{let b=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(h);if(b){let $="#"+ce(+b[1],+b[2],+b[3]);b[4]&&($+=Math.round(255*+b[4]).toString(16)),o[a]=$}}),C((s,o,a,h)=>{let[b,$]=h.split("/"),T=this.colorThemesMap[b];if(T){let I=(a?T[a]:void 0)??T[""];o[a]=$?I.slice(0,7)+Math.round(255*+$).toString(16):I}else console.warn(`\`${h}\` doesn't exist in the extended config \`.colors\``),delete o[a],Object.keys(o).length||delete this.colorThemesMap[s]}),c)for(let s in c){let o=c[s],{native:a,values:h,colored:b}=o,$=o.match;if(o.id=s,o.native=a===!0?s.replace(/(?!^)[A-Z]/g,T=>"-"+T).toLowerCase():void 0,h&&(this.values[s]=n(h,!1)),$){let T=Object.keys(this.values[s]??{});$.includes("$values")&&($=T.length?$.replace(/\$values/,T.join("|")):$.replace(/(?:\|)?\$values/,"")),b&&$.includes("$colors")&&($=this.colorNames.length?$.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):$.replace(/(?:\|)?\$colors/,"")),this.matches[s]=new RegExp($)}}}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 u=i?document.head:e,l=i?document.styleSheets:e.styleSheets;for(let y of l){let{href:d,ownerNode:c}=y;if(c.id==="master"||d&&d.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(d)){this.style=c;break}}if(this.style)for(let y=0;y<this.style.sheet.cssRules.length;y++){let d=this.style.sheet.cssRules[y];if(d.constructor.name==="CSSKeyframesRule")continue;let c=n=>{if(n.selectorText){let R=n.selectorText.split(", ")[0].split(" ");for(let k=0;k<R.length;k++){let S=R[k];if(S[0]==="."){let p=S.slice(1),C="";for(let s=0;s<p.length;s++){let o=p[s],a=p[s+1];if(o==="\\"){if(s++,a!=="\\"){C+=a;continue}}else if(Le.includes(o))break;C+=o}if(!(C in this.ruleBy)&&!(C in this.classes)){let s=this.create(C)[0];if(s)return s}}}}else if(n.cssRules)for(let f=0;f<n.cssRules.length;f++){let R=c(n.cssRules[f]);if(R)return R}},g=c(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[y+n];y+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=Ae(),u.append(this.style);let x=y=>{y.forEach(d=>{d in this.countBy?this.countBy[d]++:(this.countBy[d]=1,this.insert(d))})};x(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(y=>x(y.classList)),this.observer=new MutationObserver(y=>{let d={},c=[],g=[],n=[],f=(p,C)=>{C?p.classList.forEach(k):p.classList.forEach(R);let s=p.children;for(let o=0;o<s.length;o++){let a=s[o];a.classList&&(g.push(a),f(a,C))}},R=p=>{p in d?d[p]++:d[p]=1},k=p=>{p in d?d[p]--:p in this.countBy&&(d[p]=-1)},S=(p,C)=>{for(let s=0;s<p.length;s++){let o=p[s];o.classList&&!g.includes(o)&&!n.includes(o)&&(o.isConnected!==C?(g.push(o),f(o,C)):n.push(o))}};for(let p=0;p<y.length;p++){let C=y[p],{addedNodes:s,removedNodes:o,type:a,target:h}=C;if(a==="attributes"){if(c.find(b=>b.target===h))continue;c.push(C)}else S(s,!1),(!h.isConnected||!g.includes(h))&&S(o,!0)}if(!(!c.length&&!Object.keys(d).length)){for(let{oldValue:p,target:C}of c){let s=g.includes(C),o=C.classList,a=p?p.split(" "):[];if(s){if(C.isConnected)continue;for(let h of a)o.contains(h)||k(h)}else if(C.isConnected){o.forEach(h=>{a.includes(h)||R(h)});for(let h of a)o.contains(h)||k(h)}}for(let p in d){let C=d[p],s=(this.countBy[p]||0)+C;s===0?(delete this.countBy[p],this.delete(p)):(p in this.countBy||this.insert(p),this.countBy[p]=s)}}}),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],u=this.matches[r],{symbol:l,native:x}=i;if(u&&u.test(e))return{origin:"match",config:i};if(l&&e.startsWith(l))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 u=this.match(i);if(u)return new le(i,u,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(oe,e),this.cache(),!this.style)return;let r=Ae();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=u=>{let l=this.ruleBy[u];if(!(!l||u in this.classesBy&&this.classesBy[u].some(x=>x in this.countBy))){if(r&&l.natives.length){let x=l.natives[0];for(let y=0;y<r.cssRules.length;y++)if(r.cssRules[y]===x.cssRule){for(let c=0;c<l.natives.length;c++)r.deleteRule(y);break}}this.rules.splice(this.rules.indexOf(l),1),delete this.ruleBy[u],l.config.delete&&l.config.delete.call(l,u)}};if(e in this.classes){for(let u of this.classes[e])u in this.countBy||i(u);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,u=this.rules.length-1,{media:l,order:x,priority:y,hasWhere:d,className:c}=r,g=(n,f,R,k)=>{let S=0,p;f&&(S=n.findIndex(f)),R&&(p=n.findIndex(R)),S===-1&&(S=n.length),(p===void 0||p===-1)&&(p=n.length);let C=n.slice(S,p);for(let s=0;s<C.length;s++){let o=C[s];if(!(o.priority===-1||k&&k(o))&&(o.priority<y||o.priority===y&&(d&&!o.hasWhere||o.order>=x)))return S+s}return S+C.length};if(l){let n=this.rules.findIndex(f=>f.media);if(n!==-1){let f=l.features["max-width"],R=l.features["min-width"];if(f&&R){let k=f.value-R.value;for(let S=u;S>=n;S--){i=S;let p=this.rules[S],C=p.media,s=C.features["max-width"],o=C.features["min-width"];if(!s||!o){i++;break}let a=s.value-o.value;if(a===k){if(d!==p.hasWhere)continue;if(y!==-1){let h=[this.rules[S]];for(let b=S-1;b>=n;b--){let $=this.rules[b];if($.hasWhere!==d)break;let T=$.media,I=T.features["max-width"],O=T.features["min-width"];if(!I||!O||I.value-O.value!==a)break;h.unshift(this.rules[b])}i=g(this.rules,b=>b.media&&b.priority!==-1&&b.media.features["min-width"]&&b.media.features["max-width"])}break}else if(a>k)break}}else if(R)for(let k=n;k<=u;k++){i=k;let S=this.rules[k],p=S.media,C=p.features["max-width"],s=p.features["min-width"];if(C){if(s)break;continue}let o=s?.value;if(o===R.value){if(!d&&S.hasWhere){i++;continue}if(y!==-1)i=g(this.rules,a=>a.media,a=>a.media&&a.priority!==-1&&a.media.features["min-width"]&&a.media.features["max-width"],a=>!a.media.features["min-width"]&&!a.media.features["max-width"]);else for(let a=k;a<=u;a++){let h=this.rules[a],b=h.media,$=b.features["min-width"];if(!b.features["max-width"]){if(h.hasWhere!==d||$.value!==o||h.order>=x)break;i=a+1}}break}else{if(o>R.value)break;i++}}else if(f)for(let k=u;k>=n;k--){i=k;let S=this.rules[k],p=S.media,C=p.features["max-width"];if(p.features["min-width"])continue;let o=C?.value;if(!o||o>f.value){i++;break}else if(o===f.value){if(d&&!S.hasWhere)continue;if(y!==-1)i=g(this.rules,a=>a.media,a=>a.media&&a.priority!==-1&&a.media.features["min-width"]&&a.media.features["max-width"],a=>!a.media.features["min-width"]&&!a.media.features["max-width"]);else{let a=[this.rules[k]];for(let h=k-1;h>=n;h--){let b=this.rules[h],$=b.media,T=$.features["min-width"],I=$.features["max-width"];if(!T&&(!I||I.value!==o||b.hasWhere!==d))break;a.unshift(b)}for(let h=0;h<a.length;h++){let b=a[h];if(!b.media.features["min-width"]){if(b.order>=x)break;i=k-a.length+2+h}}}break}}}if(i===void 0)if(n===-1)i=u+1;else if(y!==-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 R=this.rules[f];if(R.priority!==-1||!R.hasWhere||R.order>=x){i=f;break}}i===void 0&&(i=f)}else for(let f=n;f<=u;f++){i=f;let R=this.rules[f],k=R.media;if(R.priority!==-1||k.features["max-width"]||k.features["min-width"])break;if(R.hasWhere)i++;else if(R.order>=x)break}}else if(y===-1){if(d)i=this.rules.findIndex(n=>!n.hasWhere||n.media||n.priority!==-1||n.order>=x),i===-1&&(i=u+1);else{let n=0;for(;n<this.rules.length;n++){let f=this.rules[n];if(f.media||!f.hasWhere&&(f.order>=x||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[c]=r,this.style){let n=this.style.sheet,f=0,R=k=>{let S=this.rules[k];if(S){if(!S.natives.length)return R(k-1);let p=S.natives[S.natives.length-1].cssRule;for(let C=0;C<n.cssRules.length;C++)if(n.cssRules[C]===p){f=C+1;break}}};R(i-1);for(let k=0;k<r.natives.length;)try{let S=r.natives[k];n.insertRule(S.text,f),S.cssRule=n.cssRules[f++],k++}catch(S){console.error(S),r.natives.splice(k,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},ee=ie;ne(ee,"root"),ne(ee,"config",oe),ne(ee,"instances",[]),ne(ee,"refresh",e=>{for(let r of ie.instances)r.refresh(e)});pe&&(window.MasterCSS=ee);var Ie={store:"theme",init:!0},Ye=typeof document<"u",ze=typeof localStorage<"u",ue=class{constructor(e,r=Ye?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?J(Ie,e):Ie,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(ze&&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,ze&&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()}};new ee(window.masterCSSConfig);new ue(window.masterCSSThemeSettings);})();
|
|
1
|
+
(()=>{var ze=Object.defineProperty;var De=(t,e,r)=>e in t?ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ne=(t,e,r)=>(De(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(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(l){if(i=ve(e,l),r=ve(c,l),r!==e)if(typeof r!="object"||r===null){e[l]=r;return}else if(Array.isArray(r)){e[l]=ke(r);return}else if(xe(r)){e[l]=ye(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[l]=G({},r);return}else{e[l]=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,c="",l,x=e.charCodeAt(0);if(r==1&&x==45)return"\\"+e;for(;++i<r;){if(l=e.charCodeAt(i),l==0){c+="\uFFFD";continue}if(l>=1&&l<=31||l==127||i==0&&l>=48&&l<=57||i==1&&l>=48&&l<=57&&x==45){c+="\\"+l.toString(16)+" ";continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){c+=e.charAt(i);continue}c+="\\"+e.charAt(i)}return c}var Ne={unit:"",order:0,separators:[","]},le=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=G(Ne,r.config);let{unit:c,order:l,colored:x,native:y,analyze:d,transform:u,declare:g,create:n}=this.config,{scope:f,important:R,functions:k}=i.config,{themeNames:w,colorNames:p,colorThemesMap:C,selectors:o,breakpoints:s,mediaQueries:a,themeAffectedClassesBy:h,globalValues:b}=i,$=h[e];n&&n.call(this,e);let T,A,O,U,q;if(r.origin==="semantics"){let[z,W]=r.value;U=e.slice(z.length),T=W}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 W=this,E=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",v=0;(function M(m,L,j,B=void 0,I=[],X=[],D){let _=B===void 0,V,Z=N=>N==="'"||N==='"',te=()=>V=S.length,K=()=>{if(S){let N=S,P=_?N:S.slice(V);if(S="",Q="",E&&P in E&&!I.includes(P)){let H=v;v=0,M(E[P].toString(),L,void 0,B,[...I,P],X,D),v=H,_||(S=S.slice(0,V)+S)}else if(b&&P in b&&!X.includes(P)){let H=v;v=0,M(b[P].toString(),L,void 0,B,I,[...X,P],D),v=H,_||(S=S.slice(0,V)+S)}else if(_){let H=!D&&W.analyzeUnitValue(P,L);q.push({value:H?.value??P,unit:H?.unit})}else{let H=!D&&W.analyzeUnitValue(P,L);S=H?N.slice(0,V)+H.value+H.unit:N}te()}},J=Z(j);te();let Q="";for(;v<m.length;v++){let N=m[v];if(N===j){if(J){S+=N;let P=0;for(let H=S.length-2;S[H]==="\\";H--)P++;if(P%2)continue}else K(),S+=N;return}else if(!J&&N in re){let P=N==="("&&Q&&k?.[Q];P?.name&&(S=S.slice(0,S.length-Q.length)+P.name,Q=P.name),S+=N,v++;let H=re[N];M(m,P?.unit??L,H,Q||B||"",I,X,D||!!P?.transform),P?.transform&&(S=S.slice(0,V+Q.length+1)+P.transform.call(W,S.slice(V+Q.length+1,-1))+S.slice(-1)),_&&(Z(H)?(q.push(S),S=""):K()),Q=""}else if((N==="|"||N===" ")&&j!=="}"&&(!J||B==="path"))K(),_||(S+=" ",V++);else{if(!J){if(N==="."){if(isNaN(+m[v+1]))break;m[v-1]==="-"&&(S+="0")}else if(F.includes(N)){K(),_?q.push(N):(S+=N,V++);continue}else if(_&&(N==="#"&&(S||q.length&&m[v-1]!=="|"&&q[v-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(N)))break;Q+=N}S+=N}}B===void 0&&K()})(z,c),U=z.slice(v)}this.order=typeof l=="function"?l.call(this,this.prefix):l,U[0]==="!"&&(this.important=!0,U=U.slice(1));let be=z=>{let W=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((v,M)=>M%3?v:v.replace(/_/g," ")).join(""),E=[],F="",S=0;for(let v=0;v<W.length;v++){let M=W[v];if(M==="\\"){F+=M+W[++v];continue}!S&&M===","?(E.push(F),F=""):(F+=M,S&&M===")"?S--:M==="("&&S++)}return F&&E.push(F),E};this.prefixSelectors=O?be(O):[""];let de=U.split("@"),fe=de[0];if(fe){this.vendorSuffixSelectors={};let z=(v,M,m,L)=>{for(let[j,B]of M)if(j.test(v)){for(let I of B)z(v.replace(j,I),M,m,!0);return}L&&m.push(v)},W=[];""in o?z(fe,o[""],W,!0):W.push(fe);let E={};for(let[v,M]of Object.entries(o)){if(!v)continue;let m=[];for(let L of W)z(L,M,m,!1);m.length&&(E[v]=m)}let F=(v,M)=>{let m=M.reduce((L,j)=>(L.push(...be(j)),L),[]);v in this.vendorSuffixSelectors?this.vendorSuffixSelectors[v].push(...m):this.vendorSuffixSelectors[v]=m},S=Object.keys(E);if(S.length)for(let v of S)F(v,E[v]);else F("",W);for(let v of Object.values(this.vendorSuffixSelectors))for(let M of v){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));for(let m=0;m<me.length;m++)if(M.includes(me[m])){(this.priority===-1||this.priority>m)&&(this.priority=m);break}}}else this.vendorSuffixSelectors={"":[""]};for(let z=1;z<de.length;z++){let W=de[z];if(W)if(w.includes(W))this.theme=W;else if(W==="rtl"||W==="ltr")this.direction=W;else{let E,F,S=W.indexOf("_");if(S!==-1)E=W.slice(0,S),F=W.slice(S);else{let v=W.indexOf("(");v!==-1&&(E=W.slice(0,v),F=W.slice(v))}if(!E){E="media";let v=[];this.media={token:W,features:{}};let M=W.split("&");for(let m of M)if(m==="all"||m==="print"||m==="screen"||m==="speech")this.media.type=m;else if(m==="\u{1F5A8}")this.media.type="print";else if(m==="landscape"||m==="portrait")v.push("(orientation:"+m+")");else if(m==="motion"||m==="reduced-motion")v.push("(prefers-reduced-motion:"+(m==="motion"?"no-preference":"reduce")+")");else if(a&&m in a)v.push(a[m]);else{let L={token:m},j="",B="",I=0;m.startsWith("<=")?(B="<=",j="max-width"):m.startsWith(">=")||s[m]?(B=">=",j="min-width"):m.startsWith(">")?(B=">",j="min-width",I=.02):m.startsWith("<")&&(B="<",j="max-width",I=-.02);let X=B?m.replace(B,""):m,D=s[X];switch(j){case"max-width":case"min-width":D?Object.assign(L,this.analyzeUnitValue(D.toString(),"px")):Object.assign(L,this.analyzeUnitValue(X,"px")),L.unit==="px"&&(L.value+=I),this.media.features[j]=L,v.push("("+j+":"+(L.value+L.unit)+")");break}}F="",this.media.type&&(F=this.media.type),v.length&&(F+=(F?" and ":"")+v.join(" and "))}F&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+F.replace(/_/g," "))}}let he=(z,W)=>{let E,F=(M,m,L)=>{let j="";this.direction&&(j+="[dir="+this.direction+"] ");let B=this.prefixSelectors.map(D=>D+j),I=(D,_)=>B.map(V=>(D?"."+D+" ":"")+(f?f+" ":"")+V).reduce((V,Z)=>(V.push(L.reduce((te,K)=>(te.push(Z+"."+ae(_)+K),te),[]).join(",")),V),[]).join(","),X=I(m,e)+($?Object.entries($).filter(([D])=>this.theme||!x||!m||!D||D===m).map(([D,_])=>_.reduce((V,Z)=>V+","+I(this.theme??((x||A)&&m||D),Z),"")).join(""):"")+"{"+M+"}";for(let D of Object.keys(this.at).sort((_,V)=>V==="supports"?-1:1))X="@"+D+" "+this.at[D]+"{"+X+"}";return X},S=[];if(q){let M=this.theme?[this.theme,""]:[z],m,L;for(let j of q)if(typeof j=="string")S.push(j);else{let B=j.value;if(j.unit)B+=j.unit;else if(x&&C&&p){let I=!1,X=!1;B=B.replace(new RegExp(`(^|,| |\\()((?:${p.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(D,_,V,Z)=>{X=!0;let te=C[V];if(te){let K;for(let J of M)if(K=te[J])break;if(K){I=!0;let J=K;if(Z){let Q=Z.endsWith("%")?parseFloat(Z)/100:+Z;Q=isNaN(Q)?1:Math.min(Math.max(Q,0),1),J+=Math.round(Q*255).toString(16).toUpperCase().padStart(2,"0")}return _+J}}return D}),X&&(L=I)}L!==void 0&&!m&&(m=L),S.push(B)}if(W&&(m===void 0?z:!m))return;if(E=S.reduce((j,B,I)=>j+B+(B===","||q[I+1]===","||I===q.length-1?"":" "),""),u&&(E=u.call(this,E,this.css.config)),x&&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={[y]:E}}let v={};for(let M in T){let m=(B,I)=>{let X=I+((this.important||R)&&!I.endsWith("!important")?"!important":"");B in v?v[B].push(X):v[B]=[X]},L=M+":",j=T[M];if(typeof j=="object"){A=!0;for(let B in j)m(B,L+j[B])}else m(z,L+j.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let m in v)this.natives.push({text:F(v[m].join(";"),m,M),theme:m})};if(this.theme)he(this.theme,!1);else if(x)for(let z of w)he(z,!0);else he("",!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 c="",l=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(l)if(e.includes("/")){let[x,y]=e.split("/");return{value:+x/+y*100+"%",unit:c}}else{let x=+l[1];return c=l[3]||"",c||((i==="rem"||i==="em")&&(x=x/this.css.config.rootSize),c=i||""),{value:x,unit:c}}}}};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,c="0"in t?oe(t[0]):[0,0,0],l,x,y=[],d=()=>{let u=l-i,g=x.map((n,f)=>(n-c[f])/u);for(let n of y){let f=n-i,R=c.map((k,w)=>Math.round(k+g[w]*f));t[n]="#"+ce.call(this,...R)}};for(let u=1;u<100;u++)u in t?(y.length?(l=u,x=oe(t[u]),d(),y.length=0,c=x):c=oe(t[u]),i=u):y.push(u);y.length&&(l=100,x="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="";var Ce={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var $e={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},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 Te=["dark","light"];var Fe={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=(u,g)=>{let n=g.indexOf(":");if(n!==-1){u in e||(e[u]={});let f=e[u],R=g.slice(0,n);R in f||(f[R]=g.slice(n+1))}},i=u=>{let g=(n,f)=>{let R=f.slice(ae(u.className).length).match(/\{(.*)\}/)[1].split(";");for(let k of R)r(n,k)};if(this.theme){let n=u.natives.find(f=>f.theme===this.theme)??u.natives.find(f=>!f.theme);n&&g(this.theme,n.text)}else for(let n of u.natives)g(n.theme,n.text)},c=[],l="",x=()=>{l&&(c.push(l.replace(/ /g,"")),l="")},y=1;(function u(g){for(;y<t.length;y++){let n=t[y];if(!g){if(n===";"){x();continue}if(n==="}")break}if(l+=n,g===n){if(g==="'"||g==='"'){let f=0;for(let R=l.length-2;l[R]==="\\";R--)f++;if(f%2)continue}break}else n in re&&g!=="'"&&g!=='"'&&(y++,u(re[n]))}})(void 0),x();for(let u of c){let g=this.css.create(u);if(Array.isArray(g))for(let n of g)i(n);else g?i(g):r(this.theme??"",u)}let d={};for(let u in e)for(let[g,n]of Object.entries(e[u]))g in d?d[g][u]=n:d[g]={[u]: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 Me.call(this,t)},delete(t){return Be.call(this,t)},insert(){return je.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Me.call(this,t)},delete(t){return Be.call(this,t)},insert(){return je.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}}}},Oe=Fe;function Me(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 Be(){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 je(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,c=r?.sheet;for(let l of this.keyframeNames)if(l in e)e[l].count++;else{let x={text:`@keyframes ${l}{`+Object.entries(t.keyframes[l]).map(([d,u])=>`${d}{${Object.entries(u).map(([g,n])=>g+":"+n).join(";")}}`).join("")+"}",theme:""},y;if(Object.keys(e).length?(y=i[0]).natives.push(x):i.splice(0,0,y={natives:[x],get text(){return this.natives.map(d=>d.text).join("")}}),c){let d;for(let u=0;u<c.cssRules.length;u++){let g=c.cssRules[u];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===l){d=g;break}}if(d)x.cssRule=d;else{let u=y.natives.length-1;c.insertRule(x.text,u),x.cssRule=c.cssRules[u]}}e[l]={native:x,count:1}}}}var We={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 ge={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=d=>d==="+"||d==="-"||d==="*"||d==="/",r="",i,c="",l=!1,x=!1,y=(d,u="",g="")=>{if(i===2&&!x){let n=this.analyzeUnitValue(c,ge.calc.unit);n&&(c=n.value+n.unit)}r+=c+u+d+g,i=null,x=!1,c=""};for(let d=0;d<t.length;d++){let u=t[d];if(u==="("||u===")")l=u===")",y(u);else if(u===",")y(u,""," ");else{switch(i){case 1:break;case 2:if(e(u)){y(u," "," ");continue}else/[0-9]/.test(u)||(x=!0);break;default:l&&(r+=" "),isNaN(+u)?e(u)||(i=1):i=2;break}i?c+=u:r+=u}}return y(""),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:we,selectors:Ce,semantics:$e,themes:Te,rules:Oe,override:!1,observe:!0,important:!1,functions:ge,keyframes:We};var Le=[",",".","#","[","!","*",">","+","~",":","@"];var pe=typeof window<"u",Ee=()=>{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(),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:c,colors:l,values:x,breakpoints:y,mediaQueries:d,rules:u}=this.config;function g(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function n(o,s,a="",h={}){let b=O=>O?(a?a+"-":"")+O:a,$=Object.entries(o),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,s,b(O),h);if(s&&a)A.length&&(h[a]=A.reduce((O,[U,q])=>(O[U]=q,O),{}));else for(let[O,U]of A)h[b(O)]=U;return h}if(e)for(let[o,s]of Object.entries(n(e,!0)))this.semantics.push([new RegExp("^"+g(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[o,s]]);if(i)for(let[o,s]of Object.entries(n(i,!1))){let a=new RegExp(g(o)+"(?![a-z-])");for(let h of Array.isArray(s)?s:[s]){let b=h.match(/^::-[a-z]+-/m)?.[0]??"",$=this.selectors[b];$||($=this.selectors[b]=[]);let T=$.find(([A])=>A===a);T||(T=[a,[]],$.push(T)),T[1].push(h)}}x&&(this.globalValues=n(x,!1)),y&&(this.breakpoints=n(y,!1)),d&&(this.mediaQueries=n(d,!1));let f=r?n(r,!1):{},R=c&&!Array.isArray(c)?Object.entries(c).filter(([,{classes:o}])=>o).reduce((o,[s,{classes:a}])=>(o[s]=n(a,!1),o),{}):{},k=[...Object.keys(f),...Object.entries(R).flatMap(([o,s])=>Object.keys(s))],w=o=>{if(o in this.classes)return;let s=this.classes[o]=[],a=(h,b)=>{if(!b)return;let $=Array.isArray(b)?b:b.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let T of $){let A=O=>{O in this.themeAffectedClassesBy?h in this.themeAffectedClassesBy[O]?this.themeAffectedClassesBy[O][h].push(o):this.themeAffectedClassesBy[O][h]=[o]:this.themeAffectedClassesBy[O]={[h]:[o]},s.includes(O)||s.push(O)};if(k.includes(T)){w(T);for(let O of this.classes[T])A(O)}else A(T)}};a("",f?.[o]);for(let[h,b]of Object.entries(R))a(h,b?.[o])};for(let o of k)w(o);for(let o in this.themeAffectedClassesBy){let s=this.classesBy[o]=[];for(let a of Object.values(this.themeAffectedClassesBy[o]))for(let h of a)s.includes(h)||s.push(h)}let p=(o,s)=>{if(!s)return;let a=n(s,!0);for(let[h,b]of Object.entries(a)){let $=typeof b=="string"?{"":b}:b;for(let[T,A]of Object.entries($)){let O=h+(T?"-"+T:"");O in this.colorThemesMap?this.colorThemesMap[O][o]=A:this.colorThemesMap[O]={[o]:A}}}for(let h in s)this.colorNames.includes(h)||this.colorNames.push(h)};if(p("",l),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let o in c){let s=c[o];p(o,s.colors),this.themeNames.push(o)}let C=o=>{for(let[s,a]of Object.entries(this.colorThemesMap))for(let[h,b]of Object.entries(a))b.startsWith("#")||o(s,a,h,b)};if(C((o,s,a,h)=>{let b=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(h);if(b){let $="#"+ce(+b[1],+b[2],+b[3]);b[4]&&($+=Math.round(255*+b[4]).toString(16)),s[a]=$}}),C((o,s,a,h)=>{let[b,$]=h.split("/"),T=this.colorThemesMap[b];if(T){let A=(a?T[a]:void 0)??T[""];s[a]=$?A.slice(0,7)+Math.round(255*+$).toString(16):A}else console.warn(`\`${h}\` doesn't exist in the extended config \`.colors\``),delete s[a],Object.keys(s).length||delete this.colorThemesMap[o]}),u)for(let o in u){let s=u[o],{native:a,values:h,colored:b}=s,$=s.match;if(s.id=o,s.native=a===!0?o.replace(/(?!^)[A-Z]/g,T=>"-"+T).toLowerCase():void 0,h&&(this.values[o]=n(h,!1)),$){let T=Object.keys(this.values[o]??{});$.includes("$values")&&($=T.length?$.replace(/\$values/,T.join("|")):$.replace(/(?:\|)?\$values/,"")),b&&$.includes("$colors")&&($=this.colorNames.length?$.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):$.replace(/(?:\|)?\$colors/,"")),this.matches[o]=new RegExp($)}}}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 c=i?document.head:e,l=i?document.styleSheets:e.styleSheets;for(let y of l){let{ownerNode:d}=y;if(d.id==="master"){this.style=d;break}}if(this.style)for(let y=0;y<this.style.sheet.cssRules.length;y++){let d=this.style.sheet.cssRules[y];if(d.constructor.name==="CSSKeyframesRule")continue;let u=n=>{if(n.selectorText){let R=n.selectorText.split(", ")[0].split(" ");for(let k=0;k<R.length;k++){let w=R[k];if(w[0]==="."){let p=w.slice(1),C="";for(let o=0;o<p.length;o++){let s=p[o],a=p[o+1];if(s==="\\"){if(o++,a!=="\\"){C+=a;continue}}else if(Le.includes(s))break;C+=s}if(!(C in this.ruleBy)&&!(C in this.classes)){let o=this.create(C)[0];if(o)return o}}}}else if(n.cssRules)for(let f=0;f<n.cssRules.length;f++){let R=u(n.cssRules[f]);if(R)return R}},g=u(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[y+n];y+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=Ee(),c.append(this.style);let x=y=>{y.forEach(d=>{d in this.countBy?this.countBy[d]++:(this.countBy[d]=1,this.insert(d))})};x(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(y=>x(y.classList)),this.observer=new MutationObserver(y=>{let d={},u=[],g=[],n=[],f=(p,C)=>{C?p.classList.forEach(k):p.classList.forEach(R);let o=p.children;for(let s=0;s<o.length;s++){let a=o[s];a.classList&&(g.push(a),f(a,C))}},R=p=>{p in d?d[p]++:d[p]=1},k=p=>{p in d?d[p]--:p in this.countBy&&(d[p]=-1)},w=(p,C)=>{for(let o=0;o<p.length;o++){let s=p[o];s.classList&&!g.includes(s)&&!n.includes(s)&&(s.isConnected!==C?(g.push(s),f(s,C)):n.push(s))}};for(let p=0;p<y.length;p++){let C=y[p],{addedNodes:o,removedNodes:s,type:a,target:h}=C;if(a==="attributes"){if(u.find(b=>b.target===h))continue;u.push(C)}else w(o,!1),(!h.isConnected||!g.includes(h))&&w(s,!0)}if(!(!u.length&&!Object.keys(d).length)){for(let{oldValue:p,target:C}of u){let o=g.includes(C),s=C.classList,a=p?p.split(" "):[];if(o){if(C.isConnected)continue;for(let h of a)s.contains(h)||k(h)}else if(C.isConnected){s.forEach(h=>{a.includes(h)||R(h)});for(let h of a)s.contains(h)||k(h)}}for(let p in d){let C=d[p],o=(this.countBy[p]||0)+C;o===0?(delete this.countBy[p],this.delete(p)):(p in this.countBy||this.insert(p),this.countBy[p]=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],c=this.matches[r],{symbol:l,native:x}=i;if(c&&c.test(e))return{origin:"match",config:i};if(l&&e.startsWith(l))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 c=this.match(i);if(c)return new le(i,c,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=Ee();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=c=>{let l=this.ruleBy[c];if(!(!l||c in this.classesBy&&this.classesBy[c].some(x=>x in this.countBy))){if(r&&l.natives.length){let x=l.natives[0];for(let y=0;y<r.cssRules.length;y++)if(r.cssRules[y]===x.cssRule){for(let u=0;u<l.natives.length;u++)r.deleteRule(y);break}}this.rules.splice(this.rules.indexOf(l),1),delete this.ruleBy[c],l.config.delete&&l.config.delete.call(l,c)}};if(e in this.classes){for(let c of this.classes[e])c in this.countBy||i(c);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,c=this.rules.length-1,{media:l,order:x,priority:y,hasWhere:d,className:u}=r,g=(n,f,R,k)=>{let w=0,p;f&&(w=n.findIndex(f)),R&&(p=n.findIndex(R)),w===-1&&(w=n.length),(p===void 0||p===-1)&&(p=n.length);let C=n.slice(w,p);for(let o=0;o<C.length;o++){let s=C[o];if(!(s.priority===-1||k&&k(s))&&(s.priority<y||s.priority===y&&(d&&!s.hasWhere||s.order>=x)))return w+o}return w+C.length};if(l){let n=this.rules.findIndex(f=>f.media);if(n!==-1){let f=l.features["max-width"],R=l.features["min-width"];if(f&&R){let k=f.value-R.value;for(let w=c;w>=n;w--){i=w;let p=this.rules[w],C=p.media,o=C.features["max-width"],s=C.features["min-width"];if(!o||!s){i++;break}let a=o.value-s.value;if(a===k){if(d!==p.hasWhere)continue;if(y!==-1){let h=[this.rules[w]];for(let b=w-1;b>=n;b--){let $=this.rules[b];if($.hasWhere!==d)break;let T=$.media,A=T.features["max-width"],O=T.features["min-width"];if(!A||!O||A.value-O.value!==a)break;h.unshift(this.rules[b])}i=g(this.rules,b=>b.media&&b.priority!==-1&&b.media.features["min-width"]&&b.media.features["max-width"])}break}else if(a>k)break}}else if(R)for(let k=n;k<=c;k++){i=k;let w=this.rules[k],p=w.media,C=p.features["max-width"],o=p.features["min-width"];if(C){if(o)break;continue}let s=o?.value;if(s===R.value){if(!d&&w.hasWhere){i++;continue}if(y!==-1)i=g(this.rules,a=>a.media,a=>a.media&&a.priority!==-1&&a.media.features["min-width"]&&a.media.features["max-width"],a=>!a.media.features["min-width"]&&!a.media.features["max-width"]);else for(let a=k;a<=c;a++){let h=this.rules[a],b=h.media,$=b.features["min-width"];if(!b.features["max-width"]){if(h.hasWhere!==d||$.value!==s||h.order>=x)break;i=a+1}}break}else{if(s>R.value)break;i++}}else if(f)for(let k=c;k>=n;k--){i=k;let w=this.rules[k],p=w.media,C=p.features["max-width"];if(p.features["min-width"])continue;let s=C?.value;if(!s||s>f.value){i++;break}else if(s===f.value){if(d&&!w.hasWhere)continue;if(y!==-1)i=g(this.rules,a=>a.media,a=>a.media&&a.priority!==-1&&a.media.features["min-width"]&&a.media.features["max-width"],a=>!a.media.features["min-width"]&&!a.media.features["max-width"]);else{let a=[this.rules[k]];for(let h=k-1;h>=n;h--){let b=this.rules[h],$=b.media,T=$.features["min-width"],A=$.features["max-width"];if(!T&&(!A||A.value!==s||b.hasWhere!==d))break;a.unshift(b)}for(let h=0;h<a.length;h++){let b=a[h];if(!b.media.features["min-width"]){if(b.order>=x)break;i=k-a.length+2+h}}}break}}}if(i===void 0)if(n===-1)i=c+1;else if(y!==-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 R=this.rules[f];if(R.priority!==-1||!R.hasWhere||R.order>=x){i=f;break}}i===void 0&&(i=f)}else for(let f=n;f<=c;f++){i=f;let R=this.rules[f],k=R.media;if(R.priority!==-1||k.features["max-width"]||k.features["min-width"])break;if(R.hasWhere)i++;else if(R.order>=x)break}}else if(y===-1){if(d)i=this.rules.findIndex(n=>!n.hasWhere||n.media||n.priority!==-1||n.order>=x),i===-1&&(i=c+1);else{let n=0;for(;n<this.rules.length;n++){let f=this.rules[n];if(f.media||!f.hasWhere&&(f.order>=x||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[u]=r,this.style){let n=this.style.sheet,f=0,R=k=>{let w=this.rules[k];if(w){if(!w.natives.length)return R(k-1);let p=w.natives[w.natives.length-1].cssRule;for(let C=0;C<n.cssRules.length;C++)if(n.cssRules[C]===p){f=C+1;break}}};R(i-1);for(let k=0;k<r.natives.length;)try{let w=r.natives[k];n.insertRule(w.text,f),w.cssRule=n.cssRules[f++],k++}catch(w){console.error(w),r.natives.splice(k,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},ee=ie;ne(ee,"root"),ne(ee,"config",se),ne(ee,"instances",[]),ne(ee,"refresh",e=>{for(let r of ie.instances)r.refresh(e)});pe&&(window.MasterCSS=ee);var Ie={store:"theme",init:!0},Pe=typeof document<"u",Ae=typeof localStorage<"u",ue=class{constructor(e,r=Pe?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?G(Ie,e):Ie,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(Ae&&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,Ae&&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()}};new ee(window.masterCSSConfig);new ue(window.masterCSSThemeSettings);})();
|