@master/css-runtime 2.0.0-rc.67 → 2.0.0-rc.68
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/global.min.js +1 -1
- package/package.json +1 -1
package/dist/global.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){var e,t,i,r,a,s,n,l,o,u,c,h,d,f,p,m,y,g,b,v,k,N,S,E,R,x,_,w,A,$,O,L,T,C,V,I,U,M,K,G,j,B,X,D,z,P,Y,F,q,W,H,Z,Q,J,ee,et,ei,er,ea,es,en,el,eo,eu,ec,eh,ed,ef,ep,em,ey,eg,eb,ev,ek,eN,eS,eE,eR,ex,e_,ew,eA,e$,eO,eL,eT,eC,eV,eI={},eU={};function eM(){return t?e:(t=1,e={all:"media(all)",print:"media(print)",screen:"media(screen)",speech:"media(speech)",landscape:"media(orientation:landscape)",portrait:"media(orientation:portrait)",motion:"media(prefers-reduced-motion:no-preference)","reduce-motion":"media(prefers-reduced-motion:reduce)",base:"layer(base)",preset:"layer(preset)",start:"starting-style",w:"width",h:"height"})}function eK(){return r?i:(r=1,i={":first":":first-child",":last":":last-child",":nth-last":":nth-last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth":":nth-child",":only":":only-child",":rtl":":dir(rtl)",":ltr":":dir(ltr)","::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","::slider-runnable-track":"::-webkit-slider-runnable-track","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress"})}function eG(){return s?a:(s=1,a={container:{"container-type":"inline-size"},square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%","aspect-ratio":"1/1"},hidden:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},top:{top:0},left:{left:0},right:{right:0},bottom:{bottom:0},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":{"word-break":"break-word"},"wrap-break-word":{"overflow-wrap":"break-word"},"wrap-anywhere":{"overflow-wrap":"anywhere"},"wrap-normal":{"overflow-wrap":"normal"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}})}function ej(){return l?n:(l=1,n={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}})}function eB(){if(h)return c;function e(e){let t="undefined"!=typeof Buffer?Buffer:null;return!!t&&e instanceof t||e instanceof Date||e instanceof RegExp}function t(e){if(("undefined"!=typeof Buffer?Buffer:null)&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw Error("Unexpected situation")}function i(e,t){return"__proto__"===t?void 0:e[t]}return h=1,c=function r(...a){let s,n,l={};return a.forEach(function(a){"object"!=typeof a||null===a||Array.isArray(a)||Object.keys(a).forEach(function(o){if(n=i(l,o),(s=i(a,o))!==l){if("object"!=typeof s||null===s){l[o]=s;return}if(Array.isArray(s)){l[o]=function i(a){let s=[];return a.forEach(function(a,n){"object"==typeof a&&null!==a?Array.isArray(a)?s[n]=i(a):e(a)?s[n]=t(a):s[n]=r({},a):s[n]=a}),s}(s);return}if(e(s)){l[o]=t(s);return}else if("object"!=typeof n||null===n||Array.isArray(n)){l[o]=r({},s);return}else{l[o]=r(n,s);return}}})}),l}}function eX(){if(f)return d;f=1;var e=u?o:(u=1,o={gray:{5:"#f6f5f7",10:"#efeef0",20:"#cdccce",30:"#a2a1a3",40:"#89888a",50:"#737274",60:"#585759",70:"#444345",80:"#323133",90:"#29282a",95:"#1d1c1d"},slate:{5:"#f8f9fb",10:"#eff2f9",20:"#c8d0e3",30:"#9fabc6",40:"#7c8cab",50:"#5f7395",60:"#455572",70:"#37455d",80:"#283348",90:"#1d273a",95:"#182030"},brown:{5:"#fff6f0",10:"#feefe3",20:"#f3bea4",30:"#e7976e",40:"#da7c4d",50:"#cc6633",60:"#b65325",70:"#9d4119",80:"#833111",90:"#692007",95:"#431304"},orange:{5:"#fff5ea",10:"#fff5df",20:"#ffcb9e",30:"#ff9b47",40:"#ff8528",50:"#ff6c0a",60:"#e05200",70:"#bc3e00",80:"#992d00",90:"#701d00",95:"#471100"},amber:{5:"#fff9eb",10:"#fff4db",20:"#ffe099",30:"#ffc133",40:"#ffb10a",50:"#f99e00",60:"#e57e00",70:"#c15d00",80:"#a34900",90:"#753200",95:"#4c1f00"},yellow:{5:"#fffae5",10:"#fffed1",20:"#ffe993",30:"#ffd233",40:"#ffc300",50:"#efaf00",60:"#d69200",70:"#b77400",80:"#9e5c00",90:"#753c00",95:"#4c2600"},lime:{5:"#f5ffe5",10:"#f5ffd6",20:"#d1fb8d",30:"#acec46",40:"#91d91a",50:"#77c012",60:"#61a60c",70:"#4c8d07",80:"#367604",90:"#256000",95:"#1b3d00"},green:{5:"#e7fdea",10:"#dbfee4",20:"#a5f7b8",30:"#35ed66",40:"#00d655",50:"#00c147",60:"#00ad3f",70:"#008e34",80:"#007a2c",90:"#006023",95:"#003d16"},beryl:{5:"#e0fef2",10:"#d2fff7",20:"#6cffd4",30:"#0fefa4",40:"#04e09e",50:"#04cb8f",60:"#00b277",70:"#009360",80:"#007f50",90:"#00663e",95:"#003d24"},teal:{5:"#dbfefd",10:"#cfffff",20:"#7ffff6",30:"#00f4e4",40:"#00e4d4",50:"#00ccc8",60:"#00aeb7",70:"#0092a3",80:"#00798e",90:"#005d75",95:"#003747"},cyan:{5:"#e0ffff",10:"#d1ffff",20:"#7ff6ff",30:"#1ee1ff",40:"#00ccf9",50:"#00b3ea",60:"#0099d6",70:"#007dbc",80:"#0067a8",90:"#005089",95:"#003156"},sky:{5:"#e5f5ff",10:"#d9f8ff",20:"#a3deff",30:"#6bc6ff",40:"#34b2fd",50:"#059fff",60:"#008df9",70:"#0073e0",80:"#005cc6",90:"#0041a3",95:"#002566"},blue:{5:"#e5f3fe",10:"#dbf2fe",20:"#add7ff",30:"#70b0ff",40:"#4c93fd",50:"#3a7cff",60:"#2563fd",70:"#1b53ec",80:"#1947d1",90:"#1735a2",95:"#102069"},indigo:{5:"#f0f1fe",10:"#e9ecfe",20:"#c8cdfe",30:"#939eff",40:"#7e81fe",50:"#7068ff",60:"#5b4cfd",70:"#4e39ed",80:"#4732d2",90:"#3623a3",95:"#26176c"},violet:{5:"#f2efff",10:"#efe8ff",20:"#d7c5ff",30:"#b198fe",40:"#9a70ff",50:"#8e56fe",60:"#812fff",70:"#7407f2",80:"#6405d1",90:"#4f05a3",95:"#35036e"},purple:{5:"#f6f0ff",10:"#f6e8fe",20:"#e2bffe",30:"#c492fd",40:"#b266ff",50:"#a849fe",60:"#9514ff",70:"#8200e5",80:"#7100c1",90:"#58008e",95:"#3e0060"},fuchsia:{5:"#faf0ff",10:"#fde8fe",20:"#f0baff",30:"#dd89fe",40:"#d760fe",50:"#cf33ff",60:"#b700e5",70:"#a200c6",80:"#8700a3",90:"#660175",95:"#480051"},pink:{5:"#fef1f9",10:"#fee9f8",20:"#ffb8df",30:"#f986c1",40:"#fa65b2",50:"#f747a2",60:"#ef2188",70:"#d61673",80:"#b80c5c",90:"#8f0543",95:"#64032f"},crimson:{5:"#ffeff2",10:"#ffe8ec",20:"#ffbac7",30:"#ff849d",40:"#ff6684",50:"#fc4065",60:"#ed2a51",70:"#d7173e",80:"#bb1536",90:"#8f132c",95:"#620e1f"},red:{5:"#ffefef",10:"#fee8e8",20:"#ffbcbc",30:"#ff8787",40:"#fd5f5f",50:"#f73f3f",60:"#e52e2e",70:"#d01b1b",80:"#b81919",90:"#921515",95:"#650f0f"}});return d=eB()(e,{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","font-family":{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"]},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},current:"currentColor",frame:{neutral:{"@light":"$(slate-60)","@dark":"$(gray-30)"},light:{"@light":"$(slate-60)/.2","@dark":"$(gray-30)/.2"},lighter:{"@light":"$(slate-60)/.16","@dark":"$(gray-30)/.16"},lightest:{"@light":"$(slate-60)/.12","@dark":"$(gray-30)/.12"}},white:"#ffffff",black:"#000000",base:{"@light":"$(white)","@dark":"$(gray-95)"},canvas:{"@light":"$(slate-5)","@dark":"$(gray-90)"},surface:{"@light":"$(white)","@dark":"$(gray-80)"},invert:{"@light":"$(black)","@dark":"$(white)"},gray:{"@light":"$(gray-30)","@dark":"$(gray-40)",active:{"@light":"$(gray-40)","@dark":"$(gray-30)"},text:{"@light":"$(gray-90)","@dark":"$(gray-95)"}},slate:{"@light":"$(slate-30)","@dark":"$(slate-40)",active:{"@light":"$(slate-40)","@dark":"$(slate-30)"},text:{"@light":"$(slate-90)","@dark":"$(slate-95)"}},brown:{"@light":"$(brown-40)","@dark":"$(brown-50)",active:{"@light":"$(brown-50)","@dark":"$(brown-40)"},text:{"@light":"$(brown-90)","@dark":"$(brown-95)"}},orange:{"@light":"$(orange-40)","@dark":"$(orange-50)",active:{"@light":"$(orange-50)","@dark":"$(orange-40)"},text:{"@light":"$(orange-90)","@dark":"$(orange-95)"}},amber:{"@light":"$(amber-40)","@dark":"$(amber-50)",active:{"@light":"$(amber-50)","@dark":"$(amber-30)"},text:{"@light":"$(amber-90)","@dark":"$(amber-95)"}},yellow:{"@light":"$(yellow-40)","@dark":"$(yellow-50)",active:{"@light":"$(yellow-50)","@dark":"$(yellow-30)"},text:{"@light":"$(yellow-90)","@dark":"$(yellow-95)"}},lime:{"@light":"$(lime-40)","@dark":"$(lime-50)",active:{"@light":"$(lime-50)","@dark":"$(lime-30)"},text:{"@light":"$(lime-90)","@dark":"$(lime-95)"}},green:{"@light":"$(green-40)","@dark":"$(green-50)",active:{"@light":"$(green-50)","@dark":"$(green-30)"},text:{"@light":"$(green-90)","@dark":"$(green-95)"}},beryl:{"@light":"$(beryl-40)","@dark":"$(beryl-50)",active:{"@light":"$(beryl-50)","@dark":"$(beryl-30)"},text:{"@light":"$(beryl-90)","@dark":"$(beryl-95)"}},teal:{"@light":"$(teal-40)","@dark":"$(teal-50)",active:{"@light":"$(teal-50)","@dark":"$(teal-30)"},text:{"@light":"$(teal-90)","@dark":"$(teal-95)"}},cyan:{"@light":"$(cyan-40)","@dark":"$(cyan-50)",active:{"@light":"$(cyan-50)","@dark":"$(cyan-30)"},text:{"@light":"$(cyan-90)","@dark":"$(cyan-95)"}},sky:{"@light":"$(sky-60)","@dark":"$(sky-50)",active:{"@light":"$(sky-70)","@dark":"$(sky-40)"},text:"$(white)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-50)",active:{"@light":"$(blue-70)","@dark":"$(blue-40)"},text:"$(white)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-50)",active:{"@light":"$(indigo-70)","@dark":"$(indigo-40)"},text:"$(white)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-50)",active:{"@light":"$(violet-70)","@dark":"$(violet-40)"},text:"$(white)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-50)",active:{"@light":"$(purple-70)","@dark":"$(purple-40)"},text:"$(white)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-50)",active:{"@light":"$(fuchsia-70)","@dark":"$(fuchsia-40)"},text:"$(white)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-50)",active:{"@light":"$(pink-70)","@dark":"$(pink-40)"},text:"$(white)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-50)",active:{"@light":"$(crimson-70)","@dark":"$(crimson-40)"},text:"$(white)"},red:{"@light":"$(red-60)","@dark":"$(red-50)",active:{"@light":"$(red-70)","@dark":"$(red-40)"},text:"$(white)"},text:{invert:{"@light":"$(white)","@dark":"$(black)"},strong:{"@light":"$(slate-95)","@dark":"$(gray-10)"},neutral:{"@light":"$(slate-70)","@dark":"$(gray-30)"},lightest:{"@light":"$(slate-30)","@dark":"$(gray-60)"},lighter:{"@light":"$(slate-40)","@dark":"$(gray-50)"},light:{"@light":"$(slate-50)","@dark":"$(gray-40)"},gray:{"@light":"$(gray-60)","@dark":"$(gray-30)"},slate:{"@light":"$(slate-60)","@dark":"$(slate-30)"},brown:{"@light":"$(brown-60)","@dark":"$(brown-30)"},orange:{"@light":"$(orange-60)","@dark":"$(orange-30)"},amber:{"@light":"$(amber-60)","@dark":"$(amber-40)"},yellow:{"@light":"$(yellow-60)","@dark":"$(yellow-40)"},lime:{"@light":"$(lime-70)","@dark":"$(lime-40)"},green:{"@light":"$(green-70)","@dark":"$(green-40)"},beryl:{"@light":"$(beryl-70)","@dark":"$(beryl-40)"},teal:{"@light":"$(teal-70)","@dark":"$(teal-40)"},cyan:{"@light":"$(cyan-70)","@dark":"$(cyan-40)"},sky:{"@light":"$(sky-70)","@dark":"$(sky-30)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-30)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-30)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-30)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-30)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-30)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-30)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-30)"},red:{"@light":"$(red-60)","@dark":"$(red-30)"}}})}function eD(){return m?p:(m=1,p=function(e){let t;if("undefined"!=typeof CSS)return CSS.escape(e);if(0==arguments.length)throw TypeError("`CSS.escape` requires an argument.");let i=String(e),r=i.length,a=-1,s="",n=i.charCodeAt(0);if(1==r&&45==n)return"\\"+i;for(;++a<r;){if(0==(t=i.charCodeAt(a))){s+="�";continue}if(t>=1&&t<=31||127==t||0==a&&t>=48&&t<=57||1==a&&t>=48&&t<=57&&45==n){s+="\\"+t.toString(16)+" ";continue}if(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){s+=i.charAt(a);continue}s+="\\"+i.charAt(a)}return s})}function ez(){return g?y:(g=1,y={Utility:-4,NativeShorthand:-3,Shorthand:-2,Native:-1,Normal:0})}var eP={};function eY(){if(b)return eP;b=1;let e=new URL("https://rc.css.master.co");return eP.ANIMATION_SIGN="@",eP.AT_COMPARABLE_FEATURES=["width","height","resolution"],eP.AT_COMPARISON_OPERATORS=[">=","<=",">","<","="],eP.AT_IDENTIFIERS=["container","starting-style","supports","media","layer"],eP.AT_LOGICAL_OPERATORS={"&":"and","!":"not",not:"not",and:"and",or:"or",only:"only",",":"or"},eP.AT_SIGN="@",eP.BASE_UNIT_REGEX=/^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m,eP.BORDER_STYLE_VALUES=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],eP.CLASS_ATTRIBUTES=["class","className"],eP.CLASS_DECLARATIONS=["components"],eP.CLASS_FUNCTIONS=["clsx","cva","ctl","cv","class","classnames","classVariant","styled(?:\\s+)?(?:\\.\\w+)?","classList(?:\\s+)?\\.(?:add|remove|toggle|replace)"],eP.COLOR_VALUE_REGEX=/(?:#|(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla|light-dark)\(.*\)|(?:\$colors)(?![a-zA-Z0-9-]))/,eP.COMPARISION_OPERATORS=[">=","<=",">","<","="],eP.DELIMITER_SIGN="|",eP.IMAGE_VALUE_REGEX=/(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)/,eP.NUMBER_VALUE_REGEX=/(?:[\d.]|(?:max|min|calc|clamp)\([^|]*\))/,eP.OFFICIAL_URL=e,eP.QUERY_COMPARISON_OPERATORS=[">","<","="],eP.QUERY_LOGICAL_OPERATORS=["&"],eP.SELECTOR_COMBINATORS=["_",">","+","~"],eP.SELECTOR_SIGNS=[":","_",">","+","~"],eP.SEPARATOR_SIGN=",",eP.SEPARATOR_SIGNS=[",","|"],eP.TRANSITION_SIGN="~",eP.UNIT_REGEX=/^([+-.]?\d+(?:\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/,eP.VALUE_DELIMITERS={"(":")","'":"'",'"':'"',"{":"}"},eP.VALUE_UNITS=["%","cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","grad","rad","turn","s","ms","hz","khz","dpi","dpcm","dppx","x","fr","db","st"],eP.__UNSORTED__="__UNSORTED__",eP}function eF(){if(S)return N;S=1;var e=eD(),t=ez(),i=eY(),r=function(){if(k)return v;k=1;var e=eY();return v=function(t){if(t.length<2)return t;let i=!1,r=!1;for(let a of t)("string"===a.type&&e.BORDER_STYLE_VALUES.includes(a.value)||"variable"===a.type&&e.BORDER_STYLE_VALUES.includes(String(a.variable?.value)))&&(i=!0),"function"===a.type&&"var"===a.name&&(r=!0);return i||r||t.push({type:"separator",value:" ",token:"|"},{type:"string",value:"solid",token:"solid"}),t}}();return N={group:{matcher:/^(?:.+?[*_>~+])?\{.+?\}/,type:t.Shorthand,analyze(e){let t=0;for(;t<e.length&&("{"!==e[t]||"\\"===e[t-1]);t++);return[e.slice(t),e.slice(0,t)]},declare(t){let r={},a=e=>{let t=e.indexOf(":");-1!==t&&(r[e.slice(0,t)]=e.slice(t+1))},s=t=>{var i=t.text;let r=i.slice(e(t.name).length).match(/\{(.*)\}/)?.[1].split(";");if(r)for(let e of r)a(e);if(t.animationNames)for(let e of(this.animationNames||(this.animationNames=new Set),t.animationNames))this.animationNames.add(e);if(t.variableNames)if(this.variableNames)for(let e of t.variableNames)this.variableNames.add(e);else this.variableNames=new Set(t.variableNames)},n=[],l="",o=()=>{l&&(n.push(l.replace(/ /g,"|")),l="")},u=1;for(let e of(!function e(r){for(;u<t.length;u++){let a=t[u];if(!r){if(";"===a){o();continue}if("}"===a)break}if(l+=a,r===a){if("'"===r||'"'===r){let e=0;for(let t=l.length-2;"\\"===l[t];t--)e++;if(e%2)continue}break}a in i.VALUE_DELIMITERS&&"'"!==r&&'"'!==r&&(u++,e(i.VALUE_DELIMITERS[a]))}}(""),o(),n)){let t=this.css.generate(e,this.mode);if(t.length)for(let e of t)s(e);else a(e)}return r}},variable:{matcher:/^\$[\w-]+:/,type:t.Shorthand,declare(e){return{["--"+this.keyToken.slice(1,-1)]:e}}},"font-size":{ambiguousKeys:["font","f"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"font-weight":{ambiguousKeys:["font","f"],ambiguousValues:["bolder"],type:t.Native},"font-family":{ambiguousKeys:["font","f"],type:t.Native},"font-smoothing":{ambiguousKeys:["font","f"],ambiguousValues:["antialiased","subpixel-antialiased"],type:t.Native,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"};default:return{"font-smooth":e}}}},"font-style":{ambiguousKeys:["font","f"],ambiguousValues:["normal","italic","oblique"],type:t.Native,unit:"deg"},"font-variant-numeric":{ambiguousKeys:["font","f"],ambiguousValues:["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"],type:t.Native},"font-variant":{ambiguousKeys:["font","f"],type:t.NativeShorthand},font:{subkey:"f",type:t.NativeShorthand,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},"font-feature-settings":{key:"font-feature",type:t.Native},color:{key:"fg",type:t.Native,variables:["text"]},"margin-left":{key:"ml",type:t.Native,unit:"rem",variables:["spacing"]},"margin-right":{key:"mr",type:t.Native,unit:"rem",variables:["spacing"]},"margin-top":{key:"mt",type:t.Native,unit:"rem",variables:["spacing"]},"margin-bottom":{key:"mb",type:t.Native,unit:"rem",variables:["spacing"]},"margin-x":{key:"mx",subkey:"margin-x",unit:"rem",type:t.Shorthand,declare:e=>({"margin-left":e,"margin-right":e}),variables:["spacing"]},"margin-y":{key:"my",unit:"rem",type:t.Shorthand,declare:e=>({"margin-top":e,"margin-bottom":e}),variables:["spacing"]},margin:{key:"m",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"margin-inline-start":{key:"mis",type:t.Native,unit:"rem",variables:["spacing"]},"margin-inline-end":{key:"mie",type:t.Native,unit:"rem",variables:["spacing"]},"margin-inline":{key:"mi",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"padding-left":{key:"pl",type:t.Native,unit:"rem",variables:["spacing"]},"padding-right":{key:"pr",type:t.Native,unit:"rem",variables:["spacing"]},"padding-top":{key:"pt",type:t.Native,unit:"rem",variables:["spacing"]},"padding-bottom":{key:"pb",type:t.Native,unit:"rem",variables:["spacing"]},"padding-x":{key:"px",unit:"rem",type:t.Shorthand,declare:e=>({"padding-left":e,"padding-right":e}),variables:["spacing"]},"padding-y":{key:"py",unit:"rem",type:t.Shorthand,declare:e=>({"padding-top":e,"padding-bottom":e}),variables:["spacing"]},padding:{key:"p",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"padding-inline-start":{key:"pis",type:t.Native,unit:"rem",variables:["spacing"]},"padding-inline-end":{key:"pie",type:t.Native,unit:"rem",variables:["spacing"]},"padding-inline":{key:"pi",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"flex-basis":{ambiguousKeys:["flex"],unit:"rem",type:t.Native},"flex-wrap":{ambiguousKeys:["flex"],ambiguousValues:["wrap","nowrap","wrap-reverse"],type:t.Native},"flex-grow":{ambiguousKeys:["flex"],type:t.Native},"flex-shrink":{ambiguousKeys:["flex"],type:t.Native},"flex-direction":{ambiguousKeys:["flex"],ambiguousValues:["row","row-reverse","column","column-reverse"],type:t.Native},flex:{type:t.NativeShorthand},display:{key:"d",type:t.Native},width:{key:"w",unit:"rem",type:t.Native},height:{key:"h",unit:"rem",type:t.Native},"min-width":{key:"min-w",unit:"rem",type:t.Native},"min-height":{key:"min-h",unit:"rem",type:t.Native},size:{type:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{width:t[0].text,height:1===i?t[0].text:t[2].text}}},"min-size":{key:"min",type:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"min-width":t[0].text,"min-height":1===i?t[0].text:t[2].text}}},"max-size":{key:"max",type:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"max-width":t[0].text,"max-height":1===i?t[0].text:t[2].text}}},"box-sizing":{ambiguousKeys:["box"],type:t.Native},"box-decoration-break":{key:"box-decoration",type:t.Native,declare:e=>({"-webkit-box-decoration-break":e,"box-decoration-break":e})},container:{type:t.NativeShorthand},"container-name":{type:t.Native},"container-type":{type:t.Native,ambiguousKeys:["container"],ambiguousValues:["size","inline-size","scroll-state"]},contain:{type:t.Native},content:{type:t.Native},"counter-increment":{type:t.Native},"counter-reset":{type:t.Native},"letter-spacing":{key:"tracking",subkey:"ls",type:t.Native,unit:"em"},"line-height":{key:"leading",subkey:"line-h",type:t.Native},"object-fit":{ambiguousKeys:["object","obj"],ambiguousValues:["contain","cover","fill","scale-down"],type:t.Native},"object-position":{ambiguousKeys:["object","obj"],ambiguousValues:["top","bottom","right","left","center"],type:t.Native},"text-align":{ambiguousKeys:["text","t"],ambiguousValues:["justify","center","left","right","start","end"],type:t.Native},"text-decoration-color":{ambiguousKeys:["text-decoration"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["text"]},"text-decoration-style":{ambiguousKeys:["text-decoration"],ambiguousValues:["solid","double","dotted","dashed","wavy"],type:t.Native},"text-decoration-thickness":{ambiguousKeys:["text-decoration"],ambiguousValues:["from-font",i.NUMBER_VALUE_REGEX],type:t.Native,unit:"em"},"text-decoration-line":{ambiguousKeys:["text-decoration"],ambiguousValues:["underline","overline","line-through"],type:t.Native},"text-decoration":{ambiguousKeys:["text","t"],ambiguousValues:["underline","overline","line-through"],unit:"rem",type:t.NativeShorthand,variables:["text"],declare:e=>({"-webkit-text-decoration":e,"text-decoration":e})},"text-underline-offset":{ambiguousKeys:["text-underline"],unit:"rem",type:t.Native,variables:["spacing"]},"text-underline-position":{ambiguousKeys:["text-underline"],ambiguousValues:["front-font","under","left","right"],type:t.Native},"text-overflow":{ambiguousKeys:["text","t"],ambiguousValues:["ellipsis","clip"],type:t.Native},"text-orientation":{ambiguousKeys:["text","t"],ambiguousValues:["mixed","upright","sideways-right","sideways","use-glyph-orientation"],type:t.Native},"text-transform":{ambiguousKeys:["text","t"],ambiguousValues:["uppercase","lowercase","capitalize"],type:t.Native},"text-rendering":{ambiguousKeys:["text","t"],ambiguousValues:["optimizeSpeed","optimizeLegibility","geometricPrecision"],type:t.Native},"text-wrap":{ambiguousKeys:["text","t"],ambiguousValues:["wrap","nowrap","balance","pretty"],type:t.NativeShorthand},"text-indent":{unit:"rem",type:t.Native},"vertical-align":{key:"v",subkey:"vertical",type:t.Native},columns:{key:"cols",type:t.NativeShorthand},"overflow-wrap":{type:t.Native},"white-space":{type:t.Native},top:{type:t.Native,unit:"rem",variables:["spacing"]},bottom:{type:t.Native,unit:"rem",variables:["spacing"]},left:{type:t.Native,unit:"rem",variables:["spacing"]},right:{type:t.Native,unit:"rem",variables:["spacing"]},inset:{unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"max-height":{key:"max-h",unit:"rem",type:t.Native},"max-width":{key:"max-w",unit:"rem",type:t.Native},opacity:{type:t.Native},visibility:{type:t.Native},clear:{type:t.Native},float:{type:t.Native},isolation:{type:t.Native},"overflow-x":{type:t.Native},"overflow-y":{type:t.Native},overflow:{type:t.NativeShorthand},"overscroll-behavior-x":{type:t.Native},"overscroll-behavior-y":{type:t.Native},"overscroll-behavior":{type:t.NativeShorthand},"z-index":{key:"z",type:t.Native},position:{type:t.Native},cursor:{type:t.Native},"pointer-events":{type:t.Native},resize:{type:t.Native},"touch-action":{type:t.Native},"word-break":{type:t.Native},"word-spacing":{type:t.Native,unit:"em"},hyphens:{type:t.Native},"user-drag":{type:t.Native,declare:e=>({"-webkit-user-drag":e,"user-drag":e})},"user-select":{type:t.Native,declare:e=>({"-webkit-user-select":e,"user-select":e})},"text-shadow":{unit:"rem",type:t.Native},"text-size":{ambiguousKeys:["text","t"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",declare:e=>({"font-size":e,"line-height":`calc(${e} + 0.875em)`}),type:t.Shorthand},"text-fill-color":{ambiguousKeys:["text","t"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["text"],declare:e=>({"-webkit-text-fill-color":e})},"text-stroke-width":{ambiguousKeys:["text-stroke"],ambiguousValues:["thin","medium","thick",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native,declare:e=>({"-webkit-text-stroke-width":e})},"text-stroke-color":{ambiguousKeys:["text-stroke"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,declare:e=>({"-webkit-text-stroke-color":e})},"text-stroke":{unit:"rem",type:t.Native,declare:e=>({"-webkit-text-stroke":e})},"text-truncate":{subkey:"lines",declare:e=>({display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e,overflow:"hidden","overflow-wrap":"break-word","text-overflow":"ellipsis"}),type:t.Shorthand},"box-shadow":{key:"shadow",subkey:"s",unit:"rem",type:t.Native},"table-layout":{type:t.Native},"transform-box":{ambiguousKeys:["transform"],type:t.Native},"transform-style":{ambiguousKeys:["transform"],ambiguousValues:["flat","preserve-3d"],type:t.Native},"transform-origin":{ambiguousKeys:["transform"],ambiguousValues:["top","bottom","right","left","center",i.NUMBER_VALUE_REGEX],unit:"px",type:t.Native},transform:{matcher:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,type:t.Native,analyze:e=>[e.startsWith("transform")?e.slice(10):e],unit:"px",variables:["spacing"]},"transition-property":{key:"~property",type:t.Native},"transition-timing-function":{key:"~easing",type:t.Native},"transition-duration":{key:"~duration",type:t.Native,unit:"ms"},"transition-delay":{key:"~delay",type:t.Native,unit:"ms"},transition:{sign:"~",analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}},type:t.NativeShorthand},"animation-delay":{key:"@delay",type:t.Native,unit:"ms"},"animation-direction":{key:"@direction",type:t.Native},"animation-duration":{key:"@duration",type:t.Native,unit:"ms"},"animation-fill-mode":{key:"@fill",type:t.Native},"animation-iteration-count":{key:"@iteration",type:t.Native},"animation-name":{key:"@name",type:t.Native,includeAnimations:!0},"animation-play-state":{key:"@play",type:t.Native},"animation-timing-function":{key:"@easing",type:t.Native},animation:{sign:"@",type:t.NativeShorthand,includeAnimations:!0,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}}},"border-collapse":{ambiguousKeys:["b","border"],ambiguousValues:["collapse","separate"],type:t.Native},"border-spacing":{unit:"rem",type:t.Native,variables:["spacing"]},"border-top-color":{ambiguousKeys:["bt","border-top"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-bottom-color":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-left-color":{ambiguousKeys:["bl","border-left"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-right-color":{ambiguousKeys:["br","border-right"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-x-color":{ambiguousKeys:["bx","border-x"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Shorthand,variables:["frame"],declare:e=>({"border-left-color":e,"border-right-color":e})},"border-y-color":{ambiguousKeys:["by","border-y"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Shorthand,variables:["frame"],declare:e=>({"border-top-color":e,"border-bottom-color":e})},"border-color":{ambiguousKeys:["b","border"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.NativeShorthand,variables:["frame"]},"border-top-left-radius":{key:"rtl",unit:"rem",type:t.Native},"border-top-right-radius":{key:"rtr",unit:"rem",type:t.Native},"border-bottom-left-radius":{key:"rbl",unit:"rem",type:t.Native},"border-bottom-right-radius":{key:"rbr",unit:"rem",type:t.Native},"border-top-radius":{key:"rt",unit:"rem",type:t.Shorthand,declare:e=>({"border-top-left-radius":e,"border-top-right-radius":e})},"border-bottom-radius":{key:"rb",unit:"rem",type:t.Shorthand,declare:e=>({"border-bottom-left-radius":e,"border-bottom-right-radius":e})},"border-left-radius":{key:"rl",unit:"rem",type:t.Shorthand,declare:e=>({"border-top-left-radius":e,"border-bottom-left-radius":e})},"border-right-radius":{key:"rr",unit:"rem",type:t.Shorthand,declare:e=>({"border-top-right-radius":e,"border-bottom-right-radius":e})},"border-radius":{key:"r",unit:"rem",type:t.NativeShorthand},"border-top-style":{ambiguousKeys:["bt","border-top"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-bottom-style":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-left-style":{ambiguousKeys:["bl","border-left"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-right-style":{ambiguousKeys:["br","border-right"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-x-style":{ambiguousKeys:["bx","border-x"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Shorthand,declare:e=>({"border-left-style":e,"border-right-style":e})},"border-y-style":{ambiguousKeys:["by","border-y"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Shorthand,declare:e=>({"border-top-style":e,"border-bottom-style":e})},"border-style":{ambiguousKeys:["b","border"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.NativeShorthand},"border-top-width":{ambiguousKeys:["bt","border-top"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-bottom-width":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-left-width":{ambiguousKeys:["bl","border-left"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-right-width":{ambiguousKeys:["br","border-right"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-x-width":{ambiguousKeys:["bx","border-x"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Shorthand,declare:e=>({"border-left-width":e,"border-right-width":e})},"border-y-width":{ambiguousKeys:["by","border-y"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Shorthand,declare:e=>({"border-top-width":e,"border-bottom-width":e})},"border-width":{ambiguousKeys:["b","border"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.NativeShorthand},"border-image-repeat":{ambiguousKeys:["border-image"],ambiguousValues:["stretch","repeat","round","space"],type:t.Native},"border-image-slice":{ambiguousKeys:["border-image"],type:t.Native},"border-image-source":{ambiguousKeys:["border-image"],ambiguousValues:[i.IMAGE_VALUE_REGEX],type:t.Native},"border-image-width":{ambiguousKeys:["border-image"],ambiguousValues:["auto",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-image-outset":{ambiguousKeys:["border-image"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-image":{type:t.NativeShorthand},"border-top":{key:"bt",type:t.NativeShorthand,unit:"rem",transformValueComponents:r,variables:["frame"]},"border-bottom":{key:"bb",type:t.NativeShorthand,unit:"rem",transformValueComponents:r,variables:["frame"]},"border-left":{key:"bl",type:t.NativeShorthand,unit:"rem",transformValueComponents:r,variables:["frame"]},"border-right":{key:"br",type:t.NativeShorthand,unit:"rem",transformValueComponents:r,variables:["frame"]},"border-x":{key:"bx",unit:"rem",type:t.Shorthand,transformValueComponents:r,variables:["frame"],declare:e=>({"border-left":e,"border-right":e})},"border-y":{key:"by",unit:"rem",type:t.Shorthand,transformValueComponents:r,variables:["frame"],declare:e=>({"border-top":e,"border-bottom":e})},border:{key:"b",unit:"rem",type:t.NativeShorthand,transformValueComponents:r,variables:["frame"]},"background-attachment":{ambiguousKeys:["bg"],ambiguousValues:["fixed","local","scroll"],type:t.Native},"background-blend-mode":{key:"bg-blend",type:t.Native},"background-color":{ambiguousKeys:["bg"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native},"background-clip":{key:"bg-clip",type:t.Native,declare:e=>({"-webkit-background-clip":e,"background-clip":e})},"background-origin":{key:"bg-origin",type:t.Native},"background-position":{ambiguousKeys:["bg"],ambiguousValues:["top","bottom","right","left","center"],type:t.Native,unit:"px"},"background-repeat":{ambiguousKeys:["bg"],ambiguousValues:["space","round","repeat","no-repeat","repeat-x","repeat-y"],type:t.Native},"background-size":{ambiguousKeys:["bg"],ambiguousValues:["auto","cover","contain",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"background-image":{ambiguousKeys:["bg"],ambiguousValues:[i.IMAGE_VALUE_REGEX],type:t.Native},background:{key:"bg",type:t.NativeShorthand},gradient:{matcher:/^gradient\(/,type:t.Shorthand,declare:e=>({"background-image":"linear-"+e})},"mix-blend-mode":{key:"blend",type:t.Native},"backdrop-filter":{key:"bd",type:t.Native,declare:e=>({"-webkit-backdrop-filter":e,"backdrop-filter":e})},filter:{matcher:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,type:t.Native},fill:{type:t.Native},"stroke-dasharray":{type:t.Native},"stroke-dashoffset":{type:t.Native,variables:["spacing"]},"stroke-width":{ambiguousKeys:["stroke"],ambiguousValues:[i.NUMBER_VALUE_REGEX],type:t.Native},stroke:{type:t.Native},x:{type:t.Native,variables:["spacing"]},y:{type:t.Native,variables:["spacing"]},cx:{type:t.Native,variables:["spacing"]},cy:{type:t.Native,variables:["spacing"]},rx:{type:t.Native},ry:{type:t.Native},"grid-column-start":{key:"grid-col-start",type:t.Native},"grid-column-end":{key:"grid-col-end",type:t.Native},"grid-column-span":{key:"grid-col-span",type:t.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-column":e})},"grid-column":{key:"grid-col",type:t.NativeShorthand},"grid-columns":{key:"grid-cols",declare:e=>({display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}),type:t.Shorthand},"grid-row-start":{type:t.Native},"grid-row-end":{type:t.Native},"grid-row-span":{type:t.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-row":e})},"grid-row":{type:t.NativeShorthand},"grid-rows":{declare:e=>({display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}),type:t.Shorthand},"grid-auto-columns":{key:"grid-auto-cols",type:t.Native},"grid-auto-flow":{key:"grid-flow",type:t.Native},"grid-auto-rows":{type:t.Native},"grid-template-areas":{type:t.Native},"grid-template-columns":{key:"grid-template-cols",type:t.Native,unit:"rem"},"grid-template-rows":{type:t.Native,unit:"rem"},"grid-template":{type:t.NativeShorthand},"grid-area":{type:t.NativeShorthand},grid:{type:t.NativeShorthand},"column-gap":{key:"gap-x",unit:"rem",type:t.Native,variables:["spacing"]},"row-gap":{key:"gap-y",unit:"rem",type:t.Native,variables:["spacing"]},gap:{unit:"rem",type:t.NativeShorthand,variables:["spacing"]},order:{key:"o",type:t.Native},"break-inside":{type:t.Native},"break-before":{type:t.Native},"break-after":{type:t.Native},"aspect-ratio":{key:"aspect",type:t.Native},"column-span":{key:"col-span",type:t.Native},"align-content":{subkey:"ac",type:t.Native},"align-items":{subkey:"ai",type:t.Native},"align-self":{subkey:"as",type:t.Native},"justify-content":{subkey:"jc",type:t.Native},"justify-items":{subkey:"ji",type:t.Native},"justify-self":{subkey:"js",type:t.Native},"place-content":{type:t.NativeShorthand},"place-items":{type:t.NativeShorthand},"place-self":{type:t.NativeShorthand},"list-style-position":{ambiguousKeys:["list-style"],ambiguousValues:["inside","outside"],type:t.Native},"list-style-type":{ambiguousKeys:["list-style"],ambiguousValues:["disc","decimal"],type:t.Native},"list-style-image":{ambiguousKeys:["list-style"],ambiguousValues:[i.IMAGE_VALUE_REGEX],type:t.Native},"list-style":{type:t.NativeShorthand},"outline-color":{ambiguousKeys:["outline"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"outline-offset":{unit:"rem",type:t.Native,variables:["spacing"]},"outline-style":{ambiguousKeys:["outline"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"outline-width":{ambiguousKeys:["outline"],ambiguousValues:["medium","thick","thin",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},outline:{unit:"rem",type:t.NativeShorthand,variables:["outline-width","outline-style","outline-offset","outline-color","frame"],transformValueComponents:r},"accent-color":{key:"accent",type:t.Native},appearance:{type:t.Native},"caret-color":{key:"caret",type:t.Native,variables:["text"]},"scroll-behavior":{type:t.Native},"scroll-margin-left":{key:"scroll-ml",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-right":{key:"scroll-mr",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-top":{key:"scroll-mt",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{key:"scroll-mb",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-x":{key:"scroll-mx",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-margin-left":e,"scroll-margin-right":e}),variables:["spacing"]},"scroll-margin-y":{key:"scroll-my",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-margin-top":e,"scroll-margin-bottom":e}),variables:["spacing"]},"scroll-margin":{key:"scroll-m",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"scroll-padding-left":{key:"scroll-pl",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-right":{key:"scroll-pr",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-top":{key:"scroll-pt",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{key:"scroll-pb",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-x":{key:"scroll-px",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-padding-left":e,"scroll-padding-right":e}),variables:["spacing"]},"scroll-padding-y":{key:"scroll-py",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-padding-top":e,"scroll-padding-bottom":e}),variables:["spacing"]},"scroll-padding":{key:"scroll-p",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"scroll-snap-align":{ambiguousKeys:["scroll-snap"],ambiguousValues:["start","end","center"],type:t.Native},"scroll-snap-stop":{ambiguousKeys:["scroll-snap"],ambiguousValues:["normal","always"],type:t.Native},"scroll-snap-type":{ambiguousKeys:["scroll-snap"],ambiguousValues:["x","y","block","inline","both"],type:t.Native},"will-change":{type:t.Native},"writing-mode":{key:"writing",type:t.Native},direction:{type:t.Native},"shape-outside":{ambiguousKeys:["shape"],ambiguousValues:[/(?:inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)/],type:t.Native},"shape-margin":{ambiguousKeys:["shape"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native,variables:["spacing"]},"shape-image-threshold":{type:t.Native},"clip-path":{key:"clip",type:t.Native},quotes:{type:t.Native},"mask-image":{type:t.Native,declare:e=>({"-webkit-mask-image":e,"mask-image":e})}}}function eq(){return R?E:(R=1,E={dark:"class",light:"class"})}function eW(){if(_)return x;_=1;var e=eY();let t={$:{transform(e){let t,i,r=e.indexOf(",");return -1!==r?(t=e.slice(0,r),i=e.slice(r+1)):t=e,[{type:"variable",name:t,fallback:i,token:e}]}},calc:{transform(i,r){let a=[],s=0,n=(r,l,o,u,c)=>{let h,d=a!==r,f=[],p=!1,m=!1,y=!1,g=!1,b="",v=(t,a="",n="")=>{if(!1===h&&" "!==t&&this.definition.unit&&(h=void 0,g||k()),b){if(!c){let t=e.BASE_UNIT_REGEX.exec(b);t&&(b=(t[1]*(this.css.config.baseUnit??1)).toString())}if(p||o)r.push({type:"string",value:b,token:b});else{let e={...this.parseValue(b),token:b};if(!m&&isNaN(+b)&&"number"===e.type&&(m=!0),g)isNaN(+b)?"number"===e.type?(r.push(e),y=!0):r.push(e):r.push({type:"number",value:+b,token:b});else if(d){let e={type:"string",value:b,token:b};f.push(e),r.push(e)}else r.push(e)}b=""}t&&(("+"===t||"-"===t)&&N(),a&&" "===i[s-1]&&(a=""),n&&" "===i[s+1]&&(n=""),l?r.push({type:"separator",value:t,text:t,token:t}):r.push({type:"separator",value:t,text:a+t+n,token:t})),p=!1},k=()=>{("rem"===this.definition.unit||"em"===this.definition.unit)&&r.push({type:"separator",value:"/",text:" / ",token:"/"},{type:"number",value:this.css.config.rootSize,token:String(this.css.config.rootSize)}),r.push({type:"separator",value:"*",text:" * ",token:"*"},{type:"number",value:1,unit:this.definition.unit,token:this.definition.unit})},N=()=>{!g||y||u||d&&!m||k(),g=!1,y=!1};for(;s<i.length;s++){let e=i[s];if("("===e){let i=/^([+-])/.exec(b);i&&r.push({type:"string",value:i[1],token:i[1]});let a=i?b.slice(1):b,l={type:"function",name:a,symbol:e,children:[],bypassTransform:"calc"===a,token:b};r.push(l),b="",s++;let o="$"===a||"var"===a;if(!(h=n(l.children,""!==a&&"calc"!==a&&(o||Object.prototype.hasOwnProperty.call(t,a)),p||o||g&&y,g,o)||"var"===a)&&"$"===a){let e=this.css.variables.get(l.children[0].value)?.type;h=!e||"string"===e}h&&(m=!0,y=!0)}else if(")"===e){if(v(""),m)for(let e of f)Object.assign(e,this.parseValue(e.value));return m}else if(","===e)v(e,""," ");else if(" "===e)v(e);else{let t=i[s-1];switch(e){case"+":case"-":b||")"===t?v(e," "," "):b+=e;break;case"*":this.definition.unit&&(g=!0),v(e," "," ");break;case"/":this.definition.unit&&(g=!0),v(e," "," "),p=!0;break;default:b+=e}}}v(""),N()};return n(a,!1,!1,!1,!1),"calc("+this.resolveValue(a,t.calc.unit??this.definition.unit,r,!0)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:""},"color-contrast":{unit:""},"color-mix":{unit:""},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},"light-dark":{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{},"radial-gradient":{},"conic-gradient":{},"repeating-linear-gradient":{},"repeating-radial-gradient":{},"repeating-conic-gradient":{},matrix:{unit:""},matrix3d:{unit:""},scale:{unit:""},scale3d:{unit:""},scaleX:{unit:""},scaleY:{unit:""},scaleZ:{unit:""}};return x=t}function eH(){return A?w:(A=1,w={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560})}function eZ(){if($)return eU;$=1;var e=eM(),t=eK(),i=eG(),r=ej(),a=eX(),s=eF(),n=eq(),l=eW(),o=eH();return eU.at=e,eU.selectors=t,eU.utilities=i,eU.animations=r,eU.variables=a,eU.rules=s,eU.modes=n,eU.functions=l,eU.screens=o,eU.config={at:e,selectors:t,utilities:i,rules:s,functions:l,animations:r,variables:a,modes:n,screens:o,scope:"",rootSize:16,baseUnit:4,override:!1,important:!1,defaultMode:"light"},eU}var eQ={};function eJ(){if(L)return O;L=1;var e=eY();return O=function(t,i="",r=1){if("number"==typeof t)return{unit:i,type:"number",value:"rem"===i||"em"===i?t/r:t};let a=t.match(e.UNIT_REGEX);if(a){let e=parseFloat(a[1]),s=a[2]||"";return s||"rem"!==i&&"em"!==i||(e/=r,s=i),{token:t,value:e,unit:s||i,type:"number"}}return{token:t,value:t,type:"string"}}}function e0(){return C?T:(C=1,T=function(e,t="(",i=")"){let r=[],a=null,s=null;for(let n=0;n<e.length;n++){let l=e[n],o=e[n-1];if("\\"===l){n++;continue}if(('"'===l||"'"===l)&&"\\"!==o){s===l?s=null:s||(s=l);continue}if(!s){if(e.startsWith(t,n))r.push({start:n}),n+=t.length-1;else if(e.startsWith(i,n)){let s=r.pop();s&&(a={start:s.start,end:n,pre:e.slice(r.length>0?r[r.length-1].start+t.length:0,s.start),body:e.slice(s.start+t.length,n),post:e.slice(n+i.length)}),n+=i.length-1}}}return a})}function e1(){if(G)return K;G=1;var e=eY(),t=tu(),i=e0(),r=eJ(),a=I?V:(I=1,V=function(e,t,i){let r="",a=!1,s=!1;for(let n=0;n<e.length;n++){let l=e[n],o=e[n-1];"'"!==l||"\\"===o||s?'"'!==l||"\\"===o||a||(s=!s):a=!a,l!==t||a||s?r+=l:r+=i}return r}),s=M?U:(M=1,U=function(e,t){let i=[],r="",a=!1,s=!1;for(let n=0;n<e.length;n++){let l=e[n],o=e[n-1];"'"!==l||s||"\\"===o?'"'!==l||a||"\\"===o||(s=!s):a=!a,l!==t||a||s?r+=l:(i.push(r.trim()),r="")}return r&&i.push(r.trim()),i});return K=function(n,l=new t,o=!0){let u,c,h=t=>{let i=[...t.matchAll(/([a-zA-Z0-9-:%|]+|[&|!|,|>|<|=][=]?)/g)].map(e=>e[0]),a=[],n=e=>{let t=a[a.length-1];"number"!==e.type||e.name||(t?.type==="comparison"?(e.operator=t.value,e.raw&&t.raw&&(e.raw=t.raw+e.raw),a.pop(),t=a[a.length-1],t?.type==="string"?(e.name=t.value,e.raw&&t.raw&&(e.raw=t.raw+e.raw),a.pop()):e.name="width"):(e.name="width",e.operator=">=")),a.push(e)};return i.forEach(t=>{if(e.AT_COMPARISON_OPERATORS.includes(t)){let e={type:"comparison",value:t};o&&(e.raw=t),a.push(e);return}if(t in e.AT_LOGICAL_OPERATORS){let i={type:"logical",value:e.AT_LOGICAL_OPERATORS[t]};o&&(i.raw=t),a.push(i);return}let i=l.atRules.get(t);if(!u&&!c){if(c=t,e.AT_IDENTIFIERS.includes(c)){u=c;return}u=i?i.id:e.AT_COMPARABLE_FEATURES.includes(c)?"media":c.charAt(0).match(/[a-zA-Z-]/)?"container":"media"}let h={type:"string"};if(o&&(h.raw=t),i)return void(1===i.nodes.length?n({...i.nodes[0],raw:t}):i.nodes.length&&n({raw:t,children:i.nodes}));{let[e,i]=s(t,":");if(i?(h.name=e,h.value=i):h.value=e,"container"===u||"media"===u){let{token:e,...t}=r(h.value,"rem",l.config.rootSize);Object.assign(h,t)}n(h)}}),a},d=e=>{let t=[],r=i(e);if(r){if(r.pre&&t.push(...d(r.pre)),r.body)if("supports"===u)t.push({type:"group",children:[{type:"string",value:a(r.body,"|"," ")}]});else{let e=d(r.body);e.length>1?t.push({type:"group",children:d(r.body)}):t.push(...e)}r.post&&t.push(...d(r.post))}else t.push(...h(e));return t};return{nodes:d(n),id:u||"media"}}}function e5(){return B?j:(B=1,j=function(e){let t=i=>i.map(e=>{let i="";if("children"in e){let r=t(e.children);i="group"===e.type?"("+r+")":r}else{let t="number"===e.type?String(e.value)+(e.unit||""):e.value;i="name"in e?"operator"in e?`(${e.name}${e.operator}${t})`:`(${e.name}:${t})`:t}return i}).filter(Boolean).join("layer"===e.id?".":" "),i=t(e.nodes);return"@"+e.id+(i?" "+i:"")})}function e3(){if(D)return X;D=1;var e=eY(),t=tu(),i=e0();let r=RegExp(`(?:[a-zA-Z0-9-]+)|([${e.SELECTOR_COMBINATORS.join("")}.:,*])|(a-zA-Z0-9-)`,"g");return X=function(a,s=new t,n=!0){let l=t=>{let i=[],a="",l=0;for(let o of t.matchAll(r)){let r,u=o[0];if(l+=u.length,":"===u||"."===u){a+=u;continue}let c=u,h=s.selectors.get(a+u);if(h){let e=h[h.length-1];i.push(1===h.length&&e.type?{...e,raw:a+u}:{children:h,raw:a+u}),a="";continue}if(e.SELECTOR_COMBINATORS.includes(u)){if(r="combinator","_"===u){let e=t[l];"_"!==t[l-u.length-1]&&"_"!==e&&(c=" ")}}else","===u?r="separator":"*"===u?r="universal":":"===a?r="pseudo-class":"::"===a?r="pseudo-element":"."===a&&(r="class");i.push({value:c,...n&&{raw:a+u},...r&&{type:r}}),a=""}return i},o=(e,t=[])=>{let r=i(e);if(r){let e,{pre:i,body:a,post:s}=r;if(a){let t=i.lastIndexOf(":");-1!==t&&(e=i.slice(t),i=i.slice(0,t))}if(i&&t.push(...o(i)),a){let i=o(a);if(e){let r=l(e)[0];i.length&&(r.children=i),t.push(r)}else t.push(...i)}return s&&t.push(...o(s)),t}let a=i(e,"[","]");if(a){let{pre:e,body:i,post:r}=a;return e&&t.push(...o(e)),t.push({value:i,type:"attribute",...n&&{raw:`[${i}]`}}),r&&t.push(...o(r)),t}return l(e)};return o(a)}}function e9(){if(P)return z;P=1;var e=eY();let t={class:".","pseudo-class":":","pseudo-element":"::",attribute:"",combinator:""};return z=function(i,r=""){let a=e=>{if("attribute"===e.type)return`[${e.value}]`;if("combinator"===e.type)return e.value;let i=e.type&&t[e.type]||"",r=e.value?i+e.value:"";if("children"in e&&e.children?.length){let t=e.children.map(a).join("");return e.value?r+`(${t})`:r+t}return r},s="",n="",l=[];if(i.flatMap(e=>!("value"in e)&&"children"in e&&e.children?.length?e.children:e).forEach(e=>{","===e.value?(l.push(n),n=""):"of"===e.value&&"children"in e?s+=e.children.map(a).join(""):n+=a(e)}),n&&l.push(n),s){let t=s.charAt(s.length-1);e.SELECTOR_COMBINATORS.includes(t)||" "===t||(s+=" ")}return l.length?l.map(e=>s+r+e).join(","):s+r}}var e6={};function e4(){if(Y)return e6;Y=1,Object.defineProperty(e6,"__esModule",{value:!0});let e={hover:1,focus:2,active:3,disabled:4},t={">=":"<","<=":">",">":"<=","<":">="};return e6.calcRulePriority=function(i){let r=[],a=e=>{for(let[i,a]of(function(e){let i=new Map,r=(e,a=!1)=>{(e??[]).forEach((e,s,n)=>{let l=n[s-1];if("operator"in e){let r=i.get(e.name)??{},s=e.operator;switch(a&&(s=t[s]),l?.type==="logical"&&"not"===l.value&&(s=t[s]),s){case">":r.min=e.value+.02;break;case">=":r.min=e.value;break;case"<":r.max=e.value-.02;break;case"<=":r.max=e.value}i.set(e.name,r)}"children"in e&&Array.isArray(e.children)&&r(e.children,l?.type==="logical"&&"not"===l.value)})};return r(e),i})(e).entries()){let e=a.max??Number.MAX_SAFE_INTEGER,t=a.min??0;r.push([i,t,e])}};return i.atRules?.media&&a(i.atRules.media),i.atRules?.container&&a(i.atRules.container),r.sort(([e],[t])=>e.localeCompare(t,void 0,{numeric:!0})),{features:r,selector:function t(i=[]){let r=0;for(let a of i)"value"in a&&"string"==typeof a.value&&(r+=e[a.value]??0),"children"in a&&Array.isArray(a.children)&&(r+=t(a.children));return r}(i.selectorNodes??[])}},e6.default=function(e,t){let i=e=>{let t=e.selectorNodes?.length,i=!!e.atRules,r=!!e.mode;return i?3:r?2:+!!t},r=i(e),a=i(t);if(r!==a)return r-a;let s=function(e,t){let i=Math.max(e.length,t.length);for(let r=0;r<i;r++){let i=e[r],a=t[r];if(!i)return -1;if(!a)return 1;let[s,n,l]=i,[o,u,c]=a,h=s.localeCompare(o,void 0,{numeric:!0});if(0!==h)return h;let d=l-n,f=c-u;if(d!==f)return f-d;if(n!==u)return u-n;if(l!==c)return c-l}return 0}(e.priority.features||[],t.priority.features||[]);if(0!==s)return s;let n=e.priority.selector-t.priority.selector;if(0!==n)return n;let l=e.type-t.type;return 0!==l?l:e.key.localeCompare(t.key,void 0,{numeric:!0})},e6}function e2(){if(F)return eQ;F=1;var e=eD(),t=ez(),i=eY(),r=eJ(),a=e1(),s=e5(),n=e3(),l=e9(),o=e4();return eQ.SyntaxRule=class{name;css;registeredSyntax;fixedClass;native;atRules;priority;type;declarations;layer;valid;animationNames;variableNames;constructor(e,r,s,l,u){let c,h;this.name=e,this.css=r,this.registeredSyntax=s,this.fixedClass=l,this.type=t.Normal,this.valid=!0,this.resolveValue=(e,t,r,a)=>{let{functions:s}=this.css.config,n="";for(let l of e)switch(l.type){case"function":let e=s&&s[l.name];if(e?.transform&&!l.bypassTransform){let i=e.transform.call(this,this.resolveValue(l.children,e.unit??t,r,a||"calc"===l.name),r);n+=l.token=l.text="string"==typeof i?i:this.resolveValue(i,e?.unit??t,r,a)}else n+=l.token=l.text=l.name+l.symbol+this.resolveValue(l.children,e?.unit??t,r,a)+i.VALUE_DELIMITERS[l.symbol];break;case"variable":let o=this.css.variables.get(l.name);if(o){let e=(e,t)=>{if(o.modes)if(this.mode){let t=o.modes[this.mode]??o;t?.value&&e(t)}else this.variableNames?this.variableNames.add(l.name):this.variableNames=new Set([l.name]),t();else e(o)};switch(o.type){case"string":e(e=>{let i=[];this.parseValues(i,0,e.value,t,"",void 0,a,[...r,l.name]),n+=l.text=this.resolveValue(i,t,[...r,l.name],a)},()=>{n+=l.text=`var(--${l.name})`});break;case"number":e(e=>{if(a)n+=l.text=String(e.value);else{let i=this.parseValue(e.value,t);n+=l.text=i.value+(i.unit??"")}},()=>{n+=l.text=t?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let i=l.alpha?"/"+l.alpha:"";e(e=>{n+=l.text=`${e.space}(${e.value}${i})`},()=>{n+=l.text=`${o.space}(var(--${l.name})${i})`})}}else n+=l.text=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":n+=l.text?l.text:l.text=l.value;break;case"number":n+=l.text=l.value+(l.unit||"");break;default:n+=l.text=l.value}return n},this.parseValues=(e,t,r,a,s,n,l=!1,o=[])=>{let u=void 0===n,c=!u&&(n.endsWith("$")||n.endsWith("var")),h="'"===s||'"'===s,d=[","];this.definition.separators?.length&&d.push(...this.definition.separators);let f="",p=()=>{if(f){let t=!1;if(!c||e.length){let i=(i,r)=>{let a=this.css.variables.get(i),s=Object.prototype.hasOwnProperty.call(this.variables,i)?this.variables[i]:a;if(s){let a=s.name??i;if(!o.includes(a)){t=!0;let i={type:"variable",name:a,variable:this.css.variables.get(a),token:f};r&&(i.alpha=r),e.push(i)}}};if(i(f),!t){let[e,t]=f.split("/");i(e,t)}}if(!t){if(!c){let e=i.BASE_UNIT_REGEX.exec(f);e&&(f=String(e[1]*(this.css.config.baseUnit??1)))}if(l)e.push({type:"string",value:f,token:f});else{let t=this.parseValue(f,a);e.push({...t,token:f})}}f=""}};for(;t<r.length;t++){let o=r[t];if(o===s){if(h){let e=0;for(let t=f.length-1;"\\"===f[t];t--)e++;if(e%2){f+=o;continue}p()}else p();return t}if(!h&&o in i.VALUE_DELIMITERS){let s=f,u={type:"function",name:s,symbol:o,children:[],token:""};e.push(u),f="";let c="("===o?this.css.config.functions?.[s]:void 0;t=this.parseValues(u.children,++t,r,c?.unit??a,i.VALUE_DELIMITERS[o],s||n||"",l||"calc"===s)}else if("|"!==o&&" "!==o||"}"===s||h&&"path"!==n){if(!h){if("."===o)if(isNaN(+r[t+1])){if(u)break}else"-"===r[t-1]&&(f+="0");else if(d.includes(o)){p(),e.push({type:"separator",value:o,text:(","===o?"":" ")+o+(","===o?"":" "),token:o});continue}else if(u&&("#"===o&&(f||e.length&&"separator"!==e[e.length-1].type)||["!","*",">","+","~",":","[","@","_"].includes(o)))break}f+=o}else p(),e.push({type:"separator",value:" ",token:o})}return p(),t},this.mode=u,this.layer=r.generalLayer,Object.assign(this,s);let{id:d,definition:f}=s,{analyze:p,transformValue:m,declare:y,transformValueComponents:g,create:b,type:v,unit:k}=f;if(this.type=v,b&&b.call(this,e),this.declarations=f.declarations,this.type===t.Utility)c=e.slice(d.length-1);else{let t;if(p)[t]=p.call(this,e);else{let i=e.indexOf(":");this.keyToken=e.slice(0,i+1),t=e.slice(i+1)}this.valueComponents=[];let i=this.parseValues(this.valueComponents,0,t,k,"",void 0,!1,f.includeAnimations?Array.from(this.css.animations.keys()):[]);this.valueToken=t.slice(0,i),c=t.slice(i)}"!"===c[0]&&(this.important=!0,c=c.slice(1)),this.stateToken=c;let N=c.split("@"),S=N[0];S&&(this.selectorNodes=n(S,r));for(let e=1;e<N.length;e++){let t=N[e];if(r.config.modes?.[t]){this.mode=t;continue}this.atToken=(this.atToken||"")+"@"+t;let i=a(t,r),s=this.atRules?.[i.id];s?s.push(...i.nodes):this.atRules={...this.atRules,[i.id]:i.nodes}}if(this.mode&&r.config.modes?.[this.mode]==="media"){let e={name:"prefers-color-scheme",value:this.mode};this.atRules?.media?this.atRules.media.push(e):this.atRules={media:[e]}}if(this.fixedClass)this.layer=r.componentsLayer;else{let e=this.atRules?.layer?.length===1&&this.atRules.layer[0];e&&("base"===e.value?(this.layer=r.baseLayer,this.atRules.layer=void 0):"preset"===e.value&&(this.layer=r.presetLayer,this.atRules.layer=void 0))}if(this.valueComponents&&(g&&(this.valueComponents=g.call(this,this.valueComponents)),h=this.resolveValue(this.valueComponents,k,[],!1),m&&(h=m.call(this,h)),y?this.declarations=y.call(this,h,this.valueComponents):d&&(this.declarations={[d]:h})),Object.entries(this.declarations??{}).length){for(let e in this.declarations)if(this.css.animations&&("animation"===e||"animation-name"===e)){let t=this.declarations[e];if(!t)continue;for(let e of t.split(" "))if(this.css.animations.has(e)){this.animationNames?this.animationNames.add(e):this.animationNames=new Set([e]);continue}}this.priority=o.calcRulePriority(this)}else this.valid=!1}get text(){if(!this.valid)return"";let e=[];for(let t in this.declarations){let i=this.declarations[t],r=t+":"+String(i);e.push(r+((this.important||this.css.config.important)&&!r.endsWith("!important")?"!important":""))}let t=this.selectorText+"{"+e.join(";")+"}";return void 0!==this.atRules&&i.AT_IDENTIFIERS.forEach(e=>{let i=this.atRules?.[e];i&&(t=s({id:e,nodes:i})+"{"+t+"}")}),t}get selectorText(){let t="";if(this.css.config.scope&&(t=this.css.config.scope+" "+t),this.mode){let e=this.css.getModeSelector(this.mode);e&&(t=e+" "+t)}let i=t+"."+e(this.fixedClass??this.name);return this.selectorNodes?l(this.selectorNodes,i):i}resolveValue;parseValues;parseValue(e,t=this.definition.unit){let i=r(e,t,this.css.config.rootSize);if(this.definition.unit&&"string"===i.type&&/^\d+\/\d+$/.test(i.value)){let[t,r]=i.value.split("/").map(Number);return{token:e,value:t/r*100,unit:"%",type:"number"}}return i}get key(){return(this.fixedClass?this.fixedClass+" ":"")+this.name}},eQ}var e7={};function e8(){if(Q)return Z;Q=1;var e=eB();return Z=function(...t){let i=t=>{let i=e({},t),r=e=>{Object.entries(e).forEach(([t,i])=>{"object"!=typeof i||Array.isArray(i)?t&&!t.startsWith("@")&&(e[t]={"":i}):r(i)})};return["components","variables"].forEach(e=>{i[e]&&r(i[e])}),i},r=(e,t=[])=>(e&&(e.extends?.length&&e.extends.forEach(e=>r("config"in e?e.config:e,t)),t.push(i(e))),t);return t.reduce((e,t)=>r(t,e),[]).reduce((t,i)=>(Object.entries(i).forEach(([i,r])=>{"animations"===i&&r?Object.assign(t.animations,r):r&&(t=e(t,{[i]:r}))}),t),{animations:{},components:{},at:{},variables:{}})}}var te={};function tt(){return J||(J=1,te.Rule=class{name;text;native;constructor(e,t){this.name=e,this.text=t}get key(){return this.name}}),te}function ti(){return et?ee:(et=1,ee=class{name;css;rules;tokenCounts;constructor(e,t){this.name=e,this.css=t,this.rules=[],this.tokenCounts=new Map}attach(){this.css.rules.push(this)}detach(){this.css.rules.splice(this.css.rules.indexOf(this),1)}insert(e,t=this.rules.length){if(!this.rules.find(({key:t})=>t===e.key))return this.rules.splice(t,0,e),this.css.rules.includes(this)||this.attach(),t}delete(e){let t=this.rules.findIndex(t=>t.key===e);if(-1===t)return;let i=this.rules[t];return this.rules.splice(t,1),0===this.rules.length&&this.detach(),i}reset(){this.rules.length=0;let e=this.css.rules.indexOf(this);-1!==e&&this.css.rules.splice(e,1),this.tokenCounts.clear()}get text(){let e=this.rules.map(({text:e})=>e).join("");return e?"@layer "+this.name+"{"+e+"}":""}})}function tr(){return er?ei:(er=1,ei=class{name;keyframes;css;native;constructor(e,t,i){this.name=e,this.keyframes=t,this.css=i}get key(){return this.name}get text(){return`@keyframes ${this.name}{`+Object.entries(this.keyframes).reduce((e,[t,i])=>{let r=Object.entries(i).map(([e,t])=>`${e}:${t}`).join(";");return e+`${t}{${r}}`},"")+"}"}})}var ta={};function ts(){if(ea)return ta;ea=1,Object.defineProperty(ta,"__esModule",{value:!0});class e{name;variable;css;mode;native;isDefaultMode;constructor(e,t,i,r){this.name=e,this.variable=t,this.css=i,this.mode=r,this.isDefaultMode=!1}get modeTrigger(){return this.mode?this.css.config.modes?.[this.mode]:void 0}get selectorText(){let e=this.isDefaultMode;if(!this.mode)return":root";switch(this.modeTrigger){case"media":return":root";case"host":return`:host(.${this.mode})`+(e?",:host":"");case"class":return`.${this.mode}`+(e?",:root":"");default:return""}}get text(){let e=`${this.selectorText}{--${this.name}:${String(this.variable.value)}}`;return"media"===this.modeTrigger&&(e=`@media (prefers-color-scheme:${this.mode}){${e}}`),e}}return ta.VariableRuleNode=e,ta.default=class{name;variable;css;nodes;constructor(t,i,r){this.name=t,this.variable=i,this.css=r,this.nodes=[];let a=void 0!==i.value;if(a&&this.nodes.push(new e(this.name,i,r)),i.modes)for(let t in i.modes){let s=i.modes[t],n=new e(this.name,s,r,t);if(n.modeTrigger){let e=!a&&this.css.config.defaultMode===t;n.isDefaultMode=e,e?this.nodes.unshift(n):this.nodes.push(n)}}}get key(){return this.name}get text(){return this.nodes.map(({text:e})=>e).join("")}},ta}function tn(){if(en)return es;en=1;var e=tr(),t=e4(),i=ts();return es=function(r){return class extends r{rules=[];insert(e){if(this.rules.includes(e)||!e.valid)return;let i=this.rules.length;for(let r=0;r<this.rules.length;r++){let a=this.rules[r];if(0>t.default(e,a)){i=r;break}}return super.insert(e,i),this.insertVariables(e),this.insertAnimations(e),e.definition.insert?.call(e),i}delete(e){let t=super.delete(e);if(!t)return;let i=(e,t)=>{let i=t.tokenCounts.get(e)??0;i<=1?(t.delete(e),t.tokenCounts.delete(e)):t.tokenCounts.set(e,i-1)};return t.variableNames?.forEach(e=>{i(e,this.css.themeLayer)}),t.animationNames?.forEach(e=>{i(e,this.css.animationsNonLayer)}),t.definition.delete?.call(t,t.name),t}insertVariables(e){e.variableNames?.forEach(e=>{if(this.css.themeLayer.rules.find(({name:t})=>t===e)){let t=this.css.themeLayer.tokenCounts.get(e)||0;this.css.themeLayer.tokenCounts.set(e,t+1)}else{let t=this.css.variables.get(e);if(!t)return;let r=new i.default(e,t,this.css);this.css.themeLayer.insert(r),this.css.themeLayer.tokenCounts.set(e,1)}})}insertAnimations(t){t.animationNames?.forEach(t=>{if(this.css.animationsNonLayer.rules.find(({name:e})=>e===t)){let e=this.css.animationsNonLayer.tokenCounts.get(t)||0;this.css.animationsNonLayer.tokenCounts.set(t,e+1)}else{let i=this.css.animations.get(t);if(!i)return;let r=new e(t,i,this.css);this.css.animationsNonLayer.insert(r),this.css.animationsNonLayer.tokenCounts.set(t,1)}})}}}}function tl(){return eo?el:(eo=1,el=tn()(ti()))}function to(){if(ed)return eh;ed=1;var e=ec?eu:(ec=1,eu=function(e,t){for(let i=0;i<e.length;i++)if(e[i]===t)return i;return -1});return eh=class{css;rules;tokenCounts;constructor(e){this.css=e,this.rules=[],this.tokenCounts=new Map}insert(e){if(this.rules.includes(e))return;let t=this.css.style?.sheet;if(t)try{let i=t.insertRule(e.text,t.cssRules.length);e.native=t.cssRules[i]}catch(e){console.error(e)}this.rules.push(e),this.css.rules.push(e)}delete(t){let i=this.rules.find(e=>e.name===t);if(!i)return;let r=this.css.style?.sheet;if(r){let t=e(r.cssRules,i.native);-1!==t&&r.deleteRule(t)}return this.rules.splice(this.rules.indexOf(i),1),this.css.rules.splice(this.css.rules.indexOf(i),1),i}get text(){return this.rules.map(({text:e})=>e).join("")}reset(){for(let e of this.rules){let t=this.css.rules.indexOf(e);-1!==t&&this.css.rules.splice(t,1)}this.rules.length=0,this.tokenCounts.clear()}}}function tu(){if(ey)return em;ey=1;var e=e2(),t=eZ(),i=W?q:(W=1,q=function(e){let t,i,r,a;return e.startsWith("#")&&(e=e.slice(1)),3===e.length||4===e.length?(t=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),a=4===e.length?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(6===e.length||8===e.length)&&(t=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),r=parseInt(e.slice(4,6),16),a=8===e.length?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,i,r,a]}),r=(H||(H=1,e7.flattenObject=function e(t,i=""){return Object.entries(t).reduce((t,[r,a])=>{let s=i?`${i}${r?"-"+r:""}`:r;return"object"!=typeof a||Array.isArray(a)?t[s]=a:Object.assign(t,e(a,s)),t},{})}),e7),a=e8(),s=tt(),n=ez(),l=ti(),o=tl(),u=to(),c=ep?ef:(ep=1,ef=function(e){globalThis.MasterCSS||(globalThis.MasterCSS=e)}),h=e1(),d=eJ(),f=e3();class p{customConfig;static config=t.config;definedRules;config;layerStatementRule;rules;classRules;animationsNonLayer;baseLayer;themeLayer;presetLayer;componentsLayer;generalLayer;components;selectors;variables;atRules;animations;constructor(e){this.customConfig=e,this.definedRules=[],this.layerStatementRule=new s.Rule("layer-statement","@layer base,theme,preset,components,general;"),this.rules=[this.layerStatementRule],this.classRules=new Map,this.animationsNonLayer=new u(this),this.baseLayer=new o("base",this),this.themeLayer=new l("theme",this),this.presetLayer=new o("preset",this),this.componentsLayer=new o("components",this),this.generalLayer=new o("general",this),this.components=new Map,this.selectors=new Map,this.variables=new Map,this.atRules=new Map,this.animations=new Map,this.resolve(e)}get text(){return this.rules.sort((e,t)=>{let i=["layer-statement","base","theme","preset","components","general"];return(-1===i.indexOf(e.name)?1/0:i.indexOf(e.name))-(-1===i.indexOf(t.name)?1/0:i.indexOf(t.name))}).map(({text:e})=>e).join("")}resolve(e){e?this.customConfig=e:e=this.customConfig,this.config=e?.override?a(e):a(t.config,e),this.resolveVariables(),this.resolveAnimations(),this.resolveSelectors(),this.resolveAtRules(),this.resolveRules(),this.resolveComponents()}resolveAnimations(){let{animations:e}=this.config;if(e)for(let t in e){let i={};this.animations.set(t,i);let r=e[t];for(let e in r){let t=i[e]={},a=r[e];for(let e in a)t[e]=a[e]}}}resolveRules(){let{rules:e,utilities:t}=this.config;if(!e&&!t)return;let i=[];if(t)for(let e in t){let r=t[e];i.push([e,{declarations:r,type:n.Utility}])}e&&i.push(...Object.entries(e));let r=i.length,a=new Set(["current","currentColor","transparent"]);this.variables.forEach(e=>{"color"===e.type&&a.add(e.name)});let s=[...a].join("|");i.sort((e,t)=>e[1].type!==t[1].type?(t[1].type||0)-(e[1].type||0):t[0].localeCompare(e[0],void 0,{numeric:!0})).forEach(([e,t],i)=>{let a={id:e,keys:[],variables:{},matchers:{},order:r-1-i,definition:t};t.unit??="",t.separators??=[","],this.definedRules.push(a);let{matcher:l,type:o,subkey:u,ambiguousKeys:c,ambiguousValues:h,sign:d,key:f,variables:p}=t,m=[],y=f,g=e=>{this.variables.forEach(t=>{t.group===e&&(a.variables[t.key]=t)})};if(p&&p.forEach(g),g(e),(o===n.NativeShorthand||o===n.Native)&&(y||(t.key=y=e),m.push(e)),d)a.matchers.arbitrary=RegExp(`^${d}[^!*>+~:[@_]+\\|`);else if(l)a.matchers.arbitrary=l;else if(y||u?(y&&!m.includes(y)&&m.push(y),u&&m.push(u),o===n.Shorthand&&m.push(e)):m.push(e),c?.length){let e=c.length>1?`(?:${c.join("|")})`:c[0],t=Object.keys(a.variables);if(h?.length){let t=h.map(e=>e instanceof RegExp?e.source.replace("\\$colors",s):`${e}(?:\\b|_)`);a.matchers.value=RegExp(`^${e}:(?:${t.join("|")})[^|]*?(?:@|$)`)}t.length&&(a.matchers.variable=RegExp(`^${e}:(?:${t.join("|")}(?![a-zA-Z0-9-]))[^|]*?(?:@|$)`))}o===n.Utility&&(a.id="."+e,a.matchers.arbitrary=RegExp("^"+e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m")),m.length&&(a.keys=m,a.matchers.key=RegExp(`^${m.length>1?`(${m.join("|")})`:m[0]}:.`))})}resolveComponents(){let{components:e}=this.config,t=e?r.flattenObject(e):{},i=Object.keys(t),a=(e,r=[])=>{let s=this.components.get(e);if(s)return void r.push(...s);let n=t[e];if(n){for(let e of n.replace(/(?:\n\s*)+/g," ").trim().split(" "))i.includes(e)?a(e,r):r.push(e);this.components.set(e,[...r])}};for(let e of i)a(e);this.components.forEach((e,t)=>{let i={};for(let r of e){let e=this.create(r);e?.valid?(i[e.stateToken]||=[]).push(e):console.error(`Invalid class "${r}" found in ${t} component.`)}let r=Object.entries(i).map(([e,t])=>{if(1===t.length)return t[0].name;let i=t.map(e=>e.name.slice(0,e.name.length-e.stateToken.length));return`{${i.join(";")}}${e}`});this.components.set(t,r)})}resolveSelectors(){let{selectors:e}=this.config;if(e){let t=r.flattenObject(e);for(let e in t){let i=f(t[e],this,!1);this.selectors.set(e,i)}}}resolveAtRules(){let{at:e,screens:t}=this.config;if(t)for(let e in t){let i=t[e],r=this.parseValue(i);this.atRules.set(e,{id:"media",nodes:[r]})}if(e){let t=r.flattenObject(e);for(let e in t){let i=t[e];if("number"==typeof i){let t=this.parseValue(i);this.atRules.set(e,{id:"media",nodes:[t]})}else{let t=h(i,this,!1);this.atRules.set(e,t)}}}}resolveVariables(){let{variables:e,screens:t}=this.config,r=new Map,a=(e,t,s)=>{if(null==e)return;let n=(e,t,i,r)=>{if(void 0===t)return;let a=e.join("-"),n=e.slice(0,-1).filter(Boolean),l=(""===e[0]?"-":"")+e[e.length-1];if(t.key=l,t.name=a,n.length&&(t.group=n.join(".")),"color"===t.type&&r){let e=t.value.indexOf("/");t={...t,value:-1===e?t.value+" / "+(r.startsWith("0.")?r.slice(1):r):t.value.slice(0,e+2)+String(t.value.slice(e+2)*r).slice(1)}}let o=i??s;if(void 0!==o){let e=this.variables.get(a);if(e)o?(e.modes||(e.modes={}),e.modes[o]=t):(e.value=t.value,"color"===t.type&&(e.space=t.space));else if(o){let e={key:t.key,name:t.name,group:t.group,type:t.type,modes:{[o]:t}};"color"===t.type&&(e.space=t.space),this.variables.set(a,e)}else this.variables.set(a,t)}else this.variables.set(a,t)};if("object"==typeof e)if(Array.isArray(e))n(t,{type:"string",value:e.join(",")});else{let i=Object.keys(e);for(let r of i)""===r||r.startsWith("@")?a(e[r],t,r||i.some(e=>e.startsWith("@"))?r.slice(1):void 0):a(e[r],[...t,r])}else if("number"==typeof e)n(t,{type:"number",value:e}),n(["",...t],{type:"number",value:-1*e});else if("string"==typeof e){let a=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(e),l=t.join("-");if(a){let e=r.get(l);e||r.set(l,e={}),e[s]=()=>{delete e[s];let[i,l]=a[1].split("@");if(i){let e=r.get(i);if(e)for(let t of Object.keys(e))e[t]?.();let s=this.variables.get(i);if(s)if(void 0===l&&s.modes)for(let e in n(t,{type:s.type,value:s.value,space:s.space},"",a[2]),s.modes)n(t,s.modes[e],e,a[2]);else{let e=void 0!==l?s.modes?.[l]:s;if(e){let i={type:e.type,value:e.value};"color"===e.type&&(i.space=e.space),n(t,i,void 0,a[2])}}}}}else{let r=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(e);if(r){let[e,a,s,l]=i(r[1]);n(t,{type:"color",value:`${e} ${a} ${s}${1===l?"":" / "+l}`,space:"rgb"})}else{let i=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(e);if(i)n(t,{type:"color",value:i[1]+" "+i[2]+" "+i[3]+(i[4]?" / "+(i[4].startsWith("0.")?i[4].slice(1):i[4]):""),space:"rgb"});else{let i=/^hsl\((.*?)\)$/.exec(e);i?n(t,{type:"color",value:i[1],space:"hsl"}):n(t,{type:"string",value:e})}}}}};if(e){for(let t in e)a(e[t],[t]);r.forEach(e=>{for(let t of Object.keys(e))e[t]?.()})}t&&a(t,["screen"])}parseValue(e,t="rem"){return d(e,t,this.config.rootSize)}match(e){for(let t of this.definedRules)if(t.matchers.variable?.test(e))return t;for(let t of this.definedRules)if(t.matchers.value?.test(e))return t;for(let t of this.definedRules)if(t.matchers.key?.test(e))return t;for(let t of this.definedRules)if(t.matchers.arbitrary?.test(e))return t}generate(e,t){let i=[],r=this.components.get(e);if(r)r.forEach(r=>{let a=this.create(r,e,t);a&&a.valid?i.push(a):console.error(`Invalid syntax class "${r}" is in ${e} component.`)});else{let r=e.indexOf("@");if(-1!==r){let a=e.slice(0,r),s=this.components.get(a);if(s){let a=e.slice(r);s.forEach(r=>{let s=this.create(r+a,e,t);s&&s.valid&&i.push(s)})}}let a=this.create(e,void 0,t);a&&a.valid&&i.push(a)}return i}create(t,i,r){let a=this.generalLayer.rules.find(({key:e})=>e===(i?i+" ":"")+t);if(a)return a;let s=this.match(t);if(s)return new e.SyntaxRule(t,this,s,i,r)}createFromSelectorText(e){let t=e.split(" "),i=/[.#\[!\*>+~:,\s]/;for(let e=0;e<t.length;e++){let r=t[e],a=this.getModeSelector(r);if((0!==e||r!==a)&&(0!==e&&1!==e||r!==this.config.scope)&&r.startsWith(".")){let e=r.slice(1),t="",a=0;for(;a<e.length;){let r=e[a],s=e[a+1];if("\\"===r&&s){t+=s,a+=2;continue}if(i.test(r))break;t+=r,a++}let s=this.generate(t);if(s.length)return s}}}refresh(e){return this.reset(),this.resolve(e),this}reset(){return this.animations=new Map,this.variables=new Map,this.atRules=new Map,this.selectors=new Map,this.components=new Map,this.classRules=new Map,this.definedRules.length=0,this.baseLayer.reset(),this.themeLayer.reset(),this.presetLayer.reset(),this.componentsLayer.reset(),this.generalLayer.reset(),this.animationsNonLayer.reset(),this}destroy(){return this.reset(),this}add(...e){for(let t of e){if(this.classRules.get(t))continue;let e=this.generate(t);e.length&&(e.forEach(e=>e.layer.insert(e)),this.classRules.set(t,e))}return this}remove(...e){for(let t of e){let e=this.classRules.get(t);e&&(e.forEach(e=>e.layer.delete(e.key)),this.classRules.delete(t))}}getModeSelector(e){let t=this.config.modes?.[e];if(t)switch(t){case"class":return"."+e;case"host":return":host(."+e+")"}}}return c(p),em=p}function tc(){if(ek)return ev;ek=1;var e=eY();return ev=function(t,i){return e.AT_IDENTIFIERS.every(e=>(function e(t,i){if(t.length!==i.length)return!1;let r=Array(i.length).fill(!1);for(let a of t){let t=i.findIndex((t,i)=>!r[i]&&a.type===t.type&&a.value===t.value&&a.unit===t.unit&&a.name===t.name&&a.operator===t.operator&&e(a.children??[],t.children??[]));if(-1===t)return!1;r[t]=!0}return!0})(t?.[e]??[],i?.[e]??[]))}}function th(){if(eS)return eN;function e(e,i){if(e.type!==i.type||e.value!==i.value)return!1;let r=e.children??[],a=i.children??[];return r.length===a.length&&t(r,a)}function t(t,i){if(t.length!==i.length)return!1;let r=new Set(i);for(let i of t){let t=!1;for(let a of r)if(e(i,a)){r.delete(a),t=!0;break}if(!t)return!1}return!0}function i(e){let t=[],i=[];for(let r of e)"combinator"===r.type?(i.length>0&&(t.push(i),i=[]),t.push(r)):i.push(r);return i.length>0&&t.push(i),t}return eS=1,eN=function(r=[],a=[]){let s=i(r),n=i(a);if(s.length!==n.length)return!1;for(let i=0;i<s.length;i++){let r=s[i],a=n[i];if(Array.isArray(r)&&Array.isArray(a)){if(!t(r,a))return!1}else if(Array.isArray(r)||Array.isArray(a))return!1;else if(!e(r,a))return!1}return!0}}var td=function(){if(eC)return eI;eC=1,Object.defineProperty(eI,"__esModule",{value:!0});var e=eZ(),t=eY(),i=tu(),r=e2(),a=tt(),s=ti(),n=tl(),l=to(),o=ez(),u=ts(),c=tr(),h=tn(),d=e8(),f=function(){if(eb)return eg;eb=1;var e=ez(),t=tu(),i=e4(),r=eY();return eg=function(a,s=new t){let n=[],l=[];for(let e of a)e.includes(r.__UNSORTED__)?l.push(e):n.push(e);s.add(...n);let o=new Set,u=[...s.componentsLayer.rules.filter(e=>!e.fixedClass||!o.has(e.fixedClass)&&(o.add(e.fixedClass),!0)),...s.generalLayer.rules,...s.baseLayer.rules,...s.presetLayer.rules],c=new Set(s.baseLayer.rules),h=new Set(s.presetLayer.rules),d=e=>c.has(e)?4:h.has(e)?5:e.atRules?3:e.mode?2:+!!e.selectorNodes?.length,f=t=>t.fixedClass?0:t.type===e.Utility?1:2,p=u.map(e=>({rule:e,sortKey:[d(e),f(e)]})).sort((e,t)=>{for(let i=0;i<e.sortKey.length;i++)if(e.sortKey[i]!==t.sortKey[i])return e.sortKey[i]-t.sortKey[i];return e.rule.fixedClass&&t.rule.fixedClass?e.rule.fixedClass.localeCompare(t.rule.fixedClass,void 0,{numeric:!0}):i.default(e.rule,t.rule)}).map(e=>e.rule.fixedClass||e.rule.name);return s.remove(...n),[...p,...[...n.filter(e=>-1===p.indexOf(e)),...l].sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0}))]}}(),p=tc(),m=th(),y=function(){if(eR)return eE;eR=1;var e=th(),t=tc();return eE=function(i,r){return i.mode===r.mode&&e(i.selectorNodes,r.selectorNodes)&&t(i.atRules,r.atRules)}}(),g=e_?ex:(e_=1,ex=function(e={},t={}){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(e=>e in t)}),b=function(){if(eA)return ew;eA=1;var e=tu();return ew=function(t,i=new e){let r="";return i.add(...t),r=i.text,i.remove(...t),r}}(),v=function(){if(eO)return e$;eO=1;var e=eF();return e$=function(t){return Object.hasOwnProperty.call(e,t)}}(),k=e0(),N=eJ(),S=e1(),E=e5(),R=e3(),x=e9(),_=eT?eL:(eT=1,eL=function(e){if(1!==e.length)return;let t=e[0];if("number"===t.type)return t}),w=e4(),A=eM(),$=eK(),O=eG(),L=eF(),T=eW(),C=ej(),V=eX(),I=eq(),U=eH();return eI.config=e.config,eI.ANIMATION_SIGN=t.ANIMATION_SIGN,eI.AT_COMPARABLE_FEATURES=t.AT_COMPARABLE_FEATURES,eI.AT_COMPARISON_OPERATORS=t.AT_COMPARISON_OPERATORS,eI.AT_IDENTIFIERS=t.AT_IDENTIFIERS,eI.AT_LOGICAL_OPERATORS=t.AT_LOGICAL_OPERATORS,eI.AT_SIGN=t.AT_SIGN,eI.BASE_UNIT_REGEX=t.BASE_UNIT_REGEX,eI.BORDER_STYLE_VALUES=t.BORDER_STYLE_VALUES,eI.CLASS_ATTRIBUTES=t.CLASS_ATTRIBUTES,eI.CLASS_DECLARATIONS=t.CLASS_DECLARATIONS,eI.CLASS_FUNCTIONS=t.CLASS_FUNCTIONS,eI.COLOR_VALUE_REGEX=t.COLOR_VALUE_REGEX,eI.COMPARISION_OPERATORS=t.COMPARISION_OPERATORS,eI.DELIMITER_SIGN=t.DELIMITER_SIGN,eI.IMAGE_VALUE_REGEX=t.IMAGE_VALUE_REGEX,eI.NUMBER_VALUE_REGEX=t.NUMBER_VALUE_REGEX,eI.OFFICIAL_URL=t.OFFICIAL_URL,eI.QUERY_COMPARISON_OPERATORS=t.QUERY_COMPARISON_OPERATORS,eI.QUERY_LOGICAL_OPERATORS=t.QUERY_LOGICAL_OPERATORS,eI.SELECTOR_COMBINATORS=t.SELECTOR_COMBINATORS,eI.SELECTOR_SIGNS=t.SELECTOR_SIGNS,eI.SEPARATOR_SIGN=t.SEPARATOR_SIGN,eI.SEPARATOR_SIGNS=t.SEPARATOR_SIGNS,eI.TRANSITION_SIGN=t.TRANSITION_SIGN,eI.UNIT_REGEX=t.UNIT_REGEX,eI.VALUE_DELIMITERS=t.VALUE_DELIMITERS,eI.VALUE_UNITS=t.VALUE_UNITS,eI.__UNSORTED__=t.__UNSORTED__,eI.MasterCSS=i,eI.default=i,eI.SyntaxRule=r.SyntaxRule,eI.Rule=a.Rule,eI.Layer=s,eI.SyntaxLayer=n,eI.NonLayer=l,eI.SyntaxRuleType=o,eI.VariableRule=u.default,eI.AnimationRule=c,eI.withSyntaxLayer=h,eI.extendConfig=d,eI.sortReadableClasses=f,eI.equalAtRules=p,eI.equalSelectors=m,eI.equalVariants=y,eI.equalDeclarations=g,eI.generateCSS=b,eI.isCoreRule=v,eI.parsePair=k,eI.parseValue=N,eI.parseAt=S,eI.generateAt=E,eI.parseSelector=R,eI.generateSelector=x,eI.getSingleAtNumberRuleNode=_,eI.compareRulePriority=w.default,eI.at=A,eI.selectors=$,eI.utilities=O,eI.rules=L,eI.functions=T,eI.animations=C,eI.variables=V,eI.modes=I,eI.screens=U,eI}(),tf={},tp=function(){if(eV)return tf;eV=1,Object.defineProperty(tf,"__esModule",{value:!0});let e={listeners:new Map,on(e,t){this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e)?.add(t)},off(e,t){this.listeners.get(e)?.delete(t)},emit(e,...t){this.listeners.get(e)?.forEach(e=>e(...t))}};return tf.default=e,tf.devToolsHook=e,tf.installHook=function(t=globalThis){let i=t.__MASTER_CSS_DEVTOOLS_HOOK__;return i||(t.__MASTER_CSS_DEVTOOLS_HOOK__=e)},tf}();function tm(e,t){for(let i=0;i<e.length;i++)if(e[i]===t)return i;return -1}let ty=class extends td.Layer{name;cssRuntime;rules;tokenCounts;native;constructor(e,t){super(e,t),this.name=e,this.cssRuntime=t,this.rules=[],this.tokenCounts=new Map,this.native=null}attach(){super.attach();let e=this.cssRuntime.style?.sheet;if(e&&!this.native?.parentStyleSheet){let t=e.insertRule(this.text,e.cssRules.length);this.native=e.cssRules.item(t)}}insert(e,t=this.rules.length){let i=super.insert(e,t);if(void 0===i||!this.native)return;let r=(t,r)=>{if(1===this.rules.length)return this.native.cssRules.item(r);try{let e=this.native.insertRule(t,r);return this.native.cssRules.item(e)}catch(t){console.error(t,e),this.rules.splice(i,1);return}};if("nodes"in e){let t=i;e.nodes.forEach(e=>{e.native=r(e.text,t),e.native&&t++})}else e.native=r(e.text,i);return i}detach(){super.detach();let e=this.cssRuntime.style?.sheet;if(e&&this.native?.parentStyleSheet){let t=tm(e.cssRules,this.native);-1!==t&&e.deleteRule(t)}}delete(e){let t=super.delete(e);if(!t||!this.native)return;let i=e=>{if(!e)return;let t=tm(this.native.cssRules,e);if(-1!==t)try{this.native.deleteRule(t)}catch(t){console.error(t,e)}};return"nodes"in t?t.nodes.forEach(e=>i(e.native)):i(t.native),t}reset(){super.reset();let e=this.cssRuntime.style?.sheet;if(this.native&&e){let t=tm(e.cssRules,this.native);-1!==t&&e.deleteRule(t),this.native=null}}},tg=td.withSyntaxLayer(ty);class tb extends td.MasterCSS{root;customConfig;static instances=new WeakMap;host;container;baseLayer;themeLayer;presetLayer;componentsLayer;generalLayer;classCounts;observer;progressive;observing;constructor(e=document,t=td.config){super(t),this.root=e,this.customConfig=t,this.baseLayer=new tg("base",this),this.themeLayer=new ty("theme",this),this.presetLayer=new tg("preset",this),this.componentsLayer=new tg("components",this),this.generalLayer=new tg("general",this),this.classCounts=new Map,this.progressive=!1,this.observing=!1,this.root instanceof Document||this.root instanceof HTMLDocument?(this.root.defaultView.globalThis.cssRuntime=this,this.container=this.root.head,this.host=this.root.documentElement):(this.container=this.root,this.host=this.root.host),globalThis.CSSRuntime.instances.set(this.root,this),__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:created",{cssRuntime:this})}observe(){if(this.observing)return this;if(this.root.styleSheets)for(let e of this.root.styleSheets){let{ownerNode:t}=e;if(t instanceof HTMLStyleElement&&"master"===t.id){this.style=t,this.style.sheet?.cssRules.length&&(this.progressive=!0);break}}let e=new WeakMap,t=new Set,i=e=>{let i=this.classCounts.get(e)||0;i||t.add(e),this.classCounts.set(e,i+1)};if((this.root instanceof Document||this.root instanceof HTMLDocument?this.root:this.container).querySelectorAll("[class]").forEach(t=>{let r=t.classList;r&&t.classList.forEach(i),e.set(t,new Set(r))}),this.progressive){let e=this.hydrate(this.style.sheet.cssRules);for(let i of t)e.allSyntaxRules.find(e=>(e.fixedClass||e.name)===i)||this.add(i)}else this.style=document.createElement("style"),this.style.id="master",this.style.setAttribute("blocking","render"),this.container.append(this.style),this.style.sheet.insertRule(this.layerStatementRule.text),this.layerStatementRule.native=this.style.sheet.cssRules.item(0),t.forEach(e=>this.add(e));return this.observer=new MutationObserver(t=>{let i=new Map,r=new Map,a=new Set,s=new WeakSet,n=(e,t)=>i.set(e,(i.get(e)||0)+t),l=t=>{let i=new Set(e.get(t)||[]),r=new Set(t.classList);for(let e of r)i.has(e)||n(e,1);for(let e of i)r.has(e)||n(e,-1);e.set(t,r)},o=t=>{for(let i of e.get(t)||[])n(i,-1);e.delete(t)};for(let e of t)if("childList"===e.type){for(let t of e.addedNodes)t instanceof Element&&t.isConnected&&r.set(t,(r.get(t)||0)+1);for(let t of e.removedNodes)t instanceof Element&&!t.isConnected&&r.set(t,(r.get(t)||0)-1)}else"attributes"===e.type&&"class"===e.attributeName&&a.add(e.target);let u=(e,t,i)=>{if(i.has(e))r.delete(e);else for(let r of(i.add(e),t(e),e.children))u(r,t,i)};for(let[e,t]of r)t>0?u(e,l,s):t<0&&!e.isConnected&&u(e,o,s);for(let e of a)s.has(e)||l(e);for(let[e,t]of i){let i=this.classCounts.get(e)||0,r=i+t;r>0?(this.classCounts.set(e,r),0===i&&this.add(e)):(this.classCounts.delete(e),this.remove(e))}globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:mutated",{records:t,classCounts:i,cssRuntime:this})}),this.observer.observe(this.root,{childList:!0,attributes:!0,attributeFilter:["class"],attributeOldValue:!0,subtree:!0}),this.progressive||this.host.removeAttribute("hidden"),this.observing=!0,globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:observed",{cssRuntime:this}),this}hydrate(e){let t=[],i=new CSSStyleSheet,r={allSyntaxRules:[]};for(let r=0;r<e.length;r++){let a=e[r];if("CSSLayerBlockRule"===a.constructor.name)if("theme"===a.name){let e;this.themeLayer.native=a;let t=new Map;for(let e of a.cssRules)t.set(e.cssText.trim(),e);for(let r of a.cssRules){if(!t.has(r.cssText))continue;let a=("CSSMediaRule"===r.constructor.name?r.cssRules[0]:r).style[0].slice(2),s=this.variables.get(a);s&&(e=new td.VariableRule(a,s,this),this.themeLayer.rules.push(e),this.themeLayer.tokenCounts.set(e.name,0),e.nodes.forEach(e=>{let r=i.insertRule(e.text),a=i.cssRules.item(r);if(a){let i=a.cssText.trim(),r=t.get(i);if(r){e.native=r,t.delete(i);return}}}))}this.themeLayer.rules.length&&this.rules.push(this.themeLayer)}else t.push(a);else if("CSSLayerStatementRule"===a.constructor.name)this.layerStatementRule.native=a;else if("CSSKeyframesRule"===a.constructor.name){let e=this.animations.get(a.name);if(!e)continue;let t=new td.AnimationRule(a.name,e,this);t.native=a,this.animationsNonLayer.rules.push(t),this.rules.push(t),this.animationsNonLayer.tokenCounts.set(t.name,0)}}for(let e of t){let t;switch(e.name){case"base":t=this.baseLayer;break;case"preset":t=this.presetLayer;break;case"components":t=this.componentsLayer;break;case"general":t=this.generalLayer;break;default:console.error(`Cannot recognize the layer \`${e.name}\`. (https://rc.css.master.co/messages/hydration-errors)`);continue}t.native=e;let a=new Map;for(let t of e.cssRules)a.set(t.cssText.trim(),t);for(let s of e.cssRules){if(!a.has(s.cssText))continue;let e=this.getSelectorText(s);if(!e){console.error(`Cannot get the selector text from \`${s.cssText}\`. (${t.name}) (https://rc.css.master.co/messages/hydration-errors)`);continue}let n=this.createFromSelectorText(e);if(n)for(let e of n){t.rules.push(e),t.insertVariables(e),t.insertAnimations(e),r.allSyntaxRules.push(e);try{let r=i.insertRule(e.text),s=i.cssRules.item(r);if(s){let t=s.cssText.trim(),i=a.get(t);if(i){e.native=i,a.delete(t);continue}}console.error(`Cannot retrieve CSS rule for \`${e.text}\`. (${t.name}) (https://rc.css.master.co/messages/hydration-errors)`)}catch(e){}}else console.error(`Cannot recognize \`${s.cssText}\`. (${t.name}) (https://rc.css.master.co/messages/hydration-errors)`)}t.rules.length&&this.rules.push(t)}return globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:hydrated",{cssRuntime:this,result:r}),r}getSelectorText(e){return e instanceof CSSStyleRule?e.selectorText:e instanceof CSSGroupingRule?this.getSelectorText(e.cssRules.item(0)):void 0}disconnect(){if(this.observing)return this.observer&&(this.observer.disconnect(),this.observer=void 0),this.observing=!1,this.reset(),this.classCounts.clear(),this.progressive||(this.style?.remove(),this.style=null),globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:disconnected",{cssRuntime:this}),this}refresh(e=this.customConfig){if(!this.observing||!this.style.sheet)return this;for(let e=1;e<=this.style.sheet.cssRules.length-1;e++)this.style.sheet.deleteRule(e);return super.refresh(e),this.classCounts.forEach((e,t)=>{this.add(t)}),globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:refreshed",{cssRuntime:this,customConfig:e}),this}destroy(){return this.disconnect(),globalThis.CSSRuntime.instances.delete(this.root),globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:destroyed",{cssRuntime:this}),this}}function tv(e,t=document,i=!0){let r=globalThis.CSSRuntime.instances.get(t);return r||(r=new tb(t,e),i&&r.observe()),r}globalThis.CSSRuntime||(globalThis.CSSRuntime=tb),tp.installHook();let tk=window.masterCSSConfigs,tN=window.masterCSSConfig;if(tN){let e=[];tk&&e.push(...tk),tN.extends&&e.push(...tN.extends),tv({...tN,extends:e})}else tk?tv({extends:tk}):tv()}();
|
|
1
|
+
!function(){var e,t,i,r,a,s,n,l,o,u,c,h,d,f,p,m,y,g,b,v,k,N,S,E,R,x,_,w,A,$,O,L,T,C,V,I,U,M,K,G,j,B,X,D,z,P,Y,F,q,W,H,Z,Q,J,ee,et,ei,er,ea,es,en,el,eo,eu,ec,eh,ed,ef,ep,em,ey,eg,eb,ev,ek,eN,eS,eE,eR,ex,e_,ew,eA,e$,eO,eL,eT,eC,eV,eI={},eU={};function eM(){return t?e:(t=1,e={all:"media(all)",print:"media(print)",screen:"media(screen)",speech:"media(speech)",landscape:"media(orientation:landscape)",portrait:"media(orientation:portrait)",motion:"media(prefers-reduced-motion:no-preference)","reduce-motion":"media(prefers-reduced-motion:reduce)",base:"layer(base)",preset:"layer(preset)",start:"starting-style",w:"width",h:"height"})}function eK(){return r?i:(r=1,i={":first":":first-child",":last":":last-child",":nth-last":":nth-last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth":":nth-child",":only":":only-child",":rtl":":dir(rtl)",":ltr":":dir(ltr)","::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","::slider-runnable-track":"::-webkit-slider-runnable-track","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress"})}function eG(){return s?a:(s=1,a={container:{"container-type":"inline-size"},square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%","aspect-ratio":"1/1"},hidden:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},top:{top:0},left:{left:0},right:{right:0},bottom:{bottom:0},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":{"word-break":"break-word"},"wrap-break-word":{"overflow-wrap":"break-word"},"wrap-anywhere":{"overflow-wrap":"anywhere"},"wrap-normal":{"overflow-wrap":"normal"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}})}function ej(){return l?n:(l=1,n={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}})}function eB(){if(h)return c;function e(e){let t="undefined"!=typeof Buffer?Buffer:null;return!!t&&e instanceof t||e instanceof Date||e instanceof RegExp}function t(e){if(("undefined"!=typeof Buffer?Buffer:null)&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw Error("Unexpected situation")}function i(e,t){return"__proto__"===t?void 0:e[t]}return h=1,c=function r(...a){let s,n,l={};return a.forEach(function(a){"object"!=typeof a||null===a||Array.isArray(a)||Object.keys(a).forEach(function(o){if(n=i(l,o),(s=i(a,o))!==l){if("object"!=typeof s||null===s){l[o]=s;return}if(Array.isArray(s)){l[o]=function i(a){let s=[];return a.forEach(function(a,n){"object"==typeof a&&null!==a?Array.isArray(a)?s[n]=i(a):e(a)?s[n]=t(a):s[n]=r({},a):s[n]=a}),s}(s);return}if(e(s)){l[o]=t(s);return}else if("object"!=typeof n||null===n||Array.isArray(n)){l[o]=r({},s);return}else{l[o]=r(n,s);return}}})}),l}}function eX(){if(f)return d;f=1;var e=u?o:(u=1,o={gray:{5:"#f6f5f7",10:"#efeef0",20:"#cdccce",30:"#a2a1a3",40:"#89888a",50:"#737274",60:"#585759",70:"#444345",80:"#323133",90:"#29282a",95:"#1d1c1d"},slate:{5:"#f8f9fb",10:"#eff2f9",20:"#c8d0e3",30:"#9fabc6",40:"#7c8cab",50:"#5f7395",60:"#455572",70:"#37455d",80:"#283348",90:"#1d273a",95:"#182030"},brown:{5:"#fff6f0",10:"#feefe3",20:"#f3bea4",30:"#e7976e",40:"#da7c4d",50:"#cc6633",60:"#b65325",70:"#9d4119",80:"#833111",90:"#692007",95:"#431304"},orange:{5:"#fff5ea",10:"#fff5df",20:"#ffcb9e",30:"#ff9b47",40:"#ff8528",50:"#ff6c0a",60:"#e05200",70:"#bc3e00",80:"#992d00",90:"#701d00",95:"#471100"},amber:{5:"#fff9eb",10:"#fff4db",20:"#ffe099",30:"#ffc133",40:"#ffb10a",50:"#f99e00",60:"#e57e00",70:"#c15d00",80:"#a34900",90:"#753200",95:"#4c1f00"},yellow:{5:"#fffae5",10:"#fffed1",20:"#ffe993",30:"#ffd233",40:"#ffc300",50:"#efaf00",60:"#d69200",70:"#b77400",80:"#9e5c00",90:"#753c00",95:"#4c2600"},lime:{5:"#f5ffe5",10:"#f5ffd6",20:"#d1fb8d",30:"#acec46",40:"#91d91a",50:"#77c012",60:"#61a60c",70:"#4c8d07",80:"#367604",90:"#256000",95:"#1b3d00"},green:{5:"#e7fdea",10:"#dbfee4",20:"#a5f7b8",30:"#35ed66",40:"#00d655",50:"#00c147",60:"#00ad3f",70:"#008e34",80:"#007a2c",90:"#006023",95:"#003d16"},beryl:{5:"#e0fef2",10:"#d2fff7",20:"#6cffd4",30:"#0fefa4",40:"#04e09e",50:"#04cb8f",60:"#00b277",70:"#009360",80:"#007f50",90:"#00663e",95:"#003d24"},teal:{5:"#dbfefd",10:"#cfffff",20:"#7ffff6",30:"#00f4e4",40:"#00e4d4",50:"#00ccc8",60:"#00aeb7",70:"#0092a3",80:"#00798e",90:"#005d75",95:"#003747"},cyan:{5:"#e0ffff",10:"#d1ffff",20:"#7ff6ff",30:"#1ee1ff",40:"#00ccf9",50:"#00b3ea",60:"#0099d6",70:"#007dbc",80:"#0067a8",90:"#005089",95:"#003156"},sky:{5:"#e5f5ff",10:"#d9f8ff",20:"#a3deff",30:"#6bc6ff",40:"#34b2fd",50:"#059fff",60:"#008df9",70:"#0073e0",80:"#005cc6",90:"#0041a3",95:"#002566"},blue:{5:"#e5f3fe",10:"#dbf2fe",20:"#add7ff",30:"#70b0ff",40:"#4c93fd",50:"#3a7cff",60:"#2563fd",70:"#1b53ec",80:"#1947d1",90:"#1735a2",95:"#102069"},indigo:{5:"#f0f1fe",10:"#e9ecfe",20:"#c8cdfe",30:"#939eff",40:"#7e81fe",50:"#7068ff",60:"#5b4cfd",70:"#4e39ed",80:"#4732d2",90:"#3623a3",95:"#26176c"},violet:{5:"#f2efff",10:"#efe8ff",20:"#d7c5ff",30:"#b198fe",40:"#9a70ff",50:"#8e56fe",60:"#812fff",70:"#7407f2",80:"#6405d1",90:"#4f05a3",95:"#35036e"},purple:{5:"#f6f0ff",10:"#f6e8fe",20:"#e2bffe",30:"#c492fd",40:"#b266ff",50:"#a849fe",60:"#9514ff",70:"#8200e5",80:"#7100c1",90:"#58008e",95:"#3e0060"},fuchsia:{5:"#faf0ff",10:"#fde8fe",20:"#f0baff",30:"#dd89fe",40:"#d760fe",50:"#cf33ff",60:"#b700e5",70:"#a200c6",80:"#8700a3",90:"#660175",95:"#480051"},pink:{5:"#fef1f9",10:"#fee9f8",20:"#ffb8df",30:"#f986c1",40:"#fa65b2",50:"#f747a2",60:"#ef2188",70:"#d61673",80:"#b80c5c",90:"#8f0543",95:"#64032f"},crimson:{5:"#ffeff2",10:"#ffe8ec",20:"#ffbac7",30:"#ff849d",40:"#ff6684",50:"#fc4065",60:"#ed2a51",70:"#d7173e",80:"#bb1536",90:"#8f132c",95:"#620e1f"},red:{5:"#ffefef",10:"#fee8e8",20:"#ffbcbc",30:"#ff8787",40:"#fd5f5f",50:"#f73f3f",60:"#e52e2e",70:"#d01b1b",80:"#b81919",90:"#921515",95:"#650f0f"}});return d=eB()(e,{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","font-family":{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"]},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},current:"currentColor",frame:{neutral:{"@light":"$slate-60","@dark":"$gray-30"},light:{"@light":"$slate-60/.2","@dark":"$gray-30/.2"},lighter:{"@light":"$slate-60/.16","@dark":"$gray-30/.16"},lightest:{"@light":"$slate-60/.12","@dark":"$gray-30/.12"}},white:"#ffffff",black:"#000000",base:{"@light":"$white","@dark":"$gray-95"},canvas:{"@light":"$slate-5","@dark":"$gray-90"},surface:{"@light":"$white","@dark":"$gray-80"},invert:{"@light":"$black","@dark":"$white"},gray:{"@light":"$gray-30","@dark":"$gray-40",active:{"@light":"$gray-40","@dark":"$gray-30"},text:{"@light":"$gray-90","@dark":"$gray-95"}},slate:{"@light":"$slate-30","@dark":"$slate-40",active:{"@light":"$slate-40","@dark":"$slate-30"},text:{"@light":"$slate-90","@dark":"$slate-95"}},brown:{"@light":"$brown-40","@dark":"$brown-50",active:{"@light":"$brown-50","@dark":"$brown-40"},text:{"@light":"$brown-90","@dark":"$brown-95"}},orange:{"@light":"$orange-40","@dark":"$orange-50",active:{"@light":"$orange-50","@dark":"$orange-40"},text:{"@light":"$orange-90","@dark":"$orange-95"}},amber:{"@light":"$amber-40","@dark":"$amber-50",active:{"@light":"$amber-50","@dark":"$amber-30"},text:{"@light":"$amber-90","@dark":"$amber-95"}},yellow:{"@light":"$yellow-40","@dark":"$yellow-50",active:{"@light":"$yellow-50","@dark":"$yellow-30"},text:{"@light":"$yellow-90","@dark":"$yellow-95"}},lime:{"@light":"$lime-40","@dark":"$lime-50",active:{"@light":"$lime-50","@dark":"$lime-30"},text:{"@light":"$lime-90","@dark":"$lime-95"}},green:{"@light":"$green-40","@dark":"$green-50",active:{"@light":"$green-50","@dark":"$green-30"},text:{"@light":"$green-90","@dark":"$green-95"}},beryl:{"@light":"$beryl-40","@dark":"$beryl-50",active:{"@light":"$beryl-50","@dark":"$beryl-30"},text:{"@light":"$beryl-90","@dark":"$beryl-95"}},teal:{"@light":"$teal-40","@dark":"$teal-50",active:{"@light":"$teal-50","@dark":"$teal-30"},text:{"@light":"$teal-90","@dark":"$teal-95"}},cyan:{"@light":"$cyan-40","@dark":"$cyan-50",active:{"@light":"$cyan-50","@dark":"$cyan-30"},text:{"@light":"$cyan-90","@dark":"$cyan-95"}},sky:{"@light":"$sky-60","@dark":"$sky-50",active:{"@light":"$sky-70","@dark":"$sky-40"},text:"$white"},blue:{"@light":"$blue-60","@dark":"$blue-50",active:{"@light":"$blue-70","@dark":"$blue-40"},text:"$white"},indigo:{"@light":"$indigo-60","@dark":"$indigo-50",active:{"@light":"$indigo-70","@dark":"$indigo-40"},text:"$white"},violet:{"@light":"$violet-60","@dark":"$violet-50",active:{"@light":"$violet-70","@dark":"$violet-40"},text:"$white"},purple:{"@light":"$purple-60","@dark":"$purple-50",active:{"@light":"$purple-70","@dark":"$purple-40"},text:"$white"},fuchsia:{"@light":"$fuchsia-60","@dark":"$fuchsia-50",active:{"@light":"$fuchsia-70","@dark":"$fuchsia-40"},text:"$white"},pink:{"@light":"$pink-60","@dark":"$pink-50",active:{"@light":"$pink-70","@dark":"$pink-40"},text:"$white"},crimson:{"@light":"$crimson-60","@dark":"$crimson-50",active:{"@light":"$crimson-70","@dark":"$crimson-40"},text:"$white"},red:{"@light":"$red-60","@dark":"$red-50",active:{"@light":"$red-70","@dark":"$red-40"},text:"$white"},text:{invert:{"@light":"$white","@dark":"$black"},strong:{"@light":"$slate-95","@dark":"$gray-10"},neutral:{"@light":"$slate-70","@dark":"$gray-30"},lightest:{"@light":"$slate-30","@dark":"$gray-60"},lighter:{"@light":"$slate-40","@dark":"$gray-50"},light:{"@light":"$slate-50","@dark":"$gray-40"},gray:{"@light":"$gray-60","@dark":"$gray-30"},slate:{"@light":"$slate-60","@dark":"$slate-30"},brown:{"@light":"$brown-60","@dark":"$brown-30"},orange:{"@light":"$orange-60","@dark":"$orange-30"},amber:{"@light":"$amber-60","@dark":"$amber-40"},yellow:{"@light":"$yellow-60","@dark":"$yellow-40"},lime:{"@light":"$lime-70","@dark":"$lime-40"},green:{"@light":"$green-70","@dark":"$green-40"},beryl:{"@light":"$beryl-70","@dark":"$beryl-40"},teal:{"@light":"$teal-70","@dark":"$teal-40"},cyan:{"@light":"$cyan-70","@dark":"$cyan-40"},sky:{"@light":"$sky-70","@dark":"$sky-30"},blue:{"@light":"$blue-60","@dark":"$blue-30"},indigo:{"@light":"$indigo-60","@dark":"$indigo-30"},violet:{"@light":"$violet-60","@dark":"$violet-30"},purple:{"@light":"$purple-60","@dark":"$purple-30"},fuchsia:{"@light":"$fuchsia-60","@dark":"$fuchsia-30"},pink:{"@light":"$pink-60","@dark":"$pink-30"},crimson:{"@light":"$crimson-60","@dark":"$crimson-30"},red:{"@light":"$red-60","@dark":"$red-30"}}})}function eD(){return m?p:(m=1,p=function(e){let t;if("undefined"!=typeof CSS)return CSS.escape(e);if(0==arguments.length)throw TypeError("`CSS.escape` requires an argument.");let i=String(e),r=i.length,a=-1,s="",n=i.charCodeAt(0);if(1==r&&45==n)return"\\"+i;for(;++a<r;){if(0==(t=i.charCodeAt(a))){s+="�";continue}if(t>=1&&t<=31||127==t||0==a&&t>=48&&t<=57||1==a&&t>=48&&t<=57&&45==n){s+="\\"+t.toString(16)+" ";continue}if(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){s+=i.charAt(a);continue}s+="\\"+i.charAt(a)}return s})}function ez(){return g?y:(g=1,y={Utility:-4,NativeShorthand:-3,Shorthand:-2,Native:-1,Normal:0})}var eP={};function eY(){if(b)return eP;b=1;let e=new URL("https://rc.css.master.co");return eP.ANIMATION_SIGN="@",eP.AT_COMPARABLE_FEATURES=["width","height","resolution"],eP.AT_COMPARISON_OPERATORS=[">=","<=",">","<","="],eP.AT_IDENTIFIERS=["container","starting-style","supports","media","layer"],eP.AT_LOGICAL_OPERATORS={"&":"and","!":"not",not:"not",and:"and",or:"or",only:"only",",":"or"},eP.AT_SIGN="@",eP.BASE_UNIT_REGEX=/^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m,eP.BORDER_STYLE_VALUES=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],eP.CLASS_ATTRIBUTES=["class","className"],eP.CLASS_DECLARATIONS=["components"],eP.CLASS_FUNCTIONS=["clsx","cva","ctl","cv","class","classnames","classVariant","styled(?:\\s+)?(?:\\.\\w+)?","classList(?:\\s+)?\\.(?:add|remove|toggle|replace)"],eP.COLOR_VALUE_REGEX=/(?:#|(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla|light-dark)\(.*\)|(?:\$colors)(?![a-zA-Z0-9-]))/,eP.COMPARISION_OPERATORS=[">=","<=",">","<","="],eP.DELIMITER_SIGN="|",eP.IMAGE_VALUE_REGEX=/(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)/,eP.NUMBER_VALUE_REGEX=/(?:[\d.]|(?:max|min|calc|clamp)\([^|]*\))/,eP.OFFICIAL_URL=e,eP.QUERY_COMPARISON_OPERATORS=[">","<","="],eP.QUERY_LOGICAL_OPERATORS=["&"],eP.SELECTOR_COMBINATORS=["_",">","+","~"],eP.SELECTOR_SIGNS=[":","_",">","+","~"],eP.SEPARATOR_SIGN=",",eP.SEPARATOR_SIGNS=[",","|"],eP.TRANSITION_SIGN="~",eP.UNIT_REGEX=/^([+-.]?\d+(?:\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/,eP.VALUE_DELIMITERS={"(":")","'":"'",'"':'"',"{":"}"},eP.VALUE_UNITS=["%","cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","grad","rad","turn","s","ms","hz","khz","dpi","dpcm","dppx","x","fr","db","st"],eP.__UNSORTED__="__UNSORTED__",eP}function eF(){if(S)return N;S=1;var e=eD(),t=ez(),i=eY(),r=function(){if(k)return v;k=1;var e=eY();return v=function(t){if(t.length<2)return t;let i=!1,r=!1;for(let a of t)("string"===a.type&&e.BORDER_STYLE_VALUES.includes(a.value)||"variable"===a.type&&e.BORDER_STYLE_VALUES.includes(String(a.variable?.value)))&&(i=!0),"function"===a.type&&"var"===a.name&&(r=!0);return i||r||t.push({type:"separator",value:" ",token:"|"},{type:"string",value:"solid",token:"solid"}),t}}();return N={group:{matcher:/^(?:.+?[*_>~+])?\{.+?\}/,type:t.Shorthand,analyze(e){let t=0;for(;t<e.length&&("{"!==e[t]||"\\"===e[t-1]);t++);return[e.slice(t),e.slice(0,t)]},declare(t){let r={},a=e=>{let t=e.indexOf(":");-1!==t&&(r[e.slice(0,t)]=e.slice(t+1))},s=t=>{var i=t.text;let r=i.slice(e(t.name).length).match(/\{(.*)\}/)?.[1].split(";");if(r)for(let e of r)a(e);if(t.animationNames)for(let e of(this.animationNames||(this.animationNames=new Set),t.animationNames))this.animationNames.add(e);if(t.variableNames)if(this.variableNames)for(let e of t.variableNames)this.variableNames.add(e);else this.variableNames=new Set(t.variableNames)},n=[],l="",o=()=>{l&&(n.push(l.replace(/ /g,"|")),l="")},u=1;for(let e of(!function e(r){for(;u<t.length;u++){let a=t[u];if(!r){if(";"===a){o();continue}if("}"===a)break}if(l+=a,r===a){if("'"===r||'"'===r){let e=0;for(let t=l.length-2;"\\"===l[t];t--)e++;if(e%2)continue}break}a in i.VALUE_DELIMITERS&&"'"!==r&&'"'!==r&&(u++,e(i.VALUE_DELIMITERS[a]))}}(""),o(),n)){let t=this.css.generate(e,this.mode);if(t.length)for(let e of t)s(e);else a(e)}return r}},variable:{matcher:/^\$[\w-]+:/,type:t.Shorthand,declare(e){return{["--"+this.keyToken.slice(1,-1)]:e}}},"font-size":{ambiguousKeys:["font","f"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"font-weight":{ambiguousKeys:["font","f"],ambiguousValues:["bolder"],type:t.Native},"font-family":{ambiguousKeys:["font","f"],type:t.Native},"font-smoothing":{ambiguousKeys:["font","f"],ambiguousValues:["antialiased","subpixel-antialiased"],type:t.Native,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"};default:return{"font-smooth":e}}}},"font-style":{ambiguousKeys:["font","f"],ambiguousValues:["normal","italic","oblique"],type:t.Native,unit:"deg"},"font-variant-numeric":{ambiguousKeys:["font","f"],ambiguousValues:["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"],type:t.Native},"font-variant":{ambiguousKeys:["font","f"],type:t.NativeShorthand},font:{subkey:"f",type:t.NativeShorthand,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},"font-feature-settings":{key:"font-feature",type:t.Native},color:{key:"fg",type:t.Native,variables:["text"]},"margin-left":{key:"ml",type:t.Native,unit:"rem",variables:["spacing"]},"margin-right":{key:"mr",type:t.Native,unit:"rem",variables:["spacing"]},"margin-top":{key:"mt",type:t.Native,unit:"rem",variables:["spacing"]},"margin-bottom":{key:"mb",type:t.Native,unit:"rem",variables:["spacing"]},"margin-x":{key:"mx",subkey:"margin-x",unit:"rem",type:t.Shorthand,declare:e=>({"margin-left":e,"margin-right":e}),variables:["spacing"]},"margin-y":{key:"my",unit:"rem",type:t.Shorthand,declare:e=>({"margin-top":e,"margin-bottom":e}),variables:["spacing"]},margin:{key:"m",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"margin-inline-start":{key:"mis",type:t.Native,unit:"rem",variables:["spacing"]},"margin-inline-end":{key:"mie",type:t.Native,unit:"rem",variables:["spacing"]},"margin-inline":{key:"mi",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"padding-left":{key:"pl",type:t.Native,unit:"rem",variables:["spacing"]},"padding-right":{key:"pr",type:t.Native,unit:"rem",variables:["spacing"]},"padding-top":{key:"pt",type:t.Native,unit:"rem",variables:["spacing"]},"padding-bottom":{key:"pb",type:t.Native,unit:"rem",variables:["spacing"]},"padding-x":{key:"px",unit:"rem",type:t.Shorthand,declare:e=>({"padding-left":e,"padding-right":e}),variables:["spacing"]},"padding-y":{key:"py",unit:"rem",type:t.Shorthand,declare:e=>({"padding-top":e,"padding-bottom":e}),variables:["spacing"]},padding:{key:"p",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"padding-inline-start":{key:"pis",type:t.Native,unit:"rem",variables:["spacing"]},"padding-inline-end":{key:"pie",type:t.Native,unit:"rem",variables:["spacing"]},"padding-inline":{key:"pi",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"flex-basis":{ambiguousKeys:["flex"],unit:"rem",type:t.Native},"flex-wrap":{ambiguousKeys:["flex"],ambiguousValues:["wrap","nowrap","wrap-reverse"],type:t.Native},"flex-grow":{ambiguousKeys:["flex"],type:t.Native},"flex-shrink":{ambiguousKeys:["flex"],type:t.Native},"flex-direction":{ambiguousKeys:["flex"],ambiguousValues:["row","row-reverse","column","column-reverse"],type:t.Native},flex:{type:t.NativeShorthand},display:{key:"d",type:t.Native},width:{key:"w",unit:"rem",type:t.Native},height:{key:"h",unit:"rem",type:t.Native},"min-width":{key:"min-w",unit:"rem",type:t.Native},"min-height":{key:"min-h",unit:"rem",type:t.Native},size:{type:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{width:t[0].text,height:1===i?t[0].text:t[2].text}}},"min-size":{key:"min",type:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"min-width":t[0].text,"min-height":1===i?t[0].text:t[2].text}}},"max-size":{key:"max",type:t.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"max-width":t[0].text,"max-height":1===i?t[0].text:t[2].text}}},"box-sizing":{ambiguousKeys:["box"],type:t.Native},"box-decoration-break":{key:"box-decoration",type:t.Native,declare:e=>({"-webkit-box-decoration-break":e,"box-decoration-break":e})},container:{type:t.NativeShorthand},"container-name":{type:t.Native},"container-type":{type:t.Native,ambiguousKeys:["container"],ambiguousValues:["size","inline-size","scroll-state"]},contain:{type:t.Native},content:{type:t.Native},"counter-increment":{type:t.Native},"counter-reset":{type:t.Native},"letter-spacing":{key:"tracking",subkey:"ls",type:t.Native,unit:"em"},"line-height":{key:"leading",subkey:"line-h",type:t.Native},"object-fit":{ambiguousKeys:["object","obj"],ambiguousValues:["contain","cover","fill","scale-down"],type:t.Native},"object-position":{ambiguousKeys:["object","obj"],ambiguousValues:["top","bottom","right","left","center"],type:t.Native},"text-align":{ambiguousKeys:["text","t"],ambiguousValues:["justify","center","left","right","start","end"],type:t.Native},"text-decoration-color":{ambiguousKeys:["text-decoration"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["text"]},"text-decoration-style":{ambiguousKeys:["text-decoration"],ambiguousValues:["solid","double","dotted","dashed","wavy"],type:t.Native},"text-decoration-thickness":{ambiguousKeys:["text-decoration"],ambiguousValues:["from-font",i.NUMBER_VALUE_REGEX],type:t.Native,unit:"em"},"text-decoration-line":{ambiguousKeys:["text-decoration"],ambiguousValues:["underline","overline","line-through"],type:t.Native},"text-decoration":{ambiguousKeys:["text","t"],ambiguousValues:["underline","overline","line-through"],unit:"rem",type:t.NativeShorthand,variables:["text"],declare:e=>({"-webkit-text-decoration":e,"text-decoration":e})},"text-underline-offset":{ambiguousKeys:["text-underline"],unit:"rem",type:t.Native,variables:["spacing"]},"text-underline-position":{ambiguousKeys:["text-underline"],ambiguousValues:["front-font","under","left","right"],type:t.Native},"text-overflow":{ambiguousKeys:["text","t"],ambiguousValues:["ellipsis","clip"],type:t.Native},"text-orientation":{ambiguousKeys:["text","t"],ambiguousValues:["mixed","upright","sideways-right","sideways","use-glyph-orientation"],type:t.Native},"text-transform":{ambiguousKeys:["text","t"],ambiguousValues:["uppercase","lowercase","capitalize"],type:t.Native},"text-rendering":{ambiguousKeys:["text","t"],ambiguousValues:["optimizeSpeed","optimizeLegibility","geometricPrecision"],type:t.Native},"text-wrap":{ambiguousKeys:["text","t"],ambiguousValues:["wrap","nowrap","balance","pretty"],type:t.NativeShorthand},"text-indent":{unit:"rem",type:t.Native},"vertical-align":{key:"v",subkey:"vertical",type:t.Native},columns:{key:"cols",type:t.NativeShorthand},"overflow-wrap":{type:t.Native},"white-space":{type:t.Native},top:{type:t.Native,unit:"rem",variables:["spacing"]},bottom:{type:t.Native,unit:"rem",variables:["spacing"]},left:{type:t.Native,unit:"rem",variables:["spacing"]},right:{type:t.Native,unit:"rem",variables:["spacing"]},inset:{unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"max-height":{key:"max-h",unit:"rem",type:t.Native},"max-width":{key:"max-w",unit:"rem",type:t.Native},opacity:{type:t.Native},visibility:{type:t.Native},clear:{type:t.Native},float:{type:t.Native},isolation:{type:t.Native},"overflow-x":{type:t.Native},"overflow-y":{type:t.Native},overflow:{type:t.NativeShorthand},"overscroll-behavior-x":{type:t.Native},"overscroll-behavior-y":{type:t.Native},"overscroll-behavior":{type:t.NativeShorthand},"z-index":{key:"z",type:t.Native},position:{type:t.Native},cursor:{type:t.Native},"pointer-events":{type:t.Native},resize:{type:t.Native},"touch-action":{type:t.Native},"word-break":{type:t.Native},"word-spacing":{type:t.Native,unit:"em"},hyphens:{type:t.Native},"user-drag":{type:t.Native,declare:e=>({"-webkit-user-drag":e,"user-drag":e})},"user-select":{type:t.Native,declare:e=>({"-webkit-user-select":e,"user-select":e})},"text-shadow":{unit:"rem",type:t.Native},"text-size":{ambiguousKeys:["text","t"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",declare:e=>({"font-size":e,"line-height":`calc(${e} + 0.875em)`}),type:t.Shorthand},"text-fill-color":{ambiguousKeys:["text","t"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["text"],declare:e=>({"-webkit-text-fill-color":e})},"text-stroke-width":{ambiguousKeys:["text-stroke"],ambiguousValues:["thin","medium","thick",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native,declare:e=>({"-webkit-text-stroke-width":e})},"text-stroke-color":{ambiguousKeys:["text-stroke"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,declare:e=>({"-webkit-text-stroke-color":e})},"text-stroke":{unit:"rem",type:t.Native,declare:e=>({"-webkit-text-stroke":e})},"text-truncate":{subkey:"lines",declare:e=>({display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e,overflow:"hidden","overflow-wrap":"break-word","text-overflow":"ellipsis"}),type:t.Shorthand},"box-shadow":{key:"shadow",subkey:"s",unit:"rem",type:t.Native},"table-layout":{type:t.Native},"transform-box":{ambiguousKeys:["transform"],type:t.Native},"transform-style":{ambiguousKeys:["transform"],ambiguousValues:["flat","preserve-3d"],type:t.Native},"transform-origin":{ambiguousKeys:["transform"],ambiguousValues:["top","bottom","right","left","center",i.NUMBER_VALUE_REGEX],unit:"px",type:t.Native},transform:{matcher:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,type:t.Native,analyze:e=>[e.startsWith("transform")?e.slice(10):e],unit:"px",variables:["spacing"]},"transition-property":{key:"~property",type:t.Native},"transition-timing-function":{key:"~easing",type:t.Native},"transition-duration":{key:"~duration",type:t.Native,unit:"ms"},"transition-delay":{key:"~delay",type:t.Native,unit:"ms"},transition:{sign:"~",analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}},type:t.NativeShorthand},"animation-delay":{key:"@delay",type:t.Native,unit:"ms"},"animation-direction":{key:"@direction",type:t.Native},"animation-duration":{key:"@duration",type:t.Native,unit:"ms"},"animation-fill-mode":{key:"@fill",type:t.Native},"animation-iteration-count":{key:"@iteration",type:t.Native},"animation-name":{key:"@name",type:t.Native,includeAnimations:!0},"animation-play-state":{key:"@play",type:t.Native},"animation-timing-function":{key:"@easing",type:t.Native},animation:{sign:"@",type:t.NativeShorthand,includeAnimations:!0,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}}},"border-collapse":{ambiguousKeys:["b","border"],ambiguousValues:["collapse","separate"],type:t.Native},"border-spacing":{unit:"rem",type:t.Native,variables:["spacing"]},"border-top-color":{ambiguousKeys:["bt","border-top"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-bottom-color":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-left-color":{ambiguousKeys:["bl","border-left"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-right-color":{ambiguousKeys:["br","border-right"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"border-x-color":{ambiguousKeys:["bx","border-x"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Shorthand,variables:["frame"],declare:e=>({"border-left-color":e,"border-right-color":e})},"border-y-color":{ambiguousKeys:["by","border-y"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Shorthand,variables:["frame"],declare:e=>({"border-top-color":e,"border-bottom-color":e})},"border-color":{ambiguousKeys:["b","border"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.NativeShorthand,variables:["frame"]},"border-top-left-radius":{key:"rtl",unit:"rem",type:t.Native},"border-top-right-radius":{key:"rtr",unit:"rem",type:t.Native},"border-bottom-left-radius":{key:"rbl",unit:"rem",type:t.Native},"border-bottom-right-radius":{key:"rbr",unit:"rem",type:t.Native},"border-top-radius":{key:"rt",unit:"rem",type:t.Shorthand,declare:e=>({"border-top-left-radius":e,"border-top-right-radius":e})},"border-bottom-radius":{key:"rb",unit:"rem",type:t.Shorthand,declare:e=>({"border-bottom-left-radius":e,"border-bottom-right-radius":e})},"border-left-radius":{key:"rl",unit:"rem",type:t.Shorthand,declare:e=>({"border-top-left-radius":e,"border-bottom-left-radius":e})},"border-right-radius":{key:"rr",unit:"rem",type:t.Shorthand,declare:e=>({"border-top-right-radius":e,"border-bottom-right-radius":e})},"border-radius":{key:"r",unit:"rem",type:t.NativeShorthand},"border-top-style":{ambiguousKeys:["bt","border-top"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-bottom-style":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-left-style":{ambiguousKeys:["bl","border-left"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-right-style":{ambiguousKeys:["br","border-right"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"border-x-style":{ambiguousKeys:["bx","border-x"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Shorthand,declare:e=>({"border-left-style":e,"border-right-style":e})},"border-y-style":{ambiguousKeys:["by","border-y"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Shorthand,declare:e=>({"border-top-style":e,"border-bottom-style":e})},"border-style":{ambiguousKeys:["b","border"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.NativeShorthand},"border-top-width":{ambiguousKeys:["bt","border-top"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-bottom-width":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-left-width":{ambiguousKeys:["bl","border-left"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-right-width":{ambiguousKeys:["br","border-right"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-x-width":{ambiguousKeys:["bx","border-x"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Shorthand,declare:e=>({"border-left-width":e,"border-right-width":e})},"border-y-width":{ambiguousKeys:["by","border-y"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Shorthand,declare:e=>({"border-top-width":e,"border-bottom-width":e})},"border-width":{ambiguousKeys:["b","border"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.NativeShorthand},"border-image-repeat":{ambiguousKeys:["border-image"],ambiguousValues:["stretch","repeat","round","space"],type:t.Native},"border-image-slice":{ambiguousKeys:["border-image"],type:t.Native},"border-image-source":{ambiguousKeys:["border-image"],ambiguousValues:[i.IMAGE_VALUE_REGEX],type:t.Native},"border-image-width":{ambiguousKeys:["border-image"],ambiguousValues:["auto",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-image-outset":{ambiguousKeys:["border-image"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"border-image":{type:t.NativeShorthand},"border-top":{key:"bt",type:t.NativeShorthand,unit:"rem",transformValueComponents:r,variables:["frame"]},"border-bottom":{key:"bb",type:t.NativeShorthand,unit:"rem",transformValueComponents:r,variables:["frame"]},"border-left":{key:"bl",type:t.NativeShorthand,unit:"rem",transformValueComponents:r,variables:["frame"]},"border-right":{key:"br",type:t.NativeShorthand,unit:"rem",transformValueComponents:r,variables:["frame"]},"border-x":{key:"bx",unit:"rem",type:t.Shorthand,transformValueComponents:r,variables:["frame"],declare:e=>({"border-left":e,"border-right":e})},"border-y":{key:"by",unit:"rem",type:t.Shorthand,transformValueComponents:r,variables:["frame"],declare:e=>({"border-top":e,"border-bottom":e})},border:{key:"b",unit:"rem",type:t.NativeShorthand,transformValueComponents:r,variables:["frame"]},"background-attachment":{ambiguousKeys:["bg"],ambiguousValues:["fixed","local","scroll"],type:t.Native},"background-blend-mode":{key:"bg-blend",type:t.Native},"background-color":{ambiguousKeys:["bg"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native},"background-clip":{key:"bg-clip",type:t.Native,declare:e=>({"-webkit-background-clip":e,"background-clip":e})},"background-origin":{key:"bg-origin",type:t.Native},"background-position":{ambiguousKeys:["bg"],ambiguousValues:["top","bottom","right","left","center"],type:t.Native,unit:"px"},"background-repeat":{ambiguousKeys:["bg"],ambiguousValues:["space","round","repeat","no-repeat","repeat-x","repeat-y"],type:t.Native},"background-size":{ambiguousKeys:["bg"],ambiguousValues:["auto","cover","contain",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},"background-image":{ambiguousKeys:["bg"],ambiguousValues:[i.IMAGE_VALUE_REGEX],type:t.Native},background:{key:"bg",type:t.NativeShorthand},gradient:{matcher:/^gradient\(/,type:t.Shorthand,declare:e=>({"background-image":"linear-"+e})},"mix-blend-mode":{key:"blend",type:t.Native},"backdrop-filter":{key:"bd",type:t.Native,declare:e=>({"-webkit-backdrop-filter":e,"backdrop-filter":e})},filter:{matcher:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,type:t.Native},fill:{type:t.Native},"stroke-dasharray":{type:t.Native},"stroke-dashoffset":{type:t.Native,variables:["spacing"]},"stroke-width":{ambiguousKeys:["stroke"],ambiguousValues:[i.NUMBER_VALUE_REGEX],type:t.Native},stroke:{type:t.Native},x:{type:t.Native,variables:["spacing"]},y:{type:t.Native,variables:["spacing"]},cx:{type:t.Native,variables:["spacing"]},cy:{type:t.Native,variables:["spacing"]},rx:{type:t.Native},ry:{type:t.Native},"grid-column-start":{key:"grid-col-start",type:t.Native},"grid-column-end":{key:"grid-col-end",type:t.Native},"grid-column-span":{key:"grid-col-span",type:t.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-column":e})},"grid-column":{key:"grid-col",type:t.NativeShorthand},"grid-columns":{key:"grid-cols",declare:e=>({display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}),type:t.Shorthand},"grid-row-start":{type:t.Native},"grid-row-end":{type:t.Native},"grid-row-span":{type:t.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-row":e})},"grid-row":{type:t.NativeShorthand},"grid-rows":{declare:e=>({display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}),type:t.Shorthand},"grid-auto-columns":{key:"grid-auto-cols",type:t.Native},"grid-auto-flow":{key:"grid-flow",type:t.Native},"grid-auto-rows":{type:t.Native},"grid-template-areas":{type:t.Native},"grid-template-columns":{key:"grid-template-cols",type:t.Native,unit:"rem"},"grid-template-rows":{type:t.Native,unit:"rem"},"grid-template":{type:t.NativeShorthand},"grid-area":{type:t.NativeShorthand},grid:{type:t.NativeShorthand},"column-gap":{key:"gap-x",unit:"rem",type:t.Native,variables:["spacing"]},"row-gap":{key:"gap-y",unit:"rem",type:t.Native,variables:["spacing"]},gap:{unit:"rem",type:t.NativeShorthand,variables:["spacing"]},order:{key:"o",type:t.Native},"break-inside":{type:t.Native},"break-before":{type:t.Native},"break-after":{type:t.Native},"aspect-ratio":{key:"aspect",type:t.Native},"column-span":{key:"col-span",type:t.Native},"align-content":{subkey:"ac",type:t.Native},"align-items":{subkey:"ai",type:t.Native},"align-self":{subkey:"as",type:t.Native},"justify-content":{subkey:"jc",type:t.Native},"justify-items":{subkey:"ji",type:t.Native},"justify-self":{subkey:"js",type:t.Native},"place-content":{type:t.NativeShorthand},"place-items":{type:t.NativeShorthand},"place-self":{type:t.NativeShorthand},"list-style-position":{ambiguousKeys:["list-style"],ambiguousValues:["inside","outside"],type:t.Native},"list-style-type":{ambiguousKeys:["list-style"],ambiguousValues:["disc","decimal"],type:t.Native},"list-style-image":{ambiguousKeys:["list-style"],ambiguousValues:[i.IMAGE_VALUE_REGEX],type:t.Native},"list-style":{type:t.NativeShorthand},"outline-color":{ambiguousKeys:["outline"],ambiguousValues:[i.COLOR_VALUE_REGEX],type:t.Native,variables:["frame"]},"outline-offset":{unit:"rem",type:t.Native,variables:["spacing"]},"outline-style":{ambiguousKeys:["outline"],ambiguousValues:i.BORDER_STYLE_VALUES,type:t.Native},"outline-width":{ambiguousKeys:["outline"],ambiguousValues:["medium","thick","thin",i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native},outline:{unit:"rem",type:t.NativeShorthand,variables:["outline-width","outline-style","outline-offset","outline-color","frame"],transformValueComponents:r},"accent-color":{key:"accent",type:t.Native},appearance:{type:t.Native},"caret-color":{key:"caret",type:t.Native,variables:["text"]},"scroll-behavior":{type:t.Native},"scroll-margin-left":{key:"scroll-ml",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-right":{key:"scroll-mr",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-top":{key:"scroll-mt",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{key:"scroll-mb",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-margin-x":{key:"scroll-mx",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-margin-left":e,"scroll-margin-right":e}),variables:["spacing"]},"scroll-margin-y":{key:"scroll-my",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-margin-top":e,"scroll-margin-bottom":e}),variables:["spacing"]},"scroll-margin":{key:"scroll-m",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"scroll-padding-left":{key:"scroll-pl",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-right":{key:"scroll-pr",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-top":{key:"scroll-pt",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{key:"scroll-pb",type:t.Native,unit:"rem",variables:["spacing"]},"scroll-padding-x":{key:"scroll-px",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-padding-left":e,"scroll-padding-right":e}),variables:["spacing"]},"scroll-padding-y":{key:"scroll-py",unit:"rem",type:t.Shorthand,declare:e=>({"scroll-padding-top":e,"scroll-padding-bottom":e}),variables:["spacing"]},"scroll-padding":{key:"scroll-p",unit:"rem",type:t.NativeShorthand,variables:["spacing"]},"scroll-snap-align":{ambiguousKeys:["scroll-snap"],ambiguousValues:["start","end","center"],type:t.Native},"scroll-snap-stop":{ambiguousKeys:["scroll-snap"],ambiguousValues:["normal","always"],type:t.Native},"scroll-snap-type":{ambiguousKeys:["scroll-snap"],ambiguousValues:["x","y","block","inline","both"],type:t.Native},"will-change":{type:t.Native},"writing-mode":{key:"writing",type:t.Native},direction:{type:t.Native},"shape-outside":{ambiguousKeys:["shape"],ambiguousValues:[/(?:inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)/],type:t.Native},"shape-margin":{ambiguousKeys:["shape"],ambiguousValues:[i.NUMBER_VALUE_REGEX],unit:"rem",type:t.Native,variables:["spacing"]},"shape-image-threshold":{type:t.Native},"clip-path":{key:"clip",type:t.Native},quotes:{type:t.Native},"mask-image":{type:t.Native,declare:e=>({"-webkit-mask-image":e,"mask-image":e})}}}function eq(){return R?E:(R=1,E={dark:"class",light:"class"})}function eW(){if(_)return x;_=1;var e=eY();let t={$:{transform(e){let t,i,r=e.indexOf(",");return -1!==r?(t=e.slice(0,r),i=e.slice(r+1)):t=e,[{type:"variable",name:t,fallback:i,token:e}]}},calc:{transform(i,r){let a=[],s=0,n=(r,l,o,u,c)=>{let h,d=a!==r,f=[],p=!1,m=!1,y=!1,g=!1,b="",v=(t,a="",n="")=>{if(!1===h&&" "!==t&&this.definition.unit&&(h=void 0,g||k()),b){if(!c){let t=e.BASE_UNIT_REGEX.exec(b);t&&(b=(t[1]*(this.css.config.baseUnit??1)).toString())}if(p||o)r.push({type:"string",value:b,token:b});else{let e={...this.parseValue(b),token:b};if(!m&&isNaN(+b)&&"number"===e.type&&(m=!0),g)isNaN(+b)?"number"===e.type?(r.push(e),y=!0):r.push(e):r.push({type:"number",value:+b,token:b});else if(d){let e={type:"string",value:b,token:b};f.push(e),r.push(e)}else r.push(e)}b=""}t&&(("+"===t||"-"===t)&&N(),a&&" "===i[s-1]&&(a=""),n&&" "===i[s+1]&&(n=""),l?r.push({type:"separator",value:t,text:t,token:t}):r.push({type:"separator",value:t,text:a+t+n,token:t})),p=!1},k=()=>{("rem"===this.definition.unit||"em"===this.definition.unit)&&r.push({type:"separator",value:"/",text:" / ",token:"/"},{type:"number",value:this.css.config.rootSize,token:String(this.css.config.rootSize)}),r.push({type:"separator",value:"*",text:" * ",token:"*"},{type:"number",value:1,unit:this.definition.unit,token:this.definition.unit})},N=()=>{!g||y||u||d&&!m||k(),g=!1,y=!1};for(;s<i.length;s++){let e=i[s];if("("===e){let i=/^([+-])/.exec(b);i&&r.push({type:"string",value:i[1],token:i[1]});let a=i?b.slice(1):b,l={type:"function",name:a,symbol:e,children:[],bypassTransform:"calc"===a,token:b};r.push(l),b="",s++;let o="$"===a||"var"===a;if(!(h=n(l.children,""!==a&&"calc"!==a&&(o||Object.prototype.hasOwnProperty.call(t,a)),p||o||g&&y,g,o)||"var"===a)&&"$"===a){let e=this.css.variables.get(l.children[0].value)?.type;h=!e||"string"===e}h&&(m=!0,y=!0)}else if(")"===e){if(v(""),m)for(let e of f)Object.assign(e,this.parseValue(e.value));return m}else if(","===e)v(e,""," ");else if(" "===e)v(e);else{let t=i[s-1];switch(e){case"+":case"-":b||")"===t?v(e," "," "):b+=e;break;case"*":this.definition.unit&&(g=!0),v(e," "," ");break;case"/":this.definition.unit&&(g=!0),v(e," "," "),p=!0;break;default:b+=e}}}v(""),N()};return n(a,!1,!1,!1,!1),"calc("+this.resolveValue(a,t.calc.unit??this.definition.unit,r,!0)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:""},"color-contrast":{unit:""},"color-mix":{unit:""},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},"light-dark":{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{},"radial-gradient":{},"conic-gradient":{},"repeating-linear-gradient":{},"repeating-radial-gradient":{},"repeating-conic-gradient":{},matrix:{unit:""},matrix3d:{unit:""},scale:{unit:""},scale3d:{unit:""},scaleX:{unit:""},scaleY:{unit:""},scaleZ:{unit:""}};return x=t}function eH(){return A?w:(A=1,w={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560})}function eZ(){if($)return eU;$=1;var e=eM(),t=eK(),i=eG(),r=ej(),a=eX(),s=eF(),n=eq(),l=eW(),o=eH();return eU.at=e,eU.selectors=t,eU.utilities=i,eU.animations=r,eU.variables=a,eU.rules=s,eU.modes=n,eU.functions=l,eU.screens=o,eU.config={at:e,selectors:t,utilities:i,rules:s,functions:l,animations:r,variables:a,modes:n,screens:o,scope:"",rootSize:16,baseUnit:4,override:!1,important:!1,defaultMode:"light"},eU}var eQ={};function eJ(){if(L)return O;L=1;var e=eY();return O=function(t,i="",r=1){if("number"==typeof t)return{unit:i,type:"number",value:"rem"===i||"em"===i?t/r:t};let a=t.match(e.UNIT_REGEX);if(a){let e=parseFloat(a[1]),s=a[2]||"";return s||"rem"!==i&&"em"!==i||(e/=r,s=i),{token:t,value:e,unit:s||i,type:"number"}}return{token:t,value:t,type:"string"}}}function e0(){return C?T:(C=1,T=function(e,t="(",i=")"){let r=[],a=null,s=null;for(let n=0;n<e.length;n++){let l=e[n],o=e[n-1];if("\\"===l){n++;continue}if(('"'===l||"'"===l)&&"\\"!==o){s===l?s=null:s||(s=l);continue}if(!s){if(e.startsWith(t,n))r.push({start:n}),n+=t.length-1;else if(e.startsWith(i,n)){let s=r.pop();s&&(a={start:s.start,end:n,pre:e.slice(r.length>0?r[r.length-1].start+t.length:0,s.start),body:e.slice(s.start+t.length,n),post:e.slice(n+i.length)}),n+=i.length-1}}}return a})}function e1(){if(G)return K;G=1;var e=eY(),t=tu(),i=e0(),r=eJ(),a=I?V:(I=1,V=function(e,t,i){let r="",a=!1,s=!1;for(let n=0;n<e.length;n++){let l=e[n],o=e[n-1];"'"!==l||"\\"===o||s?'"'!==l||"\\"===o||a||(s=!s):a=!a,l!==t||a||s?r+=l:r+=i}return r}),s=M?U:(M=1,U=function(e,t){let i=[],r="",a=!1,s=!1;for(let n=0;n<e.length;n++){let l=e[n],o=e[n-1];"'"!==l||s||"\\"===o?'"'!==l||a||"\\"===o||(s=!s):a=!a,l!==t||a||s?r+=l:(i.push(r.trim()),r="")}return r&&i.push(r.trim()),i});return K=function(n,l=new t,o=!0){let u,c,h=t=>{let i=[...t.matchAll(/([a-zA-Z0-9-:%|]+|[&|!|,|>|<|=][=]?)/g)].map(e=>e[0]),a=[],n=e=>{let t=a[a.length-1];"number"!==e.type||e.name||(t?.type==="comparison"?(e.operator=t.value,e.raw&&t.raw&&(e.raw=t.raw+e.raw),a.pop(),t=a[a.length-1],t?.type==="string"?(e.name=t.value,e.raw&&t.raw&&(e.raw=t.raw+e.raw),a.pop()):e.name="width"):(e.name="width",e.operator=">=")),a.push(e)};return i.forEach(t=>{if(e.AT_COMPARISON_OPERATORS.includes(t)){let e={type:"comparison",value:t};o&&(e.raw=t),a.push(e);return}if(t in e.AT_LOGICAL_OPERATORS){let i={type:"logical",value:e.AT_LOGICAL_OPERATORS[t]};o&&(i.raw=t),a.push(i);return}let i=l.atRules.get(t);if(!u&&!c){if(c=t,e.AT_IDENTIFIERS.includes(c)){u=c;return}u=i?i.id:e.AT_COMPARABLE_FEATURES.includes(c)?"media":c.charAt(0).match(/[a-zA-Z-]/)?"container":"media"}let h={type:"string"};if(o&&(h.raw=t),i)return void(1===i.nodes.length?n({...i.nodes[0],raw:t}):i.nodes.length&&n({raw:t,children:i.nodes}));{let[e,i]=s(t,":");if(i?(h.name=e,h.value=i):h.value=e,"container"===u||"media"===u){let{token:e,...t}=r(h.value,"rem",l.config.rootSize);Object.assign(h,t)}n(h)}}),a},d=e=>{let t=[],r=i(e);if(r){if(r.pre&&t.push(...d(r.pre)),r.body)if("supports"===u)t.push({type:"group",children:[{type:"string",value:a(r.body,"|"," ")}]});else{let e=d(r.body);e.length>1?t.push({type:"group",children:d(r.body)}):t.push(...e)}r.post&&t.push(...d(r.post))}else t.push(...h(e));return t};return{nodes:d(n),id:u||"media"}}}function e5(){return B?j:(B=1,j=function(e){let t=i=>i.map(e=>{let i="";if("children"in e){let r=t(e.children);i="group"===e.type?"("+r+")":r}else{let t="number"===e.type?String(e.value)+(e.unit||""):e.value;i="name"in e?"operator"in e?`(${e.name}${e.operator}${t})`:`(${e.name}:${t})`:t}return i}).filter(Boolean).join("layer"===e.id?".":" "),i=t(e.nodes);return"@"+e.id+(i?" "+i:"")})}function e3(){if(D)return X;D=1;var e=eY(),t=tu(),i=e0();let r=RegExp(`(?:[a-zA-Z0-9-]+)|([${e.SELECTOR_COMBINATORS.join("")}#.:,*])|(a-zA-Z0-9-)`,"g");return X=function(a,s=new t,n=!0){let l=t=>{let i=[],a="",l=0;for(let o of t.matchAll(r)){let r,u=o[0];if(l+=u.length,":"===u||"."===u||"#"===u){a+=u;continue}let c=u,h=s.selectors.get(a+u);if(h){let e=h[h.length-1];i.push(1===h.length&&e.type?{...e,raw:a+u}:{children:h,raw:a+u}),a="";continue}if(e.SELECTOR_COMBINATORS.includes(u)){if(r="combinator","_"===u){let e=t[l];"_"!==t[l-u.length-1]&&"_"!==e&&(c=" ")}}else","===u?r="separator":"*"===u?r="universal":":"===a?r="pseudo-class":"::"===a?r="pseudo-element":"."===a?r="class":"#"===a&&(r="id");i.push({value:c,...n&&{raw:a+u},...r&&{type:r}}),a=""}return i},o=(e,t=[])=>{let r=i(e);if(r){let e,{pre:i,body:a,post:s}=r;if(a){let t=i.lastIndexOf(":");-1!==t&&(e=i.slice(t),i=i.slice(0,t))}if(i&&t.push(...o(i)),a){let i=o(a);if(e){let r=l(e)[0];i.length&&(r.children=i),t.push(r)}else t.push(...i)}return s&&t.push(...o(s)),t}let a=i(e,"[","]");if(a){let{pre:e,body:i,post:r}=a;return e&&t.push(...o(e)),t.push({value:i,type:"attribute",...n&&{raw:`[${i}]`}}),r&&t.push(...o(r)),t}return l(e)};return o(a)}}function e9(){if(P)return z;P=1;var e=eY();let t={class:".","pseudo-class":":","pseudo-element":"::",attribute:"",combinator:"",id:"#"};return z=function(i,r=""){let a=e=>{if("attribute"===e.type)return`[${e.value}]`;if("combinator"===e.type)return e.value;let i=e.type&&t[e.type]||"",r=e.value?i+e.value:"";if("children"in e&&e.children?.length){let t=e.children.map(a).join("");return e.value?r+`(${t})`:r+t}return r},s="",n="",l=[];if(i.flatMap(e=>!("value"in e)&&"children"in e&&e.children?.length?e.children:e).forEach(e=>{","===e.value?(l.push(n),n=""):"of"===e.value&&"children"in e?s+=e.children.map(a).join(""):n+=a(e)}),n&&l.push(n),s){let t=s.charAt(s.length-1);e.SELECTOR_COMBINATORS.includes(t)||" "===t||(s+=" ")}return l.length?l.map(e=>s+r+e).join(","):s+r}}var e6={};function e4(){if(Y)return e6;Y=1,Object.defineProperty(e6,"__esModule",{value:!0});let e={hover:1,focus:2,active:3,disabled:4},t={">=":"<","<=":">",">":"<=","<":">="};return e6.calcRulePriority=function(i){let r=[],a=e=>{for(let[i,a]of(function(e){let i=new Map,r=(e,a=!1)=>{(e??[]).forEach((e,s,n)=>{let l=n[s-1];if("operator"in e){let r=i.get(e.name)??{},s=e.operator;switch(a&&(s=t[s]),l?.type==="logical"&&"not"===l.value&&(s=t[s]),s){case">":r.min=e.value+.02;break;case">=":r.min=e.value;break;case"<":r.max=e.value-.02;break;case"<=":r.max=e.value}i.set(e.name,r)}"children"in e&&Array.isArray(e.children)&&r(e.children,l?.type==="logical"&&"not"===l.value)})};return r(e),i})(e).entries()){let e=a.max??Number.MAX_SAFE_INTEGER,t=a.min??0;r.push([i,t,e])}};return i.atRules?.media&&a(i.atRules.media),i.atRules?.container&&a(i.atRules.container),r.sort(([e],[t])=>e.localeCompare(t,void 0,{numeric:!0})),{features:r,selector:function t(i=[]){let r=0;for(let a of i)"value"in a&&"string"==typeof a.value&&(r+=e[a.value]??0),"children"in a&&Array.isArray(a.children)&&(r+=t(a.children));return r}(i.selectorNodes??[])}},e6.default=function(e,t){let i=e=>{let t=e.selectorNodes?.length,i=!!e.atRules,r=!!e.mode;return i?3:r?2:+!!t},r=i(e),a=i(t);if(r!==a)return r-a;let s=function(e,t){let i=Math.max(e.length,t.length);for(let r=0;r<i;r++){let i=e[r],a=t[r];if(!i)return -1;if(!a)return 1;let[s,n,l]=i,[o,u,c]=a,h=s.localeCompare(o,void 0,{numeric:!0});if(0!==h)return h;let d=l-n,f=c-u;if(d!==f)return f-d;if(n!==u)return u-n;if(l!==c)return c-l}return 0}(e.priority.features||[],t.priority.features||[]);if(0!==s)return s;let n=e.priority.selector-t.priority.selector;if(0!==n)return n;let l=e.type-t.type;return 0!==l?l:e.key.localeCompare(t.key,void 0,{numeric:!0})},e6}function e2(){if(F)return eQ;F=1;var e=eD(),t=ez(),i=eY(),r=eJ(),a=e1(),s=e5(),n=e3(),l=e9(),o=e4();return eQ.SyntaxRule=class{name;css;registeredSyntax;fixedClass;native;atRules;priority;type;declarations;layer;valid;animationNames;variableNames;constructor(e,r,s,l,u){let c,h;this.name=e,this.css=r,this.registeredSyntax=s,this.fixedClass=l,this.type=t.Normal,this.valid=!0,this.resolveValue=(e,t,r,a)=>{let{functions:s}=this.css.config,n="";for(let l of e)switch(l.type){case"function":let e=s&&s[l.name];if(e?.transform&&!l.bypassTransform){let i=e.transform.call(this,this.resolveValue(l.children,e.unit??t,r,a||"calc"===l.name),r);n+=l.token=l.text="string"==typeof i?i:this.resolveValue(i,e?.unit??t,r,a)}else n+=l.token=l.text=l.name+l.symbol+this.resolveValue(l.children,e?.unit??t,r,a)+i.VALUE_DELIMITERS[l.symbol];break;case"variable":let o=this.css.variables.get(l.name);if(o){let e=(e,t)=>{if(o.modes)if(this.mode){let t=o.modes[this.mode]??o;t?.value&&e(t)}else this.variableNames?this.variableNames.add(l.name):this.variableNames=new Set([l.name]),t();else e(o)};switch(o.type){case"string":e(e=>{let i=[];this.parseValues(i,0,e.value,t,"",void 0,a,[...r,l.name]),n+=l.text=this.resolveValue(i,t,[...r,l.name],a)},()=>{n+=l.text=`var(--${l.name})`});break;case"number":e(e=>{if(a)n+=l.text=String(e.value);else{let i=this.parseValue(e.value,t);n+=l.text=i.value+(i.unit??"")}},()=>{n+=l.text=t?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let i=l.alpha?"/"+l.alpha:"";e(e=>{n+=l.text=`${e.space}(${e.value}${i})`},()=>{n+=l.text=`${o.space}(var(--${l.name})${i})`})}}else n+=l.text=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":n+=l.text?l.text:l.text=l.value;break;case"number":n+=l.text=l.value+(l.unit||"");break;default:n+=l.text=l.value}return n},this.parseValues=(e,t,r,a,s,n,l=!1,o=[])=>{let u=void 0===n,c=!u&&(n.endsWith("$")||n.endsWith("var")),h="'"===s||'"'===s,d=[","];this.definition.separators?.length&&d.push(...this.definition.separators);let f="",p=()=>{if(f){let t=!1;if(!c||e.length){let i=(i,r)=>{let a=this.css.variables.get(i),s=Object.prototype.hasOwnProperty.call(this.variables,i)?this.variables[i]:a;if(s){let a=s.name??i;if(!o.includes(a)){t=!0;let i={type:"variable",name:a,variable:this.css.variables.get(a),token:f};r&&(i.alpha=r),e.push(i)}}};if(/^\$[a-zA-Z0-9-]+(?:\/[^\/]+)?$/.test(f)){let[e,t]=f.slice(1).split("/");i(e,t)}else if(i(f),!t){let[e,t]=f.split("/");i(e,t)}}if(!t){if(!c){let e=i.BASE_UNIT_REGEX.exec(f);e&&(f=String(e[1]*(this.css.config.baseUnit??1)))}if(l)e.push({type:"string",value:f,token:f});else{let t=this.parseValue(f,a);e.push({...t,token:f})}}f=""}};for(;t<r.length;t++){let o=r[t];if(o===s){if(h){let e=0;for(let t=f.length-1;"\\"===f[t];t--)e++;if(e%2){f+=o;continue}p()}else p();return t}if(!h&&o in i.VALUE_DELIMITERS){let s=f,u={type:"function",name:s,symbol:o,children:[],token:""};e.push(u),f="";let c="("===o?this.css.config.functions?.[s]:void 0;t=this.parseValues(u.children,++t,r,c?.unit??a,i.VALUE_DELIMITERS[o],s||n||"",l||"calc"===s)}else if("|"!==o&&" "!==o||"}"===s||h&&"path"!==n){if(!h){if("."===o)if(isNaN(+r[t+1])){if(u)break}else"-"===r[t-1]&&(f+="0");else if(d.includes(o)){p(),e.push({type:"separator",value:o,text:(","===o?"":" ")+o+(","===o?"":" "),token:o});continue}else if(u&&("#"===o&&(f||e.length&&"separator"!==e[e.length-1].type)||["!","*",">","+","~",":","[","@","_"].includes(o)))break}f+=o}else p(),e.push({type:"separator",value:" ",token:o})}return p(),t},this.mode=u,this.layer=r.generalLayer,Object.assign(this,s);let{id:d,definition:f}=s,{analyze:p,transformValue:m,declare:y,transformValueComponents:g,create:b,type:v,unit:k}=f;if(this.type=v,b&&b.call(this,e),this.declarations=f.declarations,this.type===t.Utility)c=e.slice(d.length-1);else{let t;if(p)[t]=p.call(this,e);else{let i=e.indexOf(":");this.keyToken=e.slice(0,i+1),t=e.slice(i+1)}this.valueComponents=[];let i=this.parseValues(this.valueComponents,0,t,k,"",void 0,!1,f.includeAnimations?Array.from(this.css.animations.keys()):[]);this.valueToken=t.slice(0,i),c=t.slice(i)}"!"===c[0]&&(this.important=!0,c=c.slice(1)),this.stateToken=c;let N=c.split("@"),S=N[0];S&&(this.selectorNodes=n(S,r));for(let e=1;e<N.length;e++){let t=N[e];if(r.config.modes?.[t]){this.mode=t;continue}this.atToken=(this.atToken||"")+"@"+t;let i=a(t,r),s=this.atRules?.[i.id];s?s.push(...i.nodes):this.atRules={...this.atRules,[i.id]:i.nodes}}if(this.mode&&r.config.modes?.[this.mode]==="media"){let e={name:"prefers-color-scheme",value:this.mode};this.atRules?.media?this.atRules.media.push(e):this.atRules={media:[e]}}if(this.fixedClass)this.layer=r.componentsLayer;else{let e=this.atRules?.layer?.length===1&&this.atRules.layer[0];e&&("base"===e.value?(this.layer=r.baseLayer,this.atRules.layer=void 0):"preset"===e.value&&(this.layer=r.presetLayer,this.atRules.layer=void 0))}if(this.valueComponents&&(g&&(this.valueComponents=g.call(this,this.valueComponents)),h=this.resolveValue(this.valueComponents,k,[],!1),m&&(h=m.call(this,h)),y?this.declarations=y.call(this,h,this.valueComponents):d&&(this.declarations={[d]:h})),Object.entries(this.declarations??{}).length){for(let e in this.declarations)if(this.css.animations&&("animation"===e||"animation-name"===e)){let t=this.declarations[e];if(!t)continue;for(let e of t.split(" "))if(this.css.animations.has(e)){this.animationNames?this.animationNames.add(e):this.animationNames=new Set([e]);continue}}this.priority=o.calcRulePriority(this)}else this.valid=!1}get text(){if(!this.valid)return"";let e=[];for(let t in this.declarations){let i=this.declarations[t],r=t+":"+String(i);e.push(r+((this.important||this.css.config.important)&&!r.endsWith("!important")?"!important":""))}let t=this.selectorText+"{"+e.join(";")+"}";return void 0!==this.atRules&&i.AT_IDENTIFIERS.forEach(e=>{let i=this.atRules?.[e];i&&(t=s({id:e,nodes:i})+"{"+t+"}")}),t}get selectorText(){let t="";if(this.css.config.scope&&(t=this.css.config.scope+" "+t),this.mode){let e=this.css.getModeSelector(this.mode);e&&(t=e+" "+t)}let i=t+"."+e(this.fixedClass??this.name);return this.selectorNodes?l(this.selectorNodes,i):i}resolveValue;parseValues;parseValue(e,t=this.definition.unit){let i=r(e,t,this.css.config.rootSize);if(this.definition.unit&&"string"===i.type&&/^\d+\/\d+$/.test(i.value)){let[t,r]=i.value.split("/").map(Number);return{token:e,value:t/r*100,unit:"%",type:"number"}}return i}get key(){return(this.fixedClass?this.fixedClass+" ":"")+this.name}},eQ}var e7={};function e8(){if(Q)return Z;Q=1;var e=eB();return Z=function(...t){let i=t=>{let i=e({},t),r=e=>{Object.entries(e).forEach(([t,i])=>{"object"!=typeof i||Array.isArray(i)?t&&!t.startsWith("@")&&(e[t]={"":i}):r(i)})};return["components","variables"].forEach(e=>{i[e]&&r(i[e])}),i},r=(e,t=[])=>(e&&(e.extends?.length&&e.extends.forEach(e=>r("config"in e?e.config:e,t)),t.push(i(e))),t);return t.reduce((e,t)=>r(t,e),[]).reduce((t,i)=>(Object.entries(i).forEach(([i,r])=>{"animations"===i&&r?Object.assign(t.animations,r):r&&(t=e(t,{[i]:r}))}),t),{animations:{},components:{},at:{},variables:{}})}}var te={};function tt(){return J||(J=1,te.Rule=class{name;text;native;constructor(e,t){this.name=e,this.text=t}get key(){return this.name}}),te}function ti(){return et?ee:(et=1,ee=class{name;css;rules;tokenCounts;constructor(e,t){this.name=e,this.css=t,this.rules=[],this.tokenCounts=new Map}attach(){this.css.rules.push(this)}detach(){this.css.rules.splice(this.css.rules.indexOf(this),1)}insert(e,t=this.rules.length){if(!this.rules.find(({key:t})=>t===e.key))return this.rules.splice(t,0,e),this.css.rules.includes(this)||this.attach(),t}delete(e){let t=this.rules.findIndex(t=>t.key===e);if(-1===t)return;let i=this.rules[t];return this.rules.splice(t,1),0===this.rules.length&&this.detach(),i}reset(){this.rules.length=0;let e=this.css.rules.indexOf(this);-1!==e&&this.css.rules.splice(e,1),this.tokenCounts.clear()}get text(){let e=this.rules.map(({text:e})=>e).join("");return e?"@layer "+this.name+"{"+e+"}":""}})}function tr(){return er?ei:(er=1,ei=class{name;keyframes;css;native;constructor(e,t,i){this.name=e,this.keyframes=t,this.css=i}get key(){return this.name}get text(){return`@keyframes ${this.name}{`+Object.entries(this.keyframes).reduce((e,[t,i])=>{let r=Object.entries(i).map(([e,t])=>`${e}:${t}`).join(";");return e+`${t}{${r}}`},"")+"}"}})}var ta={};function ts(){if(ea)return ta;ea=1,Object.defineProperty(ta,"__esModule",{value:!0});class e{name;variable;css;mode;native;isDefaultMode;constructor(e,t,i,r){this.name=e,this.variable=t,this.css=i,this.mode=r,this.isDefaultMode=!1}get modeTrigger(){return this.mode?this.css.config.modes?.[this.mode]:void 0}get selectorText(){let e=this.isDefaultMode;if(!this.mode)return":root";switch(this.modeTrigger){case"media":return":root";case"host":return`:host(.${this.mode})`+(e?",:host":"");case"class":return`.${this.mode}`+(e?",:root":"");default:return""}}get text(){let e=`${this.selectorText}{--${this.name}:${String(this.variable.value)}}`;return"media"===this.modeTrigger&&(e=`@media (prefers-color-scheme:${this.mode}){${e}}`),e}}return ta.VariableRuleNode=e,ta.default=class{name;variable;css;nodes;constructor(t,i,r){this.name=t,this.variable=i,this.css=r,this.nodes=[];let a=void 0!==i.value;if(a&&this.nodes.push(new e(this.name,i,r)),i.modes)for(let t in i.modes){let s=i.modes[t],n=new e(this.name,s,r,t);if(n.modeTrigger){let e=!a&&this.css.config.defaultMode===t;n.isDefaultMode=e,e?this.nodes.unshift(n):this.nodes.push(n)}}}get key(){return this.name}get text(){return this.nodes.map(({text:e})=>e).join("")}},ta}function tn(){if(en)return es;en=1;var e=tr(),t=e4(),i=ts();return es=function(r){return class extends r{rules=[];insert(e){if(this.rules.includes(e)||!e.valid)return;let i=this.rules.length;for(let r=0;r<this.rules.length;r++){let a=this.rules[r];if(0>t.default(e,a)){i=r;break}}return super.insert(e,i),this.insertVariables(e),this.insertAnimations(e),e.definition.insert?.call(e),i}delete(e){let t=super.delete(e);if(!t)return;let i=(e,t)=>{let i=t.tokenCounts.get(e)??0;i<=1?(t.delete(e),t.tokenCounts.delete(e)):t.tokenCounts.set(e,i-1)};return t.variableNames?.forEach(e=>{i(e,this.css.themeLayer)}),t.animationNames?.forEach(e=>{i(e,this.css.animationsNonLayer)}),t.definition.delete?.call(t,t.name),t}insertVariables(e){e.variableNames?.forEach(e=>{if(this.css.themeLayer.rules.find(({name:t})=>t===e)){let t=this.css.themeLayer.tokenCounts.get(e)||0;this.css.themeLayer.tokenCounts.set(e,t+1)}else{let t=this.css.variables.get(e);if(!t)return;let r=new i.default(e,t,this.css);this.css.themeLayer.insert(r),this.css.themeLayer.tokenCounts.set(e,1)}})}insertAnimations(t){t.animationNames?.forEach(t=>{if(this.css.animationsNonLayer.rules.find(({name:e})=>e===t)){let e=this.css.animationsNonLayer.tokenCounts.get(t)||0;this.css.animationsNonLayer.tokenCounts.set(t,e+1)}else{let i=this.css.animations.get(t);if(!i)return;let r=new e(t,i,this.css);this.css.animationsNonLayer.insert(r),this.css.animationsNonLayer.tokenCounts.set(t,1)}})}}}}function tl(){return eo?el:(eo=1,el=tn()(ti()))}function to(){if(ed)return eh;ed=1;var e=ec?eu:(ec=1,eu=function(e,t){for(let i=0;i<e.length;i++)if(e[i]===t)return i;return -1});return eh=class{css;rules;tokenCounts;constructor(e){this.css=e,this.rules=[],this.tokenCounts=new Map}insert(e){if(this.rules.includes(e))return;let t=this.css.style?.sheet;if(t)try{let i=t.insertRule(e.text,t.cssRules.length);e.native=t.cssRules[i]}catch(e){console.error(e)}this.rules.push(e),this.css.rules.push(e)}delete(t){let i=this.rules.find(e=>e.name===t);if(!i)return;let r=this.css.style?.sheet;if(r){let t=e(r.cssRules,i.native);-1!==t&&r.deleteRule(t)}return this.rules.splice(this.rules.indexOf(i),1),this.css.rules.splice(this.css.rules.indexOf(i),1),i}get text(){return this.rules.map(({text:e})=>e).join("")}reset(){for(let e of this.rules){let t=this.css.rules.indexOf(e);-1!==t&&this.css.rules.splice(t,1)}this.rules.length=0,this.tokenCounts.clear()}}}function tu(){if(ey)return em;ey=1;var e=e2(),t=eZ(),i=W?q:(W=1,q=function(e){let t,i,r,a;return e.startsWith("#")&&(e=e.slice(1)),3===e.length||4===e.length?(t=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),a=4===e.length?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(6===e.length||8===e.length)&&(t=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),r=parseInt(e.slice(4,6),16),a=8===e.length?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,i,r,a]}),r=(H||(H=1,e7.flattenObject=function e(t,i=""){return Object.entries(t).reduce((t,[r,a])=>{let s=i?`${i}${r?"-"+r:""}`:r;return"object"!=typeof a||Array.isArray(a)?t[s]=a:Object.assign(t,e(a,s)),t},{})}),e7),a=e8(),s=tt(),n=ez(),l=ti(),o=tl(),u=to(),c=ep?ef:(ep=1,ef=function(e){globalThis.MasterCSS||(globalThis.MasterCSS=e)}),h=e1(),d=eJ(),f=e3();class p{customConfig;static config=t.config;definedRules;config;layerStatementRule;rules;classRules;animationsNonLayer;baseLayer;themeLayer;presetLayer;componentsLayer;generalLayer;components;selectors;variables;atRules;animations;constructor(e){this.customConfig=e,this.definedRules=[],this.layerStatementRule=new s.Rule("layer-statement","@layer base,theme,preset,components,general;"),this.rules=[this.layerStatementRule],this.classRules=new Map,this.animationsNonLayer=new u(this),this.baseLayer=new o("base",this),this.themeLayer=new l("theme",this),this.presetLayer=new o("preset",this),this.componentsLayer=new o("components",this),this.generalLayer=new o("general",this),this.components=new Map,this.selectors=new Map,this.variables=new Map,this.atRules=new Map,this.animations=new Map,this.resolve(e)}get text(){return this.rules.sort((e,t)=>{let i=["layer-statement","base","theme","preset","components","general"];return(-1===i.indexOf(e.name)?1/0:i.indexOf(e.name))-(-1===i.indexOf(t.name)?1/0:i.indexOf(t.name))}).map(({text:e})=>e).join("")}resolve(e){e?this.customConfig=e:e=this.customConfig,this.config=e?.override?a(e):a(t.config,e),this.resolveVariables(),this.resolveAnimations(),this.resolveSelectors(),this.resolveAtRules(),this.resolveRules(),this.resolveComponents()}resolveAnimations(){let{animations:e}=this.config;if(e)for(let t in e){let i={};this.animations.set(t,i);let r=e[t];for(let e in r){let t=i[e]={},a=r[e];for(let e in a)t[e]=a[e]}}}resolveRules(){let{rules:e,utilities:t}=this.config;if(!e&&!t)return;let i=[];if(t)for(let e in t){let r=t[e];i.push([e,{declarations:r,type:n.Utility}])}e&&i.push(...Object.entries(e));let r=i.length,a=new Set(["current","currentColor","transparent"]);this.variables.forEach(e=>{"color"===e.type&&a.add(e.name)});let s=[...a].join("|");i.sort((e,t)=>e[1].type!==t[1].type?(t[1].type||0)-(e[1].type||0):t[0].localeCompare(e[0],void 0,{numeric:!0})).forEach(([e,t],i)=>{let a={id:e,keys:[],variables:{},matchers:{},order:r-1-i,definition:t};t.unit??="",t.separators??=[","],this.definedRules.push(a);let{matcher:l,type:o,subkey:u,ambiguousKeys:c,ambiguousValues:h,sign:d,key:f,variables:p}=t,m=[],y=f,g=e=>{this.variables.forEach(t=>{t.group===e&&(a.variables[t.key]=t)})};if(p&&p.forEach(g),g(e),(o===n.NativeShorthand||o===n.Native)&&(y||(t.key=y=e),m.push(e)),d)a.matchers.arbitrary=RegExp(`^${d}[^!*>+~:[@_]+\\|`);else if(l)a.matchers.arbitrary=l;else if(y||u?(y&&!m.includes(y)&&m.push(y),u&&m.push(u),o===n.Shorthand&&m.push(e)):m.push(e),c?.length){let e=c.length>1?`(?:${c.join("|")})`:c[0],t=Object.keys(a.variables);if(h?.length){let t=h.map(e=>e instanceof RegExp?e.source.replace("\\$colors",s):`${e}(?:\\b|_)`);a.matchers.value=RegExp(`^${e}:(?:${t.join("|")})[^|]*?(?:@|$)`)}t.length&&(a.matchers.variable=RegExp(`^${e}:(?:${t.join("|")}(?![a-zA-Z0-9-]))[^|]*?(?:@|$)`))}o===n.Utility&&(a.id="."+e,a.matchers.arbitrary=RegExp("^"+e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m")),m.length&&(a.keys=m,a.matchers.key=RegExp(`^${m.length>1?`(${m.join("|")})`:m[0]}:.`))})}resolveComponents(){let{components:e}=this.config,t=e?r.flattenObject(e):{},i=Object.keys(t),a=(e,r=[])=>{let s=this.components.get(e);if(s)return void r.push(...s);let n=t[e];if(n){for(let e of n.replace(/(?:\n\s*)+/g," ").trim().split(" "))i.includes(e)?a(e,r):r.push(e);this.components.set(e,[...r])}};for(let e of i)a(e)}resolveSelectors(){let{selectors:e}=this.config;if(e){let t=r.flattenObject(e);for(let e in t){let i=f(t[e],this,!1);this.selectors.set(e,i)}}}resolveAtRules(){let{at:e,screens:t}=this.config;if(t)for(let e in t){let i=t[e],r=this.parseValue(i);this.atRules.set(e,{id:"media",nodes:[r]})}if(e){let t=r.flattenObject(e);for(let e in t){let i=t[e];if("number"==typeof i){let t=this.parseValue(i);this.atRules.set(e,{id:"media",nodes:[t]})}else{let t=h(i,this,!1);this.atRules.set(e,t)}}}}resolveVariables(){let{variables:e,screens:t}=this.config,r=new Map,a=(e,t,s)=>{if(null==e)return;let n=(e,t,i,r)=>{if(void 0===t)return;let a=e.join("-"),n=e.slice(0,-1).filter(Boolean),l=(""===e[0]?"-":"")+e[e.length-1];if(t.key=l,t.name=a,n.length&&(t.group=n.join(".")),"color"===t.type&&r){let e=t.value.indexOf("/");t={...t,value:-1===e?t.value+" / "+(r.startsWith("0.")?r.slice(1):r):t.value.slice(0,e+2)+String(t.value.slice(e+2)*r).slice(1)}}let o=i??s;if(void 0!==o){let e=this.variables.get(a);if(e)o?(e.modes||(e.modes={}),e.modes[o]=t):(e.value=t.value,"color"===t.type&&(e.space=t.space));else if(o){let e={key:t.key,name:t.name,group:t.group,type:t.type,modes:{[o]:t}};"color"===t.type&&(e.space=t.space),this.variables.set(a,e)}else this.variables.set(a,t)}else this.variables.set(a,t)};if("object"==typeof e)if(Array.isArray(e))n(t,{type:"string",value:e.join(",")});else{let i=Object.keys(e);for(let r of i)""===r||r.startsWith("@")?a(e[r],t,r||i.some(e=>e.startsWith("@"))?r.slice(1):void 0):a(e[r],[...t,r])}else if("number"==typeof e)n(t,{type:"number",value:e}),n(["",...t],{type:"number",value:-1*e});else if("string"==typeof e){let a=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$|^\$([a-zA-Z0-9-]+)(?: ?\/ ?(.+?))?$/.exec(e),l=t.join("-");if(a){let e=a[1]??a[3],i=a[2]??a[4],o=r.get(l);o||r.set(l,o={}),o[s]=()=>{if(delete o[s],!e)return;let[a,l]=e.split("@"),u=r.get(a);if(u)for(let e of Object.keys(u))u[e]?.();let c=this.variables.get(a);if(c)if(void 0===l&&c.modes)for(let e in n(t,{type:c.type,value:c.value,space:c.space},"",i),c.modes)n(t,c.modes[e],e,i);else{let e=void 0!==l?c.modes?.[l]:c;e&&n(t,{type:e.type,value:e.value,..."color"===e.type?{space:e.space}:{}},void 0,i)}}}else{let r=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(e);if(r){let[e,a,s,l]=i(r[1]);n(t,{type:"color",value:`${e} ${a} ${s}${1===l?"":" / "+l}`,space:"rgb"})}else{let i=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(e);if(i)n(t,{type:"color",value:i[1]+" "+i[2]+" "+i[3]+(i[4]?" / "+(i[4].startsWith("0.")?i[4].slice(1):i[4]):""),space:"rgb"});else{let i=/^hsl\((.*?)\)$/.exec(e);i?n(t,{type:"color",value:i[1],space:"hsl"}):n(t,{type:"string",value:e})}}}}};if(e){for(let t in e)a(e[t],[t]);r.forEach(e=>{for(let t of Object.keys(e))e[t]?.()})}t&&a(t,["screen"])}parseValue(e,t="rem"){return d(e,t,this.config.rootSize)}match(e){for(let t of this.definedRules)if(t.matchers.variable?.test(e))return t;for(let t of this.definedRules)if(t.matchers.value?.test(e))return t;for(let t of this.definedRules)if(t.matchers.key?.test(e))return t;for(let t of this.definedRules)if(t.matchers.arbitrary?.test(e))return t}generate(e,t){let i=[],r=this.components.get(e);if(r)r.forEach(r=>{let a=this.create(r,e,t);a&&a.valid?i.push(a):console.error(`Invalid class "${r}" found in ${e} component.`)});else{let r=e.indexOf("@");if(-1!==r){let a=e.slice(0,r),s=this.components.get(a);if(s){let a=e.slice(r);s.forEach(r=>{let s=this.create(r+a,e,t);s&&s.valid&&i.push(s)})}}let a=this.create(e,void 0,t);a&&a.valid&&i.push(a)}return i}create(t,i,r){let a=this.generalLayer.rules.find(({key:e})=>e===(i?i+" ":"")+t);if(a)return a;let s=this.match(t);if(s)return new e.SyntaxRule(t,this,s,i,r)}createFromSelectorText(e){let t=e.split(" "),i=/[.#\[!\*>+~:,\s]/;for(let e=0;e<t.length;e++){let r=t[e],a=this.getModeSelector(r);if((0!==e||r!==a)&&(0!==e&&1!==e||r!==this.config.scope)&&r.startsWith(".")){let e=r.slice(1),t="",a=0;for(;a<e.length;){let r=e[a],s=e[a+1];if("\\"===r&&s){t+=s,a+=2;continue}if(i.test(r))break;t+=r,a++}let s=this.generate(t);if(s.length)return s}}}refresh(e){return this.reset(),this.resolve(e),this}reset(){return this.animations=new Map,this.variables=new Map,this.atRules=new Map,this.selectors=new Map,this.components=new Map,this.classRules=new Map,this.definedRules.length=0,this.baseLayer.reset(),this.themeLayer.reset(),this.presetLayer.reset(),this.componentsLayer.reset(),this.generalLayer.reset(),this.animationsNonLayer.reset(),this}destroy(){return this.reset(),this}add(...e){for(let t of e){if(this.classRules.get(t))continue;let e=this.generate(t);e.length&&(e.forEach(e=>e.layer.insert(e)),this.classRules.set(t,e))}return this}remove(...e){for(let t of e){let e=this.classRules.get(t);e&&(e.forEach(e=>e.layer.delete(e.key)),this.classRules.delete(t))}}getModeSelector(e){let t=this.config.modes?.[e];if(t)switch(t){case"class":return"."+e;case"host":return":host(."+e+")"}}}return c(p),em=p}function tc(){if(ek)return ev;ek=1;var e=eY();return ev=function(t,i){return e.AT_IDENTIFIERS.every(e=>(function e(t,i){if(t.length!==i.length)return!1;let r=Array(i.length).fill(!1);for(let a of t){let t=i.findIndex((t,i)=>!r[i]&&a.type===t.type&&a.value===t.value&&a.unit===t.unit&&a.name===t.name&&a.operator===t.operator&&e(a.children??[],t.children??[]));if(-1===t)return!1;r[t]=!0}return!0})(t?.[e]??[],i?.[e]??[]))}}function th(){if(eS)return eN;function e(e,i){if(e.type!==i.type||e.value!==i.value)return!1;let r=e.children??[],a=i.children??[];return r.length===a.length&&t(r,a)}function t(t,i){if(t.length!==i.length)return!1;let r=new Set(i);for(let i of t){let t=!1;for(let a of r)if(e(i,a)){r.delete(a),t=!0;break}if(!t)return!1}return!0}function i(e){let t=[],i=[];for(let r of e)"combinator"===r.type?(i.length>0&&(t.push(i),i=[]),t.push(r)):i.push(r);return i.length>0&&t.push(i),t}return eS=1,eN=function(r=[],a=[]){let s=i(r),n=i(a);if(s.length!==n.length)return!1;for(let i=0;i<s.length;i++){let r=s[i],a=n[i];if(Array.isArray(r)&&Array.isArray(a)){if(!t(r,a))return!1}else if(Array.isArray(r)||Array.isArray(a))return!1;else if(!e(r,a))return!1}return!0}}var td=function(){if(eC)return eI;eC=1,Object.defineProperty(eI,"__esModule",{value:!0});var e=eZ(),t=eY(),i=tu(),r=e2(),a=tt(),s=ti(),n=tl(),l=to(),o=ez(),u=ts(),c=tr(),h=tn(),d=e8(),f=function(){if(eb)return eg;eb=1;var e=ez(),t=tu(),i=e4(),r=eY();return eg=function(a,s=new t){let n=[],l=[];for(let e of a)e.includes(r.__UNSORTED__)?l.push(e):n.push(e);s.add(...n);let o=new Set,u=[...s.componentsLayer.rules.filter(e=>!e.fixedClass||!o.has(e.fixedClass)&&(o.add(e.fixedClass),!0)),...s.generalLayer.rules,...s.baseLayer.rules,...s.presetLayer.rules],c=new Set(s.baseLayer.rules),h=new Set(s.presetLayer.rules),d=e=>c.has(e)?4:h.has(e)?5:e.atRules?3:e.mode?2:+!!e.selectorNodes?.length,f=t=>t.fixedClass?0:t.type===e.Utility?1:2,p=u.map(e=>({rule:e,sortKey:[d(e),f(e)]})).sort((e,t)=>{for(let i=0;i<e.sortKey.length;i++)if(e.sortKey[i]!==t.sortKey[i])return e.sortKey[i]-t.sortKey[i];return e.rule.fixedClass&&t.rule.fixedClass?e.rule.fixedClass.localeCompare(t.rule.fixedClass,void 0,{numeric:!0}):i.default(e.rule,t.rule)}).map(e=>e.rule.fixedClass||e.rule.name);return s.remove(...n),[...p,...[...n.filter(e=>-1===p.indexOf(e)),...l].sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0}))]}}(),p=tc(),m=th(),y=function(){if(eR)return eE;eR=1;var e=th(),t=tc();return eE=function(i,r){return i.mode===r.mode&&e(i.selectorNodes,r.selectorNodes)&&t(i.atRules,r.atRules)}}(),g=e_?ex:(e_=1,ex=function(e={},t={}){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(e=>e in t)}),b=function(){if(eA)return ew;eA=1;var e=tu();return ew=function(t,i=new e){let r="";return i.add(...t),r=i.text,i.remove(...t),r}}(),v=function(){if(eO)return e$;eO=1;var e=eF();return e$=function(t){return Object.hasOwnProperty.call(e,t)}}(),k=e0(),N=eJ(),S=e1(),E=e5(),R=e3(),x=e9(),_=eT?eL:(eT=1,eL=function(e){if(1!==e.length)return;let t=e[0];if("number"===t.type)return t}),w=e4(),A=eM(),$=eK(),O=eG(),L=eF(),T=eW(),C=ej(),V=eX(),I=eq(),U=eH();return eI.config=e.config,eI.ANIMATION_SIGN=t.ANIMATION_SIGN,eI.AT_COMPARABLE_FEATURES=t.AT_COMPARABLE_FEATURES,eI.AT_COMPARISON_OPERATORS=t.AT_COMPARISON_OPERATORS,eI.AT_IDENTIFIERS=t.AT_IDENTIFIERS,eI.AT_LOGICAL_OPERATORS=t.AT_LOGICAL_OPERATORS,eI.AT_SIGN=t.AT_SIGN,eI.BASE_UNIT_REGEX=t.BASE_UNIT_REGEX,eI.BORDER_STYLE_VALUES=t.BORDER_STYLE_VALUES,eI.CLASS_ATTRIBUTES=t.CLASS_ATTRIBUTES,eI.CLASS_DECLARATIONS=t.CLASS_DECLARATIONS,eI.CLASS_FUNCTIONS=t.CLASS_FUNCTIONS,eI.COLOR_VALUE_REGEX=t.COLOR_VALUE_REGEX,eI.COMPARISION_OPERATORS=t.COMPARISION_OPERATORS,eI.DELIMITER_SIGN=t.DELIMITER_SIGN,eI.IMAGE_VALUE_REGEX=t.IMAGE_VALUE_REGEX,eI.NUMBER_VALUE_REGEX=t.NUMBER_VALUE_REGEX,eI.OFFICIAL_URL=t.OFFICIAL_URL,eI.QUERY_COMPARISON_OPERATORS=t.QUERY_COMPARISON_OPERATORS,eI.QUERY_LOGICAL_OPERATORS=t.QUERY_LOGICAL_OPERATORS,eI.SELECTOR_COMBINATORS=t.SELECTOR_COMBINATORS,eI.SELECTOR_SIGNS=t.SELECTOR_SIGNS,eI.SEPARATOR_SIGN=t.SEPARATOR_SIGN,eI.SEPARATOR_SIGNS=t.SEPARATOR_SIGNS,eI.TRANSITION_SIGN=t.TRANSITION_SIGN,eI.UNIT_REGEX=t.UNIT_REGEX,eI.VALUE_DELIMITERS=t.VALUE_DELIMITERS,eI.VALUE_UNITS=t.VALUE_UNITS,eI.__UNSORTED__=t.__UNSORTED__,eI.MasterCSS=i,eI.default=i,eI.SyntaxRule=r.SyntaxRule,eI.Rule=a.Rule,eI.Layer=s,eI.SyntaxLayer=n,eI.NonLayer=l,eI.SyntaxRuleType=o,eI.VariableRule=u.default,eI.AnimationRule=c,eI.withSyntaxLayer=h,eI.extendConfig=d,eI.sortReadableClasses=f,eI.equalAtRules=p,eI.equalSelectors=m,eI.equalVariants=y,eI.equalDeclarations=g,eI.generateCSS=b,eI.isCoreRule=v,eI.parsePair=k,eI.parseValue=N,eI.parseAt=S,eI.generateAt=E,eI.parseSelector=R,eI.generateSelector=x,eI.getSingleAtNumberRuleNode=_,eI.compareRulePriority=w.default,eI.at=A,eI.selectors=$,eI.utilities=O,eI.rules=L,eI.functions=T,eI.animations=C,eI.variables=V,eI.modes=I,eI.screens=U,eI}(),tf={},tp=function(){if(eV)return tf;eV=1,Object.defineProperty(tf,"__esModule",{value:!0});let e={listeners:new Map,on(e,t){this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e)?.add(t)},off(e,t){this.listeners.get(e)?.delete(t)},emit(e,...t){this.listeners.get(e)?.forEach(e=>e(...t))}};return tf.default=e,tf.devToolsHook=e,tf.installHook=function(t=globalThis){let i=t.__MASTER_CSS_DEVTOOLS_HOOK__;return i||(t.__MASTER_CSS_DEVTOOLS_HOOK__=e)},tf}();function tm(e,t){for(let i=0;i<e.length;i++)if(e[i]===t)return i;return -1}let ty=class extends td.Layer{name;cssRuntime;rules;tokenCounts;native;constructor(e,t){super(e,t),this.name=e,this.cssRuntime=t,this.rules=[],this.tokenCounts=new Map,this.native=null}attach(){super.attach();let e=this.cssRuntime.style?.sheet;if(e&&!this.native?.parentStyleSheet){let t=e.insertRule(this.text,e.cssRules.length);this.native=e.cssRules.item(t)}}insert(e,t=this.rules.length){let i=super.insert(e,t);if(void 0===i||!this.native)return;let r=(t,r)=>{if(1===this.rules.length)return this.native.cssRules.item(r);try{let e=this.native.insertRule(t,r);return this.native.cssRules.item(e)}catch(t){console.error(t,e),this.rules.splice(i,1);return}};if("nodes"in e){let t=i;e.nodes.forEach(e=>{e.native=r(e.text,t),e.native&&t++})}else e.native=r(e.text,i);return i}detach(){super.detach();let e=this.cssRuntime.style?.sheet;if(e&&this.native?.parentStyleSheet){let t=tm(e.cssRules,this.native);-1!==t&&e.deleteRule(t)}}delete(e){let t=super.delete(e);if(!t||!this.native)return;let i=e=>{if(!e)return;let t=tm(this.native.cssRules,e);if(-1!==t)try{this.native.deleteRule(t)}catch(t){console.error(t,e)}};return"nodes"in t?t.nodes.forEach(e=>i(e.native)):i(t.native),t}reset(){super.reset();let e=this.cssRuntime.style?.sheet;if(this.native&&e){let t=tm(e.cssRules,this.native);-1!==t&&e.deleteRule(t),this.native=null}}},tg=td.withSyntaxLayer(ty);class tb extends td.MasterCSS{root;customConfig;static instances=new WeakMap;host;container;baseLayer;themeLayer;presetLayer;componentsLayer;generalLayer;classCounts;observer;progressive;observing;constructor(e=document,t=td.config){super(t),this.root=e,this.customConfig=t,this.baseLayer=new tg("base",this),this.themeLayer=new ty("theme",this),this.presetLayer=new tg("preset",this),this.componentsLayer=new tg("components",this),this.generalLayer=new tg("general",this),this.classCounts=new Map,this.progressive=!1,this.observing=!1,this.root instanceof Document||this.root instanceof HTMLDocument?(this.root.defaultView.globalThis.cssRuntime=this,this.container=this.root.head,this.host=this.root.documentElement):(this.container=this.root,this.host=this.root.host),globalThis.CSSRuntime.instances.set(this.root,this),__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:created",{cssRuntime:this})}observe(){if(this.observing)return this;if(this.root.styleSheets)for(let e of this.root.styleSheets){let{ownerNode:t}=e;if(t instanceof HTMLStyleElement&&"master"===t.id){this.style=t,this.style.sheet?.cssRules.length&&(this.progressive=!0);break}}let e=new WeakMap,t=new Set,i=e=>{let i=this.classCounts.get(e)||0;i||t.add(e),this.classCounts.set(e,i+1)};if((this.root instanceof Document||this.root instanceof HTMLDocument?this.root:this.container).querySelectorAll("[class]").forEach(t=>{let r=t.classList;r&&t.classList.forEach(i),e.set(t,new Set(r))}),this.progressive){let e=this.hydrate(this.style.sheet.cssRules);for(let i of t)e.allSyntaxRules.find(e=>(e.fixedClass||e.name)===i)||this.add(i)}else this.style=document.createElement("style"),this.style.id="master",this.style.setAttribute("blocking","render"),this.container.append(this.style),this.style.sheet.insertRule(this.layerStatementRule.text),this.layerStatementRule.native=this.style.sheet.cssRules.item(0),t.forEach(e=>this.add(e));return this.observer=new MutationObserver(t=>{let i=new Map,r=new Map,a=new Set,s=new WeakSet,n=(e,t)=>i.set(e,(i.get(e)||0)+t),l=t=>{let i=new Set(e.get(t)||[]),r=new Set(t.classList);for(let e of r)i.has(e)||n(e,1);for(let e of i)r.has(e)||n(e,-1);e.set(t,r)},o=t=>{for(let i of e.get(t)||[])n(i,-1);e.delete(t)};for(let e of t)if("childList"===e.type){for(let t of e.addedNodes)t instanceof Element&&t.isConnected&&r.set(t,(r.get(t)||0)+1);for(let t of e.removedNodes)t instanceof Element&&!t.isConnected&&r.set(t,(r.get(t)||0)-1)}else"attributes"===e.type&&"class"===e.attributeName&&a.add(e.target);let u=(e,t,i)=>{if(i.has(e))r.delete(e);else for(let r of(i.add(e),t(e),e.children))u(r,t,i)};for(let[e,t]of r)t>0?u(e,l,s):t<0&&!e.isConnected&&u(e,o,s);for(let e of a)s.has(e)||l(e);for(let[e,t]of i){let i=this.classCounts.get(e)||0,r=i+t;r>0?(this.classCounts.set(e,r),0===i&&this.add(e)):(this.classCounts.delete(e),this.remove(e))}globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:mutated",{records:t,classCounts:i,cssRuntime:this})}),this.observer.observe(this.root,{childList:!0,attributes:!0,attributeFilter:["class"],attributeOldValue:!0,subtree:!0}),this.progressive||this.host.removeAttribute("hidden"),this.observing=!0,globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:observed",{cssRuntime:this}),this}hydrate(e){let t=[],i=new CSSStyleSheet,r={allSyntaxRules:[]};for(let r=0;r<e.length;r++){let a=e[r];if("CSSLayerBlockRule"===a.constructor.name)if("theme"===a.name){let e;this.themeLayer.native=a;let t=new Map;for(let e of a.cssRules)t.set(e.cssText.trim(),e);for(let r of a.cssRules){if(!t.has(r.cssText))continue;let a=("CSSMediaRule"===r.constructor.name?r.cssRules[0]:r).style[0].slice(2),s=this.variables.get(a);s&&(e=new td.VariableRule(a,s,this),this.themeLayer.rules.push(e),this.themeLayer.tokenCounts.set(e.name,0),e.nodes.forEach(e=>{let r=i.insertRule(e.text),a=i.cssRules.item(r);if(a){let i=a.cssText.trim(),r=t.get(i);if(r){e.native=r,t.delete(i);return}}}))}this.themeLayer.rules.length&&this.rules.push(this.themeLayer)}else t.push(a);else if("CSSLayerStatementRule"===a.constructor.name)this.layerStatementRule.native=a;else if("CSSKeyframesRule"===a.constructor.name){let e=this.animations.get(a.name);if(!e)continue;let t=new td.AnimationRule(a.name,e,this);t.native=a,this.animationsNonLayer.rules.push(t),this.rules.push(t),this.animationsNonLayer.tokenCounts.set(t.name,0)}}for(let e of t){let t;switch(e.name){case"base":t=this.baseLayer;break;case"preset":t=this.presetLayer;break;case"components":t=this.componentsLayer;break;case"general":t=this.generalLayer;break;default:console.error(`Cannot recognize the layer \`${e.name}\`. (https://rc.css.master.co/messages/hydration-errors)`);continue}t.native=e;let a=new Map;for(let t of e.cssRules)a.set(t.cssText.trim(),t);for(let s of e.cssRules){if(!a.has(s.cssText))continue;let e=this.getSelectorText(s);if(!e){console.error(`Cannot get the selector text from \`${s.cssText}\`. (${t.name}) (https://rc.css.master.co/messages/hydration-errors)`);continue}let n=this.createFromSelectorText(e);if(n)for(let e of n){t.rules.push(e),t.insertVariables(e),t.insertAnimations(e),r.allSyntaxRules.push(e);try{let r=i.insertRule(e.text),s=i.cssRules.item(r);if(s){let t=s.cssText.trim(),i=a.get(t);if(i){e.native=i,a.delete(t);continue}}console.error(`Cannot retrieve CSS rule for \`${e.text}\`. (${t.name}) (https://rc.css.master.co/messages/hydration-errors)`)}catch(e){}}else console.error(`Cannot recognize \`${s.cssText}\`. (${t.name}) (https://rc.css.master.co/messages/hydration-errors)`)}t.rules.length&&this.rules.push(t)}return globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:hydrated",{cssRuntime:this,result:r}),r}getSelectorText(e){return e instanceof CSSStyleRule?e.selectorText:e instanceof CSSGroupingRule?this.getSelectorText(e.cssRules.item(0)):void 0}disconnect(){if(this.observing)return this.observer&&(this.observer.disconnect(),this.observer=void 0),this.observing=!1,this.reset(),this.classCounts.clear(),this.progressive||(this.style?.remove(),this.style=null),globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:disconnected",{cssRuntime:this}),this}refresh(e=this.customConfig){if(!this.observing||!this.style.sheet)return this;for(let e=1;e<=this.style.sheet.cssRules.length-1;e++)this.style.sheet.deleteRule(e);return super.refresh(e),this.classCounts.forEach((e,t)=>{this.add(t)}),globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:refreshed",{cssRuntime:this,customConfig:e}),this}destroy(){return this.disconnect(),globalThis.CSSRuntime.instances.delete(this.root),globalThis.__MASTER_CSS_DEVTOOLS_HOOK__?.emit("runtime:destroyed",{cssRuntime:this}),this}}function tv(e,t=document,i=!0){let r=globalThis.CSSRuntime.instances.get(t);return r||(r=new tb(t,e),i&&r.observe()),r}globalThis.CSSRuntime||(globalThis.CSSRuntime=tb),tp.installHook();let tk=window.masterCSSConfigs,tN=window.masterCSSConfig;if(tN){let e=[];tk&&e.push(...tk),tN.extends&&e.push(...tN.extends),tv({...tN,extends:e})}else tk?tv({extends:tk}):tv()}();
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css-runtime","type":"module","scripts":{"build":"techor build","dev":"pnpm build --watch","e2e":"playwright test","e2e:watch":"nodemon -e js,mjs,ts,html,css --watch dist --watch e2e --exec playwright test","type-check":"tsc --noEmit","lint":"eslint"},"license":"MIT","description":"Run Master CSS right in the browser","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/runtime"},"keywords":["utility","css","lightweight","mastercss","master","runtime","cdn"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/global.min.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","require":{"development":"./dist/index.development.cjs","default":"./dist/index.cjs"},"import":{"development":"./dist/index.development.mjs","default":"./dist/index.mjs"}}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.
|
|
1
|
+
{"name":"@master/css-runtime","type":"module","scripts":{"build":"techor build","dev":"pnpm build --watch","e2e":"playwright test","e2e:watch":"nodemon -e js,mjs,ts,html,css --watch dist --watch e2e --exec playwright test","type-check":"tsc --noEmit","lint":"eslint"},"license":"MIT","description":"Run Master CSS right in the browser","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/runtime"},"keywords":["utility","css","lightweight","mastercss","master","runtime","cdn"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/global.min.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","require":{"development":"./dist/index.development.cjs","default":"./dist/index.cjs"},"import":{"development":"./dist/index.development.mjs","default":"./dist/index.mjs"}}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.68","@master/css-devtools-hook":"^2.0.0-rc.68"},"devDependencies":{"@playwright/test":"^1.49.1","shared":"^2.0.0-rc.68"},"version":"2.0.0-rc.68"}
|