@orbcharts/core 3.0.0 → 3.0.2

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.
@@ -15,16 +15,16 @@ const Ae = {
15
15
  colors: {
16
16
  light: {
17
17
  label: [
18
- "#6CBAFF",
19
- "#FF6C6C",
20
- "#F9B052",
21
- "#7DD3C4",
22
- "#AA93D2",
23
18
  "#0088FF",
24
- "#FFBABA",
25
- "#86DC72",
26
- "#EF76FF",
27
- "#C4C4C4"
19
+ "#FF3232",
20
+ "#38BEA8",
21
+ "#6F3BD5",
22
+ "#314285",
23
+ "#42C724",
24
+ "#D52580",
25
+ "#F4721B",
26
+ "#D117EA",
27
+ "#7E7D7D"
28
28
  ],
29
29
  // label: ['#67B7DC', '#6794DC', '#6771DC', '#8067DC', '#A367DC', '#C767DC', '#DC67CE', '#DC67AB', '#DC6788', '#DC6967', '#DC8C67', '#DCAF67'],
30
30
  // label: ['#F3A356', '#7A60F0', '#38B1AF', '#60A2F0', '#F06062', '#FF383C', '#6580EA', '#079F9C', '#9F65EA', '#EA7465', '#EA7465', '#8657D2', '#59B757', '#2797FF', '#D25786', '#F54BA6', '#4BECF5', '#74FD72', '#CA4BF5', '#EFE26E'],
@@ -39,14 +39,14 @@ const Ae = {
39
39
  },
40
40
  dark: {
41
41
  label: [
42
- "#6CBAFF",
42
+ "#4BABFF",
43
43
  "#FF6C6C",
44
- "#F9B052",
45
44
  "#7DD3C4",
46
- "#AA93D2",
47
- "#0088FF",
48
- "#FFBABA",
45
+ "#8E6BC9",
46
+ "#5366AC",
49
47
  "#86DC72",
48
+ "#FF72BB",
49
+ "#F9B052",
50
50
  "#EF76FF",
51
51
  "#C4C4C4"
52
52
  ],
@@ -258,7 +258,7 @@ function Ii(t, e) {
258
258
  return !1;
259
259
  });
260
260
  }
261
- function C(t, e) {
261
+ function T(t, e) {
262
262
  const n = Ii(t, e);
263
263
  if (n) {
264
264
  const r = e[n], i = r.toBeTypes ? r.toBeTypes.join(" | ") : r.toBe ? r.toBe : r.toBeOption ? r.toBeOption : "";
@@ -279,8 +279,8 @@ function C(t, e) {
279
279
  expectToBe: ""
280
280
  };
281
281
  }
282
- const Ri = (t) => {
283
- const e = C(t, {
282
+ const Bi = (t) => {
283
+ const e = T(t, {
284
284
  visibleFilter: {
285
285
  toBeTypes: ["Function"]
286
286
  },
@@ -301,7 +301,7 @@ const Ri = (t) => {
301
301
  }
302
302
  });
303
303
  if (t.container) {
304
- const n = C(t.container, {
304
+ const n = T(t.container, {
305
305
  gap: {
306
306
  toBeTypes: ["number"]
307
307
  },
@@ -320,12 +320,12 @@ const Ri = (t) => {
320
320
  function ee(t, e) {
321
321
  return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
322
322
  }
323
- function Bi(t, e) {
323
+ function Ri(t, e) {
324
324
  return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
325
325
  }
326
326
  function ar(t) {
327
327
  let e, n, r;
328
- t.length !== 2 ? (e = ee, n = (s, u) => ee(t(s), u), r = (s, u) => t(s) - u) : (e = t === ee || t === Bi ? t : ki, n = t, r = t);
328
+ t.length !== 2 ? (e = ee, n = (s, u) => ee(t(s), u), r = (s, u) => t(s) - u) : (e = t === ee || t === Ri ? t : ki, n = t, r = t);
329
329
  function i(s, u, l = 0, c = s.length) {
330
330
  if (l < c) {
331
331
  if (e(u, u) !== 0) return c;
@@ -678,7 +678,7 @@ function Sa() {
678
678
  return this;
679
679
  }
680
680
  function Ma(t) {
681
- t || (t = Ca);
681
+ t || (t = Ta);
682
682
  function e(f, p) {
683
683
  return f && p ? t(f.__data__, p.__data__) : !f - !p;
684
684
  }
@@ -689,10 +689,10 @@ function Ma(t) {
689
689
  }
690
690
  return new H(i, this._parents).order();
691
691
  }
692
- function Ca(t, e) {
692
+ function Ta(t, e) {
693
693
  return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
694
694
  }
695
- function Ta() {
695
+ function Ca() {
696
696
  var t = arguments[0];
697
697
  return arguments[0] = this, t.apply(null, arguments), this;
698
698
  }
@@ -726,12 +726,12 @@ function Ia(t) {
726
726
  this.removeAttribute(t);
727
727
  };
728
728
  }
729
- function Ra(t) {
729
+ function Ba(t) {
730
730
  return function() {
731
731
  this.removeAttributeNS(t.space, t.local);
732
732
  };
733
733
  }
734
- function Ba(t, e) {
734
+ function Ra(t, e) {
735
735
  return function() {
736
736
  this.setAttribute(t, e);
737
737
  };
@@ -759,7 +759,7 @@ function Xa(t, e) {
759
759
  var r = this.node();
760
760
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
761
761
  }
762
- return this.each((e == null ? n.local ? Ra : Ia : typeof e == "function" ? n.local ? Va : Na : n.local ? ka : Ba)(n, e));
762
+ return this.each((e == null ? n.local ? Ba : Ia : typeof e == "function" ? n.local ? Va : Na : n.local ? ka : Ra)(n, e));
763
763
  }
764
764
  function hr(t) {
765
765
  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
@@ -996,13 +996,13 @@ function Mo(t, e) {
996
996
  return vr(this, t, e);
997
997
  };
998
998
  }
999
- function Co(t, e) {
999
+ function To(t, e) {
1000
1000
  return function() {
1001
1001
  return vr(this, t, e.apply(this, arguments));
1002
1002
  };
1003
1003
  }
1004
- function To(t, e) {
1005
- return this.each((typeof e == "function" ? Co : Mo)(t, e));
1004
+ function Co(t, e) {
1005
+ return this.each((typeof e == "function" ? To : Mo)(t, e));
1006
1006
  }
1007
1007
  function* Fo() {
1008
1008
  for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
@@ -1034,7 +1034,7 @@ H.prototype = Ht.prototype = {
1034
1034
  selection: Eo,
1035
1035
  order: Sa,
1036
1036
  sort: Ma,
1037
- call: Ta,
1037
+ call: Ca,
1038
1038
  nodes: Fa,
1039
1039
  node: Ea,
1040
1040
  size: Pa,
@@ -1054,7 +1054,7 @@ H.prototype = Ht.prototype = {
1054
1054
  clone: bo,
1055
1055
  datum: wo,
1056
1056
  on: So,
1057
- dispatch: To,
1057
+ dispatch: Co,
1058
1058
  [Symbol.iterator]: Fo
1059
1059
  };
1060
1060
  function Wt(t) {
@@ -1070,7 +1070,7 @@ function br(t, e) {
1070
1070
  }
1071
1071
  function jt() {
1072
1072
  }
1073
- var Vt = 0.7, ue = 1 / Vt, At = "\\s*([+-]?\\d+)\\s*", Xt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", tt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Po = /^#([0-9a-f]{3,8})$/, Lo = new RegExp(`^rgb\\(${At},${At},${At}\\)$`), Oo = new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`), Io = new RegExp(`^rgba\\(${At},${At},${At},${Xt}\\)$`), Ro = new RegExp(`^rgba\\(${tt},${tt},${tt},${Xt}\\)$`), Bo = new RegExp(`^hsl\\(${Xt},${tt},${tt}\\)$`), ko = new RegExp(`^hsla\\(${Xt},${tt},${tt},${Xt}\\)$`), bn = {
1073
+ var Vt = 0.7, ue = 1 / Vt, At = "\\s*([+-]?\\d+)\\s*", Xt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", tt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Po = /^#([0-9a-f]{3,8})$/, Lo = new RegExp(`^rgb\\(${At},${At},${At}\\)$`), Oo = new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`), Io = new RegExp(`^rgba\\(${At},${At},${At},${Xt}\\)$`), Bo = new RegExp(`^rgba\\(${tt},${tt},${tt},${Xt}\\)$`), Ro = new RegExp(`^hsl\\(${Xt},${tt},${tt}\\)$`), ko = new RegExp(`^hsla\\(${Xt},${tt},${tt},${Xt}\\)$`), bn = {
1074
1074
  aliceblue: 15792383,
1075
1075
  antiquewhite: 16444375,
1076
1076
  aqua: 65535,
@@ -1249,7 +1249,7 @@ function Dn() {
1249
1249
  }
1250
1250
  function yt(t) {
1251
1251
  var e, n;
1252
- return t = (t + "").trim().toLowerCase(), (e = Po.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? $n(e) : n === 3 ? new z(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? Jt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? Jt(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Lo.exec(t)) ? new z(e[1], e[2], e[3], 1) : (e = Oo.exec(t)) ? new z(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Io.exec(t)) ? Jt(e[1], e[2], e[3], e[4]) : (e = Ro.exec(t)) ? Jt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = Bo.exec(t)) ? Sn(e[1], e[2] / 100, e[3] / 100, 1) : (e = ko.exec(t)) ? Sn(e[1], e[2] / 100, e[3] / 100, e[4]) : bn.hasOwnProperty(t) ? $n(bn[t]) : t === "transparent" ? new z(NaN, NaN, NaN, 0) : null;
1252
+ return t = (t + "").trim().toLowerCase(), (e = Po.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? $n(e) : n === 3 ? new z(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? Jt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? Jt(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Lo.exec(t)) ? new z(e[1], e[2], e[3], 1) : (e = Oo.exec(t)) ? new z(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Io.exec(t)) ? Jt(e[1], e[2], e[3], e[4]) : (e = Bo.exec(t)) ? Jt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = Ro.exec(t)) ? Sn(e[1], e[2] / 100, e[3] / 100, 1) : (e = ko.exec(t)) ? Sn(e[1], e[2] / 100, e[3] / 100, e[4]) : bn.hasOwnProperty(t) ? $n(bn[t]) : t === "transparent" ? new z(NaN, NaN, NaN, 0) : null;
1253
1253
  }
1254
1254
  function $n(t) {
1255
1255
  return new z(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
@@ -1461,7 +1461,7 @@ function ts(t, e) {
1461
1461
  return Math.round(t * (1 - n) + e * n);
1462
1462
  };
1463
1463
  }
1464
- var Cn = 180 / Math.PI, Re = {
1464
+ var Tn = 180 / Math.PI, Be = {
1465
1465
  translateX: 0,
1466
1466
  translateY: 0,
1467
1467
  rotate: 0,
@@ -1474,8 +1474,8 @@ function _r(t, e, n, r, i, a) {
1474
1474
  return (o = Math.sqrt(t * t + e * e)) && (t /= o, e /= o), (u = t * n + e * r) && (n -= t * u, r -= e * u), (s = Math.sqrt(n * n + r * r)) && (n /= s, r /= s, u /= s), t * r < e * n && (t = -t, e = -e, u = -u, o = -o), {
1475
1475
  translateX: i,
1476
1476
  translateY: a,
1477
- rotate: Math.atan2(e, t) * Cn,
1478
- skewX: Math.atan(u) * Cn,
1477
+ rotate: Math.atan2(e, t) * Tn,
1478
+ skewX: Math.atan(u) * Tn,
1479
1479
  scaleX: o,
1480
1480
  scaleY: s
1481
1481
  };
@@ -1483,10 +1483,10 @@ function _r(t, e, n, r, i, a) {
1483
1483
  var Kt;
1484
1484
  function es(t) {
1485
1485
  const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
1486
- return e.isIdentity ? Re : _r(e.a, e.b, e.c, e.d, e.e, e.f);
1486
+ return e.isIdentity ? Be : _r(e.a, e.b, e.c, e.d, e.e, e.f);
1487
1487
  }
1488
1488
  function ns(t) {
1489
- return t == null || (Kt || (Kt = document.createElementNS("http://www.w3.org/2000/svg", "g")), Kt.setAttribute("transform", t), !(t = Kt.transform.baseVal.consolidate())) ? Re : (t = t.matrix, _r(t.a, t.b, t.c, t.d, t.e, t.f));
1489
+ return t == null || (Kt || (Kt = document.createElementNS("http://www.w3.org/2000/svg", "g")), Kt.setAttribute("transform", t), !(t = Kt.transform.baseVal.consolidate())) ? Be : (t = t.matrix, _r(t.a, t.b, t.c, t.d, t.e, t.f));
1490
1490
  }
1491
1491
  function Ar(t, e, n, r) {
1492
1492
  function i(l) {
@@ -1518,7 +1518,7 @@ function Ar(t, e, n, r) {
1518
1518
  };
1519
1519
  };
1520
1520
  }
1521
- var rs = Ar(es, "px, ", "px)", "deg)"), is = Ar(ns, ", ", ")", ")"), Ct = 0, Bt = 0, Rt = 0, Sr = 1e3, fe, kt, pe = 0, vt = 0, we = 0, Yt = typeof performance == "object" && performance.now ? performance : Date, Mr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1521
+ var rs = Ar(es, "px, ", "px)", "deg)"), is = Ar(ns, ", ", ")", ")"), Tt = 0, Rt = 0, Bt = 0, Sr = 1e3, fe, kt, pe = 0, vt = 0, we = 0, Yt = typeof performance == "object" && performance.now ? performance : Date, Mr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1522
1522
  setTimeout(t, 17);
1523
1523
  };
1524
1524
  function Je() {
@@ -1530,32 +1530,32 @@ function as() {
1530
1530
  function he() {
1531
1531
  this._call = this._time = this._next = null;
1532
1532
  }
1533
- he.prototype = Cr.prototype = {
1533
+ he.prototype = Tr.prototype = {
1534
1534
  constructor: he,
1535
1535
  restart: function(t, e, n) {
1536
1536
  if (typeof t != "function") throw new TypeError("callback is not a function");
1537
- n = (n == null ? Je() : +n) + (e == null ? 0 : +e), !this._next && kt !== this && (kt ? kt._next = this : fe = this, kt = this), this._call = t, this._time = n, Be();
1537
+ n = (n == null ? Je() : +n) + (e == null ? 0 : +e), !this._next && kt !== this && (kt ? kt._next = this : fe = this, kt = this), this._call = t, this._time = n, Re();
1538
1538
  },
1539
1539
  stop: function() {
1540
- this._call && (this._call = null, this._time = 1 / 0, Be());
1540
+ this._call && (this._call = null, this._time = 1 / 0, Re());
1541
1541
  }
1542
1542
  };
1543
- function Cr(t, e, n) {
1543
+ function Tr(t, e, n) {
1544
1544
  var r = new he();
1545
1545
  return r.restart(t, e, n), r;
1546
1546
  }
1547
1547
  function os() {
1548
- Je(), ++Ct;
1548
+ Je(), ++Tt;
1549
1549
  for (var t = fe, e; t; )
1550
1550
  (e = vt - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
1551
- --Ct;
1551
+ --Tt;
1552
1552
  }
1553
- function Tn() {
1554
- vt = (pe = Yt.now()) + we, Ct = Bt = 0;
1553
+ function Cn() {
1554
+ vt = (pe = Yt.now()) + we, Tt = Rt = 0;
1555
1555
  try {
1556
1556
  os();
1557
1557
  } finally {
1558
- Ct = 0, us(), vt = 0;
1558
+ Tt = 0, us(), vt = 0;
1559
1559
  }
1560
1560
  }
1561
1561
  function ss() {
@@ -1565,13 +1565,13 @@ function ss() {
1565
1565
  function us() {
1566
1566
  for (var t, e = fe, n, r = 1 / 0; e; )
1567
1567
  e._call ? (r > e._time && (r = e._time), t = e, e = e._next) : (n = e._next, e._next = null, e = t ? t._next = n : fe = n);
1568
- kt = t, Be(r);
1568
+ kt = t, Re(r);
1569
1569
  }
1570
- function Be(t) {
1571
- if (!Ct) {
1572
- Bt && (Bt = clearTimeout(Bt));
1570
+ function Re(t) {
1571
+ if (!Tt) {
1572
+ Rt && (Rt = clearTimeout(Rt));
1573
1573
  var e = t - vt;
1574
- e > 24 ? (t < 1 / 0 && (Bt = setTimeout(Tn, t - Yt.now() - we)), Rt && (Rt = clearInterval(Rt))) : (Rt || (pe = Yt.now(), Rt = setInterval(ss, Sr)), Ct = 1, Mr(Tn));
1574
+ e > 24 ? (t < 1 / 0 && (Rt = setTimeout(Cn, t - Yt.now() - we)), Bt && (Bt = clearInterval(Bt))) : (Bt || (pe = Yt.now(), Bt = setInterval(ss, Sr)), Tt = 1, Mr(Cn));
1575
1575
  }
1576
1576
  }
1577
1577
  function Fn(t, e, n) {
@@ -1580,7 +1580,7 @@ function Fn(t, e, n) {
1580
1580
  r.stop(), t(i + e);
1581
1581
  }, e, n), r;
1582
1582
  }
1583
- var ls = sr("start", "end", "cancel", "interrupt"), cs = [], Tr = 0, En = 1, ke = 2, re = 3, Pn = 4, Ne = 5, ie = 6;
1583
+ var ls = sr("start", "end", "cancel", "interrupt"), cs = [], Cr = 0, En = 1, ke = 2, re = 3, Pn = 4, Ne = 5, ie = 6;
1584
1584
  function De(t, e, n, r, i, a) {
1585
1585
  var o = t.__transition;
1586
1586
  if (!o) t.__transition = {};
@@ -1598,12 +1598,12 @@ function De(t, e, n, r, i, a) {
1598
1598
  duration: a.duration,
1599
1599
  ease: a.ease,
1600
1600
  timer: null,
1601
- state: Tr
1601
+ state: Cr
1602
1602
  });
1603
1603
  }
1604
1604
  function Ze(t, e) {
1605
1605
  var n = K(t, e);
1606
- if (n.state > Tr) throw new Error("too late; already scheduled");
1606
+ if (n.state > Cr) throw new Error("too late; already scheduled");
1607
1607
  return n;
1608
1608
  }
1609
1609
  function et(t, e) {
@@ -1618,7 +1618,7 @@ function K(t, e) {
1618
1618
  }
1619
1619
  function fs(t, e, n) {
1620
1620
  var r = t.__transition, i;
1621
- r[e] = n, n.timer = Cr(a, 0, n.time);
1621
+ r[e] = n, n.timer = Tr(a, 0, n.time);
1622
1622
  function a(l) {
1623
1623
  n.state = En, n.timer.restart(o, n.delay, n.time), n.delay <= l && o(l - n.delay);
1624
1624
  }
@@ -1791,7 +1791,7 @@ function Ms(t, e) {
1791
1791
  }
1792
1792
  return i._value = e, i;
1793
1793
  }
1794
- function Cs(t, e) {
1794
+ function Ts(t, e) {
1795
1795
  var n = "attr." + t;
1796
1796
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
1797
1797
  if (e == null) return this.tween(n, null);
@@ -1799,7 +1799,7 @@ function Cs(t, e) {
1799
1799
  var r = be(t);
1800
1800
  return this.tween(n, (r.local ? Ss : Ms)(r, e));
1801
1801
  }
1802
- function Ts(t, e) {
1802
+ function Cs(t, e) {
1803
1803
  return function() {
1804
1804
  Ze(this, t).delay = +e.apply(this, arguments);
1805
1805
  };
@@ -1811,7 +1811,7 @@ function Fs(t, e) {
1811
1811
  }
1812
1812
  function Es(t) {
1813
1813
  var e = this._id;
1814
- return arguments.length ? this.each((typeof t == "function" ? Ts : Fs)(e, t)) : K(this.node(), e).delay;
1814
+ return arguments.length ? this.each((typeof t == "function" ? Cs : Fs)(e, t)) : K(this.node(), e).delay;
1815
1815
  }
1816
1816
  function Ps(t, e) {
1817
1817
  return function() {
@@ -1833,11 +1833,11 @@ function Is(t, e) {
1833
1833
  et(this, t).ease = e;
1834
1834
  };
1835
1835
  }
1836
- function Rs(t) {
1836
+ function Bs(t) {
1837
1837
  var e = this._id;
1838
1838
  return arguments.length ? this.each(Is(e, t)) : K(this.node(), e).ease;
1839
1839
  }
1840
- function Bs(t, e) {
1840
+ function Rs(t, e) {
1841
1841
  return function() {
1842
1842
  var n = e.apply(this, arguments);
1843
1843
  if (typeof n != "function") throw new Error();
@@ -1846,7 +1846,7 @@ function Bs(t, e) {
1846
1846
  }
1847
1847
  function ks(t) {
1848
1848
  if (typeof t != "function") throw new Error();
1849
- return this.each(Bs(this._id, t));
1849
+ return this.each(Rs(this._id, t));
1850
1850
  }
1851
1851
  function Ns(t) {
1852
1852
  typeof t != "function" && (t = cr(t));
@@ -2058,7 +2058,7 @@ at.prototype = {
2058
2058
  each: it.each,
2059
2059
  on: Gs,
2060
2060
  attr: $s,
2061
- attrTween: Cs,
2061
+ attrTween: Ts,
2062
2062
  style: tu,
2063
2063
  styleTween: ru,
2064
2064
  text: ou,
@@ -2067,7 +2067,7 @@ at.prototype = {
2067
2067
  tween: gs,
2068
2068
  delay: Es,
2069
2069
  duration: Os,
2070
- ease: Rs,
2070
+ ease: Bs,
2071
2071
  easeVarying: ks,
2072
2072
  end: fu,
2073
2073
  [Symbol.iterator]: it[Symbol.iterator]
@@ -2109,7 +2109,7 @@ function me(t, e) {
2109
2109
  +t.slice(n + 1)
2110
2110
  ];
2111
2111
  }
2112
- function Tt(t) {
2112
+ function Ct(t) {
2113
2113
  return t = me(Math.abs(t)), t ? t[1] : NaN;
2114
2114
  }
2115
2115
  function vu(t, e) {
@@ -2197,9 +2197,9 @@ const On = {
2197
2197
  function In(t) {
2198
2198
  return t;
2199
2199
  }
2200
- var Rn = Array.prototype.map, Bn = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2200
+ var Bn = Array.prototype.map, Rn = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2201
2201
  function $u(t) {
2202
- var e = t.grouping === void 0 || t.thousands === void 0 ? In : vu(Rn.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", a = t.numerals === void 0 ? In : xu(Rn.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", s = t.minus === void 0 ? "−" : t.minus + "", u = t.nan === void 0 ? "NaN" : t.nan + "";
2202
+ var e = t.grouping === void 0 || t.thousands === void 0 ? In : vu(Bn.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", a = t.numerals === void 0 ? In : xu(Bn.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", s = t.minus === void 0 ? "−" : t.minus + "", u = t.nan === void 0 ? "NaN" : t.nan + "";
2203
2203
  function l(f) {
2204
2204
  f = de(f);
2205
2205
  var p = f.fill, h = f.align, m = f.sign, d = f.symbol, v = f.zero, w = f.width, _ = f.comma, $ = f.precision, F = f.trim, A = f.type;
@@ -2213,7 +2213,7 @@ function $u(t) {
2213
2213
  else {
2214
2214
  y = +y;
2215
2215
  var Q = y < 0 || 1 / y < 0;
2216
- if (y = isNaN(y) ? u : P(Math.abs(y), $), F && (y = wu(y)), Q && +y == 0 && m !== "+" && (Q = !1), S = (Q ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + S, L = (A === "s" ? Bn[8 + Lr / 3] : "") + L + (Q && m === "(" ? ")" : ""), b) {
2216
+ if (y = isNaN(y) ? u : P(Math.abs(y), $), F && (y = wu(y)), Q && +y == 0 && m !== "+" && (Q = !1), S = (Q ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + S, L = (A === "s" ? Rn[8 + Lr / 3] : "") + L + (Q && m === "(" ? ")" : ""), b) {
2217
2217
  for (N = -1, ot = y.length; ++N < ot; )
2218
2218
  if (q = y.charCodeAt(N), 48 > q || q > 57) {
2219
2219
  L = (q === 46 ? i + y.slice(N + 1) : y.slice(N)) + L, y = y.slice(0, N);
@@ -2244,7 +2244,7 @@ function $u(t) {
2244
2244
  }, D;
2245
2245
  }
2246
2246
  function c(f, p) {
2247
- var h = l((f = de(f), f.type = "f", f)), m = Math.max(-8, Math.min(8, Math.floor(Tt(p) / 3))) * 3, d = Math.pow(10, -m), v = Bn[8 + m / 3];
2247
+ var h = l((f = de(f), f.type = "f", f)), m = Math.max(-8, Math.min(8, Math.floor(Ct(p) / 3))) * 3, d = Math.pow(10, -m), v = Rn[8 + m / 3];
2248
2248
  return function(w) {
2249
2249
  return h(d * w) + v;
2250
2250
  };
@@ -2264,13 +2264,13 @@ function _u(t) {
2264
2264
  return Qt = $u(t), tn = Qt.format, Or = Qt.formatPrefix, Qt;
2265
2265
  }
2266
2266
  function Au(t) {
2267
- return Math.max(0, -Tt(Math.abs(t)));
2267
+ return Math.max(0, -Ct(Math.abs(t)));
2268
2268
  }
2269
2269
  function Su(t, e) {
2270
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Tt(e) / 3))) * 3 - Tt(Math.abs(t)));
2270
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Ct(e) / 3))) * 3 - Ct(Math.abs(t)));
2271
2271
  }
2272
2272
  function Mu(t, e) {
2273
- return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Tt(e) - Tt(t)) + 1;
2273
+ return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Ct(e) - Ct(t)) + 1;
2274
2274
  }
2275
2275
  function $e(t, e) {
2276
2276
  switch (arguments.length) {
@@ -2310,7 +2310,7 @@ function Ir() {
2310
2310
  return Ir(e, n).unknown(r);
2311
2311
  }, $e.apply(i, arguments), i;
2312
2312
  }
2313
- function Rr() {
2313
+ function Br() {
2314
2314
  var t = Ir().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, a, o, s = !1, u = 0, l = 0, c = 0.5;
2315
2315
  delete t.unknown;
2316
2316
  function f() {
@@ -2342,19 +2342,19 @@ function Rr() {
2342
2342
  }, t.align = function(p) {
2343
2343
  return arguments.length ? (c = Math.max(0, Math.min(1, p)), f()) : c;
2344
2344
  }, t.copy = function() {
2345
- return Rr(e(), [r, i]).round(s).paddingInner(u).paddingOuter(l).align(c);
2345
+ return Br(e(), [r, i]).round(s).paddingInner(u).paddingOuter(l).align(c);
2346
2346
  }, $e.apply(f(), arguments);
2347
2347
  }
2348
- function Br(t) {
2348
+ function Rr(t) {
2349
2349
  var e = t.copy;
2350
2350
  return t.padding = t.paddingOuter, delete t.paddingInner, delete t.paddingOuter, t.copy = function() {
2351
- return Br(e());
2351
+ return Rr(e());
2352
2352
  }, t;
2353
2353
  }
2354
- function Cu() {
2355
- return Br(Rr.apply(null, arguments).paddingInner(1));
2354
+ function Tu() {
2355
+ return Rr(Br.apply(null, arguments).paddingInner(1));
2356
2356
  }
2357
- function Tu(t) {
2357
+ function Cu(t) {
2358
2358
  return function() {
2359
2359
  return t;
2360
2360
  };
@@ -2369,7 +2369,7 @@ function $t(t) {
2369
2369
  function Ve(t, e) {
2370
2370
  return (e -= t = +t) ? function(n) {
2371
2371
  return (n - t) / e;
2372
- } : Tu(isNaN(e) ? NaN : 0.5);
2372
+ } : Cu(isNaN(e) ? NaN : 0.5);
2373
2373
  }
2374
2374
  function Eu(t, e) {
2375
2375
  var n;
@@ -2422,10 +2422,10 @@ function Iu() {
2422
2422
  return r = p, i = h, c();
2423
2423
  };
2424
2424
  }
2425
- function Ru() {
2425
+ function Bu() {
2426
2426
  return Iu()($t, $t);
2427
2427
  }
2428
- function Bu(t, e, n, r) {
2428
+ function Ru(t, e, n, r) {
2429
2429
  var i = qi(t, e, n), a;
2430
2430
  switch (r = de(r ?? ",f"), r.type) {
2431
2431
  case "s": {
@@ -2455,7 +2455,7 @@ function kr(t) {
2455
2455
  return ji(r[0], r[r.length - 1], n ?? 10);
2456
2456
  }, t.tickFormat = function(n, r) {
2457
2457
  var i = e();
2458
- return Bu(i[0], i[i.length - 1], n ?? 10, r);
2458
+ return Ru(i[0], i[i.length - 1], n ?? 10, r);
2459
2459
  }, t.nice = function(n) {
2460
2460
  n == null && (n = 10);
2461
2461
  var r = e(), i = 0, a = r.length - 1, o = r[i], s = r[a], u, l, c = 10;
@@ -2474,7 +2474,7 @@ function kr(t) {
2474
2474
  }, t;
2475
2475
  }
2476
2476
  function Gt() {
2477
- var t = Ru();
2477
+ var t = Bu();
2478
2478
  return t.copy = function() {
2479
2479
  return Ou(t, Gt());
2480
2480
  }, $e.apply(t, arguments), kr(t);
@@ -2714,7 +2714,7 @@ const Gu = (t) => {
2714
2714
  throw Error(a);
2715
2715
  }
2716
2716
  return i;
2717
- }, zu = (t) => C({ data: t }, {
2717
+ }, zu = (t) => T({ data: t }, {
2718
2718
  data: {
2719
2719
  toBe: "(DataSeriesDatum | DataSeriesValue)[][] | (DataSeriesDatum | DataSeriesValue)[]",
2720
2720
  // 畢免資料量過大檢查不完,不深度檢查
@@ -2925,7 +2925,7 @@ function rn(t) {
2925
2925
  }, n = t(e);
2926
2926
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
2927
2927
  }
2928
- var Ce = rn(function(t) {
2928
+ var Te = rn(function(t) {
2929
2929
  return function(n) {
2930
2930
  t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
2931
2931
  ` + n.map(function(r, i) {
@@ -2972,7 +2972,7 @@ var qt = function() {
2972
2972
  try {
2973
2973
  c();
2974
2974
  } catch (d) {
2975
- a = d instanceof Ce ? d.errors : [d];
2975
+ a = d instanceof Te ? d.errors : [d];
2976
2976
  }
2977
2977
  var f = this._finalizers;
2978
2978
  if (f) {
@@ -2983,7 +2983,7 @@ var qt = function() {
2983
2983
  try {
2984
2984
  Xn(m);
2985
2985
  } catch (d) {
2986
- a = a ?? [], d instanceof Ce ? a = ct(ct([], lt(a)), lt(d.errors)) : a.push(d);
2986
+ a = a ?? [], d instanceof Te ? a = ct(ct([], lt(a)), lt(d.errors)) : a.push(d);
2987
2987
  }
2988
2988
  }
2989
2989
  } catch (d) {
@@ -2997,7 +2997,7 @@ var qt = function() {
2997
2997
  }
2998
2998
  }
2999
2999
  if (a)
3000
- throw new Ce(a);
3000
+ throw new Te(a);
3001
3001
  }
3002
3002
  }, t.prototype.add = function(e) {
3003
3003
  var n;
@@ -3095,7 +3095,7 @@ var an = function(t) {
3095
3095
  }
3096
3096
  }, e;
3097
3097
  }(qt), qu = Function.prototype.bind;
3098
- function Te(t, e) {
3098
+ function Ce(t, e) {
3099
3099
  return qu.call(t, e);
3100
3100
  }
3101
3101
  var Wu = function() {
@@ -3144,9 +3144,9 @@ var Wu = function() {
3144
3144
  a && jr.useDeprecatedNextContext ? (s = Object.create(n), s.unsubscribe = function() {
3145
3145
  return a.unsubscribe();
3146
3146
  }, o = {
3147
- next: n.next && Te(n.next, s),
3148
- error: n.error && Te(n.error, s),
3149
- complete: n.complete && Te(n.complete, s)
3147
+ next: n.next && Ce(n.next, s),
3148
+ error: n.error && Ce(n.error, s),
3149
+ complete: n.complete && Ce(n.complete, s)
3150
3150
  }) : o = n;
3151
3151
  }
3152
3152
  return a.destination = new Wu(o), a;
@@ -3177,7 +3177,7 @@ function Ku(t) {
3177
3177
  }, n);
3178
3178
  };
3179
3179
  }
3180
- var B = function() {
3180
+ var R = function() {
3181
3181
  function t(e) {
3182
3182
  e && (this._subscribe = e);
3183
3183
  }
@@ -3305,7 +3305,7 @@ var nl = function(t) {
3305
3305
  return function() {
3306
3306
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
3307
3307
  };
3308
- }), R = function(t) {
3308
+ }), B = function(t) {
3309
3309
  nt(e, t);
3310
3310
  function e() {
3311
3311
  var n = t.call(this) || this;
@@ -3379,12 +3379,12 @@ var nl = function(t) {
3379
3379
  var r = this, i = r.hasError, a = r.thrownError, o = r.isStopped;
3380
3380
  i ? n.error(a) : o && n.complete();
3381
3381
  }, e.prototype.asObservable = function() {
3382
- var n = new B();
3382
+ var n = new R();
3383
3383
  return n.source = this, n;
3384
3384
  }, e.create = function(n, r) {
3385
3385
  return new Gn(n, r);
3386
3386
  }, e;
3387
- }(B), Gn = function(t) {
3387
+ }(R), Gn = function(t) {
3388
3388
  nt(e, t);
3389
3389
  function e(n, r) {
3390
3390
  var i = t.call(this) || this;
@@ -3403,7 +3403,7 @@ var nl = function(t) {
3403
3403
  var r, i;
3404
3404
  return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Ur;
3405
3405
  }, e;
3406
- }(R), zn = function(t) {
3406
+ }(B), zn = function(t) {
3407
3407
  nt(e, t);
3408
3408
  function e(n) {
3409
3409
  var r = t.call(this) || this;
@@ -3426,7 +3426,7 @@ var nl = function(t) {
3426
3426
  }, e.prototype.next = function(n) {
3427
3427
  t.prototype.next.call(this, this._value = n);
3428
3428
  }, e;
3429
- }(R), sn = {
3429
+ }(B), sn = {
3430
3430
  now: function() {
3431
3431
  return (sn.delegate || Date).now();
3432
3432
  },
@@ -3454,7 +3454,7 @@ var nl = function(t) {
3454
3454
  l && a.splice(0, l + 1);
3455
3455
  }
3456
3456
  }, e;
3457
- }(R), al = function(t) {
3457
+ }(B), al = function(t) {
3458
3458
  nt(e, t);
3459
3459
  function e(n, r) {
3460
3460
  return t.call(this) || this;
@@ -3547,7 +3547,7 @@ var nl = function(t) {
3547
3547
  throw i;
3548
3548
  }
3549
3549
  }, e;
3550
- }(Un), un = new sl(ol), ul = un, Jr = new B(function(t) {
3550
+ }(Un), un = new sl(ol), ul = un, Jr = new R(function(t) {
3551
3551
  return t.complete();
3552
3552
  });
3553
3553
  function Zr(t) {
@@ -3622,7 +3622,7 @@ function si(t) {
3622
3622
  return k(t == null ? void 0 : t.getReader);
3623
3623
  }
3624
3624
  function j(t) {
3625
- if (t instanceof B)
3625
+ if (t instanceof R)
3626
3626
  return t;
3627
3627
  if (t != null) {
3628
3628
  if (ei(t))
@@ -3641,7 +3641,7 @@ function j(t) {
3641
3641
  throw ri(t);
3642
3642
  }
3643
3643
  function fl(t) {
3644
- return new B(function(e) {
3644
+ return new R(function(e) {
3645
3645
  var n = t[on]();
3646
3646
  if (k(n.subscribe))
3647
3647
  return n.subscribe(e);
@@ -3649,14 +3649,14 @@ function fl(t) {
3649
3649
  });
3650
3650
  }
3651
3651
  function pl(t) {
3652
- return new B(function(e) {
3652
+ return new R(function(e) {
3653
3653
  for (var n = 0; n < t.length && !e.closed; n++)
3654
3654
  e.next(t[n]);
3655
3655
  e.complete();
3656
3656
  });
3657
3657
  }
3658
3658
  function hl(t) {
3659
- return new B(function(e) {
3659
+ return new R(function(e) {
3660
3660
  t.then(function(n) {
3661
3661
  e.closed || (e.next(n), e.complete());
3662
3662
  }, function(n) {
@@ -3665,7 +3665,7 @@ function hl(t) {
3665
3665
  });
3666
3666
  }
3667
3667
  function ml(t) {
3668
- return new B(function(e) {
3668
+ return new R(function(e) {
3669
3669
  var n, r;
3670
3670
  try {
3671
3671
  for (var i = Ft(t), a = i.next(); !a.done; a = i.next()) {
@@ -3686,7 +3686,7 @@ function ml(t) {
3686
3686
  });
3687
3687
  }
3688
3688
  function ui(t) {
3689
- return new B(function(e) {
3689
+ return new R(function(e) {
3690
3690
  gl(t, e).catch(function(n) {
3691
3691
  return e.error(n);
3692
3692
  });
@@ -3772,7 +3772,7 @@ function vl(t, e) {
3772
3772
  return j(t).pipe(ci(e), li(e));
3773
3773
  }
3774
3774
  function xl(t, e) {
3775
- return new B(function(n) {
3775
+ return new R(function(n) {
3776
3776
  var r = 0;
3777
3777
  return e.schedule(function() {
3778
3778
  r === t.length ? n.complete() : (n.next(t[r++]), n.closed || this.schedule());
@@ -3780,7 +3780,7 @@ function xl(t, e) {
3780
3780
  });
3781
3781
  }
3782
3782
  function bl(t, e) {
3783
- return new B(function(n) {
3783
+ return new R(function(n) {
3784
3784
  var r;
3785
3785
  return ut(n, e, function() {
3786
3786
  r = t[ii](), ut(n, e, function() {
@@ -3801,7 +3801,7 @@ function bl(t, e) {
3801
3801
  function fi(t, e) {
3802
3802
  if (!t)
3803
3803
  throw new Error("Iterable cannot be null");
3804
- return new B(function(n) {
3804
+ return new R(function(n) {
3805
3805
  ut(n, e, function() {
3806
3806
  var r = t[Symbol.asyncIterator]();
3807
3807
  ut(n, e, function() {
@@ -3866,7 +3866,7 @@ function Sl(t) {
3866
3866
  return Al(t, e);
3867
3867
  });
3868
3868
  }
3869
- var Ml = Array.isArray, Cl = Object.getPrototypeOf, Tl = Object.prototype, Fl = Object.keys;
3869
+ var Ml = Array.isArray, Tl = Object.getPrototypeOf, Cl = Object.prototype, Fl = Object.keys;
3870
3870
  function El(t) {
3871
3871
  if (t.length === 1) {
3872
3872
  var e = t[0];
@@ -3885,7 +3885,7 @@ function El(t) {
3885
3885
  return { args: t, keys: null };
3886
3886
  }
3887
3887
  function Pl(t) {
3888
- return t && typeof t == "object" && Cl(t) === Tl;
3888
+ return t && typeof t == "object" && Tl(t) === Cl;
3889
3889
  }
3890
3890
  function Ll(t, e) {
3891
3891
  return t.reduce(function(n, r, i) {
@@ -3898,7 +3898,7 @@ function E() {
3898
3898
  var n = Pt(t), r = ll(t), i = El(t), a = i.args, o = i.keys;
3899
3899
  if (a.length === 0)
3900
3900
  return Lt([], n);
3901
- var s = new B(Ol(a, n, o ? function(u) {
3901
+ var s = new R(Ol(a, n, o ? function(u) {
3902
3902
  return Ll(o, u);
3903
3903
  } : Et));
3904
3904
  return r ? s.pipe(Sl(r)) : s;
@@ -3967,28 +3967,28 @@ function hi(t, e, n) {
3967
3967
  function cn(t) {
3968
3968
  return t === void 0 && (t = 1 / 0), hi(Et, t);
3969
3969
  }
3970
- function Rl() {
3970
+ function Bl() {
3971
3971
  return cn(1);
3972
3972
  }
3973
3973
  function jn() {
3974
3974
  for (var t = [], e = 0; e < arguments.length; e++)
3975
3975
  t[e] = arguments[e];
3976
- return Rl()(Lt(t, Pt(t)));
3976
+ return Bl()(Lt(t, Pt(t)));
3977
3977
  }
3978
- function Bl(t) {
3979
- return new B(function(e) {
3978
+ function Rl(t) {
3979
+ return new R(function(e) {
3980
3980
  j(t()).subscribe(e);
3981
3981
  });
3982
3982
  }
3983
3983
  function mi(t, e, n) {
3984
- return Bl(function() {
3984
+ return Rl(function() {
3985
3985
  return t() ? e : n;
3986
3986
  });
3987
3987
  }
3988
3988
  function kl(t, e, n) {
3989
3989
  n === void 0 && (n = ul);
3990
3990
  var r = -1;
3991
- return e != null && (Zr(e) ? n = e : r = e), new B(function(i) {
3991
+ return e != null && (Zr(e) ? n = e : r = e), new R(function(i) {
3992
3992
  var a = $l(t) ? +t - n.now() : t;
3993
3993
  a < 0 && (a = 0);
3994
3994
  var o = 0;
@@ -4110,7 +4110,7 @@ function Jl() {
4110
4110
  function ze(t) {
4111
4111
  t === void 0 && (t = {});
4112
4112
  var e = t.connector, n = e === void 0 ? function() {
4113
- return new R();
4113
+ return new B();
4114
4114
  } : e, r = t.resetOnError, i = r === void 0 ? !0 : r, a = t.resetOnComplete, o = a === void 0 ? !0 : a, s = t.resetOnRefCountZero, u = s === void 0 ? !0 : s;
4115
4115
  return function(l) {
4116
4116
  var c, f, p, h = 0, m = !1, d = !1, v = function() {
@@ -4175,7 +4175,7 @@ function Ee() {
4175
4175
  (n ? jn(t, r, n) : jn(t, r)).subscribe(i);
4176
4176
  });
4177
4177
  }
4178
- function T(t, e) {
4178
+ function C(t, e) {
4179
4179
  return Y(function(n, r) {
4180
4180
  var i = null, a = 0, o = !1, s = function() {
4181
4181
  return o && !i && r.complete();
@@ -4230,7 +4230,7 @@ function Kl(t, e, n) {
4230
4230
  }, n);
4231
4231
  }
4232
4232
  function Ql(t) {
4233
- return new B((e) => {
4233
+ return new R((e) => {
4234
4234
  const n = new ResizeObserver((r) => {
4235
4235
  const i = r[0];
4236
4236
  i && i.contentRect && e.next(i.contentRect);
@@ -4241,7 +4241,7 @@ function Ql(t) {
4241
4241
  });
4242
4242
  }
4243
4243
  const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4244
- const r = new R(), i = e.pipe(
4244
+ const r = new B(), i = e.pipe(
4245
4245
  M(r),
4246
4246
  x((f) => ({
4247
4247
  id: null,
@@ -4282,7 +4282,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4282
4282
  // map(d => {
4283
4283
  // return { id: '', label: '' }
4284
4284
  // })
4285
- T((f) => i)
4285
+ C((f) => i)
4286
4286
  );
4287
4287
  function s(f, p, h) {
4288
4288
  return p == null && h == null ? [] : f.filter((m) => m.id === p || m.label === h);
@@ -4296,13 +4296,13 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4296
4296
  function c(f, p) {
4297
4297
  return p == null ? [] : f.filter((h) => h.categoryLabel === p);
4298
4298
  }
4299
- return new B((f) => (E({
4299
+ return new R((f) => (E({
4300
4300
  target: Nl(a, o, i),
4301
4301
  datumList: t,
4302
4302
  fullChartParams: e
4303
4303
  }).pipe(
4304
4304
  M(r),
4305
- T(async (p) => p)
4305
+ C(async (p) => p)
4306
4306
  ).subscribe((p) => {
4307
4307
  let h = [];
4308
4308
  p.fullChartParams.highlightTarget === "datum" ? h = s(p.datumList, p.target.id, p.target.label) : p.fullChartParams.highlightTarget === "series" ? h = u(p.datumList, p.target.seriesLabel) : p.fullChartParams.highlightTarget === "group" ? h = l(p.datumList, p.target.groupLabel) : p.fullChartParams.highlightTarget === "category" && (h = c(p.datumList, p.target.categoryLabel)), f.next(h);
@@ -4360,7 +4360,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4360
4360
  rowAmount: n,
4361
4361
  columnAmount: r
4362
4362
  }).pipe(
4363
- T(async (i) => i),
4363
+ C(async (i) => i),
4364
4364
  x((i) => {
4365
4365
  const a = i.layout.rootWidth / i.columnAmount - (i.layout.left + i.layout.right), o = i.layout.rootHeight / i.rowAmount - (i.layout.top + i.layout.bottom);
4366
4366
  return {
@@ -4383,7 +4383,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4383
4383
  computedData: t,
4384
4384
  fullDataFormatter: e
4385
4385
  }).pipe(
4386
- T(async (n) => n),
4386
+ C(async (n) => n),
4387
4387
  x((n) => {
4388
4388
  const r = n.fullDataFormatter.sumSeries == !0 ? n.computedData.map((i) => [
4389
4389
  // 加總為一筆資料
@@ -4398,14 +4398,14 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4398
4398
  fullDataFormatter: e,
4399
4399
  layout: n
4400
4400
  }).pipe(
4401
- T(async (i) => i),
4401
+ C(async (i) => i),
4402
4402
  x((i) => i.fullDataFormatter.separateSeries ? Vn(i.layout, i.fullDataFormatter.container, i.computedData.length) : Vn(i.layout, i.fullDataFormatter.container, 1))
4403
4403
  ), ic = ({ seriesContainerPosition$: t, seriesLabels$: e, separateSeries$: n }) => E({
4404
4404
  seriesContainerPosition: t,
4405
4405
  seriesLabels: e,
4406
4406
  separateSeries: n
4407
4407
  }).pipe(
4408
- T(async (r) => r),
4408
+ C(async (r) => r),
4409
4409
  x((r) => r.separateSeries ? new Map(r.seriesLabels.map((i, a) => [i, r.seriesContainerPosition[a] ?? r.seriesContainerPosition[0]])) : new Map(r.seriesLabels.map((i, a) => [i, r.seriesContainerPosition[0]])))
4410
4410
  ), ac = ({ subject: t, observer: e }) => {
4411
4411
  const n = Ot(e.fullChartParams$).pipe(
@@ -4502,7 +4502,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4502
4502
  return a ? Gt().domain([n, 0]).range([p, h]) : Gt().domain([0, n]).range([p, h]);
4503
4503
  }, gf = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4504
4504
  let r = [0, e];
4505
- return Cu().domain(t).range(r).padding(n);
4505
+ return Tu().domain(t).range(r).padding(n);
4506
4506
  }, yf = ({ axisLabels: t, axisWidth: e, padding: n = 0, reverse: r = !1 }) => {
4507
4507
  let i = t.map((u, l) => l);
4508
4508
  r && i.reverse();
@@ -4540,7 +4540,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4540
4540
  fullDataFormatter: e,
4541
4541
  layout: n
4542
4542
  }).pipe(
4543
- T(async (a) => a),
4543
+ C(async (a) => a),
4544
4544
  x((a) => {
4545
4545
  const o = r(a.computedData, a.fullDataFormatter, a.layout), s = i(a.computedData, a.fullDataFormatter, a.layout), u = s(0);
4546
4546
  return a.computedData.map((l, c) => l.map((f, p) => {
@@ -4555,7 +4555,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4555
4555
  })
4556
4556
  );
4557
4557
  }, hn = ({ fullDataFormatter$: t, layout$: e }) => {
4558
- const n = new R();
4558
+ const n = new B();
4559
4559
  function r({ xAxisPosition: o, yAxisPosition: s, width: u, height: l }) {
4560
4560
  return (o === "bottom" || o === "top") && (s === "left" || s === "right") ? { width: u, height: l } : (o === "left" || o === "right") && (s === "bottom" || s === "top") ? {
4561
4561
  width: l,
@@ -4569,14 +4569,14 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4569
4569
  x((o) => o.valueAxis.position),
4570
4570
  V()
4571
4571
  );
4572
- return new B((o) => {
4572
+ return new R((o) => {
4573
4573
  E({
4574
4574
  groupAxisPosition: i,
4575
4575
  valueAxisPosition: a,
4576
4576
  layout: e
4577
4577
  }).pipe(
4578
4578
  M(n),
4579
- T(async (s) => s)
4579
+ C(async (s) => s)
4580
4580
  ).subscribe((s) => {
4581
4581
  const u = r({
4582
4582
  xAxisPosition: s.groupAxisPosition,
@@ -4604,7 +4604,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4604
4604
  fullDataFormatter: e,
4605
4605
  layout: n
4606
4606
  }).pipe(
4607
- T(async (i) => i),
4607
+ C(async (i) => i),
4608
4608
  x((i) => {
4609
4609
  if (i.fullDataFormatter.separateSeries)
4610
4610
  return zt(i.layout, i.fullDataFormatter.container, i.computedData.length);
@@ -4630,13 +4630,13 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4630
4630
  })
4631
4631
  );
4632
4632
  return t.pipe(
4633
- T((r) => mi(() => r, e, n))
4633
+ C((r) => mi(() => r, e, n))
4634
4634
  );
4635
4635
  }, Di = ({ computedData$: t, fullDataFormatter$: e }) => E({
4636
4636
  computedData: t,
4637
4637
  fullDataFormatter: e
4638
4638
  }).pipe(
4639
- T(async (n) => n),
4639
+ C(async (n) => n),
4640
4640
  x((n) => {
4641
4641
  const r = n.fullDataFormatter.groupAxis, i = n.computedData[0] ? n.computedData[0].length - 1 : 0, a = r.scaleDomain[0] - r.scalePadding, o = r.scaleDomain[1] === "max" ? i + r.scalePadding : r.scaleDomain[1] + r.scalePadding;
4642
4642
  return [a, o];
@@ -4651,7 +4651,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4651
4651
  return Yr(r);
4652
4652
  })
4653
4653
  ), _i = ({ fullDataFormatter$: t, layout$: e }) => {
4654
- const n = new R();
4654
+ const n = new B();
4655
4655
  function r({ xAxis: i, yAxis: a, width: o, height: s }) {
4656
4656
  if (!i || !a)
4657
4657
  return {
@@ -4672,12 +4672,12 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4672
4672
  value: `translate(${u}px, ${l}px) rotate(${c}deg) rotateX(${f}deg) rotateY(${p}deg)`
4673
4673
  };
4674
4674
  }
4675
- return new B((i) => (E({
4675
+ return new R((i) => (E({
4676
4676
  fullDataFormatter: t,
4677
4677
  layout: e
4678
4678
  }).pipe(
4679
4679
  M(n),
4680
- T(async (a) => a)
4680
+ C(async (a) => a)
4681
4681
  ).subscribe((a) => {
4682
4682
  const o = r({
4683
4683
  xAxis: a.fullDataFormatter.groupAxis,
@@ -4702,7 +4702,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4702
4702
  };
4703
4703
  })
4704
4704
  ), Si = ({ computedData$: t, groupScaleDomainValue$: e, filteredMinMaxValue$: n, fullDataFormatter$: r, layout$: i }) => {
4705
- const a = new R();
4705
+ const a = new B();
4706
4706
  function o({ data: s, groupAxis: u, valueAxis: l, groupScaleDomainValue: c, filteredMinMaxValue: f, width: p, height: h }) {
4707
4707
  let m = 0, d = 0, v = 0, w = 0;
4708
4708
  const _ = u.position === "top" || u.position === "bottom" ? p : h, $ = 0, F = s[0] ? s[0].length - 1 : 0, A = Z({
@@ -4732,7 +4732,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4732
4732
  value: `translate(${m}px, ${d}px) scale(${v}, ${w})`
4733
4733
  };
4734
4734
  }
4735
- return new B((s) => (E({
4735
+ return new R((s) => (E({
4736
4736
  computedData: t,
4737
4737
  groupScaleDomainValue: e,
4738
4738
  filteredMinMaxValue: n,
@@ -4740,7 +4740,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4740
4740
  layout: i
4741
4741
  }).pipe(
4742
4742
  M(a),
4743
- T(async (u) => u)
4743
+ C(async (u) => u)
4744
4744
  ).subscribe((u) => {
4745
4745
  const l = o({
4746
4746
  data: u.computedData,
@@ -4760,7 +4760,7 @@ const wt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4760
4760
  gridAxesTransform: e,
4761
4761
  gridGraphicTransform: n
4762
4762
  }).pipe(
4763
- T(async (r) => r),
4763
+ C(async (r) => r),
4764
4764
  x((r) => r.gridAxesTransform.rotate == 0 || r.gridAxesTransform.rotate == 180 ? r.gridContainerPosition.map((i, a) => [
4765
4765
  1 / r.gridGraphicTransform.scale[0] / r.gridContainerPosition[a].scale[0],
4766
4766
  1 / r.gridGraphicTransform.scale[1] / r.gridContainerPosition[a].scale[1]
@@ -4783,7 +4783,7 @@ function pt({ columnName: t, expectToBe: e, from: n }) {
4783
4783
  ----> find in '${n}'`;
4784
4784
  }
4785
4785
  function sc(t) {
4786
- return t ? C(t, {
4786
+ return t ? T(t, {
4787
4787
  width: {
4788
4788
  toBe: '"auto" | number',
4789
4789
  test: (n) => n === "auto" || typeof n == "number"
@@ -4798,7 +4798,7 @@ function sc(t) {
4798
4798
  }) : { status: "success", columnName: "", expectToBe: "" };
4799
4799
  }
4800
4800
  function uc(t) {
4801
- return C({ element: t }, {
4801
+ return T({ element: t }, {
4802
4802
  element: {
4803
4803
  toBe: "Dom",
4804
4804
  test: (n) => Oi(n)
@@ -4814,7 +4814,7 @@ function lc(t, e) {
4814
4814
  relationship: ["category", "datum", "none"],
4815
4815
  tree: ["category", "datum", "none"],
4816
4816
  noneData: ["none"]
4817
- }, r = C(e, {
4817
+ }, r = T(e, {
4818
4818
  padding: {
4819
4819
  toBeTypes: ["object"]
4820
4820
  },
@@ -4844,7 +4844,7 @@ function lc(t, e) {
4844
4844
  }
4845
4845
  });
4846
4846
  if (e && e.padding) {
4847
- const i = C(e.padding, {
4847
+ const i = T(e.padding, {
4848
4848
  top: {
4849
4849
  toBeTypes: ["number"]
4850
4850
  },
@@ -4862,7 +4862,7 @@ function lc(t, e) {
4862
4862
  return i;
4863
4863
  }
4864
4864
  if (e && e.colors) {
4865
- const i = C(e.colors, {
4865
+ const i = T(e.colors, {
4866
4866
  light: {
4867
4867
  toBeTypes: ["object"]
4868
4868
  },
@@ -4873,7 +4873,7 @@ function lc(t, e) {
4873
4873
  if (i.status === "error")
4874
4874
  return i;
4875
4875
  if (e.colors.light) {
4876
- const a = C(e.colors.light, {
4876
+ const a = T(e.colors.light, {
4877
4877
  label: {
4878
4878
  toBeTypes: ["string[]"]
4879
4879
  },
@@ -4894,7 +4894,7 @@ function lc(t, e) {
4894
4894
  return a;
4895
4895
  }
4896
4896
  if (e.colors.dark) {
4897
- const a = C(e.colors.dark, {
4897
+ const a = T(e.colors.dark, {
4898
4898
  label: {
4899
4899
  toBeTypes: ["string[]"]
4900
4900
  },
@@ -4918,7 +4918,7 @@ function lc(t, e) {
4918
4918
  return r;
4919
4919
  }
4920
4920
  function cc(t, e) {
4921
- return C({ pluginEntities: e }, {
4921
+ return T({ pluginEntities: e }, {
4922
4922
  pluginEntities: {
4923
4923
  toBe: `PluginEntity<'${t}'>[]`,
4924
4924
  test: (r) => Array.isArray(r) && r.every((i) => i.chartType === t || i.chartType === "noneData")
@@ -4939,7 +4939,7 @@ const fc = ({
4939
4939
  dataValidator: r,
4940
4940
  contextObserverCallback: i
4941
4941
  }) => {
4942
- const a = new R(), o = t.type;
4942
+ const a = new B(), o = t.type;
4943
4943
  return function(u, l) {
4944
4944
  try {
4945
4945
  const { status: b, columnName: D, expectToBe: y } = sc(l);
@@ -4980,11 +4980,11 @@ const fc = ({
4980
4980
  const p = f.append("g");
4981
4981
  p.classed("orbcharts__plugins", !0);
4982
4982
  const h = {
4983
- data$: new R(),
4984
- dataFormatter$: new R(),
4985
- plugins$: new R(),
4986
- chartParams$: new R(),
4987
- event$: new R()
4983
+ data$: new B(),
4984
+ dataFormatter$: new B(),
4985
+ plugins$: new B(),
4986
+ chartParams$: new B(),
4987
+ event$: new B()
4988
4988
  }, m = ((b) => {
4989
4989
  const D = b || Ae, y = D.preset ? D.preset : {};
4990
4990
  return {
@@ -5066,7 +5066,7 @@ const fc = ({
5066
5066
  width: (l == null ? void 0 : l.width) ?? Ae.width,
5067
5067
  height: (l == null ? void 0 : l.height) ?? Ae.height
5068
5068
  }).pipe(
5069
- T((b) => mi(
5069
+ C((b) => mi(
5070
5070
  () => b.width === "auto" || b.height === "auto",
5071
5071
  // 有 'auto' 的話就監聽element的尺寸
5072
5072
  Ql(u).pipe(
@@ -5095,7 +5095,7 @@ const fc = ({
5095
5095
  mergedPadding: _
5096
5096
  }).pipe(
5097
5097
  M(a),
5098
- T(async (b) => {
5098
+ C(async (b) => {
5099
5099
  const D = b.rootSize.width > 0 ? b.rootSize.width : Fi, y = b.rootSize.height > 0 ? b.rootSize.height : Ei;
5100
5100
  return {
5101
5101
  width: D - b.mergedPadding.left - b.mergedPadding.right,
@@ -5120,8 +5120,8 @@ const fc = ({
5120
5120
  // layout: iif(() => isAxesTypeMap[chartType] === true, layout$, of(undefined))
5121
5121
  }).pipe(
5122
5122
  M(a),
5123
- T(async (b) => b),
5124
- T((b) => mt(b).pipe(
5123
+ C(async (b) => b),
5124
+ C((b) => mt(b).pipe(
5125
5125
  x((D) => {
5126
5126
  try {
5127
5127
  const { status: y, columnName: S, expectToBe: L } = r(D.data);
@@ -5171,7 +5171,7 @@ const fc = ({
5171
5171
  p.selectAll("g.orbcharts__plugin").data(b, (D) => D.name).join(
5172
5172
  (D) => D.append("g").attr("class", (y) => `orbcharts__plugin orbcharts__${y.name}`).each((y, S, L) => {
5173
5173
  const N = {
5174
- fullParams$: new B(),
5174
+ fullParams$: new R(),
5175
5175
  fullChartParams$: w,
5176
5176
  fullDataFormatter$: v,
5177
5177
  computedData$: I,
@@ -5205,7 +5205,7 @@ const fc = ({
5205
5205
  };
5206
5206
  class It {
5207
5207
  constructor({ defaultDataFormatter: e, dataFormatterValidator: n, computedDataFn: r, dataValidator: i, contextObserverCallback: a }, o, s) {
5208
- this.data$ = new R(), this.dataFormatter$ = new R(), this.plugins$ = new R(), this.chartParams$ = new R(), this.event$ = new R();
5208
+ this.data$ = new B(), this.dataFormatter$ = new B(), this.plugins$ = new B(), this.chartParams$ = new B(), this.event$ = new B();
5209
5209
  try {
5210
5210
  const l = fc({ defaultDataFormatter: e, dataFormatterValidator: n, computedDataFn: r, dataValidator: i, contextObserverCallback: a })(o, s);
5211
5211
  this.selection = l.selection, this.destroy = l.destroy, this.data$ = l.data$, this.dataFormatter$ = l.dataFormatter$, this.plugins$ = l.plugins$, this.chartParams$ = l.chartParams$, this.event$ = l.event$;
@@ -5219,7 +5219,7 @@ class vf extends It {
5219
5219
  super(
5220
5220
  {
5221
5221
  defaultDataFormatter: Kn,
5222
- dataFormatterValidator: Ri,
5222
+ dataFormatterValidator: Bi,
5223
5223
  computedDataFn: Gu,
5224
5224
  dataValidator: zu,
5225
5225
  contextObserverCallback: ac
@@ -5230,7 +5230,7 @@ class vf extends It {
5230
5230
  }
5231
5231
  }
5232
5232
  const pc = (t) => {
5233
- const e = C(t, {
5233
+ const e = T(t, {
5234
5234
  visibleFilter: {
5235
5235
  toBeTypes: ["Function"]
5236
5236
  },
@@ -5263,7 +5263,7 @@ const pc = (t) => {
5263
5263
  if (e.status === "error")
5264
5264
  return e;
5265
5265
  if (t.valueAxis) {
5266
- const n = C(t.valueAxis, {
5266
+ const n = T(t.valueAxis, {
5267
5267
  position: {
5268
5268
  toBe: '"bottom" | "left" | "top" | "right"',
5269
5269
  test: (r) => r === "bottom" || r === "left" || r === "top" || r === "right"
@@ -5284,7 +5284,7 @@ const pc = (t) => {
5284
5284
  return n;
5285
5285
  }
5286
5286
  if (t.groupAxis) {
5287
- const n = C(t.groupAxis, {
5287
+ const n = T(t.groupAxis, {
5288
5288
  position: {
5289
5289
  toBe: '"bottom" | "left" | "top" | "right"',
5290
5290
  test: (r) => r === "bottom" || r === "left" || r === "top" || r === "right"
@@ -5304,7 +5304,7 @@ const pc = (t) => {
5304
5304
  return n;
5305
5305
  }
5306
5306
  if (t.container) {
5307
- const n = C(t.container, {
5307
+ const n = T(t.container, {
5308
5308
  gap: {
5309
5309
  toBeTypes: ["number"]
5310
5310
  },
@@ -5320,7 +5320,7 @@ const pc = (t) => {
5320
5320
  }
5321
5321
  return e;
5322
5322
  };
5323
- function Ci(t, e) {
5323
+ function Ti(t, e) {
5324
5324
  if (!t.length)
5325
5325
  return [];
5326
5326
  try {
@@ -5358,7 +5358,7 @@ const hc = (t) => {
5358
5358
  return [];
5359
5359
  let i;
5360
5360
  try {
5361
- const a = Ci(e, n), o = Xr({
5361
+ const a = Ti(e, n), o = Xr({
5362
5362
  transposedDataGrid: a,
5363
5363
  dataFormatterGrid: n,
5364
5364
  chartType: "grid"
@@ -5391,7 +5391,7 @@ const hc = (t) => {
5391
5391
  throw Error(a);
5392
5392
  }
5393
5393
  return i;
5394
- }, mc = (t) => C({ data: t }, {
5394
+ }, mc = (t) => T({ data: t }, {
5395
5395
  data: {
5396
5396
  toBe: "(DataGridDatum | DataGridValue)[][]",
5397
5397
  // 畢免資料量過大檢查不完,不深度檢查
@@ -5542,7 +5542,7 @@ class xf extends It {
5542
5542
  }
5543
5543
  }
5544
5544
  const gc = (t) => {
5545
- const e = C(t, {
5545
+ const e = T(t, {
5546
5546
  visibleFilter: {
5547
5547
  toBeTypes: ["Function"]
5548
5548
  },
@@ -5558,7 +5558,7 @@ const gc = (t) => {
5558
5558
  });
5559
5559
  if (t.gridList) {
5560
5560
  const r = t.gridList.map((i, a) => {
5561
- const o = C(i, {
5561
+ const o = T(i, {
5562
5562
  seriesDirection: {
5563
5563
  toBe: '"row" | "column"',
5564
5564
  test: (s) => s === "row" || s === "column"
@@ -5582,7 +5582,7 @@ const gc = (t) => {
5582
5582
  if (o.status === "error")
5583
5583
  return o;
5584
5584
  if (i.valueAxis) {
5585
- const s = C(i.valueAxis, {
5585
+ const s = T(i.valueAxis, {
5586
5586
  position: {
5587
5587
  toBe: '"top" | "bottom" | "left" | "right"',
5588
5588
  test: (u) => u === "top" || u === "bottom" || u === "left" || u === "right"
@@ -5602,7 +5602,7 @@ const gc = (t) => {
5602
5602
  if (s.status === "error")
5603
5603
  return s;
5604
5604
  } else if (i.groupAxis) {
5605
- const s = C(i.groupAxis, {
5605
+ const s = T(i.groupAxis, {
5606
5606
  position: {
5607
5607
  toBe: '"top" | "bottom" | "left" | "right"',
5608
5608
  test: (u) => u === "top" || u === "bottom" || u === "left" || u === "right"
@@ -5631,7 +5631,7 @@ const gc = (t) => {
5631
5631
  return r;
5632
5632
  }
5633
5633
  if (t.container) {
5634
- const n = C(t.container, {
5634
+ const n = T(t.container, {
5635
5635
  gap: {
5636
5636
  toBeTypes: ["number"]
5637
5637
  },
@@ -5652,7 +5652,7 @@ const gc = (t) => {
5652
5652
  return [];
5653
5653
  let i = [];
5654
5654
  try {
5655
- const a = n.gridList[0] || xe, o = e.map((f, p) => n.gridList[p] || a), s = e.map((f, p) => Ci(f, o[p])), u = n.separateGrid ? s.map((f, p) => Xr({
5655
+ const a = n.gridList[0] || xe, o = e.map((f, p) => n.gridList[p] || a), s = e.map((f, p) => Ti(f, o[p])), u = n.separateGrid ? s.map((f, p) => Xr({
5656
5656
  transposedDataGrid: f,
5657
5657
  dataFormatterGrid: o[p],
5658
5658
  chartType: "multiGrid"
@@ -5701,14 +5701,14 @@ const gc = (t) => {
5701
5701
  throw Error(a);
5702
5702
  }
5703
5703
  return i;
5704
- }, vc = (t) => C({ data: t }, {
5704
+ }, vc = (t) => T({ data: t }, {
5705
5705
  data: {
5706
5706
  toBe: "DataGrid[]",
5707
5707
  // 畢免資料量過大檢查不完,不深度檢查
5708
5708
  test: (n) => Array.isArray(n)
5709
5709
  }
5710
5710
  }), xc = ({ fullDataFormatter$: t, computedData$: e, layout$: n, fullChartParams$: r, event$: i, containerSize$: a }) => {
5711
- const o = new R(), s = Ti({
5711
+ const o = new B(), s = Ci({
5712
5712
  computedData$: e,
5713
5713
  fullDataFormatter$: t,
5714
5714
  layout$: n
@@ -5720,7 +5720,7 @@ const gc = (t) => {
5720
5720
  computedData: e,
5721
5721
  multiGridContainer: s
5722
5722
  }).pipe(
5723
- T(async (u) => u),
5723
+ C(async (u) => u),
5724
5724
  // distinctUntilChanged((a, b) => {
5725
5725
  // // 只有當computedData的長度改變時,才重新計算
5726
5726
  // return a.computedData.length === b.computedData.length
@@ -5866,12 +5866,12 @@ const gc = (t) => {
5866
5866
  });
5867
5867
  })
5868
5868
  );
5869
- }, Ti = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
5869
+ }, Ci = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
5870
5870
  computedData: t,
5871
5871
  fullDataFormatter: e,
5872
5872
  layout: n
5873
5873
  }).pipe(
5874
- T(async (r) => r),
5874
+ C(async (r) => r),
5875
5875
  x((r) => {
5876
5876
  const i = r.fullDataFormatter.gridList[0] ?? xe, a = r.computedData.reduce((l, c, f) => {
5877
5877
  const h = (r.fullDataFormatter.gridList[f] ?? i).separateSeries ? c.length : r.fullDataFormatter.separateGrid ? 1 : 0;
@@ -5889,7 +5889,7 @@ const gc = (t) => {
5889
5889
  ), bc = ({ subject: t, observer: e }) => {
5890
5890
  const n = Ot(e.fullChartParams$).pipe(
5891
5891
  g(1)
5892
- ), r = Ti({
5892
+ ), r = Ci({
5893
5893
  computedData$: e.computedData$,
5894
5894
  fullDataFormatter$: e.fullDataFormatter$,
5895
5895
  layout$: e.layout$
@@ -5951,7 +5951,7 @@ class bf extends It {
5951
5951
  }
5952
5952
  }
5953
5953
  const wc = (t) => {
5954
- const e = C(t, {
5954
+ const e = T(t, {
5955
5955
  visibleFilter: {
5956
5956
  toBeTypes: ["Function"]
5957
5957
  },
@@ -5977,7 +5977,7 @@ const wc = (t) => {
5977
5977
  if (e.status === "error")
5978
5978
  return e;
5979
5979
  if (t.yAxis) {
5980
- const n = C(t.yAxis, {
5980
+ const n = T(t.yAxis, {
5981
5981
  scaleDomain: {
5982
5982
  toBe: '[number | "min" | "auto", number | "max" | "auto"]',
5983
5983
  test: (r) => Array.isArray(r) && r.length === 2 && (typeof r[0] == "number" || r[0] === "min" || r[0] === "auto") && (typeof r[1] == "number" || r[1] === "max" || r[1] === "auto")
@@ -5997,7 +5997,7 @@ const wc = (t) => {
5997
5997
  return n;
5998
5998
  }
5999
5999
  if (t.xAxis) {
6000
- const n = C(t.xAxis, {
6000
+ const n = T(t.xAxis, {
6001
6001
  scaleDomain: {
6002
6002
  toBe: '[number | "min" | "auto", number | "max" | "auto"]',
6003
6003
  test: (r) => Array.isArray(r) && r.length === 2 && (typeof r[0] == "number" || r[0] === "min" || r[0] === "auto") && (typeof r[1] == "number" || r[1] === "max" || r[1] === "auto")
@@ -6017,7 +6017,7 @@ const wc = (t) => {
6017
6017
  return n;
6018
6018
  }
6019
6019
  if (t.container) {
6020
- const n = C(t.container, {
6020
+ const n = T(t.container, {
6021
6021
  gap: {
6022
6022
  toBeTypes: ["number"]
6023
6023
  },
@@ -6104,7 +6104,7 @@ const wc = (t) => {
6104
6104
  throw Error(o);
6105
6105
  }
6106
6106
  return a;
6107
- }, $c = (t) => C({ data: t }, {
6107
+ }, $c = (t) => T({ data: t }, {
6108
6108
  data: {
6109
6109
  toBe: "(DataMultiValueDatum | DataMultiValueValue[])[]",
6110
6110
  // 畢免資料量過大檢查不完,不深度檢查
@@ -6151,7 +6151,7 @@ const wc = (t) => {
6151
6151
  fullDataFormatter: r,
6152
6152
  layout: i
6153
6153
  }).pipe(
6154
- T(async (s) => s),
6154
+ C(async (s) => s),
6155
6155
  x((s) => {
6156
6156
  const u = a(s.xyMinMax, s.layout), l = o(s.xyMinMax, s.layout);
6157
6157
  return s.computedData.map((c, f) => c.map((p, h) => ({
@@ -6168,17 +6168,17 @@ const wc = (t) => {
6168
6168
  V((n, r) => JSON.stringify(n).length === JSON.stringify(r).length)
6169
6169
  ), Mc = ({ computedData$: t }) => t.pipe(
6170
6170
  x((e) => e.map((n) => n.filter((r) => r.visible == !0)).filter((n) => n.length > 0))
6171
- ), Cc = ({ visibleComputedData$: t }) => t.pipe(
6171
+ ), Tc = ({ visibleComputedData$: t }) => t.pipe(
6172
6172
  x((e) => e.map((n) => n.map((r) => {
6173
6173
  let i = r;
6174
6174
  return i.sum = i.value.reduce((a, o) => a + o, 0), i;
6175
6175
  })))
6176
- ), Tc = ({ xyValueIndex$: t, isCategorySeprate$: e, visibleComputedData$: n }) => E({
6176
+ ), Cc = ({ xyValueIndex$: t, isCategorySeprate$: e, visibleComputedData$: n }) => E({
6177
6177
  isCategorySeprate: e,
6178
6178
  xyValueIndex: t,
6179
6179
  visibleComputedData: n
6180
6180
  }).pipe(
6181
- T(async (r) => r),
6181
+ C(async (r) => r),
6182
6182
  x((r) => {
6183
6183
  const i = r.xyValueIndex[0];
6184
6184
  return r.isCategorySeprate ? r.visibleComputedData.map((a) => a.sort((o, s) => {
@@ -6195,7 +6195,7 @@ const wc = (t) => {
6195
6195
  isCategorySeprate: t,
6196
6196
  visibleComputedSumData: e
6197
6197
  }).pipe(
6198
- T(async (n) => n),
6198
+ C(async (n) => n),
6199
6199
  x((n) => n.isCategorySeprate ? n.visibleComputedSumData.map((r) => r.sort((i, a) => a.sum - i.sum)) : [
6200
6200
  n.visibleComputedSumData.flat().sort((r, i) => i.sum - r.sum)
6201
6201
  ])
@@ -6206,7 +6206,7 @@ const wc = (t) => {
6206
6206
  fullDataFormatter: e,
6207
6207
  layout: n
6208
6208
  }).pipe(
6209
- T(async (i) => i),
6209
+ C(async (i) => i),
6210
6210
  x((i) => {
6211
6211
  if (i.fullDataFormatter.separateCategory)
6212
6212
  return zt(i.layout, i.fullDataFormatter.container, i.computedData.length);
@@ -6241,7 +6241,7 @@ const wc = (t) => {
6241
6241
  };
6242
6242
  })
6243
6243
  ), Oc = ({ xyMinMax$: t, xyValueIndex$: e, filteredXYMinMaxData$: n, fullDataFormatter$: r, layout$: i }) => {
6244
- const a = new R();
6244
+ const a = new B();
6245
6245
  function o({ xyMinMax: s, xyValueIndex: u, filteredXYMinMaxData: l, xAxis: c, yAxis: f, width: p, height: h }) {
6246
6246
  let m = 0, d = 0, v = 0, w = 0, { minX: _, maxX: $, minY: F, maxY: A } = s, O = l.minXDatum.value[u[0]] ?? 0, I = l.maxXDatum.value[u[0]] ?? 0, P = l.minYDatum.value[u[1]] ?? 0, b = l.maxYDatum.value[u[1]] ?? 0;
6247
6247
  O === I && I === 0 && (I = 1), P === b && b === 0 && (b = 1), _ === $ && $ === 0 && ($ = 1), F === A && A === 0 && (A = 1);
@@ -6270,7 +6270,7 @@ const wc = (t) => {
6270
6270
  value: `translate(${m}px, ${d}px) scale(${v}, ${w})`
6271
6271
  };
6272
6272
  }
6273
- return new B((s) => (E({
6273
+ return new R((s) => (E({
6274
6274
  xyMinMax: t,
6275
6275
  xyValueIndex: e,
6276
6276
  filteredXYMinMaxData: n,
@@ -6278,7 +6278,7 @@ const wc = (t) => {
6278
6278
  layout: i
6279
6279
  }).pipe(
6280
6280
  M(a),
6281
- T(async (u) => u)
6281
+ C(async (u) => u)
6282
6282
  ).subscribe((u) => {
6283
6283
  if (!u.filteredXYMinMaxData.minXDatum || !u.filteredXYMinMaxData.maxXDatum || u.filteredXYMinMaxData.minXDatum.value[u.xyValueIndex[0]] == null || u.filteredXYMinMaxData.maxXDatum.value[u.xyValueIndex[0]] == null || !u.filteredXYMinMaxData.minYDatum || !u.filteredXYMinMaxData.maxYDatum || u.filteredXYMinMaxData.minYDatum.value[u.xyValueIndex[1]] == null || u.filteredXYMinMaxData.maxYDatum.value[u.xyValueIndex[1]] == null)
6284
6284
  return;
@@ -6300,19 +6300,19 @@ const wc = (t) => {
6300
6300
  // multiValueAxesTransform: multiValueAxesTransform$,
6301
6301
  graphicTransform: e
6302
6302
  }).pipe(
6303
- T(async (n) => n),
6303
+ C(async (n) => n),
6304
6304
  x((n) => n.containerPosition.map((r, i) => [
6305
6305
  1 / n.graphicTransform.scale[0] / n.containerPosition[i].scale[0],
6306
6306
  1 / n.graphicTransform.scale[1] / n.containerPosition[i].scale[1]
6307
6307
  ]))
6308
- ), Rc = ({ visibleComputedSumData$: t, fullDataFormatter$: e, filteredXYMinMaxData$: n, containerSize$: r }) => E({
6308
+ ), Bc = ({ visibleComputedSumData$: t, fullDataFormatter$: e, filteredXYMinMaxData$: n, containerSize$: r }) => E({
6309
6309
  visibleComputedSumData: t,
6310
6310
  fullDataFormatter: e,
6311
6311
  containerSize: r,
6312
6312
  // xyMinMax: xyMinMax$
6313
6313
  filteredXYMinMaxData: n
6314
6314
  }).pipe(
6315
- T(async (i) => i),
6315
+ C(async (i) => i),
6316
6316
  x((i) => {
6317
6317
  const a = i.fullDataFormatter.xAxis.valueIndex;
6318
6318
  if (!i.filteredXYMinMaxData.minXDatum || !i.filteredXYMinMaxData.maxXDatum)
@@ -6326,14 +6326,14 @@ const wc = (t) => {
6326
6326
  scaleRange: i.fullDataFormatter.xAxis.scaleRange
6327
6327
  });
6328
6328
  })
6329
- ), Bc = ({ fullDataFormatter$: t, filteredXYMinMaxData$: e, containerSize$: n }) => E({
6329
+ ), Rc = ({ fullDataFormatter$: t, filteredXYMinMaxData$: e, containerSize$: n }) => E({
6330
6330
  // valueIndex: valueIndex$,
6331
6331
  fullDataFormatter: t,
6332
6332
  containerSize: n,
6333
6333
  // xyMinMax: xyMinMax$
6334
6334
  filteredXYMinMaxData: e
6335
6335
  }).pipe(
6336
- T(async (r) => r),
6336
+ C(async (r) => r),
6337
6337
  x((r) => {
6338
6338
  const i = r.fullDataFormatter.xAxis.valueIndex;
6339
6339
  if (!r.filteredXYMinMaxData.minXDatum || !r.filteredXYMinMaxData.maxXDatum)
@@ -6353,7 +6353,7 @@ const wc = (t) => {
6353
6353
  // xyMinMax: observer.xyMinMax$
6354
6354
  filteredXYMinMaxData: e
6355
6355
  }).pipe(
6356
- T(async (r) => r),
6356
+ C(async (r) => r),
6357
6357
  x((r) => {
6358
6358
  const i = r.fullDataFormatter.yAxis.valueIndex;
6359
6359
  if (!r.filteredXYMinMaxData.minYDatum || !r.filteredXYMinMaxData.maxYDatum || r.filteredXYMinMaxData.minYDatum.value[i] == null || r.filteredXYMinMaxData.maxYDatum.value[i] == null)
@@ -6418,11 +6418,11 @@ const wc = (t) => {
6418
6418
  computedData$: e.computedData$
6419
6419
  }).pipe(
6420
6420
  g(1)
6421
- ), h = Cc({
6421
+ ), h = Tc({
6422
6422
  visibleComputedData$: p
6423
6423
  }).pipe(
6424
6424
  g(1)
6425
- ), m = Tc({
6425
+ ), m = Cc({
6426
6426
  xyValueIndex$: o,
6427
6427
  // * 依據 valueIndex 來取得 visibleComputedData
6428
6428
  isCategorySeprate$: r,
@@ -6467,14 +6467,14 @@ const wc = (t) => {
6467
6467
  graphicTransform$: $
6468
6468
  }).pipe(
6469
6469
  g(1)
6470
- ), A = Rc({
6470
+ ), A = Bc({
6471
6471
  visibleComputedSumData$: h,
6472
6472
  fullDataFormatter$: e.fullDataFormatter$,
6473
6473
  filteredXYMinMaxData$: _,
6474
6474
  containerSize$: a
6475
6475
  }).pipe(
6476
6476
  g(1)
6477
- ), O = Bc({
6477
+ ), O = Rc({
6478
6478
  fullDataFormatter$: e.fullDataFormatter$,
6479
6479
  filteredXYMinMaxData$: _,
6480
6480
  containerSize$: a
@@ -6536,7 +6536,7 @@ class wf extends It {
6536
6536
  );
6537
6537
  }
6538
6538
  }
6539
- const Vc = (t) => C(t, {
6539
+ const Vc = (t) => T(t, {
6540
6540
  visibleFilter: {
6541
6541
  toBeTypes: ["Function"]
6542
6542
  },
@@ -6628,7 +6628,7 @@ const Vc = (t) => C(t, {
6628
6628
  nodes: a,
6629
6629
  edges: o
6630
6630
  };
6631
- }, Yc = (t) => C({ data: t }, {
6631
+ }, Yc = (t) => T({ data: t }, {
6632
6632
  data: {
6633
6633
  toBe: "DataRelationshipObj | DataRelationshipList",
6634
6634
  // 畢免資料量過大檢查不完,不深度檢查
@@ -6638,7 +6638,7 @@ const Vc = (t) => C(t, {
6638
6638
  CategoryNodeMap: t,
6639
6639
  CategoryEdgeMap: e
6640
6640
  }).pipe(
6641
- T(async (n) => n),
6641
+ C(async (n) => n),
6642
6642
  x((n) => [...Array.from(n.CategoryNodeMap.keys()), ...Array.from(n.CategoryEdgeMap.keys())]),
6643
6643
  V((n, r) => JSON.stringify(n).length === JSON.stringify(r).length)
6644
6644
  ), zc = (t) => t.pipe(
@@ -6659,7 +6659,7 @@ const Vc = (t) => C(t, {
6659
6659
  computedData: t,
6660
6660
  NodeMap: e
6661
6661
  }).pipe(
6662
- T(async (n) => n),
6662
+ C(async (n) => n),
6663
6663
  x((n) => ({
6664
6664
  nodes: n.computedData.nodes.filter((r) => r.visible),
6665
6665
  edges: n.computedData.edges.filter((r) => r.visible).filter((r) => n.NodeMap.has(r.startNode.id) && n.NodeMap.has(r.endNode.id))
@@ -6731,7 +6731,7 @@ class Df extends It {
6731
6731
  );
6732
6732
  }
6733
6733
  }
6734
- const qc = (t) => C(t, {
6734
+ const qc = (t) => T(t, {
6735
6735
  visibleFilter: {
6736
6736
  toBeTypes: ["Function"]
6737
6737
  },
@@ -6819,7 +6819,7 @@ const qc = (t) => C(t, {
6819
6819
  throw Error(s);
6820
6820
  }
6821
6821
  return o;
6822
- }, Jc = (t) => C({ data: t }, {
6822
+ }, Jc = (t) => T({ data: t }, {
6823
6823
  data: {
6824
6824
  toBe: "DataTreeObj | DataTreeDatum[]",
6825
6825
  // 畢免資料量過大檢查不完,不深度檢查
@@ -6897,16 +6897,16 @@ class $f extends It {
6897
6897
  }
6898
6898
  }
6899
6899
  function ef({ chartType: t, config: e, initFn: n }) {
6900
- const r = new R(), i = /* @__PURE__ */ new WeakMap();
6900
+ const r = new B(), i = /* @__PURE__ */ new WeakMap();
6901
6901
  let a = () => {
6902
6902
  }, o;
6903
6903
  const s = new zn(e.defaultParams), u = new zn({}), l = s.pipe(
6904
- T((c) => u.pipe(
6904
+ C((c) => u.pipe(
6905
6905
  M(r),
6906
6906
  x((f) => {
6907
6907
  try {
6908
6908
  const { status: p, columnName: h, expectToBe: m } = e.validator(f, {
6909
- validateColumns: C
6909
+ validateColumns: T
6910
6910
  });
6911
6911
  if (p === "error")
6912
6912
  throw new Error(ft({
@@ -6965,7 +6965,7 @@ const Dt = (t) => function(n) {
6965
6965
  }
6966
6966
  };
6967
6967
  };
6968
- }, Af = Dt("series"), Sf = Dt("grid"), Mf = Dt("multiGrid"), Cf = Dt("multiValue"), Tf = Dt("noneData"), Ff = Dt("relationship"), Ef = Dt("tree");
6968
+ }, Af = Dt("series"), Sf = Dt("grid"), Mf = Dt("multiGrid"), Tf = Dt("multiValue"), Cf = Dt("noneData"), Ff = Dt("relationship"), Ef = Dt("tree");
6969
6969
  export {
6970
6970
  uf as DEFAULTL_DATA_RELATIONA,
6971
6971
  Ei as DEFAULT_CHART_HEIGHT,
@@ -7015,8 +7015,8 @@ export {
7015
7015
  Z as createValueToAxisScale,
7016
7016
  Sf as defineGridPlugin,
7017
7017
  Mf as defineMultiGridPlugin,
7018
- Cf as defineMultiValuePlugin,
7019
- Tf as defineNoneDataPlugin,
7018
+ Tf as defineMultiValuePlugin,
7019
+ Cf as defineNoneDataPlugin,
7020
7020
  Ff as defineRelationshipPlugin,
7021
7021
  Af as defineSeriesPlugin,
7022
7022
  Ef as defineTreePlugin,