@australiangreens/ag-internal-components 0.0.7 → 0.0.9

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