@vezham/react 0.4.0-alpha.0 → 0.4.0-alpha.2

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.
@@ -0,0 +1,2177 @@
1
+ var zr = (o) => o ? "" : void 0, Fr = process.env.NODE_ENV !== "production";
2
+ process.env.NODE_ENV;
3
+ function R(o) {
4
+ return Array.isArray(o);
5
+ }
6
+ function ge(o) {
7
+ return R(o) && o.length === 0;
8
+ }
9
+ function P(o) {
10
+ const c = typeof o;
11
+ return o != null && (c === "object" || c === "function") && !R(o);
12
+ }
13
+ function me(o) {
14
+ return P(o) && Object.keys(o).length === 0;
15
+ }
16
+ function Ar(o) {
17
+ return R(o) ? ge(o) : P(o) ? me(o) : o == null || o === "";
18
+ }
19
+ function Er(o) {
20
+ return typeof o == "function";
21
+ }
22
+ var jr = (o) => o ? "true" : void 0;
23
+ function ue(o) {
24
+ var c, l, b = "";
25
+ if (typeof o == "string" || typeof o == "number")
26
+ b += o;
27
+ else if (typeof o == "object")
28
+ if (Array.isArray(o))
29
+ for (c = 0; c < o.length; c++)
30
+ o[c] && (l = ue(o[c])) && (b && (b += " "), b += l);
31
+ else
32
+ for (c in o)
33
+ o[c] && (b && (b += " "), b += c);
34
+ return b;
35
+ }
36
+ function ye(...o) {
37
+ for (var c = 0, l, b, e = ""; c < o.length; )
38
+ (l = o[c++]) && (b = ue(l)) && (e && (e += " "), e += b);
39
+ return e;
40
+ }
41
+ var Mr = (o, c) => P(o) ? o instanceof Array ? [...o] : o[c] : o;
42
+ function Or(o) {
43
+ const c = Object.assign({}, o);
44
+ for (let l in c)
45
+ c[l] === void 0 && delete c[l];
46
+ return c;
47
+ }
48
+ var ve = (o) => o?.length <= 4 ? o : o?.slice(0, 3), $r = (o) => {
49
+ const c = o?.trim().split(/[\s\-_.]+/).filter(Boolean).map((l) => l.charAt(0).toUpperCase()).join("") || "";
50
+ return ve(c);
51
+ }, Cr = (...o) => {
52
+ let c = " ";
53
+ for (const l of o)
54
+ if (typeof l == "string" && l.length > 0) {
55
+ c = l;
56
+ break;
57
+ }
58
+ return c;
59
+ }, Dr = (o) => o ? o.charAt(0).toUpperCase() + o.slice(1).toLowerCase() : "";
60
+ function Tr(...o) {
61
+ return function(l) {
62
+ o.some((b) => (b?.(l), l?.defaultPrevented));
63
+ };
64
+ }
65
+ function Sr(o) {
66
+ return `${o}-${Math.floor(Math.random() * 1e6)}`;
67
+ }
68
+ function qr(o) {
69
+ for (const c in o)
70
+ c.startsWith("on") && delete o[c];
71
+ return o;
72
+ }
73
+ function Lr(o) {
74
+ if (!o || typeof o != "object")
75
+ return "";
76
+ try {
77
+ return JSON.stringify(o);
78
+ } catch {
79
+ return "";
80
+ }
81
+ }
82
+ function Ur(o, c = 0) {
83
+ let l;
84
+ return function(...b) {
85
+ const e = () => {
86
+ l = void 0, o.apply(this, b);
87
+ };
88
+ l !== void 0 && clearTimeout(l), l = setTimeout(e, c);
89
+ };
90
+ }
91
+ var we = (o, c) => {
92
+ const l = Object.assign({}, o);
93
+ return c.forEach((b) => {
94
+ delete l[b];
95
+ }), l;
96
+ }, xe = (o) => o.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), ke = (o, c) => Object.fromEntries(
97
+ Object.entries(o).map(([l, b]) => [c(b, l), b])
98
+ );
99
+ function Ir(o, c) {
100
+ const l = c - o + 1;
101
+ return Array.from({ length: l }, (b, e) => e + o);
102
+ }
103
+ function Nr(o, c, l) {
104
+ return Math.min(Math.max(o, c), l);
105
+ }
106
+ function Rr(o, c = 100) {
107
+ return Math.min(Math.max(o, 0), c);
108
+ }
109
+ var H = {};
110
+ function Pr(o, c, ...l) {
111
+ const e = `[Hero UI]${c ? ` [${c}]` : " "}: ${o}`;
112
+ if (!(typeof console > "u") && !H[e] && (H[e] = !0, process.env.NODE_ENV !== "production"))
113
+ return console.warn(e, l);
114
+ }
115
+ function Vr(o) {
116
+ switch (o) {
117
+ case "buddhist":
118
+ return 543;
119
+ case "ethiopic":
120
+ case "ethioaa":
121
+ return -8;
122
+ case "coptic":
123
+ return -284;
124
+ case "hebrew":
125
+ return 3760;
126
+ case "indian":
127
+ return -78;
128
+ case "islamic-civil":
129
+ case "islamic-tbla":
130
+ case "islamic-umalqura":
131
+ return -579;
132
+ case "persian":
133
+ return -600;
134
+ case "roc":
135
+ case "japanese":
136
+ case "gregory":
137
+ default:
138
+ return 0;
139
+ }
140
+ }
141
+ var Kr = (o) => /(^|\W)[0-9](\W|$)/.test(o) && !/[^\d\^$\[\]\(\)\*\+\-\.\|]/.test(o);
142
+ function _e(...o) {
143
+ return (...c) => {
144
+ for (let l of o)
145
+ typeof l == "function" && l(...c);
146
+ };
147
+ }
148
+ var W = /* @__PURE__ */ new Map();
149
+ function ze(o, c) {
150
+ if (o === c)
151
+ return o;
152
+ let l = W.get(o);
153
+ if (l)
154
+ return l.forEach((e) => e.current = c), c;
155
+ let b = W.get(c);
156
+ return b ? (b.forEach((e) => e.current = o), o) : c;
157
+ }
158
+ function Br(...o) {
159
+ let c = { ...o[0] };
160
+ for (let l = 1; l < o.length; l++) {
161
+ let b = o[l];
162
+ for (let e in b) {
163
+ let t = c[e], n = b[e];
164
+ typeof t == "function" && typeof n == "function" && // This is a lot faster than a regex.
165
+ e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= /* 'A' */
166
+ 65 && e.charCodeAt(2) <= /* 'Z' */
167
+ 90 ? c[e] = _e(t, n) : (e === "className" || e === "UNSAFE_className") && typeof t == "string" && typeof n == "string" ? c[e] = ye(t, n) : e === "id" && t && n ? c.id = ze(t, n) : c[e] = n !== void 0 ? n : t;
168
+ }
169
+ }
170
+ return c;
171
+ }
172
+ function Hr(...o) {
173
+ return o.length === 1 && o[0] ? o[0] : (c) => {
174
+ let l = !1;
175
+ const b = o.map((e) => {
176
+ const t = X(e, c);
177
+ return l || (l = typeof t == "function"), t;
178
+ });
179
+ if (l)
180
+ return () => {
181
+ b.forEach((e, t) => {
182
+ typeof e == "function" ? e?.() : X(o[t], null);
183
+ });
184
+ };
185
+ };
186
+ }
187
+ function X(o, c) {
188
+ if (typeof o == "function")
189
+ return () => o(c);
190
+ o != null && "current" in o && (o.current = c);
191
+ }
192
+ var Fe = {
193
+ /** Animation Utilities */
194
+ ".spinner-bar-animation": {
195
+ animation: "fade-out 1.2s linear infinite",
196
+ "animation-delay": "calc(-1.2s + (0.1s * var(--bar-index)))",
197
+ transform: "rotate(calc(30deg * var(--bar-index))) translate(140%)"
198
+ },
199
+ ".spinner-dot-animation": {
200
+ "animation-delay": "calc(250ms * var(--dot-index))"
201
+ },
202
+ ".spinner-dot-blink-animation": {
203
+ "animation-delay": "calc(200ms * var(--dot-index))"
204
+ }
205
+ }, Ae = {
206
+ /**
207
+ * Custom utilities
208
+ */
209
+ ".leading-inherit": {
210
+ "line-height": "inherit"
211
+ },
212
+ ".bg-img-inherit": {
213
+ "background-image": "inherit"
214
+ },
215
+ ".bg-clip-inherit": {
216
+ "background-clip": "inherit"
217
+ },
218
+ ".text-fill-inherit": {
219
+ "-webkit-text-fill-color": "inherit"
220
+ },
221
+ ".tap-highlight-transparent": {
222
+ "-webkit-tap-highlight-color": "transparent"
223
+ },
224
+ ".input-search-cancel-button-none": {
225
+ "&::-webkit-search-cancel-button": {
226
+ "-webkit-appearance": "none"
227
+ }
228
+ }
229
+ }, Ee = {
230
+ /**
231
+ * Scroll Hide
232
+ */
233
+ ".scrollbar-hide": {
234
+ /* IE and Edge */
235
+ "-ms-overflow-style": "none",
236
+ /* Firefox */
237
+ "scrollbar-width": "none",
238
+ /* Safari and Chrome */
239
+ "&::-webkit-scrollbar": {
240
+ display: "none"
241
+ }
242
+ },
243
+ ".scrollbar-default": {
244
+ /* IE and Edge */
245
+ "-ms-overflow-style": "auto",
246
+ /* Firefox */
247
+ "scrollbar-width": "auto",
248
+ /* Safari and Chrome */
249
+ "&::-webkit-scrollbar": {
250
+ display: "block"
251
+ }
252
+ }
253
+ }, je = {
254
+ /**
255
+ * Text utilities
256
+ */
257
+ ".text-tiny": {
258
+ "font-size": "var(--heroui-font-size-tiny)",
259
+ "line-height": "var(--heroui-line-height-tiny)"
260
+ },
261
+ ".text-small": {
262
+ "font-size": "var(--heroui-font-size-small)",
263
+ "line-height": "var(--heroui-line-height-small)"
264
+ },
265
+ ".text-medium": {
266
+ "font-size": "var(--heroui-font-size-medium)",
267
+ "line-height": "var(--heroui-line-height-medium)"
268
+ },
269
+ ".text-large": {
270
+ "font-size": "var(--heroui-font-size-large)",
271
+ "line-height": "var(--heroui-line-height-large)"
272
+ }
273
+ }, _ = "250ms", Me = {
274
+ /**
275
+ * Transition utilities
276
+ */
277
+ ".transition-background": {
278
+ "transition-property": "background",
279
+ "transition-timing-function": "ease",
280
+ "transition-duration": _
281
+ },
282
+ ".transition-colors-opacity": {
283
+ "transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity",
284
+ "transition-timing-function": "ease",
285
+ "transition-duration": _
286
+ },
287
+ ".transition-width": {
288
+ "transition-property": "width",
289
+ "transition-timing-function": "ease",
290
+ "transition-duration": _
291
+ },
292
+ ".transition-height": {
293
+ "transition-property": "height",
294
+ "transition-timing-function": "ease",
295
+ "transition-duration": _
296
+ },
297
+ ".transition-size": {
298
+ "transition-property": "width, height",
299
+ "transition-timing-function": "ease",
300
+ "transition-duration": _
301
+ },
302
+ ".transition-left": {
303
+ "transition-property": "left",
304
+ "transition-timing-function": "ease",
305
+ "transition-duration": _
306
+ },
307
+ ".transition-transform-opacity": {
308
+ "transition-property": "transform, scale, opacity rotate",
309
+ "transition-timing-function": "ease",
310
+ "transition-duration": _
311
+ },
312
+ ".transition-transform-background": {
313
+ "transition-property": "transform, scale, background",
314
+ "transition-timing-function": "ease",
315
+ "transition-duration": _
316
+ },
317
+ ".transition-transform-colors": {
318
+ "transition-property": "transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke",
319
+ "transition-timing-function": "ease",
320
+ "transition-duration": _
321
+ },
322
+ ".transition-transform-colors-opacity": {
323
+ "transition-property": "transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity",
324
+ "transition-timing-function": "ease",
325
+ "transition-duration": _
326
+ }
327
+ }, Oe = {
328
+ ...Ae,
329
+ ...Me,
330
+ ...Ee,
331
+ ...je,
332
+ ...Fe
333
+ }, $e = (o) => ({
334
+ color: `hsl(var(--${o}-foreground))`,
335
+ backgroundColor: `hsl(var(--${o}-background))`
336
+ }), Wr = [
337
+ "focus-visible:z-10",
338
+ "focus-visible:outline-2",
339
+ "focus-visible:outline-focus",
340
+ "focus-visible:outline-offset-2"
341
+ ], Xr = [
342
+ "outline-solid outline-transparent",
343
+ "data-[focus-visible=true]:z-10",
344
+ "data-[focus-visible=true]:outline-2",
345
+ "data-[focus-visible=true]:outline-focus",
346
+ "data-[focus-visible=true]:outline-offset-2"
347
+ ], Gr = [
348
+ "outline-solid outline-transparent",
349
+ "group-data-[focus-visible=true]:z-10",
350
+ "group-data-[focus-visible=true]:ring-2",
351
+ "group-data-[focus-visible=true]:ring-focus",
352
+ "group-data-[focus-visible=true]:ring-offset-2",
353
+ "group-data-[focus-visible=true]:ring-offset-background"
354
+ ], Jr = [
355
+ "outline-solid outline-transparent",
356
+ "ring-2",
357
+ "ring-focus",
358
+ "ring-offset-2",
359
+ "ring-offset-background"
360
+ ], Zr = [
361
+ "absolute",
362
+ "top-1/2",
363
+ "left-1/2",
364
+ "-translate-x-1/2",
365
+ "-translate-y-1/2"
366
+ ], Yr = ["absolute", "inset-0"], Qr = {
367
+ default: ["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],
368
+ primary: ["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],
369
+ secondary: [
370
+ "[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"
371
+ ],
372
+ success: ["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],
373
+ warning: ["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],
374
+ danger: ["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]
375
+ }, et = [
376
+ // Font styles
377
+ "font-inherit",
378
+ "text-[100%]",
379
+ "leading-[1.15]",
380
+ // Reset margins and padding
381
+ "m-0",
382
+ "p-0",
383
+ // Overflow and box-sizing
384
+ "overflow-visible",
385
+ "box-border",
386
+ // Positioning & Hit area
387
+ "absolute",
388
+ "top-0",
389
+ "w-full",
390
+ "h-full",
391
+ // Opacity and z-index
392
+ "opacity-[0.0001]",
393
+ "z-[1]",
394
+ // Cursor
395
+ "cursor-pointer",
396
+ // Disabled state
397
+ "disabled:cursor-default"
398
+ ], Ce = (o) => o === "light" || o === "dark";
399
+ function V(o) {
400
+ return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
401
+ }
402
+ var O, G;
403
+ function De() {
404
+ if (G) return O;
405
+ G = 1, O = l, l.flatten = l, l.unflatten = b;
406
+ function o(e) {
407
+ return e && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
408
+ }
409
+ function c(e) {
410
+ return e;
411
+ }
412
+ function l(e, t) {
413
+ t = t || {};
414
+ const n = t.delimiter || ".", a = t.maxDepth, r = t.transformKey || c, i = {};
415
+ function u(p, s, f) {
416
+ f = f || 1, Object.keys(p).forEach(function(h) {
417
+ const d = p[h], g = t.safe && Array.isArray(d), m = Object.prototype.toString.call(d), y = o(d), w = m === "[object Object]" || m === "[object Array]", x = s ? s + n + r(h) : r(h);
418
+ if (!g && !y && w && Object.keys(d).length && (!t.maxDepth || f < a))
419
+ return u(d, x, f + 1);
420
+ i[x] = d;
421
+ });
422
+ }
423
+ return u(e), i;
424
+ }
425
+ function b(e, t) {
426
+ t = t || {};
427
+ const n = t.delimiter || ".", a = t.overwrite || !1, r = t.transformKey || c, i = {};
428
+ if (o(e) || Object.prototype.toString.call(e) !== "[object Object]")
429
+ return e;
430
+ function p(h) {
431
+ const d = Number(h);
432
+ return isNaN(d) || h.indexOf(".") !== -1 || t.object ? h : d;
433
+ }
434
+ function s(h, d, g) {
435
+ return Object.keys(g).reduce(function(m, y) {
436
+ return m[h + n + y] = g[y], m;
437
+ }, d);
438
+ }
439
+ function f(h) {
440
+ const d = Object.prototype.toString.call(h), g = d === "[object Array]", m = d === "[object Object]";
441
+ if (h) {
442
+ if (g)
443
+ return !h.length;
444
+ if (m)
445
+ return !Object.keys(h).length;
446
+ } else return !0;
447
+ }
448
+ return e = Object.keys(e).reduce(function(h, d) {
449
+ const g = Object.prototype.toString.call(e[d]);
450
+ return !(g === "[object Object]" || g === "[object Array]") || f(e[d]) ? (h[d] = e[d], h) : s(
451
+ d,
452
+ h,
453
+ l(e[d], t)
454
+ );
455
+ }, {}), Object.keys(e).forEach(function(h) {
456
+ const d = h.split(n).map(r);
457
+ let g = p(d.shift()), m = p(d[0]), y = i;
458
+ for (; m !== void 0; ) {
459
+ if (g === "__proto__")
460
+ return;
461
+ const w = Object.prototype.toString.call(y[g]), x = w === "[object Object]" || w === "[object Array]";
462
+ if (!a && !x && typeof y[g] < "u")
463
+ return;
464
+ (a && !x || !a && y[g] == null) && (y[g] = typeof m == "number" && !t.object ? [] : {}), y = y[g], d.length > 0 && (g = p(d.shift()), m = p(d[0]));
465
+ }
466
+ y[g] = b(e[h], t);
467
+ }), i;
468
+ }
469
+ return O;
470
+ }
471
+ var Te = De();
472
+ const Se = /* @__PURE__ */ V(Te);
473
+ function A(o) {
474
+ const c = {}, l = Object.keys(o), b = l.length;
475
+ for (let e = 0; e < b / 2; e++) {
476
+ const t = l[e], n = l[b - 1 - e];
477
+ c[t] = o[n], c[n] = o[t];
478
+ }
479
+ if (b % 2 !== 0) {
480
+ const e = l[Math.floor(b / 2)];
481
+ c[e] = o[e];
482
+ }
483
+ return c;
484
+ }
485
+ function qe(o) {
486
+ const c = {};
487
+ for (const l in o) {
488
+ if (l.endsWith("-DEFAULT")) {
489
+ c[l.replace("-DEFAULT", "")] = o[l];
490
+ continue;
491
+ }
492
+ c[l] = o[l];
493
+ }
494
+ return c;
495
+ }
496
+ var Le = (o) => qe(
497
+ Se(o, {
498
+ safe: !0,
499
+ delimiter: "-"
500
+ })
501
+ ), Ue = {
502
+ 50: "#fefce8",
503
+ 100: "#fdedd3",
504
+ 200: "#fbdba7",
505
+ 300: "#f9c97c",
506
+ 400: "#f7b750",
507
+ 500: "#f5a524",
508
+ 600: "#c4841d",
509
+ 700: "#936316",
510
+ 800: "#62420e",
511
+ 900: "#312107"
512
+ }, Ie = {
513
+ 50: "#fafafa",
514
+ 100: "#f4f4f5",
515
+ 200: "#e4e4e7",
516
+ 300: "#d4d4d8",
517
+ 400: "#a1a1aa",
518
+ 500: "#71717a",
519
+ 600: "#52525b",
520
+ 700: "#3f3f46",
521
+ 800: "#27272a",
522
+ 900: "#18181b"
523
+ }, Ne = {
524
+ 50: "#F0FCFF",
525
+ 100: "#E6FAFE",
526
+ 200: "#D7F8FE",
527
+ 300: "#C3F4FD",
528
+ 400: "#A5EEFD",
529
+ 500: "#7EE7FC",
530
+ 600: "#06B7DB",
531
+ 700: "#09AACD",
532
+ 800: "#0E8AAA",
533
+ 900: "#053B48"
534
+ }, Re = {
535
+ 50: "#e8faf0",
536
+ 100: "#d1f4e0",
537
+ 200: "#a2e9c1",
538
+ 300: "#74dfa2",
539
+ 400: "#45d483",
540
+ 500: "#17c964",
541
+ 600: "#12a150",
542
+ 700: "#0e793c",
543
+ 800: "#095028",
544
+ 900: "#052814"
545
+ }, Pe = {
546
+ 50: "#ffedfa",
547
+ 100: "#ffdcf5",
548
+ 200: "#ffb8eb",
549
+ 300: "#ff95e1",
550
+ 400: "#ff71d7",
551
+ 500: "#ff4ecd",
552
+ 600: "#cc3ea4",
553
+ 700: "#992f7b",
554
+ 800: "#661f52",
555
+ 900: "#331029"
556
+ }, Ve = {
557
+ 50: "#f2eafa",
558
+ 100: "#e4d4f4",
559
+ 200: "#c9a9e9",
560
+ 300: "#ae7ede",
561
+ 400: "#9353d3",
562
+ 500: "#7828c8",
563
+ 600: "#6020a0",
564
+ 700: "#481878",
565
+ 800: "#301050",
566
+ 900: "#180828"
567
+ }, Ke = {
568
+ 50: "#fee7ef",
569
+ 100: "#fdd0df",
570
+ 200: "#faa0bf",
571
+ 300: "#f871a0",
572
+ 400: "#f54180",
573
+ 500: "#f31260",
574
+ 600: "#c20e4d",
575
+ 700: "#920b3a",
576
+ 800: "#610726",
577
+ 900: "#310413"
578
+ }, Be = {
579
+ 50: "#e6f1fe",
580
+ 100: "#cce3fd",
581
+ 200: "#99c7fb",
582
+ 300: "#66aaf9",
583
+ 400: "#338ef7",
584
+ 500: "#006FEE",
585
+ 600: "#005bc4",
586
+ 700: "#004493",
587
+ 800: "#002e62",
588
+ 900: "#001731"
589
+ }, v = {
590
+ white: "#ffffff",
591
+ black: "#000000",
592
+ blue: Be,
593
+ green: Re,
594
+ pink: Pe,
595
+ purple: Ve,
596
+ red: Ke,
597
+ yellow: Ue,
598
+ cyan: Ne,
599
+ zinc: Ie
600
+ };
601
+ function J(o, c, l) {
602
+ return Math.min(Math.max(o, l), c);
603
+ }
604
+ class He extends Error {
605
+ constructor(c) {
606
+ super(`Failed to parse color: "${c}"`);
607
+ }
608
+ }
609
+ var j = He;
610
+ function We(o) {
611
+ if (typeof o != "string") throw new j(o);
612
+ if (o.trim().toLowerCase() === "transparent") return [0, 0, 0, 0];
613
+ let c = o.trim();
614
+ c = rr.test(o) ? Je(o) : o;
615
+ const l = Ze.exec(c);
616
+ if (l) {
617
+ const n = Array.from(l).slice(1);
618
+ return [...n.slice(0, 3).map((a) => parseInt(M(a, 2), 16)), parseInt(M(n[3] || "f", 2), 16) / 255];
619
+ }
620
+ const b = Ye.exec(c);
621
+ if (b) {
622
+ const n = Array.from(b).slice(1);
623
+ return [...n.slice(0, 3).map((a) => parseInt(a, 16)), parseInt(n[3] || "ff", 16) / 255];
624
+ }
625
+ const e = Qe.exec(c);
626
+ if (e) {
627
+ const n = Array.from(e).slice(1);
628
+ return [...n.slice(0, 3).map((a) => parseInt(a, 10)), parseFloat(n[3] || "1")];
629
+ }
630
+ const t = er.exec(c);
631
+ if (t) {
632
+ const [n, a, r, i] = Array.from(t).slice(1).map(parseFloat);
633
+ if (J(0, 100, a) !== a) throw new j(o);
634
+ if (J(0, 100, r) !== r) throw new j(o);
635
+ return [...tr(n, a, r), Number.isNaN(i) ? 1 : i];
636
+ }
637
+ throw new j(o);
638
+ }
639
+ function Xe(o) {
640
+ let c = 5381, l = o.length;
641
+ for (; l; )
642
+ c = c * 33 ^ o.charCodeAt(--l);
643
+ return (c >>> 0) % 2341;
644
+ }
645
+ const Z = (o) => parseInt(o.replace(/_/g, ""), 36), Ge = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((o, c) => {
646
+ const l = Z(c.substring(0, 3)), b = Z(c.substring(3)).toString(16);
647
+ let e = "";
648
+ for (let t = 0; t < 6 - b.length; t++)
649
+ e += "0";
650
+ return o[l] = `${e}${b}`, o;
651
+ }, {});
652
+ function Je(o) {
653
+ const c = o.toLowerCase().trim(), l = Ge[Xe(c)];
654
+ if (!l) throw new j(o);
655
+ return `#${l}`;
656
+ }
657
+ const M = (o, c) => Array.from(Array(c)).map(() => o).join(""), Ze = new RegExp(`^#${M("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), Ye = new RegExp(`^#${M("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), Qe = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${M(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), er = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, rr = /^[a-z]+$/i, Y = (o) => Math.round(o * 255), tr = (o, c, l) => {
658
+ let b = l / 100;
659
+ if (c === 0)
660
+ return [b, b, b].map(Y);
661
+ const e = (o % 360 + 360) % 360 / 60, t = (1 - Math.abs(2 * b - 1)) * (c / 100), n = t * (1 - Math.abs(e % 2 - 1));
662
+ let a = 0, r = 0, i = 0;
663
+ e >= 0 && e < 1 ? (a = t, r = n) : e >= 1 && e < 2 ? (a = n, r = t) : e >= 2 && e < 3 ? (r = t, i = n) : e >= 3 && e < 4 ? (r = n, i = t) : e >= 4 && e < 5 ? (a = n, i = t) : e >= 5 && e < 6 && (a = t, i = n);
664
+ const u = b - t / 2, p = a + u, s = r + u, f = i + u;
665
+ return [p, s, f].map(Y);
666
+ };
667
+ function nr(o) {
668
+ if (o === "transparent") return 0;
669
+ function c(t) {
670
+ const n = t / 255;
671
+ return n <= 0.04045 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
672
+ }
673
+ const [l, b, e] = We(o);
674
+ return 0.2126 * c(l) + 0.7152 * c(b) + 0.0722 * c(e);
675
+ }
676
+ function or(o) {
677
+ return nr(o) > 0.179;
678
+ }
679
+ function z(o) {
680
+ return or(o) ? "#000" : "#fff";
681
+ }
682
+ var fe = {
683
+ light: {
684
+ background: {
685
+ DEFAULT: "#FFFFFF"
686
+ },
687
+ foreground: {
688
+ ...v.zinc,
689
+ DEFAULT: "#11181C"
690
+ },
691
+ divider: {
692
+ DEFAULT: "rgba(17, 17, 17, 0.15)"
693
+ },
694
+ focus: {
695
+ DEFAULT: v.blue[500]
696
+ },
697
+ overlay: {
698
+ DEFAULT: "#000000"
699
+ },
700
+ content1: {
701
+ DEFAULT: "#FFFFFF",
702
+ foreground: "#11181C"
703
+ },
704
+ content2: {
705
+ DEFAULT: v.zinc[100],
706
+ foreground: v.zinc[800]
707
+ },
708
+ content3: {
709
+ DEFAULT: v.zinc[200],
710
+ foreground: v.zinc[700]
711
+ },
712
+ content4: {
713
+ DEFAULT: v.zinc[300],
714
+ foreground: v.zinc[600]
715
+ }
716
+ },
717
+ dark: {
718
+ background: {
719
+ DEFAULT: "#000000"
720
+ },
721
+ foreground: {
722
+ ...A(v.zinc),
723
+ DEFAULT: "#ECEDEE"
724
+ },
725
+ focus: {
726
+ DEFAULT: v.blue[500]
727
+ },
728
+ overlay: {
729
+ DEFAULT: "#000000"
730
+ },
731
+ divider: {
732
+ DEFAULT: "rgba(255, 255, 255, 0.15)"
733
+ },
734
+ content1: {
735
+ DEFAULT: v.zinc[900],
736
+ foreground: v.zinc[50]
737
+ },
738
+ content2: {
739
+ DEFAULT: v.zinc[800],
740
+ foreground: v.zinc[100]
741
+ },
742
+ content3: {
743
+ DEFAULT: v.zinc[700],
744
+ foreground: v.zinc[200]
745
+ },
746
+ content4: {
747
+ DEFAULT: v.zinc[600],
748
+ foreground: v.zinc[300]
749
+ }
750
+ }
751
+ }, ar = {
752
+ ...fe.light,
753
+ default: {
754
+ ...v.zinc,
755
+ foreground: z(v.zinc[300]),
756
+ DEFAULT: v.zinc[300]
757
+ },
758
+ primary: {
759
+ ...v.blue,
760
+ foreground: z(v.blue[500]),
761
+ DEFAULT: v.blue[500]
762
+ },
763
+ secondary: {
764
+ ...v.purple,
765
+ foreground: z(v.purple[500]),
766
+ DEFAULT: v.purple[500]
767
+ },
768
+ success: {
769
+ ...v.green,
770
+ foreground: z(v.green[500]),
771
+ DEFAULT: v.green[500]
772
+ },
773
+ warning: {
774
+ ...v.yellow,
775
+ foreground: z(v.yellow[500]),
776
+ DEFAULT: v.yellow[500]
777
+ },
778
+ danger: {
779
+ ...v.red,
780
+ foreground: v.white,
781
+ DEFAULT: v.red[500]
782
+ }
783
+ }, sr = {
784
+ ...fe.dark,
785
+ default: {
786
+ ...A(v.zinc),
787
+ foreground: z(v.zinc[700]),
788
+ DEFAULT: v.zinc[700]
789
+ },
790
+ primary: {
791
+ ...A(v.blue),
792
+ foreground: z(v.blue[500]),
793
+ DEFAULT: v.blue[500]
794
+ },
795
+ secondary: {
796
+ ...A(v.purple),
797
+ foreground: z(v.purple[400]),
798
+ DEFAULT: v.purple[400]
799
+ },
800
+ success: {
801
+ ...A(v.green),
802
+ foreground: z(v.green[500]),
803
+ DEFAULT: v.green[500]
804
+ },
805
+ warning: {
806
+ ...A(v.yellow),
807
+ foreground: z(v.yellow[500]),
808
+ DEFAULT: v.yellow[500]
809
+ },
810
+ danger: {
811
+ ...A(v.red),
812
+ foreground: v.white,
813
+ DEFAULT: v.red[500]
814
+ }
815
+ }, $ = {
816
+ light: ar,
817
+ dark: sr
818
+ }, Q = {
819
+ dividerWeight: "1px",
820
+ disabledOpacity: ".5",
821
+ fontSize: {
822
+ tiny: "0.75rem",
823
+ small: "0.875rem",
824
+ medium: "1rem",
825
+ large: "1.125rem"
826
+ },
827
+ lineHeight: {
828
+ tiny: "1rem",
829
+ small: "1.25rem",
830
+ medium: "1.5rem",
831
+ large: "1.75rem"
832
+ },
833
+ radius: {
834
+ small: "8px",
835
+ medium: "12px",
836
+ large: "14px"
837
+ },
838
+ borderWidth: {
839
+ small: "1px",
840
+ medium: "2px",
841
+ large: "3px"
842
+ },
843
+ boxShadow: {
844
+ small: "0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
845
+ medium: "0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",
846
+ large: "0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"
847
+ }
848
+ }, ir = {
849
+ hoverOpacity: ".8"
850
+ }, lr = {
851
+ hoverOpacity: ".9",
852
+ boxShadow: {
853
+ small: "0px 0px 5px 0px rgb(0 0 0 / 0.05), 0px 2px 10px 0px rgb(0 0 0 / 0.2), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
854
+ medium: "0px 0px 15px 0px rgb(0 0 0 / 0.06), 0px 2px 30px 0px rgb(0 0 0 / 0.22), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
855
+ large: "0px 0px 30px 0px rgb(0 0 0 / 0.07), 0px 30px 60px 0px rgb(0 0 0 / 0.26), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)"
856
+ }
857
+ }, cr = {
858
+ animation: {
859
+ shimmer: "shimmer 2s infinite",
860
+ "drip-expand": "drip-expand 420ms linear",
861
+ "spinner-ease-spin": "spinner-spin 0.8s ease infinite",
862
+ "spinner-linear-spin": "spinner-spin 0.8s linear infinite",
863
+ sway: "sway 750ms ease infinite",
864
+ blink: "blink 1.4s infinite both",
865
+ "fade-out": "fade-out 1.2s linear 0s infinite normal none running",
866
+ "appearance-in": "appearance-in 250ms ease-out normal both",
867
+ "appearance-out": "appearance-out 60ms ease-in normal both",
868
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
869
+ },
870
+ keyframes: {
871
+ shimmer: {
872
+ "100%": {
873
+ transform: "translateX(200%)"
874
+ }
875
+ },
876
+ "spinner-spin": {
877
+ "0%": {
878
+ transform: "rotate(0deg)"
879
+ },
880
+ "100%": {
881
+ transform: "rotate(360deg)"
882
+ }
883
+ },
884
+ "drip-expand": {
885
+ "0%": {
886
+ opacity: "0.2",
887
+ transform: "scale(0)"
888
+ },
889
+ "100%": {
890
+ opacity: "0",
891
+ transform: "scale(2)"
892
+ }
893
+ },
894
+ "appearance-in": {
895
+ "0%": {
896
+ opacity: "0",
897
+ transform: "translateZ(0) scale(0.95)"
898
+ },
899
+ "60%": {
900
+ opacity: "0.75",
901
+ /* Avoid blurriness */
902
+ backfaceVisibility: "hidden",
903
+ webkitFontSmoothing: "antialiased",
904
+ transform: "translateZ(0) scale(1.05)"
905
+ },
906
+ "100%": {
907
+ opacity: "1",
908
+ transform: "translateZ(0) scale(1)"
909
+ }
910
+ },
911
+ "appearance-out": {
912
+ "0%": {
913
+ opacity: "1",
914
+ transform: "scale(1)"
915
+ },
916
+ "100%": {
917
+ opacity: "0",
918
+ transform: "scale(0.85)"
919
+ }
920
+ },
921
+ "indeterminate-bar": {
922
+ "0%": {
923
+ transform: "translateX(-50%) scaleX(0.2)"
924
+ },
925
+ "100%": {
926
+ transform: "translateX(100%) scaleX(1)"
927
+ }
928
+ },
929
+ sway: {
930
+ "0%": {
931
+ transform: "translate(0px, 0px)"
932
+ },
933
+ "50%": {
934
+ transform: "translate(0px, -150%)"
935
+ },
936
+ "100%": {
937
+ transform: "translate(0px, 0px)"
938
+ }
939
+ },
940
+ blink: {
941
+ "0%": {
942
+ opacity: "0.2"
943
+ },
944
+ "20%": {
945
+ opacity: "1"
946
+ },
947
+ "100%": {
948
+ opacity: "0.2"
949
+ }
950
+ },
951
+ "fade-out": {
952
+ "0%": {
953
+ opacity: "1"
954
+ },
955
+ "100%": {
956
+ opacity: "0.15"
957
+ }
958
+ }
959
+ }
960
+ }, C = { exports: {} }, D, ee;
961
+ function he() {
962
+ return ee || (ee = 1, D = {
963
+ aliceblue: [240, 248, 255],
964
+ antiquewhite: [250, 235, 215],
965
+ aqua: [0, 255, 255],
966
+ aquamarine: [127, 255, 212],
967
+ azure: [240, 255, 255],
968
+ beige: [245, 245, 220],
969
+ bisque: [255, 228, 196],
970
+ black: [0, 0, 0],
971
+ blanchedalmond: [255, 235, 205],
972
+ blue: [0, 0, 255],
973
+ blueviolet: [138, 43, 226],
974
+ brown: [165, 42, 42],
975
+ burlywood: [222, 184, 135],
976
+ cadetblue: [95, 158, 160],
977
+ chartreuse: [127, 255, 0],
978
+ chocolate: [210, 105, 30],
979
+ coral: [255, 127, 80],
980
+ cornflowerblue: [100, 149, 237],
981
+ cornsilk: [255, 248, 220],
982
+ crimson: [220, 20, 60],
983
+ cyan: [0, 255, 255],
984
+ darkblue: [0, 0, 139],
985
+ darkcyan: [0, 139, 139],
986
+ darkgoldenrod: [184, 134, 11],
987
+ darkgray: [169, 169, 169],
988
+ darkgreen: [0, 100, 0],
989
+ darkgrey: [169, 169, 169],
990
+ darkkhaki: [189, 183, 107],
991
+ darkmagenta: [139, 0, 139],
992
+ darkolivegreen: [85, 107, 47],
993
+ darkorange: [255, 140, 0],
994
+ darkorchid: [153, 50, 204],
995
+ darkred: [139, 0, 0],
996
+ darksalmon: [233, 150, 122],
997
+ darkseagreen: [143, 188, 143],
998
+ darkslateblue: [72, 61, 139],
999
+ darkslategray: [47, 79, 79],
1000
+ darkslategrey: [47, 79, 79],
1001
+ darkturquoise: [0, 206, 209],
1002
+ darkviolet: [148, 0, 211],
1003
+ deeppink: [255, 20, 147],
1004
+ deepskyblue: [0, 191, 255],
1005
+ dimgray: [105, 105, 105],
1006
+ dimgrey: [105, 105, 105],
1007
+ dodgerblue: [30, 144, 255],
1008
+ firebrick: [178, 34, 34],
1009
+ floralwhite: [255, 250, 240],
1010
+ forestgreen: [34, 139, 34],
1011
+ fuchsia: [255, 0, 255],
1012
+ gainsboro: [220, 220, 220],
1013
+ ghostwhite: [248, 248, 255],
1014
+ gold: [255, 215, 0],
1015
+ goldenrod: [218, 165, 32],
1016
+ gray: [128, 128, 128],
1017
+ green: [0, 128, 0],
1018
+ greenyellow: [173, 255, 47],
1019
+ grey: [128, 128, 128],
1020
+ honeydew: [240, 255, 240],
1021
+ hotpink: [255, 105, 180],
1022
+ indianred: [205, 92, 92],
1023
+ indigo: [75, 0, 130],
1024
+ ivory: [255, 255, 240],
1025
+ khaki: [240, 230, 140],
1026
+ lavender: [230, 230, 250],
1027
+ lavenderblush: [255, 240, 245],
1028
+ lawngreen: [124, 252, 0],
1029
+ lemonchiffon: [255, 250, 205],
1030
+ lightblue: [173, 216, 230],
1031
+ lightcoral: [240, 128, 128],
1032
+ lightcyan: [224, 255, 255],
1033
+ lightgoldenrodyellow: [250, 250, 210],
1034
+ lightgray: [211, 211, 211],
1035
+ lightgreen: [144, 238, 144],
1036
+ lightgrey: [211, 211, 211],
1037
+ lightpink: [255, 182, 193],
1038
+ lightsalmon: [255, 160, 122],
1039
+ lightseagreen: [32, 178, 170],
1040
+ lightskyblue: [135, 206, 250],
1041
+ lightslategray: [119, 136, 153],
1042
+ lightslategrey: [119, 136, 153],
1043
+ lightsteelblue: [176, 196, 222],
1044
+ lightyellow: [255, 255, 224],
1045
+ lime: [0, 255, 0],
1046
+ limegreen: [50, 205, 50],
1047
+ linen: [250, 240, 230],
1048
+ magenta: [255, 0, 255],
1049
+ maroon: [128, 0, 0],
1050
+ mediumaquamarine: [102, 205, 170],
1051
+ mediumblue: [0, 0, 205],
1052
+ mediumorchid: [186, 85, 211],
1053
+ mediumpurple: [147, 112, 219],
1054
+ mediumseagreen: [60, 179, 113],
1055
+ mediumslateblue: [123, 104, 238],
1056
+ mediumspringgreen: [0, 250, 154],
1057
+ mediumturquoise: [72, 209, 204],
1058
+ mediumvioletred: [199, 21, 133],
1059
+ midnightblue: [25, 25, 112],
1060
+ mintcream: [245, 255, 250],
1061
+ mistyrose: [255, 228, 225],
1062
+ moccasin: [255, 228, 181],
1063
+ navajowhite: [255, 222, 173],
1064
+ navy: [0, 0, 128],
1065
+ oldlace: [253, 245, 230],
1066
+ olive: [128, 128, 0],
1067
+ olivedrab: [107, 142, 35],
1068
+ orange: [255, 165, 0],
1069
+ orangered: [255, 69, 0],
1070
+ orchid: [218, 112, 214],
1071
+ palegoldenrod: [238, 232, 170],
1072
+ palegreen: [152, 251, 152],
1073
+ paleturquoise: [175, 238, 238],
1074
+ palevioletred: [219, 112, 147],
1075
+ papayawhip: [255, 239, 213],
1076
+ peachpuff: [255, 218, 185],
1077
+ peru: [205, 133, 63],
1078
+ pink: [255, 192, 203],
1079
+ plum: [221, 160, 221],
1080
+ powderblue: [176, 224, 230],
1081
+ purple: [128, 0, 128],
1082
+ rebeccapurple: [102, 51, 153],
1083
+ red: [255, 0, 0],
1084
+ rosybrown: [188, 143, 143],
1085
+ royalblue: [65, 105, 225],
1086
+ saddlebrown: [139, 69, 19],
1087
+ salmon: [250, 128, 114],
1088
+ sandybrown: [244, 164, 96],
1089
+ seagreen: [46, 139, 87],
1090
+ seashell: [255, 245, 238],
1091
+ sienna: [160, 82, 45],
1092
+ silver: [192, 192, 192],
1093
+ skyblue: [135, 206, 235],
1094
+ slateblue: [106, 90, 205],
1095
+ slategray: [112, 128, 144],
1096
+ slategrey: [112, 128, 144],
1097
+ snow: [255, 250, 250],
1098
+ springgreen: [0, 255, 127],
1099
+ steelblue: [70, 130, 180],
1100
+ tan: [210, 180, 140],
1101
+ teal: [0, 128, 128],
1102
+ thistle: [216, 191, 216],
1103
+ tomato: [255, 99, 71],
1104
+ turquoise: [64, 224, 208],
1105
+ violet: [238, 130, 238],
1106
+ wheat: [245, 222, 179],
1107
+ white: [255, 255, 255],
1108
+ whitesmoke: [245, 245, 245],
1109
+ yellow: [255, 255, 0],
1110
+ yellowgreen: [154, 205, 50]
1111
+ }), D;
1112
+ }
1113
+ var T = { exports: {} }, S, re;
1114
+ function ur() {
1115
+ return re || (re = 1, S = function(c) {
1116
+ return !c || typeof c == "string" ? !1 : c instanceof Array || Array.isArray(c) || c.length >= 0 && (c.splice instanceof Function || Object.getOwnPropertyDescriptor(c, c.length - 1) && c.constructor.name !== "String");
1117
+ }), S;
1118
+ }
1119
+ var te;
1120
+ function fr() {
1121
+ if (te) return T.exports;
1122
+ te = 1;
1123
+ var o = ur(), c = Array.prototype.concat, l = Array.prototype.slice, b = T.exports = function(t) {
1124
+ for (var n = [], a = 0, r = t.length; a < r; a++) {
1125
+ var i = t[a];
1126
+ o(i) ? n = c.call(n, l.call(i)) : n.push(i);
1127
+ }
1128
+ return n;
1129
+ };
1130
+ return b.wrap = function(e) {
1131
+ return function() {
1132
+ return e(b(arguments));
1133
+ };
1134
+ }, T.exports;
1135
+ }
1136
+ var ne;
1137
+ function hr() {
1138
+ if (ne) return C.exports;
1139
+ ne = 1;
1140
+ var o = he(), c = fr(), l = Object.hasOwnProperty, b = /* @__PURE__ */ Object.create(null);
1141
+ for (var e in o)
1142
+ l.call(o, e) && (b[o[e]] = e);
1143
+ var t = C.exports = {
1144
+ to: {},
1145
+ get: {}
1146
+ };
1147
+ t.get = function(r) {
1148
+ var i = r.substring(0, 3).toLowerCase(), u, p;
1149
+ switch (i) {
1150
+ case "hsl":
1151
+ u = t.get.hsl(r), p = "hsl";
1152
+ break;
1153
+ case "hwb":
1154
+ u = t.get.hwb(r), p = "hwb";
1155
+ break;
1156
+ default:
1157
+ u = t.get.rgb(r), p = "rgb";
1158
+ break;
1159
+ }
1160
+ return u ? { model: p, value: u } : null;
1161
+ }, t.get.rgb = function(r) {
1162
+ if (!r)
1163
+ return null;
1164
+ var i = /^#([a-f0-9]{3,4})$/i, u = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, p = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, s = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, f = /^(\w+)$/, h = [0, 0, 0, 1], d, g, m;
1165
+ if (d = r.match(u)) {
1166
+ for (m = d[2], d = d[1], g = 0; g < 3; g++) {
1167
+ var y = g * 2;
1168
+ h[g] = parseInt(d.slice(y, y + 2), 16);
1169
+ }
1170
+ m && (h[3] = parseInt(m, 16) / 255);
1171
+ } else if (d = r.match(i)) {
1172
+ for (d = d[1], m = d[3], g = 0; g < 3; g++)
1173
+ h[g] = parseInt(d[g] + d[g], 16);
1174
+ m && (h[3] = parseInt(m + m, 16) / 255);
1175
+ } else if (d = r.match(p)) {
1176
+ for (g = 0; g < 3; g++)
1177
+ h[g] = parseInt(d[g + 1], 0);
1178
+ d[4] && (d[5] ? h[3] = parseFloat(d[4]) * 0.01 : h[3] = parseFloat(d[4]));
1179
+ } else if (d = r.match(s)) {
1180
+ for (g = 0; g < 3; g++)
1181
+ h[g] = Math.round(parseFloat(d[g + 1]) * 2.55);
1182
+ d[4] && (d[5] ? h[3] = parseFloat(d[4]) * 0.01 : h[3] = parseFloat(d[4]));
1183
+ } else return (d = r.match(f)) ? d[1] === "transparent" ? [0, 0, 0, 0] : l.call(o, d[1]) ? (h = o[d[1]], h[3] = 1, h) : null : null;
1184
+ for (g = 0; g < 3; g++)
1185
+ h[g] = n(h[g], 0, 255);
1186
+ return h[3] = n(h[3], 0, 1), h;
1187
+ }, t.get.hsl = function(r) {
1188
+ if (!r)
1189
+ return null;
1190
+ var i = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, u = r.match(i);
1191
+ if (u) {
1192
+ var p = parseFloat(u[4]), s = (parseFloat(u[1]) % 360 + 360) % 360, f = n(parseFloat(u[2]), 0, 100), h = n(parseFloat(u[3]), 0, 100), d = n(isNaN(p) ? 1 : p, 0, 1);
1193
+ return [s, f, h, d];
1194
+ }
1195
+ return null;
1196
+ }, t.get.hwb = function(r) {
1197
+ if (!r)
1198
+ return null;
1199
+ var i = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, u = r.match(i);
1200
+ if (u) {
1201
+ var p = parseFloat(u[4]), s = (parseFloat(u[1]) % 360 + 360) % 360, f = n(parseFloat(u[2]), 0, 100), h = n(parseFloat(u[3]), 0, 100), d = n(isNaN(p) ? 1 : p, 0, 1);
1202
+ return [s, f, h, d];
1203
+ }
1204
+ return null;
1205
+ }, t.to.hex = function() {
1206
+ var r = c(arguments);
1207
+ return "#" + a(r[0]) + a(r[1]) + a(r[2]) + (r[3] < 1 ? a(Math.round(r[3] * 255)) : "");
1208
+ }, t.to.rgb = function() {
1209
+ var r = c(arguments);
1210
+ return r.length < 4 || r[3] === 1 ? "rgb(" + Math.round(r[0]) + ", " + Math.round(r[1]) + ", " + Math.round(r[2]) + ")" : "rgba(" + Math.round(r[0]) + ", " + Math.round(r[1]) + ", " + Math.round(r[2]) + ", " + r[3] + ")";
1211
+ }, t.to.rgb.percent = function() {
1212
+ var r = c(arguments), i = Math.round(r[0] / 255 * 100), u = Math.round(r[1] / 255 * 100), p = Math.round(r[2] / 255 * 100);
1213
+ return r.length < 4 || r[3] === 1 ? "rgb(" + i + "%, " + u + "%, " + p + "%)" : "rgba(" + i + "%, " + u + "%, " + p + "%, " + r[3] + ")";
1214
+ }, t.to.hsl = function() {
1215
+ var r = c(arguments);
1216
+ return r.length < 4 || r[3] === 1 ? "hsl(" + r[0] + ", " + r[1] + "%, " + r[2] + "%)" : "hsla(" + r[0] + ", " + r[1] + "%, " + r[2] + "%, " + r[3] + ")";
1217
+ }, t.to.hwb = function() {
1218
+ var r = c(arguments), i = "";
1219
+ return r.length >= 4 && r[3] !== 1 && (i = ", " + r[3]), "hwb(" + r[0] + ", " + r[1] + "%, " + r[2] + "%" + i + ")";
1220
+ }, t.to.keyword = function(r) {
1221
+ return b[r.slice(0, 3)];
1222
+ };
1223
+ function n(r, i, u) {
1224
+ return Math.min(Math.max(i, r), u);
1225
+ }
1226
+ function a(r) {
1227
+ var i = Math.round(r).toString(16).toUpperCase();
1228
+ return i.length < 2 ? "0" + i : i;
1229
+ }
1230
+ return C.exports;
1231
+ }
1232
+ var q, oe;
1233
+ function de() {
1234
+ if (oe) return q;
1235
+ oe = 1;
1236
+ const o = he(), c = {};
1237
+ for (const e of Object.keys(o))
1238
+ c[o[e]] = e;
1239
+ const l = {
1240
+ rgb: { channels: 3, labels: "rgb" },
1241
+ hsl: { channels: 3, labels: "hsl" },
1242
+ hsv: { channels: 3, labels: "hsv" },
1243
+ hwb: { channels: 3, labels: "hwb" },
1244
+ cmyk: { channels: 4, labels: "cmyk" },
1245
+ xyz: { channels: 3, labels: "xyz" },
1246
+ lab: { channels: 3, labels: "lab" },
1247
+ lch: { channels: 3, labels: "lch" },
1248
+ hex: { channels: 1, labels: ["hex"] },
1249
+ keyword: { channels: 1, labels: ["keyword"] },
1250
+ ansi16: { channels: 1, labels: ["ansi16"] },
1251
+ ansi256: { channels: 1, labels: ["ansi256"] },
1252
+ hcg: { channels: 3, labels: ["h", "c", "g"] },
1253
+ apple: { channels: 3, labels: ["r16", "g16", "b16"] },
1254
+ gray: { channels: 1, labels: ["gray"] }
1255
+ };
1256
+ q = l;
1257
+ for (const e of Object.keys(l)) {
1258
+ if (!("channels" in l[e]))
1259
+ throw new Error("missing channels property: " + e);
1260
+ if (!("labels" in l[e]))
1261
+ throw new Error("missing channel labels property: " + e);
1262
+ if (l[e].labels.length !== l[e].channels)
1263
+ throw new Error("channel and label counts mismatch: " + e);
1264
+ const { channels: t, labels: n } = l[e];
1265
+ delete l[e].channels, delete l[e].labels, Object.defineProperty(l[e], "channels", { value: t }), Object.defineProperty(l[e], "labels", { value: n });
1266
+ }
1267
+ l.rgb.hsl = function(e) {
1268
+ const t = e[0] / 255, n = e[1] / 255, a = e[2] / 255, r = Math.min(t, n, a), i = Math.max(t, n, a), u = i - r;
1269
+ let p, s;
1270
+ i === r ? p = 0 : t === i ? p = (n - a) / u : n === i ? p = 2 + (a - t) / u : a === i && (p = 4 + (t - n) / u), p = Math.min(p * 60, 360), p < 0 && (p += 360);
1271
+ const f = (r + i) / 2;
1272
+ return i === r ? s = 0 : f <= 0.5 ? s = u / (i + r) : s = u / (2 - i - r), [p, s * 100, f * 100];
1273
+ }, l.rgb.hsv = function(e) {
1274
+ let t, n, a, r, i;
1275
+ const u = e[0] / 255, p = e[1] / 255, s = e[2] / 255, f = Math.max(u, p, s), h = f - Math.min(u, p, s), d = function(g) {
1276
+ return (f - g) / 6 / h + 1 / 2;
1277
+ };
1278
+ return h === 0 ? (r = 0, i = 0) : (i = h / f, t = d(u), n = d(p), a = d(s), u === f ? r = a - n : p === f ? r = 1 / 3 + t - a : s === f && (r = 2 / 3 + n - t), r < 0 ? r += 1 : r > 1 && (r -= 1)), [
1279
+ r * 360,
1280
+ i * 100,
1281
+ f * 100
1282
+ ];
1283
+ }, l.rgb.hwb = function(e) {
1284
+ const t = e[0], n = e[1];
1285
+ let a = e[2];
1286
+ const r = l.rgb.hsl(e)[0], i = 1 / 255 * Math.min(t, Math.min(n, a));
1287
+ return a = 1 - 1 / 255 * Math.max(t, Math.max(n, a)), [r, i * 100, a * 100];
1288
+ }, l.rgb.cmyk = function(e) {
1289
+ const t = e[0] / 255, n = e[1] / 255, a = e[2] / 255, r = Math.min(1 - t, 1 - n, 1 - a), i = (1 - t - r) / (1 - r) || 0, u = (1 - n - r) / (1 - r) || 0, p = (1 - a - r) / (1 - r) || 0;
1290
+ return [i * 100, u * 100, p * 100, r * 100];
1291
+ };
1292
+ function b(e, t) {
1293
+ return (e[0] - t[0]) ** 2 + (e[1] - t[1]) ** 2 + (e[2] - t[2]) ** 2;
1294
+ }
1295
+ return l.rgb.keyword = function(e) {
1296
+ const t = c[e];
1297
+ if (t)
1298
+ return t;
1299
+ let n = 1 / 0, a;
1300
+ for (const r of Object.keys(o)) {
1301
+ const i = o[r], u = b(e, i);
1302
+ u < n && (n = u, a = r);
1303
+ }
1304
+ return a;
1305
+ }, l.keyword.rgb = function(e) {
1306
+ return o[e];
1307
+ }, l.rgb.xyz = function(e) {
1308
+ let t = e[0] / 255, n = e[1] / 255, a = e[2] / 255;
1309
+ t = t > 0.04045 ? ((t + 0.055) / 1.055) ** 2.4 : t / 12.92, n = n > 0.04045 ? ((n + 0.055) / 1.055) ** 2.4 : n / 12.92, a = a > 0.04045 ? ((a + 0.055) / 1.055) ** 2.4 : a / 12.92;
1310
+ const r = t * 0.4124 + n * 0.3576 + a * 0.1805, i = t * 0.2126 + n * 0.7152 + a * 0.0722, u = t * 0.0193 + n * 0.1192 + a * 0.9505;
1311
+ return [r * 100, i * 100, u * 100];
1312
+ }, l.rgb.lab = function(e) {
1313
+ const t = l.rgb.xyz(e);
1314
+ let n = t[0], a = t[1], r = t[2];
1315
+ n /= 95.047, a /= 100, r /= 108.883, n = n > 8856e-6 ? n ** (1 / 3) : 7.787 * n + 16 / 116, a = a > 8856e-6 ? a ** (1 / 3) : 7.787 * a + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116;
1316
+ const i = 116 * a - 16, u = 500 * (n - a), p = 200 * (a - r);
1317
+ return [i, u, p];
1318
+ }, l.hsl.rgb = function(e) {
1319
+ const t = e[0] / 360, n = e[1] / 100, a = e[2] / 100;
1320
+ let r, i, u;
1321
+ if (n === 0)
1322
+ return u = a * 255, [u, u, u];
1323
+ a < 0.5 ? r = a * (1 + n) : r = a + n - a * n;
1324
+ const p = 2 * a - r, s = [0, 0, 0];
1325
+ for (let f = 0; f < 3; f++)
1326
+ i = t + 1 / 3 * -(f - 1), i < 0 && i++, i > 1 && i--, 6 * i < 1 ? u = p + (r - p) * 6 * i : 2 * i < 1 ? u = r : 3 * i < 2 ? u = p + (r - p) * (2 / 3 - i) * 6 : u = p, s[f] = u * 255;
1327
+ return s;
1328
+ }, l.hsl.hsv = function(e) {
1329
+ const t = e[0];
1330
+ let n = e[1] / 100, a = e[2] / 100, r = n;
1331
+ const i = Math.max(a, 0.01);
1332
+ a *= 2, n *= a <= 1 ? a : 2 - a, r *= i <= 1 ? i : 2 - i;
1333
+ const u = (a + n) / 2, p = a === 0 ? 2 * r / (i + r) : 2 * n / (a + n);
1334
+ return [t, p * 100, u * 100];
1335
+ }, l.hsv.rgb = function(e) {
1336
+ const t = e[0] / 60, n = e[1] / 100;
1337
+ let a = e[2] / 100;
1338
+ const r = Math.floor(t) % 6, i = t - Math.floor(t), u = 255 * a * (1 - n), p = 255 * a * (1 - n * i), s = 255 * a * (1 - n * (1 - i));
1339
+ switch (a *= 255, r) {
1340
+ case 0:
1341
+ return [a, s, u];
1342
+ case 1:
1343
+ return [p, a, u];
1344
+ case 2:
1345
+ return [u, a, s];
1346
+ case 3:
1347
+ return [u, p, a];
1348
+ case 4:
1349
+ return [s, u, a];
1350
+ case 5:
1351
+ return [a, u, p];
1352
+ }
1353
+ }, l.hsv.hsl = function(e) {
1354
+ const t = e[0], n = e[1] / 100, a = e[2] / 100, r = Math.max(a, 0.01);
1355
+ let i, u;
1356
+ u = (2 - n) * a;
1357
+ const p = (2 - n) * r;
1358
+ return i = n * r, i /= p <= 1 ? p : 2 - p, i = i || 0, u /= 2, [t, i * 100, u * 100];
1359
+ }, l.hwb.rgb = function(e) {
1360
+ const t = e[0] / 360;
1361
+ let n = e[1] / 100, a = e[2] / 100;
1362
+ const r = n + a;
1363
+ let i;
1364
+ r > 1 && (n /= r, a /= r);
1365
+ const u = Math.floor(6 * t), p = 1 - a;
1366
+ i = 6 * t - u, (u & 1) !== 0 && (i = 1 - i);
1367
+ const s = n + i * (p - n);
1368
+ let f, h, d;
1369
+ switch (u) {
1370
+ default:
1371
+ case 6:
1372
+ case 0:
1373
+ f = p, h = s, d = n;
1374
+ break;
1375
+ case 1:
1376
+ f = s, h = p, d = n;
1377
+ break;
1378
+ case 2:
1379
+ f = n, h = p, d = s;
1380
+ break;
1381
+ case 3:
1382
+ f = n, h = s, d = p;
1383
+ break;
1384
+ case 4:
1385
+ f = s, h = n, d = p;
1386
+ break;
1387
+ case 5:
1388
+ f = p, h = n, d = s;
1389
+ break;
1390
+ }
1391
+ return [f * 255, h * 255, d * 255];
1392
+ }, l.cmyk.rgb = function(e) {
1393
+ const t = e[0] / 100, n = e[1] / 100, a = e[2] / 100, r = e[3] / 100, i = 1 - Math.min(1, t * (1 - r) + r), u = 1 - Math.min(1, n * (1 - r) + r), p = 1 - Math.min(1, a * (1 - r) + r);
1394
+ return [i * 255, u * 255, p * 255];
1395
+ }, l.xyz.rgb = function(e) {
1396
+ const t = e[0] / 100, n = e[1] / 100, a = e[2] / 100;
1397
+ let r, i, u;
1398
+ return r = t * 3.2406 + n * -1.5372 + a * -0.4986, i = t * -0.9689 + n * 1.8758 + a * 0.0415, u = t * 0.0557 + n * -0.204 + a * 1.057, r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92, i = i > 31308e-7 ? 1.055 * i ** (1 / 2.4) - 0.055 : i * 12.92, u = u > 31308e-7 ? 1.055 * u ** (1 / 2.4) - 0.055 : u * 12.92, r = Math.min(Math.max(0, r), 1), i = Math.min(Math.max(0, i), 1), u = Math.min(Math.max(0, u), 1), [r * 255, i * 255, u * 255];
1399
+ }, l.xyz.lab = function(e) {
1400
+ let t = e[0], n = e[1], a = e[2];
1401
+ t /= 95.047, n /= 100, a /= 108.883, t = t > 8856e-6 ? t ** (1 / 3) : 7.787 * t + 16 / 116, n = n > 8856e-6 ? n ** (1 / 3) : 7.787 * n + 16 / 116, a = a > 8856e-6 ? a ** (1 / 3) : 7.787 * a + 16 / 116;
1402
+ const r = 116 * n - 16, i = 500 * (t - n), u = 200 * (n - a);
1403
+ return [r, i, u];
1404
+ }, l.lab.xyz = function(e) {
1405
+ const t = e[0], n = e[1], a = e[2];
1406
+ let r, i, u;
1407
+ i = (t + 16) / 116, r = n / 500 + i, u = i - a / 200;
1408
+ const p = i ** 3, s = r ** 3, f = u ** 3;
1409
+ return i = p > 8856e-6 ? p : (i - 16 / 116) / 7.787, r = s > 8856e-6 ? s : (r - 16 / 116) / 7.787, u = f > 8856e-6 ? f : (u - 16 / 116) / 7.787, r *= 95.047, i *= 100, u *= 108.883, [r, i, u];
1410
+ }, l.lab.lch = function(e) {
1411
+ const t = e[0], n = e[1], a = e[2];
1412
+ let r;
1413
+ r = Math.atan2(a, n) * 360 / 2 / Math.PI, r < 0 && (r += 360);
1414
+ const u = Math.sqrt(n * n + a * a);
1415
+ return [t, u, r];
1416
+ }, l.lch.lab = function(e) {
1417
+ const t = e[0], n = e[1], r = e[2] / 360 * 2 * Math.PI, i = n * Math.cos(r), u = n * Math.sin(r);
1418
+ return [t, i, u];
1419
+ }, l.rgb.ansi16 = function(e, t = null) {
1420
+ const [n, a, r] = e;
1421
+ let i = t === null ? l.rgb.hsv(e)[2] : t;
1422
+ if (i = Math.round(i / 50), i === 0)
1423
+ return 30;
1424
+ let u = 30 + (Math.round(r / 255) << 2 | Math.round(a / 255) << 1 | Math.round(n / 255));
1425
+ return i === 2 && (u += 60), u;
1426
+ }, l.hsv.ansi16 = function(e) {
1427
+ return l.rgb.ansi16(l.hsv.rgb(e), e[2]);
1428
+ }, l.rgb.ansi256 = function(e) {
1429
+ const t = e[0], n = e[1], a = e[2];
1430
+ return t === n && n === a ? t < 8 ? 16 : t > 248 ? 231 : Math.round((t - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(t / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(a / 255 * 5);
1431
+ }, l.ansi16.rgb = function(e) {
1432
+ let t = e % 10;
1433
+ if (t === 0 || t === 7)
1434
+ return e > 50 && (t += 3.5), t = t / 10.5 * 255, [t, t, t];
1435
+ const n = (~~(e > 50) + 1) * 0.5, a = (t & 1) * n * 255, r = (t >> 1 & 1) * n * 255, i = (t >> 2 & 1) * n * 255;
1436
+ return [a, r, i];
1437
+ }, l.ansi256.rgb = function(e) {
1438
+ if (e >= 232) {
1439
+ const i = (e - 232) * 10 + 8;
1440
+ return [i, i, i];
1441
+ }
1442
+ e -= 16;
1443
+ let t;
1444
+ const n = Math.floor(e / 36) / 5 * 255, a = Math.floor((t = e % 36) / 6) / 5 * 255, r = t % 6 / 5 * 255;
1445
+ return [n, a, r];
1446
+ }, l.rgb.hex = function(e) {
1447
+ const n = (((Math.round(e[0]) & 255) << 16) + ((Math.round(e[1]) & 255) << 8) + (Math.round(e[2]) & 255)).toString(16).toUpperCase();
1448
+ return "000000".substring(n.length) + n;
1449
+ }, l.hex.rgb = function(e) {
1450
+ const t = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
1451
+ if (!t)
1452
+ return [0, 0, 0];
1453
+ let n = t[0];
1454
+ t[0].length === 3 && (n = n.split("").map((p) => p + p).join(""));
1455
+ const a = parseInt(n, 16), r = a >> 16 & 255, i = a >> 8 & 255, u = a & 255;
1456
+ return [r, i, u];
1457
+ }, l.rgb.hcg = function(e) {
1458
+ const t = e[0] / 255, n = e[1] / 255, a = e[2] / 255, r = Math.max(Math.max(t, n), a), i = Math.min(Math.min(t, n), a), u = r - i;
1459
+ let p, s;
1460
+ return u < 1 ? p = i / (1 - u) : p = 0, u <= 0 ? s = 0 : r === t ? s = (n - a) / u % 6 : r === n ? s = 2 + (a - t) / u : s = 4 + (t - n) / u, s /= 6, s %= 1, [s * 360, u * 100, p * 100];
1461
+ }, l.hsl.hcg = function(e) {
1462
+ const t = e[1] / 100, n = e[2] / 100, a = n < 0.5 ? 2 * t * n : 2 * t * (1 - n);
1463
+ let r = 0;
1464
+ return a < 1 && (r = (n - 0.5 * a) / (1 - a)), [e[0], a * 100, r * 100];
1465
+ }, l.hsv.hcg = function(e) {
1466
+ const t = e[1] / 100, n = e[2] / 100, a = t * n;
1467
+ let r = 0;
1468
+ return a < 1 && (r = (n - a) / (1 - a)), [e[0], a * 100, r * 100];
1469
+ }, l.hcg.rgb = function(e) {
1470
+ const t = e[0] / 360, n = e[1] / 100, a = e[2] / 100;
1471
+ if (n === 0)
1472
+ return [a * 255, a * 255, a * 255];
1473
+ const r = [0, 0, 0], i = t % 1 * 6, u = i % 1, p = 1 - u;
1474
+ let s = 0;
1475
+ switch (Math.floor(i)) {
1476
+ case 0:
1477
+ r[0] = 1, r[1] = u, r[2] = 0;
1478
+ break;
1479
+ case 1:
1480
+ r[0] = p, r[1] = 1, r[2] = 0;
1481
+ break;
1482
+ case 2:
1483
+ r[0] = 0, r[1] = 1, r[2] = u;
1484
+ break;
1485
+ case 3:
1486
+ r[0] = 0, r[1] = p, r[2] = 1;
1487
+ break;
1488
+ case 4:
1489
+ r[0] = u, r[1] = 0, r[2] = 1;
1490
+ break;
1491
+ default:
1492
+ r[0] = 1, r[1] = 0, r[2] = p;
1493
+ }
1494
+ return s = (1 - n) * a, [
1495
+ (n * r[0] + s) * 255,
1496
+ (n * r[1] + s) * 255,
1497
+ (n * r[2] + s) * 255
1498
+ ];
1499
+ }, l.hcg.hsv = function(e) {
1500
+ const t = e[1] / 100, n = e[2] / 100, a = t + n * (1 - t);
1501
+ let r = 0;
1502
+ return a > 0 && (r = t / a), [e[0], r * 100, a * 100];
1503
+ }, l.hcg.hsl = function(e) {
1504
+ const t = e[1] / 100, a = e[2] / 100 * (1 - t) + 0.5 * t;
1505
+ let r = 0;
1506
+ return a > 0 && a < 0.5 ? r = t / (2 * a) : a >= 0.5 && a < 1 && (r = t / (2 * (1 - a))), [e[0], r * 100, a * 100];
1507
+ }, l.hcg.hwb = function(e) {
1508
+ const t = e[1] / 100, n = e[2] / 100, a = t + n * (1 - t);
1509
+ return [e[0], (a - t) * 100, (1 - a) * 100];
1510
+ }, l.hwb.hcg = function(e) {
1511
+ const t = e[1] / 100, a = 1 - e[2] / 100, r = a - t;
1512
+ let i = 0;
1513
+ return r < 1 && (i = (a - r) / (1 - r)), [e[0], r * 100, i * 100];
1514
+ }, l.apple.rgb = function(e) {
1515
+ return [e[0] / 65535 * 255, e[1] / 65535 * 255, e[2] / 65535 * 255];
1516
+ }, l.rgb.apple = function(e) {
1517
+ return [e[0] / 255 * 65535, e[1] / 255 * 65535, e[2] / 255 * 65535];
1518
+ }, l.gray.rgb = function(e) {
1519
+ return [e[0] / 100 * 255, e[0] / 100 * 255, e[0] / 100 * 255];
1520
+ }, l.gray.hsl = function(e) {
1521
+ return [0, 0, e[0]];
1522
+ }, l.gray.hsv = l.gray.hsl, l.gray.hwb = function(e) {
1523
+ return [0, 100, e[0]];
1524
+ }, l.gray.cmyk = function(e) {
1525
+ return [0, 0, 0, e[0]];
1526
+ }, l.gray.lab = function(e) {
1527
+ return [e[0], 0, 0];
1528
+ }, l.gray.hex = function(e) {
1529
+ const t = Math.round(e[0] / 100 * 255) & 255, a = ((t << 16) + (t << 8) + t).toString(16).toUpperCase();
1530
+ return "000000".substring(a.length) + a;
1531
+ }, l.rgb.gray = function(e) {
1532
+ return [(e[0] + e[1] + e[2]) / 3 / 255 * 100];
1533
+ }, q;
1534
+ }
1535
+ var L, ae;
1536
+ function dr() {
1537
+ if (ae) return L;
1538
+ ae = 1;
1539
+ const o = de();
1540
+ function c() {
1541
+ const t = {}, n = Object.keys(o);
1542
+ for (let a = n.length, r = 0; r < a; r++)
1543
+ t[n[r]] = {
1544
+ // http://jsperf.com/1-vs-infinity
1545
+ // micro-opt, but this is simple.
1546
+ distance: -1,
1547
+ parent: null
1548
+ };
1549
+ return t;
1550
+ }
1551
+ function l(t) {
1552
+ const n = c(), a = [t];
1553
+ for (n[t].distance = 0; a.length; ) {
1554
+ const r = a.pop(), i = Object.keys(o[r]);
1555
+ for (let u = i.length, p = 0; p < u; p++) {
1556
+ const s = i[p], f = n[s];
1557
+ f.distance === -1 && (f.distance = n[r].distance + 1, f.parent = r, a.unshift(s));
1558
+ }
1559
+ }
1560
+ return n;
1561
+ }
1562
+ function b(t, n) {
1563
+ return function(a) {
1564
+ return n(t(a));
1565
+ };
1566
+ }
1567
+ function e(t, n) {
1568
+ const a = [n[t].parent, t];
1569
+ let r = o[n[t].parent][t], i = n[t].parent;
1570
+ for (; n[i].parent; )
1571
+ a.unshift(n[i].parent), r = b(o[n[i].parent][i], r), i = n[i].parent;
1572
+ return r.conversion = a, r;
1573
+ }
1574
+ return L = function(t) {
1575
+ const n = l(t), a = {}, r = Object.keys(n);
1576
+ for (let i = r.length, u = 0; u < i; u++) {
1577
+ const p = r[u];
1578
+ n[p].parent !== null && (a[p] = e(p, n));
1579
+ }
1580
+ return a;
1581
+ }, L;
1582
+ }
1583
+ var U, se;
1584
+ function pr() {
1585
+ if (se) return U;
1586
+ se = 1;
1587
+ const o = de(), c = dr(), l = {}, b = Object.keys(o);
1588
+ function e(n) {
1589
+ const a = function(...r) {
1590
+ const i = r[0];
1591
+ return i == null ? i : (i.length > 1 && (r = i), n(r));
1592
+ };
1593
+ return "conversion" in n && (a.conversion = n.conversion), a;
1594
+ }
1595
+ function t(n) {
1596
+ const a = function(...r) {
1597
+ const i = r[0];
1598
+ if (i == null)
1599
+ return i;
1600
+ i.length > 1 && (r = i);
1601
+ const u = n(r);
1602
+ if (typeof u == "object")
1603
+ for (let p = u.length, s = 0; s < p; s++)
1604
+ u[s] = Math.round(u[s]);
1605
+ return u;
1606
+ };
1607
+ return "conversion" in n && (a.conversion = n.conversion), a;
1608
+ }
1609
+ return b.forEach((n) => {
1610
+ l[n] = {}, Object.defineProperty(l[n], "channels", { value: o[n].channels }), Object.defineProperty(l[n], "labels", { value: o[n].labels });
1611
+ const a = c(n);
1612
+ Object.keys(a).forEach((i) => {
1613
+ const u = a[i];
1614
+ l[n][i] = t(u), l[n][i].raw = e(u);
1615
+ });
1616
+ }), U = l, U;
1617
+ }
1618
+ var I, ie;
1619
+ function br() {
1620
+ if (ie) return I;
1621
+ ie = 1;
1622
+ const o = hr(), c = pr(), l = [
1623
+ // To be honest, I don't really feel like keyword belongs in color convert, but eh.
1624
+ "keyword",
1625
+ // Gray conflicts with some method names, and has its own method defined.
1626
+ "gray",
1627
+ // Shouldn't really be in color-convert either...
1628
+ "hex"
1629
+ ], b = {};
1630
+ for (const s of Object.keys(c))
1631
+ b[[...c[s].labels].sort().join("")] = s;
1632
+ const e = {};
1633
+ function t(s, f) {
1634
+ if (!(this instanceof t))
1635
+ return new t(s, f);
1636
+ if (f && f in l && (f = null), f && !(f in c))
1637
+ throw new Error("Unknown model: " + f);
1638
+ let h, d;
1639
+ if (s == null)
1640
+ this.model = "rgb", this.color = [0, 0, 0], this.valpha = 1;
1641
+ else if (s instanceof t)
1642
+ this.model = s.model, this.color = [...s.color], this.valpha = s.valpha;
1643
+ else if (typeof s == "string") {
1644
+ const g = o.get(s);
1645
+ if (g === null)
1646
+ throw new Error("Unable to parse color from string: " + s);
1647
+ this.model = g.model, d = c[this.model].channels, this.color = g.value.slice(0, d), this.valpha = typeof g.value[d] == "number" ? g.value[d] : 1;
1648
+ } else if (s.length > 0) {
1649
+ this.model = f || "rgb", d = c[this.model].channels;
1650
+ const g = Array.prototype.slice.call(s, 0, d);
1651
+ this.color = p(g, d), this.valpha = typeof s[d] == "number" ? s[d] : 1;
1652
+ } else if (typeof s == "number")
1653
+ this.model = "rgb", this.color = [
1654
+ s >> 16 & 255,
1655
+ s >> 8 & 255,
1656
+ s & 255
1657
+ ], this.valpha = 1;
1658
+ else {
1659
+ this.valpha = 1;
1660
+ const g = Object.keys(s);
1661
+ "alpha" in s && (g.splice(g.indexOf("alpha"), 1), this.valpha = typeof s.alpha == "number" ? s.alpha : 0);
1662
+ const m = g.sort().join("");
1663
+ if (!(m in b))
1664
+ throw new Error("Unable to parse color from object: " + JSON.stringify(s));
1665
+ this.model = b[m];
1666
+ const { labels: y } = c[this.model], w = [];
1667
+ for (h = 0; h < y.length; h++)
1668
+ w.push(s[y[h]]);
1669
+ this.color = p(w);
1670
+ }
1671
+ if (e[this.model])
1672
+ for (d = c[this.model].channels, h = 0; h < d; h++) {
1673
+ const g = e[this.model][h];
1674
+ g && (this.color[h] = g(this.color[h]));
1675
+ }
1676
+ this.valpha = Math.max(0, Math.min(1, this.valpha)), Object.freeze && Object.freeze(this);
1677
+ }
1678
+ t.prototype = {
1679
+ toString() {
1680
+ return this.string();
1681
+ },
1682
+ toJSON() {
1683
+ return this[this.model]();
1684
+ },
1685
+ string(s) {
1686
+ let f = this.model in o.to ? this : this.rgb();
1687
+ f = f.round(typeof s == "number" ? s : 1);
1688
+ const h = f.valpha === 1 ? f.color : [...f.color, this.valpha];
1689
+ return o.to[f.model](h);
1690
+ },
1691
+ percentString(s) {
1692
+ const f = this.rgb().round(typeof s == "number" ? s : 1), h = f.valpha === 1 ? f.color : [...f.color, this.valpha];
1693
+ return o.to.rgb.percent(h);
1694
+ },
1695
+ array() {
1696
+ return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
1697
+ },
1698
+ object() {
1699
+ const s = {}, { channels: f } = c[this.model], { labels: h } = c[this.model];
1700
+ for (let d = 0; d < f; d++)
1701
+ s[h[d]] = this.color[d];
1702
+ return this.valpha !== 1 && (s.alpha = this.valpha), s;
1703
+ },
1704
+ unitArray() {
1705
+ const s = this.rgb().color;
1706
+ return s[0] /= 255, s[1] /= 255, s[2] /= 255, this.valpha !== 1 && s.push(this.valpha), s;
1707
+ },
1708
+ unitObject() {
1709
+ const s = this.rgb().object();
1710
+ return s.r /= 255, s.g /= 255, s.b /= 255, this.valpha !== 1 && (s.alpha = this.valpha), s;
1711
+ },
1712
+ round(s) {
1713
+ return s = Math.max(s || 0, 0), new t([...this.color.map(a(s)), this.valpha], this.model);
1714
+ },
1715
+ alpha(s) {
1716
+ return s !== void 0 ? new t([...this.color, Math.max(0, Math.min(1, s))], this.model) : this.valpha;
1717
+ },
1718
+ // Rgb
1719
+ red: r("rgb", 0, i(255)),
1720
+ green: r("rgb", 1, i(255)),
1721
+ blue: r("rgb", 2, i(255)),
1722
+ hue: r(["hsl", "hsv", "hsl", "hwb", "hcg"], 0, (s) => (s % 360 + 360) % 360),
1723
+ saturationl: r("hsl", 1, i(100)),
1724
+ lightness: r("hsl", 2, i(100)),
1725
+ saturationv: r("hsv", 1, i(100)),
1726
+ value: r("hsv", 2, i(100)),
1727
+ chroma: r("hcg", 1, i(100)),
1728
+ gray: r("hcg", 2, i(100)),
1729
+ white: r("hwb", 1, i(100)),
1730
+ wblack: r("hwb", 2, i(100)),
1731
+ cyan: r("cmyk", 0, i(100)),
1732
+ magenta: r("cmyk", 1, i(100)),
1733
+ yellow: r("cmyk", 2, i(100)),
1734
+ black: r("cmyk", 3, i(100)),
1735
+ x: r("xyz", 0, i(95.047)),
1736
+ y: r("xyz", 1, i(100)),
1737
+ z: r("xyz", 2, i(108.833)),
1738
+ l: r("lab", 0, i(100)),
1739
+ a: r("lab", 1),
1740
+ b: r("lab", 2),
1741
+ keyword(s) {
1742
+ return s !== void 0 ? new t(s) : c[this.model].keyword(this.color);
1743
+ },
1744
+ hex(s) {
1745
+ return s !== void 0 ? new t(s) : o.to.hex(this.rgb().round().color);
1746
+ },
1747
+ hexa(s) {
1748
+ if (s !== void 0)
1749
+ return new t(s);
1750
+ const f = this.rgb().round().color;
1751
+ let h = Math.round(this.valpha * 255).toString(16).toUpperCase();
1752
+ return h.length === 1 && (h = "0" + h), o.to.hex(f) + h;
1753
+ },
1754
+ rgbNumber() {
1755
+ const s = this.rgb().color;
1756
+ return (s[0] & 255) << 16 | (s[1] & 255) << 8 | s[2] & 255;
1757
+ },
1758
+ luminosity() {
1759
+ const s = this.rgb().color, f = [];
1760
+ for (const [h, d] of s.entries()) {
1761
+ const g = d / 255;
1762
+ f[h] = g <= 0.04045 ? g / 12.92 : ((g + 0.055) / 1.055) ** 2.4;
1763
+ }
1764
+ return 0.2126 * f[0] + 0.7152 * f[1] + 0.0722 * f[2];
1765
+ },
1766
+ contrast(s) {
1767
+ const f = this.luminosity(), h = s.luminosity();
1768
+ return f > h ? (f + 0.05) / (h + 0.05) : (h + 0.05) / (f + 0.05);
1769
+ },
1770
+ level(s) {
1771
+ const f = this.contrast(s);
1772
+ return f >= 7 ? "AAA" : f >= 4.5 ? "AA" : "";
1773
+ },
1774
+ isDark() {
1775
+ const s = this.rgb().color;
1776
+ return (s[0] * 2126 + s[1] * 7152 + s[2] * 722) / 1e4 < 128;
1777
+ },
1778
+ isLight() {
1779
+ return !this.isDark();
1780
+ },
1781
+ negate() {
1782
+ const s = this.rgb();
1783
+ for (let f = 0; f < 3; f++)
1784
+ s.color[f] = 255 - s.color[f];
1785
+ return s;
1786
+ },
1787
+ lighten(s) {
1788
+ const f = this.hsl();
1789
+ return f.color[2] += f.color[2] * s, f;
1790
+ },
1791
+ darken(s) {
1792
+ const f = this.hsl();
1793
+ return f.color[2] -= f.color[2] * s, f;
1794
+ },
1795
+ saturate(s) {
1796
+ const f = this.hsl();
1797
+ return f.color[1] += f.color[1] * s, f;
1798
+ },
1799
+ desaturate(s) {
1800
+ const f = this.hsl();
1801
+ return f.color[1] -= f.color[1] * s, f;
1802
+ },
1803
+ whiten(s) {
1804
+ const f = this.hwb();
1805
+ return f.color[1] += f.color[1] * s, f;
1806
+ },
1807
+ blacken(s) {
1808
+ const f = this.hwb();
1809
+ return f.color[2] += f.color[2] * s, f;
1810
+ },
1811
+ grayscale() {
1812
+ const s = this.rgb().color, f = s[0] * 0.3 + s[1] * 0.59 + s[2] * 0.11;
1813
+ return t.rgb(f, f, f);
1814
+ },
1815
+ fade(s) {
1816
+ return this.alpha(this.valpha - this.valpha * s);
1817
+ },
1818
+ opaquer(s) {
1819
+ return this.alpha(this.valpha + this.valpha * s);
1820
+ },
1821
+ rotate(s) {
1822
+ const f = this.hsl();
1823
+ let h = f.color[0];
1824
+ return h = (h + s) % 360, h = h < 0 ? 360 + h : h, f.color[0] = h, f;
1825
+ },
1826
+ mix(s, f) {
1827
+ if (!s || !s.rgb)
1828
+ throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof s);
1829
+ const h = s.rgb(), d = this.rgb(), g = f === void 0 ? 0.5 : f, m = 2 * g - 1, y = h.alpha() - d.alpha(), w = ((m * y === -1 ? m : (m + y) / (1 + m * y)) + 1) / 2, x = 1 - w;
1830
+ return t.rgb(
1831
+ w * h.red() + x * d.red(),
1832
+ w * h.green() + x * d.green(),
1833
+ w * h.blue() + x * d.blue(),
1834
+ h.alpha() * g + d.alpha() * (1 - g)
1835
+ );
1836
+ }
1837
+ };
1838
+ for (const s of Object.keys(c)) {
1839
+ if (l.includes(s))
1840
+ continue;
1841
+ const { channels: f } = c[s];
1842
+ t.prototype[s] = function(...h) {
1843
+ return this.model === s ? new t(this) : h.length > 0 ? new t(h, s) : new t([...u(c[this.model][s].raw(this.color)), this.valpha], s);
1844
+ }, t[s] = function(...h) {
1845
+ let d = h[0];
1846
+ return typeof d == "number" && (d = p(h, f)), new t(d, s);
1847
+ };
1848
+ }
1849
+ function n(s, f) {
1850
+ return Number(s.toFixed(f));
1851
+ }
1852
+ function a(s) {
1853
+ return function(f) {
1854
+ return n(f, s);
1855
+ };
1856
+ }
1857
+ function r(s, f, h) {
1858
+ s = Array.isArray(s) ? s : [s];
1859
+ for (const d of s)
1860
+ (e[d] || (e[d] = []))[f] = h;
1861
+ return s = s[0], function(d) {
1862
+ let g;
1863
+ return d !== void 0 ? (h && (d = h(d)), g = this[s](), g.color[f] = d, g) : (g = this[s]().color[f], h && (g = h(g)), g);
1864
+ };
1865
+ }
1866
+ function i(s) {
1867
+ return function(f) {
1868
+ return Math.max(0, Math.min(s, f));
1869
+ };
1870
+ }
1871
+ function u(s) {
1872
+ return Array.isArray(s) ? s : [s];
1873
+ }
1874
+ function p(s, f) {
1875
+ for (let h = 0; h < f; h++)
1876
+ typeof s[h] != "number" && (s[h] = 0);
1877
+ return s;
1878
+ }
1879
+ return I = t, I;
1880
+ }
1881
+ var gr = /* @__PURE__ */ br();
1882
+ const mr = /* @__PURE__ */ V(gr);
1883
+ function pe(o, c) {
1884
+ return { handler: o, config: c };
1885
+ }
1886
+ pe.withOptions = function(o, c = () => ({})) {
1887
+ function l(b) {
1888
+ return { handler: o(b), config: c(b) };
1889
+ }
1890
+ return l.__isOptionsFunction = !0, l;
1891
+ };
1892
+ var yr = pe, N, le;
1893
+ function vr() {
1894
+ if (le) return N;
1895
+ le = 1;
1896
+ var o = function(y) {
1897
+ return c(y) && !l(y);
1898
+ };
1899
+ function c(m) {
1900
+ return !!m && typeof m == "object";
1901
+ }
1902
+ function l(m) {
1903
+ var y = Object.prototype.toString.call(m);
1904
+ return y === "[object RegExp]" || y === "[object Date]" || t(m);
1905
+ }
1906
+ var b = typeof Symbol == "function" && Symbol.for, e = b ? Symbol.for("react.element") : 60103;
1907
+ function t(m) {
1908
+ return m.$$typeof === e;
1909
+ }
1910
+ function n(m) {
1911
+ return Array.isArray(m) ? [] : {};
1912
+ }
1913
+ function a(m, y) {
1914
+ return y.clone !== !1 && y.isMergeableObject(m) ? d(n(m), m, y) : m;
1915
+ }
1916
+ function r(m, y, w) {
1917
+ return m.concat(y).map(function(x) {
1918
+ return a(x, w);
1919
+ });
1920
+ }
1921
+ function i(m, y) {
1922
+ if (!y.customMerge)
1923
+ return d;
1924
+ var w = y.customMerge(m);
1925
+ return typeof w == "function" ? w : d;
1926
+ }
1927
+ function u(m) {
1928
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(m).filter(function(y) {
1929
+ return Object.propertyIsEnumerable.call(m, y);
1930
+ }) : [];
1931
+ }
1932
+ function p(m) {
1933
+ return Object.keys(m).concat(u(m));
1934
+ }
1935
+ function s(m, y) {
1936
+ try {
1937
+ return y in m;
1938
+ } catch {
1939
+ return !1;
1940
+ }
1941
+ }
1942
+ function f(m, y) {
1943
+ return s(m, y) && !(Object.hasOwnProperty.call(m, y) && Object.propertyIsEnumerable.call(m, y));
1944
+ }
1945
+ function h(m, y, w) {
1946
+ var x = {};
1947
+ return w.isMergeableObject(m) && p(m).forEach(function(k) {
1948
+ x[k] = a(m[k], w);
1949
+ }), p(y).forEach(function(k) {
1950
+ f(m, k) || (s(m, k) && w.isMergeableObject(y[k]) ? x[k] = i(k, w)(m[k], y[k], w) : x[k] = a(y[k], w));
1951
+ }), x;
1952
+ }
1953
+ function d(m, y, w) {
1954
+ w = w || {}, w.arrayMerge = w.arrayMerge || r, w.isMergeableObject = w.isMergeableObject || o, w.cloneUnlessOtherwiseSpecified = a;
1955
+ var x = Array.isArray(y), k = Array.isArray(m), E = x === k;
1956
+ return E ? x ? w.arrayMerge(m, y, w) : h(m, y, w) : a(y, w);
1957
+ }
1958
+ d.all = function(y, w) {
1959
+ if (!Array.isArray(y))
1960
+ throw new Error("first argument should be an array");
1961
+ return y.reduce(function(x, k) {
1962
+ return d(x, k, w);
1963
+ }, {});
1964
+ };
1965
+ var g = d;
1966
+ return N = g, N;
1967
+ }
1968
+ var wr = vr();
1969
+ const F = /* @__PURE__ */ V(wr);
1970
+ var xr = "heroui", ce = {}, kr = (o = {}, c, l) => {
1971
+ const b = {
1972
+ variants: [],
1973
+ utilities: {},
1974
+ colors: {},
1975
+ baseStyles: {}
1976
+ };
1977
+ for (const [e, { extend: t, layout: n, colors: a }] of Object.entries(o)) {
1978
+ let r = `.${e}`;
1979
+ const i = e === "light" || e === "dark" ? e : t;
1980
+ let u = "";
1981
+ e === c && (u = `:root, [data-theme=${e}]`), u && (b.baseStyles[u] = i ? {
1982
+ "color-scheme": i
1983
+ } : {}), b.utilities[r] = i ? {
1984
+ "color-scheme": i
1985
+ } : {};
1986
+ const p = Le(a), s = n ? ke(n, (f, h) => xe(h)) : {};
1987
+ b.variants.push({
1988
+ name: e,
1989
+ definition: [`&.${e}`, `&[data-theme='${e}']`]
1990
+ });
1991
+ for (const [f, h] of Object.entries(p)) {
1992
+ if (!h) return;
1993
+ try {
1994
+ const d = ce[h] || mr(h).hsl().round(2).array();
1995
+ ce[h] = d;
1996
+ const [g, m, y, w] = d, x = `--${l}-${f}`;
1997
+ b.utilities[r][x] = `${g} ${m}% ${y}%`, u && (b.baseStyles[u][x] = `${g} ${m}% ${y}%`), b.colors[f] = `hsl(var(${x}) / ${w ?? "<alpha-value>"})`;
1998
+ } catch (d) {
1999
+ console.log("error", d?.message);
2000
+ }
2001
+ }
2002
+ for (const [f, h] of Object.entries(s)) {
2003
+ if (!h) return;
2004
+ const d = `--${l}-${f}`;
2005
+ if (typeof h == "object")
2006
+ for (const [g, m] of Object.entries(h)) {
2007
+ const y = `${d}-${g}`;
2008
+ b.utilities[r][y] = m, u && (b.baseStyles[u][y] = m);
2009
+ }
2010
+ else {
2011
+ const g = d.includes("opacity") && typeof h == "number" ? h.toString().replace(/^0\./, ".") : h;
2012
+ b.utilities[r][d] = g, u && (b.baseStyles[u][d] = g);
2013
+ }
2014
+ }
2015
+ }
2016
+ return b;
2017
+ }, _r = (o = {}, c, l, b) => {
2018
+ const e = kr(o, c, l), t = (n, a) => `linear-gradient(45deg, hsl(var(--${l}-${n})) 25%, hsl(var(--${l}-${a})) 25%, hsl(var(--${l}-${a})) 50%, hsl(var(--${l}-${n})) 50%, hsl(var(--${l}-${n})) 75%, hsl(var(--${l}-${a})) 75%, hsl(var(--${l}-${a})))`;
2019
+ return yr(
2020
+ ({ addBase: n, addUtilities: a, addVariant: r }) => {
2021
+ n({
2022
+ ":root, [data-theme]": {
2023
+ ...$e(l)
2024
+ }
2025
+ }), n({ ...e?.baseStyles }), a({ ...e?.utilities, ...Oe }), e?.variants.forEach((i) => {
2026
+ r(i.name, i.definition);
2027
+ });
2028
+ },
2029
+ // extend the colors config
2030
+ {
2031
+ theme: {
2032
+ extend: {
2033
+ // @ts-ignore
2034
+ colors: {
2035
+ ...b ? v : {},
2036
+ ...e?.colors
2037
+ },
2038
+ scale: {
2039
+ 80: "0.8",
2040
+ 85: "0.85"
2041
+ },
2042
+ height: {
2043
+ divider: `var(--${l}-divider-weight)`
2044
+ },
2045
+ width: {
2046
+ divider: `var(--${l}-divider-weight)`
2047
+ },
2048
+ borderRadius: {
2049
+ small: `var(--${l}-radius-small)`,
2050
+ medium: `var(--${l}-radius-medium)`,
2051
+ large: `var(--${l}-radius-large)`
2052
+ },
2053
+ opacity: {
2054
+ hover: `var(--${l}-hover-opacity)`,
2055
+ disabled: `var(--${l}-disabled-opacity)`
2056
+ },
2057
+ borderWidth: {
2058
+ small: `var(--${l}-border-width-small)`,
2059
+ medium: `var(--${l}-border-width-medium)`,
2060
+ large: `var(--${l}-border-width-large)`,
2061
+ 1: "1px",
2062
+ 1.5: "1.5px",
2063
+ 3: "3px",
2064
+ 5: "5px"
2065
+ },
2066
+ boxShadow: {
2067
+ small: `var(--${l}-box-shadow-small)`,
2068
+ medium: `var(--${l}-box-shadow-medium)`,
2069
+ large: `var(--${l}-box-shadow-large)`
2070
+ },
2071
+ backgroundSize: {
2072
+ "stripe-size": "1.25rem 1.25rem"
2073
+ },
2074
+ backgroundImage: {
2075
+ "stripe-gradient-default": t("default-200", "default-400"),
2076
+ "stripe-gradient-primary": t("primary-200", "primary"),
2077
+ "stripe-gradient-secondary": t("secondary-200", "secondary"),
2078
+ "stripe-gradient-success": t("success-200", "success"),
2079
+ "stripe-gradient-warning": t("warning-200", "warning"),
2080
+ "stripe-gradient-danger": t("danger-200", "danger")
2081
+ },
2082
+ transitionDuration: {
2083
+ 0: "0ms",
2084
+ 250: "250ms",
2085
+ 400: "400ms",
2086
+ DEFAULT: _
2087
+ },
2088
+ transitionTimingFunction: {
2089
+ "soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
2090
+ },
2091
+ ...cr
2092
+ }
2093
+ }
2094
+ }
2095
+ );
2096
+ }, rt = (o = {}) => {
2097
+ var c, l, b, e;
2098
+ const {
2099
+ themes: t = {},
2100
+ defaultTheme: n = "light",
2101
+ layout: a,
2102
+ defaultExtendTheme: r = "light",
2103
+ prefix: i = xr,
2104
+ addCommonColors: u = !1
2105
+ } = o, p = ((c = t?.light) == null ? void 0 : c.colors) || {}, s = ((l = t?.dark) == null ? void 0 : l.colors) || {}, f = a && typeof a == "object" ? F(Q, a) : Q, h = {
2106
+ light: {
2107
+ ...f,
2108
+ ...ir
2109
+ },
2110
+ dark: {
2111
+ ...f,
2112
+ ...lr
2113
+ }
2114
+ };
2115
+ let d = we(t, ["light", "dark"]) || {};
2116
+ Object.entries(d).forEach(([w, { extend: x, colors: k, layout: E }]) => {
2117
+ const be = x && Ce(x) ? x : r, K = $[be];
2118
+ d[w].colors = k && typeof k == "object" ? F(K, k) : K;
2119
+ const B = x ? h[x] : f;
2120
+ d[w].layout = E && typeof E == "object" ? F(B, E) : B;
2121
+ });
2122
+ const g = {
2123
+ layout: F(h.light, ((b = t?.light) == null ? void 0 : b.layout) || {}),
2124
+ colors: F($.light, p)
2125
+ }, m = {
2126
+ layout: F(h.dark, ((e = t?.dark) == null ? void 0 : e.layout) || {}),
2127
+ colors: F($.dark, s)
2128
+ }, y = {
2129
+ light: g,
2130
+ dark: m,
2131
+ ...d
2132
+ };
2133
+ return _r(y, n, i, u);
2134
+ };
2135
+ export {
2136
+ qr as A,
2137
+ zr as B,
2138
+ Dr as C,
2139
+ Vr as D,
2140
+ Ur as E,
2141
+ Kr as F,
2142
+ Yr as G,
2143
+ $e as H,
2144
+ lr as I,
2145
+ Q as J,
2146
+ Wr as K,
2147
+ rt as L,
2148
+ ir as M,
2149
+ Mr as N,
2150
+ Fr as _,
2151
+ ye as a,
2152
+ v as b,
2153
+ Qr as c,
2154
+ Xr as d,
2155
+ jr as e,
2156
+ Tr as f,
2157
+ Gr as g,
2158
+ et as h,
2159
+ Er as i,
2160
+ _e as j,
2161
+ $r as k,
2162
+ Or as l,
2163
+ Br as m,
2164
+ Nr as n,
2165
+ Lr as o,
2166
+ Sr as p,
2167
+ Hr as q,
2168
+ Jr as r,
2169
+ $ as s,
2170
+ Zr as t,
2171
+ Oe as u,
2172
+ Cr as v,
2173
+ Pr as w,
2174
+ Ir as x,
2175
+ Rr as y,
2176
+ Ar as z
2177
+ };