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