kdpa-components 1.0.0 → 1.2.0
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/CHANGELOG.md +7 -0
- package/dist/Accordion/index.js +17 -19
- package/dist/Alert/index.js +19 -20
- package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +7 -8
- package/dist/Badge/index.js +22 -24
- package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
- package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
- package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
- package/dist/Buttons/index.js +28 -30
- package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
- package/dist/Cards/index.d.ts +2 -0
- package/dist/Cards/index.d.ts.map +1 -1
- package/dist/Cards/index.js +150 -1
- package/dist/CheckBox/index.js +13 -14
- package/dist/Chip/index.js +17 -19
- package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
- package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
- package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +10 -12
- package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
- package/dist/CopyToClipboard/index.js +24 -26
- package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
- package/dist/Divider/index.js +7 -8
- package/dist/DropZone/index.js +34 -36
- package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
- package/dist/FormControl/index.js +12 -13
- package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
- package/dist/FullScreenDialog/index.js +20 -22
- package/dist/Grid/index.js +9 -10
- package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
- package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
- package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
- package/dist/Input/index.js +27 -29
- package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
- package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
- package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
- package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
- package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
- package/dist/KdpaChip-10899788.js +51 -0
- package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
- package/dist/KdpaCollapse-2d23c312.js +12 -0
- package/dist/KdpaCollapse-73c03e02.js +23 -0
- package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
- package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
- package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
- package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
- package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
- package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
- package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
- package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
- package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
- package/dist/KdpaTypography-763c3238.js +10 -0
- package/dist/KdpaZoom-1b0f3404.js +22 -0
- package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
- package/dist/LazyDrop/index.js +24 -24
- package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
- package/dist/Loading/KdpaProgress/index.js +12 -13
- package/dist/Loading/index.js +11 -12
- package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
- package/dist/Modal/index.d.ts +0 -2
- package/dist/Modal/index.d.ts.map +1 -1
- package/dist/Modal/index.js +3 -17
- package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
- package/dist/PaginationGrid/index.js +33 -34
- package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +43 -45
- package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
- package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +14 -15
- package/dist/Selects/index.js +39 -40
- package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
- package/dist/Slider/index.js +8 -9
- package/dist/Switch/index.js +12 -13
- package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
- package/dist/Tabs/index.js +16 -17
- package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
- package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
- package/dist/ThemeProvider/index.js +7 -8
- package/dist/Tooltips/index.js +16 -18
- package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +22 -24
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +8 -9
- package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
- package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
- package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
- package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
- package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
- package/dist/identifier-2647f844.js +3775 -0
- package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +140 -142
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/kdpaSelect-4ed993c7.js +1 -0
- package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
- package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
- package/package.json +90 -87
- package/dist/KdpaChip-f94c5b7e.js +0 -31
- package/dist/KdpaCircularProgress-aed28149.js +0 -44
- package/dist/KdpaCollapse-73e5e40c.js +0 -8
- package/dist/KdpaCollapse-7f12a32a.js +0 -11
- package/dist/KdpaFormControl-ae8f7241.js +0 -6
- package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
- package/dist/KdpaGrid-b93fab29.js +0 -8
- package/dist/KdpaIconButton-f5146164.js +0 -23
- package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
- package/dist/KdpaMenuItem-9a9ece89.js +0 -35
- package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
- package/dist/KdpaSkeleton-4696fadd.js +0 -541
- package/dist/KdpaTabs-a76a17a7.js +0 -38
- package/dist/KdpaTypography-17403558.js +0 -6
- package/dist/KdpaZoom-96a648cb.js +0 -10
- package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
- package/dist/Sanitizer/index.d.ts +0 -3
- package/dist/Sanitizer/index.d.ts.map +0 -1
- package/dist/Sanitizer/index.js +0 -492
- package/dist/identifier-5cabf5ae.js +0 -2481
- package/dist/index-f4329b29.js +0 -669
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/dist/utils-8a7b223e.js +0 -18
|
@@ -1,2481 +0,0 @@
|
|
|
1
|
-
import * as Me from "react";
|
|
2
|
-
import { useLayoutEffect as Br, createContext as yr, forwardRef as jr, useContext as br, createElement as Re, Fragment as Ur } from "react";
|
|
3
|
-
import { _ as C, a as re } from "./extends-393586f3.js";
|
|
4
|
-
import { P as ne } from "./index-f4329b29.js";
|
|
5
|
-
function J(e) {
|
|
6
|
-
return e !== null && typeof e == "object" && e.constructor === Object;
|
|
7
|
-
}
|
|
8
|
-
function vr(e) {
|
|
9
|
-
if (!J(e))
|
|
10
|
-
return e;
|
|
11
|
-
const r = {};
|
|
12
|
-
return Object.keys(e).forEach((t) => {
|
|
13
|
-
r[t] = vr(e[t]);
|
|
14
|
-
}), r;
|
|
15
|
-
}
|
|
16
|
-
function K(e, r, t = {
|
|
17
|
-
clone: !0
|
|
18
|
-
}) {
|
|
19
|
-
const n = t.clone ? C({}, e) : e;
|
|
20
|
-
return J(e) && J(r) && Object.keys(r).forEach((o) => {
|
|
21
|
-
o !== "__proto__" && (J(r[o]) && o in e && J(e[o]) ? n[o] = K(e[o], r[o], t) : t.clone ? n[o] = J(r[o]) ? vr(r[o]) : r[o] : n[o] = r[o]);
|
|
22
|
-
}), n;
|
|
23
|
-
}
|
|
24
|
-
function Q(e) {
|
|
25
|
-
let r = "https://mui.com/production-error/?code=" + e;
|
|
26
|
-
for (let t = 1; t < arguments.length; t += 1)
|
|
27
|
-
r += "&args[]=" + encodeURIComponent(arguments[t]);
|
|
28
|
-
return "Minified MUI error #" + e + "; visit " + r + " for the full message.";
|
|
29
|
-
}
|
|
30
|
-
function xr(e) {
|
|
31
|
-
if (typeof e != "string")
|
|
32
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Q(7));
|
|
33
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
34
|
-
}
|
|
35
|
-
const Je = (e) => e, Kr = () => {
|
|
36
|
-
let e = Je;
|
|
37
|
-
return {
|
|
38
|
-
configure(r) {
|
|
39
|
-
e = r;
|
|
40
|
-
},
|
|
41
|
-
generate(r) {
|
|
42
|
-
return e(r);
|
|
43
|
-
},
|
|
44
|
-
reset() {
|
|
45
|
-
e = Je;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}, zr = Kr(), Vr = zr, Wr = {
|
|
49
|
-
active: "active",
|
|
50
|
-
checked: "checked",
|
|
51
|
-
completed: "completed",
|
|
52
|
-
disabled: "disabled",
|
|
53
|
-
readOnly: "readOnly",
|
|
54
|
-
error: "error",
|
|
55
|
-
expanded: "expanded",
|
|
56
|
-
focused: "focused",
|
|
57
|
-
focusVisible: "focusVisible",
|
|
58
|
-
required: "required",
|
|
59
|
-
selected: "selected"
|
|
60
|
-
};
|
|
61
|
-
function Lr(e, r, t = "Mui") {
|
|
62
|
-
const n = Wr[r];
|
|
63
|
-
return n ? `${t}-${n}` : `${Vr.generate(e)}-${r}`;
|
|
64
|
-
}
|
|
65
|
-
function Gr(e) {
|
|
66
|
-
var r = /* @__PURE__ */ Object.create(null);
|
|
67
|
-
return function(t) {
|
|
68
|
-
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function Fr(e) {
|
|
72
|
-
if (e.sheet)
|
|
73
|
-
return e.sheet;
|
|
74
|
-
for (var r = 0; r < document.styleSheets.length; r++)
|
|
75
|
-
if (document.styleSheets[r].ownerNode === e)
|
|
76
|
-
return document.styleSheets[r];
|
|
77
|
-
}
|
|
78
|
-
function Yr(e) {
|
|
79
|
-
var r = document.createElement("style");
|
|
80
|
-
return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
|
|
81
|
-
}
|
|
82
|
-
var Hr = /* @__PURE__ */ function() {
|
|
83
|
-
function e(t) {
|
|
84
|
-
var n = this;
|
|
85
|
-
this._insertTag = function(o) {
|
|
86
|
-
var s;
|
|
87
|
-
n.tags.length === 0 ? n.insertionPoint ? s = n.insertionPoint.nextSibling : n.prepend ? s = n.container.firstChild : s = n.before : s = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(o, s), n.tags.push(o);
|
|
88
|
-
}, this.isSpeedy = t.speedy === void 0 ? process.env.NODE_ENV === "production" : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
|
|
89
|
-
}
|
|
90
|
-
var r = e.prototype;
|
|
91
|
-
return r.hydrate = function(n) {
|
|
92
|
-
n.forEach(this._insertTag);
|
|
93
|
-
}, r.insert = function(n) {
|
|
94
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Yr(this));
|
|
95
|
-
var o = this.tags[this.tags.length - 1];
|
|
96
|
-
if (process.env.NODE_ENV !== "production") {
|
|
97
|
-
var s = n.charCodeAt(0) === 64 && n.charCodeAt(1) === 105;
|
|
98
|
-
s && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
|
|
99
|
-
` + n + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !s;
|
|
100
|
-
}
|
|
101
|
-
if (this.isSpeedy) {
|
|
102
|
-
var i = Fr(o);
|
|
103
|
-
try {
|
|
104
|
-
i.insertRule(n, i.cssRules.length);
|
|
105
|
-
} catch (a) {
|
|
106
|
-
process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n) && console.error('There was a problem inserting the following rule: "' + n + '"', a);
|
|
107
|
-
}
|
|
108
|
-
} else
|
|
109
|
-
o.appendChild(document.createTextNode(n));
|
|
110
|
-
this.ctr++;
|
|
111
|
-
}, r.flush = function() {
|
|
112
|
-
this.tags.forEach(function(n) {
|
|
113
|
-
return n.parentNode && n.parentNode.removeChild(n);
|
|
114
|
-
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
115
|
-
}, e;
|
|
116
|
-
}(), k = "-ms-", be = "-moz-", b = "-webkit-", Ue = "comm", Ke = "rule", ze = "decl", To = "@media", qr = "@import", Io = "@supports", Er = "@keyframes", Jr = Math.abs, Ee = String.fromCharCode, Xr = Object.assign;
|
|
117
|
-
function Zr(e, r) {
|
|
118
|
-
return A(e, 0) ^ 45 ? (((r << 2 ^ A(e, 0)) << 2 ^ A(e, 1)) << 2 ^ A(e, 2)) << 2 ^ A(e, 3) : 0;
|
|
119
|
-
}
|
|
120
|
-
function wr(e) {
|
|
121
|
-
return e.trim();
|
|
122
|
-
}
|
|
123
|
-
function Qr(e, r) {
|
|
124
|
-
return (e = r.exec(e)) ? e[0] : e;
|
|
125
|
-
}
|
|
126
|
-
function v(e, r, t) {
|
|
127
|
-
return e.replace(r, t);
|
|
128
|
-
}
|
|
129
|
-
function Be(e, r) {
|
|
130
|
-
return e.indexOf(r);
|
|
131
|
-
}
|
|
132
|
-
function A(e, r) {
|
|
133
|
-
return e.charCodeAt(r) | 0;
|
|
134
|
-
}
|
|
135
|
-
function ae(e, r, t) {
|
|
136
|
-
return e.slice(r, t);
|
|
137
|
-
}
|
|
138
|
-
function B(e) {
|
|
139
|
-
return e.length;
|
|
140
|
-
}
|
|
141
|
-
function Ve(e) {
|
|
142
|
-
return e.length;
|
|
143
|
-
}
|
|
144
|
-
function he(e, r) {
|
|
145
|
-
return r.push(e), e;
|
|
146
|
-
}
|
|
147
|
-
function et(e, r) {
|
|
148
|
-
return e.map(r).join("");
|
|
149
|
-
}
|
|
150
|
-
var we = 1, ee = 1, Or = 0, T = 0, S = 0, te = "";
|
|
151
|
-
function Oe(e, r, t, n, o, s, i) {
|
|
152
|
-
return { value: e, root: r, parent: t, type: n, props: o, children: s, line: we, column: ee, length: i, return: "" };
|
|
153
|
-
}
|
|
154
|
-
function oe(e, r) {
|
|
155
|
-
return Xr(Oe("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
156
|
-
}
|
|
157
|
-
function rt() {
|
|
158
|
-
return S;
|
|
159
|
-
}
|
|
160
|
-
function tt() {
|
|
161
|
-
return S = T > 0 ? A(te, --T) : 0, ee--, S === 10 && (ee = 1, we--), S;
|
|
162
|
-
}
|
|
163
|
-
function R() {
|
|
164
|
-
return S = T < Or ? A(te, T++) : 0, ee++, S === 10 && (ee = 1, we++), S;
|
|
165
|
-
}
|
|
166
|
-
function U() {
|
|
167
|
-
return A(te, T);
|
|
168
|
-
}
|
|
169
|
-
function me() {
|
|
170
|
-
return T;
|
|
171
|
-
}
|
|
172
|
-
function de(e, r) {
|
|
173
|
-
return ae(te, e, r);
|
|
174
|
-
}
|
|
175
|
-
function ce(e) {
|
|
176
|
-
switch (e) {
|
|
177
|
-
case 0:
|
|
178
|
-
case 9:
|
|
179
|
-
case 10:
|
|
180
|
-
case 13:
|
|
181
|
-
case 32:
|
|
182
|
-
return 5;
|
|
183
|
-
case 33:
|
|
184
|
-
case 43:
|
|
185
|
-
case 44:
|
|
186
|
-
case 47:
|
|
187
|
-
case 62:
|
|
188
|
-
case 64:
|
|
189
|
-
case 126:
|
|
190
|
-
case 59:
|
|
191
|
-
case 123:
|
|
192
|
-
case 125:
|
|
193
|
-
return 4;
|
|
194
|
-
case 58:
|
|
195
|
-
return 3;
|
|
196
|
-
case 34:
|
|
197
|
-
case 39:
|
|
198
|
-
case 40:
|
|
199
|
-
case 91:
|
|
200
|
-
return 2;
|
|
201
|
-
case 41:
|
|
202
|
-
case 93:
|
|
203
|
-
return 1;
|
|
204
|
-
}
|
|
205
|
-
return 0;
|
|
206
|
-
}
|
|
207
|
-
function $r(e) {
|
|
208
|
-
return we = ee = 1, Or = B(te = e), T = 0, [];
|
|
209
|
-
}
|
|
210
|
-
function Nr(e) {
|
|
211
|
-
return te = "", e;
|
|
212
|
-
}
|
|
213
|
-
function ge(e) {
|
|
214
|
-
return wr(de(T - 1, je(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
215
|
-
}
|
|
216
|
-
function nt(e) {
|
|
217
|
-
for (; (S = U()) && S < 33; )
|
|
218
|
-
R();
|
|
219
|
-
return ce(e) > 2 || ce(S) > 3 ? "" : " ";
|
|
220
|
-
}
|
|
221
|
-
function ot(e, r) {
|
|
222
|
-
for (; --r && R() && !(S < 48 || S > 102 || S > 57 && S < 65 || S > 70 && S < 97); )
|
|
223
|
-
;
|
|
224
|
-
return de(e, me() + (r < 6 && U() == 32 && R() == 32));
|
|
225
|
-
}
|
|
226
|
-
function je(e) {
|
|
227
|
-
for (; R(); )
|
|
228
|
-
switch (S) {
|
|
229
|
-
case e:
|
|
230
|
-
return T;
|
|
231
|
-
case 34:
|
|
232
|
-
case 39:
|
|
233
|
-
e !== 34 && e !== 39 && je(S);
|
|
234
|
-
break;
|
|
235
|
-
case 40:
|
|
236
|
-
e === 41 && je(e);
|
|
237
|
-
break;
|
|
238
|
-
case 92:
|
|
239
|
-
R();
|
|
240
|
-
break;
|
|
241
|
-
}
|
|
242
|
-
return T;
|
|
243
|
-
}
|
|
244
|
-
function st(e, r) {
|
|
245
|
-
for (; R() && e + S !== 47 + 10; )
|
|
246
|
-
if (e + S === 42 + 42 && U() === 47)
|
|
247
|
-
break;
|
|
248
|
-
return "/*" + de(r, T - 1) + "*" + Ee(e === 47 ? e : R());
|
|
249
|
-
}
|
|
250
|
-
function it(e) {
|
|
251
|
-
for (; !ce(U()); )
|
|
252
|
-
R();
|
|
253
|
-
return de(e, T);
|
|
254
|
-
}
|
|
255
|
-
function at(e) {
|
|
256
|
-
return Nr(ye("", null, null, null, [""], e = $r(e), 0, [0], e));
|
|
257
|
-
}
|
|
258
|
-
function ye(e, r, t, n, o, s, i, a, f) {
|
|
259
|
-
for (var d = 0, l = 0, p = i, c = 0, m = 0, h = 0, u = 1, g = 1, y = 1, O = 0, _ = "", W = o, P = s, M = n, E = _; g; )
|
|
260
|
-
switch (h = O, O = R()) {
|
|
261
|
-
case 40:
|
|
262
|
-
if (h != 108 && A(E, p - 1) == 58) {
|
|
263
|
-
Be(E += v(ge(O), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
264
|
-
break;
|
|
265
|
-
}
|
|
266
|
-
case 34:
|
|
267
|
-
case 39:
|
|
268
|
-
case 91:
|
|
269
|
-
E += ge(O);
|
|
270
|
-
break;
|
|
271
|
-
case 9:
|
|
272
|
-
case 10:
|
|
273
|
-
case 13:
|
|
274
|
-
case 32:
|
|
275
|
-
E += nt(h);
|
|
276
|
-
break;
|
|
277
|
-
case 92:
|
|
278
|
-
E += ot(me() - 1, 7);
|
|
279
|
-
continue;
|
|
280
|
-
case 47:
|
|
281
|
-
switch (U()) {
|
|
282
|
-
case 42:
|
|
283
|
-
case 47:
|
|
284
|
-
he(ct(st(R(), me()), r, t), f);
|
|
285
|
-
break;
|
|
286
|
-
default:
|
|
287
|
-
E += "/";
|
|
288
|
-
}
|
|
289
|
-
break;
|
|
290
|
-
case 123 * u:
|
|
291
|
-
a[d++] = B(E) * y;
|
|
292
|
-
case 125 * u:
|
|
293
|
-
case 59:
|
|
294
|
-
case 0:
|
|
295
|
-
switch (O) {
|
|
296
|
-
case 0:
|
|
297
|
-
case 125:
|
|
298
|
-
g = 0;
|
|
299
|
-
case 59 + l:
|
|
300
|
-
y == -1 && (E = v(E, /\f/g, "")), m > 0 && B(E) - p && he(m > 32 ? Ze(E + ";", n, t, p - 1) : Ze(v(E, " ", "") + ";", n, t, p - 2), f);
|
|
301
|
-
break;
|
|
302
|
-
case 59:
|
|
303
|
-
E += ";";
|
|
304
|
-
default:
|
|
305
|
-
if (he(M = Xe(E, r, t, d, l, o, a, _, W = [], P = [], p), s), O === 123)
|
|
306
|
-
if (l === 0)
|
|
307
|
-
ye(E, r, M, M, W, s, p, a, P);
|
|
308
|
-
else
|
|
309
|
-
switch (c === 99 && A(E, 3) === 110 ? 100 : c) {
|
|
310
|
-
case 100:
|
|
311
|
-
case 109:
|
|
312
|
-
case 115:
|
|
313
|
-
ye(e, M, M, n && he(Xe(e, M, M, 0, 0, o, a, _, o, W = [], p), P), o, P, p, a, n ? W : P);
|
|
314
|
-
break;
|
|
315
|
-
default:
|
|
316
|
-
ye(E, M, M, M, [""], P, 0, a, P);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
d = l = m = 0, u = y = 1, _ = E = "", p = i;
|
|
320
|
-
break;
|
|
321
|
-
case 58:
|
|
322
|
-
p = 1 + B(E), m = h;
|
|
323
|
-
default:
|
|
324
|
-
if (u < 1) {
|
|
325
|
-
if (O == 123)
|
|
326
|
-
--u;
|
|
327
|
-
else if (O == 125 && u++ == 0 && tt() == 125)
|
|
328
|
-
continue;
|
|
329
|
-
}
|
|
330
|
-
switch (E += Ee(O), O * u) {
|
|
331
|
-
case 38:
|
|
332
|
-
y = l > 0 ? 1 : (E += "\f", -1);
|
|
333
|
-
break;
|
|
334
|
-
case 44:
|
|
335
|
-
a[d++] = (B(E) - 1) * y, y = 1;
|
|
336
|
-
break;
|
|
337
|
-
case 64:
|
|
338
|
-
U() === 45 && (E += ge(R())), c = U(), l = p = B(_ = E += it(me())), O++;
|
|
339
|
-
break;
|
|
340
|
-
case 45:
|
|
341
|
-
h === 45 && B(E) == 2 && (u = 0);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
return s;
|
|
345
|
-
}
|
|
346
|
-
function Xe(e, r, t, n, o, s, i, a, f, d, l) {
|
|
347
|
-
for (var p = o - 1, c = o === 0 ? s : [""], m = Ve(c), h = 0, u = 0, g = 0; h < n; ++h)
|
|
348
|
-
for (var y = 0, O = ae(e, p + 1, p = Jr(u = i[h])), _ = e; y < m; ++y)
|
|
349
|
-
(_ = wr(u > 0 ? c[y] + " " + O : v(O, /&\f/g, c[y]))) && (f[g++] = _);
|
|
350
|
-
return Oe(e, r, t, o === 0 ? Ke : a, f, d, l);
|
|
351
|
-
}
|
|
352
|
-
function ct(e, r, t) {
|
|
353
|
-
return Oe(e, r, t, Ue, Ee(rt()), ae(e, 2, -2), 0);
|
|
354
|
-
}
|
|
355
|
-
function Ze(e, r, t, n) {
|
|
356
|
-
return Oe(e, r, t, ze, ae(e, 0, n), ae(e, n + 1, -1), n);
|
|
357
|
-
}
|
|
358
|
-
function X(e, r) {
|
|
359
|
-
for (var t = "", n = Ve(e), o = 0; o < n; o++)
|
|
360
|
-
t += r(e[o], o, e, r) || "";
|
|
361
|
-
return t;
|
|
362
|
-
}
|
|
363
|
-
function ut(e, r, t, n) {
|
|
364
|
-
switch (e.type) {
|
|
365
|
-
case qr:
|
|
366
|
-
case ze:
|
|
367
|
-
return e.return = e.return || e.value;
|
|
368
|
-
case Ue:
|
|
369
|
-
return "";
|
|
370
|
-
case Er:
|
|
371
|
-
return e.return = e.value + "{" + X(e.children, n) + "}";
|
|
372
|
-
case Ke:
|
|
373
|
-
e.value = e.props.join(",");
|
|
374
|
-
}
|
|
375
|
-
return B(t = X(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
|
|
376
|
-
}
|
|
377
|
-
function ft(e) {
|
|
378
|
-
var r = Ve(e);
|
|
379
|
-
return function(t, n, o, s) {
|
|
380
|
-
for (var i = "", a = 0; a < r; a++)
|
|
381
|
-
i += e[a](t, n, o, s) || "";
|
|
382
|
-
return i;
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
function dt(e) {
|
|
386
|
-
return function(r) {
|
|
387
|
-
r.root || (r = r.return) && e(r);
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
var lt = function(r, t, n) {
|
|
391
|
-
for (var o = 0, s = 0; o = s, s = U(), o === 38 && s === 12 && (t[n] = 1), !ce(s); )
|
|
392
|
-
R();
|
|
393
|
-
return de(r, T);
|
|
394
|
-
}, pt = function(r, t) {
|
|
395
|
-
var n = -1, o = 44;
|
|
396
|
-
do
|
|
397
|
-
switch (ce(o)) {
|
|
398
|
-
case 0:
|
|
399
|
-
o === 38 && U() === 12 && (t[n] = 1), r[n] += lt(T - 1, t, n);
|
|
400
|
-
break;
|
|
401
|
-
case 2:
|
|
402
|
-
r[n] += ge(o);
|
|
403
|
-
break;
|
|
404
|
-
case 4:
|
|
405
|
-
if (o === 44) {
|
|
406
|
-
r[++n] = U() === 58 ? "&\f" : "", t[n] = r[n].length;
|
|
407
|
-
break;
|
|
408
|
-
}
|
|
409
|
-
default:
|
|
410
|
-
r[n] += Ee(o);
|
|
411
|
-
}
|
|
412
|
-
while (o = R());
|
|
413
|
-
return r;
|
|
414
|
-
}, ht = function(r, t) {
|
|
415
|
-
return Nr(pt($r(r), t));
|
|
416
|
-
}, Qe = /* @__PURE__ */ new WeakMap(), mt = function(r) {
|
|
417
|
-
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
418
|
-
// negative .length indicates that this rule has been already prefixed
|
|
419
|
-
r.length < 1)) {
|
|
420
|
-
for (var t = r.value, n = r.parent, o = r.column === n.column && r.line === n.line; n.type !== "rule"; )
|
|
421
|
-
if (n = n.parent, !n)
|
|
422
|
-
return;
|
|
423
|
-
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Qe.get(n)) && !o) {
|
|
424
|
-
Qe.set(r, !0);
|
|
425
|
-
for (var s = [], i = ht(t, s), a = n.props, f = 0, d = 0; f < i.length; f++)
|
|
426
|
-
for (var l = 0; l < a.length; l++, d++)
|
|
427
|
-
r.props[d] = s[f] ? i[f].replace(/&\f/g, a[l]) : a[l] + " " + i[f];
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}, gt = function(r) {
|
|
431
|
-
if (r.type === "decl") {
|
|
432
|
-
var t = r.value;
|
|
433
|
-
// charcode for l
|
|
434
|
-
t.charCodeAt(0) === 108 && // charcode for b
|
|
435
|
-
t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
|
|
436
|
-
}
|
|
437
|
-
}, yt = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", bt = function(r) {
|
|
438
|
-
return r.type === "comm" && r.children.indexOf(yt) > -1;
|
|
439
|
-
}, vt = function(r) {
|
|
440
|
-
return function(t, n, o) {
|
|
441
|
-
if (!(t.type !== "rule" || r.compat)) {
|
|
442
|
-
var s = t.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
443
|
-
if (s) {
|
|
444
|
-
for (var i = !!t.parent, a = i ? t.parent.children : (
|
|
445
|
-
// global rule at the root level
|
|
446
|
-
o
|
|
447
|
-
), f = a.length - 1; f >= 0; f--) {
|
|
448
|
-
var d = a[f];
|
|
449
|
-
if (d.line < t.line)
|
|
450
|
-
break;
|
|
451
|
-
if (d.column < t.column) {
|
|
452
|
-
if (bt(d))
|
|
453
|
-
return;
|
|
454
|
-
break;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
s.forEach(function(l) {
|
|
458
|
-
console.error('The pseudo class "' + l + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + l.split("-child")[0] + '-of-type".');
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
|
-
}, Sr = function(r) {
|
|
464
|
-
return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;
|
|
465
|
-
}, xt = function(r, t) {
|
|
466
|
-
for (var n = r - 1; n >= 0; n--)
|
|
467
|
-
if (!Sr(t[n]))
|
|
468
|
-
return !0;
|
|
469
|
-
return !1;
|
|
470
|
-
}, er = function(r) {
|
|
471
|
-
r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
|
|
472
|
-
}, Et = function(r, t, n) {
|
|
473
|
-
Sr(r) && (r.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), er(r)) : xt(t, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), er(r)));
|
|
474
|
-
};
|
|
475
|
-
function Ar(e, r) {
|
|
476
|
-
switch (Zr(e, r)) {
|
|
477
|
-
case 5103:
|
|
478
|
-
return b + "print-" + e + e;
|
|
479
|
-
case 5737:
|
|
480
|
-
case 4201:
|
|
481
|
-
case 3177:
|
|
482
|
-
case 3433:
|
|
483
|
-
case 1641:
|
|
484
|
-
case 4457:
|
|
485
|
-
case 2921:
|
|
486
|
-
case 5572:
|
|
487
|
-
case 6356:
|
|
488
|
-
case 5844:
|
|
489
|
-
case 3191:
|
|
490
|
-
case 6645:
|
|
491
|
-
case 3005:
|
|
492
|
-
case 6391:
|
|
493
|
-
case 5879:
|
|
494
|
-
case 5623:
|
|
495
|
-
case 6135:
|
|
496
|
-
case 4599:
|
|
497
|
-
case 4855:
|
|
498
|
-
case 4215:
|
|
499
|
-
case 6389:
|
|
500
|
-
case 5109:
|
|
501
|
-
case 5365:
|
|
502
|
-
case 5621:
|
|
503
|
-
case 3829:
|
|
504
|
-
return b + e + e;
|
|
505
|
-
case 5349:
|
|
506
|
-
case 4246:
|
|
507
|
-
case 4810:
|
|
508
|
-
case 6968:
|
|
509
|
-
case 2756:
|
|
510
|
-
return b + e + be + e + k + e + e;
|
|
511
|
-
case 6828:
|
|
512
|
-
case 4268:
|
|
513
|
-
return b + e + k + e + e;
|
|
514
|
-
case 6165:
|
|
515
|
-
return b + e + k + "flex-" + e + e;
|
|
516
|
-
case 5187:
|
|
517
|
-
return b + e + v(e, /(\w+).+(:[^]+)/, b + "box-$1$2" + k + "flex-$1$2") + e;
|
|
518
|
-
case 5443:
|
|
519
|
-
return b + e + k + "flex-item-" + v(e, /flex-|-self/, "") + e;
|
|
520
|
-
case 4675:
|
|
521
|
-
return b + e + k + "flex-line-pack" + v(e, /align-content|flex-|-self/, "") + e;
|
|
522
|
-
case 5548:
|
|
523
|
-
return b + e + k + v(e, "shrink", "negative") + e;
|
|
524
|
-
case 5292:
|
|
525
|
-
return b + e + k + v(e, "basis", "preferred-size") + e;
|
|
526
|
-
case 6060:
|
|
527
|
-
return b + "box-" + v(e, "-grow", "") + b + e + k + v(e, "grow", "positive") + e;
|
|
528
|
-
case 4554:
|
|
529
|
-
return b + v(e, /([^-])(transform)/g, "$1" + b + "$2") + e;
|
|
530
|
-
case 6187:
|
|
531
|
-
return v(v(v(e, /(zoom-|grab)/, b + "$1"), /(image-set)/, b + "$1"), e, "") + e;
|
|
532
|
-
case 5495:
|
|
533
|
-
case 3959:
|
|
534
|
-
return v(e, /(image-set\([^]*)/, b + "$1$`$1");
|
|
535
|
-
case 4968:
|
|
536
|
-
return v(v(e, /(.+:)(flex-)?(.*)/, b + "box-pack:$3" + k + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + b + e + e;
|
|
537
|
-
case 4095:
|
|
538
|
-
case 3583:
|
|
539
|
-
case 4068:
|
|
540
|
-
case 2532:
|
|
541
|
-
return v(e, /(.+)-inline(.+)/, b + "$1$2") + e;
|
|
542
|
-
case 8116:
|
|
543
|
-
case 7059:
|
|
544
|
-
case 5753:
|
|
545
|
-
case 5535:
|
|
546
|
-
case 5445:
|
|
547
|
-
case 5701:
|
|
548
|
-
case 4933:
|
|
549
|
-
case 4677:
|
|
550
|
-
case 5533:
|
|
551
|
-
case 5789:
|
|
552
|
-
case 5021:
|
|
553
|
-
case 4765:
|
|
554
|
-
if (B(e) - 1 - r > 6)
|
|
555
|
-
switch (A(e, r + 1)) {
|
|
556
|
-
case 109:
|
|
557
|
-
if (A(e, r + 4) !== 45)
|
|
558
|
-
break;
|
|
559
|
-
case 102:
|
|
560
|
-
return v(e, /(.+:)(.+)-([^]+)/, "$1" + b + "$2-$3$1" + be + (A(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
561
|
-
case 115:
|
|
562
|
-
return ~Be(e, "stretch") ? Ar(v(e, "stretch", "fill-available"), r) + e : e;
|
|
563
|
-
}
|
|
564
|
-
break;
|
|
565
|
-
case 4949:
|
|
566
|
-
if (A(e, r + 1) !== 115)
|
|
567
|
-
break;
|
|
568
|
-
case 6444:
|
|
569
|
-
switch (A(e, B(e) - 3 - (~Be(e, "!important") && 10))) {
|
|
570
|
-
case 107:
|
|
571
|
-
return v(e, ":", ":" + b) + e;
|
|
572
|
-
case 101:
|
|
573
|
-
return v(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + b + (A(e, 14) === 45 ? "inline-" : "") + "box$3$1" + b + "$2$3$1" + k + "$2box$3") + e;
|
|
574
|
-
}
|
|
575
|
-
break;
|
|
576
|
-
case 5936:
|
|
577
|
-
switch (A(e, r + 11)) {
|
|
578
|
-
case 114:
|
|
579
|
-
return b + e + k + v(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
580
|
-
case 108:
|
|
581
|
-
return b + e + k + v(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
582
|
-
case 45:
|
|
583
|
-
return b + e + k + v(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
584
|
-
}
|
|
585
|
-
return b + e + k + e + e;
|
|
586
|
-
}
|
|
587
|
-
return e;
|
|
588
|
-
}
|
|
589
|
-
var wt = function(r, t, n, o) {
|
|
590
|
-
if (r.length > -1 && !r.return)
|
|
591
|
-
switch (r.type) {
|
|
592
|
-
case ze:
|
|
593
|
-
r.return = Ar(r.value, r.length);
|
|
594
|
-
break;
|
|
595
|
-
case Er:
|
|
596
|
-
return X([oe(r, {
|
|
597
|
-
value: v(r.value, "@", "@" + b)
|
|
598
|
-
})], o);
|
|
599
|
-
case Ke:
|
|
600
|
-
if (r.length)
|
|
601
|
-
return et(r.props, function(s) {
|
|
602
|
-
switch (Qr(s, /(::plac\w+|:read-\w+)/)) {
|
|
603
|
-
case ":read-only":
|
|
604
|
-
case ":read-write":
|
|
605
|
-
return X([oe(r, {
|
|
606
|
-
props: [v(s, /:(read-\w+)/, ":" + be + "$1")]
|
|
607
|
-
})], o);
|
|
608
|
-
case "::placeholder":
|
|
609
|
-
return X([oe(r, {
|
|
610
|
-
props: [v(s, /:(plac\w+)/, ":" + b + "input-$1")]
|
|
611
|
-
}), oe(r, {
|
|
612
|
-
props: [v(s, /:(plac\w+)/, ":" + be + "$1")]
|
|
613
|
-
}), oe(r, {
|
|
614
|
-
props: [v(s, /:(plac\w+)/, k + "input-$1")]
|
|
615
|
-
})], o);
|
|
616
|
-
}
|
|
617
|
-
return "";
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
}, Ot = [wt], $t = function(r) {
|
|
621
|
-
var t = r.key;
|
|
622
|
-
if (process.env.NODE_ENV !== "production" && !t)
|
|
623
|
-
throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
624
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);
|
|
625
|
-
if (t === "css") {
|
|
626
|
-
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
627
|
-
Array.prototype.forEach.call(n, function(u) {
|
|
628
|
-
var g = u.getAttribute("data-emotion");
|
|
629
|
-
g.indexOf(" ") !== -1 && (document.head.appendChild(u), u.setAttribute("data-s", ""));
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
var o = r.stylisPlugins || Ot;
|
|
633
|
-
if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(t))
|
|
634
|
-
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + t + '" was passed');
|
|
635
|
-
var s = {}, i, a = [];
|
|
636
|
-
i = r.container || document.head, Array.prototype.forEach.call(
|
|
637
|
-
// this means we will ignore elements which don't have a space in them which
|
|
638
|
-
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
639
|
-
document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
|
|
640
|
-
function(u) {
|
|
641
|
-
for (var g = u.getAttribute("data-emotion").split(" "), y = 1; y < g.length; y++)
|
|
642
|
-
s[g[y]] = !0;
|
|
643
|
-
a.push(u);
|
|
644
|
-
}
|
|
645
|
-
);
|
|
646
|
-
var f, d = [mt, gt];
|
|
647
|
-
process.env.NODE_ENV !== "production" && d.push(vt({
|
|
648
|
-
get compat() {
|
|
649
|
-
return h.compat;
|
|
650
|
-
}
|
|
651
|
-
}), Et);
|
|
652
|
-
{
|
|
653
|
-
var l, p = [ut, process.env.NODE_ENV !== "production" ? function(u) {
|
|
654
|
-
u.root || (u.return ? l.insert(u.return) : u.value && u.type !== Ue && l.insert(u.value + "{}"));
|
|
655
|
-
} : dt(function(u) {
|
|
656
|
-
l.insert(u);
|
|
657
|
-
})], c = ft(d.concat(o, p)), m = function(g) {
|
|
658
|
-
return X(at(g), c);
|
|
659
|
-
};
|
|
660
|
-
f = function(g, y, O, _) {
|
|
661
|
-
l = O, process.env.NODE_ENV !== "production" && y.map !== void 0 && (l = {
|
|
662
|
-
insert: function(P) {
|
|
663
|
-
O.insert(P + y.map);
|
|
664
|
-
}
|
|
665
|
-
}), m(g ? g + "{" + y.styles + "}" : y.styles), _ && (h.inserted[y.name] = !0);
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
var h = {
|
|
669
|
-
key: t,
|
|
670
|
-
sheet: new Hr({
|
|
671
|
-
key: t,
|
|
672
|
-
container: i,
|
|
673
|
-
nonce: r.nonce,
|
|
674
|
-
speedy: r.speedy,
|
|
675
|
-
prepend: r.prepend,
|
|
676
|
-
insertionPoint: r.insertionPoint
|
|
677
|
-
}),
|
|
678
|
-
nonce: r.nonce,
|
|
679
|
-
inserted: s,
|
|
680
|
-
registered: {},
|
|
681
|
-
insert: f
|
|
682
|
-
};
|
|
683
|
-
return h.sheet.hydrate(a), h;
|
|
684
|
-
}, Nt = !0;
|
|
685
|
-
function St(e, r, t) {
|
|
686
|
-
var n = "";
|
|
687
|
-
return t.split(" ").forEach(function(o) {
|
|
688
|
-
e[o] !== void 0 ? r.push(e[o] + ";") : n += o + " ";
|
|
689
|
-
}), n;
|
|
690
|
-
}
|
|
691
|
-
var Cr = function(r, t, n) {
|
|
692
|
-
var o = r.key + "-" + t.name;
|
|
693
|
-
// we only need to add the styles to the registered cache if the
|
|
694
|
-
// class name could be used further down
|
|
695
|
-
// the tree but if it's a string tag, we know it won't
|
|
696
|
-
// so we don't have to add it to registered cache.
|
|
697
|
-
// this improves memory usage since we can avoid storing the whole style string
|
|
698
|
-
(n === !1 || // we need to always store it if we're in compat mode and
|
|
699
|
-
// in node since emotion-server relies on whether a style is in
|
|
700
|
-
// the registered cache to know whether a style is global or not
|
|
701
|
-
// also, note that this check will be dead code eliminated in the browser
|
|
702
|
-
Nt === !1) && r.registered[o] === void 0 && (r.registered[o] = t.styles);
|
|
703
|
-
}, At = function(r, t, n) {
|
|
704
|
-
Cr(r, t, n);
|
|
705
|
-
var o = r.key + "-" + t.name;
|
|
706
|
-
if (r.inserted[t.name] === void 0) {
|
|
707
|
-
var s = t;
|
|
708
|
-
do
|
|
709
|
-
r.insert(t === s ? "." + o : "", s, r.sheet, !0), s = s.next;
|
|
710
|
-
while (s !== void 0);
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
function Ct(e) {
|
|
714
|
-
for (var r = 0, t, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
|
715
|
-
t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
|
|
716
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
|
|
717
|
-
t >>> 24, r = /* Math.imul(k, m): */
|
|
718
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
719
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
720
|
-
switch (o) {
|
|
721
|
-
case 3:
|
|
722
|
-
r ^= (e.charCodeAt(n + 2) & 255) << 16;
|
|
723
|
-
case 2:
|
|
724
|
-
r ^= (e.charCodeAt(n + 1) & 255) << 8;
|
|
725
|
-
case 1:
|
|
726
|
-
r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */
|
|
727
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
728
|
-
}
|
|
729
|
-
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
730
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
|
|
731
|
-
}
|
|
732
|
-
var kt = {
|
|
733
|
-
animationIterationCount: 1,
|
|
734
|
-
borderImageOutset: 1,
|
|
735
|
-
borderImageSlice: 1,
|
|
736
|
-
borderImageWidth: 1,
|
|
737
|
-
boxFlex: 1,
|
|
738
|
-
boxFlexGroup: 1,
|
|
739
|
-
boxOrdinalGroup: 1,
|
|
740
|
-
columnCount: 1,
|
|
741
|
-
columns: 1,
|
|
742
|
-
flex: 1,
|
|
743
|
-
flexGrow: 1,
|
|
744
|
-
flexPositive: 1,
|
|
745
|
-
flexShrink: 1,
|
|
746
|
-
flexNegative: 1,
|
|
747
|
-
flexOrder: 1,
|
|
748
|
-
gridRow: 1,
|
|
749
|
-
gridRowEnd: 1,
|
|
750
|
-
gridRowSpan: 1,
|
|
751
|
-
gridRowStart: 1,
|
|
752
|
-
gridColumn: 1,
|
|
753
|
-
gridColumnEnd: 1,
|
|
754
|
-
gridColumnSpan: 1,
|
|
755
|
-
gridColumnStart: 1,
|
|
756
|
-
msGridRow: 1,
|
|
757
|
-
msGridRowSpan: 1,
|
|
758
|
-
msGridColumn: 1,
|
|
759
|
-
msGridColumnSpan: 1,
|
|
760
|
-
fontWeight: 1,
|
|
761
|
-
lineHeight: 1,
|
|
762
|
-
opacity: 1,
|
|
763
|
-
order: 1,
|
|
764
|
-
orphans: 1,
|
|
765
|
-
tabSize: 1,
|
|
766
|
-
widows: 1,
|
|
767
|
-
zIndex: 1,
|
|
768
|
-
zoom: 1,
|
|
769
|
-
WebkitLineClamp: 1,
|
|
770
|
-
// SVG-related properties
|
|
771
|
-
fillOpacity: 1,
|
|
772
|
-
floodOpacity: 1,
|
|
773
|
-
stopOpacity: 1,
|
|
774
|
-
strokeDasharray: 1,
|
|
775
|
-
strokeDashoffset: 1,
|
|
776
|
-
strokeMiterlimit: 1,
|
|
777
|
-
strokeOpacity: 1,
|
|
778
|
-
strokeWidth: 1
|
|
779
|
-
}, rr = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
780
|
-
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
781
|
-
You can read more about this here:
|
|
782
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, _t = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Tt = /[A-Z]|^ms/g, kr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, We = function(r) {
|
|
783
|
-
return r.charCodeAt(1) === 45;
|
|
784
|
-
}, tr = function(r) {
|
|
785
|
-
return r != null && typeof r != "boolean";
|
|
786
|
-
}, Pe = /* @__PURE__ */ Gr(function(e) {
|
|
787
|
-
return We(e) ? e : e.replace(Tt, "-$&").toLowerCase();
|
|
788
|
-
}), ve = function(r, t) {
|
|
789
|
-
switch (r) {
|
|
790
|
-
case "animation":
|
|
791
|
-
case "animationName":
|
|
792
|
-
if (typeof t == "string")
|
|
793
|
-
return t.replace(kr, function(n, o, s) {
|
|
794
|
-
return D = {
|
|
795
|
-
name: o,
|
|
796
|
-
styles: s,
|
|
797
|
-
next: D
|
|
798
|
-
}, o;
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
return kt[r] !== 1 && !We(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
802
|
-
};
|
|
803
|
-
if (process.env.NODE_ENV !== "production") {
|
|
804
|
-
var It = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Rt = ["normal", "none", "initial", "inherit", "unset"], Pt = ve, Dt = /^-ms-/, Mt = /-(.)/g, nr = {};
|
|
805
|
-
ve = function(r, t) {
|
|
806
|
-
if (r === "content" && (typeof t != "string" || Rt.indexOf(t) === -1 && !It.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")))
|
|
807
|
-
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + t + "\"'`");
|
|
808
|
-
var n = Pt(r, t);
|
|
809
|
-
return n !== "" && !We(r) && r.indexOf("-") !== -1 && nr[r] === void 0 && (nr[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace(Dt, "ms-").replace(Mt, function(o, s) {
|
|
810
|
-
return s.toUpperCase();
|
|
811
|
-
}) + "?")), n;
|
|
812
|
-
};
|
|
813
|
-
}
|
|
814
|
-
var _r = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
815
|
-
function ue(e, r, t) {
|
|
816
|
-
if (t == null)
|
|
817
|
-
return "";
|
|
818
|
-
if (t.__emotion_styles !== void 0) {
|
|
819
|
-
if (process.env.NODE_ENV !== "production" && t.toString() === "NO_COMPONENT_SELECTOR")
|
|
820
|
-
throw new Error(_r);
|
|
821
|
-
return t;
|
|
822
|
-
}
|
|
823
|
-
switch (typeof t) {
|
|
824
|
-
case "boolean":
|
|
825
|
-
return "";
|
|
826
|
-
case "object": {
|
|
827
|
-
if (t.anim === 1)
|
|
828
|
-
return D = {
|
|
829
|
-
name: t.name,
|
|
830
|
-
styles: t.styles,
|
|
831
|
-
next: D
|
|
832
|
-
}, t.name;
|
|
833
|
-
if (t.styles !== void 0) {
|
|
834
|
-
var n = t.next;
|
|
835
|
-
if (n !== void 0)
|
|
836
|
-
for (; n !== void 0; )
|
|
837
|
-
D = {
|
|
838
|
-
name: n.name,
|
|
839
|
-
styles: n.styles,
|
|
840
|
-
next: D
|
|
841
|
-
}, n = n.next;
|
|
842
|
-
var o = t.styles + ";";
|
|
843
|
-
return process.env.NODE_ENV !== "production" && t.map !== void 0 && (o += t.map), o;
|
|
844
|
-
}
|
|
845
|
-
return Bt(e, r, t);
|
|
846
|
-
}
|
|
847
|
-
case "function": {
|
|
848
|
-
if (e !== void 0) {
|
|
849
|
-
var s = D, i = t(e);
|
|
850
|
-
return D = s, ue(e, r, i);
|
|
851
|
-
} else
|
|
852
|
-
process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
|
|
853
|
-
break;
|
|
854
|
-
}
|
|
855
|
-
case "string":
|
|
856
|
-
if (process.env.NODE_ENV !== "production") {
|
|
857
|
-
var a = [], f = t.replace(kr, function(l, p, c) {
|
|
858
|
-
var m = "animation" + a.length;
|
|
859
|
-
return a.push("const " + m + " = keyframes`" + c.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + m + "}";
|
|
860
|
-
});
|
|
861
|
-
a.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(a, ["`" + f + "`"]).join(`
|
|
862
|
-
`) + `
|
|
863
|
-
|
|
864
|
-
You should wrap it with \`css\` like this:
|
|
865
|
-
|
|
866
|
-
` + ("css`" + f + "`"));
|
|
867
|
-
}
|
|
868
|
-
break;
|
|
869
|
-
}
|
|
870
|
-
if (r == null)
|
|
871
|
-
return t;
|
|
872
|
-
var d = r[t];
|
|
873
|
-
return d !== void 0 ? d : t;
|
|
874
|
-
}
|
|
875
|
-
function Bt(e, r, t) {
|
|
876
|
-
var n = "";
|
|
877
|
-
if (Array.isArray(t))
|
|
878
|
-
for (var o = 0; o < t.length; o++)
|
|
879
|
-
n += ue(e, r, t[o]) + ";";
|
|
880
|
-
else
|
|
881
|
-
for (var s in t) {
|
|
882
|
-
var i = t[s];
|
|
883
|
-
if (typeof i != "object")
|
|
884
|
-
r != null && r[i] !== void 0 ? n += s + "{" + r[i] + "}" : tr(i) && (n += Pe(s) + ":" + ve(s, i) + ";");
|
|
885
|
-
else {
|
|
886
|
-
if (s === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
887
|
-
throw new Error(_r);
|
|
888
|
-
if (Array.isArray(i) && typeof i[0] == "string" && (r == null || r[i[0]] === void 0))
|
|
889
|
-
for (var a = 0; a < i.length; a++)
|
|
890
|
-
tr(i[a]) && (n += Pe(s) + ":" + ve(s, i[a]) + ";");
|
|
891
|
-
else {
|
|
892
|
-
var f = ue(e, r, i);
|
|
893
|
-
switch (s) {
|
|
894
|
-
case "animation":
|
|
895
|
-
case "animationName": {
|
|
896
|
-
n += Pe(s) + ":" + f + ";";
|
|
897
|
-
break;
|
|
898
|
-
}
|
|
899
|
-
default:
|
|
900
|
-
process.env.NODE_ENV !== "production" && s === "undefined" && console.error(_t), n += s + "{" + f + "}";
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
return n;
|
|
906
|
-
}
|
|
907
|
-
var or = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Tr;
|
|
908
|
-
process.env.NODE_ENV !== "production" && (Tr = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
909
|
-
var D, sr = function(r, t, n) {
|
|
910
|
-
if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
|
|
911
|
-
return r[0];
|
|
912
|
-
var o = !0, s = "";
|
|
913
|
-
D = void 0;
|
|
914
|
-
var i = r[0];
|
|
915
|
-
i == null || i.raw === void 0 ? (o = !1, s += ue(n, t, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(rr), s += i[0]);
|
|
916
|
-
for (var a = 1; a < r.length; a++)
|
|
917
|
-
s += ue(n, t, r[a]), o && (process.env.NODE_ENV !== "production" && i[a] === void 0 && console.error(rr), s += i[a]);
|
|
918
|
-
var f;
|
|
919
|
-
process.env.NODE_ENV !== "production" && (s = s.replace(Tr, function(c) {
|
|
920
|
-
return f = c, "";
|
|
921
|
-
})), or.lastIndex = 0;
|
|
922
|
-
for (var d = "", l; (l = or.exec(s)) !== null; )
|
|
923
|
-
d += "-" + // $FlowFixMe we know it's not null
|
|
924
|
-
l[1];
|
|
925
|
-
var p = Ct(s) + d;
|
|
926
|
-
return process.env.NODE_ENV !== "production" ? {
|
|
927
|
-
name: p,
|
|
928
|
-
styles: s,
|
|
929
|
-
map: f,
|
|
930
|
-
next: D,
|
|
931
|
-
toString: function() {
|
|
932
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
933
|
-
}
|
|
934
|
-
} : {
|
|
935
|
-
name: p,
|
|
936
|
-
styles: s,
|
|
937
|
-
next: D
|
|
938
|
-
};
|
|
939
|
-
}, jt = function(r) {
|
|
940
|
-
return r();
|
|
941
|
-
}, Ir = Me["useInsertionEffect"] ? Me["useInsertionEffect"] : !1, Ut = Ir || jt, Ro = Ir || Br, Kt = {}.hasOwnProperty, Le = /* @__PURE__ */ yr(
|
|
942
|
-
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
943
|
-
// because this module is primarily intended for the browser and node
|
|
944
|
-
// but it's also required in react native and similar environments sometimes
|
|
945
|
-
// and we could have a special build just for that
|
|
946
|
-
// but this is much easier and the native packages
|
|
947
|
-
// might use a different theme context in the future anyway
|
|
948
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */ $t({
|
|
949
|
-
key: "css"
|
|
950
|
-
}) : null
|
|
951
|
-
);
|
|
952
|
-
process.env.NODE_ENV !== "production" && (Le.displayName = "EmotionCacheContext");
|
|
953
|
-
var Po = Le.Provider, zt = function(r) {
|
|
954
|
-
return /* @__PURE__ */ jr(function(t, n) {
|
|
955
|
-
var o = br(Le);
|
|
956
|
-
return r(t, o, n);
|
|
957
|
-
});
|
|
958
|
-
}, Ge = /* @__PURE__ */ yr({});
|
|
959
|
-
process.env.NODE_ENV !== "production" && (Ge.displayName = "EmotionThemeContext");
|
|
960
|
-
var ir = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ar = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Vt = function(r) {
|
|
961
|
-
var t = r.cache, n = r.serialized, o = r.isStringTag;
|
|
962
|
-
return Cr(t, n, o), Ut(function() {
|
|
963
|
-
return At(t, n, o);
|
|
964
|
-
}), null;
|
|
965
|
-
}, Wt = /* @__PURE__ */ zt(function(e, r, t) {
|
|
966
|
-
var n = e.css;
|
|
967
|
-
typeof n == "string" && r.registered[n] !== void 0 && (n = r.registered[n]);
|
|
968
|
-
var o = e[ir], s = [n], i = "";
|
|
969
|
-
typeof e.className == "string" ? i = St(r.registered, s, e.className) : e.className != null && (i = e.className + " ");
|
|
970
|
-
var a = sr(s, void 0, br(Ge));
|
|
971
|
-
if (process.env.NODE_ENV !== "production" && a.name.indexOf("-") === -1) {
|
|
972
|
-
var f = e[ar];
|
|
973
|
-
f && (a = sr([a, "label:" + f + ";"]));
|
|
974
|
-
}
|
|
975
|
-
i += r.key + "-" + a.name;
|
|
976
|
-
var d = {};
|
|
977
|
-
for (var l in e)
|
|
978
|
-
Kt.call(e, l) && l !== "css" && l !== ir && (process.env.NODE_ENV === "production" || l !== ar) && (d[l] = e[l]);
|
|
979
|
-
return d.ref = t, d.className = i, /* @__PURE__ */ Re(Ur, null, /* @__PURE__ */ Re(Vt, {
|
|
980
|
-
cache: r,
|
|
981
|
-
serialized: a,
|
|
982
|
-
isStringTag: typeof o == "string"
|
|
983
|
-
}), /* @__PURE__ */ Re(o, d));
|
|
984
|
-
});
|
|
985
|
-
process.env.NODE_ENV !== "production" && (Wt.displayName = "EmotionCssPropInternal");
|
|
986
|
-
const Lt = ["values", "unit", "step"], Gt = (e) => {
|
|
987
|
-
const r = Object.keys(e).map((t) => ({
|
|
988
|
-
key: t,
|
|
989
|
-
val: e[t]
|
|
990
|
-
})) || [];
|
|
991
|
-
return r.sort((t, n) => t.val - n.val), r.reduce((t, n) => C({}, t, {
|
|
992
|
-
[n.key]: n.val
|
|
993
|
-
}), {});
|
|
994
|
-
};
|
|
995
|
-
function Ft(e) {
|
|
996
|
-
const {
|
|
997
|
-
// The breakpoint **start** at this value.
|
|
998
|
-
// For instance with the first breakpoint xs: [xs, sm).
|
|
999
|
-
values: r = {
|
|
1000
|
-
xs: 0,
|
|
1001
|
-
// phone
|
|
1002
|
-
sm: 600,
|
|
1003
|
-
// tablet
|
|
1004
|
-
md: 900,
|
|
1005
|
-
// small laptop
|
|
1006
|
-
lg: 1200,
|
|
1007
|
-
// desktop
|
|
1008
|
-
xl: 1536
|
|
1009
|
-
// large screen
|
|
1010
|
-
},
|
|
1011
|
-
unit: t = "px",
|
|
1012
|
-
step: n = 5
|
|
1013
|
-
} = e, o = re(e, Lt), s = Gt(r), i = Object.keys(s);
|
|
1014
|
-
function a(c) {
|
|
1015
|
-
return `@media (min-width:${typeof r[c] == "number" ? r[c] : c}${t})`;
|
|
1016
|
-
}
|
|
1017
|
-
function f(c) {
|
|
1018
|
-
return `@media (max-width:${(typeof r[c] == "number" ? r[c] : c) - n / 100}${t})`;
|
|
1019
|
-
}
|
|
1020
|
-
function d(c, m) {
|
|
1021
|
-
const h = i.indexOf(m);
|
|
1022
|
-
return `@media (min-width:${typeof r[c] == "number" ? r[c] : c}${t}) and (max-width:${(h !== -1 && typeof r[i[h]] == "number" ? r[i[h]] : m) - n / 100}${t})`;
|
|
1023
|
-
}
|
|
1024
|
-
function l(c) {
|
|
1025
|
-
return i.indexOf(c) + 1 < i.length ? d(c, i[i.indexOf(c) + 1]) : a(c);
|
|
1026
|
-
}
|
|
1027
|
-
function p(c) {
|
|
1028
|
-
const m = i.indexOf(c);
|
|
1029
|
-
return m === 0 ? a(i[1]) : m === i.length - 1 ? f(i[m]) : d(c, i[i.indexOf(c) + 1]).replace("@media", "@media not all and");
|
|
1030
|
-
}
|
|
1031
|
-
return C({
|
|
1032
|
-
keys: i,
|
|
1033
|
-
values: s,
|
|
1034
|
-
up: a,
|
|
1035
|
-
down: f,
|
|
1036
|
-
between: d,
|
|
1037
|
-
only: l,
|
|
1038
|
-
not: p,
|
|
1039
|
-
unit: t
|
|
1040
|
-
}, o);
|
|
1041
|
-
}
|
|
1042
|
-
const Yt = {
|
|
1043
|
-
borderRadius: 4
|
|
1044
|
-
}, Ht = Yt, qt = process.env.NODE_ENV !== "production" ? ne.oneOfType([ne.number, ne.string, ne.object, ne.array]) : {}, V = qt;
|
|
1045
|
-
function ie(e, r) {
|
|
1046
|
-
return r ? K(e, r, {
|
|
1047
|
-
clone: !1
|
|
1048
|
-
// No need to clone deep, it's way faster.
|
|
1049
|
-
}) : e;
|
|
1050
|
-
}
|
|
1051
|
-
const Fe = {
|
|
1052
|
-
xs: 0,
|
|
1053
|
-
// phone
|
|
1054
|
-
sm: 600,
|
|
1055
|
-
// tablet
|
|
1056
|
-
md: 900,
|
|
1057
|
-
// small laptop
|
|
1058
|
-
lg: 1200,
|
|
1059
|
-
// desktop
|
|
1060
|
-
xl: 1536
|
|
1061
|
-
// large screen
|
|
1062
|
-
}, cr = {
|
|
1063
|
-
// Sorted ASC by size. That's important.
|
|
1064
|
-
// It can't be configured as it's used statically for propTypes.
|
|
1065
|
-
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
1066
|
-
up: (e) => `@media (min-width:${Fe[e]}px)`
|
|
1067
|
-
};
|
|
1068
|
-
function z(e, r, t) {
|
|
1069
|
-
const n = e.theme || {};
|
|
1070
|
-
if (Array.isArray(r)) {
|
|
1071
|
-
const s = n.breakpoints || cr;
|
|
1072
|
-
return r.reduce((i, a, f) => (i[s.up(s.keys[f])] = t(r[f]), i), {});
|
|
1073
|
-
}
|
|
1074
|
-
if (typeof r == "object") {
|
|
1075
|
-
const s = n.breakpoints || cr;
|
|
1076
|
-
return Object.keys(r).reduce((i, a) => {
|
|
1077
|
-
if (Object.keys(s.values || Fe).indexOf(a) !== -1) {
|
|
1078
|
-
const f = s.up(a);
|
|
1079
|
-
i[f] = t(r[a], a);
|
|
1080
|
-
} else {
|
|
1081
|
-
const f = a;
|
|
1082
|
-
i[f] = r[f];
|
|
1083
|
-
}
|
|
1084
|
-
return i;
|
|
1085
|
-
}, {});
|
|
1086
|
-
}
|
|
1087
|
-
return t(r);
|
|
1088
|
-
}
|
|
1089
|
-
function Jt(e = {}) {
|
|
1090
|
-
var r;
|
|
1091
|
-
return ((r = e.keys) == null ? void 0 : r.reduce((n, o) => {
|
|
1092
|
-
const s = e.up(o);
|
|
1093
|
-
return n[s] = {}, n;
|
|
1094
|
-
}, {})) || {};
|
|
1095
|
-
}
|
|
1096
|
-
function Xt(e, r) {
|
|
1097
|
-
return e.reduce((t, n) => {
|
|
1098
|
-
const o = t[n];
|
|
1099
|
-
return (!o || Object.keys(o).length === 0) && delete t[n], t;
|
|
1100
|
-
}, r);
|
|
1101
|
-
}
|
|
1102
|
-
function Zt(e, r) {
|
|
1103
|
-
if (typeof e != "object")
|
|
1104
|
-
return {};
|
|
1105
|
-
const t = {}, n = Object.keys(r);
|
|
1106
|
-
return Array.isArray(e) ? n.forEach((o, s) => {
|
|
1107
|
-
s < e.length && (t[o] = !0);
|
|
1108
|
-
}) : n.forEach((o) => {
|
|
1109
|
-
e[o] != null && (t[o] = !0);
|
|
1110
|
-
}), t;
|
|
1111
|
-
}
|
|
1112
|
-
function Do({
|
|
1113
|
-
values: e,
|
|
1114
|
-
breakpoints: r,
|
|
1115
|
-
base: t
|
|
1116
|
-
}) {
|
|
1117
|
-
const n = t || Zt(e, r), o = Object.keys(n);
|
|
1118
|
-
if (o.length === 0)
|
|
1119
|
-
return e;
|
|
1120
|
-
let s;
|
|
1121
|
-
return o.reduce((i, a, f) => (Array.isArray(e) ? (i[a] = e[f] != null ? e[f] : e[s], s = f) : typeof e == "object" ? (i[a] = e[a] != null ? e[a] : e[s], s = a) : i[a] = e, i), {});
|
|
1122
|
-
}
|
|
1123
|
-
function $e(e, r, t = !0) {
|
|
1124
|
-
if (!r || typeof r != "string")
|
|
1125
|
-
return null;
|
|
1126
|
-
if (e && e.vars && t) {
|
|
1127
|
-
const n = `vars.${r}`.split(".").reduce((o, s) => o && o[s] ? o[s] : null, e);
|
|
1128
|
-
if (n != null)
|
|
1129
|
-
return n;
|
|
1130
|
-
}
|
|
1131
|
-
return r.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
|
|
1132
|
-
}
|
|
1133
|
-
function xe(e, r, t, n = t) {
|
|
1134
|
-
let o;
|
|
1135
|
-
return typeof e == "function" ? o = e(t) : Array.isArray(e) ? o = e[t] || n : o = $e(e, t) || n, r && (o = r(o, n, e)), o;
|
|
1136
|
-
}
|
|
1137
|
-
function x(e) {
|
|
1138
|
-
const {
|
|
1139
|
-
prop: r,
|
|
1140
|
-
cssProperty: t = e.prop,
|
|
1141
|
-
themeKey: n,
|
|
1142
|
-
transform: o
|
|
1143
|
-
} = e, s = (i) => {
|
|
1144
|
-
if (i[r] == null)
|
|
1145
|
-
return null;
|
|
1146
|
-
const a = i[r], f = i.theme, d = $e(f, n) || {};
|
|
1147
|
-
return z(i, a, (p) => {
|
|
1148
|
-
let c = xe(d, o, p);
|
|
1149
|
-
return p === c && typeof p == "string" && (c = xe(d, o, `${r}${p === "default" ? "" : xr(p)}`, p)), t === !1 ? c : {
|
|
1150
|
-
[t]: c
|
|
1151
|
-
};
|
|
1152
|
-
});
|
|
1153
|
-
};
|
|
1154
|
-
return s.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1155
|
-
[r]: V
|
|
1156
|
-
} : {}, s.filterProps = [r], s;
|
|
1157
|
-
}
|
|
1158
|
-
function Qt(e) {
|
|
1159
|
-
const r = {};
|
|
1160
|
-
return (t) => (r[t] === void 0 && (r[t] = e(t)), r[t]);
|
|
1161
|
-
}
|
|
1162
|
-
const en = {
|
|
1163
|
-
m: "margin",
|
|
1164
|
-
p: "padding"
|
|
1165
|
-
}, rn = {
|
|
1166
|
-
t: "Top",
|
|
1167
|
-
r: "Right",
|
|
1168
|
-
b: "Bottom",
|
|
1169
|
-
l: "Left",
|
|
1170
|
-
x: ["Left", "Right"],
|
|
1171
|
-
y: ["Top", "Bottom"]
|
|
1172
|
-
}, ur = {
|
|
1173
|
-
marginX: "mx",
|
|
1174
|
-
marginY: "my",
|
|
1175
|
-
paddingX: "px",
|
|
1176
|
-
paddingY: "py"
|
|
1177
|
-
}, tn = Qt((e) => {
|
|
1178
|
-
if (e.length > 2)
|
|
1179
|
-
if (ur[e])
|
|
1180
|
-
e = ur[e];
|
|
1181
|
-
else
|
|
1182
|
-
return [e];
|
|
1183
|
-
const [r, t] = e.split(""), n = en[r], o = rn[t] || "";
|
|
1184
|
-
return Array.isArray(o) ? o.map((s) => n + s) : [n + o];
|
|
1185
|
-
}), Ne = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Se = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], nn = [...Ne, ...Se];
|
|
1186
|
-
function le(e, r, t, n) {
|
|
1187
|
-
var o;
|
|
1188
|
-
const s = (o = $e(e, r, !1)) != null ? o : t;
|
|
1189
|
-
return typeof s == "number" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`), s * i) : Array.isArray(s) ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && (Number.isInteger(i) ? i > s.length - 1 && console.error([`MUI: The value provided (${i}) overflows.`, `The supported values are: ${JSON.stringify(s)}.`, `${i} > ${s.length - 1}, you need to add the missing values.`].join(`
|
|
1190
|
-
`)) : console.error([`MUI: The \`theme.${r}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${r}\` as a number.`].join(`
|
|
1191
|
-
`))), s[i]) : typeof s == "function" ? s : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${r}\` value (${s}) is invalid.`, "It should be a number, an array or a function."].join(`
|
|
1192
|
-
`)), () => {
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
function Rr(e) {
|
|
1196
|
-
return le(e, "spacing", 8, "spacing");
|
|
1197
|
-
}
|
|
1198
|
-
function pe(e, r) {
|
|
1199
|
-
if (typeof r == "string" || r == null)
|
|
1200
|
-
return r;
|
|
1201
|
-
const t = Math.abs(r), n = e(t);
|
|
1202
|
-
return r >= 0 ? n : typeof n == "number" ? -n : `-${n}`;
|
|
1203
|
-
}
|
|
1204
|
-
function on(e, r) {
|
|
1205
|
-
return (t) => e.reduce((n, o) => (n[o] = pe(r, t), n), {});
|
|
1206
|
-
}
|
|
1207
|
-
function sn(e, r, t, n) {
|
|
1208
|
-
if (r.indexOf(t) === -1)
|
|
1209
|
-
return null;
|
|
1210
|
-
const o = tn(t), s = on(o, n), i = e[t];
|
|
1211
|
-
return z(e, i, s);
|
|
1212
|
-
}
|
|
1213
|
-
function Pr(e, r) {
|
|
1214
|
-
const t = Rr(e.theme);
|
|
1215
|
-
return Object.keys(e).map((n) => sn(e, r, n, t)).reduce(ie, {});
|
|
1216
|
-
}
|
|
1217
|
-
function $(e) {
|
|
1218
|
-
return Pr(e, Ne);
|
|
1219
|
-
}
|
|
1220
|
-
$.propTypes = process.env.NODE_ENV !== "production" ? Ne.reduce((e, r) => (e[r] = V, e), {}) : {};
|
|
1221
|
-
$.filterProps = Ne;
|
|
1222
|
-
function N(e) {
|
|
1223
|
-
return Pr(e, Se);
|
|
1224
|
-
}
|
|
1225
|
-
N.propTypes = process.env.NODE_ENV !== "production" ? Se.reduce((e, r) => (e[r] = V, e), {}) : {};
|
|
1226
|
-
N.filterProps = Se;
|
|
1227
|
-
process.env.NODE_ENV !== "production" && nn.reduce((e, r) => (e[r] = V, e), {});
|
|
1228
|
-
function an(e = 8) {
|
|
1229
|
-
if (e.mui)
|
|
1230
|
-
return e;
|
|
1231
|
-
const r = Rr({
|
|
1232
|
-
spacing: e
|
|
1233
|
-
}), t = (...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) => {
|
|
1234
|
-
const i = r(s);
|
|
1235
|
-
return typeof i == "number" ? `${i}px` : i;
|
|
1236
|
-
}).join(" "));
|
|
1237
|
-
return t.mui = !0, t;
|
|
1238
|
-
}
|
|
1239
|
-
function Ae(...e) {
|
|
1240
|
-
const r = e.reduce((n, o) => (o.filterProps.forEach((s) => {
|
|
1241
|
-
n[s] = o;
|
|
1242
|
-
}), n), {}), t = (n) => Object.keys(n).reduce((o, s) => r[s] ? ie(o, r[s](n)) : o, {});
|
|
1243
|
-
return t.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, t.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), t;
|
|
1244
|
-
}
|
|
1245
|
-
function j(e) {
|
|
1246
|
-
return typeof e != "number" ? e : `${e}px solid`;
|
|
1247
|
-
}
|
|
1248
|
-
const cn = x({
|
|
1249
|
-
prop: "border",
|
|
1250
|
-
themeKey: "borders",
|
|
1251
|
-
transform: j
|
|
1252
|
-
}), un = x({
|
|
1253
|
-
prop: "borderTop",
|
|
1254
|
-
themeKey: "borders",
|
|
1255
|
-
transform: j
|
|
1256
|
-
}), fn = x({
|
|
1257
|
-
prop: "borderRight",
|
|
1258
|
-
themeKey: "borders",
|
|
1259
|
-
transform: j
|
|
1260
|
-
}), dn = x({
|
|
1261
|
-
prop: "borderBottom",
|
|
1262
|
-
themeKey: "borders",
|
|
1263
|
-
transform: j
|
|
1264
|
-
}), ln = x({
|
|
1265
|
-
prop: "borderLeft",
|
|
1266
|
-
themeKey: "borders",
|
|
1267
|
-
transform: j
|
|
1268
|
-
}), pn = x({
|
|
1269
|
-
prop: "borderColor",
|
|
1270
|
-
themeKey: "palette"
|
|
1271
|
-
}), hn = x({
|
|
1272
|
-
prop: "borderTopColor",
|
|
1273
|
-
themeKey: "palette"
|
|
1274
|
-
}), mn = x({
|
|
1275
|
-
prop: "borderRightColor",
|
|
1276
|
-
themeKey: "palette"
|
|
1277
|
-
}), gn = x({
|
|
1278
|
-
prop: "borderBottomColor",
|
|
1279
|
-
themeKey: "palette"
|
|
1280
|
-
}), yn = x({
|
|
1281
|
-
prop: "borderLeftColor",
|
|
1282
|
-
themeKey: "palette"
|
|
1283
|
-
}), Ce = (e) => {
|
|
1284
|
-
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
1285
|
-
const r = le(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
|
|
1286
|
-
borderRadius: pe(r, n)
|
|
1287
|
-
});
|
|
1288
|
-
return z(e, e.borderRadius, t);
|
|
1289
|
-
}
|
|
1290
|
-
return null;
|
|
1291
|
-
};
|
|
1292
|
-
Ce.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1293
|
-
borderRadius: V
|
|
1294
|
-
} : {};
|
|
1295
|
-
Ce.filterProps = ["borderRadius"];
|
|
1296
|
-
Ae(cn, un, fn, dn, ln, pn, hn, mn, gn, yn, Ce);
|
|
1297
|
-
const ke = (e) => {
|
|
1298
|
-
if (e.gap !== void 0 && e.gap !== null) {
|
|
1299
|
-
const r = le(e.theme, "spacing", 8, "gap"), t = (n) => ({
|
|
1300
|
-
gap: pe(r, n)
|
|
1301
|
-
});
|
|
1302
|
-
return z(e, e.gap, t);
|
|
1303
|
-
}
|
|
1304
|
-
return null;
|
|
1305
|
-
};
|
|
1306
|
-
ke.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1307
|
-
gap: V
|
|
1308
|
-
} : {};
|
|
1309
|
-
ke.filterProps = ["gap"];
|
|
1310
|
-
const _e = (e) => {
|
|
1311
|
-
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
1312
|
-
const r = le(e.theme, "spacing", 8, "columnGap"), t = (n) => ({
|
|
1313
|
-
columnGap: pe(r, n)
|
|
1314
|
-
});
|
|
1315
|
-
return z(e, e.columnGap, t);
|
|
1316
|
-
}
|
|
1317
|
-
return null;
|
|
1318
|
-
};
|
|
1319
|
-
_e.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1320
|
-
columnGap: V
|
|
1321
|
-
} : {};
|
|
1322
|
-
_e.filterProps = ["columnGap"];
|
|
1323
|
-
const Te = (e) => {
|
|
1324
|
-
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
1325
|
-
const r = le(e.theme, "spacing", 8, "rowGap"), t = (n) => ({
|
|
1326
|
-
rowGap: pe(r, n)
|
|
1327
|
-
});
|
|
1328
|
-
return z(e, e.rowGap, t);
|
|
1329
|
-
}
|
|
1330
|
-
return null;
|
|
1331
|
-
};
|
|
1332
|
-
Te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1333
|
-
rowGap: V
|
|
1334
|
-
} : {};
|
|
1335
|
-
Te.filterProps = ["rowGap"];
|
|
1336
|
-
const bn = x({
|
|
1337
|
-
prop: "gridColumn"
|
|
1338
|
-
}), vn = x({
|
|
1339
|
-
prop: "gridRow"
|
|
1340
|
-
}), xn = x({
|
|
1341
|
-
prop: "gridAutoFlow"
|
|
1342
|
-
}), En = x({
|
|
1343
|
-
prop: "gridAutoColumns"
|
|
1344
|
-
}), wn = x({
|
|
1345
|
-
prop: "gridAutoRows"
|
|
1346
|
-
}), On = x({
|
|
1347
|
-
prop: "gridTemplateColumns"
|
|
1348
|
-
}), $n = x({
|
|
1349
|
-
prop: "gridTemplateRows"
|
|
1350
|
-
}), Nn = x({
|
|
1351
|
-
prop: "gridTemplateAreas"
|
|
1352
|
-
}), Sn = x({
|
|
1353
|
-
prop: "gridArea"
|
|
1354
|
-
});
|
|
1355
|
-
Ae(ke, _e, Te, bn, vn, xn, En, wn, On, $n, Nn, Sn);
|
|
1356
|
-
function Z(e, r) {
|
|
1357
|
-
return r === "grey" ? r : e;
|
|
1358
|
-
}
|
|
1359
|
-
const An = x({
|
|
1360
|
-
prop: "color",
|
|
1361
|
-
themeKey: "palette",
|
|
1362
|
-
transform: Z
|
|
1363
|
-
}), Cn = x({
|
|
1364
|
-
prop: "bgcolor",
|
|
1365
|
-
cssProperty: "backgroundColor",
|
|
1366
|
-
themeKey: "palette",
|
|
1367
|
-
transform: Z
|
|
1368
|
-
}), kn = x({
|
|
1369
|
-
prop: "backgroundColor",
|
|
1370
|
-
themeKey: "palette",
|
|
1371
|
-
transform: Z
|
|
1372
|
-
});
|
|
1373
|
-
Ae(An, Cn, kn);
|
|
1374
|
-
function I(e) {
|
|
1375
|
-
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
1376
|
-
}
|
|
1377
|
-
const _n = x({
|
|
1378
|
-
prop: "width",
|
|
1379
|
-
transform: I
|
|
1380
|
-
}), Ye = (e) => {
|
|
1381
|
-
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
1382
|
-
const r = (t) => {
|
|
1383
|
-
var n, o, s;
|
|
1384
|
-
return {
|
|
1385
|
-
maxWidth: ((n = e.theme) == null || (o = n.breakpoints) == null || (s = o.values) == null ? void 0 : s[t]) || Fe[t] || I(t)
|
|
1386
|
-
};
|
|
1387
|
-
};
|
|
1388
|
-
return z(e, e.maxWidth, r);
|
|
1389
|
-
}
|
|
1390
|
-
return null;
|
|
1391
|
-
};
|
|
1392
|
-
Ye.filterProps = ["maxWidth"];
|
|
1393
|
-
const Tn = x({
|
|
1394
|
-
prop: "minWidth",
|
|
1395
|
-
transform: I
|
|
1396
|
-
}), In = x({
|
|
1397
|
-
prop: "height",
|
|
1398
|
-
transform: I
|
|
1399
|
-
}), Rn = x({
|
|
1400
|
-
prop: "maxHeight",
|
|
1401
|
-
transform: I
|
|
1402
|
-
}), Pn = x({
|
|
1403
|
-
prop: "minHeight",
|
|
1404
|
-
transform: I
|
|
1405
|
-
});
|
|
1406
|
-
x({
|
|
1407
|
-
prop: "size",
|
|
1408
|
-
cssProperty: "width",
|
|
1409
|
-
transform: I
|
|
1410
|
-
});
|
|
1411
|
-
x({
|
|
1412
|
-
prop: "size",
|
|
1413
|
-
cssProperty: "height",
|
|
1414
|
-
transform: I
|
|
1415
|
-
});
|
|
1416
|
-
const Dn = x({
|
|
1417
|
-
prop: "boxSizing"
|
|
1418
|
-
});
|
|
1419
|
-
Ae(_n, Ye, Tn, In, Rn, Pn, Dn);
|
|
1420
|
-
const Mn = {
|
|
1421
|
-
// borders
|
|
1422
|
-
border: {
|
|
1423
|
-
themeKey: "borders",
|
|
1424
|
-
transform: j
|
|
1425
|
-
},
|
|
1426
|
-
borderTop: {
|
|
1427
|
-
themeKey: "borders",
|
|
1428
|
-
transform: j
|
|
1429
|
-
},
|
|
1430
|
-
borderRight: {
|
|
1431
|
-
themeKey: "borders",
|
|
1432
|
-
transform: j
|
|
1433
|
-
},
|
|
1434
|
-
borderBottom: {
|
|
1435
|
-
themeKey: "borders",
|
|
1436
|
-
transform: j
|
|
1437
|
-
},
|
|
1438
|
-
borderLeft: {
|
|
1439
|
-
themeKey: "borders",
|
|
1440
|
-
transform: j
|
|
1441
|
-
},
|
|
1442
|
-
borderColor: {
|
|
1443
|
-
themeKey: "palette"
|
|
1444
|
-
},
|
|
1445
|
-
borderTopColor: {
|
|
1446
|
-
themeKey: "palette"
|
|
1447
|
-
},
|
|
1448
|
-
borderRightColor: {
|
|
1449
|
-
themeKey: "palette"
|
|
1450
|
-
},
|
|
1451
|
-
borderBottomColor: {
|
|
1452
|
-
themeKey: "palette"
|
|
1453
|
-
},
|
|
1454
|
-
borderLeftColor: {
|
|
1455
|
-
themeKey: "palette"
|
|
1456
|
-
},
|
|
1457
|
-
borderRadius: {
|
|
1458
|
-
themeKey: "shape.borderRadius",
|
|
1459
|
-
style: Ce
|
|
1460
|
-
},
|
|
1461
|
-
// palette
|
|
1462
|
-
color: {
|
|
1463
|
-
themeKey: "palette",
|
|
1464
|
-
transform: Z
|
|
1465
|
-
},
|
|
1466
|
-
bgcolor: {
|
|
1467
|
-
themeKey: "palette",
|
|
1468
|
-
cssProperty: "backgroundColor",
|
|
1469
|
-
transform: Z
|
|
1470
|
-
},
|
|
1471
|
-
backgroundColor: {
|
|
1472
|
-
themeKey: "palette",
|
|
1473
|
-
transform: Z
|
|
1474
|
-
},
|
|
1475
|
-
// spacing
|
|
1476
|
-
p: {
|
|
1477
|
-
style: N
|
|
1478
|
-
},
|
|
1479
|
-
pt: {
|
|
1480
|
-
style: N
|
|
1481
|
-
},
|
|
1482
|
-
pr: {
|
|
1483
|
-
style: N
|
|
1484
|
-
},
|
|
1485
|
-
pb: {
|
|
1486
|
-
style: N
|
|
1487
|
-
},
|
|
1488
|
-
pl: {
|
|
1489
|
-
style: N
|
|
1490
|
-
},
|
|
1491
|
-
px: {
|
|
1492
|
-
style: N
|
|
1493
|
-
},
|
|
1494
|
-
py: {
|
|
1495
|
-
style: N
|
|
1496
|
-
},
|
|
1497
|
-
padding: {
|
|
1498
|
-
style: N
|
|
1499
|
-
},
|
|
1500
|
-
paddingTop: {
|
|
1501
|
-
style: N
|
|
1502
|
-
},
|
|
1503
|
-
paddingRight: {
|
|
1504
|
-
style: N
|
|
1505
|
-
},
|
|
1506
|
-
paddingBottom: {
|
|
1507
|
-
style: N
|
|
1508
|
-
},
|
|
1509
|
-
paddingLeft: {
|
|
1510
|
-
style: N
|
|
1511
|
-
},
|
|
1512
|
-
paddingX: {
|
|
1513
|
-
style: N
|
|
1514
|
-
},
|
|
1515
|
-
paddingY: {
|
|
1516
|
-
style: N
|
|
1517
|
-
},
|
|
1518
|
-
paddingInline: {
|
|
1519
|
-
style: N
|
|
1520
|
-
},
|
|
1521
|
-
paddingInlineStart: {
|
|
1522
|
-
style: N
|
|
1523
|
-
},
|
|
1524
|
-
paddingInlineEnd: {
|
|
1525
|
-
style: N
|
|
1526
|
-
},
|
|
1527
|
-
paddingBlock: {
|
|
1528
|
-
style: N
|
|
1529
|
-
},
|
|
1530
|
-
paddingBlockStart: {
|
|
1531
|
-
style: N
|
|
1532
|
-
},
|
|
1533
|
-
paddingBlockEnd: {
|
|
1534
|
-
style: N
|
|
1535
|
-
},
|
|
1536
|
-
m: {
|
|
1537
|
-
style: $
|
|
1538
|
-
},
|
|
1539
|
-
mt: {
|
|
1540
|
-
style: $
|
|
1541
|
-
},
|
|
1542
|
-
mr: {
|
|
1543
|
-
style: $
|
|
1544
|
-
},
|
|
1545
|
-
mb: {
|
|
1546
|
-
style: $
|
|
1547
|
-
},
|
|
1548
|
-
ml: {
|
|
1549
|
-
style: $
|
|
1550
|
-
},
|
|
1551
|
-
mx: {
|
|
1552
|
-
style: $
|
|
1553
|
-
},
|
|
1554
|
-
my: {
|
|
1555
|
-
style: $
|
|
1556
|
-
},
|
|
1557
|
-
margin: {
|
|
1558
|
-
style: $
|
|
1559
|
-
},
|
|
1560
|
-
marginTop: {
|
|
1561
|
-
style: $
|
|
1562
|
-
},
|
|
1563
|
-
marginRight: {
|
|
1564
|
-
style: $
|
|
1565
|
-
},
|
|
1566
|
-
marginBottom: {
|
|
1567
|
-
style: $
|
|
1568
|
-
},
|
|
1569
|
-
marginLeft: {
|
|
1570
|
-
style: $
|
|
1571
|
-
},
|
|
1572
|
-
marginX: {
|
|
1573
|
-
style: $
|
|
1574
|
-
},
|
|
1575
|
-
marginY: {
|
|
1576
|
-
style: $
|
|
1577
|
-
},
|
|
1578
|
-
marginInline: {
|
|
1579
|
-
style: $
|
|
1580
|
-
},
|
|
1581
|
-
marginInlineStart: {
|
|
1582
|
-
style: $
|
|
1583
|
-
},
|
|
1584
|
-
marginInlineEnd: {
|
|
1585
|
-
style: $
|
|
1586
|
-
},
|
|
1587
|
-
marginBlock: {
|
|
1588
|
-
style: $
|
|
1589
|
-
},
|
|
1590
|
-
marginBlockStart: {
|
|
1591
|
-
style: $
|
|
1592
|
-
},
|
|
1593
|
-
marginBlockEnd: {
|
|
1594
|
-
style: $
|
|
1595
|
-
},
|
|
1596
|
-
// display
|
|
1597
|
-
displayPrint: {
|
|
1598
|
-
cssProperty: !1,
|
|
1599
|
-
transform: (e) => ({
|
|
1600
|
-
"@media print": {
|
|
1601
|
-
display: e
|
|
1602
|
-
}
|
|
1603
|
-
})
|
|
1604
|
-
},
|
|
1605
|
-
display: {},
|
|
1606
|
-
overflow: {},
|
|
1607
|
-
textOverflow: {},
|
|
1608
|
-
visibility: {},
|
|
1609
|
-
whiteSpace: {},
|
|
1610
|
-
// flexbox
|
|
1611
|
-
flexBasis: {},
|
|
1612
|
-
flexDirection: {},
|
|
1613
|
-
flexWrap: {},
|
|
1614
|
-
justifyContent: {},
|
|
1615
|
-
alignItems: {},
|
|
1616
|
-
alignContent: {},
|
|
1617
|
-
order: {},
|
|
1618
|
-
flex: {},
|
|
1619
|
-
flexGrow: {},
|
|
1620
|
-
flexShrink: {},
|
|
1621
|
-
alignSelf: {},
|
|
1622
|
-
justifyItems: {},
|
|
1623
|
-
justifySelf: {},
|
|
1624
|
-
// grid
|
|
1625
|
-
gap: {
|
|
1626
|
-
style: ke
|
|
1627
|
-
},
|
|
1628
|
-
rowGap: {
|
|
1629
|
-
style: Te
|
|
1630
|
-
},
|
|
1631
|
-
columnGap: {
|
|
1632
|
-
style: _e
|
|
1633
|
-
},
|
|
1634
|
-
gridColumn: {},
|
|
1635
|
-
gridRow: {},
|
|
1636
|
-
gridAutoFlow: {},
|
|
1637
|
-
gridAutoColumns: {},
|
|
1638
|
-
gridAutoRows: {},
|
|
1639
|
-
gridTemplateColumns: {},
|
|
1640
|
-
gridTemplateRows: {},
|
|
1641
|
-
gridTemplateAreas: {},
|
|
1642
|
-
gridArea: {},
|
|
1643
|
-
// positions
|
|
1644
|
-
position: {},
|
|
1645
|
-
zIndex: {
|
|
1646
|
-
themeKey: "zIndex"
|
|
1647
|
-
},
|
|
1648
|
-
top: {},
|
|
1649
|
-
right: {},
|
|
1650
|
-
bottom: {},
|
|
1651
|
-
left: {},
|
|
1652
|
-
// shadows
|
|
1653
|
-
boxShadow: {
|
|
1654
|
-
themeKey: "shadows"
|
|
1655
|
-
},
|
|
1656
|
-
// sizing
|
|
1657
|
-
width: {
|
|
1658
|
-
transform: I
|
|
1659
|
-
},
|
|
1660
|
-
maxWidth: {
|
|
1661
|
-
style: Ye
|
|
1662
|
-
},
|
|
1663
|
-
minWidth: {
|
|
1664
|
-
transform: I
|
|
1665
|
-
},
|
|
1666
|
-
height: {
|
|
1667
|
-
transform: I
|
|
1668
|
-
},
|
|
1669
|
-
maxHeight: {
|
|
1670
|
-
transform: I
|
|
1671
|
-
},
|
|
1672
|
-
minHeight: {
|
|
1673
|
-
transform: I
|
|
1674
|
-
},
|
|
1675
|
-
boxSizing: {},
|
|
1676
|
-
// typography
|
|
1677
|
-
fontFamily: {
|
|
1678
|
-
themeKey: "typography"
|
|
1679
|
-
},
|
|
1680
|
-
fontSize: {
|
|
1681
|
-
themeKey: "typography"
|
|
1682
|
-
},
|
|
1683
|
-
fontStyle: {
|
|
1684
|
-
themeKey: "typography"
|
|
1685
|
-
},
|
|
1686
|
-
fontWeight: {
|
|
1687
|
-
themeKey: "typography"
|
|
1688
|
-
},
|
|
1689
|
-
letterSpacing: {},
|
|
1690
|
-
textTransform: {},
|
|
1691
|
-
lineHeight: {},
|
|
1692
|
-
textAlign: {},
|
|
1693
|
-
typography: {
|
|
1694
|
-
cssProperty: !1,
|
|
1695
|
-
themeKey: "typography"
|
|
1696
|
-
}
|
|
1697
|
-
}, He = Mn;
|
|
1698
|
-
function Bn(...e) {
|
|
1699
|
-
const r = e.reduce((n, o) => n.concat(Object.keys(o)), []), t = new Set(r);
|
|
1700
|
-
return e.every((n) => t.size === Object.keys(n).length);
|
|
1701
|
-
}
|
|
1702
|
-
function jn(e, r) {
|
|
1703
|
-
return typeof e == "function" ? e(r) : e;
|
|
1704
|
-
}
|
|
1705
|
-
function Un() {
|
|
1706
|
-
function e(t, n, o, s) {
|
|
1707
|
-
const i = {
|
|
1708
|
-
[t]: n,
|
|
1709
|
-
theme: o
|
|
1710
|
-
}, a = s[t];
|
|
1711
|
-
if (!a)
|
|
1712
|
-
return {
|
|
1713
|
-
[t]: n
|
|
1714
|
-
};
|
|
1715
|
-
const {
|
|
1716
|
-
cssProperty: f = t,
|
|
1717
|
-
themeKey: d,
|
|
1718
|
-
transform: l,
|
|
1719
|
-
style: p
|
|
1720
|
-
} = a;
|
|
1721
|
-
if (n == null)
|
|
1722
|
-
return null;
|
|
1723
|
-
if (d === "typography" && n === "inherit")
|
|
1724
|
-
return {
|
|
1725
|
-
[t]: n
|
|
1726
|
-
};
|
|
1727
|
-
const c = $e(o, d) || {};
|
|
1728
|
-
return p ? p(i) : z(i, n, (h) => {
|
|
1729
|
-
let u = xe(c, l, h);
|
|
1730
|
-
return h === u && typeof h == "string" && (u = xe(c, l, `${t}${h === "default" ? "" : xr(h)}`, h)), f === !1 ? u : {
|
|
1731
|
-
[f]: u
|
|
1732
|
-
};
|
|
1733
|
-
});
|
|
1734
|
-
}
|
|
1735
|
-
function r(t) {
|
|
1736
|
-
var n;
|
|
1737
|
-
const {
|
|
1738
|
-
sx: o,
|
|
1739
|
-
theme: s = {}
|
|
1740
|
-
} = t || {};
|
|
1741
|
-
if (!o)
|
|
1742
|
-
return null;
|
|
1743
|
-
const i = (n = s.unstable_sxConfig) != null ? n : He;
|
|
1744
|
-
function a(f) {
|
|
1745
|
-
let d = f;
|
|
1746
|
-
if (typeof f == "function")
|
|
1747
|
-
d = f(s);
|
|
1748
|
-
else if (typeof f != "object")
|
|
1749
|
-
return f;
|
|
1750
|
-
if (!d)
|
|
1751
|
-
return null;
|
|
1752
|
-
const l = Jt(s.breakpoints), p = Object.keys(l);
|
|
1753
|
-
let c = l;
|
|
1754
|
-
return Object.keys(d).forEach((m) => {
|
|
1755
|
-
const h = jn(d[m], s);
|
|
1756
|
-
if (h != null)
|
|
1757
|
-
if (typeof h == "object")
|
|
1758
|
-
if (i[m])
|
|
1759
|
-
c = ie(c, e(m, h, s, i));
|
|
1760
|
-
else {
|
|
1761
|
-
const u = z({
|
|
1762
|
-
theme: s
|
|
1763
|
-
}, h, (g) => ({
|
|
1764
|
-
[m]: g
|
|
1765
|
-
}));
|
|
1766
|
-
Bn(u, h) ? c[m] = r({
|
|
1767
|
-
sx: h,
|
|
1768
|
-
theme: s
|
|
1769
|
-
}) : c = ie(c, u);
|
|
1770
|
-
}
|
|
1771
|
-
else
|
|
1772
|
-
c = ie(c, e(m, h, s, i));
|
|
1773
|
-
}), Xt(p, c);
|
|
1774
|
-
}
|
|
1775
|
-
return Array.isArray(o) ? o.map(a) : a(o);
|
|
1776
|
-
}
|
|
1777
|
-
return r;
|
|
1778
|
-
}
|
|
1779
|
-
const Dr = Un();
|
|
1780
|
-
Dr.filterProps = ["sx"];
|
|
1781
|
-
const Mr = Dr, Kn = ["breakpoints", "palette", "spacing", "shape"];
|
|
1782
|
-
function zn(e = {}, ...r) {
|
|
1783
|
-
const {
|
|
1784
|
-
breakpoints: t = {},
|
|
1785
|
-
palette: n = {},
|
|
1786
|
-
spacing: o,
|
|
1787
|
-
shape: s = {}
|
|
1788
|
-
} = e, i = re(e, Kn), a = Ft(t), f = an(o);
|
|
1789
|
-
let d = K({
|
|
1790
|
-
breakpoints: a,
|
|
1791
|
-
direction: "ltr",
|
|
1792
|
-
components: {},
|
|
1793
|
-
// Inject component definitions.
|
|
1794
|
-
palette: C({
|
|
1795
|
-
mode: "light"
|
|
1796
|
-
}, n),
|
|
1797
|
-
spacing: f,
|
|
1798
|
-
shape: C({}, Ht, s)
|
|
1799
|
-
}, i);
|
|
1800
|
-
return d = r.reduce((l, p) => K(l, p), d), d.unstable_sxConfig = C({}, He, i == null ? void 0 : i.unstable_sxConfig), d.unstable_sx = function(p) {
|
|
1801
|
-
return Mr({
|
|
1802
|
-
sx: p,
|
|
1803
|
-
theme: this
|
|
1804
|
-
});
|
|
1805
|
-
}, d;
|
|
1806
|
-
}
|
|
1807
|
-
function Vn(e) {
|
|
1808
|
-
return Object.keys(e).length === 0;
|
|
1809
|
-
}
|
|
1810
|
-
function Mo(e = null) {
|
|
1811
|
-
const r = Me.useContext(Ge);
|
|
1812
|
-
return !r || Vn(r) ? e : r;
|
|
1813
|
-
}
|
|
1814
|
-
function qe(e, r = 0, t = 1) {
|
|
1815
|
-
return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), Math.min(Math.max(r, e), t);
|
|
1816
|
-
}
|
|
1817
|
-
function Wn(e) {
|
|
1818
|
-
e = e.slice(1);
|
|
1819
|
-
const r = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
1820
|
-
let t = e.match(r);
|
|
1821
|
-
return t && t[0].length === 1 && (t = t.map((n) => n + n)), t ? `rgb${t.length === 4 ? "a" : ""}(${t.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
1822
|
-
}
|
|
1823
|
-
function L(e) {
|
|
1824
|
-
if (e.type)
|
|
1825
|
-
return e;
|
|
1826
|
-
if (e.charAt(0) === "#")
|
|
1827
|
-
return L(Wn(e));
|
|
1828
|
-
const r = e.indexOf("("), t = e.substring(0, r);
|
|
1829
|
-
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(t) === -1)
|
|
1830
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
1831
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Q(9, e));
|
|
1832
|
-
let n = e.substring(r + 1, e.length - 1), o;
|
|
1833
|
-
if (t === "color") {
|
|
1834
|
-
if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1)
|
|
1835
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
1836
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Q(10, o));
|
|
1837
|
-
} else
|
|
1838
|
-
n = n.split(",");
|
|
1839
|
-
return n = n.map((s) => parseFloat(s)), {
|
|
1840
|
-
type: t,
|
|
1841
|
-
values: n,
|
|
1842
|
-
colorSpace: o
|
|
1843
|
-
};
|
|
1844
|
-
}
|
|
1845
|
-
function Ie(e) {
|
|
1846
|
-
const {
|
|
1847
|
-
type: r,
|
|
1848
|
-
colorSpace: t
|
|
1849
|
-
} = e;
|
|
1850
|
-
let {
|
|
1851
|
-
values: n
|
|
1852
|
-
} = e;
|
|
1853
|
-
return r.indexOf("rgb") !== -1 ? n = n.map((o, s) => s < 3 ? parseInt(o, 10) : o) : r.indexOf("hsl") !== -1 && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), r.indexOf("color") !== -1 ? n = `${t} ${n.join(" ")}` : n = `${n.join(", ")}`, `${r}(${n})`;
|
|
1854
|
-
}
|
|
1855
|
-
function Ln(e) {
|
|
1856
|
-
e = L(e);
|
|
1857
|
-
const {
|
|
1858
|
-
values: r
|
|
1859
|
-
} = e, t = r[0], n = r[1] / 100, o = r[2] / 100, s = n * Math.min(o, 1 - o), i = (d, l = (d + t / 30) % 12) => o - s * Math.max(Math.min(l - 3, 9 - l, 1), -1);
|
|
1860
|
-
let a = "rgb";
|
|
1861
|
-
const f = [Math.round(i(0) * 255), Math.round(i(8) * 255), Math.round(i(4) * 255)];
|
|
1862
|
-
return e.type === "hsla" && (a += "a", f.push(r[3])), Ie({
|
|
1863
|
-
type: a,
|
|
1864
|
-
values: f
|
|
1865
|
-
});
|
|
1866
|
-
}
|
|
1867
|
-
function fr(e) {
|
|
1868
|
-
e = L(e);
|
|
1869
|
-
let r = e.type === "hsl" || e.type === "hsla" ? L(Ln(e)).values : e.values;
|
|
1870
|
-
return r = r.map((t) => (e.type !== "color" && (t /= 255), t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4)), Number((0.2126 * r[0] + 0.7152 * r[1] + 0.0722 * r[2]).toFixed(3));
|
|
1871
|
-
}
|
|
1872
|
-
function dr(e, r) {
|
|
1873
|
-
const t = fr(e), n = fr(r);
|
|
1874
|
-
return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
|
|
1875
|
-
}
|
|
1876
|
-
function Bo(e, r) {
|
|
1877
|
-
return e = L(e), r = qe(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, Ie(e);
|
|
1878
|
-
}
|
|
1879
|
-
function Gn(e, r) {
|
|
1880
|
-
if (e = L(e), r = qe(r), e.type.indexOf("hsl") !== -1)
|
|
1881
|
-
e.values[2] *= 1 - r;
|
|
1882
|
-
else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
|
|
1883
|
-
for (let t = 0; t < 3; t += 1)
|
|
1884
|
-
e.values[t] *= 1 - r;
|
|
1885
|
-
return Ie(e);
|
|
1886
|
-
}
|
|
1887
|
-
function Fn(e, r) {
|
|
1888
|
-
if (e = L(e), r = qe(r), e.type.indexOf("hsl") !== -1)
|
|
1889
|
-
e.values[2] += (100 - e.values[2]) * r;
|
|
1890
|
-
else if (e.type.indexOf("rgb") !== -1)
|
|
1891
|
-
for (let t = 0; t < 3; t += 1)
|
|
1892
|
-
e.values[t] += (255 - e.values[t]) * r;
|
|
1893
|
-
else if (e.type.indexOf("color") !== -1)
|
|
1894
|
-
for (let t = 0; t < 3; t += 1)
|
|
1895
|
-
e.values[t] += (1 - e.values[t]) * r;
|
|
1896
|
-
return Ie(e);
|
|
1897
|
-
}
|
|
1898
|
-
function Yn(e, r) {
|
|
1899
|
-
return C({
|
|
1900
|
-
toolbar: {
|
|
1901
|
-
minHeight: 56,
|
|
1902
|
-
[e.up("xs")]: {
|
|
1903
|
-
"@media (orientation: landscape)": {
|
|
1904
|
-
minHeight: 48
|
|
1905
|
-
}
|
|
1906
|
-
},
|
|
1907
|
-
[e.up("sm")]: {
|
|
1908
|
-
minHeight: 64
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
}, r);
|
|
1912
|
-
}
|
|
1913
|
-
const Hn = {
|
|
1914
|
-
black: "#000",
|
|
1915
|
-
white: "#fff"
|
|
1916
|
-
}, fe = Hn, qn = {
|
|
1917
|
-
50: "#fafafa",
|
|
1918
|
-
100: "#f5f5f5",
|
|
1919
|
-
200: "#eeeeee",
|
|
1920
|
-
300: "#e0e0e0",
|
|
1921
|
-
400: "#bdbdbd",
|
|
1922
|
-
500: "#9e9e9e",
|
|
1923
|
-
600: "#757575",
|
|
1924
|
-
700: "#616161",
|
|
1925
|
-
800: "#424242",
|
|
1926
|
-
900: "#212121",
|
|
1927
|
-
A100: "#f5f5f5",
|
|
1928
|
-
A200: "#eeeeee",
|
|
1929
|
-
A400: "#bdbdbd",
|
|
1930
|
-
A700: "#616161"
|
|
1931
|
-
}, Jn = qn, Xn = {
|
|
1932
|
-
50: "#f3e5f5",
|
|
1933
|
-
100: "#e1bee7",
|
|
1934
|
-
200: "#ce93d8",
|
|
1935
|
-
300: "#ba68c8",
|
|
1936
|
-
400: "#ab47bc",
|
|
1937
|
-
500: "#9c27b0",
|
|
1938
|
-
600: "#8e24aa",
|
|
1939
|
-
700: "#7b1fa2",
|
|
1940
|
-
800: "#6a1b9a",
|
|
1941
|
-
900: "#4a148c",
|
|
1942
|
-
A100: "#ea80fc",
|
|
1943
|
-
A200: "#e040fb",
|
|
1944
|
-
A400: "#d500f9",
|
|
1945
|
-
A700: "#aa00ff"
|
|
1946
|
-
}, G = Xn, Zn = {
|
|
1947
|
-
50: "#ffebee",
|
|
1948
|
-
100: "#ffcdd2",
|
|
1949
|
-
200: "#ef9a9a",
|
|
1950
|
-
300: "#e57373",
|
|
1951
|
-
400: "#ef5350",
|
|
1952
|
-
500: "#f44336",
|
|
1953
|
-
600: "#e53935",
|
|
1954
|
-
700: "#d32f2f",
|
|
1955
|
-
800: "#c62828",
|
|
1956
|
-
900: "#b71c1c",
|
|
1957
|
-
A100: "#ff8a80",
|
|
1958
|
-
A200: "#ff5252",
|
|
1959
|
-
A400: "#ff1744",
|
|
1960
|
-
A700: "#d50000"
|
|
1961
|
-
}, F = Zn, Qn = {
|
|
1962
|
-
50: "#fff3e0",
|
|
1963
|
-
100: "#ffe0b2",
|
|
1964
|
-
200: "#ffcc80",
|
|
1965
|
-
300: "#ffb74d",
|
|
1966
|
-
400: "#ffa726",
|
|
1967
|
-
500: "#ff9800",
|
|
1968
|
-
600: "#fb8c00",
|
|
1969
|
-
700: "#f57c00",
|
|
1970
|
-
800: "#ef6c00",
|
|
1971
|
-
900: "#e65100",
|
|
1972
|
-
A100: "#ffd180",
|
|
1973
|
-
A200: "#ffab40",
|
|
1974
|
-
A400: "#ff9100",
|
|
1975
|
-
A700: "#ff6d00"
|
|
1976
|
-
}, se = Qn, eo = {
|
|
1977
|
-
50: "#e3f2fd",
|
|
1978
|
-
100: "#bbdefb",
|
|
1979
|
-
200: "#90caf9",
|
|
1980
|
-
300: "#64b5f6",
|
|
1981
|
-
400: "#42a5f5",
|
|
1982
|
-
500: "#2196f3",
|
|
1983
|
-
600: "#1e88e5",
|
|
1984
|
-
700: "#1976d2",
|
|
1985
|
-
800: "#1565c0",
|
|
1986
|
-
900: "#0d47a1",
|
|
1987
|
-
A100: "#82b1ff",
|
|
1988
|
-
A200: "#448aff",
|
|
1989
|
-
A400: "#2979ff",
|
|
1990
|
-
A700: "#2962ff"
|
|
1991
|
-
}, Y = eo, ro = {
|
|
1992
|
-
50: "#e1f5fe",
|
|
1993
|
-
100: "#b3e5fc",
|
|
1994
|
-
200: "#81d4fa",
|
|
1995
|
-
300: "#4fc3f7",
|
|
1996
|
-
400: "#29b6f6",
|
|
1997
|
-
500: "#03a9f4",
|
|
1998
|
-
600: "#039be5",
|
|
1999
|
-
700: "#0288d1",
|
|
2000
|
-
800: "#0277bd",
|
|
2001
|
-
900: "#01579b",
|
|
2002
|
-
A100: "#80d8ff",
|
|
2003
|
-
A200: "#40c4ff",
|
|
2004
|
-
A400: "#00b0ff",
|
|
2005
|
-
A700: "#0091ea"
|
|
2006
|
-
}, H = ro, to = {
|
|
2007
|
-
50: "#e8f5e9",
|
|
2008
|
-
100: "#c8e6c9",
|
|
2009
|
-
200: "#a5d6a7",
|
|
2010
|
-
300: "#81c784",
|
|
2011
|
-
400: "#66bb6a",
|
|
2012
|
-
500: "#4caf50",
|
|
2013
|
-
600: "#43a047",
|
|
2014
|
-
700: "#388e3c",
|
|
2015
|
-
800: "#2e7d32",
|
|
2016
|
-
900: "#1b5e20",
|
|
2017
|
-
A100: "#b9f6ca",
|
|
2018
|
-
A200: "#69f0ae",
|
|
2019
|
-
A400: "#00e676",
|
|
2020
|
-
A700: "#00c853"
|
|
2021
|
-
}, q = to, no = ["mode", "contrastThreshold", "tonalOffset"], lr = {
|
|
2022
|
-
// The colors used to style the text.
|
|
2023
|
-
text: {
|
|
2024
|
-
// The most important text.
|
|
2025
|
-
primary: "rgba(0, 0, 0, 0.87)",
|
|
2026
|
-
// Secondary text.
|
|
2027
|
-
secondary: "rgba(0, 0, 0, 0.6)",
|
|
2028
|
-
// Disabled text have even lower visual prominence.
|
|
2029
|
-
disabled: "rgba(0, 0, 0, 0.38)"
|
|
2030
|
-
},
|
|
2031
|
-
// The color used to divide different elements.
|
|
2032
|
-
divider: "rgba(0, 0, 0, 0.12)",
|
|
2033
|
-
// The background colors used to style the surfaces.
|
|
2034
|
-
// Consistency between these values is important.
|
|
2035
|
-
background: {
|
|
2036
|
-
paper: fe.white,
|
|
2037
|
-
default: fe.white
|
|
2038
|
-
},
|
|
2039
|
-
// The colors used to style the action elements.
|
|
2040
|
-
action: {
|
|
2041
|
-
// The color of an active action like an icon button.
|
|
2042
|
-
active: "rgba(0, 0, 0, 0.54)",
|
|
2043
|
-
// The color of an hovered action.
|
|
2044
|
-
hover: "rgba(0, 0, 0, 0.04)",
|
|
2045
|
-
hoverOpacity: 0.04,
|
|
2046
|
-
// The color of a selected action.
|
|
2047
|
-
selected: "rgba(0, 0, 0, 0.08)",
|
|
2048
|
-
selectedOpacity: 0.08,
|
|
2049
|
-
// The color of a disabled action.
|
|
2050
|
-
disabled: "rgba(0, 0, 0, 0.26)",
|
|
2051
|
-
// The background color of a disabled action.
|
|
2052
|
-
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
2053
|
-
disabledOpacity: 0.38,
|
|
2054
|
-
focus: "rgba(0, 0, 0, 0.12)",
|
|
2055
|
-
focusOpacity: 0.12,
|
|
2056
|
-
activatedOpacity: 0.12
|
|
2057
|
-
}
|
|
2058
|
-
}, De = {
|
|
2059
|
-
text: {
|
|
2060
|
-
primary: fe.white,
|
|
2061
|
-
secondary: "rgba(255, 255, 255, 0.7)",
|
|
2062
|
-
disabled: "rgba(255, 255, 255, 0.5)",
|
|
2063
|
-
icon: "rgba(255, 255, 255, 0.5)"
|
|
2064
|
-
},
|
|
2065
|
-
divider: "rgba(255, 255, 255, 0.12)",
|
|
2066
|
-
background: {
|
|
2067
|
-
paper: "#121212",
|
|
2068
|
-
default: "#121212"
|
|
2069
|
-
},
|
|
2070
|
-
action: {
|
|
2071
|
-
active: fe.white,
|
|
2072
|
-
hover: "rgba(255, 255, 255, 0.08)",
|
|
2073
|
-
hoverOpacity: 0.08,
|
|
2074
|
-
selected: "rgba(255, 255, 255, 0.16)",
|
|
2075
|
-
selectedOpacity: 0.16,
|
|
2076
|
-
disabled: "rgba(255, 255, 255, 0.3)",
|
|
2077
|
-
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
2078
|
-
disabledOpacity: 0.38,
|
|
2079
|
-
focus: "rgba(255, 255, 255, 0.12)",
|
|
2080
|
-
focusOpacity: 0.12,
|
|
2081
|
-
activatedOpacity: 0.24
|
|
2082
|
-
}
|
|
2083
|
-
};
|
|
2084
|
-
function pr(e, r, t, n) {
|
|
2085
|
-
const o = n.light || n, s = n.dark || n * 1.5;
|
|
2086
|
-
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Fn(e.main, o) : r === "dark" && (e.dark = Gn(e.main, s)));
|
|
2087
|
-
}
|
|
2088
|
-
function oo(e = "light") {
|
|
2089
|
-
return e === "dark" ? {
|
|
2090
|
-
main: Y[200],
|
|
2091
|
-
light: Y[50],
|
|
2092
|
-
dark: Y[400]
|
|
2093
|
-
} : {
|
|
2094
|
-
main: Y[700],
|
|
2095
|
-
light: Y[400],
|
|
2096
|
-
dark: Y[800]
|
|
2097
|
-
};
|
|
2098
|
-
}
|
|
2099
|
-
function so(e = "light") {
|
|
2100
|
-
return e === "dark" ? {
|
|
2101
|
-
main: G[200],
|
|
2102
|
-
light: G[50],
|
|
2103
|
-
dark: G[400]
|
|
2104
|
-
} : {
|
|
2105
|
-
main: G[500],
|
|
2106
|
-
light: G[300],
|
|
2107
|
-
dark: G[700]
|
|
2108
|
-
};
|
|
2109
|
-
}
|
|
2110
|
-
function io(e = "light") {
|
|
2111
|
-
return e === "dark" ? {
|
|
2112
|
-
main: F[500],
|
|
2113
|
-
light: F[300],
|
|
2114
|
-
dark: F[700]
|
|
2115
|
-
} : {
|
|
2116
|
-
main: F[700],
|
|
2117
|
-
light: F[400],
|
|
2118
|
-
dark: F[800]
|
|
2119
|
-
};
|
|
2120
|
-
}
|
|
2121
|
-
function ao(e = "light") {
|
|
2122
|
-
return e === "dark" ? {
|
|
2123
|
-
main: H[400],
|
|
2124
|
-
light: H[300],
|
|
2125
|
-
dark: H[700]
|
|
2126
|
-
} : {
|
|
2127
|
-
main: H[700],
|
|
2128
|
-
light: H[500],
|
|
2129
|
-
dark: H[900]
|
|
2130
|
-
};
|
|
2131
|
-
}
|
|
2132
|
-
function co(e = "light") {
|
|
2133
|
-
return e === "dark" ? {
|
|
2134
|
-
main: q[400],
|
|
2135
|
-
light: q[300],
|
|
2136
|
-
dark: q[700]
|
|
2137
|
-
} : {
|
|
2138
|
-
main: q[800],
|
|
2139
|
-
light: q[500],
|
|
2140
|
-
dark: q[900]
|
|
2141
|
-
};
|
|
2142
|
-
}
|
|
2143
|
-
function uo(e = "light") {
|
|
2144
|
-
return e === "dark" ? {
|
|
2145
|
-
main: se[400],
|
|
2146
|
-
light: se[300],
|
|
2147
|
-
dark: se[700]
|
|
2148
|
-
} : {
|
|
2149
|
-
main: "#ed6c02",
|
|
2150
|
-
// closest to orange[800] that pass 3:1.
|
|
2151
|
-
light: se[500],
|
|
2152
|
-
dark: se[900]
|
|
2153
|
-
};
|
|
2154
|
-
}
|
|
2155
|
-
function fo(e) {
|
|
2156
|
-
const {
|
|
2157
|
-
mode: r = "light",
|
|
2158
|
-
contrastThreshold: t = 3,
|
|
2159
|
-
tonalOffset: n = 0.2
|
|
2160
|
-
} = e, o = re(e, no), s = e.primary || oo(r), i = e.secondary || so(r), a = e.error || io(r), f = e.info || ao(r), d = e.success || co(r), l = e.warning || uo(r);
|
|
2161
|
-
function p(u) {
|
|
2162
|
-
const g = dr(u, De.text.primary) >= t ? De.text.primary : lr.text.primary;
|
|
2163
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2164
|
-
const y = dr(u, g);
|
|
2165
|
-
y < 3 && console.error([`MUI: The contrast ratio of ${y}:1 for ${g} on ${u}`, "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(`
|
|
2166
|
-
`));
|
|
2167
|
-
}
|
|
2168
|
-
return g;
|
|
2169
|
-
}
|
|
2170
|
-
const c = ({
|
|
2171
|
-
color: u,
|
|
2172
|
-
name: g,
|
|
2173
|
-
mainShade: y = 500,
|
|
2174
|
-
lightShade: O = 300,
|
|
2175
|
-
darkShade: _ = 700
|
|
2176
|
-
}) => {
|
|
2177
|
-
if (u = C({}, u), !u.main && u[y] && (u.main = u[y]), !u.hasOwnProperty("main"))
|
|
2178
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${g ? ` (${g})` : ""} provided to augmentColor(color) is invalid.
|
|
2179
|
-
The color object needs to have a \`main\` property or a \`${y}\` property.` : Q(11, g ? ` (${g})` : "", y));
|
|
2180
|
-
if (typeof u.main != "string")
|
|
2181
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${g ? ` (${g})` : ""} provided to augmentColor(color) is invalid.
|
|
2182
|
-
\`color.main\` should be a string, but \`${JSON.stringify(u.main)}\` was provided instead.
|
|
2183
|
-
|
|
2184
|
-
Did you intend to use one of the following approaches?
|
|
2185
|
-
|
|
2186
|
-
import { green } from "@mui/material/colors";
|
|
2187
|
-
|
|
2188
|
-
const theme1 = createTheme({ palette: {
|
|
2189
|
-
primary: green,
|
|
2190
|
-
} });
|
|
2191
|
-
|
|
2192
|
-
const theme2 = createTheme({ palette: {
|
|
2193
|
-
primary: { main: green[500] },
|
|
2194
|
-
} });` : Q(12, g ? ` (${g})` : "", JSON.stringify(u.main)));
|
|
2195
|
-
return pr(u, "light", O, n), pr(u, "dark", _, n), u.contrastText || (u.contrastText = p(u.main)), u;
|
|
2196
|
-
}, m = {
|
|
2197
|
-
dark: De,
|
|
2198
|
-
light: lr
|
|
2199
|
-
};
|
|
2200
|
-
return process.env.NODE_ENV !== "production" && (m[r] || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), K(C({
|
|
2201
|
-
// A collection of common colors.
|
|
2202
|
-
common: C({}, fe),
|
|
2203
|
-
// prevent mutable object.
|
|
2204
|
-
// The palette mode, can be light or dark.
|
|
2205
|
-
mode: r,
|
|
2206
|
-
// The colors used to represent primary interface elements for a user.
|
|
2207
|
-
primary: c({
|
|
2208
|
-
color: s,
|
|
2209
|
-
name: "primary"
|
|
2210
|
-
}),
|
|
2211
|
-
// The colors used to represent secondary interface elements for a user.
|
|
2212
|
-
secondary: c({
|
|
2213
|
-
color: i,
|
|
2214
|
-
name: "secondary",
|
|
2215
|
-
mainShade: "A400",
|
|
2216
|
-
lightShade: "A200",
|
|
2217
|
-
darkShade: "A700"
|
|
2218
|
-
}),
|
|
2219
|
-
// The colors used to represent interface elements that the user should be made aware of.
|
|
2220
|
-
error: c({
|
|
2221
|
-
color: a,
|
|
2222
|
-
name: "error"
|
|
2223
|
-
}),
|
|
2224
|
-
// The colors used to represent potentially dangerous actions or important messages.
|
|
2225
|
-
warning: c({
|
|
2226
|
-
color: l,
|
|
2227
|
-
name: "warning"
|
|
2228
|
-
}),
|
|
2229
|
-
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
2230
|
-
info: c({
|
|
2231
|
-
color: f,
|
|
2232
|
-
name: "info"
|
|
2233
|
-
}),
|
|
2234
|
-
// The colors used to indicate the successful completion of an action that user triggered.
|
|
2235
|
-
success: c({
|
|
2236
|
-
color: d,
|
|
2237
|
-
name: "success"
|
|
2238
|
-
}),
|
|
2239
|
-
// The grey colors.
|
|
2240
|
-
grey: Jn,
|
|
2241
|
-
// Used by `getContrastText()` to maximize the contrast between
|
|
2242
|
-
// the background and the text.
|
|
2243
|
-
contrastThreshold: t,
|
|
2244
|
-
// Takes a background color and returns the text color that maximizes the contrast.
|
|
2245
|
-
getContrastText: p,
|
|
2246
|
-
// Generate a rich color object.
|
|
2247
|
-
augmentColor: c,
|
|
2248
|
-
// Used by the functions below to shift a color's luminance by approximately
|
|
2249
|
-
// two indexes within its tonal palette.
|
|
2250
|
-
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
2251
|
-
tonalOffset: n
|
|
2252
|
-
}, m[r]), o);
|
|
2253
|
-
}
|
|
2254
|
-
const lo = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
2255
|
-
function po(e) {
|
|
2256
|
-
return Math.round(e * 1e5) / 1e5;
|
|
2257
|
-
}
|
|
2258
|
-
const hr = {
|
|
2259
|
-
textTransform: "uppercase"
|
|
2260
|
-
}, mr = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
2261
|
-
function ho(e, r) {
|
|
2262
|
-
const t = typeof r == "function" ? r(e) : r, {
|
|
2263
|
-
fontFamily: n = mr,
|
|
2264
|
-
// The default font size of the Material Specification.
|
|
2265
|
-
fontSize: o = 14,
|
|
2266
|
-
// px
|
|
2267
|
-
fontWeightLight: s = 300,
|
|
2268
|
-
fontWeightRegular: i = 400,
|
|
2269
|
-
fontWeightMedium: a = 500,
|
|
2270
|
-
fontWeightBold: f = 700,
|
|
2271
|
-
// Tell MUI what's the font-size on the html element.
|
|
2272
|
-
// 16px is the default font-size used by browsers.
|
|
2273
|
-
htmlFontSize: d = 16,
|
|
2274
|
-
// Apply the CSS properties to all the variants.
|
|
2275
|
-
allVariants: l,
|
|
2276
|
-
pxToRem: p
|
|
2277
|
-
} = t, c = re(t, lo);
|
|
2278
|
-
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof d != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
2279
|
-
const m = o / 14, h = p || ((y) => `${y / d * m}rem`), u = (y, O, _, W, P) => C({
|
|
2280
|
-
fontFamily: n,
|
|
2281
|
-
fontWeight: y,
|
|
2282
|
-
fontSize: h(O),
|
|
2283
|
-
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
2284
|
-
lineHeight: _
|
|
2285
|
-
}, n === mr ? {
|
|
2286
|
-
letterSpacing: `${po(W / O)}em`
|
|
2287
|
-
} : {}, P, l), g = {
|
|
2288
|
-
h1: u(s, 96, 1.167, -1.5),
|
|
2289
|
-
h2: u(s, 60, 1.2, -0.5),
|
|
2290
|
-
h3: u(i, 48, 1.167, 0),
|
|
2291
|
-
h4: u(i, 34, 1.235, 0.25),
|
|
2292
|
-
h5: u(i, 24, 1.334, 0),
|
|
2293
|
-
h6: u(a, 20, 1.6, 0.15),
|
|
2294
|
-
subtitle1: u(i, 16, 1.75, 0.15),
|
|
2295
|
-
subtitle2: u(a, 14, 1.57, 0.1),
|
|
2296
|
-
body1: u(i, 16, 1.5, 0.15),
|
|
2297
|
-
body2: u(i, 14, 1.43, 0.15),
|
|
2298
|
-
button: u(a, 14, 1.75, 0.4, hr),
|
|
2299
|
-
caption: u(i, 12, 1.66, 0.4),
|
|
2300
|
-
overline: u(i, 12, 2.66, 1, hr),
|
|
2301
|
-
inherit: {
|
|
2302
|
-
fontFamily: "inherit",
|
|
2303
|
-
fontWeight: "inherit",
|
|
2304
|
-
fontSize: "inherit",
|
|
2305
|
-
lineHeight: "inherit",
|
|
2306
|
-
letterSpacing: "inherit"
|
|
2307
|
-
}
|
|
2308
|
-
};
|
|
2309
|
-
return K(C({
|
|
2310
|
-
htmlFontSize: d,
|
|
2311
|
-
pxToRem: h,
|
|
2312
|
-
fontFamily: n,
|
|
2313
|
-
fontSize: o,
|
|
2314
|
-
fontWeightLight: s,
|
|
2315
|
-
fontWeightRegular: i,
|
|
2316
|
-
fontWeightMedium: a,
|
|
2317
|
-
fontWeightBold: f
|
|
2318
|
-
}, g), c, {
|
|
2319
|
-
clone: !1
|
|
2320
|
-
// No need to clone deep
|
|
2321
|
-
});
|
|
2322
|
-
}
|
|
2323
|
-
const mo = 0.2, go = 0.14, yo = 0.12;
|
|
2324
|
-
function w(...e) {
|
|
2325
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${mo})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${go})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${yo})`].join(",");
|
|
2326
|
-
}
|
|
2327
|
-
const bo = ["none", w(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), w(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), w(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), w(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), w(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), w(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), w(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), w(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), w(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), w(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), w(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), w(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), w(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), w(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), w(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), w(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), w(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), w(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), w(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), w(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), w(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), w(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), w(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), w(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], vo = bo, xo = ["duration", "easing", "delay"], Eo = {
|
|
2328
|
-
// This is the most common easing curve.
|
|
2329
|
-
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2330
|
-
// Objects enter the screen at full velocity from off-screen and
|
|
2331
|
-
// slowly decelerate to a resting point.
|
|
2332
|
-
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
2333
|
-
// Objects leave the screen at full velocity. They do not decelerate when off-screen.
|
|
2334
|
-
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
2335
|
-
// The sharp curve is used by objects that may return to the screen at any time.
|
|
2336
|
-
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
2337
|
-
}, wo = {
|
|
2338
|
-
shortest: 150,
|
|
2339
|
-
shorter: 200,
|
|
2340
|
-
short: 250,
|
|
2341
|
-
// most basic recommended timing
|
|
2342
|
-
standard: 300,
|
|
2343
|
-
// this is to be used in complex animations
|
|
2344
|
-
complex: 375,
|
|
2345
|
-
// recommended when something is entering screen
|
|
2346
|
-
enteringScreen: 225,
|
|
2347
|
-
// recommended when something is leaving screen
|
|
2348
|
-
leavingScreen: 195
|
|
2349
|
-
};
|
|
2350
|
-
function gr(e) {
|
|
2351
|
-
return `${Math.round(e)}ms`;
|
|
2352
|
-
}
|
|
2353
|
-
function Oo(e) {
|
|
2354
|
-
if (!e)
|
|
2355
|
-
return 0;
|
|
2356
|
-
const r = e / 36;
|
|
2357
|
-
return Math.round((4 + 15 * r ** 0.25 + r / 5) * 10);
|
|
2358
|
-
}
|
|
2359
|
-
function $o(e) {
|
|
2360
|
-
const r = C({}, Eo, e.easing), t = C({}, wo, e.duration);
|
|
2361
|
-
return C({
|
|
2362
|
-
getAutoHeightDuration: Oo,
|
|
2363
|
-
create: (o = ["all"], s = {}) => {
|
|
2364
|
-
const {
|
|
2365
|
-
duration: i = t.standard,
|
|
2366
|
-
easing: a = r.easeInOut,
|
|
2367
|
-
delay: f = 0
|
|
2368
|
-
} = s, d = re(s, xo);
|
|
2369
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2370
|
-
const l = (c) => typeof c == "string", p = (c) => !isNaN(parseFloat(c));
|
|
2371
|
-
!l(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !p(i) && !l(i) && console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`), l(a) || console.error('MUI: Argument "easing" must be a string.'), !p(f) && !l(f) && console.error('MUI: Argument "delay" must be a number or a string.'), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
|
|
2372
|
-
}
|
|
2373
|
-
return (Array.isArray(o) ? o : [o]).map((l) => `${l} ${typeof i == "string" ? i : gr(i)} ${a} ${typeof f == "string" ? f : gr(f)}`).join(",");
|
|
2374
|
-
}
|
|
2375
|
-
}, e, {
|
|
2376
|
-
easing: r,
|
|
2377
|
-
duration: t
|
|
2378
|
-
});
|
|
2379
|
-
}
|
|
2380
|
-
const No = {
|
|
2381
|
-
mobileStepper: 1e3,
|
|
2382
|
-
fab: 1050,
|
|
2383
|
-
speedDial: 1050,
|
|
2384
|
-
appBar: 1100,
|
|
2385
|
-
drawer: 1200,
|
|
2386
|
-
modal: 1300,
|
|
2387
|
-
snackbar: 1400,
|
|
2388
|
-
tooltip: 1500
|
|
2389
|
-
}, So = No, Ao = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
2390
|
-
function jo(e = {}, ...r) {
|
|
2391
|
-
const {
|
|
2392
|
-
mixins: t = {},
|
|
2393
|
-
palette: n = {},
|
|
2394
|
-
transitions: o = {},
|
|
2395
|
-
typography: s = {}
|
|
2396
|
-
} = e, i = re(e, Ao);
|
|
2397
|
-
if (e.vars)
|
|
2398
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : Q(18));
|
|
2399
|
-
const a = fo(n), f = zn(e);
|
|
2400
|
-
let d = K(f, {
|
|
2401
|
-
mixins: Yn(f.breakpoints, t),
|
|
2402
|
-
palette: a,
|
|
2403
|
-
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
2404
|
-
shadows: vo.slice(),
|
|
2405
|
-
typography: ho(a, s),
|
|
2406
|
-
transitions: $o(o),
|
|
2407
|
-
zIndex: C({}, So)
|
|
2408
|
-
});
|
|
2409
|
-
if (d = K(d, i), d = r.reduce((l, p) => K(l, p), d), process.env.NODE_ENV !== "production") {
|
|
2410
|
-
const l = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], p = (c, m) => {
|
|
2411
|
-
let h;
|
|
2412
|
-
for (h in c) {
|
|
2413
|
-
const u = c[h];
|
|
2414
|
-
if (l.indexOf(h) !== -1 && Object.keys(u).length > 0) {
|
|
2415
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2416
|
-
const g = Lr("", h);
|
|
2417
|
-
console.error([`MUI: The \`${m}\` component increases the CSS specificity of the \`${h}\` internal state.`, "You can not override it like this: ", JSON.stringify(c, null, 2), "", `Instead, you need to use the '&.${g}' syntax:`, JSON.stringify({
|
|
2418
|
-
root: {
|
|
2419
|
-
[`&.${g}`]: u
|
|
2420
|
-
}
|
|
2421
|
-
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
2422
|
-
`));
|
|
2423
|
-
}
|
|
2424
|
-
c[h] = {};
|
|
2425
|
-
}
|
|
2426
|
-
}
|
|
2427
|
-
};
|
|
2428
|
-
Object.keys(d.components).forEach((c) => {
|
|
2429
|
-
const m = d.components[c].styleOverrides;
|
|
2430
|
-
m && c.indexOf("Mui") === 0 && p(m, c);
|
|
2431
|
-
});
|
|
2432
|
-
}
|
|
2433
|
-
return d.unstable_sxConfig = C({}, He, i == null ? void 0 : i.unstable_sxConfig), d.unstable_sx = function(p) {
|
|
2434
|
-
return Mr({
|
|
2435
|
-
sx: p,
|
|
2436
|
-
theme: this
|
|
2437
|
-
});
|
|
2438
|
-
}, d;
|
|
2439
|
-
}
|
|
2440
|
-
const Uo = "$$material";
|
|
2441
|
-
export {
|
|
2442
|
-
Gr as A,
|
|
2443
|
-
zn as B,
|
|
2444
|
-
Vr as C,
|
|
2445
|
-
ze as D,
|
|
2446
|
-
wo as E,
|
|
2447
|
-
He as F,
|
|
2448
|
-
J as G,
|
|
2449
|
-
qr as I,
|
|
2450
|
-
Er as K,
|
|
2451
|
-
To as M,
|
|
2452
|
-
Ke as R,
|
|
2453
|
-
Io as S,
|
|
2454
|
-
Uo as T,
|
|
2455
|
-
Bo as a,
|
|
2456
|
-
jo as b,
|
|
2457
|
-
xr as c,
|
|
2458
|
-
Gn as d,
|
|
2459
|
-
K as e,
|
|
2460
|
-
Q as f,
|
|
2461
|
-
Lr as g,
|
|
2462
|
-
z as h,
|
|
2463
|
-
sr as i,
|
|
2464
|
-
Ge as j,
|
|
2465
|
-
Ro as k,
|
|
2466
|
-
Fn as l,
|
|
2467
|
-
At as m,
|
|
2468
|
-
Ut as n,
|
|
2469
|
-
Cr as o,
|
|
2470
|
-
St as p,
|
|
2471
|
-
at as q,
|
|
2472
|
-
Do as r,
|
|
2473
|
-
Mr as s,
|
|
2474
|
-
Ue as t,
|
|
2475
|
-
Mo as u,
|
|
2476
|
-
X as v,
|
|
2477
|
-
zt as w,
|
|
2478
|
-
B as x,
|
|
2479
|
-
$t as y,
|
|
2480
|
-
Po as z
|
|
2481
|
-
};
|