@weng-lab/visualization 1.2.11 → 1.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as pe from "react";
2
- import Le, { useRef as wt, useState as Xe, useCallback as Ke, useEffect as _t, useMemo as tt, createContext as Zi, useLayoutEffect as aS, useContext as Ir, useId as wM, Fragment as iS, createElement as BM, useInsertionEffect as bM, forwardRef as CM, Component as xM, useImperativeHandle as Uf, isValidElement as Xu, cloneElement as ju, Children as EM } from "react";
2
+ import Le, { useRef as St, useState as Xe, useCallback as Ke, useEffect as _t, useMemo as tt, createContext as Zi, useLayoutEffect as aS, useContext as Ir, useId as wM, Fragment as iS, createElement as BM, useInsertionEffect as bM, forwardRef as CM, Component as xM, useImperativeHandle as Uf, isValidElement as Xu, cloneElement as ju, Children as EM } from "react";
3
3
  import { Stack as kv, Tooltip as Fa, IconButton as Sa, Box as Ww, Typography as ta, CircularProgress as TM, LinearProgress as FM, Table as SM, TableBody as UM, TableRow as QM, TableCell as Gd } from "@mui/material";
4
4
  import { BackHand as IM, Edit as DM, ZoomIn as LM, ZoomOut as OM, SettingsBackupRestore as MM, Download as oS, HighlightAlt as RM } from "@mui/icons-material";
5
5
  import { ThemeContext as PM, css as AS, keyframes as yl } from "@emotion/react";
@@ -1401,16 +1401,16 @@ function dS(t, e) {
1401
1401
  const r = Of(t.theme);
1402
1402
  return Object.keys(t).map((n) => fR(t, e, n, r)).reduce(ys, {});
1403
1403
  }
1404
- function Tt(t) {
1404
+ function Et(t) {
1405
1405
  return dS(t, Df);
1406
1406
  }
1407
- Tt.propTypes = process.env.NODE_ENV !== "production" ? Df.reduce((t, e) => (t[e] = ri, t), {}) : {};
1408
- Tt.filterProps = Df;
1409
- function Ft(t) {
1407
+ Et.propTypes = process.env.NODE_ENV !== "production" ? Df.reduce((t, e) => (t[e] = ri, t), {}) : {};
1408
+ Et.filterProps = Df;
1409
+ function Tt(t) {
1410
1410
  return dS(t, Lf);
1411
1411
  }
1412
- Ft.propTypes = process.env.NODE_ENV !== "production" ? Lf.reduce((t, e) => (t[e] = ri, t), {}) : {};
1413
- Ft.filterProps = Lf;
1412
+ Tt.propTypes = process.env.NODE_ENV !== "production" ? Lf.reduce((t, e) => (t[e] = ri, t), {}) : {};
1413
+ Tt.filterProps = Lf;
1414
1414
  process.env.NODE_ENV !== "production" && uR.reduce((t, e) => (t[e] = ri, t), {});
1415
1415
  function Mf(...t) {
1416
1416
  const e = t.reduce((n, a) => (a.filterProps.forEach((i) => {
@@ -1633,124 +1633,124 @@ const Bl = {
1633
1633
  },
1634
1634
  // spacing
1635
1635
  p: {
1636
- style: Ft
1636
+ style: Tt
1637
1637
  },
1638
1638
  pt: {
1639
- style: Ft
1639
+ style: Tt
1640
1640
  },
1641
1641
  pr: {
1642
- style: Ft
1642
+ style: Tt
1643
1643
  },
1644
1644
  pb: {
1645
- style: Ft
1645
+ style: Tt
1646
1646
  },
1647
1647
  pl: {
1648
- style: Ft
1648
+ style: Tt
1649
1649
  },
1650
1650
  px: {
1651
- style: Ft
1651
+ style: Tt
1652
1652
  },
1653
1653
  py: {
1654
- style: Ft
1654
+ style: Tt
1655
1655
  },
1656
1656
  padding: {
1657
- style: Ft
1657
+ style: Tt
1658
1658
  },
1659
1659
  paddingTop: {
1660
- style: Ft
1660
+ style: Tt
1661
1661
  },
1662
1662
  paddingRight: {
1663
- style: Ft
1663
+ style: Tt
1664
1664
  },
1665
1665
  paddingBottom: {
1666
- style: Ft
1666
+ style: Tt
1667
1667
  },
1668
1668
  paddingLeft: {
1669
- style: Ft
1669
+ style: Tt
1670
1670
  },
1671
1671
  paddingX: {
1672
- style: Ft
1672
+ style: Tt
1673
1673
  },
1674
1674
  paddingY: {
1675
- style: Ft
1675
+ style: Tt
1676
1676
  },
1677
1677
  paddingInline: {
1678
- style: Ft
1678
+ style: Tt
1679
1679
  },
1680
1680
  paddingInlineStart: {
1681
- style: Ft
1681
+ style: Tt
1682
1682
  },
1683
1683
  paddingInlineEnd: {
1684
- style: Ft
1684
+ style: Tt
1685
1685
  },
1686
1686
  paddingBlock: {
1687
- style: Ft
1687
+ style: Tt
1688
1688
  },
1689
1689
  paddingBlockStart: {
1690
- style: Ft
1690
+ style: Tt
1691
1691
  },
1692
1692
  paddingBlockEnd: {
1693
- style: Ft
1693
+ style: Tt
1694
1694
  },
1695
1695
  m: {
1696
- style: Tt
1696
+ style: Et
1697
1697
  },
1698
1698
  mt: {
1699
- style: Tt
1699
+ style: Et
1700
1700
  },
1701
1701
  mr: {
1702
- style: Tt
1702
+ style: Et
1703
1703
  },
1704
1704
  mb: {
1705
- style: Tt
1705
+ style: Et
1706
1706
  },
1707
1707
  ml: {
1708
- style: Tt
1708
+ style: Et
1709
1709
  },
1710
1710
  mx: {
1711
- style: Tt
1711
+ style: Et
1712
1712
  },
1713
1713
  my: {
1714
- style: Tt
1714
+ style: Et
1715
1715
  },
1716
1716
  margin: {
1717
- style: Tt
1717
+ style: Et
1718
1718
  },
1719
1719
  marginTop: {
1720
- style: Tt
1720
+ style: Et
1721
1721
  },
1722
1722
  marginRight: {
1723
- style: Tt
1723
+ style: Et
1724
1724
  },
1725
1725
  marginBottom: {
1726
- style: Tt
1726
+ style: Et
1727
1727
  },
1728
1728
  marginLeft: {
1729
- style: Tt
1729
+ style: Et
1730
1730
  },
1731
1731
  marginX: {
1732
- style: Tt
1732
+ style: Et
1733
1733
  },
1734
1734
  marginY: {
1735
- style: Tt
1735
+ style: Et
1736
1736
  },
1737
1737
  marginInline: {
1738
- style: Tt
1738
+ style: Et
1739
1739
  },
1740
1740
  marginInlineStart: {
1741
- style: Tt
1741
+ style: Et
1742
1742
  },
1743
1743
  marginInlineEnd: {
1744
- style: Tt
1744
+ style: Et
1745
1745
  },
1746
1746
  marginBlock: {
1747
- style: Tt
1747
+ style: Et
1748
1748
  },
1749
1749
  marginBlockStart: {
1750
- style: Tt
1750
+ style: Et
1751
1751
  },
1752
1752
  marginBlockEnd: {
1753
- style: Tt
1753
+ style: Et
1754
1754
  },
1755
1755
  // display
1756
1756
  displayPrint: {
@@ -4337,7 +4337,7 @@ function OB(t, e) {
4337
4337
  }
4338
4338
  return r;
4339
4339
  }
4340
- function Ct(t) {
4340
+ function bt(t) {
4341
4341
  for (var e = 1; e < arguments.length; e++) {
4342
4342
  var r = arguments[e] != null ? arguments[e] : {};
4343
4343
  e % 2 ? OB(Object(r), !0).forEach(function(n) {
@@ -4584,7 +4584,7 @@ class PS {
4584
4584
  emit() {
4585
4585
  const e = this.state, r = this.shared, n = this.config;
4586
4586
  if (e._active || this.clean(), (e._blocked || !e.intentional) && !e._force && !n.triggerAllEvents) return;
4587
- const a = this.handler(Ct(Ct(Ct({}, r), e), {}, {
4587
+ const a = this.handler(bt(bt(bt({}, r), e), {}, {
4588
4588
  [this.aliasKey]: e.values
4589
4589
  }));
4590
4590
  a !== void 0 && (e.memo = a);
@@ -4641,7 +4641,7 @@ const HB = (t) => t, _B = 0.15, n0 = {
4641
4641
  return t;
4642
4642
  },
4643
4643
  eventOptions(t, e, r) {
4644
- return Ct(Ct({}, r.shared.eventOptions), t);
4644
+ return bt(bt({}, r.shared.eventOptions), t);
4645
4645
  },
4646
4646
  preventDefault(t = !1) {
4647
4647
  return t;
@@ -4695,7 +4695,7 @@ process.env.NODE_ENV === "development" && Object.assign(n0, {
4695
4695
  return NaN;
4696
4696
  }
4697
4697
  });
4698
- const fk = 0, Ji = Ct(Ct({}, n0), {}, {
4698
+ const fk = 0, Ji = bt(bt({}, n0), {}, {
4699
4699
  axis(t, e, {
4700
4700
  axis: r
4701
4701
  }) {
@@ -4900,7 +4900,7 @@ const qr = {
4900
4900
  mouse: 0,
4901
4901
  touch: 0,
4902
4902
  pen: 8
4903
- }, NS = Ct(Ct({}, Ji), {}, {
4903
+ }, NS = bt(bt({}, Ji), {}, {
4904
4904
  device(t, e, {
4905
4905
  pointer: {
4906
4906
  touch: r = !1,
@@ -4955,7 +4955,7 @@ const qr = {
4955
4955
  }
4956
4956
  },
4957
4957
  axisThreshold(t) {
4958
- return t ? Ct(Ct({}, KB), t) : KB;
4958
+ return t ? bt(bt({}, KB), t) : KB;
4959
4959
  },
4960
4960
  keyboardDisplacement(t = xk) {
4961
4961
  return t;
@@ -5122,7 +5122,7 @@ class Fk extends PS {
5122
5122
  });
5123
5123
  }
5124
5124
  }
5125
- const Sk = Ct(Ct({}, n0), {}, {
5125
+ const Sk = bt(bt({}, n0), {}, {
5126
5126
  device(t, e, {
5127
5127
  shared: r,
5128
5128
  pointer: {
@@ -5187,7 +5187,7 @@ class Uk extends bl {
5187
5187
  e("pointer", "change", this.move.bind(this)), e("pointer", "leave", this.moveEnd.bind(this));
5188
5188
  }
5189
5189
  }
5190
- const Qk = Ct(Ct({}, Ji), {}, {
5190
+ const Qk = bt(bt({}, Ji), {}, {
5191
5191
  mouseOnly: (t = !0) => t
5192
5192
  });
5193
5193
  class Ik extends bl {
@@ -5248,7 +5248,7 @@ class Mk extends bl {
5248
5248
  e("pointer", "enter", this.enter.bind(this)), e("pointer", "leave", this.leave.bind(this));
5249
5249
  }
5250
5250
  }
5251
- const Rk = Ct(Ct({}, Ji), {}, {
5251
+ const Rk = bt(bt({}, Ji), {}, {
5252
5252
  mouseOnly: (t = !0) => t
5253
5253
  }), a0 = /* @__PURE__ */ new Map(), zv = /* @__PURE__ */ new Map();
5254
5254
  function Pk(t) {
@@ -5356,14 +5356,14 @@ function Wk(t, e, r = {}) {
5356
5356
  transform: s
5357
5357
  }, zk), e) {
5358
5358
  const u = zv.get(e);
5359
- r[e] = Zu(Ct({
5359
+ r[e] = Zu(bt({
5360
5360
  shared: r.shared
5361
5361
  }, l), u);
5362
5362
  } else
5363
5363
  for (const u in l) {
5364
5364
  const c = zv.get(u);
5365
5365
  if (c)
5366
- r[u] = Zu(Ct({
5366
+ r[u] = Zu(bt({
5367
5367
  shared: r.shared
5368
5368
  }, l[u]), c);
5369
5369
  else if (process.env.NODE_ENV === "development" && !["drag", "pinch", "scroll", "wheel", "move", "hover"].includes(u)) {
@@ -5379,7 +5379,7 @@ class _S {
5379
5379
  Nt(this, "_listeners", /* @__PURE__ */ new Set()), this._ctrl = e, this._gestureKey = r;
5380
5380
  }
5381
5381
  add(e, r, n, a, i) {
5382
- const o = this._listeners, A = rk(r, n), s = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, l = Ct(Ct({}, s), i);
5382
+ const o = this._listeners, A = rk(r, n), s = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, l = bt(bt({}, s), i);
5383
5383
  e.addEventListener(A, a, l);
5384
5384
  const u = () => {
5385
5385
  e.removeEventListener(A, a, l), o.delete(u);
@@ -5450,7 +5450,7 @@ class jk {
5450
5450
  }
5451
5451
  const i = GB(n, r.eventOptions, !!a);
5452
5452
  for (const o in this.nativeHandlers)
5453
- i(o, "", (A) => this.nativeHandlers[o](Ct(Ct({}, this.state.shared), {}, {
5453
+ i(o, "", (A) => this.nativeHandlers[o](bt(bt({}, this.state.shared), {}, {
5454
5454
  event: A,
5455
5455
  args: e
5456
5456
  })), void 0, !0);
@@ -5649,7 +5649,7 @@ var oN = {
5649
5649
  };
5650
5650
  };
5651
5651
  function $S(t) {
5652
- var e = t.scaleXMin, r = e === void 0 ? 0 : e, n = t.scaleXMax, a = n === void 0 ? 1 / 0 : n, i = t.scaleYMin, o = i === void 0 ? 0 : i, A = t.scaleYMax, s = A === void 0 ? 1 / 0 : A, l = t.initialTransformMatrix, u = l === void 0 ? oN : l, c = t.wheelDelta, f = c === void 0 ? AN : c, d = t.pinchDelta, h = d === void 0 ? sN : d, p = t.width, g = t.height, v = t.constrain, y = t.children, m = wt(null), w = wt(u), C = Xe(u), T = C[0], B = C[1], E = Xe(!1), x = E[0], b = E[1], F = Xe(void 0), U = F[0], S = F[1], I = Xe(void 0), L = I[0], O = I[1], M = Ke(function(fe, ne) {
5652
+ var e = t.scaleXMin, r = e === void 0 ? 0 : e, n = t.scaleXMax, a = n === void 0 ? 1 / 0 : n, i = t.scaleYMin, o = i === void 0 ? 0 : i, A = t.scaleYMax, s = A === void 0 ? 1 / 0 : A, l = t.initialTransformMatrix, u = l === void 0 ? oN : l, c = t.wheelDelta, f = c === void 0 ? AN : c, d = t.pinchDelta, h = d === void 0 ? sN : d, p = t.width, g = t.height, v = t.constrain, y = t.children, m = St(null), w = St(u), C = Xe(u), T = C[0], B = C[1], E = Xe(!1), x = E[0], b = E[1], F = Xe(void 0), U = F[0], S = F[1], I = Xe(void 0), L = I[0], O = I[1], M = Ke(function(fe, ne) {
5653
5653
  if (v) return v(fe, ne);
5654
5654
  var le = fe.scaleX, he = fe.scaleY, de = le > a || le < r, se = he > s || he < o;
5655
5655
  return de || se ? ne : fe;
@@ -5894,7 +5894,7 @@ function cN({ debounce: t, scroll: e, polyfill: r, offsetSize: n } = { debounce:
5894
5894
  const a = r || (typeof window > "u" ? class {
5895
5895
  } : window.ResizeObserver);
5896
5896
  if (!a) throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");
5897
- const [i, o] = Xe({ left: 0, top: 0, width: 0, height: 0, bottom: 0, right: 0, x: 0, y: 0 }), A = wt({ element: null, scrollContainers: null, resizeObserver: null, lastBounds: i, orientationHandler: null }), s = t ? typeof t == "number" ? t : t.scroll : null, l = t ? typeof t == "number" ? t : t.resize : null, u = wt(!1);
5897
+ const [i, o] = Xe({ left: 0, top: 0, width: 0, height: 0, bottom: 0, right: 0, x: 0, y: 0 }), A = St({ element: null, scrollContainers: null, resizeObserver: null, lastBounds: i, orientationHandler: null }), s = t ? typeof t == "number" ? t : t.scroll : null, l = t ? typeof t == "number" ? t : t.resize : null, u = St(!1);
5898
5898
  _t(() => (u.current = !0, () => void (u.current = !1)));
5899
5899
  const [c, f, d] = tt(() => {
5900
5900
  const v = () => {
@@ -9735,7 +9735,7 @@ function Em(t) {
9735
9735
  }, A));
9736
9736
  }
9737
9737
  function xV(t) {
9738
- var e = Xe(t), r = e[0], n = e[1], a = wt(null), i = Ke(function(o, A) {
9738
+ var e = Xe(t), r = e[0], n = e[1], a = St(null), i = Ke(function(o, A) {
9739
9739
  a.current = A || null, n(o);
9740
9740
  }, [n]);
9741
9741
  return aS(function() {
@@ -9816,7 +9816,7 @@ function In() {
9816
9816
  }, In.apply(this, arguments);
9817
9817
  }
9818
9818
  function QV(t) {
9819
- var e = t === void 0 ? {} : t, r = e.resetOnStart, n = r === void 0 ? !1 : r, a = e.snapToPointer, i = a === void 0 ? !0 : a, o = e.onDragEnd, A = e.onDragMove, s = e.onDragStart, l = e.x, u = e.y, c = e.dx, f = e.dy, d = e.isDragging, h = e.restrict, p = h === void 0 ? {} : h, g = e.restrictToPath, v = wt({
9819
+ var e = t === void 0 ? {} : t, r = e.resetOnStart, n = r === void 0 ? !1 : r, a = e.snapToPointer, i = a === void 0 ? !0 : a, o = e.onDragEnd, A = e.onDragMove, s = e.onDragStart, l = e.x, u = e.y, c = e.dx, f = e.dy, d = e.isDragging, h = e.restrict, p = h === void 0 ? {} : h, g = e.restrictToPath, v = St({
9820
9820
  x: l,
9821
9821
  y: u,
9822
9822
  dx: c,
@@ -10213,7 +10213,7 @@ var KV = [], MC = {
10213
10213
  left: 0
10214
10214
  };
10215
10215
  function rd(t) {
10216
- var e = t === void 0 ? {} : t, r = e.initialSize, n = r === void 0 ? MC : r, a = e.debounceTime, i = a === void 0 ? 300 : a, o = e.ignoreDimensions, A = o === void 0 ? KV : o, s = e.enableDebounceLeadingCall, l = s === void 0 ? !0 : s, u = e.resizeObserverPolyfill, c = wt(null), f = wt(0), d = Xe(Vc({}, MC, n)), h = d[0], p = d[1], g = tt(function() {
10216
+ var e = t === void 0 ? {} : t, r = e.initialSize, n = r === void 0 ? MC : r, a = e.debounceTime, i = a === void 0 ? 300 : a, o = e.ignoreDimensions, A = o === void 0 ? KV : o, s = e.enableDebounceLeadingCall, l = s === void 0 ? !0 : s, u = e.resizeObserverPolyfill, c = St(null), f = St(0), d = Xe(Vc({}, MC, n)), h = d[0], p = d[1], g = tt(function() {
10217
10217
  var v = Array.isArray(A) ? A : [A];
10218
10218
  return VV(function(y) {
10219
10219
  p(function(m) {
@@ -10809,7 +10809,7 @@ function YV() {
10809
10809
  var WV = YV();
10810
10810
  const $U = /* @__PURE__ */ ga(WV), zU = Zi({});
10811
10811
  function XV(t) {
10812
- const e = wt(null);
10812
+ const e = St(null);
10813
10813
  return e.current === null && (e.current = t()), e.current;
10814
10814
  }
10815
10815
  const v0 = typeof window < "u", jV = v0 ? aS : _t, m0 = /* @__PURE__ */ Zi(null);
@@ -11129,7 +11129,7 @@ function bK({ hue: t, saturation: e, lightness: r, alpha: n }) {
11129
11129
  function Kc(t, e) {
11130
11130
  return (r) => r > 0 ? e : t;
11131
11131
  }
11132
- const bt = (t, e, r) => t + (e - t) * r, Cp = (t, e, r) => {
11132
+ const Bt = (t, e, r) => t + (e - t) * r, Cp = (t, e, r) => {
11133
11133
  const n = t * t, a = r * (e * e - n) + n;
11134
11134
  return a < 0 ? 0 : Math.sqrt(a);
11135
11135
  }, CK = [Fm, Qi, ko], xK = (t) => CK.find((e) => e.test(t));
@@ -11145,13 +11145,13 @@ const GC = (t, e) => {
11145
11145
  if (!r || !n)
11146
11146
  return Kc(t, e);
11147
11147
  const a = { ...r };
11148
- return (i) => (a.red = Cp(r.red, n.red, i), a.green = Cp(r.green, n.green, i), a.blue = Cp(r.blue, n.blue, i), a.alpha = bt(r.alpha, n.alpha, i), Qi.transform(a));
11148
+ return (i) => (a.red = Cp(r.red, n.red, i), a.green = Cp(r.green, n.green, i), a.blue = Cp(r.blue, n.blue, i), a.alpha = Bt(r.alpha, n.alpha, i), Qi.transform(a));
11149
11149
  }, Sm = /* @__PURE__ */ new Set(["none", "hidden"]);
11150
11150
  function EK(t, e) {
11151
11151
  return Sm.has(t) ? (r) => r <= 0 ? t : e : (r) => r >= 1 ? e : t;
11152
11152
  }
11153
11153
  function TK(t, e) {
11154
- return (r) => bt(t, e, r);
11154
+ return (r) => Bt(t, e, r);
11155
11155
  }
11156
11156
  function Q0(t) {
11157
11157
  return typeof t == "number" ? TK : typeof t == "string" ? F0(t) ? Kc : kt.test(t) ? GC : UK : Array.isArray(t) ? pQ : typeof t == "object" ? kt.test(t) ? GC : FK : Kc;
@@ -11187,7 +11187,7 @@ const UK = (t, e) => {
11187
11187
  return n.indexes.var.length === a.indexes.var.length && n.indexes.color.length === a.indexes.color.length && n.indexes.number.length >= a.indexes.number.length ? Sm.has(t) && !a.values.length || Sm.has(e) && !n.values.length ? EK(t, e) : Tl(pQ(SK(n, a), a.values), r) : (TA(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Kc(t, e));
11188
11188
  };
11189
11189
  function gQ(t, e, r) {
11190
- return typeof t == "number" && typeof e == "number" && typeof r == "number" ? bt(t, e, r) : Q0(t)(t, e);
11190
+ return typeof t == "number" && typeof e == "number" && typeof r == "number" ? Bt(t, e, r) : Q0(t)(t, e);
11191
11191
  }
11192
11192
  const QK = (t) => {
11193
11193
  const e = ({ timestamp: r }) => t(r);
@@ -11228,7 +11228,7 @@ function mQ(t, e, r) {
11228
11228
  const n = Math.max(e - DK, 0);
11229
11229
  return jU(r - t(n), e - n);
11230
11230
  }
11231
- const Bt = {
11231
+ const wt = {
11232
11232
  // Default spring physics
11233
11233
  stiffness: 100,
11234
11234
  damping: 10,
@@ -11257,11 +11257,11 @@ const Bt = {
11257
11257
  minDamping: 0.05,
11258
11258
  maxDamping: 1
11259
11259
  }, xp = 1e-3;
11260
- function LK({ duration: t = Bt.duration, bounce: e = Bt.bounce, velocity: r = Bt.velocity, mass: n = Bt.mass }) {
11260
+ function LK({ duration: t = wt.duration, bounce: e = wt.bounce, velocity: r = wt.velocity, mass: n = wt.mass }) {
11261
11261
  let a, i;
11262
- TA(t <= /* @__PURE__ */ vn(Bt.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
11262
+ TA(t <= /* @__PURE__ */ vn(wt.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
11263
11263
  let o = 1 - e;
11264
- o = Aa(Bt.minDamping, Bt.maxDamping, o), t = Aa(Bt.minDuration, Bt.maxDuration, /* @__PURE__ */ tn(t)), o < 1 ? (a = (l) => {
11264
+ o = Aa(wt.minDamping, wt.maxDamping, o), t = Aa(wt.minDuration, wt.maxDuration, /* @__PURE__ */ tn(t)), o < 1 ? (a = (l) => {
11265
11265
  const u = l * o, c = u * t, f = u - r, d = Um(l, o), h = Math.exp(-c);
11266
11266
  return xp - f / d * h;
11267
11267
  }, i = (l) => {
@@ -11277,8 +11277,8 @@ function LK({ duration: t = Bt.duration, bounce: e = Bt.bounce, velocity: r = Bt
11277
11277
  const A = 5 / t, s = MK(a, i, A);
11278
11278
  if (t = /* @__PURE__ */ vn(t), isNaN(s))
11279
11279
  return {
11280
- stiffness: Bt.stiffness,
11281
- damping: Bt.damping,
11280
+ stiffness: wt.stiffness,
11281
+ damping: wt.damping,
11282
11282
  duration: t
11283
11283
  };
11284
11284
  {
@@ -11306,10 +11306,10 @@ function $C(t, e) {
11306
11306
  }
11307
11307
  function kK(t) {
11308
11308
  let e = {
11309
- velocity: Bt.velocity,
11310
- stiffness: Bt.stiffness,
11311
- damping: Bt.damping,
11312
- mass: Bt.mass,
11309
+ velocity: wt.velocity,
11310
+ stiffness: wt.stiffness,
11311
+ damping: wt.damping,
11312
+ mass: wt.mass,
11313
11313
  isResolvedFromDuration: !1,
11314
11314
  ...t
11315
11315
  };
@@ -11318,7 +11318,7 @@ function kK(t) {
11318
11318
  const r = t.visualDuration, n = 2 * Math.PI / (r * 1.2), a = n * n, i = 2 * Aa(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(a);
11319
11319
  e = {
11320
11320
  ...e,
11321
- mass: Bt.mass,
11321
+ mass: wt.mass,
11322
11322
  stiffness: a,
11323
11323
  damping: i
11324
11324
  };
@@ -11327,12 +11327,12 @@ function kK(t) {
11327
11327
  e = {
11328
11328
  ...e,
11329
11329
  ...r,
11330
- mass: Bt.mass
11330
+ mass: wt.mass
11331
11331
  }, e.isResolvedFromDuration = !0;
11332
11332
  }
11333
11333
  return e;
11334
11334
  }
11335
- function $c(t = Bt.visualDuration, e = Bt.bounce) {
11335
+ function $c(t = wt.visualDuration, e = wt.bounce) {
11336
11336
  const r = typeof t != "object" ? {
11337
11337
  visualDuration: t,
11338
11338
  keyframes: [0, 1],
@@ -11343,7 +11343,7 @@ function $c(t = Bt.visualDuration, e = Bt.bounce) {
11343
11343
  ...r,
11344
11344
  velocity: -/* @__PURE__ */ tn(r.velocity || 0)
11345
11345
  }), h = f || 0, p = l / (2 * Math.sqrt(s * u)), g = o - i, v = /* @__PURE__ */ tn(Math.sqrt(s / u)), y = Math.abs(g) < 5;
11346
- n || (n = y ? Bt.restSpeed.granular : Bt.restSpeed.default), a || (a = y ? Bt.restDelta.granular : Bt.restDelta.default);
11346
+ n || (n = y ? wt.restSpeed.granular : wt.restSpeed.default), a || (a = y ? wt.restDelta.granular : wt.restDelta.default);
11347
11347
  let m;
11348
11348
  if (p < 1) {
11349
11349
  const C = Um(v, p);
@@ -11455,7 +11455,7 @@ function _K(t, e) {
11455
11455
  const r = t[t.length - 1];
11456
11456
  for (let n = 1; n <= e; n++) {
11457
11457
  const a = /* @__PURE__ */ Xs(0, e, n);
11458
- t.push(bt(r, 1, a));
11458
+ t.push(Bt(r, 1, a));
11459
11459
  }
11460
11460
  }
11461
11461
  function VK(t) {
@@ -13073,7 +13073,7 @@ function mG(t, e, r) {
13073
13073
  }
13074
13074
  const Y0 = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), yG = "framerAppearId", WQ = "data-" + Y0(yG), XQ = Zi({});
13075
13075
  function wG(t, e, r, n, a) {
13076
- const { visualElement: i } = Ir(nd), o = Ir(kQ), A = Ir(m0), s = Ir(PQ).reducedMotion, l = wt(null);
13076
+ const { visualElement: i } = Ir(nd), o = Ir(kQ), A = Ir(m0), s = Ir(PQ).reducedMotion, l = St(null);
13077
13077
  n = n || o.renderer, !l.current && n && (l.current = n(t, {
13078
13078
  visualState: e,
13079
13079
  parent: i,
@@ -13084,11 +13084,11 @@ function wG(t, e, r, n, a) {
13084
13084
  }));
13085
13085
  const u = l.current, c = Ir(XQ);
13086
13086
  u && !u.projection && a && (u.type === "html" || u.type === "svg") && BG(l.current, r, a, c);
13087
- const f = wt(!1);
13087
+ const f = St(!1);
13088
13088
  bM(() => {
13089
13089
  u && f.current && u.update(r, A);
13090
13090
  });
13091
- const d = r[WQ], h = wt(!!d && !window.MotionHandoffIsComplete?.(d) && window.MotionHasOptimisedAnimation?.(d));
13091
+ const d = r[WQ], h = St(!!d && !window.MotionHandoffIsComplete?.(d) && window.MotionHasOptimisedAnimation?.(d));
13092
13092
  return jV(() => {
13093
13093
  u && (f.current = !0, window.MotionIsMounted = !0, u.updateFeatures(), u.scheduleRenderMicrotask(), h.current && u.animationState && u.animationState.animateChanges());
13094
13094
  }), _t(() => {
@@ -13246,7 +13246,7 @@ function _o(t, e) {
13246
13246
  t.min = t.min + e, t.max = t.max + e;
13247
13247
  }
13248
13248
  function f1(t, e, r, n, a = 0.5) {
13249
- const i = bt(t.min, t.max, a);
13249
+ const i = Bt(t.min, t.max, a);
13250
13250
  _m(t, e, r, i, n);
13251
13251
  }
13252
13252
  function Vo(t, e) {
@@ -14036,7 +14036,7 @@ function p$(t, e, r) {
14036
14036
  return Math.abs(t - e) <= r;
14037
14037
  }
14038
14038
  function v1(t, e, r, n = 0.5) {
14039
- t.origin = n, t.originPoint = bt(e.min, e.max, t.origin), t.scale = Br(r) / Br(e), t.translate = bt(r.min, r.max, t.origin) - t.originPoint, (t.scale >= c$ && t.scale <= f$ || isNaN(t.scale)) && (t.scale = 1), (t.translate >= d$ && t.translate <= h$ || isNaN(t.translate)) && (t.translate = 0);
14039
+ t.origin = n, t.originPoint = Bt(e.min, e.max, t.origin), t.scale = Br(r) / Br(e), t.translate = Bt(r.min, r.max, t.origin) - t.originPoint, (t.scale >= c$ && t.scale <= f$ || isNaN(t.scale)) && (t.scale = 1), (t.translate >= d$ && t.translate <= h$ || isNaN(t.translate)) && (t.translate = 0);
14040
14040
  }
14041
14041
  function Es(t, e, r, n) {
14042
14042
  v1(t.x, e.x, r.x, n ? n.originX : void 0), v1(t.y, e.y, r.y, n ? n.originY : void 0);
@@ -14136,7 +14136,7 @@ function y$(t, e) {
14136
14136
  return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
14137
14137
  }
14138
14138
  function w$(t, { min: e, max: r }, n) {
14139
- return e !== void 0 && t < e ? t = n ? bt(e, t, n.min) : Math.max(t, e) : r !== void 0 && t > r && (t = n ? bt(r, t, n.max) : Math.min(t, r)), t;
14139
+ return e !== void 0 && t < e ? t = n ? Bt(e, t, n.min) : Math.max(t, e) : r !== void 0 && t > r && (t = n ? Bt(r, t, n.max) : Math.min(t, r)), t;
14140
14140
  }
14141
14141
  function b1(t, e, r) {
14142
14142
  return {
@@ -14346,7 +14346,7 @@ class F$ {
14346
14346
  const { projection: a } = this.visualElement, i = this.getAxisMotionValue(r);
14347
14347
  if (a && a.layout) {
14348
14348
  const { min: o, max: A } = a.layout.layoutBox[r];
14349
- i.set(e[r] - bt(o, A, 0.5));
14349
+ i.set(e[r] - Bt(o, A, 0.5));
14350
14350
  }
14351
14351
  });
14352
14352
  }
@@ -14375,7 +14375,7 @@ class F$ {
14375
14375
  if (!su(o, e, null))
14376
14376
  return;
14377
14377
  const A = this.getAxisMotionValue(o), { min: s, max: l } = this.constraints[o];
14378
- A.set(bt(s, l, a[o]));
14378
+ A.set(Bt(s, l, a[o]));
14379
14379
  });
14380
14380
  }
14381
14381
  addListeners() {
@@ -14500,7 +14500,7 @@ const KA = {
14500
14500
  return n;
14501
14501
  const i = Wa.createTransformer(t), o = typeof a[0] != "number" ? 1 : 0, A = r.x.scale * e.x, s = r.y.scale * e.y;
14502
14502
  a[0 + o] /= A, a[1 + o] /= s;
14503
- const l = bt(A, s, 0.5);
14503
+ const l = Bt(A, s, 0.5);
14504
14504
  return typeof a[2 + o] == "number" && (a[2 + o] /= l), typeof a[3 + o] == "number" && (a[3 + o] /= l), i(a);
14505
14505
  }
14506
14506
  };
@@ -14593,15 +14593,15 @@ function P$(t, e) {
14593
14593
  }
14594
14594
  const gI = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], k$ = gI.length, S1 = (t) => typeof t == "string" ? parseFloat(t) : t, U1 = (t) => typeof t == "number" || Ne.test(t);
14595
14595
  function N$(t, e, r, n, a, i) {
14596
- a ? (t.opacity = bt(0, r.opacity ?? 1, H$(n)), t.opacityExit = bt(e.opacity ?? 1, 0, _$(n))) : i && (t.opacity = bt(e.opacity ?? 1, r.opacity ?? 1, n));
14596
+ a ? (t.opacity = Bt(0, r.opacity ?? 1, H$(n)), t.opacityExit = Bt(e.opacity ?? 1, 0, _$(n))) : i && (t.opacity = Bt(e.opacity ?? 1, r.opacity ?? 1, n));
14597
14597
  for (let o = 0; o < k$; o++) {
14598
14598
  const A = `border${gI[o]}Radius`;
14599
14599
  let s = Q1(e, A), l = Q1(r, A);
14600
14600
  if (s === void 0 && l === void 0)
14601
14601
  continue;
14602
- s || (s = 0), l || (l = 0), s === 0 || l === 0 || U1(s) === U1(l) ? (t[A] = Math.max(bt(S1(s), S1(l), n), 0), (Pn.test(l) || Pn.test(s)) && (t[A] += "%")) : t[A] = l;
14602
+ s || (s = 0), l || (l = 0), s === 0 || l === 0 || U1(s) === U1(l) ? (t[A] = Math.max(Bt(S1(s), S1(l), n), 0), (Pn.test(l) || Pn.test(s)) && (t[A] += "%")) : t[A] = l;
14603
14603
  }
14604
- (e.rotate || r.rotate) && (t.rotate = bt(e.rotate || 0, r.rotate || 0, n));
14604
+ (e.rotate || r.rotate) && (t.rotate = Bt(e.rotate || 0, r.rotate || 0, n));
14605
14605
  }
14606
14606
  function Q1(t, e) {
14607
14607
  return t[e] !== void 0 ? t[e] : t.borderRadius;
@@ -14623,9 +14623,9 @@ function L1(t, e, r, n, a) {
14623
14623
  return t -= e, t = Yc(t, 1 / r, n), a !== void 0 && (t = Yc(t, 1 / a, n)), t;
14624
14624
  }
14625
14625
  function V$(t, e = 0, r = 1, n = 0.5, a, i = t, o = t) {
14626
- if (Pn.test(e) && (e = parseFloat(e), e = bt(o.min, o.max, e / 100) - o.min), typeof e != "number")
14626
+ if (Pn.test(e) && (e = parseFloat(e), e = Bt(o.min, o.max, e / 100) - o.min), typeof e != "number")
14627
14627
  return;
14628
- let A = bt(i.min, i.max, n);
14628
+ let A = Bt(i.min, i.max, n);
14629
14629
  t === i && (A -= e), t.min = L1(t.min, e, r, A, a), t.max = L1(t.max, e, r, A, a);
14630
14630
  }
14631
14631
  function O1(t, e, [r, n, a], i, o) {
@@ -15269,10 +15269,10 @@ function i3(t) {
15269
15269
  t.removeLeadSnapshot();
15270
15270
  }
15271
15271
  function G1(t, e, r) {
15272
- t.translate = bt(e.translate, 0, r), t.scale = bt(e.scale, 1, r), t.origin = e.origin, t.originPoint = e.originPoint;
15272
+ t.translate = Bt(e.translate, 0, r), t.scale = Bt(e.scale, 1, r), t.origin = e.origin, t.originPoint = e.originPoint;
15273
15273
  }
15274
15274
  function $1(t, e, r, n) {
15275
- t.min = bt(e.min, r.min, n), t.max = bt(e.max, r.max, n);
15275
+ t.min = Bt(e.min, r.min, n), t.max = Bt(e.max, r.max, n);
15276
15276
  }
15277
15277
  function o3(t, e, r, n) {
15278
15278
  $1(t.x, e.x, r.x, n), $1(t.y, e.y, r.y, n);
@@ -15555,7 +15555,7 @@ const Ad = (t, e, r = 0.03) => {
15555
15555
  controls: {
15556
15556
  selectionType: t.initialState?.controls?.selectionType ? t.initialState?.controls?.selectionType : t.selectable ? "select" : "pan"
15557
15557
  }
15558
- }, { parentRef: a, width: i, height: o } = rd(), A = Math.min(o, i), s = wt(null), l = Le.useRef(null), [u, c] = Le.useState(null), [f, d] = Le.useState(!1), [h, p] = Xe([]), [g, v] = Xe(n.controls.selectionType), [y, m] = Xe(n.minimap.open), [w, C] = Xe(0), [T, B] = Xe(0), E = t.selectable ? t.selectable : !1, x = { top: 20, left: 70 }, b = Math.min(A * 0.9, A * 0.9) - x.left, F = b, U = u ? t.pointData.find((ae) => ae.x === u.x && ae.y === u.y) : null, [S, I] = Xe([]), L = t.downloadButton ?? "none", [O, M] = Xe(!!t.animation);
15558
+ }, { parentRef: a, width: i, height: o } = rd(), A = Math.min(o, i), s = St(null), l = Le.useRef(null), [u, c] = Le.useState(null), [f, d] = Le.useState(!1), [h, p] = Xe([]), [g, v] = Xe(n.controls.selectionType), [y, m] = Xe(n.minimap.open), [w, C] = Xe(0), [T, B] = Xe(0), E = t.selectable ? t.selectable : !1, x = { top: 20, left: 70 }, b = Math.min(A * 0.9, A * 0.9) - x.left, F = b, U = u ? t.pointData.find((ae) => ae.x === u.x && ae.y === u.y) : null, [S, I] = Xe([]), L = t.downloadButton ?? "none", [O, M] = Xe(!!t.animation);
15559
15559
  _t(() => {
15560
15560
  if (!t.animation) return;
15561
15561
  if (t.pointData.length > 2500) {
@@ -16142,10 +16142,10 @@ var Kt = typeof window > "u" ? null : window, Z1 = Kt ? Kt.navigator : null;
16142
16142
  Kt && Kt.document;
16143
16143
  var R3 = Yt(""), TI = Yt({}), P3 = Yt(function() {
16144
16144
  }), k3 = typeof HTMLElement > "u" ? "undefined" : Yt(HTMLElement), Ql = function(e) {
16145
- return e && e.instanceString && Et(e.instanceString) ? e.instanceString() : null;
16145
+ return e && e.instanceString && xt(e.instanceString) ? e.instanceString() : null;
16146
16146
  }, Me = function(e) {
16147
16147
  return e != null && Yt(e) == R3;
16148
- }, Et = function(e) {
16148
+ }, xt = function(e) {
16149
16149
  return e != null && Yt(e) === P3;
16150
16150
  }, ut = function(e) {
16151
16151
  return !Hr(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array);
@@ -16179,7 +16179,7 @@ var R3 = Yt(""), TI = Yt({}), P3 = Yt(function() {
16179
16179
  }, K3 = function(e) {
16180
16180
  return Ye(e) && Ce(e.x1) && Ce(e.x2) && Ce(e.y1) && Ce(e.y2);
16181
16181
  }, G3 = function(e) {
16182
- return N3(e) && Et(e.then);
16182
+ return N3(e) && xt(e.then);
16183
16183
  }, $3 = function() {
16184
16184
  return Z1 && Z1.userAgent.match(/msie|trident|edge/i);
16185
16185
  }, hA = function(e, r) {
@@ -16722,7 +16722,7 @@ var dz = fz(), Ml = /* @__PURE__ */ Dl(dz), Xp = Kt ? Kt.performance : null, MI
16722
16722
  }, gx = function() {
16723
16723
  return 0;
16724
16724
  }, rw = function() {
16725
- }, xt = function(e) {
16725
+ }, Ct = function(e) {
16726
16726
  throw new Error(e);
16727
16727
  }, HI = function(e) {
16728
16728
  if (e !== void 0)
@@ -16861,12 +16861,12 @@ var dz = fz(), Ml = /* @__PURE__ */ Dl(dz), Xp = Kt ? Kt.performance : null, MI
16861
16861
  }(), QA = (typeof Set > "u" ? "undefined" : Yt(Set)) !== xz ? Set : Ez, ud = function(e, r) {
16862
16862
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
16863
16863
  if (e === void 0 || r === void 0 || !Z0(e)) {
16864
- xt("An element must have a core reference and parameters set");
16864
+ Ct("An element must have a core reference and parameters set");
16865
16865
  return;
16866
16866
  }
16867
16867
  var a = r.group;
16868
16868
  if (a == null && (r.data && r.data.source != null && r.data.target != null ? a = "edges" : a = "nodes"), a !== "nodes" && a !== "edges") {
16869
- xt("An element must be of type `nodes` or `edges`; you specified `" + a + "`");
16869
+ Ct("An element must be of type `nodes` or `edges`; you specified `" + a + "`");
16870
16870
  return;
16871
16871
  }
16872
16872
  this.length = 1, this[0] = this;
@@ -16984,7 +16984,7 @@ var dz = fz(), Ml = /* @__PURE__ */ Dl(dz), Xp = Kt ? Kt.performance : null, MI
16984
16984
  dfs: e.dfs || !e.bfs
16985
16985
  }, function(n, a, i) {
16986
16986
  var o;
16987
- Ye(n) && !Hr(n) && (o = n, n = o.roots || o.root, a = o.visit, i = o.directed), i = arguments.length === 2 && !Et(a) ? a : i, a = Et(a) ? a : function() {
16987
+ Ye(n) && !Hr(n) && (o = n, n = o.roots || o.root, a = o.visit, i = o.directed), i = arguments.length === 2 && !xt(a) ? a : i, a = xt(a) ? a : function() {
16988
16988
  };
16989
16989
  for (var A = this._private.cy, s = n = Me(n) ? this.filter(n) : n, l = [], u = [], c = {}, f = {}, d = {}, h = 0, p, g = this.byGroup(), v = g.nodes, y = g.edges, m = 0; m < s.length; m++) {
16990
16990
  var w = s[m], C = w.id();
@@ -17432,7 +17432,7 @@ var Uz = Sz(), Rl = /* @__PURE__ */ Dl(Uz), Qz = lr({
17432
17432
  }
17433
17433
  // bellmanFord
17434
17434
  }, Nz = Math.sqrt(2), Hz = function(e, r, n) {
17435
- n.length === 0 && xt("Karger-Stein must be run on a connected (sub)graph");
17435
+ n.length === 0 && Ct("Karger-Stein must be run on a connected (sub)graph");
17436
17436
  for (var a = n[e], i = a[1], o = a[2], A = r[i], s = r[o], l = n, u = l.length - 1; u >= 0; u--) {
17437
17437
  var c = l[u], f = c[1], d = c[2];
17438
17438
  (r[f] === A && r[d] === s || r[f] === s && r[d] === A) && l.splice(u, 1);
@@ -17460,7 +17460,7 @@ var Uz = Sz(), Rl = /* @__PURE__ */ Dl(Uz), Qz = lr({
17460
17460
  });
17461
17461
  var i = n.length, o = a.length, A = Math.ceil(Math.pow(Math.log(i) / Math.LN2, 2)), s = Math.floor(i / Nz);
17462
17462
  if (i < 2) {
17463
- xt("At least 2 nodes are required for Karger-Stein algorithm");
17463
+ Ct("At least 2 nodes are required for Karger-Stein algorithm");
17464
17464
  return;
17465
17465
  }
17466
17466
  for (var l = [], u = 0; u < o; u++) {
@@ -18402,7 +18402,7 @@ gA["squared-euclidean"] = gA.squaredEuclidean;
18402
18402
  gA.squaredeuclidean = gA.squaredEuclidean;
18403
18403
  function fd(t, e, r, n, a, i) {
18404
18404
  var o;
18405
- return Et(t) ? o = t : o = gA[t] || gA.euclidean, e === 0 && Et(t) ? o(a, i) : o(e, r, n, a, i);
18405
+ return xt(t) ? o = t : o = gA[t] || gA.euclidean, e === 0 && xt(t) ? o(a, i) : o(e, r, n, a, i);
18406
18406
  }
18407
18407
  var OY = lr({
18408
18408
  k: 2,
@@ -18715,11 +18715,11 @@ var OY = lr({
18715
18715
  ]
18716
18716
  }), XY = function(e) {
18717
18717
  var r = e.damping, n = e.preference;
18718
- 0.5 <= r && r < 1 || xt("Damping must range on [0.5, 1). Got: ".concat(r));
18718
+ 0.5 <= r && r < 1 || Ct("Damping must range on [0.5, 1). Got: ".concat(r));
18719
18719
  var a = ["median", "mean", "min", "max"];
18720
18720
  return a.some(function(i) {
18721
18721
  return i === n;
18722
- }) || Ce(n) || xt("Preference must be one of [".concat(a.map(function(i) {
18722
+ }) || Ce(n) || Ct("Preference must be one of [".concat(a.map(function(i) {
18723
18723
  return "'".concat(i, "'");
18724
18724
  }).join(", "), "] or a number. Got: ").concat(n)), WY(e);
18725
18725
  }, jY = function(e, r, n, a) {
@@ -19111,7 +19111,7 @@ var IA = typeof Promise < "u" ? Promise : wn, ey = function(e, r, n) {
19111
19111
  var a = Z0(e), i = !a, o = this._private = Re({
19112
19112
  duration: 1e3
19113
19113
  }, r, n);
19114
- if (o.target = e, o.style = o.style || o.css, o.started = !1, o.playing = !1, o.hooked = !1, o.applying = !1, o.progress = 0, o.completes = [], o.frames = [], o.complete && Et(o.complete) && o.completes.push(o.complete), i) {
19114
+ if (o.target = e, o.style = o.style || o.css, o.started = !1, o.playing = !1, o.hooked = !1, o.applying = !1, o.progress = 0, o.completes = [], o.frames = [], o.complete && xt(o.complete) && o.completes.push(o.complete), i) {
19115
19115
  var A = e.position();
19116
19116
  o.startPosition = o.startPosition || {
19117
19117
  x: A.x,
@@ -20004,7 +20004,7 @@ var jW = XW(), qW = /* @__PURE__ */ Dl(jW), ZW = {
20004
20004
  }
20005
20005
  }
20006
20006
  o.updateStyle && A.updateStyle(), o.onSet(A), o.settingTriggersEvent && A[o.triggerFnName](o.settingEvent);
20007
- } else if (o.allowBinding && Et(a)) {
20007
+ } else if (o.allowBinding && xt(a)) {
20008
20008
  var F = a;
20009
20009
  A.on(o.bindingEvent, F);
20010
20010
  } else if (o.allowGetting && a === void 0) {
@@ -20884,12 +20884,12 @@ var fX = function(e) {
20884
20884
  type: Ie.COLLECTION,
20885
20885
  value: e.collection()
20886
20886
  }]
20887
- }) : Et(e) ? this.addQuery({
20887
+ }) : xt(e) ? this.addQuery({
20888
20888
  checks: [{
20889
20889
  type: Ie.FILTER,
20890
20890
  value: e
20891
20891
  }]
20892
- }) : Me(e) ? this.parse(e) || (this.invalid = !0) : xt("A selector must be created from a string; found "));
20892
+ }) : Me(e) ? this.parse(e) || (this.invalid = !0) : Ct("A selector must be created from a string; found "));
20893
20893
  }, Ja = Za.prototype;
20894
20894
  [sX, hX].forEach(function(t) {
20895
20895
  return Re(Ja, t);
@@ -21284,7 +21284,7 @@ mn = dD = {
21284
21284
  positions: function(e, r) {
21285
21285
  if (Ye(e))
21286
21286
  r ? this.silentPosition(e) : this.position(e);
21287
- else if (Et(e)) {
21287
+ else if (xt(e)) {
21288
21288
  var n = e, a = this.cy();
21289
21289
  a.startBatch();
21290
21290
  for (var i = 0; i < this.length; i++) {
@@ -21940,7 +21940,7 @@ function md() {
21940
21940
  this.context = e || this.context, this.listeners = [], this.emitting = 0;
21941
21941
  }
21942
21942
  var ei = md.prototype, bD = function(e, r, n, a, i, o, A) {
21943
- Et(a) && (i = a, a = null), A && (o == null ? o = A : o = Re({}, o, A));
21943
+ xt(a) && (i = a, a = null), A && (o == null ? o = A : o = Re({}, o, A));
21944
21944
  for (var s = ut(n) ? n : n.split(/\s+/), l = 0; l < s.length; l++) {
21945
21945
  var u = s[l];
21946
21946
  if (!Xa(u)) {
@@ -21979,7 +21979,7 @@ var ei = md.prototype, bD = function(e, r, n, a, i, o, A) {
21979
21979
  };
21980
21980
  ei.on = ei.addListener = function(t, e, r, n, a) {
21981
21981
  return bD(this, function(i, o, A, s, l, u, c) {
21982
- Et(u) && i.listeners.push({
21982
+ xt(u) && i.listeners.push({
21983
21983
  event: o,
21984
21984
  // full event string
21985
21985
  callback: u,
@@ -22153,7 +22153,7 @@ var xD = {
22153
22153
  return this;
22154
22154
  if (Me(e) || Hr(e))
22155
22155
  return new Za(e).filter(this);
22156
- if (Et(e)) {
22156
+ if (xt(e)) {
22157
22157
  for (var n = this.spawn(), a = this, i = 0; i < a.length; i++) {
22158
22158
  var o = a[i], A = r ? e.apply(r, [o, i, a]) : e(o, i, a);
22159
22159
  A && n.push(o);
@@ -22368,7 +22368,7 @@ var PX = {
22368
22368
  return l !== 0 ? l : e.poolIndex() - r.poolIndex();
22369
22369
  }, tf = {
22370
22370
  forEach: function(e, r) {
22371
- if (Et(e))
22371
+ if (xt(e))
22372
22372
  for (var n = this.length, a = 0; a < n; a++) {
22373
22373
  var i = this[a], o = r ? e.apply(r, [i, a, this]) : e(i, a, this);
22374
22374
  if (o === !1)
@@ -22407,7 +22407,7 @@ var PX = {
22407
22407
  return !this.empty();
22408
22408
  },
22409
22409
  sort: function(e) {
22410
- if (!Et(e))
22410
+ if (!xt(e))
22411
22411
  return this;
22412
22412
  var r = this.toArray().sort(e);
22413
22413
  return this.spawn(r);
@@ -22824,7 +22824,7 @@ function _E(t) {
22824
22824
  if (e.length === 2) {
22825
22825
  var n = e[0], a = e[1];
22826
22826
  this.on(t.event, n, a);
22827
- } else if (e.length === 1 && Et(e[0])) {
22827
+ } else if (e.length === 1 && xt(e[0])) {
22828
22828
  var i = e[0];
22829
22829
  this.on(t.event, i);
22830
22830
  } else if (e.length === 0 || e.length === 1 && ut(e[0])) {
@@ -23136,7 +23136,7 @@ pr.componentsOf = pr.components;
23136
23136
  var Ar = function(e, r) {
23137
23137
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
23138
23138
  if (e === void 0) {
23139
- xt("A collection must have a reference to the core");
23139
+ Ct("A collection must have a reference to the core");
23140
23140
  return;
23141
23141
  }
23142
23142
  var i = new ia(), o = !1;
@@ -23311,10 +23311,10 @@ dt.restore = function() {
23311
23311
  else if (Ce(p.id))
23312
23312
  p.id = "" + p.id;
23313
23313
  else if (Xa(p.id) || !Me(p.id)) {
23314
- xt("Can not create element with invalid string ID `" + p.id + "`"), f();
23314
+ Ct("Can not create element with invalid string ID `" + p.id + "`"), f();
23315
23315
  continue;
23316
23316
  } else if (n.hasElementWithId(p.id)) {
23317
- xt("Can not create second element with ID `" + p.id + "`"), f();
23317
+ Ct("Can not create second element with ID `" + p.id + "`"), f();
23318
23318
  continue;
23319
23319
  }
23320
23320
  }
@@ -23326,7 +23326,7 @@ dt.restore = function() {
23326
23326
  if (d.isEdge()) {
23327
23327
  for (var y = d, m = ["source", "target"], w = m.length, C = !1, T = 0; T < w; T++) {
23328
23328
  var B = m[T], E = p[B];
23329
- Ce(E) && (E = p[B] = "" + p[B]), E == null || E === "" ? (xt("Can not create edge `" + g + "` with unspecified " + B), C = !0) : n.hasElementWithId(E) || (xt("Can not create edge `" + g + "` with nonexistant " + B + " `" + E + "`"), C = !0);
23329
+ Ce(E) && (E = p[B] = "" + p[B]), E == null || E === "" ? (Ct("Can not create edge `" + g + "` with unspecified " + B), C = !0) : n.hasElementWithId(E) || (Ct("Can not create edge `" + g + "` with nonexistant " + B + " `" + E + "`"), C = !0);
23330
23330
  }
23331
23331
  if (C) {
23332
23332
  f();
@@ -23884,16 +23884,16 @@ var cc = {
23884
23884
  layout: function(e) {
23885
23885
  var r = this;
23886
23886
  if (e == null) {
23887
- xt("Layout options must be specified to make a layout");
23887
+ Ct("Layout options must be specified to make a layout");
23888
23888
  return;
23889
23889
  }
23890
23890
  if (e.name == null) {
23891
- xt("A `name` must be specified to make a layout");
23891
+ Ct("A `name` must be specified to make a layout");
23892
23892
  return;
23893
23893
  }
23894
23894
  var n = e.name, a = r.extension("layout", n);
23895
23895
  if (a == null) {
23896
- xt("No such layout `" + n + "` found. Did you forget to import it and `cytoscape.use()` it?");
23896
+ Ct("No such layout `" + n + "` found. Did you forget to import it and `cytoscape.use()` it?");
23897
23897
  return;
23898
23898
  }
23899
23899
  var i;
@@ -24000,7 +24000,7 @@ var qX = {
24000
24000
  initRenderer: function(e) {
24001
24001
  var r = this, n = r.extension("renderer", e.name);
24002
24002
  if (n == null) {
24003
- xt("Can not initialise: No such renderer `".concat(e.name, "` found. Did you forget to import it and `cytoscape.use()` it?"));
24003
+ Ct("Can not initialise: No such renderer `".concat(e.name, "` found. Did you forget to import it and `cytoscape.use()` it?"));
24004
24004
  return;
24005
24005
  }
24006
24006
  e.wheelSensitivity !== void 0 && rt("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");
@@ -26025,7 +26025,7 @@ Pt.addDefaultStylesheet = function() {
26025
26025
  var bd = {};
26026
26026
  bd.parse = function(t, e, r, n) {
26027
26027
  var a = this;
26028
- if (Et(e))
26028
+ if (xt(e))
26029
26029
  return a.parseImplWarn(t, e, r, n);
26030
26030
  var i = n === "mapping" || n === !0 || n === !1 || n == null ? "dontcare" : n, o = r ? "t" : "f", A = "" + e, s = kI(t, A, o, i), l = a.propCache = a.propCache || [], u;
26031
26031
  return (u = l[s]) || (u = l[s] = a.parseImplWarn(t, e, r, n)), (r || n === "mapping") && (u = On(u), u && (u.value = On(u.value))), u;
@@ -26053,7 +26053,7 @@ bd.parseImpl = function(t, e, r, n) {
26053
26053
  bypass: !0,
26054
26054
  deleteBypass: !0
26055
26055
  };
26056
- if (Et(e))
26056
+ if (xt(e))
26057
26057
  return {
26058
26058
  name: t,
26059
26059
  value: e,
@@ -26222,7 +26222,7 @@ var er = function(e) {
26222
26222
  if (!(this instanceof er))
26223
26223
  return new er(e);
26224
26224
  if (!Z0(e)) {
26225
- xt("A style must have a core reference");
26225
+ Ct("A style must have a core reference");
26226
26226
  return;
26227
26227
  }
26228
26228
  this._private = {
@@ -26735,7 +26735,7 @@ var ll = function(e) {
26735
26735
  u([A.style, A.elements], function(d) {
26736
26736
  var h = d[0], p = d[1];
26737
26737
  l.styleEnabled && r.style().append(h), f(p, function() {
26738
- r.startAnimationLoop(), l.ready = !0, Et(A.ready) && r.on("ready", A.ready);
26738
+ r.startAnimationLoop(), l.ready = !0, xt(A.ready) && r.on("ready", A.ready);
26739
26739
  for (var g = 0; g < i.length; g++) {
26740
26740
  var v = i[g];
26741
26741
  r.on("ready", v);
@@ -27474,7 +27474,7 @@ var Aj = function(e, r, n) {
27474
27474
  }
27475
27475
  for (var u = 0; u < A.nodeSize; u++) {
27476
27476
  var h = i[u], p = h.layoutDimensions(n), g = {};
27477
- g.isLocked = h.locked(), g.id = h.data("id"), g.parentId = h.data("parent"), g.cmptId = l[h.id()], g.children = [], g.positionX = h.position("x"), g.positionY = h.position("y"), g.offsetX = 0, g.offsetY = 0, g.height = p.w, g.width = p.h, g.maxX = g.positionX + g.width / 2, g.minX = g.positionX - g.width / 2, g.maxY = g.positionY + g.height / 2, g.minY = g.positionY - g.height / 2, g.padLeft = parseFloat(h.style("padding")), g.padRight = parseFloat(h.style("padding")), g.padTop = parseFloat(h.style("padding")), g.padBottom = parseFloat(h.style("padding")), g.nodeRepulsion = Et(n.nodeRepulsion) ? n.nodeRepulsion(h) : n.nodeRepulsion, A.layoutNodes.push(g), A.idToIndex[g.id] = u;
27477
+ g.isLocked = h.locked(), g.id = h.data("id"), g.parentId = h.data("parent"), g.cmptId = l[h.id()], g.children = [], g.positionX = h.position("x"), g.positionY = h.position("y"), g.offsetX = 0, g.offsetY = 0, g.height = p.w, g.width = p.h, g.maxX = g.positionX + g.width / 2, g.minX = g.positionX - g.width / 2, g.maxY = g.positionY + g.height / 2, g.minY = g.positionY - g.height / 2, g.padLeft = parseFloat(h.style("padding")), g.padRight = parseFloat(h.style("padding")), g.padTop = parseFloat(h.style("padding")), g.padBottom = parseFloat(h.style("padding")), g.nodeRepulsion = xt(n.nodeRepulsion) ? n.nodeRepulsion(h) : n.nodeRepulsion, A.layoutNodes.push(g), A.idToIndex[g.id] = u;
27478
27478
  }
27479
27479
  for (var v = [], y = 0, m = -1, w = [], u = 0; u < A.nodeSize; u++) {
27480
27480
  var h = A.layoutNodes[u], C = h.parentId;
@@ -27496,7 +27496,7 @@ var Aj = function(e, r, n) {
27496
27496
  for (var u = 0; u < A.edgeSize; u++) {
27497
27497
  var F = a[u], U = {};
27498
27498
  U.id = F.data("id"), U.sourceId = F.data("source"), U.targetId = F.data("target");
27499
- var S = Et(n.idealEdgeLength) ? n.idealEdgeLength(F) : n.idealEdgeLength, I = Et(n.edgeElasticity) ? n.edgeElasticity(F) : n.edgeElasticity, L = A.idToIndex[U.sourceId], O = A.idToIndex[U.targetId], M = A.indexToGraph[L], P = A.indexToGraph[O];
27499
+ var S = xt(n.idealEdgeLength) ? n.idealEdgeLength(F) : n.idealEdgeLength, I = xt(n.edgeElasticity) ? n.edgeElasticity(F) : n.edgeElasticity, L = A.idToIndex[U.sourceId], O = A.idToIndex[U.targetId], M = A.indexToGraph[L], P = A.indexToGraph[O];
27500
27500
  if (M != P) {
27501
27501
  for (var H = sj(U.sourceId, U.targetId, A), D = A.graphSet[H], R = 0, g = A.layoutNodes[L]; D.indexOf(g.id) === -1; )
27502
27502
  g = A.layoutNodes[A.idToIndex[g.parentId]], R++;
@@ -27912,7 +27912,7 @@ function MD(t) {
27912
27912
  this.options = Re({}, Cj, t);
27913
27913
  }
27914
27914
  MD.prototype.run = function() {
27915
- var t = this.options, e = t.eles, r = e.nodes(), n = Et(t.positions);
27915
+ var t = this.options, e = t.eles, r = e.nodes(), n = xt(t.positions);
27916
27916
  function a(i) {
27917
27917
  if (t.positions == null)
27918
27918
  return Vz(i.position());
@@ -30569,7 +30569,7 @@ Hl.redraw = function(t) {
30569
30569
  };
30570
30570
  Hl.beforeRender = function(t, e) {
30571
30571
  if (!this.destroyed) {
30572
- e == null && xt("Priority is not optional for beforeRender");
30572
+ e == null && Ct("Priority is not optional for beforeRender");
30573
30573
  var r = this.beforeRenderCallbacks;
30574
30574
  r.push({
30575
30575
  fn: t,
@@ -30725,7 +30725,7 @@ var rv = 1e3 / 60, WD = {
30725
30725
  return oi(t, [{
30726
30726
  key: "getIdsFor",
30727
30727
  value: function(r) {
30728
- r == null && xt("Can not get id list for null key");
30728
+ r == null && Ct("Can not get id list for null key");
30729
30729
  var n = this.idsByKey, a = this.idsByKey.get(r);
30730
30730
  return a || (a = new QA(), n.set(r, a)), a;
30731
30731
  }
@@ -34176,7 +34176,7 @@ function lL(t) {
34176
34176
  $3() && (s["-ms-touch-action"] = "none", s["touch-action"] = "none");
34177
34177
  for (var l = 0; l < Ve.CANVAS_LAYERS; l++) {
34178
34178
  var u = e.data.canvases[l] = n.createElement("canvas"), c = Ve.CANVAS_TYPES[l];
34179
- e.data.contexts[l] = u.getContext(c), e.data.contexts[l] || xt("Could not create canvas of type " + c), Object.keys(s).forEach(function(te) {
34179
+ e.data.contexts[l] = u.getContext(c), e.data.contexts[l] || Ct("Could not create canvas of type " + c), Object.keys(s).forEach(function(te) {
34180
34180
  u.style[te] = s[te];
34181
34181
  }), u.style.position = "absolute", u.setAttribute("data-id", "layer" + l), u.style.zIndex = String(Ve.CANVAS_LAYERS - l), e.data.canvasContainer.appendChild(u), e.data.canvasNeedsRedraw[l] = !1;
34182
34182
  }
@@ -34490,11 +34490,11 @@ function fL(t, e, r) {
34490
34490
  y[T] = g[T];
34491
34491
  h.clientFunctions.forEach(function(B) {
34492
34492
  y[B] = y[B] || function() {
34493
- xt("Renderer does not implement `renderer." + B + "()` on its prototype");
34493
+ Ct("Renderer does not implement `renderer." + B + "()` on its prototype");
34494
34494
  };
34495
34495
  }), n = v;
34496
34496
  } else if (t === "__proto__" || t === "constructor" || t === "prototype")
34497
- return xt(t + " is an illegal type to be registered, possibly lead to prototype pollutions");
34497
+ return Ct(t + " is an illegal type to be registered, possibly lead to prototype pollutions");
34498
34498
  return DI({
34499
34499
  map: uL,
34500
34500
  keys: [t, e],
@@ -34529,7 +34529,7 @@ var dy = function() {
34529
34529
  return t6.apply(null, arguments);
34530
34530
  if (arguments.length === 5)
34531
34531
  return e6.apply(null, arguments);
34532
- xt("Invalid extension access syntax");
34532
+ Ct("Invalid extension access syntax");
34533
34533
  };
34534
34534
  ll.prototype.extension = dy;
34535
34535
  Jq.forEach(function(t) {
@@ -48024,7 +48024,7 @@ process.env.NODE_ENV !== "production" && (Vw.propTypes = {
48024
48024
  function Hre(t) {
48025
48025
  return Kr("MuiTooltip", t);
48026
48026
  }
48027
- const St = bn("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
48027
+ const Ft = bn("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
48028
48028
  function _re(t) {
48029
48029
  return Math.round(t * 1e5) / 1e5;
48030
48030
  }
@@ -48074,28 +48074,28 @@ const Vre = (t) => {
48074
48074
  ownerState: e
48075
48075
  }) => e.arrow,
48076
48076
  style: {
48077
- [`&[data-popper-placement*="bottom"] .${St.arrow}`]: {
48077
+ [`&[data-popper-placement*="bottom"] .${Ft.arrow}`]: {
48078
48078
  top: 0,
48079
48079
  marginTop: "-0.71em",
48080
48080
  "&::before": {
48081
48081
  transformOrigin: "0 100%"
48082
48082
  }
48083
48083
  },
48084
- [`&[data-popper-placement*="top"] .${St.arrow}`]: {
48084
+ [`&[data-popper-placement*="top"] .${Ft.arrow}`]: {
48085
48085
  bottom: 0,
48086
48086
  marginBottom: "-0.71em",
48087
48087
  "&::before": {
48088
48088
  transformOrigin: "100% 0"
48089
48089
  }
48090
48090
  },
48091
- [`&[data-popper-placement*="right"] .${St.arrow}`]: {
48091
+ [`&[data-popper-placement*="right"] .${Ft.arrow}`]: {
48092
48092
  height: "1em",
48093
48093
  width: "0.71em",
48094
48094
  "&::before": {
48095
48095
  transformOrigin: "100% 100%"
48096
48096
  }
48097
48097
  },
48098
- [`&[data-popper-placement*="left"] .${St.arrow}`]: {
48098
+ [`&[data-popper-placement*="left"] .${Ft.arrow}`]: {
48099
48099
  height: "1em",
48100
48100
  width: "0.71em",
48101
48101
  "&::before": {
@@ -48108,7 +48108,7 @@ const Vre = (t) => {
48108
48108
  ownerState: e
48109
48109
  }) => e.arrow && !e.isRtl,
48110
48110
  style: {
48111
- [`&[data-popper-placement*="right"] .${St.arrow}`]: {
48111
+ [`&[data-popper-placement*="right"] .${Ft.arrow}`]: {
48112
48112
  left: 0,
48113
48113
  marginLeft: "-0.71em"
48114
48114
  }
@@ -48118,7 +48118,7 @@ const Vre = (t) => {
48118
48118
  ownerState: e
48119
48119
  }) => e.arrow && !!e.isRtl,
48120
48120
  style: {
48121
- [`&[data-popper-placement*="right"] .${St.arrow}`]: {
48121
+ [`&[data-popper-placement*="right"] .${Ft.arrow}`]: {
48122
48122
  right: 0,
48123
48123
  marginRight: "-0.71em"
48124
48124
  }
@@ -48128,7 +48128,7 @@ const Vre = (t) => {
48128
48128
  ownerState: e
48129
48129
  }) => e.arrow && !e.isRtl,
48130
48130
  style: {
48131
- [`&[data-popper-placement*="left"] .${St.arrow}`]: {
48131
+ [`&[data-popper-placement*="left"] .${Ft.arrow}`]: {
48132
48132
  right: 0,
48133
48133
  marginRight: "-0.71em"
48134
48134
  }
@@ -48138,7 +48138,7 @@ const Vre = (t) => {
48138
48138
  ownerState: e
48139
48139
  }) => e.arrow && !!e.isRtl,
48140
48140
  style: {
48141
- [`&[data-popper-placement*="left"] .${St.arrow}`]: {
48141
+ [`&[data-popper-placement*="left"] .${Ft.arrow}`]: {
48142
48142
  left: 0,
48143
48143
  marginLeft: "-0.71em"
48144
48144
  }
@@ -48166,17 +48166,17 @@ const Vre = (t) => {
48166
48166
  margin: 2,
48167
48167
  wordWrap: "break-word",
48168
48168
  fontWeight: t.typography.fontWeightMedium,
48169
- [`.${St.popper}[data-popper-placement*="left"] &`]: {
48169
+ [`.${Ft.popper}[data-popper-placement*="left"] &`]: {
48170
48170
  transformOrigin: "right center"
48171
48171
  },
48172
- [`.${St.popper}[data-popper-placement*="right"] &`]: {
48172
+ [`.${Ft.popper}[data-popper-placement*="right"] &`]: {
48173
48173
  transformOrigin: "left center"
48174
48174
  },
48175
- [`.${St.popper}[data-popper-placement*="top"] &`]: {
48175
+ [`.${Ft.popper}[data-popper-placement*="top"] &`]: {
48176
48176
  transformOrigin: "center bottom",
48177
48177
  marginBottom: "14px"
48178
48178
  },
48179
- [`.${St.popper}[data-popper-placement*="bottom"] &`]: {
48179
+ [`.${Ft.popper}[data-popper-placement*="bottom"] &`]: {
48180
48180
  transformOrigin: "center top",
48181
48181
  marginTop: "14px"
48182
48182
  },
@@ -48203,10 +48203,10 @@ const Vre = (t) => {
48203
48203
  ownerState: e
48204
48204
  }) => !e.isRtl,
48205
48205
  style: {
48206
- [`.${St.popper}[data-popper-placement*="left"] &`]: {
48206
+ [`.${Ft.popper}[data-popper-placement*="left"] &`]: {
48207
48207
  marginRight: "14px"
48208
48208
  },
48209
- [`.${St.popper}[data-popper-placement*="right"] &`]: {
48209
+ [`.${Ft.popper}[data-popper-placement*="right"] &`]: {
48210
48210
  marginLeft: "14px"
48211
48211
  }
48212
48212
  }
@@ -48215,10 +48215,10 @@ const Vre = (t) => {
48215
48215
  ownerState: e
48216
48216
  }) => !e.isRtl && e.touch,
48217
48217
  style: {
48218
- [`.${St.popper}[data-popper-placement*="left"] &`]: {
48218
+ [`.${Ft.popper}[data-popper-placement*="left"] &`]: {
48219
48219
  marginRight: "24px"
48220
48220
  },
48221
- [`.${St.popper}[data-popper-placement*="right"] &`]: {
48221
+ [`.${Ft.popper}[data-popper-placement*="right"] &`]: {
48222
48222
  marginLeft: "24px"
48223
48223
  }
48224
48224
  }
@@ -48227,10 +48227,10 @@ const Vre = (t) => {
48227
48227
  ownerState: e
48228
48228
  }) => !!e.isRtl,
48229
48229
  style: {
48230
- [`.${St.popper}[data-popper-placement*="left"] &`]: {
48230
+ [`.${Ft.popper}[data-popper-placement*="left"] &`]: {
48231
48231
  marginLeft: "14px"
48232
48232
  },
48233
- [`.${St.popper}[data-popper-placement*="right"] &`]: {
48233
+ [`.${Ft.popper}[data-popper-placement*="right"] &`]: {
48234
48234
  marginRight: "14px"
48235
48235
  }
48236
48236
  }
@@ -48239,10 +48239,10 @@ const Vre = (t) => {
48239
48239
  ownerState: e
48240
48240
  }) => !!e.isRtl && e.touch,
48241
48241
  style: {
48242
- [`.${St.popper}[data-popper-placement*="left"] &`]: {
48242
+ [`.${Ft.popper}[data-popper-placement*="left"] &`]: {
48243
48243
  marginLeft: "24px"
48244
48244
  },
48245
- [`.${St.popper}[data-popper-placement*="right"] &`]: {
48245
+ [`.${Ft.popper}[data-popper-placement*="right"] &`]: {
48246
48246
  marginRight: "24px"
48247
48247
  }
48248
48248
  }
@@ -48251,7 +48251,7 @@ const Vre = (t) => {
48251
48251
  ownerState: e
48252
48252
  }) => e.touch,
48253
48253
  style: {
48254
- [`.${St.popper}[data-popper-placement*="top"] &`]: {
48254
+ [`.${Ft.popper}[data-popper-placement*="top"] &`]: {
48255
48255
  marginBottom: "24px"
48256
48256
  }
48257
48257
  }
@@ -48260,7 +48260,7 @@ const Vre = (t) => {
48260
48260
  ownerState: e
48261
48261
  }) => e.touch,
48262
48262
  style: {
48263
- [`.${St.popper}[data-popper-placement*="bottom"] &`]: {
48263
+ [`.${Ft.popper}[data-popper-placement*="bottom"] &`]: {
48264
48264
  marginTop: "24px"
48265
48265
  }
48266
48266
  }
@@ -49339,7 +49339,7 @@ const one = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
49339
49339
  directional: p = !1,
49340
49340
  scaleLabel: g
49341
49341
  }) => {
49342
- const v = wt(null), [y] = Xe(!0), [m, w] = Xe([]), [C, T] = Xe([]), [B, E] = Xe([]), [x, b] = Xe([]), [F, U] = Xe(!0), [S, I] = Xe({}), L = /* @__PURE__ */ new Set();
49342
+ const v = St(null), [y] = Xe(!0), [m, w] = Xe([]), [C, T] = Xe([]), [B, E] = Xe([]), [x, b] = Xe([]), [F, U] = Xe(!0), [S, I] = Xe({}), L = /* @__PURE__ */ new Set();
49343
49343
  s !== void 0 ? (t.node.forEach((X) => {
49344
49344
  L.add(s(X));
49345
49345
  }), t.edge.forEach((X) => {
@@ -49363,9 +49363,9 @@ const one = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
49363
49363
  M.forEach((X) => {
49364
49364
  P[X] = !0;
49365
49365
  });
49366
- const H = wt(null), [D, R] = GJ(), V = () => {
49366
+ const H = St(null), [D, R] = GJ(), V = () => {
49367
49367
  H.current && typeof R == "function" && R(H.current).then(one);
49368
- }, G = wt(null);
49368
+ }, G = St(null);
49369
49369
  let W = "cy-" + r;
49370
49370
  _t(() => {
49371
49371
  w(t.node), b(t.edge), T(t.edge.map((X) => X.effectSize)), E(
@@ -49912,7 +49912,7 @@ const hne = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, thir
49912
49912
  ]
49913
49913
  }, `frag-${e}`);
49914
49914
  }, oae = (t) => {
49915
- const { parentRef: e, width: r, height: n } = rd(), a = wt(null), i = tt(() => t.distributions.map((U, S) => U.label ?? `Group ${S + 1}`), [t.distributions]), o = t.labelOrientation ?? "horizontal", A = 15, s = t.cutoffLine ?? "none", l = t.horizontal ? o === "vertical" ? A : Math.max(
49915
+ const { parentRef: e, width: r, height: n } = rd(), a = St(null), i = tt(() => t.distributions.map((U, S) => U.label ?? `Group ${S + 1}`), [t.distributions]), o = t.labelOrientation ?? "horizontal", A = 15, s = t.cutoffLine ?? "none", l = t.horizontal ? o === "vertical" ? A : Math.max(
49916
49916
  ...i.map((U) => nS(U, A, "Arial"))
49917
49917
  ) / (o !== "horizontal" ? 1.25 : 1) : o === "horizontal" ? A : Math.max(
49918
49918
  ...i.map((U) => nS(U, A, "Arial"))
@@ -50212,7 +50212,7 @@ const hne = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, thir
50212
50212
  axisCenter: o,
50213
50213
  loading: A
50214
50214
  }) => {
50215
- const l = wt(null), u = aM(t, 12, "Times"), c = a.map((p) => e(p) * 2 + 12), f = c.reduce((p, g) => p + g, 0) + 30 * (a.length - 1), d = 10, h = u + d * 2 + f;
50215
+ const l = St(null), u = aM(t, 12, "Times"), c = a.map((p) => e(p) * 2 + 12), f = c.reduce((p, g) => p + g, 0) + 30 * (a.length - 1), d = 10, h = u + d * 2 + f;
50216
50216
  return /* @__PURE__ */ _.jsx("div", { style: { marginBottom: 10, opacity: A ? 0.3 : 1 }, children: /* @__PURE__ */ _.jsxs("svg", { height: r + 4, width: n + u + 4, id: "legend", transform: `translate(${i / 1.2 + o - n / 2}, 0)`, children: [
50217
50217
  /* @__PURE__ */ _.jsx("rect", { height: r, width: n + u, stroke: "black", fill: "none", transform: "translate(2, 2)" }),
50218
50218
  A ? /* @__PURE__ */ _.jsx(
@@ -50289,34 +50289,28 @@ const hne = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, thir
50289
50289
  animationBuffer: h,
50290
50290
  uniqueID: p
50291
50291
  }) => {
50292
- const { tooltipOpen: g, tooltipLeft: v, tooltipTop: y, tooltipData: m, hideTooltip: w, showTooltip: C } = $f({}), T = xA, B = Yf, E = wt(null), x = wt(null), b = Ke((N, z) => {
50293
- x.current = {
50294
- top: N.pageY,
50295
- left: N.pageX,
50296
- data: z
50297
- }, E.current || (E.current = requestAnimationFrame(() => {
50298
- x.current && C({
50299
- tooltipTop: x.current.top,
50300
- tooltipLeft: x.current.left,
50301
- tooltipData: x.current.data
50302
- }), E.current = null;
50303
- }));
50304
- }, [C]), F = e.id === m?.id, U = a ? Math.max(e.value, i) : e.value, S = A(e.id), I = e.id.split("-")[0] === "spacer" ? l : s, L = U > 0 ? o(0) : o(U), O = S ?? 0, M = Math.abs(o(U) - o(0)), P = e.id.split("-")[0] === "spacer" ? l : s, H = -u, D = (S ?? 0) + I / 2, R = L + M + u + (e.lollipopValue && e.value >= 0 ? c(e.lollipopValue) : 0), V = O + P / 2, G = f && d ? od.g : "g", W = Ad(f, t, h ?? 0.03);
50292
+ const { tooltipOpen: g, tooltipLeft: v, tooltipTop: y, tooltipData: m, hideTooltip: w, showTooltip: C } = $f({}), T = Ke((R, V) => {
50293
+ C({
50294
+ tooltipData: V,
50295
+ tooltipLeft: R.pageX,
50296
+ tooltipTop: R.pageY
50297
+ });
50298
+ }, [C]), B = e.id === m?.id, E = a ? Math.max(e.value, i) : e.value, x = A(e.id), b = e.id.split("-")[0] === "spacer" ? l : s, F = E > 0 ? o(0) : o(E), U = x ?? 0, S = Math.abs(o(E) - o(0)), I = e.id.split("-")[0] === "spacer" ? l : s, L = -u, O = (x ?? 0) + b / 2, M = F + S + u + (e.lollipopValue && e.value >= 0 ? c(e.lollipopValue) : 0), P = U + I / 2, H = f && d ? od.g : "g", D = Ad(f, t, h ?? 0.03);
50305
50299
  return /* @__PURE__ */ _.jsxs(Le.Fragment, { children: [
50306
50300
  /* @__PURE__ */ _.jsxs(
50307
50301
  _r,
50308
50302
  {
50309
50303
  onClick: () => r?.(e),
50310
50304
  style: r && { cursor: "pointer" },
50311
- onMouseMove: (N) => b(N, e),
50305
+ onMouseMove: (R) => T(R, e),
50312
50306
  onMouseLeave: () => w(),
50313
50307
  fontFamily: mne,
50314
50308
  children: [
50315
50309
  /* @__PURE__ */ _.jsx(
50316
50310
  za,
50317
50311
  {
50318
- x: H,
50319
- y: D,
50312
+ x: L,
50313
+ y: O,
50320
50314
  dy: ".35em",
50321
50315
  textAnchor: "end",
50322
50316
  fill: "black",
@@ -50324,18 +50318,18 @@ const hne = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, thir
50324
50318
  children: e.category
50325
50319
  }
50326
50320
  ),
50327
- /* @__PURE__ */ _.jsx(G, { ...W, children: /* @__PURE__ */ _.jsxs(_r, { children: [
50321
+ /* @__PURE__ */ _.jsx(H, { ...D, children: /* @__PURE__ */ _.jsxs(_r, { children: [
50328
50322
  /* @__PURE__ */ _.jsx(
50329
50323
  HU,
50330
50324
  {
50331
- x: L,
50332
- y: O,
50333
- width: M,
50334
- height: P,
50325
+ x: F,
50326
+ y: U,
50327
+ width: S,
50328
+ height: I,
50335
50329
  fill: e.color || "black",
50336
- opacity: a && U === i ? 0.4 : 1,
50330
+ opacity: a && E === i ? 0.4 : 1,
50337
50331
  rx: 3,
50338
- stroke: F ? "black" : "none"
50332
+ stroke: B ? "black" : "none"
50339
50333
  },
50340
50334
  `bar-${e.label}`
50341
50335
  ),
@@ -50344,18 +50338,18 @@ const hne = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, thir
50344
50338
  Tb,
50345
50339
  {
50346
50340
  r: c(e.lollipopValue) * 1.5,
50347
- cx: e.value < 0 ? L : L + M,
50348
- cy: O + P / 2,
50341
+ cx: e.value < 0 ? F : F + S,
50342
+ cy: U + I / 2,
50349
50343
  fill: e.color,
50350
- stroke: F ? "black" : "none"
50344
+ stroke: B ? "black" : "none"
50351
50345
  }
50352
50346
  ),
50353
50347
  /* @__PURE__ */ _.jsx(
50354
50348
  Tb,
50355
50349
  {
50356
50350
  r: c(e.lollipopValue),
50357
- cx: e.value < 0 ? L : L + M,
50358
- cy: O + P / 2,
50351
+ cx: e.value < 0 ? F : F + S,
50352
+ cy: U + I / 2,
50359
50353
  fill: "black"
50360
50354
  }
50361
50355
  )
@@ -50364,8 +50358,8 @@ const hne = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, thir
50364
50358
  za,
50365
50359
  {
50366
50360
  id: `label-${t}-${p}`,
50367
- x: R,
50368
- y: V,
50361
+ x: M,
50362
+ y: P,
50369
50363
  dy: ".35em",
50370
50364
  textAnchor: "start",
50371
50365
  fill: "black",
@@ -50378,8 +50372,8 @@ const hne = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, thir
50378
50372
  },
50379
50373
  t
50380
50374
  ),
50381
- n && g && /* @__PURE__ */ _.jsx(T, { children: /* @__PURE__ */ _.jsx(
50382
- B,
50375
+ n && g && /* @__PURE__ */ _.jsx(xA, { children: /* @__PURE__ */ _.jsx(
50376
+ Yf,
50383
50377
  {
50384
50378
  top: y,
50385
50379
  left: v,
@@ -50410,7 +50404,7 @@ const hne = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, thir
50410
50404
  animation: d,
50411
50405
  animationBuffer: h
50412
50406
  }) => {
50413
- const [p, g] = Xe(200), [v, y] = Xe(!1), [m, w] = Xe(!0), [C] = Xe(r + String(Math.random())), T = wt(null), B = wt(null), { parentRef: E, width: x, height: b } = rd({ debounceTime: 150 });
50407
+ const [p, g] = Xe(200), [v, y] = Xe(!1), [m, w] = Xe(!0), [C] = Xe(r + String(Math.random())), T = St(null), B = St(null), { parentRef: E, width: x, height: b } = rd({ debounceTime: 150 });
50414
50408
  _t(() => {
50415
50409
  const $ = E.current;
50416
50410
  if (!$) return;
@@ -51032,7 +51026,7 @@ const Yne = ({ cx: t, cy: e, value: r, color: n, align: a }) => {
51032
51026
  t.tooltipBody && b && B && /* @__PURE__ */ _.jsx(xA, { children: /* @__PURE__ */ _.jsx(Yf, { left: (E ?? 0) + 10, top: x, children: B }) })
51033
51027
  ] }, `frag-${t.node.data.label}`);
51034
51028
  }, sae = (t) => {
51035
- const { parentRef: e, width: r, height: n } = rd(), [a, i] = Xe(null), o = wt(null), A = Kw({ label: "root", value: 0, children: t.data }).sum((f) => f.value).sort((f, d) => (d.value || 0) - (f.value || 0)), s = {
51029
+ const { parentRef: e, width: r, height: n } = rd(), [a, i] = Xe(null), o = St(null), A = Kw({ label: "root", value: 0, children: t.data }).sum((f) => f.value).sort((f, d) => (d.value || 0) - (f.value || 0)), s = {
51036
51030
  treemapSquarify: AM,
51037
51031
  treemapBinary: _ne,
51038
51032
  treemapDice: Hd,
@@ -51108,7 +51102,7 @@ const uae = ({
51108
51102
  const { containerRef: s, TooltipInPortal: l } = UN({
51109
51103
  scroll: !0,
51110
51104
  detectBounds: !0
51111
- }), u = tt(() => t ? a ? Xne(t) : t : null, [t, a]), c = l, { tooltipLeft: f, tooltipTop: d, tooltipOpen: h, showTooltip: p, hideTooltip: g } = $f(), v = u ? Object.values(u).reduce((x, b) => x + b, 0) : 0, y = wt(null), m = y?.current ? y.current.offsetWidth : 0, w = aa({
51105
+ }), u = tt(() => t ? a ? Xne(t) : t : null, [t, a]), c = l, { tooltipLeft: f, tooltipTop: d, tooltipOpen: h, showTooltip: p, hideTooltip: g } = $f(), v = u ? Object.values(u).reduce((x, b) => x + b, 0) : 0, y = St(null), m = y?.current ? y.current.offsetWidth : 0, w = aa({
51112
51106
  domain: [0, v],
51113
51107
  range: [0, m]
51114
51108
  }), C = Pc({