@master/css 2.0.0-beta.23 → 2.0.0-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- var Go=Object.defineProperty;var zo=(r,o,i)=>o in r?Go(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var e=(r,o,i)=>(zo(r,typeof o!="symbol"?o+"":o,i),i),yo=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var De=(r,o,i)=>(yo(r,o,"read from private field"),i?i.call(r):o.get(r)),oo=(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)},so=(r,o,i,n)=>(yo(r,o,"write to private field"),n?n.call(r,i):o.set(r,i),i);var _o={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},wr=_o;function Di(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 Co(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,a="0"in r?Di(r[0]):[0,0,0],m,p,h=[],c=()=>{let f=m-n,g=p.map((x,s)=>(x-a[s])/f);for(let x of h){let s=x-n,l=a.map((S,d)=>Math.round(S+g[d]*s));r[x]="#"+Co.call(this,...l)}};for(let f=1;f<100;f++)f in r?(h.length?(m=f,p=Di(r[f]),c(),h.length=0,a=p):a=Di(r[f]),n=f):h.push(f);h.length&&(m=100,p="100"in r?Di(r[100]):[255,255,255],c())}return o||(r[""]=r[i?"500":"50"]),r}var Ho={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"},ao=Ho;var no=16;var Vo={"::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("},lo=Vo;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"}},co=$o;var Uo=["dark","light"],mo=Uo;var Qo={storage:{sync:!0,key:"scheme"}},fo=Qo;var Ei={content:"content-box",border:"border-box",padding:"padding-box"},Hi={min:"min-content",max:"max-content"},q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in wr)q[r]=wr[r]/16+"rem";var Yo={BackgroundClip:Ei,BackgroundOrigin:Ei,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Ei,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:Hi,GridAutoRows:Hi,GridTemplateColumns:Hi,GridTemplateRows:Hi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Ei,margin:"margin-box"},TransformBox:{...Ei,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:q,MinWidth:q,MinHeight:q,MaxWidth:q,MaxHeight:q,Height:q,FlexBasis:q},po=Yo;function Vi(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function Ro(r){let o=h=>h==="+"||h==="-"||h==="*"||h==="/",i="",n,a="",m=!1;function p(){n=null,a=""}for(let h=0;h<r.length;h++){let c=r[h];if(c==="("||c===")")m=c===")",i+=a+c,p();else if(c===",")i+=a+c+" ",p();else{switch(n){case 1:break;case 2:if(o(c)){i+=a+" "+c+" ",p();continue}break;default:m&&(a+=" "),isNaN(+c)?o(c)||(n=1):n=2;break}a+=c}}return a&&(i+=a),i}var qo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Xo="var(--";function $i(r,o,i,n,a,m,p){let h="",c="",f="",g;if(n&&r in n)return{value:n[r].toString(),unit:c,unitToken:f};if(a&&r in a)return{value:a[r].toString(),unit:c,unitToken:f};if(typeof r=="number")h=r,c=o||"";else{if(i){let x=Object.keys(i),s=!1,l=!1;r=r.replace(new RegExp(`(^|,| |\\()(${x.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(S,d,u,v,M)=>{l=!0;let k=i[u]?.[v||""];if(k){let T;for(let C of p)if(T=k[C])break;if(T){s=!0;let C=T;if(M){let j=M.endsWith("%")?parseFloat(M)/100:+M;j=isNaN(j)?1:Math.min(Math.max(j,0),1),C+=Math.round(j*255).toString(16).toUpperCase().padStart(2,"0")}return d+C}}return S}),l&&(g=s)}if(o){let x=r.match(qo);if(x)if(r.includes("/")){let s=r.split("/");return{value:+s[0]/+s[1]*100+"%",unit:c,unitToken:f}}else return h=+x[1],c=f=x[3]||"",c||((o==="rem"||o==="em")&&(h=h/m),c=o||""),{value:h,unit:c,unitToken:f}}h=(r.indexOf("calc(")===-1?r:Ro(r)).replace(/\$\(((\w|-)+)\)/g,Xo+"$1)")}return{value:h,unit:c,unitToken:f,colorMatched:g}}var Or={"(":")","'":"'","{":"}"};var Mo=[":disabled",":active",":focus",":hover"],Ui="matches",Zo="semantics",No="symbol",To="width",uo="max-"+To,ho="min-"+To,xo="motion",wo="reduce",ko=wo+"d-"+xo,go="px",Jo="rem",Ko=["!","*",">","+","~",":","[","@","_"],es=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,ts=r=>r.split(es).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 a=this.constructor,{id:m,unit:p,propName:h,colorful:c}=a,{breakpoints:f,mediaQueries:g,semantics:x,rootSize:s}=n.config,{themeNames:l,colorsThemesMap:S,selectors:d,globalValues:u}=n,v=n.values[m],M=n.relationThemesMap[o],k=o,T,C,j,B;if(i.origin===Zo)j=k.slice(i.value.length),T=x[i.value];else{let F;if(i.origin===Ui)if(m==="Group"){let w=0;for(;w<k.length&&!(k[w]==="{"&&k[w-1]!=="\\");w++);C=k.slice(0,w),F=k.slice(w)}else{let w=k.indexOf(":");this.prefix=k.slice(0,w+1),this.prefix.includes("(")?(this.prefix=void 0,F=k):F=k.slice(w+1)}else i.origin===No&&(this.symbol=k[0],F=k.slice(1));B=[];let y="",R=0;(function w(E,N,O=""){let b,A=!1;for(E&&(E===")"&&y.slice(-1)==="$"?b=y.length-1:E==="'"&&(A=!0),y+=F[R++]);R<F.length;R++){let I=F[R];if(I===E){if(y+=I,A){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)")),N||(A?B.push(y):B.push({value:y}),O="",y="");break}else if(!A&&I in Or)w(Or[I],N===void 0?0:N+1,O);else if(I==="|"&&E!=="}"&&(!A||O==="path"))E?y+=" ":(B.push({value:y}),y="");else{if(!E){if(I==="."){if(isNaN(+F[R+1]))break;F[R-1]==="-"&&(y+="0")}else if(I===","){B.push({value:y},","),y="";continue}else if(I==="#"&&(y||B.length&&F[R-1]!=="|")||Ko.includes(I))break;O+=I}y+=I}}})(),y&&B.push({value:y}),j=F.slice(R)}j[0]==="!"&&(this.important=!0,j=j.slice(1));let H=F=>{let y=ts(F),R=[],w="",E=0;for(let N=0;N<y.length;N++){let O=y[N];if(O==="\\"){w+=O+y[++N];continue}!E&&O===","?(R.push(w),w=""):(w+=O,E&&O===")"?E--:O==="("&&E++)}return w&&R.push(w),R};this.prefixSelectors=C?H(C):[""];let V=j.split("@"),$=V[0];if($){this.vendorSuffixSelectors={};let F=(N,O,b,A)=>{for(let[I,W]of O)if(I.test(N)){for(let z of W)F(N.replace(I,z),O,b,!0);return}A&&b.push(N)},y=[];""in d?F($,d[""],y,!0):y.push($);let R={};for(let[N,O]of Object.entries(d)){if(!N)continue;let b=[];for(let A of y)F(A,O,b,!1);b.length&&(R[N]=b)}let w=(N,O)=>{let b=O.reduce((A,I)=>(A.push(...H(I)),A),[]);N in this.vendorSuffixSelectors?this.vendorSuffixSelectors[N].push(...b):this.vendorSuffixSelectors[N]=b},E=Object.keys(R);if(E.length)for(let N of E)w(N,R[N]);else w("",y);for(let N of Object.values(this.vendorSuffixSelectors))for(let O of N){this.hasWhere!==!1&&(this.hasWhere=O.includes(":where("));for(let b=0;b<Mo.length;b++)if(O.includes(Mo[b])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>b)&&(this.prioritySelectorIndex=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let F=1;F<V.length;F++){let y=V[F];if(y)if(l.includes(y))this.themeName=y;else if(y==="rtl"||y==="ltr")this.direction=y;else{let R,w,E=y.indexOf("_");if(E!==-1)R=y.slice(0,E),w=y.slice(E);else{let N=y.indexOf("(");N!==-1&&(R=y.slice(0,N),w=y.slice(N))}if(!R){R="media";let N=[];this.media={token:y,features:{}};let O=y.split("&");for(let b of O)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")N.push("(orientation:"+b+")");else if(b===xo||b===ko)N.push("(prefers-"+ko+":"+(b===xo?"no-preference":wo)+")");else if(g&&b in g)N.push(g[b]);else{let A={token:b},I="",W="",z=0;b.startsWith("<=")?(W="<=",I=uo):b.startsWith(">=")||f[b]?(W=">=",I=ho):b.startsWith(">")?(W=">",I=ho,z=.02):b.startsWith("<")&&(W="<",I=uo,z=-.02);let Y=W?b.replace(W,""):b,P=f[Y];switch(I){case uo:case ho:P?Object.assign(A,$i(P,go)):Object.assign(A,$i(Y,go)),A.unit===go&&(A.value+=z),this.media.features[I]=A,N.push("("+I+":"+(A.value+A.unit)+")");break}}w="",this.media.type&&(w=this.media.type),N.length&&(w+=(w?" and ":"")+N.join(" and "))}w&&(this.at[R]=(R in this.at?this.at[R]+" and ":"")+w.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let je=(F,y)=>{let R,w,E=(O,b,A)=>{let I="";this.direction&&(I+="[dir="+this.direction+"] ");let W=this.prefixSelectors.map(P=>P+I),z=(P,zi)=>{let ji=P?"."+P+" ":"",io="."+CSS.escape(zi);return W.map(_i=>ji+_i).reduce((_i,Po)=>(_i.push(A.reduce((bo,Lo)=>(bo.push(Po+io+Lo),bo),[]).join(",")),_i),[]).join(",")},Y=z(b,o)+(M?Object.entries(M).filter(([P])=>this.themeName||!c||!b||!P||P===b).map(([P,zi])=>zi.reduce((ji,io)=>ji+","+z(this.themeName??(c&&b||P),io),"")).join(""):"")+"{"+O+"}";for(let P of Object.keys(this.at).sort((zi,ji)=>ji==="supports"?-1:1))Y="@"+P+" "+this.at[P]+"{"+Y+"}";return Y},N=[];if(B){let O,b;for(let A of B)typeof A=="string"?N.push(A):(O=$i(A.value,p,c&&S,v,u,s,this.themeName?[this.themeName,""]:[F]),O.colorMatched!==void 0&&b!==!0&&(b=O.colorMatched),N.push(O.value+O.unit));if(y&&(b===void 0?F:!b))return;if(N.length===1?O?(R=O.value,w=O.unit):R=N[0]:R=N.reduce((A,I,W)=>A+I+(I===","||B[W+1]===","||W===B.length-1?"":" "),""),typeof R!="object"){this.parseValue&&(R=this.parseValue(R,this.css.config)),c&&R==="current"?R="currentColor":v&&R in v?R=v[R].toString():R in u&&(R=u[R].toString());let A={unit:w,value:R,important:this.important};if(this.getThemeProps){let I=this.getThemeProps(A,n);for(let W in I)for(let z of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:w,value:R,text:E(Object.entries(I[W]).map(([Y,P])=>Vi(Y,{important:this.important,unit:"",value:P})).join(";"),W,z),themeName:W});return}else this.get&&(R=this.get(A))}}else R=T;for(let O of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:w,value:R,text:E(typeof R=="object"?Object.entries(R).map(([b,A])=>Vi(b,{...typeof A=="object"?A:{unit:"",value:A},important:this.important})).join(";"):Vi(h,{unit:w,value:R,important:this.important}),F,O),themeName:F})};if(this.getThemeProps)je(void 0,!1);else if(this.themeName)je(this.themeName,!1);else if(c)for(let F of l)je(F,!0);else je("",!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:Ui};if(this.colorStarts&&(o.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||i.length&&o.match("^"+this.colorStarts+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:Ui};if(this.symbol&&o.startsWith(this.symbol))return{origin:No};if(this.propName&&o.startsWith(this.propName+":"))return{origin:Ui}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Jo),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 We=class extends t{};e(We,"id","FontSize"),e(We,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(We,"propName","font-size");var Ar=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",n=i+"-left",a=i+"-right",m=i+"-top",p=i+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[a]:r};case"y":return{[m]:r,[p]:r};case"l":return{[n]:r};case"r":return{[a]:r};case"t":return{[m]:r};case"b":return{[p]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Ar,"id","Spacing"),e(Ar,"matches",/^[pm][xytblr]?:./);var Pe=class extends t{};e(Pe,"id","Width"),e(Pe,"matches",/^w:./),e(Pe,"propName","width");var Le=class extends t{};e(Le,"id","Height"),e(Le,"matches",/^h:./),e(Le,"propName","height");var Ge=class extends t{};e(Ge,"id","MinWidth"),e(Ge,"matches",/^min-w:./),e(Ge,"propName","min-width");var ze=class extends t{};e(ze,"id","MinHeight"),e(ze,"matches",/^min-h:./),e(ze,"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 rs="subpixel-antialiased",Oo="-webkit-font-smoothing",Ao="-moz-osx-font-smoothing",_e=class extends t{get(r){let o={};switch(r.value){case rs:o[Oo]=o[Ao]={...r,value:"auto"};break;case"antialiased":o[Oo]={...r,value:"antialiased"},o[Ao]={...r,value:"grayscale"};break}return o}};e(_e,"id","FontSmoothing"),e(_e,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(_e,"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 He=class extends t{};e(He,"id","FontVariantNumeric"),e(He,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(He,"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 Ve=class extends t{};e(Ve,"id","ObjectFit"),e(Ve,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(Ve,"propName","object-fit");var $e=class extends t{};e($e,"id","ObjectPosition"),e($e,"matches",/^(object|obj):(top|bottom|right|left|center)/),e($e,"propName","object-position");var Ue=class extends t{};e(Ue,"id","TextAlign"),e(Ue,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e(Ue,"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 Qe=class extends t{};e(Qe,"id","TextTransform"),e(Qe,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Qe,"propName","text-transform");var Ye=class extends t{};e(Ye,"id","VerticalAlign"),e(Ye,"matches",/^(?:v|vertical):./),e(Ye,"propName","vertical-align");var qe=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(qe,"id","Lines"),e(qe,"matches",/^lines:./),e(qe,"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 Xe=class extends t{};e(Xe,"id","TransformStyle"),e(Xe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(Xe,"propName","transform-style");var Ze=class extends t{};e(Ze,"id","TransformBox"),e(Ze,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Ze,"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,a,m)=>{let p,h;switch(n){case"translate":p="rem";break;case"skew":p="deg";break;case"rotate":a==="3d"&&(h=!0),p="deg";break;default:return i}let c=m.split(",");return i.replace(m,c.map((f,g)=>!h||c.length-1===g?Number.isNaN(+f)?f:f/(p==="rem"?o:1)+p:f).join(","))})}};e(re,"id","Transform"),e(re,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(re,"propName","transform"),e(re,"unit","");var Je=class extends t{order=-1};e(Je,"id","Transition"),e(Je,"symbol","~"),e(Je,"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 Ke=class extends t{};e(Ke,"id","TransitionProperty"),e(Ke,"matches",/^~property:./),e(Ke,"propName","transition-property");var et=class extends t{};e(et,"id","TransitionTimingFunction"),e(et,"matches",/^~easing:./),e(et,"propName","transition-timing-function");var tt=class extends t{};e(tt,"id","MaxHeight"),e(tt,"matches",/^max-h:./),e(tt,"propName","max-height");var rt=class extends t{};e(rt,"id","MaxWidth"),e(rt,"matches",/^max-w:./),e(rt,"propName","max-width");var it=class extends t{};e(it,"id","Display"),e(it,"matches",/^d:./),e(it,"propName","display");var ot=class extends t{};e(ot,"id","BoxSizing"),e(ot,"matches",/^box:(content|border)(?!\|)/),e(ot,"propName","box-sizing");var st=class extends t{};e(st,"id","Opacity"),e(st,"propName","opacity"),e(st,"unit","");var Ir=class extends t{};e(Ir,"id","Visibility"),e(Ir,"propName","visibility");var Br=class extends t{};e(Br,"id","Clear"),e(Br,"propName","clear");var Fr=class extends t{};e(Fr,"id","Float"),e(Fr,"propName","float");var jr=class extends t{};e(jr,"id","Isolation"),e(jr,"propName","isolation");var Dr=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(Dr,"id","Overflow"),e(Dr,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Er=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(Er,"id","OverscrollBehavior"),e(Er,"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 at=class extends t{};e(at,"id","AnimationDirection"),e(at,"matches",/^@direction:./),e(at,"propName","animation-direction");var nt=class extends t{};e(nt,"id","AnimationFillMode"),e(nt,"matches",/^@fill-mode:./),e(nt,"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 lt=class extends t{};e(lt,"id","AnimationName"),e(lt,"matches",/^@name:./),e(lt,"propName","animation-name");var ct=class extends t{};e(ct,"id","AnimationPlayState"),e(ct,"matches",/^@play-state:./),e(ct,"propName","animation-play-state");var dt=class extends t{};e(dt,"id","AnimationTimingFunction"),e(dt,"matches",/^@easing:./),e(dt,"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 Qi="border-";function ce(r,o,i=""){i&&(i="-"+i);let n=/^b(order)?-?(.)?/.exec(r)[2],a=Qi+"left"+i,m=Qi+"right"+i,p=Qi+"top"+i,h=Qi+"bottom"+i;switch(n){case"x":return{[a]:o,[m]:o};case"y":return{[p]:o,[h]:o};case"l":return{[a]:o};case"r":return{[m]:o};case"t":return{[p]: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 Yi="border-top-left-radius",qi="border-top-right-radius",Xi="border-bottom-left-radius",Zi="border-bottom-right-radius",Io="border-radius",is=[Yi,qi,Xi,Zi],Wr=class extends t{get(r){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let a=1;a<n.length-1;a++)i+=n[a][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[Yi]:r,[qi]:r};case"tl":case"lt":return{[Yi]:r};case"rt":case"tr":return{[qi]:r};case"b":return{[Xi]:r,[Zi]:r};case"bl":case"lb":return{[Xi]:r};case"br":case"rb":return{[Zi]:r};case"l":return{[Yi]:r,[Xi]:r};case"r":return{[qi]:r,[Zi]:r};default:return{[Io]:r}}}let o=this.prefix?.slice(0,-1);return{[is.includes(o)?o:Io]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Wr,"id","BorderRadius"),e(Wr,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Pr=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(Pr,"id","BorderStyle"),e(Pr,"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 Lr=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(Lr,"id","BorderWidth"),e(Lr,"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 mt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(mt,"id","Border"),e(mt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(mt,"colorful",!0);var ft=class extends t{};e(ft,"id","BackgroundAttachment"),e(ft,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(ft,"propName","background-attachment");var Gr=class extends t{};e(Gr,"id","BackgroundBlendMode"),e(Gr,"propName","background-blend-mode");var pt=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(pt,"id","BackgroundClip"),e(pt,"matches",/^(bg|background):text(?!\|)/),e(pt,"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 ut=class extends t{};e(ut,"id","BackgroundOrigin"),e(ut,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(ut,"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 ht=class extends t{};e(ht,"id","BackgroundRepeat"),e(ht,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ht,"propName","background-repeat");var gt=class extends t{};e(gt,"id","BackgroundSize"),e(gt,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(gt,"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 xt=class extends t{};e(xt,"id","MixBlendMode"),e(xt,"matches",/^blend:./),e(xt,"propName","mix-blend-mode");var zr=class extends t{};e(zr,"id","Position"),e(zr,"propName","position");var _r=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(_r,"id","Placement"),e(_r,"matches",/^(top|left|right|bottom|center|middle):./);function Ji(r,o,{rootSize:i}){let n="",a=0;return function m(p,h){let c="",f=h?o(h):"",g=()=>{c&&(n+=!f||Number.isNaN(+c)?c:+c/(f==="rem"?i:1)+f,c="")};for(;a<r.length;a++){let x=r[a];if(x===p&&(p!=="'"||r[a+1]===")")){g(),n+=x;break}else x===","||x===" "?(g(),n+=x):!c&&x==="'"?(n+=x,a++,m(x),c=""):c&&x==="("?(n+=c+x,a++,m(")",c),c=""):c+=x}g()}(),n}var vt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return Ji(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(vt,"id","BackdropFilter"),e(vt,"matches",/^bd:./),e(vt,"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 St=class extends t{};e(St,"id","Stroke"),e(St,"propName","stroke"),e(St,"colorful",!0);var bt=class extends t{};e(bt,"id","StrokeWidth"),e(bt,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(bt,"propName","stroke-width");var yt=class extends t{parseValue(r,o){return Ji(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(yt,"id","Filter"),e(yt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(yt,"propName","filter");var Hr=class extends t{};e(Hr,"id","Cursor"),e(Hr,"propName","cursor");var Vr=class extends t{};e(Vr,"id","PointerEvents"),e(Vr,"propName","pointer-events");var $r=class extends t{};e($r,"id","Resize"),e($r,"propName","resize");var Ur=class extends t{};e(Ur,"id","TouchAction"),e(Ur,"propName","touch-action");var Qr=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(Qr,"id","UserDrag"),e(Qr,"propName","user-drag");var Yr=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(Yr,"id","UserSelect"),e(Yr,"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 Ct=class extends t{};e(Ct,"id","TextShadow"),e(Ct,"propName","text-shadow"),e(Ct,"colorful",!0);var Bo=.5,qr=class extends t{get(r){let{unit:o,value:i}=r;return{"font-size":r,"line-height":{...r,value:o==="rem"?i+Bo+o:`calc(${i}${o} + ${Bo}rem)`,unit:""}}}};e(qr,"id","TextSize"),e(qr,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Rt=class extends t{};e(Rt,"id","WordBreak"),e(Rt,"propName","word-break"),e(Rt,"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 Mt=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(Mt,"id","GridRows"),e(Mt,"propName","grid-rows"),e(Mt,"unit","");var Xr=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(Xr,"id","Gap"),e(Xr,"matches",/^gap(-x|-y)?:./);var Nt=class extends t{};e(Nt,"id","WordSpacing"),e(Nt,"propName","word-spacing"),e(Nt,"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 Tt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Tt,"id","BoxDecorationBreak"),e(Tt,"matches",/^box:(slice|clone)(?!\|)/),e(Tt,"propName","box-decoration-break");var Zr=class extends t{};e(Zr,"id","BreakAfter"),e(Zr,"propName","break-after");var Jr=class extends t{};e(Jr,"id","BreakBefore"),e(Jr,"propName","break-before");var Kr=class extends t{};e(Kr,"id","BreakInside"),e(Kr,"propName","break-inside");var wt=class extends t{};e(wt,"id","FlexShrink"),e(wt,"propName","flex-shrink"),e(wt,"unit","");var Ot=class extends t{};e(Ot,"id","FlexDirection"),e(Ot,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(Ot,"propName","flex-direction");var At=class extends t{};e(At,"id","FlexGrow"),e(At,"propName","flex-grow"),e(At,"unit","");var It=class extends t{};e(It,"id","FlexWrap"),e(It,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(It,"propName","flex-wrap");var ei=class extends t{};e(ei,"id","FlexBasis"),e(ei,"propName","flex-basis");var Bt=class extends t{order=-1};e(Bt,"id","Flex"),e(Bt,"propName","flex"),e(Bt,"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 Ft=class extends t{};e(Ft,"id","ColumnSpan"),e(Ft,"matches",/^col-span:./),e(Ft,"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 jt=class extends t{};e(jt,"id","AlignContent"),e(jt,"matches",/^ac:./),e(jt,"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 Wt=class extends t{};e(Wt,"id","GridAutoColumns"),e(Wt,"matches",/^grid-auto-cols:./),e(Wt,"propName","grid-auto-columns");var Pt=class extends t{};e(Pt,"id","GridAutoFlow"),e(Pt,"matches",/^grid-flow:./),e(Pt,"propName","grid-auto-flow");var ti=class extends t{};e(ti,"id","GridAutoRows"),e(ti,"propName","grid-auto-rows");var Lt=class extends t{};e(Lt,"id","JustifyContent"),e(Lt,"matches",/^jc:./),e(Lt,"propName","justify-content");var Gt=class extends t{};e(Gt,"id","JustifyItems"),e(Gt,"matches",/^ji:./),e(Gt,"propName","justify-items");var zt=class extends t{};e(zt,"id","JustifySelf"),e(zt,"matches",/^js:./),e(zt,"propName","justify-self");var ri=class extends t{order=-1};e(ri,"id","PlaceContent"),e(ri,"propName","place-content");var ii=class extends t{order=-1};e(ii,"id","PlaceItems"),e(ii,"propName","place-items");var oi=class extends t{order=-1};e(oi,"id","PlaceSelf"),e(oi,"propName","place-self");var si=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(si,"id","Padding"),e(si,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var ai=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(ai,"id","Margin"),e(ai,"matches",/^margin(-(left|right|top|bottom))?:./);var _t=class extends t{};e(_t,"id","TextOverflow"),e(_t,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(_t,"propName","text-overflow");var Ht=class extends t{};e(Ht,"id","ListStylePosition"),e(Ht,"matches",/^list-style:(inside|outside)(?!\|)/),e(Ht,"propName","list-style-position");var Vt=class extends t{};e(Vt,"id","ListStyleType"),e(Vt,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Vt,"propName","list-style-type");var ni=class extends t{order=-1};e(ni,"id","ListStyle"),e(ni,"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 $t=class extends t{};e($t,"id","TextDecorationStyle"),e($t,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e($t,"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 li=class extends t{};e(li,"id","TextIndent"),e(li,"propName","text-indent");var ci=class extends t{};e(ci,"id","Content"),e(ci,"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 di=class extends t{};e(di,"id","OutlineOffset"),e(di,"propName","outline-offset");var Ut=class extends t{};e(Ut,"id","OutlineStyle"),e(Ut,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e(Ut,"propName","outline-style");var Qt=class extends t{};e(Qt,"id","OutlineWidth"),e(Qt,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Qt,"propName","outline-width");var Yt=class extends t{order=-1};e(Yt,"id","Outline"),e(Yt,"propName","outline"),e(Yt,"colorful",!0);var qt=class extends t{};e(qt,"id","BorderCollapse"),e(qt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(qt,"propName","border-collapse");var mi=class extends t{};e(mi,"id","BorderSpacing"),e(mi,"propName","border-spacing");var fi=class extends t{};e(fi,"id","TableLayout"),e(fi,"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 pi=class extends t{};e(pi,"id","Appearance"),e(pi,"propName","appearance");var Ne=class extends t{};e(Ne,"id","CaretColor"),e(Ne,"propName","caret-color"),e(Ne,"colorStarts","caret:"),e(Ne,"colorful",!0);var ui=class extends t{};e(ui,"id","ScrollBehavior"),e(ui,"propName","scroll-behavior");var hi=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(hi,"id","ScrollMargin"),e(hi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var gi=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(gi,"id","ScrollPadding"),e(gi,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var Xt=class extends t{};e(Xt,"id","ScrollSnapAlign"),e(Xt,"matches",/^scroll-snap:(start|end|center)/),e(Xt,"propName","scroll-snap-align");var Zt=class extends t{};e(Zt,"id","ScrollSnapStop"),e(Zt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Zt,"propName","scroll-snap-stop");var Jt=class extends t{};e(Jt,"id","ScrollSnapType"),e(Jt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Jt,"propName","scroll-snap-type");var xi=class extends t{};e(xi,"id","WillChange"),e(xi,"propName","will-change");var vi=class extends t{};e(vi,"id","TextUnderlineOffset"),e(vi,"propName","text-underline-offset");var Kt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Kt,"id","Inset"),e(Kt,"matches",/^(?:top|bottom|left|right):./),e(Kt,"propName","inset");var ke=class extends t{order=-1};e(ke,"id","Columns"),e(ke,"matches",/^(columns|cols):./),e(ke,"propName","columns"),e(ke,"unit","");var er=class extends t{};e(er,"id","WhiteSpace"),e(er,"propName","white-space"),e(er,"unit","");var tr=class extends t{};e(tr,"id","TextOrientation"),e(tr,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(tr,"propName","text-orientation");var rr=class extends t{};e(rr,"id","WritingMode"),e(rr,"matches",/^writing:./),e(rr,"propName","writing-mode");var Si=class extends t{};e(Si,"id","Contain"),e(Si,"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 ir=class extends t{};e(ir,"id","TextRendering"),e(ir,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(ir,"propName","text-rendering");var bi=class extends t{};e(bi,"id","Direction"),e(bi,"propName","direction");var or=class extends t{};e(or,"id","TextDecorationLine"),e(or,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(or,"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 sr=class extends t{};e(sr,"id","ListStyleImage"),e(sr,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(sr,"propName","list-style-image");var ar=class extends t{};e(ar,"id","ShapeOutside"),e(ar,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(ar,"propName","shape-outside");var nr=class extends t{};e(nr,"id","ShapeMargin"),e(nr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(nr,"propName","shape-margin");var lr=class extends t{};e(lr,"id","ShapeImageThreshold"),e(lr,"propName","shape-image-threshold"),e(lr,"unit","");var cr=class extends t{};e(cr,"id","ClipPath"),e(cr,"matches",/^clip:./),e(cr,"propName","clip-path");var yi=class extends t{order=-1};e(yi,"id","Grid"),e(yi,"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 Ci=class extends t{};e(Ci,"id","Quotes"),e(Ci,"propName","quotes");var Ri=class extends t{order=-1};e(Ri,"id","GridTemplate"),e(Ri,"propName","grid-template");var dr=class extends t{};e(dr,"id","GridRowStart"),e(dr,"propName","grid-row-start"),e(dr,"unit","");var Mi=class extends t{};e(Mi,"id","GridTemplateAreas"),e(Mi,"propName","grid-template-areas");var mr=class extends t{};e(mr,"id","GridTemplateColumns"),e(mr,"matches",/^grid-template-cols:./),e(mr,"propName","grid-template-columns");var Ni=class extends t{};e(Ni,"id","GridTemplateRows"),e(Ni,"propName","grid-template-rows");var fr=class extends t{order=-1};e(fr,"id","GridArea"),e(fr,"propName","grid-area"),e(fr,"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 pr=class extends t{};e(pr,"id","GridRowEnd"),e(pr,"propName","grid-row-end"),e(pr,"unit","");var ki=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(ki,"id","MaskImage"),e(ki,"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 Ti=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(Ti,"id","TextStroke"),e(Ti,"matches",/^text-stroke:./);var wi=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(wi,"id","TextStrokeWidth"),e(wi,"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 Oi=class extends t{};e(Oi,"id","StrokeDasharray"),e(Oi,"propName","stroke-dasharray");var Ai=class extends t{};e(Ai,"id","StrokeDashoffset"),e(Ai,"propName","stroke-dash-offset");var ur=class extends t{};e(ur,"id","X"),e(ur,"propName","x"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Y"),e(hr,"propName","y"),e(hr,"unit","");var gr=class extends t{};e(gr,"id","Cx"),e(gr,"propName","cx"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","Cy"),e(xr,"propName","cy"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","Rx"),e(vr,"propName","rx"),e(vr,"unit","");var Sr=class extends t{};e(Sr,"id","Ry"),e(Sr,"propName","ry"),e(Sr,"unit","");var Ii=class extends t{};e(Ii,"id","BorderImageOutset"),e(Ii,"propName","border-image-outset");var br=class extends t{};e(br,"id","BorderImageRepeat"),e(br,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(br,"propName","border-image-repeat");var yr=class extends t{};e(yr,"id","BorderImageSlice"),e(yr,"propName","border-image-slice"),e(yr,"unit","");var Cr=class extends t{};e(Cr,"id","BorderImageSource"),e(Cr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(Cr,"propName","border-image-source");var Rr=class extends t{};e(Rr,"id","BorderImageWidth"),e(Rr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(Rr,"propName","border-image-width");var Mr=class extends t{};e(Mr,"id","BorderImage"),e(Mr,"propName","border-image"),e(Mr,"unit","");var os=/\{(.*)\}/,Nr=class extends t{getThemeProps(r,o){let i={},n=(f,g)=>{let x=g.indexOf(":");if(x!==-1){f in i||(i[f]={});let s=i[f],l=g.slice(0,x);l in s||(s[l]=g.slice(x+1))}},a=f=>{let g=(x,s)=>{let l=s.slice(CSS.escape(f.className).length).match(os)[1].split(";");for(let S of l)n(x,S)};if(this.themeName){let x=f.natives.find(s=>s.themeName===this.themeName)??f.natives.find(s=>!s.themeName);x&&g(this.themeName,x.text)}else for(let x of f.natives)g(x.themeName,x.text)},m=[],p="",h=()=>{p&&(m.push(p),p="")},c=1;(function f(g){for(;c<r.value.length;c++){let x=r.value[c];if(!g){if(x===";"){h();continue}if(x==="}")break}if(p+=x,g===x){if(g==="'"){let s=0;for(let l=p.length-2;p[l]==="\\";l--)s++;if(s%2)continue}break}else x in Or&&g!=="'"&&(c++,f(Or[x]))}})(void 0),h();for(let f of m){let g=o.findAndNew(f);if(Array.isArray(g))for(let x of g)a(x);else g?a(g):n(this.themeName??"",f)}return i}};e(Nr,"id","Group"),e(Nr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Nr,"unit","");var kr=class extends t{};e(kr,"id","CounterIncrement"),e(kr,"propName","counter-increment"),e(kr,"unit","");var Tr=class extends t{};e(Tr,"id","CounterReset"),e(Tr,"propName","counter-reset"),e(Tr,"unit","");var ss=[Nr,kt,We,X,Ee,_e,J,He,Oe,Q,Ar,ai,si,ei,It,At,wt,Ot,Bt,it,Pe,Le,Ge,ze,Si,ci,kr,Tr,Z,K,Ve,$e,Ue,ye,$t,Ce,or,ee,vi,_t,tr,Qe,ir,li,Ye,ke,er,Kt,qe,tt,rt,ot,st,Ir,Br,Fr,jr,Dr,Er,se,zr,_r,Hr,Vr,$r,Ur,Rt,Nt,Qr,Yr,Ct,qr,Ie,wi,Be,Ti,he,fi,Ze,Xe,te,re,Ke,et,oe,ie,Je,ae,at,Te,nt,ne,lt,ct,dt,le,de,Wr,Pr,Lr,qt,mi,Ii,br,yr,Cr,Rr,Mr,mt,ft,Gr,pt,U,ut,me,ht,gt,fe,pe,xt,vt,yt,ue,Oi,Ai,bt,St,ur,hr,gr,xr,vr,Sr,we,Ae,Se,ge,dr,pr,be,Mt,Wt,Pt,ti,Mi,mr,Ni,Ri,fr,yi,Xr,ve,Kr,Jr,Zr,Tt,xe,Ft,jt,Dt,Et,Lt,Gt,zt,ri,ii,oi,Ht,Vt,sr,ni,Re,di,Ut,Qt,Yt,Me,pi,Ne,ui,hi,gi,Xt,Zt,Jt,xi,rr,bi,ar,nr,lr,cr,Ci,ki],vo=ss;var as={colors:ao,breakpoints:wr,semantics:co,values:po,selectors:lo,themes:mo,scheme:fo,Rules:vo,rootSize:no},Ki=as;function Fo(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function eo(r){return Object.prototype.toString.call(r).slice(8,-1)}function Bi(r){return eo(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function So(r){return eo(r)==="Symbol"}function jo(r,o,i,n){let a={}.propertyIsEnumerable.call(n,o)?"enumerable":"nonenumerable";a==="enumerable"&&(r[o]=i),a==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function Do(r,o,i){if(!Bi(o))return o;let n={};if(Bi(r)){let h=Object.getOwnPropertyNames(r),c=Object.getOwnPropertySymbols(r);n=[...h,...c].reduce((f,g)=>{let x=r[g];return(!So(g)&&!Object.getOwnPropertyNames(o).includes(g)||So(g)&&!Object.getOwnPropertySymbols(o).includes(g))&&jo(f,g,x,r),f},{})}let a=Object.getOwnPropertyNames(o),m=Object.getOwnPropertySymbols(o);return[...a,...m].reduce((h,c)=>{let f=o[c],g=Bi(r)?r[c]:void 0;g!==void 0&&Bi(f)&&(f=Do(g,f,i));let x=i?i(g,f,c):f;return jo(h,c,x,o),h},n)}function Wi(r,...o){return o.filter(i=>Bi(i)).reduce((i,n)=>Do(i,n,Fo),r)}var ns=[",",".","#","[","!","*",">","+","~",":","@"],ls=/^::-[a-z]+-/m,to,Li=typeof window<"u";Li&&(to=document.createElement("style"),to.title="master");var G="max-width",L="min-width",cs="attributes",ds=Li?window.MutationObserver:Object,Fi,Fe,Pi=class extends ds{constructor(i){super(n=>{let a={},m=[],p=[],h=[],c=(s,l)=>{l?s.classList.forEach(g):s.classList.forEach(f);let S=s.children;for(let d=0;d<S.length;d++){let u=S[d];u.classList&&(p.push(u),c(u,l))}},f=s=>{s in a?a[s]++:a[s]=1},g=s=>{s in a?a[s]--:a[s]=-1},x=(s,l)=>{for(let S=0;S<s.length;S++){let d=s[S];d.classList&&!p.includes(d)&&!h.includes(d)&&(d.isConnected!==l?(p.push(d),c(d,l)):h.push(d))}};for(let s=0;s<n.length;s++){let l=n[s],{addedNodes:S,removedNodes:d,type:u,target:v,oldValue:M}=l;if(u===cs){if(v.className===M||m.find(k=>k.target===v))continue;m.push(l)}else x(S,!1),x(d,!0)}if(!(!m.length&&!Object.keys(a).length)){for(let{oldValue:s,target:l}of m){let S=p.includes(l),d=l.classList,u=s?s.split(" "):[];if(S){if(l.isConnected)continue;for(let v of u)d.contains(v)||g(v)}else if(l.isConnected){d.forEach(v=>{u.includes(v)||f(v)});for(let v of u)d.contains(v)||g(v)}else for(let v of u)g(v)}for(let s in a){let l=a[s],S=(this.countOfClass[s]||0)+l;S===0?(delete this.countOfClass[s],this.delete(s)):(s in this.countOfClass||this.findAndInsert(s),this.countOfClass[s]=S)}}});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,"values");e(this,"globalValues");e(this,"schemeMQL");oo(this,Fi,void 0);oo(this,Fe,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Wi({observe:!0},i),this.options.config&&!this.options.override?this.config=Wi(Ki,this.options.config):this.config=Ki,this.cache(),Li&&this.options.observe&&this.observe(document),Pi.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,Fi)){so(this,Fi,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,Fi)}set theme(i){i!==De(this,Fe)&&(De(this,Fe)&&this.host.classList.remove(De(this,Fe)),so(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={},this.values={},this.globalValues={};let{semantics:i,classes:n,selectors:a,themes:m,colors:p,values:h}=this.config;function c(s){return s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let s in i)this.semantics.push([new RegExp("^"+c(s)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),s]);if(a)for(let[s,l]of Object.entries(a)){let S=new RegExp(c(s)+"(?![a-z-])");for(let d of Array.isArray(l)?l:[l]){let u=d.match(ls)?.[0]??"",v=this.selectors[u];v||(v=this.selectors[u]=[]);let M=v.find(([k])=>k===S);M||(M=[S,[]],v.push(M)),M[1].push(d)}}if(h)for(let[s,l]of Object.entries(h))(typeof l=="object"?this.values:this.globalValues)[s]=l;let f=[...n?Object.keys(n):[],...m&&!Array.isArray(m)?Object.entries(m).flatMap(([s,{classes:l}])=>l?Object.keys(l):[]):[]],g=s=>{if(s in this.classes)return;let l=this.classes[s]=[],S=(d,u)=>{if(!u)return;let v=Array.isArray(u)?u:u.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let M of v){let k=T=>{T in this.relationThemesMap?d in this.relationThemesMap[T]?this.relationThemesMap[T][d].push(s):this.relationThemesMap[T][d]=[s]:this.relationThemesMap[T]={[d]:[s]},l.includes(T)||l.push(T)};if(f.includes(M)){g(M);for(let T of this.classes[M])k(T)}else k(M)}};if(S("",n?.[s]),m&&!Array.isArray(m))for(let[d,{classes:u}]of Object.entries(m))S(d,u?.[s])};for(let s of f)g(s);for(let s in this.relationThemesMap){let l=this.relations[s]=[];for(let S of Object.values(this.relationThemesMap[s]))for(let d of S)l.includes(d)||l.push(d)}let x=(s,l)=>{if(!!l)for(let S in l){let d=l[S];if(typeof d=="string"&&(d={"":d}),S in this.colorsThemesMap){let u=this.colorsThemesMap[S];for(let v in d){let M=d[v];v in u?u[v][s]=M:u[v]={[s]:M}}}else this.colorNames.push(S),this.colorsThemesMap[S]=Object.entries(d).reduce((u,[v,M])=>(u[v]={[s]:M},u),{})}};if(x("",p),m)if(Array.isArray(m))this.themeNames.push(...m);else for(let s in m){let l=m[s];x(s,l.colors),this.themeNames.push(s)}for(let[s,l]of Object.entries(this.colorsThemesMap))for(let[S,d]of Object.entries(l))for(let[u,v]of Object.entries(d))if(!v.startsWith("#")){let[M,k]=v.split("-"),T=this.colorsThemesMap[M]?.[k??""],C="";T&&(C=(u?T[u]:void 0)??T[""],C&&(d[u]=C)),C||(console.warn(`\`${v}\` doesn't exist in the extended config \`.colors\``),Object.keys(d).length>1?delete d[u]:Object.keys(l).length>1?delete l[S]:(delete this.colorsThemesMap[s],this.colorNames.splice(this.colorNames.indexOf(s),1)))}}observe(i,n={subtree:!0,childList:!0}){if(Li&&i){this.root=i;let a=i===document;a&&(Pi.root=this),this.host=a?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let m=a?document.head:i,p=a?document.styleSheets:i.styleSheets;for(let h of p){let{title:c,href:f,ownerNode:g}=h;(c==="master"||f&&/master(?:\..+)?\.css/.test(f))&&(this.style=g)}if(this.style)for(let h=0;h<this.style.sheet.cssRules.length;h++){let c=g=>{if(g.selectorText){let s=g.selectorText.split(", ")[0].split(" ");for(let l=0;l<s.length;l++){let S=s[l];if(S[0]==="."){let d=S.slice(1),u="";for(let v=0;v<d.length;v++){let M=d[v],k=d[v+1];if(M==="\\"){if(v++,k!=="\\"){u+=k;continue}}else if(ns.includes(M))break;u+=M}if(!(u in this.ruleOfClass)&&!(u in this.classes)){let v=this.findAndNew(u);if(v)return v}}}}else if(g.cssRules)for(let x=0;x<g.cssRules.length;x++){let s=c(g.cssRules[x]);if(s)return s}},f=c(this.style.sheet.cssRules[h]);if(f){this.rules.push(f),this.ruleOfClass[f.className]=f;for(let g=0;g<f.natives.length;g++)f.natives[g].cssRule=this.style.sheet.cssRules[h+g];h+=f.natives.length-1}}else this.style=to.cloneNode(),m.prepend(this.style);n.subtree&&this.host.querySelectorAll("[class]").forEach(h=>{h.classList.forEach(c=>{c in this.countOfClass?this.countOfClass[c]++:(this.countOfClass[c]=1,this.findAndInsert(c))})}),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=a=>{if(a in this.ruleOfClass)return this.ruleOfClass[a];for(let m of this.config.Rules){let p=m.match(a,this.colorNames);if(p)return new m(a,p,this)}for(let m of this.semantics)if(a.match(m[0]))return new t(a,{origin:"semantics",value:m[1]},this)};return i in this.classes?this.classes[i].map(n).filter(a=>a):n(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let n=to.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let a in this.countOfClass)this.findAndInsert(a)}destroy(){let i=Pi.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 a,m=this.rules.length-1,{media:p,order:h,prioritySelectorIndex:c,hasWhere:f,className:g}=i,x=(s,l,S,d)=>{let u=0,v;l&&(u=s.findIndex(l)),S&&(v=s.findIndex(S)),u===-1&&(u=s.length),(v===void 0||v===-1)&&(v=s.length);let M=s.slice(u,v);for(let k=0;k<M.length;k++){let T=M[k];if(!(T.prioritySelectorIndex===-1||d&&d(T))&&(T.prioritySelectorIndex<c||T.prioritySelectorIndex===c&&(f&&!T.hasWhere||T.order>=h)))return u+k}return u+M.length};if(p){let s=this.rules.findIndex(l=>l.media);if(s!==-1){let l=p.features[G],S=p.features[L];if(l&&S){let d=l.value-S.value;for(let u=m;u>=s;u--){a=u;let v=this.rules[u],M=v.media,k=M.features[G],T=M.features[L];if(!k||!T){a++;break}let C=k.value-T.value;if(C===d){if(f!==v.hasWhere)continue;if(c!==-1){let j=[this.rules[u]];for(let B=u-1;B>=s;B--){let H=this.rules[B];if(H.hasWhere!==f)break;let V=H.media,$=V.features[G],je=V.features[L];if(!$||!je||$.value-je.value!==C)break;j.unshift(this.rules[B])}a=x(this.rules,B=>B.media&&B.prioritySelectorIndex!==-1&&B.media.features[L]&&B.media.features[G])}break}else if(C>d)break}}else if(S)for(let d=s;d<=m;d++){a=d;let u=this.rules[d],v=u.media,M=v.features[G],k=v.features[L];if(M){if(k)break;continue}let T=k?.value;if(T===S.value){if(!f&&u.hasWhere){a++;continue}if(c!==-1)a=x(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=d;C<=m;C++){let j=this.rules[C],B=j.media,H=B.features[L];if(!B.features[G]){if(j.hasWhere!==f||H.value!==T||j.order>=h)break;a=C+1}}break}else{if(T>S.value)break;a++}}else if(l)for(let d=m;d>=s;d--){a=d;let u=this.rules[d],v=u.media,M=v.features[G];if(v.features[L])continue;let T=M?.value;if(!T||T>l.value){a++;break}else if(T===l.value){if(f&&!u.hasWhere)continue;if(c!==-1)a=x(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[d]];for(let j=d-1;j>=s;j--){let B=this.rules[j],H=B.media,V=H.features[L],$=H.features[G];if(!V&&(!$||$.value!==T||B.hasWhere!==f))break;C.unshift(B)}for(let j=0;j<C.length;j++){let B=C[j];if(!B.media.features[L]){if(B.order>=h)break;a=d-C.length+2+j}}}break}}}if(a===void 0)if(s===-1)a=m+1;else if(c!==-1)a=s+x(this.rules.slice(s),void 0,l=>l.media.features[G]||l.media.features[L]);else if(f){let l=s;for(;l<this.rules.length;l++){let S=this.rules[l];if(S.prioritySelectorIndex!==-1||!S.hasWhere||S.order>=h){a=l;break}}a===void 0&&(a=l)}else for(let l=s;l<=m;l++){a=l;let S=this.rules[l],d=S.media;if(S.prioritySelectorIndex!==-1||d.features[G]||d.features[L])break;if(S.hasWhere)a++;else if(S.order>=h)break}}else if(c===-1)if(f)a=this.rules.findIndex(s=>!s.hasWhere||s.media||s.prioritySelectorIndex!==-1||s.order>=h),a===-1&&(a=m+1);else{let s=0;for(;s<this.rules.length;s++){let l=this.rules[s];if(l.media||!l.hasWhere&&(l.order>=h||l.prioritySelectorIndex!==-1)){a=s;break}}a===void 0&&(a=s)}else a=x(this.rules,void 0,s=>s.media);if(this.rules.splice(a,0,i),this.ruleOfClass[g]=i,this.style){let s=this.style.sheet,l=0,S=d=>{let u=this.rules[d];if(u){if(!u.natives.length)return S(d-1);let v=u.natives[u.natives.length-1].cssRule;for(let M=0;M<s.cssRules.length;M++)if(s.cssRules[M]===v){l=M+1;break}}};S(a-1);for(let d=0;d<i.natives.length;)try{let u=i.natives[d];s.insertRule(u.text,l),u.cssRule=s.cssRules[l++],d++}catch(u){console.error(u),i.natives.splice(d,1)}}}delete(i){let n=this.style.sheet,a=m=>{let p=this.ruleOfClass[m];if(!(!p||m in this.relations&&this.relations[m].some(h=>h in this.countOfClass))){if(p.natives.length){let h=p.natives[0];for(let c=0;c<n.cssRules.length;c++)if(n.cssRules[c]===h.cssRule){for(let g=0;g<p.natives.length;g++)n.deleteRule(c);this.rules.splice(this.rules.indexOf(p),1);break}}delete this.ruleOfClass[m]}};if(i in this.classes){for(let m of this.classes[i])m in this.countOfClass||a(m);delete this.ruleOfClass[i]}else a(i)}findAndInsert(i){let n=this.findAndNew(i);if(Array.isArray(n))for(let a of n)this.insert(a);else n&&this.insert(n)}get text(){return this.rules.map(i=>i.natives.map(n=>n.text).join("")).join("")}},_=Pi;Fi=new WeakMap,Fe=new WeakMap,e(_,"instances",[]),e(_,"root");Li&&(window.MasterCSS=_);var Gi=typeof global<"u"?global:window;if(!Gi.CSS&&!Gi.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,a=-1,m="",p,h=i.charCodeAt(0);if(n==1&&h==45)return"\\"+i;for(;++a<n;){if(p=i.charCodeAt(a),p==0){m+="\uFFFD";continue}if(p>=1&&p<=31||p==127||a==0&&p>=48&&p<=57||a==1&&p>=48&&p<=57&&h==45){m+="\\"+p.toString(16)+" ";continue}if(p>=128||p==45||p==95||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122){m+=i.charAt(a);continue}m+="\\"+i.charAt(a)}return m};Gi.CSS||(Gi.CSS={}),Gi.CSS.escape=r}function Eo(r,o=new _({observe:!1})){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,a)=>n+a.text,"")).join("")}}function ro(r,o=new _({observe:!1})){if(!r)return;let i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(r);){let a=n[1].replace(/\n/g,"").split(" ").filter(m=>m);for(let m of a)m in o.countOfClass||(o.findAndInsert(m),o.countOfClass[m]=1)}return o.rules.map(a=>a.natives.reduce((m,p)=>m+p.text,"")).join("")}function Wo(r,o=new _({observe:!1})){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${ro(r,o)}</style>`)}var wR=typeof document<"u"&&document;export{vo as DefaultRules,t as MasterCSSRule,_ as default,wr as defaultBreakpoints,ao as defaultColors,Ki as defaultConfig,no as defaultRootSize,fo as defaultScheme,lo as defaultSelectors,co as defaultSemantics,mo as defaultThemes,po as defaultValues,Wi as extend,D as fillColorScale,Eo as render,ro as renderFromHTML,Wo as renderIntoHTML,wR as root};
1
+ var Go=Object.defineProperty;var zo=(r,o,i)=>o in r?Go(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var e=(r,o,i)=>(zo(r,typeof o!="symbol"?o+"":o,i),i),yo=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var De=(r,o,i)=>(yo(r,o,"read from private field"),i?i.call(r):o.get(r)),oo=(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)},so=(r,o,i,n)=>(yo(r,o,"write to private field"),n?n.call(r,i):o.set(r,i),i);var _o={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},wr=_o;function Di(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 Co(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,a="0"in r?Di(r[0]):[0,0,0],m,p,h=[],c=()=>{let f=m-n,g=p.map((x,s)=>(x-a[s])/f);for(let x of h){let s=x-n,l=a.map((S,d)=>Math.round(S+g[d]*s));r[x]="#"+Co.call(this,...l)}};for(let f=1;f<100;f++)f in r?(h.length?(m=f,p=Di(r[f]),c(),h.length=0,a=p):a=Di(r[f]),n=f):h.push(f);h.length&&(m=100,p="100"in r?Di(r[100]):[255,255,255],c())}return o||(r[""]=r[i?"500":"50"]),r}var Ho={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"},ao=Ho;var no=16;var Vo={"::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("},lo=Vo;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"}},co=$o;var Uo=["dark","light"],mo=Uo;var Qo={storage:{sync:!0,key:"scheme"}},fo=Qo;var Ei={content:"content-box",border:"border-box",padding:"padding-box"},Hi={min:"min-content",max:"max-content"},q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in wr)q[r]=wr[r]/16+"rem";var Yo={BackgroundClip:Ei,BackgroundOrigin:Ei,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Ei,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:Hi,GridAutoRows:Hi,GridTemplateColumns:Hi,GridTemplateRows:Hi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Ei,margin:"margin-box"},TransformBox:{...Ei,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:q,MinWidth:q,MinHeight:q,MaxWidth:q,MaxHeight:q,Height:q,FlexBasis:q},po=Yo;function Vi(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function Ro(r){let o=h=>h==="+"||h==="-"||h==="*"||h==="/",i="",n,a="",m=!1;function p(){n=null,a=""}for(let h=0;h<r.length;h++){let c=r[h];if(c==="("||c===")")m=c===")",i+=a+c,p();else if(c===",")i+=a+c+" ",p();else{switch(n){case 1:break;case 2:if(o(c)){i+=a+" "+c+" ",p();continue}break;default:m&&(a+=" "),isNaN(+c)?o(c)||(n=1):n=2;break}a+=c}}return a&&(i+=a),i}var qo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Xo="var(--";function $i(r,o,i,n,a,m,p){let h="",c="",f="",g;if(n&&r in n)return{value:n[r].toString(),unit:c,unitToken:f};if(a&&r in a)return{value:a[r].toString(),unit:c,unitToken:f};if(typeof r=="number")h=r,c=o||"";else{if(i){let x=Object.keys(i),s=!1,l=!1;r=r.replace(new RegExp(`(^|,| |\\()(${x.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(S,d,u,v,M)=>{l=!0;let k=i[u]?.[v||""];if(k){let T;for(let C of p)if(T=k[C])break;if(T){s=!0;let C=T;if(M){let j=M.endsWith("%")?parseFloat(M)/100:+M;j=isNaN(j)?1:Math.min(Math.max(j,0),1),C+=Math.round(j*255).toString(16).toUpperCase().padStart(2,"0")}return d+C}}return S}),l&&(g=s)}if(o){let x=r.match(qo);if(x)if(r.includes("/")){let s=r.split("/");return{value:+s[0]/+s[1]*100+"%",unit:c,unitToken:f}}else return h=+x[1],c=f=x[3]||"",c||((o==="rem"||o==="em")&&(h=h/m),c=o||""),{value:h,unit:c,unitToken:f}}h=(r.indexOf("calc(")===-1?r:Ro(r)).replace(/\$\(((\w|-)+)\)/g,Xo+"$1)")}return{value:h,unit:c,unitToken:f,colorMatched:g}}var Or={"(":")","'":"'","{":"}"};var Mo=[":disabled",":active",":focus",":hover"],Ui="matches",Zo="semantics",No="symbol",To="width",uo="max-"+To,ho="min-"+To,xo="motion",wo="reduce",ko=wo+"d-"+xo,go="px",Jo="rem",Ko=["!","*",">","+","~",":","[","@","_"],es=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,ts=r=>r.split(es).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 a=this.constructor,{id:m,unit:p,propName:h,colorful:c}=a,{breakpoints:f,mediaQueries:g,semantics:x,rootSize:s}=n.config,{themeNames:l,colorsThemesMap:S,selectors:d,globalValues:u}=n,v=n.values[m],M=n.relationThemesMap[o],k=o,T,C,j,B;if(i.origin===Zo)j=k.slice(i.value.length),T=x[i.value];else{let F;if(i.origin===Ui)if(m==="Group"){let w=0;for(;w<k.length&&!(k[w]==="{"&&k[w-1]!=="\\");w++);C=k.slice(0,w),F=k.slice(w)}else{let w=k.indexOf(":");this.prefix=k.slice(0,w+1),this.prefix.includes("(")?(this.prefix=void 0,F=k):F=k.slice(w+1)}else i.origin===No&&(this.symbol=k[0],F=k.slice(1));B=[];let y="",R=0;(function w(E,N,O=""){let b,A=!1;for(E&&(E===")"&&y.slice(-1)==="$"?b=y.length-1:E==="'"&&(A=!0),y+=F[R++]);R<F.length;R++){let I=F[R];if(I===E){if(y+=I,A){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)")),N||(A?B.push(y):B.push({value:y}),O="",y="");break}else if(!A&&I in Or)w(Or[I],N===void 0?0:N+1,O);else if(I==="|"&&E!=="}"&&(!A||O==="path"))E?y+=" ":(B.push({value:y}),y="");else{if(!E){if(I==="."){if(isNaN(+F[R+1]))break;F[R-1]==="-"&&(y+="0")}else if(I===","){B.push({value:y},","),y="";continue}else if(I==="#"&&(y||B.length&&F[R-1]!=="|")||Ko.includes(I))break;O+=I}y+=I}}})(),y&&B.push({value:y}),j=F.slice(R)}j[0]==="!"&&(this.important=!0,j=j.slice(1));let H=F=>{let y=ts(F),R=[],w="",E=0;for(let N=0;N<y.length;N++){let O=y[N];if(O==="\\"){w+=O+y[++N];continue}!E&&O===","?(R.push(w),w=""):(w+=O,E&&O===")"?E--:O==="("&&E++)}return w&&R.push(w),R};this.prefixSelectors=C?H(C):[""];let V=j.split("@"),$=V[0];if($){this.vendorSuffixSelectors={};let F=(N,O,b,A)=>{for(let[I,W]of O)if(I.test(N)){for(let z of W)F(N.replace(I,z),O,b,!0);return}A&&b.push(N)},y=[];""in d?F($,d[""],y,!0):y.push($);let R={};for(let[N,O]of Object.entries(d)){if(!N)continue;let b=[];for(let A of y)F(A,O,b,!1);b.length&&(R[N]=b)}let w=(N,O)=>{let b=O.reduce((A,I)=>(A.push(...H(I)),A),[]);N in this.vendorSuffixSelectors?this.vendorSuffixSelectors[N].push(...b):this.vendorSuffixSelectors[N]=b},E=Object.keys(R);if(E.length)for(let N of E)w(N,R[N]);else w("",y);for(let N of Object.values(this.vendorSuffixSelectors))for(let O of N){this.hasWhere!==!1&&(this.hasWhere=O.includes(":where("));for(let b=0;b<Mo.length;b++)if(O.includes(Mo[b])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>b)&&(this.prioritySelectorIndex=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let F=1;F<V.length;F++){let y=V[F];if(y)if(l.includes(y))this.themeName=y;else if(y==="rtl"||y==="ltr")this.direction=y;else{let R,w,E=y.indexOf("_");if(E!==-1)R=y.slice(0,E),w=y.slice(E);else{let N=y.indexOf("(");N!==-1&&(R=y.slice(0,N),w=y.slice(N))}if(!R){R="media";let N=[];this.media={token:y,features:{}};let O=y.split("&");for(let b of O)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")N.push("(orientation:"+b+")");else if(b===xo||b===ko)N.push("(prefers-"+ko+":"+(b===xo?"no-preference":wo)+")");else if(g&&b in g)N.push(g[b]);else{let A={token:b},I="",W="",z=0;b.startsWith("<=")?(W="<=",I=uo):b.startsWith(">=")||f[b]?(W=">=",I=ho):b.startsWith(">")?(W=">",I=ho,z=.02):b.startsWith("<")&&(W="<",I=uo,z=-.02);let Y=W?b.replace(W,""):b,P=f[Y];switch(I){case uo:case ho:P?Object.assign(A,$i(P,go)):Object.assign(A,$i(Y,go)),A.unit===go&&(A.value+=z),this.media.features[I]=A,N.push("("+I+":"+(A.value+A.unit)+")");break}}w="",this.media.type&&(w=this.media.type),N.length&&(w+=(w?" and ":"")+N.join(" and "))}w&&(this.at[R]=(R in this.at?this.at[R]+" and ":"")+w.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let je=(F,y)=>{let R,w,E=(O,b,A)=>{let I="";this.direction&&(I+="[dir="+this.direction+"] ");let W=this.prefixSelectors.map(P=>P+I),z=(P,zi)=>{let ji=P?"."+P+" ":"",io="."+CSS.escape(zi);return W.map(_i=>ji+_i).reduce((_i,Po)=>(_i.push(A.reduce((bo,Lo)=>(bo.push(Po+io+Lo),bo),[]).join(",")),_i),[]).join(",")},Y=z(b,o)+(M?Object.entries(M).filter(([P])=>this.themeName||!c||!b||!P||P===b).map(([P,zi])=>zi.reduce((ji,io)=>ji+","+z(this.themeName??(c&&b||P),io),"")).join(""):"")+"{"+O+"}";for(let P of Object.keys(this.at).sort((zi,ji)=>ji==="supports"?-1:1))Y="@"+P+" "+this.at[P]+"{"+Y+"}";return Y},N=[];if(B){let O,b;for(let A of B)typeof A=="string"?N.push(A):(O=$i(A.value,p,c&&S,v,u,s,this.themeName?[this.themeName,""]:[F]),O.colorMatched!==void 0&&b!==!0&&(b=O.colorMatched),N.push(O.value+O.unit));if(y&&(b===void 0?F:!b))return;if(N.length===1?O?(R=O.value,w=O.unit):R=N[0]:R=N.reduce((A,I,W)=>A+I+(I===","||B[W+1]===","||W===B.length-1?"":" "),""),typeof R!="object"){this.parseValue&&(R=this.parseValue(R,this.css.config)),c&&R==="current"?R="currentColor":v&&R in v?R=v[R].toString():R in u&&(R=u[R].toString());let A={unit:w,value:R,important:this.important};if(this.getThemeProps){let I=this.getThemeProps(A,n);for(let W in I)for(let z of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:w,value:R,text:E(Object.entries(I[W]).map(([Y,P])=>Vi(Y,{important:this.important,unit:"",value:P})).join(";"),W,z),themeName:W});return}else this.get&&(R=this.get(A))}}else R=T;for(let O of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:w,value:R,text:E(typeof R=="object"?Object.entries(R).map(([b,A])=>Vi(b,{...typeof A=="object"?A:{unit:"",value:A},important:this.important})).join(";"):Vi(h,{unit:w,value:R,important:this.important}),F,O),themeName:F})};if(this.getThemeProps)je(void 0,!1);else if(this.themeName)je(this.themeName,!1);else if(c)for(let F of l)je(F,!0);else je("",!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:Ui};if(this.colorStarts&&(o.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))")||i.length&&o.match("^"+this.colorStarts+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:Ui};if(this.symbol&&o.startsWith(this.symbol))return{origin:No};if(this.propName&&o.startsWith(this.propName+":"))return{origin:Ui}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Jo),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 We=class extends t{};e(We,"id","FontSize"),e(We,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(We,"propName","font-size");var Ar=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",n=i+"-left",a=i+"-right",m=i+"-top",p=i+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[a]:r};case"y":return{[m]:r,[p]:r};case"l":return{[n]:r};case"r":return{[a]:r};case"t":return{[m]:r};case"b":return{[p]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Ar,"id","Spacing"),e(Ar,"matches",/^[pm][xytblr]?:./);var Pe=class extends t{};e(Pe,"id","Width"),e(Pe,"matches",/^w:./),e(Pe,"propName","width");var Le=class extends t{};e(Le,"id","Height"),e(Le,"matches",/^h:./),e(Le,"propName","height");var Ge=class extends t{};e(Ge,"id","MinWidth"),e(Ge,"matches",/^min-w:./),e(Ge,"propName","min-width");var ze=class extends t{};e(ze,"id","MinHeight"),e(ze,"matches",/^min-h:./),e(ze,"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 rs="subpixel-antialiased",Oo="-webkit-font-smoothing",Ao="-moz-osx-font-smoothing",_e=class extends t{get(r){let o={};switch(r.value){case rs:o[Oo]=o[Ao]={...r,value:"auto"};break;case"antialiased":o[Oo]={...r,value:"antialiased"},o[Ao]={...r,value:"grayscale"};break}return o}};e(_e,"id","FontSmoothing"),e(_e,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(_e,"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 He=class extends t{};e(He,"id","FontVariantNumeric"),e(He,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(He,"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 Ve=class extends t{};e(Ve,"id","ObjectFit"),e(Ve,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(Ve,"propName","object-fit");var $e=class extends t{};e($e,"id","ObjectPosition"),e($e,"matches",/^(object|obj):(top|bottom|right|left|center)/),e($e,"propName","object-position");var Ue=class extends t{};e(Ue,"id","TextAlign"),e(Ue,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e(Ue,"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 Qe=class extends t{};e(Qe,"id","TextTransform"),e(Qe,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Qe,"propName","text-transform");var Ye=class extends t{};e(Ye,"id","VerticalAlign"),e(Ye,"matches",/^(?:v|vertical):./),e(Ye,"propName","vertical-align");var qe=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(qe,"id","Lines"),e(qe,"matches",/^lines:./),e(qe,"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 Xe=class extends t{};e(Xe,"id","TransformStyle"),e(Xe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(Xe,"propName","transform-style");var Ze=class extends t{};e(Ze,"id","TransformBox"),e(Ze,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Ze,"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,a,m)=>{let p,h;switch(n){case"translate":p="rem";break;case"skew":p="deg";break;case"rotate":a==="3d"&&(h=!0),p="deg";break;default:return i}let c=m.split(",");return i.replace(m,c.map((f,g)=>!h||c.length-1===g?Number.isNaN(+f)?f:f/(p==="rem"?o:1)+p:f).join(","))})}};e(re,"id","Transform"),e(re,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(re,"propName","transform"),e(re,"unit","");var Je=class extends t{order=-1};e(Je,"id","Transition"),e(Je,"symbol","~"),e(Je,"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 Ke=class extends t{};e(Ke,"id","TransitionProperty"),e(Ke,"matches",/^~property:./),e(Ke,"propName","transition-property");var et=class extends t{};e(et,"id","TransitionTimingFunction"),e(et,"matches",/^~easing:./),e(et,"propName","transition-timing-function");var tt=class extends t{};e(tt,"id","MaxHeight"),e(tt,"matches",/^max-h:./),e(tt,"propName","max-height");var rt=class extends t{};e(rt,"id","MaxWidth"),e(rt,"matches",/^max-w:./),e(rt,"propName","max-width");var it=class extends t{};e(it,"id","Display"),e(it,"matches",/^d:./),e(it,"propName","display");var ot=class extends t{};e(ot,"id","BoxSizing"),e(ot,"matches",/^box:(content|border)(?!\|)/),e(ot,"propName","box-sizing");var st=class extends t{};e(st,"id","Opacity"),e(st,"propName","opacity"),e(st,"unit","");var Ir=class extends t{};e(Ir,"id","Visibility"),e(Ir,"propName","visibility");var Br=class extends t{};e(Br,"id","Clear"),e(Br,"propName","clear");var Fr=class extends t{};e(Fr,"id","Float"),e(Fr,"propName","float");var jr=class extends t{};e(jr,"id","Isolation"),e(jr,"propName","isolation");var Dr=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(Dr,"id","Overflow"),e(Dr,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Er=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(Er,"id","OverscrollBehavior"),e(Er,"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 at=class extends t{};e(at,"id","AnimationDirection"),e(at,"matches",/^@direction:./),e(at,"propName","animation-direction");var nt=class extends t{};e(nt,"id","AnimationFillMode"),e(nt,"matches",/^@fill-mode:./),e(nt,"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 lt=class extends t{};e(lt,"id","AnimationName"),e(lt,"matches",/^@name:./),e(lt,"propName","animation-name");var ct=class extends t{};e(ct,"id","AnimationPlayState"),e(ct,"matches",/^@play-state:./),e(ct,"propName","animation-play-state");var dt=class extends t{};e(dt,"id","AnimationTimingFunction"),e(dt,"matches",/^@easing:./),e(dt,"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 Qi="border-";function ce(r,o,i=""){i&&(i="-"+i);let n=/^b(order)?-?(.)?/.exec(r)[2],a=Qi+"left"+i,m=Qi+"right"+i,p=Qi+"top"+i,h=Qi+"bottom"+i;switch(n){case"x":return{[a]:o,[m]:o};case"y":return{[p]:o,[h]:o};case"l":return{[a]:o};case"r":return{[m]:o};case"t":return{[p]: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 Yi="border-top-left-radius",qi="border-top-right-radius",Xi="border-bottom-left-radius",Zi="border-bottom-right-radius",Io="border-radius",is=[Yi,qi,Xi,Zi],Wr=class extends t{get(r){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let a=1;a<n.length-1;a++)i+=n[a][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[Yi]:r,[qi]:r};case"tl":case"lt":return{[Yi]:r};case"rt":case"tr":return{[qi]:r};case"b":return{[Xi]:r,[Zi]:r};case"bl":case"lb":return{[Xi]:r};case"br":case"rb":return{[Zi]:r};case"l":return{[Yi]:r,[Xi]:r};case"r":return{[qi]:r,[Zi]:r};default:return{[Io]:r}}}let o=this.prefix?.slice(0,-1);return{[is.includes(o)?o:Io]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Wr,"id","BorderRadius"),e(Wr,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Pr=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(Pr,"id","BorderStyle"),e(Pr,"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 Lr=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(Lr,"id","BorderWidth"),e(Lr,"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 mt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(mt,"id","Border"),e(mt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(mt,"colorful",!0);var ft=class extends t{};e(ft,"id","BackgroundAttachment"),e(ft,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(ft,"propName","background-attachment");var Gr=class extends t{};e(Gr,"id","BackgroundBlendMode"),e(Gr,"propName","background-blend-mode");var pt=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(pt,"id","BackgroundClip"),e(pt,"matches",/^(bg|background):text(?!\|)/),e(pt,"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 ut=class extends t{};e(ut,"id","BackgroundOrigin"),e(ut,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(ut,"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 ht=class extends t{};e(ht,"id","BackgroundRepeat"),e(ht,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ht,"propName","background-repeat");var gt=class extends t{};e(gt,"id","BackgroundSize"),e(gt,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(gt,"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 xt=class extends t{};e(xt,"id","MixBlendMode"),e(xt,"matches",/^blend:./),e(xt,"propName","mix-blend-mode");var zr=class extends t{};e(zr,"id","Position"),e(zr,"propName","position");var _r=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(_r,"id","Placement"),e(_r,"matches",/^(top|left|right|bottom|center|middle):./);function Ji(r,o,{rootSize:i}){let n="",a=0;return function m(p,h){let c="",f=h?o(h):"",g=()=>{c&&(n+=!f||Number.isNaN(+c)?c:+c/(f==="rem"?i:1)+f,c="")};for(;a<r.length;a++){let x=r[a];if(x===p&&(p!=="'"||r[a+1]===")")){g(),n+=x;break}else x===","||x===" "?(g(),n+=x):!c&&x==="'"?(n+=x,a++,m(x),c=""):c&&x==="("?(n+=c+x,a++,m(")",c),c=""):c+=x}g()}(),n}var vt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return Ji(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(vt,"id","BackdropFilter"),e(vt,"matches",/^bd:./),e(vt,"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 St=class extends t{};e(St,"id","Stroke"),e(St,"propName","stroke"),e(St,"colorful",!0);var bt=class extends t{};e(bt,"id","StrokeWidth"),e(bt,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(bt,"propName","stroke-width");var yt=class extends t{parseValue(r,o){return Ji(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(yt,"id","Filter"),e(yt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(yt,"propName","filter");var Hr=class extends t{};e(Hr,"id","Cursor"),e(Hr,"propName","cursor");var Vr=class extends t{};e(Vr,"id","PointerEvents"),e(Vr,"propName","pointer-events");var $r=class extends t{};e($r,"id","Resize"),e($r,"propName","resize");var Ur=class extends t{};e(Ur,"id","TouchAction"),e(Ur,"propName","touch-action");var Qr=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(Qr,"id","UserDrag"),e(Qr,"propName","user-drag");var Yr=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(Yr,"id","UserSelect"),e(Yr,"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 Ct=class extends t{};e(Ct,"id","TextShadow"),e(Ct,"propName","text-shadow"),e(Ct,"colorful",!0);var Bo=.5,qr=class extends t{get(r){let{unit:o,value:i}=r;return{"font-size":r,"line-height":{...r,value:o==="rem"?i+Bo+o:`calc(${i}${o} + ${Bo}rem)`,unit:""}}}};e(qr,"id","TextSize"),e(qr,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Rt=class extends t{};e(Rt,"id","WordBreak"),e(Rt,"propName","word-break"),e(Rt,"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 Mt=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(Mt,"id","GridRows"),e(Mt,"propName","grid-rows"),e(Mt,"unit","");var Xr=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(Xr,"id","Gap"),e(Xr,"matches",/^gap(-x|-y)?:./);var Nt=class extends t{};e(Nt,"id","WordSpacing"),e(Nt,"propName","word-spacing"),e(Nt,"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 Tt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Tt,"id","BoxDecorationBreak"),e(Tt,"matches",/^box:(slice|clone)(?!\|)/),e(Tt,"propName","box-decoration-break");var Zr=class extends t{};e(Zr,"id","BreakAfter"),e(Zr,"propName","break-after");var Jr=class extends t{};e(Jr,"id","BreakBefore"),e(Jr,"propName","break-before");var Kr=class extends t{};e(Kr,"id","BreakInside"),e(Kr,"propName","break-inside");var wt=class extends t{};e(wt,"id","FlexShrink"),e(wt,"propName","flex-shrink"),e(wt,"unit","");var Ot=class extends t{};e(Ot,"id","FlexDirection"),e(Ot,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(Ot,"propName","flex-direction");var At=class extends t{};e(At,"id","FlexGrow"),e(At,"propName","flex-grow"),e(At,"unit","");var It=class extends t{};e(It,"id","FlexWrap"),e(It,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(It,"propName","flex-wrap");var ei=class extends t{};e(ei,"id","FlexBasis"),e(ei,"propName","flex-basis");var Bt=class extends t{order=-1};e(Bt,"id","Flex"),e(Bt,"propName","flex"),e(Bt,"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 Ft=class extends t{};e(Ft,"id","ColumnSpan"),e(Ft,"matches",/^col-span:./),e(Ft,"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 jt=class extends t{};e(jt,"id","AlignContent"),e(jt,"matches",/^ac:./),e(jt,"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 Wt=class extends t{};e(Wt,"id","GridAutoColumns"),e(Wt,"matches",/^grid-auto-cols:./),e(Wt,"propName","grid-auto-columns");var Pt=class extends t{};e(Pt,"id","GridAutoFlow"),e(Pt,"matches",/^grid-flow:./),e(Pt,"propName","grid-auto-flow");var ti=class extends t{};e(ti,"id","GridAutoRows"),e(ti,"propName","grid-auto-rows");var Lt=class extends t{};e(Lt,"id","JustifyContent"),e(Lt,"matches",/^jc:./),e(Lt,"propName","justify-content");var Gt=class extends t{};e(Gt,"id","JustifyItems"),e(Gt,"matches",/^ji:./),e(Gt,"propName","justify-items");var zt=class extends t{};e(zt,"id","JustifySelf"),e(zt,"matches",/^js:./),e(zt,"propName","justify-self");var ri=class extends t{order=-1};e(ri,"id","PlaceContent"),e(ri,"propName","place-content");var ii=class extends t{order=-1};e(ii,"id","PlaceItems"),e(ii,"propName","place-items");var oi=class extends t{order=-1};e(oi,"id","PlaceSelf"),e(oi,"propName","place-self");var si=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(si,"id","Padding"),e(si,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var ai=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(ai,"id","Margin"),e(ai,"matches",/^margin(-(left|right|top|bottom))?:./);var _t=class extends t{};e(_t,"id","TextOverflow"),e(_t,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(_t,"propName","text-overflow");var Ht=class extends t{};e(Ht,"id","ListStylePosition"),e(Ht,"matches",/^list-style:(inside|outside)(?!\|)/),e(Ht,"propName","list-style-position");var Vt=class extends t{};e(Vt,"id","ListStyleType"),e(Vt,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Vt,"propName","list-style-type");var ni=class extends t{order=-1};e(ni,"id","ListStyle"),e(ni,"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 $t=class extends t{};e($t,"id","TextDecorationStyle"),e($t,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e($t,"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 li=class extends t{};e(li,"id","TextIndent"),e(li,"propName","text-indent");var ci=class extends t{};e(ci,"id","Content"),e(ci,"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 di=class extends t{};e(di,"id","OutlineOffset"),e(di,"propName","outline-offset");var Ut=class extends t{};e(Ut,"id","OutlineStyle"),e(Ut,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e(Ut,"propName","outline-style");var Qt=class extends t{};e(Qt,"id","OutlineWidth"),e(Qt,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Qt,"propName","outline-width");var Yt=class extends t{order=-1};e(Yt,"id","Outline"),e(Yt,"propName","outline"),e(Yt,"colorful",!0);var qt=class extends t{};e(qt,"id","BorderCollapse"),e(qt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(qt,"propName","border-collapse");var mi=class extends t{};e(mi,"id","BorderSpacing"),e(mi,"propName","border-spacing");var fi=class extends t{};e(fi,"id","TableLayout"),e(fi,"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 pi=class extends t{};e(pi,"id","Appearance"),e(pi,"propName","appearance");var Ne=class extends t{};e(Ne,"id","CaretColor"),e(Ne,"propName","caret-color"),e(Ne,"colorStarts","caret:"),e(Ne,"colorful",!0);var ui=class extends t{};e(ui,"id","ScrollBehavior"),e(ui,"propName","scroll-behavior");var hi=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(hi,"id","ScrollMargin"),e(hi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var gi=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(gi,"id","ScrollPadding"),e(gi,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var Xt=class extends t{};e(Xt,"id","ScrollSnapAlign"),e(Xt,"matches",/^scroll-snap:(start|end|center)/),e(Xt,"propName","scroll-snap-align");var Zt=class extends t{};e(Zt,"id","ScrollSnapStop"),e(Zt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Zt,"propName","scroll-snap-stop");var Jt=class extends t{};e(Jt,"id","ScrollSnapType"),e(Jt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Jt,"propName","scroll-snap-type");var xi=class extends t{};e(xi,"id","WillChange"),e(xi,"propName","will-change");var vi=class extends t{};e(vi,"id","TextUnderlineOffset"),e(vi,"propName","text-underline-offset");var Kt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Kt,"id","Inset"),e(Kt,"matches",/^(?:top|bottom|left|right):./),e(Kt,"propName","inset");var ke=class extends t{order=-1};e(ke,"id","Columns"),e(ke,"matches",/^(columns|cols):./),e(ke,"propName","columns"),e(ke,"unit","");var er=class extends t{};e(er,"id","WhiteSpace"),e(er,"propName","white-space"),e(er,"unit","");var tr=class extends t{};e(tr,"id","TextOrientation"),e(tr,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(tr,"propName","text-orientation");var rr=class extends t{};e(rr,"id","WritingMode"),e(rr,"matches",/^writing:./),e(rr,"propName","writing-mode");var Si=class extends t{};e(Si,"id","Contain"),e(Si,"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 ir=class extends t{};e(ir,"id","TextRendering"),e(ir,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(ir,"propName","text-rendering");var bi=class extends t{};e(bi,"id","Direction"),e(bi,"propName","direction");var or=class extends t{};e(or,"id","TextDecorationLine"),e(or,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(or,"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 sr=class extends t{};e(sr,"id","ListStyleImage"),e(sr,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(sr,"propName","list-style-image");var ar=class extends t{};e(ar,"id","ShapeOutside"),e(ar,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(ar,"propName","shape-outside");var nr=class extends t{};e(nr,"id","ShapeMargin"),e(nr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(nr,"propName","shape-margin");var lr=class extends t{};e(lr,"id","ShapeImageThreshold"),e(lr,"propName","shape-image-threshold"),e(lr,"unit","");var cr=class extends t{};e(cr,"id","ClipPath"),e(cr,"matches",/^clip:./),e(cr,"propName","clip-path");var yi=class extends t{order=-1};e(yi,"id","Grid"),e(yi,"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 Ci=class extends t{};e(Ci,"id","Quotes"),e(Ci,"propName","quotes");var Ri=class extends t{order=-1};e(Ri,"id","GridTemplate"),e(Ri,"propName","grid-template");var dr=class extends t{};e(dr,"id","GridRowStart"),e(dr,"propName","grid-row-start"),e(dr,"unit","");var Mi=class extends t{};e(Mi,"id","GridTemplateAreas"),e(Mi,"propName","grid-template-areas");var mr=class extends t{};e(mr,"id","GridTemplateColumns"),e(mr,"matches",/^grid-template-cols:./),e(mr,"propName","grid-template-columns");var Ni=class extends t{};e(Ni,"id","GridTemplateRows"),e(Ni,"propName","grid-template-rows");var fr=class extends t{order=-1};e(fr,"id","GridArea"),e(fr,"propName","grid-area"),e(fr,"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 pr=class extends t{};e(pr,"id","GridRowEnd"),e(pr,"propName","grid-row-end"),e(pr,"unit","");var ki=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(ki,"id","MaskImage"),e(ki,"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 Ti=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(Ti,"id","TextStroke"),e(Ti,"matches",/^text-stroke:./);var wi=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(wi,"id","TextStrokeWidth"),e(wi,"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 Oi=class extends t{};e(Oi,"id","StrokeDasharray"),e(Oi,"propName","stroke-dasharray");var Ai=class extends t{};e(Ai,"id","StrokeDashoffset"),e(Ai,"propName","stroke-dash-offset");var ur=class extends t{};e(ur,"id","X"),e(ur,"propName","x"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Y"),e(hr,"propName","y"),e(hr,"unit","");var gr=class extends t{};e(gr,"id","Cx"),e(gr,"propName","cx"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","Cy"),e(xr,"propName","cy"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","Rx"),e(vr,"propName","rx"),e(vr,"unit","");var Sr=class extends t{};e(Sr,"id","Ry"),e(Sr,"propName","ry"),e(Sr,"unit","");var Ii=class extends t{};e(Ii,"id","BorderImageOutset"),e(Ii,"propName","border-image-outset");var br=class extends t{};e(br,"id","BorderImageRepeat"),e(br,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(br,"propName","border-image-repeat");var yr=class extends t{};e(yr,"id","BorderImageSlice"),e(yr,"propName","border-image-slice"),e(yr,"unit","");var Cr=class extends t{};e(Cr,"id","BorderImageSource"),e(Cr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(Cr,"propName","border-image-source");var Rr=class extends t{};e(Rr,"id","BorderImageWidth"),e(Rr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(Rr,"propName","border-image-width");var Mr=class extends t{};e(Mr,"id","BorderImage"),e(Mr,"propName","border-image"),e(Mr,"unit","");var os=/\{(.*)\}/,Nr=class extends t{getThemeProps(r,o){let i={},n=(f,g)=>{let x=g.indexOf(":");if(x!==-1){f in i||(i[f]={});let s=i[f],l=g.slice(0,x);l in s||(s[l]=g.slice(x+1))}},a=f=>{let g=(x,s)=>{let l=s.slice(CSS.escape(f.className).length).match(os)[1].split(";");for(let S of l)n(x,S)};if(this.themeName){let x=f.natives.find(s=>s.themeName===this.themeName)??f.natives.find(s=>!s.themeName);x&&g(this.themeName,x.text)}else for(let x of f.natives)g(x.themeName,x.text)},m=[],p="",h=()=>{p&&(m.push(p),p="")},c=1;(function f(g){for(;c<r.value.length;c++){let x=r.value[c];if(!g){if(x===";"){h();continue}if(x==="}")break}if(p+=x,g===x){if(g==="'"){let s=0;for(let l=p.length-2;p[l]==="\\";l--)s++;if(s%2)continue}break}else x in Or&&g!=="'"&&(c++,f(Or[x]))}})(void 0),h();for(let f of m){let g=o.findAndNew(f);if(Array.isArray(g))for(let x of g)a(x);else g?a(g):n(this.themeName??"",f)}return i}};e(Nr,"id","Group"),e(Nr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Nr,"unit","");var kr=class extends t{};e(kr,"id","CounterIncrement"),e(kr,"propName","counter-increment"),e(kr,"unit","");var Tr=class extends t{};e(Tr,"id","CounterReset"),e(Tr,"propName","counter-reset"),e(Tr,"unit","");var ss=[Nr,kt,We,X,Ee,_e,J,He,Oe,Q,Ar,ai,si,ei,It,At,wt,Ot,Bt,it,Pe,Le,Ge,ze,Si,ci,kr,Tr,Z,K,Ve,$e,Ue,ye,$t,Ce,or,ee,vi,_t,tr,Qe,ir,li,Ye,ke,er,Kt,qe,tt,rt,ot,st,Ir,Br,Fr,jr,Dr,Er,se,zr,_r,Hr,Vr,$r,Ur,Rt,Nt,Qr,Yr,Ct,qr,Ie,wi,Be,Ti,he,fi,Ze,Xe,te,re,Ke,et,oe,ie,Je,ae,at,Te,nt,ne,lt,ct,dt,le,de,Wr,Pr,Lr,qt,mi,Ii,br,yr,Cr,Rr,Mr,mt,ft,Gr,pt,U,ut,me,ht,gt,fe,pe,xt,vt,yt,ue,Oi,Ai,bt,St,ur,hr,gr,xr,vr,Sr,we,Ae,Se,ge,dr,pr,be,Mt,Wt,Pt,ti,Mi,mr,Ni,Ri,fr,yi,Xr,ve,Kr,Jr,Zr,Tt,xe,Ft,jt,Dt,Et,Lt,Gt,zt,ri,ii,oi,Ht,Vt,sr,ni,Re,di,Ut,Qt,Yt,Me,pi,Ne,ui,hi,gi,Xt,Zt,Jt,xi,rr,bi,ar,nr,lr,cr,Ci,ki],vo=ss;var as={colors:ao,breakpoints:wr,semantics:co,values:po,selectors:lo,themes:mo,scheme:fo,Rules:vo,rootSize:no},Ki=as;function Fo(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function eo(r){return Object.prototype.toString.call(r).slice(8,-1)}function Bi(r){return eo(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function So(r){return eo(r)==="Symbol"}function jo(r,o,i,n){let a={}.propertyIsEnumerable.call(n,o)?"enumerable":"nonenumerable";a==="enumerable"&&(r[o]=i),a==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function Do(r,o,i){if(!Bi(o))return o;let n={};if(Bi(r)){let h=Object.getOwnPropertyNames(r),c=Object.getOwnPropertySymbols(r);n=[...h,...c].reduce((f,g)=>{let x=r[g];return(!So(g)&&!Object.getOwnPropertyNames(o).includes(g)||So(g)&&!Object.getOwnPropertySymbols(o).includes(g))&&jo(f,g,x,r),f},{})}let a=Object.getOwnPropertyNames(o),m=Object.getOwnPropertySymbols(o);return[...a,...m].reduce((h,c)=>{let f=o[c],g=Bi(r)?r[c]:void 0;g!==void 0&&Bi(f)&&(f=Do(g,f,i));let x=i?i(g,f,c):f;return jo(h,c,x,o),h},n)}function Wi(r,...o){return o.filter(i=>Bi(i)).reduce((i,n)=>Do(i,n,Fo),r)}var ns=[",",".","#","[","!","*",">","+","~",":","@"],ls=/^::-[a-z]+-/m,to,Li=typeof window<"u";Li&&(to=document.createElement("style"),to.title="master");var G="max-width",L="min-width",cs="attributes",ds=Li?window.MutationObserver:Object,Fi,Fe,Pi=class extends ds{constructor(i){super(n=>{let a={},m=[],p=[],h=[],c=(s,l)=>{l?s.classList.forEach(g):s.classList.forEach(f);let S=s.children;for(let d=0;d<S.length;d++){let u=S[d];u.classList&&(p.push(u),c(u,l))}},f=s=>{s in a?a[s]++:a[s]=1},g=s=>{s in a?a[s]--:a[s]=-1},x=(s,l)=>{for(let S=0;S<s.length;S++){let d=s[S];d.classList&&!p.includes(d)&&!h.includes(d)&&(d.isConnected!==l?(p.push(d),c(d,l)):h.push(d))}};for(let s=0;s<n.length;s++){let l=n[s],{addedNodes:S,removedNodes:d,type:u,target:v,oldValue:M}=l;if(u===cs){if(v.className===M||m.find(k=>k.target===v))continue;m.push(l)}else x(S,!1),x(d,!0)}if(!(!m.length&&!Object.keys(a).length)){for(let{oldValue:s,target:l}of m){let S=p.includes(l),d=l.classList,u=s?s.split(" "):[];if(S){if(l.isConnected)continue;for(let v of u)d.contains(v)||g(v)}else if(l.isConnected){d.forEach(v=>{u.includes(v)||f(v)});for(let v of u)d.contains(v)||g(v)}else for(let v of u)g(v)}for(let s in a){let l=a[s],S=(this.countOfClass[s]||0)+l;S===0?(delete this.countOfClass[s],this.delete(s)):(s in this.countOfClass||this.findAndInsert(s),this.countOfClass[s]=S)}}});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,"values");e(this,"globalValues");e(this,"schemeMQL");oo(this,Fi,void 0);oo(this,Fe,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Wi({observe:!0},i),this.options.config&&!this.options.override?this.config=Wi(Ki,this.options.config):this.config=Ki,this.cache(),Li&&this.options.observe&&this.observe(document),Pi.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,Fi)){so(this,Fi,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,Fi)}set theme(i){i!==De(this,Fe)&&(De(this,Fe)&&this.host.classList.remove(De(this,Fe)),so(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={},this.values={},this.globalValues={};let{semantics:i,classes:n,selectors:a,themes:m,colors:p,values:h}=this.config;function c(s){return s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let s in i)this.semantics.push([new RegExp("^"+c(s)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),s]);if(a)for(let[s,l]of Object.entries(a)){let S=new RegExp(c(s)+"(?![a-z-])");for(let d of Array.isArray(l)?l:[l]){let u=d.match(ls)?.[0]??"",v=this.selectors[u];v||(v=this.selectors[u]=[]);let M=v.find(([k])=>k===S);M||(M=[S,[]],v.push(M)),M[1].push(d)}}if(h)for(let[s,l]of Object.entries(h))(typeof l=="object"?this.values:this.globalValues)[s]=l;let f=[...n?Object.keys(n):[],...m&&!Array.isArray(m)?Object.entries(m).flatMap(([s,{classes:l}])=>l?Object.keys(l):[]):[]],g=s=>{if(s in this.classes)return;let l=this.classes[s]=[],S=(d,u)=>{if(!u)return;let v=Array.isArray(u)?u:u.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let M of v){let k=T=>{T in this.relationThemesMap?d in this.relationThemesMap[T]?this.relationThemesMap[T][d].push(s):this.relationThemesMap[T][d]=[s]:this.relationThemesMap[T]={[d]:[s]},l.includes(T)||l.push(T)};if(f.includes(M)){g(M);for(let T of this.classes[M])k(T)}else k(M)}};if(S("",n?.[s]),m&&!Array.isArray(m))for(let[d,{classes:u}]of Object.entries(m))S(d,u?.[s])};for(let s of f)g(s);for(let s in this.relationThemesMap){let l=this.relations[s]=[];for(let S of Object.values(this.relationThemesMap[s]))for(let d of S)l.includes(d)||l.push(d)}let x=(s,l)=>{if(!!l)for(let S in l){let d=l[S];if(typeof d=="string"&&(d={"":d}),S in this.colorsThemesMap){let u=this.colorsThemesMap[S];for(let v in d){let M=d[v];v in u?u[v][s]=M:u[v]={[s]:M}}}else this.colorNames.push(S),this.colorsThemesMap[S]=Object.entries(d).reduce((u,[v,M])=>(u[v]={[s]:M},u),{})}};if(x("",p),m)if(Array.isArray(m))this.themeNames.push(...m);else for(let s in m){let l=m[s];x(s,l.colors),this.themeNames.push(s)}for(let[s,l]of Object.entries(this.colorsThemesMap))for(let[S,d]of Object.entries(l))for(let[u,v]of Object.entries(d))if(!v.startsWith("#")){let[M,k]=v.split("-"),T=this.colorsThemesMap[M]?.[k??""],C="";T&&(C=(u?T[u]:void 0)??T[""],C&&(d[u]=C)),C||(console.warn(`\`${v}\` doesn't exist in the extended config \`.colors\``),Object.keys(d).length>1?delete d[u]:Object.keys(l).length>1?delete l[S]:(delete this.colorsThemesMap[s],this.colorNames.splice(this.colorNames.indexOf(s),1)))}}observe(i,n={subtree:!0,childList:!0}){if(Li&&i){this.root=i;let a=i===document;a&&(Pi.root=this),this.host=a?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let m=a?document.head:i,p=a?document.styleSheets:i.styleSheets;for(let h of p){let{title:c,href:f,ownerNode:g}=h;(c==="master"||f&&/master(?:\..+)?\.css/.test(f))&&(this.style=g)}if(this.style)for(let h=0;h<this.style.sheet.cssRules.length;h++){let c=g=>{if(g.selectorText){let s=g.selectorText.split(", ")[0].split(" ");for(let l=0;l<s.length;l++){let S=s[l];if(S[0]==="."){let d=S.slice(1),u="";for(let v=0;v<d.length;v++){let M=d[v],k=d[v+1];if(M==="\\"){if(v++,k!=="\\"){u+=k;continue}}else if(ns.includes(M))break;u+=M}if(!(u in this.ruleOfClass)&&!(u in this.classes)){let v=this.findAndNew(u);if(v)return v}}}}else if(g.cssRules)for(let x=0;x<g.cssRules.length;x++){let s=c(g.cssRules[x]);if(s)return s}},f=c(this.style.sheet.cssRules[h]);if(f){this.rules.push(f),this.ruleOfClass[f.className]=f;for(let g=0;g<f.natives.length;g++)f.natives[g].cssRule=this.style.sheet.cssRules[h+g];h+=f.natives.length-1}}else this.style=to.cloneNode(),m.prepend(this.style);n.subtree&&this.host.querySelectorAll("[class]").forEach(h=>{h.classList.forEach(c=>{c in this.countOfClass?this.countOfClass[c]++:(this.countOfClass[c]=1,this.findAndInsert(c))})}),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=a=>{if(a in this.ruleOfClass)return this.ruleOfClass[a];for(let m of this.config.Rules){let p=m.match(a,this.colorNames);if(p)return new m(a,p,this)}for(let m of this.semantics)if(a.match(m[0]))return new t(a,{origin:"semantics",value:m[1]},this)};return i in this.classes?this.classes[i].map(n).filter(a=>a):n(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let n=to.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let a in this.countOfClass)this.findAndInsert(a)}destroy(){let i=Pi.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 a,m=this.rules.length-1,{media:p,order:h,prioritySelectorIndex:c,hasWhere:f,className:g}=i,x=(s,l,S,d)=>{let u=0,v;l&&(u=s.findIndex(l)),S&&(v=s.findIndex(S)),u===-1&&(u=s.length),(v===void 0||v===-1)&&(v=s.length);let M=s.slice(u,v);for(let k=0;k<M.length;k++){let T=M[k];if(!(T.prioritySelectorIndex===-1||d&&d(T))&&(T.prioritySelectorIndex<c||T.prioritySelectorIndex===c&&(f&&!T.hasWhere||T.order>=h)))return u+k}return u+M.length};if(p){let s=this.rules.findIndex(l=>l.media);if(s!==-1){let l=p.features[G],S=p.features[L];if(l&&S){let d=l.value-S.value;for(let u=m;u>=s;u--){a=u;let v=this.rules[u],M=v.media,k=M.features[G],T=M.features[L];if(!k||!T){a++;break}let C=k.value-T.value;if(C===d){if(f!==v.hasWhere)continue;if(c!==-1){let j=[this.rules[u]];for(let B=u-1;B>=s;B--){let H=this.rules[B];if(H.hasWhere!==f)break;let V=H.media,$=V.features[G],je=V.features[L];if(!$||!je||$.value-je.value!==C)break;j.unshift(this.rules[B])}a=x(this.rules,B=>B.media&&B.prioritySelectorIndex!==-1&&B.media.features[L]&&B.media.features[G])}break}else if(C>d)break}}else if(S)for(let d=s;d<=m;d++){a=d;let u=this.rules[d],v=u.media,M=v.features[G],k=v.features[L];if(M){if(k)break;continue}let T=k?.value;if(T===S.value){if(!f&&u.hasWhere){a++;continue}if(c!==-1)a=x(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=d;C<=m;C++){let j=this.rules[C],B=j.media,H=B.features[L];if(!B.features[G]){if(j.hasWhere!==f||H.value!==T||j.order>=h)break;a=C+1}}break}else{if(T>S.value)break;a++}}else if(l)for(let d=m;d>=s;d--){a=d;let u=this.rules[d],v=u.media,M=v.features[G];if(v.features[L])continue;let T=M?.value;if(!T||T>l.value){a++;break}else if(T===l.value){if(f&&!u.hasWhere)continue;if(c!==-1)a=x(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[d]];for(let j=d-1;j>=s;j--){let B=this.rules[j],H=B.media,V=H.features[L],$=H.features[G];if(!V&&(!$||$.value!==T||B.hasWhere!==f))break;C.unshift(B)}for(let j=0;j<C.length;j++){let B=C[j];if(!B.media.features[L]){if(B.order>=h)break;a=d-C.length+2+j}}}break}}}if(a===void 0)if(s===-1)a=m+1;else if(c!==-1)a=s+x(this.rules.slice(s),void 0,l=>l.media.features[G]||l.media.features[L]);else if(f){let l=s;for(;l<this.rules.length;l++){let S=this.rules[l];if(S.prioritySelectorIndex!==-1||!S.hasWhere||S.order>=h){a=l;break}}a===void 0&&(a=l)}else for(let l=s;l<=m;l++){a=l;let S=this.rules[l],d=S.media;if(S.prioritySelectorIndex!==-1||d.features[G]||d.features[L])break;if(S.hasWhere)a++;else if(S.order>=h)break}}else if(c===-1)if(f)a=this.rules.findIndex(s=>!s.hasWhere||s.media||s.prioritySelectorIndex!==-1||s.order>=h),a===-1&&(a=m+1);else{let s=0;for(;s<this.rules.length;s++){let l=this.rules[s];if(l.media||!l.hasWhere&&(l.order>=h||l.prioritySelectorIndex!==-1)){a=s;break}}a===void 0&&(a=s)}else a=x(this.rules,void 0,s=>s.media);if(this.rules.splice(a,0,i),this.ruleOfClass[g]=i,this.style){let s=this.style.sheet,l=0,S=d=>{let u=this.rules[d];if(u){if(!u.natives.length)return S(d-1);let v=u.natives[u.natives.length-1].cssRule;for(let M=0;M<s.cssRules.length;M++)if(s.cssRules[M]===v){l=M+1;break}}};S(a-1);for(let d=0;d<i.natives.length;)try{let u=i.natives[d];s.insertRule(u.text,l),u.cssRule=s.cssRules[l++],d++}catch(u){console.error(u),i.natives.splice(d,1)}}}delete(i){let n=this.style.sheet,a=m=>{let p=this.ruleOfClass[m];if(!(!p||m in this.relations&&this.relations[m].some(h=>h in this.countOfClass))){if(p.natives.length){let h=p.natives[0];for(let c=0;c<n.cssRules.length;c++)if(n.cssRules[c]===h.cssRule){for(let g=0;g<p.natives.length;g++)n.deleteRule(c);this.rules.splice(this.rules.indexOf(p),1);break}}delete this.ruleOfClass[m]}};if(i in this.classes){for(let m of this.classes[i])m in this.countOfClass||a(m);delete this.ruleOfClass[i]}else a(i)}findAndInsert(i){let n=this.findAndNew(i);if(Array.isArray(n))for(let a of n)this.insert(a);else n&&this.insert(n)}get text(){return this.rules.map(i=>i.natives.map(n=>n.text).join("")).join("")}},_=Pi;Fi=new WeakMap,Fe=new WeakMap,e(_,"instances",[]),e(_,"root");Li&&(window.MasterCSS=_);var Gi=typeof global<"u"?global:window;if(!Gi.CSS&&!Gi.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,a=-1,m="",p,h=i.charCodeAt(0);if(n==1&&h==45)return"\\"+i;for(;++a<n;){if(p=i.charCodeAt(a),p==0){m+="\uFFFD";continue}if(p>=1&&p<=31||p==127||a==0&&p>=48&&p<=57||a==1&&p>=48&&p<=57&&h==45){m+="\\"+p.toString(16)+" ";continue}if(p>=128||p==45||p==95||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122){m+=i.charAt(a);continue}m+="\\"+i.charAt(a)}return m};Gi.CSS||(Gi.CSS={}),Gi.CSS.escape=r}function Eo(r,o=new _({observe:!1})){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,a)=>n+a.text,"")).join("")}}function ro(r,o=new _({observe:!1})){if(!r)return;let i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(r);){let a=n[1].replace(/\n/g,"").split(" ").filter(m=>m);for(let m of a)m in o.countOfClass||(o.findAndInsert(m),o.countOfClass[m]=1)}return o.rules.map(a=>a.natives.reduce((m,p)=>m+p.text,"")).join("")}function Wo(r,o=new _({observe:!1})){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${ro(r,o)}</style>`)}var wR=typeof document<"u"&&document;export{vo as DefaultRules,t as MasterCSSRule,_ as default,wr as defaultBreakpoints,ao as defaultColors,Ki as defaultConfig,no as defaultRootSize,fo as defaultScheme,lo as defaultSelectors,co as defaultSemantics,mo as defaultThemes,po as defaultValues,Wi as extend,D as fillColorScale,Eo as render,ro as renderFromHTML,Wo as renderIntoHTML,wR as root};
2
2
  //# sourceMappingURL=index.mjs.map