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