fansunited-widgets-cdn 0.0.86-RC8 → 0.0.86

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 (60) hide show
  1. package/chunks/{Alert-B6o66mYo.js → Alert-DyM0oQgv.js} +32 -32
  2. package/chunks/{CardContent-NCZhfGcZ.js → CardContent-JGV7AYRJ.js} +19 -18
  3. package/chunks/{ChevronRight-1pLZ7T0v.js → ChevronRight-BjivYvSo.js} +11 -11
  4. package/chunks/{ClassicQuizWrapper-n2epPO4k.js → ClassicQuizWrapper-ChR6VdmQ.js} +8 -9
  5. package/chunks/{CollectLeadForm-C_3plJtn-Dr8J3eDw.js → CollectLeadForm-iZpBeMTk-Be-1nl3u.js} +2 -2
  6. package/chunks/{CollectLeadWrapper-CCtTZAxL.js → CollectLeadWrapper-DWGnbQNs.js} +22 -23
  7. package/chunks/{EitherOrById-ClGwMK0b.js → EitherOrById-HLRwnSut.js} +65 -65
  8. package/chunks/{EitherOrPreviewWrapper-BYiKyYwi.js → EitherOrPreviewWrapper-Bhb40ehK.js} +10 -10
  9. package/chunks/{Error-BurPfBJw-DWYn31sK.js → Error-D0HPar1M-CvBCxjku.js} +3 -3
  10. package/chunks/{EventGameWrapper-BphusLTk.js → EventGameWrapper-FLrbgLNx.js} +95 -96
  11. package/chunks/{Grid-yjqNNhEx.js → Grid-BgTvl7U0.js} +37 -37
  12. package/chunks/{IconButton-D7onwgY0.js → IconButton-UDap3hOW.js} +21 -21
  13. package/chunks/{List-8Vy9IZiv.js → List-CaGDrvb1.js} +23 -23
  14. package/chunks/{MatchPredictionContainer-BGytBwLo.js → MatchPredictionContainer-CCryS3WW.js} +7 -7
  15. package/chunks/{MatchQuizWrapper-BGjldBpF.js → MatchQuizWrapper-CNPkFMYb.js} +149 -150
  16. package/chunks/{OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js → OverlayLeadAfterCollection-CwqTKIoQ-B249CJNS.js} +3 -3
  17. package/chunks/{OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js → OverlayScoreStateSkeleton-CR-b8BTk-CcF6Sgb_.js} +8 -8
  18. package/chunks/{PersonalityQuizWrapper-BgLFw5tM.js → PersonalityQuizWrapper-D0_OHdgC.js} +315 -314
  19. package/chunks/{PlayerOfTheMatch-CImBLG3T.js → PlayerOfTheMatch-KHUAoy28.js} +96 -96
  20. package/chunks/{PollWrapper-QpIKCCVF.js → PollWrapper-Dsi16RT3.js} +8 -9
  21. package/chunks/{Portal-DegkUXpU-ByGP9zS1.js → Portal-Cvhw2F3y-CfNE9zHV.js} +313 -314
  22. package/chunks/{PreviewQuizById-Ba6yhxKV.js → PreviewQuizById-DdmuvcAL.js} +1019 -996
  23. package/chunks/{Sheet-U5EnSrgg.js → Sheet-x5Z9YdFs.js} +35 -35
  24. package/chunks/{Stack-DbDi7kPO.js → Stack-DZB2vzbp.js} +36 -36
  25. package/chunks/{Tabs-leN3Fb8D--YMyy3EM.js → Tabs-DmfafFAr-bCryBf-H.js} +2 -2
  26. package/chunks/{TeamNextMatchPrediction-9VSQOCcC.js → TeamNextMatchPrediction-C-fToJvQ.js} +2 -2
  27. package/chunks/{Tutorial-CRJLOovs.js → Tutorial-BI9zKJw5.js} +72 -73
  28. package/chunks/{createLucideIcon-CMWOQsDL.js → createLucideIcon-89uTOJaq.js} +8 -8
  29. package/chunks/{createSvgIcon-D9D4a1R9.js → createSvgIcon-DsrdSWLs.js} +167 -167
  30. package/chunks/{default-quiz-bg-ADjjIfPj.js → default-quiz-bg-CbX4gLOf.js} +15 -14
  31. package/chunks/{index-UwW9niUj.js → index-BJtPwLU2.js} +1 -1
  32. package/chunks/{index-CPTAlr_t.js → index-BXdeff8G.js} +1 -1
  33. package/chunks/{index-Da0AXb_O.js → index-BwmaB0Jc.js} +1 -1
  34. package/chunks/{index-CviTG4Nv.js → index-CSM_gD0c.js} +1 -1
  35. package/chunks/{index-BycLbIYY.js → index-CfNoJqrf.js} +1 -1
  36. package/chunks/{index-C6KAc5B_.js → index-CowyrOBF.js} +1 -1
  37. package/chunks/{index-DUQ2LFod-Cw45tHim.js → index-CsLtqiB_-DH3NMQxW.js} +32 -29
  38. package/chunks/{index-DwR4J2nN.js → index-CtAJur0I.js} +1 -1
  39. package/chunks/{index-CILd3yUc.js → index-DBucbNfJ.js} +1 -1
  40. package/chunks/{index-CHV6tlpH.js → index-DRDXyva1.js} +9 -9
  41. package/chunks/{index-CvGJXa6l.js → index-DRsTGSlf.js} +1 -1
  42. package/chunks/{index-CK2RXrJm.js → index-DXh1obfA.js} +1 -1
  43. package/chunks/{index-B74jHeYm.js → index-Dbuicm10.js} +2 -2
  44. package/chunks/{index-BfVvJg5R.js → index-DoDwv4Hi.js} +1 -1
  45. package/chunks/{index-CiB_Gqim.js → index-SdhwlCm-.js} +1 -1
  46. package/chunks/{index-0ADq_9jd.js → index-TCdxAH9x.js} +1 -1
  47. package/chunks/{init-C-gCorsh.js → init-CxQCMVyG.js} +1 -1
  48. package/chunks/main-Cx-uBTln.js +51049 -0
  49. package/chunks/resolveProps-DfBmYyXU.js +1632 -0
  50. package/chunks/{users-CXdzg3DM.js → users-Bltqtuv-.js} +1 -1
  51. package/fu-widgets-loader.es.js +16 -17
  52. package/fu-widgets-loader.js +1 -1
  53. package/fu-widgets.es.js +2 -2
  54. package/fu-widgets.iife.js +290 -290
  55. package/manifest.json +52 -54
  56. package/package.json +1 -1
  57. package/chunks/index-CJqcqbHq.js +0 -5
  58. package/chunks/index.es-wHqA4PHm.js +0 -11480
  59. package/chunks/main-Bh6iw92_.js +0 -39827
  60. package/chunks/resolveProps-Bgg0H6c2.js +0 -1016
@@ -0,0 +1,1632 @@
1
+ import { d as O, _ as i, X as xe, Y as We, Z as ke, $ as Be, r as C, z as Pe, j as H, S as Le, a0 as Ue, a1 as ge, T as le, B as ce, a2 as _e, g as X, b as Y, e as M, a3 as Je, l as Ke, a4 as we, a5 as Ge } from "./main-Cx-uBTln.js";
2
+ const Ze = ["sx"], Xe = (e) => {
3
+ var t, a;
4
+ const o = {
5
+ systemProps: {},
6
+ otherProps: {}
7
+ }, n = (t = e == null || (a = e.theme) == null ? void 0 : a.unstable_sxConfig) != null ? t : We;
8
+ return Object.keys(e).forEach((r) => {
9
+ n[r] ? o.systemProps[r] = e[r] : o.otherProps[r] = e[r];
10
+ }), o;
11
+ };
12
+ function Se(e) {
13
+ const {
14
+ sx: t
15
+ } = e, a = O(e, Ze), {
16
+ systemProps: o,
17
+ otherProps: n
18
+ } = Xe(a);
19
+ let r;
20
+ return Array.isArray(t) ? r = [o, ...t] : typeof t == "function" ? r = (...s) => {
21
+ const l = t(...s);
22
+ return xe(l) ? i({}, o, l) : o;
23
+ } : r = i({}, o, t), i({}, n, {
24
+ sx: r
25
+ });
26
+ }
27
+ function De(e) {
28
+ var t, a, o = "";
29
+ if (typeof e == "string" || typeof e == "number") o += e;
30
+ else if (typeof e == "object") if (Array.isArray(e)) {
31
+ var n = e.length;
32
+ for (t = 0; t < n; t++) e[t] && (a = De(e[t])) && (o && (o += " "), o += a);
33
+ } else for (a in e) e[a] && (o && (o += " "), o += a);
34
+ return o;
35
+ }
36
+ function J() {
37
+ for (var e, t, a = 0, o = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (t = De(e)) && (o && (o += " "), o += t);
38
+ return o;
39
+ }
40
+ const Ye = ["className", "component"];
41
+ function qe(e = {}) {
42
+ const {
43
+ themeId: t,
44
+ defaultTheme: a,
45
+ defaultClassName: o = "MuiBox-root",
46
+ generateClassName: n
47
+ } = e, r = ke("div", {
48
+ shouldForwardProp: (l) => l !== "theme" && l !== "sx" && l !== "as"
49
+ })(Be);
50
+ return /* @__PURE__ */ C.forwardRef(function(p, d) {
51
+ const m = Pe(a), g = Se(p), {
52
+ className: B,
53
+ component: y = "div"
54
+ } = g, x = O(g, Ye);
55
+ return /* @__PURE__ */ H.jsx(r, i({
56
+ as: y,
57
+ ref: d,
58
+ className: J(B, n ? n(o) : o),
59
+ theme: t && m[t] || m
60
+ }, x));
61
+ });
62
+ }
63
+ const Qe = ["ownerState"], et = ["variants"], tt = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
64
+ function rt(e) {
65
+ return Object.keys(e).length === 0;
66
+ }
67
+ function at(e) {
68
+ return typeof e == "string" && // 96 is one less than the char code
69
+ // for "a" so this is checking that
70
+ // it's a lowercase character
71
+ e.charCodeAt(0) > 96;
72
+ }
73
+ function oe(e) {
74
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
75
+ }
76
+ function fe(e, t) {
77
+ return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
78
+ }
79
+ const ot = Le(), nt = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
80
+ function w({
81
+ defaultTheme: e,
82
+ theme: t,
83
+ themeId: a
84
+ }) {
85
+ return rt(t) ? e : t[a] || t;
86
+ }
87
+ function st(e) {
88
+ return e ? (t, a) => a[e] : null;
89
+ }
90
+ function G(e, t, a) {
91
+ let {
92
+ ownerState: o
93
+ } = t, n = O(t, Qe);
94
+ const r = typeof e == "function" ? e(i({
95
+ ownerState: o
96
+ }, n)) : e;
97
+ if (Array.isArray(r))
98
+ return r.flatMap((s) => G(s, i({
99
+ ownerState: o
100
+ }, n), a));
101
+ if (r && typeof r == "object" && Array.isArray(r.variants)) {
102
+ const {
103
+ variants: s = []
104
+ } = r;
105
+ let p = O(r, et);
106
+ return s.forEach((d) => {
107
+ let m = !0;
108
+ if (typeof d.props == "function" ? m = d.props(i({
109
+ ownerState: o
110
+ }, n, o)) : Object.keys(d.props).forEach((g) => {
111
+ (o == null ? void 0 : o[g]) !== d.props[g] && n[g] !== d.props[g] && (m = !1);
112
+ }), m) {
113
+ Array.isArray(p) || (p = [p]);
114
+ const g = typeof d.style == "function" ? d.style(i({
115
+ ownerState: o
116
+ }, n, o)) : d.style;
117
+ p.push(a ? fe(ge(g), a) : g);
118
+ }
119
+ }), p;
120
+ }
121
+ return a ? fe(ge(r), a) : r;
122
+ }
123
+ function Re(e = {}) {
124
+ const {
125
+ themeId: t,
126
+ defaultTheme: a = ot,
127
+ rootShouldForwardProp: o = oe,
128
+ slotShouldForwardProp: n = oe
129
+ } = e, r = (s) => Be(i({}, s, {
130
+ theme: w(i({}, s, {
131
+ defaultTheme: a,
132
+ themeId: t
133
+ }))
134
+ }));
135
+ return r.__mui_systemSx = !0, (s, l = {}) => {
136
+ Ue(s, (f) => f.filter((u) => !(u != null && u.__mui_systemSx)));
137
+ const {
138
+ name: p,
139
+ slot: d,
140
+ skipVariantsResolver: m,
141
+ skipSx: g,
142
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
143
+ // For more details: https://github.com/mui/material-ui/pull/37908
144
+ overridesResolver: B = st(nt(d))
145
+ } = l, y = O(l, tt), x = p && p.startsWith("Mui") || d ? "components" : "custom", _ = m !== void 0 ? m : (
146
+ // TODO v6: remove `Root` in the next major release
147
+ // For more details: https://github.com/mui/material-ui/pull/37908
148
+ d && d !== "Root" && d !== "root" || !1
149
+ ), k = g || !1;
150
+ let S, $ = oe;
151
+ d === "Root" || d === "root" ? $ = o : d ? $ = n : at(s) && ($ = void 0);
152
+ const P = ke(s, i({
153
+ shouldForwardProp: $,
154
+ label: S
155
+ }, y)), D = (f) => typeof f == "function" && f.__emotion_real !== f || xe(f) ? (u) => {
156
+ const R = w({
157
+ theme: u.theme,
158
+ defaultTheme: a,
159
+ themeId: t
160
+ });
161
+ return G(f, i({}, u, {
162
+ theme: R
163
+ }), R.modularCssLayers ? x : void 0);
164
+ } : f, T = (f, ...u) => {
165
+ let R = D(f);
166
+ const z = u ? u.map(D) : [];
167
+ p && B && z.push((E) => {
168
+ const b = w(i({}, E, {
169
+ defaultTheme: a,
170
+ themeId: t
171
+ }));
172
+ if (!b.components || !b.components[p] || !b.components[p].styleOverrides)
173
+ return null;
174
+ const F = b.components[p].styleOverrides, v = {};
175
+ return Object.entries(F).forEach(([c, h]) => {
176
+ v[c] = G(h, i({}, E, {
177
+ theme: b
178
+ }), b.modularCssLayers ? "theme" : void 0);
179
+ }), B(E, v);
180
+ }), p && !_ && z.push((E) => {
181
+ var b;
182
+ const F = w(i({}, E, {
183
+ defaultTheme: a,
184
+ themeId: t
185
+ })), v = F == null || (b = F.components) == null || (b = b[p]) == null ? void 0 : b.variants;
186
+ return G({
187
+ variants: v
188
+ }, i({}, E, {
189
+ theme: F
190
+ }), F.modularCssLayers ? "theme" : void 0);
191
+ }), k || z.push(r);
192
+ const N = z.length - u.length;
193
+ if (Array.isArray(f) && N > 0) {
194
+ const E = new Array(N).fill("");
195
+ R = [...f, ...E], R.raw = [...f.raw, ...E];
196
+ }
197
+ const A = P(R, ...z);
198
+ return s.muiName && (A.muiName = s.muiName), A;
199
+ };
200
+ return P.withConfig && (T.withConfig = P.withConfig), T;
201
+ };
202
+ }
203
+ const $r = Re();
204
+ function Te(e, t) {
205
+ const a = i({}, t);
206
+ return Object.keys(e).forEach((o) => {
207
+ if (o.toString().match(/^(components|slots)$/))
208
+ a[o] = i({}, e[o], a[o]);
209
+ else if (o.toString().match(/^(componentsProps|slotProps)$/)) {
210
+ const n = e[o] || {}, r = t[o];
211
+ a[o] = {}, !r || !Object.keys(r) ? a[o] = n : !n || !Object.keys(n) ? a[o] = r : (a[o] = i({}, r), Object.keys(n).forEach((s) => {
212
+ a[o][s] = Te(n[s], r[s]);
213
+ }));
214
+ } else a[o] === void 0 && (a[o] = e[o]);
215
+ }), a;
216
+ }
217
+ function it(e) {
218
+ const {
219
+ theme: t,
220
+ name: a,
221
+ props: o
222
+ } = e;
223
+ return !t || !t.components || !t.components[a] || !t.components[a].defaultProps ? o : Te(t.components[a].defaultProps, o);
224
+ }
225
+ function lt({
226
+ props: e,
227
+ name: t,
228
+ defaultTheme: a,
229
+ themeId: o
230
+ }) {
231
+ let n = Pe(a);
232
+ return o && (n = n[o] || n), it({
233
+ theme: n,
234
+ name: t,
235
+ props: e
236
+ });
237
+ }
238
+ function ze(e, t) {
239
+ var a, o;
240
+ return /* @__PURE__ */ C.isValidElement(e) && t.indexOf(
241
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
242
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
243
+ // eslint-disable-next-line no-underscore-dangle
244
+ (a = e.type.muiName) != null ? a : (o = e.type) == null || (o = o._payload) == null || (o = o.value) == null ? void 0 : o.muiName
245
+ ) !== -1;
246
+ }
247
+ function ct(e, t) {
248
+ typeof e == "function" ? e(t) : e && (e.current = t);
249
+ }
250
+ function de(...e) {
251
+ return C.useMemo(() => e.every((t) => t == null) ? null : (t) => {
252
+ e.forEach((a) => {
253
+ ct(a, t);
254
+ });
255
+ }, e);
256
+ }
257
+ const me = {};
258
+ function dt(e, t) {
259
+ const a = C.useRef(me);
260
+ return a.current === me && (a.current = e(t)), a;
261
+ }
262
+ const ut = [];
263
+ function pt(e) {
264
+ C.useEffect(e, ut);
265
+ }
266
+ class q {
267
+ constructor() {
268
+ this.currentId = null, this.clear = () => {
269
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
270
+ }, this.disposeEffect = () => this.clear;
271
+ }
272
+ static create() {
273
+ return new q();
274
+ }
275
+ /**
276
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
277
+ */
278
+ start(t, a) {
279
+ this.clear(), this.currentId = setTimeout(() => {
280
+ this.currentId = null, a();
281
+ }, t);
282
+ }
283
+ }
284
+ function br() {
285
+ const e = dt(q.create).current;
286
+ return pt(e.disposeEffect), e;
287
+ }
288
+ let Q = !0, se = !1;
289
+ const vt = new q(), gt = {
290
+ text: !0,
291
+ search: !0,
292
+ url: !0,
293
+ tel: !0,
294
+ email: !0,
295
+ password: !0,
296
+ number: !0,
297
+ date: !0,
298
+ month: !0,
299
+ week: !0,
300
+ time: !0,
301
+ datetime: !0,
302
+ "datetime-local": !0
303
+ };
304
+ function ft(e) {
305
+ const {
306
+ type: t,
307
+ tagName: a
308
+ } = e;
309
+ return !!(a === "INPUT" && gt[t] && !e.readOnly || a === "TEXTAREA" && !e.readOnly || e.isContentEditable);
310
+ }
311
+ function mt(e) {
312
+ e.metaKey || e.altKey || e.ctrlKey || (Q = !0);
313
+ }
314
+ function ne() {
315
+ Q = !1;
316
+ }
317
+ function ht() {
318
+ this.visibilityState === "hidden" && se && (Q = !0);
319
+ }
320
+ function Ct(e) {
321
+ e.addEventListener("keydown", mt, !0), e.addEventListener("mousedown", ne, !0), e.addEventListener("pointerdown", ne, !0), e.addEventListener("touchstart", ne, !0), e.addEventListener("visibilitychange", ht, !0);
322
+ }
323
+ function $t(e) {
324
+ const {
325
+ target: t
326
+ } = e;
327
+ try {
328
+ return t.matches(":focus-visible");
329
+ } catch {
330
+ }
331
+ return Q || ft(t);
332
+ }
333
+ function bt() {
334
+ const e = C.useCallback((n) => {
335
+ n != null && Ct(n.ownerDocument);
336
+ }, []), t = C.useRef(!1);
337
+ function a() {
338
+ return t.current ? (se = !0, vt.start(100, () => {
339
+ se = !1;
340
+ }), t.current = !1, !0) : !1;
341
+ }
342
+ function o(n) {
343
+ return $t(n) ? (t.current = !0, !0) : !1;
344
+ }
345
+ return {
346
+ isFocusVisibleRef: t,
347
+ onFocus: o,
348
+ onBlur: a,
349
+ ref: e
350
+ };
351
+ }
352
+ function ee(e, t, a = void 0) {
353
+ const o = {};
354
+ return Object.keys(e).forEach(
355
+ // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
356
+ // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
357
+ (n) => {
358
+ o[n] = e[n].reduce((r, s) => {
359
+ if (s) {
360
+ const l = t(s);
361
+ l !== "" && r.push(l), a && a[s] && r.push(a[s]);
362
+ }
363
+ return r;
364
+ }, []).join(" ");
365
+ }
366
+ ), o;
367
+ }
368
+ function yt(e) {
369
+ return typeof e == "string";
370
+ }
371
+ function xt(e, t, a) {
372
+ return e === void 0 || yt(e) ? t : i({}, t, {
373
+ ownerState: i({}, t.ownerState, a)
374
+ });
375
+ }
376
+ function ie(e, t = []) {
377
+ if (e === void 0)
378
+ return {};
379
+ const a = {};
380
+ return Object.keys(e).filter((o) => o.match(/^on[A-Z]/) && typeof e[o] == "function" && !t.includes(o)).forEach((o) => {
381
+ a[o] = e[o];
382
+ }), a;
383
+ }
384
+ function he(e) {
385
+ if (e === void 0)
386
+ return {};
387
+ const t = {};
388
+ return Object.keys(e).filter((a) => !(a.match(/^on[A-Z]/) && typeof e[a] == "function")).forEach((a) => {
389
+ t[a] = e[a];
390
+ }), t;
391
+ }
392
+ function kt(e) {
393
+ const {
394
+ getSlotProps: t,
395
+ additionalProps: a,
396
+ externalSlotProps: o,
397
+ externalForwardedProps: n,
398
+ className: r
399
+ } = e;
400
+ if (!t) {
401
+ const y = J(a == null ? void 0 : a.className, r, n == null ? void 0 : n.className, o == null ? void 0 : o.className), x = i({}, a == null ? void 0 : a.style, n == null ? void 0 : n.style, o == null ? void 0 : o.style), _ = i({}, a, n, o);
402
+ return y.length > 0 && (_.className = y), Object.keys(x).length > 0 && (_.style = x), {
403
+ props: _,
404
+ internalRef: void 0
405
+ };
406
+ }
407
+ const s = ie(i({}, n, o)), l = he(o), p = he(n), d = t(s), m = J(d == null ? void 0 : d.className, a == null ? void 0 : a.className, r, n == null ? void 0 : n.className, o == null ? void 0 : o.className), g = i({}, d == null ? void 0 : d.style, a == null ? void 0 : a.style, n == null ? void 0 : n.style, o == null ? void 0 : o.style), B = i({}, d, a, p, l);
408
+ return m.length > 0 && (B.className = m), Object.keys(g).length > 0 && (B.style = g), {
409
+ props: B,
410
+ internalRef: d.ref
411
+ };
412
+ }
413
+ function Bt(e, t, a) {
414
+ return typeof e == "function" ? e(t, a) : e;
415
+ }
416
+ const V = Re({
417
+ defaultTheme: ce,
418
+ themeId: le
419
+ });
420
+ function te({
421
+ props: e,
422
+ name: t
423
+ }) {
424
+ return lt({
425
+ props: e,
426
+ name: t,
427
+ defaultTheme: i({}, ce, {
428
+ components: {}
429
+ }),
430
+ themeId: le
431
+ });
432
+ }
433
+ function Pt(e) {
434
+ const {
435
+ rootElementName: t = ""
436
+ } = e, [a, o] = C.useState(t.toUpperCase()), n = C.useCallback((r) => {
437
+ var s;
438
+ o((s = r == null ? void 0 : r.tagName) != null ? s : "");
439
+ }, []);
440
+ return [a, n];
441
+ }
442
+ function _t(e = {}) {
443
+ const {
444
+ disabled: t = !1,
445
+ focusableWhenDisabled: a,
446
+ href: o,
447
+ rootRef: n,
448
+ tabIndex: r,
449
+ to: s,
450
+ type: l,
451
+ rootElementName: p
452
+ } = e, d = C.useRef(null), [m, g] = C.useState(!1), {
453
+ isFocusVisibleRef: B,
454
+ onFocus: y,
455
+ onBlur: x,
456
+ ref: _
457
+ } = bt(), [k, S] = C.useState(!1);
458
+ t && !a && k && S(!1), C.useEffect(() => {
459
+ B.current = k;
460
+ }, [k, B]);
461
+ const [$, P] = Pt({
462
+ rootElementName: p ?? (o || s ? "a" : void 0)
463
+ }), D = (v) => (c) => {
464
+ var h;
465
+ k && c.preventDefault(), (h = v.onMouseLeave) == null || h.call(v, c);
466
+ }, T = (v) => (c) => {
467
+ var h;
468
+ x(c), B.current === !1 && S(!1), (h = v.onBlur) == null || h.call(v, c);
469
+ }, f = (v) => (c) => {
470
+ var h;
471
+ if (d.current || (d.current = c.currentTarget), y(c), B.current === !0) {
472
+ var I;
473
+ S(!0), (I = v.onFocusVisible) == null || I.call(v, c);
474
+ }
475
+ (h = v.onFocus) == null || h.call(v, c);
476
+ }, u = () => {
477
+ const v = d.current;
478
+ return $ === "BUTTON" || $ === "INPUT" && ["button", "submit", "reset"].includes(v == null ? void 0 : v.type) || $ === "A" && (v == null ? void 0 : v.href);
479
+ }, R = (v) => (c) => {
480
+ if (!t) {
481
+ var h;
482
+ (h = v.onClick) == null || h.call(v, c);
483
+ }
484
+ }, z = (v) => (c) => {
485
+ var h;
486
+ t || (g(!0), document.addEventListener("mouseup", () => {
487
+ g(!1);
488
+ }, {
489
+ once: !0
490
+ })), (h = v.onMouseDown) == null || h.call(v, c);
491
+ }, N = (v) => (c) => {
492
+ var h;
493
+ if ((h = v.onKeyDown) == null || h.call(v, c), !c.defaultMuiPrevented && (c.target === c.currentTarget && !u() && c.key === " " && c.preventDefault(), c.target === c.currentTarget && c.key === " " && !t && g(!0), c.target === c.currentTarget && !u() && c.key === "Enter" && !t)) {
494
+ var I;
495
+ (I = v.onClick) == null || I.call(v, c), c.preventDefault();
496
+ }
497
+ }, A = (v) => (c) => {
498
+ var h;
499
+ if (c.target === c.currentTarget && g(!1), (h = v.onKeyUp) == null || h.call(v, c), c.target === c.currentTarget && !u() && !t && c.key === " " && !c.defaultMuiPrevented) {
500
+ var I;
501
+ (I = v.onClick) == null || I.call(v, c);
502
+ }
503
+ }, E = de(P, n, _, d), b = {};
504
+ return r !== void 0 && (b.tabIndex = r), $ === "BUTTON" ? (b.type = l ?? "button", a ? b["aria-disabled"] = t : b.disabled = t) : $ === "INPUT" ? l && ["button", "submit", "reset"].includes(l) && (a ? b["aria-disabled"] = t : b.disabled = t) : $ !== "" && (!o && !s && (b.role = "button", b.tabIndex = r ?? 0), t && (b["aria-disabled"] = t, b.tabIndex = a ? r ?? 0 : -1)), {
505
+ getRootProps: (v = {}) => {
506
+ const c = i({}, ie(e), ie(v)), h = i({
507
+ type: l
508
+ }, c, b, v, {
509
+ onBlur: T(c),
510
+ onClick: R(c),
511
+ onFocus: f(c),
512
+ onKeyDown: N(c),
513
+ onKeyUp: A(c),
514
+ onMouseDown: z(c),
515
+ onMouseLeave: D(c),
516
+ ref: E
517
+ });
518
+ return delete h.onFocusVisible, h;
519
+ },
520
+ focusVisible: k,
521
+ setFocusVisible: S,
522
+ active: m,
523
+ rootRef: E
524
+ };
525
+ }
526
+ const St = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], Dt = ["component", "slots", "slotProps"], Rt = ["component"];
527
+ function j(e, t) {
528
+ const {
529
+ className: a,
530
+ elementType: o,
531
+ ownerState: n,
532
+ externalForwardedProps: r,
533
+ getSlotOwnerState: s,
534
+ internalForwardedProps: l
535
+ } = t, p = O(t, St), {
536
+ component: d,
537
+ slots: m = {
538
+ [e]: void 0
539
+ },
540
+ slotProps: g = {
541
+ [e]: void 0
542
+ }
543
+ } = r, B = O(r, Dt), y = m[e] || o, x = Bt(g[e], n), _ = kt(i({
544
+ className: a
545
+ }, p, {
546
+ externalForwardedProps: e === "root" ? B : void 0,
547
+ externalSlotProps: x
548
+ })), {
549
+ props: {
550
+ component: k
551
+ },
552
+ internalRef: S
553
+ } = _, $ = O(_.props, Rt), P = de(S, x == null ? void 0 : x.ref, t.ref), D = s ? s($) : {}, T = i({}, n, D), f = e === "root" ? k || d : k, u = xt(y, i({}, e === "root" && !d && !m[e] && l, e !== "root" && !m[e] && l, $, f && {
554
+ as: f
555
+ }, {
556
+ ref: P
557
+ }), T);
558
+ return Object.keys(D).forEach((R) => {
559
+ delete u[R];
560
+ }), [y, u];
561
+ }
562
+ const Tt = ({
563
+ theme: e,
564
+ ownerState: t
565
+ }, a) => {
566
+ let o = {};
567
+ function n(r) {
568
+ if (typeof r == "function") {
569
+ const s = r(e);
570
+ n(s);
571
+ } else Array.isArray(r) ? r.forEach((s) => {
572
+ typeof s != "boolean" && n(s);
573
+ }) : typeof r == "object" && (o = i({}, o, r));
574
+ }
575
+ return t.sx && (n(t.sx), a.forEach((r) => {
576
+ const s = o[r];
577
+ if (typeof s == "string" || typeof s == "number")
578
+ if (r === "borderRadius")
579
+ if (typeof s == "number")
580
+ o[r] = `${s}px`;
581
+ else {
582
+ var l;
583
+ o[r] = ((l = e.vars) == null ? void 0 : l.radius[s]) || s;
584
+ }
585
+ else ["p", "padding", "m", "margin"].indexOf(r) !== -1 && typeof s == "number" ? o[r] = e.spacing(s) : o[r] = s;
586
+ else typeof s == "function" ? o[r] = s(e) : o[r] = void 0;
587
+ })), o;
588
+ }, ue = (e) => (t) => `--${e ? `${e}-` : ""}${t.replace(/^--/, "")}`, Z = "data-skip-inverted-colors", Ee = `& :not([${Z}], [${Z}] *)`, Ie = (e) => {
589
+ var t, a, o, n, r, s, l, p, d, m, g, B, y, x, _, k, S, $, P, D, T, f;
590
+ const u = ue(e.cssVarPrefix);
591
+ return {
592
+ "--variant-plainColor": "var(--variant-plainColor) !important",
593
+ "--variant-plainHoverColor": "var(--variant-plainHoverColor) !important",
594
+ "--variant-plainHoverBg": "var(--variant-plainHoverBg) !important",
595
+ "--variant-plainActiveBg": "var(--variant-plainActiveBg) !important",
596
+ "--variant-plainDisabledColor": "var(--variant-plainDisabledColor) !important",
597
+ "--variant-outlinedColor": "var(--variant-outlinedColor) !important",
598
+ "--variant-outlinedBorder": "var(--variant-outlinedBorder) !important",
599
+ "--variant-outlinedHoverColor": "var(--variant-outlinedHoverColor) !important",
600
+ "--variant-outlinedHoverBorder": "var(--variant-outlinedHoverBorder) !important",
601
+ "--variant-outlinedHoverBg": "var(--variant-outlinedHoverBg) !important",
602
+ "--variant-outlinedActiveBg": "var(--variant-outlinedActiveBg) !important",
603
+ "--variant-outlinedDisabledColor": "var(--variant-outlinedDisabledColor) !important",
604
+ "--variant-outlinedDisabledBorder": "var(--variant-outlinedDisabledBorder) !important",
605
+ "--variant-softColor": "var(--variant-softColor) !important",
606
+ "--variant-softHoverColor": "var(--variant-softHoverColor) !important",
607
+ "--variant-softBg": "var(--variant-softBg) !important",
608
+ "--variant-softHoverBg": "var(--variant-softHoverBg) !important",
609
+ "--variant-softActiveBg": "var(--variant-softActiveBg) !important",
610
+ "--variant-softActiveColor": "var(--variant-softActiveColor) !important",
611
+ "--variant-softDisabledColor": "var(--variant-softDisabledColor) !important",
612
+ "--variant-softDisabledBg": "var(--variant-softDisabledBg) !important",
613
+ "--variant-solidColor": "var(--variant-solidColor) !important",
614
+ "--variant-solidBg": "var(--variant-solidBg) !important",
615
+ "--variant-solidHoverBg": "var(--variant-solidHoverBg) !important",
616
+ "--variant-solidActiveBg": "var(--variant-solidActiveBg) !important",
617
+ "--variant-solidDisabledColor": "var(--variant-solidDisabledColor) !important",
618
+ "--variant-solidDisabledBg": "var(--variant-solidDisabledBg) !important",
619
+ "--Badge-ringColor": "var(--Badge-ringColor) !important",
620
+ colorScheme: "unset",
621
+ [e.getColorSchemeSelector("light")]: {
622
+ [u("--palette-focusVisible")]: `${(t = e.colorSchemes.light) == null ? void 0 : t.palette.focusVisible} !important`,
623
+ [u("--palette-background-body")]: `${(a = e.colorSchemes.light) == null ? void 0 : a.palette.background.body} !important`,
624
+ [u("--palette-background-surface")]: `${(o = e.colorSchemes.light) == null ? void 0 : o.palette.background.surface} !important`,
625
+ [u("--palette-background-popup")]: `${(n = e.colorSchemes.light) == null ? void 0 : n.palette.background.popup} !important`,
626
+ [u("--palette-background-level1")]: `${(r = e.colorSchemes.light) == null ? void 0 : r.palette.background.level1} !important`,
627
+ [u("--palette-background-level2")]: `${(s = e.colorSchemes.light) == null ? void 0 : s.palette.background.level2} !important`,
628
+ [u("--palette-background-level3")]: `${(l = e.colorSchemes.light) == null ? void 0 : l.palette.background.level3} !important`,
629
+ [u("--palette-text-primary")]: `${(p = e.colorSchemes.light) == null ? void 0 : p.palette.text.primary} !important`,
630
+ [u("--palette-text-secondary")]: `${(d = e.colorSchemes.light) == null ? void 0 : d.palette.text.secondary} !important`,
631
+ [u("--palette-text-tertiary")]: `${(m = e.colorSchemes.light) == null ? void 0 : m.palette.text.tertiary} !important`,
632
+ [u("--palette-divider")]: `${(g = e.colorSchemes.light) == null ? void 0 : g.palette.divider} !important`
633
+ },
634
+ [e.getColorSchemeSelector("dark")]: {
635
+ [u("--palette-focusVisible")]: `${(B = e.colorSchemes.dark) == null ? void 0 : B.palette.focusVisible} !important`,
636
+ [u("--palette-background-body")]: `${(y = e.colorSchemes.dark) == null ? void 0 : y.palette.background.body} !important`,
637
+ [u("--palette-background-surface")]: `${(x = e.colorSchemes.dark) == null ? void 0 : x.palette.background.surface} !important`,
638
+ [u("--palette-background-popup")]: `${(_ = e.colorSchemes.dark) == null ? void 0 : _.palette.background.popup} !important`,
639
+ [u("--palette-background-level1")]: `${(k = e.colorSchemes.dark) == null ? void 0 : k.palette.background.level1} !important`,
640
+ [u("--palette-background-level2")]: `${(S = e.colorSchemes.dark) == null ? void 0 : S.palette.background.level2} !important`,
641
+ [u("--palette-background-level3")]: `${($ = e.colorSchemes.dark) == null ? void 0 : $.palette.background.level3} !important`,
642
+ [u("--palette-text-primary")]: `${(P = e.colorSchemes.dark) == null ? void 0 : P.palette.text.primary} !important`,
643
+ [u("--palette-text-secondary")]: `${(D = e.colorSchemes.dark) == null ? void 0 : D.palette.text.secondary} !important`,
644
+ [u("--palette-text-tertiary")]: `${(T = e.colorSchemes.dark) == null ? void 0 : T.palette.text.tertiary} !important`,
645
+ [u("--palette-divider")]: `${(f = e.colorSchemes.dark) == null ? void 0 : f.palette.divider} !important`
646
+ }
647
+ };
648
+ };
649
+ function zt(e) {
650
+ return e.theme !== void 0;
651
+ }
652
+ const Et = (e) => (t) => {
653
+ const a = zt(t) ? t.theme : t, o = _e(a.cssVarPrefix), n = ue(a.cssVarPrefix), r = (s) => {
654
+ const l = s.split("-");
655
+ return o(s, a.palette[l[1]][l[2]]);
656
+ };
657
+ return {
658
+ [Ee]: {
659
+ "--Badge-ringColor": r(`palette-${e}-solidBg`),
660
+ "--Icon-color": "currentColor",
661
+ [`${a.getColorSchemeSelector("light")}, ${a.getColorSchemeSelector("dark")}`]: {
662
+ colorScheme: "dark",
663
+ [n("--palette-focusVisible")]: r(`palette-${e}-200`),
664
+ [n("--palette-background-body")]: "rgba(0 0 0 / 0.1)",
665
+ [n("--palette-background-surface")]: "rgba(0 0 0 / 0.06)",
666
+ [n("--palette-background-popup")]: r(`palette-${e}-700`),
667
+ [n("--palette-background-level1")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.2)`,
668
+ [n("--palette-background-level2")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.36)`,
669
+ [n("--palette-background-level3")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.6)`,
670
+ [n("--palette-text-primary")]: r("palette-common-white"),
671
+ [n("--palette-text-secondary")]: r(`palette-${e}-200`),
672
+ [n("--palette-text-tertiary")]: r(`palette-${e}-300`),
673
+ [n("--palette-text-icon")]: r(`palette-${e}-200`),
674
+ [n("--palette-divider")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.32)`,
675
+ "--variant-plainColor": r(`palette-${e}-50`),
676
+ "--variant-plainHoverColor": "#fff",
677
+ "--variant-plainHoverBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.12)`,
678
+ "--variant-plainActiveBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.32)`,
679
+ "--variant-plainDisabledColor": `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
680
+ "--variant-outlinedColor": r(`palette-${e}-50`),
681
+ "--variant-outlinedBorder": `rgba(${r(`palette-${e}-lightChannel`)} / 0.5)`,
682
+ "--variant-outlinedHoverColor": "#fff",
683
+ "--variant-outlinedHoverBorder": r(`palette-${e}-300`),
684
+ "--variant-outlinedHoverBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.12)`,
685
+ "--variant-outlinedActiveBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.32)`,
686
+ "--variant-outlinedDisabledColor": `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
687
+ "--variant-outlinedDisabledBorder": "rgba(255 255 255 / 0.2)",
688
+ "--variant-softColor": r("palette-common-white"),
689
+ "--variant-softHoverColor": r("palette-common-white"),
690
+ "--variant-softBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.24)`,
691
+ "--variant-softHoverBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.36)`,
692
+ "--variant-softActiveBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.16)`,
693
+ "--variant-softActiveColor": "#fff",
694
+ "--variant-softDisabledColor": `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
695
+ "--variant-softDisabledBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.1)`,
696
+ "--variant-solidColor": r(`palette-${e}-${e === "neutral" ? "600" : "500"}`),
697
+ "--variant-solidBg": r("palette-common-white"),
698
+ "--variant-solidHoverBg": r("palette-common-white"),
699
+ "--variant-solidActiveBg": r(`palette-${e}-100`),
700
+ "--variant-solidDisabledColor": `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
701
+ "--variant-solidDisabledBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.1)`
702
+ }
703
+ },
704
+ [`&, & [${Z}]`]: Ie(a)
705
+ };
706
+ }, It = (e) => (t) => {
707
+ const {
708
+ theme: a = t
709
+ } = t, o = _e(a.cssVarPrefix), n = ue(a.cssVarPrefix), r = (s) => {
710
+ const l = s.split("-");
711
+ return o(s, a.palette[l[1]][l[2]]);
712
+ };
713
+ return {
714
+ [Ee]: {
715
+ "--Badge-ringColor": r(`palette-${e}-softBg`),
716
+ "--Icon-color": "currentColor",
717
+ [a.getColorSchemeSelector("dark")]: {
718
+ [n("--palette-focusVisible")]: r(`palette-${e}-300`),
719
+ [n("--palette-background-body")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.1)`,
720
+ [n("--palette-background-surface")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.08)`,
721
+ [n("--palette-background-level1")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.2)`,
722
+ [n("--palette-background-level2")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.4)`,
723
+ [n("--palette-background-level3")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
724
+ [n("--palette-text-primary")]: r(`palette-${e}-100`),
725
+ [n("--palette-text-secondary")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
726
+ [n("--palette-text-tertiary")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.6)`,
727
+ [n("--palette-text-icon")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.6)`,
728
+ [n("--palette-divider")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.2)`,
729
+ "--variant-plainColor": `rgba(${r(`palette-${e}-lightChannel`)} / 1)`,
730
+ "--variant-plainHoverColor": r(`palette-${e}-50`),
731
+ "--variant-plainHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.16)`,
732
+ "--variant-plainActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
733
+ "--variant-plainDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.72)`,
734
+ "--variant-outlinedColor": `rgba(${r(`palette-${e}-lightChannel`)} / 1)`,
735
+ "--variant-outlinedHoverColor": r(`palette-${e}-50`),
736
+ "--variant-outlinedBg": "initial",
737
+ "--variant-outlinedBorder": `rgba(${r(`palette-${e}-mainChannel`)} / 0.4)`,
738
+ "--variant-outlinedHoverBorder": r(`palette-${e}-600`),
739
+ "--variant-outlinedHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.16)`,
740
+ "--variant-outlinedActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
741
+ "--variant-outlinedDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.72)`,
742
+ "--variant-outlinedDisabledBorder": `rgba(${r(`palette-${e}-mainChannel`)} / 0.2)`,
743
+ "--variant-softColor": r(`palette-${e}-200`),
744
+ "--variant-softBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.24)`,
745
+ "--variant-softHoverColor": "#fff",
746
+ "--variant-softHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
747
+ "--variant-softActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.48)`,
748
+ "--variant-softDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.72)`,
749
+ "--variant-softDisabledBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`,
750
+ "--variant-solidColor": "#fff",
751
+ "--variant-solidBg": r(`palette-${e}-500`),
752
+ "--variant-solidHoverColor": "#fff",
753
+ "--variant-solidHoverBg": r(`palette-${e}-600`),
754
+ "--variant-solidActiveBg": r(`palette-${e}-600`),
755
+ "--variant-solidDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.72)`,
756
+ "--variant-solidDisabledBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`
757
+ },
758
+ // `light` (default color scheme) should come last in case that `theme.getColorSchemeSelector()` return the same value
759
+ [a.getColorSchemeSelector("light")]: {
760
+ [n("--palette-focusVisible")]: r(`palette-${e}-500`),
761
+ [n("--palette-background-body")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.1)`,
762
+ [n("--palette-background-surface")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.08)`,
763
+ [n("--palette-background-level1")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.2)`,
764
+ [n("--palette-background-level2")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
765
+ [n("--palette-background-level3")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.48)`,
766
+ [n("--palette-text-primary")]: r(`palette-${e}-700`),
767
+ [n("--palette-text-secondary")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.8)`,
768
+ [n("--palette-text-tertiary")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.68)`,
769
+ [n("--palette-text-icon")]: r(`palette-${e}-500`),
770
+ [n("--palette-divider")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
771
+ "--variant-plainColor": `rgba(${r(`palette-${e}-darkChannel`)} / 0.8)`,
772
+ "--variant-plainHoverColor": `rgba(${r(`palette-${e}-darkChannel`)} / 1)`,
773
+ "--variant-plainHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`,
774
+ "--variant-plainActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.24)`,
775
+ "--variant-plainDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
776
+ "--variant-outlinedColor": `rgba(${r(`palette-${e}-mainChannel`)} / 1)`,
777
+ "--variant-outlinedBorder": `rgba(${r(`palette-${e}-mainChannel`)} / 0.4)`,
778
+ "--variant-outlinedHoverColor": r(`palette-${e}-600`),
779
+ "--variant-outlinedHoverBorder": r(`palette-${e}-300`),
780
+ "--variant-outlinedHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`,
781
+ "--variant-outlinedActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.24)`,
782
+ "--variant-outlinedDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
783
+ "--variant-outlinedDisabledBorder": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`,
784
+ "--variant-softColor": r(`palette-${e}-600`),
785
+ "--variant-softBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.8)`,
786
+ "--variant-softHoverColor": r(`palette-${e}-700`),
787
+ "--variant-softHoverBg": r(`palette-${e}-200`),
788
+ "--variant-softActiveBg": r(`palette-${e}-300`),
789
+ "--variant-softDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
790
+ "--variant-softDisabledBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.08)`,
791
+ "--variant-solidColor": r("palette-common-white"),
792
+ "--variant-solidBg": r(`palette-${e}-${e === "neutral" ? "700" : "500"}`),
793
+ "--variant-solidHoverColor": r("palette-common-white"),
794
+ "--variant-solidHoverBg": r(`palette-${e}-600`),
795
+ "--variant-solidActiveBg": r(`palette-${e}-600`),
796
+ "--variant-solidDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
797
+ "--variant-solidDisabledBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.08)`
798
+ }
799
+ },
800
+ [`&, & [${Z}]`]: Ie(a)
801
+ };
802
+ }, Ht = /* @__PURE__ */ C.createContext({}), Nt = /* @__PURE__ */ C.createContext(void 0);
803
+ function Ot(e) {
804
+ return X("MuiCircularProgress", e);
805
+ }
806
+ Y("MuiCircularProgress", ["root", "determinate", "svg", "track", "progress", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
807
+ let Vt = (e) => e, Ce;
808
+ const At = ["color", "backgroundColor"], Ft = ["children", "className", "color", "size", "variant", "thickness", "determinate", "value", "component", "slots", "slotProps"], jt = Ke({
809
+ "0%": {
810
+ // let the progress start at the top of the ring
811
+ transform: "rotate(-90deg)"
812
+ },
813
+ "100%": {
814
+ transform: "rotate(270deg)"
815
+ }
816
+ }), Mt = (e) => {
817
+ const {
818
+ determinate: t,
819
+ color: a,
820
+ variant: o,
821
+ size: n
822
+ } = e, r = {
823
+ root: ["root", t && "determinate", a && `color${M(a)}`, o && `variant${M(o)}`, n && `size${M(n)}`],
824
+ svg: ["svg"],
825
+ track: ["track"],
826
+ progress: ["progress"]
827
+ };
828
+ return ee(r, Ot, {});
829
+ };
830
+ function W(e, t) {
831
+ return `var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`;
832
+ }
833
+ const Wt = V("span", {
834
+ name: "JoyCircularProgress",
835
+ slot: "Root",
836
+ overridesResolver: (e, t) => t.root
837
+ })(({
838
+ ownerState: e,
839
+ theme: t
840
+ }) => {
841
+ var a, o, n, r;
842
+ const s = ((a = t.variants[e.variant]) == null ? void 0 : a[e.color]) || {}, {
843
+ color: l,
844
+ backgroundColor: p
845
+ } = s, d = O(s, At);
846
+ return i({
847
+ // integration with icon
848
+ "--Icon-fontSize": "calc(0.4 * var(--_root-size))",
849
+ // public variables
850
+ "--CircularProgress-trackColor": p,
851
+ "--CircularProgress-progressColor": l,
852
+ "--CircularProgress-percent": e.value,
853
+ // 0 - 100
854
+ "--CircularProgress-linecap": "round"
855
+ }, e.size === "sm" && {
856
+ "--_root-size": "var(--CircularProgress-size, 24px)",
857
+ // use --_root-size to let other components overrides via --CircularProgress-size
858
+ "--_track-thickness": W("track", "3px"),
859
+ "--_progress-thickness": W("progress", "3px")
860
+ }, e.instanceSize === "sm" && {
861
+ "--CircularProgress-size": "24px"
862
+ }, e.size === "md" && {
863
+ "--_track-thickness": W("track", "6px"),
864
+ "--_progress-thickness": W("progress", "6px"),
865
+ "--_root-size": "var(--CircularProgress-size, 40px)"
866
+ }, e.instanceSize === "md" && {
867
+ "--CircularProgress-size": "40px"
868
+ }, e.size === "lg" && {
869
+ "--_track-thickness": W("track", "8px"),
870
+ "--_progress-thickness": W("progress", "8px"),
871
+ "--_root-size": "var(--CircularProgress-size, 64px)"
872
+ }, e.instanceSize === "lg" && {
873
+ "--CircularProgress-size": "64px"
874
+ }, e.thickness && {
875
+ "--_track-thickness": `${e.thickness}px`,
876
+ "--_progress-thickness": `${e.thickness}px`
877
+ }, {
878
+ // internal variables
879
+ "--_thickness-diff": "calc(var(--_track-thickness) - var(--_progress-thickness))",
880
+ "--_inner-size": "calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))",
881
+ "--_outlined-inset": "max(var(--_track-thickness), var(--_progress-thickness))",
882
+ width: "var(--_root-size)",
883
+ height: "var(--_root-size)",
884
+ borderRadius: "var(--_root-size)",
885
+ margin: "var(--CircularProgress-margin)",
886
+ boxSizing: "border-box",
887
+ display: "inline-flex",
888
+ justifyContent: "center",
889
+ alignItems: "center",
890
+ flexShrink: 0,
891
+ // prevent from shrinking when CircularProgress is in a flex container.
892
+ position: "relative",
893
+ color: l
894
+ }, e.children && {
895
+ // only add font related properties when there is a child.
896
+ // so that when there is no child, the size can be controlled by the parent font-size e.g. Link
897
+ fontFamily: t.vars.fontFamily.body,
898
+ fontWeight: t.vars.fontWeight.md,
899
+ fontSize: "calc(0.2 * var(--_root-size))"
900
+ }, d, e.variant === "outlined" && {
901
+ "&::before": i({
902
+ content: '""',
903
+ display: "block",
904
+ position: "absolute",
905
+ borderRadius: "inherit",
906
+ top: "var(--_outlined-inset)",
907
+ left: "var(--_outlined-inset)",
908
+ right: "var(--_outlined-inset)",
909
+ bottom: "var(--_outlined-inset)"
910
+ }, d)
911
+ }, e.variant === "soft" && {
912
+ "--CircularProgress-trackColor": t.variants.soft.neutral.backgroundColor,
913
+ "--CircularProgress-progressColor": (o = t.variants.solid) == null ? void 0 : o[e.color].backgroundColor
914
+ }, e.variant === "solid" && {
915
+ "--CircularProgress-trackColor": (n = t.variants.softHover) == null ? void 0 : n[e.color].backgroundColor,
916
+ "--CircularProgress-progressColor": (r = t.variants.solid) == null ? void 0 : r[e.color].backgroundColor
917
+ });
918
+ }), Lt = V("svg", {
919
+ name: "JoyCircularProgress",
920
+ slot: "Svg",
921
+ overridesResolver: (e, t) => t.svg
922
+ })({
923
+ width: "inherit",
924
+ height: "inherit",
925
+ display: "inherit",
926
+ boxSizing: "inherit",
927
+ position: "absolute",
928
+ top: "calc(-1 * var(--variant-borderWidth, 0px))",
929
+ // centered align
930
+ left: "calc(-1 * var(--variant-borderWidth, 0px))"
931
+ // centered align
932
+ }), Ut = V("circle", {
933
+ name: "JoyCircularProgress",
934
+ slot: "track",
935
+ overridesResolver: (e, t) => t.track
936
+ })({
937
+ cx: "50%",
938
+ cy: "50%",
939
+ r: "calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",
940
+ fill: "transparent",
941
+ strokeWidth: "var(--_track-thickness)",
942
+ stroke: "var(--CircularProgress-trackColor)"
943
+ }), Jt = V("circle", {
944
+ name: "JoyCircularProgress",
945
+ slot: "progress",
946
+ overridesResolver: (e, t) => t.progress
947
+ })({
948
+ "--_progress-radius": "calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))",
949
+ "--_progress-length": "calc(2 * 3.1415926535 * var(--_progress-radius))",
950
+ // the circumference around the progress
951
+ cx: "50%",
952
+ cy: "50%",
953
+ r: "var(--_progress-radius)",
954
+ fill: "transparent",
955
+ strokeWidth: "var(--_progress-thickness)",
956
+ stroke: "var(--CircularProgress-progressColor)",
957
+ strokeLinecap: "var(--CircularProgress-linecap, round)",
958
+ // can't use CSS variable directly, need to cast type.
959
+ strokeDasharray: "var(--_progress-length)",
960
+ strokeDashoffset: "calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",
961
+ transformOrigin: "center",
962
+ transform: "rotate(-90deg)"
963
+ // to initially appear at the top-center of the circle.
964
+ }, ({
965
+ ownerState: e
966
+ }) => !e.determinate && Je(Ce || (Ce = Vt`
967
+ animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
968
+ ${0};
969
+ `), jt)), Kt = /* @__PURE__ */ C.forwardRef(function(t, a) {
970
+ const o = te({
971
+ props: t,
972
+ name: "JoyCircularProgress"
973
+ }), {
974
+ children: n,
975
+ className: r,
976
+ color: s = "primary",
977
+ size: l = "md",
978
+ variant: p = "soft",
979
+ thickness: d,
980
+ determinate: m = !1,
981
+ value: g = m ? 0 : 25,
982
+ // `25` is the 1/4 of the circle.
983
+ component: B,
984
+ slots: y = {},
985
+ slotProps: x = {}
986
+ } = o, _ = O(o, Ft), k = i({}, o, {
987
+ color: s,
988
+ size: l,
989
+ variant: p,
990
+ thickness: d,
991
+ value: g,
992
+ determinate: m,
993
+ instanceSize: t.size
994
+ }), S = Mt(k), $ = i({}, _, {
995
+ component: B,
996
+ slots: y,
997
+ slotProps: x
998
+ }), [P, D] = j("root", {
999
+ ref: a,
1000
+ className: J(S.root, r),
1001
+ elementType: Wt,
1002
+ externalForwardedProps: $,
1003
+ ownerState: k,
1004
+ additionalProps: i({
1005
+ role: "progressbar",
1006
+ style: {
1007
+ // Setting this CSS variable via inline-style
1008
+ // prevents the generation of new CSS every time
1009
+ // `value` prop updates
1010
+ "--CircularProgress-percent": g
1011
+ }
1012
+ }, g && m && {
1013
+ "aria-valuenow": Math.round(typeof g == "number" ? g : Number(g || 0))
1014
+ })
1015
+ }), [T, f] = j("svg", {
1016
+ className: S.svg,
1017
+ elementType: Lt,
1018
+ externalForwardedProps: $,
1019
+ ownerState: k
1020
+ }), [u, R] = j("track", {
1021
+ className: S.track,
1022
+ elementType: Ut,
1023
+ externalForwardedProps: $,
1024
+ ownerState: k
1025
+ }), [z, N] = j("progress", {
1026
+ className: S.progress,
1027
+ elementType: Jt,
1028
+ externalForwardedProps: $,
1029
+ ownerState: k
1030
+ });
1031
+ return /* @__PURE__ */ H.jsxs(P, i({}, D, {
1032
+ children: [/* @__PURE__ */ H.jsxs(T, i({}, f, {
1033
+ children: [/* @__PURE__ */ H.jsx(u, i({}, R)), /* @__PURE__ */ H.jsx(z, i({}, N))]
1034
+ })), n]
1035
+ }));
1036
+ }), wt = we("MuiBox", ["root"]), yr = qe({
1037
+ themeId: le,
1038
+ defaultTheme: ce,
1039
+ defaultClassName: wt.root,
1040
+ generateClassName: Ge.generate
1041
+ });
1042
+ function Gt(e) {
1043
+ return X("MuiTypography", e);
1044
+ }
1045
+ Y("MuiTypography", ["root", "h1", "h2", "h3", "h4", "title-lg", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body-xs", "noWrap", "gutterBottom", "startDecorator", "endDecorator", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
1046
+ const Zt = ["color", "textColor"], Xt = ["component", "gutterBottom", "noWrap", "level", "levelMapping", "children", "endDecorator", "startDecorator", "variant", "slots", "slotProps"], $e = /* @__PURE__ */ C.createContext(!1), Yt = /* @__PURE__ */ C.createContext(!1), qt = (e) => {
1047
+ const {
1048
+ gutterBottom: t,
1049
+ noWrap: a,
1050
+ level: o,
1051
+ color: n,
1052
+ variant: r
1053
+ } = e, s = {
1054
+ root: ["root", o, t && "gutterBottom", a && "noWrap", n && `color${M(n)}`, r && `variant${M(r)}`],
1055
+ startDecorator: ["startDecorator"],
1056
+ endDecorator: ["endDecorator"]
1057
+ };
1058
+ return ee(s, Gt, {});
1059
+ }, Qt = V("span", {
1060
+ name: "JoyTypography",
1061
+ slot: "StartDecorator",
1062
+ overridesResolver: (e, t) => t.startDecorator
1063
+ })({
1064
+ display: "inline-flex",
1065
+ marginInlineEnd: "clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"
1066
+ }), er = V("span", {
1067
+ name: "JoyTypography",
1068
+ slot: "endDecorator",
1069
+ overridesResolver: (e, t) => t.endDecorator
1070
+ })({
1071
+ display: "inline-flex",
1072
+ marginInlineStart: "clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"
1073
+ }), tr = V("span", {
1074
+ name: "JoyTypography",
1075
+ slot: "Root",
1076
+ overridesResolver: (e, t) => t.root
1077
+ })(({
1078
+ theme: e,
1079
+ ownerState: t
1080
+ }) => {
1081
+ var a, o, n, r, s;
1082
+ const l = t.level !== "inherit" ? (a = e.typography[t.level]) == null ? void 0 : a.lineHeight : "1";
1083
+ return i({
1084
+ "--Icon-fontSize": `calc(1em * ${l})`
1085
+ }, t.color && {
1086
+ "--Icon-color": "currentColor"
1087
+ }, {
1088
+ margin: "var(--Typography-margin, 0px)"
1089
+ }, t.nesting ? {
1090
+ display: "inline"
1091
+ // looks better than `inline-block` when using with `variant` prop.
1092
+ } : i({
1093
+ display: "block"
1094
+ }, t.unstable_hasSkeleton && {
1095
+ position: "relative"
1096
+ }), (t.startDecorator || t.endDecorator) && i({
1097
+ display: "flex",
1098
+ alignItems: "center"
1099
+ }, t.nesting && i({
1100
+ display: "inline-flex"
1101
+ }, t.startDecorator && {
1102
+ verticalAlign: "bottom"
1103
+ // to make the text align with the parent's content
1104
+ })), t.level && t.level !== "inherit" && e.typography[t.level], {
1105
+ fontSize: `var(--Typography-fontSize, ${t.level && t.level !== "inherit" && (o = (n = e.typography[t.level]) == null ? void 0 : n.fontSize) != null ? o : "inherit"})`
1106
+ }, t.noWrap && {
1107
+ overflow: "hidden",
1108
+ textOverflow: "ellipsis",
1109
+ whiteSpace: "nowrap"
1110
+ }, t.gutterBottom && {
1111
+ marginBottom: "0.35em"
1112
+ }, t.color && {
1113
+ color: `var(--variant-plainColor, rgba(${(r = e.vars.palette[t.color]) == null ? void 0 : r.mainChannel} / 1))`
1114
+ }, t.variant && i({
1115
+ borderRadius: e.vars.radius.xs,
1116
+ paddingBlock: "min(0.1em, 4px)",
1117
+ paddingInline: "0.25em"
1118
+ }, !t.nesting && {
1119
+ marginInline: "-0.25em"
1120
+ }, (s = e.variants[t.variant]) == null ? void 0 : s[t.color]));
1121
+ }), be = {
1122
+ h1: "h1",
1123
+ h2: "h2",
1124
+ h3: "h3",
1125
+ h4: "h4",
1126
+ "title-lg": "p",
1127
+ "title-md": "p",
1128
+ "title-sm": "p",
1129
+ "body-lg": "p",
1130
+ "body-md": "p",
1131
+ "body-sm": "p",
1132
+ "body-xs": "span",
1133
+ inherit: "p"
1134
+ }, rr = /* @__PURE__ */ C.forwardRef(function(t, a) {
1135
+ var o;
1136
+ const n = te({
1137
+ props: t,
1138
+ name: "JoyTypography"
1139
+ }), {
1140
+ color: r,
1141
+ textColor: s
1142
+ } = n, l = O(n, Zt), p = C.useContext($e), d = C.useContext(Yt), m = Se(i({}, l, {
1143
+ color: s
1144
+ })), {
1145
+ component: g,
1146
+ gutterBottom: B = !1,
1147
+ noWrap: y = !1,
1148
+ level: x = "body-md",
1149
+ levelMapping: _ = be,
1150
+ children: k,
1151
+ endDecorator: S,
1152
+ startDecorator: $,
1153
+ variant: P,
1154
+ slots: D = {},
1155
+ slotProps: T = {}
1156
+ } = m, f = O(m, Xt), u = (o = t.color) != null ? o : P ? r ?? "neutral" : r, R = p || d ? t.level || "inherit" : x, z = ze(k, ["Skeleton"]), N = g || (p ? "span" : _[R] || be[R] || "span"), A = i({}, m, {
1157
+ level: R,
1158
+ component: N,
1159
+ color: u,
1160
+ gutterBottom: B,
1161
+ noWrap: y,
1162
+ nesting: p,
1163
+ variant: P,
1164
+ unstable_hasSkeleton: z
1165
+ }), E = qt(A), b = i({}, f, {
1166
+ component: N,
1167
+ slots: D,
1168
+ slotProps: T
1169
+ }), [F, v] = j("root", {
1170
+ ref: a,
1171
+ className: E.root,
1172
+ elementType: tr,
1173
+ externalForwardedProps: b,
1174
+ ownerState: A
1175
+ }), [c, h] = j("startDecorator", {
1176
+ className: E.startDecorator,
1177
+ elementType: Qt,
1178
+ externalForwardedProps: b,
1179
+ ownerState: A
1180
+ }), [I, re] = j("endDecorator", {
1181
+ className: E.endDecorator,
1182
+ elementType: er,
1183
+ externalForwardedProps: b,
1184
+ ownerState: A
1185
+ });
1186
+ return /* @__PURE__ */ H.jsx($e.Provider, {
1187
+ value: !0,
1188
+ children: /* @__PURE__ */ H.jsxs(F, i({}, v, {
1189
+ children: [$ && /* @__PURE__ */ H.jsx(c, i({}, h, {
1190
+ children: $
1191
+ })), z ? /* @__PURE__ */ C.cloneElement(k, {
1192
+ variant: k.props.variant || "inline"
1193
+ }) : k, S && /* @__PURE__ */ H.jsx(I, i({}, re, {
1194
+ children: S
1195
+ }))]
1196
+ }))
1197
+ });
1198
+ });
1199
+ rr.muiName = "Typography";
1200
+ function ar(e) {
1201
+ return X("MuiButton", e);
1202
+ }
1203
+ const ye = Y("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "focusVisible", "disabled", "sizeSm", "sizeMd", "sizeLg", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingIndicatorCenter"]), or = ["children", "action", "color", "variant", "size", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingPosition", "loadingIndicator", "disabled", "component", "slots", "slotProps"], nr = (e) => {
1204
+ const {
1205
+ color: t,
1206
+ disabled: a,
1207
+ focusVisible: o,
1208
+ focusVisibleClassName: n,
1209
+ fullWidth: r,
1210
+ size: s,
1211
+ variant: l,
1212
+ loading: p
1213
+ } = e, d = {
1214
+ root: ["root", a && "disabled", o && "focusVisible", r && "fullWidth", l && `variant${M(l)}`, t && `color${M(t)}`, s && `size${M(s)}`, p && "loading"],
1215
+ startDecorator: ["startDecorator"],
1216
+ endDecorator: ["endDecorator"],
1217
+ loadingIndicatorCenter: ["loadingIndicatorCenter"]
1218
+ }, m = ee(d, ar, {});
1219
+ return o && n && (m.root += ` ${n}`), m;
1220
+ }, sr = V("span", {
1221
+ name: "JoyButton",
1222
+ slot: "StartDecorator",
1223
+ overridesResolver: (e, t) => t.startDecorator
1224
+ })({
1225
+ "--Icon-margin": "0 0 0 calc(var(--Button-gap) / -2)",
1226
+ "--CircularProgress-margin": "0 0 0 calc(var(--Button-gap) / -2)",
1227
+ display: "inherit",
1228
+ marginRight: "var(--Button-gap)"
1229
+ }), ir = V("span", {
1230
+ name: "JoyButton",
1231
+ slot: "EndDecorator",
1232
+ overridesResolver: (e, t) => t.endDecorator
1233
+ })({
1234
+ "--Icon-margin": "0 calc(var(--Button-gap) / -2) 0 0",
1235
+ "--CircularProgress-margin": "0 calc(var(--Button-gap) / -2) 0 0",
1236
+ display: "inherit",
1237
+ marginLeft: "var(--Button-gap)"
1238
+ }), lr = V("span", {
1239
+ name: "JoyButton",
1240
+ slot: "LoadingCenter",
1241
+ overridesResolver: (e, t) => t.loadingIndicatorCenter
1242
+ })(({
1243
+ theme: e,
1244
+ ownerState: t
1245
+ }) => {
1246
+ var a, o;
1247
+ return i({
1248
+ display: "inherit",
1249
+ position: "absolute",
1250
+ left: "50%",
1251
+ transform: "translateX(-50%)",
1252
+ color: (a = e.variants[t.variant]) == null || (a = a[t.color]) == null ? void 0 : a.color
1253
+ }, t.disabled && {
1254
+ color: (o = e.variants[`${t.variant}Disabled`]) == null || (o = o[t.color]) == null ? void 0 : o.color
1255
+ });
1256
+ }), cr = ({
1257
+ theme: e,
1258
+ ownerState: t
1259
+ }) => {
1260
+ var a, o, n, r;
1261
+ return [i({
1262
+ "--Icon-margin": "initial",
1263
+ // reset the icon's margin.
1264
+ "--Icon-color": t.color !== "neutral" || t.variant === "solid" ? "currentColor" : e.vars.palette.text.icon
1265
+ }, t.size === "sm" && {
1266
+ "--Icon-fontSize": e.vars.fontSize.lg,
1267
+ "--CircularProgress-size": "20px",
1268
+ // must be `px` unit, otherwise the CircularProgress is broken in Safari
1269
+ "--CircularProgress-thickness": "2px",
1270
+ "--Button-gap": "0.375rem",
1271
+ minHeight: "var(--Button-minHeight, 2rem)",
1272
+ fontSize: e.vars.fontSize.sm,
1273
+ paddingBlock: "var(--Button-paddingBlock, 0.25rem)",
1274
+ paddingInline: "0.75rem"
1275
+ }, t.size === "md" && {
1276
+ "--Icon-fontSize": e.vars.fontSize.xl,
1277
+ "--CircularProgress-size": "20px",
1278
+ // must be `px` unit, otherwise the CircularProgress is broken in Safari
1279
+ "--CircularProgress-thickness": "2px",
1280
+ "--Button-gap": "0.5rem",
1281
+ minHeight: "var(--Button-minHeight, 2.25rem)",
1282
+ // use min-height instead of height to make the button resilient to its content
1283
+ fontSize: e.vars.fontSize.sm,
1284
+ // internal --Button-paddingBlock is used to control the padding-block of the button from the outside, for example as a decorator of an Input
1285
+ paddingBlock: "var(--Button-paddingBlock, 0.375rem)",
1286
+ // the padding-block act as a minimum spacing between content and root element
1287
+ paddingInline: "1rem"
1288
+ }, t.size === "lg" && {
1289
+ "--Icon-fontSize": e.vars.fontSize.xl2,
1290
+ "--CircularProgress-size": "28px",
1291
+ // must be `px` unit, otherwise the CircularProgress is broken in Safari
1292
+ "--CircularProgress-thickness": "4px",
1293
+ "--Button-gap": "0.75rem",
1294
+ minHeight: "var(--Button-minHeight, 2.75rem)",
1295
+ fontSize: e.vars.fontSize.md,
1296
+ paddingBlock: "var(--Button-paddingBlock, 0.5rem)",
1297
+ paddingInline: "1.5rem"
1298
+ }, {
1299
+ WebkitTapHighlightColor: "transparent",
1300
+ boxSizing: "border-box",
1301
+ borderRadius: `var(--Button-radius, ${e.vars.radius.sm})`,
1302
+ // to be controlled by other components, for example Input
1303
+ margin: "var(--Button-margin)",
1304
+ // to be controlled by other components, for example Input
1305
+ border: "none",
1306
+ backgroundColor: "transparent",
1307
+ cursor: "pointer",
1308
+ userSelect: "none",
1309
+ display: "inline-flex",
1310
+ alignItems: "center",
1311
+ justifyContent: "center",
1312
+ position: "relative",
1313
+ textDecoration: "none",
1314
+ // prevent user agent underline when used as anchor
1315
+ fontFamily: e.vars.fontFamily.body,
1316
+ fontWeight: e.vars.fontWeight.lg,
1317
+ lineHeight: e.vars.lineHeight.md
1318
+ }, t.fullWidth && {
1319
+ width: "100%"
1320
+ }, {
1321
+ [e.focus.selector]: e.focus.default
1322
+ }), i({}, (a = e.variants[t.variant]) == null ? void 0 : a[t.color], {
1323
+ "&:hover": {
1324
+ "@media (hover: hover)": (o = e.variants[`${t.variant}Hover`]) == null ? void 0 : o[t.color]
1325
+ },
1326
+ '&:active, &[aria-pressed="true"]': (n = e.variants[`${t.variant}Active`]) == null ? void 0 : n[t.color],
1327
+ [`&.${ye.disabled}`]: (r = e.variants[`${t.variant}Disabled`]) == null ? void 0 : r[t.color]
1328
+ }, t.loadingPosition === "center" && {
1329
+ // this has to come after the variant styles to take effect.
1330
+ [`&.${ye.loading}`]: {
1331
+ color: "transparent"
1332
+ }
1333
+ })];
1334
+ }, dr = V("button", {
1335
+ name: "JoyButton",
1336
+ slot: "Root",
1337
+ overridesResolver: (e, t) => t.root
1338
+ })(cr), ur = /* @__PURE__ */ C.forwardRef(function(t, a) {
1339
+ var o;
1340
+ const n = te({
1341
+ props: t,
1342
+ name: "JoyButton"
1343
+ }), {
1344
+ children: r,
1345
+ action: s,
1346
+ color: l = "primary",
1347
+ variant: p = "solid",
1348
+ size: d = "md",
1349
+ fullWidth: m = !1,
1350
+ startDecorator: g,
1351
+ endDecorator: B,
1352
+ loading: y = !1,
1353
+ loadingPosition: x = "center",
1354
+ loadingIndicator: _,
1355
+ disabled: k,
1356
+ component: S,
1357
+ slots: $ = {},
1358
+ slotProps: P = {}
1359
+ } = n, D = O(n, or), T = C.useContext(Ht), f = C.useContext(Nt), u = t.variant || T.variant || p, R = t.size || T.size || d, z = t.color || T.color || l, N = (o = t.loading || t.disabled) != null ? o : T.disabled || y || k, A = C.useRef(null), E = de(A, a), {
1360
+ focusVisible: b,
1361
+ setFocusVisible: F,
1362
+ getRootProps: v
1363
+ } = _t(i({}, n, {
1364
+ disabled: N,
1365
+ rootRef: E
1366
+ })), c = _ ?? /* @__PURE__ */ H.jsx(Kt, {
1367
+ color: z,
1368
+ thickness: {
1369
+ sm: 2,
1370
+ md: 3,
1371
+ lg: 4
1372
+ }[R] || 3
1373
+ });
1374
+ C.useImperativeHandle(s, () => ({
1375
+ focusVisible: () => {
1376
+ var U;
1377
+ F(!0), (U = A.current) == null || U.focus();
1378
+ }
1379
+ }), [F]);
1380
+ const h = i({}, n, {
1381
+ color: z,
1382
+ fullWidth: m,
1383
+ variant: u,
1384
+ size: R,
1385
+ focusVisible: b,
1386
+ loading: y,
1387
+ loadingPosition: x,
1388
+ disabled: N
1389
+ }), I = nr(h), re = (U) => {
1390
+ var pe;
1391
+ let ae = n.onClick;
1392
+ if (typeof P.root == "function" ? ae = P.root(h).onClick : P.root && (ae = P.root.onClick), (pe = ae) == null || pe(U), f) {
1393
+ var ve;
1394
+ (ve = f.onClick) == null || ve.call(f, U, n.value);
1395
+ }
1396
+ };
1397
+ let L = n["aria-pressed"];
1398
+ typeof P.root == "function" ? L = P.root(h)["aria-pressed"] : P.root && (L = P.root["aria-pressed"]), f != null && f.value && (Array.isArray(f.value) ? L = f.value.indexOf(n.value) !== -1 : L = f.value === n.value);
1399
+ const K = i({}, D, {
1400
+ component: S,
1401
+ slots: $,
1402
+ slotProps: P
1403
+ }), [He, Ne] = j("root", {
1404
+ ref: a,
1405
+ className: I.root,
1406
+ elementType: dr,
1407
+ externalForwardedProps: K,
1408
+ getSlotProps: v,
1409
+ ownerState: h,
1410
+ additionalProps: {
1411
+ onClick: re,
1412
+ "aria-pressed": L
1413
+ }
1414
+ }), [Oe, Ve] = j("startDecorator", {
1415
+ className: I.startDecorator,
1416
+ elementType: sr,
1417
+ externalForwardedProps: K,
1418
+ ownerState: h
1419
+ }), [Ae, Fe] = j("endDecorator", {
1420
+ className: I.endDecorator,
1421
+ elementType: ir,
1422
+ externalForwardedProps: K,
1423
+ ownerState: h
1424
+ }), [je, Me] = j("loadingIndicatorCenter", {
1425
+ className: I.loadingIndicatorCenter,
1426
+ elementType: lr,
1427
+ externalForwardedProps: K,
1428
+ ownerState: h
1429
+ });
1430
+ return /* @__PURE__ */ H.jsxs(He, i({}, Ne, {
1431
+ children: [(g || y && x === "start") && /* @__PURE__ */ H.jsx(Oe, i({}, Ve, {
1432
+ children: y && x === "start" ? c : g
1433
+ })), r, y && x === "center" && /* @__PURE__ */ H.jsx(je, i({}, Me, {
1434
+ children: c
1435
+ })), (B || y && x === "end") && /* @__PURE__ */ H.jsx(Ae, i({}, Fe, {
1436
+ children: y && x === "end" ? c : B
1437
+ }))]
1438
+ }));
1439
+ });
1440
+ ur.muiName = "Button";
1441
+ function pr(e) {
1442
+ return X("MuiCard", e);
1443
+ }
1444
+ const xr = Y("MuiCard", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical"]), vr = ["className", "color", "component", "invertedColors", "size", "variant", "children", "orientation", "slots", "slotProps"], gr = (e) => {
1445
+ const {
1446
+ size: t,
1447
+ variant: a,
1448
+ color: o,
1449
+ orientation: n
1450
+ } = e, r = {
1451
+ root: ["root", n, a && `variant${M(a)}`, o && `color${M(o)}`, t && `size${M(t)}`]
1452
+ };
1453
+ return ee(r, pr, {});
1454
+ }, fr = V("div")(({
1455
+ theme: e,
1456
+ ownerState: t
1457
+ }) => {
1458
+ var a;
1459
+ const {
1460
+ p: o,
1461
+ padding: n,
1462
+ borderRadius: r
1463
+ } = Tt({
1464
+ theme: e,
1465
+ ownerState: t
1466
+ }, ["p", "padding", "borderRadius"]);
1467
+ return [i({
1468
+ "--Icon-color": t.color !== "neutral" || t.variant === "solid" ? "currentColor" : e.vars.palette.text.icon,
1469
+ // a context variable for any child component
1470
+ "--Card-childRadius": "max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))",
1471
+ // AspectRatio integration
1472
+ "--AspectRatio-radius": "var(--Card-childRadius)",
1473
+ // Link integration
1474
+ "--unstable_actionMargin": "calc(-1 * var(--variant-borderWidth, 0px))",
1475
+ // Link, Radio, Checkbox integration
1476
+ "--unstable_actionRadius": "var(--Card-radius)",
1477
+ // CardCover integration
1478
+ "--CardCover-radius": "calc(var(--Card-radius) - var(--variant-borderWidth, 0px))",
1479
+ // CardOverflow integration
1480
+ "--CardOverflow-offset": "calc(-1 * var(--Card-padding))",
1481
+ "--CardOverflow-radius": "calc(var(--Card-radius) - var(--variant-borderWidth, 0px))",
1482
+ // Divider integration
1483
+ "--Divider-inset": "calc(-1 * var(--Card-padding))"
1484
+ }, t.size === "sm" && {
1485
+ "--Card-radius": e.vars.radius.sm,
1486
+ "--Card-padding": "0.625rem",
1487
+ gap: "0.5rem"
1488
+ }, t.size === "md" && {
1489
+ "--Card-radius": e.vars.radius.md,
1490
+ "--Card-padding": "1rem",
1491
+ gap: "0.75rem 1rem"
1492
+ }, t.size === "lg" && {
1493
+ "--Card-radius": e.vars.radius.lg,
1494
+ "--Card-padding": "1.5rem",
1495
+ gap: "1rem 1.5rem"
1496
+ }, {
1497
+ padding: "var(--Card-padding)",
1498
+ borderRadius: "var(--Card-radius)",
1499
+ backgroundColor: e.vars.palette.background.surface,
1500
+ position: "relative",
1501
+ display: "flex",
1502
+ flexDirection: t.orientation === "horizontal" ? "row" : "column"
1503
+ }, e.typography[`body-${t.size}`], t.variant === "solid" && t.color && t.invertedColors && Et(t.color)(e), t.variant === "soft" && t.color && t.invertedColors && It(t.color)(e), (a = e.variants[t.variant]) == null ? void 0 : a[t.color]), o !== void 0 && {
1504
+ "--Card-padding": o
1505
+ }, n !== void 0 && {
1506
+ "--Card-padding": n
1507
+ }, r !== void 0 && {
1508
+ "--Card-radius": r
1509
+ }];
1510
+ }), mr = V(fr, {
1511
+ name: "JoyCard",
1512
+ slot: "Root",
1513
+ overridesResolver: (e, t) => t.root
1514
+ })({}), kr = /* @__PURE__ */ C.forwardRef(function(t, a) {
1515
+ const o = te({
1516
+ props: t,
1517
+ name: "JoyCard"
1518
+ }), {
1519
+ className: n,
1520
+ color: r = "neutral",
1521
+ component: s = "div",
1522
+ invertedColors: l = !1,
1523
+ size: p = "md",
1524
+ variant: d = "outlined",
1525
+ children: m,
1526
+ orientation: g = "vertical",
1527
+ slots: B = {},
1528
+ slotProps: y = {}
1529
+ } = o, x = O(o, vr), _ = i({}, o, {
1530
+ color: r,
1531
+ component: s,
1532
+ orientation: g,
1533
+ size: p,
1534
+ variant: d,
1535
+ invertedColors: l
1536
+ }), k = gr(_), S = i({}, x, {
1537
+ component: s,
1538
+ slots: B,
1539
+ slotProps: y
1540
+ }), [$, P] = j("root", {
1541
+ ref: a,
1542
+ className: J(k.root, n),
1543
+ elementType: mr,
1544
+ externalForwardedProps: S,
1545
+ ownerState: _
1546
+ });
1547
+ return /* @__PURE__ */ H.jsx($, i({}, P, {
1548
+ children: C.Children.map(m, (D, T) => {
1549
+ if (!/* @__PURE__ */ C.isValidElement(D))
1550
+ return D;
1551
+ const f = {};
1552
+ if (ze(D, ["Divider"])) {
1553
+ var u, R;
1554
+ const z = D.props;
1555
+ f.inset = (u = z == null ? void 0 : z.inset) != null ? u : "context";
1556
+ const N = g === "vertical" ? "horizontal" : "vertical";
1557
+ f.orientation = (R = z == null ? void 0 : z.orientation) != null ? R : N;
1558
+ }
1559
+ return T === 0 && (f["data-first-child"] = ""), T === C.Children.count(m) - 1 && (f["data-last-child"] = ""), /* @__PURE__ */ C.cloneElement(D, f);
1560
+ })
1561
+ }));
1562
+ }), Br = "$$material";
1563
+ function hr(e, t) {
1564
+ const a = {
1565
+ ...t
1566
+ };
1567
+ for (const o in e)
1568
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
1569
+ const n = o;
1570
+ if (n === "components" || n === "slots")
1571
+ a[n] = {
1572
+ ...e[n],
1573
+ ...a[n]
1574
+ };
1575
+ else if (n === "componentsProps" || n === "slotProps") {
1576
+ const r = e[n], s = t[n];
1577
+ if (!s)
1578
+ a[n] = r || {};
1579
+ else if (!r)
1580
+ a[n] = s;
1581
+ else {
1582
+ a[n] = {
1583
+ ...s
1584
+ };
1585
+ for (const l in r)
1586
+ if (Object.prototype.hasOwnProperty.call(r, l)) {
1587
+ const p = l;
1588
+ a[n][p] = hr(r[p], s[p]);
1589
+ }
1590
+ }
1591
+ } else a[n] === void 0 && (a[n] = e[n]);
1592
+ }
1593
+ return a;
1594
+ }
1595
+ export {
1596
+ ye as A,
1597
+ yr as B,
1598
+ Kt as C,
1599
+ $r as D,
1600
+ lt as E,
1601
+ Ht as F,
1602
+ Nt as G,
1603
+ Z as I,
1604
+ fr as S,
1605
+ rr as T,
1606
+ ur as a,
1607
+ kr as b,
1608
+ j as c,
1609
+ ee as d,
1610
+ $e as e,
1611
+ Yt as f,
1612
+ Se as g,
1613
+ bt as h,
1614
+ de as i,
1615
+ ze as j,
1616
+ br as k,
1617
+ ie as l,
1618
+ J as m,
1619
+ Et as n,
1620
+ It as o,
1621
+ Bt as p,
1622
+ kt as q,
1623
+ Tt as r,
1624
+ V as s,
1625
+ xt as t,
1626
+ te as u,
1627
+ _t as v,
1628
+ ct as w,
1629
+ hr as x,
1630
+ Br as y,
1631
+ xr as z
1632
+ };