@codeplex-sac/tema 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +33 -1
- package/index.d.ts +1 -0
- package/index.js +3062 -83
- package/lib/alternador-tema/alternador-tema.d.ts +15 -0
- package/lib/alternador-tema/index.d.ts +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsx as J, jsxs as Le } from "react/jsx-runtime";
|
|
2
|
+
import * as ht from "react";
|
|
3
|
+
import yr, { createContext as br, useState as vr, useCallback as Ve, useEffect as We, useMemo as Sr } from "react";
|
|
4
|
+
import { createTheme as wt, ThemeProvider as Er, CssBaseline as Cr, Box as xe, Typography as Be } from "@mui/material";
|
|
5
|
+
import { flushSync as Tr } from "react-dom";
|
|
6
|
+
import { unstable_createGetCssVar as xr, createSpacing as wr, useTheme as $r } from "@mui/system";
|
|
7
|
+
const yt = br(void 0), $t = "codeplex-theme", Or = ({
|
|
5
8
|
children: e,
|
|
6
9
|
temaPorDefecto: t = "light"
|
|
7
10
|
}) => {
|
|
8
|
-
const [r, n] =
|
|
11
|
+
const [r, n] = vr(() => {
|
|
9
12
|
if (typeof window < "u") {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
return
|
|
13
|
+
const c = localStorage.getItem($t);
|
|
14
|
+
if (c === "light" || c === "dark")
|
|
15
|
+
return c;
|
|
13
16
|
if (window.matchMedia("(prefers-color-scheme: dark)").matches)
|
|
14
17
|
return "dark";
|
|
15
18
|
}
|
|
16
19
|
return t;
|
|
17
|
-
}), o =
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
+
}), o = Ve((c) => {
|
|
21
|
+
const f = document.documentElement;
|
|
22
|
+
f.classList.remove("light", "dark"), f.classList.add(c), localStorage.setItem($t, c);
|
|
20
23
|
}, []);
|
|
21
|
-
|
|
24
|
+
We(() => {
|
|
22
25
|
o(r);
|
|
23
26
|
}, [r, o]);
|
|
24
|
-
const a =
|
|
25
|
-
n(
|
|
26
|
-
}, []), s =
|
|
27
|
-
n((
|
|
27
|
+
const a = Ve((c) => {
|
|
28
|
+
n(c);
|
|
29
|
+
}, []), s = Ve(() => {
|
|
30
|
+
n((c) => c === "light" ? "dark" : "light");
|
|
28
31
|
}, []);
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
},
|
|
31
|
-
const e =
|
|
32
|
+
return /* @__PURE__ */ J(yt.Provider, { value: { tema: r, alternarTema: s, establecerTema: a }, children: e });
|
|
33
|
+
}, oi = ({ defaultTheme: e, ...t }) => /* @__PURE__ */ J(Or, { temaPorDefecto: e, ...t }), ii = yt, bt = () => {
|
|
34
|
+
const e = yr.useContext(yt);
|
|
32
35
|
if (!e)
|
|
33
36
|
throw new Error("usarTema debe ser usado dentro de un CodeplexProveedorTema");
|
|
34
37
|
return e;
|
|
35
|
-
},
|
|
38
|
+
}, ai = bt, si = ({
|
|
36
39
|
children: e,
|
|
37
40
|
sobrescrituraTema: t
|
|
38
41
|
}) => {
|
|
39
|
-
const { tema: r } =
|
|
42
|
+
const { tema: r } = bt(), n = Sr(() => {
|
|
40
43
|
const o = r === "dark", a = {
|
|
41
44
|
palette: {
|
|
42
45
|
mode: r,
|
|
@@ -83,26 +86,3001 @@ const f = C(void 0), h = "codeplex-theme", D = ({
|
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
};
|
|
86
|
-
return t ?
|
|
89
|
+
return t ? wt(a, t) : wt(a);
|
|
87
90
|
}, [r, t]);
|
|
88
|
-
return
|
|
91
|
+
return We(() => {
|
|
89
92
|
const o = document.documentElement, a = n.palette;
|
|
90
93
|
o.style.setProperty("--cp-primary-main", a.primary.main), o.style.setProperty("--cp-bg-default", a.background.default), o.style.setProperty("--cp-bg-paper", a.background.paper), o.style.setProperty("--cp-text-primary", a.text.primary), o.style.setProperty("--cp-text-secondary", a.text.secondary), o.style.setProperty("--cp-divider", a.divider);
|
|
91
|
-
}, [n]),
|
|
94
|
+
}, [n]), We(() => {
|
|
92
95
|
const o = "codeplex-google-resources";
|
|
93
96
|
if (!document.getElementById(o)) {
|
|
94
97
|
const a = document.createElement("link");
|
|
95
98
|
a.id = o, a.rel = "stylesheet", a.href = "https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200", document.head.appendChild(a);
|
|
96
99
|
}
|
|
97
|
-
}, []), /* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
100
|
+
}, []), /* @__PURE__ */ Le(Er, { theme: n, children: [
|
|
101
|
+
/* @__PURE__ */ J(Cr, {}),
|
|
99
102
|
e
|
|
100
103
|
] });
|
|
101
104
|
};
|
|
102
|
-
function
|
|
105
|
+
function ge(e, ...t) {
|
|
106
|
+
const r = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
107
|
+
return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
|
|
108
|
+
}
|
|
109
|
+
const _r = "$$material", Ar = (e) => {
|
|
110
|
+
const t = Object.keys(e).map((r) => ({
|
|
111
|
+
key: r,
|
|
112
|
+
val: e[r]
|
|
113
|
+
})) || [];
|
|
114
|
+
return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => ({
|
|
115
|
+
...r,
|
|
116
|
+
[n.key]: n.val
|
|
117
|
+
}), {});
|
|
118
|
+
};
|
|
119
|
+
function Pr(e) {
|
|
120
|
+
const {
|
|
121
|
+
// The breakpoint **start** at this value.
|
|
122
|
+
// For instance with the first breakpoint xs: [xs, sm).
|
|
123
|
+
values: t = {
|
|
124
|
+
xs: 0,
|
|
125
|
+
// phone
|
|
126
|
+
sm: 600,
|
|
127
|
+
// tablet
|
|
128
|
+
md: 900,
|
|
129
|
+
// small laptop
|
|
130
|
+
lg: 1200,
|
|
131
|
+
// desktop
|
|
132
|
+
xl: 1536
|
|
133
|
+
// large screen
|
|
134
|
+
},
|
|
135
|
+
unit: r = "px",
|
|
136
|
+
step: n = 5,
|
|
137
|
+
...o
|
|
138
|
+
} = e, a = Ar(t), s = Object.keys(a);
|
|
139
|
+
function c(m) {
|
|
140
|
+
return `@media (min-width:${typeof t[m] == "number" ? t[m] : m}${r})`;
|
|
141
|
+
}
|
|
142
|
+
function f(m) {
|
|
143
|
+
return `@media (max-width:${(typeof t[m] == "number" ? t[m] : m) - n / 100}${r})`;
|
|
144
|
+
}
|
|
145
|
+
function d(m, v) {
|
|
146
|
+
const b = s.indexOf(v);
|
|
147
|
+
return `@media (min-width:${typeof t[m] == "number" ? t[m] : m}${r}) and (max-width:${(b !== -1 && typeof t[s[b]] == "number" ? t[s[b]] : v) - n / 100}${r})`;
|
|
148
|
+
}
|
|
149
|
+
function g(m) {
|
|
150
|
+
return s.indexOf(m) + 1 < s.length ? d(m, s[s.indexOf(m) + 1]) : c(m);
|
|
151
|
+
}
|
|
152
|
+
function p(m) {
|
|
153
|
+
const v = s.indexOf(m);
|
|
154
|
+
return v === 0 ? c(s[1]) : v === s.length - 1 ? f(s[v]) : d(m, s[s.indexOf(m) + 1]).replace("@media", "@media not all and");
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
keys: s,
|
|
158
|
+
values: a,
|
|
159
|
+
up: c,
|
|
160
|
+
down: f,
|
|
161
|
+
between: d,
|
|
162
|
+
only: g,
|
|
163
|
+
not: p,
|
|
164
|
+
unit: r,
|
|
165
|
+
...o
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
function Rr(e) {
|
|
169
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
170
|
+
}
|
|
171
|
+
var De = { exports: {} }, G = {};
|
|
172
|
+
var Ot;
|
|
173
|
+
function kr() {
|
|
174
|
+
if (Ot) return G;
|
|
175
|
+
Ot = 1;
|
|
176
|
+
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"), a = /* @__PURE__ */ Symbol.for("react.consumer"), s = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), f = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), g = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), m = /* @__PURE__ */ Symbol.for("react.view_transition"), v = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
177
|
+
function b(l) {
|
|
178
|
+
if (typeof l == "object" && l !== null) {
|
|
179
|
+
var E = l.$$typeof;
|
|
180
|
+
switch (E) {
|
|
181
|
+
case e:
|
|
182
|
+
switch (l = l.type, l) {
|
|
183
|
+
case r:
|
|
184
|
+
case o:
|
|
185
|
+
case n:
|
|
186
|
+
case f:
|
|
187
|
+
case d:
|
|
188
|
+
case m:
|
|
189
|
+
return l;
|
|
190
|
+
default:
|
|
191
|
+
switch (l = l && l.$$typeof, l) {
|
|
192
|
+
case s:
|
|
193
|
+
case c:
|
|
194
|
+
case p:
|
|
195
|
+
case g:
|
|
196
|
+
return l;
|
|
197
|
+
case a:
|
|
198
|
+
return l;
|
|
199
|
+
default:
|
|
200
|
+
return E;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
case t:
|
|
204
|
+
return E;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return G.ContextConsumer = a, G.ContextProvider = s, G.Element = e, G.ForwardRef = c, G.Fragment = r, G.Lazy = p, G.Memo = g, G.Portal = t, G.Profiler = o, G.StrictMode = n, G.Suspense = f, G.SuspenseList = d, G.isContextConsumer = function(l) {
|
|
209
|
+
return b(l) === a;
|
|
210
|
+
}, G.isContextProvider = function(l) {
|
|
211
|
+
return b(l) === s;
|
|
212
|
+
}, G.isElement = function(l) {
|
|
213
|
+
return typeof l == "object" && l !== null && l.$$typeof === e;
|
|
214
|
+
}, G.isForwardRef = function(l) {
|
|
215
|
+
return b(l) === c;
|
|
216
|
+
}, G.isFragment = function(l) {
|
|
217
|
+
return b(l) === r;
|
|
218
|
+
}, G.isLazy = function(l) {
|
|
219
|
+
return b(l) === p;
|
|
220
|
+
}, G.isMemo = function(l) {
|
|
221
|
+
return b(l) === g;
|
|
222
|
+
}, G.isPortal = function(l) {
|
|
223
|
+
return b(l) === t;
|
|
224
|
+
}, G.isProfiler = function(l) {
|
|
225
|
+
return b(l) === o;
|
|
226
|
+
}, G.isStrictMode = function(l) {
|
|
227
|
+
return b(l) === n;
|
|
228
|
+
}, G.isSuspense = function(l) {
|
|
229
|
+
return b(l) === f;
|
|
230
|
+
}, G.isSuspenseList = function(l) {
|
|
231
|
+
return b(l) === d;
|
|
232
|
+
}, G.isValidElementType = function(l) {
|
|
233
|
+
return typeof l == "string" || typeof l == "function" || l === r || l === o || l === n || l === f || l === d || typeof l == "object" && l !== null && (l.$$typeof === p || l.$$typeof === g || l.$$typeof === s || l.$$typeof === a || l.$$typeof === c || l.$$typeof === v || l.getModuleId !== void 0);
|
|
234
|
+
}, G.typeOf = b, G;
|
|
235
|
+
}
|
|
236
|
+
var Y = {};
|
|
237
|
+
var _t;
|
|
238
|
+
function Ir() {
|
|
239
|
+
return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
240
|
+
function e(l) {
|
|
241
|
+
if (typeof l == "object" && l !== null) {
|
|
242
|
+
var E = l.$$typeof;
|
|
243
|
+
switch (E) {
|
|
244
|
+
case t:
|
|
245
|
+
switch (l = l.type, l) {
|
|
246
|
+
case n:
|
|
247
|
+
case a:
|
|
248
|
+
case o:
|
|
249
|
+
case d:
|
|
250
|
+
case g:
|
|
251
|
+
case v:
|
|
252
|
+
return l;
|
|
253
|
+
default:
|
|
254
|
+
switch (l = l && l.$$typeof, l) {
|
|
255
|
+
case c:
|
|
256
|
+
case f:
|
|
257
|
+
case m:
|
|
258
|
+
case p:
|
|
259
|
+
return l;
|
|
260
|
+
case s:
|
|
261
|
+
return l;
|
|
262
|
+
default:
|
|
263
|
+
return E;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
case r:
|
|
267
|
+
return E;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
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"), a = /* @__PURE__ */ Symbol.for("react.profiler"), s = /* @__PURE__ */ Symbol.for("react.consumer"), c = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), g = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), v = /* @__PURE__ */ Symbol.for("react.view_transition"), b = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
272
|
+
Y.ContextConsumer = s, Y.ContextProvider = c, Y.Element = t, Y.ForwardRef = f, Y.Fragment = n, Y.Lazy = m, Y.Memo = p, Y.Portal = r, Y.Profiler = a, Y.StrictMode = o, Y.Suspense = d, Y.SuspenseList = g, Y.isContextConsumer = function(l) {
|
|
273
|
+
return e(l) === s;
|
|
274
|
+
}, Y.isContextProvider = function(l) {
|
|
275
|
+
return e(l) === c;
|
|
276
|
+
}, Y.isElement = function(l) {
|
|
277
|
+
return typeof l == "object" && l !== null && l.$$typeof === t;
|
|
278
|
+
}, Y.isForwardRef = function(l) {
|
|
279
|
+
return e(l) === f;
|
|
280
|
+
}, Y.isFragment = function(l) {
|
|
281
|
+
return e(l) === n;
|
|
282
|
+
}, Y.isLazy = function(l) {
|
|
283
|
+
return e(l) === m;
|
|
284
|
+
}, Y.isMemo = function(l) {
|
|
285
|
+
return e(l) === p;
|
|
286
|
+
}, Y.isPortal = function(l) {
|
|
287
|
+
return e(l) === r;
|
|
288
|
+
}, Y.isProfiler = function(l) {
|
|
289
|
+
return e(l) === a;
|
|
290
|
+
}, Y.isStrictMode = function(l) {
|
|
291
|
+
return e(l) === o;
|
|
292
|
+
}, Y.isSuspense = function(l) {
|
|
293
|
+
return e(l) === d;
|
|
294
|
+
}, Y.isSuspenseList = function(l) {
|
|
295
|
+
return e(l) === g;
|
|
296
|
+
}, Y.isValidElementType = function(l) {
|
|
297
|
+
return typeof l == "string" || typeof l == "function" || l === n || l === a || l === o || l === d || l === g || typeof l == "object" && l !== null && (l.$$typeof === m || l.$$typeof === p || l.$$typeof === c || l.$$typeof === s || l.$$typeof === f || l.$$typeof === b || l.getModuleId !== void 0);
|
|
298
|
+
}, Y.typeOf = e;
|
|
299
|
+
})()), Y;
|
|
300
|
+
}
|
|
301
|
+
var At;
|
|
302
|
+
function Mr() {
|
|
303
|
+
return At || (At = 1, process.env.NODE_ENV === "production" ? De.exports = /* @__PURE__ */ kr() : De.exports = /* @__PURE__ */ Ir()), De.exports;
|
|
304
|
+
}
|
|
305
|
+
var rr = /* @__PURE__ */ Mr();
|
|
306
|
+
function me(e) {
|
|
307
|
+
if (typeof e != "object" || e === null)
|
|
308
|
+
return !1;
|
|
309
|
+
const t = Object.getPrototypeOf(e);
|
|
310
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
311
|
+
}
|
|
312
|
+
function nr(e) {
|
|
313
|
+
if (/* @__PURE__ */ ht.isValidElement(e) || rr.isValidElementType(e) || !me(e))
|
|
314
|
+
return e;
|
|
315
|
+
const t = {};
|
|
316
|
+
return Object.keys(e).forEach((r) => {
|
|
317
|
+
t[r] = nr(e[r]);
|
|
318
|
+
}), t;
|
|
319
|
+
}
|
|
320
|
+
function oe(e, t, r = {
|
|
321
|
+
clone: !0
|
|
322
|
+
}) {
|
|
323
|
+
const n = r.clone ? {
|
|
324
|
+
...e
|
|
325
|
+
} : e;
|
|
326
|
+
return me(e) && me(t) && Object.keys(t).forEach((o) => {
|
|
327
|
+
/* @__PURE__ */ ht.isValidElement(t[o]) || rr.isValidElementType(t[o]) ? n[o] = t[o] : me(t[o]) && // Avoid prototype pollution
|
|
328
|
+
Object.prototype.hasOwnProperty.call(e, o) && me(e[o]) ? n[o] = oe(e[o], t[o], r) : r.clone ? n[o] = me(t[o]) ? nr(t[o]) : t[o] : n[o] = t[o];
|
|
329
|
+
}), n;
|
|
330
|
+
}
|
|
331
|
+
function Br(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
332
|
+
return Math.max(t, Math.min(e, r));
|
|
333
|
+
}
|
|
334
|
+
function vt(e, t = 0, r = 1) {
|
|
335
|
+
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), Br(e, t, r);
|
|
336
|
+
}
|
|
337
|
+
function Dr(e) {
|
|
338
|
+
e = e.slice(1);
|
|
339
|
+
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
340
|
+
let r = e.match(t);
|
|
341
|
+
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(", ")})` : "";
|
|
342
|
+
}
|
|
343
|
+
function he(e) {
|
|
344
|
+
if (e.type)
|
|
345
|
+
return e;
|
|
346
|
+
if (e.charAt(0) === "#")
|
|
347
|
+
return he(Dr(e));
|
|
348
|
+
const t = e.indexOf("("), r = e.substring(0, t);
|
|
349
|
+
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
|
|
350
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
351
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ge(9, e));
|
|
352
|
+
let n = e.substring(t + 1, e.length - 1), o;
|
|
353
|
+
if (r === "color") {
|
|
354
|
+
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))
|
|
355
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
356
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ge(10, o));
|
|
357
|
+
} else
|
|
358
|
+
n = n.split(",");
|
|
359
|
+
return n = n.map((a) => parseFloat(a)), {
|
|
360
|
+
type: r,
|
|
361
|
+
values: n,
|
|
362
|
+
colorSpace: o
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
const Nr = (e) => {
|
|
366
|
+
const t = he(e);
|
|
367
|
+
return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
|
|
368
|
+
}, _e = (e, t) => {
|
|
369
|
+
try {
|
|
370
|
+
return Nr(e);
|
|
371
|
+
} catch {
|
|
372
|
+
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
function Ue(e) {
|
|
376
|
+
const {
|
|
377
|
+
type: t,
|
|
378
|
+
colorSpace: r
|
|
379
|
+
} = e;
|
|
380
|
+
let {
|
|
381
|
+
values: n
|
|
382
|
+
} = e;
|
|
383
|
+
return t.includes("rgb") ? n = n.map((o, a) => a < 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})`;
|
|
384
|
+
}
|
|
385
|
+
function or(e) {
|
|
386
|
+
e = he(e);
|
|
387
|
+
const {
|
|
388
|
+
values: t
|
|
389
|
+
} = e, r = t[0], n = t[1] / 100, o = t[2] / 100, a = n * Math.min(o, 1 - o), s = (d, g = (d + r / 30) % 12) => o - a * Math.max(Math.min(g - 3, 9 - g, 1), -1);
|
|
390
|
+
let c = "rgb";
|
|
391
|
+
const f = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
|
|
392
|
+
return e.type === "hsla" && (c += "a", f.push(t[3])), Ue({
|
|
393
|
+
type: c,
|
|
394
|
+
values: f
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
function pt(e) {
|
|
398
|
+
e = he(e);
|
|
399
|
+
let t = e.type === "hsl" || e.type === "hsla" ? he(or(e)).values : e.values;
|
|
400
|
+
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));
|
|
401
|
+
}
|
|
402
|
+
function Pt(e, t) {
|
|
403
|
+
const r = pt(e), n = pt(t);
|
|
404
|
+
return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
|
|
405
|
+
}
|
|
406
|
+
function ir(e, t) {
|
|
407
|
+
return e = he(e), t = vt(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Ue(e);
|
|
408
|
+
}
|
|
409
|
+
function be(e, t, r) {
|
|
410
|
+
try {
|
|
411
|
+
return ir(e, t);
|
|
412
|
+
} catch {
|
|
413
|
+
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
function Ge(e, t) {
|
|
417
|
+
if (e = he(e), t = vt(t), e.type.includes("hsl"))
|
|
418
|
+
e.values[2] *= 1 - t;
|
|
419
|
+
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
420
|
+
for (let r = 0; r < 3; r += 1)
|
|
421
|
+
e.values[r] *= 1 - t;
|
|
422
|
+
return Ue(e);
|
|
423
|
+
}
|
|
424
|
+
function z(e, t, r) {
|
|
425
|
+
try {
|
|
426
|
+
return Ge(e, t);
|
|
427
|
+
} catch {
|
|
428
|
+
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function Ye(e, t) {
|
|
432
|
+
if (e = he(e), t = vt(t), e.type.includes("hsl"))
|
|
433
|
+
e.values[2] += (100 - e.values[2]) * t;
|
|
434
|
+
else if (e.type.includes("rgb"))
|
|
435
|
+
for (let r = 0; r < 3; r += 1)
|
|
436
|
+
e.values[r] += (255 - e.values[r]) * t;
|
|
437
|
+
else if (e.type.includes("color"))
|
|
438
|
+
for (let r = 0; r < 3; r += 1)
|
|
439
|
+
e.values[r] += (1 - e.values[r]) * t;
|
|
440
|
+
return Ue(e);
|
|
441
|
+
}
|
|
442
|
+
function U(e, t, r) {
|
|
443
|
+
try {
|
|
444
|
+
return Ye(e, t);
|
|
445
|
+
} catch {
|
|
446
|
+
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
function Fr(e, t = 0.15) {
|
|
450
|
+
return pt(e) > 0.5 ? Ge(e, t) : Ye(e, t);
|
|
451
|
+
}
|
|
452
|
+
function Ne(e, t, r) {
|
|
453
|
+
try {
|
|
454
|
+
return Fr(e, t);
|
|
455
|
+
} catch {
|
|
456
|
+
return e;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
const Re = {
|
|
460
|
+
black: "#000",
|
|
461
|
+
white: "#fff"
|
|
462
|
+
}, jr = {
|
|
463
|
+
50: "#fafafa",
|
|
464
|
+
100: "#f5f5f5",
|
|
465
|
+
200: "#eeeeee",
|
|
466
|
+
300: "#e0e0e0",
|
|
467
|
+
400: "#bdbdbd",
|
|
468
|
+
500: "#9e9e9e",
|
|
469
|
+
600: "#757575",
|
|
470
|
+
700: "#616161",
|
|
471
|
+
800: "#424242",
|
|
472
|
+
900: "#212121",
|
|
473
|
+
A100: "#f5f5f5",
|
|
474
|
+
A200: "#eeeeee",
|
|
475
|
+
A400: "#bdbdbd",
|
|
476
|
+
A700: "#616161"
|
|
477
|
+
}, ve = {
|
|
478
|
+
50: "#f3e5f5",
|
|
479
|
+
200: "#ce93d8",
|
|
480
|
+
300: "#ba68c8",
|
|
481
|
+
400: "#ab47bc",
|
|
482
|
+
500: "#9c27b0",
|
|
483
|
+
700: "#7b1fa2"
|
|
484
|
+
}, Se = {
|
|
485
|
+
300: "#e57373",
|
|
486
|
+
400: "#ef5350",
|
|
487
|
+
500: "#f44336",
|
|
488
|
+
700: "#d32f2f",
|
|
489
|
+
800: "#c62828"
|
|
490
|
+
}, $e = {
|
|
491
|
+
300: "#ffb74d",
|
|
492
|
+
400: "#ffa726",
|
|
493
|
+
500: "#ff9800",
|
|
494
|
+
700: "#f57c00",
|
|
495
|
+
900: "#e65100"
|
|
496
|
+
}, Ee = {
|
|
497
|
+
50: "#e3f2fd",
|
|
498
|
+
200: "#90caf9",
|
|
499
|
+
400: "#42a5f5",
|
|
500
|
+
700: "#1976d2",
|
|
501
|
+
800: "#1565c0"
|
|
502
|
+
}, Ce = {
|
|
503
|
+
300: "#4fc3f7",
|
|
504
|
+
400: "#29b6f6",
|
|
505
|
+
500: "#03a9f4",
|
|
506
|
+
700: "#0288d1",
|
|
507
|
+
900: "#01579b"
|
|
508
|
+
}, Te = {
|
|
509
|
+
300: "#81c784",
|
|
510
|
+
400: "#66bb6a",
|
|
511
|
+
500: "#4caf50",
|
|
512
|
+
700: "#388e3c",
|
|
513
|
+
800: "#2e7d32",
|
|
514
|
+
900: "#1b5e20"
|
|
515
|
+
};
|
|
516
|
+
function ar() {
|
|
517
|
+
return {
|
|
518
|
+
// The colors used to style the text.
|
|
519
|
+
text: {
|
|
520
|
+
// The most important text.
|
|
521
|
+
primary: "rgba(0, 0, 0, 0.87)",
|
|
522
|
+
// Secondary text.
|
|
523
|
+
secondary: "rgba(0, 0, 0, 0.6)",
|
|
524
|
+
// Disabled text have even lower visual prominence.
|
|
525
|
+
disabled: "rgba(0, 0, 0, 0.38)"
|
|
526
|
+
},
|
|
527
|
+
// The color used to divide different elements.
|
|
528
|
+
divider: "rgba(0, 0, 0, 0.12)",
|
|
529
|
+
// The background colors used to style the surfaces.
|
|
530
|
+
// Consistency between these values is important.
|
|
531
|
+
background: {
|
|
532
|
+
paper: Re.white,
|
|
533
|
+
default: Re.white
|
|
534
|
+
},
|
|
535
|
+
// The colors used to style the action elements.
|
|
536
|
+
action: {
|
|
537
|
+
// The color of an active action like an icon button.
|
|
538
|
+
active: "rgba(0, 0, 0, 0.54)",
|
|
539
|
+
// The color of an hovered action.
|
|
540
|
+
hover: "rgba(0, 0, 0, 0.04)",
|
|
541
|
+
hoverOpacity: 0.04,
|
|
542
|
+
// The color of a selected action.
|
|
543
|
+
selected: "rgba(0, 0, 0, 0.08)",
|
|
544
|
+
selectedOpacity: 0.08,
|
|
545
|
+
// The color of a disabled action.
|
|
546
|
+
disabled: "rgba(0, 0, 0, 0.26)",
|
|
547
|
+
// The background color of a disabled action.
|
|
548
|
+
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
549
|
+
disabledOpacity: 0.38,
|
|
550
|
+
focus: "rgba(0, 0, 0, 0.12)",
|
|
551
|
+
focusOpacity: 0.12,
|
|
552
|
+
activatedOpacity: 0.12
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
const sr = ar();
|
|
557
|
+
function cr() {
|
|
558
|
+
return {
|
|
559
|
+
text: {
|
|
560
|
+
primary: Re.white,
|
|
561
|
+
secondary: "rgba(255, 255, 255, 0.7)",
|
|
562
|
+
disabled: "rgba(255, 255, 255, 0.5)",
|
|
563
|
+
icon: "rgba(255, 255, 255, 0.5)"
|
|
564
|
+
},
|
|
565
|
+
divider: "rgba(255, 255, 255, 0.12)",
|
|
566
|
+
background: {
|
|
567
|
+
paper: "#121212",
|
|
568
|
+
default: "#121212"
|
|
569
|
+
},
|
|
570
|
+
action: {
|
|
571
|
+
active: Re.white,
|
|
572
|
+
hover: "rgba(255, 255, 255, 0.08)",
|
|
573
|
+
hoverOpacity: 0.08,
|
|
574
|
+
selected: "rgba(255, 255, 255, 0.16)",
|
|
575
|
+
selectedOpacity: 0.16,
|
|
576
|
+
disabled: "rgba(255, 255, 255, 0.3)",
|
|
577
|
+
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
578
|
+
disabledOpacity: 0.38,
|
|
579
|
+
focus: "rgba(255, 255, 255, 0.12)",
|
|
580
|
+
focusOpacity: 0.12,
|
|
581
|
+
activatedOpacity: 0.24
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
const mt = cr();
|
|
586
|
+
function Rt(e, t, r, n) {
|
|
587
|
+
const o = n.light || n, a = n.dark || n * 1.5;
|
|
588
|
+
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = Ye(e.main, o) : t === "dark" && (e.dark = Ge(e.main, a)));
|
|
589
|
+
}
|
|
590
|
+
function kt(e, t, r, n, o) {
|
|
591
|
+
const a = o.light || o, s = o.dark || o * 1.5;
|
|
592
|
+
t[r] || (t.hasOwnProperty(n) ? t[r] = t[n] : r === "light" ? t.light = `color-mix(in ${e}, ${t.main}, #fff ${(a * 100).toFixed(0)}%)` : r === "dark" && (t.dark = `color-mix(in ${e}, ${t.main}, #000 ${(s * 100).toFixed(0)}%)`));
|
|
593
|
+
}
|
|
594
|
+
function Lr(e = "light") {
|
|
595
|
+
return e === "dark" ? {
|
|
596
|
+
main: Ee[200],
|
|
597
|
+
light: Ee[50],
|
|
598
|
+
dark: Ee[400]
|
|
599
|
+
} : {
|
|
600
|
+
main: Ee[700],
|
|
601
|
+
light: Ee[400],
|
|
602
|
+
dark: Ee[800]
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
function Vr(e = "light") {
|
|
606
|
+
return e === "dark" ? {
|
|
607
|
+
main: ve[200],
|
|
608
|
+
light: ve[50],
|
|
609
|
+
dark: ve[400]
|
|
610
|
+
} : {
|
|
611
|
+
main: ve[500],
|
|
612
|
+
light: ve[300],
|
|
613
|
+
dark: ve[700]
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
function Wr(e = "light") {
|
|
617
|
+
return e === "dark" ? {
|
|
618
|
+
main: Se[500],
|
|
619
|
+
light: Se[300],
|
|
620
|
+
dark: Se[700]
|
|
621
|
+
} : {
|
|
622
|
+
main: Se[700],
|
|
623
|
+
light: Se[400],
|
|
624
|
+
dark: Se[800]
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
function zr(e = "light") {
|
|
628
|
+
return e === "dark" ? {
|
|
629
|
+
main: Ce[400],
|
|
630
|
+
light: Ce[300],
|
|
631
|
+
dark: Ce[700]
|
|
632
|
+
} : {
|
|
633
|
+
main: Ce[700],
|
|
634
|
+
light: Ce[500],
|
|
635
|
+
dark: Ce[900]
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
function Ur(e = "light") {
|
|
639
|
+
return e === "dark" ? {
|
|
640
|
+
main: Te[400],
|
|
641
|
+
light: Te[300],
|
|
642
|
+
dark: Te[700]
|
|
643
|
+
} : {
|
|
644
|
+
main: Te[800],
|
|
645
|
+
light: Te[500],
|
|
646
|
+
dark: Te[900]
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
function Gr(e = "light") {
|
|
650
|
+
return e === "dark" ? {
|
|
651
|
+
main: $e[400],
|
|
652
|
+
light: $e[300],
|
|
653
|
+
dark: $e[700]
|
|
654
|
+
} : {
|
|
655
|
+
main: "#ed6c02",
|
|
656
|
+
// closest to orange[800] that pass 3:1.
|
|
657
|
+
light: $e[500],
|
|
658
|
+
dark: $e[900]
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
function Yr(e) {
|
|
662
|
+
return `oklch(from ${e} var(--__l) 0 h / var(--__a))`;
|
|
663
|
+
}
|
|
664
|
+
function St(e) {
|
|
665
|
+
const {
|
|
666
|
+
mode: t = "light",
|
|
667
|
+
contrastThreshold: r = 3,
|
|
668
|
+
tonalOffset: n = 0.2,
|
|
669
|
+
colorSpace: o,
|
|
670
|
+
...a
|
|
671
|
+
} = e, s = e.primary || Lr(t), c = e.secondary || Vr(t), f = e.error || Wr(t), d = e.info || zr(t), g = e.success || Ur(t), p = e.warning || Gr(t);
|
|
672
|
+
function m(E) {
|
|
673
|
+
if (o)
|
|
674
|
+
return Yr(E);
|
|
675
|
+
const _ = Pt(E, mt.text.primary) >= r ? mt.text.primary : sr.text.primary;
|
|
676
|
+
if (process.env.NODE_ENV !== "production") {
|
|
677
|
+
const D = Pt(E, _);
|
|
678
|
+
D < 3 && console.error([`MUI: The contrast ratio of ${D}:1 for ${_} on ${E}`, "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(`
|
|
679
|
+
`));
|
|
680
|
+
}
|
|
681
|
+
return _;
|
|
682
|
+
}
|
|
683
|
+
const v = ({
|
|
684
|
+
color: E,
|
|
685
|
+
name: _,
|
|
686
|
+
mainShade: D = 500,
|
|
687
|
+
lightShade: N = 300,
|
|
688
|
+
darkShade: x = 700
|
|
689
|
+
}) => {
|
|
690
|
+
if (E = {
|
|
691
|
+
...E
|
|
692
|
+
}, !E.main && E[D] && (E.main = E[D]), !E.hasOwnProperty("main"))
|
|
693
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${_ ? ` (${_})` : ""} provided to augmentColor(color) is invalid.
|
|
694
|
+
The color object needs to have a \`main\` property or a \`${D}\` property.` : ge(11, _ ? ` (${_})` : "", D));
|
|
695
|
+
if (typeof E.main != "string")
|
|
696
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${_ ? ` (${_})` : ""} provided to augmentColor(color) is invalid.
|
|
697
|
+
\`color.main\` should be a string, but \`${JSON.stringify(E.main)}\` was provided instead.
|
|
698
|
+
|
|
699
|
+
Did you intend to use one of the following approaches?
|
|
700
|
+
|
|
701
|
+
import { green } from "@mui/material/colors";
|
|
702
|
+
|
|
703
|
+
const theme1 = createTheme({ palette: {
|
|
704
|
+
primary: green,
|
|
705
|
+
} });
|
|
706
|
+
|
|
707
|
+
const theme2 = createTheme({ palette: {
|
|
708
|
+
primary: { main: green[500] },
|
|
709
|
+
} });` : ge(12, _ ? ` (${_})` : "", JSON.stringify(E.main)));
|
|
710
|
+
return o ? (kt(o, E, "light", N, n), kt(o, E, "dark", x, n)) : (Rt(E, "light", N, n), Rt(E, "dark", x, n)), E.contrastText || (E.contrastText = m(E.main)), E;
|
|
711
|
+
};
|
|
712
|
+
let b;
|
|
713
|
+
return t === "light" ? b = ar() : t === "dark" && (b = cr()), process.env.NODE_ENV !== "production" && (b || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), oe({
|
|
714
|
+
// A collection of common colors.
|
|
715
|
+
common: {
|
|
716
|
+
...Re
|
|
717
|
+
},
|
|
718
|
+
// prevent mutable object.
|
|
719
|
+
// The palette mode, can be light or dark.
|
|
720
|
+
mode: t,
|
|
721
|
+
// The colors used to represent primary interface elements for a user.
|
|
722
|
+
primary: v({
|
|
723
|
+
color: s,
|
|
724
|
+
name: "primary"
|
|
725
|
+
}),
|
|
726
|
+
// The colors used to represent secondary interface elements for a user.
|
|
727
|
+
secondary: v({
|
|
728
|
+
color: c,
|
|
729
|
+
name: "secondary",
|
|
730
|
+
mainShade: "A400",
|
|
731
|
+
lightShade: "A200",
|
|
732
|
+
darkShade: "A700"
|
|
733
|
+
}),
|
|
734
|
+
// The colors used to represent interface elements that the user should be made aware of.
|
|
735
|
+
error: v({
|
|
736
|
+
color: f,
|
|
737
|
+
name: "error"
|
|
738
|
+
}),
|
|
739
|
+
// The colors used to represent potentially dangerous actions or important messages.
|
|
740
|
+
warning: v({
|
|
741
|
+
color: p,
|
|
742
|
+
name: "warning"
|
|
743
|
+
}),
|
|
744
|
+
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
745
|
+
info: v({
|
|
746
|
+
color: d,
|
|
747
|
+
name: "info"
|
|
748
|
+
}),
|
|
749
|
+
// The colors used to indicate the successful completion of an action that user triggered.
|
|
750
|
+
success: v({
|
|
751
|
+
color: g,
|
|
752
|
+
name: "success"
|
|
753
|
+
}),
|
|
754
|
+
// The grey colors.
|
|
755
|
+
grey: jr,
|
|
756
|
+
// Used by `getContrastText()` to maximize the contrast between
|
|
757
|
+
// the background and the text.
|
|
758
|
+
contrastThreshold: r,
|
|
759
|
+
// Takes a background color and returns the text color that maximizes the contrast.
|
|
760
|
+
getContrastText: m,
|
|
761
|
+
// Generate a rich color object.
|
|
762
|
+
augmentColor: v,
|
|
763
|
+
// Used by the functions below to shift a color's luminance by approximately
|
|
764
|
+
// two indexes within its tonal palette.
|
|
765
|
+
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
766
|
+
tonalOffset: n,
|
|
767
|
+
// The light and dark mode object.
|
|
768
|
+
...b
|
|
769
|
+
}, a);
|
|
770
|
+
}
|
|
771
|
+
var Fe = { exports: {} }, je = { exports: {} }, j = {};
|
|
772
|
+
var It;
|
|
773
|
+
function qr() {
|
|
774
|
+
if (It) return j;
|
|
775
|
+
It = 1;
|
|
776
|
+
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, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, v = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, l = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, _ = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, D = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
777
|
+
function N(y) {
|
|
778
|
+
if (typeof y == "object" && y !== null) {
|
|
779
|
+
var $ = y.$$typeof;
|
|
780
|
+
switch ($) {
|
|
781
|
+
case t:
|
|
782
|
+
switch (y = y.type, y) {
|
|
783
|
+
case f:
|
|
784
|
+
case d:
|
|
785
|
+
case n:
|
|
786
|
+
case a:
|
|
787
|
+
case o:
|
|
788
|
+
case p:
|
|
789
|
+
return y;
|
|
790
|
+
default:
|
|
791
|
+
switch (y = y && y.$$typeof, y) {
|
|
792
|
+
case c:
|
|
793
|
+
case g:
|
|
794
|
+
case b:
|
|
795
|
+
case v:
|
|
796
|
+
case s:
|
|
797
|
+
return y;
|
|
798
|
+
default:
|
|
799
|
+
return $;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
case r:
|
|
803
|
+
return $;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
function x(y) {
|
|
808
|
+
return N(y) === d;
|
|
809
|
+
}
|
|
810
|
+
return j.AsyncMode = f, j.ConcurrentMode = d, j.ContextConsumer = c, j.ContextProvider = s, j.Element = t, j.ForwardRef = g, j.Fragment = n, j.Lazy = b, j.Memo = v, j.Portal = r, j.Profiler = a, j.StrictMode = o, j.Suspense = p, j.isAsyncMode = function(y) {
|
|
811
|
+
return x(y) || N(y) === f;
|
|
812
|
+
}, j.isConcurrentMode = x, j.isContextConsumer = function(y) {
|
|
813
|
+
return N(y) === c;
|
|
814
|
+
}, j.isContextProvider = function(y) {
|
|
815
|
+
return N(y) === s;
|
|
816
|
+
}, j.isElement = function(y) {
|
|
817
|
+
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
818
|
+
}, j.isForwardRef = function(y) {
|
|
819
|
+
return N(y) === g;
|
|
820
|
+
}, j.isFragment = function(y) {
|
|
821
|
+
return N(y) === n;
|
|
822
|
+
}, j.isLazy = function(y) {
|
|
823
|
+
return N(y) === b;
|
|
824
|
+
}, j.isMemo = function(y) {
|
|
825
|
+
return N(y) === v;
|
|
826
|
+
}, j.isPortal = function(y) {
|
|
827
|
+
return N(y) === r;
|
|
828
|
+
}, j.isProfiler = function(y) {
|
|
829
|
+
return N(y) === a;
|
|
830
|
+
}, j.isStrictMode = function(y) {
|
|
831
|
+
return N(y) === o;
|
|
832
|
+
}, j.isSuspense = function(y) {
|
|
833
|
+
return N(y) === p;
|
|
834
|
+
}, j.isValidElementType = function(y) {
|
|
835
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === d || y === a || y === o || y === p || y === m || typeof y == "object" && y !== null && (y.$$typeof === b || y.$$typeof === v || y.$$typeof === s || y.$$typeof === c || y.$$typeof === g || y.$$typeof === E || y.$$typeof === _ || y.$$typeof === D || y.$$typeof === l);
|
|
836
|
+
}, j.typeOf = N, j;
|
|
837
|
+
}
|
|
838
|
+
var L = {};
|
|
839
|
+
var Mt;
|
|
840
|
+
function Kr() {
|
|
841
|
+
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
842
|
+
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, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, g = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, v = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, l = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, _ = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, D = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
843
|
+
function N(C) {
|
|
844
|
+
return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
845
|
+
C === n || C === d || C === a || C === o || C === p || C === m || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === v || C.$$typeof === s || C.$$typeof === c || C.$$typeof === g || C.$$typeof === E || C.$$typeof === _ || C.$$typeof === D || C.$$typeof === l);
|
|
846
|
+
}
|
|
847
|
+
function x(C) {
|
|
848
|
+
if (typeof C == "object" && C !== null) {
|
|
849
|
+
var le = C.$$typeof;
|
|
850
|
+
switch (le) {
|
|
851
|
+
case t:
|
|
852
|
+
var Me = C.type;
|
|
853
|
+
switch (Me) {
|
|
854
|
+
case f:
|
|
855
|
+
case d:
|
|
856
|
+
case n:
|
|
857
|
+
case a:
|
|
858
|
+
case o:
|
|
859
|
+
case p:
|
|
860
|
+
return Me;
|
|
861
|
+
default:
|
|
862
|
+
var xt = Me && Me.$$typeof;
|
|
863
|
+
switch (xt) {
|
|
864
|
+
case c:
|
|
865
|
+
case g:
|
|
866
|
+
case b:
|
|
867
|
+
case v:
|
|
868
|
+
case s:
|
|
869
|
+
return xt;
|
|
870
|
+
default:
|
|
871
|
+
return le;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
case r:
|
|
875
|
+
return le;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
var y = f, $ = d, se = c, fe = s, Z = t, ee = g, X = n, i = b, w = v, S = r, F = a, V = o, te = p, ce = !1;
|
|
880
|
+
function ot(C) {
|
|
881
|
+
return ce || (ce = !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.")), h(C) || x(C) === f;
|
|
882
|
+
}
|
|
883
|
+
function h(C) {
|
|
884
|
+
return x(C) === d;
|
|
885
|
+
}
|
|
886
|
+
function T(C) {
|
|
887
|
+
return x(C) === c;
|
|
888
|
+
}
|
|
889
|
+
function k(C) {
|
|
890
|
+
return x(C) === s;
|
|
891
|
+
}
|
|
892
|
+
function P(C) {
|
|
893
|
+
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
894
|
+
}
|
|
895
|
+
function O(C) {
|
|
896
|
+
return x(C) === g;
|
|
897
|
+
}
|
|
898
|
+
function I(C) {
|
|
899
|
+
return x(C) === n;
|
|
900
|
+
}
|
|
901
|
+
function A(C) {
|
|
902
|
+
return x(C) === b;
|
|
903
|
+
}
|
|
904
|
+
function R(C) {
|
|
905
|
+
return x(C) === v;
|
|
906
|
+
}
|
|
907
|
+
function M(C) {
|
|
908
|
+
return x(C) === r;
|
|
909
|
+
}
|
|
910
|
+
function W(C) {
|
|
911
|
+
return x(C) === a;
|
|
912
|
+
}
|
|
913
|
+
function B(C) {
|
|
914
|
+
return x(C) === o;
|
|
915
|
+
}
|
|
916
|
+
function re(C) {
|
|
917
|
+
return x(C) === p;
|
|
918
|
+
}
|
|
919
|
+
L.AsyncMode = y, L.ConcurrentMode = $, L.ContextConsumer = se, L.ContextProvider = fe, L.Element = Z, L.ForwardRef = ee, L.Fragment = X, L.Lazy = i, L.Memo = w, L.Portal = S, L.Profiler = F, L.StrictMode = V, L.Suspense = te, L.isAsyncMode = ot, L.isConcurrentMode = h, L.isContextConsumer = T, L.isContextProvider = k, L.isElement = P, L.isForwardRef = O, L.isFragment = I, L.isLazy = A, L.isMemo = R, L.isPortal = M, L.isProfiler = W, L.isStrictMode = B, L.isSuspense = re, L.isValidElementType = N, L.typeOf = x;
|
|
920
|
+
})()), L;
|
|
921
|
+
}
|
|
922
|
+
var Bt;
|
|
923
|
+
function lr() {
|
|
924
|
+
return Bt || (Bt = 1, process.env.NODE_ENV === "production" ? je.exports = qr() : je.exports = Kr()), je.exports;
|
|
925
|
+
}
|
|
926
|
+
var it, Dt;
|
|
927
|
+
function Hr() {
|
|
928
|
+
if (Dt) return it;
|
|
929
|
+
Dt = 1;
|
|
930
|
+
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
931
|
+
function n(a) {
|
|
932
|
+
if (a == null)
|
|
933
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
934
|
+
return Object(a);
|
|
935
|
+
}
|
|
936
|
+
function o() {
|
|
937
|
+
try {
|
|
938
|
+
if (!Object.assign)
|
|
939
|
+
return !1;
|
|
940
|
+
var a = new String("abc");
|
|
941
|
+
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
942
|
+
return !1;
|
|
943
|
+
for (var s = {}, c = 0; c < 10; c++)
|
|
944
|
+
s["_" + String.fromCharCode(c)] = c;
|
|
945
|
+
var f = Object.getOwnPropertyNames(s).map(function(g) {
|
|
946
|
+
return s[g];
|
|
947
|
+
});
|
|
948
|
+
if (f.join("") !== "0123456789")
|
|
949
|
+
return !1;
|
|
950
|
+
var d = {};
|
|
951
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(g) {
|
|
952
|
+
d[g] = g;
|
|
953
|
+
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
|
|
954
|
+
} catch {
|
|
955
|
+
return !1;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
return it = o() ? Object.assign : function(a, s) {
|
|
959
|
+
for (var c, f = n(a), d, g = 1; g < arguments.length; g++) {
|
|
960
|
+
c = Object(arguments[g]);
|
|
961
|
+
for (var p in c)
|
|
962
|
+
t.call(c, p) && (f[p] = c[p]);
|
|
963
|
+
if (e) {
|
|
964
|
+
d = e(c);
|
|
965
|
+
for (var m = 0; m < d.length; m++)
|
|
966
|
+
r.call(c, d[m]) && (f[d[m]] = c[d[m]]);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
return f;
|
|
970
|
+
}, it;
|
|
971
|
+
}
|
|
972
|
+
var at, Nt;
|
|
973
|
+
function Et() {
|
|
974
|
+
if (Nt) return at;
|
|
975
|
+
Nt = 1;
|
|
976
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
977
|
+
return at = e, at;
|
|
978
|
+
}
|
|
979
|
+
var st, Ft;
|
|
980
|
+
function ur() {
|
|
981
|
+
return Ft || (Ft = 1, st = Function.call.bind(Object.prototype.hasOwnProperty)), st;
|
|
982
|
+
}
|
|
983
|
+
var ct, jt;
|
|
984
|
+
function Qr() {
|
|
985
|
+
if (jt) return ct;
|
|
986
|
+
jt = 1;
|
|
987
|
+
var e = function() {
|
|
988
|
+
};
|
|
989
|
+
if (process.env.NODE_ENV !== "production") {
|
|
990
|
+
var t = /* @__PURE__ */ Et(), r = {}, n = /* @__PURE__ */ ur();
|
|
991
|
+
e = function(a) {
|
|
992
|
+
var s = "Warning: " + a;
|
|
993
|
+
typeof console < "u" && console.error(s);
|
|
994
|
+
try {
|
|
995
|
+
throw new Error(s);
|
|
996
|
+
} catch {
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
function o(a, s, c, f, d) {
|
|
1001
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1002
|
+
for (var g in a)
|
|
1003
|
+
if (n(a, g)) {
|
|
1004
|
+
var p;
|
|
1005
|
+
try {
|
|
1006
|
+
if (typeof a[g] != "function") {
|
|
1007
|
+
var m = Error(
|
|
1008
|
+
(f || "React class") + ": " + c + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1009
|
+
);
|
|
1010
|
+
throw m.name = "Invariant Violation", m;
|
|
1011
|
+
}
|
|
1012
|
+
p = a[g](s, g, f, c, null, t);
|
|
1013
|
+
} catch (b) {
|
|
1014
|
+
p = b;
|
|
1015
|
+
}
|
|
1016
|
+
if (p && !(p instanceof Error) && e(
|
|
1017
|
+
(f || "React class") + ": type specification of " + c + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1018
|
+
), p instanceof Error && !(p.message in r)) {
|
|
1019
|
+
r[p.message] = !0;
|
|
1020
|
+
var v = d ? d() : "";
|
|
1021
|
+
e(
|
|
1022
|
+
"Failed " + c + " type: " + p.message + (v ?? "")
|
|
1023
|
+
);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
return o.resetWarningCache = function() {
|
|
1029
|
+
process.env.NODE_ENV !== "production" && (r = {});
|
|
1030
|
+
}, ct = o, ct;
|
|
1031
|
+
}
|
|
1032
|
+
var lt, Lt;
|
|
1033
|
+
function Xr() {
|
|
1034
|
+
if (Lt) return lt;
|
|
1035
|
+
Lt = 1;
|
|
1036
|
+
var e = lr(), t = Hr(), r = /* @__PURE__ */ Et(), n = /* @__PURE__ */ ur(), o = /* @__PURE__ */ Qr(), a = function() {
|
|
1037
|
+
};
|
|
1038
|
+
process.env.NODE_ENV !== "production" && (a = function(c) {
|
|
1039
|
+
var f = "Warning: " + c;
|
|
1040
|
+
typeof console < "u" && console.error(f);
|
|
1041
|
+
try {
|
|
1042
|
+
throw new Error(f);
|
|
1043
|
+
} catch {
|
|
1044
|
+
}
|
|
1045
|
+
});
|
|
1046
|
+
function s() {
|
|
1047
|
+
return null;
|
|
1048
|
+
}
|
|
1049
|
+
return lt = function(c, f) {
|
|
1050
|
+
var d = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
|
|
1051
|
+
function p(h) {
|
|
1052
|
+
var T = h && (d && h[d] || h[g]);
|
|
1053
|
+
if (typeof T == "function")
|
|
1054
|
+
return T;
|
|
1055
|
+
}
|
|
1056
|
+
var m = "<<anonymous>>", v = {
|
|
1057
|
+
array: _("array"),
|
|
1058
|
+
bigint: _("bigint"),
|
|
1059
|
+
bool: _("boolean"),
|
|
1060
|
+
func: _("function"),
|
|
1061
|
+
number: _("number"),
|
|
1062
|
+
object: _("object"),
|
|
1063
|
+
string: _("string"),
|
|
1064
|
+
symbol: _("symbol"),
|
|
1065
|
+
any: D(),
|
|
1066
|
+
arrayOf: N,
|
|
1067
|
+
element: x(),
|
|
1068
|
+
elementType: y(),
|
|
1069
|
+
instanceOf: $,
|
|
1070
|
+
node: ee(),
|
|
1071
|
+
objectOf: fe,
|
|
1072
|
+
oneOf: se,
|
|
1073
|
+
oneOfType: Z,
|
|
1074
|
+
shape: i,
|
|
1075
|
+
exact: w
|
|
1076
|
+
};
|
|
1077
|
+
function b(h, T) {
|
|
1078
|
+
return h === T ? h !== 0 || 1 / h === 1 / T : h !== h && T !== T;
|
|
1079
|
+
}
|
|
1080
|
+
function l(h, T) {
|
|
1081
|
+
this.message = h, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
|
|
1082
|
+
}
|
|
1083
|
+
l.prototype = Error.prototype;
|
|
1084
|
+
function E(h) {
|
|
1085
|
+
if (process.env.NODE_ENV !== "production")
|
|
1086
|
+
var T = {}, k = 0;
|
|
1087
|
+
function P(I, A, R, M, W, B, re) {
|
|
1088
|
+
if (M = M || m, B = B || R, re !== r) {
|
|
1089
|
+
if (f) {
|
|
1090
|
+
var C = new Error(
|
|
1091
|
+
"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"
|
|
1092
|
+
);
|
|
1093
|
+
throw C.name = "Invariant Violation", C;
|
|
1094
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1095
|
+
var le = M + ":" + R;
|
|
1096
|
+
!T[le] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1097
|
+
k < 3 && (a(
|
|
1098
|
+
"You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + M + "`. 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."
|
|
1099
|
+
), T[le] = !0, k++);
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
return A[R] == null ? I ? A[R] === null ? new l("The " + W + " `" + B + "` is marked as required " + ("in `" + M + "`, but its value is `null`.")) : new l("The " + W + " `" + B + "` is marked as required in " + ("`" + M + "`, but its value is `undefined`.")) : null : h(A, R, M, W, B);
|
|
1103
|
+
}
|
|
1104
|
+
var O = P.bind(null, !1);
|
|
1105
|
+
return O.isRequired = P.bind(null, !0), O;
|
|
1106
|
+
}
|
|
1107
|
+
function _(h) {
|
|
1108
|
+
function T(k, P, O, I, A, R) {
|
|
1109
|
+
var M = k[P], W = V(M);
|
|
1110
|
+
if (W !== h) {
|
|
1111
|
+
var B = te(M);
|
|
1112
|
+
return new l(
|
|
1113
|
+
"Invalid " + I + " `" + A + "` of type " + ("`" + B + "` supplied to `" + O + "`, expected ") + ("`" + h + "`."),
|
|
1114
|
+
{ expectedType: h }
|
|
1115
|
+
);
|
|
1116
|
+
}
|
|
1117
|
+
return null;
|
|
1118
|
+
}
|
|
1119
|
+
return E(T);
|
|
1120
|
+
}
|
|
1121
|
+
function D() {
|
|
1122
|
+
return E(s);
|
|
1123
|
+
}
|
|
1124
|
+
function N(h) {
|
|
1125
|
+
function T(k, P, O, I, A) {
|
|
1126
|
+
if (typeof h != "function")
|
|
1127
|
+
return new l("Property `" + A + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
|
|
1128
|
+
var R = k[P];
|
|
1129
|
+
if (!Array.isArray(R)) {
|
|
1130
|
+
var M = V(R);
|
|
1131
|
+
return new l("Invalid " + I + " `" + A + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected an array."));
|
|
1132
|
+
}
|
|
1133
|
+
for (var W = 0; W < R.length; W++) {
|
|
1134
|
+
var B = h(R, W, O, I, A + "[" + W + "]", r);
|
|
1135
|
+
if (B instanceof Error)
|
|
1136
|
+
return B;
|
|
1137
|
+
}
|
|
1138
|
+
return null;
|
|
1139
|
+
}
|
|
1140
|
+
return E(T);
|
|
1141
|
+
}
|
|
1142
|
+
function x() {
|
|
1143
|
+
function h(T, k, P, O, I) {
|
|
1144
|
+
var A = T[k];
|
|
1145
|
+
if (!c(A)) {
|
|
1146
|
+
var R = V(A);
|
|
1147
|
+
return new l("Invalid " + O + " `" + I + "` of type " + ("`" + R + "` supplied to `" + P + "`, expected a single ReactElement."));
|
|
1148
|
+
}
|
|
1149
|
+
return null;
|
|
1150
|
+
}
|
|
1151
|
+
return E(h);
|
|
1152
|
+
}
|
|
1153
|
+
function y() {
|
|
1154
|
+
function h(T, k, P, O, I) {
|
|
1155
|
+
var A = T[k];
|
|
1156
|
+
if (!e.isValidElementType(A)) {
|
|
1157
|
+
var R = V(A);
|
|
1158
|
+
return new l("Invalid " + O + " `" + I + "` of type " + ("`" + R + "` supplied to `" + P + "`, expected a single ReactElement type."));
|
|
1159
|
+
}
|
|
1160
|
+
return null;
|
|
1161
|
+
}
|
|
1162
|
+
return E(h);
|
|
1163
|
+
}
|
|
1164
|
+
function $(h) {
|
|
1165
|
+
function T(k, P, O, I, A) {
|
|
1166
|
+
if (!(k[P] instanceof h)) {
|
|
1167
|
+
var R = h.name || m, M = ot(k[P]);
|
|
1168
|
+
return new l("Invalid " + I + " `" + A + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected ") + ("instance of `" + R + "`."));
|
|
1169
|
+
}
|
|
1170
|
+
return null;
|
|
1171
|
+
}
|
|
1172
|
+
return E(T);
|
|
1173
|
+
}
|
|
1174
|
+
function se(h) {
|
|
1175
|
+
if (!Array.isArray(h))
|
|
1176
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1177
|
+
"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])."
|
|
1178
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
1179
|
+
function T(k, P, O, I, A) {
|
|
1180
|
+
for (var R = k[P], M = 0; M < h.length; M++)
|
|
1181
|
+
if (b(R, h[M]))
|
|
1182
|
+
return null;
|
|
1183
|
+
var W = JSON.stringify(h, function(re, C) {
|
|
1184
|
+
var le = te(C);
|
|
1185
|
+
return le === "symbol" ? String(C) : C;
|
|
1186
|
+
});
|
|
1187
|
+
return new l("Invalid " + I + " `" + A + "` of value `" + String(R) + "` " + ("supplied to `" + O + "`, expected one of " + W + "."));
|
|
1188
|
+
}
|
|
1189
|
+
return E(T);
|
|
1190
|
+
}
|
|
1191
|
+
function fe(h) {
|
|
1192
|
+
function T(k, P, O, I, A) {
|
|
1193
|
+
if (typeof h != "function")
|
|
1194
|
+
return new l("Property `" + A + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
|
|
1195
|
+
var R = k[P], M = V(R);
|
|
1196
|
+
if (M !== "object")
|
|
1197
|
+
return new l("Invalid " + I + " `" + A + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected an object."));
|
|
1198
|
+
for (var W in R)
|
|
1199
|
+
if (n(R, W)) {
|
|
1200
|
+
var B = h(R, W, O, I, A + "." + W, r);
|
|
1201
|
+
if (B instanceof Error)
|
|
1202
|
+
return B;
|
|
1203
|
+
}
|
|
1204
|
+
return null;
|
|
1205
|
+
}
|
|
1206
|
+
return E(T);
|
|
1207
|
+
}
|
|
1208
|
+
function Z(h) {
|
|
1209
|
+
if (!Array.isArray(h))
|
|
1210
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
1211
|
+
for (var T = 0; T < h.length; T++) {
|
|
1212
|
+
var k = h[T];
|
|
1213
|
+
if (typeof k != "function")
|
|
1214
|
+
return a(
|
|
1215
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(k) + " at index " + T + "."
|
|
1216
|
+
), s;
|
|
1217
|
+
}
|
|
1218
|
+
function P(O, I, A, R, M) {
|
|
1219
|
+
for (var W = [], B = 0; B < h.length; B++) {
|
|
1220
|
+
var re = h[B], C = re(O, I, A, R, M, r);
|
|
1221
|
+
if (C == null)
|
|
1222
|
+
return null;
|
|
1223
|
+
C.data && n(C.data, "expectedType") && W.push(C.data.expectedType);
|
|
1224
|
+
}
|
|
1225
|
+
var le = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
|
|
1226
|
+
return new l("Invalid " + R + " `" + M + "` supplied to " + ("`" + A + "`" + le + "."));
|
|
1227
|
+
}
|
|
1228
|
+
return E(P);
|
|
1229
|
+
}
|
|
1230
|
+
function ee() {
|
|
1231
|
+
function h(T, k, P, O, I) {
|
|
1232
|
+
return S(T[k]) ? null : new l("Invalid " + O + " `" + I + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
|
1233
|
+
}
|
|
1234
|
+
return E(h);
|
|
1235
|
+
}
|
|
1236
|
+
function X(h, T, k, P, O) {
|
|
1237
|
+
return new l(
|
|
1238
|
+
(h || "React class") + ": " + T + " type `" + k + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
|
|
1239
|
+
);
|
|
1240
|
+
}
|
|
1241
|
+
function i(h) {
|
|
1242
|
+
function T(k, P, O, I, A) {
|
|
1243
|
+
var R = k[P], M = V(R);
|
|
1244
|
+
if (M !== "object")
|
|
1245
|
+
return new l("Invalid " + I + " `" + A + "` of type `" + M + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
1246
|
+
for (var W in h) {
|
|
1247
|
+
var B = h[W];
|
|
1248
|
+
if (typeof B != "function")
|
|
1249
|
+
return X(O, I, A, W, te(B));
|
|
1250
|
+
var re = B(R, W, O, I, A + "." + W, r);
|
|
1251
|
+
if (re)
|
|
1252
|
+
return re;
|
|
1253
|
+
}
|
|
1254
|
+
return null;
|
|
1255
|
+
}
|
|
1256
|
+
return E(T);
|
|
1257
|
+
}
|
|
1258
|
+
function w(h) {
|
|
1259
|
+
function T(k, P, O, I, A) {
|
|
1260
|
+
var R = k[P], M = V(R);
|
|
1261
|
+
if (M !== "object")
|
|
1262
|
+
return new l("Invalid " + I + " `" + A + "` of type `" + M + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
1263
|
+
var W = t({}, k[P], h);
|
|
1264
|
+
for (var B in W) {
|
|
1265
|
+
var re = h[B];
|
|
1266
|
+
if (n(h, B) && typeof re != "function")
|
|
1267
|
+
return X(O, I, A, B, te(re));
|
|
1268
|
+
if (!re)
|
|
1269
|
+
return new l(
|
|
1270
|
+
"Invalid " + I + " `" + A + "` key `" + B + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(k[P], null, " ") + `
|
|
1271
|
+
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1272
|
+
);
|
|
1273
|
+
var C = re(R, B, O, I, A + "." + B, r);
|
|
1274
|
+
if (C)
|
|
1275
|
+
return C;
|
|
1276
|
+
}
|
|
1277
|
+
return null;
|
|
1278
|
+
}
|
|
1279
|
+
return E(T);
|
|
1280
|
+
}
|
|
1281
|
+
function S(h) {
|
|
1282
|
+
switch (typeof h) {
|
|
1283
|
+
case "number":
|
|
1284
|
+
case "string":
|
|
1285
|
+
case "undefined":
|
|
1286
|
+
return !0;
|
|
1287
|
+
case "boolean":
|
|
1288
|
+
return !h;
|
|
1289
|
+
case "object":
|
|
1290
|
+
if (Array.isArray(h))
|
|
1291
|
+
return h.every(S);
|
|
1292
|
+
if (h === null || c(h))
|
|
1293
|
+
return !0;
|
|
1294
|
+
var T = p(h);
|
|
1295
|
+
if (T) {
|
|
1296
|
+
var k = T.call(h), P;
|
|
1297
|
+
if (T !== h.entries) {
|
|
1298
|
+
for (; !(P = k.next()).done; )
|
|
1299
|
+
if (!S(P.value))
|
|
1300
|
+
return !1;
|
|
1301
|
+
} else
|
|
1302
|
+
for (; !(P = k.next()).done; ) {
|
|
1303
|
+
var O = P.value;
|
|
1304
|
+
if (O && !S(O[1]))
|
|
1305
|
+
return !1;
|
|
1306
|
+
}
|
|
1307
|
+
} else
|
|
1308
|
+
return !1;
|
|
1309
|
+
return !0;
|
|
1310
|
+
default:
|
|
1311
|
+
return !1;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
function F(h, T) {
|
|
1315
|
+
return h === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1;
|
|
1316
|
+
}
|
|
1317
|
+
function V(h) {
|
|
1318
|
+
var T = typeof h;
|
|
1319
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : F(T, h) ? "symbol" : T;
|
|
1320
|
+
}
|
|
1321
|
+
function te(h) {
|
|
1322
|
+
if (typeof h > "u" || h === null)
|
|
1323
|
+
return "" + h;
|
|
1324
|
+
var T = V(h);
|
|
1325
|
+
if (T === "object") {
|
|
1326
|
+
if (h instanceof Date)
|
|
1327
|
+
return "date";
|
|
1328
|
+
if (h instanceof RegExp)
|
|
1329
|
+
return "regexp";
|
|
1330
|
+
}
|
|
1331
|
+
return T;
|
|
1332
|
+
}
|
|
1333
|
+
function ce(h) {
|
|
1334
|
+
var T = te(h);
|
|
1335
|
+
switch (T) {
|
|
1336
|
+
case "array":
|
|
1337
|
+
case "object":
|
|
1338
|
+
return "an " + T;
|
|
1339
|
+
case "boolean":
|
|
1340
|
+
case "date":
|
|
1341
|
+
case "regexp":
|
|
1342
|
+
return "a " + T;
|
|
1343
|
+
default:
|
|
1344
|
+
return T;
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
function ot(h) {
|
|
1348
|
+
return !h.constructor || !h.constructor.name ? m : h.constructor.name;
|
|
1349
|
+
}
|
|
1350
|
+
return v.checkPropTypes = o, v.resetWarningCache = o.resetWarningCache, v.PropTypes = v, v;
|
|
1351
|
+
}, lt;
|
|
1352
|
+
}
|
|
1353
|
+
var ut, Vt;
|
|
1354
|
+
function Jr() {
|
|
1355
|
+
if (Vt) return ut;
|
|
1356
|
+
Vt = 1;
|
|
1357
|
+
var e = /* @__PURE__ */ Et();
|
|
1358
|
+
function t() {
|
|
1359
|
+
}
|
|
1360
|
+
function r() {
|
|
1361
|
+
}
|
|
1362
|
+
return r.resetWarningCache = t, ut = function() {
|
|
1363
|
+
function n(s, c, f, d, g, p) {
|
|
1364
|
+
if (p !== e) {
|
|
1365
|
+
var m = new Error(
|
|
1366
|
+
"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"
|
|
1367
|
+
);
|
|
1368
|
+
throw m.name = "Invariant Violation", m;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
n.isRequired = n;
|
|
1372
|
+
function o() {
|
|
1373
|
+
return n;
|
|
1374
|
+
}
|
|
1375
|
+
var a = {
|
|
1376
|
+
array: n,
|
|
1377
|
+
bigint: n,
|
|
1378
|
+
bool: n,
|
|
1379
|
+
func: n,
|
|
1380
|
+
number: n,
|
|
1381
|
+
object: n,
|
|
1382
|
+
string: n,
|
|
1383
|
+
symbol: n,
|
|
1384
|
+
any: n,
|
|
1385
|
+
arrayOf: o,
|
|
1386
|
+
element: n,
|
|
1387
|
+
elementType: n,
|
|
1388
|
+
instanceOf: o,
|
|
1389
|
+
node: n,
|
|
1390
|
+
objectOf: o,
|
|
1391
|
+
oneOf: o,
|
|
1392
|
+
oneOfType: o,
|
|
1393
|
+
shape: o,
|
|
1394
|
+
exact: o,
|
|
1395
|
+
checkPropTypes: r,
|
|
1396
|
+
resetWarningCache: t
|
|
1397
|
+
};
|
|
1398
|
+
return a.PropTypes = a, a;
|
|
1399
|
+
}, ut;
|
|
1400
|
+
}
|
|
1401
|
+
var Wt;
|
|
1402
|
+
function Zr() {
|
|
1403
|
+
if (Wt) return Fe.exports;
|
|
1404
|
+
if (Wt = 1, process.env.NODE_ENV !== "production") {
|
|
1405
|
+
var e = lr(), t = !0;
|
|
1406
|
+
Fe.exports = /* @__PURE__ */ Xr()(e.isElement, t);
|
|
1407
|
+
} else
|
|
1408
|
+
Fe.exports = /* @__PURE__ */ Jr()();
|
|
1409
|
+
return Fe.exports;
|
|
1410
|
+
}
|
|
1411
|
+
var en = /* @__PURE__ */ Zr();
|
|
1412
|
+
const Oe = /* @__PURE__ */ Rr(en), ye = process.env.NODE_ENV !== "production" ? Oe.oneOfType([Oe.number, Oe.string, Oe.object, Oe.array]) : {};
|
|
1413
|
+
function Pe(e, t) {
|
|
1414
|
+
return t ? oe(e, t, {
|
|
1415
|
+
clone: !1
|
|
1416
|
+
// No need to clone deep, it's way faster.
|
|
1417
|
+
}) : e;
|
|
1418
|
+
}
|
|
1419
|
+
function zt(e, t) {
|
|
1420
|
+
if (!e.containerQueries)
|
|
1421
|
+
return t;
|
|
1422
|
+
const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
|
|
1423
|
+
const a = /min-width:\s*([0-9.]+)/;
|
|
1424
|
+
return +(n.match(a)?.[1] || 0) - +(o.match(a)?.[1] || 0);
|
|
1425
|
+
});
|
|
1426
|
+
return r.length ? r.reduce((n, o) => {
|
|
1427
|
+
const a = t[o];
|
|
1428
|
+
return delete n[o], n[o] = a, n;
|
|
1429
|
+
}, {
|
|
1430
|
+
...t
|
|
1431
|
+
}) : t;
|
|
1432
|
+
}
|
|
1433
|
+
function tn(e, t) {
|
|
1434
|
+
return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
|
|
1435
|
+
}
|
|
1436
|
+
function rn(e, t) {
|
|
1437
|
+
const r = t.match(/^@([^/]+)?\/?(.+)?$/);
|
|
1438
|
+
if (!r) {
|
|
1439
|
+
if (process.env.NODE_ENV !== "production")
|
|
1440
|
+
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>\`.
|
|
1441
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : ge(18, `(${t})`));
|
|
1442
|
+
return null;
|
|
1443
|
+
}
|
|
1444
|
+
const [, n, o] = r, a = Number.isNaN(+n) ? n || 0 : +n;
|
|
1445
|
+
return e.containerQueries(o).up(a);
|
|
1446
|
+
}
|
|
1447
|
+
function nn(e) {
|
|
1448
|
+
const t = (a, s) => a.replace("@media", s ? `@container ${s}` : "@container");
|
|
1449
|
+
function r(a, s) {
|
|
1450
|
+
a.up = (...c) => t(e.breakpoints.up(...c), s), a.down = (...c) => t(e.breakpoints.down(...c), s), a.between = (...c) => t(e.breakpoints.between(...c), s), a.only = (...c) => t(e.breakpoints.only(...c), s), a.not = (...c) => {
|
|
1451
|
+
const f = t(e.breakpoints.not(...c), s);
|
|
1452
|
+
return f.includes("not all and") ? f.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : f;
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
const n = {}, o = (a) => (r(n, a), n);
|
|
1456
|
+
return r(o), {
|
|
1457
|
+
...e,
|
|
1458
|
+
containerQueries: o
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
const qe = {
|
|
1462
|
+
xs: 0,
|
|
1463
|
+
// phone
|
|
1464
|
+
sm: 600,
|
|
1465
|
+
// tablet
|
|
1466
|
+
md: 900,
|
|
1467
|
+
// small laptop
|
|
1468
|
+
lg: 1200,
|
|
1469
|
+
// desktop
|
|
1470
|
+
xl: 1536
|
|
1471
|
+
// large screen
|
|
1472
|
+
}, Ut = {
|
|
1473
|
+
// Sorted ASC by size. That's important.
|
|
1474
|
+
// It can't be configured as it's used statically for propTypes.
|
|
1475
|
+
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
1476
|
+
up: (e) => `@media (min-width:${qe[e]}px)`
|
|
1477
|
+
}, on = {
|
|
1478
|
+
containerQueries: (e) => ({
|
|
1479
|
+
up: (t) => {
|
|
1480
|
+
let r = typeof t == "number" ? t : qe[t] || t;
|
|
1481
|
+
return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`;
|
|
1482
|
+
}
|
|
1483
|
+
})
|
|
1484
|
+
};
|
|
1485
|
+
function pe(e, t, r) {
|
|
1486
|
+
const n = e.theme || {};
|
|
1487
|
+
if (Array.isArray(t)) {
|
|
1488
|
+
const a = n.breakpoints || Ut;
|
|
1489
|
+
return t.reduce((s, c, f) => (s[a.up(a.keys[f])] = r(t[f]), s), {});
|
|
1490
|
+
}
|
|
1491
|
+
if (typeof t == "object") {
|
|
1492
|
+
const a = n.breakpoints || Ut;
|
|
1493
|
+
return Object.keys(t).reduce((s, c) => {
|
|
1494
|
+
if (tn(a.keys, c)) {
|
|
1495
|
+
const f = rn(n.containerQueries ? n : on, c);
|
|
1496
|
+
f && (s[f] = r(t[c], c));
|
|
1497
|
+
} else if (Object.keys(a.values || qe).includes(c)) {
|
|
1498
|
+
const f = a.up(c);
|
|
1499
|
+
s[f] = r(t[c], c);
|
|
1500
|
+
} else {
|
|
1501
|
+
const f = c;
|
|
1502
|
+
s[f] = t[f];
|
|
1503
|
+
}
|
|
1504
|
+
return s;
|
|
1505
|
+
}, {});
|
|
1506
|
+
}
|
|
1507
|
+
return r(t);
|
|
1508
|
+
}
|
|
1509
|
+
function an(e = {}) {
|
|
1510
|
+
return e.keys?.reduce((r, n) => {
|
|
1511
|
+
const o = e.up(n);
|
|
1512
|
+
return r[o] = {}, r;
|
|
1513
|
+
}, {}) || {};
|
|
1514
|
+
}
|
|
1515
|
+
function Gt(e, t) {
|
|
1516
|
+
return e.reduce((r, n) => {
|
|
1517
|
+
const o = r[n];
|
|
1518
|
+
return (!o || Object.keys(o).length === 0) && delete r[n], r;
|
|
1519
|
+
}, t);
|
|
1520
|
+
}
|
|
1521
|
+
function fr(e) {
|
|
1522
|
+
if (typeof e != "string")
|
|
1523
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ge(7));
|
|
1524
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1525
|
+
}
|
|
1526
|
+
function Ke(e, t, r = !0) {
|
|
1527
|
+
if (!t || typeof t != "string")
|
|
1528
|
+
return null;
|
|
1529
|
+
if (e && e.vars && r) {
|
|
1530
|
+
const n = `vars.${t}`.split(".").reduce((o, a) => o && o[a] ? o[a] : null, e);
|
|
1531
|
+
if (n != null)
|
|
1532
|
+
return n;
|
|
1533
|
+
}
|
|
1534
|
+
return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
|
|
1535
|
+
}
|
|
1536
|
+
function ze(e, t, r, n = r) {
|
|
1537
|
+
let o;
|
|
1538
|
+
return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = Ke(e, r) || n, t && (o = t(o, n, e)), o;
|
|
1539
|
+
}
|
|
1540
|
+
function Q(e) {
|
|
1541
|
+
const {
|
|
1542
|
+
prop: t,
|
|
1543
|
+
cssProperty: r = e.prop,
|
|
1544
|
+
themeKey: n,
|
|
1545
|
+
transform: o
|
|
1546
|
+
} = e, a = (s) => {
|
|
1547
|
+
if (s[t] == null)
|
|
1548
|
+
return null;
|
|
1549
|
+
const c = s[t], f = s.theme, d = Ke(f, n) || {};
|
|
1550
|
+
return pe(s, c, (p) => {
|
|
1551
|
+
let m = ze(d, o, p);
|
|
1552
|
+
return p === m && typeof p == "string" && (m = ze(d, o, `${t}${p === "default" ? "" : fr(p)}`, p)), r === !1 ? m : {
|
|
1553
|
+
[r]: m
|
|
1554
|
+
};
|
|
1555
|
+
});
|
|
1556
|
+
};
|
|
1557
|
+
return a.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1558
|
+
[t]: ye
|
|
1559
|
+
} : {}, a.filterProps = [t], a;
|
|
1560
|
+
}
|
|
1561
|
+
function sn(e) {
|
|
1562
|
+
const t = {};
|
|
1563
|
+
return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
|
|
1564
|
+
}
|
|
1565
|
+
const cn = {
|
|
1566
|
+
m: "margin",
|
|
1567
|
+
p: "padding"
|
|
1568
|
+
}, ln = {
|
|
1569
|
+
t: "Top",
|
|
1570
|
+
r: "Right",
|
|
1571
|
+
b: "Bottom",
|
|
1572
|
+
l: "Left",
|
|
1573
|
+
x: ["Left", "Right"],
|
|
1574
|
+
y: ["Top", "Bottom"]
|
|
1575
|
+
}, Yt = {
|
|
1576
|
+
marginX: "mx",
|
|
1577
|
+
marginY: "my",
|
|
1578
|
+
paddingX: "px",
|
|
1579
|
+
paddingY: "py"
|
|
1580
|
+
}, un = sn((e) => {
|
|
1581
|
+
if (e.length > 2)
|
|
1582
|
+
if (Yt[e])
|
|
1583
|
+
e = Yt[e];
|
|
1584
|
+
else
|
|
1585
|
+
return [e];
|
|
1586
|
+
const [t, r] = e.split(""), n = cn[t], o = ln[r] || "";
|
|
1587
|
+
return Array.isArray(o) ? o.map((a) => n + a) : [n + o];
|
|
1588
|
+
}), He = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Qe = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], fn = [...He, ...Qe];
|
|
1589
|
+
function ke(e, t, r, n) {
|
|
1590
|
+
const o = Ke(e, t, !0) ?? r;
|
|
1591
|
+
return typeof o == "number" || typeof o == "string" ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && typeof a != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`), typeof o == "string" ? o.startsWith("var(") && a === 0 ? 0 : o.startsWith("var(") && a === 1 ? o : `calc(${a} * ${o})` : o * a) : Array.isArray(o) ? (a) => {
|
|
1592
|
+
if (typeof a == "string")
|
|
1593
|
+
return a;
|
|
1594
|
+
const s = Math.abs(a);
|
|
1595
|
+
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(`
|
|
1596
|
+
`)) : 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(`
|
|
1597
|
+
`)));
|
|
1598
|
+
const c = o[s];
|
|
1599
|
+
return a >= 0 ? c : typeof c == "number" ? -c : typeof c == "string" && c.startsWith("var(") ? `calc(-1 * ${c})` : `-${c}`;
|
|
1600
|
+
} : 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(`
|
|
1601
|
+
`)), () => {
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
function Ct(e) {
|
|
1605
|
+
return ke(e, "spacing", 8, "spacing");
|
|
1606
|
+
}
|
|
1607
|
+
function Ie(e, t) {
|
|
1608
|
+
return typeof t == "string" || t == null ? t : e(t);
|
|
1609
|
+
}
|
|
1610
|
+
function dn(e, t) {
|
|
1611
|
+
return (r) => e.reduce((n, o) => (n[o] = Ie(t, r), n), {});
|
|
1612
|
+
}
|
|
1613
|
+
function pn(e, t, r, n) {
|
|
1614
|
+
if (!t.includes(r))
|
|
1615
|
+
return null;
|
|
1616
|
+
const o = un(r), a = dn(o, n), s = e[r];
|
|
1617
|
+
return pe(e, s, a);
|
|
1618
|
+
}
|
|
1619
|
+
function dr(e, t) {
|
|
1620
|
+
const r = Ct(e.theme);
|
|
1621
|
+
return Object.keys(e).map((n) => pn(e, t, n, r)).reduce(Pe, {});
|
|
1622
|
+
}
|
|
1623
|
+
function K(e) {
|
|
1624
|
+
return dr(e, He);
|
|
1625
|
+
}
|
|
1626
|
+
K.propTypes = process.env.NODE_ENV !== "production" ? He.reduce((e, t) => (e[t] = ye, e), {}) : {};
|
|
1627
|
+
K.filterProps = He;
|
|
1628
|
+
function H(e) {
|
|
1629
|
+
return dr(e, Qe);
|
|
1630
|
+
}
|
|
1631
|
+
H.propTypes = process.env.NODE_ENV !== "production" ? Qe.reduce((e, t) => (e[t] = ye, e), {}) : {};
|
|
1632
|
+
H.filterProps = Qe;
|
|
1633
|
+
process.env.NODE_ENV !== "production" && fn.reduce((e, t) => (e[t] = ye, e), {});
|
|
1634
|
+
const mn = {
|
|
1635
|
+
borderRadius: 4
|
|
1636
|
+
};
|
|
1637
|
+
function gn(e = 8, t = Ct({
|
|
1638
|
+
spacing: e
|
|
1639
|
+
})) {
|
|
1640
|
+
if (e.mui)
|
|
1641
|
+
return e;
|
|
1642
|
+
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((a) => {
|
|
1643
|
+
const s = t(a);
|
|
1644
|
+
return typeof s == "number" ? `${s}px` : s;
|
|
1645
|
+
}).join(" "));
|
|
1646
|
+
return r.mui = !0, r;
|
|
1647
|
+
}
|
|
1648
|
+
function Xe(...e) {
|
|
1649
|
+
const t = e.reduce((n, o) => (o.filterProps.forEach((a) => {
|
|
1650
|
+
n[a] = o;
|
|
1651
|
+
}), n), {}), r = (n) => Object.keys(n).reduce((o, a) => t[a] ? Pe(o, t[a](n)) : o, {});
|
|
1652
|
+
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;
|
|
1653
|
+
}
|
|
1654
|
+
function ie(e) {
|
|
1655
|
+
return typeof e != "number" ? e : `${e}px solid`;
|
|
1656
|
+
}
|
|
1657
|
+
function ae(e, t) {
|
|
1658
|
+
return Q({
|
|
1659
|
+
prop: e,
|
|
1660
|
+
themeKey: "borders",
|
|
1661
|
+
transform: t
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
const hn = ae("border", ie), yn = ae("borderTop", ie), bn = ae("borderRight", ie), vn = ae("borderBottom", ie), Sn = ae("borderLeft", ie), En = ae("borderColor"), Cn = ae("borderTopColor"), Tn = ae("borderRightColor"), xn = ae("borderBottomColor"), wn = ae("borderLeftColor"), $n = ae("outline", ie), On = ae("outlineColor"), Je = (e) => {
|
|
1665
|
+
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
1666
|
+
const t = ke(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
|
|
1667
|
+
borderRadius: Ie(t, n)
|
|
1668
|
+
});
|
|
1669
|
+
return pe(e, e.borderRadius, r);
|
|
1670
|
+
}
|
|
1671
|
+
return null;
|
|
1672
|
+
};
|
|
1673
|
+
Je.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1674
|
+
borderRadius: ye
|
|
1675
|
+
} : {};
|
|
1676
|
+
Je.filterProps = ["borderRadius"];
|
|
1677
|
+
Xe(hn, yn, bn, vn, Sn, En, Cn, Tn, xn, wn, Je, $n, On);
|
|
1678
|
+
const Ze = (e) => {
|
|
1679
|
+
if (e.gap !== void 0 && e.gap !== null) {
|
|
1680
|
+
const t = ke(e.theme, "spacing", 8, "gap"), r = (n) => ({
|
|
1681
|
+
gap: Ie(t, n)
|
|
1682
|
+
});
|
|
1683
|
+
return pe(e, e.gap, r);
|
|
1684
|
+
}
|
|
1685
|
+
return null;
|
|
1686
|
+
};
|
|
1687
|
+
Ze.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1688
|
+
gap: ye
|
|
1689
|
+
} : {};
|
|
1690
|
+
Ze.filterProps = ["gap"];
|
|
1691
|
+
const et = (e) => {
|
|
1692
|
+
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
1693
|
+
const t = ke(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
|
|
1694
|
+
columnGap: Ie(t, n)
|
|
1695
|
+
});
|
|
1696
|
+
return pe(e, e.columnGap, r);
|
|
1697
|
+
}
|
|
1698
|
+
return null;
|
|
1699
|
+
};
|
|
1700
|
+
et.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1701
|
+
columnGap: ye
|
|
1702
|
+
} : {};
|
|
1703
|
+
et.filterProps = ["columnGap"];
|
|
1704
|
+
const tt = (e) => {
|
|
1705
|
+
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
1706
|
+
const t = ke(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
|
|
1707
|
+
rowGap: Ie(t, n)
|
|
1708
|
+
});
|
|
1709
|
+
return pe(e, e.rowGap, r);
|
|
1710
|
+
}
|
|
1711
|
+
return null;
|
|
1712
|
+
};
|
|
1713
|
+
tt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1714
|
+
rowGap: ye
|
|
1715
|
+
} : {};
|
|
1716
|
+
tt.filterProps = ["rowGap"];
|
|
1717
|
+
const _n = Q({
|
|
1718
|
+
prop: "gridColumn"
|
|
1719
|
+
}), An = Q({
|
|
1720
|
+
prop: "gridRow"
|
|
1721
|
+
}), Pn = Q({
|
|
1722
|
+
prop: "gridAutoFlow"
|
|
1723
|
+
}), Rn = Q({
|
|
1724
|
+
prop: "gridAutoColumns"
|
|
1725
|
+
}), kn = Q({
|
|
1726
|
+
prop: "gridAutoRows"
|
|
1727
|
+
}), In = Q({
|
|
1728
|
+
prop: "gridTemplateColumns"
|
|
1729
|
+
}), Mn = Q({
|
|
1730
|
+
prop: "gridTemplateRows"
|
|
1731
|
+
}), Bn = Q({
|
|
1732
|
+
prop: "gridTemplateAreas"
|
|
1733
|
+
}), Dn = Q({
|
|
1734
|
+
prop: "gridArea"
|
|
1735
|
+
});
|
|
1736
|
+
Xe(Ze, et, tt, _n, An, Pn, Rn, kn, In, Mn, Bn, Dn);
|
|
1737
|
+
function we(e, t) {
|
|
1738
|
+
return t === "grey" ? t : e;
|
|
1739
|
+
}
|
|
1740
|
+
const Nn = Q({
|
|
1741
|
+
prop: "color",
|
|
1742
|
+
themeKey: "palette",
|
|
1743
|
+
transform: we
|
|
1744
|
+
}), Fn = Q({
|
|
1745
|
+
prop: "bgcolor",
|
|
1746
|
+
cssProperty: "backgroundColor",
|
|
1747
|
+
themeKey: "palette",
|
|
1748
|
+
transform: we
|
|
1749
|
+
}), jn = Q({
|
|
1750
|
+
prop: "backgroundColor",
|
|
1751
|
+
themeKey: "palette",
|
|
1752
|
+
transform: we
|
|
1753
|
+
});
|
|
1754
|
+
Xe(Nn, Fn, jn);
|
|
1755
|
+
function ne(e) {
|
|
1756
|
+
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
1757
|
+
}
|
|
1758
|
+
const Ln = Q({
|
|
1759
|
+
prop: "width",
|
|
1760
|
+
transform: ne
|
|
1761
|
+
}), Tt = (e) => {
|
|
1762
|
+
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
1763
|
+
const t = (r) => {
|
|
1764
|
+
const n = e.theme?.breakpoints?.values?.[r] || qe[r];
|
|
1765
|
+
return n ? e.theme?.breakpoints?.unit !== "px" ? {
|
|
1766
|
+
maxWidth: `${n}${e.theme.breakpoints.unit}`
|
|
1767
|
+
} : {
|
|
1768
|
+
maxWidth: n
|
|
1769
|
+
} : {
|
|
1770
|
+
maxWidth: ne(r)
|
|
1771
|
+
};
|
|
1772
|
+
};
|
|
1773
|
+
return pe(e, e.maxWidth, t);
|
|
1774
|
+
}
|
|
1775
|
+
return null;
|
|
1776
|
+
};
|
|
1777
|
+
Tt.filterProps = ["maxWidth"];
|
|
1778
|
+
const Vn = Q({
|
|
1779
|
+
prop: "minWidth",
|
|
1780
|
+
transform: ne
|
|
1781
|
+
}), Wn = Q({
|
|
1782
|
+
prop: "height",
|
|
1783
|
+
transform: ne
|
|
1784
|
+
}), zn = Q({
|
|
1785
|
+
prop: "maxHeight",
|
|
1786
|
+
transform: ne
|
|
1787
|
+
}), Un = Q({
|
|
1788
|
+
prop: "minHeight",
|
|
1789
|
+
transform: ne
|
|
1790
|
+
});
|
|
1791
|
+
Q({
|
|
1792
|
+
prop: "size",
|
|
1793
|
+
cssProperty: "width",
|
|
1794
|
+
transform: ne
|
|
1795
|
+
});
|
|
1796
|
+
Q({
|
|
1797
|
+
prop: "size",
|
|
1798
|
+
cssProperty: "height",
|
|
1799
|
+
transform: ne
|
|
1800
|
+
});
|
|
1801
|
+
const Gn = Q({
|
|
1802
|
+
prop: "boxSizing"
|
|
1803
|
+
});
|
|
1804
|
+
Xe(Ln, Tt, Vn, Wn, zn, Un, Gn);
|
|
1805
|
+
const rt = {
|
|
1806
|
+
// borders
|
|
1807
|
+
border: {
|
|
1808
|
+
themeKey: "borders",
|
|
1809
|
+
transform: ie
|
|
1810
|
+
},
|
|
1811
|
+
borderTop: {
|
|
1812
|
+
themeKey: "borders",
|
|
1813
|
+
transform: ie
|
|
1814
|
+
},
|
|
1815
|
+
borderRight: {
|
|
1816
|
+
themeKey: "borders",
|
|
1817
|
+
transform: ie
|
|
1818
|
+
},
|
|
1819
|
+
borderBottom: {
|
|
1820
|
+
themeKey: "borders",
|
|
1821
|
+
transform: ie
|
|
1822
|
+
},
|
|
1823
|
+
borderLeft: {
|
|
1824
|
+
themeKey: "borders",
|
|
1825
|
+
transform: ie
|
|
1826
|
+
},
|
|
1827
|
+
borderColor: {
|
|
1828
|
+
themeKey: "palette"
|
|
1829
|
+
},
|
|
1830
|
+
borderTopColor: {
|
|
1831
|
+
themeKey: "palette"
|
|
1832
|
+
},
|
|
1833
|
+
borderRightColor: {
|
|
1834
|
+
themeKey: "palette"
|
|
1835
|
+
},
|
|
1836
|
+
borderBottomColor: {
|
|
1837
|
+
themeKey: "palette"
|
|
1838
|
+
},
|
|
1839
|
+
borderLeftColor: {
|
|
1840
|
+
themeKey: "palette"
|
|
1841
|
+
},
|
|
1842
|
+
outline: {
|
|
1843
|
+
themeKey: "borders",
|
|
1844
|
+
transform: ie
|
|
1845
|
+
},
|
|
1846
|
+
outlineColor: {
|
|
1847
|
+
themeKey: "palette"
|
|
1848
|
+
},
|
|
1849
|
+
borderRadius: {
|
|
1850
|
+
themeKey: "shape.borderRadius",
|
|
1851
|
+
style: Je
|
|
1852
|
+
},
|
|
1853
|
+
// palette
|
|
1854
|
+
color: {
|
|
1855
|
+
themeKey: "palette",
|
|
1856
|
+
transform: we
|
|
1857
|
+
},
|
|
1858
|
+
bgcolor: {
|
|
1859
|
+
themeKey: "palette",
|
|
1860
|
+
cssProperty: "backgroundColor",
|
|
1861
|
+
transform: we
|
|
1862
|
+
},
|
|
1863
|
+
backgroundColor: {
|
|
1864
|
+
themeKey: "palette",
|
|
1865
|
+
transform: we
|
|
1866
|
+
},
|
|
1867
|
+
// spacing
|
|
1868
|
+
p: {
|
|
1869
|
+
style: H
|
|
1870
|
+
},
|
|
1871
|
+
pt: {
|
|
1872
|
+
style: H
|
|
1873
|
+
},
|
|
1874
|
+
pr: {
|
|
1875
|
+
style: H
|
|
1876
|
+
},
|
|
1877
|
+
pb: {
|
|
1878
|
+
style: H
|
|
1879
|
+
},
|
|
1880
|
+
pl: {
|
|
1881
|
+
style: H
|
|
1882
|
+
},
|
|
1883
|
+
px: {
|
|
1884
|
+
style: H
|
|
1885
|
+
},
|
|
1886
|
+
py: {
|
|
1887
|
+
style: H
|
|
1888
|
+
},
|
|
1889
|
+
padding: {
|
|
1890
|
+
style: H
|
|
1891
|
+
},
|
|
1892
|
+
paddingTop: {
|
|
1893
|
+
style: H
|
|
1894
|
+
},
|
|
1895
|
+
paddingRight: {
|
|
1896
|
+
style: H
|
|
1897
|
+
},
|
|
1898
|
+
paddingBottom: {
|
|
1899
|
+
style: H
|
|
1900
|
+
},
|
|
1901
|
+
paddingLeft: {
|
|
1902
|
+
style: H
|
|
1903
|
+
},
|
|
1904
|
+
paddingX: {
|
|
1905
|
+
style: H
|
|
1906
|
+
},
|
|
1907
|
+
paddingY: {
|
|
1908
|
+
style: H
|
|
1909
|
+
},
|
|
1910
|
+
paddingInline: {
|
|
1911
|
+
style: H
|
|
1912
|
+
},
|
|
1913
|
+
paddingInlineStart: {
|
|
1914
|
+
style: H
|
|
1915
|
+
},
|
|
1916
|
+
paddingInlineEnd: {
|
|
1917
|
+
style: H
|
|
1918
|
+
},
|
|
1919
|
+
paddingBlock: {
|
|
1920
|
+
style: H
|
|
1921
|
+
},
|
|
1922
|
+
paddingBlockStart: {
|
|
1923
|
+
style: H
|
|
1924
|
+
},
|
|
1925
|
+
paddingBlockEnd: {
|
|
1926
|
+
style: H
|
|
1927
|
+
},
|
|
1928
|
+
m: {
|
|
1929
|
+
style: K
|
|
1930
|
+
},
|
|
1931
|
+
mt: {
|
|
1932
|
+
style: K
|
|
1933
|
+
},
|
|
1934
|
+
mr: {
|
|
1935
|
+
style: K
|
|
1936
|
+
},
|
|
1937
|
+
mb: {
|
|
1938
|
+
style: K
|
|
1939
|
+
},
|
|
1940
|
+
ml: {
|
|
1941
|
+
style: K
|
|
1942
|
+
},
|
|
1943
|
+
mx: {
|
|
1944
|
+
style: K
|
|
1945
|
+
},
|
|
1946
|
+
my: {
|
|
1947
|
+
style: K
|
|
1948
|
+
},
|
|
1949
|
+
margin: {
|
|
1950
|
+
style: K
|
|
1951
|
+
},
|
|
1952
|
+
marginTop: {
|
|
1953
|
+
style: K
|
|
1954
|
+
},
|
|
1955
|
+
marginRight: {
|
|
1956
|
+
style: K
|
|
1957
|
+
},
|
|
1958
|
+
marginBottom: {
|
|
1959
|
+
style: K
|
|
1960
|
+
},
|
|
1961
|
+
marginLeft: {
|
|
1962
|
+
style: K
|
|
1963
|
+
},
|
|
1964
|
+
marginX: {
|
|
1965
|
+
style: K
|
|
1966
|
+
},
|
|
1967
|
+
marginY: {
|
|
1968
|
+
style: K
|
|
1969
|
+
},
|
|
1970
|
+
marginInline: {
|
|
1971
|
+
style: K
|
|
1972
|
+
},
|
|
1973
|
+
marginInlineStart: {
|
|
1974
|
+
style: K
|
|
1975
|
+
},
|
|
1976
|
+
marginInlineEnd: {
|
|
1977
|
+
style: K
|
|
1978
|
+
},
|
|
1979
|
+
marginBlock: {
|
|
1980
|
+
style: K
|
|
1981
|
+
},
|
|
1982
|
+
marginBlockStart: {
|
|
1983
|
+
style: K
|
|
1984
|
+
},
|
|
1985
|
+
marginBlockEnd: {
|
|
1986
|
+
style: K
|
|
1987
|
+
},
|
|
1988
|
+
// display
|
|
1989
|
+
displayPrint: {
|
|
1990
|
+
cssProperty: !1,
|
|
1991
|
+
transform: (e) => ({
|
|
1992
|
+
"@media print": {
|
|
1993
|
+
display: e
|
|
1994
|
+
}
|
|
1995
|
+
})
|
|
1996
|
+
},
|
|
1997
|
+
display: {},
|
|
1998
|
+
overflow: {},
|
|
1999
|
+
textOverflow: {},
|
|
2000
|
+
visibility: {},
|
|
2001
|
+
whiteSpace: {},
|
|
2002
|
+
// flexbox
|
|
2003
|
+
flexBasis: {},
|
|
2004
|
+
flexDirection: {},
|
|
2005
|
+
flexWrap: {},
|
|
2006
|
+
justifyContent: {},
|
|
2007
|
+
alignItems: {},
|
|
2008
|
+
alignContent: {},
|
|
2009
|
+
order: {},
|
|
2010
|
+
flex: {},
|
|
2011
|
+
flexGrow: {},
|
|
2012
|
+
flexShrink: {},
|
|
2013
|
+
alignSelf: {},
|
|
2014
|
+
justifyItems: {},
|
|
2015
|
+
justifySelf: {},
|
|
2016
|
+
// grid
|
|
2017
|
+
gap: {
|
|
2018
|
+
style: Ze
|
|
2019
|
+
},
|
|
2020
|
+
rowGap: {
|
|
2021
|
+
style: tt
|
|
2022
|
+
},
|
|
2023
|
+
columnGap: {
|
|
2024
|
+
style: et
|
|
2025
|
+
},
|
|
2026
|
+
gridColumn: {},
|
|
2027
|
+
gridRow: {},
|
|
2028
|
+
gridAutoFlow: {},
|
|
2029
|
+
gridAutoColumns: {},
|
|
2030
|
+
gridAutoRows: {},
|
|
2031
|
+
gridTemplateColumns: {},
|
|
2032
|
+
gridTemplateRows: {},
|
|
2033
|
+
gridTemplateAreas: {},
|
|
2034
|
+
gridArea: {},
|
|
2035
|
+
// positions
|
|
2036
|
+
position: {},
|
|
2037
|
+
zIndex: {
|
|
2038
|
+
themeKey: "zIndex"
|
|
2039
|
+
},
|
|
2040
|
+
top: {},
|
|
2041
|
+
right: {},
|
|
2042
|
+
bottom: {},
|
|
2043
|
+
left: {},
|
|
2044
|
+
// shadows
|
|
2045
|
+
boxShadow: {
|
|
2046
|
+
themeKey: "shadows"
|
|
2047
|
+
},
|
|
2048
|
+
// sizing
|
|
2049
|
+
width: {
|
|
2050
|
+
transform: ne
|
|
2051
|
+
},
|
|
2052
|
+
maxWidth: {
|
|
2053
|
+
style: Tt
|
|
2054
|
+
},
|
|
2055
|
+
minWidth: {
|
|
2056
|
+
transform: ne
|
|
2057
|
+
},
|
|
2058
|
+
height: {
|
|
2059
|
+
transform: ne
|
|
2060
|
+
},
|
|
2061
|
+
maxHeight: {
|
|
2062
|
+
transform: ne
|
|
2063
|
+
},
|
|
2064
|
+
minHeight: {
|
|
2065
|
+
transform: ne
|
|
2066
|
+
},
|
|
2067
|
+
boxSizing: {},
|
|
2068
|
+
// typography
|
|
2069
|
+
font: {
|
|
2070
|
+
themeKey: "font"
|
|
2071
|
+
},
|
|
2072
|
+
fontFamily: {
|
|
2073
|
+
themeKey: "typography"
|
|
2074
|
+
},
|
|
2075
|
+
fontSize: {
|
|
2076
|
+
themeKey: "typography"
|
|
2077
|
+
},
|
|
2078
|
+
fontStyle: {
|
|
2079
|
+
themeKey: "typography"
|
|
2080
|
+
},
|
|
2081
|
+
fontWeight: {
|
|
2082
|
+
themeKey: "typography"
|
|
2083
|
+
},
|
|
2084
|
+
letterSpacing: {},
|
|
2085
|
+
textTransform: {},
|
|
2086
|
+
lineHeight: {},
|
|
2087
|
+
textAlign: {},
|
|
2088
|
+
typography: {
|
|
2089
|
+
cssProperty: !1,
|
|
2090
|
+
themeKey: "typography"
|
|
2091
|
+
}
|
|
2092
|
+
};
|
|
2093
|
+
function Yn(...e) {
|
|
2094
|
+
const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
|
|
2095
|
+
return e.every((n) => r.size === Object.keys(n).length);
|
|
2096
|
+
}
|
|
2097
|
+
function qn(e, t) {
|
|
2098
|
+
return typeof e == "function" ? e(t) : e;
|
|
2099
|
+
}
|
|
2100
|
+
function Kn() {
|
|
2101
|
+
function e(r, n, o, a) {
|
|
2102
|
+
const s = {
|
|
2103
|
+
[r]: n,
|
|
2104
|
+
theme: o
|
|
2105
|
+
}, c = a[r];
|
|
2106
|
+
if (!c)
|
|
2107
|
+
return {
|
|
2108
|
+
[r]: n
|
|
2109
|
+
};
|
|
2110
|
+
const {
|
|
2111
|
+
cssProperty: f = r,
|
|
2112
|
+
themeKey: d,
|
|
2113
|
+
transform: g,
|
|
2114
|
+
style: p
|
|
2115
|
+
} = c;
|
|
2116
|
+
if (n == null)
|
|
2117
|
+
return null;
|
|
2118
|
+
if (d === "typography" && n === "inherit")
|
|
2119
|
+
return {
|
|
2120
|
+
[r]: n
|
|
2121
|
+
};
|
|
2122
|
+
const m = Ke(o, d) || {};
|
|
2123
|
+
return p ? p(s) : pe(s, n, (b) => {
|
|
2124
|
+
let l = ze(m, g, b);
|
|
2125
|
+
return b === l && typeof b == "string" && (l = ze(m, g, `${r}${b === "default" ? "" : fr(b)}`, b)), f === !1 ? l : {
|
|
2126
|
+
[f]: l
|
|
2127
|
+
};
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
function t(r) {
|
|
2131
|
+
const {
|
|
2132
|
+
sx: n,
|
|
2133
|
+
theme: o = {},
|
|
2134
|
+
nested: a
|
|
2135
|
+
} = r || {};
|
|
2136
|
+
if (!n)
|
|
2137
|
+
return null;
|
|
2138
|
+
const s = o.unstable_sxConfig ?? rt;
|
|
2139
|
+
function c(f) {
|
|
2140
|
+
let d = f;
|
|
2141
|
+
if (typeof f == "function")
|
|
2142
|
+
d = f(o);
|
|
2143
|
+
else if (typeof f != "object")
|
|
2144
|
+
return f;
|
|
2145
|
+
if (!d)
|
|
2146
|
+
return null;
|
|
2147
|
+
const g = an(o.breakpoints), p = Object.keys(g);
|
|
2148
|
+
let m = g;
|
|
2149
|
+
return Object.keys(d).forEach((v) => {
|
|
2150
|
+
const b = qn(d[v], o);
|
|
2151
|
+
if (b != null)
|
|
2152
|
+
if (typeof b == "object")
|
|
2153
|
+
if (s[v])
|
|
2154
|
+
m = Pe(m, e(v, b, o, s));
|
|
2155
|
+
else {
|
|
2156
|
+
const l = pe({
|
|
2157
|
+
theme: o
|
|
2158
|
+
}, b, (E) => ({
|
|
2159
|
+
[v]: E
|
|
2160
|
+
}));
|
|
2161
|
+
Yn(l, b) ? m[v] = t({
|
|
2162
|
+
sx: b,
|
|
2163
|
+
theme: o,
|
|
2164
|
+
nested: !0
|
|
2165
|
+
}) : m = Pe(m, l);
|
|
2166
|
+
}
|
|
2167
|
+
else
|
|
2168
|
+
m = Pe(m, e(v, b, o, s));
|
|
2169
|
+
}), !a && o.modularCssLayers ? {
|
|
2170
|
+
"@layer sx": zt(o, Gt(p, m))
|
|
2171
|
+
} : zt(o, Gt(p, m));
|
|
2172
|
+
}
|
|
2173
|
+
return Array.isArray(n) ? n.map(c) : c(n);
|
|
2174
|
+
}
|
|
2175
|
+
return t;
|
|
2176
|
+
}
|
|
2177
|
+
const nt = Kn();
|
|
2178
|
+
nt.filterProps = ["sx"];
|
|
2179
|
+
function Hn(e, t) {
|
|
2180
|
+
const r = this;
|
|
2181
|
+
if (r.vars) {
|
|
2182
|
+
if (!r.colorSchemes?.[e] || typeof r.getColorSchemeSelector != "function")
|
|
2183
|
+
return {};
|
|
2184
|
+
let n = r.getColorSchemeSelector(e);
|
|
2185
|
+
return n === "&" ? t : ((n.includes("data-") || n.includes(".")) && (n = `*:where(${n.replace(/\s*&$/, "")}) &`), {
|
|
2186
|
+
[n]: t
|
|
2187
|
+
});
|
|
2188
|
+
}
|
|
2189
|
+
return r.palette.mode === e ? t : {};
|
|
2190
|
+
}
|
|
2191
|
+
function Qn(e = {}, ...t) {
|
|
2192
|
+
const {
|
|
2193
|
+
breakpoints: r = {},
|
|
2194
|
+
palette: n = {},
|
|
2195
|
+
spacing: o,
|
|
2196
|
+
shape: a = {},
|
|
2197
|
+
...s
|
|
2198
|
+
} = e, c = Pr(r), f = gn(o);
|
|
2199
|
+
let d = oe({
|
|
2200
|
+
breakpoints: c,
|
|
2201
|
+
direction: "ltr",
|
|
2202
|
+
components: {},
|
|
2203
|
+
// Inject component definitions.
|
|
2204
|
+
palette: {
|
|
2205
|
+
mode: "light",
|
|
2206
|
+
...n
|
|
2207
|
+
},
|
|
2208
|
+
spacing: f,
|
|
2209
|
+
shape: {
|
|
2210
|
+
...mn,
|
|
2211
|
+
...a
|
|
2212
|
+
}
|
|
2213
|
+
}, s);
|
|
2214
|
+
return d = nn(d), d.applyStyles = Hn, d = t.reduce((g, p) => oe(g, p), d), d.unstable_sxConfig = {
|
|
2215
|
+
...rt,
|
|
2216
|
+
...s?.unstable_sxConfig
|
|
2217
|
+
}, d.unstable_sx = function(p) {
|
|
2218
|
+
return nt({
|
|
2219
|
+
sx: p,
|
|
2220
|
+
theme: this
|
|
2221
|
+
});
|
|
2222
|
+
}, d;
|
|
2223
|
+
}
|
|
2224
|
+
const qt = (e, t, r, n = []) => {
|
|
2225
|
+
let o = e;
|
|
2226
|
+
t.forEach((a, s) => {
|
|
2227
|
+
s === t.length - 1 ? Array.isArray(o) ? o[Number(a)] = r : o && typeof o == "object" && (o[a] = r) : o && typeof o == "object" && (o[a] || (o[a] = n.includes(a) ? [] : {}), o = o[a]);
|
|
2228
|
+
});
|
|
2229
|
+
}, Xn = (e, t, r) => {
|
|
2230
|
+
function n(o, a = [], s = []) {
|
|
2231
|
+
Object.entries(o).forEach(([c, f]) => {
|
|
2232
|
+
(!r || r && !r([...a, c])) && f != null && (typeof f == "object" && Object.keys(f).length > 0 ? n(f, [...a, c], Array.isArray(f) ? [...s, c] : s) : t([...a, c], f, s));
|
|
2233
|
+
});
|
|
2234
|
+
}
|
|
2235
|
+
n(e);
|
|
2236
|
+
}, Jn = (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;
|
|
2237
|
+
function ft(e, t) {
|
|
2238
|
+
const {
|
|
2239
|
+
prefix: r,
|
|
2240
|
+
shouldSkipGeneratingVar: n
|
|
2241
|
+
} = t || {}, o = {}, a = {}, s = {};
|
|
2242
|
+
return Xn(
|
|
2243
|
+
e,
|
|
2244
|
+
(c, f, d) => {
|
|
2245
|
+
if ((typeof f == "string" || typeof f == "number") && (!n || !n(c, f))) {
|
|
2246
|
+
const g = `--${r ? `${r}-` : ""}${c.join("-")}`, p = Jn(c, f);
|
|
2247
|
+
Object.assign(o, {
|
|
2248
|
+
[g]: p
|
|
2249
|
+
}), qt(a, c, `var(${g})`, d), qt(s, c, `var(${g}, ${p})`, d);
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
(c) => c[0] === "vars"
|
|
2253
|
+
// skip 'vars/*' paths
|
|
2254
|
+
), {
|
|
2255
|
+
css: o,
|
|
2256
|
+
vars: a,
|
|
2257
|
+
varsWithDefaults: s
|
|
2258
|
+
};
|
|
2259
|
+
}
|
|
2260
|
+
function Zn(e, t = {}) {
|
|
2261
|
+
const {
|
|
2262
|
+
getSelector: r = _,
|
|
2263
|
+
disableCssColorScheme: n,
|
|
2264
|
+
colorSchemeSelector: o,
|
|
2265
|
+
enableContrastVars: a
|
|
2266
|
+
} = t, {
|
|
2267
|
+
colorSchemes: s = {},
|
|
2268
|
+
components: c,
|
|
2269
|
+
defaultColorScheme: f = "light",
|
|
2270
|
+
...d
|
|
2271
|
+
} = e, {
|
|
2272
|
+
vars: g,
|
|
2273
|
+
css: p,
|
|
2274
|
+
varsWithDefaults: m
|
|
2275
|
+
} = ft(d, t);
|
|
2276
|
+
let v = m;
|
|
2277
|
+
const b = {}, {
|
|
2278
|
+
[f]: l,
|
|
2279
|
+
...E
|
|
2280
|
+
} = s;
|
|
2281
|
+
if (Object.entries(E || {}).forEach(([x, y]) => {
|
|
2282
|
+
const {
|
|
2283
|
+
vars: $,
|
|
2284
|
+
css: se,
|
|
2285
|
+
varsWithDefaults: fe
|
|
2286
|
+
} = ft(y, t);
|
|
2287
|
+
v = oe(v, fe), b[x] = {
|
|
2288
|
+
css: se,
|
|
2289
|
+
vars: $
|
|
2290
|
+
};
|
|
2291
|
+
}), l) {
|
|
2292
|
+
const {
|
|
2293
|
+
css: x,
|
|
2294
|
+
vars: y,
|
|
2295
|
+
varsWithDefaults: $
|
|
2296
|
+
} = ft(l, t);
|
|
2297
|
+
v = oe(v, $), b[f] = {
|
|
2298
|
+
css: x,
|
|
2299
|
+
vars: y
|
|
2300
|
+
};
|
|
2301
|
+
}
|
|
2302
|
+
function _(x, y) {
|
|
2303
|
+
let $ = o;
|
|
2304
|
+
if (o === "class" && ($ = ".%s"), o === "data" && ($ = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && ($ = `[${o}="%s"]`), x) {
|
|
2305
|
+
if ($ === "media")
|
|
2306
|
+
return e.defaultColorScheme === x ? ":root" : {
|
|
2307
|
+
[`@media (prefers-color-scheme: ${s[x]?.palette?.mode || x})`]: {
|
|
2308
|
+
":root": y
|
|
2309
|
+
}
|
|
2310
|
+
};
|
|
2311
|
+
if ($)
|
|
2312
|
+
return e.defaultColorScheme === x ? `:root, ${$.replace("%s", String(x))}` : $.replace("%s", String(x));
|
|
2313
|
+
}
|
|
2314
|
+
return ":root";
|
|
2315
|
+
}
|
|
2316
|
+
return {
|
|
2317
|
+
vars: v,
|
|
2318
|
+
generateThemeVars: () => {
|
|
2319
|
+
let x = {
|
|
2320
|
+
...g
|
|
2321
|
+
};
|
|
2322
|
+
return Object.entries(b).forEach(([, {
|
|
2323
|
+
vars: y
|
|
2324
|
+
}]) => {
|
|
2325
|
+
x = oe(x, y);
|
|
2326
|
+
}), x;
|
|
2327
|
+
},
|
|
2328
|
+
generateStyleSheets: () => {
|
|
2329
|
+
const x = [], y = e.defaultColorScheme || "light";
|
|
2330
|
+
function $(Z, ee) {
|
|
2331
|
+
Object.keys(ee).length && x.push(typeof Z == "string" ? {
|
|
2332
|
+
[Z]: {
|
|
2333
|
+
...ee
|
|
2334
|
+
}
|
|
2335
|
+
} : Z);
|
|
2336
|
+
}
|
|
2337
|
+
$(r(void 0, {
|
|
2338
|
+
...p
|
|
2339
|
+
}), p);
|
|
2340
|
+
const {
|
|
2341
|
+
[y]: se,
|
|
2342
|
+
...fe
|
|
2343
|
+
} = b;
|
|
2344
|
+
if (se) {
|
|
2345
|
+
const {
|
|
2346
|
+
css: Z
|
|
2347
|
+
} = se, ee = s[y]?.palette?.mode, X = !n && ee ? {
|
|
2348
|
+
colorScheme: ee,
|
|
2349
|
+
...Z
|
|
2350
|
+
} : {
|
|
2351
|
+
...Z
|
|
2352
|
+
};
|
|
2353
|
+
$(r(y, {
|
|
2354
|
+
...X
|
|
2355
|
+
}), X);
|
|
2356
|
+
}
|
|
2357
|
+
return Object.entries(fe).forEach(([Z, {
|
|
2358
|
+
css: ee
|
|
2359
|
+
}]) => {
|
|
2360
|
+
const X = s[Z]?.palette?.mode, i = !n && X ? {
|
|
2361
|
+
colorScheme: X,
|
|
2362
|
+
...ee
|
|
2363
|
+
} : {
|
|
2364
|
+
...ee
|
|
2365
|
+
};
|
|
2366
|
+
$(r(Z, {
|
|
2367
|
+
...i
|
|
2368
|
+
}), i);
|
|
2369
|
+
}), a && x.push({
|
|
2370
|
+
":root": {
|
|
2371
|
+
// use double underscore to indicate that these are private variables
|
|
2372
|
+
"--__l-threshold": "0.7",
|
|
2373
|
+
"--__l": "clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)",
|
|
2374
|
+
"--__a": "clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"
|
|
2375
|
+
// 0.87 is the default alpha value for black text.
|
|
2376
|
+
}
|
|
2377
|
+
}), x;
|
|
2378
|
+
}
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2381
|
+
function eo(e) {
|
|
2382
|
+
const t = {};
|
|
2383
|
+
return Object.entries(e).forEach((n) => {
|
|
2384
|
+
const [o, a] = n;
|
|
2385
|
+
typeof a == "object" && (t[o] = `${a.fontStyle ? `${a.fontStyle} ` : ""}${a.fontVariant ? `${a.fontVariant} ` : ""}${a.fontWeight ? `${a.fontWeight} ` : ""}${a.fontStretch ? `${a.fontStretch} ` : ""}${a.fontSize || ""}${a.lineHeight ? `/${a.lineHeight} ` : ""}${a.fontFamily || ""}`);
|
|
2386
|
+
}), t;
|
|
2387
|
+
}
|
|
2388
|
+
function to(e) {
|
|
2389
|
+
return function(r) {
|
|
2390
|
+
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)} &` : "&";
|
|
2391
|
+
};
|
|
2392
|
+
}
|
|
2393
|
+
const Kt = (e) => e, ro = () => {
|
|
2394
|
+
let e = Kt;
|
|
2395
|
+
return {
|
|
2396
|
+
configure(t) {
|
|
2397
|
+
e = t;
|
|
2398
|
+
},
|
|
2399
|
+
generate(t) {
|
|
2400
|
+
return e(t);
|
|
2401
|
+
},
|
|
2402
|
+
reset() {
|
|
2403
|
+
e = Kt;
|
|
2404
|
+
}
|
|
2405
|
+
};
|
|
2406
|
+
}, no = ro(), oo = {
|
|
2407
|
+
active: "active",
|
|
2408
|
+
checked: "checked",
|
|
2409
|
+
completed: "completed",
|
|
2410
|
+
disabled: "disabled",
|
|
2411
|
+
error: "error",
|
|
2412
|
+
expanded: "expanded",
|
|
2413
|
+
focused: "focused",
|
|
2414
|
+
focusVisible: "focusVisible",
|
|
2415
|
+
open: "open",
|
|
2416
|
+
readOnly: "readOnly",
|
|
2417
|
+
required: "required",
|
|
2418
|
+
selected: "selected"
|
|
2419
|
+
};
|
|
2420
|
+
function io(e, t, r = "Mui") {
|
|
2421
|
+
const n = oo[t];
|
|
2422
|
+
return n ? `${r}-${n}` : `${no.generate(e)}-${t}`;
|
|
2423
|
+
}
|
|
2424
|
+
function ao(e, t) {
|
|
2425
|
+
return {
|
|
2426
|
+
toolbar: {
|
|
2427
|
+
minHeight: 56,
|
|
2428
|
+
[e.up("xs")]: {
|
|
2429
|
+
"@media (orientation: landscape)": {
|
|
2430
|
+
minHeight: 48
|
|
2431
|
+
}
|
|
2432
|
+
},
|
|
2433
|
+
[e.up("sm")]: {
|
|
2434
|
+
minHeight: 64
|
|
2435
|
+
}
|
|
2436
|
+
},
|
|
2437
|
+
...t
|
|
2438
|
+
};
|
|
2439
|
+
}
|
|
2440
|
+
function so(e) {
|
|
2441
|
+
return Math.round(e * 1e5) / 1e5;
|
|
2442
|
+
}
|
|
2443
|
+
const Ht = {
|
|
2444
|
+
textTransform: "uppercase"
|
|
2445
|
+
}, Qt = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
2446
|
+
function co(e, t) {
|
|
2447
|
+
const {
|
|
2448
|
+
fontFamily: r = Qt,
|
|
2449
|
+
// The default font size of the Material Specification.
|
|
2450
|
+
fontSize: n = 14,
|
|
2451
|
+
// px
|
|
2452
|
+
fontWeightLight: o = 300,
|
|
2453
|
+
fontWeightRegular: a = 400,
|
|
2454
|
+
fontWeightMedium: s = 500,
|
|
2455
|
+
fontWeightBold: c = 700,
|
|
2456
|
+
// Tell MUI what's the font-size on the html element.
|
|
2457
|
+
// 16px is the default font-size used by browsers.
|
|
2458
|
+
htmlFontSize: f = 16,
|
|
2459
|
+
// Apply the CSS properties to all the variants.
|
|
2460
|
+
allVariants: d,
|
|
2461
|
+
pxToRem: g,
|
|
2462
|
+
...p
|
|
2463
|
+
} = typeof t == "function" ? t(e) : t;
|
|
2464
|
+
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."));
|
|
2465
|
+
const m = n / 14, v = g || ((E) => `${E / f * m}rem`), b = (E, _, D, N, x) => ({
|
|
2466
|
+
fontFamily: r,
|
|
2467
|
+
fontWeight: E,
|
|
2468
|
+
fontSize: v(_),
|
|
2469
|
+
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
2470
|
+
lineHeight: D,
|
|
2471
|
+
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
2472
|
+
// across font-families can cause issues with the kerning.
|
|
2473
|
+
...r === Qt ? {
|
|
2474
|
+
letterSpacing: `${so(N / _)}em`
|
|
2475
|
+
} : {},
|
|
2476
|
+
...x,
|
|
2477
|
+
...d
|
|
2478
|
+
}), l = {
|
|
2479
|
+
h1: b(o, 96, 1.167, -1.5),
|
|
2480
|
+
h2: b(o, 60, 1.2, -0.5),
|
|
2481
|
+
h3: b(a, 48, 1.167, 0),
|
|
2482
|
+
h4: b(a, 34, 1.235, 0.25),
|
|
2483
|
+
h5: b(a, 24, 1.334, 0),
|
|
2484
|
+
h6: b(s, 20, 1.6, 0.15),
|
|
2485
|
+
subtitle1: b(a, 16, 1.75, 0.15),
|
|
2486
|
+
subtitle2: b(s, 14, 1.57, 0.1),
|
|
2487
|
+
body1: b(a, 16, 1.5, 0.15),
|
|
2488
|
+
body2: b(a, 14, 1.43, 0.15),
|
|
2489
|
+
button: b(s, 14, 1.75, 0.4, Ht),
|
|
2490
|
+
caption: b(a, 12, 1.66, 0.4),
|
|
2491
|
+
overline: b(a, 12, 2.66, 1, Ht),
|
|
2492
|
+
// 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.
|
|
2493
|
+
inherit: {
|
|
2494
|
+
fontFamily: "inherit",
|
|
2495
|
+
fontWeight: "inherit",
|
|
2496
|
+
fontSize: "inherit",
|
|
2497
|
+
lineHeight: "inherit",
|
|
2498
|
+
letterSpacing: "inherit"
|
|
2499
|
+
}
|
|
2500
|
+
};
|
|
2501
|
+
return oe({
|
|
2502
|
+
htmlFontSize: f,
|
|
2503
|
+
pxToRem: v,
|
|
2504
|
+
fontFamily: r,
|
|
2505
|
+
fontSize: n,
|
|
2506
|
+
fontWeightLight: o,
|
|
2507
|
+
fontWeightRegular: a,
|
|
2508
|
+
fontWeightMedium: s,
|
|
2509
|
+
fontWeightBold: c,
|
|
2510
|
+
...l
|
|
2511
|
+
}, p, {
|
|
2512
|
+
clone: !1
|
|
2513
|
+
// No need to clone deep
|
|
2514
|
+
});
|
|
2515
|
+
}
|
|
2516
|
+
const lo = 0.2, uo = 0.14, fo = 0.12;
|
|
2517
|
+
function q(...e) {
|
|
2518
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lo})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${uo})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${fo})`].join(",");
|
|
2519
|
+
}
|
|
2520
|
+
const po = ["none", q(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), q(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), q(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), q(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), q(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), q(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), q(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), q(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), q(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), q(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), q(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), q(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), q(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), q(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), q(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), q(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), q(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), q(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), q(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), q(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), q(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), q(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), q(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), q(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], mo = {
|
|
2521
|
+
// This is the most common easing curve.
|
|
2522
|
+
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2523
|
+
// Objects enter the screen at full velocity from off-screen and
|
|
2524
|
+
// slowly decelerate to a resting point.
|
|
2525
|
+
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
2526
|
+
// Objects leave the screen at full velocity. They do not decelerate when off-screen.
|
|
2527
|
+
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
2528
|
+
// The sharp curve is used by objects that may return to the screen at any time.
|
|
2529
|
+
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
2530
|
+
}, go = {
|
|
2531
|
+
shortest: 150,
|
|
2532
|
+
shorter: 200,
|
|
2533
|
+
short: 250,
|
|
2534
|
+
// most basic recommended timing
|
|
2535
|
+
standard: 300,
|
|
2536
|
+
// this is to be used in complex animations
|
|
2537
|
+
complex: 375,
|
|
2538
|
+
// recommended when something is entering screen
|
|
2539
|
+
enteringScreen: 225,
|
|
2540
|
+
// recommended when something is leaving screen
|
|
2541
|
+
leavingScreen: 195
|
|
2542
|
+
};
|
|
2543
|
+
function Xt(e) {
|
|
2544
|
+
return `${Math.round(e)}ms`;
|
|
2545
|
+
}
|
|
2546
|
+
function ho(e) {
|
|
2547
|
+
if (!e)
|
|
2548
|
+
return 0;
|
|
2549
|
+
const t = e / 36;
|
|
2550
|
+
return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
|
|
2551
|
+
}
|
|
2552
|
+
function yo(e) {
|
|
2553
|
+
const t = {
|
|
2554
|
+
...mo,
|
|
2555
|
+
...e.easing
|
|
2556
|
+
}, r = {
|
|
2557
|
+
...go,
|
|
2558
|
+
...e.duration
|
|
2559
|
+
};
|
|
2560
|
+
return {
|
|
2561
|
+
getAutoHeightDuration: ho,
|
|
2562
|
+
create: (o = ["all"], a = {}) => {
|
|
2563
|
+
const {
|
|
2564
|
+
duration: s = r.standard,
|
|
2565
|
+
easing: c = t.easeInOut,
|
|
2566
|
+
delay: f = 0,
|
|
2567
|
+
...d
|
|
2568
|
+
} = a;
|
|
2569
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2570
|
+
const g = (m) => typeof m == "string", p = (m) => !Number.isNaN(parseFloat(m));
|
|
2571
|
+
!g(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !p(s) && !g(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), g(c) || console.error('MUI: Argument "easing" must be a string.'), !p(f) && !g(f) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "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(`
|
|
2572
|
+
`)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
|
|
2573
|
+
}
|
|
2574
|
+
return (Array.isArray(o) ? o : [o]).map((g) => `${g} ${typeof s == "string" ? s : Xt(s)} ${c} ${typeof f == "string" ? f : Xt(f)}`).join(",");
|
|
2575
|
+
},
|
|
2576
|
+
...e,
|
|
2577
|
+
easing: t,
|
|
2578
|
+
duration: r
|
|
2579
|
+
};
|
|
2580
|
+
}
|
|
2581
|
+
const bo = {
|
|
2582
|
+
mobileStepper: 1e3,
|
|
2583
|
+
fab: 1050,
|
|
2584
|
+
speedDial: 1050,
|
|
2585
|
+
appBar: 1100,
|
|
2586
|
+
drawer: 1200,
|
|
2587
|
+
modal: 1300,
|
|
2588
|
+
snackbar: 1400,
|
|
2589
|
+
tooltip: 1500
|
|
2590
|
+
};
|
|
2591
|
+
function vo(e) {
|
|
2592
|
+
return me(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
2593
|
+
}
|
|
2594
|
+
function pr(e = {}) {
|
|
2595
|
+
const t = {
|
|
2596
|
+
...e
|
|
2597
|
+
};
|
|
2598
|
+
function r(n) {
|
|
2599
|
+
const o = Object.entries(n);
|
|
2600
|
+
for (let a = 0; a < o.length; a++) {
|
|
2601
|
+
const [s, c] = o[a];
|
|
2602
|
+
!vo(c) || s.startsWith("unstable_") ? delete n[s] : me(c) && (n[s] = {
|
|
2603
|
+
...c
|
|
2604
|
+
}, r(n[s]));
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
return r(t), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
2608
|
+
|
|
2609
|
+
const theme = ${JSON.stringify(t, null, 2)};
|
|
2610
|
+
|
|
2611
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
2612
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
2613
|
+
|
|
2614
|
+
export default theme;`;
|
|
2615
|
+
}
|
|
2616
|
+
function Jt(e) {
|
|
2617
|
+
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
2618
|
+
}
|
|
2619
|
+
const So = (e) => {
|
|
2620
|
+
if (!Number.isNaN(+e))
|
|
2621
|
+
return +e;
|
|
2622
|
+
const t = e.match(/\d*\.?\d+/g);
|
|
2623
|
+
if (!t)
|
|
2624
|
+
return 0;
|
|
2625
|
+
let r = 0;
|
|
2626
|
+
for (let n = 0; n < t.length; n += 1)
|
|
2627
|
+
r += +t[n];
|
|
2628
|
+
return r;
|
|
2629
|
+
};
|
|
2630
|
+
function Eo(e) {
|
|
2631
|
+
Object.assign(e, {
|
|
2632
|
+
alpha(t, r) {
|
|
2633
|
+
const n = this || e;
|
|
2634
|
+
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})` : ir(t, So(r));
|
|
2635
|
+
},
|
|
2636
|
+
lighten(t, r) {
|
|
2637
|
+
const n = this || e;
|
|
2638
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${Jt(r)})` : Ye(t, r);
|
|
2639
|
+
},
|
|
2640
|
+
darken(t, r) {
|
|
2641
|
+
const n = this || e;
|
|
2642
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${Jt(r)})` : Ge(t, r);
|
|
2643
|
+
}
|
|
2644
|
+
});
|
|
2645
|
+
}
|
|
2646
|
+
function gt(e = {}, ...t) {
|
|
2647
|
+
const {
|
|
2648
|
+
breakpoints: r,
|
|
2649
|
+
mixins: n = {},
|
|
2650
|
+
spacing: o,
|
|
2651
|
+
palette: a = {},
|
|
2652
|
+
transitions: s = {},
|
|
2653
|
+
typography: c = {},
|
|
2654
|
+
shape: f,
|
|
2655
|
+
colorSpace: d,
|
|
2656
|
+
...g
|
|
2657
|
+
} = e;
|
|
2658
|
+
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
2659
|
+
// `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.
|
|
2660
|
+
e.generateThemeVars === void 0)
|
|
2661
|
+
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." : ge(20));
|
|
2662
|
+
const p = St({
|
|
2663
|
+
...a,
|
|
2664
|
+
colorSpace: d
|
|
2665
|
+
}), m = Qn(e);
|
|
2666
|
+
let v = oe(m, {
|
|
2667
|
+
mixins: ao(m.breakpoints, n),
|
|
2668
|
+
palette: p,
|
|
2669
|
+
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
2670
|
+
shadows: po.slice(),
|
|
2671
|
+
typography: co(p, c),
|
|
2672
|
+
transitions: yo(s),
|
|
2673
|
+
zIndex: {
|
|
2674
|
+
...bo
|
|
2675
|
+
}
|
|
2676
|
+
});
|
|
2677
|
+
if (v = oe(v, g), v = t.reduce((b, l) => oe(b, l), v), process.env.NODE_ENV !== "production") {
|
|
2678
|
+
const b = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], l = (E, _) => {
|
|
2679
|
+
let D;
|
|
2680
|
+
for (D in E) {
|
|
2681
|
+
const N = E[D];
|
|
2682
|
+
if (b.includes(D) && Object.keys(N).length > 0) {
|
|
2683
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2684
|
+
const x = io("", D);
|
|
2685
|
+
console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${D}\` internal state.`, "You can not override it like this: ", JSON.stringify(E, null, 2), "", `Instead, you need to use the '&.${x}' syntax:`, JSON.stringify({
|
|
2686
|
+
root: {
|
|
2687
|
+
[`&.${x}`]: N
|
|
2688
|
+
}
|
|
2689
|
+
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
2690
|
+
`));
|
|
2691
|
+
}
|
|
2692
|
+
E[D] = {};
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
};
|
|
2696
|
+
Object.keys(v.components).forEach((E) => {
|
|
2697
|
+
const _ = v.components[E].styleOverrides;
|
|
2698
|
+
_ && E.startsWith("Mui") && l(_, E);
|
|
2699
|
+
});
|
|
2700
|
+
}
|
|
2701
|
+
return v.unstable_sxConfig = {
|
|
2702
|
+
...rt,
|
|
2703
|
+
...g?.unstable_sxConfig
|
|
2704
|
+
}, v.unstable_sx = function(l) {
|
|
2705
|
+
return nt({
|
|
2706
|
+
sx: l,
|
|
2707
|
+
theme: this
|
|
2708
|
+
});
|
|
2709
|
+
}, v.toRuntimeSource = pr, Eo(v), v;
|
|
2710
|
+
}
|
|
2711
|
+
function Co(e) {
|
|
2712
|
+
let t;
|
|
2713
|
+
return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
|
|
2714
|
+
}
|
|
2715
|
+
const To = [...Array(25)].map((e, t) => {
|
|
2716
|
+
if (t === 0)
|
|
2717
|
+
return "none";
|
|
2718
|
+
const r = Co(t);
|
|
2719
|
+
return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
|
|
2720
|
+
});
|
|
2721
|
+
function mr(e) {
|
|
2722
|
+
return {
|
|
2723
|
+
inputPlaceholder: e === "dark" ? 0.5 : 0.42,
|
|
2724
|
+
inputUnderline: e === "dark" ? 0.7 : 0.42,
|
|
2725
|
+
switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
|
|
2726
|
+
switchTrack: e === "dark" ? 0.3 : 0.38
|
|
2727
|
+
};
|
|
2728
|
+
}
|
|
2729
|
+
function gr(e) {
|
|
2730
|
+
return e === "dark" ? To : [];
|
|
2731
|
+
}
|
|
2732
|
+
function xo(e) {
|
|
2733
|
+
const {
|
|
2734
|
+
palette: t = {
|
|
2735
|
+
mode: "light"
|
|
2736
|
+
},
|
|
2737
|
+
// need to cast to avoid module augmentation test
|
|
2738
|
+
opacity: r,
|
|
2739
|
+
overlays: n,
|
|
2740
|
+
colorSpace: o,
|
|
2741
|
+
...a
|
|
2742
|
+
} = e, s = St({
|
|
2743
|
+
...t,
|
|
2744
|
+
colorSpace: o
|
|
2745
|
+
});
|
|
2746
|
+
return {
|
|
2747
|
+
palette: s,
|
|
2748
|
+
opacity: {
|
|
2749
|
+
...mr(s.mode),
|
|
2750
|
+
...r
|
|
2751
|
+
},
|
|
2752
|
+
overlays: n || gr(s.mode),
|
|
2753
|
+
...a
|
|
2754
|
+
};
|
|
2755
|
+
}
|
|
2756
|
+
function wo(e) {
|
|
2757
|
+
return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
|
|
2758
|
+
e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
2759
|
+
}
|
|
2760
|
+
const $o = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Oo = (e) => (t, r) => {
|
|
2761
|
+
const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
|
|
2762
|
+
let a = o;
|
|
2763
|
+
if (o === "class" && (a = ".%s"), o === "data" && (a = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (a = `[${o}="%s"]`), e.defaultColorScheme === t) {
|
|
2764
|
+
if (t === "dark") {
|
|
2765
|
+
const s = {};
|
|
2766
|
+
return $o(e.cssVarPrefix).forEach((c) => {
|
|
2767
|
+
s[c] = r[c], delete r[c];
|
|
2768
|
+
}), a === "media" ? {
|
|
2769
|
+
[n]: r,
|
|
2770
|
+
"@media (prefers-color-scheme: dark)": {
|
|
2771
|
+
[n]: s
|
|
2772
|
+
}
|
|
2773
|
+
} : a ? {
|
|
2774
|
+
[a.replace("%s", t)]: s,
|
|
2775
|
+
[`${n}, ${a.replace("%s", t)}`]: r
|
|
2776
|
+
} : {
|
|
2777
|
+
[n]: {
|
|
2778
|
+
...r,
|
|
2779
|
+
...s
|
|
2780
|
+
}
|
|
2781
|
+
};
|
|
2782
|
+
}
|
|
2783
|
+
if (a && a !== "media")
|
|
2784
|
+
return `${n}, ${a.replace("%s", String(t))}`;
|
|
2785
|
+
} else if (t) {
|
|
2786
|
+
if (a === "media")
|
|
2787
|
+
return {
|
|
2788
|
+
[`@media (prefers-color-scheme: ${String(t)})`]: {
|
|
2789
|
+
[n]: r
|
|
2790
|
+
}
|
|
2791
|
+
};
|
|
2792
|
+
if (a)
|
|
2793
|
+
return a.replace("%s", String(t));
|
|
2794
|
+
}
|
|
2795
|
+
return n;
|
|
2796
|
+
};
|
|
2797
|
+
function _o(e, t) {
|
|
2798
|
+
t.forEach((r) => {
|
|
2799
|
+
e[r] || (e[r] = {});
|
|
2800
|
+
});
|
|
2801
|
+
}
|
|
2802
|
+
function u(e, t, r) {
|
|
2803
|
+
!e[t] && r && (e[t] = r);
|
|
2804
|
+
}
|
|
2805
|
+
function Ae(e) {
|
|
2806
|
+
return typeof e != "string" || !e.startsWith("hsl") ? e : or(e);
|
|
2807
|
+
}
|
|
2808
|
+
function de(e, t) {
|
|
2809
|
+
`${t}Channel` in e || (e[`${t}Channel`] = _e(Ae(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().
|
|
2810
|
+
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.`));
|
|
2811
|
+
}
|
|
2812
|
+
function Ao(e) {
|
|
2813
|
+
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
2814
|
+
}
|
|
2815
|
+
const ue = (e) => {
|
|
2816
|
+
try {
|
|
2817
|
+
return e();
|
|
2818
|
+
} catch {
|
|
2819
|
+
}
|
|
2820
|
+
}, Po = (e = "mui") => xr(e);
|
|
2821
|
+
function dt(e, t, r, n, o) {
|
|
2822
|
+
if (!r)
|
|
2823
|
+
return;
|
|
2824
|
+
r = r === !0 ? {} : r;
|
|
2825
|
+
const a = o === "dark" ? "dark" : "light";
|
|
2826
|
+
if (!n) {
|
|
2827
|
+
t[o] = xo({
|
|
2828
|
+
...r,
|
|
2829
|
+
palette: {
|
|
2830
|
+
mode: a,
|
|
2831
|
+
...r?.palette
|
|
2832
|
+
},
|
|
2833
|
+
colorSpace: e
|
|
2834
|
+
});
|
|
2835
|
+
return;
|
|
2836
|
+
}
|
|
2837
|
+
const {
|
|
2838
|
+
palette: s,
|
|
2839
|
+
...c
|
|
2840
|
+
} = gt({
|
|
2841
|
+
...n,
|
|
2842
|
+
palette: {
|
|
2843
|
+
mode: a,
|
|
2844
|
+
...r?.palette
|
|
2845
|
+
},
|
|
2846
|
+
colorSpace: e
|
|
2847
|
+
});
|
|
2848
|
+
return t[o] = {
|
|
2849
|
+
...r,
|
|
2850
|
+
palette: s,
|
|
2851
|
+
opacity: {
|
|
2852
|
+
...mr(a),
|
|
2853
|
+
...r?.opacity
|
|
2854
|
+
},
|
|
2855
|
+
overlays: r?.overlays || gr(a)
|
|
2856
|
+
}, c;
|
|
2857
|
+
}
|
|
2858
|
+
function Ro(e = {}, ...t) {
|
|
2859
|
+
const {
|
|
2860
|
+
colorSchemes: r = {
|
|
2861
|
+
light: !0
|
|
2862
|
+
},
|
|
2863
|
+
defaultColorScheme: n,
|
|
2864
|
+
disableCssColorScheme: o = !1,
|
|
2865
|
+
cssVarPrefix: a = "mui",
|
|
2866
|
+
nativeColor: s = !1,
|
|
2867
|
+
shouldSkipGeneratingVar: c = wo,
|
|
2868
|
+
colorSchemeSelector: f = r.light && r.dark ? "media" : void 0,
|
|
2869
|
+
rootSelector: d = ":root",
|
|
2870
|
+
...g
|
|
2871
|
+
} = e, p = Object.keys(r)[0], m = n || (r.light && p !== "light" ? "light" : p), v = Po(a), {
|
|
2872
|
+
[m]: b,
|
|
2873
|
+
light: l,
|
|
2874
|
+
dark: E,
|
|
2875
|
+
..._
|
|
2876
|
+
} = r, D = {
|
|
2877
|
+
..._
|
|
2878
|
+
};
|
|
2879
|
+
let N = b;
|
|
2880
|
+
if ((m === "dark" && !("dark" in r) || m === "light" && !("light" in r)) && (N = !0), !N)
|
|
2881
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${m}\` option is either missing or invalid.` : ge(21, m));
|
|
2882
|
+
let x;
|
|
2883
|
+
s && (x = "oklch");
|
|
2884
|
+
const y = dt(x, D, N, g, m);
|
|
2885
|
+
l && !D.light && dt(x, D, l, void 0, "light"), E && !D.dark && dt(x, D, E, void 0, "dark");
|
|
2886
|
+
let $ = {
|
|
2887
|
+
defaultColorScheme: m,
|
|
2888
|
+
...y,
|
|
2889
|
+
cssVarPrefix: a,
|
|
2890
|
+
colorSchemeSelector: f,
|
|
2891
|
+
rootSelector: d,
|
|
2892
|
+
getCssVar: v,
|
|
2893
|
+
colorSchemes: D,
|
|
2894
|
+
font: {
|
|
2895
|
+
...eo(y.typography),
|
|
2896
|
+
...y.font
|
|
2897
|
+
},
|
|
2898
|
+
spacing: Ao(g.spacing)
|
|
2899
|
+
};
|
|
2900
|
+
Object.keys($.colorSchemes).forEach((X) => {
|
|
2901
|
+
const i = $.colorSchemes[X].palette, w = (F) => {
|
|
2902
|
+
const V = F.split("-"), te = V[1], ce = V[2];
|
|
2903
|
+
return v(F, i[te][ce]);
|
|
2904
|
+
};
|
|
2905
|
+
i.mode === "light" && (u(i.common, "background", "#fff"), u(i.common, "onBackground", "#000")), i.mode === "dark" && (u(i.common, "background", "#000"), u(i.common, "onBackground", "#fff"));
|
|
2906
|
+
function S(F, V, te) {
|
|
2907
|
+
if (x) {
|
|
2908
|
+
let ce;
|
|
2909
|
+
return F === be && (ce = `transparent ${((1 - te) * 100).toFixed(0)}%`), F === z && (ce = `#000 ${(te * 100).toFixed(0)}%`), F === U && (ce = `#fff ${(te * 100).toFixed(0)}%`), `color-mix(in ${x}, ${V}, ${ce})`;
|
|
2910
|
+
}
|
|
2911
|
+
return F(V, te);
|
|
2912
|
+
}
|
|
2913
|
+
if (_o(i, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), i.mode === "light") {
|
|
2914
|
+
u(i.Alert, "errorColor", S(z, i.error.light, 0.6)), u(i.Alert, "infoColor", S(z, i.info.light, 0.6)), u(i.Alert, "successColor", S(z, i.success.light, 0.6)), u(i.Alert, "warningColor", S(z, i.warning.light, 0.6)), u(i.Alert, "errorFilledBg", w("palette-error-main")), u(i.Alert, "infoFilledBg", w("palette-info-main")), u(i.Alert, "successFilledBg", w("palette-success-main")), u(i.Alert, "warningFilledBg", w("palette-warning-main")), u(i.Alert, "errorFilledColor", ue(() => i.getContrastText(i.error.main))), u(i.Alert, "infoFilledColor", ue(() => i.getContrastText(i.info.main))), u(i.Alert, "successFilledColor", ue(() => i.getContrastText(i.success.main))), u(i.Alert, "warningFilledColor", ue(() => i.getContrastText(i.warning.main))), u(i.Alert, "errorStandardBg", S(U, i.error.light, 0.9)), u(i.Alert, "infoStandardBg", S(U, i.info.light, 0.9)), u(i.Alert, "successStandardBg", S(U, i.success.light, 0.9)), u(i.Alert, "warningStandardBg", S(U, i.warning.light, 0.9)), u(i.Alert, "errorIconColor", w("palette-error-main")), u(i.Alert, "infoIconColor", w("palette-info-main")), u(i.Alert, "successIconColor", w("palette-success-main")), u(i.Alert, "warningIconColor", w("palette-warning-main")), u(i.AppBar, "defaultBg", w("palette-grey-100")), u(i.Avatar, "defaultBg", w("palette-grey-400")), u(i.Button, "inheritContainedBg", w("palette-grey-300")), u(i.Button, "inheritContainedHoverBg", w("palette-grey-A100")), u(i.Chip, "defaultBorder", w("palette-grey-400")), u(i.Chip, "defaultAvatarColor", w("palette-grey-700")), u(i.Chip, "defaultIconColor", w("palette-grey-700")), u(i.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), u(i.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), u(i.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), u(i.LinearProgress, "primaryBg", S(U, i.primary.main, 0.62)), u(i.LinearProgress, "secondaryBg", S(U, i.secondary.main, 0.62)), u(i.LinearProgress, "errorBg", S(U, i.error.main, 0.62)), u(i.LinearProgress, "infoBg", S(U, i.info.main, 0.62)), u(i.LinearProgress, "successBg", S(U, i.success.main, 0.62)), u(i.LinearProgress, "warningBg", S(U, i.warning.main, 0.62)), u(i.Skeleton, "bg", x ? S(be, i.text.primary, 0.11) : `rgba(${w("palette-text-primaryChannel")} / 0.11)`), u(i.Slider, "primaryTrack", S(U, i.primary.main, 0.62)), u(i.Slider, "secondaryTrack", S(U, i.secondary.main, 0.62)), u(i.Slider, "errorTrack", S(U, i.error.main, 0.62)), u(i.Slider, "infoTrack", S(U, i.info.main, 0.62)), u(i.Slider, "successTrack", S(U, i.success.main, 0.62)), u(i.Slider, "warningTrack", S(U, i.warning.main, 0.62));
|
|
2915
|
+
const F = x ? S(z, i.background.default, 0.6825) : Ne(i.background.default, 0.8);
|
|
2916
|
+
u(i.SnackbarContent, "bg", F), u(i.SnackbarContent, "color", ue(() => x ? mt.text.primary : i.getContrastText(F))), u(i.SpeedDialAction, "fabHoverBg", Ne(i.background.paper, 0.15)), u(i.StepConnector, "border", w("palette-grey-400")), u(i.StepContent, "border", w("palette-grey-400")), u(i.Switch, "defaultColor", w("palette-common-white")), u(i.Switch, "defaultDisabledColor", w("palette-grey-100")), u(i.Switch, "primaryDisabledColor", S(U, i.primary.main, 0.62)), u(i.Switch, "secondaryDisabledColor", S(U, i.secondary.main, 0.62)), u(i.Switch, "errorDisabledColor", S(U, i.error.main, 0.62)), u(i.Switch, "infoDisabledColor", S(U, i.info.main, 0.62)), u(i.Switch, "successDisabledColor", S(U, i.success.main, 0.62)), u(i.Switch, "warningDisabledColor", S(U, i.warning.main, 0.62)), u(i.TableCell, "border", S(U, S(be, i.divider, 1), 0.88)), u(i.Tooltip, "bg", S(be, i.grey[700], 0.92));
|
|
2917
|
+
}
|
|
2918
|
+
if (i.mode === "dark") {
|
|
2919
|
+
u(i.Alert, "errorColor", S(U, i.error.light, 0.6)), u(i.Alert, "infoColor", S(U, i.info.light, 0.6)), u(i.Alert, "successColor", S(U, i.success.light, 0.6)), u(i.Alert, "warningColor", S(U, i.warning.light, 0.6)), u(i.Alert, "errorFilledBg", w("palette-error-dark")), u(i.Alert, "infoFilledBg", w("palette-info-dark")), u(i.Alert, "successFilledBg", w("palette-success-dark")), u(i.Alert, "warningFilledBg", w("palette-warning-dark")), u(i.Alert, "errorFilledColor", ue(() => i.getContrastText(i.error.dark))), u(i.Alert, "infoFilledColor", ue(() => i.getContrastText(i.info.dark))), u(i.Alert, "successFilledColor", ue(() => i.getContrastText(i.success.dark))), u(i.Alert, "warningFilledColor", ue(() => i.getContrastText(i.warning.dark))), u(i.Alert, "errorStandardBg", S(z, i.error.light, 0.9)), u(i.Alert, "infoStandardBg", S(z, i.info.light, 0.9)), u(i.Alert, "successStandardBg", S(z, i.success.light, 0.9)), u(i.Alert, "warningStandardBg", S(z, i.warning.light, 0.9)), u(i.Alert, "errorIconColor", w("palette-error-main")), u(i.Alert, "infoIconColor", w("palette-info-main")), u(i.Alert, "successIconColor", w("palette-success-main")), u(i.Alert, "warningIconColor", w("palette-warning-main")), u(i.AppBar, "defaultBg", w("palette-grey-900")), u(i.AppBar, "darkBg", w("palette-background-paper")), u(i.AppBar, "darkColor", w("palette-text-primary")), u(i.Avatar, "defaultBg", w("palette-grey-600")), u(i.Button, "inheritContainedBg", w("palette-grey-800")), u(i.Button, "inheritContainedHoverBg", w("palette-grey-700")), u(i.Chip, "defaultBorder", w("palette-grey-700")), u(i.Chip, "defaultAvatarColor", w("palette-grey-300")), u(i.Chip, "defaultIconColor", w("palette-grey-300")), u(i.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), u(i.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), u(i.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), u(i.LinearProgress, "primaryBg", S(z, i.primary.main, 0.5)), u(i.LinearProgress, "secondaryBg", S(z, i.secondary.main, 0.5)), u(i.LinearProgress, "errorBg", S(z, i.error.main, 0.5)), u(i.LinearProgress, "infoBg", S(z, i.info.main, 0.5)), u(i.LinearProgress, "successBg", S(z, i.success.main, 0.5)), u(i.LinearProgress, "warningBg", S(z, i.warning.main, 0.5)), u(i.Skeleton, "bg", x ? S(be, i.text.primary, 0.13) : `rgba(${w("palette-text-primaryChannel")} / 0.13)`), u(i.Slider, "primaryTrack", S(z, i.primary.main, 0.5)), u(i.Slider, "secondaryTrack", S(z, i.secondary.main, 0.5)), u(i.Slider, "errorTrack", S(z, i.error.main, 0.5)), u(i.Slider, "infoTrack", S(z, i.info.main, 0.5)), u(i.Slider, "successTrack", S(z, i.success.main, 0.5)), u(i.Slider, "warningTrack", S(z, i.warning.main, 0.5));
|
|
2920
|
+
const F = x ? S(U, i.background.default, 0.985) : Ne(i.background.default, 0.98);
|
|
2921
|
+
u(i.SnackbarContent, "bg", F), u(i.SnackbarContent, "color", ue(() => x ? sr.text.primary : i.getContrastText(F))), u(i.SpeedDialAction, "fabHoverBg", Ne(i.background.paper, 0.15)), u(i.StepConnector, "border", w("palette-grey-600")), u(i.StepContent, "border", w("palette-grey-600")), u(i.Switch, "defaultColor", w("palette-grey-300")), u(i.Switch, "defaultDisabledColor", w("palette-grey-600")), u(i.Switch, "primaryDisabledColor", S(z, i.primary.main, 0.55)), u(i.Switch, "secondaryDisabledColor", S(z, i.secondary.main, 0.55)), u(i.Switch, "errorDisabledColor", S(z, i.error.main, 0.55)), u(i.Switch, "infoDisabledColor", S(z, i.info.main, 0.55)), u(i.Switch, "successDisabledColor", S(z, i.success.main, 0.55)), u(i.Switch, "warningDisabledColor", S(z, i.warning.main, 0.55)), u(i.TableCell, "border", S(z, S(be, i.divider, 1), 0.68)), u(i.Tooltip, "bg", S(be, i.grey[700], 0.92));
|
|
2922
|
+
}
|
|
2923
|
+
de(i.background, "default"), de(i.background, "paper"), de(i.common, "background"), de(i.common, "onBackground"), de(i, "divider"), Object.keys(i).forEach((F) => {
|
|
2924
|
+
const V = i[F];
|
|
2925
|
+
F !== "tonalOffset" && V && typeof V == "object" && (V.main && u(i[F], "mainChannel", _e(Ae(V.main))), V.light && u(i[F], "lightChannel", _e(Ae(V.light))), V.dark && u(i[F], "darkChannel", _e(Ae(V.dark))), V.contrastText && u(i[F], "contrastTextChannel", _e(Ae(V.contrastText))), F === "text" && (de(i[F], "primary"), de(i[F], "secondary")), F === "action" && (V.active && de(i[F], "active"), V.selected && de(i[F], "selected")));
|
|
2926
|
+
});
|
|
2927
|
+
}), $ = t.reduce((X, i) => oe(X, i), $);
|
|
2928
|
+
const se = {
|
|
2929
|
+
prefix: a,
|
|
2930
|
+
disableCssColorScheme: o,
|
|
2931
|
+
shouldSkipGeneratingVar: c,
|
|
2932
|
+
getSelector: Oo($),
|
|
2933
|
+
enableContrastVars: s
|
|
2934
|
+
}, {
|
|
2935
|
+
vars: fe,
|
|
2936
|
+
generateThemeVars: Z,
|
|
2937
|
+
generateStyleSheets: ee
|
|
2938
|
+
} = Zn($, se);
|
|
2939
|
+
return $.vars = fe, Object.entries($.colorSchemes[$.defaultColorScheme]).forEach(([X, i]) => {
|
|
2940
|
+
$[X] = i;
|
|
2941
|
+
}), $.generateThemeVars = Z, $.generateStyleSheets = ee, $.generateSpacing = function() {
|
|
2942
|
+
return wr(g.spacing, Ct(this));
|
|
2943
|
+
}, $.getColorSchemeSelector = to(f), $.spacing = $.generateSpacing(), $.shouldSkipGeneratingVar = c, $.unstable_sxConfig = {
|
|
2944
|
+
...rt,
|
|
2945
|
+
...g?.unstable_sxConfig
|
|
2946
|
+
}, $.unstable_sx = function(i) {
|
|
2947
|
+
return nt({
|
|
2948
|
+
sx: i,
|
|
2949
|
+
theme: this
|
|
2950
|
+
});
|
|
2951
|
+
}, $.toRuntimeSource = pr, $;
|
|
2952
|
+
}
|
|
2953
|
+
function Zt(e, t, r) {
|
|
2954
|
+
e.colorSchemes && r && (e.colorSchemes[t] = {
|
|
2955
|
+
...r !== !0 && r,
|
|
2956
|
+
palette: St({
|
|
2957
|
+
...r === !0 ? {} : r.palette,
|
|
2958
|
+
mode: t
|
|
2959
|
+
})
|
|
2960
|
+
// cast type to skip module augmentation test
|
|
2961
|
+
});
|
|
2962
|
+
}
|
|
2963
|
+
function ko(e = {}, ...t) {
|
|
2964
|
+
const {
|
|
2965
|
+
palette: r,
|
|
2966
|
+
cssVariables: n = !1,
|
|
2967
|
+
colorSchemes: o = r ? void 0 : {
|
|
2968
|
+
light: !0
|
|
2969
|
+
},
|
|
2970
|
+
defaultColorScheme: a = r?.mode,
|
|
2971
|
+
...s
|
|
2972
|
+
} = e, c = a || "light", f = o?.[c], d = {
|
|
2973
|
+
...o,
|
|
2974
|
+
...r ? {
|
|
2975
|
+
[c]: {
|
|
2976
|
+
...typeof f != "boolean" && f,
|
|
2977
|
+
palette: r
|
|
2978
|
+
}
|
|
2979
|
+
} : void 0
|
|
2980
|
+
};
|
|
2981
|
+
if (n === !1) {
|
|
2982
|
+
if (!("colorSchemes" in e))
|
|
2983
|
+
return gt(e, ...t);
|
|
2984
|
+
let g = r;
|
|
2985
|
+
"palette" in e || d[c] && (d[c] !== !0 ? g = d[c].palette : c === "dark" && (g = {
|
|
2986
|
+
mode: "dark"
|
|
2987
|
+
}));
|
|
2988
|
+
const p = gt({
|
|
2989
|
+
...e,
|
|
2990
|
+
palette: g
|
|
2991
|
+
}, ...t);
|
|
2992
|
+
return p.defaultColorScheme = c, p.colorSchemes = d, p.palette.mode === "light" && (p.colorSchemes.light = {
|
|
2993
|
+
...d.light !== !0 && d.light,
|
|
2994
|
+
palette: p.palette
|
|
2995
|
+
}, Zt(p, "dark", d.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = {
|
|
2996
|
+
...d.dark !== !0 && d.dark,
|
|
2997
|
+
palette: p.palette
|
|
2998
|
+
}, Zt(p, "light", d.light)), p;
|
|
2999
|
+
}
|
|
3000
|
+
return !r && !("light" in d) && c === "light" && (d.light = !0), Ro({
|
|
3001
|
+
...s,
|
|
3002
|
+
colorSchemes: d,
|
|
3003
|
+
defaultColorScheme: c,
|
|
3004
|
+
...typeof n != "boolean" && n
|
|
3005
|
+
}, ...t);
|
|
3006
|
+
}
|
|
3007
|
+
const Io = ko();
|
|
3008
|
+
function Mo() {
|
|
3009
|
+
const e = $r(Io);
|
|
3010
|
+
return process.env.NODE_ENV !== "production" && ht.useDebugValue(e), e[_r] || e;
|
|
3011
|
+
}
|
|
3012
|
+
const Bo = "linear(0 0%, 0.0085 31.26%, 0.0167 40.94%, 0.0289 48.86%, 0.0471 55.92%, 0.0717 61.99%, 0.1038 67.32%, 0.1443 72.07%, 0.1989 76.7%, 0.2659 80.89%, 0.3465 84.71%, 0.4419 88.22%, 0.554 91.48%, 0.6835 94.51%, 0.8316 97.34%, 1 100%)", Do = "linear(0 0%, 0.1684 2.66%, 0.3165 5.49%, 0.446 8.52%, 0.5581 11.78%, 0.6535 15.29%, 0.7341 19.11%, 0.8011 23.3%, 0.8557 27.93%, 0.8962 32.68%, 0.9283 38.01%, 0.9529 44.08%, 0.9711 51.14%, 0.9833 59.06%, 0.9915 68.74%, 1 100%)", No = `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="white"/></svg>')`, Fo = `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="20" cy="20" r="18" fill="white" filter="url(%23blur)"/></svg>')`, jo = `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="0" cy="0" r="18" fill="white" filter="url(%23blur)"/></svg>')`, Lo = `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="white"/><stop offset="0.55" stop-color="white"/><stop offset="0.8" stop-color="white" stop-opacity="0"/></linearGradient></defs><rect width="100" height="100" fill="url(%23g)"/></svg>')`, er = "cp-alternador-tema-estilos", Vo = `:root{--cp-expo-in:${Bo};--cp-expo-out:${Do};}@keyframes cp-vt-200{to{mask-size:200vmax;}}@keyframes cp-vt-350{to{mask-size:350vmax;}}@keyframes cp-vt-revelar-oscuro{from{clip-path:polygon(50% -71%, -50% 71%, -50% 71%, 50% -71%);}to{clip-path:polygon(50% -71%, -50% 71%, 50% 171%, 171% 50%);}}@keyframes cp-vt-revelar-claro{from{clip-path:polygon(171% 50%, 50% 171%, 50% 171%, 171% 50%);}to{clip-path:polygon(171% 50%, 50% 171%, -50% 71%, 50% -71%);}}@keyframes cp-vt-gif{0%{mask-size:0;}10%{mask-size:50vmax;}90%{mask-size:50vmax;}100%{mask-size:2000vmax;}}html[data-cp-vt="circulo"]::view-transition-group(root){animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="circulo"]::view-transition-old(root){animation:none;animation-fill-mode:both;z-index:-1;}html[data-cp-vt="circulo"]::view-transition-new(root){mask:${No} center / 0 no-repeat;animation:cp-vt-200 1s;animation-fill-mode:both;}html[data-cp-vt="circulo-desenfoque"]::view-transition-group(root){animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="circulo-desenfoque"]::view-transition-old(root){animation:none;animation-fill-mode:both;z-index:-1;}html[data-cp-vt="circulo-desenfoque"]::view-transition-new(root){mask:${Fo} center / 0 no-repeat;animation:cp-vt-200 1s;animation-fill-mode:both;}html[data-cp-vt="circulo-desenfoque-superior-izquierda"]::view-transition-group(root){animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="circulo-desenfoque-superior-izquierda"]::view-transition-new(root){mask:${jo} top left / 0 no-repeat;mask-origin:content-box;animation:cp-vt-350 1s;animation-fill-mode:both;transform-origin:top left;}html[data-cp-vt="circulo-desenfoque-superior-izquierda"]::view-transition-old(root){animation:cp-vt-350 1s;animation-fill-mode:both;transform-origin:top left;z-index:-1;}html[data-cp-vt="poligono"]::view-transition-group(root){animation-duration:0.7s;animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="poligono"]::view-transition-new(root){animation-name:cp-vt-revelar-claro;animation-fill-mode:both;}html[data-cp-vt="poligono"]::view-transition-old(root){animation:none;animation-fill-mode:both;z-index:-1;}html.dark[data-cp-vt="poligono"]::view-transition-new(root){animation-name:cp-vt-revelar-oscuro;animation-fill-mode:both;}html[data-cp-vt="poligono-degradado"]::view-transition-group(root){animation-timing-function:var(--cp-expo-out);}html[data-cp-vt="poligono-degradado"]::view-transition-new(root){mask:${Lo} top left / 0 no-repeat;mask-origin:top left;animation:cp-vt-200 1s;animation-fill-mode:both;}html[data-cp-vt="poligono-degradado"]::view-transition-old(root){animation:none;animation-fill-mode:both;z-index:-1;}`, Wo = () => {
|
|
3013
|
+
if (typeof document > "u" || document.getElementById(er))
|
|
3014
|
+
return;
|
|
3015
|
+
const e = document.createElement("style");
|
|
3016
|
+
e.id = er, e.textContent = Vo, document.head.appendChild(e);
|
|
3017
|
+
}, zo = {
|
|
3018
|
+
pequeno: { boton: 32, icono: 18 },
|
|
3019
|
+
mediano: { boton: 40, icono: 20 },
|
|
3020
|
+
grande: { boton: 48, icono: 24 }
|
|
3021
|
+
}, Uo = ({ tamano: e }) => /* @__PURE__ */ J("svg", { width: e, height: e, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ J("path", { d: "M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" }) }), Go = ({ tamano: e }) => /* @__PURE__ */ J("svg", { width: e, height: e, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ J(
|
|
3022
|
+
"path",
|
|
3023
|
+
{
|
|
3024
|
+
fillRule: "evenodd",
|
|
3025
|
+
d: "M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",
|
|
3026
|
+
clipRule: "evenodd"
|
|
3027
|
+
}
|
|
3028
|
+
) }), ci = ({
|
|
3029
|
+
variante: e = "circulo",
|
|
3030
|
+
tamano: t = "mediano",
|
|
3031
|
+
etiquetaAccesible: r,
|
|
3032
|
+
alAlternar: n
|
|
3033
|
+
}) => {
|
|
3034
|
+
const { tema: o, alternarTema: a } = bt(), s = Mo(), c = o === "dark", f = zo[t];
|
|
3035
|
+
We(() => {
|
|
3036
|
+
Wo();
|
|
3037
|
+
}, []);
|
|
3038
|
+
const d = Ve(() => {
|
|
3039
|
+
const p = c ? "light" : "dark", m = () => {
|
|
3040
|
+
Tr(() => a());
|
|
3041
|
+
}, v = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
3042
|
+
typeof document.startViewTransition != "function" || v ? a() : (document.documentElement.setAttribute("data-cp-vt", e), document.startViewTransition(m)), n?.(p);
|
|
3043
|
+
}, [c, a, n, e]), g = r ?? `Cambiar a modo ${c ? "claro" : "oscuro"}`;
|
|
3044
|
+
return /* @__PURE__ */ J(
|
|
3045
|
+
xe,
|
|
3046
|
+
{
|
|
3047
|
+
component: "button",
|
|
3048
|
+
type: "button",
|
|
3049
|
+
onClick: d,
|
|
3050
|
+
"aria-label": g,
|
|
3051
|
+
title: g,
|
|
3052
|
+
sx: {
|
|
3053
|
+
width: f.boton,
|
|
3054
|
+
height: f.boton,
|
|
3055
|
+
display: "inline-flex",
|
|
3056
|
+
alignItems: "center",
|
|
3057
|
+
justifyContent: "center",
|
|
3058
|
+
padding: 0,
|
|
3059
|
+
border: "none",
|
|
3060
|
+
borderRadius: "50%",
|
|
3061
|
+
cursor: "pointer",
|
|
3062
|
+
backgroundColor: "transparent",
|
|
3063
|
+
color: c ? s.palette.warning.light : s.palette.text.secondary,
|
|
3064
|
+
transition: s.transitions.create(["background-color", "color"], {
|
|
3065
|
+
duration: s.transitions.duration.shorter
|
|
3066
|
+
}),
|
|
3067
|
+
"&:hover": {
|
|
3068
|
+
backgroundColor: s.palette.action.hover,
|
|
3069
|
+
color: c ? s.palette.warning.main : s.palette.text.primary
|
|
3070
|
+
},
|
|
3071
|
+
"&:focus-visible": {
|
|
3072
|
+
outline: `2px solid ${s.palette.primary.main}`,
|
|
3073
|
+
outlineOffset: 2
|
|
3074
|
+
}
|
|
3075
|
+
},
|
|
3076
|
+
children: c ? /* @__PURE__ */ J(Go, { tamano: f.icono }) : /* @__PURE__ */ J(Uo, { tamano: f.icono })
|
|
3077
|
+
}
|
|
3078
|
+
);
|
|
3079
|
+
};
|
|
3080
|
+
function li() {
|
|
103
3081
|
return "tema";
|
|
104
3082
|
}
|
|
105
|
-
const
|
|
3083
|
+
const Yo = [
|
|
106
3084
|
{
|
|
107
3085
|
id: "playfair-dm-sans",
|
|
108
3086
|
nombre: "Playfair Display + DM Sans",
|
|
@@ -168,18 +3146,18 @@ const B = [
|
|
|
168
3146
|
descripcion: "Serif suave y cálida con una sans amable para marcas cercanas."
|
|
169
3147
|
}
|
|
170
3148
|
];
|
|
171
|
-
function
|
|
172
|
-
return
|
|
3149
|
+
function ui(e) {
|
|
3150
|
+
return Yo.find((t) => t.id === e);
|
|
173
3151
|
}
|
|
174
|
-
function
|
|
3152
|
+
function tr(e) {
|
|
175
3153
|
return `"${e}", "Inter", "system-ui", "-apple-system", "Segoe UI", sans-serif`;
|
|
176
3154
|
}
|
|
177
|
-
function
|
|
3155
|
+
function qo(e) {
|
|
178
3156
|
const t = ":wght@300;400;500;600;700";
|
|
179
3157
|
return `https://fonts.googleapis.com/css2?${[e.titular, e.cuerpo].filter((n, o, a) => a.indexOf(n) === o).map((n) => `family=${n.replace(/ /g, "+")}${t}`).join("&")}&display=swap`;
|
|
180
3158
|
}
|
|
181
|
-
function
|
|
182
|
-
const t =
|
|
3159
|
+
function hr(e) {
|
|
3160
|
+
const t = tr(e.titular), r = tr(e.cuerpo);
|
|
183
3161
|
return {
|
|
184
3162
|
fontFamily: r,
|
|
185
3163
|
h1: { fontFamily: t, fontWeight: 700 },
|
|
@@ -197,17 +3175,17 @@ function F(e) {
|
|
|
197
3175
|
overline: { fontFamily: r }
|
|
198
3176
|
};
|
|
199
3177
|
}
|
|
200
|
-
function
|
|
201
|
-
return { typography:
|
|
3178
|
+
function fi(e) {
|
|
3179
|
+
return { typography: hr(e) };
|
|
202
3180
|
}
|
|
203
|
-
function
|
|
3181
|
+
function di(e) {
|
|
204
3182
|
if (typeof document > "u") return;
|
|
205
3183
|
const t = `codeplex-par-fuentes-${e.id}`;
|
|
206
3184
|
if (document.getElementById(t)) return;
|
|
207
3185
|
const r = document.createElement("link");
|
|
208
|
-
r.id = t, r.rel = "stylesheet", r.href =
|
|
3186
|
+
r.id = t, r.rel = "stylesheet", r.href = qo(e), document.head.appendChild(r);
|
|
209
3187
|
}
|
|
210
|
-
const
|
|
3188
|
+
const Ko = [
|
|
211
3189
|
{
|
|
212
3190
|
id: "space-vibrante",
|
|
213
3191
|
nombre: "Space Vibrante",
|
|
@@ -251,10 +3229,10 @@ const I = [
|
|
|
251
3229
|
colores: { fondo: "#FFF8F2", texto: "#3B2A22", primario: "#C2410C", acento: "#F59E0B", superficie: "#FCE7D2" }
|
|
252
3230
|
}
|
|
253
3231
|
];
|
|
254
|
-
function
|
|
255
|
-
return
|
|
3232
|
+
function pi(e) {
|
|
3233
|
+
return Ko.find((t) => t.id === e);
|
|
256
3234
|
}
|
|
257
|
-
function
|
|
3235
|
+
function mi(e) {
|
|
258
3236
|
const t = {
|
|
259
3237
|
id: e.id,
|
|
260
3238
|
nombre: e.nombre,
|
|
@@ -269,44 +3247,44 @@ function H(e) {
|
|
|
269
3247
|
background: { default: e.colores.fondo, paper: e.colores.superficie },
|
|
270
3248
|
text: { primary: e.colores.texto }
|
|
271
3249
|
},
|
|
272
|
-
typography:
|
|
3250
|
+
typography: hr(t)
|
|
273
3251
|
};
|
|
274
3252
|
}
|
|
275
|
-
function
|
|
3253
|
+
function gi(e) {
|
|
276
3254
|
if (typeof document > "u") return;
|
|
277
3255
|
const t = `codeplex-kit-marca-${e.id}`;
|
|
278
3256
|
if (document.getElementById(t)) return;
|
|
279
|
-
const r = ":wght@300;400;500;600;700", n = [e.titular, e.cuerpo].filter((a, s,
|
|
3257
|
+
const r = ":wght@300;400;500;600;700", n = [e.titular, e.cuerpo].filter((a, s, c) => c.indexOf(a) === s).map((a) => `family=${a.replace(/ /g, "+")}${r}`).join("&"), o = document.createElement("link");
|
|
280
3258
|
o.id = t, o.rel = "stylesheet", o.href = `https://fonts.googleapis.com/css2?${n}&display=swap`, document.head.appendChild(o);
|
|
281
3259
|
}
|
|
282
|
-
function
|
|
3260
|
+
function Ho(e) {
|
|
283
3261
|
const t = e.replace("#", ""), r = t.length === 3 ? t.split("").map((s) => s + s).join("") : t, n = parseInt(r.slice(0, 2), 16), o = parseInt(r.slice(2, 4), 16), a = parseInt(r.slice(4, 6), 16);
|
|
284
3262
|
return (0.299 * n + 0.587 * o + 0.114 * a) / 255 > 0.6;
|
|
285
3263
|
}
|
|
286
|
-
const
|
|
3264
|
+
const Qo = [
|
|
287
3265
|
{ clave: "fondo", etiqueta: "Fondo" },
|
|
288
3266
|
{ clave: "texto", etiqueta: "Texto" },
|
|
289
3267
|
{ clave: "primario", etiqueta: "Primario" },
|
|
290
3268
|
{ clave: "acento", etiqueta: "Acento" },
|
|
291
3269
|
{ clave: "superficie", etiqueta: "Superficie" }
|
|
292
3270
|
];
|
|
293
|
-
function
|
|
3271
|
+
function Xo(e) {
|
|
294
3272
|
return `"${e}", system-ui, sans-serif`;
|
|
295
3273
|
}
|
|
296
|
-
const
|
|
3274
|
+
const Jo = {
|
|
297
3275
|
borderRadius: 3,
|
|
298
3276
|
overflow: "hidden",
|
|
299
3277
|
bgcolor: "background.paper",
|
|
300
3278
|
border: (e) => `1px solid ${e.palette.divider}`,
|
|
301
3279
|
transition: "box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease"
|
|
302
|
-
},
|
|
3280
|
+
}, hi = ({
|
|
303
3281
|
kit: e,
|
|
304
3282
|
seleccionado: t = !1,
|
|
305
3283
|
alSeleccionar: r
|
|
306
3284
|
}) => {
|
|
307
3285
|
const n = !!r;
|
|
308
|
-
return /* @__PURE__ */
|
|
309
|
-
|
|
3286
|
+
return /* @__PURE__ */ Le(
|
|
3287
|
+
xe,
|
|
310
3288
|
{
|
|
311
3289
|
role: n ? "button" : void 0,
|
|
312
3290
|
tabIndex: n ? 0 : void 0,
|
|
@@ -316,24 +3294,24 @@ const G = {
|
|
|
316
3294
|
n && (o.key === "Enter" || o.key === " ") && (o.preventDefault(), r?.(e));
|
|
317
3295
|
},
|
|
318
3296
|
sx: {
|
|
319
|
-
...
|
|
3297
|
+
...Jo,
|
|
320
3298
|
cursor: n ? "pointer" : "default",
|
|
321
3299
|
borderColor: (o) => t ? o.palette.primary.main : o.palette.divider,
|
|
322
3300
|
boxShadow: t ? 6 : 0,
|
|
323
3301
|
"&:hover": n ? { boxShadow: 4, transform: "translateY(-2px)" } : void 0
|
|
324
3302
|
},
|
|
325
3303
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
3304
|
+
/* @__PURE__ */ J(xe, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", bgcolor: "#16181d" }, children: [
|
|
327
3305
|
{ tag: "Headline", fuente: e.titular },
|
|
328
3306
|
{ tag: "Body", fuente: e.cuerpo }
|
|
329
|
-
].map((o) => /* @__PURE__ */
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
/* @__PURE__ */
|
|
3307
|
+
].map((o) => /* @__PURE__ */ Le(xe, { sx: { p: 2.5, borderRight: o.tag === "Headline" ? "1px solid rgba(255,255,255,0.08)" : "none" }, children: [
|
|
3308
|
+
/* @__PURE__ */ J(Be, { sx: { color: "rgba(255,255,255,0.5)", fontSize: 11, mb: 0.5 }, children: o.tag }),
|
|
3309
|
+
/* @__PURE__ */ J(Be, { sx: { color: "#fff", fontFamily: Xo(o.fuente), fontSize: 22, fontWeight: 600, lineHeight: 1.15 }, children: o.fuente })
|
|
332
3310
|
] }, o.tag)) }),
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
-
const s = e.colores[o],
|
|
335
|
-
return /* @__PURE__ */
|
|
336
|
-
|
|
3311
|
+
/* @__PURE__ */ J(xe, { sx: { p: 1.5, display: "flex", flexDirection: "column", gap: 1 }, children: Qo.map(({ clave: o, etiqueta: a }) => {
|
|
3312
|
+
const s = e.colores[o], c = Ho(s);
|
|
3313
|
+
return /* @__PURE__ */ Le(
|
|
3314
|
+
xe,
|
|
337
3315
|
{
|
|
338
3316
|
sx: {
|
|
339
3317
|
bgcolor: s,
|
|
@@ -343,11 +3321,11 @@ const G = {
|
|
|
343
3321
|
display: "flex",
|
|
344
3322
|
alignItems: "center",
|
|
345
3323
|
justifyContent: "space-between",
|
|
346
|
-
border:
|
|
3324
|
+
border: c ? "1px solid rgba(0,0,0,0.06)" : "none"
|
|
347
3325
|
},
|
|
348
3326
|
children: [
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ J(Be, { sx: { color: c ? "#111" : "#fff", fontSize: 13, fontWeight: 500 }, children: a }),
|
|
3328
|
+
/* @__PURE__ */ J(Be, { sx: { color: c ? "rgba(0,0,0,0.55)" : "rgba(255,255,255,0.8)", fontSize: 12, fontFamily: "monospace" }, children: s.toUpperCase() })
|
|
351
3329
|
]
|
|
352
3330
|
},
|
|
353
3331
|
o
|
|
@@ -358,23 +3336,24 @@ const G = {
|
|
|
358
3336
|
);
|
|
359
3337
|
};
|
|
360
3338
|
export {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
3339
|
+
Ko as CODEPLEX_KITS_MARCA,
|
|
3340
|
+
Yo as CODEPLEX_PARES_FUENTES,
|
|
3341
|
+
ci as CodeplexAlternadorTema,
|
|
3342
|
+
si as CodeplexProveedorMui,
|
|
3343
|
+
Or as CodeplexProveedorTema,
|
|
3344
|
+
hi as CodeplexTarjetaMarca,
|
|
3345
|
+
oi as CodeplexThemeProvider,
|
|
3346
|
+
yt as ContextoTema,
|
|
3347
|
+
ii as ThemeContext,
|
|
3348
|
+
gi as cargarKitMarca,
|
|
3349
|
+
di as cargarParFuentes,
|
|
3350
|
+
pi as obtenerKitMarca,
|
|
3351
|
+
ui as obtenerParFuentes,
|
|
3352
|
+
li as tema,
|
|
3353
|
+
mi as temaDesdeKitMarca,
|
|
3354
|
+
fi as temaDesdeParFuentes,
|
|
3355
|
+
hr as tipografiaDesdeParFuentes,
|
|
3356
|
+
qo as urlGoogleFonts,
|
|
3357
|
+
bt as usarTema,
|
|
3358
|
+
ai as useTheme
|
|
380
3359
|
};
|