@master/css 2.0.0-beta.172 → 2.0.0-beta.173
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function transformColorWithOpacity(color: string, opacityStr: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function Re(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function ye(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function we(e){let t=[];return e.forEach(function(n,o){typeof n=="object"&&n!==null?Array.isArray(n)?t[o]=we(n):Re(n)?t[o]=ye(n):t[o]=se({},n):t[o]=n}),t}function Ce(e,t){return t==="__proto__"?void 0:e[t]}function se(...e){let t={},n,o;return e.forEach(function(b){typeof b!="object"||b===null||Array.isArray(b)||Object.keys(b).forEach(function(s){if(o=Ce(t,s),n=Ce(b,s),n!==t)if(typeof n!="object"||n===null){t[s]=n;return}else if(Array.isArray(n)){t[s]=we(n);return}else if(Re(n)){t[s]=ye(n);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=se({},n);return}else{t[s]=se(o,n);return}})}),t}var ae={"(":")","'":"'",'"':'"',"{":"}"};function le(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,o=-1,b="",s,c=t.charCodeAt(0);if(n==1&&c==45)return"\\"+t;for(;++o<n;){if(s=t.charCodeAt(o),s==0){b+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&c==45){b+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){b+=t.charAt(o);continue}b+="\\"+t.charAt(o)}return b}var ze={unit:"",order:0,separators:[","]},Ie=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,de=class{constructor(t,n={},o){this.className=t;this.meta=n;this.css=o;this.config=se(ze,n.config);let{unit:b,order:s,colored:c,native:l,analyze:h,transform:g,declare:v,create:a}=this.config,{scope:d,important:m,functions:x,themeDriver:p}=o.config,{themeNames:u,colorNames:i,colorThemesMap:r,selectors:f,viewports:y,mediaQueries:w,classesBy:B,globalValues:S,animations:V}=o,M=B[t];a&&a.call(this,t);let A,K,re,Z,D;if(n.origin==="semantics"){let[N,E]=n.value;Z=t.slice(N.length),A=E}else{let N;if(h)[N,re]=h.call(this,t);else{let Y=t.indexOf(":");this.prefix=t.slice(0,Y+1),N=t.slice(Y+1)}D=[];let E=this,z=this.values,H=[","];this.config.separators.length&&H.push(...this.config.separators);let $="",j=0;(function Y(W,C,k,R=void 0,O=[],I=[],P){let T=R===void 0,F,G=L=>L==="'"||L==='"',oe=()=>F=$.length,ee=()=>{if($){let L=$,_=T?L:$.slice(F);if($="",q="",z&&_ in z&&!O.includes(_)){let U=j;j=0,Y(z[_].toString(),C,void 0,R,[...O,_],I,P),j=U,T||($=$.slice(0,F)+$)}else if(S&&_ in S&&!I.includes(_)){let U=j;j=0,Y(S[_].toString(),C,void 0,R,O,[...I,_],P),j=U,T||($=$.slice(0,F)+$)}else if(T){let U=!P&&E.analyzeUnitValue(_,C);D.push({value:U?.value??_,unit:U?.unit})}else{let U=!P&&E.analyzeUnitValue(_,C);$=U?L.slice(0,F)+U.value+U.unit:L}oe()}},J=G(k);oe();let q="";for(;j<W.length;j++){let L=W[j];if(L===k){if(J){$+=L;let _=0;for(let U=$.length-2;$[U]==="\\";U--)_++;if(_%2)continue}else ee(),$+=L;return}else if(!J&&L in ae){let _=L==="("&&q&&x?.[q];_?.name&&($=$.slice(0,$.length-q.length)+_.name,q=_.name),$+=L,j++;let U=ae[L];Y(W,_?.unit??C,U,q||R||"",O,I,P||!!_?.transform),_?.transform&&($=$.slice(0,F+q.length+1)+_.transform.call(E,$.slice(F+q.length+1,-1))+$.slice(-1)),T&&(G(U)?(D.push($),$=""):ee()),q=""}else if((L==="|"||L===" ")&&k!=="}"&&(!J||R==="path"))ee(),T||($+=" ",F++);else{if(!J){if(L==="."){if(isNaN(+W[j+1]))break;W[j-1]==="-"&&($+="0")}else if(H.includes(L)){ee(),T?D.push(L):($+=L,F++);continue}else if(T&&(L==="#"&&($||D.length&&W[j-1]!=="|"&&D[j-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(L)))break;q+=L}$+=L}}R===void 0&&ee()})(N,b),Z=N.slice(j)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Z[0]==="!"&&(this.important=!0,Z=Z.slice(1));let ie=(N,E)=>{let z=(C,k,R,O)=>{for(let[I,P]of k)if(I.test(C)){for(let T of P)z(C.replace(I,T),k,R,!0);return}O&&R.push(C)},H=C=>{let k=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((P,T)=>T%3?P:P.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),R=[],O="",I=0;for(let P=0;P<k.length;P++){let T=k[P];if(T==="\\"){O+=T+k[++P];continue}!I&&T===","?(R.push(O),O=""):(O+=T,I&&T===")"?I--:T==="("&&I++)}return O&&R.push(O),R},$=[];""in f?z(N,f[""],$,!0):$.push(N);let j={};for(let[C,k]of Object.entries(f)){if(!C)continue;let R=[];for(let O of $)z(O,k,R,!1);R.length&&(j[C]=R)}let Y=(C,k)=>{let R=k.reduce((O,I)=>(O.push(...H(I)),O),[]);C in E?E[C].push(...R):E[C]=R},W=Object.keys(j);if(W.length)for(let C of W)Y(C,j[C]);else Y("",$)};re?(this.vendorPrefixSelectors={},ie(re,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let Q=Z.split("@"),ne=Q[0];if(ne){this.vendorSuffixSelectors={},ie(ne,this.vendorSuffixSelectors);for(let N of Object.values(this.vendorSuffixSelectors))for(let E of N){this.hasWhere!==!1&&(this.hasWhere=E.includes(":where("));let z=[":disabled",":active",":focus",":hover"];for(let H=0;H<z.length;H++)if(E.includes(z[H])){(this.priority===-1||this.priority>H)&&(this.priority=H);break}}}else this.vendorSuffixSelectors={"":[""]};let te={},ge=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),xe=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(ge)te[""]=xe?[""]:Object.keys(this.vendorSuffixSelectors);else if(xe)for(let N in this.vendorPrefixSelectors)te[N]=[""];else for(let N in this.vendorPrefixSelectors){let E=te[N]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,N))E.push(N);else for(let z in this.vendorSuffixSelectors)E.push(z)}for(let N=1;N<Q.length;N++){let E=Q[N];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let z,H,$=Ie.exec(E);if($)z=$[1],H=E.slice(z.length);else{this.media={token:E,features:{}};let j=[],Y=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")j.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")j.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else if(w&&C in w)j.push(w[C]);else{let k={token:C},R="",O="",I=0;C.startsWith("<=")?(O="<=",R="max-width"):C.startsWith(">=")||y[C]?(O=">=",R="min-width"):C.startsWith(">")?(O=">",R="min-width",I=.02):C.startsWith("<")&&(O="<",R="max-width",I=-.02);let P=O?C.replace(O,""):C,T=y[P];switch(R){case"max-width":case"min-width":T?Object.assign(k,this.analyzeUnitValue(T.toString(),"px")):Object.assign(k,this.analyzeUnitValue(P,"px")),k.unit==="px"&&(k.value+=I),this.media.features[R]=k,j.push("("+R+":"+(k.value+k.unit)+")");break}}},W=E.includes("&");if(W){let C=E.split("&");for(let k of C)Y(k)}else Y(E);if(this.media.type&&(H=this.media.type),j.length&&(H=j.join(" and ")),H)z="media";else if(!W){this.theme=E;continue}}H&&(this.at[z]=(z in this.at?this.at[z]+" and ":"")+H.replace(/\|/g," "))}}let pe=(N,E)=>{let z,H=(Y,W,C,k)=>{let R="";this.direction&&(R+="[dir="+this.direction+"] ");let O=C.map(T=>T+R),I=(T,F)=>O.map(G=>(T&&p!=="media"?p==="host"?`:host(.${T}) `:`.${T} `:"")+(d?d+" ":"")+G).reduce((G,oe)=>(G.push(k.reduce((ee,J)=>(ee.push(oe+"."+le(F)+J),ee),[]).join(",")),G),[]).join(","),P=I(W,t)+(M?M.reduce((T,F)=>T+","+I(this.theme??(c||K?W:""),F),""):"")+"{"+Y+"}";for(let T of Object.keys(this.at).sort((F,G)=>G==="supports"?-1:1))P="@"+T+(T.includes(" ")?"":" ")+this.at[T]+"{"+P+"}";return W&&p==="media"&&(P=`@media(prefers-color-scheme:${W}){`+P+"}"),P},$=[];if(D){let Y=[this.theme??N,""],W,C=!1;for(let k of D)if(typeof k=="string")$.push(k);else{let R=k.value;if(k.unit)R+=k.unit;else if(c&&r&&i){let O=!1;R=R.replace(new RegExp(`(^|,| |\\()((?:${i.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(I,P,T,F)=>{let G=r[T];if(G){let oe,ee;for(let J of Y)if(oe=G[J]){ee=J;break}if(oe){O=!E||ee===N,W||(W=O);let J=oe;if(F){let q=F.endsWith("%")?parseFloat(F)/100:+F;q=isNaN(q)?1:Math.min(Math.max(q,0),1),J+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return P+J}else C=!0}return I})}$.push(R)}if(E&&(C||(W===void 0?N:!W)))return;if(z=$.reduce((k,R,O)=>k+R+(R===","||D[O+1]===","||O===D.length-1?"":" "),""),g&&(z=g.call(this,z,this.css.config)),c&&z==="current"&&(z="currentColor"),v){let k,R;if(D.length===1){let O=D[0];typeof O=="object"&&(k=O.value,R=O.unit)}A=v.call(this,R?k:z,R||"")}else A={[l]:z}}let j={};for(let Y in A){let W=(R,O)=>{if(V&&(O.startsWith("animation")||O.startsWith("animation-name"))){let P=O.split(":")[1].split("!important")[0].split(" ").filter(T=>T in this.css.animations&&(!this.animationNames||!this.animationNames.includes(T)));P.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...P))}let I=O+((this.important||m)&&!O.endsWith("!important")?"!important":"");R in j?j[R].push(I):j[R]=[I]},C=Y+":",k=A[Y];if(typeof k=="object")if(Array.isArray(k))for(let R of k)W(N,C+R.toString());else{K=!0;for(let R in k)W(R,C+k[R])}else W(N,C+k.toString())}for(let Y in te)for(let W of te[Y])for(let C in j)this.natives.push({text:H(j[C].join(";"),C,this.vendorPrefixSelectors[Y],this.vendorSuffixSelectors[W]),theme:C})};if(this.theme)pe(this.theme,!1);else if(c)for(let N of u)pe(N,!0);else pe("",!1)}at={};priority=-1;natives=[];animationNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,n){return Number.isNaN(+t)?t:t/(n==="rem"||n==="em"?this.css.config.rootSize:1)+n}analyzeUnitValue(t,n){let o=n??this.config.unit;if(o){let b="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[c,l]=t.split("/");return{value:+c/+l*100+"%",unit:b}}else{let c=+s[1];return b=s[3]||"",b||((o==="rem"||o==="em")&&(c=c/this.css.config.rootSize),b=o||""),{value:c,unit:b}}}}};var Ve={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Se=Ve;function ce(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function me(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}function X(e){typeof e=="string"&&(e={"":e});let t=""in e,n=!1;for(let o in e)if(o&&+o>=100){n=!0;break}if(!n&&(!t||Object.keys(e).length>1)){let o=0,b="0"in e?ce(e[0]):[0,0,0],s,c,l=[],h=()=>{let g=s-o,v=c.map((a,d)=>(a-b[d])/g);for(let a of l){let d=a-o,m=b.map((x,p)=>Math.round(x+v[p]*d));e[a]="#"+me.call(this,...m)}};for(let g=1;g<100;g++)g in e?(l.length?(s=g,c=ce(e[g]),h(),l.length=0,b=c):b=ce(e[g]),o=g):l.push(g);l.length&&(s=100,c="100"in e?ce(e[100]):[255,255,255],h())}return t||(e[""]=e[n?"500":"50"]),e}var Le={black:"#000000",white:"#ffffff",slate:X({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:X({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:X({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:X({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:X({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:X({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:X({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:X({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:X({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:X({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:X({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:X({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:X({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:X({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:X({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:X({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:X({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:X({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:X({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:X({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},ke=Le;var De={"::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(",":only":":only-child"},$e=De;var Ye={square:{aspectRatio:"1/1"},video:{aspectRatio:"16/9"},rounded:{borderRadius:"1e9em"},round:{borderRadius:"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:{fontStyle:"italic"},oblique:{fontStyle:"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{pointerEvents:"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{maxWidth:"100vw"},"max-vh":{maxHeight:"100vh"},"min-vw":{minWidth:"100vw"},"min-vh":{minHeight:"100vh"},"center-content":{justifyContent:"center",alignItems:"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",borderWidth:"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,marginLeft:"auto",marginRight:"auto"},middle:{top:0,bottom:0,marginTop:"auto",marginBottom:"auto"},"break-spaces":{whiteSpace:"break-spaces"},"break-word":{overflowWrap:"break-word",overflow:"hidden"},"gradient-text":{WebkitTextFillColor:"transparent",WebkitBackgroundClip:"text",backgroundClip:"text"},fit:{width:"fit-content",height:"fit-content"}},Oe=Ye;var _e={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)",animationTimingFunction:"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"}}},Be=_e;var Xe={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},n=(g,v)=>{let a=v.indexOf(":");if(a!==-1){g in t||(t[g]={});let d=t[g],m=v.slice(0,a);m in d||(d[m]=v.slice(a+1))}},o=g=>{let v=(a,d)=>{let m=d.slice(le(g.className).length).match(/\{(.*)\}/)[1].split(";");for(let x of m)n(a,x)};if(this.theme){let a=g.natives.find(d=>d.theme===this.theme)??g.natives.find(d=>!d.theme);a&&v(this.theme,a.text)}else for(let a of g.natives)v(a.theme,a.text);if(g.animationNames){this.animationNames||(this.animationNames=[]);for(let a of g.animationNames)this.animationNames.includes(a)||this.animationNames.push(a)}},b=[],s="",c=()=>{s&&(b.push(s.replace(/ /g,"|")),s="")},l=1;(function g(v){for(;l<e.length;l++){let a=e[l];if(!v){if(a===";"){c();continue}if(a==="}")break}if(s+=a,v===a){if(v==="'"||v==='"'){let d=0;for(let m=s.length-2;s[m]==="\\";m--)d++;if(d%2)continue}break}else a in ae&&v!=="'"&&v!=='"'&&(l++,g(ae[a]))}})(void 0),c();for(let g of b){let v=this.css.create(g);if(Array.isArray(v))if(v.length)for(let a of v)o(a);else n(this.theme??"",g);else o(v)}let h={};for(let g in t)for(let[v,a]of Object.entries(t[g]))v in h?h[v][g]=a:h[v]={[g]:a};return h}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},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(e){switch(e){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(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},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(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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(e){return[e]},declare(e){let[t,n]=e.split(" x ");return{width:t,height:n}}},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(e){return[e.slice(4)]},declare(e){let[t,n]=e.split(" x ");return{"min-width":t,"min-height":n}}},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(e){return[e.slice(4)]},declare(e){let[t,n]=e.split(" x ");return{"max-width":t,"max-height":n}}},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(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},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:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},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,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},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:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},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(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},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(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},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(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},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(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},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(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},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)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},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(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},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(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},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:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^scroll-p:.",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(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},He=Xe,Te=He;var Fe={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,n=this.css.globalValues,o=this.css.config.functions,b=this,s=0,c="",l="";return function h(g,v){let a=!1,d=(m,x=!1,p=!1)=>{if(m!=="("&&(t&&l in t?l=t[l].toString():n&&l in n&&(l=n[l].toString())),l&&!a&&!v){let u=b.analyzeUnitValue(l,o.calc.unit);u&&(l=u.value+u.unit)}c+=l+(x&&e[s-1]!==" "?" ":"")+m+(p&&e[s+1]!==" "?" ":""),l="",a=!1};for(;s<e.length;s++){let m=e[s];if(m==="("){let x=l,p=a,u=c.length;if(d(m),s++,h(x,p||v),x!=="calc"){let i=o[x];if(i){let r=c.slice(u+2,c.length-1);c=c.slice(0,u-x.length+1)+(i.name??x)+"("+(i.transform?.(r)??r)+")"}}}else if(m===")"){d(m);break}else if(m===",")d(m,!1,!0);else if(m===" ")d(m);else{let x=e[s-1];switch(m){case"+":!l&&x!==")"?l+=m:d(m,!0,!0);break;case"-":g==="var"||!l&&x!==")"?l+=m:d(m,!0,!0);break;case"*":d(m,!0,!0);break;case"/":d(m,!0,!0),a=!0;break;default:l+=m;break}}}s>=e.length-1&&d("")}("",!1),c}},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:""},repeat:{unit:""}},je=Fe;var Me=16;var Qe="",Ee=Qe;var Ne=!1;var Pe=!1;var Ue="class",We=Ue;var ue={viewports:Se,colors:ke,rootSize:Me,scope:Ee,selectors:$e,semantics:Oe,rules:Te,override:Ne,important:Pe,functions:je,animations:Be,themeDriver:We};var Ae=[",",".","#","[","!","*",">","+","~",":","@"];function be(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var he="_CNO_",fe=class e{constructor(t=ue){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ue,t),this.cache(),e.instances.push(this)}static root;static config=ue;static instances=[];static refresh=t=>{for(let n of this.instances)n.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;observer;colorByThemeByColorName;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.viewports={},this.mediaQueries={},this.matches={},this.keyframesMap={},this.animations={};let{semantics:t,classes:n,selectors:o,colors:b,values:s,viewports:c,mediaQueries:l,rules:h,animations:g}=this.config;function v(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(i,r,f="",y={}){let w=M=>M?(f?f+"-":"")+M:f,B=Object.entries(i),S=[],V=[];for(let M of B){let A=M[1];(typeof A=="object"&&!Array.isArray(A)?S:V).push(M)}for(let[M,A]of S)a(A,r,w(M),y);if(r&&f)V.length&&(y[f]=V.reduce((M,[A,K])=>(M[A]=K,M),{}));else for(let[M,A]of V)y[w(M)]=A;return y}function d(i){for(let[r,f]of Object.entries(i))/^[0-9]+x$/.test(r)&&typeof f=="number"&&(i["-"+r]=f*-1);return i}if(t)for(let[i,r]of Object.entries(a(t,!0))){let f={};for(let y of Object.keys(r))f[be(y)]=r[y];this.semantics.push([new RegExp("^"+v(i)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[i,f]])}if(o)for(let[i,r]of Object.entries(a(o,!1))){let f=new RegExp(v(i)+"(?![a-z-])");for(let y of Array.isArray(r)?r:[r]){let w=y.match(/^::-[a-z]+-/m)?.[0]??"",B=this.selectors[w];B||(B=this.selectors[w]=[]);let S=B.find(([V])=>V===f);S||(S=[f,[]],B.push(S)),S[1].push(y)}}if(s&&(this.globalValues=d(a(s,!1))),c&&(this.viewports=a(c,!1)),l&&(this.mediaQueries=a(l,!1)),g)for(let i in g){let r=this.animations[i]={},f=g[i];for(let y in f){let w=r[y]={},B=f[y];for(let S in B)w[be(S)]=B[S]}}let m=n?a(n,!1):{},x=Object.keys(m),p=i=>{if(Object.prototype.hasOwnProperty.call(this.classes,i))return;let r=this.classes[i]=[],f=m[i];if(!f)return;let y=f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of y){let B=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let V=this.classesBy[S];V.includes(i)||V.push(i)}else this.classesBy[S]=[i];r.includes(S)||r.push(S)};if(x.includes(w)){p(w);for(let S of this.classes[w])B(S)}else B(w)}};for(let i of x)p(i);this.colorNames=Object.keys(b);let u=Object.entries(this.colorByThemeByColorName).reduce((i,[r,f])=>(i[r]=()=>{let y=(S,V)=>V?S.slice(0,7)+Math.round(255*+V).toString(16):S,w={};for(let S in f){let V=f[S].split(" ");for(let M of V){let A=M.lastIndexOf("@"),K=A!==-1?M.slice(0,A):M,re=A!==-1?M.slice(A+1):"",Z=S.slice(1)||re;if(M.startsWith("#"))w[Z]=K;else if(M.startsWith(he)){let[D,ie]=K.slice(he.length).split("/");if(Object.prototype.hasOwnProperty.call(u,D)){let ne=u[D];delete u[D],ne()}let Q=Object.prototype.hasOwnProperty.call(this.colorThemesMap,D)&&this.colorThemesMap[D];if(Q)for(let ne in Q){let te=Q[ne];w[ne]=y(te,ie)}else console.error(`"${r}${S}: ${M}" is an invalid ".colors" config`)}else{let[D,ie]=K.split("@"),[Q,ne]=D.split("/");if(Object.prototype.hasOwnProperty.call(u,Q)){let ge=u[Q];delete u[Q],ge()}let te=Object.prototype.hasOwnProperty.call(this.colorThemesMap,Q)&&this.colorThemesMap[Q][(S?re:ie)||""];te?w[Z]=y(te,ne):console.error(`"${r}${S}: ${M}" is an invalid ".colors" config`)}}}let B=Object.keys(w);if(B.length){this.colorThemesMap[r]=w;for(let S of B)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete u[r]},i),{});for(let i of Object.keys(u))u[i]?.();if(h)for(let i in h){let r=h[i],{native:f,values:y,colored:w}=r,B=r.match;if(r.id=i,r.native=f===!0?i.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,y&&(this.values[i]=d(a(y,!1))),B){let S=Object.keys(this.values[i]??{});B.includes("$values")&&(B=S.length?B.replace(/\$values/,S.join("|")):B.replace(/(?:\|)?\$values/,"")),w&&B.includes("$colors")&&(B=this.colorNames.length?B.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):B.replace(/(?:\|)?\$colors/,"")),this.matches[i]=new RegExp(B)}}}observe(t,n={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let o=t===document;o&&(e.root=this),this.host=o?document.documentElement:this.root.host;let b=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let l of s){let{ownerNode:h}=l;if(h&&h.id==="master"){this.style=h;break}}if(this.style)for(let l=0;l<this.style.sheet.cssRules.length;l++){let h=this.style.sheet.cssRules[l];if(h.constructor.name==="CSSKeyframesRule")continue;let g=a=>{if(a.selectorText){let m=a.selectorText.split(", ")[0].split(" ");for(let x=0;x<m.length;x++){let p=m[x];if(p[0]==="."){let u=p.slice(1),i="";for(let r=0;r<u.length;r++){let f=u[r],y=u[r+1];if(f==="\\"){if(r++,y!=="\\"){i+=y;continue}}else if(Ae.includes(f))break;i+=f}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,i)&&!Object.prototype.hasOwnProperty.call(this.classes,i)){let r=this.create(i)[0];if(r)return r}}}}else if(a.cssRules)for(let d=0;d<a.cssRules.length;d++){let m=g(a.cssRules[d]);if(m)return m}},v=g(h);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let a=0;a<v.natives.length;a++)v.natives[a].cssRule=this.style.sheet.cssRules[l+a];l+=v.natives.length-1,this.handleRuleWithAnimationNames(v),v.config.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",b.append(this.style);let c=l=>{l.forEach(h=>{Object.prototype.hasOwnProperty.call(this.countBy,h)?this.countBy[h]++:(this.countBy[h]=1,this.insert(h))})};c(this.host.classList),n.subtree&&this.host.querySelectorAll("[class]").forEach(l=>c(l.classList)),this.observer=new MutationObserver(l=>{let h={},g=[],v=[],a=[],d=(u,i)=>{i?u.classList.forEach(x):u.classList.forEach(m);let r=u.children;for(let f=0;f<r.length;f++){let y=r[f];y.classList&&(v.push(y),d(y,i))}},m=u=>{Object.prototype.hasOwnProperty.call(h,u)?h[u]++:h[u]=1},x=u=>{Object.prototype.hasOwnProperty.call(h,u)?h[u]--:Object.prototype.hasOwnProperty.call(this.countBy,u)&&(h[u]=-1)},p=(u,i)=>{for(let r=0;r<u.length;r++){let f=u[r];f.classList&&!v.includes(f)&&!a.includes(f)&&(f.isConnected!==i?(v.push(f),d(f,i)):a.push(f))}};for(let u=0;u<l.length;u++){let i=l[u],{addedNodes:r,removedNodes:f,type:y,target:w}=i;if(y==="attributes"){if(g.find(B=>B.target===w))continue;g.push(i)}else p(r,!1),(!w.isConnected||!v.includes(w))&&p(f,!0)}if(!(!g.length&&!Object.keys(h).length)){for(let{oldValue:u,target:i}of g){let r=v.includes(i),f=i.classList,y=u?u.split(" "):[];if(r){if(i.isConnected)continue;for(let w of y)f.contains(w)||x(w)}else if(i.isConnected){f.forEach(w=>{y.includes(w)||m(w)});for(let w of y)f.contains(w)||x(w)}}for(let u in h){let i=h[u],r=(this.countBy[u]||0)+i;r===0?(delete this.countBy[u],this.delete(u)):(Object.prototype.hasOwnProperty.call(this.countBy,u)||this.insert(u),this.countBy[u]=r)}}}),this.observer.observe(t,{...n,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 t=this.style?.sheet;if(t?.cssRules)for(let n=t.cssRules.length-1;n>=0;n--)t.deleteRule(n);this.style?.remove(),this.style=null,this.root=null}match(t){for(let n in this.config.rules){let o=this.config.rules[n],b=this.matches[n],{native:s}=o;if(b&&b.test(t))return{origin:"match",config:o};if(s&&t.startsWith(s+":"))return{origin:"match",config:o}}for(let n of this.semantics)if(t.match(n[0]))return{origin:"semantics",value:n[1]}}create(t){let n=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let b=this.match(o);if(b)return new de(o,b,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(o=>n(o)):[n(t)]).filter(o=>o&&o.text)}refresh(t){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(ue,t),this.cache(),!this.style)return;let n=document.createElement("style");n.id="master",this.style.replaceWith(n),this.style=n,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let n=this.style?.sheet,o=b=>{let s=this.ruleBy[b];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,b)&&this.classesBy[b].some(c=>Object.prototype.hasOwnProperty.call(this.countBy,c)))){if(n&&s.natives.length){let c=s.natives[0];for(let l=0;l<n.cssRules.length;l++)if(n.cssRules[l]===c.cssRule){for(let g=0;g<s.natives.length;g++)n.deleteRule(l);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[b],s.animationNames){let c=this.rules[0];for(let l of s.animationNames){let h=this.keyframesMap[l];if(!--h.count){let g=c.natives.indexOf(h.native);this.style.sheet.deleteRule(g),c.natives.splice(g,1),delete this.keyframesMap[l]}}c.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,b)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let b of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,b)||o(b);delete this.ruleBy[t]}else o(t)}insert(t){let n=this.create(t);return n.length?(this.insertRules(n),!0):!1}insertRules(t){for(let n of t){if(this.ruleBy[n.className])continue;let o,b=Object.keys(this.keyframesMap).length,s=this.rules.length-1,{media:c,order:l,priority:h,hasWhere:g,className:v}=n,a=(x,p,u)=>{let i=x;for(;i<=s;i++){let r=this.rules[i];if(p?.(r))return u?-1:i-1;if(u?.(r))return i}return u?-1:i-1},d,m;if(c){let x=this.rules.findIndex(p=>p.media);if(x===-1)o=s+1;else{let{"max-width":p,"min-width":u}=c.features;if(p||u){let i=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(i===-1)o=s+1;else if(p&&u){if(h===-1?(d=a(i,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),m=a(i,r=>r.priority!==-1)):(d=a(i,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),m=s),d!==-1){let r=p.value-u.value,f=m,y=d;for(d=void 0;f>=y;f--){let{"max-width":w,"min-width":B}=this.rules[f].media.features,S=w.value-B.value;if(S<r)m=f-1;else if(S===r)d=f;else break}}if(d!==-1){let r=p.value-u.value;for(let f=m;f>=d;f--){let{"max-width":y,"min-width":w}=this.rules[f].media.features,B=y.value-w.value;if(B<r)m=f-1;else if(B>r){d=f+1;break}}}}else if(u){if(h===-1?(d=a(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),m=a(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(d=a(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),m=a(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=m;r>=d;r--){let f=this.rules[r].media.features["min-width"].value;if(f>u.value)m=r-1;else if(f<u.value){d=r+1;break}}}else if(h===-1?(d=a(i,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),m=a(i,r=>r.media.features["min-width"]||r.priority!==-1)):(d=a(i,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),m=a(i,r=>r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=m;r>=d;r--){let f=this.rules[r].media.features["max-width"].value;if(f<p.value)m=r-1;else if(f>p.value){d=r+1;break}}}else h===-1?(d=x,m=a(x,i=>i.media?.features["max-width"]||i.media?.features["min-width"]||i.priority!==-1)):(d=a(x,i=>i.media?.features["max-width"]||i.media?.features["min-width"],i=>i.priority!==-1),m=a(x,i=>i.media?.features["max-width"]||i.media?.features["min-width"]))}}else{let x=b?1:0;h===-1?(d=x,m=a(x,p=>p.media||p.priority!==-1)):(d=a(x,p=>p.media,p=>p.priority!==-1),m=a(x,p=>p.media))}if(o===void 0)if(d===-1)o=m+1;else{if(h===-1)for(let x=d;x<=m;x++){let p=this.rules[x];if(!(!g&&p.hasWhere)&&(g&&!p.hasWhere||p.order>=l)){o=x;break}}else for(let x=d;x<=m;x++){let p=this.rules[x];if(!(!g&&p.hasWhere)){if(g&&!p.hasWhere){o=x;break}if(p.priority<h){o=x;break}else if(p.priority===h){if(p.order>=l){o=x;break}}else o=x+1}}o===void 0&&(o=m+1)}if(this.rules.splice(o,0,n),this.ruleBy[v]=n,this.style){let x=this.style.sheet,p=0,u=i=>{let r=this.rules[i];if(r){if(!r.natives.length)return u(i-1);let f=r.natives[r.natives.length-1].cssRule;for(let y=0;y<x.cssRules.length;y++)if(x.cssRules[y]===f){p=y+1;break}}};u(o-1);for(let i=0;i<n.natives.length;)try{let r=n.natives[i];x.insertRule(r.text,p),r.cssRule=x.cssRules[p++],i++}catch(r){console.error(r),n.natives.splice(i,1)}}this.handleRuleWithAnimationNames(n),n.config.insert?.call(n)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let n=s=>{let c=se({},s),l=h=>{for(let g in h){let v=h[g];typeof v=="object"&&!Array.isArray(v)?l(v):g&&(h[g]={"":v})}};if(c.classes?l(c.classes):c.classes={},c.viewports?l(c.viewports):c.viewports={},c.mediaQueries?l(c.mediaQueries):c.mediaQueries={},c.selectors?l(c.selectors):c.selectors={},c.values?l(c.values):c.values={},c.colors){let h=(g,v)=>{let a=(p,u,i)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,p)||(this.colorByThemeByColorName[p]={});let r=this.colorByThemeByColorName[p],f=r[""]?.includes(he),y=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(B,S,V,M,A)=>{let K="#"+me(+S,+V,+M);return A&&(K+=Math.round(255*+A).toString(16)),K});for(let[w,B]of u)if(B){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,V;for(;(V=S.exec(B))!==null;){let M=V[0].trimStart(),A=M.lastIndexOf("@"),K=A!==-1?M.slice(0,A):M,re=A!==-1?M.slice(A):"",Z=w||re,D=i&&V[2]&&!V[2].startsWith("#")&&!re,ie=V[1]?y(K):w?V[0]:K;if(f||D){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let Q in r)Q&&(r[""]+=" "+r[Q],delete r[Q]);r[""]+=(r[""]?" ":"")+(D?he:"")+ie+Z}else r[Z]=ie;if(w)break}}else if(i){delete this.colorByThemeByColorName[p];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[p]},d=Object.entries(g),m=d.filter(([p])=>p===""||p.startsWith("@"));m.length&&a(v,m,!1);let x=d.filter(([p])=>p!==""&&!p.startsWith("@"));for(let[p,u]of x){let i=(v?v+"-":"")+p;typeof u=="string"?a(i,[["",u]],!0):h(u,i)}};h(c.colors,"")}return c},o=[];for(let s of t)(function c(l){if(l.extends?.length)for(let h of l.extends)c("config"in h?h.config:h);o.push(n(l))})(s);let b=o[0];for(let s=1;s<o.length;s++){let c=o[s];b=se(b,c),Object.prototype.hasOwnProperty.call(c,"animations")&&Object.assign(b.animations,c.animations)}return b}handleRuleWithAnimationNames(t){if(t.animationNames){let n=this.style?.sheet;for(let o of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,o))this.keyframesMap[o].count++;else{let b={text:`@keyframes ${o}{`+Object.entries(this.animations[o]).map(([c,l])=>`${c}{${Object.entries(l).map(([h,g])=>h+":"+g).join(";")}}`).join("")+"}",theme:""},s;if(Object.keys(this.keyframesMap).length?(s=this.rules[0]).natives.push(b):this.rules.splice(0,0,s={natives:[b],get text(){return this.natives.map(c=>c.text).join("")}}),n){let c;for(let l=0;l<n.cssRules.length;l++){let h=n.cssRules[l];if(h.constructor.name!=="CSSKeyframesRule")break;if(h.name===o){c=h;break}}if(c)b.cssRule=c;else{let l=s.natives.length-1;n.insertRule(b.text,l),b.cssRule=n.cssRules[l]}}this.keyframesMap[o]={native:b,count:1}}}}};typeof window<"u"&&(window.MasterCSS=fe);function ve(e,t){return new fe(e).observe(t)}ve(window.masterCSSConfig);})();
|
|
1
|
+
(()=>{function Re(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function we(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function Se(e){let t=[];return e.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?t[o]=Se(i):Re(i)?t[o]=we(i):t[o]=se({},i):t[o]=i}),t}function ye(e,t){return t==="__proto__"?void 0:e[t]}function se(...e){let t={},i,o;return e.forEach(function(g){typeof g!="object"||g===null||Array.isArray(g)||Object.keys(g).forEach(function(s){if(o=ye(t,s),i=ye(g,s),i!==t)if(typeof i!="object"||i===null){t[s]=i;return}else if(Array.isArray(i)){t[s]=Se(i);return}else if(Re(i)){t[s]=we(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=se({},i);return}else{t[s]=se(o,i);return}})}),t}var ae={"(":")","'":"'",'"':'"',"{":"}"};function le(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),i=t.length,o=-1,g="",s,a=t.charCodeAt(0);if(i==1&&a==45)return"\\"+t;for(;++o<i;){if(s=t.charCodeAt(o),s==0){g+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&a==45){g+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){g+=t.charAt(o);continue}g+="\\"+t.charAt(o)}return g}function de(e,t){let i=t.endsWith("%")?parseFloat(t)/100:+t;return i=isNaN(i)?1:Math.min(Math.max(i,0),1),e+Math.round(i*255).toString(16).toUpperCase().padStart(2,"0")}var Ie={unit:"",order:0,separators:[","]},Ve=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,me=class{constructor(t,i={},o){this.className=t;this.meta=i;this.css=o;this.config=se(Ie,i.config);let{unit:g,order:s,colored:a,native:c,analyze:h,transform:p,declare:v,create:l}=this.config,{scope:d,important:m,functions:x,themeDriver:b}=o.config,{themeNames:u,colorNames:n,colorThemesMap:r,selectors:f,viewports:R,mediaQueries:w,classesBy:B,globalValues:S,animations:V}=o,M=B[t];l&&l.call(this,t);let A,Z,te,q,D;if(i.origin==="semantics"){let[E,N]=i.value;q=t.slice(E.length),A=N}else{let E;if(h)[E,te]=h.call(this,t);else{let Y=t.indexOf(":");this.prefix=t.slice(0,Y+1),E=t.slice(Y+1)}D=[];let N=this,z=this.values,H=[","];this.config.separators.length&&H.push(...this.config.separators);let $="",j=0;(function Y(W,C,k,y=void 0,O=[],I=[],P){let T=y===void 0,Q,K=L=>L==="'"||L==='"',ne=()=>Q=$.length,G=()=>{if($){let L=$,_=T?L:$.slice(Q);if($="",ee="",z&&_ in z&&!O.includes(_)){let U=j;j=0,Y(z[_].toString(),C,void 0,y,[...O,_],I,P),j=U,T||($=$.slice(0,Q)+$)}else if(S&&_ in S&&!I.includes(_)){let U=j;j=0,Y(S[_].toString(),C,void 0,y,O,[...I,_],P),j=U,T||($=$.slice(0,Q)+$)}else if(T){let U=!P&&N.analyzeUnitValue(_,C);D.push({value:U?.value??_,unit:U?.unit})}else{let U=!P&&N.analyzeUnitValue(_,C);$=U?L.slice(0,Q)+U.value+U.unit:L}ne()}},oe=K(k);ne();let ee="";for(;j<W.length;j++){let L=W[j];if(L===k){if(oe){$+=L;let _=0;for(let U=$.length-2;$[U]==="\\";U--)_++;if(_%2)continue}else G(),$+=L;return}else if(!oe&&L in ae){let _=L==="("&&ee&&x?.[ee];_?.name&&($=$.slice(0,$.length-ee.length)+_.name,ee=_.name),$+=L,j++;let U=ae[L];Y(W,_?.unit??C,U,ee||y||"",O,I,P||!!_?.transform),_?.transform&&($=$.slice(0,Q+ee.length+1)+_.transform.call(N,$.slice(Q+ee.length+1,-1))+$.slice(-1)),T&&(K(U)?(D.push($),$=""):G()),ee=""}else if((L==="|"||L===" ")&&k!=="}"&&(!oe||y==="path"))G(),T||($+=" ",Q++);else{if(!oe){if(L==="."){if(isNaN(+W[j+1]))break;W[j-1]==="-"&&($+="0")}else if(H.includes(L)){G(),T?D.push(L):($+=L,Q++);continue}else if(T&&(L==="#"&&($||D.length&&W[j-1]!=="|"&&D[j-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(L)))break;ee+=L}$+=L}}y===void 0&&G()})(E,g),q=E.slice(j)}this.order=typeof s=="function"?s.call(this,this.prefix):s,q[0]==="!"&&(this.important=!0,q=q.slice(1));let re=(E,N)=>{let z=(C,k,y,O)=>{for(let[I,P]of k)if(I.test(C)){for(let T of P)z(C.replace(I,T),k,y,!0);return}O&&y.push(C)},H=C=>{let k=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((P,T)=>T%3?P:P.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),y=[],O="",I=0;for(let P=0;P<k.length;P++){let T=k[P];if(T==="\\"){O+=T+k[++P];continue}!I&&T===","?(y.push(O),O=""):(O+=T,I&&T===")"?I--:T==="("&&I++)}return O&&y.push(O),y},$=[];""in f?z(E,f[""],$,!0):$.push(E);let j={};for(let[C,k]of Object.entries(f)){if(!C)continue;let y=[];for(let O of $)z(O,k,y,!1);y.length&&(j[C]=y)}let Y=(C,k)=>{let y=k.reduce((O,I)=>(O.push(...H(I)),O),[]);C in N?N[C].push(...y):N[C]=y},W=Object.keys(j);if(W.length)for(let C of W)Y(C,j[C]);else Y("",$)};te?(this.vendorPrefixSelectors={},re(te,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let F=q.split("@"),ie=F[0];if(ie){this.vendorSuffixSelectors={},re(ie,this.vendorSuffixSelectors);for(let E of Object.values(this.vendorSuffixSelectors))for(let N of E){this.hasWhere!==!1&&(this.hasWhere=N.includes(":where("));let z=[":disabled",":active",":focus",":hover"];for(let H=0;H<z.length;H++)if(N.includes(z[H])){(this.priority===-1||this.priority>H)&&(this.priority=H);break}}}else this.vendorSuffixSelectors={"":[""]};let J={},pe=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),Ce=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(pe)J[""]=Ce?[""]:Object.keys(this.vendorSuffixSelectors);else if(Ce)for(let E in this.vendorPrefixSelectors)J[E]=[""];else for(let E in this.vendorPrefixSelectors){let N=J[E]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,E))N.push(E);else for(let z in this.vendorSuffixSelectors)N.push(z)}for(let E=1;E<F.length;E++){let N=F[E];if(N)if(N==="rtl"||N==="ltr")this.direction=N;else{let z,H,$=Ve.exec(N);if($)z=$[1],H=N.slice(z.length);else{this.media={token:N,features:{}};let j=[],Y=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")j.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")j.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else if(w&&C in w)j.push(w[C]);else{let k={token:C},y="",O="",I=0;C.startsWith("<=")?(O="<=",y="max-width"):C.startsWith(">=")||R[C]?(O=">=",y="min-width"):C.startsWith(">")?(O=">",y="min-width",I=.02):C.startsWith("<")&&(O="<",y="max-width",I=-.02);let P=O?C.replace(O,""):C,T=R[P];switch(y){case"max-width":case"min-width":T?Object.assign(k,this.analyzeUnitValue(T.toString(),"px")):Object.assign(k,this.analyzeUnitValue(P,"px")),k.unit==="px"&&(k.value+=I),this.media.features[y]=k,j.push("("+y+":"+(k.value+k.unit)+")");break}}},W=N.includes("&");if(W){let C=N.split("&");for(let k of C)Y(k)}else Y(N);if(this.media.type&&(H=this.media.type),j.length&&(H=j.join(" and ")),H)z="media";else if(!W){this.theme=N;continue}}H&&(this.at[z]=(z in this.at?this.at[z]+" and ":"")+H.replace(/\|/g," "))}}let be=(E,N)=>{let z,H=(Y,W,C,k)=>{let y="";this.direction&&(y+="[dir="+this.direction+"] ");let O=C.map(T=>T+y),I=(T,Q)=>O.map(K=>(T&&b!=="media"?b==="host"?`:host(.${T}) `:`.${T} `:"")+(d?d+" ":"")+K).reduce((K,ne)=>(K.push(k.reduce((G,oe)=>(G.push(ne+"."+le(Q)+oe),G),[]).join(",")),K),[]).join(","),P=I(W,t)+(M?M.reduce((T,Q)=>T+","+I(this.theme??(a||Z?W:""),Q),""):"")+"{"+Y+"}";for(let T of Object.keys(this.at).sort((Q,K)=>K==="supports"?-1:1))P="@"+T+(T.includes(" ")?"":" ")+this.at[T]+"{"+P+"}";return W&&b==="media"&&(P=`@media(prefers-color-scheme:${W}){`+P+"}"),P},$=[];if(D){let Y=[this.theme??E,""],W,C=!1;for(let k of D)if(typeof k=="string")$.push(k);else{let y=k.value;if(k.unit)y+=k.unit;else if(a&&r&&n){let O=!1;y=y.replace(new RegExp(`(^|,| |\\()((?:${n.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(I,P,T,Q)=>{let K=r[T];if(K){let ne,G;for(let oe of Y)if(ne=K[oe]){G=oe;break}if(ne)return O=!N||G===E,W||(W=O),P+(Q?de(ne,Q):ne);C=!0}return I})}$.push(y)}if(N&&(C||(W===void 0?E:!W)))return;if(z=$.reduce((k,y,O)=>k+y+(y===","||D[O+1]===","||O===D.length-1?"":" "),""),p&&(z=p.call(this,z,this.css.config)),a&&z==="current"&&(z="currentColor"),v){let k,y;if(D.length===1){let O=D[0];typeof O=="object"&&(k=O.value,y=O.unit)}A=v.call(this,y?k:z,y||"")}else A={[c]:z}}let j={};for(let Y in A){let W=(y,O)=>{if(V&&(O.startsWith("animation")||O.startsWith("animation-name"))){let P=O.split(":")[1].split("!important")[0].split(" ").filter(T=>T in this.css.animations&&(!this.animationNames||!this.animationNames.includes(T)));P.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...P))}let I=O+((this.important||m)&&!O.endsWith("!important")?"!important":"");y in j?j[y].push(I):j[y]=[I]},C=Y+":",k=A[Y];if(typeof k=="object")if(Array.isArray(k))for(let y of k)W(E,C+y.toString());else{Z=!0;for(let y in k)W(y,C+k[y])}else W(E,C+k.toString())}for(let Y in J)for(let W of J[Y])for(let C in j)this.natives.push({text:H(j[C].join(";"),C,this.vendorPrefixSelectors[Y],this.vendorSuffixSelectors[W]),theme:C})};if(this.theme)be(this.theme,!1);else if(a)for(let E of u)be(E,!0);else be("",!1)}at={};priority=-1;natives=[];animationNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,i){return Number.isNaN(+t)?t:t/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(t,i){let o=i??this.config.unit;if(o){let g="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[a,c]=t.split("/");return{value:+a/+c*100+"%",unit:g}}else{let a=+s[1];return g=s[3]||"",g||((o==="rem"||o==="em")&&(a=a/this.css.config.rootSize),g=o||""),{value:a,unit:g}}}}};var Le={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ke=Le;function ce(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function he(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function X(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let o in e)if(o&&+o>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let o=0,g="0"in e?ce(e[0]):[0,0,0],s,a,c=[],h=()=>{let p=s-o,v=a.map((l,d)=>(l-g[d])/p);for(let l of c){let d=l-o,m=g.map((x,b)=>Math.round(x+v[b]*d));e[l]="#"+he.call(this,...m)}};for(let p=1;p<100;p++)p in e?(c.length?(s=p,a=ce(e[p]),h(),c.length=0,g=a):g=ce(e[p]),o=p):c.push(p);c.length&&(s=100,a="100"in e?ce(e[100]):[255,255,255],h())}return t||(e[""]=e[i?"500":"50"]),e}var De={black:"#000000",white:"#ffffff",slate:X({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:X({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:X({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:X({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:X({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:X({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:X({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:X({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:X({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:X({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:X({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:X({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:X({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:X({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:X({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:X({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:X({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:X({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:X({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:X({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},$e=De;var Ye={"::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(",":only":":only-child"},Oe=Ye;var _e={square:{aspectRatio:"1/1"},video:{aspectRatio:"16/9"},rounded:{borderRadius:"1e9em"},round:{borderRadius:"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:{fontStyle:"italic"},oblique:{fontStyle:"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{pointerEvents:"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{maxWidth:"100vw"},"max-vh":{maxHeight:"100vh"},"min-vw":{minWidth:"100vw"},"min-vh":{minHeight:"100vh"},"center-content":{justifyContent:"center",alignItems:"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",borderWidth:"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,marginLeft:"auto",marginRight:"auto"},middle:{top:0,bottom:0,marginTop:"auto",marginBottom:"auto"},"break-spaces":{whiteSpace:"break-spaces"},"break-word":{overflowWrap:"break-word",overflow:"hidden"},"gradient-text":{WebkitTextFillColor:"transparent",WebkitBackgroundClip:"text",backgroundClip:"text"},fit:{width:"fit-content",height:"fit-content"}},Be=_e;var Xe={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)",animationTimingFunction:"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"}}},Te=Xe;var He={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(p,v)=>{let l=v.indexOf(":");if(l!==-1){p in t||(t[p]={});let d=t[p],m=v.slice(0,l);m in d||(d[m]=v.slice(l+1))}},o=p=>{let v=(l,d)=>{let m=d.slice(le(p.className).length).match(/\{(.*)\}/)[1].split(";");for(let x of m)i(l,x)};if(this.theme){let l=p.natives.find(d=>d.theme===this.theme)??p.natives.find(d=>!d.theme);l&&v(this.theme,l.text)}else for(let l of p.natives)v(l.theme,l.text);if(p.animationNames){this.animationNames||(this.animationNames=[]);for(let l of p.animationNames)this.animationNames.includes(l)||this.animationNames.push(l)}},g=[],s="",a=()=>{s&&(g.push(s.replace(/ /g,"|")),s="")},c=1;(function p(v){for(;c<e.length;c++){let l=e[c];if(!v){if(l===";"){a();continue}if(l==="}")break}if(s+=l,v===l){if(v==="'"||v==='"'){let d=0;for(let m=s.length-2;s[m]==="\\";m--)d++;if(d%2)continue}break}else l in ae&&v!=="'"&&v!=='"'&&(c++,p(ae[l]))}})(void 0),a();for(let p of g){let v=this.css.create(p);if(Array.isArray(v))if(v.length)for(let l of v)o(l);else i(this.theme??"",p);else o(v)}let h={};for(let p in t)for(let[v,l]of Object.entries(t[p]))v in h?h[v][p]=l:h[v]={[p]:l};return h}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",transform(e){let i=new RegExp(`^((?:${this.css.colorNames.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?:@(.*?))?$`,"m").exec(e);if(i){let[,o,g,s]=i,a=this.css.colorThemesMap[o]?.[s||""];if(a)return g?de(a,g):a}return e},declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},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(e){switch(e){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(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},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(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},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(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},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:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},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,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},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:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},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(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},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(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},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(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},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(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},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(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},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)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},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(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},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(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},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:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^scroll-p:.",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(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},Fe=He,je=Fe;var Qe={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,i=this.css.globalValues,o=this.css.config.functions,g=this,s=0,a="",c="";return function h(p,v){let l=!1,d=(m,x=!1,b=!1)=>{if(m!=="("&&(t&&c in t?c=t[c].toString():i&&c in i&&(c=i[c].toString())),c&&!l&&!v){let u=g.analyzeUnitValue(c,o.calc.unit);u&&(c=u.value+u.unit)}a+=c+(x&&e[s-1]!==" "?" ":"")+m+(b&&e[s+1]!==" "?" ":""),c="",l=!1};for(;s<e.length;s++){let m=e[s];if(m==="("){let x=c,b=l,u=a.length;if(d(m),s++,h(x,b||v),x!=="calc"){let n=o[x];if(n){let r=a.slice(u+2,a.length-1);a=a.slice(0,u-x.length+1)+(n.name??x)+"("+(n.transform?.call(g,r)??r)+")"}}}else if(m===")"){d(m);break}else if(m===",")d(m,!1,!0);else if(m===" ")d(m);else{let x=e[s-1];switch(m){case"+":!c&&x!==")"?c+=m:d(m,!0,!0);break;case"-":p==="var"||!c&&x!==")"?c+=m:d(m,!0,!0);break;case"*":d(m,!0,!0);break;case"/":d(m,!0,!0),l=!0;break;default:c+=m;break}}}s>=e.length-1&&d("")}("",!1),a}},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:""},repeat:{unit:""}},Me=Qe;var Ne=16;var Ue="",Ee=Ue;var Pe=!1;var We=!1;var Ze="class",Ae=Ze;var ue={viewports:ke,colors:$e,rootSize:Ne,scope:Ee,selectors:Oe,semantics:Be,rules:je,override:Pe,important:We,functions:Me,animations:Te,themeDriver:Ae};var ze=[",",".","#","[","!","*",">","+","~",":","@"];function ve(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var ge="_CNO_",fe=class e{constructor(t=ue){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ue,t),this.cache(),e.instances.push(this)}static root;static config=ue;static instances=[];static refresh=t=>{for(let i of this.instances)i.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;observer;colorByThemeByColorName;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.viewports={},this.mediaQueries={},this.matches={},this.keyframesMap={},this.animations={};let{semantics:t,classes:i,selectors:o,colors:g,values:s,viewports:a,mediaQueries:c,rules:h,animations:p}=this.config;function v(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function l(n,r,f="",R={}){let w=M=>M?(f?f+"-":"")+M:f,B=Object.entries(n),S=[],V=[];for(let M of B){let A=M[1];(typeof A=="object"&&!Array.isArray(A)?S:V).push(M)}for(let[M,A]of S)l(A,r,w(M),R);if(r&&f)V.length&&(R[f]=V.reduce((M,[A,Z])=>(M[A]=Z,M),{}));else for(let[M,A]of V)R[w(M)]=A;return R}function d(n){for(let[r,f]of Object.entries(n))/^[0-9]+x$/.test(r)&&typeof f=="number"&&(n["-"+r]=f*-1);return n}if(t)for(let[n,r]of Object.entries(l(t,!0))){let f={};for(let R of Object.keys(r))f[ve(R)]=r[R];this.semantics.push([new RegExp("^"+v(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,f]])}if(o)for(let[n,r]of Object.entries(l(o,!1))){let f=new RegExp(v(n)+"(?![a-z-])");for(let R of Array.isArray(r)?r:[r]){let w=R.match(/^::-[a-z]+-/m)?.[0]??"",B=this.selectors[w];B||(B=this.selectors[w]=[]);let S=B.find(([V])=>V===f);S||(S=[f,[]],B.push(S)),S[1].push(R)}}if(s&&(this.globalValues=d(l(s,!1))),a&&(this.viewports=l(a,!1)),c&&(this.mediaQueries=l(c,!1)),p)for(let n in p){let r=this.animations[n]={},f=p[n];for(let R in f){let w=r[R]={},B=f[R];for(let S in B)w[ve(S)]=B[S]}}let m=i?l(i,!1):{},x=Object.keys(m),b=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let r=this.classes[n]=[],f=m[n];if(!f)return;let R=f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of R){let B=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let V=this.classesBy[S];V.includes(n)||V.push(n)}else this.classesBy[S]=[n];r.includes(S)||r.push(S)};if(x.includes(w)){b(w);for(let S of this.classes[w])B(S)}else B(w)}};for(let n of x)b(n);this.colorNames=Object.keys(g);let u=Object.entries(this.colorByThemeByColorName).reduce((n,[r,f])=>(n[r]=()=>{let R=(S,V)=>V?S.slice(0,7)+Math.round(255*+V).toString(16):S,w={};for(let S in f){let V=f[S].split(" ");for(let M of V){let A=M.lastIndexOf("@"),Z=A!==-1?M.slice(0,A):M,te=A!==-1?M.slice(A+1):"",q=S.slice(1)||te;if(M.startsWith("#"))w[q]=Z;else if(M.startsWith(ge)){let[D,re]=Z.slice(ge.length).split("/");if(Object.prototype.hasOwnProperty.call(u,D)){let ie=u[D];delete u[D],ie()}let F=Object.prototype.hasOwnProperty.call(this.colorThemesMap,D)&&this.colorThemesMap[D];if(F)for(let ie in F){let J=F[ie];w[ie]=R(J,re)}else console.error(`"${r}${S}: ${M}" is an invalid ".colors" config`)}else{let[D,re]=Z.split("@"),[F,ie]=D.split("/");if(Object.prototype.hasOwnProperty.call(u,F)){let pe=u[F];delete u[F],pe()}let J=Object.prototype.hasOwnProperty.call(this.colorThemesMap,F)&&this.colorThemesMap[F][(S?te:re)||""];J?w[q]=R(J,ie):console.error(`"${r}${S}: ${M}" is an invalid ".colors" config`)}}}let B=Object.keys(w);if(B.length){this.colorThemesMap[r]=w;for(let S of B)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete u[r]},n),{});for(let n of Object.keys(u))u[n]?.();if(h)for(let n in h){let r=h[n],{native:f,values:R,colored:w}=r,B=r.match;if(r.id=n,r.native=f===!0?n.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,R&&(this.values[n]=d(l(R,!1))),B){let S=Object.keys(this.values[n]??{});B.includes("$values")&&(B=S.length?B.replace(/\$values/,S.join("|")):B.replace(/(?:\|)?\$values/,"")),w&&B.includes("$colors")&&(B=this.colorNames.length?B.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):B.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(B)}}}observe(t,i={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let o=t===document;o&&(e.root=this),this.host=o?document.documentElement:this.root.host;let g=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let c of s){let{ownerNode:h}=c;if(h&&h.id==="master"){this.style=h;break}}if(this.style)for(let c=0;c<this.style.sheet.cssRules.length;c++){let h=this.style.sheet.cssRules[c];if(h.constructor.name==="CSSKeyframesRule")continue;let p=l=>{if(l.selectorText){let m=l.selectorText.split(", ")[0].split(" ");for(let x=0;x<m.length;x++){let b=m[x];if(b[0]==="."){let u=b.slice(1),n="";for(let r=0;r<u.length;r++){let f=u[r],R=u[r+1];if(f==="\\"){if(r++,R!=="\\"){n+=R;continue}}else if(ze.includes(f))break;n+=f}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.classes,n)){let r=this.create(n)[0];if(r)return r}}}}else if(l.cssRules)for(let d=0;d<l.cssRules.length;d++){let m=p(l.cssRules[d]);if(m)return m}},v=p(h);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let l=0;l<v.natives.length;l++)v.natives[l].cssRule=this.style.sheet.cssRules[c+l];c+=v.natives.length-1,this.handleRuleWithAnimationNames(v),v.config.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",g.append(this.style);let a=c=>{c.forEach(h=>{Object.prototype.hasOwnProperty.call(this.countBy,h)?this.countBy[h]++:(this.countBy[h]=1,this.insert(h))})};a(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(c=>a(c.classList)),this.observer=new MutationObserver(c=>{let h={},p=[],v=[],l=[],d=(u,n)=>{n?u.classList.forEach(x):u.classList.forEach(m);let r=u.children;for(let f=0;f<r.length;f++){let R=r[f];R.classList&&(v.push(R),d(R,n))}},m=u=>{Object.prototype.hasOwnProperty.call(h,u)?h[u]++:h[u]=1},x=u=>{Object.prototype.hasOwnProperty.call(h,u)?h[u]--:Object.prototype.hasOwnProperty.call(this.countBy,u)&&(h[u]=-1)},b=(u,n)=>{for(let r=0;r<u.length;r++){let f=u[r];f.classList&&!v.includes(f)&&!l.includes(f)&&(f.isConnected!==n?(v.push(f),d(f,n)):l.push(f))}};for(let u=0;u<c.length;u++){let n=c[u],{addedNodes:r,removedNodes:f,type:R,target:w}=n;if(R==="attributes"){if(p.find(B=>B.target===w))continue;p.push(n)}else b(r,!1),(!w.isConnected||!v.includes(w))&&b(f,!0)}if(!(!p.length&&!Object.keys(h).length)){for(let{oldValue:u,target:n}of p){let r=v.includes(n),f=n.classList,R=u?u.split(" "):[];if(r){if(n.isConnected)continue;for(let w of R)f.contains(w)||x(w)}else if(n.isConnected){f.forEach(w=>{R.includes(w)||m(w)});for(let w of R)f.contains(w)||x(w)}}for(let u in h){let n=h[u],r=(this.countBy[u]||0)+n;r===0?(delete this.countBy[u],this.delete(u)):(Object.prototype.hasOwnProperty.call(this.countBy,u)||this.insert(u),this.countBy[u]=r)}}}),this.observer.observe(t,{...i,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 t=this.style?.sheet;if(t?.cssRules)for(let i=t.cssRules.length-1;i>=0;i--)t.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(t){for(let i in this.config.rules){let o=this.config.rules[i],g=this.matches[i],{native:s}=o;if(g&&g.test(t))return{origin:"match",config:o};if(s&&t.startsWith(s+":"))return{origin:"match",config:o}}for(let i of this.semantics)if(t.match(i[0]))return{origin:"semantics",value:i[1]}}create(t){let i=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let g=this.match(o);if(g)return new me(o,g,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(o=>i(o)):[i(t)]).filter(o=>o&&o.text)}refresh(t){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(ue,t),this.cache(),!this.style)return;let i=document.createElement("style");i.id="master",this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let i=this.style?.sheet,o=g=>{let s=this.ruleBy[g];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,g)&&this.classesBy[g].some(a=>Object.prototype.hasOwnProperty.call(this.countBy,a)))){if(i&&s.natives.length){let a=s.natives[0];for(let c=0;c<i.cssRules.length;c++)if(i.cssRules[c]===a.cssRule){for(let p=0;p<s.natives.length;p++)i.deleteRule(c);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[g],s.animationNames){let a=this.rules[0];for(let c of s.animationNames){let h=this.keyframesMap[c];if(!--h.count){let p=a.natives.indexOf(h.native);this.style.sheet.deleteRule(p),a.natives.splice(p,1),delete this.keyframesMap[c]}}a.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,g)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let g of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,g)||o(g);delete this.ruleBy[t]}else o(t)}insert(t){let i=this.create(t);return i.length?(this.insertRules(i),!0):!1}insertRules(t){for(let i of t){if(this.ruleBy[i.className])continue;let o,g=Object.keys(this.keyframesMap).length,s=this.rules.length-1,{media:a,order:c,priority:h,hasWhere:p,className:v}=i,l=(x,b,u)=>{let n=x;for(;n<=s;n++){let r=this.rules[n];if(b?.(r))return u?-1:n-1;if(u?.(r))return n}return u?-1:n-1},d,m;if(a){let x=this.rules.findIndex(b=>b.media);if(x===-1)o=s+1;else{let{"max-width":b,"min-width":u}=a.features;if(b||u){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)o=s+1;else if(b&&u){if(h===-1?(d=l(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),m=l(n,r=>r.priority!==-1)):(d=l(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),m=s),d!==-1){let r=b.value-u.value,f=m,R=d;for(d=void 0;f>=R;f--){let{"max-width":w,"min-width":B}=this.rules[f].media.features,S=w.value-B.value;if(S<r)m=f-1;else if(S===r)d=f;else break}}if(d!==-1){let r=b.value-u.value;for(let f=m;f>=d;f--){let{"max-width":R,"min-width":w}=this.rules[f].media.features,B=R.value-w.value;if(B<r)m=f-1;else if(B>r){d=f+1;break}}}}else if(u){if(h===-1?(d=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),m=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(d=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),m=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=m;r>=d;r--){let f=this.rules[r].media.features["min-width"].value;if(f>u.value)m=r-1;else if(f<u.value){d=r+1;break}}}else if(h===-1?(d=l(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),m=l(n,r=>r.media.features["min-width"]||r.priority!==-1)):(d=l(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),m=l(n,r=>r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=m;r>=d;r--){let f=this.rules[r].media.features["max-width"].value;if(f<b.value)m=r-1;else if(f>b.value){d=r+1;break}}}else h===-1?(d=x,m=l(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(d=l(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),m=l(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let x=g?1:0;h===-1?(d=x,m=l(x,b=>b.media||b.priority!==-1)):(d=l(x,b=>b.media,b=>b.priority!==-1),m=l(x,b=>b.media))}if(o===void 0)if(d===-1)o=m+1;else{if(h===-1)for(let x=d;x<=m;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)&&(p&&!b.hasWhere||b.order>=c)){o=x;break}}else for(let x=d;x<=m;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)){if(p&&!b.hasWhere){o=x;break}if(b.priority<h){o=x;break}else if(b.priority===h){if(b.order>=c){o=x;break}}else o=x+1}}o===void 0&&(o=m+1)}if(this.rules.splice(o,0,i),this.ruleBy[v]=i,this.style){let x=this.style.sheet,b=0,u=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return u(n-1);let f=r.natives[r.natives.length-1].cssRule;for(let R=0;R<x.cssRules.length;R++)if(x.cssRules[R]===f){b=R+1;break}}};u(o-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];x.insertRule(r.text,b),r.cssRule=x.cssRules[b++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}this.handleRuleWithAnimationNames(i),i.config.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let i=s=>{let a=se({},s),c=h=>{for(let p in h){let v=h[p];typeof v=="object"&&!Array.isArray(v)?c(v):p&&(h[p]={"":v})}};if(a.classes?c(a.classes):a.classes={},a.viewports?c(a.viewports):a.viewports={},a.mediaQueries?c(a.mediaQueries):a.mediaQueries={},a.selectors?c(a.selectors):a.selectors={},a.values?c(a.values):a.values={},a.colors){let h=(p,v)=>{let l=(b,u,n)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,b)||(this.colorByThemeByColorName[b]={});let r=this.colorByThemeByColorName[b],f=r[""]?.includes(ge),R=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(B,S,V,M,A)=>{let Z="#"+he(+S,+V,+M);return A&&(Z+=Math.round(255*+A).toString(16)),Z});for(let[w,B]of u)if(B){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,V;for(;(V=S.exec(B))!==null;){let M=V[0].trimStart(),A=M.lastIndexOf("@"),Z=A!==-1?M.slice(0,A):M,te=A!==-1?M.slice(A):"",q=w||te,D=n&&V[2]&&!V[2].startsWith("#")&&!te,re=V[1]?R(Z):w?V[0]:Z;if(f||D){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let F in r)F&&(r[""]+=" "+r[F],delete r[F]);r[""]+=(r[""]?" ":"")+(D?ge:"")+re+q}else r[q]=re;if(w)break}}else if(n){delete this.colorByThemeByColorName[b];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[b]},d=Object.entries(p),m=d.filter(([b])=>b===""||b.startsWith("@"));m.length&&l(v,m,!1);let x=d.filter(([b])=>b!==""&&!b.startsWith("@"));for(let[b,u]of x){let n=(v?v+"-":"")+b;typeof u=="string"?l(n,[["",u]],!0):h(u,n)}};h(a.colors,"")}return a},o=[];for(let s of t)(function a(c){if(c.extends?.length)for(let h of c.extends)a("config"in h?h.config:h);o.push(i(c))})(s);let g=o[0];for(let s=1;s<o.length;s++){let a=o[s];g=se(g,a),Object.prototype.hasOwnProperty.call(a,"animations")&&Object.assign(g.animations,a.animations)}return g}handleRuleWithAnimationNames(t){if(t.animationNames){let i=this.style?.sheet;for(let o of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,o))this.keyframesMap[o].count++;else{let g={text:`@keyframes ${o}{`+Object.entries(this.animations[o]).map(([a,c])=>`${a}{${Object.entries(c).map(([h,p])=>h+":"+p).join(";")}}`).join("")+"}",theme:""},s;if(Object.keys(this.keyframesMap).length?(s=this.rules[0]).natives.push(g):this.rules.splice(0,0,s={natives:[g],get text(){return this.natives.map(a=>a.text).join("")}}),i){let a;for(let c=0;c<i.cssRules.length;c++){let h=i.cssRules[c];if(h.constructor.name!=="CSSKeyframesRule")break;if(h.name===o){a=h;break}}if(a)g.cssRule=a;else{let c=s.natives.length-1;i.insertRule(g.text,c),g.cssRule=i.cssRules[c]}}this.keyframesMap[o]={native:g,count:1}}}}};typeof window<"u"&&(window.MasterCSS=fe);function xe(e,t){return new fe(e).observe(t)}xe(window.masterCSSConfig);})();
|
package/dist/index.bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ce=Object.defineProperty;var Ye=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var Qe=Object.prototype.hasOwnProperty;var Ue=(e,t)=>{for(var i in t)Ce(e,i,{get:t[i],enumerable:!0})},qe=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of Xe(t))!Qe.call(e,d)&&d!==i&&Ce(e,d,{get:()=>t[d],enumerable:!(o=Ye(t,d))||o.enumerable});return e};var Ke=e=>qe(Ce({},"__esModule",{value:!0}),e);var ct={};Ue(ct,{CONFIG_ESM_TEXT:()=>_e,CONFIG_TEXT:()=>Fe,CONFIG_TS_TEXT:()=>He,MasterCSS:()=>ie,Rule:()=>ce,animations:()=>ke,colors:()=>Re,config:()=>ue,default:()=>ie,extend:()=>re,extractClassesFromHTML:()=>he,fillColorScale:()=>D,functions:()=>Te,generateFromClasses:()=>ge,generateFromHTML:()=>fe,important:()=>je,initRuntime:()=>Pe,override:()=>Be,renderHTML:()=>We,rootSize:()=>Oe,rules:()=>$e,scope:()=>Me,selectors:()=>we,semantics:()=>Se,themeDriver:()=>Ee,viewports:()=>ye});module.exports=Ke(ct);function Le(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function ze(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function Ve(e){let t=[];return e.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?t[o]=Ve(i):Le(i)?t[o]=ze(i):t[o]=re({},i):t[o]=i}),t}function Ie(e,t){return t==="__proto__"?void 0:e[t]}function re(...e){let t={},i,o;return e.forEach(function(d){typeof d!="object"||d===null||Array.isArray(d)||Object.keys(d).forEach(function(s){if(o=Ie(t,s),i=Ie(d,s),i!==t)if(typeof i!="object"||i===null){t[s]=i;return}else if(Array.isArray(i)){t[s]=Ve(i);return}else if(Le(i)){t[s]=ze(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=re({},i);return}else{t[s]=re(o,i);return}})}),t}var le={"(":")","'":"'",'"':'"',"{":"}"};function de(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),i=t.length,o=-1,d="",s,l=t.charCodeAt(0);if(i==1&&l==45)return"\\"+t;for(;++o<i;){if(s=t.charCodeAt(o),s==0){d+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&l==45){d+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){d+=t.charAt(o);continue}d+="\\"+t.charAt(o)}return d}var Ze={unit:"",order:0,separators:[","]},Ge=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ce=class{constructor(t,i={},o){this.className=t;this.meta=i;this.css=o;this.config=re(Ze,i.config);let{unit:d,order:s,colored:l,native:c,analyze:g,transform:p,declare:v,create:a}=this.config,{scope:m,important:h,functions:x,themeDriver:b}=o.config,{themeNames:u,colorNames:n,colorThemesMap:r,selectors:f,viewports:R,mediaQueries:w,classesBy:O,globalValues:S,animations:z}=o,j=O[t];a&&a.call(this,t);let A,K,ne,Z,F;if(i.origin==="semantics"){let[N,E]=i.value;Z=t.slice(N.length),A=E}else{let N;if(g)[N,ne]=g.call(this,t);else{let _=t.indexOf(":");this.prefix=t.slice(0,_+1),N=t.slice(_+1)}F=[];let E=this,I=this.values,Y=[","];this.config.separators.length&&Y.push(...this.config.separators);let $="",B=0;(function _(W,C,k,y=void 0,T=[],L=[],P){let M=y===void 0,X,G=V=>V==="'"||V==='"',ae=()=>X=$.length,ee=()=>{if($){let V=$,H=M?V:$.slice(X);if($="",q="",I&&H in I&&!T.includes(H)){let U=B;B=0,_(I[H].toString(),C,void 0,y,[...T,H],L,P),B=U,M||($=$.slice(0,X)+$)}else if(S&&H in S&&!L.includes(H)){let U=B;B=0,_(S[H].toString(),C,void 0,y,T,[...L,H],P),B=U,M||($=$.slice(0,X)+$)}else if(M){let U=!P&&E.analyzeUnitValue(H,C);F.push({value:U?.value??H,unit:U?.unit})}else{let U=!P&&E.analyzeUnitValue(H,C);$=U?V.slice(0,X)+U.value+U.unit:V}ae()}},J=G(k);ae();let q="";for(;B<W.length;B++){let V=W[B];if(V===k){if(J){$+=V;let H=0;for(let U=$.length-2;$[U]==="\\";U--)H++;if(H%2)continue}else ee(),$+=V;return}else if(!J&&V in le){let H=V==="("&&q&&x?.[q];H?.name&&($=$.slice(0,$.length-q.length)+H.name,q=H.name),$+=V,B++;let U=le[V];_(W,H?.unit??C,U,q||y||"",T,L,P||!!H?.transform),H?.transform&&($=$.slice(0,X+q.length+1)+H.transform.call(E,$.slice(X+q.length+1,-1))+$.slice(-1)),M&&(G(U)?(F.push($),$=""):ee()),q=""}else if((V==="|"||V===" ")&&k!=="}"&&(!J||y==="path"))ee(),M||($+=" ",X++);else{if(!J){if(V==="."){if(isNaN(+W[B+1]))break;W[B-1]==="-"&&($+="0")}else if(Y.includes(V)){ee(),M?F.push(V):($+=V,X++);continue}else if(M&&(V==="#"&&($||F.length&&W[B-1]!=="|"&&F[B-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(V)))break;q+=V}$+=V}}y===void 0&&ee()})(N,d),Z=N.slice(B)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Z[0]==="!"&&(this.important=!0,Z=Z.slice(1));let oe=(N,E)=>{let I=(C,k,y,T)=>{for(let[L,P]of k)if(L.test(C)){for(let M of P)I(C.replace(L,M),k,y,!0);return}T&&y.push(C)},Y=C=>{let k=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((P,M)=>M%3?P:P.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),y=[],T="",L=0;for(let P=0;P<k.length;P++){let M=k[P];if(M==="\\"){T+=M+k[++P];continue}!L&&M===","?(y.push(T),T=""):(T+=M,L&&M===")"?L--:M==="("&&L++)}return T&&y.push(T),y},$=[];""in f?I(N,f[""],$,!0):$.push(N);let B={};for(let[C,k]of Object.entries(f)){if(!C)continue;let y=[];for(let T of $)I(T,k,y,!1);y.length&&(B[C]=y)}let _=(C,k)=>{let y=k.reduce((T,L)=>(T.push(...Y(L)),T),[]);C in E?E[C].push(...y):E[C]=y},W=Object.keys(B);if(W.length)for(let C of W)_(C,B[C]);else _("",$)};ne?(this.vendorPrefixSelectors={},oe(ne,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let Q=Z.split("@"),se=Q[0];if(se){this.vendorSuffixSelectors={},oe(se,this.vendorSuffixSelectors);for(let N of Object.values(this.vendorSuffixSelectors))for(let E of N){this.hasWhere!==!1&&(this.hasWhere=E.includes(":where("));let I=[":disabled",":active",":focus",":hover"];for(let Y=0;Y<I.length;Y++)if(E.includes(I[Y])){(this.priority===-1||this.priority>Y)&&(this.priority=Y);break}}}else this.vendorSuffixSelectors={"":[""]};let te={},ve=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),Ae=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(ve)te[""]=Ae?[""]:Object.keys(this.vendorSuffixSelectors);else if(Ae)for(let N in this.vendorPrefixSelectors)te[N]=[""];else for(let N in this.vendorPrefixSelectors){let E=te[N]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,N))E.push(N);else for(let I in this.vendorSuffixSelectors)E.push(I)}for(let N=1;N<Q.length;N++){let E=Q[N];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let I,Y,$=Ge.exec(E);if($)I=$[1],Y=E.slice(I.length);else{this.media={token:E,features:{}};let B=[],_=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")B.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")B.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else if(w&&C in w)B.push(w[C]);else{let k={token:C},y="",T="",L=0;C.startsWith("<=")?(T="<=",y="max-width"):C.startsWith(">=")||R[C]?(T=">=",y="min-width"):C.startsWith(">")?(T=">",y="min-width",L=.02):C.startsWith("<")&&(T="<",y="max-width",L=-.02);let P=T?C.replace(T,""):C,M=R[P];switch(y){case"max-width":case"min-width":M?Object.assign(k,this.analyzeUnitValue(M.toString(),"px")):Object.assign(k,this.analyzeUnitValue(P,"px")),k.unit==="px"&&(k.value+=L),this.media.features[y]=k,B.push("("+y+":"+(k.value+k.unit)+")");break}}},W=E.includes("&");if(W){let C=E.split("&");for(let k of C)_(k)}else _(E);if(this.media.type&&(Y=this.media.type),B.length&&(Y=B.join(" and ")),Y)I="media";else if(!W){this.theme=E;continue}}Y&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+Y.replace(/\|/g," "))}}let xe=(N,E)=>{let I,Y=(_,W,C,k)=>{let y="";this.direction&&(y+="[dir="+this.direction+"] ");let T=C.map(M=>M+y),L=(M,X)=>T.map(G=>(M&&b!=="media"?b==="host"?`:host(.${M}) `:`.${M} `:"")+(m?m+" ":"")+G).reduce((G,ae)=>(G.push(k.reduce((ee,J)=>(ee.push(ae+"."+de(X)+J),ee),[]).join(",")),G),[]).join(","),P=L(W,t)+(j?j.reduce((M,X)=>M+","+L(this.theme??(l||K?W:""),X),""):"")+"{"+_+"}";for(let M of Object.keys(this.at).sort((X,G)=>G==="supports"?-1:1))P="@"+M+(M.includes(" ")?"":" ")+this.at[M]+"{"+P+"}";return W&&b==="media"&&(P=`@media(prefers-color-scheme:${W}){`+P+"}"),P},$=[];if(F){let _=[this.theme??N,""],W,C=!1;for(let k of F)if(typeof k=="string")$.push(k);else{let y=k.value;if(k.unit)y+=k.unit;else if(l&&r&&n){let T=!1;y=y.replace(new RegExp(`(^|,| |\\()((?:${n.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(L,P,M,X)=>{let G=r[M];if(G){let ae,ee;for(let J of _)if(ae=G[J]){ee=J;break}if(ae){T=!E||ee===N,W||(W=T);let J=ae;if(X){let q=X.endsWith("%")?parseFloat(X)/100:+X;q=isNaN(q)?1:Math.min(Math.max(q,0),1),J+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return P+J}else C=!0}return L})}$.push(y)}if(E&&(C||(W===void 0?N:!W)))return;if(I=$.reduce((k,y,T)=>k+y+(y===","||F[T+1]===","||T===F.length-1?"":" "),""),p&&(I=p.call(this,I,this.css.config)),l&&I==="current"&&(I="currentColor"),v){let k,y;if(F.length===1){let T=F[0];typeof T=="object"&&(k=T.value,y=T.unit)}A=v.call(this,y?k:I,y||"")}else A={[c]:I}}let B={};for(let _ in A){let W=(y,T)=>{if(z&&(T.startsWith("animation")||T.startsWith("animation-name"))){let P=T.split(":")[1].split("!important")[0].split(" ").filter(M=>M in this.css.animations&&(!this.animationNames||!this.animationNames.includes(M)));P.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...P))}let L=T+((this.important||h)&&!T.endsWith("!important")?"!important":"");y in B?B[y].push(L):B[y]=[L]},C=_+":",k=A[_];if(typeof k=="object")if(Array.isArray(k))for(let y of k)W(N,C+y.toString());else{K=!0;for(let y in k)W(y,C+k[y])}else W(N,C+k.toString())}for(let _ in te)for(let W of te[_])for(let C in B)this.natives.push({text:Y(B[C].join(";"),C,this.vendorPrefixSelectors[_],this.vendorSuffixSelectors[W]),theme:C})};if(this.theme)xe(this.theme,!1);else if(l)for(let N of u)xe(N,!0);else xe("",!1)}at={};priority=-1;natives=[];animationNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,i){return Number.isNaN(+t)?t:t/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(t,i){let o=i??this.config.unit;if(o){let d="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[l,c]=t.split("/");return{value:+l/+c*100+"%",unit:d}}else{let l=+s[1];return d=s[3]||"",d||((o==="rem"||o==="em")&&(l=l/this.css.config.rootSize),d=o||""),{value:l,unit:d}}}}};var Je={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ye=Je;function me(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function pe(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function D(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let o in e)if(o&&+o>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let o=0,d="0"in e?me(e[0]):[0,0,0],s,l,c=[],g=()=>{let p=s-o,v=l.map((a,m)=>(a-d[m])/p);for(let a of c){let m=a-o,h=d.map((x,b)=>Math.round(x+v[b]*m));e[a]="#"+pe.call(this,...h)}};for(let p=1;p<100;p++)p in e?(c.length?(s=p,l=me(e[p]),g(),c.length=0,d=l):d=me(e[p]),o=p):c.push(p);c.length&&(s=100,l="100"in e?me(e[100]):[255,255,255],g())}return t||(e[""]=e[i?"500":"50"]),e}var et={black:"#000000",white:"#ffffff",slate:D({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:D({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:D({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:D({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:D({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:D({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:D({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:D({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:D({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:D({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:D({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:D({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:D({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:D({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:D({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:D({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:D({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:D({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:D({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:D({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},Re=et;var tt={"::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(",":only":":only-child"},we=tt;var rt={square:{aspectRatio:"1/1"},video:{aspectRatio:"16/9"},rounded:{borderRadius:"1e9em"},round:{borderRadius:"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:{fontStyle:"italic"},oblique:{fontStyle:"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{pointerEvents:"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{maxWidth:"100vw"},"max-vh":{maxHeight:"100vh"},"min-vw":{minWidth:"100vw"},"min-vh":{minHeight:"100vh"},"center-content":{justifyContent:"center",alignItems:"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",borderWidth:"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,marginLeft:"auto",marginRight:"auto"},middle:{top:0,bottom:0,marginTop:"auto",marginBottom:"auto"},"break-spaces":{whiteSpace:"break-spaces"},"break-word":{overflowWrap:"break-word",overflow:"hidden"},"gradient-text":{WebkitTextFillColor:"transparent",WebkitBackgroundClip:"text",backgroundClip:"text"},fit:{width:"fit-content",height:"fit-content"}},Se=rt;var it={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)",animationTimingFunction:"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"}}},ke=it;var nt={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(p,v)=>{let a=v.indexOf(":");if(a!==-1){p in t||(t[p]={});let m=t[p],h=v.slice(0,a);h in m||(m[h]=v.slice(a+1))}},o=p=>{let v=(a,m)=>{let h=m.slice(de(p.className).length).match(/\{(.*)\}/)[1].split(";");for(let x of h)i(a,x)};if(this.theme){let a=p.natives.find(m=>m.theme===this.theme)??p.natives.find(m=>!m.theme);a&&v(this.theme,a.text)}else for(let a of p.natives)v(a.theme,a.text);if(p.animationNames){this.animationNames||(this.animationNames=[]);for(let a of p.animationNames)this.animationNames.includes(a)||this.animationNames.push(a)}},d=[],s="",l=()=>{s&&(d.push(s.replace(/ /g,"|")),s="")},c=1;(function p(v){for(;c<e.length;c++){let a=e[c];if(!v){if(a===";"){l();continue}if(a==="}")break}if(s+=a,v===a){if(v==="'"||v==='"'){let m=0;for(let h=s.length-2;s[h]==="\\";h--)m++;if(m%2)continue}break}else a in le&&v!=="'"&&v!=='"'&&(c++,p(le[a]))}})(void 0),l();for(let p of d){let v=this.css.create(p);if(Array.isArray(v))if(v.length)for(let a of v)o(a);else i(this.theme??"",p);else o(v)}let g={};for(let p in t)for(let[v,a]of Object.entries(t[p]))v in g?g[v][p]=a:g[v]={[p]:a};return g}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},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(e){switch(e){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(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},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(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},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(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},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:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},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,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},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:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},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(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},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(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},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(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},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(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},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(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},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)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},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(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},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(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},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:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^scroll-p:.",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(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},ot=nt,$e=ot;var st={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,i=this.css.globalValues,o=this.css.config.functions,d=this,s=0,l="",c="";return function g(p,v){let a=!1,m=(h,x=!1,b=!1)=>{if(h!=="("&&(t&&c in t?c=t[c].toString():i&&c in i&&(c=i[c].toString())),c&&!a&&!v){let u=d.analyzeUnitValue(c,o.calc.unit);u&&(c=u.value+u.unit)}l+=c+(x&&e[s-1]!==" "?" ":"")+h+(b&&e[s+1]!==" "?" ":""),c="",a=!1};for(;s<e.length;s++){let h=e[s];if(h==="("){let x=c,b=a,u=l.length;if(m(h),s++,g(x,b||v),x!=="calc"){let n=o[x];if(n){let r=l.slice(u+2,l.length-1);l=l.slice(0,u-x.length+1)+(n.name??x)+"("+(n.transform?.(r)??r)+")"}}}else if(h===")"){m(h);break}else if(h===",")m(h,!1,!0);else if(h===" ")m(h);else{let x=e[s-1];switch(h){case"+":!c&&x!==")"?c+=h:m(h,!0,!0);break;case"-":p==="var"||!c&&x!==")"?c+=h:m(h,!0,!0);break;case"*":m(h,!0,!0);break;case"/":m(h,!0,!0),a=!0;break;default:c+=h;break}}}s>=e.length-1&&m("")}("",!1),l}},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:""},repeat:{unit:""}},Te=st;var Oe=16;var at="",Me=at;var Be=!1;var je=!1;var lt="class",Ee=lt;var ue={viewports:ye,colors:Re,rootSize:Oe,scope:Me,selectors:we,semantics:Se,rules:$e,override:Be,important:je,functions:Te,animations:ke,themeDriver:Ee};var De=[",",".","#","[","!","*",">","+","~",":","@"];function Ne(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var be="_CNO_",ie=class e{constructor(t=ue){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ue,t),this.cache(),e.instances.push(this)}static root;static config=ue;static instances=[];static refresh=t=>{for(let i of this.instances)i.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;observer;colorByThemeByColorName;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.viewports={},this.mediaQueries={},this.matches={},this.keyframesMap={},this.animations={};let{semantics:t,classes:i,selectors:o,colors:d,values:s,viewports:l,mediaQueries:c,rules:g,animations:p}=this.config;function v(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(n,r,f="",R={}){let w=j=>j?(f?f+"-":"")+j:f,O=Object.entries(n),S=[],z=[];for(let j of O){let A=j[1];(typeof A=="object"&&!Array.isArray(A)?S:z).push(j)}for(let[j,A]of S)a(A,r,w(j),R);if(r&&f)z.length&&(R[f]=z.reduce((j,[A,K])=>(j[A]=K,j),{}));else for(let[j,A]of z)R[w(j)]=A;return R}function m(n){for(let[r,f]of Object.entries(n))/^[0-9]+x$/.test(r)&&typeof f=="number"&&(n["-"+r]=f*-1);return n}if(t)for(let[n,r]of Object.entries(a(t,!0))){let f={};for(let R of Object.keys(r))f[Ne(R)]=r[R];this.semantics.push([new RegExp("^"+v(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,f]])}if(o)for(let[n,r]of Object.entries(a(o,!1))){let f=new RegExp(v(n)+"(?![a-z-])");for(let R of Array.isArray(r)?r:[r]){let w=R.match(/^::-[a-z]+-/m)?.[0]??"",O=this.selectors[w];O||(O=this.selectors[w]=[]);let S=O.find(([z])=>z===f);S||(S=[f,[]],O.push(S)),S[1].push(R)}}if(s&&(this.globalValues=m(a(s,!1))),l&&(this.viewports=a(l,!1)),c&&(this.mediaQueries=a(c,!1)),p)for(let n in p){let r=this.animations[n]={},f=p[n];for(let R in f){let w=r[R]={},O=f[R];for(let S in O)w[Ne(S)]=O[S]}}let h=i?a(i,!1):{},x=Object.keys(h),b=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let r=this.classes[n]=[],f=h[n];if(!f)return;let R=f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of R){let O=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let z=this.classesBy[S];z.includes(n)||z.push(n)}else this.classesBy[S]=[n];r.includes(S)||r.push(S)};if(x.includes(w)){b(w);for(let S of this.classes[w])O(S)}else O(w)}};for(let n of x)b(n);this.colorNames=Object.keys(d);let u=Object.entries(this.colorByThemeByColorName).reduce((n,[r,f])=>(n[r]=()=>{let R=(S,z)=>z?S.slice(0,7)+Math.round(255*+z).toString(16):S,w={};for(let S in f){let z=f[S].split(" ");for(let j of z){let A=j.lastIndexOf("@"),K=A!==-1?j.slice(0,A):j,ne=A!==-1?j.slice(A+1):"",Z=S.slice(1)||ne;if(j.startsWith("#"))w[Z]=K;else if(j.startsWith(be)){let[F,oe]=K.slice(be.length).split("/");if(Object.prototype.hasOwnProperty.call(u,F)){let se=u[F];delete u[F],se()}let Q=Object.prototype.hasOwnProperty.call(this.colorThemesMap,F)&&this.colorThemesMap[F];if(Q)for(let se in Q){let te=Q[se];w[se]=R(te,oe)}else console.error(`"${r}${S}: ${j}" is an invalid ".colors" config`)}else{let[F,oe]=K.split("@"),[Q,se]=F.split("/");if(Object.prototype.hasOwnProperty.call(u,Q)){let ve=u[Q];delete u[Q],ve()}let te=Object.prototype.hasOwnProperty.call(this.colorThemesMap,Q)&&this.colorThemesMap[Q][(S?ne:oe)||""];te?w[Z]=R(te,se):console.error(`"${r}${S}: ${j}" is an invalid ".colors" config`)}}}let O=Object.keys(w);if(O.length){this.colorThemesMap[r]=w;for(let S of O)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete u[r]},n),{});for(let n of Object.keys(u))u[n]?.();if(g)for(let n in g){let r=g[n],{native:f,values:R,colored:w}=r,O=r.match;if(r.id=n,r.native=f===!0?n.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,R&&(this.values[n]=m(a(R,!1))),O){let S=Object.keys(this.values[n]??{});O.includes("$values")&&(O=S.length?O.replace(/\$values/,S.join("|")):O.replace(/(?:\|)?\$values/,"")),w&&O.includes("$colors")&&(O=this.colorNames.length?O.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):O.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(O)}}}observe(t,i={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let o=t===document;o&&(e.root=this),this.host=o?document.documentElement:this.root.host;let d=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let c of s){let{ownerNode:g}=c;if(g&&g.id==="master"){this.style=g;break}}if(this.style)for(let c=0;c<this.style.sheet.cssRules.length;c++){let g=this.style.sheet.cssRules[c];if(g.constructor.name==="CSSKeyframesRule")continue;let p=a=>{if(a.selectorText){let h=a.selectorText.split(", ")[0].split(" ");for(let x=0;x<h.length;x++){let b=h[x];if(b[0]==="."){let u=b.slice(1),n="";for(let r=0;r<u.length;r++){let f=u[r],R=u[r+1];if(f==="\\"){if(r++,R!=="\\"){n+=R;continue}}else if(De.includes(f))break;n+=f}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.classes,n)){let r=this.create(n)[0];if(r)return r}}}}else if(a.cssRules)for(let m=0;m<a.cssRules.length;m++){let h=p(a.cssRules[m]);if(h)return h}},v=p(g);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let a=0;a<v.natives.length;a++)v.natives[a].cssRule=this.style.sheet.cssRules[c+a];c+=v.natives.length-1,this.handleRuleWithAnimationNames(v),v.config.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",d.append(this.style);let l=c=>{c.forEach(g=>{Object.prototype.hasOwnProperty.call(this.countBy,g)?this.countBy[g]++:(this.countBy[g]=1,this.insert(g))})};l(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(c=>l(c.classList)),this.observer=new MutationObserver(c=>{let g={},p=[],v=[],a=[],m=(u,n)=>{n?u.classList.forEach(x):u.classList.forEach(h);let r=u.children;for(let f=0;f<r.length;f++){let R=r[f];R.classList&&(v.push(R),m(R,n))}},h=u=>{Object.prototype.hasOwnProperty.call(g,u)?g[u]++:g[u]=1},x=u=>{Object.prototype.hasOwnProperty.call(g,u)?g[u]--:Object.prototype.hasOwnProperty.call(this.countBy,u)&&(g[u]=-1)},b=(u,n)=>{for(let r=0;r<u.length;r++){let f=u[r];f.classList&&!v.includes(f)&&!a.includes(f)&&(f.isConnected!==n?(v.push(f),m(f,n)):a.push(f))}};for(let u=0;u<c.length;u++){let n=c[u],{addedNodes:r,removedNodes:f,type:R,target:w}=n;if(R==="attributes"){if(p.find(O=>O.target===w))continue;p.push(n)}else b(r,!1),(!w.isConnected||!v.includes(w))&&b(f,!0)}if(!(!p.length&&!Object.keys(g).length)){for(let{oldValue:u,target:n}of p){let r=v.includes(n),f=n.classList,R=u?u.split(" "):[];if(r){if(n.isConnected)continue;for(let w of R)f.contains(w)||x(w)}else if(n.isConnected){f.forEach(w=>{R.includes(w)||h(w)});for(let w of R)f.contains(w)||x(w)}}for(let u in g){let n=g[u],r=(this.countBy[u]||0)+n;r===0?(delete this.countBy[u],this.delete(u)):(Object.prototype.hasOwnProperty.call(this.countBy,u)||this.insert(u),this.countBy[u]=r)}}}),this.observer.observe(t,{...i,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 t=this.style?.sheet;if(t?.cssRules)for(let i=t.cssRules.length-1;i>=0;i--)t.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(t){for(let i in this.config.rules){let o=this.config.rules[i],d=this.matches[i],{native:s}=o;if(d&&d.test(t))return{origin:"match",config:o};if(s&&t.startsWith(s+":"))return{origin:"match",config:o}}for(let i of this.semantics)if(t.match(i[0]))return{origin:"semantics",value:i[1]}}create(t){let i=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let d=this.match(o);if(d)return new ce(o,d,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(o=>i(o)):[i(t)]).filter(o=>o&&o.text)}refresh(t){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(ue,t),this.cache(),!this.style)return;let i=document.createElement("style");i.id="master",this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let i=this.style?.sheet,o=d=>{let s=this.ruleBy[d];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,d)&&this.classesBy[d].some(l=>Object.prototype.hasOwnProperty.call(this.countBy,l)))){if(i&&s.natives.length){let l=s.natives[0];for(let c=0;c<i.cssRules.length;c++)if(i.cssRules[c]===l.cssRule){for(let p=0;p<s.natives.length;p++)i.deleteRule(c);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[d],s.animationNames){let l=this.rules[0];for(let c of s.animationNames){let g=this.keyframesMap[c];if(!--g.count){let p=l.natives.indexOf(g.native);this.style.sheet.deleteRule(p),l.natives.splice(p,1),delete this.keyframesMap[c]}}l.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,d)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let d of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,d)||o(d);delete this.ruleBy[t]}else o(t)}insert(t){let i=this.create(t);return i.length?(this.insertRules(i),!0):!1}insertRules(t){for(let i of t){if(this.ruleBy[i.className])continue;let o,d=Object.keys(this.keyframesMap).length,s=this.rules.length-1,{media:l,order:c,priority:g,hasWhere:p,className:v}=i,a=(x,b,u)=>{let n=x;for(;n<=s;n++){let r=this.rules[n];if(b?.(r))return u?-1:n-1;if(u?.(r))return n}return u?-1:n-1},m,h;if(l){let x=this.rules.findIndex(b=>b.media);if(x===-1)o=s+1;else{let{"max-width":b,"min-width":u}=l.features;if(b||u){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)o=s+1;else if(b&&u){if(g===-1?(m=a(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),h=a(n,r=>r.priority!==-1)):(m=a(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=s),m!==-1){let r=b.value-u.value,f=h,R=m;for(m=void 0;f>=R;f--){let{"max-width":w,"min-width":O}=this.rules[f].media.features,S=w.value-O.value;if(S<r)h=f-1;else if(S===r)m=f;else break}}if(m!==-1){let r=b.value-u.value;for(let f=h;f>=m;f--){let{"max-width":R,"min-width":w}=this.rules[f].media.features,O=R.value-w.value;if(O<r)h=f-1;else if(O>r){m=f+1;break}}}}else if(u){if(g===-1?(m=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),h=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(m=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let f=this.rules[r].media.features["min-width"].value;if(f>u.value)h=r-1;else if(f<u.value){m=r+1;break}}}else if(g===-1?(m=a(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),h=a(n,r=>r.media.features["min-width"]||r.priority!==-1)):(m=a(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),h=a(n,r=>r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let f=this.rules[r].media.features["max-width"].value;if(f<b.value)h=r-1;else if(f>b.value){m=r+1;break}}}else g===-1?(m=x,h=a(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(m=a(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),h=a(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let x=d?1:0;g===-1?(m=x,h=a(x,b=>b.media||b.priority!==-1)):(m=a(x,b=>b.media,b=>b.priority!==-1),h=a(x,b=>b.media))}if(o===void 0)if(m===-1)o=h+1;else{if(g===-1)for(let x=m;x<=h;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)&&(p&&!b.hasWhere||b.order>=c)){o=x;break}}else for(let x=m;x<=h;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)){if(p&&!b.hasWhere){o=x;break}if(b.priority<g){o=x;break}else if(b.priority===g){if(b.order>=c){o=x;break}}else o=x+1}}o===void 0&&(o=h+1)}if(this.rules.splice(o,0,i),this.ruleBy[v]=i,this.style){let x=this.style.sheet,b=0,u=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return u(n-1);let f=r.natives[r.natives.length-1].cssRule;for(let R=0;R<x.cssRules.length;R++)if(x.cssRules[R]===f){b=R+1;break}}};u(o-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];x.insertRule(r.text,b),r.cssRule=x.cssRules[b++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}this.handleRuleWithAnimationNames(i),i.config.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let i=s=>{let l=re({},s),c=g=>{for(let p in g){let v=g[p];typeof v=="object"&&!Array.isArray(v)?c(v):p&&(g[p]={"":v})}};if(l.classes?c(l.classes):l.classes={},l.viewports?c(l.viewports):l.viewports={},l.mediaQueries?c(l.mediaQueries):l.mediaQueries={},l.selectors?c(l.selectors):l.selectors={},l.values?c(l.values):l.values={},l.colors){let g=(p,v)=>{let a=(b,u,n)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,b)||(this.colorByThemeByColorName[b]={});let r=this.colorByThemeByColorName[b],f=r[""]?.includes(be),R=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(O,S,z,j,A)=>{let K="#"+pe(+S,+z,+j);return A&&(K+=Math.round(255*+A).toString(16)),K});for(let[w,O]of u)if(O){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,z;for(;(z=S.exec(O))!==null;){let j=z[0].trimStart(),A=j.lastIndexOf("@"),K=A!==-1?j.slice(0,A):j,ne=A!==-1?j.slice(A):"",Z=w||ne,F=n&&z[2]&&!z[2].startsWith("#")&&!ne,oe=z[1]?R(K):w?z[0]:K;if(f||F){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let Q in r)Q&&(r[""]+=" "+r[Q],delete r[Q]);r[""]+=(r[""]?" ":"")+(F?be:"")+oe+Z}else r[Z]=oe;if(w)break}}else if(n){delete this.colorByThemeByColorName[b];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[b]},m=Object.entries(p),h=m.filter(([b])=>b===""||b.startsWith("@"));h.length&&a(v,h,!1);let x=m.filter(([b])=>b!==""&&!b.startsWith("@"));for(let[b,u]of x){let n=(v?v+"-":"")+b;typeof u=="string"?a(n,[["",u]],!0):g(u,n)}};g(l.colors,"")}return l},o=[];for(let s of t)(function l(c){if(c.extends?.length)for(let g of c.extends)l("config"in g?g.config:g);o.push(i(c))})(s);let d=o[0];for(let s=1;s<o.length;s++){let l=o[s];d=re(d,l),Object.prototype.hasOwnProperty.call(l,"animations")&&Object.assign(d.animations,l.animations)}return d}handleRuleWithAnimationNames(t){if(t.animationNames){let i=this.style?.sheet;for(let o of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,o))this.keyframesMap[o].count++;else{let d={text:`@keyframes ${o}{`+Object.entries(this.animations[o]).map(([l,c])=>`${l}{${Object.entries(c).map(([g,p])=>g+":"+p).join(";")}}`).join("")+"}",theme:""},s;if(Object.keys(this.keyframesMap).length?(s=this.rules[0]).natives.push(d):this.rules.splice(0,0,s={natives:[d],get text(){return this.natives.map(l=>l.text).join("")}}),i){let l;for(let c=0;c<i.cssRules.length;c++){let g=i.cssRules[c];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===o){l=g;break}}if(l)d.cssRule=l;else{let c=s.natives.length-1;i.insertRule(d.text,c),d.cssRule=i.cssRules[c]}}this.keyframesMap[o]={native:d,count:1}}}}};typeof window<"u"&&(window.MasterCSS=ie);var Fe=`/** @type {import('@master/css').Config} */
|
|
1
|
+
var ye=Object.defineProperty;var Xe=Object.getOwnPropertyDescriptor;var Qe=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var qe=(e,t)=>{for(var i in t)ye(e,i,{get:t[i],enumerable:!0})},Ze=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Qe(t))!Ue.call(e,u)&&u!==i&&ye(e,u,{get:()=>t[u],enumerable:!(o=Xe(t,u))||o.enumerable});return e};var Ke=e=>Ze(ye({},"__esModule",{value:!0}),e);var ut={};qe(ut,{CONFIG_ESM_TEXT:()=>He,CONFIG_TEXT:()=>_e,CONFIG_TS_TEXT:()=>Ye,MasterCSS:()=>re,Rule:()=>ce,animations:()=>$e,colors:()=>we,config:()=>ue,default:()=>re,extend:()=>te,extractClassesFromHTML:()=>he,fillColorScale:()=>D,functions:()=>Oe,generateFromClasses:()=>ge,generateFromHTML:()=>fe,important:()=>Ee,initRuntime:()=>We,override:()=>je,renderHTML:()=>Ae,rootSize:()=>Me,rules:()=>Te,scope:()=>Be,selectors:()=>Se,semantics:()=>ke,themeDriver:()=>Ne,viewports:()=>Re});module.exports=Ke(ut);function Le(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Ve(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function De(e){let t=[];return e.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?t[o]=De(i):Le(i)?t[o]=Ve(i):t[o]=te({},i):t[o]=i}),t}function Ie(e,t){return t==="__proto__"?void 0:e[t]}function te(...e){let t={},i,o;return e.forEach(function(u){typeof u!="object"||u===null||Array.isArray(u)||Object.keys(u).forEach(function(s){if(o=Ie(t,s),i=Ie(u,s),i!==t)if(typeof i!="object"||i===null){t[s]=i;return}else if(Array.isArray(i)){t[s]=De(i);return}else if(Le(i)){t[s]=Ve(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=te({},i);return}else{t[s]=te(o,i);return}})}),t}var le={"(":")","'":"'",'"':'"',"{":"}"};function de(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),i=t.length,o=-1,u="",s,a=t.charCodeAt(0);if(i==1&&a==45)return"\\"+t;for(;++o<i;){if(s=t.charCodeAt(o),s==0){u+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&a==45){u+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){u+=t.charAt(o);continue}u+="\\"+t.charAt(o)}return u}function pe(e,t){let i=t.endsWith("%")?parseFloat(t)/100:+t;return i=isNaN(i)?1:Math.min(Math.max(i,0),1),e+Math.round(i*255).toString(16).toUpperCase().padStart(2,"0")}var Ge={unit:"",order:0,separators:[","]},Je=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ce=class{constructor(t,i={},o){this.className=t;this.meta=i;this.css=o;this.config=te(Ge,i.config);let{unit:u,order:s,colored:a,native:c,analyze:g,transform:p,declare:v,create:l}=this.config,{scope:m,important:h,functions:x,themeDriver:b}=o.config,{themeNames:f,colorNames:n,colorThemesMap:r,selectors:d,viewports:R,mediaQueries:w,classesBy:O,globalValues:S,animations:L}=o,j=O[t];l&&l.call(this,t);let A,q,ie,Z,F;if(i.origin==="semantics"){let[N,E]=i.value;Z=t.slice(N.length),A=E}else{let N;if(g)[N,ie]=g.call(this,t);else{let _=t.indexOf(":");this.prefix=t.slice(0,_+1),N=t.slice(_+1)}F=[];let E=this,z=this.values,Y=[","];this.config.separators.length&&Y.push(...this.config.separators);let $="",B=0;(function _(W,C,k,y=void 0,T=[],I=[],P){let M=y===void 0,Q,K=V=>V==="'"||V==='"',se=()=>Q=$.length,G=()=>{if($){let V=$,H=M?V:$.slice(Q);if($="",ee="",z&&H in z&&!T.includes(H)){let U=B;B=0,_(z[H].toString(),C,void 0,y,[...T,H],I,P),B=U,M||($=$.slice(0,Q)+$)}else if(S&&H in S&&!I.includes(H)){let U=B;B=0,_(S[H].toString(),C,void 0,y,T,[...I,H],P),B=U,M||($=$.slice(0,Q)+$)}else if(M){let U=!P&&E.analyzeUnitValue(H,C);F.push({value:U?.value??H,unit:U?.unit})}else{let U=!P&&E.analyzeUnitValue(H,C);$=U?V.slice(0,Q)+U.value+U.unit:V}se()}},ae=K(k);se();let ee="";for(;B<W.length;B++){let V=W[B];if(V===k){if(ae){$+=V;let H=0;for(let U=$.length-2;$[U]==="\\";U--)H++;if(H%2)continue}else G(),$+=V;return}else if(!ae&&V in le){let H=V==="("&&ee&&x?.[ee];H?.name&&($=$.slice(0,$.length-ee.length)+H.name,ee=H.name),$+=V,B++;let U=le[V];_(W,H?.unit??C,U,ee||y||"",T,I,P||!!H?.transform),H?.transform&&($=$.slice(0,Q+ee.length+1)+H.transform.call(E,$.slice(Q+ee.length+1,-1))+$.slice(-1)),M&&(K(U)?(F.push($),$=""):G()),ee=""}else if((V==="|"||V===" ")&&k!=="}"&&(!ae||y==="path"))G(),M||($+=" ",Q++);else{if(!ae){if(V==="."){if(isNaN(+W[B+1]))break;W[B-1]==="-"&&($+="0")}else if(Y.includes(V)){G(),M?F.push(V):($+=V,Q++);continue}else if(M&&(V==="#"&&($||F.length&&W[B-1]!=="|"&&F[B-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(V)))break;ee+=V}$+=V}}y===void 0&&G()})(N,u),Z=N.slice(B)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Z[0]==="!"&&(this.important=!0,Z=Z.slice(1));let ne=(N,E)=>{let z=(C,k,y,T)=>{for(let[I,P]of k)if(I.test(C)){for(let M of P)z(C.replace(I,M),k,y,!0);return}T&&y.push(C)},Y=C=>{let k=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((P,M)=>M%3?P:P.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),y=[],T="",I=0;for(let P=0;P<k.length;P++){let M=k[P];if(M==="\\"){T+=M+k[++P];continue}!I&&M===","?(y.push(T),T=""):(T+=M,I&&M===")"?I--:M==="("&&I++)}return T&&y.push(T),y},$=[];""in d?z(N,d[""],$,!0):$.push(N);let B={};for(let[C,k]of Object.entries(d)){if(!C)continue;let y=[];for(let T of $)z(T,k,y,!1);y.length&&(B[C]=y)}let _=(C,k)=>{let y=k.reduce((T,I)=>(T.push(...Y(I)),T),[]);C in E?E[C].push(...y):E[C]=y},W=Object.keys(B);if(W.length)for(let C of W)_(C,B[C]);else _("",$)};ie?(this.vendorPrefixSelectors={},ne(ie,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let X=Z.split("@"),oe=X[0];if(oe){this.vendorSuffixSelectors={},ne(oe,this.vendorSuffixSelectors);for(let N of Object.values(this.vendorSuffixSelectors))for(let E of N){this.hasWhere!==!1&&(this.hasWhere=E.includes(":where("));let z=[":disabled",":active",":focus",":hover"];for(let Y=0;Y<z.length;Y++)if(E.includes(z[Y])){(this.priority===-1||this.priority>Y)&&(this.priority=Y);break}}}else this.vendorSuffixSelectors={"":[""]};let J={},xe=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),ze=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(xe)J[""]=ze?[""]:Object.keys(this.vendorSuffixSelectors);else if(ze)for(let N in this.vendorPrefixSelectors)J[N]=[""];else for(let N in this.vendorPrefixSelectors){let E=J[N]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,N))E.push(N);else for(let z in this.vendorSuffixSelectors)E.push(z)}for(let N=1;N<X.length;N++){let E=X[N];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let z,Y,$=Je.exec(E);if($)z=$[1],Y=E.slice(z.length);else{this.media={token:E,features:{}};let B=[],_=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")B.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")B.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else if(w&&C in w)B.push(w[C]);else{let k={token:C},y="",T="",I=0;C.startsWith("<=")?(T="<=",y="max-width"):C.startsWith(">=")||R[C]?(T=">=",y="min-width"):C.startsWith(">")?(T=">",y="min-width",I=.02):C.startsWith("<")&&(T="<",y="max-width",I=-.02);let P=T?C.replace(T,""):C,M=R[P];switch(y){case"max-width":case"min-width":M?Object.assign(k,this.analyzeUnitValue(M.toString(),"px")):Object.assign(k,this.analyzeUnitValue(P,"px")),k.unit==="px"&&(k.value+=I),this.media.features[y]=k,B.push("("+y+":"+(k.value+k.unit)+")");break}}},W=E.includes("&");if(W){let C=E.split("&");for(let k of C)_(k)}else _(E);if(this.media.type&&(Y=this.media.type),B.length&&(Y=B.join(" and ")),Y)z="media";else if(!W){this.theme=E;continue}}Y&&(this.at[z]=(z in this.at?this.at[z]+" and ":"")+Y.replace(/\|/g," "))}}let Ce=(N,E)=>{let z,Y=(_,W,C,k)=>{let y="";this.direction&&(y+="[dir="+this.direction+"] ");let T=C.map(M=>M+y),I=(M,Q)=>T.map(K=>(M&&b!=="media"?b==="host"?`:host(.${M}) `:`.${M} `:"")+(m?m+" ":"")+K).reduce((K,se)=>(K.push(k.reduce((G,ae)=>(G.push(se+"."+de(Q)+ae),G),[]).join(",")),K),[]).join(","),P=I(W,t)+(j?j.reduce((M,Q)=>M+","+I(this.theme??(a||q?W:""),Q),""):"")+"{"+_+"}";for(let M of Object.keys(this.at).sort((Q,K)=>K==="supports"?-1:1))P="@"+M+(M.includes(" ")?"":" ")+this.at[M]+"{"+P+"}";return W&&b==="media"&&(P=`@media(prefers-color-scheme:${W}){`+P+"}"),P},$=[];if(F){let _=[this.theme??N,""],W,C=!1;for(let k of F)if(typeof k=="string")$.push(k);else{let y=k.value;if(k.unit)y+=k.unit;else if(a&&r&&n){let T=!1;y=y.replace(new RegExp(`(^|,| |\\()((?:${n.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(I,P,M,Q)=>{let K=r[M];if(K){let se,G;for(let ae of _)if(se=K[ae]){G=ae;break}if(se)return T=!E||G===N,W||(W=T),P+(Q?pe(se,Q):se);C=!0}return I})}$.push(y)}if(E&&(C||(W===void 0?N:!W)))return;if(z=$.reduce((k,y,T)=>k+y+(y===","||F[T+1]===","||T===F.length-1?"":" "),""),p&&(z=p.call(this,z,this.css.config)),a&&z==="current"&&(z="currentColor"),v){let k,y;if(F.length===1){let T=F[0];typeof T=="object"&&(k=T.value,y=T.unit)}A=v.call(this,y?k:z,y||"")}else A={[c]:z}}let B={};for(let _ in A){let W=(y,T)=>{if(L&&(T.startsWith("animation")||T.startsWith("animation-name"))){let P=T.split(":")[1].split("!important")[0].split(" ").filter(M=>M in this.css.animations&&(!this.animationNames||!this.animationNames.includes(M)));P.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...P))}let I=T+((this.important||h)&&!T.endsWith("!important")?"!important":"");y in B?B[y].push(I):B[y]=[I]},C=_+":",k=A[_];if(typeof k=="object")if(Array.isArray(k))for(let y of k)W(N,C+y.toString());else{q=!0;for(let y in k)W(y,C+k[y])}else W(N,C+k.toString())}for(let _ in J)for(let W of J[_])for(let C in B)this.natives.push({text:Y(B[C].join(";"),C,this.vendorPrefixSelectors[_],this.vendorSuffixSelectors[W]),theme:C})};if(this.theme)Ce(this.theme,!1);else if(a)for(let N of f)Ce(N,!0);else Ce("",!1)}at={};priority=-1;natives=[];animationNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,i){return Number.isNaN(+t)?t:t/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(t,i){let o=i??this.config.unit;if(o){let u="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[a,c]=t.split("/");return{value:+a/+c*100+"%",unit:u}}else{let a=+s[1];return u=s[3]||"",u||((o==="rem"||o==="em")&&(a=a/this.css.config.rootSize),u=o||""),{value:a,unit:u}}}}};var et={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Re=et;function me(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function be(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function D(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let o in e)if(o&&+o>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let o=0,u="0"in e?me(e[0]):[0,0,0],s,a,c=[],g=()=>{let p=s-o,v=a.map((l,m)=>(l-u[m])/p);for(let l of c){let m=l-o,h=u.map((x,b)=>Math.round(x+v[b]*m));e[l]="#"+be.call(this,...h)}};for(let p=1;p<100;p++)p in e?(c.length?(s=p,a=me(e[p]),g(),c.length=0,u=a):u=me(e[p]),o=p):c.push(p);c.length&&(s=100,a="100"in e?me(e[100]):[255,255,255],g())}return t||(e[""]=e[i?"500":"50"]),e}var tt={black:"#000000",white:"#ffffff",slate:D({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:D({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:D({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:D({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:D({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:D({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:D({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:D({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:D({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:D({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:D({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:D({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:D({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:D({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:D({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:D({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:D({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:D({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:D({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:D({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},we=tt;var rt={"::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(",":only":":only-child"},Se=rt;var it={square:{aspectRatio:"1/1"},video:{aspectRatio:"16/9"},rounded:{borderRadius:"1e9em"},round:{borderRadius:"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:{fontStyle:"italic"},oblique:{fontStyle:"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{pointerEvents:"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{maxWidth:"100vw"},"max-vh":{maxHeight:"100vh"},"min-vw":{minWidth:"100vw"},"min-vh":{minHeight:"100vh"},"center-content":{justifyContent:"center",alignItems:"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",borderWidth:"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,marginLeft:"auto",marginRight:"auto"},middle:{top:0,bottom:0,marginTop:"auto",marginBottom:"auto"},"break-spaces":{whiteSpace:"break-spaces"},"break-word":{overflowWrap:"break-word",overflow:"hidden"},"gradient-text":{WebkitTextFillColor:"transparent",WebkitBackgroundClip:"text",backgroundClip:"text"},fit:{width:"fit-content",height:"fit-content"}},ke=it;var nt={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)",animationTimingFunction:"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"}}},$e=nt;var ot={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(p,v)=>{let l=v.indexOf(":");if(l!==-1){p in t||(t[p]={});let m=t[p],h=v.slice(0,l);h in m||(m[h]=v.slice(l+1))}},o=p=>{let v=(l,m)=>{let h=m.slice(de(p.className).length).match(/\{(.*)\}/)[1].split(";");for(let x of h)i(l,x)};if(this.theme){let l=p.natives.find(m=>m.theme===this.theme)??p.natives.find(m=>!m.theme);l&&v(this.theme,l.text)}else for(let l of p.natives)v(l.theme,l.text);if(p.animationNames){this.animationNames||(this.animationNames=[]);for(let l of p.animationNames)this.animationNames.includes(l)||this.animationNames.push(l)}},u=[],s="",a=()=>{s&&(u.push(s.replace(/ /g,"|")),s="")},c=1;(function p(v){for(;c<e.length;c++){let l=e[c];if(!v){if(l===";"){a();continue}if(l==="}")break}if(s+=l,v===l){if(v==="'"||v==='"'){let m=0;for(let h=s.length-2;s[h]==="\\";h--)m++;if(m%2)continue}break}else l in le&&v!=="'"&&v!=='"'&&(c++,p(le[l]))}})(void 0),a();for(let p of u){let v=this.css.create(p);if(Array.isArray(v))if(v.length)for(let l of v)o(l);else i(this.theme??"",p);else o(v)}let g={};for(let p in t)for(let[v,l]of Object.entries(t[p]))v in g?g[v][p]=l:g[v]={[p]:l};return g}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",transform(e){let i=new RegExp(`^((?:${this.css.colorNames.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?:@(.*?))?$`,"m").exec(e);if(i){let[,o,u,s]=i,a=this.css.colorThemesMap[o]?.[s||""];if(a)return u?pe(a,u):a}return e},declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},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(e){switch(e){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(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},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(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},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(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},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:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},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,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},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:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},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(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},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(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},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(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},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(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},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(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},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)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},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(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},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(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},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:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^scroll-p:.",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(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},st=ot,Te=st;var at={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,i=this.css.globalValues,o=this.css.config.functions,u=this,s=0,a="",c="";return function g(p,v){let l=!1,m=(h,x=!1,b=!1)=>{if(h!=="("&&(t&&c in t?c=t[c].toString():i&&c in i&&(c=i[c].toString())),c&&!l&&!v){let f=u.analyzeUnitValue(c,o.calc.unit);f&&(c=f.value+f.unit)}a+=c+(x&&e[s-1]!==" "?" ":"")+h+(b&&e[s+1]!==" "?" ":""),c="",l=!1};for(;s<e.length;s++){let h=e[s];if(h==="("){let x=c,b=l,f=a.length;if(m(h),s++,g(x,b||v),x!=="calc"){let n=o[x];if(n){let r=a.slice(f+2,a.length-1);a=a.slice(0,f-x.length+1)+(n.name??x)+"("+(n.transform?.call(u,r)??r)+")"}}}else if(h===")"){m(h);break}else if(h===",")m(h,!1,!0);else if(h===" ")m(h);else{let x=e[s-1];switch(h){case"+":!c&&x!==")"?c+=h:m(h,!0,!0);break;case"-":p==="var"||!c&&x!==")"?c+=h:m(h,!0,!0);break;case"*":m(h,!0,!0);break;case"/":m(h,!0,!0),l=!0;break;default:c+=h;break}}}s>=e.length-1&&m("")}("",!1),a}},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:""},repeat:{unit:""}},Oe=at;var Me=16;var lt="",Be=lt;var je=!1;var Ee=!1;var ct="class",Ne=ct;var ue={viewports:Re,colors:we,rootSize:Me,scope:Be,selectors:Se,semantics:ke,rules:Te,override:je,important:Ee,functions:Oe,animations:$e,themeDriver:Ne};var Fe=[",",".","#","[","!","*",">","+","~",":","@"];function Pe(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var ve="_CNO_",re=class e{constructor(t=ue){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ue,t),this.cache(),e.instances.push(this)}static root;static config=ue;static instances=[];static refresh=t=>{for(let i of this.instances)i.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;observer;colorByThemeByColorName;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.viewports={},this.mediaQueries={},this.matches={},this.keyframesMap={},this.animations={};let{semantics:t,classes:i,selectors:o,colors:u,values:s,viewports:a,mediaQueries:c,rules:g,animations:p}=this.config;function v(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function l(n,r,d="",R={}){let w=j=>j?(d?d+"-":"")+j:d,O=Object.entries(n),S=[],L=[];for(let j of O){let A=j[1];(typeof A=="object"&&!Array.isArray(A)?S:L).push(j)}for(let[j,A]of S)l(A,r,w(j),R);if(r&&d)L.length&&(R[d]=L.reduce((j,[A,q])=>(j[A]=q,j),{}));else for(let[j,A]of L)R[w(j)]=A;return R}function m(n){for(let[r,d]of Object.entries(n))/^[0-9]+x$/.test(r)&&typeof d=="number"&&(n["-"+r]=d*-1);return n}if(t)for(let[n,r]of Object.entries(l(t,!0))){let d={};for(let R of Object.keys(r))d[Pe(R)]=r[R];this.semantics.push([new RegExp("^"+v(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,d]])}if(o)for(let[n,r]of Object.entries(l(o,!1))){let d=new RegExp(v(n)+"(?![a-z-])");for(let R of Array.isArray(r)?r:[r]){let w=R.match(/^::-[a-z]+-/m)?.[0]??"",O=this.selectors[w];O||(O=this.selectors[w]=[]);let S=O.find(([L])=>L===d);S||(S=[d,[]],O.push(S)),S[1].push(R)}}if(s&&(this.globalValues=m(l(s,!1))),a&&(this.viewports=l(a,!1)),c&&(this.mediaQueries=l(c,!1)),p)for(let n in p){let r=this.animations[n]={},d=p[n];for(let R in d){let w=r[R]={},O=d[R];for(let S in O)w[Pe(S)]=O[S]}}let h=i?l(i,!1):{},x=Object.keys(h),b=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let r=this.classes[n]=[],d=h[n];if(!d)return;let R=d.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of R){let O=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let L=this.classesBy[S];L.includes(n)||L.push(n)}else this.classesBy[S]=[n];r.includes(S)||r.push(S)};if(x.includes(w)){b(w);for(let S of this.classes[w])O(S)}else O(w)}};for(let n of x)b(n);this.colorNames=Object.keys(u);let f=Object.entries(this.colorByThemeByColorName).reduce((n,[r,d])=>(n[r]=()=>{let R=(S,L)=>L?S.slice(0,7)+Math.round(255*+L).toString(16):S,w={};for(let S in d){let L=d[S].split(" ");for(let j of L){let A=j.lastIndexOf("@"),q=A!==-1?j.slice(0,A):j,ie=A!==-1?j.slice(A+1):"",Z=S.slice(1)||ie;if(j.startsWith("#"))w[Z]=q;else if(j.startsWith(ve)){let[F,ne]=q.slice(ve.length).split("/");if(Object.prototype.hasOwnProperty.call(f,F)){let oe=f[F];delete f[F],oe()}let X=Object.prototype.hasOwnProperty.call(this.colorThemesMap,F)&&this.colorThemesMap[F];if(X)for(let oe in X){let J=X[oe];w[oe]=R(J,ne)}else console.error(`"${r}${S}: ${j}" is an invalid ".colors" config`)}else{let[F,ne]=q.split("@"),[X,oe]=F.split("/");if(Object.prototype.hasOwnProperty.call(f,X)){let xe=f[X];delete f[X],xe()}let J=Object.prototype.hasOwnProperty.call(this.colorThemesMap,X)&&this.colorThemesMap[X][(S?ie:ne)||""];J?w[Z]=R(J,oe):console.error(`"${r}${S}: ${j}" is an invalid ".colors" config`)}}}let O=Object.keys(w);if(O.length){this.colorThemesMap[r]=w;for(let S of O)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete f[r]},n),{});for(let n of Object.keys(f))f[n]?.();if(g)for(let n in g){let r=g[n],{native:d,values:R,colored:w}=r,O=r.match;if(r.id=n,r.native=d===!0?n.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,R&&(this.values[n]=m(l(R,!1))),O){let S=Object.keys(this.values[n]??{});O.includes("$values")&&(O=S.length?O.replace(/\$values/,S.join("|")):O.replace(/(?:\|)?\$values/,"")),w&&O.includes("$colors")&&(O=this.colorNames.length?O.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):O.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(O)}}}observe(t,i={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let o=t===document;o&&(e.root=this),this.host=o?document.documentElement:this.root.host;let u=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let c of s){let{ownerNode:g}=c;if(g&&g.id==="master"){this.style=g;break}}if(this.style)for(let c=0;c<this.style.sheet.cssRules.length;c++){let g=this.style.sheet.cssRules[c];if(g.constructor.name==="CSSKeyframesRule")continue;let p=l=>{if(l.selectorText){let h=l.selectorText.split(", ")[0].split(" ");for(let x=0;x<h.length;x++){let b=h[x];if(b[0]==="."){let f=b.slice(1),n="";for(let r=0;r<f.length;r++){let d=f[r],R=f[r+1];if(d==="\\"){if(r++,R!=="\\"){n+=R;continue}}else if(Fe.includes(d))break;n+=d}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.classes,n)){let r=this.create(n)[0];if(r)return r}}}}else if(l.cssRules)for(let m=0;m<l.cssRules.length;m++){let h=p(l.cssRules[m]);if(h)return h}},v=p(g);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let l=0;l<v.natives.length;l++)v.natives[l].cssRule=this.style.sheet.cssRules[c+l];c+=v.natives.length-1,this.handleRuleWithAnimationNames(v),v.config.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",u.append(this.style);let a=c=>{c.forEach(g=>{Object.prototype.hasOwnProperty.call(this.countBy,g)?this.countBy[g]++:(this.countBy[g]=1,this.insert(g))})};a(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(c=>a(c.classList)),this.observer=new MutationObserver(c=>{let g={},p=[],v=[],l=[],m=(f,n)=>{n?f.classList.forEach(x):f.classList.forEach(h);let r=f.children;for(let d=0;d<r.length;d++){let R=r[d];R.classList&&(v.push(R),m(R,n))}},h=f=>{Object.prototype.hasOwnProperty.call(g,f)?g[f]++:g[f]=1},x=f=>{Object.prototype.hasOwnProperty.call(g,f)?g[f]--:Object.prototype.hasOwnProperty.call(this.countBy,f)&&(g[f]=-1)},b=(f,n)=>{for(let r=0;r<f.length;r++){let d=f[r];d.classList&&!v.includes(d)&&!l.includes(d)&&(d.isConnected!==n?(v.push(d),m(d,n)):l.push(d))}};for(let f=0;f<c.length;f++){let n=c[f],{addedNodes:r,removedNodes:d,type:R,target:w}=n;if(R==="attributes"){if(p.find(O=>O.target===w))continue;p.push(n)}else b(r,!1),(!w.isConnected||!v.includes(w))&&b(d,!0)}if(!(!p.length&&!Object.keys(g).length)){for(let{oldValue:f,target:n}of p){let r=v.includes(n),d=n.classList,R=f?f.split(" "):[];if(r){if(n.isConnected)continue;for(let w of R)d.contains(w)||x(w)}else if(n.isConnected){d.forEach(w=>{R.includes(w)||h(w)});for(let w of R)d.contains(w)||x(w)}}for(let f in g){let n=g[f],r=(this.countBy[f]||0)+n;r===0?(delete this.countBy[f],this.delete(f)):(Object.prototype.hasOwnProperty.call(this.countBy,f)||this.insert(f),this.countBy[f]=r)}}}),this.observer.observe(t,{...i,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 t=this.style?.sheet;if(t?.cssRules)for(let i=t.cssRules.length-1;i>=0;i--)t.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(t){for(let i in this.config.rules){let o=this.config.rules[i],u=this.matches[i],{native:s}=o;if(u&&u.test(t))return{origin:"match",config:o};if(s&&t.startsWith(s+":"))return{origin:"match",config:o}}for(let i of this.semantics)if(t.match(i[0]))return{origin:"semantics",value:i[1]}}create(t){let i=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let u=this.match(o);if(u)return new ce(o,u,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(o=>i(o)):[i(t)]).filter(o=>o&&o.text)}refresh(t){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(ue,t),this.cache(),!this.style)return;let i=document.createElement("style");i.id="master",this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let i=this.style?.sheet,o=u=>{let s=this.ruleBy[u];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,u)&&this.classesBy[u].some(a=>Object.prototype.hasOwnProperty.call(this.countBy,a)))){if(i&&s.natives.length){let a=s.natives[0];for(let c=0;c<i.cssRules.length;c++)if(i.cssRules[c]===a.cssRule){for(let p=0;p<s.natives.length;p++)i.deleteRule(c);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[u],s.animationNames){let a=this.rules[0];for(let c of s.animationNames){let g=this.keyframesMap[c];if(!--g.count){let p=a.natives.indexOf(g.native);this.style.sheet.deleteRule(p),a.natives.splice(p,1),delete this.keyframesMap[c]}}a.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,u)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let u of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,u)||o(u);delete this.ruleBy[t]}else o(t)}insert(t){let i=this.create(t);return i.length?(this.insertRules(i),!0):!1}insertRules(t){for(let i of t){if(this.ruleBy[i.className])continue;let o,u=Object.keys(this.keyframesMap).length,s=this.rules.length-1,{media:a,order:c,priority:g,hasWhere:p,className:v}=i,l=(x,b,f)=>{let n=x;for(;n<=s;n++){let r=this.rules[n];if(b?.(r))return f?-1:n-1;if(f?.(r))return n}return f?-1:n-1},m,h;if(a){let x=this.rules.findIndex(b=>b.media);if(x===-1)o=s+1;else{let{"max-width":b,"min-width":f}=a.features;if(b||f){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)o=s+1;else if(b&&f){if(g===-1?(m=l(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),h=l(n,r=>r.priority!==-1)):(m=l(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=s),m!==-1){let r=b.value-f.value,d=h,R=m;for(m=void 0;d>=R;d--){let{"max-width":w,"min-width":O}=this.rules[d].media.features,S=w.value-O.value;if(S<r)h=d-1;else if(S===r)m=d;else break}}if(m!==-1){let r=b.value-f.value;for(let d=h;d>=m;d--){let{"max-width":R,"min-width":w}=this.rules[d].media.features,O=R.value-w.value;if(O<r)h=d-1;else if(O>r){m=d+1;break}}}}else if(f){if(g===-1?(m=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),h=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(m=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let d=this.rules[r].media.features["min-width"].value;if(d>f.value)h=r-1;else if(d<f.value){m=r+1;break}}}else if(g===-1?(m=l(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),h=l(n,r=>r.media.features["min-width"]||r.priority!==-1)):(m=l(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),h=l(n,r=>r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let d=this.rules[r].media.features["max-width"].value;if(d<b.value)h=r-1;else if(d>b.value){m=r+1;break}}}else g===-1?(m=x,h=l(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(m=l(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),h=l(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let x=u?1:0;g===-1?(m=x,h=l(x,b=>b.media||b.priority!==-1)):(m=l(x,b=>b.media,b=>b.priority!==-1),h=l(x,b=>b.media))}if(o===void 0)if(m===-1)o=h+1;else{if(g===-1)for(let x=m;x<=h;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)&&(p&&!b.hasWhere||b.order>=c)){o=x;break}}else for(let x=m;x<=h;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)){if(p&&!b.hasWhere){o=x;break}if(b.priority<g){o=x;break}else if(b.priority===g){if(b.order>=c){o=x;break}}else o=x+1}}o===void 0&&(o=h+1)}if(this.rules.splice(o,0,i),this.ruleBy[v]=i,this.style){let x=this.style.sheet,b=0,f=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return f(n-1);let d=r.natives[r.natives.length-1].cssRule;for(let R=0;R<x.cssRules.length;R++)if(x.cssRules[R]===d){b=R+1;break}}};f(o-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];x.insertRule(r.text,b),r.cssRule=x.cssRules[b++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}this.handleRuleWithAnimationNames(i),i.config.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let i=s=>{let a=te({},s),c=g=>{for(let p in g){let v=g[p];typeof v=="object"&&!Array.isArray(v)?c(v):p&&(g[p]={"":v})}};if(a.classes?c(a.classes):a.classes={},a.viewports?c(a.viewports):a.viewports={},a.mediaQueries?c(a.mediaQueries):a.mediaQueries={},a.selectors?c(a.selectors):a.selectors={},a.values?c(a.values):a.values={},a.colors){let g=(p,v)=>{let l=(b,f,n)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,b)||(this.colorByThemeByColorName[b]={});let r=this.colorByThemeByColorName[b],d=r[""]?.includes(ve),R=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(O,S,L,j,A)=>{let q="#"+be(+S,+L,+j);return A&&(q+=Math.round(255*+A).toString(16)),q});for(let[w,O]of f)if(O){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,L;for(;(L=S.exec(O))!==null;){let j=L[0].trimStart(),A=j.lastIndexOf("@"),q=A!==-1?j.slice(0,A):j,ie=A!==-1?j.slice(A):"",Z=w||ie,F=n&&L[2]&&!L[2].startsWith("#")&&!ie,ne=L[1]?R(q):w?L[0]:q;if(d||F){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let X in r)X&&(r[""]+=" "+r[X],delete r[X]);r[""]+=(r[""]?" ":"")+(F?ve:"")+ne+Z}else r[Z]=ne;if(w)break}}else if(n){delete this.colorByThemeByColorName[b];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[b]},m=Object.entries(p),h=m.filter(([b])=>b===""||b.startsWith("@"));h.length&&l(v,h,!1);let x=m.filter(([b])=>b!==""&&!b.startsWith("@"));for(let[b,f]of x){let n=(v?v+"-":"")+b;typeof f=="string"?l(n,[["",f]],!0):g(f,n)}};g(a.colors,"")}return a},o=[];for(let s of t)(function a(c){if(c.extends?.length)for(let g of c.extends)a("config"in g?g.config:g);o.push(i(c))})(s);let u=o[0];for(let s=1;s<o.length;s++){let a=o[s];u=te(u,a),Object.prototype.hasOwnProperty.call(a,"animations")&&Object.assign(u.animations,a.animations)}return u}handleRuleWithAnimationNames(t){if(t.animationNames){let i=this.style?.sheet;for(let o of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,o))this.keyframesMap[o].count++;else{let u={text:`@keyframes ${o}{`+Object.entries(this.animations[o]).map(([a,c])=>`${a}{${Object.entries(c).map(([g,p])=>g+":"+p).join(";")}}`).join("")+"}",theme:""},s;if(Object.keys(this.keyframesMap).length?(s=this.rules[0]).natives.push(u):this.rules.splice(0,0,s={natives:[u],get text(){return this.natives.map(a=>a.text).join("")}}),i){let a;for(let c=0;c<i.cssRules.length;c++){let g=i.cssRules[c];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===o){a=g;break}}if(a)u.cssRule=a;else{let c=s.natives.length-1;i.insertRule(u.text,c),u.cssRule=i.cssRules[c]}}this.keyframesMap[o]={native:u,count:1}}}}};typeof window<"u"&&(window.MasterCSS=re);var _e=`/** @type {import('@master/css').Config} */
|
|
2
2
|
module.exports = {
|
|
3
3
|
classes: {},
|
|
4
4
|
colors: {},
|
|
@@ -12,7 +12,7 @@ module.exports = {
|
|
|
12
12
|
selectors: {},
|
|
13
13
|
functions: {}
|
|
14
14
|
}
|
|
15
|
-
`;var
|
|
15
|
+
`;var He=`/** @type {import('@master/css').Config} */
|
|
16
16
|
export default {
|
|
17
17
|
classes: {},
|
|
18
18
|
colors: {},
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
selectors: {},
|
|
27
27
|
functions: {}
|
|
28
28
|
}
|
|
29
|
-
`;var
|
|
29
|
+
`;var Ye=`import type { Config } from '@master/css'
|
|
30
30
|
|
|
31
31
|
export default {
|
|
32
32
|
classes: {},
|
|
@@ -41,4 +41,4 @@ export default {
|
|
|
41
41
|
selectors: {},
|
|
42
42
|
functions: {}
|
|
43
43
|
} as Config
|
|
44
|
-
`;function he(e){if(!e)return;let t=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,i={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};return e.split(/\sclass="([^"]*)"/gm).filter((o,
|
|
44
|
+
`;function he(e){if(!e)return;let t=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,i={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};return e.split(/\sclass="([^"]*)"/gm).filter((o,u)=>u%2===1).map(o=>o.split(" ")).flat().map(o=>o.replace(t,(u,s)=>i[s]))}function ge(e,t){if(!e.length)return;let i=new re(t);for(let o of e)i.insert(o);return i.text}function fe(e,t){if(!e)return;let i=he(e);if(i.length)return ge(i,t)}function We(e,t){return new re(e).observe(t)}function Ae(e,t){if(!e)return;let i=!1;if(e=e.replace(/(<style id="master">).*?(<\/style>)/,(u,s,a)=>(i=!0,s+fe(e,t)+a)),i)return e;let o=`<style id="master">${fe(e,t)}</style>`;return e.replace(/<\/head>/,`${o}$&`)}
|
package/dist/index.bundle.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function we(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Se(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function ke(e){let t=[];return e.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?t[o]=ke(i):we(i)?t[o]=Se(i):t[o]=oe({},i):t[o]=i}),t}function Re(e,t){return t==="__proto__"?void 0:e[t]}function oe(...e){let t={},i,o;return e.forEach(function(g){typeof g!="object"||g===null||Array.isArray(g)||Object.keys(g).forEach(function(s){if(o=Re(t,s),i=Re(g,s),i!==t)if(typeof i!="object"||i===null){t[s]=i;return}else if(Array.isArray(i)){t[s]=ke(i);return}else if(we(i)){t[s]=Se(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=oe({},i);return}else{t[s]=oe(o,i);return}})}),t}var le={"(":")","'":"'",'"':'"',"{":"}"};function ce(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),i=t.length,o=-1,g="",s,l=t.charCodeAt(0);if(i==1&&l==45)return"\\"+t;for(;++o<i;){if(s=t.charCodeAt(o),s==0){g+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&l==45){g+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){g+=t.charAt(o);continue}g+="\\"+t.charAt(o)}return g}var De={unit:"",order:0,separators:[","]},Fe=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ue=class{constructor(t,i={},o){this.className=t;this.meta=i;this.css=o;this.config=oe(De,i.config);let{unit:g,order:s,colored:l,native:c,analyze:h,transform:p,declare:v,create:a}=this.config,{scope:d,important:m,functions:x,themeDriver:b}=o.config,{themeNames:u,colorNames:n,colorThemesMap:r,selectors:f,viewports:R,mediaQueries:w,classesBy:O,globalValues:S,animations:z}=o,j=O[t];a&&a.call(this,t);let A,K,re,Z,D;if(i.origin==="semantics"){let[N,E]=i.value;Z=t.slice(N.length),A=E}else{let N;if(h)[N,re]=h.call(this,t);else{let _=t.indexOf(":");this.prefix=t.slice(0,_+1),N=t.slice(_+1)}D=[];let E=this,I=this.values,Y=[","];this.config.separators.length&&Y.push(...this.config.separators);let $="",B=0;(function _(W,C,k,y=void 0,T=[],L=[],P){let M=y===void 0,X,G=V=>V==="'"||V==='"',ae=()=>X=$.length,ee=()=>{if($){let V=$,H=M?V:$.slice(X);if($="",q="",I&&H in I&&!T.includes(H)){let U=B;B=0,_(I[H].toString(),C,void 0,y,[...T,H],L,P),B=U,M||($=$.slice(0,X)+$)}else if(S&&H in S&&!L.includes(H)){let U=B;B=0,_(S[H].toString(),C,void 0,y,T,[...L,H],P),B=U,M||($=$.slice(0,X)+$)}else if(M){let U=!P&&E.analyzeUnitValue(H,C);D.push({value:U?.value??H,unit:U?.unit})}else{let U=!P&&E.analyzeUnitValue(H,C);$=U?V.slice(0,X)+U.value+U.unit:V}ae()}},J=G(k);ae();let q="";for(;B<W.length;B++){let V=W[B];if(V===k){if(J){$+=V;let H=0;for(let U=$.length-2;$[U]==="\\";U--)H++;if(H%2)continue}else ee(),$+=V;return}else if(!J&&V in le){let H=V==="("&&q&&x?.[q];H?.name&&($=$.slice(0,$.length-q.length)+H.name,q=H.name),$+=V,B++;let U=le[V];_(W,H?.unit??C,U,q||y||"",T,L,P||!!H?.transform),H?.transform&&($=$.slice(0,X+q.length+1)+H.transform.call(E,$.slice(X+q.length+1,-1))+$.slice(-1)),M&&(G(U)?(D.push($),$=""):ee()),q=""}else if((V==="|"||V===" ")&&k!=="}"&&(!J||y==="path"))ee(),M||($+=" ",X++);else{if(!J){if(V==="."){if(isNaN(+W[B+1]))break;W[B-1]==="-"&&($+="0")}else if(Y.includes(V)){ee(),M?D.push(V):($+=V,X++);continue}else if(M&&(V==="#"&&($||D.length&&W[B-1]!=="|"&&D[B-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(V)))break;q+=V}$+=V}}y===void 0&&ee()})(N,g),Z=N.slice(B)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Z[0]==="!"&&(this.important=!0,Z=Z.slice(1));let ie=(N,E)=>{let I=(C,k,y,T)=>{for(let[L,P]of k)if(L.test(C)){for(let M of P)I(C.replace(L,M),k,y,!0);return}T&&y.push(C)},Y=C=>{let k=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((P,M)=>M%3?P:P.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),y=[],T="",L=0;for(let P=0;P<k.length;P++){let M=k[P];if(M==="\\"){T+=M+k[++P];continue}!L&&M===","?(y.push(T),T=""):(T+=M,L&&M===")"?L--:M==="("&&L++)}return T&&y.push(T),y},$=[];""in f?I(N,f[""],$,!0):$.push(N);let B={};for(let[C,k]of Object.entries(f)){if(!C)continue;let y=[];for(let T of $)I(T,k,y,!1);y.length&&(B[C]=y)}let _=(C,k)=>{let y=k.reduce((T,L)=>(T.push(...Y(L)),T),[]);C in E?E[C].push(...y):E[C]=y},W=Object.keys(B);if(W.length)for(let C of W)_(C,B[C]);else _("",$)};re?(this.vendorPrefixSelectors={},ie(re,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let Q=Z.split("@"),ne=Q[0];if(ne){this.vendorSuffixSelectors={},ie(ne,this.vendorSuffixSelectors);for(let N of Object.values(this.vendorSuffixSelectors))for(let E of N){this.hasWhere!==!1&&(this.hasWhere=E.includes(":where("));let I=[":disabled",":active",":focus",":hover"];for(let Y=0;Y<I.length;Y++)if(E.includes(I[Y])){(this.priority===-1||this.priority>Y)&&(this.priority=Y);break}}}else this.vendorSuffixSelectors={"":[""]};let te={},ve=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),ye=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(ve)te[""]=ye?[""]:Object.keys(this.vendorSuffixSelectors);else if(ye)for(let N in this.vendorPrefixSelectors)te[N]=[""];else for(let N in this.vendorPrefixSelectors){let E=te[N]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,N))E.push(N);else for(let I in this.vendorSuffixSelectors)E.push(I)}for(let N=1;N<Q.length;N++){let E=Q[N];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let I,Y,$=Fe.exec(E);if($)I=$[1],Y=E.slice(I.length);else{this.media={token:E,features:{}};let B=[],_=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")B.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")B.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else if(w&&C in w)B.push(w[C]);else{let k={token:C},y="",T="",L=0;C.startsWith("<=")?(T="<=",y="max-width"):C.startsWith(">=")||R[C]?(T=">=",y="min-width"):C.startsWith(">")?(T=">",y="min-width",L=.02):C.startsWith("<")&&(T="<",y="max-width",L=-.02);let P=T?C.replace(T,""):C,M=R[P];switch(y){case"max-width":case"min-width":M?Object.assign(k,this.analyzeUnitValue(M.toString(),"px")):Object.assign(k,this.analyzeUnitValue(P,"px")),k.unit==="px"&&(k.value+=L),this.media.features[y]=k,B.push("("+y+":"+(k.value+k.unit)+")");break}}},W=E.includes("&");if(W){let C=E.split("&");for(let k of C)_(k)}else _(E);if(this.media.type&&(Y=this.media.type),B.length&&(Y=B.join(" and ")),Y)I="media";else if(!W){this.theme=E;continue}}Y&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+Y.replace(/\|/g," "))}}let xe=(N,E)=>{let I,Y=(_,W,C,k)=>{let y="";this.direction&&(y+="[dir="+this.direction+"] ");let T=C.map(M=>M+y),L=(M,X)=>T.map(G=>(M&&b!=="media"?b==="host"?`:host(.${M}) `:`.${M} `:"")+(d?d+" ":"")+G).reduce((G,ae)=>(G.push(k.reduce((ee,J)=>(ee.push(ae+"."+ce(X)+J),ee),[]).join(",")),G),[]).join(","),P=L(W,t)+(j?j.reduce((M,X)=>M+","+L(this.theme??(l||K?W:""),X),""):"")+"{"+_+"}";for(let M of Object.keys(this.at).sort((X,G)=>G==="supports"?-1:1))P="@"+M+(M.includes(" ")?"":" ")+this.at[M]+"{"+P+"}";return W&&b==="media"&&(P=`@media(prefers-color-scheme:${W}){`+P+"}"),P},$=[];if(D){let _=[this.theme??N,""],W,C=!1;for(let k of D)if(typeof k=="string")$.push(k);else{let y=k.value;if(k.unit)y+=k.unit;else if(l&&r&&n){let T=!1;y=y.replace(new RegExp(`(^|,| |\\()((?:${n.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(L,P,M,X)=>{let G=r[M];if(G){let ae,ee;for(let J of _)if(ae=G[J]){ee=J;break}if(ae){T=!E||ee===N,W||(W=T);let J=ae;if(X){let q=X.endsWith("%")?parseFloat(X)/100:+X;q=isNaN(q)?1:Math.min(Math.max(q,0),1),J+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return P+J}else C=!0}return L})}$.push(y)}if(E&&(C||(W===void 0?N:!W)))return;if(I=$.reduce((k,y,T)=>k+y+(y===","||D[T+1]===","||T===D.length-1?"":" "),""),p&&(I=p.call(this,I,this.css.config)),l&&I==="current"&&(I="currentColor"),v){let k,y;if(D.length===1){let T=D[0];typeof T=="object"&&(k=T.value,y=T.unit)}A=v.call(this,y?k:I,y||"")}else A={[c]:I}}let B={};for(let _ in A){let W=(y,T)=>{if(z&&(T.startsWith("animation")||T.startsWith("animation-name"))){let P=T.split(":")[1].split("!important")[0].split(" ").filter(M=>M in this.css.animations&&(!this.animationNames||!this.animationNames.includes(M)));P.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...P))}let L=T+((this.important||m)&&!T.endsWith("!important")?"!important":"");y in B?B[y].push(L):B[y]=[L]},C=_+":",k=A[_];if(typeof k=="object")if(Array.isArray(k))for(let y of k)W(N,C+y.toString());else{K=!0;for(let y in k)W(y,C+k[y])}else W(N,C+k.toString())}for(let _ in te)for(let W of te[_])for(let C in B)this.natives.push({text:Y(B[C].join(";"),C,this.vendorPrefixSelectors[_],this.vendorSuffixSelectors[W]),theme:C})};if(this.theme)xe(this.theme,!1);else if(l)for(let N of u)xe(N,!0);else xe("",!1)}at={};priority=-1;natives=[];animationNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,i){return Number.isNaN(+t)?t:t/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(t,i){let o=i??this.config.unit;if(o){let g="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[l,c]=t.split("/");return{value:+l/+c*100+"%",unit:g}}else{let l=+s[1];return g=s[3]||"",g||((o==="rem"||o==="em")&&(l=l/this.css.config.rootSize),g=o||""),{value:l,unit:g}}}}};var _e={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},$e=_e;function fe(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function he(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function F(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let o in e)if(o&&+o>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let o=0,g="0"in e?fe(e[0]):[0,0,0],s,l,c=[],h=()=>{let p=s-o,v=l.map((a,d)=>(a-g[d])/p);for(let a of c){let d=a-o,m=g.map((x,b)=>Math.round(x+v[b]*d));e[a]="#"+he.call(this,...m)}};for(let p=1;p<100;p++)p in e?(c.length?(s=p,l=fe(e[p]),h(),c.length=0,g=l):g=fe(e[p]),o=p):c.push(p);c.length&&(s=100,l="100"in e?fe(e[100]):[255,255,255],h())}return t||(e[""]=e[i?"500":"50"]),e}var He={black:"#000000",white:"#ffffff",slate:F({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:F({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:F({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:F({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:F({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:F({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:F({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:F({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:F({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:F({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:F({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:F({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:F({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:F({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:F({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:F({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:F({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:F({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:F({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:F({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},Te=He;var Ye={"::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(",":only":":only-child"},Oe=Ye;var Xe={square:{aspectRatio:"1/1"},video:{aspectRatio:"16/9"},rounded:{borderRadius:"1e9em"},round:{borderRadius:"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:{fontStyle:"italic"},oblique:{fontStyle:"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{pointerEvents:"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{maxWidth:"100vw"},"max-vh":{maxHeight:"100vh"},"min-vw":{minWidth:"100vw"},"min-vh":{minHeight:"100vh"},"center-content":{justifyContent:"center",alignItems:"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",borderWidth:"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,marginLeft:"auto",marginRight:"auto"},middle:{top:0,bottom:0,marginTop:"auto",marginBottom:"auto"},"break-spaces":{whiteSpace:"break-spaces"},"break-word":{overflowWrap:"break-word",overflow:"hidden"},"gradient-text":{WebkitTextFillColor:"transparent",WebkitBackgroundClip:"text",backgroundClip:"text"},fit:{width:"fit-content",height:"fit-content"}},Me=Xe;var Qe={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)",animationTimingFunction:"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"}}},Be=Qe;var Ue={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(p,v)=>{let a=v.indexOf(":");if(a!==-1){p in t||(t[p]={});let d=t[p],m=v.slice(0,a);m in d||(d[m]=v.slice(a+1))}},o=p=>{let v=(a,d)=>{let m=d.slice(ce(p.className).length).match(/\{(.*)\}/)[1].split(";");for(let x of m)i(a,x)};if(this.theme){let a=p.natives.find(d=>d.theme===this.theme)??p.natives.find(d=>!d.theme);a&&v(this.theme,a.text)}else for(let a of p.natives)v(a.theme,a.text);if(p.animationNames){this.animationNames||(this.animationNames=[]);for(let a of p.animationNames)this.animationNames.includes(a)||this.animationNames.push(a)}},g=[],s="",l=()=>{s&&(g.push(s.replace(/ /g,"|")),s="")},c=1;(function p(v){for(;c<e.length;c++){let a=e[c];if(!v){if(a===";"){l();continue}if(a==="}")break}if(s+=a,v===a){if(v==="'"||v==='"'){let d=0;for(let m=s.length-2;s[m]==="\\";m--)d++;if(d%2)continue}break}else a in le&&v!=="'"&&v!=='"'&&(c++,p(le[a]))}})(void 0),l();for(let p of g){let v=this.css.create(p);if(Array.isArray(v))if(v.length)for(let a of v)o(a);else i(this.theme??"",p);else o(v)}let h={};for(let p in t)for(let[v,a]of Object.entries(t[p]))v in h?h[v][p]=a:h[v]={[p]:a};return h}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},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(e){switch(e){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(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},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(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},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(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},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:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},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,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},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:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},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(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},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(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},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(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},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(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},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(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},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)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},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(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},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(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},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:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^scroll-p:.",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(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},qe=Ue,je=qe;var Ke={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,i=this.css.globalValues,o=this.css.config.functions,g=this,s=0,l="",c="";return function h(p,v){let a=!1,d=(m,x=!1,b=!1)=>{if(m!=="("&&(t&&c in t?c=t[c].toString():i&&c in i&&(c=i[c].toString())),c&&!a&&!v){let u=g.analyzeUnitValue(c,o.calc.unit);u&&(c=u.value+u.unit)}l+=c+(x&&e[s-1]!==" "?" ":"")+m+(b&&e[s+1]!==" "?" ":""),c="",a=!1};for(;s<e.length;s++){let m=e[s];if(m==="("){let x=c,b=a,u=l.length;if(d(m),s++,h(x,b||v),x!=="calc"){let n=o[x];if(n){let r=l.slice(u+2,l.length-1);l=l.slice(0,u-x.length+1)+(n.name??x)+"("+(n.transform?.(r)??r)+")"}}}else if(m===")"){d(m);break}else if(m===",")d(m,!1,!0);else if(m===" ")d(m);else{let x=e[s-1];switch(m){case"+":!c&&x!==")"?c+=m:d(m,!0,!0);break;case"-":p==="var"||!c&&x!==")"?c+=m:d(m,!0,!0);break;case"*":d(m,!0,!0);break;case"/":d(m,!0,!0),a=!0;break;default:c+=m;break}}}s>=e.length-1&&d("")}("",!1),l}},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:""},repeat:{unit:""}},Ee=Ke;var Ne=16;var Ze="",Pe=Ze;var We=!1;var Ae=!1;var Ge="class",Ie=Ge;var de={viewports:$e,colors:Te,rootSize:Ne,scope:Pe,selectors:Oe,semantics:Me,rules:je,override:We,important:Ae,functions:Ee,animations:Be,themeDriver:Ie};var Le=[",",".","#","[","!","*",">","+","~",":","@"];function Ce(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var ge="_CNO_",se=class e{constructor(t=de){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(de,t),this.cache(),e.instances.push(this)}static root;static config=de;static instances=[];static refresh=t=>{for(let i of this.instances)i.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;observer;colorByThemeByColorName;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.viewports={},this.mediaQueries={},this.matches={},this.keyframesMap={},this.animations={};let{semantics:t,classes:i,selectors:o,colors:g,values:s,viewports:l,mediaQueries:c,rules:h,animations:p}=this.config;function v(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(n,r,f="",R={}){let w=j=>j?(f?f+"-":"")+j:f,O=Object.entries(n),S=[],z=[];for(let j of O){let A=j[1];(typeof A=="object"&&!Array.isArray(A)?S:z).push(j)}for(let[j,A]of S)a(A,r,w(j),R);if(r&&f)z.length&&(R[f]=z.reduce((j,[A,K])=>(j[A]=K,j),{}));else for(let[j,A]of z)R[w(j)]=A;return R}function d(n){for(let[r,f]of Object.entries(n))/^[0-9]+x$/.test(r)&&typeof f=="number"&&(n["-"+r]=f*-1);return n}if(t)for(let[n,r]of Object.entries(a(t,!0))){let f={};for(let R of Object.keys(r))f[Ce(R)]=r[R];this.semantics.push([new RegExp("^"+v(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,f]])}if(o)for(let[n,r]of Object.entries(a(o,!1))){let f=new RegExp(v(n)+"(?![a-z-])");for(let R of Array.isArray(r)?r:[r]){let w=R.match(/^::-[a-z]+-/m)?.[0]??"",O=this.selectors[w];O||(O=this.selectors[w]=[]);let S=O.find(([z])=>z===f);S||(S=[f,[]],O.push(S)),S[1].push(R)}}if(s&&(this.globalValues=d(a(s,!1))),l&&(this.viewports=a(l,!1)),c&&(this.mediaQueries=a(c,!1)),p)for(let n in p){let r=this.animations[n]={},f=p[n];for(let R in f){let w=r[R]={},O=f[R];for(let S in O)w[Ce(S)]=O[S]}}let m=i?a(i,!1):{},x=Object.keys(m),b=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let r=this.classes[n]=[],f=m[n];if(!f)return;let R=f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of R){let O=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let z=this.classesBy[S];z.includes(n)||z.push(n)}else this.classesBy[S]=[n];r.includes(S)||r.push(S)};if(x.includes(w)){b(w);for(let S of this.classes[w])O(S)}else O(w)}};for(let n of x)b(n);this.colorNames=Object.keys(g);let u=Object.entries(this.colorByThemeByColorName).reduce((n,[r,f])=>(n[r]=()=>{let R=(S,z)=>z?S.slice(0,7)+Math.round(255*+z).toString(16):S,w={};for(let S in f){let z=f[S].split(" ");for(let j of z){let A=j.lastIndexOf("@"),K=A!==-1?j.slice(0,A):j,re=A!==-1?j.slice(A+1):"",Z=S.slice(1)||re;if(j.startsWith("#"))w[Z]=K;else if(j.startsWith(ge)){let[D,ie]=K.slice(ge.length).split("/");if(Object.prototype.hasOwnProperty.call(u,D)){let ne=u[D];delete u[D],ne()}let Q=Object.prototype.hasOwnProperty.call(this.colorThemesMap,D)&&this.colorThemesMap[D];if(Q)for(let ne in Q){let te=Q[ne];w[ne]=R(te,ie)}else console.error(`"${r}${S}: ${j}" is an invalid ".colors" config`)}else{let[D,ie]=K.split("@"),[Q,ne]=D.split("/");if(Object.prototype.hasOwnProperty.call(u,Q)){let ve=u[Q];delete u[Q],ve()}let te=Object.prototype.hasOwnProperty.call(this.colorThemesMap,Q)&&this.colorThemesMap[Q][(S?re:ie)||""];te?w[Z]=R(te,ne):console.error(`"${r}${S}: ${j}" is an invalid ".colors" config`)}}}let O=Object.keys(w);if(O.length){this.colorThemesMap[r]=w;for(let S of O)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete u[r]},n),{});for(let n of Object.keys(u))u[n]?.();if(h)for(let n in h){let r=h[n],{native:f,values:R,colored:w}=r,O=r.match;if(r.id=n,r.native=f===!0?n.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,R&&(this.values[n]=d(a(R,!1))),O){let S=Object.keys(this.values[n]??{});O.includes("$values")&&(O=S.length?O.replace(/\$values/,S.join("|")):O.replace(/(?:\|)?\$values/,"")),w&&O.includes("$colors")&&(O=this.colorNames.length?O.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):O.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(O)}}}observe(t,i={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let o=t===document;o&&(e.root=this),this.host=o?document.documentElement:this.root.host;let g=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let c of s){let{ownerNode:h}=c;if(h&&h.id==="master"){this.style=h;break}}if(this.style)for(let c=0;c<this.style.sheet.cssRules.length;c++){let h=this.style.sheet.cssRules[c];if(h.constructor.name==="CSSKeyframesRule")continue;let p=a=>{if(a.selectorText){let m=a.selectorText.split(", ")[0].split(" ");for(let x=0;x<m.length;x++){let b=m[x];if(b[0]==="."){let u=b.slice(1),n="";for(let r=0;r<u.length;r++){let f=u[r],R=u[r+1];if(f==="\\"){if(r++,R!=="\\"){n+=R;continue}}else if(Le.includes(f))break;n+=f}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.classes,n)){let r=this.create(n)[0];if(r)return r}}}}else if(a.cssRules)for(let d=0;d<a.cssRules.length;d++){let m=p(a.cssRules[d]);if(m)return m}},v=p(h);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let a=0;a<v.natives.length;a++)v.natives[a].cssRule=this.style.sheet.cssRules[c+a];c+=v.natives.length-1,this.handleRuleWithAnimationNames(v),v.config.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",g.append(this.style);let l=c=>{c.forEach(h=>{Object.prototype.hasOwnProperty.call(this.countBy,h)?this.countBy[h]++:(this.countBy[h]=1,this.insert(h))})};l(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(c=>l(c.classList)),this.observer=new MutationObserver(c=>{let h={},p=[],v=[],a=[],d=(u,n)=>{n?u.classList.forEach(x):u.classList.forEach(m);let r=u.children;for(let f=0;f<r.length;f++){let R=r[f];R.classList&&(v.push(R),d(R,n))}},m=u=>{Object.prototype.hasOwnProperty.call(h,u)?h[u]++:h[u]=1},x=u=>{Object.prototype.hasOwnProperty.call(h,u)?h[u]--:Object.prototype.hasOwnProperty.call(this.countBy,u)&&(h[u]=-1)},b=(u,n)=>{for(let r=0;r<u.length;r++){let f=u[r];f.classList&&!v.includes(f)&&!a.includes(f)&&(f.isConnected!==n?(v.push(f),d(f,n)):a.push(f))}};for(let u=0;u<c.length;u++){let n=c[u],{addedNodes:r,removedNodes:f,type:R,target:w}=n;if(R==="attributes"){if(p.find(O=>O.target===w))continue;p.push(n)}else b(r,!1),(!w.isConnected||!v.includes(w))&&b(f,!0)}if(!(!p.length&&!Object.keys(h).length)){for(let{oldValue:u,target:n}of p){let r=v.includes(n),f=n.classList,R=u?u.split(" "):[];if(r){if(n.isConnected)continue;for(let w of R)f.contains(w)||x(w)}else if(n.isConnected){f.forEach(w=>{R.includes(w)||m(w)});for(let w of R)f.contains(w)||x(w)}}for(let u in h){let n=h[u],r=(this.countBy[u]||0)+n;r===0?(delete this.countBy[u],this.delete(u)):(Object.prototype.hasOwnProperty.call(this.countBy,u)||this.insert(u),this.countBy[u]=r)}}}),this.observer.observe(t,{...i,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 t=this.style?.sheet;if(t?.cssRules)for(let i=t.cssRules.length-1;i>=0;i--)t.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(t){for(let i in this.config.rules){let o=this.config.rules[i],g=this.matches[i],{native:s}=o;if(g&&g.test(t))return{origin:"match",config:o};if(s&&t.startsWith(s+":"))return{origin:"match",config:o}}for(let i of this.semantics)if(t.match(i[0]))return{origin:"semantics",value:i[1]}}create(t){let i=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let g=this.match(o);if(g)return new ue(o,g,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(o=>i(o)):[i(t)]).filter(o=>o&&o.text)}refresh(t){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(de,t),this.cache(),!this.style)return;let i=document.createElement("style");i.id="master",this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let i=this.style?.sheet,o=g=>{let s=this.ruleBy[g];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,g)&&this.classesBy[g].some(l=>Object.prototype.hasOwnProperty.call(this.countBy,l)))){if(i&&s.natives.length){let l=s.natives[0];for(let c=0;c<i.cssRules.length;c++)if(i.cssRules[c]===l.cssRule){for(let p=0;p<s.natives.length;p++)i.deleteRule(c);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[g],s.animationNames){let l=this.rules[0];for(let c of s.animationNames){let h=this.keyframesMap[c];if(!--h.count){let p=l.natives.indexOf(h.native);this.style.sheet.deleteRule(p),l.natives.splice(p,1),delete this.keyframesMap[c]}}l.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,g)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let g of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,g)||o(g);delete this.ruleBy[t]}else o(t)}insert(t){let i=this.create(t);return i.length?(this.insertRules(i),!0):!1}insertRules(t){for(let i of t){if(this.ruleBy[i.className])continue;let o,g=Object.keys(this.keyframesMap).length,s=this.rules.length-1,{media:l,order:c,priority:h,hasWhere:p,className:v}=i,a=(x,b,u)=>{let n=x;for(;n<=s;n++){let r=this.rules[n];if(b?.(r))return u?-1:n-1;if(u?.(r))return n}return u?-1:n-1},d,m;if(l){let x=this.rules.findIndex(b=>b.media);if(x===-1)o=s+1;else{let{"max-width":b,"min-width":u}=l.features;if(b||u){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)o=s+1;else if(b&&u){if(h===-1?(d=a(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),m=a(n,r=>r.priority!==-1)):(d=a(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),m=s),d!==-1){let r=b.value-u.value,f=m,R=d;for(d=void 0;f>=R;f--){let{"max-width":w,"min-width":O}=this.rules[f].media.features,S=w.value-O.value;if(S<r)m=f-1;else if(S===r)d=f;else break}}if(d!==-1){let r=b.value-u.value;for(let f=m;f>=d;f--){let{"max-width":R,"min-width":w}=this.rules[f].media.features,O=R.value-w.value;if(O<r)m=f-1;else if(O>r){d=f+1;break}}}}else if(u){if(h===-1?(d=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),m=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(d=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),m=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=m;r>=d;r--){let f=this.rules[r].media.features["min-width"].value;if(f>u.value)m=r-1;else if(f<u.value){d=r+1;break}}}else if(h===-1?(d=a(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),m=a(n,r=>r.media.features["min-width"]||r.priority!==-1)):(d=a(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),m=a(n,r=>r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=m;r>=d;r--){let f=this.rules[r].media.features["max-width"].value;if(f<b.value)m=r-1;else if(f>b.value){d=r+1;break}}}else h===-1?(d=x,m=a(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(d=a(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),m=a(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let x=g?1:0;h===-1?(d=x,m=a(x,b=>b.media||b.priority!==-1)):(d=a(x,b=>b.media,b=>b.priority!==-1),m=a(x,b=>b.media))}if(o===void 0)if(d===-1)o=m+1;else{if(h===-1)for(let x=d;x<=m;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)&&(p&&!b.hasWhere||b.order>=c)){o=x;break}}else for(let x=d;x<=m;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)){if(p&&!b.hasWhere){o=x;break}if(b.priority<h){o=x;break}else if(b.priority===h){if(b.order>=c){o=x;break}}else o=x+1}}o===void 0&&(o=m+1)}if(this.rules.splice(o,0,i),this.ruleBy[v]=i,this.style){let x=this.style.sheet,b=0,u=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return u(n-1);let f=r.natives[r.natives.length-1].cssRule;for(let R=0;R<x.cssRules.length;R++)if(x.cssRules[R]===f){b=R+1;break}}};u(o-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];x.insertRule(r.text,b),r.cssRule=x.cssRules[b++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}this.handleRuleWithAnimationNames(i),i.config.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let i=s=>{let l=oe({},s),c=h=>{for(let p in h){let v=h[p];typeof v=="object"&&!Array.isArray(v)?c(v):p&&(h[p]={"":v})}};if(l.classes?c(l.classes):l.classes={},l.viewports?c(l.viewports):l.viewports={},l.mediaQueries?c(l.mediaQueries):l.mediaQueries={},l.selectors?c(l.selectors):l.selectors={},l.values?c(l.values):l.values={},l.colors){let h=(p,v)=>{let a=(b,u,n)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,b)||(this.colorByThemeByColorName[b]={});let r=this.colorByThemeByColorName[b],f=r[""]?.includes(ge),R=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(O,S,z,j,A)=>{let K="#"+he(+S,+z,+j);return A&&(K+=Math.round(255*+A).toString(16)),K});for(let[w,O]of u)if(O){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,z;for(;(z=S.exec(O))!==null;){let j=z[0].trimStart(),A=j.lastIndexOf("@"),K=A!==-1?j.slice(0,A):j,re=A!==-1?j.slice(A):"",Z=w||re,D=n&&z[2]&&!z[2].startsWith("#")&&!re,ie=z[1]?R(K):w?z[0]:K;if(f||D){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let Q in r)Q&&(r[""]+=" "+r[Q],delete r[Q]);r[""]+=(r[""]?" ":"")+(D?ge:"")+ie+Z}else r[Z]=ie;if(w)break}}else if(n){delete this.colorByThemeByColorName[b];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[b]},d=Object.entries(p),m=d.filter(([b])=>b===""||b.startsWith("@"));m.length&&a(v,m,!1);let x=d.filter(([b])=>b!==""&&!b.startsWith("@"));for(let[b,u]of x){let n=(v?v+"-":"")+b;typeof u=="string"?a(n,[["",u]],!0):h(u,n)}};h(l.colors,"")}return l},o=[];for(let s of t)(function l(c){if(c.extends?.length)for(let h of c.extends)l("config"in h?h.config:h);o.push(i(c))})(s);let g=o[0];for(let s=1;s<o.length;s++){let l=o[s];g=oe(g,l),Object.prototype.hasOwnProperty.call(l,"animations")&&Object.assign(g.animations,l.animations)}return g}handleRuleWithAnimationNames(t){if(t.animationNames){let i=this.style?.sheet;for(let o of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,o))this.keyframesMap[o].count++;else{let g={text:`@keyframes ${o}{`+Object.entries(this.animations[o]).map(([l,c])=>`${l}{${Object.entries(c).map(([h,p])=>h+":"+p).join(";")}}`).join("")+"}",theme:""},s;if(Object.keys(this.keyframesMap).length?(s=this.rules[0]).natives.push(g):this.rules.splice(0,0,s={natives:[g],get text(){return this.natives.map(l=>l.text).join("")}}),i){let l;for(let c=0;c<i.cssRules.length;c++){let h=i.cssRules[c];if(h.constructor.name!=="CSSKeyframesRule")break;if(h.name===o){l=h;break}}if(l)g.cssRule=l;else{let c=s.natives.length-1;i.insertRule(g.text,c),g.cssRule=i.cssRules[c]}}this.keyframesMap[o]={native:g,count:1}}}}};typeof window<"u"&&(window.MasterCSS=se);var Je=`/** @type {import('@master/css').Config} */
|
|
1
|
+
function Se(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function ke(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function $e(e){let t=[];return e.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?t[o]=$e(i):Se(i)?t[o]=ke(i):t[o]=se({},i):t[o]=i}),t}function we(e,t){return t==="__proto__"?void 0:e[t]}function se(...e){let t={},i,o;return e.forEach(function(d){typeof d!="object"||d===null||Array.isArray(d)||Object.keys(d).forEach(function(s){if(o=we(t,s),i=we(d,s),i!==t)if(typeof i!="object"||i===null){t[s]=i;return}else if(Array.isArray(i)){t[s]=$e(i);return}else if(Se(i)){t[s]=ke(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=se({},i);return}else{t[s]=se(o,i);return}})}),t}var le={"(":")","'":"'",'"':'"',"{":"}"};function ce(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),i=t.length,o=-1,d="",s,a=t.charCodeAt(0);if(i==1&&a==45)return"\\"+t;for(;++o<i;){if(s=t.charCodeAt(o),s==0){d+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&a==45){d+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){d+=t.charAt(o);continue}d+="\\"+t.charAt(o)}return d}function he(e,t){let i=t.endsWith("%")?parseFloat(t)/100:+t;return i=isNaN(i)?1:Math.min(Math.max(i,0),1),e+Math.round(i*255).toString(16).toUpperCase().padStart(2,"0")}var Fe={unit:"",order:0,separators:[","]},_e=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ue=class{constructor(t,i={},o){this.className=t;this.meta=i;this.css=o;this.config=se(Fe,i.config);let{unit:d,order:s,colored:a,native:c,analyze:g,transform:p,declare:v,create:l}=this.config,{scope:m,important:h,functions:x,themeDriver:b}=o.config,{themeNames:u,colorNames:n,colorThemesMap:r,selectors:f,viewports:R,mediaQueries:w,classesBy:O,globalValues:S,animations:L}=o,j=O[t];l&&l.call(this,t);let A,q,te,Z,D;if(i.origin==="semantics"){let[N,E]=i.value;Z=t.slice(N.length),A=E}else{let N;if(g)[N,te]=g.call(this,t);else{let _=t.indexOf(":");this.prefix=t.slice(0,_+1),N=t.slice(_+1)}D=[];let E=this,z=this.values,Y=[","];this.config.separators.length&&Y.push(...this.config.separators);let $="",B=0;(function _(W,C,k,y=void 0,T=[],I=[],P){let M=y===void 0,Q,K=V=>V==="'"||V==='"',ne=()=>Q=$.length,G=()=>{if($){let V=$,H=M?V:$.slice(Q);if($="",ee="",z&&H in z&&!T.includes(H)){let U=B;B=0,_(z[H].toString(),C,void 0,y,[...T,H],I,P),B=U,M||($=$.slice(0,Q)+$)}else if(S&&H in S&&!I.includes(H)){let U=B;B=0,_(S[H].toString(),C,void 0,y,T,[...I,H],P),B=U,M||($=$.slice(0,Q)+$)}else if(M){let U=!P&&E.analyzeUnitValue(H,C);D.push({value:U?.value??H,unit:U?.unit})}else{let U=!P&&E.analyzeUnitValue(H,C);$=U?V.slice(0,Q)+U.value+U.unit:V}ne()}},oe=K(k);ne();let ee="";for(;B<W.length;B++){let V=W[B];if(V===k){if(oe){$+=V;let H=0;for(let U=$.length-2;$[U]==="\\";U--)H++;if(H%2)continue}else G(),$+=V;return}else if(!oe&&V in le){let H=V==="("&&ee&&x?.[ee];H?.name&&($=$.slice(0,$.length-ee.length)+H.name,ee=H.name),$+=V,B++;let U=le[V];_(W,H?.unit??C,U,ee||y||"",T,I,P||!!H?.transform),H?.transform&&($=$.slice(0,Q+ee.length+1)+H.transform.call(E,$.slice(Q+ee.length+1,-1))+$.slice(-1)),M&&(K(U)?(D.push($),$=""):G()),ee=""}else if((V==="|"||V===" ")&&k!=="}"&&(!oe||y==="path"))G(),M||($+=" ",Q++);else{if(!oe){if(V==="."){if(isNaN(+W[B+1]))break;W[B-1]==="-"&&($+="0")}else if(Y.includes(V)){G(),M?D.push(V):($+=V,Q++);continue}else if(M&&(V==="#"&&($||D.length&&W[B-1]!=="|"&&D[B-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(V)))break;ee+=V}$+=V}}y===void 0&&G()})(N,d),Z=N.slice(B)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Z[0]==="!"&&(this.important=!0,Z=Z.slice(1));let re=(N,E)=>{let z=(C,k,y,T)=>{for(let[I,P]of k)if(I.test(C)){for(let M of P)z(C.replace(I,M),k,y,!0);return}T&&y.push(C)},Y=C=>{let k=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((P,M)=>M%3?P:P.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),y=[],T="",I=0;for(let P=0;P<k.length;P++){let M=k[P];if(M==="\\"){T+=M+k[++P];continue}!I&&M===","?(y.push(T),T=""):(T+=M,I&&M===")"?I--:M==="("&&I++)}return T&&y.push(T),y},$=[];""in f?z(N,f[""],$,!0):$.push(N);let B={};for(let[C,k]of Object.entries(f)){if(!C)continue;let y=[];for(let T of $)z(T,k,y,!1);y.length&&(B[C]=y)}let _=(C,k)=>{let y=k.reduce((T,I)=>(T.push(...Y(I)),T),[]);C in E?E[C].push(...y):E[C]=y},W=Object.keys(B);if(W.length)for(let C of W)_(C,B[C]);else _("",$)};te?(this.vendorPrefixSelectors={},re(te,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let X=Z.split("@"),ie=X[0];if(ie){this.vendorSuffixSelectors={},re(ie,this.vendorSuffixSelectors);for(let N of Object.values(this.vendorSuffixSelectors))for(let E of N){this.hasWhere!==!1&&(this.hasWhere=E.includes(":where("));let z=[":disabled",":active",":focus",":hover"];for(let Y=0;Y<z.length;Y++)if(E.includes(z[Y])){(this.priority===-1||this.priority>Y)&&(this.priority=Y);break}}}else this.vendorSuffixSelectors={"":[""]};let J={},xe=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),Re=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(xe)J[""]=Re?[""]:Object.keys(this.vendorSuffixSelectors);else if(Re)for(let N in this.vendorPrefixSelectors)J[N]=[""];else for(let N in this.vendorPrefixSelectors){let E=J[N]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,N))E.push(N);else for(let z in this.vendorSuffixSelectors)E.push(z)}for(let N=1;N<X.length;N++){let E=X[N];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let z,Y,$=_e.exec(E);if($)z=$[1],Y=E.slice(z.length);else{this.media={token:E,features:{}};let B=[],_=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")B.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")B.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else if(w&&C in w)B.push(w[C]);else{let k={token:C},y="",T="",I=0;C.startsWith("<=")?(T="<=",y="max-width"):C.startsWith(">=")||R[C]?(T=">=",y="min-width"):C.startsWith(">")?(T=">",y="min-width",I=.02):C.startsWith("<")&&(T="<",y="max-width",I=-.02);let P=T?C.replace(T,""):C,M=R[P];switch(y){case"max-width":case"min-width":M?Object.assign(k,this.analyzeUnitValue(M.toString(),"px")):Object.assign(k,this.analyzeUnitValue(P,"px")),k.unit==="px"&&(k.value+=I),this.media.features[y]=k,B.push("("+y+":"+(k.value+k.unit)+")");break}}},W=E.includes("&");if(W){let C=E.split("&");for(let k of C)_(k)}else _(E);if(this.media.type&&(Y=this.media.type),B.length&&(Y=B.join(" and ")),Y)z="media";else if(!W){this.theme=E;continue}}Y&&(this.at[z]=(z in this.at?this.at[z]+" and ":"")+Y.replace(/\|/g," "))}}let Ce=(N,E)=>{let z,Y=(_,W,C,k)=>{let y="";this.direction&&(y+="[dir="+this.direction+"] ");let T=C.map(M=>M+y),I=(M,Q)=>T.map(K=>(M&&b!=="media"?b==="host"?`:host(.${M}) `:`.${M} `:"")+(m?m+" ":"")+K).reduce((K,ne)=>(K.push(k.reduce((G,oe)=>(G.push(ne+"."+ce(Q)+oe),G),[]).join(",")),K),[]).join(","),P=I(W,t)+(j?j.reduce((M,Q)=>M+","+I(this.theme??(a||q?W:""),Q),""):"")+"{"+_+"}";for(let M of Object.keys(this.at).sort((Q,K)=>K==="supports"?-1:1))P="@"+M+(M.includes(" ")?"":" ")+this.at[M]+"{"+P+"}";return W&&b==="media"&&(P=`@media(prefers-color-scheme:${W}){`+P+"}"),P},$=[];if(D){let _=[this.theme??N,""],W,C=!1;for(let k of D)if(typeof k=="string")$.push(k);else{let y=k.value;if(k.unit)y+=k.unit;else if(a&&r&&n){let T=!1;y=y.replace(new RegExp(`(^|,| |\\()((?:${n.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(I,P,M,Q)=>{let K=r[M];if(K){let ne,G;for(let oe of _)if(ne=K[oe]){G=oe;break}if(ne)return T=!E||G===N,W||(W=T),P+(Q?he(ne,Q):ne);C=!0}return I})}$.push(y)}if(E&&(C||(W===void 0?N:!W)))return;if(z=$.reduce((k,y,T)=>k+y+(y===","||D[T+1]===","||T===D.length-1?"":" "),""),p&&(z=p.call(this,z,this.css.config)),a&&z==="current"&&(z="currentColor"),v){let k,y;if(D.length===1){let T=D[0];typeof T=="object"&&(k=T.value,y=T.unit)}A=v.call(this,y?k:z,y||"")}else A={[c]:z}}let B={};for(let _ in A){let W=(y,T)=>{if(L&&(T.startsWith("animation")||T.startsWith("animation-name"))){let P=T.split(":")[1].split("!important")[0].split(" ").filter(M=>M in this.css.animations&&(!this.animationNames||!this.animationNames.includes(M)));P.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...P))}let I=T+((this.important||h)&&!T.endsWith("!important")?"!important":"");y in B?B[y].push(I):B[y]=[I]},C=_+":",k=A[_];if(typeof k=="object")if(Array.isArray(k))for(let y of k)W(N,C+y.toString());else{q=!0;for(let y in k)W(y,C+k[y])}else W(N,C+k.toString())}for(let _ in J)for(let W of J[_])for(let C in B)this.natives.push({text:Y(B[C].join(";"),C,this.vendorPrefixSelectors[_],this.vendorSuffixSelectors[W]),theme:C})};if(this.theme)Ce(this.theme,!1);else if(a)for(let N of u)Ce(N,!0);else Ce("",!1)}at={};priority=-1;natives=[];animationNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,i){return Number.isNaN(+t)?t:t/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(t,i){let o=i??this.config.unit;if(o){let d="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[a,c]=t.split("/");return{value:+a/+c*100+"%",unit:d}}else{let a=+s[1];return d=s[3]||"",d||((o==="rem"||o==="em")&&(a=a/this.css.config.rootSize),d=o||""),{value:a,unit:d}}}}};var He={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Te=He;function fe(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function ge(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function F(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let o in e)if(o&&+o>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let o=0,d="0"in e?fe(e[0]):[0,0,0],s,a,c=[],g=()=>{let p=s-o,v=a.map((l,m)=>(l-d[m])/p);for(let l of c){let m=l-o,h=d.map((x,b)=>Math.round(x+v[b]*m));e[l]="#"+ge.call(this,...h)}};for(let p=1;p<100;p++)p in e?(c.length?(s=p,a=fe(e[p]),g(),c.length=0,d=a):d=fe(e[p]),o=p):c.push(p);c.length&&(s=100,a="100"in e?fe(e[100]):[255,255,255],g())}return t||(e[""]=e[i?"500":"50"]),e}var Ye={black:"#000000",white:"#ffffff",slate:F({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:F({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:F({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:F({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:F({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:F({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:F({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:F({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:F({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:F({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:F({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:F({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:F({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:F({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:F({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:F({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:F({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:F({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:F({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:F({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},Oe=Ye;var Xe={"::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(",":only":":only-child"},Me=Xe;var Qe={square:{aspectRatio:"1/1"},video:{aspectRatio:"16/9"},rounded:{borderRadius:"1e9em"},round:{borderRadius:"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:{fontStyle:"italic"},oblique:{fontStyle:"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{pointerEvents:"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{maxWidth:"100vw"},"max-vh":{maxHeight:"100vh"},"min-vw":{minWidth:"100vw"},"min-vh":{minHeight:"100vh"},"center-content":{justifyContent:"center",alignItems:"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",borderWidth:"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,marginLeft:"auto",marginRight:"auto"},middle:{top:0,bottom:0,marginTop:"auto",marginBottom:"auto"},"break-spaces":{whiteSpace:"break-spaces"},"break-word":{overflowWrap:"break-word",overflow:"hidden"},"gradient-text":{WebkitTextFillColor:"transparent",WebkitBackgroundClip:"text",backgroundClip:"text"},fit:{width:"fit-content",height:"fit-content"}},Be=Qe;var Ue={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)",animationTimingFunction:"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"}}},je=Ue;var qe={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(p,v)=>{let l=v.indexOf(":");if(l!==-1){p in t||(t[p]={});let m=t[p],h=v.slice(0,l);h in m||(m[h]=v.slice(l+1))}},o=p=>{let v=(l,m)=>{let h=m.slice(ce(p.className).length).match(/\{(.*)\}/)[1].split(";");for(let x of h)i(l,x)};if(this.theme){let l=p.natives.find(m=>m.theme===this.theme)??p.natives.find(m=>!m.theme);l&&v(this.theme,l.text)}else for(let l of p.natives)v(l.theme,l.text);if(p.animationNames){this.animationNames||(this.animationNames=[]);for(let l of p.animationNames)this.animationNames.includes(l)||this.animationNames.push(l)}},d=[],s="",a=()=>{s&&(d.push(s.replace(/ /g,"|")),s="")},c=1;(function p(v){for(;c<e.length;c++){let l=e[c];if(!v){if(l===";"){a();continue}if(l==="}")break}if(s+=l,v===l){if(v==="'"||v==='"'){let m=0;for(let h=s.length-2;s[h]==="\\";h--)m++;if(m%2)continue}break}else l in le&&v!=="'"&&v!=='"'&&(c++,p(le[l]))}})(void 0),a();for(let p of d){let v=this.css.create(p);if(Array.isArray(v))if(v.length)for(let l of v)o(l);else i(this.theme??"",p);else o(v)}let g={};for(let p in t)for(let[v,l]of Object.entries(t[p]))v in g?g[v][p]=l:g[v]={[p]:l};return g}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",transform(e){let i=new RegExp(`^((?:${this.css.colorNames.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?:@(.*?))?$`,"m").exec(e);if(i){let[,o,d,s]=i,a=this.css.colorThemesMap[o]?.[s||""];if(a)return d?he(a,d):a}return e},declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},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(e){switch(e){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(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},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(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},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(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,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,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},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:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},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,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},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:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},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(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},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(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},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(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},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(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},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(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},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)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},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(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},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(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},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"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},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:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^scroll-p:.",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(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},Ze=qe,Ee=Ze;var Ke={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,i=this.css.globalValues,o=this.css.config.functions,d=this,s=0,a="",c="";return function g(p,v){let l=!1,m=(h,x=!1,b=!1)=>{if(h!=="("&&(t&&c in t?c=t[c].toString():i&&c in i&&(c=i[c].toString())),c&&!l&&!v){let u=d.analyzeUnitValue(c,o.calc.unit);u&&(c=u.value+u.unit)}a+=c+(x&&e[s-1]!==" "?" ":"")+h+(b&&e[s+1]!==" "?" ":""),c="",l=!1};for(;s<e.length;s++){let h=e[s];if(h==="("){let x=c,b=l,u=a.length;if(m(h),s++,g(x,b||v),x!=="calc"){let n=o[x];if(n){let r=a.slice(u+2,a.length-1);a=a.slice(0,u-x.length+1)+(n.name??x)+"("+(n.transform?.call(d,r)??r)+")"}}}else if(h===")"){m(h);break}else if(h===",")m(h,!1,!0);else if(h===" ")m(h);else{let x=e[s-1];switch(h){case"+":!c&&x!==")"?c+=h:m(h,!0,!0);break;case"-":p==="var"||!c&&x!==")"?c+=h:m(h,!0,!0);break;case"*":m(h,!0,!0);break;case"/":m(h,!0,!0),l=!0;break;default:c+=h;break}}}s>=e.length-1&&m("")}("",!1),a}},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:""},repeat:{unit:""}},Ne=Ke;var Pe=16;var Ge="",We=Ge;var Ae=!1;var ze=!1;var Je="class",Ie=Je;var de={viewports:Te,colors:Oe,rootSize:Pe,scope:We,selectors:Me,semantics:Be,rules:Ee,override:Ae,important:ze,functions:Ne,animations:je,themeDriver:Ie};var Le=[",",".","#","[","!","*",">","+","~",":","@"];function ye(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var pe="_CNO_",ae=class e{constructor(t=de){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(de,t),this.cache(),e.instances.push(this)}static root;static config=de;static instances=[];static refresh=t=>{for(let i of this.instances)i.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;observer;colorByThemeByColorName;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.viewports={},this.mediaQueries={},this.matches={},this.keyframesMap={},this.animations={};let{semantics:t,classes:i,selectors:o,colors:d,values:s,viewports:a,mediaQueries:c,rules:g,animations:p}=this.config;function v(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function l(n,r,f="",R={}){let w=j=>j?(f?f+"-":"")+j:f,O=Object.entries(n),S=[],L=[];for(let j of O){let A=j[1];(typeof A=="object"&&!Array.isArray(A)?S:L).push(j)}for(let[j,A]of S)l(A,r,w(j),R);if(r&&f)L.length&&(R[f]=L.reduce((j,[A,q])=>(j[A]=q,j),{}));else for(let[j,A]of L)R[w(j)]=A;return R}function m(n){for(let[r,f]of Object.entries(n))/^[0-9]+x$/.test(r)&&typeof f=="number"&&(n["-"+r]=f*-1);return n}if(t)for(let[n,r]of Object.entries(l(t,!0))){let f={};for(let R of Object.keys(r))f[ye(R)]=r[R];this.semantics.push([new RegExp("^"+v(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,f]])}if(o)for(let[n,r]of Object.entries(l(o,!1))){let f=new RegExp(v(n)+"(?![a-z-])");for(let R of Array.isArray(r)?r:[r]){let w=R.match(/^::-[a-z]+-/m)?.[0]??"",O=this.selectors[w];O||(O=this.selectors[w]=[]);let S=O.find(([L])=>L===f);S||(S=[f,[]],O.push(S)),S[1].push(R)}}if(s&&(this.globalValues=m(l(s,!1))),a&&(this.viewports=l(a,!1)),c&&(this.mediaQueries=l(c,!1)),p)for(let n in p){let r=this.animations[n]={},f=p[n];for(let R in f){let w=r[R]={},O=f[R];for(let S in O)w[ye(S)]=O[S]}}let h=i?l(i,!1):{},x=Object.keys(h),b=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let r=this.classes[n]=[],f=h[n];if(!f)return;let R=f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of R){let O=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let L=this.classesBy[S];L.includes(n)||L.push(n)}else this.classesBy[S]=[n];r.includes(S)||r.push(S)};if(x.includes(w)){b(w);for(let S of this.classes[w])O(S)}else O(w)}};for(let n of x)b(n);this.colorNames=Object.keys(d);let u=Object.entries(this.colorByThemeByColorName).reduce((n,[r,f])=>(n[r]=()=>{let R=(S,L)=>L?S.slice(0,7)+Math.round(255*+L).toString(16):S,w={};for(let S in f){let L=f[S].split(" ");for(let j of L){let A=j.lastIndexOf("@"),q=A!==-1?j.slice(0,A):j,te=A!==-1?j.slice(A+1):"",Z=S.slice(1)||te;if(j.startsWith("#"))w[Z]=q;else if(j.startsWith(pe)){let[D,re]=q.slice(pe.length).split("/");if(Object.prototype.hasOwnProperty.call(u,D)){let ie=u[D];delete u[D],ie()}let X=Object.prototype.hasOwnProperty.call(this.colorThemesMap,D)&&this.colorThemesMap[D];if(X)for(let ie in X){let J=X[ie];w[ie]=R(J,re)}else console.error(`"${r}${S}: ${j}" is an invalid ".colors" config`)}else{let[D,re]=q.split("@"),[X,ie]=D.split("/");if(Object.prototype.hasOwnProperty.call(u,X)){let xe=u[X];delete u[X],xe()}let J=Object.prototype.hasOwnProperty.call(this.colorThemesMap,X)&&this.colorThemesMap[X][(S?te:re)||""];J?w[Z]=R(J,ie):console.error(`"${r}${S}: ${j}" is an invalid ".colors" config`)}}}let O=Object.keys(w);if(O.length){this.colorThemesMap[r]=w;for(let S of O)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete u[r]},n),{});for(let n of Object.keys(u))u[n]?.();if(g)for(let n in g){let r=g[n],{native:f,values:R,colored:w}=r,O=r.match;if(r.id=n,r.native=f===!0?n.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,R&&(this.values[n]=m(l(R,!1))),O){let S=Object.keys(this.values[n]??{});O.includes("$values")&&(O=S.length?O.replace(/\$values/,S.join("|")):O.replace(/(?:\|)?\$values/,"")),w&&O.includes("$colors")&&(O=this.colorNames.length?O.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):O.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(O)}}}observe(t,i={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let o=t===document;o&&(e.root=this),this.host=o?document.documentElement:this.root.host;let d=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let c of s){let{ownerNode:g}=c;if(g&&g.id==="master"){this.style=g;break}}if(this.style)for(let c=0;c<this.style.sheet.cssRules.length;c++){let g=this.style.sheet.cssRules[c];if(g.constructor.name==="CSSKeyframesRule")continue;let p=l=>{if(l.selectorText){let h=l.selectorText.split(", ")[0].split(" ");for(let x=0;x<h.length;x++){let b=h[x];if(b[0]==="."){let u=b.slice(1),n="";for(let r=0;r<u.length;r++){let f=u[r],R=u[r+1];if(f==="\\"){if(r++,R!=="\\"){n+=R;continue}}else if(Le.includes(f))break;n+=f}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.classes,n)){let r=this.create(n)[0];if(r)return r}}}}else if(l.cssRules)for(let m=0;m<l.cssRules.length;m++){let h=p(l.cssRules[m]);if(h)return h}},v=p(g);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let l=0;l<v.natives.length;l++)v.natives[l].cssRule=this.style.sheet.cssRules[c+l];c+=v.natives.length-1,this.handleRuleWithAnimationNames(v),v.config.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",d.append(this.style);let a=c=>{c.forEach(g=>{Object.prototype.hasOwnProperty.call(this.countBy,g)?this.countBy[g]++:(this.countBy[g]=1,this.insert(g))})};a(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(c=>a(c.classList)),this.observer=new MutationObserver(c=>{let g={},p=[],v=[],l=[],m=(u,n)=>{n?u.classList.forEach(x):u.classList.forEach(h);let r=u.children;for(let f=0;f<r.length;f++){let R=r[f];R.classList&&(v.push(R),m(R,n))}},h=u=>{Object.prototype.hasOwnProperty.call(g,u)?g[u]++:g[u]=1},x=u=>{Object.prototype.hasOwnProperty.call(g,u)?g[u]--:Object.prototype.hasOwnProperty.call(this.countBy,u)&&(g[u]=-1)},b=(u,n)=>{for(let r=0;r<u.length;r++){let f=u[r];f.classList&&!v.includes(f)&&!l.includes(f)&&(f.isConnected!==n?(v.push(f),m(f,n)):l.push(f))}};for(let u=0;u<c.length;u++){let n=c[u],{addedNodes:r,removedNodes:f,type:R,target:w}=n;if(R==="attributes"){if(p.find(O=>O.target===w))continue;p.push(n)}else b(r,!1),(!w.isConnected||!v.includes(w))&&b(f,!0)}if(!(!p.length&&!Object.keys(g).length)){for(let{oldValue:u,target:n}of p){let r=v.includes(n),f=n.classList,R=u?u.split(" "):[];if(r){if(n.isConnected)continue;for(let w of R)f.contains(w)||x(w)}else if(n.isConnected){f.forEach(w=>{R.includes(w)||h(w)});for(let w of R)f.contains(w)||x(w)}}for(let u in g){let n=g[u],r=(this.countBy[u]||0)+n;r===0?(delete this.countBy[u],this.delete(u)):(Object.prototype.hasOwnProperty.call(this.countBy,u)||this.insert(u),this.countBy[u]=r)}}}),this.observer.observe(t,{...i,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 t=this.style?.sheet;if(t?.cssRules)for(let i=t.cssRules.length-1;i>=0;i--)t.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(t){for(let i in this.config.rules){let o=this.config.rules[i],d=this.matches[i],{native:s}=o;if(d&&d.test(t))return{origin:"match",config:o};if(s&&t.startsWith(s+":"))return{origin:"match",config:o}}for(let i of this.semantics)if(t.match(i[0]))return{origin:"semantics",value:i[1]}}create(t){let i=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let d=this.match(o);if(d)return new ue(o,d,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(o=>i(o)):[i(t)]).filter(o=>o&&o.text)}refresh(t){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(de,t),this.cache(),!this.style)return;let i=document.createElement("style");i.id="master",this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let i=this.style?.sheet,o=d=>{let s=this.ruleBy[d];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,d)&&this.classesBy[d].some(a=>Object.prototype.hasOwnProperty.call(this.countBy,a)))){if(i&&s.natives.length){let a=s.natives[0];for(let c=0;c<i.cssRules.length;c++)if(i.cssRules[c]===a.cssRule){for(let p=0;p<s.natives.length;p++)i.deleteRule(c);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[d],s.animationNames){let a=this.rules[0];for(let c of s.animationNames){let g=this.keyframesMap[c];if(!--g.count){let p=a.natives.indexOf(g.native);this.style.sheet.deleteRule(p),a.natives.splice(p,1),delete this.keyframesMap[c]}}a.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,d)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let d of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,d)||o(d);delete this.ruleBy[t]}else o(t)}insert(t){let i=this.create(t);return i.length?(this.insertRules(i),!0):!1}insertRules(t){for(let i of t){if(this.ruleBy[i.className])continue;let o,d=Object.keys(this.keyframesMap).length,s=this.rules.length-1,{media:a,order:c,priority:g,hasWhere:p,className:v}=i,l=(x,b,u)=>{let n=x;for(;n<=s;n++){let r=this.rules[n];if(b?.(r))return u?-1:n-1;if(u?.(r))return n}return u?-1:n-1},m,h;if(a){let x=this.rules.findIndex(b=>b.media);if(x===-1)o=s+1;else{let{"max-width":b,"min-width":u}=a.features;if(b||u){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)o=s+1;else if(b&&u){if(g===-1?(m=l(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),h=l(n,r=>r.priority!==-1)):(m=l(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=s),m!==-1){let r=b.value-u.value,f=h,R=m;for(m=void 0;f>=R;f--){let{"max-width":w,"min-width":O}=this.rules[f].media.features,S=w.value-O.value;if(S<r)h=f-1;else if(S===r)m=f;else break}}if(m!==-1){let r=b.value-u.value;for(let f=h;f>=m;f--){let{"max-width":R,"min-width":w}=this.rules[f].media.features,O=R.value-w.value;if(O<r)h=f-1;else if(O>r){m=f+1;break}}}}else if(u){if(g===-1?(m=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),h=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(m=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let f=this.rules[r].media.features["min-width"].value;if(f>u.value)h=r-1;else if(f<u.value){m=r+1;break}}}else if(g===-1?(m=l(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),h=l(n,r=>r.media.features["min-width"]||r.priority!==-1)):(m=l(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),h=l(n,r=>r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let f=this.rules[r].media.features["max-width"].value;if(f<b.value)h=r-1;else if(f>b.value){m=r+1;break}}}else g===-1?(m=x,h=l(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(m=l(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),h=l(x,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let x=d?1:0;g===-1?(m=x,h=l(x,b=>b.media||b.priority!==-1)):(m=l(x,b=>b.media,b=>b.priority!==-1),h=l(x,b=>b.media))}if(o===void 0)if(m===-1)o=h+1;else{if(g===-1)for(let x=m;x<=h;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)&&(p&&!b.hasWhere||b.order>=c)){o=x;break}}else for(let x=m;x<=h;x++){let b=this.rules[x];if(!(!p&&b.hasWhere)){if(p&&!b.hasWhere){o=x;break}if(b.priority<g){o=x;break}else if(b.priority===g){if(b.order>=c){o=x;break}}else o=x+1}}o===void 0&&(o=h+1)}if(this.rules.splice(o,0,i),this.ruleBy[v]=i,this.style){let x=this.style.sheet,b=0,u=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return u(n-1);let f=r.natives[r.natives.length-1].cssRule;for(let R=0;R<x.cssRules.length;R++)if(x.cssRules[R]===f){b=R+1;break}}};u(o-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];x.insertRule(r.text,b),r.cssRule=x.cssRules[b++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}this.handleRuleWithAnimationNames(i),i.config.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let i=s=>{let a=se({},s),c=g=>{for(let p in g){let v=g[p];typeof v=="object"&&!Array.isArray(v)?c(v):p&&(g[p]={"":v})}};if(a.classes?c(a.classes):a.classes={},a.viewports?c(a.viewports):a.viewports={},a.mediaQueries?c(a.mediaQueries):a.mediaQueries={},a.selectors?c(a.selectors):a.selectors={},a.values?c(a.values):a.values={},a.colors){let g=(p,v)=>{let l=(b,u,n)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,b)||(this.colorByThemeByColorName[b]={});let r=this.colorByThemeByColorName[b],f=r[""]?.includes(pe),R=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(O,S,L,j,A)=>{let q="#"+ge(+S,+L,+j);return A&&(q+=Math.round(255*+A).toString(16)),q});for(let[w,O]of u)if(O){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,L;for(;(L=S.exec(O))!==null;){let j=L[0].trimStart(),A=j.lastIndexOf("@"),q=A!==-1?j.slice(0,A):j,te=A!==-1?j.slice(A):"",Z=w||te,D=n&&L[2]&&!L[2].startsWith("#")&&!te,re=L[1]?R(q):w?L[0]:q;if(f||D){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let X in r)X&&(r[""]+=" "+r[X],delete r[X]);r[""]+=(r[""]?" ":"")+(D?pe:"")+re+Z}else r[Z]=re;if(w)break}}else if(n){delete this.colorByThemeByColorName[b];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[b]},m=Object.entries(p),h=m.filter(([b])=>b===""||b.startsWith("@"));h.length&&l(v,h,!1);let x=m.filter(([b])=>b!==""&&!b.startsWith("@"));for(let[b,u]of x){let n=(v?v+"-":"")+b;typeof u=="string"?l(n,[["",u]],!0):g(u,n)}};g(a.colors,"")}return a},o=[];for(let s of t)(function a(c){if(c.extends?.length)for(let g of c.extends)a("config"in g?g.config:g);o.push(i(c))})(s);let d=o[0];for(let s=1;s<o.length;s++){let a=o[s];d=se(d,a),Object.prototype.hasOwnProperty.call(a,"animations")&&Object.assign(d.animations,a.animations)}return d}handleRuleWithAnimationNames(t){if(t.animationNames){let i=this.style?.sheet;for(let o of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,o))this.keyframesMap[o].count++;else{let d={text:`@keyframes ${o}{`+Object.entries(this.animations[o]).map(([a,c])=>`${a}{${Object.entries(c).map(([g,p])=>g+":"+p).join(";")}}`).join("")+"}",theme:""},s;if(Object.keys(this.keyframesMap).length?(s=this.rules[0]).natives.push(d):this.rules.splice(0,0,s={natives:[d],get text(){return this.natives.map(a=>a.text).join("")}}),i){let a;for(let c=0;c<i.cssRules.length;c++){let g=i.cssRules[c];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===o){a=g;break}}if(a)d.cssRule=a;else{let c=s.natives.length-1;i.insertRule(d.text,c),d.cssRule=i.cssRules[c]}}this.keyframesMap[o]={native:d,count:1}}}}};typeof window<"u"&&(window.MasterCSS=ae);var et=`/** @type {import('@master/css').Config} */
|
|
2
2
|
module.exports = {
|
|
3
3
|
classes: {},
|
|
4
4
|
colors: {},
|
|
@@ -12,7 +12,7 @@ module.exports = {
|
|
|
12
12
|
selectors: {},
|
|
13
13
|
functions: {}
|
|
14
14
|
}
|
|
15
|
-
`;var
|
|
15
|
+
`;var tt=`/** @type {import('@master/css').Config} */
|
|
16
16
|
export default {
|
|
17
17
|
classes: {},
|
|
18
18
|
colors: {},
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
selectors: {},
|
|
27
27
|
functions: {}
|
|
28
28
|
}
|
|
29
|
-
`;var
|
|
29
|
+
`;var rt=`import type { Config } from '@master/css'
|
|
30
30
|
|
|
31
31
|
export default {
|
|
32
32
|
classes: {},
|
|
@@ -41,4 +41,4 @@ export default {
|
|
|
41
41
|
selectors: {},
|
|
42
42
|
functions: {}
|
|
43
43
|
} as Config
|
|
44
|
-
`;function
|
|
44
|
+
`;function be(e){if(!e)return;let t=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,i={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};return e.split(/\sclass="([^"]*)"/gm).filter((o,d)=>d%2===1).map(o=>o.split(" ")).flat().map(o=>o.replace(t,(d,s)=>i[s]))}function ve(e,t){if(!e.length)return;let i=new ae(t);for(let o of e)i.insert(o);return i.text}function me(e,t){if(!e)return;let i=be(e);if(i.length)return ve(i,t)}function Ve(e,t){return new ae(e).observe(t)}function De(e,t){if(!e)return;let i=!1;if(e=e.replace(/(<style id="master">).*?(<\/style>)/,(d,s,a)=>(i=!0,s+me(e,t)+a)),i)return e;let o=`<style id="master">${me(e,t)}</style>`;return e.replace(/<\/head>/,`${o}$&`)}export{tt as CONFIG_ESM_TEXT,et as CONFIG_TEXT,rt as CONFIG_TS_TEXT,ae as MasterCSS,ue as Rule,je as animations,Oe as colors,de as config,ae as default,se as extend,be as extractClassesFromHTML,F as fillColorScale,Ne as functions,ve as generateFromClasses,me as generateFromHTML,ze as important,Ve as initRuntime,Ae as override,De as renderHTML,Pe as rootSize,Ee as rules,We as scope,Me as selectors,Be as semantics,Ie as themeDriver,Te as viewports};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/index.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.
|
|
1
|
+
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/index.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.173","@techor/fs":"^2.5.4","@techor/log":"^2.5.4","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.4","@techor/pack":"^2.5.4","csstype":"^3.1.2","shared":"^2.0.0-beta.173","vite":"^4.2.1","puppeteer":"^21.0.1"},"version":"2.0.0-beta.173"}
|