@master/css 2.0.0-beta.135 → 2.0.0-beta.137

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