@fastspace/schema-form 0.0.9 → 0.0.10

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.
@@ -1,7 +1,7 @@
1
1
  import * as A from "valibot";
2
- import { jsx as E, jsxs as fe, Fragment as Dr } from "react/jsx-runtime";
2
+ import { jsx as $, jsxs as fe, Fragment as Dr } from "react/jsx-runtime";
3
3
  import * as B from "react";
4
- import dt, { memo as mi, forwardRef as mo, useRef as De, useState as Ne, useEffect as je, useCallback as ho, createElement as hi, isValidElement as _t, cloneElement as Nt, Children as gi, useMemo as Ge, useImperativeHandle as yi } from "react";
4
+ import dt, { memo as mi, forwardRef as mo, useRef as Ne, useState as De, useEffect as _e, useCallback as ho, createElement as hi, isValidElement as _t, cloneElement as Nt, Children as gi, useMemo as Ge, useImperativeHandle as yi } from "react";
5
5
  import { Controller as jr, useFieldArray as bi, useForm as vi, useWatch as Si, FormProvider as xi } from "react-hook-form";
6
6
  import { ThemeContext as Ci, keyframes as St, css as go } from "@emotion/react";
7
7
  import Ti from "@emotion/styled";
@@ -210,7 +210,7 @@ function wr(e, t) {
210
210
  case "minLength":
211
211
  f.push(
212
212
  A.check(
213
- (C) => C == null || C === "" || String(C).length >= g.value,
213
+ (T) => T == null || T === "" || String(T).length >= g.value,
214
214
  g.message ?? `${r}至少${g.value}个字符`
215
215
  )
216
216
  );
@@ -218,16 +218,16 @@ function wr(e, t) {
218
218
  case "maxLength":
219
219
  f.push(
220
220
  A.check(
221
- (C) => C == null || C === "" || String(C).length <= g.value,
221
+ (T) => T == null || T === "" || String(T).length <= g.value,
222
222
  g.message ?? `${r}最多${g.value}个字符`
223
223
  )
224
224
  );
225
225
  break;
226
226
  case "pattern": {
227
- const C = typeof g.value == "string" ? new RegExp(g.value) : g.value;
227
+ const T = typeof g.value == "string" ? new RegExp(g.value) : g.value;
228
228
  f.push(
229
229
  A.check(
230
- (k) => k == null || k === "" || C.test(String(k)),
230
+ (k) => k == null || k === "" || T.test(String(k)),
231
231
  g.message ?? `${r}格式不正确`
232
232
  )
233
233
  );
@@ -236,17 +236,17 @@ function wr(e, t) {
236
236
  case "email":
237
237
  f.push(
238
238
  A.check(
239
- (C) => C == null || C === "" || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(C)),
239
+ (T) => T == null || T === "" || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(T)),
240
240
  g.message ?? `${r}必须是有效的邮箱`
241
241
  )
242
242
  );
243
243
  break;
244
244
  case "url":
245
245
  f.push(
246
- A.check((C) => {
247
- if (C == null || C === "") return !0;
246
+ A.check((T) => {
247
+ if (T == null || T === "") return !0;
248
248
  try {
249
- return new URL(String(C)), !0;
249
+ return new URL(String(T)), !0;
250
250
  } catch {
251
251
  return !1;
252
252
  }
@@ -256,9 +256,9 @@ function wr(e, t) {
256
256
  case "custom":
257
257
  f.push(
258
258
  A.check(
259
- (C) => g.validate(C, t) === !0,
260
- (C) => {
261
- const k = g.validate(C.input, t);
259
+ (T) => g.validate(T, t) === !0,
260
+ (T) => {
261
+ const k = g.validate(T.input, t);
262
262
  return typeof k == "string" ? k : "校验失败";
263
263
  }
264
264
  )
@@ -275,7 +275,7 @@ function wr(e, t) {
275
275
  case "min":
276
276
  f.push(
277
277
  A.check(
278
- (C) => C == null || Number(C) >= g.value,
278
+ (T) => T == null || Number(T) >= g.value,
279
279
  g.message ?? `${r}不能小于${g.value}`
280
280
  )
281
281
  );
@@ -283,7 +283,7 @@ function wr(e, t) {
283
283
  case "max":
284
284
  f.push(
285
285
  A.check(
286
- (C) => C == null || Number(C) <= g.value,
286
+ (T) => T == null || Number(T) <= g.value,
287
287
  g.message ?? `${r}不能大于${g.value}`
288
288
  )
289
289
  );
@@ -291,9 +291,9 @@ function wr(e, t) {
291
291
  case "custom":
292
292
  f.push(
293
293
  A.check(
294
- (C) => g.validate(C, t) === !0,
295
- (C) => {
296
- const k = g.validate(C.input, t);
294
+ (T) => g.validate(T, t) === !0,
295
+ (T) => {
296
+ const k = g.validate(T.input, t);
297
297
  return typeof k == "string" ? k : "校验失败";
298
298
  }
299
299
  )
@@ -310,16 +310,16 @@ function wr(e, t) {
310
310
  ) : h;
311
311
  }
312
312
  if (n === "FormList") {
313
- const h = e.columns ?? [], f = e.minItems ?? 0, g = e.maxItems ?? 1 / 0, C = {};
313
+ const h = e.columns ?? [], f = e.minItems ?? 0, g = e.maxItems ?? 1 / 0, T = {};
314
314
  for (const S of h)
315
315
  if (S.component === "Group" && S.columns)
316
- for (const T of S.columns)
317
- C[T.name] = wr(T, t);
318
- else S.component !== "Group" && (C[S.name] = wr(S, t));
319
- const k = A.object(C), M = [];
316
+ for (const w of S.columns)
317
+ T[w.name] = wr(w, t);
318
+ else S.component !== "Group" && (T[S.name] = wr(S, t));
319
+ const k = A.object(T), M = [];
320
320
  f > 0 && M.push(A.check((S) => Array.isArray(S) && S.length >= f, `至少需要${f}条数据`)), g < 1 / 0 && M.push(A.check((S) => Array.isArray(S) && S.length <= g, `最多允许${g}条数据`));
321
- const $ = A.array(k);
322
- return M.length > 0 ? A.pipe($, ...M) : $;
321
+ const R = A.array(k);
322
+ return M.length > 0 ? A.pipe(R, ...M) : R;
323
323
  }
324
324
  if (n === "Upload") {
325
325
  const h = o.find((g) => g.type === "array"), f = h?.type === "array" ? h.minItems ?? (i ? 1 : 0) : i ? 1 : 0;
@@ -435,16 +435,16 @@ function Co(e, t, r, n, o = "round") {
435
435
  function Gi(e) {
436
436
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
437
437
  }
438
- var kt = { exports: {} }, At = { exports: {} }, te = {};
438
+ var kt = { exports: {} }, At = { exports: {} }, ee = {};
439
439
  var on;
440
440
  function Ui() {
441
- if (on) return te;
441
+ if (on) return ee;
442
442
  on = 1;
443
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
443
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
444
444
  function M(S) {
445
445
  if (typeof S == "object" && S !== null) {
446
- var T = S.$$typeof;
447
- switch (T) {
446
+ var w = S.$$typeof;
447
+ switch (w) {
448
448
  case t:
449
449
  switch (S = S.type, S) {
450
450
  case u:
@@ -463,70 +463,70 @@ function Ui() {
463
463
  case a:
464
464
  return S;
465
465
  default:
466
- return T;
466
+ return w;
467
467
  }
468
468
  }
469
469
  case r:
470
- return T;
470
+ return w;
471
471
  }
472
472
  }
473
473
  }
474
- function $(S) {
474
+ function R(S) {
475
475
  return M(S) === d;
476
476
  }
477
- return te.AsyncMode = u, te.ConcurrentMode = d, te.ContextConsumer = l, te.ContextProvider = a, te.Element = t, te.ForwardRef = m, te.Fragment = n, te.Lazy = h, te.Memo = b, te.Portal = r, te.Profiler = i, te.StrictMode = o, te.Suspense = y, te.isAsyncMode = function(S) {
478
- return $(S) || M(S) === u;
479
- }, te.isConcurrentMode = $, te.isContextConsumer = function(S) {
477
+ return ee.AsyncMode = u, ee.ConcurrentMode = d, ee.ContextConsumer = l, ee.ContextProvider = a, ee.Element = t, ee.ForwardRef = m, ee.Fragment = n, ee.Lazy = h, ee.Memo = b, ee.Portal = r, ee.Profiler = i, ee.StrictMode = o, ee.Suspense = y, ee.isAsyncMode = function(S) {
478
+ return R(S) || M(S) === u;
479
+ }, ee.isConcurrentMode = R, ee.isContextConsumer = function(S) {
480
480
  return M(S) === l;
481
- }, te.isContextProvider = function(S) {
481
+ }, ee.isContextProvider = function(S) {
482
482
  return M(S) === a;
483
- }, te.isElement = function(S) {
483
+ }, ee.isElement = function(S) {
484
484
  return typeof S == "object" && S !== null && S.$$typeof === t;
485
- }, te.isForwardRef = function(S) {
485
+ }, ee.isForwardRef = function(S) {
486
486
  return M(S) === m;
487
- }, te.isFragment = function(S) {
487
+ }, ee.isFragment = function(S) {
488
488
  return M(S) === n;
489
- }, te.isLazy = function(S) {
489
+ }, ee.isLazy = function(S) {
490
490
  return M(S) === h;
491
- }, te.isMemo = function(S) {
491
+ }, ee.isMemo = function(S) {
492
492
  return M(S) === b;
493
- }, te.isPortal = function(S) {
493
+ }, ee.isPortal = function(S) {
494
494
  return M(S) === r;
495
- }, te.isProfiler = function(S) {
495
+ }, ee.isProfiler = function(S) {
496
496
  return M(S) === i;
497
- }, te.isStrictMode = function(S) {
497
+ }, ee.isStrictMode = function(S) {
498
498
  return M(S) === o;
499
- }, te.isSuspense = function(S) {
499
+ }, ee.isSuspense = function(S) {
500
500
  return M(S) === y;
501
- }, te.isValidElementType = function(S) {
502
- return typeof S == "string" || typeof S == "function" || S === n || S === d || S === i || S === o || S === y || S === p || typeof S == "object" && S !== null && (S.$$typeof === h || S.$$typeof === b || S.$$typeof === a || S.$$typeof === l || S.$$typeof === m || S.$$typeof === g || S.$$typeof === C || S.$$typeof === k || S.$$typeof === f);
503
- }, te.typeOf = M, te;
501
+ }, ee.isValidElementType = function(S) {
502
+ return typeof S == "string" || typeof S == "function" || S === n || S === d || S === i || S === o || S === y || S === p || typeof S == "object" && S !== null && (S.$$typeof === h || S.$$typeof === b || S.$$typeof === a || S.$$typeof === l || S.$$typeof === m || S.$$typeof === g || S.$$typeof === T || S.$$typeof === k || S.$$typeof === f);
503
+ }, ee.typeOf = M, ee;
504
504
  }
505
- var re = {};
505
+ var te = {};
506
506
  var sn;
507
507
  function Yi() {
508
508
  return sn || (sn = 1, process.env.NODE_ENV !== "production" && (function() {
509
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
509
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
510
510
  function M(N) {
511
511
  return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
512
- N === n || N === d || N === i || N === o || N === y || N === p || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === b || N.$$typeof === a || N.$$typeof === l || N.$$typeof === m || N.$$typeof === g || N.$$typeof === C || N.$$typeof === k || N.$$typeof === f);
512
+ N === n || N === d || N === i || N === o || N === y || N === p || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === b || N.$$typeof === a || N.$$typeof === l || N.$$typeof === m || N.$$typeof === g || N.$$typeof === T || N.$$typeof === k || N.$$typeof === f);
513
513
  }
514
- function $(N) {
514
+ function R(N) {
515
515
  if (typeof N == "object" && N !== null) {
516
516
  var ye = N.$$typeof;
517
517
  switch (ye) {
518
518
  case t:
519
- var _e = N.type;
520
- switch (_e) {
519
+ var Be = N.type;
520
+ switch (Be) {
521
521
  case u:
522
522
  case d:
523
523
  case n:
524
524
  case i:
525
525
  case o:
526
526
  case y:
527
- return _e;
527
+ return Be;
528
528
  default:
529
- var wt = _e && _e.$$typeof;
529
+ var wt = Be && Be.$$typeof;
530
530
  switch (wt) {
531
531
  case l:
532
532
  case m:
@@ -543,48 +543,48 @@ function Yi() {
543
543
  }
544
544
  }
545
545
  }
546
- var S = u, T = d, D = l, G = a, z = t, F = m, I = n, c = h, w = b, x = r, P = i, _ = o, U = y, j = !1;
547
- function W(N) {
548
- return j || (j = !0), O(N) || $(N) === u;
546
+ var S = u, w = d, V = l, G = a, W = t, F = m, I = n, c = h, E = b, C = r, _ = i, P = o, U = y, oe = !1;
547
+ function j(N) {
548
+ return oe || (oe = !0), x(N) || R(N) === u;
549
+ }
550
+ function x(N) {
551
+ return R(N) === d;
549
552
  }
550
553
  function O(N) {
551
- return $(N) === d;
554
+ return R(N) === l;
552
555
  }
553
- function R(N) {
554
- return $(N) === l;
556
+ function z(N) {
557
+ return R(N) === a;
555
558
  }
556
- function V(N) {
557
- return $(N) === a;
559
+ function D(N) {
560
+ return typeof N == "object" && N !== null && N.$$typeof === t;
558
561
  }
559
562
  function L(N) {
560
- return typeof N == "object" && N !== null && N.$$typeof === t;
563
+ return R(N) === m;
561
564
  }
562
- function q(N) {
563
- return $(N) === m;
565
+ function K(N) {
566
+ return R(N) === n;
564
567
  }
565
- function X(N) {
566
- return $(N) === n;
568
+ function q(N) {
569
+ return R(N) === h;
567
570
  }
568
571
  function H(N) {
569
- return $(N) === h;
572
+ return R(N) === b;
570
573
  }
571
- function K(N) {
572
- return $(N) === b;
573
- }
574
- function Q(N) {
575
- return $(N) === r;
574
+ function X(N) {
575
+ return R(N) === r;
576
576
  }
577
- function ee(N) {
578
- return $(N) === i;
577
+ function Z(N) {
578
+ return R(N) === i;
579
579
  }
580
- function J(N) {
581
- return $(N) === o;
580
+ function Q(N) {
581
+ return R(N) === o;
582
582
  }
583
583
  function me(N) {
584
- return $(N) === y;
584
+ return R(N) === y;
585
585
  }
586
- re.AsyncMode = S, re.ConcurrentMode = T, re.ContextConsumer = D, re.ContextProvider = G, re.Element = z, re.ForwardRef = F, re.Fragment = I, re.Lazy = c, re.Memo = w, re.Portal = x, re.Profiler = P, re.StrictMode = _, re.Suspense = U, re.isAsyncMode = W, re.isConcurrentMode = O, re.isContextConsumer = R, re.isContextProvider = V, re.isElement = L, re.isForwardRef = q, re.isFragment = X, re.isLazy = H, re.isMemo = K, re.isPortal = Q, re.isProfiler = ee, re.isStrictMode = J, re.isSuspense = me, re.isValidElementType = M, re.typeOf = $;
587
- })()), re;
586
+ te.AsyncMode = S, te.ConcurrentMode = w, te.ContextConsumer = V, te.ContextProvider = G, te.Element = W, te.ForwardRef = F, te.Fragment = I, te.Lazy = c, te.Memo = E, te.Portal = C, te.Profiler = _, te.StrictMode = P, te.Suspense = U, te.isAsyncMode = j, te.isConcurrentMode = x, te.isContextConsumer = O, te.isContextProvider = z, te.isElement = D, te.isForwardRef = L, te.isFragment = K, te.isLazy = q, te.isMemo = H, te.isPortal = X, te.isProfiler = Z, te.isStrictMode = Q, te.isSuspense = me, te.isValidElementType = M, te.typeOf = R;
587
+ })()), te;
588
588
  }
589
589
  var an;
590
590
  function To() {
@@ -713,260 +713,260 @@ function Xi() {
713
713
  }
714
714
  return gr = function(l, u) {
715
715
  var d = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
716
- function y(O) {
717
- var R = O && (d && O[d] || O[m]);
718
- if (typeof R == "function")
719
- return R;
716
+ function y(x) {
717
+ var O = x && (d && x[d] || x[m]);
718
+ if (typeof O == "function")
719
+ return O;
720
720
  }
721
721
  var p = "<<anonymous>>", b = {
722
- array: C("array"),
723
- bigint: C("bigint"),
724
- bool: C("boolean"),
725
- func: C("function"),
726
- number: C("number"),
727
- object: C("object"),
728
- string: C("string"),
729
- symbol: C("symbol"),
722
+ array: T("array"),
723
+ bigint: T("bigint"),
724
+ bool: T("boolean"),
725
+ func: T("function"),
726
+ number: T("number"),
727
+ object: T("object"),
728
+ string: T("string"),
729
+ symbol: T("symbol"),
730
730
  any: k(),
731
731
  arrayOf: M,
732
- element: $(),
732
+ element: R(),
733
733
  elementType: S(),
734
- instanceOf: T,
734
+ instanceOf: w,
735
735
  node: F(),
736
736
  objectOf: G,
737
- oneOf: D,
738
- oneOfType: z,
737
+ oneOf: V,
738
+ oneOfType: W,
739
739
  shape: c,
740
- exact: w
740
+ exact: E
741
741
  };
742
- function h(O, R) {
743
- return O === R ? O !== 0 || 1 / O === 1 / R : O !== O && R !== R;
742
+ function h(x, O) {
743
+ return x === O ? x !== 0 || 1 / x === 1 / O : x !== x && O !== O;
744
744
  }
745
- function f(O, R) {
746
- this.message = O, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
745
+ function f(x, O) {
746
+ this.message = x, this.data = O && typeof O == "object" ? O : {}, this.stack = "";
747
747
  }
748
748
  f.prototype = Error.prototype;
749
- function g(O) {
749
+ function g(x) {
750
750
  if (process.env.NODE_ENV !== "production")
751
- var R = {}, V = 0;
752
- function L(X, H, K, Q, ee, J, me) {
753
- if (Q = Q || p, J = J || K, me !== r) {
751
+ var O = {}, z = 0;
752
+ function D(K, q, H, X, Z, Q, me) {
753
+ if (X = X || p, Q = Q || H, me !== r) {
754
754
  if (u) {
755
755
  var N = new Error(
756
756
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
757
757
  );
758
758
  throw N.name = "Invariant Violation", N;
759
759
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
760
- var ye = Q + ":" + K;
761
- !R[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
762
- V < 3 && (i(
763
- "You are manually calling a React.PropTypes validation function for the `" + J + "` prop on `" + Q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
764
- ), R[ye] = !0, V++);
760
+ var ye = X + ":" + H;
761
+ !O[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
762
+ z < 3 && (i(
763
+ "You are manually calling a React.PropTypes validation function for the `" + Q + "` prop on `" + X + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
764
+ ), O[ye] = !0, z++);
765
765
  }
766
766
  }
767
- return H[K] == null ? X ? H[K] === null ? new f("The " + ee + " `" + J + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new f("The " + ee + " `" + J + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : O(H, K, Q, ee, J);
767
+ return q[H] == null ? K ? q[H] === null ? new f("The " + Z + " `" + Q + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new f("The " + Z + " `" + Q + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : x(q, H, X, Z, Q);
768
768
  }
769
- var q = L.bind(null, !1);
770
- return q.isRequired = L.bind(null, !0), q;
771
- }
772
- function C(O) {
773
- function R(V, L, q, X, H, K) {
774
- var Q = V[L], ee = _(Q);
775
- if (ee !== O) {
776
- var J = U(Q);
769
+ var L = D.bind(null, !1);
770
+ return L.isRequired = D.bind(null, !0), L;
771
+ }
772
+ function T(x) {
773
+ function O(z, D, L, K, q, H) {
774
+ var X = z[D], Z = P(X);
775
+ if (Z !== x) {
776
+ var Q = U(X);
777
777
  return new f(
778
- "Invalid " + X + " `" + H + "` of type " + ("`" + J + "` supplied to `" + q + "`, expected ") + ("`" + O + "`."),
779
- { expectedType: O }
778
+ "Invalid " + K + " `" + q + "` of type " + ("`" + Q + "` supplied to `" + L + "`, expected ") + ("`" + x + "`."),
779
+ { expectedType: x }
780
780
  );
781
781
  }
782
782
  return null;
783
783
  }
784
- return g(R);
784
+ return g(O);
785
785
  }
786
786
  function k() {
787
787
  return g(a);
788
788
  }
789
- function M(O) {
790
- function R(V, L, q, X, H) {
791
- if (typeof O != "function")
792
- return new f("Property `" + H + "` of component `" + q + "` has invalid PropType notation inside arrayOf.");
793
- var K = V[L];
794
- if (!Array.isArray(K)) {
795
- var Q = _(K);
796
- return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + q + "`, expected an array."));
789
+ function M(x) {
790
+ function O(z, D, L, K, q) {
791
+ if (typeof x != "function")
792
+ return new f("Property `" + q + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
793
+ var H = z[D];
794
+ if (!Array.isArray(H)) {
795
+ var X = P(H);
796
+ return new f("Invalid " + K + " `" + q + "` of type " + ("`" + X + "` supplied to `" + L + "`, expected an array."));
797
797
  }
798
- for (var ee = 0; ee < K.length; ee++) {
799
- var J = O(K, ee, q, X, H + "[" + ee + "]", r);
800
- if (J instanceof Error)
801
- return J;
798
+ for (var Z = 0; Z < H.length; Z++) {
799
+ var Q = x(H, Z, L, K, q + "[" + Z + "]", r);
800
+ if (Q instanceof Error)
801
+ return Q;
802
802
  }
803
803
  return null;
804
804
  }
805
- return g(R);
806
- }
807
- function $() {
808
- function O(R, V, L, q, X) {
809
- var H = R[V];
810
- if (!l(H)) {
811
- var K = _(H);
812
- return new f("Invalid " + q + " `" + X + "` of type " + ("`" + K + "` supplied to `" + L + "`, expected a single ReactElement."));
805
+ return g(O);
806
+ }
807
+ function R() {
808
+ function x(O, z, D, L, K) {
809
+ var q = O[z];
810
+ if (!l(q)) {
811
+ var H = P(q);
812
+ return new f("Invalid " + L + " `" + K + "` of type " + ("`" + H + "` supplied to `" + D + "`, expected a single ReactElement."));
813
813
  }
814
814
  return null;
815
815
  }
816
- return g(O);
816
+ return g(x);
817
817
  }
818
818
  function S() {
819
- function O(R, V, L, q, X) {
820
- var H = R[V];
821
- if (!e.isValidElementType(H)) {
822
- var K = _(H);
823
- return new f("Invalid " + q + " `" + X + "` of type " + ("`" + K + "` supplied to `" + L + "`, expected a single ReactElement type."));
819
+ function x(O, z, D, L, K) {
820
+ var q = O[z];
821
+ if (!e.isValidElementType(q)) {
822
+ var H = P(q);
823
+ return new f("Invalid " + L + " `" + K + "` of type " + ("`" + H + "` supplied to `" + D + "`, expected a single ReactElement type."));
824
824
  }
825
825
  return null;
826
826
  }
827
- return g(O);
827
+ return g(x);
828
828
  }
829
- function T(O) {
830
- function R(V, L, q, X, H) {
831
- if (!(V[L] instanceof O)) {
832
- var K = O.name || p, Q = W(V[L]);
833
- return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + q + "`, expected ") + ("instance of `" + K + "`."));
829
+ function w(x) {
830
+ function O(z, D, L, K, q) {
831
+ if (!(z[D] instanceof x)) {
832
+ var H = x.name || p, X = j(z[D]);
833
+ return new f("Invalid " + K + " `" + q + "` of type " + ("`" + X + "` supplied to `" + L + "`, expected ") + ("instance of `" + H + "`."));
834
834
  }
835
835
  return null;
836
836
  }
837
- return g(R);
837
+ return g(O);
838
838
  }
839
- function D(O) {
840
- if (!Array.isArray(O))
839
+ function V(x) {
840
+ if (!Array.isArray(x))
841
841
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
842
842
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
843
843
  ) : i("Invalid argument supplied to oneOf, expected an array.")), a;
844
- function R(V, L, q, X, H) {
845
- for (var K = V[L], Q = 0; Q < O.length; Q++)
846
- if (h(K, O[Q]))
844
+ function O(z, D, L, K, q) {
845
+ for (var H = z[D], X = 0; X < x.length; X++)
846
+ if (h(H, x[X]))
847
847
  return null;
848
- var ee = JSON.stringify(O, function(me, N) {
848
+ var Z = JSON.stringify(x, function(me, N) {
849
849
  var ye = U(N);
850
850
  return ye === "symbol" ? String(N) : N;
851
851
  });
852
- return new f("Invalid " + X + " `" + H + "` of value `" + String(K) + "` " + ("supplied to `" + q + "`, expected one of " + ee + "."));
852
+ return new f("Invalid " + K + " `" + q + "` of value `" + String(H) + "` " + ("supplied to `" + L + "`, expected one of " + Z + "."));
853
853
  }
854
- return g(R);
855
- }
856
- function G(O) {
857
- function R(V, L, q, X, H) {
858
- if (typeof O != "function")
859
- return new f("Property `" + H + "` of component `" + q + "` has invalid PropType notation inside objectOf.");
860
- var K = V[L], Q = _(K);
861
- if (Q !== "object")
862
- return new f("Invalid " + X + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + q + "`, expected an object."));
863
- for (var ee in K)
864
- if (n(K, ee)) {
865
- var J = O(K, ee, q, X, H + "." + ee, r);
866
- if (J instanceof Error)
867
- return J;
854
+ return g(O);
855
+ }
856
+ function G(x) {
857
+ function O(z, D, L, K, q) {
858
+ if (typeof x != "function")
859
+ return new f("Property `" + q + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
860
+ var H = z[D], X = P(H);
861
+ if (X !== "object")
862
+ return new f("Invalid " + K + " `" + q + "` of type " + ("`" + X + "` supplied to `" + L + "`, expected an object."));
863
+ for (var Z in H)
864
+ if (n(H, Z)) {
865
+ var Q = x(H, Z, L, K, q + "." + Z, r);
866
+ if (Q instanceof Error)
867
+ return Q;
868
868
  }
869
869
  return null;
870
870
  }
871
- return g(R);
871
+ return g(O);
872
872
  }
873
- function z(O) {
874
- if (!Array.isArray(O))
873
+ function W(x) {
874
+ if (!Array.isArray(x))
875
875
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
876
- for (var R = 0; R < O.length; R++) {
877
- var V = O[R];
878
- if (typeof V != "function")
876
+ for (var O = 0; O < x.length; O++) {
877
+ var z = x[O];
878
+ if (typeof z != "function")
879
879
  return i(
880
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + j(V) + " at index " + R + "."
880
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(z) + " at index " + O + "."
881
881
  ), a;
882
882
  }
883
- function L(q, X, H, K, Q) {
884
- for (var ee = [], J = 0; J < O.length; J++) {
885
- var me = O[J], N = me(q, X, H, K, Q, r);
883
+ function D(L, K, q, H, X) {
884
+ for (var Z = [], Q = 0; Q < x.length; Q++) {
885
+ var me = x[Q], N = me(L, K, q, H, X, r);
886
886
  if (N == null)
887
887
  return null;
888
- N.data && n(N.data, "expectedType") && ee.push(N.data.expectedType);
888
+ N.data && n(N.data, "expectedType") && Z.push(N.data.expectedType);
889
889
  }
890
- var ye = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
891
- return new f("Invalid " + K + " `" + Q + "` supplied to " + ("`" + H + "`" + ye + "."));
890
+ var ye = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
891
+ return new f("Invalid " + H + " `" + X + "` supplied to " + ("`" + q + "`" + ye + "."));
892
892
  }
893
- return g(L);
893
+ return g(D);
894
894
  }
895
895
  function F() {
896
- function O(R, V, L, q, X) {
897
- return x(R[V]) ? null : new f("Invalid " + q + " `" + X + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
896
+ function x(O, z, D, L, K) {
897
+ return C(O[z]) ? null : new f("Invalid " + L + " `" + K + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
898
898
  }
899
- return g(O);
899
+ return g(x);
900
900
  }
901
- function I(O, R, V, L, q) {
901
+ function I(x, O, z, D, L) {
902
902
  return new f(
903
- (O || "React class") + ": " + R + " type `" + V + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + q + "`."
903
+ (x || "React class") + ": " + O + " type `" + z + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
904
904
  );
905
905
  }
906
- function c(O) {
907
- function R(V, L, q, X, H) {
908
- var K = V[L], Q = _(K);
909
- if (Q !== "object")
910
- return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + q + "`, expected `object`."));
911
- for (var ee in O) {
912
- var J = O[ee];
913
- if (typeof J != "function")
914
- return I(q, X, H, ee, U(J));
915
- var me = J(K, ee, q, X, H + "." + ee, r);
906
+ function c(x) {
907
+ function O(z, D, L, K, q) {
908
+ var H = z[D], X = P(H);
909
+ if (X !== "object")
910
+ return new f("Invalid " + K + " `" + q + "` of type `" + X + "` " + ("supplied to `" + L + "`, expected `object`."));
911
+ for (var Z in x) {
912
+ var Q = x[Z];
913
+ if (typeof Q != "function")
914
+ return I(L, K, q, Z, U(Q));
915
+ var me = Q(H, Z, L, K, q + "." + Z, r);
916
916
  if (me)
917
917
  return me;
918
918
  }
919
919
  return null;
920
920
  }
921
- return g(R);
922
- }
923
- function w(O) {
924
- function R(V, L, q, X, H) {
925
- var K = V[L], Q = _(K);
926
- if (Q !== "object")
927
- return new f("Invalid " + X + " `" + H + "` of type `" + Q + "` " + ("supplied to `" + q + "`, expected `object`."));
928
- var ee = t({}, V[L], O);
929
- for (var J in ee) {
930
- var me = O[J];
931
- if (n(O, J) && typeof me != "function")
932
- return I(q, X, H, J, U(me));
921
+ return g(O);
922
+ }
923
+ function E(x) {
924
+ function O(z, D, L, K, q) {
925
+ var H = z[D], X = P(H);
926
+ if (X !== "object")
927
+ return new f("Invalid " + K + " `" + q + "` of type `" + X + "` " + ("supplied to `" + L + "`, expected `object`."));
928
+ var Z = t({}, z[D], x);
929
+ for (var Q in Z) {
930
+ var me = x[Q];
931
+ if (n(x, Q) && typeof me != "function")
932
+ return I(L, K, q, Q, U(me));
933
933
  if (!me)
934
934
  return new f(
935
- "Invalid " + X + " `" + H + "` key `" + J + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(V[L], null, " ") + `
936
- Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
935
+ "Invalid " + K + " `" + q + "` key `" + Q + "` supplied to `" + L + "`.\nBad object: " + JSON.stringify(z[D], null, " ") + `
936
+ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
937
937
  );
938
- var N = me(K, J, q, X, H + "." + J, r);
938
+ var N = me(H, Q, L, K, q + "." + Q, r);
939
939
  if (N)
940
940
  return N;
941
941
  }
942
942
  return null;
943
943
  }
944
- return g(R);
944
+ return g(O);
945
945
  }
946
- function x(O) {
947
- switch (typeof O) {
946
+ function C(x) {
947
+ switch (typeof x) {
948
948
  case "number":
949
949
  case "string":
950
950
  case "undefined":
951
951
  return !0;
952
952
  case "boolean":
953
- return !O;
953
+ return !x;
954
954
  case "object":
955
- if (Array.isArray(O))
956
- return O.every(x);
957
- if (O === null || l(O))
955
+ if (Array.isArray(x))
956
+ return x.every(C);
957
+ if (x === null || l(x))
958
958
  return !0;
959
- var R = y(O);
960
- if (R) {
961
- var V = R.call(O), L;
962
- if (R !== O.entries) {
963
- for (; !(L = V.next()).done; )
964
- if (!x(L.value))
959
+ var O = y(x);
960
+ if (O) {
961
+ var z = O.call(x), D;
962
+ if (O !== x.entries) {
963
+ for (; !(D = z.next()).done; )
964
+ if (!C(D.value))
965
965
  return !1;
966
966
  } else
967
- for (; !(L = V.next()).done; ) {
968
- var q = L.value;
969
- if (q && !x(q[1]))
967
+ for (; !(D = z.next()).done; ) {
968
+ var L = D.value;
969
+ if (L && !C(L[1]))
970
970
  return !1;
971
971
  }
972
972
  } else
@@ -976,41 +976,41 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
976
976
  return !1;
977
977
  }
978
978
  }
979
- function P(O, R) {
980
- return O === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
979
+ function _(x, O) {
980
+ return x === "symbol" ? !0 : O ? O["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && O instanceof Symbol : !1;
981
981
  }
982
- function _(O) {
983
- var R = typeof O;
984
- return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : P(R, O) ? "symbol" : R;
982
+ function P(x) {
983
+ var O = typeof x;
984
+ return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : _(O, x) ? "symbol" : O;
985
985
  }
986
- function U(O) {
987
- if (typeof O > "u" || O === null)
988
- return "" + O;
989
- var R = _(O);
990
- if (R === "object") {
991
- if (O instanceof Date)
986
+ function U(x) {
987
+ if (typeof x > "u" || x === null)
988
+ return "" + x;
989
+ var O = P(x);
990
+ if (O === "object") {
991
+ if (x instanceof Date)
992
992
  return "date";
993
- if (O instanceof RegExp)
993
+ if (x instanceof RegExp)
994
994
  return "regexp";
995
995
  }
996
- return R;
996
+ return O;
997
997
  }
998
- function j(O) {
999
- var R = U(O);
1000
- switch (R) {
998
+ function oe(x) {
999
+ var O = U(x);
1000
+ switch (O) {
1001
1001
  case "array":
1002
1002
  case "object":
1003
- return "an " + R;
1003
+ return "an " + O;
1004
1004
  case "boolean":
1005
1005
  case "date":
1006
1006
  case "regexp":
1007
- return "a " + R;
1007
+ return "a " + O;
1008
1008
  default:
1009
- return R;
1009
+ return O;
1010
1010
  }
1011
1011
  }
1012
- function W(O) {
1013
- return !O.constructor || !O.constructor.name ? p : O.constructor.name;
1012
+ function j(x) {
1013
+ return !x.constructor || !x.constructor.name ? p : x.constructor.name;
1014
1014
  }
1015
1015
  return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
1016
1016
  }, gr;
@@ -1227,10 +1227,10 @@ var ss = /[A-Z]|^ms/g, as = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $o = function(t) {
1227
1227
  case "animationName":
1228
1228
  if (typeof r == "string")
1229
1229
  return r.replace(as, function(n, o, i) {
1230
- return Be = {
1230
+ return je = {
1231
1231
  name: o,
1232
1232
  styles: i,
1233
- next: Be
1233
+ next: je
1234
1234
  }, o;
1235
1235
  });
1236
1236
  }
@@ -1248,20 +1248,20 @@ function Vt(e, t, r) {
1248
1248
  case "object": {
1249
1249
  var o = r;
1250
1250
  if (o.anim === 1)
1251
- return Be = {
1251
+ return je = {
1252
1252
  name: o.name,
1253
1253
  styles: o.styles,
1254
- next: Be
1254
+ next: je
1255
1255
  }, o.name;
1256
1256
  var i = r;
1257
1257
  if (i.styles !== void 0) {
1258
1258
  var a = i.next;
1259
1259
  if (a !== void 0)
1260
1260
  for (; a !== void 0; )
1261
- Be = {
1261
+ je = {
1262
1262
  name: a.name,
1263
1263
  styles: a.styles,
1264
- next: Be
1264
+ next: je
1265
1265
  }, a = a.next;
1266
1266
  var l = i.styles + ";";
1267
1267
  return l;
@@ -1301,12 +1301,12 @@ function ls(e, t, r) {
1301
1301
  }
1302
1302
  return n;
1303
1303
  }
1304
- var bn = /label:\s*([^\s;{]+)\s*(;|$)/g, Be;
1304
+ var bn = /label:\s*([^\s;{]+)\s*(;|$)/g, je;
1305
1305
  function cs(e, t, r) {
1306
1306
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1307
1307
  return e[0];
1308
1308
  var n = !0, o = "";
1309
- Be = void 0;
1309
+ je = void 0;
1310
1310
  var i = e[0];
1311
1311
  if (i == null || i.raw === void 0)
1312
1312
  n = !1, o += Vt(r, t, i);
@@ -1326,7 +1326,7 @@ function cs(e, t, r) {
1326
1326
  return {
1327
1327
  name: y,
1328
1328
  styles: o,
1329
- next: Be
1329
+ next: je
1330
1330
  };
1331
1331
  }
1332
1332
  function Ro(e, t) {
@@ -1507,7 +1507,7 @@ function ze(e, ...t) {
1507
1507
  const r = new URL(`https://mui.com/production-error/?code=${e}`);
1508
1508
  return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
1509
1509
  }
1510
- function Z(e) {
1510
+ function J(e) {
1511
1511
  if (typeof e != "string")
1512
1512
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ze(7));
1513
1513
  return e.charAt(0).toUpperCase() + e.slice(1);
@@ -1757,7 +1757,7 @@ function de(e) {
1757
1757
  const l = a[t], u = a.theme, d = Xt(u, n) || {};
1758
1758
  return we(a, l, (y) => {
1759
1759
  let p = Wt(d, o, y);
1760
- return y === p && typeof y == "string" && (p = Wt(d, o, `${t}${y === "default" ? "" : Z(y)}`, y)), r === !1 ? p : {
1760
+ return y === p && typeof y == "string" && (p = Wt(d, o, `${t}${y === "default" ? "" : J(y)}`, y)), r === !1 ? p : {
1761
1761
  [r]: p
1762
1762
  };
1763
1763
  });
@@ -2324,7 +2324,7 @@ function ca() {
2324
2324
  const p = Xt(o, d) || {};
2325
2325
  return y ? y(a) : we(a, n, (h) => {
2326
2326
  let f = Wt(p, m, h);
2327
- return h === f && typeof h == "string" && (f = Wt(p, m, `${r}${h === "default" ? "" : Z(h)}`, h)), u === !1 ? f : {
2327
+ return h === f && typeof h == "string" && (f = Wt(p, m, `${r}${h === "default" ? "" : J(h)}`, h)), u === !1 ? f : {
2328
2328
  [u]: f
2329
2329
  };
2330
2330
  });
@@ -2534,7 +2534,7 @@ function Bo(e = {}) {
2534
2534
  ma(l, t, r);
2535
2535
  }
2536
2536
  return (l, u = {}) => {
2537
- us(l, (T) => T.filter((D) => D !== Qe));
2537
+ us(l, (w) => w.filter((V) => V !== Qe));
2538
2538
  const {
2539
2539
  name: d,
2540
2540
  slot: m,
@@ -2548,53 +2548,53 @@ function Bo(e = {}) {
2548
2548
  // TODO v6: remove `Root` in the next major release
2549
2549
  // For more details: https://github.com/mui/material-ui/pull/37908
2550
2550
  m && m !== "Root" && m !== "root" || !1
2551
- ), C = p || !1;
2551
+ ), T = p || !1;
2552
2552
  let k = Sr;
2553
2553
  m === "Root" || m === "root" ? k = n : m ? k = o : ba(l) && (k = void 0);
2554
2554
  const M = Ro(l, {
2555
2555
  shouldForwardProp: k,
2556
2556
  label: ga(d, m),
2557
2557
  ...h
2558
- }), $ = (T) => {
2559
- if (T.__emotion_real === T)
2560
- return T;
2561
- if (typeof T == "function")
2558
+ }), R = (w) => {
2559
+ if (w.__emotion_real === w)
2560
+ return w;
2561
+ if (typeof w == "function")
2562
2562
  return function(G) {
2563
- return Bt(G, T, G.theme.modularCssLayers ? f : void 0);
2563
+ return Bt(G, w, G.theme.modularCssLayers ? f : void 0);
2564
2564
  };
2565
- if (Re(T)) {
2566
- const D = _o(T);
2567
- return function(z) {
2568
- return D.variants ? Bt(z, D, z.theme.modularCssLayers ? f : void 0) : z.theme.modularCssLayers ? Ue(D.style, f) : D.style;
2565
+ if (Re(w)) {
2566
+ const V = _o(w);
2567
+ return function(W) {
2568
+ return V.variants ? Bt(W, V, W.theme.modularCssLayers ? f : void 0) : W.theme.modularCssLayers ? Ue(V.style, f) : V.style;
2569
2569
  };
2570
2570
  }
2571
- return T;
2572
- }, S = (...T) => {
2573
- const D = [], G = T.map($), z = [];
2574
- if (D.push(i), d && b && z.push(function(w) {
2575
- const P = w.theme.components?.[d]?.styleOverrides;
2576
- if (!P)
2571
+ return w;
2572
+ }, S = (...w) => {
2573
+ const V = [], G = w.map(R), W = [];
2574
+ if (V.push(i), d && b && W.push(function(E) {
2575
+ const _ = E.theme.components?.[d]?.styleOverrides;
2576
+ if (!_)
2577
2577
  return null;
2578
- const _ = {};
2579
- for (const U in P)
2580
- _[U] = Bt(w, P[U], w.theme.modularCssLayers ? "theme" : void 0);
2581
- return b(w, _);
2582
- }), d && !g && z.push(function(w) {
2583
- const P = w.theme?.components?.[d]?.variants;
2584
- return P ? No(w, P, [], w.theme.modularCssLayers ? "theme" : void 0) : null;
2585
- }), C || z.push(Qe), Array.isArray(G[0])) {
2586
- const c = G.shift(), w = new Array(D.length).fill(""), x = new Array(z.length).fill("");
2587
- let P;
2588
- P = [...w, ...c, ...x], P.raw = [...w, ...c.raw, ...x], D.unshift(P);
2578
+ const P = {};
2579
+ for (const U in _)
2580
+ P[U] = Bt(E, _[U], E.theme.modularCssLayers ? "theme" : void 0);
2581
+ return b(E, P);
2582
+ }), d && !g && W.push(function(E) {
2583
+ const _ = E.theme?.components?.[d]?.variants;
2584
+ return _ ? No(E, _, [], E.theme.modularCssLayers ? "theme" : void 0) : null;
2585
+ }), T || W.push(Qe), Array.isArray(G[0])) {
2586
+ const c = G.shift(), E = new Array(V.length).fill(""), C = new Array(W.length).fill("");
2587
+ let _;
2588
+ _ = [...E, ...c, ...C], _.raw = [...E, ...c.raw, ...C], V.unshift(_);
2589
2589
  }
2590
- const F = [...D, ...G, ...z], I = M(...F);
2590
+ const F = [...V, ...G, ...W], I = M(...F);
2591
2591
  return l.muiName && (I.muiName = l.muiName), process.env.NODE_ENV !== "production" && (I.displayName = ha(d, m, l)), I;
2592
2592
  };
2593
2593
  return M.withConfig && (S.withConfig = M.withConfig), S;
2594
2594
  };
2595
2595
  }
2596
2596
  function ha(e, t, r) {
2597
- return e ? `${e}${Z(t || "")}` : `Styled(${ms(r)})`;
2597
+ return e ? `${e}${J(t || "")}` : `Styled(${ms(r)})`;
2598
2598
  }
2599
2599
  function ga(e, t) {
2600
2600
  let r;
@@ -2872,7 +2872,7 @@ function ja(e = {}) {
2872
2872
  } = d, g = {
2873
2873
  root: ["root", y && "container", h !== "wrap" && `wrap-xs-${String(h)}`, ...Ma(p), ...Pa(f), ...y ? Ia(b, m.breakpoints.keys[0]) : []]
2874
2874
  };
2875
- return Ae(g, (C) => xe(o, C), {});
2875
+ return Ae(g, (T) => xe(o, T), {});
2876
2876
  };
2877
2877
  function a(d, m, y = () => !0) {
2878
2878
  const p = {};
@@ -2889,40 +2889,40 @@ function ja(e = {}) {
2889
2889
  const {
2890
2890
  className: f,
2891
2891
  children: g,
2892
- columns: C = 12,
2892
+ columns: T = 12,
2893
2893
  container: k = !1,
2894
2894
  component: M = "div",
2895
- direction: $ = "row",
2895
+ direction: R = "row",
2896
2896
  wrap: S = "wrap",
2897
- size: T = {},
2898
- offset: D = {},
2897
+ size: w = {},
2898
+ offset: V = {},
2899
2899
  spacing: G = 0,
2900
- rowSpacing: z = G,
2900
+ rowSpacing: W = G,
2901
2901
  columnSpacing: F = G,
2902
2902
  unstable_level: I = 0,
2903
2903
  ...c
2904
- } = h, w = a(T, p.breakpoints, (R) => R !== !1), x = a(D, p.breakpoints), P = m.columns ?? (I ? void 0 : C), _ = m.spacing ?? (I ? void 0 : G), U = m.rowSpacing ?? m.spacing ?? (I ? void 0 : z), j = m.columnSpacing ?? m.spacing ?? (I ? void 0 : F), W = {
2904
+ } = h, E = a(w, p.breakpoints, (O) => O !== !1), C = a(V, p.breakpoints), _ = m.columns ?? (I ? void 0 : T), P = m.spacing ?? (I ? void 0 : G), U = m.rowSpacing ?? m.spacing ?? (I ? void 0 : W), oe = m.columnSpacing ?? m.spacing ?? (I ? void 0 : F), j = {
2905
2905
  ...h,
2906
2906
  level: I,
2907
- columns: P,
2907
+ columns: _,
2908
2908
  container: k,
2909
- direction: $,
2909
+ direction: R,
2910
2910
  wrap: S,
2911
- spacing: _,
2911
+ spacing: P,
2912
2912
  rowSpacing: U,
2913
- columnSpacing: j,
2914
- size: w,
2915
- offset: x
2916
- }, O = i(W, p);
2917
- return /* @__PURE__ */ E(l, {
2913
+ columnSpacing: oe,
2914
+ size: E,
2915
+ offset: C
2916
+ }, x = i(j, p);
2917
+ return /* @__PURE__ */ $(l, {
2918
2918
  ref: y,
2919
2919
  as: M,
2920
- ownerState: W,
2921
- className: ue(O.root, f),
2920
+ ownerState: j,
2921
+ className: ue(x.root, f),
2922
2922
  ...c,
2923
- children: B.Children.map(g, (R) => /* @__PURE__ */ B.isValidElement(R) && es(R, ["Grid"]) && k && R.props.container ? /* @__PURE__ */ B.cloneElement(R, {
2924
- unstable_level: R.props?.unstable_level ?? I + 1
2925
- }) : R)
2923
+ children: B.Children.map(g, (O) => /* @__PURE__ */ B.isValidElement(O) && es(O, ["Grid"]) && k && O.props.container ? /* @__PURE__ */ B.cloneElement(O, {
2924
+ unstable_level: O.props?.unstable_level ?? I + 1
2925
+ }) : O)
2926
2926
  });
2927
2927
  });
2928
2928
  return process.env.NODE_ENV !== "production" && (u.propTypes = {
@@ -2979,7 +2979,7 @@ function za(e = {}) {
2979
2979
  component: p = "div",
2980
2980
  ...b
2981
2981
  } = ir(u);
2982
- return /* @__PURE__ */ E(i, {
2982
+ return /* @__PURE__ */ $(i, {
2983
2983
  as: p,
2984
2984
  ref: d,
2985
2985
  className: ue(y, o ? o(n) : n),
@@ -3082,7 +3082,7 @@ function cr(e, t) {
3082
3082
  e.values[r] *= 1 - t;
3083
3083
  return lr(e);
3084
3084
  }
3085
- function ne(e, t, r) {
3085
+ function re(e, t, r) {
3086
3086
  try {
3087
3087
  return cr(e, t);
3088
3088
  } catch {
@@ -3100,7 +3100,7 @@ function ur(e, t) {
3100
3100
  e.values[r] += (1 - e.values[r]) * t;
3101
3101
  return lr(e);
3102
3102
  }
3103
- function oe(e, t, r) {
3103
+ function ne(e, t, r) {
3104
3104
  try {
3105
3105
  return ur(e, t);
3106
3106
  } catch {
@@ -3217,7 +3217,7 @@ function xr(e, t) {
3217
3217
  }
3218
3218
  function tl(e, t = {}) {
3219
3219
  const {
3220
- getSelector: r = C,
3220
+ getSelector: r = T,
3221
3221
  disableCssColorScheme: n,
3222
3222
  colorSchemeSelector: o,
3223
3223
  enableContrastVars: i
@@ -3236,95 +3236,95 @@ function tl(e, t = {}) {
3236
3236
  [u]: f,
3237
3237
  ...g
3238
3238
  } = a;
3239
- if (Object.entries(g || {}).forEach(([$, S]) => {
3239
+ if (Object.entries(g || {}).forEach(([R, S]) => {
3240
3240
  const {
3241
- vars: T,
3242
- css: D,
3241
+ vars: w,
3242
+ css: V,
3243
3243
  varsWithDefaults: G
3244
3244
  } = xr(S, t);
3245
- b = he(b, G), h[$] = {
3246
- css: D,
3247
- vars: T
3245
+ b = he(b, G), h[R] = {
3246
+ css: V,
3247
+ vars: w
3248
3248
  };
3249
3249
  }), f) {
3250
3250
  const {
3251
- css: $,
3251
+ css: R,
3252
3252
  vars: S,
3253
- varsWithDefaults: T
3253
+ varsWithDefaults: w
3254
3254
  } = xr(f, t);
3255
- b = he(b, T), h[u] = {
3256
- css: $,
3255
+ b = he(b, w), h[u] = {
3256
+ css: R,
3257
3257
  vars: S
3258
3258
  };
3259
3259
  }
3260
- function C($, S) {
3261
- let T = o;
3262
- if (o === "class" && (T = ".%s"), o === "data" && (T = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (T = `[${o}="%s"]`), $) {
3263
- if (T === "media")
3264
- return e.defaultColorScheme === $ ? ":root" : {
3265
- [`@media (prefers-color-scheme: ${a[$]?.palette?.mode || $})`]: {
3260
+ function T(R, S) {
3261
+ let w = o;
3262
+ if (o === "class" && (w = ".%s"), o === "data" && (w = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (w = `[${o}="%s"]`), R) {
3263
+ if (w === "media")
3264
+ return e.defaultColorScheme === R ? ":root" : {
3265
+ [`@media (prefers-color-scheme: ${a[R]?.palette?.mode || R})`]: {
3266
3266
  ":root": S
3267
3267
  }
3268
3268
  };
3269
- if (T)
3270
- return e.defaultColorScheme === $ ? `:root, ${T.replace("%s", String($))}` : T.replace("%s", String($));
3269
+ if (w)
3270
+ return e.defaultColorScheme === R ? `:root, ${w.replace("%s", String(R))}` : w.replace("%s", String(R));
3271
3271
  }
3272
3272
  return ":root";
3273
3273
  }
3274
3274
  return {
3275
3275
  vars: b,
3276
3276
  generateThemeVars: () => {
3277
- let $ = {
3277
+ let R = {
3278
3278
  ...m
3279
3279
  };
3280
3280
  return Object.entries(h).forEach(([, {
3281
3281
  vars: S
3282
3282
  }]) => {
3283
- $ = he($, S);
3284
- }), $;
3283
+ R = he(R, S);
3284
+ }), R;
3285
3285
  },
3286
3286
  generateStyleSheets: () => {
3287
- const $ = [], S = e.defaultColorScheme || "light";
3288
- function T(z, F) {
3289
- Object.keys(F).length && $.push(typeof z == "string" ? {
3290
- [z]: {
3287
+ const R = [], S = e.defaultColorScheme || "light";
3288
+ function w(W, F) {
3289
+ Object.keys(F).length && R.push(typeof W == "string" ? {
3290
+ [W]: {
3291
3291
  ...F
3292
3292
  }
3293
- } : z);
3293
+ } : W);
3294
3294
  }
3295
- T(r(void 0, {
3295
+ w(r(void 0, {
3296
3296
  ...y
3297
3297
  }), y);
3298
3298
  const {
3299
- [S]: D,
3299
+ [S]: V,
3300
3300
  ...G
3301
3301
  } = h;
3302
- if (D) {
3302
+ if (V) {
3303
3303
  const {
3304
- css: z
3305
- } = D, F = a[S]?.palette?.mode, I = !n && F ? {
3304
+ css: W
3305
+ } = V, F = a[S]?.palette?.mode, I = !n && F ? {
3306
3306
  colorScheme: F,
3307
- ...z
3307
+ ...W
3308
3308
  } : {
3309
- ...z
3309
+ ...W
3310
3310
  };
3311
- T(r(S, {
3311
+ w(r(S, {
3312
3312
  ...I
3313
3313
  }), I);
3314
3314
  }
3315
- return Object.entries(G).forEach(([z, {
3315
+ return Object.entries(G).forEach(([W, {
3316
3316
  css: F
3317
3317
  }]) => {
3318
- const I = a[z]?.palette?.mode, c = !n && I ? {
3318
+ const I = a[W]?.palette?.mode, c = !n && I ? {
3319
3319
  colorScheme: I,
3320
3320
  ...F
3321
3321
  } : {
3322
3322
  ...F
3323
3323
  };
3324
- T(r(z, {
3324
+ w(r(W, {
3325
3325
  ...c
3326
3326
  }), c);
3327
- }), i && $.push({
3327
+ }), i && R.push({
3328
3328
  ":root": {
3329
3329
  // use double underscore to indicate that these are private variables
3330
3330
  "--__l-threshold": "0.7",
@@ -3332,7 +3332,7 @@ function tl(e, t = {}) {
3332
3332
  "--__a": "clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"
3333
3333
  // 0.87 is the default alpha value for black text.
3334
3334
  }
3335
- }), $;
3335
+ }), R;
3336
3336
  }
3337
3337
  };
3338
3338
  }
@@ -3424,19 +3424,19 @@ function cl(e = {}) {
3424
3424
  spacing: h = 0,
3425
3425
  divider: f,
3426
3426
  children: g,
3427
- className: C,
3427
+ className: T,
3428
3428
  useFlexGap: k = !1,
3429
3429
  ...M
3430
- } = y, $ = {
3430
+ } = y, R = {
3431
3431
  direction: b,
3432
3432
  spacing: h,
3433
3433
  useFlexGap: k
3434
3434
  }, S = o();
3435
- return /* @__PURE__ */ E(i, {
3435
+ return /* @__PURE__ */ $(i, {
3436
3436
  as: p,
3437
- ownerState: $,
3437
+ ownerState: R,
3438
3438
  ref: d,
3439
- className: ue(S.root, C),
3439
+ className: ue(S.root, T),
3440
3440
  ...M,
3441
3441
  children: f ? sl(g, f) : g
3442
3442
  });
@@ -3665,23 +3665,23 @@ function Hr(e) {
3665
3665
  function p(g) {
3666
3666
  if (o)
3667
3667
  return yl(g);
3668
- const C = kn(g, $r.text.primary) >= r ? $r.text.primary : Fo.text.primary;
3669
- return process.env.NODE_ENV !== "production" && kn(g, C) < 3, C;
3668
+ const T = kn(g, $r.text.primary) >= r ? $r.text.primary : Fo.text.primary;
3669
+ return process.env.NODE_ENV !== "production" && kn(g, T) < 3, T;
3670
3670
  }
3671
3671
  const b = ({
3672
3672
  color: g,
3673
- name: C,
3673
+ name: T,
3674
3674
  mainShade: k = 500,
3675
3675
  lightShade: M = 300,
3676
- darkShade: $ = 700
3676
+ darkShade: R = 700
3677
3677
  }) => {
3678
3678
  if (g = {
3679
3679
  ...g
3680
3680
  }, !g.main && g[k] && (g.main = g[k]), !g.hasOwnProperty("main"))
3681
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
3682
- The color object needs to have a \`main\` property or a \`${k}\` property.` : ze(11, C ? ` (${C})` : "", k));
3681
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
3682
+ The color object needs to have a \`main\` property or a \`${k}\` property.` : ze(11, T ? ` (${T})` : "", k));
3683
3683
  if (typeof g.main != "string")
3684
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
3684
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
3685
3685
  \`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
3686
3686
 
3687
3687
  Did you intend to use one of the following approaches?
@@ -3694,8 +3694,8 @@ const theme1 = createTheme({ palette: {
3694
3694
 
3695
3695
  const theme2 = createTheme({ palette: {
3696
3696
  primary: { main: green[500] },
3697
- } });` : ze(12, C ? ` (${C})` : "", JSON.stringify(g.main)));
3698
- return o ? (Nn(o, g, "light", M, n), Nn(o, g, "dark", $, n)) : (_n(g, "light", M, n), _n(g, "dark", $, n)), g.contrastText || (g.contrastText = p(g.main)), g;
3697
+ } });` : ze(12, T ? ` (${T})` : "", JSON.stringify(g.main)));
3698
+ return o ? (Nn(o, g, "light", M, n), Nn(o, g, "dark", R, n)) : (_n(g, "light", M, n), _n(g, "dark", R, n)), g.contrastText || (g.contrastText = p(g.main)), g;
3699
3699
  };
3700
3700
  let h;
3701
3701
  return t === "light" ? h = Lo() : t === "dark" && (h = qo()), process.env.NODE_ENV, he({
@@ -3804,18 +3804,18 @@ function xl(e, t) {
3804
3804
  ...y
3805
3805
  } = typeof t == "function" ? t(e) : t;
3806
3806
  process.env.NODE_ENV;
3807
- const p = n / 14, b = m || ((g) => `${g / u * p}rem`), h = (g, C, k, M, $) => ({
3807
+ const p = n / 14, b = m || ((g) => `${g / u * p}rem`), h = (g, T, k, M, R) => ({
3808
3808
  fontFamily: r,
3809
3809
  fontWeight: g,
3810
- fontSize: b(C),
3810
+ fontSize: b(T),
3811
3811
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
3812
3812
  lineHeight: k,
3813
3813
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
3814
3814
  // across font-families can cause issues with the kerning.
3815
3815
  ...r === Dn ? {
3816
- letterSpacing: `${Sl(M / C)}em`
3816
+ letterSpacing: `${Sl(M / T)}em`
3817
3817
  } : {},
3818
- ...$,
3818
+ ...R,
3819
3819
  ...d
3820
3820
  }), f = {
3821
3821
  h1: h(o, 96, 1.167, -1.5),
@@ -4016,21 +4016,21 @@ function Rr(e = {}, ...t) {
4016
4016
  }
4017
4017
  });
4018
4018
  if (b = he(b, m), b = t.reduce((h, f) => he(h, f), b), process.env.NODE_ENV !== "production") {
4019
- const h = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (g, C) => {
4019
+ const h = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (g, T) => {
4020
4020
  let k;
4021
4021
  for (k in g) {
4022
4022
  const M = g[k];
4023
4023
  if (h.includes(k) && Object.keys(M).length > 0) {
4024
4024
  if (process.env.NODE_ENV !== "production") {
4025
- const $ = xe("", k);
4025
+ const R = xe("", k);
4026
4026
  }
4027
4027
  g[k] = {};
4028
4028
  }
4029
4029
  }
4030
4030
  };
4031
4031
  Object.keys(b.components).forEach((g) => {
4032
- const C = b.components[g].styleOverrides;
4033
- C && g.startsWith("Mui") && f(C, g);
4032
+ const T = b.components[g].styleOverrides;
4033
+ T && g.startsWith("Mui") && f(T, g);
4034
4034
  });
4035
4035
  }
4036
4036
  return b.unstable_sxConfig = {
@@ -4207,18 +4207,18 @@ function Ll(e = {}, ...t) {
4207
4207
  [p]: h,
4208
4208
  light: f,
4209
4209
  dark: g,
4210
- ...C
4210
+ ...T
4211
4211
  } = r, k = {
4212
- ...C
4212
+ ...T
4213
4213
  };
4214
4214
  let M = h;
4215
4215
  if ((p === "dark" && !("dark" in r) || p === "light" && !("light" in r)) && (M = !0), !M)
4216
4216
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : ze(21, p));
4217
- let $;
4218
- a && ($ = "oklch");
4219
- const S = Cr($, k, M, m, p);
4220
- f && !k.light && Cr($, k, f, void 0, "light"), g && !k.dark && Cr($, k, g, void 0, "dark");
4221
- let T = {
4217
+ let R;
4218
+ a && (R = "oklch");
4219
+ const S = Cr(R, k, M, m, p);
4220
+ f && !k.light && Cr(R, k, f, void 0, "light"), g && !k.dark && Cr(R, k, g, void 0, "dark");
4221
+ let w = {
4222
4222
  defaultColorScheme: p,
4223
4223
  ...S,
4224
4224
  cssVarPrefix: i,
@@ -4232,58 +4232,58 @@ function Ll(e = {}, ...t) {
4232
4232
  },
4233
4233
  spacing: zl(m.spacing)
4234
4234
  };
4235
- Object.keys(T.colorSchemes).forEach((I) => {
4236
- const c = T.colorSchemes[I].palette, w = (P) => {
4237
- const _ = P.split("-"), U = _[1], j = _[2];
4238
- return b(P, c[U][j]);
4235
+ Object.keys(w.colorSchemes).forEach((I) => {
4236
+ const c = w.colorSchemes[I].palette, E = (_) => {
4237
+ const P = _.split("-"), U = P[1], oe = P[2];
4238
+ return b(_, c[U][oe]);
4239
4239
  };
4240
4240
  c.mode === "light" && (v(c.common, "background", "#fff"), v(c.common, "onBackground", "#000")), c.mode === "dark" && (v(c.common, "background", "#000"), v(c.common, "onBackground", "#fff"));
4241
- function x(P, _, U) {
4242
- if ($) {
4243
- let j;
4244
- return P === Fe && (j = `transparent ${((1 - U) * 100).toFixed(0)}%`), P === ne && (j = `#000 ${(U * 100).toFixed(0)}%`), P === oe && (j = `#fff ${(U * 100).toFixed(0)}%`), `color-mix(in ${$}, ${_}, ${j})`;
4241
+ function C(_, P, U) {
4242
+ if (R) {
4243
+ let oe;
4244
+ return _ === Fe && (oe = `transparent ${((1 - U) * 100).toFixed(0)}%`), _ === re && (oe = `#000 ${(U * 100).toFixed(0)}%`), _ === ne && (oe = `#fff ${(U * 100).toFixed(0)}%`), `color-mix(in ${R}, ${P}, ${oe})`;
4245
4245
  }
4246
- return P(_, U);
4246
+ return _(P, U);
4247
4247
  }
4248
4248
  if (Vl(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
4249
- v(c.Alert, "errorColor", x(ne, c.error.light, 0.6)), v(c.Alert, "infoColor", x(ne, c.info.light, 0.6)), v(c.Alert, "successColor", x(ne, c.success.light, 0.6)), v(c.Alert, "warningColor", x(ne, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", w("palette-error-main")), v(c.Alert, "infoFilledBg", w("palette-info-main")), v(c.Alert, "successFilledBg", w("palette-success-main")), v(c.Alert, "warningFilledBg", w("palette-warning-main")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.main))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.main))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.main))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.main))), v(c.Alert, "errorStandardBg", x(oe, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", x(oe, c.info.light, 0.9)), v(c.Alert, "successStandardBg", x(oe, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", x(oe, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", w("palette-error-main")), v(c.Alert, "infoIconColor", w("palette-info-main")), v(c.Alert, "successIconColor", w("palette-success-main")), v(c.Alert, "warningIconColor", w("palette-warning-main")), v(c.AppBar, "defaultBg", w("palette-grey-100")), v(c.Avatar, "defaultBg", w("palette-grey-400")), v(c.Button, "inheritContainedBg", w("palette-grey-300")), v(c.Button, "inheritContainedHoverBg", w("palette-grey-A100")), v(c.Chip, "defaultBorder", w("palette-grey-400")), v(c.Chip, "defaultAvatarColor", w("palette-grey-700")), v(c.Chip, "defaultIconColor", w("palette-grey-700")), v(c.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), v(c.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), v(c.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), v(c.LinearProgress, "primaryBg", x(oe, c.primary.main, 0.62)), v(c.LinearProgress, "secondaryBg", x(oe, c.secondary.main, 0.62)), v(c.LinearProgress, "errorBg", x(oe, c.error.main, 0.62)), v(c.LinearProgress, "infoBg", x(oe, c.info.main, 0.62)), v(c.LinearProgress, "successBg", x(oe, c.success.main, 0.62)), v(c.LinearProgress, "warningBg", x(oe, c.warning.main, 0.62)), v(c.Skeleton, "bg", $ ? x(Fe, c.text.primary, 0.11) : `rgba(${w("palette-text-primaryChannel")} / 0.11)`), v(c.Slider, "primaryTrack", x(oe, c.primary.main, 0.62)), v(c.Slider, "secondaryTrack", x(oe, c.secondary.main, 0.62)), v(c.Slider, "errorTrack", x(oe, c.error.main, 0.62)), v(c.Slider, "infoTrack", x(oe, c.info.main, 0.62)), v(c.Slider, "successTrack", x(oe, c.success.main, 0.62)), v(c.Slider, "warningTrack", x(oe, c.warning.main, 0.62));
4250
- const P = $ ? x(ne, c.background.default, 0.6825) : It(c.background.default, 0.8);
4251
- v(c.SnackbarContent, "bg", P), v(c.SnackbarContent, "color", $e(() => $ ? $r.text.primary : c.getContrastText(P))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", w("palette-grey-400")), v(c.StepContent, "border", w("palette-grey-400")), v(c.Switch, "defaultColor", w("palette-common-white")), v(c.Switch, "defaultDisabledColor", w("palette-grey-100")), v(c.Switch, "primaryDisabledColor", x(oe, c.primary.main, 0.62)), v(c.Switch, "secondaryDisabledColor", x(oe, c.secondary.main, 0.62)), v(c.Switch, "errorDisabledColor", x(oe, c.error.main, 0.62)), v(c.Switch, "infoDisabledColor", x(oe, c.info.main, 0.62)), v(c.Switch, "successDisabledColor", x(oe, c.success.main, 0.62)), v(c.Switch, "warningDisabledColor", x(oe, c.warning.main, 0.62)), v(c.TableCell, "border", x(oe, x(Fe, c.divider, 1), 0.88)), v(c.Tooltip, "bg", x(Fe, c.grey[700], 0.92));
4249
+ v(c.Alert, "errorColor", C(re, c.error.light, 0.6)), v(c.Alert, "infoColor", C(re, c.info.light, 0.6)), v(c.Alert, "successColor", C(re, c.success.light, 0.6)), v(c.Alert, "warningColor", C(re, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", E("palette-error-main")), v(c.Alert, "infoFilledBg", E("palette-info-main")), v(c.Alert, "successFilledBg", E("palette-success-main")), v(c.Alert, "warningFilledBg", E("palette-warning-main")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.main))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.main))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.main))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.main))), v(c.Alert, "errorStandardBg", C(ne, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", C(ne, c.info.light, 0.9)), v(c.Alert, "successStandardBg", C(ne, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", C(ne, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", E("palette-error-main")), v(c.Alert, "infoIconColor", E("palette-info-main")), v(c.Alert, "successIconColor", E("palette-success-main")), v(c.Alert, "warningIconColor", E("palette-warning-main")), v(c.AppBar, "defaultBg", E("palette-grey-100")), v(c.Avatar, "defaultBg", E("palette-grey-400")), v(c.Button, "inheritContainedBg", E("palette-grey-300")), v(c.Button, "inheritContainedHoverBg", E("palette-grey-A100")), v(c.Chip, "defaultBorder", E("palette-grey-400")), v(c.Chip, "defaultAvatarColor", E("palette-grey-700")), v(c.Chip, "defaultIconColor", E("palette-grey-700")), v(c.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), v(c.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), v(c.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), v(c.LinearProgress, "primaryBg", C(ne, c.primary.main, 0.62)), v(c.LinearProgress, "secondaryBg", C(ne, c.secondary.main, 0.62)), v(c.LinearProgress, "errorBg", C(ne, c.error.main, 0.62)), v(c.LinearProgress, "infoBg", C(ne, c.info.main, 0.62)), v(c.LinearProgress, "successBg", C(ne, c.success.main, 0.62)), v(c.LinearProgress, "warningBg", C(ne, c.warning.main, 0.62)), v(c.Skeleton, "bg", R ? C(Fe, c.text.primary, 0.11) : `rgba(${E("palette-text-primaryChannel")} / 0.11)`), v(c.Slider, "primaryTrack", C(ne, c.primary.main, 0.62)), v(c.Slider, "secondaryTrack", C(ne, c.secondary.main, 0.62)), v(c.Slider, "errorTrack", C(ne, c.error.main, 0.62)), v(c.Slider, "infoTrack", C(ne, c.info.main, 0.62)), v(c.Slider, "successTrack", C(ne, c.success.main, 0.62)), v(c.Slider, "warningTrack", C(ne, c.warning.main, 0.62));
4250
+ const _ = R ? C(re, c.background.default, 0.6825) : It(c.background.default, 0.8);
4251
+ v(c.SnackbarContent, "bg", _), v(c.SnackbarContent, "color", $e(() => R ? $r.text.primary : c.getContrastText(_))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", E("palette-grey-400")), v(c.StepContent, "border", E("palette-grey-400")), v(c.Switch, "defaultColor", E("palette-common-white")), v(c.Switch, "defaultDisabledColor", E("palette-grey-100")), v(c.Switch, "primaryDisabledColor", C(ne, c.primary.main, 0.62)), v(c.Switch, "secondaryDisabledColor", C(ne, c.secondary.main, 0.62)), v(c.Switch, "errorDisabledColor", C(ne, c.error.main, 0.62)), v(c.Switch, "infoDisabledColor", C(ne, c.info.main, 0.62)), v(c.Switch, "successDisabledColor", C(ne, c.success.main, 0.62)), v(c.Switch, "warningDisabledColor", C(ne, c.warning.main, 0.62)), v(c.TableCell, "border", C(ne, C(Fe, c.divider, 1), 0.88)), v(c.Tooltip, "bg", C(Fe, c.grey[700], 0.92));
4252
4252
  }
4253
4253
  if (c.mode === "dark") {
4254
- v(c.Alert, "errorColor", x(oe, c.error.light, 0.6)), v(c.Alert, "infoColor", x(oe, c.info.light, 0.6)), v(c.Alert, "successColor", x(oe, c.success.light, 0.6)), v(c.Alert, "warningColor", x(oe, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", w("palette-error-dark")), v(c.Alert, "infoFilledBg", w("palette-info-dark")), v(c.Alert, "successFilledBg", w("palette-success-dark")), v(c.Alert, "warningFilledBg", w("palette-warning-dark")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.dark))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.dark))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.dark))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.dark))), v(c.Alert, "errorStandardBg", x(ne, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", x(ne, c.info.light, 0.9)), v(c.Alert, "successStandardBg", x(ne, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", x(ne, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", w("palette-error-main")), v(c.Alert, "infoIconColor", w("palette-info-main")), v(c.Alert, "successIconColor", w("palette-success-main")), v(c.Alert, "warningIconColor", w("palette-warning-main")), v(c.AppBar, "defaultBg", w("palette-grey-900")), v(c.AppBar, "darkBg", w("palette-background-paper")), v(c.AppBar, "darkColor", w("palette-text-primary")), v(c.Avatar, "defaultBg", w("palette-grey-600")), v(c.Button, "inheritContainedBg", w("palette-grey-800")), v(c.Button, "inheritContainedHoverBg", w("palette-grey-700")), v(c.Chip, "defaultBorder", w("palette-grey-700")), v(c.Chip, "defaultAvatarColor", w("palette-grey-300")), v(c.Chip, "defaultIconColor", w("palette-grey-300")), v(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), v(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), v(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), v(c.LinearProgress, "primaryBg", x(ne, c.primary.main, 0.5)), v(c.LinearProgress, "secondaryBg", x(ne, c.secondary.main, 0.5)), v(c.LinearProgress, "errorBg", x(ne, c.error.main, 0.5)), v(c.LinearProgress, "infoBg", x(ne, c.info.main, 0.5)), v(c.LinearProgress, "successBg", x(ne, c.success.main, 0.5)), v(c.LinearProgress, "warningBg", x(ne, c.warning.main, 0.5)), v(c.Skeleton, "bg", $ ? x(Fe, c.text.primary, 0.13) : `rgba(${w("palette-text-primaryChannel")} / 0.13)`), v(c.Slider, "primaryTrack", x(ne, c.primary.main, 0.5)), v(c.Slider, "secondaryTrack", x(ne, c.secondary.main, 0.5)), v(c.Slider, "errorTrack", x(ne, c.error.main, 0.5)), v(c.Slider, "infoTrack", x(ne, c.info.main, 0.5)), v(c.Slider, "successTrack", x(ne, c.success.main, 0.5)), v(c.Slider, "warningTrack", x(ne, c.warning.main, 0.5));
4255
- const P = $ ? x(oe, c.background.default, 0.985) : It(c.background.default, 0.98);
4256
- v(c.SnackbarContent, "bg", P), v(c.SnackbarContent, "color", $e(() => $ ? Fo.text.primary : c.getContrastText(P))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", w("palette-grey-600")), v(c.StepContent, "border", w("palette-grey-600")), v(c.Switch, "defaultColor", w("palette-grey-300")), v(c.Switch, "defaultDisabledColor", w("palette-grey-600")), v(c.Switch, "primaryDisabledColor", x(ne, c.primary.main, 0.55)), v(c.Switch, "secondaryDisabledColor", x(ne, c.secondary.main, 0.55)), v(c.Switch, "errorDisabledColor", x(ne, c.error.main, 0.55)), v(c.Switch, "infoDisabledColor", x(ne, c.info.main, 0.55)), v(c.Switch, "successDisabledColor", x(ne, c.success.main, 0.55)), v(c.Switch, "warningDisabledColor", x(ne, c.warning.main, 0.55)), v(c.TableCell, "border", x(ne, x(Fe, c.divider, 1), 0.68)), v(c.Tooltip, "bg", x(Fe, c.grey[700], 0.92));
4254
+ v(c.Alert, "errorColor", C(ne, c.error.light, 0.6)), v(c.Alert, "infoColor", C(ne, c.info.light, 0.6)), v(c.Alert, "successColor", C(ne, c.success.light, 0.6)), v(c.Alert, "warningColor", C(ne, c.warning.light, 0.6)), v(c.Alert, "errorFilledBg", E("palette-error-dark")), v(c.Alert, "infoFilledBg", E("palette-info-dark")), v(c.Alert, "successFilledBg", E("palette-success-dark")), v(c.Alert, "warningFilledBg", E("palette-warning-dark")), v(c.Alert, "errorFilledColor", $e(() => c.getContrastText(c.error.dark))), v(c.Alert, "infoFilledColor", $e(() => c.getContrastText(c.info.dark))), v(c.Alert, "successFilledColor", $e(() => c.getContrastText(c.success.dark))), v(c.Alert, "warningFilledColor", $e(() => c.getContrastText(c.warning.dark))), v(c.Alert, "errorStandardBg", C(re, c.error.light, 0.9)), v(c.Alert, "infoStandardBg", C(re, c.info.light, 0.9)), v(c.Alert, "successStandardBg", C(re, c.success.light, 0.9)), v(c.Alert, "warningStandardBg", C(re, c.warning.light, 0.9)), v(c.Alert, "errorIconColor", E("palette-error-main")), v(c.Alert, "infoIconColor", E("palette-info-main")), v(c.Alert, "successIconColor", E("palette-success-main")), v(c.Alert, "warningIconColor", E("palette-warning-main")), v(c.AppBar, "defaultBg", E("palette-grey-900")), v(c.AppBar, "darkBg", E("palette-background-paper")), v(c.AppBar, "darkColor", E("palette-text-primary")), v(c.Avatar, "defaultBg", E("palette-grey-600")), v(c.Button, "inheritContainedBg", E("palette-grey-800")), v(c.Button, "inheritContainedHoverBg", E("palette-grey-700")), v(c.Chip, "defaultBorder", E("palette-grey-700")), v(c.Chip, "defaultAvatarColor", E("palette-grey-300")), v(c.Chip, "defaultIconColor", E("palette-grey-300")), v(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), v(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), v(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), v(c.LinearProgress, "primaryBg", C(re, c.primary.main, 0.5)), v(c.LinearProgress, "secondaryBg", C(re, c.secondary.main, 0.5)), v(c.LinearProgress, "errorBg", C(re, c.error.main, 0.5)), v(c.LinearProgress, "infoBg", C(re, c.info.main, 0.5)), v(c.LinearProgress, "successBg", C(re, c.success.main, 0.5)), v(c.LinearProgress, "warningBg", C(re, c.warning.main, 0.5)), v(c.Skeleton, "bg", R ? C(Fe, c.text.primary, 0.13) : `rgba(${E("palette-text-primaryChannel")} / 0.13)`), v(c.Slider, "primaryTrack", C(re, c.primary.main, 0.5)), v(c.Slider, "secondaryTrack", C(re, c.secondary.main, 0.5)), v(c.Slider, "errorTrack", C(re, c.error.main, 0.5)), v(c.Slider, "infoTrack", C(re, c.info.main, 0.5)), v(c.Slider, "successTrack", C(re, c.success.main, 0.5)), v(c.Slider, "warningTrack", C(re, c.warning.main, 0.5));
4255
+ const _ = R ? C(ne, c.background.default, 0.985) : It(c.background.default, 0.98);
4256
+ v(c.SnackbarContent, "bg", _), v(c.SnackbarContent, "color", $e(() => R ? Fo.text.primary : c.getContrastText(_))), v(c.SpeedDialAction, "fabHoverBg", It(c.background.paper, 0.15)), v(c.StepConnector, "border", E("palette-grey-600")), v(c.StepContent, "border", E("palette-grey-600")), v(c.Switch, "defaultColor", E("palette-grey-300")), v(c.Switch, "defaultDisabledColor", E("palette-grey-600")), v(c.Switch, "primaryDisabledColor", C(re, c.primary.main, 0.55)), v(c.Switch, "secondaryDisabledColor", C(re, c.secondary.main, 0.55)), v(c.Switch, "errorDisabledColor", C(re, c.error.main, 0.55)), v(c.Switch, "infoDisabledColor", C(re, c.info.main, 0.55)), v(c.Switch, "successDisabledColor", C(re, c.success.main, 0.55)), v(c.Switch, "warningDisabledColor", C(re, c.warning.main, 0.55)), v(c.TableCell, "border", C(re, C(Fe, c.divider, 1), 0.68)), v(c.Tooltip, "bg", C(Fe, c.grey[700], 0.92));
4257
4257
  }
4258
- Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((P) => {
4259
- const _ = c[P];
4260
- P !== "tonalOffset" && _ && typeof _ == "object" && (_.main && v(c[P], "mainChannel", mt(ht(_.main))), _.light && v(c[P], "lightChannel", mt(ht(_.light))), _.dark && v(c[P], "darkChannel", mt(ht(_.dark))), _.contrastText && v(c[P], "contrastTextChannel", mt(ht(_.contrastText))), P === "text" && (Ie(c[P], "primary"), Ie(c[P], "secondary")), P === "action" && (_.active && Ie(c[P], "active"), _.selected && Ie(c[P], "selected")));
4258
+ Ie(c.background, "default"), Ie(c.background, "paper"), Ie(c.common, "background"), Ie(c.common, "onBackground"), Ie(c, "divider"), Object.keys(c).forEach((_) => {
4259
+ const P = c[_];
4260
+ _ !== "tonalOffset" && P && typeof P == "object" && (P.main && v(c[_], "mainChannel", mt(ht(P.main))), P.light && v(c[_], "lightChannel", mt(ht(P.light))), P.dark && v(c[_], "darkChannel", mt(ht(P.dark))), P.contrastText && v(c[_], "contrastTextChannel", mt(ht(P.contrastText))), _ === "text" && (Ie(c[_], "primary"), Ie(c[_], "secondary")), _ === "action" && (P.active && Ie(c[_], "active"), P.selected && Ie(c[_], "selected")));
4261
4261
  });
4262
- }), T = t.reduce((I, c) => he(I, c), T);
4263
- const D = {
4262
+ }), w = t.reduce((I, c) => he(I, c), w);
4263
+ const V = {
4264
4264
  prefix: i,
4265
4265
  disableCssColorScheme: o,
4266
4266
  shouldSkipGeneratingVar: l,
4267
- getSelector: jl(T),
4267
+ getSelector: jl(w),
4268
4268
  enableContrastVars: a
4269
4269
  }, {
4270
4270
  vars: G,
4271
- generateThemeVars: z,
4271
+ generateThemeVars: W,
4272
4272
  generateStyleSheets: F
4273
- } = tl(T, D);
4274
- return T.vars = G, Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([I, c]) => {
4275
- T[I] = c;
4276
- }), T.generateThemeVars = z, T.generateStyleSheets = F, T.generateSpacing = function() {
4273
+ } = tl(w, V);
4274
+ return w.vars = G, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([I, c]) => {
4275
+ w[I] = c;
4276
+ }), w.generateThemeVars = W, w.generateStyleSheets = F, w.generateSpacing = function() {
4277
4277
  return Mo(m.spacing, Zt(this));
4278
- }, T.getColorSchemeSelector = rl(u), T.spacing = T.generateSpacing(), T.shouldSkipGeneratingVar = l, T.unstable_sxConfig = {
4278
+ }, w.getColorSchemeSelector = rl(u), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = {
4279
4279
  ...Ct,
4280
4280
  ...m?.unstable_sxConfig
4281
- }, T.unstable_sx = function(c) {
4281
+ }, w.unstable_sx = function(c) {
4282
4282
  return Qe({
4283
4283
  sx: c,
4284
4284
  theme: this
4285
4285
  });
4286
- }, T.toRuntimeSource = Go, T;
4286
+ }, w.toRuntimeSource = Go, w;
4287
4287
  }
4288
4288
  function zn(e, t, r) {
4289
4289
  e.colorSchemes && r && (e.colorSchemes[t] = {
@@ -4513,7 +4513,7 @@ function Ul({
4513
4513
  const d = Ht(e, r, o, i);
4514
4514
  if (!d.visible)
4515
4515
  return null;
4516
- const m = a[e.component] ?? a.Text, y = l[e.name] ?? e.ui?.options ?? [], b = e.component === "Group" || e.component === "FormList" ? /* @__PURE__ */ E(
4516
+ const m = a[e.component] ?? a.Text, y = l[e.name] ?? e.ui?.options ?? [], b = e.component === "Group" || e.component === "FormList" ? /* @__PURE__ */ $(
4517
4517
  m,
4518
4518
  {
4519
4519
  field: {
@@ -4535,12 +4535,12 @@ function Ul({
4535
4535
  widgets: a,
4536
4536
  values: r
4537
4537
  }
4538
- ) : /* @__PURE__ */ E(
4538
+ ) : /* @__PURE__ */ $(
4539
4539
  jr,
4540
4540
  {
4541
4541
  control: n.control,
4542
4542
  name: e.name,
4543
- render: ({ field: h, fieldState: f }) => /* @__PURE__ */ E(
4543
+ render: ({ field: h, fieldState: f }) => /* @__PURE__ */ $(
4544
4544
  m,
4545
4545
  {
4546
4546
  error: !!f.error,
@@ -4564,7 +4564,7 @@ function Ul({
4564
4564
  );
4565
4565
  if (u) {
4566
4566
  const h = ql(e.colSpan);
4567
- return /* @__PURE__ */ E(Ke, { size: h, children: b }, `${String(e.name)}-${t}`);
4567
+ return /* @__PURE__ */ $(Ke, { size: h, children: b }, `${String(e.name)}-${t}`);
4568
4568
  }
4569
4569
  return b;
4570
4570
  }
@@ -4581,7 +4581,7 @@ const Yl = mi(Ul, (e, t) => {
4581
4581
  if (e.values[i] !== t.values[i])
4582
4582
  return !1;
4583
4583
  return !0;
4584
- }), Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Ke, { container: !0, spacing: e, children: t }), Jo = cl({
4584
+ }), Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ $(Ke, { container: !0, spacing: e, children: t }), Jo = cl({
4585
4585
  createStyledComponent: pe("div", {
4586
4586
  name: "MuiStack",
4587
4587
  slot: "Root"
@@ -4635,7 +4635,7 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
4635
4635
  */
4636
4636
  useFlexGap: s.bool
4637
4637
  });
4638
- const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing: e, children: t }), ke = {
4638
+ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ $(Jo, { spacing: e, children: t }), ke = {
4639
4639
  "& .MuiInputBase-input": {
4640
4640
  fontSize: 14,
4641
4641
  padding: "8px 12px"
@@ -4707,22 +4707,22 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4707
4707
  } = e;
4708
4708
  return /* @__PURE__ */ fe(Xl, { ...u, ref: t, children: [
4709
4709
  r,
4710
- a && !n && /* @__PURE__ */ E(
4710
+ a && !n && /* @__PURE__ */ $(
4711
4711
  pt,
4712
4712
  {
4713
4713
  component: "li",
4714
4714
  className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
4715
4715
  sx: { py: 2, justifyContent: "center", pointerEvents: "none", cursor: "default" },
4716
- children: /* @__PURE__ */ E(Ot, { variant: "body2", color: "text.secondary", children: "暂无数据" })
4716
+ children: /* @__PURE__ */ $(Ot, { variant: "body2", color: "text.secondary", children: "暂无数据" })
4717
4717
  }
4718
4718
  ),
4719
- l && /* @__PURE__ */ E(
4719
+ l && /* @__PURE__ */ $(
4720
4720
  pt,
4721
4721
  {
4722
4722
  component: "li",
4723
4723
  className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
4724
4724
  sx: { py: 2, color: "error.main", justifyContent: "center", pointerEvents: "none", cursor: "default" },
4725
- children: /* @__PURE__ */ E(Ot, { variant: "body2", children: "加载失败,请重试" })
4725
+ children: /* @__PURE__ */ $(Ot, { variant: "body2", children: "加载失败,请重试" })
4726
4726
  }
4727
4727
  ),
4728
4728
  n && /* @__PURE__ */ fe(
@@ -4732,18 +4732,18 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4732
4732
  className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
4733
4733
  sx: { py: 1.5, gap: 1, display: "flex", alignItems: "center", justifyContent: "center", pointerEvents: "none", color: "text.secondary", cursor: "default" },
4734
4734
  children: [
4735
- /* @__PURE__ */ E(bo, { size: 16, color: "inherit" }),
4736
- /* @__PURE__ */ E(Ot, { variant: "body2", children: "加载中…" })
4735
+ /* @__PURE__ */ $(bo, { size: 16, color: "inherit" }),
4736
+ /* @__PURE__ */ $(Ot, { variant: "body2", children: "加载中…" })
4737
4737
  ]
4738
4738
  }
4739
4739
  ),
4740
- !o && i && !n && !a && /* @__PURE__ */ E(
4740
+ !o && i && !n && !a && /* @__PURE__ */ $(
4741
4741
  pt,
4742
4742
  {
4743
4743
  component: "li",
4744
4744
  className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
4745
4745
  sx: { py: 1.5, justifyContent: "center", pointerEvents: "none", cursor: "default" },
4746
- children: /* @__PURE__ */ E(Ot, { variant: "caption", color: "text.disabled", children: "没有更多数据了" })
4746
+ children: /* @__PURE__ */ $(Ot, { variant: "caption", color: "text.disabled", children: "没有更多数据了" })
4747
4747
  }
4748
4748
  )
4749
4749
  ] });
@@ -4757,64 +4757,89 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4757
4757
  form: a,
4758
4758
  schema: l
4759
4759
  }) => {
4760
- const { onChange: u, multiple: d = !1, loading: m, ...y } = i ?? {}, p = l?.ui?.remoteConfig, b = De(p);
4760
+ const { onChange: u, multiple: d = !1, loading: m, ...y } = i ?? {}, p = l?.ui?.remoteConfig, b = Ne(p);
4761
4761
  b.current = p;
4762
- const [h, f] = Ne([]), [g, C] = Ne(!1), [k, M] = Ne(!1), [$, S] = Ne(""), [T, D] = Ne(!1), [G, z] = Ne(1), [F, I] = Ne(!0), c = p ? h : o, w = p?.pageSize ?? 20;
4763
- je(() => {
4762
+ const [h, f] = De([]), [g, T] = De(!1), [k, M] = De(!1), [R, S] = De(""), [w, V] = De(!1), [G, W] = De(1), [F, I] = De(!0), c = p ? h : o, E = p?.pageSize ?? 20, C = Ne([]);
4763
+ _e(() => {
4764
+ if (!p) return;
4765
+ const j = Array.isArray(e.value) ? e.value : e.value ? [e.value] : [];
4766
+ if (j.length === 0) return;
4767
+ const x = h.filter((D) => j.includes(D.value)), O = [...C.current];
4768
+ let z = !1;
4769
+ x.forEach((D) => {
4770
+ O.some((L) => L.value == D.value) || (O.push(D), z = !0);
4771
+ }), z && (C.current = O);
4772
+ }, [e.value, h, p]), _e(() => {
4764
4773
  const j = b.current;
4765
4774
  if (!j?.fetchById || !e.value) return;
4766
4775
  const O = (Array.isArray(e.value) ? e.value : [e.value]).filter(
4767
4776
  // 使用宽松比较 (==) 以兼容 string/number 差异
4768
4777
  // eslint-disable-next-line eqeqeq
4769
- (R) => !h.some((V) => V.value == R)
4778
+ (z) => !h.some((D) => D.value == z)
4770
4779
  );
4771
- O.length !== 0 && O.forEach(async (R) => {
4780
+ O.length !== 0 && O.forEach(async (z) => {
4772
4781
  try {
4773
- const V = await j.fetchById(R);
4774
- V && f((L) => L.some((q) => q.value == V.value) ? L : [...L, V]);
4782
+ const D = await j.fetchById(z);
4783
+ D && (f((L) => L.some((K) => K.value == D.value) ? L : [...L, D]), C.current.push(D));
4775
4784
  } catch {
4776
4785
  }
4777
4786
  });
4778
4787
  }, [e.value, h]);
4779
- const x = ho(
4780
- async (j, W, O = !1) => {
4788
+ const _ = ho(
4789
+ async (j, x, O = !1) => {
4781
4790
  if (p) {
4782
- O || (z(1), I(!0)), O ? M(!0) : C(!0), p.onLoadingChange?.(!0);
4791
+ O || (W(1), I(!0)), O ? M(!0) : T(!0), p.onLoadingChange?.(!0);
4783
4792
  try {
4784
- const R = await p.fetchOptions(j, W, w);
4785
- f(O ? (V) => {
4786
- const L = R.data.filter(
4787
- (q) => !V.some((X) => X.value === q.value)
4788
- );
4789
- return [...V, ...L];
4790
- } : R.data), I(R.hasMore);
4793
+ const z = await p.fetchOptions(j, x, E);
4794
+ if (O)
4795
+ f((D) => {
4796
+ const L = z.data.filter(
4797
+ (K) => !D.some((q) => q.value === K.value)
4798
+ );
4799
+ return [...D, ...L];
4800
+ });
4801
+ else {
4802
+ const D = [...z.data], L = Array.isArray(e.value) ? e.value : e.value ? [e.value] : [];
4803
+ C.current.filter(
4804
+ // eslint-disable-next-line eqeqeq
4805
+ (q) => L.includes(q.value)
4806
+ ).forEach((q) => {
4807
+ D.some((H) => H.value == q.value) || D.push(q);
4808
+ }), f(D);
4809
+ }
4810
+ I(z.hasMore);
4791
4811
  } catch {
4792
4812
  } finally {
4793
- O ? M(!1) : C(!1), p.onLoadingChange?.(!1);
4813
+ O ? M(!1) : T(!1), p.onLoadingChange?.(!1);
4794
4814
  }
4795
4815
  }
4796
4816
  },
4797
- [p, w]
4798
- ), P = De(null);
4799
- je(() => {
4800
- T && p && x($, 1, !1);
4801
- }, [T]);
4802
- const _ = (j, W, O) => {
4803
- S(W), p && (P.current && clearTimeout(P.current), (O === "input" || O === "clear") && (P.current = setTimeout(() => {
4804
- x(W, 1, !1);
4805
- }, p.debounceTimeout ?? 500)));
4817
+ [p, E, e.value]
4818
+ // 添加 field.value 依赖,确保 fetchOptions 内部能获取最新 value
4819
+ ), P = Ne(null);
4820
+ _e(() => {
4821
+ if (w && p) {
4822
+ const j = h.some((O) => O.label === R && e.value === O.value);
4823
+ let x = R;
4824
+ !d && e.value && j && (x = ""), _(x, 1, !1);
4825
+ }
4826
+ }, [w]);
4827
+ const U = (j, x, O) => {
4828
+ O === "reset" && w || (S(x), p && (P.current && clearTimeout(P.current), (O === "input" || O === "clear") && (P.current = setTimeout(() => {
4829
+ _(x, 1, !1);
4830
+ }, p.debounceTimeout ?? 500))));
4806
4831
  };
4807
- je(() => () => {
4832
+ _e(() => () => {
4808
4833
  P.current && clearTimeout(P.current);
4809
4834
  }, []);
4810
- const U = (j) => {
4811
- const W = j.currentTarget;
4812
- if (!g && !k && F && W.scrollTop + W.clientHeight >= W.scrollHeight - 20) {
4835
+ const oe = (j) => {
4836
+ const x = j.currentTarget;
4837
+ if (!g && !k && F && x.scrollTop + x.clientHeight >= x.scrollHeight - 20) {
4813
4838
  const O = G + 1;
4814
- z(O), x($, O, !0);
4839
+ W(O), _(R, O, !0);
4815
4840
  }
4816
4841
  };
4817
- return /* @__PURE__ */ E(
4842
+ return /* @__PURE__ */ $(
4818
4843
  at,
4819
4844
  {
4820
4845
  fullWidth: !0,
@@ -4823,30 +4848,30 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4823
4848
  disabled: y?.disabled,
4824
4849
  size: "small",
4825
4850
  sx: ke,
4826
- children: /* @__PURE__ */ E(
4851
+ children: /* @__PURE__ */ $(
4827
4852
  wi,
4828
4853
  {
4829
4854
  multiple: d,
4830
4855
  disableCloseOnSelect: d,
4831
- open: T,
4832
- onOpen: () => D(!0),
4833
- onClose: () => D(!1),
4834
- inputValue: p ? $ : void 0,
4835
- onInputChange: p ? _ : void 0,
4856
+ open: w,
4857
+ onOpen: () => V(!0),
4858
+ onClose: () => V(!1),
4859
+ inputValue: p ? R : void 0,
4860
+ onInputChange: p ? U : void 0,
4836
4861
  options: c,
4837
4862
  loading: g || m,
4838
4863
  filterOptions: p ? (j) => j : void 0,
4839
4864
  value: d ? c.filter((j) => (e.value ?? []).includes(j.value)) : c.find((j) => j.value === e.value) ?? null,
4840
- onChange: (j, W) => {
4841
- const O = d ? W.map((R) => R.value) : W?.value ?? null;
4842
- e.onChange(O), typeof u == "function" && u(j, W), a?.trigger(e.name);
4865
+ onChange: (j, x) => {
4866
+ const O = d ? x.map((z) => z.value) : x?.value ?? null;
4867
+ e.onChange(O), typeof u == "function" && u(j, x), a?.trigger(e.name);
4843
4868
  },
4844
4869
  slots: {
4845
4870
  listbox: p ? Ql : void 0
4846
4871
  },
4847
4872
  slotProps: {
4848
4873
  listbox: {
4849
- onScroll: p ? U : void 0,
4874
+ onScroll: p ? oe : void 0,
4850
4875
  style: { maxHeight: 260 },
4851
4876
  // 传递自定义属性给 ListboxComponent (仅在远程模式下传递)
4852
4877
  ...p ? {
@@ -4877,14 +4902,14 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4877
4902
  },
4878
4903
  getOptionLabel: (j) => j?.label ?? "",
4879
4904
  getOptionKey: (j) => {
4880
- const W = j?.key ?? j?.value;
4881
- return typeof W == "string" || typeof W == "number" ? W : String(W);
4905
+ const x = j?.key ?? j?.value;
4906
+ return typeof x == "string" || typeof x == "number" ? x : String(x);
4882
4907
  },
4883
- isOptionEqualToValue: (j, W) => j?.value === W?.value,
4908
+ isOptionEqualToValue: (j, x) => j?.value === x?.value,
4884
4909
  size: "small",
4885
4910
  disabled: y?.disabled,
4886
- renderOption: (j, W) => /* @__PURE__ */ hi("li", { ...j, key: W.key ?? W.value }, W.listLabel ?? W.label),
4887
- renderInput: (j) => /* @__PURE__ */ E(
4911
+ renderOption: (j, x) => /* @__PURE__ */ hi("li", { ...j, key: x.key ?? x.value }, x.listLabel ?? x.label),
4912
+ renderInput: (j) => /* @__PURE__ */ $(
4888
4913
  lt,
4889
4914
  {
4890
4915
  ...j,
@@ -4902,7 +4927,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4902
4927
  input: {
4903
4928
  ...j.InputProps,
4904
4929
  endAdornment: /* @__PURE__ */ fe(Dr, { children: [
4905
- g || m ? /* @__PURE__ */ E(bo, { color: "inherit", size: 20 }) : null,
4930
+ g || m ? /* @__PURE__ */ $(bo, { color: "inherit", size: 20 }) : null,
4906
4931
  j.InputProps.endAdornment
4907
4932
  ] })
4908
4933
  }
@@ -4914,7 +4939,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4914
4939
  }
4915
4940
  );
4916
4941
  }, Se = (e, t) => t ? /* @__PURE__ */ fe("span", { style: { display: "flex", alignItems: "center" }, children: [
4917
- /* @__PURE__ */ E(
4942
+ /* @__PURE__ */ $(
4918
4943
  "span",
4919
4944
  {
4920
4945
  style: {
@@ -4930,10 +4955,10 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4930
4955
  ),
4931
4956
  e
4932
4957
  ] }) : e, Fn = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ fe(at, { error: r, required: o?.required, component: "fieldset", children: [
4933
- /* @__PURE__ */ E(
4958
+ /* @__PURE__ */ $(
4934
4959
  Vr,
4935
4960
  {
4936
- control: /* @__PURE__ */ E(
4961
+ control: /* @__PURE__ */ $(
4937
4962
  Ei,
4938
4963
  {
4939
4964
  checked: e.value ?? !1,
@@ -4945,7 +4970,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4945
4970
  label: Se(t, o?.required)
4946
4971
  }
4947
4972
  ),
4948
- n && /* @__PURE__ */ E(zr, { children: n })
4973
+ n && /* @__PURE__ */ $(zr, { children: n })
4949
4974
  ] }), qn = ({
4950
4975
  field: e,
4951
4976
  label: t,
@@ -4964,7 +4989,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4964
4989
  form: i,
4965
4990
  values: a,
4966
4991
  fieldProps: d
4967
- }) : /* @__PURE__ */ E(Dr, { children: l }) : u ? /* @__PURE__ */ E(
4992
+ }) : /* @__PURE__ */ $(Dr, { children: l }) : u ? /* @__PURE__ */ $(
4968
4993
  u,
4969
4994
  {
4970
4995
  field: e,
@@ -4975,7 +5000,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4975
5000
  values: a,
4976
5001
  ...d
4977
5002
  }
4978
- ) : /* @__PURE__ */ E(
5003
+ ) : /* @__PURE__ */ $(
4979
5004
  lt,
4980
5005
  {
4981
5006
  ...e,
@@ -4994,7 +5019,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4994
5019
  error: r,
4995
5020
  helperText: n,
4996
5021
  fieldProps: o
4997
- }) => /* @__PURE__ */ E(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ E(
5022
+ }) => /* @__PURE__ */ $(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ $(
4998
5023
  Pi,
4999
5024
  {
5000
5025
  value: e.value ? vo(e.value) : null,
@@ -5021,7 +5046,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
5021
5046
  helperText: n,
5022
5047
  fieldProps: o,
5023
5048
  form: i
5024
- }) => /* @__PURE__ */ E(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ E(
5049
+ }) => /* @__PURE__ */ $(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ $(
5025
5050
  Ii,
5026
5051
  {
5027
5052
  value: e.value ? vo(e.value) : null,
@@ -5058,7 +5083,7 @@ const ec = (e) => {
5058
5083
  fontSize: r,
5059
5084
  classes: n
5060
5085
  } = e, o = {
5061
- root: ["root", t !== "inherit" && `color${Z(t)}`, `fontSize${Z(r)}`]
5086
+ root: ["root", t !== "inherit" && `color${J(t)}`, `fontSize${J(r)}`]
5062
5087
  };
5063
5088
  return Ae(o, Zl, n);
5064
5089
  }, tc = pe("svg", {
@@ -5068,7 +5093,7 @@ const ec = (e) => {
5068
5093
  const {
5069
5094
  ownerState: r
5070
5095
  } = e;
5071
- return [t.root, r.color !== "inherit" && t[`color${Z(r.color)}`], t[`fontSize${Z(r.fontSize)}`]];
5096
+ return [t.root, r.color !== "inherit" && t[`color${J(r.color)}`], t[`fontSize${J(r.fontSize)}`]];
5072
5097
  }
5073
5098
  })(Ee(({
5074
5099
  theme: e
@@ -5182,10 +5207,10 @@ const ec = (e) => {
5182
5207
  hasSvgAsChild: h
5183
5208
  }, g = {};
5184
5209
  m || (g.viewBox = p);
5185
- const C = ec(f);
5210
+ const T = ec(f);
5186
5211
  return /* @__PURE__ */ fe(tc, {
5187
5212
  as: l,
5188
- className: ue(C.root, i),
5213
+ className: ue(T.root, i),
5189
5214
  focusable: "false",
5190
5215
  color: d,
5191
5216
  "aria-hidden": y ? void 0 : !0,
@@ -5195,7 +5220,7 @@ const ec = (e) => {
5195
5220
  ...b,
5196
5221
  ...h && o.props,
5197
5222
  ownerState: f,
5198
- children: [h ? o.props.children : o, y ? /* @__PURE__ */ E("title", {
5223
+ children: [h ? o.props.children : o, y ? /* @__PURE__ */ $("title", {
5199
5224
  children: y
5200
5225
  }) : null]
5201
5226
  });
@@ -5275,7 +5300,7 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
5275
5300
  qt.muiName = "SvgIcon";
5276
5301
  function Kr(e, t) {
5277
5302
  function r(n, o) {
5278
- return /* @__PURE__ */ E(qt, {
5303
+ return /* @__PURE__ */ $(qt, {
5279
5304
  "data-testid": process.env.NODE_ENV !== "production" ? `${t}Icon` : void 0,
5280
5305
  ref: o,
5281
5306
  ...n,
@@ -5316,11 +5341,11 @@ function Yn(...e) {
5316
5341
  t.current && (t.current(), t.current = void 0), n != null && (t.current = r(n));
5317
5342
  }, e);
5318
5343
  }
5319
- const rc = Kr(/* @__PURE__ */ E("path", {
5344
+ const rc = Kr(/* @__PURE__ */ $("path", {
5320
5345
  d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
5321
- }), "Add"), nc = Kr(/* @__PURE__ */ E("path", {
5346
+ }), "Add"), nc = Kr(/* @__PURE__ */ $("path", {
5322
5347
  d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
5323
- }), "ContentCopy"), oc = Kr(/* @__PURE__ */ E("path", {
5348
+ }), "ContentCopy"), oc = Kr(/* @__PURE__ */ $("path", {
5324
5349
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
5325
5350
  }), "Delete"), ic = Pe("MuiBox", ["root"]), sc = Ho(), Gt = za({
5326
5351
  themeId: Ur,
@@ -5686,10 +5711,10 @@ function ei(e) {
5686
5711
  clearTimeout(f);
5687
5712
  };
5688
5713
  }
5689
- }, [u, l, d]), /* @__PURE__ */ E("span", {
5714
+ }, [u, l, d]), /* @__PURE__ */ $("span", {
5690
5715
  className: p,
5691
5716
  style: b,
5692
- children: /* @__PURE__ */ E("span", {
5717
+ children: /* @__PURE__ */ $("span", {
5693
5718
  className: h
5694
5719
  })
5695
5720
  });
@@ -5839,15 +5864,15 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5839
5864
  B.useEffect(() => {
5840
5865
  y.current && (y.current(), y.current = null);
5841
5866
  }, [u]);
5842
- const p = B.useRef(!1), b = Tc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback(($) => {
5867
+ const p = B.useRef(!1), b = Tc(), h = B.useRef(null), f = B.useRef(null), g = B.useCallback((R) => {
5843
5868
  const {
5844
5869
  pulsate: S,
5845
- rippleX: T,
5846
- rippleY: D,
5870
+ rippleX: w,
5871
+ rippleY: V,
5847
5872
  rippleSize: G,
5848
- cb: z
5849
- } = $;
5850
- d((F) => [...F, /* @__PURE__ */ E(kc, {
5873
+ cb: W
5874
+ } = R;
5875
+ d((F) => [...F, /* @__PURE__ */ $(kc, {
5851
5876
  classes: {
5852
5877
  ripple: ue(i.ripple, be.ripple),
5853
5878
  rippleVisible: ue(i.rippleVisible, be.rippleVisible),
@@ -5858,84 +5883,84 @@ const be = Pe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5858
5883
  },
5859
5884
  timeout: Ir,
5860
5885
  pulsate: S,
5861
- rippleX: T,
5862
- rippleY: D,
5886
+ rippleX: w,
5887
+ rippleY: V,
5863
5888
  rippleSize: G
5864
- }, m.current)]), m.current += 1, y.current = z;
5865
- }, [i]), C = B.useCallback(($ = {}, S = {}, T = () => {
5889
+ }, m.current)]), m.current += 1, y.current = W;
5890
+ }, [i]), T = B.useCallback((R = {}, S = {}, w = () => {
5866
5891
  }) => {
5867
5892
  const {
5868
- pulsate: D = !1,
5893
+ pulsate: V = !1,
5869
5894
  center: G = o || S.pulsate,
5870
- fakeElement: z = !1
5895
+ fakeElement: W = !1
5871
5896
  // For test purposes
5872
5897
  } = S;
5873
- if ($?.type === "mousedown" && p.current) {
5898
+ if (R?.type === "mousedown" && p.current) {
5874
5899
  p.current = !1;
5875
5900
  return;
5876
5901
  }
5877
- $?.type === "touchstart" && (p.current = !0);
5878
- const F = z ? null : f.current, I = F ? F.getBoundingClientRect() : {
5902
+ R?.type === "touchstart" && (p.current = !0);
5903
+ const F = W ? null : f.current, I = F ? F.getBoundingClientRect() : {
5879
5904
  width: 0,
5880
5905
  height: 0,
5881
5906
  left: 0,
5882
5907
  top: 0
5883
5908
  };
5884
- let c, w, x;
5885
- if (G || $ === void 0 || $.clientX === 0 && $.clientY === 0 || !$.clientX && !$.touches)
5886
- c = Math.round(I.width / 2), w = Math.round(I.height / 2);
5909
+ let c, E, C;
5910
+ if (G || R === void 0 || R.clientX === 0 && R.clientY === 0 || !R.clientX && !R.touches)
5911
+ c = Math.round(I.width / 2), E = Math.round(I.height / 2);
5887
5912
  else {
5888
5913
  const {
5889
- clientX: P,
5890
- clientY: _
5891
- } = $.touches && $.touches.length > 0 ? $.touches[0] : $;
5892
- c = Math.round(P - I.left), w = Math.round(_ - I.top);
5914
+ clientX: _,
5915
+ clientY: P
5916
+ } = R.touches && R.touches.length > 0 ? R.touches[0] : R;
5917
+ c = Math.round(_ - I.left), E = Math.round(P - I.top);
5893
5918
  }
5894
5919
  if (G)
5895
- x = Math.sqrt((2 * I.width ** 2 + I.height ** 2) / 3), x % 2 === 0 && (x += 1);
5920
+ C = Math.sqrt((2 * I.width ** 2 + I.height ** 2) / 3), C % 2 === 0 && (C += 1);
5896
5921
  else {
5897
- const P = Math.max(Math.abs((F ? F.clientWidth : 0) - c), c) * 2 + 2, _ = Math.max(Math.abs((F ? F.clientHeight : 0) - w), w) * 2 + 2;
5898
- x = Math.sqrt(P ** 2 + _ ** 2);
5922
+ const _ = Math.max(Math.abs((F ? F.clientWidth : 0) - c), c) * 2 + 2, P = Math.max(Math.abs((F ? F.clientHeight : 0) - E), E) * 2 + 2;
5923
+ C = Math.sqrt(_ ** 2 + P ** 2);
5899
5924
  }
5900
- $?.touches ? h.current === null && (h.current = () => {
5925
+ R?.touches ? h.current === null && (h.current = () => {
5901
5926
  g({
5902
- pulsate: D,
5927
+ pulsate: V,
5903
5928
  rippleX: c,
5904
- rippleY: w,
5905
- rippleSize: x,
5906
- cb: T
5929
+ rippleY: E,
5930
+ rippleSize: C,
5931
+ cb: w
5907
5932
  });
5908
5933
  }, b.start(wc, () => {
5909
5934
  h.current && (h.current(), h.current = null);
5910
5935
  })) : g({
5911
- pulsate: D,
5936
+ pulsate: V,
5912
5937
  rippleX: c,
5913
- rippleY: w,
5914
- rippleSize: x,
5915
- cb: T
5938
+ rippleY: E,
5939
+ rippleSize: C,
5940
+ cb: w
5916
5941
  });
5917
5942
  }, [o, g, b]), k = B.useCallback(() => {
5918
- C({}, {
5943
+ T({}, {
5919
5944
  pulsate: !0
5920
5945
  });
5921
- }, [C]), M = B.useCallback(($, S) => {
5922
- if (b.clear(), $?.type === "touchend" && h.current) {
5946
+ }, [T]), M = B.useCallback((R, S) => {
5947
+ if (b.clear(), R?.type === "touchend" && h.current) {
5923
5948
  h.current(), h.current = null, b.start(0, () => {
5924
- M($, S);
5949
+ M(R, S);
5925
5950
  });
5926
5951
  return;
5927
5952
  }
5928
- h.current = null, d((T) => T.length > 0 ? T.slice(1) : T), y.current = S;
5953
+ h.current = null, d((w) => w.length > 0 ? w.slice(1) : w), y.current = S;
5929
5954
  }, [b]);
5930
5955
  return B.useImperativeHandle(r, () => ({
5931
5956
  pulsate: k,
5932
- start: C,
5957
+ start: T,
5933
5958
  stop: M
5934
- }), [k, C, M]), /* @__PURE__ */ E(Rc, {
5959
+ }), [k, T, M]), /* @__PURE__ */ $(Rc, {
5935
5960
  className: ue(be.root, i.root, a),
5936
5961
  ref: f,
5937
5962
  ...l,
5938
- children: /* @__PURE__ */ E(Qr, {
5963
+ children: /* @__PURE__ */ $(Qr, {
5939
5964
  component: null,
5940
5965
  exit: !0,
5941
5966
  children: u
@@ -6030,60 +6055,60 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6030
6055
  LinkComponent: h = "a",
6031
6056
  onBlur: f,
6032
6057
  onClick: g,
6033
- onContextMenu: C,
6058
+ onContextMenu: T,
6034
6059
  onDragLeave: k,
6035
6060
  onFocus: M,
6036
- onFocusVisible: $,
6061
+ onFocusVisible: R,
6037
6062
  onKeyDown: S,
6038
- onKeyUp: T,
6039
- onMouseDown: D,
6063
+ onKeyUp: w,
6064
+ onMouseDown: V,
6040
6065
  onMouseLeave: G,
6041
- onMouseUp: z,
6066
+ onMouseUp: W,
6042
6067
  onTouchEnd: F,
6043
6068
  onTouchMove: I,
6044
6069
  onTouchStart: c,
6045
- tabIndex: w = 0,
6046
- TouchRippleProps: x,
6047
- touchRippleRef: P,
6048
- type: _,
6070
+ tabIndex: E = 0,
6071
+ TouchRippleProps: C,
6072
+ touchRippleRef: _,
6073
+ type: P,
6049
6074
  ...U
6050
- } = n, j = B.useRef(null), W = fc(), O = Yn(W.ref, P), [R, V] = B.useState(!1);
6051
- d && R && V(!1), B.useImperativeHandle(o, () => ({
6075
+ } = n, oe = B.useRef(null), j = fc(), x = Yn(j.ref, _), [O, z] = B.useState(!1);
6076
+ d && O && z(!1), B.useImperativeHandle(o, () => ({
6052
6077
  focusVisible: () => {
6053
- V(!0), j.current.focus();
6078
+ z(!0), oe.current.focus();
6054
6079
  }
6055
6080
  }), []);
6056
- const L = W.shouldMount && !m && !d;
6081
+ const D = j.shouldMount && !m && !d;
6057
6082
  B.useEffect(() => {
6058
- R && p && !m && W.pulsate();
6059
- }, [m, p, R, W]);
6060
- const q = Me(W, "start", D, y), X = Me(W, "stop", C, y), H = Me(W, "stop", k, y), K = Me(W, "stop", z, y), Q = Me(W, "stop", (Y) => {
6061
- R && Y.preventDefault(), G && G(Y);
6062
- }, y), ee = Me(W, "start", c, y), J = Me(W, "stop", F, y), me = Me(W, "stop", I, y), N = Me(W, "stop", (Y) => {
6063
- Hn(Y.target) || V(!1), f && f(Y);
6083
+ O && p && !m && j.pulsate();
6084
+ }, [m, p, O, j]);
6085
+ const L = Me(j, "start", V, y), K = Me(j, "stop", T, y), q = Me(j, "stop", k, y), H = Me(j, "stop", W, y), X = Me(j, "stop", (Y) => {
6086
+ O && Y.preventDefault(), G && G(Y);
6087
+ }, y), Z = Me(j, "start", c, y), Q = Me(j, "stop", F, y), me = Me(j, "stop", I, y), N = Me(j, "stop", (Y) => {
6088
+ Hn(Y.target) || z(!1), f && f(Y);
6064
6089
  }, !1), ye = Dt((Y) => {
6065
- j.current || (j.current = Y.currentTarget), Hn(Y.target) && (V(!0), $ && $(Y)), M && M(Y);
6066
- }), _e = () => {
6067
- const Y = j.current;
6090
+ oe.current || (oe.current = Y.currentTarget), Hn(Y.target) && (z(!0), R && R(Y)), M && M(Y);
6091
+ }), Be = () => {
6092
+ const Y = oe.current;
6068
6093
  return u && u !== "button" && !(Y.tagName === "A" && Y.href);
6069
6094
  }, wt = Dt((Y) => {
6070
- p && !Y.repeat && R && Y.key === " " && W.stop(Y, () => {
6071
- W.start(Y);
6072
- }), Y.target === Y.currentTarget && _e() && Y.key === " " && Y.preventDefault(), S && S(Y), Y.target === Y.currentTarget && _e() && Y.key === "Enter" && !d && (Y.preventDefault(), g && g(Y));
6095
+ p && !Y.repeat && O && Y.key === " " && j.stop(Y, () => {
6096
+ j.start(Y);
6097
+ }), Y.target === Y.currentTarget && Be() && Y.key === " " && Y.preventDefault(), S && S(Y), Y.target === Y.currentTarget && Be() && Y.key === "Enter" && !d && (Y.preventDefault(), g && g(Y));
6073
6098
  }), fi = Dt((Y) => {
6074
- p && Y.key === " " && R && !Y.defaultPrevented && W.stop(Y, () => {
6075
- W.pulsate(Y);
6076
- }), T && T(Y), g && Y.target === Y.currentTarget && _e() && Y.key === " " && !Y.defaultPrevented && g(Y);
6099
+ p && Y.key === " " && O && !Y.defaultPrevented && j.stop(Y, () => {
6100
+ j.pulsate(Y);
6101
+ }), w && w(Y), g && Y.target === Y.currentTarget && Be() && Y.key === " " && !Y.defaultPrevented && g(Y);
6077
6102
  });
6078
6103
  let Et = u;
6079
6104
  Et === "button" && (U.href || U.to) && (Et = h);
6080
6105
  const ut = {};
6081
6106
  if (Et === "button") {
6082
6107
  const Y = !!U.formAction;
6083
- ut.type = _ === void 0 && !Y ? "button" : _, ut.disabled = d;
6108
+ ut.type = P === void 0 && !Y ? "button" : P, ut.disabled = d;
6084
6109
  } else
6085
6110
  !U.href && !U.to && (ut.role = "button"), d && (ut["aria-disabled"] = d);
6086
- const di = Yn(r, j), rn = {
6111
+ const di = Yn(r, oe), rn = {
6087
6112
  ...n,
6088
6113
  centerRipple: i,
6089
6114
  component: u,
@@ -6091,8 +6116,8 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6091
6116
  disableRipple: m,
6092
6117
  disableTouchRipple: y,
6093
6118
  focusRipple: p,
6094
- tabIndex: w,
6095
- focusVisible: R
6119
+ tabIndex: E,
6120
+ focusVisible: O
6096
6121
  }, pi = Ic(rn);
6097
6122
  return /* @__PURE__ */ fe(Mc, {
6098
6123
  as: Et,
@@ -6100,26 +6125,26 @@ const Pc = Pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6100
6125
  ownerState: rn,
6101
6126
  onBlur: N,
6102
6127
  onClick: g,
6103
- onContextMenu: X,
6128
+ onContextMenu: K,
6104
6129
  onFocus: ye,
6105
6130
  onKeyDown: wt,
6106
6131
  onKeyUp: fi,
6107
- onMouseDown: q,
6108
- onMouseLeave: Q,
6109
- onMouseUp: K,
6110
- onDragLeave: H,
6111
- onTouchEnd: J,
6132
+ onMouseDown: L,
6133
+ onMouseLeave: X,
6134
+ onMouseUp: H,
6135
+ onDragLeave: q,
6136
+ onTouchEnd: Q,
6112
6137
  onTouchMove: me,
6113
- onTouchStart: ee,
6138
+ onTouchStart: Z,
6114
6139
  ref: di,
6115
- tabIndex: d ? -1 : w,
6116
- type: _,
6140
+ tabIndex: d ? -1 : E,
6141
+ type: P,
6117
6142
  ...ut,
6118
6143
  ...U,
6119
- children: [a, L ? /* @__PURE__ */ E(ti, {
6120
- ref: O,
6144
+ children: [a, D ? /* @__PURE__ */ $(ti, {
6145
+ ref: x,
6121
6146
  center: i,
6122
- ...x
6147
+ ...C
6123
6148
  }) : null]
6124
6149
  });
6125
6150
  });
@@ -6340,10 +6365,10 @@ const Te = 44, Mr = St`
6340
6365
  color: n,
6341
6366
  disableShrink: o
6342
6367
  } = e, i = {
6343
- root: ["root", r, `color${Z(n)}`],
6368
+ root: ["root", r, `color${J(n)}`],
6344
6369
  svg: ["svg"],
6345
6370
  track: ["track"],
6346
- circle: ["circle", `circle${Z(r)}`, o && "circleDisableShrink"]
6371
+ circle: ["circle", `circle${J(r)}`, o && "circleDisableShrink"]
6347
6372
  };
6348
6373
  return Ae(i, Bc, t);
6349
6374
  }, zc = pe("span", {
@@ -6353,7 +6378,7 @@ const Te = 44, Mr = St`
6353
6378
  const {
6354
6379
  ownerState: r
6355
6380
  } = e;
6356
- return [t.root, t[r.variant], t[`color${Z(r.color)}`]];
6381
+ return [t.root, t[r.variant], t[`color${J(r.color)}`]];
6357
6382
  }
6358
6383
  })(Ee(({
6359
6384
  theme: e
@@ -6394,7 +6419,7 @@ const Te = 44, Mr = St`
6394
6419
  const {
6395
6420
  ownerState: r
6396
6421
  } = e;
6397
- return [t.circle, t[`circle${Z(r.variant)}`], r.disableShrink && t.circleDisableShrink];
6422
+ return [t.circle, t[`circle${J(r.variant)}`], r.disableShrink && t.circleDisableShrink];
6398
6423
  }
6399
6424
  })(Ee(({
6400
6425
  theme: e
@@ -6458,17 +6483,17 @@ const Te = 44, Mr = St`
6458
6483
  value: y,
6459
6484
  variant: p,
6460
6485
  enableTrackSlot: l
6461
- }, f = Vc(h), g = {}, C = {}, k = {};
6486
+ }, f = Vc(h), g = {}, T = {}, k = {};
6462
6487
  if (p === "determinate") {
6463
6488
  const M = 2 * Math.PI * ((Te - m) / 2);
6464
- g.strokeDasharray = M.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * M).toFixed(3)}px`, C.transform = "rotate(-90deg)";
6489
+ g.strokeDasharray = M.toFixed(3), k["aria-valuenow"] = Math.round(y), g.strokeDashoffset = `${((100 - y) / 100 * M).toFixed(3)}px`, T.transform = "rotate(-90deg)";
6465
6490
  }
6466
- return /* @__PURE__ */ E(zc, {
6491
+ return /* @__PURE__ */ $(zc, {
6467
6492
  className: ue(f.root, o),
6468
6493
  style: {
6469
6494
  width: u,
6470
6495
  height: u,
6471
- ...C,
6496
+ ...T,
6472
6497
  ...d
6473
6498
  },
6474
6499
  ownerState: h,
@@ -6480,7 +6505,7 @@ const Te = 44, Mr = St`
6480
6505
  className: f.svg,
6481
6506
  ownerState: h,
6482
6507
  viewBox: `${Te / 2} ${Te / 2} ${Te} ${Te}`,
6483
- children: [l ? /* @__PURE__ */ E(Fc, {
6508
+ children: [l ? /* @__PURE__ */ $(Fc, {
6484
6509
  className: f.track,
6485
6510
  ownerState: h,
6486
6511
  cx: Te,
@@ -6489,7 +6514,7 @@ const Te = 44, Mr = St`
6489
6514
  fill: "none",
6490
6515
  strokeWidth: m,
6491
6516
  "aria-hidden": "true"
6492
- }) : null, /* @__PURE__ */ E(Lc, {
6517
+ }) : null, /* @__PURE__ */ $(Lc, {
6493
6518
  className: f.circle,
6494
6519
  style: g,
6495
6520
  ownerState: h,
@@ -6585,9 +6610,9 @@ const Gc = (e) => {
6585
6610
  loadingPosition: l,
6586
6611
  classes: u
6587
6612
  } = e, d = {
6588
- root: ["root", a && "loading", i, `${i}${Z(t)}`, `size${Z(o)}`, `${i}Size${Z(o)}`, `color${Z(t)}`, r && "disableElevation", n && "fullWidth", a && `loadingPosition${Z(l)}`],
6589
- startIcon: ["icon", "startIcon", `iconSize${Z(o)}`],
6590
- endIcon: ["icon", "endIcon", `iconSize${Z(o)}`],
6613
+ root: ["root", a && "loading", i, `${i}${J(t)}`, `size${J(o)}`, `${i}Size${J(o)}`, `color${J(t)}`, r && "disableElevation", n && "fullWidth", a && `loadingPosition${J(l)}`],
6614
+ startIcon: ["icon", "startIcon", `iconSize${J(o)}`],
6615
+ endIcon: ["icon", "endIcon", `iconSize${J(o)}`],
6591
6616
  loadingIndicator: ["loadingIndicator"],
6592
6617
  loadingWrapper: ["loadingWrapper"]
6593
6618
  }, m = Ae(d, qc, u);
@@ -6631,7 +6656,7 @@ const Gc = (e) => {
6631
6656
  const {
6632
6657
  ownerState: r
6633
6658
  } = e;
6634
- return [t.root, t[r.variant], t[`${r.variant}${Z(r.color)}`], t[`size${Z(r.size)}`], t[`${r.variant}Size${Z(r.size)}`], r.color === "inherit" && t.colorInherit, r.disableElevation && t.disableElevation, r.fullWidth && t.fullWidth, r.loading && t.loading];
6659
+ return [t.root, t[r.variant], t[`${r.variant}${J(r.color)}`], t[`size${J(r.size)}`], t[`${r.variant}Size${J(r.size)}`], r.color === "inherit" && t.colorInherit, r.disableElevation && t.disableElevation, r.fullWidth && t.fullWidth, r.loading && t.loading];
6635
6660
  }
6636
6661
  })(Ee(({
6637
6662
  theme: e
@@ -6838,7 +6863,7 @@ const Gc = (e) => {
6838
6863
  const {
6839
6864
  ownerState: r
6840
6865
  } = e;
6841
- return [t.startIcon, r.loading && t.startIconLoadingStart, t[`iconSize${Z(r.size)}`]];
6866
+ return [t.startIcon, r.loading && t.startIconLoadingStart, t[`iconSize${J(r.size)}`]];
6842
6867
  }
6843
6868
  })(({
6844
6869
  theme: e
@@ -6881,7 +6906,7 @@ const Gc = (e) => {
6881
6906
  const {
6882
6907
  ownerState: r
6883
6908
  } = e;
6884
- return [t.endIcon, r.loading && t.endIconLoadingEnd, t[`iconSize${Z(r.size)}`]];
6909
+ return [t.endIcon, r.loading && t.endIconLoadingEnd, t[`iconSize${J(r.size)}`]];
6885
6910
  }
6886
6911
  })(({
6887
6912
  theme: e
@@ -7029,16 +7054,16 @@ const Gc = (e) => {
7029
7054
  endIcon: h,
7030
7055
  focusVisibleClassName: f,
7031
7056
  fullWidth: g = !1,
7032
- id: C,
7057
+ id: T,
7033
7058
  loading: k = null,
7034
7059
  loadingIndicator: M,
7035
- loadingPosition: $ = "center",
7060
+ loadingPosition: R = "center",
7036
7061
  size: S = "medium",
7037
- startIcon: T,
7038
- type: D,
7062
+ startIcon: w,
7063
+ type: V,
7039
7064
  variant: G = "text",
7040
- ...z
7041
- } = a, F = Wo(C), I = M ?? /* @__PURE__ */ E(en, {
7065
+ ...W
7066
+ } = a, F = Wo(T), I = M ?? /* @__PURE__ */ $(en, {
7042
7067
  "aria-labelledby": F,
7043
7068
  color: "inherit",
7044
7069
  size: 16
@@ -7052,33 +7077,33 @@ const Gc = (e) => {
7052
7077
  fullWidth: g,
7053
7078
  loading: k,
7054
7079
  loadingIndicator: I,
7055
- loadingPosition: $,
7080
+ loadingPosition: R,
7056
7081
  size: S,
7057
- type: D,
7082
+ type: V,
7058
7083
  variant: G
7059
- }, w = Gc(c), x = (T || k && $ === "start") && /* @__PURE__ */ E(Yc, {
7060
- className: w.startIcon,
7084
+ }, E = Gc(c), C = (w || k && R === "start") && /* @__PURE__ */ $(Yc, {
7085
+ className: E.startIcon,
7061
7086
  ownerState: c,
7062
- children: T || /* @__PURE__ */ E(Qn, {
7063
- className: w.loadingIconPlaceholder,
7087
+ children: w || /* @__PURE__ */ $(Qn, {
7088
+ className: E.loadingIconPlaceholder,
7064
7089
  ownerState: c
7065
7090
  })
7066
- }), P = (h || k && $ === "end") && /* @__PURE__ */ E(Hc, {
7067
- className: w.endIcon,
7091
+ }), _ = (h || k && R === "end") && /* @__PURE__ */ $(Hc, {
7092
+ className: E.endIcon,
7068
7093
  ownerState: c,
7069
- children: h || /* @__PURE__ */ E(Qn, {
7070
- className: w.loadingIconPlaceholder,
7094
+ children: h || /* @__PURE__ */ $(Qn, {
7095
+ className: E.loadingIconPlaceholder,
7071
7096
  ownerState: c
7072
7097
  })
7073
- }), _ = o || "", U = typeof k == "boolean" ? (
7098
+ }), P = o || "", U = typeof k == "boolean" ? (
7074
7099
  // use plain HTML span to minimize the runtime overhead
7075
- /* @__PURE__ */ E("span", {
7076
- className: w.loadingWrapper,
7100
+ /* @__PURE__ */ $("span", {
7101
+ className: E.loadingWrapper,
7077
7102
  style: {
7078
7103
  display: "contents"
7079
7104
  },
7080
- children: k && /* @__PURE__ */ E(Kc, {
7081
- className: w.loadingIndicator,
7105
+ children: k && /* @__PURE__ */ $(Kc, {
7106
+ className: E.loadingIndicator,
7082
7107
  ownerState: c,
7083
7108
  children: I
7084
7109
  })
@@ -7086,17 +7111,17 @@ const Gc = (e) => {
7086
7111
  ) : null;
7087
7112
  return /* @__PURE__ */ fe(Uc, {
7088
7113
  ownerState: c,
7089
- className: ue(n.className, w.root, m, _),
7114
+ className: ue(n.className, E.root, m, P),
7090
7115
  component: d,
7091
7116
  disabled: y || k,
7092
7117
  focusRipple: !b,
7093
- focusVisibleClassName: ue(w.focusVisible, f),
7118
+ focusVisibleClassName: ue(E.focusVisible, f),
7094
7119
  ref: r,
7095
- type: D,
7096
- id: k ? F : C,
7097
- ...z,
7098
- classes: w,
7099
- children: [x, $ !== "end" && U, l, $ === "end" && U, P]
7120
+ type: V,
7121
+ id: k ? F : T,
7122
+ ...W,
7123
+ classes: E,
7124
+ children: [C, R !== "end" && U, l, R === "end" && U, _]
7100
7125
  });
7101
7126
  });
7102
7127
  process.env.NODE_ENV !== "production" && (ii.propTypes = {
@@ -7427,7 +7452,7 @@ const Qc = (e) => {
7427
7452
  textAlign: p,
7428
7453
  variant: b
7429
7454
  }, g = Qc(f);
7430
- return /* @__PURE__ */ E(Jc, {
7455
+ return /* @__PURE__ */ $(Jc, {
7431
7456
  as: u,
7432
7457
  className: ue(g.root, a),
7433
7458
  role: y,
@@ -7435,7 +7460,7 @@ const Qc = (e) => {
7435
7460
  ownerState: f,
7436
7461
  "aria-orientation": y === "separator" && (u !== "hr" || l === "vertical") ? l : void 0,
7437
7462
  ...h,
7438
- children: i ? /* @__PURE__ */ E(Zc, {
7463
+ children: i ? /* @__PURE__ */ $(Zc, {
7439
7464
  className: g.wrapper,
7440
7465
  ownerState: f,
7441
7466
  children: i
@@ -7518,7 +7543,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7518
7543
  size: i,
7519
7544
  loading: a
7520
7545
  } = e, l = {
7521
- root: ["root", a && "loading", r && "disabled", n !== "default" && `color${Z(n)}`, o && `edge${Z(o)}`, `size${Z(i)}`],
7546
+ root: ["root", a && "loading", r && "disabled", n !== "default" && `color${J(n)}`, o && `edge${J(o)}`, `size${J(i)}`],
7522
7547
  loadingIndicator: ["loadingIndicator"],
7523
7548
  loadingWrapper: ["loadingWrapper"]
7524
7549
  };
@@ -7530,7 +7555,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7530
7555
  const {
7531
7556
  ownerState: r
7532
7557
  } = e;
7533
- return [t.root, r.loading && t.loading, r.color !== "default" && t[`color${Z(r.color)}`], r.edge && t[`edge${Z(r.edge)}`], t[`size${Z(r.size)}`]];
7558
+ return [t.root, r.loading && t.loading, r.color !== "default" && t[`color${J(r.color)}`], r.edge && t[`edge${J(r.edge)}`], t[`size${J(r.size)}`]];
7534
7559
  }
7535
7560
  })(Ee(({
7536
7561
  theme: e
@@ -7672,11 +7697,11 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7672
7697
  loading: p = null,
7673
7698
  loadingIndicator: b,
7674
7699
  ...h
7675
- } = n, f = Wo(y), g = b ?? /* @__PURE__ */ E(en, {
7700
+ } = n, f = Wo(y), g = b ?? /* @__PURE__ */ $(en, {
7676
7701
  "aria-labelledby": f,
7677
7702
  color: "inherit",
7678
7703
  size: 16
7679
- }), C = {
7704
+ }), T = {
7680
7705
  ...n,
7681
7706
  edge: o,
7682
7707
  color: l,
@@ -7685,7 +7710,7 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7685
7710
  loading: p,
7686
7711
  loadingIndicator: g,
7687
7712
  size: m
7688
- }, k = tu(C);
7713
+ }, k = tu(T);
7689
7714
  return /* @__PURE__ */ fe(ru, {
7690
7715
  id: p ? f : y,
7691
7716
  className: ue(k.root, a),
@@ -7694,16 +7719,16 @@ const Jn = Pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7694
7719
  disabled: u || p,
7695
7720
  ref: r,
7696
7721
  ...h,
7697
- ownerState: C,
7722
+ ownerState: T,
7698
7723
  children: [typeof p == "boolean" && // use plain HTML span to minimize the runtime overhead
7699
- /* @__PURE__ */ E("span", {
7724
+ /* @__PURE__ */ $("span", {
7700
7725
  className: k.loadingWrapper,
7701
7726
  style: {
7702
7727
  display: "contents"
7703
7728
  },
7704
- children: /* @__PURE__ */ E(nu, {
7729
+ children: /* @__PURE__ */ $(nu, {
7705
7730
  className: k.loadingIndicator,
7706
- ownerState: C,
7731
+ ownerState: T,
7707
7732
  children: p && g
7708
7733
  })
7709
7734
  }), i]
@@ -7886,7 +7911,7 @@ const au = (e) => {
7886
7911
  square: u,
7887
7912
  variant: d
7888
7913
  }, p = au(y);
7889
- return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */ E(lu, {
7914
+ return process.env.NODE_ENV !== "production" && o.shadows[l], /* @__PURE__ */ $(lu, {
7890
7915
  as: a,
7891
7916
  ownerState: y,
7892
7917
  className: ue(p.root, i),
@@ -7982,7 +8007,7 @@ const uu = {
7982
8007
  variant: i,
7983
8008
  classes: a
7984
8009
  } = e, l = {
7985
- root: ["root", i, e.align !== "inherit" && `align${Z(t)}`, r && "gutterBottom", n && "noWrap", o && "paragraph"]
8010
+ root: ["root", i, e.align !== "inherit" && `align${J(t)}`, r && "gutterBottom", n && "noWrap", o && "paragraph"]
7986
8011
  };
7987
8012
  return Ae(l, cu, a);
7988
8013
  }, pu = pe("span", {
@@ -7992,7 +8017,7 @@ const uu = {
7992
8017
  const {
7993
8018
  ownerState: r
7994
8019
  } = e;
7995
- return [t.root, r.variant && t[r.variant], r.align !== "inherit" && t[`align${Z(r.align)}`], r.noWrap && t.noWrap, r.gutterBottom && t.gutterBottom, r.paragraph && t.paragraph];
8020
+ return [t.root, r.variant && t[r.variant], r.align !== "inherit" && t[`align${J(r.align)}`], r.noWrap && t.noWrap, r.gutterBottom && t.gutterBottom, r.paragraph && t.paragraph];
7996
8021
  }
7997
8022
  })(Ee(({
7998
8023
  theme: e
@@ -8022,7 +8047,7 @@ const uu = {
8022
8047
  }
8023
8048
  })), ...Object.entries(e.palette?.text || {}).filter(([, t]) => typeof t == "string").map(([t]) => ({
8024
8049
  props: {
8025
- color: `text${Z(t)}`
8050
+ color: `text${J(t)}`
8026
8051
  },
8027
8052
  style: {
8028
8053
  color: (e.vars || e).palette.text[t]
@@ -8103,9 +8128,9 @@ const uu = {
8103
8128
  paragraph: p,
8104
8129
  variant: b,
8105
8130
  variantMapping: h
8106
- }, C = d || (p ? "p" : h[b] || Zn[b]) || "span", k = du(g);
8107
- return /* @__PURE__ */ E(pu, {
8108
- as: C,
8131
+ }, T = d || (p ? "p" : h[b] || Zn[b]) || "span", k = du(g);
8132
+ return /* @__PURE__ */ $(pu, {
8133
+ as: T,
8109
8134
  ref: r,
8110
8135
  className: ue(k.root, u),
8111
8136
  ...f,
@@ -8240,15 +8265,15 @@ const Tr = ({
8240
8265
  const { fields: l, append: u, remove: d } = bi({
8241
8266
  control: t.control,
8242
8267
  name: e.name
8243
- }), m = Ge(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (T, D) => {
8268
+ }), m = Ge(() => e.columns ? ui(e.columns) : [], [e.columns]), y = (w, V) => {
8244
8269
  if (!m.some(
8245
- (F) => F.dependencies.includes(D)
8270
+ (F) => F.dependencies.includes(V)
8246
8271
  )) return;
8247
- const z = t.getValues(`${e.name}.${T}`);
8248
- z && m.forEach(({ name: F, expr: I, dependencies: c, precision: w, roundMode: x }) => {
8249
- if (F === D || !c.includes(D) || !c.every((j) => Fr(z[j]))) return;
8250
- const _ = Co(I, z, c, w, x), U = z[F];
8251
- _ !== void 0 && _ !== U && !Number.isNaN(_) && (typeof _ != "number" || typeof U != "number" || Math.abs(_ - U) > 1e-4) && t.setValue(`${e.name}.${T}.${F}`, _, {
8272
+ const W = t.getValues(`${e.name}.${w}`);
8273
+ W && m.forEach(({ name: F, expr: I, dependencies: c, precision: E, roundMode: C }) => {
8274
+ if (F === V || !c.includes(V) || !c.every((oe) => Fr(W[oe]))) return;
8275
+ const P = Co(I, W, c, E, C), U = W[F];
8276
+ P !== void 0 && P !== U && !Number.isNaN(P) && (typeof P != "number" || typeof U != "number" || Math.abs(P - U) > 1e-4) && t.setValue(`${e.name}.${w}.${F}`, P, {
8252
8277
  shouldValidate: !0,
8253
8278
  // 计算更新通常需要触发验证
8254
8279
  shouldDirty: !0,
@@ -8260,78 +8285,78 @@ const Tr = ({
8260
8285
  minItems: h = 0,
8261
8286
  maxItems: f = 1 / 0,
8262
8287
  addText: g = "添加一行",
8263
- copyable: C = !1
8288
+ copyable: T = !1
8264
8289
  } = e, k = () => {
8265
8290
  if (l.length >= f) return;
8266
- const T = ci(b);
8267
- u(T);
8268
- }, M = (T) => {
8291
+ const w = ci(b);
8292
+ u(w);
8293
+ }, M = (w) => {
8269
8294
  if (l.length >= f) return;
8270
- const D = t.getValues(`${e.name}.${T}`);
8271
- u(D);
8272
- }, $ = (T) => {
8273
- l.length <= h || d(T);
8274
- }, S = (T, D, G) => {
8275
- const z = `${e.name}.${D}.${T.name}`, F = p?.[e.name]?.[D] || {}, I = { ...p, ...F }, c = Ht(
8276
- T,
8295
+ const V = t.getValues(`${e.name}.${w}`);
8296
+ u(V);
8297
+ }, R = (w) => {
8298
+ l.length <= h || d(w);
8299
+ }, S = (w, V, G) => {
8300
+ const W = `${e.name}.${V}.${w.name}`, F = p?.[e.name]?.[V] || {}, I = { ...p, ...F }, c = Ht(
8301
+ w,
8277
8302
  I,
8278
8303
  o,
8279
8304
  i
8280
8305
  );
8281
8306
  if (!c.visible)
8282
8307
  return null;
8283
- if (T.component === "Group")
8284
- return /* @__PURE__ */ E(
8308
+ if (w.component === "Group")
8309
+ return /* @__PURE__ */ $(
8285
8310
  $t,
8286
8311
  {
8287
- size: eo(T.colSpan),
8288
- children: /* @__PURE__ */ E($t, { container: !0, spacing: 2, children: T.columns?.map(
8289
- (_, U) => S(
8290
- { ..._, name: _.name },
8291
- D,
8312
+ size: eo(w.colSpan),
8313
+ children: /* @__PURE__ */ $($t, { container: !0, spacing: 2, children: w.columns?.map(
8314
+ (P, U) => S(
8315
+ { ...P, name: P.name },
8316
+ V,
8292
8317
  U
8293
8318
  )
8294
8319
  ) })
8295
8320
  },
8296
- `${z}-${G}`
8321
+ `${W}-${G}`
8297
8322
  );
8298
- const w = r[T.component] ?? r.Text;
8299
- if (!w) return null;
8300
- const x = n[T.name] ?? T.ui?.options ?? [], P = eo(T.colSpan);
8301
- return /* @__PURE__ */ E($t, { size: P, children: /* @__PURE__ */ E(
8323
+ const E = r[w.component] ?? r.Text;
8324
+ if (!E) return null;
8325
+ const C = n[w.name] ?? w.ui?.options ?? [], _ = eo(w.colSpan);
8326
+ return /* @__PURE__ */ $($t, { size: _, children: /* @__PURE__ */ $(
8302
8327
  jr,
8303
8328
  {
8304
8329
  control: t.control,
8305
- name: z,
8306
- render: ({ field: _, fieldState: U }) => /* @__PURE__ */ E(
8307
- w,
8330
+ name: W,
8331
+ render: ({ field: P, fieldState: U }) => /* @__PURE__ */ $(
8332
+ E,
8308
8333
  {
8309
8334
  error: !!U.error,
8310
8335
  field: {
8311
- ..._,
8312
- onBlur: (j) => {
8313
- _.onBlur(), y(D, T.name);
8336
+ ...P,
8337
+ onBlur: (oe) => {
8338
+ P.onBlur(), y(V, w.name);
8314
8339
  }
8315
8340
  },
8316
8341
  fieldProps: {
8317
- ...T.ui?.props,
8342
+ ...w.ui?.props,
8318
8343
  disabled: c.disabled,
8319
8344
  required: c.required,
8320
8345
  readOnly: c.readonly,
8321
- placeholder: T.ui?.placeholder
8346
+ placeholder: w.ui?.placeholder
8322
8347
  },
8323
8348
  form: t,
8324
- helperText: U.error?.message ?? T.ui?.helperText,
8325
- label: T.ui?.label,
8326
- options: x
8349
+ helperText: U.error?.message ?? w.ui?.helperText,
8350
+ label: w.ui?.label,
8351
+ options: C
8327
8352
  }
8328
8353
  )
8329
8354
  }
8330
- ) }, `${z}-${G}`);
8355
+ ) }, `${W}-${G}`);
8331
8356
  };
8332
8357
  return /* @__PURE__ */ fe(Gt, { children: [
8333
- a && /* @__PURE__ */ E(tn, { variant: "subtitle2", sx: { mb: 1, fontWeight: 600 }, children: a }),
8334
- l.map((T, D) => /* @__PURE__ */ fe(
8358
+ a && /* @__PURE__ */ $(tn, { variant: "subtitle2", sx: { mb: 1, fontWeight: 600 }, children: a }),
8359
+ l.map((w, V) => /* @__PURE__ */ fe(
8335
8360
  li,
8336
8361
  {
8337
8362
  variant: "outlined",
@@ -8348,39 +8373,39 @@ const Tr = ({
8348
8373
  gap: 0.5
8349
8374
  },
8350
8375
  children: [
8351
- C && l.length < f && !o && /* @__PURE__ */ E(
8376
+ T && l.length < f && !o && /* @__PURE__ */ $(
8352
8377
  Nr,
8353
8378
  {
8354
8379
  size: "small",
8355
- onClick: () => M(D),
8380
+ onClick: () => M(V),
8356
8381
  title: "复制",
8357
- children: /* @__PURE__ */ E(nc, { fontSize: "small" })
8382
+ children: /* @__PURE__ */ $(nc, { fontSize: "small" })
8358
8383
  }
8359
8384
  ),
8360
- l.length > h && !o && /* @__PURE__ */ E(
8385
+ l.length > h && !o && /* @__PURE__ */ $(
8361
8386
  Nr,
8362
8387
  {
8363
8388
  size: "small",
8364
- onClick: () => $(D),
8389
+ onClick: () => R(V),
8365
8390
  color: "error",
8366
8391
  title: "删除",
8367
- children: /* @__PURE__ */ E(oc, { fontSize: "small" })
8392
+ children: /* @__PURE__ */ $(oc, { fontSize: "small" })
8368
8393
  }
8369
8394
  )
8370
8395
  ]
8371
8396
  }
8372
8397
  ),
8373
- /* @__PURE__ */ E($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((G, z) => S(G, D, z)) })
8398
+ /* @__PURE__ */ $($t, { container: !0, spacing: 2, sx: { pr: 6 }, children: b.map((G, W) => S(G, V, W)) })
8374
8399
  ]
8375
8400
  },
8376
- T.id
8401
+ w.id
8377
8402
  )),
8378
- l.length < f && !o && /* @__PURE__ */ E(Dr, { children: /* @__PURE__ */ E(Yt, { sx: { my: 2 }, children: /* @__PURE__ */ E(
8403
+ l.length < f && !o && /* @__PURE__ */ $(Dr, { children: /* @__PURE__ */ $(Yt, { sx: { my: 2 }, children: /* @__PURE__ */ $(
8379
8404
  ii,
8380
8405
  {
8381
8406
  variant: "text",
8382
8407
  size: "small",
8383
- startIcon: /* @__PURE__ */ E(rc, {}),
8408
+ startIcon: /* @__PURE__ */ $(rc, {}),
8384
8409
  onClick: k,
8385
8410
  children: g
8386
8411
  }
@@ -8403,8 +8428,8 @@ const to = ({
8403
8428
  return null;
8404
8429
  const l = a || t.watch();
8405
8430
  return /* @__PURE__ */ fe(Gt, { sx: { width: "100%" }, children: [
8406
- e.ui?.label && /* @__PURE__ */ E(tn, { variant: "subtitle1", gutterBottom: !0, sx: { fontWeight: "bold", mb: 2 }, children: e.ui.label }),
8407
- /* @__PURE__ */ E(Ke, { container: !0, spacing: 2, children: e.columns.map((u, d) => {
8431
+ e.ui?.label && /* @__PURE__ */ $(tn, { variant: "subtitle1", gutterBottom: !0, sx: { fontWeight: "bold", mb: 2 }, children: e.ui.label }),
8432
+ /* @__PURE__ */ $(Ke, { container: !0, spacing: 2, children: e.columns.map((u, d) => {
8408
8433
  const m = Ht(
8409
8434
  u,
8410
8435
  l,
@@ -8417,7 +8442,7 @@ const to = ({
8417
8442
  if (!y)
8418
8443
  return null;
8419
8444
  const p = n[u.name] ?? u.ui?.options ?? [], b = mu(u.colSpan);
8420
- return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */ E(Ke, { size: b, children: /* @__PURE__ */ E(
8445
+ return u.component === "Group" || u.component === "FormList" ? /* @__PURE__ */ $(Ke, { size: b, children: /* @__PURE__ */ $(
8421
8446
  y,
8422
8447
  {
8423
8448
  field: { name: u.name, value: void 0, onChange: () => {
@@ -8432,12 +8457,12 @@ const to = ({
8432
8457
  widgets: r,
8433
8458
  values: l
8434
8459
  }
8435
- ) }, `${String(u.name)}-${d}`) : /* @__PURE__ */ E(Ke, { size: b, children: /* @__PURE__ */ E(
8460
+ ) }, `${String(u.name)}-${d}`) : /* @__PURE__ */ $(Ke, { size: b, children: /* @__PURE__ */ $(
8436
8461
  jr,
8437
8462
  {
8438
8463
  control: t.control,
8439
8464
  name: u.name,
8440
- render: ({ field: h, fieldState: f }) => /* @__PURE__ */ E(
8465
+ render: ({ field: h, fieldState: f }) => /* @__PURE__ */ $(
8441
8466
  y,
8442
8467
  {
8443
8468
  error: !!f.error,
@@ -8460,7 +8485,7 @@ const to = ({
8460
8485
  ) }, `${String(u.name)}-${d}`);
8461
8486
  }) })
8462
8487
  ] });
8463
- }, ro = ({ field: e }) => /* @__PURE__ */ E("input", { type: "hidden", ...e, value: e.value ?? "" }), no = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ E(
8488
+ }, ro = ({ field: e }) => /* @__PURE__ */ $("input", { type: "hidden", ...e, value: e.value ?? "" }), no = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ $(
8464
8489
  lt,
8465
8490
  {
8466
8491
  name: e.name,
@@ -8488,7 +8513,7 @@ const to = ({
8488
8513
  error: r,
8489
8514
  helperText: n,
8490
8515
  fieldProps: o
8491
- }) => /* @__PURE__ */ E(
8516
+ }) => /* @__PURE__ */ $(
8492
8517
  lt,
8493
8518
  {
8494
8519
  ...e,
@@ -8514,7 +8539,7 @@ const to = ({
8514
8539
  backgroundColor: "#1A2027"
8515
8540
  })
8516
8541
  })), so = ({ field: e, label: t, options: r = [], error: n, helperText: o, fieldProps: i }) => {
8517
- const a = (m) => r.find((p) => String(p.value) === m)?.value ?? m, l = e.value !== void 0 && e.value !== null ? String(e.value) : "", u = i?.inline === !0, d = /* @__PURE__ */ E(
8542
+ const a = (m) => r.find((p) => String(p.value) === m)?.value ?? m, l = e.value !== void 0 && e.value !== null ? String(e.value) : "", u = i?.inline === !0, d = /* @__PURE__ */ $(
8518
8543
  Oi,
8519
8544
  {
8520
8545
  row: !0,
@@ -8524,10 +8549,10 @@ const to = ({
8524
8549
  },
8525
8550
  value: l,
8526
8551
  sx: u ? { flexWrap: "nowrap" } : void 0,
8527
- children: r.map((m) => /* @__PURE__ */ E(
8552
+ children: r.map((m) => /* @__PURE__ */ $(
8528
8553
  Vr,
8529
8554
  {
8530
- control: /* @__PURE__ */ E($i, { size: "small" }),
8555
+ control: /* @__PURE__ */ $($i, { size: "small" }),
8531
8556
  disabled: m.disabled,
8532
8557
  label: m.label,
8533
8558
  value: String(m.value)
@@ -8561,23 +8586,23 @@ const to = ({
8561
8586
  u ? (
8562
8587
  // 行内布局:label 和 radio 在同一行
8563
8588
  /* @__PURE__ */ fe(nn, { direction: "row", spacing: 2, alignItems: "center", children: [
8564
- /* @__PURE__ */ E(io, { children: t && /* @__PURE__ */ E(jt, { component: "legend", required: !1, sx: { mb: 0, flexShrink: 0 }, children: Se(t, i?.required) }) }),
8565
- /* @__PURE__ */ E(io, { children: d })
8589
+ /* @__PURE__ */ $(io, { children: t && /* @__PURE__ */ $(jt, { component: "legend", required: !1, sx: { mb: 0, flexShrink: 0 }, children: Se(t, i?.required) }) }),
8590
+ /* @__PURE__ */ $(io, { children: d })
8566
8591
  ] })
8567
8592
  ) : (
8568
8593
  // 默认布局:label 在上,radio 在下
8569
8594
  /* @__PURE__ */ fe(nn, { spacing: 0, children: [
8570
- t && /* @__PURE__ */ E(jt, { component: "legend", required: !1, children: Se(t, i?.required) }),
8595
+ t && /* @__PURE__ */ $(jt, { component: "legend", required: !1, children: Se(t, i?.required) }),
8571
8596
  d
8572
8597
  ] })
8573
8598
  ),
8574
- o && /* @__PURE__ */ E(zr, { children: o })
8599
+ o && /* @__PURE__ */ $(zr, { children: o })
8575
8600
  ]
8576
8601
  }
8577
8602
  );
8578
8603
  }, ao = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { children: [
8579
- t && /* @__PURE__ */ E(jt, { children: t }),
8580
- /* @__PURE__ */ E(
8604
+ t && /* @__PURE__ */ $(jt, { children: t }),
8605
+ /* @__PURE__ */ $(
8581
8606
  Ri,
8582
8607
  {
8583
8608
  value: e.value ?? 0,
@@ -8588,8 +8613,8 @@ const to = ({
8588
8613
  }
8589
8614
  )
8590
8615
  ] }), lo = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ fe(at, { fullWidth: !0, children: [
8591
- t && /* @__PURE__ */ E(jt, { children: t }),
8592
- /* @__PURE__ */ E(
8616
+ t && /* @__PURE__ */ $(jt, { children: t }),
8617
+ /* @__PURE__ */ $(
8593
8618
  ki,
8594
8619
  {
8595
8620
  value: e.value ?? 0,
@@ -8599,10 +8624,10 @@ const to = ({
8599
8624
  }
8600
8625
  )
8601
8626
  ] }), co = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ fe(at, { error: r, required: o?.required, component: "fieldset", children: [
8602
- /* @__PURE__ */ E(
8627
+ /* @__PURE__ */ $(
8603
8628
  Vr,
8604
8629
  {
8605
- control: /* @__PURE__ */ E(
8630
+ control: /* @__PURE__ */ $(
8606
8631
  Ai,
8607
8632
  {
8608
8633
  checked: e.value ?? !1,
@@ -8614,14 +8639,14 @@ const to = ({
8614
8639
  label: Se(t, o?.required)
8615
8640
  }
8616
8641
  ),
8617
- n && /* @__PURE__ */ E(zr, { children: n })
8642
+ n && /* @__PURE__ */ $(zr, { children: n })
8618
8643
  ] }), uo = ({
8619
8644
  field: e,
8620
8645
  label: t,
8621
8646
  error: r,
8622
8647
  helperText: n,
8623
8648
  fieldProps: o
8624
- }) => /* @__PURE__ */ E(
8649
+ }) => /* @__PURE__ */ $(
8625
8650
  lt,
8626
8651
  {
8627
8652
  ...e,
@@ -8644,7 +8669,7 @@ const to = ({
8644
8669
  error: r,
8645
8670
  helperText: n,
8646
8671
  fieldProps: o
8647
- }) => /* @__PURE__ */ E(
8672
+ }) => /* @__PURE__ */ $(
8648
8673
  lt,
8649
8674
  {
8650
8675
  ...e,
@@ -8665,7 +8690,7 @@ const to = ({
8665
8690
  error: r,
8666
8691
  helperText: n,
8667
8692
  fieldProps: o
8668
- }) => /* @__PURE__ */ E(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ E(
8693
+ }) => /* @__PURE__ */ $(Wr, { adapterLocale: "zh-cn", dateAdapter: Lr, children: /* @__PURE__ */ $(
8669
8694
  Mi,
8670
8695
  {
8671
8696
  disabled: o?.disabled,
@@ -8738,14 +8763,14 @@ async function gu(e, t) {
8738
8763
  }
8739
8764
  }
8740
8765
  function yu(e, t) {
8741
- const [r, n] = Ne({}), o = De({}), i = De(/* @__PURE__ */ new Set()), a = De({});
8742
- return je(() => {
8766
+ const [r, n] = De({}), o = Ne({}), i = Ne(/* @__PURE__ */ new Set()), a = Ne({});
8767
+ return _e(() => {
8743
8768
  i.current.clear(), o.current = {}, a.current = {};
8744
8769
  const l = {};
8745
8770
  for (const u of e)
8746
8771
  l[u.name] = u.ui?.options ?? [];
8747
8772
  n(l);
8748
- }, [e]), je(() => {
8773
+ }, [e]), _e(() => {
8749
8774
  e.forEach(async (l) => {
8750
8775
  if (!l.ui?.optionRequest) return;
8751
8776
  const u = l.name, d = l.dependencies || [];
@@ -8792,7 +8817,7 @@ function bu(e, t) {
8792
8817
  widgets: d = {},
8793
8818
  children: m,
8794
8819
  spacing: y
8795
- } = e, p = Ge(() => zi(r), [r]), b = De(void 0);
8820
+ } = e, p = Ge(() => zi(r), [r]), b = Ne(void 0);
8796
8821
  b.current === void 0 && (b.current = {
8797
8822
  ...p.defaultValues,
8798
8823
  ...n || {}
@@ -8803,62 +8828,62 @@ function bu(e, t) {
8803
8828
  resolver: f,
8804
8829
  mode: "onBlur",
8805
8830
  reValidateMode: "onBlur"
8806
- }), C = Ge(() => ji(p), [p]), k = Si({
8831
+ }), T = Ge(() => ji(p), [p]), k = Si({
8807
8832
  control: g.control,
8808
- name: C
8833
+ name: T
8809
8834
  }), M = Ge(() => {
8810
8835
  const I = {};
8811
- return Array.isArray(k) && C.forEach((c, w) => {
8812
- I[c] = k[w];
8836
+ return Array.isArray(k) && T.forEach((c, E) => {
8837
+ I[c] = k[E];
8813
8838
  }), I;
8814
- }, [k, C]), $ = yu(p.allFields, M), S = De({});
8815
- je(() => {
8839
+ }, [k, T]), R = yu(p.allFields, M), S = Ne({});
8840
+ _e(() => {
8816
8841
  const I = S.current;
8817
8842
  if (Object.keys(I).length === 0) {
8818
8843
  S.current = { ...M };
8819
8844
  return;
8820
8845
  }
8821
8846
  const c = {};
8822
- let w = !1;
8823
- for (const x of p.allFields)
8824
- if (x.dependencies?.length && x.dependencies.some(
8825
- (_) => M[_] !== I[_]
8847
+ let E = !1;
8848
+ for (const C of p.allFields)
8849
+ if (C.dependencies?.length && C.dependencies.some(
8850
+ (P) => M[P] !== I[P]
8826
8851
  )) {
8827
- const _ = g.getValues(x.name);
8828
- _ != null && _ !== "" && (c[x.name] = null, w = !0);
8852
+ const P = g.getValues(C.name);
8853
+ P != null && P !== "" && (c[C.name] = null, E = !0);
8829
8854
  }
8830
- w && Object.entries(c).forEach(([x, P]) => {
8831
- g.setValue(x, P, {
8855
+ E && Object.entries(c).forEach(([C, _]) => {
8856
+ g.setValue(C, _, {
8832
8857
  shouldValidate: !0,
8833
8858
  shouldDirty: !0,
8834
8859
  shouldTouch: !0
8835
8860
  });
8836
8861
  }), S.current = { ...M };
8837
- }, [M, p.allFields, g]), je(() => {
8862
+ }, [M, p.allFields, g]), _e(() => {
8838
8863
  i && i(g.getValues());
8839
8864
  }, [M, i, g]);
8840
- const T = Ge(() => p.allFields.filter((I) => I.compute).map((I) => ({
8865
+ const w = Ge(() => p.allFields.filter((I) => I.compute).map((I) => ({
8841
8866
  name: I.name,
8842
8867
  expr: I.compute.expr,
8843
8868
  dependencies: I.compute.dependencies || xo(I.compute.expr),
8844
8869
  precision: I.compute.precision,
8845
8870
  roundMode: I.compute.roundMode
8846
- })), [p.allFields]), D = De({});
8847
- je(() => {
8848
- if (T.length === 0) return;
8871
+ })), [p.allFields]), V = Ne({});
8872
+ _e(() => {
8873
+ if (w.length === 0) return;
8849
8874
  let I = !1;
8850
8875
  const c = {};
8851
- for (const { name: w, expr: x, dependencies: P, precision: _, roundMode: U } of T) {
8852
- const j = P.map((L) => `${L}:${M[L]}`).join("|"), W = D.current[w];
8853
- if (j === W)
8876
+ for (const { name: E, expr: C, dependencies: _, precision: P, roundMode: U } of w) {
8877
+ const oe = _.map((D) => `${D}:${M[D]}`).join("|"), j = V.current[E];
8878
+ if (oe === j)
8854
8879
  continue;
8855
- if (!P.every((L) => Fr(M[L]))) {
8856
- D.current[w] = j;
8880
+ if (!_.every((D) => Fr(M[D]))) {
8881
+ V.current[E] = oe;
8857
8882
  continue;
8858
8883
  }
8859
- const R = Co(x, M, P, _, U), V = g.getValues(w);
8860
- R !== void 0 && R !== V && !Number.isNaN(R) && // 避免浮点数精度问题导致的无限更新
8861
- (typeof R != "number" || typeof V != "number" || Math.abs(R - V) > 1e-4) && (c[w] = R, I = !0), D.current[w] = j;
8884
+ const O = Co(C, M, _, P, U), z = g.getValues(E);
8885
+ O !== void 0 && O !== z && !Number.isNaN(O) && // 避免浮点数精度问题导致的无限更新
8886
+ (typeof O != "number" || typeof z != "number" || Math.abs(O - z) > 1e-4) && (c[E] = O, I = !0), V.current[E] = oe;
8862
8887
  }
8863
8888
  I && g.reset(
8864
8889
  {
@@ -8879,18 +8904,18 @@ function bu(e, t) {
8879
8904
  // keepDirty: true means "if a field was dirty, keep it dirty".
8880
8905
  }
8881
8906
  );
8882
- }, [M, T, g]);
8907
+ }, [M, w, g]);
8883
8908
  const G = ho(
8884
8909
  async (I) => {
8885
- const c = g.getValues(), w = {};
8886
- for (const x of p.allFields) {
8887
- if (x.noSubmit)
8910
+ const c = g.getValues(), E = {};
8911
+ for (const C of p.allFields) {
8912
+ if (C.noSubmit)
8888
8913
  continue;
8889
- const P = x.name;
8890
- let _ = P in I ? I[P] : c[P];
8891
- x.transform ? w[P] = x.transform(_, c) : w[P] = _;
8914
+ const _ = C.name;
8915
+ let P = _ in I ? I[_] : c[_];
8916
+ C.transform ? E[_] = C.transform(P, c) : E[_] = P;
8892
8917
  }
8893
- o && await o(w);
8918
+ o && await o(E);
8894
8919
  },
8895
8920
  [p.allFields, o, g]
8896
8921
  );
@@ -8902,42 +8927,42 @@ function bu(e, t) {
8902
8927
  await g.handleSubmit(G)();
8903
8928
  },
8904
8929
  getFormValues: () => {
8905
- const c = g.getValues(), w = {};
8906
- for (const x of p.allFields)
8907
- x.noSubmit || (w[x.name] = c[x.name]);
8908
- return w;
8930
+ const c = g.getValues(), E = {};
8931
+ for (const C of p.allFields)
8932
+ C.noSubmit || (E[C.name] = c[C.name]);
8933
+ return E;
8909
8934
  },
8910
8935
  setValues: (c) => {
8911
- for (const [w, x] of Object.entries(c))
8912
- x !== void 0 && g.setValue(w, x);
8936
+ for (const [E, C] of Object.entries(c))
8937
+ C !== void 0 && g.setValue(E, C);
8913
8938
  }
8914
8939
  }),
8915
8940
  [g, p, G]
8916
8941
  );
8917
- const z = () => p.input.fields.flatMap((c, w) => {
8942
+ const W = () => p.input.fields.flatMap((c, E) => {
8918
8943
  if (c.component === "Hidden")
8919
8944
  return [];
8920
- const x = [];
8921
- return c.newLine && a && x.push(/* @__PURE__ */ E("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${w}-newline`)), x.push(
8922
- /* @__PURE__ */ E(
8945
+ const C = [];
8946
+ return c.newLine && a && C.push(/* @__PURE__ */ $("div", { style: { gridColumn: "1 / -1", height: 0 } }, `${String(c.name)}-${E}-newline`)), C.push(
8947
+ /* @__PURE__ */ $(
8923
8948
  Yl,
8924
8949
  {
8925
8950
  field: c,
8926
- index: w,
8951
+ index: E,
8927
8952
  values: M,
8928
8953
  form: g,
8929
8954
  disabled: u,
8930
8955
  readOnly: l,
8931
8956
  widgets: h,
8932
- optionsMap: $,
8957
+ optionsMap: R,
8933
8958
  useGrid: a
8934
8959
  },
8935
- `${String(c.name)}-${w}`
8960
+ `${String(c.name)}-${E}`
8936
8961
  )
8937
- ), x;
8962
+ ), C;
8938
8963
  }), F = y ?? r.layout?.spacing ?? 2;
8939
- return /* @__PURE__ */ E(xi, { ...g, children: /* @__PURE__ */ fe("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
8940
- a ? /* @__PURE__ */ E(Hl, { spacing: F, children: z() }) : /* @__PURE__ */ E(Kl, { spacing: F, children: z() }),
8964
+ return /* @__PURE__ */ $(xi, { ...g, children: /* @__PURE__ */ fe("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
8965
+ a ? /* @__PURE__ */ $(Hl, { spacing: F, children: W() }) : /* @__PURE__ */ $(Kl, { spacing: F, children: W() }),
8941
8966
  m
8942
8967
  ] }) });
8943
8968
  }