@ienlab/react-library 0.17.0-beta.30 → 0.17.0-beta.32

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.
@@ -1,82 +1,81 @@
1
- import * as e from "react";
2
- import { createContext as t, createElement as n, useContext as r, useEffect as i, useMemo as a, useState as o } from "react";
3
- import { AnimatePresence as s, Reorder as c, motion as l } from "motion/react";
4
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
- import { useTranslation as f } from "react-i18next";
6
- import { flexRender as p, getCoreRowModel as m, getExpandedRowModel as h, useReactTable as g } from "@tanstack/react-table";
7
- import { documentId as _, getDoc as v, getDocs as y, onSnapshot as b, query as x, serverTimestamp as S, where as C } from "firebase/firestore";
8
- import { useStore as w } from "zustand/react";
9
- import T from "i18next";
10
- import { getDownloadURL as E, ref as ee, uploadBytes as te } from "firebase/storage";
1
+ import e, { Component as t, createContext as n, createElement as r, useContext as i, useEffect as a, useMemo as o, useState as s } from "react";
2
+ import { AnimatePresence as c, Reorder as l, motion as u } from "motion/react";
3
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
4
+ import { useTranslation as p } from "react-i18next";
5
+ import { flexRender as m, getCoreRowModel as h, getExpandedRowModel as g, useReactTable as _ } from "@tanstack/react-table";
6
+ import { documentId as v, getDoc as y, getDocs as b, onSnapshot as x, query as S, serverTimestamp as C, where as w } from "firebase/firestore";
7
+ import { useStore as T } from "zustand/react";
8
+ import E from "i18next";
9
+ import { getDownloadURL as ee, ref as te, uploadBytes as ne } from "firebase/storage";
11
10
  //#region \0rolldown/runtime.js
12
- var ne = Object.create, D = Object.defineProperty, O = Object.getOwnPropertyDescriptor, k = Object.getOwnPropertyNames, A = Object.getPrototypeOf, re = Object.prototype.hasOwnProperty, ie = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), j = (e, t, n, r) => {
13
- if (t && typeof t == "object" || typeof t == "function") for (var i = k(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !re.call(e, s) && s !== n && D(e, s, {
11
+ var re = Object.create, D = Object.defineProperty, O = Object.getOwnPropertyDescriptor, k = Object.getOwnPropertyNames, ie = Object.getPrototypeOf, ae = Object.prototype.hasOwnProperty, A = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), oe = (e, t, n, r) => {
12
+ if (t && typeof t == "object" || typeof t == "function") for (var i = k(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ae.call(e, s) && s !== n && D(e, s, {
14
13
  get: ((e) => t[e]).bind(null, s),
15
14
  enumerable: !(r = O(t, s)) || r.enumerable
16
15
  });
17
16
  return e;
18
- }, ae = (e, t, n) => (n = e == null ? {} : ne(A(e)), j(t || !e || !e.__esModule ? D(n, "default", {
17
+ }, se = (e, t, n) => (n = e == null ? {} : re(ie(e)), oe(t || !e || !e.__esModule ? D(n, "default", {
19
18
  value: e,
20
19
  enumerable: !0
21
20
  }) : n, e));
22
21
  //#endregion
23
22
  //#region src/components/image/CrossfadeImage.tsx
24
- function oe({ placeholder: e, src: t, onLoadError: n, ...r }) {
25
- let [a, c] = o(() => {
23
+ function ce({ placeholder: e, src: t, onLoadError: n, ...r }) {
24
+ let [i, o] = s(() => {
26
25
  if (typeof window > "u" || !t) return !1;
27
26
  let e = new Image();
28
27
  return e.src = t, e.complete && e.naturalWidth > 0;
29
- }), [d, f] = o(t);
30
- return d !== t && (f(t), c(!1)), i(() => {
28
+ }), [l, f] = s(t);
29
+ return l !== t && (f(t), o(!1)), a(() => {
31
30
  if (!t) return;
32
31
  let e = new Image();
33
- return e.src = t, e.onload = () => c(!0), e.onerror = (e) => {
32
+ return e.src = t, e.onload = () => o(!0), e.onerror = (e) => {
34
33
  n ? n(e) : console.error("CrossfadeImage: Failed to load image", t);
35
34
  }, e.complete && e.naturalWidth > 0 && e.onload(new Event("load")), () => {
36
35
  e.onload = null, e.onerror = null;
37
36
  };
38
- }, [t, n]), /* @__PURE__ */ u(s, { children: a && t ? /* @__PURE__ */ u(l.img, {
37
+ }, [t, n]), /* @__PURE__ */ d(c, { children: i && t ? /* @__PURE__ */ d(u.img, {
39
38
  src: t,
40
39
  ...r,
41
40
  initial: { opacity: 0 },
42
41
  animate: { opacity: 1 },
43
42
  exit: { opacity: 0 },
44
43
  style: { ...r.style }
45
- }, "loaded-image") : /* @__PURE__ */ u(l.div, {
44
+ }, "loaded-image") : /* @__PURE__ */ d(u.div, {
46
45
  initial: { opacity: 1 },
47
46
  transition: { duration: .3 },
48
47
  style: { ...r.style },
49
- children: e ?? /* @__PURE__ */ u("div", { className: "w-full h-full bg-sidebar" })
48
+ children: e ?? /* @__PURE__ */ d("div", { className: "w-full h-full bg-sidebar" })
50
49
  }, "placeholder") });
51
50
  }
52
51
  //#endregion
53
52
  //#region src/types/image.tsx
54
- var se = ({ children: e }) => /* @__PURE__ */ u("div", { children: e }), ce = (e) => /* @__PURE__ */ u("label", { ...e }), M = ({ children: e }) => /* @__PURE__ */ u("p", { children: e }), N = (e) => /* @__PURE__ */ u("input", { ...e }), le = ({ children: e, ...t }) => /* @__PURE__ */ u("div", {
53
+ var j = ({ children: e }) => /* @__PURE__ */ d("div", { children: e }), M = (e) => /* @__PURE__ */ d("label", { ...e }), N = ({ children: e }) => /* @__PURE__ */ d("p", { children: e }), P = (e) => /* @__PURE__ */ d("input", { ...e }), le = ({ children: e, ...t }) => /* @__PURE__ */ d("div", {
55
54
  ...t,
56
55
  children: e
57
- }), ue = (e) => null, P = ({ children: e, ...t }) => /* @__PURE__ */ u("div", {
56
+ }), F = (e) => null, ue = ({ children: e, ...t }) => /* @__PURE__ */ d("div", {
58
57
  ...t,
59
58
  children: e
60
- }), de = ({ children: e, type: t = "button", ...n }) => /* @__PURE__ */ u("button", {
59
+ }), I = ({ children: e, type: t = "button", ...n }) => /* @__PURE__ */ d("button", {
61
60
  type: t,
62
61
  ...n,
63
62
  children: e
64
- }), fe = ({ className: e }) => /* @__PURE__ */ u("span", {
63
+ }), de = ({ className: e }) => /* @__PURE__ */ d("span", {
65
64
  className: e,
66
65
  children: "×"
67
- }), pe = ["ko", "en"], me = null;
68
- function he(e) {
69
- me = e;
66
+ }), fe = ["ko", "en"], L = null;
67
+ function pe(e) {
68
+ L = e;
70
69
  }
71
- var ge = {
70
+ var me = {
72
71
  get(e, t = "ko") {
73
- let n = me?.();
74
- return e[pe.includes(n) ? n : t] ?? e[t];
72
+ let n = L?.();
73
+ return e[fe.includes(n) ? n : t] ?? e[t];
75
74
  },
76
75
  ko(e) {
77
76
  return e.ko;
78
77
  }
79
- }, _e = class {
78
+ }, he = class {
80
79
  url = "";
81
80
  file = null;
82
81
  constructor(e = {}) {
@@ -91,19 +90,19 @@ var ge = {
91
90
  get isEmpty() {
92
91
  return !this.file && !this.url;
93
92
  }
94
- }, ve = (e) => /* @__PURE__ */ u("table", { ...e }), ye = (e) => /* @__PURE__ */ u("thead", { ...e }), be = (e) => /* @__PURE__ */ u("tbody", { ...e }), xe = (e) => /* @__PURE__ */ u("tr", { ...e }), Se = (e) => /* @__PURE__ */ u("th", { ...e }), Ce = (e) => /* @__PURE__ */ u("td", { ...e }), we = ({ open: e, children: t }) => e ? /* @__PURE__ */ u("div", { children: t }) : null, Te = (e) => /* @__PURE__ */ u("div", { ...e }), Ee = (e) => /* @__PURE__ */ u("div", { ...e }), De = (e) => /* @__PURE__ */ u("h2", { ...e }), Oe = (e) => /* @__PURE__ */ u("p", { ...e }), ke = (e) => /* @__PURE__ */ u("div", { ...e }), Ae = (e) => /* @__PURE__ */ u("div", { children: "Calendar" }), je = (e) => /* @__PURE__ */ u("div", {
93
+ }, ge = (e) => /* @__PURE__ */ d("table", { ...e }), _e = (e) => /* @__PURE__ */ d("thead", { ...e }), ve = (e) => /* @__PURE__ */ d("tbody", { ...e }), ye = (e) => /* @__PURE__ */ d("tr", { ...e }), be = (e) => /* @__PURE__ */ d("th", { ...e }), xe = (e) => /* @__PURE__ */ d("td", { ...e }), Se = ({ open: e, children: t }) => e ? /* @__PURE__ */ d("div", { children: t }) : null, Ce = (e) => /* @__PURE__ */ d("div", { ...e }), we = (e) => /* @__PURE__ */ d("div", { ...e }), Te = (e) => /* @__PURE__ */ d("h2", { ...e }), Ee = (e) => /* @__PURE__ */ d("p", { ...e }), De = (e) => /* @__PURE__ */ d("div", { ...e }), Oe = (e) => /* @__PURE__ */ d("div", { children: "Calendar" }), ke = (e) => /* @__PURE__ */ d("div", {
95
94
  className: e.className,
96
95
  children: e.children
97
- }), Me = (e) => /* @__PURE__ */ u("div", {
96
+ }), Ae = (e) => /* @__PURE__ */ d("div", {
98
97
  className: e.className,
99
98
  children: e.children
100
- }), Ne = (e) => /* @__PURE__ */ u("input", { ...e }), Pe = (e) => /* @__PURE__ */ u("div", {
99
+ }), je = (e) => /* @__PURE__ */ d("input", { ...e }), Me = (e) => /* @__PURE__ */ d("div", {
101
100
  className: e.className,
102
101
  children: e.children
103
- }), Fe = ({ className: e }) => /* @__PURE__ */ u("span", {
102
+ }), Ne = ({ className: e }) => /* @__PURE__ */ d("span", {
104
103
  className: e,
105
104
  children: "🕔"
106
- }), F = {
105
+ }), R = {
107
106
  wrapper: {
108
107
  display: "flex",
109
108
  flexDirection: "column",
@@ -178,76 +177,76 @@ var ge = {
178
177
  transition: "box-shadow 160ms ease"
179
178
  }
180
179
  };
181
- function Ie({ id: e, label: t, uploadHintText: n, descriptionText: r, value: i, onChange: a, aspectRatio: s = "1 / 1", accept: c = "image/*", components: l }) {
182
- let { t: p } = f(), m = l?.Field ?? se, h = l?.FieldLabel ?? ce, g = l?.FieldDescription ?? M, _ = l?.Input ?? N, v = {
183
- ...F.imageBox,
184
- aspectRatio: s
185
- }, [y, b] = o(!1);
186
- return /* @__PURE__ */ d(m, { children: [/* @__PURE__ */ u(h, {
180
+ function Pe({ id: e, label: t, uploadHintText: n, descriptionText: r, value: i, onChange: a, aspectRatio: o = "1 / 1", accept: c = "image/*", components: l }) {
181
+ let { t: u } = p(), m = l?.Field ?? j, h = l?.FieldLabel ?? M, g = l?.FieldDescription ?? N, _ = l?.Input ?? P, v = {
182
+ ...R.imageBox,
183
+ aspectRatio: o
184
+ }, [y, b] = s(!1);
185
+ return /* @__PURE__ */ f(m, { children: [/* @__PURE__ */ d(h, {
187
186
  htmlFor: e,
188
187
  children: t
189
- }), /* @__PURE__ */ d("div", {
190
- style: F.wrapper,
188
+ }), /* @__PURE__ */ f("div", {
189
+ style: R.wrapper,
191
190
  children: [
192
- /* @__PURE__ */ u("label", {
191
+ /* @__PURE__ */ d("label", {
193
192
  htmlFor: e,
194
193
  style: {
195
- ...F.trigger,
194
+ ...R.trigger,
196
195
  backgroundColor: y ? "var(--accent)" : "var(--card)"
197
196
  },
198
197
  onMouseEnter: () => b(!0),
199
198
  onMouseLeave: () => b(!1),
200
- children: /* @__PURE__ */ d("div", {
201
- style: F.card,
202
- children: [/* @__PURE__ */ u("div", {
203
- style: F.frame,
204
- children: i.url ? /* @__PURE__ */ u("div", {
205
- style: F.imageLayer,
206
- children: /* @__PURE__ */ u("div", {
199
+ children: /* @__PURE__ */ f("div", {
200
+ style: R.card,
201
+ children: [/* @__PURE__ */ d("div", {
202
+ style: R.frame,
203
+ children: i.url ? /* @__PURE__ */ d("div", {
204
+ style: R.imageLayer,
205
+ children: /* @__PURE__ */ d("div", {
207
206
  style: v,
208
- children: /* @__PURE__ */ u(oe, {
207
+ children: /* @__PURE__ */ d(ce, {
209
208
  src: i.url,
210
209
  className: "",
211
210
  alt: t,
212
- style: F.image
211
+ style: R.image
213
212
  })
214
213
  })
215
- }) : /* @__PURE__ */ d("div", {
216
- style: F.empty,
217
- children: [/* @__PURE__ */ u("div", {
218
- style: F.badge,
219
- children: p("libs:add_assets")
220
- }), /* @__PURE__ */ u("p", {
221
- style: F.hint,
214
+ }) : /* @__PURE__ */ f("div", {
215
+ style: R.empty,
216
+ children: [/* @__PURE__ */ d("div", {
217
+ style: R.badge,
218
+ children: u("libs:add_assets")
219
+ }), /* @__PURE__ */ d("p", {
220
+ style: R.hint,
222
221
  children: n
223
222
  })]
224
223
  })
225
- }), /* @__PURE__ */ u("div", { style: {
226
- ...F.overlay,
224
+ }), /* @__PURE__ */ d("div", { style: {
225
+ ...R.overlay,
227
226
  boxShadow: y ? "inset 0 0 0 2px rgba(59, 130, 246, 0.16)" : "inset 0 0 0 0 rgba(59, 130, 246, 0)"
228
227
  } })]
229
228
  })
230
229
  }),
231
- /* @__PURE__ */ u(_, {
230
+ /* @__PURE__ */ d(_, {
232
231
  id: e,
233
232
  type: "file",
234
233
  accept: c,
235
234
  onChange: (e) => {
236
235
  let t = e.target.files?.[0];
237
- t && (i.revokeIfNeeded(), a(new _e({
236
+ t && (i.revokeIfNeeded(), a(new he({
238
237
  file: t,
239
238
  url: URL.createObjectURL(t)
240
239
  })), e.currentTarget.value = "");
241
240
  },
242
241
  style: { display: "none" }
243
242
  }),
244
- /* @__PURE__ */ u(g, { children: r })
243
+ /* @__PURE__ */ d(g, { children: r })
245
244
  ]
246
245
  })] });
247
246
  }
248
247
  //#endregion
249
248
  //#region src/components/image/ImageUploadSortableField.tsx
250
- var I = {
249
+ var z = {
251
250
  wrapper: {
252
251
  display: "flex",
253
252
  flexDirection: "column",
@@ -351,61 +350,61 @@ var I = {
351
350
  marginRight: "1rem"
352
351
  }
353
352
  };
354
- function Le({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i, onChange: a, aspectRatio: o = "1 / 1", accept: s = "image/*", components: l }) {
355
- let { t: p } = f(), m = l?.Field ?? se, h = l?.FieldLabel ?? ce, g = l?.FieldDescription ?? M, _ = l?.Input ?? N, v = l?.ScrollArea ?? le, y = l?.ScrollBar ?? ue, b = l?.Card ?? P, x = l?.Button ?? de, S = l?.CloseIcon ?? fe, C = (e) => {
353
+ function Fe({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i, onChange: a, aspectRatio: o = "1 / 1", accept: s = "image/*", components: c }) {
354
+ let { t: u } = p(), m = c?.Field ?? j, h = c?.FieldLabel ?? M, g = c?.FieldDescription ?? N, _ = c?.Input ?? P, v = c?.ScrollArea ?? le, y = c?.ScrollBar ?? F, b = c?.Card ?? ue, x = c?.Button ?? I, S = c?.CloseIcon ?? de, C = (e) => {
356
355
  e.revokeIfNeeded(), a(i.filter((t) => t !== e));
357
356
  }, w = (e) => {
358
- !e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new _e({
357
+ !e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new he({
359
358
  file: e,
360
359
  url: URL.createObjectURL(e)
361
360
  }))]);
362
361
  }, T = {
363
- ...I.card,
362
+ ...z.card,
364
363
  aspectRatio: o
365
364
  }, E = {
366
- ...I.uploadCard,
365
+ ...z.uploadCard,
367
366
  aspectRatio: o
368
367
  };
369
- return /* @__PURE__ */ d(m, { children: [/* @__PURE__ */ u(h, {
368
+ return /* @__PURE__ */ f(m, { children: [/* @__PURE__ */ d(h, {
370
369
  htmlFor: e,
371
370
  children: t
372
- }), /* @__PURE__ */ d("div", {
373
- style: I.wrapper,
374
- children: [/* @__PURE__ */ d("div", {
375
- style: I.outerBox,
376
- children: [/* @__PURE__ */ d(v, {
377
- style: I.scrollArea,
378
- children: [/* @__PURE__ */ d(c.Group, {
371
+ }), /* @__PURE__ */ f("div", {
372
+ style: z.wrapper,
373
+ children: [/* @__PURE__ */ f("div", {
374
+ style: z.outerBox,
375
+ children: [/* @__PURE__ */ f(v, {
376
+ style: z.scrollArea,
377
+ children: [/* @__PURE__ */ f(l.Group, {
379
378
  axis: "x",
380
379
  values: i,
381
380
  onReorder: a,
382
381
  layoutScroll: !0,
383
- style: I.list,
384
- children: [i.map((e) => /* @__PURE__ */ u(c.Item, {
382
+ style: z.list,
383
+ children: [i.map((e) => /* @__PURE__ */ d(l.Item, {
385
384
  value: e,
386
- style: I.item,
387
- children: /* @__PURE__ */ u(b, {
385
+ style: z.item,
386
+ children: /* @__PURE__ */ d(b, {
388
387
  style: T,
389
- children: /* @__PURE__ */ d("div", {
390
- style: I.cardInner,
391
- children: [/* @__PURE__ */ u(oe, {
388
+ children: /* @__PURE__ */ f("div", {
389
+ style: z.cardInner,
390
+ children: [/* @__PURE__ */ d(ce, {
392
391
  src: e.url,
393
392
  className: "",
394
393
  alt: t,
395
- style: I.image,
394
+ style: z.image,
396
395
  draggable: !1
397
- }), /* @__PURE__ */ u(x, {
396
+ }), /* @__PURE__ */ d(x, {
398
397
  type: "button",
399
- style: I.removeButton,
398
+ style: z.removeButton,
400
399
  onClick: () => C(e),
401
- children: /* @__PURE__ */ u(S, {})
400
+ children: /* @__PURE__ */ d(S, {})
402
401
  })]
403
402
  })
404
403
  })
405
- }, e.url)), /* @__PURE__ */ u("label", {
404
+ }, e.url)), /* @__PURE__ */ d("label", {
406
405
  htmlFor: e,
407
- style: I.uploadLabel,
408
- children: /* @__PURE__ */ u(b, {
406
+ style: z.uploadLabel,
407
+ children: /* @__PURE__ */ d(b, {
409
408
  style: E,
410
409
  onMouseEnter: (e) => {
411
410
  e.currentTarget.style.backgroundColor = "var(--accent)";
@@ -413,23 +412,23 @@ function Le({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i,
413
412
  onMouseLeave: (e) => {
414
413
  e.currentTarget.style.backgroundColor = "var(--card)";
415
414
  },
416
- children: /* @__PURE__ */ d("div", {
417
- style: I.uploadCardInner,
418
- children: [/* @__PURE__ */ u("div", {
419
- style: I.badge,
420
- children: p("libs:add_assets")
421
- }), /* @__PURE__ */ u("p", {
422
- style: I.hint,
415
+ children: /* @__PURE__ */ f("div", {
416
+ style: z.uploadCardInner,
417
+ children: [/* @__PURE__ */ d("div", {
418
+ style: z.badge,
419
+ children: u("libs:add_assets")
420
+ }), /* @__PURE__ */ d("p", {
421
+ style: z.hint,
423
422
  children: r
424
423
  })]
425
424
  })
426
425
  })
427
426
  })]
428
- }), /* @__PURE__ */ u(y, {
427
+ }), /* @__PURE__ */ d(y, {
429
428
  orientation: "horizontal",
430
- style: I.scrollBar
429
+ style: z.scrollBar
431
430
  })]
432
- }), /* @__PURE__ */ u(_, {
431
+ }), /* @__PURE__ */ d(_, {
433
432
  id: e,
434
433
  type: "file",
435
434
  accept: s,
@@ -437,125 +436,125 @@ function Le({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i,
437
436
  onChange: (e) => {
438
437
  w(e.target.files), e.currentTarget.value = "";
439
438
  },
440
- style: I.hiddenInput
439
+ style: z.hiddenInput
441
440
  })]
442
- }), /* @__PURE__ */ u("div", {
443
- style: I.description,
444
- children: /* @__PURE__ */ u(g, { children: n })
441
+ }), /* @__PURE__ */ d("div", {
442
+ style: z.description,
443
+ children: /* @__PURE__ */ d(g, { children: n })
445
444
  })]
446
445
  })] });
447
446
  }
448
447
  //#endregion
449
448
  //#region node_modules/clsx/dist/clsx.mjs
450
- function Re(e) {
449
+ function Ie(e) {
451
450
  var t, n, r = "";
452
451
  if (typeof e == "string" || typeof e == "number") r += e;
453
452
  else if (typeof e == "object") if (Array.isArray(e)) {
454
453
  var i = e.length;
455
- for (t = 0; t < i; t++) e[t] && (n = Re(e[t])) && (r && (r += " "), r += n);
454
+ for (t = 0; t < i; t++) e[t] && (n = Ie(e[t])) && (r && (r += " "), r += n);
456
455
  } else for (n in e) e[n] && (r && (r += " "), r += n);
457
456
  return r;
458
457
  }
459
- function ze() {
460
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Re(e)) && (r && (r += " "), r += t);
458
+ function Le() {
459
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Ie(e)) && (r && (r += " "), r += t);
461
460
  return r;
462
461
  }
463
462
  //#endregion
464
463
  //#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
465
- var Be = (e, t) => {
464
+ var Re = (e, t) => {
466
465
  let n = Array(e.length + t.length);
467
466
  for (let t = 0; t < e.length; t++) n[t] = e[t];
468
467
  for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
469
468
  return n;
470
- }, Ve = (e, t) => ({
469
+ }, ze = (e, t) => ({
471
470
  classGroupId: e,
472
471
  validator: t
473
- }), He = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
472
+ }), Be = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
474
473
  nextPart: e,
475
474
  validators: t,
476
475
  classGroupId: n
477
- }), Ue = "-", We = [], Ge = "arbitrary..", Ke = (e) => {
478
- let t = Ye(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
476
+ }), Ve = "-", He = [], Ue = "arbitrary..", We = (e) => {
477
+ let t = qe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
479
478
  return {
480
479
  getClassGroupId: (e) => {
481
- if (e.startsWith("[") && e.endsWith("]")) return Je(e);
482
- let n = e.split(Ue);
483
- return qe(n, +(n[0] === "" && n.length > 1), t);
480
+ if (e.startsWith("[") && e.endsWith("]")) return Ke(e);
481
+ let n = e.split(Ve);
482
+ return Ge(n, +(n[0] === "" && n.length > 1), t);
484
483
  },
485
484
  getConflictingClassGroupIds: (e, t) => {
486
485
  if (t) {
487
486
  let t = r[e], i = n[e];
488
- return t ? i ? Be(i, t) : t : i || We;
487
+ return t ? i ? Re(i, t) : t : i || He;
489
488
  }
490
- return n[e] || We;
489
+ return n[e] || He;
491
490
  }
492
491
  };
493
- }, qe = (e, t, n) => {
492
+ }, Ge = (e, t, n) => {
494
493
  if (e.length - t === 0) return n.classGroupId;
495
494
  let r = e[t], i = n.nextPart.get(r);
496
495
  if (i) {
497
- let n = qe(e, t + 1, i);
496
+ let n = Ge(e, t + 1, i);
498
497
  if (n) return n;
499
498
  }
500
499
  let a = n.validators;
501
500
  if (a === null) return;
502
- let o = t === 0 ? e.join(Ue) : e.slice(t).join(Ue), s = a.length;
501
+ let o = t === 0 ? e.join(Ve) : e.slice(t).join(Ve), s = a.length;
503
502
  for (let e = 0; e < s; e++) {
504
503
  let t = a[e];
505
504
  if (t.validator(o)) return t.classGroupId;
506
505
  }
507
- }, Je = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
506
+ }, Ke = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
508
507
  let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
509
- return r ? Ge + r : void 0;
510
- })(), Ye = (e) => {
508
+ return r ? Ue + r : void 0;
509
+ })(), qe = (e) => {
511
510
  let { theme: t, classGroups: n } = e;
512
- return Xe(n, t);
513
- }, Xe = (e, t) => {
514
- let n = He();
511
+ return Je(n, t);
512
+ }, Je = (e, t) => {
513
+ let n = Be();
515
514
  for (let r in e) {
516
515
  let i = e[r];
517
- Ze(i, n, r, t);
516
+ Ye(i, n, r, t);
518
517
  }
519
518
  return n;
520
- }, Ze = (e, t, n, r) => {
519
+ }, Ye = (e, t, n, r) => {
521
520
  let i = e.length;
522
521
  for (let a = 0; a < i; a++) {
523
522
  let i = e[a];
524
- Qe(i, t, n, r);
523
+ Xe(i, t, n, r);
525
524
  }
526
- }, Qe = (e, t, n, r) => {
525
+ }, Xe = (e, t, n, r) => {
527
526
  if (typeof e == "string") {
528
- $e(e, t, n);
527
+ Ze(e, t, n);
529
528
  return;
530
529
  }
531
530
  if (typeof e == "function") {
532
- et(e, t, n, r);
531
+ Qe(e, t, n, r);
533
532
  return;
534
533
  }
535
- tt(e, t, n, r);
536
- }, $e = (e, t, n) => {
537
- let r = e === "" ? t : nt(t, e);
534
+ $e(e, t, n, r);
535
+ }, Ze = (e, t, n) => {
536
+ let r = e === "" ? t : et(t, e);
538
537
  r.classGroupId = n;
539
- }, et = (e, t, n, r) => {
540
- if (rt(e)) {
541
- Ze(e(r), t, n, r);
538
+ }, Qe = (e, t, n, r) => {
539
+ if (tt(e)) {
540
+ Ye(e(r), t, n, r);
542
541
  return;
543
542
  }
544
- t.validators === null && (t.validators = []), t.validators.push(Ve(n, e));
545
- }, tt = (e, t, n, r) => {
543
+ t.validators === null && (t.validators = []), t.validators.push(ze(n, e));
544
+ }, $e = (e, t, n, r) => {
546
545
  let i = Object.entries(e), a = i.length;
547
546
  for (let e = 0; e < a; e++) {
548
547
  let [a, o] = i[e];
549
- Ze(o, nt(t, a), n, r);
548
+ Ye(o, et(t, a), n, r);
550
549
  }
551
- }, nt = (e, t) => {
552
- let n = e, r = t.split(Ue), i = r.length;
550
+ }, et = (e, t) => {
551
+ let n = e, r = t.split(Ve), i = r.length;
553
552
  for (let e = 0; e < i; e++) {
554
553
  let t = r[e], i = n.nextPart.get(t);
555
- i || (i = He(), n.nextPart.set(t, i)), n = i;
554
+ i || (i = Be(), n.nextPart.set(t, i)), n = i;
556
555
  }
557
556
  return n;
558
- }, rt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, it = (e) => {
557
+ }, tt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, nt = (e) => {
559
558
  if (e < 1) return {
560
559
  get: () => void 0,
561
560
  set: () => {}
@@ -573,19 +572,19 @@ var Be = (e, t) => {
573
572
  e in n ? n[e] = t : i(e, t);
574
573
  }
575
574
  };
576
- }, at = "!", ot = ":", st = [], ct = (e, t, n, r, i) => ({
575
+ }, rt = "!", it = ":", at = [], ot = (e, t, n, r, i) => ({
577
576
  modifiers: e,
578
577
  hasImportantModifier: t,
579
578
  baseClassName: n,
580
579
  maybePostfixModifierPosition: r,
581
580
  isExternal: i
582
- }), lt = (e) => {
581
+ }), st = (e) => {
583
582
  let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
584
583
  let t = [], n = 0, r = 0, i = 0, a, o = e.length;
585
584
  for (let s = 0; s < o; s++) {
586
585
  let o = e[s];
587
586
  if (n === 0 && r === 0) {
588
- if (o === ot) {
587
+ if (o === it) {
589
588
  t.push(e.slice(i, s)), i = s + 1;
590
589
  continue;
591
590
  }
@@ -597,13 +596,13 @@ var Be = (e, t) => {
597
596
  o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
598
597
  }
599
598
  let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
600
- s.endsWith(at) ? (c = s.slice(0, -1), l = !0) : s.startsWith(at) && (c = s.slice(1), l = !0);
599
+ s.endsWith(rt) ? (c = s.slice(0, -1), l = !0) : s.startsWith(rt) && (c = s.slice(1), l = !0);
601
600
  let u = a && a > i ? a - i : void 0;
602
- return ct(t, l, c, u);
601
+ return ot(t, l, c, u);
603
602
  };
604
603
  if (t) {
605
- let e = t + ot, n = r;
606
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ct(st, !1, t, void 0, !0);
604
+ let e = t + it, n = r;
605
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ot(at, !1, t, void 0, !0);
607
606
  }
608
607
  if (n) {
609
608
  let e = r;
@@ -613,7 +612,7 @@ var Be = (e, t) => {
613
612
  });
614
613
  }
615
614
  return r;
616
- }, ut = (e) => {
615
+ }, ct = (e) => {
617
616
  let t = /* @__PURE__ */ new Map();
618
617
  return e.orderSensitiveModifiers.forEach((e, n) => {
619
618
  t.set(e, 1e6 + n);
@@ -625,18 +624,18 @@ var Be = (e, t) => {
625
624
  }
626
625
  return r.length > 0 && (r.sort(), n.push(...r)), n;
627
626
  };
628
- }, dt = (e) => ({
629
- cache: it(e.cacheSize),
630
- parseClassName: lt(e),
631
- sortModifiers: ut(e),
632
- postfixLookupClassGroupIds: ft(e),
633
- ...Ke(e)
634
- }), ft = (e) => {
627
+ }, lt = (e) => ({
628
+ cache: nt(e.cacheSize),
629
+ parseClassName: st(e),
630
+ sortModifiers: ct(e),
631
+ postfixLookupClassGroupIds: ut(e),
632
+ ...We(e)
633
+ }), ut = (e) => {
635
634
  let t = Object.create(null), n = e.postfixLookupClassGroups;
636
635
  if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
637
636
  return t;
638
- }, pt = /\s+/, mt = (e, t) => {
639
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(pt), l = "";
637
+ }, dt = /\s+/, ft = (e, t) => {
638
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(dt), l = "";
640
639
  for (let e = c.length - 1; e >= 0; --e) {
641
640
  let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
642
641
  if (u) {
@@ -660,7 +659,7 @@ var Be = (e, t) => {
660
659
  }
661
660
  h = !1;
662
661
  }
663
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + at : _, y = v + g;
662
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + rt : _, y = v + g;
664
663
  if (s.indexOf(y) > -1) continue;
665
664
  s.push(y);
666
665
  let b = i(g, h);
@@ -671,34 +670,34 @@ var Be = (e, t) => {
671
670
  l = t + (l.length > 0 ? " " + l : l);
672
671
  }
673
672
  return l;
674
- }, ht = (...e) => {
673
+ }, pt = (...e) => {
675
674
  let t = 0, n, r, i = "";
676
- for (; t < e.length;) (n = e[t++]) && (r = gt(n)) && (i && (i += " "), i += r);
675
+ for (; t < e.length;) (n = e[t++]) && (r = mt(n)) && (i && (i += " "), i += r);
677
676
  return i;
678
- }, gt = (e) => {
677
+ }, mt = (e) => {
679
678
  if (typeof e == "string") return e;
680
679
  let t, n = "";
681
- for (let r = 0; r < e.length; r++) e[r] && (t = gt(e[r])) && (n && (n += " "), n += t);
680
+ for (let r = 0; r < e.length; r++) e[r] && (t = mt(e[r])) && (n && (n += " "), n += t);
682
681
  return n;
683
- }, _t = (e, ...t) => {
684
- let n, r, i, a, o = (o) => (n = dt(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
682
+ }, ht = (e, ...t) => {
683
+ let n, r, i, a, o = (o) => (n = lt(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
685
684
  let t = r(e);
686
685
  if (t) return t;
687
- let a = mt(e, n);
686
+ let a = ft(e, n);
688
687
  return i(e, a), a;
689
688
  };
690
- return a = o, (...e) => a(ht(...e));
691
- }, vt = [], L = (e) => {
692
- let t = (t) => t[e] || vt;
689
+ return a = o, (...e) => a(pt(...e));
690
+ }, gt = [], B = (e) => {
691
+ let t = (t) => t[e] || gt;
693
692
  return t.isThemeGetter = !0, t;
694
- }, yt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, bt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, xt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, St = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ct = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, wt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Tt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Et = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, R = (e) => xt.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), B = (e) => !!e && Number.isInteger(Number(e)), Dt = (e) => e.endsWith("%") && z(e.slice(0, -1)), V = (e) => St.test(e), Ot = () => !0, kt = (e) => Ct.test(e) && !wt.test(e), At = () => !1, jt = (e) => Tt.test(e), Mt = (e) => Et.test(e), Nt = (e) => !H(e) && !W(e), Pt = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Ft = (e) => G(e, Zt, At), H = (e) => yt.test(e), U = (e) => G(e, Qt, kt), It = (e) => G(e, $t, z), Lt = (e) => G(e, tn, Ot), Rt = (e) => G(e, en, At), zt = (e) => G(e, Yt, At), Bt = (e) => G(e, Xt, Mt), Vt = (e) => G(e, nn, jt), W = (e) => bt.test(e), Ht = (e) => K(e, Qt), Ut = (e) => K(e, en), Wt = (e) => K(e, Yt), Gt = (e) => K(e, Zt), Kt = (e) => K(e, Xt), qt = (e) => K(e, nn, !0), Jt = (e) => K(e, tn, !0), G = (e, t, n) => {
695
- let r = yt.exec(e);
693
+ }, _t = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, vt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, yt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, bt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, xt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, St = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ct = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, V = (e) => yt.test(e), H = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => !!e && Number.isInteger(Number(e)), Tt = (e) => e.endsWith("%") && H(e.slice(0, -1)), W = (e) => bt.test(e), Et = () => !0, Dt = (e) => xt.test(e) && !St.test(e), Ot = () => !1, kt = (e) => Ct.test(e), At = (e) => wt.test(e), jt = (e) => !G(e) && !q(e), Mt = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Nt = (e) => J(e, Yt, Ot), G = (e) => _t.test(e), K = (e) => J(e, Xt, Dt), Pt = (e) => J(e, Zt, H), Ft = (e) => J(e, $t, Et), It = (e) => J(e, Qt, Ot), Lt = (e) => J(e, qt, Ot), Rt = (e) => J(e, Jt, At), zt = (e) => J(e, en, kt), q = (e) => vt.test(e), Bt = (e) => Y(e, Xt), Vt = (e) => Y(e, Qt), Ht = (e) => Y(e, qt), Ut = (e) => Y(e, Yt), Wt = (e) => Y(e, Jt), Gt = (e) => Y(e, en, !0), Kt = (e) => Y(e, $t, !0), J = (e, t, n) => {
694
+ let r = _t.exec(e);
696
695
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
697
- }, K = (e, t, n = !1) => {
698
- let r = bt.exec(e);
696
+ }, Y = (e, t, n = !1) => {
697
+ let r = vt.exec(e);
699
698
  return r ? r[1] ? t(r[1]) : n : !1;
700
- }, Yt = (e) => e === "position" || e === "percentage", Xt = (e) => e === "image" || e === "url", Zt = (e) => e === "length" || e === "size" || e === "bg-size", Qt = (e) => e === "length", $t = (e) => e === "number", en = (e) => e === "family-name", tn = (e) => e === "number" || e === "weight", nn = (e) => e === "shadow", rn = /* @__PURE__ */ _t(() => {
701
- let e = L("color"), t = L("font"), n = L("text"), r = L("font-weight"), i = L("tracking"), a = L("leading"), o = L("breakpoint"), s = L("container"), c = L("spacing"), l = L("radius"), u = L("shadow"), d = L("inset-shadow"), f = L("text-shadow"), p = L("drop-shadow"), m = L("blur"), h = L("perspective"), g = L("aspect"), _ = L("ease"), v = L("animate"), y = () => [
699
+ }, qt = (e) => e === "position" || e === "percentage", Jt = (e) => e === "image" || e === "url", Yt = (e) => e === "length" || e === "size" || e === "bg-size", Xt = (e) => e === "length", Zt = (e) => e === "number", Qt = (e) => e === "family-name", $t = (e) => e === "number" || e === "weight", en = (e) => e === "shadow", tn = /* @__PURE__ */ ht(() => {
700
+ let e = B("color"), t = B("font"), n = B("text"), r = B("font-weight"), i = B("tracking"), a = B("leading"), o = B("breakpoint"), s = B("container"), c = B("spacing"), l = B("radius"), u = B("shadow"), d = B("inset-shadow"), f = B("text-shadow"), p = B("drop-shadow"), m = B("blur"), h = B("perspective"), g = B("aspect"), _ = B("ease"), v = B("animate"), y = () => [
702
701
  "auto",
703
702
  "avoid",
704
703
  "all",
@@ -723,8 +722,8 @@ var Be = (e, t) => {
723
722
  "left-bottom"
724
723
  ], x = () => [
725
724
  ...b(),
726
- W,
727
- H
725
+ q,
726
+ G
728
727
  ], S = () => [
729
728
  "auto",
730
729
  "hidden",
@@ -736,44 +735,44 @@ var Be = (e, t) => {
736
735
  "contain",
737
736
  "none"
738
737
  ], w = () => [
739
- W,
740
- H,
738
+ q,
739
+ G,
741
740
  c
742
741
  ], T = () => [
743
- R,
742
+ V,
744
743
  "full",
745
744
  "auto",
746
745
  ...w()
747
746
  ], E = () => [
748
- B,
747
+ U,
749
748
  "none",
750
749
  "subgrid",
751
- W,
752
- H
750
+ q,
751
+ G
753
752
  ], ee = () => [
754
753
  "auto",
755
754
  { span: [
756
755
  "full",
757
- B,
758
- W,
759
- H
756
+ U,
757
+ q,
758
+ G
760
759
  ] },
761
- B,
762
- W,
763
- H
760
+ U,
761
+ q,
762
+ G
764
763
  ], te = () => [
765
- B,
764
+ U,
766
765
  "auto",
767
- W,
768
- H
766
+ q,
767
+ G
769
768
  ], ne = () => [
770
769
  "auto",
771
770
  "min",
772
771
  "max",
773
772
  "fr",
774
- W,
775
- H
776
- ], D = () => [
773
+ q,
774
+ G
775
+ ], re = () => [
777
776
  "start",
778
777
  "end",
779
778
  "center",
@@ -784,15 +783,15 @@ var Be = (e, t) => {
784
783
  "baseline",
785
784
  "center-safe",
786
785
  "end-safe"
787
- ], O = () => [
786
+ ], D = () => [
788
787
  "start",
789
788
  "end",
790
789
  "center",
791
790
  "stretch",
792
791
  "center-safe",
793
792
  "end-safe"
794
- ], k = () => ["auto", ...w()], A = () => [
795
- R,
793
+ ], O = () => ["auto", ...w()], k = () => [
794
+ V,
796
795
  "auto",
797
796
  "full",
798
797
  "dvw",
@@ -805,8 +804,8 @@ var Be = (e, t) => {
805
804
  "max",
806
805
  "fit",
807
806
  ...w()
808
- ], re = () => [
809
- R,
807
+ ], ie = () => [
808
+ V,
810
809
  "screen",
811
810
  "full",
812
811
  "dvw",
@@ -816,8 +815,8 @@ var Be = (e, t) => {
816
815
  "max",
817
816
  "fit",
818
817
  ...w()
819
- ], ie = () => [
820
- R,
818
+ ], ae = () => [
819
+ V,
821
820
  "screen",
822
821
  "full",
823
822
  "lh",
@@ -828,50 +827,50 @@ var Be = (e, t) => {
828
827
  "max",
829
828
  "fit",
830
829
  ...w()
831
- ], j = () => [
830
+ ], A = () => [
832
831
  e,
833
- W,
834
- H
835
- ], ae = () => [
832
+ q,
833
+ G
834
+ ], oe = () => [
836
835
  ...b(),
837
- Wt,
838
- zt,
839
- { position: [W, H] }
840
- ], oe = () => ["no-repeat", { repeat: [
836
+ Ht,
837
+ Lt,
838
+ { position: [q, G] }
839
+ ], se = () => ["no-repeat", { repeat: [
841
840
  "",
842
841
  "x",
843
842
  "y",
844
843
  "space",
845
844
  "round"
846
- ] }], se = () => [
845
+ ] }], ce = () => [
847
846
  "auto",
848
847
  "cover",
849
848
  "contain",
850
- Gt,
851
- Ft,
852
- { size: [W, H] }
853
- ], ce = () => [
854
- Dt,
855
- Ht,
856
- U
849
+ Ut,
850
+ Nt,
851
+ { size: [q, G] }
852
+ ], j = () => [
853
+ Tt,
854
+ Bt,
855
+ K
857
856
  ], M = () => [
858
857
  "",
859
858
  "none",
860
859
  "full",
861
860
  l,
862
- W,
863
- H
861
+ q,
862
+ G
864
863
  ], N = () => [
865
864
  "",
866
- z,
867
- Ht,
868
- U
869
- ], le = () => [
865
+ H,
866
+ Bt,
867
+ K
868
+ ], P = () => [
870
869
  "solid",
871
870
  "dashed",
872
871
  "dotted",
873
872
  "double"
874
- ], ue = () => [
873
+ ], le = () => [
875
874
  "normal",
876
875
  "multiply",
877
876
  "screen",
@@ -888,33 +887,33 @@ var Be = (e, t) => {
888
887
  "saturation",
889
888
  "color",
890
889
  "luminosity"
891
- ], P = () => [
892
- z,
893
- Dt,
894
- Wt,
895
- zt
896
- ], de = () => [
890
+ ], F = () => [
891
+ H,
892
+ Tt,
893
+ Ht,
894
+ Lt
895
+ ], ue = () => [
897
896
  "",
898
897
  "none",
899
898
  m,
900
- W,
901
- H
902
- ], fe = () => [
899
+ q,
900
+ G
901
+ ], I = () => [
903
902
  "none",
904
- z,
905
- W,
906
- H
907
- ], pe = () => [
903
+ H,
904
+ q,
905
+ G
906
+ ], de = () => [
908
907
  "none",
909
- z,
910
- W,
911
- H
912
- ], me = () => [
913
- z,
914
- W,
915
- H
916
- ], he = () => [
917
- R,
908
+ H,
909
+ q,
910
+ G
911
+ ], fe = () => [
912
+ H,
913
+ q,
914
+ G
915
+ ], L = () => [
916
+ V,
918
917
  "full",
919
918
  ...w()
920
919
  ];
@@ -928,17 +927,17 @@ var Be = (e, t) => {
928
927
  "bounce"
929
928
  ],
930
929
  aspect: ["video"],
931
- blur: [V],
932
- breakpoint: [V],
933
- color: [Ot],
934
- container: [V],
935
- "drop-shadow": [V],
930
+ blur: [W],
931
+ breakpoint: [W],
932
+ color: [Et],
933
+ container: [W],
934
+ "drop-shadow": [W],
936
935
  ease: [
937
936
  "in",
938
937
  "out",
939
938
  "in-out"
940
939
  ],
941
- font: [Nt],
940
+ font: [jt],
942
941
  "font-weight": [
943
942
  "thin",
944
943
  "extralight",
@@ -950,7 +949,7 @@ var Be = (e, t) => {
950
949
  "extrabold",
951
950
  "black"
952
951
  ],
953
- "inset-shadow": [V],
952
+ "inset-shadow": [W],
954
953
  leading: [
955
954
  "none",
956
955
  "tight",
@@ -967,11 +966,11 @@ var Be = (e, t) => {
967
966
  "distant",
968
967
  "none"
969
968
  ],
970
- radius: [V],
971
- shadow: [V],
972
- spacing: ["px", z],
973
- text: [V],
974
- "text-shadow": [V],
969
+ radius: [W],
970
+ shadow: [W],
971
+ spacing: ["px", H],
972
+ text: [W],
973
+ "text-shadow": [W],
975
974
  tracking: [
976
975
  "tighter",
977
976
  "tight",
@@ -985,9 +984,9 @@ var Be = (e, t) => {
985
984
  aspect: [{ aspect: [
986
985
  "auto",
987
986
  "square",
988
- R,
989
- H,
990
- W,
987
+ V,
988
+ G,
989
+ q,
991
990
  g
992
991
  ] }],
993
992
  container: ["container"],
@@ -995,14 +994,14 @@ var Be = (e, t) => {
995
994
  "",
996
995
  "normal",
997
996
  "size",
998
- W,
999
- H
997
+ q,
998
+ G
1000
999
  ] }],
1001
- "container-named": [Pt],
1000
+ "container-named": [Mt],
1002
1001
  columns: [{ columns: [
1003
- z,
1004
1002
  H,
1005
- W,
1003
+ G,
1004
+ q,
1006
1005
  s
1007
1006
  ] }],
1008
1007
  "break-after": [{ "break-after": y() }],
@@ -1099,13 +1098,13 @@ var Be = (e, t) => {
1099
1098
  "collapse"
1100
1099
  ],
1101
1100
  z: [{ z: [
1102
- B,
1101
+ U,
1103
1102
  "auto",
1104
- W,
1105
- H
1103
+ q,
1104
+ G
1106
1105
  ] }],
1107
1106
  basis: [{ basis: [
1108
- R,
1107
+ V,
1109
1108
  "full",
1110
1109
  "auto",
1111
1110
  s,
@@ -1123,32 +1122,32 @@ var Be = (e, t) => {
1123
1122
  "wrap-reverse"
1124
1123
  ] }],
1125
1124
  flex: [{ flex: [
1126
- z,
1127
- R,
1125
+ H,
1126
+ V,
1128
1127
  "auto",
1129
1128
  "initial",
1130
1129
  "none",
1131
- H
1130
+ G
1132
1131
  ] }],
1133
1132
  grow: [{ grow: [
1134
1133
  "",
1135
- z,
1136
- W,
1137
- H
1134
+ H,
1135
+ q,
1136
+ G
1138
1137
  ] }],
1139
1138
  shrink: [{ shrink: [
1140
1139
  "",
1141
- z,
1142
- W,
1143
- H
1140
+ H,
1141
+ q,
1142
+ G
1144
1143
  ] }],
1145
1144
  order: [{ order: [
1146
- B,
1145
+ U,
1147
1146
  "first",
1148
1147
  "last",
1149
1148
  "none",
1150
- W,
1151
- H
1149
+ q,
1150
+ G
1152
1151
  ] }],
1153
1152
  "grid-cols": [{ "grid-cols": E() }],
1154
1153
  "col-start-end": [{ col: ee() }],
@@ -1170,19 +1169,19 @@ var Be = (e, t) => {
1170
1169
  gap: [{ gap: w() }],
1171
1170
  "gap-x": [{ "gap-x": w() }],
1172
1171
  "gap-y": [{ "gap-y": w() }],
1173
- "justify-content": [{ justify: [...D(), "normal"] }],
1174
- "justify-items": [{ "justify-items": [...O(), "normal"] }],
1175
- "justify-self": [{ "justify-self": ["auto", ...O()] }],
1176
- "align-content": [{ content: ["normal", ...D()] }],
1177
- "align-items": [{ items: [...O(), { baseline: ["", "last"] }] }],
1172
+ "justify-content": [{ justify: [...re(), "normal"] }],
1173
+ "justify-items": [{ "justify-items": [...D(), "normal"] }],
1174
+ "justify-self": [{ "justify-self": ["auto", ...D()] }],
1175
+ "align-content": [{ content: ["normal", ...re()] }],
1176
+ "align-items": [{ items: [...D(), { baseline: ["", "last"] }] }],
1178
1177
  "align-self": [{ self: [
1179
1178
  "auto",
1180
- ...O(),
1179
+ ...D(),
1181
1180
  { baseline: ["", "last"] }
1182
1181
  ] }],
1183
- "place-content": [{ "place-content": D() }],
1184
- "place-items": [{ "place-items": [...O(), "baseline"] }],
1185
- "place-self": [{ "place-self": ["auto", ...O()] }],
1182
+ "place-content": [{ "place-content": re() }],
1183
+ "place-items": [{ "place-items": [...D(), "baseline"] }],
1184
+ "place-self": [{ "place-self": ["auto", ...D()] }],
1186
1185
  p: [{ p: w() }],
1187
1186
  px: [{ px: w() }],
1188
1187
  py: [{ py: w() }],
@@ -1194,38 +1193,38 @@ var Be = (e, t) => {
1194
1193
  pr: [{ pr: w() }],
1195
1194
  pb: [{ pb: w() }],
1196
1195
  pl: [{ pl: w() }],
1197
- m: [{ m: k() }],
1198
- mx: [{ mx: k() }],
1199
- my: [{ my: k() }],
1200
- ms: [{ ms: k() }],
1201
- me: [{ me: k() }],
1202
- mbs: [{ mbs: k() }],
1203
- mbe: [{ mbe: k() }],
1204
- mt: [{ mt: k() }],
1205
- mr: [{ mr: k() }],
1206
- mb: [{ mb: k() }],
1207
- ml: [{ ml: k() }],
1196
+ m: [{ m: O() }],
1197
+ mx: [{ mx: O() }],
1198
+ my: [{ my: O() }],
1199
+ ms: [{ ms: O() }],
1200
+ me: [{ me: O() }],
1201
+ mbs: [{ mbs: O() }],
1202
+ mbe: [{ mbe: O() }],
1203
+ mt: [{ mt: O() }],
1204
+ mr: [{ mr: O() }],
1205
+ mb: [{ mb: O() }],
1206
+ ml: [{ ml: O() }],
1208
1207
  "space-x": [{ "space-x": w() }],
1209
1208
  "space-x-reverse": ["space-x-reverse"],
1210
1209
  "space-y": [{ "space-y": w() }],
1211
1210
  "space-y-reverse": ["space-y-reverse"],
1212
- size: [{ size: A() }],
1213
- "inline-size": [{ inline: ["auto", ...re()] }],
1214
- "min-inline-size": [{ "min-inline": ["auto", ...re()] }],
1215
- "max-inline-size": [{ "max-inline": ["none", ...re()] }],
1216
- "block-size": [{ block: ["auto", ...ie()] }],
1217
- "min-block-size": [{ "min-block": ["auto", ...ie()] }],
1218
- "max-block-size": [{ "max-block": ["none", ...ie()] }],
1211
+ size: [{ size: k() }],
1212
+ "inline-size": [{ inline: ["auto", ...ie()] }],
1213
+ "min-inline-size": [{ "min-inline": ["auto", ...ie()] }],
1214
+ "max-inline-size": [{ "max-inline": ["none", ...ie()] }],
1215
+ "block-size": [{ block: ["auto", ...ae()] }],
1216
+ "min-block-size": [{ "min-block": ["auto", ...ae()] }],
1217
+ "max-block-size": [{ "max-block": ["none", ...ae()] }],
1219
1218
  w: [{ w: [
1220
1219
  s,
1221
1220
  "screen",
1222
- ...A()
1221
+ ...k()
1223
1222
  ] }],
1224
1223
  "min-w": [{ "min-w": [
1225
1224
  s,
1226
1225
  "screen",
1227
1226
  "none",
1228
- ...A()
1227
+ ...k()
1229
1228
  ] }],
1230
1229
  "max-w": [{ "max-w": [
1231
1230
  s,
@@ -1233,36 +1232,36 @@ var Be = (e, t) => {
1233
1232
  "none",
1234
1233
  "prose",
1235
1234
  { screen: [o] },
1236
- ...A()
1235
+ ...k()
1237
1236
  ] }],
1238
1237
  h: [{ h: [
1239
1238
  "screen",
1240
1239
  "lh",
1241
- ...A()
1240
+ ...k()
1242
1241
  ] }],
1243
1242
  "min-h": [{ "min-h": [
1244
1243
  "screen",
1245
1244
  "lh",
1246
1245
  "none",
1247
- ...A()
1246
+ ...k()
1248
1247
  ] }],
1249
1248
  "max-h": [{ "max-h": [
1250
1249
  "screen",
1251
1250
  "lh",
1252
- ...A()
1251
+ ...k()
1253
1252
  ] }],
1254
1253
  "font-size": [{ text: [
1255
1254
  "base",
1256
1255
  n,
1257
- Ht,
1258
- U
1256
+ Bt,
1257
+ K
1259
1258
  ] }],
1260
1259
  "font-smoothing": ["antialiased", "subpixel-antialiased"],
1261
1260
  "font-style": ["italic", "not-italic"],
1262
1261
  "font-weight": [{ font: [
1263
1262
  r,
1264
- Jt,
1265
- Lt
1263
+ Kt,
1264
+ Ft
1266
1265
  ] }],
1267
1266
  "font-stretch": [{ "font-stretch": [
1268
1267
  "ultra-condensed",
@@ -1274,15 +1273,15 @@ var Be = (e, t) => {
1274
1273
  "expanded",
1275
1274
  "extra-expanded",
1276
1275
  "ultra-expanded",
1277
- Dt,
1278
- H
1276
+ Tt,
1277
+ G
1279
1278
  ] }],
1280
1279
  "font-family": [{ font: [
1281
- Ut,
1282
- Rt,
1280
+ Vt,
1281
+ It,
1283
1282
  t
1284
1283
  ] }],
1285
- "font-features": [{ "font-features": [H] }],
1284
+ "font-features": [{ "font-features": [G] }],
1286
1285
  "fvn-normal": ["normal-nums"],
1287
1286
  "fvn-ordinal": ["ordinal"],
1288
1287
  "fvn-slashed-zero": ["slashed-zero"],
@@ -1291,28 +1290,28 @@ var Be = (e, t) => {
1291
1290
  "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1292
1291
  tracking: [{ tracking: [
1293
1292
  i,
1294
- W,
1295
- H
1293
+ q,
1294
+ G
1296
1295
  ] }],
1297
1296
  "line-clamp": [{ "line-clamp": [
1298
- z,
1297
+ H,
1299
1298
  "none",
1300
- W,
1301
- It
1299
+ q,
1300
+ Pt
1302
1301
  ] }],
1303
1302
  leading: [{ leading: [a, ...w()] }],
1304
1303
  "list-image": [{ "list-image": [
1305
1304
  "none",
1306
- W,
1307
- H
1305
+ q,
1306
+ G
1308
1307
  ] }],
1309
1308
  "list-style-position": [{ list: ["inside", "outside"] }],
1310
1309
  "list-style-type": [{ list: [
1311
1310
  "disc",
1312
1311
  "decimal",
1313
1312
  "none",
1314
- W,
1315
- H
1313
+ q,
1314
+ G
1316
1315
  ] }],
1317
1316
  "text-alignment": [{ text: [
1318
1317
  "left",
@@ -1322,28 +1321,28 @@ var Be = (e, t) => {
1322
1321
  "start",
1323
1322
  "end"
1324
1323
  ] }],
1325
- "placeholder-color": [{ placeholder: j() }],
1326
- "text-color": [{ text: j() }],
1324
+ "placeholder-color": [{ placeholder: A() }],
1325
+ "text-color": [{ text: A() }],
1327
1326
  "text-decoration": [
1328
1327
  "underline",
1329
1328
  "overline",
1330
1329
  "line-through",
1331
1330
  "no-underline"
1332
1331
  ],
1333
- "text-decoration-style": [{ decoration: [...le(), "wavy"] }],
1332
+ "text-decoration-style": [{ decoration: [...P(), "wavy"] }],
1334
1333
  "text-decoration-thickness": [{ decoration: [
1335
- z,
1334
+ H,
1336
1335
  "from-font",
1337
1336
  "auto",
1338
- W,
1339
- U
1337
+ q,
1338
+ K
1340
1339
  ] }],
1341
- "text-decoration-color": [{ decoration: j() }],
1340
+ "text-decoration-color": [{ decoration: A() }],
1342
1341
  "underline-offset": [{ "underline-offset": [
1343
- z,
1342
+ H,
1344
1343
  "auto",
1345
- W,
1346
- H
1344
+ q,
1345
+ G
1347
1346
  ] }],
1348
1347
  "text-transform": [
1349
1348
  "uppercase",
@@ -1364,9 +1363,9 @@ var Be = (e, t) => {
1364
1363
  ] }],
1365
1364
  indent: [{ indent: w() }],
1366
1365
  "tab-size": [{ tab: [
1367
- B,
1368
- W,
1369
- H
1366
+ U,
1367
+ q,
1368
+ G
1370
1369
  ] }],
1371
1370
  "vertical-align": [{ align: [
1372
1371
  "baseline",
@@ -1377,8 +1376,8 @@ var Be = (e, t) => {
1377
1376
  "text-bottom",
1378
1377
  "sub",
1379
1378
  "super",
1380
- W,
1381
- H
1379
+ q,
1380
+ G
1382
1381
  ] }],
1383
1382
  whitespace: [{ whitespace: [
1384
1383
  "normal",
@@ -1406,8 +1405,8 @@ var Be = (e, t) => {
1406
1405
  ] }],
1407
1406
  content: [{ content: [
1408
1407
  "none",
1409
- W,
1410
- H
1408
+ q,
1409
+ G
1411
1410
  ] }],
1412
1411
  "bg-attachment": [{ bg: [
1413
1412
  "fixed",
@@ -1425,9 +1424,9 @@ var Be = (e, t) => {
1425
1424
  "padding",
1426
1425
  "content"
1427
1426
  ] }],
1428
- "bg-position": [{ bg: ae() }],
1429
- "bg-repeat": [{ bg: oe() }],
1430
- "bg-size": [{ bg: se() }],
1427
+ "bg-position": [{ bg: oe() }],
1428
+ "bg-repeat": [{ bg: se() }],
1429
+ "bg-size": [{ bg: ce() }],
1431
1430
  "bg-image": [{ bg: [
1432
1431
  "none",
1433
1432
  {
@@ -1442,31 +1441,31 @@ var Be = (e, t) => {
1442
1441
  "l",
1443
1442
  "tl"
1444
1443
  ] },
1445
- B,
1446
- W,
1447
- H
1444
+ U,
1445
+ q,
1446
+ G
1448
1447
  ],
1449
1448
  radial: [
1450
1449
  "",
1451
- W,
1452
- H
1450
+ q,
1451
+ G
1453
1452
  ],
1454
1453
  conic: [
1455
- B,
1456
- W,
1457
- H
1454
+ U,
1455
+ q,
1456
+ G
1458
1457
  ]
1459
1458
  },
1460
- Kt,
1461
- Bt
1462
- ] }],
1463
- "bg-color": [{ bg: j() }],
1464
- "gradient-from-pos": [{ from: ce() }],
1465
- "gradient-via-pos": [{ via: ce() }],
1466
- "gradient-to-pos": [{ to: ce() }],
1467
- "gradient-from": [{ from: j() }],
1468
- "gradient-via": [{ via: j() }],
1469
- "gradient-to": [{ to: j() }],
1459
+ Wt,
1460
+ Rt
1461
+ ] }],
1462
+ "bg-color": [{ bg: A() }],
1463
+ "gradient-from-pos": [{ from: j() }],
1464
+ "gradient-via-pos": [{ via: j() }],
1465
+ "gradient-to-pos": [{ to: j() }],
1466
+ "gradient-from": [{ from: A() }],
1467
+ "gradient-via": [{ via: A() }],
1468
+ "gradient-to": [{ to: A() }],
1470
1469
  rounded: [{ rounded: M() }],
1471
1470
  "rounded-s": [{ "rounded-s": M() }],
1472
1471
  "rounded-e": [{ "rounded-e": M() }],
@@ -1498,84 +1497,84 @@ var Be = (e, t) => {
1498
1497
  "divide-y": [{ "divide-y": N() }],
1499
1498
  "divide-y-reverse": ["divide-y-reverse"],
1500
1499
  "border-style": [{ border: [
1501
- ...le(),
1500
+ ...P(),
1502
1501
  "hidden",
1503
1502
  "none"
1504
1503
  ] }],
1505
1504
  "divide-style": [{ divide: [
1506
- ...le(),
1505
+ ...P(),
1507
1506
  "hidden",
1508
1507
  "none"
1509
1508
  ] }],
1510
- "border-color": [{ border: j() }],
1511
- "border-color-x": [{ "border-x": j() }],
1512
- "border-color-y": [{ "border-y": j() }],
1513
- "border-color-s": [{ "border-s": j() }],
1514
- "border-color-e": [{ "border-e": j() }],
1515
- "border-color-bs": [{ "border-bs": j() }],
1516
- "border-color-be": [{ "border-be": j() }],
1517
- "border-color-t": [{ "border-t": j() }],
1518
- "border-color-r": [{ "border-r": j() }],
1519
- "border-color-b": [{ "border-b": j() }],
1520
- "border-color-l": [{ "border-l": j() }],
1521
- "divide-color": [{ divide: j() }],
1509
+ "border-color": [{ border: A() }],
1510
+ "border-color-x": [{ "border-x": A() }],
1511
+ "border-color-y": [{ "border-y": A() }],
1512
+ "border-color-s": [{ "border-s": A() }],
1513
+ "border-color-e": [{ "border-e": A() }],
1514
+ "border-color-bs": [{ "border-bs": A() }],
1515
+ "border-color-be": [{ "border-be": A() }],
1516
+ "border-color-t": [{ "border-t": A() }],
1517
+ "border-color-r": [{ "border-r": A() }],
1518
+ "border-color-b": [{ "border-b": A() }],
1519
+ "border-color-l": [{ "border-l": A() }],
1520
+ "divide-color": [{ divide: A() }],
1522
1521
  "outline-style": [{ outline: [
1523
- ...le(),
1522
+ ...P(),
1524
1523
  "none",
1525
1524
  "hidden"
1526
1525
  ] }],
1527
1526
  "outline-offset": [{ "outline-offset": [
1528
- z,
1529
- W,
1530
- H
1527
+ H,
1528
+ q,
1529
+ G
1531
1530
  ] }],
1532
1531
  "outline-w": [{ outline: [
1533
1532
  "",
1534
- z,
1535
- Ht,
1536
- U
1533
+ H,
1534
+ Bt,
1535
+ K
1537
1536
  ] }],
1538
- "outline-color": [{ outline: j() }],
1537
+ "outline-color": [{ outline: A() }],
1539
1538
  shadow: [{ shadow: [
1540
1539
  "",
1541
1540
  "none",
1542
1541
  u,
1543
- qt,
1544
- Vt
1542
+ Gt,
1543
+ zt
1545
1544
  ] }],
1546
- "shadow-color": [{ shadow: j() }],
1545
+ "shadow-color": [{ shadow: A() }],
1547
1546
  "inset-shadow": [{ "inset-shadow": [
1548
1547
  "none",
1549
1548
  d,
1550
- qt,
1551
- Vt
1549
+ Gt,
1550
+ zt
1552
1551
  ] }],
1553
- "inset-shadow-color": [{ "inset-shadow": j() }],
1552
+ "inset-shadow-color": [{ "inset-shadow": A() }],
1554
1553
  "ring-w": [{ ring: N() }],
1555
1554
  "ring-w-inset": ["ring-inset"],
1556
- "ring-color": [{ ring: j() }],
1557
- "ring-offset-w": [{ "ring-offset": [z, U] }],
1558
- "ring-offset-color": [{ "ring-offset": j() }],
1555
+ "ring-color": [{ ring: A() }],
1556
+ "ring-offset-w": [{ "ring-offset": [H, K] }],
1557
+ "ring-offset-color": [{ "ring-offset": A() }],
1559
1558
  "inset-ring-w": [{ "inset-ring": N() }],
1560
- "inset-ring-color": [{ "inset-ring": j() }],
1559
+ "inset-ring-color": [{ "inset-ring": A() }],
1561
1560
  "text-shadow": [{ "text-shadow": [
1562
1561
  "none",
1563
1562
  f,
1564
- qt,
1565
- Vt
1563
+ Gt,
1564
+ zt
1566
1565
  ] }],
1567
- "text-shadow-color": [{ "text-shadow": j() }],
1566
+ "text-shadow-color": [{ "text-shadow": A() }],
1568
1567
  opacity: [{ opacity: [
1569
- z,
1570
- W,
1571
- H
1568
+ H,
1569
+ q,
1570
+ G
1572
1571
  ] }],
1573
1572
  "mix-blend": [{ "mix-blend": [
1574
- ...ue(),
1573
+ ...le(),
1575
1574
  "plus-darker",
1576
1575
  "plus-lighter"
1577
1576
  ] }],
1578
- "bg-blend": [{ "bg-blend": ue() }],
1577
+ "bg-blend": [{ "bg-blend": le() }],
1579
1578
  "mask-clip": [{ "mask-clip": [
1580
1579
  "border",
1581
1580
  "padding",
@@ -1590,51 +1589,51 @@ var Be = (e, t) => {
1590
1589
  "intersect",
1591
1590
  "exclude"
1592
1591
  ] }],
1593
- "mask-image-linear-pos": [{ "mask-linear": [z] }],
1594
- "mask-image-linear-from-pos": [{ "mask-linear-from": P() }],
1595
- "mask-image-linear-to-pos": [{ "mask-linear-to": P() }],
1596
- "mask-image-linear-from-color": [{ "mask-linear-from": j() }],
1597
- "mask-image-linear-to-color": [{ "mask-linear-to": j() }],
1598
- "mask-image-t-from-pos": [{ "mask-t-from": P() }],
1599
- "mask-image-t-to-pos": [{ "mask-t-to": P() }],
1600
- "mask-image-t-from-color": [{ "mask-t-from": j() }],
1601
- "mask-image-t-to-color": [{ "mask-t-to": j() }],
1602
- "mask-image-r-from-pos": [{ "mask-r-from": P() }],
1603
- "mask-image-r-to-pos": [{ "mask-r-to": P() }],
1604
- "mask-image-r-from-color": [{ "mask-r-from": j() }],
1605
- "mask-image-r-to-color": [{ "mask-r-to": j() }],
1606
- "mask-image-b-from-pos": [{ "mask-b-from": P() }],
1607
- "mask-image-b-to-pos": [{ "mask-b-to": P() }],
1608
- "mask-image-b-from-color": [{ "mask-b-from": j() }],
1609
- "mask-image-b-to-color": [{ "mask-b-to": j() }],
1610
- "mask-image-l-from-pos": [{ "mask-l-from": P() }],
1611
- "mask-image-l-to-pos": [{ "mask-l-to": P() }],
1612
- "mask-image-l-from-color": [{ "mask-l-from": j() }],
1613
- "mask-image-l-to-color": [{ "mask-l-to": j() }],
1614
- "mask-image-x-from-pos": [{ "mask-x-from": P() }],
1615
- "mask-image-x-to-pos": [{ "mask-x-to": P() }],
1616
- "mask-image-x-from-color": [{ "mask-x-from": j() }],
1617
- "mask-image-x-to-color": [{ "mask-x-to": j() }],
1618
- "mask-image-y-from-pos": [{ "mask-y-from": P() }],
1619
- "mask-image-y-to-pos": [{ "mask-y-to": P() }],
1620
- "mask-image-y-from-color": [{ "mask-y-from": j() }],
1621
- "mask-image-y-to-color": [{ "mask-y-to": j() }],
1622
- "mask-image-radial": [{ "mask-radial": [W, H] }],
1623
- "mask-image-radial-from-pos": [{ "mask-radial-from": P() }],
1624
- "mask-image-radial-to-pos": [{ "mask-radial-to": P() }],
1625
- "mask-image-radial-from-color": [{ "mask-radial-from": j() }],
1626
- "mask-image-radial-to-color": [{ "mask-radial-to": j() }],
1592
+ "mask-image-linear-pos": [{ "mask-linear": [H] }],
1593
+ "mask-image-linear-from-pos": [{ "mask-linear-from": F() }],
1594
+ "mask-image-linear-to-pos": [{ "mask-linear-to": F() }],
1595
+ "mask-image-linear-from-color": [{ "mask-linear-from": A() }],
1596
+ "mask-image-linear-to-color": [{ "mask-linear-to": A() }],
1597
+ "mask-image-t-from-pos": [{ "mask-t-from": F() }],
1598
+ "mask-image-t-to-pos": [{ "mask-t-to": F() }],
1599
+ "mask-image-t-from-color": [{ "mask-t-from": A() }],
1600
+ "mask-image-t-to-color": [{ "mask-t-to": A() }],
1601
+ "mask-image-r-from-pos": [{ "mask-r-from": F() }],
1602
+ "mask-image-r-to-pos": [{ "mask-r-to": F() }],
1603
+ "mask-image-r-from-color": [{ "mask-r-from": A() }],
1604
+ "mask-image-r-to-color": [{ "mask-r-to": A() }],
1605
+ "mask-image-b-from-pos": [{ "mask-b-from": F() }],
1606
+ "mask-image-b-to-pos": [{ "mask-b-to": F() }],
1607
+ "mask-image-b-from-color": [{ "mask-b-from": A() }],
1608
+ "mask-image-b-to-color": [{ "mask-b-to": A() }],
1609
+ "mask-image-l-from-pos": [{ "mask-l-from": F() }],
1610
+ "mask-image-l-to-pos": [{ "mask-l-to": F() }],
1611
+ "mask-image-l-from-color": [{ "mask-l-from": A() }],
1612
+ "mask-image-l-to-color": [{ "mask-l-to": A() }],
1613
+ "mask-image-x-from-pos": [{ "mask-x-from": F() }],
1614
+ "mask-image-x-to-pos": [{ "mask-x-to": F() }],
1615
+ "mask-image-x-from-color": [{ "mask-x-from": A() }],
1616
+ "mask-image-x-to-color": [{ "mask-x-to": A() }],
1617
+ "mask-image-y-from-pos": [{ "mask-y-from": F() }],
1618
+ "mask-image-y-to-pos": [{ "mask-y-to": F() }],
1619
+ "mask-image-y-from-color": [{ "mask-y-from": A() }],
1620
+ "mask-image-y-to-color": [{ "mask-y-to": A() }],
1621
+ "mask-image-radial": [{ "mask-radial": [q, G] }],
1622
+ "mask-image-radial-from-pos": [{ "mask-radial-from": F() }],
1623
+ "mask-image-radial-to-pos": [{ "mask-radial-to": F() }],
1624
+ "mask-image-radial-from-color": [{ "mask-radial-from": A() }],
1625
+ "mask-image-radial-to-color": [{ "mask-radial-to": A() }],
1627
1626
  "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
1628
1627
  "mask-image-radial-size": [{ "mask-radial": [{
1629
1628
  closest: ["side", "corner"],
1630
1629
  farthest: ["side", "corner"]
1631
1630
  }] }],
1632
1631
  "mask-image-radial-pos": [{ "mask-radial-at": b() }],
1633
- "mask-image-conic-pos": [{ "mask-conic": [z] }],
1634
- "mask-image-conic-from-pos": [{ "mask-conic-from": P() }],
1635
- "mask-image-conic-to-pos": [{ "mask-conic-to": P() }],
1636
- "mask-image-conic-from-color": [{ "mask-conic-from": j() }],
1637
- "mask-image-conic-to-color": [{ "mask-conic-to": j() }],
1632
+ "mask-image-conic-pos": [{ "mask-conic": [H] }],
1633
+ "mask-image-conic-from-pos": [{ "mask-conic-from": F() }],
1634
+ "mask-image-conic-to-pos": [{ "mask-conic-to": F() }],
1635
+ "mask-image-conic-from-color": [{ "mask-conic-from": A() }],
1636
+ "mask-image-conic-to-color": [{ "mask-conic-to": A() }],
1638
1637
  "mask-mode": [{ mask: [
1639
1638
  "alpha",
1640
1639
  "luminance",
@@ -1648,117 +1647,117 @@ var Be = (e, t) => {
1648
1647
  "stroke",
1649
1648
  "view"
1650
1649
  ] }],
1651
- "mask-position": [{ mask: ae() }],
1652
- "mask-repeat": [{ mask: oe() }],
1653
- "mask-size": [{ mask: se() }],
1650
+ "mask-position": [{ mask: oe() }],
1651
+ "mask-repeat": [{ mask: se() }],
1652
+ "mask-size": [{ mask: ce() }],
1654
1653
  "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1655
1654
  "mask-image": [{ mask: [
1656
1655
  "none",
1657
- W,
1658
- H
1656
+ q,
1657
+ G
1659
1658
  ] }],
1660
1659
  filter: [{ filter: [
1661
1660
  "",
1662
1661
  "none",
1663
- W,
1664
- H
1662
+ q,
1663
+ G
1665
1664
  ] }],
1666
- blur: [{ blur: de() }],
1665
+ blur: [{ blur: ue() }],
1667
1666
  brightness: [{ brightness: [
1668
- z,
1669
- W,
1670
- H
1667
+ H,
1668
+ q,
1669
+ G
1671
1670
  ] }],
1672
1671
  contrast: [{ contrast: [
1673
- z,
1674
- W,
1675
- H
1672
+ H,
1673
+ q,
1674
+ G
1676
1675
  ] }],
1677
1676
  "drop-shadow": [{ "drop-shadow": [
1678
1677
  "",
1679
1678
  "none",
1680
1679
  p,
1681
- qt,
1682
- Vt
1680
+ Gt,
1681
+ zt
1683
1682
  ] }],
1684
- "drop-shadow-color": [{ "drop-shadow": j() }],
1683
+ "drop-shadow-color": [{ "drop-shadow": A() }],
1685
1684
  grayscale: [{ grayscale: [
1686
1685
  "",
1687
- z,
1688
- W,
1689
- H
1686
+ H,
1687
+ q,
1688
+ G
1690
1689
  ] }],
1691
1690
  "hue-rotate": [{ "hue-rotate": [
1692
- z,
1693
- W,
1694
- H
1691
+ H,
1692
+ q,
1693
+ G
1695
1694
  ] }],
1696
1695
  invert: [{ invert: [
1697
1696
  "",
1698
- z,
1699
- W,
1700
- H
1697
+ H,
1698
+ q,
1699
+ G
1701
1700
  ] }],
1702
1701
  saturate: [{ saturate: [
1703
- z,
1704
- W,
1705
- H
1702
+ H,
1703
+ q,
1704
+ G
1706
1705
  ] }],
1707
1706
  sepia: [{ sepia: [
1708
1707
  "",
1709
- z,
1710
- W,
1711
- H
1708
+ H,
1709
+ q,
1710
+ G
1712
1711
  ] }],
1713
1712
  "backdrop-filter": [{ "backdrop-filter": [
1714
1713
  "",
1715
1714
  "none",
1716
- W,
1717
- H
1715
+ q,
1716
+ G
1718
1717
  ] }],
1719
- "backdrop-blur": [{ "backdrop-blur": de() }],
1718
+ "backdrop-blur": [{ "backdrop-blur": ue() }],
1720
1719
  "backdrop-brightness": [{ "backdrop-brightness": [
1721
- z,
1722
- W,
1723
- H
1720
+ H,
1721
+ q,
1722
+ G
1724
1723
  ] }],
1725
1724
  "backdrop-contrast": [{ "backdrop-contrast": [
1726
- z,
1727
- W,
1728
- H
1725
+ H,
1726
+ q,
1727
+ G
1729
1728
  ] }],
1730
1729
  "backdrop-grayscale": [{ "backdrop-grayscale": [
1731
1730
  "",
1732
- z,
1733
- W,
1734
- H
1731
+ H,
1732
+ q,
1733
+ G
1735
1734
  ] }],
1736
1735
  "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
1737
- z,
1738
- W,
1739
- H
1736
+ H,
1737
+ q,
1738
+ G
1740
1739
  ] }],
1741
1740
  "backdrop-invert": [{ "backdrop-invert": [
1742
1741
  "",
1743
- z,
1744
- W,
1745
- H
1742
+ H,
1743
+ q,
1744
+ G
1746
1745
  ] }],
1747
1746
  "backdrop-opacity": [{ "backdrop-opacity": [
1748
- z,
1749
- W,
1750
- H
1747
+ H,
1748
+ q,
1749
+ G
1751
1750
  ] }],
1752
1751
  "backdrop-saturate": [{ "backdrop-saturate": [
1753
- z,
1754
- W,
1755
- H
1752
+ H,
1753
+ q,
1754
+ G
1756
1755
  ] }],
1757
1756
  "backdrop-sepia": [{ "backdrop-sepia": [
1758
1757
  "",
1759
- z,
1760
- W,
1761
- H
1758
+ H,
1759
+ q,
1760
+ G
1762
1761
  ] }],
1763
1762
  "border-collapse": [{ border: ["collapse", "separate"] }],
1764
1763
  "border-spacing": [{ "border-spacing": w() }],
@@ -1774,56 +1773,56 @@ var Be = (e, t) => {
1774
1773
  "shadow",
1775
1774
  "transform",
1776
1775
  "none",
1777
- W,
1778
- H
1776
+ q,
1777
+ G
1779
1778
  ] }],
1780
1779
  "transition-behavior": [{ transition: ["normal", "discrete"] }],
1781
1780
  duration: [{ duration: [
1782
- z,
1781
+ H,
1783
1782
  "initial",
1784
- W,
1785
- H
1783
+ q,
1784
+ G
1786
1785
  ] }],
1787
1786
  ease: [{ ease: [
1788
1787
  "linear",
1789
1788
  "initial",
1790
1789
  _,
1791
- W,
1792
- H
1790
+ q,
1791
+ G
1793
1792
  ] }],
1794
1793
  delay: [{ delay: [
1795
- z,
1796
- W,
1797
- H
1794
+ H,
1795
+ q,
1796
+ G
1798
1797
  ] }],
1799
1798
  animate: [{ animate: [
1800
1799
  "none",
1801
1800
  v,
1802
- W,
1803
- H
1801
+ q,
1802
+ G
1804
1803
  ] }],
1805
1804
  backface: [{ backface: ["hidden", "visible"] }],
1806
1805
  perspective: [{ perspective: [
1807
1806
  h,
1808
- W,
1809
- H
1807
+ q,
1808
+ G
1810
1809
  ] }],
1811
1810
  "perspective-origin": [{ "perspective-origin": x() }],
1812
- rotate: [{ rotate: fe() }],
1813
- "rotate-x": [{ "rotate-x": fe() }],
1814
- "rotate-y": [{ "rotate-y": fe() }],
1815
- "rotate-z": [{ "rotate-z": fe() }],
1816
- scale: [{ scale: pe() }],
1817
- "scale-x": [{ "scale-x": pe() }],
1818
- "scale-y": [{ "scale-y": pe() }],
1819
- "scale-z": [{ "scale-z": pe() }],
1811
+ rotate: [{ rotate: I() }],
1812
+ "rotate-x": [{ "rotate-x": I() }],
1813
+ "rotate-y": [{ "rotate-y": I() }],
1814
+ "rotate-z": [{ "rotate-z": I() }],
1815
+ scale: [{ scale: de() }],
1816
+ "scale-x": [{ "scale-x": de() }],
1817
+ "scale-y": [{ "scale-y": de() }],
1818
+ "scale-z": [{ "scale-z": de() }],
1820
1819
  "scale-3d": ["scale-3d"],
1821
- skew: [{ skew: me() }],
1822
- "skew-x": [{ "skew-x": me() }],
1823
- "skew-y": [{ "skew-y": me() }],
1820
+ skew: [{ skew: fe() }],
1821
+ "skew-x": [{ "skew-x": fe() }],
1822
+ "skew-y": [{ "skew-y": fe() }],
1824
1823
  transform: [{ transform: [
1825
- W,
1826
- H,
1824
+ q,
1825
+ G,
1827
1826
  "",
1828
1827
  "none",
1829
1828
  "gpu",
@@ -1831,19 +1830,19 @@ var Be = (e, t) => {
1831
1830
  ] }],
1832
1831
  "transform-origin": [{ origin: x() }],
1833
1832
  "transform-style": [{ transform: ["3d", "flat"] }],
1834
- translate: [{ translate: he() }],
1835
- "translate-x": [{ "translate-x": he() }],
1836
- "translate-y": [{ "translate-y": he() }],
1837
- "translate-z": [{ "translate-z": he() }],
1833
+ translate: [{ translate: L() }],
1834
+ "translate-x": [{ "translate-x": L() }],
1835
+ "translate-y": [{ "translate-y": L() }],
1836
+ "translate-z": [{ "translate-z": L() }],
1838
1837
  "translate-none": ["translate-none"],
1839
1838
  zoom: [{ zoom: [
1840
- B,
1841
- W,
1842
- H
1839
+ U,
1840
+ q,
1841
+ G
1843
1842
  ] }],
1844
- accent: [{ accent: j() }],
1843
+ accent: [{ accent: A() }],
1845
1844
  appearance: [{ appearance: ["none", "auto"] }],
1846
- "caret-color": [{ caret: j() }],
1845
+ "caret-color": [{ caret: A() }],
1847
1846
  "color-scheme": [{ scheme: [
1848
1847
  "normal",
1849
1848
  "dark",
@@ -1889,8 +1888,8 @@ var Be = (e, t) => {
1889
1888
  "nwse-resize",
1890
1889
  "zoom-in",
1891
1890
  "zoom-out",
1892
- W,
1893
- H
1891
+ q,
1892
+ G
1894
1893
  ] }],
1895
1894
  "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
1896
1895
  "pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -1901,8 +1900,8 @@ var Be = (e, t) => {
1901
1900
  "x"
1902
1901
  ] }],
1903
1902
  "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1904
- "scrollbar-thumb-color": [{ "scrollbar-thumb": j() }],
1905
- "scrollbar-track-color": [{ "scrollbar-track": j() }],
1903
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": A() }],
1904
+ "scrollbar-track-color": [{ "scrollbar-track": A() }],
1906
1905
  "scrollbar-gutter": [{ "scrollbar-gutter": [
1907
1906
  "auto",
1908
1907
  "stable",
@@ -1976,17 +1975,17 @@ var Be = (e, t) => {
1976
1975
  "scroll",
1977
1976
  "contents",
1978
1977
  "transform",
1979
- W,
1980
- H
1978
+ q,
1979
+ G
1981
1980
  ] }],
1982
- fill: [{ fill: ["none", ...j()] }],
1981
+ fill: [{ fill: ["none", ...A()] }],
1983
1982
  "stroke-w": [{ stroke: [
1984
- z,
1985
- Ht,
1986
- U,
1987
- It
1983
+ H,
1984
+ Bt,
1985
+ K,
1986
+ Pt
1988
1987
  ] }],
1989
- stroke: [{ stroke: ["none", ...j()] }],
1988
+ stroke: [{ stroke: ["none", ...A()] }],
1990
1989
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1991
1990
  },
1992
1991
  conflictingClassGroups: {
@@ -2175,32 +2174,32 @@ var Be = (e, t) => {
2175
2174
  });
2176
2175
  //#endregion
2177
2176
  //#region src/lib/utils.ts
2178
- function an(...e) {
2179
- return rn(ze(e));
2177
+ function nn(...e) {
2178
+ return tn(Le(e));
2180
2179
  }
2181
2180
  //#endregion
2182
2181
  //#region src/components/table/data-table.tsx
2183
- function on({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a }) {
2184
- let [o, s] = r, c = g({
2182
+ function rn({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a }) {
2183
+ let [o, s] = r, c = _({
2185
2184
  data: t,
2186
2185
  columns: e,
2187
2186
  state: { rowSelection: o },
2188
2187
  getRowId: n,
2189
2188
  enableRowSelection: !0,
2190
2189
  onRowSelectionChange: s,
2191
- getCoreRowModel: m()
2192
- }), { t: l } = f(), h = a?.Table ?? ve, _ = a?.TableHeader ?? ye, v = a?.TableBody ?? be, y = a?.TableRow ?? xe, b = a?.TableHead ?? Se, x = a?.TableCell ?? Ce;
2193
- return /* @__PURE__ */ d(h, { children: [/* @__PURE__ */ u(_, { children: c.getHeaderGroups().map((e) => /* @__PURE__ */ u(y, { children: e.headers.map((e) => /* @__PURE__ */ u(b, {
2194
- className: an(e.column.columnDef.meta?.className),
2195
- children: e.isPlaceholder ? null : p(e.column.columnDef.header, e.getContext())
2196
- }, e.id)) }, e.id)) }), /* @__PURE__ */ u(v, { children: c.getRowModel().rows?.length ? c.getRowModel().rows.map((e) => /* @__PURE__ */ u(y, {
2190
+ getCoreRowModel: h()
2191
+ }), { t: l } = p(), u = a?.Table ?? ge, g = a?.TableHeader ?? _e, v = a?.TableBody ?? ve, y = a?.TableRow ?? ye, b = a?.TableHead ?? be, x = a?.TableCell ?? xe;
2192
+ return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(g, { children: c.getHeaderGroups().map((e) => /* @__PURE__ */ d(y, { children: e.headers.map((e) => /* @__PURE__ */ d(b, {
2193
+ className: nn(e.column.columnDef.meta?.className),
2194
+ children: e.isPlaceholder ? null : m(e.column.columnDef.header, e.getContext())
2195
+ }, e.id)) }, e.id)) }), /* @__PURE__ */ d(v, { children: c.getRowModel().rows?.length ? c.getRowModel().rows.map((e) => /* @__PURE__ */ d(y, {
2197
2196
  "data-state": e.getIsSelected() && "selected",
2198
2197
  onClick: () => i(e.original),
2199
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ u(x, {
2200
- className: an(e.column.columnDef.meta?.className),
2201
- children: p(e.column.columnDef.cell, e.getContext())
2198
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ d(x, {
2199
+ className: nn(e.column.columnDef.meta?.className),
2200
+ children: m(e.column.columnDef.cell, e.getContext())
2202
2201
  }, e.id))
2203
- }, e.id)) : /* @__PURE__ */ u(y, { children: /* @__PURE__ */ u(x, {
2202
+ }, e.id)) : /* @__PURE__ */ d(y, { children: /* @__PURE__ */ d(x, {
2204
2203
  colSpan: e.length,
2205
2204
  className: "h-24 text-center",
2206
2205
  children: l("libs:no_results")
@@ -2208,8 +2207,8 @@ function on({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, c
2208
2207
  }
2209
2208
  //#endregion
2210
2209
  //#region src/components/table/data-table-grouped.tsx
2211
- function sn({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a, indentSize: o = 24 }) {
2212
- let [s, c] = r, l = g({
2210
+ function an({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a, indentSize: o = 24 }) {
2211
+ let [s, c] = r, l = _({
2213
2212
  data: t,
2214
2213
  columns: e,
2215
2214
  state: {
@@ -2220,39 +2219,39 @@ function sn({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, c
2220
2219
  enableRowSelection: !0,
2221
2220
  onRowSelectionChange: c,
2222
2221
  getSubRows: (e) => e.subRows,
2223
- getCoreRowModel: m(),
2224
- getExpandedRowModel: h()
2225
- }), { t: _ } = f(), v = a?.Table ?? ve, y = a?.TableHeader ?? ye, b = a?.TableBody ?? be, x = a?.TableRow ?? xe, S = a?.TableHead ?? Se, C = a?.TableCell ?? Ce;
2226
- return /* @__PURE__ */ d(v, {
2222
+ getCoreRowModel: h(),
2223
+ getExpandedRowModel: g()
2224
+ }), { t: u } = p(), v = a?.Table ?? ge, y = a?.TableHeader ?? _e, b = a?.TableBody ?? ve, x = a?.TableRow ?? ye, S = a?.TableHead ?? be, C = a?.TableCell ?? xe;
2225
+ return /* @__PURE__ */ f(v, {
2227
2226
  style: { width: "100%" },
2228
- children: [/* @__PURE__ */ u(y, { children: l.getHeaderGroups().map((e) => /* @__PURE__ */ u(x, { children: e.headers.map((e) => /* @__PURE__ */ u(S, {
2229
- className: an(e.column.columnDef.meta?.className),
2230
- children: e.isPlaceholder ? null : p(e.column.columnDef.header, e.getContext())
2231
- }, e.id)) }, e.id)) }), /* @__PURE__ */ u(b, { children: l.getRowModel().rows?.length ? l.getRowModel().rows.map((e) => /* @__PURE__ */ u(x, {
2227
+ children: [/* @__PURE__ */ d(y, { children: l.getHeaderGroups().map((e) => /* @__PURE__ */ d(x, { children: e.headers.map((e) => /* @__PURE__ */ d(S, {
2228
+ className: nn(e.column.columnDef.meta?.className),
2229
+ children: e.isPlaceholder ? null : m(e.column.columnDef.header, e.getContext())
2230
+ }, e.id)) }, e.id)) }), /* @__PURE__ */ d(b, { children: l.getRowModel().rows?.length ? l.getRowModel().rows.map((e) => /* @__PURE__ */ d(x, {
2232
2231
  id: e.id,
2233
2232
  "data-state": e.getIsSelected() && "selected",
2234
2233
  onClick: () => i(e.original),
2235
2234
  children: e.getVisibleCells().map((t, n) => {
2236
2235
  let r = n === 0 ? e.depth * o : 0;
2237
- return /* @__PURE__ */ d(C, {
2238
- className: an(t.column.columnDef.meta?.className),
2236
+ return /* @__PURE__ */ f(C, {
2237
+ className: nn(t.column.columnDef.meta?.className),
2239
2238
  style: { paddingLeft: r ? `${r}px` : void 0 },
2240
- children: [n === 0 && e.depth > 0 && /* @__PURE__ */ u("span", {
2239
+ children: [n === 0 && e.depth > 0 && /* @__PURE__ */ d("span", {
2241
2240
  className: "mr-2 text-muted-foreground",
2242
2241
  children: "↳"
2243
- }), p(t.column.columnDef.cell, t.getContext())]
2242
+ }), m(t.column.columnDef.cell, t.getContext())]
2244
2243
  }, t.id);
2245
2244
  })
2246
- }, e.id)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(C, {
2245
+ }, e.id)) : /* @__PURE__ */ d(x, { children: /* @__PURE__ */ d(C, {
2247
2246
  colSpan: e.length,
2248
2247
  className: "h-24 text-center",
2249
- children: _("libs:no_results")
2248
+ children: u("libs:no_results")
2250
2249
  }) }) })]
2251
2250
  });
2252
2251
  }
2253
2252
  //#endregion
2254
2253
  //#region src/components/icon/AnimatedSwapIcon.tsx
2255
- var cn = {
2254
+ var on = {
2256
2255
  initial: {
2257
2256
  opacity: 0,
2258
2257
  scale: .9
@@ -2270,24 +2269,24 @@ var cn = {
2270
2269
  ease: "easeOut"
2271
2270
  }
2272
2271
  };
2273
- function ln({ loading: e, loadingNode: t, idleNode: r, className: i = "w-6 h-6 flex flex-row items-center justify-center", motionProps: a }) {
2274
- return /* @__PURE__ */ u("div", {
2272
+ function sn({ loading: e, loadingNode: t, idleNode: n, className: i = "w-6 h-6 flex flex-row items-center justify-center", motionProps: a }) {
2273
+ return /* @__PURE__ */ d("div", {
2275
2274
  className: i,
2276
- children: /* @__PURE__ */ u(s, {
2275
+ children: /* @__PURE__ */ d(c, {
2277
2276
  mode: "popLayout",
2278
2277
  initial: !1,
2279
- children: /* @__PURE__ */ n(l.div, {
2280
- ...cn,
2278
+ children: /* @__PURE__ */ r(u.div, {
2279
+ ...on,
2281
2280
  ...a,
2282
2281
  key: e ? "loading" : "idle"
2283
- }, e ? t : r)
2282
+ }, e ? t : n)
2284
2283
  })
2285
2284
  });
2286
2285
  }
2287
2286
  //#endregion
2288
2287
  //#region src/components/selector/BaseDateTimeSelector.tsx
2289
- function un(e) {
2290
- let { t } = f(), n = e.date ? [
2288
+ function cn(e) {
2289
+ let { t } = p(), n = e.date ? [
2291
2290
  String(e.date.getHours()).padStart(2, "0"),
2292
2291
  String(e.date.getMinutes()).padStart(2, "0"),
2293
2292
  String(e.date.getSeconds()).padStart(2, "0")
@@ -2305,43 +2304,43 @@ function un(e) {
2305
2304
  }, i = (t) => {
2306
2305
  let [n = "0", r = "0", i = "0"] = t.split(":"), a = e.date ? new Date(e.date) : /* @__PURE__ */ new Date();
2307
2306
  a.setHours(Number(n), Number(r), Number(i), 0), e.setDate(a);
2308
- }, a = e.components?.Calendar ?? Ae, o = e.components?.Field ?? se, s = e.components?.FieldLabel ?? ce, c = e.components?.FieldGroup ?? je, l = e.components?.InputGroup ?? Me, p = e.components?.InputGroupInput ?? Ne, m = e.components?.InputGroupAddon ?? Pe, h = e.components?.TimeIcon ?? Fe;
2309
- return /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u(a, {
2307
+ }, a = e.components?.Calendar ?? Oe, o = e.components?.Field ?? j, s = e.components?.FieldLabel ?? M, c = e.components?.FieldGroup ?? ke, l = e.components?.InputGroup ?? Ae, u = e.components?.InputGroupInput ?? je, m = e.components?.InputGroupAddon ?? Me, h = e.components?.TimeIcon ?? Ne;
2308
+ return /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d(a, {
2310
2309
  mode: "single",
2311
2310
  captionLayout: "dropdown",
2312
2311
  defaultMonth: e.date,
2313
2312
  selected: e.date,
2314
2313
  onSelect: r
2315
- }), /* @__PURE__ */ u(c, {
2314
+ }), /* @__PURE__ */ d(c, {
2316
2315
  className: "border-t p-4",
2317
- children: /* @__PURE__ */ d(o, { children: [/* @__PURE__ */ u(s, {
2316
+ children: /* @__PURE__ */ f(o, { children: [/* @__PURE__ */ d(s, {
2318
2317
  htmlFor: "time",
2319
2318
  children: t("libs:time")
2320
- }), /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(p, {
2319
+ }), /* @__PURE__ */ f(l, { children: [/* @__PURE__ */ d(u, {
2321
2320
  id: "time",
2322
2321
  type: "time",
2323
2322
  step: "1",
2324
2323
  value: n,
2325
2324
  onChange: (e) => i(e.target.value),
2326
2325
  className: "appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
2327
- }), /* @__PURE__ */ u(m, { children: /* @__PURE__ */ u(h, { className: "text-muted-foreground" }) })] })] })
2326
+ }), /* @__PURE__ */ d(m, { children: /* @__PURE__ */ d(h, { className: "text-muted-foreground" }) })] })] })
2328
2327
  })] });
2329
2328
  }
2330
2329
  //#endregion
2331
2330
  //#region src/components/dialog/BaseDeleteAlertDialog.tsx
2332
- function dn(e) {
2333
- let { t } = f(), n = e.components?.AlertDialog ?? we, r = e.components?.AlertDialogContent ?? Te, i = e.components?.AlertDialogHeader ?? Ee, a = e.components?.AlertDialogTitle ?? De, o = e.components?.AlertDialogDescription ?? Oe, s = e.components?.AlertDialogFooter ?? ke, c = e.components?.Button ?? de;
2334
- return /* @__PURE__ */ u(n, {
2331
+ function ln(e) {
2332
+ let { t } = p(), n = e.components?.AlertDialog ?? Se, r = e.components?.AlertDialogContent ?? Ce, i = e.components?.AlertDialogHeader ?? we, a = e.components?.AlertDialogTitle ?? Te, o = e.components?.AlertDialogDescription ?? Ee, s = e.components?.AlertDialogFooter ?? De, c = e.components?.Button ?? I;
2333
+ return /* @__PURE__ */ d(n, {
2335
2334
  open: e.visible,
2336
2335
  onOpenChange: e.onVisibleChange,
2337
- children: /* @__PURE__ */ d(r, {
2336
+ children: /* @__PURE__ */ f(r, {
2338
2337
  role: "alertdialog",
2339
2338
  "aria-modal": "true",
2340
- children: [/* @__PURE__ */ d(i, { children: [/* @__PURE__ */ u(a, { children: t("libs:delete_dialog_title") }), /* @__PURE__ */ u(o, { children: t("libs:delete_dialog_desc") })] }), /* @__PURE__ */ d(s, { children: [/* @__PURE__ */ u(c, {
2339
+ children: [/* @__PURE__ */ f(i, { children: [/* @__PURE__ */ d(a, { children: t("libs:delete_dialog_title") }), /* @__PURE__ */ d(o, { children: t("libs:delete_dialog_desc") })] }), /* @__PURE__ */ f(s, { children: [/* @__PURE__ */ d(c, {
2341
2340
  variant: "outline",
2342
2341
  onClick: () => e.onVisibleChange(!1),
2343
2342
  children: t("libs:cancel")
2344
- }), /* @__PURE__ */ u(c, {
2343
+ }), /* @__PURE__ */ d(c, {
2345
2344
  variant: "destructive",
2346
2345
  onClick: e.onConfirm,
2347
2346
  children: t("libs:confirm")
@@ -2351,16 +2350,16 @@ function dn(e) {
2351
2350
  }
2352
2351
  //#endregion
2353
2352
  //#region src/components/dialog/BaseRouterPromptAlertDialog.tsx
2354
- function fn(e) {
2355
- let { t } = f(), n = e.components?.AlertDialog ?? we, r = e.components?.AlertDialogContent ?? Te, i = e.components?.AlertDialogHeader ?? Ee, a = e.components?.AlertDialogTitle ?? De, o = e.components?.AlertDialogDescription ?? Oe, s = e.components?.AlertDialogFooter ?? ke, c = e.components?.Button ?? de;
2356
- return /* @__PURE__ */ u(n, {
2353
+ function un(e) {
2354
+ let { t } = p(), n = e.components?.AlertDialog ?? Se, r = e.components?.AlertDialogContent ?? Ce, i = e.components?.AlertDialogHeader ?? we, a = e.components?.AlertDialogTitle ?? Te, o = e.components?.AlertDialogDescription ?? Ee, s = e.components?.AlertDialogFooter ?? De, c = e.components?.Button ?? I;
2355
+ return /* @__PURE__ */ d(n, {
2357
2356
  open: e.visible,
2358
2357
  onOpenChange: e.onVisibleChange,
2359
- children: /* @__PURE__ */ d(r, { children: [/* @__PURE__ */ d(i, { children: [/* @__PURE__ */ u(a, { children: t("libs:quit_warning_title") }), /* @__PURE__ */ u(o, { children: t("libs:quite_warning_desc") })] }), /* @__PURE__ */ d(s, { children: [/* @__PURE__ */ u(c, {
2358
+ children: /* @__PURE__ */ f(r, { children: [/* @__PURE__ */ f(i, { children: [/* @__PURE__ */ d(a, { children: t("libs:quit_warning_title") }), /* @__PURE__ */ d(o, { children: t("libs:quite_warning_desc") })] }), /* @__PURE__ */ f(s, { children: [/* @__PURE__ */ d(c, {
2360
2359
  variant: "outline",
2361
2360
  onClick: () => e.onVisibleChange(!1),
2362
2361
  children: t("libs:cancel")
2363
- }), /* @__PURE__ */ u(c, {
2362
+ }), /* @__PURE__ */ d(c, {
2364
2363
  variant: "destructive",
2365
2364
  onClick: e.onConfirm,
2366
2365
  children: t("libs:confirm")
@@ -2368,1317 +2367,704 @@ function fn(e) {
2368
2367
  });
2369
2368
  }
2370
2369
  //#endregion
2371
- //#region node_modules/react-router/dist/development/chunk-QUQL4437.mjs
2372
- function q(e, t) {
2373
- if (e === !1 || e == null) throw Error(t);
2374
- }
2375
- function J(e, t) {
2376
- if (!e) {
2377
- typeof console < "u" && console.warn(t);
2378
- try {
2379
- throw Error(t);
2380
- } catch {}
2381
- }
2382
- }
2383
- function pn({ pathname: e = "/", search: t = "", hash: n = "" }) {
2384
- return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
2385
- }
2386
- function mn(e) {
2387
- let t = {};
2388
- if (e) {
2389
- let n = e.indexOf("#");
2390
- n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));
2391
- let r = e.indexOf("?");
2392
- r >= 0 && (t.search = e.substring(r), e = e.substring(0, r)), e && (t.pathname = e);
2370
+ //#region node_modules/react-fast-compare/index.js
2371
+ var dn = /* @__PURE__ */ A(((e, t) => {
2372
+ var n = typeof Element < "u", r = typeof Map == "function", i = typeof Set == "function", a = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
2373
+ function o(e, t) {
2374
+ if (e === t) return !0;
2375
+ if (e && t && typeof e == "object" && typeof t == "object") {
2376
+ if (e.constructor !== t.constructor) return !1;
2377
+ var s, c, l;
2378
+ if (Array.isArray(e)) {
2379
+ if (s = e.length, s != t.length) return !1;
2380
+ for (c = s; c-- !== 0;) if (!o(e[c], t[c])) return !1;
2381
+ return !0;
2382
+ }
2383
+ var u;
2384
+ if (r && e instanceof Map && t instanceof Map) {
2385
+ if (e.size !== t.size) return !1;
2386
+ for (u = e.entries(); !(c = u.next()).done;) if (!t.has(c.value[0])) return !1;
2387
+ for (u = e.entries(); !(c = u.next()).done;) if (!o(c.value[1], t.get(c.value[0]))) return !1;
2388
+ return !0;
2389
+ }
2390
+ if (i && e instanceof Set && t instanceof Set) {
2391
+ if (e.size !== t.size) return !1;
2392
+ for (u = e.entries(); !(c = u.next()).done;) if (!t.has(c.value[0])) return !1;
2393
+ return !0;
2394
+ }
2395
+ if (a && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
2396
+ if (s = e.length, s != t.length) return !1;
2397
+ for (c = s; c-- !== 0;) if (e[c] !== t[c]) return !1;
2398
+ return !0;
2399
+ }
2400
+ if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
2401
+ if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
2402
+ if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
2403
+ if (l = Object.keys(e), s = l.length, s !== Object.keys(t).length) return !1;
2404
+ for (c = s; c-- !== 0;) if (!Object.prototype.hasOwnProperty.call(t, l[c])) return !1;
2405
+ if (n && e instanceof Element) return !1;
2406
+ for (c = s; c-- !== 0;) if (!((l[c] === "_owner" || l[c] === "__v" || l[c] === "__o") && e.$$typeof) && !o(e[l[c]], t[l[c]])) return !1;
2407
+ return !0;
2408
+ }
2409
+ return e !== e && t !== t;
2393
2410
  }
2394
- return t;
2395
- }
2396
- function hn(e, t, n = "/") {
2397
- return gn(e, t, n, !1);
2398
- }
2399
- function gn(e, t, n, r, i) {
2400
- let a = Y((typeof t == "string" ? mn(t) : t).pathname || "/", n);
2401
- if (a == null) return null;
2402
- let o = i ?? vn(e), s = null, c = Pn(a);
2403
- for (let e = 0; s == null && e < o.length; ++e) s = jn(o[e], c, r);
2404
- return s;
2405
- }
2406
- function _n(e, t) {
2407
- let { route: n, pathname: r, params: i } = e;
2408
- return {
2409
- id: n.id,
2410
- pathname: r,
2411
- params: i,
2412
- data: t[n.id],
2413
- loaderData: t[n.id],
2414
- handle: n.handle
2415
- };
2416
- }
2417
- function vn(e) {
2418
- let t = yn(e);
2419
- return xn(t), t;
2420
- }
2421
- function yn(e, t = [], n = [], r = "", i = !1) {
2422
- let a = (e, a, o = i, s) => {
2423
- let c = {
2424
- relativePath: s === void 0 ? e.path || "" : s,
2425
- caseSensitive: e.caseSensitive === !0,
2426
- childrenIndex: a,
2427
- route: e
2428
- };
2429
- if (c.relativePath.startsWith("/")) {
2430
- if (!c.relativePath.startsWith(r) && o) return;
2431
- q(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
2411
+ t.exports = function(e, t) {
2412
+ try {
2413
+ return o(e, t);
2414
+ } catch (e) {
2415
+ if ((e.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1;
2416
+ throw e;
2432
2417
  }
2433
- let l = X([r, c.relativePath]), u = n.concat(c);
2434
- e.children && e.children.length > 0 && (q(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), yn(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
2435
- path: l,
2436
- score: kn(l, e.index),
2437
- routesMeta: u
2438
- });
2439
2418
  };
2440
- return e.forEach((e, t) => {
2441
- if (e.path === "" || !e.path?.includes("?")) a(e, t);
2442
- else for (let n of bn(e.path)) a(e, t, !0, n);
2443
- }), t;
2444
- }
2445
- function bn(e) {
2446
- let t = e.split("/");
2447
- if (t.length === 0) return [];
2448
- let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
2449
- if (r.length === 0) return i ? [a, ""] : [a];
2450
- let o = bn(r.join("/")), s = [];
2451
- return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
2452
- }
2453
- function xn(e) {
2454
- e.sort((e, t) => e.score === t.score ? An(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
2455
- }
2456
- var Sn = /^:[\w-]+$/, Cn = 3, wn = 2, Tn = 1, En = 10, Dn = -2, On = (e) => e === "*";
2457
- function kn(e, t) {
2458
- let n = e.split("/"), r = n.length;
2459
- return n.some(On) && (r += Dn), t && (r += wn), n.filter((e) => !On(e)).reduce((e, t) => e + (Sn.test(t) ? Cn : t === "" ? Tn : En), r);
2460
- }
2461
- function An(e, t) {
2462
- return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
2463
- }
2464
- function jn(e, t, n = !1) {
2465
- let { routesMeta: r } = e, i = {}, a = "/", o = [];
2466
- for (let e = 0; e < r.length; ++e) {
2467
- let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = Mn({
2468
- path: s.relativePath,
2469
- caseSensitive: s.caseSensitive,
2470
- end: c
2471
- }, l), d = s.route;
2472
- if (!u && c && n && !r[r.length - 1].route.index && (u = Mn({
2473
- path: s.relativePath,
2474
- caseSensitive: s.caseSensitive,
2475
- end: !1
2476
- }, l)), !u) return null;
2477
- Object.assign(i, u.params), o.push({
2478
- params: i,
2479
- pathname: X([a, u.pathname]),
2480
- pathnameBase: Wn(X([a, u.pathnameBase])),
2481
- route: d
2482
- }), u.pathnameBase !== "/" && (a = X([a, u.pathnameBase]));
2483
- }
2484
- return o;
2485
- }
2486
- function Mn(e, t) {
2487
- typeof e == "string" && (e = {
2488
- path: e,
2489
- caseSensitive: !1,
2490
- end: !0
2491
- });
2492
- let [n, r] = Nn(e.path, e.caseSensitive, e.end), i = t.match(n);
2493
- if (!i) return null;
2494
- let a = i[0], o = a.replace(/(.)\/+$/, "$1"), s = i.slice(1);
2495
- return {
2496
- params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
2497
- if (t === "*") {
2498
- let e = s[r] || "";
2499
- o = a.slice(0, a.length - e.length).replace(/(.)\/+$/, "$1");
2419
+ })), fn = /* @__PURE__ */ A(((e, t) => {
2420
+ t.exports = function(e, t, n, r, i, a, o, s) {
2421
+ if (process.env.NODE_ENV !== "production" && t === void 0) throw Error("invariant requires an error message argument");
2422
+ if (!e) {
2423
+ var c;
2424
+ if (t === void 0) c = /* @__PURE__ */ Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
2425
+ else {
2426
+ var l = [
2427
+ n,
2428
+ r,
2429
+ i,
2430
+ a,
2431
+ o,
2432
+ s
2433
+ ], u = 0;
2434
+ c = Error(t.replace(/%s/g, function() {
2435
+ return l[u++];
2436
+ })), c.name = "Invariant Violation";
2500
2437
  }
2501
- let i = s[r];
2502
- return n && !i ? e[t] = void 0 : e[t] = (i || "").replace(/%2F/g, "/"), e;
2503
- }, {}),
2504
- pathname: a,
2505
- pathnameBase: o,
2506
- pattern: e
2438
+ throw c.framesToPop = 1, c;
2439
+ }
2507
2440
  };
2508
- }
2509
- function Nn(e, t = !1, n = !0) {
2510
- J(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
2511
- let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
2512
- if (r.push({
2513
- paramName: t,
2514
- isOptional: n != null
2515
- }), n) {
2516
- let t = a.charAt(i + e.length);
2517
- return t && t !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";
2441
+ })), pn = /* @__PURE__ */ A(((e, t) => {
2442
+ t.exports = function(e, t, n, r) {
2443
+ var i = n ? n.call(r, e, t) : void 0;
2444
+ if (i !== void 0) return !!i;
2445
+ if (e === t) return !0;
2446
+ if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
2447
+ var a = Object.keys(e), o = Object.keys(t);
2448
+ if (a.length !== o.length) return !1;
2449
+ for (var s = Object.prototype.hasOwnProperty.bind(t), c = 0; c < a.length; c++) {
2450
+ var l = a[c];
2451
+ if (!s(l)) return !1;
2452
+ var u = e[l], d = t[l];
2453
+ if (i = n ? n.call(r, u, d, l) : void 0, i === !1 || i === void 0 && u !== d) return !1;
2518
2454
  }
2519
- return "/([^\\/]+)";
2520
- }).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
2521
- return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
2522
- }
2523
- function Pn(e) {
2524
- try {
2525
- return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
2526
- } catch (t) {
2527
- return J(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
2528
- }
2529
- }
2530
- function Y(e, t) {
2531
- if (t === "/") return e;
2532
- if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
2533
- let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
2534
- return r && r !== "/" ? null : e.slice(n) || "/";
2535
- }
2536
- var Fn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
2537
- function In(e, t = "/") {
2538
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? mn(e) : e, a;
2539
- return n ? (n = Hn(n), a = n.startsWith("/") ? Ln(n.substring(1), "/") : Ln(n, t)) : a = t, {
2540
- pathname: a,
2541
- search: Gn(r),
2542
- hash: Kn(i)
2455
+ return !0;
2543
2456
  };
2544
- }
2545
- function Ln(e, t) {
2546
- let n = Un(t).split("/");
2547
- return e.split("/").forEach((e) => {
2548
- e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
2549
- }), n.length > 1 ? n.join("/") : "/";
2550
- }
2551
- function Rn(e, t, n, r) {
2552
- return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
2553
- }
2554
- function zn(e) {
2555
- return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
2556
- }
2557
- function Bn(e) {
2558
- let t = zn(e);
2559
- return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
2560
- }
2561
- function Vn(e, t, n, r = !1) {
2562
- let i;
2563
- typeof e == "string" ? i = mn(e) : (i = { ...e }, q(!i.pathname || !i.pathname.includes("?"), Rn("?", "pathname", "search", i)), q(!i.pathname || !i.pathname.includes("#"), Rn("#", "pathname", "hash", i)), q(!i.search || !i.search.includes("#"), Rn("#", "search", "hash", i)));
2564
- let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
2565
- if (o == null) s = n;
2566
- else {
2567
- let e = t.length - 1;
2568
- if (!r && o.startsWith("..")) {
2569
- let t = o.split("/");
2570
- for (; t[0] === "..";) t.shift(), --e;
2571
- i.pathname = t.join("/");
2457
+ })), mn = /* @__PURE__ */ se(dn()), hn = /* @__PURE__ */ se(fn()), gn = /* @__PURE__ */ se(pn()), _n = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(_n || {}), vn = {
2458
+ link: { rel: [
2459
+ "amphtml",
2460
+ "canonical",
2461
+ "alternate"
2462
+ ] },
2463
+ script: { type: ["application/ld+json"] },
2464
+ meta: {
2465
+ charset: "",
2466
+ name: [
2467
+ "generator",
2468
+ "robots",
2469
+ "description"
2470
+ ],
2471
+ property: [
2472
+ "og:type",
2473
+ "og:title",
2474
+ "og:url",
2475
+ "og:image",
2476
+ "og:image:alt",
2477
+ "og:description",
2478
+ "twitter:url",
2479
+ "twitter:title",
2480
+ "twitter:description",
2481
+ "twitter:image",
2482
+ "twitter:image:alt",
2483
+ "twitter:card",
2484
+ "twitter:site"
2485
+ ]
2486
+ }
2487
+ }, yn = Object.values(_n), bn = {
2488
+ accesskey: "accessKey",
2489
+ charset: "charSet",
2490
+ class: "className",
2491
+ contenteditable: "contentEditable",
2492
+ contextmenu: "contextMenu",
2493
+ "http-equiv": "httpEquiv",
2494
+ itemprop: "itemProp",
2495
+ tabindex: "tabIndex"
2496
+ }, xn = Object.entries(bn).reduce((e, [t, n]) => (e[n] = t, e), {}), X = "data-rh", Z = {
2497
+ DEFAULT_TITLE: "defaultTitle",
2498
+ DEFER: "defer",
2499
+ ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
2500
+ ON_CHANGE_CLIENT_STATE: "onChangeClientState",
2501
+ TITLE_TEMPLATE: "titleTemplate",
2502
+ PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
2503
+ }, Sn = (e, t) => {
2504
+ for (let n = e.length - 1; n >= 0; --n) {
2505
+ let r = e[n];
2506
+ if (Object.prototype.hasOwnProperty.call(r, t)) return r[t];
2507
+ }
2508
+ return null;
2509
+ }, Cn = (e) => {
2510
+ let t = Sn(e, "title"), n = Sn(e, Z.TITLE_TEMPLATE);
2511
+ if (Array.isArray(t) && (t = t.join("")), n && t) return n.replace(/%s/g, () => t);
2512
+ let r = Sn(e, Z.DEFAULT_TITLE);
2513
+ return t || r || void 0;
2514
+ }, wn = (e) => Sn(e, Z.ON_CHANGE_CLIENT_STATE) || (() => {}), Tn = (e, t) => t.filter((t) => t[e] !== void 0).map((t) => t[e]).reduce((e, t) => ({
2515
+ ...e,
2516
+ ...t
2517
+ }), {}), En = (e, t) => t.filter((e) => e.base !== void 0).map((e) => e.base).reverse().reduce((t, n) => {
2518
+ if (!t.length) {
2519
+ let r = Object.keys(n);
2520
+ for (let i = 0; i < r.length; i += 1) {
2521
+ let a = r[i].toLowerCase();
2522
+ if (e.indexOf(a) !== -1 && n[a]) return t.concat(n);
2572
2523
  }
2573
- s = e >= 0 ? t[e] : "/";
2574
2524
  }
2575
- let c = In(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
2576
- return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
2577
- }
2578
- var Hn = (e) => e.replace(/\/\/+/g, "/"), X = (e) => Hn(e.join("/")), Un = (e) => e.replace(/\/+$/, ""), Wn = (e) => Un(e).replace(/^\/*/, "/"), Gn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Kn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, qn = class {
2579
- constructor(e, t, n, r = !1) {
2580
- this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
2525
+ return t;
2526
+ }, []), Dn = (e) => console && typeof console.warn == "function" && console.warn(e), On = (e, t, n) => {
2527
+ let r = {};
2528
+ return n.filter((t) => Array.isArray(t[e]) ? !0 : (t[e] !== void 0 && Dn(`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`), !1)).map((t) => t[e]).reverse().reduce((e, n) => {
2529
+ let i = {};
2530
+ n.filter((e) => {
2531
+ let n, a = Object.keys(e);
2532
+ for (let r = 0; r < a.length; r += 1) {
2533
+ let i = a[r], o = i.toLowerCase();
2534
+ t.indexOf(o) !== -1 && !(n === "rel" && e[n].toLowerCase() === "canonical") && !(o === "rel" && e[o].toLowerCase() === "stylesheet") && (n = o), t.indexOf(i) !== -1 && (i === "innerHTML" || i === "cssText" || i === "itemprop") && (n = i);
2535
+ }
2536
+ if (!n || !e[n]) return !1;
2537
+ let o = e[n].toLowerCase();
2538
+ return r[n] || (r[n] = {}), i[n] || (i[n] = {}), r[n][o] ? !1 : (i[n][o] = !0, !0);
2539
+ }).reverse().forEach((t) => e.push(t));
2540
+ let a = Object.keys(i);
2541
+ for (let e = 0; e < a.length; e += 1) {
2542
+ let t = a[e];
2543
+ r[t] = {
2544
+ ...r[t],
2545
+ ...i[t]
2546
+ };
2547
+ }
2548
+ return e;
2549
+ }, []).reverse();
2550
+ }, kn = (e, t) => {
2551
+ if (Array.isArray(e) && e.length) {
2552
+ for (let n = 0; n < e.length; n += 1) if (e[n][t]) return !0;
2581
2553
  }
2582
- };
2583
- function Jn(e) {
2584
- return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
2585
- }
2586
- function Yn(e) {
2587
- return X(e.map((e) => e.route.path).filter(Boolean)) || "/";
2588
- }
2589
- var Xn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
2590
- function Zn(e, t) {
2591
- let n = e;
2592
- if (typeof n != "string" || !Fn.test(n)) return {
2593
- absoluteURL: void 0,
2594
- isExternal: !1,
2595
- to: n
2554
+ return !1;
2555
+ }, An = (e) => ({
2556
+ baseTag: En(["href"], e),
2557
+ bodyAttributes: Tn("bodyAttributes", e),
2558
+ defer: Sn(e, Z.DEFER),
2559
+ encode: Sn(e, Z.ENCODE_SPECIAL_CHARACTERS),
2560
+ htmlAttributes: Tn("htmlAttributes", e),
2561
+ linkTags: On("link", ["rel", "href"], e),
2562
+ metaTags: On("meta", [
2563
+ "name",
2564
+ "charset",
2565
+ "http-equiv",
2566
+ "property",
2567
+ "itemprop"
2568
+ ], e),
2569
+ noscriptTags: On("noscript", ["innerHTML"], e),
2570
+ onChangeClientState: wn(e),
2571
+ scriptTags: On("script", ["src", "innerHTML"], e),
2572
+ styleTags: On("style", ["cssText"], e),
2573
+ title: Cn(e),
2574
+ titleAttributes: Tn("titleAttributes", e),
2575
+ prioritizeSeoTags: kn(e, Z.PRIORITIZE_SEO_TAGS)
2576
+ }), jn = (e) => Array.isArray(e) ? e.join("") : e, Mn = (e, t) => {
2577
+ let n = Object.keys(e);
2578
+ for (let r = 0; r < n.length; r += 1) if (t[n[r]] && t[n[r]].includes(e[n[r]])) return !0;
2579
+ return !1;
2580
+ }, Nn = (e, t) => Array.isArray(e) ? e.reduce((e, n) => (Mn(n, t) ? e.priority.push(n) : e.default.push(n), e), {
2581
+ priority: [],
2582
+ default: []
2583
+ }) : {
2584
+ default: e,
2585
+ priority: []
2586
+ }, Pn = (e, t) => ({
2587
+ ...e,
2588
+ [t]: void 0
2589
+ }), Fn = [
2590
+ "noscript",
2591
+ "script",
2592
+ "style"
2593
+ ], In = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), Ln = (e) => Object.keys(e).reduce((t, n) => {
2594
+ let r = e[n] === void 0 ? `${n}` : `${n}="${e[n]}"`;
2595
+ return t ? `${t} ${r}` : r;
2596
+ }, ""), Rn = (e, t, n, r) => {
2597
+ let i = Ln(n), a = jn(t);
2598
+ return i ? `<${e} ${X}="true" ${i}>${In(a, r)}</${e}>` : `<${e} ${X}="true">${In(a, r)}</${e}>`;
2599
+ }, zn = (e, t, n = !0) => t.reduce((t, r) => {
2600
+ let i = r, a = Object.keys(i).filter((e) => !(e === "innerHTML" || e === "cssText")).reduce((e, t) => {
2601
+ let r = i[t] === void 0 ? t : `${t}="${In(i[t], n)}"`;
2602
+ return e ? `${e} ${r}` : r;
2603
+ }, ""), o = i.innerHTML || i.cssText || "";
2604
+ return `${t}<${e} ${X}="true" ${a}${Fn.indexOf(e) === -1 ? "/>" : `>${o}</${e}>`}`;
2605
+ }, ""), Bn = (e, t = {}) => Object.keys(e).reduce((t, n) => {
2606
+ let r = bn[n];
2607
+ return t[r || n] = e[n], t;
2608
+ }, t), Vn = (t, n, r) => {
2609
+ let i = Bn(r, {
2610
+ key: n,
2611
+ [X]: !0
2612
+ });
2613
+ return [e.createElement("title", i, n)];
2614
+ }, Hn = (t, n) => n.map((n, r) => {
2615
+ let i = {
2616
+ key: r,
2617
+ [X]: !0
2596
2618
  };
2597
- let r = n, i = !1;
2598
- if (Xn) try {
2599
- let e = new URL(window.location.href), r = n.startsWith("//") ? new URL(e.protocol + n) : new URL(n), a = Y(r.pathname, t);
2600
- r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
2601
- } catch {
2602
- J(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
2619
+ return Object.keys(n).forEach((e) => {
2620
+ let t = bn[e] || e;
2621
+ t === "innerHTML" || t === "cssText" ? i.dangerouslySetInnerHTML = { __html: n.innerHTML || n.cssText } : i[t] = n[e];
2622
+ }), e.createElement(t, i);
2623
+ }), Q = (e, t, n = !0) => {
2624
+ switch (e) {
2625
+ case "title": return {
2626
+ toComponent: () => Vn(e, t.title, t.titleAttributes),
2627
+ toString: () => Rn(e, t.title, t.titleAttributes, n)
2628
+ };
2629
+ case "bodyAttributes":
2630
+ case "htmlAttributes": return {
2631
+ toComponent: () => Bn(t),
2632
+ toString: () => Ln(t)
2633
+ };
2634
+ default: return {
2635
+ toComponent: () => Hn(e, t),
2636
+ toString: () => zn(e, t, n)
2637
+ };
2603
2638
  }
2639
+ }, Un = ({ metaTags: e, linkTags: t, scriptTags: n, encode: r }) => {
2640
+ let i = Nn(e, vn.meta), a = Nn(t, vn.link), o = Nn(n, vn.script);
2604
2641
  return {
2605
- absoluteURL: r,
2606
- isExternal: i,
2607
- to: n
2642
+ priorityMethods: {
2643
+ toComponent: () => [
2644
+ ...Hn("meta", i.priority),
2645
+ ...Hn("link", a.priority),
2646
+ ...Hn("script", o.priority)
2647
+ ],
2648
+ toString: () => `${Q("meta", i.priority, r)} ${Q("link", a.priority, r)} ${Q("script", o.priority, r)}`
2649
+ },
2650
+ metaTags: i.default,
2651
+ linkTags: a.default,
2652
+ scriptTags: o.default
2608
2653
  };
2609
- }
2610
- Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
2611
- var Qn = [
2612
- "POST",
2613
- "PUT",
2614
- "PATCH",
2615
- "DELETE"
2616
- ];
2617
- new Set(Qn);
2618
- var $n = ["GET", ...Qn];
2619
- new Set($n);
2620
- var er = e.createContext(null);
2621
- er.displayName = "DataRouter";
2622
- var tr = e.createContext(null);
2623
- tr.displayName = "DataRouterState";
2624
- var nr = e.createContext(!1);
2625
- function rr() {
2626
- return e.useContext(nr);
2627
- }
2628
- var ir = e.createContext({ isTransitioning: !1 });
2629
- ir.displayName = "ViewTransition";
2630
- var ar = e.createContext(/* @__PURE__ */ new Map());
2631
- ar.displayName = "Fetchers";
2632
- var or = e.createContext(null);
2633
- or.displayName = "Await";
2634
- var Z = e.createContext(null);
2635
- Z.displayName = "Navigation";
2636
- var sr = e.createContext(null);
2637
- sr.displayName = "Location";
2638
- var Q = e.createContext({
2639
- outlet: null,
2640
- matches: [],
2641
- isDataRoute: !1
2642
- });
2643
- Q.displayName = "Route";
2644
- var cr = e.createContext(null);
2645
- cr.displayName = "RouteError";
2646
- var lr = "REACT_ROUTER_ERROR", ur = "REDIRECT", dr = "ROUTE_ERROR_RESPONSE";
2647
- function fr(e) {
2648
- if (e.startsWith(`${lr}:${ur}:{`)) try {
2649
- let t = JSON.parse(e.slice(28));
2650
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
2651
- } catch {}
2652
- }
2653
- function pr(e) {
2654
- if (e.startsWith(`${lr}:${dr}:{`)) try {
2655
- let t = JSON.parse(e.slice(40));
2656
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new qn(t.status, t.statusText, t.data);
2657
- } catch {}
2658
- }
2659
- function mr(t, { relative: n } = {}) {
2660
- q(hr(), "useHref() may be used only in the context of a <Router> component.");
2661
- let { basename: r, navigator: i } = e.useContext(Z), { hash: a, pathname: o, search: s } = br(t, { relative: n }), c = o;
2662
- return r !== "/" && (c = o === "/" ? r : X([r, o])), i.createHref({
2663
- pathname: c,
2664
- search: s,
2665
- hash: a
2666
- });
2667
- }
2668
- function hr() {
2669
- return e.useContext(sr) != null;
2670
- }
2671
- function $() {
2672
- return q(hr(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(sr).location;
2673
- }
2674
- var gr = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
2675
- function _r(t) {
2676
- e.useContext(Z).static || e.useLayoutEffect(t);
2677
- }
2678
- function vr() {
2679
- let { isDataRoute: t } = e.useContext(Q);
2680
- return t ? Rr() : yr();
2681
- }
2682
- function yr() {
2683
- q(hr(), "useNavigate() may be used only in the context of a <Router> component.");
2684
- let t = e.useContext(er), { basename: n, navigator: r } = e.useContext(Z), { matches: i } = e.useContext(Q), { pathname: a } = $(), o = JSON.stringify(Bn(i)), s = e.useRef(!1);
2685
- return _r(() => {
2686
- s.current = !0;
2687
- }), e.useCallback((e, i = {}) => {
2688
- if (J(s.current, gr), !s.current) return;
2689
- if (typeof e == "number") {
2690
- r.go(e);
2691
- return;
2654
+ }, Wn = (e) => {
2655
+ let { baseTag: t, bodyAttributes: n, encode: r = !0, htmlAttributes: i, noscriptTags: a, styleTags: o, title: s = "", titleAttributes: c, prioritizeSeoTags: l } = e, { linkTags: u, metaTags: d, scriptTags: f } = e, p = {
2656
+ toComponent: () => [],
2657
+ toString: () => ""
2658
+ };
2659
+ return l && ({priorityMethods: p, linkTags: u, metaTags: d, scriptTags: f} = Un(e)), {
2660
+ priority: p,
2661
+ base: Q("base", t, r),
2662
+ bodyAttributes: Q("bodyAttributes", n, r),
2663
+ htmlAttributes: Q("htmlAttributes", i, r),
2664
+ link: Q("link", u, r),
2665
+ meta: Q("meta", d, r),
2666
+ noscript: Q("noscript", a, r),
2667
+ script: Q("script", f, r),
2668
+ style: Q("style", o, r),
2669
+ title: Q("title", {
2670
+ title: s,
2671
+ titleAttributes: c
2672
+ }, r)
2673
+ };
2674
+ }, Gn = [], Kn = !!(typeof window < "u" && window.document && window.document.createElement), qn = class {
2675
+ instances = [];
2676
+ canUseDOM = Kn;
2677
+ context;
2678
+ value = {
2679
+ setHelmet: (e) => {
2680
+ this.context.helmet = e;
2681
+ },
2682
+ helmetInstances: {
2683
+ get: () => this.canUseDOM ? Gn : this.instances,
2684
+ add: (e) => {
2685
+ (this.canUseDOM ? Gn : this.instances).push(e);
2686
+ },
2687
+ remove: (e) => {
2688
+ let t = (this.canUseDOM ? Gn : this.instances).indexOf(e);
2689
+ (this.canUseDOM ? Gn : this.instances).splice(t, 1);
2690
+ }
2692
2691
  }
2693
- let c = Vn(e, JSON.parse(o), a, i.relative === "path");
2694
- t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : X([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
2695
- }, [
2696
- n,
2697
- r,
2698
- o,
2699
- a,
2700
- t
2701
- ]);
2702
- }
2703
- e.createContext(null);
2704
- function br(t, { relative: n } = {}) {
2705
- let { matches: r } = e.useContext(Q), { pathname: i } = $(), a = JSON.stringify(Bn(r));
2706
- return e.useMemo(() => Vn(t, JSON.parse(a), i, n === "path"), [
2707
- t,
2708
- a,
2709
- i,
2710
- n
2711
- ]);
2712
- }
2713
- function xr(t, n, r) {
2714
- q(hr(), "useRoutes() may be used only in the context of a <Router> component.");
2715
- let { navigator: i } = e.useContext(Z), { matches: a } = e.useContext(Q), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
2716
- {
2717
- let e = u && u.path || "";
2718
- Br(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2719
-
2720
- Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
2721
- }
2722
- let d = $(), f;
2723
- if (n) {
2724
- let e = typeof n == "string" ? mn(n) : n;
2725
- q(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
2726
- } else f = d;
2727
- let p = f.pathname || "/", m = p;
2728
- if (l !== "/") {
2729
- let e = l.replace(/^\//, "").split("/");
2730
- m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
2692
+ };
2693
+ constructor(e, t) {
2694
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = Wn({
2695
+ baseTag: [],
2696
+ bodyAttributes: {},
2697
+ encodeSpecialCharacters: !0,
2698
+ htmlAttributes: {},
2699
+ linkTags: [],
2700
+ metaTags: [],
2701
+ noscriptTags: [],
2702
+ scriptTags: [],
2703
+ styleTags: [],
2704
+ title: "",
2705
+ titleAttributes: {}
2706
+ }));
2731
2707
  }
2732
- let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : hn(t, { pathname: m });
2733
- J(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), J(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
2734
- let g = Or(h && h.map((e) => Object.assign({}, e, {
2735
- params: Object.assign({}, s, e.params),
2736
- pathname: X([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
2737
- pathnameBase: e.pathnameBase === "/" ? l : X([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
2738
- })), a, r);
2739
- return n && g ? /* @__PURE__ */ e.createElement(sr.Provider, { value: {
2740
- location: {
2741
- pathname: "/",
2742
- search: "",
2743
- hash: "",
2744
- state: null,
2745
- key: "default",
2746
- mask: void 0,
2747
- ...f
2748
- },
2749
- navigationType: "POP"
2750
- } }, g) : g;
2751
- }
2752
- function Sr() {
2753
- let t = Lr(), n = Jn(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
2754
- padding: "0.5rem",
2755
- backgroundColor: i
2756
- }, o = {
2757
- padding: "2px 4px",
2758
- backgroundColor: i
2759
- }, s = null;
2760
- return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
2761
- }
2762
- var Cr = /* @__PURE__ */ e.createElement(Sr, null), wr = class extends e.Component {
2708
+ }, Jn = parseInt(e.version.split(".")[0], 10) >= 19, Yn = e.createContext({}), Xn = class n extends t {
2709
+ static canUseDOM = Kn;
2710
+ helmetData;
2763
2711
  constructor(e) {
2764
- super(e), this.state = {
2765
- location: e.location,
2766
- revalidation: e.revalidation,
2767
- error: e.error
2768
- };
2712
+ super(e), Jn ? this.helmetData = null : this.helmetData = new qn(this.props.context || {}, n.canUseDOM);
2769
2713
  }
2770
- static getDerivedStateFromError(e) {
2771
- return { error: e };
2714
+ render() {
2715
+ return Jn ? /* @__PURE__ */ e.createElement(e.Fragment, null, this.props.children) : /* @__PURE__ */ e.createElement(Yn.Provider, { value: this.helmetData.value }, this.props.children);
2772
2716
  }
2773
- static getDerivedStateFromProps(e, t) {
2774
- return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
2775
- error: e.error,
2776
- location: e.location,
2777
- revalidation: e.revalidation
2778
- } : {
2779
- error: e.error === void 0 ? t.error : e.error,
2780
- location: t.location,
2781
- revalidation: e.revalidation || t.revalidation
2782
- };
2717
+ }, Zn = (e, t) => {
2718
+ let n = document.head || document.querySelector("head"), r = n.querySelectorAll(`${e}[${X}]`), i = [].slice.call(r), a = [], o;
2719
+ return t && t.length && t.forEach((t) => {
2720
+ let n = document.createElement(e);
2721
+ for (let e in t) if (Object.prototype.hasOwnProperty.call(t, e)) if (e === "innerHTML") n.innerHTML = t.innerHTML;
2722
+ else if (e === "cssText") {
2723
+ let e = t.cssText;
2724
+ n.appendChild(document.createTextNode(e));
2725
+ } else {
2726
+ let r = e, i = t[r] === void 0 ? "" : t[r];
2727
+ n.setAttribute(e, i);
2728
+ }
2729
+ n.setAttribute(X, "true"), i.some((e, t) => (o = t, n.isEqualNode(e))) ? i.splice(o, 1) : a.push(n);
2730
+ }), i.forEach((e) => e.parentNode?.removeChild(e)), a.forEach((e) => n.appendChild(e)), {
2731
+ oldTags: i,
2732
+ newTags: a
2733
+ };
2734
+ }, Qn = (e, t) => {
2735
+ let n = document.getElementsByTagName(e)[0];
2736
+ if (!n) return;
2737
+ let r = n.getAttribute(X), i = r ? r.split(",") : [], a = [...i], o = Object.keys(t);
2738
+ for (let e of o) {
2739
+ let r = t[e] || "";
2740
+ n.getAttribute(e) !== r && n.setAttribute(e, r), i.indexOf(e) === -1 && i.push(e);
2741
+ let o = a.indexOf(e);
2742
+ o !== -1 && a.splice(o, 1);
2783
2743
  }
2784
- componentDidCatch(e, t) {
2785
- this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);
2744
+ for (let e = a.length - 1; e >= 0; --e) n.removeAttribute(a[e]);
2745
+ i.length === a.length ? n.removeAttribute(X) : n.getAttribute(X) !== o.join(",") && n.setAttribute(X, o.join(","));
2746
+ }, $n = (e, t) => {
2747
+ e !== void 0 && document.title !== e && (document.title = jn(e)), Qn("title", t);
2748
+ }, er = (e, t) => {
2749
+ let { baseTag: n, bodyAttributes: r, htmlAttributes: i, linkTags: a, metaTags: o, noscriptTags: s, onChangeClientState: c, scriptTags: l, styleTags: u, title: d, titleAttributes: f } = e;
2750
+ Qn("body", r), Qn("html", i), $n(d, f);
2751
+ let p = {
2752
+ baseTag: Zn("base", n),
2753
+ linkTags: Zn("link", a),
2754
+ metaTags: Zn("meta", o),
2755
+ noscriptTags: Zn("noscript", s),
2756
+ scriptTags: Zn("script", l),
2757
+ styleTags: Zn("style", u)
2758
+ }, m = {}, h = {};
2759
+ Object.keys(p).forEach((e) => {
2760
+ let { newTags: t, oldTags: n } = p[e];
2761
+ t.length && (m[e] = t), n.length && (h[e] = p[e].oldTags);
2762
+ }), t && t(), c(e, m, h);
2763
+ }, tr = null, nr = (e) => {
2764
+ tr && cancelAnimationFrame(tr), e.defer ? tr = requestAnimationFrame(() => {
2765
+ er(e, () => {
2766
+ tr = null;
2767
+ });
2768
+ }) : (er(e), tr = null);
2769
+ }, rr = class extends t {
2770
+ rendered = !1;
2771
+ shouldComponentUpdate(e) {
2772
+ return !(0, gn.default)(e, this.props);
2786
2773
  }
2787
- render() {
2788
- let t = this.state.error;
2789
- if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
2790
- let e = pr(t.digest);
2791
- e && (t = e);
2792
- }
2793
- let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Q.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(cr.Provider, {
2794
- value: t,
2795
- children: this.props.component
2774
+ componentDidUpdate() {
2775
+ this.emitChange();
2776
+ }
2777
+ componentWillUnmount() {
2778
+ let { helmetInstances: e } = this.props.context;
2779
+ e.remove(this), this.emitChange();
2780
+ }
2781
+ emitChange() {
2782
+ let { helmetInstances: e, setHelmet: t } = this.props.context, n = null, r = An(e.get().map((e) => {
2783
+ let { context: t, ...n } = e.props;
2784
+ return n;
2796
2785
  }));
2797
- return this.context ? /* @__PURE__ */ e.createElement(Er, { error: t }, n) : n;
2786
+ Xn.canUseDOM ? nr(r) : Wn && (n = Wn(r)), t(n);
2798
2787
  }
2799
- };
2800
- wr.contextType = nr;
2801
- var Tr = /* @__PURE__ */ new WeakMap();
2802
- function Er({ children: t, error: n }) {
2803
- let { basename: r } = e.useContext(Z);
2804
- if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
2805
- let t = fr(n.digest);
2806
- if (t) {
2807
- let i = Tr.get(n);
2808
- if (i) throw i;
2809
- let a = Zn(t.location, r);
2810
- if (Xn && !Tr.get(n)) if (a.isExternal || t.reloadDocument) window.location.href = a.absoluteURL || a.to;
2811
- else {
2812
- let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
2813
- throw Tr.set(n, e), e;
2814
- }
2815
- return /* @__PURE__ */ e.createElement("meta", {
2816
- httpEquiv: "refresh",
2817
- content: `0;url=${a.absoluteURL || a.to}`
2818
- });
2819
- }
2788
+ init() {
2789
+ if (this.rendered) return;
2790
+ this.rendered = !0;
2791
+ let { helmetInstances: e } = this.props.context;
2792
+ e.add(this), this.emitChange();
2793
+ }
2794
+ render() {
2795
+ return this.init(), null;
2820
2796
  }
2797
+ }, ir = [], ar = (e) => {
2798
+ let t = {};
2799
+ for (let n of Object.keys(e)) t[xn[n] || n] = e[n];
2821
2800
  return t;
2822
- }
2823
- function Dr({ routeContext: t, match: n, children: r }) {
2824
- let i = e.useContext(er);
2825
- return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Q.Provider, { value: t }, r);
2826
- }
2827
- function Or(t, n = [], r) {
2828
- let i = r?.state;
2829
- if (t == null) {
2830
- if (!i) return null;
2831
- if (i.errors) t = i.matches;
2832
- else if (n.length === 0 && !i.initialized && i.matches.length > 0) t = i.matches;
2833
- else return null;
2801
+ }, $ = (e) => {
2802
+ let t = {};
2803
+ for (let n of Object.keys(e)) {
2804
+ let r = bn[n];
2805
+ t[r || n] = e[n];
2834
2806
  }
2835
- let a = t, o = i?.errors;
2836
- if (o != null) {
2837
- let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
2838
- q(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
2807
+ return t;
2808
+ }, or = (e, t) => {
2809
+ if (!Kn) return;
2810
+ let n = document.getElementsByTagName(e)[0];
2811
+ if (!n) return;
2812
+ let r = "data-rh-managed", i = n.getAttribute(r), a = i ? i.split(",") : [], o = Object.keys(t);
2813
+ for (let e of a) o.includes(e) || n.removeAttribute(e);
2814
+ for (let e of o) {
2815
+ let r = t[e];
2816
+ r == null || r === !1 ? n.removeAttribute(e) : r === !0 ? n.setAttribute(e, "") : n.setAttribute(e, String(r));
2839
2817
  }
2840
- let s = !1, c = -1;
2841
- if (r && i) {
2842
- s = i.renderFallback;
2843
- for (let e = 0; e < a.length; e++) {
2844
- let t = a[e];
2845
- if ((t.route.HydrateFallback || t.route.hydrateFallbackElement) && (c = e), t.route.id) {
2846
- let { loaderData: e, errors: n } = i, o = t.route.loader && !e.hasOwnProperty(t.route.id) && (!n || n[t.route.id] === void 0);
2847
- if (t.route.lazy || o) {
2848
- r.isStatic && (s = !0), a = c >= 0 ? a.slice(0, c + 1) : [a[0]];
2849
- break;
2850
- }
2851
- }
2852
- }
2818
+ o.length > 0 ? n.setAttribute(r, o.join(",")) : n.removeAttribute(r);
2819
+ }, sr = () => {
2820
+ let e = {}, t = {};
2821
+ for (let n of ir) {
2822
+ let { htmlAttributes: r, bodyAttributes: i } = n.props;
2823
+ r && Object.assign(e, ar(r)), i && Object.assign(t, ar(i));
2853
2824
  }
2854
- let l = r?.onError, u = i && l ? (e, t) => {
2855
- l(e, {
2856
- location: i.location,
2857
- params: i.matches?.[0]?.params ?? {},
2858
- pattern: Yn(i.matches),
2859
- errorInfo: t
2860
- });
2861
- } : void 0;
2862
- return a.reduceRight((t, r, l) => {
2863
- let d, f = !1, p = null, m = null;
2864
- i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || Cr, s && (c < 0 && l === 0 ? (Br("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
2865
- let h = n.concat(a.slice(0, l + 1)), g = () => {
2866
- let n;
2867
- return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(Dr, {
2868
- match: r,
2869
- routeContext: {
2870
- outlet: t,
2871
- matches: h,
2872
- isDataRoute: i != null
2873
- },
2874
- children: n
2875
- });
2876
- };
2877
- return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(wr, {
2878
- location: i.location,
2879
- revalidation: i.revalidation,
2880
- component: p,
2881
- error: d,
2882
- children: g(),
2883
- routeContext: {
2884
- outlet: null,
2885
- matches: h,
2886
- isDataRoute: !0
2887
- },
2888
- onError: u
2889
- }) : g();
2890
- }, null);
2891
- }
2892
- function kr(e) {
2893
- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
2894
- }
2895
- function Ar(t) {
2896
- let n = e.useContext(er);
2897
- return q(n, kr(t)), n;
2898
- }
2899
- function jr(t) {
2900
- let n = e.useContext(tr);
2901
- return q(n, kr(t)), n;
2902
- }
2903
- function Mr(t) {
2904
- let n = e.useContext(Q);
2905
- return q(n, kr(t)), n;
2906
- }
2907
- function Nr(e) {
2908
- let t = Mr(e), n = t.matches[t.matches.length - 1];
2909
- return q(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
2910
- }
2911
- function Pr() {
2912
- return Nr("useRouteId");
2913
- }
2914
- function Fr() {
2915
- let t = jr("useNavigation");
2916
- return e.useMemo(() => {
2917
- let { matches: e, historyAction: n, ...r } = t.navigation;
2918
- return r;
2919
- }, [t.navigation]);
2920
- }
2921
- function Ir() {
2922
- let { matches: t, loaderData: n } = jr("useMatches");
2923
- return e.useMemo(() => t.map((e) => _n(e, n)), [t, n]);
2924
- }
2925
- function Lr() {
2926
- let t = e.useContext(cr), n = jr("useRouteError"), r = Nr("useRouteError");
2927
- return t === void 0 ? n.errors?.[r] : t;
2928
- }
2929
- function Rr() {
2930
- let { router: t } = Ar("useNavigate"), n = Nr("useNavigate"), r = e.useRef(!1);
2931
- return _r(() => {
2932
- r.current = !0;
2933
- }), e.useCallback(async (e, i = {}) => {
2934
- J(r.current, gr), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
2935
- fromRouteId: n,
2936
- ...i
2825
+ or("html", e), or("body", t);
2826
+ }, cr = class extends t {
2827
+ componentDidMount() {
2828
+ ir.push(this), sr();
2829
+ }
2830
+ componentDidUpdate() {
2831
+ sr();
2832
+ }
2833
+ componentWillUnmount() {
2834
+ let e = ir.indexOf(this);
2835
+ e !== -1 && ir.splice(e, 1), sr();
2836
+ }
2837
+ resolveTitle() {
2838
+ let { title: e, titleTemplate: t, defaultTitle: n } = this.props;
2839
+ return e && t ? t.replace(/%s/g, () => Array.isArray(e) ? e.join("") : e) : e || n || void 0;
2840
+ }
2841
+ renderTitle() {
2842
+ let t = this.resolveTitle();
2843
+ if (t === void 0) return null;
2844
+ let n = this.props.titleAttributes || {};
2845
+ return e.createElement("title", $(n), t);
2846
+ }
2847
+ renderBase() {
2848
+ let { base: t } = this.props;
2849
+ return t ? e.createElement("base", $(t)) : null;
2850
+ }
2851
+ renderMeta() {
2852
+ let { meta: t } = this.props;
2853
+ return !t || !Array.isArray(t) ? null : t.map((t, n) => e.createElement("meta", {
2854
+ key: n,
2855
+ ...$(t)
2937
2856
  }));
2938
- }, [t, n]);
2939
- }
2940
- var zr = {};
2941
- function Br(e, t, n) {
2942
- !t && !zr[e] && (zr[e] = !0, J(!1, n));
2943
- }
2944
- e.memo(Vr);
2945
- function Vr({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
2946
- return xr(e, void 0, {
2947
- manifest: t,
2948
- state: r,
2949
- isStatic: i,
2950
- onError: a,
2951
- future: n
2952
- });
2953
- }
2954
- function Hr({ basename: t = "/", children: n = null, location: r, navigationType: i = "POP", navigator: a, static: o = !1, useTransitions: s }) {
2955
- q(!hr(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
2956
- let c = t.replace(/^\/*/, "/"), l = e.useMemo(() => ({
2957
- basename: c,
2958
- navigator: a,
2959
- static: o,
2960
- useTransitions: s,
2961
- future: {}
2962
- }), [
2963
- c,
2964
- a,
2965
- o,
2966
- s
2967
- ]);
2968
- typeof r == "string" && (r = mn(r));
2969
- let { pathname: u = "/", search: d = "", hash: f = "", state: p = null, key: m = "default", mask: h } = r, g = e.useMemo(() => {
2970
- let e = Y(u, c);
2971
- return e == null ? null : {
2972
- location: {
2973
- pathname: e,
2974
- search: d,
2975
- hash: f,
2976
- state: p,
2977
- key: m,
2978
- mask: h
2979
- },
2980
- navigationType: i
2981
- };
2982
- }, [
2983
- c,
2984
- u,
2985
- d,
2986
- f,
2987
- p,
2988
- m,
2989
- i,
2990
- h
2991
- ]);
2992
- return J(g != null, `<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`), g == null ? null : /* @__PURE__ */ e.createElement(Z.Provider, { value: l }, /* @__PURE__ */ e.createElement(sr.Provider, {
2993
- children: n,
2994
- value: g
2995
- }));
2996
- }
2997
- e.Component;
2998
- var Ur = "get", Wr = "application/x-www-form-urlencoded";
2999
- function Gr(e) {
3000
- return typeof HTMLElement < "u" && e instanceof HTMLElement;
3001
- }
3002
- function Kr(e) {
3003
- return Gr(e) && e.tagName.toLowerCase() === "button";
3004
- }
3005
- function qr(e) {
3006
- return Gr(e) && e.tagName.toLowerCase() === "form";
3007
- }
3008
- function Jr(e) {
3009
- return Gr(e) && e.tagName.toLowerCase() === "input";
3010
- }
3011
- function Yr(e) {
3012
- return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
3013
- }
3014
- function Xr(e, t) {
3015
- return e.button === 0 && (!t || t === "_self") && !Yr(e);
3016
- }
3017
- var Zr = null;
3018
- function Qr() {
3019
- if (Zr === null) try {
3020
- new FormData(document.createElement("form"), 0), Zr = !1;
3021
- } catch {
3022
- Zr = !0;
3023
2857
  }
3024
- return Zr;
3025
- }
3026
- var $r = /* @__PURE__ */ new Set([
3027
- "application/x-www-form-urlencoded",
3028
- "multipart/form-data",
3029
- "text/plain"
3030
- ]);
3031
- function ei(e) {
3032
- return e != null && !$r.has(e) ? (J(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wr}"`), null) : e;
3033
- }
3034
- function ti(e, t) {
3035
- let n, r, i, a, o;
3036
- if (qr(e)) {
3037
- let o = e.getAttribute("action");
3038
- r = o ? Y(o, t) : null, n = e.getAttribute("method") || Ur, i = ei(e.getAttribute("enctype")) || Wr, a = new FormData(e);
3039
- } else if (Kr(e) || Jr(e) && (e.type === "submit" || e.type === "image")) {
3040
- let o = e.form;
3041
- if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
3042
- let s = e.getAttribute("formaction") || o.getAttribute("action");
3043
- if (r = s ? Y(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Ur, i = ei(e.getAttribute("formenctype")) || ei(o.getAttribute("enctype")) || Wr, a = new FormData(o, e), !Qr()) {
3044
- let { name: t, type: n, value: r } = e;
3045
- if (n === "image") {
3046
- let e = t ? `${t}.` : "";
3047
- a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
3048
- } else t && a.append(t, r);
3049
- }
3050
- } else if (Gr(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
3051
- else n = Ur, r = null, i = Wr, o = e;
3052
- return a && i === "text/plain" && (o = a, a = void 0), {
3053
- action: r,
3054
- method: n.toLowerCase(),
3055
- encType: i,
3056
- formData: a,
3057
- body: o
3058
- };
3059
- }
3060
- Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
3061
- var ni = {
3062
- "&": "\\u0026",
3063
- ">": "\\u003e",
3064
- "<": "\\u003c",
3065
- "\u2028": "\\u2028",
3066
- "\u2029": "\\u2029"
3067
- }, ri = /[&><\u2028\u2029]/g;
3068
- function ii(e) {
3069
- return e.replace(ri, (e) => ni[e]);
3070
- }
3071
- function ai(e, t) {
3072
- if (e === !1 || e == null) throw Error(t);
3073
- }
3074
- function oi(e, t, n, r) {
3075
- let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
3076
- return n ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${r}` : i.pathname = `${i.pathname}.${r}` : i.pathname === "/" ? i.pathname = `_root.${r}` : t && Y(i.pathname, t) === "/" ? i.pathname = `${Un(t)}/_root.${r}` : i.pathname = `${Un(i.pathname)}.${r}`, i;
3077
- }
3078
- async function si(e, t) {
3079
- if (e.id in t) return t[e.id];
3080
- try {
3081
- let n = await import(
3082
- /* @vite-ignore */
3083
- /* webpackIgnore: true */
3084
- e.module
3085
- );
3086
- return t[e.id] = n, n;
3087
- } catch (t) {
3088
- return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
2858
+ renderLink() {
2859
+ let { link: t } = this.props;
2860
+ return !t || !Array.isArray(t) ? null : t.map((t, n) => e.createElement("link", {
2861
+ key: n,
2862
+ ...$(t)
2863
+ }));
3089
2864
  }
3090
- }
3091
- function ci(e) {
3092
- return e != null && typeof e.page == "string";
3093
- }
3094
- function li(e) {
3095
- return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
3096
- }
3097
- async function ui(e, t, n) {
3098
- return hi((await Promise.all(e.map(async (e) => {
3099
- let r = t.routes[e.route.id];
3100
- if (r) {
3101
- let e = await si(r, n);
3102
- return e.links ? e.links() : [];
3103
- }
3104
- return [];
3105
- }))).flat(1).filter(li).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
3106
- ...e,
3107
- rel: "prefetch",
3108
- as: "style"
3109
- } : {
3110
- ...e,
3111
- rel: "prefetch"
3112
- }));
3113
- }
3114
- function di(e, t, n, r, i, a) {
3115
- let o = (e, t) => n[t] ? e.route.id !== n[t].route.id : !0, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
3116
- return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
3117
- let c = r.routes[t.route.id];
3118
- if (!c || !c.hasLoader) return !1;
3119
- if (o(t, a) || s(t, a)) return !0;
3120
- if (t.route.shouldRevalidate) {
3121
- let r = t.route.shouldRevalidate({
3122
- currentUrl: new URL(i.pathname + i.search + i.hash, window.origin),
3123
- currentParams: n[0]?.params || {},
3124
- nextUrl: new URL(e, window.origin),
3125
- nextParams: t.params,
3126
- defaultShouldRevalidate: !0
2865
+ renderScript() {
2866
+ let { script: t } = this.props;
2867
+ return !t || !Array.isArray(t) ? null : t.map((t, n) => {
2868
+ let { innerHTML: r, ...i } = t, a = $(i);
2869
+ return r && (a.dangerouslySetInnerHTML = { __html: r }), e.createElement("script", {
2870
+ key: n,
2871
+ ...a
3127
2872
  });
3128
- if (typeof r == "boolean") return r;
3129
- }
3130
- return !0;
3131
- }) : [];
3132
- }
3133
- function fi(e, t, { includeHydrateFallback: n } = {}) {
3134
- return pi(e.map((e) => {
3135
- let r = t.routes[e.route.id];
3136
- if (!r) return [];
3137
- let i = [r.module];
3138
- return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
3139
- }).flat(1));
3140
- }
3141
- function pi(e) {
3142
- return [...new Set(e)];
3143
- }
3144
- function mi(e) {
3145
- let t = {}, n = Object.keys(e).sort();
3146
- for (let r of n) t[r] = e[r];
3147
- return t;
3148
- }
3149
- function hi(e, t) {
3150
- let n = /* @__PURE__ */ new Set(), r = new Set(t);
3151
- return e.reduce((e, i) => {
3152
- if (t && !ci(i) && i.as === "script" && i.href && r.has(i.href)) return e;
3153
- let a = JSON.stringify(mi(i));
3154
- return n.has(a) || (n.add(a), e.push({
3155
- key: a,
3156
- link: i
3157
- })), e;
3158
- }, []);
3159
- }
3160
- function gi() {
3161
- let t = e.useContext(er);
3162
- return ai(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
3163
- }
3164
- function _i() {
3165
- let t = e.useContext(tr);
3166
- return ai(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
3167
- }
3168
- var vi = e.createContext(void 0);
3169
- vi.displayName = "FrameworkContext";
3170
- function yi() {
3171
- let t = e.useContext(vi);
3172
- return ai(t, "You must render this element inside a <HydratedRouter> element"), t;
3173
- }
3174
- function bi(t, n) {
3175
- let r = e.useContext(vi), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
3176
- e.useEffect(() => {
3177
- if (t === "render" && s(!0), t === "viewport") {
3178
- let e = new IntersectionObserver((e) => {
3179
- e.forEach((e) => {
3180
- s(e.isIntersecting);
3181
- });
3182
- }, { threshold: .5 });
3183
- return p.current && e.observe(p.current), () => {
3184
- e.disconnect();
3185
- };
3186
- }
3187
- }, [t]), e.useEffect(() => {
3188
- if (i) {
3189
- let e = setTimeout(() => {
3190
- s(!0);
3191
- }, 100);
3192
- return () => {
3193
- clearTimeout(e);
3194
- };
3195
- }
3196
- }, [i]);
3197
- let m = () => {
3198
- a(!0);
3199
- }, h = () => {
3200
- a(!1), s(!1);
3201
- };
3202
- return r ? t === "intent" ? [
3203
- o,
3204
- p,
3205
- {
3206
- onFocus: xi(c, m),
3207
- onBlur: xi(l, h),
3208
- onMouseEnter: xi(u, m),
3209
- onMouseLeave: xi(d, h),
3210
- onTouchStart: xi(f, m)
3211
- }
3212
- ] : [
3213
- o,
3214
- p,
3215
- {}
3216
- ] : [
3217
- !1,
3218
- p,
3219
- {}
3220
- ];
3221
- }
3222
- function xi(e, t) {
3223
- return (n) => {
3224
- e && e(n), n.defaultPrevented || t(n);
3225
- };
3226
- }
3227
- function Si({ page: t, ...n }) {
3228
- let r = rr(), { router: i } = gi(), a = e.useMemo(() => hn(i.routes, t, i.basename), [
3229
- i.routes,
3230
- t,
3231
- i.basename
3232
- ]);
3233
- return a ? r ? /* @__PURE__ */ e.createElement(wi, {
3234
- page: t,
3235
- matches: a,
3236
- ...n
3237
- }) : /* @__PURE__ */ e.createElement(Ti, {
3238
- page: t,
3239
- matches: a,
3240
- ...n
3241
- }) : null;
3242
- }
3243
- function Ci(t) {
3244
- let { manifest: n, routeModules: r } = yi(), [i, a] = e.useState([]);
3245
- return e.useEffect(() => {
3246
- let e = !1;
3247
- return ui(t, n, r).then((t) => {
3248
- e || a(t);
3249
- }), () => {
3250
- e = !0;
3251
- };
3252
- }, [
3253
- t,
3254
- n,
3255
- r
3256
- ]), i;
3257
- }
3258
- function wi({ page: t, matches: n, ...r }) {
3259
- let i = $(), { future: a } = yi(), { basename: o } = gi(), s = e.useMemo(() => {
3260
- if (t === i.pathname + i.search + i.hash) return [];
3261
- let e = oi(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
3262
- for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
3263
- return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
3264
- }, [
3265
- o,
3266
- a.v8_trailingSlashAwareDataRequests,
3267
- t,
3268
- i,
3269
- n
3270
- ]);
3271
- return /* @__PURE__ */ e.createElement(e.Fragment, null, s.map((t) => /* @__PURE__ */ e.createElement("link", {
3272
- key: t,
3273
- rel: "prefetch",
3274
- as: "fetch",
3275
- href: t,
3276
- ...r
3277
- })));
3278
- }
3279
- function Ti({ page: t, matches: n, ...r }) {
3280
- let i = $(), { future: a, manifest: o, routeModules: s } = yi(), { basename: c } = gi(), { loaderData: l, matches: u } = _i(), d = e.useMemo(() => di(t, n, u, o, i, "data"), [
3281
- t,
3282
- n,
3283
- u,
3284
- o,
3285
- i
3286
- ]), f = e.useMemo(() => di(t, n, u, o, i, "assets"), [
3287
- t,
3288
- n,
3289
- u,
3290
- o,
3291
- i
3292
- ]), p = e.useMemo(() => {
3293
- if (t === i.pathname + i.search + i.hash) return [];
3294
- let e = /* @__PURE__ */ new Set(), r = !1;
3295
- if (n.forEach((t) => {
3296
- let n = o.routes[t.route.id];
3297
- !n || !n.hasLoader || (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
3298
- }), e.size === 0) return [];
3299
- let u = oi(t, c, a.v8_trailingSlashAwareDataRequests, "data");
3300
- return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
3301
- }, [
3302
- c,
3303
- a.v8_trailingSlashAwareDataRequests,
3304
- l,
3305
- i,
3306
- o,
3307
- d,
3308
- n,
3309
- t,
3310
- s
3311
- ]), m = e.useMemo(() => fi(f, o), [f, o]), h = Ci(f);
3312
- return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
3313
- key: t,
3314
- rel: "prefetch",
3315
- as: "fetch",
3316
- href: t,
3317
- ...r
3318
- })), m.map((t) => /* @__PURE__ */ e.createElement("link", {
3319
- key: t,
3320
- rel: "modulepreload",
3321
- href: t,
3322
- ...r
3323
- })), h.map(({ key: t, link: n }) => /* @__PURE__ */ e.createElement("link", {
3324
- key: t,
3325
- nonce: r.nonce,
3326
- ...n,
3327
- crossOrigin: n.crossOrigin ?? r.crossOrigin
3328
- })));
3329
- }
3330
- function Ei(...e) {
3331
- return (t) => {
3332
- e.forEach((e) => {
3333
- typeof e == "function" ? e(t) : e != null && (e.current = t);
3334
2873
  });
3335
- };
3336
- }
3337
- e.Component;
3338
- var Di = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
3339
- try {
3340
- Di && (window.__reactRouterVersion = "7.16.0");
3341
- } catch {}
3342
- function Oi({ basename: t, children: n, history: r, useTransitions: i }) {
3343
- let [a, o] = e.useState({
3344
- action: r.action,
3345
- location: r.location
3346
- }), s = e.useCallback((t) => {
3347
- i === !1 ? o(t) : e.startTransition(() => o(t));
3348
- }, [i]);
3349
- return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement(Hr, {
3350
- basename: t,
3351
- children: n,
3352
- location: a.location,
3353
- navigationType: a.action,
3354
- navigator: r,
3355
- useTransitions: i
3356
- });
3357
- }
3358
- Oi.displayName = "unstable_HistoryRouter";
3359
- var ki = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ai = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
3360
- let { basename: g, navigator: _, useTransitions: v } = e.useContext(Z), y = typeof u == "string" && ki.test(u), b = Zn(u, g);
3361
- u = b.to;
3362
- let x = mr(u, { relative: i }), S = $(), C = null;
3363
- if (s) {
3364
- let e = Vn(s, [], S.mask ? S.mask.pathname : "/", !0);
3365
- g !== "/" && (e.pathname = e.pathname === "/" ? g : X([g, e.pathname])), C = _.createHref(e);
3366
- }
3367
- let [w, T, E] = bi(r, m), ee = Li(u, {
3368
- replace: o,
3369
- mask: s,
3370
- state: c,
3371
- target: l,
3372
- preventScrollReset: d,
3373
- relative: i,
3374
- viewTransition: f,
3375
- defaultShouldRevalidate: p,
3376
- useTransitions: v
3377
- });
3378
- function te(e) {
3379
- t && t(e), e.defaultPrevented || ee(e);
3380
2874
  }
3381
- let ne = !(b.isExternal || a), D = /* @__PURE__ */ e.createElement("a", {
3382
- ...m,
3383
- ...E,
3384
- href: (ne ? C : void 0) || b.absoluteURL || x,
3385
- onClick: ne ? te : t,
3386
- ref: Ei(h, T),
3387
- target: l,
3388
- "data-discover": !y && n === "render" ? "true" : void 0
3389
- });
3390
- return w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, D, /* @__PURE__ */ e.createElement(Si, { page: x })) : D;
3391
- });
3392
- Ai.displayName = "Link";
3393
- var ji = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
3394
- let d = br(o, { relative: l.relative }), f = $(), p = e.useContext(tr), { navigator: m, basename: h } = e.useContext(Z), g = p != null && qi(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
3395
- n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = Y(y, h) || y);
3396
- let b = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, x = v === _ || !i && v.startsWith(_) && v.charAt(b) === "/", S = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), C = {
3397
- isActive: x,
3398
- isPending: S,
3399
- isTransitioning: g
3400
- }, w = x ? t : void 0, T;
3401
- T = typeof r == "function" ? r(C) : [
3402
- r,
3403
- x ? "active" : null,
3404
- S ? "pending" : null,
3405
- g ? "transitioning" : null
3406
- ].filter(Boolean).join(" ");
3407
- let E = typeof a == "function" ? a(C) : a;
3408
- return /* @__PURE__ */ e.createElement(Ai, {
3409
- ...l,
3410
- "aria-current": w,
3411
- className: T,
3412
- ref: u,
3413
- style: E,
3414
- to: o,
3415
- viewTransition: s
3416
- }, typeof c == "function" ? c(C) : c);
3417
- });
3418
- ji.displayName = "NavLink";
3419
- var Mi = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = Ur, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
3420
- let { useTransitions: g } = e.useContext(Z), _ = Bi(), v = Vi(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && ki.test(c);
3421
- return /* @__PURE__ */ e.createElement("form", {
3422
- ref: h,
3423
- method: y,
3424
- action: v,
3425
- onSubmit: i ? l : (t) => {
3426
- if (l && l(t), t.defaultPrevented) return;
3427
- t.preventDefault();
3428
- let i = t.nativeEvent.submitter, c = i?.getAttribute("formmethod") || s, m = () => _(i || t.currentTarget, {
3429
- fetcherKey: n,
3430
- method: c,
3431
- navigate: r,
3432
- replace: a,
3433
- state: o,
3434
- relative: u,
3435
- preventScrollReset: d,
3436
- viewTransition: f,
3437
- defaultShouldRevalidate: p
2875
+ renderStyle() {
2876
+ let { style: t } = this.props;
2877
+ return !t || !Array.isArray(t) ? null : t.map((t, n) => {
2878
+ let { cssText: r, ...i } = t, a = $(i);
2879
+ return r && (a.dangerouslySetInnerHTML = { __html: r }), e.createElement("style", {
2880
+ key: n,
2881
+ ...a
3438
2882
  });
3439
- g && r !== !1 ? e.startTransition(() => m()) : m();
3440
- },
3441
- ...m,
3442
- "data-discover": !b && t === "render" ? "true" : void 0
3443
- });
3444
- });
3445
- Mi.displayName = "Form";
3446
- function Ni({ getKey: t, storageKey: n, ...r }) {
3447
- let i = e.useContext(vi), { basename: a } = e.useContext(Z), o = $(), s = Ir();
3448
- Gi({
3449
- getKey: t,
3450
- storageKey: n
3451
- });
3452
- let c = e.useMemo(() => {
3453
- if (!i || !t) return null;
3454
- let e = Wi(o, s, a, t);
3455
- return e === o.key ? null : e;
3456
- }, []);
3457
- if (!i || i.isSpaMode) return null;
3458
- let l = ((e, t) => {
3459
- if (!window.history.state || !window.history.state.key) {
3460
- let e = Math.random().toString(32).slice(2);
3461
- window.history.replaceState({ key: e }, "");
3462
- }
3463
- try {
3464
- let n = JSON.parse(sessionStorage.getItem(e) || "{}")[t || window.history.state.key];
3465
- typeof n == "number" && window.scrollTo(0, n);
3466
- } catch (t) {
3467
- console.error(t), sessionStorage.removeItem(e);
3468
- }
3469
- }).toString();
3470
- return /* @__PURE__ */ e.createElement("script", {
3471
- ...r,
3472
- suppressHydrationWarning: !0,
3473
- dangerouslySetInnerHTML: { __html: `(${l})(${ii(JSON.stringify(n || Hi))}, ${ii(JSON.stringify(c))})` }
3474
- });
3475
- }
3476
- Ni.displayName = "ScrollRestoration";
3477
- function Pi(e) {
3478
- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
3479
- }
3480
- function Fi(t) {
3481
- let n = e.useContext(er);
3482
- return q(n, Pi(t)), n;
3483
- }
3484
- function Ii(t) {
3485
- let n = e.useContext(tr);
3486
- return q(n, Pi(t)), n;
3487
- }
3488
- function Li(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
3489
- let d = vr(), f = $(), p = br(t, { relative: s });
3490
- return e.useCallback((m) => {
3491
- if (Xr(m, n)) {
3492
- m.preventDefault();
3493
- let n = r === void 0 ? pn(f) === pn(p) : r, h = () => d(t, {
3494
- replace: n,
3495
- mask: i,
3496
- state: a,
3497
- preventScrollReset: o,
3498
- relative: s,
3499
- viewTransition: c,
3500
- defaultShouldRevalidate: l
2883
+ });
2884
+ }
2885
+ renderNoscript() {
2886
+ let { noscript: t } = this.props;
2887
+ return !t || !Array.isArray(t) ? null : t.map((t, n) => {
2888
+ let { innerHTML: r, ...i } = t, a = $(i);
2889
+ return r && (a.dangerouslySetInnerHTML = { __html: r }), e.createElement("noscript", {
2890
+ key: n,
2891
+ ...a
3501
2892
  });
3502
- u ? e.startTransition(() => h()) : h();
3503
- }
3504
- }, [
3505
- f,
3506
- d,
3507
- p,
3508
- r,
3509
- i,
3510
- a,
3511
- n,
3512
- t,
3513
- o,
3514
- s,
3515
- c,
3516
- l,
3517
- u
3518
- ]);
3519
- }
3520
- var Ri = 0, zi = () => `__${String(++Ri)}__`;
3521
- function Bi() {
3522
- let { router: t } = Fi("useSubmit"), { basename: n } = e.useContext(Z), r = Pr(), i = t.fetch, a = t.navigate;
3523
- return e.useCallback(async (e, t = {}) => {
3524
- let { action: o, method: s, encType: c, formData: l, body: u } = ti(e, n);
3525
- t.navigate === !1 ? await i(t.fetcherKey || zi(), r, t.action || o, {
3526
- defaultShouldRevalidate: t.defaultShouldRevalidate,
3527
- preventScrollReset: t.preventScrollReset,
3528
- formData: l,
3529
- body: u,
3530
- formMethod: t.method || s,
3531
- formEncType: t.encType || c,
3532
- flushSync: t.flushSync
3533
- }) : await a(t.action || o, {
3534
- defaultShouldRevalidate: t.defaultShouldRevalidate,
3535
- preventScrollReset: t.preventScrollReset,
3536
- formData: l,
3537
- body: u,
3538
- formMethod: t.method || s,
3539
- formEncType: t.encType || c,
3540
- replace: t.replace,
3541
- state: t.state,
3542
- fromRouteId: r,
3543
- flushSync: t.flushSync,
3544
- viewTransition: t.viewTransition
3545
2893
  });
3546
- }, [
3547
- i,
3548
- a,
3549
- n,
3550
- r
3551
- ]);
3552
- }
3553
- function Vi(t, { relative: n } = {}) {
3554
- let { basename: r } = e.useContext(Z), i = e.useContext(Q);
3555
- q(i, "useFormAction must be used inside a RouteContext");
3556
- let [a] = i.matches.slice(-1), o = { ...br(t || ".", { relative: n }) }, s = $();
3557
- if (t == null) {
3558
- o.search = s.search;
3559
- let e = new URLSearchParams(o.search), t = e.getAll("index");
3560
- if (t.some((e) => e === "")) {
3561
- e.delete("index"), t.filter((e) => e).forEach((t) => e.append("index", t));
3562
- let n = e.toString();
3563
- o.search = n ? `?${n}` : "";
3564
- }
3565
2894
  }
3566
- return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : X([r, o.pathname])), pn(o);
3567
- }
3568
- var Hi = "react-router-scroll-positions", Ui = {};
3569
- function Wi(e, t, n, r) {
3570
- let i = null;
3571
- return r && (i = r(n === "/" ? e : {
3572
- ...e,
3573
- pathname: Y(e.pathname, n) || e.pathname
3574
- }, t)), i ??= e.key, i;
3575
- }
3576
- function Gi({ getKey: t, storageKey: n } = {}) {
3577
- let { router: r } = Fi("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: a } = Ii("useScrollRestoration"), { basename: o } = e.useContext(Z), s = $(), c = Ir(), l = Fr();
3578
- e.useEffect(() => (window.history.scrollRestoration = "manual", () => {
3579
- window.history.scrollRestoration = "auto";
3580
- }), []), Ki(e.useCallback(() => {
3581
- if (l.state === "idle") {
3582
- let e = Wi(s, c, o, t);
3583
- Ui[e] = window.scrollY;
2895
+ render() {
2896
+ return e.createElement(e.Fragment, null, this.renderTitle(), this.renderBase(), this.renderMeta(), this.renderLink(), this.renderScript(), this.renderStyle(), this.renderNoscript());
2897
+ }
2898
+ }, lr = class extends t {
2899
+ static defaultProps = {
2900
+ defer: !0,
2901
+ encodeSpecialCharacters: !0,
2902
+ prioritizeSeoTags: !1
2903
+ };
2904
+ shouldComponentUpdate(e) {
2905
+ return !(0, mn.default)(Pn(this.props, "helmetData"), Pn(e, "helmetData"));
2906
+ }
2907
+ mapNestedChildrenToProps(e, t) {
2908
+ if (!t) return null;
2909
+ switch (e.type) {
2910
+ case "script":
2911
+ case "noscript": return { innerHTML: t };
2912
+ case "style": return { cssText: t };
2913
+ default: throw Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`);
3584
2914
  }
3585
- try {
3586
- sessionStorage.setItem(n || Hi, JSON.stringify(Ui));
3587
- } catch (e) {
3588
- J(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
2915
+ }
2916
+ flattenArrayTypeChildren(e, t, n, r) {
2917
+ return {
2918
+ ...t,
2919
+ [e.type]: [...t[e.type] || [], {
2920
+ ...n,
2921
+ ...this.mapNestedChildrenToProps(e, r)
2922
+ }]
2923
+ };
2924
+ }
2925
+ mapObjectTypeChildren(e, t, n, r) {
2926
+ switch (e.type) {
2927
+ case "title": return {
2928
+ ...t,
2929
+ [e.type]: r,
2930
+ titleAttributes: { ...n }
2931
+ };
2932
+ case "body": return {
2933
+ ...t,
2934
+ bodyAttributes: { ...n }
2935
+ };
2936
+ case "html": return {
2937
+ ...t,
2938
+ htmlAttributes: { ...n }
2939
+ };
2940
+ default: return {
2941
+ ...t,
2942
+ [e.type]: { ...n }
2943
+ };
3589
2944
  }
3590
- window.history.scrollRestoration = "auto";
3591
- }, [
3592
- l.state,
3593
- t,
3594
- o,
3595
- s,
3596
- c,
3597
- n
3598
- ])), typeof document < "u" && (e.useLayoutEffect(() => {
3599
- try {
3600
- let e = sessionStorage.getItem(n || Hi);
3601
- e && (Ui = JSON.parse(e));
3602
- } catch {}
3603
- }, [n]), e.useLayoutEffect(() => {
3604
- let e = r?.enableScrollRestoration(Ui, () => window.scrollY, t ? (e, n) => Wi(e, n, o, t) : void 0);
3605
- return () => e && e();
3606
- }, [
3607
- r,
3608
- o,
3609
- t
3610
- ]), e.useLayoutEffect(() => {
3611
- if (i !== !1) {
3612
- if (typeof i == "number") {
3613
- window.scrollTo(0, i);
3614
- return;
3615
- }
3616
- try {
3617
- if (s.hash) {
3618
- let e = document.getElementById(decodeURIComponent(s.hash.slice(1)));
3619
- if (e) {
3620
- e.scrollIntoView();
3621
- return;
3622
- }
3623
- }
3624
- } catch {
3625
- J(!1, `"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
2945
+ }
2946
+ mapArrayTypeChildrenToProps(e, t) {
2947
+ let n = { ...t };
2948
+ return Object.keys(e).forEach((t) => {
2949
+ n = {
2950
+ ...n,
2951
+ [t]: e[t]
2952
+ };
2953
+ }), n;
2954
+ }
2955
+ warnOnInvalidChildren(e, t) {
2956
+ return (0, hn.default)(yn.some((t) => e.type === t), typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${yn.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`), (0, hn.default)(!t || typeof t == "string" || Array.isArray(t) && !t.some((e) => typeof e != "string"), `Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`), !0;
2957
+ }
2958
+ mapChildrenToProps(t, n) {
2959
+ let r = {};
2960
+ return e.Children.forEach(t, (e) => {
2961
+ if (!e || !e.props) return;
2962
+ let { children: t, ...i } = e.props, a = Object.keys(i).reduce((e, t) => (e[xn[t] || t] = i[t], e), {}), { type: o } = e;
2963
+ switch (typeof o == "symbol" ? o = o.toString() : this.warnOnInvalidChildren(e, t), o) {
2964
+ case "Symbol(react.fragment)":
2965
+ n = this.mapChildrenToProps(t, n);
2966
+ break;
2967
+ case "link":
2968
+ case "meta":
2969
+ case "noscript":
2970
+ case "script":
2971
+ case "style":
2972
+ r = this.flattenArrayTypeChildren(e, r, a, t);
2973
+ break;
2974
+ default:
2975
+ n = this.mapObjectTypeChildren(e, n, a, t);
2976
+ break;
3626
2977
  }
3627
- a !== !0 && window.scrollTo(0, 0);
3628
- }
3629
- }, [
3630
- s,
3631
- i,
3632
- a
3633
- ]));
3634
- }
3635
- function Ki(t, n) {
3636
- let { capture: r } = n || {};
3637
- e.useEffect(() => {
3638
- let e = r == null ? void 0 : { capture: r };
3639
- return window.addEventListener("pagehide", t, e), () => {
3640
- window.removeEventListener("pagehide", t, e);
3641
- };
3642
- }, [t, r]);
3643
- }
3644
- function qi(t, { relative: n } = {}) {
3645
- let r = e.useContext(ir);
3646
- q(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
3647
- let { basename: i } = Fi("useViewTransitionState"), a = br(t, { relative: n });
3648
- if (!r.isTransitioning) return !1;
3649
- let o = Y(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = Y(r.nextLocation.pathname, i) || r.nextLocation.pathname;
3650
- return Mn(a.pathname, s) != null || Mn(a.pathname, o) != null;
2978
+ }), this.mapArrayTypeChildrenToProps(r, n);
2979
+ }
2980
+ render() {
2981
+ let { children: t, ...n } = this.props, r = { ...n }, { helmetData: i } = n;
2982
+ return t && (r = this.mapChildrenToProps(t, r)), i && !(i instanceof qn) && (i = new qn(i.context, !0), delete r.helmetData), Jn ? /* @__PURE__ */ e.createElement(cr, { ...r }) : i ? /* @__PURE__ */ e.createElement(rr, {
2983
+ ...r,
2984
+ context: i.value
2985
+ }) : /* @__PURE__ */ e.createElement(Yn.Consumer, null, (t) => /* @__PURE__ */ e.createElement(rr, {
2986
+ ...r,
2987
+ context: t
2988
+ }));
2989
+ }
2990
+ };
2991
+ //#endregion
2992
+ //#region src/components/seo/Seo.tsx
2993
+ function ur({ title: e, description: t, image: n }) {
2994
+ let r = e, i = `${window.location.origin}/og-default.png`, a = n ?? i, o = window.location.href;
2995
+ return /* @__PURE__ */ f(lr, { children: [
2996
+ /* @__PURE__ */ d("title", { children: r }),
2997
+ /* @__PURE__ */ d("meta", {
2998
+ name: "description",
2999
+ content: t
3000
+ }),
3001
+ /* @__PURE__ */ d("meta", {
3002
+ property: "og:type",
3003
+ content: "website"
3004
+ }),
3005
+ /* @__PURE__ */ d("meta", {
3006
+ property: "og:title",
3007
+ content: r
3008
+ }),
3009
+ /* @__PURE__ */ d("meta", {
3010
+ property: "og:description",
3011
+ content: t
3012
+ }),
3013
+ /* @__PURE__ */ d("meta", {
3014
+ property: "og:image",
3015
+ content: a
3016
+ }),
3017
+ /* @__PURE__ */ d("meta", {
3018
+ property: "og:url",
3019
+ content: o
3020
+ }),
3021
+ /* @__PURE__ */ d("meta", {
3022
+ name: "twitter:card",
3023
+ content: "summary_large_image"
3024
+ }),
3025
+ /* @__PURE__ */ d("meta", {
3026
+ name: "twitter:title",
3027
+ content: r
3028
+ }),
3029
+ /* @__PURE__ */ d("meta", {
3030
+ name: "twitter:description",
3031
+ content: t
3032
+ }),
3033
+ /* @__PURE__ */ d("meta", {
3034
+ name: "twitter:image",
3035
+ content: a
3036
+ })
3037
+ ] });
3651
3038
  }
3652
3039
  //#endregion
3653
3040
  //#region src/hooks/use-screen-lifecycle.tsx
3654
- function Ji(e) {
3041
+ function dr(e) {
3655
3042
  return typeof e == "object" && !!e && "shouldRefresh" in e && !!e.shouldRefresh;
3656
3043
  }
3657
- function Yi({ init: e, refresh: t, onDisposed: n }) {
3658
- let r = $(), a = vr();
3659
- i(() => {
3660
- if (Ji(r.state)) {
3661
- t(), a(r.pathname, {
3044
+ function fr({ location: e, navigate: t, init: n, refresh: r, onDisposed: i }) {
3045
+ a(() => {
3046
+ if (dr(e.state)) {
3047
+ r(), t(e.pathname, {
3662
3048
  replace: !0,
3663
3049
  state: {}
3664
3050
  });
3665
3051
  return;
3666
3052
  }
3667
- e();
3053
+ n();
3668
3054
  }, [
3669
- r.key,
3670
- r.pathname,
3671
- r.state,
3672
- a,
3673
- e,
3674
- t
3675
- ]), i(() => () => n(), [n]);
3055
+ e.key,
3056
+ e.pathname,
3057
+ e.state,
3058
+ t,
3059
+ n,
3060
+ r
3061
+ ]), a(() => () => i(), [i]);
3676
3062
  }
3677
3063
  //#endregion
3678
3064
  //#region src/hooks/use-debounced-value.tsx
3679
- function Xi(e, t = 300) {
3680
- let [n, r] = o(e);
3681
- return i(() => {
3065
+ function pr(e, t = 300) {
3066
+ let [n, r] = s(e);
3067
+ return a(() => {
3682
3068
  let n = window.setTimeout(() => {
3683
3069
  r(e);
3684
3070
  }, t);
@@ -3687,65 +3073,65 @@ function Xi(e, t = 300) {
3687
3073
  }
3688
3074
  //#endregion
3689
3075
  //#region src/hooks/use-debounced-search.tsx
3690
- function Zi(e, t, n, r = 300) {
3691
- let a = Xi(e, r);
3692
- i(() => {
3693
- let e = a.trim();
3076
+ function mr(e, t, n, r = 300) {
3077
+ let i = pr(e, r);
3078
+ a(() => {
3079
+ let e = i.trim();
3694
3080
  if (!e) {
3695
3081
  n();
3696
3082
  return;
3697
3083
  }
3698
3084
  t(e);
3699
3085
  }, [
3700
- a,
3086
+ i,
3701
3087
  n,
3702
3088
  t
3703
3089
  ]);
3704
3090
  }
3705
3091
  //#endregion
3706
3092
  //#region src/utils/firestore.ts
3707
- function Qi(e) {
3093
+ function hr(e) {
3708
3094
  return {
3709
3095
  ...e.data(),
3710
3096
  id: e.id
3711
3097
  };
3712
3098
  }
3713
- async function $i(e, t, n, r) {
3099
+ async function gr(e, t, n, r) {
3714
3100
  let i = r.filter((e) => !!(e && !n.has(e.path)));
3715
3101
  for (let r = 0; r < i.length; r += 30) {
3716
3102
  let a = i.slice(r, r + 30);
3717
- (await y(x(e, C(_(), "in", a.map((e) => e.id))))).forEach((e) => {
3103
+ (await b(S(e, w(v(), "in", a.map((e) => e.id))))).forEach((e) => {
3718
3104
  let r = t(e);
3719
3105
  n.set(e.ref.path, r);
3720
3106
  });
3721
3107
  }
3722
3108
  }
3723
- async function ea(e, t, n) {
3109
+ async function _r(e, t, n) {
3724
3110
  let r = n.filter((e) => !!(e && !t.has(e.path)));
3725
3111
  await Promise.all(r.map(async (n) => {
3726
- let r = e(await v(n));
3112
+ let r = e(await y(n));
3727
3113
  t.set(n.path, r);
3728
3114
  }));
3729
3115
  }
3730
- function ta(e = {}) {
3116
+ function vr(e = {}) {
3731
3117
  let { cache: t = !0, includeMetadataChanges: n } = e;
3732
3118
  return {
3733
3119
  listenOptions: { includeMetadataChanges: n ?? !t },
3734
3120
  cache: t
3735
3121
  };
3736
3122
  }
3737
- function na(e, t) {
3123
+ function yr(e, t) {
3738
3124
  return t !== !1 || !e;
3739
3125
  }
3740
- function ra(e, t, n = {}) {
3741
- let { listenOptions: r, cache: i } = ta(n), { onError: a } = n;
3742
- return e.type, b(e, r, (e) => {
3743
- na(e.metadata.fromCache, i) && t(e);
3126
+ function br(e, t, n = {}) {
3127
+ let { listenOptions: r, cache: i } = vr(n), { onError: a } = n;
3128
+ return e.type, x(e, r, (e) => {
3129
+ yr(e.metadata.fromCache, i) && t(e);
3744
3130
  }, a);
3745
3131
  }
3746
3132
  //#endregion
3747
3133
  //#region src/utils/array.ts
3748
- function ia(e, t) {
3134
+ function xr(e, t) {
3749
3135
  return e.flatMap((e, n) => {
3750
3136
  let r = t(e, n);
3751
3137
  return r == null ? [] : [r];
@@ -3753,37 +3139,37 @@ function ia(e, t) {
3753
3139
  }
3754
3140
  //#endregion
3755
3141
  //#region src/utils/platform.ts
3756
- function aa() {
3142
+ function Sr() {
3757
3143
  if (typeof window > "u") return "pc";
3758
3144
  let e = navigator.userAgent, t = navigator.platform, n = /Android/i.test(e), r = /iPhone|iPad|iPod/i.test(e) || t === "MacIntel" && navigator.maxTouchPoints > 1;
3759
3145
  return n ? "android" : r ? "ios" : "pc";
3760
3146
  }
3761
3147
  //#endregion
3762
3148
  //#region src/utils/zustand.tsx
3763
- function oa(e) {
3764
- let n = t(null);
3765
- function i({ children: t, ...r }) {
3766
- let [i] = o(() => e(r));
3767
- return /* @__PURE__ */ u(n.Provider, {
3149
+ function Cr(e) {
3150
+ let t = n(null);
3151
+ function r({ children: n, ...r }) {
3152
+ let [i] = s(() => e(r));
3153
+ return /* @__PURE__ */ d(t.Provider, {
3768
3154
  value: i,
3769
- children: t
3155
+ children: n
3770
3156
  });
3771
3157
  }
3772
3158
  function a(e) {
3773
- let t = r(n);
3774
- if (!t) throw Error("Provider가 필요합니다.");
3775
- return w(t, e);
3159
+ let n = i(t);
3160
+ if (!n) throw Error("Provider가 필요합니다.");
3161
+ return T(n, e);
3776
3162
  }
3777
- let s = /* @__PURE__ */ new Map();
3163
+ let o = /* @__PURE__ */ new Map();
3778
3164
  return {
3779
- Provider: i,
3165
+ Provider: r,
3780
3166
  useStore: a,
3781
- use: new Proxy({}, { get: (e, t) => (s.has(t) || s.set(t, () => a((e) => e[t])), s.get(t)) })
3167
+ use: new Proxy({}, { get: (e, t) => (o.has(t) || o.set(t, () => a((e) => e[t])), o.get(t)) })
3782
3168
  };
3783
3169
  }
3784
3170
  //#endregion
3785
3171
  //#region node_modules/dayjs/dayjs.min.js
3786
- var sa = /* @__PURE__ */ ie(((e, t) => {
3172
+ var wr = /* @__PURE__ */ A(((e, t) => {
3787
3173
  (function(n, r) {
3788
3174
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
3789
3175
  })(e, (function() {
@@ -4077,9 +3463,9 @@ var sa = /* @__PURE__ */ ie(((e, t) => {
4077
3463
  return w(1e3 * e);
4078
3464
  }, w.en = b[y], w.Ls = b, w.p = {}, w;
4079
3465
  }));
4080
- })), ca = /* @__PURE__ */ ie(((e, t) => {
3466
+ })), Tr = /* @__PURE__ */ A(((e, t) => {
4081
3467
  (function(n, r) {
4082
- typeof e == "object" && t !== void 0 ? t.exports = r(sa()) : typeof define == "function" && define.amd ? define(["dayjs"], r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_locale_ko = r(n.dayjs);
3468
+ typeof e == "object" && t !== void 0 ? t.exports = r(wr()) : typeof define == "function" && define.amd ? define(["dayjs"], r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_locale_ko = r(n.dayjs);
4083
3469
  })(e, (function(e) {
4084
3470
  function t(e) {
4085
3471
  return e && typeof e == "object" && "default" in e ? e : { default: e };
@@ -4127,7 +3513,7 @@ var sa = /* @__PURE__ */ ie(((e, t) => {
4127
3513
  };
4128
3514
  return n.default.locale(r, null, !0), r;
4129
3515
  }));
4130
- })), la = /* @__PURE__ */ ie(((e, t) => {
3516
+ })), Er = /* @__PURE__ */ A(((e, t) => {
4131
3517
  (function(n, r) {
4132
3518
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_locale_en = r();
4133
3519
  })(e, (function() {
@@ -4146,54 +3532,54 @@ var sa = /* @__PURE__ */ ie(((e, t) => {
4146
3532
  }
4147
3533
  };
4148
3534
  }));
4149
- })), ua = /* @__PURE__ */ ae(sa(), 1);
4150
- ca(), la();
4151
- function da(e, t, n) {
4152
- let r = (0, ua.default)(e);
3535
+ })), Dr = /* @__PURE__ */ se(wr(), 1);
3536
+ Tr(), Er();
3537
+ function Or(e, t, n) {
3538
+ let r = (0, Dr.default)(e);
4153
3539
  return !e || !r.isValid() ? "" : r.format(n(t));
4154
3540
  }
4155
- function fa() {
4156
- let { t: e } = f();
4157
- return a(() => ({
4158
- basicDateTimeFormat: (t, n) => da(t, n, e),
4159
- dateTimeFormat: (t) => da(t, "libs:datetime.date_time_format", e),
4160
- dateFormat: (t) => da(t, "libs:datetime.date_format", e),
4161
- timeFormat: (t) => da(t, "libs:datetime.time_format", e)
3541
+ function kr() {
3542
+ let { t: e } = p();
3543
+ return o(() => ({
3544
+ basicDateTimeFormat: (t, n) => Or(t, n, e),
3545
+ dateTimeFormat: (t) => Or(t, "libs:datetime.date_time_format", e),
3546
+ dateFormat: (t) => Or(t, "libs:datetime.date_format", e),
3547
+ timeFormat: (t) => Or(t, "libs:datetime.time_format", e)
4162
3548
  }), [e]);
4163
3549
  }
4164
- function pa(e) {
4165
- let t = (0, ua.default)(e);
3550
+ function Ar(e) {
3551
+ let t = (0, Dr.default)(e);
4166
3552
  return t.isValid() ? t.format("YYYYMMDD") : "";
4167
3553
  }
4168
- function ma(e) {
4169
- let t = (0, ua.default)(e);
3554
+ function jr(e) {
3555
+ let t = (0, Dr.default)(e);
4170
3556
  return t.isValid() ? t.format("HH:mm") : "";
4171
3557
  }
4172
- var ha = (e) => {
3558
+ var Mr = (e) => {
4173
3559
  let t = e?.split("-")[0] === "ko" ? "ko" : "en";
4174
- ua.default.locale(t);
3560
+ Dr.default.locale(t);
4175
3561
  };
4176
- T.isInitialized && ha(T.resolvedLanguage || T.language), T.on("languageChanged", ha);
3562
+ E.isInitialized && Mr(E.resolvedLanguage || E.language), E.on("languageChanged", Mr);
4177
3563
  //#endregion
4178
3564
  //#region src/utils/file.ts
4179
- function ga(e) {
3565
+ function Nr(e) {
4180
3566
  let t = e.lastIndexOf(".");
4181
3567
  return t === -1 ? "" : e.substring(t + 1);
4182
3568
  }
4183
3569
  //#endregion
4184
3570
  //#region src/utils/fb-storage.ts
4185
- async function _a(e, t, n) {
3571
+ async function Pr(e, t, n) {
4186
3572
  if (!n.file) return n.url;
4187
3573
  try {
4188
- let r = ga(n.file.name);
4189
- return await E((await te(ee(e, r ? t + "." + r : t), n.file, { contentType: n.file.type })).ref);
3574
+ let r = Nr(n.file.name);
3575
+ return await ee((await ne(te(e, r ? t + "." + r : t), n.file, { contentType: n.file.type })).ref);
4190
3576
  } catch (e) {
4191
3577
  throw console.error("Firebase image upload failed:", e), e;
4192
3578
  }
4193
3579
  }
4194
3580
  //#endregion
4195
3581
  //#region src/utils/table.ts
4196
- function va(e, t, n, r) {
3582
+ function Fr(e, t, n, r) {
4197
3583
  let i = /* @__PURE__ */ new Map(), a = [];
4198
3584
  for (let n of e) i.set(t(n), {
4199
3585
  ...n,
@@ -4212,40 +3598,40 @@ function va(e, t, n, r) {
4212
3598
  }
4213
3599
  //#endregion
4214
3600
  //#region src/utils/theme-provider.tsx
4215
- var ya = t({
3601
+ var Ir = n({
4216
3602
  theme: "system",
4217
3603
  resolvedTheme: "light",
4218
3604
  setTheme: () => null
4219
- }), ba = (e) => e === "light" || e === "dark" || e === "system", xa = (e, t, n) => {
3605
+ }), Lr = (e) => e === "light" || e === "dark" || e === "system", Rr = (e, t, n) => {
4220
3606
  let r = localStorage.getItem(e);
4221
3607
  if (!r) return t;
4222
3608
  try {
4223
3609
  let i = JSON.parse(r);
4224
- if (ba(i)) return i;
3610
+ if (Lr(i)) return i;
4225
3611
  if (i && typeof i == "object" && "theme" in i && "time" in i) {
4226
3612
  let r = i;
4227
- if (!ba(r.theme) || typeof r.time != "number") return t;
3613
+ if (!Lr(r.theme) || typeof r.time != "number") return t;
4228
3614
  let a = Date.now(), o = n * 60 * 60 * 1e3;
4229
3615
  return a - r.time < o ? r.theme : (localStorage.removeItem(e), t);
4230
3616
  }
4231
3617
  } catch {
4232
- if (ba(r)) return r;
3618
+ if (Lr(r)) return r;
4233
3619
  }
4234
3620
  return t;
4235
3621
  };
4236
- function Sa({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", themeExpiryHours: r = 24 }) {
4237
- let [s, c] = o(() => xa(n, t, r)), [l, d] = o(() => window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), f = s === "system" ? l : s;
4238
- i(() => {
3622
+ function zr({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", themeExpiryHours: r = 24 }) {
3623
+ let [i, c] = s(() => Rr(n, t, r)), [l, u] = s(() => window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), f = i === "system" ? l : i;
3624
+ a(() => {
4239
3625
  let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => {
4240
- d(e.matches ? "dark" : "light");
3626
+ u(e.matches ? "dark" : "light");
4241
3627
  };
4242
3628
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
4243
- }, []), i(() => {
3629
+ }, []), a(() => {
4244
3630
  let e = window.document.documentElement, t = f === "dark" ? "dark" : "light";
4245
3631
  e.classList.remove("light", "dark"), e.classList.add(t);
4246
3632
  }, [f]);
4247
- let p = a(() => ({
4248
- theme: s,
3633
+ let p = o(() => ({
3634
+ theme: i,
4249
3635
  resolvedTheme: f,
4250
3636
  setTheme: (e) => {
4251
3637
  let t = {
@@ -4255,43 +3641,43 @@ function Sa({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-
4255
3641
  localStorage.setItem(n, JSON.stringify(t)), c(e);
4256
3642
  }
4257
3643
  }), [
4258
- s,
3644
+ i,
4259
3645
  f,
4260
3646
  n
4261
3647
  ]);
4262
- return /* @__PURE__ */ u(ya.Provider, {
3648
+ return /* @__PURE__ */ d(Ir.Provider, {
4263
3649
  value: p,
4264
3650
  children: e
4265
3651
  });
4266
3652
  }
4267
- var Ca = () => r(ya);
3653
+ var Br = () => i(Ir);
4268
3654
  //#endregion
4269
3655
  //#region src/utils/text.ts
4270
- function wa(e) {
3656
+ function Vr(e) {
4271
3657
  let t = e.trimEnd(), n = t.length === 0 ? null : t[t.length - 1];
4272
3658
  return !n || n.charCodeAt(0) < 44032 || n.charCodeAt(0) > 55203 ? !1 : (n.charCodeAt(0) - 44032) % 28 != 0;
4273
3659
  }
4274
- function Ta(e, t, n) {
4275
- return e + (wa(e) ? t : n);
3660
+ function Hr(e, t, n) {
3661
+ return e + (Vr(e) ? t : n);
4276
3662
  }
4277
3663
  //#endregion
4278
3664
  //#region src/constant/firestore.ts
4279
- var Ea = () => ({
4280
- updateAt: S(),
3665
+ var Ur = () => ({
3666
+ updateAt: C(),
4281
3667
  delete: !0
4282
- }), Da = () => ({
4283
- updateAt: S(),
3668
+ }), Wr = () => ({
3669
+ updateAt: C(),
4284
3670
  delete: !1
4285
- }), Oa = () => ({
4286
- updateAt: S(),
4287
- deletedAt: S()
4288
- }), ka = () => ({
4289
- updateAt: S(),
3671
+ }), Gr = () => ({
3672
+ updateAt: C(),
3673
+ deletedAt: C()
3674
+ }), Kr = () => ({
3675
+ updateAt: C(),
4290
3676
  deletedAt: null
4291
3677
  });
4292
3678
  //#endregion
4293
3679
  //#region src/constant/auth.ts
4294
- function Aa(e) {
3680
+ function qr(e) {
4295
3681
  switch (e) {
4296
3682
  case "auth/user-not-found": return "libs:auth.errors.user_not_found";
4297
3683
  case "auth/wrong-password": return "libs:auth.errors.wrong_password";
@@ -4313,7 +3699,7 @@ function Aa(e) {
4313
3699
  default: return "libs:auth.errors.default";
4314
3700
  }
4315
3701
  }
4316
- var ja = {
3702
+ var Jr = {
4317
3703
  add_assets: "애셋 추가",
4318
3704
  auth: { errors: {
4319
3705
  account_exists_with_different_credential: "이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.",
@@ -4351,7 +3737,7 @@ var ja = {
4351
3737
  quite_warning_desc: "변경된 모든 사항을 취소하고 이전 화면으로 돌아갑니다.",
4352
3738
  time: "시각",
4353
3739
  unknown_error_occurred: "알 수 없는 오류가 발생했습니다."
4354
- }, Ma = {
3740
+ }, Yr = {
4355
3741
  add_assets: "Add Assets",
4356
3742
  auth: { errors: {
4357
3743
  account_exists_with_different_credential: "This email is already linked to another sign-in method. Please use that method to sign in.",
@@ -4392,12 +3778,12 @@ var ja = {
4392
3778
  };
4393
3779
  //#endregion
4394
3780
  //#region src/locales/i18n.ts
4395
- function Na(e) {
4396
- e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs", ja, !0, !1), e.hasResourceBundle("en", "libs") || e.addResourceBundle("en", "libs", Ma, !0, !1);
3781
+ function Xr(e) {
3782
+ e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs", Jr, !0, !1), e.hasResourceBundle("en", "libs") || e.addResourceBundle("en", "libs", Yr, !0, !1);
4397
3783
  }
4398
3784
  //#endregion
4399
3785
  //#region src/css/toast.ts
4400
- var Pa = {
3786
+ var Zr = {
4401
3787
  Info: {
4402
3788
  Soft: {
4403
3789
  "--normal-bg": "color-mix(in oklab, light-dark(var(--color-sky-600), var(--color-sky-400)) 10%, var(--background))",
@@ -4466,7 +3852,7 @@ var Pa = {
4466
3852
  "--normal-border": "transparent"
4467
3853
  }
4468
3854
  }
4469
- }, Fa = {
3855
+ }, Qr = {
4470
3856
  initial: {
4471
3857
  opacity: 0,
4472
3858
  y: -10
@@ -4479,11 +3865,11 @@ var Pa = {
4479
3865
  opacity: 0,
4480
3866
  y: -10
4481
3867
  }
4482
- }, Ia = {
3868
+ }, $r = {
4483
3869
  initial: { opacity: 0 },
4484
3870
  animate: { opacity: 1 },
4485
3871
  exit: { opacity: 0 },
4486
3872
  transition: { duration: .3 }
4487
3873
  };
4488
3874
  //#endregion
4489
- export { ln as AnimatedSwapIcon, un as BaseDateTimeSelector, dn as BaseDeleteAlertDialog, fn as BaseRouterPromptAlertDialog, oe as CrossfadeImage, on as DataTable, Ae as DefaultCalendar, Te as DefaultDialogContent, Oe as DefaultDialogDescription, ke as DefaultDialogFooter, Ee as DefaultDialogHeader, we as DefaultDialogRoot, De as DefaultDialogTitle, je as DefaultFieldGroup, Me as DefaultInputGroup, Pe as DefaultInputGroupAddon, Ne as DefaultInputGroupInput, ve as DefaultTable, be as DefaultTableBody, Ce as DefaultTableCell, Se as DefaultTableHead, ye as DefaultTableHeader, xe as DefaultTableRow, Fe as DefaultTimeIcon, sn as GroupedDataTable, Ie as ImageUploadField, _e as ImageUploadItem, Le as ImageUploadSortableField, ge as Localized, pe as SUPPORTED_LOCALES, Sa as ThemeProvider, Pa as ToastCSS, va as buildTreeWithSubRows, oa as createZustandContext, pa as dateIdFormat, Oa as delItem, Ea as delItemLegacy, Ia as fadeProps, $i as fetchItems, ea as fetchItemsByOne, Aa as getAuthErrorKey, ga as getFileExtension, aa as getPlatformType, ra as getSnapshots, wa as hasLastConsonant, Na as initIenlabI18n, ia as mapNotNull, he as setLocalizedLocaleResolver, Fa as slideFadeProps, Qi as snapshotToData, ma as time24Format, ka as undelItem, Da as undelItemLegacy, _a as uploadImage, fa as useDateTimeFormatters, Zi as useDebouncedSearch, Xi as useDebouncedValue, Yi as useListScreenLifecycle, Ca as useTheme, Ta as withLetterParticle };
3875
+ export { sn as AnimatedSwapIcon, cn as BaseDateTimeSelector, ln as BaseDeleteAlertDialog, un as BaseRouterPromptAlertDialog, ce as CrossfadeImage, rn as DataTable, Oe as DefaultCalendar, Ce as DefaultDialogContent, Ee as DefaultDialogDescription, De as DefaultDialogFooter, we as DefaultDialogHeader, Se as DefaultDialogRoot, Te as DefaultDialogTitle, ke as DefaultFieldGroup, Ae as DefaultInputGroup, Me as DefaultInputGroupAddon, je as DefaultInputGroupInput, ge as DefaultTable, ve as DefaultTableBody, xe as DefaultTableCell, be as DefaultTableHead, _e as DefaultTableHeader, ye as DefaultTableRow, Ne as DefaultTimeIcon, an as GroupedDataTable, Pe as ImageUploadField, he as ImageUploadItem, Fe as ImageUploadSortableField, me as Localized, fe as SUPPORTED_LOCALES, ur as Seo, zr as ThemeProvider, Zr as ToastCSS, Fr as buildTreeWithSubRows, Cr as createZustandContext, Ar as dateIdFormat, Gr as delItem, Ur as delItemLegacy, $r as fadeProps, gr as fetchItems, _r as fetchItemsByOne, qr as getAuthErrorKey, Nr as getFileExtension, Sr as getPlatformType, br as getSnapshots, Vr as hasLastConsonant, Xr as initIenlabI18n, xr as mapNotNull, pe as setLocalizedLocaleResolver, Qr as slideFadeProps, hr as snapshotToData, jr as time24Format, Kr as undelItem, Wr as undelItemLegacy, Pr as uploadImage, kr as useDateTimeFormatters, mr as useDebouncedSearch, pr as useDebouncedValue, fr as useListScreenLifecycle, Br as useTheme, Hr as withLetterParticle };