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