@genai-fi/base 3.0.1

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