@master/css 2.0.0-beta.16 → 2.0.0-beta.17
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/css.d.ts +1 -2
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Wo=Object.defineProperty;var Po=(r,o,i)=>o in r?Wo(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var e=(r,o,i)=>(Po(r,typeof o!="symbol"?o+"":o,i),i),So=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var De=(r,o,i)=>(So(r,o,"read from private field"),i?i.call(r):o.get(r)),ro=(r,o,i)=>{if(o.has(r))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(r):o.set(r,i)},io=(r,o,i,a)=>(So(r,o,"write to private field"),a?a.call(r,i):o.set(r,i),i);var Lo={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Nr=Lo;function Fi(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function bo(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function D(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let a in r)if(a&&+a>=100){i=!0;break}if(!i&&(!o||Object.keys(r).length>1)){let a=0,s="0"in r?Fi(r[0]):[0,0,0],c,d,u=[],f=()=>{let p=c-a,x=d.map((l,m)=>(l-s[m])/p);for(let l of u){let m=l-a,n=s.map((v,h)=>Math.round(v+x[h]*m));r[l]="#"+bo.call(this,...n)}};for(let p=1;p<100;p++)p in r?(u.length?(c=p,d=Fi(r[p]),f(),u.length=0,s=d):s=Fi(r[p]),a=p):u.push(p);u.length&&(c=100,d="100"in r?Fi(r[100]):[255,255,255],f())}return o||(r[""]=r[i?"500":"50"]),r}var Go={slate:D({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:D({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:D({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:D({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:D({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:D({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:D({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:D({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:D({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:D({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:D({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:D({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:D({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:D({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:D({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:D({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:D({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:D({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:D({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:D({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"},oo=Go;var so=16;var zo={"::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("},ao=zo;var _o={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","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"}},no=_o;var Ho=["dark","light"],lo=Ho;var Vo={storage:{sync:!0,key:"scheme"}},co=Vo;var Di={content:"content-box",border:"border-box",padding:"padding-box"},zi={min:"min-content",max:"max-content"},q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Nr)q[r]=Nr[r]/16+"rem";var $o={BackgroundClip:Di,BackgroundOrigin:Di,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Di,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{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"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:zi,GridAutoRows:zi,GridTemplateColumns:zi,GridTemplateRows:zi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Di,margin:"margin-box"},TransformBox:{...Di,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:q,MinWidth:q,MinHeight:q,MaxWidth:q,MaxHeight:q,Height:q,FlexBasis:q},mo=$o;function _i(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function yo(r){let o=u=>u==="+"||u==="-"||u==="*"||u==="/",i="",a,s="",c=!1;function d(){a=null,s=""}for(let u=0;u<r.length;u++){let f=r[u];if(f==="("||f===")")c=f===")",i+=s+f,d();else if(f===",")i+=s+f+" ",d();else{switch(a){case 1:break;case 2:if(o(f)){i+=s+" "+f+" ",d();continue}break;default:c&&(s+=" "),isNaN(+f)?o(f)||(a=1):a=2;break}s+=f}}return s&&(i+=s),i}var Uo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Qo="var(--";function Hi(r,o,i,a,s,c){let d=a?a[r]:"",u="",f="",p;if(d)return{value:d,unit:u,unitToken:f};if(typeof r=="number")d=r,u=o||"";else{if(i){let x=Object.keys(i),l=!1,m=!1;r=r.replace(new RegExp(`(^|,| |\\()(${x.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(n,v,h,g,S)=>{m=!0;let y=i[h]?.[g||""];if(y){let O;for(let B of c)if(O=y[B])break;if(O){l=!0;let B=O;if(S){let R=S.endsWith("%")?parseFloat(S)/100:+S;R=isNaN(R)?1:Math.min(Math.max(R,0),1),B+=Math.round(R*255).toString(16).toUpperCase().padStart(2,"0")}return v+B}}return n}),m&&(p=l)}if(o){let x=r.match(Uo);if(x)if(r.includes("/")){let l=r.split("/");return{value:+l[0]/+l[1]*100+"%",unit:u,unitToken:f}}else return d=+x[1],u=f=x[3]||"",u||((o==="rem"||o==="em")&&(d=d/s),u=o||""),{value:d,unit:u,unitToken:f}}d=(r.indexOf("calc(")===-1?r:yo(r)).replace(/\$\(((\w|-)+)\)/g,Qo+"$1)")}return{value:d,unit:u,unitToken:f,colorMatched:p}}var Tr={"(":")","'":"'","{":"}"};var Co=[":disabled",":active",":focus",":hover"],Vi="matches",Yo="semantics",Ro="symbol",ko="width",fo="max-"+ko,po="min-"+ko,ho="motion",No="reduce",Mo=No+"d-"+ho,uo="px",qo="rem",Xo=["!","*",">","+","~",":","[","@","_"],Zo=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Jo=r=>r.split(Zo).map((o,i)=>i%3?o:o.replace(/_/g," ")).join(""),t=class{constructor(o,i,a){this.className=o;this.matching=i;this.css=a;let s=this.constructor,{id:c,unit:d,propName:u,colorful:f}=s,{breakpoints:p,mediaQueries:x,semantics:l,rootSize:m}=a.config,n=a.config.values[c],v=a.relationThemesMap[o],{themeNames:h,colorsThemesMap:g,selectors:S}=a,y=o,O,B,R,F;if(i.origin===Yo)R=y.slice(i.value.length),O=l[i.value];else{let I;if(i.origin===Vi)if(c==="Group"){let N=0;for(;N<y.length&&!(y[N]==="{"&&y[N-1]!=="\\");N++);B=y.slice(0,N),I=y.slice(N)}else{let N=y.indexOf(":");this.prefix=y.slice(0,N+1),this.prefix.includes("(")?(this.prefix=void 0,I=y):I=y.slice(N+1)}else i.origin===Ro&&(this.symbol=y[0],I=y.slice(1));F=[];let C="",M=0;(function N(j,k,T=""){let b,w=!1;for(j&&(j===")"&&C.slice(-1)==="$"?b=C.length-1:j==="'"&&(w=!0),C+=I[M++]);M<I.length;M++){let A=I[M];if(A===j){if(C+=A,w){let W=0;for(let z=C.length-2;C[z]==="\\";z--)W++;if(W%2)continue}b!==void 0&&(C=C.slice(0,b)+C.slice(b).replace(/\$\((.*)\)/,"var(--$1)")),k||(w?F.push(C):F.push({value:C}),T="",C="");break}else if(!w&&A in Tr)N(Tr[A],k===void 0?0:k+1,T);else if(A==="|"&&j!=="}"&&(!w||T==="path"))j?C+=" ":(F.push({value:C}),C="");else{if(!j){if(A==="."){if(isNaN(+I[M+1]))break;I[M-1]==="-"&&(C+="0")}else if(A===","){F.push({value:C},","),C="";continue}else if(A==="#"&&(C||F.length&&I[M-1]!=="|")||Xo.includes(A))break;T+=A}C+=A}}})(),C&&F.push({value:C}),R=I.slice(M)}R[0]==="!"&&(this.important=!0,R=R.slice(1));let E=I=>{let C=Jo(I),M=[],N="",j=0;for(let k=0;k<C.length;k++){let T=C[k];if(T==="\\"){N+=T+C[++k];continue}!j&&T===","?(M.push(N),N=""):(N+=T,j&&T===")"?j--:T==="("&&j++)}return N&&M.push(N),M};this.prefixSelectors=B?E(B):[""];let H=R.split("@"),$=H[0];if($){this.vendorSuffixSelectors={};let I=(k,T,b,w)=>{for(let[A,W]of T)if(A.test(k)){for(let z of W)I(k.replace(A,z),T,b,!0);return}w&&b.push(k)},C=[];""in S?I($,S[""],C,!0):C.push($);let M={};for(let[k,T]of Object.entries(S)){if(!k)continue;let b=[];for(let w of C)I(w,T,b,!1);b.length&&(M[k]=b)}let N=(k,T)=>{let b=T.reduce((w,A)=>(w.push(...E(A)),w),[]);k in this.vendorSuffixSelectors?this.vendorSuffixSelectors[k].push(...b):this.vendorSuffixSelectors[k]=b},j=Object.keys(M);if(j.length)for(let k of j)N(k,M[k]);else N("",C);for(let k of Object.values(this.vendorSuffixSelectors))for(let T of k){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let b=0;b<Co.length;b++)if(T.includes(Co[b])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>b)&&(this.prioritySelectorIndex=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let I=1;I<H.length;I++){let C=H[I];if(C)if(h.includes(C))this.themeName=C;else if(C==="rtl"||C==="ltr")this.direction=C;else{let M,N,j=C.indexOf("_");if(j!==-1)M=C.slice(0,j),N=C.slice(j);else{let k=C.indexOf("(");k!==-1&&(M=C.slice(0,k),N=C.slice(k))}if(!M){M="media";let k=[];this.media={token:C,features:{}};let T=C.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")k.push("(orientation:"+b+")");else if(b===ho||b===Mo)k.push("(prefers-"+Mo+":"+(b===ho?"no-preference":No)+")");else if(x&&b in x)k.push(x[b]);else{let w={token:b},A="",W="",z=0;b.startsWith("<=")?(W="<=",A=fo):b.startsWith(">=")||p[b]?(W=">=",A=po):b.startsWith(">")?(W=">",A=po,z=.02):b.startsWith("<")&&(W="<",A=fo,z=-.02);let Y=W?b.replace(W,""):b,P=p[Y];switch(A){case fo:case po:P?Object.assign(w,Hi(P,uo)):Object.assign(w,Hi(Y,uo)),w.unit===uo&&(w.value+=z),this.media.features[A]=w,k.push("("+A+":"+(w.value+w.unit)+")");break}}N="",this.media.type&&(N=this.media.type),k.length&&(N+=(N?" and ":"")+k.join(" and "))}N&&(this.at[M]=(M in this.at?this.at[M]+" and ":"")+N.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let V=(I,C)=>{let M,N,j=(T,b,w)=>{let A="";this.direction&&(A+="[dir="+this.direction+"] ");let W=this.prefixSelectors.map(P=>P+A),z=(P,Li)=>{let Bi=P?"."+P+" ":"",to="."+CSS.escape(Li);return W.map(Gi=>Bi+Gi).reduce((Gi,Eo)=>(Gi.push(w.reduce((vo,jo)=>(vo.push(Eo+to+jo),vo),[]).join(",")),Gi),[]).join(",")},Y=z(b,o)+(v?Object.entries(v).filter(([P])=>this.themeName||!f||!b||!P||P===b).map(([P,Li])=>Li.reduce((Bi,to)=>Bi+","+z(this.themeName??(f&&b||P),to),"")).join(""):"")+"{"+T+"}";for(let P of Object.keys(this.at).sort((Li,Bi)=>Bi==="supports"?-1:1))Y="@"+P+" "+this.at[P]+"{"+Y+"}";return Y},k=[];if(F){let T,b;for(let w of F)typeof w=="string"?k.push(w):(T=Hi(w.value,d,f&&g,n,m,this.themeName?[this.themeName,""]:[I]),T.colorMatched!==void 0&&b!==!0&&(b=T.colorMatched),k.push(T.value+T.unit));if(C&&(b===void 0?I:!b))return;if(k.length===1?T?(M=T.value,N=T.unit):M=k[0]:M=k.reduce((w,A,W)=>w+A+(A===","||F[W+1]===","||W===F.length-1?"":" "),""),typeof M!="object"){this.parseValue&&(M=this.parseValue(M,this.css.config)),f&&M==="current"?M="currentColor":n&&M in n&&(M=n[M].toString());let w={unit:N,value:M,important:this.important};if(this.getThemeProps){let A=this.getThemeProps(w,a);for(let W in A)for(let z of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:M,text:j(Object.entries(A[W]).map(([Y,P])=>_i(Y,{important:this.important,unit:"",value:P})).join(";"),W,z),themeName:W});return}else this.get&&(M=this.get(w))}}else M=O;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:M,text:j(typeof M=="object"?Object.entries(M).map(([b,w])=>_i(b,{...typeof w=="object"?w:{unit:"",value:w},important:this.important})).join(";"):_i(u,{unit:N,value:M,important:this.important}),I,T),themeName:I})};if(this.getThemeProps)V(void 0,!1);else if(this.themeName)V(this.themeName,!1);else if(f)for(let I of h)V(I,!0);else V("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(o,i){if(this.matches&&this.matches.test(o))return{origin:Vi};if(this.colorStarts&&(o.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||i.length&&o.match("^"+this.colorStarts+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:Vi};if(this.symbol&&o.startsWith(this.symbol))return{origin:Ro};if(this.propName&&o.startsWith(this.propName+":"))return{origin:Vi}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",qo),e(t,"colorful");var X=class extends t{};e(X,"id","FontWeight"),e(X,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(X,"propName","font-weight"),e(X,"unit","");var Ee=class extends t{};e(Ee,"id","FontFamily"),e(Ee,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(Ee,"propName","font-family");var je=class extends t{};e(je,"id","FontSize"),e(je,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(je,"propName","font-size");var wr=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",a=i+"-left",s=i+"-right",c=i+"-top",d=i+"-bottom";switch(this.prefix[1]){case"x":return{[a]:r,[s]:r};case"y":return{[c]:r,[d]:r};case"l":return{[a]:r};case"r":return{[s]:r};case"t":return{[c]:r};case"b":return{[d]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(wr,"id","Spacing"),e(wr,"matches",/^[pm][xytblr]?:./);var We=class extends t{};e(We,"id","Width"),e(We,"matches",/^w:./),e(We,"propName","width");var Pe=class extends t{};e(Pe,"id","Height"),e(Pe,"matches",/^h:./),e(Pe,"propName","height");var Le=class extends t{};e(Le,"id","MinWidth"),e(Le,"matches",/^min-w:./),e(Le,"propName","min-width");var Ge=class extends t{};e(Ge,"id","MinHeight"),e(Ge,"matches",/^min-h:./),e(Ge,"propName","min-height");var Z=class extends t{};e(Z,"id","LetterSpacing"),e(Z,"matches",/^ls:./),e(Z,"propName","letter-spacing"),e(Z,"unit","em");var Ko="subpixel-antialiased",To="-webkit-font-smoothing",wo="-moz-osx-font-smoothing",ze=class extends t{get(r){let o={};switch(r.value){case Ko:o[To]=o[wo]={...r,value:"auto"};break;case"antialiased":o[To]={...r,value:"antialiased"},o[wo]={...r,value:"grayscale"};break}return o}};e(ze,"id","FontSmoothing"),e(ze,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(ze,"unit","");var J=class extends t{};e(J,"id","FontStyle"),e(J,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(J,"propName","font-style"),e(J,"unit","deg");var _e=class extends t{};e(_e,"id","FontVariantNumeric"),e(_e,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(_e,"propName","font-variant-numeric");var K=class extends t{};e(K,"id","LineHeight"),e(K,"matches",/^lh:./),e(K,"propName","line-height"),e(K,"unit","");var He=class extends t{};e(He,"id","ObjectFit"),e(He,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(He,"propName","object-fit");var Ve=class extends t{};e(Ve,"id","ObjectPosition"),e(Ve,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Ve,"propName","object-position");var $e=class extends t{};e($e,"id","TextAlign"),e($e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e($e,"propName","text-align");var ee=class extends t{order=-1};e(ee,"id","TextDecoration"),e(ee,"matches",/^t(ext)?:(underline|line-through|overline)/),e(ee,"propName","text-decoration"),e(ee,"colorful",!0);var Ue=class extends t{};e(Ue,"id","TextTransform"),e(Ue,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Ue,"propName","text-transform");var Qe=class extends t{};e(Qe,"id","VerticalAlign"),e(Qe,"matches",/^(?:v|vertical):./),e(Qe,"propName","vertical-align");var Ye=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(Ye,"id","Lines"),e(Ye,"matches",/^lines:./),e(Ye,"unit","");var te=class extends t{};e(te,"id","TransformOrigin"),e(te,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(te,"propName","transform-origin"),e(te,"unit","px");var qe=class extends t{};e(qe,"id","TransformStyle"),e(qe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(qe,"propName","transform-style");var Xe=class extends t{};e(Xe,"id","TransformBox"),e(Xe,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Xe,"propName","transform-box");var re=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,a,s,c)=>{let d,u;switch(a){case"translate":d="rem";break;case"skew":d="deg";break;case"rotate":s==="3d"&&(u=!0),d="deg";break;default:return i}let f=c.split(",");return i.replace(c,f.map((p,x)=>!u||f.length-1===x?Number.isNaN(+p)?p:p/(d==="rem"?o:1)+d:p).join(","))})}};e(re,"id","Transform"),e(re,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(re,"propName","transform"),e(re,"unit","");var Ze=class extends t{order=-1};e(Ze,"id","Transition"),e(Ze,"symbol","~"),e(Ze,"propName","transition");var ie=class extends t{};e(ie,"id","TransitionDelay"),e(ie,"matches",/^~delay:./),e(ie,"propName","transition-delay"),e(ie,"unit","ms");var oe=class extends t{};e(oe,"id","TransitionDuration"),e(oe,"matches",/^~duration:./),e(oe,"propName","transition-duration"),e(oe,"unit","ms");var Je=class extends t{};e(Je,"id","TransitionProperty"),e(Je,"matches",/^~property:./),e(Je,"propName","transition-property");var Ke=class extends t{};e(Ke,"id","TransitionTimingFunction"),e(Ke,"matches",/^~easing:./),e(Ke,"propName","transition-timing-function");var et=class extends t{};e(et,"id","MaxHeight"),e(et,"matches",/^max-h:./),e(et,"propName","max-height");var tt=class extends t{};e(tt,"id","MaxWidth"),e(tt,"matches",/^max-w:./),e(tt,"propName","max-width");var rt=class extends t{};e(rt,"id","Display"),e(rt,"matches",/^d:./),e(rt,"propName","display");var it=class extends t{};e(it,"id","BoxSizing"),e(it,"matches",/^box:(content|border)(?!\|)/),e(it,"propName","box-sizing");var ot=class extends t{};e(ot,"id","Opacity"),e(ot,"propName","opacity"),e(ot,"unit","");var Or=class extends t{};e(Or,"id","Visibility"),e(Or,"propName","visibility");var Ar=class extends t{};e(Ar,"id","Clear"),e(Ar,"propName","clear");var Ir=class extends t{};e(Ir,"id","Float"),e(Ir,"propName","float");var Br=class extends t{};e(Br,"id","Isolation"),e(Br,"propName","isolation");var Fr=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Fr,"id","Overflow"),e(Fr,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Dr=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(Dr,"id","OverscrollBehavior"),e(Dr,"matches",/^overscroll-behavior(?:-[xy])?:/);var se=class extends t{};e(se,"id","ZIndex"),e(se,"matches",/^z:./),e(se,"propName","z-index"),e(se,"unit","");var ae=class extends t{};e(ae,"id","AnimationDelay"),e(ae,"matches",/^@delay:./),e(ae,"propName","animation-delay"),e(ae,"unit","ms");var st=class extends t{};e(st,"id","AnimationDirection"),e(st,"matches",/^@direction:./),e(st,"propName","animation-direction");var at=class extends t{};e(at,"id","AnimationFillMode"),e(at,"matches",/^@fill-mode:./),e(at,"propName","animation-fill-mode");var ne=class extends t{};e(ne,"id","AnimationIterationCount"),e(ne,"matches",/^@iteration-count:./),e(ne,"propName","animation-interation-count"),e(ne,"unit","");var nt=class extends t{};e(nt,"id","AnimationName"),e(nt,"matches",/^@name:./),e(nt,"propName","animation-name");var lt=class extends t{};e(lt,"id","AnimationPlayState"),e(lt,"matches",/^@play-state:./),e(lt,"propName","animation-play-state");var ct=class extends t{};e(ct,"id","AnimationTimingFunction"),e(ct,"matches",/^@easing:./),e(ct,"propName","animation-timing-function");var le=class extends t{order=-1};e(le,"id","Animation"),e(le,"symbol","@"),e(le,"propName","animation"),e(le,"unit","");var $i="border-";function ce(r,o,i=""){i&&(i="-"+i);let a=/^b(order)?-?(.)?/.exec(r)[2],s=$i+"left"+i,c=$i+"right"+i,d=$i+"top"+i,u=$i+"bottom"+i;switch(a){case"x":return{[s]:o,[c]:o};case"y":return{[d]:o,[u]:o};case"l":return{[s]:o};case"r":return{[c]:o};case"t":return{[d]:o};case"b":return{[u]:o};default:return{["border"+i]:o}}}var de=class extends t{get(r){return ce(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(de,"id","BorderColor"),e(de,"matches",/^border(-(left|right|top|bottom))?-color:./),e(de,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(de,"colorful",!0);var Ui="border-top-left-radius",Qi="border-top-right-radius",Yi="border-bottom-left-radius",qi="border-bottom-right-radius",Oo="border-radius",es=[Ui,Qi,Yi,qi],Er=class extends t{get(r){if(this.prefix){let i="",a=this.prefix.split("-");if(a.length>1)for(let s=1;s<a.length-1;s++)i+=a[s][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[Ui]:r,[Qi]:r};case"tl":case"lt":return{[Ui]:r};case"rt":case"tr":return{[Qi]:r};case"b":return{[Yi]:r,[qi]:r};case"bl":case"lb":return{[Yi]:r};case"br":case"rb":return{[qi]:r};case"l":return{[Ui]:r,[Yi]:r};case"r":return{[Qi]:r,[qi]:r};default:return{[Oo]:r}}}let o=this.prefix?.slice(0,-1);return{[es.includes(o)?o:Oo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Er,"id","BorderRadius"),e(Er,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var jr=class extends t{get(r){return ce(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(jr,"id","BorderStyle"),e(jr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var Wr=class extends t{get(r){return ce(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Wr,"id","BorderWidth"),e(Wr,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var dt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(dt,"id","Border"),e(dt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(dt,"colorful",!0);var mt=class extends t{};e(mt,"id","BackgroundAttachment"),e(mt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(mt,"propName","background-attachment");var Pr=class extends t{};e(Pr,"id","BackgroundBlendMode"),e(Pr,"propName","background-blend-mode");var ft=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(ft,"id","BackgroundClip"),e(ft,"matches",/^(bg|background):text(?!\|)/),e(ft,"propName","background-clip");var U=class extends t{};e(U,"id","BackgroundColor"),e(U,"colorStarts","(bg|background):"),e(U,"propName","background-color"),e(U,"unit",""),e(U,"colorful",!0);var pt=class extends t{};e(pt,"id","BackgroundOrigin"),e(pt,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(pt,"propName","background-origin");var me=class extends t{};e(me,"id","BackgroundPosition"),e(me,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(me,"propName","background-position"),e(me,"unit","px");var ut=class extends t{};e(ut,"id","BackgroundRepeat"),e(ut,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ut,"propName","background-repeat");var ht=class extends t{};e(ht,"id","BackgroundSize"),e(ht,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(ht,"propName","background-size");var fe=class extends t{};e(fe,"id","BackgroundImage"),e(fe,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(fe,"propName","background-image"),e(fe,"colorful",!0);var pe=class extends t{order=-1};e(pe,"id","Background"),e(pe,"matches",/^bg:./),e(pe,"propName","background"),e(pe,"colorful",!0);var gt=class extends t{};e(gt,"id","MixBlendMode"),e(gt,"matches",/^blend:./),e(gt,"propName","mix-blend-mode");var Lr=class extends t{};e(Lr,"id","Position"),e(Lr,"propName","position");var Gr=class extends t{get(r){let o=this.prefix.slice(0,-1);switch(o){case"top":case"left":case"right":case"bottom":return{[o]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Gr,"id","Placement"),e(Gr,"matches",/^(top|left|right|bottom|center|middle):./);function Xi(r,o,{rootSize:i}){let a="",s=0;return function c(d,u){let f="",p=u?o(u):"",x=()=>{f&&(a+=!p||Number.isNaN(+f)?f:+f/(p==="rem"?i:1)+p,f="")};for(;s<r.length;s++){let l=r[s];if(l===d&&(d!=="'"||r[s+1]===")")){x(),a+=l;break}else l===","||l===" "?(x(),a+=l):!f&&l==="'"?(a+=l,s++,c(l),f=""):f&&l==="("?(a+=f+l,s++,c(")",f),f=""):f+=l}x()}(),a}var xt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return Xi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(xt,"id","BackdropFilter"),e(xt,"matches",/^bd:./),e(xt,"propName","backdrop-filter");var ue=class extends t{};e(ue,"id","Fill"),e(ue,"propName","fill"),e(ue,"colorStarts","fill:"),e(ue,"colorful",!0);var vt=class extends t{};e(vt,"id","Stroke"),e(vt,"propName","stroke"),e(vt,"colorful",!0);var St=class extends t{};e(St,"id","StrokeWidth"),e(St,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(St,"propName","stroke-width");var bt=class extends t{parseValue(r,o){return Xi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(bt,"id","Filter"),e(bt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(bt,"propName","filter");var zr=class extends t{};e(zr,"id","Cursor"),e(zr,"propName","cursor");var _r=class extends t{};e(_r,"id","PointerEvents"),e(_r,"propName","pointer-events");var Hr=class extends t{};e(Hr,"id","Resize"),e(Hr,"propName","resize");var Vr=class extends t{};e(Vr,"id","TouchAction"),e(Vr,"propName","touch-action");var $r=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e($r,"id","UserDrag"),e($r,"propName","user-drag");var Ur=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(Ur,"id","UserSelect"),e(Ur,"propName","user-select");var he=class extends t{};e(he,"id","BoxShadow"),e(he,"matches",/^s(?:hadow)?:./),e(he,"propName","box-shadow"),e(he,"colorful",!0);var yt=class extends t{};e(yt,"id","TextShadow"),e(yt,"propName","text-shadow"),e(yt,"colorful",!0);var Qr=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Qr,"id","TextSize"),e(Qr,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Ct=class extends t{};e(Ct,"id","WordBreak"),e(Ct,"propName","word-break"),e(Ct,"unit","");var ge=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(ge,"id","GridColumns"),e(ge,"matches",/^grid-cols:./),e(ge,"propName","grid-columns"),e(ge,"unit","");var Rt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Rt,"id","GridRows"),e(Rt,"propName","grid-rows"),e(Rt,"unit","");var Yr=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e(Yr,"id","Gap"),e(Yr,"matches",/^gap(-x|-y)?:./);var Mt=class extends t{};e(Mt,"id","WordSpacing"),e(Mt,"propName","word-spacing"),e(Mt,"unit","em");var kt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(kt,"id","Variable"),e(kt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(kt,"unit","");var xe=class extends t{};e(xe,"id","AspectRadio"),e(xe,"matches",/^aspect:./),e(xe,"propName","aspect-ratio"),e(xe,"unit","");var Nt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Nt,"id","BoxDecorationBreak"),e(Nt,"matches",/^box:(slice|clone)(?!\|)/),e(Nt,"propName","box-decoration-break");var qr=class extends t{};e(qr,"id","BreakAfter"),e(qr,"propName","break-after");var Xr=class extends t{};e(Xr,"id","BreakBefore"),e(Xr,"propName","break-before");var Zr=class extends t{};e(Zr,"id","BreakInside"),e(Zr,"propName","break-inside");var Tt=class extends t{};e(Tt,"id","FlexShrink"),e(Tt,"propName","flex-shrink"),e(Tt,"unit","");var wt=class extends t{};e(wt,"id","FlexDirection"),e(wt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(wt,"propName","flex-direction");var Ot=class extends t{};e(Ot,"id","FlexGrow"),e(Ot,"propName","flex-grow"),e(Ot,"unit","");var At=class extends t{};e(At,"id","FlexWrap"),e(At,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(At,"propName","flex-wrap");var Jr=class extends t{};e(Jr,"id","FlexBasis"),e(Jr,"propName","flex-basis");var It=class extends t{order=-1};e(It,"id","Flex"),e(It,"propName","flex"),e(It,"unit","");var ve=class extends t{};e(ve,"id","Order"),e(ve,"matches",/^o:./),e(ve,"propName","order"),e(ve,"unit","");var Se=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Se,"id","GridColumn"),e(Se,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(Se,"propName","grid-column"),e(Se,"unit","");var Bt=class extends t{};e(Bt,"id","ColumnSpan"),e(Bt,"matches",/^col-span:./),e(Bt,"propName","column-span");var be=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(be,"id","GridRow"),e(be,"matches",/^grid-row-span:./),e(be,"propName","grid-row"),e(be,"unit","");var Q=class extends t{};e(Q,"id","Color"),e(Q,"colorStarts","(?:color|fg|foreground):"),e(Q,"colorful",!0),e(Q,"propName","color"),e(Q,"unit","");var Ft=class extends t{};e(Ft,"id","AlignContent"),e(Ft,"matches",/^ac:./),e(Ft,"propName","align-content");var Dt=class extends t{};e(Dt,"id","AlignItems"),e(Dt,"matches",/^ai:./),e(Dt,"propName","align-items");var Et=class extends t{};e(Et,"id","AlignSelf"),e(Et,"matches",/^as:./),e(Et,"propName","align-self");var jt=class extends t{};e(jt,"id","GridAutoColumns"),e(jt,"matches",/^grid-auto-cols:./),e(jt,"propName","grid-auto-columns");var Wt=class extends t{};e(Wt,"id","GridAutoFlow"),e(Wt,"matches",/^grid-flow:./),e(Wt,"propName","grid-auto-flow");var Kr=class extends t{};e(Kr,"id","GridAutoRows"),e(Kr,"propName","grid-auto-rows");var Pt=class extends t{};e(Pt,"id","JustifyContent"),e(Pt,"matches",/^jc:./),e(Pt,"propName","justify-content");var Lt=class extends t{};e(Lt,"id","JustifyItems"),e(Lt,"matches",/^ji:./),e(Lt,"propName","justify-items");var Gt=class extends t{};e(Gt,"id","JustifySelf"),e(Gt,"matches",/^js:./),e(Gt,"propName","justify-self");var ei=class extends t{order=-1};e(ei,"id","PlaceContent"),e(ei,"propName","place-content");var ti=class extends t{order=-1};e(ti,"id","PlaceItems"),e(ti,"propName","place-items");var ri=class extends t{order=-1};e(ri,"id","PlaceSelf"),e(ri,"propName","place-self");var ii=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ii,"id","Padding"),e(ii,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var oi=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(oi,"id","Margin"),e(oi,"matches",/^margin(-(left|right|top|bottom))?:./);var zt=class extends t{};e(zt,"id","TextOverflow"),e(zt,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(zt,"propName","text-overflow");var _t=class extends t{};e(_t,"id","ListStylePosition"),e(_t,"matches",/^list-style:(inside|outside)(?!\|)/),e(_t,"propName","list-style-position");var Ht=class extends t{};e(Ht,"id","ListStyleType"),e(Ht,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Ht,"propName","list-style-type");var si=class extends t{order=-1};e(si,"id","ListStyle"),e(si,"propName","list-style");var ye=class extends t{};e(ye,"id","TextDecorationColor"),e(ye,"propName","text-decoration-color"),e(ye,"colorStarts","text-decoration:"),e(ye,"colorful",!0);var Vt=class extends t{};e(Vt,"id","TextDecorationStyle"),e(Vt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Vt,"propName","text-decoration-style");var Ce=class extends t{};e(Ce,"id","TextDecorationThickness"),e(Ce,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Ce,"propName","text-decoration-thickness"),e(Ce,"unit","em");var ai=class extends t{};e(ai,"id","TextIndent"),e(ai,"propName","text-indent");var ni=class extends t{};e(ni,"id","Content"),e(ni,"propName","content");var Re=class extends t{};e(Re,"id","OutlineColor"),e(Re,"propName","outline-color"),e(Re,"colorStarts","outline:"),e(Re,"colorful",!0);var li=class extends t{};e(li,"id","OutlineOffset"),e(li,"propName","outline-offset");var $t=class extends t{};e($t,"id","OutlineStyle"),e($t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e($t,"propName","outline-style");var Ut=class extends t{};e(Ut,"id","OutlineWidth"),e(Ut,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ut,"propName","outline-width");var Qt=class extends t{order=-1};e(Qt,"id","Outline"),e(Qt,"propName","outline"),e(Qt,"colorful",!0);var Yt=class extends t{};e(Yt,"id","BorderCollapse"),e(Yt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(Yt,"propName","border-collapse");var ci=class extends t{};e(ci,"id","BorderSpacing"),e(ci,"propName","border-spacing");var di=class extends t{};e(di,"id","TableLayout"),e(di,"propName","table-layout");var Me=class extends t{};e(Me,"id","AccentColor"),e(Me,"propName","accent-color"),e(Me,"colorStarts","accent:"),e(Me,"colorful",!0);var mi=class extends t{};e(mi,"id","Appearance"),e(mi,"propName","appearance");var ke=class extends t{};e(ke,"id","CaretColor"),e(ke,"propName","caret-color"),e(ke,"colorStarts","caret:"),e(ke,"colorful",!0);var fi=class extends t{};e(fi,"id","ScrollBehavior"),e(fi,"propName","scroll-behavior");var pi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(pi,"id","ScrollMargin"),e(pi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var ui=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(ui,"id","ScrollPadding"),e(ui,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var qt=class extends t{};e(qt,"id","ScrollSnapAlign"),e(qt,"matches",/^scroll-snap:(start|end|center)/),e(qt,"propName","scroll-snap-align");var Xt=class extends t{};e(Xt,"id","ScrollSnapStop"),e(Xt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Xt,"propName","scroll-snap-stop");var Zt=class extends t{};e(Zt,"id","ScrollSnapType"),e(Zt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Zt,"propName","scroll-snap-type");var hi=class extends t{};e(hi,"id","WillChange"),e(hi,"propName","will-change");var gi=class extends t{};e(gi,"id","TextUnderlineOffset"),e(gi,"propName","text-underline-offset");var Jt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Jt,"id","Inset"),e(Jt,"matches",/^(?:top|bottom|left|right):./),e(Jt,"propName","inset");var Ne=class extends t{order=-1};e(Ne,"id","Columns"),e(Ne,"matches",/^(columns|cols):./),e(Ne,"propName","columns"),e(Ne,"unit","");var Kt=class extends t{};e(Kt,"id","WhiteSpace"),e(Kt,"propName","white-space"),e(Kt,"unit","");var er=class extends t{};e(er,"id","TextOrientation"),e(er,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(er,"propName","text-orientation");var tr=class extends t{};e(tr,"id","WritingMode"),e(tr,"matches",/^writing:./),e(tr,"propName","writing-mode");var xi=class extends t{};e(xi,"id","Contain"),e(xi,"propName","contain");var Te=class extends t{};e(Te,"id","AnimationDuration"),e(Te,"matches",/^@duration:./),e(Te,"propName","animation-duration"),e(Te,"unit","ms");var rr=class extends t{};e(rr,"id","TextRendering"),e(rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(rr,"propName","text-rendering");var vi=class extends t{};e(vi,"id","Direction"),e(vi,"propName","direction");var ir=class extends t{};e(ir,"id","TextDecorationLine"),e(ir,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(ir,"propName","text-decoration-line");var we=class extends t{};e(we,"id","GridColumnStart"),e(we,"matches",/^grid-col-start:./),e(we,"propName","grid-column-start"),e(we,"unit","");var or=class extends t{};e(or,"id","ListStyleImage"),e(or,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(or,"propName","list-style-image");var sr=class extends t{};e(sr,"id","ShapeOutside"),e(sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(sr,"propName","shape-outside");var ar=class extends t{};e(ar,"id","ShapeMargin"),e(ar,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ar,"propName","shape-margin");var nr=class extends t{};e(nr,"id","ShapeImageThreshold"),e(nr,"propName","shape-image-threshold"),e(nr,"unit","");var lr=class extends t{};e(lr,"id","ClipPath"),e(lr,"matches",/^clip:./),e(lr,"propName","clip-path");var Si=class extends t{order=-1};e(Si,"id","Grid"),e(Si,"propName","grid");var Oe=class extends t{order=-1};e(Oe,"id","Font"),e(Oe,"matches",/^f:./),e(Oe,"propName","font"),e(Oe,"unit","");var bi=class extends t{};e(bi,"id","Quotes"),e(bi,"propName","quotes");var yi=class extends t{order=-1};e(yi,"id","GridTemplate"),e(yi,"propName","grid-template");var cr=class extends t{};e(cr,"id","GridRowStart"),e(cr,"propName","grid-row-start"),e(cr,"unit","");var Ci=class extends t{};e(Ci,"id","GridTemplateAreas"),e(Ci,"propName","grid-template-areas");var dr=class extends t{};e(dr,"id","GridTemplateColumns"),e(dr,"matches",/^grid-template-cols:./),e(dr,"propName","grid-template-columns");var Ri=class extends t{};e(Ri,"id","GridTemplateRows"),e(Ri,"propName","grid-template-rows");var mr=class extends t{order=-1};e(mr,"id","GridArea"),e(mr,"propName","grid-area"),e(mr,"unit","");var Ae=class extends t{};e(Ae,"id","GridColumnEnd"),e(Ae,"matches",/^grid-col-end:./),e(Ae,"propName","grid-column-end"),e(Ae,"unit","");var fr=class extends t{};e(fr,"id","GridRowEnd"),e(fr,"propName","grid-row-end"),e(fr,"unit","");var Mi=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Mi,"id","MaskImage"),e(Mi,"propName","mask-image");var Ie=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(Ie,"id","TextFillColor"),e(Ie,"matches",/^text-fill-color:./),e(Ie,"colorStarts","(text-fill|text|t):"),e(Ie,"colorful",!0);var ki=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(ki,"id","TextStroke"),e(ki,"matches",/^text-stroke:./);var Ni=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(Ni,"id","TextStrokeWidth"),e(Ni,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Be=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Be,"id","TextStrokeColor"),e(Be,"matches",/^text-stroke-color:./),e(Be,"colorStarts","text-stroke:"),e(Be,"colorful",!0);var Ti=class extends t{};e(Ti,"id","StrokeDasharray"),e(Ti,"propName","stroke-dasharray");var wi=class extends t{};e(wi,"id","StrokeDashoffset"),e(wi,"propName","stroke-dash-offset");var pr=class extends t{};e(pr,"id","X"),e(pr,"propName","x"),e(pr,"unit","");var ur=class extends t{};e(ur,"id","Y"),e(ur,"propName","y"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Cx"),e(hr,"propName","cx"),e(hr,"unit","");var gr=class extends t{};e(gr,"id","Cy"),e(gr,"propName","cy"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","Rx"),e(xr,"propName","rx"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","Ry"),e(vr,"propName","ry"),e(vr,"unit","");var Oi=class extends t{};e(Oi,"id","BorderImageOutset"),e(Oi,"propName","border-image-outset");var Sr=class extends t{};e(Sr,"id","BorderImageRepeat"),e(Sr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(Sr,"propName","border-image-repeat");var br=class extends t{};e(br,"id","BorderImageSlice"),e(br,"propName","border-image-slice"),e(br,"unit","");var yr=class extends t{};e(yr,"id","BorderImageSource"),e(yr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(yr,"propName","border-image-source");var Cr=class extends t{};e(Cr,"id","BorderImageWidth"),e(Cr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(Cr,"propName","border-image-width");var Rr=class extends t{};e(Rr,"id","BorderImage"),e(Rr,"propName","border-image"),e(Rr,"unit","");var ts=/\{(.*)\}/,Mr=class extends t{getThemeProps(r,o){let i={},a=(p,x)=>{let l=x.indexOf(":");if(l!==-1){p in i||(i[p]={});let m=i[p],n=x.slice(0,l);n in m||(m[n]=x.slice(l+1))}},s=p=>{let x=(l,m)=>{let n=m.slice(CSS.escape(p.className).length).match(ts)[1].split(";");for(let v of n)a(l,v)};if(this.themeName){let l=p.natives.find(m=>m.themeName===this.themeName)??p.natives.find(m=>!m.themeName);l&&x(this.themeName,l.text)}else for(let l of p.natives)x(l.themeName,l.text)},c=[],d="",u=()=>{d&&(c.push(d),d="")},f=1;(function p(x){for(;f<r.value.length;f++){let l=r.value[f];if(!x){if(l===";"){u();continue}if(l==="}")break}if(d+=l,x===l){if(x==="'"){let m=0;for(let n=d.length-2;d[n]==="\\";n--)m++;if(m%2)continue}break}else l in Tr&&x!=="'"&&(f++,p(Tr[l]))}})(void 0),u();for(let p of c){let x=o.findAndNew(p);if(Array.isArray(x))for(let l of x)s(l);else x?s(x):a(this.themeName??"",p)}return i}};e(Mr,"id","Group"),e(Mr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Mr,"unit","");var kr=class extends t{};e(kr,"id","CounterIncrement"),e(kr,"propName","counter-increment"),e(kr,"unit","");var rs=[Mr,kt,je,X,Ee,ze,J,_e,Oe,Q,wr,oi,ii,Jr,At,Ot,Tt,wt,It,rt,We,Pe,Le,Ge,xi,ni,kr,Z,K,He,Ve,$e,ye,Vt,Ce,ir,ee,gi,zt,er,Ue,rr,ai,Qe,Ne,Kt,Jt,Ye,et,tt,it,ot,Or,Ar,Ir,Br,Fr,Dr,se,Lr,Gr,zr,_r,Hr,Vr,Ct,Mt,$r,Ur,yt,Qr,Ie,Ni,Be,ki,he,di,Xe,qe,te,re,Je,Ke,oe,ie,Ze,ae,st,Te,at,ne,nt,lt,ct,le,de,Er,jr,Wr,Yt,ci,Oi,Sr,br,yr,Cr,Rr,dt,mt,Pr,ft,U,pt,me,ut,ht,fe,pe,gt,xt,bt,ue,Ti,wi,St,vt,pr,ur,hr,gr,xr,vr,we,Ae,Se,ge,cr,fr,be,Rt,jt,Wt,Kr,Ci,dr,Ri,yi,mr,Si,Yr,ve,Zr,Xr,qr,Nt,xe,Bt,Ft,Dt,Et,Pt,Lt,Gt,ei,ti,ri,_t,Ht,or,si,Re,li,$t,Ut,Qt,Me,mi,ke,fi,pi,ui,qt,Xt,Zt,hi,tr,vi,sr,ar,nr,lr,bi,Mi],go=rs;var is={colors:oo,breakpoints:Nr,semantics:no,values:mo,selectors:ao,themes:lo,scheme:co,Rules:go,rootSize:so},Zi=is;function Ao(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function Ji(r){return Object.prototype.toString.call(r).slice(8,-1)}function Ai(r){return Ji(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function xo(r){return Ji(r)==="Symbol"}function Io(r,o,i,a){let s={}.propertyIsEnumerable.call(a,o)?"enumerable":"nonenumerable";s==="enumerable"&&(r[o]=i),s==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function Bo(r,o,i){if(!Ai(o))return o;let a={};if(Ai(r)){let u=Object.getOwnPropertyNames(r),f=Object.getOwnPropertySymbols(r);a=[...u,...f].reduce((p,x)=>{let l=r[x];return(!xo(x)&&!Object.getOwnPropertyNames(o).includes(x)||xo(x)&&!Object.getOwnPropertySymbols(o).includes(x))&&Io(p,x,l,r),p},{})}let s=Object.getOwnPropertyNames(o),c=Object.getOwnPropertySymbols(o);return[...s,...c].reduce((u,f)=>{let p=o[f],x=Ai(r)?r[f]:void 0;x!==void 0&&Ai(p)&&(p=Bo(x,p,i));let l=i?i(x,p,f):p;return Io(u,f,l,o),u},a)}function Ei(r,...o){return o.filter(i=>Ai(i)).reduce((i,a)=>Bo(i,a,Ao),r)}var os=[",",".","#","[","!","*",">","+","~",":","@"],ss=/^::-[a-z]+-/m,Ki,Wi=typeof window<"u";Wi&&(Ki=document.createElement("style"),Ki.title="master");var G="max-width",L="min-width",as="attributes",ns=Wi?window.MutationObserver:Object,Ii,Fe,ji=class extends ns{constructor(i){super(s=>{let c={},d=[],u=[],f=[],p=(n,v)=>{v?n.classList.forEach(l):n.classList.forEach(x);let h=n.children;for(let g=0;g<h.length;g++){let S=h[g];S.classList&&(u.push(S),p(S,v))}},x=n=>{n in c?c[n]++:c[n]=1},l=n=>{n in c?c[n]--:c[n]=-1},m=(n,v)=>{for(let h=0;h<n.length;h++){let g=n[h];g.classList&&!u.includes(g)&&!f.includes(g)&&(g.isConnected!==v?(u.push(g),p(g,v)):f.push(g))}};for(let n=0;n<s.length;n++){let v=s[n],{addedNodes:h,removedNodes:g,type:S,target:y,oldValue:O}=v;if(S===as){if(y.className===O||d.find(B=>B.target===y))continue;d.push(v)}else m(h,!1),m(g,!0)}if(!(!d.length&&!Object.keys(c).length)){for(let{oldValue:n,target:v}of d){let h=u.includes(v),g=v.classList,S=n?n.split(" "):[];if(h){if(v.isConnected)continue;for(let y of S)g.contains(y)||l(y)}else if(v.isConnected){g.forEach(y=>{S.includes(y)||x(y)});for(let y of S)g.contains(y)||l(y)}else for(let y of S)l(y)}for(let n in c){let v=c[n],h=(this.countOfClass[n]||0)+v;h===0?(delete this.countOfClass[n],this.delete(n)):(n in this.countOfClass||this.findAndInsert(n),this.countOfClass[n]=h)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"schemeMQL");ro(this,Ii,void 0);ro(this,Fe,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Ei({observe:!0},i),this.options.config&&!this.options.override?this.config=Ei(Zi,this.options.config):this.config=Zi;let a=this.root=this.options.root;if(this.cache(),Wi&&a){let s=a===document;s&&(ji.root=this),this.host=s?document.documentElement:a.host,this.scheme=this.storageScheme||this.config.scheme.preference;let c=s?document.head:a,d=s?document.styleSheets:a.styleSheets;for(let u of d){let{title:f,href:p,ownerNode:x}=u;(f==="master"||p&&/master(?:\..+)?\.css/.test(p))&&(this.style=x)}if(this.style)for(let u=0;u<this.style.sheet.cssRules.length;u++){let f=x=>{if(x.selectorText){let m=x.selectorText.split(", ")[0].split(" ");for(let n=0;n<m.length;n++){let v=m[n];if(v[0]==="."){let h=v.slice(1),g="";for(let S=0;S<h.length;S++){let y=h[S],O=h[S+1];if(y==="\\"){if(S++,O!=="\\"){g+=O;continue}}else if(os.includes(y))break;g+=y}if(!(g in this.ruleOfClass)&&!(g in this.classes)){let S=this.findAndNew(g);if(S)return S}}}}else if(x.cssRules)for(let l=0;l<x.cssRules.length;l++){let m=f(x.cssRules[l]);if(m)return m}},p=f(this.style.sheet.cssRules[u]);if(p){this.rules.push(p),this.ruleOfClass[p.className]=p;for(let x=0;x<p.natives.length;x++)p.natives[x].cssRule=this.style.sheet.cssRules[u+x];u+=p.natives.length-1}}else this.style=Ki.cloneNode(),c.prepend(this.style);this.options.observe&&this.observe()}ji.instances.push(this),this.ready=!0}static refresh(i){for(let a of this.instances)a.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==De(this,Ii)){io(this,Ii,i);let{storage:a}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&a.sync&&localStorage.setItem(a.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return De(this,Ii)}set theme(i){i!==De(this,Fe)&&(De(this,Fe)&&this.host.classList.remove(De(this,Fe)),io(this,Fe,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return De(this,Fe)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={};let{semantics:i,classes:a,selectors:s,themes:c,colors:d}=this.config;function u(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let l in i)this.semantics.push([new RegExp("^"+u(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),l]);if(s)for(let[l,m]of Object.entries(s)){let n=new RegExp(u(l)+"(?![a-z-])");for(let v of Array.isArray(m)?m:[m]){let h=v.match(ss)?.[0]??"",g=this.selectors[h];g||(g=this.selectors[h]=[]);let S=g.find(([y])=>y===n);S||(S=[n,[]],g.push(S)),S[1].push(v)}}let f=[...a?Object.keys(a):[],...c&&!Array.isArray(c)?Object.entries(c).flatMap(([l,{classes:m}])=>m?Object.keys(m):[]):[]],p=l=>{if(l in this.classes)return;let m=this.classes[l]=[],n=(v,h)=>{if(!h)return;let g=Array.isArray(h)?h:h.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let S of g){let y=O=>{O in this.relationThemesMap?v in this.relationThemesMap[O]?this.relationThemesMap[O][v].push(l):this.relationThemesMap[O][v]=[l]:this.relationThemesMap[O]={[v]:[l]},m.includes(O)||m.push(O)};if(f.includes(S)){p(S);for(let O of this.classes[S])y(O)}else y(S)}};if(n("",a?.[l]),c&&!Array.isArray(c))for(let[v,{classes:h}]of Object.entries(c))n(v,h?.[l])};for(let l of f)p(l);for(let l in this.relationThemesMap){let m=this.relations[l]=[];for(let n of Object.values(this.relationThemesMap[l]))for(let v of n)m.includes(v)||m.push(v)}let x=(l,m)=>{if(!!m)for(let n in m){let v=m[n];if(typeof v=="string"&&(v={"":v}),n in this.colorsThemesMap){let h=this.colorsThemesMap[n];for(let g in v){let S=v[g];g in h?h[g][l]=S:h[g]={[l]:S}}}else this.colorNames.push(n),this.colorsThemesMap[n]=Object.entries(v).reduce((h,[g,S])=>(h[g]={[l]:S},h),{})}};if(x("",d),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let l in c){let m=c[l];x(l,m.colors),this.themeNames.push(l)}}observe(i={subtree:!0,childList:!0}){return Wi?(i.subtree&&this.host.querySelectorAll("[class]").forEach(a=>{a.classList.forEach(s=>{s in this.countOfClass?this.countOfClass[s]++:(this.countOfClass[s]=1,this.findAndInsert(s))})}),super.observe(this.root,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this):this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let a=i.cssRules.length-1;a>=0;a--)i.deleteRule(a)}findAndNew(i){let a=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let c of this.config.Rules){let d=c.match(s,this.colorNames);if(d)return new c(s,d,this)}for(let c of this.semantics)if(s.match(c[0]))return new t(s,{origin:"semantics",value:c[1]},this)};return i in this.classes?this.classes[i].map(a).filter(s=>s):a(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let a=Ki.cloneNode();this.style.replaceWith(a),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.findAndInsert(s)}destroy(){let i=ji.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}insert(i){if(this.ruleOfClass[i.className])return;let{validateRule:a}=this.config;if(a&&!a(i,this))return;let s,c=this.rules.length-1,{media:d,order:u,prioritySelectorIndex:f,hasWhere:p,className:x}=i,l=(m,n,v,h)=>{let g=0,S;n&&(g=m.findIndex(n)),v&&(S=m.findIndex(v)),g===-1&&(g=m.length),(S===void 0||S===-1)&&(S=m.length);let y=m.slice(g,S);for(let O=0;O<y.length;O++){let B=y[O];if(!(B.prioritySelectorIndex===-1||h&&h(B))&&(B.prioritySelectorIndex<f||B.prioritySelectorIndex===f&&(p&&!B.hasWhere||B.order>=u)))return g+O}return g+y.length};if(d){let m=this.rules.findIndex(n=>n.media);if(m!==-1){let n=d.features[G],v=d.features[L];if(n&&v){let h=n.value-v.value;for(let g=c;g>=m;g--){s=g;let S=this.rules[g],y=S.media,O=y.features[G],B=y.features[L];if(!O||!B){s++;break}let R=O.value-B.value;if(R===h){if(p!==S.hasWhere)continue;if(f!==-1){let F=[this.rules[g]];for(let E=g-1;E>=m;E--){let H=this.rules[E];if(H.hasWhere!==p)break;let $=H.media,V=$.features[G],I=$.features[L];if(!V||!I||V.value-I.value!==R)break;F.unshift(this.rules[E])}s=l(this.rules,E=>E.media&&E.prioritySelectorIndex!==-1&&E.media.features[L]&&E.media.features[G])}break}else if(R>h)break}}else if(v)for(let h=m;h<=c;h++){s=h;let g=this.rules[h],S=g.media,y=S.features[G],O=S.features[L];if(y){if(O)break;continue}let B=O?.value;if(B===v.value){if(!p&&g.hasWhere){s++;continue}if(f!==-1)s=l(this.rules,R=>R.media,R=>R.media&&R.prioritySelectorIndex!==-1&&R.media.features[L]&&R.media.features[G],R=>!R.media.features[L]&&!R.media.features[G]);else for(let R=h;R<=c;R++){let F=this.rules[R],E=F.media,H=E.features[L];if(!E.features[G]){if(F.hasWhere!==p||H.value!==B||F.order>=u)break;s=R+1}}break}else{if(B>v.value)break;s++}}else if(n)for(let h=c;h>=m;h--){s=h;let g=this.rules[h],S=g.media,y=S.features[G];if(S.features[L])continue;let B=y?.value;if(!B||B>n.value){s++;break}else if(B===n.value){if(p&&!g.hasWhere)continue;if(f!==-1)s=l(this.rules,R=>R.media,R=>R.media&&R.prioritySelectorIndex!==-1&&R.media.features[L]&&R.media.features[G],R=>!R.media.features[L]&&!R.media.features[G]);else{let R=[this.rules[h]];for(let F=h-1;F>=m;F--){let E=this.rules[F],H=E.media,$=H.features[L],V=H.features[G];if(!$&&(!V||V.value!==B||E.hasWhere!==p))break;R.unshift(E)}for(let F=0;F<R.length;F++){let E=R[F];if(!E.media.features[L]){if(E.order>=u)break;s=h-R.length+2+F}}}break}}}if(s===void 0)if(m===-1)s=c+1;else if(f!==-1)s=m+l(this.rules.slice(m),void 0,n=>n.media.features[G]||n.media.features[L]);else if(p){let n=m;for(;n<this.rules.length;n++){let v=this.rules[n];if(v.prioritySelectorIndex!==-1||!v.hasWhere||v.order>=u){s=n;break}}s===void 0&&(s=n)}else for(let n=m;n<=c;n++){s=n;let v=this.rules[n],h=v.media;if(v.prioritySelectorIndex!==-1||h.features[G]||h.features[L])break;if(v.hasWhere)s++;else if(v.order>=u)break}}else if(f===-1)if(p)s=this.rules.findIndex(m=>!m.hasWhere||m.media||m.prioritySelectorIndex!==-1||m.order>=u),s===-1&&(s=c+1);else{let m=0;for(;m<this.rules.length;m++){let n=this.rules[m];if(n.media||!n.hasWhere&&(n.order>=u||n.prioritySelectorIndex!==-1)){s=m;break}}s===void 0&&(s=m)}else s=l(this.rules,void 0,m=>m.media);if(this.rules.splice(s,0,i),this.ruleOfClass[x]=i,this.style){let m=this.style.sheet,n=0,v=h=>{let g=this.rules[h];if(g){if(!g.natives.length)return v(h-1);let S=g.natives[g.natives.length-1].cssRule;for(let y=0;y<m.cssRules.length;y++)if(m.cssRules[y]===S){n=y+1;break}}};v(s-1);for(let h=0;h<i.natives.length;)try{let g=i.natives[h];m.insertRule(g.text,n),g.cssRule=m.cssRules[n++],h++}catch(g){console.error(g),i.natives.splice(h,1)}}}delete(i){let a=this.style.sheet,s=c=>{let d=this.ruleOfClass[c];if(!(!d||c in this.relations&&this.relations[c].some(u=>u in this.countOfClass))){if(d.natives.length){let u=d.natives[0];for(let f=0;f<a.cssRules.length;f++)if(a.cssRules[f]===u.cssRule){for(let x=0;x<d.natives.length;x++)a.deleteRule(f);this.rules.splice(this.rules.indexOf(d),1);break}}delete this.ruleOfClass[c]}};if(i in this.classes){for(let c of this.classes[i])c in this.countOfClass||s(c);delete this.ruleOfClass[i]}else s(i)}findAndInsert(i){let a=this.findAndNew(i);if(Array.isArray(a))for(let s of a)this.insert(s);else a&&this.insert(a)}get text(){return this.rules.map(i=>i.natives.map(a=>a.text).join("")).join("")}},_=ji;Ii=new WeakMap,Fe=new WeakMap,e(_,"instances",[]),e(_,"root");Wi&&(window.MasterCSS=_);var Pi=typeof global<"u"?global:window;if(!Pi.CSS&&!Pi.CSS?.escape){let r=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let i=String(o),a=i.length,s=-1,c="",d,u=i.charCodeAt(0);if(a==1&&u==45)return"\\"+i;for(;++s<a;){if(d=i.charCodeAt(s),d==0){c+="\uFFFD";continue}if(d>=1&&d<=31||d==127||s==0&&d>=48&&d<=57||s==1&&d>=48&&d<=57&&u==45){c+="\\"+d.toString(16)+" ";continue}if(d>=128||d==45||d==95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122){c+=i.charAt(s);continue}c+="\\"+i.charAt(s)}return c};Pi.CSS||(Pi.CSS={}),Pi.CSS.escape=r}function Fo(r,o=new _){if(!!r?.length){for(let i of r)i in o.countOfClass||(o.findAndInsert(i),o.countOfClass[i]=1);return o.rules.map(i=>i.natives.reduce((a,s)=>a+s.text,"")).join("")}}function eo(r,o=new _){if(!r)return;let i=/\sclass="([^"]*)"/gm,a;for(;a=i.exec(r);){let s=a[1].replace(/\n/g,"").split(" ").filter(c=>c);for(let c of s)c in o.countOfClass||(o.findAndInsert(c),o.countOfClass[c]=1)}return o.rules.map(s=>s.natives.reduce((c,d)=>c+d.text,"")).join("")}function Do(r,o=new _){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${eo(r,o)}</style>`)}var bR=typeof document<"u"&&document;export{go as DefaultRules,t as MasterCSSRule,_ as default,Nr as defaultBreakpoints,oo as defaultColors,Zi as defaultConfig,so as defaultRootSize,co as defaultScheme,ao as defaultSelectors,no as defaultSemantics,lo as defaultThemes,mo as defaultValues,Ei as extend,D as fillColorScale,Fo as render,eo as renderFromHTML,Do as renderIntoHTML,bR as root};
|
|
1
|
+
var Wo=Object.defineProperty;var Po=(r,o,i)=>o in r?Wo(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var e=(r,o,i)=>(Po(r,typeof o!="symbol"?o+"":o,i),i),So=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var De=(r,o,i)=>(So(r,o,"read from private field"),i?i.call(r):o.get(r)),ro=(r,o,i)=>{if(o.has(r))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(r):o.set(r,i)},io=(r,o,i,n)=>(So(r,o,"write to private field"),n?n.call(r,i):o.set(r,i),i);var Lo={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Nr=Lo;function Fi(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function bo(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function D(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let n in r)if(n&&+n>=100){i=!0;break}if(!i&&(!o||Object.keys(r).length>1)){let n=0,s="0"in r?Fi(r[0]):[0,0,0],m,c,h=[],f=()=>{let p=m-n,g=c.map((l,a)=>(l-s[a])/p);for(let l of h){let a=l-n,d=s.map((x,u)=>Math.round(x+g[u]*a));r[l]="#"+bo.call(this,...d)}};for(let p=1;p<100;p++)p in r?(h.length?(m=p,c=Fi(r[p]),f(),h.length=0,s=c):s=Fi(r[p]),n=p):h.push(p);h.length&&(m=100,c="100"in r?Fi(r[100]):[255,255,255],f())}return o||(r[""]=r[i?"500":"50"]),r}var Go={slate:D({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:D({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:D({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:D({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:D({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:D({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:D({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:D({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:D({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:D({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:D({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:D({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:D({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:D({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:D({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:D({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:D({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:D({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:D({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:D({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"},oo=Go;var so=16;var zo={"::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("},ao=zo;var _o={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","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"}},no=_o;var Ho=["dark","light"],lo=Ho;var Vo={storage:{sync:!0,key:"scheme"}},co=Vo;var Di={content:"content-box",border:"border-box",padding:"padding-box"},zi={min:"min-content",max:"max-content"},q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Nr)q[r]=Nr[r]/16+"rem";var $o={BackgroundClip:Di,BackgroundOrigin:Di,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Di,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{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"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:zi,GridAutoRows:zi,GridTemplateColumns:zi,GridTemplateRows:zi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Di,margin:"margin-box"},TransformBox:{...Di,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:q,MinWidth:q,MinHeight:q,MaxWidth:q,MaxHeight:q,Height:q,FlexBasis:q},mo=$o;function _i(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function yo(r){let o=h=>h==="+"||h==="-"||h==="*"||h==="/",i="",n,s="",m=!1;function c(){n=null,s=""}for(let h=0;h<r.length;h++){let f=r[h];if(f==="("||f===")")m=f===")",i+=s+f,c();else if(f===",")i+=s+f+" ",c();else{switch(n){case 1:break;case 2:if(o(f)){i+=s+" "+f+" ",c();continue}break;default:m&&(s+=" "),isNaN(+f)?o(f)||(n=1):n=2;break}s+=f}}return s&&(i+=s),i}var Uo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Qo="var(--";function Hi(r,o,i,n,s,m){let c=n?n[r]:"",h="",f="",p;if(c)return{value:c,unit:h,unitToken:f};if(typeof r=="number")c=r,h=o||"";else{if(i){let g=Object.keys(i),l=!1,a=!1;r=r.replace(new RegExp(`(^|,| |\\()(${g.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(d,x,u,v,S)=>{a=!0;let M=i[u]?.[v||""];if(M){let O;for(let B of m)if(O=M[B])break;if(O){l=!0;let B=O;if(S){let C=S.endsWith("%")?parseFloat(S)/100:+S;C=isNaN(C)?1:Math.min(Math.max(C,0),1),B+=Math.round(C*255).toString(16).toUpperCase().padStart(2,"0")}return x+B}}return d}),a&&(p=l)}if(o){let g=r.match(Uo);if(g)if(r.includes("/")){let l=r.split("/");return{value:+l[0]/+l[1]*100+"%",unit:h,unitToken:f}}else return c=+g[1],h=f=g[3]||"",h||((o==="rem"||o==="em")&&(c=c/s),h=o||""),{value:c,unit:h,unitToken:f}}c=(r.indexOf("calc(")===-1?r:yo(r)).replace(/\$\(((\w|-)+)\)/g,Qo+"$1)")}return{value:c,unit:h,unitToken:f,colorMatched:p}}var Tr={"(":")","'":"'","{":"}"};var Co=[":disabled",":active",":focus",":hover"],Vi="matches",Yo="semantics",Ro="symbol",ko="width",fo="max-"+ko,po="min-"+ko,ho="motion",No="reduce",Mo=No+"d-"+ho,uo="px",qo="rem",Xo=["!","*",">","+","~",":","[","@","_"],Zo=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Jo=r=>r.split(Zo).map((o,i)=>i%3?o:o.replace(/_/g," ")).join(""),t=class{constructor(o,i,n){this.className=o;this.matching=i;this.css=n;let s=this.constructor,{id:m,unit:c,propName:h,colorful:f}=s,{breakpoints:p,mediaQueries:g,semantics:l,rootSize:a}=n.config,d=n.config.values[m],x=n.relationThemesMap[o],{themeNames:u,colorsThemesMap:v,selectors:S}=n,M=o,O,B,C,F;if(i.origin===Yo)C=M.slice(i.value.length),O=l[i.value];else{let I;if(i.origin===Vi)if(m==="Group"){let N=0;for(;N<M.length&&!(M[N]==="{"&&M[N-1]!=="\\");N++);B=M.slice(0,N),I=M.slice(N)}else{let N=M.indexOf(":");this.prefix=M.slice(0,N+1),this.prefix.includes("(")?(this.prefix=void 0,I=M):I=M.slice(N+1)}else i.origin===Ro&&(this.symbol=M[0],I=M.slice(1));F=[];let y="",R=0;(function N(j,k,T=""){let b,w=!1;for(j&&(j===")"&&y.slice(-1)==="$"?b=y.length-1:j==="'"&&(w=!0),y+=I[R++]);R<I.length;R++){let A=I[R];if(A===j){if(y+=A,w){let W=0;for(let z=y.length-2;y[z]==="\\";z--)W++;if(W%2)continue}b!==void 0&&(y=y.slice(0,b)+y.slice(b).replace(/\$\((.*)\)/,"var(--$1)")),k||(w?F.push(y):F.push({value:y}),T="",y="");break}else if(!w&&A in Tr)N(Tr[A],k===void 0?0:k+1,T);else if(A==="|"&&j!=="}"&&(!w||T==="path"))j?y+=" ":(F.push({value:y}),y="");else{if(!j){if(A==="."){if(isNaN(+I[R+1]))break;I[R-1]==="-"&&(y+="0")}else if(A===","){F.push({value:y},","),y="";continue}else if(A==="#"&&(y||F.length&&I[R-1]!=="|")||Xo.includes(A))break;T+=A}y+=A}}})(),y&&F.push({value:y}),C=I.slice(R)}C[0]==="!"&&(this.important=!0,C=C.slice(1));let E=I=>{let y=Jo(I),R=[],N="",j=0;for(let k=0;k<y.length;k++){let T=y[k];if(T==="\\"){N+=T+y[++k];continue}!j&&T===","?(R.push(N),N=""):(N+=T,j&&T===")"?j--:T==="("&&j++)}return N&&R.push(N),R};this.prefixSelectors=B?E(B):[""];let H=C.split("@"),$=H[0];if($){this.vendorSuffixSelectors={};let I=(k,T,b,w)=>{for(let[A,W]of T)if(A.test(k)){for(let z of W)I(k.replace(A,z),T,b,!0);return}w&&b.push(k)},y=[];""in S?I($,S[""],y,!0):y.push($);let R={};for(let[k,T]of Object.entries(S)){if(!k)continue;let b=[];for(let w of y)I(w,T,b,!1);b.length&&(R[k]=b)}let N=(k,T)=>{let b=T.reduce((w,A)=>(w.push(...E(A)),w),[]);k in this.vendorSuffixSelectors?this.vendorSuffixSelectors[k].push(...b):this.vendorSuffixSelectors[k]=b},j=Object.keys(R);if(j.length)for(let k of j)N(k,R[k]);else N("",y);for(let k of Object.values(this.vendorSuffixSelectors))for(let T of k){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let b=0;b<Co.length;b++)if(T.includes(Co[b])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>b)&&(this.prioritySelectorIndex=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let I=1;I<H.length;I++){let y=H[I];if(y)if(u.includes(y))this.themeName=y;else if(y==="rtl"||y==="ltr")this.direction=y;else{let R,N,j=y.indexOf("_");if(j!==-1)R=y.slice(0,j),N=y.slice(j);else{let k=y.indexOf("(");k!==-1&&(R=y.slice(0,k),N=y.slice(k))}if(!R){R="media";let k=[];this.media={token:y,features:{}};let T=y.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")k.push("(orientation:"+b+")");else if(b===ho||b===Mo)k.push("(prefers-"+Mo+":"+(b===ho?"no-preference":No)+")");else if(g&&b in g)k.push(g[b]);else{let w={token:b},A="",W="",z=0;b.startsWith("<=")?(W="<=",A=fo):b.startsWith(">=")||p[b]?(W=">=",A=po):b.startsWith(">")?(W=">",A=po,z=.02):b.startsWith("<")&&(W="<",A=fo,z=-.02);let Y=W?b.replace(W,""):b,P=p[Y];switch(A){case fo:case po:P?Object.assign(w,Hi(P,uo)):Object.assign(w,Hi(Y,uo)),w.unit===uo&&(w.value+=z),this.media.features[A]=w,k.push("("+A+":"+(w.value+w.unit)+")");break}}N="",this.media.type&&(N=this.media.type),k.length&&(N+=(N?" and ":"")+k.join(" and "))}N&&(this.at[R]=(R in this.at?this.at[R]+" and ":"")+N.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let V=(I,y)=>{let R,N,j=(T,b,w)=>{let A="";this.direction&&(A+="[dir="+this.direction+"] ");let W=this.prefixSelectors.map(P=>P+A),z=(P,Li)=>{let Bi=P?"."+P+" ":"",to="."+CSS.escape(Li);return W.map(Gi=>Bi+Gi).reduce((Gi,Eo)=>(Gi.push(w.reduce((vo,jo)=>(vo.push(Eo+to+jo),vo),[]).join(",")),Gi),[]).join(",")},Y=z(b,o)+(x?Object.entries(x).filter(([P])=>this.themeName||!f||!b||!P||P===b).map(([P,Li])=>Li.reduce((Bi,to)=>Bi+","+z(this.themeName??(f&&b||P),to),"")).join(""):"")+"{"+T+"}";for(let P of Object.keys(this.at).sort((Li,Bi)=>Bi==="supports"?-1:1))Y="@"+P+" "+this.at[P]+"{"+Y+"}";return Y},k=[];if(F){let T,b;for(let w of F)typeof w=="string"?k.push(w):(T=Hi(w.value,c,f&&v,d,a,this.themeName?[this.themeName,""]:[I]),T.colorMatched!==void 0&&b!==!0&&(b=T.colorMatched),k.push(T.value+T.unit));if(y&&(b===void 0?I:!b))return;if(k.length===1?T?(R=T.value,N=T.unit):R=k[0]:R=k.reduce((w,A,W)=>w+A+(A===","||F[W+1]===","||W===F.length-1?"":" "),""),typeof R!="object"){this.parseValue&&(R=this.parseValue(R,this.css.config)),f&&R==="current"?R="currentColor":d&&R in d&&(R=d[R].toString());let w={unit:N,value:R,important:this.important};if(this.getThemeProps){let A=this.getThemeProps(w,n);for(let W in A)for(let z of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:R,text:j(Object.entries(A[W]).map(([Y,P])=>_i(Y,{important:this.important,unit:"",value:P})).join(";"),W,z),themeName:W});return}else this.get&&(R=this.get(w))}}else R=O;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:R,text:j(typeof R=="object"?Object.entries(R).map(([b,w])=>_i(b,{...typeof w=="object"?w:{unit:"",value:w},important:this.important})).join(";"):_i(h,{unit:N,value:R,important:this.important}),I,T),themeName:I})};if(this.getThemeProps)V(void 0,!1);else if(this.themeName)V(this.themeName,!1);else if(f)for(let I of u)V(I,!0);else V("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(o,i){if(this.matches&&this.matches.test(o))return{origin:Vi};if(this.colorStarts&&(o.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||i.length&&o.match("^"+this.colorStarts+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:Vi};if(this.symbol&&o.startsWith(this.symbol))return{origin:Ro};if(this.propName&&o.startsWith(this.propName+":"))return{origin:Vi}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",qo),e(t,"colorful");var X=class extends t{};e(X,"id","FontWeight"),e(X,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(X,"propName","font-weight"),e(X,"unit","");var Ee=class extends t{};e(Ee,"id","FontFamily"),e(Ee,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(Ee,"propName","font-family");var je=class extends t{};e(je,"id","FontSize"),e(je,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(je,"propName","font-size");var wr=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",n=i+"-left",s=i+"-right",m=i+"-top",c=i+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[m]:r,[c]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[m]:r};case"b":return{[c]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(wr,"id","Spacing"),e(wr,"matches",/^[pm][xytblr]?:./);var We=class extends t{};e(We,"id","Width"),e(We,"matches",/^w:./),e(We,"propName","width");var Pe=class extends t{};e(Pe,"id","Height"),e(Pe,"matches",/^h:./),e(Pe,"propName","height");var Le=class extends t{};e(Le,"id","MinWidth"),e(Le,"matches",/^min-w:./),e(Le,"propName","min-width");var Ge=class extends t{};e(Ge,"id","MinHeight"),e(Ge,"matches",/^min-h:./),e(Ge,"propName","min-height");var Z=class extends t{};e(Z,"id","LetterSpacing"),e(Z,"matches",/^ls:./),e(Z,"propName","letter-spacing"),e(Z,"unit","em");var Ko="subpixel-antialiased",To="-webkit-font-smoothing",wo="-moz-osx-font-smoothing",ze=class extends t{get(r){let o={};switch(r.value){case Ko:o[To]=o[wo]={...r,value:"auto"};break;case"antialiased":o[To]={...r,value:"antialiased"},o[wo]={...r,value:"grayscale"};break}return o}};e(ze,"id","FontSmoothing"),e(ze,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(ze,"unit","");var J=class extends t{};e(J,"id","FontStyle"),e(J,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(J,"propName","font-style"),e(J,"unit","deg");var _e=class extends t{};e(_e,"id","FontVariantNumeric"),e(_e,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(_e,"propName","font-variant-numeric");var K=class extends t{};e(K,"id","LineHeight"),e(K,"matches",/^lh:./),e(K,"propName","line-height"),e(K,"unit","");var He=class extends t{};e(He,"id","ObjectFit"),e(He,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(He,"propName","object-fit");var Ve=class extends t{};e(Ve,"id","ObjectPosition"),e(Ve,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Ve,"propName","object-position");var $e=class extends t{};e($e,"id","TextAlign"),e($e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e($e,"propName","text-align");var ee=class extends t{order=-1};e(ee,"id","TextDecoration"),e(ee,"matches",/^t(ext)?:(underline|line-through|overline)/),e(ee,"propName","text-decoration"),e(ee,"colorful",!0);var Ue=class extends t{};e(Ue,"id","TextTransform"),e(Ue,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Ue,"propName","text-transform");var Qe=class extends t{};e(Qe,"id","VerticalAlign"),e(Qe,"matches",/^(?:v|vertical):./),e(Qe,"propName","vertical-align");var Ye=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(Ye,"id","Lines"),e(Ye,"matches",/^lines:./),e(Ye,"unit","");var te=class extends t{};e(te,"id","TransformOrigin"),e(te,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(te,"propName","transform-origin"),e(te,"unit","px");var qe=class extends t{};e(qe,"id","TransformStyle"),e(qe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(qe,"propName","transform-style");var Xe=class extends t{};e(Xe,"id","TransformBox"),e(Xe,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Xe,"propName","transform-box");var re=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,n,s,m)=>{let c,h;switch(n){case"translate":c="rem";break;case"skew":c="deg";break;case"rotate":s==="3d"&&(h=!0),c="deg";break;default:return i}let f=m.split(",");return i.replace(m,f.map((p,g)=>!h||f.length-1===g?Number.isNaN(+p)?p:p/(c==="rem"?o:1)+c:p).join(","))})}};e(re,"id","Transform"),e(re,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(re,"propName","transform"),e(re,"unit","");var Ze=class extends t{order=-1};e(Ze,"id","Transition"),e(Ze,"symbol","~"),e(Ze,"propName","transition");var ie=class extends t{};e(ie,"id","TransitionDelay"),e(ie,"matches",/^~delay:./),e(ie,"propName","transition-delay"),e(ie,"unit","ms");var oe=class extends t{};e(oe,"id","TransitionDuration"),e(oe,"matches",/^~duration:./),e(oe,"propName","transition-duration"),e(oe,"unit","ms");var Je=class extends t{};e(Je,"id","TransitionProperty"),e(Je,"matches",/^~property:./),e(Je,"propName","transition-property");var Ke=class extends t{};e(Ke,"id","TransitionTimingFunction"),e(Ke,"matches",/^~easing:./),e(Ke,"propName","transition-timing-function");var et=class extends t{};e(et,"id","MaxHeight"),e(et,"matches",/^max-h:./),e(et,"propName","max-height");var tt=class extends t{};e(tt,"id","MaxWidth"),e(tt,"matches",/^max-w:./),e(tt,"propName","max-width");var rt=class extends t{};e(rt,"id","Display"),e(rt,"matches",/^d:./),e(rt,"propName","display");var it=class extends t{};e(it,"id","BoxSizing"),e(it,"matches",/^box:(content|border)(?!\|)/),e(it,"propName","box-sizing");var ot=class extends t{};e(ot,"id","Opacity"),e(ot,"propName","opacity"),e(ot,"unit","");var Or=class extends t{};e(Or,"id","Visibility"),e(Or,"propName","visibility");var Ar=class extends t{};e(Ar,"id","Clear"),e(Ar,"propName","clear");var Ir=class extends t{};e(Ir,"id","Float"),e(Ir,"propName","float");var Br=class extends t{};e(Br,"id","Isolation"),e(Br,"propName","isolation");var Fr=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Fr,"id","Overflow"),e(Fr,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Dr=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(Dr,"id","OverscrollBehavior"),e(Dr,"matches",/^overscroll-behavior(?:-[xy])?:/);var se=class extends t{};e(se,"id","ZIndex"),e(se,"matches",/^z:./),e(se,"propName","z-index"),e(se,"unit","");var ae=class extends t{};e(ae,"id","AnimationDelay"),e(ae,"matches",/^@delay:./),e(ae,"propName","animation-delay"),e(ae,"unit","ms");var st=class extends t{};e(st,"id","AnimationDirection"),e(st,"matches",/^@direction:./),e(st,"propName","animation-direction");var at=class extends t{};e(at,"id","AnimationFillMode"),e(at,"matches",/^@fill-mode:./),e(at,"propName","animation-fill-mode");var ne=class extends t{};e(ne,"id","AnimationIterationCount"),e(ne,"matches",/^@iteration-count:./),e(ne,"propName","animation-interation-count"),e(ne,"unit","");var nt=class extends t{};e(nt,"id","AnimationName"),e(nt,"matches",/^@name:./),e(nt,"propName","animation-name");var lt=class extends t{};e(lt,"id","AnimationPlayState"),e(lt,"matches",/^@play-state:./),e(lt,"propName","animation-play-state");var ct=class extends t{};e(ct,"id","AnimationTimingFunction"),e(ct,"matches",/^@easing:./),e(ct,"propName","animation-timing-function");var le=class extends t{order=-1};e(le,"id","Animation"),e(le,"symbol","@"),e(le,"propName","animation"),e(le,"unit","");var $i="border-";function ce(r,o,i=""){i&&(i="-"+i);let n=/^b(order)?-?(.)?/.exec(r)[2],s=$i+"left"+i,m=$i+"right"+i,c=$i+"top"+i,h=$i+"bottom"+i;switch(n){case"x":return{[s]:o,[m]:o};case"y":return{[c]:o,[h]:o};case"l":return{[s]:o};case"r":return{[m]:o};case"t":return{[c]:o};case"b":return{[h]:o};default:return{["border"+i]:o}}}var de=class extends t{get(r){return ce(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(de,"id","BorderColor"),e(de,"matches",/^border(-(left|right|top|bottom))?-color:./),e(de,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(de,"colorful",!0);var Ui="border-top-left-radius",Qi="border-top-right-radius",Yi="border-bottom-left-radius",qi="border-bottom-right-radius",Oo="border-radius",es=[Ui,Qi,Yi,qi],Er=class extends t{get(r){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let s=1;s<n.length-1;s++)i+=n[s][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[Ui]:r,[Qi]:r};case"tl":case"lt":return{[Ui]:r};case"rt":case"tr":return{[Qi]:r};case"b":return{[Yi]:r,[qi]:r};case"bl":case"lb":return{[Yi]:r};case"br":case"rb":return{[qi]:r};case"l":return{[Ui]:r,[Yi]:r};case"r":return{[Qi]:r,[qi]:r};default:return{[Oo]:r}}}let o=this.prefix?.slice(0,-1);return{[es.includes(o)?o:Oo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Er,"id","BorderRadius"),e(Er,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var jr=class extends t{get(r){return ce(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(jr,"id","BorderStyle"),e(jr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var Wr=class extends t{get(r){return ce(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Wr,"id","BorderWidth"),e(Wr,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var dt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(dt,"id","Border"),e(dt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(dt,"colorful",!0);var mt=class extends t{};e(mt,"id","BackgroundAttachment"),e(mt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(mt,"propName","background-attachment");var Pr=class extends t{};e(Pr,"id","BackgroundBlendMode"),e(Pr,"propName","background-blend-mode");var ft=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(ft,"id","BackgroundClip"),e(ft,"matches",/^(bg|background):text(?!\|)/),e(ft,"propName","background-clip");var U=class extends t{};e(U,"id","BackgroundColor"),e(U,"colorStarts","(bg|background):"),e(U,"propName","background-color"),e(U,"unit",""),e(U,"colorful",!0);var pt=class extends t{};e(pt,"id","BackgroundOrigin"),e(pt,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(pt,"propName","background-origin");var me=class extends t{};e(me,"id","BackgroundPosition"),e(me,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(me,"propName","background-position"),e(me,"unit","px");var ut=class extends t{};e(ut,"id","BackgroundRepeat"),e(ut,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ut,"propName","background-repeat");var ht=class extends t{};e(ht,"id","BackgroundSize"),e(ht,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(ht,"propName","background-size");var fe=class extends t{};e(fe,"id","BackgroundImage"),e(fe,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(fe,"propName","background-image"),e(fe,"colorful",!0);var pe=class extends t{order=-1};e(pe,"id","Background"),e(pe,"matches",/^bg:./),e(pe,"propName","background"),e(pe,"colorful",!0);var gt=class extends t{};e(gt,"id","MixBlendMode"),e(gt,"matches",/^blend:./),e(gt,"propName","mix-blend-mode");var Lr=class extends t{};e(Lr,"id","Position"),e(Lr,"propName","position");var Gr=class extends t{get(r){let o=this.prefix.slice(0,-1);switch(o){case"top":case"left":case"right":case"bottom":return{[o]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Gr,"id","Placement"),e(Gr,"matches",/^(top|left|right|bottom|center|middle):./);function Xi(r,o,{rootSize:i}){let n="",s=0;return function m(c,h){let f="",p=h?o(h):"",g=()=>{f&&(n+=!p||Number.isNaN(+f)?f:+f/(p==="rem"?i:1)+p,f="")};for(;s<r.length;s++){let l=r[s];if(l===c&&(c!=="'"||r[s+1]===")")){g(),n+=l;break}else l===","||l===" "?(g(),n+=l):!f&&l==="'"?(n+=l,s++,m(l),f=""):f&&l==="("?(n+=f+l,s++,m(")",f),f=""):f+=l}g()}(),n}var xt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return Xi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(xt,"id","BackdropFilter"),e(xt,"matches",/^bd:./),e(xt,"propName","backdrop-filter");var ue=class extends t{};e(ue,"id","Fill"),e(ue,"propName","fill"),e(ue,"colorStarts","fill:"),e(ue,"colorful",!0);var vt=class extends t{};e(vt,"id","Stroke"),e(vt,"propName","stroke"),e(vt,"colorful",!0);var St=class extends t{};e(St,"id","StrokeWidth"),e(St,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(St,"propName","stroke-width");var bt=class extends t{parseValue(r,o){return Xi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(bt,"id","Filter"),e(bt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(bt,"propName","filter");var zr=class extends t{};e(zr,"id","Cursor"),e(zr,"propName","cursor");var _r=class extends t{};e(_r,"id","PointerEvents"),e(_r,"propName","pointer-events");var Hr=class extends t{};e(Hr,"id","Resize"),e(Hr,"propName","resize");var Vr=class extends t{};e(Vr,"id","TouchAction"),e(Vr,"propName","touch-action");var $r=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e($r,"id","UserDrag"),e($r,"propName","user-drag");var Ur=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(Ur,"id","UserSelect"),e(Ur,"propName","user-select");var he=class extends t{};e(he,"id","BoxShadow"),e(he,"matches",/^s(?:hadow)?:./),e(he,"propName","box-shadow"),e(he,"colorful",!0);var yt=class extends t{};e(yt,"id","TextShadow"),e(yt,"propName","text-shadow"),e(yt,"colorful",!0);var Qr=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Qr,"id","TextSize"),e(Qr,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Ct=class extends t{};e(Ct,"id","WordBreak"),e(Ct,"propName","word-break"),e(Ct,"unit","");var ge=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(ge,"id","GridColumns"),e(ge,"matches",/^grid-cols:./),e(ge,"propName","grid-columns"),e(ge,"unit","");var Rt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Rt,"id","GridRows"),e(Rt,"propName","grid-rows"),e(Rt,"unit","");var Yr=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e(Yr,"id","Gap"),e(Yr,"matches",/^gap(-x|-y)?:./);var Mt=class extends t{};e(Mt,"id","WordSpacing"),e(Mt,"propName","word-spacing"),e(Mt,"unit","em");var kt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(kt,"id","Variable"),e(kt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(kt,"unit","");var xe=class extends t{};e(xe,"id","AspectRadio"),e(xe,"matches",/^aspect:./),e(xe,"propName","aspect-ratio"),e(xe,"unit","");var Nt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Nt,"id","BoxDecorationBreak"),e(Nt,"matches",/^box:(slice|clone)(?!\|)/),e(Nt,"propName","box-decoration-break");var qr=class extends t{};e(qr,"id","BreakAfter"),e(qr,"propName","break-after");var Xr=class extends t{};e(Xr,"id","BreakBefore"),e(Xr,"propName","break-before");var Zr=class extends t{};e(Zr,"id","BreakInside"),e(Zr,"propName","break-inside");var Tt=class extends t{};e(Tt,"id","FlexShrink"),e(Tt,"propName","flex-shrink"),e(Tt,"unit","");var wt=class extends t{};e(wt,"id","FlexDirection"),e(wt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(wt,"propName","flex-direction");var Ot=class extends t{};e(Ot,"id","FlexGrow"),e(Ot,"propName","flex-grow"),e(Ot,"unit","");var At=class extends t{};e(At,"id","FlexWrap"),e(At,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(At,"propName","flex-wrap");var Jr=class extends t{};e(Jr,"id","FlexBasis"),e(Jr,"propName","flex-basis");var It=class extends t{order=-1};e(It,"id","Flex"),e(It,"propName","flex"),e(It,"unit","");var ve=class extends t{};e(ve,"id","Order"),e(ve,"matches",/^o:./),e(ve,"propName","order"),e(ve,"unit","");var Se=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Se,"id","GridColumn"),e(Se,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(Se,"propName","grid-column"),e(Se,"unit","");var Bt=class extends t{};e(Bt,"id","ColumnSpan"),e(Bt,"matches",/^col-span:./),e(Bt,"propName","column-span");var be=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(be,"id","GridRow"),e(be,"matches",/^grid-row-span:./),e(be,"propName","grid-row"),e(be,"unit","");var Q=class extends t{};e(Q,"id","Color"),e(Q,"colorStarts","(?:color|fg|foreground):"),e(Q,"colorful",!0),e(Q,"propName","color"),e(Q,"unit","");var Ft=class extends t{};e(Ft,"id","AlignContent"),e(Ft,"matches",/^ac:./),e(Ft,"propName","align-content");var Dt=class extends t{};e(Dt,"id","AlignItems"),e(Dt,"matches",/^ai:./),e(Dt,"propName","align-items");var Et=class extends t{};e(Et,"id","AlignSelf"),e(Et,"matches",/^as:./),e(Et,"propName","align-self");var jt=class extends t{};e(jt,"id","GridAutoColumns"),e(jt,"matches",/^grid-auto-cols:./),e(jt,"propName","grid-auto-columns");var Wt=class extends t{};e(Wt,"id","GridAutoFlow"),e(Wt,"matches",/^grid-flow:./),e(Wt,"propName","grid-auto-flow");var Kr=class extends t{};e(Kr,"id","GridAutoRows"),e(Kr,"propName","grid-auto-rows");var Pt=class extends t{};e(Pt,"id","JustifyContent"),e(Pt,"matches",/^jc:./),e(Pt,"propName","justify-content");var Lt=class extends t{};e(Lt,"id","JustifyItems"),e(Lt,"matches",/^ji:./),e(Lt,"propName","justify-items");var Gt=class extends t{};e(Gt,"id","JustifySelf"),e(Gt,"matches",/^js:./),e(Gt,"propName","justify-self");var ei=class extends t{order=-1};e(ei,"id","PlaceContent"),e(ei,"propName","place-content");var ti=class extends t{order=-1};e(ti,"id","PlaceItems"),e(ti,"propName","place-items");var ri=class extends t{order=-1};e(ri,"id","PlaceSelf"),e(ri,"propName","place-self");var ii=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ii,"id","Padding"),e(ii,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var oi=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(oi,"id","Margin"),e(oi,"matches",/^margin(-(left|right|top|bottom))?:./);var zt=class extends t{};e(zt,"id","TextOverflow"),e(zt,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(zt,"propName","text-overflow");var _t=class extends t{};e(_t,"id","ListStylePosition"),e(_t,"matches",/^list-style:(inside|outside)(?!\|)/),e(_t,"propName","list-style-position");var Ht=class extends t{};e(Ht,"id","ListStyleType"),e(Ht,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Ht,"propName","list-style-type");var si=class extends t{order=-1};e(si,"id","ListStyle"),e(si,"propName","list-style");var ye=class extends t{};e(ye,"id","TextDecorationColor"),e(ye,"propName","text-decoration-color"),e(ye,"colorStarts","text-decoration:"),e(ye,"colorful",!0);var Vt=class extends t{};e(Vt,"id","TextDecorationStyle"),e(Vt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Vt,"propName","text-decoration-style");var Ce=class extends t{};e(Ce,"id","TextDecorationThickness"),e(Ce,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Ce,"propName","text-decoration-thickness"),e(Ce,"unit","em");var ai=class extends t{};e(ai,"id","TextIndent"),e(ai,"propName","text-indent");var ni=class extends t{};e(ni,"id","Content"),e(ni,"propName","content");var Re=class extends t{};e(Re,"id","OutlineColor"),e(Re,"propName","outline-color"),e(Re,"colorStarts","outline:"),e(Re,"colorful",!0);var li=class extends t{};e(li,"id","OutlineOffset"),e(li,"propName","outline-offset");var $t=class extends t{};e($t,"id","OutlineStyle"),e($t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e($t,"propName","outline-style");var Ut=class extends t{};e(Ut,"id","OutlineWidth"),e(Ut,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ut,"propName","outline-width");var Qt=class extends t{order=-1};e(Qt,"id","Outline"),e(Qt,"propName","outline"),e(Qt,"colorful",!0);var Yt=class extends t{};e(Yt,"id","BorderCollapse"),e(Yt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(Yt,"propName","border-collapse");var ci=class extends t{};e(ci,"id","BorderSpacing"),e(ci,"propName","border-spacing");var di=class extends t{};e(di,"id","TableLayout"),e(di,"propName","table-layout");var Me=class extends t{};e(Me,"id","AccentColor"),e(Me,"propName","accent-color"),e(Me,"colorStarts","accent:"),e(Me,"colorful",!0);var mi=class extends t{};e(mi,"id","Appearance"),e(mi,"propName","appearance");var ke=class extends t{};e(ke,"id","CaretColor"),e(ke,"propName","caret-color"),e(ke,"colorStarts","caret:"),e(ke,"colorful",!0);var fi=class extends t{};e(fi,"id","ScrollBehavior"),e(fi,"propName","scroll-behavior");var pi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(pi,"id","ScrollMargin"),e(pi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var ui=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(ui,"id","ScrollPadding"),e(ui,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var qt=class extends t{};e(qt,"id","ScrollSnapAlign"),e(qt,"matches",/^scroll-snap:(start|end|center)/),e(qt,"propName","scroll-snap-align");var Xt=class extends t{};e(Xt,"id","ScrollSnapStop"),e(Xt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Xt,"propName","scroll-snap-stop");var Zt=class extends t{};e(Zt,"id","ScrollSnapType"),e(Zt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Zt,"propName","scroll-snap-type");var hi=class extends t{};e(hi,"id","WillChange"),e(hi,"propName","will-change");var gi=class extends t{};e(gi,"id","TextUnderlineOffset"),e(gi,"propName","text-underline-offset");var Jt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Jt,"id","Inset"),e(Jt,"matches",/^(?:top|bottom|left|right):./),e(Jt,"propName","inset");var Ne=class extends t{order=-1};e(Ne,"id","Columns"),e(Ne,"matches",/^(columns|cols):./),e(Ne,"propName","columns"),e(Ne,"unit","");var Kt=class extends t{};e(Kt,"id","WhiteSpace"),e(Kt,"propName","white-space"),e(Kt,"unit","");var er=class extends t{};e(er,"id","TextOrientation"),e(er,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(er,"propName","text-orientation");var tr=class extends t{};e(tr,"id","WritingMode"),e(tr,"matches",/^writing:./),e(tr,"propName","writing-mode");var xi=class extends t{};e(xi,"id","Contain"),e(xi,"propName","contain");var Te=class extends t{};e(Te,"id","AnimationDuration"),e(Te,"matches",/^@duration:./),e(Te,"propName","animation-duration"),e(Te,"unit","ms");var rr=class extends t{};e(rr,"id","TextRendering"),e(rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(rr,"propName","text-rendering");var vi=class extends t{};e(vi,"id","Direction"),e(vi,"propName","direction");var ir=class extends t{};e(ir,"id","TextDecorationLine"),e(ir,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(ir,"propName","text-decoration-line");var we=class extends t{};e(we,"id","GridColumnStart"),e(we,"matches",/^grid-col-start:./),e(we,"propName","grid-column-start"),e(we,"unit","");var or=class extends t{};e(or,"id","ListStyleImage"),e(or,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(or,"propName","list-style-image");var sr=class extends t{};e(sr,"id","ShapeOutside"),e(sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(sr,"propName","shape-outside");var ar=class extends t{};e(ar,"id","ShapeMargin"),e(ar,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ar,"propName","shape-margin");var nr=class extends t{};e(nr,"id","ShapeImageThreshold"),e(nr,"propName","shape-image-threshold"),e(nr,"unit","");var lr=class extends t{};e(lr,"id","ClipPath"),e(lr,"matches",/^clip:./),e(lr,"propName","clip-path");var Si=class extends t{order=-1};e(Si,"id","Grid"),e(Si,"propName","grid");var Oe=class extends t{order=-1};e(Oe,"id","Font"),e(Oe,"matches",/^f:./),e(Oe,"propName","font"),e(Oe,"unit","");var bi=class extends t{};e(bi,"id","Quotes"),e(bi,"propName","quotes");var yi=class extends t{order=-1};e(yi,"id","GridTemplate"),e(yi,"propName","grid-template");var cr=class extends t{};e(cr,"id","GridRowStart"),e(cr,"propName","grid-row-start"),e(cr,"unit","");var Ci=class extends t{};e(Ci,"id","GridTemplateAreas"),e(Ci,"propName","grid-template-areas");var dr=class extends t{};e(dr,"id","GridTemplateColumns"),e(dr,"matches",/^grid-template-cols:./),e(dr,"propName","grid-template-columns");var Ri=class extends t{};e(Ri,"id","GridTemplateRows"),e(Ri,"propName","grid-template-rows");var mr=class extends t{order=-1};e(mr,"id","GridArea"),e(mr,"propName","grid-area"),e(mr,"unit","");var Ae=class extends t{};e(Ae,"id","GridColumnEnd"),e(Ae,"matches",/^grid-col-end:./),e(Ae,"propName","grid-column-end"),e(Ae,"unit","");var fr=class extends t{};e(fr,"id","GridRowEnd"),e(fr,"propName","grid-row-end"),e(fr,"unit","");var Mi=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Mi,"id","MaskImage"),e(Mi,"propName","mask-image");var Ie=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(Ie,"id","TextFillColor"),e(Ie,"matches",/^text-fill-color:./),e(Ie,"colorStarts","(text-fill|text|t):"),e(Ie,"colorful",!0);var ki=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(ki,"id","TextStroke"),e(ki,"matches",/^text-stroke:./);var Ni=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(Ni,"id","TextStrokeWidth"),e(Ni,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Be=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Be,"id","TextStrokeColor"),e(Be,"matches",/^text-stroke-color:./),e(Be,"colorStarts","text-stroke:"),e(Be,"colorful",!0);var Ti=class extends t{};e(Ti,"id","StrokeDasharray"),e(Ti,"propName","stroke-dasharray");var wi=class extends t{};e(wi,"id","StrokeDashoffset"),e(wi,"propName","stroke-dash-offset");var pr=class extends t{};e(pr,"id","X"),e(pr,"propName","x"),e(pr,"unit","");var ur=class extends t{};e(ur,"id","Y"),e(ur,"propName","y"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Cx"),e(hr,"propName","cx"),e(hr,"unit","");var gr=class extends t{};e(gr,"id","Cy"),e(gr,"propName","cy"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","Rx"),e(xr,"propName","rx"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","Ry"),e(vr,"propName","ry"),e(vr,"unit","");var Oi=class extends t{};e(Oi,"id","BorderImageOutset"),e(Oi,"propName","border-image-outset");var Sr=class extends t{};e(Sr,"id","BorderImageRepeat"),e(Sr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(Sr,"propName","border-image-repeat");var br=class extends t{};e(br,"id","BorderImageSlice"),e(br,"propName","border-image-slice"),e(br,"unit","");var yr=class extends t{};e(yr,"id","BorderImageSource"),e(yr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(yr,"propName","border-image-source");var Cr=class extends t{};e(Cr,"id","BorderImageWidth"),e(Cr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(Cr,"propName","border-image-width");var Rr=class extends t{};e(Rr,"id","BorderImage"),e(Rr,"propName","border-image"),e(Rr,"unit","");var ts=/\{(.*)\}/,Mr=class extends t{getThemeProps(r,o){let i={},n=(p,g)=>{let l=g.indexOf(":");if(l!==-1){p in i||(i[p]={});let a=i[p],d=g.slice(0,l);d in a||(a[d]=g.slice(l+1))}},s=p=>{let g=(l,a)=>{let d=a.slice(CSS.escape(p.className).length).match(ts)[1].split(";");for(let x of d)n(l,x)};if(this.themeName){let l=p.natives.find(a=>a.themeName===this.themeName)??p.natives.find(a=>!a.themeName);l&&g(this.themeName,l.text)}else for(let l of p.natives)g(l.themeName,l.text)},m=[],c="",h=()=>{c&&(m.push(c),c="")},f=1;(function p(g){for(;f<r.value.length;f++){let l=r.value[f];if(!g){if(l===";"){h();continue}if(l==="}")break}if(c+=l,g===l){if(g==="'"){let a=0;for(let d=c.length-2;c[d]==="\\";d--)a++;if(a%2)continue}break}else l in Tr&&g!=="'"&&(f++,p(Tr[l]))}})(void 0),h();for(let p of m){let g=o.findAndNew(p);if(Array.isArray(g))for(let l of g)s(l);else g?s(g):n(this.themeName??"",p)}return i}};e(Mr,"id","Group"),e(Mr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Mr,"unit","");var kr=class extends t{};e(kr,"id","CounterIncrement"),e(kr,"propName","counter-increment"),e(kr,"unit","");var rs=[Mr,kt,je,X,Ee,ze,J,_e,Oe,Q,wr,oi,ii,Jr,At,Ot,Tt,wt,It,rt,We,Pe,Le,Ge,xi,ni,kr,Z,K,He,Ve,$e,ye,Vt,Ce,ir,ee,gi,zt,er,Ue,rr,ai,Qe,Ne,Kt,Jt,Ye,et,tt,it,ot,Or,Ar,Ir,Br,Fr,Dr,se,Lr,Gr,zr,_r,Hr,Vr,Ct,Mt,$r,Ur,yt,Qr,Ie,Ni,Be,ki,he,di,Xe,qe,te,re,Je,Ke,oe,ie,Ze,ae,st,Te,at,ne,nt,lt,ct,le,de,Er,jr,Wr,Yt,ci,Oi,Sr,br,yr,Cr,Rr,dt,mt,Pr,ft,U,pt,me,ut,ht,fe,pe,gt,xt,bt,ue,Ti,wi,St,vt,pr,ur,hr,gr,xr,vr,we,Ae,Se,ge,cr,fr,be,Rt,jt,Wt,Kr,Ci,dr,Ri,yi,mr,Si,Yr,ve,Zr,Xr,qr,Nt,xe,Bt,Ft,Dt,Et,Pt,Lt,Gt,ei,ti,ri,_t,Ht,or,si,Re,li,$t,Ut,Qt,Me,mi,ke,fi,pi,ui,qt,Xt,Zt,hi,tr,vi,sr,ar,nr,lr,bi,Mi],go=rs;var is={colors:oo,breakpoints:Nr,semantics:no,values:mo,selectors:ao,themes:lo,scheme:co,Rules:go,rootSize:so},Zi=is;function Ao(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function Ji(r){return Object.prototype.toString.call(r).slice(8,-1)}function Ai(r){return Ji(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function xo(r){return Ji(r)==="Symbol"}function Io(r,o,i,n){let s={}.propertyIsEnumerable.call(n,o)?"enumerable":"nonenumerable";s==="enumerable"&&(r[o]=i),s==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function Bo(r,o,i){if(!Ai(o))return o;let n={};if(Ai(r)){let h=Object.getOwnPropertyNames(r),f=Object.getOwnPropertySymbols(r);n=[...h,...f].reduce((p,g)=>{let l=r[g];return(!xo(g)&&!Object.getOwnPropertyNames(o).includes(g)||xo(g)&&!Object.getOwnPropertySymbols(o).includes(g))&&Io(p,g,l,r),p},{})}let s=Object.getOwnPropertyNames(o),m=Object.getOwnPropertySymbols(o);return[...s,...m].reduce((h,f)=>{let p=o[f],g=Ai(r)?r[f]:void 0;g!==void 0&&Ai(p)&&(p=Bo(g,p,i));let l=i?i(g,p,f):p;return Io(h,f,l,o),h},n)}function Ei(r,...o){return o.filter(i=>Ai(i)).reduce((i,n)=>Bo(i,n,Ao),r)}var os=[",",".","#","[","!","*",">","+","~",":","@"],ss=/^::-[a-z]+-/m,Ki,Wi=typeof window<"u";Wi&&(Ki=document.createElement("style"),Ki.title="master");var G="max-width",L="min-width",as="attributes",ns=Wi?window.MutationObserver:Object,Ii,Fe,ji=class extends ns{constructor(i){super(n=>{let s={},m=[],c=[],h=[],f=(a,d)=>{d?a.classList.forEach(g):a.classList.forEach(p);let x=a.children;for(let u=0;u<x.length;u++){let v=x[u];v.classList&&(c.push(v),f(v,d))}},p=a=>{a in s?s[a]++:s[a]=1},g=a=>{a in s?s[a]--:s[a]=-1},l=(a,d)=>{for(let x=0;x<a.length;x++){let u=a[x];u.classList&&!c.includes(u)&&!h.includes(u)&&(u.isConnected!==d?(c.push(u),f(u,d)):h.push(u))}};for(let a=0;a<n.length;a++){let d=n[a],{addedNodes:x,removedNodes:u,type:v,target:S,oldValue:M}=d;if(v===as){if(S.className===M||m.find(O=>O.target===S))continue;m.push(d)}else l(x,!1),l(u,!0)}if(!(!m.length&&!Object.keys(s).length)){for(let{oldValue:a,target:d}of m){let x=c.includes(d),u=d.classList,v=a?a.split(" "):[];if(x){if(d.isConnected)continue;for(let S of v)u.contains(S)||g(S)}else if(d.isConnected){u.forEach(S=>{v.includes(S)||p(S)});for(let S of v)u.contains(S)||g(S)}else for(let S of v)g(S)}for(let a in s){let d=s[a],x=(this.countOfClass[a]||0)+d;x===0?(delete this.countOfClass[a],this.delete(a)):(a in this.countOfClass||this.findAndInsert(a),this.countOfClass[a]=x)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"schemeMQL");ro(this,Ii,void 0);ro(this,Fe,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Ei({observe:!0},i),this.options.config&&!this.options.override?this.config=Ei(Zi,this.options.config):this.config=Zi,this.cache(),Wi&&this.options.observe&&this.observe(document),ji.instances.push(this),this.ready=!0}static refresh(i){for(let n of this.instances)n.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==De(this,Ii)){io(this,Ii,i);let{storage:n}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&n.sync&&localStorage.setItem(n.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return De(this,Ii)}set theme(i){i!==De(this,Fe)&&(De(this,Fe)&&this.host.classList.remove(De(this,Fe)),io(this,Fe,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return De(this,Fe)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={};let{semantics:i,classes:n,selectors:s,themes:m,colors:c}=this.config;function h(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let l in i)this.semantics.push([new RegExp("^"+h(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),l]);if(s)for(let[l,a]of Object.entries(s)){let d=new RegExp(h(l)+"(?![a-z-])");for(let x of Array.isArray(a)?a:[a]){let u=x.match(ss)?.[0]??"",v=this.selectors[u];v||(v=this.selectors[u]=[]);let S=v.find(([M])=>M===d);S||(S=[d,[]],v.push(S)),S[1].push(x)}}let f=[...n?Object.keys(n):[],...m&&!Array.isArray(m)?Object.entries(m).flatMap(([l,{classes:a}])=>a?Object.keys(a):[]):[]],p=l=>{if(l in this.classes)return;let a=this.classes[l]=[],d=(x,u)=>{if(!u)return;let v=Array.isArray(u)?u:u.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let S of v){let M=O=>{O in this.relationThemesMap?x in this.relationThemesMap[O]?this.relationThemesMap[O][x].push(l):this.relationThemesMap[O][x]=[l]:this.relationThemesMap[O]={[x]:[l]},a.includes(O)||a.push(O)};if(f.includes(S)){p(S);for(let O of this.classes[S])M(O)}else M(S)}};if(d("",n?.[l]),m&&!Array.isArray(m))for(let[x,{classes:u}]of Object.entries(m))d(x,u?.[l])};for(let l of f)p(l);for(let l in this.relationThemesMap){let a=this.relations[l]=[];for(let d of Object.values(this.relationThemesMap[l]))for(let x of d)a.includes(x)||a.push(x)}let g=(l,a)=>{if(!!a)for(let d in a){let x=a[d];if(typeof x=="string"&&(x={"":x}),d in this.colorsThemesMap){let u=this.colorsThemesMap[d];for(let v in x){let S=x[v];v in u?u[v][l]=S:u[v]={[l]:S}}}else this.colorNames.push(d),this.colorsThemesMap[d]=Object.entries(x).reduce((u,[v,S])=>(u[v]={[l]:S},u),{})}};if(g("",c),m)if(Array.isArray(m))this.themeNames.push(...m);else for(let l in m){let a=m[l];g(l,a.colors),this.themeNames.push(l)}}observe(i,n={subtree:!0,childList:!0}){if(Wi&&i){this.root=i;let s=i===document;s&&(ji.root=this),this.host=s?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let m=s?document.head:i,c=s?document.styleSheets:i.styleSheets;for(let h of c){let{title:f,href:p,ownerNode:g}=h;(f==="master"||p&&/master(?:\..+)?\.css/.test(p))&&(this.style=g)}if(this.style)for(let h=0;h<this.style.sheet.cssRules.length;h++){let f=g=>{if(g.selectorText){let a=g.selectorText.split(", ")[0].split(" ");for(let d=0;d<a.length;d++){let x=a[d];if(x[0]==="."){let u=x.slice(1),v="";for(let S=0;S<u.length;S++){let M=u[S],O=u[S+1];if(M==="\\"){if(S++,O!=="\\"){v+=O;continue}}else if(os.includes(M))break;v+=M}if(!(v in this.ruleOfClass)&&!(v in this.classes)){let S=this.findAndNew(v);if(S)return S}}}}else if(g.cssRules)for(let l=0;l<g.cssRules.length;l++){let a=f(g.cssRules[l]);if(a)return a}},p=f(this.style.sheet.cssRules[h]);if(p){this.rules.push(p),this.ruleOfClass[p.className]=p;for(let g=0;g<p.natives.length;g++)p.natives[g].cssRule=this.style.sheet.cssRules[h+g];h+=p.natives.length-1}}else this.style=Ki.cloneNode(),m.prepend(this.style);n.subtree&&this.host.querySelectorAll("[class]").forEach(h=>{h.classList.forEach(f=>{f in this.countOfClass?this.countOfClass[f]++:(this.countOfClass[f]=1,this.findAndInsert(f))})}),super.observe(i,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let n=i.cssRules.length-1;n>=0;n--)i.deleteRule(n)}findAndNew(i){let n=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let m of this.config.Rules){let c=m.match(s,this.colorNames);if(c)return new m(s,c,this)}for(let m of this.semantics)if(s.match(m[0]))return new t(s,{origin:"semantics",value:m[1]},this)};return i in this.classes?this.classes[i].map(n).filter(s=>s):n(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let n=Ki.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.findAndInsert(s)}destroy(){let i=ji.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}insert(i){if(this.ruleOfClass[i.className])return;let{validateRule:n}=this.config;if(n&&!n(i,this))return;let s,m=this.rules.length-1,{media:c,order:h,prioritySelectorIndex:f,hasWhere:p,className:g}=i,l=(a,d,x,u)=>{let v=0,S;d&&(v=a.findIndex(d)),x&&(S=a.findIndex(x)),v===-1&&(v=a.length),(S===void 0||S===-1)&&(S=a.length);let M=a.slice(v,S);for(let O=0;O<M.length;O++){let B=M[O];if(!(B.prioritySelectorIndex===-1||u&&u(B))&&(B.prioritySelectorIndex<f||B.prioritySelectorIndex===f&&(p&&!B.hasWhere||B.order>=h)))return v+O}return v+M.length};if(c){let a=this.rules.findIndex(d=>d.media);if(a!==-1){let d=c.features[G],x=c.features[L];if(d&&x){let u=d.value-x.value;for(let v=m;v>=a;v--){s=v;let S=this.rules[v],M=S.media,O=M.features[G],B=M.features[L];if(!O||!B){s++;break}let C=O.value-B.value;if(C===u){if(p!==S.hasWhere)continue;if(f!==-1){let F=[this.rules[v]];for(let E=v-1;E>=a;E--){let H=this.rules[E];if(H.hasWhere!==p)break;let $=H.media,V=$.features[G],I=$.features[L];if(!V||!I||V.value-I.value!==C)break;F.unshift(this.rules[E])}s=l(this.rules,E=>E.media&&E.prioritySelectorIndex!==-1&&E.media.features[L]&&E.media.features[G])}break}else if(C>u)break}}else if(x)for(let u=a;u<=m;u++){s=u;let v=this.rules[u],S=v.media,M=S.features[G],O=S.features[L];if(M){if(O)break;continue}let B=O?.value;if(B===x.value){if(!p&&v.hasWhere){s++;continue}if(f!==-1)s=l(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[G],C=>!C.media.features[L]&&!C.media.features[G]);else for(let C=u;C<=m;C++){let F=this.rules[C],E=F.media,H=E.features[L];if(!E.features[G]){if(F.hasWhere!==p||H.value!==B||F.order>=h)break;s=C+1}}break}else{if(B>x.value)break;s++}}else if(d)for(let u=m;u>=a;u--){s=u;let v=this.rules[u],S=v.media,M=S.features[G];if(S.features[L])continue;let B=M?.value;if(!B||B>d.value){s++;break}else if(B===d.value){if(p&&!v.hasWhere)continue;if(f!==-1)s=l(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[G],C=>!C.media.features[L]&&!C.media.features[G]);else{let C=[this.rules[u]];for(let F=u-1;F>=a;F--){let E=this.rules[F],H=E.media,$=H.features[L],V=H.features[G];if(!$&&(!V||V.value!==B||E.hasWhere!==p))break;C.unshift(E)}for(let F=0;F<C.length;F++){let E=C[F];if(!E.media.features[L]){if(E.order>=h)break;s=u-C.length+2+F}}}break}}}if(s===void 0)if(a===-1)s=m+1;else if(f!==-1)s=a+l(this.rules.slice(a),void 0,d=>d.media.features[G]||d.media.features[L]);else if(p){let d=a;for(;d<this.rules.length;d++){let x=this.rules[d];if(x.prioritySelectorIndex!==-1||!x.hasWhere||x.order>=h){s=d;break}}s===void 0&&(s=d)}else for(let d=a;d<=m;d++){s=d;let x=this.rules[d],u=x.media;if(x.prioritySelectorIndex!==-1||u.features[G]||u.features[L])break;if(x.hasWhere)s++;else if(x.order>=h)break}}else if(f===-1)if(p)s=this.rules.findIndex(a=>!a.hasWhere||a.media||a.prioritySelectorIndex!==-1||a.order>=h),s===-1&&(s=m+1);else{let a=0;for(;a<this.rules.length;a++){let d=this.rules[a];if(d.media||!d.hasWhere&&(d.order>=h||d.prioritySelectorIndex!==-1)){s=a;break}}s===void 0&&(s=a)}else s=l(this.rules,void 0,a=>a.media);if(this.rules.splice(s,0,i),this.ruleOfClass[g]=i,this.style){let a=this.style.sheet,d=0,x=u=>{let v=this.rules[u];if(v){if(!v.natives.length)return x(u-1);let S=v.natives[v.natives.length-1].cssRule;for(let M=0;M<a.cssRules.length;M++)if(a.cssRules[M]===S){d=M+1;break}}};x(s-1);for(let u=0;u<i.natives.length;)try{let v=i.natives[u];a.insertRule(v.text,d),v.cssRule=a.cssRules[d++],u++}catch(v){console.error(v),i.natives.splice(u,1)}}}delete(i){let n=this.style.sheet,s=m=>{let c=this.ruleOfClass[m];if(!(!c||m in this.relations&&this.relations[m].some(h=>h in this.countOfClass))){if(c.natives.length){let h=c.natives[0];for(let f=0;f<n.cssRules.length;f++)if(n.cssRules[f]===h.cssRule){for(let g=0;g<c.natives.length;g++)n.deleteRule(f);this.rules.splice(this.rules.indexOf(c),1);break}}delete this.ruleOfClass[m]}};if(i in this.classes){for(let m of this.classes[i])m in this.countOfClass||s(m);delete this.ruleOfClass[i]}else s(i)}findAndInsert(i){let n=this.findAndNew(i);if(Array.isArray(n))for(let s of n)this.insert(s);else n&&this.insert(n)}get text(){return this.rules.map(i=>i.natives.map(n=>n.text).join("")).join("")}},_=ji;Ii=new WeakMap,Fe=new WeakMap,e(_,"instances",[]),e(_,"root");Wi&&(window.MasterCSS=_);var Pi=typeof global<"u"?global:window;if(!Pi.CSS&&!Pi.CSS?.escape){let r=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let i=String(o),n=i.length,s=-1,m="",c,h=i.charCodeAt(0);if(n==1&&h==45)return"\\"+i;for(;++s<n;){if(c=i.charCodeAt(s),c==0){m+="\uFFFD";continue}if(c>=1&&c<=31||c==127||s==0&&c>=48&&c<=57||s==1&&c>=48&&c<=57&&h==45){m+="\\"+c.toString(16)+" ";continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){m+=i.charAt(s);continue}m+="\\"+i.charAt(s)}return m};Pi.CSS||(Pi.CSS={}),Pi.CSS.escape=r}function Fo(r,o=new _){if(!!r?.length){for(let i of r)i in o.countOfClass||(o.findAndInsert(i),o.countOfClass[i]=1);return o.rules.map(i=>i.natives.reduce((n,s)=>n+s.text,"")).join("")}}function eo(r,o=new _){if(!r)return;let i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(r);){let s=n[1].replace(/\n/g,"").split(" ").filter(m=>m);for(let m of s)m in o.countOfClass||(o.findAndInsert(m),o.countOfClass[m]=1)}return o.rules.map(s=>s.natives.reduce((m,c)=>m+c.text,"")).join("")}function Do(r,o=new _){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${eo(r,o)}</style>`)}var bR=typeof document<"u"&&document;export{go as DefaultRules,t as MasterCSSRule,_ as default,Nr as defaultBreakpoints,oo as defaultColors,Zi as defaultConfig,so as defaultRootSize,co as defaultScheme,ao as defaultSelectors,no as defaultSemantics,lo as defaultThemes,mo as defaultValues,Ei as extend,D as fillColorScale,Fo as render,eo as renderFromHTML,Do as renderIntoHTML,bR as root};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|