fansunited-widgets-cdn 0.0.85 → 0.0.86-RC2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/chunks/Alert-CuOsmojH.js +149 -0
  2. package/chunks/AspectRatio-D3Sgxj7p.js +125 -0
  3. package/chunks/Avatar-BTsEKfhc.js +186 -0
  4. package/chunks/Button-BV7YIFkS.js +858 -0
  5. package/chunks/Card-DRIT0wtY.js +129 -0
  6. package/chunks/CardContent-CD-WZh1l.js +60 -0
  7. package/chunks/ChevronRight-BrCKlr3T.js +11 -0
  8. package/chunks/Chip-6HLNTHMI.js +281 -0
  9. package/chunks/ClassicQuizWrapper-t04e9_6c.js +4883 -0
  10. package/chunks/CollectLeadForm-DtmR2Vuf-B_3JkHJC.js +1560 -0
  11. package/chunks/CollectLeadWrapper-CVAVswua.js +1294 -0
  12. package/chunks/DialogActions-C5kAgHal.js +45 -0
  13. package/chunks/DialogContent-MIXff4nd.js +60 -0
  14. package/chunks/EitherOrById-CAo8gPjm.js +1496 -0
  15. package/chunks/EitherOrPreviewWrapper-DFi2bviS.js +47 -0
  16. package/chunks/Error-DhQL89pn-BwTV1meb.js +418 -0
  17. package/chunks/EventGameWrapper-BxyLL3eA.js +7633 -0
  18. package/chunks/Grid-Dpv_ZL23.js +279 -0
  19. package/chunks/IconButton-Lt9Xks7c.js +207 -0
  20. package/chunks/Link-DLuj1USf.js +228 -0
  21. package/chunks/List-DLPlZGTP.js +397 -0
  22. package/chunks/ListItemDecorator-CE2eQLip.js +1882 -0
  23. package/chunks/MatchPredictionContainer-Ct6gXvLw.js +751 -0
  24. package/chunks/MatchQuizWrapper-Fu6RfWVn.js +11046 -0
  25. package/chunks/ModalDialog-Ci3hulZA.js +619 -0
  26. package/chunks/NotFoundSkeleton-BYJTzYJR-Be3R34nS.js +2764 -0
  27. package/chunks/OverlayLeadAfterCollection-DnqztPJ5-CpELr0AC.js +896 -0
  28. package/chunks/OverlayScoreStateSkeleton-C9FUhcnd-DMFELrvA.js +146 -0
  29. package/chunks/PersonalityQuizWrapper-MpUK4n3Y.js +34374 -0
  30. package/chunks/PlayerOfTheMatch-D4vuR7pz.js +1406 -0
  31. package/chunks/PollWrapper-CzKj8xxE.js +4198 -0
  32. package/chunks/Portal-BWqqFvVm-TuHZWjxn.js +12717 -0
  33. package/chunks/Portal-DA1mxzSo.js +41 -0
  34. package/chunks/PreviewQuizById-WWS_LyJR.js +4864 -0
  35. package/chunks/Select-p_cHpLhi.js +3418 -0
  36. package/chunks/Sheet-BaCzogZK.js +167 -0
  37. package/chunks/Snackbar-DHxnbCA3.js +358 -0
  38. package/chunks/Stack-Dgf2LXN0.js +117 -0
  39. package/chunks/Tabs-CSu_cWNi.js +784 -0
  40. package/chunks/TeamNextMatchPrediction-C7HilNqW.js +6 -0
  41. package/chunks/Tutorial-DFNZxmAx.js +427 -0
  42. package/chunks/createLucideIcon-B6NxpYkb.js +79 -0
  43. package/chunks/createSvgIcon-7h7XC877.js +119 -0
  44. package/chunks/createSvgIcon-DVA0KIUd.js +2490 -0
  45. package/chunks/dataAttributeParser-CF9vxaVN.js +28 -0
  46. package/chunks/default-quiz-bg-CTzaADn7.js +4 -0
  47. package/chunks/getReactElementRef-BD-S8A24.js +25 -0
  48. package/chunks/index-24AwmTVJ.js +85 -0
  49. package/chunks/index-3vJS8JzK.js +63 -0
  50. package/chunks/index-BSD7mvEU.js +57 -0
  51. package/chunks/index-BU6iona7.js +57 -0
  52. package/chunks/index-BqCHiyI6.js +59 -0
  53. package/chunks/index-C5qRf4TV.js +20 -0
  54. package/chunks/index-C9MpfjqV.js +35 -0
  55. package/chunks/index-CMmQs5A5.js +56 -0
  56. package/chunks/index-CicEY2Jv.js +5 -0
  57. package/chunks/index-DNeawo0R.js +17 -0
  58. package/chunks/index-DePIySlY.js +29 -0
  59. package/chunks/index-DoRYU_1L.js +41 -0
  60. package/chunks/index-DvgG9XJj.js +20 -0
  61. package/chunks/index-QpZE-92Y.js +33 -0
  62. package/chunks/index-rgFj976B.js +17 -0
  63. package/chunks/index-tzsdMoo-.js +16 -0
  64. package/chunks/index.es-CHqz6mjo.js +6162 -0
  65. package/chunks/init-BEkECL0v.js +32 -0
  66. package/chunks/main-XP7dqk6g.js +39843 -0
  67. package/chunks/resolveProps-BfYZubfk.js +37 -0
  68. package/chunks/users-D_xgC4iQ.js +16 -0
  69. package/chunks/variantColorInheritance-DI3wUohX.js +28 -0
  70. package/fu-widgets-loader.es.js +73 -0
  71. package/fu-widgets-loader.js +1 -0
  72. package/fu-widgets.es.js +4 -0
  73. package/fu-widgets.iife.js +621 -682
  74. package/manifest.json +84 -0
  75. package/package.json +9 -2
@@ -0,0 +1,2490 @@
1
+ import { X as $t, Y as kt, r as U, j as Ie, E as vt } from "./main-XP7dqk6g.js";
2
+ import { r as Ye, T as At } from "./resolveProps-BfYZubfk.js";
3
+ var Ee = { exports: {} }, T = {};
4
+ /**
5
+ * @license React
6
+ * react-is.production.js
7
+ *
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var Ue;
14
+ function Bt() {
15
+ if (Ue) return T;
16
+ Ue = 1;
17
+ var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
18
+ function g(u) {
19
+ if (typeof u == "object" && u !== null) {
20
+ var $ = u.$$typeof;
21
+ switch ($) {
22
+ case e:
23
+ switch (u = u.type, u) {
24
+ case r:
25
+ case o:
26
+ case n:
27
+ case f:
28
+ case d:
29
+ case m:
30
+ return u;
31
+ default:
32
+ switch (u = u && u.$$typeof, u) {
33
+ case s:
34
+ case l:
35
+ case p:
36
+ case h:
37
+ return u;
38
+ case a:
39
+ return u;
40
+ default:
41
+ return $;
42
+ }
43
+ }
44
+ case t:
45
+ return $;
46
+ }
47
+ }
48
+ }
49
+ return T.ContextConsumer = a, T.ContextProvider = s, T.Element = e, T.ForwardRef = l, T.Fragment = r, T.Lazy = p, T.Memo = h, T.Portal = t, T.Profiler = o, T.StrictMode = n, T.Suspense = f, T.SuspenseList = d, T.isContextConsumer = function(u) {
50
+ return g(u) === a;
51
+ }, T.isContextProvider = function(u) {
52
+ return g(u) === s;
53
+ }, T.isElement = function(u) {
54
+ return typeof u == "object" && u !== null && u.$$typeof === e;
55
+ }, T.isForwardRef = function(u) {
56
+ return g(u) === l;
57
+ }, T.isFragment = function(u) {
58
+ return g(u) === r;
59
+ }, T.isLazy = function(u) {
60
+ return g(u) === p;
61
+ }, T.isMemo = function(u) {
62
+ return g(u) === h;
63
+ }, T.isPortal = function(u) {
64
+ return g(u) === t;
65
+ }, T.isProfiler = function(u) {
66
+ return g(u) === o;
67
+ }, T.isStrictMode = function(u) {
68
+ return g(u) === n;
69
+ }, T.isSuspense = function(u) {
70
+ return g(u) === f;
71
+ }, T.isSuspenseList = function(u) {
72
+ return g(u) === d;
73
+ }, T.isValidElementType = function(u) {
74
+ return typeof u == "string" || typeof u == "function" || u === r || u === o || u === n || u === f || u === d || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === h || u.$$typeof === s || u.$$typeof === a || u.$$typeof === l || u.$$typeof === b || u.getModuleId !== void 0);
75
+ }, T.typeOf = g, T;
76
+ }
77
+ var Qe;
78
+ function Et() {
79
+ return Qe || (Qe = 1, Ee.exports = /* @__PURE__ */ Bt()), Ee.exports;
80
+ }
81
+ var ut = /* @__PURE__ */ Et();
82
+ const me = {
83
+ black: "#000",
84
+ white: "#fff"
85
+ }, Z = {
86
+ 300: "#e57373",
87
+ 400: "#ef5350",
88
+ 500: "#f44336",
89
+ 700: "#d32f2f",
90
+ 800: "#c62828"
91
+ }, ee = {
92
+ 50: "#f3e5f5",
93
+ 200: "#ce93d8",
94
+ 300: "#ba68c8",
95
+ 400: "#ab47bc",
96
+ 500: "#9c27b0",
97
+ 700: "#7b1fa2"
98
+ }, te = {
99
+ 50: "#e3f2fd",
100
+ 200: "#90caf9",
101
+ 400: "#42a5f5",
102
+ 700: "#1976d2",
103
+ 800: "#1565c0"
104
+ }, re = {
105
+ 300: "#4fc3f7",
106
+ 400: "#29b6f6",
107
+ 500: "#03a9f4",
108
+ 700: "#0288d1",
109
+ 900: "#01579b"
110
+ }, ne = {
111
+ 300: "#81c784",
112
+ 400: "#66bb6a",
113
+ 500: "#4caf50",
114
+ 700: "#388e3c",
115
+ 800: "#2e7d32",
116
+ 900: "#1b5e20"
117
+ }, ce = {
118
+ 300: "#ffb74d",
119
+ 400: "#ffa726",
120
+ 500: "#ff9800",
121
+ 700: "#f57c00",
122
+ 900: "#e65100"
123
+ }, Ot = {
124
+ 50: "#fafafa",
125
+ 100: "#f5f5f5",
126
+ 200: "#eeeeee",
127
+ 300: "#e0e0e0",
128
+ 400: "#bdbdbd",
129
+ 500: "#9e9e9e",
130
+ 600: "#757575",
131
+ 700: "#616161",
132
+ 800: "#424242",
133
+ 900: "#212121",
134
+ A100: "#f5f5f5",
135
+ A200: "#eeeeee",
136
+ A400: "#bdbdbd",
137
+ A700: "#616161"
138
+ };
139
+ function J(e, ...t) {
140
+ const r = new URL(`https://mui.com/production-error/?code=${e}`);
141
+ return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
142
+ }
143
+ /**
144
+ * @mui/styled-engine v6.5.0
145
+ *
146
+ * @license MIT
147
+ * This source code is licensed under the MIT license found in the
148
+ * LICENSE file in the root directory of this source tree.
149
+ */
150
+ function Rt(e, t) {
151
+ return $t(e, t);
152
+ }
153
+ function Pt(e, t) {
154
+ Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
155
+ }
156
+ const Xe = [];
157
+ function q(e) {
158
+ return Xe[0] = e, kt(Xe);
159
+ }
160
+ function H(e) {
161
+ if (typeof e != "object" || e === null)
162
+ return !1;
163
+ const t = Object.getPrototypeOf(e);
164
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
165
+ }
166
+ function ft(e) {
167
+ if (/* @__PURE__ */ U.isValidElement(e) || ut.isValidElementType(e) || !H(e))
168
+ return e;
169
+ const t = {};
170
+ return Object.keys(e).forEach((r) => {
171
+ t[r] = ft(e[r]);
172
+ }), t;
173
+ }
174
+ function j(e, t, r = {
175
+ clone: !0
176
+ }) {
177
+ const n = r.clone ? {
178
+ ...e
179
+ } : e;
180
+ return H(e) && H(t) && Object.keys(t).forEach((o) => {
181
+ /* @__PURE__ */ U.isValidElement(t[o]) || ut.isValidElementType(t[o]) ? n[o] = t[o] : H(t[o]) && // Avoid prototype pollution
182
+ Object.prototype.hasOwnProperty.call(e, o) && H(e[o]) ? n[o] = j(e[o], t[o], r) : r.clone ? n[o] = H(t[o]) ? ft(t[o]) : t[o] : n[o] = t[o];
183
+ }), n;
184
+ }
185
+ const It = (e) => {
186
+ const t = Object.keys(e).map((r) => ({
187
+ key: r,
188
+ val: e[r]
189
+ })) || [];
190
+ return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => ({
191
+ ...r,
192
+ [n.key]: n.val
193
+ }), {});
194
+ };
195
+ function _t(e) {
196
+ const {
197
+ // The breakpoint **start** at this value.
198
+ // For instance with the first breakpoint xs: [xs, sm).
199
+ values: t = {
200
+ xs: 0,
201
+ // phone
202
+ sm: 600,
203
+ // tablet
204
+ md: 900,
205
+ // small laptop
206
+ lg: 1200,
207
+ // desktop
208
+ xl: 1536
209
+ // large screen
210
+ },
211
+ unit: r = "px",
212
+ step: n = 5,
213
+ ...o
214
+ } = e, a = It(t), s = Object.keys(a);
215
+ function l(m) {
216
+ return `@media (min-width:${typeof t[m] == "number" ? t[m] : m}${r})`;
217
+ }
218
+ function f(m) {
219
+ return `@media (max-width:${(typeof t[m] == "number" ? t[m] : m) - n / 100}${r})`;
220
+ }
221
+ function d(m, b) {
222
+ const g = s.indexOf(b);
223
+ return `@media (min-width:${typeof t[m] == "number" ? t[m] : m}${r}) and (max-width:${(g !== -1 && typeof t[s[g]] == "number" ? t[s[g]] : b) - n / 100}${r})`;
224
+ }
225
+ function h(m) {
226
+ return s.indexOf(m) + 1 < s.length ? d(m, s[s.indexOf(m) + 1]) : l(m);
227
+ }
228
+ function p(m) {
229
+ const b = s.indexOf(m);
230
+ return b === 0 ? l(s[1]) : b === s.length - 1 ? f(s[b]) : d(m, s[s.indexOf(m) + 1]).replace("@media", "@media not all and");
231
+ }
232
+ return {
233
+ keys: s,
234
+ values: a,
235
+ up: l,
236
+ down: f,
237
+ between: d,
238
+ only: h,
239
+ not: p,
240
+ unit: r,
241
+ ...o
242
+ };
243
+ }
244
+ function qe(e, t) {
245
+ if (!e.containerQueries)
246
+ return t;
247
+ const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
248
+ var s, l;
249
+ const a = /min-width:\s*([0-9.]+)/;
250
+ return +(((s = n.match(a)) == null ? void 0 : s[1]) || 0) - +(((l = o.match(a)) == null ? void 0 : l[1]) || 0);
251
+ });
252
+ return r.length ? r.reduce((n, o) => {
253
+ const a = t[o];
254
+ return delete n[o], n[o] = a, n;
255
+ }, {
256
+ ...t
257
+ }) : t;
258
+ }
259
+ function Ft(e, t) {
260
+ return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
261
+ }
262
+ function Lt(e, t) {
263
+ const r = t.match(/^@([^/]+)?\/?(.+)?$/);
264
+ if (!r)
265
+ return null;
266
+ const [, n, o] = r, a = Number.isNaN(+n) ? n || 0 : +n;
267
+ return e.containerQueries(o).up(a);
268
+ }
269
+ function zt(e) {
270
+ const t = (a, s) => a.replace("@media", s ? `@container ${s}` : "@container");
271
+ function r(a, s) {
272
+ a.up = (...l) => t(e.breakpoints.up(...l), s), a.down = (...l) => t(e.breakpoints.down(...l), s), a.between = (...l) => t(e.breakpoints.between(...l), s), a.only = (...l) => t(e.breakpoints.only(...l), s), a.not = (...l) => {
273
+ const f = t(e.breakpoints.not(...l), s);
274
+ return f.includes("not all and") ? f.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : f;
275
+ };
276
+ }
277
+ const n = {}, o = (a) => (r(n, a), n);
278
+ return r(o), {
279
+ ...e,
280
+ containerQueries: o
281
+ };
282
+ }
283
+ const Dt = {
284
+ borderRadius: 4
285
+ };
286
+ function de(e, t) {
287
+ return t ? j(e, t, {
288
+ clone: !1
289
+ // No need to clone deep, it's way faster.
290
+ }) : e;
291
+ }
292
+ const Ce = {
293
+ xs: 0,
294
+ // phone
295
+ sm: 600,
296
+ // tablet
297
+ md: 900,
298
+ // small laptop
299
+ lg: 1200,
300
+ // desktop
301
+ xl: 1536
302
+ // large screen
303
+ }, Je = {
304
+ // Sorted ASC by size. That's important.
305
+ // It can't be configured as it's used statically for propTypes.
306
+ keys: ["xs", "sm", "md", "lg", "xl"],
307
+ up: (e) => `@media (min-width:${Ce[e]}px)`
308
+ }, Mt = {
309
+ containerQueries: (e) => ({
310
+ up: (t) => {
311
+ let r = typeof t == "number" ? t : Ce[t] || t;
312
+ return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`;
313
+ }
314
+ })
315
+ };
316
+ function Y(e, t, r) {
317
+ const n = e.theme || {};
318
+ if (Array.isArray(t)) {
319
+ const a = n.breakpoints || Je;
320
+ return t.reduce((s, l, f) => (s[a.up(a.keys[f])] = r(t[f]), s), {});
321
+ }
322
+ if (typeof t == "object") {
323
+ const a = n.breakpoints || Je;
324
+ return Object.keys(t).reduce((s, l) => {
325
+ if (Ft(a.keys, l)) {
326
+ const f = Lt(n.containerQueries ? n : Mt, l);
327
+ f && (s[f] = r(t[l], l));
328
+ } else if (Object.keys(a.values || Ce).includes(l)) {
329
+ const f = a.up(l);
330
+ s[f] = r(t[l], l);
331
+ } else {
332
+ const f = l;
333
+ s[f] = t[f];
334
+ }
335
+ return s;
336
+ }, {});
337
+ }
338
+ return r(t);
339
+ }
340
+ function jt(e = {}) {
341
+ var r;
342
+ return ((r = e.keys) == null ? void 0 : r.reduce((n, o) => {
343
+ const a = e.up(o);
344
+ return n[a] = {}, n;
345
+ }, {})) || {};
346
+ }
347
+ function Ze(e, t) {
348
+ return e.reduce((r, n) => {
349
+ const o = r[n];
350
+ return (!o || Object.keys(o).length === 0) && delete r[n], r;
351
+ }, t);
352
+ }
353
+ function ie(e) {
354
+ if (typeof e != "string")
355
+ throw new Error(J(7));
356
+ return e.charAt(0).toUpperCase() + e.slice(1);
357
+ }
358
+ function we(e, t, r = !0) {
359
+ if (!t || typeof t != "string")
360
+ return null;
361
+ if (e && e.vars && r) {
362
+ const n = `vars.${t}`.split(".").reduce((o, a) => o && o[a] ? o[a] : null, e);
363
+ if (n != null)
364
+ return n;
365
+ }
366
+ return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
367
+ }
368
+ function Se(e, t, r, n = r) {
369
+ let o;
370
+ return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = we(e, r) || n, t && (o = t(o, n, e)), o;
371
+ }
372
+ function I(e) {
373
+ const {
374
+ prop: t,
375
+ cssProperty: r = e.prop,
376
+ themeKey: n,
377
+ transform: o
378
+ } = e, a = (s) => {
379
+ if (s[t] == null)
380
+ return null;
381
+ const l = s[t], f = s.theme, d = we(f, n) || {};
382
+ return Y(s, l, (p) => {
383
+ let m = Se(d, o, p);
384
+ return p === m && typeof p == "string" && (m = Se(d, o, `${t}${p === "default" ? "" : ie(p)}`, p)), r === !1 ? m : {
385
+ [r]: m
386
+ };
387
+ });
388
+ };
389
+ return a.propTypes = {}, a.filterProps = [t], a;
390
+ }
391
+ function Wt(e) {
392
+ const t = {};
393
+ return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
394
+ }
395
+ const Vt = {
396
+ m: "margin",
397
+ p: "padding"
398
+ }, Kt = {
399
+ t: "Top",
400
+ r: "Right",
401
+ b: "Bottom",
402
+ l: "Left",
403
+ x: ["Left", "Right"],
404
+ y: ["Top", "Bottom"]
405
+ }, et = {
406
+ marginX: "mx",
407
+ marginY: "my",
408
+ paddingX: "px",
409
+ paddingY: "py"
410
+ }, Gt = Wt((e) => {
411
+ if (e.length > 2)
412
+ if (et[e])
413
+ e = et[e];
414
+ else
415
+ return [e];
416
+ const [t, r] = e.split(""), n = Vt[t], o = Kt[r] || "";
417
+ return Array.isArray(o) ? o.map((a) => n + a) : [n + o];
418
+ }), ze = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], De = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"];
419
+ [...ze, ...De];
420
+ function pe(e, t, r, n) {
421
+ const o = we(e, t, !0) ?? r;
422
+ return typeof o == "number" || typeof o == "string" ? (a) => typeof a == "string" ? a : typeof o == "string" ? `calc(${a} * ${o})` : o * a : Array.isArray(o) ? (a) => {
423
+ if (typeof a == "string")
424
+ return a;
425
+ const s = Math.abs(a), l = o[s];
426
+ return a >= 0 ? l : typeof l == "number" ? -l : `-${l}`;
427
+ } : typeof o == "function" ? o : () => {
428
+ };
429
+ }
430
+ function Me(e) {
431
+ return pe(e, "spacing", 8);
432
+ }
433
+ function ge(e, t) {
434
+ return typeof t == "string" || t == null ? t : e(t);
435
+ }
436
+ function Nt(e, t) {
437
+ return (r) => e.reduce((n, o) => (n[o] = ge(t, r), n), {});
438
+ }
439
+ function Ht(e, t, r, n) {
440
+ if (!t.includes(r))
441
+ return null;
442
+ const o = Gt(r), a = Nt(o, n), s = e[r];
443
+ return Y(e, s, a);
444
+ }
445
+ function dt(e, t) {
446
+ const r = Me(e.theme);
447
+ return Object.keys(e).map((n) => Ht(e, t, n, r)).reduce(de, {});
448
+ }
449
+ function E(e) {
450
+ return dt(e, ze);
451
+ }
452
+ E.propTypes = {};
453
+ E.filterProps = ze;
454
+ function O(e) {
455
+ return dt(e, De);
456
+ }
457
+ O.propTypes = {};
458
+ O.filterProps = De;
459
+ function mt(e = 8, t = Me({
460
+ spacing: e
461
+ })) {
462
+ if (e.mui)
463
+ return e;
464
+ const r = (...n) => (n.length === 0 ? [1] : n).map((a) => {
465
+ const s = t(a);
466
+ return typeof s == "number" ? `${s}px` : s;
467
+ }).join(" ");
468
+ return r.mui = !0, r;
469
+ }
470
+ function xe(...e) {
471
+ const t = e.reduce((n, o) => (o.filterProps.forEach((a) => {
472
+ n[a] = o;
473
+ }), n), {}), r = (n) => Object.keys(n).reduce((o, a) => t[a] ? de(o, t[a](n)) : o, {});
474
+ return r.propTypes = {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
475
+ }
476
+ function V(e) {
477
+ return typeof e != "number" ? e : `${e}px solid`;
478
+ }
479
+ function K(e, t) {
480
+ return I({
481
+ prop: e,
482
+ themeKey: "borders",
483
+ transform: t
484
+ });
485
+ }
486
+ const Yt = K("border", V), Ut = K("borderTop", V), Qt = K("borderRight", V), Xt = K("borderBottom", V), qt = K("borderLeft", V), Jt = K("borderColor"), Zt = K("borderTopColor"), er = K("borderRightColor"), tr = K("borderBottomColor"), rr = K("borderLeftColor"), nr = K("outline", V), or = K("outlineColor"), Te = (e) => {
487
+ if (e.borderRadius !== void 0 && e.borderRadius !== null) {
488
+ const t = pe(e.theme, "shape.borderRadius", 4), r = (n) => ({
489
+ borderRadius: ge(t, n)
490
+ });
491
+ return Y(e, e.borderRadius, r);
492
+ }
493
+ return null;
494
+ };
495
+ Te.propTypes = {};
496
+ Te.filterProps = ["borderRadius"];
497
+ xe(Yt, Ut, Qt, Xt, qt, Jt, Zt, er, tr, rr, Te, nr, or);
498
+ const $e = (e) => {
499
+ if (e.gap !== void 0 && e.gap !== null) {
500
+ const t = pe(e.theme, "spacing", 8), r = (n) => ({
501
+ gap: ge(t, n)
502
+ });
503
+ return Y(e, e.gap, r);
504
+ }
505
+ return null;
506
+ };
507
+ $e.propTypes = {};
508
+ $e.filterProps = ["gap"];
509
+ const ke = (e) => {
510
+ if (e.columnGap !== void 0 && e.columnGap !== null) {
511
+ const t = pe(e.theme, "spacing", 8), r = (n) => ({
512
+ columnGap: ge(t, n)
513
+ });
514
+ return Y(e, e.columnGap, r);
515
+ }
516
+ return null;
517
+ };
518
+ ke.propTypes = {};
519
+ ke.filterProps = ["columnGap"];
520
+ const ve = (e) => {
521
+ if (e.rowGap !== void 0 && e.rowGap !== null) {
522
+ const t = pe(e.theme, "spacing", 8), r = (n) => ({
523
+ rowGap: ge(t, n)
524
+ });
525
+ return Y(e, e.rowGap, r);
526
+ }
527
+ return null;
528
+ };
529
+ ve.propTypes = {};
530
+ ve.filterProps = ["rowGap"];
531
+ const ir = I({
532
+ prop: "gridColumn"
533
+ }), ar = I({
534
+ prop: "gridRow"
535
+ }), sr = I({
536
+ prop: "gridAutoFlow"
537
+ }), lr = I({
538
+ prop: "gridAutoColumns"
539
+ }), cr = I({
540
+ prop: "gridAutoRows"
541
+ }), ur = I({
542
+ prop: "gridTemplateColumns"
543
+ }), fr = I({
544
+ prop: "gridTemplateRows"
545
+ }), dr = I({
546
+ prop: "gridTemplateAreas"
547
+ }), mr = I({
548
+ prop: "gridArea"
549
+ });
550
+ xe($e, ke, ve, ir, ar, sr, lr, cr, ur, fr, dr, mr);
551
+ function oe(e, t) {
552
+ return t === "grey" ? t : e;
553
+ }
554
+ const pr = I({
555
+ prop: "color",
556
+ themeKey: "palette",
557
+ transform: oe
558
+ }), gr = I({
559
+ prop: "bgcolor",
560
+ cssProperty: "backgroundColor",
561
+ themeKey: "palette",
562
+ transform: oe
563
+ }), hr = I({
564
+ prop: "backgroundColor",
565
+ themeKey: "palette",
566
+ transform: oe
567
+ });
568
+ xe(pr, gr, hr);
569
+ function M(e) {
570
+ return e <= 1 && e !== 0 ? `${e * 100}%` : e;
571
+ }
572
+ const yr = I({
573
+ prop: "width",
574
+ transform: M
575
+ }), je = (e) => {
576
+ if (e.maxWidth !== void 0 && e.maxWidth !== null) {
577
+ const t = (r) => {
578
+ var o, a, s, l, f;
579
+ const n = ((s = (a = (o = e.theme) == null ? void 0 : o.breakpoints) == null ? void 0 : a.values) == null ? void 0 : s[r]) || Ce[r];
580
+ return n ? ((f = (l = e.theme) == null ? void 0 : l.breakpoints) == null ? void 0 : f.unit) !== "px" ? {
581
+ maxWidth: `${n}${e.theme.breakpoints.unit}`
582
+ } : {
583
+ maxWidth: n
584
+ } : {
585
+ maxWidth: M(r)
586
+ };
587
+ };
588
+ return Y(e, e.maxWidth, t);
589
+ }
590
+ return null;
591
+ };
592
+ je.filterProps = ["maxWidth"];
593
+ const br = I({
594
+ prop: "minWidth",
595
+ transform: M
596
+ }), Sr = I({
597
+ prop: "height",
598
+ transform: M
599
+ }), Cr = I({
600
+ prop: "maxHeight",
601
+ transform: M
602
+ }), wr = I({
603
+ prop: "minHeight",
604
+ transform: M
605
+ });
606
+ I({
607
+ prop: "size",
608
+ cssProperty: "width",
609
+ transform: M
610
+ });
611
+ I({
612
+ prop: "size",
613
+ cssProperty: "height",
614
+ transform: M
615
+ });
616
+ const xr = I({
617
+ prop: "boxSizing"
618
+ });
619
+ xe(yr, je, br, Sr, Cr, wr, xr);
620
+ const Ae = {
621
+ // borders
622
+ border: {
623
+ themeKey: "borders",
624
+ transform: V
625
+ },
626
+ borderTop: {
627
+ themeKey: "borders",
628
+ transform: V
629
+ },
630
+ borderRight: {
631
+ themeKey: "borders",
632
+ transform: V
633
+ },
634
+ borderBottom: {
635
+ themeKey: "borders",
636
+ transform: V
637
+ },
638
+ borderLeft: {
639
+ themeKey: "borders",
640
+ transform: V
641
+ },
642
+ borderColor: {
643
+ themeKey: "palette"
644
+ },
645
+ borderTopColor: {
646
+ themeKey: "palette"
647
+ },
648
+ borderRightColor: {
649
+ themeKey: "palette"
650
+ },
651
+ borderBottomColor: {
652
+ themeKey: "palette"
653
+ },
654
+ borderLeftColor: {
655
+ themeKey: "palette"
656
+ },
657
+ outline: {
658
+ themeKey: "borders",
659
+ transform: V
660
+ },
661
+ outlineColor: {
662
+ themeKey: "palette"
663
+ },
664
+ borderRadius: {
665
+ themeKey: "shape.borderRadius",
666
+ style: Te
667
+ },
668
+ // palette
669
+ color: {
670
+ themeKey: "palette",
671
+ transform: oe
672
+ },
673
+ bgcolor: {
674
+ themeKey: "palette",
675
+ cssProperty: "backgroundColor",
676
+ transform: oe
677
+ },
678
+ backgroundColor: {
679
+ themeKey: "palette",
680
+ transform: oe
681
+ },
682
+ // spacing
683
+ p: {
684
+ style: O
685
+ },
686
+ pt: {
687
+ style: O
688
+ },
689
+ pr: {
690
+ style: O
691
+ },
692
+ pb: {
693
+ style: O
694
+ },
695
+ pl: {
696
+ style: O
697
+ },
698
+ px: {
699
+ style: O
700
+ },
701
+ py: {
702
+ style: O
703
+ },
704
+ padding: {
705
+ style: O
706
+ },
707
+ paddingTop: {
708
+ style: O
709
+ },
710
+ paddingRight: {
711
+ style: O
712
+ },
713
+ paddingBottom: {
714
+ style: O
715
+ },
716
+ paddingLeft: {
717
+ style: O
718
+ },
719
+ paddingX: {
720
+ style: O
721
+ },
722
+ paddingY: {
723
+ style: O
724
+ },
725
+ paddingInline: {
726
+ style: O
727
+ },
728
+ paddingInlineStart: {
729
+ style: O
730
+ },
731
+ paddingInlineEnd: {
732
+ style: O
733
+ },
734
+ paddingBlock: {
735
+ style: O
736
+ },
737
+ paddingBlockStart: {
738
+ style: O
739
+ },
740
+ paddingBlockEnd: {
741
+ style: O
742
+ },
743
+ m: {
744
+ style: E
745
+ },
746
+ mt: {
747
+ style: E
748
+ },
749
+ mr: {
750
+ style: E
751
+ },
752
+ mb: {
753
+ style: E
754
+ },
755
+ ml: {
756
+ style: E
757
+ },
758
+ mx: {
759
+ style: E
760
+ },
761
+ my: {
762
+ style: E
763
+ },
764
+ margin: {
765
+ style: E
766
+ },
767
+ marginTop: {
768
+ style: E
769
+ },
770
+ marginRight: {
771
+ style: E
772
+ },
773
+ marginBottom: {
774
+ style: E
775
+ },
776
+ marginLeft: {
777
+ style: E
778
+ },
779
+ marginX: {
780
+ style: E
781
+ },
782
+ marginY: {
783
+ style: E
784
+ },
785
+ marginInline: {
786
+ style: E
787
+ },
788
+ marginInlineStart: {
789
+ style: E
790
+ },
791
+ marginInlineEnd: {
792
+ style: E
793
+ },
794
+ marginBlock: {
795
+ style: E
796
+ },
797
+ marginBlockStart: {
798
+ style: E
799
+ },
800
+ marginBlockEnd: {
801
+ style: E
802
+ },
803
+ // display
804
+ displayPrint: {
805
+ cssProperty: !1,
806
+ transform: (e) => ({
807
+ "@media print": {
808
+ display: e
809
+ }
810
+ })
811
+ },
812
+ display: {},
813
+ overflow: {},
814
+ textOverflow: {},
815
+ visibility: {},
816
+ whiteSpace: {},
817
+ // flexbox
818
+ flexBasis: {},
819
+ flexDirection: {},
820
+ flexWrap: {},
821
+ justifyContent: {},
822
+ alignItems: {},
823
+ alignContent: {},
824
+ order: {},
825
+ flex: {},
826
+ flexGrow: {},
827
+ flexShrink: {},
828
+ alignSelf: {},
829
+ justifyItems: {},
830
+ justifySelf: {},
831
+ // grid
832
+ gap: {
833
+ style: $e
834
+ },
835
+ rowGap: {
836
+ style: ve
837
+ },
838
+ columnGap: {
839
+ style: ke
840
+ },
841
+ gridColumn: {},
842
+ gridRow: {},
843
+ gridAutoFlow: {},
844
+ gridAutoColumns: {},
845
+ gridAutoRows: {},
846
+ gridTemplateColumns: {},
847
+ gridTemplateRows: {},
848
+ gridTemplateAreas: {},
849
+ gridArea: {},
850
+ // positions
851
+ position: {},
852
+ zIndex: {
853
+ themeKey: "zIndex"
854
+ },
855
+ top: {},
856
+ right: {},
857
+ bottom: {},
858
+ left: {},
859
+ // shadows
860
+ boxShadow: {
861
+ themeKey: "shadows"
862
+ },
863
+ // sizing
864
+ width: {
865
+ transform: M
866
+ },
867
+ maxWidth: {
868
+ style: je
869
+ },
870
+ minWidth: {
871
+ transform: M
872
+ },
873
+ height: {
874
+ transform: M
875
+ },
876
+ maxHeight: {
877
+ transform: M
878
+ },
879
+ minHeight: {
880
+ transform: M
881
+ },
882
+ boxSizing: {},
883
+ // typography
884
+ font: {
885
+ themeKey: "font"
886
+ },
887
+ fontFamily: {
888
+ themeKey: "typography"
889
+ },
890
+ fontSize: {
891
+ themeKey: "typography"
892
+ },
893
+ fontStyle: {
894
+ themeKey: "typography"
895
+ },
896
+ fontWeight: {
897
+ themeKey: "typography"
898
+ },
899
+ letterSpacing: {},
900
+ textTransform: {},
901
+ lineHeight: {},
902
+ textAlign: {},
903
+ typography: {
904
+ cssProperty: !1,
905
+ themeKey: "typography"
906
+ }
907
+ };
908
+ function Tr(...e) {
909
+ const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
910
+ return e.every((n) => r.size === Object.keys(n).length);
911
+ }
912
+ function $r(e, t) {
913
+ return typeof e == "function" ? e(t) : e;
914
+ }
915
+ function kr() {
916
+ function e(r, n, o, a) {
917
+ const s = {
918
+ [r]: n,
919
+ theme: o
920
+ }, l = a[r];
921
+ if (!l)
922
+ return {
923
+ [r]: n
924
+ };
925
+ const {
926
+ cssProperty: f = r,
927
+ themeKey: d,
928
+ transform: h,
929
+ style: p
930
+ } = l;
931
+ if (n == null)
932
+ return null;
933
+ if (d === "typography" && n === "inherit")
934
+ return {
935
+ [r]: n
936
+ };
937
+ const m = we(o, d) || {};
938
+ return p ? p(s) : Y(s, n, (g) => {
939
+ let u = Se(m, h, g);
940
+ return g === u && typeof g == "string" && (u = Se(m, h, `${r}${g === "default" ? "" : ie(g)}`, g)), f === !1 ? u : {
941
+ [f]: u
942
+ };
943
+ });
944
+ }
945
+ function t(r) {
946
+ const {
947
+ sx: n,
948
+ theme: o = {},
949
+ nested: a
950
+ } = r || {};
951
+ if (!n)
952
+ return null;
953
+ const s = o.unstable_sxConfig ?? Ae;
954
+ function l(f) {
955
+ let d = f;
956
+ if (typeof f == "function")
957
+ d = f(o);
958
+ else if (typeof f != "object")
959
+ return f;
960
+ if (!d)
961
+ return null;
962
+ const h = jt(o.breakpoints), p = Object.keys(h);
963
+ let m = h;
964
+ return Object.keys(d).forEach((b) => {
965
+ const g = $r(d[b], o);
966
+ if (g != null)
967
+ if (typeof g == "object")
968
+ if (s[b])
969
+ m = de(m, e(b, g, o, s));
970
+ else {
971
+ const u = Y({
972
+ theme: o
973
+ }, g, ($) => ({
974
+ [b]: $
975
+ }));
976
+ Tr(u, g) ? m[b] = t({
977
+ sx: g,
978
+ theme: o,
979
+ nested: !0
980
+ }) : m = de(m, u);
981
+ }
982
+ else
983
+ m = de(m, e(b, g, o, s));
984
+ }), !a && o.modularCssLayers ? {
985
+ "@layer sx": qe(o, Ze(p, m))
986
+ } : qe(o, Ze(p, m));
987
+ }
988
+ return Array.isArray(n) ? n.map(l) : l(n);
989
+ }
990
+ return t;
991
+ }
992
+ const ae = kr();
993
+ ae.filterProps = ["sx"];
994
+ function vr(e, t) {
995
+ var n;
996
+ const r = this;
997
+ if (r.vars) {
998
+ if (!((n = r.colorSchemes) != null && n[e]) || typeof r.getColorSchemeSelector != "function")
999
+ return {};
1000
+ let o = r.getColorSchemeSelector(e);
1001
+ return o === "&" ? t : ((o.includes("data-") || o.includes(".")) && (o = `*:where(${o.replace(/\s*&$/, "")}) &`), {
1002
+ [o]: t
1003
+ });
1004
+ }
1005
+ return r.palette.mode === e ? t : {};
1006
+ }
1007
+ function pt(e = {}, ...t) {
1008
+ const {
1009
+ breakpoints: r = {},
1010
+ palette: n = {},
1011
+ spacing: o,
1012
+ shape: a = {},
1013
+ ...s
1014
+ } = e, l = _t(r), f = mt(o);
1015
+ let d = j({
1016
+ breakpoints: l,
1017
+ direction: "ltr",
1018
+ components: {},
1019
+ // Inject component definitions.
1020
+ palette: {
1021
+ mode: "light",
1022
+ ...n
1023
+ },
1024
+ spacing: f,
1025
+ shape: {
1026
+ ...Dt,
1027
+ ...a
1028
+ }
1029
+ }, s);
1030
+ return d = zt(d), d.applyStyles = vr, d = t.reduce((h, p) => j(h, p), d), d.unstable_sxConfig = {
1031
+ ...Ae,
1032
+ ...s == null ? void 0 : s.unstable_sxConfig
1033
+ }, d.unstable_sx = function(p) {
1034
+ return ae({
1035
+ sx: p,
1036
+ theme: this
1037
+ });
1038
+ }, d;
1039
+ }
1040
+ const tt = (e) => e, Ar = () => {
1041
+ let e = tt;
1042
+ return {
1043
+ configure(t) {
1044
+ e = t;
1045
+ },
1046
+ generate(t) {
1047
+ return e(t);
1048
+ },
1049
+ reset() {
1050
+ e = tt;
1051
+ }
1052
+ };
1053
+ }, Br = Ar(), Er = {
1054
+ active: "active",
1055
+ checked: "checked",
1056
+ completed: "completed",
1057
+ disabled: "disabled",
1058
+ error: "error",
1059
+ expanded: "expanded",
1060
+ focused: "focused",
1061
+ focusVisible: "focusVisible",
1062
+ open: "open",
1063
+ readOnly: "readOnly",
1064
+ required: "required",
1065
+ selected: "selected"
1066
+ };
1067
+ function gt(e, t, r = "Mui") {
1068
+ const n = Er[t];
1069
+ return n ? `${r}-${n}` : `${Br.generate(e)}-${t}`;
1070
+ }
1071
+ function Or(e, t, r = "Mui") {
1072
+ const n = {};
1073
+ return t.forEach((o) => {
1074
+ n[o] = gt(e, o, r);
1075
+ }), n;
1076
+ }
1077
+ function ht(e) {
1078
+ const {
1079
+ variants: t,
1080
+ ...r
1081
+ } = e, n = {
1082
+ variants: t,
1083
+ style: q(r),
1084
+ isProcessed: !0
1085
+ };
1086
+ return n.style === r || t && t.forEach((o) => {
1087
+ typeof o.style != "function" && (o.style = q(o.style));
1088
+ }), n;
1089
+ }
1090
+ const Rr = pt();
1091
+ function Oe(e) {
1092
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
1093
+ }
1094
+ function X(e, t) {
1095
+ return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
1096
+ }
1097
+ function Pr(e) {
1098
+ return e ? (t, r) => r[e] : null;
1099
+ }
1100
+ function Ir(e, t, r) {
1101
+ e.theme = Lr(e.theme) ? r : e.theme[t] || e.theme;
1102
+ }
1103
+ function be(e, t, r) {
1104
+ const n = typeof t == "function" ? t(e) : t;
1105
+ if (Array.isArray(n))
1106
+ return n.flatMap((o) => be(e, o, r));
1107
+ if (Array.isArray(n == null ? void 0 : n.variants)) {
1108
+ let o;
1109
+ if (n.isProcessed)
1110
+ o = r ? X(n.style, r) : n.style;
1111
+ else {
1112
+ const {
1113
+ variants: a,
1114
+ ...s
1115
+ } = n;
1116
+ o = r ? X(q(s), r) : s;
1117
+ }
1118
+ return yt(e, n.variants, [o], r);
1119
+ }
1120
+ return n != null && n.isProcessed ? r ? X(q(n.style), r) : n.style : r ? X(q(n), r) : n;
1121
+ }
1122
+ function yt(e, t, r = [], n = void 0) {
1123
+ var a;
1124
+ let o;
1125
+ e: for (let s = 0; s < t.length; s += 1) {
1126
+ const l = t[s];
1127
+ if (typeof l.props == "function") {
1128
+ if (o ?? (o = {
1129
+ ...e,
1130
+ ...e.ownerState,
1131
+ ownerState: e.ownerState
1132
+ }), !l.props(o))
1133
+ continue;
1134
+ } else
1135
+ for (const f in l.props)
1136
+ if (e[f] !== l.props[f] && ((a = e.ownerState) == null ? void 0 : a[f]) !== l.props[f])
1137
+ continue e;
1138
+ typeof l.style == "function" ? (o ?? (o = {
1139
+ ...e,
1140
+ ...e.ownerState,
1141
+ ownerState: e.ownerState
1142
+ }), r.push(n ? X(q(l.style(o)), n) : l.style(o))) : r.push(n ? X(q(l.style), n) : l.style);
1143
+ }
1144
+ return r;
1145
+ }
1146
+ function _r(e = {}) {
1147
+ const {
1148
+ themeId: t,
1149
+ defaultTheme: r = Rr,
1150
+ rootShouldForwardProp: n = Oe,
1151
+ slotShouldForwardProp: o = Oe
1152
+ } = e;
1153
+ function a(l) {
1154
+ Ir(l, t, r);
1155
+ }
1156
+ return (l, f = {}) => {
1157
+ Pt(l, (B) => B.filter((P) => P !== ae));
1158
+ const {
1159
+ name: d,
1160
+ slot: h,
1161
+ skipVariantsResolver: p,
1162
+ skipSx: m,
1163
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
1164
+ // For more details: https://github.com/mui/material-ui/pull/37908
1165
+ overridesResolver: b = Pr(Dr(h)),
1166
+ ...g
1167
+ } = f, u = d && d.startsWith("Mui") || h ? "components" : "custom", $ = p !== void 0 ? p : (
1168
+ // TODO v6: remove `Root` in the next major release
1169
+ // For more details: https://github.com/mui/material-ui/pull/37908
1170
+ h && h !== "Root" && h !== "root" || !1
1171
+ ), R = m || !1;
1172
+ let z = Oe;
1173
+ h === "Root" || h === "root" ? z = n : h ? z = o : zr(l) && (z = void 0);
1174
+ const w = Rt(l, {
1175
+ shouldForwardProp: z,
1176
+ label: Fr(),
1177
+ ...g
1178
+ }), S = (B) => {
1179
+ if (B.__emotion_real === B)
1180
+ return B;
1181
+ if (typeof B == "function")
1182
+ return function(D) {
1183
+ return be(D, B, D.theme.modularCssLayers ? u : void 0);
1184
+ };
1185
+ if (H(B)) {
1186
+ const P = ht(B);
1187
+ return function(F) {
1188
+ return P.variants ? be(F, P, F.theme.modularCssLayers ? u : void 0) : F.theme.modularCssLayers ? X(P.style, u) : P.style;
1189
+ };
1190
+ }
1191
+ return B;
1192
+ }, _ = (...B) => {
1193
+ const P = [], D = B.map(S), F = [];
1194
+ if (P.push(a), d && b && F.push(function(x) {
1195
+ var le, Ne;
1196
+ const L = (Ne = (le = x.theme.components) == null ? void 0 : le[d]) == null ? void 0 : Ne.styleOverrides;
1197
+ if (!L)
1198
+ return null;
1199
+ const se = {};
1200
+ for (const He in L)
1201
+ se[He] = be(x, L[He], x.theme.modularCssLayers ? "theme" : void 0);
1202
+ return b(x, se);
1203
+ }), d && !$ && F.push(function(x) {
1204
+ var se, le;
1205
+ const W = x.theme, L = (le = (se = W == null ? void 0 : W.components) == null ? void 0 : se[d]) == null ? void 0 : le.variants;
1206
+ return L ? yt(x, L, [], x.theme.modularCssLayers ? "theme" : void 0) : null;
1207
+ }), R || F.push(ae), Array.isArray(D[0])) {
1208
+ const C = D.shift(), x = new Array(P.length).fill(""), W = new Array(F.length).fill("");
1209
+ let L;
1210
+ L = [...x, ...C, ...W], L.raw = [...x, ...C.raw, ...W], P.unshift(L);
1211
+ }
1212
+ const i = [...P, ...D, ...F], y = w(...i);
1213
+ return l.muiName && (y.muiName = l.muiName), y;
1214
+ };
1215
+ return w.withConfig && (_.withConfig = w.withConfig), _;
1216
+ };
1217
+ }
1218
+ function Fr(e, t) {
1219
+ return void 0;
1220
+ }
1221
+ function Lr(e) {
1222
+ for (const t in e)
1223
+ return !1;
1224
+ return !0;
1225
+ }
1226
+ function zr(e) {
1227
+ return typeof e == "string" && // 96 is one less than the char code
1228
+ // for "a" so this is checking that
1229
+ // it's a lowercase character
1230
+ e.charCodeAt(0) > 96;
1231
+ }
1232
+ function Dr(e) {
1233
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
1234
+ }
1235
+ function Mr(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
1236
+ return Math.max(t, Math.min(e, r));
1237
+ }
1238
+ function We(e, t = 0, r = 1) {
1239
+ return Mr(e, t, r);
1240
+ }
1241
+ function jr(e) {
1242
+ e = e.slice(1);
1243
+ const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
1244
+ let r = e.match(t);
1245
+ return r && r[0].length === 1 && (r = r.map((n) => n + n)), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
1246
+ }
1247
+ function Q(e) {
1248
+ if (e.type)
1249
+ return e;
1250
+ if (e.charAt(0) === "#")
1251
+ return Q(jr(e));
1252
+ const t = e.indexOf("("), r = e.substring(0, t);
1253
+ if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
1254
+ throw new Error(J(9, e));
1255
+ let n = e.substring(t + 1, e.length - 1), o;
1256
+ if (r === "color") {
1257
+ 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))
1258
+ throw new Error(J(10, o));
1259
+ } else
1260
+ n = n.split(",");
1261
+ return n = n.map((a) => parseFloat(a)), {
1262
+ type: r,
1263
+ values: n,
1264
+ colorSpace: o
1265
+ };
1266
+ }
1267
+ const Wr = (e) => {
1268
+ const t = Q(e);
1269
+ return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
1270
+ }, ue = (e, t) => {
1271
+ try {
1272
+ return Wr(e);
1273
+ } catch {
1274
+ return e;
1275
+ }
1276
+ };
1277
+ function Be(e) {
1278
+ const {
1279
+ type: t,
1280
+ colorSpace: r
1281
+ } = e;
1282
+ let {
1283
+ values: n
1284
+ } = e;
1285
+ 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})`;
1286
+ }
1287
+ function bt(e) {
1288
+ e = Q(e);
1289
+ const {
1290
+ values: t
1291
+ } = e, r = t[0], n = t[1] / 100, o = t[2] / 100, a = n * Math.min(o, 1 - o), s = (d, h = (d + r / 30) % 12) => o - a * Math.max(Math.min(h - 3, 9 - h, 1), -1);
1292
+ let l = "rgb";
1293
+ const f = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
1294
+ return e.type === "hsla" && (l += "a", f.push(t[3])), Be({
1295
+ type: l,
1296
+ values: f
1297
+ });
1298
+ }
1299
+ function _e(e) {
1300
+ e = Q(e);
1301
+ let t = e.type === "hsl" || e.type === "hsla" ? Q(bt(e)).values : e.values;
1302
+ 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));
1303
+ }
1304
+ function Vr(e, t) {
1305
+ const r = _e(e), n = _e(t);
1306
+ return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
1307
+ }
1308
+ function Kr(e, t) {
1309
+ return e = Q(e), t = We(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Be(e);
1310
+ }
1311
+ function he(e, t, r) {
1312
+ try {
1313
+ return Kr(e, t);
1314
+ } catch {
1315
+ return e;
1316
+ }
1317
+ }
1318
+ function Ve(e, t) {
1319
+ if (e = Q(e), t = We(t), e.type.includes("hsl"))
1320
+ e.values[2] *= 1 - t;
1321
+ else if (e.type.includes("rgb") || e.type.includes("color"))
1322
+ for (let r = 0; r < 3; r += 1)
1323
+ e.values[r] *= 1 - t;
1324
+ return Be(e);
1325
+ }
1326
+ function k(e, t, r) {
1327
+ try {
1328
+ return Ve(e, t);
1329
+ } catch {
1330
+ return e;
1331
+ }
1332
+ }
1333
+ function Ke(e, t) {
1334
+ if (e = Q(e), t = We(t), e.type.includes("hsl"))
1335
+ e.values[2] += (100 - e.values[2]) * t;
1336
+ else if (e.type.includes("rgb"))
1337
+ for (let r = 0; r < 3; r += 1)
1338
+ e.values[r] += (255 - e.values[r]) * t;
1339
+ else if (e.type.includes("color"))
1340
+ for (let r = 0; r < 3; r += 1)
1341
+ e.values[r] += (1 - e.values[r]) * t;
1342
+ return Be(e);
1343
+ }
1344
+ function v(e, t, r) {
1345
+ try {
1346
+ return Ke(e, t);
1347
+ } catch {
1348
+ return e;
1349
+ }
1350
+ }
1351
+ function Gr(e, t = 0.15) {
1352
+ return _e(e) > 0.5 ? Ve(e, t) : Ke(e, t);
1353
+ }
1354
+ function ye(e, t, r) {
1355
+ try {
1356
+ return Gr(e, t);
1357
+ } catch {
1358
+ return e;
1359
+ }
1360
+ }
1361
+ function Nr(e, t, r = void 0) {
1362
+ const n = {};
1363
+ for (const o in e) {
1364
+ const a = e[o];
1365
+ let s = "", l = !0;
1366
+ for (let f = 0; f < a.length; f += 1) {
1367
+ const d = a[f];
1368
+ d && (s += (l === !0 ? "" : " ") + t(d), l = !1, r && r[d] && (s += " " + r[d]));
1369
+ }
1370
+ n[o] = s;
1371
+ }
1372
+ return n;
1373
+ }
1374
+ const Hr = /* @__PURE__ */ U.createContext(void 0);
1375
+ function Yr(e) {
1376
+ const {
1377
+ theme: t,
1378
+ name: r,
1379
+ props: n
1380
+ } = e;
1381
+ if (!t || !t.components || !t.components[r])
1382
+ return n;
1383
+ const o = t.components[r];
1384
+ return o.defaultProps ? Ye(o.defaultProps, n) : !o.styleOverrides && !o.variants ? Ye(o, n) : n;
1385
+ }
1386
+ function Ur({
1387
+ props: e,
1388
+ name: t
1389
+ }) {
1390
+ const r = U.useContext(Hr);
1391
+ return Yr({
1392
+ props: e,
1393
+ name: t,
1394
+ theme: {
1395
+ components: r
1396
+ }
1397
+ });
1398
+ }
1399
+ const rt = {
1400
+ theme: void 0
1401
+ };
1402
+ function Qr(e) {
1403
+ let t, r;
1404
+ return function(o) {
1405
+ let a = t;
1406
+ return (a === void 0 || o.theme !== r) && (rt.theme = o.theme, a = ht(e(rt)), t = a, r = o.theme), a;
1407
+ };
1408
+ }
1409
+ function Xr(e = "") {
1410
+ function t(...n) {
1411
+ if (!n.length)
1412
+ return "";
1413
+ const o = n[0];
1414
+ return typeof o == "string" && !o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/) ? `, var(--${e ? `${e}-` : ""}${o}${t(...n.slice(1))})` : `, ${o}`;
1415
+ }
1416
+ return (n, ...o) => `var(--${e ? `${e}-` : ""}${n}${t(...o)})`;
1417
+ }
1418
+ const nt = (e, t, r, n = []) => {
1419
+ let o = e;
1420
+ t.forEach((a, s) => {
1421
+ 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]);
1422
+ });
1423
+ }, qr = (e, t, r) => {
1424
+ function n(o, a = [], s = []) {
1425
+ Object.entries(o).forEach(([l, f]) => {
1426
+ (!r || r && !r([...a, l])) && f != null && (typeof f == "object" && Object.keys(f).length > 0 ? n(f, [...a, l], Array.isArray(f) ? [...s, l] : s) : t([...a, l], f, s));
1427
+ });
1428
+ }
1429
+ n(e);
1430
+ }, Jr = (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;
1431
+ function Re(e, t) {
1432
+ const {
1433
+ prefix: r,
1434
+ shouldSkipGeneratingVar: n
1435
+ } = t || {}, o = {}, a = {}, s = {};
1436
+ return qr(
1437
+ e,
1438
+ (l, f, d) => {
1439
+ if ((typeof f == "string" || typeof f == "number") && (!n || !n(l, f))) {
1440
+ const h = `--${r ? `${r}-` : ""}${l.join("-")}`, p = Jr(l, f);
1441
+ Object.assign(o, {
1442
+ [h]: p
1443
+ }), nt(a, l, `var(${h})`, d), nt(s, l, `var(${h}, ${p})`, d);
1444
+ }
1445
+ },
1446
+ (l) => l[0] === "vars"
1447
+ // skip 'vars/*' paths
1448
+ ), {
1449
+ css: o,
1450
+ vars: a,
1451
+ varsWithDefaults: s
1452
+ };
1453
+ }
1454
+ function Zr(e, t = {}) {
1455
+ const {
1456
+ getSelector: r = $,
1457
+ disableCssColorScheme: n,
1458
+ colorSchemeSelector: o
1459
+ } = t, {
1460
+ colorSchemes: a = {},
1461
+ components: s,
1462
+ defaultColorScheme: l = "light",
1463
+ ...f
1464
+ } = e, {
1465
+ vars: d,
1466
+ css: h,
1467
+ varsWithDefaults: p
1468
+ } = Re(f, t);
1469
+ let m = p;
1470
+ const b = {}, {
1471
+ [l]: g,
1472
+ ...u
1473
+ } = a;
1474
+ if (Object.entries(u || {}).forEach(([w, S]) => {
1475
+ const {
1476
+ vars: _,
1477
+ css: B,
1478
+ varsWithDefaults: P
1479
+ } = Re(S, t);
1480
+ m = j(m, P), b[w] = {
1481
+ css: B,
1482
+ vars: _
1483
+ };
1484
+ }), g) {
1485
+ const {
1486
+ css: w,
1487
+ vars: S,
1488
+ varsWithDefaults: _
1489
+ } = Re(g, t);
1490
+ m = j(m, _), b[l] = {
1491
+ css: w,
1492
+ vars: S
1493
+ };
1494
+ }
1495
+ function $(w, S) {
1496
+ var B, P;
1497
+ let _ = o;
1498
+ if (o === "class" && (_ = ".%s"), o === "data" && (_ = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (_ = `[${o}="%s"]`), w) {
1499
+ if (_ === "media")
1500
+ return e.defaultColorScheme === w ? ":root" : {
1501
+ [`@media (prefers-color-scheme: ${((P = (B = a[w]) == null ? void 0 : B.palette) == null ? void 0 : P.mode) || w})`]: {
1502
+ ":root": S
1503
+ }
1504
+ };
1505
+ if (_)
1506
+ return e.defaultColorScheme === w ? `:root, ${_.replace("%s", String(w))}` : _.replace("%s", String(w));
1507
+ }
1508
+ return ":root";
1509
+ }
1510
+ return {
1511
+ vars: m,
1512
+ generateThemeVars: () => {
1513
+ let w = {
1514
+ ...d
1515
+ };
1516
+ return Object.entries(b).forEach(([, {
1517
+ vars: S
1518
+ }]) => {
1519
+ w = j(w, S);
1520
+ }), w;
1521
+ },
1522
+ generateStyleSheets: () => {
1523
+ var D, F;
1524
+ const w = [], S = e.defaultColorScheme || "light";
1525
+ function _(i, y) {
1526
+ Object.keys(y).length && w.push(typeof i == "string" ? {
1527
+ [i]: {
1528
+ ...y
1529
+ }
1530
+ } : i);
1531
+ }
1532
+ _(r(void 0, {
1533
+ ...h
1534
+ }), h);
1535
+ const {
1536
+ [S]: B,
1537
+ ...P
1538
+ } = b;
1539
+ if (B) {
1540
+ const {
1541
+ css: i
1542
+ } = B, y = (F = (D = a[S]) == null ? void 0 : D.palette) == null ? void 0 : F.mode, C = !n && y ? {
1543
+ colorScheme: y,
1544
+ ...i
1545
+ } : {
1546
+ ...i
1547
+ };
1548
+ _(r(S, {
1549
+ ...C
1550
+ }), C);
1551
+ }
1552
+ return Object.entries(P).forEach(([i, {
1553
+ css: y
1554
+ }]) => {
1555
+ var W, L;
1556
+ const C = (L = (W = a[i]) == null ? void 0 : W.palette) == null ? void 0 : L.mode, x = !n && C ? {
1557
+ colorScheme: C,
1558
+ ...y
1559
+ } : {
1560
+ ...y
1561
+ };
1562
+ _(r(i, {
1563
+ ...x
1564
+ }), x);
1565
+ }), w;
1566
+ }
1567
+ };
1568
+ }
1569
+ function en(e) {
1570
+ return function(r) {
1571
+ return e === "media" ? `@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)} &` : "&";
1572
+ };
1573
+ }
1574
+ function St() {
1575
+ return {
1576
+ // The colors used to style the text.
1577
+ text: {
1578
+ // The most important text.
1579
+ primary: "rgba(0, 0, 0, 0.87)",
1580
+ // Secondary text.
1581
+ secondary: "rgba(0, 0, 0, 0.6)",
1582
+ // Disabled text have even lower visual prominence.
1583
+ disabled: "rgba(0, 0, 0, 0.38)"
1584
+ },
1585
+ // The color used to divide different elements.
1586
+ divider: "rgba(0, 0, 0, 0.12)",
1587
+ // The background colors used to style the surfaces.
1588
+ // Consistency between these values is important.
1589
+ background: {
1590
+ paper: me.white,
1591
+ default: me.white
1592
+ },
1593
+ // The colors used to style the action elements.
1594
+ action: {
1595
+ // The color of an active action like an icon button.
1596
+ active: "rgba(0, 0, 0, 0.54)",
1597
+ // The color of an hovered action.
1598
+ hover: "rgba(0, 0, 0, 0.04)",
1599
+ hoverOpacity: 0.04,
1600
+ // The color of a selected action.
1601
+ selected: "rgba(0, 0, 0, 0.08)",
1602
+ selectedOpacity: 0.08,
1603
+ // The color of a disabled action.
1604
+ disabled: "rgba(0, 0, 0, 0.26)",
1605
+ // The background color of a disabled action.
1606
+ disabledBackground: "rgba(0, 0, 0, 0.12)",
1607
+ disabledOpacity: 0.38,
1608
+ focus: "rgba(0, 0, 0, 0.12)",
1609
+ focusOpacity: 0.12,
1610
+ activatedOpacity: 0.12
1611
+ }
1612
+ };
1613
+ }
1614
+ const tn = St();
1615
+ function Ct() {
1616
+ return {
1617
+ text: {
1618
+ primary: me.white,
1619
+ secondary: "rgba(255, 255, 255, 0.7)",
1620
+ disabled: "rgba(255, 255, 255, 0.5)",
1621
+ icon: "rgba(255, 255, 255, 0.5)"
1622
+ },
1623
+ divider: "rgba(255, 255, 255, 0.12)",
1624
+ background: {
1625
+ paper: "#121212",
1626
+ default: "#121212"
1627
+ },
1628
+ action: {
1629
+ active: me.white,
1630
+ hover: "rgba(255, 255, 255, 0.08)",
1631
+ hoverOpacity: 0.08,
1632
+ selected: "rgba(255, 255, 255, 0.16)",
1633
+ selectedOpacity: 0.16,
1634
+ disabled: "rgba(255, 255, 255, 0.3)",
1635
+ disabledBackground: "rgba(255, 255, 255, 0.12)",
1636
+ disabledOpacity: 0.38,
1637
+ focus: "rgba(255, 255, 255, 0.12)",
1638
+ focusOpacity: 0.12,
1639
+ activatedOpacity: 0.24
1640
+ }
1641
+ };
1642
+ }
1643
+ const ot = Ct();
1644
+ function it(e, t, r, n) {
1645
+ const o = n.light || n, a = n.dark || n * 1.5;
1646
+ e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = Ke(e.main, o) : t === "dark" && (e.dark = Ve(e.main, a)));
1647
+ }
1648
+ function rn(e = "light") {
1649
+ return e === "dark" ? {
1650
+ main: te[200],
1651
+ light: te[50],
1652
+ dark: te[400]
1653
+ } : {
1654
+ main: te[700],
1655
+ light: te[400],
1656
+ dark: te[800]
1657
+ };
1658
+ }
1659
+ function nn(e = "light") {
1660
+ return e === "dark" ? {
1661
+ main: ee[200],
1662
+ light: ee[50],
1663
+ dark: ee[400]
1664
+ } : {
1665
+ main: ee[500],
1666
+ light: ee[300],
1667
+ dark: ee[700]
1668
+ };
1669
+ }
1670
+ function on(e = "light") {
1671
+ return e === "dark" ? {
1672
+ main: Z[500],
1673
+ light: Z[300],
1674
+ dark: Z[700]
1675
+ } : {
1676
+ main: Z[700],
1677
+ light: Z[400],
1678
+ dark: Z[800]
1679
+ };
1680
+ }
1681
+ function an(e = "light") {
1682
+ return e === "dark" ? {
1683
+ main: re[400],
1684
+ light: re[300],
1685
+ dark: re[700]
1686
+ } : {
1687
+ main: re[700],
1688
+ light: re[500],
1689
+ dark: re[900]
1690
+ };
1691
+ }
1692
+ function sn(e = "light") {
1693
+ return e === "dark" ? {
1694
+ main: ne[400],
1695
+ light: ne[300],
1696
+ dark: ne[700]
1697
+ } : {
1698
+ main: ne[800],
1699
+ light: ne[500],
1700
+ dark: ne[900]
1701
+ };
1702
+ }
1703
+ function ln(e = "light") {
1704
+ return e === "dark" ? {
1705
+ main: ce[400],
1706
+ light: ce[300],
1707
+ dark: ce[700]
1708
+ } : {
1709
+ main: "#ed6c02",
1710
+ // closest to orange[800] that pass 3:1.
1711
+ light: ce[500],
1712
+ dark: ce[900]
1713
+ };
1714
+ }
1715
+ function Ge(e) {
1716
+ const {
1717
+ mode: t = "light",
1718
+ contrastThreshold: r = 3,
1719
+ tonalOffset: n = 0.2,
1720
+ ...o
1721
+ } = e, a = e.primary || rn(t), s = e.secondary || nn(t), l = e.error || on(t), f = e.info || an(t), d = e.success || sn(t), h = e.warning || ln(t);
1722
+ function p(u) {
1723
+ return Vr(u, ot.text.primary) >= r ? ot.text.primary : tn.text.primary;
1724
+ }
1725
+ const m = ({
1726
+ color: u,
1727
+ name: $,
1728
+ mainShade: R = 500,
1729
+ lightShade: z = 300,
1730
+ darkShade: w = 700
1731
+ }) => {
1732
+ if (u = {
1733
+ ...u
1734
+ }, !u.main && u[R] && (u.main = u[R]), !u.hasOwnProperty("main"))
1735
+ throw new Error(J(11, $ ? ` (${$})` : "", R));
1736
+ if (typeof u.main != "string")
1737
+ throw new Error(J(12, $ ? ` (${$})` : "", JSON.stringify(u.main)));
1738
+ return it(u, "light", z, n), it(u, "dark", w, n), u.contrastText || (u.contrastText = p(u.main)), u;
1739
+ };
1740
+ let b;
1741
+ return t === "light" ? b = St() : t === "dark" && (b = Ct()), j({
1742
+ // A collection of common colors.
1743
+ common: {
1744
+ ...me
1745
+ },
1746
+ // prevent mutable object.
1747
+ // The palette mode, can be light or dark.
1748
+ mode: t,
1749
+ // The colors used to represent primary interface elements for a user.
1750
+ primary: m({
1751
+ color: a,
1752
+ name: "primary"
1753
+ }),
1754
+ // The colors used to represent secondary interface elements for a user.
1755
+ secondary: m({
1756
+ color: s,
1757
+ name: "secondary",
1758
+ mainShade: "A400",
1759
+ lightShade: "A200",
1760
+ darkShade: "A700"
1761
+ }),
1762
+ // The colors used to represent interface elements that the user should be made aware of.
1763
+ error: m({
1764
+ color: l,
1765
+ name: "error"
1766
+ }),
1767
+ // The colors used to represent potentially dangerous actions or important messages.
1768
+ warning: m({
1769
+ color: h,
1770
+ name: "warning"
1771
+ }),
1772
+ // The colors used to present information to the user that is neutral and not necessarily important.
1773
+ info: m({
1774
+ color: f,
1775
+ name: "info"
1776
+ }),
1777
+ // The colors used to indicate the successful completion of an action that user triggered.
1778
+ success: m({
1779
+ color: d,
1780
+ name: "success"
1781
+ }),
1782
+ // The grey colors.
1783
+ grey: Ot,
1784
+ // Used by `getContrastText()` to maximize the contrast between
1785
+ // the background and the text.
1786
+ contrastThreshold: r,
1787
+ // Takes a background color and returns the text color that maximizes the contrast.
1788
+ getContrastText: p,
1789
+ // Generate a rich color object.
1790
+ augmentColor: m,
1791
+ // Used by the functions below to shift a color's luminance by approximately
1792
+ // two indexes within its tonal palette.
1793
+ // E.g., shift from Red 500 to Red 300 or Red 700.
1794
+ tonalOffset: n,
1795
+ // The light and dark mode object.
1796
+ ...b
1797
+ }, o);
1798
+ }
1799
+ function cn(e) {
1800
+ const t = {};
1801
+ return Object.entries(e).forEach((n) => {
1802
+ const [o, a] = n;
1803
+ 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 || ""}`);
1804
+ }), t;
1805
+ }
1806
+ function un(e, t) {
1807
+ return {
1808
+ toolbar: {
1809
+ minHeight: 56,
1810
+ [e.up("xs")]: {
1811
+ "@media (orientation: landscape)": {
1812
+ minHeight: 48
1813
+ }
1814
+ },
1815
+ [e.up("sm")]: {
1816
+ minHeight: 64
1817
+ }
1818
+ },
1819
+ ...t
1820
+ };
1821
+ }
1822
+ function fn(e) {
1823
+ return Math.round(e * 1e5) / 1e5;
1824
+ }
1825
+ const at = {
1826
+ textTransform: "uppercase"
1827
+ }, st = '"Roboto", "Helvetica", "Arial", sans-serif';
1828
+ function dn(e, t) {
1829
+ const {
1830
+ fontFamily: r = st,
1831
+ // The default font size of the Material Specification.
1832
+ fontSize: n = 14,
1833
+ // px
1834
+ fontWeightLight: o = 300,
1835
+ fontWeightRegular: a = 400,
1836
+ fontWeightMedium: s = 500,
1837
+ fontWeightBold: l = 700,
1838
+ // Tell MUI what's the font-size on the html element.
1839
+ // 16px is the default font-size used by browsers.
1840
+ htmlFontSize: f = 16,
1841
+ // Apply the CSS properties to all the variants.
1842
+ allVariants: d,
1843
+ pxToRem: h,
1844
+ ...p
1845
+ } = typeof t == "function" ? t(e) : t, m = n / 14, b = h || (($) => `${$ / f * m}rem`), g = ($, R, z, w, S) => ({
1846
+ fontFamily: r,
1847
+ fontWeight: $,
1848
+ fontSize: b(R),
1849
+ // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
1850
+ lineHeight: z,
1851
+ // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
1852
+ // across font-families can cause issues with the kerning.
1853
+ ...r === st ? {
1854
+ letterSpacing: `${fn(w / R)}em`
1855
+ } : {},
1856
+ ...S,
1857
+ ...d
1858
+ }), u = {
1859
+ h1: g(o, 96, 1.167, -1.5),
1860
+ h2: g(o, 60, 1.2, -0.5),
1861
+ h3: g(a, 48, 1.167, 0),
1862
+ h4: g(a, 34, 1.235, 0.25),
1863
+ h5: g(a, 24, 1.334, 0),
1864
+ h6: g(s, 20, 1.6, 0.15),
1865
+ subtitle1: g(a, 16, 1.75, 0.15),
1866
+ subtitle2: g(s, 14, 1.57, 0.1),
1867
+ body1: g(a, 16, 1.5, 0.15),
1868
+ body2: g(a, 14, 1.43, 0.15),
1869
+ button: g(s, 14, 1.75, 0.4, at),
1870
+ caption: g(a, 12, 1.66, 0.4),
1871
+ overline: g(a, 12, 2.66, 1, at),
1872
+ // 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.
1873
+ inherit: {
1874
+ fontFamily: "inherit",
1875
+ fontWeight: "inherit",
1876
+ fontSize: "inherit",
1877
+ lineHeight: "inherit",
1878
+ letterSpacing: "inherit"
1879
+ }
1880
+ };
1881
+ return j({
1882
+ htmlFontSize: f,
1883
+ pxToRem: b,
1884
+ fontFamily: r,
1885
+ fontSize: n,
1886
+ fontWeightLight: o,
1887
+ fontWeightRegular: a,
1888
+ fontWeightMedium: s,
1889
+ fontWeightBold: l,
1890
+ ...u
1891
+ }, p, {
1892
+ clone: !1
1893
+ // No need to clone deep
1894
+ });
1895
+ }
1896
+ const mn = 0.2, pn = 0.14, gn = 0.12;
1897
+ function A(...e) {
1898
+ return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${mn})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pn})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${gn})`].join(",");
1899
+ }
1900
+ const hn = ["none", A(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), A(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), A(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), A(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), A(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), A(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), A(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), A(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), A(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), A(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), A(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), A(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), A(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), A(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), A(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), A(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), A(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), A(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), A(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), A(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), A(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), A(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), A(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), A(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], yn = {
1901
+ // This is the most common easing curve.
1902
+ easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
1903
+ // Objects enter the screen at full velocity from off-screen and
1904
+ // slowly decelerate to a resting point.
1905
+ easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
1906
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
1907
+ easeIn: "cubic-bezier(0.4, 0, 1, 1)",
1908
+ // The sharp curve is used by objects that may return to the screen at any time.
1909
+ sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
1910
+ }, bn = {
1911
+ shortest: 150,
1912
+ shorter: 200,
1913
+ short: 250,
1914
+ // most basic recommended timing
1915
+ standard: 300,
1916
+ // this is to be used in complex animations
1917
+ complex: 375,
1918
+ // recommended when something is entering screen
1919
+ enteringScreen: 225,
1920
+ // recommended when something is leaving screen
1921
+ leavingScreen: 195
1922
+ };
1923
+ function lt(e) {
1924
+ return `${Math.round(e)}ms`;
1925
+ }
1926
+ function Sn(e) {
1927
+ if (!e)
1928
+ return 0;
1929
+ const t = e / 36;
1930
+ return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
1931
+ }
1932
+ function Cn(e) {
1933
+ const t = {
1934
+ ...yn,
1935
+ ...e.easing
1936
+ }, r = {
1937
+ ...bn,
1938
+ ...e.duration
1939
+ };
1940
+ return {
1941
+ getAutoHeightDuration: Sn,
1942
+ create: (o = ["all"], a = {}) => {
1943
+ const {
1944
+ duration: s = r.standard,
1945
+ easing: l = t.easeInOut,
1946
+ delay: f = 0,
1947
+ ...d
1948
+ } = a;
1949
+ return (Array.isArray(o) ? o : [o]).map((h) => `${h} ${typeof s == "string" ? s : lt(s)} ${l} ${typeof f == "string" ? f : lt(f)}`).join(",");
1950
+ },
1951
+ ...e,
1952
+ easing: t,
1953
+ duration: r
1954
+ };
1955
+ }
1956
+ const wn = {
1957
+ mobileStepper: 1e3,
1958
+ fab: 1050,
1959
+ speedDial: 1050,
1960
+ appBar: 1100,
1961
+ drawer: 1200,
1962
+ modal: 1300,
1963
+ snackbar: 1400,
1964
+ tooltip: 1500
1965
+ };
1966
+ function xn(e) {
1967
+ return H(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
1968
+ }
1969
+ function wt(e = {}) {
1970
+ const t = {
1971
+ ...e
1972
+ };
1973
+ function r(n) {
1974
+ const o = Object.entries(n);
1975
+ for (let a = 0; a < o.length; a++) {
1976
+ const [s, l] = o[a];
1977
+ !xn(l) || s.startsWith("unstable_") ? delete n[s] : H(l) && (n[s] = {
1978
+ ...l
1979
+ }, r(n[s]));
1980
+ }
1981
+ }
1982
+ return r(t), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
1983
+
1984
+ const theme = ${JSON.stringify(t, null, 2)};
1985
+
1986
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
1987
+ theme.transitions = createTransitions(theme.transitions || {});
1988
+
1989
+ export default theme;`;
1990
+ }
1991
+ function Fe(e = {}, ...t) {
1992
+ const {
1993
+ breakpoints: r,
1994
+ mixins: n = {},
1995
+ spacing: o,
1996
+ palette: a = {},
1997
+ transitions: s = {},
1998
+ typography: l = {},
1999
+ shape: f,
2000
+ ...d
2001
+ } = e;
2002
+ if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
2003
+ // `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.
2004
+ e.generateThemeVars === void 0)
2005
+ throw new Error(J(20));
2006
+ const h = Ge(a), p = pt(e);
2007
+ let m = j(p, {
2008
+ mixins: un(p.breakpoints, n),
2009
+ palette: h,
2010
+ // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
2011
+ shadows: hn.slice(),
2012
+ typography: dn(h, l),
2013
+ transitions: Cn(s),
2014
+ zIndex: {
2015
+ ...wn
2016
+ }
2017
+ });
2018
+ return m = j(m, d), m = t.reduce((b, g) => j(b, g), m), m.unstable_sxConfig = {
2019
+ ...Ae,
2020
+ ...d == null ? void 0 : d.unstable_sxConfig
2021
+ }, m.unstable_sx = function(g) {
2022
+ return ae({
2023
+ sx: g,
2024
+ theme: this
2025
+ });
2026
+ }, m.toRuntimeSource = wt, m;
2027
+ }
2028
+ function Tn(e) {
2029
+ let t;
2030
+ return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
2031
+ }
2032
+ const $n = [...Array(25)].map((e, t) => {
2033
+ if (t === 0)
2034
+ return "none";
2035
+ const r = Tn(t);
2036
+ return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
2037
+ });
2038
+ function xt(e) {
2039
+ return {
2040
+ inputPlaceholder: e === "dark" ? 0.5 : 0.42,
2041
+ inputUnderline: e === "dark" ? 0.7 : 0.42,
2042
+ switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
2043
+ switchTrack: e === "dark" ? 0.3 : 0.38
2044
+ };
2045
+ }
2046
+ function Tt(e) {
2047
+ return e === "dark" ? $n : [];
2048
+ }
2049
+ function kn(e) {
2050
+ const {
2051
+ palette: t = {
2052
+ mode: "light"
2053
+ },
2054
+ // need to cast to avoid module augmentation test
2055
+ opacity: r,
2056
+ overlays: n,
2057
+ ...o
2058
+ } = e, a = Ge(t);
2059
+ return {
2060
+ palette: a,
2061
+ opacity: {
2062
+ ...xt(a.mode),
2063
+ ...r
2064
+ },
2065
+ overlays: n || Tt(a.mode),
2066
+ ...o
2067
+ };
2068
+ }
2069
+ function vn(e) {
2070
+ var t;
2071
+ return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
2072
+ e[0] === "palette" && !!((t = e[1]) != null && t.match(/(mode|contrastThreshold|tonalOffset)/));
2073
+ }
2074
+ const An = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Bn = (e) => (t, r) => {
2075
+ const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
2076
+ let a = o;
2077
+ if (o === "class" && (a = ".%s"), o === "data" && (a = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (a = `[${o}="%s"]`), e.defaultColorScheme === t) {
2078
+ if (t === "dark") {
2079
+ const s = {};
2080
+ return An(e.cssVarPrefix).forEach((l) => {
2081
+ s[l] = r[l], delete r[l];
2082
+ }), a === "media" ? {
2083
+ [n]: r,
2084
+ "@media (prefers-color-scheme: dark)": {
2085
+ [n]: s
2086
+ }
2087
+ } : a ? {
2088
+ [a.replace("%s", t)]: s,
2089
+ [`${n}, ${a.replace("%s", t)}`]: r
2090
+ } : {
2091
+ [n]: {
2092
+ ...r,
2093
+ ...s
2094
+ }
2095
+ };
2096
+ }
2097
+ if (a && a !== "media")
2098
+ return `${n}, ${a.replace("%s", String(t))}`;
2099
+ } else if (t) {
2100
+ if (a === "media")
2101
+ return {
2102
+ [`@media (prefers-color-scheme: ${String(t)})`]: {
2103
+ [n]: r
2104
+ }
2105
+ };
2106
+ if (a)
2107
+ return a.replace("%s", String(t));
2108
+ }
2109
+ return n;
2110
+ };
2111
+ function En(e, t) {
2112
+ t.forEach((r) => {
2113
+ e[r] || (e[r] = {});
2114
+ });
2115
+ }
2116
+ function c(e, t, r) {
2117
+ !e[t] && r && (e[t] = r);
2118
+ }
2119
+ function fe(e) {
2120
+ return typeof e != "string" || !e.startsWith("hsl") ? e : bt(e);
2121
+ }
2122
+ function N(e, t) {
2123
+ `${t}Channel` in e || (e[`${t}Channel`] = ue(fe(e[t])));
2124
+ }
2125
+ function On(e) {
2126
+ return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
2127
+ }
2128
+ const G = (e) => {
2129
+ try {
2130
+ return e();
2131
+ } catch {
2132
+ }
2133
+ }, Rn = (e = "mui") => Xr(e);
2134
+ function Pe(e, t, r, n) {
2135
+ if (!t)
2136
+ return;
2137
+ t = t === !0 ? {} : t;
2138
+ const o = n === "dark" ? "dark" : "light";
2139
+ if (!r) {
2140
+ e[n] = kn({
2141
+ ...t,
2142
+ palette: {
2143
+ mode: o,
2144
+ ...t == null ? void 0 : t.palette
2145
+ }
2146
+ });
2147
+ return;
2148
+ }
2149
+ const {
2150
+ palette: a,
2151
+ ...s
2152
+ } = Fe({
2153
+ ...r,
2154
+ palette: {
2155
+ mode: o,
2156
+ ...t == null ? void 0 : t.palette
2157
+ }
2158
+ });
2159
+ return e[n] = {
2160
+ ...t,
2161
+ palette: a,
2162
+ opacity: {
2163
+ ...xt(o),
2164
+ ...t == null ? void 0 : t.opacity
2165
+ },
2166
+ overlays: (t == null ? void 0 : t.overlays) || Tt(o)
2167
+ }, s;
2168
+ }
2169
+ function Pn(e = {}, ...t) {
2170
+ const {
2171
+ colorSchemes: r = {
2172
+ light: !0
2173
+ },
2174
+ defaultColorScheme: n,
2175
+ disableCssColorScheme: o = !1,
2176
+ cssVarPrefix: a = "mui",
2177
+ shouldSkipGeneratingVar: s = vn,
2178
+ colorSchemeSelector: l = r.light && r.dark ? "media" : void 0,
2179
+ rootSelector: f = ":root",
2180
+ ...d
2181
+ } = e, h = Object.keys(r)[0], p = n || (r.light && h !== "light" ? "light" : h), m = Rn(a), {
2182
+ [p]: b,
2183
+ light: g,
2184
+ dark: u,
2185
+ ...$
2186
+ } = r, R = {
2187
+ ...$
2188
+ };
2189
+ let z = b;
2190
+ if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (z = !0), !z)
2191
+ throw new Error(J(21, p));
2192
+ const w = Pe(R, z, d, p);
2193
+ g && !R.light && Pe(R, g, void 0, "light"), u && !R.dark && Pe(R, u, void 0, "dark");
2194
+ let S = {
2195
+ defaultColorScheme: p,
2196
+ ...w,
2197
+ cssVarPrefix: a,
2198
+ colorSchemeSelector: l,
2199
+ rootSelector: f,
2200
+ getCssVar: m,
2201
+ colorSchemes: R,
2202
+ font: {
2203
+ ...cn(w.typography),
2204
+ ...w.font
2205
+ },
2206
+ spacing: On(d.spacing)
2207
+ };
2208
+ Object.keys(S.colorSchemes).forEach((F) => {
2209
+ const i = S.colorSchemes[F].palette, y = (C) => {
2210
+ const x = C.split("-"), W = x[1], L = x[2];
2211
+ return m(C, i[W][L]);
2212
+ };
2213
+ if (i.mode === "light" && (c(i.common, "background", "#fff"), c(i.common, "onBackground", "#000")), i.mode === "dark" && (c(i.common, "background", "#000"), c(i.common, "onBackground", "#fff")), En(i, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), i.mode === "light") {
2214
+ c(i.Alert, "errorColor", k(i.error.light, 0.6)), c(i.Alert, "infoColor", k(i.info.light, 0.6)), c(i.Alert, "successColor", k(i.success.light, 0.6)), c(i.Alert, "warningColor", k(i.warning.light, 0.6)), c(i.Alert, "errorFilledBg", y("palette-error-main")), c(i.Alert, "infoFilledBg", y("palette-info-main")), c(i.Alert, "successFilledBg", y("palette-success-main")), c(i.Alert, "warningFilledBg", y("palette-warning-main")), c(i.Alert, "errorFilledColor", G(() => i.getContrastText(i.error.main))), c(i.Alert, "infoFilledColor", G(() => i.getContrastText(i.info.main))), c(i.Alert, "successFilledColor", G(() => i.getContrastText(i.success.main))), c(i.Alert, "warningFilledColor", G(() => i.getContrastText(i.warning.main))), c(i.Alert, "errorStandardBg", v(i.error.light, 0.9)), c(i.Alert, "infoStandardBg", v(i.info.light, 0.9)), c(i.Alert, "successStandardBg", v(i.success.light, 0.9)), c(i.Alert, "warningStandardBg", v(i.warning.light, 0.9)), c(i.Alert, "errorIconColor", y("palette-error-main")), c(i.Alert, "infoIconColor", y("palette-info-main")), c(i.Alert, "successIconColor", y("palette-success-main")), c(i.Alert, "warningIconColor", y("palette-warning-main")), c(i.AppBar, "defaultBg", y("palette-grey-100")), c(i.Avatar, "defaultBg", y("palette-grey-400")), c(i.Button, "inheritContainedBg", y("palette-grey-300")), c(i.Button, "inheritContainedHoverBg", y("palette-grey-A100")), c(i.Chip, "defaultBorder", y("palette-grey-400")), c(i.Chip, "defaultAvatarColor", y("palette-grey-700")), c(i.Chip, "defaultIconColor", y("palette-grey-700")), c(i.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), c(i.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), c(i.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), c(i.LinearProgress, "primaryBg", v(i.primary.main, 0.62)), c(i.LinearProgress, "secondaryBg", v(i.secondary.main, 0.62)), c(i.LinearProgress, "errorBg", v(i.error.main, 0.62)), c(i.LinearProgress, "infoBg", v(i.info.main, 0.62)), c(i.LinearProgress, "successBg", v(i.success.main, 0.62)), c(i.LinearProgress, "warningBg", v(i.warning.main, 0.62)), c(i.Skeleton, "bg", `rgba(${y("palette-text-primaryChannel")} / 0.11)`), c(i.Slider, "primaryTrack", v(i.primary.main, 0.62)), c(i.Slider, "secondaryTrack", v(i.secondary.main, 0.62)), c(i.Slider, "errorTrack", v(i.error.main, 0.62)), c(i.Slider, "infoTrack", v(i.info.main, 0.62)), c(i.Slider, "successTrack", v(i.success.main, 0.62)), c(i.Slider, "warningTrack", v(i.warning.main, 0.62));
2215
+ const C = ye(i.background.default, 0.8);
2216
+ c(i.SnackbarContent, "bg", C), c(i.SnackbarContent, "color", G(() => i.getContrastText(C))), c(i.SpeedDialAction, "fabHoverBg", ye(i.background.paper, 0.15)), c(i.StepConnector, "border", y("palette-grey-400")), c(i.StepContent, "border", y("palette-grey-400")), c(i.Switch, "defaultColor", y("palette-common-white")), c(i.Switch, "defaultDisabledColor", y("palette-grey-100")), c(i.Switch, "primaryDisabledColor", v(i.primary.main, 0.62)), c(i.Switch, "secondaryDisabledColor", v(i.secondary.main, 0.62)), c(i.Switch, "errorDisabledColor", v(i.error.main, 0.62)), c(i.Switch, "infoDisabledColor", v(i.info.main, 0.62)), c(i.Switch, "successDisabledColor", v(i.success.main, 0.62)), c(i.Switch, "warningDisabledColor", v(i.warning.main, 0.62)), c(i.TableCell, "border", v(he(i.divider, 1), 0.88)), c(i.Tooltip, "bg", he(i.grey[700], 0.92));
2217
+ }
2218
+ if (i.mode === "dark") {
2219
+ c(i.Alert, "errorColor", v(i.error.light, 0.6)), c(i.Alert, "infoColor", v(i.info.light, 0.6)), c(i.Alert, "successColor", v(i.success.light, 0.6)), c(i.Alert, "warningColor", v(i.warning.light, 0.6)), c(i.Alert, "errorFilledBg", y("palette-error-dark")), c(i.Alert, "infoFilledBg", y("palette-info-dark")), c(i.Alert, "successFilledBg", y("palette-success-dark")), c(i.Alert, "warningFilledBg", y("palette-warning-dark")), c(i.Alert, "errorFilledColor", G(() => i.getContrastText(i.error.dark))), c(i.Alert, "infoFilledColor", G(() => i.getContrastText(i.info.dark))), c(i.Alert, "successFilledColor", G(() => i.getContrastText(i.success.dark))), c(i.Alert, "warningFilledColor", G(() => i.getContrastText(i.warning.dark))), c(i.Alert, "errorStandardBg", k(i.error.light, 0.9)), c(i.Alert, "infoStandardBg", k(i.info.light, 0.9)), c(i.Alert, "successStandardBg", k(i.success.light, 0.9)), c(i.Alert, "warningStandardBg", k(i.warning.light, 0.9)), c(i.Alert, "errorIconColor", y("palette-error-main")), c(i.Alert, "infoIconColor", y("palette-info-main")), c(i.Alert, "successIconColor", y("palette-success-main")), c(i.Alert, "warningIconColor", y("palette-warning-main")), c(i.AppBar, "defaultBg", y("palette-grey-900")), c(i.AppBar, "darkBg", y("palette-background-paper")), c(i.AppBar, "darkColor", y("palette-text-primary")), c(i.Avatar, "defaultBg", y("palette-grey-600")), c(i.Button, "inheritContainedBg", y("palette-grey-800")), c(i.Button, "inheritContainedHoverBg", y("palette-grey-700")), c(i.Chip, "defaultBorder", y("palette-grey-700")), c(i.Chip, "defaultAvatarColor", y("palette-grey-300")), c(i.Chip, "defaultIconColor", y("palette-grey-300")), c(i.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), c(i.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), c(i.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), c(i.LinearProgress, "primaryBg", k(i.primary.main, 0.5)), c(i.LinearProgress, "secondaryBg", k(i.secondary.main, 0.5)), c(i.LinearProgress, "errorBg", k(i.error.main, 0.5)), c(i.LinearProgress, "infoBg", k(i.info.main, 0.5)), c(i.LinearProgress, "successBg", k(i.success.main, 0.5)), c(i.LinearProgress, "warningBg", k(i.warning.main, 0.5)), c(i.Skeleton, "bg", `rgba(${y("palette-text-primaryChannel")} / 0.13)`), c(i.Slider, "primaryTrack", k(i.primary.main, 0.5)), c(i.Slider, "secondaryTrack", k(i.secondary.main, 0.5)), c(i.Slider, "errorTrack", k(i.error.main, 0.5)), c(i.Slider, "infoTrack", k(i.info.main, 0.5)), c(i.Slider, "successTrack", k(i.success.main, 0.5)), c(i.Slider, "warningTrack", k(i.warning.main, 0.5));
2220
+ const C = ye(i.background.default, 0.98);
2221
+ c(i.SnackbarContent, "bg", C), c(i.SnackbarContent, "color", G(() => i.getContrastText(C))), c(i.SpeedDialAction, "fabHoverBg", ye(i.background.paper, 0.15)), c(i.StepConnector, "border", y("palette-grey-600")), c(i.StepContent, "border", y("palette-grey-600")), c(i.Switch, "defaultColor", y("palette-grey-300")), c(i.Switch, "defaultDisabledColor", y("palette-grey-600")), c(i.Switch, "primaryDisabledColor", k(i.primary.main, 0.55)), c(i.Switch, "secondaryDisabledColor", k(i.secondary.main, 0.55)), c(i.Switch, "errorDisabledColor", k(i.error.main, 0.55)), c(i.Switch, "infoDisabledColor", k(i.info.main, 0.55)), c(i.Switch, "successDisabledColor", k(i.success.main, 0.55)), c(i.Switch, "warningDisabledColor", k(i.warning.main, 0.55)), c(i.TableCell, "border", k(he(i.divider, 1), 0.68)), c(i.Tooltip, "bg", he(i.grey[700], 0.92));
2222
+ }
2223
+ N(i.background, "default"), N(i.background, "paper"), N(i.common, "background"), N(i.common, "onBackground"), N(i, "divider"), Object.keys(i).forEach((C) => {
2224
+ const x = i[C];
2225
+ C !== "tonalOffset" && x && typeof x == "object" && (x.main && c(i[C], "mainChannel", ue(fe(x.main))), x.light && c(i[C], "lightChannel", ue(fe(x.light))), x.dark && c(i[C], "darkChannel", ue(fe(x.dark))), x.contrastText && c(i[C], "contrastTextChannel", ue(fe(x.contrastText))), C === "text" && (N(i[C], "primary"), N(i[C], "secondary")), C === "action" && (x.active && N(i[C], "active"), x.selected && N(i[C], "selected")));
2226
+ });
2227
+ }), S = t.reduce((F, i) => j(F, i), S);
2228
+ const _ = {
2229
+ prefix: a,
2230
+ disableCssColorScheme: o,
2231
+ shouldSkipGeneratingVar: s,
2232
+ getSelector: Bn(S)
2233
+ }, {
2234
+ vars: B,
2235
+ generateThemeVars: P,
2236
+ generateStyleSheets: D
2237
+ } = Zr(S, _);
2238
+ return S.vars = B, Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([F, i]) => {
2239
+ S[F] = i;
2240
+ }), S.generateThemeVars = P, S.generateStyleSheets = D, S.generateSpacing = function() {
2241
+ return mt(d.spacing, Me(this));
2242
+ }, S.getColorSchemeSelector = en(l), S.spacing = S.generateSpacing(), S.shouldSkipGeneratingVar = s, S.unstable_sxConfig = {
2243
+ ...Ae,
2244
+ ...d == null ? void 0 : d.unstable_sxConfig
2245
+ }, S.unstable_sx = function(i) {
2246
+ return ae({
2247
+ sx: i,
2248
+ theme: this
2249
+ });
2250
+ }, S.toRuntimeSource = wt, S;
2251
+ }
2252
+ function ct(e, t, r) {
2253
+ e.colorSchemes && r && (e.colorSchemes[t] = {
2254
+ ...r !== !0 && r,
2255
+ palette: Ge({
2256
+ ...r === !0 ? {} : r.palette,
2257
+ mode: t
2258
+ })
2259
+ // cast type to skip module augmentation test
2260
+ });
2261
+ }
2262
+ function In(e = {}, ...t) {
2263
+ const {
2264
+ palette: r,
2265
+ cssVariables: n = !1,
2266
+ colorSchemes: o = r ? void 0 : {
2267
+ light: !0
2268
+ },
2269
+ defaultColorScheme: a = r == null ? void 0 : r.mode,
2270
+ ...s
2271
+ } = e, l = a || "light", f = o == null ? void 0 : o[l], d = {
2272
+ ...o,
2273
+ ...r ? {
2274
+ [l]: {
2275
+ ...typeof f != "boolean" && f,
2276
+ palette: r
2277
+ }
2278
+ } : void 0
2279
+ };
2280
+ if (n === !1) {
2281
+ if (!("colorSchemes" in e))
2282
+ return Fe(e, ...t);
2283
+ let h = r;
2284
+ "palette" in e || d[l] && (d[l] !== !0 ? h = d[l].palette : l === "dark" && (h = {
2285
+ mode: "dark"
2286
+ }));
2287
+ const p = Fe({
2288
+ ...e,
2289
+ palette: h
2290
+ }, ...t);
2291
+ return p.defaultColorScheme = l, p.colorSchemes = d, p.palette.mode === "light" && (p.colorSchemes.light = {
2292
+ ...d.light !== !0 && d.light,
2293
+ palette: p.palette
2294
+ }, ct(p, "dark", d.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = {
2295
+ ...d.dark !== !0 && d.dark,
2296
+ palette: p.palette
2297
+ }, ct(p, "light", d.light)), p;
2298
+ }
2299
+ return !r && !("light" in d) && l === "light" && (d.light = !0), Pn({
2300
+ ...s,
2301
+ colorSchemes: d,
2302
+ defaultColorScheme: l,
2303
+ ...typeof n != "boolean" && n
2304
+ }, ...t);
2305
+ }
2306
+ const _n = In();
2307
+ function Fn(e) {
2308
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
2309
+ }
2310
+ const Ln = (e) => Fn(e) && e !== "classes", zn = _r({
2311
+ themeId: At,
2312
+ defaultTheme: _n,
2313
+ rootShouldForwardProp: Ln
2314
+ }), Dn = Qr;
2315
+ function Mn(e) {
2316
+ return Ur(e);
2317
+ }
2318
+ function jn(e) {
2319
+ return gt("MuiSvgIcon", e);
2320
+ }
2321
+ Or("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
2322
+ const Wn = (e) => {
2323
+ const {
2324
+ color: t,
2325
+ fontSize: r,
2326
+ classes: n
2327
+ } = e, o = {
2328
+ root: ["root", t !== "inherit" && `color${ie(t)}`, `fontSize${ie(r)}`]
2329
+ };
2330
+ return Nr(o, jn, n);
2331
+ }, Vn = zn("svg", {
2332
+ name: "MuiSvgIcon",
2333
+ slot: "Root",
2334
+ overridesResolver: (e, t) => {
2335
+ const {
2336
+ ownerState: r
2337
+ } = e;
2338
+ return [t.root, r.color !== "inherit" && t[`color${ie(r.color)}`], t[`fontSize${ie(r.fontSize)}`]];
2339
+ }
2340
+ })(Dn(({
2341
+ theme: e
2342
+ }) => {
2343
+ var t, r, n, o, a, s, l, f, d, h, p, m, b, g;
2344
+ return {
2345
+ userSelect: "none",
2346
+ width: "1em",
2347
+ height: "1em",
2348
+ display: "inline-block",
2349
+ flexShrink: 0,
2350
+ transition: (o = (t = e.transitions) == null ? void 0 : t.create) == null ? void 0 : o.call(t, "fill", {
2351
+ duration: (n = (r = (e.vars ?? e).transitions) == null ? void 0 : r.duration) == null ? void 0 : n.shorter
2352
+ }),
2353
+ variants: [
2354
+ {
2355
+ props: (u) => !u.hasSvgAsChild,
2356
+ style: {
2357
+ // the <svg> will define the property that has `currentColor`
2358
+ // for example heroicons uses fill="none" and stroke="currentColor"
2359
+ fill: "currentColor"
2360
+ }
2361
+ },
2362
+ {
2363
+ props: {
2364
+ fontSize: "inherit"
2365
+ },
2366
+ style: {
2367
+ fontSize: "inherit"
2368
+ }
2369
+ },
2370
+ {
2371
+ props: {
2372
+ fontSize: "small"
2373
+ },
2374
+ style: {
2375
+ fontSize: ((s = (a = e.typography) == null ? void 0 : a.pxToRem) == null ? void 0 : s.call(a, 20)) || "1.25rem"
2376
+ }
2377
+ },
2378
+ {
2379
+ props: {
2380
+ fontSize: "medium"
2381
+ },
2382
+ style: {
2383
+ fontSize: ((f = (l = e.typography) == null ? void 0 : l.pxToRem) == null ? void 0 : f.call(l, 24)) || "1.5rem"
2384
+ }
2385
+ },
2386
+ {
2387
+ props: {
2388
+ fontSize: "large"
2389
+ },
2390
+ style: {
2391
+ fontSize: ((h = (d = e.typography) == null ? void 0 : d.pxToRem) == null ? void 0 : h.call(d, 35)) || "2.1875rem"
2392
+ }
2393
+ },
2394
+ // TODO v5 deprecate color prop, v6 remove for sx
2395
+ ...Object.entries((e.vars ?? e).palette).filter(([, u]) => u && u.main).map(([u]) => {
2396
+ var $, R;
2397
+ return {
2398
+ props: {
2399
+ color: u
2400
+ },
2401
+ style: {
2402
+ color: (R = ($ = (e.vars ?? e).palette) == null ? void 0 : $[u]) == null ? void 0 : R.main
2403
+ }
2404
+ };
2405
+ }),
2406
+ {
2407
+ props: {
2408
+ color: "action"
2409
+ },
2410
+ style: {
2411
+ color: (m = (p = (e.vars ?? e).palette) == null ? void 0 : p.action) == null ? void 0 : m.active
2412
+ }
2413
+ },
2414
+ {
2415
+ props: {
2416
+ color: "disabled"
2417
+ },
2418
+ style: {
2419
+ color: (g = (b = (e.vars ?? e).palette) == null ? void 0 : b.action) == null ? void 0 : g.disabled
2420
+ }
2421
+ },
2422
+ {
2423
+ props: {
2424
+ color: "inherit"
2425
+ },
2426
+ style: {
2427
+ color: void 0
2428
+ }
2429
+ }
2430
+ ]
2431
+ };
2432
+ })), Le = /* @__PURE__ */ U.forwardRef(function(t, r) {
2433
+ const n = Mn({
2434
+ props: t,
2435
+ name: "MuiSvgIcon"
2436
+ }), {
2437
+ children: o,
2438
+ className: a,
2439
+ color: s = "inherit",
2440
+ component: l = "svg",
2441
+ fontSize: f = "medium",
2442
+ htmlColor: d,
2443
+ inheritViewBox: h = !1,
2444
+ titleAccess: p,
2445
+ viewBox: m = "0 0 24 24",
2446
+ ...b
2447
+ } = n, g = /* @__PURE__ */ U.isValidElement(o) && o.type === "svg", u = {
2448
+ ...n,
2449
+ color: s,
2450
+ component: l,
2451
+ fontSize: f,
2452
+ instanceFontSize: t.fontSize,
2453
+ inheritViewBox: h,
2454
+ viewBox: m,
2455
+ hasSvgAsChild: g
2456
+ }, $ = {};
2457
+ h || ($.viewBox = m);
2458
+ const R = Wn(u);
2459
+ return /* @__PURE__ */ Ie.jsxs(Vn, {
2460
+ as: l,
2461
+ className: vt(R.root, a),
2462
+ focusable: "false",
2463
+ color: d,
2464
+ "aria-hidden": p ? void 0 : !0,
2465
+ role: p ? "img" : void 0,
2466
+ ref: r,
2467
+ ...$,
2468
+ ...b,
2469
+ ...g && o.props,
2470
+ ownerState: u,
2471
+ children: [g ? o.props.children : o, p ? /* @__PURE__ */ Ie.jsx("title", {
2472
+ children: p
2473
+ }) : null]
2474
+ });
2475
+ });
2476
+ Le.muiName = "SvgIcon";
2477
+ function Nn(e, t) {
2478
+ function r(n, o) {
2479
+ return /* @__PURE__ */ Ie.jsx(Le, {
2480
+ "data-testid": `${t}Icon`,
2481
+ ref: o,
2482
+ ...n,
2483
+ children: e
2484
+ });
2485
+ }
2486
+ return r.muiName = Le.muiName, /* @__PURE__ */ U.memo(/* @__PURE__ */ U.forwardRef(r));
2487
+ }
2488
+ export {
2489
+ Nn as c
2490
+ };