@platox/pivot-table 0.0.26 → 0.0.27

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/lib/index.js CHANGED
@@ -151,14 +151,14 @@ function HF() {
151
151
  }
152
152
  return null;
153
153
  }
154
- var P = Object.assign, B = 0, N, z, k, H, F, G, K;
154
+ var P = Object.assign, B = 0, N, z, k, H, F, U, K;
155
155
  function Q() {
156
156
  }
157
157
  Q.__reactDisabledLog = !0;
158
158
  function ne() {
159
159
  {
160
160
  if (B === 0) {
161
- N = console.log, z = console.info, k = console.warn, H = console.error, F = console.group, G = console.groupCollapsed, K = console.groupEnd;
161
+ N = console.log, z = console.info, k = console.warn, H = console.error, F = console.group, U = console.groupCollapsed, K = console.groupEnd;
162
162
  var $ = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
@@ -178,7 +178,7 @@ function HF() {
178
178
  B++;
179
179
  }
180
180
  }
181
- function U() {
181
+ function G() {
182
182
  {
183
183
  if (B--, B === 0) {
184
184
  var $ = {
@@ -203,7 +203,7 @@ function HF() {
203
203
  value: F
204
204
  }),
205
205
  groupCollapsed: P({}, $, {
206
- value: G
206
+ value: U
207
207
  }),
208
208
  groupEnd: P({}, $, {
209
209
  value: K
@@ -298,7 +298,7 @@ function HF() {
298
298
  }
299
299
  }
300
300
  } finally {
301
- W = !1, I.current = wt, U(), Error.prepareStackTrace = ct;
301
+ W = !1, I.current = wt, G(), Error.prepareStackTrace = ct;
302
302
  }
303
303
  var ds = $ ? $.displayName || $.name : "", ka = ds ? j(ds) : "";
304
304
  return typeof $ == "function" && Z.set($, ka), ka;
@@ -799,7 +799,7 @@ var A = $m.exports, qT = { exports: {} }, Ff = {}, Hm = { exports: {} };
799
799
  var F = b(a(N, { createIsNestedEqual: function() {
800
800
  return l;
801
801
  } }));
802
- function G(j, W) {
802
+ function U(j, W) {
803
803
  return F(j, W, void 0);
804
804
  }
805
805
  var K = b(z);
@@ -811,7 +811,7 @@ var A = $m.exports, qT = { exports: {} }, Ff = {}, Hm = { exports: {} };
811
811
  return l;
812
812
  }
813
813
  }));
814
- function U(j, W) {
814
+ function G(j, W) {
815
815
  return ne(j, W, /* @__PURE__ */ new WeakMap());
816
816
  }
817
817
  function I(j) {
@@ -823,7 +823,7 @@ var A = $m.exports, qT = { exports: {} }, Ff = {}, Hm = { exports: {} };
823
823
  return Y === void 0 && (Y = /* @__PURE__ */ new WeakMap()), W(Z, X, Y);
824
824
  };
825
825
  }
826
- r.circularDeepEqual = Q, r.circularShallowEqual = U, r.createCustomCircularEqual = q, r.createCustomEqual = I, r.deepEqual = H, r.sameValueZeroEqual = l, r.shallowEqual = G, Object.defineProperty(r, "__esModule", { value: !0 });
826
+ r.circularDeepEqual = Q, r.circularShallowEqual = G, r.createCustomCircularEqual = q, r.createCustomEqual = I, r.deepEqual = H, r.sameValueZeroEqual = l, r.shallowEqual = U, Object.defineProperty(r, "__esModule", { value: !0 });
827
827
  });
828
828
  })(Hm, Hm.exports);
829
829
  var tb = Hm.exports, Vm = { exports: {} };
@@ -1404,7 +1404,7 @@ function dL() {
1404
1404
  function F(Y) {
1405
1405
  return C(Y) === u;
1406
1406
  }
1407
- function G(Y) {
1407
+ function U(Y) {
1408
1408
  return C(Y) === s;
1409
1409
  }
1410
1410
  function K(Y) {
@@ -1416,7 +1416,7 @@ function dL() {
1416
1416
  function ne(Y) {
1417
1417
  return C(Y) === f;
1418
1418
  }
1419
- function U(Y) {
1419
+ function G(Y) {
1420
1420
  return C(Y) === n;
1421
1421
  }
1422
1422
  function I(Y) {
@@ -1437,7 +1437,7 @@ function dL() {
1437
1437
  function X(Y) {
1438
1438
  return C(Y) === c;
1439
1439
  }
1440
- ht.AsyncMode = _, ht.ConcurrentMode = w, ht.ContextConsumer = x, ht.ContextProvider = D, ht.Element = S, ht.ForwardRef = T, ht.Fragment = E, ht.Lazy = R, ht.Memo = M, ht.Portal = P, ht.Profiler = B, ht.StrictMode = N, ht.Suspense = z, ht.isAsyncMode = H, ht.isConcurrentMode = F, ht.isContextConsumer = G, ht.isContextProvider = K, ht.isElement = Q, ht.isForwardRef = ne, ht.isFragment = U, ht.isLazy = I, ht.isMemo = q, ht.isPortal = j, ht.isProfiler = W, ht.isStrictMode = Z, ht.isSuspense = X, ht.isValidElementType = b, ht.typeOf = C;
1440
+ ht.AsyncMode = _, ht.ConcurrentMode = w, ht.ContextConsumer = x, ht.ContextProvider = D, ht.Element = S, ht.ForwardRef = T, ht.Fragment = E, ht.Lazy = R, ht.Memo = M, ht.Portal = P, ht.Profiler = B, ht.StrictMode = N, ht.Suspense = z, ht.isAsyncMode = H, ht.isConcurrentMode = F, ht.isContextConsumer = U, ht.isContextProvider = K, ht.isElement = Q, ht.isForwardRef = ne, ht.isFragment = G, ht.isLazy = I, ht.isMemo = q, ht.isPortal = j, ht.isProfiler = W, ht.isStrictMode = Z, ht.isSuspense = X, ht.isValidElementType = b, ht.typeOf = C;
1441
1441
  }()), ht;
1442
1442
  }
1443
1443
  var k_;
@@ -1575,9 +1575,9 @@ function pL() {
1575
1575
  return yp = function(s, l) {
1576
1576
  var u = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
1577
1577
  function c(F) {
1578
- var G = F && (u && F[u] || F[f]);
1579
- if (typeof G == "function")
1580
- return G;
1578
+ var U = F && (u && F[u] || F[f]);
1579
+ if (typeof U == "function")
1580
+ return U;
1581
1581
  }
1582
1582
  var d = "<<anonymous>>", h = {
1583
1583
  array: m("array"),
@@ -1600,17 +1600,17 @@ function pL() {
1600
1600
  shape: R,
1601
1601
  exact: M
1602
1602
  };
1603
- function v(F, G) {
1604
- return F === G ? F !== 0 || 1 / F === 1 / G : F !== F && G !== G;
1603
+ function v(F, U) {
1604
+ return F === U ? F !== 0 || 1 / F === 1 / U : F !== F && U !== U;
1605
1605
  }
1606
- function g(F, G) {
1607
- this.message = F, this.data = G && typeof G == "object" ? G : {}, this.stack = "";
1606
+ function g(F, U) {
1607
+ this.message = F, this.data = U && typeof U == "object" ? U : {}, this.stack = "";
1608
1608
  }
1609
1609
  g.prototype = Error.prototype;
1610
1610
  function p(F) {
1611
1611
  if (process.env.NODE_ENV !== "production")
1612
- var G = {}, K = 0;
1613
- function Q(U, I, q, j, W, Z, X) {
1612
+ var U = {}, K = 0;
1613
+ function Q(G, I, q, j, W, Z, X) {
1614
1614
  if (j = j || d, Z = Z || q, X !== r) {
1615
1615
  if (l) {
1616
1616
  var Y = new Error(
@@ -1619,90 +1619,90 @@ function pL() {
1619
1619
  throw Y.name = "Invariant Violation", Y;
1620
1620
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1621
1621
  var ue = j + ":" + q;
1622
- !G[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
1622
+ !U[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
1623
1623
  K < 3 && (a(
1624
1624
  "You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + j + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1625
- ), G[ue] = !0, K++);
1625
+ ), U[ue] = !0, K++);
1626
1626
  }
1627
1627
  }
1628
- return I[q] == null ? U ? I[q] === null ? new g("The " + W + " `" + Z + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new g("The " + W + " `" + Z + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : F(I, q, j, W, Z);
1628
+ return I[q] == null ? G ? I[q] === null ? new g("The " + W + " `" + Z + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new g("The " + W + " `" + Z + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : F(I, q, j, W, Z);
1629
1629
  }
1630
1630
  var ne = Q.bind(null, !1);
1631
1631
  return ne.isRequired = Q.bind(null, !0), ne;
1632
1632
  }
1633
1633
  function m(F) {
1634
- function G(K, Q, ne, U, I, q) {
1634
+ function U(K, Q, ne, G, I, q) {
1635
1635
  var j = K[Q], W = N(j);
1636
1636
  if (W !== F) {
1637
1637
  var Z = z(j);
1638
1638
  return new g(
1639
- "Invalid " + U + " `" + I + "` of type " + ("`" + Z + "` supplied to `" + ne + "`, expected ") + ("`" + F + "`."),
1639
+ "Invalid " + G + " `" + I + "` of type " + ("`" + Z + "` supplied to `" + ne + "`, expected ") + ("`" + F + "`."),
1640
1640
  { expectedType: F }
1641
1641
  );
1642
1642
  }
1643
1643
  return null;
1644
1644
  }
1645
- return p(G);
1645
+ return p(U);
1646
1646
  }
1647
1647
  function y() {
1648
1648
  return p(o);
1649
1649
  }
1650
1650
  function b(F) {
1651
- function G(K, Q, ne, U, I) {
1651
+ function U(K, Q, ne, G, I) {
1652
1652
  if (typeof F != "function")
1653
1653
  return new g("Property `" + I + "` of component `" + ne + "` has invalid PropType notation inside arrayOf.");
1654
1654
  var q = K[Q];
1655
1655
  if (!Array.isArray(q)) {
1656
1656
  var j = N(q);
1657
- return new g("Invalid " + U + " `" + I + "` of type " + ("`" + j + "` supplied to `" + ne + "`, expected an array."));
1657
+ return new g("Invalid " + G + " `" + I + "` of type " + ("`" + j + "` supplied to `" + ne + "`, expected an array."));
1658
1658
  }
1659
1659
  for (var W = 0; W < q.length; W++) {
1660
- var Z = F(q, W, ne, U, I + "[" + W + "]", r);
1660
+ var Z = F(q, W, ne, G, I + "[" + W + "]", r);
1661
1661
  if (Z instanceof Error)
1662
1662
  return Z;
1663
1663
  }
1664
1664
  return null;
1665
1665
  }
1666
- return p(G);
1666
+ return p(U);
1667
1667
  }
1668
1668
  function C() {
1669
- function F(G, K, Q, ne, U) {
1670
- var I = G[K];
1669
+ function F(U, K, Q, ne, G) {
1670
+ var I = U[K];
1671
1671
  if (!s(I)) {
1672
1672
  var q = N(I);
1673
- return new g("Invalid " + ne + " `" + U + "` of type " + ("`" + q + "` supplied to `" + Q + "`, expected a single ReactElement."));
1673
+ return new g("Invalid " + ne + " `" + G + "` of type " + ("`" + q + "` supplied to `" + Q + "`, expected a single ReactElement."));
1674
1674
  }
1675
1675
  return null;
1676
1676
  }
1677
1677
  return p(F);
1678
1678
  }
1679
1679
  function _() {
1680
- function F(G, K, Q, ne, U) {
1681
- var I = G[K];
1680
+ function F(U, K, Q, ne, G) {
1681
+ var I = U[K];
1682
1682
  if (!t.isValidElementType(I)) {
1683
1683
  var q = N(I);
1684
- return new g("Invalid " + ne + " `" + U + "` of type " + ("`" + q + "` supplied to `" + Q + "`, expected a single ReactElement type."));
1684
+ return new g("Invalid " + ne + " `" + G + "` of type " + ("`" + q + "` supplied to `" + Q + "`, expected a single ReactElement type."));
1685
1685
  }
1686
1686
  return null;
1687
1687
  }
1688
1688
  return p(F);
1689
1689
  }
1690
1690
  function w(F) {
1691
- function G(K, Q, ne, U, I) {
1691
+ function U(K, Q, ne, G, I) {
1692
1692
  if (!(K[Q] instanceof F)) {
1693
1693
  var q = F.name || d, j = H(K[Q]);
1694
- return new g("Invalid " + U + " `" + I + "` of type " + ("`" + j + "` supplied to `" + ne + "`, expected ") + ("instance of `" + q + "`."));
1694
+ return new g("Invalid " + G + " `" + I + "` of type " + ("`" + j + "` supplied to `" + ne + "`, expected ") + ("instance of `" + q + "`."));
1695
1695
  }
1696
1696
  return null;
1697
1697
  }
1698
- return p(G);
1698
+ return p(U);
1699
1699
  }
1700
1700
  function x(F) {
1701
1701
  if (!Array.isArray(F))
1702
1702
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1703
1703
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1704
1704
  ) : a("Invalid argument supplied to oneOf, expected an array.")), o;
1705
- function G(K, Q, ne, U, I) {
1705
+ function U(K, Q, ne, G, I) {
1706
1706
  for (var q = K[Q], j = 0; j < F.length; j++)
1707
1707
  if (v(q, F[j]))
1708
1708
  return null;
@@ -1710,40 +1710,40 @@ function pL() {
1710
1710
  var ue = z(Y);
1711
1711
  return ue === "symbol" ? String(Y) : Y;
1712
1712
  });
1713
- return new g("Invalid " + U + " `" + I + "` of value `" + String(q) + "` " + ("supplied to `" + ne + "`, expected one of " + W + "."));
1713
+ return new g("Invalid " + G + " `" + I + "` of value `" + String(q) + "` " + ("supplied to `" + ne + "`, expected one of " + W + "."));
1714
1714
  }
1715
- return p(G);
1715
+ return p(U);
1716
1716
  }
1717
1717
  function D(F) {
1718
- function G(K, Q, ne, U, I) {
1718
+ function U(K, Q, ne, G, I) {
1719
1719
  if (typeof F != "function")
1720
1720
  return new g("Property `" + I + "` of component `" + ne + "` has invalid PropType notation inside objectOf.");
1721
1721
  var q = K[Q], j = N(q);
1722
1722
  if (j !== "object")
1723
- return new g("Invalid " + U + " `" + I + "` of type " + ("`" + j + "` supplied to `" + ne + "`, expected an object."));
1723
+ return new g("Invalid " + G + " `" + I + "` of type " + ("`" + j + "` supplied to `" + ne + "`, expected an object."));
1724
1724
  for (var W in q)
1725
1725
  if (n(q, W)) {
1726
- var Z = F(q, W, ne, U, I + "." + W, r);
1726
+ var Z = F(q, W, ne, G, I + "." + W, r);
1727
1727
  if (Z instanceof Error)
1728
1728
  return Z;
1729
1729
  }
1730
1730
  return null;
1731
1731
  }
1732
- return p(G);
1732
+ return p(U);
1733
1733
  }
1734
1734
  function S(F) {
1735
1735
  if (!Array.isArray(F))
1736
1736
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
1737
- for (var G = 0; G < F.length; G++) {
1738
- var K = F[G];
1737
+ for (var U = 0; U < F.length; U++) {
1738
+ var K = F[U];
1739
1739
  if (typeof K != "function")
1740
1740
  return a(
1741
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + k(K) + " at index " + G + "."
1741
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + k(K) + " at index " + U + "."
1742
1742
  ), o;
1743
1743
  }
1744
- function Q(ne, U, I, q, j) {
1744
+ function Q(ne, G, I, q, j) {
1745
1745
  for (var W = [], Z = 0; Z < F.length; Z++) {
1746
- var X = F[Z], Y = X(ne, U, I, q, j, r);
1746
+ var X = F[Z], Y = X(ne, G, I, q, j, r);
1747
1747
  if (Y == null)
1748
1748
  return null;
1749
1749
  Y.data && n(Y.data, "expectedType") && W.push(Y.data.expectedType);
@@ -1754,55 +1754,55 @@ function pL() {
1754
1754
  return p(Q);
1755
1755
  }
1756
1756
  function T() {
1757
- function F(G, K, Q, ne, U) {
1758
- return P(G[K]) ? null : new g("Invalid " + ne + " `" + U + "` supplied to " + ("`" + Q + "`, expected a ReactNode."));
1757
+ function F(U, K, Q, ne, G) {
1758
+ return P(U[K]) ? null : new g("Invalid " + ne + " `" + G + "` supplied to " + ("`" + Q + "`, expected a ReactNode."));
1759
1759
  }
1760
1760
  return p(F);
1761
1761
  }
1762
- function E(F, G, K, Q, ne) {
1762
+ function E(F, U, K, Q, ne) {
1763
1763
  return new g(
1764
- (F || "React class") + ": " + G + " type `" + K + "." + Q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ne + "`."
1764
+ (F || "React class") + ": " + U + " type `" + K + "." + Q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ne + "`."
1765
1765
  );
1766
1766
  }
1767
1767
  function R(F) {
1768
- function G(K, Q, ne, U, I) {
1768
+ function U(K, Q, ne, G, I) {
1769
1769
  var q = K[Q], j = N(q);
1770
1770
  if (j !== "object")
1771
- return new g("Invalid " + U + " `" + I + "` of type `" + j + "` " + ("supplied to `" + ne + "`, expected `object`."));
1771
+ return new g("Invalid " + G + " `" + I + "` of type `" + j + "` " + ("supplied to `" + ne + "`, expected `object`."));
1772
1772
  for (var W in F) {
1773
1773
  var Z = F[W];
1774
1774
  if (typeof Z != "function")
1775
- return E(ne, U, I, W, z(Z));
1776
- var X = Z(q, W, ne, U, I + "." + W, r);
1775
+ return E(ne, G, I, W, z(Z));
1776
+ var X = Z(q, W, ne, G, I + "." + W, r);
1777
1777
  if (X)
1778
1778
  return X;
1779
1779
  }
1780
1780
  return null;
1781
1781
  }
1782
- return p(G);
1782
+ return p(U);
1783
1783
  }
1784
1784
  function M(F) {
1785
- function G(K, Q, ne, U, I) {
1785
+ function U(K, Q, ne, G, I) {
1786
1786
  var q = K[Q], j = N(q);
1787
1787
  if (j !== "object")
1788
- return new g("Invalid " + U + " `" + I + "` of type `" + j + "` " + ("supplied to `" + ne + "`, expected `object`."));
1788
+ return new g("Invalid " + G + " `" + I + "` of type `" + j + "` " + ("supplied to `" + ne + "`, expected `object`."));
1789
1789
  var W = e({}, K[Q], F);
1790
1790
  for (var Z in W) {
1791
1791
  var X = F[Z];
1792
1792
  if (n(F, Z) && typeof X != "function")
1793
- return E(ne, U, I, Z, z(X));
1793
+ return E(ne, G, I, Z, z(X));
1794
1794
  if (!X)
1795
1795
  return new g(
1796
- "Invalid " + U + " `" + I + "` key `" + Z + "` supplied to `" + ne + "`.\nBad object: " + JSON.stringify(K[Q], null, " ") + `
1796
+ "Invalid " + G + " `" + I + "` key `" + Z + "` supplied to `" + ne + "`.\nBad object: " + JSON.stringify(K[Q], null, " ") + `
1797
1797
  Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
1798
1798
  );
1799
- var Y = X(q, Z, ne, U, I + "." + Z, r);
1799
+ var Y = X(q, Z, ne, G, I + "." + Z, r);
1800
1800
  if (Y)
1801
1801
  return Y;
1802
1802
  }
1803
1803
  return null;
1804
1804
  }
1805
- return p(G);
1805
+ return p(U);
1806
1806
  }
1807
1807
  function P(F) {
1808
1808
  switch (typeof F) {
@@ -1817,10 +1817,10 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
1817
1817
  return F.every(P);
1818
1818
  if (F === null || s(F))
1819
1819
  return !0;
1820
- var G = c(F);
1821
- if (G) {
1822
- var K = G.call(F), Q;
1823
- if (G !== F.entries) {
1820
+ var U = c(F);
1821
+ if (U) {
1822
+ var K = U.call(F), Q;
1823
+ if (U !== F.entries) {
1824
1824
  for (; !(Q = K.next()).done; )
1825
1825
  if (!P(Q.value))
1826
1826
  return !1;
@@ -1837,37 +1837,37 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
1837
1837
  return !1;
1838
1838
  }
1839
1839
  }
1840
- function B(F, G) {
1841
- return F === "symbol" ? !0 : G ? G["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && G instanceof Symbol : !1;
1840
+ function B(F, U) {
1841
+ return F === "symbol" ? !0 : U ? U["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && U instanceof Symbol : !1;
1842
1842
  }
1843
1843
  function N(F) {
1844
- var G = typeof F;
1845
- return Array.isArray(F) ? "array" : F instanceof RegExp ? "object" : B(G, F) ? "symbol" : G;
1844
+ var U = typeof F;
1845
+ return Array.isArray(F) ? "array" : F instanceof RegExp ? "object" : B(U, F) ? "symbol" : U;
1846
1846
  }
1847
1847
  function z(F) {
1848
1848
  if (typeof F > "u" || F === null)
1849
1849
  return "" + F;
1850
- var G = N(F);
1851
- if (G === "object") {
1850
+ var U = N(F);
1851
+ if (U === "object") {
1852
1852
  if (F instanceof Date)
1853
1853
  return "date";
1854
1854
  if (F instanceof RegExp)
1855
1855
  return "regexp";
1856
1856
  }
1857
- return G;
1857
+ return U;
1858
1858
  }
1859
1859
  function k(F) {
1860
- var G = z(F);
1861
- switch (G) {
1860
+ var U = z(F);
1861
+ switch (U) {
1862
1862
  case "array":
1863
1863
  case "object":
1864
- return "an " + G;
1864
+ return "an " + U;
1865
1865
  case "boolean":
1866
1866
  case "date":
1867
1867
  case "regexp":
1868
- return "a " + G;
1868
+ return "a " + U;
1869
1869
  default:
1870
- return G;
1870
+ return U;
1871
1871
  }
1872
1872
  }
1873
1873
  function H(F) {
@@ -5301,14 +5301,14 @@ const Nk = /* @__PURE__ */ Ol(Ik), fC = (t) => typeof t == "object" && t != null
5301
5301
  let M = s === "start" || s === "nearest" ? _ - S : s === "end" ? x + E : _ + b / 2 - S + E, P = l === "center" ? D + C / 2 - R + T : l === "end" ? w + T : D - R;
5302
5302
  const B = [];
5303
5303
  for (let N = 0; N < h.length; N++) {
5304
- const z = h[N], { height: k, width: H, top: F, right: G, bottom: K, left: Q } = z.getBoundingClientRect();
5305
- if (o === "if-needed" && _ >= 0 && D >= 0 && x <= p && w <= g && _ >= F && x <= K && D >= Q && w <= G) return B;
5306
- const ne = getComputedStyle(z), U = parseInt(ne.borderLeftWidth, 10), I = parseInt(ne.borderTopWidth, 10), q = parseInt(ne.borderRightWidth, 10), j = parseInt(ne.borderBottomWidth, 10);
5304
+ const z = h[N], { height: k, width: H, top: F, right: U, bottom: K, left: Q } = z.getBoundingClientRect();
5305
+ if (o === "if-needed" && _ >= 0 && D >= 0 && x <= p && w <= g && _ >= F && x <= K && D >= Q && w <= U) return B;
5306
+ const ne = getComputedStyle(z), G = parseInt(ne.borderLeftWidth, 10), I = parseInt(ne.borderTopWidth, 10), q = parseInt(ne.borderRightWidth, 10), j = parseInt(ne.borderBottomWidth, 10);
5307
5307
  let W = 0, Z = 0;
5308
- const X = "offsetWidth" in z ? z.offsetWidth - z.clientWidth - U - q : 0, Y = "offsetHeight" in z ? z.offsetHeight - z.clientHeight - I - j : 0, ue = "offsetWidth" in z ? z.offsetWidth === 0 ? 0 : H / z.offsetWidth : 0, ae = "offsetHeight" in z ? z.offsetHeight === 0 ? 0 : k / z.offsetHeight : 0;
5309
- if (d === z) W = s === "start" ? M : s === "end" ? M - p : s === "nearest" ? nc(y, y + p, p, I, j, y + M, y + M + b, b) : M - p / 2, Z = l === "start" ? P : l === "center" ? P - g / 2 : l === "end" ? P - g : nc(m, m + g, g, U, q, m + P, m + P + C, C), W = Math.max(0, W + y), Z = Math.max(0, Z + m);
5308
+ const X = "offsetWidth" in z ? z.offsetWidth - z.clientWidth - G - q : 0, Y = "offsetHeight" in z ? z.offsetHeight - z.clientHeight - I - j : 0, ue = "offsetWidth" in z ? z.offsetWidth === 0 ? 0 : H / z.offsetWidth : 0, ae = "offsetHeight" in z ? z.offsetHeight === 0 ? 0 : k / z.offsetHeight : 0;
5309
+ if (d === z) W = s === "start" ? M : s === "end" ? M - p : s === "nearest" ? nc(y, y + p, p, I, j, y + M, y + M + b, b) : M - p / 2, Z = l === "start" ? P : l === "center" ? P - g / 2 : l === "end" ? P - g : nc(m, m + g, g, G, q, m + P, m + P + C, C), W = Math.max(0, W + y), Z = Math.max(0, Z + m);
5310
5310
  else {
5311
- W = s === "start" ? M - F - I : s === "end" ? M - K + j + Y : s === "nearest" ? nc(F, K, k, I, j + Y, M, M + b, b) : M - (F + k / 2) + Y / 2, Z = l === "start" ? P - Q - U : l === "center" ? P - (Q + H / 2) + X / 2 : l === "end" ? P - G + q + X : nc(Q, G, H, U, q + X, P, P + C, C);
5311
+ W = s === "start" ? M - F - I : s === "end" ? M - K + j + Y : s === "nearest" ? nc(F, K, k, I, j + Y, M, M + b, b) : M - (F + k / 2) + Y / 2, Z = l === "start" ? P - Q - G : l === "center" ? P - (Q + H / 2) + X / 2 : l === "end" ? P - U + q + X : nc(Q, U, H, G, q + X, P, P + C, C);
5312
5312
  const { scrollLeft: Ce, scrollTop: be } = z;
5313
5313
  W = ae === 0 ? 0 : Math.max(0, Math.min(be + W / ae, z.scrollHeight - k / ae + Y)), Z = ue === 0 ? 0 : Math.max(0, Math.min(Ce + Z / ue, z.scrollWidth - H / ue + X)), M += be - W, P += Ce - Z;
5314
5314
  }
@@ -6135,23 +6135,23 @@ var t4 = (t, e, r) => {
6135
6135
  case "remove_node": {
6136
6136
  var {
6137
6137
  path: H
6138
- } = r, F = H[H.length - 1], G = le.parent(t, H);
6139
- if (G.children.splice(F, 1), e)
6138
+ } = r, F = H[H.length - 1], U = le.parent(t, H);
6139
+ if (U.children.splice(F, 1), e)
6140
6140
  for (var [K, Q] of J.points(e)) {
6141
6141
  var ne = We.transform(K, r);
6142
6142
  if (e != null && ne != null)
6143
6143
  e[Q] = ne;
6144
6144
  else {
6145
- var U = void 0, I = void 0;
6145
+ var G = void 0, I = void 0;
6146
6146
  for (var [q, j] of le.texts(t))
6147
6147
  if (V.compare(j, H) === -1)
6148
- U = [q, j];
6148
+ G = [q, j];
6149
6149
  else {
6150
6150
  I = [q, j];
6151
6151
  break;
6152
6152
  }
6153
6153
  var W = !1;
6154
- U && I && (V.equals(I[1], H) ? W = !V.hasPrevious(I[1]) : W = V.common(U[1], H).length < V.common(I[1], H).length), U && !W ? (K.path = U[1], K.offset = U[0].text.length) : I ? (K.path = I[1], K.offset = 0) : e = null;
6154
+ G && I && (V.equals(I[1], H) ? W = !V.hasPrevious(I[1]) : W = V.common(G[1], H).length < V.common(I[1], H).length), G && !W ? (K.path = G[1], K.offset = G[0].text.length) : I ? (K.path = I[1], K.offset = 0) : e = null;
6155
6155
  }
6156
6156
  }
6157
6157
  break;
@@ -8477,17 +8477,17 @@ var H8 = (t, e) => {
8477
8477
  return O.pathRef(e, Ce);
8478
8478
  }), k = O.pointRef(e, y), H = O.pointRef(e, b), F = "";
8479
8479
  if (!x && !D) {
8480
- var G = k.current, [K] = O.leaf(e, G), {
8480
+ var U = k.current, [K] = O.leaf(e, U), {
8481
8481
  path: Q
8482
- } = G, {
8482
+ } = U, {
8483
8483
  offset: ne
8484
- } = y, U = K.text.slice(ne);
8485
- U.length > 0 && (e.apply({
8484
+ } = y, G = K.text.slice(ne);
8485
+ G.length > 0 && (e.apply({
8486
8486
  type: "remove_text",
8487
8487
  path: Q,
8488
8488
  offset: ne,
8489
- text: U
8490
- }), F = U);
8489
+ text: G
8490
+ }), F = G);
8491
8491
  }
8492
8492
  if (z.reverse().map((ae) => ae.unref()).filter((ae) => ae !== null).forEach((ae) => ie.removeNodes(e, {
8493
8493
  at: ae,
@@ -8546,7 +8546,7 @@ var H8 = (t, e) => {
8546
8546
  }))) {
8547
8547
  var f = O.above(e, {
8548
8548
  at: o,
8549
- match: (U) => ye.isElement(U) && O.isInline(e, U),
8549
+ match: (G) => ye.isElement(G) && O.isInline(e, G),
8550
8550
  mode: "highest",
8551
8551
  voids: a
8552
8552
  });
@@ -8561,15 +8561,15 @@ var H8 = (t, e) => {
8561
8561
  }
8562
8562
  }
8563
8563
  var v = O.above(e, {
8564
- match: (U) => ye.isElement(U) && O.isBlock(e, U),
8564
+ match: (G) => ye.isElement(G) && O.isBlock(e, G),
8565
8565
  at: o,
8566
8566
  voids: a
8567
8567
  }), [, g] = v, p = O.isStart(e, o, g), m = O.isEnd(e, o, g), y = p && m, b = !p || p && m, C = !m, [, _] = le.first({
8568
8568
  children: r
8569
8569
  }, []), [, w] = le.last({
8570
8570
  children: r
8571
- }, []), x = [], D = (U) => {
8572
- var [I, q] = U, j = q.length === 0;
8571
+ }, []), x = [], D = (G) => {
8572
+ var [I, q] = G, j = q.length === 0;
8573
8573
  return j ? !1 : y ? !0 : !(b && V.isAncestor(q, _) && ye.isElement(I) && !e.isVoid(I) && !e.isInline(I) || C && V.isAncestor(q, w) && ye.isElement(I) && !e.isVoid(I) && !e.isInline(I));
8574
8574
  };
8575
8575
  for (var S of le.nodes({
@@ -8583,13 +8583,13 @@ var H8 = (t, e) => {
8583
8583
  ye.isElement(B) && !e.isInline(B) ? (M = !1, P = !0, E.push(B)) : M ? T.push(B) : R.push(B);
8584
8584
  var [N] = O.nodes(e, {
8585
8585
  at: o,
8586
- match: (U) => _e.isText(U) || O.isInline(e, U),
8586
+ match: (G) => _e.isText(G) || O.isInline(e, G),
8587
8587
  mode: "highest",
8588
8588
  voids: a
8589
- }), [, z] = N, k = O.isStart(e, o, z), H = O.isEnd(e, o, z), F = O.pathRef(e, m && !R.length ? V.next(g) : g), G = O.pathRef(e, H ? V.next(z) : z);
8589
+ }), [, z] = N, k = O.isStart(e, o, z), H = O.isEnd(e, o, z), F = O.pathRef(e, m && !R.length ? V.next(g) : g), U = O.pathRef(e, H ? V.next(z) : z);
8590
8590
  ie.splitNodes(e, {
8591
8591
  at: o,
8592
- match: (U) => P ? ye.isElement(U) && O.isBlock(e, U) : _e.isText(U) || O.isInline(e, U),
8592
+ match: (G) => P ? ye.isElement(G) && O.isBlock(e, G) : _e.isText(G) || O.isInline(e, G),
8593
8593
  mode: P ? "lowest" : "highest",
8594
8594
  always: P && (!p || T.length > 0) && (!m || R.length > 0),
8595
8595
  voids: a
@@ -8597,7 +8597,7 @@ var H8 = (t, e) => {
8597
8597
  var K = O.pathRef(e, !k || k && H ? V.next(z) : z);
8598
8598
  if (ie.insertNodes(e, T, {
8599
8599
  at: K.current,
8600
- match: (U) => _e.isText(U) || O.isInline(e, U),
8600
+ match: (G) => _e.isText(G) || O.isInline(e, G),
8601
8601
  mode: "highest",
8602
8602
  voids: a,
8603
8603
  batchDirty: s
@@ -8606,24 +8606,24 @@ var H8 = (t, e) => {
8606
8606
  voids: a
8607
8607
  }), ie.insertNodes(e, E, {
8608
8608
  at: F.current,
8609
- match: (U) => ye.isElement(U) && O.isBlock(e, U),
8609
+ match: (G) => ye.isElement(G) && O.isBlock(e, G),
8610
8610
  mode: "lowest",
8611
8611
  voids: a,
8612
8612
  batchDirty: s
8613
8613
  }), ie.insertNodes(e, R, {
8614
- at: G.current,
8615
- match: (U) => _e.isText(U) || O.isInline(e, U),
8614
+ at: U.current,
8615
+ match: (G) => _e.isText(G) || O.isInline(e, G),
8616
8616
  mode: "highest",
8617
8617
  voids: a,
8618
8618
  batchDirty: s
8619
8619
  }), !n.at) {
8620
8620
  var Q;
8621
- if (R.length > 0 && G.current ? Q = V.previous(G.current) : E.length > 0 && F.current ? Q = V.previous(F.current) : K.current && (Q = V.previous(K.current)), Q) {
8621
+ if (R.length > 0 && U.current ? Q = V.previous(U.current) : E.length > 0 && F.current ? Q = V.previous(F.current) : K.current && (Q = V.previous(K.current)), Q) {
8622
8622
  var ne = O.end(e, Q);
8623
8623
  ie.select(e, ne);
8624
8624
  }
8625
8625
  }
8626
- K.unref(), F.unref(), G.unref();
8626
+ K.unref(), F.unref(), U.unref();
8627
8627
  }
8628
8628
  }
8629
8629
  });
@@ -10612,7 +10612,7 @@ var re = {
10612
10612
  return null;
10613
10613
  throw new Error("Cannot resolve a Slate point from DOM point: ".concat(e));
10614
10614
  }
10615
- var G = re.toSlateNode(t, u), K = re.findPath(t, G);
10615
+ var U = re.toSlateNode(t, u), K = re.findPath(t, U);
10616
10616
  return {
10617
10617
  path: K,
10618
10618
  offset: f
@@ -10992,10 +10992,10 @@ function yj(t) {
10992
10992
  var B, N, z = Mn.get(e);
10993
10993
  z !== void 0 && (Mn.delete(e), e.marks = z), z && u === !1 && (u = null);
10994
10994
  var k = dj(P);
10995
- (!e.selection || !J.equals(e.selection, k)) && ie.select(e, k), P.diff.text ? O.insertText(e, P.diff.text) : O.deleteFragment(e), Pr.set(e, (N = Pr.get(e)) === null || N === void 0 ? void 0 : N.filter((G) => {
10995
+ (!e.selection || !J.equals(e.selection, k)) && ie.select(e, k), P.diff.text ? O.insertText(e, P.diff.text) : O.deleteFragment(e), Pr.set(e, (N = Pr.get(e)) === null || N === void 0 ? void 0 : N.filter((U) => {
10996
10996
  var {
10997
10997
  id: K
10998
- } = G;
10998
+ } = U;
10999
10999
  return K !== P.id;
11000
11000
  })), lj(e, P) || (M = !1, sa.delete(e), xi.delete(e), i = "action", la.delete(e), r.cancel(), n.cancel(), R == null || R.unref());
11001
11001
  }
@@ -11071,10 +11071,10 @@ function yj(t) {
11071
11071
  var F = !0;
11072
11072
  if (P.startsWith("delete")) {
11073
11073
  if (J.isExpanded(B)) {
11074
- var [G, K] = J.edges(B), Q = le.leaf(e, G.path);
11075
- if (Q.text.length === G.offset && K.offset === 0) {
11074
+ var [U, K] = J.edges(B), Q = le.leaf(e, U.path);
11075
+ if (Q.text.length === U.offset && K.offset === 0) {
11076
11076
  var ne = O.next(e, {
11077
- at: G.path,
11077
+ at: U.path,
11078
11078
  match: _e.isText
11079
11079
  });
11080
11080
  ne && V.equals(ne[1], K.path) && (B = {
@@ -11083,7 +11083,7 @@ function yj(t) {
11083
11083
  });
11084
11084
  }
11085
11085
  }
11086
- var U = P.endsWith("Backward") ? "backward" : "forward", [I, q] = J.edges(B), [j, W] = O.leaf(e, I.path), Z = {
11086
+ var G = P.endsWith("Backward") ? "backward" : "forward", [I, q] = J.edges(B), [j, W] = O.leaf(e, I.path), Z = {
11087
11087
  text: "",
11088
11088
  start: I.offset,
11089
11089
  end: q.offset
@@ -11101,7 +11101,7 @@ function yj(t) {
11101
11101
  });
11102
11102
  }
11103
11103
  return m(() => O.deleteFragment(e, {
11104
- direction: U
11104
+ direction: G
11105
11105
  }), {
11106
11106
  at: B
11107
11107
  });
@@ -12171,20 +12171,20 @@ var rz = (t) => /* @__PURE__ */ pe.createElement(pe.Fragment, null, DO(t)), nz =
12171
12171
  });
12172
12172
  }
12173
12173
  var {
12174
- marks: G
12174
+ marks: U
12175
12175
  } = p;
12176
- if (E.hasMarkPlaceholder = !1, p.selection && J.isCollapsed(p.selection) && G) {
12176
+ if (E.hasMarkPlaceholder = !1, p.selection && J.isCollapsed(p.selection) && U) {
12177
12177
  var {
12178
12178
  anchor: K
12179
12179
  } = p.selection, Q = le.leaf(p, K.path), ne = hl(Q, tz);
12180
- if (!_e.equals(Q, G, {
12180
+ if (!_e.equals(Q, U, {
12181
12181
  loose: !0
12182
12182
  })) {
12183
12183
  E.hasMarkPlaceholder = !0;
12184
- var U = Object.fromEntries(Object.keys(ne).map((I) => [I, null]));
12184
+ var G = Object.fromEntries(Object.keys(ne).map((I) => [I, null]));
12185
12185
  z.push(Wn(Wn(Wn({
12186
12186
  [hO]: !0
12187
- }, U), G), {}, {
12187
+ }, G), U), {}, {
12188
12188
  anchor: K,
12189
12189
  focus: K
12190
12190
  }));
@@ -12199,10 +12199,10 @@ var rz = (t) => /* @__PURE__ */ pe.createElement(pe.Fragment, null, DO(t)), nz =
12199
12199
  var {
12200
12200
  anchor: q
12201
12201
  } = I, j = le.leaf(p, q.path);
12202
- if (G && !_e.equals(j, G, {
12202
+ if (U && !_e.equals(j, U, {
12203
12203
  loose: !0
12204
12204
  })) {
12205
- Mn.set(p, G);
12205
+ Mn.set(p, U);
12206
12206
  return;
12207
12207
  }
12208
12208
  }
@@ -21831,8 +21831,8 @@ var mU = os({
21831
21831
  var F = B.split("-");
21832
21832
  if (!k && F.length > 1) return P(F[0]);
21833
21833
  } else {
21834
- var G = B.name;
21835
- w[G] = B, k = G;
21834
+ var U = B.name;
21835
+ w[U] = B, k = U;
21836
21836
  }
21837
21837
  return !z && k && (_ = k), k || !z && _;
21838
21838
  }, T = function(P, B) {
@@ -21857,8 +21857,8 @@ var mU = os({
21857
21857
  if (typeof k == "string" && !/Z$/i.test(k)) {
21858
21858
  var F = k.match(p);
21859
21859
  if (F) {
21860
- var G = F[2] - 1 || 0, K = (F[7] || "0").substring(0, 3);
21861
- return H ? new Date(Date.UTC(F[1], G, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, K)) : new Date(F[1], G, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, K);
21860
+ var U = F[2] - 1 || 0, K = (F[7] || "0").substring(0, 3);
21861
+ return H ? new Date(Date.UTC(F[1], U, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, K)) : new Date(F[1], U, F[3] || 1, F[4] || 0, F[5] || 0, F[6] || 0, K);
21862
21862
  }
21863
21863
  }
21864
21864
  return new Date(k);
@@ -21884,20 +21884,20 @@ var mU = os({
21884
21884
  }, B.valueOf = function() {
21885
21885
  return this.$d.getTime();
21886
21886
  }, B.startOf = function(N, z) {
21887
- var k = this, H = !!E.u(z) || z, F = E.p(N), G = function(W, Z) {
21887
+ var k = this, H = !!E.u(z) || z, F = E.p(N), U = function(W, Z) {
21888
21888
  var X = E.w(k.$u ? Date.UTC(k.$y, Z, W) : new Date(k.$y, Z, W), k);
21889
21889
  return H ? X : X.endOf(u);
21890
21890
  }, K = function(W, Z) {
21891
21891
  return E.w(k.toDate()[W].apply(k.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), k);
21892
- }, Q = this.$W, ne = this.$M, U = this.$D, I = "set" + (this.$u ? "UTC" : "");
21892
+ }, Q = this.$W, ne = this.$M, G = this.$D, I = "set" + (this.$u ? "UTC" : "");
21893
21893
  switch (F) {
21894
21894
  case h:
21895
- return H ? G(1, 0) : G(31, 11);
21895
+ return H ? U(1, 0) : U(31, 11);
21896
21896
  case c:
21897
- return H ? G(1, ne) : G(0, ne + 1);
21897
+ return H ? U(1, ne) : U(0, ne + 1);
21898
21898
  case f:
21899
21899
  var q = this.$locale().weekStart || 0, j = (Q < q ? Q + 7 : Q) - q;
21900
- return G(H ? U - j : U + (6 - j), ne);
21900
+ return U(H ? G - j : G + (6 - j), ne);
21901
21901
  case u:
21902
21902
  case v:
21903
21903
  return K(I + "Hours", 0);
@@ -21913,11 +21913,11 @@ var mU = os({
21913
21913
  }, B.endOf = function(N) {
21914
21914
  return this.startOf(N, !1);
21915
21915
  }, B.$set = function(N, z) {
21916
- var k, H = E.p(N), F = "set" + (this.$u ? "UTC" : ""), G = (k = {}, k[u] = F + "Date", k[v] = F + "Date", k[c] = F + "Month", k[h] = F + "FullYear", k[l] = F + "Hours", k[s] = F + "Minutes", k[o] = F + "Seconds", k[a] = F + "Milliseconds", k)[H], K = H === u ? this.$D + (z - this.$W) : z;
21916
+ var k, H = E.p(N), F = "set" + (this.$u ? "UTC" : ""), U = (k = {}, k[u] = F + "Date", k[v] = F + "Date", k[c] = F + "Month", k[h] = F + "FullYear", k[l] = F + "Hours", k[s] = F + "Minutes", k[o] = F + "Seconds", k[a] = F + "Milliseconds", k)[H], K = H === u ? this.$D + (z - this.$W) : z;
21917
21917
  if (H === c || H === h) {
21918
21918
  var Q = this.clone().set(v, 1);
21919
- Q.$d[G](K), Q.init(), this.$d = Q.set(v, Math.min(this.$D, Q.daysInMonth())).$d;
21920
- } else G && this.$d[G](K);
21919
+ Q.$d[U](K), Q.init(), this.$d = Q.set(v, Math.min(this.$D, Q.daysInMonth())).$d;
21920
+ } else U && this.$d[U](K);
21921
21921
  return this.init(), this;
21922
21922
  }, B.set = function(N, z) {
21923
21923
  return this.clone().$set(N, z);
@@ -21926,14 +21926,14 @@ var mU = os({
21926
21926
  }, B.add = function(N, z) {
21927
21927
  var k, H = this;
21928
21928
  N = Number(N);
21929
- var F = E.p(z), G = function(ne) {
21930
- var U = T(H);
21931
- return E.w(U.date(U.date() + Math.round(ne * N)), H);
21929
+ var F = E.p(z), U = function(ne) {
21930
+ var G = T(H);
21931
+ return E.w(G.date(G.date() + Math.round(ne * N)), H);
21932
21932
  };
21933
21933
  if (F === c) return this.set(c, this.$M + N);
21934
21934
  if (F === h) return this.set(h, this.$y + N);
21935
- if (F === u) return G(1);
21936
- if (F === f) return G(7);
21935
+ if (F === u) return U(1);
21936
+ if (F === f) return U(7);
21937
21937
  var K = (k = {}, k[s] = n, k[l] = i, k[o] = r, k)[F] || 1, Q = this.$d.getTime() + N * K;
21938
21938
  return E.w(Q, this);
21939
21939
  }, B.subtract = function(N, z) {
@@ -21941,10 +21941,10 @@ var mU = os({
21941
21941
  }, B.format = function(N) {
21942
21942
  var z = this, k = this.$locale();
21943
21943
  if (!this.isValid()) return k.invalidDate || g;
21944
- var H = N || "YYYY-MM-DDTHH:mm:ssZ", F = E.z(this), G = this.$H, K = this.$m, Q = this.$M, ne = k.weekdays, U = k.months, I = k.meridiem, q = function(Z, X, Y, ue) {
21944
+ var H = N || "YYYY-MM-DDTHH:mm:ssZ", F = E.z(this), U = this.$H, K = this.$m, Q = this.$M, ne = k.weekdays, G = k.months, I = k.meridiem, q = function(Z, X, Y, ue) {
21945
21945
  return Z && (Z[X] || Z(z, H)) || Y[X].slice(0, ue);
21946
21946
  }, j = function(Z) {
21947
- return E.s(G % 12 || 12, Z, "0");
21947
+ return E.s(U % 12 || 12, Z, "0");
21948
21948
  }, W = I || function(Z, X, Y) {
21949
21949
  var ue = Z < 12 ? "AM" : "PM";
21950
21950
  return Y ? ue.toLowerCase() : ue;
@@ -21961,9 +21961,9 @@ var mU = os({
21961
21961
  case "MM":
21962
21962
  return E.s(Q + 1, 2, "0");
21963
21963
  case "MMM":
21964
- return q(k.monthsShort, Q, U, 3);
21964
+ return q(k.monthsShort, Q, G, 3);
21965
21965
  case "MMMM":
21966
- return q(U, Q);
21966
+ return q(G, Q);
21967
21967
  case "D":
21968
21968
  return z.$D;
21969
21969
  case "DD":
@@ -21977,17 +21977,17 @@ var mU = os({
21977
21977
  case "dddd":
21978
21978
  return ne[z.$W];
21979
21979
  case "H":
21980
- return String(G);
21980
+ return String(U);
21981
21981
  case "HH":
21982
- return E.s(G, 2, "0");
21982
+ return E.s(U, 2, "0");
21983
21983
  case "h":
21984
21984
  return j(1);
21985
21985
  case "hh":
21986
21986
  return j(2);
21987
21987
  case "a":
21988
- return W(G, K, !0);
21988
+ return W(U, K, !0);
21989
21989
  case "A":
21990
- return W(G, K, !1);
21990
+ return W(U, K, !1);
21991
21991
  case "m":
21992
21992
  return String(K);
21993
21993
  case "mm":
@@ -22007,18 +22007,18 @@ var mU = os({
22007
22007
  }, B.utcOffset = function() {
22008
22008
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
22009
22009
  }, B.diff = function(N, z, k) {
22010
- var H, F = this, G = E.p(z), K = T(N), Q = (K.utcOffset() - this.utcOffset()) * n, ne = this - K, U = function() {
22010
+ var H, F = this, U = E.p(z), K = T(N), Q = (K.utcOffset() - this.utcOffset()) * n, ne = this - K, G = function() {
22011
22011
  return E.m(F, K);
22012
22012
  };
22013
- switch (G) {
22013
+ switch (U) {
22014
22014
  case h:
22015
- H = U() / 12;
22015
+ H = G() / 12;
22016
22016
  break;
22017
22017
  case c:
22018
- H = U();
22018
+ H = G();
22019
22019
  break;
22020
22020
  case d:
22021
- H = U() / 3;
22021
+ H = G() / 3;
22022
22022
  break;
22023
22023
  case f:
22024
22024
  H = (ne - Q) / 6048e5;
@@ -27125,14 +27125,14 @@ var Li = function() {
27125
27125
  break;
27126
27126
  }
27127
27127
  case vt.A:
27128
- var F = n[w++], G = n[w++], K = n[w++], Q = n[w++], ne = n[w++], U = n[w++], I = n[w++], q = !n[w++], j = K > Q ? K : Q, W = bi(K - Q) > 1e-3, Z = ne + U, X = !1;
27128
+ var F = n[w++], U = n[w++], K = n[w++], Q = n[w++], ne = n[w++], G = n[w++], I = n[w++], q = !n[w++], j = K > Q ? K : Q, W = bi(K - Q) > 1e-3, Z = ne + G, X = !1;
27129
27129
  if (h) {
27130
27130
  var E = v[m++];
27131
- p + E > y && (Z = ne + U * (y - p) / E, X = !0), p += E;
27131
+ p + E > y && (Z = ne + G * (y - p) / E, X = !0), p += E;
27132
27132
  }
27133
- if (W && e.ellipse ? e.ellipse(F, G, K, Q, I, ne, Z, q) : e.arc(F, G, j, ne, Z, q), X)
27133
+ if (W && e.ellipse ? e.ellipse(F, U, K, Q, I, ne, Z, q) : e.arc(F, U, j, ne, Z, q), X)
27134
27134
  break e;
27135
- D && (s = Qa(ne) * K + F, l = Ja(ne) * Q + G), u = Qa(Z) * K + F, f = Ja(Z) * Q + G;
27135
+ D && (s = Qa(ne) * K + F, l = Ja(ne) * Q + U), u = Qa(Z) * K + F, f = Ja(Z) * Q + U;
27136
27136
  break;
27137
27137
  case vt.R:
27138
27138
  s = u = n[w], l = f = n[w + 1], c = n[w++], d = n[w++];
@@ -28525,11 +28525,11 @@ function tZ(t, e) {
28525
28525
  if (H) {
28526
28526
  var F = e.cornerRadius;
28527
28527
  F && (r = eZ(F), g = r[0], p = r[1], m = r[2], y = r[3]);
28528
- var G = lS(n - i) / 2;
28529
- if (b = Hn(G, m), C = Hn(G, y), _ = Hn(G, g), w = Hn(G, p), S = x = Ru(b, C), T = D = Ru(_, w), (x > En || D > En) && (E = n * Ss(u), R = n * ro(u), M = i * Ss(l), P = i * ro(l), h < QP)) {
28528
+ var U = lS(n - i) / 2;
28529
+ if (b = Hn(U, m), C = Hn(U, y), _ = Hn(U, g), w = Hn(U, p), S = x = Ru(b, C), T = D = Ru(_, w), (x > En || D > En) && (E = n * Ss(u), R = n * ro(u), M = i * Ss(l), P = i * ro(l), h < QP)) {
28530
28530
  var K = JX(B, N, M, P, E, R, z, k);
28531
28531
  if (K) {
28532
- var Q = B - K[0], ne = N - K[1], U = E - K[0], I = R - K[1], q = 1 / ro(QX((Q * U + ne * I) / (Qu(Q * Q + ne * ne) * Qu(U * U + I * I))) / 2), j = Qu(K[0] * K[0] + K[1] * K[1]);
28532
+ var Q = B - K[0], ne = N - K[1], G = E - K[0], I = R - K[1], q = 1 / ro(QX((Q * G + ne * I) / (Qu(Q * Q + ne * ne) * Qu(G * G + I * I))) / 2), j = Qu(K[0] * K[0] + K[1] * K[1]);
28533
28533
  S = Hn(x, (n - j) / (q + 1)), T = Hn(D, (i - j) / (q - 1));
28534
28534
  }
28535
28535
  }
@@ -34327,13 +34327,13 @@ function Dy(t, e) {
34327
34327
  for (var M = -C, P = 0, B = 0, N = 0; M < x.height; ) {
34328
34328
  if (P % 2 === 0) {
34329
34329
  for (var z = B / 2 % y.length, k = 0, H = 0, F = 0; k < x.width * 2; ) {
34330
- for (var G = 0, R = 0; R < p[N].length; ++R)
34331
- G += p[N][R];
34332
- if (G <= 0)
34330
+ for (var U = 0, R = 0; R < p[N].length; ++R)
34331
+ U += p[N][R];
34332
+ if (U <= 0)
34333
34333
  break;
34334
34334
  if (H % 2 === 0) {
34335
- var K = (1 - o.symbolSize) * 0.5, Q = k + p[N][H] * K, ne = M + m[P] * K, U = p[N][H] * o.symbolSize, I = m[P] * o.symbolSize, q = F / 2 % y[z].length;
34336
- j(Q, ne, U, I, y[z][q]);
34335
+ var K = (1 - o.symbolSize) * 0.5, Q = k + p[N][H] * K, ne = M + m[P] * K, G = p[N][H] * o.symbolSize, I = m[P] * o.symbolSize, q = F / 2 % y[z].length;
34336
+ j(Q, ne, G, I, y[z][q]);
34337
34337
  }
34338
34338
  k += p[N][H], ++F, ++H, H === p[N].length && (H = 0);
34339
34339
  }
@@ -36655,27 +36655,27 @@ function Aee(t) {
36655
36655
  for (var _ = b.count, w = v && Ai(_ * 3), x = v && l && Ai(_ * 3), D = v && Ai(_), S = n.master.getRect(), T = d ? S.width : S.height, E, R = C.getStore(), M = 0; (E = b.next()) != null; ) {
36656
36656
  var P = R.get(c ? p : o, E), B = R.get(s, E), N = h, z = void 0;
36657
36657
  c && (z = +P - R.get(o, E));
36658
- var k = void 0, H = void 0, F = void 0, G = void 0;
36658
+ var k = void 0, H = void 0, F = void 0, U = void 0;
36659
36659
  if (d) {
36660
36660
  var K = n.dataToPoint([P, B]);
36661
36661
  if (c) {
36662
36662
  var Q = n.dataToPoint([z, B]);
36663
36663
  N = Q[0];
36664
36664
  }
36665
- k = N, H = K[1] + y, F = K[0] - N, G = m, Math.abs(F) < g && (F = (F < 0 ? -1 : 1) * g);
36665
+ k = N, H = K[1] + y, F = K[0] - N, U = m, Math.abs(F) < g && (F = (F < 0 ? -1 : 1) * g);
36666
36666
  } else {
36667
36667
  var K = n.dataToPoint([B, P]);
36668
36668
  if (c) {
36669
36669
  var Q = n.dataToPoint([B, z]);
36670
36670
  N = Q[1];
36671
36671
  }
36672
- k = K[0] + y, H = N, F = m, G = K[1] - N, Math.abs(G) < g && (G = (G <= 0 ? -1 : 1) * g);
36672
+ k = K[0] + y, H = N, F = m, U = K[1] - N, Math.abs(U) < g && (U = (U <= 0 ? -1 : 1) * g);
36673
36673
  }
36674
- v ? (w[M] = k, w[M + 1] = H, w[M + 2] = d ? F : G, x && (x[M] = d ? S.x : k, x[M + 1] = d ? H : S.y, x[M + 2] = T), D[E] = E) : C.setItemLayout(E, {
36674
+ v ? (w[M] = k, w[M + 1] = H, w[M + 2] = d ? F : U, x && (x[M] = d ? S.x : k, x[M + 1] = d ? H : S.y, x[M + 2] = T), D[E] = E) : C.setItemLayout(E, {
36675
36675
  x: k,
36676
36676
  y: H,
36677
36677
  width: F,
36678
- height: G
36678
+ height: U
36679
36679
  }), M += 3;
36680
36680
  }
36681
36681
  v && C.setLayout({
@@ -36864,7 +36864,7 @@ function Fee(t, e, r, n) {
36864
36864
  for (var B = 0; B < E.length - 1; B++) {
36865
36865
  var N = E[B].value, z = E[B + 1].value;
36866
36866
  if (N !== z) {
36867
- var k = void 0, H = void 0, F = void 0, G = !1;
36867
+ var k = void 0, H = void 0, F = void 0, U = !1;
36868
36868
  switch (T) {
36869
36869
  case "year":
36870
36870
  k = Math.max(1, Math.round(e / vn / 365)), H = W1(r), F = QZ(r);
@@ -36877,7 +36877,7 @@ function Fee(t, e, r, n) {
36877
36877
  case "week":
36878
36878
  case "half-week":
36879
36879
  case "day":
36880
- k = Mee(e), H = Uv(r), F = yB(r), G = !0;
36880
+ k = Mee(e), H = Uv(r), F = yB(r), U = !0;
36881
36881
  break;
36882
36882
  case "half-day":
36883
36883
  case "quarter-day":
@@ -36894,7 +36894,7 @@ function Fee(t, e, r, n) {
36894
36894
  k = Iee(e), H = Xv(r), F = wB(r);
36895
36895
  break;
36896
36896
  }
36897
- s(k, N, z, H, F, G, M), T === "year" && R.length > 1 && B === 0 && R.unshift({
36897
+ s(k, N, z, H, F, U, M), T === "year" && R.length > 1 && B === 0 && R.unshift({
36898
36898
  value: R[0].value - k
36899
36899
  });
36900
36900
  }
@@ -38510,19 +38510,19 @@ function Ete(t, e, r, n, i, a, o, s) {
38510
38510
  }
38511
38511
  _ && (h.push(C), v.push(v.length));
38512
38512
  }
38513
- v.sort(function(U, I) {
38514
- return g[U] - g[I];
38513
+ v.sort(function(G, I) {
38514
+ return g[G] - g[I];
38515
38515
  });
38516
- for (var N = u.length, z = Ai(N), k = Ai(N), H = Ai(N), F = Ai(N), G = [], b = 0; b < v.length; b++) {
38516
+ for (var N = u.length, z = Ai(N), k = Ai(N), H = Ai(N), F = Ai(N), U = [], b = 0; b < v.length; b++) {
38517
38517
  var K = v[b], Q = b * 2, ne = K * 2;
38518
- z[Q] = u[ne], z[Q + 1] = u[ne + 1], k[Q] = f[ne], k[Q + 1] = f[ne + 1], H[Q] = c[ne], H[Q + 1] = c[ne + 1], F[Q] = d[ne], F[Q + 1] = d[ne + 1], G[b] = h[K];
38518
+ z[Q] = u[ne], z[Q + 1] = u[ne + 1], k[Q] = f[ne], k[Q + 1] = f[ne + 1], H[Q] = c[ne], H[Q + 1] = c[ne + 1], F[Q] = d[ne], F[Q + 1] = d[ne + 1], U[b] = h[K];
38519
38519
  }
38520
38520
  return {
38521
38521
  current: z,
38522
38522
  next: k,
38523
38523
  stackedOnCurrent: H,
38524
38524
  stackedOnNext: F,
38525
- status: G
38525
+ status: U
38526
38526
  };
38527
38527
  }
38528
38528
  var ra = Math.min, na = Math.max;
@@ -38568,8 +38568,8 @@ function My(t, e, r, n, i, a, o, s, l) {
38568
38568
  h = m - F * k * o, v = y, R = m + F * H * o, M = y;
38569
38569
  } else if (s === "y") {
38570
38570
  k = Math.abs(N), H = Math.abs(z);
38571
- var G = E > 0 ? 1 : -1;
38572
- h = m, v = y - G * k * o, R = m, M = y + G * H * o;
38571
+ var U = E > 0 ? 1 : -1;
38572
+ h = m, v = y - U * k * o, R = m, M = y + U * H * o;
38573
38573
  } else
38574
38574
  k = Math.sqrt(P * P + N * N), H = Math.sqrt(B * B + z * z), S = H / (H + k), h = m - T * o * (1 - S), v = y - E * o * (1 - S), R = m + T * o * S, M = y + E * o * S, R = ra(R, na(w, m)), M = ra(M, na(x, y)), R = na(R, ra(w, m)), M = na(M, ra(x, y)), T = R - m, E = M - y, h = m - T * k / H, v = y - E * k / H, h = ra(h, na(u, m)), v = ra(v, na(f, y)), h = na(h, ra(u, m)), v = na(v, ra(f, y)), T = m - h, E = y - v, R = m + T * H / k, M = y + E * H / k;
38575
38575
  }
@@ -39020,9 +39020,9 @@ var zte = (
39020
39020
  F.lineWidth = +g.style.lineWidth + 1;
39021
39021
  }
39022
39022
  qe(g).seriesIndex = r.seriesIndex, wf(g, z, k, H);
39023
- var G = VE(r.get("smooth")), K = r.get("smoothMonotone");
39023
+ var U = VE(r.get("smooth")), K = r.get("smoothMonotone");
39024
39024
  if (g.setShape({
39025
- smooth: G,
39025
+ smooth: U,
39026
39026
  smoothMonotone: K,
39027
39027
  connectNulls: D
39028
39028
  }), p) {
@@ -39033,18 +39033,18 @@ var zte = (
39033
39033
  lineJoin: "bevel",
39034
39034
  decal: l.getVisual("style").decal
39035
39035
  })), Q && (ne = VE(Q.get("smooth"))), p.setShape({
39036
- smooth: G,
39036
+ smooth: U,
39037
39037
  stackedOnSmooth: ne,
39038
39038
  smoothMonotone: K,
39039
39039
  connectNulls: D
39040
39040
  }), Ch(p, r, "areaStyle"), qe(p).seriesIndex = r.seriesIndex, wf(p, z, k, H);
39041
39041
  }
39042
- var U = function(I) {
39042
+ var G = function(I) {
39043
39043
  a._changePolyState(I);
39044
39044
  };
39045
39045
  l.eachItemGraphicEl(function(I) {
39046
- I && (I.onHoverStateChange = U);
39047
- }), this._polyline.onHoverStateChange = U, this._data = l, this._coordSys = o, this._stackedOnPoints = w, this._points = c, this._step = E, this._valueOrigin = C, r.get("triggerLineEvent") && (this.packEventData(r, g), p && this.packEventData(r, p));
39046
+ I && (I.onHoverStateChange = G);
39047
+ }), this._polyline.onHoverStateChange = G, this._data = l, this._coordSys = o, this._stackedOnPoints = w, this._points = c, this._step = E, this._valueOrigin = C, r.get("triggerLineEvent") && (this.packEventData(r, g), p && this.packEventData(r, p));
39048
39048
  }, e.prototype.packEventData = function(r, n) {
39049
39049
  qe(n).eventData = {
39050
39050
  componentType: "series",
@@ -39661,8 +39661,8 @@ var Zte = (
39661
39661
  if (v && (H = UE[u.type](g, P), H && o.remove(k)), k ? F1(k) : k = qE[u.type](r, s, E, P, c, d, f.model, !!k, p), h && (k.forceLabelAnimation = !0), x) {
39662
39662
  var F = k.getTextContent();
39663
39663
  if (F) {
39664
- var G = Ll(F);
39665
- G.prevValue != null && (G.prevValue = G.value);
39664
+ var U = Ll(F);
39665
+ U.prevValue != null && (U.prevValue = U.value);
39666
39666
  }
39667
39667
  } else
39668
39668
  KE(k, s, E, M, P, r, c, u.type === "polar");
@@ -40111,10 +40111,10 @@ function ore(t, e, r) {
40111
40111
  return;
40112
40112
  }
40113
40113
  _ !== "area" ? H = y === 0 && w ? b : z * b : H = R / m, H < p ? (H = p, M -= p) : P += z;
40114
- var F = B + D * H, G = 0, K = 0;
40115
- v > H ? (G = B + D * H / 2, K = G) : (G = B + T, K = F - T), i.setItemLayout(k, {
40114
+ var F = B + D * H, U = 0, K = 0;
40115
+ v > H ? (U = B + D * H / 2, K = U) : (U = B + T, K = F - T), i.setItemLayout(k, {
40116
40116
  angle: H,
40117
- startAngle: G,
40117
+ startAngle: U,
40118
40118
  endAngle: K,
40119
40119
  clockwise: C,
40120
40120
  cx: l,
@@ -40129,15 +40129,15 @@ function ore(t, e, r) {
40129
40129
  if (!isNaN(z)) {
40130
40130
  var H = i.getItemLayout(k);
40131
40131
  H.angle = N;
40132
- var F = 0, G = 0;
40133
- N < v ? (F = d + D * (k + 1 / 2) * N, G = F) : (F = d + D * k * N + T, G = d + D * (k + 1) * N - T), H.startAngle = F, H.endAngle = G;
40132
+ var F = 0, U = 0;
40133
+ N < v ? (F = d + D * (k + 1 / 2) * N, U = F) : (F = d + D * k * N + T, U = d + D * (k + 1) * N - T), H.startAngle = F, H.endAngle = U;
40134
40134
  }
40135
40135
  });
40136
40136
  } else
40137
40137
  b = M / P, B = d, i.each(a, function(z, k) {
40138
40138
  if (!isNaN(z)) {
40139
- var H = i.getItemLayout(k), F = H.angle === p ? p : z * b, G = 0, K = 0;
40140
- F < v ? (G = B + D * F / 2, K = G) : (G = B + T, K = B + D * F - T), H.startAngle = G, H.endAngle = K, B += D * F;
40139
+ var H = i.getItemLayout(k), F = H.angle === p ? p : z * b, U = 0, K = 0;
40140
+ F < v ? (U = B + D * F / 2, K = U) : (U = B + T, K = B + D * F - T), H.startAngle = U, H.endAngle = K, B += D * F;
40141
40141
  }
40142
40142
  });
40143
40143
  });
@@ -40269,16 +40269,16 @@ function fre(t) {
40269
40269
  return;
40270
40270
  }
40271
40271
  if (v(S)) {
40272
- var G = (D.startAngle + D.endAngle) / 2, K = Math.cos(G), Q = Math.sin(G), ne, U, I, q;
40272
+ var U = (D.startAngle + D.endAngle) / 2, K = Math.cos(U), Q = Math.sin(U), ne, G, I, q;
40273
40273
  n = D.cx, i = D.cy;
40274
40274
  var j = M === "inside" || M === "inner";
40275
40275
  if (M === "center")
40276
- ne = D.cx, U = D.cy, q = "center";
40276
+ ne = D.cx, G = D.cy, q = "center";
40277
40277
  else {
40278
40278
  var W = (j ? (D.r + D.r0) / 2 * K : D.r * K) + n, Z = (j ? (D.r + D.r0) / 2 * Q : D.r * Q) + i;
40279
- if (ne = W + K * 3, U = Z + Q * 3, !j) {
40279
+ if (ne = W + K * 3, G = Z + Q * 3, !j) {
40280
40280
  var X = W + K * (H + l - D.r), Y = Z + Q * (H + l - D.r), ue = X + (K < 0 ? -1 : 1) * F, ae = Y;
40281
- B === "edge" ? ne = K < 0 ? f + N : f + u - N : ne = ue + (K < 0 ? -P : P), U = ae, I = [[W, Z], [X, Y], [ue, ae]];
40281
+ B === "edge" ? ne = K < 0 ? f + N : f + u - N : ne = ue + (K < 0 ? -P : P), G = ae, I = [[W, Z], [X, Y], [ue, ae]];
40282
40282
  }
40283
40283
  q = j ? "center" : B === "edge" ? K > 0 ? "right" : "left" : K > 0 ? "left" : "right";
40284
40284
  }
@@ -40288,7 +40288,7 @@ function fre(t) {
40288
40288
  else if (M === "center")
40289
40289
  be = 0;
40290
40290
  else if (ce === "radial" || ce === !0) {
40291
- var fe = K < 0 ? -G + Ce : -G;
40291
+ var fe = K < 0 ? -U + Ce : -U;
40292
40292
  be = fe;
40293
40293
  } else if (ce === "tangential" && M !== "outside" && M !== "outer") {
40294
40294
  var he = Math.atan2(K, Q);
@@ -40296,7 +40296,7 @@ function fre(t) {
40296
40296
  var Me = Q > 0;
40297
40297
  Me && (he = Ce + he), be = he - Ce;
40298
40298
  }
40299
- if (a = !!be, S.x = ne, S.y = U, S.rotation = be, S.setStyle({
40299
+ if (a = !!be, S.x = ne, S.y = G, S.rotation = be, S.setStyle({
40300
40300
  verticalAlign: "middle"
40301
40301
  }), j) {
40302
40302
  S.setStyle({
@@ -44961,8 +44961,8 @@ function Uy(t) {
44961
44961
  Ys(M, B) && Ys(P, N) || i.push(M, P, B, N, B, N);
44962
44962
  }
44963
44963
  function c(M, P, B, N, z, k) {
44964
- var H = Math.abs(P - M), F = Math.tan(H / 4) * 4 / 3, G = P < M ? -1 : 1, K = Math.cos(M), Q = Math.sin(M), ne = Math.cos(P), U = Math.sin(P), I = K * z + B, q = Q * k + N, j = ne * z + B, W = U * k + N, Z = z * F * G, X = k * F * G;
44965
- i.push(I - Z * Q, q + X * K, j + Z * U, W - X * ne, j, W);
44964
+ var H = Math.abs(P - M), F = Math.tan(H / 4) * 4 / 3, U = P < M ? -1 : 1, K = Math.cos(M), Q = Math.sin(M), ne = Math.cos(P), G = Math.sin(P), I = K * z + B, q = Q * k + N, j = ne * z + B, W = G * k + N, Z = z * F * U, X = k * F * U;
44965
+ i.push(I - Z * Q, q + X * K, j + Z * G, W - X * ne, j, W);
44966
44966
  }
44967
44967
  for (var d, h, v, g, p = 0; p < r; ) {
44968
44968
  var m = e[p++], y = p === 1;
@@ -45329,8 +45329,8 @@ function QN(t, e) {
45329
45329
  var N = c[0], z = c[1];
45330
45330
  d.moveTo(N, z);
45331
45331
  for (var S = 2; S < y.length; ) {
45332
- var R = c[S++], M = c[S++], k = c[S++], H = c[S++], F = c[S++], G = c[S++];
45333
- N === R && z === M && k === F && H === G ? d.lineTo(F, G) : d.bezierCurveTo(R, M, k, H, F, G), N = F, z = G;
45332
+ var R = c[S++], M = c[S++], k = c[S++], H = c[S++], F = c[S++], U = c[S++];
45333
+ N === R && z === M && k === F && H === U ? d.lineTo(F, U) : d.bezierCurveTo(R, M, k, H, F, U), N = F, z = U;
45334
45334
  }
45335
45335
  }
45336
45336
  } });
@@ -46785,8 +46785,8 @@ class qh extends ip {
46785
46785
  B.push(N[k]);
46786
46786
  else this.options.saveMissingTo === "all" ? B = this.languageUtils.toResolveHierarchy(r.lng || this.language) : B.push(r.lng || this.language);
46787
46787
  const z = (k, H, F) => {
46788
- const G = x && F !== d ? F : M;
46789
- this.options.missingKeyHandler ? this.options.missingKeyHandler(k, l, H, G, P, r) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(k, l, H, G, P, r), this.emit("missingKey", k, l, H, d);
46788
+ const U = x && F !== d ? F : M;
46789
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(k, l, H, U, P, r) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(k, l, H, U, P, r), this.emit("missingKey", k, l, H, d);
46790
46790
  };
46791
46791
  this.options.saveMissing && (this.options.saveMissingPlurals && w ? B.forEach((k) => {
46792
46792
  const H = this.pluralResolver.getSuffixes(k, r);
@@ -48085,7 +48085,7 @@ const Hae = (t, e) => ({
48085
48085
  show: ((m = e == null ? void 0 : e.chartOptions) == null ? void 0 : m.includes("label")) || ((y = r == null ? void 0 : r.xchartOptions) == null ? void 0 : y.includes("label")),
48086
48086
  position: "top",
48087
48087
  formatter: "{c}"
48088
- }, H = (e == null ? void 0 : e.xAxis) === "tags" ? "tag" : e == null ? void 0 : e.xAxis, F = (e == null ? void 0 : e.groupField) === "tags" ? "tag" : e == null ? void 0 : e.groupField, G = (b = e == null ? void 0 : e.chartOptions) == null ? void 0 : b.includes("legend"), K = (ce) => {
48088
+ }, H = (e == null ? void 0 : e.xAxis) === "tags" ? "tag" : e == null ? void 0 : e.xAxis, F = (e == null ? void 0 : e.groupField) === "tags" ? "tag" : e == null ? void 0 : e.groupField, U = (b = e == null ? void 0 : e.chartOptions) == null ? void 0 : b.includes("legend"), K = (ce) => {
48089
48089
  const fe = o == null ? void 0 : o.find((he) => he.value === ce);
48090
48090
  return fe == null ? void 0 : fe.label;
48091
48091
  }, Q = ({ item: ce, field: fe }) => Dd({
@@ -48117,7 +48117,7 @@ const Hae = (t, e) => ({
48117
48117
  }
48118
48118
  return Ze > Ut ? 1 * Me : Ze < Ut ? -1 * Me : 0;
48119
48119
  });
48120
- }, U = {}, I = {}, q = {}, j = {}, W = /* @__PURE__ */ new Set(), Z = /* @__PURE__ */ new Set();
48120
+ }, G = {}, I = {}, q = {}, j = {}, W = /* @__PURE__ */ new Set(), Z = /* @__PURE__ */ new Set();
48121
48121
  if (l.forEach((ce) => {
48122
48122
  const fe = Q({
48123
48123
  item: ce,
@@ -48133,7 +48133,7 @@ const Hae = (t, e) => ({
48133
48133
  Z.add(Me), q[Me] || (q[Me] = {}), q[Me][ot] = he;
48134
48134
  } else {
48135
48135
  const Me = fe ?? Nm("unknown");
48136
- U[Me] = he;
48136
+ G[Me] = he;
48137
48137
  }
48138
48138
  }), e != null && e.isGroup && (e != null && e.groupField)) {
48139
48139
  const ce = {};
@@ -48148,7 +48148,7 @@ const Hae = (t, e) => ({
48148
48148
  });
48149
48149
  });
48150
48150
  } else
48151
- Object.entries(U).forEach(([ce, fe]) => {
48151
+ Object.entries(G).forEach(([ce, fe]) => {
48152
48152
  const he = fe || 1;
48153
48153
  I[ce] = fe / he * 100;
48154
48154
  });
@@ -48190,7 +48190,7 @@ const Hae = (t, e) => ({
48190
48190
  const ce = e.type === "chart-bar-percentage" || e.type === "chart-strip-bar-percentage" ? X.map((fe) => {
48191
48191
  var he;
48192
48192
  return ((he = I[fe]) == null ? void 0 : he.toFixed(2)) || 0;
48193
- }) : X.map((fe) => U[fe] || 0);
48193
+ }) : X.map((fe) => G[fe] || 0);
48194
48194
  ae.push(
48195
48195
  yT({
48196
48196
  type: e.type,
@@ -48208,7 +48208,7 @@ const Hae = (t, e) => ({
48208
48208
  left: "center",
48209
48209
  right: "center",
48210
48210
  top: "0",
48211
- show: G,
48211
+ show: U,
48212
48212
  itemWidth: 12,
48213
48213
  itemHeight: 12,
48214
48214
  data: (ae == null ? void 0 : ae.map((ce) => (ce == null ? void 0 : ce.name) || "")) || []
@@ -51925,17 +51925,17 @@ const Iue = () => /* @__PURE__ */ A.jsx(
51925
51925
  text: S("pb.text"),
51926
51926
  calendar: S("calendarText"),
51927
51927
  statistics: S("chartText")
51928
- }, [, z] = we(f.lg), k = async (U) => {
51929
- const I = U.type === "calendar" ? 5 : 4, q = U.type === "calendar" ? 5 : 3;
51930
- if (Array.isArray(v) && U.type) {
51928
+ }, [, z] = we(f.lg), k = async (G) => {
51929
+ const I = G.type === "calendar" ? 5 : 4, q = G.type === "calendar" ? 5 : 3;
51930
+ if (Array.isArray(v) && G.type) {
51931
51931
  const j = {
51932
51932
  x: 0,
51933
51933
  y: 0,
51934
51934
  w: I,
51935
51935
  h: q,
51936
- title: U.type.includes("chart") ? S("chartText") : N[U.type],
51937
- ...U,
51938
- type: U.type
51936
+ title: G.type.includes("chart") ? S("chartText") : N[G.type],
51937
+ ...G,
51938
+ type: G.type
51939
51939
  };
51940
51940
  await (a == null ? void 0 : a(j).then((W) => {
51941
51941
  var Z, X;
@@ -51949,12 +51949,12 @@ const Iue = () => /* @__PURE__ */ A.jsx(
51949
51949
  ]);
51950
51950
  }));
51951
51951
  }
51952
- }, H = async (U, I) => {
51952
+ }, H = async (G, I) => {
51953
51953
  if (v != null && v.length) {
51954
51954
  const j = {
51955
- ...v.find((Z) => Z.id === U),
51955
+ ...v.find((Z) => Z.id === G),
51956
51956
  ...I
51957
- }, W = v.map((Z) => Z.id === U ? j : Z);
51957
+ }, W = v.map((Z) => Z.id === G ? j : Z);
51958
51958
  g(W), await (o == null ? void 0 : o(j).then((Z) => {
51959
51959
  if (!Z.success) {
51960
51960
  Xs.error(Z.message);
@@ -51962,15 +51962,15 @@ const Iue = () => /* @__PURE__ */ A.jsx(
51962
51962
  }
51963
51963
  }));
51964
51964
  }
51965
- }, F = async (U) => {
51966
- if (!(v != null && v.length) || !(U != null && U.length)) return;
51965
+ }, F = async (G) => {
51966
+ if (!(v != null && v.length) || !(G != null && G.length)) return;
51967
51967
  const I = v.map((q) => {
51968
- const j = U.find((W) => W.id === q.id);
51968
+ const j = G.find((W) => W.id === q.id);
51969
51969
  return j ? { ...q, ...j } : q;
51970
51970
  });
51971
51971
  g(I);
51972
51972
  try {
51973
- for (const q of U) {
51973
+ for (const q of G) {
51974
51974
  const j = await (o == null ? void 0 : o(q));
51975
51975
  if (!(j != null && j.success))
51976
51976
  throw new Error(
@@ -51980,14 +51980,14 @@ const Iue = () => /* @__PURE__ */ A.jsx(
51980
51980
  } catch (q) {
51981
51981
  g(v), Xs.error(q.message || "Failed to update modules");
51982
51982
  }
51983
- }, G = async (U) => {
51984
- v != null && v.length && (g(v.filter((I) => I.id !== U)), await (s == null ? void 0 : s(U || "")));
51985
- }, K = (U, I) => {
51983
+ }, U = async (G) => {
51984
+ v != null && v.length && (g(v.filter((I) => I.id !== G)), await (s == null ? void 0 : s(G || "")));
51985
+ }, K = (G, I) => {
51986
51986
  z(I);
51987
- }, Q = (U) => {
51988
- if (U === "text") {
51987
+ }, Q = (G) => {
51988
+ if (G === "text") {
51989
51989
  const I = {
51990
- type: U,
51990
+ type: G,
51991
51991
  customData: {
51992
51992
  title: S("text"),
51993
51993
  editor: [
@@ -52003,25 +52003,19 @@ const Iue = () => /* @__PURE__ */ A.jsx(
52003
52003
  }
52004
52004
  };
52005
52005
  k(I);
52006
- } else U === "statistics" ? E(!0) : U === "calendar" ? M(!0) : U != null && U.includes("chart") && B(!0);
52006
+ } else G === "statistics" ? E(!0) : G === "calendar" ? M(!0) : G != null && G.includes("chart") && B(!0);
52007
52007
  _({
52008
52008
  title: "",
52009
- type: U,
52009
+ type: G,
52010
52010
  w: 0,
52011
52011
  h: 0,
52012
52012
  x: 0,
52013
52013
  y: 0
52014
52014
  });
52015
- }, ne = (U) => {
52016
- const I = wU(U, v);
52015
+ }, ne = (G) => {
52016
+ const I = wU(G, v);
52017
52017
  F(
52018
- I.map((q) => ({
52019
- id: q.i,
52020
- x: q.x,
52021
- y: q.y,
52022
- w: q.w,
52023
- h: q.h
52024
- }))
52018
+ I.map((q) => ({ ...v == null ? void 0 : v.find((W) => W.i === q.i), ...q }))
52025
52019
  );
52026
52020
  };
52027
52021
  return je(() => {
@@ -52035,8 +52029,8 @@ const Iue = () => /* @__PURE__ */ A.jsx(
52035
52029
  /* @__PURE__ */ A.jsx("div", { className: "bitable-block-dashboard-toolbar bitable-toolbar", children: /* @__PURE__ */ A.jsx("div", { className: "bitable-block-dashboard-toolbar--left", children: /* @__PURE__ */ A.jsx(
52036
52030
  Qle,
52037
52031
  {
52038
- onOk: (U) => {
52039
- Q(U);
52032
+ onOk: (G) => {
52033
+ Q(G);
52040
52034
  }
52041
52035
  }
52042
52036
  ) }) }),
@@ -52056,43 +52050,40 @@ const Iue = () => /* @__PURE__ */ A.jsx(
52056
52050
  rowHeight: c,
52057
52051
  measureBeforeMount: !1,
52058
52052
  draggableHandle: ".isCanDrag",
52059
- onWidthChange: (U, I, q) => {
52060
- m(U / q - 1);
52061
- },
52062
- onLayoutChange: (U) => {
52063
- ne(U);
52053
+ onWidthChange: (G, I, q) => {
52054
+ m(G / q - 1);
52064
52055
  },
52065
52056
  onDragStart: () => {
52066
52057
  x(!0);
52067
52058
  },
52068
- onDragStop: () => {
52069
- x(!1);
52059
+ onDragStop: (G) => {
52060
+ x(!1), ne(G);
52070
52061
  },
52071
52062
  onResizeStart: () => {
52072
52063
  x(!0);
52073
52064
  },
52074
- onResizeStop: () => {
52075
- x(!1);
52065
+ onResizeStop: (G) => {
52066
+ x(!1), ne(G);
52076
52067
  },
52077
52068
  style: {
52078
52069
  backgroundSize: `${p}px ${c + d[0]}px`,
52079
52070
  backgroundPosition: `${d[0]}px ${d[0]}px`,
52080
52071
  minHeight: "100vh"
52081
52072
  },
52082
- children: v == null ? void 0 : v.map((U) => /* @__PURE__ */ A.jsxs(
52073
+ children: v == null ? void 0 : v.map((G) => /* @__PURE__ */ A.jsxs(
52083
52074
  "div",
52084
52075
  {
52085
- className: `box-dashboard ${y === U.id ? "active" : ""}`,
52076
+ className: `box-dashboard ${y === G.id ? "active" : ""}`,
52086
52077
  onClick: () => {
52087
- b(U.id);
52078
+ b(G.id);
52088
52079
  },
52089
52080
  "data-grid": {
52090
- i: U.id,
52091
- x: U.x || 0,
52092
- y: U.y || 0,
52081
+ i: G.id,
52082
+ x: G.x || 0,
52083
+ y: G.y || 0,
52093
52084
  // puts it at the bottom
52094
- w: U.w || 2,
52095
- h: U.h || 2,
52085
+ w: G.w || 2,
52086
+ h: G.h || 2,
52096
52087
  minW: 2,
52097
52088
  minH: 2
52098
52089
  },
@@ -52100,26 +52091,26 @@ const Iue = () => /* @__PURE__ */ A.jsx(
52100
52091
  /* @__PURE__ */ A.jsx(
52101
52092
  Lue,
52102
52093
  {
52103
- module: U,
52104
- defaultValue: U.title,
52105
- onChange: (I) => H(U.id, {
52094
+ module: G,
52095
+ defaultValue: G.title,
52096
+ onChange: (I) => H(G.id, {
52106
52097
  title: I
52107
52098
  }),
52108
52099
  onDropdownItem: (I) => {
52109
52100
  var q;
52110
52101
  if (I === "edit")
52111
- b(U.id), _(U), U.type === "statistics" && E(!0), (q = U.type) != null && q.includes("chart") && B(!0), U.type === "calendar" && M(!0);
52102
+ b(G.id), _(G), G.type === "statistics" && E(!0), (q = G.type) != null && q.includes("chart") && B(!0), G.type === "calendar" && M(!0);
52112
52103
  else if (I === "delete")
52113
52104
  Tl.confirm({
52114
52105
  title: S("promptTitle"),
52115
52106
  icon: /* @__PURE__ */ A.jsx(YO, {}),
52116
52107
  content: S("promptContentDeleteComponents"),
52117
52108
  onOk() {
52118
- G(U.id);
52109
+ U(G.id);
52119
52110
  }
52120
52111
  });
52121
52112
  else if (I === "copy") {
52122
- const j = JSON.parse(JSON.stringify(U));
52113
+ const j = JSON.parse(JSON.stringify(G));
52123
52114
  delete j.id, delete j.i, k(j);
52124
52115
  }
52125
52116
  }
@@ -52128,24 +52119,24 @@ const Iue = () => /* @__PURE__ */ A.jsx(
52128
52119
  /* @__PURE__ */ A.jsx(
52129
52120
  Yle,
52130
52121
  {
52131
- module: U,
52122
+ module: G,
52132
52123
  onUpdate: H,
52133
52124
  moduleDataApi: n,
52134
52125
  activeId: y,
52135
52126
  onClick: () => {
52136
- b(U.id);
52127
+ b(G.id);
52137
52128
  },
52138
52129
  rowWidth: p,
52139
52130
  rowHeight: c,
52140
52131
  onEdit: () => {
52141
52132
  var I;
52142
- b(U.id), _(U), U.type === "statistics" && E(!0), (I = U.type) != null && I.includes("chart") && B(!0), U.type === "calendar" && M(!0);
52133
+ b(G.id), _(G), G.type === "statistics" && E(!0), (I = G.type) != null && I.includes("chart") && B(!0), G.type === "calendar" && M(!0);
52143
52134
  },
52144
52135
  onDelete: () => {
52145
- G(U.id);
52136
+ U(G.id);
52146
52137
  },
52147
52138
  onCopy: () => {
52148
- const I = JSON.parse(JSON.stringify(U));
52139
+ const I = JSON.parse(JSON.stringify(G));
52149
52140
  delete I.id, delete I.i, k(I);
52150
52141
  },
52151
52142
  onStartDragOrResize: () => {
@@ -52158,7 +52149,7 @@ const Iue = () => /* @__PURE__ */ A.jsx(
52158
52149
  )
52159
52150
  ]
52160
52151
  },
52161
- U.id
52152
+ G.id
52162
52153
  ))
52163
52154
  }
52164
52155
  )
@@ -52173,8 +52164,8 @@ const Iue = () => /* @__PURE__ */ A.jsx(
52173
52164
  onClose: () => {
52174
52165
  E(!1);
52175
52166
  },
52176
- onOk: ({ id: U, customData: I, customeStyle: q }) => {
52177
- U ? H(U, {
52167
+ onOk: ({ id: G, customData: I, customeStyle: q }) => {
52168
+ G ? H(G, {
52178
52169
  type: "statistics",
52179
52170
  customData: I,
52180
52171
  customeStyle: q
@@ -52196,8 +52187,8 @@ const Iue = () => /* @__PURE__ */ A.jsx(
52196
52187
  onClose: () => {
52197
52188
  M(!1);
52198
52189
  },
52199
- onOk: ({ id: U, customData: I }) => {
52200
- U ? H(U, {
52190
+ onOk: ({ id: G, customData: I }) => {
52191
+ G ? H(G, {
52201
52192
  type: "calendar",
52202
52193
  customData: I
52203
52194
  }) : k({
@@ -52217,8 +52208,8 @@ const Iue = () => /* @__PURE__ */ A.jsx(
52217
52208
  onClose: () => {
52218
52209
  B(!1);
52219
52210
  },
52220
- onOk: ({ id: U, type: I, customData: q, customeStyle: j }) => {
52221
- U ? H(U, {
52211
+ onOk: ({ id: G, type: I, customData: q, customeStyle: j }) => {
52212
+ G ? H(G, {
52222
52213
  type: I,
52223
52214
  customData: q,
52224
52215
  customeStyle: j