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