@simoncomputing/mui-bueno-v2 0.32.4 → 0.32.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import './index.css';var D3 = Object.defineProperty;
2
2
  var A3 = (t, e, n) => e in t ? D3(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Ac = (t, e, n) => A3(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { createTheme as bM, Box as Ne, Typography as Xe, InputLabel as nv, FormControl as pi, Autocomplete as rv, TextField as tc, FormControlLabel as Ih, Checkbox as ov, FormLabel as vM, Button as Rn, styled as xM, Card as Ma, CardContent as jb, IconButton as $n, Radio as P3, FormHelperText as N3, RadioGroup as $3, Slider as L3, MenuItem as Dh, ListItemIcon as iv, Select as F3, Switch as B3, InputAdornment as V3, useMediaQuery as Fs, useTheme as Xn, Paper as za, List as wM, ListItem as Yf, ListItemButton as z3, Collapse as VC, TableRow as Jc, TableCell as Xc, CircularProgress as sv, Tooltip as $o, Divider as xs, TableContainer as H3, Table as W3, TableHead as j3, TableBody as U3, TablePagination as q3, Popper as av, Link as lv, DialogActions as xp, Dialog as K3, DialogTitle as Y3, DialogContent as G3, DialogContentText as J3, useScrollTrigger as X3, Zoom as Z3, Fab as Q3, Menu as eV, ListItemText as CM, Stepper as tV, Step as nV, StepLabel as rV, Chip as oV, Drawer as iV, MenuList as sV, Tabs as aV, Tab as lV, AppBar as cV, Toolbar as uV, Breadcrumbs as dV, Snackbar as fV, AlertTitle as pV } from "@mui/material";
5
- import { jsx as x, jsxs as Q, Fragment as Fn } from "react/jsx-runtime";
4
+ import { createTheme as bM, Box as Ne, Typography as Xe, InputLabel as nv, FormControl as pi, Autocomplete as rv, TextField as tc, FormControlLabel as Ih, Checkbox as ov, FormLabel as vM, Button as Rn, styled as xM, Card as Ma, CardContent as jb, IconButton as Wn, Radio as P3, FormHelperText as N3, RadioGroup as $3, Slider as L3, MenuItem as Dh, ListItemIcon as iv, Select as F3, Switch as B3, InputAdornment as V3, useMediaQuery as Fs, useTheme as Xn, Paper as za, List as wM, ListItem as Yf, ListItemButton as z3, Collapse as VC, TableRow as Jc, TableCell as Xc, CircularProgress as sv, Tooltip as $o, Divider as xs, TableContainer as H3, Table as W3, TableHead as j3, TableBody as U3, TablePagination as q3, Popper as av, Link as lv, DialogActions as xp, Dialog as K3, DialogTitle as Y3, DialogContent as G3, DialogContentText as J3, useScrollTrigger as X3, Zoom as Z3, Fab as Q3, Menu as eV, ListItemText as CM, Stepper as tV, Step as nV, StepLabel as rV, Chip as oV, Drawer as iV, MenuList as sV, Tabs as aV, Tab as lV, AppBar as cV, Toolbar as uV, Breadcrumbs as dV, Snackbar as fV, AlertTitle as pV } from "@mui/material";
5
+ import { jsx as x, jsxs as Q, Fragment as Ln } from "react/jsx-runtime";
6
6
  import * as D from "react";
7
7
  import He, { useContext as Zu, createContext as nc, useCallback as hr, useMemo as Xr, isValidElement as Gf, cloneElement as Jf, Children as hV, useRef as tn, useLayoutEffect as SM, useEffect as At, useState as ft, forwardRef as Ah, Component as mV, useDebugValue as TM, createRef as gV, memo as yV, createElement as bV, version as zC, useImperativeHandle as kM } from "react";
8
8
  import { useField as Zn, useFormikContext as EM, Formik as cv, Form as OM, FieldArray as vV } from "formik";
@@ -176,7 +176,7 @@ const kV = "0px", EV = "600px", OV = "960px", MV = "1100px", _V = "1536px", RV =
176
176
  typography_overline_fontSize: TH,
177
177
  typography_overline_lineHeight: kH,
178
178
  typography_overline_letterSpacing: EH
179
- }, Hn = {
179
+ }, zn = {
180
180
  breakpoints: {
181
181
  values: {
182
182
  xs: parseInt(pe.breakpoints_xs),
@@ -376,6 +376,16 @@ const kV = "0px", EV = "600px", OV = "960px", MV = "1100px", _V = "1536px", RV =
376
376
  })
377
377
  }
378
378
  },
379
+ MuiTableCell: {
380
+ styleOverrides: {
381
+ head: ({ theme: t }) => ({
382
+ // for help (?) icon tooltips
383
+ "& .MuiSvgIcon-root": {
384
+ color: t.palette.grey[300]
385
+ }
386
+ })
387
+ }
388
+ },
379
389
  MuiTooltip: {
380
390
  styleOverrides: {
381
391
  tooltip: {
@@ -388,9 +398,9 @@ const kV = "0px", EV = "600px", OV = "960px", MV = "1100px", _V = "1536px", RV =
388
398
  };
389
399
  var YO, GO, JO, XO, ZO, QO, eM, tM, nM, rM, oM, iM;
390
400
  const Ipe = bM({
391
- ...Hn,
401
+ ...zn,
392
402
  palette: {
393
- ...Hn.palette,
403
+ ...zn.palette,
394
404
  mode: "light",
395
405
  primary: {
396
406
  light: pe.light_palette_primary_light,
@@ -434,23 +444,23 @@ const Ipe = bM({
434
444
  }
435
445
  },
436
446
  components: {
437
- ...Hn.components,
447
+ ...zn.components,
438
448
  MuiAppBar: {
439
- ...(YO = Hn.components) == null ? void 0 : YO.MuiAppBar,
449
+ ...(YO = zn.components) == null ? void 0 : YO.MuiAppBar,
440
450
  styleOverrides: {
441
- ...(JO = (GO = Hn.components) == null ? void 0 : GO.MuiAppBar) == null ? void 0 : JO.styleOverrides,
451
+ ...(JO = (GO = zn.components) == null ? void 0 : GO.MuiAppBar) == null ? void 0 : JO.styleOverrides,
442
452
  root: {
443
- ...(QO = (ZO = (XO = Hn.components) == null ? void 0 : XO.MuiAppBar) == null ? void 0 : ZO.styleOverrides) == null ? void 0 : QO.root,
453
+ ...(QO = (ZO = (XO = zn.components) == null ? void 0 : XO.MuiAppBar) == null ? void 0 : ZO.styleOverrides) == null ? void 0 : QO.root,
444
454
  backgroundColor: pe.light_palette_background_appBar
445
455
  }
446
456
  }
447
457
  },
448
458
  MuiCard: {
449
- ...(eM = Hn.components) == null ? void 0 : eM.MuiCard,
459
+ ...(eM = zn.components) == null ? void 0 : eM.MuiCard,
450
460
  styleOverrides: {
451
- ...(nM = (tM = Hn.components) == null ? void 0 : tM.MuiCard) == null ? void 0 : nM.styleOverrides,
461
+ ...(nM = (tM = zn.components) == null ? void 0 : tM.MuiCard) == null ? void 0 : nM.styleOverrides,
452
462
  root: {
453
- ...(iM = (oM = (rM = Hn.components) == null ? void 0 : rM.MuiCard) == null ? void 0 : oM.styleOverrides) == null ? void 0 : iM.root,
463
+ ...(iM = (oM = (rM = zn.components) == null ? void 0 : rM.MuiCard) == null ? void 0 : oM.styleOverrides) == null ? void 0 : iM.root,
454
464
  borderColor: pe.light_palette_divider_default
455
465
  }
456
466
  }
@@ -459,9 +469,9 @@ const Ipe = bM({
459
469
  });
460
470
  var sM, aM, lM, cM, uM, dM, fM, pM, hM, mM, gM, yM;
461
471
  const Dpe = bM({
462
- ...Hn,
472
+ ...zn,
463
473
  palette: {
464
- ...Hn.palette,
474
+ ...zn.palette,
465
475
  mode: "dark",
466
476
  primary: {
467
477
  light: pe.dark_palette_primary_light,
@@ -505,24 +515,24 @@ const Dpe = bM({
505
515
  }
506
516
  },
507
517
  components: {
508
- ...Hn.components,
518
+ ...zn.components,
509
519
  MuiAppBar: {
510
- ...(sM = Hn.components) == null ? void 0 : sM.MuiAppBar,
520
+ ...(sM = zn.components) == null ? void 0 : sM.MuiAppBar,
511
521
  styleOverrides: {
512
- ...(lM = (aM = Hn.components) == null ? void 0 : aM.MuiAppBar) == null ? void 0 : lM.styleOverrides,
522
+ ...(lM = (aM = zn.components) == null ? void 0 : aM.MuiAppBar) == null ? void 0 : lM.styleOverrides,
513
523
  root: {
514
- ...(dM = (uM = (cM = Hn.components) == null ? void 0 : cM.MuiAppBar) == null ? void 0 : uM.styleOverrides) == null ? void 0 : dM.root,
524
+ ...(dM = (uM = (cM = zn.components) == null ? void 0 : cM.MuiAppBar) == null ? void 0 : uM.styleOverrides) == null ? void 0 : dM.root,
515
525
  backgroundColor: pe.dark_palette_background_appBar,
516
526
  backgroundImage: "none"
517
527
  }
518
528
  }
519
529
  },
520
530
  MuiCard: {
521
- ...(fM = Hn.components) == null ? void 0 : fM.MuiCard,
531
+ ...(fM = zn.components) == null ? void 0 : fM.MuiCard,
522
532
  styleOverrides: {
523
- ...(hM = (pM = Hn.components) == null ? void 0 : pM.MuiCard) == null ? void 0 : hM.styleOverrides,
533
+ ...(hM = (pM = zn.components) == null ? void 0 : pM.MuiCard) == null ? void 0 : hM.styleOverrides,
524
534
  root: {
525
- ...(yM = (gM = (mM = Hn.components) == null ? void 0 : mM.MuiCard) == null ? void 0 : gM.styleOverrides) == null ? void 0 : yM.root,
535
+ ...(yM = (gM = (mM = zn.components) == null ? void 0 : mM.MuiCard) == null ? void 0 : gM.styleOverrides) == null ? void 0 : yM.root,
526
536
  borderColor: pe.dark_palette_divider_default
527
537
  }
528
538
  }
@@ -1580,16 +1590,16 @@ function cu(t, e) {
1580
1590
  t.type.muiName ?? ((o = (r = (n = t.type) == null ? void 0 : n._payload) == null ? void 0 : r.value) == null ? void 0 : o.muiName)
1581
1591
  ) !== -1;
1582
1592
  }
1583
- function Ln(t) {
1593
+ function $n(t) {
1584
1594
  return t && t.ownerDocument || document;
1585
1595
  }
1586
1596
  function qi(t) {
1587
- return Ln(t).defaultView || window;
1597
+ return $n(t).defaultView || window;
1588
1598
  }
1589
1599
  function sS(t, e) {
1590
1600
  typeof t == "function" ? t(e) : t && (t.current = e);
1591
1601
  }
1592
- const Bn = typeof window < "u" ? D.useLayoutEffect : D.useEffect;
1602
+ const Fn = typeof window < "u" ? D.useLayoutEffect : D.useEffect;
1593
1603
  let aS = 0;
1594
1604
  function UH(t) {
1595
1605
  const [e, n] = D.useState(t), r = t || e;
@@ -1642,7 +1652,7 @@ function si({
1642
1652
  }
1643
1653
  function Ve(t) {
1644
1654
  const e = D.useRef(t);
1645
- return Bn(() => {
1655
+ return Fn(() => {
1646
1656
  e.current = t;
1647
1657
  }), D.useRef((...n) => (
1648
1658
  // @ts-expect-error hide `this`
@@ -3361,7 +3371,7 @@ function i_({
3361
3371
  }
3362
3372
  function vj(t, e, n, r, o) {
3363
3373
  const [i, s] = D.useState(() => o && n ? n(t).matches : r ? r(t).matches : e);
3364
- return Bn(() => {
3374
+ return Fn(() => {
3365
3375
  if (!n)
3366
3376
  return;
3367
3377
  const a = n(t), l = () => {
@@ -8427,7 +8437,7 @@ class Aa extends yr {
8427
8437
  }
8428
8438
  }
8429
8439
  yr.jsonID("removeNodeMark", Aa);
8430
- class Wn extends yr {
8440
+ class Hn extends yr {
8431
8441
  /**
8432
8442
  The given `slice` should fit the 'gap' between `from` and
8433
8443
  `to`—the depths must line up, and the surrounding nodes must be
@@ -8447,21 +8457,21 @@ class Wn extends yr {
8447
8457
  return new Ur([this.from, this.to - this.from, this.slice.size]);
8448
8458
  }
8449
8459
  invert(e) {
8450
- return new Wn(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
8460
+ return new Hn(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
8451
8461
  }
8452
8462
  map(e) {
8453
8463
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
8454
- return n.deletedAcross && r.deletedAcross ? null : new Wn(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
8464
+ return n.deletedAcross && r.deletedAcross ? null : new Hn(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
8455
8465
  }
8456
8466
  merge(e) {
8457
- if (!(e instanceof Wn) || e.structure || this.structure)
8467
+ if (!(e instanceof Hn) || e.structure || this.structure)
8458
8468
  return null;
8459
8469
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
8460
8470
  let n = this.slice.size + e.slice.size == 0 ? Le.empty : new Le(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
8461
- return new Wn(this.from, this.to + (e.to - e.from), n, this.structure);
8471
+ return new Hn(this.from, this.to + (e.to - e.from), n, this.structure);
8462
8472
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
8463
8473
  let n = this.slice.size + e.slice.size == 0 ? Le.empty : new Le(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
8464
- return new Wn(e.from, this.to, n, this.structure);
8474
+ return new Hn(e.from, this.to, n, this.structure);
8465
8475
  } else
8466
8476
  return null;
8467
8477
  }
@@ -8475,10 +8485,10 @@ class Wn extends yr {
8475
8485
  static fromJSON(e, n) {
8476
8486
  if (typeof n.from != "number" || typeof n.to != "number")
8477
8487
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
8478
- return new Wn(n.from, n.to, Le.fromJSON(e, n.slice), !!n.structure);
8488
+ return new Hn(n.from, n.to, Le.fromJSON(e, n.slice), !!n.structure);
8479
8489
  }
8480
8490
  }
8481
- yr.jsonID("replace", Wn);
8491
+ yr.jsonID("replace", Hn);
8482
8492
  class Gn extends yr {
8483
8493
  /**
8484
8494
  Create a replace-around step with the given range and gap.
@@ -8595,7 +8605,7 @@ function vv(t, e, n, r = n.contentMatch, o = !0) {
8595
8605
  for (let l = 0; l < i.childCount; l++) {
8596
8606
  let u = i.child(l), f = a + u.nodeSize, p = r.matchType(u.type);
8597
8607
  if (!p)
8598
- s.push(new Wn(a, f, Le.empty));
8608
+ s.push(new Hn(a, f, Le.empty));
8599
8609
  else {
8600
8610
  r = p;
8601
8611
  for (let m = 0; m < u.marks.length; m++)
@@ -8603,7 +8613,7 @@ function vv(t, e, n, r = n.contentMatch, o = !0) {
8603
8613
  if (o && u.isText && n.whitespace != "pre") {
8604
8614
  let m, y = /\r?\n|\r/g, b;
8605
8615
  for (; m = y.exec(u.text); )
8606
- b || (b = new Le(Ee.from(n.schema.text(" ", n.allowedMarks(u.marks))), 0, 0)), s.push(new Wn(a + m.index, a + m.index + m[0].length, b));
8616
+ b || (b = new Le(Ee.from(n.schema.text(" ", n.allowedMarks(u.marks))), 0, 0)), s.push(new Hn(a + m.index, a + m.index + m[0].length, b));
8607
8617
  }
8608
8618
  }
8609
8619
  a = f;
@@ -8753,7 +8763,7 @@ function c9(t, e, n = 1, r) {
8753
8763
  let f = r && r[u];
8754
8764
  s = Ee.from(f ? f.type.create(f.attrs, s) : o.node(a).copy(s));
8755
8765
  }
8756
- t.step(new Wn(e, e, new Le(i.append(s), n, n), !0));
8766
+ t.step(new Hn(e, e, new Le(i.append(s), n, n), !0));
8757
8767
  }
8758
8768
  function Vs(t, e) {
8759
8769
  let n = t.resolve(e), r = n.index();
@@ -8796,7 +8806,7 @@ function d9(t, e, n) {
8796
8806
  }
8797
8807
  s.inlineContent && vv(t, e + n - 1, s, i.node().contentMatchAt(i.index()), r == null);
8798
8808
  let l = t.mapping.slice(a), u = l.map(e - n);
8799
- if (t.step(new Wn(u, l.map(e + n, -1), Le.empty, !0)), r === !0) {
8809
+ if (t.step(new Hn(u, l.map(e + n, -1), Le.empty, !0)), r === !0) {
8800
8810
  let f = t.doc.resolve(u);
8801
8811
  U_(t, f.node(), f.before(), t.steps.length);
8802
8812
  }
@@ -8849,7 +8859,7 @@ function Xh(t, e, n = e, r = Le.empty) {
8849
8859
  if (e == n && !r.size)
8850
8860
  return null;
8851
8861
  let o = t.resolve(e), i = t.resolve(n);
8852
- return G_(o, i, r) ? new Wn(e, n, r) : new p9(o, i, r).fit();
8862
+ return G_(o, i, r) ? new Hn(e, n, r) : new p9(o, i, r).fit();
8853
8863
  }
8854
8864
  function G_(t, e, n) {
8855
8865
  return !n.openStart && !n.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), n.content);
@@ -8882,7 +8892,7 @@ class p9 {
8882
8892
  for (; s && a && i.childCount == 1; )
8883
8893
  i = i.firstChild.content, s--, a--;
8884
8894
  let l = new Le(i, s, a);
8885
- return e > -1 ? new Gn(r.pos, e, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new Wn(r.pos, o.pos, l) : null;
8895
+ return e > -1 ? new Gn(r.pos, e, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new Hn(r.pos, o.pos, l) : null;
8886
8896
  }
8887
8897
  // Find a position on the start spine of `this.unplaced` that has
8888
8898
  // content that can be moved somewhere on the frontier. Returns two
@@ -9039,7 +9049,7 @@ function g9(t, e, n, r) {
9039
9049
  return t.deleteRange(e, n);
9040
9050
  let o = t.doc.resolve(e), i = t.doc.resolve(n);
9041
9051
  if (G_(o, i, r))
9042
- return t.step(new Wn(e, n, r));
9052
+ return t.step(new Hn(e, n, r));
9043
9053
  let s = Z_(o, i);
9044
9054
  s[s.length - 1] == 0 && s.pop();
9045
9055
  let a = -(o.depth + 1);
@@ -9817,7 +9827,7 @@ function US(t, e, n) {
9817
9827
  if (r < e)
9818
9828
  return;
9819
9829
  let o = t.steps[r];
9820
- if (!(o instanceof Wn || o instanceof Gn))
9830
+ if (!(o instanceof Hn || o instanceof Gn))
9821
9831
  return;
9822
9832
  let i = t.mapping.maps[r], s;
9823
9833
  i.forEach((a, l, u, f) => {
@@ -14210,7 +14220,7 @@ function B2(t, e, n) {
14210
14220
  a = f;
14211
14221
  }
14212
14222
  let u = Xh(t.doc, i, l, Le.empty);
14213
- if (!u || u.from != i || u instanceof Wn && u.slice.size >= l - i)
14223
+ if (!u || u.from != i || u instanceof Hn && u.slice.size >= l - i)
14214
14224
  return !1;
14215
14225
  if (n) {
14216
14226
  let f = t.tr.step(u);
@@ -14765,7 +14775,7 @@ function G2(t) {
14765
14775
  });
14766
14776
  }), e;
14767
14777
  }
14768
- function Vn(t, e) {
14778
+ function Bn(t, e) {
14769
14779
  if (typeof t == "string") {
14770
14780
  if (!e.nodes[t])
14771
14781
  throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);
@@ -15403,7 +15413,7 @@ class Ol {
15403
15413
  options: r.options,
15404
15414
  storage: r.storage,
15405
15415
  editor: e,
15406
- type: Vn(r.name, this.schema)
15416
+ type: Bn(r.name, this.schema)
15407
15417
  }, s = Ue(r, "addNodeView", i);
15408
15418
  if (!s)
15409
15419
  return [];
@@ -15567,7 +15577,7 @@ const q7 = xn.create({
15567
15577
  }
15568
15578
  return !1;
15569
15579
  }, eU = (t) => ({ tr: e, state: n, dispatch: r }) => {
15570
- const o = Vn(t, n.schema), i = e.selection.$anchor;
15580
+ const o = Bn(t, n.schema), i = e.selection.$anchor;
15571
15581
  for (let s = i.depth; s > 0; s -= 1)
15572
15582
  if (i.node(s).type === o) {
15573
15583
  if (r) {
@@ -15749,7 +15759,7 @@ function uU(t, e, n) {
15749
15759
  if (r < e)
15750
15760
  return;
15751
15761
  const o = t.steps[r];
15752
- if (!(o instanceof Wn || o instanceof Gn))
15762
+ if (!(o instanceof Hn || o instanceof Gn))
15753
15763
  return;
15754
15764
  const i = t.mapping.maps[r];
15755
15765
  let s = 0;
@@ -15878,7 +15888,7 @@ const CU = (t) => ({ editor: e, view: n, tr: r, dispatch: o }) => {
15878
15888
  }), !0;
15879
15889
  };
15880
15890
  function Bu(t, e, n = {}) {
15881
- const { from: r, to: o, empty: i } = t.selection, s = e ? Vn(e, t.schema) : null, a = [];
15891
+ const { from: r, to: o, empty: i } = t.selection, s = e ? Bn(e, t.schema) : null, a = [];
15882
15892
  t.doc.nodesBetween(r, o, (p, m) => {
15883
15893
  if (p.isText)
15884
15894
  return;
@@ -15893,10 +15903,10 @@ function Bu(t, e, n = {}) {
15893
15903
  return i ? !!u.length : u.reduce((p, m) => p + m.to - m.from, 0) >= l;
15894
15904
  }
15895
15905
  const SU = (t, e = {}) => ({ state: n, dispatch: r }) => {
15896
- const o = Vn(t, n.schema);
15906
+ const o = Bn(t, n.schema);
15897
15907
  return Bu(n, o, e) ? m7(n, r) : !1;
15898
15908
  }, TU = () => ({ state: t, dispatch: e }) => q2(t, e), kU = (t) => ({ state: e, dispatch: n }) => {
15899
- const r = Vn(t, e.schema);
15909
+ const r = Bn(t, e.schema);
15900
15910
  return O7(r)(e, n);
15901
15911
  }, EU = () => ({ state: t, dispatch: e }) => j2(t, e);
15902
15912
  function sd(t, e) {
@@ -15909,7 +15919,7 @@ function AT(t, e) {
15909
15919
  const OU = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
15910
15920
  let i = null, s = null;
15911
15921
  const a = sd(typeof t == "string" ? t : t.name, r.schema);
15912
- return a ? (a === "node" && (i = Vn(t, r.schema)), a === "mark" && (s = Vo(t, r.schema)), o && n.selection.ranges.forEach((l) => {
15922
+ return a ? (a === "node" && (i = Bn(t, r.schema)), a === "mark" && (s = Vo(t, r.schema)), o && n.selection.ranges.forEach((l) => {
15913
15923
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (u, f) => {
15914
15924
  i && i === u.type && n.setNodeMarkup(f, void 0, AT(u.attrs, e)), s && u.marks.length && u.marks.forEach((p) => {
15915
15925
  s === p.type && n.addMark(f, f + u.nodeSize, s.create(AT(p.attrs, e)));
@@ -16000,7 +16010,7 @@ function iR(t, e) {
16000
16010
  return X2(t, n, e);
16001
16011
  }
16002
16012
  function BU(t, e) {
16003
- const n = Vn(e, t.schema), { from: r, to: o } = t.selection, i = [];
16013
+ const n = Bn(e, t.schema), { from: r, to: o } = t.selection, i = [];
16004
16014
  t.doc.nodesBetween(r, o, (a) => {
16005
16015
  i.push(a);
16006
16016
  });
@@ -16200,7 +16210,7 @@ const UU = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
16200
16210
  });
16201
16211
  return jU(r, n, l);
16202
16212
  }, qU = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), KU = (t, e = {}) => ({ state: n, dispatch: r, chain: o }) => {
16203
- const i = Vn(t, n.schema);
16213
+ const i = Bn(t, n.schema);
16204
16214
  let s;
16205
16215
  return n.selection.$anchor.sameParent(n.selection.$head) && (s = n.selection.$anchor.parent.attrs), i.isTextblock ? o().command(({ commands: a }) => MT(i, { ...s, ...e })(n) ? !0 : a.clearNodes()).command(({ state: a }) => MT(i, { ...s, ...e })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
16206
16216
  }, YU = (t) => ({ tr: e, dispatch: n }) => {
@@ -16216,7 +16226,7 @@ const UU = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
16216
16226
  }
16217
16227
  return !0;
16218
16228
  }, JU = (t) => ({ state: e, dispatch: n }) => {
16219
- const r = Vn(t, e.schema);
16229
+ const r = Bn(t, e.schema);
16220
16230
  return R7(r)(e, n);
16221
16231
  };
16222
16232
  function NT(t, e) {
@@ -16254,7 +16264,7 @@ const XU = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
16254
16264
  return b;
16255
16265
  }, ZU = (t, e = {}) => ({ tr: n, state: r, dispatch: o, editor: i }) => {
16256
16266
  var s;
16257
- const a = Vn(t, r.schema), { $from: l, $to: u } = r.selection, f = r.selection.node;
16267
+ const a = Bn(t, r.schema), { $from: l, $to: u } = r.selection, f = r.selection.node;
16258
16268
  if (f && f.isBlock || l.depth < 2 || !l.sameParent(u))
16259
16269
  return !1;
16260
16270
  const p = l.node(-1);
@@ -16326,7 +16336,7 @@ const XU = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
16326
16336
  const o = t.doc.nodeAt(r);
16327
16337
  return n.node.type === (o == null ? void 0 : o.type) && Vs(t.doc, r) && t.join(r), !0;
16328
16338
  }, QU = (t, e, n, r = {}) => ({ editor: o, tr: i, state: s, dispatch: a, chain: l, commands: u, can: f }) => {
16329
- const { extensions: p, splittableMarks: m } = o.extensionManager, y = Vn(t, s.schema), b = Vn(e, s.schema), { selection: g, storedMarks: v } = s, { $from: C, $to: k } = g, T = C.blockRange(k), S = v || g.$to.parentOffset && g.$from.marks();
16339
+ const { extensions: p, splittableMarks: m } = o.extensionManager, y = Bn(t, s.schema), b = Bn(e, s.schema), { selection: g, storedMarks: v } = s, { $from: C, $to: k } = g, T = C.blockRange(k), S = v || g.$to.parentOffset && g.$from.marks();
16330
16340
  if (!T)
16331
16341
  return !1;
16332
16342
  const O = Hv((R) => PT(R.type.name, p))(g);
@@ -16344,11 +16354,11 @@ const XU = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
16344
16354
  const { extendEmptyMarkRange: i = !1 } = n, s = Vo(t, r.schema);
16345
16355
  return p0(r, s, e) ? o.unsetMark(s, { extendEmptyMarkRange: i }) : o.setMark(s, e);
16346
16356
  }, tq = (t, e, n = {}) => ({ state: r, commands: o }) => {
16347
- const i = Vn(t, r.schema), s = Vn(e, r.schema), a = Bu(r, i, n);
16357
+ const i = Bn(t, r.schema), s = Bn(e, r.schema), a = Bu(r, i, n);
16348
16358
  let l;
16349
16359
  return r.selection.$anchor.sameParent(r.selection.$head) && (l = r.selection.$anchor.parent.attrs), a ? o.setNode(s, l) : o.setNode(i, { ...l, ...n });
16350
16360
  }, nq = (t, e = {}) => ({ state: n, commands: r }) => {
16351
- const o = Vn(t, n.schema);
16361
+ const o = Bn(t, n.schema);
16352
16362
  return Bu(n, o, e) ? r.lift(o) : r.wrapIn(o, e);
16353
16363
  }, rq = () => ({ state: t, dispatch: e }) => {
16354
16364
  const n = t.plugins;
@@ -16392,7 +16402,7 @@ const XU = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
16392
16402
  }, sq = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
16393
16403
  let i = null, s = null;
16394
16404
  const a = sd(typeof t == "string" ? t : t.name, r.schema);
16395
- return a ? (a === "node" && (i = Vn(t, r.schema)), a === "mark" && (s = Vo(t, r.schema)), o && n.selection.ranges.forEach((l) => {
16405
+ return a ? (a === "node" && (i = Bn(t, r.schema)), a === "mark" && (s = Vo(t, r.schema)), o && n.selection.ranges.forEach((l) => {
16396
16406
  const u = l.$from.pos, f = l.$to.pos;
16397
16407
  let p, m, y, b;
16398
16408
  n.selection.empty ? r.doc.nodesBetween(u, f, (g, v) => {
@@ -16421,10 +16431,10 @@ const XU = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
16421
16431
  }));
16422
16432
  }), !0) : !1;
16423
16433
  }, aq = (t, e = {}) => ({ state: n, dispatch: r }) => {
16424
- const o = Vn(t, n.schema);
16434
+ const o = Bn(t, n.schema);
16425
16435
  return S7(o, e)(n, r);
16426
16436
  }, lq = (t, e = {}) => ({ state: n, dispatch: r }) => {
16427
- const o = Vn(t, n.schema);
16437
+ const o = Bn(t, n.schema);
16428
16438
  return T7(o, e)(n, r);
16429
16439
  };
16430
16440
  var cq = /* @__PURE__ */ Object.freeze({
@@ -21222,9 +21232,9 @@ const Hu = /* @__PURE__ */ D.forwardRef(function(e, n) {
21222
21232
  container: o,
21223
21233
  disablePortal: i = !1
21224
21234
  } = e, [s, a] = D.useState(null), l = _t(/* @__PURE__ */ D.isValidElement(r) ? Wa(r) : null, n);
21225
- if (Bn(() => {
21235
+ if (Fn(() => {
21226
21236
  i || a(BY(o) || document.body);
21227
- }, [o, i]), Bn(() => {
21237
+ }, [o, i]), Fn(() => {
21228
21238
  if (s && !i)
21229
21239
  return sS(n, s), () => {
21230
21240
  sS(n, null);
@@ -21322,7 +21332,7 @@ const WY = (t) => {
21322
21332
  // prevent from spreading to DOM, it can come from the parent component e.g. Select.
21323
21333
  ...v
21324
21334
  } = e, C = D.useRef(null), k = _t(C, n), T = D.useRef(null), S = _t(T, p), O = D.useRef(S);
21325
- Bn(() => {
21335
+ Fn(() => {
21326
21336
  O.current = S;
21327
21337
  }, [S]), D.useImperativeHandle(p, () => T.current, []);
21328
21338
  const R = zY(u, i), [P, $] = D.useState(R), [V, M] = D.useState(Vp(r));
@@ -21330,7 +21340,7 @@ const WY = (t) => {
21330
21340
  T.current && T.current.forceUpdate();
21331
21341
  }), D.useEffect(() => {
21332
21342
  r && M(Vp(r));
21333
- }, [r]), Bn(() => {
21343
+ }, [r]), Fn(() => {
21334
21344
  if (!V || !l)
21335
21345
  return;
21336
21346
  const _ = (W) => {
@@ -21420,7 +21430,7 @@ const WY = (t) => {
21420
21430
  P = i;
21421
21431
  else if (r) {
21422
21432
  const M = Vp(r);
21423
- P = M && cm(M) ? Ln(M).body : Ln(null).body;
21433
+ P = M && cm(M) ? $n(M).body : $n(null).body;
21424
21434
  }
21425
21435
  const $ = !f && l && (!g || T) ? "none" : void 0, V = g ? {
21426
21436
  in: f,
@@ -22391,7 +22401,7 @@ const GR = /* @__PURE__ */ D.forwardRef(function(e, n) {
22391
22401
  const O = S.outerHeightStyle;
22392
22402
  m.current !== O && (m.current = O, T.style.height = `${O}px`), T.style.overflow = S.overflowing ? "hidden" : "";
22393
22403
  }, [b]), C = D.useRef(-1);
22394
- Bn(() => {
22404
+ Fn(() => {
22395
22405
  const T = NM(v), S = f == null ? void 0 : f.current;
22396
22406
  if (!S)
22397
22407
  return;
@@ -22405,7 +22415,7 @@ const GR = /* @__PURE__ */ D.forwardRef(function(e, n) {
22405
22415
  }), R.observe(S)), () => {
22406
22416
  T.clear(), cancelAnimationFrame(C.current), O.removeEventListener("resize", T), R && R.disconnect();
22407
22417
  };
22408
- }, [b, v, g]), Bn(() => {
22418
+ }, [b, v, g]), Fn(() => {
22409
22419
  v();
22410
22420
  });
22411
22421
  const k = (T) => {
@@ -22764,7 +22774,7 @@ const um = (t, e) => {
22764
22774
  const Ce = oe && oe.onFilled, Ie = oe && oe.onEmpty, Oe = D.useCallback((rt) => {
22765
22775
  Hp(rt) ? Ce && Ce() : Ie && Ie();
22766
22776
  }, [Ce, Ie]);
22767
- Bn(() => {
22777
+ Fn(() => {
22768
22778
  ee && Oe({
22769
22779
  value: de
22770
22780
  });
@@ -25530,7 +25540,7 @@ const QR = /* @__PURE__ */ D.forwardRef(function(e, n) {
25530
25540
  previousKeyMatched: !0,
25531
25541
  lastTime: null
25532
25542
  });
25533
- Bn(() => {
25543
+ Fn(() => {
25534
25544
  o && y.current.focus();
25535
25545
  }, [o]), D.useImperativeHandle(r, () => ({
25536
25546
  adjustStyleForScrollbar: (T, {
@@ -25550,7 +25560,7 @@ const QR = /* @__PURE__ */ D.forwardRef(function(e, n) {
25550
25560
  f && f(T);
25551
25561
  return;
25552
25562
  }
25553
- const P = Ln(S).activeElement;
25563
+ const P = $n(S).activeElement;
25554
25564
  if (O === "ArrowDown")
25555
25565
  T.preventDefault(), Vc(S, P, u, l, Fy);
25556
25566
  else if (O === "ArrowUp")
@@ -25825,7 +25835,7 @@ process.env.NODE_ENV !== "production" && (Ql.propTypes = {
25825
25835
  });
25826
25836
  Ql && (Ql.muiSupportAuto = !0);
25827
25837
  function LG(t) {
25828
- const e = Ln(t);
25838
+ const e = $n(t);
25829
25839
  return e.body === t ? qi(t).innerWidth > e.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
25830
25840
  }
25831
25841
  function bu(t, e) {
@@ -25859,7 +25869,7 @@ function BG(t, e) {
25859
25869
  property: "padding-right",
25860
25870
  el: r
25861
25871
  }), r.style.paddingRight = `${pk(r) + s}px`;
25862
- const a = Ln(r).querySelectorAll(".mui-fixed");
25872
+ const a = $n(r).querySelectorAll(".mui-fixed");
25863
25873
  [].forEach.call(a, (l) => {
25864
25874
  n.push({
25865
25875
  value: l.style.paddingRight,
@@ -25870,7 +25880,7 @@ function BG(t, e) {
25870
25880
  }
25871
25881
  let i;
25872
25882
  if (r.parentNode instanceof DocumentFragment)
25873
- i = Ln(r).body;
25883
+ i = $n(r).body;
25874
25884
  else {
25875
25885
  const s = r.parentElement, a = qi(r);
25876
25886
  i = (s == null ? void 0 : s.nodeName) === "HTML" && a.getComputedStyle(s).overflowY === "scroll" ? s : r;
@@ -25989,7 +25999,7 @@ function ju(t) {
25989
25999
  }, [n, a]), D.useEffect(() => {
25990
26000
  if (!a || !b.current)
25991
26001
  return;
25992
- const T = Ln(b.current);
26002
+ const T = $n(b.current);
25993
26003
  return b.current.contains(T.activeElement) || (b.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
25994
26004
  `)), b.current.setAttribute("tabIndex", "-1")), y.current && b.current.focus()), () => {
25995
26005
  o || (p.current && p.current.focus && (l.current = !0, p.current.focus()), p.current = null);
@@ -25997,7 +26007,7 @@ function ju(t) {
25997
26007
  }, [a]), D.useEffect(() => {
25998
26008
  if (!a || !b.current)
25999
26009
  return;
26000
- const T = Ln(b.current), S = (P) => {
26010
+ const T = $n(b.current), S = (P) => {
26001
26011
  v.current = P, !(r || !s() || P.key !== "Tab") && T.activeElement === b.current && P.shiftKey && (l.current = !0, f.current && f.current.focus());
26002
26012
  }, O = () => {
26003
26013
  var V, M;
@@ -26318,7 +26328,7 @@ function QG(t) {
26318
26328
  } = t, p = D.useRef({}), m = D.useRef(null), y = D.useRef(null), b = _t(y, f), [g, v] = D.useState(!u), C = ZG(a);
26319
26329
  let k = !0;
26320
26330
  (t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (k = !1);
26321
- const T = () => Ln(m.current), S = () => (p.current.modalRef = y.current, p.current.mount = m.current, p.current), O = () => {
26331
+ const T = () => $n(m.current), S = () => (p.current.modalRef = y.current, p.current.mount = m.current, p.current), O = () => {
26322
26332
  Of.mount(S(), {
26323
26333
  disableScrollLock: r
26324
26334
  }), y.current && (y.current.scrollTop = 0);
@@ -26830,7 +26840,7 @@ const iJ = (t) => {
26830
26840
  }, M = iJ(V), L = D.useCallback(() => {
26831
26841
  if (l === "anchorPosition")
26832
26842
  return process.env.NODE_ENV !== "production" && (a || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), a;
26833
- const ce = iu(i), me = ce && ce.nodeType === 1 ? ce : Ln($.current).body, J = me.getBoundingClientRect();
26843
+ const ce = iu(i), me = ce && ce.nodeType === 1 ? ce : $n($.current).body, J = me.getBoundingClientRect();
26834
26844
  if (process.env.NODE_ENV !== "production") {
26835
26845
  const Z = me.getBoundingClientRect();
26836
26846
  process.env.NODE_ENV !== "test" && Z.top === 0 && Z.left === 0 && Z.right === 0 && Z.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(`
@@ -26938,7 +26948,7 @@ const iJ = (t) => {
26938
26948
  }
26939
26949
  });
26940
26950
  S === "auto" && !K.muiSupportAuto && (q = void 0);
26941
- const le = p || (i ? Ln(iu(i)).body : void 0), [ae, {
26951
+ const le = p || (i ? $n(iu(i)).body : void 0), [ae, {
26942
26952
  slots: G,
26943
26953
  slotProps: re,
26944
26954
  ...de
@@ -27837,7 +27847,7 @@ const CJ = (t) => {
27837
27847
  }, [i]), D.useEffect(() => {
27838
27848
  if (!v)
27839
27849
  return;
27840
- const ke = Ln(ae.current).getElementById(v);
27850
+ const ke = $n(ae.current).getElementById(v);
27841
27851
  if (ke) {
27842
27852
  const ze = () => {
27843
27853
  getSelection().isCollapsed && ae.current.focus();
@@ -29106,7 +29116,7 @@ function ZJ(t) {
29106
29116
  f.current && f.current !== document.activeElement && (f.current.value = n);
29107
29117
  }, [n]);
29108
29118
  const p = (o ?? []).map((y) => typeof y == "string" ? { value: y } : y), m = i(n);
29109
- return Q(Fn, { children: [s ? x(YJ, { color: m ?? "#000000", className: ge([
29119
+ return Q(Ln, { children: [s ? x(YJ, { color: m ?? "#000000", className: ge([
29110
29120
  _f.gradientPicker,
29111
29121
  l.gradientPicker
29112
29122
  ]), onChange: (y) => {
@@ -30724,7 +30734,7 @@ function jp(t) {
30724
30734
  const f = _t(Wa(e), a), p = Ve((b) => {
30725
30735
  const g = u.current;
30726
30736
  u.current = !1;
30727
- const v = Ln(a.current);
30737
+ const v = $n(a.current);
30728
30738
  if (!l.current || !a.current || "clientX" in b && TX(b, v))
30729
30739
  return;
30730
30740
  if (s.current) {
@@ -30748,7 +30758,7 @@ function jp(t) {
30748
30758
  };
30749
30759
  return i !== !1 && (y[i] = m(i)), D.useEffect(() => {
30750
30760
  if (i !== !1) {
30751
- const b = kk(i), g = Ln(a.current), v = () => {
30761
+ const b = kk(i), g = $n(a.current), v = () => {
30752
30762
  s.current = !0;
30753
30763
  };
30754
30764
  return g.addEventListener(b, p), g.addEventListener("touchmove", v), () => {
@@ -30757,7 +30767,7 @@ function jp(t) {
30757
30767
  }
30758
30768
  }, [p, i]), r !== !1 && (y[r] = m(r)), D.useEffect(() => {
30759
30769
  if (r !== !1) {
30760
- const b = kk(r), g = Ln(a.current);
30770
+ const b = kk(r), g = $n(a.current);
30761
30771
  return g.addEventListener(b, p), () => {
30762
30772
  g.removeEventListener(b, p);
30763
30773
  };
@@ -31556,7 +31566,7 @@ function DX({ value: t, onCancel: e, onSave: n, swatchColors: r, labels: o = {},
31556
31566
  const { removeColorButton: s = "None", removeColorButtonTooltipTitle: a = "", cancelButton: l = "Cancel", saveButton: u = "OK" } = o, [f, p] = ft(t);
31557
31567
  return At(() => {
31558
31568
  p(t);
31559
- }, [t]), Q(Fn, { children: [x(ZJ, { swatchColors: r, value: f, onChange: (m) => {
31569
+ }, [t]), Q(Ln, { children: [x(ZJ, { swatchColors: r, value: f, onChange: (m) => {
31560
31570
  p(m);
31561
31571
  }, labels: o, ...i }), Q(SI, { direction: "row", justifyContent: "space-between", sx: { mt: 1 }, children: [x(b1, { title: a, arrow: !0, children: x(vo, { onClick: () => {
31562
31572
  n("");
@@ -32197,7 +32207,7 @@ function eZ({ ...t }) {
32197
32207
  }
32198
32208
  const tZ = Pe(
32199
32209
  // From https://boxicons.com/ (https://github.com/atisawd/boxicons)
32200
- Q(Fn, { children: [x("path", { d: "M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zM4 19V7h16l.002 12H4z" }), x("path", { d: "M9.293 9.293 5.586 13l3.707 3.707 1.414-1.414L8.414 13l2.293-2.293zm5.414 0-1.414 1.414L15.586 13l-2.293 2.293 1.414 1.414L18.414 13z" })] }),
32210
+ Q(Ln, { children: [x("path", { d: "M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zM4 19V7h16l.002 12H4z" }), x("path", { d: "M9.293 9.293 5.586 13l3.707 3.707 1.414-1.414L8.414 13l2.293-2.293zm5.414 0-1.414 1.414L15.586 13l-2.293 2.293 1.414 1.414L18.414 13z" })] }),
32201
32211
  "CodeBlock"
32202
32212
  ), nZ = Pe(
32203
32213
  // From https://remixicon.com/ (https://github.com/Remix-Design/RemixIcon)
@@ -32323,9 +32333,9 @@ function MI(t) {
32323
32333
  }, g = () => {
32324
32334
  y(null);
32325
32335
  }, { IconComponent: v, children: C, ...k } = p;
32326
- return Q(Fn, { children: [x(Et, { onClick: (T) => {
32336
+ return Q(Ln, { children: [x(Et, { onClick: (T) => {
32327
32337
  m ? g() : y(T.currentTarget);
32328
- }, "aria-describedby": a, ...k, children: C ?? Q(Fn, { children: [v && x(RZ, { as: v, ownerState: b, className: ge([
32338
+ }, "aria-describedby": a, ...k, children: C ?? Q(Ln, { children: [v && x(RZ, { as: v, ownerState: b, className: ge([
32329
32339
  Uy.icon,
32330
32340
  f.icon
32331
32341
  ]) }), !s && n && x(IZ, { ownerState: b, className: ge([
@@ -32468,7 +32478,7 @@ function BZ(t, e) {
32468
32478
  }), s.filter((a) => a.type.name === n.name).map((a) => ({ ...a.attrs }));
32469
32479
  }
32470
32480
  function VZ(t, e) {
32471
- const n = Vn(e, t.schema), { from: r, to: o } = t.selection, i = [];
32481
+ const n = Bn(e, t.schema), { from: r, to: o } = t.selection, i = [];
32472
32482
  return t.doc.nodesBetween(r, o, (s) => {
32473
32483
  i.push(s);
32474
32484
  }), i.reverse().filter((s) => s.type.name === n.name).map((s) => ({ ...s.attrs }));
@@ -32526,7 +32536,7 @@ function KZ({ onUploadFiles: t, inputProps: e, insertImages: n = _0, ...r }) {
32526
32536
  images: l
32527
32537
  });
32528
32538
  };
32529
- return Q(Fn, { children: [x(eZ, { tooltipLabel: "Upload images", onClick: () => {
32539
+ return Q(Ln, { children: [x(eZ, { tooltipLabel: "Upload images", onClick: () => {
32530
32540
  var a;
32531
32541
  return (a = i.current) === null || a === void 0 ? void 0 : a.click();
32532
32542
  }, ...r }), x("input", { ref: i, type: "file", accept: "image/*", multiple: !0, onChange: async (a) => {
@@ -33210,7 +33220,7 @@ const Hc = je("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divi
33210
33220
  dense: s || b.dense || !1,
33211
33221
  disableGutters: l
33212
33222
  }), [b.dense, s, l]), v = D.useRef(null);
33213
- Bn(() => {
33223
+ Fn(() => {
33214
33224
  o && (v.current ? v.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
33215
33225
  }, [o]);
33216
33226
  const C = {
@@ -40223,7 +40233,7 @@ function vre() {
40223
40233
  }), E;
40224
40234
  }
40225
40235
  function aw(d, h) {
40226
- return d && qo(h, zn(h), d);
40236
+ return d && qo(h, Vn(h), d);
40227
40237
  }
40228
40238
  function v$(d, h) {
40229
40239
  return d && qo(h, _r(h), d);
@@ -40276,13 +40286,13 @@ function vre() {
40276
40286
  }) : SC(d) && d.forEach(function(nt, xt) {
40277
40287
  Y.set(xt, io(nt, h, w, xt, d, U));
40278
40288
  });
40279
- var tt = Se ? ue ? $g : Ng : ue ? _r : zn, ht = Te ? n : tt(d);
40289
+ var tt = Se ? ue ? $g : Ng : ue ? _r : Vn, ht = Te ? n : tt(d);
40280
40290
  return no(ht || d, function(nt, xt) {
40281
40291
  ht && (xt = nt, nt = d[xt]), Tc(Y, xt, io(nt, h, w, xt, d, U));
40282
40292
  }), Y;
40283
40293
  }
40284
40294
  function x$(d) {
40285
- var h = zn(d);
40295
+ var h = Vn(d);
40286
40296
  return function(w) {
40287
40297
  return lw(w, d, h);
40288
40298
  };
@@ -40359,10 +40369,10 @@ function vre() {
40359
40369
  }
40360
40370
  var yg = Lw(), fw = Lw(!0);
40361
40371
  function Uo(d, h) {
40362
- return d && yg(d, h, zn);
40372
+ return d && yg(d, h, Vn);
40363
40373
  }
40364
40374
  function bg(d, h) {
40365
- return d && fw(d, h, zn);
40375
+ return d && fw(d, h, Vn);
40366
40376
  }
40367
40377
  function jd(d, h) {
40368
40378
  return es(h, function(w) {
@@ -41007,7 +41017,7 @@ function vre() {
41007
41017
  var N = zt(h);
41008
41018
  if (!Mr(h)) {
41009
41019
  var U = Qe(w, 3);
41010
- h = zn(h), w = function(X) {
41020
+ h = Vn(h), w = function(X) {
41011
41021
  return U(N[X], X, N);
41012
41022
  };
41013
41023
  }
@@ -41299,7 +41309,7 @@ function vre() {
41299
41309
  return Wg(Qw(d, n, lC), d + "");
41300
41310
  }
41301
41311
  function Ng(d) {
41302
- return pw(d, zn, Bg);
41312
+ return pw(d, Vn, Bg);
41303
41313
  }
41304
41314
  function $g(d) {
41305
41315
  return pw(d, _r, Yw);
@@ -41328,7 +41338,7 @@ function vre() {
41328
41338
  return dL(h) ? w[typeof h == "string" ? "string" : "hash"] : w.map;
41329
41339
  }
41330
41340
  function Fg(d) {
41331
- for (var h = zn(d), w = h.length; w--; ) {
41341
+ for (var h = Vn(d), w = h.length; w--; ) {
41332
41342
  var E = h[w], N = d[E];
41333
41343
  h[w] = [E, N, Xw(N)];
41334
41344
  }
@@ -42251,7 +42261,7 @@ function vre() {
42251
42261
  return h = typeof h == "function" ? h : n, io(d, p | y, h);
42252
42262
  }
42253
42263
  function g5(d, h) {
42254
- return h == null || lw(d, h, zn(h));
42264
+ return h == null || lw(d, h, Vn(h));
42255
42265
  }
42256
42266
  function Do(d, h) {
42257
42267
  return d === h || d !== d && h !== h;
@@ -42436,7 +42446,7 @@ function vre() {
42436
42446
  }
42437
42447
  var V5 = rl(function(d, h) {
42438
42448
  if (Rc(h) || Mr(h)) {
42439
- qo(h, zn(h), d);
42449
+ qo(h, Vn(h), d);
42440
42450
  return;
42441
42451
  }
42442
42452
  for (var w in h)
@@ -42446,7 +42456,7 @@ function vre() {
42446
42456
  }), uf = rl(function(d, h, w, E) {
42447
42457
  qo(h, _r(h), d, E);
42448
42458
  }), z5 = rl(function(d, h, w, E) {
42449
- qo(h, zn(h), d, E);
42459
+ qo(h, Vn(h), d, E);
42450
42460
  }), H5 = wi(gg);
42451
42461
  function W5(d, h) {
42452
42462
  var w = nl(d);
@@ -42483,7 +42493,7 @@ function vre() {
42483
42493
  return d && bg(d, Qe(h, 3));
42484
42494
  }
42485
42495
  function Z5(d) {
42486
- return d == null ? [] : jd(d, zn(d));
42496
+ return d == null ? [] : jd(d, Vn(d));
42487
42497
  }
42488
42498
  function Q5(d) {
42489
42499
  return d == null ? [] : jd(d, _r(d));
@@ -42503,7 +42513,7 @@ function vre() {
42503
42513
  }, Qg(Rr)), nB = zw(function(d, h, w) {
42504
42514
  h != null && typeof h.toString != "function" && (h = Id.call(h)), Ft.call(d, h) ? d[h].push(w) : d[h] = [w];
42505
42515
  }, Qe), rB = yt(Ec);
42506
- function zn(d) {
42516
+ function Vn(d) {
42507
42517
  return Mr(d) ? iw(d) : Cg(d);
42508
42518
  }
42509
42519
  function _r(d) {
@@ -42568,7 +42578,7 @@ function vre() {
42568
42578
  function fB(d, h, w, E) {
42569
42579
  return E = typeof E == "function" ? E : n, d == null ? d : Mc(d, h, w, E);
42570
42580
  }
42571
- var DC = jw(zn), AC = jw(_r);
42581
+ var DC = jw(Vn), AC = jw(_r);
42572
42582
  function pB(d, h, w) {
42573
42583
  var E = dt(d), N = E || cs(d) || sl(d);
42574
42584
  if (h = Qe(h, 4), w == null) {
@@ -42589,7 +42599,7 @@ function vre() {
42589
42599
  return E = typeof E == "function" ? E : n, d == null ? d : Ow(d, h, Ig(w), E);
42590
42600
  }
42591
42601
  function al(d) {
42592
- return d == null ? [] : cg(d, zn(d));
42602
+ return d == null ? [] : cg(d, Vn(d));
42593
42603
  }
42594
42604
  function yB(d) {
42595
42605
  return d == null ? [] : cg(d, _r(d));
@@ -42681,7 +42691,7 @@ function vre() {
42681
42691
  function FB(d, h, w) {
42682
42692
  var E = H.templateSettings;
42683
42693
  w && vr(d, h, w) && (h = n), d = Nt(d), h = uf({}, h, E, Uw);
42684
- var N = uf({}, h.imports, E.imports, Uw), U = zn(N), Y = cg(N, U), X, ue, Se = 0, Te = h.interpolate || Cd, Me = "__p += '", Fe = dg(
42694
+ var N = uf({}, h.imports, E.imports, Uw), U = Vn(N), Y = cg(N, U), X, ue, Se = 0, Te = h.interpolate || Cd, Me = "__p += '", Fe = dg(
42685
42695
  (h.escape || Cd).source + "|" + Te.source + "|" + (Te === at ? yP : Cd).source + "|" + (h.evaluate || Cd).source + "|$",
42686
42696
  "g"
42687
42697
  ), Ge = "//# sourceURL=" + (Ft.call(h, "sourceURL") ? (h.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++KP + "]") + `
@@ -42849,8 +42859,8 @@ function print() { __p += __j.call(arguments, '') }
42849
42859
  };
42850
42860
  });
42851
42861
  function ty(d, h, w) {
42852
- var E = zn(h), N = jd(h, E);
42853
- w == null && !(on(h) && (N.length || !E.length)) && (w = h, h = d, d = this, N = jd(h, zn(h)));
42862
+ var E = Vn(h), N = jd(h, E);
42863
+ w == null && !(on(h) && (N.length || !E.length)) && (w = h, h = d, d = this, N = jd(h, Vn(h)));
42854
42864
  var U = !(on(w) && "chain" in w) || !!w.chain, Y = Si(d);
42855
42865
  return no(N, function(X) {
42856
42866
  var ue = h[X];
@@ -42949,7 +42959,7 @@ function print() { __p += __j.call(arguments, '') }
42949
42959
  function I3(d, h) {
42950
42960
  return d && d.length ? ag(d, Qe(h, 2)) : 0;
42951
42961
  }
42952
- return H.after = QF, H.ary = mC, H.assign = V5, H.assignIn = _C, H.assignInWith = uf, H.assignWith = z5, H.at = H5, H.before = gC, H.bind = qg, H.bindAll = KB, H.bindKey = yC, H.castArray = d5, H.chain = fC, H.chunk = xL, H.compact = wL, H.concat = CL, H.cond = YB, H.conforms = GB, H.constant = Qg, H.countBy = RF, H.create = W5, H.curry = bC, H.curryRight = vC, H.debounce = xC, H.defaults = j5, H.defaultsDeep = U5, H.defer = e5, H.delay = t5, H.difference = SL, H.differenceBy = TL, H.differenceWith = kL, H.drop = EL, H.dropRight = OL, H.dropRightWhile = ML, H.dropWhile = _L, H.fill = RL, H.filter = DF, H.flatMap = NF, H.flatMapDeep = $F, H.flatMapDepth = LF, H.flatten = lC, H.flattenDeep = IL, H.flattenDepth = DL, H.flip = n5, H.flow = XB, H.flowRight = ZB, H.fromPairs = AL, H.functions = Z5, H.functionsIn = Q5, H.groupBy = FF, H.initial = NL, H.intersection = $L, H.intersectionBy = LL, H.intersectionWith = FL, H.invert = tB, H.invertBy = nB, H.invokeMap = VF, H.iteratee = ey, H.keyBy = zF, H.keys = zn, H.keysIn = _r, H.map = rf, H.mapKeys = oB, H.mapValues = iB, H.matches = QB, H.matchesProperty = e3, H.memoize = sf, H.merge = sB, H.mergeWith = RC, H.method = t3, H.methodOf = n3, H.mixin = ty, H.negate = af, H.nthArg = o3, H.omit = aB, H.omitBy = lB, H.once = r5, H.orderBy = HF, H.over = i3, H.overArgs = o5, H.overEvery = s3, H.overSome = a3, H.partial = Kg, H.partialRight = wC, H.partition = WF, H.pick = cB, H.pickBy = IC, H.property = FC, H.propertyOf = l3, H.pull = HL, H.pullAll = uC, H.pullAllBy = WL, H.pullAllWith = jL, H.pullAt = UL, H.range = c3, H.rangeRight = u3, H.rearg = i5, H.reject = qF, H.remove = qL, H.rest = s5, H.reverse = jg, H.sampleSize = YF, H.set = dB, H.setWith = fB, H.shuffle = GF, H.slice = KL, H.sortBy = ZF, H.sortedUniq = eF, H.sortedUniqBy = tF, H.split = NB, H.spread = a5, H.tail = nF, H.take = rF, H.takeRight = oF, H.takeRightWhile = iF, H.takeWhile = sF, H.tap = wF, H.throttle = l5, H.thru = nf, H.toArray = EC, H.toPairs = DC, H.toPairsIn = AC, H.toPath = m3, H.toPlainObject = MC, H.transform = pB, H.unary = c5, H.union = aF, H.unionBy = lF, H.unionWith = cF, H.uniq = uF, H.uniqBy = dF, H.uniqWith = fF, H.unset = hB, H.unzip = Ug, H.unzipWith = dC, H.update = mB, H.updateWith = gB, H.values = al, H.valuesIn = yB, H.without = pF, H.words = $C, H.wrap = u5, H.xor = hF, H.xorBy = mF, H.xorWith = gF, H.zip = yF, H.zipObject = bF, H.zipObjectDeep = vF, H.zipWith = xF, H.entries = DC, H.entriesIn = AC, H.extend = _C, H.extendWith = uf, ty(H, H), H.add = y3, H.attempt = LC, H.camelCase = wB, H.capitalize = PC, H.ceil = b3, H.clamp = bB, H.clone = f5, H.cloneDeep = h5, H.cloneDeepWith = m5, H.cloneWith = p5, H.conformsTo = g5, H.deburr = NC, H.defaultTo = JB, H.divide = v3, H.endsWith = CB, H.eq = Do, H.escape = SB, H.escapeRegExp = TB, H.every = IF, H.find = AF, H.findIndex = sC, H.findKey = q5, H.findLast = PF, H.findLastIndex = aC, H.findLastKey = K5, H.floor = x3, H.forEach = pC, H.forEachRight = hC, H.forIn = Y5, H.forInRight = G5, H.forOwn = J5, H.forOwnRight = X5, H.get = Jg, H.gt = y5, H.gte = b5, H.has = eB, H.hasIn = Xg, H.head = cC, H.identity = Rr, H.includes = BF, H.indexOf = PL, H.inRange = vB, H.invoke = rB, H.isArguments = ta, H.isArray = dt, H.isArrayBuffer = v5, H.isArrayLike = Mr, H.isArrayLikeObject = Sn, H.isBoolean = x5, H.isBuffer = cs, H.isDate = w5, H.isElement = C5, H.isEmpty = S5, H.isEqual = T5, H.isEqualWith = k5, H.isError = Yg, H.isFinite = E5, H.isFunction = Si, H.isInteger = CC, H.isLength = lf, H.isMap = SC, H.isMatch = O5, H.isMatchWith = M5, H.isNaN = _5, H.isNative = R5, H.isNil = D5, H.isNull = I5, H.isNumber = TC, H.isObject = on, H.isObjectLike = dn, H.isPlainObject = Dc, H.isRegExp = Gg, H.isSafeInteger = A5, H.isSet = kC, H.isString = cf, H.isSymbol = zr, H.isTypedArray = sl, H.isUndefined = P5, H.isWeakMap = N5, H.isWeakSet = $5, H.join = BL, H.kebabCase = kB, H.last = ao, H.lastIndexOf = VL, H.lowerCase = EB, H.lowerFirst = OB, H.lt = L5, H.lte = F5, H.max = w3, H.maxBy = C3, H.mean = S3, H.meanBy = T3, H.min = k3, H.minBy = E3, H.stubArray = ry, H.stubFalse = oy, H.stubObject = d3, H.stubString = f3, H.stubTrue = p3, H.multiply = O3, H.nth = zL, H.noConflict = r3, H.noop = ny, H.now = of, H.pad = MB, H.padEnd = _B, H.padStart = RB, H.parseInt = IB, H.random = xB, H.reduce = jF, H.reduceRight = UF, H.repeat = DB, H.replace = AB, H.result = uB, H.round = M3, H.runInContext = se, H.sample = KF, H.size = JF, H.snakeCase = PB, H.some = XF, H.sortedIndex = YL, H.sortedIndexBy = GL, H.sortedIndexOf = JL, H.sortedLastIndex = XL, H.sortedLastIndexBy = ZL, H.sortedLastIndexOf = QL, H.startCase = $B, H.startsWith = LB, H.subtract = _3, H.sum = R3, H.sumBy = I3, H.template = FB, H.times = h3, H.toFinite = Ti, H.toInteger = pt, H.toLength = OC, H.toLower = BB, H.toNumber = lo, H.toSafeInteger = B5, H.toString = Nt, H.toUpper = VB, H.trim = zB, H.trimEnd = HB, H.trimStart = WB, H.truncate = jB, H.unescape = UB, H.uniqueId = g3, H.upperCase = qB, H.upperFirst = Zg, H.each = pC, H.eachRight = hC, H.first = cC, ty(H, (function() {
42962
+ return H.after = QF, H.ary = mC, H.assign = V5, H.assignIn = _C, H.assignInWith = uf, H.assignWith = z5, H.at = H5, H.before = gC, H.bind = qg, H.bindAll = KB, H.bindKey = yC, H.castArray = d5, H.chain = fC, H.chunk = xL, H.compact = wL, H.concat = CL, H.cond = YB, H.conforms = GB, H.constant = Qg, H.countBy = RF, H.create = W5, H.curry = bC, H.curryRight = vC, H.debounce = xC, H.defaults = j5, H.defaultsDeep = U5, H.defer = e5, H.delay = t5, H.difference = SL, H.differenceBy = TL, H.differenceWith = kL, H.drop = EL, H.dropRight = OL, H.dropRightWhile = ML, H.dropWhile = _L, H.fill = RL, H.filter = DF, H.flatMap = NF, H.flatMapDeep = $F, H.flatMapDepth = LF, H.flatten = lC, H.flattenDeep = IL, H.flattenDepth = DL, H.flip = n5, H.flow = XB, H.flowRight = ZB, H.fromPairs = AL, H.functions = Z5, H.functionsIn = Q5, H.groupBy = FF, H.initial = NL, H.intersection = $L, H.intersectionBy = LL, H.intersectionWith = FL, H.invert = tB, H.invertBy = nB, H.invokeMap = VF, H.iteratee = ey, H.keyBy = zF, H.keys = Vn, H.keysIn = _r, H.map = rf, H.mapKeys = oB, H.mapValues = iB, H.matches = QB, H.matchesProperty = e3, H.memoize = sf, H.merge = sB, H.mergeWith = RC, H.method = t3, H.methodOf = n3, H.mixin = ty, H.negate = af, H.nthArg = o3, H.omit = aB, H.omitBy = lB, H.once = r5, H.orderBy = HF, H.over = i3, H.overArgs = o5, H.overEvery = s3, H.overSome = a3, H.partial = Kg, H.partialRight = wC, H.partition = WF, H.pick = cB, H.pickBy = IC, H.property = FC, H.propertyOf = l3, H.pull = HL, H.pullAll = uC, H.pullAllBy = WL, H.pullAllWith = jL, H.pullAt = UL, H.range = c3, H.rangeRight = u3, H.rearg = i5, H.reject = qF, H.remove = qL, H.rest = s5, H.reverse = jg, H.sampleSize = YF, H.set = dB, H.setWith = fB, H.shuffle = GF, H.slice = KL, H.sortBy = ZF, H.sortedUniq = eF, H.sortedUniqBy = tF, H.split = NB, H.spread = a5, H.tail = nF, H.take = rF, H.takeRight = oF, H.takeRightWhile = iF, H.takeWhile = sF, H.tap = wF, H.throttle = l5, H.thru = nf, H.toArray = EC, H.toPairs = DC, H.toPairsIn = AC, H.toPath = m3, H.toPlainObject = MC, H.transform = pB, H.unary = c5, H.union = aF, H.unionBy = lF, H.unionWith = cF, H.uniq = uF, H.uniqBy = dF, H.uniqWith = fF, H.unset = hB, H.unzip = Ug, H.unzipWith = dC, H.update = mB, H.updateWith = gB, H.values = al, H.valuesIn = yB, H.without = pF, H.words = $C, H.wrap = u5, H.xor = hF, H.xorBy = mF, H.xorWith = gF, H.zip = yF, H.zipObject = bF, H.zipObjectDeep = vF, H.zipWith = xF, H.entries = DC, H.entriesIn = AC, H.extend = _C, H.extendWith = uf, ty(H, H), H.add = y3, H.attempt = LC, H.camelCase = wB, H.capitalize = PC, H.ceil = b3, H.clamp = bB, H.clone = f5, H.cloneDeep = h5, H.cloneDeepWith = m5, H.cloneWith = p5, H.conformsTo = g5, H.deburr = NC, H.defaultTo = JB, H.divide = v3, H.endsWith = CB, H.eq = Do, H.escape = SB, H.escapeRegExp = TB, H.every = IF, H.find = AF, H.findIndex = sC, H.findKey = q5, H.findLast = PF, H.findLastIndex = aC, H.findLastKey = K5, H.floor = x3, H.forEach = pC, H.forEachRight = hC, H.forIn = Y5, H.forInRight = G5, H.forOwn = J5, H.forOwnRight = X5, H.get = Jg, H.gt = y5, H.gte = b5, H.has = eB, H.hasIn = Xg, H.head = cC, H.identity = Rr, H.includes = BF, H.indexOf = PL, H.inRange = vB, H.invoke = rB, H.isArguments = ta, H.isArray = dt, H.isArrayBuffer = v5, H.isArrayLike = Mr, H.isArrayLikeObject = Sn, H.isBoolean = x5, H.isBuffer = cs, H.isDate = w5, H.isElement = C5, H.isEmpty = S5, H.isEqual = T5, H.isEqualWith = k5, H.isError = Yg, H.isFinite = E5, H.isFunction = Si, H.isInteger = CC, H.isLength = lf, H.isMap = SC, H.isMatch = O5, H.isMatchWith = M5, H.isNaN = _5, H.isNative = R5, H.isNil = D5, H.isNull = I5, H.isNumber = TC, H.isObject = on, H.isObjectLike = dn, H.isPlainObject = Dc, H.isRegExp = Gg, H.isSafeInteger = A5, H.isSet = kC, H.isString = cf, H.isSymbol = zr, H.isTypedArray = sl, H.isUndefined = P5, H.isWeakMap = N5, H.isWeakSet = $5, H.join = BL, H.kebabCase = kB, H.last = ao, H.lastIndexOf = VL, H.lowerCase = EB, H.lowerFirst = OB, H.lt = L5, H.lte = F5, H.max = w3, H.maxBy = C3, H.mean = S3, H.meanBy = T3, H.min = k3, H.minBy = E3, H.stubArray = ry, H.stubFalse = oy, H.stubObject = d3, H.stubString = f3, H.stubTrue = p3, H.multiply = O3, H.nth = zL, H.noConflict = r3, H.noop = ny, H.now = of, H.pad = MB, H.padEnd = _B, H.padStart = RB, H.parseInt = IB, H.random = xB, H.reduce = jF, H.reduceRight = UF, H.repeat = DB, H.replace = AB, H.result = uB, H.round = M3, H.runInContext = se, H.sample = KF, H.size = JF, H.snakeCase = PB, H.some = XF, H.sortedIndex = YL, H.sortedIndexBy = GL, H.sortedIndexOf = JL, H.sortedLastIndex = XL, H.sortedLastIndexBy = ZL, H.sortedLastIndexOf = QL, H.startCase = $B, H.startsWith = LB, H.subtract = _3, H.sum = R3, H.sumBy = I3, H.template = FB, H.times = h3, H.toFinite = Ti, H.toInteger = pt, H.toLength = OC, H.toLower = BB, H.toNumber = lo, H.toSafeInteger = B5, H.toString = Nt, H.toUpper = VB, H.trim = zB, H.trimEnd = HB, H.trimStart = WB, H.truncate = jB, H.unescape = UB, H.uniqueId = g3, H.upperCase = qB, H.upperFirst = Zg, H.each = pC, H.eachRight = hC, H.first = cC, ty(H, (function() {
42953
42963
  var d = {};
42954
42964
  return Uo(H, function(h, w) {
42955
42965
  Ft.call(H.prototype, w) || (d[w] = h);
@@ -43524,7 +43534,7 @@ const CD = /* @__PURE__ */ cr(Ba), $pe = (t) => {
43524
43534
  /* @__PURE__ */ x(Sre, { sx: { color: "gray", fontSize: "20px" } }),
43525
43535
  /* @__PURE__ */ x(Xe, { sx: { padding: "8px", overflowWrap: "anywhere" }, children: s.name }),
43526
43536
  /* @__PURE__ */ x(
43527
- $n,
43537
+ Wn,
43528
43538
  {
43529
43539
  "aria-label": "remove file",
43530
43540
  onClick: () => o(i.filter((a) => a !== s)),
@@ -44317,7 +44327,7 @@ const Wc = { current: null }, Vpe = (t) => {
44317
44327
  slotProps: {
44318
44328
  input: {
44319
44329
  startAdornment: /* @__PURE__ */ x(V3, { position: "start", children: /* @__PURE__ */ x(
44320
- $n,
44330
+ Wn,
44321
44331
  {
44322
44332
  "data-testid": "search-button",
44323
44333
  style: { marginLeft: -10 },
@@ -44326,7 +44336,7 @@ const Wc = { current: null }, Vpe = (t) => {
44326
44336
  }
44327
44337
  ) }),
44328
44338
  endAdornment: i && /* @__PURE__ */ x(
44329
- $n,
44339
+ Wn,
44330
44340
  {
44331
44341
  style: { marginRight: -10 },
44332
44342
  "aria-label": "clear search",
@@ -46566,7 +46576,7 @@ const Mie = (t, e) => (n) => {
46566
46576
  sectionIndex: Ce
46567
46577
  }), I(Ce);
46568
46578
  });
46569
- Bn(() => {
46579
+ Fn(() => {
46570
46580
  if (!(!F || !$.current)) {
46571
46581
  if (g === "all")
46572
46582
  $.current.getRoot().focus();
@@ -46926,7 +46936,7 @@ const Mie = (t, e) => (n) => {
46926
46936
  }
46927
46937
  }
46928
46938
  });
46929
- Bn(() => {
46939
+ Fn(() => {
46930
46940
  W.syncSelectionToDOM();
46931
46941
  });
46932
46942
  const {
@@ -50641,7 +50651,7 @@ function lle(t, e) {
50641
50651
  return;
50642
50652
  const u = r.current;
50643
50653
  r.current = !1;
50644
- const f = Ln(o.current);
50654
+ const f = $n(o.current);
50645
50655
  if (!o.current || // is a TouchEvent?
50646
50656
  "clientX" in l && ale(l, f))
50647
50657
  return;
@@ -50656,7 +50666,7 @@ function lle(t, e) {
50656
50666
  };
50657
50667
  return D.useEffect(() => {
50658
50668
  if (t) {
50659
- const l = Ln(o.current), u = () => {
50669
+ const l = $n(o.current), u = () => {
50660
50670
  n.current = !0;
50661
50671
  };
50662
50672
  return l.addEventListener("touchstart", s), l.addEventListener("touchmove", u), () => {
@@ -50665,7 +50675,7 @@ function lle(t, e) {
50665
50675
  }
50666
50676
  }, [t, s]), D.useEffect(() => {
50667
50677
  if (t) {
50668
- const l = Ln(o.current);
50678
+ const l = $n(o.current);
50669
50679
  return l.addEventListener("click", s), () => {
50670
50680
  l.removeEventListener("click", s), r.current = !1;
50671
50681
  };
@@ -51110,12 +51120,12 @@ const gle = ["className", "sx"], yle = ({
51110
51120
  hasUIView: !1,
51111
51121
  viewModeLookup: {}
51112
51122
  }), [y, f]), $ = D.useMemo(() => f.reduce((A, _) => y[_] != null && qoe(_) ? A + 1 : A, 0), [y, f]), V = P[v], M = Ve(() => V === "UI"), [L, z] = D.useState(V === "UI" ? v : null);
51113
- return L !== v && P[v] === "UI" && z(v), Bn(() => {
51123
+ return L !== v && P[v] === "UI" && z(v), Fn(() => {
51114
51124
  V === "field" && a && (l(), setTimeout(() => {
51115
51125
  var A, _;
51116
51126
  (A = i == null ? void 0 : i.current) == null || A.setSelectedSections(v), (_ = i == null ? void 0 : i.current) == null || _.focusField(v);
51117
51127
  }));
51118
- }, [v]), Bn(() => {
51128
+ }, [v]), Fn(() => {
51119
51129
  if (!a)
51120
51130
  return;
51121
51131
  let A = v;
@@ -51154,7 +51164,7 @@ function vO() {
51154
51164
  }
51155
51165
  const ble = (t, e) => {
51156
51166
  const [n, r] = D.useState(vO);
51157
- return Bn(() => {
51167
+ return Fn(() => {
51158
51168
  const i = () => {
51159
51169
  r(vO());
51160
51170
  };
@@ -53021,7 +53031,7 @@ const sa = je("MuiPickersDay", ["root", "dayWithMargin", "dayOutsideMonth", "hid
53021
53031
  showDaysOutsideCurrentMonth: S,
53022
53032
  today: R
53023
53033
  }), V = nce($), M = Jt(), L = D.useRef(null), z = _t(L, n);
53024
- Bn(() => {
53034
+ Fn(() => {
53025
53035
  o && !a && !f && !k && L.current.focus();
53026
53036
  }, [o, a, f, k]);
53027
53037
  const F = (_) => {
@@ -53743,7 +53753,7 @@ const Vf = je("MuiPickersMonth", ["root", "monthButton", "disabled", "selected"]
53743
53753
  slots: v,
53744
53754
  slotProps: C
53745
53755
  } = n, k = ct(n, Oce), T = D.useRef(null), S = Mce(n);
53746
- Bn(() => {
53756
+ Fn(() => {
53747
53757
  var P;
53748
53758
  r && ((P = T.current) == null || P.focus());
53749
53759
  }, [r]);
@@ -54123,7 +54133,7 @@ const zf = je("MuiPickersYear", ["root", "yearButton", "selected", "disabled"]),
54123
54133
  slots: g,
54124
54134
  slotProps: v
54125
54135
  } = n, C = ct(n, Fce), k = D.useRef(null), T = Bce(n);
54126
- Bn(() => {
54136
+ Fn(() => {
54127
54137
  var R;
54128
54138
  r && ((R = k.current) == null || R.focus());
54129
54139
  }, [r]);
@@ -57391,7 +57401,7 @@ const SO = (t) => {
57391
57401
  /* @__PURE__ */ x(QZ, {}),
57392
57402
  /* @__PURE__ */ x(EZ, {}),
57393
57403
  /* @__PURE__ */ x(dQ, {}),
57394
- qX() && /* @__PURE__ */ Q(Fn, { children: [
57404
+ qX() && /* @__PURE__ */ Q(Ln, { children: [
57395
57405
  /* @__PURE__ */ x(GZ, {}),
57396
57406
  /* @__PURE__ */ x(bQ, {})
57397
57407
  ] }),
@@ -59464,7 +59474,7 @@ const Upe = (t) => {
59464
59474
  // </Stack>
59465
59475
  // ),
59466
59476
  },
59467
- children: () => /* @__PURE__ */ Q(Fn, { children: [
59477
+ children: () => /* @__PURE__ */ Q(Ln, { children: [
59468
59478
  /* @__PURE__ */ x(Kne, {}),
59469
59479
  /* @__PURE__ */ x(are, {})
59470
59480
  ] })
@@ -59520,8 +59530,8 @@ const Upe = (t) => {
59520
59530
  const { gap: e = 1, ...n } = t;
59521
59531
  return /* @__PURE__ */ x(Ne, { display: "flex", flexDirection: "column", gap: e, ...n });
59522
59532
  };
59523
- function Fde({ icon: t, color: e = "inherit", children: n }) {
59524
- return n ? /* @__PURE__ */ x($o, { title: n, children: /* @__PURE__ */ x($n, { disableTouchRipple: !0, size: "small", children: /* @__PURE__ */ x(t, { "data-testid": "MBv2_table-tooltip", fontSize: "small", sx: { color: e } }) }) }) : null;
59533
+ function Fde({ icon: t, children: e, sx: n, ...r }) {
59534
+ return e ? /* @__PURE__ */ x($o, { title: e, children: /* @__PURE__ */ x(t, { "data-testid": "MBv2_table-tooltip", fontSize: "small", sx: n ?? { ml: 0.5 }, ...r }) }) : null;
59525
59535
  }
59526
59536
  function Bde(t) {
59527
59537
  return /* @__PURE__ */ x(Fde, { icon: noe, ...t });
@@ -59557,7 +59567,7 @@ const HA = (t) => {
59557
59567
  stickyHeader: V,
59558
59568
  reRenderExpand: M = !1,
59559
59569
  expandOnRowClick: L = !1,
59560
- tooltipColor: z,
59570
+ tooltipProps: z = {},
59561
59571
  ...F
59562
59572
  } = t, { palette: A } = Xn(), _ = A.grey[A.mode == "dark" ? 600 : 50], [I, B] = He.useState(void 0), [W, q] = He.useState(
59563
59573
  typeof O == "string" || typeof O == "number" ? O : void 0
@@ -59574,7 +59584,7 @@ const HA = (t) => {
59574
59584
  render: (he, $e) => {
59575
59585
  const Re = n($e), vt = I === Re;
59576
59586
  return /* @__PURE__ */ x(
59577
- $n,
59587
+ Wn,
59578
59588
  {
59579
59589
  "data-testid": "expand-collapse-btn",
59580
59590
  "aria-label": vt ? "collapse row" : "expand row",
@@ -59645,7 +59655,7 @@ const HA = (t) => {
59645
59655
  }, Z = (he) => {
59646
59656
  if (!u) return;
59647
59657
  const $e = I === n(he);
59648
- return /* @__PURE__ */ Q(Fn, { children: [
59658
+ return /* @__PURE__ */ Q(Ln, { children: [
59649
59659
  /* @__PURE__ */ Q(
59650
59660
  Rn,
59651
59661
  {
@@ -59686,7 +59696,7 @@ const HA = (t) => {
59686
59696
  }
59687
59697
  }
59688
59698
  };
59689
- }, Ce = (he) => /* @__PURE__ */ x(Bde, { color: z, children: he }), Ie = (he, $e) => {
59699
+ }, Ce = (he) => /* @__PURE__ */ x(Bde, { ...z, children: he }), Ie = (he, $e) => {
59690
59700
  const Re = he.find((ut) => ut.key === "MBv2_Checkbox_Column"), vt = le.filter((ut) => ut.key !== "MBv2_Checkbox_Column");
59691
59701
  return /* @__PURE__ */ Q(Wi, { alignItems: "flex-start", children: [
59692
59702
  Re && /* @__PURE__ */ x(Mh, { children: Ll(Re, $e, fe) }),
@@ -59723,7 +59733,7 @@ const HA = (t) => {
59723
59733
  className: g,
59724
59734
  "data-testid": "mui-table-mobile",
59725
59735
  children: [
59726
- ae && /* @__PURE__ */ Q(Fn, { children: [
59736
+ ae && /* @__PURE__ */ Q(Ln, { children: [
59727
59737
  /* @__PURE__ */ Q(Ne, { display: "flex", className: "MBv2_Table_Stack_Sort", children: [
59728
59738
  /* @__PURE__ */ x(
59729
59739
  tc,
@@ -59742,7 +59752,7 @@ const HA = (t) => {
59742
59752
  }
59743
59753
  ),
59744
59754
  /* @__PURE__ */ x(
59745
- $n,
59755
+ Wn,
59746
59756
  {
59747
59757
  onClick: () => {
59748
59758
  f && j(f);
@@ -60090,7 +60100,7 @@ function Q0({ canLaunchUrl: t, citation: e, asLink: n }) {
60090
60100
  const r = tn(null), [o, i] = ft(!1), s = () => {
60091
60101
  i(!1);
60092
60102
  };
60093
- return !t || e.fileName ? null : /* @__PURE__ */ Q(Fn, { children: [
60103
+ return !t || e.fileName ? null : /* @__PURE__ */ Q(Ln, { children: [
60094
60104
  n ? /* @__PURE__ */ x(
60095
60105
  lv,
60096
60106
  {
@@ -60102,7 +60112,7 @@ function Q0({ canLaunchUrl: t, citation: e, asLink: n }) {
60102
60112
  children: e.url
60103
60113
  }
60104
60114
  ) : /* @__PURE__ */ x($o, { title: "Open URL", children: /* @__PURE__ */ x(
60105
- $n,
60115
+ Wn,
60106
60116
  {
60107
60117
  ref: r,
60108
60118
  color: "primary",
@@ -60123,7 +60133,7 @@ function Q0({ canLaunchUrl: t, citation: e, asLink: n }) {
60123
60133
  function jA({ onDownloadAttachment: t, citation: e }) {
60124
60134
  if (!(!t || !e.fileName))
60125
60135
  return /* @__PURE__ */ x($o, { title: "Download", children: /* @__PURE__ */ x(
60126
- $n,
60136
+ Wn,
60127
60137
  {
60128
60138
  color: "primary",
60129
60139
  onClick: () => t == null ? void 0 : t(e),
@@ -60156,7 +60166,7 @@ function UA({ onPreviewAttachment: t, citation: e }) {
60156
60166
  ], r = e.fileName.split(".").pop();
60157
60167
  if (!(!r || !n.includes(r)))
60158
60168
  return /* @__PURE__ */ x($o, { title: "View File", children: /* @__PURE__ */ x(
60159
- $n,
60169
+ Wn,
60160
60170
  {
60161
60171
  color: "primary",
60162
60172
  onClick: () => t == null ? void 0 : t(e),
@@ -60234,7 +60244,7 @@ const Ude = (t) => {
60234
60244
  if (!(!M && !L)) {
60235
60245
  if (M)
60236
60246
  return /* @__PURE__ */ x($o, { title: "Edit", children: /* @__PURE__ */ x(
60237
- $n,
60247
+ Wn,
60238
60248
  {
60239
60249
  color: "primary",
60240
60250
  onClick: () => _e.fileName ? a(_e.id) : s(_e.id),
@@ -60244,7 +60254,7 @@ const Ude = (t) => {
60244
60254
  ) });
60245
60255
  if (L)
60246
60256
  return /* @__PURE__ */ x($o, { title: "View", children: /* @__PURE__ */ x(
60247
- $n,
60257
+ Wn,
60248
60258
  {
60249
60259
  color: "primary",
60250
60260
  onClick: () => _e.fileName ? u(_e.id) : l(_e.id),
@@ -60256,7 +60266,7 @@ const Ude = (t) => {
60256
60266
  }, me = (_e) => {
60257
60267
  if (!(!z || R))
60258
60268
  return /* @__PURE__ */ x($o, { title: "Delete", children: /* @__PURE__ */ x(
60259
- $n,
60269
+ Wn,
60260
60270
  {
60261
60271
  color: "error",
60262
60272
  onClick: (he) => {
@@ -60302,7 +60312,7 @@ const Ude = (t) => {
60302
60312
  ee,
60303
60313
  ne
60304
60314
  ] }),
60305
- P && /* @__PURE__ */ x($n, { onClick: r, children: /* @__PURE__ */ x(Mm, {}) })
60315
+ P && /* @__PURE__ */ x(Wn, { onClick: r, children: /* @__PURE__ */ x(Mm, {}) })
60306
60316
  ] }),
60307
60317
  $ ? /* @__PURE__ */ x(foe, { onSearch: Ie }) : null,
60308
60318
  /* @__PURE__ */ x(
@@ -60323,7 +60333,7 @@ const Ude = (t) => {
60323
60333
  }
60324
60334
  ),
60325
60335
  T && /* @__PURE__ */ Q(Ne, { display: "flex", flexDirection: "row", justifyContent: "space-between", children: [
60326
- /* @__PURE__ */ x(Ne, { display: "flex", flexDirection: "row", gap: ".25rem", children: V && /* @__PURE__ */ Q(Fn, { children: [
60336
+ /* @__PURE__ */ x(Ne, { display: "flex", flexDirection: "row", gap: ".25rem", children: V && /* @__PURE__ */ Q(Ln, { children: [
60327
60337
  ee,
60328
60338
  ne
60329
60339
  ] }) }),
@@ -62018,7 +62028,7 @@ const Mfe = (t) => {
62018
62028
  label: "",
62019
62029
  placeholder: "Scientific News Today | How to Organize Your Workspace for Maximum Efficiency | https://mock-news-site.com | ACCESSED 2 JAN 2026 | Public Source",
62020
62030
  endIcon: /* @__PURE__ */ x($o, { title: "Paste from Clipboard", children: /* @__PURE__ */ x(
62021
- $n,
62031
+ Wn,
62022
62032
  {
62023
62033
  "data-testid": "paste-content-button",
62024
62034
  onClick: () => {
@@ -62151,7 +62161,7 @@ const Mfe = (t) => {
62151
62161
  }
62152
62162
  )
62153
62163
  ] }),
62154
- /* @__PURE__ */ x($n, { onClick: o, children: /* @__PURE__ */ x(Mm, {}) })
62164
+ /* @__PURE__ */ x(Wn, { onClick: o, children: /* @__PURE__ */ x(Mm, {}) })
62155
62165
  ] }),
62156
62166
  /* @__PURE__ */ x(
62157
62167
  cv,
@@ -62185,7 +62195,7 @@ const Mfe = (t) => {
62185
62195
  }
62186
62196
  ),
62187
62197
  /* @__PURE__ */ x(j0, { ...T, name: "accessedAt", required: !0, isDatePicker: !0 }),
62188
- s && (l != null && l(P)) ? /* @__PURE__ */ x(Fn, { children: /* @__PURE__ */ x(
62198
+ s && (l != null && l(P)) ? /* @__PURE__ */ x(Ln, { children: /* @__PURE__ */ x(
62189
62199
  js,
62190
62200
  {
62191
62201
  label: "URL / Other Identifier",
@@ -62289,7 +62299,7 @@ const Mfe = (t) => {
62289
62299
  s ? "View" : "Edit",
62290
62300
  " Attachment"
62291
62301
  ] }),
62292
- /* @__PURE__ */ x($n, { onClick: o, children: /* @__PURE__ */ x(Mm, {}) })
62302
+ /* @__PURE__ */ x(Wn, { onClick: o, children: /* @__PURE__ */ x(Mm, {}) })
62293
62303
  ] }),
62294
62304
  /* @__PURE__ */ x(
62295
62305
  cv,
@@ -62398,7 +62408,7 @@ const Mfe = (t) => {
62398
62408
  children: [
62399
62409
  typeof r == "string" ? /* @__PURE__ */ x(Y3, { className: "MBv2_Modal_Title", children: /* @__PURE__ */ Q(Ne, { display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", children: [
62400
62410
  r,
62401
- m && /* @__PURE__ */ x($n, { "data-testid": "modal-header-close-btn", onClick: n, children: /* @__PURE__ */ x(Mm, {}) })
62411
+ m && /* @__PURE__ */ x(Wn, { "data-testid": "modal-header-close-btn", onClick: n, children: /* @__PURE__ */ x(Mm, {}) })
62402
62412
  ] }) }) : r,
62403
62413
  o && (typeof o == "string" ? /* @__PURE__ */ x(G3, { className: "MBv2_Modal_Content", children: /* @__PURE__ */ x(J3, { className: "MBv2_Modal_Content_Text", children: o }) }) : o),
62404
62414
  (() => {
@@ -62804,7 +62814,7 @@ const wd = (t) => {
62804
62814
  );
62805
62815
  }, Gfe = (t) => /* @__PURE__ */ x(wd, { severity: "error", ...t }), Jfe = (t) => /* @__PURE__ */ x(wd, { severity: "success", ...t }), Xfe = (t) => {
62806
62816
  const { alert: e, setAlert: n } = t, r = () => n(void 0);
62807
- return /* @__PURE__ */ Q(Fn, { children: [
62817
+ return /* @__PURE__ */ Q(Ln, { children: [
62808
62818
  (e == null ? void 0 : e.type) === "Error" && /* @__PURE__ */ x(Gfe, { "data-testid": "citation-menu-error", onClose: r, title: e.title, children: e.message.toString() }),
62809
62819
  (e == null ? void 0 : e.type) === "Success" && /* @__PURE__ */ x(Jfe, { "data-testid": "citation-menu-success", onClose: r, children: e.message })
62810
62820
  ] });
@@ -63423,7 +63433,7 @@ const sP = nc(void 0), aP = () => {
63423
63433
  };
63424
63434
  if (n.length === 0) return null;
63425
63435
  const f = r && !e;
63426
- return /* @__PURE__ */ Q(Fn, { children: [
63436
+ return /* @__PURE__ */ Q(Ln, { children: [
63427
63437
  /* @__PURE__ */ x(
63428
63438
  Rn,
63429
63439
  {
@@ -63661,7 +63671,7 @@ const sP = nc(void 0), aP = () => {
63661
63671
  deleted: { icon: MD, label: "Deleted", color: "error" },
63662
63672
  modified: { icon: Xre, label: "Modified", color: "info" },
63663
63673
  unmodified: { label: "Unmodified", color: "default" }
63664
- }, cpe = (t, e) => /* @__PURE__ */ Q(Fn, { children: [
63674
+ }, cpe = (t, e) => /* @__PURE__ */ Q(Ln, { children: [
63665
63675
  /* @__PURE__ */ x(Ne, { "data-testid": "diff-table-cell-removed", sx: { backgroundColor: Gp }, children: /* @__PURE__ */ x("s", { children: t }) }),
63666
63676
  /* @__PURE__ */ x(Ne, { "data-testid": "diff-table-cell-added", sx: { backgroundColor: Yp }, children: /* @__PURE__ */ x("u", { children: e }) })
63667
63677
  ] }), upe = (t, e, n, r = !1) => {
@@ -63869,8 +63879,8 @@ const sP = nc(void 0), aP = () => {
63869
63879
  })(), p = f ?? !1;
63870
63880
  return He.useEffect(() => {
63871
63881
  a(!1);
63872
- }, [o]), p && /* @__PURE__ */ Q(Fn, { children: [
63873
- /* @__PURE__ */ x($n, { onClick: () => a(!0), color: "inherit", title: "Menu", children: /* @__PURE__ */ x(ioe, {}) }),
63882
+ }, [o]), p && /* @__PURE__ */ Q(Ln, { children: [
63883
+ /* @__PURE__ */ x(Wn, { onClick: () => a(!0), color: "inherit", title: "Menu", children: /* @__PURE__ */ x(ioe, {}) }),
63874
63884
  /* @__PURE__ */ x(iV, { "data-testid": "mobile-drawer", anchor: n, open: s, onClose: () => a(!1), children: /* @__PURE__ */ x(Ne, { sx: { width: 300 }, display: "flex", flexDirection: "column", justifyContent: "space-between", children: /* @__PURE__ */ x(Ne, { display: "flex", justifyContent: "start", flexDirection: "column", children: f }) }) })
63875
63885
  ] });
63876
63886
  }, mpe = (t) => {
@@ -63931,7 +63941,7 @@ const sP = nc(void 0), aP = () => {
63931
63941
  return e.length > 0 && /* @__PURE__ */ x(za, { sx: { pl: 4, pr: 4, borderRadius: 0 }, "data-testid": "navBar", children: /* @__PURE__ */ x(px, { menuOptions: e, activeTabIdx: n, sx: r }) });
63932
63942
  }, bpe = (t) => {
63933
63943
  const { onToggle: e } = t, { palette: n } = Xn(), r = n.mode === "dark";
63934
- return /* @__PURE__ */ x($n, { onClick: e, color: "inherit", title: "Dark Mode Toggle", children: r ? /* @__PURE__ */ x(OD, {}) : /* @__PURE__ */ x(kD, {}) });
63944
+ return /* @__PURE__ */ x(Wn, { onClick: e, color: "inherit", title: "Dark Mode Toggle", children: r ? /* @__PURE__ */ x(OD, {}) : /* @__PURE__ */ x(kD, {}) });
63935
63945
  }, rhe = (t) => {
63936
63946
  const {
63937
63947
  envInfo: e,
@@ -63990,7 +64000,7 @@ const sP = nc(void 0), aP = () => {
63990
64000
  /* @__PURE__ */ Q(Ne, { display: "flex", gap: 2, alignItems: "center", children: [
63991
64001
  !l && !g && O,
63992
64002
  g && /* @__PURE__ */ x(hpe, { menuOptionLists: [o, a, R], anchor: "right" }),
63993
- !g && /* @__PURE__ */ Q(Fn, { children: [
64003
+ !g && /* @__PURE__ */ Q(Ln, { children: [
63994
64004
  /* @__PURE__ */ x(Ne, { display: "flex", gap: 0, children: a == null ? void 0 : a.map((P, $) => /* @__PURE__ */ Q(Ne, { display: "flex", alignItems: "center", children: [
63995
64005
  $ > 0 && /* @__PURE__ */ x(
63996
64006
  Xe,
@@ -64146,7 +64156,7 @@ const sP = nc(void 0), aP = () => {
64146
64156
  onClose: o,
64147
64157
  elevation: a,
64148
64158
  variant: s,
64149
- children: n ? /* @__PURE__ */ Q(Fn, { children: [
64159
+ children: n ? /* @__PURE__ */ Q(Ln, { children: [
64150
64160
  /* @__PURE__ */ x(pV, { "data-testid": "alertTitle", sx: { fontWeight: "bold" }, children: e }),
64151
64161
  n
64152
64162
  ] }) : e
@@ -64376,7 +64386,7 @@ export {
64376
64386
  qde as baseCitationTableColumns,
64377
64387
  dpe as buildDiffData,
64378
64388
  fpe as buildTableDiff,
64379
- Hn as commonTheme,
64389
+ zn as commonTheme,
64380
64390
  Dpe as darkTheme,
64381
64391
  Ipe as lightTheme,
64382
64392
  cc as useDiff,