@master/css 2.0.0-beta.163 → 2.0.0-beta.165

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.
@@ -1,186 +1,2 @@
1
- export declare const semantics: {
2
- square: {
3
- 'aspect-ratio': string;
4
- };
5
- video: {
6
- 'aspect-ratio': string;
7
- };
8
- rounded: {
9
- 'border-radius': string;
10
- };
11
- round: {
12
- 'border-radius': string;
13
- };
14
- hidden: {
15
- display: string;
16
- };
17
- hide: {
18
- display: string;
19
- };
20
- block: {
21
- display: string;
22
- };
23
- table: {
24
- display: string;
25
- };
26
- flex: {
27
- display: string;
28
- };
29
- grid: {
30
- display: string;
31
- };
32
- contents: {
33
- display: string;
34
- };
35
- inline: {
36
- display: string;
37
- };
38
- 'inline-block': {
39
- display: string;
40
- };
41
- 'inline-flex': {
42
- display: string;
43
- };
44
- 'inline-grid': {
45
- display: string;
46
- };
47
- 'inline-table': {
48
- display: string;
49
- };
50
- 'table-cell': {
51
- display: string;
52
- };
53
- 'table-caption': {
54
- display: string;
55
- };
56
- 'flow-root': {
57
- display: string;
58
- };
59
- 'list-item': {
60
- display: string;
61
- };
62
- 'table-row': {
63
- display: string;
64
- };
65
- 'table-column': {
66
- display: string;
67
- };
68
- 'table-row-group': {
69
- display: string;
70
- };
71
- 'table-column-group': {
72
- display: string;
73
- };
74
- 'table-header-group': {
75
- display: string;
76
- };
77
- 'table-footer-group': {
78
- display: string;
79
- };
80
- italic: {
81
- 'font-style': string;
82
- };
83
- oblique: {
84
- 'font-style': string;
85
- };
86
- isolate: {
87
- isolation: string;
88
- };
89
- overflowed: {
90
- overflow: string;
91
- };
92
- untouchable: {
93
- 'pointer-events': string;
94
- };
95
- static: {
96
- position: string;
97
- };
98
- fixed: {
99
- position: string;
100
- };
101
- abs: {
102
- position: string;
103
- };
104
- rel: {
105
- position: string;
106
- };
107
- sticky: {
108
- position: string;
109
- };
110
- uppercase: {
111
- 'text-transform': string;
112
- };
113
- lowercase: {
114
- 'text-transform': string;
115
- };
116
- capitalize: {
117
- 'text-transform': string;
118
- };
119
- visible: {
120
- visibility: string;
121
- };
122
- invisible: {
123
- visibility: string;
124
- };
125
- vw: {
126
- width: string;
127
- };
128
- vh: {
129
- height: string;
130
- };
131
- 'max-vw': {
132
- 'max-width': string;
133
- };
134
- 'max-vh': {
135
- 'max-height': string;
136
- };
137
- 'min-vw': {
138
- 'min-width': string;
139
- };
140
- 'min-vh': {
141
- 'min-height': string;
142
- };
143
- 'center-content': {
144
- 'justify-content': string;
145
- 'align-items': string;
146
- };
147
- 'sr-only': {
148
- position: string;
149
- width: string;
150
- height: string;
151
- padding: string;
152
- margin: string;
153
- overflow: string;
154
- clip: string;
155
- 'white-space': string;
156
- 'border-width': string;
157
- };
158
- full: {
159
- width: string;
160
- height: string;
161
- };
162
- center: {
163
- left: number;
164
- right: number;
165
- 'margin-left': string;
166
- 'margin-right': string;
167
- };
168
- middle: {
169
- top: number;
170
- bottom: number;
171
- 'margin-top': string;
172
- 'margin-bottom': string;
173
- };
174
- 'break-spaces': {
175
- 'white-space': string;
176
- };
177
- 'break-word': {
178
- 'overflow-wrap': string;
179
- overflow: string;
180
- };
181
- 'gradient-text': {
182
- '-webkit-text-fill-color': string;
183
- '-webkit-background-clip': string;
184
- 'background-clip': string;
185
- };
186
- };
1
+ import { Semantics } from './index';
2
+ export declare const semantics: Semantics;
package/dist/core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule, RuleMeta, RuleNative } from './rule';
2
- import type { Config } from './config';
2
+ import type { Config, Keyframes } from './config';
3
3
  export interface MasterCSS {
4
4
  readonly style: HTMLStyleElement;
5
5
  readonly host: Element;
@@ -16,10 +16,11 @@ export interface MasterCSS {
16
16
  breakpoints: Record<string, number>;
17
17
  mediaQueries: Record<string, string>;
18
18
  matches: Record<string, RegExp>;
19
- keyframes: Record<string, {
19
+ keyframesMap: Record<string, {
20
20
  native: RuleNative;
21
21
  count: number;
22
22
  }>;
23
+ keyframes: Keyframes;
23
24
  }
24
25
  export declare class MasterCSS {
25
26
  config: Config;
@@ -32,6 +33,7 @@ export declare class MasterCSS {
32
33
  readonly countBy: {};
33
34
  readonly observing = false;
34
35
  observer: MutationObserver;
36
+ private colorByThemeByColorName;
35
37
  constructor(config?: Config);
36
38
  cache(): void;
37
39
  /**
@@ -84,6 +86,7 @@ export declare class MasterCSS {
84
86
  */
85
87
  insertRules(rules: Rule[]): void;
86
88
  get text(): string;
89
+ private getExtendedConfig;
87
90
  }
88
91
  declare global {
89
92
  interface Window {
@@ -1 +1 @@
1
- (()=>{function pe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function be(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function ve(t){let e=[];return t.forEach(function(n,s){typeof n=="object"&&n!==null?Array.isArray(n)?e[s]=ve(n):pe(n)?e[s]=be(n):e[s]=K({},n):e[s]=n}),e}function ge(t,e){return e==="__proto__"?void 0:t[e]}function K(...t){let e={},n,s;return t.forEach(function(x){typeof x!="object"||x===null||Array.isArray(x)||Object.keys(x).forEach(function(o){if(s=ge(e,o),n=ge(x,o),n!==e)if(typeof n!="object"||n===null){e[o]=n;return}else if(Array.isArray(n)){e[o]=ve(n);return}else if(pe(n)){e[o]=be(n);return}else if(typeof s!="object"||s===null||Array.isArray(s)){e[o]=K({},n);return}else{e[o]=K(s,n);return}})}),e}var te={"(":")","'":"'",'"':'"',"{":"}"};function re(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),n=e.length,s=-1,x="",o,b=e.charCodeAt(0);if(n==1&&b==45)return"\\"+e;for(;++s<n;){if(o=e.charCodeAt(s),o==0){x+="\uFFFD";continue}if(o>=1&&o<=31||o==127||s==0&&o>=48&&o<=57||s==1&&o>=48&&o<=57&&b==45){x+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){x+=e.charAt(s);continue}x+="\\"+e.charAt(s)}return x}var Te={unit:"",order:0,separators:[","]},Oe=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ae=class{constructor(e,n={},s){this.className=e;this.meta=n;this.css=s;this.config=K(Te,n.config);let{unit:x,order:o,colored:b,native:c,analyze:p,transform:g,declare:u,create:l}=this.config,{scope:d,important:f,functions:h,themeDriver:v,keyframes:m}=s.config,{themeNames:i,colorNames:r,colorThemesMap:a,selectors:y,breakpoints:k,mediaQueries:R,classesBy:O,globalValues:V}=s,H=O[e];l&&l.call(this,e);let U,se,ce,ee,Q;if(n.origin==="semantics"){let[L,E]=n.value;ee=e.slice(L.length),U=E}else{let L;if(p)[L,ce]=p.call(this,e);else{let T=e.indexOf(":");this.prefix=e.slice(0,T+1),L=e.slice(T+1)}Q=[];let E=this,I=this.values,A=[","];this.config.separators.length&&A.push(...this.config.separators);let C="",w=0;(function T($,S,B,M=void 0,j=[],X=[],W){let D=M===void 0,Y,J=N=>N==="'"||N==='"',G=()=>Y=C.length,q=()=>{if(C){let N=C,z=D?N:C.slice(Y);if(C="",_="",I&&z in I&&!j.includes(z)){let F=w;w=0,T(I[z].toString(),S,void 0,M,[...j,z],X,W),w=F,D||(C=C.slice(0,Y)+C)}else if(V&&z in V&&!X.includes(z)){let F=w;w=0,T(V[z].toString(),S,void 0,M,j,[...X,z],W),w=F,D||(C=C.slice(0,Y)+C)}else if(D){let F=!W&&E.analyzeUnitValue(z,S);Q.push({value:F?.value??z,unit:F?.unit})}else{let F=!W&&E.analyzeUnitValue(z,S);C=F?N.slice(0,Y)+F.value+F.unit:N}G()}},Z=J(B);G();let _="";for(;w<$.length;w++){let N=$[w];if(N===B){if(Z){C+=N;let z=0;for(let F=C.length-2;C[F]==="\\";F--)z++;if(z%2)continue}else q(),C+=N;return}else if(!Z&&N in te){let z=N==="("&&_&&h?.[_];z?.name&&(C=C.slice(0,C.length-_.length)+z.name,_=z.name),C+=N,w++;let F=te[N];T($,z?.unit??S,F,_||M||"",j,X,W||!!z?.transform),z?.transform&&(C=C.slice(0,Y+_.length+1)+z.transform.call(E,C.slice(Y+_.length+1,-1))+C.slice(-1)),D&&(J(F)?(Q.push(C),C=""):q()),_=""}else if((N==="|"||N===" ")&&B!=="}"&&(!Z||M==="path"))q(),D||(C+=" ",Y++);else{if(!Z){if(N==="."){if(isNaN(+$[w+1]))break;$[w-1]==="-"&&(C+="0")}else if(A.includes(N)){q(),D?Q.push(N):(C+=N,Y++);continue}else if(D&&(N==="#"&&(C||Q.length&&$[w-1]!=="|"&&Q[w-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(N)))break;_+=N}C+=N}}M===void 0&&q()})(L,x),ee=L.slice(w)}this.order=typeof o=="function"?o.call(this,this.prefix):o,ee[0]==="!"&&(this.important=!0,ee=ee.slice(1));let he=L=>{let E=L.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((w,T)=>T%3?w:w.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),I=[],A="",C=0;for(let w=0;w<E.length;w++){let T=E[w];if(T==="\\"){A+=T+E[++w];continue}!C&&T===","?(I.push(A),A=""):(A+=T,C&&T===")"?C--:T==="("&&C++)}return A&&I.push(A),I};this.prefixSelectors=ce?he(ce):[""];let ue=ee.split("@"),de=ue[0];if(de){this.vendorSuffixSelectors={};let L=(w,T,$,S)=>{for(let[B,M]of T)if(B.test(w)){for(let j of M)L(w.replace(B,j),T,$,!0);return}S&&$.push(w)},E=[];""in y?L(de,y[""],E,!0):E.push(de);let I={};for(let[w,T]of Object.entries(y)){if(!w)continue;let $=[];for(let S of E)L(S,T,$,!1);$.length&&(I[w]=$)}let A=(w,T)=>{let $=T.reduce((S,B)=>(S.push(...he(B)),S),[]);w in this.vendorSuffixSelectors?this.vendorSuffixSelectors[w].push(...$):this.vendorSuffixSelectors[w]=$},C=Object.keys(I);if(C.length)for(let w of C)A(w,I[w]);else A("",E);for(let w of Object.values(this.vendorSuffixSelectors))for(let T of w){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));let $=[":disabled",":active",":focus",":hover"];for(let S=0;S<$.length;S++)if(T.includes($[S])){(this.priority===-1||this.priority>S)&&(this.priority=S);break}}}else this.vendorSuffixSelectors={"":[""]};for(let L=1;L<ue.length;L++){let E=ue[L];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let I,A,C=Oe.exec(E);if(C)I=C[1],A=E.slice(I.length);else{this.media={token:E,features:{}};let w=[],T=S=>{if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")w.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")w.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else if(R&&S in R)w.push(R[S]);else{let B={token:S},M="",j="",X=0;S.startsWith("<=")?(j="<=",M="max-width"):S.startsWith(">=")||k[S]?(j=">=",M="min-width"):S.startsWith(">")?(j=">",M="min-width",X=.02):S.startsWith("<")&&(j="<",M="max-width",X=-.02);let W=j?S.replace(j,""):S,D=k[W];switch(M){case"max-width":case"min-width":D?Object.assign(B,this.analyzeUnitValue(D.toString(),"px")):Object.assign(B,this.analyzeUnitValue(W,"px")),B.unit==="px"&&(B.value+=X),this.media.features[M]=B,w.push("("+M+":"+(B.value+B.unit)+")");break}}},$=E.includes("&");if($){let S=E.split("&");for(let B of S)T(B)}else T(E);if(this.media.type&&(A=this.media.type),w.length&&(A=w.join(" and ")),A)I="media";else if(!$){this.theme=E;continue}}A&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+A.replace(/\|/g," "))}}let fe=(L,E)=>{let I,A=(T,$,S)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let M=this.prefixSelectors.map(W=>W+B),j=(W,D)=>M.map(Y=>(W&&v!=="media"?v==="host"?`:host(.${W}) `:`.${W} `:"")+(d?d+" ":"")+Y).reduce((Y,J)=>(Y.push(S.reduce((G,q)=>(G.push(J+"."+re(D)+q),G),[]).join(",")),Y),[]).join(","),X=j($,e)+(H?H.reduce((W,D)=>W+","+j(this.theme??(b||se?$:""),D),""):"")+"{"+T+"}";for(let W of Object.keys(this.at).sort((D,Y)=>Y==="supports"?-1:1))X="@"+W+(W.includes(" ")?"":" ")+this.at[W]+"{"+X+"}";return $&&v==="media"&&(X=`@media(prefers-color-scheme:${$}){`+X+"}"),X},C=[];if(Q){let T=[this.theme??L,""],$,S=!1;for(let B of Q)if(typeof B=="string")C.push(B);else{let M=B.value;if(B.unit)M+=B.unit;else if(b&&a&&r){let j=!1;M=M.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(X,W,D,Y)=>{let J=a[D];if(J){let G,q;for(let Z of T)if(G=J[Z]){q=Z;break}if(G){j=!E||q===L,$||($=j);let Z=G;if(Y){let _=Y.endsWith("%")?parseFloat(Y)/100:+Y;_=isNaN(_)?1:Math.min(Math.max(_,0),1),Z+=Math.round(_*255).toString(16).toUpperCase().padStart(2,"0")}return W+Z}else S=!0}return X})}C.push(M)}if(E&&(S||($===void 0?L:!$)))return;if(I=C.reduce((B,M,j)=>B+M+(M===","||Q[j+1]===","||j===Q.length-1?"":" "),""),g&&(I=g.call(this,I,this.css.config)),b&&I==="current"&&(I="currentColor"),u){let B,M;if(Q.length===1){let j=Q[0];typeof j=="object"&&(B=j.value,M=j.unit)}U=u.call(this,M?B:I,M||"")}else U={[c]:I}}let w={};for(let T in U){let $=(M,j)=>{if(m&&(j.startsWith("animation")||j.startsWith("animation-name"))){let W=j.split(":")[1].split("!important")[0].split(" ").filter(D=>D in this.css.config.keyframes&&(!this.keyframeNames||!this.keyframeNames.includes(D)));W.length&&(this.keyframeNames||(this.keyframeNames=[]),this.keyframeNames.push(...W))}let X=j+((this.important||f)&&!j.endsWith("!important")?"!important":"");M in w?w[M].push(X):w[M]=[X]},S=T+":",B=U[T];if(typeof B=="object")if(Array.isArray(B))for(let M of B)$(L,S+M.toString());else{se=!0;for(let M in B)$(M,S+B[M])}else $(L,S+B.toString())}for(let T of Object.values(this.vendorSuffixSelectors))for(let $ in w)this.natives.push({text:A(w[$].join(";"),$,T),theme:$})};if(this.theme)fe(this.theme,!1);else if(b)for(let L of i)fe(L,!0);else fe("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,n){return Number.isNaN(+e)?e:e/(n==="rem"||n==="em"?this.css.config.rootSize:1)+n}analyzeUnitValue(e,n){let s=n??this.config.unit;if(s){let x="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[b,c]=e.split("/");return{value:+b/+c*100+"%",unit:x}}else{let b=+o[1];return x=o[3]||"",x||((s==="rem"||s==="em")&&(b=b/this.css.config.rootSize),x=s||""),{value:b,unit:x}}}}};var xe={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function ie(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function le(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)}function P(t){typeof t=="string"&&(t={"":t});let e=""in t,n=!1;for(let s in t)if(s&&+s>=100){n=!0;break}if(!n&&(!e||Object.keys(t).length>1)){let s=0,x="0"in t?ie(t[0]):[0,0,0],o,b,c=[],p=()=>{let g=o-s,u=b.map((l,d)=>(l-x[d])/g);for(let l of c){let d=l-s,f=x.map((h,v)=>Math.round(h+u[v]*d));t[l]="#"+le.call(this,...f)}};for(let g=1;g<100;g++)g in t?(c.length?(o=g,b=ie(t[g]),p(),c.length=0,x=b):x=ie(t[g]),s=g):c.push(g);c.length&&(o=100,b="100"in t?ie(t[100]):[255,255,255],p())}return e||(t[""]=t[n?"500":"50"]),t}var ye={black:"#000000",white:"#ffffff",slate:P({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:P({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:P({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:P({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:P({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:P({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:P({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:P({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:P({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:P({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:P({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:P({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:P({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:P({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:P({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:P({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:P({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:P({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:P({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:P({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var we="";var Se={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var ke={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"}};var je={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},n=(g,u)=>{let l=u.indexOf(":");if(l!==-1){g in e||(e[g]={});let d=e[g],f=u.slice(0,l);f in d||(d[f]=u.slice(l+1))}},s=g=>{let u=(l,d)=>{let f=d.slice(re(g.className).length).match(/\{(.*)\}/)[1].split(";");for(let h of f)n(l,h)};if(this.theme){let l=g.natives.find(d=>d.theme===this.theme)??g.natives.find(d=>!d.theme);l&&u(this.theme,l.text)}else for(let l of g.natives)u(l.theme,l.text);if(g.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let l of g.keyframeNames)this.keyframeNames.includes(l)||this.keyframeNames.push(l)}},x=[],o="",b=()=>{o&&(x.push(o.replace(/ /g,"|")),o="")},c=1;(function g(u){for(;c<t.length;c++){let l=t[c];if(!u){if(l===";"){b();continue}if(l==="}")break}if(o+=l,u===l){if(u==="'"||u==='"'){let d=0;for(let f=o.length-2;o[f]==="\\";f--)d++;if(d%2)continue}break}else l in te&&u!=="'"&&u!=='"'&&(c++,g(te[l]))}})(void 0),b();for(let g of x){let u=this.css.create(g);if(Array.isArray(u))if(u.length)for(let l of u)s(l);else n(this.theme??"",g);else s(u)}let p={};for(let g in e)for(let[u,l]of Object.entries(e[g]))u in p?p[u][g]=l:p[u]={[g]:l};return p}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,n]=t.split(" x ");return{width:e,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(t){return[t.slice(4)]},declare(t){let[e,n]=t.split(" x ");return{"min-width":e,"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(t){return[t.slice(4)]},declare(t){let[e,n]=t.split(" x ");return{"max-width":e,"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(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{native:!0,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{native:!0,order:-1,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},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(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0,analyze(t){return[t.startsWith("transform")?t.slice(10):t]}},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(t){if(t.startsWith("~"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+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(t){if(t.startsWith("@"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+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(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},order:-2},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(t){if(t.startsWith("gradient"))return["linear-"+t];let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+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(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{match:"^grid-rows:.",declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMarginLeft:{match:"^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(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}}},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(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}}},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(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},Ce=je;var Re={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}};var $e={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=this.values,n=this.css.globalValues,s=this.css.config.functions,x=this,o=0,b="",c="";return function p(g,u){let l=!1,d=(f,h=!1,v=!1)=>{if(f!=="("&&(e&&c in e?c=e[c].toString():n&&c in n&&(c=n[c].toString())),c&&!l&&!u){let m=x.analyzeUnitValue(c,s.calc.unit);m&&(c=m.value+m.unit)}b+=c+(h&&t[o-1]!==" "?" ":"")+f+(v&&t[o+1]!==" "?" ":""),c="",l=!1};for(;o<t.length;o++){let f=t[o];if(f==="("){let h=c,v=l,m=b.length;if(d(f),o++,p(h,v||u),h!=="calc"){let i=s[h];if(i){let r=b.slice(m+2,b.length-1);b=b.slice(0,m-h.length+1)+(i.name??h)+"("+(i.transform?.(r)??r)+")"}}}else if(f===")"){d(f);break}else if(f===",")d(f,!1,!0);else if(f===" ")d(f);else{let h=t[o-1];switch(f){case"+":!c&&h!==")"?c+=f:d(f,!0,!0);break;case"-":g==="var"||!c&&h!==")"?c+=f:d(f,!0,!0);break;case"*":d(f,!0,!0);break;case"/":d(f,!0,!0),l=!0;break;default:c+=f;break}}}o>=t.length-1&&d("")}("",!1),b}},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:""}};var Be="class";var ne={breakpoints:xe,colors:ye,rootSize:16,scope:we,selectors:Se,semantics:ke,rules:Ce,override:!1,important:!1,functions:$e,keyframes:Re,themeDriver:Be};var Me=[",",".","#","[","!","*",">","+","~",":","@"];var oe=class t{constructor(e=ne){this.config=e;if(!e?.override){let n=x=>{let o=K({},x),b=(c,p)=>{for(let g in c){let u=c[g];typeof u=="object"&&!Array.isArray(u)?b(u,p):p?p(g,u,c):g&&(c[g]={"":u})}};return b(o.classes),b(o.colors,(c,p,g)=>{if(c.startsWith("@"))return p;let u={},l=/(?:rgba?\(.*?\).*?(?= |$))|(?:[^ ]+)(?= |$)/g,d;for(;(d=l.exec(p))!==null;){let[f,h]=d[0].split("@");u[h?"@"+h:""]=f}c?g[c]=u:(Object.assign(g,u),Object.prototype.hasOwnProperty.call(u,"")||delete g[c])}),b(o.breakpoints),b(o.mediaQueries),b(o.selectors),b(o.values),o},s=(x,o)=>{let b=o.extends?.length?K({},o,...o.extends.map(p=>s(o,"config"in p?p.config:p))):o,c=K(n(x),n(b));return Object.prototype.hasOwnProperty.call(b,"keyframes")&&Object.assign(c.keyframes,b.keyframes),c};this.config=s(ne,e)}this.cache(),t.instances.push(this)}static root;static config=ne;static instances=[];static refresh=e=>{for(let n of this.instances)n.refresh(e)};rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:n,selectors:s,colors:x,values:o,breakpoints:b,mediaQueries:c,rules:p}=this.config;function g(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function u(i,r,a="",y={}){let k=H=>H?(a?a+"-":"")+H:a,R=Object.entries(i),O=[],V=[];for(let H of R){let U=H[1];(typeof U=="object"&&!Array.isArray(U)?O:V).push(H)}for(let[H,U]of O)u(U,r,k(H),y);if(r&&a)V.length&&(y[a]=V.reduce((H,[U,se])=>(H[U]=se,H),{}));else for(let[H,U]of V)y[k(H)]=U;return y}function l(i){for(let[r,a]of Object.entries(i))/^[0-9]+x$/.test(r)&&typeof a=="number"&&(i["-"+r]=a*-1);return i}if(e)for(let[i,r]of Object.entries(u(e,!0)))this.semantics.push([new RegExp("^"+g(i)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[i,r]]);if(s)for(let[i,r]of Object.entries(u(s,!1))){let a=new RegExp(g(i)+"(?![a-z-])");for(let y of Array.isArray(r)?r:[r]){let k=y.match(/^::-[a-z]+-/m)?.[0]??"",R=this.selectors[k];R||(R=this.selectors[k]=[]);let O=R.find(([V])=>V===a);O||(O=[a,[]],R.push(O)),O[1].push(y)}}o&&(this.globalValues=l(u(o,!1))),b&&(this.breakpoints=u(b,!1)),c&&(this.mediaQueries=u(c,!1));let d=n?u(n,!1):{},f=Object.keys(d),h=i=>{if(Object.prototype.hasOwnProperty.call(this.classes,i))return;let r=this.classes[i]=[],a=d[i];if(!a)return;let y=a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let k of y){let R=O=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,O)){let V=this.classesBy[O];V.includes(i)||V.push(i)}else this.classesBy[O]=[i];r.includes(O)||r.push(O)};if(f.includes(k)){h(k);for(let O of this.classes[k])R(O)}else R(k)}};for(let i of f)h(i);let v=x?u(x,!0):{};for(let[i,r]of Object.entries(v)){let a=typeof r=="string"?{"":r}:r;for(let[y,k]of Object.entries(a)){let R=(O,V)=>{Object.prototype.hasOwnProperty.call(this.colorThemesMap,V)?this.colorThemesMap[V][O]=k:this.colorThemesMap[V]={[O]:k}};if(y.startsWith("@")){let O=y.slice(1);R(O,i),this.themeNames.includes(O)||this.themeNames.push(O)}else R("",i+(y?"-"+y:""))}}this.colorNames=x?Object.keys(x):[];let m=i=>{for(let[r,a]of Object.entries(this.colorThemesMap))for(let[y,k]of Object.entries(a))k.startsWith("#")||i(r,a,y,k)};if(m((i,r,a,y)=>{let k=/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(y);if(k){let R="#"+le(+k[1],+k[2],+k[3]);k[4]&&(R+=Math.round(255*+k[4]).toString(16)),r[a]=R}}),m((i,r,a,y)=>{let[k,R]=y.split("/"),O=this.colorThemesMap[k];if(O){let V=(a?O[a]:void 0)??O[""];r[a]=R?V.slice(0,7)+Math.round(255*+R).toString(16):V}else console.error(`"${i}: ${y}" is an invalid ".colors" config`)}),p)for(let i in p){let r=p[i],{native:a,values:y,colored:k}=r,R=r.match;if(r.id=i,r.native=a===!0?i.replace(/(?!^)[A-Z]/g,O=>"-"+O).toLowerCase():void 0,y&&(this.values[i]=l(u(y,!1))),R){let O=Object.keys(this.values[i]??{});R.includes("$values")&&(R=O.length?R.replace(/\$values/,O.join("|")):R.replace(/(?:\|)?\$values/,"")),k&&R.includes("$colors")&&(R=this.colorNames.length?R.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):R.replace(/(?:\|)?\$colors/,"")),this.matches[i]=new RegExp(R)}}}observe(e,n={subtree:!0,childList:!0}){if(typeof window<"u"){if(e||(e=document),this.root===e)return this;this.root=e;let s=e===document;s&&(t.root=this),this.host=s?document.documentElement:this.root.host;let x=s?document.head:e,o=s?document.styleSheets:e.styleSheets;for(let c of o){let{ownerNode:p}=c;if(p&&p.id==="master"){this.style=p;break}}if(this.style)for(let c=0;c<this.style.sheet.cssRules.length;c++){let p=this.style.sheet.cssRules[c];if(p.constructor.name==="CSSKeyframesRule")continue;let g=l=>{if(l.selectorText){let f=l.selectorText.split(", ")[0].split(" ");for(let h=0;h<f.length;h++){let v=f[h];if(v[0]==="."){let m=v.slice(1),i="";for(let r=0;r<m.length;r++){let a=m[r],y=m[r+1];if(a==="\\"){if(r++,y!=="\\"){i+=y;continue}}else if(Me.includes(a))break;i+=a}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(l.cssRules)for(let d=0;d<l.cssRules.length;d++){let f=g(l.cssRules[d]);if(f)return f}},u=g(p);if(u){this.rules.push(u),this.ruleBy[u.className]=u;for(let l=0;l<u.natives.length;l++)u.natives[l].cssRule=this.style.sheet.cssRules[c+l];c+=u.natives.length-1,u.config.insert?.call(u)}}else this.style=document.createElement("style"),this.style.id="master",x.append(this.style);let b=c=>{c.forEach(p=>{Object.prototype.hasOwnProperty.call(this.countBy,p)?this.countBy[p]++:(this.countBy[p]=1,this.insert(p))})};b(this.host.classList),n.subtree&&this.host.querySelectorAll("[class]").forEach(c=>b(c.classList)),this.observer=new MutationObserver(c=>{let p={},g=[],u=[],l=[],d=(m,i)=>{i?m.classList.forEach(h):m.classList.forEach(f);let r=m.children;for(let a=0;a<r.length;a++){let y=r[a];y.classList&&(u.push(y),d(y,i))}},f=m=>{Object.prototype.hasOwnProperty.call(p,m)?p[m]++:p[m]=1},h=m=>{Object.prototype.hasOwnProperty.call(p,m)?p[m]--:Object.prototype.hasOwnProperty.call(this.countBy,m)&&(p[m]=-1)},v=(m,i)=>{for(let r=0;r<m.length;r++){let a=m[r];a.classList&&!u.includes(a)&&!l.includes(a)&&(a.isConnected!==i?(u.push(a),d(a,i)):l.push(a))}};for(let m=0;m<c.length;m++){let i=c[m],{addedNodes:r,removedNodes:a,type:y,target:k}=i;if(y==="attributes"){if(g.find(R=>R.target===k))continue;g.push(i)}else v(r,!1),(!k.isConnected||!u.includes(k))&&v(a,!0)}if(!(!g.length&&!Object.keys(p).length)){for(let{oldValue:m,target:i}of g){let r=u.includes(i),a=i.classList,y=m?m.split(" "):[];if(r){if(i.isConnected)continue;for(let k of y)a.contains(k)||h(k)}else if(i.isConnected){a.forEach(k=>{y.includes(k)||f(k)});for(let k of y)a.contains(k)||h(k)}}for(let m in p){let i=p[m],r=(this.countBy[m]||0)+i;r===0?(delete this.countBy[m],this.delete(m)):(Object.prototype.hasOwnProperty.call(this.countBy,m)||this.insert(m),this.countBy[m]=r)}}}),this.observer.observe(e,{...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 e=this.style?.sheet;if(e?.cssRules)for(let n=e.cssRules.length-1;n>=0;n--)e.deleteRule(n);this.style?.remove(),this.style=null,this.root=null}match(e){for(let n in this.config.rules){let s=this.config.rules[n],x=this.matches[n],{native:o}=s;if(x&&x.test(e))return{origin:"match",config:s};if(o&&e.startsWith(o+":"))return{origin:"match",config:s}}for(let n of this.semantics)if(e.match(n[0]))return{origin:"semantics",value:n[1]}}create(e){let n=s=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,s))return this.ruleBy[s];let x=this.match(s);if(x)return new ae(s,x,this)};return(Object.prototype.hasOwnProperty.call(this.classes,e)?this.classes[e].map(s=>n(s)):[n(e)]).filter(s=>s&&s.text)}refresh(e){if(e?.override?this.config=e:this.config=K(ne,e),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 s in this.countBy)this.insert(s)}destroy(){let e=t.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let n=this.style?.sheet,s=x=>{let o=this.ruleBy[x];if(!(!o||Object.prototype.hasOwnProperty.call(this.classesBy,x)&&this.classesBy[x].some(b=>Object.prototype.hasOwnProperty.call(this.countBy,b)))){if(n&&o.natives.length){let b=o.natives[0];for(let c=0;c<n.cssRules.length;c++)if(n.cssRules[c]===b.cssRule){for(let g=0;g<o.natives.length;g++)n.deleteRule(c);break}}if(this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[x],o.keyframeNames){let b=this.rules[0];for(let c of o.keyframeNames){let p=this.keyframes[c];if(!--p.count){let g=b.natives.indexOf(p.native);this.style.sheet.deleteRule(g),b.natives.splice(g,1),delete this.keyframes[c]}}b.natives.length||this.rules.splice(0,1)}o.config.delete?.call(o,x)}};if(Object.prototype.hasOwnProperty.call(this.classes,e)){for(let x of this.classes[e])Object.prototype.hasOwnProperty.call(this.countBy,x)||s(x);delete this.ruleBy[e]}else s(e)}insert(e){let n=this.create(e);return n.length?(this.insertRules(n),!0):!1}insertRules(e){for(let n of e){if(this.ruleBy[n.className])continue;let s,x=Object.keys(this.keyframes).length,o=this.rules.length-1,{media:b,order:c,priority:p,hasWhere:g,className:u}=n,l=(h,v,m)=>{let i=h;for(;i<=o;i++){let r=this.rules[i];if(v?.(r))return m?-1:i-1;if(m?.(r))return i}return m?-1:i-1},d,f;if(b){let h=this.rules.findIndex(v=>v.media);if(h===-1)s=o+1;else{let{"max-width":v,"min-width":m}=b.features;if(v||m){let i=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(i===-1)s=o+1;else if(v&&m){if(p===-1?(d=l(i,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),f=l(i,r=>r.priority!==-1)):(d=l(i,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),f=o),d!==-1){let r=v.value-m.value,a=f,y=d;for(d=void 0;a>=y;a--){let{"max-width":k,"min-width":R}=this.rules[a].media.features,O=k.value-R.value;if(O<r)f=a-1;else if(O===r)d=a;else break}}if(d!==-1){let r=v.value-m.value;for(let a=f;a>=d;a--){let{"max-width":y,"min-width":k}=this.rules[a].media.features,R=y.value-k.value;if(R<r)f=a-1;else if(R>r){d=a+1;break}}}}else if(m){if(p===-1?(d=l(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"]),f=l(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(d=l(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),f=l(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=f;r>=d;r--){let a=this.rules[r].media.features["min-width"].value;if(a>m.value)f=r-1;else if(a<m.value){d=r+1;break}}}else if(p===-1?(d=l(i,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),f=l(i,r=>r.media.features["min-width"]||r.priority!==-1)):(d=l(i,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),f=l(i,r=>r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=f;r>=d;r--){let a=this.rules[r].media.features["max-width"].value;if(a<v.value)f=r-1;else if(a>v.value){d=r+1;break}}}else p===-1?(d=h,f=l(h,i=>i.media?.features["max-width"]||i.media?.features["min-width"]||i.priority!==-1)):(d=l(h,i=>i.media?.features["max-width"]||i.media?.features["min-width"],i=>i.priority!==-1),f=l(h,i=>i.media?.features["max-width"]||i.media?.features["min-width"]))}}else{let h=x?1:0;p===-1?(d=h,f=l(h,v=>v.media||v.priority!==-1)):(d=l(h,v=>v.media,v=>v.priority!==-1),f=l(h,v=>v.media))}if(s===void 0)if(d===-1)s=f+1;else{if(p===-1)for(let h=d;h<=f;h++){let v=this.rules[h];if(!(!g&&v.hasWhere)&&(g&&!v.hasWhere||v.order>=c)){s=h;break}}else for(let h=d;h<=f;h++){let v=this.rules[h];if(!(!g&&v.hasWhere)){if(g&&!v.hasWhere){s=h;break}if(v.priority<p){s=h;break}else if(v.priority===p){if(v.order>=c){s=h;break}}else s=h+1}}s===void 0&&(s=f+1)}if(this.rules.splice(s,0,n),this.ruleBy[u]=n,this.style){let h=this.style.sheet,v=0,m=i=>{let r=this.rules[i];if(r){if(!r.natives.length)return m(i-1);let a=r.natives[r.natives.length-1].cssRule;for(let y=0;y<h.cssRules.length;y++)if(h.cssRules[y]===a){v=y+1;break}}};m(s-1);for(let i=0;i<n.natives.length;)try{let r=n.natives[i];h.insertRule(r.text,v),r.cssRule=h.cssRules[v++],i++}catch(r){console.error(r),n.natives.splice(i,1)}}if(n.keyframeNames){let h=this.style?.sheet;for(let v of n.keyframeNames)if(Object.prototype.hasOwnProperty.call(this.keyframes,v))this.keyframes[v].count++;else{let m={text:`@keyframes ${v}{`+Object.entries(this.config.keyframes[v]).map(([r,a])=>`${r}{${Object.entries(a).map(([y,k])=>y+":"+k).join(";")}}`).join("")+"}",theme:""},i;if(Object.keys(this.keyframes).length?(i=this.rules[0]).natives.push(m):this.rules.splice(0,0,i={natives:[m],get text(){return this.natives.map(r=>r.text).join("")}}),h){let r;for(let a=0;a<h.cssRules.length;a++){let y=h.cssRules[a];if(y.constructor.name!=="CSSKeyframesRule")break;if(y.name===v){r=y;break}}if(r)m.cssRule=r;else{let a=i.natives.length-1;h.insertRule(m.text,a),m.cssRule=h.cssRules[a]}}this.keyframes[v]={native:m,count:1}}}n.config.insert?.call(n)}}get text(){return this.rules.map(e=>e.text).join("")}};typeof window<"u"&&(window.MasterCSS=oe);function me(t,e){return new oe(t).observe(e)}me(window.masterCSSConfig);})();
1
+ (()=>{function ve(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function xe(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 ye(e){let t=[];return e.forEach(function(o,s){typeof o=="object"&&o!==null?Array.isArray(o)?t[s]=ye(o):ve(o)?t[s]=xe(o):t[s]=ne({},o):t[s]=o}),t}function be(e,t){return t==="__proto__"?void 0:e[t]}function ne(...e){let t={},o,s;return e.forEach(function(x){typeof x!="object"||x===null||Array.isArray(x)||Object.keys(x).forEach(function(n){if(s=be(t,n),o=be(x,n),o!==t)if(typeof o!="object"||o===null){t[n]=o;return}else if(Array.isArray(o)){t[n]=ye(o);return}else if(ve(o)){t[n]=xe(o);return}else if(typeof s!="object"||s===null||Array.isArray(s)){t[n]=ne({},o);return}else{t[n]=ne(s,o);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),o=t.length,s=-1,x="",n,f=t.charCodeAt(0);if(o==1&&f==45)return"\\"+t;for(;++s<o;){if(n=t.charCodeAt(s),n==0){x+="\uFFFD";continue}if(n>=1&&n<=31||n==127||s==0&&n>=48&&n<=57||s==1&&n>=48&&n<=57&&f==45){x+="\\"+n.toString(16)+" ";continue}if(n>=128||n==45||n==95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){x+=t.charAt(s);continue}x+="\\"+t.charAt(s)}return x}var je={unit:"",order:0,separators:[","]},We=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,fe=class{constructor(t,o={},s){this.className=t;this.meta=o;this.css=s;this.config=ne(je,o.config);let{unit:x,order:n,colored:f,native:d,analyze:b,transform:p,declare:v,create:a}=this.config,{scope:m,important:h,functions:g,themeDriver:u}=s.config,{themeNames:c,colorNames:i,colorThemesMap:r,selectors:l,breakpoints:y,mediaQueries:k,classesBy:B,globalValues:S,keyframes:A}=s,W=B[t];a&&a.call(this,t);let N,q,te,Z,D;if(o.origin==="semantics"){let[I,E]=o.value;Z=t.slice(I.length),N=E}else{let I;if(b)[I,te]=b.call(this,t);else{let M=t.indexOf(":");this.prefix=t.slice(0,M+1),I=t.slice(M+1)}D=[];let E=this,P=this.values,X=[","];this.config.separators.length&&X.push(...this.config.separators);let R="",w=0;(function M($,C,T,O=void 0,j=[],_=[],L){let F=O===void 0,H,se=z=>z==="'"||z==='"',ie=()=>H=R.length,J=()=>{if(R){let z=R,V=F?z:R.slice(H);if(R="",U="",P&&V in P&&!j.includes(V)){let Q=w;w=0,M(P[V].toString(),C,void 0,O,[...j,V],_,L),w=Q,F||(R=R.slice(0,H)+R)}else if(S&&V in S&&!_.includes(V)){let Q=w;w=0,M(S[V].toString(),C,void 0,O,j,[..._,V],L),w=Q,F||(R=R.slice(0,H)+R)}else if(F){let Q=!L&&E.analyzeUnitValue(V,C);D.push({value:Q?.value??V,unit:Q?.unit})}else{let Q=!L&&E.analyzeUnitValue(V,C);R=Q?z.slice(0,H)+Q.value+Q.unit:z}ie()}},ee=se(T);ie();let U="";for(;w<$.length;w++){let z=$[w];if(z===T){if(ee){R+=z;let V=0;for(let Q=R.length-2;R[Q]==="\\";Q--)V++;if(V%2)continue}else J(),R+=z;return}else if(!ee&&z in ae){let V=z==="("&&U&&g?.[U];V?.name&&(R=R.slice(0,R.length-U.length)+V.name,U=V.name),R+=z,w++;let Q=ae[z];M($,V?.unit??C,Q,U||O||"",j,_,L||!!V?.transform),V?.transform&&(R=R.slice(0,H+U.length+1)+V.transform.call(E,R.slice(H+U.length+1,-1))+R.slice(-1)),F&&(se(Q)?(D.push(R),R=""):J()),U=""}else if((z==="|"||z===" ")&&T!=="}"&&(!ee||O==="path"))J(),F||(R+=" ",H++);else{if(!ee){if(z==="."){if(isNaN(+$[w+1]))break;$[w-1]==="-"&&(R+="0")}else if(X.includes(z)){J(),F?D.push(z):(R+=z,H++);continue}else if(F&&(z==="#"&&(R||D.length&&$[w-1]!=="|"&&D[w-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(z)))break;U+=z}R+=z}}O===void 0&&J()})(I,x),Z=I.slice(w)}this.order=typeof n=="function"?n.call(this,this.prefix):n,Z[0]==="!"&&(this.important=!0,Z=Z.slice(1));let re=I=>{let E=I.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((w,M)=>M%3?w:w.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),P=[],X="",R=0;for(let w=0;w<E.length;w++){let M=E[w];if(M==="\\"){X+=M+E[++w];continue}!R&&M===","?(P.push(X),X=""):(X+=M,R&&M===")"?R--:M==="("&&R++)}return X&&P.push(X),P};this.prefixSelectors=te?re(te):[""];let K=Z.split("@"),G=K[0];if(G){this.vendorSuffixSelectors={};let I=(w,M,$,C)=>{for(let[T,O]of M)if(T.test(w)){for(let j of O)I(w.replace(T,j),M,$,!0);return}C&&$.push(w)},E=[];""in l?I(G,l[""],E,!0):E.push(G);let P={};for(let[w,M]of Object.entries(l)){if(!w)continue;let $=[];for(let C of E)I(C,M,$,!1);$.length&&(P[w]=$)}let X=(w,M)=>{let $=M.reduce((C,T)=>(C.push(...re(T)),C),[]);w in this.vendorSuffixSelectors?this.vendorSuffixSelectors[w].push(...$):this.vendorSuffixSelectors[w]=$},R=Object.keys(P);if(R.length)for(let w of R)X(w,P[w]);else X("",E);for(let w of Object.values(this.vendorSuffixSelectors))for(let M of w){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));let $=[":disabled",":active",":focus",":hover"];for(let C=0;C<$.length;C++)if(M.includes($[C])){(this.priority===-1||this.priority>C)&&(this.priority=C);break}}}else this.vendorSuffixSelectors={"":[""]};for(let I=1;I<K.length;I++){let E=K[I];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let P,X,R=We.exec(E);if(R)P=R[1],X=E.slice(P.length);else{this.media={token:E,features:{}};let w=[],M=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")w.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")w.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else if(k&&C in k)w.push(k[C]);else{let T={token:C},O="",j="",_=0;C.startsWith("<=")?(j="<=",O="max-width"):C.startsWith(">=")||y[C]?(j=">=",O="min-width"):C.startsWith(">")?(j=">",O="min-width",_=.02):C.startsWith("<")&&(j="<",O="max-width",_=-.02);let L=j?C.replace(j,""):C,F=y[L];switch(O){case"max-width":case"min-width":F?Object.assign(T,this.analyzeUnitValue(F.toString(),"px")):Object.assign(T,this.analyzeUnitValue(L,"px")),T.unit==="px"&&(T.value+=_),this.media.features[O]=T,w.push("("+O+":"+(T.value+T.unit)+")");break}}},$=E.includes("&");if($){let C=E.split("&");for(let T of C)M(T)}else M(E);if(this.media.type&&(X=this.media.type),w.length&&(X=w.join(" and ")),X)P="media";else if(!$){this.theme=E;continue}}X&&(this.at[P]=(P in this.at?this.at[P]+" and ":"")+X.replace(/\|/g," "))}}let oe=(I,E)=>{let P,X=(M,$,C)=>{let T="";this.direction&&(T+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(L=>L+T),j=(L,F)=>O.map(H=>(L&&u!=="media"?u==="host"?`:host(.${L}) `:`.${L} `:"")+(m?m+" ":"")+H).reduce((H,se)=>(H.push(C.reduce((ie,J)=>(ie.push(se+"."+le(F)+J),ie),[]).join(",")),H),[]).join(","),_=j($,t)+(W?W.reduce((L,F)=>L+","+j(this.theme??(f||q?$:""),F),""):"")+"{"+M+"}";for(let L of Object.keys(this.at).sort((F,H)=>H==="supports"?-1:1))_="@"+L+(L.includes(" ")?"":" ")+this.at[L]+"{"+_+"}";return $&&u==="media"&&(_=`@media(prefers-color-scheme:${$}){`+_+"}"),_},R=[];if(D){let M=[this.theme??I,""],$,C=!1;for(let T of D)if(typeof T=="string")R.push(T);else{let O=T.value;if(T.unit)O+=T.unit;else if(f&&r&&i){let j=!1;O=O.replace(new RegExp(`(^|,| |\\()((?:${i.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(_,L,F,H)=>{let se=r[F];if(se){let ie,J;for(let ee of M)if(ie=se[ee]){J=ee;break}if(ie){j=!E||J===I,$||($=j);let ee=ie;if(H){let U=H.endsWith("%")?parseFloat(H)/100:+H;U=isNaN(U)?1:Math.min(Math.max(U,0),1),ee+=Math.round(U*255).toString(16).toUpperCase().padStart(2,"0")}return L+ee}else C=!0}return _})}R.push(O)}if(E&&(C||($===void 0?I:!$)))return;if(P=R.reduce((T,O,j)=>T+O+(O===","||D[j+1]===","||j===D.length-1?"":" "),""),p&&(P=p.call(this,P,this.css.config)),f&&P==="current"&&(P="currentColor"),v){let T,O;if(D.length===1){let j=D[0];typeof j=="object"&&(T=j.value,O=j.unit)}N=v.call(this,O?T:P,O||"")}else N={[d]:P}}let w={};for(let M in N){let $=(O,j)=>{if(A&&(j.startsWith("animation")||j.startsWith("animation-name"))){let L=j.split(":")[1].split("!important")[0].split(" ").filter(F=>F in this.css.keyframes&&(!this.keyframeNames||!this.keyframeNames.includes(F)));L.length&&(this.keyframeNames||(this.keyframeNames=[]),this.keyframeNames.push(...L))}let _=j+((this.important||h)&&!j.endsWith("!important")?"!important":"");O in w?w[O].push(_):w[O]=[_]},C=M+":",T=N[M];if(typeof T=="object")if(Array.isArray(T))for(let O of T)$(I,C+O.toString());else{q=!0;for(let O in T)$(O,C+T[O])}else $(I,C+T.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let $ in w)this.natives.push({text:X(w[$].join(";"),$,M),theme:$})};if(this.theme)oe(this.theme,!1);else if(f)for(let I of c)oe(I,!0);else oe("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,o){return Number.isNaN(+t)?t:t/(o==="rem"||o==="em"?this.css.config.rootSize:1)+o}analyzeUnitValue(t,o){let s=o??this.config.unit;if(s){let x="",n=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(n)if(t.includes("/")){let[f,d]=t.split("/");return{value:+f/+d*100+"%",unit:x}}else{let f=+n[1];return x=n[3]||"",x||((s==="rem"||s==="em")&&(f=f/this.css.config.rootSize),x=s||""),{value:f,unit:x}}}}};var we={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};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,o){return((1<<24)+(e<<16)+(t<<8)+o).toString(16).slice(1)}function Y(e){typeof e=="string"&&(e={"":e});let t=""in e,o=!1;for(let s in e)if(s&&+s>=100){o=!0;break}if(!o&&(!t||Object.keys(e).length>1)){let s=0,x="0"in e?ce(e[0]):[0,0,0],n,f,d=[],b=()=>{let p=n-s,v=f.map((a,m)=>(a-x[m])/p);for(let a of d){let m=a-s,h=x.map((g,u)=>Math.round(g+v[u]*m));e[a]="#"+me.call(this,...h)}};for(let p=1;p<100;p++)p in e?(d.length?(n=p,f=ce(e[p]),b(),d.length=0,x=f):x=ce(e[p]),s=p):d.push(p);d.length&&(n=100,f="100"in e?ce(e[100]):[255,255,255],b())}return t||(e[""]=e[o?"500":"50"]),e}var Ce={black:"#000000",white:"#ffffff",slate:Y({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:Y({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:Y({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:Y({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:Y({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:Y({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:Y({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:Y({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:Y({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:Y({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:Y({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:Y({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:Y({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:Y({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:Y({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:Y({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:Y({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:Y({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:Y({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:Y({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var ke="";var Se={"::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"};var Re={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"}};var Ee={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={},o=(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))}},s=p=>{let v=(a,m)=>{let h=m.slice(le(p.className).length).match(/\{(.*)\}/)[1].split(";");for(let g of h)o(a,g)};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.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let a of p.keyframeNames)this.keyframeNames.includes(a)||this.keyframeNames.push(a)}},x=[],n="",f=()=>{n&&(x.push(n.replace(/ /g,"|")),n="")},d=1;(function p(v){for(;d<e.length;d++){let a=e[d];if(!v){if(a===";"){f();continue}if(a==="}")break}if(n+=a,v===a){if(v==="'"||v==='"'){let m=0;for(let h=n.length-2;n[h]==="\\";h--)m++;if(m%2)continue}break}else a in ae&&v!=="'"&&v!=='"'&&(d++,p(ae[a]))}})(void 0),f();for(let p of x){let v=this.css.create(p);if(Array.isArray(v))if(v.length)for(let a of v)s(a);else o(this.theme??"",p);else s(v)}let b={};for(let p in t)for(let[v,a]of Object.entries(t[p]))v in b?b[v][p]=a:b[v]={[p]:a};return b}},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","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,o]=e.split(" x ");return{width:t,height:o}}},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,o]=e.split(" x ");return{"min-width":t,"min-height":o}}},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,o]=e.split(" x ");return{"max-width":t,"max-height":o}}},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","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,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}}}},$e=Ee;var Be={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}};var Te={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,o=this.css.globalValues,s=this.css.config.functions,x=this,n=0,f="",d="";return function b(p,v){let a=!1,m=(h,g=!1,u=!1)=>{if(h!=="("&&(t&&d in t?d=t[d].toString():o&&d in o&&(d=o[d].toString())),d&&!a&&!v){let c=x.analyzeUnitValue(d,s.calc.unit);c&&(d=c.value+c.unit)}f+=d+(g&&e[n-1]!==" "?" ":"")+h+(u&&e[n+1]!==" "?" ":""),d="",a=!1};for(;n<e.length;n++){let h=e[n];if(h==="("){let g=d,u=a,c=f.length;if(m(h),n++,b(g,u||v),g!=="calc"){let i=s[g];if(i){let r=f.slice(c+2,f.length-1);f=f.slice(0,c-g.length+1)+(i.name??g)+"("+(i.transform?.(r)??r)+")"}}}else if(h===")"){m(h);break}else if(h===",")m(h,!1,!0);else if(h===" ")m(h);else{let g=e[n-1];switch(h){case"+":!d&&g!==")"?d+=h:m(h,!0,!0);break;case"-":p==="var"||!d&&g!==")"?d+=h:m(h,!0,!0);break;case"*":m(h,!0,!0);break;case"/":m(h,!0,!0),a=!0;break;default:d+=h;break}}}n>=e.length-1&&m("")}("",!1),f}},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:""}};var Oe="class";var ue={breakpoints:we,colors:Ce,rootSize:16,scope:ke,selectors:Se,semantics:Re,rules:$e,override:!1,important:!1,functions:Te,keyframes:Be,themeDriver:Oe};var Me=[",",".","#","[","!","*",">","+","~",":","@"];function ge(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var he="_CNO_",de=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 o of this.instances)o.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.breakpoints={},this.mediaQueries={},this.matches={},this.keyframesMap={},this.keyframes={};let{semantics:t,classes:o,selectors:s,colors:x,values:n,breakpoints:f,mediaQueries:d,rules:b,keyframes:p}=this.config;function v(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(i,r,l="",y={}){let k=W=>W?(l?l+"-":"")+W:l,B=Object.entries(i),S=[],A=[];for(let W of B){let N=W[1];(typeof N=="object"&&!Array.isArray(N)?S:A).push(W)}for(let[W,N]of S)a(N,r,k(W),y);if(r&&l)A.length&&(y[l]=A.reduce((W,[N,q])=>(W[N]=q,W),{}));else for(let[W,N]of A)y[k(W)]=N;return y}function m(i){for(let[r,l]of Object.entries(i))/^[0-9]+x$/.test(r)&&typeof l=="number"&&(i["-"+r]=l*-1);return i}if(t)for(let[i,r]of Object.entries(a(t,!0))){let l={};for(let y of Object.keys(r))l[ge(y)]=r[y];this.semantics.push([new RegExp("^"+v(i)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[i,l]])}if(s)for(let[i,r]of Object.entries(a(s,!1))){let l=new RegExp(v(i)+"(?![a-z-])");for(let y of Array.isArray(r)?r:[r]){let k=y.match(/^::-[a-z]+-/m)?.[0]??"",B=this.selectors[k];B||(B=this.selectors[k]=[]);let S=B.find(([A])=>A===l);S||(S=[l,[]],B.push(S)),S[1].push(y)}}if(n&&(this.globalValues=m(a(n,!1))),f&&(this.breakpoints=a(f,!1)),d&&(this.mediaQueries=a(d,!1)),p)for(let i in p){let r=this.keyframes[i]={},l=p[i];for(let y in l){let k=r[y]={},B=l[y];for(let S in B)k[ge(S)]=B[S]}}let h=o?a(o,!1):{},g=Object.keys(h),u=i=>{if(Object.prototype.hasOwnProperty.call(this.classes,i))return;let r=this.classes[i]=[],l=h[i];if(!l)return;let y=l.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let k of y){let B=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let A=this.classesBy[S];A.includes(i)||A.push(i)}else this.classesBy[S]=[i];r.includes(S)||r.push(S)};if(g.includes(k)){u(k);for(let S of this.classes[k])B(S)}else B(k)}};for(let i of g)u(i);this.colorNames=Object.keys(x);let c=Object.entries(this.colorByThemeByColorName).reduce((i,[r,l])=>(i[r]=()=>{let y=(S,A)=>A?S.slice(0,7)+Math.round(255*+A).toString(16):S,k={};for(let S in l){let A=l[S].split(" ");for(let W of A){let N=W.lastIndexOf("@"),q=N!==-1?W.slice(0,N):W,te=N!==-1?W.slice(N+1):"",Z=S.slice(1)||te;if(W.startsWith("#"))k[Z]=q;else if(W.startsWith(he)){let[D,re]=q.slice(he.length).split("/");if(Object.prototype.hasOwnProperty.call(c,D)){let G=c[D];delete c[D],G()}let K=Object.prototype.hasOwnProperty.call(this.colorThemesMap,D)&&this.colorThemesMap[D];if(K)for(let G in K){let oe=K[G];k[G]=y(oe,re)}else console.error(`"${r}${S}: ${W}" is an invalid ".colors" config`)}else{let[D,re]=q.split("@"),[K,G]=D.split("/");if(Object.prototype.hasOwnProperty.call(c,K)){let I=c[K];delete c[K],I()}let oe=Object.prototype.hasOwnProperty.call(this.colorThemesMap,K)&&this.colorThemesMap[K][(S?te:re)||""];oe?k[Z]=y(oe,G):console.error(`"${r}${S}: ${W}" is an invalid ".colors" config`)}}}let B=Object.keys(k);if(B.length){this.colorThemesMap[r]=k;for(let S of B)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete c[r]},i),{});for(let i of Object.keys(c))c[i]?.();if(b)for(let i in b){let r=b[i],{native:l,values:y,colored:k}=r,B=r.match;if(r.id=i,r.native=l===!0?i.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,y&&(this.values[i]=m(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/,"")),k&&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,o={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let s=t===document;s&&(e.root=this),this.host=s?document.documentElement:this.root.host;let x=s?document.head:t,n=s?document.styleSheets:t.styleSheets;for(let d of n){let{ownerNode:b}=d;if(b&&b.id==="master"){this.style=b;break}}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let b=this.style.sheet.cssRules[d];if(b.constructor.name==="CSSKeyframesRule")continue;let p=a=>{if(a.selectorText){let h=a.selectorText.split(", ")[0].split(" ");for(let g=0;g<h.length;g++){let u=h[g];if(u[0]==="."){let c=u.slice(1),i="";for(let r=0;r<c.length;r++){let l=c[r],y=c[r+1];if(l==="\\"){if(r++,y!=="\\"){i+=y;continue}}else if(Me.includes(l))break;i+=l}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 m=0;m<a.cssRules.length;m++){let h=p(a.cssRules[m]);if(h)return h}},v=p(b);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[d+a];d+=v.natives.length-1,v.config.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",x.append(this.style);let f=d=>{d.forEach(b=>{Object.prototype.hasOwnProperty.call(this.countBy,b)?this.countBy[b]++:(this.countBy[b]=1,this.insert(b))})};f(this.host.classList),o.subtree&&this.host.querySelectorAll("[class]").forEach(d=>f(d.classList)),this.observer=new MutationObserver(d=>{let b={},p=[],v=[],a=[],m=(c,i)=>{i?c.classList.forEach(g):c.classList.forEach(h);let r=c.children;for(let l=0;l<r.length;l++){let y=r[l];y.classList&&(v.push(y),m(y,i))}},h=c=>{Object.prototype.hasOwnProperty.call(b,c)?b[c]++:b[c]=1},g=c=>{Object.prototype.hasOwnProperty.call(b,c)?b[c]--:Object.prototype.hasOwnProperty.call(this.countBy,c)&&(b[c]=-1)},u=(c,i)=>{for(let r=0;r<c.length;r++){let l=c[r];l.classList&&!v.includes(l)&&!a.includes(l)&&(l.isConnected!==i?(v.push(l),m(l,i)):a.push(l))}};for(let c=0;c<d.length;c++){let i=d[c],{addedNodes:r,removedNodes:l,type:y,target:k}=i;if(y==="attributes"){if(p.find(B=>B.target===k))continue;p.push(i)}else u(r,!1),(!k.isConnected||!v.includes(k))&&u(l,!0)}if(!(!p.length&&!Object.keys(b).length)){for(let{oldValue:c,target:i}of p){let r=v.includes(i),l=i.classList,y=c?c.split(" "):[];if(r){if(i.isConnected)continue;for(let k of y)l.contains(k)||g(k)}else if(i.isConnected){l.forEach(k=>{y.includes(k)||h(k)});for(let k of y)l.contains(k)||g(k)}}for(let c in b){let i=b[c],r=(this.countBy[c]||0)+i;r===0?(delete this.countBy[c],this.delete(c)):(Object.prototype.hasOwnProperty.call(this.countBy,c)||this.insert(c),this.countBy[c]=r)}}}),this.observer.observe(t,{...o,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 o=t.cssRules.length-1;o>=0;o--)t.deleteRule(o);this.style?.remove(),this.style=null,this.root=null}match(t){for(let o in this.config.rules){let s=this.config.rules[o],x=this.matches[o],{native:n}=s;if(x&&x.test(t))return{origin:"match",config:s};if(n&&t.startsWith(n+":"))return{origin:"match",config:s}}for(let o of this.semantics)if(t.match(o[0]))return{origin:"semantics",value:o[1]}}create(t){let o=s=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,s))return this.ruleBy[s];let x=this.match(s);if(x)return new fe(s,x,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(s=>o(s)):[o(t)]).filter(s=>s&&s.text)}refresh(t){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(ue,t),this.cache(),!this.style)return;let o=document.createElement("style");o.id="master",this.style.replaceWith(o),this.style=o,this.rules.length=0,this.ruleBy={};for(let s in this.countBy)this.insert(s)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let o=this.style?.sheet,s=x=>{let n=this.ruleBy[x];if(!(!n||Object.prototype.hasOwnProperty.call(this.classesBy,x)&&this.classesBy[x].some(f=>Object.prototype.hasOwnProperty.call(this.countBy,f)))){if(o&&n.natives.length){let f=n.natives[0];for(let d=0;d<o.cssRules.length;d++)if(o.cssRules[d]===f.cssRule){for(let p=0;p<n.natives.length;p++)o.deleteRule(d);break}}if(this.rules.splice(this.rules.indexOf(n),1),delete this.ruleBy[x],n.keyframeNames){let f=this.rules[0];for(let d of n.keyframeNames){let b=this.keyframesMap[d];if(!--b.count){let p=f.natives.indexOf(b.native);this.style.sheet.deleteRule(p),f.natives.splice(p,1),delete this.keyframesMap[d]}}f.natives.length||this.rules.splice(0,1)}n.config.delete?.call(n,x)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let x of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,x)||s(x);delete this.ruleBy[t]}else s(t)}insert(t){let o=this.create(t);return o.length?(this.insertRules(o),!0):!1}insertRules(t){for(let o of t){if(this.ruleBy[o.className])continue;let s,x=Object.keys(this.keyframesMap).length,n=this.rules.length-1,{media:f,order:d,priority:b,hasWhere:p,className:v}=o,a=(g,u,c)=>{let i=g;for(;i<=n;i++){let r=this.rules[i];if(u?.(r))return c?-1:i-1;if(c?.(r))return i}return c?-1:i-1},m,h;if(f){let g=this.rules.findIndex(u=>u.media);if(g===-1)s=n+1;else{let{"max-width":u,"min-width":c}=f.features;if(u||c){let i=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(i===-1)s=n+1;else if(u&&c){if(b===-1?(m=a(i,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),h=a(i,r=>r.priority!==-1)):(m=a(i,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=n),m!==-1){let r=u.value-c.value,l=h,y=m;for(m=void 0;l>=y;l--){let{"max-width":k,"min-width":B}=this.rules[l].media.features,S=k.value-B.value;if(S<r)h=l-1;else if(S===r)m=l;else break}}if(m!==-1){let r=u.value-c.value;for(let l=h;l>=m;l--){let{"max-width":y,"min-width":k}=this.rules[l].media.features,B=y.value-k.value;if(B<r)h=l-1;else if(B>r){m=l+1;break}}}}else if(c){if(b===-1?(m=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"]),h=a(i,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,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=a(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let l=this.rules[r].media.features["min-width"].value;if(l>c.value)h=r-1;else if(l<c.value){m=r+1;break}}}else if(b===-1?(m=a(i,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),h=a(i,r=>r.media.features["min-width"]||r.priority!==-1)):(m=a(i,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),h=a(i,r=>r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let l=this.rules[r].media.features["max-width"].value;if(l<u.value)h=r-1;else if(l>u.value){m=r+1;break}}}else b===-1?(m=g,h=a(g,i=>i.media?.features["max-width"]||i.media?.features["min-width"]||i.priority!==-1)):(m=a(g,i=>i.media?.features["max-width"]||i.media?.features["min-width"],i=>i.priority!==-1),h=a(g,i=>i.media?.features["max-width"]||i.media?.features["min-width"]))}}else{let g=x?1:0;b===-1?(m=g,h=a(g,u=>u.media||u.priority!==-1)):(m=a(g,u=>u.media,u=>u.priority!==-1),h=a(g,u=>u.media))}if(s===void 0)if(m===-1)s=h+1;else{if(b===-1)for(let g=m;g<=h;g++){let u=this.rules[g];if(!(!p&&u.hasWhere)&&(p&&!u.hasWhere||u.order>=d)){s=g;break}}else for(let g=m;g<=h;g++){let u=this.rules[g];if(!(!p&&u.hasWhere)){if(p&&!u.hasWhere){s=g;break}if(u.priority<b){s=g;break}else if(u.priority===b){if(u.order>=d){s=g;break}}else s=g+1}}s===void 0&&(s=h+1)}if(this.rules.splice(s,0,o),this.ruleBy[v]=o,this.style){let g=this.style.sheet,u=0,c=i=>{let r=this.rules[i];if(r){if(!r.natives.length)return c(i-1);let l=r.natives[r.natives.length-1].cssRule;for(let y=0;y<g.cssRules.length;y++)if(g.cssRules[y]===l){u=y+1;break}}};c(s-1);for(let i=0;i<o.natives.length;)try{let r=o.natives[i];g.insertRule(r.text,u),r.cssRule=g.cssRules[u++],i++}catch(r){console.error(r),o.natives.splice(i,1)}}if(o.keyframeNames){let g=this.style?.sheet;for(let u of o.keyframeNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,u))this.keyframesMap[u].count++;else{let c={text:`@keyframes ${u}{`+Object.entries(this.config.keyframes[u]).map(([r,l])=>`${r}{${Object.entries(l).map(([y,k])=>y+":"+k).join(";")}}`).join("")+"}",theme:""},i;if(Object.keys(this.keyframesMap).length?(i=this.rules[0]).natives.push(c):this.rules.splice(0,0,i={natives:[c],get text(){return this.natives.map(r=>r.text).join("")}}),g){let r;for(let l=0;l<g.cssRules.length;l++){let y=g.cssRules[l];if(y.constructor.name!=="CSSKeyframesRule")break;if(y.name===u){r=y;break}}if(r)c.cssRule=r;else{let l=i.natives.length-1;g.insertRule(c.text,l),c.cssRule=g.cssRules[l]}}this.keyframesMap[u]={native:c,count:1}}}o.config.insert?.call(o)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let o=n=>{let f=ne({},n),d=b=>{for(let p in b){let v=b[p];typeof v=="object"&&!Array.isArray(v)?d(v):p&&(b[p]={"":v})}};if(f.classes?d(f.classes):f.classes={},f.breakpoints?d(f.breakpoints):f.breakpoints={},f.mediaQueries?d(f.mediaQueries):f.mediaQueries={},f.selectors?d(f.selectors):f.selectors={},f.values?d(f.values):f.values={},f.colors){let b=(p,v)=>{let a=(u,c,i)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,u)||(this.colorByThemeByColorName[u]={});let r=this.colorByThemeByColorName[u],l=r[""]?.includes(he),y=k=>k.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(B,S,A,W,N)=>{let q="#"+me(+S,+A,+W);return N&&(q+=Math.round(255*+N).toString(16)),q});for(let[k,B]of c)if(B){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,A;for(;(A=S.exec(B))!==null;){let W=A[0].trimStart(),N=W.lastIndexOf("@"),q=N!==-1?W.slice(0,N):W,te=N!==-1?W.slice(N):"",Z=k||te,D=i&&A[2]&&!A[2].startsWith("#")&&!te,re=A[1]?y(q):k?A[0]:q;if(l||D){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let K in r)K&&(r[""]+=" "+r[K],delete r[K]);r[""]+=(r[""]?" ":"")+(D?he:"")+re+Z}else r[Z]=re;if(k)break}}else if(i){delete this.colorByThemeByColorName[u];return}else delete r[k];Object.keys(r).length||delete this.colorByThemeByColorName[u]},m=Object.entries(p),h=m.filter(([u])=>u===""||u.startsWith("@"));h.length&&a(v,h,!1);let g=m.filter(([u])=>u!==""&&!u.startsWith("@"));for(let[u,c]of g){let i=(v?v+"-":"")+u;typeof c=="string"?a(i,[["",c]],!0):b(c,i)}};b(f.colors,"")}return f},s=[];for(let n of t)(function f(d){if(d.extends?.length)for(let b of d.extends)f("config"in b?b.config:b);s.push(o(d))})(n);let x=s[0];for(let n=1;n<s.length;n++){let f=s[n];x=ne(x,f),Object.prototype.hasOwnProperty.call(f,"keyframes")&&Object.assign(x.keyframes,f.keyframes)}return x}};typeof window<"u"&&(window.MasterCSS=de);function pe(e,t){return new de(e).observe(t)}pe(window.masterCSSConfig);})();