@jasonshimmy/custom-elements-runtime 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -7
- package/dist/css-utils-Bn-dO44e.js +203 -0
- package/dist/{css-utils-CC43BbEy.js.map → css-utils-Bn-dO44e.js.map} +1 -1
- package/dist/{css-utils-CC43BbEy.js → css-utils-CFeP8SK1.cjs} +5 -71
- package/dist/{css-utils-mgjmH8qX.cjs.map → css-utils-CFeP8SK1.cjs.map} +1 -1
- package/dist/custom-elements-runtime.cjs.js +3 -4
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.colors.cjs.js +1 -2
- package/dist/custom-elements-runtime.colors.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.colors.es.js +277 -277
- package/dist/custom-elements-runtime.colors.es.js.map +1 -1
- package/dist/custom-elements-runtime.directive-enhancements.cjs.js +1 -2
- package/dist/custom-elements-runtime.directive-enhancements.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.directive-enhancements.es.js +106 -122
- package/dist/custom-elements-runtime.directive-enhancements.es.js.map +1 -1
- package/dist/custom-elements-runtime.directives.cjs.js +1 -2
- package/dist/custom-elements-runtime.directives.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.directives.es.js +60 -65
- package/dist/custom-elements-runtime.directives.es.js.map +1 -1
- package/dist/custom-elements-runtime.dom-jit-css.cjs.js +1 -7
- package/dist/custom-elements-runtime.dom-jit-css.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.dom-jit-css.es.js +103 -115
- package/dist/custom-elements-runtime.dom-jit-css.es.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +206 -253
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.event-bus.cjs.js +1 -2
- package/dist/custom-elements-runtime.event-bus.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.event-bus.es.js +102 -108
- package/dist/custom-elements-runtime.event-bus.es.js.map +1 -1
- package/dist/custom-elements-runtime.jit-css.cjs.js +1 -2
- package/dist/custom-elements-runtime.jit-css.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.jit-css.es.js +14 -32
- package/dist/custom-elements-runtime.jit-css.es.js.map +1 -1
- package/dist/custom-elements-runtime.router.cjs.js +20 -21
- package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.router.es.js +866 -926
- package/dist/custom-elements-runtime.router.es.js.map +1 -1
- package/dist/custom-elements-runtime.ssr-middleware.cjs.js +3 -4
- package/dist/custom-elements-runtime.ssr-middleware.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.ssr-middleware.es.js +67 -73
- package/dist/custom-elements-runtime.ssr-middleware.es.js.map +1 -1
- package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
- package/dist/custom-elements-runtime.ssr.es.js +3 -14
- package/dist/custom-elements-runtime.store.cjs.js +1 -2
- package/dist/custom-elements-runtime.store.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.store.es.js +32 -33
- package/dist/custom-elements-runtime.store.es.js.map +1 -1
- package/dist/custom-elements-runtime.transitions.cjs.js +1 -2
- package/dist/custom-elements-runtime.transitions.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.transitions.es.js +200 -210
- package/dist/custom-elements-runtime.transitions.es.js.map +1 -1
- package/dist/custom-elements-runtime.vite-plugin.cjs.js +4 -2
- package/dist/custom-elements-runtime.vite-plugin.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.vite-plugin.es.js +155 -78
- package/dist/custom-elements-runtime.vite-plugin.es.js.map +1 -1
- package/dist/helpers-DcEpRwq5.cjs +5 -0
- package/dist/helpers-DcEpRwq5.cjs.map +1 -0
- package/dist/helpers-tJgb4Qve.js +693 -0
- package/dist/helpers-tJgb4Qve.js.map +1 -0
- package/dist/hooks-CEUnvtsA.js +407 -0
- package/dist/hooks-CEUnvtsA.js.map +1 -0
- package/dist/hooks-CNfugc95.cjs +2 -0
- package/dist/hooks-CNfugc95.cjs.map +1 -0
- package/dist/logger-DIJ0UH3R.js +36 -0
- package/dist/{logger-L25axmB-.js.map → logger-DIJ0UH3R.js.map} +1 -1
- package/dist/logger-Dkht1dCX.cjs +2 -0
- package/dist/{logger-BYIN7ysT.cjs.map → logger-Dkht1dCX.cjs.map} +1 -1
- package/dist/namespace-helpers-CIUkG8Mn.js +56 -0
- package/dist/{namespace-helpers-BucDdgz_.js.map → namespace-helpers-CIUkG8Mn.js.map} +1 -1
- package/dist/namespace-helpers-yYIb7INq.cjs +2 -0
- package/dist/{namespace-helpers-Bf7rm9JV.cjs.map → namespace-helpers-yYIb7INq.cjs.map} +1 -1
- package/dist/runtime/tag-utils.d.ts +11 -0
- package/dist/ssr-BpYy9XlW.js +170 -0
- package/dist/{ssr-H9GDwbTy.js.map → ssr-BpYy9XlW.js.map} +1 -1
- package/dist/ssr-CFabTOyi.cjs +4 -0
- package/dist/{ssr-DRsGduIK.cjs.map → ssr-CFabTOyi.cjs.map} +1 -1
- package/dist/style-A8l3aQ52.cjs +55 -0
- package/dist/{style-Bjn8zDiZ.cjs.map → style-A8l3aQ52.cjs.map} +1 -1
- package/dist/style-DSSoCbC9.js +1877 -0
- package/dist/{style-DuDoj_xK.js.map → style-DSSoCbC9.js.map} +1 -1
- package/dist/tag-utils-CoSXTr1F.js +10 -0
- package/dist/tag-utils-CoSXTr1F.js.map +1 -0
- package/dist/tag-utils-XJ3dkcPQ.cjs +2 -0
- package/dist/tag-utils-XJ3dkcPQ.cjs.map +1 -0
- package/dist/template-compiler-B4B_jAPN.cjs +19 -0
- package/dist/{template-compiler-BB4JJdqk.cjs.map → template-compiler-B4B_jAPN.cjs.map} +1 -1
- package/dist/template-compiler-C3h8_vbE.js +3044 -0
- package/dist/{template-compiler-Cs5axmn4.js.map → template-compiler-C3h8_vbE.js.map} +1 -1
- package/dist/vite-plugin.d.ts +96 -2
- package/package.json +8 -8
- package/dist/css-utils-mgjmH8qX.cjs +0 -577
- package/dist/hooks-_3xP4G2N.js +0 -1189
- package/dist/hooks-_3xP4G2N.js.map +0 -1
- package/dist/hooks-fYQgZk2g.cjs +0 -7
- package/dist/hooks-fYQgZk2g.cjs.map +0 -1
- package/dist/logger-BYIN7ysT.cjs +0 -3
- package/dist/logger-L25axmB-.js +0 -41
- package/dist/namespace-helpers-Bf7rm9JV.cjs +0 -3
- package/dist/namespace-helpers-BucDdgz_.js +0 -61
- package/dist/ssr-DRsGduIK.cjs +0 -5
- package/dist/ssr-H9GDwbTy.js +0 -172
- package/dist/style-Bjn8zDiZ.cjs +0 -56
- package/dist/style-DuDoj_xK.js +0 -1972
- package/dist/template-compiler-BB4JJdqk.cjs +0 -23
- package/dist/template-compiler-Cs5axmn4.js +0 -3236
|
@@ -0,0 +1,1877 @@
|
|
|
1
|
+
import { c as e, d as t, l as n, p as r, s as i, t as a } from "./css-utils-Bn-dO44e.js";
|
|
2
|
+
import { extendedColors as o } from "./custom-elements-runtime.colors.es.js";
|
|
3
|
+
//#region src/lib/runtime/prose.ts
|
|
4
|
+
var s = {
|
|
5
|
+
base: {
|
|
6
|
+
fontSize: "1rem",
|
|
7
|
+
lineHeight: "1.75",
|
|
8
|
+
p: "1.25em",
|
|
9
|
+
lead: "1.25em",
|
|
10
|
+
h1: "2.25em",
|
|
11
|
+
h2: "1.5em",
|
|
12
|
+
h3: "1.25em",
|
|
13
|
+
h4: "1em",
|
|
14
|
+
blockquote: "1.6em",
|
|
15
|
+
figure: "2em",
|
|
16
|
+
code: "0.875em",
|
|
17
|
+
pre: "0.875em",
|
|
18
|
+
ol: "1.25em",
|
|
19
|
+
ul: "1.25em",
|
|
20
|
+
li: "0.5em",
|
|
21
|
+
hr: "3em",
|
|
22
|
+
table: "2em"
|
|
23
|
+
},
|
|
24
|
+
sm: {
|
|
25
|
+
fontSize: "0.875rem",
|
|
26
|
+
lineHeight: "1.7142857",
|
|
27
|
+
p: "1.1428571em",
|
|
28
|
+
lead: "1.1428571em",
|
|
29
|
+
h1: "2.1428571em",
|
|
30
|
+
h2: "1.4285714em",
|
|
31
|
+
h3: "1.2857143em",
|
|
32
|
+
h4: "1em",
|
|
33
|
+
blockquote: "1.4285714em",
|
|
34
|
+
figure: "1.7142857em",
|
|
35
|
+
code: "0.8571429em",
|
|
36
|
+
pre: "0.8571429em",
|
|
37
|
+
ol: "1.1428571em",
|
|
38
|
+
ul: "1.1428571em",
|
|
39
|
+
li: "0.4285714em",
|
|
40
|
+
hr: "2.5714286em",
|
|
41
|
+
table: "1.7142857em"
|
|
42
|
+
},
|
|
43
|
+
lg: {
|
|
44
|
+
fontSize: "1.125rem",
|
|
45
|
+
lineHeight: "1.7777778",
|
|
46
|
+
p: "1.3333333em",
|
|
47
|
+
lead: "1.3333333em",
|
|
48
|
+
h1: "2.6666667em",
|
|
49
|
+
h2: "1.7777778em",
|
|
50
|
+
h3: "1.5555556em",
|
|
51
|
+
h4: "1.1111111em",
|
|
52
|
+
blockquote: "1.7777778em",
|
|
53
|
+
figure: "2.2222222em",
|
|
54
|
+
code: "0.8888889em",
|
|
55
|
+
pre: "0.8888889em",
|
|
56
|
+
ol: "1.3333333em",
|
|
57
|
+
ul: "1.3333333em",
|
|
58
|
+
li: "0.5555556em",
|
|
59
|
+
hr: "3.3333333em",
|
|
60
|
+
table: "2.2222222em"
|
|
61
|
+
},
|
|
62
|
+
xl: {
|
|
63
|
+
fontSize: "1.25rem",
|
|
64
|
+
lineHeight: "1.8",
|
|
65
|
+
p: "1.4em",
|
|
66
|
+
lead: "1.4em",
|
|
67
|
+
h1: "2.8em",
|
|
68
|
+
h2: "1.8em",
|
|
69
|
+
h3: "1.6em",
|
|
70
|
+
h4: "1.2em",
|
|
71
|
+
blockquote: "1.8em",
|
|
72
|
+
figure: "2.4em",
|
|
73
|
+
code: "0.9em",
|
|
74
|
+
pre: "0.9em",
|
|
75
|
+
ol: "1.4em",
|
|
76
|
+
ul: "1.4em",
|
|
77
|
+
li: "0.6em",
|
|
78
|
+
hr: "3.6em",
|
|
79
|
+
table: "2.4em"
|
|
80
|
+
},
|
|
81
|
+
"2xl": {
|
|
82
|
+
fontSize: "1.5rem",
|
|
83
|
+
lineHeight: "1.6666667",
|
|
84
|
+
p: "1.3333333em",
|
|
85
|
+
lead: "1.3333333em",
|
|
86
|
+
h1: "2.6666667em",
|
|
87
|
+
h2: "1.7777778em",
|
|
88
|
+
h3: "1.5555556em",
|
|
89
|
+
h4: "1.2222222em",
|
|
90
|
+
blockquote: "1.7777778em",
|
|
91
|
+
figure: "2.2222222em",
|
|
92
|
+
code: "0.8333333em",
|
|
93
|
+
pre: "0.8333333em",
|
|
94
|
+
ol: "1.3333333em",
|
|
95
|
+
ul: "1.3333333em",
|
|
96
|
+
li: "0.5555556em",
|
|
97
|
+
hr: "3.1111111em",
|
|
98
|
+
table: "2.2222222em"
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
function c(e) {
|
|
102
|
+
let t = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
|
|
103
|
+
if (!t) return null;
|
|
104
|
+
let n = s[t[1] || "base"], r = `.${e}`, i = [];
|
|
105
|
+
return i.push(`${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:${n.fontSize};line-height:${n.lineHeight};max-width:65ch;}`), i.push(`${r} p:not(.not-prose):not(.not-prose *){margin:${n.p} 0;}`), i.push(`${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:${n.lead};margin-bottom:${n.lead};color:var(--cer-prose-lead);}`), i.push(`${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;}`), i.push(`${r} h1:not(.not-prose):not(.not-prose *){font-size:${n.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`), i.push(`${r} h2:not(.not-prose):not(.not-prose *){font-size:${n.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`), i.push(`${r} h3:not(.not-prose):not(.not-prose *){font-size:${n.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`), i.push(`${r} h4:not(.not-prose):not(.not-prose *){font-size:${n.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`), i.push(`${r} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`), i.push(`${r} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`), i.push(`${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;}`), i.push(`${r} a:not(.not-prose):not(.not-prose *):hover,${r} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`), i.push(`${r} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`), i.push(`${r} em:not(.not-prose):not(.not-prose *){font-style:italic;}`), i.push(`${r} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${n.ol};margin-bottom:${n.ol};padding-left:1.625em;}`), i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`), i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`), i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`), i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`), i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${n.li};}`), i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`), i.push(`${r} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${n.ul};margin-bottom:${n.ul};padding-left:1.625em;}`), i.push(`${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${n.li};}`), i.push(`${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`), i.push(`${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:${n.ol};}`), i.push(`${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:${n.ol};}`), i.push(`${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;}`), i.push(`${r} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${n.ol};margin-bottom:${n.ol};}`), i.push(`${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:${n.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`), i.push(`${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:${n.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;}`), i.push(`${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;}`), i.push(`${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:${n.blockquote};margin-bottom:${n.blockquote};padding-left:1em;}`), i.push(`${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`), i.push(`${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`), i.push(`${r} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${n.hr};margin-bottom:${n.hr};}`), i.push(`${r} figure:not(.not-prose):not(.not-prose *){margin-top:${n.figure};margin-bottom:${n.figure};}`), i.push(`${r} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`), i.push(`${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;}`), i.push(`${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:${n.figure};margin-bottom:${n.figure};max-width:100%;height:auto;}`), i.push(`${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;}`), i.push(`${r} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${n.table};margin-bottom:${n.table};font-size:0.875em;line-height:1.7142857;}`), i.push(`${r} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`), i.push(`${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;}`), i.push(`${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);}`), i.push(`${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`), i.push(`${r} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`), i.join("");
|
|
106
|
+
}
|
|
107
|
+
var l = {
|
|
108
|
+
headings: "h1,h2,h3,h4,h5,h6,th",
|
|
109
|
+
h1: "h1",
|
|
110
|
+
h2: "h2",
|
|
111
|
+
h3: "h3",
|
|
112
|
+
h4: "h4",
|
|
113
|
+
h5: "h5",
|
|
114
|
+
h6: "h6",
|
|
115
|
+
p: "p",
|
|
116
|
+
a: "a",
|
|
117
|
+
blockquote: "blockquote",
|
|
118
|
+
figure: "figure",
|
|
119
|
+
figcaption: "figcaption",
|
|
120
|
+
strong: "strong",
|
|
121
|
+
em: "em",
|
|
122
|
+
kbd: "kbd",
|
|
123
|
+
code: "code",
|
|
124
|
+
pre: "pre",
|
|
125
|
+
ol: "ol",
|
|
126
|
+
ul: "ul",
|
|
127
|
+
li: "li",
|
|
128
|
+
dl: "dl",
|
|
129
|
+
dt: "dt",
|
|
130
|
+
dd: "dd",
|
|
131
|
+
table: "table",
|
|
132
|
+
thead: "thead",
|
|
133
|
+
tbody: "tbody",
|
|
134
|
+
tr: "tr",
|
|
135
|
+
th: "th",
|
|
136
|
+
td: "td",
|
|
137
|
+
img: "img",
|
|
138
|
+
picture: "picture",
|
|
139
|
+
video: "video",
|
|
140
|
+
hr: "hr",
|
|
141
|
+
lead: "[class~=\"lead\"]"
|
|
142
|
+
};
|
|
143
|
+
function u(e, t, n, r, a, o, s, c) {
|
|
144
|
+
let u = e.match(/^prose-([a-z0-9]+):(.+)$/);
|
|
145
|
+
if (!u) return null;
|
|
146
|
+
let [, d, f] = u, p = l[d];
|
|
147
|
+
if (!p) return null;
|
|
148
|
+
let m = t[f] ?? n(f) ?? r(f) ?? a(f) ?? o(f) ?? s(f) ?? c(f);
|
|
149
|
+
if (!m) return null;
|
|
150
|
+
let h = i(e);
|
|
151
|
+
return p.split(",").map((e) => `${`.${h} ${e.trim()}:not(.not-prose):not(.not-prose *)`}{${m}}`).join("");
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/lib/runtime/style.ts
|
|
155
|
+
var d = null, f = /* @__PURE__ */ new Set(), p = "", m = "";
|
|
156
|
+
function h() {
|
|
157
|
+
let e = Array.from(f).sort().join(",");
|
|
158
|
+
if (e === m) return;
|
|
159
|
+
m = e;
|
|
160
|
+
let n = "";
|
|
161
|
+
for (let e of f) {
|
|
162
|
+
let t = c(e);
|
|
163
|
+
t && (n += t);
|
|
164
|
+
}
|
|
165
|
+
if (p = t(n), d && typeof d.replaceSync == "function" && n) try {
|
|
166
|
+
d.replaceSync(p);
|
|
167
|
+
} catch {}
|
|
168
|
+
}
|
|
169
|
+
function g() {
|
|
170
|
+
return f.size === 0 ? null : (d || (typeof CSSStyleSheet > "u" ? d = {
|
|
171
|
+
cssRules: [],
|
|
172
|
+
replaceSync: () => {},
|
|
173
|
+
toString: () => p
|
|
174
|
+
} : (d = new CSSStyleSheet(), d.toString = () => p), m = ""), h(), d);
|
|
175
|
+
}
|
|
176
|
+
function _(e) {
|
|
177
|
+
let t = !f.has(e);
|
|
178
|
+
f.add(e), t && d && h();
|
|
179
|
+
}
|
|
180
|
+
var v = Object.fromEntries(Object.entries({
|
|
181
|
+
neutral: {
|
|
182
|
+
50: "#fafafa",
|
|
183
|
+
100: "#f4f4f5",
|
|
184
|
+
200: "#e4e4e7",
|
|
185
|
+
300: "#d4d4d8",
|
|
186
|
+
400: "#9f9fa9",
|
|
187
|
+
500: "#71717b",
|
|
188
|
+
600: "#52525c",
|
|
189
|
+
700: "#3f3f46",
|
|
190
|
+
800: "#27272a",
|
|
191
|
+
900: "#18181b",
|
|
192
|
+
950: "#09090b"
|
|
193
|
+
},
|
|
194
|
+
primary: {
|
|
195
|
+
50: "#eff6ff",
|
|
196
|
+
100: "#dbeafe",
|
|
197
|
+
200: "#bfdbfe",
|
|
198
|
+
300: "#93c5fd",
|
|
199
|
+
400: "#60a5fa",
|
|
200
|
+
500: "#3b82f6",
|
|
201
|
+
600: "#2563eb",
|
|
202
|
+
700: "#1d4ed8",
|
|
203
|
+
800: "#1e40af",
|
|
204
|
+
900: "#1e3a8a",
|
|
205
|
+
950: "#172554"
|
|
206
|
+
},
|
|
207
|
+
secondary: {
|
|
208
|
+
50: "#eef2ff",
|
|
209
|
+
100: "#e0e7ff",
|
|
210
|
+
200: "#c7d2fe",
|
|
211
|
+
300: "#a5b4fc",
|
|
212
|
+
400: "#818cf8",
|
|
213
|
+
500: "#6366f1",
|
|
214
|
+
600: "#4f46e5",
|
|
215
|
+
700: "#4338ca",
|
|
216
|
+
800: "#3730a3",
|
|
217
|
+
900: "#312e81",
|
|
218
|
+
950: "#1e1b4b"
|
|
219
|
+
},
|
|
220
|
+
success: {
|
|
221
|
+
50: "#f0fdf4",
|
|
222
|
+
100: "#dcfce7",
|
|
223
|
+
200: "#bbf7d0",
|
|
224
|
+
300: "#86efac",
|
|
225
|
+
400: "#4ade80",
|
|
226
|
+
500: "#22c55e",
|
|
227
|
+
600: "#16a34a",
|
|
228
|
+
700: "#15803d",
|
|
229
|
+
800: "#166534",
|
|
230
|
+
900: "#14532d",
|
|
231
|
+
950: "#052e16"
|
|
232
|
+
},
|
|
233
|
+
info: {
|
|
234
|
+
50: "#f0f9ff",
|
|
235
|
+
100: "#e0f2fe",
|
|
236
|
+
200: "#bae6fd",
|
|
237
|
+
300: "#7dd3fc",
|
|
238
|
+
400: "#38bdf8",
|
|
239
|
+
500: "#0ea5e9",
|
|
240
|
+
600: "#0284c7",
|
|
241
|
+
700: "#0369a1",
|
|
242
|
+
800: "#075985",
|
|
243
|
+
900: "#0c4a6e",
|
|
244
|
+
950: "#082f49"
|
|
245
|
+
},
|
|
246
|
+
warning: {
|
|
247
|
+
50: "#fffbeb",
|
|
248
|
+
100: "#fef3c7",
|
|
249
|
+
200: "#fde68a",
|
|
250
|
+
300: "#fcd34d",
|
|
251
|
+
400: "#fbbf24",
|
|
252
|
+
500: "#f59e0b",
|
|
253
|
+
600: "#d97706",
|
|
254
|
+
700: "#b45309",
|
|
255
|
+
800: "#92400e",
|
|
256
|
+
900: "#78350f",
|
|
257
|
+
950: "#451a03"
|
|
258
|
+
},
|
|
259
|
+
error: {
|
|
260
|
+
50: "#fef2f2",
|
|
261
|
+
100: "#fee2e2",
|
|
262
|
+
200: "#fecaca",
|
|
263
|
+
300: "#fca5a5",
|
|
264
|
+
400: "#f87171",
|
|
265
|
+
500: "#ef4444",
|
|
266
|
+
600: "#dc2626",
|
|
267
|
+
700: "#b91c1c",
|
|
268
|
+
800: "#991b1b",
|
|
269
|
+
900: "#7f1d1d",
|
|
270
|
+
950: "#450a0a"
|
|
271
|
+
},
|
|
272
|
+
white: { DEFAULT: "#ffffff" },
|
|
273
|
+
black: { DEFAULT: "#000000" },
|
|
274
|
+
transparent: { DEFAULT: "transparent" },
|
|
275
|
+
current: { DEFAULT: "currentColor" }
|
|
276
|
+
}).map(([e, t]) => [e, Object.fromEntries(Object.entries(t).map(([t, n]) => [t, `var(--cer-color-${e}${t === "DEFAULT" ? "" : `-${t}`}, ${n})`]))])), y = { ...v };
|
|
277
|
+
function b(e) {
|
|
278
|
+
if (y = { ...v }, e.extendedColors) {
|
|
279
|
+
let t = Array.isArray(e.extendedColors) ? e.extendedColors : Object.keys(o);
|
|
280
|
+
for (let e of t) {
|
|
281
|
+
let t = o[e];
|
|
282
|
+
!t || y[e] || (y[e] = Object.fromEntries(Object.entries(t).map(([t, n]) => [t, `var(--cer-color-${e}-${t}, ${n})`])));
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
if (e.customColors) for (let [t, n] of Object.entries(e.customColors)) y[t] = n;
|
|
286
|
+
}
|
|
287
|
+
var x = {}, S = !1;
|
|
288
|
+
function C() {
|
|
289
|
+
S ||= (a(D, le, g), !0);
|
|
290
|
+
}
|
|
291
|
+
var w = !1, T = /* @__PURE__ */ new WeakSet();
|
|
292
|
+
function E() {
|
|
293
|
+
return w;
|
|
294
|
+
}
|
|
295
|
+
function D(e) {
|
|
296
|
+
return w || T.has(e);
|
|
297
|
+
}
|
|
298
|
+
function O(e, t) {
|
|
299
|
+
if (T.add(e), t) {
|
|
300
|
+
let e = {
|
|
301
|
+
...x,
|
|
302
|
+
...t
|
|
303
|
+
};
|
|
304
|
+
JSON.stringify(e) !== JSON.stringify(x) && (x = e, b(x), $.clear());
|
|
305
|
+
}
|
|
306
|
+
C();
|
|
307
|
+
}
|
|
308
|
+
function k(e) {
|
|
309
|
+
w = !0, e && (x = {
|
|
310
|
+
...x,
|
|
311
|
+
...e
|
|
312
|
+
}), b(x), C(), $.clear();
|
|
313
|
+
}
|
|
314
|
+
function A() {
|
|
315
|
+
w = !1, T = /* @__PURE__ */ new WeakSet();
|
|
316
|
+
}
|
|
317
|
+
function j() {
|
|
318
|
+
return { ...x };
|
|
319
|
+
}
|
|
320
|
+
var M = {
|
|
321
|
+
"3xs": 64,
|
|
322
|
+
"2xs": 72,
|
|
323
|
+
xs: 80,
|
|
324
|
+
sm: 96,
|
|
325
|
+
md: 112,
|
|
326
|
+
lg: 128,
|
|
327
|
+
xl: 144,
|
|
328
|
+
"2xl": 168,
|
|
329
|
+
"3xl": 192,
|
|
330
|
+
"4xl": 224,
|
|
331
|
+
"5xl": 256,
|
|
332
|
+
"6xl": 288,
|
|
333
|
+
"7xl": 320
|
|
334
|
+
}, N = {
|
|
335
|
+
m: ["margin"],
|
|
336
|
+
mx: ["margin-inline"],
|
|
337
|
+
my: ["margin-block"],
|
|
338
|
+
mt: ["margin-top"],
|
|
339
|
+
mr: ["margin-right"],
|
|
340
|
+
mb: ["margin-bottom"],
|
|
341
|
+
ml: ["margin-left"],
|
|
342
|
+
p: ["padding"],
|
|
343
|
+
px: ["padding-inline"],
|
|
344
|
+
py: ["padding-block"],
|
|
345
|
+
pt: ["padding-top"],
|
|
346
|
+
pr: ["padding-right"],
|
|
347
|
+
pb: ["padding-bottom"],
|
|
348
|
+
pl: ["padding-left"],
|
|
349
|
+
inset: ["inset"],
|
|
350
|
+
"inset-x": ["inset-inline"],
|
|
351
|
+
"inset-y": ["inset-block"],
|
|
352
|
+
h: ["height"],
|
|
353
|
+
w: ["width"],
|
|
354
|
+
"min-h": ["min-height"],
|
|
355
|
+
"min-w": ["min-width"],
|
|
356
|
+
"max-h": ["max-height"],
|
|
357
|
+
"max-w": ["max-width"],
|
|
358
|
+
top: ["top"],
|
|
359
|
+
bottom: ["bottom"],
|
|
360
|
+
left: ["left"],
|
|
361
|
+
right: ["right"],
|
|
362
|
+
gap: ["gap"],
|
|
363
|
+
"gap-x": ["column-gap"],
|
|
364
|
+
"gap-y": ["row-gap"],
|
|
365
|
+
size: ["width", "height"],
|
|
366
|
+
ms: ["margin-inline-start"],
|
|
367
|
+
me: ["margin-inline-end"],
|
|
368
|
+
ps: ["padding-inline-start"],
|
|
369
|
+
pe: ["padding-inline-end"],
|
|
370
|
+
bs: ["margin-block-start"],
|
|
371
|
+
be: ["margin-block-end"],
|
|
372
|
+
start: ["inset-inline-start"],
|
|
373
|
+
end: ["inset-inline-end"],
|
|
374
|
+
"inset-s": ["inset-inline-start"],
|
|
375
|
+
"inset-e": ["inset-inline-end"]
|
|
376
|
+
}, P = (() => {
|
|
377
|
+
let e = {};
|
|
378
|
+
e["@container"] = "container-type:inline-size;", [
|
|
379
|
+
"block",
|
|
380
|
+
"inline",
|
|
381
|
+
"inline-block",
|
|
382
|
+
"flex",
|
|
383
|
+
"inline-flex",
|
|
384
|
+
"grid",
|
|
385
|
+
"inline-grid",
|
|
386
|
+
"table",
|
|
387
|
+
"table-cell",
|
|
388
|
+
"table-row",
|
|
389
|
+
"hidden"
|
|
390
|
+
].forEach((t) => {
|
|
391
|
+
e[t] = t === "hidden" ? "display:none;" : `display:${t};`;
|
|
392
|
+
}), [
|
|
393
|
+
"absolute",
|
|
394
|
+
"relative",
|
|
395
|
+
"fixed",
|
|
396
|
+
"sticky",
|
|
397
|
+
"static"
|
|
398
|
+
].forEach((t) => {
|
|
399
|
+
e[t] = `position:${t};`;
|
|
400
|
+
}), Object.assign(e, {
|
|
401
|
+
"items-center": "align-items:center;",
|
|
402
|
+
"items-start": "align-items:flex-start;",
|
|
403
|
+
"items-end": "align-items:flex-end;",
|
|
404
|
+
"items-baseline": "align-items:baseline;",
|
|
405
|
+
"items-stretch": "align-items:stretch;",
|
|
406
|
+
"justify-center": "justify-content:center;",
|
|
407
|
+
"justify-start": "justify-content:flex-start;",
|
|
408
|
+
"justify-between": "justify-content:space-between;",
|
|
409
|
+
"justify-around": "justify-content:space-around;",
|
|
410
|
+
"justify-evenly": "justify-content:space-evenly;",
|
|
411
|
+
"justify-end": "justify-content:flex-end;",
|
|
412
|
+
"flex-wrap": "flex-wrap:wrap;",
|
|
413
|
+
"flex-nowrap": "flex-wrap:nowrap;",
|
|
414
|
+
"flex-wrap-reverse": "flex-wrap:wrap-reverse;",
|
|
415
|
+
"content-center": "align-content:center;",
|
|
416
|
+
"content-start": "align-content:flex-start;",
|
|
417
|
+
"content-end": "align-content:flex-end;",
|
|
418
|
+
"content-between": "align-content:space-between;",
|
|
419
|
+
"content-around": "align-content:space-around;",
|
|
420
|
+
"content-evenly": "align-content:space-evenly;",
|
|
421
|
+
"content-stretch": "align-content:stretch;",
|
|
422
|
+
"self-auto": "align-self:auto;",
|
|
423
|
+
"self-start": "align-self:flex-start;",
|
|
424
|
+
"self-end": "align-self:flex-end;",
|
|
425
|
+
"self-center": "align-self:center;",
|
|
426
|
+
"self-stretch": "align-self:stretch;",
|
|
427
|
+
"flex-col": "flex-direction:column;",
|
|
428
|
+
"flex-row": "flex-direction:row;",
|
|
429
|
+
"flex-col-reverse": "flex-direction:column-reverse;",
|
|
430
|
+
"flex-row-reverse": "flex-direction:row-reverse;",
|
|
431
|
+
"flex-1": "flex:1 1 0%;",
|
|
432
|
+
"flex-auto": "flex:1 1 auto;",
|
|
433
|
+
"flex-initial": "flex:0 1 auto;",
|
|
434
|
+
"flex-none": "flex:0 0 auto;",
|
|
435
|
+
grow: "flex-grow:1;",
|
|
436
|
+
shrink: "flex-shrink:1;",
|
|
437
|
+
"grow-0": "flex-grow:0;",
|
|
438
|
+
"shrink-0": "flex-shrink:0;"
|
|
439
|
+
});
|
|
440
|
+
for (let t = 1; t <= 12; t++) e[`grid-cols-${t}`] = `grid-template-columns:repeat(${t},minmax(0,1fr));`, e[`grid-rows-${t}`] = `grid-template-rows:repeat(${t},minmax(0,1fr));`, e[`col-span-${t}`] = `grid-column:span ${t} / span ${t};`, e[`row-span-${t}`] = `grid-row:span ${t} / span ${t};`, e[`col-start-${t}`] = `grid-column-start:${t};`, e[`col-end-${t}`] = `grid-column-end:${t};`, e[`row-start-${t}`] = `grid-row-start:${t};`, e[`row-end-${t}`] = `grid-row-end:${t};`;
|
|
441
|
+
Object.assign(e, {
|
|
442
|
+
"grid-cols-none": "grid-template-columns:none;",
|
|
443
|
+
"grid-rows-none": "grid-template-rows:none;",
|
|
444
|
+
"col-span-full": "grid-column:1 / -1;",
|
|
445
|
+
"row-span-full": "grid-row:1 / -1;",
|
|
446
|
+
"auto-cols-auto": "grid-auto-columns:auto;",
|
|
447
|
+
"auto-cols-min": "grid-auto-columns:min-content;",
|
|
448
|
+
"auto-cols-max": "grid-auto-columns:max-content;",
|
|
449
|
+
"auto-cols-fr": "grid-auto-columns:1fr;",
|
|
450
|
+
"auto-rows-auto": "grid-auto-rows:auto;",
|
|
451
|
+
"auto-rows-min": "grid-auto-rows:min-content;",
|
|
452
|
+
"auto-rows-max": "grid-auto-rows:max-content;",
|
|
453
|
+
"auto-rows-fr": "grid-auto-rows:1fr;",
|
|
454
|
+
"grid-flow-row": "grid-auto-flow:row;",
|
|
455
|
+
"grid-flow-col": "grid-auto-flow:column;",
|
|
456
|
+
"grid-flow-row-dense": "grid-auto-flow:row dense;",
|
|
457
|
+
"grid-flow-col-dense": "grid-auto-flow:column dense;"
|
|
458
|
+
}), Object.assign(e, {
|
|
459
|
+
"text-left": "text-align:left;",
|
|
460
|
+
"text-center": "text-align:center;",
|
|
461
|
+
"text-right": "text-align:right;",
|
|
462
|
+
"text-justify": "text-align:justify;",
|
|
463
|
+
"font-thin": "font-weight:100;",
|
|
464
|
+
"font-extralight": "font-weight:200;",
|
|
465
|
+
"font-light": "font-weight:300;",
|
|
466
|
+
"font-normal": "font-weight:400;",
|
|
467
|
+
"font-medium": "font-weight:500;",
|
|
468
|
+
"font-semibold": "font-weight:600;",
|
|
469
|
+
"font-bold": "font-weight:700;",
|
|
470
|
+
"font-extrabold": "font-weight:800;",
|
|
471
|
+
"font-black": "font-weight:900;",
|
|
472
|
+
italic: "font-style:italic;",
|
|
473
|
+
"not-italic": "font-style:normal;",
|
|
474
|
+
uppercase: "text-transform:uppercase;",
|
|
475
|
+
lowercase: "text-transform:lowercase;",
|
|
476
|
+
capitalize: "text-transform:capitalize;",
|
|
477
|
+
"normal-case": "text-transform:none;",
|
|
478
|
+
underline: "text-decoration-line:underline;",
|
|
479
|
+
overline: "text-decoration-line:overline;",
|
|
480
|
+
"line-through": "text-decoration-line:line-through;",
|
|
481
|
+
"no-underline": "text-decoration-line:none;",
|
|
482
|
+
truncate: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",
|
|
483
|
+
"whitespace-normal": "white-space:normal;",
|
|
484
|
+
"whitespace-nowrap": "white-space:nowrap;",
|
|
485
|
+
"whitespace-pre": "white-space:pre;",
|
|
486
|
+
"whitespace-pre-line": "white-space:pre-line;",
|
|
487
|
+
"whitespace-pre-wrap": "white-space:pre-wrap;",
|
|
488
|
+
"break-normal": "overflow-wrap:normal;word-break:normal;",
|
|
489
|
+
"break-words": "overflow-wrap:break-word;",
|
|
490
|
+
"break-all": "word-break:break-all;",
|
|
491
|
+
"text-wrap": "text-wrap:wrap;",
|
|
492
|
+
"text-nowrap": "text-wrap:nowrap;",
|
|
493
|
+
"text-balance": "text-wrap:balance;",
|
|
494
|
+
"text-pretty": "text-wrap:pretty;"
|
|
495
|
+
}), [
|
|
496
|
+
[
|
|
497
|
+
"text-xs",
|
|
498
|
+
"0.75rem",
|
|
499
|
+
"1"
|
|
500
|
+
],
|
|
501
|
+
[
|
|
502
|
+
"text-sm",
|
|
503
|
+
"0.875rem",
|
|
504
|
+
"1.25"
|
|
505
|
+
],
|
|
506
|
+
[
|
|
507
|
+
"text-base",
|
|
508
|
+
"1rem",
|
|
509
|
+
"1.5"
|
|
510
|
+
],
|
|
511
|
+
[
|
|
512
|
+
"text-lg",
|
|
513
|
+
"1.125rem",
|
|
514
|
+
"1.75"
|
|
515
|
+
],
|
|
516
|
+
[
|
|
517
|
+
"text-xl",
|
|
518
|
+
"1.25rem",
|
|
519
|
+
"1.75"
|
|
520
|
+
],
|
|
521
|
+
[
|
|
522
|
+
"text-2xl",
|
|
523
|
+
"1.5rem",
|
|
524
|
+
"2"
|
|
525
|
+
],
|
|
526
|
+
[
|
|
527
|
+
"text-3xl",
|
|
528
|
+
"1.875rem",
|
|
529
|
+
"2.25"
|
|
530
|
+
],
|
|
531
|
+
[
|
|
532
|
+
"text-4xl",
|
|
533
|
+
"2.25rem",
|
|
534
|
+
"2.5"
|
|
535
|
+
],
|
|
536
|
+
[
|
|
537
|
+
"text-5xl",
|
|
538
|
+
"3rem",
|
|
539
|
+
"1"
|
|
540
|
+
],
|
|
541
|
+
[
|
|
542
|
+
"text-6xl",
|
|
543
|
+
"3.75rem",
|
|
544
|
+
"1"
|
|
545
|
+
],
|
|
546
|
+
[
|
|
547
|
+
"text-7xl",
|
|
548
|
+
"4.5rem",
|
|
549
|
+
"1"
|
|
550
|
+
],
|
|
551
|
+
[
|
|
552
|
+
"text-8xl",
|
|
553
|
+
"6rem",
|
|
554
|
+
"1"
|
|
555
|
+
],
|
|
556
|
+
[
|
|
557
|
+
"text-9xl",
|
|
558
|
+
"8rem",
|
|
559
|
+
"1"
|
|
560
|
+
]
|
|
561
|
+
].forEach(([t, n, r]) => {
|
|
562
|
+
e[t] = `font-size:${n};line-height:var(--cer-line-height,${r});`;
|
|
563
|
+
}), [
|
|
564
|
+
["tracking-tighter", "-0.05em"],
|
|
565
|
+
["tracking-tight", "-0.025em"],
|
|
566
|
+
["tracking-normal", "0em"],
|
|
567
|
+
["tracking-wide", "0.025em"],
|
|
568
|
+
["tracking-wider", "0.05em"],
|
|
569
|
+
["tracking-widest", "0.1em"]
|
|
570
|
+
].forEach(([t, n]) => {
|
|
571
|
+
e[t] = `letter-spacing:${n};`;
|
|
572
|
+
}), [
|
|
573
|
+
["leading-3", "0.75rem"],
|
|
574
|
+
["leading-4", "1rem"],
|
|
575
|
+
["leading-5", "1.25rem"],
|
|
576
|
+
["leading-6", "1.5rem"],
|
|
577
|
+
["leading-7", "1.75rem"],
|
|
578
|
+
["leading-8", "2rem"],
|
|
579
|
+
["leading-9", "2.25rem"],
|
|
580
|
+
["leading-10", "2.5rem"],
|
|
581
|
+
["leading-none", "1"],
|
|
582
|
+
["leading-tight", "1.25"],
|
|
583
|
+
["leading-snug", "1.375"],
|
|
584
|
+
["leading-normal", "1.5"],
|
|
585
|
+
["leading-relaxed", "1.625"],
|
|
586
|
+
["leading-loose", "2"]
|
|
587
|
+
].forEach(([t, n]) => {
|
|
588
|
+
e[t] = `line-height:${n};--cer-line-height:${n};line-height:var(--cer-line-height,${n});`;
|
|
589
|
+
});
|
|
590
|
+
for (let t of [
|
|
591
|
+
0,
|
|
592
|
+
1,
|
|
593
|
+
2,
|
|
594
|
+
4,
|
|
595
|
+
6,
|
|
596
|
+
8
|
|
597
|
+
]) {
|
|
598
|
+
let n = `${t}px`;
|
|
599
|
+
e[`outline-${t}`] = `outline-style:var(--cer-outline-style);outline-width:${n};`, e[`outline-offset-${t}`] = `outline-offset:${n};`, e[`border-${t}`] = `border-width:${n};`, e[`border-t-${t}`] = `border-top-width:${n};`, e[`border-r-${t}`] = `border-right-width:${n};`, e[`border-b-${t}`] = `border-bottom-width:${n};`, e[`border-l-${t}`] = `border-left-width:${n};`, e[`border-x-${t}`] = `border-left-width:${n};border-right-width:${n};`, e[`border-y-${t}`] = `border-top-width:${n};border-bottom-width:${n};`;
|
|
600
|
+
}
|
|
601
|
+
Object.assign(e, {
|
|
602
|
+
"font-sans": "font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);",
|
|
603
|
+
"font-serif": "font-family:var(--cer-font-serif, ui-serif,Georgia,serif);",
|
|
604
|
+
"font-mono": "font-family:var(--cer-font-mono, ui-monospace,SFMono-Regular,monospace);",
|
|
605
|
+
outline: "outline-style:var(--cer-outline-style);outline-width:1px;",
|
|
606
|
+
"outline-solid": "--cer-outline-style:solid;outline-style:solid;",
|
|
607
|
+
"outline-dashed": "--cer-outline-style:dashed;outline-style:dashed;",
|
|
608
|
+
"outline-dotted": "--cer-outline-style:dotted;outline-style:dotted;",
|
|
609
|
+
"outline-double": "--cer-outline-style:double;outline-style:double;",
|
|
610
|
+
"outline-none": "--cer-outline-style:none;outline-style:none;",
|
|
611
|
+
"outline-hidden": "--cer-outline-style:none;outline:2px solid transparent;outline-offset:2px;",
|
|
612
|
+
border: "border-width:1px;",
|
|
613
|
+
"border-t": "border-top-width:1px;",
|
|
614
|
+
"border-r": "border-right-width:1px;",
|
|
615
|
+
"border-b": "border-bottom-width:1px;",
|
|
616
|
+
"border-l": "border-left-width:1px;",
|
|
617
|
+
"border-x": "border-left-width:1px;border-right-width:1px;",
|
|
618
|
+
"border-y": "border-top-width:1px;border-bottom-width:1px;",
|
|
619
|
+
"border-solid": "border-style:solid;",
|
|
620
|
+
"border-dashed": "border-style:dashed;",
|
|
621
|
+
"border-dotted": "border-style:dotted;",
|
|
622
|
+
"border-double": "border-style:double;",
|
|
623
|
+
"border-none": "border-style:none;"
|
|
624
|
+
});
|
|
625
|
+
for (let [t, n] of Object.entries({
|
|
626
|
+
none: 0,
|
|
627
|
+
xs: 2,
|
|
628
|
+
sm: 4,
|
|
629
|
+
md: 6,
|
|
630
|
+
lg: 8,
|
|
631
|
+
xl: 12,
|
|
632
|
+
"2xl": 16,
|
|
633
|
+
"3xl": 24,
|
|
634
|
+
"4xl": 32,
|
|
635
|
+
full: 9999
|
|
636
|
+
})) {
|
|
637
|
+
let r = n === 9999 ? "9999px" : `${n / 16}rem`;
|
|
638
|
+
e[`rounded-${t}`] = `border-radius:${r};`, e[`rounded-t-${t}`] = `border-top-left-radius:${r};border-top-right-radius:${r};`, e[`rounded-r-${t}`] = `border-top-right-radius:${r};border-bottom-right-radius:${r};`, e[`rounded-b-${t}`] = `border-bottom-left-radius:${r};border-bottom-right-radius:${r};`, e[`rounded-l-${t}`] = `border-top-left-radius:${r};border-bottom-left-radius:${r};`, e[`rounded-tl-${t}`] = `border-top-left-radius:${r};`, e[`rounded-tr-${t}`] = `border-top-right-radius:${r};`, e[`rounded-br-${t}`] = `border-bottom-right-radius:${r};`, e[`rounded-bl-${t}`] = `border-bottom-left-radius:${r};`;
|
|
639
|
+
}
|
|
640
|
+
Object.assign(e, {
|
|
641
|
+
"shadow-none": "--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);",
|
|
642
|
+
"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));",
|
|
643
|
+
"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));",
|
|
644
|
+
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));",
|
|
645
|
+
"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));",
|
|
646
|
+
"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));",
|
|
647
|
+
"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));",
|
|
648
|
+
"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));",
|
|
649
|
+
"shadow-inner": "box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"
|
|
650
|
+
}), Object.assign(e, { rounded: "border-radius:0.25rem;" }), Object.assign(e, {
|
|
651
|
+
"overflow-auto": "overflow:auto;",
|
|
652
|
+
"overflow-hidden": "overflow:hidden;",
|
|
653
|
+
"overflow-visible": "overflow:visible;",
|
|
654
|
+
"overflow-scroll": "overflow:scroll;",
|
|
655
|
+
"overflow-x-auto": "overflow-x:auto;",
|
|
656
|
+
"overflow-x-hidden": "overflow-x:hidden;",
|
|
657
|
+
"overflow-x-visible": "overflow-x:visible;",
|
|
658
|
+
"overflow-x-scroll": "overflow-x:scroll;",
|
|
659
|
+
"overflow-y-auto": "overflow-y:auto;",
|
|
660
|
+
"overflow-y-hidden": "overflow-y:hidden;",
|
|
661
|
+
"overflow-y-visible": "overflow-y:visible;",
|
|
662
|
+
"overflow-y-scroll": "overflow-y:scroll;"
|
|
663
|
+
}), Object.assign(e, {
|
|
664
|
+
"bg-cover": "background-size:cover;",
|
|
665
|
+
"bg-contain": "background-size:contain;",
|
|
666
|
+
"bg-auto": "background-size:auto;",
|
|
667
|
+
"bg-center": "background-position:center;",
|
|
668
|
+
"bg-top": "background-position:top;",
|
|
669
|
+
"bg-bottom": "background-position:bottom;",
|
|
670
|
+
"bg-left": "background-position:left;",
|
|
671
|
+
"bg-right": "background-position:right;",
|
|
672
|
+
"bg-left-top": "background-position:left top;",
|
|
673
|
+
"bg-left-bottom": "background-position:left bottom;",
|
|
674
|
+
"bg-right-top": "background-position:right top;",
|
|
675
|
+
"bg-right-bottom": "background-position:right bottom;",
|
|
676
|
+
"bg-no-repeat": "background-repeat:no-repeat;",
|
|
677
|
+
"bg-repeat": "background-repeat:repeat;",
|
|
678
|
+
"bg-repeat-x": "background-repeat:repeat-x;",
|
|
679
|
+
"bg-repeat-y": "background-repeat:repeat-y;",
|
|
680
|
+
"bg-repeat-round": "background-repeat:round;",
|
|
681
|
+
"bg-repeat-space": "background-repeat:space;",
|
|
682
|
+
"bg-fixed": "background-attachment:fixed;",
|
|
683
|
+
"bg-local": "background-attachment:local;",
|
|
684
|
+
"bg-scroll": "background-attachment:scroll;",
|
|
685
|
+
"bg-origin-border": "background-origin:border-box;",
|
|
686
|
+
"bg-origin-padding": "background-origin:padding-box;",
|
|
687
|
+
"bg-origin-content": "background-origin:content-box;",
|
|
688
|
+
"bg-clip-border": "background-clip:border-box;",
|
|
689
|
+
"bg-clip-padding": "background-clip:padding-box;",
|
|
690
|
+
"bg-clip-content": "background-clip:content-box;",
|
|
691
|
+
"bg-clip-text": "background-clip:text;-webkit-background-clip:text;"
|
|
692
|
+
}), Object.assign(e, {
|
|
693
|
+
"decoration-solid": "text-decoration-style:solid;",
|
|
694
|
+
"decoration-dashed": "text-decoration-style:dashed;",
|
|
695
|
+
"decoration-dotted": "text-decoration-style:dotted;",
|
|
696
|
+
"decoration-double": "text-decoration-style:double;",
|
|
697
|
+
"decoration-wavy": "text-decoration-style:wavy;",
|
|
698
|
+
"decoration-from-font": "text-decoration-thickness:from-font;",
|
|
699
|
+
"decoration-auto": "text-decoration-thickness:auto;",
|
|
700
|
+
"decoration-1": "text-decoration-thickness:1px;",
|
|
701
|
+
"decoration-2": "text-decoration-thickness:2px;",
|
|
702
|
+
"decoration-4": "text-decoration-thickness:4px;",
|
|
703
|
+
"decoration-8": "text-decoration-thickness:8px;",
|
|
704
|
+
"underline-offset-auto": "text-underline-offset:auto;",
|
|
705
|
+
"underline-offset-1": "text-underline-offset:1px;",
|
|
706
|
+
"underline-offset-2": "text-underline-offset:2px;",
|
|
707
|
+
"underline-offset-4": "text-underline-offset:4px;",
|
|
708
|
+
"underline-offset-8": "text-underline-offset:8px;"
|
|
709
|
+
}), Object.assign(e, {
|
|
710
|
+
"list-none": "list-style-type:none;",
|
|
711
|
+
"list-disc": "list-style-type:disc;",
|
|
712
|
+
"list-decimal": "list-style-type:decimal;",
|
|
713
|
+
"list-inside": "list-style-position:inside;",
|
|
714
|
+
"list-outside": "list-style-position:outside;"
|
|
715
|
+
}), Object.assign(e, {
|
|
716
|
+
"content-none": "content:none;",
|
|
717
|
+
"content-normal": "content:normal;",
|
|
718
|
+
"content-empty": "content:'';"
|
|
719
|
+
}), Object.assign(e, {
|
|
720
|
+
"scroll-smooth": "scroll-behavior:smooth;",
|
|
721
|
+
"scroll-auto": "scroll-behavior:auto;",
|
|
722
|
+
"scroll-m-0": "scroll-margin:0;",
|
|
723
|
+
"scroll-p-0": "scroll-padding:0;",
|
|
724
|
+
"snap-none": "scroll-snap-type:none;",
|
|
725
|
+
"snap-x": "scroll-snap-type:x var(--cer-scroll-snap-strictness,mandatory);",
|
|
726
|
+
"snap-y": "scroll-snap-type:y var(--cer-scroll-snap-strictness,mandatory);",
|
|
727
|
+
"snap-both": "scroll-snap-type:both var(--cer-scroll-snap-strictness,mandatory);",
|
|
728
|
+
"snap-mandatory": "--cer-scroll-snap-strictness:mandatory;",
|
|
729
|
+
"snap-proximity": "--cer-scroll-snap-strictness:proximity;",
|
|
730
|
+
"snap-start": "scroll-snap-align:start;",
|
|
731
|
+
"snap-end": "scroll-snap-align:end;",
|
|
732
|
+
"snap-center": "scroll-snap-align:center;",
|
|
733
|
+
"snap-align-none": "scroll-snap-align:none;",
|
|
734
|
+
"snap-normal": "scroll-snap-stop:normal;",
|
|
735
|
+
"snap-always": "scroll-snap-stop:always;"
|
|
736
|
+
}), Object.assign(e, {
|
|
737
|
+
"will-change-auto": "will-change:auto;",
|
|
738
|
+
"will-change-scroll": "will-change:scroll-position;",
|
|
739
|
+
"will-change-contents": "will-change:contents;",
|
|
740
|
+
"will-change-transform": "will-change:transform;",
|
|
741
|
+
"will-change-opacity": "will-change:opacity;"
|
|
742
|
+
}), Object.assign(e, {
|
|
743
|
+
"touch-auto": "touch-action:auto;",
|
|
744
|
+
"touch-none": "touch-action:none;",
|
|
745
|
+
"touch-pan-x": "touch-action:pan-x;",
|
|
746
|
+
"touch-pan-left": "touch-action:pan-left;",
|
|
747
|
+
"touch-pan-right": "touch-action:pan-right;",
|
|
748
|
+
"touch-pan-y": "touch-action:pan-y;",
|
|
749
|
+
"touch-pan-up": "touch-action:pan-up;",
|
|
750
|
+
"touch-pan-down": "touch-action:pan-down;",
|
|
751
|
+
"touch-pinch-zoom": "touch-action:pinch-zoom;",
|
|
752
|
+
"touch-manipulation": "touch-action:manipulation;"
|
|
753
|
+
}), Object.assign(e, {
|
|
754
|
+
"columns-auto": "columns:auto;",
|
|
755
|
+
"columns-1": "columns:1;",
|
|
756
|
+
"columns-2": "columns:2;",
|
|
757
|
+
"columns-3": "columns:3;",
|
|
758
|
+
"columns-4": "columns:4;",
|
|
759
|
+
"columns-5": "columns:5;",
|
|
760
|
+
"columns-6": "columns:6;",
|
|
761
|
+
"columns-7": "columns:7;",
|
|
762
|
+
"columns-8": "columns:8;",
|
|
763
|
+
"columns-9": "columns:9;",
|
|
764
|
+
"columns-10": "columns:10;",
|
|
765
|
+
"columns-11": "columns:11;",
|
|
766
|
+
"columns-12": "columns:12;",
|
|
767
|
+
"columns-3xs": `columns:${.25 * 64}rem;`,
|
|
768
|
+
"columns-2xs": `columns:${.25 * 80}rem;`,
|
|
769
|
+
"columns-xs": `columns:${.25 * 96}rem;`,
|
|
770
|
+
"columns-sm": `columns:${.25 * 112}rem;`,
|
|
771
|
+
"columns-md": `columns:${.25 * 128}rem;`,
|
|
772
|
+
"columns-lg": `columns:${.25 * 160}rem;`,
|
|
773
|
+
"columns-xl": `columns:${.25 * 192}rem;`,
|
|
774
|
+
"columns-2xl": `columns:${.25 * 224}rem;`,
|
|
775
|
+
"columns-3xl": `columns:${.25 * 256}rem;`,
|
|
776
|
+
"columns-4xl": `columns:${.25 * 280}rem;`,
|
|
777
|
+
"columns-5xl": `columns:${.25 * 320}rem;`
|
|
778
|
+
}), Object.assign(e, {
|
|
779
|
+
"divide-x": "border-left-width:1px;",
|
|
780
|
+
"divide-x-0": "border-left-width:0px;",
|
|
781
|
+
"divide-x-2": "border-left-width:2px;",
|
|
782
|
+
"divide-x-4": "border-left-width:4px;",
|
|
783
|
+
"divide-x-8": "border-left-width:8px;",
|
|
784
|
+
"divide-y": "border-top-width:1px;",
|
|
785
|
+
"divide-y-0": "border-top-width:0px;",
|
|
786
|
+
"divide-y-2": "border-top-width:2px;",
|
|
787
|
+
"divide-y-4": "border-top-width:4px;",
|
|
788
|
+
"divide-y-8": "border-top-width:8px;",
|
|
789
|
+
"divide-solid": "border-style:solid;",
|
|
790
|
+
"divide-dashed": "border-style:dashed;",
|
|
791
|
+
"divide-dotted": "border-style:dotted;",
|
|
792
|
+
"divide-double": "border-style:double;",
|
|
793
|
+
"divide-none": "border-style:none;"
|
|
794
|
+
});
|
|
795
|
+
for (let t of [
|
|
796
|
+
"auto",
|
|
797
|
+
"default",
|
|
798
|
+
"pointer",
|
|
799
|
+
"wait",
|
|
800
|
+
"text",
|
|
801
|
+
"move",
|
|
802
|
+
"help",
|
|
803
|
+
"not-allowed",
|
|
804
|
+
"grab",
|
|
805
|
+
"grabbing"
|
|
806
|
+
]) e[`cursor-${t}`] = `cursor:${t};`;
|
|
807
|
+
for (let t of [
|
|
808
|
+
0,
|
|
809
|
+
1,
|
|
810
|
+
2,
|
|
811
|
+
3,
|
|
812
|
+
4,
|
|
813
|
+
5,
|
|
814
|
+
6,
|
|
815
|
+
7,
|
|
816
|
+
8,
|
|
817
|
+
9,
|
|
818
|
+
10,
|
|
819
|
+
20,
|
|
820
|
+
30,
|
|
821
|
+
40,
|
|
822
|
+
50
|
|
823
|
+
]) e[`z-${t}`] = `z-index:${t};`;
|
|
824
|
+
e["z-auto"] = "z-index:auto;", e["-z-10"] = "z-index:-10;", e["-z-20"] = "z-index:-20;", e["-z-30"] = "z-index:-30;", e["-z-40"] = "z-index:-40;", e["-z-50"] = "z-index:-50;", Object.assign(e, {
|
|
825
|
+
"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;",
|
|
826
|
+
"not-sr-only": "position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",
|
|
827
|
+
"pointer-events-none": "pointer-events:none;",
|
|
828
|
+
"pointer-events-auto": "pointer-events:auto;",
|
|
829
|
+
visible: "visibility:visible;",
|
|
830
|
+
invisible: "visibility:hidden;"
|
|
831
|
+
}), Object.assign(e, {
|
|
832
|
+
"w-full": "width:100%;",
|
|
833
|
+
"w-screen": "width:100dvw;",
|
|
834
|
+
"h-full": "height:100%;",
|
|
835
|
+
"h-screen": "height:100dvh;",
|
|
836
|
+
"max-w-full": "max-width:100%;",
|
|
837
|
+
"max-h-full": "max-height:100%;",
|
|
838
|
+
"max-w-screen": "max-width:100dvw;",
|
|
839
|
+
"max-h-screen": "max-height:100dvh;",
|
|
840
|
+
"min-w-0": "min-width:0;",
|
|
841
|
+
"min-h-0": "min-height:0;",
|
|
842
|
+
"min-w-full": "min-width:100%;",
|
|
843
|
+
"min-h-full": "min-height:100%;",
|
|
844
|
+
"min-w-screen": "min-width:100dvw;",
|
|
845
|
+
"min-h-screen": "min-height:100dvh;",
|
|
846
|
+
"w-auto": "width:auto;",
|
|
847
|
+
"h-auto": "height:auto;",
|
|
848
|
+
"w-fit": "width:fit-content;",
|
|
849
|
+
"h-fit": "height:fit-content;",
|
|
850
|
+
"w-min": "width:min-content;",
|
|
851
|
+
"h-min": "height:min-content;",
|
|
852
|
+
"w-max": "width:max-content;",
|
|
853
|
+
"h-max": "height:max-content;",
|
|
854
|
+
"m-auto": "margin:auto;",
|
|
855
|
+
"mx-auto": "margin-inline:auto;",
|
|
856
|
+
"my-auto": "margin-block:auto;"
|
|
857
|
+
});
|
|
858
|
+
for (let [t, n] of Object.entries(M)) e[`max-w-${t}`] = `max-width:calc(${r} * ${n});`, e[`min-w-${t}`] = `min-width:calc(${r} * ${n});`, e[`w-${t}`] = `width:calc(${r} * ${n});`, e[`max-h-${t}`] = `max-height:calc(${r} * ${n});`, e[`min-h-${t}`] = `min-height:calc(${r} * ${n});`, e[`h-${t}`] = `height:calc(${r} * ${n});`;
|
|
859
|
+
Object.assign(e, {
|
|
860
|
+
transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
|
|
861
|
+
"transition-none": "transition-property:none;",
|
|
862
|
+
"transition-all": "transition-property:all;",
|
|
863
|
+
"transition-colors": "transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;",
|
|
864
|
+
"transition-shadow": "transition-property:box-shadow;",
|
|
865
|
+
"transition-opacity": "transition-property:opacity;",
|
|
866
|
+
"transition-transform": "transition-property:transform;",
|
|
867
|
+
"ease-linear": "transition-timing-function:linear;",
|
|
868
|
+
"ease-in": "transition-timing-function:ease-in;",
|
|
869
|
+
"ease-out": "transition-timing-function:ease-out;",
|
|
870
|
+
"ease-in-out": "transition-timing-function:ease-in-out;",
|
|
871
|
+
"duration-75": "transition-duration:75ms;",
|
|
872
|
+
"duration-100": "transition-duration:100ms;",
|
|
873
|
+
"duration-150": "transition-duration:150ms;",
|
|
874
|
+
"duration-200": "transition-duration:200ms;",
|
|
875
|
+
"duration-300": "transition-duration:300ms;",
|
|
876
|
+
"duration-500": "transition-duration:500ms;",
|
|
877
|
+
"duration-700": "transition-duration:700ms;",
|
|
878
|
+
"duration-1000": "transition-duration:1000ms;"
|
|
879
|
+
}), Object.assign(e, {
|
|
880
|
+
"delay-0": "transition-delay:0ms;",
|
|
881
|
+
"delay-75": "transition-delay:75ms;",
|
|
882
|
+
"delay-100": "transition-delay:100ms;",
|
|
883
|
+
"delay-150": "transition-delay:150ms;",
|
|
884
|
+
"delay-200": "transition-delay:200ms;",
|
|
885
|
+
"delay-300": "transition-delay:300ms;",
|
|
886
|
+
"delay-500": "transition-delay:500ms;",
|
|
887
|
+
"delay-700": "transition-delay:700ms;",
|
|
888
|
+
"delay-1000": "transition-delay:1000ms;"
|
|
889
|
+
});
|
|
890
|
+
let t = "translateX(var(--cer-translate-x)) translateY(var(--cer-translate-y)) rotate(var(--cer-rotate)) skewX(var(--cer-skew-x)) skewY(var(--cer-skew-y)) scaleX(var(--cer-scale-x)) scaleY(var(--cer-scale-y))", n = (e) => `--cer-translate-x:${e};transform:${t};`, i = (e) => `--cer-translate-y:${e};transform:${t};`;
|
|
891
|
+
Object.assign(e, {
|
|
892
|
+
"scale-0": `--cer-scale-x:0;--cer-scale-y:0;transform:${t};`,
|
|
893
|
+
"scale-50": `--cer-scale-x:.5;--cer-scale-y:.5;transform:${t};`,
|
|
894
|
+
"scale-75": `--cer-scale-x:.75;--cer-scale-y:.75;transform:${t};`,
|
|
895
|
+
"scale-90": `--cer-scale-x:.9;--cer-scale-y:.9;transform:${t};`,
|
|
896
|
+
"scale-95": `--cer-scale-x:.95;--cer-scale-y:.95;transform:${t};`,
|
|
897
|
+
"scale-100": `--cer-scale-x:1;--cer-scale-y:1;transform:${t};`,
|
|
898
|
+
"scale-105": `--cer-scale-x:1.05;--cer-scale-y:1.05;transform:${t};`,
|
|
899
|
+
"scale-110": `--cer-scale-x:1.1;--cer-scale-y:1.1;transform:${t};`,
|
|
900
|
+
"scale-125": `--cer-scale-x:1.25;--cer-scale-y:1.25;transform:${t};`,
|
|
901
|
+
"scale-150": `--cer-scale-x:1.5;--cer-scale-y:1.5;transform:${t};`,
|
|
902
|
+
"scale-x-0": `--cer-scale-x:0;transform:${t};`,
|
|
903
|
+
"scale-x-50": `--cer-scale-x:.5;transform:${t};`,
|
|
904
|
+
"scale-x-75": `--cer-scale-x:.75;transform:${t};`,
|
|
905
|
+
"scale-x-90": `--cer-scale-x:.9;transform:${t};`,
|
|
906
|
+
"scale-x-95": `--cer-scale-x:.95;transform:${t};`,
|
|
907
|
+
"scale-x-100": `--cer-scale-x:1;transform:${t};`,
|
|
908
|
+
"scale-x-105": `--cer-scale-x:1.05;transform:${t};`,
|
|
909
|
+
"scale-x-110": `--cer-scale-x:1.1;transform:${t};`,
|
|
910
|
+
"scale-x-125": `--cer-scale-x:1.25;transform:${t};`,
|
|
911
|
+
"scale-x-150": `--cer-scale-x:1.5;transform:${t};`,
|
|
912
|
+
"scale-y-0": `--cer-scale-y:0;transform:${t};`,
|
|
913
|
+
"scale-y-50": `--cer-scale-y:.5;transform:${t};`,
|
|
914
|
+
"scale-y-75": `--cer-scale-y:.75;transform:${t};`,
|
|
915
|
+
"scale-y-90": `--cer-scale-y:.9;transform:${t};`,
|
|
916
|
+
"scale-y-95": `--cer-scale-y:.95;transform:${t};`,
|
|
917
|
+
"scale-y-100": `--cer-scale-y:1;transform:${t};`,
|
|
918
|
+
"scale-y-105": `--cer-scale-y:1.05;transform:${t};`,
|
|
919
|
+
"scale-y-110": `--cer-scale-y:1.1;transform:${t};`,
|
|
920
|
+
"scale-y-125": `--cer-scale-y:1.25;transform:${t};`,
|
|
921
|
+
"scale-y-150": `--cer-scale-y:1.5;transform:${t};`,
|
|
922
|
+
"rotate-0": `--cer-rotate:0deg;transform:${t};`,
|
|
923
|
+
"rotate-1": `--cer-rotate:1deg;transform:${t};`,
|
|
924
|
+
"rotate-2": `--cer-rotate:2deg;transform:${t};`,
|
|
925
|
+
"rotate-3": `--cer-rotate:3deg;transform:${t};`,
|
|
926
|
+
"rotate-6": `--cer-rotate:6deg;transform:${t};`,
|
|
927
|
+
"rotate-12": `--cer-rotate:12deg;transform:${t};`,
|
|
928
|
+
"rotate-45": `--cer-rotate:45deg;transform:${t};`,
|
|
929
|
+
"rotate-90": `--cer-rotate:90deg;transform:${t};`,
|
|
930
|
+
"rotate-180": `--cer-rotate:180deg;transform:${t};`,
|
|
931
|
+
"-rotate-1": `--cer-rotate:-1deg;transform:${t};`,
|
|
932
|
+
"-rotate-2": `--cer-rotate:-2deg;transform:${t};`,
|
|
933
|
+
"-rotate-3": `--cer-rotate:-3deg;transform:${t};`,
|
|
934
|
+
"-rotate-6": `--cer-rotate:-6deg;transform:${t};`,
|
|
935
|
+
"-rotate-12": `--cer-rotate:-12deg;transform:${t};`,
|
|
936
|
+
"-rotate-45": `--cer-rotate:-45deg;transform:${t};`,
|
|
937
|
+
"-rotate-90": `--cer-rotate:-90deg;transform:${t};`,
|
|
938
|
+
"-rotate-180": `--cer-rotate:-180deg;transform:${t};`,
|
|
939
|
+
"translate-x-0": n("0px"),
|
|
940
|
+
"translate-x-px": n("1px"),
|
|
941
|
+
"translate-x-0.5": n("0.125rem"),
|
|
942
|
+
"translate-x-1": n("0.25rem"),
|
|
943
|
+
"translate-x-1.5": n("0.375rem"),
|
|
944
|
+
"translate-x-2": n("0.5rem"),
|
|
945
|
+
"translate-x-2.5": n("0.625rem"),
|
|
946
|
+
"translate-x-3": n("0.75rem"),
|
|
947
|
+
"translate-x-4": n("1rem"),
|
|
948
|
+
"translate-x-5": n("1.25rem"),
|
|
949
|
+
"translate-x-6": n("1.5rem"),
|
|
950
|
+
"translate-x-8": n("2rem"),
|
|
951
|
+
"translate-x-10": n("2.5rem"),
|
|
952
|
+
"translate-x-12": n("3rem"),
|
|
953
|
+
"translate-x-16": n("4rem"),
|
|
954
|
+
"translate-x-20": n("5rem"),
|
|
955
|
+
"translate-x-24": n("6rem"),
|
|
956
|
+
"translate-x-32": n("8rem"),
|
|
957
|
+
"translate-x-1/2": n("50%"),
|
|
958
|
+
"translate-x-1/3": n("33.333333%"),
|
|
959
|
+
"translate-x-2/3": n("66.666667%"),
|
|
960
|
+
"translate-x-1/4": n("25%"),
|
|
961
|
+
"translate-x-3/4": n("75%"),
|
|
962
|
+
"translate-x-full": n("100%"),
|
|
963
|
+
"-translate-x-px": n("-1px"),
|
|
964
|
+
"-translate-x-0.5": n("-0.125rem"),
|
|
965
|
+
"-translate-x-1": n("-0.25rem"),
|
|
966
|
+
"-translate-x-1.5": n("-0.375rem"),
|
|
967
|
+
"-translate-x-2": n("-0.5rem"),
|
|
968
|
+
"-translate-x-2.5": n("-0.625rem"),
|
|
969
|
+
"-translate-x-3": n("-0.75rem"),
|
|
970
|
+
"-translate-x-4": n("-1rem"),
|
|
971
|
+
"-translate-x-1/2": n("-50%"),
|
|
972
|
+
"-translate-x-full": n("-100%"),
|
|
973
|
+
"translate-y-0": i("0px"),
|
|
974
|
+
"translate-y-px": i("1px"),
|
|
975
|
+
"translate-y-0.5": i("0.125rem"),
|
|
976
|
+
"translate-y-1": i("0.25rem"),
|
|
977
|
+
"translate-y-1.5": i("0.375rem"),
|
|
978
|
+
"translate-y-2": i("0.5rem"),
|
|
979
|
+
"translate-y-2.5": i("0.625rem"),
|
|
980
|
+
"translate-y-3": i("0.75rem"),
|
|
981
|
+
"translate-y-4": i("1rem"),
|
|
982
|
+
"translate-y-5": i("1.25rem"),
|
|
983
|
+
"translate-y-6": i("1.5rem"),
|
|
984
|
+
"translate-y-8": i("2rem"),
|
|
985
|
+
"translate-y-10": i("2.5rem"),
|
|
986
|
+
"translate-y-12": i("3rem"),
|
|
987
|
+
"translate-y-16": i("4rem"),
|
|
988
|
+
"translate-y-20": i("5rem"),
|
|
989
|
+
"translate-y-24": i("6rem"),
|
|
990
|
+
"translate-y-32": i("8rem"),
|
|
991
|
+
"translate-y-1/2": i("50%"),
|
|
992
|
+
"translate-y-full": i("100%"),
|
|
993
|
+
"-translate-y-px": i("-1px"),
|
|
994
|
+
"-translate-y-0.5": i("-0.125rem"),
|
|
995
|
+
"-translate-y-1": i("-0.25rem"),
|
|
996
|
+
"-translate-y-2": i("-0.5rem"),
|
|
997
|
+
"-translate-y-4": i("-1rem"),
|
|
998
|
+
"-translate-y-1/2": i("-50%"),
|
|
999
|
+
"-translate-y-full": i("-100%"),
|
|
1000
|
+
"skew-x-0": `--cer-skew-x:0deg;transform:${t};`,
|
|
1001
|
+
"skew-x-1": `--cer-skew-x:1deg;transform:${t};`,
|
|
1002
|
+
"skew-x-2": `--cer-skew-x:2deg;transform:${t};`,
|
|
1003
|
+
"skew-x-3": `--cer-skew-x:3deg;transform:${t};`,
|
|
1004
|
+
"skew-x-6": `--cer-skew-x:6deg;transform:${t};`,
|
|
1005
|
+
"skew-x-12": `--cer-skew-x:12deg;transform:${t};`,
|
|
1006
|
+
"-skew-x-1": `--cer-skew-x:-1deg;transform:${t};`,
|
|
1007
|
+
"-skew-x-2": `--cer-skew-x:-2deg;transform:${t};`,
|
|
1008
|
+
"-skew-x-3": `--cer-skew-x:-3deg;transform:${t};`,
|
|
1009
|
+
"-skew-x-6": `--cer-skew-x:-6deg;transform:${t};`,
|
|
1010
|
+
"-skew-x-12": `--cer-skew-x:-12deg;transform:${t};`,
|
|
1011
|
+
"skew-y-0": `--cer-skew-y:0deg;transform:${t};`,
|
|
1012
|
+
"skew-y-1": `--cer-skew-y:1deg;transform:${t};`,
|
|
1013
|
+
"skew-y-2": `--cer-skew-y:2deg;transform:${t};`,
|
|
1014
|
+
"skew-y-3": `--cer-skew-y:3deg;transform:${t};`,
|
|
1015
|
+
"skew-y-6": `--cer-skew-y:6deg;transform:${t};`,
|
|
1016
|
+
"skew-y-12": `--cer-skew-y:12deg;transform:${t};`,
|
|
1017
|
+
"-skew-y-1": `--cer-skew-y:-1deg;transform:${t};`,
|
|
1018
|
+
"-skew-y-2": `--cer-skew-y:-2deg;transform:${t};`,
|
|
1019
|
+
"-skew-y-3": `--cer-skew-y:-3deg;transform:${t};`,
|
|
1020
|
+
"-skew-y-6": `--cer-skew-y:-6deg;transform:${t};`,
|
|
1021
|
+
"-skew-y-12": `--cer-skew-y:-12deg;transform:${t};`
|
|
1022
|
+
}), Object.assign(e, {
|
|
1023
|
+
ring: "box-shadow:0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1024
|
+
"ring-0": "box-shadow:0 0 0 0px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1025
|
+
"ring-1": "box-shadow:0 0 0 1px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1026
|
+
"ring-2": "box-shadow:0 0 0 2px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1027
|
+
"ring-4": "box-shadow:0 0 0 4px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1028
|
+
"ring-8": "box-shadow:0 0 0 8px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1029
|
+
"ring-inset": "box-shadow:inset 0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1030
|
+
"ring-offset-0": "--cer-ring-offset-width:0px;box-shadow:0 0 0 0px var(--cer-ring-offset-color,#fff),0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1031
|
+
"ring-offset-1": "--cer-ring-offset-width:1px;box-shadow:0 0 0 1px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 1px) var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1032
|
+
"ring-offset-2": "--cer-ring-offset-width:2px;box-shadow:0 0 0 2px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 2px) var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1033
|
+
"ring-offset-4": "--cer-ring-offset-width:4px;box-shadow:0 0 0 4px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 4px) var(--cer-ring-color,rgb(59 130 246/0.5));",
|
|
1034
|
+
"ring-offset-8": "--cer-ring-offset-width:8px;box-shadow:0 0 0 8px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 8px) var(--cer-ring-color,rgb(59 130 246/0.5));"
|
|
1035
|
+
});
|
|
1036
|
+
let a = "var(--cer-blur) var(--cer-brightness) var(--cer-contrast) var(--cer-grayscale) var(--cer-hue-rotate) var(--cer-invert) var(--cer-saturate) var(--cer-sepia) var(--cer-drop-shadow)", o = "var(--cer-backdrop-blur) var(--cer-backdrop-brightness) var(--cer-backdrop-contrast) var(--cer-backdrop-grayscale) var(--cer-backdrop-hue-rotate) var(--cer-backdrop-invert) var(--cer-backdrop-saturate) var(--cer-backdrop-sepia)";
|
|
1037
|
+
Object.assign(e, {
|
|
1038
|
+
"blur-none": `--cer-blur:;filter:${a};`,
|
|
1039
|
+
"blur-sm": `--cer-blur:blur(4px);filter:${a};`,
|
|
1040
|
+
blur: `--cer-blur:blur(8px);filter:${a};`,
|
|
1041
|
+
"blur-md": `--cer-blur:blur(12px);filter:${a};`,
|
|
1042
|
+
"blur-lg": `--cer-blur:blur(16px);filter:${a};`,
|
|
1043
|
+
"blur-xl": `--cer-blur:blur(24px);filter:${a};`,
|
|
1044
|
+
"blur-2xl": `--cer-blur:blur(40px);filter:${a};`,
|
|
1045
|
+
"blur-3xl": `--cer-blur:blur(64px);filter:${a};`,
|
|
1046
|
+
"brightness-0": `--cer-brightness:brightness(0);filter:${a};`,
|
|
1047
|
+
"brightness-50": `--cer-brightness:brightness(.5);filter:${a};`,
|
|
1048
|
+
"brightness-75": `--cer-brightness:brightness(.75);filter:${a};`,
|
|
1049
|
+
"brightness-90": `--cer-brightness:brightness(.9);filter:${a};`,
|
|
1050
|
+
"brightness-95": `--cer-brightness:brightness(.95);filter:${a};`,
|
|
1051
|
+
"brightness-100": `--cer-brightness:brightness(1);filter:${a};`,
|
|
1052
|
+
"brightness-105": `--cer-brightness:brightness(1.05);filter:${a};`,
|
|
1053
|
+
"brightness-110": `--cer-brightness:brightness(1.1);filter:${a};`,
|
|
1054
|
+
"brightness-125": `--cer-brightness:brightness(1.25);filter:${a};`,
|
|
1055
|
+
"brightness-150": `--cer-brightness:brightness(1.5);filter:${a};`,
|
|
1056
|
+
"brightness-200": `--cer-brightness:brightness(2);filter:${a};`,
|
|
1057
|
+
"contrast-0": `--cer-contrast:contrast(0);filter:${a};`,
|
|
1058
|
+
"contrast-50": `--cer-contrast:contrast(.5);filter:${a};`,
|
|
1059
|
+
"contrast-75": `--cer-contrast:contrast(.75);filter:${a};`,
|
|
1060
|
+
"contrast-100": `--cer-contrast:contrast(1);filter:${a};`,
|
|
1061
|
+
"contrast-125": `--cer-contrast:contrast(1.25);filter:${a};`,
|
|
1062
|
+
"contrast-150": `--cer-contrast:contrast(1.5);filter:${a};`,
|
|
1063
|
+
"contrast-200": `--cer-contrast:contrast(2);filter:${a};`,
|
|
1064
|
+
grayscale: `--cer-grayscale:grayscale(100%);filter:${a};`,
|
|
1065
|
+
"grayscale-0": `--cer-grayscale:grayscale(0);filter:${a};`,
|
|
1066
|
+
"hue-rotate-0": `--cer-hue-rotate:hue-rotate(0deg);filter:${a};`,
|
|
1067
|
+
"hue-rotate-15": `--cer-hue-rotate:hue-rotate(15deg);filter:${a};`,
|
|
1068
|
+
"hue-rotate-30": `--cer-hue-rotate:hue-rotate(30deg);filter:${a};`,
|
|
1069
|
+
"hue-rotate-60": `--cer-hue-rotate:hue-rotate(60deg);filter:${a};`,
|
|
1070
|
+
"hue-rotate-90": `--cer-hue-rotate:hue-rotate(90deg);filter:${a};`,
|
|
1071
|
+
"hue-rotate-180": `--cer-hue-rotate:hue-rotate(180deg);filter:${a};`,
|
|
1072
|
+
"-hue-rotate-180": `--cer-hue-rotate:hue-rotate(-180deg);filter:${a};`,
|
|
1073
|
+
"-hue-rotate-90": `--cer-hue-rotate:hue-rotate(-90deg);filter:${a};`,
|
|
1074
|
+
"-hue-rotate-60": `--cer-hue-rotate:hue-rotate(-60deg);filter:${a};`,
|
|
1075
|
+
"-hue-rotate-30": `--cer-hue-rotate:hue-rotate(-30deg);filter:${a};`,
|
|
1076
|
+
"-hue-rotate-15": `--cer-hue-rotate:hue-rotate(-15deg);filter:${a};`,
|
|
1077
|
+
invert: `--cer-invert:invert(100%);filter:${a};`,
|
|
1078
|
+
"invert-0": `--cer-invert:invert(0);filter:${a};`,
|
|
1079
|
+
"saturate-0": `--cer-saturate:saturate(0);filter:${a};`,
|
|
1080
|
+
"saturate-50": `--cer-saturate:saturate(.5);filter:${a};`,
|
|
1081
|
+
"saturate-100": `--cer-saturate:saturate(1);filter:${a};`,
|
|
1082
|
+
"saturate-150": `--cer-saturate:saturate(1.5);filter:${a};`,
|
|
1083
|
+
"saturate-200": `--cer-saturate:saturate(2);filter:${a};`,
|
|
1084
|
+
sepia: `--cer-sepia:sepia(100%);filter:${a};`,
|
|
1085
|
+
"sepia-0": `--cer-sepia:sepia(0);filter:${a};`,
|
|
1086
|
+
"drop-shadow-sm": `--cer-drop-shadow:drop-shadow(0 1px 1px rgb(0 0 0/.05));filter:${a};`,
|
|
1087
|
+
"drop-shadow": `--cer-drop-shadow:drop-shadow(0 1px 2px rgb(0 0 0/.1)) drop-shadow(0 1px 1px rgb(0 0 0/.06));filter:${a};`,
|
|
1088
|
+
"drop-shadow-md": `--cer-drop-shadow:drop-shadow(0 4px 3px rgb(0 0 0/.07)) drop-shadow(0 2px 2px rgb(0 0 0/.06));filter:${a};`,
|
|
1089
|
+
"drop-shadow-lg": `--cer-drop-shadow:drop-shadow(0 10px 8px rgb(0 0 0/.04)) drop-shadow(0 4px 3px rgb(0 0 0/.1));filter:${a};`,
|
|
1090
|
+
"drop-shadow-xl": `--cer-drop-shadow:drop-shadow(0 20px 13px rgb(0 0 0/.03)) drop-shadow(0 8px 5px rgb(0 0 0/.08));filter:${a};`,
|
|
1091
|
+
"drop-shadow-2xl": `--cer-drop-shadow:drop-shadow(0 25px 25px rgb(0 0 0/.15));filter:${a};`,
|
|
1092
|
+
"drop-shadow-none": `--cer-drop-shadow:drop-shadow(0 0 #0000);filter:${a};`,
|
|
1093
|
+
"backdrop-blur-none": `--cer-backdrop-blur:;backdrop-filter:${o};-webkit-backdrop-filter:${o};`,
|
|
1094
|
+
"backdrop-blur-sm": `--cer-backdrop-blur:blur(4px);backdrop-filter:${o};-webkit-backdrop-filter:${o};`,
|
|
1095
|
+
"backdrop-blur": `--cer-backdrop-blur:blur(8px);backdrop-filter:${o};-webkit-backdrop-filter:${o};`,
|
|
1096
|
+
"backdrop-blur-md": `--cer-backdrop-blur:blur(12px);backdrop-filter:${o};-webkit-backdrop-filter:${o};`,
|
|
1097
|
+
"backdrop-blur-lg": `--cer-backdrop-blur:blur(16px);backdrop-filter:${o};-webkit-backdrop-filter:${o};`,
|
|
1098
|
+
"backdrop-blur-xl": `--cer-backdrop-blur:blur(24px);backdrop-filter:${o};-webkit-backdrop-filter:${o};`,
|
|
1099
|
+
"backdrop-blur-2xl": `--cer-backdrop-blur:blur(40px);backdrop-filter:${o};-webkit-backdrop-filter:${o};`,
|
|
1100
|
+
"backdrop-blur-3xl": `--cer-backdrop-blur:blur(64px);backdrop-filter:${o};-webkit-backdrop-filter:${o};`
|
|
1101
|
+
}), Object.assign(e, {
|
|
1102
|
+
"aspect-auto": "aspect-ratio:auto;",
|
|
1103
|
+
"aspect-square": "aspect-ratio:1 / 1;",
|
|
1104
|
+
"aspect-video": "aspect-ratio:16 / 9;"
|
|
1105
|
+
}), Object.assign(e, {
|
|
1106
|
+
"object-contain": "object-fit:contain;",
|
|
1107
|
+
"object-cover": "object-fit:cover;",
|
|
1108
|
+
"object-fill": "object-fit:fill;",
|
|
1109
|
+
"object-none": "object-fit:none;",
|
|
1110
|
+
"object-scale-down": "object-fit:scale-down;",
|
|
1111
|
+
"object-bottom": "object-position:bottom;",
|
|
1112
|
+
"object-center": "object-position:center;",
|
|
1113
|
+
"object-left": "object-position:left;",
|
|
1114
|
+
"object-left-bottom": "object-position:left bottom;",
|
|
1115
|
+
"object-left-top": "object-position:left top;",
|
|
1116
|
+
"object-right": "object-position:right;",
|
|
1117
|
+
"object-right-bottom": "object-position:right bottom;",
|
|
1118
|
+
"object-right-top": "object-position:right top;",
|
|
1119
|
+
"object-top": "object-position:top;"
|
|
1120
|
+
});
|
|
1121
|
+
for (let t = 1; t <= 6; t++) e[`line-clamp-${t}`] = `display:-webkit-box;-webkit-line-clamp:${t};-webkit-box-orient:vertical;overflow:hidden;`;
|
|
1122
|
+
e["line-clamp-none"] = "overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";
|
|
1123
|
+
for (let t = 1; t <= 12; t++) e[`order-${t}`] = `order:${t};`;
|
|
1124
|
+
e["order-first"] = "order:-9999;", e["order-last"] = "order:9999;", e["order-none"] = "order:0;";
|
|
1125
|
+
for (let t = 0; t <= 12; t++) t <= 1 || (e[`grow-${t}`] = `flex-grow:${t};`, e[`shrink-${t}`] = `flex-shrink:${t};`);
|
|
1126
|
+
return Object.assign(e, {
|
|
1127
|
+
"bg-linear-to-t": "background-image:linear-gradient(to top, var(--cer-gradient-stops));",
|
|
1128
|
+
"bg-linear-to-tr": "background-image:linear-gradient(to top right, var(--cer-gradient-stops));",
|
|
1129
|
+
"bg-linear-to-r": "background-image:linear-gradient(to right, var(--cer-gradient-stops));",
|
|
1130
|
+
"bg-linear-to-br": "background-image:linear-gradient(to bottom right, var(--cer-gradient-stops));",
|
|
1131
|
+
"bg-linear-to-b": "background-image:linear-gradient(to bottom, var(--cer-gradient-stops));",
|
|
1132
|
+
"bg-linear-to-bl": "background-image:linear-gradient(to bottom left, var(--cer-gradient-stops));",
|
|
1133
|
+
"bg-linear-to-l": "background-image:linear-gradient(to left, var(--cer-gradient-stops));",
|
|
1134
|
+
"bg-linear-to-tl": "background-image:linear-gradient(to top left, var(--cer-gradient-stops));",
|
|
1135
|
+
"bg-radial": "background-image:radial-gradient(ellipse at center, var(--cer-gradient-stops));",
|
|
1136
|
+
"bg-radial-at-t": "background-image:radial-gradient(ellipse at top, var(--cer-gradient-stops));",
|
|
1137
|
+
"bg-radial-at-tr": "background-image:radial-gradient(ellipse at top right, var(--cer-gradient-stops));",
|
|
1138
|
+
"bg-radial-at-r": "background-image:radial-gradient(ellipse at right, var(--cer-gradient-stops));",
|
|
1139
|
+
"bg-radial-at-br": "background-image:radial-gradient(ellipse at bottom right, var(--cer-gradient-stops));",
|
|
1140
|
+
"bg-radial-at-b": "background-image:radial-gradient(ellipse at bottom, var(--cer-gradient-stops));",
|
|
1141
|
+
"bg-radial-at-bl": "background-image:radial-gradient(ellipse at bottom left, var(--cer-gradient-stops));",
|
|
1142
|
+
"bg-radial-at-l": "background-image:radial-gradient(ellipse at left, var(--cer-gradient-stops));",
|
|
1143
|
+
"bg-radial-at-tl": "background-image:radial-gradient(ellipse at top left, var(--cer-gradient-stops));",
|
|
1144
|
+
"bg-radial-circle": "background-image:radial-gradient(circle at center, var(--cer-gradient-stops));",
|
|
1145
|
+
"bg-radial-circle-at-t": "background-image:radial-gradient(circle at top, var(--cer-gradient-stops));",
|
|
1146
|
+
"bg-radial-circle-at-tr": "background-image:radial-gradient(circle at top right, var(--cer-gradient-stops));",
|
|
1147
|
+
"bg-radial-circle-at-r": "background-image:radial-gradient(circle at right, var(--cer-gradient-stops));",
|
|
1148
|
+
"bg-radial-circle-at-br": "background-image:radial-gradient(circle at bottom right, var(--cer-gradient-stops));",
|
|
1149
|
+
"bg-radial-circle-at-b": "background-image:radial-gradient(circle at bottom, var(--cer-gradient-stops));",
|
|
1150
|
+
"bg-radial-circle-at-bl": "background-image:radial-gradient(circle at bottom left, var(--cer-gradient-stops));",
|
|
1151
|
+
"bg-radial-circle-at-l": "background-image:radial-gradient(circle at left, var(--cer-gradient-stops));",
|
|
1152
|
+
"bg-radial-circle-at-tl": "background-image:radial-gradient(circle at top left, var(--cer-gradient-stops));",
|
|
1153
|
+
"bg-conic": "background-image:conic-gradient(from 0deg at center, var(--cer-gradient-stops));",
|
|
1154
|
+
"bg-conic-at-t": "background-image:conic-gradient(from 0deg at top, var(--cer-gradient-stops));",
|
|
1155
|
+
"bg-conic-at-tr": "background-image:conic-gradient(from 0deg at top right, var(--cer-gradient-stops));",
|
|
1156
|
+
"bg-conic-at-r": "background-image:conic-gradient(from 0deg at right, var(--cer-gradient-stops));",
|
|
1157
|
+
"bg-conic-at-br": "background-image:conic-gradient(from 0deg at bottom right, var(--cer-gradient-stops));",
|
|
1158
|
+
"bg-conic-at-b": "background-image:conic-gradient(from 0deg at bottom, var(--cer-gradient-stops));",
|
|
1159
|
+
"bg-conic-at-bl": "background-image:conic-gradient(from 0deg at bottom left, var(--cer-gradient-stops));",
|
|
1160
|
+
"bg-conic-at-l": "background-image:conic-gradient(from 0deg at left, var(--cer-gradient-stops));",
|
|
1161
|
+
"bg-conic-at-tl": "background-image:conic-gradient(from 0deg at top left, var(--cer-gradient-stops));"
|
|
1162
|
+
}), Object.assign(e, {
|
|
1163
|
+
"prose-invert": "\n --cer-prose-body:var(--cer-color-neutral-200);\n --cer-prose-headings:var(--cer-color-neutral-50);\n --cer-prose-lead:var(--cer-color-neutral-300);\n --cer-prose-bold:var(--cer-color-neutral-50);\n --cer-prose-quotes:var(--cer-color-neutral-300);\n --cer-prose-quote-border:var(--cer-color-neutral-700);\n --cer-prose-code:var(--cer-color-neutral-200);\n --cer-prose-code-bg:var(--cer-color-neutral-900);\n --cer-prose-pre-code:var(--cer-color-neutral-200);\n --cer-prose-pre-bg:var(--cer-color-neutral-900);\n --cer-prose-pre-border:var(--cer-color-neutral-800);\n --cer-prose-hr:var(--cer-color-neutral-700);\n --cer-prose-caps:var(--cer-color-neutral-400);\n --cer-prose-list-marker:var(--cer-color-neutral-400);\n --cer-prose-list-marker-strong:var(--cer-color-neutral-300);\n --cer-prose-counters:var(--cer-color-neutral-300);\n --cer-prose-bullets:var(--cer-color-neutral-300);\n --cer-prose-img-caption:var(--cer-color-neutral-400);\n --cer-prose-table-border:var(--cer-color-neutral-700);\n --cer-prose-table-head:var(--cer-color-neutral-200);\n --cer-prose-links:var(--cer-prose-invert-links,var(--cer-color-neutral-300));\n --cer-prose-links-hover:var(--cer-prose-invert-links-hover,var(--cer-color-neutral-100));\n ".replace(/\s+/g, ""),
|
|
1164
|
+
"prose-primary": "\n --cer-prose-links:var(--cer-color-primary-700);\n --cer-prose-links-hover:var(--cer-color-primary-500);\n --cer-prose-invert-links:var(--cer-color-primary-300);\n --cer-prose-invert-links-hover:var(--cer-color-primary-100);\n ".replace(/\s+/g, ""),
|
|
1165
|
+
"prose-secondary": "\n --cer-prose-links:var(--cer-color-secondary-700);\n --cer-prose-links-hover:var(--cer-color-secondary-500);\n --cer-prose-invert-links:var(--cer-color-secondary-300);\n --cer-prose-invert-links-hover:var(--cer-color-secondary-100);\n ".replace(/\s+/g, ""),
|
|
1166
|
+
"prose-success": "\n --cer-prose-links:var(--cer-color-success-700);\n --cer-prose-links-hover:var(--cer-color-success-500);\n --cer-prose-invert-links:var(--cer-color-success-300);\n --cer-prose-invert-links-hover:var(--cer-color-success-100);\n ".replace(/\s+/g, ""),
|
|
1167
|
+
"prose-warning": "\n --cer-prose-links:var(--cer-color-warning-700);\n --cer-prose-links-hover:var(--cer-color-warning-500);\n --cer-prose-invert-links:var(--cer-color-warning-300);\n --cer-prose-invert-links-hover:var(--cer-color-warning-100);\n ".replace(/\s+/g, ""),
|
|
1168
|
+
"prose-error": "\n --cer-prose-links:var(--cer-color-error-700);\n --cer-prose-links-hover:var(--cer-color-error-500);\n --cer-prose-invert-links:var(--cer-color-error-300);\n --cer-prose-invert-links-hover:var(--cer-color-error-100);\n ".replace(/\s+/g, ""),
|
|
1169
|
+
"prose-info": "\n --cer-prose-links:var(--cer-color-info-700);\n --cer-prose-links-hover:var(--cer-color-info-500);\n --cer-prose-invert-links:var(--cer-color-info-300);\n --cer-prose-invert-links-hover:var(--cer-color-info-100);\n ".replace(/\s+/g, "")
|
|
1170
|
+
}), e["flow-root"] = "display:flow-root;", e["text-start"] = "text-align:start;", e["text-end"] = "text-align:end;", e["grid-cols-subgrid"] = "grid-template-columns:subgrid;", e["grid-rows-subgrid"] = "grid-template-rows:subgrid;", Object.assign(e, {
|
|
1171
|
+
"text-shadow-xs": "--cer-text-shadow-color:rgb(0 0 0 / 0.05);text-shadow:0 1px 1px var(--cer-text-shadow-color, rgb(0 0 0 / 0.05));",
|
|
1172
|
+
"text-shadow-sm": "--cer-text-shadow-color:rgb(0 0 0 / 0.15);text-shadow:0 1px 2px var(--cer-text-shadow-color, rgb(0 0 0 / 0.15));",
|
|
1173
|
+
"text-shadow": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 1px 3px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
|
|
1174
|
+
"text-shadow-md": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 2px 4px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
|
|
1175
|
+
"text-shadow-lg": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 4px 8px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
|
|
1176
|
+
"text-shadow-xl": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 6px 16px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
|
|
1177
|
+
"text-shadow-2xl": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 8px 24px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
|
|
1178
|
+
"text-shadow-none": "text-shadow:none;"
|
|
1179
|
+
}), Object.assign(e, {
|
|
1180
|
+
"mask-none": "mask-image:none;",
|
|
1181
|
+
"mask-linear-to-t": "mask-image:linear-gradient(to top,black,transparent);",
|
|
1182
|
+
"mask-linear-to-tr": "mask-image:linear-gradient(to top right,black,transparent);",
|
|
1183
|
+
"mask-linear-to-r": "mask-image:linear-gradient(to right,black,transparent);",
|
|
1184
|
+
"mask-linear-to-br": "mask-image:linear-gradient(to bottom right,black,transparent);",
|
|
1185
|
+
"mask-linear-to-b": "mask-image:linear-gradient(to bottom,black,transparent);",
|
|
1186
|
+
"mask-linear-to-bl": "mask-image:linear-gradient(to bottom left,black,transparent);",
|
|
1187
|
+
"mask-linear-to-l": "mask-image:linear-gradient(to left,black,transparent);",
|
|
1188
|
+
"mask-linear-to-tl": "mask-image:linear-gradient(to top left,black,transparent);",
|
|
1189
|
+
"mask-radial": "mask-image:radial-gradient(ellipse at center,black,transparent);",
|
|
1190
|
+
"mask-radial-from-center": "mask-image:radial-gradient(ellipse at center,black 0%,transparent 100%);",
|
|
1191
|
+
"mask-size-contain": "mask-size:contain;",
|
|
1192
|
+
"mask-size-cover": "mask-size:cover;",
|
|
1193
|
+
"mask-no-repeat": "mask-repeat:no-repeat;",
|
|
1194
|
+
"mask-repeat": "mask-repeat:repeat;",
|
|
1195
|
+
"mask-alpha": "mask-mode:alpha;",
|
|
1196
|
+
"mask-luminance": "mask-mode:luminance;"
|
|
1197
|
+
}), e["field-sizing-content"] = "field-sizing:content;", e["field-sizing-fixed"] = "field-sizing:fixed;", Object.assign(e, {
|
|
1198
|
+
"scheme-light": "color-scheme:light;",
|
|
1199
|
+
"scheme-dark": "color-scheme:dark;",
|
|
1200
|
+
"scheme-both": "color-scheme:light dark;",
|
|
1201
|
+
"scheme-only-light": "color-scheme:only light;",
|
|
1202
|
+
"scheme-only-dark": "color-scheme:only dark;",
|
|
1203
|
+
"scheme-normal": "color-scheme:normal;"
|
|
1204
|
+
}), Object.assign(e, {
|
|
1205
|
+
"font-stretch-ultra-condensed": "font-stretch:ultra-condensed;",
|
|
1206
|
+
"font-stretch-extra-condensed": "font-stretch:extra-condensed;",
|
|
1207
|
+
"font-stretch-condensed": "font-stretch:condensed;",
|
|
1208
|
+
"font-stretch-semi-condensed": "font-stretch:semi-condensed;",
|
|
1209
|
+
"font-stretch-normal": "font-stretch:normal;",
|
|
1210
|
+
"font-stretch-semi-expanded": "font-stretch:semi-expanded;",
|
|
1211
|
+
"font-stretch-expanded": "font-stretch:expanded;",
|
|
1212
|
+
"font-stretch-extra-expanded": "font-stretch:extra-expanded;",
|
|
1213
|
+
"font-stretch-ultra-expanded": "font-stretch:ultra-expanded;"
|
|
1214
|
+
}), Object.assign(e, {
|
|
1215
|
+
"cursor-zoom-in": "cursor:zoom-in;",
|
|
1216
|
+
"cursor-zoom-out": "cursor:zoom-out;",
|
|
1217
|
+
"cursor-cell": "cursor:cell;",
|
|
1218
|
+
"cursor-crosshair": "cursor:crosshair;",
|
|
1219
|
+
"cursor-copy": "cursor:copy;",
|
|
1220
|
+
"cursor-alias": "cursor:alias;",
|
|
1221
|
+
"cursor-context-menu": "cursor:context-menu;",
|
|
1222
|
+
"cursor-vertical-text": "cursor:vertical-text;",
|
|
1223
|
+
"cursor-no-drop": "cursor:no-drop;",
|
|
1224
|
+
"cursor-progress": "cursor:progress;",
|
|
1225
|
+
"cursor-col-resize": "cursor:col-resize;",
|
|
1226
|
+
"cursor-row-resize": "cursor:row-resize;",
|
|
1227
|
+
"cursor-ew-resize": "cursor:ew-resize;",
|
|
1228
|
+
"cursor-ns-resize": "cursor:ns-resize;",
|
|
1229
|
+
"cursor-nesw-resize": "cursor:nesw-resize;",
|
|
1230
|
+
"cursor-nwse-resize": "cursor:nwse-resize;",
|
|
1231
|
+
"cursor-all-scroll": "cursor:all-scroll;"
|
|
1232
|
+
}), Object.assign(e, {
|
|
1233
|
+
"border-s": "border-inline-start-width:1px;",
|
|
1234
|
+
"border-e": "border-inline-end-width:1px;",
|
|
1235
|
+
"border-s-0": "border-inline-start-width:0px;",
|
|
1236
|
+
"border-e-0": "border-inline-end-width:0px;",
|
|
1237
|
+
"border-s-2": "border-inline-start-width:2px;",
|
|
1238
|
+
"border-e-2": "border-inline-end-width:2px;",
|
|
1239
|
+
"border-s-4": "border-inline-start-width:4px;",
|
|
1240
|
+
"border-e-4": "border-inline-end-width:4px;",
|
|
1241
|
+
"border-s-8": "border-inline-start-width:8px;",
|
|
1242
|
+
"border-e-8": "border-inline-end-width:8px;"
|
|
1243
|
+
}), Object.assign(e, {
|
|
1244
|
+
"rounded-s-none": "border-start-start-radius:0;border-end-start-radius:0;",
|
|
1245
|
+
"rounded-e-none": "border-start-end-radius:0;border-end-end-radius:0;",
|
|
1246
|
+
"rounded-s-sm": "border-start-start-radius:0.125rem;border-end-start-radius:0.125rem;",
|
|
1247
|
+
"rounded-e-sm": "border-start-end-radius:0.125rem;border-end-end-radius:0.125rem;",
|
|
1248
|
+
"rounded-s": "border-start-start-radius:0.25rem;border-end-start-radius:0.25rem;",
|
|
1249
|
+
"rounded-e": "border-start-end-radius:0.25rem;border-end-end-radius:0.25rem;",
|
|
1250
|
+
"rounded-s-md": "border-start-start-radius:0.375rem;border-end-start-radius:0.375rem;",
|
|
1251
|
+
"rounded-e-md": "border-start-end-radius:0.375rem;border-end-end-radius:0.375rem;",
|
|
1252
|
+
"rounded-s-lg": "border-start-start-radius:0.5rem;border-end-start-radius:0.5rem;",
|
|
1253
|
+
"rounded-e-lg": "border-start-end-radius:0.5rem;border-end-end-radius:0.5rem;",
|
|
1254
|
+
"rounded-s-xl": "border-start-start-radius:0.75rem;border-end-start-radius:0.75rem;",
|
|
1255
|
+
"rounded-e-xl": "border-start-end-radius:0.75rem;border-end-end-radius:0.75rem;",
|
|
1256
|
+
"rounded-s-2xl": "border-start-start-radius:1rem;border-end-start-radius:1rem;",
|
|
1257
|
+
"rounded-e-2xl": "border-start-end-radius:1rem;border-end-end-radius:1rem;",
|
|
1258
|
+
"rounded-s-3xl": "border-start-start-radius:1.5rem;border-end-start-radius:1.5rem;",
|
|
1259
|
+
"rounded-e-3xl": "border-start-end-radius:1.5rem;border-end-end-radius:1.5rem;",
|
|
1260
|
+
"rounded-s-full": "border-start-start-radius:9999px;border-end-start-radius:9999px;",
|
|
1261
|
+
"rounded-e-full": "border-start-end-radius:9999px;border-end-end-radius:9999px;"
|
|
1262
|
+
}), e;
|
|
1263
|
+
})();
|
|
1264
|
+
function F(e) {
|
|
1265
|
+
return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (_(e), "") : null;
|
|
1266
|
+
}
|
|
1267
|
+
function I(e) {
|
|
1268
|
+
return /^prose-([a-z0-9]+):(.+)$/.test(e) ? u(e, P, U, W, Y, q, J, X) : null;
|
|
1269
|
+
}
|
|
1270
|
+
function L(e, t) {
|
|
1271
|
+
let n = 0;
|
|
1272
|
+
for (let r = 0; r < e.length; r++) {
|
|
1273
|
+
let i = e[r];
|
|
1274
|
+
if (i === "[" || i === "(") n++;
|
|
1275
|
+
else if ((i === "]" || i === ")") && n > 0) n--;
|
|
1276
|
+
else if (n === 0 && (i === ">" || i === "+" || i === "~" || i === " ")) return e.slice(0, r) + t + e.slice(r);
|
|
1277
|
+
}
|
|
1278
|
+
return e + t;
|
|
1279
|
+
}
|
|
1280
|
+
var R = {
|
|
1281
|
+
before: (e, t) => `${e}::before{${t}}`,
|
|
1282
|
+
after: (e, t) => `${e}::after{${t}}`,
|
|
1283
|
+
hover: (e, t) => `${L(e, ":hover")}{${t}}`,
|
|
1284
|
+
focus: (e, t) => `${L(e, ":focus")}{${t}}`,
|
|
1285
|
+
active: (e, t) => `${L(e, ":active")}{${t}}`,
|
|
1286
|
+
disabled: (e, t) => `${L(e, ":disabled")}{${t}}`,
|
|
1287
|
+
visited: (e, t) => `${L(e, ":visited")}{${t}}`,
|
|
1288
|
+
checked: (e, t) => `${L(e, ":checked")}{${t}}`,
|
|
1289
|
+
first: (e, t) => `${L(e, ":first-child")}{${t}}`,
|
|
1290
|
+
last: (e, t) => `${L(e, ":last-child")}{${t}}`,
|
|
1291
|
+
odd: (e, t) => `${L(e, ":nth-child(odd)")}{${t}}`,
|
|
1292
|
+
even: (e, t) => `${L(e, ":nth-child(even)")}{${t}}`,
|
|
1293
|
+
"focus-within": (e, t) => `${L(e, ":focus-within")}{${t}}`,
|
|
1294
|
+
"focus-visible": (e, t) => `${L(e, ":focus-visible")}{${t}}`,
|
|
1295
|
+
"group-hover": (e, t) => `.group:hover ${e}{${t}}`,
|
|
1296
|
+
"group-focus": (e, t) => `.group:focus ${e}{${t}}`,
|
|
1297
|
+
"group-active": (e, t) => `.group:active ${e}{${t}}`,
|
|
1298
|
+
"group-disabled": (e, t) => `.group:disabled ${e}{${t}}`,
|
|
1299
|
+
"peer-hover": (e, t) => `.peer:hover ~ ${e}{${t}}`,
|
|
1300
|
+
"peer-focus": (e, t) => `.peer:focus ~ ${e}{${t}}`,
|
|
1301
|
+
"peer-checked": (e, t) => `.peer:checked ~ ${e}{${t}}`,
|
|
1302
|
+
"peer-disabled": (e, t) => `.peer:disabled ~ ${e}{${t}}`,
|
|
1303
|
+
"dark-class": (e, t) => `:host(.dark) ${e}{${t}}`,
|
|
1304
|
+
rtl: (e, t) => `[dir=rtl] ${e}{${t}}`,
|
|
1305
|
+
ltr: (e, t) => `[dir=ltr] ${e}{${t}}`,
|
|
1306
|
+
placeholder: (e, t) => `${e}::placeholder{${t}}`,
|
|
1307
|
+
file: (e, t) => `${e}::file-selector-button{${t}}`,
|
|
1308
|
+
marker: (e, t) => `${e}::marker{${t}}`,
|
|
1309
|
+
selection: (e, t) => `${e}::selection{${t}}`,
|
|
1310
|
+
open: (e, t) => `${L(e, "[open]")}{${t}}`,
|
|
1311
|
+
inert: (e, t) => `${L(e, "[inert]")}{${t}}`
|
|
1312
|
+
}, z = {
|
|
1313
|
+
sm: "(min-width:640px)",
|
|
1314
|
+
md: "(min-width:768px)",
|
|
1315
|
+
lg: "(min-width:1024px)",
|
|
1316
|
+
xl: "(min-width:1280px)",
|
|
1317
|
+
"2xl": "(min-width:1536px)",
|
|
1318
|
+
dark: "(prefers-color-scheme: dark)",
|
|
1319
|
+
"motion-reduce": "(prefers-reduced-motion: reduce)",
|
|
1320
|
+
"motion-safe": "(prefers-reduced-motion: no-preference)",
|
|
1321
|
+
print: "print",
|
|
1322
|
+
"forced-colors": "(forced-colors: active)"
|
|
1323
|
+
}, B = {
|
|
1324
|
+
xs: "(min-width:20rem)",
|
|
1325
|
+
sm: "(min-width:24rem)",
|
|
1326
|
+
md: "(min-width:28rem)",
|
|
1327
|
+
lg: "(min-width:32rem)",
|
|
1328
|
+
xl: "(min-width:36rem)",
|
|
1329
|
+
"2xl": "(min-width:42rem)",
|
|
1330
|
+
"3xl": "(min-width:48rem)",
|
|
1331
|
+
"4xl": "(min-width:56rem)",
|
|
1332
|
+
"5xl": "(min-width:64rem)",
|
|
1333
|
+
"6xl": "(min-width:72rem)",
|
|
1334
|
+
"7xl": "(min-width:80rem)"
|
|
1335
|
+
}, V = [
|
|
1336
|
+
"sm",
|
|
1337
|
+
"md",
|
|
1338
|
+
"lg",
|
|
1339
|
+
"xl",
|
|
1340
|
+
"2xl",
|
|
1341
|
+
"motion-reduce",
|
|
1342
|
+
"motion-safe",
|
|
1343
|
+
"print",
|
|
1344
|
+
"forced-colors"
|
|
1345
|
+
], H = [
|
|
1346
|
+
"xs",
|
|
1347
|
+
"sm",
|
|
1348
|
+
"md",
|
|
1349
|
+
"lg",
|
|
1350
|
+
"xl",
|
|
1351
|
+
"2xl",
|
|
1352
|
+
"3xl",
|
|
1353
|
+
"4xl",
|
|
1354
|
+
"5xl",
|
|
1355
|
+
"6xl",
|
|
1356
|
+
"7xl"
|
|
1357
|
+
];
|
|
1358
|
+
function U(e) {
|
|
1359
|
+
let t = e.startsWith("-"), n = t ? e.slice(1) : e, i = n.lastIndexOf("-");
|
|
1360
|
+
if (i === -1) return null;
|
|
1361
|
+
let a = n.slice(0, i), o = n.slice(i + 1);
|
|
1362
|
+
if (!N[a]) return null;
|
|
1363
|
+
if (o.includes("/")) {
|
|
1364
|
+
let [e, t] = o.split("/").map((e) => parseFloat(e));
|
|
1365
|
+
if (Number.isNaN(e) || Number.isNaN(t) || t === 0) return null;
|
|
1366
|
+
let n = e / t * 100;
|
|
1367
|
+
return N[a].map((e) => `${e}:${n}%;`).join("");
|
|
1368
|
+
}
|
|
1369
|
+
let s = parseFloat(o);
|
|
1370
|
+
if (Number.isNaN(s)) return null;
|
|
1371
|
+
let c = t ? "-" : "";
|
|
1372
|
+
return N[a].map((e) => `${e}:calc(${c}${r} * ${s});`).join("");
|
|
1373
|
+
}
|
|
1374
|
+
function W(e) {
|
|
1375
|
+
let t = e.startsWith("-"), n = (t ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
|
|
1376
|
+
if (!n) return null;
|
|
1377
|
+
let [, i, a] = n, o = i === "x";
|
|
1378
|
+
if (a === "reverse") return o ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
|
|
1379
|
+
if (a.includes("/")) {
|
|
1380
|
+
let [e, n] = a.split("/").map((e) => parseFloat(e));
|
|
1381
|
+
if (Number.isNaN(e) || Number.isNaN(n) || n === 0) return null;
|
|
1382
|
+
let r = e / n * 100, i = t ? "-" : "";
|
|
1383
|
+
return o ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${i}${r}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${i}${r}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${i}${r}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${i}${r}% * var(--cer-space-y-reverse));}`;
|
|
1384
|
+
}
|
|
1385
|
+
let s = parseFloat(a);
|
|
1386
|
+
if (Number.isNaN(s)) return null;
|
|
1387
|
+
let c = `calc(${t ? "-" : ""}${r} * ${s})`;
|
|
1388
|
+
return o ? `--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));}`;
|
|
1389
|
+
}
|
|
1390
|
+
function G(e) {
|
|
1391
|
+
let t = e.replace("#", "");
|
|
1392
|
+
t.length === 3 && (t = t.split("").map((e) => e + e).join(""));
|
|
1393
|
+
let n = parseInt(t, 16);
|
|
1394
|
+
return `${n >> 16 & 255} ${n >> 8 & 255} ${n & 255}`;
|
|
1395
|
+
}
|
|
1396
|
+
var ee = /^(text-shadow|bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke|ring|divide)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, te = {
|
|
1397
|
+
bg: "background-color",
|
|
1398
|
+
decoration: "text-decoration-color",
|
|
1399
|
+
text: "color",
|
|
1400
|
+
border: "border-color",
|
|
1401
|
+
outline: "outline-color",
|
|
1402
|
+
caret: "caret-color",
|
|
1403
|
+
accent: "accent-color",
|
|
1404
|
+
fill: "fill",
|
|
1405
|
+
stroke: "stroke"
|
|
1406
|
+
};
|
|
1407
|
+
function K(e) {
|
|
1408
|
+
let t = ee.exec(e);
|
|
1409
|
+
if (!t) return null;
|
|
1410
|
+
let [, n, r, i = "DEFAULT"] = t, a = y[r]?.[i];
|
|
1411
|
+
if (!a) return null;
|
|
1412
|
+
if (n === "shadow") return `--cer-shadow-color:${a};`;
|
|
1413
|
+
if (n === "ring") return `--cer-ring-color:${a};`;
|
|
1414
|
+
if (n === "divide") return `border-color:${a};`;
|
|
1415
|
+
if (n === "text-shadow") return `--cer-text-shadow-color:${a};`;
|
|
1416
|
+
let o = te[n];
|
|
1417
|
+
return o ? `${o}:${a};` : null;
|
|
1418
|
+
}
|
|
1419
|
+
function ne(e) {
|
|
1420
|
+
let t = e.indexOf("/");
|
|
1421
|
+
if (t === -1) return { base: e };
|
|
1422
|
+
let n = e.slice(0, t), r = e.slice(t + 1), i = parseInt(r, 10);
|
|
1423
|
+
return isNaN(i) || i < 0 || i > 100 ? { base: n } : {
|
|
1424
|
+
base: n,
|
|
1425
|
+
opacity: i / 100
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
function q(e) {
|
|
1429
|
+
let { base: t, opacity: n } = ne(e), r = K(t);
|
|
1430
|
+
if (r) {
|
|
1431
|
+
if (n !== void 0) {
|
|
1432
|
+
if (r.includes("var(")) {
|
|
1433
|
+
let e = /var\([^)]*\)/.exec(r);
|
|
1434
|
+
if (e) {
|
|
1435
|
+
let t = e[0], i = n * 100, a = `color-mix(in srgb, ${t} ${i}%, rgba(0 0 0 / 0) ${100 - i}%)`, o = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(t), s = /^([a-z-]+):/.exec(r), c = s ? s[1] : "background-color";
|
|
1436
|
+
if (o) {
|
|
1437
|
+
let e = `rgb(${G(o[0])} / ${n})`;
|
|
1438
|
+
return `${c}:${t.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, e)};__CE_COLOR_MIX_SPLIT__${c}:${a};`;
|
|
1439
|
+
}
|
|
1440
|
+
return `${c}:${a};`;
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
let e = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(r);
|
|
1444
|
+
if (e) {
|
|
1445
|
+
let t = G(e[0]);
|
|
1446
|
+
return r.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, `rgb(${t} / ${n})`);
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
return r;
|
|
1450
|
+
}
|
|
1451
|
+
let i = X(t);
|
|
1452
|
+
if (i && n !== void 0) {
|
|
1453
|
+
if (i.includes("var(")) {
|
|
1454
|
+
let e = /var\([^)]*\)/.exec(i);
|
|
1455
|
+
if (e) {
|
|
1456
|
+
let t = e[0], r = n * 100, a = `color-mix(in srgb, ${t} ${r}%, rgba(0 0 0 / 0) ${100 - r}%)`, o = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(t), s = /^([a-z-]+):/.exec(i), c = s ? s[1] : null;
|
|
1457
|
+
if (o && c) {
|
|
1458
|
+
let e = `rgb(${G(o[0])} / ${n})`;
|
|
1459
|
+
return `${c}:${t.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, e)};__CE_COLOR_MIX_SPLIT__${c}:${a};`;
|
|
1460
|
+
}
|
|
1461
|
+
return i.replace(t, a);
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
let e = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(i);
|
|
1465
|
+
if (e) {
|
|
1466
|
+
let t = G(e[0]);
|
|
1467
|
+
return i.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, `rgb(${t} / ${n})`);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
return i;
|
|
1471
|
+
}
|
|
1472
|
+
function J(e) {
|
|
1473
|
+
let t = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
|
|
1474
|
+
if (!t) return null;
|
|
1475
|
+
let [, n, r, i = "DEFAULT"] = t, a = y[r]?.[i];
|
|
1476
|
+
if (!a) return null;
|
|
1477
|
+
switch (n) {
|
|
1478
|
+
case "from": return `--cer-gradient-from:${a} 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);`;
|
|
1479
|
+
case "to": return `--cer-gradient-to:${a} var(--cer-gradient-to-position);`;
|
|
1480
|
+
case "via": return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${a} var(--cer-gradient-via-position), var(--cer-gradient-to);`;
|
|
1481
|
+
default: return null;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
function Y(e) {
|
|
1485
|
+
let t = /^opacity-(\d{1,3})$/.exec(e);
|
|
1486
|
+
if (!t) return null;
|
|
1487
|
+
let n = parseInt(t[1], 10);
|
|
1488
|
+
return n < 0 || n > 100 ? null : `opacity:${n / 100};`;
|
|
1489
|
+
}
|
|
1490
|
+
function X(e) {
|
|
1491
|
+
if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
|
|
1492
|
+
let t = e.slice(1, -1).trim(), n = t.indexOf(":");
|
|
1493
|
+
if (n === -1) return null;
|
|
1494
|
+
let r = t.slice(0, n).trim(), i = t.slice(n + 1).trim();
|
|
1495
|
+
return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(r) ? (i = i.replace(/_/g, " "), i = i.replace(/url\('\s*([^']*?)\s*'\)/g, "url(\"$1\")"), i = i.replace(/^'([^']*)'$/g, "\"$1\""), `${r}:${i};`) : null;
|
|
1496
|
+
}
|
|
1497
|
+
let t = e.indexOf("-[");
|
|
1498
|
+
if (t <= 0 || !e.endsWith("]")) return null;
|
|
1499
|
+
let n = e.slice(0, t), r = e.slice(t + 2, -1).replace(/_/g, " "), i = {
|
|
1500
|
+
bg: "background-color",
|
|
1501
|
+
shadow: "box-shadow",
|
|
1502
|
+
p: "padding",
|
|
1503
|
+
px: "padding-inline",
|
|
1504
|
+
py: "padding-block",
|
|
1505
|
+
m: "margin",
|
|
1506
|
+
mx: "margin-inline",
|
|
1507
|
+
my: "margin-block",
|
|
1508
|
+
w: "width",
|
|
1509
|
+
h: "height",
|
|
1510
|
+
"min-w": "min-width",
|
|
1511
|
+
"max-w": "max-width",
|
|
1512
|
+
"min-h": "min-height",
|
|
1513
|
+
"max-h": "max-height",
|
|
1514
|
+
"border-t": "border-top-width",
|
|
1515
|
+
"border-b": "border-bottom-width",
|
|
1516
|
+
"border-l": "border-left-width",
|
|
1517
|
+
"border-r": "border-right-width",
|
|
1518
|
+
"border-x": "border-inline-width",
|
|
1519
|
+
"border-y": "border-block-width",
|
|
1520
|
+
"grid-cols": "grid-template-columns",
|
|
1521
|
+
"grid-rows": "grid-template-rows",
|
|
1522
|
+
transition: "transition-property",
|
|
1523
|
+
ease: "transition-timing-function",
|
|
1524
|
+
delay: "transition-delay",
|
|
1525
|
+
duration: "transition-duration",
|
|
1526
|
+
list: "list-style",
|
|
1527
|
+
break: "word-break",
|
|
1528
|
+
flex: "flex-direction",
|
|
1529
|
+
items: "align-items",
|
|
1530
|
+
justify: "justify-content",
|
|
1531
|
+
content: "content",
|
|
1532
|
+
self: "align-self",
|
|
1533
|
+
basis: "flex-basis",
|
|
1534
|
+
tracking: "letter-spacing",
|
|
1535
|
+
leading: "line-height",
|
|
1536
|
+
z: "z-index",
|
|
1537
|
+
opacity: "opacity"
|
|
1538
|
+
};
|
|
1539
|
+
if (n === "text") return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(r) ? `font-size:${r};` : `color:${r};`;
|
|
1540
|
+
if (n === "rotate") return `transform:rotate(${r});`;
|
|
1541
|
+
if (n === "scale") return `transform:scale(${r});`;
|
|
1542
|
+
if (n === "translate-x") return `transform:translateX(${r});`;
|
|
1543
|
+
if (n === "translate-y") return `transform:translateY(${r});`;
|
|
1544
|
+
let a = i[n] ?? n.replace(/_/g, "-");
|
|
1545
|
+
return a && r ? `${a}:${r};` : null;
|
|
1546
|
+
}
|
|
1547
|
+
function Z(e) {
|
|
1548
|
+
if (e.startsWith("[") && e.endsWith("]")) {
|
|
1549
|
+
let t = e.slice(1, -1);
|
|
1550
|
+
return t.includes("&") ? t : e;
|
|
1551
|
+
}
|
|
1552
|
+
let t = e.indexOf("-[");
|
|
1553
|
+
if (t > 0 && e.endsWith("]")) {
|
|
1554
|
+
let n = e.slice(t + 2, -1).replace(/_/g, "-");
|
|
1555
|
+
return n.includes("&") ? n : e.replace(/_/g, "-");
|
|
1556
|
+
}
|
|
1557
|
+
return null;
|
|
1558
|
+
}
|
|
1559
|
+
function Q(e) {
|
|
1560
|
+
let t = [], n;
|
|
1561
|
+
for (re.lastIndex = 0; n = re.exec(e);) {
|
|
1562
|
+
let e = n[2].split(/\s+/).filter(Boolean);
|
|
1563
|
+
e.length && t.push(...e);
|
|
1564
|
+
}
|
|
1565
|
+
return t;
|
|
1566
|
+
}
|
|
1567
|
+
var re = /class\s*=\s*(['"])([\s\S]*?)\1/g, ie = {
|
|
1568
|
+
sm: 640,
|
|
1569
|
+
md: 768,
|
|
1570
|
+
lg: 1024,
|
|
1571
|
+
xl: 1280,
|
|
1572
|
+
"2xl": 1536
|
|
1573
|
+
}, ae = {
|
|
1574
|
+
xs: 320,
|
|
1575
|
+
sm: 384,
|
|
1576
|
+
md: 448,
|
|
1577
|
+
lg: 512,
|
|
1578
|
+
xl: 576,
|
|
1579
|
+
"2xl": 672,
|
|
1580
|
+
"3xl": 768,
|
|
1581
|
+
"4xl": 896,
|
|
1582
|
+
"5xl": 1024,
|
|
1583
|
+
"6xl": 1152,
|
|
1584
|
+
"7xl": 1280
|
|
1585
|
+
};
|
|
1586
|
+
function oe(e) {
|
|
1587
|
+
for (let [t, n] of Object.entries(ie)) if (e.includes(`@media ${z[t]}`)) return n;
|
|
1588
|
+
return -1;
|
|
1589
|
+
}
|
|
1590
|
+
function se(e) {
|
|
1591
|
+
for (let [t, n] of Object.entries(ae)) if (e.includes(`@container ${B[t]}`)) return n;
|
|
1592
|
+
if (e.includes("@container (min-width:")) {
|
|
1593
|
+
let t = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(e);
|
|
1594
|
+
if (t) {
|
|
1595
|
+
let e = parseFloat(t[1]), n = t[2];
|
|
1596
|
+
return n === "rem" || n === "em" ? e * 16 : e;
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
return -1;
|
|
1600
|
+
}
|
|
1601
|
+
var $ = /* @__PURE__ */ new Map(), ce = 1e3;
|
|
1602
|
+
function le(t) {
|
|
1603
|
+
let r = Q(t);
|
|
1604
|
+
if (!r.length) return "";
|
|
1605
|
+
let a = new Set(r), o = Array.from(a).sort().join("\0"), s = $.get(o);
|
|
1606
|
+
if (s !== void 0) return $.delete(o), $.set(o, s), s;
|
|
1607
|
+
let l = [
|
|
1608
|
+
[],
|
|
1609
|
+
[],
|
|
1610
|
+
[],
|
|
1611
|
+
[],
|
|
1612
|
+
[]
|
|
1613
|
+
], u = {}, d = (e, t = !1) => {
|
|
1614
|
+
let n = t ? `dark|${e}` : e;
|
|
1615
|
+
if (n in u) return u[n];
|
|
1616
|
+
let r = h(e, t);
|
|
1617
|
+
return u[n] = r, r;
|
|
1618
|
+
}, f = (e) => {
|
|
1619
|
+
let t = e.some((e) => V.includes(e)), n = e.some((e) => e.startsWith("@") && (H.includes(e.slice(1)) || e.match(/^@\[.+\]$/))), r = e.includes("dark");
|
|
1620
|
+
return e.length ? !t && !r && !n ? 1 : r && (t || n) ? 4 : r ? 3 : 2 : 0;
|
|
1621
|
+
}, p = (e) => {
|
|
1622
|
+
let t = [], n = "", r = 0;
|
|
1623
|
+
for (let i = 0; i < e.length; i++) {
|
|
1624
|
+
let a = e[i];
|
|
1625
|
+
a === "[" || a === "(" ? r++ : (a === "]" || a === ")") && r--, a === ":" && r === 0 ? (t.push(n), n = "") : n += a;
|
|
1626
|
+
}
|
|
1627
|
+
return n && t.push(n), t;
|
|
1628
|
+
}, m = {
|
|
1629
|
+
hover: ":hover",
|
|
1630
|
+
focus: ":focus",
|
|
1631
|
+
active: ":active",
|
|
1632
|
+
visited: ":visited",
|
|
1633
|
+
disabled: ":disabled",
|
|
1634
|
+
checked: ":checked",
|
|
1635
|
+
first: ":first-child",
|
|
1636
|
+
last: ":last-child",
|
|
1637
|
+
odd: ":nth-child(odd)",
|
|
1638
|
+
even: ":nth-child(even)",
|
|
1639
|
+
"focus-within": ":focus-within",
|
|
1640
|
+
"focus-visible": ":focus-visible"
|
|
1641
|
+
}, h = (t, n = !1) => {
|
|
1642
|
+
let r = p(t), i = "", a = !1;
|
|
1643
|
+
for (let e of r) {
|
|
1644
|
+
let t = e;
|
|
1645
|
+
if (t.startsWith("!") && (a = !0, t = t.slice(1)), t.endsWith("!") && (a = !0, t = t.slice(0, -1)), !(t.startsWith("data-[") && t.endsWith("]") || t.startsWith("has-[") && t.endsWith("]") || t.startsWith("not-[") && t.endsWith("]") || t.startsWith("in-[") && t.endsWith("]") || t.startsWith("supports-[") && t.endsWith("]") || t === "starting") && (P[t] || U(t) || W(t) || Y(t) || q(t) || J(t) || X(t))) {
|
|
1646
|
+
i = e;
|
|
1647
|
+
break;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
if (!i) return null;
|
|
1651
|
+
let o = i.replace(/^!/, "").replace(/!$/, ""), s = P[o] ?? U(o) ?? W(o) ?? Y(o) ?? q(o) ?? J(o) ?? X(o);
|
|
1652
|
+
if (!s) return null;
|
|
1653
|
+
let c = r.indexOf(i), l = c >= 0 ? r.slice(0, c) : [];
|
|
1654
|
+
n && (l = l.filter((e) => e !== "dark"));
|
|
1655
|
+
let u = e(t), d = a ? s.replace(/;/g, " !important;") : s, f = "__SUBJECT__", h = f, g = [];
|
|
1656
|
+
for (let e of l) e.startsWith("group-") ? (h = `.group:${e.slice(6)} ${h}`, g.push(e)) : e.startsWith("peer-") && (h = h.replace(f, `.peer:${e.slice(5)}~${f}`), g.push(e));
|
|
1657
|
+
l = l.filter((e) => !g.includes(e));
|
|
1658
|
+
let _ = [], v = [], y = null, b = !1, S = [];
|
|
1659
|
+
for (let e of l) {
|
|
1660
|
+
if (e === "dark" || V.includes(e) || e.startsWith("@") && (H.includes(e.slice(1)) || e.match(/^@\[.+\]$/))) continue;
|
|
1661
|
+
if (e.startsWith("data-[") && e.endsWith("]")) {
|
|
1662
|
+
let t = e.slice(6, -1), n = t.includes("=") ? "[data-" + t.replace(/^([^=]+)=(.+)$/, "$1=\"$2\"") + "]" : "[data-" + t + "]";
|
|
1663
|
+
_.push(n);
|
|
1664
|
+
continue;
|
|
1665
|
+
}
|
|
1666
|
+
if (e.startsWith("has-[") && e.endsWith("]")) {
|
|
1667
|
+
let t = e.slice(5, -1).replace(/_/g, " ");
|
|
1668
|
+
_.push(`:has(${t})`);
|
|
1669
|
+
continue;
|
|
1670
|
+
}
|
|
1671
|
+
if (e.startsWith("not-[") && e.endsWith("]")) {
|
|
1672
|
+
let t = e.slice(5, -1).replace(/_/g, " ");
|
|
1673
|
+
_.push(`:not(${t})`);
|
|
1674
|
+
continue;
|
|
1675
|
+
}
|
|
1676
|
+
if (e.startsWith("in-[") && e.endsWith("]")) {
|
|
1677
|
+
h = ":is(" + e.slice(4, -1).replace(/_/g, " ") + ") " + h;
|
|
1678
|
+
continue;
|
|
1679
|
+
}
|
|
1680
|
+
if (e === "starting") {
|
|
1681
|
+
b = !0;
|
|
1682
|
+
continue;
|
|
1683
|
+
}
|
|
1684
|
+
if (e.startsWith("supports-[") && e.endsWith("]")) {
|
|
1685
|
+
S.push(e);
|
|
1686
|
+
continue;
|
|
1687
|
+
}
|
|
1688
|
+
let t = Z(e);
|
|
1689
|
+
if (t) {
|
|
1690
|
+
y = t;
|
|
1691
|
+
continue;
|
|
1692
|
+
}
|
|
1693
|
+
let n = m[e];
|
|
1694
|
+
if (n) {
|
|
1695
|
+
y ? v.push(n) : _.push(n);
|
|
1696
|
+
continue;
|
|
1697
|
+
}
|
|
1698
|
+
let r = R[e];
|
|
1699
|
+
typeof r == "function" && (h = r(h, d).split("{")[0]);
|
|
1700
|
+
}
|
|
1701
|
+
let C = _.join(""), w = v.join("");
|
|
1702
|
+
function T(e, t) {
|
|
1703
|
+
if (!t) return e;
|
|
1704
|
+
let n = 0, r = 0;
|
|
1705
|
+
if (e.length && (e[0] === ">" || e[0] === "+" || e[0] === "~" || e[0] === " ")) {
|
|
1706
|
+
let i = 1;
|
|
1707
|
+
for (; i < e.length && e[i] === " ";) i++;
|
|
1708
|
+
for (; i < e.length; i++) {
|
|
1709
|
+
let a = e[i];
|
|
1710
|
+
if (a === "[" ? n++ : a === "]" && n > 0 ? n-- : a === "(" ? r++ : a === ")" && r > 0 && r--, n === 0 && r === 0 && (e[i] === ">" || e[i] === "+" || e[i] === "~" || e[i] === " ")) return e.slice(0, i) + t + e.slice(i);
|
|
1711
|
+
}
|
|
1712
|
+
return e + t;
|
|
1713
|
+
}
|
|
1714
|
+
for (let i = 0; i < e.length; i++) {
|
|
1715
|
+
let a = e[i];
|
|
1716
|
+
if (a === "[" ? n++ : a === "]" && n > 0 ? n-- : a === "(" ? r++ : a === ")" && r > 0 && r--, n === 0 && r === 0 && (a === ">" || a === "+" || a === "~" || a === " ")) return e.slice(0, i) + t + e.slice(i);
|
|
1717
|
+
}
|
|
1718
|
+
return e + t;
|
|
1719
|
+
}
|
|
1720
|
+
if (y) if (y.includes("&")) {
|
|
1721
|
+
let e = y.indexOf("&"), t = y.slice(0, e), n = y.slice(e + 1), r = f + C;
|
|
1722
|
+
if (_.length === 0) h = h.replace(f, t + r + w + n);
|
|
1723
|
+
else {
|
|
1724
|
+
let e = T(n, w);
|
|
1725
|
+
h = h.replace(f, t + r + e);
|
|
1726
|
+
}
|
|
1727
|
+
} else h = h.replace(f, `${y}${f + C}`), w && (h = h.replace(f, `${f}${w}`));
|
|
1728
|
+
else h = h.replace(f, f + C + w);
|
|
1729
|
+
h = h.replace(new RegExp(f, "g"), u);
|
|
1730
|
+
let E = "__CE_COLOR_MIX_SPLIT__", D = d.includes(E) ? d.split(E).map((e) => `${h}{${e}}`) : [`${h}{${d}}`], O = l.filter((e) => V.includes(e)), k = l.filter((e) => e.startsWith("@") && (H.includes(e.slice(1)) || e.match(/^@\[.+\]$/))), A = O.length ? O[O.length - 1] : null, j = k.length ? k[k.length - 1] : null, M = l.includes("dark"), N = x.disableVariants ?? [];
|
|
1731
|
+
if (N.length > 0 && (N.includes("dark") && M || N.includes("responsive") && O.length > 0 || N.includes("container") && k.length > 0 || N.includes("motion") && l.some((e) => e === "motion-reduce" || e === "motion-safe") || N.includes("print") && l.includes("print"))) return null;
|
|
1732
|
+
let F = "", I = "";
|
|
1733
|
+
if (M && A ? F = `@media (prefers-color-scheme: dark) and ${z[A]}` : M ? F = "@media (prefers-color-scheme: dark)" : A && (F = `@media ${z[A]}`), j) if (j.startsWith("@[") && j.endsWith("]")) {
|
|
1734
|
+
let e = j.slice(2, -1);
|
|
1735
|
+
if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(e)) return null;
|
|
1736
|
+
I = `@container (min-width:${e})`;
|
|
1737
|
+
} else {
|
|
1738
|
+
let e = j.slice(1);
|
|
1739
|
+
I = `@container ${B[e] || `(min-width:${e})`}`;
|
|
1740
|
+
}
|
|
1741
|
+
let L = "";
|
|
1742
|
+
if (S.length > 0) {
|
|
1743
|
+
let e = S[S.length - 1].slice(10, -1).replace(/_/g, " ");
|
|
1744
|
+
L = `@supports ${e.startsWith("not(") || e.startsWith("selector(") || e.startsWith("(") ? e : `(${e})`}`;
|
|
1745
|
+
}
|
|
1746
|
+
return D.map((e) => {
|
|
1747
|
+
let t = e;
|
|
1748
|
+
return b && (t = `@starting-style{${t}}`), L && (t = `${L}{${t}}`), F && I ? `${F}${I}{${t}}` : F ? `${F}{${t}}` : I ? `${I}{${t}}` : t;
|
|
1749
|
+
}).join("");
|
|
1750
|
+
};
|
|
1751
|
+
for (let t of a) {
|
|
1752
|
+
let r = p(t), a = r.slice(0, -1), o = r[r.length - 1];
|
|
1753
|
+
if (F(o) !== null) {
|
|
1754
|
+
if (a.length === 0) l[0].push(`${e(t)}{}`);
|
|
1755
|
+
else {
|
|
1756
|
+
let r = c(o);
|
|
1757
|
+
if (!r) continue;
|
|
1758
|
+
let i = e(t), s = e(o), u = r.replace(new RegExp(n(s), "g"), i), d = a.filter((e) => V.includes(e));
|
|
1759
|
+
d.length > 0 && (u = `${`@media ${z[d[d.length - 1]]}`}{${u}}`), a.includes("dark") && (u = `@media (prefers-color-scheme: dark){${u}}`), l[f(a)].push(u);
|
|
1760
|
+
}
|
|
1761
|
+
continue;
|
|
1762
|
+
}
|
|
1763
|
+
let s = -1;
|
|
1764
|
+
for (let e = r.length - 1; e >= 0; e--) if (I(r.slice(e).join(":"))) {
|
|
1765
|
+
s = e;
|
|
1766
|
+
break;
|
|
1767
|
+
}
|
|
1768
|
+
if (s >= 0) {
|
|
1769
|
+
let e = r.slice(s).join(":"), n = r.slice(0, s), a = I(e);
|
|
1770
|
+
if (!a) continue;
|
|
1771
|
+
if (n.length === 0) {
|
|
1772
|
+
l[0].push(a);
|
|
1773
|
+
continue;
|
|
1774
|
+
}
|
|
1775
|
+
let o = i(t), c = i(e), u = [...a.replace(RegExp(`\\.${c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`, "g"), `.${o}`).matchAll(/(.+?)\s+(.+?)\{([^}]+)\}/g)];
|
|
1776
|
+
if (u.length === 0) {
|
|
1777
|
+
l[0].push(a);
|
|
1778
|
+
continue;
|
|
1779
|
+
}
|
|
1780
|
+
let d = f(n), p = {
|
|
1781
|
+
hover: ":hover",
|
|
1782
|
+
focus: ":focus",
|
|
1783
|
+
active: ":active",
|
|
1784
|
+
visited: ":visited",
|
|
1785
|
+
disabled: ":disabled",
|
|
1786
|
+
checked: ":checked",
|
|
1787
|
+
first: ":first-child",
|
|
1788
|
+
last: ":last-child",
|
|
1789
|
+
odd: ":nth-child(odd)",
|
|
1790
|
+
even: ":nth-child(even)",
|
|
1791
|
+
"focus-within": ":focus-within",
|
|
1792
|
+
"focus-visible": ":focus-visible"
|
|
1793
|
+
}, m = [], h = [], g = [], _ = [], v = [], y = !1;
|
|
1794
|
+
for (let e of n) e.startsWith("group-") || e.startsWith("peer-") ? m.push(e) : e === "dark" || e === "dark-class" ? y = !0 : V.includes(e) ? _.push(e) : e.startsWith("@") && (H.includes(e.slice(1)) || e.match(/^@\[.+\]$/)) ? v.push(e) : e.startsWith("[") && e.endsWith("]") ? g.push(e) : (p[e] || R[e]) && h.push(e);
|
|
1795
|
+
for (let e of u) {
|
|
1796
|
+
let [, n, r, i] = e, a = `${n} ${r}`;
|
|
1797
|
+
for (let e of m) if (e.startsWith("group-")) {
|
|
1798
|
+
let t = e.slice(6);
|
|
1799
|
+
a = `.group${p[t] || `:${t}`} ${a}`;
|
|
1800
|
+
} else if (e.startsWith("peer-")) {
|
|
1801
|
+
let t = e.slice(5);
|
|
1802
|
+
a = `.peer${p[t] || `:${t}`}~${a}`;
|
|
1803
|
+
}
|
|
1804
|
+
if (h.length > 0) {
|
|
1805
|
+
let e = h.map((e) => p[e] || `:${e}`).join("");
|
|
1806
|
+
a = `${a}${e}`;
|
|
1807
|
+
}
|
|
1808
|
+
for (let e of g) {
|
|
1809
|
+
let t = Z(e);
|
|
1810
|
+
if (t && t.includes("&")) {
|
|
1811
|
+
let e = t.indexOf("&"), n = t.slice(0, e), r = t.slice(e + 1);
|
|
1812
|
+
a = `${n}${a}${r}`;
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
let o = `${a}{${i}}`;
|
|
1816
|
+
if (y && (o = `@media (prefers-color-scheme: dark){${o}}`), v.length > 0) {
|
|
1817
|
+
let e = v[v.length - 1];
|
|
1818
|
+
if (e.startsWith("@[") && e.endsWith("]")) {
|
|
1819
|
+
let t = e.slice(2, -1);
|
|
1820
|
+
/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(t) && (o = `@container (min-width:${t}){${o}}`);
|
|
1821
|
+
} else {
|
|
1822
|
+
let n = e.slice(1), r = {
|
|
1823
|
+
xs: "20rem",
|
|
1824
|
+
sm: "24rem",
|
|
1825
|
+
md: "28rem",
|
|
1826
|
+
lg: "32rem",
|
|
1827
|
+
xl: "36rem",
|
|
1828
|
+
"2xl": "42rem",
|
|
1829
|
+
"3xl": "48rem",
|
|
1830
|
+
"4xl": "56rem",
|
|
1831
|
+
"5xl": "64rem",
|
|
1832
|
+
"6xl": "72rem",
|
|
1833
|
+
"7xl": "80rem"
|
|
1834
|
+
}[n];
|
|
1835
|
+
if (r) {
|
|
1836
|
+
let e = t.match(/@([^/]+)\//)?.[1] || "";
|
|
1837
|
+
o = e ? `@container ${e} (min-width: ${r}){${o}}` : `@container (min-width: ${r}){${o}}`;
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
_.length > 0 && (o = `${`@media ${z[_[_.length - 1]]}`}{${o}}`), l[d].push(o);
|
|
1842
|
+
}
|
|
1843
|
+
continue;
|
|
1844
|
+
}
|
|
1845
|
+
let u = r.find((e) => {
|
|
1846
|
+
let t = e.replace(/^!/, "").replace(/!$/, "");
|
|
1847
|
+
return P[t] || U(t) || W(t) || Y(t) || q(t) || J(t) || X(t);
|
|
1848
|
+
});
|
|
1849
|
+
if (!u) continue;
|
|
1850
|
+
let m = r.indexOf(u), h = f(m >= 0 ? r.slice(0, m) : []), g = d(t);
|
|
1851
|
+
g && l[h].push(g);
|
|
1852
|
+
}
|
|
1853
|
+
let g = /^(from|via|to)-[a-z]+-?\d{2,3}?$/, _ = l.flat().join("");
|
|
1854
|
+
for (let t of a) if (g.test(t)) {
|
|
1855
|
+
if (_.includes(e(t))) continue;
|
|
1856
|
+
let n = d(t);
|
|
1857
|
+
n && l[0].push(n);
|
|
1858
|
+
}
|
|
1859
|
+
let v = (e) => e.sort((e, t) => {
|
|
1860
|
+
let n = oe(e), r = oe(t), i = se(e), a = se(t);
|
|
1861
|
+
return n >= 0 && r >= 0 && n !== r ? n - r : i >= 0 && a >= 0 && i !== a ? i - a : 0;
|
|
1862
|
+
});
|
|
1863
|
+
l[2] = v(l[2]), l[4] = v(l[4]);
|
|
1864
|
+
let y = l.flat().join("");
|
|
1865
|
+
if ($.size >= ce) {
|
|
1866
|
+
let e = Math.floor(ce / 2);
|
|
1867
|
+
for (let t of $.keys()) {
|
|
1868
|
+
if (e-- === 0) break;
|
|
1869
|
+
$.delete(t);
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
return $.set(o, y), y;
|
|
1873
|
+
}
|
|
1874
|
+
//#endregion
|
|
1875
|
+
export { R as _, Q as a, D as c, X as d, K as f, O as g, U as h, k as i, le as l, J as m, B as n, j as o, q as p, A as r, E as s, v as t, z as u, P as v };
|
|
1876
|
+
|
|
1877
|
+
//# sourceMappingURL=style-DSSoCbC9.js.map
|