@jasonshimmy/custom-elements-runtime 2.2.5 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/custom-elements-runtime.cjs.js +12 -11
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +1612 -1581
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
- package/dist/custom-elements-runtime.ssr.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.ssr.es.js +29 -10
- package/dist/custom-elements-runtime.ssr.es.js.map +1 -1
- package/dist/custom-elements-runtime.transitions.cjs.js +1 -1
- package/dist/custom-elements-runtime.transitions.es.js +3 -3
- package/dist/runtime/prose.d.ts +15 -0
- package/dist/runtime/render.d.ts +10 -0
- package/dist/runtime/style.d.ts +19 -1
- package/dist/style.css +1 -1
- package/dist/transitions-CZ21fzhh.js +2120 -0
- package/dist/transitions-CZ21fzhh.js.map +1 -0
- package/dist/transitions-RXe2brRm.cjs +302 -0
- package/dist/transitions-RXe2brRm.cjs.map +1 -0
- package/dist/variables.css +1 -1
- package/package.json +2 -3
- package/dist/prose.css +0 -1
- package/dist/transitions-DCIjMqzG.js +0 -1607
- package/dist/transitions-DCIjMqzG.js.map +0 -1
- package/dist/transitions-DHQuI3AY.cjs +0 -237
- package/dist/transitions-DHQuI3AY.cjs.map +0 -1
|
@@ -0,0 +1,2120 @@
|
|
|
1
|
+
import { anchorBlock as Fe } from "./custom-elements-runtime.directives.es.js";
|
|
2
|
+
const Ee = {
|
|
3
|
+
base: {
|
|
4
|
+
fontSize: "1rem",
|
|
5
|
+
lineHeight: "1.75",
|
|
6
|
+
p: "1.25em",
|
|
7
|
+
lead: "1.25em",
|
|
8
|
+
h1: "2.25em",
|
|
9
|
+
h2: "1.5em",
|
|
10
|
+
h3: "1.25em",
|
|
11
|
+
h4: "1em",
|
|
12
|
+
blockquote: "1.6em",
|
|
13
|
+
figure: "2em",
|
|
14
|
+
code: "0.875em",
|
|
15
|
+
pre: "0.875em",
|
|
16
|
+
ol: "1.25em",
|
|
17
|
+
ul: "1.25em",
|
|
18
|
+
li: "0.5em",
|
|
19
|
+
hr: "3em",
|
|
20
|
+
table: "2em"
|
|
21
|
+
},
|
|
22
|
+
sm: {
|
|
23
|
+
fontSize: "0.875rem",
|
|
24
|
+
lineHeight: "1.7142857",
|
|
25
|
+
p: "1.1428571em",
|
|
26
|
+
lead: "1.1428571em",
|
|
27
|
+
h1: "2.1428571em",
|
|
28
|
+
h2: "1.4285714em",
|
|
29
|
+
h3: "1.2857143em",
|
|
30
|
+
h4: "1em",
|
|
31
|
+
blockquote: "1.4285714em",
|
|
32
|
+
figure: "1.7142857em",
|
|
33
|
+
code: "0.8571429em",
|
|
34
|
+
pre: "0.8571429em",
|
|
35
|
+
ol: "1.1428571em",
|
|
36
|
+
ul: "1.1428571em",
|
|
37
|
+
li: "0.4285714em",
|
|
38
|
+
hr: "2.5714286em",
|
|
39
|
+
table: "1.7142857em"
|
|
40
|
+
},
|
|
41
|
+
lg: {
|
|
42
|
+
fontSize: "1.125rem",
|
|
43
|
+
lineHeight: "1.7777778",
|
|
44
|
+
p: "1.3333333em",
|
|
45
|
+
lead: "1.3333333em",
|
|
46
|
+
h1: "2.6666667em",
|
|
47
|
+
h2: "1.7777778em",
|
|
48
|
+
h3: "1.5555556em",
|
|
49
|
+
h4: "1.1111111em",
|
|
50
|
+
blockquote: "1.7777778em",
|
|
51
|
+
figure: "2.2222222em",
|
|
52
|
+
code: "0.8888889em",
|
|
53
|
+
pre: "0.8888889em",
|
|
54
|
+
ol: "1.3333333em",
|
|
55
|
+
ul: "1.3333333em",
|
|
56
|
+
li: "0.5555556em",
|
|
57
|
+
hr: "3.3333333em",
|
|
58
|
+
table: "2.2222222em"
|
|
59
|
+
},
|
|
60
|
+
xl: {
|
|
61
|
+
fontSize: "1.25rem",
|
|
62
|
+
lineHeight: "1.8",
|
|
63
|
+
p: "1.4em",
|
|
64
|
+
lead: "1.4em",
|
|
65
|
+
h1: "2.8em",
|
|
66
|
+
h2: "1.8em",
|
|
67
|
+
h3: "1.6em",
|
|
68
|
+
h4: "1.2em",
|
|
69
|
+
blockquote: "1.8em",
|
|
70
|
+
figure: "2.4em",
|
|
71
|
+
code: "0.9em",
|
|
72
|
+
pre: "0.9em",
|
|
73
|
+
ol: "1.4em",
|
|
74
|
+
ul: "1.4em",
|
|
75
|
+
li: "0.6em",
|
|
76
|
+
hr: "3.6em",
|
|
77
|
+
table: "2.4em"
|
|
78
|
+
},
|
|
79
|
+
"2xl": {
|
|
80
|
+
fontSize: "1.5rem",
|
|
81
|
+
lineHeight: "1.6666667",
|
|
82
|
+
p: "1.3333333em",
|
|
83
|
+
lead: "1.3333333em",
|
|
84
|
+
h1: "2.6666667em",
|
|
85
|
+
h2: "1.7777778em",
|
|
86
|
+
h3: "1.5555556em",
|
|
87
|
+
h4: "1.2222222em",
|
|
88
|
+
blockquote: "1.7777778em",
|
|
89
|
+
figure: "2.2222222em",
|
|
90
|
+
code: "0.8333333em",
|
|
91
|
+
pre: "0.8333333em",
|
|
92
|
+
ol: "1.3333333em",
|
|
93
|
+
ul: "1.3333333em",
|
|
94
|
+
li: "0.5555556em",
|
|
95
|
+
hr: "3.1111111em",
|
|
96
|
+
table: "2.2222222em"
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
function Ae(e) {
|
|
100
|
+
const o = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
|
|
101
|
+
if (!o) return null;
|
|
102
|
+
const a = o[1] || "base", t = Ee[a], 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:${t.fontSize};line-height:${t.lineHeight};max-width:65ch;}`
|
|
105
|
+
), i.push(
|
|
106
|
+
`${r} p:not(.not-prose):not(.not-prose *){margin:${t.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:${t.lead};margin-bottom:${t.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:${t.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:${t.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:${t.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:${t.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:${t.ol};margin-bottom:${t.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:${t.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:${t.ul};margin-bottom:${t.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:${t.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:${t.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:${t.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:${t.ol};margin-bottom:${t.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:${t.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:${t.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:${t.blockquote};margin-bottom:${t.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:${t.hr};margin-bottom:${t.hr};}`
|
|
173
|
+
), i.push(
|
|
174
|
+
`${r} figure:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.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:${t.figure};margin-bottom:${t.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:${t.table};margin-bottom:${t.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("");
|
|
196
|
+
}
|
|
197
|
+
const Oe = {
|
|
198
|
+
headings: "h1,h2,h3,h4,h5,h6,th",
|
|
199
|
+
h1: "h1",
|
|
200
|
+
h2: "h2",
|
|
201
|
+
h3: "h3",
|
|
202
|
+
h4: "h4",
|
|
203
|
+
h5: "h5",
|
|
204
|
+
h6: "h6",
|
|
205
|
+
p: "p",
|
|
206
|
+
a: "a",
|
|
207
|
+
blockquote: "blockquote",
|
|
208
|
+
figure: "figure",
|
|
209
|
+
figcaption: "figcaption",
|
|
210
|
+
strong: "strong",
|
|
211
|
+
em: "em",
|
|
212
|
+
kbd: "kbd",
|
|
213
|
+
code: "code",
|
|
214
|
+
pre: "pre",
|
|
215
|
+
ol: "ol",
|
|
216
|
+
ul: "ul",
|
|
217
|
+
li: "li",
|
|
218
|
+
dl: "dl",
|
|
219
|
+
dt: "dt",
|
|
220
|
+
dd: "dd",
|
|
221
|
+
table: "table",
|
|
222
|
+
thead: "thead",
|
|
223
|
+
tbody: "tbody",
|
|
224
|
+
tr: "tr",
|
|
225
|
+
th: "th",
|
|
226
|
+
td: "td",
|
|
227
|
+
img: "img",
|
|
228
|
+
picture: "picture",
|
|
229
|
+
video: "video",
|
|
230
|
+
hr: "hr",
|
|
231
|
+
lead: '[class~="lead"]'
|
|
232
|
+
};
|
|
233
|
+
function Re(e, o, a, t, r, i, l, $) {
|
|
234
|
+
const n = e.match(/^prose-([a-z0-9]+):(.+)$/);
|
|
235
|
+
if (!n) return null;
|
|
236
|
+
const [, c, f] = n, j = Oe[c];
|
|
237
|
+
if (!j) return null;
|
|
238
|
+
const y = o[f] ?? a(f) ?? t(f) ?? r(f) ?? i(f) ?? l(f) ?? $(f);
|
|
239
|
+
if (!y) return null;
|
|
240
|
+
const F = ve(e);
|
|
241
|
+
return j.split(",").map((g) => {
|
|
242
|
+
const h = g.trim();
|
|
243
|
+
return `${`.${F} ${h}:not(.not-prose):not(.not-prose *)`}{${y}}`;
|
|
244
|
+
}).join("");
|
|
245
|
+
}
|
|
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, ...o) {
|
|
377
|
+
let a = "";
|
|
378
|
+
for (let t = 0; t < e.length; t++)
|
|
379
|
+
a += e[t], t < o.length && (a += o[t]);
|
|
380
|
+
return a;
|
|
381
|
+
}
|
|
382
|
+
function we(e) {
|
|
383
|
+
return e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/\s*([{}:;,>+~])\s*/g, "$1").replace(/;}/g, "}").trim();
|
|
384
|
+
}
|
|
385
|
+
let ee = null;
|
|
386
|
+
function Ye() {
|
|
387
|
+
return ee || (typeof CSSStyleSheet > "u" ? ee = {
|
|
388
|
+
cssRules: [],
|
|
389
|
+
replaceSync: () => {
|
|
390
|
+
},
|
|
391
|
+
toString: () => we(ye)
|
|
392
|
+
} : (ee = new CSSStyleSheet(), ee.replaceSync(we(ye)))), ee;
|
|
393
|
+
}
|
|
394
|
+
let U = null;
|
|
395
|
+
const be = /* @__PURE__ */ new Set();
|
|
396
|
+
let ce = "";
|
|
397
|
+
function Pe() {
|
|
398
|
+
if (be.size === 0) return null;
|
|
399
|
+
U || (typeof CSSStyleSheet > "u" ? U = {
|
|
400
|
+
cssRules: [],
|
|
401
|
+
replaceSync: () => {
|
|
402
|
+
},
|
|
403
|
+
toString: () => ce
|
|
404
|
+
} : (U = new CSSStyleSheet(), U.toString = () => ce));
|
|
405
|
+
let e = "";
|
|
406
|
+
for (const o of be) {
|
|
407
|
+
const a = Ae(o);
|
|
408
|
+
a && (e += a);
|
|
409
|
+
}
|
|
410
|
+
if (ce = we(e), typeof U.replaceSync == "function" && e)
|
|
411
|
+
try {
|
|
412
|
+
U.replaceSync(ce);
|
|
413
|
+
} catch {
|
|
414
|
+
}
|
|
415
|
+
return U;
|
|
416
|
+
}
|
|
417
|
+
function We(e) {
|
|
418
|
+
const o = !be.has(e);
|
|
419
|
+
be.add(e), o && U && Pe();
|
|
420
|
+
}
|
|
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, "");
|
|
423
|
+
}
|
|
424
|
+
const ye = _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
|
+
}
|
|
441
|
+
:host {
|
|
442
|
+
display: contents;
|
|
443
|
+
font: 16px/1.5 var(--cer-font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
444
|
+
/* Default CE line-height variable so leading-* can reliably override */
|
|
445
|
+
--cer-line-height: 1.5;
|
|
446
|
+
-webkit-text-size-adjust: 100%;
|
|
447
|
+
text-size-adjust: 100%;
|
|
448
|
+
-webkit-font-smoothing: antialiased;
|
|
449
|
+
-moz-osx-font-smoothing: grayscale;
|
|
450
|
+
/* Default gradient variables to avoid undefined var() usage in generated utilities */
|
|
451
|
+
--cer-gradient-from-position: 0%;
|
|
452
|
+
--cer-gradient-to-position: 100%;
|
|
453
|
+
--cer-gradient-via-position: 50%;
|
|
454
|
+
--cer-gradient-from: rgba(255, 255, 255, 0);
|
|
455
|
+
--cer-gradient-to: rgba(255, 255, 255, 0);
|
|
456
|
+
--cer-gradient-stops: var(--cer-gradient-from), var(--cer-gradient-to);
|
|
457
|
+
/* Default outline style variable */
|
|
458
|
+
--cer-outline-style: solid;
|
|
459
|
+
}
|
|
460
|
+
button,
|
|
461
|
+
input,
|
|
462
|
+
select,
|
|
463
|
+
textarea {
|
|
464
|
+
background: transparent;
|
|
465
|
+
outline: none;
|
|
466
|
+
}
|
|
467
|
+
textarea {
|
|
468
|
+
resize: vertical;
|
|
469
|
+
}
|
|
470
|
+
progress {
|
|
471
|
+
vertical-align: baseline;
|
|
472
|
+
}
|
|
473
|
+
button,
|
|
474
|
+
textarea {
|
|
475
|
+
overflow: visible;
|
|
476
|
+
}
|
|
477
|
+
img,
|
|
478
|
+
svg,
|
|
479
|
+
video,
|
|
480
|
+
canvas,
|
|
481
|
+
audio,
|
|
482
|
+
iframe,
|
|
483
|
+
embed,
|
|
484
|
+
object {
|
|
485
|
+
display: block;
|
|
486
|
+
max-width: 100%;
|
|
487
|
+
height: auto;
|
|
488
|
+
}
|
|
489
|
+
svg {
|
|
490
|
+
fill: currentColor;
|
|
491
|
+
stroke: none;
|
|
492
|
+
}
|
|
493
|
+
a {
|
|
494
|
+
text-decoration: inherit;
|
|
495
|
+
cursor: pointer;
|
|
496
|
+
}
|
|
497
|
+
button,
|
|
498
|
+
[type='button'],
|
|
499
|
+
[type='reset'],
|
|
500
|
+
[type='submit'] {
|
|
501
|
+
cursor: pointer;
|
|
502
|
+
appearance: button;
|
|
503
|
+
background: none;
|
|
504
|
+
-webkit-user-select: none;
|
|
505
|
+
user-select: none;
|
|
506
|
+
}
|
|
507
|
+
::-webkit-input-placeholder,
|
|
508
|
+
::placeholder {
|
|
509
|
+
color: inherit;
|
|
510
|
+
opacity: 0.5;
|
|
511
|
+
}
|
|
512
|
+
*:focus-visible {
|
|
513
|
+
outline: 2px solid var(--cer-color-primary-500, #3b82f6);
|
|
514
|
+
outline-offset: 2px;
|
|
515
|
+
}
|
|
516
|
+
ol,
|
|
517
|
+
ul {
|
|
518
|
+
list-style: none;
|
|
519
|
+
}
|
|
520
|
+
table {
|
|
521
|
+
border-collapse: collapse;
|
|
522
|
+
}
|
|
523
|
+
sub,
|
|
524
|
+
sup {
|
|
525
|
+
font-size: 0.75em;
|
|
526
|
+
line-height: 0;
|
|
527
|
+
position: relative;
|
|
528
|
+
}
|
|
529
|
+
sub {
|
|
530
|
+
bottom: -0.25em;
|
|
531
|
+
}
|
|
532
|
+
sup {
|
|
533
|
+
top: -0.5em;
|
|
534
|
+
}
|
|
535
|
+
[disabled],
|
|
536
|
+
[aria-disabled='true'] {
|
|
537
|
+
cursor: not-allowed;
|
|
538
|
+
}
|
|
539
|
+
[hidden] {
|
|
540
|
+
display: none;
|
|
541
|
+
}
|
|
542
|
+
`, Le = {
|
|
543
|
+
// Existing semantic colors
|
|
544
|
+
neutral: {
|
|
545
|
+
50: "#fafafa",
|
|
546
|
+
100: "#f4f4f5",
|
|
547
|
+
200: "#e4e4e7",
|
|
548
|
+
300: "#d4d4d8",
|
|
549
|
+
400: "#9f9fa9",
|
|
550
|
+
500: "#71717b",
|
|
551
|
+
600: "#52525c",
|
|
552
|
+
700: "#3f3f46",
|
|
553
|
+
800: "#27272a",
|
|
554
|
+
900: "#18181b",
|
|
555
|
+
950: "#09090b"
|
|
556
|
+
},
|
|
557
|
+
primary: {
|
|
558
|
+
50: "#eff6ff",
|
|
559
|
+
100: "#dbeafe",
|
|
560
|
+
200: "#bfdbfe",
|
|
561
|
+
300: "#93c5fd",
|
|
562
|
+
400: "#60a5fa",
|
|
563
|
+
500: "#3b82f6",
|
|
564
|
+
600: "#2563eb",
|
|
565
|
+
700: "#1d4ed8",
|
|
566
|
+
800: "#1e40af",
|
|
567
|
+
900: "#1e3a8a",
|
|
568
|
+
950: "#172554"
|
|
569
|
+
},
|
|
570
|
+
secondary: {
|
|
571
|
+
50: "#eef2ff",
|
|
572
|
+
100: "#e0e7ff",
|
|
573
|
+
200: "#c7d2fe",
|
|
574
|
+
300: "#a5b4fc",
|
|
575
|
+
400: "#818cf8",
|
|
576
|
+
500: "#6366f1",
|
|
577
|
+
600: "#4f46e5",
|
|
578
|
+
700: "#4338ca",
|
|
579
|
+
800: "#3730a3",
|
|
580
|
+
900: "#312e81",
|
|
581
|
+
950: "#1e1b4b"
|
|
582
|
+
},
|
|
583
|
+
success: {
|
|
584
|
+
50: "#f0fdf4",
|
|
585
|
+
100: "#dcfce7",
|
|
586
|
+
200: "#bbf7d0",
|
|
587
|
+
300: "#86efac",
|
|
588
|
+
400: "#4ade80",
|
|
589
|
+
500: "#22c55e",
|
|
590
|
+
600: "#16a34a",
|
|
591
|
+
700: "#15803d",
|
|
592
|
+
800: "#166534",
|
|
593
|
+
900: "#14532d",
|
|
594
|
+
950: "#052e16"
|
|
595
|
+
},
|
|
596
|
+
info: {
|
|
597
|
+
50: "#f0f9ff",
|
|
598
|
+
100: "#e0f2fe",
|
|
599
|
+
200: "#bae6fd",
|
|
600
|
+
300: "#7dd3fc",
|
|
601
|
+
400: "#38bdf8",
|
|
602
|
+
500: "#0ea5e9",
|
|
603
|
+
600: "#0284c7",
|
|
604
|
+
700: "#0369a1",
|
|
605
|
+
800: "#075985",
|
|
606
|
+
900: "#0c4a6e",
|
|
607
|
+
950: "#082f49"
|
|
608
|
+
},
|
|
609
|
+
warning: {
|
|
610
|
+
50: "#fffbeb",
|
|
611
|
+
100: "#fef3c7",
|
|
612
|
+
200: "#fde68a",
|
|
613
|
+
300: "#fcd34d",
|
|
614
|
+
400: "#fbbf24",
|
|
615
|
+
500: "#f59e0b",
|
|
616
|
+
600: "#d97706",
|
|
617
|
+
700: "#b45309",
|
|
618
|
+
800: "#92400e",
|
|
619
|
+
900: "#78350f",
|
|
620
|
+
950: "#451a03"
|
|
621
|
+
},
|
|
622
|
+
error: {
|
|
623
|
+
50: "#fef2f2",
|
|
624
|
+
100: "#fee2e2",
|
|
625
|
+
200: "#fecaca",
|
|
626
|
+
300: "#fca5a5",
|
|
627
|
+
400: "#f87171",
|
|
628
|
+
500: "#ef4444",
|
|
629
|
+
600: "#dc2626",
|
|
630
|
+
700: "#b91c1c",
|
|
631
|
+
800: "#991b1b",
|
|
632
|
+
900: "#7f1d1d",
|
|
633
|
+
950: "#450a0a"
|
|
634
|
+
},
|
|
635
|
+
// Special colors
|
|
636
|
+
white: { DEFAULT: "#ffffff" },
|
|
637
|
+
black: { DEFAULT: "#000000" },
|
|
638
|
+
transparent: { DEFAULT: "transparent" },
|
|
639
|
+
current: { DEFAULT: "currentColor" }
|
|
640
|
+
}, ze = Object.fromEntries(
|
|
641
|
+
Object.entries(Le).map(([e, o]) => [
|
|
642
|
+
e,
|
|
643
|
+
Object.fromEntries(
|
|
644
|
+
Object.entries(o).map(([a, t]) => [
|
|
645
|
+
a,
|
|
646
|
+
`var(--cer-color-${e}${a === "DEFAULT" ? "" : `-${a}`}, ${t})`
|
|
647
|
+
])
|
|
648
|
+
)
|
|
649
|
+
])
|
|
650
|
+
), K = "0.25rem", De = {
|
|
651
|
+
"3xs": 64,
|
|
652
|
+
"2xs": 72,
|
|
653
|
+
xs: 80,
|
|
654
|
+
sm: 96,
|
|
655
|
+
md: 112,
|
|
656
|
+
lg: 128,
|
|
657
|
+
xl: 144,
|
|
658
|
+
"2xl": 168,
|
|
659
|
+
"3xl": 192,
|
|
660
|
+
"4xl": 224,
|
|
661
|
+
"5xl": 256,
|
|
662
|
+
"6xl": 288,
|
|
663
|
+
"7xl": 320
|
|
664
|
+
}, xe = {
|
|
665
|
+
m: ["margin"],
|
|
666
|
+
mx: ["margin-inline"],
|
|
667
|
+
my: ["margin-block"],
|
|
668
|
+
mt: ["margin-top"],
|
|
669
|
+
mr: ["margin-right"],
|
|
670
|
+
mb: ["margin-bottom"],
|
|
671
|
+
ml: ["margin-left"],
|
|
672
|
+
p: ["padding"],
|
|
673
|
+
px: ["padding-inline"],
|
|
674
|
+
py: ["padding-block"],
|
|
675
|
+
pt: ["padding-top"],
|
|
676
|
+
pr: ["padding-right"],
|
|
677
|
+
pb: ["padding-bottom"],
|
|
678
|
+
pl: ["padding-left"],
|
|
679
|
+
inset: ["inset"],
|
|
680
|
+
"inset-x": ["inset-inline"],
|
|
681
|
+
"inset-y": ["inset-block"],
|
|
682
|
+
h: ["height"],
|
|
683
|
+
w: ["width"],
|
|
684
|
+
"min-h": ["min-height"],
|
|
685
|
+
"min-w": ["min-width"],
|
|
686
|
+
"max-h": ["max-height"],
|
|
687
|
+
"max-w": ["max-width"],
|
|
688
|
+
top: ["top"],
|
|
689
|
+
bottom: ["bottom"],
|
|
690
|
+
left: ["left"],
|
|
691
|
+
right: ["right"],
|
|
692
|
+
gap: ["gap"],
|
|
693
|
+
"gap-x": ["column-gap"],
|
|
694
|
+
"gap-y": ["row-gap"]
|
|
695
|
+
}, qe = () => {
|
|
696
|
+
const e = {};
|
|
697
|
+
e["@container"] = "container-type:inline-size;", [
|
|
698
|
+
"block",
|
|
699
|
+
"inline",
|
|
700
|
+
"inline-block",
|
|
701
|
+
"flex",
|
|
702
|
+
"inline-flex",
|
|
703
|
+
"grid",
|
|
704
|
+
"inline-grid",
|
|
705
|
+
"table",
|
|
706
|
+
"table-cell",
|
|
707
|
+
"table-row",
|
|
708
|
+
"hidden"
|
|
709
|
+
].forEach((n) => {
|
|
710
|
+
e[n] = n === "hidden" ? "display:none;" : `display:${n};`;
|
|
711
|
+
}), ["absolute", "relative", "fixed", "sticky", "static"].forEach((n) => {
|
|
712
|
+
e[n] = `position:${n};`;
|
|
713
|
+
}), Object.assign(e, {
|
|
714
|
+
"items-center": "align-items:center;",
|
|
715
|
+
"items-start": "align-items:flex-start;",
|
|
716
|
+
"items-end": "align-items:flex-end;",
|
|
717
|
+
"items-baseline": "align-items:baseline;",
|
|
718
|
+
"items-stretch": "align-items:stretch;",
|
|
719
|
+
"justify-center": "justify-content:center;",
|
|
720
|
+
"justify-start": "justify-content:flex-start;",
|
|
721
|
+
"justify-between": "justify-content:space-between;",
|
|
722
|
+
"justify-around": "justify-content:space-around;",
|
|
723
|
+
"justify-evenly": "justify-content:space-evenly;",
|
|
724
|
+
"justify-end": "justify-content:flex-end;",
|
|
725
|
+
"flex-wrap": "flex-wrap:wrap;",
|
|
726
|
+
"flex-nowrap": "flex-wrap:nowrap;",
|
|
727
|
+
"flex-wrap-reverse": "flex-wrap:wrap-reverse;",
|
|
728
|
+
"content-center": "align-content:center;",
|
|
729
|
+
"content-start": "align-content:flex-start;",
|
|
730
|
+
"content-end": "align-content:flex-end;",
|
|
731
|
+
"content-between": "align-content:space-between;",
|
|
732
|
+
"content-around": "align-content:space-around;",
|
|
733
|
+
"content-evenly": "align-content:space-evenly;",
|
|
734
|
+
"content-stretch": "align-content:stretch;",
|
|
735
|
+
"self-auto": "align-self:auto;",
|
|
736
|
+
"self-start": "align-self:flex-start;",
|
|
737
|
+
"self-end": "align-self:flex-end;",
|
|
738
|
+
"self-center": "align-self:center;",
|
|
739
|
+
"self-stretch": "align-self:stretch;",
|
|
740
|
+
"flex-col": "flex-direction:column;",
|
|
741
|
+
"flex-row": "flex-direction:row;",
|
|
742
|
+
"flex-col-reverse": "flex-direction:column-reverse;",
|
|
743
|
+
"flex-row-reverse": "flex-direction:row-reverse;",
|
|
744
|
+
"flex-1": "flex:1 1 0%;",
|
|
745
|
+
"flex-auto": "flex:1 1 auto;",
|
|
746
|
+
"flex-initial": "flex:0 1 auto;",
|
|
747
|
+
"flex-none": "flex:0 0 auto;",
|
|
748
|
+
grow: "flex-grow:1;",
|
|
749
|
+
shrink: "flex-shrink:1;",
|
|
750
|
+
"grow-0": "flex-grow:0;",
|
|
751
|
+
"shrink-0": "flex-shrink:0;"
|
|
752
|
+
});
|
|
753
|
+
for (let n = 1; n <= 12; n++)
|
|
754
|
+
e[`grid-cols-${n}`] = `grid-template-columns:repeat(${n},minmax(0,1fr));`, e[`grid-rows-${n}`] = `grid-template-rows:repeat(${n},minmax(0,1fr));`, e[`col-span-${n}`] = `grid-column:span ${n} / span ${n};`, e[`row-span-${n}`] = `grid-row:span ${n} / span ${n};`, e[`col-start-${n}`] = `grid-column-start:${n};`, e[`col-end-${n}`] = `grid-column-end:${n};`, e[`row-start-${n}`] = `grid-row-start:${n};`, e[`row-end-${n}`] = `grid-row-end:${n};`;
|
|
755
|
+
Object.assign(e, {
|
|
756
|
+
"grid-cols-none": "grid-template-columns:none;",
|
|
757
|
+
"grid-rows-none": "grid-template-rows:none;",
|
|
758
|
+
"col-span-full": "grid-column:1 / -1;",
|
|
759
|
+
"row-span-full": "grid-row:1 / -1;",
|
|
760
|
+
"auto-cols-auto": "grid-auto-columns:auto;",
|
|
761
|
+
"auto-cols-min": "grid-auto-columns:min-content;",
|
|
762
|
+
"auto-cols-max": "grid-auto-columns:max-content;",
|
|
763
|
+
"auto-cols-fr": "grid-auto-columns:1fr;",
|
|
764
|
+
"auto-rows-auto": "grid-auto-rows:auto;",
|
|
765
|
+
"auto-rows-min": "grid-auto-rows:min-content;",
|
|
766
|
+
"auto-rows-max": "grid-auto-rows:max-content;",
|
|
767
|
+
"auto-rows-fr": "grid-auto-rows:1fr;",
|
|
768
|
+
"grid-flow-row": "grid-auto-flow:row;",
|
|
769
|
+
"grid-flow-col": "grid-auto-flow:column;",
|
|
770
|
+
"grid-flow-row-dense": "grid-auto-flow:row dense;",
|
|
771
|
+
"grid-flow-col-dense": "grid-auto-flow:column dense;"
|
|
772
|
+
}), Object.assign(e, {
|
|
773
|
+
"text-left": "text-align:left;",
|
|
774
|
+
"text-center": "text-align:center;",
|
|
775
|
+
"text-right": "text-align:right;",
|
|
776
|
+
"text-justify": "text-align:justify;",
|
|
777
|
+
"font-thin": "font-weight:100;",
|
|
778
|
+
"font-extralight": "font-weight:200;",
|
|
779
|
+
"font-light": "font-weight:300;",
|
|
780
|
+
"font-normal": "font-weight:400;",
|
|
781
|
+
"font-medium": "font-weight:500;",
|
|
782
|
+
"font-semibold": "font-weight:600;",
|
|
783
|
+
"font-bold": "font-weight:700;",
|
|
784
|
+
"font-extrabold": "font-weight:800;",
|
|
785
|
+
"font-black": "font-weight:900;",
|
|
786
|
+
italic: "font-style:italic;",
|
|
787
|
+
"not-italic": "font-style:normal;",
|
|
788
|
+
uppercase: "text-transform:uppercase;",
|
|
789
|
+
lowercase: "text-transform:lowercase;",
|
|
790
|
+
capitalize: "text-transform:capitalize;",
|
|
791
|
+
"normal-case": "text-transform:none;",
|
|
792
|
+
underline: "text-decoration-line:underline;",
|
|
793
|
+
overline: "text-decoration-line:overline;",
|
|
794
|
+
"line-through": "text-decoration-line:line-through;",
|
|
795
|
+
"no-underline": "text-decoration-line:none;",
|
|
796
|
+
truncate: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",
|
|
797
|
+
"whitespace-normal": "white-space:normal;",
|
|
798
|
+
"whitespace-nowrap": "white-space:nowrap;",
|
|
799
|
+
"whitespace-pre": "white-space:pre;",
|
|
800
|
+
"whitespace-pre-line": "white-space:pre-line;",
|
|
801
|
+
"whitespace-pre-wrap": "white-space:pre-wrap;",
|
|
802
|
+
"break-normal": "overflow-wrap:normal;word-break:normal;",
|
|
803
|
+
"break-words": "overflow-wrap:break-word;",
|
|
804
|
+
"break-all": "word-break:break-all;"
|
|
805
|
+
}), [
|
|
806
|
+
["text-xs", "0.75rem", "1"],
|
|
807
|
+
["text-sm", "0.875rem", "1.25"],
|
|
808
|
+
["text-base", "1rem", "1.5"],
|
|
809
|
+
["text-lg", "1.125rem", "1.75"],
|
|
810
|
+
["text-xl", "1.25rem", "1.75"],
|
|
811
|
+
["text-2xl", "1.5rem", "2"],
|
|
812
|
+
["text-3xl", "1.875rem", "2.25"],
|
|
813
|
+
["text-4xl", "2.25rem", "2.5"],
|
|
814
|
+
["text-5xl", "3rem", "1"],
|
|
815
|
+
["text-6xl", "3.75rem", "1"],
|
|
816
|
+
["text-7xl", "4.5rem", "1"],
|
|
817
|
+
["text-8xl", "6rem", "1"],
|
|
818
|
+
["text-9xl", "8rem", "1"]
|
|
819
|
+
].forEach(([n, c, f]) => {
|
|
820
|
+
e[n] = `font-size:${c};line-height:var(--cer-line-height,${f});`;
|
|
821
|
+
}), [
|
|
822
|
+
["tracking-tighter", "-0.05em"],
|
|
823
|
+
["tracking-tight", "-0.025em"],
|
|
824
|
+
["tracking-normal", "0em"],
|
|
825
|
+
["tracking-wide", "0.025em"],
|
|
826
|
+
["tracking-wider", "0.05em"],
|
|
827
|
+
["tracking-widest", "0.1em"]
|
|
828
|
+
].forEach(([n, c]) => {
|
|
829
|
+
e[n] = `letter-spacing:${c};`;
|
|
830
|
+
}), [
|
|
831
|
+
["leading-3", "0.75rem"],
|
|
832
|
+
["leading-4", "1rem"],
|
|
833
|
+
["leading-5", "1.25rem"],
|
|
834
|
+
["leading-6", "1.5rem"],
|
|
835
|
+
["leading-7", "1.75rem"],
|
|
836
|
+
["leading-8", "2rem"],
|
|
837
|
+
["leading-9", "2.25rem"],
|
|
838
|
+
["leading-10", "2.5rem"],
|
|
839
|
+
["leading-none", "1"],
|
|
840
|
+
["leading-tight", "1.25"],
|
|
841
|
+
["leading-snug", "1.375"],
|
|
842
|
+
["leading-normal", "1.5"],
|
|
843
|
+
["leading-relaxed", "1.625"],
|
|
844
|
+
["leading-loose", "2"]
|
|
845
|
+
].forEach(([n, c]) => {
|
|
846
|
+
e[n] = `line-height:${c};--cer-line-height:${c};line-height:var(--cer-line-height,${c});`;
|
|
847
|
+
});
|
|
848
|
+
const i = [0, 1, 2, 4, 6, 8];
|
|
849
|
+
for (const n of i) {
|
|
850
|
+
const c = `${n}px`;
|
|
851
|
+
e[`outline-${n}`] = `outline-style:var(--cer-outline-style);outline-width:${c};`, e[`outline-offset-${n}`] = `outline-offset:${c};`, e[`border-${n}`] = `border-width:${c};`, e[`border-t-${n}`] = `border-top-width:${c};`, e[`border-r-${n}`] = `border-right-width:${c};`, e[`border-b-${n}`] = `border-bottom-width:${c};`, e[`border-l-${n}`] = `border-left-width:${c};`, e[`border-x-${n}`] = `border-left-width:${c};border-right-width:${c};`, e[`border-y-${n}`] = `border-top-width:${c};border-bottom-width:${c};`;
|
|
852
|
+
}
|
|
853
|
+
Object.assign(e, {
|
|
854
|
+
"font-sans": "font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);",
|
|
855
|
+
"font-serif": "font-family:var(--cer-font-serif, ui-serif,Georgia,serif);",
|
|
856
|
+
"font-mono": "font-family:var(--cer-font-mono, ui-monospace,SFMono-Regular,monospace);",
|
|
857
|
+
outline: "outline-style:var(--cer-outline-style);outline-width:1px;",
|
|
858
|
+
"outline-solid": "--cer-outline-style:solid;outline-style:solid;",
|
|
859
|
+
"outline-dashed": "--cer-outline-style:dashed;outline-style:dashed;",
|
|
860
|
+
"outline-dotted": "--cer-outline-style:dotted;outline-style:dotted;",
|
|
861
|
+
"outline-double": "--cer-outline-style:double;outline-style:double;",
|
|
862
|
+
"outline-none": "--cer-outline-style:none;outline-style:none;",
|
|
863
|
+
"outline-hidden": "--cer-outline-style:none;outline:2px solid transparent;outline-offset:2px;",
|
|
864
|
+
border: "border-width:1px;",
|
|
865
|
+
"border-t": "border-top-width:1px;",
|
|
866
|
+
"border-r": "border-right-width:1px;",
|
|
867
|
+
"border-b": "border-bottom-width:1px;",
|
|
868
|
+
"border-l": "border-left-width:1px;",
|
|
869
|
+
"border-x": "border-left-width:1px;border-right-width:1px;",
|
|
870
|
+
"border-y": "border-top-width:1px;border-bottom-width:1px;",
|
|
871
|
+
"border-solid": "border-style:solid;",
|
|
872
|
+
"border-dashed": "border-style:dashed;",
|
|
873
|
+
"border-dotted": "border-style:dotted;",
|
|
874
|
+
"border-double": "border-style:double;",
|
|
875
|
+
"border-none": "border-style:none;"
|
|
876
|
+
});
|
|
877
|
+
const l = {
|
|
878
|
+
none: 0,
|
|
879
|
+
xs: 2,
|
|
880
|
+
sm: 4,
|
|
881
|
+
md: 6,
|
|
882
|
+
lg: 8,
|
|
883
|
+
xl: 12,
|
|
884
|
+
"2xl": 16,
|
|
885
|
+
"3xl": 24,
|
|
886
|
+
"4xl": 32,
|
|
887
|
+
full: 9999
|
|
888
|
+
};
|
|
889
|
+
for (const [n, c] of Object.entries(l)) {
|
|
890
|
+
const f = c === 9999 ? "9999px" : `${c / 16}rem`;
|
|
891
|
+
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};`;
|
|
892
|
+
}
|
|
893
|
+
Object.assign(e, {
|
|
894
|
+
"shadow-none": "--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);",
|
|
895
|
+
"shadow-xs": "--cer-shadow-color:rgb(0 0 0 / 0.05);box-shadow:0 1px 2px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.05));",
|
|
896
|
+
"shadow-sm": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
|
|
897
|
+
shadow: "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
|
|
898
|
+
"shadow-md": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 4px 6px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
|
|
899
|
+
"shadow-lg": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 10px 15px -3px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
|
|
900
|
+
"shadow-xl": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
|
|
901
|
+
"shadow-2xl": "--cer-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--cer-shadow-color, rgb(0 0 0 / 0.25));",
|
|
902
|
+
"shadow-inner": "box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"
|
|
903
|
+
}), Object.assign(e, {
|
|
904
|
+
rounded: "border-radius:0.25rem;"
|
|
905
|
+
}), Object.assign(e, {
|
|
906
|
+
"overflow-auto": "overflow:auto;",
|
|
907
|
+
"overflow-hidden": "overflow:hidden;",
|
|
908
|
+
"overflow-visible": "overflow:visible;",
|
|
909
|
+
"overflow-scroll": "overflow:scroll;",
|
|
910
|
+
"overflow-x-auto": "overflow-x:auto;",
|
|
911
|
+
"overflow-x-hidden": "overflow-x:hidden;",
|
|
912
|
+
"overflow-x-visible": "overflow-x:visible;",
|
|
913
|
+
"overflow-x-scroll": "overflow-x:scroll;",
|
|
914
|
+
"overflow-y-auto": "overflow-y:auto;",
|
|
915
|
+
"overflow-y-hidden": "overflow-y:hidden;",
|
|
916
|
+
"overflow-y-visible": "overflow-y:visible;",
|
|
917
|
+
"overflow-y-scroll": "overflow-y:scroll;"
|
|
918
|
+
});
|
|
919
|
+
const $ = [
|
|
920
|
+
"auto",
|
|
921
|
+
"default",
|
|
922
|
+
"pointer",
|
|
923
|
+
"wait",
|
|
924
|
+
"text",
|
|
925
|
+
"move",
|
|
926
|
+
"help",
|
|
927
|
+
"not-allowed",
|
|
928
|
+
"grab",
|
|
929
|
+
"grabbing"
|
|
930
|
+
];
|
|
931
|
+
for (const n of $) e[`cursor-${n}`] = `cursor:${n};`;
|
|
932
|
+
for (const n of [0, 10, 20, 30, 40, 50]) e[`z-${n}`] = `z-index:${n};`;
|
|
933
|
+
Object.assign(e, {
|
|
934
|
+
"sr-only": "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;",
|
|
935
|
+
"not-sr-only": "position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",
|
|
936
|
+
"pointer-events-none": "pointer-events:none;",
|
|
937
|
+
"pointer-events-auto": "pointer-events:auto;",
|
|
938
|
+
visible: "visibility:visible;",
|
|
939
|
+
invisible: "visibility:hidden;"
|
|
940
|
+
}), Object.assign(e, {
|
|
941
|
+
"w-full": "width:100%;",
|
|
942
|
+
"w-screen": "width:100dvw;",
|
|
943
|
+
"h-full": "height:100%;",
|
|
944
|
+
"h-screen": "height:100dvh;",
|
|
945
|
+
"max-w-full": "max-width:100%;",
|
|
946
|
+
"max-h-full": "max-height:100%;",
|
|
947
|
+
"max-w-screen": "max-width:100dvw;",
|
|
948
|
+
"max-h-screen": "max-height:100dvh;",
|
|
949
|
+
"min-w-0": "min-width:0;",
|
|
950
|
+
"min-h-0": "min-height:0;",
|
|
951
|
+
"min-w-full": "min-width:100%;",
|
|
952
|
+
"min-h-full": "min-height:100%;",
|
|
953
|
+
"min-w-screen": "min-width:100dvw;",
|
|
954
|
+
"min-h-screen": "min-height:100dvh;",
|
|
955
|
+
"w-auto": "width:auto;",
|
|
956
|
+
"h-auto": "height:auto;",
|
|
957
|
+
"w-fit": "width:fit-content;",
|
|
958
|
+
"h-fit": "height:fit-content;",
|
|
959
|
+
"w-min": "width:min-content;",
|
|
960
|
+
"h-min": "height:min-content;",
|
|
961
|
+
"w-max": "width:max-content;",
|
|
962
|
+
"h-max": "height:max-content;",
|
|
963
|
+
"m-auto": "margin:auto;",
|
|
964
|
+
"mx-auto": "margin-inline:auto;",
|
|
965
|
+
"my-auto": "margin-block:auto;"
|
|
966
|
+
});
|
|
967
|
+
for (const [n, c] of Object.entries(De))
|
|
968
|
+
e[`max-w-${n}`] = `max-width:calc(${K} * ${c});`, e[`min-w-${n}`] = `min-width:calc(${K} * ${c});`, e[`w-${n}`] = `width:calc(${K} * ${c});`, e[`max-h-${n}`] = `max-height:calc(${K} * ${c});`, e[`min-h-${n}`] = `min-height:calc(${K} * ${c});`, e[`h-${n}`] = `height:calc(${K} * ${c});`;
|
|
969
|
+
Object.assign(e, {
|
|
970
|
+
transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
|
|
971
|
+
"transition-none": "transition-property:none;",
|
|
972
|
+
"transition-all": "transition-property:all;",
|
|
973
|
+
"transition-colors": "transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;",
|
|
974
|
+
"transition-shadow": "transition-property:box-shadow;",
|
|
975
|
+
"transition-opacity": "transition-property:opacity;",
|
|
976
|
+
"transition-transform": "transition-property:transform;",
|
|
977
|
+
"ease-linear": "transition-timing-function:linear;",
|
|
978
|
+
"ease-in": "transition-timing-function:ease-in;",
|
|
979
|
+
"ease-out": "transition-timing-function:ease-out;",
|
|
980
|
+
"ease-in-out": "transition-timing-function:ease-in-out;",
|
|
981
|
+
"duration-75": "transition-duration:75ms;",
|
|
982
|
+
"duration-100": "transition-duration:100ms;",
|
|
983
|
+
"duration-150": "transition-duration:150ms;",
|
|
984
|
+
"duration-200": "transition-duration:200ms;",
|
|
985
|
+
"duration-300": "transition-duration:300ms;",
|
|
986
|
+
"duration-500": "transition-duration:500ms;",
|
|
987
|
+
"duration-700": "transition-duration:700ms;",
|
|
988
|
+
"duration-1000": "transition-duration:1000ms;"
|
|
989
|
+
}), Object.assign(e, {
|
|
990
|
+
"scale-0": "transform:scale(0);",
|
|
991
|
+
"scale-50": "transform:scale(0.5);",
|
|
992
|
+
"scale-75": "transform:scale(0.75);",
|
|
993
|
+
"scale-90": "transform:scale(0.9);",
|
|
994
|
+
"scale-95": "transform:scale(0.95);",
|
|
995
|
+
"scale-100": "transform:scale(1);",
|
|
996
|
+
"scale-105": "transform:scale(1.05);",
|
|
997
|
+
"scale-110": "transform:scale(1.1);",
|
|
998
|
+
"scale-125": "transform:scale(1.25);",
|
|
999
|
+
"scale-150": "transform:scale(1.5);",
|
|
1000
|
+
"rotate-0": "transform:rotate(0deg);",
|
|
1001
|
+
"rotate-1": "transform:rotate(1deg);",
|
|
1002
|
+
"rotate-2": "transform:rotate(2deg);",
|
|
1003
|
+
"rotate-3": "transform:rotate(3deg);",
|
|
1004
|
+
"rotate-6": "transform:rotate(6deg);",
|
|
1005
|
+
"rotate-12": "transform:rotate(12deg);",
|
|
1006
|
+
"rotate-45": "transform:rotate(45deg);",
|
|
1007
|
+
"rotate-90": "transform:rotate(90deg);",
|
|
1008
|
+
"rotate-180": "transform:rotate(180deg);",
|
|
1009
|
+
"-rotate-1": "transform:rotate(-1deg);",
|
|
1010
|
+
"-rotate-2": "transform:rotate(-2deg);",
|
|
1011
|
+
"-rotate-3": "transform:rotate(-3deg);",
|
|
1012
|
+
"-rotate-6": "transform:rotate(-6deg);",
|
|
1013
|
+
"-rotate-12": "transform:rotate(-12deg);",
|
|
1014
|
+
"-rotate-45": "transform:rotate(-45deg);",
|
|
1015
|
+
"-rotate-90": "transform:rotate(-90deg);",
|
|
1016
|
+
"-rotate-180": "transform:rotate(-180deg);"
|
|
1017
|
+
}), Object.assign(e, {
|
|
1018
|
+
"aspect-auto": "aspect-ratio:auto;",
|
|
1019
|
+
"aspect-square": "aspect-ratio:1 / 1;",
|
|
1020
|
+
"aspect-video": "aspect-ratio:16 / 9;"
|
|
1021
|
+
}), Object.assign(e, {
|
|
1022
|
+
"object-contain": "object-fit:contain;",
|
|
1023
|
+
"object-cover": "object-fit:cover;",
|
|
1024
|
+
"object-fill": "object-fit:fill;",
|
|
1025
|
+
"object-none": "object-fit:none;",
|
|
1026
|
+
"object-scale-down": "object-fit:scale-down;",
|
|
1027
|
+
"object-bottom": "object-position:bottom;",
|
|
1028
|
+
"object-center": "object-position:center;",
|
|
1029
|
+
"object-left": "object-position:left;",
|
|
1030
|
+
"object-left-bottom": "object-position:left bottom;",
|
|
1031
|
+
"object-left-top": "object-position:left top;",
|
|
1032
|
+
"object-right": "object-position:right;",
|
|
1033
|
+
"object-right-bottom": "object-position:right bottom;",
|
|
1034
|
+
"object-right-top": "object-position:right top;",
|
|
1035
|
+
"object-top": "object-position:top;"
|
|
1036
|
+
});
|
|
1037
|
+
for (let n = 1; n <= 6; n++)
|
|
1038
|
+
e[`line-clamp-${n}`] = `display:-webkit-box;-webkit-line-clamp:${n};-webkit-box-orient:vertical;overflow:hidden;`;
|
|
1039
|
+
e["line-clamp-none"] = "overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";
|
|
1040
|
+
for (let n = 1; n <= 12; n++)
|
|
1041
|
+
e[`order-${n}`] = `order:${n};`;
|
|
1042
|
+
e["order-first"] = "order:-9999;", e["order-last"] = "order:9999;", e["order-none"] = "order:0;";
|
|
1043
|
+
for (let n = 0; n <= 12; n++)
|
|
1044
|
+
n <= 1 || (e[`grow-${n}`] = `flex-grow:${n};`, e[`shrink-${n}`] = `flex-shrink:${n};`);
|
|
1045
|
+
return Object.assign(e, {
|
|
1046
|
+
// Linear gradients
|
|
1047
|
+
"bg-linear-to-t": "background-image:linear-gradient(to top, var(--cer-gradient-stops));",
|
|
1048
|
+
"bg-linear-to-tr": "background-image:linear-gradient(to top right, var(--cer-gradient-stops));",
|
|
1049
|
+
"bg-linear-to-r": "background-image:linear-gradient(to right, var(--cer-gradient-stops));",
|
|
1050
|
+
"bg-linear-to-br": "background-image:linear-gradient(to bottom right, var(--cer-gradient-stops));",
|
|
1051
|
+
"bg-linear-to-b": "background-image:linear-gradient(to bottom, var(--cer-gradient-stops));",
|
|
1052
|
+
"bg-linear-to-bl": "background-image:linear-gradient(to bottom left, var(--cer-gradient-stops));",
|
|
1053
|
+
"bg-linear-to-l": "background-image:linear-gradient(to left, var(--cer-gradient-stops));",
|
|
1054
|
+
"bg-linear-to-tl": "background-image:linear-gradient(to top left, var(--cer-gradient-stops));",
|
|
1055
|
+
// Radial gradients
|
|
1056
|
+
"bg-radial": "background-image:radial-gradient(ellipse at center, var(--cer-gradient-stops));",
|
|
1057
|
+
"bg-radial-at-t": "background-image:radial-gradient(ellipse at top, var(--cer-gradient-stops));",
|
|
1058
|
+
"bg-radial-at-tr": "background-image:radial-gradient(ellipse at top right, var(--cer-gradient-stops));",
|
|
1059
|
+
"bg-radial-at-r": "background-image:radial-gradient(ellipse at right, var(--cer-gradient-stops));",
|
|
1060
|
+
"bg-radial-at-br": "background-image:radial-gradient(ellipse at bottom right, var(--cer-gradient-stops));",
|
|
1061
|
+
"bg-radial-at-b": "background-image:radial-gradient(ellipse at bottom, var(--cer-gradient-stops));",
|
|
1062
|
+
"bg-radial-at-bl": "background-image:radial-gradient(ellipse at bottom left, var(--cer-gradient-stops));",
|
|
1063
|
+
"bg-radial-at-l": "background-image:radial-gradient(ellipse at left, var(--cer-gradient-stops));",
|
|
1064
|
+
"bg-radial-at-tl": "background-image:radial-gradient(ellipse at top left, var(--cer-gradient-stops));",
|
|
1065
|
+
"bg-radial-circle": "background-image:radial-gradient(circle at center, var(--cer-gradient-stops));",
|
|
1066
|
+
"bg-radial-circle-at-t": "background-image:radial-gradient(circle at top, var(--cer-gradient-stops));",
|
|
1067
|
+
"bg-radial-circle-at-tr": "background-image:radial-gradient(circle at top right, var(--cer-gradient-stops));",
|
|
1068
|
+
"bg-radial-circle-at-r": "background-image:radial-gradient(circle at right, var(--cer-gradient-stops));",
|
|
1069
|
+
"bg-radial-circle-at-br": "background-image:radial-gradient(circle at bottom right, var(--cer-gradient-stops));",
|
|
1070
|
+
"bg-radial-circle-at-b": "background-image:radial-gradient(circle at bottom, var(--cer-gradient-stops));",
|
|
1071
|
+
"bg-radial-circle-at-bl": "background-image:radial-gradient(circle at bottom left, var(--cer-gradient-stops));",
|
|
1072
|
+
"bg-radial-circle-at-l": "background-image:radial-gradient(circle at left, var(--cer-gradient-stops));",
|
|
1073
|
+
"bg-radial-circle-at-tl": "background-image:radial-gradient(circle at top left, var(--cer-gradient-stops));",
|
|
1074
|
+
// Conic gradients
|
|
1075
|
+
"bg-conic": "background-image:conic-gradient(from 0deg at center, var(--cer-gradient-stops));",
|
|
1076
|
+
"bg-conic-at-t": "background-image:conic-gradient(from 0deg at top, var(--cer-gradient-stops));",
|
|
1077
|
+
"bg-conic-at-tr": "background-image:conic-gradient(from 0deg at top right, var(--cer-gradient-stops));",
|
|
1078
|
+
"bg-conic-at-r": "background-image:conic-gradient(from 0deg at right, var(--cer-gradient-stops));",
|
|
1079
|
+
"bg-conic-at-br": "background-image:conic-gradient(from 0deg at bottom right, var(--cer-gradient-stops));",
|
|
1080
|
+
"bg-conic-at-b": "background-image:conic-gradient(from 0deg at bottom, var(--cer-gradient-stops));",
|
|
1081
|
+
"bg-conic-at-bl": "background-image:conic-gradient(from 0deg at bottom left, var(--cer-gradient-stops));",
|
|
1082
|
+
"bg-conic-at-l": "background-image:conic-gradient(from 0deg at left, var(--cer-gradient-stops));",
|
|
1083
|
+
"bg-conic-at-tl": "background-image:conic-gradient(from 0deg at top left, var(--cer-gradient-stops));"
|
|
1084
|
+
}), Object.assign(e, {
|
|
1085
|
+
// prose-invert: dark mode color inversion
|
|
1086
|
+
"prose-invert": `
|
|
1087
|
+
--cer-prose-body:var(--cer-color-neutral-200);
|
|
1088
|
+
--cer-prose-headings:var(--cer-color-neutral-50);
|
|
1089
|
+
--cer-prose-lead:var(--cer-color-neutral-300);
|
|
1090
|
+
--cer-prose-bold:var(--cer-color-neutral-50);
|
|
1091
|
+
--cer-prose-quotes:var(--cer-color-neutral-300);
|
|
1092
|
+
--cer-prose-quote-border:var(--cer-color-neutral-700);
|
|
1093
|
+
--cer-prose-code:var(--cer-color-neutral-200);
|
|
1094
|
+
--cer-prose-code-bg:var(--cer-color-neutral-900);
|
|
1095
|
+
--cer-prose-pre-code:var(--cer-color-neutral-200);
|
|
1096
|
+
--cer-prose-pre-bg:var(--cer-color-neutral-900);
|
|
1097
|
+
--cer-prose-pre-border:var(--cer-color-neutral-800);
|
|
1098
|
+
--cer-prose-hr:var(--cer-color-neutral-700);
|
|
1099
|
+
--cer-prose-caps:var(--cer-color-neutral-400);
|
|
1100
|
+
--cer-prose-list-marker:var(--cer-color-neutral-400);
|
|
1101
|
+
--cer-prose-list-marker-strong:var(--cer-color-neutral-300);
|
|
1102
|
+
--cer-prose-counters:var(--cer-color-neutral-300);
|
|
1103
|
+
--cer-prose-bullets:var(--cer-color-neutral-300);
|
|
1104
|
+
--cer-prose-img-caption:var(--cer-color-neutral-400);
|
|
1105
|
+
--cer-prose-table-border:var(--cer-color-neutral-700);
|
|
1106
|
+
--cer-prose-table-head:var(--cer-color-neutral-200);
|
|
1107
|
+
--cer-prose-links:var(--cer-prose-invert-links,var(--cer-color-neutral-300));
|
|
1108
|
+
--cer-prose-links-hover:var(--cer-prose-invert-links-hover,var(--cer-color-neutral-100));
|
|
1109
|
+
`.replace(/\s+/g, ""),
|
|
1110
|
+
// prose-primary: primary color scheme (sets invert variables)
|
|
1111
|
+
"prose-primary": `
|
|
1112
|
+
--cer-prose-links:var(--cer-color-primary-700);
|
|
1113
|
+
--cer-prose-links-hover:var(--cer-color-primary-500);
|
|
1114
|
+
--cer-prose-invert-links:var(--cer-color-primary-300);
|
|
1115
|
+
--cer-prose-invert-links-hover:var(--cer-color-primary-100);
|
|
1116
|
+
`.replace(/\s+/g, ""),
|
|
1117
|
+
// prose-secondary: secondary color scheme (sets invert variables)
|
|
1118
|
+
"prose-secondary": `
|
|
1119
|
+
--cer-prose-links:var(--cer-color-secondary-700);
|
|
1120
|
+
--cer-prose-links-hover:var(--cer-color-secondary-500);
|
|
1121
|
+
--cer-prose-invert-links:var(--cer-color-secondary-300);
|
|
1122
|
+
--cer-prose-invert-links-hover:var(--cer-color-secondary-100);
|
|
1123
|
+
`.replace(/\s+/g, ""),
|
|
1124
|
+
// prose-success: success color scheme (sets invert variables)
|
|
1125
|
+
"prose-success": `
|
|
1126
|
+
--cer-prose-links:var(--cer-color-success-700);
|
|
1127
|
+
--cer-prose-links-hover:var(--cer-color-success-500);
|
|
1128
|
+
--cer-prose-invert-links:var(--cer-color-success-300);
|
|
1129
|
+
--cer-prose-invert-links-hover:var(--cer-color-success-100);
|
|
1130
|
+
`.replace(/\s+/g, ""),
|
|
1131
|
+
// prose-warning: warning color scheme (sets invert variables)
|
|
1132
|
+
"prose-warning": `
|
|
1133
|
+
--cer-prose-links:var(--cer-color-warning-700);
|
|
1134
|
+
--cer-prose-links-hover:var(--cer-color-warning-500);
|
|
1135
|
+
--cer-prose-invert-links:var(--cer-color-warning-300);
|
|
1136
|
+
--cer-prose-invert-links-hover:var(--cer-color-warning-100);
|
|
1137
|
+
`.replace(/\s+/g, ""),
|
|
1138
|
+
// prose-error: error color scheme (sets invert variables)
|
|
1139
|
+
"prose-error": `
|
|
1140
|
+
--cer-prose-links:var(--cer-color-error-700);
|
|
1141
|
+
--cer-prose-links-hover:var(--cer-color-error-500);
|
|
1142
|
+
--cer-prose-invert-links:var(--cer-color-error-300);
|
|
1143
|
+
--cer-prose-invert-links-hover:var(--cer-color-error-100);
|
|
1144
|
+
`.replace(/\s+/g, ""),
|
|
1145
|
+
// prose-info: info color scheme (sets invert variables)
|
|
1146
|
+
"prose-info": `
|
|
1147
|
+
--cer-prose-links:var(--cer-color-info-700);
|
|
1148
|
+
--cer-prose-links-hover:var(--cer-color-info-500);
|
|
1149
|
+
--cer-prose-invert-links:var(--cer-color-info-300);
|
|
1150
|
+
--cer-prose-invert-links-hover:var(--cer-color-info-100);
|
|
1151
|
+
`.replace(/\s+/g, "")
|
|
1152
|
+
}), e;
|
|
1153
|
+
}, pe = qe();
|
|
1154
|
+
function Ie(e) {
|
|
1155
|
+
return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (We(e), "") : null;
|
|
1156
|
+
}
|
|
1157
|
+
function ke(e) {
|
|
1158
|
+
return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Re(
|
|
1159
|
+
e,
|
|
1160
|
+
pe,
|
|
1161
|
+
fe,
|
|
1162
|
+
ue,
|
|
1163
|
+
he,
|
|
1164
|
+
ge,
|
|
1165
|
+
me,
|
|
1166
|
+
ie
|
|
1167
|
+
) : null;
|
|
1168
|
+
}
|
|
1169
|
+
function q(e, o) {
|
|
1170
|
+
let a = 0;
|
|
1171
|
+
for (let t = 0; t < e.length; t++) {
|
|
1172
|
+
const r = e[t];
|
|
1173
|
+
if (r === "[" || r === "(") a++;
|
|
1174
|
+
else if ((r === "]" || r === ")") && a > 0) a--;
|
|
1175
|
+
else if (a === 0 && (r === ">" || r === "+" || r === "~" || r === " "))
|
|
1176
|
+
return e.slice(0, t) + o + e.slice(t);
|
|
1177
|
+
}
|
|
1178
|
+
return e + o;
|
|
1179
|
+
}
|
|
1180
|
+
const Se = {
|
|
1181
|
+
before: (e, o) => `${e}::before{${o}}`,
|
|
1182
|
+
after: (e, o) => `${e}::after{${o}}`,
|
|
1183
|
+
hover: (e, o) => `${q(e, ":hover")}{${o}}`,
|
|
1184
|
+
focus: (e, o) => `${q(e, ":focus")}{${o}}`,
|
|
1185
|
+
active: (e, o) => `${q(e, ":active")}{${o}}`,
|
|
1186
|
+
disabled: (e, o) => `${q(e, ":disabled")}{${o}}`,
|
|
1187
|
+
visited: (e, o) => `${q(e, ":visited")}{${o}}`,
|
|
1188
|
+
checked: (e, o) => `${q(e, ":checked")}{${o}}`,
|
|
1189
|
+
first: (e, o) => `${q(e, ":first-child")}{${o}}`,
|
|
1190
|
+
last: (e, o) => `${q(e, ":last-child")}{${o}}`,
|
|
1191
|
+
odd: (e, o) => `${q(e, ":nth-child(odd)")}{${o}}`,
|
|
1192
|
+
even: (e, o) => `${q(e, ":nth-child(even)")}{${o}}`,
|
|
1193
|
+
"focus-within": (e, o) => `${q(e, ":focus-within")}{${o}}`,
|
|
1194
|
+
"focus-visible": (e, o) => `${q(e, ":focus-visible")}{${o}}`,
|
|
1195
|
+
"group-hover": (e, o) => `.group:hover ${e}{${o}}`,
|
|
1196
|
+
"group-focus": (e, o) => `.group:focus ${e}{${o}}`,
|
|
1197
|
+
"group-active": (e, o) => `.group:active ${e}{${o}}`,
|
|
1198
|
+
"group-disabled": (e, o) => `.group:disabled ${e}{${o}}`,
|
|
1199
|
+
"peer-hover": (e, o) => `.peer:hover ~ ${e}{${o}}`,
|
|
1200
|
+
"peer-focus": (e, o) => `.peer:focus ~ ${e}{${o}}`,
|
|
1201
|
+
"peer-checked": (e, o) => `.peer:checked ~ ${e}{${o}}`,
|
|
1202
|
+
"peer-disabled": (e, o) => `.peer:disabled ~ ${e}{${o}}`,
|
|
1203
|
+
"dark-class": (e, o) => `:host(.dark) ${e}{${o}}`
|
|
1204
|
+
}, re = {
|
|
1205
|
+
sm: "(min-width:640px)",
|
|
1206
|
+
md: "(min-width:768px)",
|
|
1207
|
+
lg: "(min-width:1024px)",
|
|
1208
|
+
xl: "(min-width:1280px)",
|
|
1209
|
+
"2xl": "(min-width:1536px)",
|
|
1210
|
+
dark: "(prefers-color-scheme: dark)"
|
|
1211
|
+
}, je = {
|
|
1212
|
+
xs: "(min-width:20rem)",
|
|
1213
|
+
sm: "(min-width:24rem)",
|
|
1214
|
+
md: "(min-width:28rem)",
|
|
1215
|
+
lg: "(min-width:32rem)",
|
|
1216
|
+
xl: "(min-width:36rem)",
|
|
1217
|
+
"2xl": "(min-width:42rem)",
|
|
1218
|
+
"3xl": "(min-width:48rem)",
|
|
1219
|
+
"4xl": "(min-width:56rem)",
|
|
1220
|
+
"5xl": "(min-width:64rem)",
|
|
1221
|
+
"6xl": "(min-width:72rem)",
|
|
1222
|
+
"7xl": "(min-width:80rem)"
|
|
1223
|
+
}, oe = ["sm", "md", "lg", "xl", "2xl"], le = [
|
|
1224
|
+
"xs",
|
|
1225
|
+
"sm",
|
|
1226
|
+
"md",
|
|
1227
|
+
"lg",
|
|
1228
|
+
"xl",
|
|
1229
|
+
"2xl",
|
|
1230
|
+
"3xl",
|
|
1231
|
+
"4xl",
|
|
1232
|
+
"5xl",
|
|
1233
|
+
"6xl",
|
|
1234
|
+
"7xl"
|
|
1235
|
+
];
|
|
1236
|
+
function fe(e) {
|
|
1237
|
+
const o = e.startsWith("-"), a = o ? e.slice(1) : e, t = a.lastIndexOf("-");
|
|
1238
|
+
if (t === -1) return null;
|
|
1239
|
+
const r = a.slice(0, t), i = a.slice(t + 1);
|
|
1240
|
+
if (!xe[r]) return null;
|
|
1241
|
+
if (i.includes("/")) {
|
|
1242
|
+
const [n, c] = i.split("/").map((j) => parseFloat(j));
|
|
1243
|
+
if (Number.isNaN(n) || Number.isNaN(c) || c === 0)
|
|
1244
|
+
return null;
|
|
1245
|
+
const f = n / c * 100;
|
|
1246
|
+
return xe[r].map((j) => `${j}:${f}%;`).join("");
|
|
1247
|
+
}
|
|
1248
|
+
const l = parseFloat(i);
|
|
1249
|
+
if (Number.isNaN(l)) return null;
|
|
1250
|
+
const $ = o ? "-" : "";
|
|
1251
|
+
return xe[r].map((n) => `${n}:calc(${$}${K} * ${l});`).join("");
|
|
1252
|
+
}
|
|
1253
|
+
function ue(e) {
|
|
1254
|
+
const o = e.startsWith("-"), t = (o ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
|
|
1255
|
+
if (!t) return null;
|
|
1256
|
+
const [, r, i] = t, l = r === "x";
|
|
1257
|
+
if (i === "reverse")
|
|
1258
|
+
return l ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
|
|
1259
|
+
if (i.includes("/")) {
|
|
1260
|
+
const [f, j] = i.split("/").map((p) => parseFloat(p));
|
|
1261
|
+
if (Number.isNaN(f) || Number.isNaN(j) || j === 0)
|
|
1262
|
+
return null;
|
|
1263
|
+
const y = f / j * 100, F = o ? "-" : "";
|
|
1264
|
+
return l ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${F}${y}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${F}${y}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${F}${y}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${F}${y}% * var(--cer-space-y-reverse));}`;
|
|
1265
|
+
}
|
|
1266
|
+
const $ = parseFloat(i);
|
|
1267
|
+
if (Number.isNaN($)) return null;
|
|
1268
|
+
const c = `calc(${o ? "-" : ""}${K} * ${$})`;
|
|
1269
|
+
return l ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${c} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${c} * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${c} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${c} * var(--cer-space-y-reverse));}`;
|
|
1270
|
+
}
|
|
1271
|
+
function de(e) {
|
|
1272
|
+
let o = e.replace("#", "");
|
|
1273
|
+
o.length === 3 && (o = o.split("").map((t) => t + t).join(""));
|
|
1274
|
+
const a = parseInt(o, 16);
|
|
1275
|
+
return `${a >> 16 & 255} ${a >> 8 & 255} ${a & 255}`;
|
|
1276
|
+
}
|
|
1277
|
+
const Ne = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, Ve = {
|
|
1278
|
+
bg: "background-color",
|
|
1279
|
+
decoration: "text-decoration-color",
|
|
1280
|
+
text: "color",
|
|
1281
|
+
border: "border-color",
|
|
1282
|
+
outline: "outline-color",
|
|
1283
|
+
caret: "caret-color",
|
|
1284
|
+
accent: "accent-color",
|
|
1285
|
+
fill: "fill",
|
|
1286
|
+
stroke: "stroke"
|
|
1287
|
+
};
|
|
1288
|
+
function Be(e) {
|
|
1289
|
+
const o = Ne.exec(e);
|
|
1290
|
+
if (!o) return null;
|
|
1291
|
+
const [, a, t, r = "DEFAULT"] = o, i = ze[t]?.[r];
|
|
1292
|
+
if (!i) return null;
|
|
1293
|
+
if (a === "shadow") return `--cer-shadow-color:${i};`;
|
|
1294
|
+
const l = Ve[a];
|
|
1295
|
+
return l ? `${l}:${i};` : null;
|
|
1296
|
+
}
|
|
1297
|
+
function He(e) {
|
|
1298
|
+
const o = e.indexOf("/");
|
|
1299
|
+
if (o === -1) return { base: e };
|
|
1300
|
+
const a = e.slice(0, o), t = e.slice(o + 1), r = parseInt(t, 10);
|
|
1301
|
+
return isNaN(r) || r < 0 || r > 100 ? { base: a } : { base: a, opacity: r / 100 };
|
|
1302
|
+
}
|
|
1303
|
+
function ge(e) {
|
|
1304
|
+
const { base: o, opacity: a } = He(e), t = Be(o);
|
|
1305
|
+
if (t) {
|
|
1306
|
+
if (a !== void 0) {
|
|
1307
|
+
if (t.includes("var(")) {
|
|
1308
|
+
const l = /var\([^)]*\)/.exec(t);
|
|
1309
|
+
if (l) {
|
|
1310
|
+
const $ = l[0], n = a * 100, c = `color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100 - n}%)`, f = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($), j = /^([a-z-]+):/.exec(t), y = j ? j[1] : "background-color";
|
|
1311
|
+
if (f) {
|
|
1312
|
+
const p = `rgb(${de(f[0])} / ${a})`, g = $.replace(
|
|
1313
|
+
/#([0-9a-f]{6}|[0-9a-f]{3})/i,
|
|
1314
|
+
p
|
|
1315
|
+
);
|
|
1316
|
+
return `${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`;
|
|
1317
|
+
}
|
|
1318
|
+
return `${y}:${c};`;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(t);
|
|
1322
|
+
if (i) {
|
|
1323
|
+
const l = de(i[0]);
|
|
1324
|
+
return t.replace(
|
|
1325
|
+
/#([0-9a-f]{6}|[0-9a-f]{3})/i,
|
|
1326
|
+
`rgb(${l} / ${a})`
|
|
1327
|
+
);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
return t;
|
|
1331
|
+
}
|
|
1332
|
+
const r = ie(o);
|
|
1333
|
+
if (r && a !== void 0) {
|
|
1334
|
+
if (r.includes("var(")) {
|
|
1335
|
+
const l = /var\([^)]*\)/.exec(r);
|
|
1336
|
+
if (l) {
|
|
1337
|
+
const $ = l[0], n = a * 100, c = `color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100 - n}%)`, f = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($), j = /^([a-z-]+):/.exec(r), y = j ? j[1] : null;
|
|
1338
|
+
if (f && y) {
|
|
1339
|
+
const p = `rgb(${de(f[0])} / ${a})`, g = $.replace(
|
|
1340
|
+
/#([0-9a-f]{6}|[0-9a-f]{3})/i,
|
|
1341
|
+
p
|
|
1342
|
+
);
|
|
1343
|
+
return `${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`;
|
|
1344
|
+
}
|
|
1345
|
+
return r.replace($, c);
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(r);
|
|
1349
|
+
if (i) {
|
|
1350
|
+
const l = de(i[0]);
|
|
1351
|
+
return r.replace(
|
|
1352
|
+
/#([0-9a-f]{6}|[0-9a-f]{3})/i,
|
|
1353
|
+
`rgb(${l} / ${a})`
|
|
1354
|
+
);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
return r;
|
|
1358
|
+
}
|
|
1359
|
+
function me(e) {
|
|
1360
|
+
const o = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
|
|
1361
|
+
if (!o) return null;
|
|
1362
|
+
const [, a, t, r = "DEFAULT"] = o, i = ze[t]?.[r];
|
|
1363
|
+
if (!i) return null;
|
|
1364
|
+
switch (a) {
|
|
1365
|
+
case "from":
|
|
1366
|
+
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);`;
|
|
1367
|
+
case "to":
|
|
1368
|
+
return `--cer-gradient-to:${i} var(--cer-gradient-to-position);`;
|
|
1369
|
+
case "via":
|
|
1370
|
+
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);`;
|
|
1371
|
+
default:
|
|
1372
|
+
return null;
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
function he(e) {
|
|
1376
|
+
const o = /^opacity-(\d{1,3})$/.exec(e);
|
|
1377
|
+
if (!o) return null;
|
|
1378
|
+
const a = parseInt(o[1], 10);
|
|
1379
|
+
return a < 0 || a > 100 ? null : `opacity:${a / 100};`;
|
|
1380
|
+
}
|
|
1381
|
+
function ie(e) {
|
|
1382
|
+
if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
|
|
1383
|
+
const l = e.slice(1, -1).trim(), $ = l.indexOf(":");
|
|
1384
|
+
if ($ === -1) return null;
|
|
1385
|
+
const n = l.slice(0, $).trim();
|
|
1386
|
+
let c = l.slice($ + 1).trim();
|
|
1387
|
+
return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(n) ? (c = c.replace(/_/g, " "), c = c.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), c = c.replace(/^'([^']*)'$/g, '"$1"'), `${n}:${c};`) : null;
|
|
1388
|
+
}
|
|
1389
|
+
const o = e.indexOf("-[");
|
|
1390
|
+
if (o <= 0 || !e.endsWith("]")) return null;
|
|
1391
|
+
const a = e.slice(0, o), t = e.slice(o + 2, -1).replace(/_/g, " "), r = {
|
|
1392
|
+
bg: "background-color",
|
|
1393
|
+
shadow: "box-shadow",
|
|
1394
|
+
p: "padding",
|
|
1395
|
+
px: "padding-inline",
|
|
1396
|
+
py: "padding-block",
|
|
1397
|
+
m: "margin",
|
|
1398
|
+
mx: "margin-inline",
|
|
1399
|
+
my: "margin-block",
|
|
1400
|
+
w: "width",
|
|
1401
|
+
h: "height",
|
|
1402
|
+
"min-w": "min-width",
|
|
1403
|
+
"max-w": "max-width",
|
|
1404
|
+
"min-h": "min-height",
|
|
1405
|
+
"max-h": "max-height",
|
|
1406
|
+
"border-t": "border-top-width",
|
|
1407
|
+
"border-b": "border-bottom-width",
|
|
1408
|
+
"border-l": "border-left-width",
|
|
1409
|
+
"border-r": "border-right-width",
|
|
1410
|
+
"border-x": "border-inline-width",
|
|
1411
|
+
"border-y": "border-block-width",
|
|
1412
|
+
"grid-cols": "grid-template-columns",
|
|
1413
|
+
"grid-rows": "grid-template-rows",
|
|
1414
|
+
transition: "transition-property",
|
|
1415
|
+
ease: "transition-timing-function",
|
|
1416
|
+
delay: "transition-delay",
|
|
1417
|
+
duration: "transition-duration",
|
|
1418
|
+
list: "list-style",
|
|
1419
|
+
break: "word-break",
|
|
1420
|
+
flex: "flex-direction",
|
|
1421
|
+
items: "align-items",
|
|
1422
|
+
justify: "justify-content",
|
|
1423
|
+
content: "align-content",
|
|
1424
|
+
self: "align-self",
|
|
1425
|
+
basis: "flex-basis",
|
|
1426
|
+
tracking: "letter-spacing",
|
|
1427
|
+
leading: "line-height",
|
|
1428
|
+
z: "z-index",
|
|
1429
|
+
opacity: "opacity"
|
|
1430
|
+
};
|
|
1431
|
+
if (a === "text")
|
|
1432
|
+
return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(t) ? `font-size:${t};` : `color:${t};`;
|
|
1433
|
+
if (a === "rotate") return `transform:rotate(${t});`;
|
|
1434
|
+
if (a === "scale") return `transform:scale(${t});`;
|
|
1435
|
+
if (a === "translate-x") return `transform:translateX(${t});`;
|
|
1436
|
+
if (a === "translate-y") return `transform:translateY(${t});`;
|
|
1437
|
+
const i = r[a] ?? a.replace(/_/g, "-");
|
|
1438
|
+
return i && t ? `${i}:${t};` : null;
|
|
1439
|
+
}
|
|
1440
|
+
function Ce(e) {
|
|
1441
|
+
if (e.startsWith("[") && e.endsWith("]")) {
|
|
1442
|
+
const a = e.slice(1, -1);
|
|
1443
|
+
return a.includes("&") ? a : e;
|
|
1444
|
+
}
|
|
1445
|
+
const o = e.indexOf("-[");
|
|
1446
|
+
if (o > 0 && e.endsWith("]")) {
|
|
1447
|
+
const a = e.slice(o + 2, -1).replace(/_/g, "-");
|
|
1448
|
+
return a.includes("&") ? a : e.replace(/_/g, "-");
|
|
1449
|
+
}
|
|
1450
|
+
return null;
|
|
1451
|
+
}
|
|
1452
|
+
function ve(e) {
|
|
1453
|
+
if (typeof CSS < "u" && CSS.escape)
|
|
1454
|
+
return CSS.escape(e);
|
|
1455
|
+
const o = String(e), a = o.length;
|
|
1456
|
+
let t = "", r = 0;
|
|
1457
|
+
for (; r < a; ) {
|
|
1458
|
+
const i = o.charAt(r), l = o.charCodeAt(r);
|
|
1459
|
+
l === 0 ? t += "�" : /* If the character is in the range [\1-\1f] (U+0001 to U+001F) or is U+007F */ l >= 1 && l <= 31 || l === 127 || // If the character is the first character and is in the range [0-9] (U+0030 to U+0039)
|
|
1460
|
+
r === 0 && l >= 48 && l <= 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)
|
|
1461
|
+
r === 1 && l >= 48 && l <= 57 && o.charCodeAt(0) === 45 ? t += "\\" + l.toString(16) + " " : /* If the character is the first character and is a "-" (U+002D), and there is no second character */ r === 0 && a === 1 && l === 45 ? t += "\\" + i : /* If the character is not handled by one of the above rules and is one of the following */ l >= 128 || l === 45 || // -
|
|
1462
|
+
l === 95 || // _
|
|
1463
|
+
l >= 48 && l <= 57 || // 0-9
|
|
1464
|
+
l >= 65 && l <= 90 || // A-Z
|
|
1465
|
+
l >= 97 && l <= 122 ? t += i : t += "\\" + i, r++;
|
|
1466
|
+
}
|
|
1467
|
+
return t;
|
|
1468
|
+
}
|
|
1469
|
+
function te(e) {
|
|
1470
|
+
return "." + ve(e);
|
|
1471
|
+
}
|
|
1472
|
+
function Ue(e) {
|
|
1473
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1474
|
+
}
|
|
1475
|
+
function Ke(e) {
|
|
1476
|
+
const o = /class\s*=\s*(['"])([\s\S]*?)\1/g, a = [];
|
|
1477
|
+
let t;
|
|
1478
|
+
for (; t = o.exec(e); ) {
|
|
1479
|
+
const r = t[2].split(/\s+/).filter(Boolean);
|
|
1480
|
+
r.length && a.push(...r);
|
|
1481
|
+
}
|
|
1482
|
+
return a;
|
|
1483
|
+
}
|
|
1484
|
+
const ne = /* @__PURE__ */ new Map(), Qe = 16, Te = 1e3;
|
|
1485
|
+
function Ge(e) {
|
|
1486
|
+
const o = ne.get(e);
|
|
1487
|
+
if (o && Date.now() - o.timestamp < Qe)
|
|
1488
|
+
return o.css;
|
|
1489
|
+
const a = Ke(e);
|
|
1490
|
+
if (!a.length) return "";
|
|
1491
|
+
const t = new Set(a), r = [[], [], [], []], i = {}, l = (p, g = !1) => {
|
|
1492
|
+
const h = g ? `dark|${p}` : p;
|
|
1493
|
+
if (h in i) return i[h];
|
|
1494
|
+
const x = f(p, g);
|
|
1495
|
+
return i[h] = x, x;
|
|
1496
|
+
}, $ = (p) => {
|
|
1497
|
+
const g = p.some((T) => oe.includes(T)), h = p.some(
|
|
1498
|
+
(T) => T.startsWith("@") && (le.includes(T.slice(1)) || T.match(/^@\[.+\]$/))
|
|
1499
|
+
), x = p.includes("dark");
|
|
1500
|
+
return p.length ? !g && !x && !h ? 1 : x && (g || h) ? 3 : 2 : 0;
|
|
1501
|
+
}, n = (p) => {
|
|
1502
|
+
const g = [];
|
|
1503
|
+
let h = "", x = 0;
|
|
1504
|
+
for (let T = 0; T < p.length; T++) {
|
|
1505
|
+
const k = p[T];
|
|
1506
|
+
k === "[" || k === "(" ? x++ : (k === "]" || k === ")") && x--, k === ":" && x === 0 ? (g.push(h), h = "") : h += k;
|
|
1507
|
+
}
|
|
1508
|
+
return h && g.push(h), g;
|
|
1509
|
+
}, c = {
|
|
1510
|
+
hover: ":hover",
|
|
1511
|
+
focus: ":focus",
|
|
1512
|
+
active: ":active",
|
|
1513
|
+
visited: ":visited",
|
|
1514
|
+
disabled: ":disabled",
|
|
1515
|
+
checked: ":checked",
|
|
1516
|
+
first: ":first-child",
|
|
1517
|
+
last: ":last-child",
|
|
1518
|
+
odd: ":nth-child(odd)",
|
|
1519
|
+
even: ":nth-child(even)",
|
|
1520
|
+
"focus-within": ":focus-within",
|
|
1521
|
+
"focus-visible": ":focus-visible"
|
|
1522
|
+
}, f = (p, g = !1) => {
|
|
1523
|
+
const h = n(p);
|
|
1524
|
+
let x = "", T = !1;
|
|
1525
|
+
for (const s of h) {
|
|
1526
|
+
let b = s;
|
|
1527
|
+
if (b.startsWith("!") && (T = !0, b = b.slice(1)), pe[b] || fe(b) || ue(b) || he(b) || ge(b) || me(b) || ie(b)) {
|
|
1528
|
+
x = s;
|
|
1529
|
+
break;
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
if (!x) return null;
|
|
1533
|
+
const k = x.replace(/^!/, ""), _ = pe[k] ?? fe(k) ?? ue(k) ?? he(k) ?? ge(k) ?? me(k) ?? ie(k);
|
|
1534
|
+
if (!_) return null;
|
|
1535
|
+
const W = h.indexOf(x);
|
|
1536
|
+
let E = W >= 0 ? h.slice(0, W) : [];
|
|
1537
|
+
g && (E = E.filter((s) => s !== "dark"));
|
|
1538
|
+
const A = te(p), R = T ? _.replace(/;/g, " !important;") : _, d = "__SUBJECT__";
|
|
1539
|
+
let m = d;
|
|
1540
|
+
const C = [];
|
|
1541
|
+
for (const s of E)
|
|
1542
|
+
s.startsWith("group-") ? (m = `.group:${s.slice(6)} ${m}`, C.push(s)) : s.startsWith("peer-") && (m = m.replace(
|
|
1543
|
+
d,
|
|
1544
|
+
`.peer:${s.slice(5)}~${d}`
|
|
1545
|
+
), C.push(s));
|
|
1546
|
+
E = E.filter((s) => !C.includes(s));
|
|
1547
|
+
const P = [], L = [];
|
|
1548
|
+
let M = null;
|
|
1549
|
+
for (const s of E) {
|
|
1550
|
+
if (s === "dark" || oe.includes(s) || s.startsWith("@") && (le.includes(s.slice(1)) || s.match(/^@\[.+\]$/)))
|
|
1551
|
+
continue;
|
|
1552
|
+
const b = Ce(s);
|
|
1553
|
+
if (b) {
|
|
1554
|
+
M = b;
|
|
1555
|
+
continue;
|
|
1556
|
+
}
|
|
1557
|
+
const S = c[s];
|
|
1558
|
+
if (S) {
|
|
1559
|
+
M ? L.push(S) : P.push(S);
|
|
1560
|
+
continue;
|
|
1561
|
+
}
|
|
1562
|
+
const v = Se[s];
|
|
1563
|
+
typeof v == "function" && (m = v(m, R).split("{")[0]);
|
|
1564
|
+
}
|
|
1565
|
+
const z = P.join(""), D = L.join("");
|
|
1566
|
+
function I(s, b) {
|
|
1567
|
+
if (!b) return s;
|
|
1568
|
+
let S = 0, v = 0;
|
|
1569
|
+
if (s.length && (s[0] === ">" || s[0] === "+" || s[0] === "~" || s[0] === " ")) {
|
|
1570
|
+
let u = 1;
|
|
1571
|
+
for (; u < s.length && s[u] === " "; ) u++;
|
|
1572
|
+
for (; u < s.length; u++) {
|
|
1573
|
+
const O = s[u];
|
|
1574
|
+
if (O === "[" ? S++ : O === "]" && S > 0 ? S-- : O === "(" ? v++ : O === ")" && v > 0 && v--, S === 0 && v === 0 && (s[u] === ">" || s[u] === "+" || s[u] === "~" || s[u] === " "))
|
|
1575
|
+
return s.slice(0, u) + b + s.slice(u);
|
|
1576
|
+
}
|
|
1577
|
+
return s + b;
|
|
1578
|
+
}
|
|
1579
|
+
for (let u = 0; u < s.length; u++) {
|
|
1580
|
+
const O = s[u];
|
|
1581
|
+
if (O === "[" ? S++ : O === "]" && S > 0 ? S-- : O === "(" ? v++ : O === ")" && v > 0 && v--, S === 0 && v === 0 && (O === ">" || O === "+" || O === "~" || O === " "))
|
|
1582
|
+
return s.slice(0, u) + b + s.slice(u);
|
|
1583
|
+
}
|
|
1584
|
+
return s + b;
|
|
1585
|
+
}
|
|
1586
|
+
if (M)
|
|
1587
|
+
if (M.includes("&")) {
|
|
1588
|
+
const s = M.indexOf("&"), b = M.slice(0, s), S = M.slice(s + 1), v = d + z;
|
|
1589
|
+
if (P.length === 0)
|
|
1590
|
+
m = m.replace(
|
|
1591
|
+
d,
|
|
1592
|
+
b + v + D + S
|
|
1593
|
+
);
|
|
1594
|
+
else {
|
|
1595
|
+
const u = I(S, D);
|
|
1596
|
+
m = m.replace(
|
|
1597
|
+
d,
|
|
1598
|
+
b + v + u
|
|
1599
|
+
);
|
|
1600
|
+
}
|
|
1601
|
+
} else
|
|
1602
|
+
m = m.replace(
|
|
1603
|
+
d,
|
|
1604
|
+
`${M}${d + z}`
|
|
1605
|
+
), D && (m = m.replace(d, `${d}${D}`));
|
|
1606
|
+
else
|
|
1607
|
+
m = m.replace(
|
|
1608
|
+
d,
|
|
1609
|
+
d + z + D
|
|
1610
|
+
);
|
|
1611
|
+
m = m.replace(new RegExp(d, "g"), A);
|
|
1612
|
+
const V = "__CE_COLOR_MIX_SPLIT__", J = R.includes(V) ? R.split(V).map((s) => `${m}{${s}}`) : [`${m}{${R}}`], Q = E.filter(
|
|
1613
|
+
(s) => oe.includes(s)
|
|
1614
|
+
), X = E.filter(
|
|
1615
|
+
(s) => s.startsWith("@") && (le.includes(s.slice(1)) || s.match(/^@\[.+\]$/))
|
|
1616
|
+
), B = Q.length ? Q[Q.length - 1] : null, N = X.length ? X[X.length - 1] : null, Z = E.includes("dark");
|
|
1617
|
+
let w = "", H = "";
|
|
1618
|
+
if (Z && B ? w = `@media (prefers-color-scheme: dark) and ${re[B]}` : Z ? w = "@media (prefers-color-scheme: dark)" : B && (w = `@media ${re[B]}`), N)
|
|
1619
|
+
if (N.startsWith("@[") && N.endsWith("]")) {
|
|
1620
|
+
const s = N.slice(2, -1);
|
|
1621
|
+
if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s))
|
|
1622
|
+
return null;
|
|
1623
|
+
H = `@container (min-width:${s})`;
|
|
1624
|
+
} else {
|
|
1625
|
+
const s = N.slice(1);
|
|
1626
|
+
H = `@container ${je[s] || `(min-width:${s})`}`;
|
|
1627
|
+
}
|
|
1628
|
+
const $e = (s) => w && H ? `${w}${H}{${s}}` : w ? `${w}{${s}}` : H ? `${H}{${s}}` : s;
|
|
1629
|
+
return J.map($e).join("");
|
|
1630
|
+
};
|
|
1631
|
+
for (const p of t) {
|
|
1632
|
+
const g = n(p), h = g.slice(0, -1), x = g[g.length - 1];
|
|
1633
|
+
if (Ie(x) !== null) {
|
|
1634
|
+
if (h.length === 0)
|
|
1635
|
+
r[0].push(`${te(p)}{}`);
|
|
1636
|
+
else {
|
|
1637
|
+
const d = Ae(x);
|
|
1638
|
+
if (!d) continue;
|
|
1639
|
+
const m = te(p), C = te(x);
|
|
1640
|
+
let P = d.replace(
|
|
1641
|
+
new RegExp(Ue(C), "g"),
|
|
1642
|
+
m
|
|
1643
|
+
);
|
|
1644
|
+
const L = h.filter(
|
|
1645
|
+
(z) => oe.includes(z)
|
|
1646
|
+
);
|
|
1647
|
+
if (L.length > 0) {
|
|
1648
|
+
const z = L[L.length - 1];
|
|
1649
|
+
P = `${`@media ${re[z]}`}{${P}}`;
|
|
1650
|
+
}
|
|
1651
|
+
h.includes("dark") && (P = `@media (prefers-color-scheme: dark){${P}}`);
|
|
1652
|
+
const M = $(h);
|
|
1653
|
+
r[M].push(P);
|
|
1654
|
+
}
|
|
1655
|
+
continue;
|
|
1656
|
+
}
|
|
1657
|
+
let k = -1;
|
|
1658
|
+
for (let d = g.length - 1; d >= 0; d--) {
|
|
1659
|
+
const m = g.slice(d).join(":");
|
|
1660
|
+
if (ke(m)) {
|
|
1661
|
+
k = d;
|
|
1662
|
+
break;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
if (k >= 0) {
|
|
1666
|
+
const d = g.slice(k).join(":"), m = g.slice(0, k), C = ke(d);
|
|
1667
|
+
if (!C) continue;
|
|
1668
|
+
if (m.length === 0) {
|
|
1669
|
+
r[0].push(C);
|
|
1670
|
+
continue;
|
|
1671
|
+
}
|
|
1672
|
+
const P = ve(p), L = ve(d), M = C.replace(
|
|
1673
|
+
new RegExp(
|
|
1674
|
+
`\\.${L.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`,
|
|
1675
|
+
"g"
|
|
1676
|
+
),
|
|
1677
|
+
`.${P}`
|
|
1678
|
+
), z = /(.+?)\s+(.+?)\{([^}]+)\}/g, D = [...M.matchAll(z)];
|
|
1679
|
+
if (D.length === 0) {
|
|
1680
|
+
r[0].push(C);
|
|
1681
|
+
continue;
|
|
1682
|
+
}
|
|
1683
|
+
const I = $(m), V = {
|
|
1684
|
+
hover: ":hover",
|
|
1685
|
+
focus: ":focus",
|
|
1686
|
+
active: ":active",
|
|
1687
|
+
visited: ":visited",
|
|
1688
|
+
disabled: ":disabled",
|
|
1689
|
+
checked: ":checked",
|
|
1690
|
+
first: ":first-child",
|
|
1691
|
+
last: ":last-child",
|
|
1692
|
+
odd: ":nth-child(odd)",
|
|
1693
|
+
even: ":nth-child(even)",
|
|
1694
|
+
"focus-within": ":focus-within",
|
|
1695
|
+
"focus-visible": ":focus-visible"
|
|
1696
|
+
}, J = [], Q = [], X = [], B = [], N = [];
|
|
1697
|
+
let Z = !1;
|
|
1698
|
+
for (const w of m)
|
|
1699
|
+
w.startsWith("group-") || w.startsWith("peer-") ? J.push(w) : w === "dark" || w === "dark-class" ? Z = !0 : oe.includes(w) ? B.push(w) : w.startsWith("@") && (le.includes(w.slice(1)) || w.match(/^@\[.+\]$/)) ? N.push(w) : w.startsWith("[") && w.endsWith("]") ? X.push(w) : (V[w] || Se[w]) && Q.push(w);
|
|
1700
|
+
for (const w of D) {
|
|
1701
|
+
const [, H, $e, s] = w;
|
|
1702
|
+
let b = `${H} ${$e}`;
|
|
1703
|
+
for (const v of J)
|
|
1704
|
+
if (v.startsWith("group-")) {
|
|
1705
|
+
const u = v.slice(6);
|
|
1706
|
+
b = `.group${V[u] || `:${u}`} ${b}`;
|
|
1707
|
+
} else if (v.startsWith("peer-")) {
|
|
1708
|
+
const u = v.slice(5);
|
|
1709
|
+
b = `.peer${V[u] || `:${u}`}~${b}`;
|
|
1710
|
+
}
|
|
1711
|
+
if (Q.length > 0) {
|
|
1712
|
+
const v = Q.map((u) => V[u] || `:${u}`).join("");
|
|
1713
|
+
b = `${b}${v}`;
|
|
1714
|
+
}
|
|
1715
|
+
for (const v of X) {
|
|
1716
|
+
const u = Ce(v);
|
|
1717
|
+
if (u && u.includes("&")) {
|
|
1718
|
+
const O = u.indexOf("&"), Y = u.slice(0, O), se = u.slice(O + 1);
|
|
1719
|
+
b = `${Y}${b}${se}`;
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
let S = `${b}{${s}}`;
|
|
1723
|
+
if (Z && (S = `@media (prefers-color-scheme: dark){${S}}`), N.length > 0) {
|
|
1724
|
+
const v = N[N.length - 1];
|
|
1725
|
+
if (v.startsWith("@[") && v.endsWith("]")) {
|
|
1726
|
+
const u = v.slice(2, -1);
|
|
1727
|
+
/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(
|
|
1728
|
+
u
|
|
1729
|
+
) && (S = `@container (min-width:${u}){${S}}`);
|
|
1730
|
+
} else {
|
|
1731
|
+
const u = v.slice(1), Y = {
|
|
1732
|
+
xs: "20rem",
|
|
1733
|
+
sm: "24rem",
|
|
1734
|
+
md: "28rem",
|
|
1735
|
+
lg: "32rem",
|
|
1736
|
+
xl: "36rem",
|
|
1737
|
+
"2xl": "42rem",
|
|
1738
|
+
"3xl": "48rem",
|
|
1739
|
+
"4xl": "56rem",
|
|
1740
|
+
"5xl": "64rem",
|
|
1741
|
+
"6xl": "72rem",
|
|
1742
|
+
"7xl": "80rem"
|
|
1743
|
+
}[u];
|
|
1744
|
+
if (Y) {
|
|
1745
|
+
const se = p.match(/@([^/]+)\//)?.[1] || "";
|
|
1746
|
+
S = se ? `@container ${se} (min-width: ${Y}){${S}}` : `@container (min-width: ${Y}){${S}}`;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
if (B.length > 0) {
|
|
1751
|
+
const v = B[B.length - 1];
|
|
1752
|
+
S = `${`@media ${re[v]}`}{${S}}`;
|
|
1753
|
+
}
|
|
1754
|
+
r[I].push(S);
|
|
1755
|
+
}
|
|
1756
|
+
continue;
|
|
1757
|
+
}
|
|
1758
|
+
const _ = g.find(
|
|
1759
|
+
(d) => pe[d.replace(/^!/, "")] || fe(d.replace(/^!/, "")) || ue(d.replace(/^!/, "")) || he(d.replace(/^!/, "")) || ge(d.replace(/^!/, "")) || me(d.replace(/^!/, "")) || ie(d.replace(/^!/, ""))
|
|
1760
|
+
);
|
|
1761
|
+
if (!_) continue;
|
|
1762
|
+
const W = g.indexOf(_), E = W >= 0 ? g.slice(0, W) : [], A = $(E), R = l(p);
|
|
1763
|
+
R && r[A].push(R);
|
|
1764
|
+
}
|
|
1765
|
+
const j = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
|
|
1766
|
+
for (const p of t)
|
|
1767
|
+
if (j.test(p)) {
|
|
1768
|
+
if (r.flat().join("").includes(te(p))) continue;
|
|
1769
|
+
const h = l(p);
|
|
1770
|
+
h && r[0].push(h);
|
|
1771
|
+
}
|
|
1772
|
+
const y = (p) => p.sort((g, h) => {
|
|
1773
|
+
const x = (A) => {
|
|
1774
|
+
const R = {
|
|
1775
|
+
sm: 640,
|
|
1776
|
+
md: 768,
|
|
1777
|
+
lg: 1024,
|
|
1778
|
+
xl: 1280,
|
|
1779
|
+
"2xl": 1536
|
|
1780
|
+
};
|
|
1781
|
+
for (const [d, m] of Object.entries(R))
|
|
1782
|
+
if (A.includes(`@media ${re[d]}`)) return m;
|
|
1783
|
+
return -1;
|
|
1784
|
+
}, T = (A) => {
|
|
1785
|
+
const R = {
|
|
1786
|
+
xs: 320,
|
|
1787
|
+
// 20rem
|
|
1788
|
+
sm: 384,
|
|
1789
|
+
// 24rem
|
|
1790
|
+
md: 448,
|
|
1791
|
+
// 28rem
|
|
1792
|
+
lg: 512,
|
|
1793
|
+
// 32rem
|
|
1794
|
+
xl: 576,
|
|
1795
|
+
// 36rem
|
|
1796
|
+
"2xl": 672,
|
|
1797
|
+
// 42rem
|
|
1798
|
+
"3xl": 768,
|
|
1799
|
+
// 48rem
|
|
1800
|
+
"4xl": 896,
|
|
1801
|
+
// 56rem
|
|
1802
|
+
"5xl": 1024,
|
|
1803
|
+
// 64rem
|
|
1804
|
+
"6xl": 1152,
|
|
1805
|
+
// 72rem
|
|
1806
|
+
"7xl": 1280
|
|
1807
|
+
// 80rem
|
|
1808
|
+
};
|
|
1809
|
+
for (const [d, m] of Object.entries(R))
|
|
1810
|
+
if (A.includes(`@container ${je[d]}`)) return m;
|
|
1811
|
+
if (A.includes("@container (min-width:")) {
|
|
1812
|
+
const d = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(A);
|
|
1813
|
+
if (d) {
|
|
1814
|
+
const m = parseFloat(d[1]), C = d[2];
|
|
1815
|
+
return C === "rem" || C === "em" ? m * 16 : m;
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
return -1;
|
|
1819
|
+
}, k = x(g), _ = x(h), W = T(g), E = T(h);
|
|
1820
|
+
return k >= 0 && _ >= 0 && k !== _ ? k - _ : W >= 0 && E >= 0 && W !== E ? W - E : 0;
|
|
1821
|
+
});
|
|
1822
|
+
r[2] = y(r[2]), r[3] = y(r[3]);
|
|
1823
|
+
const F = r.flat().join("");
|
|
1824
|
+
return ne.size >= Te && Array.from(ne.keys()).slice(
|
|
1825
|
+
0,
|
|
1826
|
+
Math.floor(Te / 2)
|
|
1827
|
+
).forEach((g) => ne.delete(g)), ne.set(e, { css: F, timestamp: Date.now() }), F;
|
|
1828
|
+
}
|
|
1829
|
+
const ae = {
|
|
1830
|
+
/** Simple fade in/out */
|
|
1831
|
+
fade: {
|
|
1832
|
+
enterFrom: "opacity-0",
|
|
1833
|
+
enterActive: "transition-opacity duration-300 ease-out",
|
|
1834
|
+
enterTo: "opacity-100",
|
|
1835
|
+
leaveFrom: "opacity-100",
|
|
1836
|
+
leaveActive: "transition-opacity duration-200 ease-in",
|
|
1837
|
+
leaveTo: "opacity-0"
|
|
1838
|
+
},
|
|
1839
|
+
/** Slide in from right */
|
|
1840
|
+
"slide-right": {
|
|
1841
|
+
enterFrom: "translate-x-[100%] opacity-0",
|
|
1842
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1843
|
+
enterTo: "translate-x-[0%] opacity-100",
|
|
1844
|
+
leaveFrom: "translate-x-[0%] opacity-100",
|
|
1845
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1846
|
+
leaveTo: "translate-x-[100%] opacity-0"
|
|
1847
|
+
},
|
|
1848
|
+
/** Slide in from left */
|
|
1849
|
+
"slide-left": {
|
|
1850
|
+
enterFrom: "translate-x-[-100%] opacity-0",
|
|
1851
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1852
|
+
enterTo: "translate-x-[0%] opacity-100",
|
|
1853
|
+
leaveFrom: "translate-x-[0%] opacity-100",
|
|
1854
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1855
|
+
leaveTo: "translate-x-[-100%] opacity-0"
|
|
1856
|
+
},
|
|
1857
|
+
/** Slide up from bottom */
|
|
1858
|
+
"slide-up": {
|
|
1859
|
+
enterFrom: "translate-y-[100%] opacity-0",
|
|
1860
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1861
|
+
enterTo: "translate-y-[0%] opacity-100",
|
|
1862
|
+
leaveFrom: "translate-y-[0%] opacity-100",
|
|
1863
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1864
|
+
leaveTo: "translate-y-[100%] opacity-0"
|
|
1865
|
+
},
|
|
1866
|
+
/** Slide down from top */
|
|
1867
|
+
"slide-down": {
|
|
1868
|
+
enterFrom: "translate-y-[-100%] opacity-0",
|
|
1869
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1870
|
+
enterTo: "translate-y-[0%] opacity-100",
|
|
1871
|
+
leaveFrom: "translate-y-[0%] opacity-100",
|
|
1872
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1873
|
+
leaveTo: "translate-y-[-100%] opacity-0"
|
|
1874
|
+
},
|
|
1875
|
+
/** Scale up from center */
|
|
1876
|
+
scale: {
|
|
1877
|
+
enterFrom: "scale-95 opacity-0",
|
|
1878
|
+
enterActive: "transition-all duration-200 ease-out",
|
|
1879
|
+
enterTo: "scale-100 opacity-100",
|
|
1880
|
+
leaveFrom: "scale-100 opacity-100",
|
|
1881
|
+
leaveActive: "transition-all duration-150 ease-in",
|
|
1882
|
+
leaveTo: "scale-95 opacity-0"
|
|
1883
|
+
},
|
|
1884
|
+
/** Scale down to center */
|
|
1885
|
+
"scale-down": {
|
|
1886
|
+
enterFrom: "scale-105 opacity-0",
|
|
1887
|
+
enterActive: "transition-all duration-200 ease-out",
|
|
1888
|
+
enterTo: "scale-100 opacity-100",
|
|
1889
|
+
leaveFrom: "scale-100 opacity-100",
|
|
1890
|
+
leaveActive: "transition-all duration-150 ease-in",
|
|
1891
|
+
leaveTo: "scale-105 opacity-0"
|
|
1892
|
+
},
|
|
1893
|
+
/** Bounce effect */
|
|
1894
|
+
bounce: {
|
|
1895
|
+
enterFrom: "scale-0 opacity-0",
|
|
1896
|
+
enterActive: "transition-all duration-500 ease-out",
|
|
1897
|
+
enterTo: "scale-100 opacity-100",
|
|
1898
|
+
leaveFrom: "scale-100 opacity-100",
|
|
1899
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1900
|
+
leaveTo: "scale-0 opacity-0"
|
|
1901
|
+
},
|
|
1902
|
+
/** Zoom and fade */
|
|
1903
|
+
zoom: {
|
|
1904
|
+
enterFrom: "scale-0 opacity-0",
|
|
1905
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1906
|
+
enterTo: "scale-100 opacity-100",
|
|
1907
|
+
leaveFrom: "scale-100 opacity-100",
|
|
1908
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1909
|
+
leaveTo: "scale-0 opacity-0"
|
|
1910
|
+
},
|
|
1911
|
+
/** Flip in */
|
|
1912
|
+
flip: {
|
|
1913
|
+
enterFrom: "rotate-[90deg] opacity-0",
|
|
1914
|
+
enterActive: "transition-all duration-400 ease-out",
|
|
1915
|
+
enterTo: "rotate-[0deg] opacity-100",
|
|
1916
|
+
leaveFrom: "rotate-[0deg] opacity-100",
|
|
1917
|
+
leaveActive: "transition-all duration-300 ease-in",
|
|
1918
|
+
leaveTo: "rotate-[90deg] opacity-0"
|
|
1919
|
+
}
|
|
1920
|
+
};
|
|
1921
|
+
function rr(e, o) {
|
|
1922
|
+
const {
|
|
1923
|
+
preset: a,
|
|
1924
|
+
show: t,
|
|
1925
|
+
mode: r = "default",
|
|
1926
|
+
duration: i,
|
|
1927
|
+
appear: l = !1,
|
|
1928
|
+
css: $ = !0,
|
|
1929
|
+
name: n,
|
|
1930
|
+
enterFrom: c,
|
|
1931
|
+
enterActive: f,
|
|
1932
|
+
enterTo: j,
|
|
1933
|
+
leaveFrom: y,
|
|
1934
|
+
leaveActive: F,
|
|
1935
|
+
leaveTo: p,
|
|
1936
|
+
onBeforeEnter: g,
|
|
1937
|
+
onEnter: h,
|
|
1938
|
+
onAfterEnter: x,
|
|
1939
|
+
onEnterCancelled: T,
|
|
1940
|
+
onBeforeLeave: k,
|
|
1941
|
+
onLeave: _,
|
|
1942
|
+
onAfterLeave: W,
|
|
1943
|
+
onLeaveCancelled: E
|
|
1944
|
+
} = e;
|
|
1945
|
+
let A;
|
|
1946
|
+
a && ae[a] ? (A = { ...ae[a] }, c && (A.enterFrom = c), f && (A.enterActive = f), j && (A.enterTo = j), y && (A.leaveFrom = y), F && (A.leaveActive = F), p && (A.leaveTo = p)) : A = {
|
|
1947
|
+
enterFrom: c,
|
|
1948
|
+
enterActive: f,
|
|
1949
|
+
enterTo: j,
|
|
1950
|
+
leaveFrom: y,
|
|
1951
|
+
leaveActive: F,
|
|
1952
|
+
leaveTo: p
|
|
1953
|
+
};
|
|
1954
|
+
const R = n || (a ? `transition-${a}` : "transition"), d = Fe(t ? o : [], R);
|
|
1955
|
+
return d._transition = {
|
|
1956
|
+
name: R,
|
|
1957
|
+
classes: A,
|
|
1958
|
+
mode: r,
|
|
1959
|
+
duration: i,
|
|
1960
|
+
appear: l,
|
|
1961
|
+
css: $,
|
|
1962
|
+
state: t ? "visible" : "hidden",
|
|
1963
|
+
hooks: {
|
|
1964
|
+
onBeforeEnter: g,
|
|
1965
|
+
onEnter: h,
|
|
1966
|
+
onAfterEnter: x,
|
|
1967
|
+
onEnterCancelled: T,
|
|
1968
|
+
onBeforeLeave: k,
|
|
1969
|
+
onLeave: _,
|
|
1970
|
+
onAfterLeave: W,
|
|
1971
|
+
onLeaveCancelled: E
|
|
1972
|
+
}
|
|
1973
|
+
}, d;
|
|
1974
|
+
}
|
|
1975
|
+
function or(e, o) {
|
|
1976
|
+
const {
|
|
1977
|
+
tag: a = "div",
|
|
1978
|
+
moveClass: t = "transition-transform duration-300",
|
|
1979
|
+
preset: r,
|
|
1980
|
+
show: i = !0,
|
|
1981
|
+
mode: l = "default",
|
|
1982
|
+
duration: $,
|
|
1983
|
+
appear: n = !1,
|
|
1984
|
+
css: c = !0,
|
|
1985
|
+
name: f,
|
|
1986
|
+
class: j,
|
|
1987
|
+
style: y,
|
|
1988
|
+
enterFrom: F,
|
|
1989
|
+
enterActive: p,
|
|
1990
|
+
enterTo: g,
|
|
1991
|
+
leaveFrom: h,
|
|
1992
|
+
leaveActive: x,
|
|
1993
|
+
leaveTo: T,
|
|
1994
|
+
onBeforeEnter: k,
|
|
1995
|
+
onEnter: _,
|
|
1996
|
+
onAfterEnter: W,
|
|
1997
|
+
onEnterCancelled: E,
|
|
1998
|
+
onBeforeLeave: A,
|
|
1999
|
+
onLeave: R,
|
|
2000
|
+
onAfterLeave: d,
|
|
2001
|
+
onLeaveCancelled: m
|
|
2002
|
+
} = e;
|
|
2003
|
+
let C;
|
|
2004
|
+
r && ae[r] ? (C = { ...ae[r] }, F && (C.enterFrom = F), p && (C.enterActive = p), g && (C.enterTo = g), h && (C.leaveFrom = h), x && (C.leaveActive = x), T && (C.leaveTo = T)) : C = {
|
|
2005
|
+
enterFrom: F,
|
|
2006
|
+
enterActive: p,
|
|
2007
|
+
enterTo: g,
|
|
2008
|
+
leaveFrom: h,
|
|
2009
|
+
leaveActive: x,
|
|
2010
|
+
leaveTo: T
|
|
2011
|
+
};
|
|
2012
|
+
const P = f || (r ? `transition-group-${r}` : "transition-group"), L = [];
|
|
2013
|
+
for (const z of i ? o : [])
|
|
2014
|
+
if (z && typeof z == "object" && z.tag === "#anchor") {
|
|
2015
|
+
const D = Array.isArray(z.children) ? z.children : [];
|
|
2016
|
+
for (const I of D)
|
|
2017
|
+
if (I && typeof I == "object") {
|
|
2018
|
+
const V = {
|
|
2019
|
+
...I,
|
|
2020
|
+
key: z.key || I.key,
|
|
2021
|
+
props: {
|
|
2022
|
+
...I.props,
|
|
2023
|
+
_anchorKey: z.key
|
|
2024
|
+
// Preserve original anchor key
|
|
2025
|
+
}
|
|
2026
|
+
};
|
|
2027
|
+
L.push(V);
|
|
2028
|
+
} else
|
|
2029
|
+
L.push(I);
|
|
2030
|
+
} else
|
|
2031
|
+
L.push(z);
|
|
2032
|
+
const M = (() => {
|
|
2033
|
+
if (y)
|
|
2034
|
+
return typeof y == "string" ? y : Object.entries(y).map(([z, D]) => `${z}: ${D}`).join("; ");
|
|
2035
|
+
})();
|
|
2036
|
+
return {
|
|
2037
|
+
tag: a,
|
|
2038
|
+
children: L,
|
|
2039
|
+
key: P,
|
|
2040
|
+
props: {
|
|
2041
|
+
attrs: {
|
|
2042
|
+
...j ? { class: j } : {},
|
|
2043
|
+
...M ? { style: M } : {}
|
|
2044
|
+
},
|
|
2045
|
+
_transitionGroup: {
|
|
2046
|
+
name: P,
|
|
2047
|
+
classes: C,
|
|
2048
|
+
moveClass: t,
|
|
2049
|
+
mode: l,
|
|
2050
|
+
duration: $,
|
|
2051
|
+
appear: n,
|
|
2052
|
+
css: c,
|
|
2053
|
+
hooks: {
|
|
2054
|
+
onBeforeEnter: k,
|
|
2055
|
+
onEnter: _,
|
|
2056
|
+
onAfterEnter: W,
|
|
2057
|
+
onEnterCancelled: E,
|
|
2058
|
+
onBeforeLeave: A,
|
|
2059
|
+
onLeave: R,
|
|
2060
|
+
onAfterLeave: d,
|
|
2061
|
+
onLeaveCancelled: m
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2067
|
+
function tr(e) {
|
|
2068
|
+
return { ...e };
|
|
2069
|
+
}
|
|
2070
|
+
let G = null;
|
|
2071
|
+
function Xe() {
|
|
2072
|
+
if (!G) {
|
|
2073
|
+
if (typeof CSSStyleSheet > "u")
|
|
2074
|
+
return G = {
|
|
2075
|
+
cssRules: [],
|
|
2076
|
+
replaceSync: () => {
|
|
2077
|
+
},
|
|
2078
|
+
toString: () => ""
|
|
2079
|
+
}, G;
|
|
2080
|
+
const e = [];
|
|
2081
|
+
Object.values(ae).forEach((t) => {
|
|
2082
|
+
t.enterFrom && e.push(t.enterFrom), t.enterActive && e.push(t.enterActive), t.enterTo && e.push(t.enterTo), t.leaveFrom && e.push(t.leaveFrom), t.leaveActive && e.push(t.leaveActive), t.leaveTo && e.push(t.leaveTo);
|
|
2083
|
+
});
|
|
2084
|
+
const o = `<div class="${e.join(" ")}"></div>`, a = Ge(o);
|
|
2085
|
+
try {
|
|
2086
|
+
G = new CSSStyleSheet(), G.replaceSync(a);
|
|
2087
|
+
} catch {
|
|
2088
|
+
G = {
|
|
2089
|
+
cssRules: [],
|
|
2090
|
+
replaceSync: () => {
|
|
2091
|
+
},
|
|
2092
|
+
toString: () => a || ""
|
|
2093
|
+
};
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
return G;
|
|
2097
|
+
}
|
|
2098
|
+
function Je() {
|
|
2099
|
+
if (!(typeof window > "u" || typeof CSSStyleSheet > "u"))
|
|
2100
|
+
try {
|
|
2101
|
+
Xe();
|
|
2102
|
+
} catch {
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
Je();
|
|
2106
|
+
export {
|
|
2107
|
+
rr as T,
|
|
2108
|
+
Ye as a,
|
|
2109
|
+
Xe as b,
|
|
2110
|
+
ye as c,
|
|
2111
|
+
_e as d,
|
|
2112
|
+
or as e,
|
|
2113
|
+
tr as f,
|
|
2114
|
+
Pe as g,
|
|
2115
|
+
Ge as j,
|
|
2116
|
+
we as m,
|
|
2117
|
+
er as s,
|
|
2118
|
+
ae as t
|
|
2119
|
+
};
|
|
2120
|
+
//# sourceMappingURL=transitions-CZ21fzhh.js.map
|