@cgi-learning-hub/ui 0.0.1-dev.1709568003 → 0.0.1-dev.1709569638

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.
Files changed (127) hide show
  1. package/dist/{Box-erN4AuKs.js → Box-C0qXdJzV.js} +8 -8
  2. package/dist/Box-DjRIKMD0.cjs +1 -0
  3. package/dist/ButtonBase-BvllyU4w.cjs +75 -0
  4. package/dist/ButtonBase-C14ZYs6z.js +833 -0
  5. package/dist/CircularProgress-Bf46-VRs.js +217 -0
  6. package/dist/CircularProgress-DjSMBYnK.cjs +28 -0
  7. package/dist/{DefaultButton-DbpZOb47.js → DefaultButton-B-2UppUm.js} +146 -355
  8. package/dist/DefaultButton-DPZOltN5.cjs +1 -0
  9. package/dist/{IconButton-DE5JOshS.js → IconButton-1URziYlU.js} +8 -8
  10. package/dist/IconButton-X6l-U-im.cjs +2 -0
  11. package/dist/InputBase-BrkAyp4z.cjs +4 -0
  12. package/dist/{InputBase-C8AzQJJ9.js → InputBase-D_wYPpmB.js} +173 -160
  13. package/dist/{LocalizationProvider-Cov62Xe0.js → LocalizationProvider-BD64DNxF.js} +3 -4
  14. package/dist/LocalizationProvider-DqwEOZOd.cjs +5 -0
  15. package/dist/SearchInput-CMLDZJ8k.cjs +1 -0
  16. package/dist/SearchInput-D2HnePqk.js +177 -0
  17. package/dist/Tabs-B9BPJaDx.js +1090 -0
  18. package/dist/Tabs-Dx8YJT4c.cjs +4 -0
  19. package/dist/TextInput-BO1q4hT2.cjs +12 -0
  20. package/dist/{TextInput-DmMk4i-V.js → TextInput-DiA3Q5CJ.js} +1353 -1594
  21. package/dist/TimePicker-CBI_tdzH.js +19695 -0
  22. package/dist/TimePicker-CnW0kylk.cjs +69 -0
  23. package/dist/Typography-CRt6WSxo.js +204 -0
  24. package/dist/Typography-DsPQABF2.cjs +1 -0
  25. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  26. package/dist/components/Dropzone/Dropzone.es.js +11 -12
  27. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
  28. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +1 -1
  29. package/dist/components/LocalizationProvider/index.cjs.js +1 -1
  30. package/dist/components/LocalizationProvider/index.es.js +1 -1
  31. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  32. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
  33. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  34. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +6 -6
  35. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  36. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  37. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  38. package/dist/components/buttons/IconButton.stories.es.js +9 -10
  39. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  40. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
  41. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  42. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  43. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  44. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
  45. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  46. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  47. package/dist/components/buttons/index.cjs.js +1 -1
  48. package/dist/components/buttons/index.es.js +1 -1
  49. package/dist/components/index.cjs.js +1 -1
  50. package/dist/components/index.es.js +91 -90
  51. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  52. package/dist/components/inputs/SearchInput/SearchInput.es.js +6 -174
  53. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  54. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
  55. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  56. package/dist/components/inputs/SearchInput/index.es.js +2 -2
  57. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  58. package/dist/components/inputs/TextInput/TextInput.es.js +2 -2
  59. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  60. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  61. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  62. package/dist/components/inputs/TextInput/index.es.js +1 -1
  63. package/dist/components/inputs/index.cjs.js +1 -1
  64. package/dist/components/inputs/index.es.js +4 -4
  65. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  66. package/dist/components/lists/FileList/FileList.es.js +2 -2
  67. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  68. package/dist/components/lists/FileList/FileListItem.es.js +39 -7
  69. package/dist/components/lists/FileList/index.cjs.js +1 -1
  70. package/dist/components/lists/FileList/index.es.js +4 -4
  71. package/dist/components/lists/TabList.stories.cjs.js +1 -1
  72. package/dist/components/lists/TabList.stories.es.js +16 -18
  73. package/dist/components/lists/index.cjs.js +1 -1
  74. package/dist/components/lists/index.es.js +4 -4
  75. package/dist/createSvgIcon-BOQCM03y.cjs +2 -0
  76. package/dist/createSvgIcon-C2VxBqzG.cjs +1 -0
  77. package/dist/{createSvgIcon-DeRU4e-L.js → createSvgIcon-Dspfpz-l.js} +18 -20
  78. package/dist/createSvgIcon-xJp3_zwo.js +84 -0
  79. package/dist/index.cjs.js +1 -1
  80. package/dist/index.es.js +94 -93
  81. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  82. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  83. package/dist/refType-5EEBZL5_.cjs +1 -0
  84. package/dist/{refType-CoCfCK--.js → refType-BBFUe6fu.js} +1 -1
  85. package/dist/styled-D8lXwcQy.js +423 -0
  86. package/dist/styled-DFoJwRxe.cjs +24 -0
  87. package/dist/useSlotProps-BoMYRJkF.js +72 -0
  88. package/dist/useSlotProps-EKKRQjEn.cjs +1 -0
  89. package/dist/useTheme-BkW5nNsn.cjs +1 -0
  90. package/dist/useTheme-Bo1inEHN.js +9 -0
  91. package/dist/useThemeProps-BRWSvuZw.cjs +42 -0
  92. package/dist/useThemeProps-CZzcR_pm.js +2288 -0
  93. package/package.json +5 -2
  94. package/dist/Box-CjHm9A9L.cjs +0 -1
  95. package/dist/ButtonBase-BybMkBUd.cjs +0 -75
  96. package/dist/ButtonBase-CGcs8Gbj.cjs +0 -75
  97. package/dist/ButtonBase-V1pwsMMs.js +0 -649
  98. package/dist/ButtonBase-aujiNoUb.js +0 -649
  99. package/dist/DefaultButton-Cg4tPCgf.cjs +0 -28
  100. package/dist/FileListItem-ChKTjDnV.js +0 -254
  101. package/dist/FileListItem-CjFIZgYg.cjs +0 -28
  102. package/dist/IconButton-CHXclgOn.cjs +0 -2
  103. package/dist/InputBase-D6eXzDaz.cjs +0 -4
  104. package/dist/LocalizationProvider-42pD7VmS.cjs +0 -5
  105. package/dist/Tabs-DiWeNGD4.js +0 -1167
  106. package/dist/Tabs-DoxP7EMA.cjs +0 -4
  107. package/dist/TextInput-BbSyyuvO.cjs +0 -12
  108. package/dist/TimePicker-B5MjZCK0.cjs +0 -89
  109. package/dist/TimePicker-BmxG3a2D.js +0 -28354
  110. package/dist/TransitionGroup-COuDopJ-.js +0 -188
  111. package/dist/TransitionGroup-X90dkobW.cjs +0 -1
  112. package/dist/Typography-B90UzlQW.js +0 -179
  113. package/dist/Typography-KFjBz5Hm.cjs +0 -1
  114. package/dist/clamp-0LjYbpE_.cjs +0 -23
  115. package/dist/clamp-BGJvJ0FN.js +0 -1641
  116. package/dist/createSvgIcon-BSYat4nx.js +0 -74
  117. package/dist/createSvgIcon-BqRWmIPG.cjs +0 -1
  118. package/dist/createSvgIcon-doNQ5emq.cjs +0 -2
  119. package/dist/refType-Bt58K9Sk.cjs +0 -1
  120. package/dist/styled-BU8dAebc.js +0 -1751
  121. package/dist/styled-DGjsLYEN.cjs +0 -45
  122. package/dist/styled-DP6LeBLQ.js +0 -261
  123. package/dist/styled-Dkd1VGM-.cjs +0 -1
  124. package/dist/useTheme-C132tQV-.js +0 -10
  125. package/dist/useTheme-CliHZTkE.cjs +0 -1
  126. package/dist/useThemeProps-63SNG58r.js +0 -753
  127. package/dist/useThemeProps-CVatCXfo.cjs +0 -20
@@ -1,1751 +0,0 @@
1
- import { P as z, g as rr, a as W, _ as O, e as tr, c as Fr, s as nr, i as Vr, o as jr, f as oe, d as ne, k as zr, p as Lr } from "./clamp-BGJvJ0FN.js";
2
- import Ur from "@emotion/styled";
3
- import { CacheProvider as Wr, Global as Yr, ThemeContext as qr, css as Br, keyframes as Hr } from "@emotion/react";
4
- import "react";
5
- import { jsx as sr } from "react/jsx-runtime";
6
- function Gr(e) {
7
- if (e.sheet)
8
- return e.sheet;
9
- for (var r = 0; r < document.styleSheets.length; r++)
10
- if (document.styleSheets[r].ownerNode === e)
11
- return document.styleSheets[r];
12
- }
13
- function Kr(e) {
14
- var r = document.createElement("style");
15
- 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;
16
- }
17
- var Jr = /* @__PURE__ */ function() {
18
- function e(t) {
19
- var n = this;
20
- this._insertTag = function(s) {
21
- var a;
22
- n.tags.length === 0 ? n.insertionPoint ? a = n.insertionPoint.nextSibling : n.prepend ? a = n.container.firstChild : a = n.before : a = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(s, a), n.tags.push(s);
23
- }, 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;
24
- }
25
- var r = e.prototype;
26
- return r.hydrate = function(n) {
27
- n.forEach(this._insertTag);
28
- }, r.insert = function(n) {
29
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Kr(this));
30
- var s = this.tags[this.tags.length - 1];
31
- if (process.env.NODE_ENV !== "production") {
32
- var a = n.charCodeAt(0) === 64 && n.charCodeAt(1) === 105;
33
- a && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
34
- ` + 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 || !a;
35
- }
36
- if (this.isSpeedy) {
37
- var c = Gr(s);
38
- try {
39
- c.insertRule(n, c.cssRules.length);
40
- } catch (d) {
41
- 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 + '"', d);
42
- }
43
- } else
44
- s.appendChild(document.createTextNode(n));
45
- this.ctr++;
46
- }, r.flush = function() {
47
- this.tags.forEach(function(n) {
48
- return n.parentNode && n.parentNode.removeChild(n);
49
- }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
50
- }, e;
51
- }(), M = "-ms-", be = "-moz-", E = "-webkit-", Ce = "comm", Me = "rule", Pe = "decl", Xr = "@import", or = "@keyframes", Zr = "@layer", Qr = Math.abs, ve = String.fromCharCode, et = Object.assign;
52
- function rt(e, r) {
53
- return N(e, 0) ^ 45 ? (((r << 2 ^ N(e, 0)) << 2 ^ N(e, 1)) << 2 ^ N(e, 2)) << 2 ^ N(e, 3) : 0;
54
- }
55
- function ir(e) {
56
- return e.trim();
57
- }
58
- function tt(e, r) {
59
- return (e = r.exec(e)) ? e[0] : e;
60
- }
61
- function $(e, r, t) {
62
- return e.replace(r, t);
63
- }
64
- function Oe(e, r) {
65
- return e.indexOf(r);
66
- }
67
- function N(e, r) {
68
- return e.charCodeAt(r) | 0;
69
- }
70
- function ie(e, r, t) {
71
- return e.slice(r, t);
72
- }
73
- function V(e) {
74
- return e.length;
75
- }
76
- function Ie(e) {
77
- return e.length;
78
- }
79
- function de(e, r) {
80
- return r.push(e), e;
81
- }
82
- function nt(e, r) {
83
- return e.map(r).join("");
84
- }
85
- var Ee = 1, Z = 1, ar = 0, P = 0, R = 0, Q = "";
86
- function $e(e, r, t, n, s, a, c) {
87
- return { value: e, root: r, parent: t, type: n, props: s, children: a, line: Ee, column: Z, length: c, return: "" };
88
- }
89
- function re(e, r) {
90
- return et($e("", null, null, "", null, null, 0), e, { length: -e.length }, r);
91
- }
92
- function st() {
93
- return R;
94
- }
95
- function ot() {
96
- return R = P > 0 ? N(Q, --P) : 0, Z--, R === 10 && (Z = 1, Ee--), R;
97
- }
98
- function I() {
99
- return R = P < ar ? N(Q, P++) : 0, Z++, R === 10 && (Z = 1, Ee++), R;
100
- }
101
- function j() {
102
- return N(Q, P);
103
- }
104
- function he() {
105
- return P;
106
- }
107
- function fe(e, r) {
108
- return ie(Q, e, r);
109
- }
110
- function ae(e) {
111
- switch (e) {
112
- case 0:
113
- case 9:
114
- case 10:
115
- case 13:
116
- case 32:
117
- return 5;
118
- case 33:
119
- case 43:
120
- case 44:
121
- case 47:
122
- case 62:
123
- case 64:
124
- case 126:
125
- case 59:
126
- case 123:
127
- case 125:
128
- return 4;
129
- case 58:
130
- return 3;
131
- case 34:
132
- case 39:
133
- case 40:
134
- case 91:
135
- return 2;
136
- case 41:
137
- case 93:
138
- return 1;
139
- }
140
- return 0;
141
- }
142
- function cr(e) {
143
- return Ee = Z = 1, ar = V(Q = e), P = 0, [];
144
- }
145
- function fr(e) {
146
- return Q = "", e;
147
- }
148
- function me(e) {
149
- return ir(fe(P - 1, Te(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
150
- }
151
- function it(e) {
152
- for (; (R = j()) && R < 33; )
153
- I();
154
- return ae(e) > 2 || ae(R) > 3 ? "" : " ";
155
- }
156
- function at(e, r) {
157
- for (; --r && I() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
158
- ;
159
- return fe(e, he() + (r < 6 && j() == 32 && I() == 32));
160
- }
161
- function Te(e) {
162
- for (; I(); )
163
- switch (R) {
164
- case e:
165
- return P;
166
- case 34:
167
- case 39:
168
- e !== 34 && e !== 39 && Te(R);
169
- break;
170
- case 40:
171
- e === 41 && Te(e);
172
- break;
173
- case 92:
174
- I();
175
- break;
176
- }
177
- return P;
178
- }
179
- function ct(e, r) {
180
- for (; I() && e + R !== 57; )
181
- if (e + R === 84 && j() === 47)
182
- break;
183
- return "/*" + fe(r, P - 1) + "*" + ve(e === 47 ? e : I());
184
- }
185
- function ft(e) {
186
- for (; !ae(j()); )
187
- I();
188
- return fe(e, P);
189
- }
190
- function ut(e) {
191
- return fr(ye("", null, null, null, [""], e = cr(e), 0, [0], e));
192
- }
193
- function ye(e, r, t, n, s, a, c, d, f) {
194
- for (var u = 0, l = 0, y = c, h = 0, x = 0, b = 0, i = 1, o = 1, m = 1, _ = 0, k = "", D = s, g = a, T = n, v = k; o; )
195
- switch (b = _, _ = I()) {
196
- case 40:
197
- if (b != 108 && N(v, y - 1) == 58) {
198
- Oe(v += $(me(_), "&", "&\f"), "&\f") != -1 && (m = -1);
199
- break;
200
- }
201
- case 34:
202
- case 39:
203
- case 91:
204
- v += me(_);
205
- break;
206
- case 9:
207
- case 10:
208
- case 13:
209
- case 32:
210
- v += it(b);
211
- break;
212
- case 92:
213
- v += at(he() - 1, 7);
214
- continue;
215
- case 47:
216
- switch (j()) {
217
- case 42:
218
- case 47:
219
- de(lt(ct(I(), he()), r, t), f);
220
- break;
221
- default:
222
- v += "/";
223
- }
224
- break;
225
- case 123 * i:
226
- d[u++] = V(v) * m;
227
- case 125 * i:
228
- case 59:
229
- case 0:
230
- switch (_) {
231
- case 0:
232
- case 125:
233
- o = 0;
234
- case 59 + l:
235
- m == -1 && (v = $(v, /\f/g, "")), x > 0 && V(v) - y && de(x > 32 ? Le(v + ";", n, t, y - 1) : Le($(v, " ", "") + ";", n, t, y - 2), f);
236
- break;
237
- case 59:
238
- v += ";";
239
- default:
240
- if (de(T = ze(v, r, t, u, l, s, d, k, D = [], g = [], y), a), _ === 123)
241
- if (l === 0)
242
- ye(v, r, T, T, D, a, y, d, g);
243
- else
244
- switch (h === 99 && N(v, 3) === 110 ? 100 : h) {
245
- case 100:
246
- case 108:
247
- case 109:
248
- case 115:
249
- ye(e, T, T, n && de(ze(e, T, T, 0, 0, s, d, k, s, D = [], y), g), s, g, y, d, n ? D : g);
250
- break;
251
- default:
252
- ye(v, T, T, T, [""], g, 0, d, g);
253
- }
254
- }
255
- u = l = x = 0, i = m = 1, k = v = "", y = c;
256
- break;
257
- case 58:
258
- y = 1 + V(v), x = b;
259
- default:
260
- if (i < 1) {
261
- if (_ == 123)
262
- --i;
263
- else if (_ == 125 && i++ == 0 && ot() == 125)
264
- continue;
265
- }
266
- switch (v += ve(_), _ * i) {
267
- case 38:
268
- m = l > 0 ? 1 : (v += "\f", -1);
269
- break;
270
- case 44:
271
- d[u++] = (V(v) - 1) * m, m = 1;
272
- break;
273
- case 64:
274
- j() === 45 && (v += me(I())), h = j(), l = y = V(k = v += ft(he())), _++;
275
- break;
276
- case 45:
277
- b === 45 && V(v) == 2 && (i = 0);
278
- }
279
- }
280
- return a;
281
- }
282
- function ze(e, r, t, n, s, a, c, d, f, u, l) {
283
- for (var y = s - 1, h = s === 0 ? a : [""], x = Ie(h), b = 0, i = 0, o = 0; b < n; ++b)
284
- for (var m = 0, _ = ie(e, y + 1, y = Qr(i = c[b])), k = e; m < x; ++m)
285
- (k = ir(i > 0 ? h[m] + " " + _ : $(_, /&\f/g, h[m]))) && (f[o++] = k);
286
- return $e(e, r, t, s === 0 ? Me : d, f, u, l);
287
- }
288
- function lt(e, r, t) {
289
- return $e(e, r, t, Ce, ve(st()), ie(e, 2, -2), 0);
290
- }
291
- function Le(e, r, t, n) {
292
- return $e(e, r, t, Pe, ie(e, 0, n), ie(e, n + 1, -1), n);
293
- }
294
- function X(e, r) {
295
- for (var t = "", n = Ie(e), s = 0; s < n; s++)
296
- t += r(e[s], s, e, r) || "";
297
- return t;
298
- }
299
- function dt(e, r, t, n) {
300
- switch (e.type) {
301
- case Zr:
302
- if (e.children.length)
303
- break;
304
- case Xr:
305
- case Pe:
306
- return e.return = e.return || e.value;
307
- case Ce:
308
- return "";
309
- case or:
310
- return e.return = e.value + "{" + X(e.children, n) + "}";
311
- case Me:
312
- e.value = e.props.join(",");
313
- }
314
- return V(t = X(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
315
- }
316
- function pt(e) {
317
- var r = Ie(e);
318
- return function(t, n, s, a) {
319
- for (var c = "", d = 0; d < r; d++)
320
- c += e[d](t, n, s, a) || "";
321
- return c;
322
- };
323
- }
324
- function ht(e) {
325
- return function(r) {
326
- r.root || (r = r.return) && e(r);
327
- };
328
- }
329
- var mt = function(r, t, n) {
330
- for (var s = 0, a = 0; s = a, a = j(), s === 38 && a === 12 && (t[n] = 1), !ae(a); )
331
- I();
332
- return fe(r, P);
333
- }, yt = function(r, t) {
334
- var n = -1, s = 44;
335
- do
336
- switch (ae(s)) {
337
- case 0:
338
- s === 38 && j() === 12 && (t[n] = 1), r[n] += mt(P - 1, t, n);
339
- break;
340
- case 2:
341
- r[n] += me(s);
342
- break;
343
- case 4:
344
- if (s === 44) {
345
- r[++n] = j() === 58 ? "&\f" : "", t[n] = r[n].length;
346
- break;
347
- }
348
- default:
349
- r[n] += ve(s);
350
- }
351
- while (s = I());
352
- return r;
353
- }, gt = function(r, t) {
354
- return fr(yt(cr(r), t));
355
- }, Ue = /* @__PURE__ */ new WeakMap(), bt = function(r) {
356
- if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
357
- // negative .length indicates that this rule has been already prefixed
358
- r.length < 1)) {
359
- for (var t = r.value, n = r.parent, s = r.column === n.column && r.line === n.line; n.type !== "rule"; )
360
- if (n = n.parent, !n)
361
- return;
362
- if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Ue.get(n)) && !s) {
363
- Ue.set(r, !0);
364
- for (var a = [], c = gt(t, a), d = n.props, f = 0, u = 0; f < c.length; f++)
365
- for (var l = 0; l < d.length; l++, u++)
366
- r.props[u] = a[f] ? c[f].replace(/&\f/g, d[l]) : d[l] + " " + c[f];
367
- }
368
- }
369
- }, vt = function(r) {
370
- if (r.type === "decl") {
371
- var t = r.value;
372
- // charcode for l
373
- t.charCodeAt(0) === 108 && // charcode for b
374
- t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
375
- }
376
- }, Et = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", $t = function(r) {
377
- return r.type === "comm" && r.children.indexOf(Et) > -1;
378
- }, St = function(r) {
379
- return function(t, n, s) {
380
- if (!(t.type !== "rule" || r.compat)) {
381
- var a = t.value.match(/(:first|:nth|:nth-last)-child/g);
382
- if (a) {
383
- for (var c = !!t.parent, d = c ? t.parent.children : (
384
- // global rule at the root level
385
- s
386
- ), f = d.length - 1; f >= 0; f--) {
387
- var u = d[f];
388
- if (u.line < t.line)
389
- break;
390
- if (u.column < t.column) {
391
- if ($t(u))
392
- return;
393
- break;
394
- }
395
- }
396
- a.forEach(function(l) {
397
- console.error('The pseudo class "' + l + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + l.split("-child")[0] + '-of-type".');
398
- });
399
- }
400
- }
401
- };
402
- }, ur = function(r) {
403
- return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;
404
- }, wt = function(r, t) {
405
- for (var n = r - 1; n >= 0; n--)
406
- if (!ur(t[n]))
407
- return !0;
408
- return !1;
409
- }, We = function(r) {
410
- r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
411
- }, _t = function(r, t, n) {
412
- ur(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."), We(r)) : wt(t, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), We(r)));
413
- };
414
- function lr(e, r) {
415
- switch (rt(e, r)) {
416
- case 5103:
417
- return E + "print-" + e + e;
418
- case 5737:
419
- case 4201:
420
- case 3177:
421
- case 3433:
422
- case 1641:
423
- case 4457:
424
- case 2921:
425
- case 5572:
426
- case 6356:
427
- case 5844:
428
- case 3191:
429
- case 6645:
430
- case 3005:
431
- case 6391:
432
- case 5879:
433
- case 5623:
434
- case 6135:
435
- case 4599:
436
- case 4855:
437
- case 4215:
438
- case 6389:
439
- case 5109:
440
- case 5365:
441
- case 5621:
442
- case 3829:
443
- return E + e + e;
444
- case 5349:
445
- case 4246:
446
- case 4810:
447
- case 6968:
448
- case 2756:
449
- return E + e + be + e + M + e + e;
450
- case 6828:
451
- case 4268:
452
- return E + e + M + e + e;
453
- case 6165:
454
- return E + e + M + "flex-" + e + e;
455
- case 5187:
456
- return E + e + $(e, /(\w+).+(:[^]+)/, E + "box-$1$2" + M + "flex-$1$2") + e;
457
- case 5443:
458
- return E + e + M + "flex-item-" + $(e, /flex-|-self/, "") + e;
459
- case 4675:
460
- return E + e + M + "flex-line-pack" + $(e, /align-content|flex-|-self/, "") + e;
461
- case 5548:
462
- return E + e + M + $(e, "shrink", "negative") + e;
463
- case 5292:
464
- return E + e + M + $(e, "basis", "preferred-size") + e;
465
- case 6060:
466
- return E + "box-" + $(e, "-grow", "") + E + e + M + $(e, "grow", "positive") + e;
467
- case 4554:
468
- return E + $(e, /([^-])(transform)/g, "$1" + E + "$2") + e;
469
- case 6187:
470
- return $($($(e, /(zoom-|grab)/, E + "$1"), /(image-set)/, E + "$1"), e, "") + e;
471
- case 5495:
472
- case 3959:
473
- return $(e, /(image-set\([^]*)/, E + "$1$`$1");
474
- case 4968:
475
- return $($(e, /(.+:)(flex-)?(.*)/, E + "box-pack:$3" + M + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + E + e + e;
476
- case 4095:
477
- case 3583:
478
- case 4068:
479
- case 2532:
480
- return $(e, /(.+)-inline(.+)/, E + "$1$2") + e;
481
- case 8116:
482
- case 7059:
483
- case 5753:
484
- case 5535:
485
- case 5445:
486
- case 5701:
487
- case 4933:
488
- case 4677:
489
- case 5533:
490
- case 5789:
491
- case 5021:
492
- case 4765:
493
- if (V(e) - 1 - r > 6)
494
- switch (N(e, r + 1)) {
495
- case 109:
496
- if (N(e, r + 4) !== 45)
497
- break;
498
- case 102:
499
- return $(e, /(.+:)(.+)-([^]+)/, "$1" + E + "$2-$3$1" + be + (N(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
500
- case 115:
501
- return ~Oe(e, "stretch") ? lr($(e, "stretch", "fill-available"), r) + e : e;
502
- }
503
- break;
504
- case 4949:
505
- if (N(e, r + 1) !== 115)
506
- break;
507
- case 6444:
508
- switch (N(e, V(e) - 3 - (~Oe(e, "!important") && 10))) {
509
- case 107:
510
- return $(e, ":", ":" + E) + e;
511
- case 101:
512
- return $(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + E + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + E + "$2$3$1" + M + "$2box$3") + e;
513
- }
514
- break;
515
- case 5936:
516
- switch (N(e, r + 11)) {
517
- case 114:
518
- return E + e + M + $(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
519
- case 108:
520
- return E + e + M + $(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
521
- case 45:
522
- return E + e + M + $(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
523
- }
524
- return E + e + M + e + e;
525
- }
526
- return e;
527
- }
528
- var xt = function(r, t, n, s) {
529
- if (r.length > -1 && !r.return)
530
- switch (r.type) {
531
- case Pe:
532
- r.return = lr(r.value, r.length);
533
- break;
534
- case or:
535
- return X([re(r, {
536
- value: $(r.value, "@", "@" + E)
537
- })], s);
538
- case Me:
539
- if (r.length)
540
- return nt(r.props, function(a) {
541
- switch (tt(a, /(::plac\w+|:read-\w+)/)) {
542
- case ":read-only":
543
- case ":read-write":
544
- return X([re(r, {
545
- props: [$(a, /:(read-\w+)/, ":" + be + "$1")]
546
- })], s);
547
- case "::placeholder":
548
- return X([re(r, {
549
- props: [$(a, /:(plac\w+)/, ":" + E + "input-$1")]
550
- }), re(r, {
551
- props: [$(a, /:(plac\w+)/, ":" + be + "$1")]
552
- }), re(r, {
553
- props: [$(a, /:(plac\w+)/, M + "input-$1")]
554
- })], s);
555
- }
556
- return "";
557
- });
558
- }
559
- }, At = [xt], Ot = function(r) {
560
- var t = r.key;
561
- if (process.env.NODE_ENV !== "production" && !t)
562
- 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.
563
- If multiple caches share the same key they might "fight" for each other's style elements.`);
564
- if (t === "css") {
565
- var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
566
- Array.prototype.forEach.call(n, function(i) {
567
- var o = i.getAttribute("data-emotion");
568
- o.indexOf(" ") !== -1 && (document.head.appendChild(i), i.setAttribute("data-s", ""));
569
- });
570
- }
571
- var s = r.stylisPlugins || At;
572
- if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(t))
573
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + t + '" was passed');
574
- var a = {}, c, d = [];
575
- c = r.container || document.head, Array.prototype.forEach.call(
576
- // this means we will ignore elements which don't have a space in them which
577
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
578
- document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
579
- function(i) {
580
- for (var o = i.getAttribute("data-emotion").split(" "), m = 1; m < o.length; m++)
581
- a[o[m]] = !0;
582
- d.push(i);
583
- }
584
- );
585
- var f, u = [bt, vt];
586
- process.env.NODE_ENV !== "production" && u.push(St({
587
- get compat() {
588
- return b.compat;
589
- }
590
- }), _t);
591
- {
592
- var l, y = [dt, process.env.NODE_ENV !== "production" ? function(i) {
593
- i.root || (i.return ? l.insert(i.return) : i.value && i.type !== Ce && l.insert(i.value + "{}"));
594
- } : ht(function(i) {
595
- l.insert(i);
596
- })], h = pt(u.concat(s, y)), x = function(o) {
597
- return X(ut(o), h);
598
- };
599
- f = function(o, m, _, k) {
600
- l = _, process.env.NODE_ENV !== "production" && m.map !== void 0 && (l = {
601
- insert: function(g) {
602
- _.insert(g + m.map);
603
- }
604
- }), x(o ? o + "{" + m.styles + "}" : m.styles), k && (b.inserted[m.name] = !0);
605
- };
606
- }
607
- var b = {
608
- key: t,
609
- sheet: new Jr({
610
- key: t,
611
- container: c,
612
- nonce: r.nonce,
613
- speedy: r.speedy,
614
- prepend: r.prepend,
615
- insertionPoint: r.insertionPoint
616
- }),
617
- nonce: r.nonce,
618
- inserted: a,
619
- registered: {},
620
- insert: f
621
- };
622
- return b.sheet.hydrate(d), b;
623
- };
624
- let ke;
625
- typeof document == "object" && (ke = Ot({
626
- key: "css",
627
- prepend: !0
628
- }));
629
- function dr(e) {
630
- const {
631
- injectFirst: r,
632
- children: t
633
- } = e;
634
- return r && ke ? /* @__PURE__ */ sr(Wr, {
635
- value: ke,
636
- children: t
637
- }) : t;
638
- }
639
- process.env.NODE_ENV !== "production" && (dr.propTypes = {
640
- /**
641
- * Your component tree.
642
- */
643
- children: z.node,
644
- /**
645
- * By default, the styles are injected last in the <head> element of the page.
646
- * As a result, they gain more specificity than any other style sheet.
647
- * If you want to override MUI's styles, set this prop.
648
- */
649
- injectFirst: z.bool
650
- });
651
- function Tt(e) {
652
- return e == null || Object.keys(e).length === 0;
653
- }
654
- function pr(e) {
655
- const {
656
- styles: r,
657
- defaultTheme: t = {}
658
- } = e;
659
- return /* @__PURE__ */ sr(Yr, {
660
- styles: typeof r == "function" ? (s) => r(Tt(s) ? t : s) : r
661
- });
662
- }
663
- process.env.NODE_ENV !== "production" && (pr.propTypes = {
664
- defaultTheme: z.object,
665
- styles: z.oneOfType([z.array, z.string, z.object, z.func])
666
- });
667
- /**
668
- * @mui/styled-engine v5.15.11
669
- *
670
- * @license MIT
671
- * This source code is licensed under the MIT license found in the
672
- * LICENSE file in the root directory of this source tree.
673
- */
674
- function hr(e, r) {
675
- const t = Ur(e, r);
676
- return process.env.NODE_ENV !== "production" ? (...n) => {
677
- const s = typeof e == "string" ? `"${e}"` : "component";
678
- return n.length === 0 ? console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
679
- `)) : n.some((a) => a === void 0) && console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`), t(...n);
680
- } : t;
681
- }
682
- const mr = (e, r) => {
683
- Array.isArray(e.__emotion_styles) && (e.__emotion_styles = r(e.__emotion_styles));
684
- }, Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
685
- __proto__: null,
686
- GlobalStyles: pr,
687
- StyledEngineProvider: dr,
688
- ThemeContext: qr,
689
- css: Br,
690
- default: hr,
691
- internal_processStyles: mr,
692
- keyframes: Hr
693
- }, Symbol.toStringTag, { value: "Module" }));
694
- function yr(e) {
695
- var r, t, n = "";
696
- if (typeof e == "string" || typeof e == "number")
697
- n += e;
698
- else if (typeof e == "object")
699
- if (Array.isArray(e)) {
700
- var s = e.length;
701
- for (r = 0; r < s; r++)
702
- e[r] && (t = yr(e[r])) && (n && (n += " "), n += t);
703
- } else
704
- for (t in e)
705
- e[t] && (n && (n += " "), n += t);
706
- return n;
707
- }
708
- function Mn() {
709
- for (var e, r, t = 0, n = "", s = arguments.length; t < s; t++)
710
- (e = arguments[t]) && (r = yr(e)) && (n && (n += " "), n += r);
711
- return n;
712
- }
713
- function Pn(e, r, t = "Mui") {
714
- const n = {};
715
- return r.forEach((s) => {
716
- n[s] = rr(e, s, t);
717
- }), n;
718
- }
719
- var Re = { exports: {} }, S = {};
720
- /**
721
- * @license React
722
- * react-is.production.min.js
723
- *
724
- * Copyright (c) Facebook, Inc. and its affiliates.
725
- *
726
- * This source code is licensed under the MIT license found in the
727
- * LICENSE file in the root directory of this source tree.
728
- */
729
- var Ye;
730
- function kt() {
731
- if (Ye)
732
- return S;
733
- Ye = 1;
734
- var e = Symbol.for("react.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.server_context"), f = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), b;
735
- b = Symbol.for("react.module.reference");
736
- function i(o) {
737
- if (typeof o == "object" && o !== null) {
738
- var m = o.$$typeof;
739
- switch (m) {
740
- case e:
741
- switch (o = o.type, o) {
742
- case t:
743
- case s:
744
- case n:
745
- case u:
746
- case l:
747
- return o;
748
- default:
749
- switch (o = o && o.$$typeof, o) {
750
- case d:
751
- case c:
752
- case f:
753
- case h:
754
- case y:
755
- case a:
756
- return o;
757
- default:
758
- return m;
759
- }
760
- }
761
- case r:
762
- return m;
763
- }
764
- }
765
- }
766
- return S.ContextConsumer = c, S.ContextProvider = a, S.Element = e, S.ForwardRef = f, S.Fragment = t, S.Lazy = h, S.Memo = y, S.Portal = r, S.Profiler = s, S.StrictMode = n, S.Suspense = u, S.SuspenseList = l, S.isAsyncMode = function() {
767
- return !1;
768
- }, S.isConcurrentMode = function() {
769
- return !1;
770
- }, S.isContextConsumer = function(o) {
771
- return i(o) === c;
772
- }, S.isContextProvider = function(o) {
773
- return i(o) === a;
774
- }, S.isElement = function(o) {
775
- return typeof o == "object" && o !== null && o.$$typeof === e;
776
- }, S.isForwardRef = function(o) {
777
- return i(o) === f;
778
- }, S.isFragment = function(o) {
779
- return i(o) === t;
780
- }, S.isLazy = function(o) {
781
- return i(o) === h;
782
- }, S.isMemo = function(o) {
783
- return i(o) === y;
784
- }, S.isPortal = function(o) {
785
- return i(o) === r;
786
- }, S.isProfiler = function(o) {
787
- return i(o) === s;
788
- }, S.isStrictMode = function(o) {
789
- return i(o) === n;
790
- }, S.isSuspense = function(o) {
791
- return i(o) === u;
792
- }, S.isSuspenseList = function(o) {
793
- return i(o) === l;
794
- }, S.isValidElementType = function(o) {
795
- return typeof o == "string" || typeof o == "function" || o === t || o === s || o === n || o === u || o === l || o === x || typeof o == "object" && o !== null && (o.$$typeof === h || o.$$typeof === y || o.$$typeof === a || o.$$typeof === c || o.$$typeof === f || o.$$typeof === b || o.getModuleId !== void 0);
796
- }, S.typeOf = i, S;
797
- }
798
- var w = {};
799
- /**
800
- * @license React
801
- * react-is.development.js
802
- *
803
- * Copyright (c) Facebook, Inc. and its affiliates.
804
- *
805
- * This source code is licensed under the MIT license found in the
806
- * LICENSE file in the root directory of this source tree.
807
- */
808
- var qe;
809
- function Rt() {
810
- return qe || (qe = 1, process.env.NODE_ENV !== "production" && function() {
811
- var e = Symbol.for("react.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.server_context"), f = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), b = !1, i = !1, o = !1, m = !1, _ = !1, k;
812
- k = Symbol.for("react.module.reference");
813
- function D(p) {
814
- return !!(typeof p == "string" || typeof p == "function" || p === t || p === s || _ || p === n || p === u || p === l || m || p === x || b || i || o || typeof p == "object" && p !== null && (p.$$typeof === h || p.$$typeof === y || p.$$typeof === a || p.$$typeof === c || p.$$typeof === f || // This needs to include all possible module reference object
815
- // types supported by any Flight configuration anywhere since
816
- // we don't know which Flight build this will end up being used
817
- // with.
818
- p.$$typeof === k || p.getModuleId !== void 0));
819
- }
820
- function g(p) {
821
- if (typeof p == "object" && p !== null) {
822
- var xe = p.$$typeof;
823
- switch (xe) {
824
- case e:
825
- var le = p.type;
826
- switch (le) {
827
- case t:
828
- case s:
829
- case n:
830
- case u:
831
- case l:
832
- return le;
833
- default:
834
- var je = le && le.$$typeof;
835
- switch (je) {
836
- case d:
837
- case c:
838
- case f:
839
- case h:
840
- case y:
841
- case a:
842
- return je;
843
- default:
844
- return xe;
845
- }
846
- }
847
- case r:
848
- return xe;
849
- }
850
- }
851
- }
852
- var T = c, v = a, L = e, ue = f, ee = t, C = h, F = y, U = r, q = s, we = n, _e = u, Sr = l, Fe = !1, Ve = !1;
853
- function wr(p) {
854
- return Fe || (Fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
855
- }
856
- function _r(p) {
857
- return Ve || (Ve = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
858
- }
859
- function xr(p) {
860
- return g(p) === c;
861
- }
862
- function Ar(p) {
863
- return g(p) === a;
864
- }
865
- function Or(p) {
866
- return typeof p == "object" && p !== null && p.$$typeof === e;
867
- }
868
- function Tr(p) {
869
- return g(p) === f;
870
- }
871
- function kr(p) {
872
- return g(p) === t;
873
- }
874
- function Rr(p) {
875
- return g(p) === h;
876
- }
877
- function Nr(p) {
878
- return g(p) === y;
879
- }
880
- function Cr(p) {
881
- return g(p) === r;
882
- }
883
- function Mr(p) {
884
- return g(p) === s;
885
- }
886
- function Pr(p) {
887
- return g(p) === n;
888
- }
889
- function Ir(p) {
890
- return g(p) === u;
891
- }
892
- function Dr(p) {
893
- return g(p) === l;
894
- }
895
- w.ContextConsumer = T, w.ContextProvider = v, w.Element = L, w.ForwardRef = ue, w.Fragment = ee, w.Lazy = C, w.Memo = F, w.Portal = U, w.Profiler = q, w.StrictMode = we, w.Suspense = _e, w.SuspenseList = Sr, w.isAsyncMode = wr, w.isConcurrentMode = _r, w.isContextConsumer = xr, w.isContextProvider = Ar, w.isElement = Or, w.isForwardRef = Tr, w.isFragment = kr, w.isLazy = Rr, w.isMemo = Nr, w.isPortal = Cr, w.isProfiler = Mr, w.isStrictMode = Pr, w.isSuspense = Ir, w.isSuspenseList = Dr, w.isValidElementType = D, w.typeOf = g;
896
- }()), w;
897
- }
898
- process.env.NODE_ENV === "production" ? Re.exports = kt() : Re.exports = Rt();
899
- var Be = Re.exports;
900
- const Nt = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
901
- function Ct(e) {
902
- const r = `${e}`.match(Nt);
903
- return r && r[1] || "";
904
- }
905
- function gr(e, r = "") {
906
- return e.displayName || e.name || Ct(e) || r;
907
- }
908
- function He(e, r, t) {
909
- const n = gr(r);
910
- return e.displayName || (n !== "" ? `${t}(${n})` : t);
911
- }
912
- function Mt(e) {
913
- if (e != null) {
914
- if (typeof e == "string")
915
- return e;
916
- if (typeof e == "function")
917
- return gr(e, "Component");
918
- if (typeof e == "object")
919
- switch (e.$$typeof) {
920
- case Be.ForwardRef:
921
- return He(e, e.render, "ForwardRef");
922
- case Be.Memo:
923
- return He(e, e.type, "memo");
924
- default:
925
- return;
926
- }
927
- }
928
- }
929
- const Pt = ["ownerState"], It = ["variants"], Dt = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
930
- function Ft(e) {
931
- return Object.keys(e).length === 0;
932
- }
933
- function Vt(e) {
934
- return typeof e == "string" && // 96 is one less than the char code
935
- // for "a" so this is checking that
936
- // it's a lowercase character
937
- e.charCodeAt(0) > 96;
938
- }
939
- function se(e) {
940
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
941
- }
942
- const jt = tr(), Ge = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
943
- function pe({
944
- defaultTheme: e,
945
- theme: r,
946
- themeId: t
947
- }) {
948
- return Ft(r) ? e : r[t] || r;
949
- }
950
- function zt(e) {
951
- return e ? (r, t) => t[e] : null;
952
- }
953
- function ge(e, r) {
954
- let {
955
- ownerState: t
956
- } = r, n = W(r, Pt);
957
- const s = typeof e == "function" ? e(O({
958
- ownerState: t
959
- }, n)) : e;
960
- if (Array.isArray(s))
961
- return s.flatMap((a) => ge(a, O({
962
- ownerState: t
963
- }, n)));
964
- if (s && typeof s == "object" && Array.isArray(s.variants)) {
965
- const {
966
- variants: a = []
967
- } = s;
968
- let d = W(s, It);
969
- return a.forEach((f) => {
970
- let u = !0;
971
- typeof f.props == "function" ? u = f.props(O({
972
- ownerState: t
973
- }, n, t)) : Object.keys(f.props).forEach((l) => {
974
- (t == null ? void 0 : t[l]) !== f.props[l] && n[l] !== f.props[l] && (u = !1);
975
- }), u && (Array.isArray(d) || (d = [d]), d.push(typeof f.style == "function" ? f.style(O({
976
- ownerState: t
977
- }, n, t)) : f.style));
978
- }), d;
979
- }
980
- return s;
981
- }
982
- function Lt(e = {}) {
983
- const {
984
- themeId: r,
985
- defaultTheme: t = jt,
986
- rootShouldForwardProp: n = se,
987
- slotShouldForwardProp: s = se
988
- } = e, a = (c) => nr(O({}, c, {
989
- theme: pe(O({}, c, {
990
- defaultTheme: t,
991
- themeId: r
992
- }))
993
- }));
994
- return a.__mui_systemSx = !0, (c, d = {}) => {
995
- mr(c, (g) => g.filter((T) => !(T != null && T.__mui_systemSx)));
996
- const {
997
- name: f,
998
- slot: u,
999
- skipVariantsResolver: l,
1000
- skipSx: y,
1001
- // TODO v6: remove `lowercaseFirstLetter()` in the next major release
1002
- // For more details: https://github.com/mui/material-ui/pull/37908
1003
- overridesResolver: h = zt(Ge(u))
1004
- } = d, x = W(d, Dt), b = l !== void 0 ? l : (
1005
- // TODO v6: remove `Root` in the next major release
1006
- // For more details: https://github.com/mui/material-ui/pull/37908
1007
- u && u !== "Root" && u !== "root" || !1
1008
- ), i = y || !1;
1009
- let o;
1010
- process.env.NODE_ENV !== "production" && f && (o = `${f}-${Ge(u || "Root")}`);
1011
- let m = se;
1012
- u === "Root" || u === "root" ? m = n : u ? m = s : Vt(c) && (m = void 0);
1013
- const _ = hr(c, O({
1014
- shouldForwardProp: m,
1015
- label: o
1016
- }, x)), k = (g) => typeof g == "function" && g.__emotion_real !== g || Vr(g) ? (T) => ge(g, O({}, T, {
1017
- theme: pe({
1018
- theme: T.theme,
1019
- defaultTheme: t,
1020
- themeId: r
1021
- })
1022
- })) : g, D = (g, ...T) => {
1023
- let v = k(g);
1024
- const L = T ? T.map(k) : [];
1025
- f && h && L.push((C) => {
1026
- const F = pe(O({}, C, {
1027
- defaultTheme: t,
1028
- themeId: r
1029
- }));
1030
- if (!F.components || !F.components[f] || !F.components[f].styleOverrides)
1031
- return null;
1032
- const U = F.components[f].styleOverrides, q = {};
1033
- return Object.entries(U).forEach(([we, _e]) => {
1034
- q[we] = ge(_e, O({}, C, {
1035
- theme: F
1036
- }));
1037
- }), h(C, q);
1038
- }), f && !b && L.push((C) => {
1039
- var F;
1040
- const U = pe(O({}, C, {
1041
- defaultTheme: t,
1042
- themeId: r
1043
- })), q = U == null || (F = U.components) == null || (F = F[f]) == null ? void 0 : F.variants;
1044
- return ge({
1045
- variants: q
1046
- }, O({}, C, {
1047
- theme: U
1048
- }));
1049
- }), i || L.push(a);
1050
- const ue = L.length - T.length;
1051
- if (Array.isArray(g) && ue > 0) {
1052
- const C = new Array(ue).fill("");
1053
- v = [...g, ...C], v.raw = [...g.raw, ...C];
1054
- }
1055
- const ee = _(v, ...L);
1056
- if (process.env.NODE_ENV !== "production") {
1057
- let C;
1058
- f && (C = `${f}${Fr(u || "")}`), C === void 0 && (C = `Styled(${Mt(c)})`), ee.displayName = C;
1059
- }
1060
- return c.muiName && (ee.muiName = c.muiName), ee;
1061
- };
1062
- return _.withConfig && (D.withConfig = _.withConfig), D;
1063
- };
1064
- }
1065
- function De(e, r = 0, t = 1) {
1066
- return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), jr(e, r, t);
1067
- }
1068
- function Ut(e) {
1069
- e = e.slice(1);
1070
- const r = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
1071
- let t = e.match(r);
1072
- return t && t[0].length === 1 && (t = t.map((n) => n + n)), t ? `rgb${t.length === 4 ? "a" : ""}(${t.map((n, s) => s < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
1073
- }
1074
- function Y(e) {
1075
- if (e.type)
1076
- return e;
1077
- if (e.charAt(0) === "#")
1078
- return Y(Ut(e));
1079
- const r = e.indexOf("("), t = e.substring(0, r);
1080
- if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(t) === -1)
1081
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
1082
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : oe(9, e));
1083
- let n = e.substring(r + 1, e.length - 1), s;
1084
- if (t === "color") {
1085
- if (n = n.split(" "), s = 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(s) === -1)
1086
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${s}\` color space.
1087
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : oe(10, s));
1088
- } else
1089
- n = n.split(",");
1090
- return n = n.map((a) => parseFloat(a)), {
1091
- type: t,
1092
- values: n,
1093
- colorSpace: s
1094
- };
1095
- }
1096
- function Se(e) {
1097
- const {
1098
- type: r,
1099
- colorSpace: t
1100
- } = e;
1101
- let {
1102
- values: n
1103
- } = e;
1104
- return r.indexOf("rgb") !== -1 ? n = n.map((s, a) => a < 3 ? parseInt(s, 10) : s) : 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})`;
1105
- }
1106
- function Wt(e) {
1107
- e = Y(e);
1108
- const {
1109
- values: r
1110
- } = e, t = r[0], n = r[1] / 100, s = r[2] / 100, a = n * Math.min(s, 1 - s), c = (u, l = (u + t / 30) % 12) => s - a * Math.max(Math.min(l - 3, 9 - l, 1), -1);
1111
- let d = "rgb";
1112
- const f = [Math.round(c(0) * 255), Math.round(c(8) * 255), Math.round(c(4) * 255)];
1113
- return e.type === "hsla" && (d += "a", f.push(r[3])), Se({
1114
- type: d,
1115
- values: f
1116
- });
1117
- }
1118
- function Ne(e) {
1119
- e = Y(e);
1120
- let r = e.type === "hsl" || e.type === "hsla" ? Y(Wt(e)).values : e.values;
1121
- 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));
1122
- }
1123
- function Ke(e, r) {
1124
- const t = Ne(e), n = Ne(r);
1125
- return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
1126
- }
1127
- function In(e, r) {
1128
- return e = Y(e), r = De(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, Se(e);
1129
- }
1130
- function br(e, r) {
1131
- if (e = Y(e), r = De(r), e.type.indexOf("hsl") !== -1)
1132
- e.values[2] *= 1 - r;
1133
- else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
1134
- for (let t = 0; t < 3; t += 1)
1135
- e.values[t] *= 1 - r;
1136
- return Se(e);
1137
- }
1138
- function vr(e, r) {
1139
- if (e = Y(e), r = De(r), e.type.indexOf("hsl") !== -1)
1140
- e.values[2] += (100 - e.values[2]) * r;
1141
- else if (e.type.indexOf("rgb") !== -1)
1142
- for (let t = 0; t < 3; t += 1)
1143
- e.values[t] += (255 - e.values[t]) * r;
1144
- else if (e.type.indexOf("color") !== -1)
1145
- for (let t = 0; t < 3; t += 1)
1146
- e.values[t] += (1 - e.values[t]) * r;
1147
- return Se(e);
1148
- }
1149
- function Dn(e, r = 0.15) {
1150
- return Ne(e) > 0.5 ? br(e, r) : vr(e, r);
1151
- }
1152
- function Fn(e, r, t = void 0) {
1153
- const n = {};
1154
- return Object.keys(e).forEach(
1155
- // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
1156
- // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
1157
- (s) => {
1158
- n[s] = e[s].reduce((a, c) => {
1159
- if (c) {
1160
- const d = r(c);
1161
- d !== "" && a.push(d), t && t[c] && a.push(t[c]);
1162
- }
1163
- return a;
1164
- }, []).join(" ");
1165
- }
1166
- ), n;
1167
- }
1168
- const Er = "$$material";
1169
- function Yt(e, r) {
1170
- return O({
1171
- toolbar: {
1172
- minHeight: 56,
1173
- [e.up("xs")]: {
1174
- "@media (orientation: landscape)": {
1175
- minHeight: 48
1176
- }
1177
- },
1178
- [e.up("sm")]: {
1179
- minHeight: 64
1180
- }
1181
- }
1182
- }, r);
1183
- }
1184
- const qt = {
1185
- black: "#000",
1186
- white: "#fff"
1187
- }, ce = qt, Bt = {
1188
- 50: "#fafafa",
1189
- 100: "#f5f5f5",
1190
- 200: "#eeeeee",
1191
- 300: "#e0e0e0",
1192
- 400: "#bdbdbd",
1193
- 500: "#9e9e9e",
1194
- 600: "#757575",
1195
- 700: "#616161",
1196
- 800: "#424242",
1197
- 900: "#212121",
1198
- A100: "#f5f5f5",
1199
- A200: "#eeeeee",
1200
- A400: "#bdbdbd",
1201
- A700: "#616161"
1202
- }, Ht = Bt, Gt = {
1203
- 50: "#f3e5f5",
1204
- 100: "#e1bee7",
1205
- 200: "#ce93d8",
1206
- 300: "#ba68c8",
1207
- 400: "#ab47bc",
1208
- 500: "#9c27b0",
1209
- 600: "#8e24aa",
1210
- 700: "#7b1fa2",
1211
- 800: "#6a1b9a",
1212
- 900: "#4a148c",
1213
- A100: "#ea80fc",
1214
- A200: "#e040fb",
1215
- A400: "#d500f9",
1216
- A700: "#aa00ff"
1217
- }, B = Gt, Kt = {
1218
- 50: "#ffebee",
1219
- 100: "#ffcdd2",
1220
- 200: "#ef9a9a",
1221
- 300: "#e57373",
1222
- 400: "#ef5350",
1223
- 500: "#f44336",
1224
- 600: "#e53935",
1225
- 700: "#d32f2f",
1226
- 800: "#c62828",
1227
- 900: "#b71c1c",
1228
- A100: "#ff8a80",
1229
- A200: "#ff5252",
1230
- A400: "#ff1744",
1231
- A700: "#d50000"
1232
- }, H = Kt, Jt = {
1233
- 50: "#fff3e0",
1234
- 100: "#ffe0b2",
1235
- 200: "#ffcc80",
1236
- 300: "#ffb74d",
1237
- 400: "#ffa726",
1238
- 500: "#ff9800",
1239
- 600: "#fb8c00",
1240
- 700: "#f57c00",
1241
- 800: "#ef6c00",
1242
- 900: "#e65100",
1243
- A100: "#ffd180",
1244
- A200: "#ffab40",
1245
- A400: "#ff9100",
1246
- A700: "#ff6d00"
1247
- }, te = Jt, Xt = {
1248
- 50: "#e3f2fd",
1249
- 100: "#bbdefb",
1250
- 200: "#90caf9",
1251
- 300: "#64b5f6",
1252
- 400: "#42a5f5",
1253
- 500: "#2196f3",
1254
- 600: "#1e88e5",
1255
- 700: "#1976d2",
1256
- 800: "#1565c0",
1257
- 900: "#0d47a1",
1258
- A100: "#82b1ff",
1259
- A200: "#448aff",
1260
- A400: "#2979ff",
1261
- A700: "#2962ff"
1262
- }, G = Xt, Zt = {
1263
- 50: "#e1f5fe",
1264
- 100: "#b3e5fc",
1265
- 200: "#81d4fa",
1266
- 300: "#4fc3f7",
1267
- 400: "#29b6f6",
1268
- 500: "#03a9f4",
1269
- 600: "#039be5",
1270
- 700: "#0288d1",
1271
- 800: "#0277bd",
1272
- 900: "#01579b",
1273
- A100: "#80d8ff",
1274
- A200: "#40c4ff",
1275
- A400: "#00b0ff",
1276
- A700: "#0091ea"
1277
- }, K = Zt, Qt = {
1278
- 50: "#e8f5e9",
1279
- 100: "#c8e6c9",
1280
- 200: "#a5d6a7",
1281
- 300: "#81c784",
1282
- 400: "#66bb6a",
1283
- 500: "#4caf50",
1284
- 600: "#43a047",
1285
- 700: "#388e3c",
1286
- 800: "#2e7d32",
1287
- 900: "#1b5e20",
1288
- A100: "#b9f6ca",
1289
- A200: "#69f0ae",
1290
- A400: "#00e676",
1291
- A700: "#00c853"
1292
- }, J = Qt, en = ["mode", "contrastThreshold", "tonalOffset"], Je = {
1293
- // The colors used to style the text.
1294
- text: {
1295
- // The most important text.
1296
- primary: "rgba(0, 0, 0, 0.87)",
1297
- // Secondary text.
1298
- secondary: "rgba(0, 0, 0, 0.6)",
1299
- // Disabled text have even lower visual prominence.
1300
- disabled: "rgba(0, 0, 0, 0.38)"
1301
- },
1302
- // The color used to divide different elements.
1303
- divider: "rgba(0, 0, 0, 0.12)",
1304
- // The background colors used to style the surfaces.
1305
- // Consistency between these values is important.
1306
- background: {
1307
- paper: ce.white,
1308
- default: ce.white
1309
- },
1310
- // The colors used to style the action elements.
1311
- action: {
1312
- // The color of an active action like an icon button.
1313
- active: "rgba(0, 0, 0, 0.54)",
1314
- // The color of an hovered action.
1315
- hover: "rgba(0, 0, 0, 0.04)",
1316
- hoverOpacity: 0.04,
1317
- // The color of a selected action.
1318
- selected: "rgba(0, 0, 0, 0.08)",
1319
- selectedOpacity: 0.08,
1320
- // The color of a disabled action.
1321
- disabled: "rgba(0, 0, 0, 0.26)",
1322
- // The background color of a disabled action.
1323
- disabledBackground: "rgba(0, 0, 0, 0.12)",
1324
- disabledOpacity: 0.38,
1325
- focus: "rgba(0, 0, 0, 0.12)",
1326
- focusOpacity: 0.12,
1327
- activatedOpacity: 0.12
1328
- }
1329
- }, Ae = {
1330
- text: {
1331
- primary: ce.white,
1332
- secondary: "rgba(255, 255, 255, 0.7)",
1333
- disabled: "rgba(255, 255, 255, 0.5)",
1334
- icon: "rgba(255, 255, 255, 0.5)"
1335
- },
1336
- divider: "rgba(255, 255, 255, 0.12)",
1337
- background: {
1338
- paper: "#121212",
1339
- default: "#121212"
1340
- },
1341
- action: {
1342
- active: ce.white,
1343
- hover: "rgba(255, 255, 255, 0.08)",
1344
- hoverOpacity: 0.08,
1345
- selected: "rgba(255, 255, 255, 0.16)",
1346
- selectedOpacity: 0.16,
1347
- disabled: "rgba(255, 255, 255, 0.3)",
1348
- disabledBackground: "rgba(255, 255, 255, 0.12)",
1349
- disabledOpacity: 0.38,
1350
- focus: "rgba(255, 255, 255, 0.12)",
1351
- focusOpacity: 0.12,
1352
- activatedOpacity: 0.24
1353
- }
1354
- };
1355
- function Xe(e, r, t, n) {
1356
- const s = n.light || n, a = n.dark || n * 1.5;
1357
- e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = vr(e.main, s) : r === "dark" && (e.dark = br(e.main, a)));
1358
- }
1359
- function rn(e = "light") {
1360
- return e === "dark" ? {
1361
- main: G[200],
1362
- light: G[50],
1363
- dark: G[400]
1364
- } : {
1365
- main: G[700],
1366
- light: G[400],
1367
- dark: G[800]
1368
- };
1369
- }
1370
- function tn(e = "light") {
1371
- return e === "dark" ? {
1372
- main: B[200],
1373
- light: B[50],
1374
- dark: B[400]
1375
- } : {
1376
- main: B[500],
1377
- light: B[300],
1378
- dark: B[700]
1379
- };
1380
- }
1381
- function nn(e = "light") {
1382
- return e === "dark" ? {
1383
- main: H[500],
1384
- light: H[300],
1385
- dark: H[700]
1386
- } : {
1387
- main: H[700],
1388
- light: H[400],
1389
- dark: H[800]
1390
- };
1391
- }
1392
- function sn(e = "light") {
1393
- return e === "dark" ? {
1394
- main: K[400],
1395
- light: K[300],
1396
- dark: K[700]
1397
- } : {
1398
- main: K[700],
1399
- light: K[500],
1400
- dark: K[900]
1401
- };
1402
- }
1403
- function on(e = "light") {
1404
- return e === "dark" ? {
1405
- main: J[400],
1406
- light: J[300],
1407
- dark: J[700]
1408
- } : {
1409
- main: J[800],
1410
- light: J[500],
1411
- dark: J[900]
1412
- };
1413
- }
1414
- function an(e = "light") {
1415
- return e === "dark" ? {
1416
- main: te[400],
1417
- light: te[300],
1418
- dark: te[700]
1419
- } : {
1420
- main: "#ed6c02",
1421
- // closest to orange[800] that pass 3:1.
1422
- light: te[500],
1423
- dark: te[900]
1424
- };
1425
- }
1426
- function cn(e) {
1427
- const {
1428
- mode: r = "light",
1429
- contrastThreshold: t = 3,
1430
- tonalOffset: n = 0.2
1431
- } = e, s = W(e, en), a = e.primary || rn(r), c = e.secondary || tn(r), d = e.error || nn(r), f = e.info || sn(r), u = e.success || on(r), l = e.warning || an(r);
1432
- function y(i) {
1433
- const o = Ke(i, Ae.text.primary) >= t ? Ae.text.primary : Je.text.primary;
1434
- if (process.env.NODE_ENV !== "production") {
1435
- const m = Ke(i, o);
1436
- m < 3 && console.error([`MUI: The contrast ratio of ${m}:1 for ${o} on ${i}`, "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(`
1437
- `));
1438
- }
1439
- return o;
1440
- }
1441
- const h = ({
1442
- color: i,
1443
- name: o,
1444
- mainShade: m = 500,
1445
- lightShade: _ = 300,
1446
- darkShade: k = 700
1447
- }) => {
1448
- if (i = O({}, i), !i.main && i[m] && (i.main = i[m]), !i.hasOwnProperty("main"))
1449
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${o ? ` (${o})` : ""} provided to augmentColor(color) is invalid.
1450
- The color object needs to have a \`main\` property or a \`${m}\` property.` : oe(11, o ? ` (${o})` : "", m));
1451
- if (typeof i.main != "string")
1452
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${o ? ` (${o})` : ""} provided to augmentColor(color) is invalid.
1453
- \`color.main\` should be a string, but \`${JSON.stringify(i.main)}\` was provided instead.
1454
-
1455
- Did you intend to use one of the following approaches?
1456
-
1457
- import { green } from "@mui/material/colors";
1458
-
1459
- const theme1 = createTheme({ palette: {
1460
- primary: green,
1461
- } });
1462
-
1463
- const theme2 = createTheme({ palette: {
1464
- primary: { main: green[500] },
1465
- } });` : oe(12, o ? ` (${o})` : "", JSON.stringify(i.main)));
1466
- return Xe(i, "light", _, n), Xe(i, "dark", k, n), i.contrastText || (i.contrastText = y(i.main)), i;
1467
- }, x = {
1468
- dark: Ae,
1469
- light: Je
1470
- };
1471
- return process.env.NODE_ENV !== "production" && (x[r] || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), ne(O({
1472
- // A collection of common colors.
1473
- common: O({}, ce),
1474
- // prevent mutable object.
1475
- // The palette mode, can be light or dark.
1476
- mode: r,
1477
- // The colors used to represent primary interface elements for a user.
1478
- primary: h({
1479
- color: a,
1480
- name: "primary"
1481
- }),
1482
- // The colors used to represent secondary interface elements for a user.
1483
- secondary: h({
1484
- color: c,
1485
- name: "secondary",
1486
- mainShade: "A400",
1487
- lightShade: "A200",
1488
- darkShade: "A700"
1489
- }),
1490
- // The colors used to represent interface elements that the user should be made aware of.
1491
- error: h({
1492
- color: d,
1493
- name: "error"
1494
- }),
1495
- // The colors used to represent potentially dangerous actions or important messages.
1496
- warning: h({
1497
- color: l,
1498
- name: "warning"
1499
- }),
1500
- // The colors used to present information to the user that is neutral and not necessarily important.
1501
- info: h({
1502
- color: f,
1503
- name: "info"
1504
- }),
1505
- // The colors used to indicate the successful completion of an action that user triggered.
1506
- success: h({
1507
- color: u,
1508
- name: "success"
1509
- }),
1510
- // The grey colors.
1511
- grey: Ht,
1512
- // Used by `getContrastText()` to maximize the contrast between
1513
- // the background and the text.
1514
- contrastThreshold: t,
1515
- // Takes a background color and returns the text color that maximizes the contrast.
1516
- getContrastText: y,
1517
- // Generate a rich color object.
1518
- augmentColor: h,
1519
- // Used by the functions below to shift a color's luminance by approximately
1520
- // two indexes within its tonal palette.
1521
- // E.g., shift from Red 500 to Red 300 or Red 700.
1522
- tonalOffset: n
1523
- }, x[r]), s);
1524
- }
1525
- const fn = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
1526
- function un(e) {
1527
- return Math.round(e * 1e5) / 1e5;
1528
- }
1529
- const Ze = {
1530
- textTransform: "uppercase"
1531
- }, Qe = '"Roboto", "Helvetica", "Arial", sans-serif';
1532
- function ln(e, r) {
1533
- const t = typeof r == "function" ? r(e) : r, {
1534
- fontFamily: n = Qe,
1535
- // The default font size of the Material Specification.
1536
- fontSize: s = 14,
1537
- // px
1538
- fontWeightLight: a = 300,
1539
- fontWeightRegular: c = 400,
1540
- fontWeightMedium: d = 500,
1541
- fontWeightBold: f = 700,
1542
- // Tell MUI what's the font-size on the html element.
1543
- // 16px is the default font-size used by browsers.
1544
- htmlFontSize: u = 16,
1545
- // Apply the CSS properties to all the variants.
1546
- allVariants: l,
1547
- pxToRem: y
1548
- } = t, h = W(t, fn);
1549
- process.env.NODE_ENV !== "production" && (typeof s != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
1550
- const x = s / 14, b = y || ((m) => `${m / u * x}rem`), i = (m, _, k, D, g) => O({
1551
- fontFamily: n,
1552
- fontWeight: m,
1553
- fontSize: b(_),
1554
- // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
1555
- lineHeight: k
1556
- }, n === Qe ? {
1557
- letterSpacing: `${un(D / _)}em`
1558
- } : {}, g, l), o = {
1559
- h1: i(a, 96, 1.167, -1.5),
1560
- h2: i(a, 60, 1.2, -0.5),
1561
- h3: i(c, 48, 1.167, 0),
1562
- h4: i(c, 34, 1.235, 0.25),
1563
- h5: i(c, 24, 1.334, 0),
1564
- h6: i(d, 20, 1.6, 0.15),
1565
- subtitle1: i(c, 16, 1.75, 0.15),
1566
- subtitle2: i(d, 14, 1.57, 0.1),
1567
- body1: i(c, 16, 1.5, 0.15),
1568
- body2: i(c, 14, 1.43, 0.15),
1569
- button: i(d, 14, 1.75, 0.4, Ze),
1570
- caption: i(c, 12, 1.66, 0.4),
1571
- overline: i(c, 12, 2.66, 1, Ze),
1572
- // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
1573
- inherit: {
1574
- fontFamily: "inherit",
1575
- fontWeight: "inherit",
1576
- fontSize: "inherit",
1577
- lineHeight: "inherit",
1578
- letterSpacing: "inherit"
1579
- }
1580
- };
1581
- return ne(O({
1582
- htmlFontSize: u,
1583
- pxToRem: b,
1584
- fontFamily: n,
1585
- fontSize: s,
1586
- fontWeightLight: a,
1587
- fontWeightRegular: c,
1588
- fontWeightMedium: d,
1589
- fontWeightBold: f
1590
- }, o), h, {
1591
- clone: !1
1592
- // No need to clone deep
1593
- });
1594
- }
1595
- const dn = 0.2, pn = 0.14, hn = 0.12;
1596
- function A(...e) {
1597
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${dn})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pn})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hn})`].join(",");
1598
- }
1599
- const mn = ["none", A(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), A(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), A(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), A(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), A(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), A(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), A(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), A(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), A(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), A(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), A(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), A(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), A(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), A(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), A(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), A(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), A(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), A(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), A(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), A(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), A(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), A(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), A(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), A(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], yn = ["duration", "easing", "delay"], gn = {
1600
- // This is the most common easing curve.
1601
- easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
1602
- // Objects enter the screen at full velocity from off-screen and
1603
- // slowly decelerate to a resting point.
1604
- easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
1605
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
1606
- easeIn: "cubic-bezier(0.4, 0, 1, 1)",
1607
- // The sharp curve is used by objects that may return to the screen at any time.
1608
- sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
1609
- }, bn = {
1610
- shortest: 150,
1611
- shorter: 200,
1612
- short: 250,
1613
- // most basic recommended timing
1614
- standard: 300,
1615
- // this is to be used in complex animations
1616
- complex: 375,
1617
- // recommended when something is entering screen
1618
- enteringScreen: 225,
1619
- // recommended when something is leaving screen
1620
- leavingScreen: 195
1621
- };
1622
- function er(e) {
1623
- return `${Math.round(e)}ms`;
1624
- }
1625
- function vn(e) {
1626
- if (!e)
1627
- return 0;
1628
- const r = e / 36;
1629
- return Math.round((4 + 15 * r ** 0.25 + r / 5) * 10);
1630
- }
1631
- function En(e) {
1632
- const r = O({}, gn, e.easing), t = O({}, bn, e.duration);
1633
- return O({
1634
- getAutoHeightDuration: vn,
1635
- create: (s = ["all"], a = {}) => {
1636
- const {
1637
- duration: c = t.standard,
1638
- easing: d = r.easeInOut,
1639
- delay: f = 0
1640
- } = a, u = W(a, yn);
1641
- if (process.env.NODE_ENV !== "production") {
1642
- const l = (h) => typeof h == "string", y = (h) => !isNaN(parseFloat(h));
1643
- !l(s) && !Array.isArray(s) && console.error('MUI: Argument "props" must be a string or Array.'), !y(c) && !l(c) && console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`), l(d) || console.error('MUI: Argument "easing" must be a string.'), !y(f) && !l(f) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
1644
- `)), Object.keys(u).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`);
1645
- }
1646
- return (Array.isArray(s) ? s : [s]).map((l) => `${l} ${typeof c == "string" ? c : er(c)} ${d} ${typeof f == "string" ? f : er(f)}`).join(",");
1647
- }
1648
- }, e, {
1649
- easing: r,
1650
- duration: t
1651
- });
1652
- }
1653
- const $n = {
1654
- mobileStepper: 1e3,
1655
- fab: 1050,
1656
- speedDial: 1050,
1657
- appBar: 1100,
1658
- drawer: 1200,
1659
- modal: 1300,
1660
- snackbar: 1400,
1661
- tooltip: 1500
1662
- }, Sn = $n, wn = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
1663
- function _n(e = {}, ...r) {
1664
- const {
1665
- mixins: t = {},
1666
- palette: n = {},
1667
- transitions: s = {},
1668
- typography: a = {}
1669
- } = e, c = W(e, wn);
1670
- if (e.vars)
1671
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : oe(18));
1672
- const d = cn(n), f = tr(e);
1673
- let u = ne(f, {
1674
- mixins: Yt(f.breakpoints, t),
1675
- palette: d,
1676
- // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
1677
- shadows: mn.slice(),
1678
- typography: ln(d, a),
1679
- transitions: En(s),
1680
- zIndex: O({}, Sn)
1681
- });
1682
- if (u = ne(u, c), u = r.reduce((l, y) => ne(l, y), u), process.env.NODE_ENV !== "production") {
1683
- const l = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], y = (h, x) => {
1684
- let b;
1685
- for (b in h) {
1686
- const i = h[b];
1687
- if (l.indexOf(b) !== -1 && Object.keys(i).length > 0) {
1688
- if (process.env.NODE_ENV !== "production") {
1689
- const o = rr("", b);
1690
- console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${b}\` internal state.`, "You can not override it like this: ", JSON.stringify(h, null, 2), "", `Instead, you need to use the '&.${o}' syntax:`, JSON.stringify({
1691
- root: {
1692
- [`&.${o}`]: i
1693
- }
1694
- }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
1695
- `));
1696
- }
1697
- h[b] = {};
1698
- }
1699
- }
1700
- };
1701
- Object.keys(u.components).forEach((h) => {
1702
- const x = u.components[h].styleOverrides;
1703
- x && h.indexOf("Mui") === 0 && y(x, h);
1704
- });
1705
- }
1706
- return u.unstable_sxConfig = O({}, zr, c == null ? void 0 : c.unstable_sxConfig), u.unstable_sx = function(y) {
1707
- return nr({
1708
- sx: y,
1709
- theme: this
1710
- });
1711
- }, u;
1712
- }
1713
- const xn = _n(), $r = xn;
1714
- function Vn({
1715
- props: e,
1716
- name: r
1717
- }) {
1718
- return Lr({
1719
- props: e,
1720
- name: r,
1721
- defaultTheme: $r,
1722
- themeId: Er
1723
- });
1724
- }
1725
- const An = (e) => se(e) && e !== "classes", jn = se, zn = Lt({
1726
- themeId: Er,
1727
- defaultTheme: $r,
1728
- rootShouldForwardProp: An
1729
- });
1730
- export {
1731
- pr as G,
1732
- Er as T,
1733
- In as a,
1734
- Fn as b,
1735
- Mn as c,
1736
- $r as d,
1737
- hr as e,
1738
- _n as f,
1739
- Pn as g,
1740
- Mt as h,
1741
- Ct as i,
1742
- Cn as j,
1743
- An as k,
1744
- jn as l,
1745
- vr as m,
1746
- br as n,
1747
- Dn as o,
1748
- Be as r,
1749
- zn as s,
1750
- Vn as u
1751
- };