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

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.
Files changed (61) hide show
  1. package/dist/components/dialog/AlertDialogProps.d.ts +8 -0
  2. package/dist/components/dialog/AlertDialogProps.d.ts.map +1 -0
  3. package/dist/components/dialog/BaseDeleteAlertDialog.d.ts +3 -0
  4. package/dist/components/dialog/BaseDeleteAlertDialog.d.ts.map +1 -0
  5. package/dist/components/dialog/BaseRouterPromptAlertDialog.d.ts +3 -0
  6. package/dist/components/dialog/BaseRouterPromptAlertDialog.d.ts.map +1 -0
  7. package/dist/components/dialog/index.d.ts +4 -0
  8. package/dist/components/dialog/index.d.ts.map +1 -0
  9. package/dist/components/index.d.ts +2 -0
  10. package/dist/components/index.d.ts.map +1 -1
  11. package/dist/components/selector/BaseDateTimeSelector.d.ts +3 -0
  12. package/dist/components/selector/BaseDateTimeSelector.d.ts.map +1 -0
  13. package/dist/components/selector/DateTimeSelectorProps.d.ts +7 -0
  14. package/dist/components/selector/DateTimeSelectorProps.d.ts.map +1 -0
  15. package/dist/components/selector/index.d.ts +3 -0
  16. package/dist/components/selector/index.d.ts.map +1 -0
  17. package/dist/constant/firestore.d.ts +10 -2
  18. package/dist/constant/firestore.d.ts.map +1 -1
  19. package/dist/hooks/index.d.ts +3 -1
  20. package/dist/hooks/index.d.ts.map +1 -1
  21. package/dist/hooks/use-debounced-search.d.ts +2 -0
  22. package/dist/hooks/use-debounced-search.d.ts.map +1 -0
  23. package/dist/hooks/use-debounced-value.d.ts +2 -0
  24. package/dist/hooks/use-debounced-value.d.ts.map +1 -0
  25. package/dist/hooks/use-screen-lifecycle.d.ts +8 -0
  26. package/dist/hooks/use-screen-lifecycle.d.ts.map +1 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/locales/en/libs.json.d.ts +7 -0
  30. package/dist/locales/ko/libs.json.d.ts +7 -0
  31. package/dist/my-library.cjs.js +3 -1
  32. package/dist/my-library.es.js +2281 -736
  33. package/dist/props/index.d.ts +2 -0
  34. package/dist/props/index.d.ts.map +1 -0
  35. package/dist/props/motion/index.d.ts +2 -0
  36. package/dist/props/motion/index.d.ts.map +1 -0
  37. package/dist/props/motion/props.d.ts +29 -0
  38. package/dist/props/motion/props.d.ts.map +1 -0
  39. package/dist/types/dialog.d.ts +29 -0
  40. package/dist/types/dialog.d.ts.map +1 -0
  41. package/dist/types/firestore.d.ts +8 -1
  42. package/dist/types/firestore.d.ts.map +1 -1
  43. package/dist/types/index.d.ts +3 -0
  44. package/dist/types/index.d.ts.map +1 -1
  45. package/dist/types/localized.d.ts +5 -0
  46. package/dist/types/localized.d.ts.map +1 -1
  47. package/dist/types/page.d.ts +1 -1
  48. package/dist/types/page.d.ts.map +1 -1
  49. package/dist/types/router.d.ts +6 -0
  50. package/dist/types/router.d.ts.map +1 -0
  51. package/dist/types/selector.d.ts +40 -0
  52. package/dist/types/selector.d.ts.map +1 -0
  53. package/dist/utils/firestore.d.ts +3 -3
  54. package/dist/utils/firestore.d.ts.map +1 -1
  55. package/dist/utils/index.d.ts +2 -0
  56. package/dist/utils/index.d.ts.map +1 -1
  57. package/dist/utils/text.d.ts +3 -0
  58. package/dist/utils/text.d.ts.map +1 -0
  59. package/dist/utils/theme-provider.d.ts +18 -0
  60. package/dist/utils/theme-provider.d.ts.map +1 -0
  61. package/package.json +21 -19
@@ -1,69 +1,82 @@
1
- import { createContext as e, useContext as t, useEffect as n, useMemo as r, useState as i } from "react";
2
- import { AnimatePresence as a, Reorder as o, motion as s } from "motion/react";
3
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
- import { useTranslation as u } from "react-i18next";
5
- import { flexRender as d, getCoreRowModel as f, getExpandedRowModel as p, useReactTable as m } from "@tanstack/react-table";
6
- import { documentId as h, getDoc as g, getDocs as _, onSnapshot as v, query as y, serverTimestamp as b, where as x } from "firebase/firestore";
7
- import { useStore as S } from "zustand/react";
8
- import C from "i18next";
9
- import { getDownloadURL as w, ref as T, uploadBytes as E } from "firebase/storage";
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";
10
11
  //#region \0rolldown/runtime.js
11
- var D = Object.create, O = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, te = Object.getOwnPropertyNames, k = Object.getPrototypeOf, A = Object.prototype.hasOwnProperty, j = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ne = (e, t, n, r) => {
12
- if (t && typeof t == "object" || typeof t == "function") for (var i = te(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !A.call(e, s) && s !== n && O(e, s, {
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, {
13
14
  get: ((e) => t[e]).bind(null, s),
14
- enumerable: !(r = ee(t, s)) || r.enumerable
15
+ enumerable: !(r = O(t, s)) || r.enumerable
15
16
  });
16
17
  return e;
17
- }, re = (e, t, n) => (n = e == null ? {} : D(k(e)), ne(t || !e || !e.__esModule ? O(n, "default", {
18
+ }, ae = (e, t, n) => (n = e == null ? {} : ne(A(e)), j(t || !e || !e.__esModule ? D(n, "default", {
18
19
  value: e,
19
20
  enumerable: !0
20
21
  }) : n, e));
21
22
  //#endregion
22
23
  //#region src/components/image/CrossfadeImage.tsx
23
- function M({ placeholder: e, src: t, onLoadError: r, ...o }) {
24
- let [l, u] = i(() => {
24
+ function oe({ placeholder: e, src: t, onLoadError: n, ...r }) {
25
+ let [a, c] = o(() => {
25
26
  if (typeof window > "u" || !t) return !1;
26
27
  let e = new Image();
27
28
  return e.src = t, e.complete && e.naturalWidth > 0;
28
- }), [d, f] = i(t);
29
- return d !== t && (f(t), u(!1)), n(() => {
29
+ }), [d, f] = o(t);
30
+ return d !== t && (f(t), c(!1)), i(() => {
30
31
  if (!t) return;
31
32
  let e = new Image();
32
- return e.src = t, e.onload = () => u(!0), e.onerror = (e) => {
33
- r ? r(e) : console.error("CrossfadeImage: Failed to load image", t);
33
+ return e.src = t, e.onload = () => c(!0), e.onerror = (e) => {
34
+ n ? n(e) : console.error("CrossfadeImage: Failed to load image", t);
34
35
  }, e.complete && e.naturalWidth > 0 && e.onload(new Event("load")), () => {
35
36
  e.onload = null, e.onerror = null;
36
37
  };
37
- }, [t, r]), /* @__PURE__ */ c(a, { children: l && t ? /* @__PURE__ */ c(s.img, {
38
+ }, [t, n]), /* @__PURE__ */ u(s, { children: a && t ? /* @__PURE__ */ u(l.img, {
38
39
  src: t,
39
- ...o,
40
+ ...r,
40
41
  initial: { opacity: 0 },
41
42
  animate: { opacity: 1 },
42
43
  exit: { opacity: 0 },
43
- style: { ...o.style }
44
- }, "loaded-image") : /* @__PURE__ */ c(s.div, {
44
+ style: { ...r.style }
45
+ }, "loaded-image") : /* @__PURE__ */ u(l.div, {
45
46
  initial: { opacity: 1 },
46
47
  transition: { duration: .3 },
47
- style: { ...o.style },
48
- children: e ?? /* @__PURE__ */ c("div", { className: "w-full h-full bg-sidebar" })
48
+ style: { ...r.style },
49
+ children: e ?? /* @__PURE__ */ u("div", { className: "w-full h-full bg-sidebar" })
49
50
  }, "placeholder") });
50
51
  }
51
52
  //#endregion
52
53
  //#region src/types/image.tsx
53
- var ie = ({ children: e }) => /* @__PURE__ */ c("div", { children: e }), ae = (e) => /* @__PURE__ */ c("label", { ...e }), oe = ({ children: e }) => /* @__PURE__ */ c("p", { children: e }), N = (e) => /* @__PURE__ */ c("input", { ...e }), P = ({ children: e, ...t }) => /* @__PURE__ */ c("div", {
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", {
54
55
  ...t,
55
56
  children: e
56
- }), F = (e) => null, I = ({ children: e, ...t }) => /* @__PURE__ */ c("div", {
57
+ }), ue = (e) => null, P = ({ children: e, ...t }) => /* @__PURE__ */ u("div", {
57
58
  ...t,
58
59
  children: e
59
- }), se = ({ children: e, type: t = "button", ...n }) => /* @__PURE__ */ c("button", {
60
+ }), de = ({ children: e, type: t = "button", ...n }) => /* @__PURE__ */ u("button", {
60
61
  type: t,
61
62
  ...n,
62
63
  children: e
63
- }), L = ({ className: e }) => /* @__PURE__ */ c("span", {
64
+ }), fe = ({ className: e }) => /* @__PURE__ */ u("span", {
64
65
  className: e,
65
66
  children: "×"
66
- }), ce = ["ko", "en"], R = class {
67
+ }), pe = ["ko", "en"], me = null;
68
+ function he(e) {
69
+ me = e;
70
+ }
71
+ var ge = {
72
+ get(e, t = "ko") {
73
+ let n = me?.();
74
+ return e[pe.includes(n) ? n : t] ?? e[t];
75
+ },
76
+ ko(e) {
77
+ return e.ko;
78
+ }
79
+ }, _e = class {
67
80
  url = "";
68
81
  file = null;
69
82
  constructor(e = {}) {
@@ -78,7 +91,19 @@ var ie = ({ children: e }) => /* @__PURE__ */ c("div", { children: e }), ae = (e
78
91
  get isEmpty() {
79
92
  return !this.file && !this.url;
80
93
  }
81
- }, z = (e) => /* @__PURE__ */ c("table", { ...e }), B = (e) => /* @__PURE__ */ c("thead", { ...e }), V = (e) => /* @__PURE__ */ c("tbody", { ...e }), le = (e) => /* @__PURE__ */ c("tr", { ...e }), ue = (e) => /* @__PURE__ */ c("th", { ...e }), de = (e) => /* @__PURE__ */ c("td", { ...e }), H = {
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", {
95
+ className: e.className,
96
+ children: e.children
97
+ }), Me = (e) => /* @__PURE__ */ u("div", {
98
+ className: e.className,
99
+ children: e.children
100
+ }), Ne = (e) => /* @__PURE__ */ u("input", { ...e }), Pe = (e) => /* @__PURE__ */ u("div", {
101
+ className: e.className,
102
+ children: e.children
103
+ }), Fe = ({ className: e }) => /* @__PURE__ */ u("span", {
104
+ className: e,
105
+ children: "🕔"
106
+ }), F = {
82
107
  wrapper: {
83
108
  display: "flex",
84
109
  flexDirection: "column",
@@ -93,8 +118,8 @@ var ie = ({ children: e }) => /* @__PURE__ */ c("div", { children: e }), ae = (e
93
118
  position: "relative",
94
119
  overflow: "hidden",
95
120
  borderRadius: "1.5rem",
96
- border: "1px solid #e5e7eb",
97
- backgroundColor: "#ffffff",
121
+ border: "1px solid var(--border)",
122
+ backgroundColor: "var(--card)",
98
123
  transition: "background-color 160ms ease, box-shadow 160ms ease"
99
124
  },
100
125
  frame: {
@@ -126,18 +151,18 @@ var ie = ({ children: e }) => /* @__PURE__ */ c("div", { children: e }), ae = (e
126
151
  alignItems: "center",
127
152
  justifyContent: "center",
128
153
  gap: "1rem",
129
- color: "#6b7280",
154
+ color: "var(--muted-foreground)",
130
155
  textAlign: "center",
131
156
  padding: "1rem",
132
157
  boxSizing: "border-box"
133
158
  },
134
159
  badge: {
135
160
  borderRadius: "1rem",
136
- backgroundColor: "#f3f4f6",
161
+ backgroundColor: "var(--secondary)",
137
162
  padding: "0.75rem 1rem",
138
163
  fontSize: "0.875rem",
139
164
  lineHeight: 1.2,
140
- color: "#111827"
165
+ color: "var(--secondary-foreground)"
141
166
  },
142
167
  hint: {
143
168
  margin: 0,
@@ -153,76 +178,76 @@ var ie = ({ children: e }) => /* @__PURE__ */ c("div", { children: e }), ae = (e
153
178
  transition: "box-shadow 160ms ease"
154
179
  }
155
180
  };
156
- function fe({ id: e, label: t, uploadHintText: n, descriptionText: r, value: a, onChange: o, aspectRatio: s = "1 / 1", accept: d = "image/*", components: f }) {
157
- let { t: p } = u(), m = f?.Field ?? ie, h = f?.FieldLabel ?? ae, g = f?.FieldDescription ?? oe, _ = f?.Input ?? N, v = {
158
- ...H.imageBox,
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,
159
184
  aspectRatio: s
160
- }, [y, b] = i(!1);
161
- return /* @__PURE__ */ l(m, { children: [/* @__PURE__ */ c(h, {
185
+ }, [y, b] = o(!1);
186
+ return /* @__PURE__ */ d(m, { children: [/* @__PURE__ */ u(h, {
162
187
  htmlFor: e,
163
188
  children: t
164
- }), /* @__PURE__ */ l("div", {
165
- style: H.wrapper,
189
+ }), /* @__PURE__ */ d("div", {
190
+ style: F.wrapper,
166
191
  children: [
167
- /* @__PURE__ */ c("label", {
192
+ /* @__PURE__ */ u("label", {
168
193
  htmlFor: e,
169
194
  style: {
170
- ...H.trigger,
171
- backgroundColor: y ? "#f9fafb" : "#ffffff"
195
+ ...F.trigger,
196
+ backgroundColor: y ? "var(--accent)" : "var(--card)"
172
197
  },
173
198
  onMouseEnter: () => b(!0),
174
199
  onMouseLeave: () => b(!1),
175
- children: /* @__PURE__ */ l("div", {
176
- style: H.card,
177
- children: [/* @__PURE__ */ c("div", {
178
- style: H.frame,
179
- children: a.url ? /* @__PURE__ */ c("div", {
180
- style: H.imageLayer,
181
- children: /* @__PURE__ */ c("div", {
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", {
182
207
  style: v,
183
- children: /* @__PURE__ */ c(M, {
184
- src: a.url,
208
+ children: /* @__PURE__ */ u(oe, {
209
+ src: i.url,
185
210
  className: "",
186
211
  alt: t,
187
- style: H.image
212
+ style: F.image
188
213
  })
189
214
  })
190
- }) : /* @__PURE__ */ l("div", {
191
- style: H.empty,
192
- children: [/* @__PURE__ */ c("div", {
193
- style: H.badge,
215
+ }) : /* @__PURE__ */ d("div", {
216
+ style: F.empty,
217
+ children: [/* @__PURE__ */ u("div", {
218
+ style: F.badge,
194
219
  children: p("libs:add_assets")
195
- }), /* @__PURE__ */ c("p", {
196
- style: H.hint,
220
+ }), /* @__PURE__ */ u("p", {
221
+ style: F.hint,
197
222
  children: n
198
223
  })]
199
224
  })
200
- }), /* @__PURE__ */ c("div", { style: {
201
- ...H.overlay,
225
+ }), /* @__PURE__ */ u("div", { style: {
226
+ ...F.overlay,
202
227
  boxShadow: y ? "inset 0 0 0 2px rgba(59, 130, 246, 0.16)" : "inset 0 0 0 0 rgba(59, 130, 246, 0)"
203
228
  } })]
204
229
  })
205
230
  }),
206
- /* @__PURE__ */ c(_, {
231
+ /* @__PURE__ */ u(_, {
207
232
  id: e,
208
233
  type: "file",
209
- accept: d,
234
+ accept: c,
210
235
  onChange: (e) => {
211
236
  let t = e.target.files?.[0];
212
- t && (a.revokeIfNeeded(), o(new R({
237
+ t && (i.revokeIfNeeded(), a(new _e({
213
238
  file: t,
214
239
  url: URL.createObjectURL(t)
215
240
  })), e.currentTarget.value = "");
216
241
  },
217
242
  style: { display: "none" }
218
243
  }),
219
- /* @__PURE__ */ c(g, { children: r })
244
+ /* @__PURE__ */ u(g, { children: r })
220
245
  ]
221
246
  })] });
222
247
  }
223
248
  //#endregion
224
249
  //#region src/components/image/ImageUploadSortableField.tsx
225
- var U = {
250
+ var I = {
226
251
  wrapper: {
227
252
  display: "flex",
228
253
  flexDirection: "column",
@@ -230,8 +255,8 @@ var U = {
230
255
  },
231
256
  outerBox: {
232
257
  borderRadius: "1.5rem",
233
- border: "1px solid #e5e7eb",
234
- backgroundColor: "#ffffff",
258
+ border: "1px solid var(--border)",
259
+ backgroundColor: "var(--card)",
235
260
  overflow: "hidden"
236
261
  },
237
262
  scrollArea: {
@@ -256,8 +281,8 @@ var U = {
256
281
  overflow: "hidden",
257
282
  borderRadius: "0.75rem",
258
283
  padding: 0,
259
- backgroundColor: "#ffffff",
260
- border: "1px solid #e5e7eb",
284
+ backgroundColor: "var(--card)",
285
+ border: "1px solid var(--border)",
261
286
  boxSizing: "border-box"
262
287
  },
263
288
  cardInner: {
@@ -288,8 +313,8 @@ var U = {
288
313
  overflow: "hidden",
289
314
  borderRadius: "0.75rem",
290
315
  padding: 0,
291
- border: "1px dashed #d1d5db",
292
- backgroundColor: "#ffffff",
316
+ border: "1px dashed var(--border)",
317
+ backgroundColor: "var(--card)",
293
318
  boxSizing: "border-box",
294
319
  transition: "background-color 160ms ease"
295
320
  },
@@ -301,18 +326,18 @@ var U = {
301
326
  alignItems: "center",
302
327
  justifyContent: "center",
303
328
  gap: "1rem",
304
- color: "#6b7280",
329
+ color: "var(--muted-foreground)",
305
330
  textAlign: "center",
306
331
  padding: "1rem",
307
332
  boxSizing: "border-box"
308
333
  },
309
334
  badge: {
310
335
  borderRadius: "1rem",
311
- backgroundColor: "#f3f4f6",
336
+ backgroundColor: "var(--secondary)",
312
337
  padding: "0.75rem 1rem",
313
338
  fontSize: "0.875rem",
314
339
  lineHeight: 1.2,
315
- color: "#111827"
340
+ color: "var(--secondary-foreground)"
316
341
  },
317
342
  hint: {
318
343
  margin: 0,
@@ -326,211 +351,211 @@ var U = {
326
351
  marginRight: "1rem"
327
352
  }
328
353
  };
329
- function pe({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i, onChange: a, aspectRatio: s = "1 / 1", accept: d = "image/*", components: f }) {
330
- let { t: p } = u(), m = f?.Field ?? ie, h = f?.FieldLabel ?? ae, g = f?.FieldDescription ?? oe, _ = f?.Input ?? N, v = f?.ScrollArea ?? P, y = f?.ScrollBar ?? F, b = f?.Card ?? I, x = f?.Button ?? se, S = f?.CloseIcon ?? L, C = (e) => {
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) => {
331
356
  e.revokeIfNeeded(), a(i.filter((t) => t !== e));
332
357
  }, w = (e) => {
333
- !e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new R({
358
+ !e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new _e({
334
359
  file: e,
335
360
  url: URL.createObjectURL(e)
336
361
  }))]);
337
362
  }, T = {
338
- ...U.card,
339
- aspectRatio: s
363
+ ...I.card,
364
+ aspectRatio: o
340
365
  }, E = {
341
- ...U.uploadCard,
342
- aspectRatio: s
366
+ ...I.uploadCard,
367
+ aspectRatio: o
343
368
  };
344
- return /* @__PURE__ */ l(m, { children: [/* @__PURE__ */ c(h, {
369
+ return /* @__PURE__ */ d(m, { children: [/* @__PURE__ */ u(h, {
345
370
  htmlFor: e,
346
371
  children: t
347
- }), /* @__PURE__ */ l("div", {
348
- style: U.wrapper,
349
- children: [/* @__PURE__ */ l("div", {
350
- style: U.outerBox,
351
- children: [/* @__PURE__ */ l(v, {
352
- style: U.scrollArea,
353
- children: [/* @__PURE__ */ l(o.Group, {
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, {
354
379
  axis: "x",
355
380
  values: i,
356
381
  onReorder: a,
357
382
  layoutScroll: !0,
358
- style: U.list,
359
- children: [i.map((e) => /* @__PURE__ */ c(o.Item, {
383
+ style: I.list,
384
+ children: [i.map((e) => /* @__PURE__ */ u(c.Item, {
360
385
  value: e,
361
- style: U.item,
362
- children: /* @__PURE__ */ c(b, {
386
+ style: I.item,
387
+ children: /* @__PURE__ */ u(b, {
363
388
  style: T,
364
- children: /* @__PURE__ */ l("div", {
365
- style: U.cardInner,
366
- children: [/* @__PURE__ */ c(M, {
389
+ children: /* @__PURE__ */ d("div", {
390
+ style: I.cardInner,
391
+ children: [/* @__PURE__ */ u(oe, {
367
392
  src: e.url,
368
393
  className: "",
369
394
  alt: t,
370
- style: U.image,
395
+ style: I.image,
371
396
  draggable: !1
372
- }), /* @__PURE__ */ c(x, {
397
+ }), /* @__PURE__ */ u(x, {
373
398
  type: "button",
374
- style: U.removeButton,
399
+ style: I.removeButton,
375
400
  onClick: () => C(e),
376
- children: /* @__PURE__ */ c(S, {})
401
+ children: /* @__PURE__ */ u(S, {})
377
402
  })]
378
403
  })
379
404
  })
380
- }, e.url)), /* @__PURE__ */ c("label", {
405
+ }, e.url)), /* @__PURE__ */ u("label", {
381
406
  htmlFor: e,
382
- style: U.uploadLabel,
383
- children: /* @__PURE__ */ c(b, {
407
+ style: I.uploadLabel,
408
+ children: /* @__PURE__ */ u(b, {
384
409
  style: E,
385
410
  onMouseEnter: (e) => {
386
- e.currentTarget.style.backgroundColor = "#f9fafb";
411
+ e.currentTarget.style.backgroundColor = "var(--accent)";
387
412
  },
388
413
  onMouseLeave: (e) => {
389
- e.currentTarget.style.backgroundColor = "#ffffff";
414
+ e.currentTarget.style.backgroundColor = "var(--card)";
390
415
  },
391
- children: /* @__PURE__ */ l("div", {
392
- style: U.uploadCardInner,
393
- children: [/* @__PURE__ */ c("div", {
394
- style: U.badge,
416
+ children: /* @__PURE__ */ d("div", {
417
+ style: I.uploadCardInner,
418
+ children: [/* @__PURE__ */ u("div", {
419
+ style: I.badge,
395
420
  children: p("libs:add_assets")
396
- }), /* @__PURE__ */ c("p", {
397
- style: U.hint,
421
+ }), /* @__PURE__ */ u("p", {
422
+ style: I.hint,
398
423
  children: r
399
424
  })]
400
425
  })
401
426
  })
402
427
  })]
403
- }), /* @__PURE__ */ c(y, {
428
+ }), /* @__PURE__ */ u(y, {
404
429
  orientation: "horizontal",
405
- style: U.scrollBar
430
+ style: I.scrollBar
406
431
  })]
407
- }), /* @__PURE__ */ c(_, {
432
+ }), /* @__PURE__ */ u(_, {
408
433
  id: e,
409
434
  type: "file",
410
- accept: d,
435
+ accept: s,
411
436
  multiple: !0,
412
437
  onChange: (e) => {
413
438
  w(e.target.files), e.currentTarget.value = "";
414
439
  },
415
- style: U.hiddenInput
440
+ style: I.hiddenInput
416
441
  })]
417
- }), /* @__PURE__ */ c("div", {
418
- style: U.description,
419
- children: /* @__PURE__ */ c(g, { children: n })
442
+ }), /* @__PURE__ */ u("div", {
443
+ style: I.description,
444
+ children: /* @__PURE__ */ u(g, { children: n })
420
445
  })]
421
446
  })] });
422
447
  }
423
448
  //#endregion
424
449
  //#region node_modules/clsx/dist/clsx.mjs
425
- function me(e) {
450
+ function Re(e) {
426
451
  var t, n, r = "";
427
452
  if (typeof e == "string" || typeof e == "number") r += e;
428
453
  else if (typeof e == "object") if (Array.isArray(e)) {
429
454
  var i = e.length;
430
- for (t = 0; t < i; t++) e[t] && (n = me(e[t])) && (r && (r += " "), r += n);
455
+ for (t = 0; t < i; t++) e[t] && (n = Re(e[t])) && (r && (r += " "), r += n);
431
456
  } else for (n in e) e[n] && (r && (r += " "), r += n);
432
457
  return r;
433
458
  }
434
- function he() {
435
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = me(e)) && (r && (r += " "), r += t);
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);
436
461
  return r;
437
462
  }
438
463
  //#endregion
439
464
  //#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
440
- var ge = (e, t) => {
465
+ var Be = (e, t) => {
441
466
  let n = Array(e.length + t.length);
442
467
  for (let t = 0; t < e.length; t++) n[t] = e[t];
443
468
  for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
444
469
  return n;
445
- }, _e = (e, t) => ({
470
+ }, Ve = (e, t) => ({
446
471
  classGroupId: e,
447
472
  validator: t
448
- }), ve = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
473
+ }), He = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
449
474
  nextPart: e,
450
475
  validators: t,
451
476
  classGroupId: n
452
- }), ye = "-", be = [], xe = "arbitrary..", Se = (e) => {
453
- let t = Te(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
477
+ }), Ue = "-", We = [], Ge = "arbitrary..", Ke = (e) => {
478
+ let t = Ye(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
454
479
  return {
455
480
  getClassGroupId: (e) => {
456
- if (e.startsWith("[") && e.endsWith("]")) return we(e);
457
- let n = e.split(ye);
458
- return Ce(n, +(n[0] === "" && n.length > 1), t);
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);
459
484
  },
460
485
  getConflictingClassGroupIds: (e, t) => {
461
486
  if (t) {
462
487
  let t = r[e], i = n[e];
463
- return t ? i ? ge(i, t) : t : i || be;
488
+ return t ? i ? Be(i, t) : t : i || We;
464
489
  }
465
- return n[e] || be;
490
+ return n[e] || We;
466
491
  }
467
492
  };
468
- }, Ce = (e, t, n) => {
493
+ }, qe = (e, t, n) => {
469
494
  if (e.length - t === 0) return n.classGroupId;
470
495
  let r = e[t], i = n.nextPart.get(r);
471
496
  if (i) {
472
- let n = Ce(e, t + 1, i);
497
+ let n = qe(e, t + 1, i);
473
498
  if (n) return n;
474
499
  }
475
500
  let a = n.validators;
476
501
  if (a === null) return;
477
- let o = t === 0 ? e.join(ye) : e.slice(t).join(ye), s = a.length;
502
+ let o = t === 0 ? e.join(Ue) : e.slice(t).join(Ue), s = a.length;
478
503
  for (let e = 0; e < s; e++) {
479
504
  let t = a[e];
480
505
  if (t.validator(o)) return t.classGroupId;
481
506
  }
482
- }, we = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
507
+ }, Je = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
483
508
  let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
484
- return r ? xe + r : void 0;
485
- })(), Te = (e) => {
509
+ return r ? Ge + r : void 0;
510
+ })(), Ye = (e) => {
486
511
  let { theme: t, classGroups: n } = e;
487
- return Ee(n, t);
488
- }, Ee = (e, t) => {
489
- let n = ve();
512
+ return Xe(n, t);
513
+ }, Xe = (e, t) => {
514
+ let n = He();
490
515
  for (let r in e) {
491
516
  let i = e[r];
492
- De(i, n, r, t);
517
+ Ze(i, n, r, t);
493
518
  }
494
519
  return n;
495
- }, De = (e, t, n, r) => {
520
+ }, Ze = (e, t, n, r) => {
496
521
  let i = e.length;
497
522
  for (let a = 0; a < i; a++) {
498
523
  let i = e[a];
499
- Oe(i, t, n, r);
524
+ Qe(i, t, n, r);
500
525
  }
501
- }, Oe = (e, t, n, r) => {
526
+ }, Qe = (e, t, n, r) => {
502
527
  if (typeof e == "string") {
503
- ke(e, t, n);
528
+ $e(e, t, n);
504
529
  return;
505
530
  }
506
531
  if (typeof e == "function") {
507
- Ae(e, t, n, r);
532
+ et(e, t, n, r);
508
533
  return;
509
534
  }
510
- je(e, t, n, r);
511
- }, ke = (e, t, n) => {
512
- let r = e === "" ? t : Me(t, e);
535
+ tt(e, t, n, r);
536
+ }, $e = (e, t, n) => {
537
+ let r = e === "" ? t : nt(t, e);
513
538
  r.classGroupId = n;
514
- }, Ae = (e, t, n, r) => {
515
- if (Ne(e)) {
516
- De(e(r), t, n, r);
539
+ }, et = (e, t, n, r) => {
540
+ if (rt(e)) {
541
+ Ze(e(r), t, n, r);
517
542
  return;
518
543
  }
519
- t.validators === null && (t.validators = []), t.validators.push(_e(n, e));
520
- }, je = (e, t, n, r) => {
544
+ t.validators === null && (t.validators = []), t.validators.push(Ve(n, e));
545
+ }, tt = (e, t, n, r) => {
521
546
  let i = Object.entries(e), a = i.length;
522
547
  for (let e = 0; e < a; e++) {
523
548
  let [a, o] = i[e];
524
- De(o, Me(t, a), n, r);
549
+ Ze(o, nt(t, a), n, r);
525
550
  }
526
- }, Me = (e, t) => {
527
- let n = e, r = t.split(ye), i = r.length;
551
+ }, nt = (e, t) => {
552
+ let n = e, r = t.split(Ue), i = r.length;
528
553
  for (let e = 0; e < i; e++) {
529
554
  let t = r[e], i = n.nextPart.get(t);
530
- i || (i = ve(), n.nextPart.set(t, i)), n = i;
555
+ i || (i = He(), n.nextPart.set(t, i)), n = i;
531
556
  }
532
557
  return n;
533
- }, Ne = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Pe = (e) => {
558
+ }, rt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, it = (e) => {
534
559
  if (e < 1) return {
535
560
  get: () => void 0,
536
561
  set: () => {}
@@ -548,19 +573,19 @@ var ge = (e, t) => {
548
573
  e in n ? n[e] = t : i(e, t);
549
574
  }
550
575
  };
551
- }, Fe = "!", Ie = ":", Le = [], Re = (e, t, n, r, i) => ({
576
+ }, at = "!", ot = ":", st = [], ct = (e, t, n, r, i) => ({
552
577
  modifiers: e,
553
578
  hasImportantModifier: t,
554
579
  baseClassName: n,
555
580
  maybePostfixModifierPosition: r,
556
581
  isExternal: i
557
- }), ze = (e) => {
582
+ }), lt = (e) => {
558
583
  let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
559
584
  let t = [], n = 0, r = 0, i = 0, a, o = e.length;
560
585
  for (let s = 0; s < o; s++) {
561
586
  let o = e[s];
562
587
  if (n === 0 && r === 0) {
563
- if (o === Ie) {
588
+ if (o === ot) {
564
589
  t.push(e.slice(i, s)), i = s + 1;
565
590
  continue;
566
591
  }
@@ -572,13 +597,13 @@ var ge = (e, t) => {
572
597
  o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
573
598
  }
574
599
  let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
575
- s.endsWith(Fe) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Fe) && (c = s.slice(1), l = !0);
600
+ s.endsWith(at) ? (c = s.slice(0, -1), l = !0) : s.startsWith(at) && (c = s.slice(1), l = !0);
576
601
  let u = a && a > i ? a - i : void 0;
577
- return Re(t, l, c, u);
602
+ return ct(t, l, c, u);
578
603
  };
579
604
  if (t) {
580
- let e = t + Ie, n = r;
581
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Re(Le, !1, t, void 0, !0);
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);
582
607
  }
583
608
  if (n) {
584
609
  let e = r;
@@ -588,7 +613,7 @@ var ge = (e, t) => {
588
613
  });
589
614
  }
590
615
  return r;
591
- }, Be = (e) => {
616
+ }, ut = (e) => {
592
617
  let t = /* @__PURE__ */ new Map();
593
618
  return e.orderSensitiveModifiers.forEach((e, n) => {
594
619
  t.set(e, 1e6 + n);
@@ -600,18 +625,18 @@ var ge = (e, t) => {
600
625
  }
601
626
  return r.length > 0 && (r.sort(), n.push(...r)), n;
602
627
  };
603
- }, Ve = (e) => ({
604
- cache: Pe(e.cacheSize),
605
- parseClassName: ze(e),
606
- sortModifiers: Be(e),
607
- postfixLookupClassGroupIds: He(e),
608
- ...Se(e)
609
- }), He = (e) => {
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) => {
610
635
  let t = Object.create(null), n = e.postfixLookupClassGroups;
611
636
  if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
612
637
  return t;
613
- }, Ue = /\s+/, We = (e, t) => {
614
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Ue), l = "";
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 = "";
615
640
  for (let e = c.length - 1; e >= 0; --e) {
616
641
  let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
617
642
  if (u) {
@@ -635,7 +660,7 @@ var ge = (e, t) => {
635
660
  }
636
661
  h = !1;
637
662
  }
638
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Fe : _, y = v + g;
663
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + at : _, y = v + g;
639
664
  if (s.indexOf(y) > -1) continue;
640
665
  s.push(y);
641
666
  let b = i(g, h);
@@ -646,34 +671,34 @@ var ge = (e, t) => {
646
671
  l = t + (l.length > 0 ? " " + l : l);
647
672
  }
648
673
  return l;
649
- }, Ge = (...e) => {
674
+ }, ht = (...e) => {
650
675
  let t = 0, n, r, i = "";
651
- for (; t < e.length;) (n = e[t++]) && (r = Ke(n)) && (i && (i += " "), i += r);
676
+ for (; t < e.length;) (n = e[t++]) && (r = gt(n)) && (i && (i += " "), i += r);
652
677
  return i;
653
- }, Ke = (e) => {
678
+ }, gt = (e) => {
654
679
  if (typeof e == "string") return e;
655
680
  let t, n = "";
656
- for (let r = 0; r < e.length; r++) e[r] && (t = Ke(e[r])) && (n && (n += " "), n += t);
681
+ for (let r = 0; r < e.length; r++) e[r] && (t = gt(e[r])) && (n && (n += " "), n += t);
657
682
  return n;
658
- }, qe = (e, ...t) => {
659
- let n, r, i, a, o = (o) => (n = Ve(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
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) => {
660
685
  let t = r(e);
661
686
  if (t) return t;
662
- let a = We(e, n);
687
+ let a = mt(e, n);
663
688
  return i(e, a), a;
664
689
  };
665
- return a = o, (...e) => a(Ge(...e));
666
- }, Je = [], W = (e) => {
667
- let t = (t) => t[e] || Je;
690
+ return a = o, (...e) => a(ht(...e));
691
+ }, vt = [], L = (e) => {
692
+ let t = (t) => t[e] || vt;
668
693
  return t.isThemeGetter = !0, t;
669
- }, Ye = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Xe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ze = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Qe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, $e = /\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$/, et = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, tt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => Ze.test(e), K = (e) => !!e && !Number.isNaN(Number(e)), q = (e) => !!e && Number.isInteger(Number(e)), rt = (e) => e.endsWith("%") && K(e.slice(0, -1)), J = (e) => Qe.test(e), it = () => !0, at = (e) => $e.test(e) && !et.test(e), ot = () => !1, st = (e) => tt.test(e), ct = (e) => nt.test(e), lt = (e) => !Y(e) && !Z(e), ut = (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)), dt = (e) => Q(e, Dt, ot), Y = (e) => Ye.test(e), X = (e) => Q(e, Ot, at), ft = (e) => Q(e, kt, K), pt = (e) => Q(e, jt, it), mt = (e) => Q(e, At, ot), ht = (e) => Q(e, Tt, ot), gt = (e) => Q(e, Et, ct), _t = (e) => Q(e, Mt, st), Z = (e) => Xe.test(e), vt = (e) => $(e, Ot), yt = (e) => $(e, At), bt = (e) => $(e, Tt), xt = (e) => $(e, Dt), St = (e) => $(e, Et), Ct = (e) => $(e, Mt, !0), wt = (e) => $(e, jt, !0), Q = (e, t, n) => {
670
- let r = Ye.exec(e);
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);
671
696
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
672
- }, $ = (e, t, n = !1) => {
673
- let r = Xe.exec(e);
697
+ }, K = (e, t, n = !1) => {
698
+ let r = bt.exec(e);
674
699
  return r ? r[1] ? t(r[1]) : n : !1;
675
- }, Tt = (e) => e === "position" || e === "percentage", Et = (e) => e === "image" || e === "url", Dt = (e) => e === "length" || e === "size" || e === "bg-size", Ot = (e) => e === "length", kt = (e) => e === "number", At = (e) => e === "family-name", jt = (e) => e === "number" || e === "weight", Mt = (e) => e === "shadow", Nt = /* @__PURE__ */ qe(() => {
676
- let e = W("color"), t = W("font"), n = W("text"), r = W("font-weight"), i = W("tracking"), a = W("leading"), o = W("breakpoint"), s = W("container"), c = W("spacing"), l = W("radius"), u = W("shadow"), d = W("inset-shadow"), f = W("text-shadow"), p = W("drop-shadow"), m = W("blur"), h = W("perspective"), g = W("aspect"), _ = W("ease"), v = W("animate"), y = () => [
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 = () => [
677
702
  "auto",
678
703
  "avoid",
679
704
  "all",
@@ -698,8 +723,8 @@ var ge = (e, t) => {
698
723
  "left-bottom"
699
724
  ], x = () => [
700
725
  ...b(),
701
- Z,
702
- Y
726
+ W,
727
+ H
703
728
  ], S = () => [
704
729
  "auto",
705
730
  "hidden",
@@ -711,44 +736,44 @@ var ge = (e, t) => {
711
736
  "contain",
712
737
  "none"
713
738
  ], w = () => [
714
- Z,
715
- Y,
739
+ W,
740
+ H,
716
741
  c
717
742
  ], T = () => [
718
- G,
743
+ R,
719
744
  "full",
720
745
  "auto",
721
746
  ...w()
722
747
  ], E = () => [
723
- q,
748
+ B,
724
749
  "none",
725
750
  "subgrid",
726
- Z,
727
- Y
728
- ], D = () => [
751
+ W,
752
+ H
753
+ ], ee = () => [
729
754
  "auto",
730
755
  { span: [
731
756
  "full",
732
- q,
733
- Z,
734
- Y
757
+ B,
758
+ W,
759
+ H
735
760
  ] },
736
- q,
737
- Z,
738
- Y
739
- ], O = () => [
740
- q,
761
+ B,
762
+ W,
763
+ H
764
+ ], te = () => [
765
+ B,
741
766
  "auto",
742
- Z,
743
- Y
744
- ], ee = () => [
767
+ W,
768
+ H
769
+ ], ne = () => [
745
770
  "auto",
746
771
  "min",
747
772
  "max",
748
773
  "fr",
749
- Z,
750
- Y
751
- ], te = () => [
774
+ W,
775
+ H
776
+ ], D = () => [
752
777
  "start",
753
778
  "end",
754
779
  "center",
@@ -759,15 +784,15 @@ var ge = (e, t) => {
759
784
  "baseline",
760
785
  "center-safe",
761
786
  "end-safe"
762
- ], k = () => [
787
+ ], O = () => [
763
788
  "start",
764
789
  "end",
765
790
  "center",
766
791
  "stretch",
767
792
  "center-safe",
768
793
  "end-safe"
769
- ], A = () => ["auto", ...w()], j = () => [
770
- G,
794
+ ], k = () => ["auto", ...w()], A = () => [
795
+ R,
771
796
  "auto",
772
797
  "full",
773
798
  "dvw",
@@ -780,8 +805,8 @@ var ge = (e, t) => {
780
805
  "max",
781
806
  "fit",
782
807
  ...w()
783
- ], ne = () => [
784
- G,
808
+ ], re = () => [
809
+ R,
785
810
  "screen",
786
811
  "full",
787
812
  "dvw",
@@ -791,8 +816,8 @@ var ge = (e, t) => {
791
816
  "max",
792
817
  "fit",
793
818
  ...w()
794
- ], re = () => [
795
- G,
819
+ ], ie = () => [
820
+ R,
796
821
  "screen",
797
822
  "full",
798
823
  "lh",
@@ -803,50 +828,50 @@ var ge = (e, t) => {
803
828
  "max",
804
829
  "fit",
805
830
  ...w()
806
- ], M = () => [
831
+ ], j = () => [
807
832
  e,
808
- Z,
809
- Y
810
- ], ie = () => [
833
+ W,
834
+ H
835
+ ], ae = () => [
811
836
  ...b(),
812
- bt,
813
- ht,
814
- { position: [Z, Y] }
815
- ], ae = () => ["no-repeat", { repeat: [
837
+ Wt,
838
+ zt,
839
+ { position: [W, H] }
840
+ ], oe = () => ["no-repeat", { repeat: [
816
841
  "",
817
842
  "x",
818
843
  "y",
819
844
  "space",
820
845
  "round"
821
- ] }], oe = () => [
846
+ ] }], se = () => [
822
847
  "auto",
823
848
  "cover",
824
849
  "contain",
825
- xt,
826
- dt,
827
- { size: [Z, Y] }
828
- ], N = () => [
829
- rt,
830
- vt,
831
- X
832
- ], P = () => [
850
+ Gt,
851
+ Ft,
852
+ { size: [W, H] }
853
+ ], ce = () => [
854
+ Dt,
855
+ Ht,
856
+ U
857
+ ], M = () => [
833
858
  "",
834
859
  "none",
835
860
  "full",
836
861
  l,
837
- Z,
838
- Y
839
- ], F = () => [
862
+ W,
863
+ H
864
+ ], N = () => [
840
865
  "",
841
- K,
842
- vt,
843
- X
844
- ], I = () => [
866
+ z,
867
+ Ht,
868
+ U
869
+ ], le = () => [
845
870
  "solid",
846
871
  "dashed",
847
872
  "dotted",
848
873
  "double"
849
- ], se = () => [
874
+ ], ue = () => [
850
875
  "normal",
851
876
  "multiply",
852
877
  "screen",
@@ -863,33 +888,33 @@ var ge = (e, t) => {
863
888
  "saturation",
864
889
  "color",
865
890
  "luminosity"
866
- ], L = () => [
867
- K,
868
- rt,
869
- bt,
870
- ht
871
- ], ce = () => [
891
+ ], P = () => [
892
+ z,
893
+ Dt,
894
+ Wt,
895
+ zt
896
+ ], de = () => [
872
897
  "",
873
898
  "none",
874
899
  m,
875
- Z,
876
- Y
877
- ], R = () => [
900
+ W,
901
+ H
902
+ ], fe = () => [
878
903
  "none",
879
- K,
880
- Z,
881
- Y
882
- ], z = () => [
904
+ z,
905
+ W,
906
+ H
907
+ ], pe = () => [
883
908
  "none",
884
- K,
885
- Z,
886
- Y
887
- ], B = () => [
888
- K,
889
- Z,
890
- Y
891
- ], V = () => [
892
- G,
909
+ z,
910
+ W,
911
+ H
912
+ ], me = () => [
913
+ z,
914
+ W,
915
+ H
916
+ ], he = () => [
917
+ R,
893
918
  "full",
894
919
  ...w()
895
920
  ];
@@ -903,17 +928,17 @@ var ge = (e, t) => {
903
928
  "bounce"
904
929
  ],
905
930
  aspect: ["video"],
906
- blur: [J],
907
- breakpoint: [J],
908
- color: [it],
909
- container: [J],
910
- "drop-shadow": [J],
931
+ blur: [V],
932
+ breakpoint: [V],
933
+ color: [Ot],
934
+ container: [V],
935
+ "drop-shadow": [V],
911
936
  ease: [
912
937
  "in",
913
938
  "out",
914
939
  "in-out"
915
940
  ],
916
- font: [lt],
941
+ font: [Nt],
917
942
  "font-weight": [
918
943
  "thin",
919
944
  "extralight",
@@ -925,7 +950,7 @@ var ge = (e, t) => {
925
950
  "extrabold",
926
951
  "black"
927
952
  ],
928
- "inset-shadow": [J],
953
+ "inset-shadow": [V],
929
954
  leading: [
930
955
  "none",
931
956
  "tight",
@@ -942,11 +967,11 @@ var ge = (e, t) => {
942
967
  "distant",
943
968
  "none"
944
969
  ],
945
- radius: [J],
946
- shadow: [J],
947
- spacing: ["px", K],
948
- text: [J],
949
- "text-shadow": [J],
970
+ radius: [V],
971
+ shadow: [V],
972
+ spacing: ["px", z],
973
+ text: [V],
974
+ "text-shadow": [V],
950
975
  tracking: [
951
976
  "tighter",
952
977
  "tight",
@@ -960,9 +985,9 @@ var ge = (e, t) => {
960
985
  aspect: [{ aspect: [
961
986
  "auto",
962
987
  "square",
963
- G,
964
- Y,
965
- Z,
988
+ R,
989
+ H,
990
+ W,
966
991
  g
967
992
  ] }],
968
993
  container: ["container"],
@@ -970,14 +995,14 @@ var ge = (e, t) => {
970
995
  "",
971
996
  "normal",
972
997
  "size",
973
- Z,
974
- Y
998
+ W,
999
+ H
975
1000
  ] }],
976
- "container-named": [ut],
1001
+ "container-named": [Pt],
977
1002
  columns: [{ columns: [
978
- K,
979
- Y,
980
- Z,
1003
+ z,
1004
+ H,
1005
+ W,
981
1006
  s
982
1007
  ] }],
983
1008
  "break-after": [{ "break-after": y() }],
@@ -1074,13 +1099,13 @@ var ge = (e, t) => {
1074
1099
  "collapse"
1075
1100
  ],
1076
1101
  z: [{ z: [
1077
- q,
1102
+ B,
1078
1103
  "auto",
1079
- Z,
1080
- Y
1104
+ W,
1105
+ H
1081
1106
  ] }],
1082
1107
  basis: [{ basis: [
1083
- G,
1108
+ R,
1084
1109
  "full",
1085
1110
  "auto",
1086
1111
  s,
@@ -1098,41 +1123,41 @@ var ge = (e, t) => {
1098
1123
  "wrap-reverse"
1099
1124
  ] }],
1100
1125
  flex: [{ flex: [
1101
- K,
1102
- G,
1126
+ z,
1127
+ R,
1103
1128
  "auto",
1104
1129
  "initial",
1105
1130
  "none",
1106
- Y
1131
+ H
1107
1132
  ] }],
1108
1133
  grow: [{ grow: [
1109
1134
  "",
1110
- K,
1111
- Z,
1112
- Y
1135
+ z,
1136
+ W,
1137
+ H
1113
1138
  ] }],
1114
1139
  shrink: [{ shrink: [
1115
1140
  "",
1116
- K,
1117
- Z,
1118
- Y
1141
+ z,
1142
+ W,
1143
+ H
1119
1144
  ] }],
1120
1145
  order: [{ order: [
1121
- q,
1146
+ B,
1122
1147
  "first",
1123
1148
  "last",
1124
1149
  "none",
1125
- Z,
1126
- Y
1150
+ W,
1151
+ H
1127
1152
  ] }],
1128
1153
  "grid-cols": [{ "grid-cols": E() }],
1129
- "col-start-end": [{ col: D() }],
1130
- "col-start": [{ "col-start": O() }],
1131
- "col-end": [{ "col-end": O() }],
1154
+ "col-start-end": [{ col: ee() }],
1155
+ "col-start": [{ "col-start": te() }],
1156
+ "col-end": [{ "col-end": te() }],
1132
1157
  "grid-rows": [{ "grid-rows": E() }],
1133
- "row-start-end": [{ row: D() }],
1134
- "row-start": [{ "row-start": O() }],
1135
- "row-end": [{ "row-end": O() }],
1158
+ "row-start-end": [{ row: ee() }],
1159
+ "row-start": [{ "row-start": te() }],
1160
+ "row-end": [{ "row-end": te() }],
1136
1161
  "grid-flow": [{ "grid-flow": [
1137
1162
  "row",
1138
1163
  "col",
@@ -1140,24 +1165,24 @@ var ge = (e, t) => {
1140
1165
  "row-dense",
1141
1166
  "col-dense"
1142
1167
  ] }],
1143
- "auto-cols": [{ "auto-cols": ee() }],
1144
- "auto-rows": [{ "auto-rows": ee() }],
1168
+ "auto-cols": [{ "auto-cols": ne() }],
1169
+ "auto-rows": [{ "auto-rows": ne() }],
1145
1170
  gap: [{ gap: w() }],
1146
1171
  "gap-x": [{ "gap-x": w() }],
1147
1172
  "gap-y": [{ "gap-y": w() }],
1148
- "justify-content": [{ justify: [...te(), "normal"] }],
1149
- "justify-items": [{ "justify-items": [...k(), "normal"] }],
1150
- "justify-self": [{ "justify-self": ["auto", ...k()] }],
1151
- "align-content": [{ content: ["normal", ...te()] }],
1152
- "align-items": [{ items: [...k(), { baseline: ["", "last"] }] }],
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"] }] }],
1153
1178
  "align-self": [{ self: [
1154
1179
  "auto",
1155
- ...k(),
1180
+ ...O(),
1156
1181
  { baseline: ["", "last"] }
1157
1182
  ] }],
1158
- "place-content": [{ "place-content": te() }],
1159
- "place-items": [{ "place-items": [...k(), "baseline"] }],
1160
- "place-self": [{ "place-self": ["auto", ...k()] }],
1183
+ "place-content": [{ "place-content": D() }],
1184
+ "place-items": [{ "place-items": [...O(), "baseline"] }],
1185
+ "place-self": [{ "place-self": ["auto", ...O()] }],
1161
1186
  p: [{ p: w() }],
1162
1187
  px: [{ px: w() }],
1163
1188
  py: [{ py: w() }],
@@ -1169,38 +1194,38 @@ var ge = (e, t) => {
1169
1194
  pr: [{ pr: w() }],
1170
1195
  pb: [{ pb: w() }],
1171
1196
  pl: [{ pl: w() }],
1172
- m: [{ m: A() }],
1173
- mx: [{ mx: A() }],
1174
- my: [{ my: A() }],
1175
- ms: [{ ms: A() }],
1176
- me: [{ me: A() }],
1177
- mbs: [{ mbs: A() }],
1178
- mbe: [{ mbe: A() }],
1179
- mt: [{ mt: A() }],
1180
- mr: [{ mr: A() }],
1181
- mb: [{ mb: A() }],
1182
- ml: [{ ml: A() }],
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() }],
1183
1208
  "space-x": [{ "space-x": w() }],
1184
1209
  "space-x-reverse": ["space-x-reverse"],
1185
1210
  "space-y": [{ "space-y": w() }],
1186
1211
  "space-y-reverse": ["space-y-reverse"],
1187
- size: [{ size: j() }],
1188
- "inline-size": [{ inline: ["auto", ...ne()] }],
1189
- "min-inline-size": [{ "min-inline": ["auto", ...ne()] }],
1190
- "max-inline-size": [{ "max-inline": ["none", ...ne()] }],
1191
- "block-size": [{ block: ["auto", ...re()] }],
1192
- "min-block-size": [{ "min-block": ["auto", ...re()] }],
1193
- "max-block-size": [{ "max-block": ["none", ...re()] }],
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()] }],
1194
1219
  w: [{ w: [
1195
1220
  s,
1196
1221
  "screen",
1197
- ...j()
1222
+ ...A()
1198
1223
  ] }],
1199
1224
  "min-w": [{ "min-w": [
1200
1225
  s,
1201
1226
  "screen",
1202
1227
  "none",
1203
- ...j()
1228
+ ...A()
1204
1229
  ] }],
1205
1230
  "max-w": [{ "max-w": [
1206
1231
  s,
@@ -1208,36 +1233,36 @@ var ge = (e, t) => {
1208
1233
  "none",
1209
1234
  "prose",
1210
1235
  { screen: [o] },
1211
- ...j()
1236
+ ...A()
1212
1237
  ] }],
1213
1238
  h: [{ h: [
1214
1239
  "screen",
1215
1240
  "lh",
1216
- ...j()
1241
+ ...A()
1217
1242
  ] }],
1218
1243
  "min-h": [{ "min-h": [
1219
1244
  "screen",
1220
1245
  "lh",
1221
1246
  "none",
1222
- ...j()
1247
+ ...A()
1223
1248
  ] }],
1224
1249
  "max-h": [{ "max-h": [
1225
1250
  "screen",
1226
1251
  "lh",
1227
- ...j()
1252
+ ...A()
1228
1253
  ] }],
1229
1254
  "font-size": [{ text: [
1230
1255
  "base",
1231
1256
  n,
1232
- vt,
1233
- X
1257
+ Ht,
1258
+ U
1234
1259
  ] }],
1235
1260
  "font-smoothing": ["antialiased", "subpixel-antialiased"],
1236
1261
  "font-style": ["italic", "not-italic"],
1237
1262
  "font-weight": [{ font: [
1238
1263
  r,
1239
- wt,
1240
- pt
1264
+ Jt,
1265
+ Lt
1241
1266
  ] }],
1242
1267
  "font-stretch": [{ "font-stretch": [
1243
1268
  "ultra-condensed",
@@ -1249,15 +1274,15 @@ var ge = (e, t) => {
1249
1274
  "expanded",
1250
1275
  "extra-expanded",
1251
1276
  "ultra-expanded",
1252
- rt,
1253
- Y
1277
+ Dt,
1278
+ H
1254
1279
  ] }],
1255
1280
  "font-family": [{ font: [
1256
- yt,
1257
- mt,
1281
+ Ut,
1282
+ Rt,
1258
1283
  t
1259
1284
  ] }],
1260
- "font-features": [{ "font-features": [Y] }],
1285
+ "font-features": [{ "font-features": [H] }],
1261
1286
  "fvn-normal": ["normal-nums"],
1262
1287
  "fvn-ordinal": ["ordinal"],
1263
1288
  "fvn-slashed-zero": ["slashed-zero"],
@@ -1266,28 +1291,28 @@ var ge = (e, t) => {
1266
1291
  "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1267
1292
  tracking: [{ tracking: [
1268
1293
  i,
1269
- Z,
1270
- Y
1294
+ W,
1295
+ H
1271
1296
  ] }],
1272
1297
  "line-clamp": [{ "line-clamp": [
1273
- K,
1298
+ z,
1274
1299
  "none",
1275
- Z,
1276
- ft
1300
+ W,
1301
+ It
1277
1302
  ] }],
1278
1303
  leading: [{ leading: [a, ...w()] }],
1279
1304
  "list-image": [{ "list-image": [
1280
1305
  "none",
1281
- Z,
1282
- Y
1306
+ W,
1307
+ H
1283
1308
  ] }],
1284
1309
  "list-style-position": [{ list: ["inside", "outside"] }],
1285
1310
  "list-style-type": [{ list: [
1286
1311
  "disc",
1287
1312
  "decimal",
1288
1313
  "none",
1289
- Z,
1290
- Y
1314
+ W,
1315
+ H
1291
1316
  ] }],
1292
1317
  "text-alignment": [{ text: [
1293
1318
  "left",
@@ -1297,28 +1322,28 @@ var ge = (e, t) => {
1297
1322
  "start",
1298
1323
  "end"
1299
1324
  ] }],
1300
- "placeholder-color": [{ placeholder: M() }],
1301
- "text-color": [{ text: M() }],
1325
+ "placeholder-color": [{ placeholder: j() }],
1326
+ "text-color": [{ text: j() }],
1302
1327
  "text-decoration": [
1303
1328
  "underline",
1304
1329
  "overline",
1305
1330
  "line-through",
1306
1331
  "no-underline"
1307
1332
  ],
1308
- "text-decoration-style": [{ decoration: [...I(), "wavy"] }],
1333
+ "text-decoration-style": [{ decoration: [...le(), "wavy"] }],
1309
1334
  "text-decoration-thickness": [{ decoration: [
1310
- K,
1335
+ z,
1311
1336
  "from-font",
1312
1337
  "auto",
1313
- Z,
1314
- X
1338
+ W,
1339
+ U
1315
1340
  ] }],
1316
- "text-decoration-color": [{ decoration: M() }],
1341
+ "text-decoration-color": [{ decoration: j() }],
1317
1342
  "underline-offset": [{ "underline-offset": [
1318
- K,
1343
+ z,
1319
1344
  "auto",
1320
- Z,
1321
- Y
1345
+ W,
1346
+ H
1322
1347
  ] }],
1323
1348
  "text-transform": [
1324
1349
  "uppercase",
@@ -1339,9 +1364,9 @@ var ge = (e, t) => {
1339
1364
  ] }],
1340
1365
  indent: [{ indent: w() }],
1341
1366
  "tab-size": [{ tab: [
1342
- q,
1343
- Z,
1344
- Y
1367
+ B,
1368
+ W,
1369
+ H
1345
1370
  ] }],
1346
1371
  "vertical-align": [{ align: [
1347
1372
  "baseline",
@@ -1352,8 +1377,8 @@ var ge = (e, t) => {
1352
1377
  "text-bottom",
1353
1378
  "sub",
1354
1379
  "super",
1355
- Z,
1356
- Y
1380
+ W,
1381
+ H
1357
1382
  ] }],
1358
1383
  whitespace: [{ whitespace: [
1359
1384
  "normal",
@@ -1381,8 +1406,8 @@ var ge = (e, t) => {
1381
1406
  ] }],
1382
1407
  content: [{ content: [
1383
1408
  "none",
1384
- Z,
1385
- Y
1409
+ W,
1410
+ H
1386
1411
  ] }],
1387
1412
  "bg-attachment": [{ bg: [
1388
1413
  "fixed",
@@ -1400,9 +1425,9 @@ var ge = (e, t) => {
1400
1425
  "padding",
1401
1426
  "content"
1402
1427
  ] }],
1403
- "bg-position": [{ bg: ie() }],
1404
- "bg-repeat": [{ bg: ae() }],
1405
- "bg-size": [{ bg: oe() }],
1428
+ "bg-position": [{ bg: ae() }],
1429
+ "bg-repeat": [{ bg: oe() }],
1430
+ "bg-size": [{ bg: se() }],
1406
1431
  "bg-image": [{ bg: [
1407
1432
  "none",
1408
1433
  {
@@ -1417,140 +1442,140 @@ var ge = (e, t) => {
1417
1442
  "l",
1418
1443
  "tl"
1419
1444
  ] },
1420
- q,
1421
- Z,
1422
- Y
1445
+ B,
1446
+ W,
1447
+ H
1423
1448
  ],
1424
1449
  radial: [
1425
1450
  "",
1426
- Z,
1427
- Y
1451
+ W,
1452
+ H
1428
1453
  ],
1429
1454
  conic: [
1430
- q,
1431
- Z,
1432
- Y
1455
+ B,
1456
+ W,
1457
+ H
1433
1458
  ]
1434
1459
  },
1435
- St,
1436
- gt
1437
- ] }],
1438
- "bg-color": [{ bg: M() }],
1439
- "gradient-from-pos": [{ from: N() }],
1440
- "gradient-via-pos": [{ via: N() }],
1441
- "gradient-to-pos": [{ to: N() }],
1442
- "gradient-from": [{ from: M() }],
1443
- "gradient-via": [{ via: M() }],
1444
- "gradient-to": [{ to: M() }],
1445
- rounded: [{ rounded: P() }],
1446
- "rounded-s": [{ "rounded-s": P() }],
1447
- "rounded-e": [{ "rounded-e": P() }],
1448
- "rounded-t": [{ "rounded-t": P() }],
1449
- "rounded-r": [{ "rounded-r": P() }],
1450
- "rounded-b": [{ "rounded-b": P() }],
1451
- "rounded-l": [{ "rounded-l": P() }],
1452
- "rounded-ss": [{ "rounded-ss": P() }],
1453
- "rounded-se": [{ "rounded-se": P() }],
1454
- "rounded-ee": [{ "rounded-ee": P() }],
1455
- "rounded-es": [{ "rounded-es": P() }],
1456
- "rounded-tl": [{ "rounded-tl": P() }],
1457
- "rounded-tr": [{ "rounded-tr": P() }],
1458
- "rounded-br": [{ "rounded-br": P() }],
1459
- "rounded-bl": [{ "rounded-bl": P() }],
1460
- "border-w": [{ border: F() }],
1461
- "border-w-x": [{ "border-x": F() }],
1462
- "border-w-y": [{ "border-y": F() }],
1463
- "border-w-s": [{ "border-s": F() }],
1464
- "border-w-e": [{ "border-e": F() }],
1465
- "border-w-bs": [{ "border-bs": F() }],
1466
- "border-w-be": [{ "border-be": F() }],
1467
- "border-w-t": [{ "border-t": F() }],
1468
- "border-w-r": [{ "border-r": F() }],
1469
- "border-w-b": [{ "border-b": F() }],
1470
- "border-w-l": [{ "border-l": F() }],
1471
- "divide-x": [{ "divide-x": F() }],
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() }],
1470
+ rounded: [{ rounded: M() }],
1471
+ "rounded-s": [{ "rounded-s": M() }],
1472
+ "rounded-e": [{ "rounded-e": M() }],
1473
+ "rounded-t": [{ "rounded-t": M() }],
1474
+ "rounded-r": [{ "rounded-r": M() }],
1475
+ "rounded-b": [{ "rounded-b": M() }],
1476
+ "rounded-l": [{ "rounded-l": M() }],
1477
+ "rounded-ss": [{ "rounded-ss": M() }],
1478
+ "rounded-se": [{ "rounded-se": M() }],
1479
+ "rounded-ee": [{ "rounded-ee": M() }],
1480
+ "rounded-es": [{ "rounded-es": M() }],
1481
+ "rounded-tl": [{ "rounded-tl": M() }],
1482
+ "rounded-tr": [{ "rounded-tr": M() }],
1483
+ "rounded-br": [{ "rounded-br": M() }],
1484
+ "rounded-bl": [{ "rounded-bl": M() }],
1485
+ "border-w": [{ border: N() }],
1486
+ "border-w-x": [{ "border-x": N() }],
1487
+ "border-w-y": [{ "border-y": N() }],
1488
+ "border-w-s": [{ "border-s": N() }],
1489
+ "border-w-e": [{ "border-e": N() }],
1490
+ "border-w-bs": [{ "border-bs": N() }],
1491
+ "border-w-be": [{ "border-be": N() }],
1492
+ "border-w-t": [{ "border-t": N() }],
1493
+ "border-w-r": [{ "border-r": N() }],
1494
+ "border-w-b": [{ "border-b": N() }],
1495
+ "border-w-l": [{ "border-l": N() }],
1496
+ "divide-x": [{ "divide-x": N() }],
1472
1497
  "divide-x-reverse": ["divide-x-reverse"],
1473
- "divide-y": [{ "divide-y": F() }],
1498
+ "divide-y": [{ "divide-y": N() }],
1474
1499
  "divide-y-reverse": ["divide-y-reverse"],
1475
1500
  "border-style": [{ border: [
1476
- ...I(),
1501
+ ...le(),
1477
1502
  "hidden",
1478
1503
  "none"
1479
1504
  ] }],
1480
1505
  "divide-style": [{ divide: [
1481
- ...I(),
1506
+ ...le(),
1482
1507
  "hidden",
1483
1508
  "none"
1484
1509
  ] }],
1485
- "border-color": [{ border: M() }],
1486
- "border-color-x": [{ "border-x": M() }],
1487
- "border-color-y": [{ "border-y": M() }],
1488
- "border-color-s": [{ "border-s": M() }],
1489
- "border-color-e": [{ "border-e": M() }],
1490
- "border-color-bs": [{ "border-bs": M() }],
1491
- "border-color-be": [{ "border-be": M() }],
1492
- "border-color-t": [{ "border-t": M() }],
1493
- "border-color-r": [{ "border-r": M() }],
1494
- "border-color-b": [{ "border-b": M() }],
1495
- "border-color-l": [{ "border-l": M() }],
1496
- "divide-color": [{ divide: M() }],
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() }],
1497
1522
  "outline-style": [{ outline: [
1498
- ...I(),
1523
+ ...le(),
1499
1524
  "none",
1500
1525
  "hidden"
1501
1526
  ] }],
1502
1527
  "outline-offset": [{ "outline-offset": [
1503
- K,
1504
- Z,
1505
- Y
1528
+ z,
1529
+ W,
1530
+ H
1506
1531
  ] }],
1507
1532
  "outline-w": [{ outline: [
1508
1533
  "",
1509
- K,
1510
- vt,
1511
- X
1534
+ z,
1535
+ Ht,
1536
+ U
1512
1537
  ] }],
1513
- "outline-color": [{ outline: M() }],
1538
+ "outline-color": [{ outline: j() }],
1514
1539
  shadow: [{ shadow: [
1515
1540
  "",
1516
1541
  "none",
1517
1542
  u,
1518
- Ct,
1519
- _t
1543
+ qt,
1544
+ Vt
1520
1545
  ] }],
1521
- "shadow-color": [{ shadow: M() }],
1546
+ "shadow-color": [{ shadow: j() }],
1522
1547
  "inset-shadow": [{ "inset-shadow": [
1523
1548
  "none",
1524
1549
  d,
1525
- Ct,
1526
- _t
1550
+ qt,
1551
+ Vt
1527
1552
  ] }],
1528
- "inset-shadow-color": [{ "inset-shadow": M() }],
1529
- "ring-w": [{ ring: F() }],
1553
+ "inset-shadow-color": [{ "inset-shadow": j() }],
1554
+ "ring-w": [{ ring: N() }],
1530
1555
  "ring-w-inset": ["ring-inset"],
1531
- "ring-color": [{ ring: M() }],
1532
- "ring-offset-w": [{ "ring-offset": [K, X] }],
1533
- "ring-offset-color": [{ "ring-offset": M() }],
1534
- "inset-ring-w": [{ "inset-ring": F() }],
1535
- "inset-ring-color": [{ "inset-ring": M() }],
1556
+ "ring-color": [{ ring: j() }],
1557
+ "ring-offset-w": [{ "ring-offset": [z, U] }],
1558
+ "ring-offset-color": [{ "ring-offset": j() }],
1559
+ "inset-ring-w": [{ "inset-ring": N() }],
1560
+ "inset-ring-color": [{ "inset-ring": j() }],
1536
1561
  "text-shadow": [{ "text-shadow": [
1537
1562
  "none",
1538
1563
  f,
1539
- Ct,
1540
- _t
1564
+ qt,
1565
+ Vt
1541
1566
  ] }],
1542
- "text-shadow-color": [{ "text-shadow": M() }],
1567
+ "text-shadow-color": [{ "text-shadow": j() }],
1543
1568
  opacity: [{ opacity: [
1544
- K,
1545
- Z,
1546
- Y
1569
+ z,
1570
+ W,
1571
+ H
1547
1572
  ] }],
1548
1573
  "mix-blend": [{ "mix-blend": [
1549
- ...se(),
1574
+ ...ue(),
1550
1575
  "plus-darker",
1551
1576
  "plus-lighter"
1552
1577
  ] }],
1553
- "bg-blend": [{ "bg-blend": se() }],
1578
+ "bg-blend": [{ "bg-blend": ue() }],
1554
1579
  "mask-clip": [{ "mask-clip": [
1555
1580
  "border",
1556
1581
  "padding",
@@ -1565,51 +1590,51 @@ var ge = (e, t) => {
1565
1590
  "intersect",
1566
1591
  "exclude"
1567
1592
  ] }],
1568
- "mask-image-linear-pos": [{ "mask-linear": [K] }],
1569
- "mask-image-linear-from-pos": [{ "mask-linear-from": L() }],
1570
- "mask-image-linear-to-pos": [{ "mask-linear-to": L() }],
1571
- "mask-image-linear-from-color": [{ "mask-linear-from": M() }],
1572
- "mask-image-linear-to-color": [{ "mask-linear-to": M() }],
1573
- "mask-image-t-from-pos": [{ "mask-t-from": L() }],
1574
- "mask-image-t-to-pos": [{ "mask-t-to": L() }],
1575
- "mask-image-t-from-color": [{ "mask-t-from": M() }],
1576
- "mask-image-t-to-color": [{ "mask-t-to": M() }],
1577
- "mask-image-r-from-pos": [{ "mask-r-from": L() }],
1578
- "mask-image-r-to-pos": [{ "mask-r-to": L() }],
1579
- "mask-image-r-from-color": [{ "mask-r-from": M() }],
1580
- "mask-image-r-to-color": [{ "mask-r-to": M() }],
1581
- "mask-image-b-from-pos": [{ "mask-b-from": L() }],
1582
- "mask-image-b-to-pos": [{ "mask-b-to": L() }],
1583
- "mask-image-b-from-color": [{ "mask-b-from": M() }],
1584
- "mask-image-b-to-color": [{ "mask-b-to": M() }],
1585
- "mask-image-l-from-pos": [{ "mask-l-from": L() }],
1586
- "mask-image-l-to-pos": [{ "mask-l-to": L() }],
1587
- "mask-image-l-from-color": [{ "mask-l-from": M() }],
1588
- "mask-image-l-to-color": [{ "mask-l-to": M() }],
1589
- "mask-image-x-from-pos": [{ "mask-x-from": L() }],
1590
- "mask-image-x-to-pos": [{ "mask-x-to": L() }],
1591
- "mask-image-x-from-color": [{ "mask-x-from": M() }],
1592
- "mask-image-x-to-color": [{ "mask-x-to": M() }],
1593
- "mask-image-y-from-pos": [{ "mask-y-from": L() }],
1594
- "mask-image-y-to-pos": [{ "mask-y-to": L() }],
1595
- "mask-image-y-from-color": [{ "mask-y-from": M() }],
1596
- "mask-image-y-to-color": [{ "mask-y-to": M() }],
1597
- "mask-image-radial": [{ "mask-radial": [Z, Y] }],
1598
- "mask-image-radial-from-pos": [{ "mask-radial-from": L() }],
1599
- "mask-image-radial-to-pos": [{ "mask-radial-to": L() }],
1600
- "mask-image-radial-from-color": [{ "mask-radial-from": M() }],
1601
- "mask-image-radial-to-color": [{ "mask-radial-to": M() }],
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() }],
1602
1627
  "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
1603
1628
  "mask-image-radial-size": [{ "mask-radial": [{
1604
1629
  closest: ["side", "corner"],
1605
1630
  farthest: ["side", "corner"]
1606
1631
  }] }],
1607
1632
  "mask-image-radial-pos": [{ "mask-radial-at": b() }],
1608
- "mask-image-conic-pos": [{ "mask-conic": [K] }],
1609
- "mask-image-conic-from-pos": [{ "mask-conic-from": L() }],
1610
- "mask-image-conic-to-pos": [{ "mask-conic-to": L() }],
1611
- "mask-image-conic-from-color": [{ "mask-conic-from": M() }],
1612
- "mask-image-conic-to-color": [{ "mask-conic-to": M() }],
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() }],
1613
1638
  "mask-mode": [{ mask: [
1614
1639
  "alpha",
1615
1640
  "luminance",
@@ -1623,117 +1648,117 @@ var ge = (e, t) => {
1623
1648
  "stroke",
1624
1649
  "view"
1625
1650
  ] }],
1626
- "mask-position": [{ mask: ie() }],
1627
- "mask-repeat": [{ mask: ae() }],
1628
- "mask-size": [{ mask: oe() }],
1651
+ "mask-position": [{ mask: ae() }],
1652
+ "mask-repeat": [{ mask: oe() }],
1653
+ "mask-size": [{ mask: se() }],
1629
1654
  "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1630
1655
  "mask-image": [{ mask: [
1631
1656
  "none",
1632
- Z,
1633
- Y
1657
+ W,
1658
+ H
1634
1659
  ] }],
1635
1660
  filter: [{ filter: [
1636
1661
  "",
1637
1662
  "none",
1638
- Z,
1639
- Y
1663
+ W,
1664
+ H
1640
1665
  ] }],
1641
- blur: [{ blur: ce() }],
1666
+ blur: [{ blur: de() }],
1642
1667
  brightness: [{ brightness: [
1643
- K,
1644
- Z,
1645
- Y
1668
+ z,
1669
+ W,
1670
+ H
1646
1671
  ] }],
1647
1672
  contrast: [{ contrast: [
1648
- K,
1649
- Z,
1650
- Y
1673
+ z,
1674
+ W,
1675
+ H
1651
1676
  ] }],
1652
1677
  "drop-shadow": [{ "drop-shadow": [
1653
1678
  "",
1654
1679
  "none",
1655
1680
  p,
1656
- Ct,
1657
- _t
1681
+ qt,
1682
+ Vt
1658
1683
  ] }],
1659
- "drop-shadow-color": [{ "drop-shadow": M() }],
1684
+ "drop-shadow-color": [{ "drop-shadow": j() }],
1660
1685
  grayscale: [{ grayscale: [
1661
1686
  "",
1662
- K,
1663
- Z,
1664
- Y
1687
+ z,
1688
+ W,
1689
+ H
1665
1690
  ] }],
1666
1691
  "hue-rotate": [{ "hue-rotate": [
1667
- K,
1668
- Z,
1669
- Y
1692
+ z,
1693
+ W,
1694
+ H
1670
1695
  ] }],
1671
1696
  invert: [{ invert: [
1672
1697
  "",
1673
- K,
1674
- Z,
1675
- Y
1698
+ z,
1699
+ W,
1700
+ H
1676
1701
  ] }],
1677
1702
  saturate: [{ saturate: [
1678
- K,
1679
- Z,
1680
- Y
1703
+ z,
1704
+ W,
1705
+ H
1681
1706
  ] }],
1682
1707
  sepia: [{ sepia: [
1683
1708
  "",
1684
- K,
1685
- Z,
1686
- Y
1709
+ z,
1710
+ W,
1711
+ H
1687
1712
  ] }],
1688
1713
  "backdrop-filter": [{ "backdrop-filter": [
1689
1714
  "",
1690
1715
  "none",
1691
- Z,
1692
- Y
1716
+ W,
1717
+ H
1693
1718
  ] }],
1694
- "backdrop-blur": [{ "backdrop-blur": ce() }],
1719
+ "backdrop-blur": [{ "backdrop-blur": de() }],
1695
1720
  "backdrop-brightness": [{ "backdrop-brightness": [
1696
- K,
1697
- Z,
1698
- Y
1721
+ z,
1722
+ W,
1723
+ H
1699
1724
  ] }],
1700
1725
  "backdrop-contrast": [{ "backdrop-contrast": [
1701
- K,
1702
- Z,
1703
- Y
1726
+ z,
1727
+ W,
1728
+ H
1704
1729
  ] }],
1705
1730
  "backdrop-grayscale": [{ "backdrop-grayscale": [
1706
1731
  "",
1707
- K,
1708
- Z,
1709
- Y
1732
+ z,
1733
+ W,
1734
+ H
1710
1735
  ] }],
1711
1736
  "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
1712
- K,
1713
- Z,
1714
- Y
1737
+ z,
1738
+ W,
1739
+ H
1715
1740
  ] }],
1716
1741
  "backdrop-invert": [{ "backdrop-invert": [
1717
1742
  "",
1718
- K,
1719
- Z,
1720
- Y
1743
+ z,
1744
+ W,
1745
+ H
1721
1746
  ] }],
1722
1747
  "backdrop-opacity": [{ "backdrop-opacity": [
1723
- K,
1724
- Z,
1725
- Y
1748
+ z,
1749
+ W,
1750
+ H
1726
1751
  ] }],
1727
1752
  "backdrop-saturate": [{ "backdrop-saturate": [
1728
- K,
1729
- Z,
1730
- Y
1753
+ z,
1754
+ W,
1755
+ H
1731
1756
  ] }],
1732
1757
  "backdrop-sepia": [{ "backdrop-sepia": [
1733
1758
  "",
1734
- K,
1735
- Z,
1736
- Y
1759
+ z,
1760
+ W,
1761
+ H
1737
1762
  ] }],
1738
1763
  "border-collapse": [{ border: ["collapse", "separate"] }],
1739
1764
  "border-spacing": [{ "border-spacing": w() }],
@@ -1749,56 +1774,56 @@ var ge = (e, t) => {
1749
1774
  "shadow",
1750
1775
  "transform",
1751
1776
  "none",
1752
- Z,
1753
- Y
1777
+ W,
1778
+ H
1754
1779
  ] }],
1755
1780
  "transition-behavior": [{ transition: ["normal", "discrete"] }],
1756
1781
  duration: [{ duration: [
1757
- K,
1782
+ z,
1758
1783
  "initial",
1759
- Z,
1760
- Y
1784
+ W,
1785
+ H
1761
1786
  ] }],
1762
1787
  ease: [{ ease: [
1763
1788
  "linear",
1764
1789
  "initial",
1765
1790
  _,
1766
- Z,
1767
- Y
1791
+ W,
1792
+ H
1768
1793
  ] }],
1769
1794
  delay: [{ delay: [
1770
- K,
1771
- Z,
1772
- Y
1795
+ z,
1796
+ W,
1797
+ H
1773
1798
  ] }],
1774
1799
  animate: [{ animate: [
1775
1800
  "none",
1776
1801
  v,
1777
- Z,
1778
- Y
1802
+ W,
1803
+ H
1779
1804
  ] }],
1780
1805
  backface: [{ backface: ["hidden", "visible"] }],
1781
1806
  perspective: [{ perspective: [
1782
1807
  h,
1783
- Z,
1784
- Y
1808
+ W,
1809
+ H
1785
1810
  ] }],
1786
1811
  "perspective-origin": [{ "perspective-origin": x() }],
1787
- rotate: [{ rotate: R() }],
1788
- "rotate-x": [{ "rotate-x": R() }],
1789
- "rotate-y": [{ "rotate-y": R() }],
1790
- "rotate-z": [{ "rotate-z": R() }],
1791
- scale: [{ scale: z() }],
1792
- "scale-x": [{ "scale-x": z() }],
1793
- "scale-y": [{ "scale-y": z() }],
1794
- "scale-z": [{ "scale-z": z() }],
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() }],
1795
1820
  "scale-3d": ["scale-3d"],
1796
- skew: [{ skew: B() }],
1797
- "skew-x": [{ "skew-x": B() }],
1798
- "skew-y": [{ "skew-y": B() }],
1821
+ skew: [{ skew: me() }],
1822
+ "skew-x": [{ "skew-x": me() }],
1823
+ "skew-y": [{ "skew-y": me() }],
1799
1824
  transform: [{ transform: [
1800
- Z,
1801
- Y,
1825
+ W,
1826
+ H,
1802
1827
  "",
1803
1828
  "none",
1804
1829
  "gpu",
@@ -1806,19 +1831,19 @@ var ge = (e, t) => {
1806
1831
  ] }],
1807
1832
  "transform-origin": [{ origin: x() }],
1808
1833
  "transform-style": [{ transform: ["3d", "flat"] }],
1809
- translate: [{ translate: V() }],
1810
- "translate-x": [{ "translate-x": V() }],
1811
- "translate-y": [{ "translate-y": V() }],
1812
- "translate-z": [{ "translate-z": V() }],
1834
+ translate: [{ translate: he() }],
1835
+ "translate-x": [{ "translate-x": he() }],
1836
+ "translate-y": [{ "translate-y": he() }],
1837
+ "translate-z": [{ "translate-z": he() }],
1813
1838
  "translate-none": ["translate-none"],
1814
1839
  zoom: [{ zoom: [
1815
- q,
1816
- Z,
1817
- Y
1840
+ B,
1841
+ W,
1842
+ H
1818
1843
  ] }],
1819
- accent: [{ accent: M() }],
1844
+ accent: [{ accent: j() }],
1820
1845
  appearance: [{ appearance: ["none", "auto"] }],
1821
- "caret-color": [{ caret: M() }],
1846
+ "caret-color": [{ caret: j() }],
1822
1847
  "color-scheme": [{ scheme: [
1823
1848
  "normal",
1824
1849
  "dark",
@@ -1864,8 +1889,8 @@ var ge = (e, t) => {
1864
1889
  "nwse-resize",
1865
1890
  "zoom-in",
1866
1891
  "zoom-out",
1867
- Z,
1868
- Y
1892
+ W,
1893
+ H
1869
1894
  ] }],
1870
1895
  "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
1871
1896
  "pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -1876,8 +1901,8 @@ var ge = (e, t) => {
1876
1901
  "x"
1877
1902
  ] }],
1878
1903
  "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1879
- "scrollbar-thumb-color": [{ "scrollbar-thumb": M() }],
1880
- "scrollbar-track-color": [{ "scrollbar-track": M() }],
1904
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": j() }],
1905
+ "scrollbar-track-color": [{ "scrollbar-track": j() }],
1881
1906
  "scrollbar-gutter": [{ "scrollbar-gutter": [
1882
1907
  "auto",
1883
1908
  "stable",
@@ -1951,17 +1976,17 @@ var ge = (e, t) => {
1951
1976
  "scroll",
1952
1977
  "contents",
1953
1978
  "transform",
1954
- Z,
1955
- Y
1979
+ W,
1980
+ H
1956
1981
  ] }],
1957
- fill: [{ fill: ["none", ...M()] }],
1982
+ fill: [{ fill: ["none", ...j()] }],
1958
1983
  "stroke-w": [{ stroke: [
1959
- K,
1960
- vt,
1961
- X,
1962
- ft
1984
+ z,
1985
+ Ht,
1986
+ U,
1987
+ It
1963
1988
  ] }],
1964
- stroke: [{ stroke: ["none", ...M()] }],
1989
+ stroke: [{ stroke: ["none", ...j()] }],
1965
1990
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1966
1991
  },
1967
1992
  conflictingClassGroups: {
@@ -2150,41 +2175,41 @@ var ge = (e, t) => {
2150
2175
  });
2151
2176
  //#endregion
2152
2177
  //#region src/lib/utils.ts
2153
- function Pt(...e) {
2154
- return Nt(he(e));
2178
+ function an(...e) {
2179
+ return rn(ze(e));
2155
2180
  }
2156
2181
  //#endregion
2157
2182
  //#region src/components/table/data-table.tsx
2158
- function Ft({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a }) {
2159
- let [o, s] = r, p = m({
2183
+ function on({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a }) {
2184
+ let [o, s] = r, c = g({
2160
2185
  data: t,
2161
2186
  columns: e,
2162
2187
  state: { rowSelection: o },
2163
2188
  getRowId: n,
2164
2189
  enableRowSelection: !0,
2165
2190
  onRowSelectionChange: s,
2166
- getCoreRowModel: f()
2167
- }), { t: h } = u(), g = a?.Table ?? z, _ = a?.TableHeader ?? B, v = a?.TableBody ?? V, y = a?.TableRow ?? le, b = a?.TableHead ?? ue, x = a?.TableCell ?? de;
2168
- return /* @__PURE__ */ l(g, { children: [/* @__PURE__ */ c(_, { children: p.getHeaderGroups().map((e) => /* @__PURE__ */ c(y, { children: e.headers.map((e) => /* @__PURE__ */ c(b, {
2169
- className: Pt(e.column.columnDef.meta?.className),
2170
- children: e.isPlaceholder ? null : d(e.column.columnDef.header, e.getContext())
2171
- }, e.id)) }, e.id)) }), /* @__PURE__ */ c(v, { children: p.getRowModel().rows?.length ? p.getRowModel().rows.map((e) => /* @__PURE__ */ c(y, {
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, {
2172
2197
  "data-state": e.getIsSelected() && "selected",
2173
2198
  onClick: () => i(e.original),
2174
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ c(x, {
2175
- className: Pt(e.column.columnDef.meta?.className),
2176
- children: d(e.column.columnDef.cell, e.getContext())
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())
2177
2202
  }, e.id))
2178
- }, e.id)) : /* @__PURE__ */ c(y, { children: /* @__PURE__ */ c(x, {
2203
+ }, e.id)) : /* @__PURE__ */ u(y, { children: /* @__PURE__ */ u(x, {
2179
2204
  colSpan: e.length,
2180
2205
  className: "h-24 text-center",
2181
- children: h("libs:no_results")
2206
+ children: l("libs:no_results")
2182
2207
  }) }) })] });
2183
2208
  }
2184
2209
  //#endregion
2185
2210
  //#region src/components/table/data-table-grouped.tsx
2186
- function It({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a, indentSize: o = 24 }) {
2187
- let [s, h] = r, g = m({
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({
2188
2213
  data: t,
2189
2214
  columns: e,
2190
2215
  state: {
@@ -2193,32 +2218,32 @@ function It({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, c
2193
2218
  },
2194
2219
  getRowId: n,
2195
2220
  enableRowSelection: !0,
2196
- onRowSelectionChange: h,
2221
+ onRowSelectionChange: c,
2197
2222
  getSubRows: (e) => e.subRows,
2198
- getCoreRowModel: f(),
2199
- getExpandedRowModel: p()
2200
- }), { t: _ } = u(), v = a?.Table ?? z, y = a?.TableHeader ?? B, b = a?.TableBody ?? V, x = a?.TableRow ?? le, S = a?.TableHead ?? ue, C = a?.TableCell ?? de;
2201
- return /* @__PURE__ */ l(v, {
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, {
2202
2227
  style: { width: "100%" },
2203
- children: [/* @__PURE__ */ c(y, { children: g.getHeaderGroups().map((e) => /* @__PURE__ */ c(x, { children: e.headers.map((e) => /* @__PURE__ */ c(S, {
2204
- className: Pt(e.column.columnDef.meta?.className),
2205
- children: e.isPlaceholder ? null : d(e.column.columnDef.header, e.getContext())
2206
- }, e.id)) }, e.id)) }), /* @__PURE__ */ c(b, { children: g.getRowModel().rows?.length ? g.getRowModel().rows.map((e) => /* @__PURE__ */ c(x, {
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, {
2207
2232
  id: e.id,
2208
2233
  "data-state": e.getIsSelected() && "selected",
2209
2234
  onClick: () => i(e.original),
2210
2235
  children: e.getVisibleCells().map((t, n) => {
2211
2236
  let r = n === 0 ? e.depth * o : 0;
2212
- return /* @__PURE__ */ l(C, {
2213
- className: Pt(t.column.columnDef.meta?.className),
2237
+ return /* @__PURE__ */ d(C, {
2238
+ className: an(t.column.columnDef.meta?.className),
2214
2239
  style: { paddingLeft: r ? `${r}px` : void 0 },
2215
- children: [n === 0 && e.depth > 0 && /* @__PURE__ */ c("span", {
2240
+ children: [n === 0 && e.depth > 0 && /* @__PURE__ */ u("span", {
2216
2241
  className: "mr-2 text-muted-foreground",
2217
2242
  children: "↳"
2218
- }), d(t.column.columnDef.cell, t.getContext())]
2243
+ }), p(t.column.columnDef.cell, t.getContext())]
2219
2244
  }, t.id);
2220
2245
  })
2221
- }, e.id)) : /* @__PURE__ */ c(x, { children: /* @__PURE__ */ c(C, {
2246
+ }, e.id)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(C, {
2222
2247
  colSpan: e.length,
2223
2248
  className: "h-24 text-center",
2224
2249
  children: _("libs:no_results")
@@ -2227,7 +2252,7 @@ function It({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, c
2227
2252
  }
2228
2253
  //#endregion
2229
2254
  //#region src/components/icon/AnimatedSwapIcon.tsx
2230
- var Lt = {
2255
+ var cn = {
2231
2256
  initial: {
2232
2257
  opacity: 0,
2233
2258
  scale: .9
@@ -2245,64 +2270,1482 @@ var Lt = {
2245
2270
  ease: "easeOut"
2246
2271
  }
2247
2272
  };
2248
- function Rt({ loading: e, loadingNode: t, idleNode: n, className: r = "w-6 h-6 flex flex-row items-center justify-center", motionProps: i }) {
2249
- return /* @__PURE__ */ c("div", {
2250
- className: r,
2251
- children: /* @__PURE__ */ c(a, {
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", {
2275
+ className: i,
2276
+ children: /* @__PURE__ */ u(s, {
2252
2277
  mode: "popLayout",
2253
2278
  initial: !1,
2254
- children: /* @__PURE__ */ c(s.div, {
2255
- ...Lt,
2256
- ...i,
2257
- children: e ? t : n
2258
- }, e ? "loading" : "idle")
2279
+ children: /* @__PURE__ */ n(l.div, {
2280
+ ...cn,
2281
+ ...a,
2282
+ key: e ? "loading" : "idle"
2283
+ }, e ? t : r)
2259
2284
  })
2260
2285
  });
2261
2286
  }
2262
2287
  //#endregion
2288
+ //#region src/components/selector/BaseDateTimeSelector.tsx
2289
+ function un(e) {
2290
+ let { t } = f(), n = e.date ? [
2291
+ String(e.date.getHours()).padStart(2, "0"),
2292
+ String(e.date.getMinutes()).padStart(2, "0"),
2293
+ String(e.date.getSeconds()).padStart(2, "0")
2294
+ ].join(":") : "10:30:00", r = (t) => {
2295
+ if (!t) {
2296
+ e.setDate(void 0);
2297
+ return;
2298
+ }
2299
+ if (!e.date) {
2300
+ e.setDate(t);
2301
+ return;
2302
+ }
2303
+ let n = new Date(t);
2304
+ n.setHours(e.date.getHours(), e.date.getMinutes(), e.date.getSeconds(), e.date.getMilliseconds()), e.setDate(n);
2305
+ }, i = (t) => {
2306
+ let [n = "0", r = "0", i = "0"] = t.split(":"), a = e.date ? new Date(e.date) : /* @__PURE__ */ new Date();
2307
+ 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, {
2310
+ mode: "single",
2311
+ captionLayout: "dropdown",
2312
+ defaultMonth: e.date,
2313
+ selected: e.date,
2314
+ onSelect: r
2315
+ }), /* @__PURE__ */ u(c, {
2316
+ className: "border-t p-4",
2317
+ children: /* @__PURE__ */ d(o, { children: [/* @__PURE__ */ u(s, {
2318
+ htmlFor: "time",
2319
+ children: t("libs:time")
2320
+ }), /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(p, {
2321
+ id: "time",
2322
+ type: "time",
2323
+ step: "1",
2324
+ value: n,
2325
+ onChange: (e) => i(e.target.value),
2326
+ 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" }) })] })] })
2328
+ })] });
2329
+ }
2330
+ //#endregion
2331
+ //#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, {
2335
+ open: e.visible,
2336
+ onOpenChange: e.onVisibleChange,
2337
+ children: /* @__PURE__ */ d(r, {
2338
+ role: "alertdialog",
2339
+ "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, {
2341
+ variant: "outline",
2342
+ onClick: () => e.onVisibleChange(!1),
2343
+ children: t("libs:cancel")
2344
+ }), /* @__PURE__ */ u(c, {
2345
+ variant: "destructive",
2346
+ onClick: e.onConfirm,
2347
+ children: t("libs:confirm")
2348
+ })] })]
2349
+ })
2350
+ });
2351
+ }
2352
+ //#endregion
2353
+ //#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, {
2357
+ open: e.visible,
2358
+ 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, {
2360
+ variant: "outline",
2361
+ onClick: () => e.onVisibleChange(!1),
2362
+ children: t("libs:cancel")
2363
+ }), /* @__PURE__ */ u(c, {
2364
+ variant: "destructive",
2365
+ onClick: e.onConfirm,
2366
+ children: t("libs:confirm")
2367
+ })] })] })
2368
+ });
2369
+ }
2370
+ //#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);
2393
+ }
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);
2432
+ }
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
+ };
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");
2500
+ }
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
2507
+ };
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 !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";
2518
+ }
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)
2543
+ };
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("/");
2572
+ }
2573
+ s = e >= 0 ? t[e] : "/";
2574
+ }
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;
2581
+ }
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
2596
+ };
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.`);
2603
+ }
2604
+ return {
2605
+ absoluteURL: r,
2606
+ isExternal: i,
2607
+ to: n
2608
+ };
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;
2692
+ }
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("/");
2731
+ }
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 {
2763
+ constructor(e) {
2764
+ super(e), this.state = {
2765
+ location: e.location,
2766
+ revalidation: e.revalidation,
2767
+ error: e.error
2768
+ };
2769
+ }
2770
+ static getDerivedStateFromError(e) {
2771
+ return { error: e };
2772
+ }
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
+ };
2783
+ }
2784
+ componentDidCatch(e, t) {
2785
+ this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);
2786
+ }
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
2796
+ }));
2797
+ return this.context ? /* @__PURE__ */ e.createElement(Er, { error: t }, n) : n;
2798
+ }
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
+ }
2820
+ }
2821
+ 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;
2834
+ }
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));
2839
+ }
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
+ }
2853
+ }
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
2937
+ }));
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
+ }
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(() => {});
3089
+ }
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
3127
+ });
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
+ });
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
+ }
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
3438
+ });
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
3501
+ });
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
+ });
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
+ }
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;
3584
+ }
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}).`);
3589
+ }
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.`);
3626
+ }
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;
3651
+ }
3652
+ //#endregion
3653
+ //#region src/hooks/use-screen-lifecycle.tsx
3654
+ function Ji(e) {
3655
+ return typeof e == "object" && !!e && "shouldRefresh" in e && !!e.shouldRefresh;
3656
+ }
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, {
3662
+ replace: !0,
3663
+ state: {}
3664
+ });
3665
+ return;
3666
+ }
3667
+ e();
3668
+ }, [
3669
+ r.key,
3670
+ r.pathname,
3671
+ r.state,
3672
+ a,
3673
+ e,
3674
+ t
3675
+ ]), i(() => () => n(), [n]);
3676
+ }
3677
+ //#endregion
3678
+ //#region src/hooks/use-debounced-value.tsx
3679
+ function Xi(e, t = 300) {
3680
+ let [n, r] = o(e);
3681
+ return i(() => {
3682
+ let n = window.setTimeout(() => {
3683
+ r(e);
3684
+ }, t);
3685
+ return () => window.clearTimeout(n);
3686
+ }, [e, t]), n;
3687
+ }
3688
+ //#endregion
3689
+ //#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();
3694
+ if (!e) {
3695
+ n();
3696
+ return;
3697
+ }
3698
+ t(e);
3699
+ }, [
3700
+ a,
3701
+ n,
3702
+ t
3703
+ ]);
3704
+ }
3705
+ //#endregion
2263
3706
  //#region src/utils/firestore.ts
2264
- function zt(e) {
3707
+ function Qi(e) {
2265
3708
  return {
2266
3709
  ...e.data(),
2267
3710
  id: e.id
2268
3711
  };
2269
3712
  }
2270
- async function Bt(e, t, n, r) {
3713
+ async function $i(e, t, n, r) {
2271
3714
  let i = r.filter((e) => !!(e && !n.has(e.path)));
2272
3715
  for (let r = 0; r < i.length; r += 30) {
2273
3716
  let a = i.slice(r, r + 30);
2274
- (await _(y(e, x(h(), "in", a.map((e) => e.id))))).forEach((e) => {
3717
+ (await y(x(e, C(_(), "in", a.map((e) => e.id))))).forEach((e) => {
2275
3718
  let r = t(e);
2276
3719
  n.set(e.ref.path, r);
2277
3720
  });
2278
3721
  }
2279
3722
  }
2280
- async function Vt(e, t, n) {
3723
+ async function ea(e, t, n) {
2281
3724
  let r = n.filter((e) => !!(e && !t.has(e.path)));
2282
3725
  await Promise.all(r.map(async (n) => {
2283
- let r = e(await g(n));
3726
+ let r = e(await v(n));
2284
3727
  t.set(n.path, r);
2285
3728
  }));
2286
3729
  }
2287
- function Ht(e = {}) {
3730
+ function ta(e = {}) {
2288
3731
  let { cache: t = !0, includeMetadataChanges: n } = e;
2289
3732
  return {
2290
3733
  listenOptions: { includeMetadataChanges: n ?? !t },
2291
3734
  cache: t
2292
3735
  };
2293
3736
  }
2294
- function Ut(e, t) {
3737
+ function na(e, t) {
2295
3738
  return t !== !1 || !e;
2296
3739
  }
2297
- function Wt(e, t, n = {}) {
2298
- let { listenOptions: r, cache: i } = Ht(n), { onError: a } = n;
2299
- return e.type, v(e, r, (e) => {
2300
- Ut(e.metadata.fromCache, i) && t(e);
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);
2301
3744
  }, a);
2302
3745
  }
2303
3746
  //#endregion
2304
3747
  //#region src/utils/array.ts
2305
- function Gt(e, t) {
3748
+ function ia(e, t) {
2306
3749
  return e.flatMap((e, n) => {
2307
3750
  let r = t(e, n);
2308
3751
  return r == null ? [] : [r];
@@ -2310,41 +3753,41 @@ function Gt(e, t) {
2310
3753
  }
2311
3754
  //#endregion
2312
3755
  //#region src/utils/platform.ts
2313
- function Kt() {
3756
+ function aa() {
2314
3757
  if (typeof window > "u") return "pc";
2315
3758
  let e = navigator.userAgent, t = navigator.platform, n = /Android/i.test(e), r = /iPhone|iPad|iPod/i.test(e) || t === "MacIntel" && navigator.maxTouchPoints > 1;
2316
3759
  return n ? "android" : r ? "ios" : "pc";
2317
3760
  }
2318
3761
  //#endregion
2319
3762
  //#region src/utils/zustand.tsx
2320
- function qt(n) {
2321
- let r = e(null);
2322
- function a({ children: e, ...t }) {
2323
- let [a] = i(() => n(t));
2324
- return /* @__PURE__ */ c(r.Provider, {
2325
- value: a,
2326
- children: e
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, {
3768
+ value: i,
3769
+ children: t
2327
3770
  });
2328
3771
  }
2329
- function o(e) {
2330
- let n = t(r);
2331
- if (!n) throw Error("Provider가 필요합니다.");
2332
- return S(n, e);
3772
+ function a(e) {
3773
+ let t = r(n);
3774
+ if (!t) throw Error("Provider가 필요합니다.");
3775
+ return w(t, e);
2333
3776
  }
2334
3777
  let s = /* @__PURE__ */ new Map();
2335
3778
  return {
2336
- Provider: a,
2337
- useStore: o,
2338
- use: new Proxy({}, { get: (e, t) => (s.has(t) || s.set(t, () => o((e) => e[t])), s.get(t)) })
3779
+ Provider: i,
3780
+ useStore: a,
3781
+ use: new Proxy({}, { get: (e, t) => (s.has(t) || s.set(t, () => a((e) => e[t])), s.get(t)) })
2339
3782
  };
2340
3783
  }
2341
3784
  //#endregion
2342
3785
  //#region node_modules/dayjs/dayjs.min.js
2343
- var Jt = /* @__PURE__ */ j(((e, t) => {
3786
+ var sa = /* @__PURE__ */ ie(((e, t) => {
2344
3787
  (function(n, r) {
2345
3788
  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();
2346
3789
  })(e, (function() {
2347
- var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
3790
+ var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
2348
3791
  name: "en",
2349
3792
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
2350
3793
  months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
@@ -2614,8 +4057,8 @@ var Jt = /* @__PURE__ */ j(((e, t) => {
2614
4057
  }, _.toString = function() {
2615
4058
  return this.$d.toUTCString();
2616
4059
  }, g;
2617
- }(), D = E.prototype;
2618
- return w.prototype = D, [
4060
+ }(), ee = E.prototype;
4061
+ return w.prototype = ee, [
2619
4062
  ["$ms", r],
2620
4063
  ["$s", i],
2621
4064
  ["$m", a],
@@ -2625,7 +4068,7 @@ var Jt = /* @__PURE__ */ j(((e, t) => {
2625
4068
  ["$y", d],
2626
4069
  ["$D", f]
2627
4070
  ].forEach((function(e) {
2628
- D[e[1]] = function(t) {
4071
+ ee[e[1]] = function(t) {
2629
4072
  return this.$g(t, e[0], e[1]);
2630
4073
  };
2631
4074
  })), w.extend = function(e, t) {
@@ -2634,9 +4077,9 @@ var Jt = /* @__PURE__ */ j(((e, t) => {
2634
4077
  return w(1e3 * e);
2635
4078
  }, w.en = b[y], w.Ls = b, w.p = {}, w;
2636
4079
  }));
2637
- })), Yt = /* @__PURE__ */ j(((e, t) => {
4080
+ })), ca = /* @__PURE__ */ ie(((e, t) => {
2638
4081
  (function(n, r) {
2639
- typeof e == "object" && t !== void 0 ? t.exports = r(Jt()) : typeof define == "function" && define.amd ? define(["dayjs"], r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_locale_ko = r(n.dayjs);
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);
2640
4083
  })(e, (function(e) {
2641
4084
  function t(e) {
2642
4085
  return e && typeof e == "object" && "default" in e ? e : { default: e };
@@ -2684,7 +4127,7 @@ var Jt = /* @__PURE__ */ j(((e, t) => {
2684
4127
  };
2685
4128
  return n.default.locale(r, null, !0), r;
2686
4129
  }));
2687
- })), Xt = /* @__PURE__ */ j(((e, t) => {
4130
+ })), la = /* @__PURE__ */ ie(((e, t) => {
2688
4131
  (function(n, r) {
2689
4132
  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();
2690
4133
  })(e, (function() {
@@ -2703,54 +4146,54 @@ var Jt = /* @__PURE__ */ j(((e, t) => {
2703
4146
  }
2704
4147
  };
2705
4148
  }));
2706
- })), Zt = /* @__PURE__ */ re(Jt(), 1);
2707
- Yt(), Xt();
2708
- function Qt(e, t, n) {
2709
- let r = (0, Zt.default)(e);
4149
+ })), ua = /* @__PURE__ */ ae(sa(), 1);
4150
+ ca(), la();
4151
+ function da(e, t, n) {
4152
+ let r = (0, ua.default)(e);
2710
4153
  return !e || !r.isValid() ? "" : r.format(n(t));
2711
4154
  }
2712
- function $t() {
2713
- let { t: e } = u();
2714
- return r(() => ({
2715
- basicDateTimeFormat: (t, n) => Qt(t, n, e),
2716
- dateTimeFormat: (t) => Qt(t, "libs:datetime.date_time_format", e),
2717
- dateFormat: (t) => Qt(t, "libs:datetime.date_format", e),
2718
- timeFormat: (t) => Qt(t, "libs:datetime.time_format", e)
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)
2719
4162
  }), [e]);
2720
4163
  }
2721
- function en(e) {
2722
- let t = (0, Zt.default)(e);
4164
+ function pa(e) {
4165
+ let t = (0, ua.default)(e);
2723
4166
  return t.isValid() ? t.format("YYYYMMDD") : "";
2724
4167
  }
2725
- function tn(e) {
2726
- let t = (0, Zt.default)(e);
4168
+ function ma(e) {
4169
+ let t = (0, ua.default)(e);
2727
4170
  return t.isValid() ? t.format("HH:mm") : "";
2728
4171
  }
2729
- var nn = (e) => {
4172
+ var ha = (e) => {
2730
4173
  let t = e?.split("-")[0] === "ko" ? "ko" : "en";
2731
- Zt.default.locale(t);
4174
+ ua.default.locale(t);
2732
4175
  };
2733
- C.isInitialized && nn(C.resolvedLanguage || C.language), C.on("languageChanged", nn);
4176
+ T.isInitialized && ha(T.resolvedLanguage || T.language), T.on("languageChanged", ha);
2734
4177
  //#endregion
2735
4178
  //#region src/utils/file.ts
2736
- function rn(e) {
4179
+ function ga(e) {
2737
4180
  let t = e.lastIndexOf(".");
2738
4181
  return t === -1 ? "" : e.substring(t + 1);
2739
4182
  }
2740
4183
  //#endregion
2741
4184
  //#region src/utils/fb-storage.ts
2742
- async function an(e, t, n) {
4185
+ async function _a(e, t, n) {
2743
4186
  if (!n.file) return n.url;
2744
4187
  try {
2745
- let r = rn(n.file.name);
2746
- return await w((await E(T(e, r ? t + "." + r : t), n.file, { contentType: n.file.type })).ref);
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);
2747
4190
  } catch (e) {
2748
4191
  throw console.error("Firebase image upload failed:", e), e;
2749
4192
  }
2750
4193
  }
2751
4194
  //#endregion
2752
4195
  //#region src/utils/table.ts
2753
- function on(e, t, n, r) {
4196
+ function va(e, t, n, r) {
2754
4197
  let i = /* @__PURE__ */ new Map(), a = [];
2755
4198
  for (let n of e) i.set(t(n), {
2756
4199
  ...n,
@@ -2768,17 +4211,87 @@ function on(e, t, n, r) {
2768
4211
  return a;
2769
4212
  }
2770
4213
  //#endregion
4214
+ //#region src/utils/theme-provider.tsx
4215
+ var ya = t({
4216
+ theme: "system",
4217
+ resolvedTheme: "light",
4218
+ setTheme: () => null
4219
+ }), ba = (e) => e === "light" || e === "dark" || e === "system", xa = (e, t, n) => {
4220
+ let r = localStorage.getItem(e);
4221
+ if (!r) return t;
4222
+ try {
4223
+ let i = JSON.parse(r);
4224
+ if (ba(i)) return i;
4225
+ if (i && typeof i == "object" && "theme" in i && "time" in i) {
4226
+ let r = i;
4227
+ if (!ba(r.theme) || typeof r.time != "number") return t;
4228
+ let a = Date.now(), o = n * 60 * 60 * 1e3;
4229
+ return a - r.time < o ? r.theme : (localStorage.removeItem(e), t);
4230
+ }
4231
+ } catch {
4232
+ if (ba(r)) return r;
4233
+ }
4234
+ return t;
4235
+ };
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(() => {
4239
+ let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => {
4240
+ d(e.matches ? "dark" : "light");
4241
+ };
4242
+ return e.addEventListener("change", t), () => e.removeEventListener("change", t);
4243
+ }, []), i(() => {
4244
+ let e = window.document.documentElement, t = f === "dark" ? "dark" : "light";
4245
+ e.classList.remove("light", "dark"), e.classList.add(t);
4246
+ }, [f]);
4247
+ let p = a(() => ({
4248
+ theme: s,
4249
+ resolvedTheme: f,
4250
+ setTheme: (e) => {
4251
+ let t = {
4252
+ theme: e,
4253
+ time: Date.now()
4254
+ };
4255
+ localStorage.setItem(n, JSON.stringify(t)), c(e);
4256
+ }
4257
+ }), [
4258
+ s,
4259
+ f,
4260
+ n
4261
+ ]);
4262
+ return /* @__PURE__ */ u(ya.Provider, {
4263
+ value: p,
4264
+ children: e
4265
+ });
4266
+ }
4267
+ var Ca = () => r(ya);
4268
+ //#endregion
4269
+ //#region src/utils/text.ts
4270
+ function wa(e) {
4271
+ let t = e.trimEnd(), n = t.length === 0 ? null : t[t.length - 1];
4272
+ return !n || n.charCodeAt(0) < 44032 || n.charCodeAt(0) > 55203 ? !1 : (n.charCodeAt(0) - 44032) % 28 != 0;
4273
+ }
4274
+ function Ta(e, t, n) {
4275
+ return e + (wa(e) ? t : n);
4276
+ }
4277
+ //#endregion
2771
4278
  //#region src/constant/firestore.ts
2772
- var sn = () => ({
2773
- updateAt: b(),
4279
+ var Ea = () => ({
4280
+ updateAt: S(),
2774
4281
  delete: !0
2775
- }), cn = () => ({
2776
- updateAt: b(),
4282
+ }), Da = () => ({
4283
+ updateAt: S(),
2777
4284
  delete: !1
4285
+ }), Oa = () => ({
4286
+ updateAt: S(),
4287
+ deletedAt: S()
4288
+ }), ka = () => ({
4289
+ updateAt: S(),
4290
+ deletedAt: null
2778
4291
  });
2779
4292
  //#endregion
2780
4293
  //#region src/constant/auth.ts
2781
- function ln(e) {
4294
+ function Aa(e) {
2782
4295
  switch (e) {
2783
4296
  case "auth/user-not-found": return "libs:auth.errors.user_not_found";
2784
4297
  case "auth/wrong-password": return "libs:auth.errors.wrong_password";
@@ -2800,7 +4313,7 @@ function ln(e) {
2800
4313
  default: return "libs:auth.errors.default";
2801
4314
  }
2802
4315
  }
2803
- var un = {
4316
+ var ja = {
2804
4317
  add_assets: "애셋 추가",
2805
4318
  auth: { errors: {
2806
4319
  account_exists_with_different_credential: "이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.",
@@ -2824,14 +4337,21 @@ var un = {
2824
4337
  web_storage_unsupported: "현재 브라우저 설정에서는 로그인을 진행할 수 없어요.",
2825
4338
  wrong_password: "이메일 또는 비밀번호를 다시 확인해 주세요."
2826
4339
  } },
4340
+ cancel: "취소",
4341
+ confirm: "확인",
2827
4342
  datetime: {
2828
4343
  date_format: "YYYY년 M월 D일",
2829
4344
  date_time_format: "YYYY년 M월 D일 A h:mm:ss",
2830
4345
  time_format: "A h:mm:ss"
2831
4346
  },
4347
+ delete_dialog_desc: "이 항목을 삭제합니다.",
4348
+ delete_dialog_title: "삭제할까요?",
2832
4349
  no_results: "결과 없음",
4350
+ quit_warning_title: "모든 변경 사항을 취소할까요?",
4351
+ quite_warning_desc: "변경된 모든 사항을 취소하고 이전 화면으로 돌아갑니다.",
4352
+ time: "시각",
2833
4353
  unknown_error_occurred: "알 수 없는 오류가 발생했습니다."
2834
- }, dn = {
4354
+ }, Ma = {
2835
4355
  add_assets: "Add Assets",
2836
4356
  auth: { errors: {
2837
4357
  account_exists_with_different_credential: "This email is already linked to another sign-in method. Please use that method to sign in.",
@@ -2855,22 +4375,29 @@ var un = {
2855
4375
  web_storage_unsupported: "Sign-in is not available with your current browser settings.",
2856
4376
  wrong_password: "Please check your email or password."
2857
4377
  } },
4378
+ cancel: "Cancel",
4379
+ confirm: "Confirm",
2858
4380
  datetime: {
2859
4381
  date_format: "MMMM D, YYYY",
2860
4382
  date_time_format: "MMMM D, YYYY h:mm:ss A",
2861
4383
  time_format: "h:mm:ss A"
2862
4384
  },
4385
+ delete_dialog_desc: "This item will be deleted.",
4386
+ delete_dialog_title: "Delete?",
2863
4387
  no_results: "No results",
4388
+ quit_warning_title: "Discard all changes?",
4389
+ quite_warning_desc: "All changes will be canceled and you will go back to the previous screen.",
4390
+ time: "Time",
2864
4391
  unknown_error_occurred: "Unknown error occurred."
2865
4392
  };
2866
4393
  //#endregion
2867
4394
  //#region src/locales/i18n.ts
2868
- function fn(e) {
2869
- e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs", un, !0, !1), e.hasResourceBundle("en", "libs") || e.addResourceBundle("en", "libs", dn, !0, !1);
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);
2870
4397
  }
2871
4398
  //#endregion
2872
4399
  //#region src/css/toast.ts
2873
- var pn = {
4400
+ var Pa = {
2874
4401
  Info: {
2875
4402
  Soft: {
2876
4403
  "--normal-bg": "color-mix(in oklab, light-dark(var(--color-sky-600), var(--color-sky-400)) 10%, var(--background))",
@@ -2939,6 +4466,24 @@ var pn = {
2939
4466
  "--normal-border": "transparent"
2940
4467
  }
2941
4468
  }
4469
+ }, Fa = {
4470
+ initial: {
4471
+ opacity: 0,
4472
+ y: -10
4473
+ },
4474
+ animate: {
4475
+ opacity: 1,
4476
+ y: 0
4477
+ },
4478
+ exit: {
4479
+ opacity: 0,
4480
+ y: -10
4481
+ }
4482
+ }, Ia = {
4483
+ initial: { opacity: 0 },
4484
+ animate: { opacity: 1 },
4485
+ exit: { opacity: 0 },
4486
+ transition: { duration: .3 }
2942
4487
  };
2943
4488
  //#endregion
2944
- export { Rt as AnimatedSwapIcon, M as CrossfadeImage, Ft as DataTable, z as DefaultTable, V as DefaultTableBody, de as DefaultTableCell, ue as DefaultTableHead, B as DefaultTableHeader, le as DefaultTableRow, It as GroupedDataTable, fe as ImageUploadField, R as ImageUploadItem, pe as ImageUploadSortableField, ce as SUPPORTED_LOCALES, pn as ToastCSS, on as buildTreeWithSubRows, qt as createZustandContext, en as dateIdFormat, sn as deleteItem, Bt as fetchItems, Vt as fetchItemsByOne, ln as getAuthErrorKey, rn as getFileExtension, Kt as getPlatformType, Wt as getSnapshots, fn as initIenlabI18n, Gt as mapNotNull, zt as snapshotToData, tn as time24Format, cn as undeleteItem, an as uploadImage, $t as useDateTimeFormatters };
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 };