@jasonshimmy/custom-elements-runtime 2.8.2 → 3.1.0

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 (99) hide show
  1. package/README.md +223 -73
  2. package/dist/css-utils-Cg4o1MqY.js +643 -0
  3. package/dist/css-utils-Cg4o1MqY.js.map +1 -0
  4. package/dist/css-utils-RqkyBWft.cjs +576 -0
  5. package/dist/css-utils-RqkyBWft.cjs.map +1 -0
  6. package/dist/custom-elements-runtime.cjs.js +3 -3
  7. package/dist/custom-elements-runtime.cjs.js.map +1 -1
  8. package/dist/custom-elements-runtime.dom-jit-css.cjs.js +7 -0
  9. package/dist/custom-elements-runtime.dom-jit-css.cjs.js.map +1 -0
  10. package/dist/custom-elements-runtime.dom-jit-css.es.js +136 -0
  11. package/dist/custom-elements-runtime.dom-jit-css.es.js.map +1 -0
  12. package/dist/custom-elements-runtime.es.js +105 -97
  13. package/dist/custom-elements-runtime.es.js.map +1 -1
  14. package/dist/custom-elements-runtime.event-bus.cjs.js +1 -1
  15. package/dist/custom-elements-runtime.event-bus.cjs.js.map +1 -1
  16. package/dist/custom-elements-runtime.event-bus.es.js +62 -46
  17. package/dist/custom-elements-runtime.event-bus.es.js.map +1 -1
  18. package/dist/custom-elements-runtime.jit-css.cjs.js +2 -0
  19. package/dist/custom-elements-runtime.jit-css.cjs.js.map +1 -0
  20. package/dist/custom-elements-runtime.jit-css.es.js +37 -0
  21. package/dist/custom-elements-runtime.jit-css.es.js.map +1 -0
  22. package/dist/custom-elements-runtime.router.cjs.js +20 -20
  23. package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
  24. package/dist/custom-elements-runtime.router.es.js +472 -458
  25. package/dist/custom-elements-runtime.router.es.js.map +1 -1
  26. package/dist/custom-elements-runtime.ssr-middleware.cjs.js +2 -0
  27. package/dist/custom-elements-runtime.ssr-middleware.cjs.js.map +1 -0
  28. package/dist/custom-elements-runtime.ssr-middleware.es.js +63 -0
  29. package/dist/custom-elements-runtime.ssr-middleware.es.js.map +1 -0
  30. package/dist/custom-elements-runtime.ssr.cjs.js +3 -1
  31. package/dist/custom-elements-runtime.ssr.cjs.js.map +1 -1
  32. package/dist/custom-elements-runtime.ssr.es.js +137 -24
  33. package/dist/custom-elements-runtime.ssr.es.js.map +1 -1
  34. package/dist/custom-elements-runtime.store.cjs.js +1 -1
  35. package/dist/custom-elements-runtime.store.cjs.js.map +1 -1
  36. package/dist/custom-elements-runtime.store.es.js +21 -16
  37. package/dist/custom-elements-runtime.store.es.js.map +1 -1
  38. package/dist/custom-elements-runtime.transitions.cjs.js +1 -1
  39. package/dist/custom-elements-runtime.transitions.cjs.js.map +1 -1
  40. package/dist/custom-elements-runtime.transitions.es.js +279 -7
  41. package/dist/custom-elements-runtime.transitions.es.js.map +1 -1
  42. package/dist/custom-elements-runtime.vite-plugin.cjs.js +2 -0
  43. package/dist/custom-elements-runtime.vite-plugin.cjs.js.map +1 -0
  44. package/dist/custom-elements-runtime.vite-plugin.es.js +105 -0
  45. package/dist/custom-elements-runtime.vite-plugin.es.js.map +1 -0
  46. package/dist/dom-jit-css.d.ts +66 -0
  47. package/dist/event-bus.d.ts +3 -1
  48. package/dist/hooks-B50HhrHh.cjs +6 -0
  49. package/dist/hooks-B50HhrHh.cjs.map +1 -0
  50. package/dist/hooks-Cze3o-F7.js +1462 -0
  51. package/dist/hooks-Cze3o-F7.js.map +1 -0
  52. package/dist/index.d.ts +6 -3
  53. package/dist/jit-css.d.ts +30 -0
  54. package/dist/namespace-helpers-D4wC2-qA.js +61 -0
  55. package/dist/namespace-helpers-D4wC2-qA.js.map +1 -0
  56. package/dist/namespace-helpers-ckeEOxpR.cjs +2 -0
  57. package/dist/namespace-helpers-ckeEOxpR.cjs.map +1 -0
  58. package/dist/router/matcher.d.ts +14 -0
  59. package/dist/router/types.d.ts +4 -2
  60. package/dist/runtime/component/factory.d.ts +16 -2
  61. package/dist/runtime/css-utils.d.ts +33 -0
  62. package/dist/runtime/discovery-state.d.ts +3 -0
  63. package/dist/runtime/hooks.d.ts +78 -0
  64. package/dist/runtime/hydration.d.ts +33 -0
  65. package/dist/runtime/jit-hooks.d.ts +28 -0
  66. package/dist/runtime/render-bridge.d.ts +37 -0
  67. package/dist/runtime/scheduler.d.ts +3 -4
  68. package/dist/runtime/secure-expression-evaluator.d.ts +0 -1
  69. package/dist/runtime/ssr-context.d.ts +45 -0
  70. package/dist/runtime/style.d.ts +84 -26
  71. package/dist/runtime/template-compiler/lru-cache.d.ts +0 -3
  72. package/dist/runtime/types.d.ts +18 -0
  73. package/dist/runtime/vdom-helpers.d.ts +0 -1
  74. package/dist/runtime/vdom-ssr-dsd.d.ts +58 -0
  75. package/dist/ssr-middleware.d.ts +125 -0
  76. package/dist/ssr.d.ts +120 -16
  77. package/dist/{transitions-DMJXs_tY.js → style-BmyOIMcU.js} +904 -1344
  78. package/dist/style-BmyOIMcU.js.map +1 -0
  79. package/dist/style-D40DsIqJ.cjs +55 -0
  80. package/dist/style-D40DsIqJ.cjs.map +1 -0
  81. package/dist/style.css +1 -1
  82. package/dist/template-compiler-Cshhqxyd.cjs +23 -0
  83. package/dist/template-compiler-Cshhqxyd.cjs.map +1 -0
  84. package/dist/template-compiler-DtpNsqE-.js +3744 -0
  85. package/dist/template-compiler-DtpNsqE-.js.map +1 -0
  86. package/dist/variables.css +1 -1
  87. package/dist/vite-plugin.d.ts +142 -0
  88. package/package.json +60 -6
  89. package/dist/namespace-helpers-Ctd_h7j2.cjs +0 -5
  90. package/dist/namespace-helpers-Ctd_h7j2.cjs.map +0 -1
  91. package/dist/namespace-helpers-DhLBqt-7.js +0 -1009
  92. package/dist/namespace-helpers-DhLBqt-7.js.map +0 -1
  93. package/dist/template-compiler-Bvx02nAT.js +0 -4020
  94. package/dist/template-compiler-Bvx02nAT.js.map +0 -1
  95. package/dist/template-compiler-bj-MFC_Y.cjs +0 -23
  96. package/dist/template-compiler-bj-MFC_Y.cjs.map +0 -1
  97. package/dist/transitions-DMJXs_tY.js.map +0 -1
  98. package/dist/transitions-f4KfN29T.cjs +0 -330
  99. package/dist/transitions-f4KfN29T.cjs.map +0 -1
@@ -1,5 +1,6 @@
1
- import { anchorBlock as Fe } from "./custom-elements-runtime.directives.es.js";
2
- const Ee = {
1
+ import { d as Se, e as ae, f as De, h as G, _ as Ne, m as Ue } from "./css-utils-Cg4o1MqY.js";
2
+ import { extendedColors as Ce } from "./custom-elements-runtime.colors.es.js";
3
+ const Be = {
3
4
  base: {
4
5
  fontSize: "1rem",
5
6
  lineHeight: "1.75",
@@ -96,105 +97,105 @@ const Ee = {
96
97
  table: "2.2222222em"
97
98
  }
98
99
  };
99
- function Ae(e) {
100
- const t = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
101
- if (!t) return null;
102
- const c = t[1] || "base", o = Ee[c], r = `.${e}`, i = [];
103
- return i.push(
104
- `${r}{--cer-prose-body:var(--cer-color-neutral-900);--cer-prose-headings:var(--cer-color-neutral-900);--cer-prose-lead:var(--cer-color-neutral-700);--cer-prose-links:var(--cer-color-neutral-700);--cer-prose-links-hover:var(--cer-color-neutral-500);--cer-prose-bold:var(--cer-color-neutral-900);--cer-prose-quotes:var(--cer-color-neutral-700);--cer-prose-quote-border:var(--cer-color-neutral-200);--cer-prose-code:var(--cer-color-neutral-800);--cer-prose-code-bg:var(--cer-color-neutral-100);--cer-prose-pre-code:var(--cer-color-neutral-800);--cer-prose-pre-bg:var(--cer-color-neutral-100);--cer-prose-pre-border:var(--cer-color-neutral-200);--cer-prose-hr:var(--cer-color-neutral-200);--cer-prose-caps:var(--cer-color-neutral-600);--cer-prose-list-marker:var(--cer-color-neutral-600);--cer-prose-list-marker-strong:var(--cer-color-neutral-700);--cer-prose-counters:var(--cer-color-neutral-600);--cer-prose-bullets:var(--cer-color-neutral-400);--cer-prose-img-caption:var(--cer-color-neutral-600);--cer-prose-table-border:var(--cer-color-neutral-200);--cer-prose-table-head:var(--cer-color-neutral-700);color:var(--cer-prose-body);font-size:${o.fontSize};line-height:${o.lineHeight};max-width:65ch;}`
105
- ), i.push(
106
- `${r} p:not(.not-prose):not(.not-prose *){margin:${o.p} 0;}`
107
- ), i.push(
108
- `${r} .lead:not(.not-prose):not(.not-prose *),${r} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${o.lead};margin-bottom:${o.lead};color:var(--cer-prose-lead);}`
109
- ), i.push(
110
- `${r} h1:not(.not-prose):not(.not-prose *),${r} h2:not(.not-prose):not(.not-prose *),${r} h3:not(.not-prose):not(.not-prose *),${r} h4:not(.not-prose):not(.not-prose *),${r} h5:not(.not-prose):not(.not-prose *),${r} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`
111
- ), i.push(
112
- `${r} h1:not(.not-prose):not(.not-prose *){font-size:${o.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`
113
- ), i.push(
114
- `${r} h2:not(.not-prose):not(.not-prose *){font-size:${o.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`
115
- ), i.push(
116
- `${r} h3:not(.not-prose):not(.not-prose *){font-size:${o.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`
117
- ), i.push(
118
- `${r} h4:not(.not-prose):not(.not-prose *){font-size:${o.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`
119
- ), i.push(
120
- `${r} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
121
- ), i.push(
122
- `${r} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
123
- ), i.push(
124
- `${r} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`
125
- ), i.push(
126
- `${r} a:not(.not-prose):not(.not-prose *):hover,${r} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`
127
- ), i.push(
128
- `${r} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`
129
- ), i.push(
130
- `${r} em:not(.not-prose):not(.not-prose *){font-style:italic;}`
131
- ), i.push(
132
- `${r} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${o.ol};margin-bottom:${o.ol};padding-left:1.625em;}`
133
- ), i.push(
134
- `${r} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`
135
- ), i.push(
136
- `${r} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`
137
- ), i.push(
138
- `${r} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`
139
- ), i.push(
140
- `${r} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`
141
- ), i.push(
142
- `${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`
143
- ), i.push(
144
- `${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`
145
- ), i.push(
146
- `${r} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${o.ul};margin-bottom:${o.ul};padding-left:1.625em;}`
147
- ), i.push(
148
- `${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`
149
- ), i.push(
150
- `${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`
151
- ), i.push(
152
- `${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${o.ol};}`
153
- ), i.push(
154
- `${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${o.ol};}`
155
- ), i.push(
156
- `${r} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`
157
- ), i.push(
158
- `${r} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${o.ol};margin-bottom:${o.ol};}`
159
- ), i.push(
160
- `${r} code:not(.not-prose):not(.not-prose *){color:var(--cer-prose-code);background-color:var(--cer-prose-code-bg);border-radius:0.25rem;padding:0.125rem 0.25rem;font-size:${o.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`
161
- ), i.push(
162
- `${r} pre:not(.not-prose):not(.not-prose *){color:var(--cer-prose-pre-code);background-color:var(--cer-prose-pre-bg);border:1px solid var(--cer-prose-pre-border);overflow-x:auto;font-size:${o.pre};line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding:0.8571429em 1.1428571em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre;overflow-wrap:normal;}`
163
- ), i.push(
164
- `${r} pre:not(.not-prose):not(.not-prose *) code:not(.not-prose):not(.not-prose *){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;line-height:inherit;}`
165
- ), i.push(
166
- `${r} blockquote:not(.not-prose):not(.not-prose *){font-weight:500;font-style:italic;color:var(--cer-prose-quotes);border-left-width:0.25rem;border-left-color:var(--cer-prose-quote-border);quotes:"\\201C""\\201D""\\2018""\\2019";margin-top:${o.blockquote};margin-bottom:${o.blockquote};padding-left:1em;}`
167
- ), i.push(
168
- `${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`
169
- ), i.push(
170
- `${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`
171
- ), i.push(
172
- `${r} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${o.hr};margin-bottom:${o.hr};}`
173
- ), i.push(
174
- `${r} figure:not(.not-prose):not(.not-prose *){margin-top:${o.figure};margin-bottom:${o.figure};}`
175
- ), i.push(
176
- `${r} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`
177
- ), i.push(
178
- `${r} figcaption:not(.not-prose):not(.not-prose *){color:var(--cer-prose-img-caption);font-size:0.875em;line-height:1.4285714;margin-top:0.75em;}`
179
- ), i.push(
180
- `${r} img:not(.not-prose):not(.not-prose *),${r} video:not(.not-prose):not(.not-prose *),${r} picture:not(.not-prose):not(.not-prose *){margin-top:${o.figure};margin-bottom:${o.figure};max-width:100%;height:auto;}`
181
- ), i.push(
182
- `${r} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`
183
- ), i.push(
184
- `${r} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${o.table};margin-bottom:${o.table};font-size:0.875em;line-height:1.7142857;}`
185
- ), i.push(
186
- `${r} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
187
- ), i.push(
188
- `${r} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`
189
- ), i.push(
190
- `${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
191
- ), i.push(
192
- `${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`
193
- ), i.push(
194
- `${r} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`
195
- ), i.join("");
100
+ function Te(e) {
101
+ const r = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
102
+ if (!r) return null;
103
+ const c = r[1] || "base", a = Be[c], t = `.${e}`, s = [];
104
+ return s.push(
105
+ `${t}{--cer-prose-body:var(--cer-color-neutral-900);--cer-prose-headings:var(--cer-color-neutral-900);--cer-prose-lead:var(--cer-color-neutral-700);--cer-prose-links:var(--cer-color-neutral-700);--cer-prose-links-hover:var(--cer-color-neutral-500);--cer-prose-bold:var(--cer-color-neutral-900);--cer-prose-quotes:var(--cer-color-neutral-700);--cer-prose-quote-border:var(--cer-color-neutral-200);--cer-prose-code:var(--cer-color-neutral-800);--cer-prose-code-bg:var(--cer-color-neutral-100);--cer-prose-pre-code:var(--cer-color-neutral-800);--cer-prose-pre-bg:var(--cer-color-neutral-100);--cer-prose-pre-border:var(--cer-color-neutral-200);--cer-prose-hr:var(--cer-color-neutral-200);--cer-prose-caps:var(--cer-color-neutral-600);--cer-prose-list-marker:var(--cer-color-neutral-600);--cer-prose-list-marker-strong:var(--cer-color-neutral-700);--cer-prose-counters:var(--cer-color-neutral-600);--cer-prose-bullets:var(--cer-color-neutral-400);--cer-prose-img-caption:var(--cer-color-neutral-600);--cer-prose-table-border:var(--cer-color-neutral-200);--cer-prose-table-head:var(--cer-color-neutral-700);color:var(--cer-prose-body);font-size:${a.fontSize};line-height:${a.lineHeight};max-width:65ch;}`
106
+ ), s.push(
107
+ `${t} p:not(.not-prose):not(.not-prose *){margin:${a.p} 0;}`
108
+ ), s.push(
109
+ `${t} .lead:not(.not-prose):not(.not-prose *),${t} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${a.lead};margin-bottom:${a.lead};color:var(--cer-prose-lead);}`
110
+ ), s.push(
111
+ `${t} h1:not(.not-prose):not(.not-prose *),${t} h2:not(.not-prose):not(.not-prose *),${t} h3:not(.not-prose):not(.not-prose *),${t} h4:not(.not-prose):not(.not-prose *),${t} h5:not(.not-prose):not(.not-prose *),${t} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`
112
+ ), s.push(
113
+ `${t} h1:not(.not-prose):not(.not-prose *){font-size:${a.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`
114
+ ), s.push(
115
+ `${t} h2:not(.not-prose):not(.not-prose *){font-size:${a.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`
116
+ ), s.push(
117
+ `${t} h3:not(.not-prose):not(.not-prose *){font-size:${a.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`
118
+ ), s.push(
119
+ `${t} h4:not(.not-prose):not(.not-prose *){font-size:${a.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`
120
+ ), s.push(
121
+ `${t} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
122
+ ), s.push(
123
+ `${t} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
124
+ ), s.push(
125
+ `${t} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`
126
+ ), s.push(
127
+ `${t} a:not(.not-prose):not(.not-prose *):hover,${t} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`
128
+ ), s.push(
129
+ `${t} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`
130
+ ), s.push(
131
+ `${t} em:not(.not-prose):not(.not-prose *){font-style:italic;}`
132
+ ), s.push(
133
+ `${t} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${a.ol};margin-bottom:${a.ol};padding-left:1.625em;}`
134
+ ), s.push(
135
+ `${t} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`
136
+ ), s.push(
137
+ `${t} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`
138
+ ), s.push(
139
+ `${t} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`
140
+ ), s.push(
141
+ `${t} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`
142
+ ), s.push(
143
+ `${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${a.li};}`
144
+ ), s.push(
145
+ `${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`
146
+ ), s.push(
147
+ `${t} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${a.ul};margin-bottom:${a.ul};padding-left:1.625em;}`
148
+ ), s.push(
149
+ `${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${a.li};}`
150
+ ), s.push(
151
+ `${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`
152
+ ), s.push(
153
+ `${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${a.ol};}`
154
+ ), s.push(
155
+ `${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${a.ol};}`
156
+ ), s.push(
157
+ `${t} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${t} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${t} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${t} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`
158
+ ), s.push(
159
+ `${t} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${a.ol};margin-bottom:${a.ol};}`
160
+ ), s.push(
161
+ `${t} code:not(.not-prose):not(.not-prose *){color:var(--cer-prose-code);background-color:var(--cer-prose-code-bg);border-radius:0.25rem;padding:0.125rem 0.25rem;font-size:${a.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`
162
+ ), s.push(
163
+ `${t} pre:not(.not-prose):not(.not-prose *){color:var(--cer-prose-pre-code);background-color:var(--cer-prose-pre-bg);border:1px solid var(--cer-prose-pre-border);overflow-x:auto;font-size:${a.pre};line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding:0.8571429em 1.1428571em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre;overflow-wrap:normal;}`
164
+ ), s.push(
165
+ `${t} pre:not(.not-prose):not(.not-prose *) code:not(.not-prose):not(.not-prose *){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;line-height:inherit;}`
166
+ ), s.push(
167
+ `${t} blockquote:not(.not-prose):not(.not-prose *){font-weight:500;font-style:italic;color:var(--cer-prose-quotes);border-left-width:0.25rem;border-left-color:var(--cer-prose-quote-border);quotes:"\\201C""\\201D""\\2018""\\2019";margin-top:${a.blockquote};margin-bottom:${a.blockquote};padding-left:1em;}`
168
+ ), s.push(
169
+ `${t} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`
170
+ ), s.push(
171
+ `${t} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`
172
+ ), s.push(
173
+ `${t} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${a.hr};margin-bottom:${a.hr};}`
174
+ ), s.push(
175
+ `${t} figure:not(.not-prose):not(.not-prose *){margin-top:${a.figure};margin-bottom:${a.figure};}`
176
+ ), s.push(
177
+ `${t} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`
178
+ ), s.push(
179
+ `${t} figcaption:not(.not-prose):not(.not-prose *){color:var(--cer-prose-img-caption);font-size:0.875em;line-height:1.4285714;margin-top:0.75em;}`
180
+ ), s.push(
181
+ `${t} img:not(.not-prose):not(.not-prose *),${t} video:not(.not-prose):not(.not-prose *),${t} picture:not(.not-prose):not(.not-prose *){margin-top:${a.figure};margin-bottom:${a.figure};max-width:100%;height:auto;}`
182
+ ), s.push(
183
+ `${t} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${t} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${t} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`
184
+ ), s.push(
185
+ `${t} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${a.table};margin-bottom:${a.table};font-size:0.875em;line-height:1.7142857;}`
186
+ ), s.push(
187
+ `${t} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
188
+ ), s.push(
189
+ `${t} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`
190
+ ), s.push(
191
+ `${t} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
192
+ ), s.push(
193
+ `${t} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`
194
+ ), s.push(
195
+ `${t} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`
196
+ ), s.join("");
196
197
  }
197
- const We = {
198
+ const He = {
198
199
  headings: "h1,h2,h3,h4,h5,h6,th",
199
200
  h1: "h1",
200
201
  h2: "h2",
@@ -230,344 +231,50 @@ const We = {
230
231
  hr: "hr",
231
232
  lead: '[class~="lead"]'
232
233
  };
233
- function Re(e, t, c, o, r, i, g, w) {
234
- const s = e.match(/^prose-([a-z0-9]+):(.+)$/);
235
- if (!s) return null;
236
- const [, u, h] = s, l = We[u];
234
+ function Je(e, r, c, a, t, s, h, k) {
235
+ const i = e.match(/^prose-([a-z0-9]+):(.+)$/);
236
+ if (!i) return null;
237
+ const [, d, u] = i, l = He[d];
237
238
  if (!l) return null;
238
- const b = t[h] ?? c(h) ?? o(h) ?? r(h) ?? i(h) ?? g(h) ?? w(h);
239
- if (!b) return null;
240
- const n = ve(e);
241
- return l.split(",").map((f) => {
242
- const $ = f.trim();
243
- return `${`.${n} ${$}:not(.not-prose):not(.not-prose *)`}{${b}}`;
239
+ const f = r[u] ?? c(u) ?? a(u) ?? t(u) ?? s(u) ?? h(u) ?? k(u);
240
+ if (!f) return null;
241
+ const n = Se(e);
242
+ return l.split(",").map((y) => {
243
+ const b = y.trim();
244
+ return `${`.${n} ${b}:not(.not-prose):not(.not-prose *)`}{${f}}`;
244
245
  }).join("");
245
246
  }
246
- const Me = `/*
247
- * Custom Elements Variables CSS
248
- * Default fallback values
249
- *
250
- * Define your overrides in the document's :root to have them
251
- * inherited into all Shadow DOM components:
252
- *
253
- * <style>
254
- * :root {
255
- * --cer-color-primary-500: #8b5cf6;
256
- * --cer-font-sans: 'Inter', sans-serif;
257
- * }
258
- * </style>
259
- *
260
- * Note: Only :root is used here (not :host) so document-level
261
- * overrides will inherit into Shadow DOM and take precedence.
262
- */
263
-
264
- :root {
265
- /* Font families (match runtime defaults in src/lib/runtime/style.ts) */
266
- --cer-font-sans:
267
- ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
268
- 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
269
- --cer-font-serif: ui-serif, Georgia, 'Times New Roman', Times, serif;
270
- --cer-font-mono:
271
- ui-monospace, 'SFMono-Regular', Menlo, Monaco, 'Roboto Mono', 'Courier New',
272
- monospace;
273
-
274
- /* Default outline style */
275
- --cer-outline-style: solid;
276
-
277
- /* Colors */
278
- --cer-color-transparent: transparent;
279
- --cer-color-current: currentColor;
280
- --cer-color-black: #000000;
281
- --cer-color-white: #ffffff;
282
- --cer-color-inherit: inherit;
283
-
284
- /* neutral */
285
- --cer-color-neutral-50: #fafafa;
286
- --cer-color-neutral-100: #f4f4f5;
287
- --cer-color-neutral-200: #e4e4e7;
288
- --cer-color-neutral-300: #d4d4d8;
289
- --cer-color-neutral-400: #9f9fa9;
290
- --cer-color-neutral-500: #71717b;
291
- --cer-color-neutral-600: #52525c;
292
- --cer-color-neutral-700: #3f3f46;
293
- --cer-color-neutral-800: #27272a;
294
- --cer-color-neutral-900: #18181b;
295
- --cer-color-neutral-950: #09090b;
296
-
297
- /* primary */
298
- --cer-color-primary-50: #eff6ff;
299
- --cer-color-primary-100: #dbeafe;
300
- --cer-color-primary-200: #bfdbfe;
301
- --cer-color-primary-300: #93c5fd;
302
- --cer-color-primary-400: #60a5fa;
303
- --cer-color-primary-500: #3b82f6;
304
- --cer-color-primary-600: #2563eb;
305
- --cer-color-primary-700: #1d4ed8;
306
- --cer-color-primary-800: #1e40af;
307
- --cer-color-primary-900: #1e3a8a;
308
- --cer-color-primary-950: #172554;
309
-
310
- /* secondary */
311
- --cer-color-secondary-50: #eef2ff;
312
- --cer-color-secondary-100: #e0e7ff;
313
- --cer-color-secondary-200: #c7d2fe;
314
- --cer-color-secondary-300: #a5b4fc;
315
- --cer-color-secondary-400: #818cf8;
316
- --cer-color-secondary-500: #6366f1;
317
- --cer-color-secondary-600: #4f46e5;
318
- --cer-color-secondary-700: #4338ca;
319
- --cer-color-secondary-800: #3730a3;
320
- --cer-color-secondary-900: #312e81;
321
- --cer-color-secondary-950: #1e1b4b;
322
-
323
- /* success */
324
- --cer-color-success-50: #f0fdf4;
325
- --cer-color-success-100: #dcfce7;
326
- --cer-color-success-200: #bbf7d0;
327
- --cer-color-success-300: #86efac;
328
- --cer-color-success-400: #4ade80;
329
- --cer-color-success-500: #22c55e;
330
- --cer-color-success-600: #16a34a;
331
- --cer-color-success-700: #15803d;
332
- --cer-color-success-800: #166534;
333
- --cer-color-success-900: #14532d;
334
- --cer-color-success-950: #052e16;
335
-
336
- /* info */
337
- --cer-color-info-50: #f0f9ff;
338
- --cer-color-info-100: #e0f2fe;
339
- --cer-color-info-200: #bae6fd;
340
- --cer-color-info-300: #7dd3fc;
341
- --cer-color-info-400: #38bdf8;
342
- --cer-color-info-500: #0ea5e9;
343
- --cer-color-info-600: #0284c7;
344
- --cer-color-info-700: #0369a1;
345
- --cer-color-info-800: #075985;
346
- --cer-color-info-900: #0c4a6e;
347
- --cer-color-info-950: #082f49;
348
-
349
- /* warning */
350
- --cer-color-warning-50: #fffbeb;
351
- --cer-color-warning-100: #fef3c7;
352
- --cer-color-warning-200: #fde68a;
353
- --cer-color-warning-300: #fcd34d;
354
- --cer-color-warning-400: #fbbf24;
355
- --cer-color-warning-500: #f59e0b;
356
- --cer-color-warning-600: #d97706;
357
- --cer-color-warning-700: #b45309;
358
- --cer-color-warning-800: #92400e;
359
- --cer-color-warning-900: #78350f;
360
- --cer-color-warning-950: #451a03;
361
-
362
- /* error */
363
- --cer-color-error-50: #fef2f2;
364
- --cer-color-error-100: #fee2e2;
365
- --cer-color-error-200: #fecaca;
366
- --cer-color-error-300: #fca5a5;
367
- --cer-color-error-400: #f87171;
368
- --cer-color-error-500: #ef4444;
369
- --cer-color-error-600: #dc2626;
370
- --cer-color-error-700: #b91c1c;
371
- --cer-color-error-800: #991b1b;
372
- --cer-color-error-900: #7f1d1d;
373
- --cer-color-error-950: #450a0a;
374
- }
375
- `;
376
- function _e(e, ...t) {
377
- let c = "";
378
- for (let o = 0; o < e.length; o++)
379
- c += e[o], o < t.length && (c += t[o]);
380
- return c;
381
- }
382
- function ye(e) {
383
- return e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/\s*([{}:;,>~])\s*/g, "$1").replace(/;}/g, "}").trim();
384
- }
385
- let re = null;
386
- function Je() {
387
- return re || (typeof CSSStyleSheet > "u" ? re = {
388
- cssRules: [],
389
- replaceSync: () => {
390
- },
391
- toString: () => ye(ke)
392
- } : (re = new CSSStyleSheet(), re.replaceSync(ye(ke)))), re;
393
- }
394
- let Q = null;
395
- const $e = /* @__PURE__ */ new Set();
396
- let de = "";
397
- function Pe() {
398
- if ($e.size === 0) return null;
399
- Q || (typeof CSSStyleSheet > "u" ? Q = {
400
- cssRules: [],
401
- replaceSync: () => {
402
- },
403
- toString: () => de
404
- } : (Q = new CSSStyleSheet(), Q.toString = () => de));
405
- let e = "";
406
- for (const t of $e) {
407
- const c = Ae(t);
408
- c && (e += c);
247
+ let B = null;
248
+ const de = /* @__PURE__ */ new Set();
249
+ let we = "", je = "";
250
+ function Ae() {
251
+ const e = Array.from(de).sort().join(",");
252
+ if (e === je) return;
253
+ je = e;
254
+ let r = "";
255
+ for (const c of de) {
256
+ const a = Te(c);
257
+ a && (r += a);
409
258
  }
410
- if (de = ye(e), typeof Q.replaceSync == "function" && e)
259
+ if (we = Ue(r), B && typeof B.replaceSync == "function" && r)
411
260
  try {
412
- Q.replaceSync(de);
261
+ B.replaceSync(we);
413
262
  } catch {
414
263
  }
415
- return Q;
416
264
  }
417
- function Le(e) {
418
- const t = !$e.has(e);
419
- $e.add(e), t && Q && Pe();
265
+ function Xe() {
266
+ return de.size === 0 ? null : (B || (typeof CSSStyleSheet > "u" ? B = {
267
+ cssRules: [],
268
+ replaceSync: () => {
269
+ },
270
+ toString: () => we
271
+ } : (B = new CSSStyleSheet(), B.toString = () => we), je = ""), Ae(), B);
420
272
  }
421
- function er(e) {
422
- return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi, "").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi, "").replace(/expression\s*\([^)]*\)/gi, "");
273
+ function Qe(e) {
274
+ const r = !de.has(e);
275
+ de.add(e), r && B && Ae();
423
276
  }
424
- const ke = _e`
425
- ${Me}
426
- :host,
427
- *,
428
- ::before,
429
- ::after {
430
- all: isolate;
431
- box-sizing: border-box;
432
- border: 0 solid currentColor;
433
- margin: 0;
434
- padding: 0;
435
- font: inherit;
436
- vertical-align: baseline;
437
- background: transparent;
438
- color: inherit;
439
- -webkit-tap-highlight-color: transparent;
440
- /* Transform composition variables (reset per-element for composability) */
441
- --cer-translate-x: 0px;
442
- --cer-translate-y: 0px;
443
- --cer-rotate: 0deg;
444
- --cer-skew-x: 0deg;
445
- --cer-skew-y: 0deg;
446
- --cer-scale-x: 1;
447
- --cer-scale-y: 1;
448
- /* Ring variables */
449
- --cer-ring-color: rgb(59 130 246 / 0.5);
450
- /* Filter composition variables (empty = no-op in filter chain) */
451
- --cer-blur: ;
452
- --cer-brightness: ;
453
- --cer-contrast: ;
454
- --cer-grayscale: ;
455
- --cer-hue-rotate: ;
456
- --cer-invert: ;
457
- --cer-saturate: ;
458
- --cer-sepia: ;
459
- --cer-drop-shadow: ;
460
- --cer-backdrop-blur: ;
461
- --cer-backdrop-brightness: ;
462
- --cer-backdrop-contrast: ;
463
- --cer-backdrop-grayscale: ;
464
- --cer-backdrop-hue-rotate: ;
465
- --cer-backdrop-invert: ;
466
- --cer-backdrop-saturate: ;
467
- --cer-backdrop-sepia: ;
468
- }
469
- :host {
470
- display: contents;
471
- font: 16px/1.5 var(--cer-font-sans, ui-sans-serif, system-ui, sans-serif);
472
- /* Default CE line-height variable so leading-* can reliably override */
473
- --cer-line-height: 1.5;
474
- -webkit-text-size-adjust: 100%;
475
- text-size-adjust: 100%;
476
- -webkit-font-smoothing: antialiased;
477
- -moz-osx-font-smoothing: grayscale;
478
- /* Default gradient variables to avoid undefined var() usage in generated utilities */
479
- --cer-gradient-from-position: 0%;
480
- --cer-gradient-to-position: 100%;
481
- --cer-gradient-via-position: 50%;
482
- --cer-gradient-from: rgba(255, 255, 255, 0);
483
- --cer-gradient-to: rgba(255, 255, 255, 0);
484
- --cer-gradient-stops: var(--cer-gradient-from), var(--cer-gradient-to);
485
- /* Default outline style variable */
486
- --cer-outline-style: solid;
487
- }
488
- button,
489
- input,
490
- select,
491
- textarea {
492
- background: transparent;
493
- outline: none;
494
- }
495
- textarea {
496
- resize: vertical;
497
- }
498
- progress {
499
- vertical-align: baseline;
500
- }
501
- button,
502
- textarea {
503
- overflow: visible;
504
- }
505
- img,
506
- svg,
507
- video,
508
- canvas,
509
- audio,
510
- iframe,
511
- embed,
512
- object {
513
- display: block;
514
- max-width: 100%;
515
- height: auto;
516
- }
517
- svg {
518
- fill: currentColor;
519
- stroke: none;
520
- }
521
- a {
522
- text-decoration: inherit;
523
- cursor: pointer;
524
- }
525
- button,
526
- [type='button'],
527
- [type='reset'],
528
- [type='submit'] {
529
- cursor: pointer;
530
- appearance: button;
531
- background: none;
532
- -webkit-user-select: none;
533
- user-select: none;
534
- }
535
- ::-webkit-input-placeholder,
536
- ::placeholder {
537
- color: inherit;
538
- opacity: 0.5;
539
- }
540
- *:focus-visible {
541
- outline: 2px solid var(--cer-color-primary-500, #3b82f6);
542
- outline-offset: 2px;
543
- }
544
- ol,
545
- ul {
546
- list-style: none;
547
- }
548
- table {
549
- border-collapse: collapse;
550
- }
551
- sub,
552
- sup {
553
- font-size: 0.75em;
554
- line-height: 0;
555
- position: relative;
556
- }
557
- sub {
558
- bottom: -0.25em;
559
- }
560
- sup {
561
- top: -0.5em;
562
- }
563
- [disabled],
564
- [aria-disabled='true'] {
565
- cursor: not-allowed;
566
- }
567
- [hidden] {
568
- display: none;
569
- }
570
- `, De = {
277
+ const Ke = {
571
278
  // Existing semantic colors
572
279
  neutral: {
573
280
  50: "#fafafa",
@@ -665,17 +372,63 @@ const ke = _e`
665
372
  black: { DEFAULT: "#000000" },
666
373
  transparent: { DEFAULT: "transparent" },
667
374
  current: { DEFAULT: "currentColor" }
668
- }, Te = Object.fromEntries(
669
- Object.entries(De).map(([e, t]) => [
375
+ }, qe = Object.fromEntries(
376
+ Object.entries(Ke).map(([e, r]) => [
670
377
  e,
671
378
  Object.fromEntries(
672
- Object.entries(t).map(([c, o]) => [
379
+ Object.entries(r).map(([c, a]) => [
673
380
  c,
674
- `var(--cer-color-${e}${c === "DEFAULT" ? "" : `-${c}`}, ${o})`
381
+ `var(--cer-color-${e}${c === "DEFAULT" ? "" : `-${c}`}, ${a})`
675
382
  ])
676
383
  )
677
384
  ])
678
- ), G = "0.25rem", qe = {
385
+ );
386
+ let re = { ...qe };
387
+ function Fe(e) {
388
+ if (re = { ...qe }, e.extendedColors) {
389
+ const r = Array.isArray(e.extendedColors) ? e.extendedColors : Object.keys(Ce);
390
+ for (const c of r) {
391
+ const a = Ce[c];
392
+ !a || re[c] || (re[c] = Object.fromEntries(
393
+ Object.entries(a).map(([t, s]) => [
394
+ t,
395
+ `var(--cer-color-${c}-${t}, ${s})`
396
+ ])
397
+ ));
398
+ }
399
+ }
400
+ if (e.customColors)
401
+ for (const [r, c] of Object.entries(e.customColors))
402
+ re[r] = c;
403
+ }
404
+ let H = {}, Oe = !1;
405
+ function Le() {
406
+ Oe || (Ne(Ge, cr, Xe), Oe = !0);
407
+ }
408
+ let ve = !1, ze = /* @__PURE__ */ new WeakSet();
409
+ function pr() {
410
+ return ve;
411
+ }
412
+ function Ge(e) {
413
+ return ve || ze.has(e);
414
+ }
415
+ function ur(e, r) {
416
+ if (ze.add(e), r) {
417
+ const c = { ...H, ...r };
418
+ JSON.stringify(c) !== JSON.stringify(H) && (H = c, Fe(H), U.clear());
419
+ }
420
+ Le();
421
+ }
422
+ function gr(e) {
423
+ ve = !0, e && (H = { ...H, ...e }), Fe(H), Le(), U.clear();
424
+ }
425
+ function mr() {
426
+ ve = !1, ze = /* @__PURE__ */ new WeakSet();
427
+ }
428
+ function fr() {
429
+ return { ...H };
430
+ }
431
+ const Ye = {
679
432
  "3xs": 64,
680
433
  "2xs": 72,
681
434
  xs: 80,
@@ -689,7 +442,7 @@ const ke = _e`
689
442
  "5xl": 256,
690
443
  "6xl": 288,
691
444
  "7xl": 320
692
- }, we = {
445
+ }, ye = {
693
446
  m: ["margin"],
694
447
  mx: ["margin-inline"],
695
448
  my: ["margin-block"],
@@ -721,8 +474,19 @@ const ke = _e`
721
474
  "gap-x": ["column-gap"],
722
475
  "gap-y": ["row-gap"],
723
476
  // size-* sets both width and height simultaneously (Tailwind v3+)
724
- size: ["width", "height"]
725
- }, Ie = () => {
477
+ size: ["width", "height"],
478
+ // Logical (flow-relative) properties — RTL / vertical writing mode support
479
+ ms: ["margin-inline-start"],
480
+ me: ["margin-inline-end"],
481
+ ps: ["padding-inline-start"],
482
+ pe: ["padding-inline-end"],
483
+ bs: ["margin-block-start"],
484
+ be: ["margin-block-end"],
485
+ start: ["inset-inline-start"],
486
+ end: ["inset-inline-end"],
487
+ "inset-s": ["inset-inline-start"],
488
+ "inset-e": ["inset-inline-end"]
489
+ }, Ze = () => {
726
490
  const e = {};
727
491
  e["@container"] = "container-type:inline-size;", [
728
492
  "block",
@@ -851,8 +615,8 @@ const ke = _e`
851
615
  ["text-7xl", "4.5rem", "1"],
852
616
  ["text-8xl", "6rem", "1"],
853
617
  ["text-9xl", "8rem", "1"]
854
- ].forEach(([n, d, f]) => {
855
- e[n] = `font-size:${d};line-height:var(--cer-line-height,${f});`;
618
+ ].forEach(([n, g, y]) => {
619
+ e[n] = `font-size:${g};line-height:var(--cer-line-height,${y});`;
856
620
  }), [
857
621
  ["tracking-tighter", "-0.05em"],
858
622
  ["tracking-tight", "-0.025em"],
@@ -860,8 +624,8 @@ const ke = _e`
860
624
  ["tracking-wide", "0.025em"],
861
625
  ["tracking-wider", "0.05em"],
862
626
  ["tracking-widest", "0.1em"]
863
- ].forEach(([n, d]) => {
864
- e[n] = `letter-spacing:${d};`;
627
+ ].forEach(([n, g]) => {
628
+ e[n] = `letter-spacing:${g};`;
865
629
  }), [
866
630
  ["leading-3", "0.75rem"],
867
631
  ["leading-4", "1rem"],
@@ -877,13 +641,13 @@ const ke = _e`
877
641
  ["leading-normal", "1.5"],
878
642
  ["leading-relaxed", "1.625"],
879
643
  ["leading-loose", "2"]
880
- ].forEach(([n, d]) => {
881
- e[n] = `line-height:${d};--cer-line-height:${d};line-height:var(--cer-line-height,${d});`;
644
+ ].forEach(([n, g]) => {
645
+ e[n] = `line-height:${g};--cer-line-height:${g};line-height:var(--cer-line-height,${g});`;
882
646
  });
883
- const i = [0, 1, 2, 4, 6, 8];
884
- for (const n of i) {
885
- const d = `${n}px`;
886
- e[`outline-${n}`] = `outline-style:var(--cer-outline-style);outline-width:${d};`, e[`outline-offset-${n}`] = `outline-offset:${d};`, e[`border-${n}`] = `border-width:${d};`, e[`border-t-${n}`] = `border-top-width:${d};`, e[`border-r-${n}`] = `border-right-width:${d};`, e[`border-b-${n}`] = `border-bottom-width:${d};`, e[`border-l-${n}`] = `border-left-width:${d};`, e[`border-x-${n}`] = `border-left-width:${d};border-right-width:${d};`, e[`border-y-${n}`] = `border-top-width:${d};border-bottom-width:${d};`;
647
+ const s = [0, 1, 2, 4, 6, 8];
648
+ for (const n of s) {
649
+ const g = `${n}px`;
650
+ e[`outline-${n}`] = `outline-style:var(--cer-outline-style);outline-width:${g};`, e[`outline-offset-${n}`] = `outline-offset:${g};`, e[`border-${n}`] = `border-width:${g};`, e[`border-t-${n}`] = `border-top-width:${g};`, e[`border-r-${n}`] = `border-right-width:${g};`, e[`border-b-${n}`] = `border-bottom-width:${g};`, e[`border-l-${n}`] = `border-left-width:${g};`, e[`border-x-${n}`] = `border-left-width:${g};border-right-width:${g};`, e[`border-y-${n}`] = `border-top-width:${g};border-bottom-width:${g};`;
887
651
  }
888
652
  Object.assign(e, {
889
653
  "font-sans": "font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);",
@@ -909,7 +673,7 @@ const ke = _e`
909
673
  "border-double": "border-style:double;",
910
674
  "border-none": "border-style:none;"
911
675
  });
912
- const g = {
676
+ const h = {
913
677
  none: 0,
914
678
  xs: 2,
915
679
  sm: 4,
@@ -921,9 +685,9 @@ const ke = _e`
921
685
  "4xl": 32,
922
686
  full: 9999
923
687
  };
924
- for (const [n, d] of Object.entries(g)) {
925
- const f = d === 9999 ? "9999px" : `${d / 16}rem`;
926
- e[`rounded-${n}`] = `border-radius:${f};`, e[`rounded-t-${n}`] = `border-top-left-radius:${f};border-top-right-radius:${f};`, e[`rounded-r-${n}`] = `border-top-right-radius:${f};border-bottom-right-radius:${f};`, e[`rounded-b-${n}`] = `border-bottom-left-radius:${f};border-bottom-right-radius:${f};`, e[`rounded-l-${n}`] = `border-top-left-radius:${f};border-bottom-left-radius:${f};`, e[`rounded-tl-${n}`] = `border-top-left-radius:${f};`, e[`rounded-tr-${n}`] = `border-top-right-radius:${f};`, e[`rounded-br-${n}`] = `border-bottom-right-radius:${f};`, e[`rounded-bl-${n}`] = `border-bottom-left-radius:${f};`;
688
+ for (const [n, g] of Object.entries(h)) {
689
+ const y = g === 9999 ? "9999px" : `${g / 16}rem`;
690
+ e[`rounded-${n}`] = `border-radius:${y};`, e[`rounded-t-${n}`] = `border-top-left-radius:${y};border-top-right-radius:${y};`, e[`rounded-r-${n}`] = `border-top-right-radius:${y};border-bottom-right-radius:${y};`, e[`rounded-b-${n}`] = `border-bottom-left-radius:${y};border-bottom-right-radius:${y};`, e[`rounded-l-${n}`] = `border-top-left-radius:${y};border-bottom-left-radius:${y};`, e[`rounded-tl-${n}`] = `border-top-left-radius:${y};`, e[`rounded-tr-${n}`] = `border-top-right-radius:${y};`, e[`rounded-br-${n}`] = `border-bottom-right-radius:${y};`, e[`rounded-bl-${n}`] = `border-bottom-left-radius:${y};`;
927
691
  }
928
692
  Object.assign(e, {
929
693
  "shadow-none": "--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);",
@@ -1082,7 +846,7 @@ const ke = _e`
1082
846
  "divide-double": "border-style:double;",
1083
847
  "divide-none": "border-style:none;"
1084
848
  });
1085
- const w = [
849
+ const k = [
1086
850
  "auto",
1087
851
  "default",
1088
852
  "pointer",
@@ -1094,7 +858,7 @@ const ke = _e`
1094
858
  "grab",
1095
859
  "grabbing"
1096
860
  ];
1097
- for (const n of w) e[`cursor-${n}`] = `cursor:${n};`;
861
+ for (const n of k) e[`cursor-${n}`] = `cursor:${n};`;
1098
862
  for (const n of [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50])
1099
863
  e[`z-${n}`] = `z-index:${n};`;
1100
864
  e["z-auto"] = "z-index:auto;", e["-z-10"] = "z-index:-10;", e["-z-20"] = "z-index:-20;", e["-z-30"] = "z-index:-30;", e["-z-40"] = "z-index:-40;", e["-z-50"] = "z-index:-50;", Object.assign(e, {
@@ -1131,8 +895,8 @@ const ke = _e`
1131
895
  "mx-auto": "margin-inline:auto;",
1132
896
  "my-auto": "margin-block:auto;"
1133
897
  });
1134
- for (const [n, d] of Object.entries(qe))
1135
- e[`max-w-${n}`] = `max-width:calc(${G} * ${d});`, e[`min-w-${n}`] = `min-width:calc(${G} * ${d});`, e[`w-${n}`] = `width:calc(${G} * ${d});`, e[`max-h-${n}`] = `max-height:calc(${G} * ${d});`, e[`min-h-${n}`] = `min-height:calc(${G} * ${d});`, e[`h-${n}`] = `height:calc(${G} * ${d});`;
898
+ for (const [n, g] of Object.entries(Ye))
899
+ e[`max-w-${n}`] = `max-width:calc(${G} * ${g});`, e[`min-w-${n}`] = `min-width:calc(${G} * ${g});`, e[`w-${n}`] = `width:calc(${G} * ${g});`, e[`max-h-${n}`] = `max-height:calc(${G} * ${g});`, e[`min-h-${n}`] = `min-height:calc(${G} * ${g});`, e[`h-${n}`] = `height:calc(${G} * ${g});`;
1136
900
  Object.assign(e, {
1137
901
  transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
1138
902
  "transition-none": "transition-property:none;",
@@ -1164,146 +928,146 @@ const ke = _e`
1164
928
  "delay-700": "transition-delay:700ms;",
1165
929
  "delay-1000": "transition-delay:1000ms;"
1166
930
  });
1167
- const s = "translateX(var(--cer-translate-x)) translateY(var(--cer-translate-y)) rotate(var(--cer-rotate)) skewX(var(--cer-skew-x)) skewY(var(--cer-skew-y)) scaleX(var(--cer-scale-x)) scaleY(var(--cer-scale-y))", u = (n) => `--cer-translate-x:${n};transform:${s};`, h = (n) => `--cer-translate-y:${n};transform:${s};`;
931
+ const i = "translateX(var(--cer-translate-x)) translateY(var(--cer-translate-y)) rotate(var(--cer-rotate)) skewX(var(--cer-skew-x)) skewY(var(--cer-skew-y)) scaleX(var(--cer-scale-x)) scaleY(var(--cer-scale-y))", d = (n) => `--cer-translate-x:${n};transform:${i};`, u = (n) => `--cer-translate-y:${n};transform:${i};`;
1168
932
  Object.assign(e, {
1169
933
  // Scale (uniform)
1170
- "scale-0": `--cer-scale-x:0;--cer-scale-y:0;transform:${s};`,
1171
- "scale-50": `--cer-scale-x:.5;--cer-scale-y:.5;transform:${s};`,
1172
- "scale-75": `--cer-scale-x:.75;--cer-scale-y:.75;transform:${s};`,
1173
- "scale-90": `--cer-scale-x:.9;--cer-scale-y:.9;transform:${s};`,
1174
- "scale-95": `--cer-scale-x:.95;--cer-scale-y:.95;transform:${s};`,
1175
- "scale-100": `--cer-scale-x:1;--cer-scale-y:1;transform:${s};`,
1176
- "scale-105": `--cer-scale-x:1.05;--cer-scale-y:1.05;transform:${s};`,
1177
- "scale-110": `--cer-scale-x:1.1;--cer-scale-y:1.1;transform:${s};`,
1178
- "scale-125": `--cer-scale-x:1.25;--cer-scale-y:1.25;transform:${s};`,
1179
- "scale-150": `--cer-scale-x:1.5;--cer-scale-y:1.5;transform:${s};`,
934
+ "scale-0": `--cer-scale-x:0;--cer-scale-y:0;transform:${i};`,
935
+ "scale-50": `--cer-scale-x:.5;--cer-scale-y:.5;transform:${i};`,
936
+ "scale-75": `--cer-scale-x:.75;--cer-scale-y:.75;transform:${i};`,
937
+ "scale-90": `--cer-scale-x:.9;--cer-scale-y:.9;transform:${i};`,
938
+ "scale-95": `--cer-scale-x:.95;--cer-scale-y:.95;transform:${i};`,
939
+ "scale-100": `--cer-scale-x:1;--cer-scale-y:1;transform:${i};`,
940
+ "scale-105": `--cer-scale-x:1.05;--cer-scale-y:1.05;transform:${i};`,
941
+ "scale-110": `--cer-scale-x:1.1;--cer-scale-y:1.1;transform:${i};`,
942
+ "scale-125": `--cer-scale-x:1.25;--cer-scale-y:1.25;transform:${i};`,
943
+ "scale-150": `--cer-scale-x:1.5;--cer-scale-y:1.5;transform:${i};`,
1180
944
  // Scale X axis only
1181
- "scale-x-0": `--cer-scale-x:0;transform:${s};`,
1182
- "scale-x-50": `--cer-scale-x:.5;transform:${s};`,
1183
- "scale-x-75": `--cer-scale-x:.75;transform:${s};`,
1184
- "scale-x-90": `--cer-scale-x:.9;transform:${s};`,
1185
- "scale-x-95": `--cer-scale-x:.95;transform:${s};`,
1186
- "scale-x-100": `--cer-scale-x:1;transform:${s};`,
1187
- "scale-x-105": `--cer-scale-x:1.05;transform:${s};`,
1188
- "scale-x-110": `--cer-scale-x:1.1;transform:${s};`,
1189
- "scale-x-125": `--cer-scale-x:1.25;transform:${s};`,
1190
- "scale-x-150": `--cer-scale-x:1.5;transform:${s};`,
945
+ "scale-x-0": `--cer-scale-x:0;transform:${i};`,
946
+ "scale-x-50": `--cer-scale-x:.5;transform:${i};`,
947
+ "scale-x-75": `--cer-scale-x:.75;transform:${i};`,
948
+ "scale-x-90": `--cer-scale-x:.9;transform:${i};`,
949
+ "scale-x-95": `--cer-scale-x:.95;transform:${i};`,
950
+ "scale-x-100": `--cer-scale-x:1;transform:${i};`,
951
+ "scale-x-105": `--cer-scale-x:1.05;transform:${i};`,
952
+ "scale-x-110": `--cer-scale-x:1.1;transform:${i};`,
953
+ "scale-x-125": `--cer-scale-x:1.25;transform:${i};`,
954
+ "scale-x-150": `--cer-scale-x:1.5;transform:${i};`,
1191
955
  // Scale Y axis only
1192
- "scale-y-0": `--cer-scale-y:0;transform:${s};`,
1193
- "scale-y-50": `--cer-scale-y:.5;transform:${s};`,
1194
- "scale-y-75": `--cer-scale-y:.75;transform:${s};`,
1195
- "scale-y-90": `--cer-scale-y:.9;transform:${s};`,
1196
- "scale-y-95": `--cer-scale-y:.95;transform:${s};`,
1197
- "scale-y-100": `--cer-scale-y:1;transform:${s};`,
1198
- "scale-y-105": `--cer-scale-y:1.05;transform:${s};`,
1199
- "scale-y-110": `--cer-scale-y:1.1;transform:${s};`,
1200
- "scale-y-125": `--cer-scale-y:1.25;transform:${s};`,
1201
- "scale-y-150": `--cer-scale-y:1.5;transform:${s};`,
956
+ "scale-y-0": `--cer-scale-y:0;transform:${i};`,
957
+ "scale-y-50": `--cer-scale-y:.5;transform:${i};`,
958
+ "scale-y-75": `--cer-scale-y:.75;transform:${i};`,
959
+ "scale-y-90": `--cer-scale-y:.9;transform:${i};`,
960
+ "scale-y-95": `--cer-scale-y:.95;transform:${i};`,
961
+ "scale-y-100": `--cer-scale-y:1;transform:${i};`,
962
+ "scale-y-105": `--cer-scale-y:1.05;transform:${i};`,
963
+ "scale-y-110": `--cer-scale-y:1.1;transform:${i};`,
964
+ "scale-y-125": `--cer-scale-y:1.25;transform:${i};`,
965
+ "scale-y-150": `--cer-scale-y:1.5;transform:${i};`,
1202
966
  // Rotate
1203
- "rotate-0": `--cer-rotate:0deg;transform:${s};`,
1204
- "rotate-1": `--cer-rotate:1deg;transform:${s};`,
1205
- "rotate-2": `--cer-rotate:2deg;transform:${s};`,
1206
- "rotate-3": `--cer-rotate:3deg;transform:${s};`,
1207
- "rotate-6": `--cer-rotate:6deg;transform:${s};`,
1208
- "rotate-12": `--cer-rotate:12deg;transform:${s};`,
1209
- "rotate-45": `--cer-rotate:45deg;transform:${s};`,
1210
- "rotate-90": `--cer-rotate:90deg;transform:${s};`,
1211
- "rotate-180": `--cer-rotate:180deg;transform:${s};`,
1212
- "-rotate-1": `--cer-rotate:-1deg;transform:${s};`,
1213
- "-rotate-2": `--cer-rotate:-2deg;transform:${s};`,
1214
- "-rotate-3": `--cer-rotate:-3deg;transform:${s};`,
1215
- "-rotate-6": `--cer-rotate:-6deg;transform:${s};`,
1216
- "-rotate-12": `--cer-rotate:-12deg;transform:${s};`,
1217
- "-rotate-45": `--cer-rotate:-45deg;transform:${s};`,
1218
- "-rotate-90": `--cer-rotate:-90deg;transform:${s};`,
1219
- "-rotate-180": `--cer-rotate:-180deg;transform:${s};`,
967
+ "rotate-0": `--cer-rotate:0deg;transform:${i};`,
968
+ "rotate-1": `--cer-rotate:1deg;transform:${i};`,
969
+ "rotate-2": `--cer-rotate:2deg;transform:${i};`,
970
+ "rotate-3": `--cer-rotate:3deg;transform:${i};`,
971
+ "rotate-6": `--cer-rotate:6deg;transform:${i};`,
972
+ "rotate-12": `--cer-rotate:12deg;transform:${i};`,
973
+ "rotate-45": `--cer-rotate:45deg;transform:${i};`,
974
+ "rotate-90": `--cer-rotate:90deg;transform:${i};`,
975
+ "rotate-180": `--cer-rotate:180deg;transform:${i};`,
976
+ "-rotate-1": `--cer-rotate:-1deg;transform:${i};`,
977
+ "-rotate-2": `--cer-rotate:-2deg;transform:${i};`,
978
+ "-rotate-3": `--cer-rotate:-3deg;transform:${i};`,
979
+ "-rotate-6": `--cer-rotate:-6deg;transform:${i};`,
980
+ "-rotate-12": `--cer-rotate:-12deg;transform:${i};`,
981
+ "-rotate-45": `--cer-rotate:-45deg;transform:${i};`,
982
+ "-rotate-90": `--cer-rotate:-90deg;transform:${i};`,
983
+ "-rotate-180": `--cer-rotate:-180deg;transform:${i};`,
1220
984
  // Translate X
1221
- "translate-x-0": u("0px"),
1222
- "translate-x-px": u("1px"),
1223
- "translate-x-0.5": u("0.125rem"),
1224
- "translate-x-1": u("0.25rem"),
1225
- "translate-x-1.5": u("0.375rem"),
1226
- "translate-x-2": u("0.5rem"),
1227
- "translate-x-2.5": u("0.625rem"),
1228
- "translate-x-3": u("0.75rem"),
1229
- "translate-x-4": u("1rem"),
1230
- "translate-x-5": u("1.25rem"),
1231
- "translate-x-6": u("1.5rem"),
1232
- "translate-x-8": u("2rem"),
1233
- "translate-x-10": u("2.5rem"),
1234
- "translate-x-12": u("3rem"),
1235
- "translate-x-16": u("4rem"),
1236
- "translate-x-20": u("5rem"),
1237
- "translate-x-24": u("6rem"),
1238
- "translate-x-32": u("8rem"),
1239
- "translate-x-1/2": u("50%"),
1240
- "translate-x-1/3": u("33.333333%"),
1241
- "translate-x-2/3": u("66.666667%"),
1242
- "translate-x-1/4": u("25%"),
1243
- "translate-x-3/4": u("75%"),
1244
- "translate-x-full": u("100%"),
1245
- "-translate-x-px": u("-1px"),
1246
- "-translate-x-0.5": u("-0.125rem"),
1247
- "-translate-x-1": u("-0.25rem"),
1248
- "-translate-x-1.5": u("-0.375rem"),
1249
- "-translate-x-2": u("-0.5rem"),
1250
- "-translate-x-2.5": u("-0.625rem"),
1251
- "-translate-x-3": u("-0.75rem"),
1252
- "-translate-x-4": u("-1rem"),
1253
- "-translate-x-1/2": u("-50%"),
1254
- "-translate-x-full": u("-100%"),
985
+ "translate-x-0": d("0px"),
986
+ "translate-x-px": d("1px"),
987
+ "translate-x-0.5": d("0.125rem"),
988
+ "translate-x-1": d("0.25rem"),
989
+ "translate-x-1.5": d("0.375rem"),
990
+ "translate-x-2": d("0.5rem"),
991
+ "translate-x-2.5": d("0.625rem"),
992
+ "translate-x-3": d("0.75rem"),
993
+ "translate-x-4": d("1rem"),
994
+ "translate-x-5": d("1.25rem"),
995
+ "translate-x-6": d("1.5rem"),
996
+ "translate-x-8": d("2rem"),
997
+ "translate-x-10": d("2.5rem"),
998
+ "translate-x-12": d("3rem"),
999
+ "translate-x-16": d("4rem"),
1000
+ "translate-x-20": d("5rem"),
1001
+ "translate-x-24": d("6rem"),
1002
+ "translate-x-32": d("8rem"),
1003
+ "translate-x-1/2": d("50%"),
1004
+ "translate-x-1/3": d("33.333333%"),
1005
+ "translate-x-2/3": d("66.666667%"),
1006
+ "translate-x-1/4": d("25%"),
1007
+ "translate-x-3/4": d("75%"),
1008
+ "translate-x-full": d("100%"),
1009
+ "-translate-x-px": d("-1px"),
1010
+ "-translate-x-0.5": d("-0.125rem"),
1011
+ "-translate-x-1": d("-0.25rem"),
1012
+ "-translate-x-1.5": d("-0.375rem"),
1013
+ "-translate-x-2": d("-0.5rem"),
1014
+ "-translate-x-2.5": d("-0.625rem"),
1015
+ "-translate-x-3": d("-0.75rem"),
1016
+ "-translate-x-4": d("-1rem"),
1017
+ "-translate-x-1/2": d("-50%"),
1018
+ "-translate-x-full": d("-100%"),
1255
1019
  // Translate Y
1256
- "translate-y-0": h("0px"),
1257
- "translate-y-px": h("1px"),
1258
- "translate-y-0.5": h("0.125rem"),
1259
- "translate-y-1": h("0.25rem"),
1260
- "translate-y-1.5": h("0.375rem"),
1261
- "translate-y-2": h("0.5rem"),
1262
- "translate-y-2.5": h("0.625rem"),
1263
- "translate-y-3": h("0.75rem"),
1264
- "translate-y-4": h("1rem"),
1265
- "translate-y-5": h("1.25rem"),
1266
- "translate-y-6": h("1.5rem"),
1267
- "translate-y-8": h("2rem"),
1268
- "translate-y-10": h("2.5rem"),
1269
- "translate-y-12": h("3rem"),
1270
- "translate-y-16": h("4rem"),
1271
- "translate-y-20": h("5rem"),
1272
- "translate-y-24": h("6rem"),
1273
- "translate-y-32": h("8rem"),
1274
- "translate-y-1/2": h("50%"),
1275
- "translate-y-full": h("100%"),
1276
- "-translate-y-px": h("-1px"),
1277
- "-translate-y-0.5": h("-0.125rem"),
1278
- "-translate-y-1": h("-0.25rem"),
1279
- "-translate-y-2": h("-0.5rem"),
1280
- "-translate-y-4": h("-1rem"),
1281
- "-translate-y-1/2": h("-50%"),
1282
- "-translate-y-full": h("-100%"),
1020
+ "translate-y-0": u("0px"),
1021
+ "translate-y-px": u("1px"),
1022
+ "translate-y-0.5": u("0.125rem"),
1023
+ "translate-y-1": u("0.25rem"),
1024
+ "translate-y-1.5": u("0.375rem"),
1025
+ "translate-y-2": u("0.5rem"),
1026
+ "translate-y-2.5": u("0.625rem"),
1027
+ "translate-y-3": u("0.75rem"),
1028
+ "translate-y-4": u("1rem"),
1029
+ "translate-y-5": u("1.25rem"),
1030
+ "translate-y-6": u("1.5rem"),
1031
+ "translate-y-8": u("2rem"),
1032
+ "translate-y-10": u("2.5rem"),
1033
+ "translate-y-12": u("3rem"),
1034
+ "translate-y-16": u("4rem"),
1035
+ "translate-y-20": u("5rem"),
1036
+ "translate-y-24": u("6rem"),
1037
+ "translate-y-32": u("8rem"),
1038
+ "translate-y-1/2": u("50%"),
1039
+ "translate-y-full": u("100%"),
1040
+ "-translate-y-px": u("-1px"),
1041
+ "-translate-y-0.5": u("-0.125rem"),
1042
+ "-translate-y-1": u("-0.25rem"),
1043
+ "-translate-y-2": u("-0.5rem"),
1044
+ "-translate-y-4": u("-1rem"),
1045
+ "-translate-y-1/2": u("-50%"),
1046
+ "-translate-y-full": u("-100%"),
1283
1047
  // Skew X
1284
- "skew-x-0": `--cer-skew-x:0deg;transform:${s};`,
1285
- "skew-x-1": `--cer-skew-x:1deg;transform:${s};`,
1286
- "skew-x-2": `--cer-skew-x:2deg;transform:${s};`,
1287
- "skew-x-3": `--cer-skew-x:3deg;transform:${s};`,
1288
- "skew-x-6": `--cer-skew-x:6deg;transform:${s};`,
1289
- "skew-x-12": `--cer-skew-x:12deg;transform:${s};`,
1290
- "-skew-x-1": `--cer-skew-x:-1deg;transform:${s};`,
1291
- "-skew-x-2": `--cer-skew-x:-2deg;transform:${s};`,
1292
- "-skew-x-3": `--cer-skew-x:-3deg;transform:${s};`,
1293
- "-skew-x-6": `--cer-skew-x:-6deg;transform:${s};`,
1294
- "-skew-x-12": `--cer-skew-x:-12deg;transform:${s};`,
1048
+ "skew-x-0": `--cer-skew-x:0deg;transform:${i};`,
1049
+ "skew-x-1": `--cer-skew-x:1deg;transform:${i};`,
1050
+ "skew-x-2": `--cer-skew-x:2deg;transform:${i};`,
1051
+ "skew-x-3": `--cer-skew-x:3deg;transform:${i};`,
1052
+ "skew-x-6": `--cer-skew-x:6deg;transform:${i};`,
1053
+ "skew-x-12": `--cer-skew-x:12deg;transform:${i};`,
1054
+ "-skew-x-1": `--cer-skew-x:-1deg;transform:${i};`,
1055
+ "-skew-x-2": `--cer-skew-x:-2deg;transform:${i};`,
1056
+ "-skew-x-3": `--cer-skew-x:-3deg;transform:${i};`,
1057
+ "-skew-x-6": `--cer-skew-x:-6deg;transform:${i};`,
1058
+ "-skew-x-12": `--cer-skew-x:-12deg;transform:${i};`,
1295
1059
  // Skew Y
1296
- "skew-y-0": `--cer-skew-y:0deg;transform:${s};`,
1297
- "skew-y-1": `--cer-skew-y:1deg;transform:${s};`,
1298
- "skew-y-2": `--cer-skew-y:2deg;transform:${s};`,
1299
- "skew-y-3": `--cer-skew-y:3deg;transform:${s};`,
1300
- "skew-y-6": `--cer-skew-y:6deg;transform:${s};`,
1301
- "skew-y-12": `--cer-skew-y:12deg;transform:${s};`,
1302
- "-skew-y-1": `--cer-skew-y:-1deg;transform:${s};`,
1303
- "-skew-y-2": `--cer-skew-y:-2deg;transform:${s};`,
1304
- "-skew-y-3": `--cer-skew-y:-3deg;transform:${s};`,
1305
- "-skew-y-6": `--cer-skew-y:-6deg;transform:${s};`,
1306
- "-skew-y-12": `--cer-skew-y:-12deg;transform:${s};`
1060
+ "skew-y-0": `--cer-skew-y:0deg;transform:${i};`,
1061
+ "skew-y-1": `--cer-skew-y:1deg;transform:${i};`,
1062
+ "skew-y-2": `--cer-skew-y:2deg;transform:${i};`,
1063
+ "skew-y-3": `--cer-skew-y:3deg;transform:${i};`,
1064
+ "skew-y-6": `--cer-skew-y:6deg;transform:${i};`,
1065
+ "skew-y-12": `--cer-skew-y:12deg;transform:${i};`,
1066
+ "-skew-y-1": `--cer-skew-y:-1deg;transform:${i};`,
1067
+ "-skew-y-2": `--cer-skew-y:-2deg;transform:${i};`,
1068
+ "-skew-y-3": `--cer-skew-y:-3deg;transform:${i};`,
1069
+ "-skew-y-6": `--cer-skew-y:-6deg;transform:${i};`,
1070
+ "-skew-y-12": `--cer-skew-y:-12deg;transform:${i};`
1307
1071
  }), Object.assign(e, {
1308
1072
  ring: "box-shadow:0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
1309
1073
  "ring-0": "box-shadow:0 0 0 0px var(--cer-ring-color,rgb(59 130 246/0.5));",
@@ -1318,7 +1082,7 @@ const ke = _e`
1318
1082
  "ring-offset-4": "--cer-ring-offset-width:4px;box-shadow:0 0 0 4px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 4px) var(--cer-ring-color,rgb(59 130 246/0.5));",
1319
1083
  "ring-offset-8": "--cer-ring-offset-width:8px;box-shadow:0 0 0 8px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 8px) var(--cer-ring-color,rgb(59 130 246/0.5));"
1320
1084
  });
1321
- const l = "var(--cer-blur) var(--cer-brightness) var(--cer-contrast) var(--cer-grayscale) var(--cer-hue-rotate) var(--cer-invert) var(--cer-saturate) var(--cer-sepia) var(--cer-drop-shadow)", b = "var(--cer-backdrop-blur) var(--cer-backdrop-brightness) var(--cer-backdrop-contrast) var(--cer-backdrop-grayscale) var(--cer-backdrop-hue-rotate) var(--cer-backdrop-invert) var(--cer-backdrop-saturate) var(--cer-backdrop-sepia)";
1085
+ const l = "var(--cer-blur) var(--cer-brightness) var(--cer-contrast) var(--cer-grayscale) var(--cer-hue-rotate) var(--cer-invert) var(--cer-saturate) var(--cer-sepia) var(--cer-drop-shadow)", f = "var(--cer-backdrop-blur) var(--cer-backdrop-brightness) var(--cer-backdrop-contrast) var(--cer-backdrop-grayscale) var(--cer-backdrop-hue-rotate) var(--cer-backdrop-invert) var(--cer-backdrop-saturate) var(--cer-backdrop-sepia)";
1322
1086
  Object.assign(e, {
1323
1087
  // Blur
1324
1088
  "blur-none": `--cer-blur:;filter:${l};`,
@@ -1385,14 +1149,14 @@ const ke = _e`
1385
1149
  "drop-shadow-2xl": `--cer-drop-shadow:drop-shadow(0 25px 25px rgb(0 0 0/.15));filter:${l};`,
1386
1150
  "drop-shadow-none": `--cer-drop-shadow:drop-shadow(0 0 #0000);filter:${l};`,
1387
1151
  // Backdrop blur
1388
- "backdrop-blur-none": `--cer-backdrop-blur:;backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1389
- "backdrop-blur-sm": `--cer-backdrop-blur:blur(4px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1390
- "backdrop-blur": `--cer-backdrop-blur:blur(8px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1391
- "backdrop-blur-md": `--cer-backdrop-blur:blur(12px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1392
- "backdrop-blur-lg": `--cer-backdrop-blur:blur(16px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1393
- "backdrop-blur-xl": `--cer-backdrop-blur:blur(24px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1394
- "backdrop-blur-2xl": `--cer-backdrop-blur:blur(40px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`,
1395
- "backdrop-blur-3xl": `--cer-backdrop-blur:blur(64px);backdrop-filter:${b};-webkit-backdrop-filter:${b};`
1152
+ "backdrop-blur-none": `--cer-backdrop-blur:;backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1153
+ "backdrop-blur-sm": `--cer-backdrop-blur:blur(4px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1154
+ "backdrop-blur": `--cer-backdrop-blur:blur(8px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1155
+ "backdrop-blur-md": `--cer-backdrop-blur:blur(12px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1156
+ "backdrop-blur-lg": `--cer-backdrop-blur:blur(16px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1157
+ "backdrop-blur-xl": `--cer-backdrop-blur:blur(24px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1158
+ "backdrop-blur-2xl": `--cer-backdrop-blur:blur(40px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1159
+ "backdrop-blur-3xl": `--cer-backdrop-blur:blur(64px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`
1396
1160
  }), Object.assign(e, {
1397
1161
  "aspect-auto": "aspect-ratio:auto;",
1398
1162
  "aspect-square": "aspect-ratio:1 / 1;",
@@ -1528,68 +1292,162 @@ const ke = _e`
1528
1292
  --cer-prose-invert-links:var(--cer-color-info-300);
1529
1293
  --cer-prose-invert-links-hover:var(--cer-color-info-100);
1530
1294
  `.replace(/\s+/g, "")
1295
+ }), e["flow-root"] = "display:flow-root;", e["text-start"] = "text-align:start;", e["text-end"] = "text-align:end;", e["grid-cols-subgrid"] = "grid-template-columns:subgrid;", e["grid-rows-subgrid"] = "grid-template-rows:subgrid;", Object.assign(e, {
1296
+ "text-shadow-xs": "--cer-text-shadow-color:rgb(0 0 0 / 0.05);text-shadow:0 1px 1px var(--cer-text-shadow-color, rgb(0 0 0 / 0.05));",
1297
+ "text-shadow-sm": "--cer-text-shadow-color:rgb(0 0 0 / 0.15);text-shadow:0 1px 2px var(--cer-text-shadow-color, rgb(0 0 0 / 0.15));",
1298
+ "text-shadow": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 1px 3px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1299
+ "text-shadow-md": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 2px 4px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1300
+ "text-shadow-lg": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 4px 8px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1301
+ "text-shadow-xl": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 6px 16px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1302
+ "text-shadow-2xl": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 8px 24px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1303
+ "text-shadow-none": "text-shadow:none;"
1304
+ }), Object.assign(e, {
1305
+ "mask-none": "mask-image:none;",
1306
+ "mask-linear-to-t": "mask-image:linear-gradient(to top,black,transparent);",
1307
+ "mask-linear-to-tr": "mask-image:linear-gradient(to top right,black,transparent);",
1308
+ "mask-linear-to-r": "mask-image:linear-gradient(to right,black,transparent);",
1309
+ "mask-linear-to-br": "mask-image:linear-gradient(to bottom right,black,transparent);",
1310
+ "mask-linear-to-b": "mask-image:linear-gradient(to bottom,black,transparent);",
1311
+ "mask-linear-to-bl": "mask-image:linear-gradient(to bottom left,black,transparent);",
1312
+ "mask-linear-to-l": "mask-image:linear-gradient(to left,black,transparent);",
1313
+ "mask-linear-to-tl": "mask-image:linear-gradient(to top left,black,transparent);",
1314
+ "mask-radial": "mask-image:radial-gradient(ellipse at center,black,transparent);",
1315
+ "mask-radial-from-center": "mask-image:radial-gradient(ellipse at center,black 0%,transparent 100%);",
1316
+ "mask-size-contain": "mask-size:contain;",
1317
+ "mask-size-cover": "mask-size:cover;",
1318
+ "mask-no-repeat": "mask-repeat:no-repeat;",
1319
+ "mask-repeat": "mask-repeat:repeat;",
1320
+ "mask-alpha": "mask-mode:alpha;",
1321
+ "mask-luminance": "mask-mode:luminance;"
1322
+ }), e["field-sizing-content"] = "field-sizing:content;", e["field-sizing-fixed"] = "field-sizing:fixed;", Object.assign(e, {
1323
+ "scheme-light": "color-scheme:light;",
1324
+ "scheme-dark": "color-scheme:dark;",
1325
+ "scheme-both": "color-scheme:light dark;",
1326
+ "scheme-only-light": "color-scheme:only light;",
1327
+ "scheme-only-dark": "color-scheme:only dark;",
1328
+ "scheme-normal": "color-scheme:normal;"
1329
+ }), Object.assign(e, {
1330
+ "font-stretch-ultra-condensed": "font-stretch:ultra-condensed;",
1331
+ "font-stretch-extra-condensed": "font-stretch:extra-condensed;",
1332
+ "font-stretch-condensed": "font-stretch:condensed;",
1333
+ "font-stretch-semi-condensed": "font-stretch:semi-condensed;",
1334
+ "font-stretch-normal": "font-stretch:normal;",
1335
+ "font-stretch-semi-expanded": "font-stretch:semi-expanded;",
1336
+ "font-stretch-expanded": "font-stretch:expanded;",
1337
+ "font-stretch-extra-expanded": "font-stretch:extra-expanded;",
1338
+ "font-stretch-ultra-expanded": "font-stretch:ultra-expanded;"
1339
+ }), Object.assign(e, {
1340
+ "cursor-zoom-in": "cursor:zoom-in;",
1341
+ "cursor-zoom-out": "cursor:zoom-out;",
1342
+ "cursor-cell": "cursor:cell;",
1343
+ "cursor-crosshair": "cursor:crosshair;",
1344
+ "cursor-copy": "cursor:copy;",
1345
+ "cursor-alias": "cursor:alias;",
1346
+ "cursor-context-menu": "cursor:context-menu;",
1347
+ "cursor-vertical-text": "cursor:vertical-text;",
1348
+ "cursor-no-drop": "cursor:no-drop;",
1349
+ "cursor-progress": "cursor:progress;",
1350
+ "cursor-col-resize": "cursor:col-resize;",
1351
+ "cursor-row-resize": "cursor:row-resize;",
1352
+ "cursor-ew-resize": "cursor:ew-resize;",
1353
+ "cursor-ns-resize": "cursor:ns-resize;",
1354
+ "cursor-nesw-resize": "cursor:nesw-resize;",
1355
+ "cursor-nwse-resize": "cursor:nwse-resize;",
1356
+ "cursor-all-scroll": "cursor:all-scroll;"
1357
+ }), Object.assign(e, {
1358
+ // border-inline-start / border-inline-end widths
1359
+ "border-s": "border-inline-start-width:1px;",
1360
+ "border-e": "border-inline-end-width:1px;",
1361
+ "border-s-0": "border-inline-start-width:0px;",
1362
+ "border-e-0": "border-inline-end-width:0px;",
1363
+ "border-s-2": "border-inline-start-width:2px;",
1364
+ "border-e-2": "border-inline-end-width:2px;",
1365
+ "border-s-4": "border-inline-start-width:4px;",
1366
+ "border-e-4": "border-inline-end-width:4px;",
1367
+ "border-s-8": "border-inline-start-width:8px;",
1368
+ "border-e-8": "border-inline-end-width:8px;"
1369
+ }), Object.assign(e, {
1370
+ "rounded-s-none": "border-start-start-radius:0;border-end-start-radius:0;",
1371
+ "rounded-e-none": "border-start-end-radius:0;border-end-end-radius:0;",
1372
+ "rounded-s-sm": "border-start-start-radius:0.125rem;border-end-start-radius:0.125rem;",
1373
+ "rounded-e-sm": "border-start-end-radius:0.125rem;border-end-end-radius:0.125rem;",
1374
+ "rounded-s": "border-start-start-radius:0.25rem;border-end-start-radius:0.25rem;",
1375
+ "rounded-e": "border-start-end-radius:0.25rem;border-end-end-radius:0.25rem;",
1376
+ "rounded-s-md": "border-start-start-radius:0.375rem;border-end-start-radius:0.375rem;",
1377
+ "rounded-e-md": "border-start-end-radius:0.375rem;border-end-end-radius:0.375rem;",
1378
+ "rounded-s-lg": "border-start-start-radius:0.5rem;border-end-start-radius:0.5rem;",
1379
+ "rounded-e-lg": "border-start-end-radius:0.5rem;border-end-end-radius:0.5rem;",
1380
+ "rounded-s-xl": "border-start-start-radius:0.75rem;border-end-start-radius:0.75rem;",
1381
+ "rounded-e-xl": "border-start-end-radius:0.75rem;border-end-end-radius:0.75rem;",
1382
+ "rounded-s-2xl": "border-start-start-radius:1rem;border-end-start-radius:1rem;",
1383
+ "rounded-e-2xl": "border-start-end-radius:1rem;border-end-end-radius:1rem;",
1384
+ "rounded-s-3xl": "border-start-start-radius:1.5rem;border-end-start-radius:1.5rem;",
1385
+ "rounded-e-3xl": "border-start-end-radius:1.5rem;border-end-end-radius:1.5rem;",
1386
+ "rounded-s-full": "border-start-start-radius:9999px;border-end-start-radius:9999px;",
1387
+ "rounded-e-full": "border-start-end-radius:9999px;border-end-end-radius:9999px;"
1531
1388
  }), e;
1532
- }, fe = Ie();
1533
- function Ne(e) {
1534
- return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (Le(e), "") : null;
1389
+ }, me = Ze();
1390
+ function er(e) {
1391
+ return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (Qe(e), "") : null;
1535
1392
  }
1536
- function Se(e) {
1537
- return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Re(
1393
+ function We(e) {
1394
+ return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Je(
1538
1395
  e,
1396
+ me,
1539
1397
  fe,
1540
- ge,
1541
1398
  he,
1542
- xe,
1543
- me,
1399
+ $e,
1544
1400
  be,
1545
- se
1401
+ xe,
1402
+ le
1546
1403
  ) : null;
1547
1404
  }
1548
- function q(e, t) {
1405
+ function I(e, r) {
1549
1406
  let c = 0;
1550
- for (let o = 0; o < e.length; o++) {
1551
- const r = e[o];
1552
- if (r === "[" || r === "(") c++;
1553
- else if ((r === "]" || r === ")") && c > 0) c--;
1554
- else if (c === 0 && (r === ">" || r === "+" || r === "~" || r === " "))
1555
- return e.slice(0, o) + t + e.slice(o);
1407
+ for (let a = 0; a < e.length; a++) {
1408
+ const t = e[a];
1409
+ if (t === "[" || t === "(") c++;
1410
+ else if ((t === "]" || t === ")") && c > 0) c--;
1411
+ else if (c === 0 && (t === ">" || t === "+" || t === "~" || t === " "))
1412
+ return e.slice(0, a) + r + e.slice(a);
1556
1413
  }
1557
- return e + t;
1414
+ return e + r;
1558
1415
  }
1559
- const je = {
1560
- before: (e, t) => `${e}::before{${t}}`,
1561
- after: (e, t) => `${e}::after{${t}}`,
1562
- hover: (e, t) => `${q(e, ":hover")}{${t}}`,
1563
- focus: (e, t) => `${q(e, ":focus")}{${t}}`,
1564
- active: (e, t) => `${q(e, ":active")}{${t}}`,
1565
- disabled: (e, t) => `${q(e, ":disabled")}{${t}}`,
1566
- visited: (e, t) => `${q(e, ":visited")}{${t}}`,
1567
- checked: (e, t) => `${q(e, ":checked")}{${t}}`,
1568
- first: (e, t) => `${q(e, ":first-child")}{${t}}`,
1569
- last: (e, t) => `${q(e, ":last-child")}{${t}}`,
1570
- odd: (e, t) => `${q(e, ":nth-child(odd)")}{${t}}`,
1571
- even: (e, t) => `${q(e, ":nth-child(even)")}{${t}}`,
1572
- "focus-within": (e, t) => `${q(e, ":focus-within")}{${t}}`,
1573
- "focus-visible": (e, t) => `${q(e, ":focus-visible")}{${t}}`,
1574
- "group-hover": (e, t) => `.group:hover ${e}{${t}}`,
1575
- "group-focus": (e, t) => `.group:focus ${e}{${t}}`,
1576
- "group-active": (e, t) => `.group:active ${e}{${t}}`,
1577
- "group-disabled": (e, t) => `.group:disabled ${e}{${t}}`,
1578
- "peer-hover": (e, t) => `.peer:hover ~ ${e}{${t}}`,
1579
- "peer-focus": (e, t) => `.peer:focus ~ ${e}{${t}}`,
1580
- "peer-checked": (e, t) => `.peer:checked ~ ${e}{${t}}`,
1581
- "peer-disabled": (e, t) => `.peer:disabled ~ ${e}{${t}}`,
1582
- "dark-class": (e, t) => `:host(.dark) ${e}{${t}}`,
1583
- rtl: (e, t) => `[dir=rtl] ${e}{${t}}`,
1584
- ltr: (e, t) => `[dir=ltr] ${e}{${t}}`,
1416
+ const _e = {
1417
+ before: (e, r) => `${e}::before{${r}}`,
1418
+ after: (e, r) => `${e}::after{${r}}`,
1419
+ hover: (e, r) => `${I(e, ":hover")}{${r}}`,
1420
+ focus: (e, r) => `${I(e, ":focus")}{${r}}`,
1421
+ active: (e, r) => `${I(e, ":active")}{${r}}`,
1422
+ disabled: (e, r) => `${I(e, ":disabled")}{${r}}`,
1423
+ visited: (e, r) => `${I(e, ":visited")}{${r}}`,
1424
+ checked: (e, r) => `${I(e, ":checked")}{${r}}`,
1425
+ first: (e, r) => `${I(e, ":first-child")}{${r}}`,
1426
+ last: (e, r) => `${I(e, ":last-child")}{${r}}`,
1427
+ odd: (e, r) => `${I(e, ":nth-child(odd)")}{${r}}`,
1428
+ even: (e, r) => `${I(e, ":nth-child(even)")}{${r}}`,
1429
+ "focus-within": (e, r) => `${I(e, ":focus-within")}{${r}}`,
1430
+ "focus-visible": (e, r) => `${I(e, ":focus-visible")}{${r}}`,
1431
+ "group-hover": (e, r) => `.group:hover ${e}{${r}}`,
1432
+ "group-focus": (e, r) => `.group:focus ${e}{${r}}`,
1433
+ "group-active": (e, r) => `.group:active ${e}{${r}}`,
1434
+ "group-disabled": (e, r) => `.group:disabled ${e}{${r}}`,
1435
+ "peer-hover": (e, r) => `.peer:hover ~ ${e}{${r}}`,
1436
+ "peer-focus": (e, r) => `.peer:focus ~ ${e}{${r}}`,
1437
+ "peer-checked": (e, r) => `.peer:checked ~ ${e}{${r}}`,
1438
+ "peer-disabled": (e, r) => `.peer:disabled ~ ${e}{${r}}`,
1439
+ "dark-class": (e, r) => `:host(.dark) ${e}{${r}}`,
1440
+ rtl: (e, r) => `[dir=rtl] ${e}{${r}}`,
1441
+ ltr: (e, r) => `[dir=ltr] ${e}{${r}}`,
1585
1442
  // Pseudo-element variants
1586
- placeholder: (e, t) => `${e}::placeholder{${t}}`,
1587
- file: (e, t) => `${e}::file-selector-button{${t}}`,
1588
- marker: (e, t) => `${e}::marker{${t}}`,
1589
- selection: (e, t) => `${e}::selection{${t}}`,
1443
+ placeholder: (e, r) => `${e}::placeholder{${r}}`,
1444
+ file: (e, r) => `${e}::file-selector-button{${r}}`,
1445
+ marker: (e, r) => `${e}::marker{${r}}`,
1446
+ selection: (e, r) => `${e}::selection{${r}}`,
1590
1447
  // State variants
1591
- open: (e, t) => `${q(e, "[open]")}{${t}}`
1592
- }, te = {
1448
+ open: (e, r) => `${I(e, "[open]")}{${r}}`,
1449
+ inert: (e, r) => `${I(e, "[inert]")}{${r}}`
1450
+ }, ce = {
1593
1451
  sm: "(min-width:640px)",
1594
1452
  md: "(min-width:768px)",
1595
1453
  lg: "(min-width:1024px)",
@@ -1600,7 +1458,7 @@ const je = {
1600
1458
  "motion-safe": "(prefers-reduced-motion: no-preference)",
1601
1459
  print: "print",
1602
1460
  "forced-colors": "(forced-colors: active)"
1603
- }, Ce = {
1461
+ }, Ve = {
1604
1462
  xs: "(min-width:20rem)",
1605
1463
  sm: "(min-width:24rem)",
1606
1464
  md: "(min-width:28rem)",
@@ -1612,7 +1470,7 @@ const je = {
1612
1470
  "5xl": "(min-width:64rem)",
1613
1471
  "6xl": "(min-width:72rem)",
1614
1472
  "7xl": "(min-width:80rem)"
1615
- }, oe = [
1473
+ }, ie = [
1616
1474
  "sm",
1617
1475
  "md",
1618
1476
  "lg",
@@ -1622,7 +1480,7 @@ const je = {
1622
1480
  "motion-safe",
1623
1481
  "print",
1624
1482
  "forced-colors"
1625
- ], pe = [
1483
+ ], ue = [
1626
1484
  "xs",
1627
1485
  "sm",
1628
1486
  "md",
@@ -1635,48 +1493,48 @@ const je = {
1635
1493
  "6xl",
1636
1494
  "7xl"
1637
1495
  ];
1638
- function ge(e) {
1639
- const t = e.startsWith("-"), c = t ? e.slice(1) : e, o = c.lastIndexOf("-");
1640
- if (o === -1) return null;
1641
- const r = c.slice(0, o), i = c.slice(o + 1);
1642
- if (!we[r]) return null;
1643
- if (i.includes("/")) {
1644
- const [s, u] = i.split("/").map((l) => parseFloat(l));
1645
- if (Number.isNaN(s) || Number.isNaN(u) || u === 0)
1496
+ function fe(e) {
1497
+ const r = e.startsWith("-"), c = r ? e.slice(1) : e, a = c.lastIndexOf("-");
1498
+ if (a === -1) return null;
1499
+ const t = c.slice(0, a), s = c.slice(a + 1);
1500
+ if (!ye[t]) return null;
1501
+ if (s.includes("/")) {
1502
+ const [i, d] = s.split("/").map((l) => parseFloat(l));
1503
+ if (Number.isNaN(i) || Number.isNaN(d) || d === 0)
1646
1504
  return null;
1647
- const h = s / u * 100;
1648
- return we[r].map((l) => `${l}:${h}%;`).join("");
1505
+ const u = i / d * 100;
1506
+ return ye[t].map((l) => `${l}:${u}%;`).join("");
1649
1507
  }
1650
- const g = parseFloat(i);
1651
- if (Number.isNaN(g)) return null;
1652
- const w = t ? "-" : "";
1653
- return we[r].map((s) => `${s}:calc(${w}${G} * ${g});`).join("");
1508
+ const h = parseFloat(s);
1509
+ if (Number.isNaN(h)) return null;
1510
+ const k = r ? "-" : "";
1511
+ return ye[t].map((i) => `${i}:calc(${k}${G} * ${h});`).join("");
1654
1512
  }
1655
1513
  function he(e) {
1656
- const t = e.startsWith("-"), o = (t ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
1657
- if (!o) return null;
1658
- const [, r, i] = o, g = r === "x";
1659
- if (i === "reverse")
1660
- return g ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
1661
- if (i.includes("/")) {
1662
- const [h, l] = i.split("/").map((d) => parseFloat(d));
1663
- if (Number.isNaN(h) || Number.isNaN(l) || l === 0)
1514
+ const r = e.startsWith("-"), a = (r ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
1515
+ if (!a) return null;
1516
+ const [, t, s] = a, h = t === "x";
1517
+ if (s === "reverse")
1518
+ return h ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
1519
+ if (s.includes("/")) {
1520
+ const [u, l] = s.split("/").map((g) => parseFloat(g));
1521
+ if (Number.isNaN(u) || Number.isNaN(l) || l === 0)
1664
1522
  return null;
1665
- const b = h / l * 100, n = t ? "-" : "";
1666
- return g ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${n}${b}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${n}${b}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${n}${b}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${n}${b}% * var(--cer-space-y-reverse));}`;
1523
+ const f = u / l * 100, n = r ? "-" : "";
1524
+ return h ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${n}${f}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${n}${f}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${n}${f}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${n}${f}% * var(--cer-space-y-reverse));}`;
1667
1525
  }
1668
- const w = parseFloat(i);
1669
- if (Number.isNaN(w)) return null;
1670
- const u = `calc(${t ? "-" : ""}${G} * ${w})`;
1671
- return g ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${u} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${u} * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${u} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${u} * var(--cer-space-y-reverse));}`;
1526
+ const k = parseFloat(s);
1527
+ if (Number.isNaN(k)) return null;
1528
+ const d = `calc(${r ? "-" : ""}${G} * ${k})`;
1529
+ return h ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${d} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${d} * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${d} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${d} * var(--cer-space-y-reverse));}`;
1672
1530
  }
1673
- function ue(e) {
1674
- let t = e.replace("#", "");
1675
- t.length === 3 && (t = t.split("").map((o) => o + o).join(""));
1676
- const c = parseInt(t, 16);
1531
+ function ge(e) {
1532
+ let r = e.replace("#", "");
1533
+ r.length === 3 && (r = r.split("").map((a) => a + a).join(""));
1534
+ const c = parseInt(r, 16);
1677
1535
  return `${c >> 16 & 255} ${c >> 8 & 255} ${c & 255}`;
1678
1536
  }
1679
- const Ve = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke|ring|divide)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, Be = {
1537
+ const rr = /^(text-shadow|bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke|ring|divide)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, tr = {
1680
1538
  bg: "background-color",
1681
1539
  decoration: "text-decoration-color",
1682
1540
  text: "color",
@@ -1687,112 +1545,113 @@ const Ve = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke|
1687
1545
  fill: "fill",
1688
1546
  stroke: "stroke"
1689
1547
  };
1690
- function Ue(e) {
1691
- const t = Ve.exec(e);
1692
- if (!t) return null;
1693
- const [, c, o, r = "DEFAULT"] = t, i = Te[o]?.[r];
1694
- if (!i) return null;
1695
- if (c === "shadow") return `--cer-shadow-color:${i};`;
1696
- if (c === "ring") return `--cer-ring-color:${i};`;
1697
- if (c === "divide") return `border-color:${i};`;
1698
- const g = Be[c];
1699
- return g ? `${g}:${i};` : null;
1548
+ function or(e) {
1549
+ const r = rr.exec(e);
1550
+ if (!r) return null;
1551
+ const [, c, a, t = "DEFAULT"] = r, s = re[a]?.[t];
1552
+ if (!s) return null;
1553
+ if (c === "shadow") return `--cer-shadow-color:${s};`;
1554
+ if (c === "ring") return `--cer-ring-color:${s};`;
1555
+ if (c === "divide") return `border-color:${s};`;
1556
+ if (c === "text-shadow") return `--cer-text-shadow-color:${s};`;
1557
+ const h = tr[c];
1558
+ return h ? `${h}:${s};` : null;
1700
1559
  }
1701
- function He(e) {
1702
- const t = e.indexOf("/");
1703
- if (t === -1) return { base: e };
1704
- const c = e.slice(0, t), o = e.slice(t + 1), r = parseInt(o, 10);
1705
- return isNaN(r) || r < 0 || r > 100 ? { base: c } : { base: c, opacity: r / 100 };
1560
+ function nr(e) {
1561
+ const r = e.indexOf("/");
1562
+ if (r === -1) return { base: e };
1563
+ const c = e.slice(0, r), a = e.slice(r + 1), t = parseInt(a, 10);
1564
+ return isNaN(t) || t < 0 || t > 100 ? { base: c } : { base: c, opacity: t / 100 };
1706
1565
  }
1707
- function me(e) {
1708
- const { base: t, opacity: c } = He(e), o = Ue(t);
1709
- if (o) {
1566
+ function be(e) {
1567
+ const { base: r, opacity: c } = nr(e), a = or(r);
1568
+ if (a) {
1710
1569
  if (c !== void 0) {
1711
- if (o.includes("var(")) {
1712
- const g = /var\([^)]*\)/.exec(o);
1713
- if (g) {
1714
- const w = g[0], s = c * 100, u = `color-mix(in srgb, ${w} ${s}%, rgba(0 0 0 / 0) ${100 - s}%)`, h = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(w), l = /^([a-z-]+):/.exec(o), b = l ? l[1] : "background-color";
1715
- if (h) {
1716
- const d = `rgb(${ue(h[0])} / ${c})`, f = w.replace(
1570
+ if (a.includes("var(")) {
1571
+ const h = /var\([^)]*\)/.exec(a);
1572
+ if (h) {
1573
+ const k = h[0], i = c * 100, d = `color-mix(in srgb, ${k} ${i}%, rgba(0 0 0 / 0) ${100 - i}%)`, u = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(k), l = /^([a-z-]+):/.exec(a), f = l ? l[1] : "background-color";
1574
+ if (u) {
1575
+ const g = `rgb(${ge(u[0])} / ${c})`, y = k.replace(
1717
1576
  /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1718
- d
1577
+ g
1719
1578
  );
1720
- return `${b}:${f};__CE_COLOR_MIX_SPLIT__${b}:${u};`;
1579
+ return `${f}:${y};__CE_COLOR_MIX_SPLIT__${f}:${d};`;
1721
1580
  }
1722
- return `${b}:${u};`;
1581
+ return `${f}:${d};`;
1723
1582
  }
1724
1583
  }
1725
- const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(o);
1726
- if (i) {
1727
- const g = ue(i[0]);
1728
- return o.replace(
1584
+ const s = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(a);
1585
+ if (s) {
1586
+ const h = ge(s[0]);
1587
+ return a.replace(
1729
1588
  /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1730
- `rgb(${g} / ${c})`
1589
+ `rgb(${h} / ${c})`
1731
1590
  );
1732
1591
  }
1733
1592
  }
1734
- return o;
1593
+ return a;
1735
1594
  }
1736
- const r = se(t);
1737
- if (r && c !== void 0) {
1738
- if (r.includes("var(")) {
1739
- const g = /var\([^)]*\)/.exec(r);
1740
- if (g) {
1741
- const w = g[0], s = c * 100, u = `color-mix(in srgb, ${w} ${s}%, rgba(0 0 0 / 0) ${100 - s}%)`, h = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(w), l = /^([a-z-]+):/.exec(r), b = l ? l[1] : null;
1742
- if (h && b) {
1743
- const d = `rgb(${ue(h[0])} / ${c})`, f = w.replace(
1595
+ const t = le(r);
1596
+ if (t && c !== void 0) {
1597
+ if (t.includes("var(")) {
1598
+ const h = /var\([^)]*\)/.exec(t);
1599
+ if (h) {
1600
+ const k = h[0], i = c * 100, d = `color-mix(in srgb, ${k} ${i}%, rgba(0 0 0 / 0) ${100 - i}%)`, u = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(k), l = /^([a-z-]+):/.exec(t), f = l ? l[1] : null;
1601
+ if (u && f) {
1602
+ const g = `rgb(${ge(u[0])} / ${c})`, y = k.replace(
1744
1603
  /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1745
- d
1604
+ g
1746
1605
  );
1747
- return `${b}:${f};__CE_COLOR_MIX_SPLIT__${b}:${u};`;
1606
+ return `${f}:${y};__CE_COLOR_MIX_SPLIT__${f}:${d};`;
1748
1607
  }
1749
- return r.replace(w, u);
1608
+ return t.replace(k, d);
1750
1609
  }
1751
1610
  }
1752
- const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(r);
1753
- if (i) {
1754
- const g = ue(i[0]);
1755
- return r.replace(
1611
+ const s = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(t);
1612
+ if (s) {
1613
+ const h = ge(s[0]);
1614
+ return t.replace(
1756
1615
  /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1757
- `rgb(${g} / ${c})`
1616
+ `rgb(${h} / ${c})`
1758
1617
  );
1759
1618
  }
1760
1619
  }
1761
- return r;
1620
+ return t;
1762
1621
  }
1763
- function be(e) {
1764
- const t = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
1765
- if (!t) return null;
1766
- const [, c, o, r = "DEFAULT"] = t, i = Te[o]?.[r];
1767
- if (!i) return null;
1622
+ function xe(e) {
1623
+ const r = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
1624
+ if (!r) return null;
1625
+ const [, c, a, t = "DEFAULT"] = r, s = re[a]?.[t];
1626
+ if (!s) return null;
1768
1627
  switch (c) {
1769
1628
  case "from":
1770
- return `--cer-gradient-from:${i} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;
1629
+ return `--cer-gradient-from:${s} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;
1771
1630
  case "to":
1772
- return `--cer-gradient-to:${i} var(--cer-gradient-to-position);`;
1631
+ return `--cer-gradient-to:${s} var(--cer-gradient-to-position);`;
1773
1632
  case "via":
1774
- return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${i} var(--cer-gradient-via-position), var(--cer-gradient-to);`;
1633
+ return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${s} var(--cer-gradient-via-position), var(--cer-gradient-to);`;
1775
1634
  default:
1776
1635
  return null;
1777
1636
  }
1778
1637
  }
1779
- function xe(e) {
1780
- const t = /^opacity-(\d{1,3})$/.exec(e);
1781
- if (!t) return null;
1782
- const c = parseInt(t[1], 10);
1638
+ function $e(e) {
1639
+ const r = /^opacity-(\d{1,3})$/.exec(e);
1640
+ if (!r) return null;
1641
+ const c = parseInt(r[1], 10);
1783
1642
  return c < 0 || c > 100 ? null : `opacity:${c / 100};`;
1784
1643
  }
1785
- function se(e) {
1644
+ function le(e) {
1786
1645
  if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
1787
- const g = e.slice(1, -1).trim(), w = g.indexOf(":");
1788
- if (w === -1) return null;
1789
- const s = g.slice(0, w).trim();
1790
- let u = g.slice(w + 1).trim();
1791
- return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(s) ? (u = u.replace(/_/g, " "), u = u.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), u = u.replace(/^'([^']*)'$/g, '"$1"'), `${s}:${u};`) : null;
1646
+ const h = e.slice(1, -1).trim(), k = h.indexOf(":");
1647
+ if (k === -1) return null;
1648
+ const i = h.slice(0, k).trim();
1649
+ let d = h.slice(k + 1).trim();
1650
+ return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(i) ? (d = d.replace(/_/g, " "), d = d.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), d = d.replace(/^'([^']*)'$/g, '"$1"'), `${i}:${d};`) : null;
1792
1651
  }
1793
- const t = e.indexOf("-[");
1794
- if (t <= 0 || !e.endsWith("]")) return null;
1795
- const c = e.slice(0, t), o = e.slice(t + 2, -1).replace(/_/g, " "), r = {
1652
+ const r = e.indexOf("-[");
1653
+ if (r <= 0 || !e.endsWith("]")) return null;
1654
+ const c = e.slice(0, r), a = e.slice(r + 2, -1).replace(/_/g, " "), t = {
1796
1655
  bg: "background-color",
1797
1656
  shadow: "box-shadow",
1798
1657
  p: "padding",
@@ -1833,83 +1692,98 @@ function se(e) {
1833
1692
  opacity: "opacity"
1834
1693
  };
1835
1694
  if (c === "text")
1836
- return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(o) ? `font-size:${o};` : `color:${o};`;
1837
- if (c === "rotate") return `transform:rotate(${o});`;
1838
- if (c === "scale") return `transform:scale(${o});`;
1839
- if (c === "translate-x") return `transform:translateX(${o});`;
1840
- if (c === "translate-y") return `transform:translateY(${o});`;
1841
- const i = r[c] ?? c.replace(/_/g, "-");
1842
- return i && o ? `${i}:${o};` : null;
1695
+ return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(a) ? `font-size:${a};` : `color:${a};`;
1696
+ if (c === "rotate") return `transform:rotate(${a});`;
1697
+ if (c === "scale") return `transform:scale(${a});`;
1698
+ if (c === "translate-x") return `transform:translateX(${a});`;
1699
+ if (c === "translate-y") return `transform:translateY(${a});`;
1700
+ const s = t[c] ?? c.replace(/_/g, "-");
1701
+ return s && a ? `${s}:${a};` : null;
1843
1702
  }
1844
- function ze(e) {
1703
+ function Ee(e) {
1845
1704
  if (e.startsWith("[") && e.endsWith("]")) {
1846
1705
  const c = e.slice(1, -1);
1847
1706
  return c.includes("&") ? c : e;
1848
1707
  }
1849
- const t = e.indexOf("-[");
1850
- if (t > 0 && e.endsWith("]")) {
1851
- const c = e.slice(t + 2, -1).replace(/_/g, "-");
1708
+ const r = e.indexOf("-[");
1709
+ if (r > 0 && e.endsWith("]")) {
1710
+ const c = e.slice(r + 2, -1).replace(/_/g, "-");
1852
1711
  return c.includes("&") ? c : e.replace(/_/g, "-");
1853
1712
  }
1854
1713
  return null;
1855
1714
  }
1856
- function ve(e) {
1857
- if (typeof CSS < "u" && CSS.escape)
1858
- return CSS.escape(e);
1859
- const t = String(e), c = t.length;
1860
- let o = "", r = 0;
1861
- for (; r < c; ) {
1862
- const i = t.charAt(r), g = t.charCodeAt(r);
1863
- g === 0 ? o += "�" : /* If the character is in the range [\1-\1f] (U+0001 to U+001F) or is U+007F */ g >= 1 && g <= 31 || g === 127 || // If the character is the first character and is in the range [0-9] (U+0030 to U+0039)
1864
- r === 0 && g >= 48 && g <= 57 || // If the character is the second character and is in the range [0-9] (U+0030 to U+0039) and the first character is a "-" (U+002D)
1865
- r === 1 && g >= 48 && g <= 57 && t.charCodeAt(0) === 45 ? o += "\\" + g.toString(16) + " " : /* If the character is the first character and is a "-" (U+002D), and there is no second character */ r === 0 && c === 1 && g === 45 ? o += "\\" + i : /* If the character is not handled by one of the above rules and is one of the following */ g >= 128 || g === 45 || // -
1866
- g === 95 || // _
1867
- g >= 48 && g <= 57 || // 0-9
1868
- g >= 65 && g <= 90 || // A-Z
1869
- g >= 97 && g <= 122 ? o += i : o += "\\" + i, r++;
1715
+ function sr(e) {
1716
+ const r = [];
1717
+ let c;
1718
+ for (Pe.lastIndex = 0; c = Pe.exec(e); ) {
1719
+ const a = c[2].split(/\s+/).filter(Boolean);
1720
+ a.length && r.push(...a);
1870
1721
  }
1871
- return o;
1872
- }
1873
- function ne(e) {
1874
- return "." + ve(e);
1722
+ return r;
1875
1723
  }
1876
- function Ke(e) {
1877
- return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1724
+ const Pe = /class\s*=\s*(['"])([\s\S]*?)\1/g, ar = {
1725
+ sm: 640,
1726
+ md: 768,
1727
+ lg: 1024,
1728
+ xl: 1280,
1729
+ "2xl": 1536
1730
+ }, ir = {
1731
+ xs: 320,
1732
+ sm: 384,
1733
+ md: 448,
1734
+ lg: 512,
1735
+ xl: 576,
1736
+ "2xl": 672,
1737
+ "3xl": 768,
1738
+ "4xl": 896,
1739
+ "5xl": 1024,
1740
+ "6xl": 1152,
1741
+ "7xl": 1280
1742
+ };
1743
+ function Re(e) {
1744
+ for (const [r, c] of Object.entries(ar))
1745
+ if (e.includes(`@media ${ce[r]}`)) return c;
1746
+ return -1;
1878
1747
  }
1879
- function Xe(e) {
1880
- const t = /class\s*=\s*(['"])([\s\S]*?)\1/g, c = [];
1881
- let o;
1882
- for (; o = t.exec(e); ) {
1883
- const r = o[2].split(/\s+/).filter(Boolean);
1884
- r.length && c.push(...r);
1748
+ function Me(e) {
1749
+ for (const [r, c] of Object.entries(ir))
1750
+ if (e.includes(`@container ${Ve[r]}`)) return c;
1751
+ if (e.includes("@container (min-width:")) {
1752
+ const r = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(
1753
+ e
1754
+ );
1755
+ if (r) {
1756
+ const c = parseFloat(r[1]), a = r[2];
1757
+ return a === "rem" || a === "em" ? c * 16 : c;
1758
+ }
1885
1759
  }
1886
- return c;
1760
+ return -1;
1887
1761
  }
1888
- const ae = /* @__PURE__ */ new Map(), Oe = 1e3;
1889
- function Qe(e) {
1890
- const t = ae.get(e);
1891
- if (t)
1892
- return t.css;
1893
- const c = Xe(e);
1894
- if (!c.length) return "";
1895
- const o = new Set(c), r = [[], [], [], []], i = {}, g = (d, f = !1) => {
1896
- const $ = f ? `dark|${d}` : d;
1897
- if ($ in i) return i[$];
1898
- const y = h(d, f);
1899
- return i[$] = y, y;
1900
- }, w = (d) => {
1901
- const f = d.some((j) => oe.includes(j)), $ = d.some(
1902
- (j) => j.startsWith("@") && (pe.includes(j.slice(1)) || j.match(/^@\[.+\]$/))
1903
- ), y = d.includes("dark");
1904
- return d.length ? !f && !y && !$ ? 1 : y && (f || $) ? 3 : 2 : 0;
1905
- }, s = (d) => {
1906
- const f = [];
1907
- let $ = "", y = 0;
1908
- for (let j = 0; j < d.length; j++) {
1909
- const k = d[j];
1910
- k === "[" || k === "(" ? y++ : (k === "]" || k === ")") && y--, k === ":" && y === 0 ? (f.push($), $ = "") : $ += k;
1762
+ const U = /* @__PURE__ */ new Map(), Ie = 1e3;
1763
+ function cr(e) {
1764
+ const r = sr(e);
1765
+ if (!r.length) return "";
1766
+ const c = new Set(r), a = Array.from(c).sort().join("\0"), t = U.get(a);
1767
+ if (t !== void 0)
1768
+ return U.delete(a), U.set(a, t), t;
1769
+ const s = [[], [], [], [], []], h = {}, k = (b, x = !1) => {
1770
+ const S = x ? `dark|${b}` : b;
1771
+ if (S in h) return h[S];
1772
+ const j = l(b, x);
1773
+ return h[S] = j, j;
1774
+ }, i = (b) => {
1775
+ const x = b.some((W) => ie.includes(W)), S = b.some(
1776
+ (W) => W.startsWith("@") && (ue.includes(W.slice(1)) || W.match(/^@\[.+\]$/))
1777
+ ), j = b.includes("dark");
1778
+ return b.length ? !x && !j && !S ? 1 : j && (x || S) ? 4 : j ? 3 : 2 : 0;
1779
+ }, d = (b) => {
1780
+ const x = [];
1781
+ let S = "", j = 0;
1782
+ for (let W = 0; W < b.length; W++) {
1783
+ const z = b[W];
1784
+ z === "[" || z === "(" ? j++ : (z === "]" || z === ")") && j--, z === ":" && j === 0 ? (x.push(S), S = "") : S += z;
1911
1785
  }
1912
- return $ && f.push($), f;
1786
+ return S && x.push(S), x;
1913
1787
  }, u = {
1914
1788
  hover: ":hover",
1915
1789
  focus: ":focus",
@@ -1923,204 +1797,206 @@ function Qe(e) {
1923
1797
  even: ":nth-child(even)",
1924
1798
  "focus-within": ":focus-within",
1925
1799
  "focus-visible": ":focus-visible"
1926
- }, h = (d, f = !1) => {
1927
- const $ = s(d);
1928
- let y = "", j = !1;
1929
- for (const a of $) {
1930
- let p = a;
1931
- if (p.startsWith("!") && (j = !0, p = p.slice(1)), p.endsWith("!") && (j = !0, p = p.slice(0, -1)), !(p.startsWith("data-[") && p.endsWith("]") || p.startsWith("has-[") && p.endsWith("]") || p.startsWith("not-[") && p.endsWith("]") || p.startsWith("in-[") && p.endsWith("]") || p.startsWith("supports-[") && p.endsWith("]") || p === "starting") && (fe[p] || ge(p) || he(p) || xe(p) || me(p) || be(p) || se(p))) {
1932
- y = a;
1800
+ }, l = (b, x = !1) => {
1801
+ const S = d(b);
1802
+ let j = "", W = !1;
1803
+ for (const o of S) {
1804
+ let p = o;
1805
+ if (p.startsWith("!") && (W = !0, p = p.slice(1)), p.endsWith("!") && (W = !0, p = p.slice(0, -1)), !(p.startsWith("data-[") && p.endsWith("]") || p.startsWith("has-[") && p.endsWith("]") || p.startsWith("not-[") && p.endsWith("]") || p.startsWith("in-[") && p.endsWith("]") || p.startsWith("supports-[") && p.endsWith("]") || p === "starting") && (me[p] || fe(p) || he(p) || $e(p) || be(p) || xe(p) || le(p))) {
1806
+ j = o;
1933
1807
  break;
1934
1808
  }
1935
1809
  }
1936
- if (!y) return null;
1937
- const k = y.replace(/^!/, "").replace(/!$/, ""), _ = fe[k] ?? ge(k) ?? he(k) ?? xe(k) ?? me(k) ?? be(k) ?? se(k);
1938
- if (!_) return null;
1939
- const P = $.indexOf(y);
1940
- let T = P >= 0 ? $.slice(0, P) : [];
1941
- f && (T = T.filter((a) => a !== "dark"));
1942
- const z = ne(d), W = j ? _.replace(/;/g, " !important;") : _, x = "__SUBJECT__";
1943
- let m = x;
1944
- const C = [];
1945
- for (const a of T)
1946
- a.startsWith("group-") ? (m = `.group:${a.slice(6)} ${m}`, C.push(a)) : a.startsWith("peer-") && (m = m.replace(
1947
- x,
1948
- `.peer:${a.slice(5)}~${x}`
1949
- ), C.push(a));
1950
- T = T.filter((a) => !C.includes(a));
1951
- const E = [], L = [];
1952
- let R = null, F = !1;
1953
- const I = [];
1954
- for (const a of T) {
1955
- if (a === "dark" || oe.includes(a) || a.startsWith("@") && (pe.includes(a.slice(1)) || a.match(/^@\[.+\]$/)))
1810
+ if (!j) return null;
1811
+ const z = j.replace(/^!/, "").replace(/!$/, ""), q = me[z] ?? fe(z) ?? he(z) ?? $e(z) ?? be(z) ?? xe(z) ?? le(z);
1812
+ if (!q) return null;
1813
+ const te = S.indexOf(j);
1814
+ let T = te >= 0 ? S.slice(0, te) : [];
1815
+ x && (T = T.filter((o) => o !== "dark"));
1816
+ const ke = ae(b), Y = W ? q.replace(/;/g, " !important;") : q, w = "__SUBJECT__";
1817
+ let m = w;
1818
+ const F = [];
1819
+ for (const o of T)
1820
+ o.startsWith("group-") ? (m = `.group:${o.slice(6)} ${m}`, F.push(o)) : o.startsWith("peer-") && (m = m.replace(
1821
+ w,
1822
+ `.peer:${o.slice(5)}~${w}`
1823
+ ), F.push(o));
1824
+ T = T.filter((o) => !F.includes(o));
1825
+ const R = [], J = [];
1826
+ let A = null, X = !1;
1827
+ const Q = [];
1828
+ for (const o of T) {
1829
+ if (o === "dark" || ie.includes(o) || o.startsWith("@") && (ue.includes(o.slice(1)) || o.match(/^@\[.+\]$/)))
1956
1830
  continue;
1957
- if (a.startsWith("data-[") && a.endsWith("]")) {
1958
- const v = a.slice(6, -1), M = v.includes("=") ? "[data-" + v.replace(/^([^=]+)=(.+)$/, '$1="$2"') + "]" : "[data-" + v + "]";
1959
- E.push(M);
1831
+ if (o.startsWith("data-[") && o.endsWith("]")) {
1832
+ const $ = o.slice(6, -1), P = $.includes("=") ? "[data-" + $.replace(/^([^=]+)=(.+)$/, '$1="$2"') + "]" : "[data-" + $ + "]";
1833
+ R.push(P);
1960
1834
  continue;
1961
1835
  }
1962
- if (a.startsWith("has-[") && a.endsWith("]")) {
1963
- const v = a.slice(5, -1).replace(/_/g, " ");
1964
- E.push(`:has(${v})`);
1836
+ if (o.startsWith("has-[") && o.endsWith("]")) {
1837
+ const $ = o.slice(5, -1).replace(/_/g, " ");
1838
+ R.push(`:has(${$})`);
1965
1839
  continue;
1966
1840
  }
1967
- if (a.startsWith("not-[") && a.endsWith("]")) {
1968
- const v = a.slice(5, -1).replace(/_/g, " ");
1969
- E.push(`:not(${v})`);
1841
+ if (o.startsWith("not-[") && o.endsWith("]")) {
1842
+ const $ = o.slice(5, -1).replace(/_/g, " ");
1843
+ R.push(`:not(${$})`);
1970
1844
  continue;
1971
1845
  }
1972
- if (a.startsWith("in-[") && a.endsWith("]")) {
1973
- m = ":is(" + a.slice(4, -1).replace(/_/g, " ") + ") " + m;
1846
+ if (o.startsWith("in-[") && o.endsWith("]")) {
1847
+ m = ":is(" + o.slice(4, -1).replace(/_/g, " ") + ") " + m;
1974
1848
  continue;
1975
1849
  }
1976
- if (a === "starting") {
1977
- F = !0;
1850
+ if (o === "starting") {
1851
+ X = !0;
1978
1852
  continue;
1979
1853
  }
1980
- if (a.startsWith("supports-[") && a.endsWith("]")) {
1981
- I.push(a);
1854
+ if (o.startsWith("supports-[") && o.endsWith("]")) {
1855
+ Q.push(o);
1982
1856
  continue;
1983
1857
  }
1984
- const p = ze(a);
1858
+ const p = Ee(o);
1985
1859
  if (p) {
1986
- R = p;
1860
+ A = p;
1987
1861
  continue;
1988
1862
  }
1989
- const O = u[a];
1990
- if (O) {
1991
- R ? L.push(O) : E.push(O);
1863
+ const C = u[o];
1864
+ if (C) {
1865
+ A ? J.push(C) : R.push(C);
1992
1866
  continue;
1993
1867
  }
1994
- const A = je[a];
1995
- typeof A == "function" && (m = A(m, W).split("{")[0]);
1868
+ const O = _e[o];
1869
+ typeof O == "function" && (m = O(m, Y).split("{")[0]);
1996
1870
  }
1997
- const N = E.join(""), V = L.join("");
1998
- function ee(a, p) {
1999
- if (!p) return a;
2000
- let O = 0, A = 0;
2001
- if (a.length && (a[0] === ">" || a[0] === "+" || a[0] === "~" || a[0] === " ")) {
2002
- let v = 1;
2003
- for (; v < a.length && a[v] === " "; ) v++;
2004
- for (; v < a.length; v++) {
2005
- const M = a[v];
2006
- if (M === "[" ? O++ : M === "]" && O > 0 ? O-- : M === "(" ? A++ : M === ")" && A > 0 && A--, O === 0 && A === 0 && (a[v] === ">" || a[v] === "+" || a[v] === "~" || a[v] === " "))
2007
- return a.slice(0, v) + p + a.slice(v);
1871
+ const oe = R.join(""), L = J.join("");
1872
+ function ne(o, p) {
1873
+ if (!p) return o;
1874
+ let C = 0, O = 0;
1875
+ if (o.length && (o[0] === ">" || o[0] === "+" || o[0] === "~" || o[0] === " ")) {
1876
+ let $ = 1;
1877
+ for (; $ < o.length && o[$] === " "; ) $++;
1878
+ for (; $ < o.length; $++) {
1879
+ const P = o[$];
1880
+ if (P === "[" ? C++ : P === "]" && C > 0 ? C-- : P === "(" ? O++ : P === ")" && O > 0 && O--, C === 0 && O === 0 && (o[$] === ">" || o[$] === "+" || o[$] === "~" || o[$] === " "))
1881
+ return o.slice(0, $) + p + o.slice($);
2008
1882
  }
2009
- return a + p;
1883
+ return o + p;
2010
1884
  }
2011
- for (let v = 0; v < a.length; v++) {
2012
- const M = a[v];
2013
- if (M === "[" ? O++ : M === "]" && O > 0 ? O-- : M === "(" ? A++ : M === ")" && A > 0 && A--, O === 0 && A === 0 && (M === ">" || M === "+" || M === "~" || M === " "))
2014
- return a.slice(0, v) + p + a.slice(v);
1885
+ for (let $ = 0; $ < o.length; $++) {
1886
+ const P = o[$];
1887
+ if (P === "[" ? C++ : P === "]" && C > 0 ? C-- : P === "(" ? O++ : P === ")" && O > 0 && O--, C === 0 && O === 0 && (P === ">" || P === "+" || P === "~" || P === " "))
1888
+ return o.slice(0, $) + p + o.slice($);
2015
1889
  }
2016
- return a + p;
1890
+ return o + p;
2017
1891
  }
2018
- if (R)
2019
- if (R.includes("&")) {
2020
- const a = R.indexOf("&"), p = R.slice(0, a), O = R.slice(a + 1), A = x + N;
2021
- if (E.length === 0)
1892
+ if (A)
1893
+ if (A.includes("&")) {
1894
+ const o = A.indexOf("&"), p = A.slice(0, o), C = A.slice(o + 1), O = w + oe;
1895
+ if (R.length === 0)
2022
1896
  m = m.replace(
2023
- x,
2024
- p + A + V + O
1897
+ w,
1898
+ p + O + L + C
2025
1899
  );
2026
1900
  else {
2027
- const v = ee(O, V);
1901
+ const $ = ne(C, L);
2028
1902
  m = m.replace(
2029
- x,
2030
- p + A + v
1903
+ w,
1904
+ p + O + $
2031
1905
  );
2032
1906
  }
2033
1907
  } else
2034
1908
  m = m.replace(
2035
- x,
2036
- `${R}${x + N}`
2037
- ), V && (m = m.replace(x, `${x}${V}`));
1909
+ w,
1910
+ `${A}${w + oe}`
1911
+ ), L && (m = m.replace(w, `${w}${L}`));
2038
1912
  else
2039
1913
  m = m.replace(
2040
- x,
2041
- x + N + V
1914
+ w,
1915
+ w + oe + L
2042
1916
  );
2043
- m = m.replace(new RegExp(x, "g"), z);
2044
- const J = "__CE_COLOR_MIX_SPLIT__", ce = W.includes(J) ? W.split(J).map((a) => `${m}{${a}}`) : [`${m}{${W}}`], H = T.filter(
2045
- (a) => oe.includes(a)
2046
- ), K = T.filter(
2047
- (a) => a.startsWith("@") && (pe.includes(a.slice(1)) || a.match(/^@\[.+\]$/))
2048
- ), Y = H.length ? H[H.length - 1] : null, S = K.length ? K[K.length - 1] : null, le = T.includes("dark");
2049
- let U = "", X = "";
2050
- if (le && Y ? U = `@media (prefers-color-scheme: dark) and ${te[Y]}` : le ? U = "@media (prefers-color-scheme: dark)" : Y && (U = `@media ${te[Y]}`), S)
2051
- if (S.startsWith("@[") && S.endsWith("]")) {
2052
- const a = S.slice(2, -1);
2053
- if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(a))
1917
+ m = m.replace(new RegExp(w, "g"), ke);
1918
+ const ee = "__CE_COLOR_MIX_SPLIT__", pe = Y.includes(ee) ? Y.split(ee).map((o) => `${m}{${o}}`) : [`${m}{${Y}}`], V = T.filter(
1919
+ (o) => ie.includes(o)
1920
+ ), D = T.filter(
1921
+ (o) => o.startsWith("@") && (ue.includes(o.slice(1)) || o.match(/^@\[.+\]$/))
1922
+ ), Z = V.length ? V[V.length - 1] : null, v = D.length ? D[D.length - 1] : null, se = T.includes("dark"), K = H.disableVariants ?? [];
1923
+ if (K.length > 0 && (K.includes("dark") && se || K.includes("responsive") && V.length > 0 || K.includes("container") && D.length > 0 || K.includes("motion") && T.some((o) => o === "motion-reduce" || o === "motion-safe") || K.includes("print") && T.includes("print")))
1924
+ return null;
1925
+ let N = "", E = "";
1926
+ if (se && Z ? N = `@media (prefers-color-scheme: dark) and ${ce[Z]}` : se ? N = "@media (prefers-color-scheme: dark)" : Z && (N = `@media ${ce[Z]}`), v)
1927
+ if (v.startsWith("@[") && v.endsWith("]")) {
1928
+ const o = v.slice(2, -1);
1929
+ if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(o))
2054
1930
  return null;
2055
- X = `@container (min-width:${a})`;
1931
+ E = `@container (min-width:${o})`;
2056
1932
  } else {
2057
- const a = S.slice(1);
2058
- X = `@container ${Ce[a] || `(min-width:${a})`}`;
1933
+ const o = v.slice(1);
1934
+ E = `@container ${Ve[o] || `(min-width:${o})`}`;
2059
1935
  }
2060
- let D = "";
2061
- if (I.length > 0) {
2062
- const p = I[I.length - 1].slice(10, -1).replace(/_/g, " ");
2063
- D = `@supports ${p.startsWith("not(") || p.startsWith("selector(") || p.startsWith("(") ? p : `(${p})`}`;
1936
+ let M = "";
1937
+ if (Q.length > 0) {
1938
+ const p = Q[Q.length - 1].slice(10, -1).replace(/_/g, " ");
1939
+ M = `@supports ${p.startsWith("not(") || p.startsWith("selector(") || p.startsWith("(") ? p : `(${p})`}`;
2064
1940
  }
2065
- const B = (a) => {
2066
- let p = a;
2067
- return F && (p = `@starting-style{${p}}`), D && (p = `${D}{${p}}`), U && X ? `${U}${X}{${p}}` : U ? `${U}{${p}}` : X ? `${X}{${p}}` : p;
1941
+ const _ = (o) => {
1942
+ let p = o;
1943
+ return X && (p = `@starting-style{${p}}`), M && (p = `${M}{${p}}`), N && E ? `${N}${E}{${p}}` : N ? `${N}{${p}}` : E ? `${E}{${p}}` : p;
2068
1944
  };
2069
- return ce.map(B).join("");
1945
+ return pe.map(_).join("");
2070
1946
  };
2071
- for (const d of o) {
2072
- const f = s(d), $ = f.slice(0, -1), y = f[f.length - 1];
2073
- if (Ne(y) !== null) {
2074
- if ($.length === 0)
2075
- r[0].push(`${ne(d)}{}`);
1947
+ for (const b of c) {
1948
+ const x = d(b), S = x.slice(0, -1), j = x[x.length - 1];
1949
+ if (er(j) !== null) {
1950
+ if (S.length === 0)
1951
+ s[0].push(`${ae(b)}{}`);
2076
1952
  else {
2077
- const x = Ae(y);
2078
- if (!x) continue;
2079
- const m = ne(d), C = ne(y);
2080
- let E = x.replace(
2081
- new RegExp(Ke(C), "g"),
1953
+ const w = Te(j);
1954
+ if (!w) continue;
1955
+ const m = ae(b), F = ae(j);
1956
+ let R = w.replace(
1957
+ new RegExp(De(F), "g"),
2082
1958
  m
2083
1959
  );
2084
- const L = $.filter(
2085
- (F) => oe.includes(F)
1960
+ const J = S.filter(
1961
+ (X) => ie.includes(X)
2086
1962
  );
2087
- if (L.length > 0) {
2088
- const F = L[L.length - 1];
2089
- E = `${`@media ${te[F]}`}{${E}}`;
1963
+ if (J.length > 0) {
1964
+ const X = J[J.length - 1];
1965
+ R = `${`@media ${ce[X]}`}{${R}}`;
2090
1966
  }
2091
- $.includes("dark") && (E = `@media (prefers-color-scheme: dark){${E}}`);
2092
- const R = w($);
2093
- r[R].push(E);
1967
+ S.includes("dark") && (R = `@media (prefers-color-scheme: dark){${R}}`);
1968
+ const A = i(S);
1969
+ s[A].push(R);
2094
1970
  }
2095
1971
  continue;
2096
1972
  }
2097
- let k = -1;
2098
- for (let x = f.length - 1; x >= 0; x--) {
2099
- const m = f.slice(x).join(":");
2100
- if (Se(m)) {
2101
- k = x;
1973
+ let z = -1;
1974
+ for (let w = x.length - 1; w >= 0; w--) {
1975
+ const m = x.slice(w).join(":");
1976
+ if (We(m)) {
1977
+ z = w;
2102
1978
  break;
2103
1979
  }
2104
1980
  }
2105
- if (k >= 0) {
2106
- const x = f.slice(k).join(":"), m = f.slice(0, k), C = Se(x);
2107
- if (!C) continue;
1981
+ if (z >= 0) {
1982
+ const w = x.slice(z).join(":"), m = x.slice(0, z), F = We(w);
1983
+ if (!F) continue;
2108
1984
  if (m.length === 0) {
2109
- r[0].push(C);
1985
+ s[0].push(F);
2110
1986
  continue;
2111
1987
  }
2112
- const E = ve(d), L = ve(x), R = C.replace(
1988
+ const R = Se(b), J = Se(w), A = F.replace(
2113
1989
  new RegExp(
2114
- `\\.${L.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`,
1990
+ `\\.${J.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`,
2115
1991
  "g"
2116
1992
  ),
2117
- `.${E}`
2118
- ), F = /(.+?)\s+(.+?)\{([^}]+)\}/g, I = [...R.matchAll(F)];
2119
- if (I.length === 0) {
2120
- r[0].push(C);
1993
+ `.${R}`
1994
+ ), X = /(.+?)\s+(.+?)\{([^}]+)\}/g, Q = [...A.matchAll(X)];
1995
+ if (Q.length === 0) {
1996
+ s[0].push(F);
2121
1997
  continue;
2122
1998
  }
2123
- const N = w(m), V = {
1999
+ const oe = i(m), L = {
2124
2000
  hover: ":hover",
2125
2001
  focus: ":focus",
2126
2002
  active: ":active",
@@ -2133,42 +2009,42 @@ function Qe(e) {
2133
2009
  even: ":nth-child(even)",
2134
2010
  "focus-within": ":focus-within",
2135
2011
  "focus-visible": ":focus-visible"
2136
- }, ee = [], J = [], ce = [], H = [], K = [];
2137
- let Y = !1;
2138
- for (const S of m)
2139
- S.startsWith("group-") || S.startsWith("peer-") ? ee.push(S) : S === "dark" || S === "dark-class" ? Y = !0 : oe.includes(S) ? H.push(S) : S.startsWith("@") && (pe.includes(S.slice(1)) || S.match(/^@\[.+\]$/)) ? K.push(S) : S.startsWith("[") && S.endsWith("]") ? ce.push(S) : (V[S] || je[S]) && J.push(S);
2140
- for (const S of I) {
2141
- const [, le, U, X] = S;
2142
- let D = `${le} ${U}`;
2143
- for (const a of ee)
2144
- if (a.startsWith("group-")) {
2145
- const p = a.slice(6);
2146
- D = `.group${V[p] || `:${p}`} ${D}`;
2147
- } else if (a.startsWith("peer-")) {
2148
- const p = a.slice(5);
2149
- D = `.peer${V[p] || `:${p}`}~${D}`;
2012
+ }, ne = [], ee = [], pe = [], V = [], D = [];
2013
+ let Z = !1;
2014
+ for (const v of m)
2015
+ v.startsWith("group-") || v.startsWith("peer-") ? ne.push(v) : v === "dark" || v === "dark-class" ? Z = !0 : ie.includes(v) ? V.push(v) : v.startsWith("@") && (ue.includes(v.slice(1)) || v.match(/^@\[.+\]$/)) ? D.push(v) : v.startsWith("[") && v.endsWith("]") ? pe.push(v) : (L[v] || _e[v]) && ee.push(v);
2016
+ for (const v of Q) {
2017
+ const [, se, K, N] = v;
2018
+ let E = `${se} ${K}`;
2019
+ for (const _ of ne)
2020
+ if (_.startsWith("group-")) {
2021
+ const o = _.slice(6);
2022
+ E = `.group${L[o] || `:${o}`} ${E}`;
2023
+ } else if (_.startsWith("peer-")) {
2024
+ const o = _.slice(5);
2025
+ E = `.peer${L[o] || `:${o}`}~${E}`;
2150
2026
  }
2151
- if (J.length > 0) {
2152
- const a = J.map((p) => V[p] || `:${p}`).join("");
2153
- D = `${D}${a}`;
2027
+ if (ee.length > 0) {
2028
+ const _ = ee.map((o) => L[o] || `:${o}`).join("");
2029
+ E = `${E}${_}`;
2154
2030
  }
2155
- for (const a of ce) {
2156
- const p = ze(a);
2157
- if (p && p.includes("&")) {
2158
- const O = p.indexOf("&"), A = p.slice(0, O), v = p.slice(O + 1);
2159
- D = `${A}${D}${v}`;
2031
+ for (const _ of pe) {
2032
+ const o = Ee(_);
2033
+ if (o && o.includes("&")) {
2034
+ const p = o.indexOf("&"), C = o.slice(0, p), O = o.slice(p + 1);
2035
+ E = `${C}${E}${O}`;
2160
2036
  }
2161
2037
  }
2162
- let B = `${D}{${X}}`;
2163
- if (Y && (B = `@media (prefers-color-scheme: dark){${B}}`), K.length > 0) {
2164
- const a = K[K.length - 1];
2165
- if (a.startsWith("@[") && a.endsWith("]")) {
2166
- const p = a.slice(2, -1);
2038
+ let M = `${E}{${N}}`;
2039
+ if (Z && (M = `@media (prefers-color-scheme: dark){${M}}`), D.length > 0) {
2040
+ const _ = D[D.length - 1];
2041
+ if (_.startsWith("@[") && _.endsWith("]")) {
2042
+ const o = _.slice(2, -1);
2167
2043
  /^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(
2168
- p
2169
- ) && (B = `@container (min-width:${p}){${B}}`);
2044
+ o
2045
+ ) && (M = `@container (min-width:${o}){${M}}`);
2170
2046
  } else {
2171
- const p = a.slice(1), A = {
2047
+ const o = _.slice(1), C = {
2172
2048
  xs: "20rem",
2173
2049
  sm: "24rem",
2174
2050
  md: "28rem",
@@ -2180,385 +2056,69 @@ function Qe(e) {
2180
2056
  "5xl": "64rem",
2181
2057
  "6xl": "72rem",
2182
2058
  "7xl": "80rem"
2183
- }[p];
2184
- if (A) {
2185
- const v = d.match(/@([^/]+)\//)?.[1] || "";
2186
- B = v ? `@container ${v} (min-width: ${A}){${B}}` : `@container (min-width: ${A}){${B}}`;
2059
+ }[o];
2060
+ if (C) {
2061
+ const O = b.match(/@([^/]+)\//)?.[1] || "";
2062
+ M = O ? `@container ${O} (min-width: ${C}){${M}}` : `@container (min-width: ${C}){${M}}`;
2187
2063
  }
2188
2064
  }
2189
2065
  }
2190
- if (H.length > 0) {
2191
- const a = H[H.length - 1];
2192
- B = `${`@media ${te[a]}`}{${B}}`;
2066
+ if (V.length > 0) {
2067
+ const _ = V[V.length - 1];
2068
+ M = `${`@media ${ce[_]}`}{${M}}`;
2193
2069
  }
2194
- r[N].push(B);
2070
+ s[oe].push(M);
2195
2071
  }
2196
2072
  continue;
2197
2073
  }
2198
- const _ = f.find((x) => {
2199
- const m = x.replace(/^!/, "").replace(/!$/, "");
2200
- return fe[m] || ge(m) || he(m) || xe(m) || me(m) || be(m) || se(m);
2074
+ const q = x.find((w) => {
2075
+ const m = w.replace(/^!/, "").replace(/!$/, "");
2076
+ return me[m] || fe(m) || he(m) || $e(m) || be(m) || xe(m) || le(m);
2201
2077
  });
2202
- if (!_) continue;
2203
- const P = f.indexOf(_), T = P >= 0 ? f.slice(0, P) : [], z = w(T), W = g(d);
2204
- W && r[z].push(W);
2078
+ if (!q) continue;
2079
+ const te = x.indexOf(q), T = te >= 0 ? x.slice(0, te) : [], ke = i(T), Y = k(b);
2080
+ Y && s[ke].push(Y);
2205
2081
  }
2206
- const l = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
2207
- for (const d of o)
2208
- if (l.test(d)) {
2209
- if (r.flat().join("").includes(ne(d))) continue;
2210
- const $ = g(d);
2211
- $ && r[0].push($);
2082
+ const f = /^(from|via|to)-[a-z]+-?\d{2,3}?$/, n = s.flat().join("");
2083
+ for (const b of c)
2084
+ if (f.test(b)) {
2085
+ if (n.includes(ae(b))) continue;
2086
+ const x = k(b);
2087
+ x && s[0].push(x);
2212
2088
  }
2213
- const b = (d) => d.sort((f, $) => {
2214
- const y = (z) => {
2215
- const W = {
2216
- sm: 640,
2217
- md: 768,
2218
- lg: 1024,
2219
- xl: 1280,
2220
- "2xl": 1536
2221
- };
2222
- for (const [x, m] of Object.entries(W))
2223
- if (z.includes(`@media ${te[x]}`)) return m;
2224
- return -1;
2225
- }, j = (z) => {
2226
- const W = {
2227
- xs: 320,
2228
- // 20rem
2229
- sm: 384,
2230
- // 24rem
2231
- md: 448,
2232
- // 28rem
2233
- lg: 512,
2234
- // 32rem
2235
- xl: 576,
2236
- // 36rem
2237
- "2xl": 672,
2238
- // 42rem
2239
- "3xl": 768,
2240
- // 48rem
2241
- "4xl": 896,
2242
- // 56rem
2243
- "5xl": 1024,
2244
- // 64rem
2245
- "6xl": 1152,
2246
- // 72rem
2247
- "7xl": 1280
2248
- // 80rem
2249
- };
2250
- for (const [x, m] of Object.entries(W))
2251
- if (z.includes(`@container ${Ce[x]}`)) return m;
2252
- if (z.includes("@container (min-width:")) {
2253
- const x = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(z);
2254
- if (x) {
2255
- const m = parseFloat(x[1]), C = x[2];
2256
- return C === "rem" || C === "em" ? m * 16 : m;
2257
- }
2258
- }
2259
- return -1;
2260
- }, k = y(f), _ = y($), P = j(f), T = j($);
2261
- return k >= 0 && _ >= 0 && k !== _ ? k - _ : P >= 0 && T >= 0 && P !== T ? P - T : 0;
2089
+ const g = (b) => b.sort((x, S) => {
2090
+ const j = Re(x), W = Re(S), z = Me(x), q = Me(S);
2091
+ return j >= 0 && W >= 0 && j !== W ? j - W : z >= 0 && q >= 0 && z !== q ? z - q : 0;
2262
2092
  });
2263
- r[2] = b(r[2]), r[3] = b(r[3]);
2264
- const n = r.flat().join("");
2265
- return ae.size >= Oe && Array.from(ae.keys()).slice(
2266
- 0,
2267
- Math.floor(Oe / 2)
2268
- ).forEach((f) => ae.delete(f)), ae.set(e, { css: n, timestamp: Date.now() }), n;
2269
- }
2270
- const ie = {
2271
- /** Simple fade in/out */
2272
- fade: {
2273
- enterFrom: "opacity-0",
2274
- enterActive: "transition-opacity duration-300 ease-out",
2275
- enterTo: "opacity-100",
2276
- leaveFrom: "opacity-100",
2277
- leaveActive: "transition-opacity duration-200 ease-in",
2278
- leaveTo: "opacity-0"
2279
- },
2280
- /** Slide in from right */
2281
- "slide-right": {
2282
- enterFrom: "translate-x-[100%] opacity-0",
2283
- enterActive: "transition-all duration-300 ease-out",
2284
- enterTo: "translate-x-[0%] opacity-100",
2285
- leaveFrom: "translate-x-[0%] opacity-100",
2286
- leaveActive: "transition-all duration-200 ease-in",
2287
- leaveTo: "translate-x-[100%] opacity-0"
2288
- },
2289
- /** Slide in from left */
2290
- "slide-left": {
2291
- enterFrom: "translate-x-[-100%] opacity-0",
2292
- enterActive: "transition-all duration-300 ease-out",
2293
- enterTo: "translate-x-[0%] opacity-100",
2294
- leaveFrom: "translate-x-[0%] opacity-100",
2295
- leaveActive: "transition-all duration-200 ease-in",
2296
- leaveTo: "translate-x-[-100%] opacity-0"
2297
- },
2298
- /** Slide up from bottom */
2299
- "slide-up": {
2300
- enterFrom: "translate-y-[100%] opacity-0",
2301
- enterActive: "transition-all duration-300 ease-out",
2302
- enterTo: "translate-y-[0%] opacity-100",
2303
- leaveFrom: "translate-y-[0%] opacity-100",
2304
- leaveActive: "transition-all duration-200 ease-in",
2305
- leaveTo: "translate-y-[100%] opacity-0"
2306
- },
2307
- /** Slide down from top */
2308
- "slide-down": {
2309
- enterFrom: "translate-y-[-100%] opacity-0",
2310
- enterActive: "transition-all duration-300 ease-out",
2311
- enterTo: "translate-y-[0%] opacity-100",
2312
- leaveFrom: "translate-y-[0%] opacity-100",
2313
- leaveActive: "transition-all duration-200 ease-in",
2314
- leaveTo: "translate-y-[-100%] opacity-0"
2315
- },
2316
- /** Scale up from center */
2317
- scale: {
2318
- enterFrom: "scale-95 opacity-0",
2319
- enterActive: "transition-all duration-200 ease-out",
2320
- enterTo: "scale-100 opacity-100",
2321
- leaveFrom: "scale-100 opacity-100",
2322
- leaveActive: "transition-all duration-150 ease-in",
2323
- leaveTo: "scale-95 opacity-0"
2324
- },
2325
- /** Scale down to center */
2326
- "scale-down": {
2327
- enterFrom: "scale-105 opacity-0",
2328
- enterActive: "transition-all duration-200 ease-out",
2329
- enterTo: "scale-100 opacity-100",
2330
- leaveFrom: "scale-100 opacity-100",
2331
- leaveActive: "transition-all duration-150 ease-in",
2332
- leaveTo: "scale-105 opacity-0"
2333
- },
2334
- /** Bounce effect */
2335
- bounce: {
2336
- enterFrom: "scale-0 opacity-0",
2337
- enterActive: "transition-all duration-500 ease-out",
2338
- enterTo: "scale-100 opacity-100",
2339
- leaveFrom: "scale-100 opacity-100",
2340
- leaveActive: "transition-all duration-200 ease-in",
2341
- leaveTo: "scale-0 opacity-0"
2342
- },
2343
- /** Zoom and fade */
2344
- zoom: {
2345
- enterFrom: "scale-0 opacity-0",
2346
- enterActive: "transition-all duration-300 ease-out",
2347
- enterTo: "scale-100 opacity-100",
2348
- leaveFrom: "scale-100 opacity-100",
2349
- leaveActive: "transition-all duration-200 ease-in",
2350
- leaveTo: "scale-0 opacity-0"
2351
- },
2352
- /** Flip in */
2353
- flip: {
2354
- enterFrom: "rotate-[90deg] opacity-0",
2355
- enterActive: "transition-all duration-400 ease-out",
2356
- enterTo: "rotate-[0deg] opacity-100",
2357
- leaveFrom: "rotate-[0deg] opacity-100",
2358
- leaveActive: "transition-all duration-300 ease-in",
2359
- leaveTo: "rotate-[90deg] opacity-0"
2360
- }
2361
- };
2362
- function rr(e, t) {
2363
- const {
2364
- preset: c,
2365
- show: o,
2366
- mode: r = "default",
2367
- duration: i,
2368
- appear: g = !1,
2369
- css: w = !0,
2370
- name: s,
2371
- enterFrom: u,
2372
- enterActive: h,
2373
- enterTo: l,
2374
- leaveFrom: b,
2375
- leaveActive: n,
2376
- leaveTo: d,
2377
- onBeforeEnter: f,
2378
- onEnter: $,
2379
- onAfterEnter: y,
2380
- onEnterCancelled: j,
2381
- onBeforeLeave: k,
2382
- onLeave: _,
2383
- onAfterLeave: P,
2384
- onLeaveCancelled: T
2385
- } = e;
2386
- let z;
2387
- c && ie[c] ? (z = { ...ie[c] }, u && (z.enterFrom = u), h && (z.enterActive = h), l && (z.enterTo = l), b && (z.leaveFrom = b), n && (z.leaveActive = n), d && (z.leaveTo = d)) : z = {
2388
- enterFrom: u,
2389
- enterActive: h,
2390
- enterTo: l,
2391
- leaveFrom: b,
2392
- leaveActive: n,
2393
- leaveTo: d
2394
- };
2395
- const W = o && typeof t == "function" ? t() : t, x = s || (c ? `transition-${c}` : "transition"), m = Fe(
2396
- o ? W : [],
2397
- x
2398
- );
2399
- return m._transition = {
2400
- name: x,
2401
- classes: z,
2402
- mode: r,
2403
- duration: i,
2404
- appear: g,
2405
- css: w,
2406
- state: o ? "visible" : "hidden",
2407
- hooks: {
2408
- onBeforeEnter: f,
2409
- onEnter: $,
2410
- onAfterEnter: y,
2411
- onEnterCancelled: j,
2412
- onBeforeLeave: k,
2413
- onLeave: _,
2414
- onAfterLeave: P,
2415
- onLeaveCancelled: T
2416
- }
2417
- }, m;
2418
- }
2419
- function tr(e, t) {
2420
- const {
2421
- tag: c = "div",
2422
- moveClass: o = "transition-transform duration-300",
2423
- preset: r,
2424
- show: i = !0,
2425
- mode: g = "default",
2426
- duration: w,
2427
- appear: s = !1,
2428
- css: u = !0,
2429
- name: h,
2430
- class: l,
2431
- style: b,
2432
- enterFrom: n,
2433
- enterActive: d,
2434
- enterTo: f,
2435
- leaveFrom: $,
2436
- leaveActive: y,
2437
- leaveTo: j,
2438
- onBeforeEnter: k,
2439
- onEnter: _,
2440
- onAfterEnter: P,
2441
- onEnterCancelled: T,
2442
- onBeforeLeave: z,
2443
- onLeave: W,
2444
- onAfterLeave: x,
2445
- onLeaveCancelled: m
2446
- } = e;
2447
- let C;
2448
- r && ie[r] ? (C = { ...ie[r] }, n && (C.enterFrom = n), d && (C.enterActive = d), f && (C.enterTo = f), $ && (C.leaveFrom = $), y && (C.leaveActive = y), j && (C.leaveTo = j)) : C = {
2449
- enterFrom: n,
2450
- enterActive: d,
2451
- enterTo: f,
2452
- leaveFrom: $,
2453
- leaveActive: y,
2454
- leaveTo: j
2455
- };
2456
- const E = h || (r ? `transition-group-${r}` : "transition-group"), L = [];
2457
- for (const F of i ? t : [])
2458
- if (F && typeof F == "object" && F.tag === "#anchor") {
2459
- const I = Array.isArray(F.children) ? F.children : [];
2460
- for (const N of I)
2461
- if (N && typeof N == "object") {
2462
- const V = {
2463
- ...N,
2464
- key: F.key || N.key,
2465
- props: {
2466
- ...N.props,
2467
- _anchorKey: F.key
2468
- // Preserve original anchor key
2469
- }
2470
- };
2471
- L.push(V);
2472
- } else
2473
- L.push(N);
2474
- } else
2475
- L.push(F);
2476
- const R = (() => {
2477
- if (b)
2478
- return typeof b == "string" ? b : Object.entries(b).map(([F, I]) => `${F}: ${I}`).join("; ");
2479
- })();
2480
- return {
2481
- tag: c,
2482
- children: L,
2483
- key: E,
2484
- props: {
2485
- attrs: {
2486
- ...l ? { class: l } : {},
2487
- ...R ? { style: R } : {}
2488
- },
2489
- _transitionGroup: {
2490
- name: E,
2491
- classes: C,
2492
- moveClass: o,
2493
- mode: g,
2494
- duration: w,
2495
- appear: s,
2496
- css: u,
2497
- hooks: {
2498
- onBeforeEnter: k,
2499
- onEnter: _,
2500
- onAfterEnter: P,
2501
- onEnterCancelled: T,
2502
- onBeforeLeave: z,
2503
- onLeave: W,
2504
- onAfterLeave: x,
2505
- onLeaveCancelled: m
2506
- }
2507
- }
2508
- }
2509
- };
2510
- }
2511
- function or(e) {
2512
- return { ...e };
2513
- }
2514
- let Z = null;
2515
- function Ge() {
2516
- if (!Z) {
2517
- if (typeof CSSStyleSheet > "u")
2518
- return Z = {
2519
- cssRules: [],
2520
- replaceSync: () => {
2521
- },
2522
- toString: () => ""
2523
- }, Z;
2524
- const e = [];
2525
- Object.values(ie).forEach((o) => {
2526
- o.enterFrom && e.push(o.enterFrom), o.enterActive && e.push(o.enterActive), o.enterTo && e.push(o.enterTo), o.leaveFrom && e.push(o.leaveFrom), o.leaveActive && e.push(o.leaveActive), o.leaveTo && e.push(o.leaveTo);
2527
- });
2528
- const t = `<div class="${e.join(" ")}"></div>`, c = Qe(t);
2529
- try {
2530
- Z = new CSSStyleSheet(), Z.replaceSync(c);
2531
- } catch {
2532
- Z = {
2533
- cssRules: [],
2534
- replaceSync: () => {
2535
- },
2536
- toString: () => c || ""
2537
- };
2093
+ s[2] = g(s[2]), s[4] = g(s[4]);
2094
+ const y = s.flat().join("");
2095
+ if (U.size >= Ie) {
2096
+ let b = Math.floor(Ie / 2);
2097
+ for (const x of U.keys()) {
2098
+ if (b-- === 0) break;
2099
+ U.delete(x);
2538
2100
  }
2539
2101
  }
2540
- return Z;
2541
- }
2542
- function Ye() {
2543
- if (!(typeof window > "u" || typeof CSSStyleSheet > "u"))
2544
- try {
2545
- Ge();
2546
- } catch {
2547
- }
2102
+ return U.set(a, y), y;
2548
2103
  }
2549
- Ye();
2550
2104
  export {
2551
- rr as T,
2552
- Je as a,
2553
- Ge as b,
2554
- _e as c,
2555
- ke as d,
2556
- tr as e,
2557
- or as f,
2558
- Pe as g,
2559
- Qe as j,
2560
- ye as m,
2561
- er as s,
2562
- ie as t
2105
+ Ve as a,
2106
+ sr as b,
2107
+ qe as c,
2108
+ mr as d,
2109
+ gr as e,
2110
+ Ge as f,
2111
+ fr as g,
2112
+ or as h,
2113
+ pr as i,
2114
+ cr as j,
2115
+ be as k,
2116
+ xe as l,
2117
+ ce as m,
2118
+ fe as n,
2119
+ le as p,
2120
+ ur as r,
2121
+ _e as s,
2122
+ me as u
2563
2123
  };
2564
- //# sourceMappingURL=transitions-DMJXs_tY.js.map
2124
+ //# sourceMappingURL=style-BmyOIMcU.js.map