asma-core-ui 1.2.6 → 1.3.1

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