@kvell-group/ui 1.6.5 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,2468 +1,46 @@
1
- import { jsx as p, jsxs as z, Fragment as pr } from "react/jsx-runtime";
2
- import { useState as tr, useRef as W, useEffect as A, useLayoutEffect as Wt, createContext as Dr, useContext as $r, useMemo as zt, useCallback as Lr, useId as Yt, forwardRef as _ } from "react";
3
- import Gt from "react-dom";
4
- function M(r) {
5
- return Object.keys(r);
6
- }
7
- function ir(r) {
8
- return r && typeof r == "object" && !Array.isArray(r);
9
- }
10
- function vr(r, t) {
11
- const e = { ...r }, n = t;
12
- return ir(r) && ir(t) && Object.keys(t).forEach((a) => {
13
- ir(n[a]) && a in r ? e[a] = vr(e[a], n[a]) : e[a] = n[a];
14
- }), e;
15
- }
16
- function Dt(r) {
17
- return r.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
18
- }
19
- function Xt(r) {
20
- var t;
21
- return typeof r != "string" || !r.includes("var(--mantine-scale)") ? r : (t = r.match(/^calc\((.*?)\)$/)) == null ? void 0 : t[1].split("*")[0].trim();
22
- }
23
- function Ut(r) {
24
- const t = Xt(r);
25
- return typeof t == "number" ? t : typeof t == "string" ? t.includes("calc") || t.includes("var") ? t : t.includes("px") ? Number(t.replace("px", "")) : t.includes("rem") ? Number(t.replace("rem", "")) * 16 : t.includes("em") ? Number(t.replace("em", "")) * 16 : Number(t) : NaN;
26
- }
27
- function sr(r) {
28
- return r === "0rem" ? "0rem" : `calc(${r} * var(--mantine-scale))`;
29
- }
30
- function Xr(r, { shouldScale: t = !1 } = {}) {
31
- function e(n) {
32
- if (n === 0 || n === "0")
33
- return `0${r}`;
34
- if (typeof n == "number") {
35
- const a = `${n / 16}${r}`;
36
- return t ? sr(a) : a;
37
- }
38
- if (typeof n == "string") {
39
- if (n === "" || n.startsWith("calc(") || n.startsWith("clamp(") || n.includes("rgba("))
40
- return n;
41
- if (n.includes(","))
42
- return n.split(",").map((o) => e(o)).join(",");
43
- if (n.includes(" "))
44
- return n.split(" ").map((o) => e(o)).join(" ");
45
- if (n.includes(r))
46
- return t ? sr(n) : n;
47
- const a = n.replace("px", "");
48
- if (!Number.isNaN(Number(a))) {
49
- const o = `${Number(a) / 16}${r}`;
50
- return t ? sr(o) : o;
51
- }
52
- }
53
- return n;
54
- }
55
- return e;
56
- }
57
- const c = Xr("rem", { shouldScale: !0 }), Er = Xr("em");
58
- function Sr(r) {
59
- return Object.keys(r).reduce((t, e) => (r[e] !== void 0 && (t[e] = r[e]), t), {});
60
- }
61
- function Ur(r) {
62
- if (typeof r == "number")
63
- return !0;
64
- if (typeof r == "string") {
65
- if (r.startsWith("calc(") || r.startsWith("var(") || r.includes(" ") && r.trim() !== "")
66
- return !0;
67
- const t = /^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;
68
- return r.trim().split(/\s+/).every((n) => t.test(n));
69
- }
70
- return !1;
71
- }
72
- function O(r, t = "size", e = !0) {
73
- if (r !== void 0)
74
- return Ur(r) ? e ? c(r) : r : `var(--${t}-${r})`;
75
- }
76
- function qr(r) {
77
- return r === void 0 ? "var(--mantine-radius-default)" : O(r, "mantine-radius");
78
- }
79
- function nr(r) {
80
- return O(r, "mantine-font-size");
81
- }
82
- function qt(r, t) {
83
- try {
84
- return r.addEventListener("change", t), () => r.removeEventListener("change", t);
85
- } catch {
86
- return r.addListener(t), () => r.removeListener(t);
87
- }
88
- }
89
- function Qt(r, t) {
90
- return typeof window < "u" && "matchMedia" in window ? window.matchMedia(r).matches : !1;
91
- }
92
- function Kt(r, t, { getInitialValueInEffect: e } = {
93
- getInitialValueInEffect: !0
94
- }) {
95
- const [n, a] = tr(
96
- e ? t : Qt(r)
97
- ), o = W(null);
98
- return A(() => {
99
- if ("matchMedia" in window)
100
- return o.current = window.matchMedia(r), a(o.current.matches), qt(o.current, (i) => a(i.matches));
101
- }, [r]), n;
102
- }
103
- const Qr = typeof document < "u" ? Wt : A;
104
- function Zt(r, t) {
105
- const e = W(!1);
106
- A(
107
- () => () => {
108
- e.current = !1;
109
- },
110
- []
111
- ), A(() => {
112
- if (e.current)
113
- return r();
114
- e.current = !0;
115
- }, t);
116
- }
117
- function Jt(r, t) {
118
- return Kt("(prefers-reduced-motion: reduce)", r, t);
119
- }
120
- function Kr(r) {
121
- var t, e, n = "";
122
- if (typeof r == "string" || typeof r == "number") n += r;
123
- else if (typeof r == "object") if (Array.isArray(r)) {
124
- var a = r.length;
125
- for (t = 0; t < a; t++) r[t] && (e = Kr(r[t])) && (n && (n += " "), n += e);
126
- } else for (e in r) r[e] && (n && (n += " "), n += e);
127
- return n;
128
- }
129
- function B() {
130
- for (var r, t, e = 0, n = "", a = arguments.length; e < a; e++) (r = arguments[e]) && (t = Kr(r)) && (n && (n += " "), n += t);
131
- return n;
132
- }
133
- const rn = {};
134
- function tn(r) {
135
- const t = {};
136
- return r.forEach((e) => {
137
- Object.entries(e).forEach(([n, a]) => {
138
- t[n] ? t[n] = B(t[n], a) : t[n] = a;
139
- });
140
- }), t;
141
- }
142
- function wr({ theme: r, classNames: t, props: e, stylesCtx: n }) {
143
- const o = (Array.isArray(t) ? t : [t]).map(
144
- (i) => typeof i == "function" ? i(r, e, n) : i || rn
145
- );
146
- return tn(o);
147
- }
148
- function gr({ theme: r, styles: t, props: e, stylesCtx: n }) {
149
- return (Array.isArray(t) ? t : [t]).reduce((o, i) => typeof i == "function" ? { ...o, ...i(r, e, n) } : { ...o, ...i }, {});
150
- }
151
- const Zr = Dr(null);
152
- function P() {
153
- const r = $r(Zr);
154
- if (!r)
155
- throw new Error("[@mantine/core] MantineProvider was not found in tree");
156
- return r;
157
- }
158
- function nn() {
159
- return P().cssVariablesResolver;
160
- }
161
- function en() {
162
- return P().classNamesPrefix;
163
- }
164
- function Cr() {
165
- return P().getStyleNonce;
166
- }
167
- function on() {
168
- return P().withStaticClasses;
169
- }
170
- function an() {
171
- return P().headless;
172
- }
173
- function sn() {
174
- var r;
175
- return (r = P().stylesTransform) == null ? void 0 : r.sx;
176
- }
177
- function cn() {
178
- var r;
179
- return (r = P().stylesTransform) == null ? void 0 : r.styles;
180
- }
181
- function ln() {
182
- return P().env || "default";
183
- }
184
- function dn(r) {
185
- return /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(r);
186
- }
187
- function fn(r) {
188
- let t = r.replace("#", "");
189
- if (t.length === 3) {
190
- const i = t.split("");
191
- t = [
192
- i[0],
193
- i[0],
194
- i[1],
195
- i[1],
196
- i[2],
197
- i[2]
198
- ].join("");
199
- }
200
- if (t.length === 8) {
201
- const i = parseInt(t.slice(6, 8), 16) / 255;
202
- return {
203
- r: parseInt(t.slice(0, 2), 16),
204
- g: parseInt(t.slice(2, 4), 16),
205
- b: parseInt(t.slice(4, 6), 16),
206
- a: i
207
- };
208
- }
209
- const e = parseInt(t, 16), n = e >> 16 & 255, a = e >> 8 & 255, o = e & 255;
210
- return {
211
- r: n,
212
- g: a,
213
- b: o,
214
- a: 1
215
- };
216
- }
217
- function un(r) {
218
- const [t, e, n, a] = r.replace(/[^0-9,./]/g, "").split(/[/,]/).map(Number);
219
- return { r: t, g: e, b: n, a: a || 1 };
220
- }
221
- function mn(r) {
222
- const t = /^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i, e = r.match(t);
223
- if (!e)
224
- return {
225
- r: 0,
226
- g: 0,
227
- b: 0,
228
- a: 1
229
- };
230
- const n = parseInt(e[1], 10), a = parseInt(e[2], 10) / 100, o = parseInt(e[3], 10) / 100, i = e[5] ? parseFloat(e[5]) : void 0, s = (1 - Math.abs(2 * o - 1)) * a, l = n / 60, d = s * (1 - Math.abs(l % 2 - 1)), u = o - s / 2;
231
- let f, m, g;
232
- return l >= 0 && l < 1 ? (f = s, m = d, g = 0) : l >= 1 && l < 2 ? (f = d, m = s, g = 0) : l >= 2 && l < 3 ? (f = 0, m = s, g = d) : l >= 3 && l < 4 ? (f = 0, m = d, g = s) : l >= 4 && l < 5 ? (f = d, m = 0, g = s) : (f = s, m = 0, g = d), {
233
- r: Math.round((f + u) * 255),
234
- g: Math.round((m + u) * 255),
235
- b: Math.round((g + u) * 255),
236
- a: i || 1
237
- };
238
- }
239
- function xr(r) {
240
- return dn(r) ? fn(r) : r.startsWith("rgb") ? un(r) : r.startsWith("hsl") ? mn(r) : {
241
- r: 0,
242
- g: 0,
243
- b: 0,
244
- a: 1
245
- };
246
- }
247
- function Z(r, t) {
248
- if (r.startsWith("var("))
249
- return `color-mix(in srgb, ${r}, black ${t * 100}%)`;
250
- const { r: e, g: n, b: a, a: o } = xr(r), i = 1 - t, s = (l) => Math.round(l * i);
251
- return `rgba(${s(e)}, ${s(n)}, ${s(a)}, ${o})`;
252
- }
253
- function U(r, t) {
254
- return typeof r.primaryShade == "number" ? r.primaryShade : t === "dark" ? r.primaryShade.dark : r.primaryShade.light;
255
- }
256
- function cr(r) {
257
- return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
258
- }
259
- function pn(r) {
260
- const t = r.match(/oklch\((.*?)%\s/);
261
- return t ? parseFloat(t[1]) : null;
262
- }
263
- function gn(r) {
264
- if (r.startsWith("oklch("))
265
- return (pn(r) || 0) / 100;
266
- const { r: t, g: e, b: n } = xr(r), a = t / 255, o = e / 255, i = n / 255, s = cr(a), l = cr(o), d = cr(i);
267
- return 0.2126 * s + 0.7152 * l + 0.0722 * d;
268
- }
269
- function G(r, t = 0.179) {
270
- return r.startsWith("var(") ? !1 : gn(r) > t;
271
- }
272
- function q({
273
- color: r,
274
- theme: t,
275
- colorScheme: e
276
- }) {
277
- if (typeof r != "string")
278
- throw new Error(
279
- `[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof r}`
280
- );
281
- if (r === "bright")
282
- return {
283
- color: r,
284
- value: e === "dark" ? t.white : t.black,
285
- shade: void 0,
286
- isThemeColor: !1,
287
- isLight: G(
288
- e === "dark" ? t.white : t.black,
289
- t.luminanceThreshold
290
- ),
291
- variable: "--mantine-color-bright"
292
- };
293
- if (r === "dimmed")
294
- return {
295
- color: r,
296
- value: e === "dark" ? t.colors.dark[2] : t.colors.gray[7],
297
- shade: void 0,
298
- isThemeColor: !1,
299
- isLight: G(
300
- e === "dark" ? t.colors.dark[2] : t.colors.gray[6],
301
- t.luminanceThreshold
302
- ),
303
- variable: "--mantine-color-dimmed"
304
- };
305
- if (r === "white" || r === "black")
306
- return {
307
- color: r,
308
- value: r === "white" ? t.white : t.black,
309
- shade: void 0,
310
- isThemeColor: !1,
311
- isLight: G(
312
- r === "white" ? t.white : t.black,
313
- t.luminanceThreshold
314
- ),
315
- variable: `--mantine-color-${r}`
316
- };
317
- const [n, a] = r.split("."), o = a ? Number(a) : void 0, i = n in t.colors;
318
- if (i) {
319
- const s = o !== void 0 ? t.colors[n][o] : t.colors[n][U(t, e || "light")];
320
- return {
321
- color: n,
322
- value: s,
323
- shade: o,
324
- isThemeColor: i,
325
- isLight: G(s, t.luminanceThreshold),
326
- variable: a ? `--mantine-color-${n}-${o}` : `--mantine-color-${n}-filled`
327
- };
328
- }
329
- return {
330
- color: r,
331
- value: r,
332
- isThemeColor: i,
333
- isLight: G(r, t.luminanceThreshold),
334
- shade: o,
335
- variable: void 0
336
- };
337
- }
338
- function yr(r, t) {
339
- const e = q({ color: r || t.primaryColor, theme: t });
340
- return e.variable ? `var(${e.variable})` : r;
341
- }
342
- function Ar(r, t) {
343
- const e = {
344
- from: (r == null ? void 0 : r.from) || t.defaultGradient.from,
345
- to: (r == null ? void 0 : r.to) || t.defaultGradient.to,
346
- deg: (r == null ? void 0 : r.deg) ?? t.defaultGradient.deg ?? 0
347
- }, n = yr(e.from, t), a = yr(e.to, t);
348
- return `linear-gradient(${e.deg}deg, ${n} 0%, ${a} 100%)`;
349
- }
350
- function R(r, t) {
351
- if (typeof r != "string" || t > 1 || t < 0)
352
- return "rgba(0, 0, 0, 1)";
353
- if (r.startsWith("var(")) {
354
- const o = (1 - t) * 100;
355
- return `color-mix(in srgb, ${r}, transparent ${o}%)`;
356
- }
357
- if (r.startsWith("oklch"))
358
- return r.includes("/") ? r.replace(/\/\s*[\d.]+\s*\)/, `/ ${t})`) : r.replace(")", ` / ${t})`);
359
- const { r: e, g: n, b: a } = xr(r);
360
- return `rgba(${e}, ${n}, ${a}, ${t})`;
361
- }
362
- const j = R, yn = ({
363
- color: r,
364
- theme: t,
365
- variant: e,
366
- gradient: n,
367
- autoContrast: a
368
- }) => {
369
- const o = q({ color: r, theme: t }), i = typeof a == "boolean" ? a : t.autoContrast;
370
- if (e === "filled") {
371
- const s = i && o.isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
372
- return o.isThemeColor ? o.shade === void 0 ? {
373
- background: `var(--mantine-color-${r}-filled)`,
374
- hover: `var(--mantine-color-${r}-filled-hover)`,
375
- color: s,
376
- border: `${c(1)} solid transparent`
377
- } : {
378
- background: `var(--mantine-color-${o.color}-${o.shade})`,
379
- hover: `var(--mantine-color-${o.color}-${o.shade === 9 ? 8 : o.shade + 1})`,
380
- color: s,
381
- border: `${c(1)} solid transparent`
382
- } : {
383
- background: r,
384
- hover: Z(r, 0.1),
385
- color: s,
386
- border: `${c(1)} solid transparent`
387
- };
388
- }
389
- if (e === "light") {
390
- if (o.isThemeColor) {
391
- if (o.shade === void 0)
392
- return {
393
- background: `var(--mantine-color-${r}-light)`,
394
- hover: `var(--mantine-color-${r}-light-hover)`,
395
- color: `var(--mantine-color-${r}-light-color)`,
396
- border: `${c(1)} solid transparent`
397
- };
398
- const s = t.colors[o.color][o.shade];
399
- return {
400
- background: R(s, 0.1),
401
- hover: R(s, 0.12),
402
- color: `var(--mantine-color-${o.color}-${Math.min(o.shade, 6)})`,
403
- border: `${c(1)} solid transparent`
404
- };
405
- }
406
- return {
407
- background: R(r, 0.1),
408
- hover: R(r, 0.12),
409
- color: r,
410
- border: `${c(1)} solid transparent`
411
- };
412
- }
413
- if (e === "outline")
414
- return o.isThemeColor ? o.shade === void 0 ? {
415
- background: "transparent",
416
- hover: `var(--mantine-color-${r}-outline-hover)`,
417
- color: `var(--mantine-color-${r}-outline)`,
418
- border: `${c(1)} solid var(--mantine-color-${r}-outline)`
419
- } : {
420
- background: "transparent",
421
- hover: R(t.colors[o.color][o.shade], 0.05),
422
- color: `var(--mantine-color-${o.color}-${o.shade})`,
423
- border: `${c(1)} solid var(--mantine-color-${o.color}-${o.shade})`
424
- } : {
425
- background: "transparent",
426
- hover: R(r, 0.05),
427
- color: r,
428
- border: `${c(1)} solid ${r}`
429
- };
430
- if (e === "subtle") {
431
- if (o.isThemeColor) {
432
- if (o.shade === void 0)
433
- return {
434
- background: "transparent",
435
- hover: `var(--mantine-color-${r}-light-hover)`,
436
- color: `var(--mantine-color-${r}-light-color)`,
437
- border: `${c(1)} solid transparent`
438
- };
439
- const s = t.colors[o.color][o.shade];
440
- return {
441
- background: "transparent",
442
- hover: R(s, 0.12),
443
- color: `var(--mantine-color-${o.color}-${Math.min(o.shade, 6)})`,
444
- border: `${c(1)} solid transparent`
445
- };
446
- }
447
- return {
448
- background: "transparent",
449
- hover: R(r, 0.12),
450
- color: r,
451
- border: `${c(1)} solid transparent`
452
- };
453
- }
454
- return e === "transparent" ? o.isThemeColor ? o.shade === void 0 ? {
455
- background: "transparent",
456
- hover: "transparent",
457
- color: `var(--mantine-color-${r}-light-color)`,
458
- border: `${c(1)} solid transparent`
459
- } : {
460
- background: "transparent",
461
- hover: "transparent",
462
- color: `var(--mantine-color-${o.color}-${Math.min(o.shade, 6)})`,
463
- border: `${c(1)} solid transparent`
464
- } : {
465
- background: "transparent",
466
- hover: "transparent",
467
- color: r,
468
- border: `${c(1)} solid transparent`
469
- } : e === "white" ? o.isThemeColor ? o.shade === void 0 ? {
470
- background: "var(--mantine-color-white)",
471
- hover: Z(t.white, 0.01),
472
- color: `var(--mantine-color-${r}-filled)`,
473
- border: `${c(1)} solid transparent`
474
- } : {
475
- background: "var(--mantine-color-white)",
476
- hover: Z(t.white, 0.01),
477
- color: `var(--mantine-color-${o.color}-${o.shade})`,
478
- border: `${c(1)} solid transparent`
479
- } : {
480
- background: "var(--mantine-color-white)",
481
- hover: Z(t.white, 0.01),
482
- color: r,
483
- border: `${c(1)} solid transparent`
484
- } : e === "gradient" ? {
485
- background: Ar(n, t),
486
- hover: Ar(n, t),
487
- color: "var(--mantine-color-white)",
488
- border: "none"
489
- } : e === "default" ? {
490
- background: "var(--mantine-color-default)",
491
- hover: "var(--mantine-color-default-hover)",
492
- color: "var(--mantine-color-default-color)",
493
- border: `${c(1)} solid var(--mantine-color-default-border)`
494
- } : {};
495
- }, bn = {
496
- dark: [
497
- "#C9C9C9",
498
- "#b8b8b8",
499
- "#828282",
500
- "#696969",
501
- "#424242",
502
- "#3b3b3b",
503
- "#2e2e2e",
504
- "#242424",
505
- "#1f1f1f",
506
- "#141414"
507
- ],
508
- gray: [
509
- "#f8f9fa",
510
- "#f1f3f5",
511
- "#e9ecef",
512
- "#dee2e6",
513
- "#ced4da",
514
- "#adb5bd",
515
- "#868e96",
516
- "#495057",
517
- "#343a40",
518
- "#212529"
519
- ],
520
- red: [
521
- "#fff5f5",
522
- "#ffe3e3",
523
- "#ffc9c9",
524
- "#ffa8a8",
525
- "#ff8787",
526
- "#ff6b6b",
527
- "#fa5252",
528
- "#f03e3e",
529
- "#e03131",
530
- "#c92a2a"
531
- ],
532
- pink: [
533
- "#fff0f6",
534
- "#ffdeeb",
535
- "#fcc2d7",
536
- "#faa2c1",
537
- "#f783ac",
538
- "#f06595",
539
- "#e64980",
540
- "#d6336c",
541
- "#c2255c",
542
- "#a61e4d"
543
- ],
544
- grape: [
545
- "#f8f0fc",
546
- "#f3d9fa",
547
- "#eebefa",
548
- "#e599f7",
549
- "#da77f2",
550
- "#cc5de8",
551
- "#be4bdb",
552
- "#ae3ec9",
553
- "#9c36b5",
554
- "#862e9c"
555
- ],
556
- violet: [
557
- "#f3f0ff",
558
- "#e5dbff",
559
- "#d0bfff",
560
- "#b197fc",
561
- "#9775fa",
562
- "#845ef7",
563
- "#7950f2",
564
- "#7048e8",
565
- "#6741d9",
566
- "#5f3dc4"
567
- ],
568
- indigo: [
569
- "#edf2ff",
570
- "#dbe4ff",
571
- "#bac8ff",
572
- "#91a7ff",
573
- "#748ffc",
574
- "#5c7cfa",
575
- "#4c6ef5",
576
- "#4263eb",
577
- "#3b5bdb",
578
- "#364fc7"
579
- ],
580
- blue: [
581
- "#e7f5ff",
582
- "#d0ebff",
583
- "#a5d8ff",
584
- "#74c0fc",
585
- "#4dabf7",
586
- "#339af0",
587
- "#228be6",
588
- "#1c7ed6",
589
- "#1971c2",
590
- "#1864ab"
591
- ],
592
- cyan: [
593
- "#e3fafc",
594
- "#c5f6fa",
595
- "#99e9f2",
596
- "#66d9e8",
597
- "#3bc9db",
598
- "#22b8cf",
599
- "#15aabf",
600
- "#1098ad",
601
- "#0c8599",
602
- "#0b7285"
603
- ],
604
- teal: [
605
- "#e6fcf5",
606
- "#c3fae8",
607
- "#96f2d7",
608
- "#63e6be",
609
- "#38d9a9",
610
- "#20c997",
611
- "#12b886",
612
- "#0ca678",
613
- "#099268",
614
- "#087f5b"
615
- ],
616
- green: [
617
- "#ebfbee",
618
- "#d3f9d8",
619
- "#b2f2bb",
620
- "#8ce99a",
621
- "#69db7c",
622
- "#51cf66",
623
- "#40c057",
624
- "#37b24d",
625
- "#2f9e44",
626
- "#2b8a3e"
627
- ],
628
- lime: [
629
- "#f4fce3",
630
- "#e9fac8",
631
- "#d8f5a2",
632
- "#c0eb75",
633
- "#a9e34b",
634
- "#94d82d",
635
- "#82c91e",
636
- "#74b816",
637
- "#66a80f",
638
- "#5c940d"
639
- ],
640
- yellow: [
641
- "#fff9db",
642
- "#fff3bf",
643
- "#ffec99",
644
- "#ffe066",
645
- "#ffd43b",
646
- "#fcc419",
647
- "#fab005",
648
- "#f59f00",
649
- "#f08c00",
650
- "#e67700"
651
- ],
652
- orange: [
653
- "#fff4e6",
654
- "#ffe8cc",
655
- "#ffd8a8",
656
- "#ffc078",
657
- "#ffa94d",
658
- "#ff922b",
659
- "#fd7e14",
660
- "#f76707",
661
- "#e8590c",
662
- "#d9480f"
663
- ]
664
- }, Or = "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", kr = {
665
- scale: 1,
666
- fontSmoothing: !0,
667
- focusRing: "auto",
668
- white: "#fff",
669
- black: "#000",
670
- colors: bn,
671
- primaryShade: { light: 6, dark: 8 },
672
- primaryColor: "blue",
673
- variantColorResolver: yn,
674
- autoContrast: !1,
675
- luminanceThreshold: 0.3,
676
- fontFamily: Or,
677
- fontFamilyMonospace: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",
678
- respectReducedMotion: !1,
679
- cursorType: "default",
680
- defaultGradient: { from: "blue", to: "cyan", deg: 45 },
681
- defaultRadius: "sm",
682
- activeClassName: "mantine-active",
683
- focusClassName: "",
684
- headings: {
685
- fontFamily: Or,
686
- fontWeight: "700",
687
- textWrap: "wrap",
688
- sizes: {
689
- h1: { fontSize: c(34), lineHeight: "1.3" },
690
- h2: { fontSize: c(26), lineHeight: "1.35" },
691
- h3: { fontSize: c(22), lineHeight: "1.4" },
692
- h4: { fontSize: c(18), lineHeight: "1.45" },
693
- h5: { fontSize: c(16), lineHeight: "1.5" },
694
- h6: { fontSize: c(14), lineHeight: "1.5" }
695
- }
696
- },
697
- fontSizes: {
698
- xs: c(12),
699
- sm: c(14),
700
- md: c(16),
701
- lg: c(18),
702
- xl: c(20)
703
- },
704
- lineHeights: {
705
- xs: "1.4",
706
- sm: "1.45",
707
- md: "1.55",
708
- lg: "1.6",
709
- xl: "1.65"
710
- },
711
- radius: {
712
- xs: c(2),
713
- sm: c(4),
714
- md: c(8),
715
- lg: c(16),
716
- xl: c(32)
717
- },
718
- spacing: {
719
- xs: c(10),
720
- sm: c(12),
721
- md: c(16),
722
- lg: c(20),
723
- xl: c(32)
724
- },
725
- breakpoints: {
726
- xs: "36em",
727
- sm: "48em",
728
- md: "62em",
729
- lg: "75em",
730
- xl: "88em"
731
- },
732
- shadows: {
733
- xs: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), 0 ${c(1)} ${c(2)} rgba(0, 0, 0, 0.1)`,
734
- sm: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(10)} ${c(
735
- 15
736
- )} ${c(-5)}, rgba(0, 0, 0, 0.04) 0 ${c(7)} ${c(7)} ${c(-5)}`,
737
- md: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(20)} ${c(
738
- 25
739
- )} ${c(-5)}, rgba(0, 0, 0, 0.04) 0 ${c(10)} ${c(10)} ${c(-5)}`,
740
- lg: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(28)} ${c(
741
- 23
742
- )} ${c(-7)}, rgba(0, 0, 0, 0.04) 0 ${c(12)} ${c(12)} ${c(-7)}`,
743
- xl: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(36)} ${c(
744
- 28
745
- )} ${c(-7)}, rgba(0, 0, 0, 0.04) 0 ${c(17)} ${c(17)} ${c(-7)}`
746
- },
747
- other: {},
748
- components: {}
749
- };
750
- function Ir(r) {
751
- return r === "auto" || r === "dark" || r === "light";
752
- }
753
- function hn({
754
- key: r = "mantine-color-scheme-value"
755
- } = {}) {
756
- let t;
757
- return {
758
- get: (e) => {
759
- if (typeof window > "u")
760
- return e;
761
- try {
762
- const n = window.localStorage.getItem(r);
763
- return Ir(n) ? n : e;
764
- } catch {
765
- return e;
766
- }
767
- },
768
- set: (e) => {
769
- try {
770
- window.localStorage.setItem(r, e);
771
- } catch (n) {
772
- console.warn(
773
- "[@mantine/core] Local storage color scheme manager was unable to save color scheme.",
774
- n
775
- );
776
- }
777
- },
778
- subscribe: (e) => {
779
- t = (n) => {
780
- n.storageArea === window.localStorage && n.key === r && Ir(n.newValue) && e(n.newValue);
781
- }, window.addEventListener("storage", t);
782
- },
783
- unsubscribe: () => {
784
- window.removeEventListener("storage", t);
785
- },
786
- clear: () => {
787
- window.localStorage.removeItem(r);
788
- }
789
- };
790
- }
791
- const $n = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color", Br = "[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";
792
- function lr(r) {
793
- return r < 0 || r > 9 ? !1 : parseInt(r.toString(), 10) === r;
794
- }
795
- function Vr(r) {
796
- if (!(r.primaryColor in r.colors))
797
- throw new Error($n);
798
- if (typeof r.primaryShade == "object" && (!lr(r.primaryShade.dark) || !lr(r.primaryShade.light)))
799
- throw new Error(Br);
800
- if (typeof r.primaryShade == "number" && !lr(r.primaryShade))
801
- throw new Error(Br);
802
- }
803
- function vn(r, t) {
804
- var n;
805
- if (!t)
806
- return Vr(r), r;
807
- const e = vr(r, t);
808
- return t.fontFamily && !((n = t.headings) != null && n.fontFamily) && (e.headings.fontFamily = t.fontFamily), Vr(e), e;
809
- }
810
- const Nr = Dr(null), Sn = () => $r(Nr) || kr;
811
- function V() {
812
- const r = $r(Nr);
813
- if (!r)
814
- throw new Error(
815
- "@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app"
816
- );
817
- return r;
818
- }
819
- function Jr({
820
- theme: r,
821
- children: t,
822
- inherit: e = !0
823
- }) {
824
- const n = Sn(), a = zt(
825
- () => vn(e ? n : kr, r),
826
- [r, n, e]
827
- );
828
- return /* @__PURE__ */ p(Nr.Provider, { value: a, children: t });
829
- }
830
- Jr.displayName = "@mantine/core/MantineThemeProvider";
831
- function wn() {
832
- const r = V(), t = Cr(), e = M(r.breakpoints).reduce((n, a) => {
833
- const o = r.breakpoints[a].includes("px"), i = Ut(r.breakpoints[a]), s = o ? `${i - 0.1}px` : Er(i - 0.1), l = o ? `${i}px` : Er(i);
834
- return `${n}@media (max-width: ${s}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${a} {display: none !important;}}`;
835
- }, "");
836
- return /* @__PURE__ */ p(
837
- "style",
838
- {
839
- "data-mantine-styles": "classes",
840
- nonce: t == null ? void 0 : t(),
841
- dangerouslySetInnerHTML: { __html: e }
842
- }
843
- );
844
- }
845
- function dr(r) {
846
- return Object.entries(r).map(([t, e]) => `${t}: ${e};`).join("");
847
- }
848
- function D(r, t) {
849
- return (Array.isArray(r) ? r : [r]).reduce((n, a) => `${a}{${n}}`, t);
850
- }
851
- function Cn(r, t) {
852
- const e = dr(r.variables), n = e ? D(t, e) : "", a = dr(r.dark), o = dr(r.light), i = a ? D(t === ":host" ? `${t}([data-mantine-color-scheme="dark"])` : `${t}[data-mantine-color-scheme="dark"]`, a) : "", s = o ? D(t === ":host" ? `${t}([data-mantine-color-scheme="light"])` : `${t}[data-mantine-color-scheme="light"]`, o) : "";
853
- return `${n}${i}${s}`;
854
- }
855
- function xn({ color: r, theme: t, autoContrast: e }) {
856
- return t.autoContrast && q({ color: r || t.primaryColor, theme: t }).isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
857
- }
858
- function jr(r, t) {
859
- return xn({
860
- color: r.colors[r.primaryColor][U(r, t)],
861
- theme: r,
862
- autoContrast: null
863
- });
864
- }
865
- function J({
866
- theme: r,
867
- color: t,
868
- colorScheme: e,
869
- name: n = t,
870
- withColorValues: a = !0
871
- }) {
872
- if (!r.colors[t])
873
- return {};
874
- if (e === "light") {
875
- const s = U(r, "light"), l = {
876
- [`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-filled)`,
877
- [`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${s})`,
878
- [`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${s === 9 ? 8 : s + 1})`,
879
- [`--mantine-color-${n}-light`]: j(r.colors[t][s], 0.1),
880
- [`--mantine-color-${n}-light-hover`]: j(r.colors[t][s], 0.12),
881
- [`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${s})`,
882
- [`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${s})`,
883
- [`--mantine-color-${n}-outline-hover`]: j(r.colors[t][s], 0.05)
884
- };
885
- return a ? {
886
- [`--mantine-color-${n}-0`]: r.colors[t][0],
887
- [`--mantine-color-${n}-1`]: r.colors[t][1],
888
- [`--mantine-color-${n}-2`]: r.colors[t][2],
889
- [`--mantine-color-${n}-3`]: r.colors[t][3],
890
- [`--mantine-color-${n}-4`]: r.colors[t][4],
891
- [`--mantine-color-${n}-5`]: r.colors[t][5],
892
- [`--mantine-color-${n}-6`]: r.colors[t][6],
893
- [`--mantine-color-${n}-7`]: r.colors[t][7],
894
- [`--mantine-color-${n}-8`]: r.colors[t][8],
895
- [`--mantine-color-${n}-9`]: r.colors[t][9],
896
- ...l
897
- } : l;
898
- }
899
- const o = U(r, "dark"), i = {
900
- [`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-4)`,
901
- [`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${o})`,
902
- [`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${o === 9 ? 8 : o + 1})`,
903
- [`--mantine-color-${n}-light`]: j(
904
- r.colors[t][Math.max(0, o - 2)],
905
- 0.15
906
- ),
907
- [`--mantine-color-${n}-light-hover`]: j(
908
- r.colors[t][Math.max(0, o - 2)],
909
- 0.2
910
- ),
911
- [`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${Math.max(o - 5, 0)})`,
912
- [`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${Math.max(o - 4, 0)})`,
913
- [`--mantine-color-${n}-outline-hover`]: j(
914
- r.colors[t][Math.max(o - 4, 0)],
915
- 0.05
916
- )
917
- };
918
- return a ? {
919
- [`--mantine-color-${n}-0`]: r.colors[t][0],
920
- [`--mantine-color-${n}-1`]: r.colors[t][1],
921
- [`--mantine-color-${n}-2`]: r.colors[t][2],
922
- [`--mantine-color-${n}-3`]: r.colors[t][3],
923
- [`--mantine-color-${n}-4`]: r.colors[t][4],
924
- [`--mantine-color-${n}-5`]: r.colors[t][5],
925
- [`--mantine-color-${n}-6`]: r.colors[t][6],
926
- [`--mantine-color-${n}-7`]: r.colors[t][7],
927
- [`--mantine-color-${n}-8`]: r.colors[t][8],
928
- [`--mantine-color-${n}-9`]: r.colors[t][9],
929
- ...i
930
- } : i;
931
- }
932
- function kn(r) {
933
- return !!r && typeof r == "object" && "mantine-virtual-color" in r;
934
- }
935
- function F(r, t, e) {
936
- M(t).forEach(
937
- (n) => Object.assign(r, { [`--mantine-${e}-${n}`]: t[n] })
938
- );
939
- }
940
- const rt = (r) => {
941
- const t = U(r, "light"), e = r.defaultRadius in r.radius ? r.radius[r.defaultRadius] : c(r.defaultRadius), n = {
942
- variables: {
943
- "--mantine-scale": r.scale.toString(),
944
- "--mantine-cursor-type": r.cursorType,
945
- "--mantine-color-scheme": "light dark",
946
- "--mantine-webkit-font-smoothing": r.fontSmoothing ? "antialiased" : "unset",
947
- "--mantine-moz-font-smoothing": r.fontSmoothing ? "grayscale" : "unset",
948
- "--mantine-color-white": r.white,
949
- "--mantine-color-black": r.black,
950
- "--mantine-line-height": r.lineHeights.md,
951
- "--mantine-font-family": r.fontFamily,
952
- "--mantine-font-family-monospace": r.fontFamilyMonospace,
953
- "--mantine-font-family-headings": r.headings.fontFamily,
954
- "--mantine-heading-font-weight": r.headings.fontWeight,
955
- "--mantine-heading-text-wrap": r.headings.textWrap,
956
- "--mantine-radius-default": e,
957
- // Primary colors
958
- "--mantine-primary-color-filled": `var(--mantine-color-${r.primaryColor}-filled)`,
959
- "--mantine-primary-color-filled-hover": `var(--mantine-color-${r.primaryColor}-filled-hover)`,
960
- "--mantine-primary-color-light": `var(--mantine-color-${r.primaryColor}-light)`,
961
- "--mantine-primary-color-light-hover": `var(--mantine-color-${r.primaryColor}-light-hover)`,
962
- "--mantine-primary-color-light-color": `var(--mantine-color-${r.primaryColor}-light-color)`
963
- },
964
- light: {
965
- "--mantine-primary-color-contrast": jr(r, "light"),
966
- "--mantine-color-bright": "var(--mantine-color-black)",
967
- "--mantine-color-text": r.black,
968
- "--mantine-color-body": r.white,
969
- "--mantine-color-error": "var(--mantine-color-red-6)",
970
- "--mantine-color-placeholder": "var(--mantine-color-gray-5)",
971
- "--mantine-color-anchor": `var(--mantine-color-${r.primaryColor}-${t})`,
972
- "--mantine-color-default": "var(--mantine-color-white)",
973
- "--mantine-color-default-hover": "var(--mantine-color-gray-0)",
974
- "--mantine-color-default-color": "var(--mantine-color-black)",
975
- "--mantine-color-default-border": "var(--mantine-color-gray-4)",
976
- "--mantine-color-dimmed": "var(--mantine-color-gray-6)"
977
- },
978
- dark: {
979
- "--mantine-primary-color-contrast": jr(r, "dark"),
980
- "--mantine-color-bright": "var(--mantine-color-white)",
981
- "--mantine-color-text": "var(--mantine-color-dark-0)",
982
- "--mantine-color-body": "var(--mantine-color-dark-7)",
983
- "--mantine-color-error": "var(--mantine-color-red-8)",
984
- "--mantine-color-placeholder": "var(--mantine-color-dark-3)",
985
- "--mantine-color-anchor": `var(--mantine-color-${r.primaryColor}-4)`,
986
- "--mantine-color-default": "var(--mantine-color-dark-6)",
987
- "--mantine-color-default-hover": "var(--mantine-color-dark-5)",
988
- "--mantine-color-default-color": "var(--mantine-color-white)",
989
- "--mantine-color-default-border": "var(--mantine-color-dark-4)",
990
- "--mantine-color-dimmed": "var(--mantine-color-dark-2)"
991
- }
992
- };
993
- F(n.variables, r.breakpoints, "breakpoint"), F(n.variables, r.spacing, "spacing"), F(n.variables, r.fontSizes, "font-size"), F(n.variables, r.lineHeights, "line-height"), F(n.variables, r.shadows, "shadow"), F(n.variables, r.radius, "radius"), r.colors[r.primaryColor].forEach((o, i) => {
994
- n.variables[`--mantine-primary-color-${i}`] = `var(--mantine-color-${r.primaryColor}-${i})`;
995
- }), M(r.colors).forEach((o) => {
996
- const i = r.colors[o];
997
- if (kn(i)) {
998
- Object.assign(
999
- n.light,
1000
- J({
1001
- theme: r,
1002
- name: i.name,
1003
- color: i.light,
1004
- colorScheme: "light",
1005
- withColorValues: !0
1006
- })
1007
- ), Object.assign(
1008
- n.dark,
1009
- J({
1010
- theme: r,
1011
- name: i.name,
1012
- color: i.dark,
1013
- colorScheme: "dark",
1014
- withColorValues: !0
1015
- })
1016
- );
1017
- return;
1018
- }
1019
- i.forEach((s, l) => {
1020
- n.variables[`--mantine-color-${o}-${l}`] = s;
1021
- }), Object.assign(
1022
- n.light,
1023
- J({
1024
- theme: r,
1025
- color: o,
1026
- colorScheme: "light",
1027
- withColorValues: !1
1028
- })
1029
- ), Object.assign(
1030
- n.dark,
1031
- J({
1032
- theme: r,
1033
- color: o,
1034
- colorScheme: "dark",
1035
- withColorValues: !1
1036
- })
1037
- );
1038
- });
1039
- const a = r.headings.sizes;
1040
- return M(a).forEach((o) => {
1041
- n.variables[`--mantine-${o}-font-size`] = a[o].fontSize, n.variables[`--mantine-${o}-line-height`] = a[o].lineHeight, n.variables[`--mantine-${o}-font-weight`] = a[o].fontWeight || r.headings.fontWeight;
1042
- }), n;
1043
- };
1044
- function Nn({ theme: r, generator: t }) {
1045
- const e = rt(r), n = t == null ? void 0 : t(r);
1046
- return n ? vr(e, n) : e;
1047
- }
1048
- const fr = rt(kr);
1049
- function Tn(r) {
1050
- const t = {
1051
- variables: {},
1052
- light: {},
1053
- dark: {}
1054
- };
1055
- return M(r.variables).forEach((e) => {
1056
- fr.variables[e] !== r.variables[e] && (t.variables[e] = r.variables[e]);
1057
- }), M(r.light).forEach((e) => {
1058
- fr.light[e] !== r.light[e] && (t.light[e] = r.light[e]);
1059
- }), M(r.dark).forEach((e) => {
1060
- fr.dark[e] !== r.dark[e] && (t.dark[e] = r.dark[e]);
1061
- }), t;
1062
- }
1063
- function Mn(r) {
1064
- return `
1065
- ${r}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
1066
- ${r}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
1067
- `;
1068
- }
1069
- function tt({
1070
- cssVariablesSelector: r,
1071
- deduplicateCssVariables: t
1072
- }) {
1073
- const e = V(), n = Cr(), a = nn(), o = Nn({ theme: e, generator: a }), i = r === ":root" && t, s = i ? Tn(o) : o, l = Cn(s, r);
1074
- return l ? /* @__PURE__ */ p(
1075
- "style",
1076
- {
1077
- "data-mantine-styles": !0,
1078
- nonce: n == null ? void 0 : n(),
1079
- dangerouslySetInnerHTML: {
1080
- __html: `${l}${i ? "" : Mn(r)}`
1081
- }
1082
- }
1083
- ) : null;
1084
- }
1085
- tt.displayName = "@mantine/CssVariables";
1086
- function Rn() {
1087
- const r = console.error;
1088
- console.error = (...t) => {
1089
- t.length > 1 && typeof t[0] == "string" && t[0].toLowerCase().includes("extra attributes from the server") && typeof t[1] == "string" && t[1].toLowerCase().includes("data-mantine-color-scheme") || r(...t);
1090
- };
1091
- }
1092
- function H(r, t) {
1093
- var a, o;
1094
- const e = typeof window < "u" && "matchMedia" in window && ((a = window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : a.matches), n = r !== "auto" ? r : e ? "dark" : "light";
1095
- (o = t()) == null || o.setAttribute("data-mantine-color-scheme", n);
1096
- }
1097
- function _n({
1098
- manager: r,
1099
- defaultColorScheme: t,
1100
- getRootElement: e,
1101
- forceColorScheme: n
1102
- }) {
1103
- const a = W(null), [o, i] = tr(() => r.get(t)), s = n || o, l = Lr(
1104
- (u) => {
1105
- n || (H(u, e), i(u), r.set(u));
1106
- },
1107
- [r.set, s, n]
1108
- ), d = Lr(() => {
1109
- i(t), H(t, e), r.clear();
1110
- }, [r.clear, t]);
1111
- return A(() => (r.subscribe(l), r.unsubscribe), [r.subscribe, r.unsubscribe]), Qr(() => {
1112
- H(r.get(t), e);
1113
- }, []), A(() => {
1114
- var f;
1115
- if (n)
1116
- return H(n, e), () => {
1117
- };
1118
- n === void 0 && H(o, e), typeof window < "u" && "matchMedia" in window && (a.current = window.matchMedia("(prefers-color-scheme: dark)"));
1119
- const u = (m) => {
1120
- o === "auto" && H(m.matches ? "dark" : "light", e);
1121
- };
1122
- return (f = a.current) == null || f.addEventListener("change", u), () => {
1123
- var m;
1124
- return (m = a.current) == null ? void 0 : m.removeEventListener("change", u);
1125
- };
1126
- }, [o, n]), { colorScheme: s, setColorScheme: l, clearColorScheme: d };
1127
- }
1128
- function Pn({
1129
- respectReducedMotion: r,
1130
- getRootElement: t
1131
- }) {
1132
- Qr(() => {
1133
- var e;
1134
- r && ((e = t()) == null || e.setAttribute("data-respect-reduced-motion", "true"));
1135
- }, [r]);
1136
- }
1137
- Rn();
1138
- function nt({
1139
- theme: r,
1140
- children: t,
1141
- getStyleNonce: e,
1142
- withStaticClasses: n = !0,
1143
- withGlobalClasses: a = !0,
1144
- deduplicateCssVariables: o = !0,
1145
- withCssVariables: i = !0,
1146
- cssVariablesSelector: s = ":root",
1147
- classNamesPrefix: l = "mantine",
1148
- colorSchemeManager: d = hn(),
1149
- defaultColorScheme: u = "light",
1150
- getRootElement: f = () => document.documentElement,
1151
- cssVariablesResolver: m,
1152
- forceColorScheme: g,
1153
- stylesTransform: y,
1154
- env: $
1155
- }) {
1156
- const { colorScheme: h, setColorScheme: C, clearColorScheme: x } = _n({
1157
- defaultColorScheme: u,
1158
- forceColorScheme: g,
1159
- manager: d,
1160
- getRootElement: f
1161
- });
1162
- return Pn({
1163
- respectReducedMotion: (r == null ? void 0 : r.respectReducedMotion) || !1,
1164
- getRootElement: f
1165
- }), /* @__PURE__ */ p(
1166
- Zr.Provider,
1167
- {
1168
- value: {
1169
- colorScheme: h,
1170
- setColorScheme: C,
1171
- clearColorScheme: x,
1172
- getRootElement: f,
1173
- classNamesPrefix: l,
1174
- getStyleNonce: e,
1175
- cssVariablesResolver: m,
1176
- cssVariablesSelector: s,
1177
- withStaticClasses: n,
1178
- stylesTransform: y,
1179
- env: $
1180
- },
1181
- children: /* @__PURE__ */ z(Jr, { theme: r, children: [
1182
- i && /* @__PURE__ */ p(
1183
- tt,
1184
- {
1185
- cssVariablesSelector: s,
1186
- deduplicateCssVariables: o
1187
- }
1188
- ),
1189
- a && /* @__PURE__ */ p(wn, {}),
1190
- t
1191
- ] })
1192
- }
1193
- );
1194
- }
1195
- nt.displayName = "@mantine/core/MantineProvider";
1196
- const Ln = {
1197
- always: "mantine-focus-always",
1198
- auto: "mantine-focus-auto",
1199
- never: "mantine-focus-never"
1200
- };
1201
- function En({ theme: r, options: t, unstyled: e }) {
1202
- return B(
1203
- (t == null ? void 0 : t.focusable) && !e && (r.focusClassName || Ln[r.focusRing]),
1204
- (t == null ? void 0 : t.active) && !e && r.activeClassName
1205
- );
1206
- }
1207
- function An({
1208
- selector: r,
1209
- stylesCtx: t,
1210
- options: e,
1211
- props: n,
1212
- theme: a
1213
- }) {
1214
- return wr({
1215
- theme: a,
1216
- classNames: e == null ? void 0 : e.classNames,
1217
- props: (e == null ? void 0 : e.props) || n,
1218
- stylesCtx: t
1219
- })[r];
1220
- }
1221
- function Fr({
1222
- selector: r,
1223
- stylesCtx: t,
1224
- theme: e,
1225
- classNames: n,
1226
- props: a
1227
- }) {
1228
- return wr({ theme: e, classNames: n, props: a, stylesCtx: t })[r];
1229
- }
1230
- function On({ rootSelector: r, selector: t, className: e }) {
1231
- return r === t ? e : void 0;
1232
- }
1233
- function In({ selector: r, classes: t, unstyled: e }) {
1234
- return e ? void 0 : t[r];
1235
- }
1236
- function Bn({
1237
- themeName: r,
1238
- classNamesPrefix: t,
1239
- selector: e,
1240
- withStaticClass: n
1241
- }) {
1242
- return n === !1 ? [] : r.map((a) => `${t}-${a}-${e}`);
1243
- }
1244
- function Vn({
1245
- themeName: r,
1246
- theme: t,
1247
- selector: e,
1248
- props: n,
1249
- stylesCtx: a
1250
- }) {
1251
- return r.map(
1252
- (o) => {
1253
- var i, s;
1254
- return (s = wr({
1255
- theme: t,
1256
- classNames: (i = t.components[o]) == null ? void 0 : i.classNames,
1257
- props: n,
1258
- stylesCtx: a
1259
- })) == null ? void 0 : s[e];
1260
- }
1261
- );
1262
- }
1263
- function jn({
1264
- options: r,
1265
- classes: t,
1266
- selector: e,
1267
- unstyled: n
1268
- }) {
1269
- return r != null && r.variant && !n ? t[`${e}--${r.variant}`] : void 0;
1270
- }
1271
- function Fn({
1272
- theme: r,
1273
- options: t,
1274
- themeName: e,
1275
- selector: n,
1276
- classNamesPrefix: a,
1277
- classNames: o,
1278
- classes: i,
1279
- unstyled: s,
1280
- className: l,
1281
- rootSelector: d,
1282
- props: u,
1283
- stylesCtx: f,
1284
- withStaticClasses: m,
1285
- headless: g,
1286
- transformedStyles: y
1287
- }) {
1288
- return B(
1289
- En({ theme: r, options: t, unstyled: s || g }),
1290
- Vn({ theme: r, themeName: e, selector: n, props: u, stylesCtx: f }),
1291
- jn({ options: t, classes: i, selector: n, unstyled: s }),
1292
- Fr({ selector: n, stylesCtx: f, theme: r, classNames: o, props: u }),
1293
- Fr({ selector: n, stylesCtx: f, theme: r, classNames: y, props: u }),
1294
- An({ selector: n, stylesCtx: f, options: t, props: u, theme: r }),
1295
- On({ rootSelector: d, selector: n, className: l }),
1296
- In({ selector: n, classes: i, unstyled: s || g }),
1297
- m && !g && Bn({
1298
- themeName: e,
1299
- classNamesPrefix: a,
1300
- selector: n,
1301
- withStaticClass: t == null ? void 0 : t.withStaticClass
1302
- }),
1303
- t == null ? void 0 : t.className
1304
- );
1305
- }
1306
- function Hn({
1307
- theme: r,
1308
- themeName: t,
1309
- props: e,
1310
- stylesCtx: n,
1311
- selector: a
1312
- }) {
1313
- return t.map(
1314
- (o) => {
1315
- var i;
1316
- return gr({
1317
- theme: r,
1318
- styles: (i = r.components[o]) == null ? void 0 : i.styles,
1319
- props: e,
1320
- stylesCtx: n
1321
- })[a];
1322
- }
1323
- ).reduce((o, i) => ({ ...o, ...i }), {});
1324
- }
1325
- function br({ style: r, theme: t }) {
1326
- return Array.isArray(r) ? [...r].reduce(
1327
- (e, n) => ({ ...e, ...br({ style: n, theme: t }) }),
1328
- {}
1329
- ) : typeof r == "function" ? r(t) : r ?? {};
1330
- }
1331
- function Wn(r) {
1332
- return r.reduce((t, e) => (e && Object.keys(e).forEach((n) => {
1333
- t[n] = { ...t[n], ...Sr(e[n]) };
1334
- }), t), {});
1335
- }
1336
- function zn({
1337
- vars: r,
1338
- varsResolver: t,
1339
- theme: e,
1340
- props: n,
1341
- stylesCtx: a,
1342
- selector: o,
1343
- themeName: i,
1344
- headless: s
1345
- }) {
1346
- var l;
1347
- return (l = Wn([
1348
- s ? {} : t == null ? void 0 : t(e, n, a),
1349
- ...i.map((d) => {
1350
- var u, f, m;
1351
- return (m = (f = (u = e.components) == null ? void 0 : u[d]) == null ? void 0 : f.vars) == null ? void 0 : m.call(f, e, n, a);
1352
- }),
1353
- r == null ? void 0 : r(e, n, a)
1354
- ])) == null ? void 0 : l[o];
1355
- }
1356
- function Yn({
1357
- theme: r,
1358
- themeName: t,
1359
- selector: e,
1360
- options: n,
1361
- props: a,
1362
- stylesCtx: o,
1363
- rootSelector: i,
1364
- styles: s,
1365
- style: l,
1366
- vars: d,
1367
- varsResolver: u,
1368
- headless: f,
1369
- withStylesTransform: m
1370
- }) {
1371
- return {
1372
- ...!m && Hn({ theme: r, themeName: t, props: a, stylesCtx: o, selector: e }),
1373
- ...!m && gr({ theme: r, styles: s, props: a, stylesCtx: o })[e],
1374
- ...!m && gr({ theme: r, styles: n == null ? void 0 : n.styles, props: (n == null ? void 0 : n.props) || a, stylesCtx: o })[e],
1375
- ...zn({ theme: r, props: a, stylesCtx: o, vars: d, varsResolver: u, selector: e, themeName: t, headless: f }),
1376
- ...i === e ? br({ style: l, theme: r }) : null,
1377
- ...br({ style: n == null ? void 0 : n.style, theme: r })
1378
- };
1379
- }
1380
- function Gn({ props: r, stylesCtx: t, themeName: e }) {
1381
- var i;
1382
- const n = V(), a = (i = cn()) == null ? void 0 : i();
1383
- return {
1384
- getTransformedStyles: (s) => a ? [
1385
- ...s.map(
1386
- (d) => a(d, { props: r, theme: n, ctx: t })
1387
- ),
1388
- ...e.map(
1389
- (d) => {
1390
- var u;
1391
- return a((u = n.components[d]) == null ? void 0 : u.styles, { props: r, theme: n, ctx: t });
1392
- }
1393
- )
1394
- ].filter(Boolean) : [],
1395
- withStylesTransform: !!a
1396
- };
1397
- }
1398
- function Q({
1399
- name: r,
1400
- classes: t,
1401
- props: e,
1402
- stylesCtx: n,
1403
- className: a,
1404
- style: o,
1405
- rootSelector: i = "root",
1406
- unstyled: s,
1407
- classNames: l,
1408
- styles: d,
1409
- vars: u,
1410
- varsResolver: f
1411
- }) {
1412
- const m = V(), g = en(), y = on(), $ = an(), h = (Array.isArray(r) ? r : [r]).filter((v) => v), { withStylesTransform: C, getTransformedStyles: x } = Gn({
1413
- props: e,
1414
- stylesCtx: n,
1415
- themeName: h
1416
- });
1417
- return (v, w) => ({
1418
- className: Fn({
1419
- theme: m,
1420
- options: w,
1421
- themeName: h,
1422
- selector: v,
1423
- classNamesPrefix: g,
1424
- classNames: l,
1425
- classes: t,
1426
- unstyled: s,
1427
- className: a,
1428
- rootSelector: i,
1429
- props: e,
1430
- stylesCtx: n,
1431
- withStaticClasses: y,
1432
- headless: $,
1433
- transformedStyles: x([w == null ? void 0 : w.styles, d])
1434
- }),
1435
- style: Yn({
1436
- theme: m,
1437
- themeName: h,
1438
- selector: v,
1439
- options: w,
1440
- props: e,
1441
- stylesCtx: n,
1442
- rootSelector: i,
1443
- styles: d,
1444
- style: o,
1445
- vars: u,
1446
- varsResolver: f,
1447
- headless: $,
1448
- withStylesTransform: C
1449
- })
1450
- });
1451
- }
1452
- const Dn = ({
1453
- defaultColorScheme: r,
1454
- localStorageKey: t,
1455
- forceColorScheme: e
1456
- }) => e ? `document.documentElement.setAttribute("data-mantine-color-scheme", '${e}');` : `try {
1457
- var _colorScheme = window.localStorage.getItem("${t}");
1458
- var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${r}";
1
+ import { MantineProvider as s } from "./components/MainProvider/MantineProvider.js";
2
+ import { Button as S } from "./components/Button/Button.js";
3
+ import { jsx as m } from "react/jsx-runtime";
4
+ const a = ({
5
+ defaultColorScheme: e,
6
+ localStorageKey: o,
7
+ forceColorScheme: t
8
+ }) => t ? `document.documentElement.setAttribute("data-mantine-color-scheme", '${t}');` : `try {
9
+ var _colorScheme = window.localStorage.getItem("${o}");
10
+ var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${e}";
1459
11
  var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1460
12
  document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
1461
13
  } catch (e) {}
1462
14
  `;
1463
- function _e({
1464
- defaultColorScheme: r = "light",
1465
- localStorageKey: t = "mantine-color-scheme-value",
1466
- forceColorScheme: e,
1467
- ...n
1468
- }) {
1469
- const a = ["light", "dark", "auto"].includes(r) ? r : "light";
1470
- return /* @__PURE__ */ p(
15
+ function l({
16
+ defaultColorScheme: e = "light",
17
+ localStorageKey: o = "mantine-color-scheme-value",
18
+ forceColorScheme: t,
19
+ ...r
20
+ }) {
21
+ const c = ["light", "dark", "auto"].includes(e) ? e : "light";
22
+ return /* @__PURE__ */ m(
1471
23
  "script",
1472
24
  {
1473
- ...n,
25
+ ...r,
1474
26
  "data-mantine-script": !0,
1475
27
  dangerouslySetInnerHTML: {
1476
- __html: Dn({
1477
- defaultColorScheme: a,
1478
- localStorageKey: t,
1479
- forceColorScheme: e
28
+ __html: a({
29
+ defaultColorScheme: c,
30
+ localStorageKey: o,
31
+ forceColorScheme: t
1480
32
  })
1481
33
  }
1482
34
  }
1483
35
  );
1484
36
  }
1485
- function I(r, t, e) {
1486
- var i;
1487
- const n = V(), a = (i = n.components[r]) == null ? void 0 : i.defaultProps, o = typeof a == "function" ? a(n) : a;
1488
- return { ...t, ...o, ...Sr(e) };
1489
- }
1490
- const Pe = {
37
+ const i = {
1491
38
  suppressHydrationWarning: !0,
1492
39
  "data-mantine-color-scheme": "light"
1493
40
  };
1494
- function ur(r) {
1495
- return M(r).reduce(
1496
- (t, e) => r[e] !== void 0 ? `${t}${Dt(e)}:${r[e]};` : t,
1497
- ""
1498
- ).trim();
1499
- }
1500
- function Xn({ selector: r, styles: t, media: e, container: n }) {
1501
- const a = t ? ur(t) : "", o = Array.isArray(e) ? e.map((s) => `@media${s.query}{${r}{${ur(s.styles)}}}`) : [], i = Array.isArray(n) ? n.map(
1502
- (s) => `@container ${s.query}{${r}{${ur(s.styles)}}}`
1503
- ) : [];
1504
- return `${a ? `${r}{${a}}` : ""}${o.join("")}${i.join("")}`.trim();
1505
- }
1506
- function Un(r) {
1507
- const t = Cr();
1508
- return /* @__PURE__ */ p(
1509
- "style",
1510
- {
1511
- "data-mantine-styles": "inline",
1512
- nonce: t == null ? void 0 : t(),
1513
- dangerouslySetInnerHTML: { __html: Xn(r) }
1514
- }
1515
- );
1516
- }
1517
- function qn(r) {
1518
- const {
1519
- m: t,
1520
- mx: e,
1521
- my: n,
1522
- mt: a,
1523
- mb: o,
1524
- ml: i,
1525
- mr: s,
1526
- me: l,
1527
- ms: d,
1528
- p: u,
1529
- px: f,
1530
- py: m,
1531
- pt: g,
1532
- pb: y,
1533
- pl: $,
1534
- pr: h,
1535
- pe: C,
1536
- ps: x,
1537
- bd: v,
1538
- bg: w,
1539
- c: L,
1540
- opacity: b,
1541
- ff: k,
1542
- fz: S,
1543
- fw: E,
1544
- lts: or,
1545
- ta: ar,
1546
- lh: pt,
1547
- fs: gt,
1548
- tt: yt,
1549
- td: bt,
1550
- w: ht,
1551
- miw: $t,
1552
- maw: vt,
1553
- h: St,
1554
- mih: wt,
1555
- mah: Ct,
1556
- bgsz: xt,
1557
- bgp: kt,
1558
- bgr: Nt,
1559
- bga: Tt,
1560
- pos: Mt,
1561
- top: Rt,
1562
- left: _t,
1563
- bottom: Pt,
1564
- right: Lt,
1565
- inset: Et,
1566
- display: At,
1567
- flex: Ot,
1568
- hiddenFrom: It,
1569
- visibleFrom: Bt,
1570
- lightHidden: Vt,
1571
- darkHidden: jt,
1572
- sx: Ft,
1573
- ...Ht
1574
- } = r;
1575
- return { styleProps: Sr({
1576
- m: t,
1577
- mx: e,
1578
- my: n,
1579
- mt: a,
1580
- mb: o,
1581
- ml: i,
1582
- mr: s,
1583
- me: l,
1584
- ms: d,
1585
- p: u,
1586
- px: f,
1587
- py: m,
1588
- pt: g,
1589
- pb: y,
1590
- pl: $,
1591
- pr: h,
1592
- pe: C,
1593
- ps: x,
1594
- bd: v,
1595
- bg: w,
1596
- c: L,
1597
- opacity: b,
1598
- ff: k,
1599
- fz: S,
1600
- fw: E,
1601
- lts: or,
1602
- ta: ar,
1603
- lh: pt,
1604
- fs: gt,
1605
- tt: yt,
1606
- td: bt,
1607
- w: ht,
1608
- miw: $t,
1609
- maw: vt,
1610
- h: St,
1611
- mih: wt,
1612
- mah: Ct,
1613
- bgsz: xt,
1614
- bgp: kt,
1615
- bgr: Nt,
1616
- bga: Tt,
1617
- pos: Mt,
1618
- top: Rt,
1619
- left: _t,
1620
- bottom: Pt,
1621
- right: Lt,
1622
- inset: Et,
1623
- display: At,
1624
- flex: Ot,
1625
- hiddenFrom: It,
1626
- visibleFrom: Bt,
1627
- lightHidden: Vt,
1628
- darkHidden: jt,
1629
- sx: Ft
1630
- }), rest: Ht };
1631
- }
1632
- const Qn = {
1633
- m: { type: "spacing", property: "margin" },
1634
- mt: { type: "spacing", property: "marginTop" },
1635
- mb: { type: "spacing", property: "marginBottom" },
1636
- ml: { type: "spacing", property: "marginLeft" },
1637
- mr: { type: "spacing", property: "marginRight" },
1638
- ms: { type: "spacing", property: "marginInlineStart" },
1639
- me: { type: "spacing", property: "marginInlineEnd" },
1640
- mx: { type: "spacing", property: "marginInline" },
1641
- my: { type: "spacing", property: "marginBlock" },
1642
- p: { type: "spacing", property: "padding" },
1643
- pt: { type: "spacing", property: "paddingTop" },
1644
- pb: { type: "spacing", property: "paddingBottom" },
1645
- pl: { type: "spacing", property: "paddingLeft" },
1646
- pr: { type: "spacing", property: "paddingRight" },
1647
- ps: { type: "spacing", property: "paddingInlineStart" },
1648
- pe: { type: "spacing", property: "paddingInlineEnd" },
1649
- px: { type: "spacing", property: "paddingInline" },
1650
- py: { type: "spacing", property: "paddingBlock" },
1651
- bd: { type: "border", property: "border" },
1652
- bg: { type: "color", property: "background" },
1653
- c: { type: "textColor", property: "color" },
1654
- opacity: { type: "identity", property: "opacity" },
1655
- ff: { type: "fontFamily", property: "fontFamily" },
1656
- fz: { type: "fontSize", property: "fontSize" },
1657
- fw: { type: "identity", property: "fontWeight" },
1658
- lts: { type: "size", property: "letterSpacing" },
1659
- ta: { type: "identity", property: "textAlign" },
1660
- lh: { type: "lineHeight", property: "lineHeight" },
1661
- fs: { type: "identity", property: "fontStyle" },
1662
- tt: { type: "identity", property: "textTransform" },
1663
- td: { type: "identity", property: "textDecoration" },
1664
- w: { type: "spacing", property: "width" },
1665
- miw: { type: "spacing", property: "minWidth" },
1666
- maw: { type: "spacing", property: "maxWidth" },
1667
- h: { type: "spacing", property: "height" },
1668
- mih: { type: "spacing", property: "minHeight" },
1669
- mah: { type: "spacing", property: "maxHeight" },
1670
- bgsz: { type: "size", property: "backgroundSize" },
1671
- bgp: { type: "identity", property: "backgroundPosition" },
1672
- bgr: { type: "identity", property: "backgroundRepeat" },
1673
- bga: { type: "identity", property: "backgroundAttachment" },
1674
- pos: { type: "identity", property: "position" },
1675
- top: { type: "size", property: "top" },
1676
- left: { type: "size", property: "left" },
1677
- bottom: { type: "size", property: "bottom" },
1678
- right: { type: "size", property: "right" },
1679
- inset: { type: "size", property: "inset" },
1680
- display: { type: "identity", property: "display" },
1681
- flex: { type: "identity", property: "flex" }
1682
- };
1683
- function Tr(r, t) {
1684
- const e = q({ color: r, theme: t });
1685
- return e.color === "dimmed" ? "var(--mantine-color-dimmed)" : e.color === "bright" ? "var(--mantine-color-bright)" : e.variable ? `var(${e.variable})` : e.color;
1686
- }
1687
- function Kn(r, t) {
1688
- const e = q({ color: r, theme: t });
1689
- return e.isThemeColor && e.shade === void 0 ? `var(--mantine-color-${e.color}-text)` : Tr(r, t);
1690
- }
1691
- function Zn(r, t) {
1692
- if (typeof r == "number")
1693
- return c(r);
1694
- if (typeof r == "string") {
1695
- const [e, n, ...a] = r.split(" ").filter((i) => i.trim() !== "");
1696
- let o = `${c(e)}`;
1697
- return n && (o += ` ${n}`), a.length > 0 && (o += ` ${Tr(a.join(" "), t)}`), o.trim();
1698
- }
1699
- return r;
1700
- }
1701
- const Hr = {
1702
- text: "var(--mantine-font-family)",
1703
- mono: "var(--mantine-font-family-monospace)",
1704
- monospace: "var(--mantine-font-family-monospace)",
1705
- heading: "var(--mantine-font-family-headings)",
1706
- headings: "var(--mantine-font-family-headings)"
1707
- };
1708
- function Jn(r) {
1709
- return typeof r == "string" && r in Hr ? Hr[r] : r;
1710
- }
1711
- const re = ["h1", "h2", "h3", "h4", "h5", "h6"];
1712
- function te(r, t) {
1713
- return typeof r == "string" && r in t.fontSizes ? `var(--mantine-font-size-${r})` : typeof r == "string" && re.includes(r) ? `var(--mantine-${r}-font-size)` : typeof r == "number" || typeof r == "string" ? c(r) : r;
1714
- }
1715
- function ne(r) {
1716
- return r;
1717
- }
1718
- const ee = ["h1", "h2", "h3", "h4", "h5", "h6"];
1719
- function oe(r, t) {
1720
- return typeof r == "string" && r in t.lineHeights ? `var(--mantine-line-height-${r})` : typeof r == "string" && ee.includes(r) ? `var(--mantine-${r}-line-height)` : r;
1721
- }
1722
- function ae(r) {
1723
- return typeof r == "number" ? c(r) : r;
1724
- }
1725
- function ie(r, t) {
1726
- if (typeof r == "number")
1727
- return c(r);
1728
- if (typeof r == "string") {
1729
- const e = r.replace("-", "");
1730
- if (!(e in t.spacing))
1731
- return c(r);
1732
- const n = `--mantine-spacing-${e}`;
1733
- return r.startsWith("-") ? `calc(var(${n}) * -1)` : `var(${n})`;
1734
- }
1735
- return r;
1736
- }
1737
- const mr = {
1738
- color: Tr,
1739
- textColor: Kn,
1740
- fontSize: te,
1741
- spacing: ie,
1742
- identity: ne,
1743
- size: ae,
1744
- lineHeight: oe,
1745
- fontFamily: Jn,
1746
- border: Zn
1747
- };
1748
- function Wr(r) {
1749
- return r.replace("(min-width: ", "").replace("em)", "");
1750
- }
1751
- function se({
1752
- media: r,
1753
- ...t
1754
- }) {
1755
- const n = Object.keys(r).sort((a, o) => Number(Wr(a)) - Number(Wr(o))).map((a) => ({ query: a, styles: r[a] }));
1756
- return { ...t, media: n };
1757
- }
1758
- function ce(r) {
1759
- if (typeof r != "object" || r === null)
1760
- return !1;
1761
- const t = Object.keys(r);
1762
- return !(t.length === 1 && t[0] === "base");
1763
- }
1764
- function le(r) {
1765
- return typeof r == "object" && r !== null ? "base" in r ? r.base : void 0 : r;
1766
- }
1767
- function de(r) {
1768
- return typeof r == "object" && r !== null ? M(r).filter((t) => t !== "base") : [];
1769
- }
1770
- function fe(r, t) {
1771
- return typeof r == "object" && r !== null && t in r ? r[t] : r;
1772
- }
1773
- function ue({
1774
- styleProps: r,
1775
- data: t,
1776
- theme: e
1777
- }) {
1778
- return se(
1779
- M(r).reduce(
1780
- (n, a) => {
1781
- if (a === "hiddenFrom" || a === "visibleFrom" || a === "sx")
1782
- return n;
1783
- const o = t[a], i = Array.isArray(o.property) ? o.property : [o.property], s = le(r[a]);
1784
- if (!ce(r[a]))
1785
- return i.forEach((d) => {
1786
- n.inlineStyles[d] = mr[o.type](s, e);
1787
- }), n;
1788
- n.hasResponsiveStyles = !0;
1789
- const l = de(r[a]);
1790
- return i.forEach((d) => {
1791
- s && (n.styles[d] = mr[o.type](s, e)), l.forEach((u) => {
1792
- const f = `(min-width: ${e.breakpoints[u]})`;
1793
- n.media[f] = {
1794
- ...n.media[f],
1795
- [d]: mr[o.type](
1796
- fe(r[a], u),
1797
- e
1798
- )
1799
- };
1800
- });
1801
- }), n;
1802
- },
1803
- {
1804
- hasResponsiveStyles: !1,
1805
- styles: {},
1806
- inlineStyles: {},
1807
- media: {}
1808
- }
1809
- )
1810
- );
1811
- }
1812
- function me() {
1813
- return `__m__-${Yt().replace(/:/g, "")}`;
1814
- }
1815
- function et(r) {
1816
- return r.startsWith("data-") ? r : `data-${r}`;
1817
- }
1818
- function pe(r) {
1819
- return Object.keys(r).reduce((t, e) => {
1820
- const n = r[e];
1821
- return n === void 0 || n === "" || n === !1 || n === null || (t[et(e)] = r[e]), t;
1822
- }, {});
1823
- }
1824
- function ot(r) {
1825
- return r ? typeof r == "string" ? { [et(r)]: !0 } : Array.isArray(r) ? [...r].reduce(
1826
- (t, e) => ({ ...t, ...ot(e) }),
1827
- {}
1828
- ) : pe(r) : null;
1829
- }
1830
- function hr(r, t) {
1831
- return Array.isArray(r) ? [...r].reduce(
1832
- (e, n) => ({ ...e, ...hr(n, t) }),
1833
- {}
1834
- ) : typeof r == "function" ? r(t) : r ?? {};
1835
- }
1836
- function ge({
1837
- theme: r,
1838
- style: t,
1839
- vars: e,
1840
- styleProps: n
1841
- }) {
1842
- const a = hr(t, r), o = hr(e, r);
1843
- return { ...a, ...o, ...n };
1844
- }
1845
- const at = _(
1846
- ({
1847
- component: r,
1848
- style: t,
1849
- __vars: e,
1850
- className: n,
1851
- variant: a,
1852
- mod: o,
1853
- size: i,
1854
- hiddenFrom: s,
1855
- visibleFrom: l,
1856
- lightHidden: d,
1857
- darkHidden: u,
1858
- renderRoot: f,
1859
- __size: m,
1860
- ...g
1861
- }, y) => {
1862
- var S;
1863
- const $ = V(), h = r || "div", { styleProps: C, rest: x } = qn(g), v = sn(), w = (S = v == null ? void 0 : v()) == null ? void 0 : S(C.sx), L = me(), b = ue({
1864
- styleProps: C,
1865
- theme: $,
1866
- data: Qn
1867
- }), k = {
1868
- ref: y,
1869
- style: ge({
1870
- theme: $,
1871
- style: t,
1872
- vars: e,
1873
- styleProps: b.inlineStyles
1874
- }),
1875
- className: B(n, w, {
1876
- [L]: b.hasResponsiveStyles,
1877
- "mantine-light-hidden": d,
1878
- "mantine-dark-hidden": u,
1879
- [`mantine-hidden-from-${s}`]: s,
1880
- [`mantine-visible-from-${l}`]: l
1881
- }),
1882
- "data-variant": a,
1883
- "data-size": Ur(i) ? void 0 : i || void 0,
1884
- size: m,
1885
- ...ot(o),
1886
- ...x
1887
- };
1888
- return /* @__PURE__ */ z(pr, { children: [
1889
- b.hasResponsiveStyles && /* @__PURE__ */ p(
1890
- Un,
1891
- {
1892
- selector: `.${L}`,
1893
- styles: b.styles,
1894
- media: b.media
1895
- }
1896
- ),
1897
- typeof f == "function" ? f(k) : /* @__PURE__ */ p(h, { ...k })
1898
- ] });
1899
- }
1900
- );
1901
- at.displayName = "@mantine/core/Box";
1902
- const N = at;
1903
- function it(r) {
1904
- return r;
1905
- }
1906
- function Mr(r) {
1907
- const t = _(r);
1908
- return t.extend = it, t.withProps = (e) => {
1909
- const n = _((a, o) => /* @__PURE__ */ p(t, { ...e, ...a, ref: o }));
1910
- return n.extend = t.extend, n.displayName = `WithProps(${t.displayName})`, n;
1911
- }, t;
1912
- }
1913
- function st(r) {
1914
- const t = _(r);
1915
- return t.withProps = (e) => {
1916
- const n = _((a, o) => /* @__PURE__ */ p(t, { ...e, ...a, ref: o }));
1917
- return n.extend = t.extend, n.displayName = `WithProps(${t.displayName})`, n;
1918
- }, t.extend = it, t;
1919
- }
1920
- var ct = { root: "m_87cf2631" };
1921
- const ye = {
1922
- __staticSelector: "UnstyledButton"
1923
- }, Rr = st(
1924
- (r, t) => {
1925
- const e = I("UnstyledButton", ye, r), {
1926
- className: n,
1927
- component: a = "button",
1928
- __staticSelector: o,
1929
- unstyled: i,
1930
- classNames: s,
1931
- styles: l,
1932
- style: d,
1933
- ...u
1934
- } = e, f = Q({
1935
- name: o,
1936
- props: e,
1937
- classes: ct,
1938
- className: n,
1939
- style: d,
1940
- classNames: s,
1941
- styles: l,
1942
- unstyled: i
1943
- });
1944
- return /* @__PURE__ */ p(
1945
- N,
1946
- {
1947
- ...f("root", { focusable: !0 }),
1948
- component: a,
1949
- ref: t,
1950
- type: a === "button" ? "button" : void 0,
1951
- ...u
1952
- }
1953
- );
1954
- }
1955
- );
1956
- Rr.classes = ct;
1957
- Rr.displayName = "@mantine/core/UnstyledButton";
1958
- const X = (r) => ({
1959
- in: { opacity: 1, transform: "scale(1)" },
1960
- out: { opacity: 0, transform: `scale(.9) translateY(${r === "bottom" ? 10 : -10}px)` },
1961
- transitionProperty: "transform, opacity"
1962
- }), rr = {
1963
- fade: {
1964
- in: { opacity: 1 },
1965
- out: { opacity: 0 },
1966
- transitionProperty: "opacity"
1967
- },
1968
- "fade-up": {
1969
- in: { opacity: 1, transform: "translateY(0)" },
1970
- out: { opacity: 0, transform: "translateY(30px)" },
1971
- transitionProperty: "opacity, transform"
1972
- },
1973
- "fade-down": {
1974
- in: { opacity: 1, transform: "translateY(0)" },
1975
- out: { opacity: 0, transform: "translateY(-30px)" },
1976
- transitionProperty: "opacity, transform"
1977
- },
1978
- "fade-left": {
1979
- in: { opacity: 1, transform: "translateX(0)" },
1980
- out: { opacity: 0, transform: "translateX(30px)" },
1981
- transitionProperty: "opacity, transform"
1982
- },
1983
- "fade-right": {
1984
- in: { opacity: 1, transform: "translateX(0)" },
1985
- out: { opacity: 0, transform: "translateX(-30px)" },
1986
- transitionProperty: "opacity, transform"
1987
- },
1988
- scale: {
1989
- in: { opacity: 1, transform: "scale(1)" },
1990
- out: { opacity: 0, transform: "scale(0)" },
1991
- common: { transformOrigin: "top" },
1992
- transitionProperty: "transform, opacity"
1993
- },
1994
- "scale-y": {
1995
- in: { opacity: 1, transform: "scaleY(1)" },
1996
- out: { opacity: 0, transform: "scaleY(0)" },
1997
- common: { transformOrigin: "top" },
1998
- transitionProperty: "transform, opacity"
1999
- },
2000
- "scale-x": {
2001
- in: { opacity: 1, transform: "scaleX(1)" },
2002
- out: { opacity: 0, transform: "scaleX(0)" },
2003
- common: { transformOrigin: "left" },
2004
- transitionProperty: "transform, opacity"
2005
- },
2006
- "skew-up": {
2007
- in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
2008
- out: { opacity: 0, transform: "translateY(-20px) skew(-10deg, -5deg)" },
2009
- common: { transformOrigin: "top" },
2010
- transitionProperty: "transform, opacity"
2011
- },
2012
- "skew-down": {
2013
- in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
2014
- out: { opacity: 0, transform: "translateY(20px) skew(-10deg, -5deg)" },
2015
- common: { transformOrigin: "bottom" },
2016
- transitionProperty: "transform, opacity"
2017
- },
2018
- "rotate-left": {
2019
- in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
2020
- out: { opacity: 0, transform: "translateY(20px) rotate(-5deg)" },
2021
- common: { transformOrigin: "bottom" },
2022
- transitionProperty: "transform, opacity"
2023
- },
2024
- "rotate-right": {
2025
- in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
2026
- out: { opacity: 0, transform: "translateY(20px) rotate(5deg)" },
2027
- common: { transformOrigin: "top" },
2028
- transitionProperty: "transform, opacity"
2029
- },
2030
- "slide-down": {
2031
- in: { opacity: 1, transform: "translateY(0)" },
2032
- out: { opacity: 0, transform: "translateY(-100%)" },
2033
- common: { transformOrigin: "top" },
2034
- transitionProperty: "transform, opacity"
2035
- },
2036
- "slide-up": {
2037
- in: { opacity: 1, transform: "translateY(0)" },
2038
- out: { opacity: 0, transform: "translateY(100%)" },
2039
- common: { transformOrigin: "bottom" },
2040
- transitionProperty: "transform, opacity"
2041
- },
2042
- "slide-left": {
2043
- in: { opacity: 1, transform: "translateX(0)" },
2044
- out: { opacity: 0, transform: "translateX(100%)" },
2045
- common: { transformOrigin: "left" },
2046
- transitionProperty: "transform, opacity"
2047
- },
2048
- "slide-right": {
2049
- in: { opacity: 1, transform: "translateX(0)" },
2050
- out: { opacity: 0, transform: "translateX(-100%)" },
2051
- common: { transformOrigin: "right" },
2052
- transitionProperty: "transform, opacity"
2053
- },
2054
- pop: {
2055
- ...X("bottom"),
2056
- common: { transformOrigin: "center center" }
2057
- },
2058
- "pop-bottom-left": {
2059
- ...X("bottom"),
2060
- common: { transformOrigin: "bottom left" }
2061
- },
2062
- "pop-bottom-right": {
2063
- ...X("bottom"),
2064
- common: { transformOrigin: "bottom right" }
2065
- },
2066
- "pop-top-left": {
2067
- ...X("top"),
2068
- common: { transformOrigin: "top left" }
2069
- },
2070
- "pop-top-right": {
2071
- ...X("top"),
2072
- common: { transformOrigin: "top right" }
2073
- }
2074
- }, zr = {
2075
- entering: "in",
2076
- entered: "in",
2077
- exiting: "out",
2078
- exited: "out",
2079
- "pre-exiting": "out",
2080
- "pre-entering": "out"
2081
- };
2082
- function be({
2083
- transition: r,
2084
- state: t,
2085
- duration: e,
2086
- timingFunction: n
2087
- }) {
2088
- const a = {
2089
- WebkitBackfaceVisibility: "hidden",
2090
- willChange: "transform, opacity",
2091
- transitionDuration: `${e}ms`,
2092
- transitionTimingFunction: n
2093
- };
2094
- return typeof r == "string" ? r in rr ? {
2095
- transitionProperty: rr[r].transitionProperty,
2096
- ...a,
2097
- ...rr[r].common,
2098
- ...rr[r][zr[t]]
2099
- } : {} : {
2100
- transitionProperty: r.transitionProperty,
2101
- ...a,
2102
- ...r.common,
2103
- ...r[zr[t]]
2104
- };
2105
- }
2106
- function he({
2107
- duration: r,
2108
- exitDuration: t,
2109
- timingFunction: e,
2110
- mounted: n,
2111
- onEnter: a,
2112
- onExit: o,
2113
- onEntered: i,
2114
- onExited: s,
2115
- enterDelay: l,
2116
- exitDelay: d
2117
- }) {
2118
- const u = V(), f = Jt(), m = u.respectReducedMotion ? f : !1, [g, y] = tr(m ? 0 : r), [$, h] = tr(n ? "entered" : "exited"), C = W(-1), x = W(-1), v = W(-1), w = (b) => {
2119
- const k = b ? a : o, S = b ? i : s;
2120
- window.clearTimeout(C.current);
2121
- const E = m ? 0 : b ? r : t;
2122
- y(E), E === 0 ? (typeof k == "function" && k(), typeof S == "function" && S(), h(b ? "entered" : "exited")) : v.current = requestAnimationFrame(() => {
2123
- Gt.flushSync(() => {
2124
- h(b ? "pre-entering" : "pre-exiting");
2125
- }), v.current = requestAnimationFrame(() => {
2126
- typeof k == "function" && k(), h(b ? "entering" : "exiting"), C.current = window.setTimeout(() => {
2127
- typeof S == "function" && S(), h(b ? "entered" : "exited");
2128
- }, E);
2129
- });
2130
- });
2131
- }, L = (b) => {
2132
- if (window.clearTimeout(x.current), typeof (b ? l : d) != "number") {
2133
- w(b);
2134
- return;
2135
- }
2136
- x.current = window.setTimeout(
2137
- () => {
2138
- w(b);
2139
- },
2140
- b ? l : d
2141
- );
2142
- };
2143
- return Zt(() => {
2144
- L(n);
2145
- }, [n]), A(
2146
- () => () => {
2147
- window.clearTimeout(C.current), cancelAnimationFrame(v.current);
2148
- },
2149
- []
2150
- ), {
2151
- transitionDuration: g,
2152
- transitionStatus: $,
2153
- transitionTimingFunction: e || "ease"
2154
- };
2155
- }
2156
- function lt({
2157
- keepMounted: r,
2158
- transition: t = "fade",
2159
- duration: e = 250,
2160
- exitDuration: n = e,
2161
- mounted: a,
2162
- children: o,
2163
- timingFunction: i = "ease",
2164
- onExit: s,
2165
- onEntered: l,
2166
- onEnter: d,
2167
- onExited: u,
2168
- enterDelay: f,
2169
- exitDelay: m
2170
- }) {
2171
- const g = ln(), { transitionDuration: y, transitionStatus: $, transitionTimingFunction: h } = he({
2172
- mounted: a,
2173
- exitDuration: n,
2174
- duration: e,
2175
- timingFunction: i,
2176
- onExit: s,
2177
- onEntered: l,
2178
- onEnter: d,
2179
- onExited: u,
2180
- enterDelay: f,
2181
- exitDelay: m
2182
- });
2183
- return y === 0 || g === "test" ? a ? /* @__PURE__ */ p(pr, { children: o({}) }) : r ? o({ display: "none" }) : null : $ === "exited" ? r ? o({ display: "none" }) : null : /* @__PURE__ */ p(pr, { children: o(
2184
- be({
2185
- transition: t,
2186
- duration: y,
2187
- state: $,
2188
- timingFunction: h
2189
- })
2190
- ) });
2191
- }
2192
- lt.displayName = "@mantine/core/Transition";
2193
- var T = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
2194
- const dt = _(({ className: r, ...t }, e) => /* @__PURE__ */ z(N, { component: "span", className: B(T.barsLoader, r), ...t, ref: e, children: [
2195
- /* @__PURE__ */ p("span", { className: T.bar }),
2196
- /* @__PURE__ */ p("span", { className: T.bar }),
2197
- /* @__PURE__ */ p("span", { className: T.bar })
2198
- ] }));
2199
- dt.displayName = "@mantine/core/Bars";
2200
- const ft = _(({ className: r, ...t }, e) => /* @__PURE__ */ z(N, { component: "span", className: B(T.dotsLoader, r), ...t, ref: e, children: [
2201
- /* @__PURE__ */ p("span", { className: T.dot }),
2202
- /* @__PURE__ */ p("span", { className: T.dot }),
2203
- /* @__PURE__ */ p("span", { className: T.dot })
2204
- ] }));
2205
- ft.displayName = "@mantine/core/Dots";
2206
- const ut = _(({ className: r, ...t }, e) => /* @__PURE__ */ p(N, { component: "span", className: B(T.ovalLoader, r), ...t, ref: e }));
2207
- ut.displayName = "@mantine/core/Oval";
2208
- const mt = {
2209
- bars: dt,
2210
- oval: ut,
2211
- dots: ft
2212
- }, $e = {
2213
- loaders: mt,
2214
- type: "oval"
2215
- }, ve = (r, { size: t, color: e }) => ({
2216
- root: {
2217
- "--loader-size": O(t, "loader-size"),
2218
- "--loader-color": e ? yr(e, r) : void 0
2219
- }
2220
- }), er = Mr((r, t) => {
2221
- const e = I("Loader", $e, r), {
2222
- size: n,
2223
- color: a,
2224
- type: o,
2225
- vars: i,
2226
- className: s,
2227
- style: l,
2228
- classNames: d,
2229
- styles: u,
2230
- unstyled: f,
2231
- loaders: m,
2232
- variant: g,
2233
- children: y,
2234
- ...$
2235
- } = e, h = Q({
2236
- name: "Loader",
2237
- props: e,
2238
- classes: T,
2239
- className: s,
2240
- style: l,
2241
- classNames: d,
2242
- styles: u,
2243
- unstyled: f,
2244
- vars: i,
2245
- varsResolver: ve
2246
- });
2247
- return y ? /* @__PURE__ */ p(N, { ...h("root"), ref: t, ...$, children: y }) : /* @__PURE__ */ p(
2248
- N,
2249
- {
2250
- ...h("root"),
2251
- ref: t,
2252
- component: m[o],
2253
- variant: g,
2254
- size: n,
2255
- ...$
2256
- }
2257
- );
2258
- });
2259
- er.defaultLoaders = mt;
2260
- er.classes = T;
2261
- er.displayName = "@mantine/core/Loader";
2262
- var Y = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844", groupSection: "m_70be2a01" };
2263
- const Yr = {
2264
- orientation: "horizontal"
2265
- }, Se = (r, { borderWidth: t }) => ({
2266
- group: { "--button-border-width": c(t) }
2267
- }), _r = Mr((r, t) => {
2268
- const e = I("ButtonGroup", Yr, r), {
2269
- className: n,
2270
- style: a,
2271
- classNames: o,
2272
- styles: i,
2273
- unstyled: s,
2274
- orientation: l,
2275
- vars: d,
2276
- borderWidth: u,
2277
- variant: f,
2278
- mod: m,
2279
- ...g
2280
- } = I("ButtonGroup", Yr, r), y = Q({
2281
- name: "ButtonGroup",
2282
- props: e,
2283
- classes: Y,
2284
- className: n,
2285
- style: a,
2286
- classNames: o,
2287
- styles: i,
2288
- unstyled: s,
2289
- vars: d,
2290
- varsResolver: Se,
2291
- rootSelector: "group"
2292
- });
2293
- return /* @__PURE__ */ p(
2294
- N,
2295
- {
2296
- ...y("group"),
2297
- ref: t,
2298
- variant: f,
2299
- mod: [{ "data-orientation": l }, m],
2300
- role: "group",
2301
- ...g
2302
- }
2303
- );
2304
- });
2305
- _r.classes = Y;
2306
- _r.displayName = "@mantine/core/ButtonGroup";
2307
- const Gr = {}, we = (r, { radius: t, color: e, gradient: n, variant: a, autoContrast: o, size: i }) => {
2308
- const s = r.variantColorResolver({
2309
- color: e || r.primaryColor,
2310
- theme: r,
2311
- gradient: n,
2312
- variant: a || "filled",
2313
- autoContrast: o
2314
- });
2315
- return {
2316
- groupSection: {
2317
- "--section-height": O(i, "section-height"),
2318
- "--section-padding-x": O(i, "section-padding-x"),
2319
- "--section-fz": i != null && i.includes("compact") ? nr(i.replace("compact-", "")) : nr(i),
2320
- "--section-radius": t === void 0 ? void 0 : qr(t),
2321
- "--section-bg": e || a ? s.background : void 0,
2322
- "--section-color": s.color,
2323
- "--section-bd": e || a ? s.border : void 0
2324
- }
2325
- };
2326
- }, Pr = Mr((r, t) => {
2327
- const e = I("ButtonGroupSection", Gr, r), {
2328
- className: n,
2329
- style: a,
2330
- classNames: o,
2331
- styles: i,
2332
- unstyled: s,
2333
- vars: l,
2334
- variant: d,
2335
- gradient: u,
2336
- radius: f,
2337
- autoContrast: m,
2338
- ...g
2339
- } = I("ButtonGroupSection", Gr, r), y = Q({
2340
- name: "ButtonGroupSection",
2341
- props: e,
2342
- classes: Y,
2343
- className: n,
2344
- style: a,
2345
- classNames: o,
2346
- styles: i,
2347
- unstyled: s,
2348
- vars: l,
2349
- varsResolver: we,
2350
- rootSelector: "groupSection"
2351
- });
2352
- return /* @__PURE__ */ p(N, { ...y("groupSection"), ref: t, variant: d, ...g });
2353
- });
2354
- Pr.classes = Y;
2355
- Pr.displayName = "@mantine/core/ButtonGroupSection";
2356
- const Ce = {
2357
- in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${c(1)}))` },
2358
- out: { opacity: 0, transform: "translate(-50%, -200%)" },
2359
- common: { transformOrigin: "center" },
2360
- transitionProperty: "transform, opacity"
2361
- }, xe = {}, ke = (r, { radius: t, color: e, gradient: n, variant: a, size: o, justify: i, autoContrast: s }) => {
2362
- const l = r.variantColorResolver({
2363
- color: e || r.primaryColor,
2364
- theme: r,
2365
- gradient: n,
2366
- variant: a || "filled",
2367
- autoContrast: s
2368
- });
2369
- return {
2370
- root: {
2371
- "--button-justify": i,
2372
- "--button-height": O(o, "button-height"),
2373
- "--button-padding-x": O(o, "button-padding-x"),
2374
- "--button-fz": o != null && o.includes("compact") ? nr(o.replace("compact-", "")) : nr(o),
2375
- "--button-radius": t === void 0 ? void 0 : qr(t),
2376
- "--button-bg": e || a ? l.background : void 0,
2377
- "--button-hover": e || a ? l.hover : void 0,
2378
- "--button-color": l.color,
2379
- "--button-bd": e || a ? l.border : void 0,
2380
- "--button-hover-color": e || a ? l.hoverColor : void 0
2381
- }
2382
- };
2383
- }, K = st((r, t) => {
2384
- const e = I("Button", xe, r), {
2385
- style: n,
2386
- vars: a,
2387
- className: o,
2388
- color: i,
2389
- disabled: s,
2390
- children: l,
2391
- leftSection: d,
2392
- rightSection: u,
2393
- fullWidth: f,
2394
- variant: m,
2395
- radius: g,
2396
- loading: y,
2397
- loaderProps: $,
2398
- gradient: h,
2399
- classNames: C,
2400
- styles: x,
2401
- unstyled: v,
2402
- "data-disabled": w,
2403
- autoContrast: L,
2404
- mod: b,
2405
- ...k
2406
- } = e, S = Q({
2407
- name: "Button",
2408
- props: e,
2409
- classes: Y,
2410
- className: o,
2411
- style: n,
2412
- classNames: C,
2413
- styles: x,
2414
- unstyled: v,
2415
- vars: a,
2416
- varsResolver: ke
2417
- }), E = !!d, or = !!u;
2418
- return /* @__PURE__ */ z(
2419
- Rr,
2420
- {
2421
- ref: t,
2422
- ...S("root", { active: !s && !y && !w }),
2423
- unstyled: v,
2424
- variant: m,
2425
- disabled: s || y,
2426
- mod: [
2427
- {
2428
- disabled: s || w,
2429
- loading: y,
2430
- block: f,
2431
- "with-left-section": E,
2432
- "with-right-section": or
2433
- },
2434
- b
2435
- ],
2436
- ...k,
2437
- children: [
2438
- /* @__PURE__ */ p(lt, { mounted: !!y, transition: Ce, duration: 150, children: (ar) => /* @__PURE__ */ p(N, { component: "span", ...S("loader", { style: ar }), "aria-hidden": !0, children: /* @__PURE__ */ p(
2439
- er,
2440
- {
2441
- color: "var(--button-color)",
2442
- size: "calc(var(--button-height) / 1.8)",
2443
- ...$
2444
- }
2445
- ) }) }),
2446
- /* @__PURE__ */ z("span", { ...S("inner"), children: [
2447
- d && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "left" }, children: d }),
2448
- /* @__PURE__ */ p(N, { component: "span", mod: { loading: y }, ...S("label"), children: l }),
2449
- u && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "right" }, children: u })
2450
- ] })
2451
- ]
2452
- }
2453
- );
2454
- });
2455
- K.classes = Y;
2456
- K.displayName = "@mantine/core/Button";
2457
- K.Group = _r;
2458
- K.GroupSection = Pr;
2459
- function Le({ children: r }) {
2460
- return /* @__PURE__ */ p(nt, { children: r });
2461
- }
2462
- const Ee = (r) => /* @__PURE__ */ p(K, { ...r });
2463
41
  export {
2464
- _e as ColorSchemeScript,
2465
- Le as MantineProvider,
2466
- Ee as TestButton,
2467
- Pe as mantineHtmlProps
42
+ S as Button,
43
+ l as ColorSchemeScript,
44
+ s as MantineProvider,
45
+ i as mantineHtmlProps
2468
46
  };