wcz-test 6.25.0 → 6.26.0

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 (47) hide show
  1. package/dist/DialogsContext-8xfQ3X-k.js +285 -0
  2. package/dist/DialogsContext-8xfQ3X-k.js.map +1 -0
  3. package/dist/DialogsHooks-Dz4ExWPV.js +232 -0
  4. package/dist/DialogsHooks-Dz4ExWPV.js.map +1 -0
  5. package/dist/FileHooks-T3wXKu_b.js +2695 -0
  6. package/dist/FileHooks-T3wXKu_b.js.map +1 -0
  7. package/dist/RouterListItemButton-Dmqima3h.js +661 -0
  8. package/dist/RouterListItemButton-Dmqima3h.js.map +1 -0
  9. package/dist/_commonjsHelpers-ByX85dGu.js +34 -0
  10. package/dist/_commonjsHelpers-ByX85dGu.js.map +1 -0
  11. package/dist/components.js +2666 -518
  12. package/dist/components.js.map +1 -1
  13. package/dist/env-BD4Wc07c.js +76 -0
  14. package/dist/env-BD4Wc07c.js.map +1 -0
  15. package/dist/hooks.js +908 -354
  16. package/dist/hooks.js.map +1 -1
  17. package/dist/i18next-Bx3TmZAT.js +1337 -0
  18. package/dist/i18next-Bx3TmZAT.js.map +1 -0
  19. package/dist/index-Biz5inV2.js +268 -0
  20. package/dist/index-Biz5inV2.js.map +1 -0
  21. package/dist/index.js +1085 -1417
  22. package/dist/index.js.map +1 -1
  23. package/dist/queries.js +3 -3
  24. package/dist/server.js +55 -27
  25. package/dist/server.js.map +1 -1
  26. package/dist/session-BCQDwl6n.js +8581 -0
  27. package/dist/session-BCQDwl6n.js.map +1 -0
  28. package/dist/utils-A7xW24zq.js +1850 -0
  29. package/dist/utils-A7xW24zq.js.map +1 -0
  30. package/dist/utils.js +7 -7
  31. package/dist/vite.js +11 -11
  32. package/dist/vite.js.map +1 -1
  33. package/package.json +15 -17
  34. package/dist/DialogsContext-2Yy6yhzQ.js +0 -6
  35. package/dist/DialogsContext-2Yy6yhzQ.js.map +0 -1
  36. package/dist/DialogsHooks-DWkC9zAf.js +0 -114
  37. package/dist/DialogsHooks-DWkC9zAf.js.map +0 -1
  38. package/dist/FileHooks-CltSzAf8.js +0 -300
  39. package/dist/FileHooks-CltSzAf8.js.map +0 -1
  40. package/dist/RouterListItemButton-C_SG0uka.js +0 -18
  41. package/dist/RouterListItemButton-C_SG0uka.js.map +0 -1
  42. package/dist/env-4ZoUrNqp.js +0 -28
  43. package/dist/env-4ZoUrNqp.js.map +0 -1
  44. package/dist/session-7yb0BETM.js +0 -76
  45. package/dist/session-7yb0BETM.js.map +0 -1
  46. package/dist/utils-CZraUjBd.js +0 -82
  47. package/dist/utils-CZraUjBd.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,770 +1,124 @@
1
- import { jsx as m, jsxs as q, Fragment as Wt } from "react/jsx-runtime";
2
- import { c as ae } from "react/compiler-runtime";
3
- import { Stack as Ut, Typography as Ft, Chip as qt, Collapse as Bt, useMediaQuery as Ht, useColorScheme as Vt, ListItemButton as ve, ListItemText as ye, ListItemIcon as Te, ListItem as Gt, Avatar as Kt, ListSubheader as Ge, List as Re, IconButton as Ye, Box as ze, Menu as Xt, InitColorSchemeScript as Zt, CssBaseline as Jt, AppBar as Qt, Toolbar as er, LinearProgress as tr, ThemeProvider as rr } from "@mui/material";
4
- import { createServerFn as Fe, createIsomorphicFn as nr } from "@tanstack/react-start";
5
- import { getCookie as Dt } from "@tanstack/react-start/server";
6
- import G from "dayjs";
7
- import ie from "i18next";
8
- import or from "i18next-browser-languagedetector";
9
- import * as ne from "react";
10
- import { useState as le, useId as ir, useRef as dt, Fragment as qe, useEffect as Lt, Suspense as ar, useEffectEvent as sr } from "react";
11
- import { useTranslation as lr, initReactI18next as cr } from "react-i18next";
12
- import { resources as mt } from "virtual:wcz-layout";
13
- import ge from "zod";
14
- import { D as ur } from "./DialogsContext-2Yy6yhzQ.js";
15
- import fr from "@mui/icons-material/Menu";
16
- import dr from "@mui/icons-material/MenuOpen";
17
- import { useThemeProps as mr, styled as at, useTheme as pr } from "@mui/material/styles";
18
- import { useIsFetching as hr, useIsMutating as yr } from "@tanstack/react-query";
19
- import { c as gr } from "./env-4ZoUrNqp.js";
20
- import At from "@mui/material/Box";
21
- import pt from "@mui/material/Drawer";
22
- import { useNavigate as vr, useRouterState as Tr, Await as ht } from "@tanstack/react-router";
23
- import br from "@mui/material/Divider";
24
- import xr from "@mui/material/List";
25
- import Sr from "@mui/material/ListSubheader";
26
- import Er from "@mui/icons-material/ExpandMore";
27
- import _r from "@mui/material/Avatar";
28
- import Or from "@mui/material/ListItem";
29
- import wr from "@mui/material/ListItemButton";
30
- import Cr from "@mui/material/ListItemIcon";
31
- import Mr from "@mui/material/ListItemText";
32
- import Pr from "@mui/material/Paper";
33
- import kr from "@mui/material/Popper";
34
- import Ir from "@mui/material/Typography";
35
- import { R as Dr } from "./RouterListItemButton-C_SG0uka.js";
36
- import Lr from "@mui/icons-material/AccountCircle";
37
- import yt from "@mui/icons-material/ArrowBack";
38
- import Ar from "@mui/icons-material/Brightness4";
39
- import gt from "@mui/icons-material/ChevronRight";
40
- import Rr from "@mui/icons-material/DarkMode";
41
- import jr from "@mui/icons-material/Done";
42
- import $r from "@mui/icons-material/LightMode";
43
- import Yr from "@mui/icons-material/Logout";
44
- import zr from "@mui/icons-material/SettingsBrightness";
45
- import Nr from "@mui/icons-material/Translate";
46
- import st from "axios";
47
- import { q as lt } from "./queryClient--EvGPhnh.js";
48
- import { r as Wr, g as ct } from "./session-7yb0BETM.js";
49
- import Ur from "dayjs/plugin/weekOfYear.js";
50
- import Fr from "dayjs/plugin/customParseFormat.js";
51
- import qr from "dayjs/plugin/localizedFormat.js";
52
- import Br from "dayjs/plugin/isBetween.js";
53
- import Hr from "dayjs/plugin/advancedFormat.js";
54
- import { W as Yo, a as zo, r as No } from "./utils-CZraUjBd.js";
55
- function We() {
56
- return We = Object.assign ? Object.assign.bind() : function(t) {
1
+ import { jsx as a, jsxs as D, Fragment as Mt } from "react/jsx-runtime";
2
+ import { c as R } from "react/compiler-runtime";
3
+ import { Stack as Ot, Typography as Ct, Chip as _t, Collapse as It, useMediaQuery as Et, useColorScheme as At, ListItemButton as ce, ListItemText as ae, ListItemIcon as de, ListItem as Pt, Avatar as $t, ListSubheader as qe, List as $e, IconButton as ze, Box as Ne, Menu as zt, InitColorSchemeScript as Nt, CssBaseline as jt, AppBar as Ut, Toolbar as Ft, LinearProgress as Yt, ThemeProvider as Bt } from "@mui/material";
4
+ import { createServerFn as Ye, createIsomorphicFn as Wt } from "@tanstack/react-start";
5
+ import { getCookie as yt } from "@tanstack/react-start/server";
6
+ import C from "dayjs";
7
+ import { i as W } from "./i18next-Bx3TmZAT.js";
8
+ import * as Y from "react";
9
+ import { useState as q, useId as Rt, useRef as ot, Fragment as Be, useEffect as xt, Suspense as Ht, useEffectEvent as qt } from "react";
10
+ import { resources as it } from "virtual:wcz-layout";
11
+ import le from "zod";
12
+ import { s as Vt, a as Gt, D as Kt, u as Qt } from "./DialogsContext-8xfQ3X-k.js";
13
+ import Xt from "@mui/icons-material/Menu";
14
+ import Zt from "@mui/icons-material/MenuOpen";
15
+ import { useThemeProps as Jt, styled as Ze, useTheme as en } from "@mui/material/styles";
16
+ import { useIsFetching as tn, useIsMutating as nn } from "@tanstack/react-query";
17
+ import { a as on } from "./env-BD4Wc07c.js";
18
+ import St from "@mui/material/Box";
19
+ import rt from "@mui/material/Drawer";
20
+ import { useNavigate as rn, useRouterState as sn, Await as st } from "@tanstack/react-router";
21
+ import an from "@mui/material/Divider";
22
+ import ln from "@mui/material/List";
23
+ import cn from "@mui/material/ListSubheader";
24
+ import dn from "@mui/icons-material/ExpandMore";
25
+ import un from "@mui/material/Avatar";
26
+ import fn from "@mui/material/ListItem";
27
+ import mn from "@mui/material/ListItemButton";
28
+ import hn from "@mui/material/ListItemIcon";
29
+ import pn from "@mui/material/ListItemText";
30
+ import gn from "@mui/material/Paper";
31
+ import yn from "@mui/material/Popper";
32
+ import xn from "@mui/material/Typography";
33
+ import { P as b, R as Sn } from "./RouterListItemButton-Dmqima3h.js";
34
+ import Tn from "@mui/icons-material/AccountCircle";
35
+ import at from "@mui/icons-material/ArrowBack";
36
+ import bn from "@mui/icons-material/Brightness4";
37
+ import lt from "@mui/icons-material/ChevronRight";
38
+ import wn from "@mui/icons-material/DarkMode";
39
+ import kn from "@mui/icons-material/Done";
40
+ import vn from "@mui/icons-material/LightMode";
41
+ import Ln from "@mui/icons-material/Logout";
42
+ import Dn from "@mui/icons-material/SettingsBrightness";
43
+ import Mn from "@mui/icons-material/Translate";
44
+ import { a as Je } from "./utils-A7xW24zq.js";
45
+ import { W as Ci, b as _i, r as Ii } from "./utils-A7xW24zq.js";
46
+ import { q as et } from "./queryClient--EvGPhnh.js";
47
+ import { r as On, c as tt } from "./session-BCQDwl6n.js";
48
+ import Cn from "dayjs/plugin/weekOfYear.js";
49
+ import _n from "dayjs/plugin/customParseFormat.js";
50
+ import In from "dayjs/plugin/localizedFormat.js";
51
+ import En from "dayjs/plugin/isBetween.js";
52
+ import An from "dayjs/plugin/advancedFormat.js";
53
+ function Ue() {
54
+ return Ue = Object.assign ? Object.assign.bind() : function(t) {
57
55
  for (var e = 1; e < arguments.length; e++) {
58
- var r = arguments[e];
59
- for (var o in r) ({}).hasOwnProperty.call(r, o) && (t[o] = r[o]);
56
+ var n = arguments[e];
57
+ for (var o in n) ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
60
58
  }
61
59
  return t;
62
- }, We.apply(null, arguments);
60
+ }, Ue.apply(null, arguments);
63
61
  }
64
- function Vr(t, e) {
62
+ function Pn(t, e) {
65
63
  if (t == null) return {};
66
- var r = {};
64
+ var n = {};
67
65
  for (var o in t) if ({}.hasOwnProperty.call(t, o)) {
68
66
  if (e.indexOf(o) !== -1) continue;
69
- r[o] = t[o];
67
+ n[o] = t[o];
70
68
  }
71
- return r;
69
+ return n;
72
70
  }
73
- function Gr(t) {
74
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
75
- }
76
- var je = { exports: {} }, $e = { exports: {} }, $ = {};
77
- var vt;
78
- function Kr() {
79
- if (vt) return $;
80
- vt = 1;
81
- var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, n = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, T = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, A = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
82
- function x(l) {
83
- if (typeof l == "object" && l !== null) {
84
- var j = l.$$typeof;
85
- switch (j) {
86
- case e:
87
- switch (l = l.type, l) {
88
- case f:
89
- case d:
90
- case o:
91
- case a:
92
- case s:
93
- case h:
94
- return l;
95
- default:
96
- switch (l = l && l.$$typeof, l) {
97
- case c:
98
- case u:
99
- case b:
100
- case g:
101
- case n:
102
- return l;
103
- default:
104
- return j;
105
- }
106
- }
107
- case r:
108
- return j;
109
- }
110
- }
111
- }
112
- function _(l) {
113
- return x(l) === d;
114
- }
115
- return $.AsyncMode = f, $.ConcurrentMode = d, $.ContextConsumer = c, $.ContextProvider = n, $.Element = e, $.ForwardRef = u, $.Fragment = o, $.Lazy = b, $.Memo = g, $.Portal = r, $.Profiler = a, $.StrictMode = s, $.Suspense = h, $.isAsyncMode = function(l) {
116
- return _(l) || x(l) === f;
117
- }, $.isConcurrentMode = _, $.isContextConsumer = function(l) {
118
- return x(l) === c;
119
- }, $.isContextProvider = function(l) {
120
- return x(l) === n;
121
- }, $.isElement = function(l) {
122
- return typeof l == "object" && l !== null && l.$$typeof === e;
123
- }, $.isForwardRef = function(l) {
124
- return x(l) === u;
125
- }, $.isFragment = function(l) {
126
- return x(l) === o;
127
- }, $.isLazy = function(l) {
128
- return x(l) === b;
129
- }, $.isMemo = function(l) {
130
- return x(l) === g;
131
- }, $.isPortal = function(l) {
132
- return x(l) === r;
133
- }, $.isProfiler = function(l) {
134
- return x(l) === a;
135
- }, $.isStrictMode = function(l) {
136
- return x(l) === s;
137
- }, $.isSuspense = function(l) {
138
- return x(l) === h;
139
- }, $.isValidElementType = function(l) {
140
- return typeof l == "string" || typeof l == "function" || l === o || l === d || l === a || l === s || l === h || l === v || typeof l == "object" && l !== null && (l.$$typeof === b || l.$$typeof === g || l.$$typeof === n || l.$$typeof === c || l.$$typeof === u || l.$$typeof === E || l.$$typeof === P || l.$$typeof === A || l.$$typeof === T);
141
- }, $.typeOf = x, $;
142
- }
143
- var Y = {};
144
- var Tt;
145
- function Xr() {
146
- return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && (function() {
147
- var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, n = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, T = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, A = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
148
- function x(p) {
149
- return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
150
- p === o || p === d || p === a || p === s || p === h || p === v || typeof p == "object" && p !== null && (p.$$typeof === b || p.$$typeof === g || p.$$typeof === n || p.$$typeof === c || p.$$typeof === u || p.$$typeof === E || p.$$typeof === P || p.$$typeof === A || p.$$typeof === T);
151
- }
152
- function _(p) {
153
- if (typeof p == "object" && p !== null) {
154
- var Q = p.$$typeof;
155
- switch (Q) {
156
- case e:
157
- var oe = p.type;
158
- switch (oe) {
159
- case f:
160
- case d:
161
- case o:
162
- case a:
163
- case s:
164
- case h:
165
- return oe;
166
- default:
167
- var se = oe && oe.$$typeof;
168
- switch (se) {
169
- case c:
170
- case u:
171
- case b:
172
- case g:
173
- case n:
174
- return se;
175
- default:
176
- return Q;
177
- }
178
- }
179
- case r:
180
- return Q;
181
- }
182
- }
183
- }
184
- var l = f, j = d, J = c, B = n, N = e, W = u, K = o, ee = b, Z = g, U = r, F = a, R = s, H = h, te = !1;
185
- function V(p) {
186
- return te || (te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(p) || _(p) === f;
187
- }
188
- function i(p) {
189
- return _(p) === d;
190
- }
191
- function y(p) {
192
- return _(p) === c;
193
- }
194
- function w(p) {
195
- return _(p) === n;
196
- }
197
- function O(p) {
198
- return typeof p == "object" && p !== null && p.$$typeof === e;
199
- }
200
- function S(p) {
201
- return _(p) === u;
202
- }
203
- function k(p) {
204
- return _(p) === o;
205
- }
206
- function C(p) {
207
- return _(p) === b;
208
- }
209
- function M(p) {
210
- return _(p) === g;
211
- }
212
- function I(p) {
213
- return _(p) === r;
214
- }
215
- function L(p) {
216
- return _(p) === a;
217
- }
218
- function D(p) {
219
- return _(p) === s;
220
- }
221
- function X(p) {
222
- return _(p) === h;
223
- }
224
- Y.AsyncMode = l, Y.ConcurrentMode = j, Y.ContextConsumer = J, Y.ContextProvider = B, Y.Element = N, Y.ForwardRef = W, Y.Fragment = K, Y.Lazy = ee, Y.Memo = Z, Y.Portal = U, Y.Profiler = F, Y.StrictMode = R, Y.Suspense = H, Y.isAsyncMode = V, Y.isConcurrentMode = i, Y.isContextConsumer = y, Y.isContextProvider = w, Y.isElement = O, Y.isForwardRef = S, Y.isFragment = k, Y.isLazy = C, Y.isMemo = M, Y.isPortal = I, Y.isProfiler = L, Y.isStrictMode = D, Y.isSuspense = X, Y.isValidElementType = x, Y.typeOf = _;
225
- })()), Y;
226
- }
227
- var bt;
228
- function Rt() {
229
- return bt || (bt = 1, process.env.NODE_ENV === "production" ? $e.exports = Kr() : $e.exports = Xr()), $e.exports;
230
- }
231
- var Ke, xt;
232
- function Zr() {
233
- if (xt) return Ke;
234
- xt = 1;
235
- var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
236
- function o(a) {
237
- if (a == null)
238
- throw new TypeError("Object.assign cannot be called with null or undefined");
239
- return Object(a);
240
- }
241
- function s() {
242
- try {
243
- if (!Object.assign)
244
- return !1;
245
- var a = new String("abc");
246
- if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
247
- return !1;
248
- for (var n = {}, c = 0; c < 10; c++)
249
- n["_" + String.fromCharCode(c)] = c;
250
- var f = Object.getOwnPropertyNames(n).map(function(u) {
251
- return n[u];
252
- });
253
- if (f.join("") !== "0123456789")
254
- return !1;
255
- var d = {};
256
- return "abcdefghijklmnopqrst".split("").forEach(function(u) {
257
- d[u] = u;
258
- }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
259
- } catch {
260
- return !1;
261
- }
262
- }
263
- return Ke = s() ? Object.assign : function(a, n) {
264
- for (var c, f = o(a), d, u = 1; u < arguments.length; u++) {
265
- c = Object(arguments[u]);
266
- for (var h in c)
267
- e.call(c, h) && (f[h] = c[h]);
268
- if (t) {
269
- d = t(c);
270
- for (var v = 0; v < d.length; v++)
271
- r.call(c, d[v]) && (f[d[v]] = c[d[v]]);
272
- }
273
- }
274
- return f;
275
- }, Ke;
276
- }
277
- var Xe, St;
278
- function ut() {
279
- if (St) return Xe;
280
- St = 1;
281
- var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
282
- return Xe = t, Xe;
283
- }
284
- var Ze, Et;
285
- function jt() {
286
- return Et || (Et = 1, Ze = Function.call.bind(Object.prototype.hasOwnProperty)), Ze;
287
- }
288
- var Je, _t;
289
- function Jr() {
290
- if (_t) return Je;
291
- _t = 1;
292
- var t = function() {
293
- };
294
- if (process.env.NODE_ENV !== "production") {
295
- var e = /* @__PURE__ */ ut(), r = {}, o = /* @__PURE__ */ jt();
296
- t = function(a) {
297
- var n = "Warning: " + a;
298
- typeof console < "u" && console.error(n);
299
- try {
300
- throw new Error(n);
301
- } catch {
302
- }
303
- };
304
- }
305
- function s(a, n, c, f, d) {
306
- if (process.env.NODE_ENV !== "production") {
307
- for (var u in a)
308
- if (o(a, u)) {
309
- var h;
310
- try {
311
- if (typeof a[u] != "function") {
312
- var v = Error(
313
- (f || "React class") + ": " + c + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
314
- );
315
- throw v.name = "Invariant Violation", v;
316
- }
317
- h = a[u](n, u, f, c, null, e);
318
- } catch (b) {
319
- h = b;
320
- }
321
- if (h && !(h instanceof Error) && t(
322
- (f || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
323
- ), h instanceof Error && !(h.message in r)) {
324
- r[h.message] = !0;
325
- var g = d ? d() : "";
326
- t(
327
- "Failed " + c + " type: " + h.message + (g ?? "")
328
- );
329
- }
330
- }
331
- }
332
- }
333
- return s.resetWarningCache = function() {
334
- process.env.NODE_ENV !== "production" && (r = {});
335
- }, Je = s, Je;
336
- }
337
- var Qe, Ot;
338
- function Qr() {
339
- if (Ot) return Qe;
340
- Ot = 1;
341
- var t = Rt(), e = Zr(), r = /* @__PURE__ */ ut(), o = /* @__PURE__ */ jt(), s = /* @__PURE__ */ Jr(), a = function() {
342
- };
343
- process.env.NODE_ENV !== "production" && (a = function(c) {
344
- var f = "Warning: " + c;
345
- typeof console < "u" && console.error(f);
346
- try {
347
- throw new Error(f);
348
- } catch {
349
- }
350
- });
351
- function n() {
352
- return null;
353
- }
354
- return Qe = function(c, f) {
355
- var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
356
- function h(i) {
357
- var y = i && (d && i[d] || i[u]);
358
- if (typeof y == "function")
359
- return y;
360
- }
361
- var v = "<<anonymous>>", g = {
362
- array: P("array"),
363
- bigint: P("bigint"),
364
- bool: P("boolean"),
365
- func: P("function"),
366
- number: P("number"),
367
- object: P("object"),
368
- string: P("string"),
369
- symbol: P("symbol"),
370
- any: A(),
371
- arrayOf: x,
372
- element: _(),
373
- elementType: l(),
374
- instanceOf: j,
375
- node: W(),
376
- objectOf: B,
377
- oneOf: J,
378
- oneOfType: N,
379
- shape: ee,
380
- exact: Z
381
- };
382
- function b(i, y) {
383
- return i === y ? i !== 0 || 1 / i === 1 / y : i !== i && y !== y;
384
- }
385
- function T(i, y) {
386
- this.message = i, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
387
- }
388
- T.prototype = Error.prototype;
389
- function E(i) {
390
- if (process.env.NODE_ENV !== "production")
391
- var y = {}, w = 0;
392
- function O(k, C, M, I, L, D, X) {
393
- if (I = I || v, D = D || M, X !== r) {
394
- if (f) {
395
- var p = new Error(
396
- "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"
397
- );
398
- throw p.name = "Invariant Violation", p;
399
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
400
- var Q = I + ":" + M;
401
- !y[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
402
- w < 3 && (a(
403
- "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + I + "`. 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."
404
- ), y[Q] = !0, w++);
405
- }
406
- }
407
- return C[M] == null ? k ? C[M] === null ? new T("The " + L + " `" + D + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new T("The " + L + " `" + D + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : i(C, M, I, L, D);
408
- }
409
- var S = O.bind(null, !1);
410
- return S.isRequired = O.bind(null, !0), S;
411
- }
412
- function P(i) {
413
- function y(w, O, S, k, C, M) {
414
- var I = w[O], L = R(I);
415
- if (L !== i) {
416
- var D = H(I);
417
- return new T(
418
- "Invalid " + k + " `" + C + "` of type " + ("`" + D + "` supplied to `" + S + "`, expected ") + ("`" + i + "`."),
419
- { expectedType: i }
420
- );
421
- }
422
- return null;
423
- }
424
- return E(y);
425
- }
426
- function A() {
427
- return E(n);
428
- }
429
- function x(i) {
430
- function y(w, O, S, k, C) {
431
- if (typeof i != "function")
432
- return new T("Property `" + C + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
433
- var M = w[O];
434
- if (!Array.isArray(M)) {
435
- var I = R(M);
436
- return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected an array."));
437
- }
438
- for (var L = 0; L < M.length; L++) {
439
- var D = i(M, L, S, k, C + "[" + L + "]", r);
440
- if (D instanceof Error)
441
- return D;
442
- }
443
- return null;
444
- }
445
- return E(y);
446
- }
447
- function _() {
448
- function i(y, w, O, S, k) {
449
- var C = y[w];
450
- if (!c(C)) {
451
- var M = R(C);
452
- return new T("Invalid " + S + " `" + k + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected a single ReactElement."));
453
- }
454
- return null;
455
- }
456
- return E(i);
457
- }
458
- function l() {
459
- function i(y, w, O, S, k) {
460
- var C = y[w];
461
- if (!t.isValidElementType(C)) {
462
- var M = R(C);
463
- return new T("Invalid " + S + " `" + k + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected a single ReactElement type."));
464
- }
465
- return null;
466
- }
467
- return E(i);
468
- }
469
- function j(i) {
470
- function y(w, O, S, k, C) {
471
- if (!(w[O] instanceof i)) {
472
- var M = i.name || v, I = V(w[O]);
473
- return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected ") + ("instance of `" + M + "`."));
474
- }
475
- return null;
476
- }
477
- return E(y);
478
- }
479
- function J(i) {
480
- if (!Array.isArray(i))
481
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
482
- "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])."
483
- ) : a("Invalid argument supplied to oneOf, expected an array.")), n;
484
- function y(w, O, S, k, C) {
485
- for (var M = w[O], I = 0; I < i.length; I++)
486
- if (b(M, i[I]))
487
- return null;
488
- var L = JSON.stringify(i, function(X, p) {
489
- var Q = H(p);
490
- return Q === "symbol" ? String(p) : p;
491
- });
492
- return new T("Invalid " + k + " `" + C + "` of value `" + String(M) + "` " + ("supplied to `" + S + "`, expected one of " + L + "."));
493
- }
494
- return E(y);
495
- }
496
- function B(i) {
497
- function y(w, O, S, k, C) {
498
- if (typeof i != "function")
499
- return new T("Property `" + C + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
500
- var M = w[O], I = R(M);
501
- if (I !== "object")
502
- return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected an object."));
503
- for (var L in M)
504
- if (o(M, L)) {
505
- var D = i(M, L, S, k, C + "." + L, r);
506
- if (D instanceof Error)
507
- return D;
508
- }
509
- return null;
510
- }
511
- return E(y);
512
- }
513
- function N(i) {
514
- if (!Array.isArray(i))
515
- return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), n;
516
- for (var y = 0; y < i.length; y++) {
517
- var w = i[y];
518
- if (typeof w != "function")
519
- return a(
520
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(w) + " at index " + y + "."
521
- ), n;
522
- }
523
- function O(S, k, C, M, I) {
524
- for (var L = [], D = 0; D < i.length; D++) {
525
- var X = i[D], p = X(S, k, C, M, I, r);
526
- if (p == null)
527
- return null;
528
- p.data && o(p.data, "expectedType") && L.push(p.data.expectedType);
529
- }
530
- var Q = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
531
- return new T("Invalid " + M + " `" + I + "` supplied to " + ("`" + C + "`" + Q + "."));
532
- }
533
- return E(O);
534
- }
535
- function W() {
536
- function i(y, w, O, S, k) {
537
- return U(y[w]) ? null : new T("Invalid " + S + " `" + k + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
538
- }
539
- return E(i);
540
- }
541
- function K(i, y, w, O, S) {
542
- return new T(
543
- (i || "React class") + ": " + y + " type `" + w + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
544
- );
545
- }
546
- function ee(i) {
547
- function y(w, O, S, k, C) {
548
- var M = w[O], I = R(M);
549
- if (I !== "object")
550
- return new T("Invalid " + k + " `" + C + "` of type `" + I + "` " + ("supplied to `" + S + "`, expected `object`."));
551
- for (var L in i) {
552
- var D = i[L];
553
- if (typeof D != "function")
554
- return K(S, k, C, L, H(D));
555
- var X = D(M, L, S, k, C + "." + L, r);
556
- if (X)
557
- return X;
558
- }
559
- return null;
560
- }
561
- return E(y);
562
- }
563
- function Z(i) {
564
- function y(w, O, S, k, C) {
565
- var M = w[O], I = R(M);
566
- if (I !== "object")
567
- return new T("Invalid " + k + " `" + C + "` of type `" + I + "` " + ("supplied to `" + S + "`, expected `object`."));
568
- var L = e({}, w[O], i);
569
- for (var D in L) {
570
- var X = i[D];
571
- if (o(i, D) && typeof X != "function")
572
- return K(S, k, C, D, H(X));
573
- if (!X)
574
- return new T(
575
- "Invalid " + k + " `" + C + "` key `" + D + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(w[O], null, " ") + `
576
- Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
577
- );
578
- var p = X(M, D, S, k, C + "." + D, r);
579
- if (p)
580
- return p;
581
- }
582
- return null;
583
- }
584
- return E(y);
585
- }
586
- function U(i) {
587
- switch (typeof i) {
588
- case "number":
589
- case "string":
590
- case "undefined":
591
- return !0;
592
- case "boolean":
593
- return !i;
594
- case "object":
595
- if (Array.isArray(i))
596
- return i.every(U);
597
- if (i === null || c(i))
598
- return !0;
599
- var y = h(i);
600
- if (y) {
601
- var w = y.call(i), O;
602
- if (y !== i.entries) {
603
- for (; !(O = w.next()).done; )
604
- if (!U(O.value))
605
- return !1;
606
- } else
607
- for (; !(O = w.next()).done; ) {
608
- var S = O.value;
609
- if (S && !U(S[1]))
610
- return !1;
611
- }
612
- } else
613
- return !1;
614
- return !0;
615
- default:
616
- return !1;
617
- }
618
- }
619
- function F(i, y) {
620
- return i === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
621
- }
622
- function R(i) {
623
- var y = typeof i;
624
- return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : F(y, i) ? "symbol" : y;
625
- }
626
- function H(i) {
627
- if (typeof i > "u" || i === null)
628
- return "" + i;
629
- var y = R(i);
630
- if (y === "object") {
631
- if (i instanceof Date)
632
- return "date";
633
- if (i instanceof RegExp)
634
- return "regexp";
635
- }
636
- return y;
637
- }
638
- function te(i) {
639
- var y = H(i);
640
- switch (y) {
641
- case "array":
642
- case "object":
643
- return "an " + y;
644
- case "boolean":
645
- case "date":
646
- case "regexp":
647
- return "a " + y;
648
- default:
649
- return y;
650
- }
651
- }
652
- function V(i) {
653
- return !i.constructor || !i.constructor.name ? v : i.constructor.name;
654
- }
655
- return g.checkPropTypes = s, g.resetWarningCache = s.resetWarningCache, g.PropTypes = g, g;
656
- }, Qe;
657
- }
658
- var et, wt;
659
- function en() {
660
- if (wt) return et;
661
- wt = 1;
662
- var t = /* @__PURE__ */ ut();
663
- function e() {
664
- }
665
- function r() {
666
- }
667
- return r.resetWarningCache = e, et = function() {
668
- function o(n, c, f, d, u, h) {
669
- if (h !== t) {
670
- var v = new Error(
671
- "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"
672
- );
673
- throw v.name = "Invariant Violation", v;
674
- }
675
- }
676
- o.isRequired = o;
677
- function s() {
678
- return o;
679
- }
680
- var a = {
681
- array: o,
682
- bigint: o,
683
- bool: o,
684
- func: o,
685
- number: o,
686
- object: o,
687
- string: o,
688
- symbol: o,
689
- any: o,
690
- arrayOf: s,
691
- element: o,
692
- elementType: o,
693
- instanceOf: s,
694
- node: o,
695
- objectOf: s,
696
- oneOf: s,
697
- oneOfType: s,
698
- shape: s,
699
- exact: s,
700
- checkPropTypes: r,
701
- resetWarningCache: e
702
- };
703
- return a.PropTypes = a, a;
704
- }, et;
705
- }
706
- var Ct;
707
- function tn() {
708
- if (Ct) return je.exports;
709
- if (Ct = 1, process.env.NODE_ENV !== "production") {
710
- var t = Rt(), e = !0;
711
- je.exports = /* @__PURE__ */ Qr()(t.isElement, e);
712
- } else
713
- je.exports = /* @__PURE__ */ en()();
714
- return je.exports;
715
- }
716
- var rn = /* @__PURE__ */ tn();
717
- const z = /* @__PURE__ */ Gr(rn), nn = ["localeText"], ot = /* @__PURE__ */ ne.createContext(null);
718
- process.env.NODE_ENV !== "production" && (ot.displayName = "PickerAdapterContext");
719
- const ft = function(e) {
71
+ const $n = ["localeText"], Qe = /* @__PURE__ */ Y.createContext(null);
72
+ process.env.NODE_ENV !== "production" && (Qe.displayName = "PickerAdapterContext");
73
+ const nt = function(e) {
720
74
  const {
721
- localeText: r
722
- } = e, o = Vr(e, nn), {
723
- adapter: s,
724
- localeText: a
725
- } = ne.useContext(ot) ?? {
75
+ localeText: n
76
+ } = e, o = Pn(e, $n), {
77
+ adapter: r,
78
+ localeText: s
79
+ } = Y.useContext(Qe) ?? {
726
80
  adapter: void 0,
727
81
  localeText: void 0
728
- }, n = mr({
82
+ }, i = Jt({
729
83
  // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
730
84
  // We will then merge this theme value with our value manually
731
85
  props: o,
732
86
  name: "MuiLocalizationProvider"
733
87
  }), {
734
- children: c,
735
- dateAdapter: f,
736
- dateFormats: d,
737
- dateLibInstance: u,
738
- adapterLocale: h,
739
- localeText: v
740
- } = n, g = ne.useMemo(() => We({}, v, a, r), [v, a, r]), b = ne.useMemo(() => {
741
- if (!f)
742
- return s || null;
743
- const P = new f({
744
- locale: h,
745
- formats: d,
746
- instance: u
88
+ children: l,
89
+ dateAdapter: c,
90
+ dateFormats: u,
91
+ dateLibInstance: d,
92
+ adapterLocale: m,
93
+ localeText: h
94
+ } = i, f = Y.useMemo(() => Ue({}, h, s, n), [h, s, n]), p = Y.useMemo(() => {
95
+ if (!c)
96
+ return r || null;
97
+ const w = new c({
98
+ locale: m,
99
+ formats: u,
100
+ instance: d
747
101
  });
748
- if (!P.isMUIAdapter)
102
+ if (!w.isMUIAdapter)
749
103
  throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`", "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", "More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
750
104
  `));
751
- return P;
752
- }, [f, h, d, u, s]), T = ne.useMemo(() => b ? {
753
- minDate: b.date("1900-01-01T00:00:00.000"),
754
- maxDate: b.date("2099-12-31T00:00:00.000")
755
- } : null, [b]), E = ne.useMemo(() => ({
756
- utils: b,
757
- adapter: b,
758
- defaultDates: T,
759
- localeText: g
760
- }), [T, b, g]);
761
- return /* @__PURE__ */ m(ot.Provider, {
762
- value: E,
763
- children: c
105
+ return w;
106
+ }, [c, m, u, d, r]), g = Y.useMemo(() => p ? {
107
+ minDate: p.date("1900-01-01T00:00:00.000"),
108
+ maxDate: p.date("2099-12-31T00:00:00.000")
109
+ } : null, [p]), x = Y.useMemo(() => ({
110
+ utils: p,
111
+ adapter: p,
112
+ defaultDates: g,
113
+ localeText: f
114
+ }), [g, p, f]);
115
+ return /* @__PURE__ */ a(Qe.Provider, {
116
+ value: x,
117
+ children: l
764
118
  });
765
119
  };
766
- process.env.NODE_ENV !== "production" && (ft.displayName = "LocalizationProvider");
767
- process.env.NODE_ENV !== "production" && (ft.propTypes = {
120
+ process.env.NODE_ENV !== "production" && (nt.displayName = "LocalizationProvider");
121
+ process.env.NODE_ENV !== "production" && (nt.propTypes = {
768
122
  // ----------------------------- Warning --------------------------------
769
123
  // | These PropTypes are generated from the TypeScript type definitions |
770
124
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -772,38 +126,38 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
772
126
  /**
773
127
  * Locale for the date library you are using
774
128
  */
775
- adapterLocale: z.any,
776
- children: z.node,
129
+ adapterLocale: b.any,
130
+ children: b.node,
777
131
  /**
778
132
  * Date library adapter class function.
779
133
  * @see See the localization provider {@link https://mui.com/x/react-date-pickers/quickstart/#integrate-provider-and-adapter date adapter setup section} for more details.
780
134
  */
781
- dateAdapter: z.func,
135
+ dateAdapter: b.func,
782
136
  /**
783
137
  * Formats that are used for any child pickers
784
138
  */
785
- dateFormats: z.shape({
786
- dayOfMonth: z.string,
787
- dayOfMonthFull: z.string,
788
- fullDate: z.string,
789
- fullTime12h: z.string,
790
- fullTime24h: z.string,
791
- hours12h: z.string,
792
- hours24h: z.string,
793
- keyboardDate: z.string,
794
- keyboardDateTime12h: z.string,
795
- keyboardDateTime24h: z.string,
796
- meridiem: z.string,
797
- minutes: z.string,
798
- month: z.string,
799
- monthShort: z.string,
800
- normalDate: z.string,
801
- normalDateWithWeekday: z.string,
802
- seconds: z.string,
803
- shortDate: z.string,
804
- weekday: z.string,
805
- weekdayShort: z.string,
806
- year: z.string
139
+ dateFormats: b.shape({
140
+ dayOfMonth: b.string,
141
+ dayOfMonthFull: b.string,
142
+ fullDate: b.string,
143
+ fullTime12h: b.string,
144
+ fullTime24h: b.string,
145
+ hours12h: b.string,
146
+ hours24h: b.string,
147
+ keyboardDate: b.string,
148
+ keyboardDateTime12h: b.string,
149
+ keyboardDateTime24h: b.string,
150
+ meridiem: b.string,
151
+ minutes: b.string,
152
+ month: b.string,
153
+ monthShort: b.string,
154
+ normalDate: b.string,
155
+ normalDateWithWeekday: b.string,
156
+ seconds: b.string,
157
+ shortDate: b.string,
158
+ weekday: b.string,
159
+ weekdayShort: b.string,
160
+ year: b.string
807
161
  }),
808
162
  /**
809
163
  * Date library instance you are using, if it has some global overrides
@@ -811,35 +165,35 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
811
165
  * dateLibInstance={momentTimeZone}
812
166
  * ```
813
167
  */
814
- dateLibInstance: z.any,
168
+ dateLibInstance: b.any,
815
169
  /**
816
170
  * Locale for components texts
817
171
  */
818
- localeText: z.object
172
+ localeText: b.object
819
173
  });
820
- const on = typeof window < "u" ? ne.useLayoutEffect : ne.useEffect;
821
- function tt(t) {
822
- const e = ne.useRef(t);
823
- return on(() => {
174
+ const zn = typeof window < "u" ? Y.useLayoutEffect : Y.useEffect;
175
+ function Ve(t) {
176
+ const e = Y.useRef(t);
177
+ return zn(() => {
824
178
  e.current = t;
825
- }), ne.useRef((...r) => (
179
+ }), Y.useRef((...n) => (
826
180
  // @ts-expect-error hide `this`
827
- (0, e.current)(...r)
181
+ (0, e.current)(...n)
828
182
  )).current;
829
183
  }
830
- const Mt = /* @__PURE__ */ new Set();
831
- function an(t, e = "warning") {
184
+ const ct = /* @__PURE__ */ new Set();
185
+ function Nn(t, e = "warning") {
832
186
  if (process.env.NODE_ENV === "production")
833
187
  return;
834
- const r = Array.isArray(t) ? t.join(`
188
+ const n = Array.isArray(t) ? t.join(`
835
189
  `) : t;
836
- Mt.has(r) || (Mt.add(r), e === "error" ? console.error(r) : console.warn(r));
190
+ ct.has(n) || (ct.add(n), e === "error" ? console.error(n) : console.warn(n));
837
191
  }
838
- G.extend(qr);
839
- G.extend(Ur);
840
- G.extend(Br);
841
- G.extend(Hr);
842
- const sn = {
192
+ C.extend(In);
193
+ C.extend(Cn);
194
+ C.extend(En);
195
+ C.extend(An);
196
+ const jn = {
843
197
  // Year
844
198
  YY: "year",
845
199
  YYYY: {
@@ -921,7 +275,7 @@ const sn = {
921
275
  maxLength: 2
922
276
  },
923
277
  ss: "seconds"
924
- }, ln = {
278
+ }, Un = {
925
279
  year: "YYYY",
926
280
  month: "MMMM",
927
281
  monthShort: "MMM",
@@ -943,10 +297,10 @@ const sn = {
943
297
  fullTime24h: "HH:mm",
944
298
  keyboardDateTime12h: "L hh:mm A",
945
299
  keyboardDateTime24h: "L HH:mm"
946
- }, rt = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
947
- `), Pt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
300
+ }, Ge = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
301
+ `), dt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
948
302
  `);
949
- class cn {
303
+ class Fn {
950
304
  isMUIAdapter = !0;
951
305
  isTimezoneCompatible = !0;
952
306
  lib = "dayjs";
@@ -954,22 +308,22 @@ class cn {
954
308
  start: "[",
955
309
  end: "]"
956
310
  };
957
- formatTokenMap = sn;
311
+ formatTokenMap = jn;
958
312
  constructor({
959
313
  locale: e,
960
- formats: r
314
+ formats: n
961
315
  } = {}) {
962
- this.locale = e, this.formats = We({}, ln, r), G.extend(Fr);
316
+ this.locale = e, this.formats = Ue({}, Un, n), C.extend(_n);
963
317
  }
964
318
  setLocaleToValue = (e) => {
965
- const r = this.getCurrentLocaleCode();
966
- return r === e.locale() ? e : e.locale(r);
319
+ const n = this.getCurrentLocaleCode();
320
+ return n === e.locale() ? e : e.locale(n);
967
321
  };
968
- hasUTCPlugin = () => typeof G.utc < "u";
969
- hasTimezonePlugin = () => typeof G.tz < "u";
970
- isSame = (e, r, o) => {
971
- const s = this.setTimezone(r, this.getTimezone(e));
972
- return e.format(o) === s.format(o);
322
+ hasUTCPlugin = () => typeof C.utc < "u";
323
+ hasTimezonePlugin = () => typeof C.tz < "u";
324
+ isSame = (e, n, o) => {
325
+ const r = this.setTimezone(n, this.getTimezone(e));
326
+ return e.format(o) === r.format(o);
973
327
  };
974
328
  /**
975
329
  * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
@@ -979,37 +333,37 @@ class cn {
979
333
  case "default":
980
334
  return;
981
335
  case "system":
982
- return G.tz.guess();
336
+ return C.tz.guess();
983
337
  default:
984
338
  return e;
985
339
  }
986
340
  };
987
341
  createSystemDate = (e) => {
988
- let r;
342
+ let n;
989
343
  if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
990
- const o = G.tz.guess();
991
- o === "UTC" ? r = G(e) : r = G.tz(e, o);
344
+ const o = C.tz.guess();
345
+ o === "UTC" ? n = C(e) : n = C.tz(e, o);
992
346
  } else
993
- r = G(e);
994
- return this.setLocaleToValue(r);
347
+ n = C(e);
348
+ return this.setLocaleToValue(n);
995
349
  };
996
350
  createUTCDate = (e) => {
997
351
  if (!this.hasUTCPlugin())
998
- throw new Error(rt);
999
- return this.setLocaleToValue(G.utc(e));
352
+ throw new Error(Ge);
353
+ return this.setLocaleToValue(C.utc(e));
1000
354
  };
1001
- createTZDate = (e, r) => {
355
+ createTZDate = (e, n) => {
1002
356
  if (!this.hasUTCPlugin())
1003
- throw new Error(rt);
357
+ throw new Error(Ge);
1004
358
  if (!this.hasTimezonePlugin())
1005
- throw new Error(Pt);
359
+ throw new Error(dt);
1006
360
  const o = e !== void 0 && !e.endsWith("Z");
1007
- return this.setLocaleToValue(G(e).tz(this.cleanTimezone(r), o));
361
+ return this.setLocaleToValue(C(e).tz(this.cleanTimezone(n), o));
1008
362
  };
1009
363
  getLocaleFormats = () => {
1010
- const e = G.Ls, r = this.locale || "en";
1011
- let o = e[r];
1012
- return o === void 0 && (process.env.NODE_ENV !== "production" && an(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), o = e.en), o.formats;
364
+ const e = C.Ls, n = this.locale || "en";
365
+ let o = e[n];
366
+ return o === void 0 && (process.env.NODE_ENV !== "production" && Nn(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), o = e.en), o.formats;
1013
367
  };
1014
368
  /**
1015
369
  * If the new day does not have the same offset as the old one (when switching to summer day time for example),
@@ -1020,69 +374,69 @@ class cn {
1020
374
  adjustOffset = (e) => {
1021
375
  if (!this.hasTimezonePlugin())
1022
376
  return e;
1023
- const r = this.getTimezone(e);
1024
- if (r !== "UTC") {
1025
- const o = e.tz(this.cleanTimezone(r), !0);
377
+ const n = this.getTimezone(e);
378
+ if (n !== "UTC") {
379
+ const o = e.tz(this.cleanTimezone(n), !0);
1026
380
  if (o.$offset === (e.$offset ?? 0))
1027
381
  return e;
1028
382
  e.$offset = o.$offset;
1029
383
  }
1030
384
  return e;
1031
385
  };
1032
- date = (e, r = "default") => e === null ? null : r === "UTC" ? this.createUTCDate(e) : r === "system" || r === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, r);
1033
- getInvalidDate = () => G(/* @__PURE__ */ new Date("Invalid date"));
386
+ date = (e, n = "default") => e === null ? null : n === "UTC" ? this.createUTCDate(e) : n === "system" || n === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, n);
387
+ getInvalidDate = () => C(/* @__PURE__ */ new Date("Invalid date"));
1034
388
  getTimezone = (e) => {
1035
389
  if (this.hasTimezonePlugin()) {
1036
- const r = e.$x?.$timezone;
1037
- if (r)
1038
- return r;
390
+ const n = e.$x?.$timezone;
391
+ if (n)
392
+ return n;
1039
393
  }
1040
394
  return this.hasUTCPlugin() && e.isUTC() ? "UTC" : "system";
1041
395
  };
1042
- setTimezone = (e, r) => {
1043
- if (this.getTimezone(e) === r)
396
+ setTimezone = (e, n) => {
397
+ if (this.getTimezone(e) === n)
1044
398
  return e;
1045
- if (r === "UTC") {
399
+ if (n === "UTC") {
1046
400
  if (!this.hasUTCPlugin())
1047
- throw new Error(rt);
401
+ throw new Error(Ge);
1048
402
  return e.utc();
1049
403
  }
1050
- if (r === "system")
404
+ if (n === "system")
1051
405
  return e.local();
1052
406
  if (!this.hasTimezonePlugin()) {
1053
- if (r === "default")
407
+ if (n === "default")
1054
408
  return e;
1055
- throw new Error(Pt);
409
+ throw new Error(dt);
1056
410
  }
1057
- return this.setLocaleToValue(G.tz(e, this.cleanTimezone(r)));
411
+ return this.setLocaleToValue(C.tz(e, this.cleanTimezone(n)));
1058
412
  };
1059
413
  toJsDate = (e) => e.toDate();
1060
- parse = (e, r) => e === "" ? null : G(e, r, this.locale, !0);
414
+ parse = (e, n) => e === "" ? null : C(e, n, this.locale, !0);
1061
415
  getCurrentLocaleCode = () => this.locale || "en";
1062
416
  is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
1063
417
  expandFormat = (e) => {
1064
- const r = this.getLocaleFormats(), o = (s) => s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (a, n, c) => n || c.slice(1));
1065
- return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (s, a, n) => {
1066
- const c = n && n.toUpperCase();
1067
- return a || r[n] || o(r[c]);
418
+ const n = this.getLocaleFormats(), o = (r) => r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (s, i, l) => i || l.slice(1));
419
+ return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (r, s, i) => {
420
+ const l = i && i.toUpperCase();
421
+ return s || n[i] || o(n[l]);
1068
422
  });
1069
423
  };
1070
424
  isValid = (e) => e == null ? !1 : e.isValid();
1071
- format = (e, r) => this.formatByString(e, this.formats[r]);
1072
- formatByString = (e, r) => this.setLocaleToValue(e).format(r);
425
+ format = (e, n) => this.formatByString(e, this.formats[n]);
426
+ formatByString = (e, n) => this.setLocaleToValue(e).format(n);
1073
427
  formatNumber = (e) => e;
1074
- isEqual = (e, r) => e === null && r === null ? !0 : e === null || r === null ? !1 : e.toDate().getTime() === r.toDate().getTime();
1075
- isSameYear = (e, r) => this.isSame(e, r, "YYYY");
1076
- isSameMonth = (e, r) => this.isSame(e, r, "YYYY-MM");
1077
- isSameDay = (e, r) => this.isSame(e, r, "YYYY-MM-DD");
1078
- isSameHour = (e, r) => e.isSame(r, "hour");
1079
- isAfter = (e, r) => e > r;
1080
- isAfterYear = (e, r) => this.hasUTCPlugin() ? !this.isSameYear(e, r) && e.utc() > r.utc() : e.isAfter(r, "year");
1081
- isAfterDay = (e, r) => this.hasUTCPlugin() ? !this.isSameDay(e, r) && e.utc() > r.utc() : e.isAfter(r, "day");
1082
- isBefore = (e, r) => e < r;
1083
- isBeforeYear = (e, r) => this.hasUTCPlugin() ? !this.isSameYear(e, r) && e.utc() < r.utc() : e.isBefore(r, "year");
1084
- isBeforeDay = (e, r) => this.hasUTCPlugin() ? !this.isSameDay(e, r) && e.utc() < r.utc() : e.isBefore(r, "day");
1085
- isWithinRange = (e, [r, o]) => e >= r && e <= o;
428
+ isEqual = (e, n) => e === null && n === null ? !0 : e === null || n === null ? !1 : e.toDate().getTime() === n.toDate().getTime();
429
+ isSameYear = (e, n) => this.isSame(e, n, "YYYY");
430
+ isSameMonth = (e, n) => this.isSame(e, n, "YYYY-MM");
431
+ isSameDay = (e, n) => this.isSame(e, n, "YYYY-MM-DD");
432
+ isSameHour = (e, n) => e.isSame(n, "hour");
433
+ isAfter = (e, n) => e > n;
434
+ isAfterYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() > n.utc() : e.isAfter(n, "year");
435
+ isAfterDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() > n.utc() : e.isAfter(n, "day");
436
+ isBefore = (e, n) => e < n;
437
+ isBeforeYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() < n.utc() : e.isBefore(n, "year");
438
+ isBeforeDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() < n.utc() : e.isBefore(n, "day");
439
+ isWithinRange = (e, [n, o]) => e >= n && e <= o;
1086
440
  startOfYear = (e) => this.adjustOffset(e.startOf("year"));
1087
441
  startOfMonth = (e) => this.adjustOffset(e.startOf("month"));
1088
442
  startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week"));
@@ -1091,13 +445,13 @@ class cn {
1091
445
  endOfMonth = (e) => this.adjustOffset(e.endOf("month"));
1092
446
  endOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).endOf("week"));
1093
447
  endOfDay = (e) => this.adjustOffset(e.endOf("day"));
1094
- addYears = (e, r) => this.adjustOffset(e.add(r, "year"));
1095
- addMonths = (e, r) => this.adjustOffset(e.add(r, "month"));
1096
- addWeeks = (e, r) => this.adjustOffset(e.add(r, "week"));
1097
- addDays = (e, r) => this.adjustOffset(e.add(r, "day"));
1098
- addHours = (e, r) => this.adjustOffset(e.add(r, "hour"));
1099
- addMinutes = (e, r) => this.adjustOffset(e.add(r, "minute"));
1100
- addSeconds = (e, r) => this.adjustOffset(e.add(r, "second"));
448
+ addYears = (e, n) => this.adjustOffset(e.add(n, "year"));
449
+ addMonths = (e, n) => this.adjustOffset(e.add(n, "month"));
450
+ addWeeks = (e, n) => this.adjustOffset(e.add(n, "week"));
451
+ addDays = (e, n) => this.adjustOffset(e.add(n, "day"));
452
+ addHours = (e, n) => this.adjustOffset(e.add(n, "hour"));
453
+ addMinutes = (e, n) => this.adjustOffset(e.add(n, "minute"));
454
+ addSeconds = (e, n) => this.adjustOffset(e.add(n, "second"));
1101
455
  getYear = (e) => e.year();
1102
456
  getMonth = (e) => e.month();
1103
457
  getDate = (e) => e.date();
@@ -1105,102 +459,416 @@ class cn {
1105
459
  getMinutes = (e) => e.minute();
1106
460
  getSeconds = (e) => e.second();
1107
461
  getMilliseconds = (e) => e.millisecond();
1108
- setYear = (e, r) => this.adjustOffset(e.set("year", r));
1109
- setMonth = (e, r) => this.adjustOffset(e.set("month", r));
1110
- setDate = (e, r) => this.adjustOffset(e.set("date", r));
1111
- setHours = (e, r) => this.adjustOffset(e.set("hour", r));
1112
- setMinutes = (e, r) => this.adjustOffset(e.set("minute", r));
1113
- setSeconds = (e, r) => this.adjustOffset(e.set("second", r));
1114
- setMilliseconds = (e, r) => this.adjustOffset(e.set("millisecond", r));
462
+ setYear = (e, n) => this.adjustOffset(e.set("year", n));
463
+ setMonth = (e, n) => this.adjustOffset(e.set("month", n));
464
+ setDate = (e, n) => this.adjustOffset(e.set("date", n));
465
+ setHours = (e, n) => this.adjustOffset(e.set("hour", n));
466
+ setMinutes = (e, n) => this.adjustOffset(e.set("minute", n));
467
+ setSeconds = (e, n) => this.adjustOffset(e.set("second", n));
468
+ setMilliseconds = (e, n) => this.adjustOffset(e.set("millisecond", n));
1115
469
  getDaysInMonth = (e) => e.daysInMonth();
1116
470
  getWeekArray = (e) => {
1117
- const r = this.startOfWeek(this.startOfMonth(e)), o = this.endOfWeek(this.endOfMonth(e));
1118
- let s = 0, a = r;
1119
- const n = [];
1120
- for (; a < o; ) {
1121
- const c = Math.floor(s / 7);
1122
- n[c] = n[c] || [], n[c].push(a), a = this.addDays(a, 1), s += 1;
1123
- }
1124
- return n;
471
+ const n = this.startOfWeek(this.startOfMonth(e)), o = this.endOfWeek(this.endOfMonth(e));
472
+ let r = 0, s = n;
473
+ const i = [];
474
+ for (; s < o; ) {
475
+ const l = Math.floor(r / 7);
476
+ i[l] = i[l] || [], i[l].push(s), s = this.addDays(s, 1), r += 1;
477
+ }
478
+ return i;
1125
479
  };
1126
480
  getWeekNumber = (e) => e.week();
1127
481
  getDayOfWeek(e) {
1128
482
  return e.day() + 1;
1129
483
  }
1130
- getYearRange = ([e, r]) => {
1131
- const o = this.startOfYear(e), s = this.endOfYear(r), a = [];
1132
- let n = o;
1133
- for (; this.isBefore(n, s); )
1134
- a.push(n), n = this.addYears(n, 1);
1135
- return a;
484
+ getYearRange = ([e, n]) => {
485
+ const o = this.startOfYear(e), r = this.endOfYear(n), s = [];
486
+ let i = o;
487
+ for (; this.isBefore(i, r); )
488
+ s.push(i), i = this.addYears(i, 1);
489
+ return s;
1136
490
  };
1137
491
  }
1138
- function un({
492
+ const {
493
+ slice: Yn,
494
+ forEach: Bn
495
+ } = [];
496
+ function Wn(t) {
497
+ return Bn.call(Yn.call(arguments, 1), (e) => {
498
+ if (e)
499
+ for (const n in e)
500
+ t[n] === void 0 && (t[n] = e[n]);
501
+ }), t;
502
+ }
503
+ function Rn(t) {
504
+ return typeof t != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((n) => n.test(t));
505
+ }
506
+ const ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, e) {
507
+ const o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
508
+ path: "/"
509
+ }, r = encodeURIComponent(e);
510
+ let s = `${t}=${r}`;
511
+ if (o.maxAge > 0) {
512
+ const i = o.maxAge - 0;
513
+ if (Number.isNaN(i)) throw new Error("maxAge should be a Number");
514
+ s += `; Max-Age=${Math.floor(i)}`;
515
+ }
516
+ if (o.domain) {
517
+ if (!ut.test(o.domain))
518
+ throw new TypeError("option domain is invalid");
519
+ s += `; Domain=${o.domain}`;
520
+ }
521
+ if (o.path) {
522
+ if (!ut.test(o.path))
523
+ throw new TypeError("option path is invalid");
524
+ s += `; Path=${o.path}`;
525
+ }
526
+ if (o.expires) {
527
+ if (typeof o.expires.toUTCString != "function")
528
+ throw new TypeError("option expires is invalid");
529
+ s += `; Expires=${o.expires.toUTCString()}`;
530
+ }
531
+ if (o.httpOnly && (s += "; HttpOnly"), o.secure && (s += "; Secure"), o.sameSite)
532
+ switch (typeof o.sameSite == "string" ? o.sameSite.toLowerCase() : o.sameSite) {
533
+ case !0:
534
+ s += "; SameSite=Strict";
535
+ break;
536
+ case "lax":
537
+ s += "; SameSite=Lax";
538
+ break;
539
+ case "strict":
540
+ s += "; SameSite=Strict";
541
+ break;
542
+ case "none":
543
+ s += "; SameSite=None";
544
+ break;
545
+ default:
546
+ throw new TypeError("option sameSite is invalid");
547
+ }
548
+ return o.partitioned && (s += "; Partitioned"), s;
549
+ }, ft = {
550
+ create(t, e, n, o) {
551
+ let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
552
+ path: "/",
553
+ sameSite: "strict"
554
+ };
555
+ n && (r.expires = /* @__PURE__ */ new Date(), r.expires.setTime(r.expires.getTime() + n * 60 * 1e3)), o && (r.domain = o), document.cookie = Hn(t, e, r);
556
+ },
557
+ read(t) {
558
+ const e = `${t}=`, n = document.cookie.split(";");
559
+ for (let o = 0; o < n.length; o++) {
560
+ let r = n[o];
561
+ for (; r.charAt(0) === " "; ) r = r.substring(1, r.length);
562
+ if (r.indexOf(e) === 0) return r.substring(e.length, r.length);
563
+ }
564
+ return null;
565
+ },
566
+ remove(t, e) {
567
+ this.create(t, "", -1, e);
568
+ }
569
+ };
570
+ var qn = {
571
+ name: "cookie",
572
+ // Deconstruct the options object and extract the lookupCookie property
573
+ lookup(t) {
574
+ let {
575
+ lookupCookie: e
576
+ } = t;
577
+ if (e && typeof document < "u")
578
+ return ft.read(e) || void 0;
579
+ },
580
+ // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
581
+ cacheUserLanguage(t, e) {
582
+ let {
583
+ lookupCookie: n,
584
+ cookieMinutes: o,
585
+ cookieDomain: r,
586
+ cookieOptions: s
587
+ } = e;
588
+ n && typeof document < "u" && ft.create(n, t, o, r, s);
589
+ }
590
+ }, Vn = {
591
+ name: "querystring",
592
+ // Deconstruct the options object and extract the lookupQuerystring property
593
+ lookup(t) {
594
+ let {
595
+ lookupQuerystring: e
596
+ } = t, n;
597
+ if (typeof window < "u") {
598
+ let {
599
+ search: o
600
+ } = window.location;
601
+ !window.location.search && window.location.hash?.indexOf("?") > -1 && (o = window.location.hash.substring(window.location.hash.indexOf("?")));
602
+ const s = o.substring(1).split("&");
603
+ for (let i = 0; i < s.length; i++) {
604
+ const l = s[i].indexOf("=");
605
+ l > 0 && s[i].substring(0, l) === e && (n = s[i].substring(l + 1));
606
+ }
607
+ }
608
+ return n;
609
+ }
610
+ }, Gn = {
611
+ name: "hash",
612
+ // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
613
+ lookup(t) {
614
+ let {
615
+ lookupHash: e,
616
+ lookupFromHashIndex: n
617
+ } = t, o;
618
+ if (typeof window < "u") {
619
+ const {
620
+ hash: r
621
+ } = window.location;
622
+ if (r && r.length > 2) {
623
+ const s = r.substring(1);
624
+ if (e) {
625
+ const i = s.split("&");
626
+ for (let l = 0; l < i.length; l++) {
627
+ const c = i[l].indexOf("=");
628
+ c > 0 && i[l].substring(0, c) === e && (o = i[l].substring(c + 1));
629
+ }
630
+ }
631
+ if (o) return o;
632
+ if (!o && n > -1) {
633
+ const i = r.match(/\/([a-zA-Z-]*)/g);
634
+ return Array.isArray(i) ? i[typeof n == "number" ? n : 0]?.replace("/", "") : void 0;
635
+ }
636
+ }
637
+ }
638
+ return o;
639
+ }
640
+ };
641
+ let re = null;
642
+ const mt = () => {
643
+ if (re !== null) return re;
644
+ try {
645
+ if (re = typeof window < "u" && window.localStorage !== null, !re)
646
+ return !1;
647
+ const t = "i18next.translate.boo";
648
+ window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
649
+ } catch {
650
+ re = !1;
651
+ }
652
+ return re;
653
+ };
654
+ var Kn = {
655
+ name: "localStorage",
656
+ // Deconstruct the options object and extract the lookupLocalStorage property
657
+ lookup(t) {
658
+ let {
659
+ lookupLocalStorage: e
660
+ } = t;
661
+ if (e && mt())
662
+ return window.localStorage.getItem(e) || void 0;
663
+ },
664
+ // Deconstruct the options object and extract the lookupLocalStorage property
665
+ cacheUserLanguage(t, e) {
666
+ let {
667
+ lookupLocalStorage: n
668
+ } = e;
669
+ n && mt() && window.localStorage.setItem(n, t);
670
+ }
671
+ };
672
+ let se = null;
673
+ const ht = () => {
674
+ if (se !== null) return se;
675
+ try {
676
+ if (se = typeof window < "u" && window.sessionStorage !== null, !se)
677
+ return !1;
678
+ const t = "i18next.translate.boo";
679
+ window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
680
+ } catch {
681
+ se = !1;
682
+ }
683
+ return se;
684
+ };
685
+ var Qn = {
686
+ name: "sessionStorage",
687
+ lookup(t) {
688
+ let {
689
+ lookupSessionStorage: e
690
+ } = t;
691
+ if (e && ht())
692
+ return window.sessionStorage.getItem(e) || void 0;
693
+ },
694
+ cacheUserLanguage(t, e) {
695
+ let {
696
+ lookupSessionStorage: n
697
+ } = e;
698
+ n && ht() && window.sessionStorage.setItem(n, t);
699
+ }
700
+ }, Xn = {
701
+ name: "navigator",
702
+ lookup(t) {
703
+ const e = [];
704
+ if (typeof navigator < "u") {
705
+ const {
706
+ languages: n,
707
+ userLanguage: o,
708
+ language: r
709
+ } = navigator;
710
+ if (n)
711
+ for (let s = 0; s < n.length; s++)
712
+ e.push(n[s]);
713
+ o && e.push(o), r && e.push(r);
714
+ }
715
+ return e.length > 0 ? e : void 0;
716
+ }
717
+ }, Zn = {
718
+ name: "htmlTag",
719
+ // Deconstruct the options object and extract the htmlTag property
720
+ lookup(t) {
721
+ let {
722
+ htmlTag: e
723
+ } = t, n;
724
+ const o = e || (typeof document < "u" ? document.documentElement : null);
725
+ return o && typeof o.getAttribute == "function" && (n = o.getAttribute("lang")), n;
726
+ }
727
+ }, Jn = {
728
+ name: "path",
729
+ // Deconstruct the options object and extract the lookupFromPathIndex property
730
+ lookup(t) {
731
+ let {
732
+ lookupFromPathIndex: e
733
+ } = t;
734
+ if (typeof window > "u") return;
735
+ const n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
736
+ return Array.isArray(n) ? n[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
737
+ }
738
+ }, eo = {
739
+ name: "subdomain",
740
+ lookup(t) {
741
+ let {
742
+ lookupFromSubdomainIndex: e
743
+ } = t;
744
+ const n = typeof e == "number" ? e + 1 : 1, o = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
745
+ if (o)
746
+ return o[n];
747
+ }
748
+ };
749
+ let Tt = !1;
750
+ try {
751
+ document.cookie, Tt = !0;
752
+ } catch {
753
+ }
754
+ const bt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
755
+ Tt || bt.splice(1, 1);
756
+ const to = () => ({
757
+ order: bt,
758
+ lookupQuerystring: "lng",
759
+ lookupCookie: "i18next",
760
+ lookupLocalStorage: "i18nextLng",
761
+ lookupSessionStorage: "i18nextLng",
762
+ // cache user language
763
+ caches: ["localStorage"],
764
+ excludeCacheFor: ["cimode"],
765
+ // cookieMinutes: 10,
766
+ // cookieDomain: 'myDomain'
767
+ convertDetectedLanguage: (t) => t
768
+ });
769
+ class wt {
770
+ constructor(e) {
771
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
772
+ this.type = "languageDetector", this.detectors = {}, this.init(e, n);
773
+ }
774
+ init() {
775
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
776
+ languageUtils: {}
777
+ }, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
778
+ this.services = e, this.options = Wn(n, this.options || {}, to()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (r) => r.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = o, this.addDetector(qn), this.addDetector(Vn), this.addDetector(Kn), this.addDetector(Qn), this.addDetector(Xn), this.addDetector(Zn), this.addDetector(Jn), this.addDetector(eo), this.addDetector(Gn);
779
+ }
780
+ addDetector(e) {
781
+ return this.detectors[e.name] = e, this;
782
+ }
783
+ detect() {
784
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.order, n = [];
785
+ return e.forEach((o) => {
786
+ if (this.detectors[o]) {
787
+ let r = this.detectors[o].lookup(this.options);
788
+ r && typeof r == "string" && (r = [r]), r && (n = n.concat(r));
789
+ }
790
+ }), n = n.filter((o) => o != null && !Rn(o)).map((o) => this.options.convertDetectedLanguage(o)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? n : n.length > 0 ? n[0] : null;
791
+ }
792
+ cacheUserLanguage(e) {
793
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
794
+ n && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(e) > -1 || n.forEach((o) => {
795
+ this.detectors[o] && this.detectors[o].cacheUserLanguage(e, this.options);
796
+ }));
797
+ }
798
+ }
799
+ wt.type = "languageDetector";
800
+ const no = {
801
+ type: "3rdParty",
802
+ init(t) {
803
+ Vt(t.options.react), Gt(t);
804
+ }
805
+ };
806
+ function oo({
1139
807
  children: t
1140
808
  }) {
1141
- const [e, r] = le([]), o = ir(), s = dt(0), a = dt(/* @__PURE__ */ new WeakMap()), n = tt(function(h, v, g = {}) {
809
+ const [e, n] = q([]), o = Rt(), r = ot(0), s = ot(/* @__PURE__ */ new WeakMap()), i = Ve(function(m, h, f = {}) {
1142
810
  const {
1143
- onClose: b = async () => {
811
+ onClose: p = async () => {
1144
812
  }
1145
- } = g;
1146
- let T;
1147
- const E = new Promise((x) => {
1148
- T = x;
1149
- }), P = `${o}-${s.current}`;
1150
- s.current += 1;
1151
- const A = {
1152
- key: P,
813
+ } = f;
814
+ let g;
815
+ const x = new Promise((y) => {
816
+ g = y;
817
+ }), w = `${o}-${r.current}`;
818
+ r.current += 1;
819
+ const S = {
820
+ key: w,
1153
821
  open: !0,
1154
- promise: E,
1155
- Component: h,
1156
- payload: v,
1157
- onClose: b,
1158
- resolve: T
822
+ promise: x,
823
+ Component: m,
824
+ payload: h,
825
+ onClose: p,
826
+ resolve: g
1159
827
  };
1160
- return a.current.set(E, A), r((x) => [...x, A]), E;
1161
- }), c = (u) => {
1162
- r((h) => h.filter((v) => v.promise !== u)), a.current.delete(u);
1163
- }, f = tt(function(h) {
1164
- r((v) => v.map((g) => g.promise === h ? {
1165
- ...g,
828
+ return s.current.set(x, S), n((y) => [...y, S]), x;
829
+ }), l = (d) => {
830
+ n((m) => m.filter((h) => h.promise !== d)), s.current.delete(d);
831
+ }, c = Ve(function(m) {
832
+ n((h) => h.map((f) => f.promise === m ? {
833
+ ...f,
1166
834
  open: !1
1167
- } : g)), setTimeout(() => c(h), 1e3);
1168
- }), d = tt(async function(h, v) {
1169
- const g = a.current.get(h);
1170
- if (!g)
835
+ } : f)), setTimeout(() => l(m), 1e3);
836
+ }), u = Ve(async function(m, h) {
837
+ const f = s.current.get(m);
838
+ if (!f)
1171
839
  throw new Error("Dialog not found in stack");
1172
840
  try {
1173
- await g.onClose(v);
841
+ await f.onClose(h);
1174
842
  } finally {
1175
- g.resolve(v), f(h);
843
+ f.resolve(h), c(m);
1176
844
  }
1177
- return h;
845
+ return m;
1178
846
  });
1179
- return /* @__PURE__ */ q(ur.Provider, { value: {
1180
- open: n,
1181
- close: d
847
+ return /* @__PURE__ */ D(Kt.Provider, { value: {
848
+ open: i,
849
+ close: u
1182
850
  }, children: [
1183
851
  t,
1184
852
  e.map(({
1185
- key: u,
1186
- open: h,
1187
- Component: v,
1188
- payload: g,
1189
- promise: b
1190
- }) => /* @__PURE__ */ m(v, { payload: g, open: h, onClose: async (T) => {
1191
- await d(b, T);
1192
- } }, u))
853
+ key: d,
854
+ open: m,
855
+ Component: h,
856
+ payload: f,
857
+ promise: p
858
+ }) => /* @__PURE__ */ a(h, { payload: f, open: m, onClose: async (g) => {
859
+ await u(p, g);
860
+ } }, d))
1193
861
  ] });
1194
862
  }
1195
- const fn = () => {
1196
- const t = ae(1);
863
+ const io = () => {
864
+ const t = R(1);
1197
865
  let e;
1198
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ q(Ut, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
1199
- /* @__PURE__ */ m("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
1200
- /* @__PURE__ */ m(Ft, { variant: "h6", children: gr.VITE_APP_TITLE }),
1201
- /* @__PURE__ */ m(qt, { size: "small", label: "TEST", color: "info" })
866
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ D(Ot, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
867
+ /* @__PURE__ */ a("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
868
+ /* @__PURE__ */ a(Ct, { variant: "h6", children: on.VITE_APP_TITLE }),
869
+ /* @__PURE__ */ a(_t, { size: "small", label: "TEST", color: "info" })
1202
870
  ] }), t[0] = e) : e = t[0], e;
1203
- }, nt = 34, dn = at(wr)(({
871
+ }, Ke = 34, ro = Ze(mn)(({
1204
872
  theme: t
1205
873
  }) => ({
1206
874
  borderRadius: 8,
@@ -1221,7 +889,7 @@ const fn = () => {
1221
889
  "& .MuiAvatar-root": {
1222
890
  backgroundColor: (t.vars ?? t).palette.action.active
1223
891
  }
1224
- })), mn = at(Dr)(({
892
+ })), so = Ze(Sn)(({
1225
893
  theme: t
1226
894
  }) => ({
1227
895
  borderRadius: 8,
@@ -1242,40 +910,40 @@ const fn = () => {
1242
910
  "& .MuiAvatar-root": {
1243
911
  backgroundColor: (t.vars ?? t).palette.action.active
1244
912
  }
1245
- })), pn = (t) => {
1246
- const e = ae(17), {
1247
- item: r,
913
+ })), ao = (t) => {
914
+ const e = R(17), {
915
+ item: n,
1248
916
  collapsed: o
1249
917
  } = t;
1250
- if (r.icon || o) {
1251
- let s;
1252
- e[0] !== o ? (s = o ? {
918
+ if (n.icon || o) {
919
+ let r;
920
+ e[0] !== o ? (r = o ? {
1253
921
  position: "absolute",
1254
922
  left: "50%",
1255
923
  top: "calc(50% - 6px)",
1256
924
  transform: "translate(-50%, -50%)"
1257
- } : {}, e[0] = o, e[1] = s) : s = e[1];
1258
- let a;
1259
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
925
+ } : {}, e[0] = o, e[1] = r) : r = e[1];
926
+ let s;
927
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
1260
928
  display: "flex",
1261
929
  alignItems: "center",
1262
930
  justifyContent: "center",
1263
- minWidth: nt
1264
- }, e[2] = a) : a = e[2];
1265
- const n = r.icon ?? null;
1266
- let c;
1267
- e[3] !== o || e[4] !== r.icon || e[5] !== r.title ? (c = !r.icon && o ? /* @__PURE__ */ m(_r, { sx: {
1268
- width: nt - 7,
1269
- height: nt - 7,
931
+ minWidth: Ke
932
+ }, e[2] = s) : s = e[2];
933
+ const i = n.icon ?? null;
934
+ let l;
935
+ e[3] !== o || e[4] !== n.icon || e[5] !== n.title ? (l = !n.icon && o ? /* @__PURE__ */ a(un, { sx: {
936
+ width: Ke - 7,
937
+ height: Ke - 7,
1270
938
  fontSize: 12
1271
- }, children: r.title }) : null, e[3] = o, e[4] = r.icon, e[5] = r.title, e[6] = c) : c = e[6];
1272
- let f;
1273
- e[7] !== n || e[8] !== c ? (f = /* @__PURE__ */ q(Cr, { sx: a, children: [
1274
- n,
1275
- c
1276
- ] }), e[7] = n, e[8] = c, e[9] = f) : f = e[9];
1277
- let d;
1278
- e[10] !== o || e[11] !== r.title ? (d = o ? /* @__PURE__ */ m(Ir, { variant: "caption", sx: {
939
+ }, children: n.title }) : null, e[3] = o, e[4] = n.icon, e[5] = n.title, e[6] = l) : l = e[6];
940
+ let c;
941
+ e[7] !== i || e[8] !== l ? (c = /* @__PURE__ */ D(hn, { sx: s, children: [
942
+ i,
943
+ l
944
+ ] }), e[7] = i, e[8] = l, e[9] = c) : c = e[9];
945
+ let u;
946
+ e[10] !== o || e[11] !== n.title ? (u = o ? /* @__PURE__ */ a(xn, { variant: "caption", sx: {
1279
947
  position: "absolute",
1280
948
  bottom: -18,
1281
949
  left: "50%",
@@ -1286,100 +954,100 @@ const fn = () => {
1286
954
  whiteSpace: "nowrap",
1287
955
  overflow: "hidden",
1288
956
  textOverflow: "ellipsis",
1289
- maxWidth: Ue - 28
1290
- }, children: r.title }) : null, e[10] = o, e[11] = r.title, e[12] = d) : d = e[12];
1291
- let u;
1292
- return e[13] !== s || e[14] !== f || e[15] !== d ? (u = /* @__PURE__ */ q(At, { sx: s, children: [
1293
- f,
1294
- d
1295
- ] }), e[13] = s, e[14] = f, e[15] = d, e[16] = u) : u = e[16], u;
957
+ maxWidth: Fe - 28
958
+ }, children: n.title }) : null, e[10] = o, e[11] = n.title, e[12] = u) : u = e[12];
959
+ let d;
960
+ return e[13] !== r || e[14] !== c || e[15] !== u ? (d = /* @__PURE__ */ D(St, { sx: r, children: [
961
+ c,
962
+ u
963
+ ] }), e[13] = r, e[14] = c, e[15] = u, e[16] = d) : d = e[16], d;
1296
964
  }
1297
965
  return null;
1298
- }, hn = (t) => {
1299
- const e = ae(10), {
1300
- open: r,
966
+ }, lo = (t) => {
967
+ const e = R(10), {
968
+ open: n,
1301
969
  anchorEl: o,
1302
- children: s
970
+ children: r
1303
971
  } = t;
1304
- let a;
1305
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
972
+ let s;
973
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
1306
974
  name: "offset",
1307
975
  options: {
1308
976
  offset: [6, 0]
1309
977
  }
1310
- }, e[0] = a) : a = e[0];
1311
- let n;
1312
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
978
+ }, e[0] = s) : s = e[0];
979
+ let i;
980
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
1313
981
  name: "preventOverflow",
1314
982
  options: {
1315
983
  padding: 8
1316
984
  }
1317
- }, e[1] = n) : n = e[1];
1318
- let c;
1319
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = [a, n, {
985
+ }, e[1] = i) : i = e[1];
986
+ let l;
987
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [s, i, {
1320
988
  name: "flip",
1321
989
  options: {
1322
990
  fallbackPlacements: ["right-end", "left-start"]
1323
991
  }
1324
- }], e[2] = c) : c = e[2];
1325
- let f;
1326
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
992
+ }], e[2] = l) : l = e[2];
993
+ let c;
994
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
1327
995
  pt: 0.5,
1328
996
  pb: 0.5,
1329
997
  maxHeight: "min(calc(100vh - 100px), 560px)",
1330
998
  overflowY: "auto",
1331
999
  overscrollBehavior: "contain"
1332
- }, e[3] = f) : f = e[3];
1333
- let d;
1334
- e[4] !== s ? (d = /* @__PURE__ */ m(Pr, { sx: f, children: s }), e[4] = s, e[5] = d) : d = e[5];
1000
+ }, e[3] = c) : c = e[3];
1335
1001
  let u;
1336
- return e[6] !== o || e[7] !== r || e[8] !== d ? (u = /* @__PURE__ */ m(kr, { open: r, anchorEl: o, placement: "right-start", modifiers: c, children: d }), e[6] = o, e[7] = r, e[8] = d, e[9] = u) : u = e[9], u;
1337
- }, yn = (t) => {
1338
- const e = ae(57), {
1339
- item: r,
1002
+ e[4] !== r ? (u = /* @__PURE__ */ a(gn, { sx: c, children: r }), e[4] = r, e[5] = u) : u = e[5];
1003
+ let d;
1004
+ return e[6] !== o || e[7] !== n || e[8] !== u ? (d = /* @__PURE__ */ a(yn, { open: n, anchorEl: o, placement: "right-start", modifiers: l, children: u }), e[6] = o, e[7] = n, e[8] = u, e[9] = d) : d = e[9], d;
1005
+ }, co = (t) => {
1006
+ const e = R(57), {
1007
+ item: n,
1340
1008
  isOpen: o,
1341
- selected: s,
1342
- disabled: a,
1343
- collapsed: n,
1344
- isSidebarFullyExpanded: c,
1345
- isSidebarFullyCollapsed: f,
1346
- onClick: d,
1347
- renderNested: u,
1348
- onClose: h
1349
- } = t, v = c === void 0 ? !0 : c, [g, b] = le(null), [T, E] = le(null);
1350
- let P;
1351
- e[0] !== n || e[1] !== o || e[2] !== f || e[3] !== v || e[4] !== r.children ? (P = () => n && f && r.children ? {
1009
+ selected: r,
1010
+ disabled: s,
1011
+ collapsed: i,
1012
+ isSidebarFullyExpanded: l,
1013
+ isSidebarFullyCollapsed: c,
1014
+ onClick: u,
1015
+ renderNested: d,
1016
+ onClose: m
1017
+ } = t, h = l === void 0 ? !0 : l, [f, p] = q(null), [g, x] = q(null);
1018
+ let w;
1019
+ e[0] !== i || e[1] !== o || e[2] !== c || e[3] !== h || e[4] !== n.children ? (w = () => i && c && n.children ? {
1352
1020
  fontSize: 18,
1353
1021
  position: "absolute",
1354
1022
  top: "41.5%",
1355
1023
  right: "2px",
1356
1024
  transform: "translateY(-50%) rotate(-90deg)"
1357
- } : !n && v && r.children ? {
1025
+ } : !i && h && n.children ? {
1358
1026
  ml: 0.5,
1359
1027
  transform: `rotate(${o ? 0 : -90}deg)`
1360
1028
  } : {
1361
1029
  display: "none"
1362
- }, e[0] = n, e[1] = o, e[2] = f, e[3] = v, e[4] = r.children, e[5] = P) : P = e[5];
1363
- const A = P, x = r.children && !n, _ = n ? 60 : 48;
1364
- let l;
1365
- e[6] !== _ ? (l = {
1030
+ }, e[0] = i, e[1] = o, e[2] = c, e[3] = h, e[4] = n.children, e[5] = w) : w = e[5];
1031
+ const S = w, y = n.children && !i, k = i ? 60 : 48;
1032
+ let T;
1033
+ e[6] !== k ? (T = {
1366
1034
  px: 1.4,
1367
- height: _
1368
- }, e[6] = _, e[7] = l) : l = e[7];
1369
- let j;
1370
- e[8] !== a || e[9] !== s || e[10] !== l ? (j = {
1371
- selected: s,
1372
- disabled: a,
1373
- sx: l
1374
- }, e[8] = a, e[9] = s, e[10] = l, e[11] = j) : j = e[11];
1375
- const J = j;
1376
- let B;
1377
- e[12] !== n || e[13] !== r ? (B = /* @__PURE__ */ m(pn, { item: r, collapsed: n }), e[12] = n, e[13] = r, e[14] = B) : B = e[14];
1378
- let N;
1379
- e[15] !== n || e[16] !== r.title ? (N = !n && /* @__PURE__ */ m(Mr, { primary: r.title, slotProps: {
1035
+ height: k
1036
+ }, e[6] = k, e[7] = T) : T = e[7];
1037
+ let v;
1038
+ e[8] !== s || e[9] !== r || e[10] !== T ? (v = {
1039
+ selected: r,
1040
+ disabled: s,
1041
+ sx: T
1042
+ }, e[8] = s, e[9] = r, e[10] = T, e[11] = v) : v = e[11];
1043
+ const z = v;
1044
+ let I;
1045
+ e[12] !== i || e[13] !== n ? (I = /* @__PURE__ */ a(ao, { item: n, collapsed: i }), e[12] = i, e[13] = n, e[14] = I) : I = e[14];
1046
+ let L;
1047
+ e[15] !== i || e[16] !== n.title ? (L = !i && /* @__PURE__ */ a(pn, { primary: n.title, slotProps: {
1380
1048
  primary: {
1381
1049
  noWrap: !0,
1382
- title: r.title
1050
+ title: n.title
1383
1051
  }
1384
1052
  }, sx: {
1385
1053
  ml: 1.2,
@@ -1390,384 +1058,384 @@ const fn = () => {
1390
1058
  overflow: "hidden",
1391
1059
  textOverflow: "ellipsis"
1392
1060
  }
1393
- } }), e[15] = n, e[16] = r.title, e[17] = N) : N = e[17];
1394
- let W;
1395
- e[18] !== A || e[19] !== r.children ? (W = r.children ? /* @__PURE__ */ m(Er, { sx: A }) : null, e[18] = A, e[19] = r.children, e[20] = W) : W = e[20];
1396
- let K;
1397
- e[21] !== B || e[22] !== N || e[23] !== W ? (K = /* @__PURE__ */ q(Wt, { children: [
1398
- B,
1399
- N,
1400
- W
1401
- ] }), e[21] = B, e[22] = N, e[23] = W, e[24] = K) : K = e[24];
1402
- const ee = K;
1403
- let Z;
1404
- e[25] !== n || e[26] !== r.children || e[27] !== r.title ? (Z = r.children && n ? {
1405
- onMouseEnter: (y) => {
1406
- E(y.currentTarget), b(r.title);
1061
+ } }), e[15] = i, e[16] = n.title, e[17] = L) : L = e[17];
1062
+ let M;
1063
+ e[18] !== S || e[19] !== n.children ? (M = n.children ? /* @__PURE__ */ a(dn, { sx: S }) : null, e[18] = S, e[19] = n.children, e[20] = M) : M = e[20];
1064
+ let P;
1065
+ e[21] !== I || e[22] !== L || e[23] !== M ? (P = /* @__PURE__ */ D(Mt, { children: [
1066
+ I,
1067
+ L,
1068
+ M
1069
+ ] }), e[21] = I, e[22] = L, e[23] = M, e[24] = P) : P = e[24];
1070
+ const U = P;
1071
+ let $;
1072
+ e[25] !== i || e[26] !== n.children || e[27] !== n.title ? ($ = n.children && i ? {
1073
+ onMouseEnter: (H) => {
1074
+ x(H.currentTarget), p(n.title);
1407
1075
  },
1408
1076
  onMouseLeave: () => {
1409
- b(null);
1077
+ p(null);
1410
1078
  }
1411
- } : {}, e[25] = n, e[26] = r.children, e[27] = r.title, e[28] = Z) : Z = e[28];
1412
- let U;
1413
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
1079
+ } : {}, e[25] = i, e[26] = n.children, e[27] = n.title, e[28] = $) : $ = e[28];
1080
+ let A;
1081
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
1414
1082
  py: 0,
1415
1083
  px: 1,
1416
1084
  overflowX: "hidden"
1417
- }, e[29] = U) : U = e[29];
1085
+ }, e[29] = A) : A = e[29];
1086
+ let _;
1087
+ e[30] !== U || e[31] !== z || e[32] !== n || e[33] !== u || e[34] !== m || e[35] !== y ? (_ = y ? /* @__PURE__ */ a(ro, { ...z, onClick: () => u?.(n), children: U }) : /* @__PURE__ */ a(so, { ...z, to: n.to, href: n.href, params: n.params, search: n.search, onClick: m, children: U }), e[30] = U, e[31] = z, e[32] = n, e[33] = u, e[34] = m, e[35] = y, e[36] = _) : _ = e[36];
1088
+ let O;
1089
+ e[37] !== g || e[38] !== i || e[39] !== f || e[40] !== n.children || e[41] !== n.title || e[42] !== d ? (O = n.children && i ? /* @__PURE__ */ a(lo, { open: n.title === f, anchorEl: g, children: d?.(n.children) }) : null, e[37] = g, e[38] = i, e[39] = f, e[40] = n.children, e[41] = n.title, e[42] = d, e[43] = O) : O = e[43];
1418
1090
  let F;
1419
- e[30] !== ee || e[31] !== J || e[32] !== r || e[33] !== d || e[34] !== h || e[35] !== x ? (F = x ? /* @__PURE__ */ m(dn, { ...J, onClick: () => d?.(r), children: ee }) : /* @__PURE__ */ m(mn, { ...J, to: r.to, href: r.href, params: r.params, search: r.search, onClick: h, children: ee }), e[30] = ee, e[31] = J, e[32] = r, e[33] = d, e[34] = h, e[35] = x, e[36] = F) : F = e[36];
1420
- let R;
1421
- e[37] !== T || e[38] !== n || e[39] !== g || e[40] !== r.children || e[41] !== r.title || e[42] !== u ? (R = r.children && n ? /* @__PURE__ */ m(hn, { open: r.title === g, anchorEl: T, children: u?.(r.children) }) : null, e[37] = T, e[38] = n, e[39] = g, e[40] = r.children, e[41] = r.title, e[42] = u, e[43] = R) : R = e[43];
1422
- let H;
1423
- e[44] !== Z || e[45] !== F || e[46] !== R ? (H = /* @__PURE__ */ q(Or, { ...Z, sx: U, children: [
1424
- F,
1425
- R
1426
- ] }), e[44] = Z, e[45] = F, e[46] = R, e[47] = H) : H = e[47];
1427
- const te = H;
1428
- let V;
1429
- e[48] !== n || e[49] !== o || e[50] !== r.children || e[51] !== u ? (V = r.children && !n ? /* @__PURE__ */ m(Bt, { in: o, timeout: "auto", unmountOnExit: !0, children: u?.(r.children) }) : null, e[48] = n, e[49] = o, e[50] = r.children, e[51] = u, e[52] = V) : V = e[52];
1430
- let i;
1431
- return e[53] !== r.to || e[54] !== te || e[55] !== V ? (i = /* @__PURE__ */ q(qe, { children: [
1432
- te,
1433
- V
1434
- ] }, r.to), e[53] = r.to, e[54] = te, e[55] = V, e[56] = i) : i = e[56], i;
1435
- }, gn = (t) => !("kind" in t), vn = (t) => "kind" in t && t.kind === "divider", it = (t) => "kind" in t && t.kind === "header", $t = (t) => {
1436
- const e = ae(31), {
1437
- subNavigation: r,
1091
+ e[44] !== $ || e[45] !== _ || e[46] !== O ? (F = /* @__PURE__ */ D(fn, { ...$, sx: A, children: [
1092
+ _,
1093
+ O
1094
+ ] }), e[44] = $, e[45] = _, e[46] = O, e[47] = F) : F = e[47];
1095
+ const B = F;
1096
+ let E;
1097
+ e[48] !== i || e[49] !== o || e[50] !== n.children || e[51] !== d ? (E = n.children && !i ? /* @__PURE__ */ a(It, { in: o, timeout: "auto", unmountOnExit: !0, children: d?.(n.children) }) : null, e[48] = i, e[49] = o, e[50] = n.children, e[51] = d, e[52] = E) : E = e[52];
1098
+ let N;
1099
+ return e[53] !== n.to || e[54] !== B || e[55] !== E ? (N = /* @__PURE__ */ D(Be, { children: [
1100
+ B,
1101
+ E
1102
+ ] }, n.to), e[53] = n.to, e[54] = B, e[55] = E, e[56] = N) : N = e[56], N;
1103
+ }, uo = (t) => !("kind" in t), fo = (t) => "kind" in t && t.kind === "divider", Xe = (t) => "kind" in t && t.kind === "header", kt = (t) => {
1104
+ const e = R(31), {
1105
+ subNavigation: n,
1438
1106
  depth: o,
1439
- collapsed: s,
1440
- isPopover: a,
1441
- isSidebarFullyExpanded: n,
1442
- isSidebarFullyCollapsed: c,
1443
- expandedWidth: f,
1444
- renderItem: d,
1445
- activePath: u,
1446
- onNavigate: h,
1447
- onClose: v
1448
- } = t, g = o === void 0 ? 0 : o, b = n === void 0 ? !0 : n;
1449
- let T;
1450
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = [], e[0] = T) : T = e[0];
1451
- const [E, P] = le(T);
1452
- let A, x;
1453
- e[1] !== s ? (A = () => {
1454
- s && P([]);
1455
- }, x = [s], e[1] = s, e[2] = A, e[3] = x) : (A = e[2], x = e[3]), Lt(A, x);
1456
- let _;
1457
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (N) => P((W) => W.includes(N) ? W.filter((K) => K !== N) : [...W, N]), e[4] = _) : _ = e[4];
1458
- const l = _;
1459
- let j;
1460
- e[5] !== u || e[6] !== s || e[7] !== g || e[8] !== f || e[9] !== v || e[10] !== h ? (j = (N) => /* @__PURE__ */ m($t, { subNavigation: N, depth: g + 1, isPopover: s, expandedWidth: f, activePath: u, onNavigate: h, onClose: v }), e[5] = u, e[6] = s, e[7] = g, e[8] = f, e[9] = v, e[10] = h, e[11] = j) : j = e[11];
1461
- const J = j;
1462
- let B;
1463
- if (e[12] !== u || e[13] !== s || e[14] !== g || e[15] !== f || e[16] !== a || e[17] !== c || e[18] !== b || e[19] !== v || e[20] !== E || e[21] !== d || e[22] !== J || e[23] !== r) {
1464
- const N = r.filter(Tn), W = a && g === 1 ? 0.5 : 0, K = g === 0 && !a ? 4 : 0.5, ee = (a ? 1 : 2) * (a ? g - 1 : g), Z = a && g === 1 ? Ne : "auto", U = s ? Ue : "auto";
1465
- let F;
1466
- e[25] !== K || e[26] !== ee || e[27] !== Z || e[28] !== U || e[29] !== W ? (F = {
1107
+ collapsed: r,
1108
+ isPopover: s,
1109
+ isSidebarFullyExpanded: i,
1110
+ isSidebarFullyCollapsed: l,
1111
+ expandedWidth: c,
1112
+ renderItem: u,
1113
+ activePath: d,
1114
+ onNavigate: m,
1115
+ onClose: h
1116
+ } = t, f = o === void 0 ? 0 : o, p = i === void 0 ? !0 : i;
1117
+ let g;
1118
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
1119
+ const [x, w] = q(g);
1120
+ let S, y;
1121
+ e[1] !== r ? (S = () => {
1122
+ r && w([]);
1123
+ }, y = [r], e[1] = r, e[2] = S, e[3] = y) : (S = e[2], y = e[3]), xt(S, y);
1124
+ let k;
1125
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (L) => w((M) => M.includes(L) ? M.filter((P) => P !== L) : [...M, L]), e[4] = k) : k = e[4];
1126
+ const T = k;
1127
+ let v;
1128
+ e[5] !== d || e[6] !== r || e[7] !== f || e[8] !== c || e[9] !== h || e[10] !== m ? (v = (L) => /* @__PURE__ */ a(kt, { subNavigation: L, depth: f + 1, isPopover: r, expandedWidth: c, activePath: d, onNavigate: m, onClose: h }), e[5] = d, e[6] = r, e[7] = f, e[8] = c, e[9] = h, e[10] = m, e[11] = v) : v = e[11];
1129
+ const z = v;
1130
+ let I;
1131
+ if (e[12] !== d || e[13] !== r || e[14] !== f || e[15] !== c || e[16] !== s || e[17] !== l || e[18] !== p || e[19] !== h || e[20] !== x || e[21] !== u || e[22] !== z || e[23] !== n) {
1132
+ const L = n.filter(mo), M = s && f === 1 ? 0.5 : 0, P = f === 0 && !s ? 4 : 0.5, U = (s ? 1 : 2) * (s ? f - 1 : f), $ = s && f === 1 ? je : "auto", A = r ? Fe : "auto";
1133
+ let _;
1134
+ e[25] !== P || e[26] !== U || e[27] !== $ || e[28] !== A || e[29] !== M ? (_ = {
1467
1135
  padding: 0,
1468
- mt: W,
1469
- mb: K,
1470
- pl: ee,
1471
- minWidth: Z,
1472
- width: U
1473
- }, e[25] = K, e[26] = ee, e[27] = Z, e[28] = U, e[29] = W, e[30] = F) : F = e[30], B = /* @__PURE__ */ m(xr, { sx: F, children: N.map((R, H) => {
1474
- if (it(R))
1475
- return /* @__PURE__ */ m(Sr, { sx: {
1136
+ mt: M,
1137
+ mb: P,
1138
+ pl: U,
1139
+ minWidth: $,
1140
+ width: A
1141
+ }, e[25] = P, e[26] = U, e[27] = $, e[28] = A, e[29] = M, e[30] = _) : _ = e[30], I = /* @__PURE__ */ a(ln, { sx: _, children: L.map((O, F) => {
1142
+ if (Xe(O))
1143
+ return /* @__PURE__ */ a(cn, { sx: {
1476
1144
  fontSize: 12,
1477
1145
  fontWeight: "700",
1478
- height: s ? 0 : 40,
1146
+ height: r ? 0 : 40,
1479
1147
  px: 2,
1480
- minWidth: f,
1148
+ minWidth: c,
1481
1149
  overflow: "hidden",
1482
1150
  textOverflow: "ellipsis",
1483
1151
  whiteSpace: "nowrap",
1484
1152
  zIndex: 2,
1485
1153
  bgcolor: "transparent",
1486
1154
  position: "static"
1487
- }, children: R.title }, `subheader-${g}-${H}`);
1488
- if (vn(R)) {
1489
- const i = N[H + 1];
1490
- return /* @__PURE__ */ m("li", { children: /* @__PURE__ */ m(br, { sx: {
1155
+ }, children: O.title }, `subheader-${f}-${F}`);
1156
+ if (fo(O)) {
1157
+ const N = L[F + 1];
1158
+ return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(an, { sx: {
1491
1159
  mx: 1,
1492
1160
  mt: 1,
1493
- mb: it(i) && !s ? 0 : 1
1494
- } }) }, `divider-${g}-${H}`);
1161
+ mb: Xe(N) && !r ? 0 : 1
1162
+ } }) }, `divider-${f}-${F}`);
1495
1163
  }
1496
- if (!gn(R))
1164
+ if (!uo(O))
1497
1165
  return null;
1498
- const te = `item-${g}-${H}`, V = `${g}-${H}-${R.title}`;
1499
- return d ? /* @__PURE__ */ m(qe, { children: d(R, {
1500
- collapsed: !!s
1501
- }) }, te) : /* @__PURE__ */ m(yn, { item: R, isOpen: E.includes(V), selected: u === R.to, collapsed: s, isSidebarFullyExpanded: b, isSidebarFullyCollapsed: c, onClick: R.children && !s ? () => l(V) : void 0, renderNested: J, onClose: v }, te);
1502
- }) }), e[12] = u, e[13] = s, e[14] = g, e[15] = f, e[16] = a, e[17] = c, e[18] = b, e[19] = v, e[20] = E, e[21] = d, e[22] = J, e[23] = r, e[24] = B;
1166
+ const B = `item-${f}-${F}`, E = `${f}-${F}-${O.title}`;
1167
+ return u ? /* @__PURE__ */ a(Be, { children: u(O, {
1168
+ collapsed: !!r
1169
+ }) }, B) : /* @__PURE__ */ a(co, { item: O, isOpen: x.includes(E), selected: d === O.to, collapsed: r, isSidebarFullyExpanded: p, isSidebarFullyCollapsed: l, onClick: O.children && !r ? () => T(E) : void 0, renderNested: z, onClose: h }, B);
1170
+ }) }), e[12] = d, e[13] = r, e[14] = f, e[15] = c, e[16] = s, e[17] = l, e[18] = p, e[19] = h, e[20] = x, e[21] = u, e[22] = z, e[23] = n, e[24] = I;
1503
1171
  } else
1504
- B = e[24];
1505
- return B;
1172
+ I = e[24];
1173
+ return I;
1506
1174
  };
1507
- function Tn(t) {
1175
+ function mo(t) {
1508
1176
  return !t.hidden;
1509
1177
  }
1510
- const Ue = 84, Ne = 320, kt = 64, bn = (t) => {
1511
- const e = ae(29), {
1512
- navigation: r,
1178
+ const Fe = 84, je = 320, pt = 64, ho = (t) => {
1179
+ const e = R(29), {
1180
+ navigation: n,
1513
1181
  expanded: o,
1514
- setExpanded: s
1515
- } = t, a = vr(), n = Tr(), c = pr();
1516
- let f;
1517
- e[0] !== c.breakpoints ? (f = c.breakpoints.up("sm"), e[0] = c.breakpoints, e[1] = f) : f = e[1];
1518
- const d = Ht(f);
1519
- let u;
1520
- e[2] !== o || e[3] !== a || e[4] !== r || e[5] !== n.location.pathname || e[6] !== s || e[7] !== d ? (u = (E) => /* @__PURE__ */ m(At, { component: "nav", sx: {
1182
+ setExpanded: r
1183
+ } = t, s = rn(), i = sn(), l = en();
1184
+ let c;
1185
+ e[0] !== l.breakpoints ? (c = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = c) : c = e[1];
1186
+ const u = Et(c);
1187
+ let d;
1188
+ e[2] !== o || e[3] !== s || e[4] !== n || e[5] !== i.location.pathname || e[6] !== r || e[7] !== u ? (d = (x) => /* @__PURE__ */ a(St, { component: "nav", sx: {
1521
1189
  height: "100%",
1522
1190
  display: "flex",
1523
1191
  flexDirection: "column",
1524
1192
  justifyContent: "space-between",
1525
1193
  overflow: "auto",
1526
- scrollbarGutter: E ? "stable" : "auto",
1194
+ scrollbarGutter: x ? "stable" : "auto",
1527
1195
  overflowX: "hidden",
1528
- pt: r[0] && it(r[0]) && !E ? 0 : 2
1529
- }, children: /* @__PURE__ */ m($t, { subNavigation: r, collapsed: E, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: !o, expandedWidth: Ne, activePath: n.location.pathname, onNavigate: a, onClose: d ? void 0 : () => s(!1) }) }), e[2] = o, e[3] = a, e[4] = r, e[5] = n.location.pathname, e[6] = s, e[7] = d, e[8] = u) : u = e[8];
1530
- const h = u;
1531
- if (d) {
1532
- const E = o ? Ne : Ue, P = o ? Ne : Ue;
1533
- let A;
1534
- e[9] !== P ? (A = {
1196
+ pt: n[0] && Xe(n[0]) && !x ? 0 : 2
1197
+ }, children: /* @__PURE__ */ a(kt, { subNavigation: n, collapsed: x, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: !o, expandedWidth: je, activePath: i.location.pathname, onNavigate: s, onClose: u ? void 0 : () => r(!1) }) }), e[2] = o, e[3] = s, e[4] = n, e[5] = i.location.pathname, e[6] = r, e[7] = u, e[8] = d) : d = e[8];
1198
+ const m = d;
1199
+ if (u) {
1200
+ const x = o ? je : Fe, w = o ? je : Fe;
1201
+ let S;
1202
+ e[9] !== w ? (S = {
1535
1203
  position: "absolute",
1536
- top: `${kt}px`,
1537
- height: `calc(100% - ${kt}px)`,
1538
- width: P,
1204
+ top: `${pt}px`,
1205
+ height: `calc(100% - ${pt}px)`,
1206
+ width: w,
1539
1207
  borderTop: "1px solid",
1540
1208
  borderColor: "var(--mui-palette-divider)"
1541
- }, e[9] = P, e[10] = A) : A = e[10];
1542
- let x;
1543
- e[11] !== E || e[12] !== A ? (x = {
1544
- width: E,
1545
- "& .MuiDrawer-paper": A
1546
- }, e[11] = E, e[12] = A, e[13] = x) : x = e[13];
1547
- const _ = !o;
1548
- let l;
1549
- e[14] !== h || e[15] !== _ ? (l = h(_), e[14] = h, e[15] = _, e[16] = l) : l = e[16];
1550
- let j;
1551
- return e[17] !== x || e[18] !== l ? (j = /* @__PURE__ */ m(pt, { variant: "permanent", sx: x, children: l }), e[17] = x, e[18] = l, e[19] = j) : j = e[19], j;
1209
+ }, e[9] = w, e[10] = S) : S = e[10];
1210
+ let y;
1211
+ e[11] !== x || e[12] !== S ? (y = {
1212
+ width: x,
1213
+ "& .MuiDrawer-paper": S
1214
+ }, e[11] = x, e[12] = S, e[13] = y) : y = e[13];
1215
+ const k = !o;
1216
+ let T;
1217
+ e[14] !== m || e[15] !== k ? (T = m(k), e[14] = m, e[15] = k, e[16] = T) : T = e[16];
1218
+ let v;
1219
+ return e[17] !== y || e[18] !== T ? (v = /* @__PURE__ */ a(rt, { variant: "permanent", sx: y, children: T }), e[17] = y, e[18] = T, e[19] = v) : v = e[19], v;
1552
1220
  }
1553
- let v;
1554
- e[20] !== s ? (v = () => s(!1), e[20] = s, e[21] = v) : v = e[21];
1555
- const g = !o;
1556
- let b;
1557
- e[22] !== h || e[23] !== g ? (b = h(g), e[22] = h, e[23] = g, e[24] = b) : b = e[24];
1558
- let T;
1559
- return e[25] !== o || e[26] !== v || e[27] !== b ? (T = /* @__PURE__ */ m(pt, { open: o, onClose: v, children: b }), e[25] = o, e[26] = v, e[27] = b, e[28] = T) : T = e[28], T;
1560
- }, Lo = Fe().inputValidator(ge.object({
1561
- redirectUri: ge.string()
1221
+ let h;
1222
+ e[20] !== r ? (h = () => r(!1), e[20] = r, e[21] = h) : h = e[21];
1223
+ const f = !o;
1224
+ let p;
1225
+ e[22] !== m || e[23] !== f ? (p = m(f), e[22] = m, e[23] = f, e[24] = p) : p = e[24];
1226
+ let g;
1227
+ return e[25] !== o || e[26] !== h || e[27] !== p ? (g = /* @__PURE__ */ a(rt, { open: o, onClose: h, children: p }), e[25] = o, e[26] = h, e[27] = p, e[28] = g) : g = e[28], g;
1228
+ }, vi = Ye().inputValidator(le.object({
1229
+ redirectUri: le.string()
1562
1230
  })).handler(async ({
1563
1231
  data: t
1564
1232
  }) => {
1565
- const e = await Wr(t.redirectUri), r = await lt.fetchQuery({
1233
+ const e = await On(t.redirectUri), n = await et.fetchQuery({
1566
1234
  queryKey: ["graph", "me", "memberOf"],
1567
- queryFn: async () => st.request({
1235
+ queryFn: async () => Je.request({
1568
1236
  method: "GET",
1569
1237
  url: "https://graph.microsoft.com/v1.0/me/memberOf?$select=displayName",
1570
1238
  headers: {
1571
- Authorization: `Bearer ${await ct()}`
1239
+ Authorization: `Bearer ${await tt()}`
1572
1240
  }
1573
- }).then((o) => o.data.value.map((s) => s.displayName)),
1241
+ }).then((o) => o.data.value.map((r) => r.displayName)),
1574
1242
  staleTime: 1 / 0,
1575
1243
  gcTime: 1 / 0
1576
1244
  });
1577
1245
  return {
1578
1246
  ...e.user,
1579
- groups: r
1247
+ groups: n
1580
1248
  };
1581
- }), xn = Fe({
1249
+ }), po = Ye({
1582
1250
  method: "GET"
1583
- }).handler(async () => await lt.fetchQuery({
1251
+ }).handler(async () => await et.fetchQuery({
1584
1252
  queryKey: ["graph", "me"],
1585
- queryFn: async () => await st.request({
1253
+ queryFn: async () => await Je.request({
1586
1254
  method: "GET",
1587
1255
  url: "https://graph.microsoft.com/v1.0/me?$select=id,displayName,jobTitle,mail,mobilePhone",
1588
1256
  headers: {
1589
- Authorization: `Bearer ${await ct()}`
1257
+ Authorization: `Bearer ${await tt()}`
1590
1258
  }
1591
1259
  }).then((t) => t.data),
1592
1260
  staleTime: 1 / 0,
1593
1261
  gcTime: 1 / 0
1594
- })), Sn = Fe({
1262
+ })), go = Ye({
1595
1263
  method: "GET"
1596
- }).handler(async () => await lt.fetchQuery({
1264
+ }).handler(async () => await et.fetchQuery({
1597
1265
  queryKey: ["graph", "me", "photo"],
1598
1266
  queryFn: async () => {
1599
- const t = await st.request({
1267
+ const t = await Je.request({
1600
1268
  method: "GET",
1601
1269
  url: "https://graph.microsoft.com/v1.0/me/photo/$value",
1602
1270
  headers: {
1603
- Authorization: `Bearer ${await ct()}`
1271
+ Authorization: `Bearer ${await tt()}`
1604
1272
  },
1605
1273
  responseType: "arraybuffer"
1606
- }), e = t.headers["content-type"] ?? "image/jpeg", r = Buffer.from(t.data).toString("base64");
1607
- return `data:${e};base64,${r}`;
1274
+ }), e = t.headers["content-type"] ?? "image/jpeg", n = Buffer.from(t.data).toString("base64");
1275
+ return `data:${e};base64,${n}`;
1608
1276
  },
1609
1277
  staleTime: 1 / 0,
1610
1278
  gcTime: 1 / 0
1611
- })), It = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), En = () => {
1612
- const t = ae(105), [e, r] = le(), [o, s] = le("settings"), a = !!e, {
1613
- t: n,
1614
- i18n: c
1615
- } = lr(), {
1616
- mode: f,
1617
- setMode: d
1618
- } = Vt();
1619
- let u, h, v, g, b, T, E;
1620
- if (t[0] !== c || t[1] !== f || t[2] !== d || t[3] !== n) {
1621
- const H = (Array.isArray(c.options.supportedLngs) ? c.options.supportedLngs : []).filter(_n), te = new Intl.DisplayNames([c.language], {
1279
+ })), gt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), yo = () => {
1280
+ const t = R(105), [e, n] = q(), [o, r] = q("settings"), s = !!e, {
1281
+ t: i,
1282
+ i18n: l
1283
+ } = Qt(), {
1284
+ mode: c,
1285
+ setMode: u
1286
+ } = At();
1287
+ let d, m, h, f, p, g, x;
1288
+ if (t[0] !== l || t[1] !== c || t[2] !== u || t[3] !== i) {
1289
+ const F = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter(xo), B = new Intl.DisplayNames([l.language], {
1622
1290
  type: "language"
1623
1291
  });
1624
- let V;
1625
- t[11] !== n ? (V = n("Layout.Light"), t[11] = n, t[12] = V) : V = t[12];
1626
- let i;
1627
- t[13] !== V ? (i = {
1292
+ let E;
1293
+ t[11] !== i ? (E = i("Layout.Light"), t[11] = i, t[12] = E) : E = t[12];
1294
+ let N;
1295
+ t[13] !== E ? (N = {
1628
1296
  mode: "light",
1629
- icon: $r,
1630
- label: V
1631
- }, t[13] = V, t[14] = i) : i = t[14];
1632
- let y;
1633
- t[15] !== n ? (y = n("Layout.Dark"), t[15] = n, t[16] = y) : y = t[16];
1634
- let w;
1635
- t[17] !== y ? (w = {
1297
+ icon: vn,
1298
+ label: E
1299
+ }, t[13] = E, t[14] = N) : N = t[14];
1300
+ let H;
1301
+ t[15] !== i ? (H = i("Layout.Dark"), t[15] = i, t[16] = H) : H = t[16];
1302
+ let V;
1303
+ t[17] !== H ? (V = {
1636
1304
  mode: "dark",
1637
- icon: Rr,
1638
- label: y
1639
- }, t[17] = y, t[18] = w) : w = t[18];
1640
- let O;
1641
- t[19] !== n ? (O = n("Layout.System"), t[19] = n, t[20] = O) : O = t[20];
1642
- let S;
1643
- t[21] !== O ? (S = {
1305
+ icon: wn,
1306
+ label: H
1307
+ }, t[17] = H, t[18] = V) : V = t[18];
1308
+ let G;
1309
+ t[19] !== i ? (G = i("Layout.System"), t[19] = i, t[20] = G) : G = t[20];
1310
+ let K;
1311
+ t[21] !== G ? (K = {
1644
1312
  mode: "system",
1645
- icon: zr,
1646
- label: O
1647
- }, t[21] = O, t[22] = S) : S = t[22];
1648
- let k;
1649
- t[23] !== i || t[24] !== w || t[25] !== S ? (k = [i, w, S], t[23] = i, t[24] = w, t[25] = S, t[26] = k) : k = t[26];
1650
- const C = k;
1651
- let M;
1652
- t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = (re) => r(re.currentTarget), t[27] = M) : M = t[27], v = M;
1653
- let I;
1654
- t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = () => {
1655
- r(void 0), setTimeout(() => s("settings"), 300);
1656
- }, t[28] = I) : I = t[28], h = I;
1657
- let L;
1658
- t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = (re) => () => s(re), t[29] = L) : L = t[29];
1659
- const D = L;
1660
- let X;
1661
- t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = {
1313
+ icon: Dn,
1314
+ label: G
1315
+ }, t[21] = G, t[22] = K) : K = t[22];
1316
+ let ue;
1317
+ t[23] !== N || t[24] !== V || t[25] !== K ? (ue = [N, V, K], t[23] = N, t[24] = V, t[25] = K, t[26] = ue) : ue = t[26];
1318
+ const fe = ue;
1319
+ let me;
1320
+ t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = (j) => n(j.currentTarget), t[27] = me) : me = t[27], h = me;
1321
+ let he;
1322
+ t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = () => {
1323
+ n(void 0), setTimeout(() => r("settings"), 300);
1324
+ }, t[28] = he) : he = t[28], m = he;
1325
+ let pe;
1326
+ t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = (j) => () => r(j), t[29] = pe) : pe = t[29];
1327
+ const ge = pe;
1328
+ let ye;
1329
+ t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = {
1662
1330
  backgroundColor: "transparent"
1663
- }, t[30] = X) : X = t[30];
1664
- let p;
1665
- t[31] !== n ? (p = n("Layout.Settings"), t[31] = n, t[32] = p) : p = t[32];
1331
+ }, t[30] = ye) : ye = t[30];
1666
1332
  let Q;
1667
- t[33] !== p ? (Q = /* @__PURE__ */ m(Ge, { sx: X, children: p }), t[33] = p, t[34] = Q) : Q = t[34];
1668
- let oe, se;
1669
- t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = D("theme"), se = {
1333
+ t[31] !== i ? (Q = i("Layout.Settings"), t[31] = i, t[32] = Q) : Q = t[32];
1334
+ let X;
1335
+ t[33] !== Q ? (X = /* @__PURE__ */ a(qe, { sx: ye, children: Q }), t[33] = Q, t[34] = X) : X = t[34];
1336
+ let xe, Se;
1337
+ t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = ge("theme"), Se = {
1670
1338
  py: 0.3
1671
- }, t[35] = oe, t[36] = se) : (oe = t[35], se = t[36]);
1339
+ }, t[35] = xe, t[36] = Se) : (xe = t[35], Se = t[36]);
1340
+ let Te;
1341
+ t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(bn, {}) }), t[37] = Te) : Te = t[37];
1342
+ let Z;
1343
+ t[38] !== i ? (Z = i("Layout.Appearance"), t[38] = i, t[39] = Z) : Z = t[39];
1344
+ const We = fe.find((j) => j.mode === c)?.label;
1345
+ let J;
1346
+ t[40] !== Z || t[41] !== We ? (J = /* @__PURE__ */ a(ae, { primary: Z, secondary: We }), t[40] = Z, t[41] = We, t[42] = J) : J = t[42];
1672
1347
  let be;
1673
- t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ m(Te, { children: /* @__PURE__ */ m(Ar, {}) }), t[37] = be) : be = t[37];
1674
- let ce;
1675
- t[38] !== n ? (ce = n("Layout.Appearance"), t[38] = n, t[39] = ce) : ce = t[39];
1676
- const Be = C.find((re) => re.mode === f)?.label;
1677
- let ue;
1678
- t[40] !== ce || t[41] !== Be ? (ue = /* @__PURE__ */ m(ye, { primary: ce, secondary: Be }), t[40] = ce, t[41] = Be, t[42] = ue) : ue = t[42];
1679
- let xe;
1680
- t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = /* @__PURE__ */ m(gt, {}), t[43] = xe) : xe = t[43];
1681
- let fe;
1682
- t[44] !== ue ? (fe = /* @__PURE__ */ q(ve, { onClick: oe, sx: se, children: [
1683
- be,
1684
- ue,
1685
- xe
1686
- ] }), t[44] = ue, t[45] = fe) : fe = t[45];
1687
- let Se, Ee;
1688
- t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = D("language"), Ee = {
1348
+ t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ a(lt, {}), t[43] = be) : be = t[43];
1349
+ let ee;
1350
+ t[44] !== J ? (ee = /* @__PURE__ */ D(ce, { onClick: xe, sx: Se, children: [
1351
+ Te,
1352
+ J,
1353
+ be
1354
+ ] }), t[44] = J, t[45] = ee) : ee = t[45];
1355
+ let we, ke;
1356
+ t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = ge("language"), ke = {
1689
1357
  py: 0.3
1690
- }, t[46] = Se, t[47] = Ee) : (Se = t[46], Ee = t[47]);
1691
- let _e;
1692
- t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ m(Te, { children: /* @__PURE__ */ m(Nr, {}) }), t[48] = _e) : _e = t[48];
1693
- let Oe;
1694
- t[49] !== n ? (Oe = n("Layout.Language"), t[49] = n, t[50] = Oe) : Oe = t[50];
1695
- let we;
1696
- t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ m(gt, {}), t[51] = we) : we = t[51];
1697
- const He = /* @__PURE__ */ q(ve, { onClick: Se, sx: Ee, children: [
1698
- _e,
1699
- /* @__PURE__ */ m(ye, { primary: Oe, secondary: It(te.of(c.language)) }),
1700
- we
1358
+ }, t[46] = we, t[47] = ke) : (we = t[46], ke = t[47]);
1359
+ let ve;
1360
+ t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Mn, {}) }), t[48] = ve) : ve = t[48];
1361
+ let Le;
1362
+ t[49] !== i ? (Le = i("Layout.Language"), t[49] = i, t[50] = Le) : Le = t[50];
1363
+ let De;
1364
+ t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ a(lt, {}), t[51] = De) : De = t[51];
1365
+ const Re = /* @__PURE__ */ D(ce, { onClick: we, sx: ke, children: [
1366
+ ve,
1367
+ /* @__PURE__ */ a(ae, { primary: Le, secondary: gt(B.of(l.language)) }),
1368
+ De
1701
1369
  ] });
1702
- let Ce;
1703
- t[52] !== Q || t[53] !== fe || t[54] !== He ? (Ce = /* @__PURE__ */ q(Re, { component: "nav", subheader: Q, children: [
1704
- fe,
1705
- He
1706
- ] }), t[52] = Q, t[53] = fe, t[54] = He, t[55] = Ce) : Ce = t[55], g = Ce;
1707
- let Me, Pe;
1708
- t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Me = D("settings"), Pe = {
1370
+ let Me;
1371
+ t[52] !== X || t[53] !== ee || t[54] !== Re ? (Me = /* @__PURE__ */ D($e, { component: "nav", subheader: X, children: [
1372
+ ee,
1373
+ Re
1374
+ ] }), t[52] = X, t[53] = ee, t[54] = Re, t[55] = Me) : Me = t[55], f = Me;
1375
+ let Oe, Ce;
1376
+ t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = ge("settings"), Ce = {
1709
1377
  backgroundColor: "transparent",
1710
1378
  display: "flex",
1711
1379
  alignItems: "center",
1712
1380
  px: 1,
1713
1381
  cursor: "pointer"
1714
- }, t[56] = Me, t[57] = Pe) : (Me = t[56], Pe = t[57]);
1715
- let ke;
1716
- t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ m(Ye, { size: "small", sx: {
1382
+ }, t[56] = Oe, t[57] = Ce) : (Oe = t[56], Ce = t[57]);
1383
+ let _e;
1384
+ t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ a(ze, { size: "small", sx: {
1717
1385
  mr: 0.5
1718
- }, children: /* @__PURE__ */ m(yt, { fontSize: "small" }) }), t[58] = ke) : ke = t[58];
1719
- let de;
1720
- t[59] !== n ? (de = n("Layout.Appearance"), t[59] = n, t[60] = de) : de = t[60];
1721
- let me;
1722
- t[61] !== de ? (me = /* @__PURE__ */ q(Ge, { onClick: Me, sx: Pe, children: [
1723
- ke,
1386
+ }, children: /* @__PURE__ */ a(at, { fontSize: "small" }) }), t[58] = _e) : _e = t[58];
1387
+ let te;
1388
+ t[59] !== i ? (te = i("Layout.Appearance"), t[59] = i, t[60] = te) : te = t[60];
1389
+ let ne;
1390
+ t[61] !== te ? (ne = /* @__PURE__ */ D(qe, { onClick: Oe, sx: Ce, children: [
1391
+ _e,
1724
1392
  " ",
1725
- de
1726
- ] }), t[61] = de, t[62] = me) : me = t[62];
1727
- let pe;
1728
- t[63] !== C || t[64] !== f || t[65] !== d ? (pe = C.map((re) => {
1393
+ te
1394
+ ] }), t[61] = te, t[62] = ne) : ne = t[62];
1395
+ let oe;
1396
+ t[63] !== fe || t[64] !== c || t[65] !== u ? (oe = fe.map((j) => {
1729
1397
  const {
1730
- mode: Ve,
1731
- icon: zt,
1732
- label: Nt
1733
- } = re;
1734
- return /* @__PURE__ */ q(ve, { onClick: () => {
1735
- d(Ve), h();
1736
- }, selected: f === Ve, children: [
1737
- /* @__PURE__ */ m(Te, { children: /* @__PURE__ */ m(zt, {}) }),
1738
- /* @__PURE__ */ m(ye, { primary: Nt })
1739
- ] }, Ve);
1740
- }), t[63] = C, t[64] = f, t[65] = d, t[66] = pe) : pe = t[66];
1398
+ mode: He,
1399
+ icon: Lt,
1400
+ label: Dt
1401
+ } = j;
1402
+ return /* @__PURE__ */ D(ce, { onClick: () => {
1403
+ u(He), m();
1404
+ }, selected: c === He, children: [
1405
+ /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Lt, {}) }),
1406
+ /* @__PURE__ */ a(ae, { primary: Dt })
1407
+ ] }, He);
1408
+ }), t[63] = fe, t[64] = c, t[65] = u, t[66] = oe) : oe = t[66];
1741
1409
  let Ie;
1742
- t[67] !== me || t[68] !== pe ? (Ie = /* @__PURE__ */ m(Re, { subheader: me, children: pe }), t[67] = me, t[68] = pe, t[69] = Ie) : Ie = t[69], E = Ie, u = Re;
1743
- let De, Le;
1744
- t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = D("settings"), Le = {
1410
+ t[67] !== ne || t[68] !== oe ? (Ie = /* @__PURE__ */ a($e, { subheader: ne, children: oe }), t[67] = ne, t[68] = oe, t[69] = Ie) : Ie = t[69], x = Ie, d = $e;
1411
+ let Ee, Ae;
1412
+ t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ee = ge("settings"), Ae = {
1745
1413
  backgroundColor: "transparent",
1746
1414
  display: "flex",
1747
1415
  alignItems: "center",
1748
1416
  px: 1,
1749
1417
  cursor: "pointer"
1750
- }, t[70] = De, t[71] = Le) : (De = t[70], Le = t[71]);
1751
- let Ae;
1752
- t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ m(Ye, { size: "small", sx: {
1418
+ }, t[70] = Ee, t[71] = Ae) : (Ee = t[70], Ae = t[71]);
1419
+ let Pe;
1420
+ t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ a(ze, { size: "small", sx: {
1753
1421
  mr: 0.5
1754
- }, children: /* @__PURE__ */ m(yt, { fontSize: "small" }) }), t[72] = Ae) : Ae = t[72];
1755
- let he;
1756
- t[73] !== n ? (he = n("Layout.Language"), t[73] = n, t[74] = he) : he = t[74], t[75] !== he ? (b = /* @__PURE__ */ q(Ge, { onClick: De, sx: Le, children: [
1757
- Ae,
1422
+ }, children: /* @__PURE__ */ a(at, { fontSize: "small" }) }), t[72] = Pe) : Pe = t[72];
1423
+ let ie;
1424
+ t[73] !== i ? (ie = i("Layout.Language"), t[73] = i, t[74] = ie) : ie = t[74], t[75] !== ie ? (p = /* @__PURE__ */ D(qe, { onClick: Ee, sx: Ae, children: [
1425
+ Pe,
1758
1426
  " ",
1759
- he
1760
- ] }), t[75] = he, t[76] = b) : b = t[76], T = H.map((re) => /* @__PURE__ */ q(ve, { onClick: () => c.changeLanguage(re).finally(() => h()), selected: c.resolvedLanguage === re, children: [
1761
- /* @__PURE__ */ m(Te, { children: c.resolvedLanguage === re && /* @__PURE__ */ m(jr, {}) }),
1762
- /* @__PURE__ */ m(ye, { primary: It(te.of(re)) })
1763
- ] }, re)), t[0] = c, t[1] = f, t[2] = d, t[3] = n, t[4] = u, t[5] = h, t[6] = v, t[7] = g, t[8] = b, t[9] = T, t[10] = E;
1427
+ ie
1428
+ ] }), t[75] = ie, t[76] = p) : p = t[76], g = F.map((j) => /* @__PURE__ */ D(ce, { onClick: () => l.changeLanguage(j).finally(() => m()), selected: l.resolvedLanguage === j, children: [
1429
+ /* @__PURE__ */ a(de, { children: l.resolvedLanguage === j && /* @__PURE__ */ a(kn, {}) }),
1430
+ /* @__PURE__ */ a(ae, { primary: gt(B.of(j)) })
1431
+ ] }, j)), t[0] = l, t[1] = c, t[2] = u, t[3] = i, t[4] = d, t[5] = m, t[6] = h, t[7] = f, t[8] = p, t[9] = g, t[10] = x;
1764
1432
  } else
1765
- u = t[4], h = t[5], v = t[6], g = t[7], b = t[8], T = t[9], E = t[10];
1766
- let P;
1767
- t[77] !== u || t[78] !== b || t[79] !== T ? (P = /* @__PURE__ */ m(u, { subheader: b, children: T }), t[77] = u, t[78] = b, t[79] = T, t[80] = P) : P = t[80];
1768
- const A = P;
1769
- let x;
1770
- t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ m(Lr, { sx: {
1433
+ d = t[4], m = t[5], h = t[6], f = t[7], p = t[8], g = t[9], x = t[10];
1434
+ let w;
1435
+ t[77] !== d || t[78] !== p || t[79] !== g ? (w = /* @__PURE__ */ a(d, { subheader: p, children: g }), t[77] = d, t[78] = p, t[79] = g, t[80] = w) : w = t[80];
1436
+ const S = w;
1437
+ let y;
1438
+ t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ a(Tn, { sx: {
1771
1439
  width: {
1772
1440
  xs: 32,
1773
1441
  sm: 40
@@ -1776,50 +1444,50 @@ const Ue = 84, Ne = 320, kt = 64, bn = (t) => {
1776
1444
  xs: 32,
1777
1445
  sm: 40
1778
1446
  }
1779
- } }), t[81] = x) : x = t[81];
1780
- let _;
1781
- t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ m(ar, { fallback: x, children: /* @__PURE__ */ m(ht, { promise: Sn(), children: On }) }), t[82] = _) : _ = t[82];
1782
- let l;
1783
- t[83] !== v ? (l = /* @__PURE__ */ m(Ye, { size: "small", edge: "end", onClick: v, children: _ }), t[83] = v, t[84] = l) : l = t[84];
1784
- let j;
1785
- t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = {
1447
+ } }), t[81] = y) : y = t[81];
1448
+ let k;
1449
+ t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(Ht, { fallback: y, children: /* @__PURE__ */ a(st, { promise: go(), children: So }) }), t[82] = k) : k = t[82];
1450
+ let T;
1451
+ t[83] !== h ? (T = /* @__PURE__ */ a(ze, { size: "small", edge: "end", onClick: h, children: k }), t[83] = h, t[84] = T) : T = t[84];
1452
+ let v;
1453
+ t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
1786
1454
  width: 240
1787
- }, t[85] = j) : j = t[85];
1788
- let J;
1789
- t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ m(Gt, { children: /* @__PURE__ */ m(ht, { promise: xn(), children: wn }) }), t[86] = J) : J = t[86];
1790
- let B;
1791
- t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ m(Te, { children: /* @__PURE__ */ m(Yr, { color: "error" }) }), t[87] = B) : B = t[87];
1792
- let N;
1793
- t[88] !== n ? (N = n("Layout.Logout"), t[88] = n, t[89] = N) : N = t[89];
1794
- let W;
1795
- t[90] !== N ? (W = /* @__PURE__ */ q(Re, { disablePadding: !0, children: [
1796
- J,
1797
- /* @__PURE__ */ q(ve, { onClick: Cn, children: [
1798
- B,
1799
- /* @__PURE__ */ m(ye, { primary: N })
1455
+ }, t[85] = v) : v = t[85];
1456
+ let z;
1457
+ t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(Pt, { children: /* @__PURE__ */ a(st, { promise: po(), children: To }) }), t[86] = z) : z = t[86];
1458
+ let I;
1459
+ t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Ln, { color: "error" }) }), t[87] = I) : I = t[87];
1460
+ let L;
1461
+ t[88] !== i ? (L = i("Layout.Logout"), t[88] = i, t[89] = L) : L = t[89];
1462
+ let M;
1463
+ t[90] !== L ? (M = /* @__PURE__ */ D($e, { disablePadding: !0, children: [
1464
+ z,
1465
+ /* @__PURE__ */ D(ce, { onClick: bo, children: [
1466
+ I,
1467
+ /* @__PURE__ */ a(ae, { primary: L })
1800
1468
  ] })
1801
- ] }), t[90] = N, t[91] = W) : W = t[91];
1802
- const K = o === "settings" && g, ee = o === "theme" && E, Z = o === "language" && A;
1803
- let U;
1804
- t[92] !== W || t[93] !== K || t[94] !== ee || t[95] !== Z ? (U = /* @__PURE__ */ q(ze, { sx: j, children: [
1805
- W,
1806
- K,
1807
- ee,
1808
- Z
1809
- ] }), t[92] = W, t[93] = K, t[94] = ee, t[95] = Z, t[96] = U) : U = t[96];
1810
- let F;
1811
- t[97] !== e || t[98] !== h || t[99] !== a || t[100] !== U ? (F = /* @__PURE__ */ m(Xt, { anchorEl: e, open: a, onClose: h, children: U }), t[97] = e, t[98] = h, t[99] = a, t[100] = U, t[101] = F) : F = t[101];
1812
- let R;
1813
- return t[102] !== F || t[103] !== l ? (R = /* @__PURE__ */ q(qe, { children: [
1814
- l,
1815
- F
1816
- ] }), t[102] = F, t[103] = l, t[104] = R) : R = t[104], R;
1469
+ ] }), t[90] = L, t[91] = M) : M = t[91];
1470
+ const P = o === "settings" && f, U = o === "theme" && x, $ = o === "language" && S;
1471
+ let A;
1472
+ t[92] !== M || t[93] !== P || t[94] !== U || t[95] !== $ ? (A = /* @__PURE__ */ D(Ne, { sx: v, children: [
1473
+ M,
1474
+ P,
1475
+ U,
1476
+ $
1477
+ ] }), t[92] = M, t[93] = P, t[94] = U, t[95] = $, t[96] = A) : A = t[96];
1478
+ let _;
1479
+ t[97] !== e || t[98] !== m || t[99] !== s || t[100] !== A ? (_ = /* @__PURE__ */ a(zt, { anchorEl: e, open: s, onClose: m, children: A }), t[97] = e, t[98] = m, t[99] = s, t[100] = A, t[101] = _) : _ = t[101];
1480
+ let O;
1481
+ return t[102] !== _ || t[103] !== T ? (O = /* @__PURE__ */ D(Be, { children: [
1482
+ T,
1483
+ _
1484
+ ] }), t[102] = _, t[103] = T, t[104] = O) : O = t[104], O;
1817
1485
  };
1818
- function _n(t) {
1486
+ function xo(t) {
1819
1487
  return t !== "cimode";
1820
1488
  }
1821
- function On(t) {
1822
- return /* @__PURE__ */ m(Kt, { src: t, sx: {
1489
+ function So(t) {
1490
+ return /* @__PURE__ */ a($t, { src: t, sx: {
1823
1491
  width: {
1824
1492
  xs: 32,
1825
1493
  sm: 40
@@ -1830,16 +1498,16 @@ function On(t) {
1830
1498
  }
1831
1499
  } });
1832
1500
  }
1833
- function wn(t) {
1834
- return /* @__PURE__ */ m(ye, { primary: t.displayName.split("/")[0], secondary: t.jobTitle });
1501
+ function To(t) {
1502
+ return /* @__PURE__ */ a(ae, { primary: t.displayName.split("/")[0], secondary: t.jobTitle });
1835
1503
  }
1836
- function Cn() {
1504
+ function bo() {
1837
1505
  return console.log("Logout clicked");
1838
1506
  }
1839
- const Yt = 3600 * 24 * 365, Mn = nr().server(() => Dt("navigationOpen") === "true").client(() => {
1507
+ const vt = 3600 * 24 * 365, wo = Wt().server(() => yt("navigationOpen") === "true").client(() => {
1840
1508
  const t = document.cookie.split("; ").find((e) => e.startsWith("navigationOpen="));
1841
1509
  return t ? t.split("=")[1] === "true" : !1;
1842
- }), Pn = at("div")(({
1510
+ }), ko = Ze("div")(({
1843
1511
  theme: t
1844
1512
  }) => ({
1845
1513
  display: "flex",
@@ -1847,70 +1515,70 @@ const Yt = 3600 * 24 * 365, Mn = nr().server(() => Dt("navigationOpen") === "tru
1847
1515
  justifyContent: "flex-end",
1848
1516
  padding: t.spacing(0, 1),
1849
1517
  ...t.mixins.toolbar
1850
- })), kn = (t) => {
1851
- const e = ae(29), [r, o] = le(Mn), s = !!hr(), a = !!yr();
1852
- let n, c;
1853
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ m(Zt, {}), c = /* @__PURE__ */ m(Jt, {}), e[0] = n, e[1] = c) : (n = e[0], c = e[1]);
1854
- let f;
1855
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
1518
+ })), vo = (t) => {
1519
+ const e = R(29), [n, o] = q(wo), r = !!tn(), s = !!nn();
1520
+ let i, l;
1521
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(Nt, {}), l = /* @__PURE__ */ a(jt, {}), e[0] = i, e[1] = l) : (i = e[0], l = e[1]);
1522
+ let c;
1523
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
1856
1524
  display: "flex",
1857
1525
  height: "100dvh",
1858
1526
  maxHeight: "100dvh",
1859
1527
  overflow: "hidden",
1860
1528
  width: "100%"
1861
- }, e[2] = f) : f = e[2];
1862
- let d;
1863
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
1529
+ }, e[2] = c) : c = e[2];
1530
+ let u;
1531
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
1864
1532
  borderBottom: "1px solid",
1865
1533
  borderColor: "var(--mui-palette-divider)",
1866
1534
  boxShadow: "none"
1867
- }, e[3] = d) : d = e[3];
1868
- let u;
1869
- e[4] !== r || e[5] !== t.navigation ? (u = t.navigation && /* @__PURE__ */ m(Ye, { onClick: () => {
1870
- o(In);
1535
+ }, e[3] = u) : u = e[3];
1536
+ let d;
1537
+ e[4] !== n || e[5] !== t.navigation ? (d = t.navigation && /* @__PURE__ */ a(ze, { onClick: () => {
1538
+ o(Lo);
1871
1539
  }, sx: {
1872
1540
  marginRight: 2
1873
- }, children: r ? /* @__PURE__ */ m(dr, {}) : /* @__PURE__ */ m(fr, {}) }), e[4] = r, e[5] = t.navigation, e[6] = u) : u = e[6];
1874
- let h, v;
1875
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ m(fn, {}), v = /* @__PURE__ */ m(En, {}), e[7] = h, e[8] = v) : (h = e[7], v = e[8]);
1876
- let g;
1877
- e[9] !== u ? (g = /* @__PURE__ */ m(Qt, { color: "transparent", position: "fixed", sx: d, children: /* @__PURE__ */ q(er, { children: [
1878
- u,
1879
- h,
1880
- v
1881
- ] }) }), e[9] = u, e[10] = g) : g = e[10];
1882
- let b;
1883
- e[11] !== r || e[12] !== t.navigation ? (b = t.navigation && /* @__PURE__ */ m(bn, { navigation: t.navigation, expanded: r, setExpanded: (j) => {
1884
- o(j), document.cookie = `navigationOpen=${j}; max-age=${Yt}; path=/`;
1885
- } }), e[11] = r, e[12] = t.navigation, e[13] = b) : b = e[13];
1886
- let T, E;
1887
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
1541
+ }, children: n ? /* @__PURE__ */ a(Zt, {}) : /* @__PURE__ */ a(Xt, {}) }), e[4] = n, e[5] = t.navigation, e[6] = d) : d = e[6];
1542
+ let m, h;
1543
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(io, {}), h = /* @__PURE__ */ a(yo, {}), e[7] = m, e[8] = h) : (m = e[7], h = e[8]);
1544
+ let f;
1545
+ e[9] !== d ? (f = /* @__PURE__ */ a(Ut, { color: "transparent", position: "fixed", sx: u, children: /* @__PURE__ */ D(Ft, { children: [
1546
+ d,
1547
+ m,
1548
+ h
1549
+ ] }) }), e[9] = d, e[10] = f) : f = e[10];
1550
+ let p;
1551
+ e[11] !== n || e[12] !== t.navigation ? (p = t.navigation && /* @__PURE__ */ a(ho, { navigation: t.navigation, expanded: n, setExpanded: (v) => {
1552
+ o(v), document.cookie = `navigationOpen=${v}; max-age=${vt}; path=/`;
1553
+ } }), e[11] = n, e[12] = t.navigation, e[13] = p) : p = e[13];
1554
+ let g, x;
1555
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
1888
1556
  flexGrow: 1,
1889
1557
  display: "flex",
1890
1558
  flexDirection: "column",
1891
1559
  minWidth: 0,
1892
1560
  height: "100%",
1893
1561
  overflow: "hidden"
1894
- }, T = /* @__PURE__ */ m(Pn, {}), e[14] = T, e[15] = E) : (T = e[14], E = e[15]);
1895
- let P;
1896
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
1562
+ }, g = /* @__PURE__ */ a(ko, {}), e[14] = g, e[15] = x) : (g = e[14], x = e[15]);
1563
+ let w;
1564
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
1897
1565
  flex: 1,
1898
1566
  overflow: "auto",
1899
1567
  position: "relative"
1900
- }, e[16] = P) : P = e[16];
1901
- let A;
1902
- e[17] !== t.children ? (A = /* @__PURE__ */ q(ze, { component: "main", sx: E, children: [
1903
- T,
1904
- /* @__PURE__ */ m(ze, { sx: P, children: t.children })
1905
- ] }), e[17] = t.children, e[18] = A) : A = e[18];
1906
- let x;
1907
- e[19] !== A || e[20] !== g || e[21] !== b ? (x = /* @__PURE__ */ q(ze, { sx: f, children: [
1568
+ }, e[16] = w) : w = e[16];
1569
+ let S;
1570
+ e[17] !== t.children ? (S = /* @__PURE__ */ D(Ne, { component: "main", sx: x, children: [
1908
1571
  g,
1909
- b,
1910
- A
1911
- ] }), e[19] = A, e[20] = g, e[21] = b, e[22] = x) : x = e[22];
1912
- let _;
1913
- e[23] !== s || e[24] !== a ? (_ = (s || a) && /* @__PURE__ */ m(tr, { sx: {
1572
+ /* @__PURE__ */ a(Ne, { sx: w, children: t.children })
1573
+ ] }), e[17] = t.children, e[18] = S) : S = e[18];
1574
+ let y;
1575
+ e[19] !== S || e[20] !== f || e[21] !== p ? (y = /* @__PURE__ */ D(Ne, { sx: c, children: [
1576
+ f,
1577
+ p,
1578
+ S
1579
+ ] }), e[19] = S, e[20] = f, e[21] = p, e[22] = y) : y = e[22];
1580
+ let k;
1581
+ e[23] !== r || e[24] !== s ? (k = (r || s) && /* @__PURE__ */ a(Yt, { sx: {
1914
1582
  position: "fixed",
1915
1583
  top: {
1916
1584
  xs: 56,
@@ -1918,61 +1586,61 @@ const Yt = 3600 * 24 * 365, Mn = nr().server(() => Dt("navigationOpen") === "tru
1918
1586
  },
1919
1587
  left: 0,
1920
1588
  right: 0
1921
- } }), e[23] = s, e[24] = a, e[25] = _) : _ = e[25];
1922
- let l;
1923
- return e[26] !== x || e[27] !== _ ? (l = /* @__PURE__ */ q(qe, { children: [
1924
- n,
1925
- c,
1926
- x,
1927
- _
1928
- ] }), e[26] = x, e[27] = _, e[28] = l) : l = e[28], l;
1589
+ } }), e[23] = r, e[24] = s, e[25] = k) : k = e[25];
1590
+ let T;
1591
+ return e[26] !== y || e[27] !== k ? (T = /* @__PURE__ */ D(Be, { children: [
1592
+ i,
1593
+ l,
1594
+ y,
1595
+ k
1596
+ ] }), e[26] = y, e[27] = k, e[28] = T) : T = e[28], T;
1929
1597
  };
1930
- function In(t) {
1598
+ function Lo(t) {
1931
1599
  const e = !t;
1932
- return document.cookie = `navigationOpen=${e}; max-age=${Yt}; path=/`, e;
1600
+ return document.cookie = `navigationOpen=${e}; max-age=${vt}; path=/`, e;
1933
1601
  }
1934
- const Dn = 1440 * 365;
1935
- ie.use(or).use(cr).init({
1936
- resources: mt,
1602
+ const Do = 1440 * 365;
1603
+ W.use(wt).use(no).init({
1604
+ resources: it,
1937
1605
  fallbackLng: "en",
1938
- supportedLngs: Object.keys(mt),
1606
+ supportedLngs: Object.keys(it),
1939
1607
  detection: {
1940
1608
  caches: ["cookie"],
1941
- cookieMinutes: Dn
1609
+ cookieMinutes: Do
1942
1610
  },
1943
1611
  interpolation: {
1944
1612
  escapeValue: !1
1945
1613
  }
1946
1614
  });
1947
- const Ao = (t) => {
1948
- const e = ae(9), {
1949
- navigation: r,
1615
+ const Li = (t) => {
1616
+ const e = R(9), {
1617
+ navigation: n,
1950
1618
  theme: o,
1951
- children: s
1952
- } = t, a = sr(Ln);
1953
- let n;
1954
- e[0] !== a ? (n = () => (a(), ie.on("languageChanged", a), () => {
1955
- ie.off("languageChanged", a);
1956
- }), e[0] = a, e[1] = n) : n = e[1];
1619
+ children: r
1620
+ } = t, s = qt(Mo);
1621
+ let i;
1622
+ e[0] !== s ? (i = () => (s(), W.on("languageChanged", s), () => {
1623
+ W.off("languageChanged", s);
1624
+ }), e[0] = s, e[1] = i) : i = e[1];
1625
+ let l;
1626
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], xt(i, l);
1957
1627
  let c;
1958
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = [], e[2] = c) : c = e[2], Lt(n, c);
1959
- let f;
1960
- e[3] !== s || e[4] !== r ? (f = /* @__PURE__ */ m(ft, { dateAdapter: cn, adapterLocale: ie.language, children: /* @__PURE__ */ m(un, { children: /* @__PURE__ */ m(kn, { navigation: r, children: s }) }) }, ie.language), e[3] = s, e[4] = r, e[5] = f) : f = e[5];
1961
- let d;
1962
- return e[6] !== f || e[7] !== o ? (d = /* @__PURE__ */ m(rr, { theme: o, children: f }), e[6] = f, e[7] = o, e[8] = d) : d = e[8], d;
1963
- }, Ro = Fe().handler(async () => {
1964
- const t = Dt(ie.services.languageDetector.options.lookupCookie) || "en";
1965
- ge.config(ge.core.locales[t]()), G.locale(t), await ie.changeLanguage(t);
1628
+ e[3] !== r || e[4] !== n ? (c = /* @__PURE__ */ a(nt, { dateAdapter: Fn, adapterLocale: W.language, children: /* @__PURE__ */ a(oo, { children: /* @__PURE__ */ a(vo, { navigation: n, children: r }) }) }, W.language), e[3] = r, e[4] = n, e[5] = c) : c = e[5];
1629
+ let u;
1630
+ return e[6] !== c || e[7] !== o ? (u = /* @__PURE__ */ a(Bt, { theme: o, children: c }), e[6] = c, e[7] = o, e[8] = u) : u = e[8], u;
1631
+ }, Di = Ye().handler(async () => {
1632
+ const t = yt(W.services.languageDetector.options.lookupCookie) || "en";
1633
+ le.config(le.core.locales[t]()), C.locale(t), await W.changeLanguage(t);
1966
1634
  });
1967
- function Ln() {
1968
- ge.config(ge.core.locales[ie.language]()), G.locale(ie.language);
1635
+ function Mo() {
1636
+ le.config(le.core.locales[W.language]()), C.locale(W.language);
1969
1637
  }
1970
1638
  export {
1971
- Ao as LayoutProvider,
1972
- Yo as WISTRON_PRIMARY_COLOR,
1973
- zo as WISTRON_SECONDARY_COLOR,
1974
- Lo as getSessionUser,
1975
- No as rootRouteHead,
1976
- Ro as setSSRLanguage
1639
+ Li as LayoutProvider,
1640
+ Ci as WISTRON_PRIMARY_COLOR,
1641
+ _i as WISTRON_SECONDARY_COLOR,
1642
+ vi as getSessionUser,
1643
+ Ii as rootRouteHead,
1644
+ Di as setSSRLanguage
1977
1645
  };
1978
1646
  //# sourceMappingURL=index.js.map