@hai-dev/ui-kit 1.2.1 → 1.2.3

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