@weng-lab/ui-components 1.0.16 → 1.0.17

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.
@@ -70,7 +70,7 @@ function px() {
70
70
  return "Suspense";
71
71
  case M:
72
72
  return "SuspenseList";
73
- case O:
73
+ case R:
74
74
  return "Activity";
75
75
  }
76
76
  if (typeof k == "object")
@@ -129,7 +129,7 @@ function px() {
129
129
  }
130
130
  }
131
131
  function s() {
132
- var k = R.A;
132
+ var k = O.A;
133
133
  return k === null ? null : k.getOwner();
134
134
  }
135
135
  function i() {
@@ -245,7 +245,7 @@ React keys must be passed directly to JSX without using spread:
245
245
  function f(k) {
246
246
  typeof k == "object" && k !== null && k.$$typeof === m && k._store && (k._store.validated = 1);
247
247
  }
248
- var h = un, m = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), S = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), R = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, j = Array.isArray, H = console.createTask ? console.createTask : function() {
248
+ var h = un, m = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), S = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), O = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, j = Array.isArray, H = console.createTask ? console.createTask : function() {
249
249
  return null;
250
250
  };
251
251
  h = {
@@ -258,7 +258,7 @@ React keys must be passed directly to JSX without using spread:
258
258
  i
259
259
  )(), _ = H(r(i)), G = {};
260
260
  ei.Fragment = g, ei.jsx = function(k, F, B, U, z) {
261
- var q = 1e4 > R.recentlyCreatedOwnerStacks++;
261
+ var q = 1e4 > O.recentlyCreatedOwnerStacks++;
262
262
  return d(
263
263
  k,
264
264
  F,
@@ -270,7 +270,7 @@ React keys must be passed directly to JSX without using spread:
270
270
  q ? H(r(k)) : _
271
271
  );
272
272
  }, ei.jsxs = function(k, F, B, U, z) {
273
- var q = 1e4 > R.recentlyCreatedOwnerStacks++;
273
+ var q = 1e4 > O.recentlyCreatedOwnerStacks++;
274
274
  return d(
275
275
  k,
276
276
  F,
@@ -606,7 +606,7 @@ function xx() {
606
606
  }
607
607
  }
608
608
  }
609
- var P = c, M = u, D = a, T = l, O = t, C = d, R = r, L = y, j = m, H = o, $ = i, N = s, A = f, _ = !1;
609
+ var P = c, M = u, D = a, T = l, R = t, C = d, O = r, L = y, j = m, H = o, $ = i, N = s, A = f, _ = !1;
610
610
  function G(K) {
611
611
  return _ || (_ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(K) || I(K) === c;
612
612
  }
@@ -646,7 +646,7 @@ function xx() {
646
646
  function re(K) {
647
647
  return I(K) === f;
648
648
  }
649
- gt.AsyncMode = P, gt.ConcurrentMode = M, gt.ContextConsumer = D, gt.ContextProvider = T, gt.Element = O, gt.ForwardRef = C, gt.Fragment = R, gt.Lazy = L, gt.Memo = j, gt.Portal = H, gt.Profiler = $, gt.StrictMode = N, gt.Suspense = A, gt.isAsyncMode = G, gt.isConcurrentMode = k, gt.isContextConsumer = F, gt.isContextProvider = B, gt.isElement = U, gt.isForwardRef = z, gt.isFragment = q, gt.isLazy = W, gt.isMemo = Q, gt.isPortal = Z, gt.isProfiler = X, gt.isStrictMode = Y, gt.isSuspense = re, gt.isValidElementType = S, gt.typeOf = I;
649
+ gt.AsyncMode = P, gt.ConcurrentMode = M, gt.ContextConsumer = D, gt.ContextProvider = T, gt.Element = R, gt.ForwardRef = C, gt.Fragment = O, gt.Lazy = L, gt.Memo = j, gt.Portal = H, gt.Profiler = $, gt.StrictMode = N, gt.Suspense = A, gt.isAsyncMode = G, gt.isConcurrentMode = k, gt.isContextConsumer = F, gt.isContextProvider = B, gt.isElement = U, gt.isForwardRef = z, gt.isFragment = q, gt.isLazy = W, gt.isMemo = Q, gt.isPortal = Z, gt.isProfiler = X, gt.isStrictMode = Y, gt.isSuspense = re, gt.isValidElementType = S, gt.typeOf = I;
650
650
  }()), gt;
651
651
  }
652
652
  var kf;
@@ -805,7 +805,7 @@ function Px() {
805
805
  node: C(),
806
806
  objectOf: T,
807
807
  oneOf: D,
808
- oneOfType: O,
808
+ oneOfType: R,
809
809
  shape: L,
810
810
  exact: j
811
811
  };
@@ -940,7 +940,7 @@ function Px() {
940
940
  }
941
941
  return w(F);
942
942
  }
943
- function O(k) {
943
+ function R(k) {
944
944
  if (!Array.isArray(k))
945
945
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), l;
946
946
  for (var F = 0; F < k.length; F++) {
@@ -968,7 +968,7 @@ function Px() {
968
968
  }
969
969
  return w(k);
970
970
  }
971
- function R(k, F, B, U, z) {
971
+ function O(k, F, B, U, z) {
972
972
  return new g(
973
973
  (k || "React class") + ": " + F + " type `" + B + "." + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + z + "`."
974
974
  );
@@ -981,7 +981,7 @@ function Px() {
981
981
  for (var X in k) {
982
982
  var Y = k[X];
983
983
  if (typeof Y != "function")
984
- return R(z, q, W, X, A(Y));
984
+ return O(z, q, W, X, A(Y));
985
985
  var re = Y(Q, X, z, q, W + "." + X, o);
986
986
  if (re)
987
987
  return re;
@@ -999,7 +999,7 @@ function Px() {
999
999
  for (var Y in X) {
1000
1000
  var re = k[Y];
1001
1001
  if (r(k, Y) && typeof re != "function")
1002
- return R(z, q, W, Y, A(re));
1002
+ return O(z, q, W, Y, A(re));
1003
1003
  if (!re)
1004
1004
  return new g(
1005
1005
  "Invalid " + q + " `" + W + "` key `" + Y + "` supplied to `" + z + "`.\nBad object: " + JSON.stringify(B[U], null, " ") + `
@@ -2515,14 +2515,14 @@ function sb(e = {}) {
2515
2515
  };
2516
2516
  if (fo(M)) {
2517
2517
  const D = ob(M);
2518
- return function(O) {
2519
- return D.variants ? Gl(O, D, O.theme.modularCssLayers ? g : void 0) : O.theme.modularCssLayers ? yr(D.style, g) : D.style;
2518
+ return function(R) {
2519
+ return D.variants ? Gl(R, D, R.theme.modularCssLayers ? g : void 0) : R.theme.modularCssLayers ? yr(D.style, g) : D.style;
2520
2520
  };
2521
2521
  }
2522
2522
  return M;
2523
2523
  }, P = (...M) => {
2524
- const D = [], T = M.map(I), O = [];
2525
- if (D.push(i), u && m && O.push(function(j) {
2524
+ const D = [], T = M.map(I), R = [];
2525
+ if (D.push(i), u && m && R.push(function(j) {
2526
2526
  const $ = j.theme.components?.[u]?.styleOverrides;
2527
2527
  if (!$)
2528
2528
  return null;
@@ -2530,16 +2530,16 @@ function sb(e = {}) {
2530
2530
  for (const A in $)
2531
2531
  N[A] = Gl(j, $[A], j.theme.modularCssLayers ? "theme" : void 0);
2532
2532
  return m(j, N);
2533
- }), u && !w && O.push(function(j) {
2533
+ }), u && !w && R.push(function(j) {
2534
2534
  const $ = j.theme?.components?.[u]?.variants;
2535
2535
  return $ ? rb(j, $, [], j.theme.modularCssLayers ? "theme" : void 0) : null;
2536
- }), x || O.push(Rr), Array.isArray(T[0])) {
2537
- const L = T.shift(), j = new Array(D.length).fill(""), H = new Array(O.length).fill("");
2536
+ }), x || R.push(Rr), Array.isArray(T[0])) {
2537
+ const L = T.shift(), j = new Array(D.length).fill(""), H = new Array(R.length).fill("");
2538
2538
  let $;
2539
2539
  $ = [...j, ...L, ...H], $.raw = [...j, ...L.raw, ...H], D.unshift($);
2540
2540
  }
2541
- const C = [...D, ...T, ...O], R = S(...C);
2542
- return a.muiName && (R.muiName = a.muiName), process.env.NODE_ENV !== "production" && (R.displayName = _S(u, d, a)), R;
2541
+ const C = [...D, ...T, ...R], O = S(...C);
2542
+ return a.muiName && (O.muiName = a.muiName), process.env.NODE_ENV !== "production" && (O.displayName = _S(u, d, a)), O;
2543
2543
  };
2544
2544
  return S.withConfig && (P.withConfig = S.withConfig), P;
2545
2545
  };
@@ -2930,10 +2930,10 @@ function s0(e, t = {}) {
2930
2930
  },
2931
2931
  generateStyleSheets: () => {
2932
2932
  const S = [], I = e.defaultColorScheme || "light";
2933
- function P(T, O) {
2934
- Object.keys(O).length && S.push(typeof T == "string" ? {
2933
+ function P(T, R) {
2934
+ Object.keys(R).length && S.push(typeof T == "string" ? {
2935
2935
  [T]: {
2936
- ...O
2936
+ ...R
2937
2937
  }
2938
2938
  } : T);
2939
2939
  }
@@ -2947,8 +2947,8 @@ function s0(e, t = {}) {
2947
2947
  if (M) {
2948
2948
  const {
2949
2949
  css: T
2950
- } = M, O = i[I]?.palette?.mode, C = !r && O ? {
2951
- colorScheme: O,
2950
+ } = M, R = i[I]?.palette?.mode, C = !r && R ? {
2951
+ colorScheme: R,
2952
2952
  ...T
2953
2953
  } : {
2954
2954
  ...T
@@ -2958,17 +2958,17 @@ function s0(e, t = {}) {
2958
2958
  }), C);
2959
2959
  }
2960
2960
  return Object.entries(D).forEach(([T, {
2961
- css: O
2961
+ css: R
2962
2962
  }]) => {
2963
- const C = i[T]?.palette?.mode, R = !r && C ? {
2963
+ const C = i[T]?.palette?.mode, O = !r && C ? {
2964
2964
  colorScheme: C,
2965
- ...O
2965
+ ...R
2966
2966
  } : {
2967
- ...O
2967
+ ...R
2968
2968
  };
2969
2969
  P(o(T, {
2970
- ...R
2971
- }), R);
2970
+ ...O
2971
+ }), O);
2972
2972
  }), S;
2973
2973
  }
2974
2974
  };
@@ -3214,13 +3214,13 @@ function S0(e = {}) {
3214
3214
  size: M = {},
3215
3215
  offset: D = {},
3216
3216
  spacing: T = 0,
3217
- rowSpacing: O = T,
3217
+ rowSpacing: R = T,
3218
3218
  columnSpacing: C = T,
3219
- unstable_level: R = 0,
3219
+ unstable_level: O = 0,
3220
3220
  ...L
3221
- } = y, j = l(M, h.breakpoints, (F) => F !== !1), H = l(D, h.breakpoints), $ = d.columns ?? (R ? void 0 : x), N = d.spacing ?? (R ? void 0 : T), A = d.rowSpacing ?? d.spacing ?? (R ? void 0 : O), _ = d.columnSpacing ?? d.spacing ?? (R ? void 0 : C), G = {
3221
+ } = y, j = l(M, h.breakpoints, (F) => F !== !1), H = l(D, h.breakpoints), $ = d.columns ?? (O ? void 0 : x), N = d.spacing ?? (O ? void 0 : T), A = d.rowSpacing ?? d.spacing ?? (O ? void 0 : R), _ = d.columnSpacing ?? d.spacing ?? (O ? void 0 : C), G = {
3222
3222
  ...y,
3223
- level: R,
3223
+ level: O,
3224
3224
  columns: $,
3225
3225
  container: v,
3226
3226
  direction: I,
@@ -3238,7 +3238,7 @@ function S0(e = {}) {
3238
3238
  className: ce(k.root, g),
3239
3239
  ...L,
3240
3240
  children: p.Children.map(w, (F) => /* @__PURE__ */ p.isValidElement(F) && zl(F, ["Grid"]) && v && F.props.container ? /* @__PURE__ */ p.cloneElement(F, {
3241
- unstable_level: F.props?.unstable_level ?? R + 1
3241
+ unstable_level: F.props?.unstable_level ?? O + 1
3242
3242
  }) : F)
3243
3243
  });
3244
3244
  });
@@ -4000,26 +4000,26 @@ function eE(e = {}, ...t) {
4000
4000
  },
4001
4001
  spacing: J0(u.spacing)
4002
4002
  };
4003
- Object.keys(I.colorSchemes).forEach((O) => {
4004
- const C = I.colorSchemes[O].palette, R = (L) => {
4003
+ Object.keys(I.colorSchemes).forEach((R) => {
4004
+ const C = I.colorSchemes[R].palette, O = (L) => {
4005
4005
  const j = L.split("-"), H = j[1], $ = j[2];
4006
4006
  return h(L, C[H][$]);
4007
4007
  };
4008
4008
  if (C.mode === "light" && (le(C.common, "background", "#fff"), le(C.common, "onBackground", "#000")), C.mode === "dark" && (le(C.common, "background", "#000"), le(C.common, "onBackground", "#fff")), Q0(C, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), C.mode === "light") {
4009
- le(C.Alert, "errorColor", Et(C.error.light, 0.6)), le(C.Alert, "infoColor", Et(C.info.light, 0.6)), le(C.Alert, "successColor", Et(C.success.light, 0.6)), le(C.Alert, "warningColor", Et(C.warning.light, 0.6)), le(C.Alert, "errorFilledBg", R("palette-error-main")), le(C.Alert, "infoFilledBg", R("palette-info-main")), le(C.Alert, "successFilledBg", R("palette-success-main")), le(C.Alert, "warningFilledBg", R("palette-warning-main")), le(C.Alert, "errorFilledColor", co(() => C.getContrastText(C.error.main))), le(C.Alert, "infoFilledColor", co(() => C.getContrastText(C.info.main))), le(C.Alert, "successFilledColor", co(() => C.getContrastText(C.success.main))), le(C.Alert, "warningFilledColor", co(() => C.getContrastText(C.warning.main))), le(C.Alert, "errorStandardBg", Pt(C.error.light, 0.9)), le(C.Alert, "infoStandardBg", Pt(C.info.light, 0.9)), le(C.Alert, "successStandardBg", Pt(C.success.light, 0.9)), le(C.Alert, "warningStandardBg", Pt(C.warning.light, 0.9)), le(C.Alert, "errorIconColor", R("palette-error-main")), le(C.Alert, "infoIconColor", R("palette-info-main")), le(C.Alert, "successIconColor", R("palette-success-main")), le(C.Alert, "warningIconColor", R("palette-warning-main")), le(C.AppBar, "defaultBg", R("palette-grey-100")), le(C.Avatar, "defaultBg", R("palette-grey-400")), le(C.Button, "inheritContainedBg", R("palette-grey-300")), le(C.Button, "inheritContainedHoverBg", R("palette-grey-A100")), le(C.Chip, "defaultBorder", R("palette-grey-400")), le(C.Chip, "defaultAvatarColor", R("palette-grey-700")), le(C.Chip, "defaultIconColor", R("palette-grey-700")), le(C.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), le(C.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), le(C.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), le(C.LinearProgress, "primaryBg", Pt(C.primary.main, 0.62)), le(C.LinearProgress, "secondaryBg", Pt(C.secondary.main, 0.62)), le(C.LinearProgress, "errorBg", Pt(C.error.main, 0.62)), le(C.LinearProgress, "infoBg", Pt(C.info.main, 0.62)), le(C.LinearProgress, "successBg", Pt(C.success.main, 0.62)), le(C.LinearProgress, "warningBg", Pt(C.warning.main, 0.62)), le(C.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.11)`), le(C.Slider, "primaryTrack", Pt(C.primary.main, 0.62)), le(C.Slider, "secondaryTrack", Pt(C.secondary.main, 0.62)), le(C.Slider, "errorTrack", Pt(C.error.main, 0.62)), le(C.Slider, "infoTrack", Pt(C.info.main, 0.62)), le(C.Slider, "successTrack", Pt(C.success.main, 0.62)), le(C.Slider, "warningTrack", Pt(C.warning.main, 0.62));
4009
+ le(C.Alert, "errorColor", Et(C.error.light, 0.6)), le(C.Alert, "infoColor", Et(C.info.light, 0.6)), le(C.Alert, "successColor", Et(C.success.light, 0.6)), le(C.Alert, "warningColor", Et(C.warning.light, 0.6)), le(C.Alert, "errorFilledBg", O("palette-error-main")), le(C.Alert, "infoFilledBg", O("palette-info-main")), le(C.Alert, "successFilledBg", O("palette-success-main")), le(C.Alert, "warningFilledBg", O("palette-warning-main")), le(C.Alert, "errorFilledColor", co(() => C.getContrastText(C.error.main))), le(C.Alert, "infoFilledColor", co(() => C.getContrastText(C.info.main))), le(C.Alert, "successFilledColor", co(() => C.getContrastText(C.success.main))), le(C.Alert, "warningFilledColor", co(() => C.getContrastText(C.warning.main))), le(C.Alert, "errorStandardBg", Pt(C.error.light, 0.9)), le(C.Alert, "infoStandardBg", Pt(C.info.light, 0.9)), le(C.Alert, "successStandardBg", Pt(C.success.light, 0.9)), le(C.Alert, "warningStandardBg", Pt(C.warning.light, 0.9)), le(C.Alert, "errorIconColor", O("palette-error-main")), le(C.Alert, "infoIconColor", O("palette-info-main")), le(C.Alert, "successIconColor", O("palette-success-main")), le(C.Alert, "warningIconColor", O("palette-warning-main")), le(C.AppBar, "defaultBg", O("palette-grey-100")), le(C.Avatar, "defaultBg", O("palette-grey-400")), le(C.Button, "inheritContainedBg", O("palette-grey-300")), le(C.Button, "inheritContainedHoverBg", O("palette-grey-A100")), le(C.Chip, "defaultBorder", O("palette-grey-400")), le(C.Chip, "defaultAvatarColor", O("palette-grey-700")), le(C.Chip, "defaultIconColor", O("palette-grey-700")), le(C.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), le(C.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), le(C.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), le(C.LinearProgress, "primaryBg", Pt(C.primary.main, 0.62)), le(C.LinearProgress, "secondaryBg", Pt(C.secondary.main, 0.62)), le(C.LinearProgress, "errorBg", Pt(C.error.main, 0.62)), le(C.LinearProgress, "infoBg", Pt(C.info.main, 0.62)), le(C.LinearProgress, "successBg", Pt(C.success.main, 0.62)), le(C.LinearProgress, "warningBg", Pt(C.warning.main, 0.62)), le(C.Skeleton, "bg", `rgba(${O("palette-text-primaryChannel")} / 0.11)`), le(C.Slider, "primaryTrack", Pt(C.primary.main, 0.62)), le(C.Slider, "secondaryTrack", Pt(C.secondary.main, 0.62)), le(C.Slider, "errorTrack", Pt(C.error.main, 0.62)), le(C.Slider, "infoTrack", Pt(C.info.main, 0.62)), le(C.Slider, "successTrack", Pt(C.success.main, 0.62)), le(C.Slider, "warningTrack", Pt(C.warning.main, 0.62));
4010
4010
  const L = Sl(C.background.default, 0.8);
4011
- le(C.SnackbarContent, "bg", L), le(C.SnackbarContent, "color", co(() => C.getContrastText(L))), le(C.SpeedDialAction, "fabHoverBg", Sl(C.background.paper, 0.15)), le(C.StepConnector, "border", R("palette-grey-400")), le(C.StepContent, "border", R("palette-grey-400")), le(C.Switch, "defaultColor", R("palette-common-white")), le(C.Switch, "defaultDisabledColor", R("palette-grey-100")), le(C.Switch, "primaryDisabledColor", Pt(C.primary.main, 0.62)), le(C.Switch, "secondaryDisabledColor", Pt(C.secondary.main, 0.62)), le(C.Switch, "errorDisabledColor", Pt(C.error.main, 0.62)), le(C.Switch, "infoDisabledColor", Pt(C.info.main, 0.62)), le(C.Switch, "successDisabledColor", Pt(C.success.main, 0.62)), le(C.Switch, "warningDisabledColor", Pt(C.warning.main, 0.62)), le(C.TableCell, "border", Pt(xl(C.divider, 1), 0.88)), le(C.Tooltip, "bg", xl(C.grey[700], 0.92));
4011
+ le(C.SnackbarContent, "bg", L), le(C.SnackbarContent, "color", co(() => C.getContrastText(L))), le(C.SpeedDialAction, "fabHoverBg", Sl(C.background.paper, 0.15)), le(C.StepConnector, "border", O("palette-grey-400")), le(C.StepContent, "border", O("palette-grey-400")), le(C.Switch, "defaultColor", O("palette-common-white")), le(C.Switch, "defaultDisabledColor", O("palette-grey-100")), le(C.Switch, "primaryDisabledColor", Pt(C.primary.main, 0.62)), le(C.Switch, "secondaryDisabledColor", Pt(C.secondary.main, 0.62)), le(C.Switch, "errorDisabledColor", Pt(C.error.main, 0.62)), le(C.Switch, "infoDisabledColor", Pt(C.info.main, 0.62)), le(C.Switch, "successDisabledColor", Pt(C.success.main, 0.62)), le(C.Switch, "warningDisabledColor", Pt(C.warning.main, 0.62)), le(C.TableCell, "border", Pt(xl(C.divider, 1), 0.88)), le(C.Tooltip, "bg", xl(C.grey[700], 0.92));
4012
4012
  }
4013
4013
  if (C.mode === "dark") {
4014
- le(C.Alert, "errorColor", Pt(C.error.light, 0.6)), le(C.Alert, "infoColor", Pt(C.info.light, 0.6)), le(C.Alert, "successColor", Pt(C.success.light, 0.6)), le(C.Alert, "warningColor", Pt(C.warning.light, 0.6)), le(C.Alert, "errorFilledBg", R("palette-error-dark")), le(C.Alert, "infoFilledBg", R("palette-info-dark")), le(C.Alert, "successFilledBg", R("palette-success-dark")), le(C.Alert, "warningFilledBg", R("palette-warning-dark")), le(C.Alert, "errorFilledColor", co(() => C.getContrastText(C.error.dark))), le(C.Alert, "infoFilledColor", co(() => C.getContrastText(C.info.dark))), le(C.Alert, "successFilledColor", co(() => C.getContrastText(C.success.dark))), le(C.Alert, "warningFilledColor", co(() => C.getContrastText(C.warning.dark))), le(C.Alert, "errorStandardBg", Et(C.error.light, 0.9)), le(C.Alert, "infoStandardBg", Et(C.info.light, 0.9)), le(C.Alert, "successStandardBg", Et(C.success.light, 0.9)), le(C.Alert, "warningStandardBg", Et(C.warning.light, 0.9)), le(C.Alert, "errorIconColor", R("palette-error-main")), le(C.Alert, "infoIconColor", R("palette-info-main")), le(C.Alert, "successIconColor", R("palette-success-main")), le(C.Alert, "warningIconColor", R("palette-warning-main")), le(C.AppBar, "defaultBg", R("palette-grey-900")), le(C.AppBar, "darkBg", R("palette-background-paper")), le(C.AppBar, "darkColor", R("palette-text-primary")), le(C.Avatar, "defaultBg", R("palette-grey-600")), le(C.Button, "inheritContainedBg", R("palette-grey-800")), le(C.Button, "inheritContainedHoverBg", R("palette-grey-700")), le(C.Chip, "defaultBorder", R("palette-grey-700")), le(C.Chip, "defaultAvatarColor", R("palette-grey-300")), le(C.Chip, "defaultIconColor", R("palette-grey-300")), le(C.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), le(C.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), le(C.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), le(C.LinearProgress, "primaryBg", Et(C.primary.main, 0.5)), le(C.LinearProgress, "secondaryBg", Et(C.secondary.main, 0.5)), le(C.LinearProgress, "errorBg", Et(C.error.main, 0.5)), le(C.LinearProgress, "infoBg", Et(C.info.main, 0.5)), le(C.LinearProgress, "successBg", Et(C.success.main, 0.5)), le(C.LinearProgress, "warningBg", Et(C.warning.main, 0.5)), le(C.Skeleton, "bg", `rgba(${R("palette-text-primaryChannel")} / 0.13)`), le(C.Slider, "primaryTrack", Et(C.primary.main, 0.5)), le(C.Slider, "secondaryTrack", Et(C.secondary.main, 0.5)), le(C.Slider, "errorTrack", Et(C.error.main, 0.5)), le(C.Slider, "infoTrack", Et(C.info.main, 0.5)), le(C.Slider, "successTrack", Et(C.success.main, 0.5)), le(C.Slider, "warningTrack", Et(C.warning.main, 0.5));
4014
+ le(C.Alert, "errorColor", Pt(C.error.light, 0.6)), le(C.Alert, "infoColor", Pt(C.info.light, 0.6)), le(C.Alert, "successColor", Pt(C.success.light, 0.6)), le(C.Alert, "warningColor", Pt(C.warning.light, 0.6)), le(C.Alert, "errorFilledBg", O("palette-error-dark")), le(C.Alert, "infoFilledBg", O("palette-info-dark")), le(C.Alert, "successFilledBg", O("palette-success-dark")), le(C.Alert, "warningFilledBg", O("palette-warning-dark")), le(C.Alert, "errorFilledColor", co(() => C.getContrastText(C.error.dark))), le(C.Alert, "infoFilledColor", co(() => C.getContrastText(C.info.dark))), le(C.Alert, "successFilledColor", co(() => C.getContrastText(C.success.dark))), le(C.Alert, "warningFilledColor", co(() => C.getContrastText(C.warning.dark))), le(C.Alert, "errorStandardBg", Et(C.error.light, 0.9)), le(C.Alert, "infoStandardBg", Et(C.info.light, 0.9)), le(C.Alert, "successStandardBg", Et(C.success.light, 0.9)), le(C.Alert, "warningStandardBg", Et(C.warning.light, 0.9)), le(C.Alert, "errorIconColor", O("palette-error-main")), le(C.Alert, "infoIconColor", O("palette-info-main")), le(C.Alert, "successIconColor", O("palette-success-main")), le(C.Alert, "warningIconColor", O("palette-warning-main")), le(C.AppBar, "defaultBg", O("palette-grey-900")), le(C.AppBar, "darkBg", O("palette-background-paper")), le(C.AppBar, "darkColor", O("palette-text-primary")), le(C.Avatar, "defaultBg", O("palette-grey-600")), le(C.Button, "inheritContainedBg", O("palette-grey-800")), le(C.Button, "inheritContainedHoverBg", O("palette-grey-700")), le(C.Chip, "defaultBorder", O("palette-grey-700")), le(C.Chip, "defaultAvatarColor", O("palette-grey-300")), le(C.Chip, "defaultIconColor", O("palette-grey-300")), le(C.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), le(C.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), le(C.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), le(C.LinearProgress, "primaryBg", Et(C.primary.main, 0.5)), le(C.LinearProgress, "secondaryBg", Et(C.secondary.main, 0.5)), le(C.LinearProgress, "errorBg", Et(C.error.main, 0.5)), le(C.LinearProgress, "infoBg", Et(C.info.main, 0.5)), le(C.LinearProgress, "successBg", Et(C.success.main, 0.5)), le(C.LinearProgress, "warningBg", Et(C.warning.main, 0.5)), le(C.Skeleton, "bg", `rgba(${O("palette-text-primaryChannel")} / 0.13)`), le(C.Slider, "primaryTrack", Et(C.primary.main, 0.5)), le(C.Slider, "secondaryTrack", Et(C.secondary.main, 0.5)), le(C.Slider, "errorTrack", Et(C.error.main, 0.5)), le(C.Slider, "infoTrack", Et(C.info.main, 0.5)), le(C.Slider, "successTrack", Et(C.success.main, 0.5)), le(C.Slider, "warningTrack", Et(C.warning.main, 0.5));
4015
4015
  const L = Sl(C.background.default, 0.98);
4016
- le(C.SnackbarContent, "bg", L), le(C.SnackbarContent, "color", co(() => C.getContrastText(L))), le(C.SpeedDialAction, "fabHoverBg", Sl(C.background.paper, 0.15)), le(C.StepConnector, "border", R("palette-grey-600")), le(C.StepContent, "border", R("palette-grey-600")), le(C.Switch, "defaultColor", R("palette-grey-300")), le(C.Switch, "defaultDisabledColor", R("palette-grey-600")), le(C.Switch, "primaryDisabledColor", Et(C.primary.main, 0.55)), le(C.Switch, "secondaryDisabledColor", Et(C.secondary.main, 0.55)), le(C.Switch, "errorDisabledColor", Et(C.error.main, 0.55)), le(C.Switch, "infoDisabledColor", Et(C.info.main, 0.55)), le(C.Switch, "successDisabledColor", Et(C.success.main, 0.55)), le(C.Switch, "warningDisabledColor", Et(C.warning.main, 0.55)), le(C.TableCell, "border", Et(xl(C.divider, 1), 0.68)), le(C.Tooltip, "bg", xl(C.grey[700], 0.92));
4016
+ le(C.SnackbarContent, "bg", L), le(C.SnackbarContent, "color", co(() => C.getContrastText(L))), le(C.SpeedDialAction, "fabHoverBg", Sl(C.background.paper, 0.15)), le(C.StepConnector, "border", O("palette-grey-600")), le(C.StepContent, "border", O("palette-grey-600")), le(C.Switch, "defaultColor", O("palette-grey-300")), le(C.Switch, "defaultDisabledColor", O("palette-grey-600")), le(C.Switch, "primaryDisabledColor", Et(C.primary.main, 0.55)), le(C.Switch, "secondaryDisabledColor", Et(C.secondary.main, 0.55)), le(C.Switch, "errorDisabledColor", Et(C.error.main, 0.55)), le(C.Switch, "infoDisabledColor", Et(C.info.main, 0.55)), le(C.Switch, "successDisabledColor", Et(C.success.main, 0.55)), le(C.Switch, "warningDisabledColor", Et(C.warning.main, 0.55)), le(C.TableCell, "border", Et(xl(C.divider, 1), 0.68)), le(C.Tooltip, "bg", xl(C.grey[700], 0.92));
4017
4017
  }
4018
4018
  xo(C.background, "default"), xo(C.background, "paper"), xo(C.common, "background"), xo(C.common, "onBackground"), xo(C, "divider"), Object.keys(C).forEach((L) => {
4019
4019
  const j = C[L];
4020
4020
  L !== "tonalOffset" && j && typeof j == "object" && (j.main && le(C[L], "mainChannel", fi(hi(j.main))), j.light && le(C[L], "lightChannel", fi(hi(j.light))), j.dark && le(C[L], "darkChannel", fi(hi(j.dark))), j.contrastText && le(C[L], "contrastTextChannel", fi(hi(j.contrastText))), L === "text" && (xo(C[L], "primary"), xo(C[L], "secondary")), L === "action" && (j.active && xo(C[L], "active"), j.selected && xo(C[L], "selected")));
4021
4021
  });
4022
- }), I = t.reduce((O, C) => pn(O, C), I);
4022
+ }), I = t.reduce((R, C) => pn(R, C), I);
4023
4023
  const P = {
4024
4024
  prefix: i,
4025
4025
  disableCssColorScheme: s,
@@ -4030,8 +4030,8 @@ function eE(e = {}, ...t) {
4030
4030
  generateThemeVars: D,
4031
4031
  generateStyleSheets: T
4032
4032
  } = s0(I, P);
4033
- return I.vars = M, Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([O, C]) => {
4034
- I[O] = C;
4033
+ return I.vars = M, Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([R, C]) => {
4034
+ I[R] = C;
4035
4035
  }), I.generateThemeVars = D, I.generateStyleSheets = T, I.generateSpacing = function() {
4036
4036
  return Jm(u.spacing, pd(this));
4037
4037
  }, I.getColorSchemeSelector = i0(a), I.spacing = I.generateSpacing(), I.shouldSkipGeneratingVar = l, I.unstable_sxConfig = {
@@ -4584,7 +4584,7 @@ function gE(e) {
4584
4584
  shiftStep: w = 10,
4585
4585
  tabIndex: x,
4586
4586
  value: v
4587
- } = e, S = p.useRef(void 0), [I, P] = p.useState(-1), [M, D] = p.useState(-1), [T, O] = p.useState(!1), C = p.useRef(0), R = p.useRef(null), [L, j] = er({
4587
+ } = e, S = p.useRef(void 0), [I, P] = p.useState(-1), [M, D] = p.useState(-1), [T, R] = p.useState(!1), C = p.useRef(0), O = p.useRef(null), [L, j] = er({
4588
4588
  controlled: v,
4589
4589
  default: o ?? c,
4590
4590
  name: "Slider"
@@ -4596,7 +4596,7 @@ function gE(e) {
4596
4596
  value: pe,
4597
4597
  name: u
4598
4598
  }
4599
- }), R.current = pe, d(Ee, pe, Ie);
4599
+ }), O.current = pe, d(Ee, pe, Ie);
4600
4600
  }), $ = Array.isArray(L);
4601
4601
  let N = $ ? L.slice().sort(yb) : [L];
4602
4602
  N = N.map((de) => de == null ? c : rs(de, c, a));
@@ -4628,7 +4628,7 @@ function gE(e) {
4628
4628
  activeIndex: ke
4629
4629
  });
4630
4630
  }
4631
- j(ve), k(Ie), H && !Tl(ve, L) && H(de, ve, Ie), f && f(de, R.current ?? ve);
4631
+ j(ve), k(Ie), H && !Tl(ve, L) && H(de, ve, Ie), f && f(de, O.current ?? ve);
4632
4632
  }, W = (de) => (pe) => {
4633
4633
  if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(pe.key)) {
4634
4634
  pe.preventDefault();
@@ -4733,10 +4733,10 @@ function gE(e) {
4733
4733
  sliderRef: F,
4734
4734
  activeIndex: be,
4735
4735
  setActive: P
4736
- }), j(Ie), !T && C.current > cE && O(!0), H && !Tl(Ie, L) && H(de, Ie, be);
4736
+ }), j(Ie), !T && C.current > cE && R(!0), H && !Tl(Ie, L) && H(de, Ie, be);
4737
4737
  }), K = ze((de) => {
4738
4738
  const pe = El(de, S);
4739
- if (O(!1), !pe)
4739
+ if (R(!1), !pe)
4740
4740
  return;
4741
4741
  const {
4742
4742
  newValue: Ie
@@ -4744,7 +4744,7 @@ function gE(e) {
4744
4744
  finger: pe,
4745
4745
  move: !0
4746
4746
  });
4747
- P(-1), de.type === "touchend" && D(-1), f && f(de, R.current ?? Ie), S.current = void 0, ne();
4747
+ P(-1), de.type === "touchend" && D(-1), f && f(de, O.current ?? Ie), S.current = void 0, ne();
4748
4748
  }), ee = ze((de) => {
4749
4749
  if (r)
4750
4750
  return;
@@ -5537,9 +5537,9 @@ const IE = te("span", {
5537
5537
  onChange: M,
5538
5538
  onChangeCommitted: D,
5539
5539
  orientation: T = "horizontal",
5540
- shiftStep: O = 10,
5540
+ shiftStep: R = 10,
5541
5541
  size: C = "medium",
5542
- step: R = 1,
5542
+ step: O = 1,
5543
5543
  scale: L = ph,
5544
5544
  slotProps: j,
5545
5545
  slots: H,
@@ -5561,8 +5561,8 @@ const IE = te("span", {
5561
5561
  marks: v,
5562
5562
  color: f,
5563
5563
  size: C,
5564
- step: R,
5565
- shiftStep: O,
5564
+ step: O,
5565
+ shiftStep: R,
5566
5566
  scale: L,
5567
5567
  track: N,
5568
5568
  valueLabelDisplay: _,
@@ -6320,12 +6320,12 @@ const Sb = /* @__PURE__ */ p.forwardRef(function(t, o) {
6320
6320
  };
6321
6321
  I.style.width = M.width, I.value = S.value || t.placeholder || "x", I.value.slice(-1) === `
6322
6322
  ` && (I.value += " ");
6323
- const D = M.boxSizing, T = Ol(M.paddingBottom) + Ol(M.paddingTop), O = Ol(M.borderBottomWidth) + Ol(M.borderTopWidth), C = I.scrollHeight;
6323
+ const D = M.boxSizing, T = Ol(M.paddingBottom) + Ol(M.paddingTop), R = Ol(M.borderBottomWidth) + Ol(M.borderTopWidth), C = I.scrollHeight;
6324
6324
  I.value = "x";
6325
- const R = I.scrollHeight;
6325
+ const O = I.scrollHeight;
6326
6326
  let L = C;
6327
- i && (L = Math.max(Number(i) * R, L)), s && (L = Math.min(Number(s) * R, L)), L = Math.max(L, R);
6328
- const j = L + (D === "border-box" ? T + O : 0), H = Math.abs(L - C) <= 1;
6327
+ i && (L = Math.max(Number(i) * O, L)), s && (L = Math.min(Number(s) * O, L)), L = Math.max(L, O);
6328
+ const j = L + (D === "border-box" ? T + R : 0), H = Math.abs(L - C) <= 1;
6329
6329
  return {
6330
6330
  outerHeightStyle: j,
6331
6331
  overflowing: H
@@ -6677,9 +6677,9 @@ const Ua = (e, t) => {
6677
6677
  maxRows: M,
6678
6678
  minRows: D,
6679
6679
  multiline: T = !1,
6680
- name: O,
6680
+ name: R,
6681
6681
  onBlur: C,
6682
- onChange: R,
6682
+ onChange: O,
6683
6683
  onClick: L,
6684
6684
  onFocus: j,
6685
6685
  onKeyDown: H,
@@ -6734,7 +6734,7 @@ const Ua = (e, t) => {
6734
6734
  value: Ne.value
6735
6735
  });
6736
6736
  }
6737
- S.onChange && S.onChange(fe, ...ke), R && R(fe, ...ke);
6737
+ S.onChange && S.onChange(fe, ...ke), O && O(fe, ...ke);
6738
6738
  };
6739
6739
  p.useEffect(() => {
6740
6740
  ae(X.current);
@@ -6806,7 +6806,7 @@ const Ua = (e, t) => {
6806
6806
  disabled: se.disabled,
6807
6807
  id: x,
6808
6808
  onAnimationStart: de,
6809
- name: O,
6809
+ name: R,
6810
6810
  placeholder: N,
6811
6811
  readOnly: A,
6812
6812
  required: se.required,
@@ -9308,12 +9308,12 @@ const bP = (e) => {
9308
9308
  return s && p.Children.forEach(s, (A) => {
9309
9309
  zl(A, ["Input", "Select"]) && (na(A.props, !0) || na(A.props.inputProps, !0)) && (N = !0);
9310
9310
  }), N;
9311
- }), [T, O] = p.useState(!1);
9312
- c && T && O(!1);
9311
+ }), [T, R] = p.useState(!1);
9312
+ c && T && R(!1);
9313
9313
  const C = d !== void 0 && !c ? d : T;
9314
- let R;
9314
+ let O;
9315
9315
  const L = p.useRef(!1);
9316
- process.env.NODE_ENV !== "production" && (R = () => (L.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
9316
+ process.env.NODE_ENV !== "production" && (O = () => (L.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
9317
9317
  `)), L.current = !0, () => {
9318
9318
  L.current = !1;
9319
9319
  }));
@@ -9333,17 +9333,17 @@ const bP = (e) => {
9333
9333
  hiddenLabel: h,
9334
9334
  size: g,
9335
9335
  onBlur: () => {
9336
- O(!1);
9336
+ R(!1);
9337
9337
  },
9338
9338
  onFocus: () => {
9339
- O(!0);
9339
+ R(!0);
9340
9340
  },
9341
9341
  onEmpty: H,
9342
9342
  onFilled: j,
9343
- registerEffect: R,
9343
+ registerEffect: O,
9344
9344
  required: y,
9345
9345
  variant: w
9346
- }), [I, l, c, u, M, C, f, h, R, H, j, y, g, w]);
9346
+ }), [I, l, c, u, M, C, f, h, O, H, j, y, g, w]);
9347
9347
  return /* @__PURE__ */ b.jsx(Ji.Provider, {
9348
9348
  value: $,
9349
9349
  children: /* @__PURE__ */ b.jsx(yP, {
@@ -9816,10 +9816,10 @@ const Sd = /* @__PURE__ */ p.forwardRef(function(t, o) {
9816
9816
  else if (P === "End")
9817
9817
  S.preventDefault(), ni(I, null, u, c, Sh);
9818
9818
  else if (P.length === 1) {
9819
- const T = y.current, O = P.toLowerCase(), C = performance.now();
9820
- T.keys.length > 0 && (C - T.lastTime > 500 ? (T.keys = [], T.repeating = !0, T.previousKeyMatched = !0) : T.repeating && O !== T.keys[0] && (T.repeating = !1)), T.lastTime = C, T.keys.push(O);
9821
- const R = D && !T.repeating && Mb(D, T);
9822
- T.previousKeyMatched && (R || ni(I, D, !1, c, Gc, T)) ? S.preventDefault() : T.previousKeyMatched = !1;
9819
+ const T = y.current, R = P.toLowerCase(), C = performance.now();
9820
+ T.keys.length > 0 && (C - T.lastTime > 500 ? (T.keys = [], T.repeating = !0, T.previousKeyMatched = !0) : T.repeating && R !== T.keys[0] && (T.repeating = !1)), T.lastTime = C, T.keys.push(R);
9821
+ const O = D && !T.repeating && Mb(D, T);
9822
+ T.previousKeyMatched && (O || ni(I, D, !1, c, Gc, T)) ? S.preventDefault() : T.previousKeyMatched = !1;
9823
9823
  }
9824
9824
  d && d(S);
9825
9825
  }, w = rt(m, o);
@@ -10568,7 +10568,7 @@ const LP = {
10568
10568
  const A = P.current;
10569
10569
  N === void 0 ? $(A) : $(A, N);
10570
10570
  }
10571
- }, T = D(d), O = D(($, N) => {
10571
+ }, T = D(d), R = D(($, N) => {
10572
10572
  $b($);
10573
10573
  const {
10574
10574
  duration: A,
@@ -10590,7 +10590,7 @@ const LP = {
10590
10590
  delay: _,
10591
10591
  easing: G
10592
10592
  })].join(","), c && c($, N);
10593
- }), C = D(u), R = D(m), L = D(($) => {
10593
+ }), C = D(u), O = D(m), L = D(($) => {
10594
10594
  const {
10595
10595
  duration: N,
10596
10596
  delay: A,
@@ -10618,12 +10618,12 @@ const LP = {
10618
10618
  appear: s,
10619
10619
  in: a,
10620
10620
  nodeRef: P,
10621
- onEnter: O,
10621
+ onEnter: R,
10622
10622
  onEntered: C,
10623
10623
  onEntering: T,
10624
10624
  onExit: L,
10625
10625
  onExited: j,
10626
- onExiting: R,
10626
+ onExiting: O,
10627
10627
  addEndListener: H,
10628
10628
  timeout: g === "auto" ? null : g,
10629
10629
  ...x,
@@ -10912,8 +10912,8 @@ function Ni(e) {
10912
10912
  return;
10913
10913
  let T = [];
10914
10914
  if ((S.activeElement === u.current || S.activeElement === d.current) && (T = i(y.current)), T.length > 0) {
10915
- const O = !!(w.current?.shiftKey && w.current?.key === "Tab"), C = T[0], R = T[T.length - 1];
10916
- typeof C != "string" && typeof R != "string" && (O ? R.focus() : C.focus());
10915
+ const R = !!(w.current?.shiftKey && w.current?.key === "Tab"), C = T[0], O = T[T.length - 1];
10916
+ typeof C != "string" && typeof O != "string" && (R ? O.focus() : C.focus());
10917
10917
  } else
10918
10918
  D.focus();
10919
10919
  };
@@ -11101,7 +11101,7 @@ const XP = {
11101
11101
  mode: "enter"
11102
11102
  });
11103
11103
  H.style.webkitTransition = r.transitions.create("opacity", N), H.style.transition = r.transitions.create("opacity", N), d && d(H, $);
11104
- }), O = M(f), C = M(g), R = M((H) => {
11104
+ }), R = M(f), C = M(g), O = M((H) => {
11105
11105
  const $ = sa({
11106
11106
  style: w,
11107
11107
  timeout: x,
@@ -11118,9 +11118,9 @@ const XP = {
11118
11118
  in: u,
11119
11119
  nodeRef: I,
11120
11120
  onEnter: T,
11121
- onEntered: O,
11121
+ onEntered: R,
11122
11122
  onEntering: D,
11123
- onExit: R,
11123
+ onExit: O,
11124
11124
  onExited: L,
11125
11125
  onExiting: C,
11126
11126
  addEndListener: j,
@@ -11435,18 +11435,18 @@ function tT(e) {
11435
11435
  Rl.add(I(), $), m.current && P();
11436
11436
  }), D = () => Rl.isTopModal(I()), T = ze(($) => {
11437
11437
  h.current = $, $ && (u && D() ? P() : m.current && Ei(m.current, v));
11438
- }), O = p.useCallback(() => {
11438
+ }), R = p.useCallback(() => {
11439
11439
  Rl.remove(I(), v);
11440
11440
  }, [v]);
11441
11441
  p.useEffect(() => () => {
11442
- O();
11443
- }, [O]), p.useEffect(() => {
11444
- u ? M() : (!x || !s) && O();
11445
- }, [u, O, x, s, M]);
11442
+ R();
11443
+ }, [R]), p.useEffect(() => {
11444
+ u ? M() : (!x || !s) && R();
11445
+ }, [u, R, x, s, M]);
11446
11446
  const C = ($) => (N) => {
11447
11447
  $.onKeyDown?.(N), !(N.key !== "Escape" || N.which === 229 || // Wait until IME is settled.
11448
11448
  !D()) && (o || (N.stopPropagation(), c && c(N, "escapeKeyDown")));
11449
- }, R = ($) => (N) => {
11449
+ }, O = ($) => (N) => {
11450
11450
  $.onClick?.(N), N.target === N.currentTarget && c && c(N, "backdropClick");
11451
11451
  };
11452
11452
  return {
@@ -11475,7 +11475,7 @@ function tT(e) {
11475
11475
  return {
11476
11476
  "aria-hidden": !0,
11477
11477
  ...N,
11478
- onClick: R(N),
11478
+ onClick: O(N),
11479
11479
  open: u
11480
11480
  };
11481
11481
  },
@@ -11483,7 +11483,7 @@ function tT(e) {
11483
11483
  const $ = () => {
11484
11484
  w(!1), i && i();
11485
11485
  }, N = () => {
11486
- w(!0), l && l(), s && O();
11486
+ w(!0), l && l(), s && R();
11487
11487
  };
11488
11488
  return {
11489
11489
  onEnter: Ch($, a?.props.onEnter ?? Oh),
@@ -11568,9 +11568,9 @@ const oT = (e) => {
11568
11568
  onClose: M,
11569
11569
  onTransitionEnter: D,
11570
11570
  onTransitionExited: T,
11571
- open: O,
11571
+ open: R,
11572
11572
  slotProps: C = {},
11573
- slots: R = {},
11573
+ slots: O = {},
11574
11574
  // eslint-disable-next-line react/prop-types
11575
11575
  theme: L,
11576
11576
  ...j
@@ -11611,7 +11611,7 @@ const oT = (e) => {
11611
11611
  slots: {
11612
11612
  root: h.Root,
11613
11613
  backdrop: h.Backdrop,
11614
- ...R
11614
+ ...O
11615
11615
  },
11616
11616
  slotProps: {
11617
11617
  ...m,
@@ -11643,7 +11643,7 @@ const oT = (e) => {
11643
11643
  className: ce(i?.className, U?.backdrop),
11644
11644
  ownerState: B
11645
11645
  });
11646
- return !P && !O && (!F || k) ? null : /* @__PURE__ */ b.jsx(Fi, {
11646
+ return !P && !R && (!F || k) ? null : /* @__PURE__ */ b.jsx(Fi, {
11647
11647
  ref: _,
11648
11648
  container: d,
11649
11649
  disablePortal: x,
@@ -11656,7 +11656,7 @@ const oT = (e) => {
11656
11656
  disableAutoFocus: y,
11657
11657
  disableRestoreFocus: v,
11658
11658
  isEnabled: G,
11659
- open: O,
11659
+ open: R,
11660
11660
  children: /* @__PURE__ */ p.cloneElement(u, z)
11661
11661
  })]
11662
11662
  })
@@ -12055,7 +12055,7 @@ const uT = (e) => {
12055
12055
  // TODO: remove in v7
12056
12056
  disableScrollLock: M = !1,
12057
12057
  ...D
12058
- } = r, T = p.useRef(), O = {
12058
+ } = r, T = p.useRef(), R = {
12059
12059
  ...r,
12060
12060
  anchorOrigin: l,
12061
12061
  anchorReference: c,
@@ -12065,7 +12065,7 @@ const uT = (e) => {
12065
12065
  TransitionComponent: S,
12066
12066
  transitionDuration: I,
12067
12067
  TransitionProps: P
12068
- }, C = uT(O), R = p.useCallback(() => {
12068
+ }, C = uT(R), O = p.useCallback(() => {
12069
12069
  if (c === "anchorPosition")
12070
12070
  return process.env.NODE_ENV !== "production" && (a || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), a;
12071
12071
  const Y = mi(i), re = Y && Y.nodeType === 1 ? Y : It(T.current).body, K = re.getBoundingClientRect();
@@ -12092,7 +12092,7 @@ const uT = (e) => {
12092
12092
  left: null,
12093
12093
  transformOrigin: kh(K)
12094
12094
  };
12095
- const ee = R();
12095
+ const ee = O();
12096
12096
  let ne = ee.top - K.vertical, se = ee.left - K.horizontal;
12097
12097
  const Se = ne + re.height, Pe = se + re.width, ae = Do(mi(i)), Ge = ae.innerHeight - m, Te = ae.innerWidth - m;
12098
12098
  if (m !== null && ne < m) {
@@ -12115,7 +12115,7 @@ const uT = (e) => {
12115
12115
  left: `${Math.round(se)}px`,
12116
12116
  transformOrigin: kh(K)
12117
12117
  };
12118
- }, [i, c, R, L, m]), [H, $] = p.useState(y), N = p.useCallback(() => {
12118
+ }, [i, c, O, L, m]), [H, $] = p.useState(y), N = p.useCallback(() => {
12119
12119
  const Y = T.current;
12120
12120
  if (!Y)
12121
12121
  return;
@@ -12158,7 +12158,7 @@ const uT = (e) => {
12158
12158
  }, [F, B] = Xe("transition", {
12159
12159
  elementType: Es,
12160
12160
  externalForwardedProps: k,
12161
- ownerState: O,
12161
+ ownerState: R,
12162
12162
  getSlotProps: (Y) => ({
12163
12163
  ...Y,
12164
12164
  onEntering: (re, K) => {
@@ -12191,14 +12191,14 @@ const uT = (e) => {
12191
12191
  backdrop: w.backdrop
12192
12192
  },
12193
12193
  slotProps: {
12194
- backdrop: Eb(typeof x.backdrop == "function" ? x.backdrop(O) : x.backdrop, {
12194
+ backdrop: Eb(typeof x.backdrop == "function" ? x.backdrop(R) : x.backdrop, {
12195
12195
  invisible: !0
12196
12196
  })
12197
12197
  },
12198
12198
  container: U,
12199
12199
  open: y
12200
12200
  },
12201
- ownerState: O,
12201
+ ownerState: R,
12202
12202
  className: ce(C.root, d)
12203
12203
  }), [Z, X] = Xe("paper", {
12204
12204
  ref: T,
@@ -12212,7 +12212,7 @@ const uT = (e) => {
12212
12212
  opacity: 0
12213
12213
  }
12214
12214
  },
12215
- ownerState: O
12215
+ ownerState: R
12216
12216
  });
12217
12217
  return /* @__PURE__ */ b.jsx(z, {
12218
12218
  ...Q,
@@ -12502,17 +12502,17 @@ const fT = {
12502
12502
  transitionDuration: m,
12503
12503
  TransitionProps: g,
12504
12504
  variant: w
12505
- }, M = gT(P), D = s && !a && d, T = p.useRef(null), O = (G, k) => {
12505
+ }, M = gT(P), D = s && !a && d, T = p.useRef(null), R = (G, k) => {
12506
12506
  T.current && T.current.adjustStyleForScrollbar(G, {
12507
12507
  direction: I ? "rtl" : "ltr"
12508
12508
  }), y && y(G, k);
12509
12509
  }, C = (G) => {
12510
12510
  G.key === "Tab" && (G.preventDefault(), u && u(G, "tabKeyDown"));
12511
12511
  };
12512
- let R = -1;
12512
+ let O = -1;
12513
12513
  p.Children.map(i, (G, k) => {
12514
12514
  /* @__PURE__ */ p.isValidElement(G) && (process.env.NODE_ENV !== "production" && Or.isFragment(G) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
12515
- `)), G.props.disabled || (w === "selectedMenu" && G.props.selected || R === -1) && (R = k));
12515
+ `)), G.props.disabled || (w === "selectedMenu" && G.props.selected || O === -1) && (O = k));
12516
12516
  });
12517
12517
  const L = {
12518
12518
  slots: x,
@@ -12569,7 +12569,7 @@ const fT = {
12569
12569
  transition: {
12570
12570
  ..._,
12571
12571
  onEntering: (...G) => {
12572
- O(...G), _?.onEntering?.(...G);
12572
+ R(...G), _?.onEntering?.(...G);
12573
12573
  }
12574
12574
  }
12575
12575
  },
@@ -12581,7 +12581,7 @@ const fT = {
12581
12581
  classes: h,
12582
12582
  children: /* @__PURE__ */ b.jsx(N, {
12583
12583
  actions: T,
12584
- autoFocus: s && (R === -1 || a),
12584
+ autoFocus: s && (O === -1 || a),
12585
12585
  autoFocusItem: D,
12586
12586
  variant: w,
12587
12587
  ...A,
@@ -13029,9 +13029,9 @@ const IT = (e) => {
13029
13029
  onClose: M,
13030
13030
  onFocus: D,
13031
13031
  onOpen: T,
13032
- open: O,
13032
+ open: R,
13033
13033
  readOnly: C,
13034
- renderValue: R,
13034
+ renderValue: O,
13035
13035
  required: L,
13036
13036
  SelectDisplayProps: j = {},
13037
13037
  tabIndex: H,
@@ -13045,12 +13045,12 @@ const IT = (e) => {
13045
13045
  default: d,
13046
13046
  name: "Select"
13047
13047
  }), [F, B] = er({
13048
- controlled: O,
13048
+ controlled: R,
13049
13049
  default: u,
13050
13050
  name: "Select"
13051
13051
  }), U = p.useRef(null), z = p.useRef(null), [q, W] = p.useState(null), {
13052
13052
  current: Q
13053
- } = p.useRef(O != null), [Z, X] = p.useState(), Y = rt(o, g), re = p.useCallback((Re) => {
13053
+ } = p.useRef(R != null), [Z, X] = p.useState(), Y = rt(o, g), re = p.useCallback((Re) => {
13054
13054
  z.current = Re, Re && W(Re);
13055
13055
  }, []), K = q?.parentNode;
13056
13056
  p.useImperativeHandle(Y, () => ({
@@ -13130,7 +13130,7 @@ const IT = (e) => {
13130
13130
  let de = !1, pe = !1;
13131
13131
  (na({
13132
13132
  value: G
13133
- }) || h) && (R ? we = R(G) : de = !0);
13133
+ }) || h) && (O ? we = O(G) : de = !0);
13134
13134
  const Ie = Se.map((Re) => {
13135
13135
  if (!/* @__PURE__ */ p.isValidElement(Re))
13136
13136
  return null;
@@ -13456,10 +13456,10 @@ const qb = Nt(/* @__PURE__ */ b.jsx("path", {
13456
13456
  renderValue: M,
13457
13457
  SelectDisplayProps: D,
13458
13458
  variant: T = "outlined",
13459
- ...O
13460
- } = r, C = v ? Bb : zb, R = $o(), L = Ar({
13459
+ ...R
13460
+ } = r, C = v ? Bb : zb, O = $o(), L = Ar({
13461
13461
  props: r,
13462
- muiFormControl: R,
13462
+ muiFormControl: O,
13463
13463
  states: ["variant", "error"]
13464
13464
  }), j = L.variant || T, H = {
13465
13465
  ...r,
@@ -13523,7 +13523,7 @@ const qb = Nt(/* @__PURE__ */ b.jsx("path", {
13523
13523
  ...!h && {
13524
13524
  variant: j
13525
13525
  },
13526
- ...O
13526
+ ...R
13527
13527
  })
13528
13528
  });
13529
13529
  });
@@ -13719,9 +13719,9 @@ const NT = {
13719
13719
  minRows: M,
13720
13720
  multiline: D = !1,
13721
13721
  name: T,
13722
- onBlur: O,
13722
+ onBlur: R,
13723
13723
  onChange: C,
13724
- onFocus: R,
13724
+ onFocus: O,
13725
13725
  placeholder: L,
13726
13726
  required: j = !1,
13727
13727
  rows: H,
@@ -13812,9 +13812,9 @@ const NT = {
13812
13812
  value: k,
13813
13813
  id: q,
13814
13814
  inputRef: S,
13815
- onBlur: O,
13815
+ onBlur: R,
13816
13816
  onChange: C,
13817
- onFocus: R,
13817
+ onFocus: O,
13818
13818
  placeholder: L,
13819
13819
  inputProps: Ge,
13820
13820
  slots: {
@@ -15003,7 +15003,7 @@ const Vn = Ve("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
15003
15003
  rippleX: M,
15004
15004
  rippleY: D,
15005
15005
  rippleSize: T,
15006
- cb: O
15006
+ cb: R
15007
15007
  } = I;
15008
15008
  u((C) => [...C, /* @__PURE__ */ b.jsx(cI, {
15009
15009
  classes: {
@@ -15019,13 +15019,13 @@ const Vn = Ve("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
15019
15019
  rippleX: M,
15020
15020
  rippleY: D,
15021
15021
  rippleSize: T
15022
- }, d.current)]), d.current += 1, f.current = O;
15022
+ }, d.current)]), d.current += 1, f.current = R;
15023
15023
  }, [i]), x = p.useCallback((I = {}, P = {}, M = () => {
15024
15024
  }) => {
15025
15025
  const {
15026
15026
  pulsate: D = !1,
15027
15027
  center: T = s || P.pulsate,
15028
- fakeElement: O = !1
15028
+ fakeElement: R = !1
15029
15029
  // For test purposes
15030
15030
  } = P;
15031
15031
  if (I?.type === "mousedown" && h.current) {
@@ -15033,7 +15033,7 @@ const Vn = Ve("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
15033
15033
  return;
15034
15034
  }
15035
15035
  I?.type === "touchstart" && (h.current = !0);
15036
- const C = O ? null : g.current, R = C ? C.getBoundingClientRect() : {
15036
+ const C = R ? null : g.current, O = C ? C.getBoundingClientRect() : {
15037
15037
  width: 0,
15038
15038
  height: 0,
15039
15039
  left: 0,
@@ -15041,16 +15041,16 @@ const Vn = Ve("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
15041
15041
  };
15042
15042
  let L, j, H;
15043
15043
  if (T || I === void 0 || I.clientX === 0 && I.clientY === 0 || !I.clientX && !I.touches)
15044
- L = Math.round(R.width / 2), j = Math.round(R.height / 2);
15044
+ L = Math.round(O.width / 2), j = Math.round(O.height / 2);
15045
15045
  else {
15046
15046
  const {
15047
15047
  clientX: $,
15048
15048
  clientY: N
15049
15049
  } = I.touches && I.touches.length > 0 ? I.touches[0] : I;
15050
- L = Math.round($ - R.left), j = Math.round(N - R.top);
15050
+ L = Math.round($ - O.left), j = Math.round(N - O.top);
15051
15051
  }
15052
15052
  if (T)
15053
- H = Math.sqrt((2 * R.width ** 2 + R.height ** 2) / 3), H % 2 === 0 && (H += 1);
15053
+ H = Math.sqrt((2 * O.width ** 2 + O.height ** 2) / 3), H % 2 === 0 && (H += 1);
15054
15054
  else {
15055
15055
  const $ = Math.max(Math.abs((C ? C.clientWidth : 0) - L), L) * 2 + 2, N = Math.max(Math.abs((C ? C.clientHeight : 0) - j), j) * 2 + 2;
15056
15056
  H = Math.sqrt($ ** 2 + N ** 2);
@@ -15196,9 +15196,9 @@ const dI = Ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), pI = (e) =
15196
15196
  onKeyUp: M,
15197
15197
  onMouseDown: D,
15198
15198
  onMouseLeave: T,
15199
- onMouseUp: O,
15199
+ onMouseUp: R,
15200
15200
  onTouchEnd: C,
15201
- onTouchMove: R,
15201
+ onTouchMove: O,
15202
15202
  onTouchStart: L,
15203
15203
  tabIndex: j = 0,
15204
15204
  TouchRippleProps: H,
@@ -15215,9 +15215,9 @@ const dI = Ve("MuiButtonBase", ["root", "disabled", "focusVisible"]), pI = (e) =
15215
15215
  p.useEffect(() => {
15216
15216
  F && h && !d && G.pulsate();
15217
15217
  }, [d, h, F, G]);
15218
- const z = So(G, "start", D, f), q = So(G, "stop", x, f), W = So(G, "stop", v, f), Q = So(G, "stop", O, f), Z = So(G, "stop", (we) => {
15218
+ const z = So(G, "start", D, f), q = So(G, "stop", x, f), W = So(G, "stop", v, f), Q = So(G, "stop", R, f), Z = So(G, "stop", (we) => {
15219
15219
  F && we.preventDefault(), T && T(we);
15220
- }, f), X = So(G, "start", L, f), Y = So(G, "stop", C, f), re = So(G, "stop", R, f), K = So(G, "stop", (we) => {
15220
+ }, f), X = So(G, "start", L, f), Y = So(G, "stop", C, f), re = So(G, "stop", O, f), K = So(G, "stop", (we) => {
15221
15221
  xs(we.target) || B(!1), g && g(we);
15222
15222
  }, !1), ee = ze((we) => {
15223
15223
  _.current || (_.current = we.currentTarget), xs(we.target) && (B(!0), I && I(we)), S && S(we);
@@ -15908,7 +15908,7 @@ const vr = Ve("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
15908
15908
  elementType: wn,
15909
15909
  externalForwardedProps: I,
15910
15910
  ownerState: v
15911
- }), [O, C] = Xe("secondary", {
15911
+ }), [R, C] = Xe("secondary", {
15912
15912
  className: S.secondary,
15913
15913
  elementType: wn,
15914
15914
  externalForwardedProps: I,
@@ -15919,7 +15919,7 @@ const vr = Ve("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
15919
15919
  component: T?.variant ? void 0 : "span",
15920
15920
  ...T,
15921
15921
  children: w
15922
- })), x != null && x.type !== wn && !l && (x = /* @__PURE__ */ b.jsx(O, {
15922
+ })), x != null && x.type !== wn && !l && (x = /* @__PURE__ */ b.jsx(R, {
15923
15923
  variant: "body2",
15924
15924
  color: "textSecondary",
15925
15925
  ...C,
@@ -16935,7 +16935,7 @@ const WI = (e) => {
16935
16935
  d(q, f + 1);
16936
16936
  }, T = (q) => {
16937
16937
  d(q, Math.max(0, Math.ceil(l / h) - 1));
16938
- }, O = g.firstButton ?? ro, C = g.lastButton ?? ro, R = g.nextButton ?? ro, L = g.previousButton ?? ro, j = g.firstButtonIcon ?? qI, H = g.lastButtonIcon ?? zI, $ = g.nextButtonIcon ?? DI, N = g.previousButtonIcon ?? kI, A = v ? C : O, _ = v ? R : L, G = v ? L : R, k = v ? O : C, F = v ? w.lastButton : w.firstButton, B = v ? w.nextButton : w.previousButton, U = v ? w.previousButton : w.nextButton, z = v ? w.firstButton : w.lastButton;
16938
+ }, R = g.firstButton ?? ro, C = g.lastButton ?? ro, O = g.nextButton ?? ro, L = g.previousButton ?? ro, j = g.firstButtonIcon ?? qI, H = g.lastButtonIcon ?? zI, $ = g.nextButtonIcon ?? DI, N = g.previousButtonIcon ?? kI, A = v ? C : R, _ = v ? O : L, G = v ? L : O, k = v ? R : C, F = v ? w.lastButton : w.firstButton, B = v ? w.nextButton : w.previousButton, U = v ? w.previousButton : w.nextButton, z = v ? w.firstButton : w.lastButton;
16939
16939
  return /* @__PURE__ */ b.jsxs(KI, {
16940
16940
  ref: o,
16941
16941
  className: ce(I.root, i),
@@ -17221,10 +17221,10 @@ const sO = (e) => {
17221
17221
  slotProps: M = {},
17222
17222
  slots: D = {},
17223
17223
  ...T
17224
- } = r, O = r, C = sO(O), R = M?.select ?? S, L = R.native ? "option" : tO;
17224
+ } = r, R = r, C = sO(R), O = M?.select ?? S, L = O.native ? "option" : tO;
17225
17225
  let j;
17226
17226
  (a === To || a === "td") && (j = l || 1e3);
17227
- const H = Ye(R.id), $ = Ye(R.labelId), N = () => c === -1 ? (w + 1) * x : x === -1 ? c : Math.min(c, (w + 1) * x), A = {
17227
+ const H = Ye(O.id), $ = Ye(O.labelId), N = () => c === -1 ? (w + 1) * x : x === -1 ? c : Math.min(c, (w + 1) * x), A = {
17228
17228
  slots: D,
17229
17229
  slotProps: M
17230
17230
  }, [_, G] = Xe("root", {
@@ -17236,7 +17236,7 @@ const sO = (e) => {
17236
17236
  component: a,
17237
17237
  ...T
17238
17238
  },
17239
- ownerState: O,
17239
+ ownerState: R,
17240
17240
  additionalProps: {
17241
17241
  colSpan: j
17242
17242
  }
@@ -17244,17 +17244,17 @@ const sO = (e) => {
17244
17244
  className: C.toolbar,
17245
17245
  elementType: QI,
17246
17246
  externalForwardedProps: A,
17247
- ownerState: O
17247
+ ownerState: R
17248
17248
  }), [B, U] = Xe("spacer", {
17249
17249
  className: C.spacer,
17250
17250
  elementType: JI,
17251
17251
  externalForwardedProps: A,
17252
- ownerState: O
17252
+ ownerState: R
17253
17253
  }), [z, q] = Xe("selectLabel", {
17254
17254
  className: C.selectLabel,
17255
17255
  elementType: ZI,
17256
17256
  externalForwardedProps: A,
17257
- ownerState: O,
17257
+ ownerState: R,
17258
17258
  additionalProps: {
17259
17259
  id: $
17260
17260
  }
@@ -17262,17 +17262,17 @@ const sO = (e) => {
17262
17262
  className: C.select,
17263
17263
  elementType: eO,
17264
17264
  externalForwardedProps: A,
17265
- ownerState: O
17265
+ ownerState: R
17266
17266
  }), [Z, X] = Xe("menuItem", {
17267
17267
  className: C.menuItem,
17268
17268
  elementType: L,
17269
17269
  externalForwardedProps: A,
17270
- ownerState: O
17270
+ ownerState: R
17271
17271
  }), [Y, re] = Xe("displayedRows", {
17272
17272
  className: C.displayedRows,
17273
17273
  elementType: nO,
17274
17274
  externalForwardedProps: A,
17275
- ownerState: O
17275
+ ownerState: R
17276
17276
  });
17277
17277
  return /* @__PURE__ */ b.jsx(_, {
17278
17278
  ...G,
@@ -17285,21 +17285,21 @@ const sO = (e) => {
17285
17285
  children: h
17286
17286
  }), v.length > 1 && /* @__PURE__ */ b.jsx(W, {
17287
17287
  variant: "standard",
17288
- ...!R.variant && {
17288
+ ...!O.variant && {
17289
17289
  input: Hh || (Hh = /* @__PURE__ */ b.jsx(Vr, {}))
17290
17290
  },
17291
17291
  value: x,
17292
17292
  onChange: g,
17293
17293
  id: H,
17294
17294
  labelId: $,
17295
- ...R,
17295
+ ...O,
17296
17296
  classes: {
17297
- ...R.classes,
17297
+ ...O.classes,
17298
17298
  // TODO v5 remove `classes.input`
17299
- root: ce(C.input, C.selectRoot, (R.classes || {}).root),
17300
- select: ce(C.select, (R.classes || {}).select),
17299
+ root: ce(C.input, C.selectRoot, (O.classes || {}).root),
17300
+ select: ce(C.select, (O.classes || {}).select),
17301
17301
  // TODO v5 remove `selectIcon`
17302
- icon: ce(C.selectIcon, (R.classes || {}).icon)
17302
+ icon: ce(C.selectIcon, (O.classes || {}).icon)
17303
17303
  },
17304
17304
  disabled: u,
17305
17305
  ...Q,
@@ -18006,8 +18006,8 @@ const dO = (e) => {
18006
18006
  startIcon: M,
18007
18007
  type: D,
18008
18008
  variant: T = "text",
18009
- ...O
18010
- } = l, C = Ye(x), R = S ?? /* @__PURE__ */ b.jsx(ec, {
18009
+ ...R
18010
+ } = l, C = Ye(x), O = S ?? /* @__PURE__ */ b.jsx(ec, {
18011
18011
  "aria-labelledby": C,
18012
18012
  color: "inherit",
18013
18013
  size: 16
@@ -18020,7 +18020,7 @@ const dO = (e) => {
18020
18020
  disableFocusRipple: m,
18021
18021
  fullWidth: w,
18022
18022
  loading: v,
18023
- loadingIndicator: R,
18023
+ loadingIndicator: O,
18024
18024
  loadingPosition: I,
18025
18025
  size: P,
18026
18026
  type: D,
@@ -18049,7 +18049,7 @@ const dO = (e) => {
18049
18049
  children: v && /* @__PURE__ */ b.jsx(gO, {
18050
18050
  className: j.loadingIndicator,
18051
18051
  ownerState: L,
18052
- children: R
18052
+ children: O
18053
18053
  })
18054
18054
  })
18055
18055
  ) : null;
@@ -18063,7 +18063,7 @@ const dO = (e) => {
18063
18063
  ref: o,
18064
18064
  type: D,
18065
18065
  id: v ? C : x,
18066
- ...O,
18066
+ ...R,
18067
18067
  classes: j,
18068
18068
  children: [H, I !== "end" && A, a, I === "end" && A, $]
18069
18069
  });
@@ -18463,8 +18463,8 @@ const xO = (e) => {
18463
18463
  value: M,
18464
18464
  slots: D = {},
18465
18465
  slotProps: T = {},
18466
- ...O
18467
- } = t, [C, R] = er({
18466
+ ...R
18467
+ } = t, [C, O] = er({
18468
18468
  controlled: s,
18469
18469
  default: !!l,
18470
18470
  name: "SwitchBase",
@@ -18477,7 +18477,7 @@ const xO = (e) => {
18477
18477
  if (q.nativeEvent.defaultPrevented)
18478
18478
  return;
18479
18479
  const W = q.target.checked;
18480
- R(W), w && w(q, W);
18480
+ O(W), w && w(q, W);
18481
18481
  };
18482
18482
  let N = a;
18483
18483
  L && typeof N > "u" && (N = L.disabled);
@@ -18501,7 +18501,7 @@ const xO = (e) => {
18501
18501
  externalForwardedProps: {
18502
18502
  ...k,
18503
18503
  component: "span",
18504
- ...O
18504
+ ...R
18505
18505
  },
18506
18506
  getSlotProps: (q) => ({
18507
18507
  ...q,
@@ -19047,13 +19047,13 @@ const us = Ve("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
19047
19047
  props: r,
19048
19048
  muiFormControl: I,
19049
19049
  states: ["error"]
19050
- }), O = {
19050
+ }), R = {
19051
19051
  ...r,
19052
19052
  disabled: P,
19053
19053
  labelPlacement: h,
19054
19054
  required: M,
19055
19055
  error: T.error
19056
- }, C = $O(O), R = {
19056
+ }, C = $O(R), O = {
19057
19057
  slots: w,
19058
19058
  slotProps: {
19059
19059
  ...l,
@@ -19061,8 +19061,8 @@ const us = Ve("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
19061
19061
  }
19062
19062
  }, [L, j] = Xe("typography", {
19063
19063
  elementType: wn,
19064
- externalForwardedProps: R,
19065
- ownerState: O
19064
+ externalForwardedProps: O,
19065
+ ownerState: R
19066
19066
  });
19067
19067
  let H = f;
19068
19068
  return H != null && H.type !== wn && !u && (H = /* @__PURE__ */ b.jsx(L, {
@@ -19072,12 +19072,12 @@ const us = Ve("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
19072
19072
  children: H
19073
19073
  })), /* @__PURE__ */ b.jsxs(LO, {
19074
19074
  className: ce(C.root, i),
19075
- ownerState: O,
19075
+ ownerState: R,
19076
19076
  ref: o,
19077
19077
  ...S,
19078
19078
  children: [/* @__PURE__ */ p.cloneElement(a, D), M ? /* @__PURE__ */ b.jsxs("div", {
19079
19079
  children: [H, /* @__PURE__ */ b.jsxs(jO, {
19080
- ownerState: O,
19080
+ ownerState: R,
19081
19081
  "aria-hidden": !0,
19082
19082
  className: C.asterisk,
19083
19083
  children: [" ", "*"]
@@ -19492,11 +19492,11 @@ function qh(e) {
19492
19492
  var M = nl(o), D = "clientHeight", T = "clientWidth";
19493
19493
  if (M === Ln(o) && (M = ar(o), No(M).position !== "static" && a === "absolute" && (D = "scrollHeight", T = "scrollWidth")), M = M, s === En || (s === Pn || s === Yn) && i === $i) {
19494
19494
  I = Xn;
19495
- var O = f && M === P && P.visualViewport ? P.visualViewport.height : (
19495
+ var R = f && M === P && P.visualViewport ? P.visualViewport.height : (
19496
19496
  // $FlowFixMe[prop-missing]
19497
19497
  M[D]
19498
19498
  );
19499
- g -= O - r.height, g *= c ? 1 : -1;
19499
+ g -= R - r.height, g *= c ? 1 : -1;
19500
19500
  }
19501
19501
  if (s === Pn || (s === En || s === Xn) && i === $i) {
19502
19502
  S = Yn;
@@ -19507,7 +19507,7 @@ function qh(e) {
19507
19507
  m -= C - r.width, m *= c ? 1 : -1;
19508
19508
  }
19509
19509
  }
19510
- var R = Object.assign({
19510
+ var O = Object.assign({
19511
19511
  position: a
19512
19512
  }, u && cR), L = d === !0 ? uR({
19513
19513
  x: m,
@@ -19518,9 +19518,9 @@ function qh(e) {
19518
19518
  };
19519
19519
  if (m = L.x, g = L.y, c) {
19520
19520
  var j;
19521
- return Object.assign({}, R, (j = {}, j[I] = v ? "0" : "", j[S] = x ? "0" : "", j.transform = (P.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + g + "px)" : "translate3d(" + m + "px, " + g + "px, 0)", j));
19521
+ return Object.assign({}, O, (j = {}, j[I] = v ? "0" : "", j[S] = x ? "0" : "", j.transform = (P.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + g + "px)" : "translate3d(" + m + "px, " + g + "px, 0)", j));
19522
19522
  }
19523
- return Object.assign({}, R, (t = {}, t[I] = v ? g + "px" : "", t[S] = x ? m + "px" : "", t.transform = "", t));
19523
+ return Object.assign({}, O, (t = {}, t[I] = v ? g + "px" : "", t[S] = x ? m + "px" : "", t.transform = "", t));
19524
19524
  }
19525
19525
  function dR(e) {
19526
19526
  var t = e.state, o = e.options, r = o.gpuAcceleration, s = r === void 0 ? !0 : r, i = o.adaptive, l = i === void 0 ? !0 : i, a = o.roundOffsets, c = a === void 0 ? !0 : a, u = {
@@ -19724,14 +19724,14 @@ function Li(e, t) {
19724
19724
  reference: M,
19725
19725
  element: S,
19726
19726
  placement: s
19727
- }), T = Ru(Object.assign({}, S, D)), O = h === si ? T : M, C = {
19728
- top: P.top - O.top + x.top,
19729
- bottom: O.bottom - P.bottom + x.bottom,
19730
- left: P.left - O.left + x.left,
19731
- right: O.right - P.right + x.right
19732
- }, R = e.modifiersData.offset;
19733
- if (h === si && R) {
19734
- var L = R[s];
19727
+ }), T = Ru(Object.assign({}, S, D)), R = h === si ? T : M, C = {
19728
+ top: P.top - R.top + x.top,
19729
+ bottom: R.bottom - P.bottom + x.bottom,
19730
+ left: P.left - R.left + x.left,
19731
+ right: R.right - P.right + x.right
19732
+ }, O = e.modifiersData.offset;
19733
+ if (h === si && O) {
19734
+ var L = O[s];
19735
19735
  Object.keys(C).forEach(function(j) {
19736
19736
  var H = [Yn, Xn].indexOf(j) >= 0 ? 1 : -1, $ = [En, Xn].indexOf(j) >= 0 ? "y" : "x";
19737
19737
  C[j] += L[$] * H;
@@ -19777,9 +19777,9 @@ function ER(e) {
19777
19777
  flipVariations: y,
19778
19778
  allowedAutoPlacements: g
19779
19779
  }) : q);
19780
- }, []), P = t.rects.reference, M = t.rects.popper, D = /* @__PURE__ */ new Map(), T = !0, O = I[0], C = 0; C < I.length; C++) {
19781
- var R = I[C], L = ho(R), j = ks(R) === Os, H = [En, Xn].indexOf(L) >= 0, $ = H ? "width" : "height", N = Li(t, {
19782
- placement: R,
19780
+ }, []), P = t.rects.reference, M = t.rects.popper, D = /* @__PURE__ */ new Map(), T = !0, R = I[0], C = 0; C < I.length; C++) {
19781
+ var O = I[C], L = ho(O), j = ks(O) === Os, H = [En, Xn].indexOf(L) >= 0, $ = H ? "width" : "height", N = Li(t, {
19782
+ placement: O,
19783
19783
  boundary: d,
19784
19784
  rootBoundary: f,
19785
19785
  altBoundary: h,
@@ -19790,10 +19790,10 @@ function ER(e) {
19790
19790
  if (i && G.push(N[L] <= 0), a && G.push(N[A] <= 0, N[_] <= 0), G.every(function(z) {
19791
19791
  return z;
19792
19792
  })) {
19793
- O = R, T = !1;
19793
+ R = O, T = !1;
19794
19794
  break;
19795
19795
  }
19796
- D.set(R, G);
19796
+ D.set(O, G);
19797
19797
  }
19798
19798
  if (T)
19799
19799
  for (var k = y ? 3 : 1, F = function(q) {
@@ -19805,12 +19805,12 @@ function ER(e) {
19805
19805
  });
19806
19806
  });
19807
19807
  if (W)
19808
- return O = W, "break";
19808
+ return R = W, "break";
19809
19809
  }, B = k; B > 0; B--) {
19810
19810
  var U = F(B);
19811
19811
  if (U === "break") break;
19812
19812
  }
19813
- t.placement !== O && (t.modifiersData[r]._skip = !0, t.placement = O, t.reset = !0);
19813
+ t.placement !== R && (t.modifiersData[r]._skip = !0, t.placement = R, t.reset = !0);
19814
19814
  }
19815
19815
  }
19816
19816
  const PR = {
@@ -19911,15 +19911,15 @@ function FR(e) {
19911
19911
  rootBoundary: u,
19912
19912
  padding: f,
19913
19913
  altBoundary: d
19914
- }), x = ho(t.placement), v = ks(t.placement), S = !v, I = _d(x), P = NR(I), M = t.modifiersData.popperOffsets, D = t.rects.reference, T = t.rects.popper, O = typeof g == "function" ? g(Object.assign({}, t.rects, {
19914
+ }), x = ho(t.placement), v = ks(t.placement), S = !v, I = _d(x), P = NR(I), M = t.modifiersData.popperOffsets, D = t.rects.reference, T = t.rects.popper, R = typeof g == "function" ? g(Object.assign({}, t.rects, {
19915
19915
  placement: t.placement
19916
- })) : g, C = typeof O == "number" ? {
19917
- mainAxis: O,
19918
- altAxis: O
19916
+ })) : g, C = typeof R == "number" ? {
19917
+ mainAxis: R,
19918
+ altAxis: R
19919
19919
  } : Object.assign({
19920
19920
  mainAxis: 0,
19921
19921
  altAxis: 0
19922
- }, O), R = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, L = {
19922
+ }, R), O = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, L = {
19923
19923
  x: 0,
19924
19924
  y: 0
19925
19925
  };
@@ -19928,11 +19928,11 @@ function FR(e) {
19928
19928
  var j, H = I === "y" ? En : Pn, $ = I === "y" ? Xn : Yn, N = I === "y" ? "height" : "width", A = M[I], _ = A + w[H], G = A - w[$], k = m ? -T[N] / 2 : 0, F = v === Os ? D[N] : T[N], B = v === Os ? -T[N] : -D[N], U = t.elements.arrow, z = m && U ? Vd(U) : {
19929
19929
  width: 0,
19930
19930
  height: 0
19931
- }, q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ay(), W = q[H], Q = q[$], Z = Pi(0, D[N], z[N]), X = S ? D[N] / 2 - k - Z - W - C.mainAxis : F - Z - W - C.mainAxis, Y = S ? -D[N] / 2 + k + Z + Q + C.mainAxis : B + Z + Q + C.mainAxis, re = t.elements.arrow && nl(t.elements.arrow), K = re ? I === "y" ? re.clientTop || 0 : re.clientLeft || 0 : 0, ee = (j = R?.[I]) != null ? j : 0, ne = A + X - ee - K, se = A + Y - ee, Se = Pi(m ? aa(_, ne) : _, A, m ? Tr(G, se) : G);
19931
+ }, q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ay(), W = q[H], Q = q[$], Z = Pi(0, D[N], z[N]), X = S ? D[N] / 2 - k - Z - W - C.mainAxis : F - Z - W - C.mainAxis, Y = S ? -D[N] / 2 + k + Z + Q + C.mainAxis : B + Z + Q + C.mainAxis, re = t.elements.arrow && nl(t.elements.arrow), K = re ? I === "y" ? re.clientTop || 0 : re.clientLeft || 0 : 0, ee = (j = O?.[I]) != null ? j : 0, ne = A + X - ee - K, se = A + Y - ee, Se = Pi(m ? aa(_, ne) : _, A, m ? Tr(G, se) : G);
19932
19932
  M[I] = Se, L[I] = Se - A;
19933
19933
  }
19934
19934
  if (a) {
19935
- var Pe, ae = I === "x" ? En : Pn, Ge = I === "x" ? Xn : Yn, Te = M[P], $e = P === "y" ? "height" : "width", we = Te + w[ae], Ue = Te - w[Ge], Le = [En, Pn].indexOf(x) !== -1, de = (Pe = R?.[P]) != null ? Pe : 0, pe = Le ? we : Te - D[$e] - T[$e] - de + C.altAxis, Ie = Le ? Te + D[$e] + T[$e] - de - C.altAxis : Ue, be = m && Le ? rR(pe, Te, Ie) : Pi(m ? pe : we, Te, m ? Ie : Ue);
19935
+ var Pe, ae = I === "x" ? En : Pn, Ge = I === "x" ? Xn : Yn, Te = M[P], $e = P === "y" ? "height" : "width", we = Te + w[ae], Ue = Te - w[Ge], Le = [En, Pn].indexOf(x) !== -1, de = (Pe = O?.[P]) != null ? Pe : 0, pe = Le ? we : Te - D[$e] - T[$e] - de + C.altAxis, Ie = Le ? Te + D[$e] + T[$e] - de - C.altAxis : Ue, be = m && Le ? rR(pe, Te, Ie) : Pi(m ? pe : we, Te, m ? Ie : Ue);
19936
19936
  M[P] = be, L[P] = be - Te;
19937
19937
  }
19938
19938
  t.modifiersData[r] = L;
@@ -20085,11 +20085,11 @@ function zR(e) {
20085
20085
  d.reset = !1, I = -1;
20086
20086
  continue;
20087
20087
  }
20088
- var P = d.orderedModifiers[I], M = P.fn, D = P.options, T = D === void 0 ? {} : D, O = P.name;
20088
+ var P = d.orderedModifiers[I], M = P.fn, D = P.options, T = D === void 0 ? {} : D, R = P.name;
20089
20089
  typeof M == "function" && (d = M({
20090
20090
  state: d,
20091
20091
  options: T,
20092
- name: O,
20092
+ name: R,
20093
20093
  instance: m
20094
20094
  }) || d);
20095
20095
  }
@@ -20196,19 +20196,19 @@ const YR = (e) => {
20196
20196
  yt(() => {
20197
20197
  P.current = I;
20198
20198
  }, [I]), p.useImperativeHandle(f, () => S.current, []);
20199
- const M = KR(u, i), [D, T] = p.useState(M), [O, C] = p.useState(ca(r));
20199
+ const M = KR(u, i), [D, T] = p.useState(M), [R, C] = p.useState(ca(r));
20200
20200
  p.useEffect(() => {
20201
20201
  S.current && S.current.forceUpdate();
20202
20202
  }), p.useEffect(() => {
20203
20203
  r && C(ca(r));
20204
20204
  }, [r]), yt(() => {
20205
- if (!O || !c)
20205
+ if (!R || !c)
20206
20206
  return;
20207
20207
  const $ = (_) => {
20208
20208
  T(_.placement);
20209
20209
  };
20210
- if (process.env.NODE_ENV !== "production" && O && nc(O) && O.nodeType === 1) {
20211
- const _ = O.getBoundingClientRect();
20210
+ if (process.env.NODE_ENV !== "production" && R && nc(R) && R.nodeType === 1) {
20211
+ const _ = R.getBoundingClientRect();
20212
20212
  process.env.NODE_ENV !== "test" && _.top === 0 && _.left === 0 && _.right === 0 && _.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
20213
20213
  `));
20214
20214
  }
@@ -20233,7 +20233,7 @@ const YR = (e) => {
20233
20233
  }
20234
20234
  }];
20235
20235
  a != null && (N = N.concat(a)), d && d.modifiers != null && (N = N.concat(d.modifiers));
20236
- const A = UR(O, x.current, {
20236
+ const A = UR(R, x.current, {
20237
20237
  placement: M,
20238
20238
  ...d,
20239
20239
  modifiers: N
@@ -20241,11 +20241,11 @@ const YR = (e) => {
20241
20241
  return P.current(A), () => {
20242
20242
  A.destroy(), P.current(null);
20243
20243
  };
20244
- }, [O, l, a, c, d, M]);
20245
- const R = {
20244
+ }, [R, l, a, c, d, M]);
20245
+ const O = {
20246
20246
  placement: D
20247
20247
  };
20248
- y !== null && (R.TransitionProps = y);
20248
+ y !== null && (O.TransitionProps = y);
20249
20249
  const L = YR(t), j = m.root ?? "div", H = po({
20250
20250
  elementType: j,
20251
20251
  externalSlotProps: h.root,
@@ -20259,7 +20259,7 @@ const YR = (e) => {
20259
20259
  });
20260
20260
  return /* @__PURE__ */ b.jsx(j, {
20261
20261
  ...H,
20262
- children: typeof s == "function" ? s(R) : s
20262
+ children: typeof s == "function" ? s(O) : s
20263
20263
  });
20264
20264
  }), fy = /* @__PURE__ */ p.forwardRef(function(t, o) {
20265
20265
  const {
@@ -20293,7 +20293,7 @@ const YR = (e) => {
20293
20293
  const C = ca(r);
20294
20294
  D = C && nc(C) ? It(C).body : It(null).body;
20295
20295
  }
20296
- const T = !d && c && (!g || S) ? "none" : void 0, O = g ? {
20296
+ const T = !d && c && (!g || S) ? "none" : void 0, R = g ? {
20297
20297
  in: d,
20298
20298
  onEnter: P,
20299
20299
  onExited: M
@@ -20323,7 +20323,7 @@ const YR = (e) => {
20323
20323
  display: T,
20324
20324
  ...y
20325
20325
  },
20326
- TransitionProps: O,
20326
+ TransitionProps: R,
20327
20327
  children: s
20328
20328
  })
20329
20329
  });
@@ -20931,9 +20931,9 @@ const Io = /* @__PURE__ */ p.forwardRef(function(t, o) {
20931
20931
  onOpen: M,
20932
20932
  open: D,
20933
20933
  placement: T = "bottom",
20934
- PopperComponent: O,
20934
+ PopperComponent: R,
20935
20935
  PopperProps: C = {},
20936
- slotProps: R = {},
20936
+ slotProps: O = {},
20937
20937
  slots: L = {},
20938
20938
  title: j,
20939
20939
  TransitionComponent: H,
@@ -21043,9 +21043,9 @@ const Io = /* @__PURE__ */ p.forwardRef(function(t, o) {
21043
21043
  arrow: s,
21044
21044
  disableInteractive: q,
21045
21045
  placement: T,
21046
- PopperComponentProp: O,
21046
+ PopperComponentProp: R,
21047
21047
  touch: z.current
21048
- }, Qe = typeof R.popper == "function" ? R.popper(Ne) : R.popper, Bt = p.useMemo(() => {
21048
+ }, Qe = typeof O.popper == "function" ? O.popper(Ne) : O.popper, Bt = p.useMemo(() => {
21049
21049
  let We = [{
21050
21050
  name: "arrow",
21051
21051
  enabled: !!B,
@@ -21059,7 +21059,7 @@ const Io = /* @__PURE__ */ p.forwardRef(function(t, o) {
21059
21059
  ...Qe?.popperOptions,
21060
21060
  modifiers: We
21061
21061
  };
21062
- }, [B, C.popperOptions, Qe?.popperOptions]), Re = n1(Ne), _e = typeof R.transition == "function" ? R.transition(Ne) : R.transition, dt = {
21062
+ }, [B, C.popperOptions, Qe?.popperOptions]), Re = n1(Ne), _e = typeof O.transition == "function" ? O.transition(Ne) : O.transition, dt = {
21063
21063
  slots: {
21064
21064
  popper: a.Popper,
21065
21065
  transition: a.Transition ?? H,
@@ -21068,13 +21068,13 @@ const Io = /* @__PURE__ */ p.forwardRef(function(t, o) {
21068
21068
  ...L
21069
21069
  },
21070
21070
  slotProps: {
21071
- arrow: R.arrow ?? c.arrow,
21071
+ arrow: O.arrow ?? c.arrow,
21072
21072
  popper: {
21073
21073
  ...C,
21074
21074
  ...Qe ?? c.popper
21075
21075
  },
21076
21076
  // resolvedPopperProps can be spread because it's already an object
21077
- tooltip: R.tooltip ?? c.tooltip,
21077
+ tooltip: O.tooltip ?? c.tooltip,
21078
21078
  transition: {
21079
21079
  ...$,
21080
21080
  ..._e ?? c.transition
@@ -21103,7 +21103,7 @@ const Io = /* @__PURE__ */ p.forwardRef(function(t, o) {
21103
21103
  });
21104
21104
  return /* @__PURE__ */ b.jsxs(p.Fragment, {
21105
21105
  children: [/* @__PURE__ */ p.cloneElement(A, fe), /* @__PURE__ */ b.jsx(Ft, {
21106
- as: O ?? As,
21106
+ as: R ?? As,
21107
21107
  placement: T,
21108
21108
  anchorEl: x ? {
21109
21109
  getBoundingClientRect: () => ({
@@ -21390,14 +21390,14 @@ const c1 = te("div")(({ theme: e }) => ({
21390
21390
  s(+D.target.value), o(0);
21391
21391
  }, a = (D) => {
21392
21392
  const T = [];
21393
- for (let O = 1; O < D; O++)
21394
- T.push(/* @__PURE__ */ b.jsx(To, {}, O));
21393
+ for (let R = 1; R < D; R++)
21394
+ T.push(/* @__PURE__ */ b.jsx(To, {}, R));
21395
21395
  return T;
21396
21396
  };
21397
21397
  function c(D) {
21398
21398
  let T = !1;
21399
- return Array.isArray(e.highlighted) ? (e.highlighted.forEach((O) => {
21400
- JSON.stringify(D) === JSON.stringify(O) && (T = !0);
21399
+ return Array.isArray(e.highlighted) ? (e.highlighted.forEach((R) => {
21400
+ JSON.stringify(D) === JSON.stringify(R) && (T = !0);
21401
21401
  }), !!T) : JSON.stringify(D) === JSON.stringify(e.highlighted);
21402
21402
  }
21403
21403
  const u = ms(
@@ -21420,8 +21420,8 @@ const c1 = te("div")(({ theme: e }) => ({
21420
21420
  }, [e.columns]);
21421
21421
  const h = br(
21422
21422
  (D, T) => {
21423
- for (const O in d.columns) {
21424
- const C = d.columns[O];
21423
+ for (const R in d.columns) {
21424
+ const C = d.columns[R];
21425
21425
  if (C.unsearchable) continue;
21426
21426
  if (C.search && C.search(D) || C.value(D).toString().toLowerCase().includes(T.toLowerCase())) return !0;
21427
21427
  }
@@ -21430,15 +21430,15 @@ const c1 = te("div")(({ theme: e }) => ({
21430
21430
  [d.columns]
21431
21431
  ), m = br(
21432
21432
  (D) => {
21433
- const T = d.columns[d.sort.column].sort || ((C, R) => a1(
21433
+ const T = d.columns[d.sort.column].sort || ((C, O) => a1(
21434
21434
  d.columns[d.sort.column].value(C),
21435
- d.columns[d.sort.column].value(R)
21436
- )), O = D.sort(T);
21437
- return d.sort.asc || O.reverse(), O;
21435
+ d.columns[d.sort.column].value(O)
21436
+ )), R = D.sort(T);
21437
+ return d.sort.asc || R.reverse(), R;
21438
21438
  },
21439
21439
  [d.columns, d.sort]
21440
21440
  ), y = br(
21441
- (D, T) => T === "" ? [...D] : D.filter((O) => h(O, T)),
21441
+ (D, T) => T === "" ? [...D] : D.filter((R) => h(R, T)),
21442
21442
  [h]
21443
21443
  ), g = ms(
21444
21444
  () => m(y(e.rows, d.filter || e.search || "")),
@@ -21447,19 +21447,19 @@ const c1 = te("div")(({ theme: e }) => ({
21447
21447
  const D = g.slice(t * r, (t + 1) * r);
21448
21448
  return e.onDisplayedRowsChange?.(t, D), D;
21449
21449
  }, [g, t, r, e.onDisplayedRowsChange]), x = t > 0 ? Math.max(0, (1 + t) * r - e.rows.length) : 0, v = br(() => {
21450
- const D = d.columns.map((R) => R.header).join(" ") + `
21450
+ const D = d.columns.map((O) => O.header).join(" ") + `
21451
21451
  ` + g.map(
21452
- (R) => d.columns.map((L) => L.value(R)).join(" ")
21452
+ (O) => d.columns.map((L) => L.value(O)).join(" ")
21453
21453
  ).join(`
21454
21454
  `) + `
21455
21455
  `, T = document.createElement("a");
21456
21456
  document.body.appendChild(T), T.setAttribute("style", "display: none");
21457
- const O = new Blob([D], { type: "text/plain" }), C = window.URL.createObjectURL(O);
21457
+ const R = new Blob([D], { type: "text/plain" }), C = window.URL.createObjectURL(R);
21458
21458
  T.href = C, T.download = e.downloadFileName || "table.tsv", T.click(), window.URL.revokeObjectURL(C), T.remove();
21459
- }, [d.columns, g, e.downloadFileName]), S = Bl(null), I = Bl(null), P = Bl(null), M = (D, T, O) => {
21460
- if (D.current && T.current && O.current) {
21461
- const C = D.current.scrollWidth > D.current.clientWidth, R = D.current.scrollLeft > 0, L = D.current.scrollLeft + 1 < D.current.scrollWidth - D.current.clientWidth;
21462
- T.current.style.visibility = C && L ? "visible" : "hidden", O.current.style.visibility = C && R ? "visible" : "hidden";
21459
+ }, [d.columns, g, e.downloadFileName]), S = Bl(null), I = Bl(null), P = Bl(null), M = (D, T, R) => {
21460
+ if (D.current && T.current && R.current) {
21461
+ const C = D.current.scrollWidth > D.current.clientWidth, O = D.current.scrollLeft > 0, L = D.current.scrollLeft + 1 < D.current.scrollWidth - D.current.clientWidth;
21462
+ T.current.style.visibility = C && L ? "visible" : "hidden", R.current.style.visibility = C && O ? "visible" : "hidden";
21463
21463
  }
21464
21464
  };
21465
21465
  return Oo(() => {
@@ -21614,15 +21614,15 @@ const c1 = te("div")(({ theme: e }) => ({
21614
21614
  sx: { cursor: e.onRowClick ? "pointer" : "auto" },
21615
21615
  onMouseEnter: () => e.onRowMouseEnter && e.onRowMouseEnter(D, T + t * r),
21616
21616
  onMouseLeave: () => e.onRowMouseLeave && e.onRowMouseLeave(D, T + t * r),
21617
- children: d.columns.map((O, C) => /* @__PURE__ */ b.jsx(
21617
+ children: d.columns.map((R, C) => /* @__PURE__ */ b.jsx(
21618
21618
  To,
21619
21619
  {
21620
21620
  sx: C !== d.columns.length - 1 ? { pr: 0 } : {},
21621
- onMouseEnter: () => e.onCellMouseEnter && e.onCellMouseEnter(O.value(D), T, C),
21622
- onMouseLeave: () => e.onCellMouseLeave && e.onCellMouseLeave(O.value(D), T, C),
21623
- children: O.FunctionalRender ? /* @__PURE__ */ b.jsx(O.FunctionalRender, { ...D }) : O.render ? /* @__PURE__ */ b.jsx(O.render, { ...D }) : O.value(D)
21621
+ onMouseEnter: () => e.onCellMouseEnter && e.onCellMouseEnter(R.value(D), T, C),
21622
+ onMouseLeave: () => e.onCellMouseLeave && e.onCellMouseLeave(R.value(D), T, C),
21623
+ children: R.FunctionalRender ? /* @__PURE__ */ b.jsx(R.FunctionalRender, { ...D }) : R.render ? /* @__PURE__ */ b.jsx(R.render, { ...D }) : R.value(D)
21624
21624
  },
21625
- O.header + "Row" + T + "Column" + C
21625
+ R.header + "Row" + T + "Column" + C
21626
21626
  ))
21627
21627
  },
21628
21628
  "row" + T
@@ -21729,9 +21729,9 @@ const c1 = te("div")(({ theme: e }) => ({
21729
21729
  control: /* @__PURE__ */ b.jsx(
21730
21730
  $d,
21731
21731
  {
21732
- checked: d.columns.find((O) => O.header === D.header) !== void 0,
21733
- onChange: (O) => {
21734
- O.target.checked && e.columns.find((C) => C.header === D.header) ? f({
21732
+ checked: d.columns.find((R) => R.header === D.header) !== void 0,
21733
+ onChange: (R) => {
21734
+ R.target.checked && e.columns.find((C) => C.header === D.header) ? f({
21735
21735
  type: "columnsChanged",
21736
21736
  columns: [...d.columns, D]
21737
21737
  }) : f({
@@ -22021,17 +22021,17 @@ function my(e, ...t) {
22021
22021
  arguments
22022
22022
  );
22023
22023
  if (a = S.apply(null, D), process.env.NODE_ENV !== "production") {
22024
- const { identityFunctionCheck: T, inputStabilityCheck: O } = v1(I, g);
22024
+ const { identityFunctionCheck: T, inputStabilityCheck: R } = v1(I, g);
22025
22025
  if (T.shouldRun && T.run(
22026
22026
  u,
22027
22027
  D,
22028
22028
  a
22029
- ), O.shouldRun) {
22029
+ ), R.shouldRun) {
22030
22030
  const C = tg(
22031
22031
  v,
22032
22032
  arguments
22033
22033
  );
22034
- O.run(
22034
+ R.run(
22035
22035
  { inputSelectorResults: D, inputSelectorResultsCopy: C },
22036
22036
  { memoize: f, memoizeOptions: w },
22037
22037
  arguments
@@ -23807,12 +23807,12 @@ function qy(e) {
23807
23807
  }), [P]), p.useEffect(() => {
23808
23808
  c >= T && u(T - 1);
23809
23809
  }, [c, T]);
23810
- const O = () => {
23810
+ const R = () => {
23811
23811
  f(!0), u(T - 1), g.current = !0;
23812
23812
  }, C = () => {
23813
23813
  f(!1);
23814
- }, R = ($) => {
23815
- $.stopPropagation(), $.preventDefault(), d ? C() : O();
23814
+ }, O = ($) => {
23815
+ $.stopPropagation(), $.preventDefault(), d ? C() : R();
23816
23816
  }, L = ($) => (N) => {
23817
23817
  w.current[$] = N;
23818
23818
  }, j = ($, N) => (A) => {
@@ -23850,7 +23850,7 @@ function qy(e) {
23850
23850
  "aria-controls": d ? v : void 0,
23851
23851
  role: "menuitem",
23852
23852
  size: "small",
23853
- onClick: R,
23853
+ onClick: O,
23854
23854
  touchRippleRef: L(S),
23855
23855
  tabIndex: c === M.length ? s : -1
23856
23856
  }, I.slotProps?.baseIconButton, {
@@ -24788,21 +24788,21 @@ const vk = pp, dc = mt((e) => e.focus), bn = xe(dc, (e) => e.cell), wk = xe(dc,
24788
24788
  type: "include",
24789
24789
  ids: /* @__PURE__ */ new Set()
24790
24790
  };
24791
- for (const O of d.ids)
24792
- l.keepNonExistentRowsSelected && T.ids.add(O), i.current.getRow(O) && D(i.current.getRowParams(O)) && T.ids.add(O);
24791
+ for (const R of d.ids)
24792
+ l.keepNonExistentRowsSelected && T.ids.add(R), i.current.getRow(R) && D(i.current.getRowParams(R)) && T.ids.add(R);
24793
24793
  return T;
24794
24794
  }, [i, l.isRowSelectable, l.keepNonExistentRowsSelected, d]), y = p.useMemo(() => {
24795
24795
  const D = !l.pagination || !l.checkboxSelectionVisibleOnly || l.paginationMode === "server" ? f : h, T = /* @__PURE__ */ new Set();
24796
- for (let O = 0; O < D.length; O += 1) {
24797
- const C = D[O];
24796
+ for (let R = 0; R < D.length; R += 1) {
24797
+ const C = D[R];
24798
24798
  i.current.getRow(C) && i.current.isRowSelectable(C) && T.add(C);
24799
24799
  }
24800
24800
  return T;
24801
24801
  }, [i, l.pagination, l.paginationMode, l.checkboxSelectionVisibleOnly, h, f]), g = p.useMemo(() => {
24802
24802
  const D = Xo(m);
24803
24803
  let T = 0;
24804
- for (const O of y)
24805
- D.has(O) && (T += 1);
24804
+ for (const R of y)
24805
+ D.has(R) && (T += 1);
24806
24806
  return T;
24807
24807
  }, [m, y]), w = p.useMemo(() => {
24808
24808
  if (m.ids.size === 0)
@@ -25073,10 +25073,10 @@ function wC(e) {
25073
25073
  }, x = Lk(w), v = p.useCallback((I) => {
25074
25074
  if (I === "")
25075
25075
  return null;
25076
- const [P, M] = I.split("T"), [D, T, O] = P.split("-"), C = /* @__PURE__ */ new Date();
25077
- if (C.setFullYear(Number(D), Number(T) - 1, Number(O)), C.setHours(0, 0, 0, 0), M) {
25078
- const [R, L] = M.split(":");
25079
- C.setHours(Number(R), Number(L), 0, 0);
25076
+ const [P, M] = I.split("T"), [D, T, R] = P.split("-"), C = /* @__PURE__ */ new Date();
25077
+ if (C.setFullYear(Number(D), Number(T) - 1, Number(R)), C.setHours(0, 0, 0, 0), M) {
25078
+ const [O, L] = M.split(":");
25079
+ C.setHours(Number(O), Number(L), 0, 0);
25080
25080
  }
25081
25081
  return C;
25082
25082
  }, []), S = p.useCallback(async (I) => {
@@ -25340,24 +25340,24 @@ function SC(e) {
25340
25340
  if (!Fs(l) || !I)
25341
25341
  return;
25342
25342
  x(!1);
25343
- const R = C.target, L = ga(R.value, I, P);
25343
+ const O = C.target, L = ga(O.value, I, P);
25344
25344
  u && await u(C, L), await m.current.setEditCellValue({
25345
25345
  id: o,
25346
25346
  field: s,
25347
25347
  value: L
25348
25348
  }, C);
25349
- }, T = (C, R) => {
25349
+ }, T = (C, O) => {
25350
25350
  if (t.editMode === Co.Row) {
25351
25351
  x(!1);
25352
25352
  return;
25353
25353
  }
25354
- if (R === "backdropClick" || C.key === "Escape") {
25354
+ if (O === "backdropClick" || C.key === "Escape") {
25355
25355
  const L = m.current.getCellParams(o, s);
25356
25356
  m.current.publishEvent("cellEditStop", E({}, L, {
25357
25357
  reason: C.key === "Escape" ? no.escapeKeyDown : no.cellFocusOut
25358
25358
  }));
25359
25359
  }
25360
- }, O = (C) => {
25360
+ }, R = (C) => {
25361
25361
  qk(C) && C.key === "Enter" || x(!0);
25362
25362
  };
25363
25363
  return !I || !l ? null : /* @__PURE__ */ b.jsx(t.slots.baseSelect, E({
@@ -25365,7 +25365,7 @@ function SC(e) {
25365
25365
  value: r,
25366
25366
  onChange: D,
25367
25367
  open: w,
25368
- onOpen: O,
25368
+ onOpen: R,
25369
25369
  onClose: T,
25370
25370
  error: c,
25371
25371
  native: S,
@@ -25377,11 +25377,11 @@ function SC(e) {
25377
25377
  }
25378
25378
  }, h, f?.root, t.slotProps?.baseSelect, {
25379
25379
  children: I.map((C) => {
25380
- const R = P(C);
25380
+ const O = P(C);
25381
25381
  return /* @__PURE__ */ Sr(t.slots.baseSelectOption, E({}, t.slotProps?.baseSelectOption || {}, {
25382
25382
  native: S,
25383
- key: R,
25384
- value: R
25383
+ key: O,
25384
+ value: O
25385
25385
  }), M(C));
25386
25386
  })
25387
25387
  }));
@@ -26154,7 +26154,7 @@ const Pg = {
26154
26154
  }), ID = () => {
26155
26155
  const e = nn(), t = Ce(), {
26156
26156
  listView: o
26157
- } = t, r = J(e, () => o ? [$s(e)] : Tt(e)), s = J(e, bD) && !ya, i = J(e, DC) && !ya, l = J(e, Br), a = rr(e), c = o ? fa : a, u = l.bottom.length > 0, [d, f] = p.useState($C), h = Yt(), m = J(e, il), y = gc(e), g = e.current.mainElementRef, w = e.current.virtualScrollerRef, x = e.current.virtualScrollbarVerticalRef, v = e.current.virtualScrollbarHorizontalRef, S = J(e, RM), I = p.useRef(!1), P = J(e, Ud), M = J(e, N1), D = J(e, Vs), T = J(e, OD), O = J(e, Kd), C = J(e, Wd), R = p.useRef(null), L = p.useCallback((K) => {
26157
+ } = t, r = J(e, () => o ? [$s(e)] : Tt(e)), s = J(e, bD) && !ya, i = J(e, DC) && !ya, l = J(e, Br), a = rr(e), c = o ? fa : a, u = l.bottom.length > 0, [d, f] = p.useState($C), h = Yt(), m = J(e, il), y = gc(e), g = e.current.mainElementRef, w = e.current.virtualScrollerRef, x = e.current.virtualScrollbarVerticalRef, v = e.current.virtualScrollbarHorizontalRef, S = J(e, RM), I = p.useRef(!1), P = J(e, Ud), M = J(e, N1), D = J(e, Vs), T = J(e, OD), R = J(e, Kd), C = J(e, Wd), O = p.useRef(null), L = p.useCallback((K) => {
26158
26158
  if (g.current = K, !K)
26159
26159
  return;
26160
26160
  const ee = K.getBoundingClientRect();
@@ -26162,7 +26162,7 @@ const Pg = {
26162
26162
  width: hs(ee.width, 1),
26163
26163
  height: hs(ee.height, 1)
26164
26164
  };
26165
- if ((!R.current || ne.width !== R.current.width && ne.height !== R.current.height) && (R.current = ne, e.current.publishEvent("resize", ne)), typeof ResizeObserver > "u")
26165
+ if ((!O.current || ne.width !== O.current.width && ne.height !== O.current.height) && (O.current = ne, e.current.publishEvent("resize", ne)), typeof ResizeObserver > "u")
26166
26166
  return;
26167
26167
  const se = new ResizeObserver((Se) => {
26168
26168
  const Pe = Se[0];
@@ -26317,7 +26317,7 @@ const Pg = {
26317
26317
  isLastVisible: Ne,
26318
26318
  isNotVisible: Re,
26319
26319
  showBottomBorder: Ft,
26320
- scrollbarWidth: O,
26320
+ scrollbarWidth: R,
26321
26321
  gridHasFiller: C
26322
26322
  }, Le), Ie)), Re)
26323
26323
  return;
@@ -27254,9 +27254,9 @@ const Sp = Me(function(t, o) {
27254
27254
  onMouseUp: M,
27255
27255
  onMouseOver: D,
27256
27256
  onKeyDown: T,
27257
- onKeyUp: O,
27257
+ onKeyUp: R,
27258
27258
  onDragEnter: C,
27259
- onDragOver: R
27259
+ onDragOver: O
27260
27260
  } = t, L = me(t, xN), j = nn(), H = Ce(), $ = Yt(), N = r.field, A = J(j, oN, {
27261
27261
  rowId: i,
27262
27262
  field: N
@@ -27373,7 +27373,7 @@ const Sp = Me(function(t, o) {
27373
27373
  }));
27374
27374
  const ve = m ? null : {
27375
27375
  onDragEnter: Ue("cellDragEnter", C),
27376
- onDragOver: Ue("cellDragOver", R)
27376
+ onDragOver: Ue("cellDragOver", O)
27377
27377
  };
27378
27378
  return /* @__PURE__ */ b.jsx("div", E({
27379
27379
  className: ce(Te.root, ee, d),
@@ -27392,7 +27392,7 @@ const Sp = Me(function(t, o) {
27392
27392
  onMouseDown: we("cellMouseDown"),
27393
27393
  onMouseUp: $e("cellMouseUp"),
27394
27394
  onKeyDown: Ue("cellKeyDown", T),
27395
- onKeyUp: Ue("cellKeyUp", O)
27395
+ onKeyUp: Ue("cellKeyUp", R)
27396
27396
  }, ve, L, {
27397
27397
  onFocus: Ie,
27398
27398
  ref: Se,
@@ -28716,8 +28716,8 @@ const rF = ["render", "className"], sF = (e) => {
28716
28716
  className: s
28717
28717
  } = t, i = me(t, rF), l = Ce(), a = sF(l), [c, u] = p.useState(null), [d, f] = p.useState([]), h = p.useCallback(() => d.sort(oF), [d]), m = p.useCallback((P, M, D = !0) => {
28718
28718
  let T = P;
28719
- const O = h(), C = O.length;
28720
- for (let R = 0; R < C; R += 1) {
28719
+ const R = h(), C = R.length;
28720
+ for (let O = 0; O < C; O += 1) {
28721
28721
  if (T += M, T >= C) {
28722
28722
  if (!D)
28723
28723
  return -1;
@@ -28727,7 +28727,7 @@ const rF = ["render", "className"], sF = (e) => {
28727
28727
  return -1;
28728
28728
  T = C - 1;
28729
28729
  }
28730
- if (!O[T].ref.current?.disabled && O[T].ref.current?.ariaDisabled !== "true")
28730
+ if (!R[T].ref.current?.disabled && R[T].ref.current?.ariaDisabled !== "true")
28731
28731
  return T;
28732
28732
  }
28733
28733
  return -1;
@@ -28741,19 +28741,19 @@ const rF = ["render", "className"], sF = (e) => {
28741
28741
  }, []), w = p.useCallback((P) => {
28742
28742
  if (!c)
28743
28743
  return;
28744
- const M = h(), D = M.findIndex((O) => O.id === c);
28744
+ const M = h(), D = M.findIndex((R) => R.id === c);
28745
28745
  let T = -1;
28746
28746
  if (P.key === "ArrowRight" ? (P.preventDefault(), T = m(D, 1)) : P.key === "ArrowLeft" ? (P.preventDefault(), T = m(D, -1)) : P.key === "Home" ? (P.preventDefault(), T = m(-1, 1, !1)) : P.key === "End" && (P.preventDefault(), T = m(M.length, -1, !1)), T >= 0 && T < M.length) {
28747
- const O = M[T];
28748
- u(O.id), O.ref.current?.focus();
28747
+ const R = M[T];
28748
+ u(R.id), R.ref.current?.focus();
28749
28749
  }
28750
28750
  }, [h, c, m]), x = p.useCallback((P) => {
28751
28751
  c !== P && u(P);
28752
28752
  }, [c, u]), v = p.useCallback((P) => {
28753
- const M = h(), D = M.findIndex((O) => O.id === P), T = m(D, 1);
28753
+ const M = h(), D = M.findIndex((R) => R.id === P), T = m(D, 1);
28754
28754
  if (T >= 0 && T < M.length) {
28755
- const O = M[T];
28756
- u(O.id), O.ref.current?.focus();
28755
+ const R = M[T];
28756
+ u(R.id), R.ref.current?.focus();
28757
28757
  }
28758
28758
  }, [h, m]);
28759
28759
  p.useEffect(() => {
@@ -29281,12 +29281,12 @@ const DF = ["classes", "columnMenuOpen", "colIndex", "height", "isResizing", "so
29281
29281
  draggableContainerProps: P,
29282
29282
  columnHeaderSeparatorProps: M,
29283
29283
  style: D
29284
- } = t, T = me(t, DF), O = nn(), C = Ce(), R = p.useRef(null), L = rt(R, o);
29284
+ } = t, T = me(t, DF), R = nn(), C = Ce(), O = p.useRef(null), L = rt(O, o);
29285
29285
  let j = "none";
29286
29286
  return a != null && (j = a === "asc" ? "ascending" : "descending"), p.useLayoutEffect(() => {
29287
- const H = O.current.state.columnMenu;
29288
- c && !H.open && ((R.current.querySelector('[tabindex="0"]') || R.current)?.focus(), O.current.columnHeadersContainerRef?.current && (O.current.columnHeadersContainerRef.current.scrollLeft = 0));
29289
- }, [O, c]), /* @__PURE__ */ b.jsxs("div", E({
29287
+ const H = R.current.state.columnMenu;
29288
+ c && !H.open && ((O.current.querySelector('[tabindex="0"]') || O.current)?.focus(), R.current.columnHeadersContainerRef?.current && (R.current.columnHeadersContainerRef.current.scrollLeft = 0));
29289
+ }, [R, c]), /* @__PURE__ */ b.jsxs("div", E({
29290
29290
  className: ce(r.root, v),
29291
29291
  style: E({}, D, {
29292
29292
  width: y
@@ -29381,7 +29381,7 @@ function lv(e) {
29381
29381
  showRightBorder: g,
29382
29382
  pinnedPosition: w,
29383
29383
  pinnedOffset: x
29384
- } = e, v = nn(), S = Ce(), I = Yt(), P = p.useRef(null), M = Ye(), D = Ye(), T = p.useRef(null), [O, C] = p.useState(o), R = p.useMemo(() => !S.disableColumnReorder && !h && !t.disableReorder, [S.disableColumnReorder, h, t.disableReorder]);
29384
+ } = e, v = nn(), S = Ce(), I = Yt(), P = p.useRef(null), M = Ye(), D = Ye(), T = p.useRef(null), [R, C] = p.useState(o), O = p.useMemo(() => !S.disableColumnReorder && !h && !t.disableReorder, [S.disableColumnReorder, h, t.disableReorder]);
29385
29385
  let L;
29386
29386
  t.renderHeader && (L = t.renderHeader(v.current.getColumnHeaderParams(t.field)));
29387
29387
  const j = E({}, e, {
@@ -29405,25 +29405,25 @@ function lv(e) {
29405
29405
  onKeyDown: $("columnHeaderKeyDown"),
29406
29406
  onFocus: $("columnHeaderFocus"),
29407
29407
  onBlur: $("columnHeaderBlur")
29408
- }), [$]), A = p.useMemo(() => R ? {
29408
+ }), [$]), A = p.useMemo(() => O ? {
29409
29409
  onDragStart: $("columnHeaderDragStart"),
29410
29410
  onDragEnter: $("columnHeaderDragEnter"),
29411
29411
  onDragOver: $("columnHeaderDragOver"),
29412
29412
  onDragEndCapture: $("columnHeaderDragEnd")
29413
- } : {}, [R, $]), _ = p.useMemo(() => ({
29413
+ } : {}, [O, $]), _ = p.useMemo(() => ({
29414
29414
  onMouseDown: $("columnSeparatorMouseDown"),
29415
29415
  onDoubleClick: $("columnSeparatorDoubleClick")
29416
29416
  }), [$]);
29417
29417
  p.useEffect(() => {
29418
- O || C(o);
29419
- }, [O, o]);
29418
+ R || C(o);
29419
+ }, [R, o]);
29420
29420
  const G = p.useCallback(() => {
29421
29421
  C(!1);
29422
29422
  }, []), k = !S.disableColumnMenu && !t.disableColumnMenu && /* @__PURE__ */ b.jsx(QC, {
29423
29423
  colDef: t,
29424
29424
  columnMenuId: M,
29425
29425
  columnMenuButtonId: D,
29426
- open: O,
29426
+ open: R,
29427
29427
  iconButtonRef: T
29428
29428
  }), F = /* @__PURE__ */ b.jsx(JC, {
29429
29429
  columnMenuId: M,
@@ -29465,7 +29465,7 @@ function lv(e) {
29465
29465
  hasFocus: d,
29466
29466
  tabIndex: f,
29467
29467
  separatorSide: m,
29468
- isDraggable: R,
29468
+ isDraggable: O,
29469
29469
  headerComponent: L,
29470
29470
  description: t.description,
29471
29471
  elementId: t.field,
@@ -30358,7 +30358,7 @@ const O$ = ["item", "hasMultipleFilters", "deleteFilter", "applyFilterChanges",
30358
30358
  columnInputProps: x = {},
30359
30359
  valueInputProps: v = {},
30360
30360
  readOnly: S
30361
- } = t, I = me(t, O$), P = Fe(), M = J(P, ao), D = J(P, jy), T = J(P, Ot), O = Ye(), C = Ye(), R = Ye(), L = Ye(), j = Ce(), H = M$(j), $ = p.useRef(null), N = p.useRef(null), A = T.logicOperator ?? yn.And, _ = s && f.length > 0, k = (j.slotProps?.baseSelect || {}).native ?? !1, F = j.slotProps?.baseSelectOption || {}, {
30361
+ } = t, I = me(t, O$), P = Fe(), M = J(P, ao), D = J(P, jy), T = J(P, Ot), R = Ye(), C = Ye(), O = Ye(), L = Ye(), j = Ce(), H = M$(j), $ = p.useRef(null), N = p.useRef(null), A = T.logicOperator ?? yn.And, _ = s && f.length > 0, k = (j.slotProps?.baseSelect || {}).native ?? !1, F = j.slotProps?.baseSelectOption || {}, {
30362
30362
  InputComponentProps: B
30363
30363
  } = v, U = me(v, R$), z = J(P, Nr), q = J(P, VC), {
30364
30364
  filteredColumns: W,
@@ -30493,7 +30493,7 @@ const O$ = ["item", "hasMultipleFilters", "deleteFilter", "applyFilterChanges",
30493
30493
  ownerState: j,
30494
30494
  size: "small",
30495
30495
  labelId: C,
30496
- id: O,
30496
+ id: R,
30497
30497
  label: P.current.getLocaleText("filterPanelColumns"),
30498
30498
  value: Q ?? "",
30499
30499
  onChange: re,
@@ -30513,7 +30513,7 @@ const O$ = ["item", "hasMultipleFilters", "deleteFilter", "applyFilterChanges",
30513
30513
  ownerState: j,
30514
30514
  labelId: L,
30515
30515
  label: P.current.getLocaleText("filterPanelOperator"),
30516
- id: R,
30516
+ id: O,
30517
30517
  value: r.operator,
30518
30518
  onChange: K,
30519
30519
  native: k,
@@ -30691,13 +30691,13 @@ const A$ = ["logicOperators", "columnsSort", "filterFormProps", "getColumnForNew
30691
30691
  } = p.useMemo(() => P.reduce((L, j) => (a[j.field] ? L.validFilters.push(j) : L.readOnlyFilters.push(j), L), {
30692
30692
  readOnlyFilters: [],
30693
30693
  validFilters: []
30694
- }), [P, a]), O = p.useCallback(() => {
30694
+ }), [P, a]), R = p.useCallback(() => {
30695
30695
  const L = I();
30696
30696
  L && r.current.upsertFilterItems([...P, L]);
30697
30697
  }, [r, I, P]), C = p.useCallback((L) => {
30698
30698
  const j = T.length === 1;
30699
30699
  r.current.deleteFilterItem(L), j && r.current.hideFilterPanel();
30700
- }, [r, T.length]), R = p.useCallback(() => T.length === 1 && T[0].value === void 0 ? (r.current.deleteFilterItem(T[0]), r.current.hideFilterPanel()) : r.current.setFilterModel(E({}, i, {
30700
+ }, [r, T.length]), O = p.useCallback(() => T.length === 1 && T[0].value === void 0 ? (r.current.deleteFilterItem(T[0]), r.current.hideFilterPanel()) : r.current.setFilterModel(E({}, i, {
30701
30701
  items: D
30702
30702
  }), "removeAllFilterItems"), [r, D, i, T]);
30703
30703
  return p.useEffect(() => {
@@ -30733,12 +30733,12 @@ const A$ = ["logicOperators", "columnsSort", "filterFormProps", "getColumnForNew
30733
30733
  }, h), L.id == null ? j + D.length : L.id))]
30734
30734
  }), !s.disableMultipleColumnsFiltering && !(y && g) ? /* @__PURE__ */ b.jsxs(xv, {
30735
30735
  children: [y ? /* @__PURE__ */ b.jsx("span", {}) : /* @__PURE__ */ b.jsx(s.slots.baseButton, E({
30736
- onClick: O,
30736
+ onClick: R,
30737
30737
  startIcon: /* @__PURE__ */ b.jsx(s.slots.filterPanelAddIcon, {})
30738
30738
  }, s.slotProps?.baseButton, {
30739
30739
  children: r.current.getLocaleText("filterPanelAddFilter")
30740
30740
  })), !g && T.length > 0 ? /* @__PURE__ */ b.jsx(s.slots.baseButton, E({
30741
- onClick: R,
30741
+ onClick: O,
30742
30742
  startIcon: /* @__PURE__ */ b.jsx(s.slots.filterPanelRemoveAllIcon, {})
30743
30743
  }, s.slotProps?.baseButton, {
30744
30744
  children: r.current.getLocaleText("filterPanelRemoveAll")
@@ -30923,14 +30923,14 @@ function Sv(e) {
30923
30923
  field: k
30924
30924
  }) => _.includes(k)) : M;
30925
30925
  return l ? G.filter((k) => y(k, l.toLowerCase())) : G;
30926
- }, [M, l, y, S]), O = p.useCallback((_) => {
30926
+ }, [M, l, y, S]), R = p.useCallback((_) => {
30927
30927
  const G = zn(t), k = E({}, G), F = S ? S(h) : null;
30928
30928
  return (v === "filteredOnly" ? T : h).forEach((B) => {
30929
30929
  B.hideable && (F == null || F.includes(B.field)) && (_ ? delete k[B.field] : k[B.field] = !1);
30930
30930
  }), t.current.setColumnVisibilityModel(k);
30931
30931
  }, [t, h, S, v, T]), C = p.useCallback((_) => {
30932
30932
  a(_.target.value);
30933
- }, []), R = p.useMemo(() => T.filter((_) => _.hideable), [T]), L = p.useMemo(() => R.every((_) => s[_.field] == null || s[_.field] !== !1), [s, R]), j = p.useMemo(() => R.every((_) => s[_.field] === !1), [s, R]), H = p.useRef(null);
30933
+ }, []), O = p.useMemo(() => T.filter((_) => _.hideable), [T]), L = p.useMemo(() => O.every((_) => s[_.field] == null || s[_.field] !== !1), [s, O]), j = p.useMemo(() => O.every((_) => s[_.field] === !1), [s, O]), H = p.useRef(null);
30934
30934
  p.useEffect(() => {
30935
30935
  g ? o.current?.focus() : H.current && typeof H.current.focus == "function" && H.current.focus();
30936
30936
  }, [g]);
@@ -31005,10 +31005,10 @@ function Sv(e) {
31005
31005
  ownerState: i,
31006
31006
  className: c.footer,
31007
31007
  children: [w ? /* @__PURE__ */ b.jsx("span", {}) : /* @__PURE__ */ b.jsx(i.slots.baseCheckbox, E({
31008
- disabled: R.length === 0 || d,
31008
+ disabled: O.length === 0 || d,
31009
31009
  checked: L,
31010
31010
  indeterminate: !L && !j,
31011
- onChange: () => O(!L),
31011
+ onChange: () => R(!L),
31012
31012
  name: t.current.getLocaleText("columnsManagementShowHideAllText"),
31013
31013
  label: t.current.getLocaleText("columnsManagementShowHideAllText"),
31014
31014
  density: "compact"
@@ -31569,27 +31569,27 @@ function qp(e) {
31569
31569
  expanded: S
31570
31570
  }), [g, S]), P = typeof r == "function" ? r(I) : r, M = p.useRef(null), D = Ye(), T = p.useCallback((A) => {
31571
31571
  u && u(A), c === void 0 && v(A);
31572
- }, [u, c]), O = p.useRef(y);
31572
+ }, [u, c]), R = p.useRef(y);
31573
31573
  p.useEffect(() => {
31574
- Cn(O.current, y) || (O.current = y, w((A) => Cn(s(A), y) ? A : i(y ?? [])));
31574
+ Cn(R.current, y) || (R.current = y, w((A) => Cn(s(A), y) ? A : i(y ?? [])));
31575
31575
  }, [y, i, s]);
31576
- const C = p.useRef(!0), R = p.useRef(S);
31576
+ const C = p.useRef(!0), O = p.useRef(S);
31577
31577
  p.useEffect(() => {
31578
31578
  if (C.current) {
31579
31579
  C.current = !1;
31580
31580
  return;
31581
31581
  }
31582
- R.current !== S && (S ? requestAnimationFrame(() => {
31582
+ O.current !== S && (S ? requestAnimationFrame(() => {
31583
31583
  h.current?.focus({
31584
31584
  preventScroll: !0
31585
31585
  });
31586
31586
  }) : m.current?.focus({
31587
31587
  preventScroll: !0
31588
- }), R.current = S);
31588
+ }), O.current = S);
31589
31589
  }, [S]);
31590
31590
  const L = p.useMemo(() => Qi((A) => {
31591
31591
  const _ = s(A);
31592
- O.current = _, f.current.setQuickFilterValues(_);
31592
+ R.current = _, f.current.setQuickFilterValues(_);
31593
31593
  }, l), [f, l, s]);
31594
31594
  p.useEffect(() => L.clear, [L]);
31595
31595
  const j = p.useCallback((A) => {
@@ -32534,51 +32534,51 @@ const IL = ["skeletonRowsCount", "visibleColumns", "showFirstRowBorder"], OL = n
32534
32534
  visibleColumns: g,
32535
32535
  showFirstRowBorder: w
32536
32536
  } = t, x = me(t, IL), v = J(u, Tt), S = p.useMemo(() => v.slice(0, m), [v, m]), I = J(u, rr), P = p.useCallback((T) => {
32537
- if (I.left.findIndex((O) => O.field === T) !== -1)
32537
+ if (I.left.findIndex((R) => R.field === T) !== -1)
32538
32538
  return Je.LEFT;
32539
- if (I.right.findIndex((O) => O.field === T) !== -1)
32539
+ if (I.right.findIndex((R) => R.field === T) !== -1)
32540
32540
  return Je.RIGHT;
32541
32541
  }, [I.left, I.right]), M = p.useMemo(() => {
32542
32542
  const T = [];
32543
- for (let O = 0; O < y; O += 1) {
32543
+ for (let R = 0; R < y; R += 1) {
32544
32544
  const C = [];
32545
- for (let R = 0; R < S.length; R += 1) {
32546
- const L = S[R], j = P(L.field), H = j === Je.LEFT, $ = j === Je.RIGHT, N = WC(j, i), A = N ? I[N].length : S.length - I.left.length - I.right.length, _ = N ? I[N].findIndex((K) => K.field === L.field) : R - I.left.length, G = d.hasScrollY ? d.scrollbarSize : 0, k = ul({}, i, j, Ii(j, L.computedWidth, R, h, d.columnsTotalWidth, G)), F = d.columnsTotalWidth < d.viewportOuterSize.width, B = _i(j, _, A, r.showCellVerticalBorder, F), U = Hi(j, _), z = R === S.length - 1, q = $ && _ === 0, W = q && F, Q = z && !q && F, Z = d.viewportOuterSize.width - d.columnsTotalWidth, X = Math.max(0, Z), Y = /* @__PURE__ */ b.jsx(s.skeletonCell, {
32545
+ for (let O = 0; O < S.length; O += 1) {
32546
+ const L = S[O], j = P(L.field), H = j === Je.LEFT, $ = j === Je.RIGHT, N = WC(j, i), A = N ? I[N].length : S.length - I.left.length - I.right.length, _ = N ? I[N].findIndex((K) => K.field === L.field) : O - I.left.length, G = d.hasScrollY ? d.scrollbarSize : 0, k = ul({}, i, j, Ii(j, L.computedWidth, O, h, d.columnsTotalWidth, G)), F = d.columnsTotalWidth < d.viewportOuterSize.width, B = _i(j, _, A, r.showCellVerticalBorder, F), U = Hi(j, _), z = O === S.length - 1, q = $ && _ === 0, W = q && F, Q = z && !q && F, Z = d.viewportOuterSize.width - d.columnsTotalWidth, X = Math.max(0, Z), Y = /* @__PURE__ */ b.jsx(s.skeletonCell, {
32547
32547
  width: X,
32548
32548
  empty: !0
32549
- }, `skeleton-filler-column-${O}`), re = z && G !== 0;
32549
+ }, `skeleton-filler-column-${R}`), re = z && G !== 0;
32550
32550
  W && C.push(Y), C.push(/* @__PURE__ */ b.jsx(s.skeletonCell, {
32551
32551
  field: L.field,
32552
32552
  type: L.type,
32553
32553
  align: L.align,
32554
32554
  width: "var(--width)",
32555
32555
  height: d.rowHeight,
32556
- "data-colindex": R,
32556
+ "data-colindex": O,
32557
32557
  empty: g && !g.has(L.field),
32558
32558
  className: ce(H && V["cell--pinnedLeft"], $ && V["cell--pinnedRight"], B && V["cell--withRightBorder"], U && V["cell--withLeftBorder"]),
32559
32559
  style: E({
32560
32560
  "--width": `${L.computedWidth}px`
32561
32561
  }, k)
32562
- }, `skeleton-column-${O}-${L.field}`)), Q && C.push(Y), re && C.push(/* @__PURE__ */ b.jsx(Xp, {
32562
+ }, `skeleton-column-${R}-${L.field}`)), Q && C.push(Y), re && C.push(/* @__PURE__ */ b.jsx(Xp, {
32563
32563
  pinnedRight: I.right.length > 0
32564
- }, `skeleton-scrollbar-filler-${O}`));
32564
+ }, `skeleton-scrollbar-filler-${R}`));
32565
32565
  }
32566
32566
  T.push(/* @__PURE__ */ b.jsx("div", {
32567
- className: ce(V.row, V.rowSkeleton, O === 0 && !w && V["row--firstVisible"]),
32567
+ className: ce(V.row, V.rowSkeleton, R === 0 && !w && V["row--firstVisible"]),
32568
32568
  children: C
32569
- }, `skeleton-row-${O}`));
32569
+ }, `skeleton-row-${R}`));
32570
32570
  }
32571
32571
  return T;
32572
32572
  }, [y, S, P, i, I, d.hasScrollY, d.scrollbarSize, d.columnsTotalWidth, d.viewportOuterSize.width, d.rowHeight, h, r.showCellVerticalBorder, s, g, w]);
32573
32573
  return ge(u, "columnResize", (T) => {
32574
32574
  const {
32575
- colDef: O,
32575
+ colDef: R,
32576
32576
  width: C
32577
- } = T, R = a.current?.querySelectorAll(`[data-field="${Vo(O.field)}"]`);
32578
- if (!R)
32577
+ } = T, O = a.current?.querySelectorAll(`[data-field="${Vo(R.field)}"]`);
32578
+ if (!O)
32579
32579
  throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");
32580
- const L = S.findIndex((_) => _.field === O.field), j = P(O.field), H = j === Je.LEFT, $ = j === Je.RIGHT, N = getComputedStyle(R[0]).getPropertyValue("--width"), A = parseInt(N, 10) - C;
32581
- R && R.forEach((_) => {
32580
+ const L = S.findIndex((_) => _.field === R.field), j = P(R.field), H = j === Je.LEFT, $ = j === Je.RIGHT, N = getComputedStyle(O[0]).getPropertyValue("--width"), A = parseInt(N, 10) - C;
32581
+ O && O.forEach((_) => {
32582
32582
  _.style.setProperty("--width", `${C}px`);
32583
32583
  }), H && a.current?.querySelectorAll(`.${V["cell--pinnedLeft"]}`)?.forEach((G) => {
32584
32584
  Kg(G) > L && (G.style.left = `${parseInt(getComputedStyle(G).left, 10) - A}px`);
@@ -32802,9 +32802,9 @@ const jL = ["selected", "rowId", "row", "index", "style", "rowHeight", "classNam
32802
32802
  gridHasFiller: M,
32803
32803
  onClick: D,
32804
32804
  onDoubleClick: T,
32805
- onMouseEnter: O,
32805
+ onMouseEnter: R,
32806
32806
  onMouseLeave: C,
32807
- onMouseOut: R,
32807
+ onMouseOut: O,
32808
32808
  onMouseOver: L
32809
32809
  } = t, j = me(t, jL), H = nn(), $ = oc(), N = p.useRef(null), A = Ce(), _ = gc(H), G = J(H, Wt), k = J(H, cr), F = J(H, jo), B = A.rowReordering, U = J(H, AL, B), z = rt(N, o), q = dn(H, s), W = J(H, zC, {
32810
32810
  rowId: s,
@@ -32906,9 +32906,9 @@ const jL = ["selected", "rowId", "row", "index", "style", "rowHeight", "classNam
32906
32906
  const Ie = i ? {
32907
32907
  onClick: ne,
32908
32908
  onDoubleClick: ee("rowDoubleClick", T),
32909
- onMouseEnter: ee("rowMouseEnter", O),
32909
+ onMouseEnter: ee("rowMouseEnter", R),
32910
32910
  onMouseLeave: ee("rowMouseLeave", C),
32911
- onMouseOut: ee("rowMouseOut", R),
32911
+ onMouseOut: ee("rowMouseOut", O),
32912
32912
  onMouseOver: ee("rowMouseOver", L)
32913
32913
  } : null;
32914
32914
  return /* @__PURE__ */ b.jsxs("div", E({
@@ -33346,7 +33346,7 @@ async function gj(e) {
33346
33346
  return;
33347
33347
  const {
33348
33348
  default: t
33349
- } = await import("./get-context-x9ur05XV.js"), o = await t();
33349
+ } = await import("./get-context-DF28w6nV.js"), o = await t();
33350
33350
  if (!e || !hj(o))
33351
33351
  return;
33352
33352
  const r = E({}, e, {
@@ -33543,9 +33543,9 @@ function Tj(e) {
33543
33543
  groupBy: M,
33544
33544
  handleHomeEndKeys: D = !e.freeSolo,
33545
33545
  id: T,
33546
- includeInputInList: O = !1,
33546
+ includeInputInList: R = !1,
33547
33547
  inputValue: C,
33548
- isOptionEqualToValue: R = (ue, ie) => ue === ie,
33548
+ isOptionEqualToValue: O = (ue, ie) => ue === ie,
33549
33549
  multiple: L = !1,
33550
33550
  onChange: j,
33551
33551
  onClose: H,
@@ -33592,7 +33592,7 @@ function Tj(e) {
33592
33592
  name: u,
33593
33593
  state: "open"
33594
33594
  }), [Ie, be] = p.useState(!0), Ee = !L && ae != null && Te === W(ae), ve = de && !F, fe = ve ? w(
33595
- k.filter((ue) => !(x && (L ? ae : [ae]).some((ie) => ie !== null && R(ue, ie)))),
33595
+ k.filter((ue) => !(x && (L ? ae : [ae]).some((ie) => ie !== null && O(ue, ie)))),
33596
33596
  // we use the empty string to manipulate `filterOptions` to not filter any options
33597
33597
  // i.e. the filter predicate always returns true
33598
33598
  {
@@ -33669,7 +33669,7 @@ function Tj(e) {
33669
33669
  if (ie === "end")
33670
33670
  return qt;
33671
33671
  const gn = Se.current + ie;
33672
- return gn < 0 ? gn === -1 && O ? -1 : g && Se.current !== -1 || Math.abs(ie) > 1 ? 0 : qt : gn > qt ? gn === qt + 1 && O ? -1 : g || Math.abs(ie) > 1 ? qt : 0 : gn;
33672
+ return gn < 0 ? gn === -1 && R ? -1 : g && Se.current !== -1 || Math.abs(ie) > 1 ? 0 : qt : gn > qt ? gn === qt + 1 && R ? -1 : g || Math.abs(ie) > 1 ? qt : 0 : gn;
33673
33673
  })(), Oe);
33674
33674
  if (Re({
33675
33675
  index: Ct,
@@ -33711,9 +33711,9 @@ function Tj(e) {
33711
33711
  if (Y.current) {
33712
33712
  if (ie != null) {
33713
33713
  const Oe = fe[Se.current];
33714
- if (L && Oe && ae.findIndex((He) => R(Oe, He)) !== -1)
33714
+ if (L && Oe && ae.findIndex((He) => O(Oe, He)) !== -1)
33715
33715
  return;
33716
- const ot = fe.findIndex((He) => R(He, ie));
33716
+ const ot = fe.findIndex((He) => O(He, ie));
33717
33717
  ot === -1 ? _e({
33718
33718
  diff: "reset"
33719
33719
  }) : Re({
@@ -33768,11 +33768,11 @@ function Tj(e) {
33768
33768
  let He = Oe, Ct = ie;
33769
33769
  if (L) {
33770
33770
  if (Ct = Array.isArray(ae) ? ae.slice() : [], process.env.NODE_ENV !== "production") {
33771
- const gn = Ct.filter((Qs) => R(ie, Qs));
33771
+ const gn = Ct.filter((Qs) => O(ie, Qs));
33772
33772
  gn.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${gn.length} matches.`].join(`
33773
33773
  `));
33774
33774
  }
33775
- const qt = Ct.findIndex((gn) => R(ie, gn));
33775
+ const qt = Ct.findIndex((gn) => O(ie, gn));
33776
33776
  qt === -1 ? Ct.push(ie) : ot !== "freeSolo" && (Ct.splice(qt, 1), He = "removeOption");
33777
33777
  }
33778
33778
  Le(ue, Ct, He), at(ue, Ct, He, {
@@ -34032,7 +34032,7 @@ function Tj(e) {
34032
34032
  index: ue,
34033
34033
  option: ie
34034
34034
  }) => {
34035
- const Oe = (L ? ae : [ae]).some((He) => He != null && R(ie, He)), ot = S ? S(ie) : !1;
34035
+ const Oe = (L ? ae : [ae]).some((He) => He != null && O(ie, He)), ot = S ? S(ie) : !1;
34036
34036
  return {
34037
34037
  key: I?.(ie) ?? W(ie),
34038
34038
  tabIndex: -1,
@@ -34561,9 +34561,9 @@ const Pc = /* @__PURE__ */ p.forwardRef(function(t, o) {
34561
34561
  slots: P = {},
34562
34562
  slotProps: M = {},
34563
34563
  ...D
34564
- } = r, T = p.useRef(null), O = rt(T, o), C = (W) => {
34564
+ } = r, T = p.useRef(null), R = rt(T, o), C = (W) => {
34565
34565
  W.stopPropagation(), y && y(W);
34566
- }, R = (W) => {
34566
+ }, O = (W) => {
34567
34567
  W.currentTarget === W.target && Jg(W) && W.preventDefault(), g && g(W);
34568
34568
  }, L = (W) => {
34569
34569
  W.currentTarget === W.target && y && Jg(W) && y(W), w && w(W);
@@ -34612,7 +34612,7 @@ const Pc = /* @__PURE__ */ p.forwardRef(function(t, o) {
34612
34612
  ownerState: $,
34613
34613
  // The `component` prop is preserved because `Chip` relies on it for internal logic. If `shouldForwardComponentProp` were `false`, `useSlot` would remove the `component` prop, potentially breaking the component's behavior.
34614
34614
  shouldForwardComponentProp: !0,
34615
- ref: O,
34615
+ ref: R,
34616
34616
  className: ce(N.root, i),
34617
34617
  additionalProps: {
34618
34618
  disabled: j && d ? !0 : void 0,
@@ -34625,7 +34625,7 @@ const Pc = /* @__PURE__ */ p.forwardRef(function(t, o) {
34625
34625
  W.onClick?.(Q), m?.(Q);
34626
34626
  },
34627
34627
  onKeyDown: (Q) => {
34628
- W.onKeyDown?.(Q), R?.(Q);
34628
+ W.onKeyDown?.(Q), O?.(Q);
34629
34629
  },
34630
34630
  onKeyUp: (Q) => {
34631
34631
  W.onKeyUp?.(Q), L?.(Q);
@@ -35153,9 +35153,9 @@ const jj = (e) => {
35153
35153
  disablePortal: M = !1,
35154
35154
  filterOptions: D,
35155
35155
  filterSelectedOptions: T = !1,
35156
- forcePopupIcon: O = "auto",
35156
+ forcePopupIcon: R = "auto",
35157
35157
  freeSolo: C = !1,
35158
- fullWidth: R = !1,
35158
+ fullWidth: O = !1,
35159
35159
  getLimitTagsText: L = (pt) => `+${pt}`,
35160
35160
  getOptionDisabled: j,
35161
35161
  getOptionKey: H,
@@ -35220,7 +35220,7 @@ const jj = (e) => {
35220
35220
  } = Tj({
35221
35221
  ...r,
35222
35222
  componentName: "Autocomplete"
35223
- }), Ks = !x && !S && lt && !$e, Xs = (!C || O === !0) && O !== !1, {
35223
+ }), Ks = !x && !S && lt && !$e, Xs = (!C || R === !0) && R !== !1, {
35224
35224
  onMouseDown: Mc
35225
35225
  } = Qe(), {
35226
35226
  ref: kc,
@@ -35230,7 +35230,7 @@ const jj = (e) => {
35230
35230
  disablePortal: M,
35231
35231
  expanded: at,
35232
35232
  focused: rn,
35233
- fullWidth: R,
35233
+ fullWidth: O,
35234
35234
  getOptionLabel: Ur,
35235
35235
  hasClearIcon: Ks,
35236
35236
  hasPopupIcon: Xs,
@@ -36152,18 +36152,18 @@ const nf = /* @__PURE__ */ p.forwardRef(function(t, o) {
36152
36152
  invisible: m,
36153
36153
  badgeContent: g,
36154
36154
  showZero: v
36155
- }), O = tf({
36155
+ }), R = tf({
36156
36156
  anchorOrigin: tm(s),
36157
36157
  color: h,
36158
36158
  overlap: f,
36159
36159
  variant: S,
36160
36160
  badgeContent: g
36161
36161
  }), C = M || P == null && S !== "dot", {
36162
- color: R = h,
36162
+ color: O = h,
36163
36163
  overlap: L = f,
36164
36164
  anchorOrigin: j,
36165
36165
  variant: H = S
36166
- } = C ? O : r, $ = tm(j), N = H !== "dot" ? T : void 0, A = {
36166
+ } = C ? R : r, $ = tm(j), N = H !== "dot" ? T : void 0, A = {
36167
36167
  ...r,
36168
36168
  badgeContent: P,
36169
36169
  invisible: C,
@@ -36171,7 +36171,7 @@ const nf = /* @__PURE__ */ p.forwardRef(function(t, o) {
36171
36171
  displayValue: N,
36172
36172
  showZero: v,
36173
36173
  anchorOrigin: $,
36174
- color: R,
36174
+ color: O,
36175
36175
  overlap: L,
36176
36176
  variant: H
36177
36177
  }, _ = Qj(A), G = {
@@ -38726,9 +38726,9 @@ function _V(e, t) {
38726
38726
  });
38727
38727
  const s = p.useCallback((C) => {
38728
38728
  o.debug("Updating columns state."), e.current.setState(HV(C)), e.current.publishEvent("columnsChange", C.orderedFields);
38729
- }, [o, e]), i = p.useCallback((C) => ao(e)[C], [e]), l = p.useCallback(() => Wn(e), [e]), a = p.useCallback(() => Tt(e), [e]), c = p.useCallback((C, R = !0) => (R ? Tt(e) : Wn(e)).findIndex((j) => j.field === C), [e]), u = p.useCallback((C) => {
38730
- const R = c(C);
38731
- return jo(e)[R];
38729
+ }, [o, e]), i = p.useCallback((C) => ao(e)[C], [e]), l = p.useCallback(() => Wn(e), [e]), a = p.useCallback(() => Tt(e), [e]), c = p.useCallback((C, O = !0) => (O ? Tt(e) : Wn(e)).findIndex((j) => j.field === C), [e]), u = p.useCallback((C) => {
38730
+ const O = c(C);
38731
+ return jo(e)[O];
38732
38732
  }, [e, c]), d = p.useCallback((C) => {
38733
38733
  zn(e) !== C && (e.current.setState((L) => E({}, L, {
38734
38734
  columns: is({
@@ -38744,29 +38744,29 @@ function _V(e, t) {
38744
38744
  e.current.updateNonPivotColumns(C);
38745
38745
  return;
38746
38746
  }
38747
- const R = is({
38747
+ const O = is({
38748
38748
  apiRef: e,
38749
38749
  columnsToUpsert: C,
38750
38750
  initialState: void 0,
38751
38751
  keepOnlyColumnsToUpsert: !1,
38752
38752
  updateInitialVisibilityModel: !0
38753
38753
  });
38754
- s(R);
38755
- }, [e, s]), h = p.useCallback((C, R) => {
38754
+ s(O);
38755
+ }, [e, s]), h = p.useCallback((C, O) => {
38756
38756
  const L = zn(e), j = L[C] ?? !0;
38757
- if (R !== j) {
38757
+ if (O !== j) {
38758
38758
  const H = E({}, L, {
38759
- [C]: R
38759
+ [C]: O
38760
38760
  });
38761
38761
  e.current.setColumnVisibilityModel(H);
38762
38762
  }
38763
- }, [e]), m = p.useCallback((C) => Un(e).findIndex((L) => L === C), [e]), y = p.useCallback((C, R) => {
38763
+ }, [e]), m = p.useCallback((C) => Un(e).findIndex((L) => L === C), [e]), y = p.useCallback((C, O) => {
38764
38764
  const L = Un(e), j = m(C);
38765
- if (j === R)
38765
+ if (j === O)
38766
38766
  return;
38767
- o.debug(`Moving column ${C} to index ${R}`);
38767
+ o.debug(`Moving column ${C} to index ${O}`);
38768
38768
  const H = [...L], $ = H.splice(j, 1)[0];
38769
- H.splice(R, 0, $), s(E({}, so(e), {
38769
+ H.splice(O, 0, $), s(E({}, so(e), {
38770
38770
  orderedFields: H
38771
38771
  }));
38772
38772
  const N = {
@@ -38775,10 +38775,10 @@ function _V(e, t) {
38775
38775
  oldIndex: j
38776
38776
  };
38777
38777
  e.current.publishEvent("columnIndexChange", N);
38778
- }, [e, o, s, m]), g = p.useCallback((C, R) => {
38779
- o.debug(`Updating column ${C} width to ${R}`);
38778
+ }, [e, o, s, m]), g = p.useCallback((C, O) => {
38779
+ o.debug(`Updating column ${C} width to ${O}`);
38780
38780
  const L = so(e), j = L.lookup[C], H = E({}, j, {
38781
- width: R,
38781
+ width: O,
38782
38782
  hasBeenResized: !0
38783
38783
  });
38784
38784
  s(ku(E({}, L, {
@@ -38788,7 +38788,7 @@ function _V(e, t) {
38788
38788
  }), e.current.getRootDimensions())), e.current.publishEvent("columnWidthChange", {
38789
38789
  element: e.current.getColumnHeaderElement(C),
38790
38790
  colDef: H,
38791
- width: R
38791
+ width: O
38792
38792
  });
38793
38793
  }, [e, o, s]), w = {
38794
38794
  getColumn: i,
@@ -38805,10 +38805,10 @@ function _V(e, t) {
38805
38805
  setColumnIndex: y
38806
38806
  };
38807
38807
  Be(e, w, "public"), Be(e, x, t.signature === Tn.DataGrid ? "private" : "public");
38808
- const v = p.useCallback((C, R) => {
38808
+ const v = p.useCallback((C, O) => {
38809
38809
  const L = {}, j = zn(e);
38810
38810
  // Always export if the `exportOnlyDirtyModels` property is not activated
38811
- (!R.exportOnlyDirtyModels || // Always export if the model is controlled
38811
+ (!O.exportOnlyDirtyModels || // Always export if the model is controlled
38812
38812
  t.columnVisibilityModel != null || // Always export if the model has been initialized
38813
38813
  // TODO v6 Do a nullish check instead to export even if the initial model equals "{}"
38814
38814
  Object.keys(t.initialState?.columns?.columnVisibilityModel ?? {}).length > 0 || // Always export if the model is not empty
@@ -38825,8 +38825,8 @@ function _V(e, t) {
38825
38825
  }), Object.keys(N).length > 0 && (L.dimensions = N), E({}, C, {
38826
38826
  columns: L
38827
38827
  });
38828
- }, [e, t.columnVisibilityModel, t.initialState?.columns]), S = p.useCallback((C, R) => {
38829
- const L = R.stateToRestore.columns, j = L?.columnVisibilityModel;
38828
+ }, [e, t.columnVisibilityModel, t.initialState?.columns]), S = p.useCallback((C, O) => {
38829
+ const L = O.stateToRestore.columns, j = L?.columnVisibilityModel;
38830
38830
  if (L == null)
38831
38831
  return C;
38832
38832
  const H = is({
@@ -38847,15 +38847,15 @@ function _V(e, t) {
38847
38847
  columnVisibilityModel: j
38848
38848
  })
38849
38849
  })), L != null && e.current.publishEvent("columnsChange", H.orderedFields), C;
38850
- }, [e]), I = p.useCallback((C, R) => {
38851
- if (R === Xt.columns) {
38850
+ }, [e]), I = p.useCallback((C, O) => {
38851
+ if (O === Xt.columns) {
38852
38852
  const L = t.slots.columnsPanel;
38853
38853
  return /* @__PURE__ */ b.jsx(L, E({}, t.slotProps?.columnsPanel));
38854
38854
  }
38855
38855
  return C;
38856
38856
  }, [t.slots.columnsPanel, t.slotProps?.columnsPanel]), P = p.useCallback((C) => {
38857
- const R = Nr(e);
38858
- return t.disableColumnSelector || R ? C : [...C, "columnMenuColumnsItem"];
38857
+ const O = Nr(e);
38858
+ return t.disableColumnSelector || O ? C : [...C, "columnMenuColumnsItem"];
38859
38859
  }, [t.disableColumnSelector, e]);
38860
38860
  tt(e, "columnMenu", P), tt(e, "exportState", v), tt(e, "restoreState", S), tt(e, "preferencePanel", I);
38861
38861
  const M = p.useRef(null);
@@ -38877,10 +38877,10 @@ function _V(e, t) {
38877
38877
  s(C);
38878
38878
  }, [e, o, s]);
38879
38879
  sf(e, "hydrateColumns", T);
38880
- const O = p.useRef(!0);
38880
+ const R = p.useRef(!0);
38881
38881
  p.useEffect(() => {
38882
- if (O.current) {
38883
- O.current = !1;
38882
+ if (R.current) {
38883
+ R.current = !1;
38884
38884
  return;
38885
38885
  }
38886
38886
  if (o.info(`GridColumns have changed, new length ${t.columns.length}`), r.current === t.columns)
@@ -39201,11 +39201,11 @@ const YV = (e, t) => {
39201
39201
  return;
39202
39202
  const I = Gs(e), P = e.current.rootElementRef.current, M = P.cloneNode(!0), D = M.querySelector(`.${V.main}`);
39203
39203
  D.style.overflow = "visible", M.style.contain = "size";
39204
- let T = P.querySelector(`.${V.toolbarContainer}`)?.offsetHeight || 0, O = P.querySelector(`.${V.footerContainer}`)?.offsetHeight || 0;
39204
+ let T = P.querySelector(`.${V.toolbarContainer}`)?.offsetHeight || 0, R = P.querySelector(`.${V.footerContainer}`)?.offsetHeight || 0;
39205
39205
  const C = M.querySelector(`.${V.footerContainer}`);
39206
- v.hideToolbar && (M.querySelector(`.${V.toolbarContainer}`)?.remove(), T = 0), v.hideFooter && C && (C.remove(), O = 0);
39207
- const R = I.currentPageTotalHeight + hc(e, t) + T + O;
39208
- M.style.height = `${R}px`, M.style.boxSizing = "content-box", !v.hideFooter && C && (C.style.position = "absolute", C.style.width = "100%", C.style.top = `${R - O}px`);
39206
+ v.hideToolbar && (M.querySelector(`.${V.toolbarContainer}`)?.remove(), T = 0), v.hideFooter && C && (C.remove(), R = 0);
39207
+ const O = I.currentPageTotalHeight + hc(e, t) + T + R;
39208
+ M.style.height = `${O}px`, M.style.boxSizing = "content-box", !v.hideFooter && C && (C.style.position = "absolute", C.style.width = "100%", C.style.top = `${O - R}px`);
39209
39209
  const L = document.createElement("div");
39210
39210
  L.appendChild(M), S.body.style.marginTop = "0px", S.body.innerHTML = L.innerHTML;
39211
39211
  const j = typeof v.pageStyle == "function" ? v.pageStyle() : v.pageStyle;
@@ -39297,34 +39297,34 @@ const e_ = (e, t) => {
39297
39297
  });
39298
39298
  const r = p.useCallback(() => {
39299
39299
  e.current.setState((T) => {
39300
- const O = Ot(e), C = e.current.getFilterState(O), R = E({}, T, {
39300
+ const R = Ot(e), C = e.current.getFilterState(R), O = E({}, T, {
39301
39301
  filter: E({}, T.filter, C)
39302
- }), L = pm(e, R);
39303
- return E({}, R, {
39302
+ }), L = pm(e, O);
39303
+ return E({}, O, {
39304
39304
  visibleRowsLookup: L
39305
39305
  });
39306
39306
  }), e.current.publishEvent("filteredRowsSet");
39307
- }, [e]), s = p.useCallback((T, O) => O == null || O.filterable === !1 || t.disableColumnFilter ? T : [...T, "columnMenuFilterItem"], [t.disableColumnFilter]), i = p.useCallback((T) => {
39308
- const O = Ot(e), C = [...O.items], R = C.findIndex((L) => L.id === T.id);
39309
- R === -1 ? C.push(T) : C[R] = T, e.current.setFilterModel(E({}, O, {
39307
+ }, [e]), s = p.useCallback((T, R) => R == null || R.filterable === !1 || t.disableColumnFilter ? T : [...T, "columnMenuFilterItem"], [t.disableColumnFilter]), i = p.useCallback((T) => {
39308
+ const R = Ot(e), C = [...R.items], O = C.findIndex((L) => L.id === T.id);
39309
+ O === -1 ? C.push(T) : C[O] = T, e.current.setFilterModel(E({}, R, {
39310
39310
  items: C
39311
39311
  }), "upsertFilterItem");
39312
39312
  }, [e]), l = p.useCallback((T) => {
39313
- const O = Ot(e), C = [...O.items];
39314
- T.forEach((R) => {
39315
- const L = C.findIndex((j) => j.id === R.id);
39316
- L === -1 ? C.push(R) : C[L] = R;
39317
- }), e.current.setFilterModel(E({}, O, {
39313
+ const R = Ot(e), C = [...R.items];
39314
+ T.forEach((O) => {
39315
+ const L = C.findIndex((j) => j.id === O.id);
39316
+ L === -1 ? C.push(O) : C[L] = O;
39317
+ }), e.current.setFilterModel(E({}, R, {
39318
39318
  items: C
39319
39319
  }), "upsertFilterItems");
39320
39320
  }, [e]), a = p.useCallback((T) => {
39321
- const O = Ot(e), C = O.items.filter((R) => R.id !== T.id);
39322
- C.length !== O.items.length && e.current.setFilterModel(E({}, O, {
39321
+ const R = Ot(e), C = R.items.filter((O) => O.id !== T.id);
39322
+ C.length !== R.items.length && e.current.setFilterModel(E({}, R, {
39323
39323
  items: C
39324
39324
  }), "deleteFilterItem");
39325
- }, [e]), c = p.useCallback((T, O, C) => {
39325
+ }, [e]), c = p.useCallback((T, R, C) => {
39326
39326
  if (o.debug("Displaying filter panel"), T) {
39327
- const R = Ot(e), L = R.items.filter((N) => {
39327
+ const O = Ot(e), L = O.items.filter((N) => {
39328
39328
  if (N.value !== void 0)
39329
39329
  return !(Array.isArray(N.value) && N.value.length === 0);
39330
39330
  const _ = e.current.getColumn(N.field).filterOperators?.find((k) => k.value === N.operator);
@@ -39338,32 +39338,32 @@ const e_ = (e, t) => {
39338
39338
  }, e)] : j = [...L, Mu({
39339
39339
  field: T,
39340
39340
  operator: $.filterOperators[0].value
39341
- }, e)], e.current.setFilterModel(E({}, R, {
39341
+ }, e)], e.current.setFilterModel(E({}, O, {
39342
39342
  items: j
39343
39343
  }));
39344
39344
  }
39345
- e.current.showPreferences(Xt.filters, O, C);
39345
+ e.current.showPreferences(Xt.filters, R, C);
39346
39346
  }, [e, o, t.disableMultipleColumnsFiltering]), u = p.useCallback(() => {
39347
39347
  o.debug("Hiding filter panel"), e.current.hidePreferences();
39348
39348
  }, [e, o]), d = p.useCallback((T) => {
39349
- const O = Ot(e);
39350
- O.logicOperator !== T && e.current.setFilterModel(E({}, O, {
39349
+ const R = Ot(e);
39350
+ R.logicOperator !== T && e.current.setFilterModel(E({}, R, {
39351
39351
  logicOperator: T
39352
39352
  }), "changeLogicOperator");
39353
39353
  }, [e]), f = p.useCallback((T) => {
39354
- const O = Ot(e);
39355
- Cn(O.quickFilterValues, T) || e.current.setFilterModel(E({}, O, {
39354
+ const R = Ot(e);
39355
+ Cn(R.quickFilterValues, T) || e.current.setFilterModel(E({}, R, {
39356
39356
  quickFilterValues: [...T]
39357
39357
  }));
39358
- }, [e]), h = p.useCallback((T, O) => {
39359
- Ot(e) !== T && (o.debug("Setting filter model"), e.current.updateControlState("filter", hg(T, t.disableMultipleColumnsFiltering, e), O), e.current.unstable_applyFilters());
39358
+ }, [e]), h = p.useCallback((T, R) => {
39359
+ Ot(e) !== T && (o.debug("Setting filter model"), e.current.updateControlState("filter", hg(T, t.disableMultipleColumnsFiltering, e), R), e.current.unstable_applyFilters());
39360
39360
  }, [e, o, t.disableMultipleColumnsFiltering]), m = p.useCallback((T) => {
39361
- const O = op(T, t.disableMultipleColumnsFiltering, e), C = t.filterMode === "client" ? NM(O, e, t.disableEval) : null, R = e.current.applyStrategyProcessor("filtering", {
39361
+ const R = op(T, t.disableMultipleColumnsFiltering, e), C = t.filterMode === "client" ? NM(R, e, t.disableEval) : null, O = e.current.applyStrategyProcessor("filtering", {
39362
39362
  isRowMatchingFilters: C,
39363
- filterModel: O ?? ji()
39363
+ filterModel: R ?? ji()
39364
39364
  });
39365
- return E({}, R, {
39366
- filterModel: O
39365
+ return E({}, O, {
39366
+ filterModel: R
39367
39367
  });
39368
39368
  }, [t.disableMultipleColumnsFiltering, t.filterMode, t.disableEval, e]), y = {
39369
39369
  setFilterLogicOperator: d,
@@ -39379,12 +39379,12 @@ const e_ = (e, t) => {
39379
39379
  getFilterState: m
39380
39380
  };
39381
39381
  Be(e, y, "public");
39382
- const g = p.useCallback((T, O) => {
39382
+ const g = p.useCallback((T, R) => {
39383
39383
  const C = Ot(e);
39384
39384
  return C.items.forEach((L) => {
39385
39385
  delete L.fromInput;
39386
39386
  }), // Always export if the `exportOnlyDirtyModels` property is not activated
39387
- !O.exportOnlyDirtyModels || // Always export if the model is controlled
39387
+ !R.exportOnlyDirtyModels || // Always export if the model is controlled
39388
39388
  t.filterModel != null || // Always export if the model has been initialized
39389
39389
  t.initialState?.filter?.filterModel != null || // Export if the model is not equal to the default value
39390
39390
  !Cn(C, ji()) ? E({}, T, {
@@ -39392,13 +39392,13 @@ const e_ = (e, t) => {
39392
39392
  filterModel: C
39393
39393
  }
39394
39394
  }) : T;
39395
- }, [e, t.filterModel, t.initialState?.filter?.filterModel]), w = p.useCallback((T, O) => {
39396
- const C = O.stateToRestore.filter?.filterModel;
39395
+ }, [e, t.filterModel, t.initialState?.filter?.filterModel]), w = p.useCallback((T, R) => {
39396
+ const C = R.stateToRestore.filter?.filterModel;
39397
39397
  return C == null ? T : (e.current.updateControlState("filter", hg(C, t.disableMultipleColumnsFiltering, e), "restoreState"), E({}, T, {
39398
39398
  callbacks: [...T.callbacks, e.current.unstable_applyFilters]
39399
39399
  }));
39400
- }, [e, t.disableMultipleColumnsFiltering]), x = p.useCallback((T, O) => {
39401
- if (O === Xt.filters) {
39400
+ }, [e, t.disableMultipleColumnsFiltering]), x = p.useCallback((T, R) => {
39401
+ if (R === Xt.filters) {
39402
39402
  const C = t.slots.filterPanel;
39403
39403
  return /* @__PURE__ */ b.jsx(C, E({}, t.slotProps?.filterPanel));
39404
39404
  }
@@ -39408,20 +39408,20 @@ const e_ = (e, t) => {
39408
39408
  } = t, S = Zn(ZV), I = p.useCallback((T) => {
39409
39409
  if (t.filterMode !== "client" || !T.isRowMatchingFilters || !T.filterModel.items.length && !T.filterModel.quickFilterValues?.length)
39410
39410
  return pa;
39411
- const O = Gn(e), C = {}, {
39412
- isRowMatchingFilters: R
39411
+ const R = Gn(e), C = {}, {
39412
+ isRowMatchingFilters: O
39413
39413
  } = T, L = {}, j = {
39414
39414
  passingFilterItems: null,
39415
39415
  passingQuickFilterValues: null
39416
39416
  }, H = S.current(e.current.state.rows.dataRowIdToModelLookup);
39417
39417
  for (let A = 0; A < H.length; A += 1) {
39418
39418
  const _ = H[A], G = v ? v(_) : _.id;
39419
- R(_, void 0, j);
39419
+ O(_, void 0, j);
39420
39420
  const k = Hy([j.passingFilterItems], [j.passingQuickFilterValues], T.filterModel, e, L);
39421
39421
  k || (C[G] = k);
39422
39422
  }
39423
39423
  const $ = "auto-generated-group-footer-root";
39424
- return O[$] && (C[$] = !0), {
39424
+ return R[$] && (C[$] = !0), {
39425
39425
  filteredRowsLookup: C,
39426
39426
  filteredChildrenCountLookup: {},
39427
39427
  filteredDescendantCountLookup: {}
@@ -39430,7 +39430,7 @@ const e_ = (e, t) => {
39430
39430
  tt(e, "columnMenu", s), tt(e, "exportState", g), tt(e, "restoreState", w), tt(e, "preferencePanel", x), Sn(e, Fr, "filtering", I), Sn(e, Fr, "visibleRowsLookupCreation", JV);
39431
39431
  const P = p.useCallback(() => {
39432
39432
  o.debug("onColUpdated - GridColumns changed, applying filters");
39433
- const T = Ot(e), O = ao(e), C = T.items.filter((R) => R.field && O[R.field]);
39433
+ const T = Ot(e), R = ao(e), C = T.items.filter((O) => O.field && R[O.field]);
39434
39434
  C.length < T.items.length && e.current.setFilterModel(E({}, T, {
39435
39435
  items: C
39436
39436
  }));
@@ -39463,15 +39463,15 @@ const e_ = (e, t) => {
39463
39463
  columnGroupHeader: null
39464
39464
  }
39465
39465
  }), n_ = (e, t) => {
39466
- const o = Ht(e, "useGridFocus"), r = p.useRef(null), s = e.current.rootElementRef.current !== null, i = p.useCallback((T, O) => {
39467
- T && e.current.getRow(T.id) && e.current.publishEvent("cellFocusOut", e.current.getCellParams(T.id, T.field), O);
39468
- }, [e]), l = p.useCallback((T, O) => {
39466
+ const o = Ht(e, "useGridFocus"), r = p.useRef(null), s = e.current.rootElementRef.current !== null, i = p.useCallback((T, R) => {
39467
+ T && e.current.getRow(T.id) && e.current.publishEvent("cellFocusOut", e.current.getCellParams(T.id, T.field), R);
39468
+ }, [e]), l = p.useCallback((T, R) => {
39469
39469
  const C = bn(e);
39470
- C?.id === T && C?.field === O || (e.current.setState((R) => (o.debug(`Focusing on cell with id=${T} and field=${O}`), E({}, R, {
39470
+ C?.id === T && C?.field === R || (e.current.setState((O) => (o.debug(`Focusing on cell with id=${T} and field=${R}`), E({}, O, {
39471
39471
  tabIndex: {
39472
39472
  cell: {
39473
39473
  id: T,
39474
- field: O
39474
+ field: R
39475
39475
  },
39476
39476
  columnHeader: null,
39477
39477
  columnHeaderFilter: null,
@@ -39480,16 +39480,16 @@ const e_ = (e, t) => {
39480
39480
  focus: {
39481
39481
  cell: {
39482
39482
  id: T,
39483
- field: O
39483
+ field: R
39484
39484
  },
39485
39485
  columnHeader: null,
39486
39486
  columnHeaderFilter: null,
39487
39487
  columnGroupHeader: null
39488
39488
  }
39489
- }))), e.current.getRow(T) && (C && i(C, {}), e.current.publishEvent("cellFocusIn", e.current.getCellParams(T, O))));
39490
- }, [e, o, i]), a = p.useCallback((T, O = {}) => {
39489
+ }))), e.current.getRow(T) && (C && i(C, {}), e.current.publishEvent("cellFocusIn", e.current.getCellParams(T, R))));
39490
+ }, [e, o, i]), a = p.useCallback((T, R = {}) => {
39491
39491
  const C = bn(e);
39492
- i(C, O), e.current.setState((R) => (o.debug(`Focusing on column header with colIndex=${T}`), E({}, R, {
39492
+ i(C, R), e.current.setState((O) => (o.debug(`Focusing on column header with colIndex=${T}`), E({}, O, {
39493
39493
  tabIndex: {
39494
39494
  columnHeader: {
39495
39495
  field: T
@@ -39507,9 +39507,9 @@ const e_ = (e, t) => {
39507
39507
  columnGroupHeader: null
39508
39508
  }
39509
39509
  })));
39510
- }, [e, o, i]), c = p.useCallback((T, O = {}) => {
39510
+ }, [e, o, i]), c = p.useCallback((T, R = {}) => {
39511
39511
  const C = bn(e);
39512
- i(C, O), e.current.setState((R) => (o.debug(`Focusing on column header filter with colIndex=${T}`), E({}, R, {
39512
+ i(C, R), e.current.setState((O) => (o.debug(`Focusing on column header filter with colIndex=${T}`), E({}, O, {
39513
39513
  tabIndex: {
39514
39514
  columnHeader: null,
39515
39515
  columnHeaderFilter: {
@@ -39527,13 +39527,13 @@ const e_ = (e, t) => {
39527
39527
  columnGroupHeader: null
39528
39528
  }
39529
39529
  })));
39530
- }, [e, o, i]), u = p.useCallback((T, O, C = {}) => {
39531
- const R = bn(e);
39532
- R && e.current.publishEvent("cellFocusOut", e.current.getCellParams(R.id, R.field), C), e.current.setState((L) => E({}, L, {
39530
+ }, [e, o, i]), u = p.useCallback((T, R, C = {}) => {
39531
+ const O = bn(e);
39532
+ O && e.current.publishEvent("cellFocusOut", e.current.getCellParams(O.id, O.field), C), e.current.setState((L) => E({}, L, {
39533
39533
  tabIndex: {
39534
39534
  columnGroupHeader: {
39535
39535
  field: T,
39536
- depth: O
39536
+ depth: R
39537
39537
  },
39538
39538
  columnHeader: null,
39539
39539
  columnHeaderFilter: null,
@@ -39542,49 +39542,49 @@ const e_ = (e, t) => {
39542
39542
  focus: {
39543
39543
  columnGroupHeader: {
39544
39544
  field: T,
39545
- depth: O
39545
+ depth: R
39546
39546
  },
39547
39547
  columnHeader: null,
39548
39548
  columnHeaderFilter: null,
39549
39549
  cell: null
39550
39550
  }
39551
39551
  }));
39552
- }, [e]), d = p.useCallback(() => ha(e), [e]), f = p.useCallback((T, O, C) => {
39553
- let R = e.current.getColumnIndex(O);
39552
+ }, [e]), d = p.useCallback(() => ha(e), [e]), f = p.useCallback((T, R, C) => {
39553
+ let O = e.current.getColumnIndex(R);
39554
39554
  const L = Tt(e), j = go(e, {
39555
39555
  pagination: t.pagination,
39556
39556
  paginationMode: t.paginationMode
39557
39557
  }), H = Br(e), $ = [].concat(H.top || [], j.rows, H.bottom || []);
39558
39558
  let N = $.findIndex((k) => k.id === T);
39559
- C === "right" ? R += 1 : C === "left" ? R -= 1 : N += 1, R >= L.length ? (N += 1, N < $.length && (R = 0)) : R < 0 && (N -= 1, N >= 0 && (R = L.length - 1)), N = Fn(N, 0, $.length - 1);
39559
+ C === "right" ? O += 1 : C === "left" ? O -= 1 : N += 1, O >= L.length ? (N += 1, N < $.length && (O = 0)) : O < 0 && (N -= 1, N >= 0 && (O = L.length - 1)), N = Fn(N, 0, $.length - 1);
39560
39560
  const A = $[N];
39561
39561
  if (!A)
39562
39562
  return;
39563
- const _ = e.current.unstable_getCellColSpanInfo(A.id, R);
39564
- _ && _.spannedByColSpan && (C === "left" || C === "below" ? R = _.leftVisibleCellIndex : C === "right" && (R = _.rightVisibleCellIndex)), R = Fn(R, 0, L.length - 1);
39565
- const G = L[R];
39563
+ const _ = e.current.unstable_getCellColSpanInfo(A.id, O);
39564
+ _ && _.spannedByColSpan && (C === "left" || C === "below" ? O = _.leftVisibleCellIndex : C === "right" && (O = _.rightVisibleCellIndex)), O = Fn(O, 0, L.length - 1);
39565
+ const G = L[O];
39566
39566
  e.current.setCellFocus(A.id, G.field);
39567
39567
  }, [e, t.pagination, t.paginationMode]), h = p.useCallback(({
39568
39568
  id: T,
39569
- field: O
39569
+ field: R
39570
39570
  }) => {
39571
- e.current.setCellFocus(T, O);
39572
- }, [e]), m = p.useCallback((T, O) => {
39573
- O.key === "Enter" || O.key === "Tab" || O.key === "Shift" || Vi(O.key) || e.current.setCellFocus(T.id, T.field);
39571
+ e.current.setCellFocus(T, R);
39572
+ }, [e]), m = p.useCallback((T, R) => {
39573
+ R.key === "Enter" || R.key === "Tab" || R.key === "Shift" || Vi(R.key) || e.current.setCellFocus(T.id, T.field);
39574
39574
  }, [e]), y = p.useCallback(({
39575
39575
  field: T
39576
- }, O) => {
39577
- O.target === O.currentTarget && e.current.setColumnHeaderFocus(T, O);
39576
+ }, R) => {
39577
+ R.target === R.currentTarget && e.current.setColumnHeaderFocus(T, R);
39578
39578
  }, [e]), g = p.useCallback(({
39579
39579
  fields: T,
39580
- depth: O
39580
+ depth: R
39581
39581
  }, C) => {
39582
39582
  if (C.target !== C.currentTarget)
39583
39583
  return;
39584
- const R = ha(e);
39585
- R !== null && R.depth === O && T.includes(R.field) || e.current.setColumnGroupHeaderFocus(T[0], O, C);
39586
- }, [e]), w = p.useCallback((T, O) => {
39587
- O.relatedTarget?.getAttribute("class")?.includes(V.columnHeader) || (o.debug("Clearing focus"), e.current.setState((C) => E({}, C, {
39584
+ const O = ha(e);
39585
+ O !== null && O.depth === R && T.includes(O.field) || e.current.setColumnGroupHeaderFocus(T[0], R, C);
39586
+ }, [e]), w = p.useCallback((T, R) => {
39587
+ R.relatedTarget?.getAttribute("class")?.includes(V.columnHeader) || (o.debug("Clearing focus"), e.current.setState((C) => E({}, C, {
39588
39588
  focus: {
39589
39589
  cell: null,
39590
39590
  columnHeader: null,
@@ -39595,19 +39595,19 @@ const e_ = (e, t) => {
39595
39595
  }, [o, e]), x = p.useCallback((T) => {
39596
39596
  r.current = T;
39597
39597
  }, []), v = p.useCallback((T) => {
39598
- const O = r.current;
39598
+ const R = r.current;
39599
39599
  r.current = null;
39600
39600
  const C = bn(e);
39601
39601
  if (!e.current.unstable_applyPipeProcessors("canUpdateFocus", !0, {
39602
39602
  event: T,
39603
- cell: O
39603
+ cell: R
39604
39604
  }))
39605
39605
  return;
39606
39606
  if (!C) {
39607
- O && e.current.setCellFocus(O.id, O.field);
39607
+ R && e.current.setCellFocus(R.id, R.field);
39608
39608
  return;
39609
39609
  }
39610
- O?.id === C.id && O?.field === C.field || e.current.getCellElement(C.id, C.field)?.contains(T.target) || (O ? e.current.setCellFocus(O.id, O.field) : (e.current.setState((j) => E({}, j, {
39610
+ R?.id === C.id && R?.field === C.field || e.current.getCellElement(C.id, C.field)?.contains(T.target) || (R ? e.current.setCellFocus(R.id, R.field) : (e.current.setState((j) => E({}, j, {
39611
39611
  focus: {
39612
39612
  cell: null,
39613
39613
  columnHeader: null,
@@ -39618,21 +39618,21 @@ const e_ = (e, t) => {
39618
39618
  }, [e, i]), S = p.useCallback((T) => {
39619
39619
  if (T.cellMode === "view")
39620
39620
  return;
39621
- const O = bn(e);
39622
- (O?.id !== T.id || O?.field !== T.field) && e.current.setCellFocus(T.id, T.field);
39621
+ const R = bn(e);
39622
+ (R?.id !== T.id || R?.field !== T.field) && e.current.setCellFocus(T.id, T.field);
39623
39623
  }, [e]), I = p.useCallback(() => {
39624
39624
  const T = bn(e);
39625
39625
  if (T && !e.current.getRow(T.id)) {
39626
- const O = T.id;
39626
+ const R = T.id;
39627
39627
  let C = null;
39628
- if (typeof O < "u") {
39629
- const R = e.current.getRowElement(O), L = R?.dataset.rowindex ? Number(R?.dataset.rowindex) : 0, j = go(e, {
39628
+ if (typeof R < "u") {
39629
+ const O = e.current.getRowElement(R), L = O?.dataset.rowindex ? Number(O?.dataset.rowindex) : 0, j = go(e, {
39630
39630
  pagination: t.pagination,
39631
39631
  paginationMode: t.paginationMode
39632
39632
  });
39633
39633
  C = j.rows[Fn(L, 0, j.rows.length - 1)]?.id ?? null;
39634
39634
  }
39635
- e.current.setState((R) => E({}, R, {
39635
+ e.current.setState((O) => E({}, O, {
39636
39636
  focus: {
39637
39637
  cell: C === null ? null : {
39638
39638
  id: C,
@@ -39648,18 +39648,18 @@ const e_ = (e, t) => {
39648
39648
  const T = bn(e);
39649
39649
  if (!T)
39650
39650
  return;
39651
- const O = go(e, {
39651
+ const R = go(e, {
39652
39652
  pagination: t.pagination,
39653
39653
  paginationMode: t.paginationMode
39654
39654
  });
39655
- if (O.rows.find((L) => L.id === T.id) || O.rows.length === 0)
39655
+ if (R.rows.find((L) => L.id === T.id) || R.rows.length === 0)
39656
39656
  return;
39657
- const R = Tt(e);
39657
+ const O = Tt(e);
39658
39658
  e.current.setState((L) => E({}, L, {
39659
39659
  tabIndex: {
39660
39660
  cell: {
39661
- id: O.rows[0].id,
39662
- field: R[0].field
39661
+ id: R.rows[0].id,
39662
+ field: O[0].field
39663
39663
  },
39664
39664
  columnGroupHeader: null,
39665
39665
  columnHeader: null,
@@ -39724,10 +39724,10 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39724
39724
  const o = Ht(e, "useGridKeyboardNavigation"), r = Yt(), s = t.listView, i = p.useCallback(() => r_(e), [e]), l = t.signature !== "DataGrid" && t.headerFilters, a = p.useCallback((x, v, S = "left", I = "up") => {
39725
39725
  const P = ur(e), M = e.current.unstable_getCellColSpanInfo(v, x);
39726
39726
  M && M.spannedByColSpan && (S === "left" ? x = M.leftVisibleCellIndex : S === "right" && (x = M.rightVisibleCellIndex));
39727
- const D = s ? $s(e).field : Gr(e)[x], T = o_(e, v, D, I), O = P.findIndex((C) => C.id === T);
39728
- o.debug(`Navigating to cell row ${O}, col ${x}`), e.current.scrollToIndexes({
39727
+ const D = s ? $s(e).field : Gr(e)[x], T = o_(e, v, D, I), R = P.findIndex((C) => C.id === T);
39728
+ o.debug(`Navigating to cell row ${R}, col ${x}`), e.current.scrollToIndexes({
39729
39729
  colIndex: x,
39730
- rowIndex: O
39730
+ rowIndex: R
39731
39731
  }), e.current.setCellFocus(T, D);
39732
39732
  }, [e, o, s]), c = p.useCallback((x, v) => {
39733
39733
  o.debug(`Navigating to header col ${x}`), e.current.scrollToIndexes({
@@ -39753,7 +39753,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39753
39753
  const S = v.currentTarget.querySelector(`.${V.columnHeaderTitleContainerContent}`);
39754
39754
  if (!!S && S.contains(v.target) && x.field !== Bs.field)
39755
39755
  return;
39756
- const P = i(), M = e.current.getViewportPageSize(), D = x.field ? e.current.getColumnIndex(x.field) : 0, T = P.length > 0 ? 0 : null, O = P.length - 1, C = 0, R = Tt(e).length - 1, L = cl(e);
39756
+ const P = i(), M = e.current.getViewportPageSize(), D = x.field ? e.current.getColumnIndex(x.field) : 0, T = P.length > 0 ? 0 : null, R = P.length - 1, C = 0, O = Tt(e).length - 1, L = cl(e);
39757
39757
  let j = !0;
39758
39758
  switch (v.key) {
39759
39759
  case "ArrowDown": {
@@ -39764,7 +39764,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39764
39764
  const H = lu({
39765
39765
  currentColIndex: D,
39766
39766
  firstColIndex: C,
39767
- lastColIndex: R,
39767
+ lastColIndex: O,
39768
39768
  isRtl: r
39769
39769
  });
39770
39770
  H !== null && c(H, v);
@@ -39774,7 +39774,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39774
39774
  const H = iu({
39775
39775
  currentColIndex: D,
39776
39776
  firstColIndex: C,
39777
- lastColIndex: R,
39777
+ lastColIndex: O,
39778
39778
  isRtl: r
39779
39779
  });
39780
39780
  H !== null && c(H, v);
@@ -39785,7 +39785,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39785
39785
  break;
39786
39786
  }
39787
39787
  case "PageDown": {
39788
- T !== null && O !== null && a(D, f(Math.min(T + M, O)));
39788
+ T !== null && R !== null && a(D, f(Math.min(T + M, R)));
39789
39789
  break;
39790
39790
  }
39791
39791
  case "Home": {
@@ -39793,7 +39793,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39793
39793
  break;
39794
39794
  }
39795
39795
  case "End": {
39796
- c(R, v);
39796
+ c(O, v);
39797
39797
  break;
39798
39798
  }
39799
39799
  case "Enter": {
@@ -39810,7 +39810,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39810
39810
  const S = TC(e) === x.field, I = yp(e) === x.field;
39811
39811
  if (S || I || !Vi(v.key))
39812
39812
  return;
39813
- const P = i(), M = e.current.getViewportPageSize(), D = x.field ? e.current.getColumnIndex(x.field) : 0, T = 0, O = P.length - 1, C = 0, R = Tt(e).length - 1;
39813
+ const P = i(), M = e.current.getViewportPageSize(), D = x.field ? e.current.getColumnIndex(x.field) : 0, T = 0, R = P.length - 1, C = 0, O = Tt(e).length - 1;
39814
39814
  let L = !0;
39815
39815
  switch (v.key) {
39816
39816
  case "ArrowDown": {
@@ -39822,7 +39822,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39822
39822
  const j = lu({
39823
39823
  currentColIndex: D,
39824
39824
  firstColIndex: C,
39825
- lastColIndex: R,
39825
+ lastColIndex: O,
39826
39826
  isRtl: r
39827
39827
  });
39828
39828
  j !== null && u(j, v);
@@ -39832,7 +39832,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39832
39832
  const j = iu({
39833
39833
  currentColIndex: D,
39834
39834
  firstColIndex: C,
39835
- lastColIndex: R,
39835
+ lastColIndex: O,
39836
39836
  isRtl: r
39837
39837
  });
39838
39838
  j !== null ? u(j, v) : e.current.setColumnHeaderFilterFocus(x.field, v);
@@ -39843,7 +39843,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39843
39843
  break;
39844
39844
  }
39845
39845
  case "PageDown": {
39846
- O !== null && a(D, f(Math.min(T + M, O)));
39846
+ R !== null && a(D, f(Math.min(T + M, R)));
39847
39847
  break;
39848
39848
  }
39849
39849
  case "Home": {
@@ -39851,7 +39851,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39851
39851
  break;
39852
39852
  }
39853
39853
  case "End": {
39854
- u(R, v);
39854
+ u(O, v);
39855
39855
  break;
39856
39856
  }
39857
39857
  case " ":
@@ -39871,25 +39871,25 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39871
39871
  fields: M,
39872
39872
  depth: D,
39873
39873
  maxDepth: T
39874
- } = x, O = i(), C = e.current.getViewportPageSize(), R = e.current.getColumnIndex(I), L = I ? e.current.getColumnIndex(I) : 0, j = 0, H = O.length - 1, $ = 0, N = Tt(e).length - 1;
39874
+ } = x, R = i(), C = e.current.getViewportPageSize(), O = e.current.getColumnIndex(I), L = I ? e.current.getColumnIndex(I) : 0, j = 0, H = R.length - 1, $ = 0, N = Tt(e).length - 1;
39875
39875
  let A = !0;
39876
39876
  switch (v.key) {
39877
39877
  case "ArrowDown": {
39878
- D === T - 1 ? c(R, v) : d(R, P + 1, v);
39878
+ D === T - 1 ? c(O, v) : d(O, P + 1, v);
39879
39879
  break;
39880
39880
  }
39881
39881
  case "ArrowUp": {
39882
- D > 0 && d(R, P - 1, v);
39882
+ D > 0 && d(O, P - 1, v);
39883
39883
  break;
39884
39884
  }
39885
39885
  case "ArrowRight": {
39886
39886
  const _ = M.length - M.indexOf(I) - 1;
39887
- R + _ + 1 <= N && d(R + _ + 1, P, v);
39887
+ O + _ + 1 <= N && d(O + _ + 1, P, v);
39888
39888
  break;
39889
39889
  }
39890
39890
  case "ArrowLeft": {
39891
39891
  const _ = M.indexOf(I);
39892
- R - _ - 1 >= $ && d(R - _ - 1, P, v);
39892
+ O - _ - 1 >= $ && d(O - _ - 1, P, v);
39893
39893
  break;
39894
39894
  }
39895
39895
  case "PageDown": {
@@ -39922,15 +39922,15 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39922
39922
  const P = i();
39923
39923
  if (P.length === 0)
39924
39924
  return;
39925
- const M = e.current.getViewportPageSize(), D = s ? () => 0 : e.current.getColumnIndex, T = x.field ? D(x.field) : 0, O = P.findIndex((N) => N.id === x.id), C = 0, R = P.length - 1, L = 0, H = (s ? [$s(e)] : Tt(e)).length - 1;
39925
+ const M = e.current.getViewportPageSize(), D = s ? () => 0 : e.current.getColumnIndex, T = x.field ? D(x.field) : 0, R = P.findIndex((N) => N.id === x.id), C = 0, O = P.length - 1, L = 0, H = (s ? [$s(e)] : Tt(e)).length - 1;
39926
39926
  let $ = !0;
39927
39927
  switch (v.key) {
39928
39928
  case "ArrowDown": {
39929
- O < R && a(T, f(O + 1), r ? "right" : "left", "down");
39929
+ R < O && a(T, f(R + 1), r ? "right" : "left", "down");
39930
39930
  break;
39931
39931
  }
39932
39932
  case "ArrowUp": {
39933
- O > C ? a(T, f(O - 1)) : l ? u(T, v) : c(T, v);
39933
+ R > C ? a(T, f(R - 1)) : l ? u(T, v) : c(T, v);
39934
39934
  break;
39935
39935
  }
39936
39936
  case "ArrowRight": {
@@ -39940,7 +39940,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39940
39940
  lastColIndex: H,
39941
39941
  isRtl: r
39942
39942
  });
39943
- N !== null && a(N, f(O), r ? "left" : "right");
39943
+ N !== null && a(N, f(R), r ? "left" : "right");
39944
39944
  break;
39945
39945
  }
39946
39946
  case "ArrowLeft": {
@@ -39950,11 +39950,11 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39950
39950
  lastColIndex: H,
39951
39951
  isRtl: r
39952
39952
  });
39953
- N !== null && a(N, f(O), r ? "right" : "left");
39953
+ N !== null && a(N, f(R), r ? "right" : "left");
39954
39954
  break;
39955
39955
  }
39956
39956
  case "Tab": {
39957
- v.shiftKey && T > L ? a(T - 1, f(O), "left") : !v.shiftKey && T < H && a(T + 1, f(O), "right");
39957
+ v.shiftKey && T > L ? a(T - 1, f(R), "left") : !v.shiftKey && T < H && a(T + 1, f(R), "right");
39958
39958
  break;
39959
39959
  }
39960
39960
  case " ": {
@@ -39963,24 +39963,24 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
39963
39963
  const A = x.colDef;
39964
39964
  if (A && (A.field === ip || wN(A.field)))
39965
39965
  break;
39966
- !v.shiftKey && O < R && a(T, f(Math.min(O + M, R)));
39966
+ !v.shiftKey && R < O && a(T, f(Math.min(R + M, O)));
39967
39967
  break;
39968
39968
  }
39969
39969
  case "PageDown": {
39970
- O < R && a(T, f(Math.min(O + M, R)));
39970
+ R < O && a(T, f(Math.min(R + M, O)));
39971
39971
  break;
39972
39972
  }
39973
39973
  case "PageUp": {
39974
- const N = Math.max(O - M, C);
39975
- N !== O && N >= C ? a(T, f(N)) : c(T, v);
39974
+ const N = Math.max(R - M, C);
39975
+ N !== R && N >= C ? a(T, f(N)) : c(T, v);
39976
39976
  break;
39977
39977
  }
39978
39978
  case "Home": {
39979
- v.ctrlKey || v.metaKey || v.shiftKey ? a(L, f(C)) : a(L, f(O));
39979
+ v.ctrlKey || v.metaKey || v.shiftKey ? a(L, f(C)) : a(L, f(R));
39980
39980
  break;
39981
39981
  }
39982
39982
  case "End": {
39983
- v.ctrlKey || v.metaKey || v.shiftKey ? a(H, f(R)) : a(H, f(O));
39983
+ v.ctrlKey || v.metaKey || v.shiftKey ? a(H, f(O)) : a(H, f(R));
39984
39984
  break;
39985
39985
  }
39986
39986
  default:
@@ -40319,7 +40319,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40319
40319
  isProcessingProps: !1
40320
40320
  }));
40321
40321
  }
40322
- }), O = p.useCallback(($) => {
40322
+ }), R = p.useCallback(($) => {
40323
40323
  const {
40324
40324
  id: N,
40325
40325
  field: A
@@ -40389,7 +40389,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40389
40389
  }
40390
40390
  } else
40391
40391
  e.current.updateRows([q]), k();
40392
- }), R = p.useCallback(async ($) => {
40392
+ }), O = p.useCallback(async ($) => {
40393
40393
  const {
40394
40394
  id: N,
40395
40395
  field: A,
@@ -40432,9 +40432,9 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40432
40432
  }, [e]), j = {
40433
40433
  getCellMode: S,
40434
40434
  startCellEditMode: D,
40435
- stopCellEditMode: O
40435
+ stopCellEditMode: R
40436
40436
  }, H = {
40437
- setCellEditingEditCellValue: R,
40437
+ setCellEditingEditCellValue: O,
40438
40438
  getRowWithUpdatedValuesFromCellEditing: L
40439
40439
  };
40440
40440
  Be(e, j, "public"), Be(e, H, "private"), p.useEffect(() => {
@@ -40575,7 +40575,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40575
40575
  h && F && h(k, {
40576
40576
  api: e.current
40577
40577
  }), !(t.rowModesModel && F) && (r(k), s.current = k, e.current.publishEvent("rowModesModelChange", k));
40578
- }), O = p.useCallback((k, F) => {
40578
+ }), R = p.useCallback((k, F) => {
40579
40579
  const B = E({}, s.current);
40580
40580
  F !== null ? B[k] = E({}, F) : delete B[k], T(B);
40581
40581
  }, [T]), C = p.useCallback((k, F) => {
@@ -40585,7 +40585,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40585
40585
  editRows: U
40586
40586
  });
40587
40587
  });
40588
- }, [e]), R = p.useCallback((k, F, B) => {
40588
+ }, [e]), O = p.useCallback((k, F, B) => {
40589
40589
  e.current.setState((U) => {
40590
40590
  const z = E({}, U.editRows);
40591
40591
  return B !== null ? z[k] = E({}, z[k], {
@@ -40598,10 +40598,10 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40598
40598
  const {
40599
40599
  id: F
40600
40600
  } = k, B = me(k, g_);
40601
- g(F, xt.View), O(F, E({
40601
+ g(F, xt.View), R(F, E({
40602
40602
  mode: xt.Edit
40603
40603
  }, B));
40604
- }, [g, O]), j = ze((k) => {
40604
+ }, [g, R]), j = ze((k) => {
40605
40605
  const {
40606
40606
  id: F,
40607
40607
  fieldToFocus: B,
@@ -40629,7 +40629,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40629
40629
  })).then((K) => {
40630
40630
  if (e.current.getRowMode(F) === xt.Edit) {
40631
40631
  const ee = Vt(e);
40632
- R(F, X, E({}, K, {
40632
+ O(F, X, E({}, K, {
40633
40633
  value: ee[F][X].value,
40634
40634
  isProcessingProps: !1
40635
40635
  }));
@@ -40640,10 +40640,10 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40640
40640
  const {
40641
40641
  id: F
40642
40642
  } = k, B = me(k, m_);
40643
- g(F, xt.Edit), O(F, E({
40643
+ g(F, xt.Edit), R(F, E({
40644
40644
  mode: xt.View
40645
40645
  }, B));
40646
- }, [g, O]), $ = ze(async (k) => {
40646
+ }, [g, R]), $ = ze(async (k) => {
40647
40647
  const {
40648
40648
  id: F,
40649
40649
  ignoreModifications: B,
@@ -40652,7 +40652,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40652
40652
  } = k;
40653
40653
  e.current.runPendingEditCellValueMutation(F);
40654
40654
  const q = () => {
40655
- z !== "none" && U && e.current.moveFocusToRelativeCell(F, U, z), C(F, null), O(F, null), delete l.current[F];
40655
+ z !== "none" && U && e.current.moveFocusToRelativeCell(F, U, z), C(F, null), R(F, null), delete l.current[F];
40656
40656
  };
40657
40657
  if (B) {
40658
40658
  q();
@@ -40664,7 +40664,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40664
40664
  return;
40665
40665
  }
40666
40666
  if (w(F)) {
40667
- i.current[F].mode = xt.Edit, O(F, {
40667
+ i.current[F].mode = xt.Edit, R(F, {
40668
40668
  mode: xt.Edit
40669
40669
  });
40670
40670
  return;
@@ -40676,7 +40676,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40676
40676
  return;
40677
40677
  }
40678
40678
  const Y = () => {
40679
- i.current[F].mode = xt.Edit, O(F, {
40679
+ i.current[F].mode = xt.Edit, R(F, {
40680
40680
  mode: xt.Edit
40681
40681
  });
40682
40682
  }, re = {
@@ -40691,7 +40691,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40691
40691
  }
40692
40692
  } else if (u) {
40693
40693
  const Y = (re) => {
40694
- i.current[F] && (i.current[F].mode = xt.Edit, O(F, {
40694
+ i.current[F] && (i.current[F].mode = xt.Edit, R(F, {
40695
40695
  mode: xt.Edit
40696
40696
  })), d ? d(re) : process.env.NODE_ENV !== "production" && Nn(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.", "To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.", "For more detail, see https://mui.com/x/react-data-grid/editing/persistence/."], "error");
40697
40697
  };
@@ -40722,13 +40722,13 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40722
40722
  value: Z,
40723
40723
  changeReason: z ? "debouncedSetEditCellValue" : "setEditCellValue"
40724
40724
  });
40725
- return W.preProcessEditCellProps || R(F, B, Y), new Promise((re) => {
40725
+ return W.preProcessEditCellProps || O(F, B, Y), new Promise((re) => {
40726
40726
  const K = [];
40727
40727
  if (W.preProcessEditCellProps) {
40728
40728
  const ee = Y.value !== X[F][B].value;
40729
40729
  Y = E({}, Y, {
40730
40730
  isProcessingProps: !0
40731
- }), R(F, B, Y);
40731
+ }), O(F, B, Y);
40732
40732
  const ne = X[F], se = me(ne, [B].map(Gi)), Se = Promise.resolve(W.preProcessEditCellProps({
40733
40733
  id: F,
40734
40734
  row: Q,
@@ -40742,7 +40742,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40742
40742
  }
40743
40743
  X = Vt(e), Pe = E({}, Pe, {
40744
40744
  isProcessingProps: !1
40745
- }), Pe.value = W.preProcessEditCellProps ? X[F][B].value : Z, R(F, B, Pe);
40745
+ }), Pe.value = W.preProcessEditCellProps ? X[F][B].value : Z, O(F, B, Pe);
40746
40746
  });
40747
40747
  K.push(Se);
40748
40748
  }
@@ -40754,7 +40754,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40754
40754
  return;
40755
40755
  ne = E({}, ne, {
40756
40756
  isProcessingProps: !0
40757
- }), R(F, ee, ne), X = Vt(e);
40757
+ }), O(F, ee, ne), X = Vt(e);
40758
40758
  const Se = X[F], Pe = me(Se, [ee].map(Gi)), ae = Promise.resolve(se.preProcessEditCellProps({
40759
40759
  id: F,
40760
40760
  row: Q,
@@ -40768,14 +40768,14 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
40768
40768
  }
40769
40769
  Ge = E({}, Ge, {
40770
40770
  isProcessingProps: !1
40771
- }), R(F, ee, Ge);
40771
+ }), O(F, ee, Ge);
40772
40772
  });
40773
40773
  K.push(ae);
40774
40774
  }), Promise.all(K).then(() => {
40775
40775
  e.current.getRowMode(F) === xt.Edit ? (X = Vt(e), re(!X[F][B].error)) : re(!1);
40776
40776
  });
40777
40777
  });
40778
- }, [e, y, R]), A = p.useCallback((k) => {
40778
+ }, [e, y, O]), A = p.useCallback((k) => {
40779
40779
  const F = Vt(e), B = e.current.getRow(k);
40780
40780
  if (!F[k])
40781
40781
  return e.current.getRow(k);
@@ -41110,7 +41110,7 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
41110
41110
  getRowGroupChildren: S
41111
41111
  }, T = {
41112
41112
  updateNestedRows: f
41113
- }, O = p.useCallback(() => {
41113
+ }, R = p.useCallback(() => {
41114
41114
  o.info("Row grouping pre-processing have changed, regenerating the row tree");
41115
41115
  let $;
41116
41116
  e.current.caches.rows.rowsBeforePartialUpdates === t.rows ? $ = E({}, e.current.caches.rows, {
@@ -41127,16 +41127,16 @@ const r_ = it(al, Br, (e, t) => (t.top || []).concat(e.rows, t.bottom || [])), s
41127
41127
  cache: $,
41128
41128
  throttle: !1
41129
41129
  });
41130
- }, [o, e, t.rows, t.getRowId, t.loading, t.rowCount, c]), C = Zn(() => t.dataSource), R = p.useCallback(($) => {
41130
+ }, [o, e, t.rows, t.getRowId, t.loading, t.rowCount, c]), C = Zn(() => t.dataSource), O = p.useCallback(($) => {
41131
41131
  if (t.dataSource && t.dataSource !== C.current) {
41132
41132
  C.current = t.dataSource;
41133
41133
  return;
41134
41134
  }
41135
- $ === "rowTreeCreation" && O();
41136
- }, [O, C, t.dataSource]), L = p.useCallback(() => {
41137
- e.current.getActiveStrategy(Dn.RowTree) !== dM(e) && O();
41138
- }, [e, O]);
41139
- ge(e, "activeStrategyProcessorChange", R), ge(e, "strategyAvailabilityChange", L);
41135
+ $ === "rowTreeCreation" && R();
41136
+ }, [R, C, t.dataSource]), L = p.useCallback(() => {
41137
+ e.current.getActiveStrategy(Dn.RowTree) !== dM(e) && R();
41138
+ }, [e, R]);
41139
+ ge(e, "activeStrategyProcessorChange", O), ge(e, "strategyAvailabilityChange", L);
41140
41140
  const j = p.useCallback(() => {
41141
41141
  e.current.setState(($) => {
41142
41142
  const N = e.current.unstable_applyPipeProcessors("hydrateRows", {
@@ -41464,8 +41464,8 @@ const Ri = {
41464
41464
  getPropagatedRowSelectionModel: P
41465
41465
  };
41466
41466
  Be(e, D, "public"), Be(e, T, t.signature === Tn.DataGrid ? "private" : "public");
41467
- const O = p.useRef(!0), C = p.useCallback((k = !1) => {
41468
- if (O.current)
41467
+ const R = p.useRef(!0), C = p.useCallback((k = !1) => {
41468
+ if (R.current)
41469
41469
  return;
41470
41470
  const F = oo(e), B = Gn(e), U = Hs(e), z = (X) => t.filterMode === "server" ? !B[X] : !B[X] || U[X] === !1, q = {
41471
41471
  type: F.type,
@@ -41505,15 +41505,15 @@ const Ri = {
41505
41505
  e.current.selectRows(Array.from(q.ids), !0, !0);
41506
41506
  else
41507
41507
  e.current.setRowSelectionModel(q, "multipleRowsSelection");
41508
- }, [e, h, t.rowSelectionPropagation?.parents, t.keepNonExistentRowsSelected, t.filterMode, f, y]), R = p.useCallback((k, F) => {
41508
+ }, [e, h, t.rowSelectionPropagation?.parents, t.keepNonExistentRowsSelected, t.filterMode, f, y]), O = p.useCallback((k, F) => {
41509
41509
  const B = F.metaKey || F.ctrlKey, U = !a && !B && !jM(F), z = !d || U, q = e.current.isRowSelected(k), Z = uc(e) > 1 && z || !q;
41510
41510
  e.current.selectRow(k, Z, z);
41511
41511
  }, [e, d, a]), L = p.useCallback((k, F) => {
41512
41512
  if (c)
41513
41513
  return;
41514
41514
  const B = F.target.closest(`.${V.cell}`)?.getAttribute("data-field");
41515
- B === Bs.field || B === en || B && e.current.getColumn(B)?.type === sc || dn(e, k.id).type === "pinnedRow" || (F.shiftKey && d ? m(k.id) : R(k.id, F));
41516
- }, [c, d, e, m, R]), j = p.useCallback((k, F) => {
41515
+ B === Bs.field || B === en || B && e.current.getColumn(B)?.type === sc || dn(e, k.id).type === "pinnedRow" || (F.shiftKey && d ? m(k.id) : O(k.id, F));
41516
+ }, [c, d, e, m, O]), j = p.useCallback((k, F) => {
41517
41517
  d && F.shiftKey && window.getSelection()?.removeAllRanges();
41518
41518
  }, [d]), H = p.useCallback((k, F) => {
41519
41519
  d && F.nativeEvent.shiftKey ? m(k.id) : e.current.selectRow(k.id, k.value, !d);
@@ -41547,12 +41547,12 @@ const Ri = {
41547
41547
  }
41548
41548
  }
41549
41549
  if (F.key === " " && F.shiftKey) {
41550
- F.preventDefault(), R(k.id, F);
41550
+ F.preventDefault(), O(k.id, F);
41551
41551
  return;
41552
41552
  }
41553
41553
  String.fromCharCode(F.keyCode) === "A" && (F.ctrlKey || F.metaKey) && (F.preventDefault(), $(!0));
41554
41554
  }
41555
- }, [e, d, R, $]), _ = ze(() => {
41555
+ }, [e, d, O, $]), _ = ze(() => {
41556
41556
  if (!t.rowSelection) {
41557
41557
  e.current.setRowSelectionModel(Ri);
41558
41558
  return;
@@ -41595,7 +41595,7 @@ const Ri = {
41595
41595
  }, [e, d, a, G, t.rowSelection]), p.useEffect(() => {
41596
41596
  r(C);
41597
41597
  }, [C, r]), p.useEffect(() => {
41598
- O.current && (O.current = !1);
41598
+ R.current && (R.current = !1);
41599
41599
  }, []);
41600
41600
  }, R_ = (e) => {
41601
41601
  const {
@@ -41636,14 +41636,14 @@ const Ri = {
41636
41636
  });
41637
41637
  const r = p.useCallback((P, M) => {
41638
41638
  const D = Wt(e), T = D.findIndex((C) => C.field === P);
41639
- let O = [...D];
41640
- return T > -1 ? M?.sort == null ? O.splice(T, 1) : O.splice(T, 1, M) : O = [...D, M], O;
41639
+ let R = [...D];
41640
+ return T > -1 ? M?.sort == null ? R.splice(T, 1) : R.splice(T, 1, M) : R = [...D, M], R;
41641
41641
  }, [e]), s = p.useCallback((P, M) => {
41642
- const T = Wt(e).find((O) => O.field === P.field);
41642
+ const T = Wt(e).find((R) => R.field === P.field);
41643
41643
  if (T) {
41644
- const O = M === void 0 ? pg(P.sortingOrder ?? t.sortingOrder, T.sort) : M;
41645
- return O === void 0 ? void 0 : E({}, T, {
41646
- sort: O
41644
+ const R = M === void 0 ? pg(P.sortingOrder ?? t.sortingOrder, T.sort) : M;
41645
+ return R === void 0 ? void 0 : E({}, T, {
41646
+ sort: R
41647
41647
  });
41648
41648
  }
41649
41649
  return {
@@ -41670,9 +41670,9 @@ const Ri = {
41670
41670
  }, [e, o, t.sortingMode]), a = p.useCallback((P) => {
41671
41671
  Wt(e) !== P && (o.debug("Setting sort model"), e.current.setState(dg(P, t.disableMultipleColumnsSorting)), e.current.applySorting());
41672
41672
  }, [e, o, t.disableMultipleColumnsSorting]), c = p.useCallback((P, M, D) => {
41673
- const T = e.current.getColumn(P), O = s(T, M);
41673
+ const T = e.current.getColumn(P), R = s(T, M);
41674
41674
  let C;
41675
- !D || t.disableMultipleColumnsSorting ? C = O?.sort == null ? [] : [O] : C = r(T.field, O), e.current.setSortModel(C);
41675
+ !D || t.disableMultipleColumnsSorting ? C = R?.sort == null ? [] : [R] : C = r(T.field, R), e.current.setSortModel(C);
41676
41676
  }, [e, r, s, t.disableMultipleColumnsSorting]), u = p.useCallback(() => Wt(e), [e]), d = p.useCallback(() => ap(e).map((M) => M.model), [e]), f = p.useCallback(() => sl(e), [e]), h = p.useCallback((P) => e.current.getSortedRowIds()[P], [e]);
41677
41677
  Be(e, {
41678
41678
  getSortModel: u,
@@ -41702,7 +41702,7 @@ const Ri = {
41702
41702
  callbacks: [...P.callbacks, e.current.applySorting]
41703
41703
  }));
41704
41704
  }, [e, t.disableMultipleColumnsSorting]), w = p.useCallback((P) => {
41705
- const M = _t(e), D = M[Ze], T = P.sortRowList ? P.sortRowList(D.children.map((O) => M[O])) : [...D.children];
41705
+ const M = _t(e), D = M[Ze], T = P.sortRowList ? P.sortRowList(D.children.map((R) => M[R])) : [...D.children];
41706
41706
  return D.footerId != null && T.push(D.footerId), T;
41707
41707
  }, [e]);
41708
41708
  tt(e, "exportState", y), tt(e, "restoreState", g), Sn(e, Fr, "sorting", w);
@@ -41910,26 +41910,26 @@ function j_(e, t) {
41910
41910
  leftPinnedWidth: y,
41911
41911
  rightPinnedWidth: g
41912
41912
  } = cw(t, e, l, i), w = p.useCallback(() => ft(e), [e]), x = p.useCallback((C) => {
41913
- e.current.setState((R) => E({}, R, {
41913
+ e.current.setState((O) => E({}, O, {
41914
41914
  dimensions: C
41915
41915
  })), e.current.rootElementRef.current && hm(e.current.rootElementRef.current, ft(e));
41916
41916
  }, [e]), v = p.useCallback(() => {
41917
41917
  const C = ft(e);
41918
41918
  if (!C.isReady)
41919
41919
  return 0;
41920
- const R = go(e);
41920
+ const O = go(e);
41921
41921
  if (t.getRowHeight) {
41922
41922
  const j = sr(e), H = j.lastRowIndex - j.firstRowIndex;
41923
- return Math.min(H - 1, R.rows.length);
41923
+ return Math.min(H - 1, O.rows.length);
41924
41924
  }
41925
41925
  const L = Math.floor(C.viewportInnerSize.height / u);
41926
- return Math.min(L, R.rows.length);
41926
+ return Math.min(L, O.rows.length);
41927
41927
  }, [e, t.getRowHeight, u]), S = p.useCallback(() => {
41928
41928
  if (c.current)
41929
41929
  return;
41930
- const C = A_(e.current.mainElementRef.current, t.scrollbarSize), R = Gs(e), L = m + R.pinnedTopRowsTotalHeight, j = R.pinnedBottomRowsTotalHeight, H = {
41930
+ const C = A_(e.current.mainElementRef.current, t.scrollbarSize), O = Gs(e), L = m + O.pinnedTopRowsTotalHeight, j = O.pinnedBottomRowsTotalHeight, H = {
41931
41931
  width: a,
41932
- height: hs(R.currentPageTotalHeight, 1)
41932
+ height: hs(O.currentPageTotalHeight, 1)
41933
41933
  };
41934
41934
  let $, N, A = !1, _ = !1;
41935
41935
  if (t.autoHeight)
@@ -41990,7 +41990,7 @@ function j_(e, t) {
41990
41990
  yt(S, [S]), Be(e, M, "public"), Be(e, D, "private");
41991
41991
  const T = p.useCallback((C) => {
41992
41992
  hm(C, ft(e));
41993
- }, [e]), O = p.useCallback((C) => {
41993
+ }, [e]), R = p.useCallback((C) => {
41994
41994
  if (s.current = C, C.height === 0 && !r.current && !t.autoHeight && !ya && (o.error(["The parent DOM element of the Data Grid has an empty height.", "Please make sure that this element has an intrinsic height.", "The grid displays with a height of 0px.", "", "More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
41995
41995
  `)), r.current = !0), C.width === 0 && !r.current && !ya && (o.error(["The parent DOM element of the Data Grid has an empty width.", "Please make sure that this element has an intrinsic width.", "The grid displays with a width of 0px.", "", "More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
41996
41996
  `)), r.current = !0), c.current || !P) {
@@ -41999,7 +41999,7 @@ function j_(e, t) {
41999
41999
  }
42000
42000
  P();
42001
42001
  }, [S, t.autoHeight, P, o]);
42002
- ct(e, "rootMount", T), ct(e, "resize", O), ct(e, "debouncedResize", t.onResize);
42002
+ ct(e, "rootMount", T), ct(e, "resize", R), ct(e, "debouncedResize", t.onResize);
42003
42003
  }
42004
42004
  function hm(e, t) {
42005
42005
  const o = (r, s) => e.style.setProperty(r, s);
@@ -42063,19 +42063,19 @@ const __ = typeof globalThis.ResizeObserver < "u" ? globalThis.ResizeObserver :
42063
42063
  getRowSpacing: r,
42064
42064
  getEstimatedRowHeight: s
42065
42065
  } = t, i = e.current.caches.rowsMeta.heights, l = p.useRef(-1), a = p.useRef(!1), c = p.useRef(!1), u = J(e, _s), d = gc(e), f = J(e, Br), h = J(e, Ud), m = (C) => {
42066
- let R = i.get(C);
42067
- return R === void 0 && (R = {
42066
+ let O = i.get(C);
42067
+ return O === void 0 && (O = {
42068
42068
  content: h,
42069
42069
  spacingTop: 0,
42070
42070
  spacingBottom: 0,
42071
42071
  detail: 0,
42072
42072
  autoHeight: !1,
42073
42073
  needsFirstMeasurement: !0
42074
- }, i.set(C, R)), R;
42074
+ }, i.set(C, O)), O;
42075
42075
  }, y = p.useCallback((C) => {
42076
- const R = ft(e).rowHeight, L = e.current.getRowHeightEntry(C.id);
42076
+ const O = ft(e).rowHeight, L = e.current.getRowHeightEntry(C.id);
42077
42077
  if (!o)
42078
- L.content = R, L.needsFirstMeasurement = !1;
42078
+ L.content = O, L.needsFirstMeasurement = !1;
42079
42079
  else {
42080
42080
  const j = o(E({}, C, {
42081
42081
  densityFactor: u
@@ -42084,12 +42084,12 @@ const __ = typeof globalThis.ResizeObserver < "u" ? globalThis.ResizeObserver :
42084
42084
  if (L.needsFirstMeasurement) {
42085
42085
  const H = s ? s(E({}, C, {
42086
42086
  densityFactor: u
42087
- })) : R;
42088
- L.content = H ?? R;
42087
+ })) : O;
42088
+ L.content = H ?? O;
42089
42089
  }
42090
42090
  a.current = !0, L.autoHeight = !0;
42091
42091
  } else
42092
- L.content = Qy(j, R, JM), L.needsFirstMeasurement = !1, L.autoHeight = !1;
42092
+ L.content = Qy(j, O, JM), L.needsFirstMeasurement = !1, L.autoHeight = !1;
42093
42093
  }
42094
42094
  if (r) {
42095
42095
  const j = e.current.getRowIndexRelativeToVisibleRows(C.id), H = r(E({}, C, {
@@ -42106,7 +42106,7 @@ const __ = typeof globalThis.ResizeObserver < "u" ? globalThis.ResizeObserver :
42106
42106
  const C = f.top.reduce((N, A) => {
42107
42107
  const _ = y(A);
42108
42108
  return N + _.content + _.spacingTop + _.spacingBottom + _.detail;
42109
- }, 0), R = f.bottom.reduce((N, A) => {
42109
+ }, 0), O = f.bottom.reduce((N, A) => {
42110
42110
  const _ = y(A);
42111
42111
  return N + _.content + _.spacingTop + _.spacingBottom + _.detail;
42112
42112
  }, 0), L = [], j = d.rows.reduce((N, A) => {
@@ -42115,25 +42115,25 @@ const __ = typeof globalThis.ResizeObserver < "u" ? globalThis.ResizeObserver :
42115
42115
  return N + G;
42116
42116
  }, 0);
42117
42117
  a.current || (l.current = 1 / 0);
42118
- const H = C !== e.current.state.rowsMeta.pinnedTopRowsTotalHeight || R !== e.current.state.rowsMeta.pinnedBottomRowsTotalHeight || j !== e.current.state.rowsMeta.currentPageTotalHeight, $ = {
42118
+ const H = C !== e.current.state.rowsMeta.pinnedTopRowsTotalHeight || O !== e.current.state.rowsMeta.pinnedBottomRowsTotalHeight || j !== e.current.state.rowsMeta.currentPageTotalHeight, $ = {
42119
42119
  currentPageTotalHeight: j,
42120
42120
  positions: L,
42121
42121
  pinnedTopRowsTotalHeight: C,
42122
- pinnedBottomRowsTotalHeight: R
42122
+ pinnedBottomRowsTotalHeight: O
42123
42123
  };
42124
42124
  e.current.setState((N) => E({}, N, {
42125
42125
  rowsMeta: $
42126
42126
  })), H && e.current.updateDimensions(), c.current = !0;
42127
- }, [e, f, d.rows, y]), w = (C) => i.get(C)?.content ?? h, x = (C, R) => {
42128
- const L = e.current.getRowHeightEntry(C), j = L.content !== R;
42129
- L.needsFirstMeasurement = !1, L.content = R, c.current &&= !j;
42127
+ }, [e, f, d.rows, y]), w = (C) => i.get(C)?.content ?? h, x = (C, O) => {
42128
+ const L = e.current.getRowHeightEntry(C), j = L.content !== O;
42129
+ L.needsFirstMeasurement = !1, L.content = O, c.current &&= !j;
42130
42130
  }, v = (C) => i.get(C)?.autoHeight ?? !1, S = () => l.current, I = (C) => {
42131
42131
  a.current && C > l.current && (l.current = C);
42132
42132
  }, P = () => {
42133
42133
  i.clear(), g();
42134
42134
  }, M = Zn(() => new __((C) => {
42135
- for (let R = 0; R < C.length; R += 1) {
42136
- const L = C[R], j = L.borderBoxSize && L.borderBoxSize.length > 0 ? L.borderBoxSize[0].blockSize : L.contentRect.height, H = L.target.__mui_id;
42135
+ for (let O = 0; O < C.length; O += 1) {
42136
+ const L = C[O], j = L.borderBoxSize && L.borderBoxSize.length > 0 ? L.borderBoxSize[0].blockSize : L.contentRect.height, H = L.target.__mui_id;
42137
42137
  if (FC(e)?.id === H && j === 0)
42138
42138
  return;
42139
42139
  e.current.unstable_storeRowHeightMeasurement(H, j);
@@ -42141,7 +42141,7 @@ const __ = typeof globalThis.ResizeObserver < "u" ? globalThis.ResizeObserver :
42141
42141
  c.current || requestAnimationFrame(() => {
42142
42142
  e.current.requestPipeProcessorsApplication("rowHeight");
42143
42143
  });
42144
- })).current, D = (C, R) => (C.__mui_id = R, M.observe(C), () => M.unobserve(C));
42144
+ })).current, D = (C, O) => (C.__mui_id = O, M.observe(C), () => M.unobserve(C));
42145
42145
  sf(e, "rowHeight", g), yt(() => {
42146
42146
  g();
42147
42147
  }, [g]);
@@ -42150,14 +42150,14 @@ const __ = typeof globalThis.ResizeObserver < "u" ? globalThis.ResizeObserver :
42150
42150
  unstable_setLastMeasuredRowIndex: I,
42151
42151
  unstable_storeRowHeightMeasurement: x,
42152
42152
  resetRowHeights: P
42153
- }, O = {
42153
+ }, R = {
42154
42154
  hydrateRowsMeta: g,
42155
42155
  observeRowHeight: D,
42156
42156
  rowHasAutoHeight: v,
42157
42157
  getRowHeightEntry: m,
42158
42158
  getLastMeasuredRowIndex: S
42159
42159
  };
42160
- Be(e, T, "public"), Be(e, O, "private");
42160
+ Be(e, T, "public"), Be(e, R, "private");
42161
42161
  }, G_ = (e) => {
42162
42162
  const t = p.useCallback((s = {}) => e.current.unstable_applyPipeProcessors("exportState", {}, s), [e]), o = p.useCallback((s) => {
42163
42163
  e.current.unstable_applyPipeProcessors("restoreState", {
@@ -42461,148 +42461,148 @@ function oH() {
42461
42461
  };
42462
42462
  }
42463
42463
  const rH = (e, t) => {
42464
- const o = Yt(), r = Ht(e, "useGridColumnResize"), s = Zn(oH).current, i = p.useRef(null), l = p.useRef(null), a = xn(), c = p.useRef(void 0), u = (O) => {
42465
- r.debug(`Updating width to ${O} for col ${s.colDef.field}`);
42466
- const C = s.columnHeaderElement.offsetWidth, R = O - C, L = O - s.initialColWidth;
42464
+ const o = Yt(), r = Ht(e, "useGridColumnResize"), s = Zn(oH).current, i = p.useRef(null), l = p.useRef(null), a = xn(), c = p.useRef(void 0), u = (R) => {
42465
+ r.debug(`Updating width to ${R} for col ${s.colDef.field}`);
42466
+ const C = s.columnHeaderElement.offsetWidth, O = R - C, L = R - s.initialColWidth;
42467
42467
  if (L > 0) {
42468
42468
  const $ = s.initialTotalWidth + L;
42469
42469
  e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth", `${$}px`);
42470
42470
  }
42471
- s.colDef.computedWidth = O, s.colDef.width = O, s.colDef.flex = 0, s.columnHeaderElement.style.width = `${O}px`;
42471
+ s.colDef.computedWidth = R, s.colDef.width = R, s.colDef.flex = 0, s.columnHeaderElement.style.width = `${R}px`;
42472
42472
  const j = s.headerFilterElement;
42473
- j && (j.style.width = `${O}px`), s.groupHeaderElements.forEach(($) => {
42473
+ j && (j.style.width = `${R}px`), s.groupHeaderElements.forEach(($) => {
42474
42474
  const N = $;
42475
42475
  let A;
42476
- N.getAttribute("aria-colspan") === "1" ? A = `${O}px` : A = `${N.offsetWidth + R}px`, N.style.width = A;
42476
+ N.getAttribute("aria-colspan") === "1" ? A = `${R}px` : A = `${N.offsetWidth + O}px`, N.style.width = A;
42477
42477
  }), s.cellElements.forEach(($) => {
42478
42478
  const N = $;
42479
42479
  let A;
42480
- N.getAttribute("aria-colspan") === "1" ? A = `${O}px` : A = `${N.offsetWidth + R}px`, N.style.setProperty("--width", A);
42480
+ N.getAttribute("aria-colspan") === "1" ? A = `${R}px` : A = `${N.offsetWidth + O}px`, N.style.setProperty("--width", A);
42481
42481
  });
42482
42482
  const H = e.current.unstable_applyPipeProcessors("isColumnPinned", !1, s.colDef.field);
42483
- H === Ut.LEFT && (os(s.fillerLeft, "width", R), s.leftPinnedCellsAfter.forEach(($) => {
42484
- os($, "left", R);
42483
+ H === Ut.LEFT && (os(s.fillerLeft, "width", O), s.leftPinnedCellsAfter.forEach(($) => {
42484
+ os($, "left", O);
42485
42485
  }), s.leftPinnedHeadersAfter.forEach(($) => {
42486
- os($, "left", R);
42487
- })), H === Ut.RIGHT && (os(s.fillerRight, "width", R), s.rightPinnedCellsBefore.forEach(($) => {
42488
- os($, "right", R);
42486
+ os($, "left", O);
42487
+ })), H === Ut.RIGHT && (os(s.fillerRight, "width", O), s.rightPinnedCellsBefore.forEach(($) => {
42488
+ os($, "right", O);
42489
42489
  }), s.rightPinnedHeadersBefore.forEach(($) => {
42490
- os($, "right", R);
42490
+ os($, "right", O);
42491
42491
  }));
42492
- }, d = (O) => {
42492
+ }, d = (R) => {
42493
42493
  if (x(), s.previousMouseClickEvent) {
42494
- const C = s.previousMouseClickEvent, R = C.timeStamp, L = C.clientX, j = C.clientY;
42495
- if (O.timeStamp - R < 300 && O.clientX === L && O.clientY === j) {
42496
- s.previousMouseClickEvent = void 0, e.current.publishEvent("columnResizeStop", null, O);
42494
+ const C = s.previousMouseClickEvent, O = C.timeStamp, L = C.clientX, j = C.clientY;
42495
+ if (R.timeStamp - O < 300 && R.clientX === L && R.clientY === j) {
42496
+ s.previousMouseClickEvent = void 0, e.current.publishEvent("columnResizeStop", null, R);
42497
42497
  return;
42498
42498
  }
42499
42499
  }
42500
42500
  if (s.colDef) {
42501
42501
  e.current.setColumnWidth(s.colDef.field, s.colDef.width), r.debug(`Updating col ${s.colDef.field} with new width: ${s.colDef.width}`);
42502
42502
  const C = so(e);
42503
- s.groupHeaderElements.forEach((R) => {
42504
- const L = yF(R), j = R, $ = `${L.reduce((N, A) => C.columnVisibilityModel[A] !== !1 ? N + C.lookup[A].computedWidth : N, 0)}px`;
42503
+ s.groupHeaderElements.forEach((O) => {
42504
+ const L = yF(O), j = O, $ = `${L.reduce((N, A) => C.columnVisibilityModel[A] !== !1 ? N + C.lookup[A].computedWidth : N, 0)}px`;
42505
42505
  j.style.width = $;
42506
42506
  });
42507
42507
  }
42508
42508
  a.start(0, () => {
42509
- e.current.publishEvent("columnResizeStop", null, O);
42509
+ e.current.publishEvent("columnResizeStop", null, R);
42510
42510
  });
42511
- }, f = (O, C, R) => {
42511
+ }, f = (R, C, O) => {
42512
42512
  const L = e.current.rootElementRef.current;
42513
- s.initialColWidth = O.computedWidth, s.initialTotalWidth = e.current.getRootDimensions().rowWidth, s.colDef = O, s.columnHeaderElement = bF(e.current.columnHeadersContainerRef.current, O.field);
42514
- const j = L.querySelector(`.${V.headerFilterRow} [data-field="${Vo(O.field)}"]`);
42515
- j && (s.headerFilterElement = j), s.groupHeaderElements = CF(e.current.columnHeadersContainerRef?.current, O.field), s.cellElements = vF(s.columnHeaderElement, e.current), s.fillerLeft = Fg(e.current, o ? "filler--pinnedRight" : "filler--pinnedLeft"), s.fillerRight = Fg(e.current, o ? "filler--pinnedLeft" : "filler--pinnedRight");
42513
+ s.initialColWidth = R.computedWidth, s.initialTotalWidth = e.current.getRootDimensions().rowWidth, s.colDef = R, s.columnHeaderElement = bF(e.current.columnHeadersContainerRef.current, R.field);
42514
+ const j = L.querySelector(`.${V.headerFilterRow} [data-field="${Vo(R.field)}"]`);
42515
+ j && (s.headerFilterElement = j), s.groupHeaderElements = CF(e.current.columnHeadersContainerRef?.current, R.field), s.cellElements = vF(s.columnHeaderElement, e.current), s.fillerLeft = Fg(e.current, o ? "filler--pinnedRight" : "filler--pinnedLeft"), s.fillerRight = Fg(e.current, o ? "filler--pinnedLeft" : "filler--pinnedRight");
42516
42516
  const H = e.current.unstable_applyPipeProcessors("isColumnPinned", !1, s.colDef.field);
42517
- s.leftPinnedCellsAfter = H !== Ut.LEFT ? [] : wF(e.current, s.columnHeaderElement, o), s.rightPinnedCellsBefore = H !== Ut.RIGHT ? [] : xF(e.current, s.columnHeaderElement, o), s.leftPinnedHeadersAfter = H !== Ut.LEFT ? [] : SF(e.current, s.columnHeaderElement, o), s.rightPinnedHeadersBefore = H !== Ut.RIGHT ? [] : EF(e.current, s.columnHeaderElement, o), l.current = J_(C, o), i.current = Y_(R, s.columnHeaderElement.getBoundingClientRect(), l.current);
42518
- }, h = ze(d), m = ze((O) => {
42519
- if (O.buttons === 0) {
42520
- h(O);
42517
+ s.leftPinnedCellsAfter = H !== Ut.LEFT ? [] : wF(e.current, s.columnHeaderElement, o), s.rightPinnedCellsBefore = H !== Ut.RIGHT ? [] : xF(e.current, s.columnHeaderElement, o), s.leftPinnedHeadersAfter = H !== Ut.LEFT ? [] : SF(e.current, s.columnHeaderElement, o), s.rightPinnedHeadersBefore = H !== Ut.RIGHT ? [] : EF(e.current, s.columnHeaderElement, o), l.current = J_(C, o), i.current = Y_(O, s.columnHeaderElement.getBoundingClientRect(), l.current);
42518
+ }, h = ze(d), m = ze((R) => {
42519
+ if (R.buttons === 0) {
42520
+ h(R);
42521
42521
  return;
42522
42522
  }
42523
- let C = bm(i.current, O.clientX, s.columnHeaderElement.getBoundingClientRect(), l.current);
42523
+ let C = bm(i.current, R.clientX, s.columnHeaderElement.getBoundingClientRect(), l.current);
42524
42524
  C = Fn(C, s.colDef.minWidth, s.colDef.maxWidth), u(C);
42525
- const R = {
42525
+ const O = {
42526
42526
  element: s.columnHeaderElement,
42527
42527
  colDef: s.colDef,
42528
42528
  width: C
42529
42529
  };
42530
- e.current.publishEvent("columnResize", R, O);
42531
- }), y = ze((O) => {
42532
- mm(O, c.current) && d(O);
42533
- }), g = ze((O) => {
42534
- const C = mm(O, c.current);
42530
+ e.current.publishEvent("columnResize", O, R);
42531
+ }), y = ze((R) => {
42532
+ mm(R, c.current) && d(R);
42533
+ }), g = ze((R) => {
42534
+ const C = mm(R, c.current);
42535
42535
  if (!C)
42536
42536
  return;
42537
- if (O.type === "mousemove" && O.buttons === 0) {
42538
- y(O);
42537
+ if (R.type === "mousemove" && R.buttons === 0) {
42538
+ y(R);
42539
42539
  return;
42540
42540
  }
42541
- let R = bm(i.current, C.x, s.columnHeaderElement.getBoundingClientRect(), l.current);
42542
- R = Fn(R, s.colDef.minWidth, s.colDef.maxWidth), u(R);
42541
+ let O = bm(i.current, C.x, s.columnHeaderElement.getBoundingClientRect(), l.current);
42542
+ O = Fn(O, s.colDef.minWidth, s.colDef.maxWidth), u(O);
42543
42543
  const L = {
42544
42544
  element: s.columnHeaderElement,
42545
42545
  colDef: s.colDef,
42546
- width: R
42546
+ width: O
42547
42547
  };
42548
- e.current.publishEvent("columnResize", L, O);
42549
- }), w = ze((O) => {
42550
- const C = Ca(O.target, V["columnSeparator--resizable"]);
42548
+ e.current.publishEvent("columnResize", L, R);
42549
+ }), w = ze((R) => {
42550
+ const C = Ca(R.target, V["columnSeparator--resizable"]);
42551
42551
  if (!C)
42552
42552
  return;
42553
- const R = O.changedTouches[0];
42554
- R != null && (c.current = R.identifier);
42555
- const L = Ca(O.target, V.columnHeader), j = mF(L), H = e.current.getColumn(j);
42553
+ const O = R.changedTouches[0];
42554
+ O != null && (c.current = O.identifier);
42555
+ const L = Ca(R.target, V.columnHeader), j = mF(L), H = e.current.getColumn(j);
42556
42556
  r.debug(`Start Resize on col ${H.field}`), e.current.publishEvent("columnResizeStart", {
42557
42557
  field: j
42558
- }, O), f(H, C, R.clientX);
42559
- const $ = It(O.currentTarget);
42558
+ }, R), f(H, C, O.clientX);
42559
+ const $ = It(R.currentTarget);
42560
42560
  $.addEventListener("touchmove", g), $.addEventListener("touchend", y);
42561
42561
  }), x = p.useCallback(() => {
42562
- const O = It(e.current.rootElementRef.current);
42563
- O.body.style.removeProperty("cursor"), O.removeEventListener("mousemove", m), O.removeEventListener("mouseup", h), O.removeEventListener("touchmove", g), O.removeEventListener("touchend", y), setTimeout(() => {
42564
- O.removeEventListener("click", ym, !0);
42562
+ const R = It(e.current.rootElementRef.current);
42563
+ R.body.style.removeProperty("cursor"), R.removeEventListener("mousemove", m), R.removeEventListener("mouseup", h), R.removeEventListener("touchmove", g), R.removeEventListener("touchend", y), setTimeout(() => {
42564
+ R.removeEventListener("click", ym, !0);
42565
42565
  }, 100), s.columnHeaderElement && (s.columnHeaderElement.style.pointerEvents = "unset");
42566
42566
  }, [e, s, m, h, g, y]), v = p.useCallback(({
42567
- field: O
42567
+ field: R
42568
42568
  }) => {
42569
42569
  e.current.setState((C) => E({}, C, {
42570
42570
  columnResize: E({}, C.columnResize, {
42571
- resizingColumnField: O
42571
+ resizingColumnField: R
42572
42572
  })
42573
42573
  }));
42574
42574
  }, [e]), S = p.useCallback(() => {
42575
- e.current.setState((O) => E({}, O, {
42576
- columnResize: E({}, O.columnResize, {
42575
+ e.current.setState((R) => E({}, R, {
42576
+ columnResize: E({}, R.columnResize, {
42577
42577
  resizingColumnField: ""
42578
42578
  })
42579
42579
  }));
42580
42580
  }, [e]), I = ze(({
42581
- colDef: O
42581
+ colDef: R
42582
42582
  }, C) => {
42583
42583
  if (C.button !== 0 || !C.currentTarget.classList.contains(V["columnSeparator--resizable"]))
42584
42584
  return;
42585
- C.preventDefault(), r.debug(`Start Resize on col ${O.field}`), e.current.publishEvent("columnResizeStart", {
42586
- field: O.field
42587
- }, C), f(O, C.currentTarget, C.clientX);
42588
- const R = It(e.current.rootElementRef.current);
42589
- R.body.style.cursor = "col-resize", s.previousMouseClickEvent = C.nativeEvent, R.addEventListener("mousemove", m), R.addEventListener("mouseup", h), R.addEventListener("click", ym, !0);
42590
- }), P = ze((O, C) => {
42585
+ C.preventDefault(), r.debug(`Start Resize on col ${R.field}`), e.current.publishEvent("columnResizeStart", {
42586
+ field: R.field
42587
+ }, C), f(R, C.currentTarget, C.clientX);
42588
+ const O = It(e.current.rootElementRef.current);
42589
+ O.body.style.cursor = "col-resize", s.previousMouseClickEvent = C.nativeEvent, O.addEventListener("mousemove", m), O.addEventListener("mouseup", h), O.addEventListener("click", ym, !0);
42590
+ }), P = ze((R, C) => {
42591
42591
  if (t.disableAutosize || C.button !== 0)
42592
42592
  return;
42593
- const R = e.current.state.columns.lookup[O.field];
42594
- R.resizable !== !1 && e.current.autosizeColumns(E({}, t.autosizeOptions, {
42593
+ const O = e.current.state.columns.lookup[R.field];
42594
+ O.resizable !== !1 && e.current.autosizeColumns(E({}, t.autosizeOptions, {
42595
42595
  disableColumnVirtualization: !1,
42596
- columns: [R.field]
42596
+ columns: [O.field]
42597
42597
  }));
42598
- }), M = Z_(e), D = p.useRef(!1), T = p.useCallback(async (O) => {
42598
+ }), M = Z_(e), D = p.useRef(!1), T = p.useCallback(async (R) => {
42599
42599
  if (!e.current.rootElementRef?.current || D.current)
42600
42600
  return;
42601
42601
  D.current = !0;
42602
- const R = so(e), L = E({}, nN, O, {
42603
- columns: O?.columns ?? R.orderedFields
42602
+ const O = so(e), L = E({}, nN, R, {
42603
+ columns: R?.columns ?? O.orderedFields
42604
42604
  });
42605
- L.columns = L.columns.filter((H) => R.columnVisibilityModel[H] !== !1);
42605
+ L.columns = L.columns.filter((H) => O.columnVisibilityModel[H] !== !1);
42606
42606
  const j = L.columns.map((H) => e.current.state.columns.lookup[H]);
42607
42607
  try {
42608
42608
  !t.disableVirtualization && L.disableColumnVirtualization && (e.current.unstable_setColumnVirtualization(!1), await M());
@@ -42612,7 +42612,7 @@ const rH = (e, t) => {
42612
42612
  flex: 0
42613
42613
  }));
42614
42614
  if (L.expand) {
42615
- const A = R.orderedFields.map((F) => R.lookup[F]).filter((F) => R.columnVisibilityModel[F.field] !== !1).reduce((F, B) => F + (H[B.field] ?? B.computedWidth ?? B.width), 0), k = e.current.getRootDimensions().viewportInnerSize.width - A;
42615
+ const A = O.orderedFields.map((F) => O.lookup[F]).filter((F) => O.columnVisibilityModel[F.field] !== !1).reduce((F, B) => F + (H[B.field] ?? B.computedWidth ?? B.width), 0), k = e.current.getRootDimensions().viewportInnerSize.width - A;
42616
42616
  if (k > 0) {
42617
42617
  const F = k / ($.length || 1);
42618
42618
  $.forEach((B) => {
@@ -42929,16 +42929,16 @@ const pH = (e, t, o = {}) => {
42929
42929
  return;
42930
42930
  }
42931
42931
  (s || e.current.getRowsCount() === 0) && e.current.setLoading(!0);
42932
- const R = a.current + 1;
42933
- a.current = R;
42932
+ const O = a.current + 1;
42933
+ a.current = O;
42934
42934
  try {
42935
42935
  const L = await D(T);
42936
- u.splitResponse(T, L).forEach((H, $) => d.set($, H)), a.current === R && e.current.applyStrategyProcessor("dataSourceRowsUpdate", {
42936
+ u.splitResponse(T, L).forEach((H, $) => d.set($, H)), a.current === O && e.current.applyStrategyProcessor("dataSourceRowsUpdate", {
42937
42937
  response: L,
42938
42938
  fetchParams: T
42939
42939
  });
42940
42940
  } catch (L) {
42941
- a.current === R && (e.current.applyStrategyProcessor("dataSourceRowsUpdate", {
42941
+ a.current === O && (e.current.applyStrategyProcessor("dataSourceRowsUpdate", {
42942
42942
  error: L,
42943
42943
  fetchParams: T
42944
42944
  }), typeof c == "function" ? c(new qC({
@@ -42947,7 +42947,7 @@ const pH = (e, t, o = {}) => {
42947
42947
  cause: L
42948
42948
  })) : process.env.NODE_ENV !== "production" && Nn(["MUI X: A call to `dataSource.getRows()` threw an error which was not handled because `onDataSourceError()` is missing.", "To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.", "For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."], "error"));
42949
42949
  } finally {
42950
- s && a.current === R && e.current.setLoading(!1);
42950
+ s && a.current === O && e.current.setLoading(!1);
42951
42951
  }
42952
42952
  }, [u, d, e, s, t.dataSource?.getRows, c, o, t.signature]), m = p.useCallback(() => {
42953
42953
  i(e.current.getActiveStrategy(Dn.DataSource) === Ir.Default);
@@ -43062,12 +43062,12 @@ function hH(e) {
43062
43062
  isLastColumn: d
43063
43063
  }), [t, S, I, r, s, i, a, d]);
43064
43064
  t && D && (M = D(T));
43065
- const O = E({}, e, {
43065
+ const R = E({}, e, {
43066
43066
  classes: m.classes,
43067
43067
  headerAlign: P,
43068
43068
  depth: r,
43069
43069
  isDragging: !1
43070
- }), C = S ?? t, R = Ye(), L = t === null ? `empty-group-cell-${R}` : t, j = fH(O);
43070
+ }), C = S ?? t, O = Ye(), L = t === null ? `empty-group-cell-${O}` : t, j = fH(R);
43071
43071
  p.useLayoutEffect(() => {
43072
43072
  c && (g.current.querySelector('[tabindex="0"]') || g.current)?.focus();
43073
43073
  }, [w, c]);
@@ -43127,7 +43127,7 @@ const Qu = te("div", {
43127
43127
  columnVisibility: d,
43128
43128
  columnGroupsHeaderStructure: f,
43129
43129
  hasOtherElementInTabSequence: h
43130
- } = e, [m, y] = p.useState(""), [g, w] = p.useState(""), x = nn(), v = Ce(), S = J(x, IC), I = J(x, jo), P = J(x, vD), M = J(x, rr), D = J(x, ao), T = LC(I, P, M.left.length), O = J(x, Vs), C = J(x, Wd), R = J(x, L1), L = J(x, j1), j = J(x, Kd), H = p.useCallback((W) => w(W.field), []), $ = p.useCallback(() => w(""), []), N = p.useCallback((W) => y(W.field), []), A = p.useCallback(() => y(""), []), _ = p.useMemo(() => M.left.length ? {
43130
+ } = e, [m, y] = p.useState(""), [g, w] = p.useState(""), x = nn(), v = Ce(), S = J(x, IC), I = J(x, jo), P = J(x, vD), M = J(x, rr), D = J(x, ao), T = LC(I, P, M.left.length), R = J(x, Vs), C = J(x, Wd), O = J(x, L1), L = J(x, j1), j = J(x, Kd), H = p.useCallback((W) => w(W.field), []), $ = p.useCallback(() => w(""), []), N = p.useCallback((W) => y(W.field), []), A = p.useCallback(() => y(""), []), _ = p.useMemo(() => M.left.length ? {
43131
43131
  firstColumnIndex: 0,
43132
43132
  lastColumnIndex: M.left.length
43133
43133
  } : null, [M.left.length]), G = p.useMemo(() => M.right.length ? {
@@ -43170,11 +43170,11 @@ const Qu = te("div", {
43170
43170
  firstColumnToRender: X
43171
43171
  } = k(W), Y = [];
43172
43172
  for (let re = 0; re < Z.length; re += 1) {
43173
- const K = Z[re], ee = X + re, ne = ee === 0, se = s !== null && s.field === K.field || ne && !h ? 0 : -1, Se = l !== null && l.field === K.field, Pe = u.open && u.field === K.field, ae = W?.position, Ge = Ii(ae, K.computedWidth, ee, I, O, j), Te = ae === Je.RIGHT ? Z[re - 1] : Z[re + 1], $e = Te ? l !== null && l.field === Te.field : !1, we = ee + 1 === I.length - M.right.length, Ue = re, Le = Z.length, de = Hi(ae, Ue), pe = _i(ae, Ue, Le, v.showColumnVerticalBorder, C);
43173
+ const K = Z[re], ee = X + re, ne = ee === 0, se = s !== null && s.field === K.field || ne && !h ? 0 : -1, Se = l !== null && l.field === K.field, Pe = u.open && u.field === K.field, ae = W?.position, Ge = Ii(ae, K.computedWidth, ee, I, R, j), Te = ae === Je.RIGHT ? Z[re - 1] : Z[re + 1], $e = Te ? l !== null && l.field === Te.field : !1, we = ee + 1 === I.length - M.right.length, Ue = re, Le = Z.length, de = Hi(ae, Ue), pe = _i(ae, Ue, Le, v.showColumnVerticalBorder, C);
43174
43174
  Y.push(/* @__PURE__ */ b.jsx(FF, E({}, o[K.field], {
43175
43175
  columnMenuOpen: Pe,
43176
43176
  filterItemsCounter: r[K.field] && r[K.field].length,
43177
- headerHeight: R,
43177
+ headerHeight: O,
43178
43178
  isDragging: K.field === m,
43179
43179
  colDef: K,
43180
43180
  colIndex: ee,
@@ -43197,7 +43197,7 @@ const Qu = te("div", {
43197
43197
  ownerState: v,
43198
43198
  className: V["row--borderBottom"],
43199
43199
  style: {
43200
- height: R
43200
+ height: O
43201
43201
  },
43202
43202
  children: [_ && B({
43203
43203
  position: Je.LEFT,
@@ -43246,7 +43246,7 @@ const Qu = te("div", {
43246
43246
  width: de.reduce((Ne, Qe) => Ne + D[Qe].computedWidth, 0),
43247
43247
  fields: de,
43248
43248
  colIndex: we
43249
- }, ve = Q.position, fe = Ii(ve, Ee.width, we, I, O, j);
43249
+ }, ve = Q.position, fe = Ii(ve, Ee.width, we, I, R, j);
43250
43250
  we += de.length;
43251
43251
  let ke = pe;
43252
43252
  return ve === Je.LEFT && (ke = we - 1), /* @__PURE__ */ b.jsx(hH, {
@@ -43702,21 +43702,21 @@ const kH = (e, t) => E({}, e, {
43702
43702
  r.current.classList.remove(u.columnHeaderDragging);
43703
43703
  }), i.current = e.current.getColumnIndex(g.field, !1);
43704
43704
  const v = e.current.getColumnGroupPath(g.field), S = i.current, I = e.current.getAllColumns(), P = e.current.getAllGroupDetails(), M = (T) => {
43705
- const O = I[T].field;
43706
- return e.current.getColumnGroupPath(O);
43705
+ const R = I[T].field;
43706
+ return e.current.getColumnGroupPath(R);
43707
43707
  };
43708
43708
  let D = null;
43709
43709
  v.forEach((T) => {
43710
43710
  P[T]?.freeReordering || (S > 0 && M(S - 1).includes(T) || S + 1 < I.length && M(S + 1).includes(T)) && (D = T);
43711
43711
  }), l.current = {};
43712
43712
  for (let T = 0; T < I.length; T += 1) {
43713
- const O = T <= S ? T - 1 : T, C = T < S ? T : T + 1;
43713
+ const R = T <= S ? T - 1 : T, C = T < S ? T : T + 1;
43714
43714
  if (D !== null) {
43715
- let R = !1;
43716
- (O >= 0 && M(O).includes(D) || C < I.length && M(C).includes(D)) && (R = !0), R || (l.current[T] = !0);
43715
+ let O = !1;
43716
+ (R >= 0 && M(R).includes(D) || C < I.length && M(C).includes(D)) && (O = !0), O || (l.current[T] = !0);
43717
43717
  }
43718
- O >= 0 && C < I.length && M(C).forEach((R) => {
43719
- M(O).includes(R) && (v.includes(R) || P[R]?.freeReordering || (l.current[T] = !0));
43718
+ R >= 0 && C < I.length && M(C).forEach((O) => {
43719
+ M(R).includes(O) && (v.includes(O) || P[O]?.freeReordering || (l.current[T] = !0));
43720
43720
  });
43721
43721
  }
43722
43722
  }, [t.disableColumnReorder, u.columnHeaderDragging, o, e]), m = p.useCallback((g, w) => {
@@ -43731,8 +43731,8 @@ const kH = (e, t) => E({}, e, {
43731
43731
  y: w.clientY
43732
43732
  };
43733
43733
  if (g.field !== x && LH(s.current, v)) {
43734
- const S = e.current.getColumnIndex(g.field, !1), I = e.current.getColumnIndex(g.field, !0), P = e.current.getColumn(g.field), M = e.current.getColumnIndex(x, !1), D = e.current.getVisibleColumns(), T = e.current.getAllColumns(), O = $H(s.current, v), C = O === bw && (d ? M < S : S < M), R = O === yw && (d ? S < M : M < S);
43735
- if (C || R) {
43734
+ const S = e.current.getColumnIndex(g.field, !1), I = e.current.getColumnIndex(g.field, !0), P = e.current.getColumn(g.field), M = e.current.getColumnIndex(x, !1), D = e.current.getVisibleColumns(), T = e.current.getAllColumns(), R = $H(s.current, v), C = R === bw && (d ? M < S : S < M), O = R === yw && (d ? S < M : M < S);
43735
+ if (C || O) {
43736
43736
  let L, j = 0;
43737
43737
  if (P.disableReorder ? C ? L = I > 0 && !D[I - 1].disableReorder : L = I < D.length - 1 && !D[I + 1].disableReorder : L = !0, l.current[S]) {
43738
43738
  let $, N = S + j;
@@ -44420,7 +44420,7 @@ const QH = ["colIndex", "height", "hasFocus", "width", "headerClassName", "colDe
44420
44420
  style: y,
44421
44421
  showLeftBorder: g,
44422
44422
  showRightBorder: w
44423
- } = e, x = me(e, QH), v = nn(), S = Yt(), I = J(v, Gr), P = Rn(), M = p.useRef(null), D = rt(t, M), T = p.useRef(null), O = p.useRef(null), R = J(v, TC) === a.field, j = J(v, yp) === a.field, H = p.useMemo(() => a.filterOperators ? a.filterOperators.filter((ne) => ne.value !== "isAnyOf") : [], [a.filterOperators]), $ = J(v, Ot), N = J(v, Ay), A = p.useMemo(() => {
44423
+ } = e, x = me(e, QH), v = nn(), S = Yt(), I = J(v, Gr), P = Rn(), M = p.useRef(null), D = rt(t, M), T = p.useRef(null), R = p.useRef(null), O = J(v, TC) === a.field, j = J(v, yp) === a.field, H = p.useMemo(() => a.filterOperators ? a.filterOperators.filter((ne) => ne.value !== "isAnyOf") : [], [a.filterOperators]), $ = J(v, Ot), N = J(v, Ay), A = p.useMemo(() => {
44424
44424
  if (!$?.items.length)
44425
44425
  return !1;
44426
44426
  const ne = $.items.find((se) => se.field === a.field);
@@ -44434,40 +44434,40 @@ const QH = ["colIndex", "height", "hasFocus", "width", "headerClassName", "colDe
44434
44434
  }))), p.useLayoutEffect(() => {
44435
44435
  if (s && !j) {
44436
44436
  let ne = M.current.querySelector('[tabindex="0"]');
44437
- R && G && (ne = T.current), (ne || M.current)?.focus(), v.current.columnHeadersContainerRef.current && (v.current.columnHeadersContainerRef.current.scrollLeft = 0);
44437
+ O && G && (ne = T.current), (ne || M.current)?.focus(), v.current.columnHeadersContainerRef.current && (v.current.columnHeadersContainerRef.current.scrollLeft = 0);
44438
44438
  }
44439
- }, [G, v, s, R, j]);
44439
+ }, [G, v, s, O, j]);
44440
44440
  const B = p.useCallback((ne) => {
44441
44441
  if (!(j || Vi(ne.key) || A))
44442
44442
  switch (ne.key) {
44443
44443
  case "Escape":
44444
- R && v.current.stopHeaderFilterEditMode();
44444
+ O && v.current.stopHeaderFilterEditMode();
44445
44445
  break;
44446
44446
  case "Enter":
44447
- if (R && !ne.defaultPrevented) {
44447
+ if (O && !ne.defaultPrevented) {
44448
44448
  v.current.stopHeaderFilterEditMode();
44449
44449
  break;
44450
44450
  }
44451
44451
  if (ne.metaKey || ne.ctrlKey) {
44452
- u.current = O.current, v.current.showHeaderFilterMenu(a.field);
44452
+ u.current = R.current, v.current.showHeaderFilterMenu(a.field);
44453
44453
  break;
44454
44454
  }
44455
44455
  v.current.startHeaderFilterEditMode(a.field);
44456
44456
  break;
44457
44457
  case "Tab": {
44458
- if (R) {
44458
+ if (O) {
44459
44459
  const se = I[o + (ne.shiftKey ? -1 : 1)] ?? null;
44460
44460
  se && (v.current.startHeaderFilterEditMode(se), v.current.setColumnHeaderFilterFocus(se, ne));
44461
44461
  }
44462
44462
  break;
44463
44463
  }
44464
44464
  default:
44465
- if (R || ne.metaKey || ne.ctrlKey || ne.altKey || ne.shiftKey)
44465
+ if (O || ne.metaKey || ne.ctrlKey || ne.altKey || ne.shiftKey)
44466
44466
  break;
44467
44467
  v.current.startHeaderFilterEditMode(a.field);
44468
44468
  break;
44469
44469
  }
44470
- }, [v, a.field, o, I, u, R, A, j]), U = p.useCallback((ne, se) => (Se) => {
44470
+ }, [v, a.field, o, I, u, O, A, j]), U = p.useCallback((ne, se) => (Se) => {
44471
44471
  v.current.publishEvent(ne, v.current.getColumnHeaderParams(a.field), Se), se && se(Se);
44472
44472
  }, [v, a.field]), z = p.useCallback((ne) => {
44473
44473
  s || (T.current?.contains?.(ne.target) && T.current.focus(), v.current.setColumnHeaderFilterFocus(a.field, ne));
@@ -44488,7 +44488,7 @@ const QH = ["colIndex", "height", "hasFocus", "width", "headerClassName", "colDe
44488
44488
  disabled: A,
44489
44489
  applyFilterChanges: v.current.upsertFilterItem,
44490
44490
  headerFilterMenuRef: u,
44491
- buttonRef: O,
44491
+ buttonRef: R,
44492
44492
  showClearItem: !f && Y,
44493
44493
  clearFilterItem: k
44494
44494
  }), ee = f && Y ? /* @__PURE__ */ b.jsx(YH, {
@@ -45406,15 +45406,15 @@ const mB = ["hideDescendantCount"], bB = (e, t) => {
45406
45406
  const x = rr(e);
45407
45407
  if (!w.colIndex || x.left.length === 0 && x.right.length === 0)
45408
45408
  return g;
45409
- const v = Tt(e), S = Vs(e), I = jo(e), P = e.current.virtualScrollerRef.current.clientWidth, M = Math.abs(e.current.virtualScrollerRef.current.scrollLeft), D = v[w.colIndex].computedWidth, T = I[w.colIndex], O = I[x.left.length], C = S - I[I.length - x.right.length], R = T + D;
45410
- if (R - (P - C) > M) {
45411
- const L = R - (P - C);
45409
+ const v = Tt(e), S = Vs(e), I = jo(e), P = e.current.virtualScrollerRef.current.clientWidth, M = Math.abs(e.current.virtualScrollerRef.current.scrollLeft), D = v[w.colIndex].computedWidth, T = I[w.colIndex], R = I[x.left.length], C = S - I[I.length - x.right.length], O = T + D;
45410
+ if (O - (P - C) > M) {
45411
+ const L = O - (P - C);
45412
45412
  return E({}, g, {
45413
45413
  left: L
45414
45414
  });
45415
45415
  }
45416
- if (T < M + O) {
45417
- const L = T - O;
45416
+ if (T < M + R) {
45417
+ const L = T - R;
45418
45418
  return E({}, g, {
45419
45419
  left: L
45420
45420
  });
@@ -45486,8 +45486,8 @@ const mB = ["hideDescendantCount"], bB = (e, t) => {
45486
45486
  oldIndex: v
45487
45487
  } = g, S = x > v ? 1 : -1, P = Un(e)[x - S], M = [...e.current.caches.columnPinning.orderedFieldsBeforePinningColumns];
45488
45488
  let D = M.findIndex((C) => C === w.field), T = D + S;
45489
- const O = M.findIndex((C) => C === P);
45490
- for (; S > 0 ? D < O : D > O; ) {
45489
+ const R = M.findIndex((C) => C === P);
45490
+ for (; S > 0 ? D < R : D > R; ) {
45491
45491
  for (; e.current.isColumnPinned(M[T]); )
45492
45492
  T += S;
45493
45493
  const C = M[D];
@@ -46076,17 +46076,17 @@ const AB = (e, t) => {
46076
46076
  s.clearPendingRequest(M);
46077
46077
  return;
46078
46078
  }
46079
- const O = e.current.getRowNode(M);
46080
- if (!O) {
46079
+ const R = e.current.getRowNode(M);
46080
+ if (!R) {
46081
46081
  s.clearPendingRequest(M);
46082
46082
  return;
46083
46083
  }
46084
46084
  const C = E({}, fw(e), D, {
46085
- groupKeys: O.path
46085
+ groupKeys: R.path
46086
46086
  }), L = h.getCacheKeys(C).map(($) => m.get($)), j = L.some(($) => $ === void 0) ? void 0 : Mi.mergeResponses(L);
46087
46087
  if (j !== void 0) {
46088
46088
  const $ = j.rows;
46089
- s.setRequestSettled(M), e.current.updateNestedRows($, O.path), j.rowCount !== void 0 && e.current.setRowCount(j.rowCount), e.current.setRowChildrenExpansion(M, !0), e.current.dataSource.setChildrenLoading(M, !1);
46089
+ s.setRequestSettled(M), e.current.updateNestedRows($, R.path), j.rowCount !== void 0 && e.current.setRowCount(j.rowCount), e.current.setRowChildrenExpansion(M, !0), e.current.dataSource.setChildrenLoading(M, !1);
46090
46090
  return;
46091
46091
  }
46092
46092
  (pB(e)[M] ?? null) && e.current.dataSource.setChildrenFetchError(M, null);
@@ -46110,7 +46110,7 @@ const AB = (e, t) => {
46110
46110
  id: G,
46111
46111
  _action: "delete"
46112
46112
  });
46113
- }), A.length > 0 && e.current.updateNestedRows(A, O.path), e.current.updateNestedRows($.rows, O.path), e.current.setRowChildrenExpansion(M, !0);
46113
+ }), A.length > 0 && e.current.updateNestedRows(A, R.path), e.current.updateNestedRows($.rows, R.path), e.current.setRowChildrenExpansion(M, !0);
46114
46114
  } catch ($) {
46115
46115
  const N = $;
46116
46116
  e.current.dataSource.setChildrenFetchError(M, N), typeof g == "function" ? g(new qC({
@@ -46125,19 +46125,19 @@ const AB = (e, t) => {
46125
46125
  e.current.setState((T) => {
46126
46126
  if (!T.dataSource.loading[M] && D === !1)
46127
46127
  return T;
46128
- const O = E({}, T.dataSource.loading);
46129
- return D === !1 ? delete O[M] : O[M] = D, E({}, T, {
46128
+ const R = E({}, T.dataSource.loading);
46129
+ return D === !1 ? delete R[M] : R[M] = D, E({}, T, {
46130
46130
  dataSource: E({}, T.dataSource, {
46131
- loading: O
46131
+ loading: R
46132
46132
  })
46133
46133
  });
46134
46134
  });
46135
46135
  }, [e]), v = p.useCallback((M, D) => {
46136
46136
  e.current.setState((T) => {
46137
- const O = E({}, T.dataSource.errors);
46138
- return D === null && O[M] !== void 0 ? delete O[M] : O[M] = D, E({}, T, {
46137
+ const R = E({}, T.dataSource.errors);
46138
+ return D === null && R[M] !== void 0 ? delete R[M] : R[M] = D, E({}, T, {
46139
46139
  dataSource: E({}, T.dataSource, {
46140
- errors: O
46140
+ errors: R
46141
46141
  })
46142
46142
  });
46143
46143
  });
@@ -46203,34 +46203,34 @@ const zB = {
46203
46203
  }, Mm = (e) => `${jw}-${e}`, qB = (e, t) => {
46204
46204
  const o = p.useCallback(() => {
46205
46205
  e.current.setStrategyAvailability(Dn.DataSource, Ir.LazyLoading, t.dataSource && t.lazyLoading ? () => !0 : () => !1);
46206
- }, [e, t.lazyLoading, t.dataSource]), [r, s] = p.useState(!1), i = p.useRef(zB), l = p.useRef(0), a = p.useRef(null), c = p.useRef(!1), u = p.useRef(null), d = p.useCallback((R) => {
46207
- e.current.dataSource.fetchRows(Ze, R);
46208
- }, [e]), f = p.useMemo(() => Qi(d, 0), [d]), h = p.useCallback((R) => {
46209
- if (typeof R.start != "number")
46210
- return R;
46206
+ }, [e, t.lazyLoading, t.dataSource]), [r, s] = p.useState(!1), i = p.useRef(zB), l = p.useRef(0), a = p.useRef(null), c = p.useRef(!1), u = p.useRef(null), d = p.useCallback((O) => {
46207
+ e.current.dataSource.fetchRows(Ze, O);
46208
+ }, [e]), f = p.useMemo(() => Qi(d, 0), [d]), h = p.useCallback((O) => {
46209
+ if (typeof O.start != "number")
46210
+ return O;
46211
46211
  const L = Dt(e);
46212
- return E({}, R, {
46213
- start: R.start - R.start % L.pageSize,
46214
- end: R.end + L.pageSize - R.end % L.pageSize - 1
46212
+ return E({}, O, {
46213
+ start: O.start - O.start % L.pageSize,
46214
+ end: O.end + L.pageSize - O.end % L.pageSize - 1
46215
46215
  });
46216
46216
  }, [e]), m = p.useCallback(() => {
46217
46217
  e.current.setLoading(!0), e.current.dataSource.cache.clear(), c.current = !0, l.current = 0;
46218
- const R = Dt(e), L = Wt(e), j = Ot(e), H = {
46218
+ const O = Dt(e), L = Wt(e), j = Ot(e), H = {
46219
46219
  start: 0,
46220
- end: R.pageSize - 1,
46220
+ end: O.pageSize - 1,
46221
46221
  sortModel: L,
46222
46222
  filterModel: j
46223
46223
  };
46224
46224
  d(H);
46225
- }, [e, d]), y = p.useCallback((R, L) => {
46226
- if (R === mr.VIEWPORT && L === mr.SCROLL_END) {
46225
+ }, [e, d]), y = p.useCallback((O, L) => {
46226
+ if (O === mr.VIEWPORT && L === mr.SCROLL_END) {
46227
46227
  m();
46228
46228
  return;
46229
46229
  }
46230
46230
  const $ = [...e.current.state.rows.tree[Ze].children], N = e.current.state.pagination.rowCount;
46231
46231
  $.length > N && m();
46232
46232
  }, [e, m]), g = p.useCallback(() => {
46233
- const R = e.current.state.rows.tree, L = R[Ze], j = [...L.children], H = e.current.state.pagination.rowCount, $ = j.length;
46233
+ const O = e.current.state.rows.tree, L = O[Ze], j = [...L.children], H = e.current.state.pagination.rowCount, $ = j.length;
46234
46234
  if ($ === 0)
46235
46235
  return;
46236
46236
  const N = h({
@@ -46240,16 +46240,16 @@ const zB = {
46240
46240
  let A = !1;
46241
46241
  const _ = i.current.firstRowToRender === 0 && i.current.lastRowToRender === 0;
46242
46242
  for (let G = 0; G < $ && !_; G += 1) {
46243
- if (N.start <= G && G <= N.end || R[j[G]]?.type === "skeletonRow" || // ignore rows that are already skeleton rows
46244
- R[j[G]]?.id === u.current)
46243
+ if (N.start <= G && G <= N.end || O[j[G]]?.type === "skeletonRow" || // ignore rows that are already skeleton rows
46244
+ O[j[G]]?.id === u.current)
46245
46245
  continue;
46246
- const k = R[j[G]].id, F = {
46246
+ const k = O[j[G]].id, F = {
46247
46247
  type: "skeletonRow",
46248
46248
  id: k,
46249
46249
  parent: Ze,
46250
46250
  depth: 0
46251
46251
  };
46252
- R[k] = F, A = !0;
46252
+ O[k] = F, A = !0;
46253
46253
  }
46254
46254
  if (a.current === mr.VIEWPORT)
46255
46255
  for (let G = 0; G < H - $; G += 1) {
@@ -46261,26 +46261,26 @@ const zB = {
46261
46261
  parent: Ze,
46262
46262
  depth: 0
46263
46263
  };
46264
- R[k] = F, A = !0;
46264
+ O[k] = F, A = !0;
46265
46265
  }
46266
- A && (R[Ze] = E({}, L, {
46266
+ A && (O[Ze] = E({}, L, {
46267
46267
  children: j
46268
46268
  }), e.current.setState((G) => E({}, G, {
46269
46269
  rows: E({}, G.rows, {
46270
- tree: R
46270
+ tree: O
46271
46271
  })
46272
46272
  }), "addSkeletonRows"));
46273
- }, [e, h]), w = p.useCallback((R) => {
46274
- const L = R === -1 ? mr.SCROLL_END : mr.VIEWPORT;
46273
+ }, [e, h]), w = p.useCallback((O) => {
46274
+ const L = O === -1 ? mr.SCROLL_END : mr.VIEWPORT;
46275
46275
  a.current !== null && y(a.current, L), a.current !== L && (a.current = L);
46276
- }, [y]), x = p.useCallback((R) => {
46277
- if ("error" in R)
46276
+ }, [y]), x = p.useCallback((O) => {
46277
+ if ("error" in O)
46278
46278
  return;
46279
46279
  const {
46280
46280
  response: L,
46281
46281
  fetchParams: j
46282
- } = R, H = e.current.state.pagination.rowCount, $ = e.current.state.rows.tree, N = e.current.state.rows.dataRowIdToModelLookup;
46283
- if ((L.rowCount !== void 0 || H === void 0) && e.current.setRowCount(L.rowCount === void 0 ? -1 : L.rowCount), c.current && R.fetchParams.start === 0)
46282
+ } = O, H = e.current.state.pagination.rowCount, $ = e.current.state.rows.tree, N = e.current.state.rows.dataRowIdToModelLookup;
46283
+ if ((L.rowCount !== void 0 || H === void 0) && e.current.setRowCount(L.rowCount === void 0 ? -1 : L.rowCount), c.current && O.fetchParams.start === 0)
46284
46284
  e.current.scroll({
46285
46285
  top: 0
46286
46286
  }), e.current.setRows(L.rows);
@@ -46312,7 +46312,7 @@ const zB = {
46312
46312
  }))), e.current.unstable_replaceRows(k, L.rows);
46313
46313
  }
46314
46314
  c.current = !1, a.current === null && w(e.current.state.pagination.rowCount), g(), e.current.setLoading(!1), e.current.unstable_applyPipeProcessors("processDataSourceRows", {
46315
- params: R.fetchParams,
46315
+ params: O.fetchParams,
46316
46316
  response: L
46317
46317
  }, !1), e.current.requestPipeProcessorsApplication("hydrateRows");
46318
46318
  }, [e, w, g]), v = p.useCallback(() => {
@@ -46320,38 +46320,38 @@ const zB = {
46320
46320
  }, [e, w, g]), S = ze(() => {
46321
46321
  if (c.current || a.current !== mr.SCROLL_END)
46322
46322
  return;
46323
- const R = sr(e);
46324
- if (l.current >= R.lastRowIndex)
46323
+ const O = sr(e);
46324
+ if (l.current >= O.lastRowIndex)
46325
46325
  return;
46326
- l.current = R.lastRowIndex;
46326
+ l.current = O.lastRowIndex;
46327
46327
  const L = Dt(e), j = Wt(e), H = Ot(e), $ = {
46328
- start: R.lastRowIndex,
46329
- end: R.lastRowIndex + L.pageSize - 1,
46328
+ start: O.lastRowIndex,
46329
+ end: O.lastRowIndex + L.pageSize - 1,
46330
46330
  sortModel: j,
46331
46331
  filterModel: H
46332
46332
  };
46333
46333
  e.current.setLoading(!0), d(h($));
46334
- }), I = p.useCallback((R) => {
46334
+ }), I = p.useCallback((O) => {
46335
46335
  if (c.current)
46336
46336
  return;
46337
46337
  const L = Wt(e), j = Ot(e), H = {
46338
- start: R.firstRowIndex,
46339
- end: R.lastRowIndex - 1,
46338
+ start: O.firstRowIndex,
46339
+ end: O.lastRowIndex - 1,
46340
46340
  sortModel: L,
46341
46341
  filterModel: j
46342
46342
  };
46343
- if (i.current.firstRowToRender === R.firstRowIndex && i.current.lastRowToRender === R.lastRowIndex)
46343
+ if (i.current.firstRowToRender === O.firstRowIndex && i.current.lastRowToRender === O.lastRowIndex)
46344
46344
  return;
46345
46345
  i.current = {
46346
- firstRowToRender: R.firstRowIndex,
46347
- lastRowToRender: R.lastRowIndex
46346
+ firstRowToRender: O.firstRowIndex,
46347
+ lastRowToRender: O.lastRowIndex
46348
46348
  };
46349
46349
  const $ = go(e), N = Lw({
46350
46350
  apiRef: e,
46351
46351
  visibleRows: $.rows,
46352
46352
  range: {
46353
- firstRowIndex: R.firstRowIndex,
46354
- lastRowIndex: R.lastRowIndex - 1
46353
+ firstRowIndex: O.firstRowIndex,
46354
+ lastRowIndex: O.lastRowIndex - 1
46355
46355
  }
46356
46356
  });
46357
46357
  N && (H.start = N.firstRowIndex, H.end = N.lastRowIndex, d(h(H)));
@@ -46359,32 +46359,32 @@ const zB = {
46359
46359
  p.useEffect(() => () => {
46360
46360
  P.clear();
46361
46361
  }, [P]);
46362
- const M = p.useCallback((R) => {
46362
+ const M = p.useCallback((O) => {
46363
46363
  c.current = !0, P.clear(), l.current = 0;
46364
46364
  const L = Dt(e), j = Ot(e), H = {
46365
46365
  start: 0,
46366
46366
  end: L.pageSize - 1,
46367
- sortModel: R,
46367
+ sortModel: O,
46368
46368
  filterModel: j
46369
46369
  };
46370
46370
  e.current.setLoading(!0), f(H);
46371
- }, [e, f, P]), D = p.useCallback((R) => {
46371
+ }, [e, f, P]), D = p.useCallback((O) => {
46372
46372
  c.current = !0, P.clear(), l.current = 0;
46373
46373
  const L = Dt(e), j = Wt(e), H = {
46374
46374
  start: 0,
46375
46375
  end: L.pageSize - 1,
46376
46376
  sortModel: j,
46377
- filterModel: R
46377
+ filterModel: O
46378
46378
  };
46379
46379
  e.current.setLoading(!0), f(H);
46380
- }, [e, f, P]), T = p.useCallback((R) => {
46381
- u.current = R.id;
46382
- }, []), O = p.useCallback(() => {
46380
+ }, [e, f, P]), T = p.useCallback((O) => {
46381
+ u.current = O.id;
46382
+ }, []), R = p.useCallback(() => {
46383
46383
  u.current = null;
46384
46384
  }, []), C = p.useCallback(() => {
46385
46385
  s(e.current.getActiveStrategy(Dn.DataSource) === Ir.LazyLoading);
46386
46386
  }, [e]);
46387
- Sn(e, Ir.LazyLoading, "dataSourceRowsUpdate", x), ge(e, "strategyAvailabilityChange", C), ge(e, "rowCountChange", an(r, v)), ge(e, "rowsScrollEndIntersection", an(r, S)), ge(e, "renderedRowsIntervalChange", an(r, P)), ge(e, "sortModelChange", an(r, M)), ge(e, "filterModelChange", an(r, D)), ge(e, "rowDragStart", an(r, T)), ge(e, "rowDragEnd", an(r, O)), p.useEffect(() => {
46387
+ Sn(e, Ir.LazyLoading, "dataSourceRowsUpdate", x), ge(e, "strategyAvailabilityChange", C), ge(e, "rowCountChange", an(r, v)), ge(e, "rowsScrollEndIntersection", an(r, S)), ge(e, "renderedRowsIntervalChange", an(r, P)), ge(e, "sortModelChange", an(r, M)), ge(e, "filterModelChange", an(r, D)), ge(e, "rowDragStart", an(r, T)), ge(e, "rowDragEnd", an(r, R)), p.useEffect(() => {
46388
46388
  o();
46389
46389
  }, [o]);
46390
46390
  }, UB = nt("div")({
@@ -46464,7 +46464,7 @@ const QB = ["getColumnsToRender", "getPinnedCellOffset", "renderContext", "leftR
46464
46464
  t.current.register("private", {
46465
46465
  headerFiltersElementRef: g
46466
46466
  });
46467
- const w = p.useRef(null), x = Rn(), v = JB(x), S = !x.headerFilters, I = J(t, Ot), P = J(t, Vs), M = J(t, Wd), D = J(t, A1), T = J(t, Kd), O = J(t, xk), C = p.useCallback((j) => {
46467
+ const w = p.useRef(null), x = Rn(), v = JB(x), S = !x.headerFilters, I = J(t, Ot), P = J(t, Vs), M = J(t, Wd), D = J(t, A1), T = J(t, Kd), R = J(t, xk), C = p.useCallback((j) => {
46468
46468
  const H = I?.items.find((A) => A.field === j.field && A.operator !== "isAnyOf");
46469
46469
  if (H != null)
46470
46470
  return H;
@@ -46473,13 +46473,13 @@ const QB = ["getColumnsToRender", "getPinnedCellOffset", "renderContext", "leftR
46473
46473
  return $;
46474
46474
  const N = $u(j);
46475
46475
  return km[j.field] = N, N;
46476
- }, [I]), R = (j) => {
46476
+ }, [I]), O = (j) => {
46477
46477
  const {
46478
46478
  renderedColumns: H,
46479
46479
  firstColumnToRender: $
46480
46480
  } = l(j), N = [];
46481
46481
  for (let A = 0; A < H.length; A += 1) {
46482
- const _ = H[A], G = $ + A, k = O?.field === _.field, F = G === 0, U = s?.field === _.field || F && !e.hasOtherElementInTabSequence ? 0 : -1, z = typeof _.headerClassName == "function" ? _.headerClassName({
46482
+ const _ = H[A], G = $ + A, k = R?.field === _.field, F = G === 0, U = s?.field === _.field || F && !e.hasOtherElementInTabSequence ? 0 : -1, z = typeof _.headerClassName == "function" ? _.headerClassName({
46483
46483
  field: _.field,
46484
46484
  colDef: _
46485
46485
  }) : _.headerClassName, q = C(_), W = j?.position, Q = a(W, _.computedWidth, G, m, P, T), Z = A, X = H.length, Y = Hi(W, Z), re = _i(W, Z, X, x.showColumnVerticalBorder, M);
@@ -46507,14 +46507,14 @@ const QB = ["getColumnsToRender", "getPinnedCellOffset", "renderContext", "leftR
46507
46507
  role: "row",
46508
46508
  "aria-rowindex": o + 2,
46509
46509
  ownerState: x,
46510
- children: [u && R({
46510
+ children: [u && O({
46511
46511
  position: Je.LEFT,
46512
46512
  renderContext: u,
46513
46513
  maxLastColumn: u.lastColumnIndex
46514
- }), R({
46514
+ }), O({
46515
46515
  renderContext: c,
46516
46516
  maxLastColumn: h.length - f.right.length
46517
- }), d && R({
46517
+ }), d && O({
46518
46518
  position: Je.RIGHT,
46519
46519
  renderContext: d,
46520
46520
  maxLastColumn: d.lastColumnIndex
@@ -47801,9 +47801,9 @@ const EG = mV, Dm = ({ message: e, variant: t }) => /* @__PURE__ */ b.jsxs(fu, {
47801
47801
  opacity: t.expanded ? 1 : 0,
47802
47802
  transition: e.transitions.create(["width", "opacity"])
47803
47803
  }));
47804
- function DG({ label: e, downloadFileName: t, labelTooltip: o, toolbarSlot: r, ...s }) {
47805
- const [i, l] = p.useState(!1), a = p.useRef(null);
47806
- return /* @__PURE__ */ b.jsxs(pl, { children: [
47804
+ function DG({ label: e, downloadFileName: t, labelTooltip: o, toolbarSlot: r, toolbarStyle: s, toolbarIconColor: i, ...l }) {
47805
+ const [a, c] = p.useState(!1), u = p.useRef(null), d = i ?? "inherit";
47806
+ return /* @__PURE__ */ b.jsxs(pl, { style: { ...s }, children: [
47807
47807
  typeof e != "string" && e,
47808
47808
  /* @__PURE__ */ b.jsxs(wn, { fontWeight: "medium", sx: { flex: 1, mx: 0.5, display: "flex", alignItems: "center", gap: 1 }, children: [
47809
47809
  typeof e == "string" && e,
@@ -47813,33 +47813,33 @@ function DG({ label: e, downloadFileName: t, labelTooltip: o, toolbarSlot: r, ..
47813
47813
  r,
47814
47814
  /* @__PURE__ */ b.jsx(Ts, { orientation: "vertical", variant: "middle", flexItem: !0, sx: { mx: 0.5 } })
47815
47815
  ] }),
47816
- /* @__PURE__ */ b.jsx(Io, { title: "Columns", children: /* @__PURE__ */ b.jsx(xc, { render: /* @__PURE__ */ b.jsx(mo, {}), children: /* @__PURE__ */ b.jsx(PG, { fontSize: "small" }) }) }),
47816
+ /* @__PURE__ */ b.jsx(Io, { title: "Columns", children: /* @__PURE__ */ b.jsx(xc, { render: /* @__PURE__ */ b.jsx(mo, {}), children: /* @__PURE__ */ b.jsx(PG, { fontSize: "small", htmlColor: d }) }) }),
47817
47817
  /* @__PURE__ */ b.jsx(Io, { title: "Filters", children: /* @__PURE__ */ b.jsx(
47818
47818
  wc,
47819
47819
  {
47820
- render: (c, u) => /* @__PURE__ */ b.jsx(mo, { ...c, color: "default", children: /* @__PURE__ */ b.jsx(nf, { badgeContent: u.filterCount, color: "primary", variant: "dot", children: /* @__PURE__ */ b.jsx(TG, { fontSize: "small" }) }) })
47820
+ render: (f, h) => /* @__PURE__ */ b.jsx(mo, { ...f, color: "default", children: /* @__PURE__ */ b.jsx(nf, { badgeContent: h.filterCount, color: "primary", variant: "dot", children: /* @__PURE__ */ b.jsx(TG, { fontSize: "small", htmlColor: d }) }) })
47821
47821
  }
47822
47822
  ) }),
47823
47823
  /* @__PURE__ */ b.jsx(Ts, { orientation: "vertical", variant: "middle", flexItem: !0, sx: { mx: 0.5 } }),
47824
47824
  /* @__PURE__ */ b.jsx(Io, { title: "Export", children: /* @__PURE__ */ b.jsx(
47825
47825
  mo,
47826
47826
  {
47827
- ref: a,
47827
+ ref: u,
47828
47828
  id: "export-menu-trigger",
47829
47829
  "aria-controls": "export-menu",
47830
47830
  "aria-haspopup": "true",
47831
- "aria-expanded": i ? "true" : void 0,
47832
- onClick: () => l(!0),
47833
- children: /* @__PURE__ */ b.jsx(IG, { fontSize: "small" })
47831
+ "aria-expanded": a ? "true" : void 0,
47832
+ onClick: () => c(!0),
47833
+ children: /* @__PURE__ */ b.jsx(IG, { fontSize: "small", htmlColor: d })
47834
47834
  }
47835
47835
  ) }),
47836
47836
  /* @__PURE__ */ b.jsxs(
47837
47837
  Od,
47838
47838
  {
47839
47839
  id: "export-menu",
47840
- anchorEl: a.current,
47841
- open: i,
47842
- onClose: () => l(!1),
47840
+ anchorEl: u.current,
47841
+ open: a,
47842
+ onClose: () => c(!1),
47843
47843
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
47844
47844
  transformOrigin: { vertical: "top", horizontal: "right" },
47845
47845
  slotProps: {
@@ -47848,8 +47848,8 @@ function DG({ label: e, downloadFileName: t, labelTooltip: o, toolbarSlot: r, ..
47848
47848
  }
47849
47849
  },
47850
47850
  children: [
47851
- /* @__PURE__ */ b.jsx(Ec, { options: { ...s.printOptions }, render: /* @__PURE__ */ b.jsx(Is, {}), onClick: () => l(!1), children: "Print" }),
47852
- /* @__PURE__ */ b.jsx(Sc, { options: { fileName: typeof e == "string" ? e : t, ...s.csvOptions }, render: /* @__PURE__ */ b.jsx(Is, {}), onClick: () => l(!1), children: "Download as CSV" })
47851
+ /* @__PURE__ */ b.jsx(Ec, { options: { ...l.printOptions }, render: /* @__PURE__ */ b.jsx(Is, {}), onClick: () => c(!1), children: "Print" }),
47852
+ /* @__PURE__ */ b.jsx(Sc, { options: { fileName: typeof e == "string" ? e : t, ...l.csvOptions }, render: /* @__PURE__ */ b.jsx(Is, {}), onClick: () => c(!1), children: "Download as CSV" })
47853
47853
  ]
47854
47854
  }
47855
47855
  ),
@@ -47857,14 +47857,14 @@ function DG({ label: e, downloadFileName: t, labelTooltip: o, toolbarSlot: r, ..
47857
47857
  /* @__PURE__ */ b.jsx(
47858
47858
  vc,
47859
47859
  {
47860
- render: (c, u) => /* @__PURE__ */ b.jsx(Io, { title: "Search", enterDelay: 0, children: /* @__PURE__ */ b.jsx(
47860
+ render: (f, h) => /* @__PURE__ */ b.jsx(Io, { title: "Search", enterDelay: 0, children: /* @__PURE__ */ b.jsx(
47861
47861
  MG,
47862
47862
  {
47863
- ...c,
47864
- ownerState: { expanded: u.expanded },
47863
+ ...f,
47864
+ ownerState: { expanded: h.expanded },
47865
47865
  color: "default",
47866
- "aria-disabled": u.expanded,
47867
- children: /* @__PURE__ */ b.jsx(Iu, { fontSize: "small" })
47866
+ "aria-disabled": h.expanded,
47867
+ children: /* @__PURE__ */ b.jsx(Iu, { fontSize: "small", htmlColor: d })
47868
47868
  }
47869
47869
  ) })
47870
47870
  }
@@ -47872,19 +47872,19 @@ function DG({ label: e, downloadFileName: t, labelTooltip: o, toolbarSlot: r, ..
47872
47872
  /* @__PURE__ */ b.jsx(
47873
47873
  yc,
47874
47874
  {
47875
- render: ({ ref: c, ...u }, d) => /* @__PURE__ */ b.jsx(
47875
+ render: ({ ref: f, ...h }, m) => /* @__PURE__ */ b.jsx(
47876
47876
  kG,
47877
47877
  {
47878
- ...u,
47879
- ownerState: { expanded: d.expanded },
47880
- inputRef: c,
47878
+ ...h,
47879
+ ownerState: { expanded: m.expanded },
47880
+ inputRef: f,
47881
47881
  "aria-label": "Search",
47882
47882
  placeholder: "Search...",
47883
47883
  size: "small",
47884
47884
  slotProps: {
47885
47885
  input: {
47886
47886
  startAdornment: /* @__PURE__ */ b.jsx(Pa, { position: "start", children: /* @__PURE__ */ b.jsx(Iu, { fontSize: "small" }) }),
47887
- endAdornment: d.value ? /* @__PURE__ */ b.jsx(Pa, { position: "end", children: /* @__PURE__ */ b.jsx(
47887
+ endAdornment: m.value ? /* @__PURE__ */ b.jsx(Pa, { position: "end", children: /* @__PURE__ */ b.jsx(
47888
47888
  Cc,
47889
47889
  {
47890
47890
  edge: "end",
@@ -47894,9 +47894,9 @@ function DG({ label: e, downloadFileName: t, labelTooltip: o, toolbarSlot: r, ..
47894
47894
  children: /* @__PURE__ */ b.jsx(OG, { fontSize: "small" })
47895
47895
  }
47896
47896
  ) }) : null,
47897
- ...u.slotProps?.input
47897
+ ...h.slotProps?.input
47898
47898
  },
47899
- ...u.slotProps
47899
+ ...h.slotProps
47900
47900
  }
47901
47901
  }
47902
47902
  )
@@ -47923,31 +47923,35 @@ const r2 = (e) => {
47923
47923
  labelTooltip: y,
47924
47924
  downloadFileName: g,
47925
47925
  toolbarSlot: w,
47926
- ...x
47927
- } = e, v = ms(() => {
47926
+ toolbarStyle: x,
47927
+ toolbarIconColor: v,
47928
+ ...S
47929
+ } = e, I = ms(() => {
47928
47930
  const O = {
47929
47931
  label: m,
47930
47932
  downloadFileName: g,
47931
47933
  labelTooltip: y,
47932
- toolbarSlot: w
47934
+ toolbarSlot: w,
47935
+ toolbarStyle: x,
47936
+ toolbarIconColor: v
47933
47937
  };
47934
- return (C) => /* @__PURE__ */ b.jsx(DG, { ...C, ...O });
47935
- }, [m, y, w]), S = ms(
47936
- () => s.map((O, C) => ({ ...O, id: O?.id || C })),
47938
+ return (L) => /* @__PURE__ */ b.jsx(DG, { ...L, ...O });
47939
+ }, [m, y, w]), P = ms(
47940
+ () => s.map((O, L) => ({ ...O, id: O?.id || L })),
47937
47941
  [s]
47938
- ), I = ms(
47942
+ ), M = ms(
47939
47943
  () => ({
47940
47944
  expand: !0,
47941
47945
  includeHeaders: !0,
47942
47946
  outliersFactor: 1.5
47943
47947
  }),
47944
47948
  []
47945
- ), P = EG(), M = i ?? P, D = br(() => {
47946
- M.current?.autosizeColumns && M.current.autosizeColumns(I);
47947
- }, [M, I]);
47949
+ ), D = EG(), T = i ?? D, R = br(() => {
47950
+ T.current?.autosizeColumns && T.current.autosizeColumns(M);
47951
+ }, [T, M]);
47948
47952
  return Oo(() => {
47949
- D();
47950
- }, [s, o, D]), a && S.length === 0 && !x.loading ? typeof a == "string" ? /* @__PURE__ */ b.jsx(Dm, { message: a, variant: "empty" }) : a : f ? /* @__PURE__ */ b.jsx(Dm, { message: `Error fetching ${m}`, variant: "error" }) : /* @__PURE__ */ b.jsx(
47953
+ R();
47954
+ }, [s, o, R]), a && P.length === 0 && !S.loading ? typeof a == "string" ? /* @__PURE__ */ b.jsx(Dm, { message: a, variant: "empty" }) : a : f ? /* @__PURE__ */ b.jsx(Dm, { message: `Error fetching ${m}`, variant: "error" }) : /* @__PURE__ */ b.jsx(
47951
47955
  "div",
47952
47956
  {
47953
47957
  style: {
@@ -47959,14 +47963,14 @@ const r2 = (e) => {
47959
47963
  children: /* @__PURE__ */ b.jsx(
47960
47964
  Hw,
47961
47965
  {
47962
- apiRef: M,
47966
+ apiRef: T,
47963
47967
  columns: o,
47964
- rows: S,
47968
+ rows: P,
47965
47969
  autosizeOnMount: !0,
47966
- onResize: (O, C, R) => {
47967
- l && l(O, C, R), D();
47970
+ onResize: (O, L, j) => {
47971
+ l && l(O, L, j), R();
47968
47972
  },
47969
- autosizeOptions: I,
47973
+ autosizeOptions: M,
47970
47974
  disableRowSelectionOnClick: !0,
47971
47975
  showToolbar: c,
47972
47976
  density: r,
@@ -47977,10 +47981,10 @@ const r2 = (e) => {
47977
47981
  ...d
47978
47982
  },
47979
47983
  slots: {
47980
- toolbar: v,
47984
+ toolbar: I,
47981
47985
  ...h
47982
47986
  },
47983
- ...x
47987
+ ...S
47984
47988
  }
47985
47989
  )
47986
47990
  }
@@ -49751,8 +49755,8 @@ var hz = class {
49751
49755
  const o = this.#e, r = this.options, s = this.#o, i = this.#r, l = this.#l, c = e !== o ? e.state : this.#n, { state: u } = e;
49752
49756
  let d = { ...u }, f = !1, h;
49753
49757
  if (t._optimisticResults) {
49754
- const T = this.hasListeners(), O = !T && _m(e, t), C = T && Hm(e, o, t, r);
49755
- (O || C) && (d = {
49758
+ const T = this.hasListeners(), R = !T && _m(e, t), C = T && Hm(e, o, t, r);
49759
+ (R || C) && (d = {
49756
49760
  ...d,
49757
49761
  ...Kw(u.data, e.options)
49758
49762
  }), t._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
@@ -49810,21 +49814,21 @@ var hz = class {
49810
49814
  isEnabled: _n(t.enabled, e) !== !1
49811
49815
  };
49812
49816
  if (this.options.experimental_prefetchInRender) {
49813
- const T = (R) => {
49814
- D.status === "error" ? R.reject(D.error) : D.data !== void 0 && R.resolve(D.data);
49815
- }, O = () => {
49816
- const R = this.#i = D.promise = cd();
49817
- T(R);
49817
+ const T = (O) => {
49818
+ D.status === "error" ? O.reject(D.error) : D.data !== void 0 && O.resolve(D.data);
49819
+ }, R = () => {
49820
+ const O = this.#i = D.promise = cd();
49821
+ T(O);
49818
49822
  }, C = this.#i;
49819
49823
  switch (C.status) {
49820
49824
  case "pending":
49821
49825
  e.queryHash === o.queryHash && T(C);
49822
49826
  break;
49823
49827
  case "fulfilled":
49824
- (D.status === "error" || D.data !== C.value) && O();
49828
+ (D.status === "error" || D.data !== C.value) && R();
49825
49829
  break;
49826
49830
  case "rejected":
49827
- (D.status !== "error" || D.error !== C.reason) && O();
49831
+ (D.status !== "error" || D.error !== C.reason) && R();
49828
49832
  break;
49829
49833
  }
49830
49834
  }
@@ -50013,7 +50017,7 @@ const kz = ({
50013
50017
  slotProps: y,
50014
50018
  ...g
50015
50019
  }) => {
50016
- const [w, x] = as(""), [v, S] = as(null), [I, P] = as(d || null), [M, D] = as(!1), T = e.includes("Gene"), O = e.includes("SNP"), C = e.includes("iCRE"), R = e.includes("cCRE"), L = e.includes("Coordinate"), j = e.includes("Study"), {
50020
+ const [w, x] = as(""), [v, S] = as(null), [I, P] = as(d || null), [M, D] = as(!1), T = e.includes("Gene"), R = e.includes("SNP"), C = e.includes("iCRE"), O = e.includes("cCRE"), L = e.includes("Coordinate"), j = e.includes("Study"), {
50017
50021
  data: H,
50018
50022
  refetch: $,
50019
50023
  isFetching: N
@@ -50055,7 +50059,7 @@ const kz = ({
50055
50059
  enabled: !1
50056
50060
  }), X = Bl(null);
50057
50061
  Oo(() => (w.length === 0 ? P(null) : P([]), X.current && clearTimeout(X.current), X.current = setTimeout(() => {
50058
- T && !Ql(w) && F(), t === "GRCh38" ? (C && w.toLowerCase().startsWith("eh") && $(), R && w.toLowerCase().startsWith("eh") && _(), O && w.toLowerCase().startsWith("rs") && z(), j && !Ql(w) && w !== "" && Q()) : R && w.toLowerCase().startsWith("em") && _();
50062
+ T && !Ql(w) && F(), t === "GRCh38" ? (C && w.toLowerCase().startsWith("eh") && $(), O && w.toLowerCase().startsWith("eh") && _(), R && w.toLowerCase().startsWith("rs") && z(), j && !Ql(w) && w !== "" && Q()) : O && w.toLowerCase().startsWith("em") && _();
50059
50063
  }, 100), () => {
50060
50064
  X.current && clearTimeout(X.current);
50061
50065
  }), [w]), Oo(() => {
@@ -50063,7 +50067,7 @@ const kz = ({
50063
50067
  }, [N, G, B, q, Z]), Oo(() => {
50064
50068
  if (M) return;
50065
50069
  const ee = [];
50066
- k && T && ee.push(...WG(k, s || 3, typeof r == "object")), t === "GRCh38" ? (H && C && w.toLowerCase().startsWith("eh") && ee.push(...XG(H.data.iCREQuery, l || 3)), A && R && w.toLowerCase().startsWith("eh") && ee.push(...Nm(A.data.cCREAutocompleteQuery, a || 3)), U && O && w.toLowerCase().startsWith("rs") && ee.push(...UG(U.data.snpAutocompleteQuery, i || 3)), W && j && ee.push(...KG(W.data.getAllGwasStudies, s || 3))) : A && R && w.toLowerCase().startsWith("em") && ee.push(...Nm(A.data.cCREAutocompleteQuery, a || 3)), Ql(w) && L && ee.push(...qG(w, t)), ee.length === 0 ? P(null) : P(ee);
50070
+ k && T && ee.push(...WG(k, s || 3, typeof r == "object")), t === "GRCh38" ? (H && C && w.toLowerCase().startsWith("eh") && ee.push(...XG(H.data.iCREQuery, l || 3)), A && O && w.toLowerCase().startsWith("eh") && ee.push(...Nm(A.data.cCREAutocompleteQuery, a || 3)), U && R && w.toLowerCase().startsWith("rs") && ee.push(...UG(U.data.snpAutocompleteQuery, i || 3)), W && j && ee.push(...KG(W.data.getAllGwasStudies, s || 3))) : A && O && w.toLowerCase().startsWith("em") && ee.push(...Nm(A.data.cCREAutocompleteQuery, a || 3)), Ql(w) && L && ee.push(...qG(w, t)), ee.length === 0 ? P(null) : P(ee);
50067
50071
  }, [
50068
50072
  M,
50069
50073
  H,
@@ -50073,8 +50077,8 @@ const kz = ({
50073
50077
  W,
50074
50078
  T,
50075
50079
  C,
50076
- R,
50077
50080
  O,
50081
+ R,
50078
50082
  L,
50079
50083
  j,
50080
50084
  w,
@@ -50487,4 +50491,4 @@ export {
50487
50491
  KN as y,
50488
50492
  Tp as z
50489
50493
  };
50490
- //# sourceMappingURL=index-CZl8n_G0.js.map
50494
+ //# sourceMappingURL=index-C5pwuAmM.js.map