@carto/ps-react-ui 0.1.0-alpha.0 → 0.1.0-alpha.13

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.
@@ -1,338 +1,897 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
1
+ import * as V from "react";
2
+ import se, { useRef as wt, useState as me, useEffect as qe } from "react";
3
+ import { makeStyles as St, Box as ue, Typography as ve, IconButton as _t, Button as Rt } from "@material-ui/core";
4
+ import { withStyles as At } from "@material-ui/styles";
5
+ import * as Ct from "react-dom";
6
+ function mt(e) {
7
+ var t, r, n = "";
8
+ if (typeof e == "string" || typeof e == "number")
9
+ n += e;
10
+ else if (typeof e == "object")
11
+ if (Array.isArray(e))
12
+ for (t = 0; t < e.length; t++)
13
+ e[t] && (r = mt(e[t])) && (n && (n += " "), n += r);
14
+ else
15
+ for (t in e)
16
+ e[t] && (n && (n += " "), n += t);
17
+ return n;
18
+ }
19
+ function ne() {
20
+ for (var e, t, r = 0, n = ""; r < arguments.length; )
21
+ (e = arguments[r++]) && (t = mt(e)) && (n && (n += " "), n += t);
22
+ return n;
23
+ }
24
+ function Pt(e) {
25
+ var t = e.default;
26
+ if (typeof t == "function") {
27
+ var r = function() {
28
+ return t.apply(this, arguments);
29
+ };
30
+ r.prototype = t.prototype;
31
+ } else
32
+ r = {};
33
+ return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
34
+ var o = Object.getOwnPropertyDescriptor(e, n);
35
+ Object.defineProperty(r, n, o.get ? o : {
36
+ enumerable: !0,
37
+ get: function() {
38
+ return e[n];
39
+ }
40
+ });
41
+ }), r;
42
+ }
43
+ var We = {}, vt = { exports: {} };
44
+ (function(e) {
45
+ function t(r) {
46
+ return r && r.__esModule ? r : {
47
+ default: r
48
+ };
49
+ }
50
+ e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
51
+ })(vt);
52
+ var gt = { exports: {} }, ht = { exports: {} };
53
+ (function(e) {
54
+ function t(r) {
55
+ return e.exports = t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
56
+ return typeof n;
57
+ } : function(n) {
58
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
59
+ }, e.exports.__esModule = !0, e.exports.default = e.exports, t(r);
60
+ }
61
+ e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
62
+ })(ht);
63
+ (function(e) {
64
+ var t = ht.exports.default;
65
+ function r(o) {
66
+ if (typeof WeakMap != "function")
67
+ return null;
68
+ var a = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap();
69
+ return (r = function(c) {
70
+ return c ? f : a;
71
+ })(o);
72
+ }
73
+ function n(o, a) {
74
+ if (!a && o && o.__esModule)
75
+ return o;
76
+ if (o === null || t(o) !== "object" && typeof o != "function")
77
+ return {
78
+ default: o
79
+ };
80
+ var f = r(a);
81
+ if (f && f.has(o))
82
+ return f.get(o);
83
+ var s = {}, c = Object.defineProperty && Object.getOwnPropertyDescriptor;
84
+ for (var m in o)
85
+ if (m !== "default" && Object.prototype.hasOwnProperty.call(o, m)) {
86
+ var d = c ? Object.getOwnPropertyDescriptor(o, m) : null;
87
+ d && (d.get || d.set) ? Object.defineProperty(s, m, d) : s[m] = o[m];
88
+ }
89
+ return s.default = o, f && f.set(o, s), s;
90
+ }
91
+ e.exports = n, e.exports.__esModule = !0, e.exports.default = e.exports;
92
+ })(gt);
93
+ var ge = {};
94
+ function It(e, t) {
95
+ return process.env.NODE_ENV === "production" ? function() {
96
+ return null;
97
+ } : function() {
98
+ return e.apply(void 0, arguments) || t.apply(void 0, arguments);
99
+ };
100
+ }
101
+ function Y() {
102
+ return Y = Object.assign ? Object.assign.bind() : function(e) {
103
+ for (var t = 1; t < arguments.length; t++) {
104
+ var r = arguments[t];
105
+ for (var n in r)
106
+ Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
14
107
  }
15
- return a;
16
- };
17
- import * as React$2 from "react";
18
- import React__default, { useRef, useState, useEffect } from "react";
19
- import { makeStyles, Box, Typography, IconButton, Button } from "@material-ui/core";
20
- import { withStyles as withStyles$1 } from "@material-ui/styles";
21
- import * as ReactDOM from "react-dom";
22
- function toVal(mix) {
23
- var k, y, str = "";
24
- if (typeof mix === "string" || typeof mix === "number") {
25
- str += mix;
26
- } else if (typeof mix === "object") {
27
- if (Array.isArray(mix)) {
28
- for (k = 0; k < mix.length; k++) {
29
- if (mix[k]) {
30
- if (y = toVal(mix[k])) {
31
- str && (str += " ");
32
- str += y;
108
+ return e;
109
+ }, Y.apply(this, arguments);
110
+ }
111
+ function $e(e) {
112
+ return $e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
113
+ return typeof t;
114
+ } : function(t) {
115
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
116
+ }, $e(e);
117
+ }
118
+ function he(e) {
119
+ return e && $e(e) === "object" && e.constructor === Object;
120
+ }
121
+ function oe(e, t) {
122
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
123
+ clone: !0
124
+ }, n = r.clone ? Y({}, e) : e;
125
+ return he(e) && he(t) && Object.keys(t).forEach(function(o) {
126
+ o !== "__proto__" && (he(t[o]) && o in e ? n[o] = oe(e[o], t[o], r) : n[o] = t[o]);
127
+ }), n;
128
+ }
129
+ var k = { exports: {} }, ye = { exports: {} }, I = {};
130
+ /** @license React v16.13.1
131
+ * react-is.production.min.js
132
+ *
133
+ * Copyright (c) Facebook, Inc. and its affiliates.
134
+ *
135
+ * This source code is licensed under the MIT license found in the
136
+ * LICENSE file in the root directory of this source tree.
137
+ */
138
+ var Le;
139
+ function Mt() {
140
+ if (Le)
141
+ return I;
142
+ Le = 1;
143
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, q = e ? Symbol.for("react.scope") : 60119;
144
+ function j(u) {
145
+ if (typeof u == "object" && u !== null) {
146
+ var D = u.$$typeof;
147
+ switch (D) {
148
+ case t:
149
+ switch (u = u.type, u) {
150
+ case c:
151
+ case m:
152
+ case n:
153
+ case a:
154
+ case o:
155
+ case g:
156
+ return u;
157
+ default:
158
+ switch (u = u && u.$$typeof, u) {
159
+ case s:
160
+ case d:
161
+ case h:
162
+ case v:
163
+ case f:
164
+ return u;
165
+ default:
166
+ return D;
167
+ }
33
168
  }
34
- }
169
+ case r:
170
+ return D;
35
171
  }
36
- } else {
37
- for (k in mix) {
38
- if (mix[k]) {
39
- str && (str += " ");
40
- str += k;
172
+ }
173
+ }
174
+ function P(u) {
175
+ return j(u) === m;
176
+ }
177
+ return I.AsyncMode = c, I.ConcurrentMode = m, I.ContextConsumer = s, I.ContextProvider = f, I.Element = t, I.ForwardRef = d, I.Fragment = n, I.Lazy = h, I.Memo = v, I.Portal = r, I.Profiler = a, I.StrictMode = o, I.Suspense = g, I.isAsyncMode = function(u) {
178
+ return P(u) || j(u) === c;
179
+ }, I.isConcurrentMode = P, I.isContextConsumer = function(u) {
180
+ return j(u) === s;
181
+ }, I.isContextProvider = function(u) {
182
+ return j(u) === f;
183
+ }, I.isElement = function(u) {
184
+ return typeof u == "object" && u !== null && u.$$typeof === t;
185
+ }, I.isForwardRef = function(u) {
186
+ return j(u) === d;
187
+ }, I.isFragment = function(u) {
188
+ return j(u) === n;
189
+ }, I.isLazy = function(u) {
190
+ return j(u) === h;
191
+ }, I.isMemo = function(u) {
192
+ return j(u) === v;
193
+ }, I.isPortal = function(u) {
194
+ return j(u) === r;
195
+ }, I.isProfiler = function(u) {
196
+ return j(u) === a;
197
+ }, I.isStrictMode = function(u) {
198
+ return j(u) === o;
199
+ }, I.isSuspense = function(u) {
200
+ return j(u) === g;
201
+ }, I.isValidElementType = function(u) {
202
+ return typeof u == "string" || typeof u == "function" || u === n || u === m || u === a || u === o || u === g || u === b || typeof u == "object" && u !== null && (u.$$typeof === h || u.$$typeof === v || u.$$typeof === f || u.$$typeof === s || u.$$typeof === d || u.$$typeof === x || u.$$typeof === $ || u.$$typeof === q || u.$$typeof === y);
203
+ }, I.typeOf = j, I;
204
+ }
205
+ var M = {};
206
+ /** @license React v16.13.1
207
+ * react-is.development.js
208
+ *
209
+ * Copyright (c) Facebook, Inc. and its affiliates.
210
+ *
211
+ * This source code is licensed under the MIT license found in the
212
+ * LICENSE file in the root directory of this source tree.
213
+ */
214
+ var Ye;
215
+ function $t() {
216
+ return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
217
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, q = e ? Symbol.for("react.scope") : 60119;
218
+ function j(l) {
219
+ return typeof l == "string" || typeof l == "function" || l === n || l === m || l === a || l === o || l === g || l === b || typeof l == "object" && l !== null && (l.$$typeof === h || l.$$typeof === v || l.$$typeof === f || l.$$typeof === s || l.$$typeof === d || l.$$typeof === x || l.$$typeof === $ || l.$$typeof === q || l.$$typeof === y);
220
+ }
221
+ function P(l) {
222
+ if (typeof l == "object" && l !== null) {
223
+ var X = l.$$typeof;
224
+ switch (X) {
225
+ case t:
226
+ var ie = l.type;
227
+ switch (ie) {
228
+ case c:
229
+ case m:
230
+ case n:
231
+ case a:
232
+ case o:
233
+ case g:
234
+ return ie;
235
+ default:
236
+ var Ue = ie && ie.$$typeof;
237
+ switch (Ue) {
238
+ case s:
239
+ case d:
240
+ case h:
241
+ case v:
242
+ case f:
243
+ return Ue;
244
+ default:
245
+ return X;
246
+ }
247
+ }
248
+ case r:
249
+ return X;
41
250
  }
42
251
  }
43
252
  }
253
+ var u = c, D = m, B = s, z = f, _ = t, U = d, H = n, W = h, K = v, G = r, Q = a, J = o, ee = g, ae = !1;
254
+ function pe(l) {
255
+ return ae || (ae = !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.")), i(l) || P(l) === c;
256
+ }
257
+ function i(l) {
258
+ return P(l) === m;
259
+ }
260
+ function p(l) {
261
+ return P(l) === s;
262
+ }
263
+ function S(l) {
264
+ return P(l) === f;
265
+ }
266
+ function T(l) {
267
+ return typeof l == "object" && l !== null && l.$$typeof === t;
268
+ }
269
+ function E(l) {
270
+ return P(l) === d;
271
+ }
272
+ function R(l) {
273
+ return P(l) === n;
274
+ }
275
+ function O(l) {
276
+ return P(l) === h;
277
+ }
278
+ function w(l) {
279
+ return P(l) === v;
280
+ }
281
+ function A(l) {
282
+ return P(l) === r;
283
+ }
284
+ function N(l) {
285
+ return P(l) === a;
286
+ }
287
+ function C(l) {
288
+ return P(l) === o;
289
+ }
290
+ function L(l) {
291
+ return P(l) === g;
292
+ }
293
+ M.AsyncMode = u, M.ConcurrentMode = D, M.ContextConsumer = B, M.ContextProvider = z, M.Element = _, M.ForwardRef = U, M.Fragment = H, M.Lazy = W, M.Memo = K, M.Portal = G, M.Profiler = Q, M.StrictMode = J, M.Suspense = ee, M.isAsyncMode = pe, M.isConcurrentMode = i, M.isContextConsumer = p, M.isContextProvider = S, M.isElement = T, M.isForwardRef = E, M.isFragment = R, M.isLazy = O, M.isMemo = w, M.isPortal = A, M.isProfiler = N, M.isStrictMode = C, M.isSuspense = L, M.isValidElementType = j, M.typeOf = P;
294
+ }()), M;
295
+ }
296
+ var Be;
297
+ function yt() {
298
+ return Be || (Be = 1, function(e) {
299
+ process.env.NODE_ENV === "production" ? e.exports = Mt() : e.exports = $t();
300
+ }(ye)), ye.exports;
301
+ }
302
+ /*
303
+ object-assign
304
+ (c) Sindre Sorhus
305
+ @license MIT
306
+ */
307
+ var be, He;
308
+ function Nt() {
309
+ if (He)
310
+ return be;
311
+ He = 1;
312
+ var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
313
+ function n(a) {
314
+ if (a == null)
315
+ throw new TypeError("Object.assign cannot be called with null or undefined");
316
+ return Object(a);
44
317
  }
45
- return str;
46
- }
47
- function clsx() {
48
- var i = 0, tmp, x, str = "";
49
- while (i < arguments.length) {
50
- if (tmp = arguments[i++]) {
51
- if (x = toVal(tmp)) {
52
- str && (str += " ");
53
- str += x;
54
- }
318
+ function o() {
319
+ try {
320
+ if (!Object.assign)
321
+ return !1;
322
+ var a = new String("abc");
323
+ if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
324
+ return !1;
325
+ for (var f = {}, s = 0; s < 10; s++)
326
+ f["_" + String.fromCharCode(s)] = s;
327
+ var c = Object.getOwnPropertyNames(f).map(function(d) {
328
+ return f[d];
329
+ });
330
+ if (c.join("") !== "0123456789")
331
+ return !1;
332
+ var m = {};
333
+ return "abcdefghijklmnopqrst".split("").forEach(function(d) {
334
+ m[d] = d;
335
+ }), Object.keys(Object.assign({}, m)).join("") === "abcdefghijklmnopqrst";
336
+ } catch {
337
+ return !1;
55
338
  }
56
339
  }
57
- return str;
58
- }
59
- function getAugmentedNamespace(n) {
60
- if (n.__esModule)
61
- return n;
62
- var a = Object.defineProperty({}, "__esModule", { value: true });
63
- Object.keys(n).forEach(function(k) {
64
- var d = Object.getOwnPropertyDescriptor(n, k);
65
- Object.defineProperty(a, k, d.get ? d : {
66
- enumerable: true,
67
- get: function() {
68
- return n[k];
340
+ return be = o() ? Object.assign : function(a, f) {
341
+ for (var s, c = n(a), m, d = 1; d < arguments.length; d++) {
342
+ s = Object(arguments[d]);
343
+ for (var g in s)
344
+ t.call(s, g) && (c[g] = s[g]);
345
+ if (e) {
346
+ m = e(s);
347
+ for (var b = 0; b < m.length; b++)
348
+ r.call(s, m[b]) && (c[m[b]] = s[m[b]]);
349
+ }
350
+ }
351
+ return c;
352
+ }, be;
353
+ }
354
+ var Ee, Je;
355
+ function Fe() {
356
+ if (Je)
357
+ return Ee;
358
+ Je = 1;
359
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
360
+ return Ee = e, Ee;
361
+ }
362
+ var xe, Ke;
363
+ function bt() {
364
+ return Ke || (Ke = 1, xe = Function.call.bind(Object.prototype.hasOwnProperty)), xe;
365
+ }
366
+ var Oe, Xe;
367
+ function Dt() {
368
+ if (Xe)
369
+ return Oe;
370
+ Xe = 1;
371
+ var e = function() {
372
+ };
373
+ if (process.env.NODE_ENV !== "production") {
374
+ var t = Fe(), r = {}, n = bt();
375
+ e = function(a) {
376
+ var f = "Warning: " + a;
377
+ typeof console < "u" && console.error(f);
378
+ try {
379
+ throw new Error(f);
380
+ } catch {
69
381
  }
70
- });
71
- });
72
- return a;
73
- }
74
- var DeleteOutline = {};
75
- var interopRequireDefault = { exports: {} };
76
- (function(module) {
77
- function _interopRequireDefault2(obj) {
78
- return obj && obj.__esModule ? obj : {
79
- "default": obj
80
382
  };
81
383
  }
82
- module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
83
- })(interopRequireDefault);
84
- var interopRequireWildcard = { exports: {} };
85
- var _typeof$1 = { exports: {} };
86
- (function(module) {
87
- function _typeof2(obj) {
88
- "@babel/helpers - typeof";
89
- return module.exports = _typeof2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
90
- return typeof obj2;
91
- } : function(obj2) {
92
- return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
93
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof2(obj);
384
+ function o(a, f, s, c, m) {
385
+ if (process.env.NODE_ENV !== "production") {
386
+ for (var d in a)
387
+ if (n(a, d)) {
388
+ var g;
389
+ try {
390
+ if (typeof a[d] != "function") {
391
+ var b = Error((c || "React class") + ": " + s + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
+ throw b.name = "Invariant Violation", b;
393
+ }
394
+ g = a[d](f, d, c, s, null, t);
395
+ } catch (h) {
396
+ g = h;
397
+ }
398
+ if (g && !(g instanceof Error) && e((c || "React class") + ": type specification of " + s + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), g instanceof Error && !(g.message in r)) {
399
+ r[g.message] = !0;
400
+ var v = m ? m() : "";
401
+ e("Failed " + s + " type: " + g.message + (v ?? ""));
402
+ }
403
+ }
404
+ }
94
405
  }
95
- module.exports = _typeof2, module.exports.__esModule = true, module.exports["default"] = module.exports;
96
- })(_typeof$1);
97
- (function(module) {
98
- var _typeof2 = _typeof$1.exports["default"];
99
- function _getRequireWildcardCache(nodeInterop) {
100
- if (typeof WeakMap !== "function")
101
- return null;
102
- var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
103
- var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
104
- return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
105
- return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
106
- })(nodeInterop);
406
+ return o.resetWarningCache = function() {
407
+ process.env.NODE_ENV !== "production" && (r = {});
408
+ }, Oe = o, Oe;
409
+ }
410
+ var Te, Ge;
411
+ function jt() {
412
+ if (Ge)
413
+ return Te;
414
+ Ge = 1;
415
+ var e = yt(), t = Nt(), r = Fe(), n = bt(), o = Dt(), a = function() {
416
+ };
417
+ process.env.NODE_ENV !== "production" && (a = function(s) {
418
+ var c = "Warning: " + s;
419
+ typeof console < "u" && console.error(c);
420
+ try {
421
+ throw new Error(c);
422
+ } catch {
423
+ }
424
+ });
425
+ function f() {
426
+ return null;
107
427
  }
108
- function _interopRequireWildcard2(obj, nodeInterop) {
109
- if (!nodeInterop && obj && obj.__esModule) {
110
- return obj;
428
+ return Te = function(s, c) {
429
+ var m = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
430
+ function g(i) {
431
+ var p = i && (m && i[m] || i[d]);
432
+ if (typeof p == "function")
433
+ return p;
111
434
  }
112
- if (obj === null || _typeof2(obj) !== "object" && typeof obj !== "function") {
113
- return {
114
- "default": obj
115
- };
435
+ var b = "<<anonymous>>", v = {
436
+ array: $("array"),
437
+ bigint: $("bigint"),
438
+ bool: $("boolean"),
439
+ func: $("function"),
440
+ number: $("number"),
441
+ object: $("object"),
442
+ string: $("string"),
443
+ symbol: $("symbol"),
444
+ any: q(),
445
+ arrayOf: j,
446
+ element: P(),
447
+ elementType: u(),
448
+ instanceOf: D,
449
+ node: U(),
450
+ objectOf: z,
451
+ oneOf: B,
452
+ oneOfType: _,
453
+ shape: W,
454
+ exact: K
455
+ };
456
+ function h(i, p) {
457
+ return i === p ? i !== 0 || 1 / i === 1 / p : i !== i && p !== p;
458
+ }
459
+ function y(i, p) {
460
+ this.message = i, this.data = p && typeof p == "object" ? p : {}, this.stack = "";
116
461
  }
117
- var cache = _getRequireWildcardCache(nodeInterop);
118
- if (cache && cache.has(obj)) {
119
- return cache.get(obj);
462
+ y.prototype = Error.prototype;
463
+ function x(i) {
464
+ if (process.env.NODE_ENV !== "production")
465
+ var p = {}, S = 0;
466
+ function T(R, O, w, A, N, C, L) {
467
+ if (A = A || b, C = C || w, L !== r) {
468
+ if (c) {
469
+ var l = new Error("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");
470
+ throw l.name = "Invariant Violation", l;
471
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
472
+ var X = A + ":" + w;
473
+ !p[X] && S < 3 && (a("You are manually calling a React.PropTypes validation function for the `" + C + "` 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."), p[X] = !0, S++);
474
+ }
475
+ }
476
+ return O[w] == null ? R ? O[w] === null ? new y("The " + N + " `" + C + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new y("The " + N + " `" + C + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : i(O, w, A, N, C);
477
+ }
478
+ var E = T.bind(null, !1);
479
+ return E.isRequired = T.bind(null, !0), E;
120
480
  }
121
- var newObj = {};
122
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
123
- for (var key in obj) {
124
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
125
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
126
- if (desc && (desc.get || desc.set)) {
127
- Object.defineProperty(newObj, key, desc);
128
- } else {
129
- newObj[key] = obj[key];
481
+ function $(i) {
482
+ function p(S, T, E, R, O, w) {
483
+ var A = S[T], N = J(A);
484
+ if (N !== i) {
485
+ var C = ee(A);
486
+ return new y("Invalid " + R + " `" + O + "` of type " + ("`" + C + "` supplied to `" + E + "`, expected ") + ("`" + i + "`."), { expectedType: i });
130
487
  }
488
+ return null;
131
489
  }
490
+ return x(p);
132
491
  }
133
- newObj["default"] = obj;
134
- if (cache) {
135
- cache.set(obj, newObj);
492
+ function q() {
493
+ return x(f);
136
494
  }
137
- return newObj;
138
- }
139
- module.exports = _interopRequireWildcard2, module.exports.__esModule = true, module.exports["default"] = module.exports;
140
- })(interopRequireWildcard);
141
- var createSvgIcon$1 = {};
142
- function _extends() {
143
- _extends = Object.assign || function(target) {
144
- for (var i = 1; i < arguments.length; i++) {
145
- var source = arguments[i];
146
- for (var key in source) {
147
- if (Object.prototype.hasOwnProperty.call(source, key)) {
148
- target[key] = source[key];
495
+ function j(i) {
496
+ function p(S, T, E, R, O) {
497
+ if (typeof i != "function")
498
+ return new y("Property `" + O + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
499
+ var w = S[T];
500
+ if (!Array.isArray(w)) {
501
+ var A = J(w);
502
+ return new y("Invalid " + R + " `" + O + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an array."));
149
503
  }
504
+ for (var N = 0; N < w.length; N++) {
505
+ var C = i(w, N, E, R, O + "[" + N + "]", r);
506
+ if (C instanceof Error)
507
+ return C;
508
+ }
509
+ return null;
150
510
  }
511
+ return x(p);
151
512
  }
152
- return target;
153
- };
154
- return _extends.apply(this, arguments);
155
- }
156
- function _typeof(obj) {
157
- "@babel/helpers - typeof";
158
- return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
159
- return typeof obj2;
160
- } : function(obj2) {
161
- return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
162
- }, _typeof(obj);
163
- }
164
- function isPlainObject(item) {
165
- return item && _typeof(item) === "object" && item.constructor === Object;
166
- }
167
- function deepmerge(target, source) {
168
- var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
169
- clone: true
170
- };
171
- var output = options.clone ? _extends({}, target) : target;
172
- if (isPlainObject(target) && isPlainObject(source)) {
173
- Object.keys(source).forEach(function(key) {
174
- if (key === "__proto__") {
175
- return;
513
+ function P() {
514
+ function i(p, S, T, E, R) {
515
+ var O = p[S];
516
+ if (!s(O)) {
517
+ var w = J(O);
518
+ return new y("Invalid " + E + " `" + R + "` of type " + ("`" + w + "` supplied to `" + T + "`, expected a single ReactElement."));
519
+ }
520
+ return null;
176
521
  }
177
- if (isPlainObject(source[key]) && key in target) {
178
- output[key] = deepmerge(target[key], source[key], options);
179
- } else {
180
- output[key] = source[key];
522
+ return x(i);
523
+ }
524
+ function u() {
525
+ function i(p, S, T, E, R) {
526
+ var O = p[S];
527
+ if (!e.isValidElementType(O)) {
528
+ var w = J(O);
529
+ return new y("Invalid " + E + " `" + R + "` of type " + ("`" + w + "` supplied to `" + T + "`, expected a single ReactElement type."));
530
+ }
531
+ return null;
181
532
  }
182
- });
183
- }
184
- return output;
185
- }
186
- function _defineProperty(obj, key, value) {
187
- if (key in obj) {
188
- Object.defineProperty(obj, key, {
189
- value,
190
- enumerable: true,
191
- configurable: true,
192
- writable: true
193
- });
194
- } else {
195
- obj[key] = value;
196
- }
197
- return obj;
198
- }
199
- function formatMuiErrorMessage(code) {
200
- var url = "https://material-ui.com/production-error/?code=" + code;
201
- for (var i = 1; i < arguments.length; i += 1) {
202
- url += "&args[]=" + encodeURIComponent(arguments[i]);
203
- }
204
- return "Minified Material-UI error #" + code + "; visit " + url + " for the full message.";
533
+ return x(i);
534
+ }
535
+ function D(i) {
536
+ function p(S, T, E, R, O) {
537
+ if (!(S[T] instanceof i)) {
538
+ var w = i.name || b, A = pe(S[T]);
539
+ return new y("Invalid " + R + " `" + O + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected ") + ("instance of `" + w + "`."));
540
+ }
541
+ return null;
542
+ }
543
+ return x(p);
544
+ }
545
+ function B(i) {
546
+ if (!Array.isArray(i))
547
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a("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]).") : a("Invalid argument supplied to oneOf, expected an array.")), f;
548
+ function p(S, T, E, R, O) {
549
+ for (var w = S[T], A = 0; A < i.length; A++)
550
+ if (h(w, i[A]))
551
+ return null;
552
+ var N = JSON.stringify(i, function(L, l) {
553
+ var X = ee(l);
554
+ return X === "symbol" ? String(l) : l;
555
+ });
556
+ return new y("Invalid " + R + " `" + O + "` of value `" + String(w) + "` " + ("supplied to `" + E + "`, expected one of " + N + "."));
557
+ }
558
+ return x(p);
559
+ }
560
+ function z(i) {
561
+ function p(S, T, E, R, O) {
562
+ if (typeof i != "function")
563
+ return new y("Property `" + O + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
564
+ var w = S[T], A = J(w);
565
+ if (A !== "object")
566
+ return new y("Invalid " + R + " `" + O + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an object."));
567
+ for (var N in w)
568
+ if (n(w, N)) {
569
+ var C = i(w, N, E, R, O + "." + N, r);
570
+ if (C instanceof Error)
571
+ return C;
572
+ }
573
+ return null;
574
+ }
575
+ return x(p);
576
+ }
577
+ function _(i) {
578
+ if (!Array.isArray(i))
579
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), f;
580
+ for (var p = 0; p < i.length; p++) {
581
+ var S = i[p];
582
+ if (typeof S != "function")
583
+ return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(S) + " at index " + p + "."), f;
584
+ }
585
+ function T(E, R, O, w, A) {
586
+ for (var N = [], C = 0; C < i.length; C++) {
587
+ var L = i[C], l = L(E, R, O, w, A, r);
588
+ if (l == null)
589
+ return null;
590
+ l.data && n(l.data, "expectedType") && N.push(l.data.expectedType);
591
+ }
592
+ var X = N.length > 0 ? ", expected one of type [" + N.join(", ") + "]" : "";
593
+ return new y("Invalid " + w + " `" + A + "` supplied to " + ("`" + O + "`" + X + "."));
594
+ }
595
+ return x(T);
596
+ }
597
+ function U() {
598
+ function i(p, S, T, E, R) {
599
+ return G(p[S]) ? null : new y("Invalid " + E + " `" + R + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
600
+ }
601
+ return x(i);
602
+ }
603
+ function H(i, p, S, T, E) {
604
+ return new y((i || "React class") + ": " + p + " type `" + S + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`.");
605
+ }
606
+ function W(i) {
607
+ function p(S, T, E, R, O) {
608
+ var w = S[T], A = J(w);
609
+ if (A !== "object")
610
+ return new y("Invalid " + R + " `" + O + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
611
+ for (var N in i) {
612
+ var C = i[N];
613
+ if (typeof C != "function")
614
+ return H(E, R, O, N, ee(C));
615
+ var L = C(w, N, E, R, O + "." + N, r);
616
+ if (L)
617
+ return L;
618
+ }
619
+ return null;
620
+ }
621
+ return x(p);
622
+ }
623
+ function K(i) {
624
+ function p(S, T, E, R, O) {
625
+ var w = S[T], A = J(w);
626
+ if (A !== "object")
627
+ return new y("Invalid " + R + " `" + O + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
628
+ var N = t({}, S[T], i);
629
+ for (var C in N) {
630
+ var L = i[C];
631
+ if (n(i, C) && typeof L != "function")
632
+ return H(E, R, O, C, ee(L));
633
+ if (!L)
634
+ return new y("Invalid " + R + " `" + O + "` key `" + C + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(S[T], null, " ") + `
635
+ Valid keys: ` + JSON.stringify(Object.keys(i), null, " "));
636
+ var l = L(w, C, E, R, O + "." + C, r);
637
+ if (l)
638
+ return l;
639
+ }
640
+ return null;
641
+ }
642
+ return x(p);
643
+ }
644
+ function G(i) {
645
+ switch (typeof i) {
646
+ case "number":
647
+ case "string":
648
+ case "undefined":
649
+ return !0;
650
+ case "boolean":
651
+ return !i;
652
+ case "object":
653
+ if (Array.isArray(i))
654
+ return i.every(G);
655
+ if (i === null || s(i))
656
+ return !0;
657
+ var p = g(i);
658
+ if (p) {
659
+ var S = p.call(i), T;
660
+ if (p !== i.entries) {
661
+ for (; !(T = S.next()).done; )
662
+ if (!G(T.value))
663
+ return !1;
664
+ } else
665
+ for (; !(T = S.next()).done; ) {
666
+ var E = T.value;
667
+ if (E && !G(E[1]))
668
+ return !1;
669
+ }
670
+ } else
671
+ return !1;
672
+ return !0;
673
+ default:
674
+ return !1;
675
+ }
676
+ }
677
+ function Q(i, p) {
678
+ return i === "symbol" ? !0 : p ? p["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && p instanceof Symbol : !1;
679
+ }
680
+ function J(i) {
681
+ var p = typeof i;
682
+ return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : Q(p, i) ? "symbol" : p;
683
+ }
684
+ function ee(i) {
685
+ if (typeof i > "u" || i === null)
686
+ return "" + i;
687
+ var p = J(i);
688
+ if (p === "object") {
689
+ if (i instanceof Date)
690
+ return "date";
691
+ if (i instanceof RegExp)
692
+ return "regexp";
693
+ }
694
+ return p;
695
+ }
696
+ function ae(i) {
697
+ var p = ee(i);
698
+ switch (p) {
699
+ case "array":
700
+ case "object":
701
+ return "an " + p;
702
+ case "boolean":
703
+ case "date":
704
+ case "regexp":
705
+ return "a " + p;
706
+ default:
707
+ return p;
708
+ }
709
+ }
710
+ function pe(i) {
711
+ return !i.constructor || !i.constructor.name ? b : i.constructor.name;
712
+ }
713
+ return v.checkPropTypes = o, v.resetWarningCache = o.resetWarningCache, v.PropTypes = v, v;
714
+ }, Te;
205
715
  }
206
- function capitalize(string) {
207
- if (typeof string !== "string") {
208
- throw new Error(formatMuiErrorMessage(7));
716
+ var we, Ze;
717
+ function Wt() {
718
+ if (Ze)
719
+ return we;
720
+ Ze = 1;
721
+ var e = Fe();
722
+ function t() {
209
723
  }
210
- return string.charAt(0).toUpperCase() + string.slice(1);
211
- }
212
- function createChainedFunction() {
213
- for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
214
- funcs[_key] = arguments[_key];
724
+ function r() {
215
725
  }
216
- return funcs.reduce(function(acc, func) {
217
- if (func == null) {
218
- return acc;
219
- }
220
- return function chainedFunction() {
221
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
222
- args[_key2] = arguments[_key2];
726
+ return r.resetWarningCache = t, we = function() {
727
+ function n(f, s, c, m, d, g) {
728
+ if (g !== e) {
729
+ var b = new Error("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");
730
+ throw b.name = "Invariant Violation", b;
223
731
  }
224
- acc.apply(this, args);
225
- func.apply(this, args);
732
+ }
733
+ n.isRequired = n;
734
+ function o() {
735
+ return n;
736
+ }
737
+ var a = {
738
+ array: n,
739
+ bigint: n,
740
+ bool: n,
741
+ func: n,
742
+ number: n,
743
+ object: n,
744
+ string: n,
745
+ symbol: n,
746
+ any: n,
747
+ arrayOf: o,
748
+ element: n,
749
+ elementType: n,
750
+ instanceOf: o,
751
+ node: n,
752
+ objectOf: o,
753
+ oneOf: o,
754
+ oneOfType: o,
755
+ shape: o,
756
+ exact: o,
757
+ checkPropTypes: r,
758
+ resetWarningCache: t
226
759
  };
760
+ return a.PropTypes = a, a;
761
+ }, we;
762
+ }
763
+ if (process.env.NODE_ENV !== "production") {
764
+ var Ft = yt(), zt = !0;
765
+ k.exports = jt()(Ft.isElement, zt);
766
+ } else
767
+ k.exports = Wt()();
768
+ function ce(e, t, r) {
769
+ return t in e ? Object.defineProperty(e, t, {
770
+ value: r,
771
+ enumerable: !0,
772
+ configurable: !0,
773
+ writable: !0
774
+ }) : e[t] = r, e;
775
+ }
776
+ function fe(e) {
777
+ for (var t = "https://mui.com/production-error/?code=" + e, r = 1; r < arguments.length; r += 1)
778
+ t += "&args[]=" + encodeURIComponent(arguments[r]);
779
+ return "Minified Material-UI error #" + e + "; visit " + t + " for the full message.";
780
+ }
781
+ function Ne(e) {
782
+ if (typeof e != "string")
783
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: capitalize(string) expects a string argument." : fe(7));
784
+ return e.charAt(0).toUpperCase() + e.slice(1);
785
+ }
786
+ function Vt() {
787
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
788
+ t[r] = arguments[r];
789
+ return t.reduce(function(n, o) {
790
+ return o == null ? n : (process.env.NODE_ENV !== "production" && typeof o != "function" && console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null."), function() {
791
+ for (var f = arguments.length, s = new Array(f), c = 0; c < f; c++)
792
+ s[c] = arguments[c];
793
+ n.apply(this, s), o.apply(this, s);
794
+ });
227
795
  }, function() {
228
796
  });
229
797
  }
230
- function _objectWithoutPropertiesLoose(source, excluded) {
231
- if (source == null)
798
+ function kt(e, t) {
799
+ if (e == null)
232
800
  return {};
233
- var target = {};
234
- var sourceKeys = Object.keys(source);
235
- var key, i;
236
- for (i = 0; i < sourceKeys.length; i++) {
237
- key = sourceKeys[i];
238
- if (excluded.indexOf(key) >= 0)
239
- continue;
240
- target[key] = source[key];
241
- }
242
- return target;
801
+ var r = {}, n = Object.keys(e), o, a;
802
+ for (a = 0; a < n.length; a++)
803
+ o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
804
+ return r;
243
805
  }
244
- function _objectWithoutProperties(source, excluded) {
245
- if (source == null)
806
+ function re(e, t) {
807
+ if (e == null)
246
808
  return {};
247
- var target = _objectWithoutPropertiesLoose(source, excluded);
248
- var key, i;
809
+ var r = kt(e, t), n, o;
249
810
  if (Object.getOwnPropertySymbols) {
250
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
251
- for (i = 0; i < sourceSymbolKeys.length; i++) {
252
- key = sourceSymbolKeys[i];
253
- if (excluded.indexOf(key) >= 0)
254
- continue;
255
- if (!Object.prototype.propertyIsEnumerable.call(source, key))
256
- continue;
257
- target[key] = source[key];
258
- }
811
+ var a = Object.getOwnPropertySymbols(e);
812
+ for (o = 0; o < a.length; o++)
813
+ n = a[o], !(t.indexOf(n) >= 0) && (!Object.prototype.propertyIsEnumerable.call(e, n) || (r[n] = e[n]));
259
814
  }
260
- return target;
815
+ return r;
261
816
  }
262
- var keys = ["xs", "sm", "md", "lg", "xl"];
263
- function createBreakpoints(breakpoints) {
264
- var _breakpoints$values = breakpoints.values, values = _breakpoints$values === void 0 ? {
817
+ var Z = ["xs", "sm", "md", "lg", "xl"];
818
+ function Ut(e) {
819
+ var t = e.values, r = t === void 0 ? {
265
820
  xs: 0,
266
821
  sm: 600,
267
822
  md: 960,
268
823
  lg: 1280,
269
824
  xl: 1920
270
- } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
271
- function up(key) {
272
- var value = typeof values[key] === "number" ? values[key] : key;
273
- return "@media (min-width:".concat(value).concat(unit, ")");
825
+ } : t, n = e.unit, o = n === void 0 ? "px" : n, a = e.step, f = a === void 0 ? 5 : a, s = re(e, ["values", "unit", "step"]);
826
+ function c(h) {
827
+ var y = typeof r[h] == "number" ? r[h] : h;
828
+ return "@media (min-width:".concat(y).concat(o, ")");
274
829
  }
275
- function down(key) {
276
- var endIndex = keys.indexOf(key) + 1;
277
- var upperbound = values[keys[endIndex]];
278
- if (endIndex === keys.length) {
279
- return up("xs");
280
- }
281
- var value = typeof upperbound === "number" && endIndex > 0 ? upperbound : key;
282
- return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
830
+ function m(h) {
831
+ var y = Z.indexOf(h) + 1, x = r[Z[y]];
832
+ if (y === Z.length)
833
+ return c("xs");
834
+ var $ = typeof x == "number" && y > 0 ? x : h;
835
+ return "@media (max-width:".concat($ - f / 100).concat(o, ")");
283
836
  }
284
- function between(start, end) {
285
- var endIndex = keys.indexOf(end);
286
- if (endIndex === keys.length - 1) {
287
- return up(start);
288
- }
289
- return "@media (min-width:".concat(typeof values[start] === "number" ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === "number" ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")");
837
+ function d(h, y) {
838
+ var x = Z.indexOf(y);
839
+ return x === Z.length - 1 ? c(h) : "@media (min-width:".concat(typeof r[h] == "number" ? r[h] : h).concat(o, ") and ") + "(max-width:".concat((x !== -1 && typeof r[Z[x + 1]] == "number" ? r[Z[x + 1]] : y) - f / 100).concat(o, ")");
290
840
  }
291
- function only(key) {
292
- return between(key, key);
841
+ function g(h) {
842
+ return d(h, h);
293
843
  }
294
- function width(key) {
295
- return values[key];
844
+ var b = !1;
845
+ function v(h) {
846
+ return process.env.NODE_ENV !== "production" && (b || (b = !0, console.warn(["Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.", "Use the `theme.breakpoints.values` instead."].join(`
847
+ `)))), r[h];
296
848
  }
297
- return _extends({
298
- keys,
299
- values,
300
- up,
301
- down,
302
- between,
303
- only,
304
- width
305
- }, other);
306
- }
307
- function createMixins(breakpoints, spacing, mixins) {
308
- var _toolbar;
309
- return _extends({
310
- gutters: function gutters() {
311
- var styles3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
312
- console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n"));
313
- return _extends({
314
- paddingLeft: spacing(2),
315
- paddingRight: spacing(2)
316
- }, styles3, _defineProperty({}, breakpoints.up("sm"), _extends({
317
- paddingLeft: spacing(3),
318
- paddingRight: spacing(3)
319
- }, styles3[breakpoints.up("sm")])));
849
+ return Y({
850
+ keys: Z,
851
+ values: r,
852
+ up: c,
853
+ down: m,
854
+ between: d,
855
+ only: g,
856
+ width: v
857
+ }, s);
858
+ }
859
+ function qt(e, t, r) {
860
+ var n;
861
+ return Y({
862
+ gutters: function() {
863
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
864
+ return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", `
865
+ paddingLeft: theme.spacing(2),
866
+ paddingRight: theme.spacing(2),
867
+ [theme.breakpoints.up('sm')]: {
868
+ paddingLeft: theme.spacing(3),
869
+ paddingRight: theme.spacing(3),
870
+ },
871
+ `].join(`
872
+ `)), Y({
873
+ paddingLeft: t(2),
874
+ paddingRight: t(2)
875
+ }, a, ce({}, e.up("sm"), Y({
876
+ paddingLeft: t(3),
877
+ paddingRight: t(3)
878
+ }, a[e.up("sm")])));
320
879
  },
321
- toolbar: (_toolbar = {
880
+ toolbar: (n = {
322
881
  minHeight: 56
323
- }, _defineProperty(_toolbar, "".concat(breakpoints.up("xs"), " and (orientation: landscape)"), {
882
+ }, ce(n, "".concat(e.up("xs"), " and (orientation: landscape)"), {
324
883
  minHeight: 48
325
- }), _defineProperty(_toolbar, breakpoints.up("sm"), {
884
+ }), ce(n, e.up("sm"), {
326
885
  minHeight: 64
327
- }), _toolbar)
328
- }, mixins);
886
+ }), n)
887
+ }, r);
329
888
  }
330
- var common = {
889
+ var Lt = {
331
890
  black: "#000",
332
891
  white: "#fff"
333
892
  };
334
- var common$1 = common;
335
- var grey = {
893
+ const le = Lt;
894
+ var Yt = {
336
895
  50: "#fafafa",
337
896
  100: "#f5f5f5",
338
897
  200: "#eeeeee",
@@ -348,8 +907,8 @@ var grey = {
348
907
  A400: "#303030",
349
908
  A700: "#616161"
350
909
  };
351
- var grey$1 = grey;
352
- var indigo = {
910
+ const ze = Yt;
911
+ var Bt = {
353
912
  50: "#e8eaf6",
354
913
  100: "#c5cae9",
355
914
  200: "#9fa8da",
@@ -365,8 +924,8 @@ var indigo = {
365
924
  A400: "#3d5afe",
366
925
  A700: "#304ffe"
367
926
  };
368
- var indigo$1 = indigo;
369
- var pink = {
927
+ const Se = Bt;
928
+ var Ht = {
370
929
  50: "#fce4ec",
371
930
  100: "#f8bbd0",
372
931
  200: "#f48fb1",
@@ -382,8 +941,8 @@ var pink = {
382
941
  A400: "#f50057",
383
942
  A700: "#c51162"
384
943
  };
385
- var pink$1 = pink;
386
- var red = {
944
+ const _e = Ht;
945
+ var Jt = {
387
946
  50: "#ffebee",
388
947
  100: "#ffcdd2",
389
948
  200: "#ef9a9a",
@@ -399,8 +958,8 @@ var red = {
399
958
  A400: "#ff1744",
400
959
  A700: "#d50000"
401
960
  };
402
- var red$1 = red;
403
- var orange = {
961
+ const Re = Jt;
962
+ var Kt = {
404
963
  50: "#fff3e0",
405
964
  100: "#ffe0b2",
406
965
  200: "#ffcc80",
@@ -416,8 +975,8 @@ var orange = {
416
975
  A400: "#ff9100",
417
976
  A700: "#ff6d00"
418
977
  };
419
- var orange$1 = orange;
420
- var blue = {
978
+ const Ae = Kt;
979
+ var Xt = {
421
980
  50: "#e3f2fd",
422
981
  100: "#bbdefb",
423
982
  200: "#90caf9",
@@ -433,8 +992,8 @@ var blue = {
433
992
  A400: "#2979ff",
434
993
  A700: "#2962ff"
435
994
  };
436
- var blue$1 = blue;
437
- var green = {
995
+ const Ce = Xt;
996
+ var Gt = {
438
997
  50: "#e8f5e9",
439
998
  100: "#c8e6c9",
440
999
  200: "#a5d6a7",
@@ -450,120 +1009,81 @@ var green = {
450
1009
  A400: "#00e676",
451
1010
  A700: "#00c853"
452
1011
  };
453
- var green$1 = green;
454
- function clamp(value) {
455
- var min = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
456
- var max = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
457
- return Math.min(Math.max(min, value), max);
458
- }
459
- function hexToRgb(color) {
460
- color = color.substr(1);
461
- var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), "g");
462
- var colors = color.match(re);
463
- if (colors && colors[0].length === 1) {
464
- colors = colors.map(function(n) {
465
- return n + n;
466
- });
467
- }
468
- return colors ? "rgb".concat(colors.length === 4 ? "a" : "", "(").concat(colors.map(function(n, index) {
469
- return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3;
1012
+ const Pe = Gt;
1013
+ function Et(e) {
1014
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
1015
+ return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error("Material-UI: The value provided ".concat(e, " is out of range [").concat(t, ", ").concat(r, "].")), Math.min(Math.max(t, e), r);
1016
+ }
1017
+ function Zt(e) {
1018
+ e = e.substr(1);
1019
+ var t = new RegExp(".{1,".concat(e.length >= 6 ? 2 : 1, "}"), "g"), r = e.match(t);
1020
+ return r && r[0].length === 1 && (r = r.map(function(n) {
1021
+ return n + n;
1022
+ })), r ? "rgb".concat(r.length === 4 ? "a" : "", "(").concat(r.map(function(n, o) {
1023
+ return o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3;
470
1024
  }).join(", "), ")") : "";
471
1025
  }
472
- function hslToRgb(color) {
473
- color = decomposeColor(color);
474
- var _color = color, values = _color.values;
475
- var h = values[0];
476
- var s = values[1] / 100;
477
- var l = values[2] / 100;
478
- var a = s * Math.min(l, 1 - l);
479
- var f = function f2(n) {
480
- var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (n + h / 30) % 12;
481
- return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
482
- };
483
- var type = "rgb";
484
- var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
485
- if (color.type === "hsla") {
486
- type += "a";
487
- rgb.push(values[3]);
488
- }
489
- return recomposeColor({
490
- type,
491
- values: rgb
1026
+ function Qt(e) {
1027
+ e = te(e);
1028
+ var t = e, r = t.values, n = r[0], o = r[1] / 100, a = r[2] / 100, f = o * Math.min(a, 1 - a), s = function(g) {
1029
+ var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (g + n / 30) % 12;
1030
+ return a - f * Math.max(Math.min(b - 3, 9 - b, 1), -1);
1031
+ }, c = "rgb", m = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
1032
+ return e.type === "hsla" && (c += "a", m.push(r[3])), Ve({
1033
+ type: c,
1034
+ values: m
492
1035
  });
493
1036
  }
494
- function decomposeColor(color) {
495
- if (color.type) {
496
- return color;
497
- }
498
- if (color.charAt(0) === "#") {
499
- return decomposeColor(hexToRgb(color));
500
- }
501
- var marker = color.indexOf("(");
502
- var type = color.substring(0, marker);
503
- if (["rgb", "rgba", "hsl", "hsla"].indexOf(type) === -1) {
504
- throw new Error(formatMuiErrorMessage(3, color));
505
- }
506
- var values = color.substring(marker + 1, color.length - 1).split(",");
507
- values = values.map(function(value) {
508
- return parseFloat(value);
509
- });
510
- return {
511
- type,
512
- values
1037
+ function te(e) {
1038
+ if (e.type)
1039
+ return e;
1040
+ if (e.charAt(0) === "#")
1041
+ return te(Zt(e));
1042
+ var t = e.indexOf("("), r = e.substring(0, t);
1043
+ if (["rgb", "rgba", "hsl", "hsla"].indexOf(r) === -1)
1044
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: Unsupported `".concat(e, "` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().") : fe(3, e));
1045
+ var n = e.substring(t + 1, e.length - 1).split(",");
1046
+ return n = n.map(function(o) {
1047
+ return parseFloat(o);
1048
+ }), {
1049
+ type: r,
1050
+ values: n
513
1051
  };
514
1052
  }
515
- function recomposeColor(color) {
516
- var type = color.type;
517
- var values = color.values;
518
- if (type.indexOf("rgb") !== -1) {
519
- values = values.map(function(n, i) {
520
- return i < 3 ? parseInt(n, 10) : n;
521
- });
522
- } else if (type.indexOf("hsl") !== -1) {
523
- values[1] = "".concat(values[1], "%");
524
- values[2] = "".concat(values[2], "%");
525
- }
526
- return "".concat(type, "(").concat(values.join(", "), ")");
527
- }
528
- function getContrastRatio(foreground, background) {
529
- var lumA = getLuminance(foreground);
530
- var lumB = getLuminance(background);
531
- return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
532
- }
533
- function getLuminance(color) {
534
- color = decomposeColor(color);
535
- var rgb = color.type === "hsl" ? decomposeColor(hslToRgb(color)).values : color.values;
536
- rgb = rgb.map(function(val) {
537
- val /= 255;
538
- return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
539
- });
540
- return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
541
- }
542
- function darken(color, coefficient) {
543
- color = decomposeColor(color);
544
- coefficient = clamp(coefficient);
545
- if (color.type.indexOf("hsl") !== -1) {
546
- color.values[2] *= 1 - coefficient;
547
- } else if (color.type.indexOf("rgb") !== -1) {
548
- for (var i = 0; i < 3; i += 1) {
549
- color.values[i] *= 1 - coefficient;
550
- }
551
- }
552
- return recomposeColor(color);
553
- }
554
- function lighten(color, coefficient) {
555
- color = decomposeColor(color);
556
- coefficient = clamp(coefficient);
557
- if (color.type.indexOf("hsl") !== -1) {
558
- color.values[2] += (100 - color.values[2]) * coefficient;
559
- } else if (color.type.indexOf("rgb") !== -1) {
560
- for (var i = 0; i < 3; i += 1) {
561
- color.values[i] += (255 - color.values[i]) * coefficient;
562
- }
563
- }
564
- return recomposeColor(color);
1053
+ function Ve(e) {
1054
+ var t = e.type, r = e.values;
1055
+ return t.indexOf("rgb") !== -1 ? r = r.map(function(n, o) {
1056
+ return o < 3 ? parseInt(n, 10) : n;
1057
+ }) : t.indexOf("hsl") !== -1 && (r[1] = "".concat(r[1], "%"), r[2] = "".concat(r[2], "%")), "".concat(t, "(").concat(r.join(", "), ")");
1058
+ }
1059
+ function Qe(e, t) {
1060
+ var r = et(e), n = et(t);
1061
+ return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
1062
+ }
1063
+ function et(e) {
1064
+ e = te(e);
1065
+ var t = e.type === "hsl" ? te(Qt(e)).values : e.values;
1066
+ return t = t.map(function(r) {
1067
+ return r /= 255, r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
1068
+ }), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
1069
+ }
1070
+ function er(e, t) {
1071
+ if (e = te(e), t = Et(t), e.type.indexOf("hsl") !== -1)
1072
+ e.values[2] *= 1 - t;
1073
+ else if (e.type.indexOf("rgb") !== -1)
1074
+ for (var r = 0; r < 3; r += 1)
1075
+ e.values[r] *= 1 - t;
1076
+ return Ve(e);
565
1077
  }
566
- var light = {
1078
+ function tr(e, t) {
1079
+ if (e = te(e), t = Et(t), e.type.indexOf("hsl") !== -1)
1080
+ e.values[2] += (100 - e.values[2]) * t;
1081
+ else if (e.type.indexOf("rgb") !== -1)
1082
+ for (var r = 0; r < 3; r += 1)
1083
+ e.values[r] += (255 - e.values[r]) * t;
1084
+ return Ve(e);
1085
+ }
1086
+ var tt = {
567
1087
  text: {
568
1088
  primary: "rgba(0, 0, 0, 0.87)",
569
1089
  secondary: "rgba(0, 0, 0, 0.54)",
@@ -572,8 +1092,8 @@ var light = {
572
1092
  },
573
1093
  divider: "rgba(0, 0, 0, 0.12)",
574
1094
  background: {
575
- paper: common$1.white,
576
- default: grey$1[50]
1095
+ paper: le.white,
1096
+ default: ze[50]
577
1097
  },
578
1098
  action: {
579
1099
  active: "rgba(0, 0, 0, 0.54)",
@@ -588,10 +1108,9 @@ var light = {
588
1108
  focusOpacity: 0.12,
589
1109
  activatedOpacity: 0.12
590
1110
  }
591
- };
592
- var dark = {
1111
+ }, Ie = {
593
1112
  text: {
594
- primary: common$1.white,
1113
+ primary: le.white,
595
1114
  secondary: "rgba(255, 255, 255, 0.7)",
596
1115
  disabled: "rgba(255, 255, 255, 0.5)",
597
1116
  hint: "rgba(255, 255, 255, 0.5)",
@@ -599,11 +1118,11 @@ var dark = {
599
1118
  },
600
1119
  divider: "rgba(255, 255, 255, 0.12)",
601
1120
  background: {
602
- paper: grey$1[800],
1121
+ paper: ze[800],
603
1122
  default: "#303030"
604
1123
  },
605
1124
  action: {
606
- active: common$1.white,
1125
+ active: le.white,
607
1126
  hover: "rgba(255, 255, 255, 0.08)",
608
1127
  hoverOpacity: 0.08,
609
1128
  selected: "rgba(255, 255, 255, 0.16)",
@@ -616,218 +1135,197 @@ var dark = {
616
1135
  activatedOpacity: 0.24
617
1136
  }
618
1137
  };
619
- function addLightOrDark(intent, direction, shade, tonalOffset) {
620
- var tonalOffsetLight = tonalOffset.light || tonalOffset;
621
- var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;
622
- if (!intent[direction]) {
623
- if (intent.hasOwnProperty(shade)) {
624
- intent[direction] = intent[shade];
625
- } else if (direction === "light") {
626
- intent.light = lighten(intent.main, tonalOffsetLight);
627
- } else if (direction === "dark") {
628
- intent.dark = darken(intent.main, tonalOffsetDark);
629
- }
630
- }
1138
+ function rt(e, t, r, n) {
1139
+ var o = n.light || n, a = n.dark || n * 1.5;
1140
+ e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = tr(e.main, o) : t === "dark" && (e.dark = er(e.main, a)));
631
1141
  }
632
- function createPalette(palette) {
633
- var _palette$primary = palette.primary, primary = _palette$primary === void 0 ? {
634
- light: indigo$1[300],
635
- main: indigo$1[500],
636
- dark: indigo$1[700]
637
- } : _palette$primary, _palette$secondary = palette.secondary, secondary = _palette$secondary === void 0 ? {
638
- light: pink$1.A200,
639
- main: pink$1.A400,
640
- dark: pink$1.A700
641
- } : _palette$secondary, _palette$error = palette.error, error = _palette$error === void 0 ? {
642
- light: red$1[300],
643
- main: red$1[500],
644
- dark: red$1[700]
645
- } : _palette$error, _palette$warning = palette.warning, warning = _palette$warning === void 0 ? {
646
- light: orange$1[300],
647
- main: orange$1[500],
648
- dark: orange$1[700]
649
- } : _palette$warning, _palette$info = palette.info, info = _palette$info === void 0 ? {
650
- light: blue$1[300],
651
- main: blue$1[500],
652
- dark: blue$1[700]
653
- } : _palette$info, _palette$success = palette.success, success = _palette$success === void 0 ? {
654
- light: green$1[300],
655
- main: green$1[500],
656
- dark: green$1[700]
657
- } : _palette$success, _palette$type = palette.type, type = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
658
- function getContrastText(background) {
659
- var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
660
- return contrastText;
661
- }
662
- var augmentColor = function augmentColor2(color) {
663
- var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
664
- var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
665
- var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
666
- color = _extends({}, color);
667
- if (!color.main && color[mainShade]) {
668
- color.main = color[mainShade];
669
- }
670
- if (!color.main) {
671
- throw new Error(formatMuiErrorMessage(4, mainShade));
672
- }
673
- if (typeof color.main !== "string") {
674
- throw new Error(formatMuiErrorMessage(5, JSON.stringify(color.main)));
1142
+ function rr(e) {
1143
+ var t = e.primary, r = t === void 0 ? {
1144
+ light: Se[300],
1145
+ main: Se[500],
1146
+ dark: Se[700]
1147
+ } : t, n = e.secondary, o = n === void 0 ? {
1148
+ light: _e.A200,
1149
+ main: _e.A400,
1150
+ dark: _e.A700
1151
+ } : n, a = e.error, f = a === void 0 ? {
1152
+ light: Re[300],
1153
+ main: Re[500],
1154
+ dark: Re[700]
1155
+ } : a, s = e.warning, c = s === void 0 ? {
1156
+ light: Ae[300],
1157
+ main: Ae[500],
1158
+ dark: Ae[700]
1159
+ } : s, m = e.info, d = m === void 0 ? {
1160
+ light: Ce[300],
1161
+ main: Ce[500],
1162
+ dark: Ce[700]
1163
+ } : m, g = e.success, b = g === void 0 ? {
1164
+ light: Pe[300],
1165
+ main: Pe[500],
1166
+ dark: Pe[700]
1167
+ } : g, v = e.type, h = v === void 0 ? "light" : v, y = e.contrastThreshold, x = y === void 0 ? 3 : y, $ = e.tonalOffset, q = $ === void 0 ? 0.2 : $, j = re(e, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
1168
+ function P(z) {
1169
+ var _ = Qe(z, Ie.text.primary) >= x ? Ie.text.primary : tt.text.primary;
1170
+ if (process.env.NODE_ENV !== "production") {
1171
+ var U = Qe(z, _);
1172
+ U < 3 && console.error(["Material-UI: The contrast ratio of ".concat(U, ":1 for ").concat(_, " on ").concat(z), "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(`
1173
+ `));
675
1174
  }
676
- addLightOrDark(color, "light", lightShade, tonalOffset);
677
- addLightOrDark(color, "dark", darkShade, tonalOffset);
678
- if (!color.contrastText) {
679
- color.contrastText = getContrastText(color.main);
680
- }
681
- return color;
682
- };
683
- var types = {
684
- dark,
685
- light
1175
+ return _;
1176
+ }
1177
+ var u = function(_) {
1178
+ var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500, H = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300, W = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
1179
+ if (_ = Y({}, _), !_.main && _[U] && (_.main = _[U]), !_.main)
1180
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(U, "` property.") : fe(4, U));
1181
+ if (typeof _.main != "string")
1182
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(_.main), `\` was provided instead.
1183
+
1184
+ Did you intend to use one of the following approaches?
1185
+
1186
+ import {\xA0green } from "@material-ui/core/colors";
1187
+
1188
+ const theme1 = createTheme({ palette: {
1189
+ primary: green,
1190
+ } });
1191
+
1192
+ const theme2 = createTheme({ palette: {
1193
+ primary: { main: green[500] },
1194
+ } });`) : fe(5, JSON.stringify(_.main)));
1195
+ return rt(_, "light", H, q), rt(_, "dark", W, q), _.contrastText || (_.contrastText = P(_.main)), _;
1196
+ }, D = {
1197
+ dark: Ie,
1198
+ light: tt
686
1199
  };
687
- var paletteOutput = deepmerge(_extends({
688
- common: common$1,
689
- type,
690
- primary: augmentColor(primary),
691
- secondary: augmentColor(secondary, "A400", "A200", "A700"),
692
- error: augmentColor(error),
693
- warning: augmentColor(warning),
694
- info: augmentColor(info),
695
- success: augmentColor(success),
696
- grey: grey$1,
697
- contrastThreshold,
698
- getContrastText,
699
- augmentColor,
700
- tonalOffset
701
- }, types[type]), other);
702
- return paletteOutput;
703
- }
704
- function round(value) {
705
- return Math.round(value * 1e5) / 1e5;
706
- }
707
- function roundWithDeprecationWarning(value) {
708
- return round(value);
709
- }
710
- var caseAllCaps = {
1200
+ process.env.NODE_ENV !== "production" && (D[h] || console.error("Material-UI: The palette type `".concat(h, "` is not supported.")));
1201
+ var B = oe(Y({
1202
+ common: le,
1203
+ type: h,
1204
+ primary: u(r),
1205
+ secondary: u(o, "A400", "A200", "A700"),
1206
+ error: u(f),
1207
+ warning: u(c),
1208
+ info: u(d),
1209
+ success: u(b),
1210
+ grey: ze,
1211
+ contrastThreshold: x,
1212
+ getContrastText: P,
1213
+ augmentColor: u,
1214
+ tonalOffset: q
1215
+ }, D[h]), j);
1216
+ return B;
1217
+ }
1218
+ function xt(e) {
1219
+ return Math.round(e * 1e5) / 1e5;
1220
+ }
1221
+ var nt = !1;
1222
+ function nr(e) {
1223
+ return process.env.NODE_ENV !== "production" && (nt || (console.warn(["Material-UI: The `theme.typography.round` helper is deprecated.", "Head to https://mui.com/r/migration-v4/#theme for a migration path."].join(`
1224
+ `)), nt = !0)), xt(e);
1225
+ }
1226
+ var ot = {
711
1227
  textTransform: "uppercase"
712
- };
713
- var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
714
- function createTypography(palette, typography) {
715
- var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
716
- var coef = fontSize / 14;
717
- var pxToRem = pxToRem2 || function(size) {
718
- return "".concat(size / htmlFontSize * coef, "rem");
719
- };
720
- var buildVariant = function buildVariant2(fontWeight, size, lineHeight, letterSpacing, casing) {
721
- return _extends({
722
- fontFamily,
723
- fontWeight,
724
- fontSize: pxToRem(size),
725
- lineHeight
726
- }, fontFamily === defaultFontFamily ? {
727
- letterSpacing: "".concat(round(letterSpacing / size), "em")
728
- } : {}, casing, allVariants);
1228
+ }, at = '"Roboto", "Helvetica", "Arial", sans-serif';
1229
+ function or(e, t) {
1230
+ var r = typeof t == "function" ? t(e) : t, n = r.fontFamily, o = n === void 0 ? at : n, a = r.fontSize, f = a === void 0 ? 14 : a, s = r.fontWeightLight, c = s === void 0 ? 300 : s, m = r.fontWeightRegular, d = m === void 0 ? 400 : m, g = r.fontWeightMedium, b = g === void 0 ? 500 : g, v = r.fontWeightBold, h = v === void 0 ? 700 : v, y = r.htmlFontSize, x = y === void 0 ? 16 : y, $ = r.allVariants, q = r.pxToRem, j = re(r, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
1231
+ process.env.NODE_ENV !== "production" && (typeof f != "number" && console.error("Material-UI: `fontSize` is required to be a number."), typeof x != "number" && console.error("Material-UI: `htmlFontSize` is required to be a number."));
1232
+ var P = f / 14, u = q || function(z) {
1233
+ return "".concat(z / x * P, "rem");
1234
+ }, D = function(_, U, H, W, K) {
1235
+ return Y({
1236
+ fontFamily: o,
1237
+ fontWeight: _,
1238
+ fontSize: u(U),
1239
+ lineHeight: H
1240
+ }, o === at ? {
1241
+ letterSpacing: "".concat(xt(W / U), "em")
1242
+ } : {}, K, $);
1243
+ }, B = {
1244
+ h1: D(c, 96, 1.167, -1.5),
1245
+ h2: D(c, 60, 1.2, -0.5),
1246
+ h3: D(d, 48, 1.167, 0),
1247
+ h4: D(d, 34, 1.235, 0.25),
1248
+ h5: D(d, 24, 1.334, 0),
1249
+ h6: D(b, 20, 1.6, 0.15),
1250
+ subtitle1: D(d, 16, 1.75, 0.15),
1251
+ subtitle2: D(b, 14, 1.57, 0.1),
1252
+ body1: D(d, 16, 1.5, 0.15),
1253
+ body2: D(d, 14, 1.43, 0.15),
1254
+ button: D(b, 14, 1.75, 0.4, ot),
1255
+ caption: D(d, 12, 1.66, 0.4),
1256
+ overline: D(d, 12, 2.66, 1, ot)
729
1257
  };
730
- var variants = {
731
- h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),
732
- h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),
733
- h3: buildVariant(fontWeightRegular, 48, 1.167, 0),
734
- h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),
735
- h5: buildVariant(fontWeightRegular, 24, 1.334, 0),
736
- h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),
737
- subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),
738
- subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),
739
- body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),
740
- body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),
741
- button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),
742
- caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
743
- overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
744
- };
745
- return deepmerge(_extends({
746
- htmlFontSize,
747
- pxToRem,
748
- round: roundWithDeprecationWarning,
749
- fontFamily,
750
- fontSize,
751
- fontWeightLight,
752
- fontWeightRegular,
753
- fontWeightMedium,
754
- fontWeightBold
755
- }, variants), other, {
756
- clone: false
1258
+ return oe(Y({
1259
+ htmlFontSize: x,
1260
+ pxToRem: u,
1261
+ round: nr,
1262
+ fontFamily: o,
1263
+ fontSize: f,
1264
+ fontWeightLight: c,
1265
+ fontWeightRegular: d,
1266
+ fontWeightMedium: b,
1267
+ fontWeightBold: h
1268
+ }, B), j, {
1269
+ clone: !1
757
1270
  });
758
1271
  }
759
- var shadowKeyUmbraOpacity = 0.2;
760
- var shadowKeyPenumbraOpacity = 0.14;
761
- var shadowAmbientShadowOpacity = 0.12;
762
- function createShadow() {
763
- return ["".concat(arguments.length <= 0 ? void 0 : arguments[0], "px ").concat(arguments.length <= 1 ? void 0 : arguments[1], "px ").concat(arguments.length <= 2 ? void 0 : arguments[2], "px ").concat(arguments.length <= 3 ? void 0 : arguments[3], "px rgba(0,0,0,").concat(shadowKeyUmbraOpacity, ")"), "".concat(arguments.length <= 4 ? void 0 : arguments[4], "px ").concat(arguments.length <= 5 ? void 0 : arguments[5], "px ").concat(arguments.length <= 6 ? void 0 : arguments[6], "px ").concat(arguments.length <= 7 ? void 0 : arguments[7], "px rgba(0,0,0,").concat(shadowKeyPenumbraOpacity, ")"), "".concat(arguments.length <= 8 ? void 0 : arguments[8], "px ").concat(arguments.length <= 9 ? void 0 : arguments[9], "px ").concat(arguments.length <= 10 ? void 0 : arguments[10], "px ").concat(arguments.length <= 11 ? void 0 : arguments[11], "px rgba(0,0,0,").concat(shadowAmbientShadowOpacity, ")")].join(",");
1272
+ var ar = 0.2, ir = 0.14, ur = 0.12;
1273
+ function F() {
1274
+ return ["".concat(arguments.length <= 0 ? void 0 : arguments[0], "px ").concat(arguments.length <= 1 ? void 0 : arguments[1], "px ").concat(arguments.length <= 2 ? void 0 : arguments[2], "px ").concat(arguments.length <= 3 ? void 0 : arguments[3], "px rgba(0,0,0,").concat(ar, ")"), "".concat(arguments.length <= 4 ? void 0 : arguments[4], "px ").concat(arguments.length <= 5 ? void 0 : arguments[5], "px ").concat(arguments.length <= 6 ? void 0 : arguments[6], "px ").concat(arguments.length <= 7 ? void 0 : arguments[7], "px rgba(0,0,0,").concat(ir, ")"), "".concat(arguments.length <= 8 ? void 0 : arguments[8], "px ").concat(arguments.length <= 9 ? void 0 : arguments[9], "px ").concat(arguments.length <= 10 ? void 0 : arguments[10], "px ").concat(arguments.length <= 11 ? void 0 : arguments[11], "px rgba(0,0,0,").concat(ur, ")")].join(",");
764
1275
  }
765
- var shadows = ["none", createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
766
- var shadows$1 = shadows;
767
- var shape = {
1276
+ var sr = ["none", F(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), F(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), F(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), F(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), F(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), F(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), F(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), F(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), F(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), F(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), F(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), F(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), F(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), F(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), F(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), F(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), F(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), F(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), F(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), F(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), F(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), F(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), F(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), F(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
1277
+ const cr = sr;
1278
+ var fr = {
768
1279
  borderRadius: 4
769
1280
  };
770
- var shape$1 = shape;
771
- function createUnarySpacing(theme) {
772
- var themeSpacing = theme.spacing || 8;
773
- if (typeof themeSpacing === "number") {
774
- return function(abs) {
775
- return themeSpacing * abs;
776
- };
777
- }
778
- if (Array.isArray(themeSpacing)) {
779
- return function(abs) {
780
- return themeSpacing[abs];
781
- };
782
- }
783
- if (typeof themeSpacing === "function") {
784
- return themeSpacing;
785
- }
786
- return function() {
787
- return void 0;
788
- };
789
- }
790
- function createSpacing() {
791
- var spacingInput = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 8;
792
- if (spacingInput.mui) {
793
- return spacingInput;
794
- }
795
- var transform = createUnarySpacing({
796
- spacing: spacingInput
1281
+ const lr = fr;
1282
+ var dr = process.env.NODE_ENV !== "production" ? k.exports.oneOfType([k.exports.number, k.exports.string, k.exports.object, k.exports.array]) : {};
1283
+ const pr = dr;
1284
+ var mr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY"];
1285
+ function vr(e) {
1286
+ var t = e.spacing || 8;
1287
+ return typeof t == "number" ? function(r) {
1288
+ return process.env.NODE_ENV !== "production" && typeof r != "number" && console.error("Material-UI: Expected spacing argument to be a number, got ".concat(r, ".")), t * r;
1289
+ } : Array.isArray(t) ? function(r) {
1290
+ return process.env.NODE_ENV !== "production" && r > t.length - 1 && console.error(["Material-UI: The value provided (".concat(r, ") overflows."), "The supported values are: ".concat(JSON.stringify(t), "."), "".concat(r, " > ").concat(t.length - 1, ", you need to add the missing values.")].join(`
1291
+ `)), t[r];
1292
+ } : typeof t == "function" ? t : (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `theme.spacing` value (".concat(t, ") is invalid."), "It should be a number, an array or a function."].join(`
1293
+ `)), function() {
797
1294
  });
798
- var spacing = function spacing2() {
799
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
800
- args[_key] = arguments[_key];
801
- }
802
- if (args.length === 0) {
803
- return transform(1);
804
- }
805
- if (args.length === 1) {
806
- return transform(args[0]);
807
- }
808
- return args.map(function(argument) {
809
- if (typeof argument === "string") {
810
- return argument;
811
- }
812
- var output = transform(argument);
813
- return typeof output === "number" ? "".concat(output, "px") : output;
1295
+ }
1296
+ process.env.NODE_ENV !== "production" && mr.reduce(function(e, t) {
1297
+ return e[t] = pr, e;
1298
+ }, {});
1299
+ var it;
1300
+ function gr() {
1301
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 8;
1302
+ if (e.mui)
1303
+ return e;
1304
+ var t = vr({
1305
+ spacing: e
1306
+ }), r = function() {
1307
+ for (var o = arguments.length, a = new Array(o), f = 0; f < o; f++)
1308
+ a[f] = arguments[f];
1309
+ return process.env.NODE_ENV !== "production" && (a.length <= 4 || console.error("Material-UI: Too many arguments provided, expected between 0 and 4, got ".concat(a.length))), a.length === 0 ? t(1) : a.length === 1 ? t(a[0]) : a.map(function(s) {
1310
+ if (typeof s == "string")
1311
+ return s;
1312
+ var c = t(s);
1313
+ return typeof c == "number" ? "".concat(c, "px") : c;
814
1314
  }).join(" ");
815
1315
  };
816
- Object.defineProperty(spacing, "unit", {
817
- get: function get() {
818
- return spacingInput;
1316
+ return Object.defineProperty(r, "unit", {
1317
+ get: function() {
1318
+ return process.env.NODE_ENV !== "production" && ((!it || process.env.NODE_ENV === "test") && console.error(["Material-UI: theme.spacing.unit usage has been deprecated.", "It will be removed in v5.", "You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.", "", "You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother."].join(`
1319
+ `)), it = !0), e;
819
1320
  }
820
- });
821
- spacing.mui = true;
822
- return spacing;
1321
+ }), r.mui = !0, r;
823
1322
  }
824
- var easing = {
1323
+ var ut = {
825
1324
  easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
826
1325
  easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
827
1326
  easeIn: "cubic-bezier(0.4, 0, 1, 1)",
828
1327
  sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
829
- };
830
- var duration = {
1328
+ }, st = {
831
1329
  shortest: 150,
832
1330
  shorter: 200,
833
1331
  short: 250,
@@ -836,30 +1334,34 @@ var duration = {
836
1334
  enteringScreen: 225,
837
1335
  leavingScreen: 195
838
1336
  };
839
- function formatMs(milliseconds) {
840
- return "".concat(Math.round(milliseconds), "ms");
841
- }
842
- var transitions = {
843
- easing,
844
- duration,
845
- create: function create() {
846
- var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
847
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
848
- var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay;
849
- _objectWithoutProperties(options, ["duration", "easing", "delay"]);
850
- return (Array.isArray(props) ? props : [props]).map(function(animatedProp) {
851
- return "".concat(animatedProp, " ").concat(typeof durationOption === "string" ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === "string" ? delay : formatMs(delay));
1337
+ function ct(e) {
1338
+ return "".concat(Math.round(e), "ms");
1339
+ }
1340
+ const hr = {
1341
+ easing: ut,
1342
+ duration: st,
1343
+ create: function() {
1344
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.duration, o = n === void 0 ? st.standard : n, a = r.easing, f = a === void 0 ? ut.easeInOut : a, s = r.delay, c = s === void 0 ? 0 : s, m = re(r, ["duration", "easing", "delay"]);
1345
+ if (process.env.NODE_ENV !== "production") {
1346
+ var d = function(v) {
1347
+ return typeof v == "string";
1348
+ }, g = function(v) {
1349
+ return !isNaN(parseFloat(v));
1350
+ };
1351
+ !d(t) && !Array.isArray(t) && console.error('Material-UI: Argument "props" must be a string or Array.'), !g(o) && !d(o) && console.error('Material-UI: Argument "duration" must be a number or a string but found '.concat(o, ".")), d(f) || console.error('Material-UI: Argument "easing" must be a string.'), !g(c) && !d(c) && console.error('Material-UI: Argument "delay" must be a number or a string.'), Object.keys(m).length !== 0 && console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(m).join(","), "]."));
1352
+ }
1353
+ return (Array.isArray(t) ? t : [t]).map(function(b) {
1354
+ return "".concat(b, " ").concat(typeof o == "string" ? o : ct(o), " ").concat(f, " ").concat(typeof c == "string" ? c : ct(c));
852
1355
  }).join(",");
853
1356
  },
854
- getAutoHeightDuration: function getAutoHeightDuration(height) {
855
- if (!height) {
1357
+ getAutoHeightDuration: function(t) {
1358
+ if (!t)
856
1359
  return 0;
857
- }
858
- var constant = height / 36;
859
- return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
1360
+ var r = t / 36;
1361
+ return Math.round((4 + 15 * Math.pow(r, 0.25) + r / 5) * 10);
860
1362
  }
861
1363
  };
862
- var zIndex = {
1364
+ var yr = {
863
1365
  mobileStepper: 1e3,
864
1366
  speedDial: 1050,
865
1367
  appBar: 1100,
@@ -868,43 +1370,48 @@ var zIndex = {
868
1370
  snackbar: 1400,
869
1371
  tooltip: 1500
870
1372
  };
871
- var zIndex$1 = zIndex;
872
- function createTheme() {
873
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
874
- var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
875
- var palette = createPalette(paletteInput);
876
- var breakpoints = createBreakpoints(breakpointsInput);
877
- var spacing = createSpacing(spacingInput);
878
- var muiTheme = deepmerge({
879
- breakpoints,
1373
+ const br = yr;
1374
+ function Er() {
1375
+ for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.breakpoints, r = t === void 0 ? {} : t, n = e.mixins, o = n === void 0 ? {} : n, a = e.palette, f = a === void 0 ? {} : a, s = e.spacing, c = e.typography, m = c === void 0 ? {} : c, d = re(e, ["breakpoints", "mixins", "palette", "spacing", "typography"]), g = rr(f), b = Ut(r), v = gr(s), h = oe({
1376
+ breakpoints: b,
880
1377
  direction: "ltr",
881
- mixins: createMixins(breakpoints, spacing, mixinsInput),
1378
+ mixins: qt(b, v, o),
882
1379
  overrides: {},
883
- palette,
1380
+ palette: g,
884
1381
  props: {},
885
- shadows: shadows$1,
886
- typography: createTypography(palette, typographyInput),
887
- spacing,
888
- shape: shape$1,
889
- transitions,
890
- zIndex: zIndex$1
891
- }, other);
892
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
893
- args[_key - 1] = arguments[_key];
1382
+ shadows: cr,
1383
+ typography: or(g, m),
1384
+ spacing: v,
1385
+ shape: lr,
1386
+ transitions: hr,
1387
+ zIndex: br
1388
+ }, d), y = arguments.length, x = new Array(y > 1 ? y - 1 : 0), $ = 1; $ < y; $++)
1389
+ x[$ - 1] = arguments[$];
1390
+ if (h = x.reduce(function(P, u) {
1391
+ return oe(P, u);
1392
+ }, h), process.env.NODE_ENV !== "production") {
1393
+ var q = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"], j = function P(u, D) {
1394
+ var B = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, z;
1395
+ for (z in u) {
1396
+ var _ = u[z];
1397
+ B === 1 ? z.indexOf("Mui") === 0 && _ && P(_, z, B + 1) : q.indexOf(z) !== -1 && Object.keys(_).length > 0 && (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `".concat(D, "` component increases ") + "the CSS specificity of the `".concat(z, "` internal state."), "You can not override it like this: ", JSON.stringify(u, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
1398
+ root: ce({}, "&$".concat(z), _)
1399
+ }, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join(`
1400
+ `)), u[z] = {});
1401
+ }
1402
+ };
1403
+ j(h.overrides);
894
1404
  }
895
- muiTheme = args.reduce(function(acc, argument) {
896
- return deepmerge(acc, argument);
897
- }, muiTheme);
898
- return muiTheme;
899
- }
900
- var defaultTheme = createTheme();
901
- var defaultTheme$1 = defaultTheme;
902
- function withStyles(stylesOrCreator, options) {
903
- return withStyles$1(stylesOrCreator, _extends({
904
- defaultTheme: defaultTheme$1
905
- }, options));
906
- }
907
- var styles = function styles2(theme) {
1405
+ return h;
1406
+ }
1407
+ var xr = Er();
1408
+ const Or = xr;
1409
+ function Tr(e, t) {
1410
+ return At(e, Y({
1411
+ defaultTheme: Or
1412
+ }, t));
1413
+ }
1414
+ var wr = function(t) {
908
1415
  return {
909
1416
  root: {
910
1417
  userSelect: "none",
@@ -913,314 +1420,302 @@ var styles = function styles2(theme) {
913
1420
  display: "inline-block",
914
1421
  fill: "currentColor",
915
1422
  flexShrink: 0,
916
- fontSize: theme.typography.pxToRem(24),
917
- transition: theme.transitions.create("fill", {
918
- duration: theme.transitions.duration.shorter
1423
+ fontSize: t.typography.pxToRem(24),
1424
+ transition: t.transitions.create("fill", {
1425
+ duration: t.transitions.duration.shorter
919
1426
  })
920
1427
  },
921
1428
  colorPrimary: {
922
- color: theme.palette.primary.main
1429
+ color: t.palette.primary.main
923
1430
  },
924
1431
  colorSecondary: {
925
- color: theme.palette.secondary.main
1432
+ color: t.palette.secondary.main
926
1433
  },
927
1434
  colorAction: {
928
- color: theme.palette.action.active
1435
+ color: t.palette.action.active
929
1436
  },
930
1437
  colorError: {
931
- color: theme.palette.error.main
1438
+ color: t.palette.error.main
932
1439
  },
933
1440
  colorDisabled: {
934
- color: theme.palette.action.disabled
1441
+ color: t.palette.action.disabled
935
1442
  },
936
1443
  fontSizeInherit: {
937
1444
  fontSize: "inherit"
938
1445
  },
939
1446
  fontSizeSmall: {
940
- fontSize: theme.typography.pxToRem(20)
1447
+ fontSize: t.typography.pxToRem(20)
941
1448
  },
942
1449
  fontSizeLarge: {
943
- fontSize: theme.typography.pxToRem(35)
1450
+ fontSize: t.typography.pxToRem(35)
944
1451
  }
945
1452
  };
946
- };
947
- var SvgIcon = /* @__PURE__ */ React$2.forwardRef(function SvgIcon2(props, ref) {
948
- var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
949
- return /* @__PURE__ */ React$2.createElement(Component, _extends({
950
- className: clsx(classes.root, className, color !== "inherit" && classes["color".concat(capitalize(color))], fontSize !== "default" && fontSize !== "medium" && classes["fontSize".concat(capitalize(fontSize))]),
1453
+ }, ke = /* @__PURE__ */ V.forwardRef(function(t, r) {
1454
+ var n = t.children, o = t.classes, a = t.className, f = t.color, s = f === void 0 ? "inherit" : f, c = t.component, m = c === void 0 ? "svg" : c, d = t.fontSize, g = d === void 0 ? "medium" : d, b = t.htmlColor, v = t.titleAccess, h = t.viewBox, y = h === void 0 ? "0 0 24 24" : h, x = re(t, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
1455
+ return /* @__PURE__ */ V.createElement(m, Y({
1456
+ className: ne(o.root, a, s !== "inherit" && o["color".concat(Ne(s))], g !== "default" && g !== "medium" && o["fontSize".concat(Ne(g))]),
951
1457
  focusable: "false",
952
- viewBox,
953
- color: htmlColor,
954
- "aria-hidden": titleAccess ? void 0 : true,
955
- role: titleAccess ? "img" : void 0,
956
- ref
957
- }, other), children, titleAccess ? /* @__PURE__ */ React$2.createElement("title", null, titleAccess) : null);
1458
+ viewBox: y,
1459
+ color: b,
1460
+ "aria-hidden": v ? void 0 : !0,
1461
+ role: v ? "img" : void 0,
1462
+ ref: r
1463
+ }, x), n, v ? /* @__PURE__ */ V.createElement("title", null, v) : null);
1464
+ });
1465
+ process.env.NODE_ENV !== "production" && (ke.propTypes = {
1466
+ children: k.exports.node,
1467
+ classes: k.exports.object,
1468
+ className: k.exports.string,
1469
+ color: k.exports.oneOf(["action", "disabled", "error", "inherit", "primary", "secondary"]),
1470
+ component: k.exports.elementType,
1471
+ fontSize: It(k.exports.oneOf(["default", "inherit", "large", "medium", "small"]), function(e) {
1472
+ var t = e.fontSize;
1473
+ if (t === "default")
1474
+ throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.');
1475
+ return null;
1476
+ }),
1477
+ htmlColor: k.exports.string,
1478
+ shapeRendering: k.exports.string,
1479
+ titleAccess: k.exports.string,
1480
+ viewBox: k.exports.string
958
1481
  });
959
- SvgIcon.muiName = "SvgIcon";
960
- var SvgIcon$1 = withStyles(styles, {
1482
+ ke.muiName = "SvgIcon";
1483
+ const ft = Tr(wr, {
961
1484
  name: "MuiSvgIcon"
962
- })(SvgIcon);
963
- function createSvgIcon(path, displayName) {
964
- var Component = function Component2(props, ref) {
965
- return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends({
966
- ref
967
- }, props), path);
968
- };
969
- Component.muiName = SvgIcon$1.muiName;
970
- return /* @__PURE__ */ React__default.memo(/* @__PURE__ */ React__default.forwardRef(Component));
971
- }
972
- function debounce(func) {
973
- var wait = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 166;
974
- var timeout;
975
- function debounced() {
976
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
977
- args[_key] = arguments[_key];
978
- }
979
- var that = this;
980
- var later = function later2() {
981
- func.apply(that, args);
982
- };
983
- clearTimeout(timeout);
984
- timeout = setTimeout(later, wait);
985
- }
986
- debounced.clear = function() {
987
- clearTimeout(timeout);
1485
+ })(ke);
1486
+ function Sr(e, t) {
1487
+ var r = function(o, a) {
1488
+ return /* @__PURE__ */ se.createElement(ft, Y({
1489
+ ref: a
1490
+ }, o), e);
988
1491
  };
989
- return debounced;
1492
+ return process.env.NODE_ENV !== "production" && (r.displayName = "".concat(t, "Icon")), r.muiName = ft.muiName, /* @__PURE__ */ se.memo(/* @__PURE__ */ se.forwardRef(r));
990
1493
  }
991
- function deprecatedPropType(validator, reason) {
992
- {
993
- return function() {
994
- return null;
1494
+ function _r(e) {
1495
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 166, r;
1496
+ function n() {
1497
+ for (var o = arguments.length, a = new Array(o), f = 0; f < o; f++)
1498
+ a[f] = arguments[f];
1499
+ var s = this, c = function() {
1500
+ e.apply(s, a);
995
1501
  };
1502
+ clearTimeout(r), r = setTimeout(c, t);
996
1503
  }
1504
+ return n.clear = function() {
1505
+ clearTimeout(r);
1506
+ }, n;
997
1507
  }
998
- function isMuiElement(element, muiNames) {
999
- return /* @__PURE__ */ React$2.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1;
1508
+ function Rr(e, t) {
1509
+ return process.env.NODE_ENV === "production" ? function() {
1510
+ return null;
1511
+ } : function(r, n, o, a, f) {
1512
+ var s = o || "<<anonymous>>", c = f || n;
1513
+ return typeof r[n] < "u" ? new Error("The ".concat(a, " `").concat(c, "` of ") + "`".concat(s, "` is deprecated. ").concat(t)) : null;
1514
+ };
1515
+ }
1516
+ function Ar(e, t) {
1517
+ return /* @__PURE__ */ V.isValidElement(e) && t.indexOf(e.type.muiName) !== -1;
1000
1518
  }
1001
- function ownerDocument(node) {
1002
- return node && node.ownerDocument || document;
1519
+ function Ot(e) {
1520
+ return e && e.ownerDocument || document;
1003
1521
  }
1004
- function ownerWindow(node) {
1005
- var doc = ownerDocument(node);
1006
- return doc.defaultView || window;
1522
+ function Cr(e) {
1523
+ var t = Ot(e);
1524
+ return t.defaultView || window;
1007
1525
  }
1008
- function requirePropFactory(componentNameInError) {
1009
- {
1526
+ function Pr(e) {
1527
+ if (process.env.NODE_ENV === "production")
1010
1528
  return function() {
1011
1529
  return null;
1012
1530
  };
1013
- }
1531
+ var t = function(n) {
1532
+ return function(o, a, f, s, c) {
1533
+ var m = c || a;
1534
+ return typeof o[a] < "u" && !o[n] ? new Error("The prop `".concat(m, "` of ") + "`".concat(e, "` must be used on `").concat(n, "`.")) : null;
1535
+ };
1536
+ };
1537
+ return t;
1014
1538
  }
1015
- function setRef(ref, value) {
1016
- if (typeof ref === "function") {
1017
- ref(value);
1018
- } else if (ref) {
1019
- ref.current = value;
1020
- }
1539
+ function De(e, t) {
1540
+ typeof e == "function" ? e(t) : e && (e.current = t);
1021
1541
  }
1022
- function unsupportedProp(props, propName, componentName, location, propFullName) {
1023
- {
1542
+ function Ir(e, t, r, n, o) {
1543
+ if (process.env.NODE_ENV === "production")
1024
1544
  return null;
1025
- }
1545
+ var a = o || t;
1546
+ return typeof e[t] < "u" ? new Error("The prop `".concat(a, "` is not supported. Please remove it.")) : null;
1026
1547
  }
1027
- function useControlled(_ref) {
1028
- var controlled = _ref.controlled, defaultProp = _ref.default;
1029
- _ref.name;
1030
- _ref.state;
1031
- var _React$useRef = React$2.useRef(controlled !== void 0), isControlled = _React$useRef.current;
1032
- var _React$useState = React$2.useState(defaultProp), valueState = _React$useState[0], setValue = _React$useState[1];
1033
- var value = isControlled ? controlled : valueState;
1034
- var setValueIfUncontrolled = React$2.useCallback(function(newValue) {
1035
- if (!isControlled) {
1036
- setValue(newValue);
1037
- }
1548
+ function Mr(e) {
1549
+ var t = e.controlled, r = e.default, n = e.name, o = e.state, a = o === void 0 ? "value" : o, f = V.useRef(t !== void 0), s = f.current, c = V.useState(r), m = c[0], d = c[1], g = s ? t : m;
1550
+ if (process.env.NODE_ENV !== "production") {
1551
+ V.useEffect(function() {
1552
+ s !== (t !== void 0) && console.error(["Material-UI: A component is changing the ".concat(s ? "" : "un", "controlled ").concat(a, " state of ").concat(n, " to be ").concat(s ? "un" : "", "controlled."), "Elements should not switch from uncontrolled to controlled (or vice versa).", "Decide between using a controlled or uncontrolled ".concat(n, " ") + "element for the lifetime of the component.", "The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
1553
+ `));
1554
+ }, [t]);
1555
+ var b = V.useRef(r), v = b.current;
1556
+ V.useEffect(function() {
1557
+ !s && v !== r && console.error(["Material-UI: A component is changing the default ".concat(a, " state of an uncontrolled ").concat(n, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(n, ".")].join(`
1558
+ `));
1559
+ }, [JSON.stringify(r)]);
1560
+ }
1561
+ var h = V.useCallback(function(y) {
1562
+ s || d(y);
1038
1563
  }, []);
1039
- return [value, setValueIfUncontrolled];
1564
+ return [g, h];
1040
1565
  }
1041
- var useEnhancedEffect = typeof window !== "undefined" ? React$2.useLayoutEffect : React$2.useEffect;
1042
- function useEventCallback(fn) {
1043
- var ref = React$2.useRef(fn);
1044
- useEnhancedEffect(function() {
1045
- ref.current = fn;
1046
- });
1047
- return React$2.useCallback(function() {
1048
- return ref.current.apply(void 0, arguments);
1566
+ var $r = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
1567
+ function Nr(e) {
1568
+ var t = V.useRef(e);
1569
+ return $r(function() {
1570
+ t.current = e;
1571
+ }), V.useCallback(function() {
1572
+ return t.current.apply(void 0, arguments);
1049
1573
  }, []);
1050
1574
  }
1051
- function useForkRef(refA, refB) {
1052
- return React$2.useMemo(function() {
1053
- if (refA == null && refB == null) {
1054
- return null;
1055
- }
1056
- return function(refValue) {
1057
- setRef(refA, refValue);
1058
- setRef(refB, refValue);
1575
+ function Dr(e, t) {
1576
+ return V.useMemo(function() {
1577
+ return e == null && t == null ? null : function(r) {
1578
+ De(e, r), De(t, r);
1059
1579
  };
1060
- }, [refA, refB]);
1061
- }
1062
- function useId(idOverride) {
1063
- var _React$useState = React$2.useState(idOverride), defaultId = _React$useState[0], setDefaultId = _React$useState[1];
1064
- var id = idOverride || defaultId;
1065
- React$2.useEffect(function() {
1066
- if (defaultId == null) {
1067
- setDefaultId("mui-".concat(Math.round(Math.random() * 1e5)));
1068
- }
1069
- }, [defaultId]);
1070
- return id;
1071
- }
1072
- var hadKeyboardEvent = true;
1073
- var hadFocusVisibleRecently = false;
1074
- var hadFocusVisibleRecentlyTimeout = null;
1075
- var inputTypesWhitelist = {
1076
- text: true,
1077
- search: true,
1078
- url: true,
1079
- tel: true,
1080
- email: true,
1081
- password: true,
1082
- number: true,
1083
- date: true,
1084
- month: true,
1085
- week: true,
1086
- time: true,
1087
- datetime: true,
1088
- "datetime-local": true
1580
+ }, [e, t]);
1581
+ }
1582
+ function jr(e) {
1583
+ var t = V.useState(e), r = t[0], n = t[1], o = e || r;
1584
+ return V.useEffect(function() {
1585
+ r == null && n("mui-".concat(Math.round(Math.random() * 1e5)));
1586
+ }, [r]), o;
1587
+ }
1588
+ var de = !0, je = !1, lt = null, Wr = {
1589
+ text: !0,
1590
+ search: !0,
1591
+ url: !0,
1592
+ tel: !0,
1593
+ email: !0,
1594
+ password: !0,
1595
+ number: !0,
1596
+ date: !0,
1597
+ month: !0,
1598
+ week: !0,
1599
+ time: !0,
1600
+ datetime: !0,
1601
+ "datetime-local": !0
1089
1602
  };
1090
- function focusTriggersKeyboardModality(node) {
1091
- var type = node.type, tagName = node.tagName;
1092
- if (tagName === "INPUT" && inputTypesWhitelist[type] && !node.readOnly) {
1093
- return true;
1094
- }
1095
- if (tagName === "TEXTAREA" && !node.readOnly) {
1096
- return true;
1097
- }
1098
- if (node.isContentEditable) {
1099
- return true;
1100
- }
1101
- return false;
1603
+ function Fr(e) {
1604
+ var t = e.type, r = e.tagName;
1605
+ return !!(r === "INPUT" && Wr[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
1102
1606
  }
1103
- function handleKeyDown(event) {
1104
- if (event.metaKey || event.altKey || event.ctrlKey) {
1105
- return;
1106
- }
1107
- hadKeyboardEvent = true;
1607
+ function zr(e) {
1608
+ e.metaKey || e.altKey || e.ctrlKey || (de = !0);
1108
1609
  }
1109
- function handlePointerDown() {
1110
- hadKeyboardEvent = false;
1610
+ function Me() {
1611
+ de = !1;
1111
1612
  }
1112
- function handleVisibilityChange() {
1113
- if (this.visibilityState === "hidden") {
1114
- if (hadFocusVisibleRecently) {
1115
- hadKeyboardEvent = true;
1116
- }
1117
- }
1613
+ function Vr() {
1614
+ this.visibilityState === "hidden" && je && (de = !0);
1118
1615
  }
1119
- function prepare(doc) {
1120
- doc.addEventListener("keydown", handleKeyDown, true);
1121
- doc.addEventListener("mousedown", handlePointerDown, true);
1122
- doc.addEventListener("pointerdown", handlePointerDown, true);
1123
- doc.addEventListener("touchstart", handlePointerDown, true);
1124
- doc.addEventListener("visibilitychange", handleVisibilityChange, true);
1616
+ function kr(e) {
1617
+ e.addEventListener("keydown", zr, !0), e.addEventListener("mousedown", Me, !0), e.addEventListener("pointerdown", Me, !0), e.addEventListener("touchstart", Me, !0), e.addEventListener("visibilitychange", Vr, !0);
1125
1618
  }
1126
- function isFocusVisible(event) {
1127
- var target = event.target;
1619
+ function dt(e) {
1620
+ var t = e.target;
1128
1621
  try {
1129
- return target.matches(":focus-visible");
1130
- } catch (error) {
1622
+ return t.matches(":focus-visible");
1623
+ } catch {
1131
1624
  }
1132
- return hadKeyboardEvent || focusTriggersKeyboardModality(target);
1625
+ return de || Fr(t);
1133
1626
  }
1134
- function handleBlurVisible() {
1135
- hadFocusVisibleRecently = true;
1136
- window.clearTimeout(hadFocusVisibleRecentlyTimeout);
1137
- hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {
1138
- hadFocusVisibleRecently = false;
1627
+ function Ur() {
1628
+ je = !0, window.clearTimeout(lt), lt = window.setTimeout(function() {
1629
+ je = !1;
1139
1630
  }, 100);
1140
1631
  }
1141
- function useIsFocusVisible() {
1142
- var ref = React$2.useCallback(function(instance) {
1143
- var node = ReactDOM.findDOMNode(instance);
1144
- if (node != null) {
1145
- prepare(node.ownerDocument);
1146
- }
1632
+ function qr() {
1633
+ var e = V.useCallback(function(t) {
1634
+ var r = Ct.findDOMNode(t);
1635
+ r != null && kr(r.ownerDocument);
1147
1636
  }, []);
1148
- return {
1149
- isFocusVisible,
1150
- onBlurVisible: handleBlurVisible,
1151
- ref
1637
+ return process.env.NODE_ENV !== "production" && V.useDebugValue(dt), {
1638
+ isFocusVisible: dt,
1639
+ onBlurVisible: Ur,
1640
+ ref: e
1152
1641
  };
1153
1642
  }
1154
- var utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1643
+ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1155
1644
  __proto__: null,
1156
- capitalize,
1157
- createChainedFunction,
1158
- createSvgIcon,
1159
- debounce,
1160
- deprecatedPropType,
1161
- isMuiElement,
1162
- ownerDocument,
1163
- ownerWindow,
1164
- requirePropFactory,
1165
- setRef,
1166
- unsupportedProp,
1167
- useControlled,
1168
- useEventCallback,
1169
- useForkRef,
1170
- unstable_useId: useId,
1171
- useIsFocusVisible
1172
- }, Symbol.toStringTag, { value: "Module" }));
1173
- var require$$0 = /* @__PURE__ */ getAugmentedNamespace(utils);
1174
- (function(exports) {
1175
- Object.defineProperty(exports, "__esModule", {
1176
- value: true
1177
- });
1178
- Object.defineProperty(exports, "default", {
1179
- enumerable: true,
1180
- get: function get() {
1181
- return _utils.createSvgIcon;
1182
- }
1183
- });
1184
- var _utils = require$$0;
1185
- })(createSvgIcon$1);
1186
- var _interopRequireDefault = interopRequireDefault.exports;
1187
- var _interopRequireWildcard = interopRequireWildcard.exports;
1188
- Object.defineProperty(DeleteOutline, "__esModule", {
1189
- value: true
1645
+ capitalize: Ne,
1646
+ createChainedFunction: Vt,
1647
+ createSvgIcon: Sr,
1648
+ debounce: _r,
1649
+ deprecatedPropType: Rr,
1650
+ isMuiElement: Ar,
1651
+ ownerDocument: Ot,
1652
+ ownerWindow: Cr,
1653
+ requirePropFactory: Pr,
1654
+ setRef: De,
1655
+ unsupportedProp: Ir,
1656
+ useControlled: Mr,
1657
+ useEventCallback: Nr,
1658
+ useForkRef: Dr,
1659
+ unstable_useId: jr,
1660
+ useIsFocusVisible: qr
1661
+ }, Symbol.toStringTag, { value: "Module" })), Yr = /* @__PURE__ */ Pt(Lr);
1662
+ var pt;
1663
+ function Br() {
1664
+ return pt || (pt = 1, function(e) {
1665
+ Object.defineProperty(e, "__esModule", {
1666
+ value: !0
1667
+ }), Object.defineProperty(e, "default", {
1668
+ enumerable: !0,
1669
+ get: function() {
1670
+ return t.createSvgIcon;
1671
+ }
1672
+ });
1673
+ var t = Yr;
1674
+ }(ge)), ge;
1675
+ }
1676
+ var Hr = vt.exports, Jr = gt.exports;
1677
+ Object.defineProperty(We, "__esModule", {
1678
+ value: !0
1190
1679
  });
1191
- var default_1 = DeleteOutline.default = void 0;
1192
- var React$1 = _interopRequireWildcard(React__default);
1193
- var _createSvgIcon = _interopRequireDefault(createSvgIcon$1);
1194
- var _default = (0, _createSvgIcon.default)(/* @__PURE__ */ React$1.createElement("path", {
1680
+ var Tt = We.default = void 0, Kr = Jr(se), Xr = Hr(Br()), Gr = (0, Xr.default)(/* @__PURE__ */ Kr.createElement("path", {
1195
1681
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"
1196
1682
  }), "DeleteOutline");
1197
- default_1 = DeleteOutline.default = _default;
1198
- const useStyles = makeStyles(({ palette, spacing, typography }) => ({
1683
+ Tt = We.default = Gr;
1684
+ const Zr = St(({ palette: e, spacing: t, typography: r }) => ({
1685
+ inputFileWrapper: {
1686
+ outlineWidth: 0
1687
+ },
1199
1688
  inputFile: {
1689
+ outline: "none",
1200
1690
  display: "flex",
1201
1691
  flexDirection: "row",
1202
1692
  alignItems: "center",
1203
1693
  justifyContent: "space-between",
1204
1694
  flex: 1,
1205
- height: spacing(7),
1206
- minHeight: spacing(7),
1207
- padding: spacing(0, 1, 0, 2),
1208
- backgroundColor: ({ variant }) => variant === "filled" ? palette.action.hover : palette.common.white,
1695
+ height: t(7),
1696
+ minHeight: t(7),
1697
+ padding: t(0, 1, 0, 2),
1698
+ backgroundColor: ({ variant: n }) => n === "filled" ? e.action.hover : e.common.white,
1209
1699
  border: "2px solid",
1210
- borderColor: ({ variant }) => variant === "filled" ? "transparent" : palette.action.disabled,
1211
- borderRadius: spacing(0.5),
1212
- color: palette.text.secondary,
1700
+ borderColor: ({ variant: n }) => n === "filled" ? "transparent" : e.action.disabled,
1701
+ borderRadius: t(0.5),
1702
+ color: e.text.secondary,
1213
1703
  transition: "border-color 0.25s ease, background-color 0.25s ease",
1214
1704
  "&:hover": {
1215
- backgroundColor: ({ variant }) => variant === "filled" ? palette.action.selected : palette.common.white,
1216
- borderColor: ({ variant }) => variant === "filled" ? "transparent" : palette.text.primary
1705
+ backgroundColor: ({ variant: n }) => n === "filled" ? e.action.selected : e.common.white,
1706
+ borderColor: ({ variant: n }) => n === "filled" ? "transparent" : e.text.primary
1707
+ },
1708
+ "&:focus-visible": {
1709
+ outlineStyle: "solid",
1710
+ outlineWidth: 2,
1711
+ outlineColor: e.primary.main
1217
1712
  }
1218
1713
  },
1219
1714
  over: {
1220
- borderColor: () => palette.primary.main
1715
+ borderColor: () => e.primary.main
1221
1716
  },
1222
1717
  files: {
1223
- borderColor: ({ variant }) => variant === "filled" ? "transparent" : palette.action.disabled
1718
+ borderColor: ({ variant: n }) => n === "filled" ? "transparent" : e.action.disabled
1224
1719
  },
1225
1720
  textWrapper: {
1226
1721
  display: "flex",
@@ -1236,155 +1731,171 @@ const useStyles = makeStyles(({ palette, spacing, typography }) => ({
1236
1731
  transform: "translateY(-50%)",
1237
1732
  transition: "all 0.2s ease-in-out"
1238
1733
  },
1239
- placeholderFiles: __spreadValues({
1240
- top: spacing(1),
1734
+ placeholderFiles: {
1735
+ top: t(1),
1241
1736
  transform: "translateY(0)",
1242
- opacity: 1
1243
- }, typography.caption),
1737
+ opacity: 1,
1738
+ ...r.caption
1739
+ },
1244
1740
  filesText: {
1245
1741
  position: "absolute",
1246
- top: spacing(4),
1742
+ top: t(4),
1247
1743
  opacity: 0,
1248
1744
  transition: "all 0.2s ease-in-out"
1249
1745
  },
1250
1746
  filesTextFiles: {
1251
- top: spacing(3),
1747
+ top: t(3),
1252
1748
  opacity: 1
1253
1749
  },
1254
1750
  helperText: {
1255
- fontWeight: typography.body1.fontWeight
1751
+ fontWeight: r.body1.fontWeight
1752
+ },
1753
+ uploadButton: {
1754
+ outlineWidth: 0,
1755
+ "&:focus-visible": {
1756
+ outline: "none",
1757
+ backgroundColor: e.primary.main,
1758
+ color: e.common.white
1759
+ }
1256
1760
  },
1257
1761
  clearButton: {
1258
- marginTop: spacing(2),
1259
- marginRight: spacing(0.5),
1260
- color: palette.error.main
1762
+ outlineWidth: 0,
1763
+ marginTop: t(2),
1764
+ marginRight: t(0.5),
1765
+ color: e.error.main,
1766
+ "&:focus-visible": {
1767
+ outline: "none",
1768
+ backgroundColor: e.action.hover,
1769
+ color: e.error.main
1770
+ }
1261
1771
  },
1262
1772
  disabled: {
1263
1773
  "& $inputFile": {
1264
- color: palette.text.disabled,
1265
- borderColor: () => palette.text.disabled,
1266
- backgroundColor: () => palette.action.hover,
1774
+ color: e.text.disabled,
1775
+ borderColor: () => e.text.disabled,
1776
+ backgroundColor: () => e.action.hover,
1267
1777
  pointerEvents: "none"
1268
1778
  },
1269
1779
  "& $helperText": {
1270
- color: palette.action.disabled
1780
+ color: e.action.disabled
1271
1781
  }
1272
1782
  },
1273
1783
  error: {
1274
1784
  "& $inputFile": {
1275
- borderColor: () => palette.error.main
1785
+ borderColor: () => e.error.main
1276
1786
  },
1277
1787
  "& $files": {
1278
- color: palette.error.main
1788
+ color: e.error.main
1279
1789
  },
1280
1790
  "& $helperText": {
1281
- color: palette.error.main
1791
+ color: e.error.main
1282
1792
  }
1793
+ },
1794
+ inputHidden: {
1795
+ display: "none"
1283
1796
  }
1284
1797
  }));
1285
- function InputFile({
1286
- placeholder = "Upload file",
1287
- buttonText = "Browse",
1288
- multipleSummaryText = "files selected",
1289
- helperText,
1290
- accept = "application/JSON",
1291
- multiple = false,
1292
- disabled = false,
1293
- error = false,
1294
- variant = "outlined",
1295
- files = [],
1296
- onChange
1798
+ function rn({
1799
+ id: e = "fileupload",
1800
+ placeholder: t = "Upload file",
1801
+ buttonText: r = "Browse",
1802
+ multipleSummaryText: n = "files selected",
1803
+ helperText: o,
1804
+ accept: a = "application/JSON",
1805
+ multiple: f = !1,
1806
+ required: s = !1,
1807
+ disabled: c = !1,
1808
+ error: m = !1,
1809
+ variant: d = "outlined",
1810
+ defaultValue: g = [],
1811
+ onChange: b
1297
1812
  }) {
1298
- const classes = useStyles({ variant });
1299
- const uploadInputRef = useRef(null);
1300
- const [filesText, setFilesText] = useState("");
1301
- const [over, setOver] = useState(false);
1302
- useEffect(() => {
1303
- let txt = "";
1304
- if (files.length === 1) {
1305
- txt = files[0].name;
1306
- } else if (files.length > 1) {
1307
- txt = `${files.length} ${multipleSummaryText}`;
1813
+ const v = Zr({ variant: d }), h = wt(null), [y, x] = me(g), [$, q] = me(""), [j, P] = me(!1);
1814
+ qe(() => {
1815
+ x(g);
1816
+ }, [g]), qe(() => {
1817
+ let W = y?.[0]?.name;
1818
+ y.length > 1 && (W = `${y.length} ${n}`), q(W);
1819
+ }, [y, n]);
1820
+ const u = (W) => {
1821
+ h.current?.click(), W.stopPropagation();
1822
+ }, D = (W) => {
1823
+ W.preventDefault(), P(!0);
1824
+ }, B = (W) => {
1825
+ W.preventDefault(), P(!1);
1826
+ }, z = (W) => {
1827
+ W.preventDefault();
1828
+ const K = [], G = W.dataTransfer.items;
1829
+ for (let Q = 0; Q < G.length; Q++) {
1830
+ const J = G[Q].getAsFile();
1831
+ K.push(J);
1308
1832
  }
1309
- setFilesText(txt);
1310
- }, [files, multipleSummaryText]);
1311
- const handleBrowse = () => {
1312
- var _a;
1313
- (_a = uploadInputRef.current) == null ? void 0 : _a.click();
1833
+ P(!1), H(K);
1834
+ }, _ = (W) => {
1835
+ const K = Array.from(W.target.files);
1836
+ H(K);
1837
+ }, U = () => {
1838
+ h.current && (h.current.value = ""), H([]);
1839
+ }, H = (W) => {
1840
+ x(W), b(W);
1314
1841
  };
1315
- const handleDragOver = (event) => {
1316
- event.preventDefault();
1317
- setOver(true);
1318
- };
1319
- const handleDragLeave = (event) => {
1320
- event.preventDefault();
1321
- setOver(false);
1322
- };
1323
- const handleDrop = (event) => {
1324
- event.preventDefault();
1325
- const newFiles = [];
1326
- const items = event.dataTransfer.items;
1327
- for (let i = 0; i < items.length; i++) {
1328
- const file = items[i].getAsFile();
1329
- newFiles.push(file);
1330
- }
1331
- setOver(false);
1332
- onChange(newFiles);
1333
- };
1334
- const handleFiles = (event) => {
1335
- const newFiles = Array.from(event.target.files);
1336
- onChange(newFiles);
1337
- };
1338
- const clear = () => {
1339
- onChange([]);
1340
- };
1341
- return /* @__PURE__ */ React.createElement(Box, {
1342
- className: clsx({ [classes.error]: error }, { [classes.disabled]: disabled })
1343
- }, /* @__PURE__ */ React.createElement(Box, {
1344
- className: clsx(classes.inputFile, { [classes.over]: over }, { [classes.files]: filesText }),
1345
- onDragOver: handleDragOver,
1346
- onDragLeave: handleDragLeave,
1347
- onDrop: handleDrop
1348
- }, /* @__PURE__ */ React.createElement(Box, {
1349
- className: classes.textWrapper
1350
- }, /* @__PURE__ */ React.createElement(Typography, {
1842
+ return /* @__PURE__ */ React.createElement(ue, {
1843
+ className: ne(v.inputFileWrapper, { [v.error]: m }, { [v.disabled]: c })
1844
+ }, /* @__PURE__ */ React.createElement(ue, {
1845
+ tabIndex: 0,
1846
+ "aria-controls": "fileupload",
1847
+ "aria-label": t,
1848
+ className: ne(v.inputFile, { [v.over]: j }, { [v.files]: $ }),
1849
+ onDragOver: D,
1850
+ onDragLeave: B,
1851
+ onDrop: z
1852
+ }, /* @__PURE__ */ React.createElement(ue, {
1853
+ className: v.textWrapper
1854
+ }, /* @__PURE__ */ React.createElement(ve, {
1351
1855
  variant: "body1",
1352
1856
  color: "inherit",
1353
- noWrap: true,
1354
- className: clsx(classes.placeholder, {
1355
- [classes.placeholderFiles]: filesText
1857
+ noWrap: !0,
1858
+ className: ne(v.placeholder, {
1859
+ [v.placeholderFiles]: $
1356
1860
  })
1357
- }, placeholder), /* @__PURE__ */ React.createElement(Typography, {
1861
+ }, t), /* @__PURE__ */ React.createElement(ve, {
1358
1862
  variant: "body1",
1359
1863
  color: "textPrimary",
1360
- noWrap: true,
1361
- className: clsx(classes.filesText, {
1362
- [classes.filesTextFiles]: filesText
1864
+ noWrap: !0,
1865
+ className: ne(v.filesText, {
1866
+ [v.filesTextFiles]: $
1363
1867
  })
1364
- }, filesText)), files.length ? /* @__PURE__ */ React.createElement(IconButton, {
1868
+ }, $)), y.length ? /* @__PURE__ */ React.createElement(_t, {
1365
1869
  size: "small",
1366
- className: classes.clearButton,
1367
- onClick: clear
1368
- }, /* @__PURE__ */ React.createElement(default_1, null)) : /* @__PURE__ */ React.createElement(Button, {
1870
+ className: v.clearButton,
1871
+ onClick: U
1872
+ }, /* @__PURE__ */ React.createElement(Tt, null)) : /* @__PURE__ */ React.createElement(Rt, {
1369
1873
  variant: "text",
1370
1874
  color: "primary",
1371
- disabled,
1372
- onClick: handleBrowse
1373
- }, buttonText), /* @__PURE__ */ React.createElement("input", {
1374
- ref: uploadInputRef,
1375
- style: { display: "none" },
1875
+ className: v.uploadButton,
1876
+ disabled: c,
1877
+ onClick: u
1878
+ }, r), /* @__PURE__ */ React.createElement("input", {
1879
+ id: e,
1880
+ ref: h,
1881
+ className: v.inputHidden,
1376
1882
  type: "file",
1377
- accept,
1378
- multiple,
1379
- disabled,
1380
- onChange: handleFiles
1381
- })), helperText && /* @__PURE__ */ React.createElement(Box, {
1883
+ tabIndex: -1,
1884
+ "aria-hidden": !0,
1885
+ accept: a,
1886
+ required: s,
1887
+ multiple: f,
1888
+ disabled: c,
1889
+ onChange: _
1890
+ })), o && /* @__PURE__ */ React.createElement(ue, {
1382
1891
  mt: 0.5,
1383
1892
  ml: 2
1384
- }, /* @__PURE__ */ React.createElement(Typography, {
1893
+ }, /* @__PURE__ */ React.createElement(ve, {
1385
1894
  variant: "caption",
1386
1895
  color: "textSecondary",
1387
- className: classes.helperText
1388
- }, helperText)));
1896
+ className: v.helperText
1897
+ }, o)));
1389
1898
  }
1390
- export { InputFile };
1899
+ export {
1900
+ rn as InputFile
1901
+ };