@codeplex-sac/diseno 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js ADDED
@@ -0,0 +1,4895 @@
1
+ import { jsxs as ee, jsx as v, Fragment as rt } from "react/jsx-runtime";
2
+ import * as ve from "react";
3
+ import { useState as De, useEffect as Ht, forwardRef as zt } from "react";
4
+ import { useTheme as st, Box as N, ButtonBase as rn, Typography as se, Collapse as _r, alpha as ce, IconButton as Be, InputBase as nn, Badge as on, Avatar as et, ListItemButton as an, ListItemIcon as sn, List as kr, Divider as Pt, Tooltip as Ir, ListItemText as ln, Menu as cn, MenuItem as un, Container as dn, Grid as fn, Stack as pn, ImageList as mn, ImageListItem as hn, ImageListItemBar as gn } from "@mui/material";
5
+ import { unstable_createGetCssVar as yn, createSpacing as bn, useTheme as vn, unstable_memoTheme as xn, alpha as Nt } from "@mui/system";
6
+ import Sn from "@emotion/styled";
7
+ import "@emotion/react";
8
+ const Gt = (e) => e, Cn = () => {
9
+ let e = Gt;
10
+ return {
11
+ configure(t) {
12
+ e = t;
13
+ },
14
+ generate(t) {
15
+ return e(t);
16
+ },
17
+ reset() {
18
+ e = Gt;
19
+ }
20
+ };
21
+ }, wn = Cn();
22
+ function we(e, ...t) {
23
+ const r = new URL(`https://mui.com/production-error/?code=${e}`);
24
+ return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
25
+ }
26
+ function _e(e) {
27
+ if (typeof e != "string")
28
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : we(7));
29
+ return e.charAt(0).toUpperCase() + e.slice(1);
30
+ }
31
+ function En(e) {
32
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
33
+ }
34
+ var Xe = { exports: {} }, Je = { exports: {} }, U = {};
35
+ var Kt;
36
+ function Tn() {
37
+ if (Kt) return U;
38
+ Kt = 1;
39
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, m = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, u = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, c = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, g = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, O = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, _ = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
40
+ function R(x) {
41
+ if (typeof x == "object" && x !== null) {
42
+ var T = x.$$typeof;
43
+ switch (T) {
44
+ case t:
45
+ switch (x = x.type, x) {
46
+ case f:
47
+ case d:
48
+ case n:
49
+ case i:
50
+ case o:
51
+ case m:
52
+ return x;
53
+ default:
54
+ switch (x = x && x.$$typeof, x) {
55
+ case s:
56
+ case p:
57
+ case b:
58
+ case y:
59
+ case l:
60
+ return x;
61
+ default:
62
+ return T;
63
+ }
64
+ }
65
+ case r:
66
+ return T;
67
+ }
68
+ }
69
+ }
70
+ function w(x) {
71
+ return R(x) === d;
72
+ }
73
+ return U.AsyncMode = f, U.ConcurrentMode = d, U.ContextConsumer = s, U.ContextProvider = l, U.Element = t, U.ForwardRef = p, U.Fragment = n, U.Lazy = b, U.Memo = y, U.Portal = r, U.Profiler = i, U.StrictMode = o, U.Suspense = m, U.isAsyncMode = function(x) {
74
+ return w(x) || R(x) === f;
75
+ }, U.isConcurrentMode = w, U.isContextConsumer = function(x) {
76
+ return R(x) === s;
77
+ }, U.isContextProvider = function(x) {
78
+ return R(x) === l;
79
+ }, U.isElement = function(x) {
80
+ return typeof x == "object" && x !== null && x.$$typeof === t;
81
+ }, U.isForwardRef = function(x) {
82
+ return R(x) === p;
83
+ }, U.isFragment = function(x) {
84
+ return R(x) === n;
85
+ }, U.isLazy = function(x) {
86
+ return R(x) === b;
87
+ }, U.isMemo = function(x) {
88
+ return R(x) === y;
89
+ }, U.isPortal = function(x) {
90
+ return R(x) === r;
91
+ }, U.isProfiler = function(x) {
92
+ return R(x) === i;
93
+ }, U.isStrictMode = function(x) {
94
+ return R(x) === o;
95
+ }, U.isSuspense = function(x) {
96
+ return R(x) === m;
97
+ }, U.isValidElementType = function(x) {
98
+ return typeof x == "string" || typeof x == "function" || x === n || x === d || x === i || x === o || x === m || x === u || typeof x == "object" && x !== null && (x.$$typeof === b || x.$$typeof === y || x.$$typeof === l || x.$$typeof === s || x.$$typeof === p || x.$$typeof === g || x.$$typeof === O || x.$$typeof === _ || x.$$typeof === c);
99
+ }, U.typeOf = R, U;
100
+ }
101
+ var q = {};
102
+ var Xt;
103
+ function $n() {
104
+ return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && (function() {
105
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, p = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, m = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, u = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, y = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, c = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, g = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, O = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, _ = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
106
+ function R(E) {
107
+ return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
108
+ E === n || E === d || E === i || E === o || E === m || E === u || typeof E == "object" && E !== null && (E.$$typeof === b || E.$$typeof === y || E.$$typeof === l || E.$$typeof === s || E.$$typeof === p || E.$$typeof === g || E.$$typeof === O || E.$$typeof === _ || E.$$typeof === c);
109
+ }
110
+ function w(E) {
111
+ if (typeof E == "object" && E !== null) {
112
+ var he = E.$$typeof;
113
+ switch (he) {
114
+ case t:
115
+ var Ke = E.type;
116
+ switch (Ke) {
117
+ case f:
118
+ case d:
119
+ case n:
120
+ case i:
121
+ case o:
122
+ case m:
123
+ return Ke;
124
+ default:
125
+ var qt = Ke && Ke.$$typeof;
126
+ switch (qt) {
127
+ case s:
128
+ case p:
129
+ case b:
130
+ case y:
131
+ case l:
132
+ return qt;
133
+ default:
134
+ return he;
135
+ }
136
+ }
137
+ case r:
138
+ return he;
139
+ }
140
+ }
141
+ }
142
+ var x = f, T = d, Q = s, k = l, z = t, re = p, Z = n, a = b, A = y, C = r, I = i, L = o, ae = m, me = !1;
143
+ function St(E) {
144
+ return me || (me = !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.")), S(E) || w(E) === f;
145
+ }
146
+ function S(E) {
147
+ return w(E) === d;
148
+ }
149
+ function $(E) {
150
+ return w(E) === s;
151
+ }
152
+ function j(E) {
153
+ return w(E) === l;
154
+ }
155
+ function D(E) {
156
+ return typeof E == "object" && E !== null && E.$$typeof === t;
157
+ }
158
+ function P(E) {
159
+ return w(E) === p;
160
+ }
161
+ function W(E) {
162
+ return w(E) === n;
163
+ }
164
+ function M(E) {
165
+ return w(E) === b;
166
+ }
167
+ function B(E) {
168
+ return w(E) === y;
169
+ }
170
+ function V(E) {
171
+ return w(E) === r;
172
+ }
173
+ function H(E) {
174
+ return w(E) === i;
175
+ }
176
+ function F(E) {
177
+ return w(E) === o;
178
+ }
179
+ function le(E) {
180
+ return w(E) === m;
181
+ }
182
+ q.AsyncMode = x, q.ConcurrentMode = T, q.ContextConsumer = Q, q.ContextProvider = k, q.Element = z, q.ForwardRef = re, q.Fragment = Z, q.Lazy = a, q.Memo = A, q.Portal = C, q.Profiler = I, q.StrictMode = L, q.Suspense = ae, q.isAsyncMode = St, q.isConcurrentMode = S, q.isContextConsumer = $, q.isContextProvider = j, q.isElement = D, q.isForwardRef = P, q.isFragment = W, q.isLazy = M, q.isMemo = B, q.isPortal = V, q.isProfiler = H, q.isStrictMode = F, q.isSuspense = le, q.isValidElementType = R, q.typeOf = w;
183
+ })()), q;
184
+ }
185
+ var Jt;
186
+ function Rr() {
187
+ return Jt || (Jt = 1, process.env.NODE_ENV === "production" ? Je.exports = Tn() : Je.exports = $n()), Je.exports;
188
+ }
189
+ var Ct, Qt;
190
+ function An() {
191
+ if (Qt) return Ct;
192
+ Qt = 1;
193
+ var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
194
+ function n(i) {
195
+ if (i == null)
196
+ throw new TypeError("Object.assign cannot be called with null or undefined");
197
+ return Object(i);
198
+ }
199
+ function o() {
200
+ try {
201
+ if (!Object.assign)
202
+ return !1;
203
+ var i = new String("abc");
204
+ if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
205
+ return !1;
206
+ for (var l = {}, s = 0; s < 10; s++)
207
+ l["_" + String.fromCharCode(s)] = s;
208
+ var f = Object.getOwnPropertyNames(l).map(function(p) {
209
+ return l[p];
210
+ });
211
+ if (f.join("") !== "0123456789")
212
+ return !1;
213
+ var d = {};
214
+ return "abcdefghijklmnopqrst".split("").forEach(function(p) {
215
+ d[p] = p;
216
+ }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
217
+ } catch {
218
+ return !1;
219
+ }
220
+ }
221
+ return Ct = o() ? Object.assign : function(i, l) {
222
+ for (var s, f = n(i), d, p = 1; p < arguments.length; p++) {
223
+ s = Object(arguments[p]);
224
+ for (var m in s)
225
+ t.call(s, m) && (f[m] = s[m]);
226
+ if (e) {
227
+ d = e(s);
228
+ for (var u = 0; u < d.length; u++)
229
+ r.call(s, d[u]) && (f[d[u]] = s[d[u]]);
230
+ }
231
+ }
232
+ return f;
233
+ }, Ct;
234
+ }
235
+ var wt, Zt;
236
+ function Lt() {
237
+ if (Zt) return wt;
238
+ Zt = 1;
239
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
240
+ return wt = e, wt;
241
+ }
242
+ var Et, er;
243
+ function Pr() {
244
+ return er || (er = 1, Et = Function.call.bind(Object.prototype.hasOwnProperty)), Et;
245
+ }
246
+ var Tt, tr;
247
+ function On() {
248
+ if (tr) return Tt;
249
+ tr = 1;
250
+ var e = function() {
251
+ };
252
+ if (process.env.NODE_ENV !== "production") {
253
+ var t = /* @__PURE__ */ Lt(), r = {}, n = /* @__PURE__ */ Pr();
254
+ e = function(i) {
255
+ var l = "Warning: " + i;
256
+ typeof console < "u" && console.error(l);
257
+ try {
258
+ throw new Error(l);
259
+ } catch {
260
+ }
261
+ };
262
+ }
263
+ function o(i, l, s, f, d) {
264
+ if (process.env.NODE_ENV !== "production") {
265
+ for (var p in i)
266
+ if (n(i, p)) {
267
+ var m;
268
+ try {
269
+ if (typeof i[p] != "function") {
270
+ var u = Error(
271
+ (f || "React class") + ": " + s + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
272
+ );
273
+ throw u.name = "Invariant Violation", u;
274
+ }
275
+ m = i[p](l, p, f, s, null, t);
276
+ } catch (b) {
277
+ m = b;
278
+ }
279
+ if (m && !(m instanceof Error) && e(
280
+ (f || "React class") + ": type specification of " + s + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
281
+ ), m instanceof Error && !(m.message in r)) {
282
+ r[m.message] = !0;
283
+ var y = d ? d() : "";
284
+ e(
285
+ "Failed " + s + " type: " + m.message + (y ?? "")
286
+ );
287
+ }
288
+ }
289
+ }
290
+ }
291
+ return o.resetWarningCache = function() {
292
+ process.env.NODE_ENV !== "production" && (r = {});
293
+ }, Tt = o, Tt;
294
+ }
295
+ var $t, rr;
296
+ function _n() {
297
+ if (rr) return $t;
298
+ rr = 1;
299
+ var e = Rr(), t = An(), r = /* @__PURE__ */ Lt(), n = /* @__PURE__ */ Pr(), o = /* @__PURE__ */ On(), i = function() {
300
+ };
301
+ process.env.NODE_ENV !== "production" && (i = function(s) {
302
+ var f = "Warning: " + s;
303
+ typeof console < "u" && console.error(f);
304
+ try {
305
+ throw new Error(f);
306
+ } catch {
307
+ }
308
+ });
309
+ function l() {
310
+ return null;
311
+ }
312
+ return $t = function(s, f) {
313
+ var d = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
314
+ function m(S) {
315
+ var $ = S && (d && S[d] || S[p]);
316
+ if (typeof $ == "function")
317
+ return $;
318
+ }
319
+ var u = "<<anonymous>>", y = {
320
+ array: O("array"),
321
+ bigint: O("bigint"),
322
+ bool: O("boolean"),
323
+ func: O("function"),
324
+ number: O("number"),
325
+ object: O("object"),
326
+ string: O("string"),
327
+ symbol: O("symbol"),
328
+ any: _(),
329
+ arrayOf: R,
330
+ element: w(),
331
+ elementType: x(),
332
+ instanceOf: T,
333
+ node: re(),
334
+ objectOf: k,
335
+ oneOf: Q,
336
+ oneOfType: z,
337
+ shape: a,
338
+ exact: A
339
+ };
340
+ function b(S, $) {
341
+ return S === $ ? S !== 0 || 1 / S === 1 / $ : S !== S && $ !== $;
342
+ }
343
+ function c(S, $) {
344
+ this.message = S, this.data = $ && typeof $ == "object" ? $ : {}, this.stack = "";
345
+ }
346
+ c.prototype = Error.prototype;
347
+ function g(S) {
348
+ if (process.env.NODE_ENV !== "production")
349
+ var $ = {}, j = 0;
350
+ function D(W, M, B, V, H, F, le) {
351
+ if (V = V || u, F = F || B, le !== r) {
352
+ if (f) {
353
+ var E = new Error(
354
+ "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"
355
+ );
356
+ throw E.name = "Invariant Violation", E;
357
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
358
+ var he = V + ":" + B;
359
+ !$[he] && // Avoid spamming the console because they are often not actionable except for lib authors
360
+ j < 3 && (i(
361
+ "You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" + V + "`. 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."
362
+ ), $[he] = !0, j++);
363
+ }
364
+ }
365
+ return M[B] == null ? W ? M[B] === null ? new c("The " + H + " `" + F + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new c("The " + H + " `" + F + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : S(M, B, V, H, F);
366
+ }
367
+ var P = D.bind(null, !1);
368
+ return P.isRequired = D.bind(null, !0), P;
369
+ }
370
+ function O(S) {
371
+ function $(j, D, P, W, M, B) {
372
+ var V = j[D], H = L(V);
373
+ if (H !== S) {
374
+ var F = ae(V);
375
+ return new c(
376
+ "Invalid " + W + " `" + M + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected ") + ("`" + S + "`."),
377
+ { expectedType: S }
378
+ );
379
+ }
380
+ return null;
381
+ }
382
+ return g($);
383
+ }
384
+ function _() {
385
+ return g(l);
386
+ }
387
+ function R(S) {
388
+ function $(j, D, P, W, M) {
389
+ if (typeof S != "function")
390
+ return new c("Property `" + M + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
391
+ var B = j[D];
392
+ if (!Array.isArray(B)) {
393
+ var V = L(B);
394
+ return new c("Invalid " + W + " `" + M + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected an array."));
395
+ }
396
+ for (var H = 0; H < B.length; H++) {
397
+ var F = S(B, H, P, W, M + "[" + H + "]", r);
398
+ if (F instanceof Error)
399
+ return F;
400
+ }
401
+ return null;
402
+ }
403
+ return g($);
404
+ }
405
+ function w() {
406
+ function S($, j, D, P, W) {
407
+ var M = $[j];
408
+ if (!s(M)) {
409
+ var B = L(M);
410
+ return new c("Invalid " + P + " `" + W + "` of type " + ("`" + B + "` supplied to `" + D + "`, expected a single ReactElement."));
411
+ }
412
+ return null;
413
+ }
414
+ return g(S);
415
+ }
416
+ function x() {
417
+ function S($, j, D, P, W) {
418
+ var M = $[j];
419
+ if (!e.isValidElementType(M)) {
420
+ var B = L(M);
421
+ return new c("Invalid " + P + " `" + W + "` of type " + ("`" + B + "` supplied to `" + D + "`, expected a single ReactElement type."));
422
+ }
423
+ return null;
424
+ }
425
+ return g(S);
426
+ }
427
+ function T(S) {
428
+ function $(j, D, P, W, M) {
429
+ if (!(j[D] instanceof S)) {
430
+ var B = S.name || u, V = St(j[D]);
431
+ return new c("Invalid " + W + " `" + M + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected ") + ("instance of `" + B + "`."));
432
+ }
433
+ return null;
434
+ }
435
+ return g($);
436
+ }
437
+ function Q(S) {
438
+ if (!Array.isArray(S))
439
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
440
+ "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])."
441
+ ) : i("Invalid argument supplied to oneOf, expected an array.")), l;
442
+ function $(j, D, P, W, M) {
443
+ for (var B = j[D], V = 0; V < S.length; V++)
444
+ if (b(B, S[V]))
445
+ return null;
446
+ var H = JSON.stringify(S, function(le, E) {
447
+ var he = ae(E);
448
+ return he === "symbol" ? String(E) : E;
449
+ });
450
+ return new c("Invalid " + W + " `" + M + "` of value `" + String(B) + "` " + ("supplied to `" + P + "`, expected one of " + H + "."));
451
+ }
452
+ return g($);
453
+ }
454
+ function k(S) {
455
+ function $(j, D, P, W, M) {
456
+ if (typeof S != "function")
457
+ return new c("Property `" + M + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
458
+ var B = j[D], V = L(B);
459
+ if (V !== "object")
460
+ return new c("Invalid " + W + " `" + M + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected an object."));
461
+ for (var H in B)
462
+ if (n(B, H)) {
463
+ var F = S(B, H, P, W, M + "." + H, r);
464
+ if (F instanceof Error)
465
+ return F;
466
+ }
467
+ return null;
468
+ }
469
+ return g($);
470
+ }
471
+ function z(S) {
472
+ if (!Array.isArray(S))
473
+ return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), l;
474
+ for (var $ = 0; $ < S.length; $++) {
475
+ var j = S[$];
476
+ if (typeof j != "function")
477
+ return i(
478
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + me(j) + " at index " + $ + "."
479
+ ), l;
480
+ }
481
+ function D(P, W, M, B, V) {
482
+ for (var H = [], F = 0; F < S.length; F++) {
483
+ var le = S[F], E = le(P, W, M, B, V, r);
484
+ if (E == null)
485
+ return null;
486
+ E.data && n(E.data, "expectedType") && H.push(E.data.expectedType);
487
+ }
488
+ var he = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
489
+ return new c("Invalid " + B + " `" + V + "` supplied to " + ("`" + M + "`" + he + "."));
490
+ }
491
+ return g(D);
492
+ }
493
+ function re() {
494
+ function S($, j, D, P, W) {
495
+ return C($[j]) ? null : new c("Invalid " + P + " `" + W + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
496
+ }
497
+ return g(S);
498
+ }
499
+ function Z(S, $, j, D, P) {
500
+ return new c(
501
+ (S || "React class") + ": " + $ + " type `" + j + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
502
+ );
503
+ }
504
+ function a(S) {
505
+ function $(j, D, P, W, M) {
506
+ var B = j[D], V = L(B);
507
+ if (V !== "object")
508
+ return new c("Invalid " + W + " `" + M + "` of type `" + V + "` " + ("supplied to `" + P + "`, expected `object`."));
509
+ for (var H in S) {
510
+ var F = S[H];
511
+ if (typeof F != "function")
512
+ return Z(P, W, M, H, ae(F));
513
+ var le = F(B, H, P, W, M + "." + H, r);
514
+ if (le)
515
+ return le;
516
+ }
517
+ return null;
518
+ }
519
+ return g($);
520
+ }
521
+ function A(S) {
522
+ function $(j, D, P, W, M) {
523
+ var B = j[D], V = L(B);
524
+ if (V !== "object")
525
+ return new c("Invalid " + W + " `" + M + "` of type `" + V + "` " + ("supplied to `" + P + "`, expected `object`."));
526
+ var H = t({}, j[D], S);
527
+ for (var F in H) {
528
+ var le = S[F];
529
+ if (n(S, F) && typeof le != "function")
530
+ return Z(P, W, M, F, ae(le));
531
+ if (!le)
532
+ return new c(
533
+ "Invalid " + W + " `" + M + "` key `" + F + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(j[D], null, " ") + `
534
+ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
535
+ );
536
+ var E = le(B, F, P, W, M + "." + F, r);
537
+ if (E)
538
+ return E;
539
+ }
540
+ return null;
541
+ }
542
+ return g($);
543
+ }
544
+ function C(S) {
545
+ switch (typeof S) {
546
+ case "number":
547
+ case "string":
548
+ case "undefined":
549
+ return !0;
550
+ case "boolean":
551
+ return !S;
552
+ case "object":
553
+ if (Array.isArray(S))
554
+ return S.every(C);
555
+ if (S === null || s(S))
556
+ return !0;
557
+ var $ = m(S);
558
+ if ($) {
559
+ var j = $.call(S), D;
560
+ if ($ !== S.entries) {
561
+ for (; !(D = j.next()).done; )
562
+ if (!C(D.value))
563
+ return !1;
564
+ } else
565
+ for (; !(D = j.next()).done; ) {
566
+ var P = D.value;
567
+ if (P && !C(P[1]))
568
+ return !1;
569
+ }
570
+ } else
571
+ return !1;
572
+ return !0;
573
+ default:
574
+ return !1;
575
+ }
576
+ }
577
+ function I(S, $) {
578
+ return S === "symbol" ? !0 : $ ? $["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && $ instanceof Symbol : !1;
579
+ }
580
+ function L(S) {
581
+ var $ = typeof S;
582
+ return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" : I($, S) ? "symbol" : $;
583
+ }
584
+ function ae(S) {
585
+ if (typeof S > "u" || S === null)
586
+ return "" + S;
587
+ var $ = L(S);
588
+ if ($ === "object") {
589
+ if (S instanceof Date)
590
+ return "date";
591
+ if (S instanceof RegExp)
592
+ return "regexp";
593
+ }
594
+ return $;
595
+ }
596
+ function me(S) {
597
+ var $ = ae(S);
598
+ switch ($) {
599
+ case "array":
600
+ case "object":
601
+ return "an " + $;
602
+ case "boolean":
603
+ case "date":
604
+ case "regexp":
605
+ return "a " + $;
606
+ default:
607
+ return $;
608
+ }
609
+ }
610
+ function St(S) {
611
+ return !S.constructor || !S.constructor.name ? u : S.constructor.name;
612
+ }
613
+ return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
614
+ }, $t;
615
+ }
616
+ var At, nr;
617
+ function kn() {
618
+ if (nr) return At;
619
+ nr = 1;
620
+ var e = /* @__PURE__ */ Lt();
621
+ function t() {
622
+ }
623
+ function r() {
624
+ }
625
+ return r.resetWarningCache = t, At = function() {
626
+ function n(l, s, f, d, p, m) {
627
+ if (m !== e) {
628
+ var u = new Error(
629
+ "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"
630
+ );
631
+ throw u.name = "Invariant Violation", u;
632
+ }
633
+ }
634
+ n.isRequired = n;
635
+ function o() {
636
+ return n;
637
+ }
638
+ var i = {
639
+ array: n,
640
+ bigint: n,
641
+ bool: n,
642
+ func: n,
643
+ number: n,
644
+ object: n,
645
+ string: n,
646
+ symbol: n,
647
+ any: n,
648
+ arrayOf: o,
649
+ element: n,
650
+ elementType: n,
651
+ instanceOf: o,
652
+ node: n,
653
+ objectOf: o,
654
+ oneOf: o,
655
+ oneOfType: o,
656
+ shape: o,
657
+ exact: o,
658
+ checkPropTypes: r,
659
+ resetWarningCache: t
660
+ };
661
+ return i.PropTypes = i, i;
662
+ }, At;
663
+ }
664
+ var or;
665
+ function In() {
666
+ if (or) return Xe.exports;
667
+ if (or = 1, process.env.NODE_ENV !== "production") {
668
+ var e = Rr(), t = !0;
669
+ Xe.exports = /* @__PURE__ */ _n()(e.isElement, t);
670
+ } else
671
+ Xe.exports = /* @__PURE__ */ kn()();
672
+ return Xe.exports;
673
+ }
674
+ var Rn = /* @__PURE__ */ In();
675
+ const Y = /* @__PURE__ */ En(Rn);
676
+ function Nr(e) {
677
+ var t, r, n = "";
678
+ if (typeof e == "string" || typeof e == "number") n += e;
679
+ else if (typeof e == "object") if (Array.isArray(e)) {
680
+ var o = e.length;
681
+ for (t = 0; t < o; t++) e[t] && (r = Nr(e[t])) && (n && (n += " "), n += r);
682
+ } else for (r in e) e[r] && (n && (n += " "), n += r);
683
+ return n;
684
+ }
685
+ function Mr() {
686
+ for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Nr(e)) && (n && (n += " "), n += t);
687
+ return n;
688
+ }
689
+ function Pn(e, t, r = void 0) {
690
+ const n = {};
691
+ for (const o in e) {
692
+ const i = e[o];
693
+ let l = "", s = !0;
694
+ for (let f = 0; f < i.length; f += 1) {
695
+ const d = i[f];
696
+ d && (l += (s === !0 ? "" : " ") + t(d), s = !1, r && r[d] && (l += " " + r[d]));
697
+ }
698
+ n[o] = l;
699
+ }
700
+ return n;
701
+ }
702
+ var Qe = { exports: {} }, X = {};
703
+ var ir;
704
+ function Nn() {
705
+ if (ir) return X;
706
+ ir = 1;
707
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), n = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.consumer"), l = /* @__PURE__ */ Symbol.for("react.context"), s = /* @__PURE__ */ Symbol.for("react.forward_ref"), f = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), u = /* @__PURE__ */ Symbol.for("react.view_transition"), y = /* @__PURE__ */ Symbol.for("react.client.reference");
708
+ function b(c) {
709
+ if (typeof c == "object" && c !== null) {
710
+ var g = c.$$typeof;
711
+ switch (g) {
712
+ case e:
713
+ switch (c = c.type, c) {
714
+ case r:
715
+ case o:
716
+ case n:
717
+ case f:
718
+ case d:
719
+ case u:
720
+ return c;
721
+ default:
722
+ switch (c = c && c.$$typeof, c) {
723
+ case l:
724
+ case s:
725
+ case m:
726
+ case p:
727
+ return c;
728
+ case i:
729
+ return c;
730
+ default:
731
+ return g;
732
+ }
733
+ }
734
+ case t:
735
+ return g;
736
+ }
737
+ }
738
+ }
739
+ return X.ContextConsumer = i, X.ContextProvider = l, X.Element = e, X.ForwardRef = s, X.Fragment = r, X.Lazy = m, X.Memo = p, X.Portal = t, X.Profiler = o, X.StrictMode = n, X.Suspense = f, X.SuspenseList = d, X.isContextConsumer = function(c) {
740
+ return b(c) === i;
741
+ }, X.isContextProvider = function(c) {
742
+ return b(c) === l;
743
+ }, X.isElement = function(c) {
744
+ return typeof c == "object" && c !== null && c.$$typeof === e;
745
+ }, X.isForwardRef = function(c) {
746
+ return b(c) === s;
747
+ }, X.isFragment = function(c) {
748
+ return b(c) === r;
749
+ }, X.isLazy = function(c) {
750
+ return b(c) === m;
751
+ }, X.isMemo = function(c) {
752
+ return b(c) === p;
753
+ }, X.isPortal = function(c) {
754
+ return b(c) === t;
755
+ }, X.isProfiler = function(c) {
756
+ return b(c) === o;
757
+ }, X.isStrictMode = function(c) {
758
+ return b(c) === n;
759
+ }, X.isSuspense = function(c) {
760
+ return b(c) === f;
761
+ }, X.isSuspenseList = function(c) {
762
+ return b(c) === d;
763
+ }, X.isValidElementType = function(c) {
764
+ return typeof c == "string" || typeof c == "function" || c === r || c === o || c === n || c === f || c === d || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === p || c.$$typeof === l || c.$$typeof === i || c.$$typeof === s || c.$$typeof === y || c.getModuleId !== void 0);
765
+ }, X.typeOf = b, X;
766
+ }
767
+ var J = {};
768
+ var ar;
769
+ function Mn() {
770
+ return ar || (ar = 1, process.env.NODE_ENV !== "production" && (function() {
771
+ function e(c) {
772
+ if (typeof c == "object" && c !== null) {
773
+ var g = c.$$typeof;
774
+ switch (g) {
775
+ case t:
776
+ switch (c = c.type, c) {
777
+ case n:
778
+ case i:
779
+ case o:
780
+ case d:
781
+ case p:
782
+ case y:
783
+ return c;
784
+ default:
785
+ switch (c = c && c.$$typeof, c) {
786
+ case s:
787
+ case f:
788
+ case u:
789
+ case m:
790
+ return c;
791
+ case l:
792
+ return c;
793
+ default:
794
+ return g;
795
+ }
796
+ }
797
+ case r:
798
+ return g;
799
+ }
800
+ }
801
+ }
802
+ var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), o = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), l = /* @__PURE__ */ Symbol.for("react.consumer"), s = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), p = /* @__PURE__ */ Symbol.for("react.suspense_list"), m = /* @__PURE__ */ Symbol.for("react.memo"), u = /* @__PURE__ */ Symbol.for("react.lazy"), y = /* @__PURE__ */ Symbol.for("react.view_transition"), b = /* @__PURE__ */ Symbol.for("react.client.reference");
803
+ J.ContextConsumer = l, J.ContextProvider = s, J.Element = t, J.ForwardRef = f, J.Fragment = n, J.Lazy = u, J.Memo = m, J.Portal = r, J.Profiler = i, J.StrictMode = o, J.Suspense = d, J.SuspenseList = p, J.isContextConsumer = function(c) {
804
+ return e(c) === l;
805
+ }, J.isContextProvider = function(c) {
806
+ return e(c) === s;
807
+ }, J.isElement = function(c) {
808
+ return typeof c == "object" && c !== null && c.$$typeof === t;
809
+ }, J.isForwardRef = function(c) {
810
+ return e(c) === f;
811
+ }, J.isFragment = function(c) {
812
+ return e(c) === n;
813
+ }, J.isLazy = function(c) {
814
+ return e(c) === u;
815
+ }, J.isMemo = function(c) {
816
+ return e(c) === m;
817
+ }, J.isPortal = function(c) {
818
+ return e(c) === r;
819
+ }, J.isProfiler = function(c) {
820
+ return e(c) === i;
821
+ }, J.isStrictMode = function(c) {
822
+ return e(c) === o;
823
+ }, J.isSuspense = function(c) {
824
+ return e(c) === d;
825
+ }, J.isSuspenseList = function(c) {
826
+ return e(c) === p;
827
+ }, J.isValidElementType = function(c) {
828
+ return typeof c == "string" || typeof c == "function" || c === n || c === i || c === o || c === d || c === p || typeof c == "object" && c !== null && (c.$$typeof === u || c.$$typeof === m || c.$$typeof === s || c.$$typeof === l || c.$$typeof === f || c.$$typeof === b || c.getModuleId !== void 0);
829
+ }, J.typeOf = e;
830
+ })()), J;
831
+ }
832
+ var sr;
833
+ function Dn() {
834
+ return sr || (sr = 1, process.env.NODE_ENV === "production" ? Qe.exports = /* @__PURE__ */ Nn() : Qe.exports = /* @__PURE__ */ Mn()), Qe.exports;
835
+ }
836
+ var nt = /* @__PURE__ */ Dn();
837
+ function be(e) {
838
+ if (typeof e != "object" || e === null)
839
+ return !1;
840
+ const t = Object.getPrototypeOf(e);
841
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
842
+ }
843
+ function Dr(e) {
844
+ if (/* @__PURE__ */ ve.isValidElement(e) || nt.isValidElementType(e) || !be(e))
845
+ return e;
846
+ const t = {};
847
+ return Object.keys(e).forEach((r) => {
848
+ t[r] = Dr(e[r]);
849
+ }), t;
850
+ }
851
+ function de(e, t, r = {
852
+ clone: !0
853
+ }) {
854
+ const n = r.clone ? {
855
+ ...e
856
+ } : e;
857
+ return be(e) && be(t) && Object.keys(t).forEach((o) => {
858
+ /* @__PURE__ */ ve.isValidElement(t[o]) || nt.isValidElementType(t[o]) ? n[o] = t[o] : be(t[o]) && // Avoid prototype pollution
859
+ Object.prototype.hasOwnProperty.call(e, o) && be(e[o]) ? n[o] = de(e[o], t[o], r) : r.clone ? n[o] = be(t[o]) ? Dr(t[o]) : t[o] : n[o] = t[o];
860
+ }), n;
861
+ }
862
+ function Ue(e, t) {
863
+ return t ? de(e, t, {
864
+ clone: !1
865
+ // No need to clone deep, it's way faster.
866
+ }) : e;
867
+ }
868
+ const Te = process.env.NODE_ENV !== "production" ? Y.oneOfType([Y.number, Y.string, Y.object, Y.array]) : {};
869
+ function lr(e, t) {
870
+ if (!e.containerQueries)
871
+ return t;
872
+ const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
873
+ const i = /min-width:\s*([0-9.]+)/;
874
+ return +(n.match(i)?.[1] || 0) - +(o.match(i)?.[1] || 0);
875
+ });
876
+ return r.length ? r.reduce((n, o) => {
877
+ const i = t[o];
878
+ return delete n[o], n[o] = i, n;
879
+ }, {
880
+ ...t
881
+ }) : t;
882
+ }
883
+ function Bn(e, t) {
884
+ return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
885
+ }
886
+ function jn(e, t) {
887
+ const r = t.match(/^@([^/]+)?\/?(.+)?$/);
888
+ if (!r) {
889
+ if (process.env.NODE_ENV !== "production")
890
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
891
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : we(18, `(${t})`));
892
+ return null;
893
+ }
894
+ const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
895
+ return e.containerQueries(o).up(i);
896
+ }
897
+ function zn(e) {
898
+ const t = (i, l) => i.replace("@media", l ? `@container ${l}` : "@container");
899
+ function r(i, l) {
900
+ i.up = (...s) => t(e.breakpoints.up(...s), l), i.down = (...s) => t(e.breakpoints.down(...s), l), i.between = (...s) => t(e.breakpoints.between(...s), l), i.only = (...s) => t(e.breakpoints.only(...s), l), i.not = (...s) => {
901
+ const f = t(e.breakpoints.not(...s), l);
902
+ return f.includes("not all and") ? f.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : f;
903
+ };
904
+ }
905
+ const n = {}, o = (i) => (r(n, i), n);
906
+ return r(o), {
907
+ ...e,
908
+ containerQueries: o
909
+ };
910
+ }
911
+ const lt = {
912
+ xs: 0,
913
+ // phone
914
+ sm: 600,
915
+ // tablet
916
+ md: 900,
917
+ // small laptop
918
+ lg: 1200,
919
+ // desktop
920
+ xl: 1536
921
+ // large screen
922
+ }, cr = {
923
+ // Sorted ASC by size. That's important.
924
+ // It can't be configured as it's used statically for propTypes.
925
+ keys: ["xs", "sm", "md", "lg", "xl"],
926
+ up: (e) => `@media (min-width:${lt[e]}px)`
927
+ }, Ln = {
928
+ containerQueries: (e) => ({
929
+ up: (t) => {
930
+ let r = typeof t == "number" ? t : lt[t] || t;
931
+ return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`;
932
+ }
933
+ })
934
+ };
935
+ function xe(e, t, r) {
936
+ const n = e.theme || {};
937
+ if (Array.isArray(t)) {
938
+ const i = n.breakpoints || cr;
939
+ return t.reduce((l, s, f) => (l[i.up(i.keys[f])] = r(t[f]), l), {});
940
+ }
941
+ if (typeof t == "object") {
942
+ const i = n.breakpoints || cr;
943
+ return Object.keys(t).reduce((l, s) => {
944
+ if (Bn(i.keys, s)) {
945
+ const f = jn(n.containerQueries ? n : Ln, s);
946
+ f && (l[f] = r(t[s], s));
947
+ } else if (Object.keys(i.values || lt).includes(s)) {
948
+ const f = i.up(s);
949
+ l[f] = r(t[s], s);
950
+ } else {
951
+ const f = s;
952
+ l[f] = t[f];
953
+ }
954
+ return l;
955
+ }, {});
956
+ }
957
+ return r(t);
958
+ }
959
+ function Wn(e = {}) {
960
+ return e.keys?.reduce((r, n) => {
961
+ const o = e.up(n);
962
+ return r[o] = {}, r;
963
+ }, {}) || {};
964
+ }
965
+ function ur(e, t) {
966
+ return e.reduce((r, n) => {
967
+ const o = r[n];
968
+ return (!o || Object.keys(o).length === 0) && delete r[n], r;
969
+ }, t);
970
+ }
971
+ function ct(e, t, r = !0) {
972
+ if (!t || typeof t != "string")
973
+ return null;
974
+ if (e && e.vars && r) {
975
+ const n = `vars.${t}`.split(".").reduce((o, i) => o && o[i] ? o[i] : null, e);
976
+ if (n != null)
977
+ return n;
978
+ }
979
+ return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
980
+ }
981
+ function ot(e, t, r, n = r) {
982
+ let o;
983
+ return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = ct(e, r) || n, t && (o = t(o, n, e)), o;
984
+ }
985
+ function ie(e) {
986
+ const {
987
+ prop: t,
988
+ cssProperty: r = e.prop,
989
+ themeKey: n,
990
+ transform: o
991
+ } = e, i = (l) => {
992
+ if (l[t] == null)
993
+ return null;
994
+ const s = l[t], f = l.theme, d = ct(f, n) || {};
995
+ return xe(l, s, (m) => {
996
+ let u = ot(d, o, m);
997
+ return m === u && typeof m == "string" && (u = ot(d, o, `${t}${m === "default" ? "" : _e(m)}`, m)), r === !1 ? u : {
998
+ [r]: u
999
+ };
1000
+ });
1001
+ };
1002
+ return i.propTypes = process.env.NODE_ENV !== "production" ? {
1003
+ [t]: Te
1004
+ } : {}, i.filterProps = [t], i;
1005
+ }
1006
+ function Vn(e) {
1007
+ const t = {};
1008
+ return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
1009
+ }
1010
+ const Fn = {
1011
+ m: "margin",
1012
+ p: "padding"
1013
+ }, Yn = {
1014
+ t: "Top",
1015
+ r: "Right",
1016
+ b: "Bottom",
1017
+ l: "Left",
1018
+ x: ["Left", "Right"],
1019
+ y: ["Top", "Bottom"]
1020
+ }, dr = {
1021
+ marginX: "mx",
1022
+ marginY: "my",
1023
+ paddingX: "px",
1024
+ paddingY: "py"
1025
+ }, Un = Vn((e) => {
1026
+ if (e.length > 2)
1027
+ if (dr[e])
1028
+ e = dr[e];
1029
+ else
1030
+ return [e];
1031
+ const [t, r] = e.split(""), n = Fn[t], o = Yn[r] || "";
1032
+ return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
1033
+ }), ut = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], dt = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], qn = [...ut, ...dt];
1034
+ function He(e, t, r, n) {
1035
+ const o = ct(e, t, !0) ?? r;
1036
+ return typeof o == "number" || typeof o == "string" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`), typeof o == "string" ? o.startsWith("var(") && i === 0 ? 0 : o.startsWith("var(") && i === 1 ? o : `calc(${i} * ${o})` : o * i) : Array.isArray(o) ? (i) => {
1037
+ if (typeof i == "string")
1038
+ return i;
1039
+ const l = Math.abs(i);
1040
+ process.env.NODE_ENV !== "production" && (Number.isInteger(l) ? l > o.length - 1 && console.error([`MUI: The value provided (${l}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${l} > ${o.length - 1}, you need to add the missing values.`].join(`
1041
+ `)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
1042
+ `)));
1043
+ const s = o[l];
1044
+ return i >= 0 ? s : typeof s == "number" ? -s : typeof s == "string" && s.startsWith("var(") ? `calc(-1 * ${s})` : `-${s}`;
1045
+ } : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
1046
+ `)), () => {
1047
+ });
1048
+ }
1049
+ function Wt(e) {
1050
+ return He(e, "spacing", 8, "spacing");
1051
+ }
1052
+ function Ge(e, t) {
1053
+ return typeof t == "string" || t == null ? t : e(t);
1054
+ }
1055
+ function Hn(e, t) {
1056
+ return (r) => e.reduce((n, o) => (n[o] = Ge(t, r), n), {});
1057
+ }
1058
+ function Gn(e, t, r, n) {
1059
+ if (!t.includes(r))
1060
+ return null;
1061
+ const o = Un(r), i = Hn(o, n), l = e[r];
1062
+ return xe(e, l, i);
1063
+ }
1064
+ function Br(e, t) {
1065
+ const r = Wt(e.theme);
1066
+ return Object.keys(e).map((n) => Gn(e, t, n, r)).reduce(Ue, {});
1067
+ }
1068
+ function ne(e) {
1069
+ return Br(e, ut);
1070
+ }
1071
+ ne.propTypes = process.env.NODE_ENV !== "production" ? ut.reduce((e, t) => (e[t] = Te, e), {}) : {};
1072
+ ne.filterProps = ut;
1073
+ function oe(e) {
1074
+ return Br(e, dt);
1075
+ }
1076
+ oe.propTypes = process.env.NODE_ENV !== "production" ? dt.reduce((e, t) => (e[t] = Te, e), {}) : {};
1077
+ oe.filterProps = dt;
1078
+ process.env.NODE_ENV !== "production" && qn.reduce((e, t) => (e[t] = Te, e), {});
1079
+ function ft(...e) {
1080
+ const t = e.reduce((n, o) => (o.filterProps.forEach((i) => {
1081
+ n[i] = o;
1082
+ }), n), {}), r = (n) => Object.keys(n).reduce((o, i) => t[i] ? Ue(o, t[i](n)) : o, {});
1083
+ return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
1084
+ }
1085
+ function fe(e) {
1086
+ return typeof e != "number" ? e : `${e}px solid`;
1087
+ }
1088
+ function pe(e, t) {
1089
+ return ie({
1090
+ prop: e,
1091
+ themeKey: "borders",
1092
+ transform: t
1093
+ });
1094
+ }
1095
+ const Kn = pe("border", fe), Xn = pe("borderTop", fe), Jn = pe("borderRight", fe), Qn = pe("borderBottom", fe), Zn = pe("borderLeft", fe), eo = pe("borderColor"), to = pe("borderTopColor"), ro = pe("borderRightColor"), no = pe("borderBottomColor"), oo = pe("borderLeftColor"), io = pe("outline", fe), ao = pe("outlineColor"), pt = (e) => {
1096
+ if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1097
+ const t = He(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
1098
+ borderRadius: Ge(t, n)
1099
+ });
1100
+ return xe(e, e.borderRadius, r);
1101
+ }
1102
+ return null;
1103
+ };
1104
+ pt.propTypes = process.env.NODE_ENV !== "production" ? {
1105
+ borderRadius: Te
1106
+ } : {};
1107
+ pt.filterProps = ["borderRadius"];
1108
+ ft(Kn, Xn, Jn, Qn, Zn, eo, to, ro, no, oo, pt, io, ao);
1109
+ const mt = (e) => {
1110
+ if (e.gap !== void 0 && e.gap !== null) {
1111
+ const t = He(e.theme, "spacing", 8, "gap"), r = (n) => ({
1112
+ gap: Ge(t, n)
1113
+ });
1114
+ return xe(e, e.gap, r);
1115
+ }
1116
+ return null;
1117
+ };
1118
+ mt.propTypes = process.env.NODE_ENV !== "production" ? {
1119
+ gap: Te
1120
+ } : {};
1121
+ mt.filterProps = ["gap"];
1122
+ const ht = (e) => {
1123
+ if (e.columnGap !== void 0 && e.columnGap !== null) {
1124
+ const t = He(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
1125
+ columnGap: Ge(t, n)
1126
+ });
1127
+ return xe(e, e.columnGap, r);
1128
+ }
1129
+ return null;
1130
+ };
1131
+ ht.propTypes = process.env.NODE_ENV !== "production" ? {
1132
+ columnGap: Te
1133
+ } : {};
1134
+ ht.filterProps = ["columnGap"];
1135
+ const gt = (e) => {
1136
+ if (e.rowGap !== void 0 && e.rowGap !== null) {
1137
+ const t = He(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
1138
+ rowGap: Ge(t, n)
1139
+ });
1140
+ return xe(e, e.rowGap, r);
1141
+ }
1142
+ return null;
1143
+ };
1144
+ gt.propTypes = process.env.NODE_ENV !== "production" ? {
1145
+ rowGap: Te
1146
+ } : {};
1147
+ gt.filterProps = ["rowGap"];
1148
+ const so = ie({
1149
+ prop: "gridColumn"
1150
+ }), lo = ie({
1151
+ prop: "gridRow"
1152
+ }), co = ie({
1153
+ prop: "gridAutoFlow"
1154
+ }), uo = ie({
1155
+ prop: "gridAutoColumns"
1156
+ }), fo = ie({
1157
+ prop: "gridAutoRows"
1158
+ }), po = ie({
1159
+ prop: "gridTemplateColumns"
1160
+ }), mo = ie({
1161
+ prop: "gridTemplateRows"
1162
+ }), ho = ie({
1163
+ prop: "gridTemplateAreas"
1164
+ }), go = ie({
1165
+ prop: "gridArea"
1166
+ });
1167
+ ft(mt, ht, gt, so, lo, co, uo, fo, po, mo, ho, go);
1168
+ function je(e, t) {
1169
+ return t === "grey" ? t : e;
1170
+ }
1171
+ const yo = ie({
1172
+ prop: "color",
1173
+ themeKey: "palette",
1174
+ transform: je
1175
+ }), bo = ie({
1176
+ prop: "bgcolor",
1177
+ cssProperty: "backgroundColor",
1178
+ themeKey: "palette",
1179
+ transform: je
1180
+ }), vo = ie({
1181
+ prop: "backgroundColor",
1182
+ themeKey: "palette",
1183
+ transform: je
1184
+ });
1185
+ ft(yo, bo, vo);
1186
+ function ue(e) {
1187
+ return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1188
+ }
1189
+ const xo = ie({
1190
+ prop: "width",
1191
+ transform: ue
1192
+ }), Vt = (e) => {
1193
+ if (e.maxWidth !== void 0 && e.maxWidth !== null) {
1194
+ const t = (r) => {
1195
+ const n = e.theme?.breakpoints?.values?.[r] || lt[r];
1196
+ return n ? e.theme?.breakpoints?.unit !== "px" ? {
1197
+ maxWidth: `${n}${e.theme.breakpoints.unit}`
1198
+ } : {
1199
+ maxWidth: n
1200
+ } : {
1201
+ maxWidth: ue(r)
1202
+ };
1203
+ };
1204
+ return xe(e, e.maxWidth, t);
1205
+ }
1206
+ return null;
1207
+ };
1208
+ Vt.filterProps = ["maxWidth"];
1209
+ const So = ie({
1210
+ prop: "minWidth",
1211
+ transform: ue
1212
+ }), Co = ie({
1213
+ prop: "height",
1214
+ transform: ue
1215
+ }), wo = ie({
1216
+ prop: "maxHeight",
1217
+ transform: ue
1218
+ }), Eo = ie({
1219
+ prop: "minHeight",
1220
+ transform: ue
1221
+ });
1222
+ ie({
1223
+ prop: "size",
1224
+ cssProperty: "width",
1225
+ transform: ue
1226
+ });
1227
+ ie({
1228
+ prop: "size",
1229
+ cssProperty: "height",
1230
+ transform: ue
1231
+ });
1232
+ const To = ie({
1233
+ prop: "boxSizing"
1234
+ });
1235
+ ft(xo, Vt, So, Co, wo, Eo, To);
1236
+ const yt = {
1237
+ // borders
1238
+ border: {
1239
+ themeKey: "borders",
1240
+ transform: fe
1241
+ },
1242
+ borderTop: {
1243
+ themeKey: "borders",
1244
+ transform: fe
1245
+ },
1246
+ borderRight: {
1247
+ themeKey: "borders",
1248
+ transform: fe
1249
+ },
1250
+ borderBottom: {
1251
+ themeKey: "borders",
1252
+ transform: fe
1253
+ },
1254
+ borderLeft: {
1255
+ themeKey: "borders",
1256
+ transform: fe
1257
+ },
1258
+ borderColor: {
1259
+ themeKey: "palette"
1260
+ },
1261
+ borderTopColor: {
1262
+ themeKey: "palette"
1263
+ },
1264
+ borderRightColor: {
1265
+ themeKey: "palette"
1266
+ },
1267
+ borderBottomColor: {
1268
+ themeKey: "palette"
1269
+ },
1270
+ borderLeftColor: {
1271
+ themeKey: "palette"
1272
+ },
1273
+ outline: {
1274
+ themeKey: "borders",
1275
+ transform: fe
1276
+ },
1277
+ outlineColor: {
1278
+ themeKey: "palette"
1279
+ },
1280
+ borderRadius: {
1281
+ themeKey: "shape.borderRadius",
1282
+ style: pt
1283
+ },
1284
+ // palette
1285
+ color: {
1286
+ themeKey: "palette",
1287
+ transform: je
1288
+ },
1289
+ bgcolor: {
1290
+ themeKey: "palette",
1291
+ cssProperty: "backgroundColor",
1292
+ transform: je
1293
+ },
1294
+ backgroundColor: {
1295
+ themeKey: "palette",
1296
+ transform: je
1297
+ },
1298
+ // spacing
1299
+ p: {
1300
+ style: oe
1301
+ },
1302
+ pt: {
1303
+ style: oe
1304
+ },
1305
+ pr: {
1306
+ style: oe
1307
+ },
1308
+ pb: {
1309
+ style: oe
1310
+ },
1311
+ pl: {
1312
+ style: oe
1313
+ },
1314
+ px: {
1315
+ style: oe
1316
+ },
1317
+ py: {
1318
+ style: oe
1319
+ },
1320
+ padding: {
1321
+ style: oe
1322
+ },
1323
+ paddingTop: {
1324
+ style: oe
1325
+ },
1326
+ paddingRight: {
1327
+ style: oe
1328
+ },
1329
+ paddingBottom: {
1330
+ style: oe
1331
+ },
1332
+ paddingLeft: {
1333
+ style: oe
1334
+ },
1335
+ paddingX: {
1336
+ style: oe
1337
+ },
1338
+ paddingY: {
1339
+ style: oe
1340
+ },
1341
+ paddingInline: {
1342
+ style: oe
1343
+ },
1344
+ paddingInlineStart: {
1345
+ style: oe
1346
+ },
1347
+ paddingInlineEnd: {
1348
+ style: oe
1349
+ },
1350
+ paddingBlock: {
1351
+ style: oe
1352
+ },
1353
+ paddingBlockStart: {
1354
+ style: oe
1355
+ },
1356
+ paddingBlockEnd: {
1357
+ style: oe
1358
+ },
1359
+ m: {
1360
+ style: ne
1361
+ },
1362
+ mt: {
1363
+ style: ne
1364
+ },
1365
+ mr: {
1366
+ style: ne
1367
+ },
1368
+ mb: {
1369
+ style: ne
1370
+ },
1371
+ ml: {
1372
+ style: ne
1373
+ },
1374
+ mx: {
1375
+ style: ne
1376
+ },
1377
+ my: {
1378
+ style: ne
1379
+ },
1380
+ margin: {
1381
+ style: ne
1382
+ },
1383
+ marginTop: {
1384
+ style: ne
1385
+ },
1386
+ marginRight: {
1387
+ style: ne
1388
+ },
1389
+ marginBottom: {
1390
+ style: ne
1391
+ },
1392
+ marginLeft: {
1393
+ style: ne
1394
+ },
1395
+ marginX: {
1396
+ style: ne
1397
+ },
1398
+ marginY: {
1399
+ style: ne
1400
+ },
1401
+ marginInline: {
1402
+ style: ne
1403
+ },
1404
+ marginInlineStart: {
1405
+ style: ne
1406
+ },
1407
+ marginInlineEnd: {
1408
+ style: ne
1409
+ },
1410
+ marginBlock: {
1411
+ style: ne
1412
+ },
1413
+ marginBlockStart: {
1414
+ style: ne
1415
+ },
1416
+ marginBlockEnd: {
1417
+ style: ne
1418
+ },
1419
+ // display
1420
+ displayPrint: {
1421
+ cssProperty: !1,
1422
+ transform: (e) => ({
1423
+ "@media print": {
1424
+ display: e
1425
+ }
1426
+ })
1427
+ },
1428
+ display: {},
1429
+ overflow: {},
1430
+ textOverflow: {},
1431
+ visibility: {},
1432
+ whiteSpace: {},
1433
+ // flexbox
1434
+ flexBasis: {},
1435
+ flexDirection: {},
1436
+ flexWrap: {},
1437
+ justifyContent: {},
1438
+ alignItems: {},
1439
+ alignContent: {},
1440
+ order: {},
1441
+ flex: {},
1442
+ flexGrow: {},
1443
+ flexShrink: {},
1444
+ alignSelf: {},
1445
+ justifyItems: {},
1446
+ justifySelf: {},
1447
+ // grid
1448
+ gap: {
1449
+ style: mt
1450
+ },
1451
+ rowGap: {
1452
+ style: gt
1453
+ },
1454
+ columnGap: {
1455
+ style: ht
1456
+ },
1457
+ gridColumn: {},
1458
+ gridRow: {},
1459
+ gridAutoFlow: {},
1460
+ gridAutoColumns: {},
1461
+ gridAutoRows: {},
1462
+ gridTemplateColumns: {},
1463
+ gridTemplateRows: {},
1464
+ gridTemplateAreas: {},
1465
+ gridArea: {},
1466
+ // positions
1467
+ position: {},
1468
+ zIndex: {
1469
+ themeKey: "zIndex"
1470
+ },
1471
+ top: {},
1472
+ right: {},
1473
+ bottom: {},
1474
+ left: {},
1475
+ // shadows
1476
+ boxShadow: {
1477
+ themeKey: "shadows"
1478
+ },
1479
+ // sizing
1480
+ width: {
1481
+ transform: ue
1482
+ },
1483
+ maxWidth: {
1484
+ style: Vt
1485
+ },
1486
+ minWidth: {
1487
+ transform: ue
1488
+ },
1489
+ height: {
1490
+ transform: ue
1491
+ },
1492
+ maxHeight: {
1493
+ transform: ue
1494
+ },
1495
+ minHeight: {
1496
+ transform: ue
1497
+ },
1498
+ boxSizing: {},
1499
+ // typography
1500
+ font: {
1501
+ themeKey: "font"
1502
+ },
1503
+ fontFamily: {
1504
+ themeKey: "typography"
1505
+ },
1506
+ fontSize: {
1507
+ themeKey: "typography"
1508
+ },
1509
+ fontStyle: {
1510
+ themeKey: "typography"
1511
+ },
1512
+ fontWeight: {
1513
+ themeKey: "typography"
1514
+ },
1515
+ letterSpacing: {},
1516
+ textTransform: {},
1517
+ lineHeight: {},
1518
+ textAlign: {},
1519
+ typography: {
1520
+ cssProperty: !1,
1521
+ themeKey: "typography"
1522
+ }
1523
+ };
1524
+ function $o(...e) {
1525
+ const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
1526
+ return e.every((n) => r.size === Object.keys(n).length);
1527
+ }
1528
+ function Ao(e, t) {
1529
+ return typeof e == "function" ? e(t) : e;
1530
+ }
1531
+ function Oo() {
1532
+ function e(r, n, o, i) {
1533
+ const l = {
1534
+ [r]: n,
1535
+ theme: o
1536
+ }, s = i[r];
1537
+ if (!s)
1538
+ return {
1539
+ [r]: n
1540
+ };
1541
+ const {
1542
+ cssProperty: f = r,
1543
+ themeKey: d,
1544
+ transform: p,
1545
+ style: m
1546
+ } = s;
1547
+ if (n == null)
1548
+ return null;
1549
+ if (d === "typography" && n === "inherit")
1550
+ return {
1551
+ [r]: n
1552
+ };
1553
+ const u = ct(o, d) || {};
1554
+ return m ? m(l) : xe(l, n, (b) => {
1555
+ let c = ot(u, p, b);
1556
+ return b === c && typeof b == "string" && (c = ot(u, p, `${r}${b === "default" ? "" : _e(b)}`, b)), f === !1 ? c : {
1557
+ [f]: c
1558
+ };
1559
+ });
1560
+ }
1561
+ function t(r) {
1562
+ const {
1563
+ sx: n,
1564
+ theme: o = {},
1565
+ nested: i
1566
+ } = r || {};
1567
+ if (!n)
1568
+ return null;
1569
+ const l = o.unstable_sxConfig ?? yt;
1570
+ function s(f) {
1571
+ let d = f;
1572
+ if (typeof f == "function")
1573
+ d = f(o);
1574
+ else if (typeof f != "object")
1575
+ return f;
1576
+ if (!d)
1577
+ return null;
1578
+ const p = Wn(o.breakpoints), m = Object.keys(p);
1579
+ let u = p;
1580
+ return Object.keys(d).forEach((y) => {
1581
+ const b = Ao(d[y], o);
1582
+ if (b != null)
1583
+ if (typeof b == "object")
1584
+ if (l[y])
1585
+ u = Ue(u, e(y, b, o, l));
1586
+ else {
1587
+ const c = xe({
1588
+ theme: o
1589
+ }, b, (g) => ({
1590
+ [y]: g
1591
+ }));
1592
+ $o(c, b) ? u[y] = t({
1593
+ sx: b,
1594
+ theme: o,
1595
+ nested: !0
1596
+ }) : u = Ue(u, c);
1597
+ }
1598
+ else
1599
+ u = Ue(u, e(y, b, o, l));
1600
+ }), !i && o.modularCssLayers ? {
1601
+ "@layer sx": lr(o, ur(m, u))
1602
+ } : lr(o, ur(m, u));
1603
+ }
1604
+ return Array.isArray(n) ? n.map(s) : s(n);
1605
+ }
1606
+ return t;
1607
+ }
1608
+ const ze = Oo();
1609
+ ze.filterProps = ["sx"];
1610
+ function _o(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
1611
+ return Math.max(t, Math.min(e, r));
1612
+ }
1613
+ function Ft(e, t = 0, r = 1) {
1614
+ return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), _o(e, t, r);
1615
+ }
1616
+ function ko(e) {
1617
+ e = e.slice(1);
1618
+ const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
1619
+ let r = e.match(t);
1620
+ return r && r[0].length === 1 && (r = r.map((n) => n + n)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
1621
+ }
1622
+ function Ee(e) {
1623
+ if (e.type)
1624
+ return e;
1625
+ if (e.charAt(0) === "#")
1626
+ return Ee(ko(e));
1627
+ const t = e.indexOf("("), r = e.substring(0, t);
1628
+ if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
1629
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
1630
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : we(9, e));
1631
+ let n = e.substring(t + 1, e.length - 1), o;
1632
+ if (r === "color") {
1633
+ if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
1634
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
1635
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : we(10, o));
1636
+ } else
1637
+ n = n.split(",");
1638
+ return n = n.map((i) => parseFloat(i)), {
1639
+ type: r,
1640
+ values: n,
1641
+ colorSpace: o
1642
+ };
1643
+ }
1644
+ const Io = (e) => {
1645
+ const t = Ee(e);
1646
+ return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
1647
+ }, Fe = (e, t) => {
1648
+ try {
1649
+ return Io(e);
1650
+ } catch {
1651
+ return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
1652
+ }
1653
+ };
1654
+ function bt(e) {
1655
+ const {
1656
+ type: t,
1657
+ colorSpace: r
1658
+ } = e;
1659
+ let {
1660
+ values: n
1661
+ } = e;
1662
+ return t.includes("rgb") ? n = n.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.includes("color") ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
1663
+ }
1664
+ function jr(e) {
1665
+ e = Ee(e);
1666
+ const {
1667
+ values: t
1668
+ } = e, r = t[0], n = t[1] / 100, o = t[2] / 100, i = n * Math.min(o, 1 - o), l = (d, p = (d + r / 30) % 12) => o - i * Math.max(Math.min(p - 3, 9 - p, 1), -1);
1669
+ let s = "rgb";
1670
+ const f = [Math.round(l(0) * 255), Math.round(l(8) * 255), Math.round(l(4) * 255)];
1671
+ return e.type === "hsla" && (s += "a", f.push(t[3])), bt({
1672
+ type: s,
1673
+ values: f
1674
+ });
1675
+ }
1676
+ function Mt(e) {
1677
+ e = Ee(e);
1678
+ let t = e.type === "hsl" || e.type === "hsla" ? Ee(jr(e)).values : e.values;
1679
+ return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
1680
+ }
1681
+ function fr(e, t) {
1682
+ const r = Mt(e), n = Mt(t);
1683
+ return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
1684
+ }
1685
+ function zr(e, t) {
1686
+ return e = Ee(e), t = Ft(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, bt(e);
1687
+ }
1688
+ function $e(e, t, r) {
1689
+ try {
1690
+ return zr(e, t);
1691
+ } catch {
1692
+ return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
1693
+ }
1694
+ }
1695
+ function vt(e, t) {
1696
+ if (e = Ee(e), t = Ft(t), e.type.includes("hsl"))
1697
+ e.values[2] *= 1 - t;
1698
+ else if (e.type.includes("rgb") || e.type.includes("color"))
1699
+ for (let r = 0; r < 3; r += 1)
1700
+ e.values[r] *= 1 - t;
1701
+ return bt(e);
1702
+ }
1703
+ function G(e, t, r) {
1704
+ try {
1705
+ return vt(e, t);
1706
+ } catch {
1707
+ return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
1708
+ }
1709
+ }
1710
+ function xt(e, t) {
1711
+ if (e = Ee(e), t = Ft(t), e.type.includes("hsl"))
1712
+ e.values[2] += (100 - e.values[2]) * t;
1713
+ else if (e.type.includes("rgb"))
1714
+ for (let r = 0; r < 3; r += 1)
1715
+ e.values[r] += (255 - e.values[r]) * t;
1716
+ else if (e.type.includes("color"))
1717
+ for (let r = 0; r < 3; r += 1)
1718
+ e.values[r] += (1 - e.values[r]) * t;
1719
+ return bt(e);
1720
+ }
1721
+ function K(e, t, r) {
1722
+ try {
1723
+ return xt(e, t);
1724
+ } catch {
1725
+ return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
1726
+ }
1727
+ }
1728
+ function Ro(e, t = 0.15) {
1729
+ return Mt(e) > 0.5 ? vt(e, t) : xt(e, t);
1730
+ }
1731
+ function Ze(e, t, r) {
1732
+ try {
1733
+ return Ro(e, t);
1734
+ } catch {
1735
+ return e;
1736
+ }
1737
+ }
1738
+ const qe = {
1739
+ black: "#000",
1740
+ white: "#fff"
1741
+ }, Po = {
1742
+ 50: "#fafafa",
1743
+ 100: "#f5f5f5",
1744
+ 200: "#eeeeee",
1745
+ 300: "#e0e0e0",
1746
+ 400: "#bdbdbd",
1747
+ 500: "#9e9e9e",
1748
+ 600: "#757575",
1749
+ 700: "#616161",
1750
+ 800: "#424242",
1751
+ 900: "#212121",
1752
+ A100: "#f5f5f5",
1753
+ A200: "#eeeeee",
1754
+ A400: "#bdbdbd",
1755
+ A700: "#616161"
1756
+ }, Ie = {
1757
+ 50: "#f3e5f5",
1758
+ 200: "#ce93d8",
1759
+ 300: "#ba68c8",
1760
+ 400: "#ab47bc",
1761
+ 500: "#9c27b0",
1762
+ 700: "#7b1fa2"
1763
+ }, Re = {
1764
+ 300: "#e57373",
1765
+ 400: "#ef5350",
1766
+ 500: "#f44336",
1767
+ 700: "#d32f2f",
1768
+ 800: "#c62828"
1769
+ }, Le = {
1770
+ 300: "#ffb74d",
1771
+ 400: "#ffa726",
1772
+ 500: "#ff9800",
1773
+ 700: "#f57c00",
1774
+ 900: "#e65100"
1775
+ }, Pe = {
1776
+ 50: "#e3f2fd",
1777
+ 200: "#90caf9",
1778
+ 400: "#42a5f5",
1779
+ 700: "#1976d2",
1780
+ 800: "#1565c0"
1781
+ }, Ne = {
1782
+ 300: "#4fc3f7",
1783
+ 400: "#29b6f6",
1784
+ 500: "#03a9f4",
1785
+ 700: "#0288d1",
1786
+ 900: "#01579b"
1787
+ }, Me = {
1788
+ 300: "#81c784",
1789
+ 400: "#66bb6a",
1790
+ 500: "#4caf50",
1791
+ 700: "#388e3c",
1792
+ 800: "#2e7d32",
1793
+ 900: "#1b5e20"
1794
+ };
1795
+ function Lr() {
1796
+ return {
1797
+ // The colors used to style the text.
1798
+ text: {
1799
+ // The most important text.
1800
+ primary: "rgba(0, 0, 0, 0.87)",
1801
+ // Secondary text.
1802
+ secondary: "rgba(0, 0, 0, 0.6)",
1803
+ // Disabled text have even lower visual prominence.
1804
+ disabled: "rgba(0, 0, 0, 0.38)"
1805
+ },
1806
+ // The color used to divide different elements.
1807
+ divider: "rgba(0, 0, 0, 0.12)",
1808
+ // The background colors used to style the surfaces.
1809
+ // Consistency between these values is important.
1810
+ background: {
1811
+ paper: qe.white,
1812
+ default: qe.white
1813
+ },
1814
+ // The colors used to style the action elements.
1815
+ action: {
1816
+ // The color of an active action like an icon button.
1817
+ active: "rgba(0, 0, 0, 0.54)",
1818
+ // The color of an hovered action.
1819
+ hover: "rgba(0, 0, 0, 0.04)",
1820
+ hoverOpacity: 0.04,
1821
+ // The color of a selected action.
1822
+ selected: "rgba(0, 0, 0, 0.08)",
1823
+ selectedOpacity: 0.08,
1824
+ // The color of a disabled action.
1825
+ disabled: "rgba(0, 0, 0, 0.26)",
1826
+ // The background color of a disabled action.
1827
+ disabledBackground: "rgba(0, 0, 0, 0.12)",
1828
+ disabledOpacity: 0.38,
1829
+ focus: "rgba(0, 0, 0, 0.12)",
1830
+ focusOpacity: 0.12,
1831
+ activatedOpacity: 0.12
1832
+ }
1833
+ };
1834
+ }
1835
+ const Wr = Lr();
1836
+ function Vr() {
1837
+ return {
1838
+ text: {
1839
+ primary: qe.white,
1840
+ secondary: "rgba(255, 255, 255, 0.7)",
1841
+ disabled: "rgba(255, 255, 255, 0.5)",
1842
+ icon: "rgba(255, 255, 255, 0.5)"
1843
+ },
1844
+ divider: "rgba(255, 255, 255, 0.12)",
1845
+ background: {
1846
+ paper: "#121212",
1847
+ default: "#121212"
1848
+ },
1849
+ action: {
1850
+ active: qe.white,
1851
+ hover: "rgba(255, 255, 255, 0.08)",
1852
+ hoverOpacity: 0.08,
1853
+ selected: "rgba(255, 255, 255, 0.16)",
1854
+ selectedOpacity: 0.16,
1855
+ disabled: "rgba(255, 255, 255, 0.3)",
1856
+ disabledBackground: "rgba(255, 255, 255, 0.12)",
1857
+ disabledOpacity: 0.38,
1858
+ focus: "rgba(255, 255, 255, 0.12)",
1859
+ focusOpacity: 0.12,
1860
+ activatedOpacity: 0.24
1861
+ }
1862
+ };
1863
+ }
1864
+ const Dt = Vr();
1865
+ function pr(e, t, r, n) {
1866
+ const o = n.light || n, i = n.dark || n * 1.5;
1867
+ e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = xt(e.main, o) : t === "dark" && (e.dark = vt(e.main, i)));
1868
+ }
1869
+ function mr(e, t, r, n, o) {
1870
+ const i = o.light || o, l = o.dark || o * 1.5;
1871
+ t[r] || (t.hasOwnProperty(n) ? t[r] = t[n] : r === "light" ? t.light = `color-mix(in ${e}, ${t.main}, #fff ${(i * 100).toFixed(0)}%)` : r === "dark" && (t.dark = `color-mix(in ${e}, ${t.main}, #000 ${(l * 100).toFixed(0)}%)`));
1872
+ }
1873
+ function No(e = "light") {
1874
+ return e === "dark" ? {
1875
+ main: Pe[200],
1876
+ light: Pe[50],
1877
+ dark: Pe[400]
1878
+ } : {
1879
+ main: Pe[700],
1880
+ light: Pe[400],
1881
+ dark: Pe[800]
1882
+ };
1883
+ }
1884
+ function Mo(e = "light") {
1885
+ return e === "dark" ? {
1886
+ main: Ie[200],
1887
+ light: Ie[50],
1888
+ dark: Ie[400]
1889
+ } : {
1890
+ main: Ie[500],
1891
+ light: Ie[300],
1892
+ dark: Ie[700]
1893
+ };
1894
+ }
1895
+ function Do(e = "light") {
1896
+ return e === "dark" ? {
1897
+ main: Re[500],
1898
+ light: Re[300],
1899
+ dark: Re[700]
1900
+ } : {
1901
+ main: Re[700],
1902
+ light: Re[400],
1903
+ dark: Re[800]
1904
+ };
1905
+ }
1906
+ function Bo(e = "light") {
1907
+ return e === "dark" ? {
1908
+ main: Ne[400],
1909
+ light: Ne[300],
1910
+ dark: Ne[700]
1911
+ } : {
1912
+ main: Ne[700],
1913
+ light: Ne[500],
1914
+ dark: Ne[900]
1915
+ };
1916
+ }
1917
+ function jo(e = "light") {
1918
+ return e === "dark" ? {
1919
+ main: Me[400],
1920
+ light: Me[300],
1921
+ dark: Me[700]
1922
+ } : {
1923
+ main: Me[800],
1924
+ light: Me[500],
1925
+ dark: Me[900]
1926
+ };
1927
+ }
1928
+ function zo(e = "light") {
1929
+ return e === "dark" ? {
1930
+ main: Le[400],
1931
+ light: Le[300],
1932
+ dark: Le[700]
1933
+ } : {
1934
+ main: "#ed6c02",
1935
+ // closest to orange[800] that pass 3:1.
1936
+ light: Le[500],
1937
+ dark: Le[900]
1938
+ };
1939
+ }
1940
+ function Lo(e) {
1941
+ return `oklch(from ${e} var(--__l) 0 h / var(--__a))`;
1942
+ }
1943
+ function Yt(e) {
1944
+ const {
1945
+ mode: t = "light",
1946
+ contrastThreshold: r = 3,
1947
+ tonalOffset: n = 0.2,
1948
+ colorSpace: o,
1949
+ ...i
1950
+ } = e, l = e.primary || No(t), s = e.secondary || Mo(t), f = e.error || Do(t), d = e.info || Bo(t), p = e.success || jo(t), m = e.warning || zo(t);
1951
+ function u(g) {
1952
+ if (o)
1953
+ return Lo(g);
1954
+ const O = fr(g, Dt.text.primary) >= r ? Dt.text.primary : Wr.text.primary;
1955
+ if (process.env.NODE_ENV !== "production") {
1956
+ const _ = fr(g, O);
1957
+ _ < 3 && console.error([`MUI: The contrast ratio of ${_}:1 for ${O} on ${g}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
1958
+ `));
1959
+ }
1960
+ return O;
1961
+ }
1962
+ const y = ({
1963
+ color: g,
1964
+ name: O,
1965
+ mainShade: _ = 500,
1966
+ lightShade: R = 300,
1967
+ darkShade: w = 700
1968
+ }) => {
1969
+ if (g = {
1970
+ ...g
1971
+ }, !g.main && g[_] && (g.main = g[_]), !g.hasOwnProperty("main"))
1972
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${O ? ` (${O})` : ""} provided to augmentColor(color) is invalid.
1973
+ The color object needs to have a \`main\` property or a \`${_}\` property.` : we(11, O ? ` (${O})` : "", _));
1974
+ if (typeof g.main != "string")
1975
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${O ? ` (${O})` : ""} provided to augmentColor(color) is invalid.
1976
+ \`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
1977
+
1978
+ Did you intend to use one of the following approaches?
1979
+
1980
+ import { green } from "@mui/material/colors";
1981
+
1982
+ const theme1 = createTheme({ palette: {
1983
+ primary: green,
1984
+ } });
1985
+
1986
+ const theme2 = createTheme({ palette: {
1987
+ primary: { main: green[500] },
1988
+ } });` : we(12, O ? ` (${O})` : "", JSON.stringify(g.main)));
1989
+ return o ? (mr(o, g, "light", R, n), mr(o, g, "dark", w, n)) : (pr(g, "light", R, n), pr(g, "dark", w, n)), g.contrastText || (g.contrastText = u(g.main)), g;
1990
+ };
1991
+ let b;
1992
+ return t === "light" ? b = Lr() : t === "dark" && (b = Vr()), process.env.NODE_ENV !== "production" && (b || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), de({
1993
+ // A collection of common colors.
1994
+ common: {
1995
+ ...qe
1996
+ },
1997
+ // prevent mutable object.
1998
+ // The palette mode, can be light or dark.
1999
+ mode: t,
2000
+ // The colors used to represent primary interface elements for a user.
2001
+ primary: y({
2002
+ color: l,
2003
+ name: "primary"
2004
+ }),
2005
+ // The colors used to represent secondary interface elements for a user.
2006
+ secondary: y({
2007
+ color: s,
2008
+ name: "secondary",
2009
+ mainShade: "A400",
2010
+ lightShade: "A200",
2011
+ darkShade: "A700"
2012
+ }),
2013
+ // The colors used to represent interface elements that the user should be made aware of.
2014
+ error: y({
2015
+ color: f,
2016
+ name: "error"
2017
+ }),
2018
+ // The colors used to represent potentially dangerous actions or important messages.
2019
+ warning: y({
2020
+ color: m,
2021
+ name: "warning"
2022
+ }),
2023
+ // The colors used to present information to the user that is neutral and not necessarily important.
2024
+ info: y({
2025
+ color: d,
2026
+ name: "info"
2027
+ }),
2028
+ // The colors used to indicate the successful completion of an action that user triggered.
2029
+ success: y({
2030
+ color: p,
2031
+ name: "success"
2032
+ }),
2033
+ // The grey colors.
2034
+ grey: Po,
2035
+ // Used by `getContrastText()` to maximize the contrast between
2036
+ // the background and the text.
2037
+ contrastThreshold: r,
2038
+ // Takes a background color and returns the text color that maximizes the contrast.
2039
+ getContrastText: u,
2040
+ // Generate a rich color object.
2041
+ augmentColor: y,
2042
+ // Used by the functions below to shift a color's luminance by approximately
2043
+ // two indexes within its tonal palette.
2044
+ // E.g., shift from Red 500 to Red 300 or Red 700.
2045
+ tonalOffset: n,
2046
+ // The light and dark mode object.
2047
+ ...b
2048
+ }, i);
2049
+ }
2050
+ function Wo(e) {
2051
+ for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
2052
+ r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
2053
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
2054
+ r >>> 24, t = /* Math.imul(k, m): */
2055
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
2056
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
2057
+ switch (o) {
2058
+ case 3:
2059
+ t ^= (e.charCodeAt(n + 2) & 255) << 16;
2060
+ case 2:
2061
+ t ^= (e.charCodeAt(n + 1) & 255) << 8;
2062
+ case 1:
2063
+ t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
2064
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
2065
+ }
2066
+ return t ^= t >>> 13, t = /* Math.imul(h, m): */
2067
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
2068
+ }
2069
+ var Vo = {
2070
+ animationIterationCount: 1,
2071
+ aspectRatio: 1,
2072
+ borderImageOutset: 1,
2073
+ borderImageSlice: 1,
2074
+ borderImageWidth: 1,
2075
+ boxFlex: 1,
2076
+ boxFlexGroup: 1,
2077
+ boxOrdinalGroup: 1,
2078
+ columnCount: 1,
2079
+ columns: 1,
2080
+ flex: 1,
2081
+ flexGrow: 1,
2082
+ flexPositive: 1,
2083
+ flexShrink: 1,
2084
+ flexNegative: 1,
2085
+ flexOrder: 1,
2086
+ gridRow: 1,
2087
+ gridRowEnd: 1,
2088
+ gridRowSpan: 1,
2089
+ gridRowStart: 1,
2090
+ gridColumn: 1,
2091
+ gridColumnEnd: 1,
2092
+ gridColumnSpan: 1,
2093
+ gridColumnStart: 1,
2094
+ msGridRow: 1,
2095
+ msGridRowSpan: 1,
2096
+ msGridColumn: 1,
2097
+ msGridColumnSpan: 1,
2098
+ fontWeight: 1,
2099
+ lineHeight: 1,
2100
+ opacity: 1,
2101
+ order: 1,
2102
+ orphans: 1,
2103
+ scale: 1,
2104
+ tabSize: 1,
2105
+ widows: 1,
2106
+ zIndex: 1,
2107
+ zoom: 1,
2108
+ WebkitLineClamp: 1,
2109
+ // SVG-related properties
2110
+ fillOpacity: 1,
2111
+ floodOpacity: 1,
2112
+ stopOpacity: 1,
2113
+ strokeDasharray: 1,
2114
+ strokeDashoffset: 1,
2115
+ strokeMiterlimit: 1,
2116
+ strokeOpacity: 1,
2117
+ strokeWidth: 1
2118
+ };
2119
+ function Fo(e) {
2120
+ var t = /* @__PURE__ */ Object.create(null);
2121
+ return function(r) {
2122
+ return t[r] === void 0 && (t[r] = e(r)), t[r];
2123
+ };
2124
+ }
2125
+ var Yo = /[A-Z]|^ms/g, Uo = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Fr = function(t) {
2126
+ return t.charCodeAt(1) === 45;
2127
+ }, hr = function(t) {
2128
+ return t != null && typeof t != "boolean";
2129
+ }, Ot = /* @__PURE__ */ Fo(function(e) {
2130
+ return Fr(e) ? e : e.replace(Yo, "-$&").toLowerCase();
2131
+ }), gr = function(t, r) {
2132
+ switch (t) {
2133
+ case "animation":
2134
+ case "animationName":
2135
+ if (typeof r == "string")
2136
+ return r.replace(Uo, function(n, o, i) {
2137
+ return Ce = {
2138
+ name: o,
2139
+ styles: i,
2140
+ next: Ce
2141
+ }, o;
2142
+ });
2143
+ }
2144
+ return Vo[t] !== 1 && !Fr(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
2145
+ };
2146
+ function it(e, t, r) {
2147
+ if (r == null)
2148
+ return "";
2149
+ var n = r;
2150
+ if (n.__emotion_styles !== void 0)
2151
+ return n;
2152
+ switch (typeof r) {
2153
+ case "boolean":
2154
+ return "";
2155
+ case "object": {
2156
+ var o = r;
2157
+ if (o.anim === 1)
2158
+ return Ce = {
2159
+ name: o.name,
2160
+ styles: o.styles,
2161
+ next: Ce
2162
+ }, o.name;
2163
+ var i = r;
2164
+ if (i.styles !== void 0) {
2165
+ var l = i.next;
2166
+ if (l !== void 0)
2167
+ for (; l !== void 0; )
2168
+ Ce = {
2169
+ name: l.name,
2170
+ styles: l.styles,
2171
+ next: Ce
2172
+ }, l = l.next;
2173
+ var s = i.styles + ";";
2174
+ return s;
2175
+ }
2176
+ return qo(e, t, r);
2177
+ }
2178
+ }
2179
+ var f = r;
2180
+ return f;
2181
+ }
2182
+ function qo(e, t, r) {
2183
+ var n = "";
2184
+ if (Array.isArray(r))
2185
+ for (var o = 0; o < r.length; o++)
2186
+ n += it(e, t, r[o]) + ";";
2187
+ else
2188
+ for (var i in r) {
2189
+ var l = r[i];
2190
+ if (typeof l != "object") {
2191
+ var s = l;
2192
+ hr(s) && (n += Ot(i) + ":" + gr(i, s) + ";");
2193
+ } else if (Array.isArray(l) && typeof l[0] == "string" && t == null)
2194
+ for (var f = 0; f < l.length; f++)
2195
+ hr(l[f]) && (n += Ot(i) + ":" + gr(i, l[f]) + ";");
2196
+ else {
2197
+ var d = it(e, t, l);
2198
+ switch (i) {
2199
+ case "animation":
2200
+ case "animationName": {
2201
+ n += Ot(i) + ":" + d + ";";
2202
+ break;
2203
+ }
2204
+ default:
2205
+ n += i + "{" + d + "}";
2206
+ }
2207
+ }
2208
+ }
2209
+ return n;
2210
+ }
2211
+ var yr = /label:\s*([^\s;{]+)\s*(;|$)/g, Ce;
2212
+ function Ho(e, t, r) {
2213
+ if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
2214
+ return e[0];
2215
+ var n = !0, o = "";
2216
+ Ce = void 0;
2217
+ var i = e[0];
2218
+ if (i == null || i.raw === void 0)
2219
+ n = !1, o += it(r, t, i);
2220
+ else {
2221
+ var l = i;
2222
+ o += l[0];
2223
+ }
2224
+ for (var s = 1; s < e.length; s++)
2225
+ if (o += it(r, t, e[s]), n) {
2226
+ var f = i;
2227
+ o += f[s];
2228
+ }
2229
+ yr.lastIndex = 0;
2230
+ for (var d = "", p; (p = yr.exec(o)) !== null; )
2231
+ d += "-" + p[1];
2232
+ var m = Wo(o) + d;
2233
+ return {
2234
+ name: m,
2235
+ styles: o,
2236
+ next: Ce
2237
+ };
2238
+ }
2239
+ function Go(e, t) {
2240
+ const r = Sn(e, t);
2241
+ return process.env.NODE_ENV !== "production" ? (...n) => {
2242
+ const o = typeof e == "string" ? `"${e}"` : "component";
2243
+ return n.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
2244
+ `)) : n.some((i) => i === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), r(...n);
2245
+ } : r;
2246
+ }
2247
+ function Ko(e, t) {
2248
+ Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
2249
+ }
2250
+ const br = [];
2251
+ function Oe(e) {
2252
+ return br[0] = e, Ho(br);
2253
+ }
2254
+ function Bt(e, t, r = !1) {
2255
+ const n = {
2256
+ ...t
2257
+ };
2258
+ for (const o in e)
2259
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
2260
+ const i = o;
2261
+ if (i === "components" || i === "slots")
2262
+ n[i] = {
2263
+ ...e[i],
2264
+ ...n[i]
2265
+ };
2266
+ else if (i === "componentsProps" || i === "slotProps") {
2267
+ const l = e[i], s = t[i];
2268
+ if (!s)
2269
+ n[i] = l || {};
2270
+ else if (!l)
2271
+ n[i] = s;
2272
+ else {
2273
+ n[i] = {
2274
+ ...s
2275
+ };
2276
+ for (const f in l)
2277
+ if (Object.prototype.hasOwnProperty.call(l, f)) {
2278
+ const d = f;
2279
+ n[i][d] = Bt(l[d], s[d], r);
2280
+ }
2281
+ }
2282
+ } else i === "className" && r && t.className ? n.className = Mr(e?.className, t?.className) : i === "style" && r && t.style ? n.style = {
2283
+ ...e?.style,
2284
+ ...t?.style
2285
+ } : n[i] === void 0 && (n[i] = e[i]);
2286
+ }
2287
+ return n;
2288
+ }
2289
+ const Xo = /* @__PURE__ */ ve.createContext(void 0);
2290
+ process.env.NODE_ENV !== "production" && (Y.node, Y.object);
2291
+ function Jo(e) {
2292
+ const {
2293
+ theme: t,
2294
+ name: r,
2295
+ props: n
2296
+ } = e;
2297
+ if (!t || !t.components || !t.components[r])
2298
+ return n;
2299
+ const o = t.components[r];
2300
+ return o.defaultProps ? Bt(o.defaultProps, n, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? Bt(o, n, t.components.mergeClassNameAndStyle) : n;
2301
+ }
2302
+ function Qo({
2303
+ props: e,
2304
+ name: t
2305
+ }) {
2306
+ const r = ve.useContext(Xo);
2307
+ return Jo({
2308
+ props: e,
2309
+ name: t,
2310
+ theme: {
2311
+ components: r
2312
+ }
2313
+ });
2314
+ }
2315
+ const Zo = (e) => {
2316
+ const t = Object.keys(e).map((r) => ({
2317
+ key: r,
2318
+ val: e[r]
2319
+ })) || [];
2320
+ return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => ({
2321
+ ...r,
2322
+ [n.key]: n.val
2323
+ }), {});
2324
+ };
2325
+ function ei(e) {
2326
+ const {
2327
+ // The breakpoint **start** at this value.
2328
+ // For instance with the first breakpoint xs: [xs, sm).
2329
+ values: t = {
2330
+ xs: 0,
2331
+ // phone
2332
+ sm: 600,
2333
+ // tablet
2334
+ md: 900,
2335
+ // small laptop
2336
+ lg: 1200,
2337
+ // desktop
2338
+ xl: 1536
2339
+ // large screen
2340
+ },
2341
+ unit: r = "px",
2342
+ step: n = 5,
2343
+ ...o
2344
+ } = e, i = Zo(t), l = Object.keys(i);
2345
+ function s(u) {
2346
+ return `@media (min-width:${typeof t[u] == "number" ? t[u] : u}${r})`;
2347
+ }
2348
+ function f(u) {
2349
+ return `@media (max-width:${(typeof t[u] == "number" ? t[u] : u) - n / 100}${r})`;
2350
+ }
2351
+ function d(u, y) {
2352
+ const b = l.indexOf(y);
2353
+ return `@media (min-width:${typeof t[u] == "number" ? t[u] : u}${r}) and (max-width:${(b !== -1 && typeof t[l[b]] == "number" ? t[l[b]] : y) - n / 100}${r})`;
2354
+ }
2355
+ function p(u) {
2356
+ return l.indexOf(u) + 1 < l.length ? d(u, l[l.indexOf(u) + 1]) : s(u);
2357
+ }
2358
+ function m(u) {
2359
+ const y = l.indexOf(u);
2360
+ return y === 0 ? s(l[1]) : y === l.length - 1 ? f(l[y]) : d(u, l[l.indexOf(u) + 1]).replace("@media", "@media not all and");
2361
+ }
2362
+ return {
2363
+ keys: l,
2364
+ values: i,
2365
+ up: s,
2366
+ down: f,
2367
+ between: d,
2368
+ only: p,
2369
+ not: m,
2370
+ unit: r,
2371
+ ...o
2372
+ };
2373
+ }
2374
+ const ti = {
2375
+ borderRadius: 4
2376
+ };
2377
+ function ri(e = 8, t = Wt({
2378
+ spacing: e
2379
+ })) {
2380
+ if (e.mui)
2381
+ return e;
2382
+ const r = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((i) => {
2383
+ const l = t(i);
2384
+ return typeof l == "number" ? `${l}px` : l;
2385
+ }).join(" "));
2386
+ return r.mui = !0, r;
2387
+ }
2388
+ function ni(e, t) {
2389
+ const r = this;
2390
+ if (r.vars) {
2391
+ if (!r.colorSchemes?.[e] || typeof r.getColorSchemeSelector != "function")
2392
+ return {};
2393
+ let n = r.getColorSchemeSelector(e);
2394
+ return n === "&" ? t : ((n.includes("data-") || n.includes(".")) && (n = `*:where(${n.replace(/\s*&$/, "")}) &`), {
2395
+ [n]: t
2396
+ });
2397
+ }
2398
+ return r.palette.mode === e ? t : {};
2399
+ }
2400
+ function Yr(e = {}, ...t) {
2401
+ const {
2402
+ breakpoints: r = {},
2403
+ palette: n = {},
2404
+ spacing: o,
2405
+ shape: i = {},
2406
+ ...l
2407
+ } = e, s = ei(r), f = ri(o);
2408
+ let d = de({
2409
+ breakpoints: s,
2410
+ direction: "ltr",
2411
+ components: {},
2412
+ // Inject component definitions.
2413
+ palette: {
2414
+ mode: "light",
2415
+ ...n
2416
+ },
2417
+ spacing: f,
2418
+ shape: {
2419
+ ...ti,
2420
+ ...i
2421
+ }
2422
+ }, l);
2423
+ return d = zn(d), d.applyStyles = ni, d = t.reduce((p, m) => de(p, m), d), d.unstable_sxConfig = {
2424
+ ...yt,
2425
+ ...l?.unstable_sxConfig
2426
+ }, d.unstable_sx = function(m) {
2427
+ return ze({
2428
+ sx: m,
2429
+ theme: this
2430
+ });
2431
+ }, d;
2432
+ }
2433
+ const vr = (e, t, r, n = []) => {
2434
+ let o = e;
2435
+ t.forEach((i, l) => {
2436
+ l === t.length - 1 ? Array.isArray(o) ? o[Number(i)] = r : o && typeof o == "object" && (o[i] = r) : o && typeof o == "object" && (o[i] || (o[i] = n.includes(i) ? [] : {}), o = o[i]);
2437
+ });
2438
+ }, oi = (e, t, r) => {
2439
+ function n(o, i = [], l = []) {
2440
+ Object.entries(o).forEach(([s, f]) => {
2441
+ (!r || r && !r([...i, s])) && f != null && (typeof f == "object" && Object.keys(f).length > 0 ? n(f, [...i, s], Array.isArray(f) ? [...l, s] : l) : t([...i, s], f, l));
2442
+ });
2443
+ }
2444
+ n(e);
2445
+ }, ii = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
2446
+ function _t(e, t) {
2447
+ const {
2448
+ prefix: r,
2449
+ shouldSkipGeneratingVar: n
2450
+ } = t || {}, o = {}, i = {}, l = {};
2451
+ return oi(
2452
+ e,
2453
+ (s, f, d) => {
2454
+ if ((typeof f == "string" || typeof f == "number") && (!n || !n(s, f))) {
2455
+ const p = `--${r ? `${r}-` : ""}${s.join("-")}`, m = ii(s, f);
2456
+ Object.assign(o, {
2457
+ [p]: m
2458
+ }), vr(i, s, `var(${p})`, d), vr(l, s, `var(${p}, ${m})`, d);
2459
+ }
2460
+ },
2461
+ (s) => s[0] === "vars"
2462
+ // skip 'vars/*' paths
2463
+ ), {
2464
+ css: o,
2465
+ vars: i,
2466
+ varsWithDefaults: l
2467
+ };
2468
+ }
2469
+ function ai(e, t = {}) {
2470
+ const {
2471
+ getSelector: r = O,
2472
+ disableCssColorScheme: n,
2473
+ colorSchemeSelector: o,
2474
+ enableContrastVars: i
2475
+ } = t, {
2476
+ colorSchemes: l = {},
2477
+ components: s,
2478
+ defaultColorScheme: f = "light",
2479
+ ...d
2480
+ } = e, {
2481
+ vars: p,
2482
+ css: m,
2483
+ varsWithDefaults: u
2484
+ } = _t(d, t);
2485
+ let y = u;
2486
+ const b = {}, {
2487
+ [f]: c,
2488
+ ...g
2489
+ } = l;
2490
+ if (Object.entries(g || {}).forEach(([w, x]) => {
2491
+ const {
2492
+ vars: T,
2493
+ css: Q,
2494
+ varsWithDefaults: k
2495
+ } = _t(x, t);
2496
+ y = de(y, k), b[w] = {
2497
+ css: Q,
2498
+ vars: T
2499
+ };
2500
+ }), c) {
2501
+ const {
2502
+ css: w,
2503
+ vars: x,
2504
+ varsWithDefaults: T
2505
+ } = _t(c, t);
2506
+ y = de(y, T), b[f] = {
2507
+ css: w,
2508
+ vars: x
2509
+ };
2510
+ }
2511
+ function O(w, x) {
2512
+ let T = o;
2513
+ if (o === "class" && (T = ".%s"), o === "data" && (T = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (T = `[${o}="%s"]`), w) {
2514
+ if (T === "media")
2515
+ return e.defaultColorScheme === w ? ":root" : {
2516
+ [`@media (prefers-color-scheme: ${l[w]?.palette?.mode || w})`]: {
2517
+ ":root": x
2518
+ }
2519
+ };
2520
+ if (T)
2521
+ return e.defaultColorScheme === w ? `:root, ${T.replace("%s", String(w))}` : T.replace("%s", String(w));
2522
+ }
2523
+ return ":root";
2524
+ }
2525
+ return {
2526
+ vars: y,
2527
+ generateThemeVars: () => {
2528
+ let w = {
2529
+ ...p
2530
+ };
2531
+ return Object.entries(b).forEach(([, {
2532
+ vars: x
2533
+ }]) => {
2534
+ w = de(w, x);
2535
+ }), w;
2536
+ },
2537
+ generateStyleSheets: () => {
2538
+ const w = [], x = e.defaultColorScheme || "light";
2539
+ function T(z, re) {
2540
+ Object.keys(re).length && w.push(typeof z == "string" ? {
2541
+ [z]: {
2542
+ ...re
2543
+ }
2544
+ } : z);
2545
+ }
2546
+ T(r(void 0, {
2547
+ ...m
2548
+ }), m);
2549
+ const {
2550
+ [x]: Q,
2551
+ ...k
2552
+ } = b;
2553
+ if (Q) {
2554
+ const {
2555
+ css: z
2556
+ } = Q, re = l[x]?.palette?.mode, Z = !n && re ? {
2557
+ colorScheme: re,
2558
+ ...z
2559
+ } : {
2560
+ ...z
2561
+ };
2562
+ T(r(x, {
2563
+ ...Z
2564
+ }), Z);
2565
+ }
2566
+ return Object.entries(k).forEach(([z, {
2567
+ css: re
2568
+ }]) => {
2569
+ const Z = l[z]?.palette?.mode, a = !n && Z ? {
2570
+ colorScheme: Z,
2571
+ ...re
2572
+ } : {
2573
+ ...re
2574
+ };
2575
+ T(r(z, {
2576
+ ...a
2577
+ }), a);
2578
+ }), i && w.push({
2579
+ ":root": {
2580
+ // use double underscore to indicate that these are private variables
2581
+ "--__l-threshold": "0.7",
2582
+ "--__l": "clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)",
2583
+ "--__a": "clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"
2584
+ // 0.87 is the default alpha value for black text.
2585
+ }
2586
+ }), w;
2587
+ }
2588
+ };
2589
+ }
2590
+ function si(e) {
2591
+ const t = {};
2592
+ return Object.entries(e).forEach((n) => {
2593
+ const [o, i] = n;
2594
+ typeof i == "object" && (t[o] = `${i.fontStyle ? `${i.fontStyle} ` : ""}${i.fontVariant ? `${i.fontVariant} ` : ""}${i.fontWeight ? `${i.fontWeight} ` : ""}${i.fontStretch ? `${i.fontStretch} ` : ""}${i.fontSize || ""}${i.lineHeight ? `/${i.lineHeight} ` : ""}${i.fontFamily || ""}`);
2595
+ }), t;
2596
+ }
2597
+ function li(e) {
2598
+ return function(r) {
2599
+ return e === "media" ? (process.env.NODE_ENV !== "production" && r !== "light" && r !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`), `@media (prefers-color-scheme: ${r})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${r}"] &` : e === "class" ? `.${r} &` : e === "data" ? `[data-${r}] &` : `${e.replace("%s", r)} &` : "&";
2600
+ };
2601
+ }
2602
+ const ci = {
2603
+ active: "active",
2604
+ checked: "checked",
2605
+ completed: "completed",
2606
+ disabled: "disabled",
2607
+ error: "error",
2608
+ expanded: "expanded",
2609
+ focused: "focused",
2610
+ focusVisible: "focusVisible",
2611
+ open: "open",
2612
+ readOnly: "readOnly",
2613
+ required: "required",
2614
+ selected: "selected"
2615
+ };
2616
+ function Ut(e, t, r = "Mui") {
2617
+ const n = ci[t];
2618
+ return n ? `${r}-${n}` : `${wn.generate(e)}-${t}`;
2619
+ }
2620
+ function ui(e, t) {
2621
+ return {
2622
+ toolbar: {
2623
+ minHeight: 56,
2624
+ [e.up("xs")]: {
2625
+ "@media (orientation: landscape)": {
2626
+ minHeight: 48
2627
+ }
2628
+ },
2629
+ [e.up("sm")]: {
2630
+ minHeight: 64
2631
+ }
2632
+ },
2633
+ ...t
2634
+ };
2635
+ }
2636
+ function di(e) {
2637
+ return Math.round(e * 1e5) / 1e5;
2638
+ }
2639
+ const xr = {
2640
+ textTransform: "uppercase"
2641
+ }, Sr = '"Roboto", "Helvetica", "Arial", sans-serif';
2642
+ function fi(e, t) {
2643
+ const {
2644
+ fontFamily: r = Sr,
2645
+ // The default font size of the Material Specification.
2646
+ fontSize: n = 14,
2647
+ // px
2648
+ fontWeightLight: o = 300,
2649
+ fontWeightRegular: i = 400,
2650
+ fontWeightMedium: l = 500,
2651
+ fontWeightBold: s = 700,
2652
+ // Tell MUI what's the font-size on the html element.
2653
+ // 16px is the default font-size used by browsers.
2654
+ htmlFontSize: f = 16,
2655
+ // Apply the CSS properties to all the variants.
2656
+ allVariants: d,
2657
+ pxToRem: p,
2658
+ ...m
2659
+ } = typeof t == "function" ? t(e) : t;
2660
+ process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
2661
+ const u = n / 14, y = p || ((g) => `${g / f * u}rem`), b = (g, O, _, R, w) => ({
2662
+ fontFamily: r,
2663
+ fontWeight: g,
2664
+ fontSize: y(O),
2665
+ // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
2666
+ lineHeight: _,
2667
+ // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
2668
+ // across font-families can cause issues with the kerning.
2669
+ ...r === Sr ? {
2670
+ letterSpacing: `${di(R / O)}em`
2671
+ } : {},
2672
+ ...w,
2673
+ ...d
2674
+ }), c = {
2675
+ h1: b(o, 96, 1.167, -1.5),
2676
+ h2: b(o, 60, 1.2, -0.5),
2677
+ h3: b(i, 48, 1.167, 0),
2678
+ h4: b(i, 34, 1.235, 0.25),
2679
+ h5: b(i, 24, 1.334, 0),
2680
+ h6: b(l, 20, 1.6, 0.15),
2681
+ subtitle1: b(i, 16, 1.75, 0.15),
2682
+ subtitle2: b(l, 14, 1.57, 0.1),
2683
+ body1: b(i, 16, 1.5, 0.15),
2684
+ body2: b(i, 14, 1.43, 0.15),
2685
+ button: b(l, 14, 1.75, 0.4, xr),
2686
+ caption: b(i, 12, 1.66, 0.4),
2687
+ overline: b(i, 12, 2.66, 1, xr),
2688
+ // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
2689
+ inherit: {
2690
+ fontFamily: "inherit",
2691
+ fontWeight: "inherit",
2692
+ fontSize: "inherit",
2693
+ lineHeight: "inherit",
2694
+ letterSpacing: "inherit"
2695
+ }
2696
+ };
2697
+ return de({
2698
+ htmlFontSize: f,
2699
+ pxToRem: y,
2700
+ fontFamily: r,
2701
+ fontSize: n,
2702
+ fontWeightLight: o,
2703
+ fontWeightRegular: i,
2704
+ fontWeightMedium: l,
2705
+ fontWeightBold: s,
2706
+ ...c
2707
+ }, m, {
2708
+ clone: !1
2709
+ // No need to clone deep
2710
+ });
2711
+ }
2712
+ const pi = 0.2, mi = 0.14, hi = 0.12;
2713
+ function te(...e) {
2714
+ return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pi})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${mi})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hi})`].join(",");
2715
+ }
2716
+ const gi = ["none", te(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), te(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), te(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), te(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), te(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), te(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), te(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), te(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), te(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), te(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), te(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), te(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), te(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), te(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), te(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), te(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), te(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), te(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), te(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), te(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), te(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), te(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), te(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), te(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], yi = {
2717
+ // This is the most common easing curve.
2718
+ easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
2719
+ // Objects enter the screen at full velocity from off-screen and
2720
+ // slowly decelerate to a resting point.
2721
+ easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
2722
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2723
+ easeIn: "cubic-bezier(0.4, 0, 1, 1)",
2724
+ // The sharp curve is used by objects that may return to the screen at any time.
2725
+ sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
2726
+ }, bi = {
2727
+ shortest: 150,
2728
+ shorter: 200,
2729
+ short: 250,
2730
+ // most basic recommended timing
2731
+ standard: 300,
2732
+ // this is to be used in complex animations
2733
+ complex: 375,
2734
+ // recommended when something is entering screen
2735
+ enteringScreen: 225,
2736
+ // recommended when something is leaving screen
2737
+ leavingScreen: 195
2738
+ };
2739
+ function Cr(e) {
2740
+ return `${Math.round(e)}ms`;
2741
+ }
2742
+ function vi(e) {
2743
+ if (!e)
2744
+ return 0;
2745
+ const t = e / 36;
2746
+ return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
2747
+ }
2748
+ function xi(e) {
2749
+ const t = {
2750
+ ...yi,
2751
+ ...e.easing
2752
+ }, r = {
2753
+ ...bi,
2754
+ ...e.duration
2755
+ };
2756
+ return {
2757
+ getAutoHeightDuration: vi,
2758
+ create: (o = ["all"], i = {}) => {
2759
+ const {
2760
+ duration: l = r.standard,
2761
+ easing: s = t.easeInOut,
2762
+ delay: f = 0,
2763
+ ...d
2764
+ } = i;
2765
+ if (process.env.NODE_ENV !== "production") {
2766
+ const p = (u) => typeof u == "string", m = (u) => !Number.isNaN(parseFloat(u));
2767
+ !p(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !m(l) && !p(l) && console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`), p(s) || console.error('MUI: Argument "easing" must be a string.'), !m(f) && !p(f) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
2768
+ `)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
2769
+ }
2770
+ return (Array.isArray(o) ? o : [o]).map((p) => `${p} ${typeof l == "string" ? l : Cr(l)} ${s} ${typeof f == "string" ? f : Cr(f)}`).join(",");
2771
+ },
2772
+ ...e,
2773
+ easing: t,
2774
+ duration: r
2775
+ };
2776
+ }
2777
+ const Si = {
2778
+ mobileStepper: 1e3,
2779
+ fab: 1050,
2780
+ speedDial: 1050,
2781
+ appBar: 1100,
2782
+ drawer: 1200,
2783
+ modal: 1300,
2784
+ snackbar: 1400,
2785
+ tooltip: 1500
2786
+ };
2787
+ function Ci(e) {
2788
+ return be(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
2789
+ }
2790
+ function Ur(e = {}) {
2791
+ const t = {
2792
+ ...e
2793
+ };
2794
+ function r(n) {
2795
+ const o = Object.entries(n);
2796
+ for (let i = 0; i < o.length; i++) {
2797
+ const [l, s] = o[i];
2798
+ !Ci(s) || l.startsWith("unstable_") ? delete n[l] : be(s) && (n[l] = {
2799
+ ...s
2800
+ }, r(n[l]));
2801
+ }
2802
+ }
2803
+ return r(t), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
2804
+
2805
+ const theme = ${JSON.stringify(t, null, 2)};
2806
+
2807
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
2808
+ theme.transitions = createTransitions(theme.transitions || {});
2809
+
2810
+ export default theme;`;
2811
+ }
2812
+ function wr(e) {
2813
+ return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
2814
+ }
2815
+ const wi = (e) => {
2816
+ if (!Number.isNaN(+e))
2817
+ return +e;
2818
+ const t = e.match(/\d*\.?\d+/g);
2819
+ if (!t)
2820
+ return 0;
2821
+ let r = 0;
2822
+ for (let n = 0; n < t.length; n += 1)
2823
+ r += +t[n];
2824
+ return r;
2825
+ };
2826
+ function Ei(e) {
2827
+ Object.assign(e, {
2828
+ alpha(t, r) {
2829
+ const n = this || e;
2830
+ return n.colorSpace ? `oklch(from ${t} l c h / ${typeof r == "string" ? `calc(${r})` : r})` : n.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof r == "string" ? `calc(${r})` : r})` : zr(t, wi(r));
2831
+ },
2832
+ lighten(t, r) {
2833
+ const n = this || e;
2834
+ return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${wr(r)})` : xt(t, r);
2835
+ },
2836
+ darken(t, r) {
2837
+ const n = this || e;
2838
+ return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${wr(r)})` : vt(t, r);
2839
+ }
2840
+ });
2841
+ }
2842
+ function jt(e = {}, ...t) {
2843
+ const {
2844
+ breakpoints: r,
2845
+ mixins: n = {},
2846
+ spacing: o,
2847
+ palette: i = {},
2848
+ transitions: l = {},
2849
+ typography: s = {},
2850
+ shape: f,
2851
+ colorSpace: d,
2852
+ ...p
2853
+ } = e;
2854
+ if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
2855
+ // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
2856
+ e.generateThemeVars === void 0)
2857
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : we(20));
2858
+ const m = Yt({
2859
+ ...i,
2860
+ colorSpace: d
2861
+ }), u = Yr(e);
2862
+ let y = de(u, {
2863
+ mixins: ui(u.breakpoints, n),
2864
+ palette: m,
2865
+ // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
2866
+ shadows: gi.slice(),
2867
+ typography: fi(m, s),
2868
+ transitions: xi(l),
2869
+ zIndex: {
2870
+ ...Si
2871
+ }
2872
+ });
2873
+ if (y = de(y, p), y = t.reduce((b, c) => de(b, c), y), process.env.NODE_ENV !== "production") {
2874
+ const b = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], c = (g, O) => {
2875
+ let _;
2876
+ for (_ in g) {
2877
+ const R = g[_];
2878
+ if (b.includes(_) && Object.keys(R).length > 0) {
2879
+ if (process.env.NODE_ENV !== "production") {
2880
+ const w = Ut("", _);
2881
+ console.error([`MUI: The \`${O}\` component increases the CSS specificity of the \`${_}\` internal state.`, "You can not override it like this: ", JSON.stringify(g, null, 2), "", `Instead, you need to use the '&.${w}' syntax:`, JSON.stringify({
2882
+ root: {
2883
+ [`&.${w}`]: R
2884
+ }
2885
+ }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
2886
+ `));
2887
+ }
2888
+ g[_] = {};
2889
+ }
2890
+ }
2891
+ };
2892
+ Object.keys(y.components).forEach((g) => {
2893
+ const O = y.components[g].styleOverrides;
2894
+ O && g.startsWith("Mui") && c(O, g);
2895
+ });
2896
+ }
2897
+ return y.unstable_sxConfig = {
2898
+ ...yt,
2899
+ ...p?.unstable_sxConfig
2900
+ }, y.unstable_sx = function(c) {
2901
+ return ze({
2902
+ sx: c,
2903
+ theme: this
2904
+ });
2905
+ }, y.toRuntimeSource = Ur, Ei(y), y;
2906
+ }
2907
+ function Ti(e) {
2908
+ let t;
2909
+ return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
2910
+ }
2911
+ const $i = [...Array(25)].map((e, t) => {
2912
+ if (t === 0)
2913
+ return "none";
2914
+ const r = Ti(t);
2915
+ return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
2916
+ });
2917
+ function qr(e) {
2918
+ return {
2919
+ inputPlaceholder: e === "dark" ? 0.5 : 0.42,
2920
+ inputUnderline: e === "dark" ? 0.7 : 0.42,
2921
+ switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
2922
+ switchTrack: e === "dark" ? 0.3 : 0.38
2923
+ };
2924
+ }
2925
+ function Hr(e) {
2926
+ return e === "dark" ? $i : [];
2927
+ }
2928
+ function Ai(e) {
2929
+ const {
2930
+ palette: t = {
2931
+ mode: "light"
2932
+ },
2933
+ // need to cast to avoid module augmentation test
2934
+ opacity: r,
2935
+ overlays: n,
2936
+ colorSpace: o,
2937
+ ...i
2938
+ } = e, l = Yt({
2939
+ ...t,
2940
+ colorSpace: o
2941
+ });
2942
+ return {
2943
+ palette: l,
2944
+ opacity: {
2945
+ ...qr(l.mode),
2946
+ ...r
2947
+ },
2948
+ overlays: n || Hr(l.mode),
2949
+ ...i
2950
+ };
2951
+ }
2952
+ function Oi(e) {
2953
+ return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
2954
+ e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
2955
+ }
2956
+ const _i = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], ki = (e) => (t, r) => {
2957
+ const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
2958
+ let i = o;
2959
+ if (o === "class" && (i = ".%s"), o === "data" && (i = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (i = `[${o}="%s"]`), e.defaultColorScheme === t) {
2960
+ if (t === "dark") {
2961
+ const l = {};
2962
+ return _i(e.cssVarPrefix).forEach((s) => {
2963
+ l[s] = r[s], delete r[s];
2964
+ }), i === "media" ? {
2965
+ [n]: r,
2966
+ "@media (prefers-color-scheme: dark)": {
2967
+ [n]: l
2968
+ }
2969
+ } : i ? {
2970
+ [i.replace("%s", t)]: l,
2971
+ [`${n}, ${i.replace("%s", t)}`]: r
2972
+ } : {
2973
+ [n]: {
2974
+ ...r,
2975
+ ...l
2976
+ }
2977
+ };
2978
+ }
2979
+ if (i && i !== "media")
2980
+ return `${n}, ${i.replace("%s", String(t))}`;
2981
+ } else if (t) {
2982
+ if (i === "media")
2983
+ return {
2984
+ [`@media (prefers-color-scheme: ${String(t)})`]: {
2985
+ [n]: r
2986
+ }
2987
+ };
2988
+ if (i)
2989
+ return i.replace("%s", String(t));
2990
+ }
2991
+ return n;
2992
+ };
2993
+ function Ii(e, t) {
2994
+ t.forEach((r) => {
2995
+ e[r] || (e[r] = {});
2996
+ });
2997
+ }
2998
+ function h(e, t, r) {
2999
+ !e[t] && r && (e[t] = r);
3000
+ }
3001
+ function Ye(e) {
3002
+ return typeof e != "string" || !e.startsWith("hsl") ? e : jr(e);
3003
+ }
3004
+ function ye(e, t) {
3005
+ `${t}Channel` in e || (e[`${t}Channel`] = Fe(Ye(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
3006
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
3007
+ }
3008
+ function Ri(e) {
3009
+ return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
3010
+ }
3011
+ const ge = (e) => {
3012
+ try {
3013
+ return e();
3014
+ } catch {
3015
+ }
3016
+ }, Pi = (e = "mui") => yn(e);
3017
+ function kt(e, t, r, n, o) {
3018
+ if (!r)
3019
+ return;
3020
+ r = r === !0 ? {} : r;
3021
+ const i = o === "dark" ? "dark" : "light";
3022
+ if (!n) {
3023
+ t[o] = Ai({
3024
+ ...r,
3025
+ palette: {
3026
+ mode: i,
3027
+ ...r?.palette
3028
+ },
3029
+ colorSpace: e
3030
+ });
3031
+ return;
3032
+ }
3033
+ const {
3034
+ palette: l,
3035
+ ...s
3036
+ } = jt({
3037
+ ...n,
3038
+ palette: {
3039
+ mode: i,
3040
+ ...r?.palette
3041
+ },
3042
+ colorSpace: e
3043
+ });
3044
+ return t[o] = {
3045
+ ...r,
3046
+ palette: l,
3047
+ opacity: {
3048
+ ...qr(i),
3049
+ ...r?.opacity
3050
+ },
3051
+ overlays: r?.overlays || Hr(i)
3052
+ }, s;
3053
+ }
3054
+ function Ni(e = {}, ...t) {
3055
+ const {
3056
+ colorSchemes: r = {
3057
+ light: !0
3058
+ },
3059
+ defaultColorScheme: n,
3060
+ disableCssColorScheme: o = !1,
3061
+ cssVarPrefix: i = "mui",
3062
+ nativeColor: l = !1,
3063
+ shouldSkipGeneratingVar: s = Oi,
3064
+ colorSchemeSelector: f = r.light && r.dark ? "media" : void 0,
3065
+ rootSelector: d = ":root",
3066
+ ...p
3067
+ } = e, m = Object.keys(r)[0], u = n || (r.light && m !== "light" ? "light" : m), y = Pi(i), {
3068
+ [u]: b,
3069
+ light: c,
3070
+ dark: g,
3071
+ ...O
3072
+ } = r, _ = {
3073
+ ...O
3074
+ };
3075
+ let R = b;
3076
+ if ((u === "dark" && !("dark" in r) || u === "light" && !("light" in r)) && (R = !0), !R)
3077
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${u}\` option is either missing or invalid.` : we(21, u));
3078
+ let w;
3079
+ l && (w = "oklch");
3080
+ const x = kt(w, _, R, p, u);
3081
+ c && !_.light && kt(w, _, c, void 0, "light"), g && !_.dark && kt(w, _, g, void 0, "dark");
3082
+ let T = {
3083
+ defaultColorScheme: u,
3084
+ ...x,
3085
+ cssVarPrefix: i,
3086
+ colorSchemeSelector: f,
3087
+ rootSelector: d,
3088
+ getCssVar: y,
3089
+ colorSchemes: _,
3090
+ font: {
3091
+ ...si(x.typography),
3092
+ ...x.font
3093
+ },
3094
+ spacing: Ri(p.spacing)
3095
+ };
3096
+ Object.keys(T.colorSchemes).forEach((Z) => {
3097
+ const a = T.colorSchemes[Z].palette, A = (I) => {
3098
+ const L = I.split("-"), ae = L[1], me = L[2];
3099
+ return y(I, a[ae][me]);
3100
+ };
3101
+ a.mode === "light" && (h(a.common, "background", "#fff"), h(a.common, "onBackground", "#000")), a.mode === "dark" && (h(a.common, "background", "#000"), h(a.common, "onBackground", "#fff"));
3102
+ function C(I, L, ae) {
3103
+ if (w) {
3104
+ let me;
3105
+ return I === $e && (me = `transparent ${((1 - ae) * 100).toFixed(0)}%`), I === G && (me = `#000 ${(ae * 100).toFixed(0)}%`), I === K && (me = `#fff ${(ae * 100).toFixed(0)}%`), `color-mix(in ${w}, ${L}, ${me})`;
3106
+ }
3107
+ return I(L, ae);
3108
+ }
3109
+ if (Ii(a, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), a.mode === "light") {
3110
+ h(a.Alert, "errorColor", C(G, a.error.light, 0.6)), h(a.Alert, "infoColor", C(G, a.info.light, 0.6)), h(a.Alert, "successColor", C(G, a.success.light, 0.6)), h(a.Alert, "warningColor", C(G, a.warning.light, 0.6)), h(a.Alert, "errorFilledBg", A("palette-error-main")), h(a.Alert, "infoFilledBg", A("palette-info-main")), h(a.Alert, "successFilledBg", A("palette-success-main")), h(a.Alert, "warningFilledBg", A("palette-warning-main")), h(a.Alert, "errorFilledColor", ge(() => a.getContrastText(a.error.main))), h(a.Alert, "infoFilledColor", ge(() => a.getContrastText(a.info.main))), h(a.Alert, "successFilledColor", ge(() => a.getContrastText(a.success.main))), h(a.Alert, "warningFilledColor", ge(() => a.getContrastText(a.warning.main))), h(a.Alert, "errorStandardBg", C(K, a.error.light, 0.9)), h(a.Alert, "infoStandardBg", C(K, a.info.light, 0.9)), h(a.Alert, "successStandardBg", C(K, a.success.light, 0.9)), h(a.Alert, "warningStandardBg", C(K, a.warning.light, 0.9)), h(a.Alert, "errorIconColor", A("palette-error-main")), h(a.Alert, "infoIconColor", A("palette-info-main")), h(a.Alert, "successIconColor", A("palette-success-main")), h(a.Alert, "warningIconColor", A("palette-warning-main")), h(a.AppBar, "defaultBg", A("palette-grey-100")), h(a.Avatar, "defaultBg", A("palette-grey-400")), h(a.Button, "inheritContainedBg", A("palette-grey-300")), h(a.Button, "inheritContainedHoverBg", A("palette-grey-A100")), h(a.Chip, "defaultBorder", A("palette-grey-400")), h(a.Chip, "defaultAvatarColor", A("palette-grey-700")), h(a.Chip, "defaultIconColor", A("palette-grey-700")), h(a.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), h(a.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), h(a.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), h(a.LinearProgress, "primaryBg", C(K, a.primary.main, 0.62)), h(a.LinearProgress, "secondaryBg", C(K, a.secondary.main, 0.62)), h(a.LinearProgress, "errorBg", C(K, a.error.main, 0.62)), h(a.LinearProgress, "infoBg", C(K, a.info.main, 0.62)), h(a.LinearProgress, "successBg", C(K, a.success.main, 0.62)), h(a.LinearProgress, "warningBg", C(K, a.warning.main, 0.62)), h(a.Skeleton, "bg", w ? C($e, a.text.primary, 0.11) : `rgba(${A("palette-text-primaryChannel")} / 0.11)`), h(a.Slider, "primaryTrack", C(K, a.primary.main, 0.62)), h(a.Slider, "secondaryTrack", C(K, a.secondary.main, 0.62)), h(a.Slider, "errorTrack", C(K, a.error.main, 0.62)), h(a.Slider, "infoTrack", C(K, a.info.main, 0.62)), h(a.Slider, "successTrack", C(K, a.success.main, 0.62)), h(a.Slider, "warningTrack", C(K, a.warning.main, 0.62));
3111
+ const I = w ? C(G, a.background.default, 0.6825) : Ze(a.background.default, 0.8);
3112
+ h(a.SnackbarContent, "bg", I), h(a.SnackbarContent, "color", ge(() => w ? Dt.text.primary : a.getContrastText(I))), h(a.SpeedDialAction, "fabHoverBg", Ze(a.background.paper, 0.15)), h(a.StepConnector, "border", A("palette-grey-400")), h(a.StepContent, "border", A("palette-grey-400")), h(a.Switch, "defaultColor", A("palette-common-white")), h(a.Switch, "defaultDisabledColor", A("palette-grey-100")), h(a.Switch, "primaryDisabledColor", C(K, a.primary.main, 0.62)), h(a.Switch, "secondaryDisabledColor", C(K, a.secondary.main, 0.62)), h(a.Switch, "errorDisabledColor", C(K, a.error.main, 0.62)), h(a.Switch, "infoDisabledColor", C(K, a.info.main, 0.62)), h(a.Switch, "successDisabledColor", C(K, a.success.main, 0.62)), h(a.Switch, "warningDisabledColor", C(K, a.warning.main, 0.62)), h(a.TableCell, "border", C(K, C($e, a.divider, 1), 0.88)), h(a.Tooltip, "bg", C($e, a.grey[700], 0.92));
3113
+ }
3114
+ if (a.mode === "dark") {
3115
+ h(a.Alert, "errorColor", C(K, a.error.light, 0.6)), h(a.Alert, "infoColor", C(K, a.info.light, 0.6)), h(a.Alert, "successColor", C(K, a.success.light, 0.6)), h(a.Alert, "warningColor", C(K, a.warning.light, 0.6)), h(a.Alert, "errorFilledBg", A("palette-error-dark")), h(a.Alert, "infoFilledBg", A("palette-info-dark")), h(a.Alert, "successFilledBg", A("palette-success-dark")), h(a.Alert, "warningFilledBg", A("palette-warning-dark")), h(a.Alert, "errorFilledColor", ge(() => a.getContrastText(a.error.dark))), h(a.Alert, "infoFilledColor", ge(() => a.getContrastText(a.info.dark))), h(a.Alert, "successFilledColor", ge(() => a.getContrastText(a.success.dark))), h(a.Alert, "warningFilledColor", ge(() => a.getContrastText(a.warning.dark))), h(a.Alert, "errorStandardBg", C(G, a.error.light, 0.9)), h(a.Alert, "infoStandardBg", C(G, a.info.light, 0.9)), h(a.Alert, "successStandardBg", C(G, a.success.light, 0.9)), h(a.Alert, "warningStandardBg", C(G, a.warning.light, 0.9)), h(a.Alert, "errorIconColor", A("palette-error-main")), h(a.Alert, "infoIconColor", A("palette-info-main")), h(a.Alert, "successIconColor", A("palette-success-main")), h(a.Alert, "warningIconColor", A("palette-warning-main")), h(a.AppBar, "defaultBg", A("palette-grey-900")), h(a.AppBar, "darkBg", A("palette-background-paper")), h(a.AppBar, "darkColor", A("palette-text-primary")), h(a.Avatar, "defaultBg", A("palette-grey-600")), h(a.Button, "inheritContainedBg", A("palette-grey-800")), h(a.Button, "inheritContainedHoverBg", A("palette-grey-700")), h(a.Chip, "defaultBorder", A("palette-grey-700")), h(a.Chip, "defaultAvatarColor", A("palette-grey-300")), h(a.Chip, "defaultIconColor", A("palette-grey-300")), h(a.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), h(a.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), h(a.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), h(a.LinearProgress, "primaryBg", C(G, a.primary.main, 0.5)), h(a.LinearProgress, "secondaryBg", C(G, a.secondary.main, 0.5)), h(a.LinearProgress, "errorBg", C(G, a.error.main, 0.5)), h(a.LinearProgress, "infoBg", C(G, a.info.main, 0.5)), h(a.LinearProgress, "successBg", C(G, a.success.main, 0.5)), h(a.LinearProgress, "warningBg", C(G, a.warning.main, 0.5)), h(a.Skeleton, "bg", w ? C($e, a.text.primary, 0.13) : `rgba(${A("palette-text-primaryChannel")} / 0.13)`), h(a.Slider, "primaryTrack", C(G, a.primary.main, 0.5)), h(a.Slider, "secondaryTrack", C(G, a.secondary.main, 0.5)), h(a.Slider, "errorTrack", C(G, a.error.main, 0.5)), h(a.Slider, "infoTrack", C(G, a.info.main, 0.5)), h(a.Slider, "successTrack", C(G, a.success.main, 0.5)), h(a.Slider, "warningTrack", C(G, a.warning.main, 0.5));
3116
+ const I = w ? C(K, a.background.default, 0.985) : Ze(a.background.default, 0.98);
3117
+ h(a.SnackbarContent, "bg", I), h(a.SnackbarContent, "color", ge(() => w ? Wr.text.primary : a.getContrastText(I))), h(a.SpeedDialAction, "fabHoverBg", Ze(a.background.paper, 0.15)), h(a.StepConnector, "border", A("palette-grey-600")), h(a.StepContent, "border", A("palette-grey-600")), h(a.Switch, "defaultColor", A("palette-grey-300")), h(a.Switch, "defaultDisabledColor", A("palette-grey-600")), h(a.Switch, "primaryDisabledColor", C(G, a.primary.main, 0.55)), h(a.Switch, "secondaryDisabledColor", C(G, a.secondary.main, 0.55)), h(a.Switch, "errorDisabledColor", C(G, a.error.main, 0.55)), h(a.Switch, "infoDisabledColor", C(G, a.info.main, 0.55)), h(a.Switch, "successDisabledColor", C(G, a.success.main, 0.55)), h(a.Switch, "warningDisabledColor", C(G, a.warning.main, 0.55)), h(a.TableCell, "border", C(G, C($e, a.divider, 1), 0.68)), h(a.Tooltip, "bg", C($e, a.grey[700], 0.92));
3118
+ }
3119
+ ye(a.background, "default"), ye(a.background, "paper"), ye(a.common, "background"), ye(a.common, "onBackground"), ye(a, "divider"), Object.keys(a).forEach((I) => {
3120
+ const L = a[I];
3121
+ I !== "tonalOffset" && L && typeof L == "object" && (L.main && h(a[I], "mainChannel", Fe(Ye(L.main))), L.light && h(a[I], "lightChannel", Fe(Ye(L.light))), L.dark && h(a[I], "darkChannel", Fe(Ye(L.dark))), L.contrastText && h(a[I], "contrastTextChannel", Fe(Ye(L.contrastText))), I === "text" && (ye(a[I], "primary"), ye(a[I], "secondary")), I === "action" && (L.active && ye(a[I], "active"), L.selected && ye(a[I], "selected")));
3122
+ });
3123
+ }), T = t.reduce((Z, a) => de(Z, a), T);
3124
+ const Q = {
3125
+ prefix: i,
3126
+ disableCssColorScheme: o,
3127
+ shouldSkipGeneratingVar: s,
3128
+ getSelector: ki(T),
3129
+ enableContrastVars: l
3130
+ }, {
3131
+ vars: k,
3132
+ generateThemeVars: z,
3133
+ generateStyleSheets: re
3134
+ } = ai(T, Q);
3135
+ return T.vars = k, Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([Z, a]) => {
3136
+ T[Z] = a;
3137
+ }), T.generateThemeVars = z, T.generateStyleSheets = re, T.generateSpacing = function() {
3138
+ return bn(p.spacing, Wt(this));
3139
+ }, T.getColorSchemeSelector = li(f), T.spacing = T.generateSpacing(), T.shouldSkipGeneratingVar = s, T.unstable_sxConfig = {
3140
+ ...yt,
3141
+ ...p?.unstable_sxConfig
3142
+ }, T.unstable_sx = function(a) {
3143
+ return ze({
3144
+ sx: a,
3145
+ theme: this
3146
+ });
3147
+ }, T.toRuntimeSource = Ur, T;
3148
+ }
3149
+ function Er(e, t, r) {
3150
+ e.colorSchemes && r && (e.colorSchemes[t] = {
3151
+ ...r !== !0 && r,
3152
+ palette: Yt({
3153
+ ...r === !0 ? {} : r.palette,
3154
+ mode: t
3155
+ })
3156
+ // cast type to skip module augmentation test
3157
+ });
3158
+ }
3159
+ function Mi(e = {}, ...t) {
3160
+ const {
3161
+ palette: r,
3162
+ cssVariables: n = !1,
3163
+ colorSchemes: o = r ? void 0 : {
3164
+ light: !0
3165
+ },
3166
+ defaultColorScheme: i = r?.mode,
3167
+ ...l
3168
+ } = e, s = i || "light", f = o?.[s], d = {
3169
+ ...o,
3170
+ ...r ? {
3171
+ [s]: {
3172
+ ...typeof f != "boolean" && f,
3173
+ palette: r
3174
+ }
3175
+ } : void 0
3176
+ };
3177
+ if (n === !1) {
3178
+ if (!("colorSchemes" in e))
3179
+ return jt(e, ...t);
3180
+ let p = r;
3181
+ "palette" in e || d[s] && (d[s] !== !0 ? p = d[s].palette : s === "dark" && (p = {
3182
+ mode: "dark"
3183
+ }));
3184
+ const m = jt({
3185
+ ...e,
3186
+ palette: p
3187
+ }, ...t);
3188
+ return m.defaultColorScheme = s, m.colorSchemes = d, m.palette.mode === "light" && (m.colorSchemes.light = {
3189
+ ...d.light !== !0 && d.light,
3190
+ palette: m.palette
3191
+ }, Er(m, "dark", d.dark)), m.palette.mode === "dark" && (m.colorSchemes.dark = {
3192
+ ...d.dark !== !0 && d.dark,
3193
+ palette: m.palette
3194
+ }, Er(m, "light", d.light)), m;
3195
+ }
3196
+ return !r && !("light" in d) && s === "light" && (d.light = !0), Ni({
3197
+ ...l,
3198
+ colorSchemes: d,
3199
+ defaultColorScheme: s,
3200
+ ...typeof n != "boolean" && n
3201
+ }, ...t);
3202
+ }
3203
+ const Gr = Mi(), Kr = "$$material";
3204
+ function Xr() {
3205
+ const e = vn(Gr);
3206
+ return process.env.NODE_ENV !== "production" && ve.useDebugValue(e), e[Kr] || e;
3207
+ }
3208
+ function Jr(e, t = "") {
3209
+ return e.displayName || e.name || t;
3210
+ }
3211
+ function Tr(e, t, r) {
3212
+ const n = Jr(t);
3213
+ return e.displayName || (n !== "" ? `${r}(${n})` : r);
3214
+ }
3215
+ function Di(e) {
3216
+ if (e != null) {
3217
+ if (typeof e == "string")
3218
+ return e;
3219
+ if (typeof e == "function")
3220
+ return Jr(e, "Component");
3221
+ if (typeof e == "object")
3222
+ switch (e.$$typeof) {
3223
+ case nt.ForwardRef:
3224
+ return Tr(e, e.render, "ForwardRef");
3225
+ case nt.Memo:
3226
+ return Tr(e, e.type, "memo");
3227
+ default:
3228
+ return;
3229
+ }
3230
+ }
3231
+ }
3232
+ function Bi(e) {
3233
+ const {
3234
+ variants: t,
3235
+ ...r
3236
+ } = e, n = {
3237
+ variants: t,
3238
+ style: Oe(r),
3239
+ isProcessed: !0
3240
+ };
3241
+ return n.style === r || t && t.forEach((o) => {
3242
+ typeof o.style != "function" && (o.style = Oe(o.style));
3243
+ }), n;
3244
+ }
3245
+ const ji = Yr();
3246
+ function It(e) {
3247
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
3248
+ }
3249
+ function Ae(e, t) {
3250
+ return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
3251
+ }
3252
+ function zi(e) {
3253
+ return e ? (t, r) => r[e] : null;
3254
+ }
3255
+ function Li(e, t, r) {
3256
+ e.theme = Yi(e.theme) ? r : e.theme[t] || e.theme;
3257
+ }
3258
+ function tt(e, t, r) {
3259
+ const n = typeof t == "function" ? t(e) : t;
3260
+ if (Array.isArray(n))
3261
+ return n.flatMap((o) => tt(e, o, r));
3262
+ if (Array.isArray(n?.variants)) {
3263
+ let o;
3264
+ if (n.isProcessed)
3265
+ o = r ? Ae(n.style, r) : n.style;
3266
+ else {
3267
+ const {
3268
+ variants: i,
3269
+ ...l
3270
+ } = n;
3271
+ o = r ? Ae(Oe(l), r) : l;
3272
+ }
3273
+ return Qr(e, n.variants, [o], r);
3274
+ }
3275
+ return n?.isProcessed ? r ? Ae(Oe(n.style), r) : n.style : r ? Ae(Oe(n), r) : n;
3276
+ }
3277
+ function Qr(e, t, r = [], n = void 0) {
3278
+ let o;
3279
+ e: for (let i = 0; i < t.length; i += 1) {
3280
+ const l = t[i];
3281
+ if (typeof l.props == "function") {
3282
+ if (o ??= {
3283
+ ...e,
3284
+ ...e.ownerState,
3285
+ ownerState: e.ownerState
3286
+ }, !l.props(o))
3287
+ continue;
3288
+ } else
3289
+ for (const s in l.props)
3290
+ if (e[s] !== l.props[s] && e.ownerState?.[s] !== l.props[s])
3291
+ continue e;
3292
+ typeof l.style == "function" ? (o ??= {
3293
+ ...e,
3294
+ ...e.ownerState,
3295
+ ownerState: e.ownerState
3296
+ }, r.push(n ? Ae(Oe(l.style(o)), n) : l.style(o))) : r.push(n ? Ae(Oe(l.style), n) : l.style);
3297
+ }
3298
+ return r;
3299
+ }
3300
+ function Wi(e = {}) {
3301
+ const {
3302
+ themeId: t,
3303
+ defaultTheme: r = ji,
3304
+ rootShouldForwardProp: n = It,
3305
+ slotShouldForwardProp: o = It
3306
+ } = e;
3307
+ function i(s) {
3308
+ Li(s, t, r);
3309
+ }
3310
+ return (s, f = {}) => {
3311
+ Ko(s, (T) => T.filter((Q) => Q !== ze));
3312
+ const {
3313
+ name: d,
3314
+ slot: p,
3315
+ skipVariantsResolver: m,
3316
+ skipSx: u,
3317
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
3318
+ // For more details: https://github.com/mui/material-ui/pull/37908
3319
+ overridesResolver: y = zi(Zr(p)),
3320
+ ...b
3321
+ } = f, c = d && d.startsWith("Mui") || p ? "components" : "custom", g = m !== void 0 ? m : (
3322
+ // TODO v6: remove `Root` in the next major release
3323
+ // For more details: https://github.com/mui/material-ui/pull/37908
3324
+ p && p !== "Root" && p !== "root" || !1
3325
+ ), O = u || !1;
3326
+ let _ = It;
3327
+ p === "Root" || p === "root" ? _ = n : p ? _ = o : Ui(s) && (_ = void 0);
3328
+ const R = Go(s, {
3329
+ shouldForwardProp: _,
3330
+ label: Fi(d, p),
3331
+ ...b
3332
+ }), w = (T) => {
3333
+ if (T.__emotion_real === T)
3334
+ return T;
3335
+ if (typeof T == "function")
3336
+ return function(k) {
3337
+ return tt(k, T, k.theme.modularCssLayers ? c : void 0);
3338
+ };
3339
+ if (be(T)) {
3340
+ const Q = Bi(T);
3341
+ return function(z) {
3342
+ return Q.variants ? tt(z, Q, z.theme.modularCssLayers ? c : void 0) : z.theme.modularCssLayers ? Ae(Q.style, c) : Q.style;
3343
+ };
3344
+ }
3345
+ return T;
3346
+ }, x = (...T) => {
3347
+ const Q = [], k = T.map(w), z = [];
3348
+ if (Q.push(i), d && y && z.push(function(A) {
3349
+ const I = A.theme.components?.[d]?.styleOverrides;
3350
+ if (!I)
3351
+ return null;
3352
+ const L = {};
3353
+ for (const ae in I)
3354
+ L[ae] = tt(A, I[ae], A.theme.modularCssLayers ? "theme" : void 0);
3355
+ return y(A, L);
3356
+ }), d && !g && z.push(function(A) {
3357
+ const I = A.theme?.components?.[d]?.variants;
3358
+ return I ? Qr(A, I, [], A.theme.modularCssLayers ? "theme" : void 0) : null;
3359
+ }), O || z.push(ze), Array.isArray(k[0])) {
3360
+ const a = k.shift(), A = new Array(Q.length).fill(""), C = new Array(z.length).fill("");
3361
+ let I;
3362
+ I = [...A, ...a, ...C], I.raw = [...A, ...a.raw, ...C], Q.unshift(I);
3363
+ }
3364
+ const re = [...Q, ...k, ...z], Z = R(...re);
3365
+ return s.muiName && (Z.muiName = s.muiName), process.env.NODE_ENV !== "production" && (Z.displayName = Vi(d, p, s)), Z;
3366
+ };
3367
+ return R.withConfig && (x.withConfig = R.withConfig), x;
3368
+ };
3369
+ }
3370
+ function Vi(e, t, r) {
3371
+ return e ? `${e}${_e(t || "")}` : `Styled(${Di(r)})`;
3372
+ }
3373
+ function Fi(e, t) {
3374
+ let r;
3375
+ return process.env.NODE_ENV !== "production" && e && (r = `${e}-${Zr(t || "Root")}`), r;
3376
+ }
3377
+ function Yi(e) {
3378
+ for (const t in e)
3379
+ return !1;
3380
+ return !0;
3381
+ }
3382
+ function Ui(e) {
3383
+ return typeof e == "string" && // 96 is one less than the char code
3384
+ // for "a" so this is checking that
3385
+ // it's a lowercase character
3386
+ e.charCodeAt(0) > 96;
3387
+ }
3388
+ function Zr(e) {
3389
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
3390
+ }
3391
+ function qi(e) {
3392
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
3393
+ }
3394
+ const Hi = (e) => qi(e) && e !== "classes", ke = Wi({
3395
+ themeId: Kr,
3396
+ defaultTheme: Gr,
3397
+ rootShouldForwardProp: Hi
3398
+ }), Gi = xn;
3399
+ process.env.NODE_ENV !== "production" && (Y.node, Y.object.isRequired);
3400
+ function Ki(e) {
3401
+ return Qo(e);
3402
+ }
3403
+ function Xi(e, t, r = "Mui") {
3404
+ const n = {};
3405
+ return t.forEach((o) => {
3406
+ n[o] = Ut(e, o, r);
3407
+ }), n;
3408
+ }
3409
+ function Ji(e) {
3410
+ return Ut("MuiSvgIcon", e);
3411
+ }
3412
+ Xi("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
3413
+ const Qi = (e) => {
3414
+ const {
3415
+ color: t,
3416
+ fontSize: r,
3417
+ classes: n
3418
+ } = e, o = {
3419
+ root: ["root", t !== "inherit" && `color${_e(t)}`, `fontSize${_e(r)}`]
3420
+ };
3421
+ return Pn(o, Ji, n);
3422
+ }, Zi = ke("svg", {
3423
+ name: "MuiSvgIcon",
3424
+ slot: "Root",
3425
+ overridesResolver: (e, t) => {
3426
+ const {
3427
+ ownerState: r
3428
+ } = e;
3429
+ return [t.root, r.color !== "inherit" && t[`color${_e(r.color)}`], t[`fontSize${_e(r.fontSize)}`]];
3430
+ }
3431
+ })(Gi(({
3432
+ theme: e
3433
+ }) => ({
3434
+ userSelect: "none",
3435
+ width: "1em",
3436
+ height: "1em",
3437
+ display: "inline-block",
3438
+ flexShrink: 0,
3439
+ transition: e.transitions?.create?.("fill", {
3440
+ duration: (e.vars ?? e).transitions?.duration?.shorter
3441
+ }),
3442
+ variants: [
3443
+ {
3444
+ props: (t) => !t.hasSvgAsChild,
3445
+ style: {
3446
+ // the <svg> will define the property that has `currentColor`
3447
+ // for example heroicons uses fill="none" and stroke="currentColor"
3448
+ fill: "currentColor"
3449
+ }
3450
+ },
3451
+ {
3452
+ props: {
3453
+ fontSize: "inherit"
3454
+ },
3455
+ style: {
3456
+ fontSize: "inherit"
3457
+ }
3458
+ },
3459
+ {
3460
+ props: {
3461
+ fontSize: "small"
3462
+ },
3463
+ style: {
3464
+ fontSize: e.typography?.pxToRem?.(20) || "1.25rem"
3465
+ }
3466
+ },
3467
+ {
3468
+ props: {
3469
+ fontSize: "medium"
3470
+ },
3471
+ style: {
3472
+ fontSize: e.typography?.pxToRem?.(24) || "1.5rem"
3473
+ }
3474
+ },
3475
+ {
3476
+ props: {
3477
+ fontSize: "large"
3478
+ },
3479
+ style: {
3480
+ fontSize: e.typography?.pxToRem?.(35) || "2.1875rem"
3481
+ }
3482
+ },
3483
+ // TODO v5 deprecate color prop, v6 remove for sx
3484
+ ...Object.entries((e.vars ?? e).palette).filter(([, t]) => t && t.main).map(([t]) => ({
3485
+ props: {
3486
+ color: t
3487
+ },
3488
+ style: {
3489
+ color: (e.vars ?? e).palette?.[t]?.main
3490
+ }
3491
+ })),
3492
+ {
3493
+ props: {
3494
+ color: "action"
3495
+ },
3496
+ style: {
3497
+ color: (e.vars ?? e).palette?.action?.active
3498
+ }
3499
+ },
3500
+ {
3501
+ props: {
3502
+ color: "disabled"
3503
+ },
3504
+ style: {
3505
+ color: (e.vars ?? e).palette?.action?.disabled
3506
+ }
3507
+ },
3508
+ {
3509
+ props: {
3510
+ color: "inherit"
3511
+ },
3512
+ style: {
3513
+ color: void 0
3514
+ }
3515
+ }
3516
+ ]
3517
+ }))), at = /* @__PURE__ */ ve.forwardRef(function(t, r) {
3518
+ const n = Ki({
3519
+ props: t,
3520
+ name: "MuiSvgIcon"
3521
+ }), {
3522
+ children: o,
3523
+ className: i,
3524
+ color: l = "inherit",
3525
+ component: s = "svg",
3526
+ fontSize: f = "medium",
3527
+ htmlColor: d,
3528
+ inheritViewBox: p = !1,
3529
+ titleAccess: m,
3530
+ viewBox: u = "0 0 24 24",
3531
+ ...y
3532
+ } = n, b = /* @__PURE__ */ ve.isValidElement(o) && o.type === "svg", c = {
3533
+ ...n,
3534
+ color: l,
3535
+ component: s,
3536
+ fontSize: f,
3537
+ instanceFontSize: t.fontSize,
3538
+ inheritViewBox: p,
3539
+ viewBox: u,
3540
+ hasSvgAsChild: b
3541
+ }, g = {};
3542
+ p || (g.viewBox = u);
3543
+ const O = Qi(c);
3544
+ return /* @__PURE__ */ ee(Zi, {
3545
+ as: s,
3546
+ className: Mr(O.root, i),
3547
+ focusable: "false",
3548
+ color: d,
3549
+ "aria-hidden": m ? void 0 : !0,
3550
+ role: m ? "img" : void 0,
3551
+ ref: r,
3552
+ ...g,
3553
+ ...y,
3554
+ ...b && o.props,
3555
+ ownerState: c,
3556
+ children: [b ? o.props.children : o, m ? /* @__PURE__ */ v("title", {
3557
+ children: m
3558
+ }) : null]
3559
+ });
3560
+ });
3561
+ process.env.NODE_ENV !== "production" && (at.propTypes = {
3562
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
3563
+ // │ These PropTypes are generated from the TypeScript type definitions. │
3564
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
3565
+ // └─────────────────────────────────────────────────────────────────────┘
3566
+ /**
3567
+ * Node passed into the SVG element.
3568
+ */
3569
+ children: Y.node,
3570
+ /**
3571
+ * Override or extend the styles applied to the component.
3572
+ */
3573
+ classes: Y.object,
3574
+ /**
3575
+ * @ignore
3576
+ */
3577
+ className: Y.string,
3578
+ /**
3579
+ * The color of the component.
3580
+ * It supports both default and custom theme colors, which can be added as shown in the
3581
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
3582
+ * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
3583
+ * @default 'inherit'
3584
+ */
3585
+ color: Y.oneOfType([Y.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), Y.string]),
3586
+ /**
3587
+ * The component used for the root node.
3588
+ * Either a string to use a HTML element or a component.
3589
+ */
3590
+ component: Y.elementType,
3591
+ /**
3592
+ * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
3593
+ * @default 'medium'
3594
+ */
3595
+ fontSize: Y.oneOfType([Y.oneOf(["inherit", "large", "medium", "small"]), Y.string]),
3596
+ /**
3597
+ * Applies a color attribute to the SVG element.
3598
+ */
3599
+ htmlColor: Y.string,
3600
+ /**
3601
+ * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
3602
+ * prop will be ignored.
3603
+ * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
3604
+ * `component`'s viewBox to the root node.
3605
+ * @default false
3606
+ */
3607
+ inheritViewBox: Y.bool,
3608
+ /**
3609
+ * The shape-rendering attribute. The behavior of the different options is described on the
3610
+ * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
3611
+ * If you are having issues with blurry icons you should investigate this prop.
3612
+ */
3613
+ shapeRendering: Y.string,
3614
+ /**
3615
+ * The system prop that allows defining system overrides as well as additional CSS styles.
3616
+ */
3617
+ sx: Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func, Y.object, Y.bool])), Y.func, Y.object]),
3618
+ /**
3619
+ * Provides a human-readable title for the element that contains it.
3620
+ * https://www.w3.org/TR/SVG-access/#Equivalent
3621
+ */
3622
+ titleAccess: Y.string,
3623
+ /**
3624
+ * Allows you to redefine what the coordinates without units mean inside an SVG element.
3625
+ * For example, if the SVG element is 500 (width) by 200 (height),
3626
+ * and you pass viewBox="0 0 50 20",
3627
+ * this means that the coordinates inside the SVG will go from the top left corner (0,0)
3628
+ * to bottom right (50,20) and each unit will be worth 10px.
3629
+ * @default '0 0 24 24'
3630
+ */
3631
+ viewBox: Y.string
3632
+ });
3633
+ at.muiName = "SvgIcon";
3634
+ function Se(e, t) {
3635
+ function r(n, o) {
3636
+ return /* @__PURE__ */ v(at, {
3637
+ "data-testid": process.env.NODE_ENV !== "production" ? `${t}Icon` : void 0,
3638
+ ref: o,
3639
+ ...n,
3640
+ children: e
3641
+ });
3642
+ }
3643
+ return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = at.muiName, /* @__PURE__ */ ve.memo(/* @__PURE__ */ ve.forwardRef(r));
3644
+ }
3645
+ const en = Se(/* @__PURE__ */ v("path", {
3646
+ d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
3647
+ }), "ExpandMore"), Ma = ({
3648
+ elementos: e,
3649
+ multiple: t = !1,
3650
+ variante: r = "simple",
3651
+ idsAbiertosInicialmente: n,
3652
+ alCambiar: o
3653
+ }) => {
3654
+ const [i, l] = De(
3655
+ n ?? []
3656
+ ), s = st(), f = s.palette.mode === "dark", d = (u) => {
3657
+ const b = i.includes(u) ? i.filter((c) => c !== u) : t ? [...i, u] : [u];
3658
+ l(b), o?.(b);
3659
+ }, p = {
3660
+ simple: {
3661
+ borderTop: `1px solid ${s.palette.divider}`,
3662
+ borderBottom: `1px solid ${s.palette.divider}`
3663
+ },
3664
+ bordeado: {
3665
+ border: `1px solid ${s.palette.divider}`,
3666
+ borderRadius: 3,
3667
+ overflow: "hidden"
3668
+ },
3669
+ separado: {
3670
+ display: "flex",
3671
+ flexDirection: "column",
3672
+ gap: 1
3673
+ }
3674
+ }, m = (u, y) => {
3675
+ const b = {
3676
+ bgcolor: s.palette.background.paper,
3677
+ transition: s.transitions.create(["background-color", "border-color", "box-shadow"], {
3678
+ duration: s.transitions.duration.short
3679
+ }),
3680
+ ...y && {
3681
+ opacity: 0.6,
3682
+ cursor: "not-allowed",
3683
+ bgcolor: f ? ce(s.palette.common.black, 0.2) : s.palette.grey[50]
3684
+ }
3685
+ };
3686
+ return r === "separado" ? {
3687
+ ...b,
3688
+ border: `1px solid ${u ? ce(s.palette.primary.main, 0.5) : s.palette.divider}`,
3689
+ borderRadius: 3,
3690
+ boxShadow: u ? `0 0 0 1px ${ce(s.palette.primary.main, 0.2)}` : s.shadows[1],
3691
+ ...!y && !u && {
3692
+ "&:hover": {
3693
+ borderColor: s.palette.action.hover
3694
+ }
3695
+ }
3696
+ } : {
3697
+ ...b,
3698
+ borderBottom: r === "bordeado" ? void 0 : `1px solid ${s.palette.divider}`,
3699
+ "&:last-child": { borderBottom: "none" },
3700
+ ...!y && {
3701
+ "&:hover": {
3702
+ bgcolor: s.palette.action.hover
3703
+ }
3704
+ }
3705
+ };
3706
+ };
3707
+ return /* @__PURE__ */ v(N, { sx: { width: "100%", ...p[r] }, children: e.map((u) => {
3708
+ const y = i.includes(u.id), b = !!u.deshabilitado, c = `acordeon-contenido-${u.id}`, g = `acordeon-cabecera-${u.id}`;
3709
+ return /* @__PURE__ */ ee(N, { sx: m(y, b), children: [
3710
+ /* @__PURE__ */ ee(
3711
+ rn,
3712
+ {
3713
+ id: g,
3714
+ "aria-expanded": y,
3715
+ "aria-controls": c,
3716
+ disabled: b,
3717
+ onClick: () => !b && d(u.id),
3718
+ sx: {
3719
+ width: "100%",
3720
+ display: "flex",
3721
+ alignItems: "center",
3722
+ justifyContent: "space-between",
3723
+ gap: 2,
3724
+ px: 2.5,
3725
+ py: 2,
3726
+ textAlign: "left",
3727
+ "&:focus-visible": {
3728
+ outline: `2px solid ${s.palette.primary.main}`,
3729
+ outlineOffset: -2
3730
+ }
3731
+ },
3732
+ children: [
3733
+ /* @__PURE__ */ ee(N, { sx: { display: "flex", alignItems: "center", gap: 1.5, minWidth: 0 }, children: [
3734
+ u.iconoIzquierda && /* @__PURE__ */ v(
3735
+ N,
3736
+ {
3737
+ sx: {
3738
+ fontSize: 20,
3739
+ display: "flex",
3740
+ color: y ? s.palette.primary.main : s.palette.text.disabled,
3741
+ transition: s.transitions.create("color")
3742
+ },
3743
+ children: u.iconoIzquierda
3744
+ }
3745
+ ),
3746
+ /* @__PURE__ */ ee(N, { sx: { display: "flex", flexDirection: "column", textAlign: "left" }, children: [
3747
+ /* @__PURE__ */ v(
3748
+ se,
3749
+ {
3750
+ variant: "body2",
3751
+ fontWeight: 600,
3752
+ color: y ? "primary.main" : "text.primary",
3753
+ sx: { transition: s.transitions.create("color") },
3754
+ children: u.titulo
3755
+ }
3756
+ ),
3757
+ u.subtitulo && /* @__PURE__ */ v(
3758
+ se,
3759
+ {
3760
+ variant: "caption",
3761
+ color: "text.secondary",
3762
+ noWrap: !0,
3763
+ children: u.subtitulo
3764
+ }
3765
+ )
3766
+ ] })
3767
+ ] }),
3768
+ /* @__PURE__ */ v(
3769
+ en,
3770
+ {
3771
+ sx: {
3772
+ fontSize: 20,
3773
+ color: y ? s.palette.primary.main : s.palette.text.disabled,
3774
+ transform: y ? "rotate(180deg)" : "rotate(0deg)",
3775
+ transition: s.transitions.create(["transform", "color"], {
3776
+ duration: s.transitions.duration.short
3777
+ }),
3778
+ flexShrink: 0
3779
+ }
3780
+ }
3781
+ )
3782
+ ]
3783
+ }
3784
+ ),
3785
+ /* @__PURE__ */ v(_r, { in: y, children: /* @__PURE__ */ v(
3786
+ N,
3787
+ {
3788
+ id: c,
3789
+ role: "region",
3790
+ "aria-labelledby": g,
3791
+ sx: {
3792
+ px: 2.5,
3793
+ pb: 2.5,
3794
+ pt: r === "separado" ? 1 : 0
3795
+ },
3796
+ children: /* @__PURE__ */ v(se, { variant: "body2", color: "text.secondary", sx: { lineHeight: 1.7 }, children: u.contenido })
3797
+ }
3798
+ ) })
3799
+ ] }, u.id);
3800
+ }) });
3801
+ }, ea = ({
3802
+ derechosAutor: e,
3803
+ enlaces: t,
3804
+ redesSociales: r,
3805
+ barraLateralColapsada: n = !1,
3806
+ className: o = "",
3807
+ children: i,
3808
+ ...l
3809
+ }) => {
3810
+ const s = st(), f = (/* @__PURE__ */ new Date()).getFullYear(), d = e || `© ${f} Codeplex. Todos los derechos reservados.`, p = n ? 80 : 260;
3811
+ return /* @__PURE__ */ v(
3812
+ N,
3813
+ {
3814
+ component: "footer",
3815
+ className: o,
3816
+ sx: {
3817
+ position: "fixed",
3818
+ bottom: 0,
3819
+ right: 0,
3820
+ zIndex: s.zIndex.drawer + 1,
3821
+ left: {
3822
+ xs: 0,
3823
+ md: `${p}px`
3824
+ },
3825
+ bgcolor: "background.paper",
3826
+ borderTop: `1px solid ${s.palette.divider}`,
3827
+ color: "text.secondary",
3828
+ transition: s.transitions.create(["left"], {
3829
+ easing: s.transitions.easing.sharp,
3830
+ duration: s.transitions.duration.enteringScreen
3831
+ }),
3832
+ py: 2,
3833
+ px: 3
3834
+ },
3835
+ ...l,
3836
+ children: /* @__PURE__ */ ee(N, { sx: {
3837
+ display: "flex",
3838
+ flexDirection: { xs: "column", md: "row" },
3839
+ alignItems: "center",
3840
+ justifyContent: "space-between",
3841
+ gap: 2
3842
+ }, children: [
3843
+ /* @__PURE__ */ v(se, { variant: "caption", sx: { color: "text.secondary", textAlign: { xs: "center", md: "left" } }, children: d }),
3844
+ t && t.length > 0 && /* @__PURE__ */ v(
3845
+ N,
3846
+ {
3847
+ component: "ul",
3848
+ sx: {
3849
+ display: "flex",
3850
+ flexWrap: "wrap",
3851
+ gap: 3,
3852
+ p: 0,
3853
+ m: 0,
3854
+ listStyle: "none",
3855
+ justifyContent: "center"
3856
+ },
3857
+ children: t.map((m, u) => /* @__PURE__ */ v(N, { component: "li", children: /* @__PURE__ */ v(
3858
+ se,
3859
+ {
3860
+ component: "a",
3861
+ variant: "caption",
3862
+ href: m.href,
3863
+ sx: {
3864
+ color: "text.secondary",
3865
+ textDecoration: "none",
3866
+ fontWeight: 500,
3867
+ "&:hover": { color: "primary.main" }
3868
+ },
3869
+ children: m.etiqueta
3870
+ }
3871
+ ) }, u))
3872
+ }
3873
+ ),
3874
+ /* @__PURE__ */ ee(N, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
3875
+ r && /* @__PURE__ */ v(N, { sx: { display: "flex", gap: 1 }, children: r.github && /* @__PURE__ */ v(
3876
+ Be,
3877
+ {
3878
+ size: "small",
3879
+ component: "a",
3880
+ href: r.github,
3881
+ target: "_blank",
3882
+ sx: { color: "text.secondary", "&:hover": { color: "text.primary" } },
3883
+ children: /* @__PURE__ */ v("svg", { width: "20", height: "20", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ v("path", { d: "M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" }) })
3884
+ }
3885
+ ) }),
3886
+ i
3887
+ ] })
3888
+ ] })
3889
+ }
3890
+ );
3891
+ }, $r = Se(/* @__PURE__ */ v("path", {
3892
+ d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
3893
+ }), "Search"), ta = Se(/* @__PURE__ */ v("path", {
3894
+ d: "M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"
3895
+ }), "NotificationsNone"), ra = Se(/* @__PURE__ */ v("path", {
3896
+ d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
3897
+ }), "KeyboardArrowDown"), na = Se(/* @__PURE__ */ v("path", {
3898
+ d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
3899
+ }), "ChevronRight"), oa = ({
3900
+ titulo: e,
3901
+ migasPan: t,
3902
+ usuario: r,
3903
+ mostrarBusqueda: n = !0,
3904
+ alBuscar: o,
3905
+ alNotificaciones: i,
3906
+ alPerfil: l,
3907
+ conteoNotificaciones: s = 0,
3908
+ barraLateralColapsada: f = !1,
3909
+ className: d = "",
3910
+ children: p,
3911
+ ...m
3912
+ }) => {
3913
+ const u = st(), y = f ? 80 : 260, b = (c) => {
3914
+ o && o(c.target.value);
3915
+ };
3916
+ return /* @__PURE__ */ v(
3917
+ N,
3918
+ {
3919
+ component: "header",
3920
+ className: d,
3921
+ sx: {
3922
+ position: "fixed",
3923
+ top: 0,
3924
+ right: 0,
3925
+ zIndex: u.zIndex.drawer + 1,
3926
+ left: {
3927
+ xs: 0,
3928
+ md: `${y}px`
3929
+ },
3930
+ height: { xs: 56, md: 64 },
3931
+ bgcolor: "background.paper",
3932
+ borderBottom: `1px solid ${u.palette.divider}`,
3933
+ color: "text.primary",
3934
+ transition: u.transitions.create(["left"], {
3935
+ easing: u.transitions.easing.sharp,
3936
+ duration: u.transitions.duration.enteringScreen
3937
+ }),
3938
+ display: "flex",
3939
+ alignItems: "center",
3940
+ boxShadow: u.palette.mode === "dark" ? "none" : "0 2px 4px rgba(0,0,0,0.02)"
3941
+ },
3942
+ ...m,
3943
+ children: /* @__PURE__ */ ee(N, { sx: {
3944
+ width: "100%",
3945
+ px: { xs: 2, md: 3 },
3946
+ pl: { xs: 7, sm: 8, lg: 3 },
3947
+ // Espacio para el menú móvil
3948
+ display: "flex",
3949
+ alignItems: "center",
3950
+ justifyContent: "space-between",
3951
+ gap: 2
3952
+ }, children: [
3953
+ /* @__PURE__ */ v(N, { sx: { flex: 1, minWidth: 0, display: "flex", alignItems: "center" }, children: t && t.length > 0 ? /* @__PURE__ */ v(N, { component: "nav", sx: { display: { xs: "none", sm: "flex" }, alignItems: "center" }, children: t.map((c, g) => /* @__PURE__ */ ee(N, { sx: { display: "flex", alignItems: "center", minWidth: 0 }, children: [
3954
+ g > 0 && /* @__PURE__ */ v(na, { sx: { mx: 0.5, color: "text.disabled", fontSize: 20 } }),
3955
+ c.href ? /* @__PURE__ */ v(
3956
+ se,
3957
+ {
3958
+ component: "a",
3959
+ variant: "body2",
3960
+ href: c.href,
3961
+ noWrap: !0,
3962
+ onClick: (O) => {
3963
+ c.alHacerClick && (O.preventDefault(), c.alHacerClick());
3964
+ },
3965
+ sx: {
3966
+ color: "text.secondary",
3967
+ textDecoration: "none",
3968
+ fontWeight: 500,
3969
+ "&:hover": { color: "primary.main" },
3970
+ whiteSpace: "nowrap"
3971
+ },
3972
+ children: c.etiqueta
3973
+ }
3974
+ ) : /* @__PURE__ */ v(
3975
+ se,
3976
+ {
3977
+ variant: "body2",
3978
+ noWrap: !0,
3979
+ sx: {
3980
+ color: "text.disabled",
3981
+ fontWeight: 500,
3982
+ whiteSpace: "nowrap"
3983
+ },
3984
+ children: c.etiqueta
3985
+ }
3986
+ )
3987
+ ] }, g)) }) : e && /* @__PURE__ */ v(se, { variant: "h6", noWrap: !0, sx: { fontWeight: 600 }, children: e }) }),
3988
+ n && /* @__PURE__ */ v(N, { sx: {
3989
+ display: { xs: "none", md: "flex" },
3990
+ flex: 1,
3991
+ maxWidth: 400,
3992
+ mx: 2
3993
+ }, children: /* @__PURE__ */ ee(N, { sx: {
3994
+ position: "relative",
3995
+ width: "100%",
3996
+ bgcolor: u.palette.mode === "dark" ? ce(u.palette.common.white, 0.05) : ce(u.palette.common.black, 0.03),
3997
+ borderRadius: 2,
3998
+ p: "2px 4px",
3999
+ display: "flex",
4000
+ alignItems: "center",
4001
+ border: `1px solid ${u.palette.divider}`,
4002
+ "&:focus-within": {
4003
+ borderColor: "primary.main",
4004
+ bgcolor: "background.paper",
4005
+ boxShadow: `0 0 0 2px ${ce(u.palette.primary.main, 0.1)}`
4006
+ }
4007
+ }, children: [
4008
+ /* @__PURE__ */ v($r, { sx: { ml: 1, color: "text.secondary", fontSize: 20 } }),
4009
+ /* @__PURE__ */ v(
4010
+ nn,
4011
+ {
4012
+ placeholder: "Buscar...",
4013
+ sx: { ml: 1, flex: 1, fontSize: "0.875rem" },
4014
+ onChange: b
4015
+ }
4016
+ )
4017
+ ] }) }),
4018
+ /* @__PURE__ */ ee(N, { sx: { display: "flex", alignItems: "center", gap: { xs: 0.5, md: 1.5 } }, children: [
4019
+ n && /* @__PURE__ */ v(Be, { sx: { display: { xs: "flex", md: "none" } }, children: /* @__PURE__ */ v($r, { fontSize: "small" }) }),
4020
+ i && /* @__PURE__ */ v(Be, { onClick: i, color: "inherit", children: /* @__PURE__ */ v(on, { badgeContent: s, color: "error", overlap: "circular", children: /* @__PURE__ */ v(ta, {}) }) }),
4021
+ r && /* @__PURE__ */ ee(
4022
+ N,
4023
+ {
4024
+ component: "button",
4025
+ onClick: l,
4026
+ sx: {
4027
+ display: "flex",
4028
+ alignItems: "center",
4029
+ gap: 1,
4030
+ p: 0.5,
4031
+ pr: 1,
4032
+ border: "none",
4033
+ bgcolor: "transparent",
4034
+ cursor: "pointer",
4035
+ borderRadius: 2,
4036
+ "&:hover": { bgcolor: "action.hover" }
4037
+ },
4038
+ children: [
4039
+ /* @__PURE__ */ v(
4040
+ et,
4041
+ {
4042
+ src: r.avatar,
4043
+ sx: { width: 32, height: 32, bgcolor: "primary.main", fontSize: "0.875rem" },
4044
+ children: r.nombre.charAt(0).toUpperCase()
4045
+ }
4046
+ ),
4047
+ /* @__PURE__ */ ee(N, { sx: { display: { xs: "none", md: "block" }, textAlign: "left", maxWidth: 120 }, children: [
4048
+ /* @__PURE__ */ v(se, { variant: "body2", noWrap: !0, sx: { fontWeight: 600, lineHeight: 1.2 }, children: r.nombre }),
4049
+ r.rol && /* @__PURE__ */ v(se, { variant: "caption", noWrap: !0, sx: { color: "text.secondary", display: "block" }, children: r.rol })
4050
+ ] }),
4051
+ /* @__PURE__ */ v(ra, { sx: { color: "text.secondary", fontSize: 18 } })
4052
+ ]
4053
+ }
4054
+ ),
4055
+ p
4056
+ ] })
4057
+ ] })
4058
+ }
4059
+ );
4060
+ }, ia = Se(/* @__PURE__ */ v("path", {
4061
+ d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"
4062
+ }), "ExpandLess"), aa = Se(/* @__PURE__ */ v("path", {
4063
+ d: "M3 18h13v-2H3zm0-5h10v-2H3zm0-7v2h13V6zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5z"
4064
+ }), "MenuOpen"), Ar = Se(/* @__PURE__ */ v("path", {
4065
+ d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
4066
+ }), "Menu"), sa = Se(/* @__PURE__ */ v("path", {
4067
+ d: "m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"
4068
+ }), "Logout"), Or = ke("aside", {
4069
+ shouldForwardProp: (e) => e !== "collapsed" && e !== "width"
4070
+ })(({ theme: e, collapsed: t, width: r }) => ({
4071
+ width: t ? 80 : r,
4072
+ height: "100%",
4073
+ display: "flex",
4074
+ flexDirection: "column",
4075
+ backgroundColor: e.palette.background.paper,
4076
+ borderRight: e.palette.mode === "dark" ? "none" : `1px solid ${e.palette.divider}`,
4077
+ transition: e.transitions.create(["width", "background-color"], {
4078
+ easing: e.transitions.easing.sharp,
4079
+ duration: e.transitions.duration.enteringScreen
4080
+ }),
4081
+ position: "fixed",
4082
+ top: 0,
4083
+ left: 0,
4084
+ bottom: 0,
4085
+ zIndex: e.zIndex.drawer + 2,
4086
+ overflow: "hidden",
4087
+ boxShadow: e.palette.mode === "dark" ? "none" : e.shadows[2]
4088
+ })), la = ke(N)(({ theme: e }) => ({
4089
+ height: 60,
4090
+ minHeight: 60,
4091
+ display: "flex",
4092
+ alignItems: "center",
4093
+ padding: e.spacing(0, 2),
4094
+ justifyContent: "space-between"
4095
+ })), ca = ke(N)(() => ({
4096
+ flex: 1,
4097
+ overflowY: "auto",
4098
+ overflowX: "hidden",
4099
+ scrollbarWidth: "none",
4100
+ msOverflowStyle: "none",
4101
+ "&::-webkit-scrollbar": {
4102
+ display: "none"
4103
+ }
4104
+ })), ua = ke(an, {
4105
+ shouldForwardProp: (e) => e !== "active" && e !== "collapsed"
4106
+ })(({ theme: e, active: t, collapsed: r }) => [
4107
+ {
4108
+ minHeight: 36,
4109
+ justifyContent: r ? "center" : "initial",
4110
+ paddingLeft: e.spacing(2),
4111
+ paddingRight: e.spacing(2),
4112
+ margin: e.spacing(0.1, 1.5),
4113
+ borderRadius: 8,
4114
+ gap: e.spacing(1.5),
4115
+ transition: e.transitions.create(["background-color", "color"], {
4116
+ duration: 200
4117
+ })
4118
+ },
4119
+ t && {
4120
+ backgroundColor: Nt(e.palette.primary.main, 0.15),
4121
+ color: e.palette.primary.main,
4122
+ position: "relative",
4123
+ "&:hover": {
4124
+ backgroundColor: Nt(e.palette.primary.main, 0.2)
4125
+ },
4126
+ "& .MuiListItemIcon-root": {
4127
+ color: e.palette.primary.main
4128
+ },
4129
+ "&::before": {
4130
+ content: '""',
4131
+ position: "absolute",
4132
+ left: -4,
4133
+ top: "50%",
4134
+ transform: "translateY(-50%)",
4135
+ height: 20,
4136
+ width: 4,
4137
+ borderRadius: "0 4px 4px 0",
4138
+ backgroundColor: e.palette.primary.main,
4139
+ opacity: 1
4140
+ }
4141
+ },
4142
+ !t && {
4143
+ color: e.palette.text.secondary,
4144
+ "&:hover": {
4145
+ backgroundColor: e.palette.action.hover,
4146
+ color: e.palette.text.primary,
4147
+ "& .MuiListItemIcon-root": {
4148
+ color: e.palette.text.primary
4149
+ }
4150
+ }
4151
+ }
4152
+ ]), da = ke(sn)(({ theme: e }) => ({
4153
+ minWidth: 0,
4154
+ justifyContent: "center",
4155
+ color: "inherit",
4156
+ fontSize: "1.25rem",
4157
+ transition: e.transitions.create(["color"]),
4158
+ "& .MuiSvgIcon-root": {
4159
+ fontSize: "1.25rem"
4160
+ }
4161
+ })), fa = ke(N)(({ theme: e }) => ({
4162
+ padding: e.spacing(2),
4163
+ display: "flex",
4164
+ alignItems: "center",
4165
+ gap: e.spacing(1.5)
4166
+ })), tn = ({
4167
+ item: e,
4168
+ collapsed: t,
4169
+ depth: r = 0,
4170
+ expanded: n,
4171
+ onToggle: o,
4172
+ onNavigate: i
4173
+ }) => {
4174
+ const l = Xr(), s = e.hijos && e.hijos.length > 0, f = s && e.hijos?.some((g) => g.activo), d = e.activo || t && f, [p, m] = De(null), u = !!p, y = (g) => {
4175
+ g.stopPropagation(), !e.deshabilitado && (t ? m(g.currentTarget) : s ? o() : (i(e.href), e.alHacerClick && e.alHacerClick()));
4176
+ }, b = () => {
4177
+ m(null);
4178
+ }, c = (g) => {
4179
+ b(), !g.deshabilitado && (i && g.href && i(g.href), g.alHacerClick && g.alHacerClick());
4180
+ };
4181
+ return /* @__PURE__ */ ee(rt, { children: [
4182
+ /* @__PURE__ */ v(Ir, { title: t ? e.etiqueta : "", placement: "right", arrow: !0, children: /* @__PURE__ */ ee(
4183
+ ua,
4184
+ {
4185
+ active: d,
4186
+ collapsed: t,
4187
+ onClick: y,
4188
+ disabled: e.deshabilitado,
4189
+ sx: [
4190
+ { pl: t || r === 0 ? 2 : 2 + r * 2 }
4191
+ ],
4192
+ children: [
4193
+ e.icono && /* @__PURE__ */ v(da, { children: e.icono }),
4194
+ !t && /* @__PURE__ */ ee(rt, { children: [
4195
+ /* @__PURE__ */ v(
4196
+ ln,
4197
+ {
4198
+ primary: e.etiqueta,
4199
+ primaryTypographyProps: {
4200
+ variant: "body2",
4201
+ fontSize: "0.875rem",
4202
+ fontWeight: d ? 700 : 500,
4203
+ noWrap: !0,
4204
+ lineHeight: 1.2
4205
+ }
4206
+ }
4207
+ ),
4208
+ e.insignia && /* @__PURE__ */ v(
4209
+ N,
4210
+ {
4211
+ sx: {
4212
+ bgcolor: "primary.main",
4213
+ color: "primary.contrastText",
4214
+ px: 0.8,
4215
+ py: 0.2,
4216
+ borderRadius: 10,
4217
+ fontSize: "0.65rem",
4218
+ fontWeight: "bold",
4219
+ lineHeight: 1,
4220
+ ml: "auto"
4221
+ },
4222
+ children: e.insignia
4223
+ }
4224
+ ),
4225
+ s && /* @__PURE__ */ v(N, { color: "text.secondary", display: "flex", ml: 1, children: n ? /* @__PURE__ */ v(ia, { fontSize: "small" }) : /* @__PURE__ */ v(en, { fontSize: "small" }) })
4226
+ ] })
4227
+ ]
4228
+ }
4229
+ ) }),
4230
+ t && s && /* @__PURE__ */ ee(
4231
+ cn,
4232
+ {
4233
+ anchorEl: p,
4234
+ open: u,
4235
+ onClose: b,
4236
+ anchorOrigin: { vertical: "top", horizontal: "right" },
4237
+ transformOrigin: { vertical: "top", horizontal: "left" },
4238
+ PaperProps: {
4239
+ sx: {
4240
+ ml: 1,
4241
+ borderRadius: 3,
4242
+ boxShadow: l.shadows[4],
4243
+ minWidth: 180
4244
+ }
4245
+ },
4246
+ children: [
4247
+ /* @__PURE__ */ v(N, { sx: { px: 2, py: 1.5, borderBottom: `1px solid ${l.palette.divider}` }, children: /* @__PURE__ */ v(se, { variant: "subtitle2", fontWeight: "bold", children: e.etiqueta }) }),
4248
+ e.hijos?.map((g) => /* @__PURE__ */ ee(
4249
+ un,
4250
+ {
4251
+ onClick: () => c(g),
4252
+ selected: g.activo,
4253
+ disabled: g.deshabilitado,
4254
+ sx: {
4255
+ my: 0.5,
4256
+ marginX: 1,
4257
+ borderRadius: 2,
4258
+ fontSize: "0.875rem"
4259
+ },
4260
+ children: [
4261
+ g.icono && /* @__PURE__ */ v(N, { component: "span", sx: { mr: 1.5, display: "flex", color: "text.secondary" }, children: g.icono }),
4262
+ g.etiqueta
4263
+ ]
4264
+ },
4265
+ g.id
4266
+ ))
4267
+ ]
4268
+ }
4269
+ ),
4270
+ !t && s && /* @__PURE__ */ v(_r, { in: n, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ v(kr, { component: "div", disablePadding: !0, children: e.hijos?.map((g) => /* @__PURE__ */ v(
4271
+ tn,
4272
+ {
4273
+ item: g,
4274
+ collapsed: t,
4275
+ depth: r + 1,
4276
+ expanded: !1,
4277
+ onToggle: () => {
4278
+ },
4279
+ onNavigate: i
4280
+ },
4281
+ g.id
4282
+ )) }) })
4283
+ ] });
4284
+ }, pa = ({
4285
+ elementos: e,
4286
+ usuario: t,
4287
+ logo: r,
4288
+ textoLogo: n = "Codeplex",
4289
+ colapsado: o = !1,
4290
+ cerrarAlNavegar: i = !0,
4291
+ alAlternar: l,
4292
+ alNavegar: s,
4293
+ alCerrarSesion: f,
4294
+ mostrarPie: d = !0,
4295
+ children: p,
4296
+ ancho: m = 260
4297
+ }) => {
4298
+ const u = Xr(), [y, b] = De(!1), [c, g] = De(o), [O, _] = De([]);
4299
+ Ht(() => {
4300
+ g(o);
4301
+ }, [o]), Ht(() => {
4302
+ const k = (re) => {
4303
+ let Z = [];
4304
+ return re.forEach((a) => {
4305
+ a.hijos && (a.hijos.some((C) => C.activo) && Z.push(a.id), Z = [...Z, ...k(a.hijos)]);
4306
+ }), Z;
4307
+ }, z = k(e);
4308
+ z.length > 0 && _((re) => [.../* @__PURE__ */ new Set([...re, ...z])]);
4309
+ }, [e]);
4310
+ const R = () => {
4311
+ const k = !c;
4312
+ g(k), l && l(k);
4313
+ }, w = () => {
4314
+ b(!y);
4315
+ }, x = (k) => {
4316
+ _(
4317
+ (z) => z.includes(k) ? z.filter((re) => re !== k) : [...z, k]
4318
+ );
4319
+ }, T = (k) => {
4320
+ k && (s && s(k), y && i && b(!1));
4321
+ }, Q = /* @__PURE__ */ ee(rt, { children: [
4322
+ /* @__PURE__ */ ee(la, { children: [
4323
+ !c || y ? /* @__PURE__ */ ee(N, { display: "flex", alignItems: "center", gap: 1.5, overflow: "hidden", children: [
4324
+ r && /* @__PURE__ */ v(et, { src: r, variant: "rounded", sx: { width: 32, height: 32 } }),
4325
+ /* @__PURE__ */ v(se, { variant: "h6", noWrap: !0, fontWeight: "bold", color: "text.primary", children: n })
4326
+ ] }) : r ? /* @__PURE__ */ v(et, { src: r, variant: "rounded", sx: { width: 32, height: 32, mx: "auto" } }) : null,
4327
+ /* @__PURE__ */ v(
4328
+ Be,
4329
+ {
4330
+ onClick: y ? w : R,
4331
+ size: "small",
4332
+ "aria-label": c ? "expandir barra lateral" : "colapsar barra lateral",
4333
+ sx: { display: { xs: y ? "flex" : "none", md: "flex" } },
4334
+ children: c && !y ? /* @__PURE__ */ v(Ar, {}) : /* @__PURE__ */ v(aa, {})
4335
+ }
4336
+ )
4337
+ ] }),
4338
+ p && /* @__PURE__ */ v(N, { sx: { px: 2, pb: 2 }, children: p }),
4339
+ /* @__PURE__ */ v(ca, { children: /* @__PURE__ */ v(kr, { component: "nav", sx: { px: 0, py: 0 }, children: e.map((k) => k.tipo === "divisor" ? /* @__PURE__ */ v(Pt, { sx: { my: 1, opacity: 0.6 } }, k.id) : k.tipo === "seccion" ? c && !y ? /* @__PURE__ */ v(Pt, { sx: { my: 1, opacity: 0.4 } }, k.id) : /* @__PURE__ */ v(
4340
+ se,
4341
+ {
4342
+ variant: "caption",
4343
+ color: "text.secondary",
4344
+ sx: {
4345
+ px: 3,
4346
+ mt: 1.5,
4347
+ mb: 0.5,
4348
+ display: "block",
4349
+ fontWeight: 800,
4350
+ textTransform: "uppercase",
4351
+ fontSize: "0.75rem",
4352
+ letterSpacing: "0.5px",
4353
+ opacity: 0.9,
4354
+ userSelect: "none"
4355
+ },
4356
+ children: k.etiqueta
4357
+ },
4358
+ k.id
4359
+ ) : /* @__PURE__ */ v(
4360
+ tn,
4361
+ {
4362
+ item: k,
4363
+ collapsed: c && !y,
4364
+ expanded: O.includes(k.id),
4365
+ onToggle: () => x(k.id),
4366
+ onNavigate: T
4367
+ },
4368
+ k.id
4369
+ )) }) }),
4370
+ d && t && /* @__PURE__ */ ee(fa, { children: [
4371
+ /* @__PURE__ */ v(
4372
+ et,
4373
+ {
4374
+ src: t.avatar,
4375
+ alt: t.nombre,
4376
+ sx: {
4377
+ width: 40,
4378
+ height: 40,
4379
+ bgcolor: u.palette.primary.main,
4380
+ flexShrink: 0
4381
+ },
4382
+ children: t.nombre.charAt(0)
4383
+ }
4384
+ ),
4385
+ (!c || y) && /* @__PURE__ */ ee(N, { flex: 1, overflow: "hidden", children: [
4386
+ /* @__PURE__ */ v(se, { variant: "subtitle2", noWrap: !0, fontWeight: "bold", children: t.nombre }),
4387
+ /* @__PURE__ */ v(se, { variant: "caption", color: "text.secondary", noWrap: !0, display: "block", children: t.rol || t.email })
4388
+ ] }),
4389
+ (!c || y) && f && /* @__PURE__ */ v(Ir, { title: "Cerrar sesión", children: /* @__PURE__ */ v(
4390
+ Be,
4391
+ {
4392
+ onClick: f,
4393
+ size: "small",
4394
+ "aria-label": "cerrar sesión",
4395
+ children: /* @__PURE__ */ v(sa, { fontSize: "small" })
4396
+ }
4397
+ ) })
4398
+ ] })
4399
+ ] });
4400
+ return /* @__PURE__ */ ee(rt, { children: [
4401
+ /* @__PURE__ */ v(
4402
+ Be,
4403
+ {
4404
+ sx: {
4405
+ mr: 2,
4406
+ display: { xs: y ? "none" : "flex", md: "none" },
4407
+ position: "fixed",
4408
+ top: 12,
4409
+ left: 16,
4410
+ zIndex: u.zIndex.drawer + 3,
4411
+ color: "text.primary",
4412
+ bgcolor: "background.paper",
4413
+ "&:hover": {
4414
+ bgcolor: "action.hover"
4415
+ }
4416
+ },
4417
+ "aria-label": "abrir menú",
4418
+ edge: "start",
4419
+ onClick: w,
4420
+ children: /* @__PURE__ */ v(Ar, {})
4421
+ }
4422
+ ),
4423
+ /* @__PURE__ */ v(
4424
+ N,
4425
+ {
4426
+ component: "div",
4427
+ sx: {
4428
+ position: "fixed",
4429
+ inset: 0,
4430
+ bgcolor: Nt(u.palette.common.black, u.palette.mode === "dark" ? 0.7 : 0.5),
4431
+ zIndex: u.zIndex.drawer + 1,
4432
+ display: { xs: y ? "block" : "none", md: "none" }
4433
+ },
4434
+ onClick: w
4435
+ }
4436
+ ),
4437
+ /* @__PURE__ */ v(
4438
+ Or,
4439
+ {
4440
+ collapsed: !1,
4441
+ width: m,
4442
+ sx: {
4443
+ transform: {
4444
+ xs: y ? "translateX(0)" : "translateX(-100%)",
4445
+ md: "none"
4446
+ },
4447
+ display: { xs: "flex", md: "none" },
4448
+ transition: "transform 0.3s ease-in-out",
4449
+ width: m
4450
+ },
4451
+ children: Q
4452
+ }
4453
+ ),
4454
+ /* @__PURE__ */ v(
4455
+ Or,
4456
+ {
4457
+ collapsed: c,
4458
+ width: m,
4459
+ sx: {
4460
+ display: { xs: "none", md: "flex" }
4461
+ },
4462
+ children: Q
4463
+ }
4464
+ )
4465
+ ] });
4466
+ }, Da = ({
4467
+ fluido: e,
4468
+ paginaCentrada: t,
4469
+ sx: r,
4470
+ anchoMaximo: n,
4471
+ fijo: o,
4472
+ deshabilitarMargenes: i,
4473
+ ...l
4474
+ }) => /* @__PURE__ */ v(
4475
+ dn,
4476
+ {
4477
+ maxWidth: e ? !1 : n,
4478
+ fixed: o,
4479
+ disableGutters: i,
4480
+ sx: [
4481
+ t ? {
4482
+ minHeight: "100vh",
4483
+ display: "flex",
4484
+ flexDirection: "column",
4485
+ justifyContent: "center",
4486
+ alignItems: "center"
4487
+ } : {},
4488
+ ...Array.isArray(r) ? r : r ? [r] : []
4489
+ ],
4490
+ ...l
4491
+ }
4492
+ ), ma = {
4493
+ inicio: "flex-start",
4494
+ start: "flex-start",
4495
+ centro: "center",
4496
+ center: "center",
4497
+ fin: "flex-end",
4498
+ end: "flex-end",
4499
+ "linea-base": "baseline",
4500
+ baseline: "baseline",
4501
+ estirar: "stretch",
4502
+ stretch: "stretch"
4503
+ }, ha = {
4504
+ inicio: "flex-start",
4505
+ start: "flex-start",
4506
+ centro: "center",
4507
+ center: "center",
4508
+ fin: "flex-end",
4509
+ end: "flex-end",
4510
+ entre: "space-between",
4511
+ between: "space-between",
4512
+ alrededor: "space-around",
4513
+ around: "space-around",
4514
+ uniforme: "space-evenly",
4515
+ evenly: "space-evenly"
4516
+ }, Ba = ({
4517
+ children: e,
4518
+ sinMargenes: t = !1,
4519
+ alineacion: r,
4520
+ justificacion: n,
4521
+ espaciado: o = 0,
4522
+ envolver: i = !0,
4523
+ componente: l = "div",
4524
+ sx: s
4525
+ }) => /* @__PURE__ */ v(
4526
+ N,
4527
+ {
4528
+ component: l,
4529
+ sx: {
4530
+ display: "flex",
4531
+ flexWrap: i ? "wrap" : "nowrap",
4532
+ mx: t ? 0 : -2,
4533
+ gap: o,
4534
+ ...r && { alignItems: ma[r] },
4535
+ ...n && { justifyContent: ha[n] },
4536
+ ...s
4537
+ },
4538
+ children: e
4539
+ }
4540
+ ), We = (e) => e === !0 ? "100%" : e === "auto" ? "auto" : typeof e == "number" && e >= 1 && e <= 12 ? `${e / 12 * 100}%` : "100%", Ve = (e) => e === !0 ? "1 1 0%" : "0 0 auto", ja = ({
4541
+ children: e,
4542
+ xs: t,
4543
+ sm: r,
4544
+ md: n,
4545
+ lg: o,
4546
+ xl: i,
4547
+ componente: l = "div",
4548
+ sx: s
4549
+ }) => {
4550
+ const f = t !== void 0 || r !== void 0 || n !== void 0 || o !== void 0 || i !== void 0, d = {}, p = {};
4551
+ return f ? (t !== void 0 ? (d.xs = We(t), p.xs = Ve(t)) : (d.xs = "100%", p.xs = "0 0 auto"), r !== void 0 && (d.sm = We(r), p.sm = Ve(r)), n !== void 0 && (d.md = We(n), p.md = Ve(n)), o !== void 0 && (d.lg = We(o), p.lg = Ve(o)), i !== void 0 && (d.xl = We(i), p.xl = Ve(i))) : (d.xs = "100%", p.xs = "1 1 0%"), /* @__PURE__ */ v(
4552
+ N,
4553
+ {
4554
+ component: l,
4555
+ sx: {
4556
+ position: "relative",
4557
+ px: 2,
4558
+ width: d,
4559
+ flex: p,
4560
+ maxWidth: "100%",
4561
+ boxSizing: "border-box",
4562
+ ...s
4563
+ },
4564
+ children: e
4565
+ }
4566
+ );
4567
+ }, ga = zt(({
4568
+ variante: e = "predeterminado",
4569
+ validacion: t,
4570
+ centrado: r,
4571
+ pantallaCompleta: n,
4572
+ flexFila: o,
4573
+ flexColumna: i,
4574
+ colorFondo: l,
4575
+ colorTexto: s,
4576
+ relleno: f,
4577
+ margen: d,
4578
+ redondeado: p,
4579
+ alFlotar: m,
4580
+ sx: u,
4581
+ children: y,
4582
+ ...b
4583
+ }, c) => {
4584
+ const g = st(), O = {
4585
+ transition: "all 0.3s ease-in-out",
4586
+ ...r && { display: "flex", justifyContent: "center", alignItems: "center" },
4587
+ ...n && { width: "100vw", height: "100vh" },
4588
+ ...o && { display: "flex", flexDirection: "row" },
4589
+ ...i && { display: "flex", flexDirection: "column" },
4590
+ ...l !== void 0 && { bgcolor: l },
4591
+ ...s !== void 0 && { color: s },
4592
+ ...f !== void 0 && { p: f },
4593
+ ...d !== void 0 && { m: d },
4594
+ ...p !== void 0 && { borderRadius: p }
4595
+ }, _ = (() => {
4596
+ switch (e) {
4597
+ case "bordeado":
4598
+ return { border: `1px solid ${g.palette.divider}` };
4599
+ case "sombreado":
4600
+ return { boxShadow: g.shadows[4] };
4601
+ case "vidrio":
4602
+ return {
4603
+ backgroundColor: ce(g.palette.background.paper, 0.7),
4604
+ backdropFilter: "blur(10px)",
4605
+ border: `1px solid ${ce(
4606
+ g.palette.common.white,
4607
+ g.palette.mode === "dark" ? 0.05 : 0.2
4608
+ )}`
4609
+ };
4610
+ case "gradiente": {
4611
+ const x = g.palette.mode === "dark" ? g.palette.primary.dark : g.palette.primary.light, T = g.palette.mode === "dark" ? g.palette.secondary.dark : g.palette.secondary.light;
4612
+ return {
4613
+ background: `linear-gradient(135deg, ${ce(x, 0.1)} 0%, ${ce(T, 0.1)} 100%)`,
4614
+ border: `1px solid ${ce(g.palette.primary.main, 0.1)}`
4615
+ };
4616
+ }
4617
+ default:
4618
+ return {};
4619
+ }
4620
+ })(), R = (() => {
4621
+ if (!t) return {};
4622
+ const T = {
4623
+ error: g.palette.error.main,
4624
+ exito: g.palette.success.main,
4625
+ advertencia: g.palette.warning.main,
4626
+ info: g.palette.info.main
4627
+ }[t];
4628
+ return {
4629
+ border: `1px solid ${T}`,
4630
+ boxShadow: `0 0 0 1px ${ce(T, 0.2)}`,
4631
+ backgroundColor: ce(T, 0.02)
4632
+ };
4633
+ })(), w = m ? {
4634
+ "&:hover": {
4635
+ cursor: "default",
4636
+ transform: m.escalar ? "scale(1.02)" : m.elevar ? "translateY(-4px)" : void 0,
4637
+ boxShadow: m.elevar ? g.shadows[8] : void 0
4638
+ }
4639
+ } : {};
4640
+ return /* @__PURE__ */ v(
4641
+ N,
4642
+ {
4643
+ ref: c,
4644
+ sx: [
4645
+ O,
4646
+ _,
4647
+ R,
4648
+ w,
4649
+ ...Array.isArray(u) ? u : u ? [u] : []
4650
+ ],
4651
+ ...b,
4652
+ children: y
4653
+ }
4654
+ );
4655
+ });
4656
+ ga.displayName = "CodeplexCaja";
4657
+ const ya = (e) => e ? {
4658
+ fila: "row",
4659
+ columna: "column",
4660
+ "fila-reversa": "row-reverse",
4661
+ "columna-reversa": "column-reverse"
4662
+ }[e] : void 0, ba = (e) => e ? {
4663
+ envolver: "wrap",
4664
+ "no-envolver": "nowrap",
4665
+ "envolver-reversa": "wrap-reverse"
4666
+ }[e] : void 0, va = (e) => e ? {
4667
+ inicio: "flex-start",
4668
+ centro: "center",
4669
+ fin: "flex-end",
4670
+ estirar: "stretch",
4671
+ "linea-base": "baseline"
4672
+ }[e] : void 0, xa = (e) => e ? {
4673
+ inicio: "flex-start",
4674
+ centro: "center",
4675
+ fin: "flex-end",
4676
+ entre: "space-between",
4677
+ alrededor: "space-around",
4678
+ uniforme: "space-evenly"
4679
+ }[e] : void 0, Sa = zt(({
4680
+ contenedor: e,
4681
+ elemento: t,
4682
+ espaciado: r,
4683
+ direccion: n,
4684
+ envolver: o,
4685
+ alineacion: i,
4686
+ justificacion: l,
4687
+ centrado: s,
4688
+ sx: f,
4689
+ component: d,
4690
+ children: p,
4691
+ tamano: m,
4692
+ xs: u,
4693
+ sm: y,
4694
+ md: b,
4695
+ lg: c,
4696
+ xl: g,
4697
+ ...O
4698
+ }, _) => {
4699
+ const R = s ? "center" : va(i), w = s ? "center" : xa(l), x = m ?? (u !== void 0 || y !== void 0 || b !== void 0 || c !== void 0 || g !== void 0 ? { xs: u, sm: y, md: b, lg: c, xl: g } : void 0);
4700
+ return /* @__PURE__ */ v(
4701
+ fn,
4702
+ {
4703
+ ref: _,
4704
+ container: e,
4705
+ spacing: r,
4706
+ direction: ya(n),
4707
+ wrap: ba(o),
4708
+ alignItems: R,
4709
+ justifyContent: w,
4710
+ component: d,
4711
+ size: x,
4712
+ sx: f,
4713
+ ...O,
4714
+ children: p
4715
+ }
4716
+ );
4717
+ });
4718
+ Sa.displayName = "CodeplexCuadricula";
4719
+ const Rt = {
4720
+ fila: "row",
4721
+ columna: "column",
4722
+ "fila-reversa": "row-reverse",
4723
+ "columna-reversa": "column-reverse",
4724
+ row: "row",
4725
+ column: "column",
4726
+ "row-reverse": "row-reverse",
4727
+ "column-reverse": "column-reverse"
4728
+ }, Ca = (e) => {
4729
+ if (e) {
4730
+ if (typeof e == "string")
4731
+ return Rt[e] ?? "column";
4732
+ if (Array.isArray(e))
4733
+ return e.map((t) => Rt[t] ?? "column");
4734
+ if (typeof e == "object") {
4735
+ const t = {};
4736
+ for (const r in e)
4737
+ t[r] = Rt[e[r]] ?? "column";
4738
+ return t;
4739
+ }
4740
+ }
4741
+ }, wa = (e) => e ? {
4742
+ inicio: "flex-start",
4743
+ centro: "center",
4744
+ fin: "flex-end",
4745
+ estirar: "stretch",
4746
+ "linea-base": "baseline"
4747
+ }[e] : void 0, Ea = (e) => e ? {
4748
+ inicio: "flex-start",
4749
+ centro: "center",
4750
+ fin: "flex-end",
4751
+ entre: "space-between",
4752
+ alrededor: "space-around",
4753
+ uniforme: "space-evenly"
4754
+ }[e] : void 0, Ta = zt(({
4755
+ direccion: e = "columna",
4756
+ espaciado: t = 0,
4757
+ alineacion: r,
4758
+ justificacion: n,
4759
+ divisor: o,
4760
+ centrado: i,
4761
+ entre: l,
4762
+ sx: s,
4763
+ children: f,
4764
+ ...d
4765
+ }, p) => {
4766
+ let m = wa(r), u = Ea(n);
4767
+ i && (m = "center", u = "center"), l && (u = "space-between");
4768
+ const y = o === !0 ? /* @__PURE__ */ v(Pt, { flexItem: !0 }) : o || void 0;
4769
+ return /* @__PURE__ */ v(
4770
+ pn,
4771
+ {
4772
+ ref: p,
4773
+ direction: Ca(e),
4774
+ spacing: t,
4775
+ alignItems: m,
4776
+ justifyContent: u,
4777
+ divider: y ?? void 0,
4778
+ sx: [...Array.isArray(s) ? s : s ? [s] : []],
4779
+ ...d,
4780
+ children: f
4781
+ }
4782
+ );
4783
+ });
4784
+ Ta.displayName = "CodeplexPila";
4785
+ const $a = {
4786
+ estandar: "standard",
4787
+ mosaico: "quilted",
4788
+ mamposteria: "masonry",
4789
+ tejido: "woven"
4790
+ }, Aa = {
4791
+ arriba: "top",
4792
+ abajo: "below"
4793
+ }, za = ({ columnas: e, altoFila: t, espacio: r, variante: n = "estandar", ...o }) => /* @__PURE__ */ v(mn, { cols: e, rowHeight: t, gap: r, variant: $a[n], ...o }), La = ({ columnas: e, filas: t, ...r }) => /* @__PURE__ */ v(hn, { cols: e, rows: t, ...r }), Wa = ({ titulo: e, subtitulo: t, iconoAccion: r, posicion: n, ...o }) => /* @__PURE__ */ v(
4794
+ gn,
4795
+ {
4796
+ title: e,
4797
+ subtitle: t,
4798
+ actionIcon: r,
4799
+ position: n ? Aa[n] : void 0,
4800
+ ...o
4801
+ }
4802
+ ), Oa = ({
4803
+ menu: e,
4804
+ usuario: t,
4805
+ sidebarProps: r,
4806
+ headerProps: n,
4807
+ footerProps: o,
4808
+ titulo: i = "Codeplex",
4809
+ logo: l,
4810
+ children: s,
4811
+ alNavegar: f
4812
+ }) => {
4813
+ const [d, p] = De(!1), m = r?.colapsado ?? d, u = r?.alAlternar ?? p, y = r?.ancho ?? 260, c = m ? 80 : y;
4814
+ return /* @__PURE__ */ ee(N, { sx: {
4815
+ display: "flex",
4816
+ minHeight: "100vh",
4817
+ bgcolor: "background.default",
4818
+ color: "text.primary"
4819
+ }, children: [
4820
+ /* @__PURE__ */ v(
4821
+ pa,
4822
+ {
4823
+ elementos: e,
4824
+ usuario: t,
4825
+ logo: l,
4826
+ textoLogo: i,
4827
+ colapsado: m,
4828
+ alAlternar: u,
4829
+ alNavegar: f,
4830
+ ...r
4831
+ }
4832
+ ),
4833
+ /* @__PURE__ */ ee(N, { sx: {
4834
+ flexGrow: 1,
4835
+ display: "flex",
4836
+ flexDirection: "column",
4837
+ transition: "all 0.3s ease-in-out",
4838
+ ml: {
4839
+ xs: 0,
4840
+ md: `${c}px`
4841
+ },
4842
+ width: {
4843
+ xs: "100%",
4844
+ md: `calc(100% - ${c}px)`
4845
+ }
4846
+ }, children: [
4847
+ /* @__PURE__ */ v(
4848
+ oa,
4849
+ {
4850
+ titulo: i,
4851
+ usuario: t,
4852
+ barraLateralColapsada: m,
4853
+ ...n
4854
+ }
4855
+ ),
4856
+ /* @__PURE__ */ v(
4857
+ N,
4858
+ {
4859
+ component: "main",
4860
+ sx: {
4861
+ flexGrow: 1,
4862
+ p: { xs: 2, md: 4 },
4863
+ pt: { xs: 10, md: 12 },
4864
+ pb: { xs: 10, md: 10 }
4865
+ },
4866
+ children: s
4867
+ }
4868
+ ),
4869
+ /* @__PURE__ */ v(
4870
+ ea,
4871
+ {
4872
+ barraLateralColapsada: m,
4873
+ ...o
4874
+ }
4875
+ )
4876
+ ] })
4877
+ ] });
4878
+ }, Va = Oa;
4879
+ export {
4880
+ Ma as CodeplexAcordeon,
4881
+ Wa as CodeplexBarraElementoListaImagenes,
4882
+ pa as CodeplexBarraLateral,
4883
+ oa as CodeplexCabecera,
4884
+ ga as CodeplexCaja,
4885
+ ja as CodeplexColumna,
4886
+ Da as CodeplexContenedor,
4887
+ Sa as CodeplexCuadricula,
4888
+ La as CodeplexElementoListaImagenes,
4889
+ Va as CodeplexEsqueleto,
4890
+ Oa as CodeplexEsqueletoPagina,
4891
+ Ba as CodeplexFila,
4892
+ za as CodeplexListaImagenes,
4893
+ ea as CodeplexPiePagina,
4894
+ Ta as CodeplexPila
4895
+ };