@solostylist/ui-kit 1.0.1 → 1.0.2

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 (111) hide show
  1. package/dist/AppAutocomplete/AppAutocomplete.js +1 -1
  2. package/dist/AppAvatar/AppAvatar.js +1 -1
  3. package/dist/AppBox/AppBox.js +1 -1
  4. package/dist/AppBreadcrumbsSeparator/AppBreadcrumbsSeparator.js +2 -2
  5. package/dist/AppButton/AppButton.js +1 -1
  6. package/dist/AppButtonLink/AppButtonLink.js +1 -1
  7. package/dist/AppCard/AppCard.js +1 -1
  8. package/dist/AppCardActions/AppCardActions.js +1 -1
  9. package/dist/AppCardContent/AppCardContent.js +1 -1
  10. package/dist/AppCardHeader/AppCardHeader.js +1 -1
  11. package/dist/AppCheckbox/AppCheckbox.js +1 -1
  12. package/dist/AppChip/AppChip.js +4 -4
  13. package/dist/AppChips/AppChips.js +1 -1
  14. package/dist/AppDataTable/AppDataTable.js +403 -323
  15. package/dist/AppDialog/AppDialog.js +2 -2
  16. package/dist/AppDialogConfirm/AppDialogConfirm.js +3 -3
  17. package/dist/AppDialogMessage/AppDialogMessage.js +3 -3
  18. package/dist/AppEmpty/AppEmpty.js +1 -1
  19. package/dist/AppError/AppError.js +1 -1
  20. package/dist/AppFileDropzone/AppFileDropzone.js +21 -21
  21. package/dist/AppFileIcon/AppFileIcon.js +2 -2
  22. package/dist/AppFormControl/AppFormControl.js +1 -1
  23. package/dist/AppGallery/AppGallery.js +1060 -1064
  24. package/dist/AppI18nProvider/AppI18nProvider.js +1 -1
  25. package/dist/AppIconButton/AppIconButton.js +1 -1
  26. package/dist/AppIcons/AppIcons.js +185 -185
  27. package/dist/AppLabel/AppLabel.js +1 -1
  28. package/dist/AppLink/AppLink.js +1 -1
  29. package/dist/AppMultiSelect/AppMultiSelect.js +4 -4
  30. package/dist/AppNoData/AppNoData.js +1 -1
  31. package/dist/AppNoSsr/AppNoSsr.js +1 -1
  32. package/dist/AppOption/AppOption.js +2 -2
  33. package/dist/AppPagination/AppPagination.js +1 -1
  34. package/dist/AppRating/AppRating.d.ts +1 -1
  35. package/dist/AppRating/AppRating.js +4 -5
  36. package/dist/AppSelect/AppSelect.js +2 -2
  37. package/dist/AppSkeleton/AppSkeleton.js +1 -1
  38. package/dist/AppSnackbarMessage/AppSnackbarMessage.js +1 -1
  39. package/dist/AppStack/AppStack.js +1 -1
  40. package/dist/AppTextEditor/AppTextEditor.js +2 -2
  41. package/dist/AppTextEditor/TextEditorToolbar.js +1652 -1316
  42. package/dist/AppTextTruncation/AppTextTruncation.js +1 -1
  43. package/dist/AppThemeProvider/AppThemeProvider.js +4 -4
  44. package/dist/AppTip/AppTip.js +4 -4
  45. package/dist/{Box-yxuKPTCX.js → Box-MNdIcw0w.js} +7 -7
  46. package/dist/{ButtonBase-p_uz8ITC.js → ButtonBase-D7WZejV5.js} +238 -225
  47. package/dist/{CaretDown-CgrRY9__.js → CaretDown-CZu0drmJ.js} +6 -6
  48. package/dist/{DefaultPropsProvider-BV4t9fEW.js → DefaultPropsProvider-Cw67t9bx.js} +2 -2
  49. package/dist/{Lightbulb-1rDyOsPk.js → Lightbulb-BLT-jnYA.js} +5 -5
  50. package/dist/{Menu-B0R91i07.js → Menu-BymLGoMc.js} +1154 -1209
  51. package/dist/{MenuItem-BjjYkRmW.js → MenuItem-l3xZOND-.js} +14 -14
  52. package/dist/SForm/SForm.d.ts +9 -0
  53. package/dist/SForm/SForm.js +10 -0
  54. package/dist/SForm/index.d.ts +1 -0
  55. package/dist/SForm/index.js +4 -0
  56. package/dist/{SSRBase-B9xq2wUG.js → SSRBase-BSdFRe_j.js} +11 -11
  57. package/dist/STextField/STextField.d.ts +11 -0
  58. package/dist/STextField/STextField.js +28 -0
  59. package/dist/STextField/index.d.ts +1 -0
  60. package/dist/STextField/index.js +4 -0
  61. package/dist/STextField/package.json +5 -0
  62. package/dist/{Stack-D9qNbbkC.js → Stack-CxKx2YGj.js} +11 -11
  63. package/dist/{Typography-BYkXNa-U.js → Typography-QQx_YSAW.js} +9 -9
  64. package/dist/{User-Bx-HYRxI.js → User-X5-swnIn.js} +9 -9
  65. package/dist/{X-DETrowOy.js → X-Cw1SQcRJ.js} +9 -9
  66. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  67. package/dist/assets/AppGallery.css +1 -1
  68. package/dist/clsx-DfguY6FT.js +232 -0
  69. package/dist/createTheme-dX0MILsf.js +2899 -0
  70. package/dist/{extendSxProp-CKQgGYDd.js → extendSxProp-CTBBOYHX.js} +3 -3
  71. package/dist/{index-Btrukby7.js → index-f-gkJ93Q.js} +11 -11
  72. package/dist/jsx-runtime-C5mzlN2N.js +284 -0
  73. package/dist/main.d.ts +1 -1
  74. package/dist/main.js +28 -28
  75. package/dist/memoTheme-DOlCkXD8.js +223 -0
  76. package/dist/outlinedInputClasses-rXE3T3sa.js +13 -0
  77. package/dist/styles/theme/color-schemes.js +61 -109
  78. package/dist/styles/theme/components/autocomplete.js +1 -1
  79. package/dist/styles/theme/components/avatar.js +2 -2
  80. package/dist/styles/theme/components/button.d.ts +12 -36
  81. package/dist/styles/theme/components/button.js +3 -3
  82. package/dist/styles/theme/components/card.d.ts +3 -965
  83. package/dist/styles/theme/components/checkbox.js +1 -1
  84. package/dist/styles/theme/components/chip.d.ts +3 -1067
  85. package/dist/styles/theme/components/chip.js +23 -67
  86. package/dist/styles/theme/components/components.d.ts +18 -2074
  87. package/dist/styles/theme/components/components.js +24 -26
  88. package/dist/styles/theme/components/outlined-input.js +1 -1
  89. package/dist/styles/theme/components/radio.js +1 -1
  90. package/dist/styles/theme/components/select.js +2 -2
  91. package/dist/styles/theme/components/table-pagination.js +2 -2
  92. package/dist/styles/theme/components/tabs.js +1 -1
  93. package/dist/styles/theme/shadows.d.ts +3 -4
  94. package/dist/{useControlled-CYUofcJ9.js → useControlled-DyL3m721.js} +53 -53
  95. package/dist/useSlot-Tj9CW-Xc.js +184 -0
  96. package/dist/{useTheme-DYc4rgBb.js → useTheme-CNZ6Hnpo.js} +1 -1
  97. package/dist/utils/dayjs.js +89 -83
  98. package/package.json +1 -1
  99. package/dist/AppOutlinedInput/AppOutlinedInput.d.ts +0 -10
  100. package/dist/AppOutlinedInput/AppOutlinedInput.js +0 -40
  101. package/dist/AppOutlinedInput/index.d.ts +0 -1
  102. package/dist/AppOutlinedInput/index.js +0 -4
  103. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  104. package/dist/clsx-C-FXfxyk.js +0 -236
  105. package/dist/createTheme-C97xvI-s.js +0 -2789
  106. package/dist/jsx-runtime-B6kdoens.js +0 -634
  107. package/dist/memoTheme-B2qvAi64.js +0 -404
  108. package/dist/outlinedInputClasses-R7dmh7eW.js +0 -13
  109. package/dist/styles/theme/components/timeline-connector.d.ts +0 -7
  110. package/dist/styles/theme/components/timeline-connector.js +0 -6
  111. /package/dist/{AppOutlinedInput → SForm}/package.json +0 -0
@@ -1,2789 +0,0 @@
1
- import { g as Gr } from "./_commonjsHelpers-DaMA6jEr.js";
2
- import { a as Yr } from "./generateUtilityClasses-CuEy5gtx.js";
3
- function le(e, ...r) {
4
- const t = new URL(`https://mui.com/production-error/?code=${e}`);
5
- return r.forEach((n) => t.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${t} for the full message.`;
6
- }
7
- var rr = { exports: {} }, Pe = { exports: {} }, D = {};
8
- /** @license React v16.13.1
9
- * react-is.production.min.js
10
- *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */
16
- var dr;
17
- function Kr() {
18
- if (dr) return D;
19
- dr = 1;
20
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
21
- function w(m) {
22
- if (typeof m == "object" && m !== null) {
23
- var K = m.$$typeof;
24
- switch (K) {
25
- case r:
26
- switch (m = m.type, m) {
27
- case l:
28
- case d:
29
- case n:
30
- case a:
31
- case i:
32
- case p:
33
- return m;
34
- default:
35
- switch (m = m && m.$$typeof, m) {
36
- case c:
37
- case h:
38
- case T:
39
- case S:
40
- case s:
41
- return m;
42
- default:
43
- return K;
44
- }
45
- }
46
- case t:
47
- return K;
48
- }
49
- }
50
- }
51
- function E(m) {
52
- return w(m) === d;
53
- }
54
- return D.AsyncMode = l, D.ConcurrentMode = d, D.ContextConsumer = c, D.ContextProvider = s, D.Element = r, D.ForwardRef = h, D.Fragment = n, D.Lazy = T, D.Memo = S, D.Portal = t, D.Profiler = a, D.StrictMode = i, D.Suspense = p, D.isAsyncMode = function(m) {
55
- return E(m) || w(m) === l;
56
- }, D.isConcurrentMode = E, D.isContextConsumer = function(m) {
57
- return w(m) === c;
58
- }, D.isContextProvider = function(m) {
59
- return w(m) === s;
60
- }, D.isElement = function(m) {
61
- return typeof m == "object" && m !== null && m.$$typeof === r;
62
- }, D.isForwardRef = function(m) {
63
- return w(m) === h;
64
- }, D.isFragment = function(m) {
65
- return w(m) === n;
66
- }, D.isLazy = function(m) {
67
- return w(m) === T;
68
- }, D.isMemo = function(m) {
69
- return w(m) === S;
70
- }, D.isPortal = function(m) {
71
- return w(m) === t;
72
- }, D.isProfiler = function(m) {
73
- return w(m) === a;
74
- }, D.isStrictMode = function(m) {
75
- return w(m) === i;
76
- }, D.isSuspense = function(m) {
77
- return w(m) === p;
78
- }, D.isValidElementType = function(m) {
79
- return typeof m == "string" || typeof m == "function" || m === n || m === d || m === a || m === i || m === p || m === f || typeof m == "object" && m !== null && (m.$$typeof === T || m.$$typeof === S || m.$$typeof === s || m.$$typeof === c || m.$$typeof === h || m.$$typeof === $ || m.$$typeof === A || m.$$typeof === Y || m.$$typeof === b);
80
- }, D.typeOf = w, D;
81
- }
82
- var M = {};
83
- /** @license React v16.13.1
84
- * react-is.development.js
85
- *
86
- * Copyright (c) Facebook, Inc. and its affiliates.
87
- *
88
- * This source code is licensed under the MIT license found in the
89
- * LICENSE file in the root directory of this source tree.
90
- */
91
- var pr;
92
- function qr() {
93
- return pr || (pr = 1, process.env.NODE_ENV !== "production" && function() {
94
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
95
- function w(y) {
96
- return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
97
- y === n || y === d || y === a || y === i || y === p || y === f || typeof y == "object" && y !== null && (y.$$typeof === T || y.$$typeof === S || y.$$typeof === s || y.$$typeof === c || y.$$typeof === h || y.$$typeof === $ || y.$$typeof === A || y.$$typeof === Y || y.$$typeof === b);
98
- }
99
- function E(y) {
100
- if (typeof y == "object" && y !== null) {
101
- var ne = y.$$typeof;
102
- switch (ne) {
103
- case r:
104
- var ke = y.type;
105
- switch (ke) {
106
- case l:
107
- case d:
108
- case n:
109
- case a:
110
- case i:
111
- case p:
112
- return ke;
113
- default:
114
- var fr = ke && ke.$$typeof;
115
- switch (fr) {
116
- case c:
117
- case h:
118
- case T:
119
- case S:
120
- case s:
121
- return fr;
122
- default:
123
- return ne;
124
- }
125
- }
126
- case t:
127
- return ne;
128
- }
129
- }
130
- }
131
- var m = l, K = d, X = c, ie = s, q = r, o = h, C = n, j = T, L = S, re = t, ce = a, te = i, pe = p, xe = !1;
132
- function Ye(y) {
133
- return xe || (xe = !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.")), g(y) || E(y) === l;
134
- }
135
- function g(y) {
136
- return E(y) === d;
137
- }
138
- function v(y) {
139
- return E(y) === c;
140
- }
141
- function _(y) {
142
- return E(y) === s;
143
- }
144
- function k(y) {
145
- return typeof y == "object" && y !== null && y.$$typeof === r;
146
- }
147
- function O(y) {
148
- return E(y) === h;
149
- }
150
- function R(y) {
151
- return E(y) === n;
152
- }
153
- function x(y) {
154
- return E(y) === T;
155
- }
156
- function P(y) {
157
- return E(y) === S;
158
- }
159
- function I(y) {
160
- return E(y) === t;
161
- }
162
- function N(y) {
163
- return E(y) === a;
164
- }
165
- function B(y) {
166
- return E(y) === i;
167
- }
168
- function H(y) {
169
- return E(y) === p;
170
- }
171
- M.AsyncMode = m, M.ConcurrentMode = K, M.ContextConsumer = X, M.ContextProvider = ie, M.Element = q, M.ForwardRef = o, M.Fragment = C, M.Lazy = j, M.Memo = L, M.Portal = re, M.Profiler = ce, M.StrictMode = te, M.Suspense = pe, M.isAsyncMode = Ye, M.isConcurrentMode = g, M.isContextConsumer = v, M.isContextProvider = _, M.isElement = k, M.isForwardRef = O, M.isFragment = R, M.isLazy = x, M.isMemo = P, M.isPortal = I, M.isProfiler = N, M.isStrictMode = B, M.isSuspense = H, M.isValidElementType = w, M.typeOf = E;
172
- }()), M;
173
- }
174
- var gr;
175
- function _r() {
176
- return gr || (gr = 1, process.env.NODE_ENV === "production" ? Pe.exports = Kr() : Pe.exports = qr()), Pe.exports;
177
- }
178
- /*
179
- object-assign
180
- (c) Sindre Sorhus
181
- @license MIT
182
- */
183
- var Ke, mr;
184
- function Hr() {
185
- if (mr) return Ke;
186
- mr = 1;
187
- var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
188
- function n(a) {
189
- if (a == null)
190
- throw new TypeError("Object.assign cannot be called with null or undefined");
191
- return Object(a);
192
- }
193
- function i() {
194
- try {
195
- if (!Object.assign)
196
- return !1;
197
- var a = new String("abc");
198
- if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
199
- return !1;
200
- for (var s = {}, c = 0; c < 10; c++)
201
- s["_" + String.fromCharCode(c)] = c;
202
- var l = Object.getOwnPropertyNames(s).map(function(h) {
203
- return s[h];
204
- });
205
- if (l.join("") !== "0123456789")
206
- return !1;
207
- var d = {};
208
- return "abcdefghijklmnopqrst".split("").forEach(function(h) {
209
- d[h] = h;
210
- }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
211
- } catch {
212
- return !1;
213
- }
214
- }
215
- return Ke = i() ? Object.assign : function(a, s) {
216
- for (var c, l = n(a), d, h = 1; h < arguments.length; h++) {
217
- c = Object(arguments[h]);
218
- for (var p in c)
219
- r.call(c, p) && (l[p] = c[p]);
220
- if (e) {
221
- d = e(c);
222
- for (var f = 0; f < d.length; f++)
223
- t.call(c, d[f]) && (l[d[f]] = c[d[f]]);
224
- }
225
- }
226
- return l;
227
- }, Ke;
228
- }
229
- var qe, hr;
230
- function or() {
231
- if (hr) return qe;
232
- hr = 1;
233
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
234
- return qe = e, qe;
235
- }
236
- var He, yr;
237
- function Rr() {
238
- return yr || (yr = 1, He = Function.call.bind(Object.prototype.hasOwnProperty)), He;
239
- }
240
- var Qe, br;
241
- function Qr() {
242
- if (br) return Qe;
243
- br = 1;
244
- var e = function() {
245
- };
246
- if (process.env.NODE_ENV !== "production") {
247
- var r = or(), t = {}, n = Rr();
248
- e = function(a) {
249
- var s = "Warning: " + a;
250
- typeof console < "u" && console.error(s);
251
- try {
252
- throw new Error(s);
253
- } catch {
254
- }
255
- };
256
- }
257
- function i(a, s, c, l, d) {
258
- if (process.env.NODE_ENV !== "production") {
259
- for (var h in a)
260
- if (n(a, h)) {
261
- var p;
262
- try {
263
- if (typeof a[h] != "function") {
264
- var f = Error(
265
- (l || "React class") + ": " + c + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
266
- );
267
- throw f.name = "Invariant Violation", f;
268
- }
269
- p = a[h](s, h, l, c, null, r);
270
- } catch (T) {
271
- p = T;
272
- }
273
- if (p && !(p instanceof Error) && e(
274
- (l || "React class") + ": type specification of " + c + " `" + h + "` 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)."
275
- ), p instanceof Error && !(p.message in t)) {
276
- t[p.message] = !0;
277
- var S = d ? d() : "";
278
- e(
279
- "Failed " + c + " type: " + p.message + (S ?? "")
280
- );
281
- }
282
- }
283
- }
284
- }
285
- return i.resetWarningCache = function() {
286
- process.env.NODE_ENV !== "production" && (t = {});
287
- }, Qe = i, Qe;
288
- }
289
- var Je, vr;
290
- function Jr() {
291
- if (vr) return Je;
292
- vr = 1;
293
- var e = _r(), r = Hr(), t = or(), n = Rr(), i = Qr(), a = function() {
294
- };
295
- process.env.NODE_ENV !== "production" && (a = function(c) {
296
- var l = "Warning: " + c;
297
- typeof console < "u" && console.error(l);
298
- try {
299
- throw new Error(l);
300
- } catch {
301
- }
302
- });
303
- function s() {
304
- return null;
305
- }
306
- return Je = function(c, l) {
307
- var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
308
- function p(g) {
309
- var v = g && (d && g[d] || g[h]);
310
- if (typeof v == "function")
311
- return v;
312
- }
313
- var f = "<<anonymous>>", S = {
314
- array: A("array"),
315
- bigint: A("bigint"),
316
- bool: A("boolean"),
317
- func: A("function"),
318
- number: A("number"),
319
- object: A("object"),
320
- string: A("string"),
321
- symbol: A("symbol"),
322
- any: Y(),
323
- arrayOf: w,
324
- element: E(),
325
- elementType: m(),
326
- instanceOf: K,
327
- node: o(),
328
- objectOf: ie,
329
- oneOf: X,
330
- oneOfType: q,
331
- shape: j,
332
- exact: L
333
- };
334
- function T(g, v) {
335
- return g === v ? g !== 0 || 1 / g === 1 / v : g !== g && v !== v;
336
- }
337
- function b(g, v) {
338
- this.message = g, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
339
- }
340
- b.prototype = Error.prototype;
341
- function $(g) {
342
- if (process.env.NODE_ENV !== "production")
343
- var v = {}, _ = 0;
344
- function k(R, x, P, I, N, B, H) {
345
- if (I = I || f, B = B || P, H !== t) {
346
- if (l) {
347
- var y = new Error(
348
- "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"
349
- );
350
- throw y.name = "Invariant Violation", y;
351
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
352
- var ne = I + ":" + P;
353
- !v[ne] && // Avoid spamming the console because they are often not actionable except for lib authors
354
- _ < 3 && (a(
355
- "You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + I + "`. 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."
356
- ), v[ne] = !0, _++);
357
- }
358
- }
359
- return x[P] == null ? R ? x[P] === null ? new b("The " + N + " `" + B + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new b("The " + N + " `" + B + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : g(x, P, I, N, B);
360
- }
361
- var O = k.bind(null, !1);
362
- return O.isRequired = k.bind(null, !0), O;
363
- }
364
- function A(g) {
365
- function v(_, k, O, R, x, P) {
366
- var I = _[k], N = te(I);
367
- if (N !== g) {
368
- var B = pe(I);
369
- return new b(
370
- "Invalid " + R + " `" + x + "` of type " + ("`" + B + "` supplied to `" + O + "`, expected ") + ("`" + g + "`."),
371
- { expectedType: g }
372
- );
373
- }
374
- return null;
375
- }
376
- return $(v);
377
- }
378
- function Y() {
379
- return $(s);
380
- }
381
- function w(g) {
382
- function v(_, k, O, R, x) {
383
- if (typeof g != "function")
384
- return new b("Property `" + x + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
385
- var P = _[k];
386
- if (!Array.isArray(P)) {
387
- var I = te(P);
388
- return new b("Invalid " + R + " `" + x + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected an array."));
389
- }
390
- for (var N = 0; N < P.length; N++) {
391
- var B = g(P, N, O, R, x + "[" + N + "]", t);
392
- if (B instanceof Error)
393
- return B;
394
- }
395
- return null;
396
- }
397
- return $(v);
398
- }
399
- function E() {
400
- function g(v, _, k, O, R) {
401
- var x = v[_];
402
- if (!c(x)) {
403
- var P = te(x);
404
- return new b("Invalid " + O + " `" + R + "` of type " + ("`" + P + "` supplied to `" + k + "`, expected a single ReactElement."));
405
- }
406
- return null;
407
- }
408
- return $(g);
409
- }
410
- function m() {
411
- function g(v, _, k, O, R) {
412
- var x = v[_];
413
- if (!e.isValidElementType(x)) {
414
- var P = te(x);
415
- return new b("Invalid " + O + " `" + R + "` of type " + ("`" + P + "` supplied to `" + k + "`, expected a single ReactElement type."));
416
- }
417
- return null;
418
- }
419
- return $(g);
420
- }
421
- function K(g) {
422
- function v(_, k, O, R, x) {
423
- if (!(_[k] instanceof g)) {
424
- var P = g.name || f, I = Ye(_[k]);
425
- return new b("Invalid " + R + " `" + x + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected ") + ("instance of `" + P + "`."));
426
- }
427
- return null;
428
- }
429
- return $(v);
430
- }
431
- function X(g) {
432
- if (!Array.isArray(g))
433
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
434
- "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])."
435
- ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
436
- function v(_, k, O, R, x) {
437
- for (var P = _[k], I = 0; I < g.length; I++)
438
- if (T(P, g[I]))
439
- return null;
440
- var N = JSON.stringify(g, function(H, y) {
441
- var ne = pe(y);
442
- return ne === "symbol" ? String(y) : y;
443
- });
444
- return new b("Invalid " + R + " `" + x + "` of value `" + String(P) + "` " + ("supplied to `" + O + "`, expected one of " + N + "."));
445
- }
446
- return $(v);
447
- }
448
- function ie(g) {
449
- function v(_, k, O, R, x) {
450
- if (typeof g != "function")
451
- return new b("Property `" + x + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
452
- var P = _[k], I = te(P);
453
- if (I !== "object")
454
- return new b("Invalid " + R + " `" + x + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected an object."));
455
- for (var N in P)
456
- if (n(P, N)) {
457
- var B = g(P, N, O, R, x + "." + N, t);
458
- if (B instanceof Error)
459
- return B;
460
- }
461
- return null;
462
- }
463
- return $(v);
464
- }
465
- function q(g) {
466
- if (!Array.isArray(g))
467
- return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
468
- for (var v = 0; v < g.length; v++) {
469
- var _ = g[v];
470
- if (typeof _ != "function")
471
- return a(
472
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + xe(_) + " at index " + v + "."
473
- ), s;
474
- }
475
- function k(O, R, x, P, I) {
476
- for (var N = [], B = 0; B < g.length; B++) {
477
- var H = g[B], y = H(O, R, x, P, I, t);
478
- if (y == null)
479
- return null;
480
- y.data && n(y.data, "expectedType") && N.push(y.data.expectedType);
481
- }
482
- var ne = N.length > 0 ? ", expected one of type [" + N.join(", ") + "]" : "";
483
- return new b("Invalid " + P + " `" + I + "` supplied to " + ("`" + x + "`" + ne + "."));
484
- }
485
- return $(k);
486
- }
487
- function o() {
488
- function g(v, _, k, O, R) {
489
- return re(v[_]) ? null : new b("Invalid " + O + " `" + R + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
490
- }
491
- return $(g);
492
- }
493
- function C(g, v, _, k, O) {
494
- return new b(
495
- (g || "React class") + ": " + v + " type `" + _ + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
496
- );
497
- }
498
- function j(g) {
499
- function v(_, k, O, R, x) {
500
- var P = _[k], I = te(P);
501
- if (I !== "object")
502
- return new b("Invalid " + R + " `" + x + "` of type `" + I + "` " + ("supplied to `" + O + "`, expected `object`."));
503
- for (var N in g) {
504
- var B = g[N];
505
- if (typeof B != "function")
506
- return C(O, R, x, N, pe(B));
507
- var H = B(P, N, O, R, x + "." + N, t);
508
- if (H)
509
- return H;
510
- }
511
- return null;
512
- }
513
- return $(v);
514
- }
515
- function L(g) {
516
- function v(_, k, O, R, x) {
517
- var P = _[k], I = te(P);
518
- if (I !== "object")
519
- return new b("Invalid " + R + " `" + x + "` of type `" + I + "` " + ("supplied to `" + O + "`, expected `object`."));
520
- var N = r({}, _[k], g);
521
- for (var B in N) {
522
- var H = g[B];
523
- if (n(g, B) && typeof H != "function")
524
- return C(O, R, x, B, pe(H));
525
- if (!H)
526
- return new b(
527
- "Invalid " + R + " `" + x + "` key `" + B + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(_[k], null, " ") + `
528
- Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
529
- );
530
- var y = H(P, B, O, R, x + "." + B, t);
531
- if (y)
532
- return y;
533
- }
534
- return null;
535
- }
536
- return $(v);
537
- }
538
- function re(g) {
539
- switch (typeof g) {
540
- case "number":
541
- case "string":
542
- case "undefined":
543
- return !0;
544
- case "boolean":
545
- return !g;
546
- case "object":
547
- if (Array.isArray(g))
548
- return g.every(re);
549
- if (g === null || c(g))
550
- return !0;
551
- var v = p(g);
552
- if (v) {
553
- var _ = v.call(g), k;
554
- if (v !== g.entries) {
555
- for (; !(k = _.next()).done; )
556
- if (!re(k.value))
557
- return !1;
558
- } else
559
- for (; !(k = _.next()).done; ) {
560
- var O = k.value;
561
- if (O && !re(O[1]))
562
- return !1;
563
- }
564
- } else
565
- return !1;
566
- return !0;
567
- default:
568
- return !1;
569
- }
570
- }
571
- function ce(g, v) {
572
- return g === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
573
- }
574
- function te(g) {
575
- var v = typeof g;
576
- return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : ce(v, g) ? "symbol" : v;
577
- }
578
- function pe(g) {
579
- if (typeof g > "u" || g === null)
580
- return "" + g;
581
- var v = te(g);
582
- if (v === "object") {
583
- if (g instanceof Date)
584
- return "date";
585
- if (g instanceof RegExp)
586
- return "regexp";
587
- }
588
- return v;
589
- }
590
- function xe(g) {
591
- var v = pe(g);
592
- switch (v) {
593
- case "array":
594
- case "object":
595
- return "an " + v;
596
- case "boolean":
597
- case "date":
598
- case "regexp":
599
- return "a " + v;
600
- default:
601
- return v;
602
- }
603
- }
604
- function Ye(g) {
605
- return !g.constructor || !g.constructor.name ? f : g.constructor.name;
606
- }
607
- return S.checkPropTypes = i, S.resetWarningCache = i.resetWarningCache, S.PropTypes = S, S;
608
- }, Je;
609
- }
610
- var Xe, Sr;
611
- function Xr() {
612
- if (Sr) return Xe;
613
- Sr = 1;
614
- var e = or();
615
- function r() {
616
- }
617
- function t() {
618
- }
619
- return t.resetWarningCache = r, Xe = function() {
620
- function n(s, c, l, d, h, p) {
621
- if (p !== e) {
622
- var f = new Error(
623
- "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"
624
- );
625
- throw f.name = "Invariant Violation", f;
626
- }
627
- }
628
- n.isRequired = n;
629
- function i() {
630
- return n;
631
- }
632
- var a = {
633
- array: n,
634
- bigint: n,
635
- bool: n,
636
- func: n,
637
- number: n,
638
- object: n,
639
- string: n,
640
- symbol: n,
641
- any: n,
642
- arrayOf: i,
643
- element: n,
644
- elementType: n,
645
- instanceOf: i,
646
- node: n,
647
- objectOf: i,
648
- oneOf: i,
649
- oneOfType: i,
650
- shape: i,
651
- exact: i,
652
- checkPropTypes: t,
653
- resetWarningCache: r
654
- };
655
- return a.PropTypes = a, a;
656
- }, Xe;
657
- }
658
- if (process.env.NODE_ENV !== "production") {
659
- var Zr = _r(), et = !0;
660
- rr.exports = Jr()(Zr.isElement, et);
661
- } else
662
- rr.exports = Xr()();
663
- var rt = rr.exports;
664
- const Se = /* @__PURE__ */ Gr(rt);
665
- function ue(e) {
666
- if (typeof e != "object" || e === null)
667
- return !1;
668
- const r = Object.getPrototypeOf(e);
669
- return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
670
- }
671
- function Ir(e) {
672
- if (!ue(e))
673
- return e;
674
- const r = {};
675
- return Object.keys(e).forEach((t) => {
676
- r[t] = Ir(e[t]);
677
- }), r;
678
- }
679
- function Q(e, r, t = {
680
- clone: !0
681
- }) {
682
- const n = t.clone ? {
683
- ...e
684
- } : e;
685
- return ue(e) && ue(r) && Object.keys(r).forEach((i) => {
686
- ue(r[i]) && // Avoid prototype pollution
687
- Object.prototype.hasOwnProperty.call(e, i) && ue(e[i]) ? n[i] = Q(e[i], r[i], t) : t.clone ? n[i] = ue(r[i]) ? Ir(r[i]) : r[i] : n[i] = r[i];
688
- }), n;
689
- }
690
- const tt = (e) => {
691
- const r = Object.keys(e).map((t) => ({
692
- key: t,
693
- val: e[t]
694
- })) || [];
695
- return r.sort((t, n) => t.val - n.val), r.reduce((t, n) => ({
696
- ...t,
697
- [n.key]: n.val
698
- }), {});
699
- };
700
- function nt(e) {
701
- const {
702
- // The breakpoint **start** at this value.
703
- // For instance with the first breakpoint xs: [xs, sm).
704
- values: r = {
705
- xs: 0,
706
- // phone
707
- sm: 600,
708
- // tablet
709
- md: 900,
710
- // small laptop
711
- lg: 1200,
712
- // desktop
713
- xl: 1536
714
- // large screen
715
- },
716
- unit: t = "px",
717
- step: n = 5,
718
- ...i
719
- } = e, a = tt(r), s = Object.keys(a);
720
- function c(f) {
721
- return `@media (min-width:${typeof r[f] == "number" ? r[f] : f}${t})`;
722
- }
723
- function l(f) {
724
- return `@media (max-width:${(typeof r[f] == "number" ? r[f] : f) - n / 100}${t})`;
725
- }
726
- function d(f, S) {
727
- const T = s.indexOf(S);
728
- return `@media (min-width:${typeof r[f] == "number" ? r[f] : f}${t}) and (max-width:${(T !== -1 && typeof r[s[T]] == "number" ? r[s[T]] : S) - n / 100}${t})`;
729
- }
730
- function h(f) {
731
- return s.indexOf(f) + 1 < s.length ? d(f, s[s.indexOf(f) + 1]) : c(f);
732
- }
733
- function p(f) {
734
- const S = s.indexOf(f);
735
- return S === 0 ? c(s[1]) : S === s.length - 1 ? l(s[S]) : d(f, s[s.indexOf(f) + 1]).replace("@media", "@media not all and");
736
- }
737
- return {
738
- keys: s,
739
- values: a,
740
- up: c,
741
- down: l,
742
- between: d,
743
- only: h,
744
- not: p,
745
- unit: t,
746
- ...i
747
- };
748
- }
749
- function ot(e, r) {
750
- if (!e.containerQueries)
751
- return r;
752
- const t = Object.keys(r).filter((n) => n.startsWith("@container")).sort((n, i) => {
753
- var s, c;
754
- const a = /min-width:\s*([0-9.]+)/;
755
- return +(((s = n.match(a)) == null ? void 0 : s[1]) || 0) - +(((c = i.match(a)) == null ? void 0 : c[1]) || 0);
756
- });
757
- return t.length ? t.reduce((n, i) => {
758
- const a = r[i];
759
- return delete n[i], n[i] = a, n;
760
- }, {
761
- ...r
762
- }) : r;
763
- }
764
- function it(e, r) {
765
- return r === "@" || r.startsWith("@") && (e.some((t) => r.startsWith(`@${t}`)) || !!r.match(/^@\d/));
766
- }
767
- function at(e, r) {
768
- const t = r.match(/^@([^/]+)?\/?(.+)?$/);
769
- if (!t) {
770
- if (process.env.NODE_ENV !== "production")
771
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
772
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : le(18, `(${r})`));
773
- return null;
774
- }
775
- const [, n, i] = t, a = Number.isNaN(+n) ? n || 0 : +n;
776
- return e.containerQueries(i).up(a);
777
- }
778
- function st(e) {
779
- const r = (a, s) => a.replace("@media", s ? `@container ${s}` : "@container");
780
- function t(a, s) {
781
- a.up = (...c) => r(e.breakpoints.up(...c), s), a.down = (...c) => r(e.breakpoints.down(...c), s), a.between = (...c) => r(e.breakpoints.between(...c), s), a.only = (...c) => r(e.breakpoints.only(...c), s), a.not = (...c) => {
782
- const l = r(e.breakpoints.not(...c), s);
783
- return l.includes("not all and") ? l.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : l;
784
- };
785
- }
786
- const n = {}, i = (a) => (t(n, a), n);
787
- return t(i), {
788
- ...e,
789
- containerQueries: i
790
- };
791
- }
792
- const ct = {
793
- borderRadius: 4
794
- }, de = process.env.NODE_ENV !== "production" ? Se.oneOfType([Se.number, Se.string, Se.object, Se.array]) : {};
795
- function we(e, r) {
796
- return r ? Q(e, r, {
797
- clone: !1
798
- // No need to clone deep, it's way faster.
799
- }) : e;
800
- }
801
- const Be = {
802
- xs: 0,
803
- // phone
804
- sm: 600,
805
- // tablet
806
- md: 900,
807
- // small laptop
808
- lg: 1200,
809
- // desktop
810
- xl: 1536
811
- // large screen
812
- }, Cr = {
813
- // Sorted ASC by size. That's important.
814
- // It can't be configured as it's used statically for propTypes.
815
- keys: ["xs", "sm", "md", "lg", "xl"],
816
- up: (e) => `@media (min-width:${Be[e]}px)`
817
- }, ut = {
818
- containerQueries: (e) => ({
819
- up: (r) => {
820
- let t = typeof r == "number" ? r : Be[r] || r;
821
- return typeof t == "number" && (t = `${t}px`), e ? `@container ${e} (min-width:${t})` : `@container (min-width:${t})`;
822
- }
823
- })
824
- };
825
- function se(e, r, t) {
826
- const n = e.theme || {};
827
- if (Array.isArray(r)) {
828
- const a = n.breakpoints || Cr;
829
- return r.reduce((s, c, l) => (s[a.up(a.keys[l])] = t(r[l]), s), {});
830
- }
831
- if (typeof r == "object") {
832
- const a = n.breakpoints || Cr;
833
- return Object.keys(r).reduce((s, c) => {
834
- if (it(a.keys, c)) {
835
- const l = at(n.containerQueries ? n : ut, c);
836
- l && (s[l] = t(r[c], c));
837
- } else if (Object.keys(a.values || Be).includes(c)) {
838
- const l = a.up(c);
839
- s[l] = t(r[c], c);
840
- } else {
841
- const l = c;
842
- s[l] = r[l];
843
- }
844
- return s;
845
- }, {});
846
- }
847
- return t(r);
848
- }
849
- function Br(e = {}) {
850
- var t;
851
- return ((t = e.keys) == null ? void 0 : t.reduce((n, i) => {
852
- const a = e.up(i);
853
- return n[a] = {}, n;
854
- }, {})) || {};
855
- }
856
- function jr(e, r) {
857
- return e.reduce((t, n) => {
858
- const i = t[n];
859
- return (!i || Object.keys(i).length === 0) && delete t[n], t;
860
- }, r);
861
- }
862
- function zn(e, ...r) {
863
- const t = Br(e), n = [t, ...r].reduce((i, a) => Q(i, a), {});
864
- return jr(Object.keys(t), n);
865
- }
866
- function lt(e, r) {
867
- if (typeof e != "object")
868
- return {};
869
- const t = {}, n = Object.keys(r);
870
- return Array.isArray(e) ? n.forEach((i, a) => {
871
- a < e.length && (t[i] = !0);
872
- }) : n.forEach((i) => {
873
- e[i] != null && (t[i] = !0);
874
- }), t;
875
- }
876
- function Gn({
877
- values: e,
878
- breakpoints: r,
879
- base: t
880
- }) {
881
- const n = t || lt(e, r), i = Object.keys(n);
882
- if (i.length === 0)
883
- return e;
884
- let a;
885
- return i.reduce((s, c, l) => (Array.isArray(e) ? (s[c] = e[l] != null ? e[l] : e[a], a = l) : typeof e == "object" ? (s[c] = e[c] != null ? e[c] : e[a], a = c) : s[c] = e, s), {});
886
- }
887
- function Dr(e) {
888
- if (typeof e != "string")
889
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : le(7));
890
- return e.charAt(0).toUpperCase() + e.slice(1);
891
- }
892
- function je(e, r, t = !0) {
893
- if (!r || typeof r != "string")
894
- return null;
895
- if (e && e.vars && t) {
896
- const n = `vars.${r}`.split(".").reduce((i, a) => i && i[a] ? i[a] : null, e);
897
- if (n != null)
898
- return n;
899
- }
900
- return r.split(".").reduce((n, i) => n && n[i] != null ? n[i] : null, e);
901
- }
902
- function Ie(e, r, t, n = t) {
903
- let i;
904
- return typeof e == "function" ? i = e(t) : Array.isArray(e) ? i = e[t] || n : i = je(e, t) || n, r && (i = r(i, n, e)), i;
905
- }
906
- function G(e) {
907
- const {
908
- prop: r,
909
- cssProperty: t = e.prop,
910
- themeKey: n,
911
- transform: i
912
- } = e, a = (s) => {
913
- if (s[r] == null)
914
- return null;
915
- const c = s[r], l = s.theme, d = je(l, n) || {};
916
- return se(s, c, (p) => {
917
- let f = Ie(d, i, p);
918
- return p === f && typeof p == "string" && (f = Ie(d, i, `${r}${p === "default" ? "" : Dr(p)}`, p)), t === !1 ? f : {
919
- [t]: f
920
- };
921
- });
922
- };
923
- return a.propTypes = process.env.NODE_ENV !== "production" ? {
924
- [r]: de
925
- } : {}, a.filterProps = [r], a;
926
- }
927
- function ft(e) {
928
- const r = {};
929
- return (t) => (r[t] === void 0 && (r[t] = e(t)), r[t]);
930
- }
931
- const dt = {
932
- m: "margin",
933
- p: "padding"
934
- }, pt = {
935
- t: "Top",
936
- r: "Right",
937
- b: "Bottom",
938
- l: "Left",
939
- x: ["Left", "Right"],
940
- y: ["Top", "Bottom"]
941
- }, Tr = {
942
- marginX: "mx",
943
- marginY: "my",
944
- paddingX: "px",
945
- paddingY: "py"
946
- }, gt = ft((e) => {
947
- if (e.length > 2)
948
- if (Tr[e])
949
- e = Tr[e];
950
- else
951
- return [e];
952
- const [r, t] = e.split(""), n = dt[r], i = pt[t] || "";
953
- return Array.isArray(i) ? i.map((a) => n + a) : [n + i];
954
- }), De = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Me = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], mt = [...De, ...Me];
955
- function Oe(e, r, t, n) {
956
- const i = je(e, r, !0) ?? t;
957
- return typeof i == "number" || typeof i == "string" ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && typeof a != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`), typeof i == "string" ? `calc(${a} * ${i})` : i * a) : Array.isArray(i) ? (a) => {
958
- if (typeof a == "string")
959
- return a;
960
- const s = Math.abs(a);
961
- process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > i.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(i)}.`, `${s} > ${i.length - 1}, you need to add the missing values.`].join(`
962
- `)) : 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(`
963
- `)));
964
- const c = i[s];
965
- return a >= 0 ? c : typeof c == "number" ? -c : `-${c}`;
966
- } : typeof i == "function" ? i : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${r}\` value (${i}) is invalid.`, "It should be a number, an array or a function."].join(`
967
- `)), () => {
968
- });
969
- }
970
- function ir(e) {
971
- return Oe(e, "spacing", 8, "spacing");
972
- }
973
- function Ae(e, r) {
974
- return typeof r == "string" || r == null ? r : e(r);
975
- }
976
- function ht(e, r) {
977
- return (t) => e.reduce((n, i) => (n[i] = Ae(r, t), n), {});
978
- }
979
- function yt(e, r, t, n) {
980
- if (!r.includes(t))
981
- return null;
982
- const i = gt(t), a = ht(i, n), s = e[t];
983
- return se(e, s, a);
984
- }
985
- function Mr(e, r) {
986
- const t = ir(e.theme);
987
- return Object.keys(e).map((n) => yt(e, r, n, t)).reduce(we, {});
988
- }
989
- function V(e) {
990
- return Mr(e, De);
991
- }
992
- V.propTypes = process.env.NODE_ENV !== "production" ? De.reduce((e, r) => (e[r] = de, e), {}) : {};
993
- V.filterProps = De;
994
- function z(e) {
995
- return Mr(e, Me);
996
- }
997
- z.propTypes = process.env.NODE_ENV !== "production" ? Me.reduce((e, r) => (e[r] = de, e), {}) : {};
998
- z.filterProps = Me;
999
- process.env.NODE_ENV !== "production" && mt.reduce((e, r) => (e[r] = de, e), {});
1000
- function Nr(e = 8, r = ir({
1001
- spacing: e
1002
- })) {
1003
- if (e.mui)
1004
- return e;
1005
- 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((a) => {
1006
- const s = r(a);
1007
- return typeof s == "number" ? `${s}px` : s;
1008
- }).join(" "));
1009
- return t.mui = !0, t;
1010
- }
1011
- function Ne(...e) {
1012
- const r = e.reduce((n, i) => (i.filterProps.forEach((a) => {
1013
- n[a] = i;
1014
- }), n), {}), t = (n) => Object.keys(n).reduce((i, a) => r[a] ? we(i, r[a](n)) : i, {});
1015
- return t.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, i) => Object.assign(n, i.propTypes), {}) : {}, t.filterProps = e.reduce((n, i) => n.concat(i.filterProps), []), t;
1016
- }
1017
- function Z(e) {
1018
- return typeof e != "number" ? e : `${e}px solid`;
1019
- }
1020
- function ee(e, r) {
1021
- return G({
1022
- prop: e,
1023
- themeKey: "borders",
1024
- transform: r
1025
- });
1026
- }
1027
- const bt = ee("border", Z), vt = ee("borderTop", Z), St = ee("borderRight", Z), Ct = ee("borderBottom", Z), Tt = ee("borderLeft", Z), Et = ee("borderColor"), wt = ee("borderTopColor"), $t = ee("borderRightColor"), Ot = ee("borderBottomColor"), At = ee("borderLeftColor"), xt = ee("outline", Z), kt = ee("outlineColor"), We = (e) => {
1028
- if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1029
- const r = Oe(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
1030
- borderRadius: Ae(r, n)
1031
- });
1032
- return se(e, e.borderRadius, t);
1033
- }
1034
- return null;
1035
- };
1036
- We.propTypes = process.env.NODE_ENV !== "production" ? {
1037
- borderRadius: de
1038
- } : {};
1039
- We.filterProps = ["borderRadius"];
1040
- Ne(bt, vt, St, Ct, Tt, Et, wt, $t, Ot, At, We, xt, kt);
1041
- const Ue = (e) => {
1042
- if (e.gap !== void 0 && e.gap !== null) {
1043
- const r = Oe(e.theme, "spacing", 8, "gap"), t = (n) => ({
1044
- gap: Ae(r, n)
1045
- });
1046
- return se(e, e.gap, t);
1047
- }
1048
- return null;
1049
- };
1050
- Ue.propTypes = process.env.NODE_ENV !== "production" ? {
1051
- gap: de
1052
- } : {};
1053
- Ue.filterProps = ["gap"];
1054
- const Fe = (e) => {
1055
- if (e.columnGap !== void 0 && e.columnGap !== null) {
1056
- const r = Oe(e.theme, "spacing", 8, "columnGap"), t = (n) => ({
1057
- columnGap: Ae(r, n)
1058
- });
1059
- return se(e, e.columnGap, t);
1060
- }
1061
- return null;
1062
- };
1063
- Fe.propTypes = process.env.NODE_ENV !== "production" ? {
1064
- columnGap: de
1065
- } : {};
1066
- Fe.filterProps = ["columnGap"];
1067
- const Le = (e) => {
1068
- if (e.rowGap !== void 0 && e.rowGap !== null) {
1069
- const r = Oe(e.theme, "spacing", 8, "rowGap"), t = (n) => ({
1070
- rowGap: Ae(r, n)
1071
- });
1072
- return se(e, e.rowGap, t);
1073
- }
1074
- return null;
1075
- };
1076
- Le.propTypes = process.env.NODE_ENV !== "production" ? {
1077
- rowGap: de
1078
- } : {};
1079
- Le.filterProps = ["rowGap"];
1080
- const Pt = G({
1081
- prop: "gridColumn"
1082
- }), _t = G({
1083
- prop: "gridRow"
1084
- }), Rt = G({
1085
- prop: "gridAutoFlow"
1086
- }), It = G({
1087
- prop: "gridAutoColumns"
1088
- }), Bt = G({
1089
- prop: "gridAutoRows"
1090
- }), jt = G({
1091
- prop: "gridTemplateColumns"
1092
- }), Dt = G({
1093
- prop: "gridTemplateRows"
1094
- }), Mt = G({
1095
- prop: "gridTemplateAreas"
1096
- }), Nt = G({
1097
- prop: "gridArea"
1098
- });
1099
- Ne(Ue, Fe, Le, Pt, _t, Rt, It, Bt, jt, Dt, Mt, Nt);
1100
- function ve(e, r) {
1101
- return r === "grey" ? r : e;
1102
- }
1103
- const Wt = G({
1104
- prop: "color",
1105
- themeKey: "palette",
1106
- transform: ve
1107
- }), Ut = G({
1108
- prop: "bgcolor",
1109
- cssProperty: "backgroundColor",
1110
- themeKey: "palette",
1111
- transform: ve
1112
- }), Ft = G({
1113
- prop: "backgroundColor",
1114
- themeKey: "palette",
1115
- transform: ve
1116
- });
1117
- Ne(Wt, Ut, Ft);
1118
- function J(e) {
1119
- return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1120
- }
1121
- const Lt = G({
1122
- prop: "width",
1123
- transform: J
1124
- }), ar = (e) => {
1125
- if (e.maxWidth !== void 0 && e.maxWidth !== null) {
1126
- const r = (t) => {
1127
- var i, a, s, c, l;
1128
- const n = ((s = (a = (i = e.theme) == null ? void 0 : i.breakpoints) == null ? void 0 : a.values) == null ? void 0 : s[t]) || Be[t];
1129
- return n ? ((l = (c = e.theme) == null ? void 0 : c.breakpoints) == null ? void 0 : l.unit) !== "px" ? {
1130
- maxWidth: `${n}${e.theme.breakpoints.unit}`
1131
- } : {
1132
- maxWidth: n
1133
- } : {
1134
- maxWidth: J(t)
1135
- };
1136
- };
1137
- return se(e, e.maxWidth, r);
1138
- }
1139
- return null;
1140
- };
1141
- ar.filterProps = ["maxWidth"];
1142
- const Vt = G({
1143
- prop: "minWidth",
1144
- transform: J
1145
- }), zt = G({
1146
- prop: "height",
1147
- transform: J
1148
- }), Gt = G({
1149
- prop: "maxHeight",
1150
- transform: J
1151
- }), Yt = G({
1152
- prop: "minHeight",
1153
- transform: J
1154
- });
1155
- G({
1156
- prop: "size",
1157
- cssProperty: "width",
1158
- transform: J
1159
- });
1160
- G({
1161
- prop: "size",
1162
- cssProperty: "height",
1163
- transform: J
1164
- });
1165
- const Kt = G({
1166
- prop: "boxSizing"
1167
- });
1168
- Ne(Lt, ar, Vt, zt, Gt, Yt, Kt);
1169
- const Ve = {
1170
- // borders
1171
- border: {
1172
- themeKey: "borders",
1173
- transform: Z
1174
- },
1175
- borderTop: {
1176
- themeKey: "borders",
1177
- transform: Z
1178
- },
1179
- borderRight: {
1180
- themeKey: "borders",
1181
- transform: Z
1182
- },
1183
- borderBottom: {
1184
- themeKey: "borders",
1185
- transform: Z
1186
- },
1187
- borderLeft: {
1188
- themeKey: "borders",
1189
- transform: Z
1190
- },
1191
- borderColor: {
1192
- themeKey: "palette"
1193
- },
1194
- borderTopColor: {
1195
- themeKey: "palette"
1196
- },
1197
- borderRightColor: {
1198
- themeKey: "palette"
1199
- },
1200
- borderBottomColor: {
1201
- themeKey: "palette"
1202
- },
1203
- borderLeftColor: {
1204
- themeKey: "palette"
1205
- },
1206
- outline: {
1207
- themeKey: "borders",
1208
- transform: Z
1209
- },
1210
- outlineColor: {
1211
- themeKey: "palette"
1212
- },
1213
- borderRadius: {
1214
- themeKey: "shape.borderRadius",
1215
- style: We
1216
- },
1217
- // palette
1218
- color: {
1219
- themeKey: "palette",
1220
- transform: ve
1221
- },
1222
- bgcolor: {
1223
- themeKey: "palette",
1224
- cssProperty: "backgroundColor",
1225
- transform: ve
1226
- },
1227
- backgroundColor: {
1228
- themeKey: "palette",
1229
- transform: ve
1230
- },
1231
- // spacing
1232
- p: {
1233
- style: z
1234
- },
1235
- pt: {
1236
- style: z
1237
- },
1238
- pr: {
1239
- style: z
1240
- },
1241
- pb: {
1242
- style: z
1243
- },
1244
- pl: {
1245
- style: z
1246
- },
1247
- px: {
1248
- style: z
1249
- },
1250
- py: {
1251
- style: z
1252
- },
1253
- padding: {
1254
- style: z
1255
- },
1256
- paddingTop: {
1257
- style: z
1258
- },
1259
- paddingRight: {
1260
- style: z
1261
- },
1262
- paddingBottom: {
1263
- style: z
1264
- },
1265
- paddingLeft: {
1266
- style: z
1267
- },
1268
- paddingX: {
1269
- style: z
1270
- },
1271
- paddingY: {
1272
- style: z
1273
- },
1274
- paddingInline: {
1275
- style: z
1276
- },
1277
- paddingInlineStart: {
1278
- style: z
1279
- },
1280
- paddingInlineEnd: {
1281
- style: z
1282
- },
1283
- paddingBlock: {
1284
- style: z
1285
- },
1286
- paddingBlockStart: {
1287
- style: z
1288
- },
1289
- paddingBlockEnd: {
1290
- style: z
1291
- },
1292
- m: {
1293
- style: V
1294
- },
1295
- mt: {
1296
- style: V
1297
- },
1298
- mr: {
1299
- style: V
1300
- },
1301
- mb: {
1302
- style: V
1303
- },
1304
- ml: {
1305
- style: V
1306
- },
1307
- mx: {
1308
- style: V
1309
- },
1310
- my: {
1311
- style: V
1312
- },
1313
- margin: {
1314
- style: V
1315
- },
1316
- marginTop: {
1317
- style: V
1318
- },
1319
- marginRight: {
1320
- style: V
1321
- },
1322
- marginBottom: {
1323
- style: V
1324
- },
1325
- marginLeft: {
1326
- style: V
1327
- },
1328
- marginX: {
1329
- style: V
1330
- },
1331
- marginY: {
1332
- style: V
1333
- },
1334
- marginInline: {
1335
- style: V
1336
- },
1337
- marginInlineStart: {
1338
- style: V
1339
- },
1340
- marginInlineEnd: {
1341
- style: V
1342
- },
1343
- marginBlock: {
1344
- style: V
1345
- },
1346
- marginBlockStart: {
1347
- style: V
1348
- },
1349
- marginBlockEnd: {
1350
- style: V
1351
- },
1352
- // display
1353
- displayPrint: {
1354
- cssProperty: !1,
1355
- transform: (e) => ({
1356
- "@media print": {
1357
- display: e
1358
- }
1359
- })
1360
- },
1361
- display: {},
1362
- overflow: {},
1363
- textOverflow: {},
1364
- visibility: {},
1365
- whiteSpace: {},
1366
- // flexbox
1367
- flexBasis: {},
1368
- flexDirection: {},
1369
- flexWrap: {},
1370
- justifyContent: {},
1371
- alignItems: {},
1372
- alignContent: {},
1373
- order: {},
1374
- flex: {},
1375
- flexGrow: {},
1376
- flexShrink: {},
1377
- alignSelf: {},
1378
- justifyItems: {},
1379
- justifySelf: {},
1380
- // grid
1381
- gap: {
1382
- style: Ue
1383
- },
1384
- rowGap: {
1385
- style: Le
1386
- },
1387
- columnGap: {
1388
- style: Fe
1389
- },
1390
- gridColumn: {},
1391
- gridRow: {},
1392
- gridAutoFlow: {},
1393
- gridAutoColumns: {},
1394
- gridAutoRows: {},
1395
- gridTemplateColumns: {},
1396
- gridTemplateRows: {},
1397
- gridTemplateAreas: {},
1398
- gridArea: {},
1399
- // positions
1400
- position: {},
1401
- zIndex: {
1402
- themeKey: "zIndex"
1403
- },
1404
- top: {},
1405
- right: {},
1406
- bottom: {},
1407
- left: {},
1408
- // shadows
1409
- boxShadow: {
1410
- themeKey: "shadows"
1411
- },
1412
- // sizing
1413
- width: {
1414
- transform: J
1415
- },
1416
- maxWidth: {
1417
- style: ar
1418
- },
1419
- minWidth: {
1420
- transform: J
1421
- },
1422
- height: {
1423
- transform: J
1424
- },
1425
- maxHeight: {
1426
- transform: J
1427
- },
1428
- minHeight: {
1429
- transform: J
1430
- },
1431
- boxSizing: {},
1432
- // typography
1433
- font: {
1434
- themeKey: "font"
1435
- },
1436
- fontFamily: {
1437
- themeKey: "typography"
1438
- },
1439
- fontSize: {
1440
- themeKey: "typography"
1441
- },
1442
- fontStyle: {
1443
- themeKey: "typography"
1444
- },
1445
- fontWeight: {
1446
- themeKey: "typography"
1447
- },
1448
- letterSpacing: {},
1449
- textTransform: {},
1450
- lineHeight: {},
1451
- textAlign: {},
1452
- typography: {
1453
- cssProperty: !1,
1454
- themeKey: "typography"
1455
- }
1456
- };
1457
- function qt(...e) {
1458
- const r = e.reduce((n, i) => n.concat(Object.keys(i)), []), t = new Set(r);
1459
- return e.every((n) => t.size === Object.keys(n).length);
1460
- }
1461
- function Ht(e, r) {
1462
- return typeof e == "function" ? e(r) : e;
1463
- }
1464
- function Qt() {
1465
- function e(t, n, i, a) {
1466
- const s = {
1467
- [t]: n,
1468
- theme: i
1469
- }, c = a[t];
1470
- if (!c)
1471
- return {
1472
- [t]: n
1473
- };
1474
- const {
1475
- cssProperty: l = t,
1476
- themeKey: d,
1477
- transform: h,
1478
- style: p
1479
- } = c;
1480
- if (n == null)
1481
- return null;
1482
- if (d === "typography" && n === "inherit")
1483
- return {
1484
- [t]: n
1485
- };
1486
- const f = je(i, d) || {};
1487
- return p ? p(s) : se(s, n, (T) => {
1488
- let b = Ie(f, h, T);
1489
- return T === b && typeof T == "string" && (b = Ie(f, h, `${t}${T === "default" ? "" : Dr(T)}`, T)), l === !1 ? b : {
1490
- [l]: b
1491
- };
1492
- });
1493
- }
1494
- function r(t) {
1495
- const {
1496
- sx: n,
1497
- theme: i = {}
1498
- } = t || {};
1499
- if (!n)
1500
- return null;
1501
- const a = i.unstable_sxConfig ?? Ve;
1502
- function s(c) {
1503
- let l = c;
1504
- if (typeof c == "function")
1505
- l = c(i);
1506
- else if (typeof c != "object")
1507
- return c;
1508
- if (!l)
1509
- return null;
1510
- const d = Br(i.breakpoints), h = Object.keys(d);
1511
- let p = d;
1512
- return Object.keys(l).forEach((f) => {
1513
- const S = Ht(l[f], i);
1514
- if (S != null)
1515
- if (typeof S == "object")
1516
- if (a[f])
1517
- p = we(p, e(f, S, i, a));
1518
- else {
1519
- const T = se({
1520
- theme: i
1521
- }, S, (b) => ({
1522
- [f]: b
1523
- }));
1524
- qt(T, S) ? p[f] = r({
1525
- sx: S,
1526
- theme: i
1527
- }) : p = we(p, T);
1528
- }
1529
- else
1530
- p = we(p, e(f, S, i, a));
1531
- }), ot(i, jr(h, p));
1532
- }
1533
- return Array.isArray(n) ? n.map(s) : s(n);
1534
- }
1535
- return r;
1536
- }
1537
- const ze = Qt();
1538
- ze.filterProps = ["sx"];
1539
- function Jt(e, r) {
1540
- var n;
1541
- const t = this;
1542
- if (t.vars) {
1543
- if (!((n = t.colorSchemes) != null && n[e]) || typeof t.getColorSchemeSelector != "function")
1544
- return {};
1545
- let i = t.getColorSchemeSelector(e);
1546
- return i === "&" ? r : ((i.includes("data-") || i.includes(".")) && (i = `*:where(${i.replace(/\s*&$/, "")}) &`), {
1547
- [i]: r
1548
- });
1549
- }
1550
- return t.palette.mode === e ? r : {};
1551
- }
1552
- function Xt(e = {}, ...r) {
1553
- const {
1554
- breakpoints: t = {},
1555
- palette: n = {},
1556
- spacing: i,
1557
- shape: a = {},
1558
- ...s
1559
- } = e, c = nt(t), l = Nr(i);
1560
- let d = Q({
1561
- breakpoints: c,
1562
- direction: "ltr",
1563
- components: {},
1564
- // Inject component definitions.
1565
- palette: {
1566
- mode: "light",
1567
- ...n
1568
- },
1569
- spacing: l,
1570
- shape: {
1571
- ...ct,
1572
- ...a
1573
- }
1574
- }, s);
1575
- return d = st(d), d.applyStyles = Jt, d = r.reduce((h, p) => Q(h, p), d), d.unstable_sxConfig = {
1576
- ...Ve,
1577
- ...s == null ? void 0 : s.unstable_sxConfig
1578
- }, d.unstable_sx = function(p) {
1579
- return ze({
1580
- sx: p,
1581
- theme: this
1582
- });
1583
- }, d;
1584
- }
1585
- function Zt(e, r = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
1586
- return Math.max(r, Math.min(e, t));
1587
- }
1588
- function sr(e, r = 0, t = 1) {
1589
- return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), Zt(e, r, t);
1590
- }
1591
- function en(e) {
1592
- e = e.slice(1);
1593
- const r = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
1594
- let t = e.match(r);
1595
- return t && t[0].length === 1 && (t = t.map((n) => n + n)), t ? `rgb${t.length === 4 ? "a" : ""}(${t.map((n, i) => i < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
1596
- }
1597
- function fe(e) {
1598
- if (e.type)
1599
- return e;
1600
- if (e.charAt(0) === "#")
1601
- return fe(en(e));
1602
- const r = e.indexOf("("), t = e.substring(0, r);
1603
- if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(t))
1604
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
1605
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : le(9, e));
1606
- let n = e.substring(r + 1, e.length - 1), i;
1607
- if (t === "color") {
1608
- if (n = n.split(" "), i = 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(i))
1609
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${i}\` color space.
1610
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : le(10, i));
1611
- } else
1612
- n = n.split(",");
1613
- return n = n.map((a) => parseFloat(a)), {
1614
- type: t,
1615
- values: n,
1616
- colorSpace: i
1617
- };
1618
- }
1619
- const rn = (e) => {
1620
- const r = fe(e);
1621
- return r.values.slice(0, 3).map((t, n) => r.type.includes("hsl") && n !== 0 ? `${t}%` : t).join(" ");
1622
- }, Te = (e, r) => {
1623
- try {
1624
- return rn(e);
1625
- } catch {
1626
- return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
1627
- }
1628
- };
1629
- function Ge(e) {
1630
- const {
1631
- type: r,
1632
- colorSpace: t
1633
- } = e;
1634
- let {
1635
- values: n
1636
- } = e;
1637
- return r.includes("rgb") ? n = n.map((i, a) => a < 3 ? parseInt(i, 10) : i) : r.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), r.includes("color") ? n = `${t} ${n.join(" ")}` : n = `${n.join(", ")}`, `${r}(${n})`;
1638
- }
1639
- function Wr(e) {
1640
- e = fe(e);
1641
- const {
1642
- values: r
1643
- } = e, t = r[0], n = r[1] / 100, i = r[2] / 100, a = n * Math.min(i, 1 - i), s = (d, h = (d + t / 30) % 12) => i - a * Math.max(Math.min(h - 3, 9 - h, 1), -1);
1644
- let c = "rgb";
1645
- const l = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
1646
- return e.type === "hsla" && (c += "a", l.push(r[3])), Ge({
1647
- type: c,
1648
- values: l
1649
- });
1650
- }
1651
- function tr(e) {
1652
- e = fe(e);
1653
- let r = e.type === "hsl" || e.type === "hsla" ? fe(Wr(e)).values : e.values;
1654
- 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));
1655
- }
1656
- function Er(e, r) {
1657
- const t = tr(e), n = tr(r);
1658
- return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
1659
- }
1660
- function tn(e, r) {
1661
- return e = fe(e), r = sr(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, Ge(e);
1662
- }
1663
- function _e(e, r, t) {
1664
- try {
1665
- return tn(e, r);
1666
- } catch {
1667
- return e;
1668
- }
1669
- }
1670
- function cr(e, r) {
1671
- if (e = fe(e), r = sr(r), e.type.includes("hsl"))
1672
- e.values[2] *= 1 - r;
1673
- else if (e.type.includes("rgb") || e.type.includes("color"))
1674
- for (let t = 0; t < 3; t += 1)
1675
- e.values[t] *= 1 - r;
1676
- return Ge(e);
1677
- }
1678
- function W(e, r, t) {
1679
- try {
1680
- return cr(e, r);
1681
- } catch {
1682
- return e;
1683
- }
1684
- }
1685
- function ur(e, r) {
1686
- if (e = fe(e), r = sr(r), e.type.includes("hsl"))
1687
- e.values[2] += (100 - e.values[2]) * r;
1688
- else if (e.type.includes("rgb"))
1689
- for (let t = 0; t < 3; t += 1)
1690
- e.values[t] += (255 - e.values[t]) * r;
1691
- else if (e.type.includes("color"))
1692
- for (let t = 0; t < 3; t += 1)
1693
- e.values[t] += (1 - e.values[t]) * r;
1694
- return Ge(e);
1695
- }
1696
- function U(e, r, t) {
1697
- try {
1698
- return ur(e, r);
1699
- } catch {
1700
- return e;
1701
- }
1702
- }
1703
- function nn(e, r = 0.15) {
1704
- return tr(e) > 0.5 ? cr(e, r) : ur(e, r);
1705
- }
1706
- function Re(e, r, t) {
1707
- try {
1708
- return nn(e, r);
1709
- } catch {
1710
- return e;
1711
- }
1712
- }
1713
- function on(e = "") {
1714
- function r(...n) {
1715
- if (!n.length)
1716
- return "";
1717
- const i = n[0];
1718
- return typeof i == "string" && !i.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}-` : ""}${i}${r(...n.slice(1))})` : `, ${i}`;
1719
- }
1720
- return (n, ...i) => `var(--${e ? `${e}-` : ""}${n}${r(...i)})`;
1721
- }
1722
- const wr = (e, r, t, n = []) => {
1723
- let i = e;
1724
- r.forEach((a, s) => {
1725
- s === r.length - 1 ? Array.isArray(i) ? i[Number(a)] = t : i && typeof i == "object" && (i[a] = t) : i && typeof i == "object" && (i[a] || (i[a] = n.includes(a) ? [] : {}), i = i[a]);
1726
- });
1727
- }, an = (e, r, t) => {
1728
- function n(i, a = [], s = []) {
1729
- Object.entries(i).forEach(([c, l]) => {
1730
- (!t || t && !t([...a, c])) && l != null && (typeof l == "object" && Object.keys(l).length > 0 ? n(l, [...a, c], Array.isArray(l) ? [...s, c] : s) : r([...a, c], l, s));
1731
- });
1732
- }
1733
- n(e);
1734
- }, sn = (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;
1735
- function Ze(e, r) {
1736
- const {
1737
- prefix: t,
1738
- shouldSkipGeneratingVar: n
1739
- } = r || {}, i = {}, a = {}, s = {};
1740
- return an(
1741
- e,
1742
- (c, l, d) => {
1743
- if ((typeof l == "string" || typeof l == "number") && (!n || !n(c, l))) {
1744
- const h = `--${t ? `${t}-` : ""}${c.join("-")}`, p = sn(c, l);
1745
- Object.assign(i, {
1746
- [h]: p
1747
- }), wr(a, c, `var(${h})`, d), wr(s, c, `var(${h}, ${p})`, d);
1748
- }
1749
- },
1750
- (c) => c[0] === "vars"
1751
- // skip 'vars/*' paths
1752
- ), {
1753
- css: i,
1754
- vars: a,
1755
- varsWithDefaults: s
1756
- };
1757
- }
1758
- function cn(e, r = {}) {
1759
- const {
1760
- getSelector: t = $,
1761
- disableCssColorScheme: n,
1762
- colorSchemeSelector: i
1763
- } = r, {
1764
- colorSchemes: a = {},
1765
- components: s,
1766
- defaultColorScheme: c = "light",
1767
- ...l
1768
- } = e, {
1769
- vars: d,
1770
- css: h,
1771
- varsWithDefaults: p
1772
- } = Ze(l, r);
1773
- let f = p;
1774
- const S = {}, {
1775
- [c]: T,
1776
- ...b
1777
- } = a;
1778
- if (Object.entries(b || {}).forEach(([w, E]) => {
1779
- const {
1780
- vars: m,
1781
- css: K,
1782
- varsWithDefaults: X
1783
- } = Ze(E, r);
1784
- f = Q(f, X), S[w] = {
1785
- css: K,
1786
- vars: m
1787
- };
1788
- }), T) {
1789
- const {
1790
- css: w,
1791
- vars: E,
1792
- varsWithDefaults: m
1793
- } = Ze(T, r);
1794
- f = Q(f, m), S[c] = {
1795
- css: w,
1796
- vars: E
1797
- };
1798
- }
1799
- function $(w, E) {
1800
- var K, X;
1801
- let m = i;
1802
- if (i === "class" && (m = ".%s"), i === "data" && (m = "[data-%s]"), i != null && i.startsWith("data-") && !i.includes("%s") && (m = `[${i}="%s"]`), w) {
1803
- if (m === "media")
1804
- return e.defaultColorScheme === w ? ":root" : {
1805
- [`@media (prefers-color-scheme: ${((X = (K = a[w]) == null ? void 0 : K.palette) == null ? void 0 : X.mode) || w})`]: {
1806
- ":root": E
1807
- }
1808
- };
1809
- if (m)
1810
- return e.defaultColorScheme === w ? `:root, ${m.replace("%s", String(w))}` : m.replace("%s", String(w));
1811
- }
1812
- return ":root";
1813
- }
1814
- return {
1815
- vars: f,
1816
- generateThemeVars: () => {
1817
- let w = {
1818
- ...d
1819
- };
1820
- return Object.entries(S).forEach(([, {
1821
- vars: E
1822
- }]) => {
1823
- w = Q(w, E);
1824
- }), w;
1825
- },
1826
- generateStyleSheets: () => {
1827
- var ie, q;
1828
- const w = [], E = e.defaultColorScheme || "light";
1829
- function m(o, C) {
1830
- Object.keys(C).length && w.push(typeof o == "string" ? {
1831
- [o]: {
1832
- ...C
1833
- }
1834
- } : o);
1835
- }
1836
- m(t(void 0, {
1837
- ...h
1838
- }), h);
1839
- const {
1840
- [E]: K,
1841
- ...X
1842
- } = S;
1843
- if (K) {
1844
- const {
1845
- css: o
1846
- } = K, C = (q = (ie = a[E]) == null ? void 0 : ie.palette) == null ? void 0 : q.mode, j = !n && C ? {
1847
- colorScheme: C,
1848
- ...o
1849
- } : {
1850
- ...o
1851
- };
1852
- m(t(E, {
1853
- ...j
1854
- }), j);
1855
- }
1856
- return Object.entries(X).forEach(([o, {
1857
- css: C
1858
- }]) => {
1859
- var re, ce;
1860
- const j = (ce = (re = a[o]) == null ? void 0 : re.palette) == null ? void 0 : ce.mode, L = !n && j ? {
1861
- colorScheme: j,
1862
- ...C
1863
- } : {
1864
- ...C
1865
- };
1866
- m(t(o, {
1867
- ...L
1868
- }), L);
1869
- }), w;
1870
- }
1871
- };
1872
- }
1873
- function un(e) {
1874
- return function(t) {
1875
- 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)} &` : "&";
1876
- };
1877
- }
1878
- const Yn = "$$material", $e = {
1879
- black: "#000",
1880
- white: "#fff"
1881
- }, ln = {
1882
- 50: "#fafafa",
1883
- 100: "#f5f5f5",
1884
- 200: "#eeeeee",
1885
- 300: "#e0e0e0",
1886
- 400: "#bdbdbd",
1887
- 500: "#9e9e9e",
1888
- 600: "#757575",
1889
- 700: "#616161",
1890
- 800: "#424242",
1891
- 900: "#212121",
1892
- A100: "#f5f5f5",
1893
- A200: "#eeeeee",
1894
- A400: "#bdbdbd",
1895
- A700: "#616161"
1896
- }, ge = {
1897
- 50: "#f3e5f5",
1898
- 100: "#e1bee7",
1899
- 200: "#ce93d8",
1900
- 300: "#ba68c8",
1901
- 400: "#ab47bc",
1902
- 500: "#9c27b0",
1903
- 600: "#8e24aa",
1904
- 700: "#7b1fa2",
1905
- 800: "#6a1b9a",
1906
- 900: "#4a148c",
1907
- A100: "#ea80fc",
1908
- A200: "#e040fb",
1909
- A400: "#d500f9",
1910
- A700: "#aa00ff"
1911
- }, me = {
1912
- 50: "#ffebee",
1913
- 100: "#ffcdd2",
1914
- 200: "#ef9a9a",
1915
- 300: "#e57373",
1916
- 400: "#ef5350",
1917
- 500: "#f44336",
1918
- 600: "#e53935",
1919
- 700: "#d32f2f",
1920
- 800: "#c62828",
1921
- 900: "#b71c1c",
1922
- A100: "#ff8a80",
1923
- A200: "#ff5252",
1924
- A400: "#ff1744",
1925
- A700: "#d50000"
1926
- }, Ce = {
1927
- 50: "#fff3e0",
1928
- 100: "#ffe0b2",
1929
- 200: "#ffcc80",
1930
- 300: "#ffb74d",
1931
- 400: "#ffa726",
1932
- 500: "#ff9800",
1933
- 600: "#fb8c00",
1934
- 700: "#f57c00",
1935
- 800: "#ef6c00",
1936
- 900: "#e65100",
1937
- A100: "#ffd180",
1938
- A200: "#ffab40",
1939
- A400: "#ff9100",
1940
- A700: "#ff6d00"
1941
- }, he = {
1942
- 50: "#e3f2fd",
1943
- 100: "#bbdefb",
1944
- 200: "#90caf9",
1945
- 300: "#64b5f6",
1946
- 400: "#42a5f5",
1947
- 500: "#2196f3",
1948
- 600: "#1e88e5",
1949
- 700: "#1976d2",
1950
- 800: "#1565c0",
1951
- 900: "#0d47a1",
1952
- A100: "#82b1ff",
1953
- A200: "#448aff",
1954
- A400: "#2979ff",
1955
- A700: "#2962ff"
1956
- }, ye = {
1957
- 50: "#e1f5fe",
1958
- 100: "#b3e5fc",
1959
- 200: "#81d4fa",
1960
- 300: "#4fc3f7",
1961
- 400: "#29b6f6",
1962
- 500: "#03a9f4",
1963
- 600: "#039be5",
1964
- 700: "#0288d1",
1965
- 800: "#0277bd",
1966
- 900: "#01579b",
1967
- A100: "#80d8ff",
1968
- A200: "#40c4ff",
1969
- A400: "#00b0ff",
1970
- A700: "#0091ea"
1971
- }, be = {
1972
- 50: "#e8f5e9",
1973
- 100: "#c8e6c9",
1974
- 200: "#a5d6a7",
1975
- 300: "#81c784",
1976
- 400: "#66bb6a",
1977
- 500: "#4caf50",
1978
- 600: "#43a047",
1979
- 700: "#388e3c",
1980
- 800: "#2e7d32",
1981
- 900: "#1b5e20",
1982
- A100: "#b9f6ca",
1983
- A200: "#69f0ae",
1984
- A400: "#00e676",
1985
- A700: "#00c853"
1986
- };
1987
- function Ur() {
1988
- return {
1989
- // The colors used to style the text.
1990
- text: {
1991
- // The most important text.
1992
- primary: "rgba(0, 0, 0, 0.87)",
1993
- // Secondary text.
1994
- secondary: "rgba(0, 0, 0, 0.6)",
1995
- // Disabled text have even lower visual prominence.
1996
- disabled: "rgba(0, 0, 0, 0.38)"
1997
- },
1998
- // The color used to divide different elements.
1999
- divider: "rgba(0, 0, 0, 0.12)",
2000
- // The background colors used to style the surfaces.
2001
- // Consistency between these values is important.
2002
- background: {
2003
- paper: $e.white,
2004
- default: $e.white
2005
- },
2006
- // The colors used to style the action elements.
2007
- action: {
2008
- // The color of an active action like an icon button.
2009
- active: "rgba(0, 0, 0, 0.54)",
2010
- // The color of an hovered action.
2011
- hover: "rgba(0, 0, 0, 0.04)",
2012
- hoverOpacity: 0.04,
2013
- // The color of a selected action.
2014
- selected: "rgba(0, 0, 0, 0.08)",
2015
- selectedOpacity: 0.08,
2016
- // The color of a disabled action.
2017
- disabled: "rgba(0, 0, 0, 0.26)",
2018
- // The background color of a disabled action.
2019
- disabledBackground: "rgba(0, 0, 0, 0.12)",
2020
- disabledOpacity: 0.38,
2021
- focus: "rgba(0, 0, 0, 0.12)",
2022
- focusOpacity: 0.12,
2023
- activatedOpacity: 0.12
2024
- }
2025
- };
2026
- }
2027
- const fn = Ur();
2028
- function Fr() {
2029
- return {
2030
- text: {
2031
- primary: $e.white,
2032
- secondary: "rgba(255, 255, 255, 0.7)",
2033
- disabled: "rgba(255, 255, 255, 0.5)",
2034
- icon: "rgba(255, 255, 255, 0.5)"
2035
- },
2036
- divider: "rgba(255, 255, 255, 0.12)",
2037
- background: {
2038
- paper: "#121212",
2039
- default: "#121212"
2040
- },
2041
- action: {
2042
- active: $e.white,
2043
- hover: "rgba(255, 255, 255, 0.08)",
2044
- hoverOpacity: 0.08,
2045
- selected: "rgba(255, 255, 255, 0.16)",
2046
- selectedOpacity: 0.16,
2047
- disabled: "rgba(255, 255, 255, 0.3)",
2048
- disabledBackground: "rgba(255, 255, 255, 0.12)",
2049
- disabledOpacity: 0.38,
2050
- focus: "rgba(255, 255, 255, 0.12)",
2051
- focusOpacity: 0.12,
2052
- activatedOpacity: 0.24
2053
- }
2054
- };
2055
- }
2056
- const $r = Fr();
2057
- function Or(e, r, t, n) {
2058
- const i = n.light || n, a = n.dark || n * 1.5;
2059
- e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = ur(e.main, i) : r === "dark" && (e.dark = cr(e.main, a)));
2060
- }
2061
- function dn(e = "light") {
2062
- return e === "dark" ? {
2063
- main: he[200],
2064
- light: he[50],
2065
- dark: he[400]
2066
- } : {
2067
- main: he[700],
2068
- light: he[400],
2069
- dark: he[800]
2070
- };
2071
- }
2072
- function pn(e = "light") {
2073
- return e === "dark" ? {
2074
- main: ge[200],
2075
- light: ge[50],
2076
- dark: ge[400]
2077
- } : {
2078
- main: ge[500],
2079
- light: ge[300],
2080
- dark: ge[700]
2081
- };
2082
- }
2083
- function gn(e = "light") {
2084
- return e === "dark" ? {
2085
- main: me[500],
2086
- light: me[300],
2087
- dark: me[700]
2088
- } : {
2089
- main: me[700],
2090
- light: me[400],
2091
- dark: me[800]
2092
- };
2093
- }
2094
- function mn(e = "light") {
2095
- return e === "dark" ? {
2096
- main: ye[400],
2097
- light: ye[300],
2098
- dark: ye[700]
2099
- } : {
2100
- main: ye[700],
2101
- light: ye[500],
2102
- dark: ye[900]
2103
- };
2104
- }
2105
- function hn(e = "light") {
2106
- return e === "dark" ? {
2107
- main: be[400],
2108
- light: be[300],
2109
- dark: be[700]
2110
- } : {
2111
- main: be[800],
2112
- light: be[500],
2113
- dark: be[900]
2114
- };
2115
- }
2116
- function yn(e = "light") {
2117
- return e === "dark" ? {
2118
- main: Ce[400],
2119
- light: Ce[300],
2120
- dark: Ce[700]
2121
- } : {
2122
- main: "#ed6c02",
2123
- // closest to orange[800] that pass 3:1.
2124
- light: Ce[500],
2125
- dark: Ce[900]
2126
- };
2127
- }
2128
- function lr(e) {
2129
- const {
2130
- mode: r = "light",
2131
- contrastThreshold: t = 3,
2132
- tonalOffset: n = 0.2,
2133
- ...i
2134
- } = e, a = e.primary || dn(r), s = e.secondary || pn(r), c = e.error || gn(r), l = e.info || mn(r), d = e.success || hn(r), h = e.warning || yn(r);
2135
- function p(b) {
2136
- const $ = Er(b, $r.text.primary) >= t ? $r.text.primary : fn.text.primary;
2137
- if (process.env.NODE_ENV !== "production") {
2138
- const A = Er(b, $);
2139
- A < 3 && console.error([`MUI: The contrast ratio of ${A}:1 for ${$} on ${b}`, "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(`
2140
- `));
2141
- }
2142
- return $;
2143
- }
2144
- const f = ({
2145
- color: b,
2146
- name: $,
2147
- mainShade: A = 500,
2148
- lightShade: Y = 300,
2149
- darkShade: w = 700
2150
- }) => {
2151
- if (b = {
2152
- ...b
2153
- }, !b.main && b[A] && (b.main = b[A]), !b.hasOwnProperty("main"))
2154
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${$ ? ` (${$})` : ""} provided to augmentColor(color) is invalid.
2155
- The color object needs to have a \`main\` property or a \`${A}\` property.` : le(11, $ ? ` (${$})` : "", A));
2156
- if (typeof b.main != "string")
2157
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${$ ? ` (${$})` : ""} provided to augmentColor(color) is invalid.
2158
- \`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
2159
-
2160
- Did you intend to use one of the following approaches?
2161
-
2162
- import { green } from "@mui/material/colors";
2163
-
2164
- const theme1 = createTheme({ palette: {
2165
- primary: green,
2166
- } });
2167
-
2168
- const theme2 = createTheme({ palette: {
2169
- primary: { main: green[500] },
2170
- } });` : le(12, $ ? ` (${$})` : "", JSON.stringify(b.main)));
2171
- return Or(b, "light", Y, n), Or(b, "dark", w, n), b.contrastText || (b.contrastText = p(b.main)), b;
2172
- };
2173
- let S;
2174
- return r === "light" ? S = Ur() : r === "dark" && (S = Fr()), process.env.NODE_ENV !== "production" && (S || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), Q({
2175
- // A collection of common colors.
2176
- common: {
2177
- ...$e
2178
- },
2179
- // prevent mutable object.
2180
- // The palette mode, can be light or dark.
2181
- mode: r,
2182
- // The colors used to represent primary interface elements for a user.
2183
- primary: f({
2184
- color: a,
2185
- name: "primary"
2186
- }),
2187
- // The colors used to represent secondary interface elements for a user.
2188
- secondary: f({
2189
- color: s,
2190
- name: "secondary",
2191
- mainShade: "A400",
2192
- lightShade: "A200",
2193
- darkShade: "A700"
2194
- }),
2195
- // The colors used to represent interface elements that the user should be made aware of.
2196
- error: f({
2197
- color: c,
2198
- name: "error"
2199
- }),
2200
- // The colors used to represent potentially dangerous actions or important messages.
2201
- warning: f({
2202
- color: h,
2203
- name: "warning"
2204
- }),
2205
- // The colors used to present information to the user that is neutral and not necessarily important.
2206
- info: f({
2207
- color: l,
2208
- name: "info"
2209
- }),
2210
- // The colors used to indicate the successful completion of an action that user triggered.
2211
- success: f({
2212
- color: d,
2213
- name: "success"
2214
- }),
2215
- // The grey colors.
2216
- grey: ln,
2217
- // Used by `getContrastText()` to maximize the contrast between
2218
- // the background and the text.
2219
- contrastThreshold: t,
2220
- // Takes a background color and returns the text color that maximizes the contrast.
2221
- getContrastText: p,
2222
- // Generate a rich color object.
2223
- augmentColor: f,
2224
- // Used by the functions below to shift a color's luminance by approximately
2225
- // two indexes within its tonal palette.
2226
- // E.g., shift from Red 500 to Red 300 or Red 700.
2227
- tonalOffset: n,
2228
- // The light and dark mode object.
2229
- ...S
2230
- }, i);
2231
- }
2232
- function bn(e) {
2233
- const r = {};
2234
- return Object.entries(e).forEach((n) => {
2235
- const [i, a] = n;
2236
- typeof a == "object" && (r[i] = `${a.fontStyle ? `${a.fontStyle} ` : ""}${a.fontVariant ? `${a.fontVariant} ` : ""}${a.fontWeight ? `${a.fontWeight} ` : ""}${a.fontStretch ? `${a.fontStretch} ` : ""}${a.fontSize || ""}${a.lineHeight ? `/${a.lineHeight} ` : ""}${a.fontFamily || ""}`);
2237
- }), r;
2238
- }
2239
- function vn(e, r) {
2240
- return {
2241
- toolbar: {
2242
- minHeight: 56,
2243
- [e.up("xs")]: {
2244
- "@media (orientation: landscape)": {
2245
- minHeight: 48
2246
- }
2247
- },
2248
- [e.up("sm")]: {
2249
- minHeight: 64
2250
- }
2251
- },
2252
- ...r
2253
- };
2254
- }
2255
- function Sn(e) {
2256
- return Math.round(e * 1e5) / 1e5;
2257
- }
2258
- const Ar = {
2259
- textTransform: "uppercase"
2260
- }, xr = '"Roboto", "Helvetica", "Arial", sans-serif';
2261
- function Cn(e, r) {
2262
- const {
2263
- fontFamily: t = xr,
2264
- // The default font size of the Material Specification.
2265
- fontSize: n = 14,
2266
- // px
2267
- fontWeightLight: i = 300,
2268
- fontWeightRegular: a = 400,
2269
- fontWeightMedium: s = 500,
2270
- fontWeightBold: c = 700,
2271
- // Tell MUI what's the font-size on the html element.
2272
- // 16px is the default font-size used by browsers.
2273
- htmlFontSize: l = 16,
2274
- // Apply the CSS properties to all the variants.
2275
- allVariants: d,
2276
- pxToRem: h,
2277
- ...p
2278
- } = typeof r == "function" ? r(e) : r;
2279
- process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof l != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
2280
- const f = n / 14, S = h || (($) => `${$ / l * f}rem`), T = ($, A, Y, w, E) => ({
2281
- fontFamily: t,
2282
- fontWeight: $,
2283
- fontSize: S(A),
2284
- // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
2285
- lineHeight: Y,
2286
- // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
2287
- // across font-families can cause issues with the kerning.
2288
- ...t === xr ? {
2289
- letterSpacing: `${Sn(w / A)}em`
2290
- } : {},
2291
- ...E,
2292
- ...d
2293
- }), b = {
2294
- h1: T(i, 96, 1.167, -1.5),
2295
- h2: T(i, 60, 1.2, -0.5),
2296
- h3: T(a, 48, 1.167, 0),
2297
- h4: T(a, 34, 1.235, 0.25),
2298
- h5: T(a, 24, 1.334, 0),
2299
- h6: T(s, 20, 1.6, 0.15),
2300
- subtitle1: T(a, 16, 1.75, 0.15),
2301
- subtitle2: T(s, 14, 1.57, 0.1),
2302
- body1: T(a, 16, 1.5, 0.15),
2303
- body2: T(a, 14, 1.43, 0.15),
2304
- button: T(s, 14, 1.75, 0.4, Ar),
2305
- caption: T(a, 12, 1.66, 0.4),
2306
- overline: T(a, 12, 2.66, 1, Ar),
2307
- // 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.
2308
- inherit: {
2309
- fontFamily: "inherit",
2310
- fontWeight: "inherit",
2311
- fontSize: "inherit",
2312
- lineHeight: "inherit",
2313
- letterSpacing: "inherit"
2314
- }
2315
- };
2316
- return Q({
2317
- htmlFontSize: l,
2318
- pxToRem: S,
2319
- fontFamily: t,
2320
- fontSize: n,
2321
- fontWeightLight: i,
2322
- fontWeightRegular: a,
2323
- fontWeightMedium: s,
2324
- fontWeightBold: c,
2325
- ...b
2326
- }, p, {
2327
- clone: !1
2328
- // No need to clone deep
2329
- });
2330
- }
2331
- const Tn = 0.2, En = 0.14, wn = 0.12;
2332
- function F(...e) {
2333
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Tn})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${En})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wn})`].join(",");
2334
- }
2335
- const $n = ["none", F(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), F(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), F(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), F(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), F(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), F(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), F(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), F(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), F(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), F(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), F(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), F(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), F(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), F(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), F(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), F(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), F(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), F(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), F(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), F(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), F(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), F(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), F(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), F(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], On = {
2336
- // This is the most common easing curve.
2337
- easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
2338
- // Objects enter the screen at full velocity from off-screen and
2339
- // slowly decelerate to a resting point.
2340
- easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
2341
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2342
- easeIn: "cubic-bezier(0.4, 0, 1, 1)",
2343
- // The sharp curve is used by objects that may return to the screen at any time.
2344
- sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
2345
- }, An = {
2346
- shortest: 150,
2347
- shorter: 200,
2348
- short: 250,
2349
- // most basic recommended timing
2350
- standard: 300,
2351
- // this is to be used in complex animations
2352
- complex: 375,
2353
- // recommended when something is entering screen
2354
- enteringScreen: 225,
2355
- // recommended when something is leaving screen
2356
- leavingScreen: 195
2357
- };
2358
- function kr(e) {
2359
- return `${Math.round(e)}ms`;
2360
- }
2361
- function xn(e) {
2362
- if (!e)
2363
- return 0;
2364
- const r = e / 36;
2365
- return Math.min(Math.round((4 + 15 * r ** 0.25 + r / 5) * 10), 3e3);
2366
- }
2367
- function kn(e) {
2368
- const r = {
2369
- ...On,
2370
- ...e.easing
2371
- }, t = {
2372
- ...An,
2373
- ...e.duration
2374
- };
2375
- return {
2376
- getAutoHeightDuration: xn,
2377
- create: (i = ["all"], a = {}) => {
2378
- const {
2379
- duration: s = t.standard,
2380
- easing: c = r.easeInOut,
2381
- delay: l = 0,
2382
- ...d
2383
- } = a;
2384
- if (process.env.NODE_ENV !== "production") {
2385
- const h = (f) => typeof f == "string", p = (f) => !Number.isNaN(parseFloat(f));
2386
- !h(i) && !Array.isArray(i) && console.error('MUI: Argument "props" must be a string or Array.'), !p(s) && !h(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), h(c) || console.error('MUI: Argument "easing" must be a string.'), !p(l) && !h(l) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
2387
- `)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
2388
- }
2389
- return (Array.isArray(i) ? i : [i]).map((h) => `${h} ${typeof s == "string" ? s : kr(s)} ${c} ${typeof l == "string" ? l : kr(l)}`).join(",");
2390
- },
2391
- ...e,
2392
- easing: r,
2393
- duration: t
2394
- };
2395
- }
2396
- const Pn = {
2397
- mobileStepper: 1e3,
2398
- fab: 1050,
2399
- speedDial: 1050,
2400
- appBar: 1100,
2401
- drawer: 1200,
2402
- modal: 1300,
2403
- snackbar: 1400,
2404
- tooltip: 1500
2405
- };
2406
- function _n(e) {
2407
- return ue(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
2408
- }
2409
- function Lr(e = {}) {
2410
- const r = {
2411
- ...e
2412
- };
2413
- function t(n) {
2414
- const i = Object.entries(n);
2415
- for (let a = 0; a < i.length; a++) {
2416
- const [s, c] = i[a];
2417
- !_n(c) || s.startsWith("unstable_") ? delete n[s] : ue(c) && (n[s] = {
2418
- ...c
2419
- }, t(n[s]));
2420
- }
2421
- }
2422
- return t(r), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
2423
-
2424
- const theme = ${JSON.stringify(r, null, 2)};
2425
-
2426
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
2427
- theme.transitions = createTransitions(theme.transitions || {});
2428
-
2429
- export default theme;`;
2430
- }
2431
- function nr(e = {}, ...r) {
2432
- const {
2433
- breakpoints: t,
2434
- mixins: n = {},
2435
- spacing: i,
2436
- palette: a = {},
2437
- transitions: s = {},
2438
- typography: c = {},
2439
- shape: l,
2440
- ...d
2441
- } = e;
2442
- if (e.vars)
2443
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : le(20));
2444
- const h = lr(a), p = Xt(e);
2445
- let f = Q(p, {
2446
- mixins: vn(p.breakpoints, n),
2447
- palette: h,
2448
- // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
2449
- shadows: $n.slice(),
2450
- typography: Cn(h, c),
2451
- transitions: kn(s),
2452
- zIndex: {
2453
- ...Pn
2454
- }
2455
- });
2456
- if (f = Q(f, d), f = r.reduce((S, T) => Q(S, T), f), process.env.NODE_ENV !== "production") {
2457
- const S = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], T = (b, $) => {
2458
- let A;
2459
- for (A in b) {
2460
- const Y = b[A];
2461
- if (S.includes(A) && Object.keys(Y).length > 0) {
2462
- if (process.env.NODE_ENV !== "production") {
2463
- const w = Yr("", A);
2464
- console.error([`MUI: The \`${$}\` component increases the CSS specificity of the \`${A}\` internal state.`, "You can not override it like this: ", JSON.stringify(b, null, 2), "", `Instead, you need to use the '&.${w}' syntax:`, JSON.stringify({
2465
- root: {
2466
- [`&.${w}`]: Y
2467
- }
2468
- }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
2469
- `));
2470
- }
2471
- b[A] = {};
2472
- }
2473
- }
2474
- };
2475
- Object.keys(f.components).forEach((b) => {
2476
- const $ = f.components[b].styleOverrides;
2477
- $ && b.startsWith("Mui") && T($, b);
2478
- });
2479
- }
2480
- return f.unstable_sxConfig = {
2481
- ...Ve,
2482
- ...d == null ? void 0 : d.unstable_sxConfig
2483
- }, f.unstable_sx = function(T) {
2484
- return ze({
2485
- sx: T,
2486
- theme: this
2487
- });
2488
- }, f.toRuntimeSource = Lr, f;
2489
- }
2490
- function Rn(e) {
2491
- let r;
2492
- return e < 1 ? r = 5.11916 * e ** 2 : r = 4.5 * Math.log(e + 1) + 2, Math.round(r * 10) / 1e3;
2493
- }
2494
- const In = [...Array(25)].map((e, r) => {
2495
- if (r === 0)
2496
- return "none";
2497
- const t = Rn(r);
2498
- return `linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`;
2499
- });
2500
- function Vr(e) {
2501
- return {
2502
- inputPlaceholder: e === "dark" ? 0.5 : 0.42,
2503
- inputUnderline: e === "dark" ? 0.7 : 0.42,
2504
- switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
2505
- switchTrack: e === "dark" ? 0.3 : 0.38
2506
- };
2507
- }
2508
- function zr(e) {
2509
- return e === "dark" ? In : [];
2510
- }
2511
- function Bn(e) {
2512
- const {
2513
- palette: r = {
2514
- mode: "light"
2515
- },
2516
- // need to cast to avoid module augmentation test
2517
- opacity: t,
2518
- overlays: n,
2519
- ...i
2520
- } = e, a = lr(r);
2521
- return {
2522
- palette: a,
2523
- opacity: {
2524
- ...Vr(a.mode),
2525
- ...t
2526
- },
2527
- overlays: n || zr(a.mode),
2528
- ...i
2529
- };
2530
- }
2531
- function jn(e) {
2532
- var r;
2533
- return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
2534
- e[0] === "palette" && !!((r = e[1]) != null && r.match(/(mode|contrastThreshold|tonalOffset)/));
2535
- }
2536
- const Dn = (e) => [...[...Array(25)].map((r, t) => `--${e ? `${e}-` : ""}overlays-${t}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Mn = (e) => (r, t) => {
2537
- const n = e.rootSelector || ":root", i = e.colorSchemeSelector;
2538
- let a = i;
2539
- if (i === "class" && (a = ".%s"), i === "data" && (a = "[data-%s]"), i != null && i.startsWith("data-") && !i.includes("%s") && (a = `[${i}="%s"]`), e.defaultColorScheme === r) {
2540
- if (r === "dark") {
2541
- const s = {};
2542
- return Dn(e.cssVarPrefix).forEach((c) => {
2543
- s[c] = t[c], delete t[c];
2544
- }), a === "media" ? {
2545
- [n]: t,
2546
- "@media (prefers-color-scheme: dark)": {
2547
- [n]: s
2548
- }
2549
- } : a ? {
2550
- [a.replace("%s", r)]: s,
2551
- [`${n}, ${a.replace("%s", r)}`]: t
2552
- } : {
2553
- [n]: {
2554
- ...t,
2555
- ...s
2556
- }
2557
- };
2558
- }
2559
- if (a && a !== "media")
2560
- return `${n}, ${a.replace("%s", String(r))}`;
2561
- } else if (r) {
2562
- if (a === "media")
2563
- return {
2564
- [`@media (prefers-color-scheme: ${String(r)})`]: {
2565
- [n]: t
2566
- }
2567
- };
2568
- if (a)
2569
- return a.replace("%s", String(r));
2570
- }
2571
- return n;
2572
- };
2573
- function Nn(e, r) {
2574
- r.forEach((t) => {
2575
- e[t] || (e[t] = {});
2576
- });
2577
- }
2578
- function u(e, r, t) {
2579
- !e[r] && t && (e[r] = t);
2580
- }
2581
- function Ee(e) {
2582
- return !e || !e.startsWith("hsl") ? e : Wr(e);
2583
- }
2584
- function ae(e, r) {
2585
- `${r}Channel` in e || (e[`${r}Channel`] = Te(Ee(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().
2586
- 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.`));
2587
- }
2588
- function Wn(e) {
2589
- return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
2590
- }
2591
- const oe = (e) => {
2592
- try {
2593
- return e();
2594
- } catch {
2595
- }
2596
- }, Un = (e = "mui") => on(e);
2597
- function er(e, r, t, n) {
2598
- if (!r)
2599
- return;
2600
- r = r === !0 ? {} : r;
2601
- const i = n === "dark" ? "dark" : "light";
2602
- if (!t) {
2603
- e[n] = Bn({
2604
- ...r,
2605
- palette: {
2606
- mode: i,
2607
- ...r == null ? void 0 : r.palette
2608
- }
2609
- });
2610
- return;
2611
- }
2612
- const {
2613
- palette: a,
2614
- ...s
2615
- } = nr({
2616
- ...t,
2617
- palette: {
2618
- mode: i,
2619
- ...r == null ? void 0 : r.palette
2620
- }
2621
- });
2622
- return e[n] = {
2623
- ...r,
2624
- palette: a,
2625
- opacity: {
2626
- ...Vr(i),
2627
- ...r == null ? void 0 : r.opacity
2628
- },
2629
- overlays: (r == null ? void 0 : r.overlays) || zr(i)
2630
- }, s;
2631
- }
2632
- function Fn(e = {}, ...r) {
2633
- const {
2634
- colorSchemes: t = {
2635
- light: !0
2636
- },
2637
- defaultColorScheme: n,
2638
- disableCssColorScheme: i = !1,
2639
- cssVarPrefix: a = "mui",
2640
- shouldSkipGeneratingVar: s = jn,
2641
- colorSchemeSelector: c = t.light && t.dark ? "media" : void 0,
2642
- rootSelector: l = ":root",
2643
- ...d
2644
- } = e, h = Object.keys(t)[0], p = n || (t.light && h !== "light" ? "light" : h), f = Un(a), {
2645
- [p]: S,
2646
- light: T,
2647
- dark: b,
2648
- ...$
2649
- } = t, A = {
2650
- ...$
2651
- };
2652
- let Y = S;
2653
- if ((p === "dark" && !("dark" in t) || p === "light" && !("light" in t)) && (Y = !0), !Y)
2654
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : le(21, p));
2655
- const w = er(A, Y, d, p);
2656
- T && !A.light && er(A, T, void 0, "light"), b && !A.dark && er(A, b, void 0, "dark");
2657
- let E = {
2658
- defaultColorScheme: p,
2659
- ...w,
2660
- cssVarPrefix: a,
2661
- colorSchemeSelector: c,
2662
- rootSelector: l,
2663
- getCssVar: f,
2664
- colorSchemes: A,
2665
- font: {
2666
- ...bn(w.typography),
2667
- ...w.font
2668
- },
2669
- spacing: Wn(d.spacing)
2670
- };
2671
- Object.keys(E.colorSchemes).forEach((q) => {
2672
- const o = E.colorSchemes[q].palette, C = (j) => {
2673
- const L = j.split("-"), re = L[1], ce = L[2];
2674
- return f(j, o[re][ce]);
2675
- };
2676
- if (o.mode === "light" && (u(o.common, "background", "#fff"), u(o.common, "onBackground", "#000")), o.mode === "dark" && (u(o.common, "background", "#000"), u(o.common, "onBackground", "#fff")), Nn(o, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), o.mode === "light") {
2677
- u(o.Alert, "errorColor", W(o.error.light, 0.6)), u(o.Alert, "infoColor", W(o.info.light, 0.6)), u(o.Alert, "successColor", W(o.success.light, 0.6)), u(o.Alert, "warningColor", W(o.warning.light, 0.6)), u(o.Alert, "errorFilledBg", C("palette-error-main")), u(o.Alert, "infoFilledBg", C("palette-info-main")), u(o.Alert, "successFilledBg", C("palette-success-main")), u(o.Alert, "warningFilledBg", C("palette-warning-main")), u(o.Alert, "errorFilledColor", oe(() => o.getContrastText(o.error.main))), u(o.Alert, "infoFilledColor", oe(() => o.getContrastText(o.info.main))), u(o.Alert, "successFilledColor", oe(() => o.getContrastText(o.success.main))), u(o.Alert, "warningFilledColor", oe(() => o.getContrastText(o.warning.main))), u(o.Alert, "errorStandardBg", U(o.error.light, 0.9)), u(o.Alert, "infoStandardBg", U(o.info.light, 0.9)), u(o.Alert, "successStandardBg", U(o.success.light, 0.9)), u(o.Alert, "warningStandardBg", U(o.warning.light, 0.9)), u(o.Alert, "errorIconColor", C("palette-error-main")), u(o.Alert, "infoIconColor", C("palette-info-main")), u(o.Alert, "successIconColor", C("palette-success-main")), u(o.Alert, "warningIconColor", C("palette-warning-main")), u(o.AppBar, "defaultBg", C("palette-grey-100")), u(o.Avatar, "defaultBg", C("palette-grey-400")), u(o.Button, "inheritContainedBg", C("palette-grey-300")), u(o.Button, "inheritContainedHoverBg", C("palette-grey-A100")), u(o.Chip, "defaultBorder", C("palette-grey-400")), u(o.Chip, "defaultAvatarColor", C("palette-grey-700")), u(o.Chip, "defaultIconColor", C("palette-grey-700")), u(o.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), u(o.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), u(o.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), u(o.LinearProgress, "primaryBg", U(o.primary.main, 0.62)), u(o.LinearProgress, "secondaryBg", U(o.secondary.main, 0.62)), u(o.LinearProgress, "errorBg", U(o.error.main, 0.62)), u(o.LinearProgress, "infoBg", U(o.info.main, 0.62)), u(o.LinearProgress, "successBg", U(o.success.main, 0.62)), u(o.LinearProgress, "warningBg", U(o.warning.main, 0.62)), u(o.Skeleton, "bg", `rgba(${C("palette-text-primaryChannel")} / 0.11)`), u(o.Slider, "primaryTrack", U(o.primary.main, 0.62)), u(o.Slider, "secondaryTrack", U(o.secondary.main, 0.62)), u(o.Slider, "errorTrack", U(o.error.main, 0.62)), u(o.Slider, "infoTrack", U(o.info.main, 0.62)), u(o.Slider, "successTrack", U(o.success.main, 0.62)), u(o.Slider, "warningTrack", U(o.warning.main, 0.62));
2678
- const j = Re(o.background.default, 0.8);
2679
- u(o.SnackbarContent, "bg", j), u(o.SnackbarContent, "color", oe(() => o.getContrastText(j))), u(o.SpeedDialAction, "fabHoverBg", Re(o.background.paper, 0.15)), u(o.StepConnector, "border", C("palette-grey-400")), u(o.StepContent, "border", C("palette-grey-400")), u(o.Switch, "defaultColor", C("palette-common-white")), u(o.Switch, "defaultDisabledColor", C("palette-grey-100")), u(o.Switch, "primaryDisabledColor", U(o.primary.main, 0.62)), u(o.Switch, "secondaryDisabledColor", U(o.secondary.main, 0.62)), u(o.Switch, "errorDisabledColor", U(o.error.main, 0.62)), u(o.Switch, "infoDisabledColor", U(o.info.main, 0.62)), u(o.Switch, "successDisabledColor", U(o.success.main, 0.62)), u(o.Switch, "warningDisabledColor", U(o.warning.main, 0.62)), u(o.TableCell, "border", U(_e(o.divider, 1), 0.88)), u(o.Tooltip, "bg", _e(o.grey[700], 0.92));
2680
- }
2681
- if (o.mode === "dark") {
2682
- u(o.Alert, "errorColor", U(o.error.light, 0.6)), u(o.Alert, "infoColor", U(o.info.light, 0.6)), u(o.Alert, "successColor", U(o.success.light, 0.6)), u(o.Alert, "warningColor", U(o.warning.light, 0.6)), u(o.Alert, "errorFilledBg", C("palette-error-dark")), u(o.Alert, "infoFilledBg", C("palette-info-dark")), u(o.Alert, "successFilledBg", C("palette-success-dark")), u(o.Alert, "warningFilledBg", C("palette-warning-dark")), u(o.Alert, "errorFilledColor", oe(() => o.getContrastText(o.error.dark))), u(o.Alert, "infoFilledColor", oe(() => o.getContrastText(o.info.dark))), u(o.Alert, "successFilledColor", oe(() => o.getContrastText(o.success.dark))), u(o.Alert, "warningFilledColor", oe(() => o.getContrastText(o.warning.dark))), u(o.Alert, "errorStandardBg", W(o.error.light, 0.9)), u(o.Alert, "infoStandardBg", W(o.info.light, 0.9)), u(o.Alert, "successStandardBg", W(o.success.light, 0.9)), u(o.Alert, "warningStandardBg", W(o.warning.light, 0.9)), u(o.Alert, "errorIconColor", C("palette-error-main")), u(o.Alert, "infoIconColor", C("palette-info-main")), u(o.Alert, "successIconColor", C("palette-success-main")), u(o.Alert, "warningIconColor", C("palette-warning-main")), u(o.AppBar, "defaultBg", C("palette-grey-900")), u(o.AppBar, "darkBg", C("palette-background-paper")), u(o.AppBar, "darkColor", C("palette-text-primary")), u(o.Avatar, "defaultBg", C("palette-grey-600")), u(o.Button, "inheritContainedBg", C("palette-grey-800")), u(o.Button, "inheritContainedHoverBg", C("palette-grey-700")), u(o.Chip, "defaultBorder", C("palette-grey-700")), u(o.Chip, "defaultAvatarColor", C("palette-grey-300")), u(o.Chip, "defaultIconColor", C("palette-grey-300")), u(o.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), u(o.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), u(o.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), u(o.LinearProgress, "primaryBg", W(o.primary.main, 0.5)), u(o.LinearProgress, "secondaryBg", W(o.secondary.main, 0.5)), u(o.LinearProgress, "errorBg", W(o.error.main, 0.5)), u(o.LinearProgress, "infoBg", W(o.info.main, 0.5)), u(o.LinearProgress, "successBg", W(o.success.main, 0.5)), u(o.LinearProgress, "warningBg", W(o.warning.main, 0.5)), u(o.Skeleton, "bg", `rgba(${C("palette-text-primaryChannel")} / 0.13)`), u(o.Slider, "primaryTrack", W(o.primary.main, 0.5)), u(o.Slider, "secondaryTrack", W(o.secondary.main, 0.5)), u(o.Slider, "errorTrack", W(o.error.main, 0.5)), u(o.Slider, "infoTrack", W(o.info.main, 0.5)), u(o.Slider, "successTrack", W(o.success.main, 0.5)), u(o.Slider, "warningTrack", W(o.warning.main, 0.5));
2683
- const j = Re(o.background.default, 0.98);
2684
- u(o.SnackbarContent, "bg", j), u(o.SnackbarContent, "color", oe(() => o.getContrastText(j))), u(o.SpeedDialAction, "fabHoverBg", Re(o.background.paper, 0.15)), u(o.StepConnector, "border", C("palette-grey-600")), u(o.StepContent, "border", C("palette-grey-600")), u(o.Switch, "defaultColor", C("palette-grey-300")), u(o.Switch, "defaultDisabledColor", C("palette-grey-600")), u(o.Switch, "primaryDisabledColor", W(o.primary.main, 0.55)), u(o.Switch, "secondaryDisabledColor", W(o.secondary.main, 0.55)), u(o.Switch, "errorDisabledColor", W(o.error.main, 0.55)), u(o.Switch, "infoDisabledColor", W(o.info.main, 0.55)), u(o.Switch, "successDisabledColor", W(o.success.main, 0.55)), u(o.Switch, "warningDisabledColor", W(o.warning.main, 0.55)), u(o.TableCell, "border", W(_e(o.divider, 1), 0.68)), u(o.Tooltip, "bg", _e(o.grey[700], 0.92));
2685
- }
2686
- ae(o.background, "default"), ae(o.background, "paper"), ae(o.common, "background"), ae(o.common, "onBackground"), ae(o, "divider"), Object.keys(o).forEach((j) => {
2687
- const L = o[j];
2688
- L && typeof L == "object" && (L.main && u(o[j], "mainChannel", Te(Ee(L.main))), L.light && u(o[j], "lightChannel", Te(Ee(L.light))), L.dark && u(o[j], "darkChannel", Te(Ee(L.dark))), L.contrastText && u(o[j], "contrastTextChannel", Te(Ee(L.contrastText))), j === "text" && (ae(o[j], "primary"), ae(o[j], "secondary")), j === "action" && (L.active && ae(o[j], "active"), L.selected && ae(o[j], "selected")));
2689
- });
2690
- }), E = r.reduce((q, o) => Q(q, o), E);
2691
- const m = {
2692
- prefix: a,
2693
- disableCssColorScheme: i,
2694
- shouldSkipGeneratingVar: s,
2695
- getSelector: Mn(E)
2696
- }, {
2697
- vars: K,
2698
- generateThemeVars: X,
2699
- generateStyleSheets: ie
2700
- } = cn(E, m);
2701
- return E.vars = K, Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([q, o]) => {
2702
- E[q] = o;
2703
- }), E.generateThemeVars = X, E.generateStyleSheets = ie, E.generateSpacing = function() {
2704
- return Nr(d.spacing, ir(this));
2705
- }, E.getColorSchemeSelector = un(c), E.spacing = E.generateSpacing(), E.shouldSkipGeneratingVar = s, E.unstable_sxConfig = {
2706
- ...Ve,
2707
- ...d == null ? void 0 : d.unstable_sxConfig
2708
- }, E.unstable_sx = function(o) {
2709
- return ze({
2710
- sx: o,
2711
- theme: this
2712
- });
2713
- }, E.toRuntimeSource = Lr, E;
2714
- }
2715
- function Pr(e, r, t) {
2716
- e.colorSchemes && t && (e.colorSchemes[r] = {
2717
- ...t !== !0 && t,
2718
- palette: lr({
2719
- ...t === !0 ? {} : t.palette,
2720
- mode: r
2721
- })
2722
- // cast type to skip module augmentation test
2723
- });
2724
- }
2725
- function Kn(e = {}, ...r) {
2726
- const {
2727
- palette: t,
2728
- cssVariables: n = !1,
2729
- colorSchemes: i = t ? void 0 : {
2730
- light: !0
2731
- },
2732
- defaultColorScheme: a = t == null ? void 0 : t.mode,
2733
- ...s
2734
- } = e, c = a || "light", l = i == null ? void 0 : i[c], d = {
2735
- ...i,
2736
- ...t ? {
2737
- [c]: {
2738
- ...typeof l != "boolean" && l,
2739
- palette: t
2740
- }
2741
- } : void 0
2742
- };
2743
- if (n === !1) {
2744
- if (!("colorSchemes" in e))
2745
- return nr(e, ...r);
2746
- let h = t;
2747
- "palette" in e || d[c] && (d[c] !== !0 ? h = d[c].palette : c === "dark" && (h = {
2748
- mode: "dark"
2749
- }));
2750
- const p = nr({
2751
- ...e,
2752
- palette: h
2753
- }, ...r);
2754
- return p.defaultColorScheme = c, p.colorSchemes = d, p.palette.mode === "light" && (p.colorSchemes.light = {
2755
- ...d.light !== !0 && d.light,
2756
- palette: p.palette
2757
- }, Pr(p, "dark", d.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = {
2758
- ...d.dark !== !0 && d.dark,
2759
- palette: p.palette
2760
- }, Pr(p, "light", d.light)), p;
2761
- }
2762
- return !t && !("light" in d) && c === "light" && (d.light = !0), Fn({
2763
- ...s,
2764
- colorSchemes: d,
2765
- defaultColorScheme: c,
2766
- ...typeof n != "boolean" && n
2767
- }, ...r);
2768
- }
2769
- export {
2770
- Se as P,
2771
- Yn as T,
2772
- Xt as a,
2773
- Kn as b,
2774
- Dr as c,
2775
- Ve as d,
2776
- ir as e,
2777
- Q as f,
2778
- Ae as g,
2779
- se as h,
2780
- ue as i,
2781
- tn as j,
2782
- cr as k,
2783
- ur as l,
2784
- zn as m,
2785
- Rn as n,
2786
- le as o,
2787
- Gn as r,
2788
- ze as s
2789
- };