@master/css 2.0.0-beta.159 → 2.0.0-beta.160

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.
Files changed (122) hide show
  1. package/README.md +30 -18
  2. package/dist/bin/index.bundle.js +45 -0
  3. package/dist/config/index.d.ts +4 -8
  4. package/dist/config/rules.d.ts +2 -2
  5. package/dist/constants/config-esm-text.d.ts +1 -1
  6. package/dist/constants/config-ts-text.d.ts +1 -0
  7. package/dist/core.d.ts +15 -6
  8. package/dist/functions/extract-classes-from-html.d.ts +5 -0
  9. package/dist/functions/fill-color-scale.d.ts +1 -0
  10. package/dist/functions/generate-from-classes.d.ts +8 -0
  11. package/dist/functions/generate-from-html.d.ts +8 -0
  12. package/dist/functions/init-runtime.d.ts +9 -0
  13. package/dist/functions/render-html.d.ts +8 -0
  14. package/dist/index.browser.bundle.js +1 -0
  15. package/dist/index.browser.d.ts +1 -1
  16. package/dist/index.bundle.js +44 -0
  17. package/dist/index.bundle.mjs +44 -0
  18. package/dist/index.d.ts +11 -5
  19. package/dist/rule.d.ts +1 -3
  20. package/package.json +1 -1
  21. package/dist/cjs/bin/index.js +0 -2
  22. package/dist/cjs/config/breakpoints.js +0 -1
  23. package/dist/cjs/config/colors.js +0 -1
  24. package/dist/cjs/config/functions.js +0 -1
  25. package/dist/cjs/config/important.js +0 -1
  26. package/dist/cjs/config/index.js +0 -1
  27. package/dist/cjs/config/keyframes.js +0 -1
  28. package/dist/cjs/config/observe.js +0 -1
  29. package/dist/cjs/config/override.js +0 -1
  30. package/dist/cjs/config/root-size.js +0 -1
  31. package/dist/cjs/config/rules.js +0 -1
  32. package/dist/cjs/config/scope.js +0 -1
  33. package/dist/cjs/config/selectors.js +0 -1
  34. package/dist/cjs/config/semantics.js +0 -1
  35. package/dist/cjs/config/themeDriver.js +0 -1
  36. package/dist/cjs/config/themes.js +0 -1
  37. package/dist/cjs/constants/config-esm-text.js +0 -17
  38. package/dist/cjs/constants/config-text.js +0 -15
  39. package/dist/cjs/constants/index.js +0 -1
  40. package/dist/cjs/constants/selector-symbols.js +0 -1
  41. package/dist/cjs/constants/start-symbol.js +0 -1
  42. package/dist/cjs/core.js +0 -1
  43. package/dist/cjs/index.browser.js +0 -1
  44. package/dist/cjs/index.js +0 -1
  45. package/dist/cjs/methods/extract-classes-from-html.js +0 -1
  46. package/dist/cjs/methods/fill-color-scale.js +0 -1
  47. package/dist/cjs/methods/index.js +0 -1
  48. package/dist/cjs/methods/render-from-html.js +0 -1
  49. package/dist/cjs/methods/render-into-html.js +0 -1
  50. package/dist/cjs/methods/render-rules-from-html.js +0 -1
  51. package/dist/cjs/methods/render-rules.js +0 -1
  52. package/dist/cjs/methods/render.js +0 -1
  53. package/dist/cjs/polyfills/css-escape.js +0 -1
  54. package/dist/cjs/rule.js +0 -1
  55. package/dist/cjs/utils/concat-arrays.js +0 -1
  56. package/dist/cjs/utils/css-escape.js +0 -1
  57. package/dist/cjs/utils/delay.js +0 -1
  58. package/dist/cjs/utils/get-type.js +0 -1
  59. package/dist/cjs/utils/hex-to-rgb.js +0 -1
  60. package/dist/cjs/utils/is-plain-object.js +0 -1
  61. package/dist/cjs/utils/is-symbol.js +0 -1
  62. package/dist/cjs/utils/parse-rule-value.js +0 -1
  63. package/dist/cjs/utils/rgb-to-hex.js +0 -1
  64. package/dist/config/observe.d.ts +0 -1
  65. package/dist/config/themes.d.ts +0 -1
  66. package/dist/constants/index.d.ts +0 -4
  67. package/dist/esm/bin/index.mjs +0 -2
  68. package/dist/esm/config/breakpoints.mjs +0 -1
  69. package/dist/esm/config/colors.mjs +0 -1
  70. package/dist/esm/config/functions.mjs +0 -1
  71. package/dist/esm/config/important.mjs +0 -1
  72. package/dist/esm/config/index.mjs +0 -1
  73. package/dist/esm/config/keyframes.mjs +0 -1
  74. package/dist/esm/config/observe.mjs +0 -1
  75. package/dist/esm/config/override.mjs +0 -1
  76. package/dist/esm/config/root-size.mjs +0 -1
  77. package/dist/esm/config/rules.mjs +0 -1
  78. package/dist/esm/config/scope.mjs +0 -1
  79. package/dist/esm/config/selectors.mjs +0 -1
  80. package/dist/esm/config/semantics.mjs +0 -1
  81. package/dist/esm/config/themeDriver.mjs +0 -1
  82. package/dist/esm/config/themes.mjs +0 -1
  83. package/dist/esm/constants/config-esm-text.mjs +0 -17
  84. package/dist/esm/constants/config-text.mjs +0 -15
  85. package/dist/esm/constants/index.mjs +0 -1
  86. package/dist/esm/constants/selector-symbols.mjs +0 -1
  87. package/dist/esm/constants/start-symbol.mjs +0 -1
  88. package/dist/esm/core.mjs +0 -1
  89. package/dist/esm/index.browser.mjs +0 -1
  90. package/dist/esm/index.mjs +0 -1
  91. package/dist/esm/methods/extract-classes-from-html.mjs +0 -1
  92. package/dist/esm/methods/fill-color-scale.mjs +0 -1
  93. package/dist/esm/methods/index.mjs +0 -1
  94. package/dist/esm/methods/render-from-html.mjs +0 -1
  95. package/dist/esm/methods/render-into-html.mjs +0 -1
  96. package/dist/esm/methods/render-rules-from-html.mjs +0 -1
  97. package/dist/esm/methods/render-rules.mjs +0 -1
  98. package/dist/esm/methods/render.mjs +0 -1
  99. package/dist/esm/polyfills/css-escape.mjs +0 -1
  100. package/dist/esm/rule.mjs +0 -1
  101. package/dist/esm/utils/concat-arrays.mjs +0 -1
  102. package/dist/esm/utils/css-escape.mjs +0 -1
  103. package/dist/esm/utils/delay.mjs +0 -1
  104. package/dist/esm/utils/get-type.mjs +0 -1
  105. package/dist/esm/utils/hex-to-rgb.mjs +0 -1
  106. package/dist/esm/utils/is-plain-object.mjs +0 -1
  107. package/dist/esm/utils/is-symbol.mjs +0 -1
  108. package/dist/esm/utils/parse-rule-value.mjs +0 -1
  109. package/dist/esm/utils/rgb-to-hex.mjs +0 -1
  110. package/dist/index.browser.js +0 -1
  111. package/dist/index.js +0 -31
  112. package/dist/index.mjs +0 -31
  113. package/dist/methods/extract-classes-from-html.d.ts +0 -1
  114. package/dist/methods/fill-color-scale.d.ts +0 -1
  115. package/dist/methods/index.d.ts +0 -7
  116. package/dist/methods/render-from-html.d.ts +0 -2
  117. package/dist/methods/render-into-html.d.ts +0 -2
  118. package/dist/methods/render-rules-from-html.d.ts +0 -3
  119. package/dist/methods/render-rules.d.ts +0 -3
  120. package/dist/methods/render.d.ts +0 -2
  121. package/dist/utils/css-escape.d.ts +0 -1
  122. package/dist/utils/delay.d.ts +0 -1
@@ -1 +0,0 @@
1
- var g=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var w=(e,t)=>{for(var i in t)g(e,i,{get:t[i],enumerable:!0})},S=(e,t,i,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $(t))!C.call(e,n)&&n!==i&&g(e,n,{get:()=>t[n],enumerable:!(c=k(t,n))||c.enumerable});return e};var R=e=>S(g({},"__esModule",{value:!0}),e);var I={};w(I,{rules:()=>T});module.exports=R(I);var f=require("../constants/start-symbol"),x=require("../utils/css-escape"),B={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(r,o)=>{let a=o.indexOf(":");if(a!==-1){r in t||(t[r]={});let u=t[r],h=o.slice(0,a);h in u||(u[h]=o.slice(a+1))}},c=r=>{let o=(a,u)=>{let h=u.slice((0,x.cssEscape)(r.className).length).match(/\{(.*)\}/)[1].split(";");for(let y of h)i(a,y)};if(this.theme){let a=r.natives.find(u=>u.theme===this.theme)??r.natives.find(u=>!u.theme);a&&o(this.theme,a.text)}else for(let a of r.natives)o(a.theme,a.text);if(r.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let a of r.keyframeNames)this.keyframeNames.includes(a)||this.keyframeNames.push(a)}},n=[],l="",d=()=>{l&&(n.push(l.replace(/ /g,"|")),l="")},m=1;(function r(o){for(;m<e.length;m++){let a=e[m];if(!o){if(a===";"){d();continue}if(a==="}")break}if(l+=a,o===a){if(o==="'"||o==='"'){let u=0;for(let h=l.length-2;l[h]==="\\";h--)u++;if(u%2)continue}break}else a in f.START_SYMBOLS&&o!=="'"&&o!=='"'&&(m++,r(f.START_SYMBOLS[a]))}})(void 0),d();for(let r of n){let o=this.css.create(r);if(Array.isArray(o))if(o.length)for(let a of o)c(a);else i(this.theme??"",r);else c(o)}let s={};for(let r in t)for(let[o,a]of Object.entries(t[r]))o in s?s[o][r]=a:s[o]={[r]:a};return s},delete(){return v.call(this)},insert(){return b.call(this)}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},lines:{match:"^lines:.",declare(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},overscrollBehaviorX:{native:!0},overscrollBehaviorY:{native:!0},overscrollBehavior:{native:!0,order:-1},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0,create(e){return p.call(this,e)},delete(){return v.call(this)},insert(){return b.call(this)}},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(e){return p.call(this,e)},delete(){return v.call(this)},insert(){return b.call(this)}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderTopColor:{match:"^b(?:t|order-top(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderBottomColor:{match:"^b(?:b|order-bottom(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderLeftColor:{match:"^b(?:l|order-left(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderRightColor:{match:"^b(?:r|order-right(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderXColor:{match:"^b(?:x|order-x(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},order:-2},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMarginLeft:{match:"^sml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^smr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^smt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^smb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:smx|scroll-margin-x):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:smy|scroll-margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^sm:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^spl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^spr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^spt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^spb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:spx|scroll-padding-x):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:spy|scroll-padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^sp:.",native:!0,unit:"rem",order:-1},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},T=B;function p(e){if(!this.css.config.keyframes)return;let t=(this.meta.origin==="symbol"?e.slice(this.meta.config.symbol.length):e.slice(e.indexOf(":")+1)).split("|").filter(i=>i in this.css.config.keyframes);t?.length&&(this.keyframeNames=t)}function v(){if(this.keyframeNames?.length){let e=this.css.rules[0];for(let t of this.keyframeNames){let i=this.css.keyframes[t];if(!--i.count){let c=e.natives.indexOf(i.native);this.css.style.sheet.deleteRule(c),e.natives.splice(c,1),delete this.css.keyframes[t]}}e.natives.length||this.css.rules.splice(0,1)}}function b(){if(this.keyframeNames){let{config:e,keyframes:t,style:i,rules:c}=this.css,n=i?.sheet;for(let l of this.keyframeNames)if(l in t)t[l].count++;else{let d={text:`@keyframes ${l}{`+Object.entries(e.keyframes[l]).map(([s,r])=>`${s}{${Object.entries(r).map(([o,a])=>o+":"+a).join(";")}}`).join("")+"}",theme:""},m;if(Object.keys(t).length?(m=c[0]).natives.push(d):c.splice(0,0,m={natives:[d],get text(){return this.natives.map(s=>s.text).join("")}}),n){let s;for(let r=0;r<n.cssRules.length;r++){let o=n.cssRules[r];if(o.constructor.name!=="CSSKeyframesRule")break;if(o.name===l){s=o;break}}if(s)d.cssRule=s;else{let r=m.natives.length-1;n.insertRule(d.text,r),d.cssRule=n.cssRules[r]}}t[l]={native:d,count:1}}}}0&&(module.exports={rules});
@@ -1 +0,0 @@
1
- var s=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var a=(c,o)=>{for(var p in o)s(c,p,{get:o[p],enumerable:!0})},b=(c,o,p,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of r(o))!x.call(c,e)&&e!==p&&s(c,e,{get:()=>o[e],enumerable:!(t=n(o,e))||t.enumerable});return c};var d=c=>b(s({},"__esModule",{value:!0}),c);var g={};a(g,{scope:()=>f});module.exports=d(g);var f="";0&&(module.exports={scope});
@@ -1 +0,0 @@
1
- var b=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var o=(e,r)=>{for(var l in r)b(e,l,{get:r[l],enumerable:!0})},k=(e,r,l,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of i(r))!a.call(e,t)&&t!==l&&b(e,t,{get:()=>r[t],enumerable:!(c=s(r,t))||c.enumerable});return e};var n=e=>k(b({},"__esModule",{value:!0}),e);var d={};o(d,{selectors:()=>h});module.exports=n(d);var h={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};0&&(module.exports={selectors});
@@ -1 +0,0 @@
1
- var a=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var d=(e,i)=>{for(var l in i)a(e,l,{get:i[l],enumerable:!0})},p=(e,i,l,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let t of r(i))!s.call(e,t)&&t!==l&&a(e,t,{get:()=>i[t],enumerable:!(o=n(i,t))||o.enumerable});return e};var b=e=>p(a({},"__esModule",{value:!0}),e);var h={};d(h,{semantics:()=>c});module.exports=b(h);var c={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"}};0&&(module.exports={semantics});
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var t in e)c(r,t,{get:e[t],enumerable:!0})},m=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of h(e))!i.call(r,s)&&s!==t&&c(r,s,{get:()=>e[s],enumerable:!(o=a(e,s))||o.enumerable});return r};var n=r=>m(c({},"__esModule",{value:!0}),r);var v={};l(v,{themeDriver:()=>p});module.exports=n(v);var p="class";0&&(module.exports={themeDriver});
@@ -1 +0,0 @@
1
- var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var g=(e,t)=>{for(var o in t)r(e,o,{get:t[o],enumerable:!0})},i=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let h of c(t))!d.call(e,h)&&h!==o&&r(e,h,{get:()=>t[h],enumerable:!(s=a(t,h))||s.enumerable});return e};var k=e=>i(r({},"__esModule",{value:!0}),e);var m={};g(m,{themes:()=>l});module.exports=k(m);var l=["dark","light"];0&&(module.exports={themes});
@@ -1,17 +0,0 @@
1
- var c=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var f=(e,s)=>{for(var t in s)c(e,t,{get:s[t],enumerable:!0})},l=(e,s,t,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let o of n(s))!a.call(e,o)&&o!==t&&c(e,o,{get:()=>s[o],enumerable:!(r=i(s,o))||r.enumerable});return e};var m=e=>l(c({},"__esModule",{value:!0}),e);var u={};f(u,{CONFIG_ESM_TEXT:()=>p});module.exports=m(u);var p=`/** @type {import('@master/css').Config} */
2
- const config = {
3
- classes: {},
4
- colors: {},
5
- themes: {},
6
- rules: {},
7
- values: {},
8
- semantics: {},
9
- breakpoints: {},
10
- mediaQueries: {},
11
- keyframes: {},
12
- selectors: {},
13
- functions: {}
14
- }
15
-
16
- export default config
17
- `;0&&(module.exports={CONFIG_ESM_TEXT});
@@ -1,15 +0,0 @@
1
- var r=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var l=(e,s)=>{for(var t in s)r(e,t,{get:s[t],enumerable:!0})},n=(e,s,t,a)=>{if(s&&typeof s=="object"||typeof s=="function")for(let o of i(s))!m.call(e,o)&&o!==t&&r(e,o,{get:()=>s[o],enumerable:!(a=c(s,o))||a.enumerable});return e};var p=e=>n(r({},"__esModule",{value:!0}),e);var f={};l(f,{CONFIG_TEXT:()=>u});module.exports=p(f);var u=`/** @type {import('@master/css').Config} */
2
- module.exports = {
3
- classes: {},
4
- colors: {},
5
- themes: {},
6
- rules: {},
7
- values: {},
8
- semantics: {},
9
- breakpoints: {},
10
- mediaQueries: {},
11
- keyframes: {},
12
- selectors: {},
13
- functions: {}
14
- }
15
- `;0&&(module.exports={CONFIG_TEXT});
@@ -1 +0,0 @@
1
- var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,e,p,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of c(e))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>e[m],enumerable:!(x=b(e,m))||x.enumerable});return f},r=(f,e,p)=>(t(f,e,"default"),p&&t(p,e,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);r(o,require("./config-text"),module.exports);r(o,require("./config-esm-text"),module.exports);r(o,require("./selector-symbols"),module.exports);r(o,require("./start-symbol"),module.exports);0&&(module.exports={...require("./config-text"),...require("./config-esm-text"),...require("./selector-symbols"),...require("./start-symbol")});
@@ -1 +0,0 @@
1
- var L=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var e=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var p=(o,S)=>{for(var E in S)L(o,E,{get:S[E],enumerable:!0})},r=(o,S,E,O)=>{if(S&&typeof S=="object"||typeof S=="function")for(let t of e(S))!n.call(o,t)&&t!==E&&L(o,t,{get:()=>S[t],enumerable:!(O=c(S,t))||O.enumerable});return o};var s=o=>r(L({},"__esModule",{value:!0}),o);var B={};p(B,{SELECTOR_SYMBOLS:()=>x});module.exports=s(B);var x=[",",".","#","[","!","*",">","+","~",":","@"];0&&(module.exports={SELECTOR_SYMBOLS});
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var s=(o,S)=>{for(var T in S)c(o,T,{get:S[T],enumerable:!0})},x=(o,S,T,e)=>{if(S&&typeof S=="object"||typeof S=="function")for(let t of p(S))!r.call(o,t)&&t!==T&&c(o,t,{get:()=>S[t],enumerable:!(e=n(S,t))||e.enumerable});return o};var A=o=>x(c({},"__esModule",{value:!0}),o);var L={};s(L,{START_SYMBOLS:()=>B});module.exports=A(L);var B={"(":")","'":"'",'"':'"',"{":"}"};0&&(module.exports={START_SYMBOLS});
package/dist/cjs/core.js DELETED
@@ -1 +0,0 @@
1
- var L=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var U=Object.prototype.hasOwnProperty;var Y=(y,s,i)=>s in y?L(y,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[s]=i;var G=(y,s)=>{for(var i in s)L(y,i,{get:s[i],enumerable:!0})},J=(y,s,i,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let u of q(s))!U.call(y,u)&&u!==i&&L(y,u,{get:()=>s[u],enumerable:!(o=Z(s,u))||o.enumerable});return y};var P=y=>J(L({},"__esModule",{value:!0}),y);var T=(y,s,i)=>(Y(y,typeof s!="symbol"?s+"":s,i),i);var X={};G(X,{MasterCSS:()=>O});module.exports=P(X);function $(y){let s=typeof Buffer<"u"?Buffer:null;return!!(s&&y instanceof s||y instanceof Date||y instanceof RegExp)}function F(y){if(typeof Buffer<"u"&&Buffer&&y instanceof Buffer){let s=Buffer.alloc(y.length);return y.copy(s),s}else{if(y instanceof Date)return new Date(y.getTime());if(y instanceof RegExp)return new RegExp(y);throw new Error("Unexpected situation")}}function V(y){let s=[];return y.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?s[o]=V(i):$(i)?s[o]=F(i):s[o]=j({},i):s[o]=i}),s}function I(y,s){return s==="__proto__"?void 0:y[s]}function j(...y){let s={},i,o;return y.forEach(function(u){typeof u!="object"||u===null||Array.isArray(u)||Object.keys(u).forEach(function(v){if(o=I(s,v),i=I(u,v),i!==s)if(typeof i!="object"||i===null){s[v]=i;return}else if(Array.isArray(i)){s[v]=V(i);return}else if($(i)){s[v]=F(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){s[v]=j({},i);return}else{s[v]=j(o,i);return}})}),s}var H=require("./rule"),N=require("./config"),Q=require("./utils/rgb-to-hex"),z=require("./constants/selector-symbols");var W=typeof window<"u",D=()=>{let y=document.createElement("style");return y.id="master",y},k=class{constructor(s=N.config){this.config=s;s?.override||(this.config=j(N.config,s),"keyframes"in s&&Object.assign(this.config.keyframes,s.keyframes)),this.cache(),W&&this.config.observe&&this.observe(document),k.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:s,classes:i,selectors:o,themes:u,colors:v,values:S,breakpoints:w,mediaQueries:g,rules:E}=this.config;function B(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(t,n,c="",d={}){let b=R=>R?(c?c+"-":"")+R:c,x=Object.entries(t),C=[],M=[];for(let R of x){let A=R[1];(typeof A=="object"&&!Array.isArray(A)?C:M).push(R)}for(let[R,A]of C)a(A,n,b(R),d);if(n&&c)M.length&&(d[c]=M.reduce((R,[A,_])=>(R[A]=_,R),{}));else for(let[R,A]of M)d[b(R)]=A;return d}function m(t){for(let[n,c]of Object.entries(t))/^[0-9]+x$/.test(n)&&typeof c=="number"&&(t["-"+n]=c*-1);return t}if(s)for(let[t,n]of Object.entries(a(s,!0)))this.semantics.push([new RegExp("^"+B(t)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[t,n]]);if(o)for(let[t,n]of Object.entries(a(o,!1))){let c=new RegExp(B(t)+"(?![a-z-])");for(let d of Array.isArray(n)?n:[n]){let b=d.match(/^::-[a-z]+-/m)?.[0]??"",x=this.selectors[b];x||(x=this.selectors[b]=[]);let C=x.find(([M])=>M===c);C||(C=[c,[]],x.push(C)),C[1].push(d)}}S&&(this.globalValues=m(a(S,!1))),w&&(this.breakpoints=a(w,!1)),g&&(this.mediaQueries=a(g,!1));let p=i?a(i,!1):{},h=u&&!Array.isArray(u)?Object.entries(u).filter(([,{classes:t}])=>t).reduce((t,[n,{classes:c}])=>(t[n]=a(c,!1),t),{}):{},f=[...Object.keys(p),...Object.entries(h).flatMap(([t,n])=>Object.keys(n))],l=t=>{if(t in this.classes)return;let n=this.classes[t]=[],c=(d,b)=>{if(!b)return;let x=Array.isArray(b)?b:b.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let C of x){let M=R=>{R in this.themeAffectedClassesBy?d in this.themeAffectedClassesBy[R]?this.themeAffectedClassesBy[R][d].push(t):this.themeAffectedClassesBy[R][d]=[t]:this.themeAffectedClassesBy[R]={[d]:[t]},n.includes(R)||n.push(R)};if(f.includes(C)){l(C);for(let R of this.classes[C])M(R)}else M(C)}};c("",p?.[t]);for(let[d,b]of Object.entries(h))c(d,b?.[t])};for(let t of f)l(t);for(let t in this.themeAffectedClassesBy){let n=this.classesBy[t]=[];for(let c of Object.values(this.themeAffectedClassesBy[t]))for(let d of c)n.includes(d)||n.push(d)}let r=(t,n)=>{if(!n)return;let c=a(n,!0);for(let[d,b]of Object.entries(c)){let x=typeof b=="string"?{"":b}:b;for(let[C,M]of Object.entries(x)){let R=d+(C?"-"+C:"");R in this.colorThemesMap?this.colorThemesMap[R][t]=M:this.colorThemesMap[R]={[t]:M}}}for(let d in n)this.colorNames.includes(d)||this.colorNames.push(d)};if(r("",v),u)if(Array.isArray(u))this.themeNames.push(...u);else for(let t in u){let n=u[t];r(t,n.colors),this.themeNames.push(t)}let e=t=>{for(let[n,c]of Object.entries(this.colorThemesMap))for(let[d,b]of Object.entries(c))b.startsWith("#")||t(n,c,d,b)};if(e((t,n,c,d)=>{let b=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(d);if(b){let x="#"+(0,Q.rgbToHex)(+b[1],+b[2],+b[3]);b[4]&&(x+=Math.round(255*+b[4]).toString(16)),n[c]=x}}),e((t,n,c,d)=>{let[b,x]=d.split("/"),C=this.colorThemesMap[b];if(C){let M=(c?C[c]:void 0)??C[""];n[c]=x?M.slice(0,7)+Math.round(255*+x).toString(16):M}else console.warn(`\`${d}\` doesn't exist in the extended config \`.colors\``),delete n[c],Object.keys(n).length||delete this.colorThemesMap[t]}),E)for(let t in E){let n=E[t],{native:c,values:d,colored:b}=n,x=n.match;if(n.id=t,n.native=c===!0?t.replace(/(?!^)[A-Z]/g,C=>"-"+C).toLowerCase():void 0,d&&(this.values[t]=m(a(d,!1))),x){let C=Object.keys(this.values[t]??{});x.includes("$values")&&(x=C.length?x.replace(/\$values/,C.join("|")):x.replace(/(?:\|)?\$values/,"")),b&&x.includes("$colors")&&(x=this.colorNames.length?x.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):x.replace(/(?:\|)?\$colors/,"")),this.matches[t]=new RegExp(x)}}}observe(s,i={subtree:!0,childList:!0}){if(this.root!==s){if(W&&s){this.root=s;let o=s===document;o&&(k.root=this),this.host=o?document.documentElement:this.root.host;let u=o?document.head:s,v=o?document.styleSheets:s.styleSheets;for(let w of v){let{ownerNode:g}=w;if(g&&g.id==="master"){this.style=g;break}}if(this.style)for(let w=0;w<this.style.sheet.cssRules.length;w++){let g=this.style.sheet.cssRules[w];if(g.constructor.name==="CSSKeyframesRule")continue;let E=a=>{if(a.selectorText){let p=a.selectorText.split(", ")[0].split(" ");for(let h=0;h<p.length;h++){let f=p[h];if(f[0]==="."){let l=f.slice(1),r="";for(let e=0;e<l.length;e++){let t=l[e],n=l[e+1];if(t==="\\"){if(e++,n!=="\\"){r+=n;continue}}else if(z.SELECTOR_SYMBOLS.includes(t))break;r+=t}if(!(r in this.ruleBy)&&!(r in this.classes)){let e=this.create(r)[0];if(e)return e}}}}else if(a.cssRules)for(let m=0;m<a.cssRules.length;m++){let p=E(a.cssRules[m]);if(p)return p}},B=E(g);if(B){this.rules.push(B),this.ruleBy[B.className]=B;for(let a=0;a<B.natives.length;a++)B.natives[a].cssRule=this.style.sheet.cssRules[w+a];w+=B.natives.length-1,B.config.insert?.call(B)}}else this.style=D(),u.append(this.style);let S=w=>{w.forEach(g=>{g in this.countBy?this.countBy[g]++:(this.countBy[g]=1,this.insert(g))})};S(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(w=>S(w.classList)),this.observer=new MutationObserver(w=>{let g={},E=[],B=[],a=[],m=(l,r)=>{r?l.classList.forEach(h):l.classList.forEach(p);let e=l.children;for(let t=0;t<e.length;t++){let n=e[t];n.classList&&(B.push(n),m(n,r))}},p=l=>{l in g?g[l]++:g[l]=1},h=l=>{l in g?g[l]--:l in this.countBy&&(g[l]=-1)},f=(l,r)=>{for(let e=0;e<l.length;e++){let t=l[e];t.classList&&!B.includes(t)&&!a.includes(t)&&(t.isConnected!==r?(B.push(t),m(t,r)):a.push(t))}};for(let l=0;l<w.length;l++){let r=w[l],{addedNodes:e,removedNodes:t,type:n,target:c}=r;if(n==="attributes"){if(E.find(d=>d.target===c))continue;E.push(r)}else f(e,!1),(!c.isConnected||!B.includes(c))&&f(t,!0)}if(!(!E.length&&!Object.keys(g).length)){for(let{oldValue:l,target:r}of E){let e=B.includes(r),t=r.classList,n=l?l.split(" "):[];if(e){if(r.isConnected)continue;for(let c of n)t.contains(c)||h(c)}else if(r.isConnected){t.forEach(c=>{n.includes(c)||p(c)});for(let c of n)t.contains(c)||h(c)}}for(let l in g){let r=g[l],e=(this.countBy[l]||0)+r;e===0?(delete this.countBy[l],this.delete(l)):(l in this.countBy||this.insert(l),this.countBy[l]=e)}}}),this.observer.observe(s,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let s=this.style?.sheet;if(s?.cssRules)for(let i=s.cssRules.length-1;i>=0;i--)s.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(s){for(let i in this.config.rules){let o=this.config.rules[i],u=this.matches[i],{symbol:v,native:S}=o;if(u&&u.test(s))return{origin:"match",config:o};if(v&&s.startsWith(v))return{origin:"symbol",config:o};if(S&&s.startsWith(S+":"))return{origin:"match",config:o}}for(let i of this.semantics)if(s.match(i[0]))return{origin:"semantics",value:i[1]}}create(s){let i=o=>{if(o in this.ruleBy)return this.ruleBy[o];let u=this.match(o);if(u)return new H.Rule(o,u,this)};return(s in this.classes?this.classes[s].map(o=>i(o)):[i(s)]).filter(o=>o&&o.text)}refresh(s){if(s?.override?this.config=s:this.config=j(N.config,s),this.cache(),!this.style)return;let i=D();this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let s=k.instances;this.disconnect(),s.splice(s.indexOf(this),1)}delete(s){let i=this.style?.sheet,o=u=>{let v=this.ruleBy[u];if(!(!v||u in this.classesBy&&this.classesBy[u].some(S=>S in this.countBy))){if(i&&v.natives.length){let S=v.natives[0];for(let w=0;w<i.cssRules.length;w++)if(i.cssRules[w]===S.cssRule){for(let E=0;E<v.natives.length;E++)i.deleteRule(w);break}}this.rules.splice(this.rules.indexOf(v),1),delete this.ruleBy[u],v.config.delete&&v.config.delete.call(v,u)}};if(s in this.classes){for(let u of this.classes[s])u in this.countBy||o(u);delete this.ruleBy[s]}else o(s)}insert(s){let i=this.create(s);return i.length?(this.insertRules(i),!0):!1}insertRules(s){for(let i of s){if(this.ruleBy[i.className])continue;let o,u=Object.keys(this.keyframes).length,v=this.rules.length-1,{media:S,order:w,priority:g,hasWhere:E,className:B}=i,a=(h,f,l)=>{let r=h;for(;r<=v;r++){let e=this.rules[r];if(f?.(e))return l?-1:r-1;if(l?.(e))return r}return l?-1:r-1},m,p;if(S){let h=this.rules.findIndex(f=>f.media);if(h===-1)o=v+1;else{let{"max-width":f,"min-width":l}=S.features;if(f||l){let r=this.rules.findIndex(e=>e.media?.features["max-width"]||e.media?.features["min-width"]);if(r===-1)o=v+1;else if(f&&l){if(g===-1?(m=a(r,e=>e.priority!==-1,e=>e.media.features["max-width"]&&e.media.features["min-width"]),p=a(r,e=>e.priority!==-1)):(m=a(r,void 0,e=>e.media.features["max-width"]&&e.media.features["min-width"]&&e.priority!==-1),p=v),m!==-1){let e=f.value-l.value,t=p,n=m;for(m=void 0;t>=n;t--){let{"max-width":c,"min-width":d}=this.rules[t].media.features,b=c.value-d.value;if(b<e)p=t-1;else if(b===e)m=t;else break}}if(m!==-1){let e=f.value-l.value;for(let t=p;t>=m;t--){let{"max-width":n,"min-width":c}=this.rules[t].media.features,d=n.value-c.value;if(d<e)p=t-1;else if(d>e){m=t+1;break}}}}else if(l){if(g===-1?(m=a(r,e=>e.media.features["max-width"]&&e.media.features["min-width"]||e.priority!==-1,e=>!e.media.features["max-width"]&&e.media.features["min-width"]),p=a(r,e=>e.media.features["max-width"]&&e.media.features["min-width"]||e.priority!==-1)):(m=a(r,e=>e.media.features["max-width"]&&e.media.features["min-width"]&&e.priority!==-1,e=>!e.media.features["max-width"]&&e.media.features["min-width"]&&e.priority!==-1),p=a(r,e=>e.media.features["max-width"]&&e.media.features["min-width"]&&e.priority!==-1)),m!==-1)for(let e=p;e>=m;e--){let t=this.rules[e].media.features["min-width"].value;if(t>l.value)p=e-1;else if(t<l.value){m=e+1;break}}}else if(g===-1?(m=a(r,e=>e.media.features["min-width"]||e.priority!==-1,e=>e.media.features["max-width"]),p=a(r,e=>e.media.features["min-width"]||e.priority!==-1)):(m=a(r,e=>e.media.features["min-width"]&&e.priority!==-1,e=>e.media.features["max-width"]&&e.priority!==-1),p=a(r,e=>e.media.features["min-width"]&&e.priority!==-1)),m!==-1)for(let e=p;e>=m;e--){let t=this.rules[e].media.features["max-width"].value;if(t<f.value)p=e-1;else if(t>f.value){m=e+1;break}}}else g===-1?(m=h,p=a(h,r=>r.media?.features["max-width"]||r.media?.features["min-width"]||r.priority!==-1)):(m=a(h,r=>r.media?.features["max-width"]||r.media?.features["min-width"],r=>r.priority!==-1),p=a(h,r=>r.media?.features["max-width"]||r.media?.features["min-width"]))}}else{let h=u?1:0;g===-1?(m=h,p=a(h,f=>f.media||f.priority!==-1)):(m=a(h,f=>f.media,f=>f.priority!==-1),p=a(h,f=>f.media))}if(o===void 0)if(m===-1)o=p+1;else{if(g===-1)for(let h=m;h<=p;h++){let f=this.rules[h];if(!(!E&&f.hasWhere)&&(E&&!f.hasWhere||f.order>=w)){o=h;break}}else for(let h=m;h<=p;h++){let f=this.rules[h];if(!(!E&&f.hasWhere)){if(E&&!f.hasWhere){o=h;break}if(f.priority<g){o=h;break}else if(f.priority===g){if(f.order>=w){o=h;break}}else o=h+1}}o===void 0&&(o=p+1)}if(this.rules.splice(o,0,i),this.ruleBy[B]=i,this.style){let h=this.style.sheet,f=0,l=r=>{let e=this.rules[r];if(e){if(!e.natives.length)return l(r-1);let t=e.natives[e.natives.length-1].cssRule;for(let n=0;n<h.cssRules.length;n++)if(h.cssRules[n]===t){f=n+1;break}}};l(o-1);for(let r=0;r<i.natives.length;)try{let e=i.natives[r];h.insertRule(e.text,f),e.cssRule=h.cssRules[f++],r++}catch(e){console.error(e),i.natives.splice(r,1)}}i.config.insert?.call(i)}}get text(){return this.rules.map(s=>s.text).join("")}},O=k;T(O,"root"),T(O,"config",N.config),T(O,"instances",[]),T(O,"refresh",s=>{for(let i of k.instances)i.refresh(s)});W&&(window.MasterCSS=O);0&&(module.exports={MasterCSS});
@@ -1 +0,0 @@
1
- var o=require("./core");new o.MasterCSS(window.masterCSSConfig);
package/dist/cjs/index.js DELETED
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var B=(f,t)=>{for(var n in t)c(f,n,{get:t[n],enumerable:!0})},l=(f,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of d(t))!E.call(f,u)&&u!==n&&c(f,u,{get:()=>t[u],enumerable:!(o=A(t,u))||o.enumerable});return f},r=(f,t,n)=>(l(f,t,"default"),n&&l(n,t,"default"));var b=f=>l(c({},"__esModule",{value:!0}),f);var e={};B(e,{default:()=>m.MasterCSS,extend:()=>a});module.exports=b(e);r(e,require("./core"),module.exports);r(e,require("./rule"),module.exports);r(e,require("./constants"),module.exports);var m=require("./core");function p(f){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&f instanceof t||f instanceof Date||f instanceof RegExp)}function y(f){if(typeof Buffer<"u"&&Buffer&&f instanceof Buffer){let t=Buffer.alloc(f.length);return f.copy(t),t}else{if(f instanceof Date)return new Date(f.getTime());if(f instanceof RegExp)return new RegExp(f);throw new Error("Unexpected situation")}}function x(f){let t=[];return f.forEach(function(n,o){typeof n=="object"&&n!==null?Array.isArray(n)?t[o]=x(n):p(n)?t[o]=y(n):t[o]=a({},n):t[o]=n}),t}function s(f,t){return t==="__proto__"?void 0:f[t]}function a(...f){let t={},n,o;return f.forEach(function(u){typeof u!="object"||u===null||Array.isArray(u)||Object.keys(u).forEach(function(i){if(o=s(t,i),n=s(u,i),n!==t)if(typeof n!="object"||n===null){t[i]=n;return}else if(Array.isArray(n)){t[i]=x(n);return}else if(p(n)){t[i]=y(n);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[i]=a({},n);return}else{t[i]=a(o,n);return}})}),t}r(e,require("./methods"),module.exports);r(e,require("./config"),module.exports);0&&(module.exports={extend,...require("./core"),...require("./rule"),...require("./constants"),...require("./methods"),...require("./config")});
@@ -1 +0,0 @@
1
- var p=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var n=(e,t)=>{for(var s in t)p(e,s,{get:t[s],enumerable:!0})},g=(e,t,s,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of c(t))!l.call(e,a)&&a!==s&&p(e,a,{get:()=>t[a],enumerable:!(o=r(t,a))||o.enumerable});return e};var i=e=>g(p({},"__esModule",{value:!0}),e);var d={};n(d,{extractClassesFromHTML:()=>x});module.exports=i(d);var m=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,u={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};function x(e){if(e)return e.split(/\sclass="([^"]*)"/gm).filter((t,s)=>s%2===1).map(t=>t.split(" ")).flat().map(t=>t.replace(m,(s,o)=>u[o]))}0&&(module.exports={extractClassesFromHTML});
@@ -1 +0,0 @@
1
- var b=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var D=Object.prototype.hasOwnProperty;var M=(e,n)=>{for(var r in n)b(e,r,{get:n[r],enumerable:!0})},k=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of x(n))!D.call(e,o)&&o!==r&&b(e,o,{get:()=>n[o],enumerable:!(i=w(n,o))||i.enumerable});return e};var y=e=>k(b({},"__esModule",{value:!0}),e);var T={};M(T,{fillColorScale:()=>C});module.exports=y(T);var s=require("../utils/hex-to-rgb"),p=require("../utils/rgb-to-hex");function C(e){typeof e=="string"&&(e={"":e});let n=""in e,r=!1;for(let i in e)if(i&&+i>=100){r=!0;break}if(!r&&(!n||Object.keys(e).length>1)){let i=0,o="0"in e?(0,s.hexToRgb)(e[0]):[0,0,0],g,t,f=[],v=()=>{let l=g-i,m=t.map((c,h)=>(c-o[h])/l);for(let c of f){let h=c-i,u=o.map((L,R)=>Math.round(L+m[R]*h));e[c]="#"+p.rgbToHex.call(this,...u)}};for(let l=1;l<100;l++)l in e?(f.length?(g=l,t=(0,s.hexToRgb)(e[l]),v(),f.length=0,o=t):o=(0,s.hexToRgb)(e[l]),i=l):f.push(l);f.length&&(g=100,t="100"in e?(0,s.hexToRgb)(e[100]):[255,255,255],v())}return n||(e[""]=e[r?"500":"50"]),e}0&&(module.exports={fillColorScale});
@@ -1 +0,0 @@
1
- var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,e,p,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of c(e))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>e[m],enumerable:!(x=b(e,m))||x.enumerable});return f},r=(f,e,p)=>(t(f,e,"default"),p&&t(p,e,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);r(o,require("./render"),module.exports);r(o,require("./render-from-html"),module.exports);r(o,require("./render-into-html"),module.exports);r(o,require("./render-rules"),module.exports);r(o,require("./render-rules-from-html"),module.exports);r(o,require("./extract-classes-from-html"),module.exports);r(o,require("./fill-color-scale"),module.exports);0&&(module.exports={...require("./render"),...require("./render-from-html"),...require("./render-into-html"),...require("./render-rules"),...require("./render-rules-from-html"),...require("./extract-classes-from-html"),...require("./fill-color-scale")});
@@ -1 +0,0 @@
1
- var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var g=(t,r)=>{for(var e in r)s(t,e,{get:r[e],enumerable:!0})},u=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of a(r))!m.call(t,o)&&o!==e&&s(t,o,{get:()=>r[o],enumerable:!(n=c(r,o))||n.enumerable});return t};var p=t=>u(s({},"__esModule",{value:!0}),t);var l={};g(l,{renderFromHTML:()=>C});module.exports=p(l);var i=require("../core"),f=require("./extract-classes-from-html");function C(t,r){if(!t)return;let e=(0,f.extractClassesFromHTML)(t);if(!e.length)return;let n=new i.MasterCSS({...r,observe:!1});for(let o of e)o in n.countBy||n.insert(o)&&(n.countBy[o]=1);return n.text}0&&(module.exports={renderFromHTML});
@@ -1 +0,0 @@
1
- var o=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var c=(r,e)=>{for(var t in e)o(r,t,{get:e[t],enumerable:!0})},d=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!p.call(r,n)&&n!==t&&o(r,n,{get:()=>e[n],enumerable:!(i=s(e,n))||i.enumerable});return r};var m=r=>d(o({},"__esModule",{value:!0}),r);var a={};c(a,{renderIntoHTML:()=>y});module.exports=m(a);var f=require("./render-from-html");function y(r,e){if(!r)return;let t=`<style id="master">${(0,f.renderFromHTML)(r,e)}</style>`;return r.replace(/<\/head>/,`${t}$&`)}0&&(module.exports={renderIntoHTML});
@@ -1 +0,0 @@
1
- var n=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var p=(e,r)=>{for(var o in r)n(e,o,{get:r[o],enumerable:!0})},c=(e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of u(r))!l.call(e,t)&&t!==o&&n(e,t,{get:()=>r[t],enumerable:!(i=m(r,t))||i.enumerable});return e};var g=e=>c(n({},"__esModule",{value:!0}),e);var a={};p(a,{renderRulesFromHTML:()=>R});module.exports=g(a);var f=require("./extract-classes-from-html"),s=require("./render-rules");function R(e,r){if(!e)return;let o=(0,f.extractClassesFromHTML)(e);if(o.length)return(0,s.renderRules)(o,r)}0&&(module.exports={renderRulesFromHTML});
@@ -1 +0,0 @@
1
- var f=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(r,e)=>{for(var o in e)f(r,o,{get:e[o],enumerable:!0})},m=(r,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of u(e))!c.call(r,t)&&t!==o&&f(r,t,{get:()=>e[t],enumerable:!(n=s(e,t))||n.enumerable});return r};var p=r=>m(f({},"__esModule",{value:!0}),r);var a={};l(a,{renderRules:()=>g});module.exports=p(a);var i=require("../core");function g(r,e){if(!r?.length)return;let o=new i.MasterCSS({...e,observe:!1});for(let n of r)n in o.countBy||o.insert(n)&&(o.countBy[n]=1);return o.rules}0&&(module.exports={renderRules});
@@ -1 +0,0 @@
1
- var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var m=(t,n)=>{for(var r in n)i(t,r,{get:n[r],enumerable:!0})},u=(t,n,r,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of c(n))!g.call(t,e)&&e!==r&&i(t,e,{get:()=>n[e],enumerable:!(o=s(n,e))||o.enumerable});return t};var a=t=>u(i({},"__esModule",{value:!0}),t);var C={};m(C,{render:()=>p});module.exports=a(C);var f=require("../core");function p(t,n){if(!t?.length)return;let r=new f.MasterCSS({...n,observe:!1});for(let o of t)o in r.countBy||r.insert(o)&&(r.countBy[o]=1);return r.text}0&&(module.exports={render});
@@ -1 +0,0 @@
1
- (()=>{let i=typeof global<"u"?global:window;if(!i.CSS&&!i.CSS?.escape){let r=function(s){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(s),c=t.length,n=-1,o="",e,x=t.charCodeAt(0);if(c==1&&x==45)return"\\"+t;for(;++n<c;){if(e=t.charCodeAt(n),e==0){o+="\uFFFD";continue}if(e>=1&&e<=31||e==127||n==0&&e>=48&&e<=57||n==1&&e>=48&&e<=57&&x==45){o+="\\"+e.toString(16)+" ";continue}if(e>=128||e==45||e==95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122){o+=t.charAt(n);continue}o+="\\"+t.charAt(n)}return o};i.CSS||(i.CSS={}),i.CSS.escape=r,globalThis.CSS.escape=r}})();
package/dist/cjs/rule.js DELETED
@@ -1 +0,0 @@
1
- var Q=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var pe=Object.prototype.hasOwnProperty;var me=(u,i)=>{for(var r in i)Q(u,r,{get:i[r],enumerable:!0})},xe=(u,i,r,S)=>{if(i&&typeof i=="object"||typeof i=="function")for(let v of de(i))!pe.call(u,v)&&v!==r&&Q(u,v,{get:()=>i[v],enumerable:!(S=he(i,v))||S.enumerable});return u};var ye=u=>xe(Q({},"__esModule",{value:!0}),u);var ve={};me(ve,{Rule:()=>F});module.exports=ye(ve);var q=require("./constants/start-symbol"),ce=require("./utils/css-escape");function oe(u){let i=typeof Buffer<"u"?Buffer:null;return!!(i&&u instanceof i||u instanceof Date||u instanceof RegExp)}function le(u){if(typeof Buffer<"u"&&Buffer&&u instanceof Buffer){let i=Buffer.alloc(u.length);return u.copy(i),i}else{if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp)return new RegExp(u);throw new Error("Unexpected situation")}}function fe(u){let i=[];return u.forEach(function(r,S){typeof r=="object"&&r!==null?Array.isArray(r)?i[S]=fe(r):oe(r)?i[S]=le(r):i[S]=N({},r):i[S]=r}),i}function re(u,i){return i==="__proto__"?void 0:u[i]}function N(...u){let i={},r,S;return u.forEach(function(v){typeof v!="object"||v===null||Array.isArray(v)||Object.keys(v).forEach(function(k){if(S=re(i,k),r=re(v,k),r!==i)if(typeof r!="object"||r===null){i[k]=r;return}else if(Array.isArray(r)){i[k]=fe(r);return}else if(oe(r)){i[k]=le(r);return}else if(typeof S!="object"||S===null||Array.isArray(S)){i[k]=N({},r);return}else{i[k]=N(S,r);return}})}),i}var Se={unit:"",order:0,separators:[","]},F=class{constructor(i,r={},S){this.className=i;this.meta=r;this.css=S;this.config=N(Se,r.config);let{unit:v,order:k,colored:C,native:D,analyze:Y,transform:Z,declare:H,create:J}=this.config,{scope:K,important:ae,functions:ue,themeDriver:P}=S.config,{themeNames:X,colorNames:G,colorThemesMap:ee,selectors:W,breakpoints:te,mediaQueries:_,themeAffectedClassesBy:ge,globalValues:z}=S,ie=ge[i];J&&J.call(this,i);let B,ne,I,A,w;if(r.origin==="semantics"){let[d,c]=r.value;A=i.slice(d.length),B=c}else{let d;if(Y)[d,I]=Y.call(this,i);else if(r.origin==="match"){let l=i.indexOf(":");this.prefix=i.slice(0,l+1),d=i.slice(l+1)}else r.origin==="symbol"&&(this.symbol=i[0],d=i.slice(1));w=[];let c=this,a=this.values,m=[","];this.config.separators.length&&m.push(...this.config.separators);let n="",t=0;(function l(e,f,o,s=void 0,g=[],b=[],h){let T=s===void 0,x,E=p=>p==="'"||p==='"',V=()=>x=n.length,M=()=>{if(n){let p=n,y=T?p:n.slice(x);if(n="",j="",a&&y in a&&!g.includes(y)){let R=t;t=0,l(a[y].toString(),f,void 0,s,[...g,y],b,h),t=R,T||(n=n.slice(0,x)+n)}else if(z&&y in z&&!b.includes(y)){let R=t;t=0,l(z[y].toString(),f,void 0,s,g,[...b,y],h),t=R,T||(n=n.slice(0,x)+n)}else if(T){let R=!h&&c.analyzeUnitValue(y,f);w.push({value:R?.value??y,unit:R?.unit})}else{let R=!h&&c.analyzeUnitValue(y,f);n=R?p.slice(0,x)+R.value+R.unit:p}V()}},O=E(o);V();let j="";for(;t<e.length;t++){let p=e[t];if(p===o){if(O){n+=p;let y=0;for(let R=n.length-2;n[R]==="\\";R--)y++;if(y%2)continue}else M(),n+=p;return}else if(!O&&p in q.START_SYMBOLS){let y=p==="("&&j&&ue?.[j];y?.name&&(n=n.slice(0,n.length-j.length)+y.name,j=y.name),n+=p,t++;let R=q.START_SYMBOLS[p];l(e,y?.unit??f,R,j||s||"",g,b,h||!!y?.transform),y?.transform&&(n=n.slice(0,x+j.length+1)+y.transform.call(c,n.slice(x+j.length+1,-1))+n.slice(-1)),T&&(E(R)?(w.push(n),n=""):M()),j=""}else if((p==="|"||p===" ")&&o!=="}"&&(!O||s==="path"))M(),T||(n+=" ",x++);else{if(!O){if(p==="."){if(isNaN(+e[t+1]))break;e[t-1]==="-"&&(n+="0")}else if(m.includes(p)){M(),T?w.push(p):(n+=p,x++);continue}else if(T&&(p==="#"&&(n||w.length&&e[t-1]!=="|"&&w[t-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(p)))break;j+=p}n+=p}}s===void 0&&M()})(d,v),A=d.slice(t)}this.order=typeof k=="function"?k.call(this,this.prefix):k,A[0]==="!"&&(this.important=!0,A=A.slice(1));let se=d=>{let c=d.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((t,l)=>l%3?t:t.replace(/_/g," ")).join(""),a=[],m="",n=0;for(let t=0;t<c.length;t++){let l=c[t];if(l==="\\"){m+=l+c[++t];continue}!n&&l===","?(a.push(m),m=""):(m+=l,n&&l===")"?n--:l==="("&&n++)}return m&&a.push(m),a};this.prefixSelectors=I?se(I):[""];let U=A.split("@"),$=U[0];if($){this.vendorSuffixSelectors={};let d=(t,l,e,f)=>{for(let[o,s]of l)if(o.test(t)){for(let g of s)d(t.replace(o,g),l,e,!0);return}f&&e.push(t)},c=[];""in W?d($,W[""],c,!0):c.push($);let a={};for(let[t,l]of Object.entries(W)){if(!t)continue;let e=[];for(let f of c)d(f,l,e,!1);e.length&&(a[t]=e)}let m=(t,l)=>{let e=l.reduce((f,o)=>(f.push(...se(o)),f),[]);t in this.vendorSuffixSelectors?this.vendorSuffixSelectors[t].push(...e):this.vendorSuffixSelectors[t]=e},n=Object.keys(a);if(n.length)for(let t of n)m(t,a[t]);else m("",c);for(let t of Object.values(this.vendorSuffixSelectors))for(let l of t){this.hasWhere!==!1&&(this.hasWhere=l.includes(":where("));let e=[":disabled",":active",":focus",":hover"];for(let f=0;f<e.length;f++)if(l.includes(e[f])){(this.priority===-1||this.priority>f)&&(this.priority=f);break}}}else this.vendorSuffixSelectors={"":[""]};for(let d=1;d<U.length;d++){let c=U[d];if(c)if(X.includes(c))this.theme=c;else if(c==="rtl"||c==="ltr")this.direction=c;else{let a,m,n=c.indexOf("(");if(n!==-1)a=c.slice(0,n).replace(/\|/g," "),m=c.slice(n);else{let t=c.indexOf("|");t!==-1&&(a=c.slice(0,t),m=c.slice(t))}if(!a){a="media";let t=[];this.media={token:c,features:{}};let l=c.split("&");for(let e of l)if(e==="all"||e==="print"||e==="screen"||e==="speech")this.media.type=e;else if(e==="\u{1F5A8}")this.media.type="print";else if(e==="landscape"||e==="portrait")t.push("(orientation:"+e+")");else if(e==="motion"||e==="reduced-motion")t.push("(prefers-reduced-motion:"+(e==="motion"?"no-preference":"reduce")+")");else if(_&&e in _)t.push(_[e]);else{let f={token:e},o="",s="",g=0;e.startsWith("<=")?(s="<=",o="max-width"):e.startsWith(">=")||te[e]?(s=">=",o="min-width"):e.startsWith(">")?(s=">",o="min-width",g=.02):e.startsWith("<")&&(s="<",o="max-width",g=-.02);let b=s?e.replace(s,""):e,h=te[b];switch(o){case"max-width":case"min-width":h?Object.assign(f,this.analyzeUnitValue(h.toString(),"px")):Object.assign(f,this.analyzeUnitValue(b,"px")),f.unit==="px"&&(f.value+=g),this.media.features[o]=f,t.push("("+o+":"+(f.value+f.unit)+")");break}}m="",this.media.type&&(m=this.media.type),t.length&&(m+=(m?" and ":"")+t.join(" and "))}m&&(this.at[a]=(a in this.at?this.at[a]+" and ":"")+m.replace(/\|/g," "))}}let L=(d,c)=>{let a,m=(l,e,f)=>{let o="";this.direction&&(o+="[dir="+this.direction+"] ");let s=this.prefixSelectors.map(h=>h+o),g=(h,T)=>s.map(x=>(h&&P!=="media"?P==="host"?`:host(.${h}) `:`.${h} `:"")+(K?K+" ":"")+x).reduce((x,E)=>(x.push(f.reduce((V,M)=>(V.push(E+"."+(0,ce.cssEscape)(T)+M),V),[]).join(",")),x),[]).join(","),b=g(e,i)+(ie?Object.entries(ie).filter(([h])=>this.theme||!C||!e||!h||h===e).map(([h,T])=>T.reduce((x,E)=>x+","+g(this.theme??((C||ne)&&e||h),E),"")).join(""):"")+"{"+l+"}";for(let h of Object.keys(this.at).sort((T,x)=>x==="supports"?-1:1))b="@"+h+(h.includes(" ")?"":" ")+this.at[h]+"{"+b+"}";return e&&P==="media"&&(b=`@media(prefers-color-scheme:${e}){`+b+"}"),b},n=[];if(w){let l=[this.theme??d,""],e,f=!1;for(let o of w)if(typeof o=="string")n.push(o);else{let s=o.value;if(o.unit)s+=o.unit;else if(C&&ee&&G){let g=!1;s=s.replace(new RegExp(`(^|,| |\\()((?:${G.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(b,h,T,x)=>{let E=ee[T];if(E){let V,M;for(let O of l)if(V=E[O]){M=O;break}if(V){g=!c||M===d,e||(e=g);let O=V;if(x){let j=x.endsWith("%")?parseFloat(x)/100:+x;j=isNaN(j)?1:Math.min(Math.max(j,0),1),O+=Math.round(j*255).toString(16).toUpperCase().padStart(2,"0")}return h+O}else f=!0}return b})}n.push(s)}if(c&&(f||(e===void 0?d:!e)))return;if(a=n.reduce((o,s,g)=>o+s+(s===","||w[g+1]===","||g===w.length-1?"":" "),""),Z&&(a=Z.call(this,a,this.css.config)),C&&a==="current"&&(a="currentColor"),H){let o,s;if(w.length===1){let g=w[0];typeof g=="object"&&(o=g.value,s=g.unit)}B=H.call(this,s?o:a,s||"")}else B={[D]:a}}let t={};for(let l in B){let e=(s,g)=>{let b=g+((this.important||ae)&&!g.endsWith("!important")?"!important":"");s in t?t[s].push(b):t[s]=[b]},f=l+":",o=B[l];if(typeof o=="object")if(Array.isArray(o))for(let s of o)e(d,f+s.toString());else{ne=!0;for(let s in o)e(s,f+o[s])}else e(d,f+o.toString())}for(let l of Object.values(this.vendorSuffixSelectors))for(let e in t)this.natives.push({text:m(t[e].join(";"),e,l),theme:e})};if(this.theme)L(this.theme,!1);else if(C)for(let d of X)L(d,!0);else L("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(i=>i.text).join("")}resolveValue(i,r){return Number.isNaN(+i)?i:i/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(i,r){let S=r??this.config.unit;if(S){let v="",k=i.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(k)if(i.includes("/")){let[C,D]=i.split("/");return{value:+C/+D*100+"%",unit:v}}else{let C=+k[1];return v=k[3]||"",v||((S==="rem"||S==="em")&&(C=C/this.css.config.rootSize),v=S||""),{value:C,unit:v}}}}};0&&(module.exports={Rule});
@@ -1 +0,0 @@
1
- var t=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var u=(y,r)=>{for(var n in r)t(y,n,{get:r[n],enumerable:!0})},f=(y,r,n,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of o(r))!s.call(y,a)&&a!==n&&t(y,a,{get:()=>r[a],enumerable:!(c=A(r,a))||c.enumerable});return y};var i=y=>f(t({},"__esModule",{value:!0}),y);var p={};u(p,{concatArrays:()=>e});module.exports=i(p);function e(y,r){return Array.isArray(y)&&Array.isArray(r)?y.concat(r):r}0&&(module.exports={concatArrays});
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var a=(r,t)=>{for(var i in t)c(r,i,{get:t[i],enumerable:!0})},h=(r,t,i,x)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of u(t))!f.call(r,n)&&n!==i&&c(r,n,{get:()=>t[n],enumerable:!(x=s(t,n))||x.enumerable});return r};var g=r=>h(c({},"__esModule",{value:!0}),r);var d={};a(d,{cssEscape:()=>S});module.exports=g(d);function S(r){if(typeof CSS<"u")return CSS.escape(r);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(r),i=t.length,x=-1,n="",e,o=t.charCodeAt(0);if(i==1&&o==45)return"\\"+t;for(;++x<i;){if(e=t.charCodeAt(x),e==0){n+="\uFFFD";continue}if(e>=1&&e<=31||e==127||x==0&&e>=48&&e<=57||x==1&&e>=48&&e<=57&&o==45){n+="\\"+e.toString(16)+" ";continue}if(e>=128||e==45||e==95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122){n+=t.charAt(x);continue}n+="\\"+t.charAt(x)}return n}0&&(module.exports={cssEscape});
@@ -1 +0,0 @@
1
- var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var o in e)r(t,o,{get:e[o],enumerable:!0})},m=(t,e,o,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d(e))!f.call(t,n)&&n!==o&&r(t,n,{get:()=>e[n],enumerable:!(u=a(e,n))||u.enumerable});return t};var s=t=>m(r({},"__esModule",{value:!0}),t);var c={};l(c,{default:()=>i});module.exports=s(c);function i(t=0){return new Promise(e=>{setTimeout(e,t)})}
@@ -1 +0,0 @@
1
- var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},y=(t,e,r,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!g.call(t,n)&&n!==r&&o(t,n,{get:()=>e[n],enumerable:!(c=i(e,n))||c.enumerable});return t};var a=t=>y(o({},"__esModule",{value:!0}),t);var u={};l(u,{getType:()=>s});module.exports=a(u);function s(t){return Object.prototype.toString.call(t).slice(8,-1)}0&&(module.exports={getType});
@@ -1 +0,0 @@
1
- var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var p=(n,t)=>{for(var s in t)a(n,s,{get:t[s],enumerable:!0})},g=(n,t,s,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of i(t))!o.call(n,r)&&r!==s&&a(n,r,{get:()=>t[r],enumerable:!(e=c(t,r))||e.enumerable});return n};var I=n=>g(a({},"__esModule",{value:!0}),n);var f={};p(f,{hexToRgb:()=>b});module.exports=I(f);function b(n){n.startsWith("#")&&(n=n.slice(1));let t=n.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}0&&(module.exports={hexToRgb});
@@ -1 +0,0 @@
1
- var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var n in e)o(t,n,{get:e[n],enumerable:!0})},s=(t,e,n,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of O(e))!j.call(t,r)&&r!==n&&o(t,r,{get:()=>e[r],enumerable:!(c=i(e,r))||c.enumerable});return t};var y=t=>s(o({},"__esModule",{value:!0}),t);var u={};p(u,{isPlainObject:()=>f});module.exports=y(u);var b=require("./get-type");function f(t){return(0,b.getType)(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}0&&(module.exports={isPlainObject});
@@ -1 +0,0 @@
1
- var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var a=(o,y)=>{for(var r in y)t(o,r,{get:y[r],enumerable:!0})},b=(o,y,r,e)=>{if(y&&typeof y=="object"||typeof y=="function")for(let m of n(y))!p.call(o,m)&&m!==r&&t(o,m,{get:()=>y[m],enumerable:!(e=l(y,m))||e.enumerable});return o};var s=o=>b(t({},"__esModule",{value:!0}),o);var u={};a(u,{isSymbol:()=>f});module.exports=s(u);var i=require("./get-type");function f(o){return(0,i.getType)(o)==="Symbol"}0&&(module.exports={isSymbol});
@@ -1 +0,0 @@
1
- var f=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var r in t)f(e,r,{get:t[r],enumerable:!0})},w=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of C(t))!N.call(e,n)&&n!==r&&f(e,n,{get:()=>t[n],enumerable:!(a=x(t,n))||a.enumerable});return e};var z=e=>w(f({},"__esModule",{value:!0}),e);var $={};v($,{parseRuleValue:()=>V});module.exports=z($);function V(e,t,r,a,n,p){let s="",g="",c;if(typeof e=="number")s=e,g=t||"";else{if(a){let d=!1,h=!1;e=e.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(b,M,R,i)=>{h=!0;let m=a[R];if(m){let u;for(let l of p)if(u=m[l])break;if(u){d=!0;let l=u;if(i){let o=i.endsWith("%")?parseFloat(i)/100:+i;o=isNaN(o)?1:Math.min(Math.max(o,0),1),l+=Math.round(o*255).toString(16).toUpperCase().padStart(2,"0")}return M+l}}return b}),h&&(c=d)}s=e}return{value:s,unit:g,colorMatched:c}}0&&(module.exports={parseRuleValue});
@@ -1 +0,0 @@
1
- var o=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var x=(t,r)=>{for(var e in r)o(t,e,{get:r[e],enumerable:!0})},b=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of g(r))!u.call(t,n)&&n!==e&&o(t,n,{get:()=>r[n],enumerable:!(i=c(r,n))||i.enumerable});return t};var f=t=>b(o({},"__esModule",{value:!0}),t);var p={};x(p,{rgbToHex:()=>l});module.exports=f(p);function l(t,r,e){return((1<<24)+(t<<16)+(r<<8)+e).toString(16).slice(1)}0&&(module.exports={rgbToHex});
@@ -1 +0,0 @@
1
- export declare const observe = true;
@@ -1 +0,0 @@
1
- export declare const themes: string[];
@@ -1,4 +0,0 @@
1
- export * from './config-text';
2
- export * from './config-esm-text';
3
- export * from './selector-symbols';
4
- export * from './start-symbol';
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import{program as f}from"commander";import C from"path";import u from"chokidar";import a from"fs";import{CONFIG_ESM_TEXT as w,CONFIG_TEXT as k}from"../constants/index.mjs";import c from"@techor/log";import{readFileAsJSON as y}from"@techor/fs";import F from"fast-glob";import{renderIntoHTML as O}from"../methods/render-into-html.mjs";import{renderFromHTML as v}from"../methods/render-from-html.mjs";import _ from"techor";f.command("init").description("Initialize definition files for Master CSS").option("-c, --compiler","Comes with a `./master.css-compiler.*` for compiler options").option("-o, --override","Override existing definition file").option("-f, --format <esm,cjs,ts>","With ES Module / CommonJS / TypeScript").action(async function(l){let{format:i}=l;if(!i)if(a.existsSync("tsconfig.json"))i="ts";else{let{type:e}=y("./package.json")||{};i=e==="module"?"esm":"cjs"}let t=(e,s)=>{let o=a.existsSync(C.join(process.cwd(),e));o?o&&l.override?(a.writeFileSync(e,s),c.ok`**${e}** file is overridden`):c.x`**${e}** file already exists`:(a.writeFileSync(e,s),c.ok`**${e}** file is created`)};switch(i){case"esm":t("master.css.mjs",w);break;case"ts":t("master.css.ts",w);break;default:t("master.css.js",k)}if(l.compiler){let{OPTIONS_TEXT:e,OPTIONS_ESM_TEXT:s,OPTIONS_TS_TEXT:o}=await import("@master/css-compiler");switch(i){case"esm":t("master.css-compiler.mjs",s);break;case"ts":t("master.css-compiler.ts",o);break;default:t("master.css-compiler.js",e)}}});f.command("build",{isDefault:!0}).option("-w, --watch","Watch file changed and generate CSS rules.").option("-o, --output <path>","Specify your master CSS file output path","master.css").action(async function({watch:l,output:i}){let{MasterCSSCompiler:t}=await import("@master/css-compiler"),e=await new t().compile(),s=async n=>await e.insert(n,a.readFileSync(n,{encoding:"utf-8"})),o=()=>a.writeFileSync(i,e.css.text);if(l){let n=[],m=async()=>{let{include:r,exclude:T,sources:S}=e.options;r?.length&&h(u.watch(r,{ignored:T,ignoreInitial:!0})),S?.length&&h(u.watch(S,{ignoreInitial:!0})),o(),console.log(""),c`[sources] ${e.sources}`,c.tree(e.options)},p=async r=>{await s(r),o()},h=r=>{n.push(r.on("add",p).on("change",p))},g=async()=>{await Promise.all(n.map(r=>r.close())),n.length=0,await e.refresh(),await m()},d=[];e.resolvedConfigPath&&d.push(e.resolvedConfigPath),e.resolvedOptionsPath&&d.push(e.resolvedOptionsPath),d.length&&u.watch(d,{ignoreInitial:!0}).on("add",g).on("change",g).on("unlink",g),await m(),console.log(""),c.t`Start watching source changes`}else o(),console.log(""),c`[sources] ${e.sources}`,c.tree(e.options)});f.command("render").description("Manual to generate CSS rules").argument("<file path>","file path").option("-c --config").action(async function(l,i){let t=F.sync(l);if(t.length){let s=new _({config:i.config}).readConfig();await Promise.all(t.map(async o=>{let n=!1,m=a.readFileSync(o,{encoding:"utf-8"}),p=m.replace(/(<style id="master">).*?(<\/style>)/,(h,g,d)=>(n=!0,g+v(m,s)+d));n||(p=O(m,s)),m!==p&&a.writeFileSync(o,p)}))}});var{version:j,name:E,description:I}=y("../../../package.json",{cwd:__dirname})||{};f.name(E);f.description(I);f.version(j);f.parse();
@@ -1 +0,0 @@
1
- var x={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};export{x as breakpoints};
@@ -1 +0,0 @@
1
- import{fillColorScale as f}from"../methods/fill-color-scale.mjs";var a={black:"#000000",white:"#ffffff",slate:f({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:f({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:f({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:f({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:f({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:f({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:f({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:f({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:f({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:f({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:f({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:f({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:f({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:f({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:f({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:f({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:f({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:f({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:f({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:f({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};export{a as colors};
@@ -1 +0,0 @@
1
- var p={$:{name:"var",transform(s){return"--"+s}},calc:{transform(s){let l=this.values,c=this.css.globalValues,d=this.css.config.functions,b=this,r=0,a="",e="";return function k(w,h){let o=!1,i=(t,n=!1,f=!1)=>{if(t!=="("&&(l&&e in l?e=l[e].toString():c&&e in c&&(e=c[e].toString())),e&&!o&&!h){let u=b.analyzeUnitValue(e,d.calc.unit);u&&(e=u.value+u.unit)}a+=e+(n&&s[r-1]!==" "?" ":"")+t+(f&&s[r+1]!==" "?" ":""),e="",o=!1};for(;r<s.length;r++){let t=s[r];if(t==="("){let n=e,f=o,u=a.length;if(i(t),r++,k(n,f||h),n!=="calc"){let g=d[n];if(g){let m=a.slice(u+2,a.length-1);a=a.slice(0,u-n.length+1)+(g.name??n)+"("+(g.transform?.(m)??m)+")"}}}else if(t===")"){i(t);break}else if(t===",")i(t,!1,!0);else if(t===" ")i(t);else{let n=s[r-1];switch(t){case"+":!e&&n!==")"?e+=t:i(t,!0,!0);break;case"-":w==="var"||!e&&n!==")"?e+=t:i(t,!0,!0);break;case"*":i(t,!0,!0);break;case"/":i(t,!0,!0),o=!0;break;default:e+=t;break}}}r>=s.length-1&&i("")}("",!1),a}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},repeat:{unit:""}};export{p as functions};
@@ -1 +0,0 @@
1
- var t=!1;export{t as important};
@@ -1 +0,0 @@
1
- import{breakpoints as e}from"./breakpoints.mjs";import{colors as r}from"./colors.mjs";import{rootSize as s}from"./root-size.mjs";import{scope as o}from"./scope.mjs";import{selectors as t}from"./selectors.mjs";import{semantics as i}from"./semantics.mjs";import{themes as n}from"./themes.mjs";import{rules as m}from"./rules.mjs";import{override as a}from"./override.mjs";import{observe as p}from"./observe.mjs";import{important as c}from"./important.mjs";import{keyframes as g}from"./keyframes.mjs";import{functions as l}from"./functions.mjs";import{themeDriver as f}from"./themeDriver.mjs";var z={breakpoints:e,colors:r,rootSize:s,scope:o,selectors:t,semantics:i,themes:n,rules:m,override:a,observe:p,important:c,functions:l,keyframes:g,themeDriver:f};export{e as breakpoints,r as colors,z as config,l as functions,c as important,g as keyframes,p as observe,a as override,s as rootSize,m as rules,o as scope,t as selectors,i as semantics,f as themeDriver,n as themes};
@@ -1 +0,0 @@
1
- var t={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"}}};export{t as keyframes};
@@ -1 +0,0 @@
1
- var e=!0;export{e as observe};
@@ -1 +0,0 @@
1
- var e=!1;export{e as override};
@@ -1 +0,0 @@
1
- var o=16;export{o as rootSize};
@@ -1 +0,0 @@
1
- import{START_SYMBOLS as b}from"../constants/start-symbol.mjs";import{cssEscape as x}from"../utils/css-escape.mjs";var y={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(r,o)=>{let a=o.indexOf(":");if(a!==-1){r in t||(t[r]={});let s=t[r],h=o.slice(0,a);h in s||(s[h]=o.slice(a+1))}},u=r=>{let o=(a,s)=>{let h=s.slice(x(r.className).length).match(/\{(.*)\}/)[1].split(";");for(let p of h)i(a,p)};if(this.theme){let a=r.natives.find(s=>s.theme===this.theme)??r.natives.find(s=>!s.theme);a&&o(this.theme,a.text)}else for(let a of r.natives)o(a.theme,a.text);if(r.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let a of r.keyframeNames)this.keyframeNames.includes(a)||this.keyframeNames.push(a)}},d=[],n="",c=()=>{n&&(d.push(n.replace(/ /g,"|")),n="")},m=1;(function r(o){for(;m<e.length;m++){let a=e[m];if(!o){if(a===";"){c();continue}if(a==="}")break}if(n+=a,o===a){if(o==="'"||o==='"'){let s=0;for(let h=n.length-2;n[h]==="\\";h--)s++;if(s%2)continue}break}else a in b&&o!=="'"&&o!=='"'&&(m++,r(b[a]))}})(void 0),c();for(let r of d){let o=this.css.create(r);if(Array.isArray(o))if(o.length)for(let a of o)u(a);else i(this.theme??"",r);else u(o)}let l={};for(let r in t)for(let[o,a]of Object.entries(t[r]))o in l?l[o][r]=a:l[o]={[r]:a};return l},delete(){return g.call(this)},insert(){return v.call(this)}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},lines:{match:"^lines:.",declare(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},overscrollBehaviorX:{native:!0},overscrollBehaviorY:{native:!0},overscrollBehavior:{native:!0,order:-1},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0,create(e){return f.call(this,e)},delete(){return g.call(this)},insert(){return v.call(this)}},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(e){return f.call(this,e)},delete(){return g.call(this)},insert(){return v.call(this)}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderTopColor:{match:"^b(?:t|order-top(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderBottomColor:{match:"^b(?:b|order-bottom(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderLeftColor:{match:"^b(?:l|order-left(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderRightColor:{match:"^b(?:r|order-right(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderXColor:{match:"^b(?:x|order-x(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},order:-2},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMarginLeft:{match:"^sml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^smr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^smt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^smb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:smx|scroll-margin-x):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:smy|scroll-margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^sm:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^spl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^spr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^spt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^spb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:spx|scroll-padding-x):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:spy|scroll-padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^sp:.",native:!0,unit:"rem",order:-1},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},C=y;function f(e){if(!this.css.config.keyframes)return;let t=(this.meta.origin==="symbol"?e.slice(this.meta.config.symbol.length):e.slice(e.indexOf(":")+1)).split("|").filter(i=>i in this.css.config.keyframes);t?.length&&(this.keyframeNames=t)}function g(){if(this.keyframeNames?.length){let e=this.css.rules[0];for(let t of this.keyframeNames){let i=this.css.keyframes[t];if(!--i.count){let u=e.natives.indexOf(i.native);this.css.style.sheet.deleteRule(u),e.natives.splice(u,1),delete this.css.keyframes[t]}}e.natives.length||this.css.rules.splice(0,1)}}function v(){if(this.keyframeNames){let{config:e,keyframes:t,style:i,rules:u}=this.css,d=i?.sheet;for(let n of this.keyframeNames)if(n in t)t[n].count++;else{let c={text:`@keyframes ${n}{`+Object.entries(e.keyframes[n]).map(([l,r])=>`${l}{${Object.entries(r).map(([o,a])=>o+":"+a).join(";")}}`).join("")+"}",theme:""},m;if(Object.keys(t).length?(m=u[0]).natives.push(c):u.splice(0,0,m={natives:[c],get text(){return this.natives.map(l=>l.text).join("")}}),d){let l;for(let r=0;r<d.cssRules.length;r++){let o=d.cssRules[r];if(o.constructor.name!=="CSSKeyframesRule")break;if(o.name===n){l=o;break}}if(l)c.cssRule=l;else{let r=m.natives.length-1;d.insertRule(c.text,r),c.cssRule=d.cssRules[r]}}t[n]={native:c,count:1}}}}export{C as rules};
@@ -1 +0,0 @@
1
- var o="";export{o as scope};
@@ -1 +0,0 @@
1
- var r={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};export{r as selectors};
@@ -1 +0,0 @@
1
- var i={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"}};export{i as semantics};
@@ -1 +0,0 @@
1
- var e="class";export{e as themeDriver};
@@ -1 +0,0 @@
1
- var t=["dark","light"];export{t as themes};
@@ -1,17 +0,0 @@
1
- var s=`/** @type {import('@master/css').Config} */
2
- const config = {
3
- classes: {},
4
- colors: {},
5
- themes: {},
6
- rules: {},
7
- values: {},
8
- semantics: {},
9
- breakpoints: {},
10
- mediaQueries: {},
11
- keyframes: {},
12
- selectors: {},
13
- functions: {}
14
- }
15
-
16
- export default config
17
- `;export{s as CONFIG_ESM_TEXT};
@@ -1,15 +0,0 @@
1
- var s=`/** @type {import('@master/css').Config} */
2
- module.exports = {
3
- classes: {},
4
- colors: {},
5
- themes: {},
6
- rules: {},
7
- values: {},
8
- semantics: {},
9
- breakpoints: {},
10
- mediaQueries: {},
11
- keyframes: {},
12
- selectors: {},
13
- functions: {}
14
- }
15
- `;export{s as CONFIG_TEXT};
@@ -1 +0,0 @@
1
- export*from"./config-text.mjs";export*from"./config-esm-text.mjs";export*from"./selector-symbols.mjs";export*from"./start-symbol.mjs";
@@ -1 +0,0 @@
1
- var S=[",",".","#","[","!","*",">","+","~",":","@"];export{S as SELECTOR_SYMBOLS};
@@ -1 +0,0 @@
1
- var S={"(":")","'":"'",'"':'"',"{":"}"};export{S as START_SYMBOLS};