wcz-test 6.27.2 → 6.27.3

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 (34) hide show
  1. package/dist/DialogsContext-CGAKEKKW.js +546 -0
  2. package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
  3. package/dist/DialogsHooks-BZUdpDVJ.js +231 -0
  4. package/dist/{DialogsHooks-DzqOb2Zx.js.map → DialogsHooks-BZUdpDVJ.js.map} +1 -1
  5. package/dist/{FileHooks-C8Akmy_o.js → FileHooks-DCznEPaA.js} +65 -61
  6. package/dist/{FileHooks-C8Akmy_o.js.map → FileHooks-DCznEPaA.js.map} +1 -1
  7. package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
  8. package/dist/RouterListItemButton-C_jUvB6C.js.map +1 -0
  9. package/dist/compiler-runtime-BNHg76kC.js +37 -0
  10. package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
  11. package/dist/components.js +1562 -944
  12. package/dist/components.js.map +1 -1
  13. package/dist/hooks.js +278 -278
  14. package/dist/hooks.js.map +1 -1
  15. package/dist/i18next-Bx3TmZAT.js +1337 -0
  16. package/dist/i18next-Bx3TmZAT.js.map +1 -0
  17. package/dist/index.js +842 -973
  18. package/dist/index.js.map +1 -1
  19. package/dist/queries.js +85 -85
  20. package/dist/queries.js.map +1 -1
  21. package/dist/utils-DV30kRxW.js +1921 -0
  22. package/dist/utils-DV30kRxW.js.map +1 -0
  23. package/dist/utils.js +4 -5
  24. package/dist/utils.js.map +1 -1
  25. package/package.json +1 -2
  26. package/dist/DialogsContext-2Yy6yhzQ.js +0 -6
  27. package/dist/DialogsContext-2Yy6yhzQ.js.map +0 -1
  28. package/dist/DialogsHooks-DzqOb2Zx.js +0 -233
  29. package/dist/RouterListItemButton-i4Ne2G-Z.js +0 -508
  30. package/dist/RouterListItemButton-i4Ne2G-Z.js.map +0 -1
  31. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
  32. package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
  33. package/dist/utils-IWcYo8tM.js +0 -106
  34. package/dist/utils-IWcYo8tM.js.map +0 -1
@@ -1,37 +1,34 @@
1
- import { jsxs as q, jsx as u } from "react/jsx-runtime";
2
- import { c as E } from "react/compiler-runtime";
3
- import { Typography as li, Stack as fi, Box as U, useTheme as Me, Paper as Be, ListItemButton as $i, ListItemIcon as Mi, ListItemText as Bi, List as be, Menu as He, ImageListItemBar as We, IconButton as Vi, Tooltip as Ke, ImageListItem as Ne, Dialog as Ge, Fab as Ve, Chip as pe, Button as Ye, Link as Ue, Tab as Xe, Divider as ye } from "@mui/material";
4
- import ri, { useRef as ui, useState as vi, useEffectEvent as Je, useEffect as pi, useMemo as oi, useReducer as Ze, useCallback as M, forwardRef as Qe, useImperativeHandle as it, Fragment as Yi, createContext as et, useContext as tt } from "react";
5
- import at from "@mui/icons-material/CloudUpload";
6
- import { P as j } from "./RouterListItemButton-i4Ne2G-Z.js";
7
- import { R as xn } from "./RouterListItemButton-i4Ne2G-Z.js";
8
- import { g as nt } from "./_commonjsHelpers-DaMA6jEr.js";
9
- import { useTranslation as Ui } from "react-i18next";
10
- import we from "@mui/icons-material/MoreVert";
11
- import { grey as ot } from "@mui/material/colors";
12
- import { u as pt, a as lt } from "./DialogsHooks-DzqOb2Zx.js";
13
- import ct from "@mui/icons-material/Delete";
14
- import rt from "@mui/icons-material/FileDownload";
15
- import { c as Xi, f as st, a as dt, d as ke, b as mt, u as ut } from "./FileHooks-C8Akmy_o.js";
16
- import ft from "@mui/icons-material/AttachFile";
17
- import vt from "@mui/icons-material/Image";
18
- import xt from "@mui/icons-material/SmartDisplay";
19
- import gt from "@mui/icons-material/Close";
20
- import ht from "@mui/icons-material/Edit";
21
- import { createLink as gi } from "@tanstack/react-router";
22
- import { GridActionsCellItem as bt } from "@mui/x-data-grid-premium";
23
- const yt = (e) => {
24
- const i = E(22);
25
- let t, a, n, o, p;
26
- i[0] !== e ? ({
27
- startIcon: o,
1
+ import { j as v, u as pt } from "./DialogsContext-CGAKEKKW.js";
2
+ import { c as Y } from "./compiler-runtime-BNHg76kC.js";
3
+ import { Typography as xe, Stack as ke, Box as ce, useTheme as ci, Paper as si, ListItemButton as Qe, ListItemIcon as et, ListItemText as tt, List as $t, Menu as di, ImageListItemBar as mi, IconButton as lt, Tooltip as ui, ImageListItem as fi, Dialog as vi, Fab as xi, Chip as xt, Button as gi, Link as hi, Tab as yi, Divider as Mt } from "@mui/material";
4
+ import he, { useRef as we, useState as je, useEffectEvent as bi, useEffect as ve, useMemo as fe, useReducer as wi, useCallback as ae, forwardRef as ki, useImperativeHandle as ji, Fragment as ct, createContext as Ei, useContext as Ti } from "react";
5
+ import _i from "@mui/icons-material/CloudUpload";
6
+ import { i as Yt, c as st, f as Oi, a as Di, d as Wt, b as Ai, u as Ci } from "./FileHooks-DCznEPaA.js";
7
+ import Bt from "@mui/icons-material/MoreVert";
8
+ import { grey as Si } from "@mui/material/colors";
9
+ import { u as Ri, a as Pi } from "./DialogsHooks-BZUdpDVJ.js";
10
+ import Ii from "@mui/icons-material/Delete";
11
+ import zi from "@mui/icons-material/FileDownload";
12
+ import Fi from "@mui/icons-material/AttachFile";
13
+ import qi from "@mui/icons-material/Image";
14
+ import Li from "@mui/icons-material/SmartDisplay";
15
+ import $i from "@mui/icons-material/Close";
16
+ import Mi from "@mui/icons-material/Edit";
17
+ import { createLink as Te } from "@tanstack/react-router";
18
+ import { GridActionsCellItem as Yi } from "@mui/x-data-grid-premium";
19
+ import { R as Bn } from "./RouterListItemButton-C_jUvB6C.js";
20
+ const Wi = (t) => {
21
+ const e = Y.c(22);
22
+ let i, a, n, r, p;
23
+ e[0] !== t ? ({
24
+ startIcon: r,
28
25
  endIcon: a,
29
- children: t,
26
+ children: i,
30
27
  sx: p,
31
28
  ...n
32
- } = e, i[0] = e, i[1] = t, i[2] = a, i[3] = n, i[4] = o, i[5] = p) : (t = i[1], a = i[2], n = i[3], o = i[4], p = i[5]);
29
+ } = t, e[0] = t, e[1] = i, e[2] = a, e[3] = n, e[4] = r, e[5] = p) : (i = e[1], a = e[2], n = e[3], r = e[4], p = e[5]);
33
30
  let l;
34
- i[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
31
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
35
32
  display: "inline-flex",
36
33
  alignItems: "center",
37
34
  justifyContent: "center",
@@ -40,81 +37,702 @@ const yt = (e) => {
40
37
  "& > svg": {
41
38
  display: "block"
42
39
  }
43
- }, i[6] = l) : l = i[6];
40
+ }, e[6] = l) : l = e[6];
44
41
  const d = l;
45
42
  let c;
46
- i[7] !== p ? (c = {
43
+ e[7] !== p ? (c = {
47
44
  display: "inline-flex",
48
45
  alignItems: "center",
49
46
  verticalAlign: "middle",
50
47
  ...p
51
- }, i[7] = p, i[8] = c) : c = i[8];
48
+ }, e[7] = p, e[8] = c) : c = e[8];
52
49
  let s;
53
- i[9] !== o ? (s = o && /* @__PURE__ */ u(fi, { component: "span", sx: d, children: o }), i[9] = o, i[10] = s) : s = i[10];
50
+ e[9] !== r ? (s = r && /* @__PURE__ */ v.jsx(ke, { component: "span", sx: d, children: r }), e[9] = r, e[10] = s) : s = e[10];
54
51
  let m;
55
- i[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
52
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
56
53
  display: "inline",
57
54
  lineHeight: "inherit"
58
- }, i[11] = m) : m = i[11];
55
+ }, e[11] = m) : m = e[11];
59
56
  let f;
60
- i[12] !== t ? (f = /* @__PURE__ */ u(fi, { component: "span", sx: m, children: t }), i[12] = t, i[13] = f) : f = i[13];
61
- let g;
62
- i[14] !== a ? (g = a && /* @__PURE__ */ u(fi, { component: "span", sx: d, children: a }), i[14] = a, i[15] = g) : g = i[15];
63
- let x;
64
- return i[16] !== n || i[17] !== c || i[18] !== s || i[19] !== f || i[20] !== g ? (x = /* @__PURE__ */ q(li, { component: "span", sx: c, gap: 1, ...n, children: [
57
+ e[12] !== i ? (f = /* @__PURE__ */ v.jsx(ke, { component: "span", sx: m, children: i }), e[12] = i, e[13] = f) : f = e[13];
58
+ let y;
59
+ e[14] !== a ? (y = a && /* @__PURE__ */ v.jsx(ke, { component: "span", sx: d, children: a }), e[14] = a, e[15] = y) : y = e[15];
60
+ let h;
61
+ return e[16] !== n || e[17] !== c || e[18] !== s || e[19] !== f || e[20] !== y ? (h = /* @__PURE__ */ v.jsxs(xe, { component: "span", sx: c, gap: 1, ...n, children: [
65
62
  s,
66
63
  f,
67
- g
68
- ] }), i[16] = n, i[17] = c, i[18] = s, i[19] = f, i[20] = g, i[21] = x) : x = i[21], x;
69
- }, tn = (e) => {
70
- const i = E(15);
71
- let t, a, n;
72
- i[0] !== e ? ({
73
- children: t,
64
+ y
65
+ ] }), e[16] = n, e[17] = c, e[18] = s, e[19] = f, e[20] = y, e[21] = h) : h = e[21], h;
66
+ }, An = (t) => {
67
+ const e = Y.c(15);
68
+ let i, a, n;
69
+ e[0] !== t ? ({
70
+ children: i,
74
71
  sx: n,
75
72
  ...a
76
- } = e, i[0] = e, i[1] = t, i[2] = a, i[3] = n) : (t = i[1], a = i[2], n = i[3]);
77
- const o = ui(null), [p, l] = vi();
73
+ } = t, e[0] = t, e[1] = i, e[2] = a, e[3] = n) : (i = e[1], a = e[2], n = e[3]);
74
+ const r = we(null), [p, l] = je();
78
75
  let d;
79
- i[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => {
80
- if (!o.current)
76
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => {
77
+ if (!r.current)
81
78
  return;
82
- const x = Math.ceil(o.current.getBoundingClientRect().top), h = Math.max(0, window.innerHeight - x);
83
- l(h);
84
- }, i[4] = d) : d = i[4];
85
- const c = Je(d);
79
+ const h = Math.ceil(r.current.getBoundingClientRect().top), o = Math.max(0, window.innerHeight - h);
80
+ l(o);
81
+ }, e[4] = d) : d = e[4];
82
+ const c = bi(d);
86
83
  let s;
87
- i[5] !== c ? (s = () => {
88
- const x = o.current;
89
- if (!x)
84
+ e[5] !== c ? (s = () => {
85
+ const h = r.current;
86
+ if (!h)
90
87
  return;
91
88
  c(), window.addEventListener("resize", c);
92
- const h = new ResizeObserver(c);
93
- return h.observe(document.documentElement), h.observe(document.body), h.observe(x), () => {
94
- window.removeEventListener("resize", c), h.disconnect();
89
+ const o = new ResizeObserver(c);
90
+ return o.observe(document.documentElement), o.observe(document.body), o.observe(h), () => {
91
+ window.removeEventListener("resize", c), o.disconnect();
95
92
  };
96
- }, i[5] = c, i[6] = s) : s = i[6];
93
+ }, e[5] = c, e[6] = s) : s = e[6];
97
94
  let m;
98
- i[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = [], i[7] = m) : m = i[7], pi(s, m);
95
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = [], e[7] = m) : m = e[7], ve(s, m);
99
96
  let f;
100
- i[8] !== n ? (f = {
97
+ e[8] !== n ? (f = {
101
98
  display: "flex",
102
99
  flexDirection: "column",
103
100
  minHeight: 0,
104
101
  width: "100%",
105
102
  overflow: "auto",
106
103
  ...n
107
- }, i[8] = n, i[9] = f) : f = i[9];
108
- let g;
109
- return i[10] !== t || i[11] !== p || i[12] !== a || i[13] !== f ? (g = /* @__PURE__ */ u(U, { ref: o, sx: f, height: p, ...a, children: t }), i[10] = t, i[11] = p, i[12] = a, i[13] = f, i[14] = g) : g = i[14], g;
104
+ }, e[8] = n, e[9] = f) : f = e[9];
105
+ let y;
106
+ return e[10] !== i || e[11] !== p || e[12] !== a || e[13] !== f ? (y = /* @__PURE__ */ v.jsx(ce, { ref: r, sx: f, height: p, ...a, children: i }), e[10] = i, e[11] = p, e[12] = a, e[13] = f, e[14] = y) : y = e[14], y;
110
107
  };
111
- function ii(e, i, t, a) {
112
- function n(o) {
113
- return o instanceof t ? o : new t(function(p) {
114
- p(o);
108
+ var Ae = { exports: {} }, Ce = { exports: {} }, I = {};
109
+ var gt;
110
+ function Bi() {
111
+ if (gt) return I;
112
+ gt = 1;
113
+ var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), n = /* @__PURE__ */ Symbol.for("react.profiler"), r = /* @__PURE__ */ Symbol.for("react.consumer"), p = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), s = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), f = /* @__PURE__ */ Symbol.for("react.view_transition"), y = /* @__PURE__ */ Symbol.for("react.client.reference");
114
+ function h(o) {
115
+ if (typeof o == "object" && o !== null) {
116
+ var b = o.$$typeof;
117
+ switch (b) {
118
+ case t:
119
+ switch (o = o.type, o) {
120
+ case i:
121
+ case n:
122
+ case a:
123
+ case d:
124
+ case c:
125
+ case f:
126
+ return o;
127
+ default:
128
+ switch (o = o && o.$$typeof, o) {
129
+ case p:
130
+ case l:
131
+ case m:
132
+ case s:
133
+ return o;
134
+ case r:
135
+ return o;
136
+ default:
137
+ return b;
138
+ }
139
+ }
140
+ case e:
141
+ return b;
142
+ }
143
+ }
144
+ }
145
+ return I.ContextConsumer = r, I.ContextProvider = p, I.Element = t, I.ForwardRef = l, I.Fragment = i, I.Lazy = m, I.Memo = s, I.Portal = e, I.Profiler = n, I.StrictMode = a, I.Suspense = d, I.SuspenseList = c, I.isContextConsumer = function(o) {
146
+ return h(o) === r;
147
+ }, I.isContextProvider = function(o) {
148
+ return h(o) === p;
149
+ }, I.isElement = function(o) {
150
+ return typeof o == "object" && o !== null && o.$$typeof === t;
151
+ }, I.isForwardRef = function(o) {
152
+ return h(o) === l;
153
+ }, I.isFragment = function(o) {
154
+ return h(o) === i;
155
+ }, I.isLazy = function(o) {
156
+ return h(o) === m;
157
+ }, I.isMemo = function(o) {
158
+ return h(o) === s;
159
+ }, I.isPortal = function(o) {
160
+ return h(o) === e;
161
+ }, I.isProfiler = function(o) {
162
+ return h(o) === n;
163
+ }, I.isStrictMode = function(o) {
164
+ return h(o) === a;
165
+ }, I.isSuspense = function(o) {
166
+ return h(o) === d;
167
+ }, I.isSuspenseList = function(o) {
168
+ return h(o) === c;
169
+ }, I.isValidElementType = function(o) {
170
+ return typeof o == "string" || typeof o == "function" || o === i || o === n || o === a || o === d || o === c || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === s || o.$$typeof === p || o.$$typeof === r || o.$$typeof === l || o.$$typeof === y || o.getModuleId !== void 0);
171
+ }, I.typeOf = h, I;
172
+ }
173
+ var z = {};
174
+ var ht;
175
+ function Ni() {
176
+ return ht || (ht = 1, process.env.NODE_ENV !== "production" && (function() {
177
+ function t(o) {
178
+ if (typeof o == "object" && o !== null) {
179
+ var b = o.$$typeof;
180
+ switch (b) {
181
+ case e:
182
+ switch (o = o.type, o) {
183
+ case a:
184
+ case r:
185
+ case n:
186
+ case c:
187
+ case s:
188
+ case y:
189
+ return o;
190
+ default:
191
+ switch (o = o && o.$$typeof, o) {
192
+ case l:
193
+ case d:
194
+ case f:
195
+ case m:
196
+ return o;
197
+ case p:
198
+ return o;
199
+ default:
200
+ return b;
201
+ }
202
+ }
203
+ case i:
204
+ return b;
205
+ }
206
+ }
207
+ }
208
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), a = /* @__PURE__ */ Symbol.for("react.fragment"), n = /* @__PURE__ */ Symbol.for("react.strict_mode"), r = /* @__PURE__ */ Symbol.for("react.profiler"), p = /* @__PURE__ */ Symbol.for("react.consumer"), l = /* @__PURE__ */ Symbol.for("react.context"), d = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), s = /* @__PURE__ */ Symbol.for("react.suspense_list"), m = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), y = /* @__PURE__ */ Symbol.for("react.view_transition"), h = /* @__PURE__ */ Symbol.for("react.client.reference");
209
+ z.ContextConsumer = p, z.ContextProvider = l, z.Element = e, z.ForwardRef = d, z.Fragment = a, z.Lazy = f, z.Memo = m, z.Portal = i, z.Profiler = r, z.StrictMode = n, z.Suspense = c, z.SuspenseList = s, z.isContextConsumer = function(o) {
210
+ return t(o) === p;
211
+ }, z.isContextProvider = function(o) {
212
+ return t(o) === l;
213
+ }, z.isElement = function(o) {
214
+ return typeof o == "object" && o !== null && o.$$typeof === e;
215
+ }, z.isForwardRef = function(o) {
216
+ return t(o) === d;
217
+ }, z.isFragment = function(o) {
218
+ return t(o) === a;
219
+ }, z.isLazy = function(o) {
220
+ return t(o) === f;
221
+ }, z.isMemo = function(o) {
222
+ return t(o) === m;
223
+ }, z.isPortal = function(o) {
224
+ return t(o) === i;
225
+ }, z.isProfiler = function(o) {
226
+ return t(o) === r;
227
+ }, z.isStrictMode = function(o) {
228
+ return t(o) === n;
229
+ }, z.isSuspense = function(o) {
230
+ return t(o) === c;
231
+ }, z.isSuspenseList = function(o) {
232
+ return t(o) === s;
233
+ }, z.isValidElementType = function(o) {
234
+ return typeof o == "string" || typeof o == "function" || o === a || o === r || o === n || o === c || o === s || typeof o == "object" && o !== null && (o.$$typeof === f || o.$$typeof === m || o.$$typeof === l || o.$$typeof === p || o.$$typeof === d || o.$$typeof === h || o.getModuleId !== void 0);
235
+ }, z.typeOf = t;
236
+ })()), z;
237
+ }
238
+ var yt;
239
+ function Nt() {
240
+ return yt || (yt = 1, process.env.NODE_ENV === "production" ? Ce.exports = /* @__PURE__ */ Bi() : Ce.exports = /* @__PURE__ */ Ni()), Ce.exports;
241
+ }
242
+ var He, bt;
243
+ function Hi() {
244
+ if (bt) return He;
245
+ bt = 1;
246
+ var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
247
+ function a(r) {
248
+ if (r == null)
249
+ throw new TypeError("Object.assign cannot be called with null or undefined");
250
+ return Object(r);
251
+ }
252
+ function n() {
253
+ try {
254
+ if (!Object.assign)
255
+ return !1;
256
+ var r = new String("abc");
257
+ if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
258
+ return !1;
259
+ for (var p = {}, l = 0; l < 10; l++)
260
+ p["_" + String.fromCharCode(l)] = l;
261
+ var d = Object.getOwnPropertyNames(p).map(function(s) {
262
+ return p[s];
263
+ });
264
+ if (d.join("") !== "0123456789")
265
+ return !1;
266
+ var c = {};
267
+ return "abcdefghijklmnopqrst".split("").forEach(function(s) {
268
+ c[s] = s;
269
+ }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
270
+ } catch {
271
+ return !1;
272
+ }
273
+ }
274
+ return He = n() ? Object.assign : function(r, p) {
275
+ for (var l, d = a(r), c, s = 1; s < arguments.length; s++) {
276
+ l = Object(arguments[s]);
277
+ for (var m in l)
278
+ e.call(l, m) && (d[m] = l[m]);
279
+ if (t) {
280
+ c = t(l);
281
+ for (var f = 0; f < c.length; f++)
282
+ i.call(l, c[f]) && (d[c[f]] = l[c[f]]);
283
+ }
284
+ }
285
+ return d;
286
+ }, He;
287
+ }
288
+ var Ke, wt;
289
+ function dt() {
290
+ if (wt) return Ke;
291
+ wt = 1;
292
+ var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
293
+ return Ke = t, Ke;
294
+ }
295
+ var Ue, kt;
296
+ function Ht() {
297
+ return kt || (kt = 1, Ue = Function.call.bind(Object.prototype.hasOwnProperty)), Ue;
298
+ }
299
+ var Ve, jt;
300
+ function Ki() {
301
+ if (jt) return Ve;
302
+ jt = 1;
303
+ var t = function() {
304
+ };
305
+ if (process.env.NODE_ENV !== "production") {
306
+ var e = /* @__PURE__ */ dt(), i = {}, a = /* @__PURE__ */ Ht();
307
+ t = function(r) {
308
+ var p = "Warning: " + r;
309
+ typeof console < "u" && console.error(p);
310
+ try {
311
+ throw new Error(p);
312
+ } catch {
313
+ }
314
+ };
315
+ }
316
+ function n(r, p, l, d, c) {
317
+ if (process.env.NODE_ENV !== "production") {
318
+ for (var s in r)
319
+ if (a(r, s)) {
320
+ var m;
321
+ try {
322
+ if (typeof r[s] != "function") {
323
+ var f = Error(
324
+ (d || "React class") + ": " + l + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
325
+ );
326
+ throw f.name = "Invariant Violation", f;
327
+ }
328
+ m = r[s](p, s, d, l, null, e);
329
+ } catch (h) {
330
+ m = h;
331
+ }
332
+ if (m && !(m instanceof Error) && t(
333
+ (d || "React class") + ": type specification of " + l + " `" + s + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
334
+ ), m instanceof Error && !(m.message in i)) {
335
+ i[m.message] = !0;
336
+ var y = c ? c() : "";
337
+ t(
338
+ "Failed " + l + " type: " + m.message + (y ?? "")
339
+ );
340
+ }
341
+ }
342
+ }
343
+ }
344
+ return n.resetWarningCache = function() {
345
+ process.env.NODE_ENV !== "production" && (i = {});
346
+ }, Ve = n, Ve;
347
+ }
348
+ var Ge, Et;
349
+ function Ui() {
350
+ if (Et) return Ge;
351
+ Et = 1;
352
+ var t = /* @__PURE__ */ Nt(), e = Hi(), i = /* @__PURE__ */ dt(), a = /* @__PURE__ */ Ht(), n = /* @__PURE__ */ Ki(), r = function() {
353
+ };
354
+ process.env.NODE_ENV !== "production" && (r = function(l) {
355
+ var d = "Warning: " + l;
356
+ typeof console < "u" && console.error(d);
357
+ try {
358
+ throw new Error(d);
359
+ } catch {
360
+ }
361
+ });
362
+ function p() {
363
+ return null;
364
+ }
365
+ return Ge = function(l, d) {
366
+ var c = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
367
+ function m(u) {
368
+ var x = u && (c && u[c] || u[s]);
369
+ if (typeof x == "function")
370
+ return x;
371
+ }
372
+ var f = "<<anonymous>>", y = {
373
+ array: _("array"),
374
+ bigint: _("bigint"),
375
+ bool: _("boolean"),
376
+ func: _("function"),
377
+ number: _("number"),
378
+ object: _("object"),
379
+ string: _("string"),
380
+ symbol: _("symbol"),
381
+ any: D(),
382
+ arrayOf: R,
383
+ element: F(),
384
+ elementType: $(),
385
+ instanceOf: N,
386
+ node: Z(),
387
+ objectOf: G,
388
+ oneOf: H,
389
+ oneOfType: J,
390
+ shape: pe,
391
+ exact: oe
392
+ };
393
+ function h(u, x) {
394
+ return u === x ? u !== 0 || 1 / u === 1 / x : u !== u && x !== x;
395
+ }
396
+ function o(u, x) {
397
+ this.message = u, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
398
+ }
399
+ o.prototype = Error.prototype;
400
+ function b(u) {
401
+ if (process.env.NODE_ENV !== "production")
402
+ var x = {}, j = 0;
403
+ function T(C, E, O, S, P, A, X) {
404
+ if (S = S || f, A = A || O, X !== i) {
405
+ if (d) {
406
+ var B = new Error(
407
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
408
+ );
409
+ throw B.name = "Invariant Violation", B;
410
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
411
+ var le = S + ":" + O;
412
+ !x[le] && // Avoid spamming the console because they are often not actionable except for lib authors
413
+ j < 3 && (r(
414
+ "You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + S + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
415
+ ), x[le] = !0, j++);
416
+ }
417
+ }
418
+ return E[O] == null ? C ? E[O] === null ? new o("The " + P + " `" + A + "` is marked as required " + ("in `" + S + "`, but its value is `null`.")) : new o("The " + P + " `" + A + "` is marked as required in " + ("`" + S + "`, but its value is `undefined`.")) : null : u(E, O, S, P, A);
419
+ }
420
+ var w = T.bind(null, !1);
421
+ return w.isRequired = T.bind(null, !0), w;
422
+ }
423
+ function _(u) {
424
+ function x(j, T, w, C, E, O) {
425
+ var S = j[T], P = Q(S);
426
+ if (P !== u) {
427
+ var A = te(S);
428
+ return new o(
429
+ "Invalid " + C + " `" + E + "` of type " + ("`" + A + "` supplied to `" + w + "`, expected ") + ("`" + u + "`."),
430
+ { expectedType: u }
431
+ );
432
+ }
433
+ return null;
434
+ }
435
+ return b(x);
436
+ }
437
+ function D() {
438
+ return b(p);
439
+ }
440
+ function R(u) {
441
+ function x(j, T, w, C, E) {
442
+ if (typeof u != "function")
443
+ return new o("Property `" + E + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
444
+ var O = j[T];
445
+ if (!Array.isArray(O)) {
446
+ var S = Q(O);
447
+ return new o("Invalid " + C + " `" + E + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected an array."));
448
+ }
449
+ for (var P = 0; P < O.length; P++) {
450
+ var A = u(O, P, w, C, E + "[" + P + "]", i);
451
+ if (A instanceof Error)
452
+ return A;
453
+ }
454
+ return null;
455
+ }
456
+ return b(x);
457
+ }
458
+ function F() {
459
+ function u(x, j, T, w, C) {
460
+ var E = x[j];
461
+ if (!l(E)) {
462
+ var O = Q(E);
463
+ return new o("Invalid " + w + " `" + C + "` of type " + ("`" + O + "` supplied to `" + T + "`, expected a single ReactElement."));
464
+ }
465
+ return null;
466
+ }
467
+ return b(u);
468
+ }
469
+ function $() {
470
+ function u(x, j, T, w, C) {
471
+ var E = x[j];
472
+ if (!t.isValidElementType(E)) {
473
+ var O = Q(E);
474
+ return new o("Invalid " + w + " `" + C + "` of type " + ("`" + O + "` supplied to `" + T + "`, expected a single ReactElement type."));
475
+ }
476
+ return null;
477
+ }
478
+ return b(u);
479
+ }
480
+ function N(u) {
481
+ function x(j, T, w, C, E) {
482
+ if (!(j[T] instanceof u)) {
483
+ var O = u.name || f, S = W(j[T]);
484
+ return new o("Invalid " + C + " `" + E + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected ") + ("instance of `" + O + "`."));
485
+ }
486
+ return null;
487
+ }
488
+ return b(x);
489
+ }
490
+ function H(u) {
491
+ if (!Array.isArray(u))
492
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
493
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
494
+ ) : r("Invalid argument supplied to oneOf, expected an array.")), p;
495
+ function x(j, T, w, C, E) {
496
+ for (var O = j[T], S = 0; S < u.length; S++)
497
+ if (h(O, u[S]))
498
+ return null;
499
+ var P = JSON.stringify(u, function(X, B) {
500
+ var le = te(B);
501
+ return le === "symbol" ? String(B) : B;
502
+ });
503
+ return new o("Invalid " + C + " `" + E + "` of value `" + String(O) + "` " + ("supplied to `" + w + "`, expected one of " + P + "."));
504
+ }
505
+ return b(x);
506
+ }
507
+ function G(u) {
508
+ function x(j, T, w, C, E) {
509
+ if (typeof u != "function")
510
+ return new o("Property `" + E + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
511
+ var O = j[T], S = Q(O);
512
+ if (S !== "object")
513
+ return new o("Invalid " + C + " `" + E + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected an object."));
514
+ for (var P in O)
515
+ if (a(O, P)) {
516
+ var A = u(O, P, w, C, E + "." + P, i);
517
+ if (A instanceof Error)
518
+ return A;
519
+ }
520
+ return null;
521
+ }
522
+ return b(x);
523
+ }
524
+ function J(u) {
525
+ if (!Array.isArray(u))
526
+ return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), p;
527
+ for (var x = 0; x < u.length; x++) {
528
+ var j = u[x];
529
+ if (typeof j != "function")
530
+ return r(
531
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(j) + " at index " + x + "."
532
+ ), p;
533
+ }
534
+ function T(w, C, E, O, S) {
535
+ for (var P = [], A = 0; A < u.length; A++) {
536
+ var X = u[A], B = X(w, C, E, O, S, i);
537
+ if (B == null)
538
+ return null;
539
+ B.data && a(B.data, "expectedType") && P.push(B.data.expectedType);
540
+ }
541
+ var le = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
542
+ return new o("Invalid " + O + " `" + S + "` supplied to " + ("`" + E + "`" + le + "."));
543
+ }
544
+ return b(T);
545
+ }
546
+ function Z() {
547
+ function u(x, j, T, w, C) {
548
+ return q(x[j]) ? null : new o("Invalid " + w + " `" + C + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
549
+ }
550
+ return b(u);
551
+ }
552
+ function ne(u, x, j, T, w) {
553
+ return new o(
554
+ (u || "React class") + ": " + x + " type `" + j + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
555
+ );
556
+ }
557
+ function pe(u) {
558
+ function x(j, T, w, C, E) {
559
+ var O = j[T], S = Q(O);
560
+ if (S !== "object")
561
+ return new o("Invalid " + C + " `" + E + "` of type `" + S + "` " + ("supplied to `" + w + "`, expected `object`."));
562
+ for (var P in u) {
563
+ var A = u[P];
564
+ if (typeof A != "function")
565
+ return ne(w, C, E, P, te(A));
566
+ var X = A(O, P, w, C, E + "." + P, i);
567
+ if (X)
568
+ return X;
569
+ }
570
+ return null;
571
+ }
572
+ return b(x);
573
+ }
574
+ function oe(u) {
575
+ function x(j, T, w, C, E) {
576
+ var O = j[T], S = Q(O);
577
+ if (S !== "object")
578
+ return new o("Invalid " + C + " `" + E + "` of type `" + S + "` " + ("supplied to `" + w + "`, expected `object`."));
579
+ var P = e({}, j[T], u);
580
+ for (var A in P) {
581
+ var X = u[A];
582
+ if (a(u, A) && typeof X != "function")
583
+ return ne(w, C, E, A, te(X));
584
+ if (!X)
585
+ return new o(
586
+ "Invalid " + C + " `" + E + "` key `" + A + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(j[T], null, " ") + `
587
+ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
588
+ );
589
+ var B = X(O, A, w, C, E + "." + A, i);
590
+ if (B)
591
+ return B;
592
+ }
593
+ return null;
594
+ }
595
+ return b(x);
596
+ }
597
+ function q(u) {
598
+ switch (typeof u) {
599
+ case "number":
600
+ case "string":
601
+ case "undefined":
602
+ return !0;
603
+ case "boolean":
604
+ return !u;
605
+ case "object":
606
+ if (Array.isArray(u))
607
+ return u.every(q);
608
+ if (u === null || l(u))
609
+ return !0;
610
+ var x = m(u);
611
+ if (x) {
612
+ var j = x.call(u), T;
613
+ if (x !== u.entries) {
614
+ for (; !(T = j.next()).done; )
615
+ if (!q(T.value))
616
+ return !1;
617
+ } else
618
+ for (; !(T = j.next()).done; ) {
619
+ var w = T.value;
620
+ if (w && !q(w[1]))
621
+ return !1;
622
+ }
623
+ } else
624
+ return !1;
625
+ return !0;
626
+ default:
627
+ return !1;
628
+ }
629
+ }
630
+ function U(u, x) {
631
+ return u === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
632
+ }
633
+ function Q(u) {
634
+ var x = typeof u;
635
+ return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : U(x, u) ? "symbol" : x;
636
+ }
637
+ function te(u) {
638
+ if (typeof u > "u" || u === null)
639
+ return "" + u;
640
+ var x = Q(u);
641
+ if (x === "object") {
642
+ if (u instanceof Date)
643
+ return "date";
644
+ if (u instanceof RegExp)
645
+ return "regexp";
646
+ }
647
+ return x;
648
+ }
649
+ function ie(u) {
650
+ var x = te(u);
651
+ switch (x) {
652
+ case "array":
653
+ case "object":
654
+ return "an " + x;
655
+ case "boolean":
656
+ case "date":
657
+ case "regexp":
658
+ return "a " + x;
659
+ default:
660
+ return x;
661
+ }
662
+ }
663
+ function W(u) {
664
+ return !u.constructor || !u.constructor.name ? f : u.constructor.name;
665
+ }
666
+ return y.checkPropTypes = n, y.resetWarningCache = n.resetWarningCache, y.PropTypes = y, y;
667
+ }, Ge;
668
+ }
669
+ var Xe, Tt;
670
+ function Vi() {
671
+ if (Tt) return Xe;
672
+ Tt = 1;
673
+ var t = /* @__PURE__ */ dt();
674
+ function e() {
675
+ }
676
+ function i() {
677
+ }
678
+ return i.resetWarningCache = e, Xe = function() {
679
+ function a(p, l, d, c, s, m) {
680
+ if (m !== t) {
681
+ var f = new Error(
682
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
683
+ );
684
+ throw f.name = "Invariant Violation", f;
685
+ }
686
+ }
687
+ a.isRequired = a;
688
+ function n() {
689
+ return a;
690
+ }
691
+ var r = {
692
+ array: a,
693
+ bigint: a,
694
+ bool: a,
695
+ func: a,
696
+ number: a,
697
+ object: a,
698
+ string: a,
699
+ symbol: a,
700
+ any: a,
701
+ arrayOf: n,
702
+ element: a,
703
+ elementType: a,
704
+ instanceOf: n,
705
+ node: a,
706
+ objectOf: n,
707
+ oneOf: n,
708
+ oneOfType: n,
709
+ shape: n,
710
+ exact: n,
711
+ checkPropTypes: i,
712
+ resetWarningCache: e
713
+ };
714
+ return r.PropTypes = r, r;
715
+ }, Xe;
716
+ }
717
+ var _t;
718
+ function Gi() {
719
+ if (_t) return Ae.exports;
720
+ if (_t = 1, process.env.NODE_ENV !== "production") {
721
+ var t = /* @__PURE__ */ Nt(), e = !0;
722
+ Ae.exports = /* @__PURE__ */ Ui()(t.isElement, e);
723
+ } else
724
+ Ae.exports = /* @__PURE__ */ Vi()();
725
+ return Ae.exports;
726
+ }
727
+ var Xi = /* @__PURE__ */ Gi();
728
+ const L = /* @__PURE__ */ Yt(Xi);
729
+ function de(t, e, i, a) {
730
+ function n(r) {
731
+ return r instanceof i ? r : new i(function(p) {
732
+ p(r);
115
733
  });
116
734
  }
117
- return new (t || (t = Promise))(function(o, p) {
735
+ return new (i || (i = Promise))(function(r, p) {
118
736
  function l(s) {
119
737
  try {
120
738
  c(a.next(s));
@@ -130,12 +748,12 @@ function ii(e, i, t, a) {
130
748
  }
131
749
  }
132
750
  function c(s) {
133
- s.done ? o(s.value) : n(s.value).then(l, d);
751
+ s.done ? r(s.value) : n(s.value).then(l, d);
134
752
  }
135
- c((a = a.apply(e, i || [])).next());
753
+ c((a = a.apply(t, e || [])).next());
136
754
  });
137
755
  }
138
- const wt = /* @__PURE__ */ new Map([
756
+ const Ji = /* @__PURE__ */ new Map([
139
757
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
140
758
  ["1km", "application/vnd.1000minds.decision-model+xml"],
141
759
  ["3dml", "text/vnd.in3d.3dml"],
@@ -1338,133 +1956,133 @@ const wt = /* @__PURE__ */ new Map([
1338
1956
  ["zmm", "application/vnd.handheld-entertainment+xml"],
1339
1957
  ["zsh", "text/x-scriptzsh"]
1340
1958
  ]);
1341
- function ci(e, i, t) {
1342
- const a = kt(e), { webkitRelativePath: n } = e, o = typeof i == "string" ? i : typeof n == "string" && n.length > 0 ? n : `./${e.name}`;
1343
- return typeof a.path != "string" && le(a, "path", o), le(a, "relativePath", o), a;
1344
- }
1345
- function kt(e) {
1346
- const { name: i } = e;
1347
- if (i && i.lastIndexOf(".") !== -1 && !e.type) {
1348
- const a = i.split(".").pop().toLowerCase(), n = wt.get(a);
1349
- n && Object.defineProperty(e, "type", {
1959
+ function ge(t, e, i) {
1960
+ const a = Zi(t), { webkitRelativePath: n } = t, r = typeof e == "string" ? e : typeof n == "string" && n.length > 0 ? n : `./${t.name}`;
1961
+ return typeof a.path != "string" && Ot(a, "path", r), Ot(a, "relativePath", r), a;
1962
+ }
1963
+ function Zi(t) {
1964
+ const { name: e } = t;
1965
+ if (e && e.lastIndexOf(".") !== -1 && !t.type) {
1966
+ const a = e.split(".").pop().toLowerCase(), n = Ji.get(a);
1967
+ n && Object.defineProperty(t, "type", {
1350
1968
  value: n,
1351
1969
  writable: !1,
1352
1970
  configurable: !1,
1353
1971
  enumerable: !0
1354
1972
  });
1355
1973
  }
1356
- return e;
1974
+ return t;
1357
1975
  }
1358
- function le(e, i, t) {
1359
- Object.defineProperty(e, i, {
1360
- value: t,
1976
+ function Ot(t, e, i) {
1977
+ Object.defineProperty(t, e, {
1978
+ value: i,
1361
1979
  writable: !1,
1362
1980
  configurable: !1,
1363
1981
  enumerable: !0
1364
1982
  });
1365
1983
  }
1366
- const jt = [
1984
+ const Qi = [
1367
1985
  // Thumbnail cache files for macOS and Windows
1368
1986
  ".DS_Store",
1369
1987
  // macOs
1370
1988
  "Thumbs.db"
1371
1989
  // Windows
1372
1990
  ];
1373
- function Dt(e) {
1374
- return ii(this, void 0, void 0, function* () {
1375
- return Ei(e) && zt(e.dataTransfer) ? _t(e.dataTransfer, e.type) : Et(e) ? Ft(e) : Array.isArray(e) && e.every((i) => "getFile" in i && typeof i.getFile == "function") ? At(e) : [];
1991
+ function ea(t) {
1992
+ return de(this, void 0, void 0, function* () {
1993
+ return Ie(t) && ta(t.dataTransfer) ? oa(t.dataTransfer, t.type) : ia(t) ? aa(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? na(t) : [];
1376
1994
  });
1377
1995
  }
1378
- function zt(e) {
1379
- return Ei(e);
1996
+ function ta(t) {
1997
+ return Ie(t);
1380
1998
  }
1381
- function Et(e) {
1382
- return Ei(e) && Ei(e.target);
1999
+ function ia(t) {
2000
+ return Ie(t) && Ie(t.target);
1383
2001
  }
1384
- function Ei(e) {
1385
- return typeof e == "object" && e !== null;
2002
+ function Ie(t) {
2003
+ return typeof t == "object" && t !== null;
1386
2004
  }
1387
- function Ft(e) {
1388
- return Hi(e.target.files).map((i) => ci(i));
2005
+ function aa(t) {
2006
+ return it(t.target.files).map((e) => ge(e));
1389
2007
  }
1390
- function At(e) {
1391
- return ii(this, void 0, void 0, function* () {
1392
- return (yield Promise.all(e.map((t) => t.getFile()))).map((t) => ci(t));
2008
+ function na(t) {
2009
+ return de(this, void 0, void 0, function* () {
2010
+ return (yield Promise.all(t.map((i) => i.getFile()))).map((i) => ge(i));
1393
2011
  });
1394
2012
  }
1395
- function _t(e, i) {
1396
- return ii(this, void 0, void 0, function* () {
1397
- if (e.items) {
1398
- const t = Hi(e.items).filter((n) => n.kind === "file");
1399
- if (i !== "drop")
1400
- return t;
1401
- const a = yield Promise.all(t.map(Ot));
1402
- return ce(je(a));
2013
+ function oa(t, e) {
2014
+ return de(this, void 0, void 0, function* () {
2015
+ if (t.items) {
2016
+ const i = it(t.items).filter((n) => n.kind === "file");
2017
+ if (e !== "drop")
2018
+ return i;
2019
+ const a = yield Promise.all(i.map(ra));
2020
+ return Dt(Kt(a));
1403
2021
  }
1404
- return ce(Hi(e.files).map((t) => ci(t)));
2022
+ return Dt(it(t.files).map((i) => ge(i)));
1405
2023
  });
1406
2024
  }
1407
- function ce(e) {
1408
- return e.filter((i) => jt.indexOf(i.name) === -1);
2025
+ function Dt(t) {
2026
+ return t.filter((e) => Qi.indexOf(e.name) === -1);
1409
2027
  }
1410
- function Hi(e) {
1411
- if (e === null)
2028
+ function it(t) {
2029
+ if (t === null)
1412
2030
  return [];
1413
- const i = [];
1414
- for (let t = 0; t < e.length; t++) {
1415
- const a = e[t];
1416
- i.push(a);
2031
+ const e = [];
2032
+ for (let i = 0; i < t.length; i++) {
2033
+ const a = t[i];
2034
+ e.push(a);
1417
2035
  }
1418
- return i;
2036
+ return e;
1419
2037
  }
1420
- function Ot(e) {
1421
- if (typeof e.webkitGetAsEntry != "function")
1422
- return re(e);
1423
- const i = e.webkitGetAsEntry();
1424
- return i && i.isDirectory ? De(i) : re(e, i);
2038
+ function ra(t) {
2039
+ if (typeof t.webkitGetAsEntry != "function")
2040
+ return At(t);
2041
+ const e = t.webkitGetAsEntry();
2042
+ return e && e.isDirectory ? Ut(e) : At(t, e);
1425
2043
  }
1426
- function je(e) {
1427
- return e.reduce((i, t) => [
1428
- ...i,
1429
- ...Array.isArray(t) ? je(t) : [t]
2044
+ function Kt(t) {
2045
+ return t.reduce((e, i) => [
2046
+ ...e,
2047
+ ...Array.isArray(i) ? Kt(i) : [i]
1430
2048
  ], []);
1431
2049
  }
1432
- function re(e, i) {
1433
- return ii(this, void 0, void 0, function* () {
1434
- var t;
1435
- if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
1436
- const o = yield e.getAsFileSystemHandle();
1437
- if (o === null)
1438
- throw new Error(`${e} is not a File`);
1439
- if (o !== void 0) {
1440
- const p = yield o.getFile();
1441
- return p.handle = o, ci(p);
2050
+ function At(t, e) {
2051
+ return de(this, void 0, void 0, function* () {
2052
+ var i;
2053
+ if (globalThis.isSecureContext && typeof t.getAsFileSystemHandle == "function") {
2054
+ const r = yield t.getAsFileSystemHandle();
2055
+ if (r === null)
2056
+ throw new Error(`${t} is not a File`);
2057
+ if (r !== void 0) {
2058
+ const p = yield r.getFile();
2059
+ return p.handle = r, ge(p);
1442
2060
  }
1443
2061
  }
1444
- const a = e.getAsFile();
2062
+ const a = t.getAsFile();
1445
2063
  if (!a)
1446
- throw new Error(`${e} is not a File`);
1447
- return ci(a, (t = i?.fullPath) !== null && t !== void 0 ? t : void 0);
2064
+ throw new Error(`${t} is not a File`);
2065
+ return ge(a, (i = e?.fullPath) !== null && i !== void 0 ? i : void 0);
1448
2066
  });
1449
2067
  }
1450
- function Ct(e) {
1451
- return ii(this, void 0, void 0, function* () {
1452
- return e.isDirectory ? De(e) : It(e);
2068
+ function pa(t) {
2069
+ return de(this, void 0, void 0, function* () {
2070
+ return t.isDirectory ? Ut(t) : la(t);
1453
2071
  });
1454
2072
  }
1455
- function De(e) {
1456
- const i = e.createReader();
1457
- return new Promise((t, a) => {
2073
+ function Ut(t) {
2074
+ const e = t.createReader();
2075
+ return new Promise((i, a) => {
1458
2076
  const n = [];
1459
- function o() {
1460
- i.readEntries((p) => ii(this, void 0, void 0, function* () {
2077
+ function r() {
2078
+ e.readEntries((p) => de(this, void 0, void 0, function* () {
1461
2079
  if (p.length) {
1462
- const l = Promise.all(p.map(Ct));
1463
- n.push(l), o();
2080
+ const l = Promise.all(p.map(pa));
2081
+ n.push(l), r();
1464
2082
  } else
1465
2083
  try {
1466
2084
  const l = yield Promise.all(n);
1467
- t(l);
2085
+ i(l);
1468
2086
  } catch (l) {
1469
2087
  a(l);
1470
2088
  }
@@ -1472,349 +2090,349 @@ function De(e) {
1472
2090
  a(p);
1473
2091
  });
1474
2092
  }
1475
- o();
2093
+ r();
1476
2094
  });
1477
2095
  }
1478
- function It(e) {
1479
- return ii(this, void 0, void 0, function* () {
1480
- return new Promise((i, t) => {
1481
- e.file((a) => {
1482
- const n = ci(a, e.fullPath);
1483
- i(n);
2096
+ function la(t) {
2097
+ return de(this, void 0, void 0, function* () {
2098
+ return new Promise((e, i) => {
2099
+ t.file((a) => {
2100
+ const n = ge(a, t.fullPath);
2101
+ e(n);
1484
2102
  }, (a) => {
1485
- t(a);
2103
+ i(a);
1486
2104
  });
1487
2105
  });
1488
2106
  });
1489
2107
  }
1490
- var ji = {}, se;
1491
- function St() {
1492
- return se || (se = 1, ji.__esModule = !0, ji.default = function(e, i) {
1493
- if (e && i) {
1494
- var t = Array.isArray(i) ? i : i.split(",");
1495
- if (t.length === 0)
2108
+ var Se = {}, Ct;
2109
+ function ca() {
2110
+ return Ct || (Ct = 1, Se.__esModule = !0, Se.default = function(t, e) {
2111
+ if (t && e) {
2112
+ var i = Array.isArray(e) ? e : e.split(",");
2113
+ if (i.length === 0)
1496
2114
  return !0;
1497
- var a = e.name || "", n = (e.type || "").toLowerCase(), o = n.replace(/\/.*$/, "");
1498
- return t.some(function(p) {
2115
+ var a = t.name || "", n = (t.type || "").toLowerCase(), r = n.replace(/\/.*$/, "");
2116
+ return i.some(function(p) {
1499
2117
  var l = p.trim().toLowerCase();
1500
- return l.charAt(0) === "." ? a.toLowerCase().endsWith(l) : l.endsWith("/*") ? o === l.replace(/\/.*$/, "") : n === l;
2118
+ return l.charAt(0) === "." ? a.toLowerCase().endsWith(l) : l.endsWith("/*") ? r === l.replace(/\/.*$/, "") : n === l;
1501
2119
  });
1502
2120
  }
1503
2121
  return !0;
1504
- }), ji;
2122
+ }), Se;
1505
2123
  }
1506
- var Tt = St();
1507
- const Li = /* @__PURE__ */ nt(Tt);
1508
- function de(e) {
1509
- return Lt(e) || Rt(e) || Ee(e) || Pt();
2124
+ var sa = ca();
2125
+ const Je = /* @__PURE__ */ Yt(sa);
2126
+ function St(t) {
2127
+ return ua(t) || ma(t) || Gt(t) || da();
1510
2128
  }
1511
- function Pt() {
2129
+ function da() {
1512
2130
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1513
2131
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1514
2132
  }
1515
- function Rt(e) {
1516
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
2133
+ function ma(t) {
2134
+ if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
1517
2135
  }
1518
- function Lt(e) {
1519
- if (Array.isArray(e)) return Wi(e);
2136
+ function ua(t) {
2137
+ if (Array.isArray(t)) return at(t);
1520
2138
  }
1521
- function me(e, i) {
1522
- var t = Object.keys(e);
2139
+ function Rt(t, e) {
2140
+ var i = Object.keys(t);
1523
2141
  if (Object.getOwnPropertySymbols) {
1524
- var a = Object.getOwnPropertySymbols(e);
1525
- i && (a = a.filter(function(n) {
1526
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
1527
- })), t.push.apply(t, a);
2142
+ var a = Object.getOwnPropertySymbols(t);
2143
+ e && (a = a.filter(function(n) {
2144
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
2145
+ })), i.push.apply(i, a);
1528
2146
  }
1529
- return t;
2147
+ return i;
1530
2148
  }
1531
- function ue(e) {
1532
- for (var i = 1; i < arguments.length; i++) {
1533
- var t = arguments[i] != null ? arguments[i] : {};
1534
- i % 2 ? me(Object(t), !0).forEach(function(a) {
1535
- ze(e, a, t[a]);
1536
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : me(Object(t)).forEach(function(a) {
1537
- Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
2149
+ function Pt(t) {
2150
+ for (var e = 1; e < arguments.length; e++) {
2151
+ var i = arguments[e] != null ? arguments[e] : {};
2152
+ e % 2 ? Rt(Object(i), !0).forEach(function(a) {
2153
+ Vt(t, a, i[a]);
2154
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : Rt(Object(i)).forEach(function(a) {
2155
+ Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(i, a));
1538
2156
  });
1539
2157
  }
1540
- return e;
2158
+ return t;
1541
2159
  }
1542
- function ze(e, i, t) {
1543
- return i in e ? Object.defineProperty(e, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = t, e;
2160
+ function Vt(t, e, i) {
2161
+ return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
1544
2162
  }
1545
- function xi(e, i) {
1546
- return Mt(e) || $t(e, i) || Ee(e, i) || qt();
2163
+ function Ee(t, e) {
2164
+ return xa(t) || va(t, e) || Gt(t, e) || fa();
1547
2165
  }
1548
- function qt() {
2166
+ function fa() {
1549
2167
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1550
2168
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1551
2169
  }
1552
- function Ee(e, i) {
1553
- if (e) {
1554
- if (typeof e == "string") return Wi(e, i);
1555
- var t = Object.prototype.toString.call(e).slice(8, -1);
1556
- if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
1557
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Wi(e, i);
2170
+ function Gt(t, e) {
2171
+ if (t) {
2172
+ if (typeof t == "string") return at(t, e);
2173
+ var i = Object.prototype.toString.call(t).slice(8, -1);
2174
+ if (i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set") return Array.from(t);
2175
+ if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return at(t, e);
1558
2176
  }
1559
2177
  }
1560
- function Wi(e, i) {
1561
- (i == null || i > e.length) && (i = e.length);
1562
- for (var t = 0, a = new Array(i); t < i; t++)
1563
- a[t] = e[t];
2178
+ function at(t, e) {
2179
+ (e == null || e > t.length) && (e = t.length);
2180
+ for (var i = 0, a = new Array(e); i < e; i++)
2181
+ a[i] = t[i];
1564
2182
  return a;
1565
2183
  }
1566
- function $t(e, i) {
1567
- var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1568
- if (t != null) {
1569
- var a = [], n = !0, o = !1, p, l;
2184
+ function va(t, e) {
2185
+ var i = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2186
+ if (i != null) {
2187
+ var a = [], n = !0, r = !1, p, l;
1570
2188
  try {
1571
- for (t = t.call(e); !(n = (p = t.next()).done) && (a.push(p.value), !(i && a.length === i)); n = !0)
2189
+ for (i = i.call(t); !(n = (p = i.next()).done) && (a.push(p.value), !(e && a.length === e)); n = !0)
1572
2190
  ;
1573
2191
  } catch (d) {
1574
- o = !0, l = d;
2192
+ r = !0, l = d;
1575
2193
  } finally {
1576
2194
  try {
1577
- !n && t.return != null && t.return();
2195
+ !n && i.return != null && i.return();
1578
2196
  } finally {
1579
- if (o) throw l;
2197
+ if (r) throw l;
1580
2198
  }
1581
2199
  }
1582
2200
  return a;
1583
2201
  }
1584
2202
  }
1585
- function Mt(e) {
1586
- if (Array.isArray(e)) return e;
2203
+ function xa(t) {
2204
+ if (Array.isArray(t)) return t;
1587
2205
  }
1588
- var Bt = typeof Li == "function" ? Li : Li.default, Ht = "file-invalid-type", Wt = "file-too-large", Kt = "file-too-small", Nt = "too-many-files", Gt = function() {
1589
- var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), a = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
2206
+ var ga = typeof Je == "function" ? Je : Je.default, ha = "file-invalid-type", ya = "file-too-large", ba = "file-too-small", wa = "too-many-files", ka = function() {
2207
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = e.split(","), a = i.length > 1 ? "one of ".concat(i.join(", ")) : i[0];
1590
2208
  return {
1591
- code: Ht,
2209
+ code: ha,
1592
2210
  message: "File type must be ".concat(a)
1593
2211
  };
1594
- }, fe = function(i) {
2212
+ }, It = function(e) {
1595
2213
  return {
1596
- code: Wt,
1597
- message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
2214
+ code: ya,
2215
+ message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
1598
2216
  };
1599
- }, ve = function(i) {
2217
+ }, zt = function(e) {
1600
2218
  return {
1601
- code: Kt,
1602
- message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
2219
+ code: ba,
2220
+ message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
1603
2221
  };
1604
- }, Vt = {
1605
- code: Nt,
2222
+ }, ja = {
2223
+ code: wa,
1606
2224
  message: "Too many files"
1607
2225
  };
1608
- function Fe(e, i) {
1609
- var t = e.type === "application/x-moz-file" || Bt(e, i);
1610
- return [t, t ? null : Gt(i)];
1611
- }
1612
- function Ae(e, i, t) {
1613
- if (Q(e.size))
1614
- if (Q(i) && Q(t)) {
1615
- if (e.size > t) return [!1, fe(t)];
1616
- if (e.size < i) return [!1, ve(i)];
2226
+ function Xt(t, e) {
2227
+ var i = t.type === "application/x-moz-file" || ga(t, e);
2228
+ return [i, i ? null : ka(e)];
2229
+ }
2230
+ function Jt(t, e, i) {
2231
+ if (se(t.size))
2232
+ if (se(e) && se(i)) {
2233
+ if (t.size > i) return [!1, It(i)];
2234
+ if (t.size < e) return [!1, zt(e)];
1617
2235
  } else {
1618
- if (Q(i) && e.size < i) return [!1, ve(i)];
1619
- if (Q(t) && e.size > t) return [!1, fe(t)];
2236
+ if (se(e) && t.size < e) return [!1, zt(e)];
2237
+ if (se(i) && t.size > i) return [!1, It(i)];
1620
2238
  }
1621
2239
  return [!0, null];
1622
2240
  }
1623
- function Q(e) {
1624
- return e != null;
2241
+ function se(t) {
2242
+ return t != null;
1625
2243
  }
1626
- function Yt(e) {
1627
- var i = e.files, t = e.accept, a = e.minSize, n = e.maxSize, o = e.multiple, p = e.maxFiles, l = e.validator;
1628
- return !o && i.length > 1 || o && p >= 1 && i.length > p ? !1 : i.every(function(d) {
1629
- var c = Fe(d, t), s = xi(c, 1), m = s[0], f = Ae(d, a, n), g = xi(f, 1), x = g[0], h = l ? l(d) : null;
1630
- return m && x && !h;
2244
+ function Ea(t) {
2245
+ var e = t.files, i = t.accept, a = t.minSize, n = t.maxSize, r = t.multiple, p = t.maxFiles, l = t.validator;
2246
+ return !r && e.length > 1 || r && p >= 1 && e.length > p ? !1 : e.every(function(d) {
2247
+ var c = Xt(d, i), s = Ee(c, 1), m = s[0], f = Jt(d, a, n), y = Ee(f, 1), h = y[0], o = l ? l(d) : null;
2248
+ return m && h && !o;
1631
2249
  });
1632
2250
  }
1633
- function Fi(e) {
1634
- return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
2251
+ function ze(t) {
2252
+ return typeof t.isPropagationStopped == "function" ? t.isPropagationStopped() : typeof t.cancelBubble < "u" ? t.cancelBubble : !1;
1635
2253
  }
1636
- function Di(e) {
1637
- return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(i) {
1638
- return i === "Files" || i === "application/x-moz-file";
1639
- }) : !!e.target && !!e.target.files;
2254
+ function Re(t) {
2255
+ return t.dataTransfer ? Array.prototype.some.call(t.dataTransfer.types, function(e) {
2256
+ return e === "Files" || e === "application/x-moz-file";
2257
+ }) : !!t.target && !!t.target.files;
1640
2258
  }
1641
- function xe(e) {
1642
- e.preventDefault();
2259
+ function Ft(t) {
2260
+ t.preventDefault();
1643
2261
  }
1644
- function Ut(e) {
1645
- return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
2262
+ function Ta(t) {
2263
+ return t.indexOf("MSIE") !== -1 || t.indexOf("Trident/") !== -1;
1646
2264
  }
1647
- function Xt(e) {
1648
- return e.indexOf("Edge/") !== -1;
2265
+ function _a(t) {
2266
+ return t.indexOf("Edge/") !== -1;
1649
2267
  }
1650
- function Jt() {
1651
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1652
- return Ut(e) || Xt(e);
2268
+ function Oa() {
2269
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
2270
+ return Ta(t) || _a(t);
1653
2271
  }
1654
- function W() {
1655
- for (var e = arguments.length, i = new Array(e), t = 0; t < e; t++)
1656
- i[t] = arguments[t];
2272
+ function re() {
2273
+ for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
2274
+ e[i] = arguments[i];
1657
2275
  return function(a) {
1658
- for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), p = 1; p < n; p++)
1659
- o[p - 1] = arguments[p];
1660
- return i.some(function(l) {
1661
- return !Fi(a) && l && l.apply(void 0, [a].concat(o)), Fi(a);
2276
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), p = 1; p < n; p++)
2277
+ r[p - 1] = arguments[p];
2278
+ return e.some(function(l) {
2279
+ return !ze(a) && l && l.apply(void 0, [a].concat(r)), ze(a);
1662
2280
  });
1663
2281
  };
1664
2282
  }
1665
- function Zt() {
2283
+ function Da() {
1666
2284
  return "showOpenFilePicker" in window;
1667
2285
  }
1668
- function Qt(e) {
1669
- if (Q(e)) {
1670
- var i = Object.entries(e).filter(function(t) {
1671
- var a = xi(t, 2), n = a[0], o = a[1], p = !0;
1672
- return _e(n) || (console.warn('Skipped "'.concat(n, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), p = !1), (!Array.isArray(o) || !o.every(Oe)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), p = !1), p;
1673
- }).reduce(function(t, a) {
1674
- var n = xi(a, 2), o = n[0], p = n[1];
1675
- return ue(ue({}, t), {}, ze({}, o, p));
2286
+ function Aa(t) {
2287
+ if (se(t)) {
2288
+ var e = Object.entries(t).filter(function(i) {
2289
+ var a = Ee(i, 2), n = a[0], r = a[1], p = !0;
2290
+ return Zt(n) || (console.warn('Skipped "'.concat(n, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), p = !1), (!Array.isArray(r) || !r.every(Qt)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), p = !1), p;
2291
+ }).reduce(function(i, a) {
2292
+ var n = Ee(a, 2), r = n[0], p = n[1];
2293
+ return Pt(Pt({}, i), {}, Vt({}, r, p));
1676
2294
  }, {});
1677
2295
  return [{
1678
2296
  // description is required due to https://crbug.com/1264708
1679
2297
  description: "Files",
1680
- accept: i
2298
+ accept: e
1681
2299
  }];
1682
2300
  }
1683
- return e;
2301
+ return t;
1684
2302
  }
1685
- function ia(e) {
1686
- if (Q(e))
1687
- return Object.entries(e).reduce(function(i, t) {
1688
- var a = xi(t, 2), n = a[0], o = a[1];
1689
- return [].concat(de(i), [n], de(o));
1690
- }, []).filter(function(i) {
1691
- return _e(i) || Oe(i);
2303
+ function Ca(t) {
2304
+ if (se(t))
2305
+ return Object.entries(t).reduce(function(e, i) {
2306
+ var a = Ee(i, 2), n = a[0], r = a[1];
2307
+ return [].concat(St(e), [n], St(r));
2308
+ }, []).filter(function(e) {
2309
+ return Zt(e) || Qt(e);
1692
2310
  }).join(",");
1693
2311
  }
1694
- function ea(e) {
1695
- return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
2312
+ function Sa(t) {
2313
+ return t instanceof DOMException && (t.name === "AbortError" || t.code === t.ABORT_ERR);
1696
2314
  }
1697
- function ta(e) {
1698
- return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
2315
+ function Ra(t) {
2316
+ return t instanceof DOMException && (t.name === "SecurityError" || t.code === t.SECURITY_ERR);
1699
2317
  }
1700
- function _e(e) {
1701
- return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
2318
+ function Zt(t) {
2319
+ return t === "audio/*" || t === "video/*" || t === "image/*" || t === "text/*" || t === "application/*" || /\w+\/[-+.\w]+/g.test(t);
1702
2320
  }
1703
- function Oe(e) {
1704
- return /^.*\.[\w]+$/.test(e);
2321
+ function Qt(t) {
2322
+ return /^.*\.[\w]+$/.test(t);
1705
2323
  }
1706
- var aa = ["children"], na = ["open"], oa = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], pa = ["refKey", "onChange", "onClick"];
1707
- function la(e) {
1708
- return sa(e) || ra(e) || Ce(e) || ca();
2324
+ var Pa = ["children"], Ia = ["open"], za = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Fa = ["refKey", "onChange", "onClick"];
2325
+ function qa(t) {
2326
+ return Ma(t) || $a(t) || ei(t) || La();
1709
2327
  }
1710
- function ca() {
2328
+ function La() {
1711
2329
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1712
2330
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1713
2331
  }
1714
- function ra(e) {
1715
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
2332
+ function $a(t) {
2333
+ if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
1716
2334
  }
1717
- function sa(e) {
1718
- if (Array.isArray(e)) return Ki(e);
2335
+ function Ma(t) {
2336
+ if (Array.isArray(t)) return nt(t);
1719
2337
  }
1720
- function qi(e, i) {
1721
- return ua(e) || ma(e, i) || Ce(e, i) || da();
2338
+ function Ze(t, e) {
2339
+ return Ba(t) || Wa(t, e) || ei(t, e) || Ya();
1722
2340
  }
1723
- function da() {
2341
+ function Ya() {
1724
2342
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1725
2343
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1726
2344
  }
1727
- function Ce(e, i) {
1728
- if (e) {
1729
- if (typeof e == "string") return Ki(e, i);
1730
- var t = Object.prototype.toString.call(e).slice(8, -1);
1731
- if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
1732
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ki(e, i);
2345
+ function ei(t, e) {
2346
+ if (t) {
2347
+ if (typeof t == "string") return nt(t, e);
2348
+ var i = Object.prototype.toString.call(t).slice(8, -1);
2349
+ if (i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set") return Array.from(t);
2350
+ if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return nt(t, e);
1733
2351
  }
1734
2352
  }
1735
- function Ki(e, i) {
1736
- (i == null || i > e.length) && (i = e.length);
1737
- for (var t = 0, a = new Array(i); t < i; t++)
1738
- a[t] = e[t];
2353
+ function nt(t, e) {
2354
+ (e == null || e > t.length) && (e = t.length);
2355
+ for (var i = 0, a = new Array(e); i < e; i++)
2356
+ a[i] = t[i];
1739
2357
  return a;
1740
2358
  }
1741
- function ma(e, i) {
1742
- var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1743
- if (t != null) {
1744
- var a = [], n = !0, o = !1, p, l;
2359
+ function Wa(t, e) {
2360
+ var i = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2361
+ if (i != null) {
2362
+ var a = [], n = !0, r = !1, p, l;
1745
2363
  try {
1746
- for (t = t.call(e); !(n = (p = t.next()).done) && (a.push(p.value), !(i && a.length === i)); n = !0)
2364
+ for (i = i.call(t); !(n = (p = i.next()).done) && (a.push(p.value), !(e && a.length === e)); n = !0)
1747
2365
  ;
1748
2366
  } catch (d) {
1749
- o = !0, l = d;
2367
+ r = !0, l = d;
1750
2368
  } finally {
1751
2369
  try {
1752
- !n && t.return != null && t.return();
2370
+ !n && i.return != null && i.return();
1753
2371
  } finally {
1754
- if (o) throw l;
2372
+ if (r) throw l;
1755
2373
  }
1756
2374
  }
1757
2375
  return a;
1758
2376
  }
1759
2377
  }
1760
- function ua(e) {
1761
- if (Array.isArray(e)) return e;
2378
+ function Ba(t) {
2379
+ if (Array.isArray(t)) return t;
1762
2380
  }
1763
- function ge(e, i) {
1764
- var t = Object.keys(e);
2381
+ function qt(t, e) {
2382
+ var i = Object.keys(t);
1765
2383
  if (Object.getOwnPropertySymbols) {
1766
- var a = Object.getOwnPropertySymbols(e);
1767
- i && (a = a.filter(function(n) {
1768
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
1769
- })), t.push.apply(t, a);
2384
+ var a = Object.getOwnPropertySymbols(t);
2385
+ e && (a = a.filter(function(n) {
2386
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
2387
+ })), i.push.apply(i, a);
1770
2388
  }
1771
- return t;
2389
+ return i;
1772
2390
  }
1773
- function z(e) {
1774
- for (var i = 1; i < arguments.length; i++) {
1775
- var t = arguments[i] != null ? arguments[i] : {};
1776
- i % 2 ? ge(Object(t), !0).forEach(function(a) {
1777
- Ni(e, a, t[a]);
1778
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ge(Object(t)).forEach(function(a) {
1779
- Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
2391
+ function M(t) {
2392
+ for (var e = 1; e < arguments.length; e++) {
2393
+ var i = arguments[e] != null ? arguments[e] : {};
2394
+ e % 2 ? qt(Object(i), !0).forEach(function(a) {
2395
+ ot(t, a, i[a]);
2396
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : qt(Object(i)).forEach(function(a) {
2397
+ Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(i, a));
1780
2398
  });
1781
2399
  }
1782
- return e;
2400
+ return t;
1783
2401
  }
1784
- function Ni(e, i, t) {
1785
- return i in e ? Object.defineProperty(e, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = t, e;
2402
+ function ot(t, e, i) {
2403
+ return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
1786
2404
  }
1787
- function Ai(e, i) {
1788
- if (e == null) return {};
1789
- var t = fa(e, i), a, n;
2405
+ function Fe(t, e) {
2406
+ if (t == null) return {};
2407
+ var i = Na(t, e), a, n;
1790
2408
  if (Object.getOwnPropertySymbols) {
1791
- var o = Object.getOwnPropertySymbols(e);
1792
- for (n = 0; n < o.length; n++)
1793
- a = o[n], !(i.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (t[a] = e[a]);
2409
+ var r = Object.getOwnPropertySymbols(t);
2410
+ for (n = 0; n < r.length; n++)
2411
+ a = r[n], !(e.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(t, a) && (i[a] = t[a]);
1794
2412
  }
1795
- return t;
2413
+ return i;
1796
2414
  }
1797
- function fa(e, i) {
1798
- if (e == null) return {};
1799
- var t = {}, a = Object.keys(e), n, o;
1800
- for (o = 0; o < a.length; o++)
1801
- n = a[o], !(i.indexOf(n) >= 0) && (t[n] = e[n]);
1802
- return t;
2415
+ function Na(t, e) {
2416
+ if (t == null) return {};
2417
+ var i = {}, a = Object.keys(t), n, r;
2418
+ for (r = 0; r < a.length; r++)
2419
+ n = a[r], !(e.indexOf(n) >= 0) && (i[n] = t[n]);
2420
+ return i;
1803
2421
  }
1804
- var Ji = /* @__PURE__ */ Qe(function(e, i) {
1805
- var t = e.children, a = Ai(e, aa), n = Se(a), o = n.open, p = Ai(n, na);
1806
- return it(i, function() {
2422
+ var mt = /* @__PURE__ */ ki(function(t, e) {
2423
+ var i = t.children, a = Fe(t, Pa), n = ii(a), r = n.open, p = Fe(n, Ia);
2424
+ return ji(e, function() {
1807
2425
  return {
1808
- open: o
2426
+ open: r
1809
2427
  };
1810
- }, [o]), /* @__PURE__ */ ri.createElement(Yi, null, t(z(z({}, p), {}, {
1811
- open: o
2428
+ }, [r]), /* @__PURE__ */ he.createElement(ct, null, i(M(M({}, p), {}, {
2429
+ open: r
1812
2430
  })));
1813
2431
  });
1814
- Ji.displayName = "Dropzone";
1815
- var Ie = {
2432
+ mt.displayName = "Dropzone";
2433
+ var ti = {
1816
2434
  disabled: !1,
1817
- getFilesFromEvent: Dt,
2435
+ getFilesFromEvent: ea,
1818
2436
  maxSize: 1 / 0,
1819
2437
  minSize: 0,
1820
2438
  multiple: !0,
@@ -1828,8 +2446,8 @@ var Ie = {
1828
2446
  useFsAccessApi: !1,
1829
2447
  autoFocus: !1
1830
2448
  };
1831
- Ji.defaultProps = Ie;
1832
- Ji.propTypes = {
2449
+ mt.defaultProps = ti;
2450
+ mt.propTypes = {
1833
2451
  /**
1834
2452
  * Render function that exposes the dropzone state and prop getter fns
1835
2453
  *
@@ -1845,7 +2463,7 @@ Ji.propTypes = {
1845
2463
  * @param {File[]} params.acceptedFiles Accepted files
1846
2464
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
1847
2465
  */
1848
- children: j.func,
2466
+ children: L.func,
1849
2467
  /**
1850
2468
  * Set accepted file types.
1851
2469
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -1853,90 +2471,90 @@ Ji.propTypes = {
1853
2471
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
1854
2472
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
1855
2473
  */
1856
- accept: j.objectOf(j.arrayOf(j.string)),
2474
+ accept: L.objectOf(L.arrayOf(L.string)),
1857
2475
  /**
1858
2476
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
1859
2477
  */
1860
- multiple: j.bool,
2478
+ multiple: L.bool,
1861
2479
  /**
1862
2480
  * If false, allow dropped items to take over the current browser window
1863
2481
  */
1864
- preventDropOnDocument: j.bool,
2482
+ preventDropOnDocument: L.bool,
1865
2483
  /**
1866
2484
  * If true, disables click to open the native file selection dialog
1867
2485
  */
1868
- noClick: j.bool,
2486
+ noClick: L.bool,
1869
2487
  /**
1870
2488
  * If true, disables SPACE/ENTER to open the native file selection dialog.
1871
2489
  * Note that it also stops tracking the focus state.
1872
2490
  */
1873
- noKeyboard: j.bool,
2491
+ noKeyboard: L.bool,
1874
2492
  /**
1875
2493
  * If true, disables drag 'n' drop
1876
2494
  */
1877
- noDrag: j.bool,
2495
+ noDrag: L.bool,
1878
2496
  /**
1879
2497
  * If true, stops drag event propagation to parents
1880
2498
  */
1881
- noDragEventsBubbling: j.bool,
2499
+ noDragEventsBubbling: L.bool,
1882
2500
  /**
1883
2501
  * Minimum file size (in bytes)
1884
2502
  */
1885
- minSize: j.number,
2503
+ minSize: L.number,
1886
2504
  /**
1887
2505
  * Maximum file size (in bytes)
1888
2506
  */
1889
- maxSize: j.number,
2507
+ maxSize: L.number,
1890
2508
  /**
1891
2509
  * Maximum accepted number of files
1892
2510
  * The default value is 0 which means there is no limitation to how many files are accepted.
1893
2511
  */
1894
- maxFiles: j.number,
2512
+ maxFiles: L.number,
1895
2513
  /**
1896
2514
  * Enable/disable the dropzone
1897
2515
  */
1898
- disabled: j.bool,
2516
+ disabled: L.bool,
1899
2517
  /**
1900
2518
  * Use this to provide a custom file aggregator
1901
2519
  *
1902
2520
  * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
1903
2521
  */
1904
- getFilesFromEvent: j.func,
2522
+ getFilesFromEvent: L.func,
1905
2523
  /**
1906
2524
  * Cb for when closing the file dialog with no selection
1907
2525
  */
1908
- onFileDialogCancel: j.func,
2526
+ onFileDialogCancel: L.func,
1909
2527
  /**
1910
2528
  * Cb for when opening the file dialog
1911
2529
  */
1912
- onFileDialogOpen: j.func,
2530
+ onFileDialogOpen: L.func,
1913
2531
  /**
1914
2532
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
1915
2533
  * to open the file picker instead of using an `<input type="file">` click event.
1916
2534
  */
1917
- useFsAccessApi: j.bool,
2535
+ useFsAccessApi: L.bool,
1918
2536
  /**
1919
2537
  * Set to true to focus the root element on render
1920
2538
  */
1921
- autoFocus: j.bool,
2539
+ autoFocus: L.bool,
1922
2540
  /**
1923
2541
  * Cb for when the `dragenter` event occurs.
1924
2542
  *
1925
2543
  * @param {DragEvent} event
1926
2544
  */
1927
- onDragEnter: j.func,
2545
+ onDragEnter: L.func,
1928
2546
  /**
1929
2547
  * Cb for when the `dragleave` event occurs
1930
2548
  *
1931
2549
  * @param {DragEvent} event
1932
2550
  */
1933
- onDragLeave: j.func,
2551
+ onDragLeave: L.func,
1934
2552
  /**
1935
2553
  * Cb for when the `dragover` event occurs
1936
2554
  *
1937
2555
  * @param {DragEvent} event
1938
2556
  */
1939
- onDragOver: j.func,
2557
+ onDragOver: L.func,
1940
2558
  /**
1941
2559
  * Cb for when the `drop` event occurs.
1942
2560
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -1967,7 +2585,7 @@ Ji.propTypes = {
1967
2585
  * @param {FileRejection[]} fileRejections
1968
2586
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1969
2587
  */
1970
- onDrop: j.func,
2588
+ onDrop: L.func,
1971
2589
  /**
1972
2590
  * Cb for when the `drop` event occurs.
1973
2591
  * Note that if no files are accepted, this callback is not invoked.
@@ -1975,7 +2593,7 @@ Ji.propTypes = {
1975
2593
  * @param {File[]} files
1976
2594
  * @param {(DragEvent|Event)} event
1977
2595
  */
1978
- onDropAccepted: j.func,
2596
+ onDropAccepted: L.func,
1979
2597
  /**
1980
2598
  * Cb for when the `drop` event occurs.
1981
2599
  * Note that if no files are rejected, this callback is not invoked.
@@ -1983,21 +2601,21 @@ Ji.propTypes = {
1983
2601
  * @param {FileRejection[]} fileRejections
1984
2602
  * @param {(DragEvent|Event)} event
1985
2603
  */
1986
- onDropRejected: j.func,
2604
+ onDropRejected: L.func,
1987
2605
  /**
1988
2606
  * Cb for when there's some error from any of the promises.
1989
2607
  *
1990
2608
  * @param {Error} error
1991
2609
  */
1992
- onError: j.func,
2610
+ onError: L.func,
1993
2611
  /**
1994
2612
  * Custom validation function. It must return null if there's no errors.
1995
2613
  * @param {File} file
1996
2614
  * @returns {FileError|FileError[]|null}
1997
2615
  */
1998
- validator: j.func
2616
+ validator: L.func
1999
2617
  };
2000
- var Gi = {
2618
+ var rt = {
2001
2619
  isFocused: !1,
2002
2620
  isFileDialogActive: !1,
2003
2621
  isDragActive: !1,
@@ -2006,187 +2624,187 @@ var Gi = {
2006
2624
  acceptedFiles: [],
2007
2625
  fileRejections: []
2008
2626
  };
2009
- function Se() {
2010
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = z(z({}, Ie), e), t = i.accept, a = i.disabled, n = i.getFilesFromEvent, o = i.maxSize, p = i.minSize, l = i.multiple, d = i.maxFiles, c = i.onDragEnter, s = i.onDragLeave, m = i.onDragOver, f = i.onDrop, g = i.onDropAccepted, x = i.onDropRejected, h = i.onFileDialogCancel, y = i.onFileDialogOpen, w = i.useFsAccessApi, b = i.autoFocus, k = i.preventDropOnDocument, D = i.noClick, A = i.noKeyboard, C = i.noDrag, I = i.noDragEventsBubbling, P = i.onError, R = i.validator, $ = oi(function() {
2011
- return ia(t);
2012
- }, [t]), G = oi(function() {
2013
- return Qt(t);
2014
- }, [t]), X = oi(function() {
2015
- return typeof y == "function" ? y : he;
2016
- }, [y]), V = oi(function() {
2017
- return typeof h == "function" ? h : he;
2018
- }, [h]), F = ui(null), T = ui(null), di = Ze(va, Gi), ei = qi(di, 2), H = ei[0], _ = ei[1], Y = H.isFocused, K = H.isFileDialogActive, B = ui(typeof window < "u" && window.isSecureContext && w && Zt()), J = function() {
2019
- !B.current && K && setTimeout(function() {
2020
- if (T.current) {
2021
- var v = T.current.files;
2022
- v.length || (_({
2627
+ function ii() {
2628
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = M(M({}, ti), t), i = e.accept, a = e.disabled, n = e.getFilesFromEvent, r = e.maxSize, p = e.minSize, l = e.multiple, d = e.maxFiles, c = e.onDragEnter, s = e.onDragLeave, m = e.onDragOver, f = e.onDrop, y = e.onDropAccepted, h = e.onDropRejected, o = e.onFileDialogCancel, b = e.onFileDialogOpen, _ = e.useFsAccessApi, D = e.autoFocus, R = e.preventDropOnDocument, F = e.noClick, $ = e.noKeyboard, N = e.noDrag, H = e.noDragEventsBubbling, G = e.onError, J = e.validator, Z = fe(function() {
2629
+ return Ca(i);
2630
+ }, [i]), ne = fe(function() {
2631
+ return Aa(i);
2632
+ }, [i]), pe = fe(function() {
2633
+ return typeof b == "function" ? b : Lt;
2634
+ }, [b]), oe = fe(function() {
2635
+ return typeof o == "function" ? o : Lt;
2636
+ }, [o]), q = we(null), U = we(null), Q = wi(Ha, rt), te = Ze(Q, 2), ie = te[0], W = te[1], u = ie.isFocused, x = ie.isFileDialogActive, j = we(typeof window < "u" && window.isSecureContext && _ && Da()), T = function() {
2637
+ !j.current && x && setTimeout(function() {
2638
+ if (U.current) {
2639
+ var k = U.current.files;
2640
+ k.length || (W({
2023
2641
  type: "closeDialog"
2024
- }), V());
2642
+ }), oe());
2025
2643
  }
2026
2644
  }, 300);
2027
2645
  };
2028
- pi(function() {
2029
- return window.addEventListener("focus", J, !1), function() {
2030
- window.removeEventListener("focus", J, !1);
2646
+ ve(function() {
2647
+ return window.addEventListener("focus", T, !1), function() {
2648
+ window.removeEventListener("focus", T, !1);
2031
2649
  };
2032
- }, [T, K, V, B]);
2033
- var N = ui([]), Zi = function(v) {
2034
- F.current && F.current.contains(v.target) || (v.preventDefault(), N.current = []);
2650
+ }, [U, x, oe, j]);
2651
+ var w = we([]), C = function(k) {
2652
+ q.current && q.current.contains(k.target) || (k.preventDefault(), w.current = []);
2035
2653
  };
2036
- pi(function() {
2037
- return k && (document.addEventListener("dragover", xe, !1), document.addEventListener("drop", Zi, !1)), function() {
2038
- k && (document.removeEventListener("dragover", xe), document.removeEventListener("drop", Zi));
2654
+ ve(function() {
2655
+ return R && (document.addEventListener("dragover", Ft, !1), document.addEventListener("drop", C, !1)), function() {
2656
+ R && (document.removeEventListener("dragover", Ft), document.removeEventListener("drop", C));
2039
2657
  };
2040
- }, [F, k]), pi(function() {
2041
- return !a && b && F.current && F.current.focus(), function() {
2658
+ }, [q, R]), ve(function() {
2659
+ return !a && D && q.current && q.current.focus(), function() {
2042
2660
  };
2043
- }, [F, b, a]);
2044
- var Z = M(function(r) {
2045
- P ? P(r) : console.error(r);
2046
- }, [P]), Qi = M(function(r) {
2047
- r.preventDefault(), r.persist(), wi(r), N.current = [].concat(la(N.current), [r.target]), Di(r) && Promise.resolve(n(r)).then(function(v) {
2048
- if (!(Fi(r) && !I)) {
2049
- var O = v.length, S = O > 0 && Yt({
2050
- files: v,
2051
- accept: $,
2661
+ }, [q, D, a]);
2662
+ var E = ae(function(g) {
2663
+ G ? G(g) : console.error(g);
2664
+ }, [G]), O = ae(function(g) {
2665
+ g.preventDefault(), g.persist(), Oe(g), w.current = [].concat(qa(w.current), [g.target]), Re(g) && Promise.resolve(n(g)).then(function(k) {
2666
+ if (!(ze(g) && !H)) {
2667
+ var K = k.length, V = K > 0 && Ea({
2668
+ files: k,
2669
+ accept: Z,
2052
2670
  minSize: p,
2053
- maxSize: o,
2671
+ maxSize: r,
2054
2672
  multiple: l,
2055
2673
  maxFiles: d,
2056
- validator: R
2057
- }), L = O > 0 && !S;
2058
- _({
2059
- isDragAccept: S,
2060
- isDragReject: L,
2674
+ validator: J
2675
+ }), ee = K > 0 && !V;
2676
+ W({
2677
+ isDragAccept: V,
2678
+ isDragReject: ee,
2061
2679
  isDragActive: !0,
2062
2680
  type: "setDraggedFiles"
2063
- }), c && c(r);
2681
+ }), c && c(g);
2064
2682
  }
2065
- }).catch(function(v) {
2066
- return Z(v);
2683
+ }).catch(function(k) {
2684
+ return E(k);
2067
2685
  });
2068
- }, [n, c, Z, I, $, p, o, l, d, R]), ie = M(function(r) {
2069
- r.preventDefault(), r.persist(), wi(r);
2070
- var v = Di(r);
2071
- if (v && r.dataTransfer)
2686
+ }, [n, c, E, H, Z, p, r, l, d, J]), S = ae(function(g) {
2687
+ g.preventDefault(), g.persist(), Oe(g);
2688
+ var k = Re(g);
2689
+ if (k && g.dataTransfer)
2072
2690
  try {
2073
- r.dataTransfer.dropEffect = "copy";
2691
+ g.dataTransfer.dropEffect = "copy";
2074
2692
  } catch {
2075
2693
  }
2076
- return v && m && m(r), !1;
2077
- }, [m, I]), ee = M(function(r) {
2078
- r.preventDefault(), r.persist(), wi(r);
2079
- var v = N.current.filter(function(S) {
2080
- return F.current && F.current.contains(S);
2081
- }), O = v.indexOf(r.target);
2082
- O !== -1 && v.splice(O, 1), N.current = v, !(v.length > 0) && (_({
2694
+ return k && m && m(g), !1;
2695
+ }, [m, H]), P = ae(function(g) {
2696
+ g.preventDefault(), g.persist(), Oe(g);
2697
+ var k = w.current.filter(function(V) {
2698
+ return q.current && q.current.contains(V);
2699
+ }), K = k.indexOf(g.target);
2700
+ K !== -1 && k.splice(K, 1), w.current = k, !(k.length > 0) && (W({
2083
2701
  type: "setDraggedFiles",
2084
2702
  isDragActive: !1,
2085
2703
  isDragAccept: !1,
2086
2704
  isDragReject: !1
2087
- }), Di(r) && s && s(r));
2088
- }, [F, s, I]), hi = M(function(r, v) {
2089
- var O = [], S = [];
2090
- r.forEach(function(L) {
2091
- var mi = Fe(L, $), ni = qi(mi, 2), Oi = ni[0], Ci = ni[1], Ii = Ae(L, p, o), ki = qi(Ii, 2), Si = ki[0], Ti = ki[1], Pi = R ? R(L) : null;
2092
- if (Oi && Si && !Pi)
2093
- O.push(L);
2705
+ }), Re(g) && s && s(g));
2706
+ }, [q, s, H]), A = ae(function(g, k) {
2707
+ var K = [], V = [];
2708
+ g.forEach(function(ee) {
2709
+ var be = Xt(ee, Z), ue = Ze(be, 2), Le = ue[0], $e = ue[1], Me = Jt(ee, p, r), De = Ze(Me, 2), Ye = De[0], We = De[1], Be = J ? J(ee) : null;
2710
+ if (Le && Ye && !Be)
2711
+ K.push(ee);
2094
2712
  else {
2095
- var Ri = [Ci, Ti];
2096
- Pi && (Ri = Ri.concat(Pi)), S.push({
2097
- file: L,
2098
- errors: Ri.filter(function($e) {
2099
- return $e;
2713
+ var Ne = [$e, We];
2714
+ Be && (Ne = Ne.concat(Be)), V.push({
2715
+ file: ee,
2716
+ errors: Ne.filter(function(li) {
2717
+ return li;
2100
2718
  })
2101
2719
  });
2102
2720
  }
2103
- }), (!l && O.length > 1 || l && d >= 1 && O.length > d) && (O.forEach(function(L) {
2104
- S.push({
2105
- file: L,
2106
- errors: [Vt]
2721
+ }), (!l && K.length > 1 || l && d >= 1 && K.length > d) && (K.forEach(function(ee) {
2722
+ V.push({
2723
+ file: ee,
2724
+ errors: [ja]
2107
2725
  });
2108
- }), O.splice(0)), _({
2109
- acceptedFiles: O,
2110
- fileRejections: S,
2111
- isDragReject: S.length > 0,
2726
+ }), K.splice(0)), W({
2727
+ acceptedFiles: K,
2728
+ fileRejections: V,
2729
+ isDragReject: V.length > 0,
2112
2730
  type: "setFiles"
2113
- }), f && f(O, S, v), S.length > 0 && x && x(S, v), O.length > 0 && g && g(O, v);
2114
- }, [_, l, $, p, o, d, f, g, x, R]), bi = M(function(r) {
2115
- r.preventDefault(), r.persist(), wi(r), N.current = [], Di(r) && Promise.resolve(n(r)).then(function(v) {
2116
- Fi(r) && !I || hi(v, r);
2117
- }).catch(function(v) {
2118
- return Z(v);
2119
- }), _({
2731
+ }), f && f(K, V, k), V.length > 0 && h && h(V, k), K.length > 0 && y && y(K, k);
2732
+ }, [W, l, Z, p, r, d, f, y, h, J]), X = ae(function(g) {
2733
+ g.preventDefault(), g.persist(), Oe(g), w.current = [], Re(g) && Promise.resolve(n(g)).then(function(k) {
2734
+ ze(g) && !H || A(k, g);
2735
+ }).catch(function(k) {
2736
+ return E(k);
2737
+ }), W({
2120
2738
  type: "reset"
2121
2739
  });
2122
- }, [n, hi, Z, I]), ti = M(function() {
2123
- if (B.current) {
2124
- _({
2740
+ }, [n, A, E, H]), B = ae(function() {
2741
+ if (j.current) {
2742
+ W({
2125
2743
  type: "openDialog"
2126
- }), X();
2127
- var r = {
2744
+ }), pe();
2745
+ var g = {
2128
2746
  multiple: l,
2129
- types: G
2747
+ types: ne
2130
2748
  };
2131
- window.showOpenFilePicker(r).then(function(v) {
2132
- return n(v);
2133
- }).then(function(v) {
2134
- hi(v, null), _({
2749
+ window.showOpenFilePicker(g).then(function(k) {
2750
+ return n(k);
2751
+ }).then(function(k) {
2752
+ A(k, null), W({
2135
2753
  type: "closeDialog"
2136
2754
  });
2137
- }).catch(function(v) {
2138
- ea(v) ? (V(v), _({
2755
+ }).catch(function(k) {
2756
+ Sa(k) ? (oe(k), W({
2139
2757
  type: "closeDialog"
2140
- })) : ta(v) ? (B.current = !1, T.current ? (T.current.value = null, T.current.click()) : Z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : Z(v);
2758
+ })) : Ra(k) ? (j.current = !1, U.current ? (U.current.value = null, U.current.click()) : E(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : E(k);
2141
2759
  });
2142
2760
  return;
2143
2761
  }
2144
- T.current && (_({
2762
+ U.current && (W({
2145
2763
  type: "openDialog"
2146
- }), X(), T.current.value = null, T.current.click());
2147
- }, [_, X, V, w, hi, Z, G, l]), te = M(function(r) {
2148
- !F.current || !F.current.isEqualNode(r.target) || (r.key === " " || r.key === "Enter" || r.keyCode === 32 || r.keyCode === 13) && (r.preventDefault(), ti());
2149
- }, [F, ti]), ae = M(function() {
2150
- _({
2764
+ }), pe(), U.current.value = null, U.current.click());
2765
+ }, [W, pe, oe, _, A, E, ne, l]), le = ae(function(g) {
2766
+ !q.current || !q.current.isEqualNode(g.target) || (g.key === " " || g.key === "Enter" || g.keyCode === 32 || g.keyCode === 13) && (g.preventDefault(), B());
2767
+ }, [q, B]), ut = ae(function() {
2768
+ W({
2151
2769
  type: "focus"
2152
2770
  });
2153
- }, []), ne = M(function() {
2154
- _({
2771
+ }, []), ft = ae(function() {
2772
+ W({
2155
2773
  type: "blur"
2156
2774
  });
2157
- }, []), oe = M(function() {
2158
- D || (Jt() ? setTimeout(ti, 0) : ti());
2159
- }, [D, ti]), ai = function(v) {
2160
- return a ? null : v;
2161
- }, _i = function(v) {
2162
- return A ? null : ai(v);
2163
- }, yi = function(v) {
2164
- return C ? null : ai(v);
2165
- }, wi = function(v) {
2166
- I && v.stopPropagation();
2167
- }, Re = oi(function() {
2775
+ }, []), vt = ae(function() {
2776
+ F || (Oa() ? setTimeout(B, 0) : B());
2777
+ }, [F, B]), me = function(k) {
2778
+ return a ? null : k;
2779
+ }, qe = function(k) {
2780
+ return $ ? null : me(k);
2781
+ }, _e = function(k) {
2782
+ return N ? null : me(k);
2783
+ }, Oe = function(k) {
2784
+ H && k.stopPropagation();
2785
+ }, oi = fe(function() {
2168
2786
  return function() {
2169
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, v = r.refKey, O = v === void 0 ? "ref" : v, S = r.role, L = r.onKeyDown, mi = r.onFocus, ni = r.onBlur, Oi = r.onClick, Ci = r.onDragEnter, Ii = r.onDragOver, ki = r.onDragLeave, Si = r.onDrop, Ti = Ai(r, oa);
2170
- return z(z(Ni({
2171
- onKeyDown: _i(W(L, te)),
2172
- onFocus: _i(W(mi, ae)),
2173
- onBlur: _i(W(ni, ne)),
2174
- onClick: ai(W(Oi, oe)),
2175
- onDragEnter: yi(W(Ci, Qi)),
2176
- onDragOver: yi(W(Ii, ie)),
2177
- onDragLeave: yi(W(ki, ee)),
2178
- onDrop: yi(W(Si, bi)),
2179
- role: typeof S == "string" && S !== "" ? S : "presentation"
2180
- }, O, F), !a && !A ? {
2787
+ var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, k = g.refKey, K = k === void 0 ? "ref" : k, V = g.role, ee = g.onKeyDown, be = g.onFocus, ue = g.onBlur, Le = g.onClick, $e = g.onDragEnter, Me = g.onDragOver, De = g.onDragLeave, Ye = g.onDrop, We = Fe(g, za);
2788
+ return M(M(ot({
2789
+ onKeyDown: qe(re(ee, le)),
2790
+ onFocus: qe(re(be, ut)),
2791
+ onBlur: qe(re(ue, ft)),
2792
+ onClick: me(re(Le, vt)),
2793
+ onDragEnter: _e(re($e, O)),
2794
+ onDragOver: _e(re(Me, S)),
2795
+ onDragLeave: _e(re(De, P)),
2796
+ onDrop: _e(re(Ye, X)),
2797
+ role: typeof V == "string" && V !== "" ? V : "presentation"
2798
+ }, K, q), !a && !$ ? {
2181
2799
  tabIndex: 0
2182
- } : {}), Ti);
2800
+ } : {}), We);
2183
2801
  };
2184
- }, [F, te, ae, ne, oe, Qi, ie, ee, bi, A, C, a]), Le = M(function(r) {
2185
- r.stopPropagation();
2186
- }, []), qe = oi(function() {
2802
+ }, [q, le, ut, ft, vt, O, S, P, X, $, N, a]), ri = ae(function(g) {
2803
+ g.stopPropagation();
2804
+ }, []), pi = fe(function() {
2187
2805
  return function() {
2188
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, v = r.refKey, O = v === void 0 ? "ref" : v, S = r.onChange, L = r.onClick, mi = Ai(r, pa), ni = Ni({
2189
- accept: $,
2806
+ var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, k = g.refKey, K = k === void 0 ? "ref" : k, V = g.onChange, ee = g.onClick, be = Fe(g, Fa), ue = ot({
2807
+ accept: Z,
2190
2808
  multiple: l,
2191
2809
  type: "file",
2192
2810
  style: {
@@ -2201,61 +2819,61 @@ function Se() {
2201
2819
  width: "1px",
2202
2820
  whiteSpace: "nowrap"
2203
2821
  },
2204
- onChange: ai(W(S, bi)),
2205
- onClick: ai(W(L, Le)),
2822
+ onChange: me(re(V, X)),
2823
+ onClick: me(re(ee, ri)),
2206
2824
  tabIndex: -1
2207
- }, O, T);
2208
- return z(z({}, ni), mi);
2825
+ }, K, U);
2826
+ return M(M({}, ue), be);
2209
2827
  };
2210
- }, [T, t, l, bi, a]);
2211
- return z(z({}, H), {}, {
2212
- isFocused: Y && !a,
2213
- getRootProps: Re,
2214
- getInputProps: qe,
2215
- rootRef: F,
2216
- inputRef: T,
2217
- open: ai(ti)
2828
+ }, [U, i, l, X, a]);
2829
+ return M(M({}, ie), {}, {
2830
+ isFocused: u && !a,
2831
+ getRootProps: oi,
2832
+ getInputProps: pi,
2833
+ rootRef: q,
2834
+ inputRef: U,
2835
+ open: me(B)
2218
2836
  });
2219
2837
  }
2220
- function va(e, i) {
2221
- switch (i.type) {
2838
+ function Ha(t, e) {
2839
+ switch (e.type) {
2222
2840
  case "focus":
2223
- return z(z({}, e), {}, {
2841
+ return M(M({}, t), {}, {
2224
2842
  isFocused: !0
2225
2843
  });
2226
2844
  case "blur":
2227
- return z(z({}, e), {}, {
2845
+ return M(M({}, t), {}, {
2228
2846
  isFocused: !1
2229
2847
  });
2230
2848
  case "openDialog":
2231
- return z(z({}, Gi), {}, {
2849
+ return M(M({}, rt), {}, {
2232
2850
  isFileDialogActive: !0
2233
2851
  });
2234
2852
  case "closeDialog":
2235
- return z(z({}, e), {}, {
2853
+ return M(M({}, t), {}, {
2236
2854
  isFileDialogActive: !1
2237
2855
  });
2238
2856
  case "setDraggedFiles":
2239
- return z(z({}, e), {}, {
2240
- isDragActive: i.isDragActive,
2241
- isDragAccept: i.isDragAccept,
2242
- isDragReject: i.isDragReject
2857
+ return M(M({}, t), {}, {
2858
+ isDragActive: e.isDragActive,
2859
+ isDragAccept: e.isDragAccept,
2860
+ isDragReject: e.isDragReject
2243
2861
  });
2244
2862
  case "setFiles":
2245
- return z(z({}, e), {}, {
2246
- acceptedFiles: i.acceptedFiles,
2247
- fileRejections: i.fileRejections,
2248
- isDragReject: i.isDragReject
2863
+ return M(M({}, t), {}, {
2864
+ acceptedFiles: e.acceptedFiles,
2865
+ fileRejections: e.fileRejections,
2866
+ isDragReject: e.isDragReject
2249
2867
  });
2250
2868
  case "reset":
2251
- return z({}, Gi);
2869
+ return M({}, rt);
2252
2870
  default:
2253
- return e;
2871
+ return t;
2254
2872
  }
2255
2873
  }
2256
- function he() {
2874
+ function Lt() {
2257
2875
  }
2258
- const xa = {
2876
+ const Ka = {
2259
2877
  flex: 1,
2260
2878
  display: "flex",
2261
2879
  flexDirection: "column",
@@ -2267,26 +2885,26 @@ const xa = {
2267
2885
  outline: "none",
2268
2886
  transition: "border .24s ease-in-out",
2269
2887
  cursor: "pointer"
2270
- }, an = (e) => {
2271
- const i = E(28);
2272
- let t, a;
2273
- i[0] !== e ? ({
2888
+ }, Cn = (t) => {
2889
+ const e = Y.c(28);
2890
+ let i, a;
2891
+ e[0] !== t ? ({
2274
2892
  sx: a,
2275
- ...t
2276
- } = e, i[0] = e, i[1] = t, i[2] = a) : (t = i[1], a = i[2]);
2893
+ ...i
2894
+ } = t, e[0] = t, e[1] = i, e[2] = a) : (i = e[1], a = e[2]);
2277
2895
  const {
2278
2896
  getRootProps: n,
2279
- getInputProps: o,
2897
+ getInputProps: r,
2280
2898
  isFocused: p,
2281
2899
  isDragAccept: l,
2282
2900
  isDragReject: d
2283
- } = Se(t), {
2901
+ } = ii(i), {
2284
2902
  t: c
2285
- } = Ui(), s = Me();
2286
- let m, f, g;
2287
- if (i[3] !== n || i[4] !== l || i[5] !== d || i[6] !== p || i[7] !== s) {
2288
- const A = {
2289
- ...xa,
2903
+ } = pt(), s = ci();
2904
+ let m, f, y;
2905
+ if (e[3] !== n || e[4] !== l || e[5] !== d || e[6] !== p || e[7] !== s) {
2906
+ const $ = {
2907
+ ...Ka,
2290
2908
  ...p ? {
2291
2909
  borderColor: s.palette.primary.main
2292
2910
  } : {},
@@ -2297,307 +2915,307 @@ const xa = {
2297
2915
  borderColor: s.palette.error.main
2298
2916
  } : {}
2299
2917
  };
2300
- m = Be, f = "outlined", g = n({
2301
- style: A
2302
- }), i[3] = n, i[4] = l, i[5] = d, i[6] = p, i[7] = s, i[8] = m, i[9] = f, i[10] = g;
2918
+ m = si, f = "outlined", y = n({
2919
+ style: $
2920
+ }), e[3] = n, e[4] = l, e[5] = d, e[6] = p, e[7] = s, e[8] = m, e[9] = f, e[10] = y;
2303
2921
  } else
2304
- m = i[8], f = i[9], g = i[10];
2305
- let x;
2306
- i[11] !== o ? (x = o(), i[11] = o, i[12] = x) : x = i[12];
2922
+ m = e[8], f = e[9], y = e[10];
2307
2923
  let h;
2308
- i[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
2924
+ e[11] !== r ? (h = r(), e[11] = r, e[12] = h) : h = e[12];
2925
+ let o;
2926
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
2309
2927
  display: "none"
2310
- }, i[13] = h) : h = i[13];
2311
- let y;
2312
- i[14] !== x ? (y = /* @__PURE__ */ u("input", { ...x, style: h }), i[14] = x, i[15] = y) : y = i[15];
2313
- let w;
2314
- i[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ u(at, {}), i[16] = w) : w = i[16];
2928
+ }, e[13] = o) : o = e[13];
2315
2929
  let b;
2316
- i[17] !== c ? (b = c("Layout.File.DragSomeFilesHereOrClickToSelectThem"), i[17] = c, i[18] = b) : b = i[18];
2317
- let k;
2318
- i[19] !== b ? (k = /* @__PURE__ */ u(li, { children: b }), i[19] = b, i[20] = k) : k = i[20];
2930
+ e[14] !== h ? (b = /* @__PURE__ */ v.jsx("input", { ...h, style: o }), e[14] = h, e[15] = b) : b = e[15];
2931
+ let _;
2932
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ v.jsx(_i, {}), e[16] = _) : _ = e[16];
2319
2933
  let D;
2320
- return i[21] !== m || i[22] !== a || i[23] !== f || i[24] !== g || i[25] !== y || i[26] !== k ? (D = /* @__PURE__ */ q(m, { variant: f, ...g, sx: a, children: [
2321
- y,
2322
- w,
2323
- k
2324
- ] }), i[21] = m, i[22] = a, i[23] = f, i[24] = g, i[25] = y, i[26] = k, i[27] = D) : D = i[27], D;
2325
- }, Te = et(null), si = () => {
2326
- const e = tt(Te);
2327
- if (!e)
2934
+ e[17] !== c ? (D = c("Layout.File.DragSomeFilesHereOrClickToSelectThem"), e[17] = c, e[18] = D) : D = e[18];
2935
+ let R;
2936
+ e[19] !== D ? (R = /* @__PURE__ */ v.jsx(xe, { children: D }), e[19] = D, e[20] = R) : R = e[20];
2937
+ let F;
2938
+ return e[21] !== m || e[22] !== a || e[23] !== f || e[24] !== y || e[25] !== b || e[26] !== R ? (F = /* @__PURE__ */ v.jsxs(m, { variant: f, ...y, sx: a, children: [
2939
+ b,
2940
+ _,
2941
+ R
2942
+ ] }), e[21] = m, e[22] = a, e[23] = f, e[24] = y, e[25] = b, e[26] = R, e[27] = F) : F = e[27], F;
2943
+ }, ai = Ei(null), ye = () => {
2944
+ const t = Ti(ai);
2945
+ if (!t)
2328
2946
  throw new Error("FileViewer components must be used within FileViewer");
2329
- return e;
2330
- }, Pe = (e) => {
2331
- const i = E(34), {
2332
- meta: t,
2947
+ return t;
2948
+ }, ni = (t) => {
2949
+ const e = Y.c(34), {
2950
+ meta: i,
2333
2951
  menu: a,
2334
2952
  setMenu: n
2335
- } = e, {
2336
- t: o
2337
- } = Ui(), {
2953
+ } = t, {
2954
+ t: r
2955
+ } = pt(), {
2338
2956
  fileMetas: p,
2339
2957
  onDelete: l,
2340
2958
  actions: d
2341
- } = si(), {
2959
+ } = ye(), {
2342
2960
  confirm: c
2343
- } = pt();
2961
+ } = Ri();
2344
2962
  let s;
2345
- i[0] !== n ? (s = () => {
2963
+ e[0] !== n ? (s = () => {
2346
2964
  n(null);
2347
- }, i[0] = n, i[1] = s) : s = i[1];
2965
+ }, e[0] = n, e[1] = s) : s = e[1];
2348
2966
  const m = s, {
2349
2967
  mutate: f,
2350
- isPending: g
2351
- } = Xi(), {
2352
- mutate: x,
2353
- isPending: h
2354
- } = st();
2355
- let y;
2356
- i[2] !== f || i[3] !== m || i[4] !== t ? (y = () => {
2357
- m(), f(t);
2358
- }, i[2] = f, i[3] = m, i[4] = t, i[5] = y) : y = i[5];
2359
- const w = y;
2968
+ isPending: y
2969
+ } = st(), {
2970
+ mutate: h,
2971
+ isPending: o
2972
+ } = Oi();
2360
2973
  let b;
2361
- i[6] !== c || i[7] !== x || i[8] !== p || i[9] !== m || i[10] !== t || i[11] !== l || i[12] !== o ? (b = async () => {
2362
- if (await c(o("Layout.File.AreYouSureYouWantToDelete", {
2363
- fileName: t.fileName
2364
- })) && (x(t), m(), l)) {
2365
- const $ = p.filter((G) => G.id !== t.id);
2974
+ e[2] !== f || e[3] !== m || e[4] !== i ? (b = () => {
2975
+ m(), f(i);
2976
+ }, e[2] = f, e[3] = m, e[4] = i, e[5] = b) : b = e[5];
2977
+ const _ = b;
2978
+ let D;
2979
+ e[6] !== c || e[7] !== h || e[8] !== p || e[9] !== m || e[10] !== i || e[11] !== l || e[12] !== r ? (D = async () => {
2980
+ if (await c(r("Layout.File.AreYouSureYouWantToDelete", {
2981
+ fileName: i.fileName
2982
+ })) && (h(i), m(), l)) {
2983
+ const Z = p.filter((ne) => ne.id !== i.id);
2366
2984
  l({
2367
- remainingFileMetas: $,
2368
- deletedFileMeta: t
2985
+ remainingFileMetas: Z,
2986
+ deletedFileMeta: i
2369
2987
  });
2370
2988
  }
2371
- }, i[6] = c, i[7] = x, i[8] = p, i[9] = m, i[10] = t, i[11] = l, i[12] = o, i[13] = b) : b = i[13];
2372
- const k = b, D = a !== null;
2373
- let A;
2374
- i[14] !== a ? (A = a === null ? void 0 : {
2989
+ }, e[6] = c, e[7] = h, e[8] = p, e[9] = m, e[10] = i, e[11] = l, e[12] = r, e[13] = D) : D = e[13];
2990
+ const R = D, F = a !== null;
2991
+ let $;
2992
+ e[14] !== a ? ($ = a === null ? void 0 : {
2375
2993
  top: a.mouseY,
2376
2994
  left: a.mouseX
2377
- }, i[14] = a, i[15] = A) : A = i[15];
2378
- let C;
2379
- i[16] !== d?.download || i[17] !== w || i[18] !== g || i[19] !== o ? (C = d?.download !== !1 && /* @__PURE__ */ q($i, { onClick: w, disabled: g, children: [
2380
- /* @__PURE__ */ u(Mi, { children: /* @__PURE__ */ u(rt, {}) }),
2381
- /* @__PURE__ */ u(Bi, { children: o("Layout.File.Download") })
2382
- ] }), i[16] = d?.download, i[17] = w, i[18] = g, i[19] = o, i[20] = C) : C = i[20];
2383
- let I;
2384
- i[21] !== d?.delete || i[22] !== k || i[23] !== h || i[24] !== o ? (I = d?.delete !== !1 && /* @__PURE__ */ q($i, { onClick: k, disabled: h, children: [
2385
- /* @__PURE__ */ u(Mi, { children: /* @__PURE__ */ u(ct, {}) }),
2386
- /* @__PURE__ */ u(Bi, { children: o("Layout.File.Delete") })
2387
- ] }), i[21] = d?.delete, i[22] = k, i[23] = h, i[24] = o, i[25] = I) : I = i[25];
2388
- let P;
2389
- i[26] !== C || i[27] !== I ? (P = /* @__PURE__ */ q(be, { disablePadding: !0, children: [
2390
- C,
2391
- I
2392
- ] }), i[26] = C, i[27] = I, i[28] = P) : P = i[28];
2393
- let R;
2394
- return i[29] !== m || i[30] !== D || i[31] !== A || i[32] !== P ? (R = /* @__PURE__ */ u(He, { open: D, onClose: m, anchorReference: "anchorPosition", variant: "menu", anchorPosition: A, children: P }), i[29] = m, i[30] = D, i[31] = A, i[32] = P, i[33] = R) : R = i[33], R;
2395
- }, zi = 150, ga = (e) => {
2396
- const i = E(12), {
2397
- sx: t,
2995
+ }, e[14] = a, e[15] = $) : $ = e[15];
2996
+ let N;
2997
+ e[16] !== d?.download || e[17] !== _ || e[18] !== y || e[19] !== r ? (N = d?.download !== !1 && /* @__PURE__ */ v.jsxs(Qe, { onClick: _, disabled: y, children: [
2998
+ /* @__PURE__ */ v.jsx(et, { children: /* @__PURE__ */ v.jsx(zi, {}) }),
2999
+ /* @__PURE__ */ v.jsx(tt, { children: r("Layout.File.Download") })
3000
+ ] }), e[16] = d?.download, e[17] = _, e[18] = y, e[19] = r, e[20] = N) : N = e[20];
3001
+ let H;
3002
+ e[21] !== d?.delete || e[22] !== R || e[23] !== o || e[24] !== r ? (H = d?.delete !== !1 && /* @__PURE__ */ v.jsxs(Qe, { onClick: R, disabled: o, children: [
3003
+ /* @__PURE__ */ v.jsx(et, { children: /* @__PURE__ */ v.jsx(Ii, {}) }),
3004
+ /* @__PURE__ */ v.jsx(tt, { children: r("Layout.File.Delete") })
3005
+ ] }), e[21] = d?.delete, e[22] = R, e[23] = o, e[24] = r, e[25] = H) : H = e[25];
3006
+ let G;
3007
+ e[26] !== N || e[27] !== H ? (G = /* @__PURE__ */ v.jsxs($t, { disablePadding: !0, children: [
3008
+ N,
3009
+ H
3010
+ ] }), e[26] = N, e[27] = H, e[28] = G) : G = e[28];
3011
+ let J;
3012
+ return e[29] !== m || e[30] !== F || e[31] !== $ || e[32] !== G ? (J = /* @__PURE__ */ v.jsx(di, { open: F, onClose: m, anchorReference: "anchorPosition", variant: "menu", anchorPosition: $, children: G }), e[29] = m, e[30] = F, e[31] = $, e[32] = G, e[33] = J) : J = e[33], J;
3013
+ }, Pe = 150, Ua = (t) => {
3014
+ const e = Y.c(12), {
3015
+ sx: i,
2398
3016
  size: a,
2399
3017
  itemBar: n
2400
- } = e, {
2401
- fileMetas: o
2402
- } = si();
3018
+ } = t, {
3019
+ fileMetas: r
3020
+ } = ye();
2403
3021
  let p;
2404
- i[0] !== t ? (p = {
3022
+ e[0] !== i ? (p = {
2405
3023
  overflow: "auto",
2406
- ...t
2407
- }, i[0] = t, i[1] = p) : p = i[1];
3024
+ ...i
3025
+ }, e[0] = i, e[1] = p) : p = e[1];
2408
3026
  let l;
2409
- if (i[2] !== o || i[3] !== n || i[4] !== a) {
3027
+ if (e[2] !== r || e[3] !== n || e[4] !== a) {
2410
3028
  let c;
2411
- i[6] !== n || i[7] !== a ? (c = (s) => /* @__PURE__ */ u(ha, { meta: s, size: a, itemBar: n }, s.id), i[6] = n, i[7] = a, i[8] = c) : c = i[8], l = o.map(c), i[2] = o, i[3] = n, i[4] = a, i[5] = l;
3029
+ e[6] !== n || e[7] !== a ? (c = (s) => /* @__PURE__ */ v.jsx(Va, { meta: s, size: a, itemBar: n }, s.id), e[6] = n, e[7] = a, e[8] = c) : c = e[8], l = r.map(c), e[2] = r, e[3] = n, e[4] = a, e[5] = l;
2412
3030
  } else
2413
- l = i[5];
3031
+ l = e[5];
2414
3032
  let d;
2415
- return i[9] !== p || i[10] !== l ? (d = /* @__PURE__ */ u(fi, { direction: "row", spacing: 1, sx: p, children: l }), i[9] = p, i[10] = l, i[11] = d) : d = i[11], d;
2416
- }, ha = (e) => {
2417
- const i = E(47), {
2418
- meta: t,
3033
+ return e[9] !== p || e[10] !== l ? (d = /* @__PURE__ */ v.jsx(ke, { direction: "row", spacing: 1, sx: p, children: l }), e[9] = p, e[10] = l, e[11] = d) : d = e[11], d;
3034
+ }, Va = (t) => {
3035
+ const e = Y.c(47), {
3036
+ meta: i,
2419
3037
  size: a,
2420
3038
  itemBar: n
2421
- } = e, {
2422
- setImageId: o,
3039
+ } = t, {
3040
+ setImageId: r,
2423
3041
  actions: p
2424
- } = si(), [l, d] = vi(n === "always"), [c, s] = vi(null), {
3042
+ } = ye(), [l, d] = je(n === "always"), [c, s] = je(null), {
2425
3043
  ref: m,
2426
3044
  inView: f
2427
- } = lt();
2428
- let g, x;
2429
- i[0] !== n ? (g = () => {
3045
+ } = Pi();
3046
+ let y, h;
3047
+ e[0] !== n ? (y = () => {
2430
3048
  d(n === "always");
2431
- }, x = [n], i[0] = n, i[1] = g, i[2] = x) : (g = i[1], x = i[2]), pi(g, x);
2432
- let h;
2433
- i[3] !== t ? (h = {
2434
- meta: t
2435
- }, i[3] = t, i[4] = h) : h = i[4];
2436
- let y;
2437
- i[5] !== f ? (y = {
3049
+ }, h = [n], e[0] = n, e[1] = y, e[2] = h) : (y = e[1], h = e[2]), ve(y, h);
3050
+ let o;
3051
+ e[3] !== i ? (o = {
3052
+ meta: i
3053
+ }, e[3] = i, e[4] = o) : o = e[4];
3054
+ let b;
3055
+ e[5] !== f ? (b = {
2438
3056
  enabled: f
2439
- }, i[5] = f, i[6] = y) : y = i[6];
3057
+ }, e[5] = f, e[6] = b) : b = e[6];
2440
3058
  const {
2441
- data: w
2442
- } = dt(h, y);
2443
- let b;
2444
- i[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => d(!0), i[7] = b) : b = i[7];
2445
- const k = b;
3059
+ data: _
3060
+ } = Di(o, b);
2446
3061
  let D;
2447
- i[8] !== n ? (D = () => n !== "always" && d(!1), i[8] = n, i[9] = D) : D = i[9];
2448
- const A = D;
2449
- let C;
2450
- i[10] !== c ? (C = (N) => {
3062
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => d(!0), e[7] = D) : D = e[7];
3063
+ const R = D;
3064
+ let F;
3065
+ e[8] !== n ? (F = () => n !== "always" && d(!1), e[8] = n, e[9] = F) : F = e[9];
3066
+ const $ = F;
3067
+ let N;
3068
+ e[10] !== c ? (N = (w) => {
2451
3069
  s(c === null ? {
2452
- mouseX: N.clientX,
2453
- mouseY: N.clientY
3070
+ mouseX: w.clientX,
3071
+ mouseY: w.clientY
2454
3072
  } : null), setTimeout(() => d(!0));
2455
- }, i[10] = c, i[11] = C) : C = i[11];
2456
- const I = C, {
2457
- mutate: P
2458
- } = ke(), {
2459
- mutate: R
2460
- } = Xi();
2461
- let $;
2462
- i[12] !== R || i[13] !== t || i[14] !== P || i[15] !== o ? ($ = () => {
2463
- switch (t.mediaType) {
3073
+ }, e[10] = c, e[11] = N) : N = e[11];
3074
+ const H = N, {
3075
+ mutate: G
3076
+ } = Wt(), {
3077
+ mutate: J
3078
+ } = st();
3079
+ let Z;
3080
+ e[12] !== J || e[13] !== i || e[14] !== G || e[15] !== r ? (Z = () => {
3081
+ switch (i.mediaType) {
2464
3082
  case "image":
2465
- return o(t.id);
3083
+ return r(i.id);
2466
3084
  case "application":
2467
- return P(t);
3085
+ return G(i);
2468
3086
  case "video":
2469
- return P(t);
3087
+ return G(i);
2470
3088
  default:
2471
- return R(t);
3089
+ return J(i);
2472
3090
  }
2473
- }, i[12] = R, i[13] = t, i[14] = P, i[15] = o, i[16] = $) : $ = i[16];
2474
- const G = $, X = a ?? zi, V = a ?? zi;
2475
- let F;
2476
- i[17] !== V || i[18] !== X ? (F = {
2477
- width: X,
2478
- height: V
2479
- }, i[17] = V, i[18] = X, i[19] = F) : F = i[19];
2480
- const T = "thumbnail-" + t.id, di = a ?? zi, ei = a ?? zi;
2481
- let H;
2482
- i[20] !== di || i[21] !== ei ? (H = {
3091
+ }, e[12] = J, e[13] = i, e[14] = G, e[15] = r, e[16] = Z) : Z = e[16];
3092
+ const ne = Z, pe = a ?? Pe, oe = a ?? Pe;
3093
+ let q;
3094
+ e[17] !== oe || e[18] !== pe ? (q = {
3095
+ width: pe,
3096
+ height: oe
3097
+ }, e[17] = oe, e[18] = pe, e[19] = q) : q = e[19];
3098
+ const U = "thumbnail-" + i.id, Q = a ?? Pe, te = a ?? Pe;
3099
+ let ie;
3100
+ e[20] !== Q || e[21] !== te ? (ie = {
2483
3101
  cursor: "pointer",
2484
3102
  objectFit: "contain",
2485
- width: di,
2486
- height: ei
2487
- }, i[20] = di, i[21] = ei, i[22] = H) : H = i[22];
2488
- let _;
2489
- i[23] !== G || i[24] !== w || i[25] !== T || i[26] !== H ? (_ = /* @__PURE__ */ u(U, { component: "img", src: w, loading: "lazy", alt: T, onClick: G, sx: H }), i[23] = G, i[24] = w, i[25] = T, i[26] = H, i[27] = _) : _ = i[27];
2490
- let Y;
2491
- i[28] !== p || i[29] !== n || i[30] !== t.fileName || i[31] !== I || i[32] !== l ? (Y = n !== "hidden" && l && /* @__PURE__ */ u(We, { title: /* @__PURE__ */ u(Ke, { title: t.fileName, children: /* @__PURE__ */ u(U, { children: t.fileName }) }), actionIcon: (p?.download !== !1 || p.delete !== !1) && /* @__PURE__ */ u(Vi, { sx: {
2492
- color: ot[100]
2493
- }, onClick: I, children: /* @__PURE__ */ u(we, {}) }) }), i[28] = p, i[29] = n, i[30] = t.fileName, i[31] = I, i[32] = l, i[33] = Y) : Y = i[33];
2494
- let K;
2495
- i[34] !== A || i[35] !== m || i[36] !== F || i[37] !== _ || i[38] !== Y ? (K = /* @__PURE__ */ q(Ne, { sx: F, onMouseEnter: k, onMouseLeave: A, ref: m, children: [
2496
- _,
2497
- Y
2498
- ] }), i[34] = A, i[35] = m, i[36] = F, i[37] = _, i[38] = Y, i[39] = K) : K = i[39];
2499
- let B;
2500
- i[40] !== p || i[41] !== c || i[42] !== t ? (B = (p?.download !== !1 || p.delete !== !1) && /* @__PURE__ */ u(Pe, { meta: t, menu: c, setMenu: s }), i[40] = p, i[41] = c, i[42] = t, i[43] = B) : B = i[43];
2501
- let J;
2502
- return i[44] !== K || i[45] !== B ? (J = /* @__PURE__ */ q(Yi, { children: [
2503
- K,
2504
- B
2505
- ] }), i[44] = K, i[45] = B, i[46] = J) : J = i[46], J;
2506
- }, ba = (e) => {
2507
- const i = E(5), {
2508
- sx: t
2509
- } = e, {
3103
+ width: Q,
3104
+ height: te
3105
+ }, e[20] = Q, e[21] = te, e[22] = ie) : ie = e[22];
3106
+ let W;
3107
+ e[23] !== ne || e[24] !== _ || e[25] !== U || e[26] !== ie ? (W = /* @__PURE__ */ v.jsx(ce, { component: "img", src: _, loading: "lazy", alt: U, onClick: ne, sx: ie }), e[23] = ne, e[24] = _, e[25] = U, e[26] = ie, e[27] = W) : W = e[27];
3108
+ let u;
3109
+ e[28] !== p || e[29] !== n || e[30] !== i.fileName || e[31] !== H || e[32] !== l ? (u = n !== "hidden" && l && /* @__PURE__ */ v.jsx(mi, { title: /* @__PURE__ */ v.jsx(ui, { title: i.fileName, children: /* @__PURE__ */ v.jsx(ce, { children: i.fileName }) }), actionIcon: (p?.download !== !1 || p.delete !== !1) && /* @__PURE__ */ v.jsx(lt, { sx: {
3110
+ color: Si[100]
3111
+ }, onClick: H, children: /* @__PURE__ */ v.jsx(Bt, {}) }) }), e[28] = p, e[29] = n, e[30] = i.fileName, e[31] = H, e[32] = l, e[33] = u) : u = e[33];
3112
+ let x;
3113
+ e[34] !== $ || e[35] !== m || e[36] !== q || e[37] !== W || e[38] !== u ? (x = /* @__PURE__ */ v.jsxs(fi, { sx: q, onMouseEnter: R, onMouseLeave: $, ref: m, children: [
3114
+ W,
3115
+ u
3116
+ ] }), e[34] = $, e[35] = m, e[36] = q, e[37] = W, e[38] = u, e[39] = x) : x = e[39];
3117
+ let j;
3118
+ e[40] !== p || e[41] !== c || e[42] !== i ? (j = (p?.download !== !1 || p.delete !== !1) && /* @__PURE__ */ v.jsx(ni, { meta: i, menu: c, setMenu: s }), e[40] = p, e[41] = c, e[42] = i, e[43] = j) : j = e[43];
3119
+ let T;
3120
+ return e[44] !== x || e[45] !== j ? (T = /* @__PURE__ */ v.jsxs(ct, { children: [
3121
+ x,
3122
+ j
3123
+ ] }), e[44] = x, e[45] = j, e[46] = T) : T = e[46], T;
3124
+ }, Ga = (t) => {
3125
+ const e = Y.c(5), {
3126
+ sx: i
3127
+ } = t, {
2510
3128
  fileMetas: a
2511
- } = si();
3129
+ } = ye();
2512
3130
  let n;
2513
- i[0] !== a ? (n = a.map(wa), i[0] = a, i[1] = n) : n = i[1];
2514
- let o;
2515
- return i[2] !== t || i[3] !== n ? (o = /* @__PURE__ */ u(be, { dense: !0, sx: t, children: n }), i[2] = t, i[3] = n, i[4] = o) : o = i[4], o;
2516
- }, ya = (e) => {
2517
- const i = E(29), {
2518
- meta: t
2519
- } = e, {
3131
+ e[0] !== a ? (n = a.map(Ja), e[0] = a, e[1] = n) : n = e[1];
3132
+ let r;
3133
+ return e[2] !== i || e[3] !== n ? (r = /* @__PURE__ */ v.jsx($t, { dense: !0, sx: i, children: n }), e[2] = i, e[3] = n, e[4] = r) : r = e[4], r;
3134
+ }, Xa = (t) => {
3135
+ const e = Y.c(29), {
3136
+ meta: i
3137
+ } = t, {
2520
3138
  setImageId: a,
2521
3139
  actions: n
2522
- } = si(), [o, p] = vi(null);
3140
+ } = ye(), [r, p] = je(null);
2523
3141
  let l;
2524
- i[0] !== o ? (l = (C) => {
2525
- C.stopPropagation(), p(o === null ? {
2526
- mouseX: C.clientX,
2527
- mouseY: C.clientY
3142
+ e[0] !== r ? (l = (N) => {
3143
+ N.stopPropagation(), p(r === null ? {
3144
+ mouseX: N.clientX,
3145
+ mouseY: N.clientY
2528
3146
  } : null);
2529
- }, i[0] = o, i[1] = l) : l = i[1];
3147
+ }, e[0] = r, e[1] = l) : l = e[1];
2530
3148
  const d = l, {
2531
3149
  mutate: c
2532
- } = ke(), {
3150
+ } = Wt(), {
2533
3151
  mutate: s
2534
- } = Xi();
3152
+ } = st();
2535
3153
  let m;
2536
- i[2] !== s || i[3] !== t || i[4] !== c || i[5] !== a ? (m = () => {
2537
- switch (t.mediaType) {
3154
+ e[2] !== s || e[3] !== i || e[4] !== c || e[5] !== a ? (m = () => {
3155
+ switch (i.mediaType) {
2538
3156
  case "image":
2539
- return a(t.id);
3157
+ return a(i.id);
2540
3158
  case "application":
2541
- return c(t);
3159
+ return c(i);
2542
3160
  case "video":
2543
- return c(t);
3161
+ return c(i);
2544
3162
  default:
2545
- return s(t);
3163
+ return s(i);
2546
3164
  }
2547
- }, i[2] = s, i[3] = t, i[4] = c, i[5] = a, i[6] = m) : m = i[6];
3165
+ }, e[2] = s, e[3] = i, e[4] = c, e[5] = a, e[6] = m) : m = e[6];
2548
3166
  const f = m;
2549
- let g;
2550
- i[7] !== t.mediaType ? (g = () => {
2551
- switch (t.mediaType) {
3167
+ let y;
3168
+ e[7] !== i.mediaType ? (y = () => {
3169
+ switch (i.mediaType) {
2552
3170
  case "image":
2553
- return /* @__PURE__ */ u(vt, {});
3171
+ return /* @__PURE__ */ v.jsx(qi, {});
2554
3172
  case "video":
2555
- return /* @__PURE__ */ u(xt, {});
3173
+ return /* @__PURE__ */ v.jsx(Li, {});
2556
3174
  default:
2557
- return /* @__PURE__ */ u(ft, {});
3175
+ return /* @__PURE__ */ v.jsx(Fi, {});
2558
3176
  }
2559
- }, i[7] = t.mediaType, i[8] = g) : g = i[8];
2560
- const x = g;
2561
- let h;
2562
- i[9] !== x ? (h = /* @__PURE__ */ u(Mi, { children: x() }), i[9] = x, i[10] = h) : h = i[10];
2563
- const y = `${t.fileName}.${t.fileExtension}`;
2564
- let w;
2565
- i[11] !== y ? (w = /* @__PURE__ */ u(Bi, { primary: y }), i[11] = y, i[12] = w) : w = i[12];
2566
- let b;
2567
- i[13] !== n || i[14] !== d ? (b = (n?.download !== !1 || n.delete !== !1) && /* @__PURE__ */ u(Vi, { edge: "end", onClick: d, children: /* @__PURE__ */ u(we, {}) }), i[13] = n, i[14] = d, i[15] = b) : b = i[15];
2568
- let k;
2569
- i[16] !== t.id || i[17] !== f || i[18] !== h || i[19] !== w || i[20] !== b ? (k = /* @__PURE__ */ q($i, { onClick: f, children: [
2570
- h,
2571
- w,
2572
- b
2573
- ] }, t.id), i[16] = t.id, i[17] = f, i[18] = h, i[19] = w, i[20] = b, i[21] = k) : k = i[21];
3177
+ }, e[7] = i.mediaType, e[8] = y) : y = e[8];
3178
+ const h = y;
3179
+ let o;
3180
+ e[9] !== h ? (o = /* @__PURE__ */ v.jsx(et, { children: h() }), e[9] = h, e[10] = o) : o = e[10];
3181
+ const b = `${i.fileName}.${i.fileExtension}`;
3182
+ let _;
3183
+ e[11] !== b ? (_ = /* @__PURE__ */ v.jsx(tt, { primary: b }), e[11] = b, e[12] = _) : _ = e[12];
2574
3184
  let D;
2575
- i[22] !== n || i[23] !== o || i[24] !== t ? (D = (n?.download !== !1 || n.delete !== !1) && /* @__PURE__ */ u(Pe, { meta: t, menu: o, setMenu: p }), i[22] = n, i[23] = o, i[24] = t, i[25] = D) : D = i[25];
2576
- let A;
2577
- return i[26] !== k || i[27] !== D ? (A = /* @__PURE__ */ q(Yi, { children: [
2578
- k,
3185
+ e[13] !== n || e[14] !== d ? (D = (n?.download !== !1 || n.delete !== !1) && /* @__PURE__ */ v.jsx(lt, { edge: "end", onClick: d, children: /* @__PURE__ */ v.jsx(Bt, {}) }), e[13] = n, e[14] = d, e[15] = D) : D = e[15];
3186
+ let R;
3187
+ e[16] !== i.id || e[17] !== f || e[18] !== o || e[19] !== _ || e[20] !== D ? (R = /* @__PURE__ */ v.jsxs(Qe, { onClick: f, children: [
3188
+ o,
3189
+ _,
2579
3190
  D
2580
- ] }), i[26] = k, i[27] = D, i[28] = A) : A = i[28], A;
3191
+ ] }, i.id), e[16] = i.id, e[17] = f, e[18] = o, e[19] = _, e[20] = D, e[21] = R) : R = e[21];
3192
+ let F;
3193
+ e[22] !== n || e[23] !== r || e[24] !== i ? (F = (n?.download !== !1 || n.delete !== !1) && /* @__PURE__ */ v.jsx(ni, { meta: i, menu: r, setMenu: p }), e[22] = n, e[23] = r, e[24] = i, e[25] = F) : F = e[25];
3194
+ let $;
3195
+ return e[26] !== R || e[27] !== F ? ($ = /* @__PURE__ */ v.jsxs(ct, { children: [
3196
+ R,
3197
+ F
3198
+ ] }), e[26] = R, e[27] = F, e[28] = $) : $ = e[28], $;
2581
3199
  };
2582
- function wa(e) {
2583
- return /* @__PURE__ */ u(ya, { meta: e }, e.id);
3200
+ function Ja(t) {
3201
+ return /* @__PURE__ */ v.jsx(Xa, { meta: t }, t.id);
2584
3202
  }
2585
- const ka = ({
2586
- metaId: e
3203
+ const Za = ({
3204
+ metaId: t
2587
3205
  }) => {
2588
3206
  const {
2589
- fileMetas: i,
2590
- setImageId: t
2591
- } = si(), a = i.find((c) => c.id === e), {
3207
+ fileMetas: e,
3208
+ setImageId: i
3209
+ } = ye(), a = e.find((c) => c.id === t), {
2592
3210
  data: n
2593
- } = mt({
3211
+ } = Ai({
2594
3212
  meta: a
2595
3213
  });
2596
- pi(() => (e && globalThis.addEventListener("keydown", o), () => {
2597
- globalThis.removeEventListener("keydown", o);
2598
- }), [e]);
2599
- const o = (c) => {
2600
- const s = i.filter((f) => f.mediaType === "image"), m = s.findIndex((f) => f.id === e);
3214
+ ve(() => (t && globalThis.addEventListener("keydown", r), () => {
3215
+ globalThis.removeEventListener("keydown", r);
3216
+ }), [t]);
3217
+ const r = (c) => {
3218
+ const s = e.filter((f) => f.mediaType === "image"), m = s.findIndex((f) => f.id === t);
2601
3219
  switch (c.key) {
2602
3220
  case "ArrowLeft":
2603
3221
  return p(s, m);
@@ -2610,220 +3228,220 @@ const ka = ({
2610
3228
  }, p = (c, s) => {
2611
3229
  if (s > 0) {
2612
3230
  const m = c[s - 1];
2613
- t(m.id);
3231
+ i(m.id);
2614
3232
  }
2615
3233
  }, l = (c, s) => {
2616
3234
  if (s < c.length - 1) {
2617
3235
  const m = c[s + 1];
2618
- t(m.id);
3236
+ i(m.id);
2619
3237
  }
2620
- }, d = () => t("");
2621
- return e ? /* @__PURE__ */ q(Ge, { open: !0, onClose: d, maxWidth: "xl", children: [
2622
- /* @__PURE__ */ u(U, { component: "img", src: n, alt: e, sx: {
3238
+ }, d = () => i("");
3239
+ return t ? /* @__PURE__ */ v.jsxs(vi, { open: !0, onClose: d, maxWidth: "xl", children: [
3240
+ /* @__PURE__ */ v.jsx(ce, { component: "img", src: n, alt: t, sx: {
2623
3241
  maxWidth: "100vw",
2624
3242
  maxHeight: {
2625
3243
  xs: "calc(100vh - 56px)",
2626
3244
  sm: "calc(100vh - 64px)"
2627
3245
  }
2628
3246
  } }),
2629
- /* @__PURE__ */ u(Ve, { size: "medium", onClick: d, sx: {
3247
+ /* @__PURE__ */ v.jsx(xi, { size: "medium", onClick: d, sx: {
2630
3248
  position: "fixed",
2631
3249
  top: 8,
2632
3250
  right: 8
2633
- }, children: /* @__PURE__ */ u(gt, {}) })
3251
+ }, children: /* @__PURE__ */ v.jsx($i, {}) })
2634
3252
  ] }) : null;
2635
- }, nn = (e) => {
2636
- const i = E(25), {
2637
- subId: t,
3253
+ }, Sn = (t) => {
3254
+ const e = Y.c(25), {
3255
+ subId: i,
2638
3256
  onDelete: a,
2639
3257
  actions: n,
2640
- children: o
2641
- } = e;
3258
+ children: r
3259
+ } = t;
2642
3260
  let p;
2643
- i[0] !== t ? (p = {
2644
- subId: t
2645
- }, i[0] = t, i[1] = p) : p = i[1];
2646
- const l = !!t;
3261
+ e[0] !== i ? (p = {
3262
+ subId: i
3263
+ }, e[0] = i, e[1] = p) : p = e[1];
3264
+ const l = !!i;
2647
3265
  let d;
2648
- i[2] !== l ? (d = {
3266
+ e[2] !== l ? (d = {
2649
3267
  enabled: l
2650
- }, i[2] = l, i[3] = d) : d = i[3];
3268
+ }, e[2] = l, e[3] = d) : d = e[3];
2651
3269
  const {
2652
3270
  data: c
2653
- } = ut(p, d);
3271
+ } = Ci(p, d);
2654
3272
  let s;
2655
- i[4] !== c ? (s = c === void 0 ? [] : c, i[4] = c, i[5] = s) : s = i[5];
2656
- const m = s, [f, g] = vi("");
2657
- let x, h, y, w;
2658
- if (i[6] !== n || i[7] !== o || i[8] !== m || i[9] !== a) {
2659
- w = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
2660
- i: {
2661
- const D = {
2662
- Grid: ga,
2663
- List: ba
3273
+ e[4] !== c ? (s = c === void 0 ? [] : c, e[4] = c, e[5] = s) : s = e[5];
3274
+ const m = s, [f, y] = je("");
3275
+ let h, o, b, _;
3276
+ if (e[6] !== n || e[7] !== r || e[8] !== m || e[9] !== a) {
3277
+ _ = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
3278
+ e: {
3279
+ const F = {
3280
+ Grid: Ua,
3281
+ List: Ga
2664
3282
  };
2665
3283
  if (m.length === 0) {
2666
- w = null;
2667
- break i;
3284
+ _ = null;
3285
+ break e;
2668
3286
  }
2669
- x = Te.Provider, i[14] !== n || i[15] !== m || i[16] !== a ? (h = {
3287
+ h = ai.Provider, e[14] !== n || e[15] !== m || e[16] !== a ? (o = {
2670
3288
  fileMetas: m,
2671
3289
  onDelete: a,
2672
3290
  actions: n,
2673
- setImageId: g
2674
- }, i[14] = n, i[15] = m, i[16] = a, i[17] = h) : h = i[17], y = o(D);
3291
+ setImageId: y
3292
+ }, e[14] = n, e[15] = m, e[16] = a, e[17] = o) : o = e[17], b = r(F);
2675
3293
  }
2676
- i[6] = n, i[7] = o, i[8] = m, i[9] = a, i[10] = x, i[11] = h, i[12] = y, i[13] = w;
3294
+ e[6] = n, e[7] = r, e[8] = m, e[9] = a, e[10] = h, e[11] = o, e[12] = b, e[13] = _;
2677
3295
  } else
2678
- x = i[10], h = i[11], y = i[12], w = i[13];
2679
- if (w !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
2680
- return w;
2681
- let b;
2682
- i[18] !== f ? (b = /* @__PURE__ */ u(ka, { metaId: f }), i[18] = f, i[19] = b) : b = i[19];
2683
- let k;
2684
- return i[20] !== x || i[21] !== h || i[22] !== y || i[23] !== b ? (k = /* @__PURE__ */ q(x, { value: h, children: [
2685
- y,
2686
- b
2687
- ] }), i[20] = x, i[21] = h, i[22] = y, i[23] = b, i[24] = k) : k = i[24], k;
2688
- }, ja = (e) => Array.isArray(e), on = (e) => {
2689
- const i = E(20), {
2690
- params: t,
3296
+ h = e[10], o = e[11], b = e[12], _ = e[13];
3297
+ if (_ !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
3298
+ return _;
3299
+ let D;
3300
+ e[18] !== f ? (D = /* @__PURE__ */ v.jsx(Za, { metaId: f }), e[18] = f, e[19] = D) : D = e[19];
3301
+ let R;
3302
+ return e[20] !== h || e[21] !== o || e[22] !== b || e[23] !== D ? (R = /* @__PURE__ */ v.jsxs(h, { value: o, children: [
3303
+ b,
3304
+ D
3305
+ ] }), e[20] = h, e[21] = o, e[22] = b, e[23] = D, e[24] = R) : R = e[24], R;
3306
+ }, Qa = (t) => Array.isArray(t), Rn = (t) => {
3307
+ const e = Y.c(20), {
3308
+ params: i,
2691
3309
  slotProps: a,
2692
3310
  getLabel: n
2693
- } = e;
2694
- if (!t.value)
3311
+ } = t;
3312
+ if (!i.value)
2695
3313
  return null;
2696
- let o;
2697
- i[0] !== n ? (o = (c) => n ? n(c) : c, i[0] = n, i[1] = o) : o = i[1];
2698
- const p = o;
2699
- if (ja(t.value)) {
3314
+ let r;
3315
+ e[0] !== n ? (r = (c) => n ? n(c) : c, e[0] = n, e[1] = r) : r = e[1];
3316
+ const p = r;
3317
+ if (Qa(i.value)) {
2700
3318
  let c;
2701
- i[2] !== t.colDef.computedWidth ? (c = {
3319
+ e[2] !== i.colDef.computedWidth ? (c = {
2702
3320
  overflowX: "auto",
2703
3321
  height: "100%",
2704
- width: t.colDef.computedWidth
2705
- }, i[2] = t.colDef.computedWidth, i[3] = c) : c = i[3];
3322
+ width: i.colDef.computedWidth
3323
+ }, e[2] = i.colDef.computedWidth, e[3] = c) : c = e[3];
2706
3324
  let s;
2707
- if (i[4] !== p || i[5] !== t.value || i[6] !== a) {
3325
+ if (e[4] !== p || e[5] !== i.value || e[6] !== a) {
2708
3326
  let f;
2709
- i[8] !== p || i[9] !== a ? (f = (g, x) => /* @__PURE__ */ u(pe, { label: p(g), ...a }, `${x + 1}-chip-input-cell`), i[8] = p, i[9] = a, i[10] = f) : f = i[10], s = t.value.map(f), i[4] = p, i[5] = t.value, i[6] = a, i[7] = s;
3327
+ e[8] !== p || e[9] !== a ? (f = (y, h) => /* @__PURE__ */ v.jsx(xt, { label: p(y), ...a }, `${h + 1}-chip-input-cell`), e[8] = p, e[9] = a, e[10] = f) : f = e[10], s = i.value.map(f), e[4] = p, e[5] = i.value, e[6] = a, e[7] = s;
2710
3328
  } else
2711
- s = i[7];
3329
+ s = e[7];
2712
3330
  let m;
2713
- return i[11] !== c || i[12] !== s ? (m = /* @__PURE__ */ u(fi, { direction: "row", alignItems: "center", gap: 1, sx: c, children: s }), i[11] = c, i[12] = s, i[13] = m) : m = i[13], m;
3331
+ return e[11] !== c || e[12] !== s ? (m = /* @__PURE__ */ v.jsx(ke, { direction: "row", alignItems: "center", gap: 1, sx: c, children: s }), e[11] = c, e[12] = s, e[13] = m) : m = e[13], m;
2714
3332
  }
2715
3333
  let l;
2716
- i[14] !== p || i[15] !== t.value ? (l = p(t.value), i[14] = p, i[15] = t.value, i[16] = l) : l = i[16];
3334
+ e[14] !== p || e[15] !== i.value ? (l = p(i.value), e[14] = p, e[15] = i.value, e[16] = l) : l = e[16];
2717
3335
  let d;
2718
- return i[17] !== a || i[18] !== l ? (d = /* @__PURE__ */ u(pe, { label: l, ...a }), i[17] = a, i[18] = l, i[19] = d) : d = i[19], d;
2719
- }, pn = (e) => {
2720
- const i = E(3), {
2721
- colDef: t
2722
- } = e;
3336
+ return e[17] !== a || e[18] !== l ? (d = /* @__PURE__ */ v.jsx(xt, { label: l, ...a }), e[17] = a, e[18] = l, e[19] = d) : d = e[19], d;
3337
+ }, Pn = (t) => {
3338
+ const e = Y.c(3), {
3339
+ colDef: i
3340
+ } = t;
2723
3341
  let a;
2724
- i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u(ht, { color: "disabled", fontSize: "small" }), i[0] = a) : a = i[0];
3342
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ v.jsx(Mi, { color: "disabled", fontSize: "small" }), e[0] = a) : a = e[0];
2725
3343
  let n;
2726
- return i[1] !== t.headerName ? (n = /* @__PURE__ */ u(yt, { endIcon: a, variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: t.headerName }), i[1] = t.headerName, i[2] = n) : n = i[2], n;
2727
- }, Da = ri.forwardRef(function(i, t) {
2728
- const a = E(3);
3344
+ return e[1] !== i.headerName ? (n = /* @__PURE__ */ v.jsx(Wi, { endIcon: a, variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: i.headerName }), e[1] = i.headerName, e[2] = n) : n = e[2], n;
3345
+ }, en = he.forwardRef(function(e, i) {
3346
+ const a = Y.c(3);
2729
3347
  let n;
2730
- return a[0] !== i || a[1] !== t ? (n = /* @__PURE__ */ u(Ye, { ref: t, component: "a", ...i }), a[0] = i, a[1] = t, a[2] = n) : n = a[2], n;
2731
- }), za = gi(Da), ln = (e) => {
2732
- const i = E(2);
2733
- let t;
2734
- return i[0] !== e ? (t = /* @__PURE__ */ u(za, { ...e }), i[0] = e, i[1] = t) : t = i[1], t;
2735
- }, Ea = ri.forwardRef(function(i, t) {
2736
- const a = E(3);
3348
+ return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(gi, { ref: i, component: "a", ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
3349
+ }), tn = Te(en), In = (t) => {
3350
+ const e = Y.c(2);
3351
+ let i;
3352
+ return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(tn, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
3353
+ }, an = he.forwardRef(function(e, i) {
3354
+ const a = Y.c(3);
2737
3355
  let n;
2738
- return a[0] !== i || a[1] !== t ? (n = /* @__PURE__ */ u(bt, { ref: t, component: "a", ...i }), a[0] = i, a[1] = t, a[2] = n) : n = a[2], n;
2739
- }), Fa = gi(Ea), cn = (e) => {
2740
- const i = E(2);
2741
- let t;
2742
- return i[0] !== e ? (t = /* @__PURE__ */ u(Fa, { ...e }), i[0] = e, i[1] = t) : t = i[1], t;
2743
- }, Aa = ri.forwardRef(function(i, t) {
2744
- const a = E(3);
3356
+ return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(Yi, { ref: i, component: "a", ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
3357
+ }), nn = Te(an), zn = (t) => {
3358
+ const e = Y.c(2);
3359
+ let i;
3360
+ return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(nn, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
3361
+ }, on = he.forwardRef(function(e, i) {
3362
+ const a = Y.c(3);
2745
3363
  let n;
2746
- return a[0] !== i || a[1] !== t ? (n = /* @__PURE__ */ u(Vi, { ref: t, component: "a", ...i }), a[0] = i, a[1] = t, a[2] = n) : n = a[2], n;
2747
- }), _a = gi(Aa), rn = (e) => {
2748
- const i = E(2);
2749
- let t;
2750
- return i[0] !== e ? (t = /* @__PURE__ */ u(_a, { ...e }), i[0] = e, i[1] = t) : t = i[1], t;
2751
- }, Oa = ri.forwardRef(function(i, t) {
2752
- const a = E(3);
3364
+ return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(lt, { ref: i, component: "a", ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
3365
+ }), rn = Te(on), Fn = (t) => {
3366
+ const e = Y.c(2);
3367
+ let i;
3368
+ return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(rn, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
3369
+ }, pn = he.forwardRef(function(e, i) {
3370
+ const a = Y.c(3);
2753
3371
  let n;
2754
- return a[0] !== i || a[1] !== t ? (n = /* @__PURE__ */ u(Ue, { ref: t, ...i }), a[0] = i, a[1] = t, a[2] = n) : n = a[2], n;
2755
- }), Ca = gi(Oa), sn = (e) => {
2756
- const i = E(2);
2757
- let t;
2758
- return i[0] !== e ? (t = /* @__PURE__ */ u(Ca, { ...e }), i[0] = e, i[1] = t) : t = i[1], t;
2759
- }, Ia = ri.forwardRef(function(i, t) {
2760
- const a = E(3);
3372
+ return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(hi, { ref: i, ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
3373
+ }), ln = Te(pn), qn = (t) => {
3374
+ const e = Y.c(2);
3375
+ let i;
3376
+ return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(ln, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
3377
+ }, cn = he.forwardRef(function(e, i) {
3378
+ const a = Y.c(3);
2761
3379
  let n;
2762
- return a[0] !== i || a[1] !== t ? (n = /* @__PURE__ */ u(Xe, { ref: t, component: "a", ...i }), a[0] = i, a[1] = t, a[2] = n) : n = a[2], n;
2763
- }), Sa = gi(Ia), dn = (e) => {
2764
- const i = E(2);
2765
- let t;
2766
- return i[0] !== e ? (t = /* @__PURE__ */ u(Sa, { ...e }), i[0] = e, i[1] = t) : t = i[1], t;
3380
+ return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(yi, { ref: i, component: "a", ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
3381
+ }), sn = Te(cn), Ln = (t) => {
3382
+ const e = Y.c(2);
3383
+ let i;
3384
+ return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(sn, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
2767
3385
  };
2768
- function mn() {
2769
- const e = E(6), {
2770
- t: i
2771
- } = Ui();
2772
- let t;
2773
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ u(li, { variant: "h3", component: "span", fontWeight: 500, sx: {
3386
+ function $n() {
3387
+ const t = Y.c(6), {
3388
+ t: e
3389
+ } = pt();
3390
+ let i;
3391
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ v.jsx(xe, { variant: "h3", component: "span", fontWeight: 500, sx: {
2774
3392
  lineHeight: 1
2775
- }, children: "404" }), e[0] = t) : t = e[0];
3393
+ }, children: "404" }), t[0] = i) : i = t[0];
2776
3394
  let a;
2777
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u(ye, { orientation: "vertical", flexItem: !0, sx: {
3395
+ t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ v.jsx(Mt, { orientation: "vertical", flexItem: !0, sx: {
2778
3396
  mx: 3
2779
- } }), e[1] = a) : a = e[1];
3397
+ } }), t[1] = a) : a = t[1];
2780
3398
  let n;
2781
- e[2] !== i ? (n = i("Layout.ThisPageCouldNotBeFound"), e[2] = i, e[3] = n) : n = e[3];
2782
- let o;
2783
- return e[4] !== n ? (o = /* @__PURE__ */ u(U, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ q(U, { display: "flex", alignItems: "center", mb: 4, children: [
2784
- t,
3399
+ t[2] !== e ? (n = e("Layout.ThisPageCouldNotBeFound"), t[2] = e, t[3] = n) : n = t[3];
3400
+ let r;
3401
+ return t[4] !== n ? (r = /* @__PURE__ */ v.jsx(ce, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ v.jsxs(ce, { display: "flex", alignItems: "center", mb: 4, children: [
3402
+ i,
2785
3403
  a,
2786
- /* @__PURE__ */ u(li, { variant: "h5", component: "span", children: n })
2787
- ] }) }), e[4] = n, e[5] = o) : o = e[5], o;
3404
+ /* @__PURE__ */ v.jsx(xe, { variant: "h5", component: "span", children: n })
3405
+ ] }) }), t[4] = n, t[5] = r) : r = t[5], r;
2788
3406
  }
2789
- const un = (e) => {
2790
- const i = E(9), {
2791
- error: t
2792
- } = e;
3407
+ const Mn = (t) => {
3408
+ const e = Y.c(9), {
3409
+ error: i
3410
+ } = t;
2793
3411
  let a;
2794
- i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
3412
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
2795
3413
  lineHeight: 1
2796
- }, i[0] = a) : a = i[0];
2797
- const n = t.name || "500";
2798
- let o;
2799
- i[1] !== n ? (o = /* @__PURE__ */ u(li, { variant: "h3", component: "span", fontWeight: 500, sx: a, children: n }), i[1] = n, i[2] = o) : o = i[2];
3414
+ }, e[0] = a) : a = e[0];
3415
+ const n = i.name || "500";
3416
+ let r;
3417
+ e[1] !== n ? (r = /* @__PURE__ */ v.jsx(xe, { variant: "h3", component: "span", fontWeight: 500, sx: a, children: n }), e[1] = n, e[2] = r) : r = e[2];
2800
3418
  let p;
2801
- i[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ u(ye, { orientation: "vertical", flexItem: !0, sx: {
3419
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ v.jsx(Mt, { orientation: "vertical", flexItem: !0, sx: {
2802
3420
  mx: 3
2803
- } }), i[3] = p) : p = i[3];
3421
+ } }), e[3] = p) : p = e[3];
2804
3422
  let l;
2805
- i[4] !== t.message ? (l = /* @__PURE__ */ u(li, { variant: "h5", component: "span", children: t.message }), i[4] = t.message, i[5] = l) : l = i[5];
3423
+ e[4] !== i.message ? (l = /* @__PURE__ */ v.jsx(xe, { variant: "h5", component: "span", children: i.message }), e[4] = i.message, e[5] = l) : l = e[5];
2806
3424
  let d;
2807
- return i[6] !== o || i[7] !== l ? (d = /* @__PURE__ */ u(U, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ q(U, { display: "flex", alignItems: "center", mb: 4, children: [
2808
- o,
3425
+ return e[6] !== r || e[7] !== l ? (d = /* @__PURE__ */ v.jsx(ce, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ v.jsxs(ce, { display: "flex", alignItems: "center", mb: 4, children: [
3426
+ r,
2809
3427
  p,
2810
3428
  l
2811
- ] }) }), i[6] = o, i[7] = l, i[8] = d) : d = i[8], d;
3429
+ ] }) }), e[6] = r, e[7] = l, e[8] = d) : d = e[8], d;
2812
3430
  };
2813
3431
  export {
2814
- on as ChipInputCell,
2815
- an as Dropzone,
2816
- pn as EditableColumnHeader,
2817
- nn as FileViewer,
2818
- tn as Fullscreen,
2819
- ln as RouterButton,
2820
- un as RouterError,
2821
- cn as RouterGridActionsCellItem,
2822
- rn as RouterIconButton,
2823
- sn as RouterLink,
2824
- xn as RouterListItemButton,
2825
- mn as RouterNotFound,
2826
- dn as RouterTab,
2827
- yt as TypographyWithIcon
3432
+ Rn as ChipInputCell,
3433
+ Cn as Dropzone,
3434
+ Pn as EditableColumnHeader,
3435
+ Sn as FileViewer,
3436
+ An as Fullscreen,
3437
+ In as RouterButton,
3438
+ Mn as RouterError,
3439
+ zn as RouterGridActionsCellItem,
3440
+ Fn as RouterIconButton,
3441
+ qn as RouterLink,
3442
+ Bn as RouterListItemButton,
3443
+ $n as RouterNotFound,
3444
+ Ln as RouterTab,
3445
+ Wi as TypographyWithIcon
2828
3446
  };
2829
3447
  //# sourceMappingURL=components.js.map