@orbcharts/core 3.0.0-beta.6 → 3.0.0-beta.8

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.
Files changed (69) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-core.es.js +486 -483
  3. package/dist/orbcharts-core.umd.js +3 -3
  4. package/dist/src/defaults.d.ts +1 -1
  5. package/lib/core-types.ts +7 -7
  6. package/package.json +42 -42
  7. package/src/AbstractChart.ts +57 -57
  8. package/src/GridChart.ts +24 -24
  9. package/src/MultiGridChart.ts +24 -24
  10. package/src/MultiValueChart.ts +24 -24
  11. package/src/RelationshipChart.ts +24 -24
  12. package/src/SeriesChart.ts +24 -24
  13. package/src/TreeChart.ts +24 -24
  14. package/src/base/createBaseChart.ts +505 -505
  15. package/src/base/createBasePlugin.ts +153 -153
  16. package/src/base/validators/chartOptionsValidator.ts +23 -23
  17. package/src/base/validators/chartParamsValidator.ts +133 -133
  18. package/src/base/validators/elementValidator.ts +13 -13
  19. package/src/base/validators/pluginsValidator.ts +14 -14
  20. package/src/defaults.ts +238 -235
  21. package/src/defineGridPlugin.ts +3 -3
  22. package/src/defineMultiGridPlugin.ts +3 -3
  23. package/src/defineMultiValuePlugin.ts +3 -3
  24. package/src/defineNoneDataPlugin.ts +4 -4
  25. package/src/defineRelationshipPlugin.ts +3 -3
  26. package/src/defineSeriesPlugin.ts +3 -3
  27. package/src/defineTreePlugin.ts +3 -3
  28. package/src/grid/computedDataFn.ts +129 -129
  29. package/src/grid/contextObserverCallback.ts +176 -176
  30. package/src/grid/dataFormatterValidator.ts +101 -101
  31. package/src/grid/dataValidator.ts +12 -12
  32. package/src/index.ts +20 -20
  33. package/src/multiGrid/computedDataFn.ts +123 -123
  34. package/src/multiGrid/contextObserverCallback.ts +41 -41
  35. package/src/multiGrid/dataFormatterValidator.ts +115 -115
  36. package/src/multiGrid/dataValidator.ts +12 -12
  37. package/src/multiValue/computedDataFn.ts +110 -110
  38. package/src/multiValue/contextObserverCallback.ts +160 -160
  39. package/src/multiValue/dataFormatterValidator.ts +9 -9
  40. package/src/multiValue/dataValidator.ts +9 -9
  41. package/src/relationship/computedDataFn.ts +144 -144
  42. package/src/relationship/contextObserverCallback.ts +80 -80
  43. package/src/relationship/dataFormatterValidator.ts +9 -9
  44. package/src/relationship/dataValidator.ts +9 -9
  45. package/src/series/computedDataFn.ts +88 -88
  46. package/src/series/contextObserverCallback.ts +100 -100
  47. package/src/series/dataFormatterValidator.ts +41 -41
  48. package/src/series/dataValidator.ts +12 -12
  49. package/src/tree/computedDataFn.ts +129 -129
  50. package/src/tree/contextObserverCallback.ts +58 -58
  51. package/src/tree/dataFormatterValidator.ts +13 -13
  52. package/src/tree/dataValidator.ts +13 -13
  53. package/src/utils/commonUtils.ts +55 -55
  54. package/src/utils/d3Scale.ts +198 -198
  55. package/src/utils/errorMessage.ts +42 -42
  56. package/src/utils/gridObservables.ts +683 -683
  57. package/src/utils/index.ts +9 -9
  58. package/src/utils/multiGridObservables.ts +392 -392
  59. package/src/utils/multiValueObservables.ts +661 -661
  60. package/src/utils/observables.ts +219 -219
  61. package/src/utils/orbchartsUtils.ts +377 -377
  62. package/src/utils/relationshipObservables.ts +84 -84
  63. package/src/utils/seriesObservables.ts +175 -175
  64. package/src/utils/treeObservables.ts +105 -105
  65. package/src/utils/validator.ts +126 -126
  66. package/tsconfig.base.json +13 -13
  67. package/tsconfig.json +2 -2
  68. package/vite-env.d.ts +6 -6
  69. package/vite.config.js +22 -22
@@ -14,7 +14,9 @@ const Ae = {
14
14
  colorScheme: "light",
15
15
  colors: {
16
16
  light: {
17
- label: ["#67B7DC", "#6794DC", "#6771DC", "#8067DC", "#A367DC", "#C767DC", "#DC67CE", "#DC67AB", "#DC6788", "#DC6967", "#DC8C67", "#DCAF67"],
17
+ // label: ['#67B7DC', '#6794DC', '#6771DC', '#8067DC', '#A367DC', '#C767DC', '#DC67CE', '#DC67AB', '#DC6788', '#DC6967', '#DC8C67', '#DCAF67'],
18
+ // label: ['#F3A356', '#7A60F0', '#38B1AF', '#60A2F0', '#F06062', '#FF383C', '#6580EA', '#079F9C', '#9F65EA', '#EA7465', '#EA7465', '#8657D2', '#59B757', '#2797FF', '#D25786', '#F54BA6', '#4BECF5', '#74FD72', '#CA4BF5', '#EFE26E'],
19
+ label: ["#60A2F0", "#F3A356", "#7A60F0", "#38B1AF", "#F06062", "#FF383C", "#6580EA", "#079F9C", "#9F65EA", "#EA7465", "#EA7465", "#8657D2", "#59B757", "#2797FF", "#D25786", "#F54BA6", "#4BECF5", "#74FD72", "#CA4BF5", "#EFE26E"],
18
20
  // primary: '#454545',
19
21
  primary: "#1b1e23",
20
22
  secondary: "#e1e1e1",
@@ -22,7 +24,8 @@ const Ae = {
22
24
  background: "#ffffff"
23
25
  },
24
26
  dark: {
25
- label: ["#67B7DC", "#6794DC", "#6771DC", "#8067DC", "#A367DC", "#C767DC", "#DC67CE", "#DC67AB", "#DC6788", "#DC6967", "#DC8C67", "#DCAF67"],
27
+ // label: ['#67B7DC', '#6794DC', '#38B1AF', '#6771DC', '#8067DC', '#A367DC', '#C767DC', '#DC67CE', '#DC67AB', '#DC6788', '#DC6967', '#DC8C67', '#DCAF67'],
28
+ label: ["#60A2F0", "#F3A356", "#7A60F0", "#38B1AF", "#F06062", "#FF383C", "#6580EA", "#079F9C", "#9F65EA", "#EA7465", "#EA7465", "#8657D2", "#59B757", "#2797FF", "#D25786", "#F54BA6", "#4BECF5", "#74FD72", "#CA4BF5", "#EFE26E"],
26
29
  primary: "#f0f0f0",
27
30
  secondary: "#e1e1e1",
28
31
  white: "#ffffff",
@@ -36,7 +39,7 @@ const Ae = {
36
39
  },
37
40
  transitionDuration: 800,
38
41
  transitionEase: "easeCubic"
39
- }, Ci = 800, Mi = 500, qc = [], jc = [], Wc = [], Jc = [], Kc = [], Zc = {
42
+ }, Mi = 800, Ti = 500, qc = [], jc = [], Wc = [], Jc = [], Kc = [], Zc = {
40
43
  nodes: [],
41
44
  edges: []
42
45
  }, X = {
@@ -44,7 +47,7 @@ const Ae = {
44
47
  scaleDomain: ["auto", "auto"],
45
48
  scaleRange: [0, 0.9],
46
49
  label: ""
47
- }, Ti = {
50
+ }, Fi = {
48
51
  position: "bottom",
49
52
  scaleDomain: [0, "max"],
50
53
  scalePadding: 0.5,
@@ -83,7 +86,7 @@ const Jn = {
83
86
  rowLabels: [],
84
87
  columnLabels: [],
85
88
  valueAxis: { ...X },
86
- groupAxis: { ...Ti },
89
+ groupAxis: { ...Fi },
87
90
  separateSeries: !1
88
91
  // slotIndex: 0,
89
92
  // seriesSlotIndexes: null
@@ -150,10 +153,10 @@ er.visibleFilter.toString = () => "(datum, context) => true";
150
153
  function U(t) {
151
154
  return Object.prototype.toString.call(t) === "[object Object]";
152
155
  }
153
- function Fi(t) {
156
+ function Ci(t) {
154
157
  return Object.prototype.toString.call(t) === "[object Function]";
155
158
  }
156
- function Li(t) {
159
+ function Ei(t) {
157
160
  return !!(t && t.nodeType);
158
161
  }
159
162
  function mt(t, e) {
@@ -179,7 +182,7 @@ function Qc(t = 0) {
179
182
  console.error(e);
180
183
  }
181
184
  }
182
- function Ei(t, e) {
185
+ function Li(t, e) {
183
186
  const n = {
184
187
  string: (a) => typeof a == "string",
185
188
  number: (a) => typeof a == "number",
@@ -189,7 +192,7 @@ function Ei(t, e) {
189
192
  "object[]": (a) => Array.isArray(a) && a.every((o) => U(o)),
190
193
  "string[]": (a) => Array.isArray(a) && a.every((o) => typeof o == "string"),
191
194
  "number[]": (a) => Array.isArray(a) && a.every((o) => typeof o == "number"),
192
- Function: (a) => Fi(a),
195
+ Function: (a) => Ci(a),
193
196
  null: (a) => a === null,
194
197
  undefined: (a) => a === void 0
195
198
  }, r = {
@@ -214,8 +217,8 @@ function Ei(t, e) {
214
217
  return !1;
215
218
  });
216
219
  }
217
- function F(t, e) {
218
- const n = Ei(t, e);
220
+ function C(t, e) {
221
+ const n = Li(t, e);
219
222
  if (n) {
220
223
  const r = e[n], i = r.toBeTypes ? r.toBeTypes.join(" | ") : r.toBe ? r.toBe : r.toBeOption ? r.toBeOption : "";
221
224
  return {
@@ -236,7 +239,7 @@ function F(t, e) {
236
239
  };
237
240
  }
238
241
  const Pi = (t) => {
239
- const e = F(t, {
242
+ const e = C(t, {
240
243
  visibleFilter: {
241
244
  toBeTypes: ["Function"]
242
245
  },
@@ -257,7 +260,7 @@ const Pi = (t) => {
257
260
  }
258
261
  });
259
262
  if (t.container) {
260
- const n = F(t.container, {
263
+ const n = C(t.container, {
261
264
  gap: {
262
265
  toBeTypes: ["number"]
263
266
  },
@@ -314,7 +317,7 @@ function ki() {
314
317
  function Ni(t) {
315
318
  return t === null ? NaN : +t;
316
319
  }
317
- const Ri = nr(ee), rr = Ri.right;
320
+ const Bi = nr(ee), rr = Bi.right;
318
321
  nr(Ni).center;
319
322
  class pn extends Map {
320
323
  constructor(e, n = Vi) {
@@ -327,7 +330,7 @@ class pn extends Map {
327
330
  return super.has(mn(this, e));
328
331
  }
329
332
  set(e, n) {
330
- return super.set(Bi(this, e), n);
333
+ return super.set(Ri(this, e), n);
331
334
  }
332
335
  delete(e) {
333
336
  return super.delete(Ii(this, e));
@@ -337,7 +340,7 @@ function mn({ _intern: t, _key: e }, n) {
337
340
  const r = e(n);
338
341
  return t.has(r) ? t.get(r) : n;
339
342
  }
340
- function Bi({ _intern: t, _key: e }, n) {
343
+ function Ri({ _intern: t, _key: e }, n) {
341
344
  const r = e(n);
342
345
  return t.has(r) ? t.get(r) : (t.set(r, n), n);
343
346
  }
@@ -367,15 +370,15 @@ function Ui(t, e, n) {
367
370
  else for (let l = 0; l < s; ++l) u[l] = (i + l) * o;
368
371
  return u;
369
372
  }
370
- function Ee(t, e, n) {
373
+ function Le(t, e, n) {
371
374
  return e = +e, t = +t, n = +n, oe(t, e, n)[2];
372
375
  }
373
- function zi(t, e, n) {
376
+ function Hi(t, e, n) {
374
377
  e = +e, t = +t, n = +n;
375
- const r = e < t, i = r ? Ee(e, t, n) : Ee(t, e, n);
378
+ const r = e < t, i = r ? Le(e, t, n) : Le(t, e, n);
376
379
  return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
377
380
  }
378
- function Hi(t, e, n) {
381
+ function zi(t, e, n) {
379
382
  t = +t, e = +e, n = (i = arguments.length) < 2 ? (e = t, t = 0, 1) : i < 3 ? 1 : +n;
380
383
  for (var r = -1, i = Math.max(0, Math.ceil((e - t) / n)) | 0, a = new Array(i); ++r < i; )
381
384
  a[r] = t + r * n;
@@ -471,17 +474,17 @@ function ar(t) {
471
474
  }
472
475
  function Zi() {
473
476
  }
474
- function ze(t) {
477
+ function He(t) {
475
478
  return t == null ? Zi : function() {
476
479
  return this.querySelector(t);
477
480
  };
478
481
  }
479
482
  function Qi(t) {
480
- typeof t != "function" && (t = ze(t));
483
+ typeof t != "function" && (t = He(t));
481
484
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
482
485
  for (var a = e[i], o = a.length, s = r[i] = new Array(o), u, l, f = 0; f < o; ++f)
483
486
  (u = a[f]) && (l = t.call(u, u.__data__, f, a)) && ("__data__" in u && (l.__data__ = u.__data__), s[f] = l);
484
- return new z(r, this._parents);
487
+ return new H(r, this._parents);
485
488
  }
486
489
  function ta(t) {
487
490
  return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
@@ -504,7 +507,7 @@ function ra(t) {
504
507
  for (var e = this._groups, n = e.length, r = [], i = [], a = 0; a < n; ++a)
505
508
  for (var o = e[a], s = o.length, u, l = 0; l < s; ++l)
506
509
  (u = o[l]) && (r.push(t.call(u, u.__data__, l, o)), i.push(u));
507
- return new z(r, i);
510
+ return new H(r, i);
508
511
  }
509
512
  function sr(t) {
510
513
  return function() {
@@ -545,13 +548,13 @@ function ha(t) {
545
548
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
546
549
  for (var a = e[i], o = a.length, s = r[i] = [], u, l = 0; l < o; ++l)
547
550
  (u = a[l]) && t.call(u, u.__data__, l, a) && s.push(u);
548
- return new z(r, this._parents);
551
+ return new H(r, this._parents);
549
552
  }
550
553
  function lr(t) {
551
554
  return new Array(t.length);
552
555
  }
553
556
  function pa() {
554
- return new z(this._enter || this._groups.map(lr), this._parents);
557
+ return new H(this._enter || this._groups.map(lr), this._parents);
555
558
  }
556
559
  function se(t, e) {
557
560
  this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e;
@@ -601,19 +604,19 @@ function va(t, e) {
601
604
  for (var a = i.length, o = new Array(a), s = new Array(a), u = new Array(a), l = 0; l < a; ++l) {
602
605
  var f = r[l], c = i[l], h = c.length, p = ba(t.call(f, f && f.__data__, l, r)), m = p.length, d = s[l] = new Array(m), v = o[l] = new Array(m), D = u[l] = new Array(h);
603
606
  n(f, c, d, v, D, p, e);
604
- for (var A = 0, $ = 0, T, _; A < m; ++A)
605
- if (T = d[A]) {
607
+ for (var A = 0, $ = 0, F, _; A < m; ++A)
608
+ if (F = d[A]) {
606
609
  for (A >= $ && ($ = A + 1); !(_ = v[$]) && ++$ < m; ) ;
607
- T._next = _ || null;
610
+ F._next = _ || null;
608
611
  }
609
612
  }
610
- return o = new z(o, r), o._enter = s, o._exit = u, o;
613
+ return o = new H(o, r), o._enter = s, o._exit = u, o;
611
614
  }
612
615
  function ba(t) {
613
616
  return typeof t == "object" && "length" in t ? t : Array.from(t);
614
617
  }
615
618
  function xa() {
616
- return new z(this._exit || this._groups.map(lr), this._parents);
619
+ return new H(this._exit || this._groups.map(lr), this._parents);
617
620
  }
618
621
  function wa(t, e, n) {
619
622
  var r = this.enter(), i = this, a = this.exit();
@@ -625,7 +628,7 @@ function Da(t) {
625
628
  (p = l[m] || f[m]) && (h[m] = p);
626
629
  for (; u < i; ++u)
627
630
  s[u] = n[u];
628
- return new z(s, this._parents);
631
+ return new H(s, this._parents);
629
632
  }
630
633
  function $a() {
631
634
  for (var t = this._groups, e = -1, n = t.length; ++e < n; )
@@ -643,7 +646,7 @@ function _a(t) {
643
646
  (l = o[f]) && (u[f] = l);
644
647
  u.sort(e);
645
648
  }
646
- return new z(i, this._parents).order();
649
+ return new H(i, this._parents).order();
647
650
  }
648
651
  function Aa(t, e) {
649
652
  return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
@@ -652,10 +655,10 @@ function Sa() {
652
655
  var t = arguments[0];
653
656
  return arguments[0] = this, t.apply(null, arguments), this;
654
657
  }
655
- function Ca() {
658
+ function Ma() {
656
659
  return Array.from(this);
657
660
  }
658
- function Ma() {
661
+ function Ta() {
659
662
  for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
660
663
  for (var r = t[e], i = 0, a = r.length; i < a; ++i) {
661
664
  var o = r[i];
@@ -663,21 +666,21 @@ function Ma() {
663
666
  }
664
667
  return null;
665
668
  }
666
- function Ta() {
669
+ function Fa() {
667
670
  let t = 0;
668
671
  for (const e of this) ++t;
669
672
  return t;
670
673
  }
671
- function Fa() {
674
+ function Ca() {
672
675
  return !this.node();
673
676
  }
674
- function La(t) {
677
+ function Ea(t) {
675
678
  for (var e = this._groups, n = 0, r = e.length; n < r; ++n)
676
679
  for (var i = e[n], a = 0, o = i.length, s; a < o; ++a)
677
680
  (s = i[a]) && t.call(s, s.__data__, a, i);
678
681
  return this;
679
682
  }
680
- function Ea(t) {
683
+ function La(t) {
681
684
  return function() {
682
685
  this.removeAttribute(t);
683
686
  };
@@ -703,19 +706,19 @@ function Na(t, e) {
703
706
  n == null ? this.removeAttribute(t) : this.setAttribute(t, n);
704
707
  };
705
708
  }
706
- function Ra(t, e) {
709
+ function Ba(t, e) {
707
710
  return function() {
708
711
  var n = e.apply(this, arguments);
709
712
  n == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, n);
710
713
  };
711
714
  }
712
- function Ba(t, e) {
715
+ function Ra(t, e) {
713
716
  var n = xe(t);
714
717
  if (arguments.length < 2) {
715
718
  var r = this.node();
716
719
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
717
720
  }
718
- return this.each((e == null ? n.local ? Pa : Ea : typeof e == "function" ? n.local ? Ra : Na : n.local ? ka : Oa)(n, e));
721
+ return this.each((e == null ? n.local ? Pa : La : typeof e == "function" ? n.local ? Ba : Na : n.local ? ka : Oa)(n, e));
719
722
  }
720
723
  function cr(t) {
721
724
  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
@@ -752,19 +755,19 @@ function Ua(t, e) {
752
755
  this[t] = e;
753
756
  };
754
757
  }
755
- function za(t, e) {
758
+ function Ha(t, e) {
756
759
  return function() {
757
760
  var n = e.apply(this, arguments);
758
761
  n == null ? delete this[t] : this[t] = n;
759
762
  };
760
763
  }
761
- function Ha(t, e) {
762
- return arguments.length > 1 ? this.each((e == null ? Ya : typeof e == "function" ? za : Ua)(t, e)) : this.node()[t];
764
+ function za(t, e) {
765
+ return arguments.length > 1 ? this.each((e == null ? Ya : typeof e == "function" ? Ha : Ua)(t, e)) : this.node()[t];
763
766
  }
764
767
  function fr(t) {
765
768
  return t.trim().split(/^|\s+/);
766
769
  }
767
- function He(t) {
770
+ function ze(t) {
768
771
  return t.classList || new hr(t);
769
772
  }
770
773
  function hr(t) {
@@ -784,10 +787,10 @@ hr.prototype = {
784
787
  }
785
788
  };
786
789
  function pr(t, e) {
787
- for (var n = He(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
790
+ for (var n = ze(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
788
791
  }
789
792
  function mr(t, e) {
790
- for (var n = He(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
793
+ for (var n = ze(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
791
794
  }
792
795
  function qa(t) {
793
796
  return function() {
@@ -807,7 +810,7 @@ function Wa(t, e) {
807
810
  function Ja(t, e) {
808
811
  var n = fr(t + "");
809
812
  if (arguments.length < 2) {
810
- for (var r = He(this.node()), i = -1, a = n.length; ++i < a; ) if (!r.contains(n[i])) return !1;
813
+ for (var r = ze(this.node()), i = -1, a = n.length; ++i < a; ) if (!r.contains(n[i])) return !1;
811
814
  return !0;
812
815
  }
813
816
  return this.each((typeof e == "function" ? Wa : e ? qa : ja)(n, e));
@@ -868,7 +871,7 @@ function co() {
868
871
  return null;
869
872
  }
870
873
  function fo(t, e) {
871
- var n = typeof t == "function" ? t : ar(t), r = e == null ? co : typeof e == "function" ? e : ze(e);
874
+ var n = typeof t == "function" ? t : ar(t), r = e == null ? co : typeof e == "function" ? e : He(e);
872
875
  return this.select(function() {
873
876
  return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
874
877
  });
@@ -960,23 +963,23 @@ function Ao(t, e) {
960
963
  function So(t, e) {
961
964
  return this.each((typeof e == "function" ? Ao : _o)(t, e));
962
965
  }
963
- function* Co() {
966
+ function* Mo() {
964
967
  for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
965
968
  for (var r = t[e], i = 0, a = r.length, o; i < a; ++i)
966
969
  (o = r[i]) && (yield o);
967
970
  }
968
971
  var gr = [null];
969
- function z(t, e) {
972
+ function H(t, e) {
970
973
  this._groups = t, this._parents = e;
971
974
  }
972
- function zt() {
973
- return new z([[document.documentElement]], gr);
975
+ function Ht() {
976
+ return new H([[document.documentElement]], gr);
974
977
  }
975
- function Mo() {
978
+ function To() {
976
979
  return this;
977
980
  }
978
- z.prototype = zt.prototype = {
979
- constructor: z,
981
+ H.prototype = Ht.prototype = {
982
+ constructor: H,
980
983
  select: Qi,
981
984
  selectAll: ra,
982
985
  selectChild: sa,
@@ -987,18 +990,18 @@ z.prototype = zt.prototype = {
987
990
  exit: xa,
988
991
  join: wa,
989
992
  merge: Da,
990
- selection: Mo,
993
+ selection: To,
991
994
  order: $a,
992
995
  sort: _a,
993
996
  call: Sa,
994
- nodes: Ca,
995
- node: Ma,
996
- size: Ta,
997
- empty: Fa,
998
- each: La,
999
- attr: Ba,
997
+ nodes: Ma,
998
+ node: Ta,
999
+ size: Fa,
1000
+ empty: Ca,
1001
+ each: Ea,
1002
+ attr: Ra,
1000
1003
  style: Xa,
1001
- property: Ha,
1004
+ property: za,
1002
1005
  classed: Ja,
1003
1006
  text: to,
1004
1007
  html: io,
@@ -1011,10 +1014,10 @@ z.prototype = zt.prototype = {
1011
1014
  datum: vo,
1012
1015
  on: $o,
1013
1016
  dispatch: So,
1014
- [Symbol.iterator]: Co
1017
+ [Symbol.iterator]: Mo
1015
1018
  };
1016
1019
  function Wt(t) {
1017
- return typeof t == "string" ? new z([[document.querySelector(t)]], [document.documentElement]) : new z([[t]], gr);
1020
+ return typeof t == "string" ? new H([[document.querySelector(t)]], [document.documentElement]) : new H([[t]], gr);
1018
1021
  }
1019
1022
  function qe(t, e, n) {
1020
1023
  t.prototype = e.prototype = n, n.constructor = t;
@@ -1024,9 +1027,9 @@ function yr(t, e) {
1024
1027
  for (var r in e) n[r] = e[r];
1025
1028
  return n;
1026
1029
  }
1027
- function Ht() {
1030
+ function zt() {
1028
1031
  }
1029
- var It = 0.7, ue = 1 / It, _t = "\\s*([+-]?\\d+)\\s*", Vt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Z = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", To = /^#([0-9a-f]{3,8})$/, Fo = new RegExp(`^rgb\\(${_t},${_t},${_t}\\)$`), Lo = new RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`), Eo = new RegExp(`^rgba\\(${_t},${_t},${_t},${Vt}\\)$`), Po = new RegExp(`^rgba\\(${Z},${Z},${Z},${Vt}\\)$`), Oo = new RegExp(`^hsl\\(${Vt},${Z},${Z}\\)$`), ko = new RegExp(`^hsla\\(${Vt},${Z},${Z},${Vt}\\)$`), yn = {
1032
+ var It = 0.7, ue = 1 / It, _t = "\\s*([+-]?\\d+)\\s*", Vt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Z = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Fo = /^#([0-9a-f]{3,8})$/, Co = new RegExp(`^rgb\\(${_t},${_t},${_t}\\)$`), Eo = new RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`), Lo = new RegExp(`^rgba\\(${_t},${_t},${_t},${Vt}\\)$`), Po = new RegExp(`^rgba\\(${Z},${Z},${Z},${Vt}\\)$`), Oo = new RegExp(`^hsl\\(${Vt},${Z},${Z}\\)$`), ko = new RegExp(`^hsla\\(${Vt},${Z},${Z},${Vt}\\)$`), yn = {
1030
1033
  aliceblue: 15792383,
1031
1034
  antiquewhite: 16444375,
1032
1035
  aqua: 65535,
@@ -1176,7 +1179,7 @@ var It = 0.7, ue = 1 / It, _t = "\\s*([+-]?\\d+)\\s*", Vt = "\\s*([+-]?(?:\\d*\\
1176
1179
  yellow: 16776960,
1177
1180
  yellowgreen: 10145074
1178
1181
  };
1179
- qe(Ht, gt, {
1182
+ qe(zt, gt, {
1180
1183
  copy(t) {
1181
1184
  return Object.assign(new this.constructor(), this, t);
1182
1185
  },
@@ -1187,7 +1190,7 @@ qe(Ht, gt, {
1187
1190
  // Deprecated! Use color.formatHex.
1188
1191
  formatHex: vn,
1189
1192
  formatHex8: No,
1190
- formatHsl: Ro,
1193
+ formatHsl: Bo,
1191
1194
  formatRgb: bn,
1192
1195
  toString: bn
1193
1196
  });
@@ -1197,7 +1200,7 @@ function vn() {
1197
1200
  function No() {
1198
1201
  return this.rgb().formatHex8();
1199
1202
  }
1200
- function Ro() {
1203
+ function Bo() {
1201
1204
  return vr(this).formatHsl();
1202
1205
  }
1203
1206
  function bn() {
@@ -1205,7 +1208,7 @@ function bn() {
1205
1208
  }
1206
1209
  function gt(t) {
1207
1210
  var e, n;
1208
- return t = (t + "").trim().toLowerCase(), (e = To.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? xn(e) : n === 3 ? new Y(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 = Fo.exec(t)) ? new Y(e[1], e[2], e[3], 1) : (e = Lo.exec(t)) ? new Y(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Eo.exec(t)) ? Jt(e[1], e[2], e[3], e[4]) : (e = Po.exec(t)) ? Jt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = Oo.exec(t)) ? $n(e[1], e[2] / 100, e[3] / 100, 1) : (e = ko.exec(t)) ? $n(e[1], e[2] / 100, e[3] / 100, e[4]) : yn.hasOwnProperty(t) ? xn(yn[t]) : t === "transparent" ? new Y(NaN, NaN, NaN, 0) : null;
1211
+ return t = (t + "").trim().toLowerCase(), (e = Fo.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? xn(e) : n === 3 ? new Y(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 = Co.exec(t)) ? new Y(e[1], e[2], e[3], 1) : (e = Eo.exec(t)) ? new Y(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Lo.exec(t)) ? Jt(e[1], e[2], e[3], e[4]) : (e = Po.exec(t)) ? Jt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = Oo.exec(t)) ? $n(e[1], e[2] / 100, e[3] / 100, 1) : (e = ko.exec(t)) ? $n(e[1], e[2] / 100, e[3] / 100, e[4]) : yn.hasOwnProperty(t) ? xn(yn[t]) : t === "transparent" ? new Y(NaN, NaN, NaN, 0) : null;
1209
1212
  }
1210
1213
  function xn(t) {
1211
1214
  return new Y(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
@@ -1213,16 +1216,16 @@ function xn(t) {
1213
1216
  function Jt(t, e, n, r) {
1214
1217
  return r <= 0 && (t = e = n = NaN), new Y(t, e, n, r);
1215
1218
  }
1216
- function Bo(t) {
1217
- return t instanceof Ht || (t = gt(t)), t ? (t = t.rgb(), new Y(t.r, t.g, t.b, t.opacity)) : new Y();
1219
+ function Ro(t) {
1220
+ return t instanceof zt || (t = gt(t)), t ? (t = t.rgb(), new Y(t.r, t.g, t.b, t.opacity)) : new Y();
1218
1221
  }
1219
1222
  function Oe(t, e, n, r) {
1220
- return arguments.length === 1 ? Bo(t) : new Y(t, e, n, r ?? 1);
1223
+ return arguments.length === 1 ? Ro(t) : new Y(t, e, n, r ?? 1);
1221
1224
  }
1222
1225
  function Y(t, e, n, r) {
1223
1226
  this.r = +t, this.g = +e, this.b = +n, this.opacity = +r;
1224
1227
  }
1225
- qe(Y, Oe, yr(Ht, {
1228
+ qe(Y, Oe, yr(zt, {
1226
1229
  brighter(t) {
1227
1230
  return t = t == null ? ue : Math.pow(ue, t), new Y(this.r * t, this.g * t, this.b * t, this.opacity);
1228
1231
  },
@@ -1269,7 +1272,7 @@ function $n(t, e, n, r) {
1269
1272
  }
1270
1273
  function vr(t) {
1271
1274
  if (t instanceof J) return new J(t.h, t.s, t.l, t.opacity);
1272
- if (t instanceof Ht || (t = gt(t)), !t) return new J();
1275
+ if (t instanceof zt || (t = gt(t)), !t) return new J();
1273
1276
  if (t instanceof J) return t;
1274
1277
  t = t.rgb();
1275
1278
  var e = t.r / 255, n = t.g / 255, r = t.b / 255, i = Math.min(e, n, r), a = Math.max(e, n, r), o = NaN, s = a - i, u = (a + i) / 2;
@@ -1281,7 +1284,7 @@ function Vo(t, e, n, r) {
1281
1284
  function J(t, e, n, r) {
1282
1285
  this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
1283
1286
  }
1284
- qe(J, Vo, yr(Ht, {
1287
+ qe(J, Vo, yr(zt, {
1285
1288
  brighter(t) {
1286
1289
  return t = t == null ? ue : Math.pow(ue, t), new J(this.h, this.s, this.l * t, this.opacity);
1287
1290
  },
@@ -1355,10 +1358,10 @@ function Uo(t, e) {
1355
1358
  return r;
1356
1359
  };
1357
1360
  }
1358
- function zo(t) {
1361
+ function Ho(t) {
1359
1362
  return ArrayBuffer.isView(t) && !(t instanceof DataView);
1360
1363
  }
1361
- function Ho(t, e) {
1364
+ function zo(t, e) {
1362
1365
  var n = e ? e.length : 0, r = t ? Math.min(n, t.length) : 0, i = new Array(r), a = new Array(n), o;
1363
1366
  for (o = 0; o < r; ++o) i[o] = We(t[o], e[o]);
1364
1367
  for (; o < n; ++o) a[o] = e[o];
@@ -1388,7 +1391,7 @@ function jo(t, e) {
1388
1391
  return r;
1389
1392
  };
1390
1393
  }
1391
- var ke = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Ce = new RegExp(ke.source, "g");
1394
+ var ke = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Me = new RegExp(ke.source, "g");
1392
1395
  function Wo(t) {
1393
1396
  return function() {
1394
1397
  return t;
@@ -1400,9 +1403,9 @@ function Jo(t) {
1400
1403
  };
1401
1404
  }
1402
1405
  function xr(t, e) {
1403
- var n = ke.lastIndex = Ce.lastIndex = 0, r, i, a, o = -1, s = [], u = [];
1404
- for (t = t + "", e = e + ""; (r = ke.exec(t)) && (i = Ce.exec(e)); )
1405
- (a = i.index) > n && (a = e.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, u.push({ i: o, x: W(r, i) })), n = Ce.lastIndex;
1406
+ var n = ke.lastIndex = Me.lastIndex = 0, r, i, a, o = -1, s = [], u = [];
1407
+ for (t = t + "", e = e + ""; (r = ke.exec(t)) && (i = Me.exec(e)); )
1408
+ (a = i.index) > n && (a = e.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, u.push({ i: o, x: W(r, i) })), n = Me.lastIndex;
1406
1409
  return n < e.length && (a = e.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? u[0] ? Jo(u[0].x) : Wo(e) : (e = u.length, function(l) {
1407
1410
  for (var f = 0, c; f < e; ++f) s[(c = u[f]).i] = c.x(l);
1408
1411
  return s.join("");
@@ -1410,7 +1413,7 @@ function xr(t, e) {
1410
1413
  }
1411
1414
  function We(t, e) {
1412
1415
  var n = typeof e, r;
1413
- return e == null || n === "boolean" ? je(e) : (n === "number" ? W : n === "string" ? (r = gt(e)) ? (e = r, ce) : xr : e instanceof gt ? ce : e instanceof Date ? qo : zo(e) ? Uo : Array.isArray(e) ? Ho : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? jo : W)(t, e);
1416
+ return e == null || n === "boolean" ? je(e) : (n === "number" ? W : n === "string" ? (r = gt(e)) ? (e = r, ce) : xr : e instanceof gt ? ce : e instanceof Date ? qo : Ho(e) ? Uo : Array.isArray(e) ? zo : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? jo : W)(t, e);
1414
1417
  }
1415
1418
  function Ko(t, e) {
1416
1419
  return t = +t, e = +e, function(n) {
@@ -1474,7 +1477,7 @@ function Dr(t, e, n, r) {
1474
1477
  };
1475
1478
  };
1476
1479
  }
1477
- var ts = Dr(Zo, "px, ", "px)", "deg)"), es = Dr(Qo, ", ", ")", ")"), Ct = 0, Nt = 0, kt = 0, $r = 1e3, fe, Rt, he = 0, yt = 0, we = 0, Gt = typeof performance == "object" && performance.now ? performance : Date, _r = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1480
+ var ts = Dr(Zo, "px, ", "px)", "deg)"), es = Dr(Qo, ", ", ")", ")"), Mt = 0, Nt = 0, kt = 0, $r = 1e3, fe, Bt, he = 0, yt = 0, we = 0, Gt = typeof performance == "object" && performance.now ? performance : Date, _r = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1478
1481
  setTimeout(t, 17);
1479
1482
  };
1480
1483
  function Je() {
@@ -1490,10 +1493,10 @@ pe.prototype = Ar.prototype = {
1490
1493
  constructor: pe,
1491
1494
  restart: function(t, e, n) {
1492
1495
  if (typeof t != "function") throw new TypeError("callback is not a function");
1493
- n = (n == null ? Je() : +n) + (e == null ? 0 : +e), !this._next && Rt !== this && (Rt ? Rt._next = this : fe = this, Rt = this), this._call = t, this._time = n, Re();
1496
+ n = (n == null ? Je() : +n) + (e == null ? 0 : +e), !this._next && Bt !== this && (Bt ? Bt._next = this : fe = this, Bt = this), this._call = t, this._time = n, Be();
1494
1497
  },
1495
1498
  stop: function() {
1496
- this._call && (this._call = null, this._time = 1 / 0, Re());
1499
+ this._call && (this._call = null, this._time = 1 / 0, Be());
1497
1500
  }
1498
1501
  };
1499
1502
  function Ar(t, e, n) {
@@ -1501,17 +1504,17 @@ function Ar(t, e, n) {
1501
1504
  return r.restart(t, e, n), r;
1502
1505
  }
1503
1506
  function rs() {
1504
- Je(), ++Ct;
1507
+ Je(), ++Mt;
1505
1508
  for (var t = fe, e; t; )
1506
1509
  (e = yt - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
1507
- --Ct;
1510
+ --Mt;
1508
1511
  }
1509
1512
  function Sn() {
1510
- yt = (he = Gt.now()) + we, Ct = Nt = 0;
1513
+ yt = (he = Gt.now()) + we, Mt = Nt = 0;
1511
1514
  try {
1512
1515
  rs();
1513
1516
  } finally {
1514
- Ct = 0, as(), yt = 0;
1517
+ Mt = 0, as(), yt = 0;
1515
1518
  }
1516
1519
  }
1517
1520
  function is() {
@@ -1521,22 +1524,22 @@ function is() {
1521
1524
  function as() {
1522
1525
  for (var t, e = fe, n, r = 1 / 0; e; )
1523
1526
  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);
1524
- Rt = t, Re(r);
1527
+ Bt = t, Be(r);
1525
1528
  }
1526
- function Re(t) {
1527
- if (!Ct) {
1529
+ function Be(t) {
1530
+ if (!Mt) {
1528
1531
  Nt && (Nt = clearTimeout(Nt));
1529
1532
  var e = t - yt;
1530
- e > 24 ? (t < 1 / 0 && (Nt = setTimeout(Sn, t - Gt.now() - we)), kt && (kt = clearInterval(kt))) : (kt || (he = Gt.now(), kt = setInterval(is, $r)), Ct = 1, _r(Sn));
1533
+ e > 24 ? (t < 1 / 0 && (Nt = setTimeout(Sn, t - Gt.now() - we)), kt && (kt = clearInterval(kt))) : (kt || (he = Gt.now(), kt = setInterval(is, $r)), Mt = 1, _r(Sn));
1531
1534
  }
1532
1535
  }
1533
- function Cn(t, e, n) {
1536
+ function Mn(t, e, n) {
1534
1537
  var r = new pe();
1535
1538
  return e = e == null ? 0 : +e, r.restart((i) => {
1536
1539
  r.stop(), t(i + e);
1537
1540
  }, e, n), r;
1538
1541
  }
1539
- var os = ir("start", "end", "cancel", "interrupt"), ss = [], Sr = 0, Mn = 1, Be = 2, re = 3, Tn = 4, Ie = 5, ie = 6;
1542
+ var os = ir("start", "end", "cancel", "interrupt"), ss = [], Sr = 0, Tn = 1, Re = 2, re = 3, Fn = 4, Ie = 5, ie = 6;
1540
1543
  function De(t, e, n, r, i, a) {
1541
1544
  var o = t.__transition;
1542
1545
  if (!o) t.__transition = {};
@@ -1576,19 +1579,19 @@ function us(t, e, n) {
1576
1579
  var r = t.__transition, i;
1577
1580
  r[e] = n, n.timer = Ar(a, 0, n.time);
1578
1581
  function a(l) {
1579
- n.state = Mn, n.timer.restart(o, n.delay, n.time), n.delay <= l && o(l - n.delay);
1582
+ n.state = Tn, n.timer.restart(o, n.delay, n.time), n.delay <= l && o(l - n.delay);
1580
1583
  }
1581
1584
  function o(l) {
1582
1585
  var f, c, h, p;
1583
- if (n.state !== Mn) return u();
1586
+ if (n.state !== Tn) return u();
1584
1587
  for (f in r)
1585
1588
  if (p = r[f], p.name === n.name) {
1586
- if (p.state === re) return Cn(o);
1587
- p.state === Tn ? (p.state = ie, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete r[f]) : +f < e && (p.state = ie, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete r[f]);
1589
+ if (p.state === re) return Mn(o);
1590
+ p.state === Fn ? (p.state = ie, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete r[f]) : +f < e && (p.state = ie, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete r[f]);
1588
1591
  }
1589
- if (Cn(function() {
1590
- n.state === re && (n.state = Tn, n.timer.restart(s, n.delay, n.time), s(l));
1591
- }), n.state = Be, n.on.call("start", t, t.__data__, n.index, n.group), n.state === Be) {
1592
+ if (Mn(function() {
1593
+ n.state === re && (n.state = Fn, n.timer.restart(s, n.delay, n.time), s(l));
1594
+ }), n.state = Re, n.on.call("start", t, t.__data__, n.index, n.group), n.state === Re) {
1592
1595
  for (n.state = re, i = new Array(h = n.tween.length), f = 0, c = -1; f < h; ++f)
1593
1596
  (p = n.tween[f].value.call(t, t.__data__, n.index, n.group)) && (i[++c] = p);
1594
1597
  i.length = c + 1;
@@ -1614,7 +1617,7 @@ function ls(t, e) {
1614
1617
  a = !1;
1615
1618
  continue;
1616
1619
  }
1617
- i = r.state > Be && r.state < Ie, r.state = ie, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[o];
1620
+ i = r.state > Re && r.state < Ie, r.state = ie, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[o];
1618
1621
  }
1619
1622
  a && delete t.__transition;
1620
1623
  }
@@ -1675,7 +1678,7 @@ function Ze(t, e, n) {
1675
1678
  return K(i, r).value[e];
1676
1679
  };
1677
1680
  }
1678
- function Cr(t, e) {
1681
+ function Mr(t, e) {
1679
1682
  var n;
1680
1683
  return (typeof e == "number" ? W : e instanceof gt ? ce : (n = gt(e)) ? (e = n, ce) : xr)(t, e);
1681
1684
  }
@@ -1718,7 +1721,7 @@ function bs(t, e, n) {
1718
1721
  };
1719
1722
  }
1720
1723
  function xs(t, e) {
1721
- var n = xe(t), r = n === "transform" ? es : Cr;
1724
+ var n = xe(t), r = n === "transform" ? es : Mr;
1722
1725
  return this.attrTween(t, typeof e == "function" ? (n.local ? bs : vs)(n, r, Ze(this, "attr." + t, e)) : e == null ? (n.local ? ds : ms)(n) : (n.local ? ys : gs)(n, r, e));
1723
1726
  }
1724
1727
  function ws(t, e) {
@@ -1760,30 +1763,30 @@ function Ss(t, e) {
1760
1763
  Ke(this, t).delay = +e.apply(this, arguments);
1761
1764
  };
1762
1765
  }
1763
- function Cs(t, e) {
1766
+ function Ms(t, e) {
1764
1767
  return e = +e, function() {
1765
1768
  Ke(this, t).delay = e;
1766
1769
  };
1767
1770
  }
1768
- function Ms(t) {
1771
+ function Ts(t) {
1769
1772
  var e = this._id;
1770
- return arguments.length ? this.each((typeof t == "function" ? Ss : Cs)(e, t)) : K(this.node(), e).delay;
1773
+ return arguments.length ? this.each((typeof t == "function" ? Ss : Ms)(e, t)) : K(this.node(), e).delay;
1771
1774
  }
1772
- function Ts(t, e) {
1775
+ function Fs(t, e) {
1773
1776
  return function() {
1774
1777
  Q(this, t).duration = +e.apply(this, arguments);
1775
1778
  };
1776
1779
  }
1777
- function Fs(t, e) {
1780
+ function Cs(t, e) {
1778
1781
  return e = +e, function() {
1779
1782
  Q(this, t).duration = e;
1780
1783
  };
1781
1784
  }
1782
- function Ls(t) {
1785
+ function Es(t) {
1783
1786
  var e = this._id;
1784
- return arguments.length ? this.each((typeof t == "function" ? Ts : Fs)(e, t)) : K(this.node(), e).duration;
1787
+ return arguments.length ? this.each((typeof t == "function" ? Fs : Cs)(e, t)) : K(this.node(), e).duration;
1785
1788
  }
1786
- function Es(t, e) {
1789
+ function Ls(t, e) {
1787
1790
  if (typeof e != "function") throw new Error();
1788
1791
  return function() {
1789
1792
  Q(this, t).ease = e;
@@ -1791,7 +1794,7 @@ function Es(t, e) {
1791
1794
  }
1792
1795
  function Ps(t) {
1793
1796
  var e = this._id;
1794
- return arguments.length ? this.each(Es(e, t)) : K(this.node(), e).ease;
1797
+ return arguments.length ? this.each(Ls(e, t)) : K(this.node(), e).ease;
1795
1798
  }
1796
1799
  function Os(t, e) {
1797
1800
  return function() {
@@ -1811,7 +1814,7 @@ function Ns(t) {
1811
1814
  (u = a[l]) && t.call(u, u.__data__, l, a) && s.push(u);
1812
1815
  return new rt(r, this._parents, this._name, this._id);
1813
1816
  }
1814
- function Rs(t) {
1817
+ function Bs(t) {
1815
1818
  if (t._id !== this._id) throw new Error();
1816
1819
  for (var e = this._groups, n = t._groups, r = e.length, i = n.length, a = Math.min(r, i), o = new Array(r), s = 0; s < a; ++s)
1817
1820
  for (var u = e[s], l = n[s], f = u.length, c = o[s] = new Array(f), h, p = 0; p < f; ++p)
@@ -1820,14 +1823,14 @@ function Rs(t) {
1820
1823
  o[s] = e[s];
1821
1824
  return new rt(o, this._parents, this._name, this._id);
1822
1825
  }
1823
- function Bs(t) {
1826
+ function Rs(t) {
1824
1827
  return (t + "").trim().split(/^|\s+/).every(function(e) {
1825
1828
  var n = e.indexOf(".");
1826
1829
  return n >= 0 && (e = e.slice(0, n)), !e || e === "start";
1827
1830
  });
1828
1831
  }
1829
1832
  function Is(t, e, n) {
1830
- var r, i, a = Bs(e) ? Ke : Q;
1833
+ var r, i, a = Rs(e) ? Ke : Q;
1831
1834
  return function() {
1832
1835
  var o = a(this, t), s = o.on;
1833
1836
  s !== r && (i = (r = s).copy()).on(e, n), o.on = i;
@@ -1849,7 +1852,7 @@ function Xs() {
1849
1852
  }
1850
1853
  function Ys(t) {
1851
1854
  var e = this._name, n = this._id;
1852
- typeof t != "function" && (t = ze(t));
1855
+ typeof t != "function" && (t = He(t));
1853
1856
  for (var r = this._groups, i = r.length, a = new Array(i), o = 0; o < i; ++o)
1854
1857
  for (var s = r[o], u = s.length, l = a[o] = new Array(u), f, c, h = 0; h < u; ++h)
1855
1858
  (f = s[h]) && (c = t.call(f, f.__data__, h, s)) && ("__data__" in f && (c.__data__ = f.__data__), l[h] = c, De(l[h], e, n, h, l, K(f, n)));
@@ -1867,9 +1870,9 @@ function Us(t) {
1867
1870
  }
1868
1871
  return new rt(a, o, e, n);
1869
1872
  }
1870
- var zs = zt.prototype.constructor;
1871
- function Hs() {
1872
- return new zs(this._groups, this._parents);
1873
+ var Hs = Ht.prototype.constructor;
1874
+ function zs() {
1875
+ return new Hs(this._groups, this._parents);
1873
1876
  }
1874
1877
  function qs(t, e) {
1875
1878
  var n, r, i;
@@ -1878,7 +1881,7 @@ function qs(t, e) {
1878
1881
  return a === o ? null : a === n && o === r ? i : i = e(n = a, r = o);
1879
1882
  };
1880
1883
  }
1881
- function Mr(t) {
1884
+ function Tr(t) {
1882
1885
  return function() {
1883
1886
  this.style.removeProperty(t);
1884
1887
  };
@@ -1900,13 +1903,13 @@ function Ws(t, e, n) {
1900
1903
  function Js(t, e) {
1901
1904
  var n, r, i, a = "style." + e, o = "end." + a, s;
1902
1905
  return function() {
1903
- var u = Q(this, t), l = u.on, f = u.value[a] == null ? s || (s = Mr(e)) : void 0;
1906
+ var u = Q(this, t), l = u.on, f = u.value[a] == null ? s || (s = Tr(e)) : void 0;
1904
1907
  (l !== n || i !== f) && (r = (n = l).copy()).on(o, i = f), u.on = r;
1905
1908
  };
1906
1909
  }
1907
1910
  function Ks(t, e, n) {
1908
- var r = (t += "") == "transform" ? ts : Cr;
1909
- return e == null ? this.styleTween(t, qs(t, r)).on("end.style." + t, Mr(t)) : typeof e == "function" ? this.styleTween(t, Ws(t, r, Ze(this, "style." + t, e))).each(Js(this._id, t)) : this.styleTween(t, js(t, r, e), n).on("end.style." + t, null);
1911
+ var r = (t += "") == "transform" ? ts : Mr;
1912
+ return e == null ? this.styleTween(t, qs(t, r)).on("end.style." + t, Tr(t)) : typeof e == "function" ? this.styleTween(t, Ws(t, r, Ze(this, "style." + t, e))).each(Js(this._id, t)) : this.styleTween(t, js(t, r, e), n).on("end.style." + t, null);
1910
1913
  }
1911
1914
  function Zs(t, e, n) {
1912
1915
  return function(r) {
@@ -1963,7 +1966,7 @@ function ou(t) {
1963
1966
  return this.tween(e, au(t));
1964
1967
  }
1965
1968
  function su() {
1966
- for (var t = this._name, e = this._id, n = Tr(), r = this._groups, i = r.length, a = 0; a < i; ++a)
1969
+ for (var t = this._name, e = this._id, n = Fr(), r = this._groups, i = r.length, a = 0; a < i; ++a)
1967
1970
  for (var o = r[a], s = o.length, u, l = 0; l < s; ++l)
1968
1971
  if (u = o[l]) {
1969
1972
  var f = K(u, e);
@@ -1992,10 +1995,10 @@ var lu = 0;
1992
1995
  function rt(t, e, n, r) {
1993
1996
  this._groups = t, this._parents = e, this._name = n, this._id = r;
1994
1997
  }
1995
- function Tr() {
1998
+ function Fr() {
1996
1999
  return ++lu;
1997
2000
  }
1998
- var nt = zt.prototype;
2001
+ var nt = Ht.prototype;
1999
2002
  rt.prototype = {
2000
2003
  constructor: rt,
2001
2004
  select: Ys,
@@ -2003,8 +2006,8 @@ rt.prototype = {
2003
2006
  selectChild: nt.selectChild,
2004
2007
  selectChildren: nt.selectChildren,
2005
2008
  filter: Ns,
2006
- merge: Rs,
2007
- selection: Hs,
2009
+ merge: Bs,
2010
+ selection: zs,
2008
2011
  transition: su,
2009
2012
  call: nt.call,
2010
2013
  nodes: nt.nodes,
@@ -2021,8 +2024,8 @@ rt.prototype = {
2021
2024
  textTween: ou,
2022
2025
  remove: Xs,
2023
2026
  tween: ps,
2024
- delay: Ms,
2025
- duration: Ls,
2027
+ delay: Ts,
2028
+ duration: Es,
2026
2029
  ease: Ps,
2027
2030
  easeVarying: ks,
2028
2031
  end: uu,
@@ -2046,14 +2049,14 @@ function hu(t, e) {
2046
2049
  }
2047
2050
  function pu(t) {
2048
2051
  var e, n;
2049
- t instanceof rt ? (e = t._id, t = t._name) : (e = Tr(), (n = fu).time = Je(), t = t == null ? null : t + "");
2052
+ t instanceof rt ? (e = t._id, t = t._name) : (e = Fr(), (n = fu).time = Je(), t = t == null ? null : t + "");
2050
2053
  for (var r = this._groups, i = r.length, a = 0; a < i; ++a)
2051
2054
  for (var o = r[a], s = o.length, u, l = 0; l < s; ++l)
2052
2055
  (u = o[l]) && De(u, t, e, l, o, n || hu(u, e));
2053
2056
  return new rt(r, this._parents, t, e);
2054
2057
  }
2055
- zt.prototype.interrupt = cs;
2056
- zt.prototype.transition = pu;
2058
+ Ht.prototype.interrupt = cs;
2059
+ Ht.prototype.transition = pu;
2057
2060
  function mu(t) {
2058
2061
  return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
2059
2062
  }
@@ -2065,7 +2068,7 @@ function me(t, e) {
2065
2068
  +t.slice(n + 1)
2066
2069
  ];
2067
2070
  }
2068
- function Mt(t) {
2071
+ function Tt(t) {
2069
2072
  return t = me(Math.abs(t)), t ? t[1] : NaN;
2070
2073
  }
2071
2074
  function du(t, e) {
@@ -2122,20 +2125,20 @@ function vu(t) {
2122
2125
  }
2123
2126
  return r > 0 ? t.slice(0, r) + t.slice(i + 1) : t;
2124
2127
  }
2125
- var Fr;
2128
+ var Cr;
2126
2129
  function bu(t, e) {
2127
2130
  var n = me(t, e);
2128
2131
  if (!n) return t + "";
2129
- var r = n[0], i = n[1], a = i - (Fr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
2132
+ var r = n[0], i = n[1], a = i - (Cr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
2130
2133
  return a === o ? r : a > o ? r + new Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + new Array(1 - a).join("0") + me(t, Math.max(0, e + a - 1))[0];
2131
2134
  }
2132
- function Fn(t, e) {
2135
+ function Cn(t, e) {
2133
2136
  var n = me(t, e);
2134
2137
  if (!n) return t + "";
2135
2138
  var r = n[0], i = n[1];
2136
2139
  return i < 0 ? "0." + new Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + new Array(i - r.length + 2).join("0");
2137
2140
  }
2138
- const Ln = {
2141
+ const En = {
2139
2142
  "%": (t, e) => (t * 100).toFixed(e),
2140
2143
  b: (t) => Math.round(t).toString(2),
2141
2144
  c: (t) => t + "",
@@ -2144,53 +2147,53 @@ const Ln = {
2144
2147
  f: (t, e) => t.toFixed(e),
2145
2148
  g: (t, e) => t.toPrecision(e),
2146
2149
  o: (t) => Math.round(t).toString(8),
2147
- p: (t, e) => Fn(t * 100, e),
2148
- r: Fn,
2150
+ p: (t, e) => Cn(t * 100, e),
2151
+ r: Cn,
2149
2152
  s: bu,
2150
2153
  X: (t) => Math.round(t).toString(16).toUpperCase(),
2151
2154
  x: (t) => Math.round(t).toString(16)
2152
2155
  };
2153
- function En(t) {
2156
+ function Ln(t) {
2154
2157
  return t;
2155
2158
  }
2156
2159
  var Pn = Array.prototype.map, On = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2157
2160
  function xu(t) {
2158
- var e = t.grouping === void 0 || t.thousands === void 0 ? En : du(Pn.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 ? En : gu(Pn.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 + "";
2161
+ var e = t.grouping === void 0 || t.thousands === void 0 ? Ln : du(Pn.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 ? Ln : gu(Pn.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 + "";
2159
2162
  function l(c) {
2160
2163
  c = de(c);
2161
- var h = c.fill, p = c.align, m = c.sign, d = c.symbol, v = c.zero, D = c.width, A = c.comma, $ = c.precision, T = c.trim, _ = c.type;
2162
- _ === "n" ? (A = !0, _ = "g") : Ln[_] || ($ === void 0 && ($ = 12), T = !0, _ = "g"), (v || h === "0" && p === "=") && (v = !0, h = "0", p = "=");
2163
- var R = d === "$" ? n : d === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : "", I = d === "$" ? r : /[%p]/.test(_) ? o : "", k = Ln[_], b = /[defgprs%]/.test(_);
2164
+ var h = c.fill, p = c.align, m = c.sign, d = c.symbol, v = c.zero, D = c.width, A = c.comma, $ = c.precision, F = c.trim, _ = c.type;
2165
+ _ === "n" ? (A = !0, _ = "g") : En[_] || ($ === void 0 && ($ = 12), F = !0, _ = "g"), (v || h === "0" && p === "=") && (v = !0, h = "0", p = "=");
2166
+ var B = d === "$" ? n : d === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : "", I = d === "$" ? r : /[%p]/.test(_) ? o : "", k = En[_], b = /[defgprs%]/.test(_);
2164
2167
  $ = $ === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, $)) : Math.max(0, Math.min(20, $));
2165
2168
  function w(g) {
2166
- var S = R, M = I, B, it, lt;
2169
+ var S = B, T = I, R, it, lt;
2167
2170
  if (_ === "c")
2168
- M = k(g) + M, g = "";
2171
+ T = k(g) + T, g = "";
2169
2172
  else {
2170
2173
  g = +g;
2171
2174
  var j = g < 0 || 1 / g < 0;
2172
- if (g = isNaN(g) ? u : k(Math.abs(g), $), T && (g = vu(g)), j && +g == 0 && m !== "+" && (j = !1), S = (j ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + S, M = (_ === "s" ? On[8 + Fr / 3] : "") + M + (j && m === "(" ? ")" : ""), b) {
2173
- for (B = -1, it = g.length; ++B < it; )
2174
- if (lt = g.charCodeAt(B), 48 > lt || lt > 57) {
2175
- M = (lt === 46 ? i + g.slice(B + 1) : g.slice(B)) + M, g = g.slice(0, B);
2175
+ if (g = isNaN(g) ? u : k(Math.abs(g), $), F && (g = vu(g)), j && +g == 0 && m !== "+" && (j = !1), S = (j ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + S, T = (_ === "s" ? On[8 + Cr / 3] : "") + T + (j && m === "(" ? ")" : ""), b) {
2176
+ for (R = -1, it = g.length; ++R < it; )
2177
+ if (lt = g.charCodeAt(R), 48 > lt || lt > 57) {
2178
+ T = (lt === 46 ? i + g.slice(R + 1) : g.slice(R)) + T, g = g.slice(0, R);
2176
2179
  break;
2177
2180
  }
2178
2181
  }
2179
2182
  }
2180
2183
  A && !v && (g = e(g, 1 / 0));
2181
- var jt = S.length + g.length + M.length, et = jt < D ? new Array(D - jt + 1).join(h) : "";
2182
- switch (A && v && (g = e(et + g, et.length ? D - M.length : 1 / 0), et = ""), p) {
2184
+ var jt = S.length + g.length + T.length, et = jt < D ? new Array(D - jt + 1).join(h) : "";
2185
+ switch (A && v && (g = e(et + g, et.length ? D - T.length : 1 / 0), et = ""), p) {
2183
2186
  case "<":
2184
- g = S + g + M + et;
2187
+ g = S + g + T + et;
2185
2188
  break;
2186
2189
  case "=":
2187
- g = S + et + g + M;
2190
+ g = S + et + g + T;
2188
2191
  break;
2189
2192
  case "^":
2190
- g = et.slice(0, jt = et.length >> 1) + S + g + M + et.slice(jt);
2193
+ g = et.slice(0, jt = et.length >> 1) + S + g + T + et.slice(jt);
2191
2194
  break;
2192
2195
  default:
2193
- g = et + S + g + M;
2196
+ g = et + S + g + T;
2194
2197
  break;
2195
2198
  }
2196
2199
  return a(g);
@@ -2200,7 +2203,7 @@ function xu(t) {
2200
2203
  }, w;
2201
2204
  }
2202
2205
  function f(c, h) {
2203
- var p = l((c = de(c), c.type = "f", c)), m = Math.max(-8, Math.min(8, Math.floor(Mt(h) / 3))) * 3, d = Math.pow(10, -m), v = On[8 + m / 3];
2206
+ var p = l((c = de(c), c.type = "f", c)), m = Math.max(-8, Math.min(8, Math.floor(Tt(h) / 3))) * 3, d = Math.pow(10, -m), v = On[8 + m / 3];
2204
2207
  return function(D) {
2205
2208
  return p(d * D) + v;
2206
2209
  };
@@ -2210,23 +2213,23 @@ function xu(t) {
2210
2213
  formatPrefix: f
2211
2214
  };
2212
2215
  }
2213
- var Qt, tn, Lr;
2216
+ var Qt, tn, Er;
2214
2217
  wu({
2215
2218
  thousands: ",",
2216
2219
  grouping: [3],
2217
2220
  currency: ["$", ""]
2218
2221
  });
2219
2222
  function wu(t) {
2220
- return Qt = xu(t), tn = Qt.format, Lr = Qt.formatPrefix, Qt;
2223
+ return Qt = xu(t), tn = Qt.format, Er = Qt.formatPrefix, Qt;
2221
2224
  }
2222
2225
  function Du(t) {
2223
- return Math.max(0, -Mt(Math.abs(t)));
2226
+ return Math.max(0, -Tt(Math.abs(t)));
2224
2227
  }
2225
2228
  function $u(t, e) {
2226
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Mt(e) / 3))) * 3 - Mt(Math.abs(t)));
2229
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Tt(e) / 3))) * 3 - Tt(Math.abs(t)));
2227
2230
  }
2228
2231
  function _u(t, e) {
2229
- return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Mt(e) - Mt(t)) + 1;
2232
+ return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Tt(e) - Tt(t)) + 1;
2230
2233
  }
2231
2234
  function $e(t, e) {
2232
2235
  switch (arguments.length) {
@@ -2242,7 +2245,7 @@ function $e(t, e) {
2242
2245
  return this;
2243
2246
  }
2244
2247
  const kn = Symbol("implicit");
2245
- function Er() {
2248
+ function Lr() {
2246
2249
  var t = new pn(), e = [], n = [], r = kn;
2247
2250
  function i(a) {
2248
2251
  let o = t.get(a);
@@ -2263,16 +2266,16 @@ function Er() {
2263
2266
  }, i.unknown = function(a) {
2264
2267
  return arguments.length ? (r = a, i) : r;
2265
2268
  }, i.copy = function() {
2266
- return Er(e, n).unknown(r);
2269
+ return Lr(e, n).unknown(r);
2267
2270
  }, $e.apply(i, arguments), i;
2268
2271
  }
2269
2272
  function Pr() {
2270
- var t = Er().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, a, o, s = !1, u = 0, l = 0, f = 0.5;
2273
+ var t = Lr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, a, o, s = !1, u = 0, l = 0, f = 0.5;
2271
2274
  delete t.unknown;
2272
2275
  function c() {
2273
2276
  var h = e().length, p = i < r, m = p ? i : r, d = p ? r : i;
2274
2277
  a = (d - m) / Math.max(1, h - u + l * 2), s && (a = Math.floor(a)), m += (d - m - a * (h - u)) * f, o = a * (1 - u), s && (m = Math.round(m), o = Math.round(o));
2275
- var v = Hi(h).map(function(D) {
2278
+ var v = zi(h).map(function(D) {
2276
2279
  return m + a * D;
2277
2280
  });
2278
2281
  return n(p ? v.reverse() : v);
@@ -2315,7 +2318,7 @@ function Su(t) {
2315
2318
  return t;
2316
2319
  };
2317
2320
  }
2318
- function Cu(t) {
2321
+ function Mu(t) {
2319
2322
  return +t;
2320
2323
  }
2321
2324
  var Nn = [0, 1];
@@ -2327,19 +2330,19 @@ function Ve(t, e) {
2327
2330
  return (n - t) / e;
2328
2331
  } : Su(isNaN(e) ? NaN : 0.5);
2329
2332
  }
2330
- function Mu(t, e) {
2333
+ function Tu(t, e) {
2331
2334
  var n;
2332
2335
  return t > e && (n = t, t = e, e = n), function(r) {
2333
2336
  return Math.max(t, Math.min(e, r));
2334
2337
  };
2335
2338
  }
2336
- function Tu(t, e, n) {
2339
+ function Fu(t, e, n) {
2337
2340
  var r = t[0], i = t[1], a = e[0], o = e[1];
2338
2341
  return i < r ? (r = Ve(i, r), a = n(o, a)) : (r = Ve(r, i), a = n(a, o)), function(s) {
2339
2342
  return a(r(s));
2340
2343
  };
2341
2344
  }
2342
- function Fu(t, e, n) {
2345
+ function Cu(t, e, n) {
2343
2346
  var r = Math.min(t.length, e.length) - 1, i = new Array(r), a = new Array(r), o = -1;
2344
2347
  for (t[r] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++o < r; )
2345
2348
  i[o] = Ve(t[o], t[o + 1]), a[o] = n(e[o], e[o + 1]);
@@ -2348,14 +2351,14 @@ function Fu(t, e, n) {
2348
2351
  return a[u](i[u](s));
2349
2352
  };
2350
2353
  }
2351
- function Lu(t, e) {
2354
+ function Eu(t, e) {
2352
2355
  return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
2353
2356
  }
2354
- function Eu() {
2357
+ function Lu() {
2355
2358
  var t = Nn, e = Nn, n = We, r, i, a, o = Dt, s, u, l;
2356
2359
  function f() {
2357
2360
  var h = Math.min(t.length, e.length);
2358
- return o !== Dt && (o = Mu(t[0], t[h - 1])), s = h > 2 ? Fu : Tu, u = l = null, c;
2361
+ return o !== Dt && (o = Tu(t[0], t[h - 1])), s = h > 2 ? Cu : Fu, u = l = null, c;
2359
2362
  }
2360
2363
  function c(h) {
2361
2364
  return h == null || isNaN(h = +h) ? a : (u || (u = s(t.map(r), e, n)))(r(o(h)));
@@ -2363,7 +2366,7 @@ function Eu() {
2363
2366
  return c.invert = function(h) {
2364
2367
  return o(i((l || (l = s(e, t.map(r), W)))(h)));
2365
2368
  }, c.domain = function(h) {
2366
- return arguments.length ? (t = Array.from(h, Cu), f()) : t.slice();
2369
+ return arguments.length ? (t = Array.from(h, Mu), f()) : t.slice();
2367
2370
  }, c.range = function(h) {
2368
2371
  return arguments.length ? (e = Array.from(h), f()) : e.slice();
2369
2372
  }, c.rangeRound = function(h) {
@@ -2379,14 +2382,14 @@ function Eu() {
2379
2382
  };
2380
2383
  }
2381
2384
  function Pu() {
2382
- return Eu()(Dt, Dt);
2385
+ return Lu()(Dt, Dt);
2383
2386
  }
2384
2387
  function Ou(t, e, n, r) {
2385
- var i = zi(t, e, n), a;
2388
+ var i = Hi(t, e, n), a;
2386
2389
  switch (r = de(r ?? ",f"), r.type) {
2387
2390
  case "s": {
2388
2391
  var o = Math.max(Math.abs(t), Math.abs(e));
2389
- return r.precision == null && !isNaN(a = $u(i, o)) && (r.precision = a), Lr(r, o);
2392
+ return r.precision == null && !isNaN(a = $u(i, o)) && (r.precision = a), Er(r, o);
2390
2393
  }
2391
2394
  case "":
2392
2395
  case "e":
@@ -2416,7 +2419,7 @@ function kr(t) {
2416
2419
  n == null && (n = 10);
2417
2420
  var r = e(), i = 0, a = r.length - 1, o = r[i], s = r[a], u, l, f = 10;
2418
2421
  for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); f-- > 0; ) {
2419
- if (l = Ee(o, s, n), l === u)
2422
+ if (l = Le(o, s, n), l === u)
2420
2423
  return r[i] = o, r[a] = s, e(r);
2421
2424
  if (l > 0)
2422
2425
  o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
@@ -2432,7 +2435,7 @@ function kr(t) {
2432
2435
  function Xt() {
2433
2436
  var t = Pu();
2434
2437
  return t.copy = function() {
2435
- return Lu(t, Xt());
2438
+ return Eu(t, Xt());
2436
2439
  }, $e.apply(t, arguments), kr(t);
2437
2440
  }
2438
2441
  function Nr() {
@@ -2460,16 +2463,16 @@ function Nr() {
2460
2463
  return Nr().domain([t, e]).range(i).unknown(a);
2461
2464
  }, $e.apply(kr(o), arguments);
2462
2465
  }
2463
- function Bt(t, e, n) {
2466
+ function Rt(t, e, n) {
2464
2467
  this.k = t, this.x = e, this.y = n;
2465
2468
  }
2466
- Bt.prototype = {
2467
- constructor: Bt,
2469
+ Rt.prototype = {
2470
+ constructor: Rt,
2468
2471
  scale: function(t) {
2469
- return t === 1 ? this : new Bt(this.k * t, this.x, this.y);
2472
+ return t === 1 ? this : new Rt(this.k * t, this.x, this.y);
2470
2473
  },
2471
2474
  translate: function(t, e) {
2472
- return t === 0 & e === 0 ? this : new Bt(this.k, this.x + this.k * t, this.y + this.k * e);
2475
+ return t === 0 & e === 0 ? this : new Rt(this.k, this.x + this.k * t, this.y + this.k * e);
2473
2476
  },
2474
2477
  apply: function(t) {
2475
2478
  return [t[0] * this.k + this.x, t[1] * this.k + this.y];
@@ -2499,7 +2502,7 @@ Bt.prototype = {
2499
2502
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2500
2503
  }
2501
2504
  };
2502
- Bt.prototype;
2505
+ Rt.prototype;
2503
2506
  function tf(t, e) {
2504
2507
  return e instanceof Function ? e(t) : tn(e)(t);
2505
2508
  }
@@ -2510,13 +2513,13 @@ function _e(t, e, n, r) {
2510
2513
  function en(t, e) {
2511
2514
  return `${t}_series${e}`;
2512
2515
  }
2513
- function Rr(t, e) {
2516
+ function Br(t, e) {
2514
2517
  return `${t}_group${e}`;
2515
2518
  }
2516
2519
  function nn() {
2517
2520
  return "";
2518
2521
  }
2519
- function Br({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid" }) {
2522
+ function Rr({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid" }) {
2520
2523
  const r = e.seriesDirection === "row" ? e.rowLabels : e.columnLabels;
2521
2524
  return t.map((i, a) => r[a] != null ? r[a] : en(n, a));
2522
2525
  }
@@ -2528,13 +2531,13 @@ function Nu({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid"
2528
2531
  if (t[0] == null)
2529
2532
  return [];
2530
2533
  const r = e.seriesDirection === "row" ? e.columnLabels : e.rowLabels;
2531
- return t[0].map((i, a) => r[a] != null ? r[a] : Rr(n, a));
2534
+ return t[0].map((i, a) => r[a] != null ? r[a] : Br(n, a));
2532
2535
  }
2533
- function Ru({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "multiGrid", gridIndex: r = 0 }) {
2536
+ function Bu({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "multiGrid", gridIndex: r = 0 }) {
2534
2537
  if (t[0] == null)
2535
2538
  return [];
2536
2539
  const i = e.seriesDirection === "row" ? e.columnLabels : e.rowLabels;
2537
- return t[0].map((a, o) => i[o] != null ? i[o] : Rr(`${n}_grid${r}`, o));
2540
+ return t[0].map((a, o) => i[o] != null ? i[o] : Br(`${n}_grid${r}`, o));
2538
2541
  }
2539
2542
  function vt(t) {
2540
2543
  const e = [0, 0];
@@ -2543,7 +2546,7 @@ function vt(t) {
2543
2546
  i > r[1] ? i : r[1]
2544
2547
  ], [t[0], t[0]]) : e;
2545
2548
  }
2546
- function Bu(t) {
2549
+ function Ru(t) {
2547
2550
  const e = t.filter((n) => n != null && n.value != null).map((n) => n.value);
2548
2551
  return vt(e);
2549
2552
  }
@@ -2594,7 +2597,7 @@ function Vr(t) {
2594
2597
  n++;
2595
2598
  return { rowAmount: e, columnAmount: n };
2596
2599
  }
2597
- function Rn(t, e, n) {
2600
+ function Bn(t, e, n) {
2598
2601
  const { gap: r } = e, { rowAmount: i, columnAmount: a } = e.rowAmount * e.columnAmount >= n ? e : Vr(n);
2599
2602
  return new Array(n).fill(null).map((o, s) => {
2600
2603
  const u = s % a, l = Math.floor(s / a), f = (t.width - r * (a - 1)) / a, c = (t.height - r * (i - 1)) / i, h = u * f + u * r, p = l * c + l * r;
@@ -2670,7 +2673,7 @@ const Vu = (t) => {
2670
2673
  throw Error(a);
2671
2674
  }
2672
2675
  return i;
2673
- }, Gu = (t) => F({ data: t }, {
2676
+ }, Gu = (t) => C({ data: t }, {
2674
2677
  data: {
2675
2678
  toBe: "(DataSeriesDatum | DataSeriesValue)[][] | (DataSeriesDatum | DataSeriesValue)[]",
2676
2679
  // 畢免資料量過大檢查不完,不深度檢查
@@ -2780,7 +2783,7 @@ function Gr(t, e) {
2780
2783
  return { value: l[0] ? l[1] : void 0, done: !0 };
2781
2784
  }
2782
2785
  }
2783
- function Tt(t) {
2786
+ function Ft(t) {
2784
2787
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
2785
2788
  if (n) return n.call(t);
2786
2789
  if (t && typeof t.length == "number") return {
@@ -2856,7 +2859,7 @@ function Yu(t, e, n) {
2856
2859
  function Uu(t) {
2857
2860
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2858
2861
  var e = t[Symbol.asyncIterator], n;
2859
- return e ? e.call(t) : (t = typeof Tt == "function" ? Tt(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
2862
+ return e ? e.call(t) : (t = typeof Ft == "function" ? Ft(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
2860
2863
  return this;
2861
2864
  }, n);
2862
2865
  function r(a) {
@@ -2881,7 +2884,7 @@ function rn(t) {
2881
2884
  }, n = t(e);
2882
2885
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
2883
2886
  }
2884
- var Me = rn(function(t) {
2887
+ var Te = rn(function(t) {
2885
2888
  return function(n) {
2886
2889
  t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
2887
2890
  ` + n.map(function(r, i) {
@@ -2908,7 +2911,7 @@ var qt = function() {
2908
2911
  if (o)
2909
2912
  if (this._parentage = null, Array.isArray(o))
2910
2913
  try {
2911
- for (var s = Tt(o), u = s.next(); !u.done; u = s.next()) {
2914
+ for (var s = Ft(o), u = s.next(); !u.done; u = s.next()) {
2912
2915
  var l = u.value;
2913
2916
  l.remove(this);
2914
2917
  }
@@ -2928,18 +2931,18 @@ var qt = function() {
2928
2931
  try {
2929
2932
  f();
2930
2933
  } catch (d) {
2931
- a = d instanceof Me ? d.errors : [d];
2934
+ a = d instanceof Te ? d.errors : [d];
2932
2935
  }
2933
2936
  var c = this._finalizers;
2934
2937
  if (c) {
2935
2938
  this._finalizers = null;
2936
2939
  try {
2937
- for (var h = Tt(c), p = h.next(); !p.done; p = h.next()) {
2940
+ for (var h = Ft(c), p = h.next(); !p.done; p = h.next()) {
2938
2941
  var m = p.value;
2939
2942
  try {
2940
- Bn(m);
2943
+ Rn(m);
2941
2944
  } catch (d) {
2942
- a = a ?? [], d instanceof Me ? a = st(st([], ot(a)), ot(d.errors)) : a.push(d);
2945
+ a = a ?? [], d instanceof Te ? a = st(st([], ot(a)), ot(d.errors)) : a.push(d);
2943
2946
  }
2944
2947
  }
2945
2948
  } catch (d) {
@@ -2953,13 +2956,13 @@ var qt = function() {
2953
2956
  }
2954
2957
  }
2955
2958
  if (a)
2956
- throw new Me(a);
2959
+ throw new Te(a);
2957
2960
  }
2958
2961
  }, t.prototype.add = function(e) {
2959
2962
  var n;
2960
2963
  if (e && e !== this)
2961
2964
  if (this.closed)
2962
- Bn(e);
2965
+ Rn(e);
2963
2966
  else {
2964
2967
  if (e instanceof t) {
2965
2968
  if (e.closed || e._hasParent(this))
@@ -2988,7 +2991,7 @@ var qt = function() {
2988
2991
  function Yr(t) {
2989
2992
  return t instanceof qt || t && "closed" in t && N(t.remove) && N(t.add) && N(t.unsubscribe);
2990
2993
  }
2991
- function Bn(t) {
2994
+ function Rn(t) {
2992
2995
  N(t) ? t() : t.unsubscribe();
2993
2996
  }
2994
2997
  var Ur = {
@@ -2997,20 +3000,20 @@ var Ur = {
2997
3000
  Promise: void 0,
2998
3001
  useDeprecatedSynchronousErrorHandling: !1,
2999
3002
  useDeprecatedNextContext: !1
3000
- }, zr = {
3003
+ }, Hr = {
3001
3004
  setTimeout: function(t, e) {
3002
3005
  for (var n = [], r = 2; r < arguments.length; r++)
3003
3006
  n[r - 2] = arguments[r];
3004
3007
  return setTimeout.apply(void 0, st([t, e], ot(n)));
3005
3008
  },
3006
3009
  clearTimeout: function(t) {
3007
- var e = zr.delegate;
3010
+ var e = Hr.delegate;
3008
3011
  return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(t);
3009
3012
  },
3010
3013
  delegate: void 0
3011
3014
  };
3012
- function Hr(t) {
3013
- zr.setTimeout(function() {
3015
+ function zr(t) {
3016
+ Hr.setTimeout(function() {
3014
3017
  throw t;
3015
3018
  });
3016
3019
  }
@@ -3050,11 +3053,11 @@ var an = function(t) {
3050
3053
  this.unsubscribe();
3051
3054
  }
3052
3055
  }, e;
3053
- }(qt), zu = Function.prototype.bind;
3054
- function Te(t, e) {
3055
- return zu.call(t, e);
3056
+ }(qt), Hu = Function.prototype.bind;
3057
+ function Fe(t, e) {
3058
+ return Hu.call(t, e);
3056
3059
  }
3057
- var Hu = function() {
3060
+ var zu = function() {
3058
3061
  function t(e) {
3059
3062
  this.partialObserver = e;
3060
3063
  }
@@ -3100,17 +3103,17 @@ var Hu = function() {
3100
3103
  a && Ur.useDeprecatedNextContext ? (s = Object.create(n), s.unsubscribe = function() {
3101
3104
  return a.unsubscribe();
3102
3105
  }, o = {
3103
- next: n.next && Te(n.next, s),
3104
- error: n.error && Te(n.error, s),
3105
- complete: n.complete && Te(n.complete, s)
3106
+ next: n.next && Fe(n.next, s),
3107
+ error: n.error && Fe(n.error, s),
3108
+ complete: n.complete && Fe(n.complete, s)
3106
3109
  }) : o = n;
3107
3110
  }
3108
- return a.destination = new Hu(o), a;
3111
+ return a.destination = new zu(o), a;
3109
3112
  }
3110
3113
  return e;
3111
3114
  }(an);
3112
3115
  function te(t) {
3113
- Hr(t);
3116
+ zr(t);
3114
3117
  }
3115
3118
  function qu(t) {
3116
3119
  throw t;
@@ -3123,11 +3126,11 @@ var ju = {
3123
3126
  }, on = function() {
3124
3127
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
3125
3128
  }();
3126
- function Ft(t) {
3129
+ function Ct(t) {
3127
3130
  return t;
3128
3131
  }
3129
3132
  function Wu(t) {
3130
- return t.length === 0 ? Ft : t.length === 1 ? t[0] : function(n) {
3133
+ return t.length === 0 ? Ct : t.length === 1 ? t[0] : function(n) {
3131
3134
  return t.reduce(function(r, i) {
3132
3135
  return i(r);
3133
3136
  }, n);
@@ -3280,7 +3283,7 @@ var Qu = function(t) {
3280
3283
  if (r._throwIfClosed(), !r.isStopped) {
3281
3284
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
3282
3285
  try {
3283
- for (var o = Tt(r.currentObservers), s = o.next(); !s.done; s = o.next()) {
3286
+ for (var o = Ft(r.currentObservers), s = o.next(); !s.done; s = o.next()) {
3284
3287
  var u = s.value;
3285
3288
  u.next(n);
3286
3289
  }
@@ -3515,7 +3518,7 @@ function ln(t) {
3515
3518
  function ol(t) {
3516
3519
  return N(ln(t)) ? t.pop() : void 0;
3517
3520
  }
3518
- function Lt(t) {
3521
+ function Et(t) {
3519
3522
  return jr(ln(t)) ? t.pop() : void 0;
3520
3523
  }
3521
3524
  function Wr(t, e) {
@@ -3577,7 +3580,7 @@ function ri(t) {
3577
3580
  function ii(t) {
3578
3581
  return N(t == null ? void 0 : t.getReader);
3579
3582
  }
3580
- function H(t) {
3583
+ function z(t) {
3581
3584
  if (t instanceof O)
3582
3585
  return t;
3583
3586
  if (t != null) {
@@ -3617,14 +3620,14 @@ function cl(t) {
3617
3620
  e.closed || (e.next(n), e.complete());
3618
3621
  }, function(n) {
3619
3622
  return e.error(n);
3620
- }).then(null, Hr);
3623
+ }).then(null, zr);
3621
3624
  });
3622
3625
  }
3623
3626
  function fl(t) {
3624
3627
  return new O(function(e) {
3625
3628
  var n, r;
3626
3629
  try {
3627
- for (var i = Tt(t), a = i.next(); !a.done; a = i.next()) {
3630
+ for (var i = Ft(t), a = i.next(); !a.done; a = i.next()) {
3628
3631
  var o = a.value;
3629
3632
  if (e.next(o), e.closed)
3630
3633
  return;
@@ -3722,10 +3725,10 @@ function si(t, e) {
3722
3725
  });
3723
3726
  }
3724
3727
  function ml(t, e) {
3725
- return H(t).pipe(si(e), oi(e));
3728
+ return z(t).pipe(si(e), oi(e));
3726
3729
  }
3727
3730
  function dl(t, e) {
3728
- return H(t).pipe(si(e), oi(e));
3731
+ return z(t).pipe(si(e), oi(e));
3729
3732
  }
3730
3733
  function gl(t, e) {
3731
3734
  return new O(function(n) {
@@ -3788,14 +3791,14 @@ function bl(t, e) {
3788
3791
  }
3789
3792
  throw ti(t);
3790
3793
  }
3791
- function Et(t, e) {
3792
- return e ? bl(t, e) : H(t);
3794
+ function Lt(t, e) {
3795
+ return e ? bl(t, e) : z(t);
3793
3796
  }
3794
3797
  function pt() {
3795
3798
  for (var t = [], e = 0; e < arguments.length; e++)
3796
3799
  t[e] = arguments[e];
3797
- var n = Lt(t);
3798
- return Et(t, n);
3800
+ var n = Et(t);
3801
+ return Lt(t, n);
3799
3802
  }
3800
3803
  var li = rn(function(t) {
3801
3804
  return function() {
@@ -3822,14 +3825,14 @@ function $l(t) {
3822
3825
  return Dl(t, e);
3823
3826
  });
3824
3827
  }
3825
- var _l = Array.isArray, Al = Object.getPrototypeOf, Sl = Object.prototype, Cl = Object.keys;
3826
- function Ml(t) {
3828
+ var _l = Array.isArray, Al = Object.getPrototypeOf, Sl = Object.prototype, Ml = Object.keys;
3829
+ function Tl(t) {
3827
3830
  if (t.length === 1) {
3828
3831
  var e = t[0];
3829
3832
  if (_l(e))
3830
3833
  return { args: e, keys: null };
3831
- if (Tl(e)) {
3832
- var n = Cl(e);
3834
+ if (Fl(e)) {
3835
+ var n = Ml(e);
3833
3836
  return {
3834
3837
  args: n.map(function(r) {
3835
3838
  return e[r];
@@ -3840,31 +3843,31 @@ function Ml(t) {
3840
3843
  }
3841
3844
  return { args: t, keys: null };
3842
3845
  }
3843
- function Tl(t) {
3846
+ function Fl(t) {
3844
3847
  return t && typeof t == "object" && Al(t) === Sl;
3845
3848
  }
3846
- function Fl(t, e) {
3849
+ function Cl(t, e) {
3847
3850
  return t.reduce(function(n, r, i) {
3848
3851
  return n[r] = e[i], n;
3849
3852
  }, {});
3850
3853
  }
3851
- function E() {
3854
+ function L() {
3852
3855
  for (var t = [], e = 0; e < arguments.length; e++)
3853
3856
  t[e] = arguments[e];
3854
- var n = Lt(t), r = ol(t), i = Ml(t), a = i.args, o = i.keys;
3857
+ var n = Et(t), r = ol(t), i = Tl(t), a = i.args, o = i.keys;
3855
3858
  if (a.length === 0)
3856
- return Et([], n);
3857
- var s = new O(Ll(a, n, o ? function(u) {
3858
- return Fl(o, u);
3859
- } : Ft));
3859
+ return Lt([], n);
3860
+ var s = new O(El(a, n, o ? function(u) {
3861
+ return Cl(o, u);
3862
+ } : Ct));
3860
3863
  return r ? s.pipe($l(r)) : s;
3861
3864
  }
3862
- function Ll(t, e, n) {
3863
- return n === void 0 && (n = Ft), function(r) {
3865
+ function El(t, e, n) {
3866
+ return n === void 0 && (n = Ct), function(r) {
3864
3867
  Yn(e, function() {
3865
3868
  for (var i = t.length, a = new Array(i), o = i, s = i, u = function(f) {
3866
3869
  Yn(e, function() {
3867
- var c = Et(t[f], e), h = !1;
3870
+ var c = Lt(t[f], e), h = !1;
3868
3871
  c.subscribe(V(r, function(p) {
3869
3872
  a[f] = p, h || (h = !0, s--), s || r.next(n(a.slice()));
3870
3873
  }, function() {
@@ -3879,7 +3882,7 @@ function Ll(t, e, n) {
3879
3882
  function Yn(t, e, n) {
3880
3883
  t ? at(n, t, e) : e();
3881
3884
  }
3882
- function El(t, e, n, r, i, a, o, s) {
3885
+ function Ll(t, e, n, r, i, a, o, s) {
3883
3886
  var u = [], l = 0, f = 0, c = !1, h = function() {
3884
3887
  c && !u.length && !l && e.complete();
3885
3888
  }, p = function(d) {
@@ -3887,7 +3890,7 @@ function El(t, e, n, r, i, a, o, s) {
3887
3890
  }, m = function(d) {
3888
3891
  l++;
3889
3892
  var v = !1;
3890
- H(n(d, f++)).subscribe(V(e, function(D) {
3893
+ z(n(d, f++)).subscribe(V(e, function(D) {
3891
3894
  e.next(D);
3892
3895
  }, function() {
3893
3896
  v = !0;
@@ -3915,13 +3918,13 @@ function ci(t, e, n) {
3915
3918
  return n === void 0 && (n = 1 / 0), N(e) ? ci(function(r, i) {
3916
3919
  return x(function(a, o) {
3917
3920
  return e(r, a, i, o);
3918
- })(H(t(r, i)));
3921
+ })(z(t(r, i)));
3919
3922
  }, n) : (typeof e == "number" && (n = e), G(function(r, i) {
3920
- return El(r, i, t, n);
3923
+ return Ll(r, i, t, n);
3921
3924
  }));
3922
3925
  }
3923
3926
  function cn(t) {
3924
- return t === void 0 && (t = 1 / 0), ci(Ft, t);
3927
+ return t === void 0 && (t = 1 / 0), ci(Ct, t);
3925
3928
  }
3926
3929
  function Pl() {
3927
3930
  return cn(1);
@@ -3929,11 +3932,11 @@ function Pl() {
3929
3932
  function Un() {
3930
3933
  for (var t = [], e = 0; e < arguments.length; e++)
3931
3934
  t[e] = arguments[e];
3932
- return Pl()(Et(t, Lt(t)));
3935
+ return Pl()(Lt(t, Et(t)));
3933
3936
  }
3934
3937
  function Ol(t) {
3935
3938
  return new O(function(e) {
3936
- H(t()).subscribe(e);
3939
+ z(t()).subscribe(e);
3937
3940
  });
3938
3941
  }
3939
3942
  function fi(t, e, n) {
@@ -3956,14 +3959,14 @@ function kl(t, e, n) {
3956
3959
  function Nl() {
3957
3960
  for (var t = [], e = 0; e < arguments.length; e++)
3958
3961
  t[e] = arguments[e];
3959
- var n = Lt(t), r = Wr(t, 1 / 0), i = t;
3960
- return i.length ? i.length === 1 ? H(i[0]) : cn(r)(Et(i, n)) : qr;
3962
+ var n = Et(t), r = Wr(t, 1 / 0), i = t;
3963
+ return i.length ? i.length === 1 ? z(i[0]) : cn(r)(Lt(i, n)) : qr;
3961
3964
  }
3962
- var Rl = Array.isArray;
3963
- function Bl(t) {
3964
- return t.length === 1 && Rl(t[0]) ? t[0] : t;
3965
+ var Bl = Array.isArray;
3966
+ function Rl(t) {
3967
+ return t.length === 1 && Bl(t[0]) ? t[0] : t;
3965
3968
  }
3966
- function zn(t, e) {
3969
+ function Hn(t, e) {
3967
3970
  return G(function(n, r) {
3968
3971
  var i = 0;
3969
3972
  n.subscribe(V(r, function(a) {
@@ -4018,7 +4021,7 @@ function Gl(t) {
4018
4021
  });
4019
4022
  }
4020
4023
  function q(t, e) {
4021
- return e === void 0 && (e = Ft), t = t ?? Xl, G(function(n, r) {
4024
+ return e === void 0 && (e = Ct), t = t ?? Xl, G(function(n, r) {
4022
4025
  var i, a = !0;
4023
4026
  n.subscribe(V(r, function(o) {
4024
4027
  var s = e(o);
@@ -4042,26 +4045,26 @@ function Yl(t) {
4042
4045
  function Ul() {
4043
4046
  return new li();
4044
4047
  }
4045
- function zl(t, e) {
4048
+ function Hl(t, e) {
4046
4049
  var n = arguments.length >= 2;
4047
4050
  return function(r) {
4048
- return r.pipe(Ft, Gl(1), n ? Vl(e) : Yl(function() {
4051
+ return r.pipe(Ct, Gl(1), n ? Vl(e) : Yl(function() {
4049
4052
  return new li();
4050
4053
  }));
4051
4054
  };
4052
4055
  }
4053
- function Hl() {
4056
+ function zl() {
4054
4057
  for (var t = [], e = 0; e < arguments.length; e++)
4055
4058
  t[e] = arguments[e];
4056
- var n = Lt(t), r = Wr(t, 1 / 0);
4057
- return t = Bl(t), G(function(i, a) {
4058
- cn(r)(Et(st([i], ot(t)), n)).subscribe(a);
4059
+ var n = Et(t), r = Wr(t, 1 / 0);
4060
+ return t = Rl(t), G(function(i, a) {
4061
+ cn(r)(Lt(st([i], ot(t)), n)).subscribe(a);
4059
4062
  });
4060
4063
  }
4061
4064
  function ql() {
4062
4065
  for (var t = [], e = 0; e < arguments.length; e++)
4063
4066
  t[e] = arguments[e];
4064
- return Hl.apply(void 0, st([], ot(t)));
4067
+ return zl.apply(void 0, st([], ot(t)));
4065
4068
  }
4066
4069
  function Ue(t) {
4067
4070
  t === void 0 && (t = {});
@@ -4077,26 +4080,26 @@ function Ue(t) {
4077
4080
  var $ = f;
4078
4081
  D(), $ == null || $.unsubscribe();
4079
4082
  };
4080
- return G(function($, T) {
4083
+ return G(function($, F) {
4081
4084
  p++, !d && !m && v();
4082
4085
  var _ = h = h ?? n();
4083
- T.add(function() {
4084
- p--, p === 0 && !d && !m && (c = Fe(A, u));
4085
- }), _.subscribe(T), !f && p > 0 && (f = new Ut({
4086
- next: function(R) {
4087
- return _.next(R);
4086
+ F.add(function() {
4087
+ p--, p === 0 && !d && !m && (c = Ce(A, u));
4088
+ }), _.subscribe(F), !f && p > 0 && (f = new Ut({
4089
+ next: function(B) {
4090
+ return _.next(B);
4088
4091
  },
4089
- error: function(R) {
4090
- d = !0, v(), c = Fe(D, i, R), _.error(R);
4092
+ error: function(B) {
4093
+ d = !0, v(), c = Ce(D, i, B), _.error(B);
4091
4094
  },
4092
4095
  complete: function() {
4093
- m = !0, v(), c = Fe(D, o), _.complete();
4096
+ m = !0, v(), c = Ce(D, o), _.complete();
4094
4097
  }
4095
- }), H($).subscribe(f));
4098
+ }), z($).subscribe(f));
4096
4099
  })(l);
4097
4100
  };
4098
4101
  }
4099
- function Fe(t, e) {
4102
+ function Ce(t, e) {
4100
4103
  for (var n = [], r = 2; r < arguments.length; r++)
4101
4104
  n[r - 2] = arguments[r];
4102
4105
  if (e === !0) {
@@ -4109,7 +4112,7 @@ function Fe(t, e) {
4109
4112
  i.unsubscribe(), t();
4110
4113
  }
4111
4114
  });
4112
- return H(e.apply(void 0, st([], ot(n)))).subscribe(i);
4115
+ return z(e.apply(void 0, st([], ot(n)))).subscribe(i);
4113
4116
  }
4114
4117
  }
4115
4118
  function y(t, e, n) {
@@ -4123,15 +4126,15 @@ function y(t, e, n) {
4123
4126
  resetOnRefCountZero: i
4124
4127
  });
4125
4128
  }
4126
- function Le() {
4129
+ function Ee() {
4127
4130
  for (var t = [], e = 0; e < arguments.length; e++)
4128
4131
  t[e] = arguments[e];
4129
- var n = Lt(t);
4132
+ var n = Et(t);
4130
4133
  return G(function(r, i) {
4131
4134
  (n ? Un(t, r, n) : Un(t, r)).subscribe(i);
4132
4135
  });
4133
4136
  }
4134
- function L(t, e) {
4137
+ function E(t, e) {
4135
4138
  return G(function(n, r) {
4136
4139
  var i = null, a = 0, o = !1, s = function() {
4137
4140
  return o && !i && r.complete();
@@ -4139,7 +4142,7 @@ function L(t, e) {
4139
4142
  n.subscribe(V(r, function(u) {
4140
4143
  i == null || i.unsubscribe();
4141
4144
  var l = 0, f = a++;
4142
- H(t(u, f)).subscribe(i = V(r, function(c) {
4145
+ z(t(u, f)).subscribe(i = V(r, function(c) {
4143
4146
  return r.next(e ? e(u, c, f, l++) : c);
4144
4147
  }, function() {
4145
4148
  i = null, s();
@@ -4149,9 +4152,9 @@ function L(t, e) {
4149
4152
  }));
4150
4153
  });
4151
4154
  }
4152
- function C(t) {
4155
+ function M(t) {
4153
4156
  return G(function(e, n) {
4154
- H(t).subscribe(V(n, function() {
4157
+ z(t).subscribe(V(n, function() {
4155
4158
  return n.complete();
4156
4159
  }, Xe)), !n.closed && e.subscribe(n);
4157
4160
  });
@@ -4163,7 +4166,7 @@ function jl(t, e) {
4163
4166
  }, m = function() {
4164
4167
  c = null, h && r.complete();
4165
4168
  }, d = function(D) {
4166
- return c = H(t(D)).subscribe(V(r, p, m));
4169
+ return c = z(t(D)).subscribe(V(r, p, m));
4167
4170
  }, v = function() {
4168
4171
  if (l) {
4169
4172
  l = !1;
@@ -4198,7 +4201,7 @@ function Jl(t) {
4198
4201
  }
4199
4202
  const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4200
4203
  const r = new P(), i = e.pipe(
4201
- C(r),
4204
+ M(r),
4202
4205
  x((c) => ({
4203
4206
  id: null,
4204
4207
  seriesLabel: null,
@@ -4208,9 +4211,9 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4208
4211
  })),
4209
4212
  q()
4210
4213
  ), a = n.pipe(
4211
- C(r),
4214
+ M(r),
4212
4215
  // filter(d => d.eventName === 'mouseover' || d.eventName === 'mousemove'),
4213
- zn((c) => c.eventName === "mouseover"),
4216
+ Hn((c) => c.eventName === "mouseover"),
4214
4217
  // distinctUntilChanged((prev, current) => prev.eventName === current.eventName)
4215
4218
  x((c) => c.datum ? {
4216
4219
  id: c.datum.id,
@@ -4226,13 +4229,13 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4226
4229
  highlightDefault: null
4227
4230
  })
4228
4231
  ), o = n.pipe(
4229
- C(r),
4230
- zn((c) => c.eventName === "mouseout"),
4232
+ M(r),
4233
+ Hn((c) => c.eventName === "mouseout"),
4231
4234
  // distinctUntilChanged((prev, current) => prev.eventName === current.eventName)
4232
4235
  // map(d => {
4233
4236
  // return { id: '', label: '' }
4234
4237
  // })
4235
- L((c) => i)
4238
+ E((c) => i)
4236
4239
  );
4237
4240
  function s(c, h) {
4238
4241
  const p = c.find((m) => m.id === h);
@@ -4247,13 +4250,13 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4247
4250
  function f(c, h) {
4248
4251
  return h == null ? [] : c.filter((p) => p.categoryLabel === h);
4249
4252
  }
4250
- return new O((c) => (E({
4253
+ return new O((c) => (L({
4251
4254
  target: Nl(a, o, i),
4252
4255
  datumList: t,
4253
4256
  fullChartParams: e
4254
4257
  }).pipe(
4255
- C(r),
4256
- L(async (h) => h)
4258
+ M(r),
4259
+ E(async (h) => h)
4257
4260
  ).subscribe((h) => {
4258
4261
  let p = [];
4259
4262
  h.fullChartParams.highlightTarget === "datum" ? p = s(h.datumList, h.target.id) : h.fullChartParams.highlightTarget === "series" ? p = u(h.datumList, h.target.seriesLabel) : h.fullChartParams.highlightTarget === "group" ? p = l(h.datumList, h.target.groupLabel) : h.fullChartParams.highlightTarget === "category" && (p = f(h.datumList, h.target.categoryLabel)), c.next(p);
@@ -4304,13 +4307,13 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4304
4307
  ), Zl = ({ computedData$: t }) => t.pipe(
4305
4308
  x((e) => e.filter((n) => n.length).map((n) => n[0].seriesLabel)),
4306
4309
  q((e, n) => JSON.stringify(e).length === JSON.stringify(n).length)
4307
- ), Hn = ({ computedData$: t }) => t.pipe(
4310
+ ), zn = ({ computedData$: t }) => t.pipe(
4308
4311
  x((e) => e.map((n) => n.filter((r) => r.visible != !1)))
4309
- ), Ql = ({ computedData$: t, fullDataFormatter$: e }) => E({
4312
+ ), Ql = ({ computedData$: t, fullDataFormatter$: e }) => L({
4310
4313
  computedData: t,
4311
4314
  fullDataFormatter: e
4312
4315
  }).pipe(
4313
- L(async (n) => n),
4316
+ E(async (n) => n),
4314
4317
  x((n) => {
4315
4318
  const r = n.fullDataFormatter.sumSeries == !0 ? n.computedData.map((i) => [
4316
4319
  // 加總為一筆資料
@@ -4320,33 +4323,33 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4320
4323
  r.flat().sort((i, a) => i.seq - a.seq)
4321
4324
  ];
4322
4325
  })
4323
- ), tc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
4326
+ ), tc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => L({
4324
4327
  computedData: t,
4325
4328
  fullDataFormatter: e,
4326
4329
  layout: n
4327
4330
  }).pipe(
4328
- L(async (i) => i),
4329
- x((i) => i.fullDataFormatter.separateSeries ? Rn(i.layout, i.fullDataFormatter.container, i.computedData.length) : Rn(i.layout, i.fullDataFormatter.container, 1))
4330
- ), ec = ({ seriesContainerPosition$: t, seriesLabels$: e, separateSeries$: n }) => E({
4331
+ E(async (i) => i),
4332
+ x((i) => i.fullDataFormatter.separateSeries ? Bn(i.layout, i.fullDataFormatter.container, i.computedData.length) : Bn(i.layout, i.fullDataFormatter.container, 1))
4333
+ ), ec = ({ seriesContainerPosition$: t, seriesLabels$: e, separateSeries$: n }) => L({
4331
4334
  seriesContainerPosition: t,
4332
4335
  seriesLabels: e,
4333
4336
  separateSeries: n
4334
4337
  }).pipe(
4335
- L(async (r) => r),
4338
+ E(async (r) => r),
4336
4339
  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]])))
4337
4340
  ), nc = ({ subject: t, observer: e }) => {
4338
4341
  const n = Pt(e.fullChartParams$).pipe(
4339
4342
  y(1)
4340
4343
  ), r = Kl({
4341
4344
  fullDataFormatter$: e.fullDataFormatter$
4342
- }), i = Hn({
4345
+ }), i = zn({
4343
4346
  computedData$: e.computedData$
4344
4347
  }), a = Ql({
4345
4348
  computedData$: e.computedData$,
4346
4349
  fullDataFormatter$: e.fullDataFormatter$
4347
4350
  }).pipe(
4348
4351
  y(1)
4349
- ), o = Hn({
4352
+ ), o = zn({
4350
4353
  computedData$: a
4351
4354
  }), s = e.computedData$.pipe(
4352
4355
  x((p) => p.flat())
@@ -4442,7 +4445,7 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4442
4445
  }
4443
4446
  function i(a, o, s) {
4444
4447
  const u = o.valueAxis.position === "left" || o.valueAxis.position === "right" ? s.height : s.width, l = a.flat();
4445
- let [f, c] = Bu(l);
4448
+ let [f, c] = Ru(l);
4446
4449
  return f === c && c === 0 && (c = 1), ut({
4447
4450
  maxValue: c,
4448
4451
  minValue: f,
@@ -4454,12 +4457,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4454
4457
  // 不使用dataFormatter設定
4455
4458
  });
4456
4459
  }
4457
- return E({
4460
+ return L({
4458
4461
  computedData: t,
4459
4462
  fullDataFormatter: e,
4460
4463
  layout: n
4461
4464
  }).pipe(
4462
- L(async (a) => a),
4465
+ E(async (a) => a),
4463
4466
  x((a) => {
4464
4467
  const o = r(a.computedData, a.fullDataFormatter, a.layout), s = i(a.computedData, a.fullDataFormatter, a.layout), u = s(0);
4465
4468
  return a.computedData.map((l, f) => l.map((c, h) => {
@@ -4482,12 +4485,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4482
4485
  } : { width: o, height: s };
4483
4486
  }
4484
4487
  return new O((i) => {
4485
- E({
4488
+ L({
4486
4489
  fullDataFormatter: t,
4487
4490
  layout: e
4488
4491
  }).pipe(
4489
- C(n),
4490
- L(async (a) => a)
4492
+ M(n),
4493
+ E(async (a) => a)
4491
4494
  ).subscribe((a) => {
4492
4495
  const o = r({
4493
4496
  xAxisPosition: a.fullDataFormatter.groupAxis.position,
@@ -4507,12 +4510,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4507
4510
  x((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4508
4511
  ), yi = ({ computedLayoutData$: t }) => t.pipe(
4509
4512
  x((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4510
- ), rc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
4513
+ ), rc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => L({
4511
4514
  computedData: t,
4512
4515
  fullDataFormatter: e,
4513
4516
  layout: n
4514
4517
  }).pipe(
4515
- L(async (i) => i),
4518
+ E(async (i) => i),
4516
4519
  x((i) => {
4517
4520
  if (i.fullDataFormatter.separateSeries)
4518
4521
  return Yt(i.layout, i.fullDataFormatter.container, i.computedData.length);
@@ -4538,18 +4541,18 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4538
4541
  })
4539
4542
  );
4540
4543
  return t.pipe(
4541
- L((r) => fi(() => r, e, n))
4544
+ E((r) => fi(() => r, e, n))
4542
4545
  );
4543
- }, bi = ({ computedData$: t, fullDataFormatter$: e }) => E({
4546
+ }, bi = ({ computedData$: t, fullDataFormatter$: e }) => L({
4544
4547
  computedData: t,
4545
4548
  fullDataFormatter: e
4546
4549
  }).pipe(
4547
- L(async (n) => n),
4550
+ E(async (n) => n),
4548
4551
  x((n) => {
4549
4552
  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;
4550
4553
  return [a, o];
4551
4554
  })
4552
- ), xi = ({ computedData$: t, groupScaleDomainValue$: e }) => E({
4555
+ ), xi = ({ computedData$: t, groupScaleDomainValue$: e }) => L({
4553
4556
  computedData: t,
4554
4557
  // fullDataFormatter: fullDataFormatter$,
4555
4558
  groupScaleDomainValue: e
@@ -4580,12 +4583,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4580
4583
  value: `translate(${u}px, ${l}px) rotate(${f}deg) rotateX(${c}deg) rotateY(${h}deg)`
4581
4584
  };
4582
4585
  }
4583
- return new O((i) => (E({
4586
+ return new O((i) => (L({
4584
4587
  fullDataFormatter: t,
4585
4588
  layout: e
4586
4589
  }).pipe(
4587
- C(n),
4588
- L(async (a) => a)
4590
+ M(n),
4591
+ E(async (a) => a)
4589
4592
  ).subscribe((a) => {
4590
4593
  const o = r({
4591
4594
  xAxis: a.fullDataFormatter.groupAxis,
@@ -4613,15 +4616,15 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4613
4616
  const a = new P();
4614
4617
  function o({ data: s, groupAxis: u, valueAxis: l, groupScaleDomainValue: f, filteredMinMaxValue: c, width: h, height: p }) {
4615
4618
  let m = 0, d = 0, v = 0, D = 0;
4616
- const A = u.position === "top" || u.position === "bottom" ? h : p, $ = 0, T = s[0] ? s[0].length - 1 : 0, _ = ut({
4617
- maxValue: T,
4619
+ const A = u.position === "top" || u.position === "bottom" ? h : p, $ = 0, F = s[0] ? s[0].length - 1 : 0, _ = ut({
4620
+ maxValue: F,
4618
4621
  minValue: $,
4619
4622
  axisWidth: A,
4620
4623
  // scaleDomain: groupAxis.scaleDomain,
4621
4624
  scaleDomain: f,
4622
4625
  scaleRange: [0, 1]
4623
- }), R = _($), I = _(T);
4624
- $ == T ? (m = 0, v = 1) : (m = R, v = (I - R) / A), c[0] === c[1] && c[1] === 0 && (c[1] = 1);
4626
+ }), B = _($), I = _(F);
4627
+ $ == F ? (m = 0, v = 1) : (m = B, v = (I - B) / A), c[0] === c[1] && c[1] === 0 && (c[1] = 1);
4625
4628
  const k = l.position === "left" || l.position === "right" ? p : h, b = ut({
4626
4629
  maxValue: c[1],
4627
4630
  minValue: c[0],
@@ -4640,15 +4643,15 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4640
4643
  value: `translate(${m}px, ${d}px) scale(${v}, ${D})`
4641
4644
  };
4642
4645
  }
4643
- return new O((s) => (E({
4646
+ return new O((s) => (L({
4644
4647
  computedData: t,
4645
4648
  groupScaleDomainValue: e,
4646
4649
  filteredMinMaxValue: n,
4647
4650
  fullDataFormatter: r,
4648
4651
  layout: i
4649
4652
  }).pipe(
4650
- C(a),
4651
- L(async (u) => u)
4653
+ M(a),
4654
+ E(async (u) => u)
4652
4655
  ).subscribe((u) => {
4653
4656
  const l = o({
4654
4657
  data: u.computedData,
@@ -4663,12 +4666,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4663
4666
  }), function() {
4664
4667
  a.next(void 0);
4665
4668
  }));
4666
- }, _i = ({ gridContainerPosition$: t, gridAxesTransform$: e, gridGraphicTransform$: n }) => E({
4669
+ }, _i = ({ gridContainerPosition$: t, gridAxesTransform$: e, gridGraphicTransform$: n }) => L({
4667
4670
  gridContainerPosition: t,
4668
4671
  gridAxesTransform: e,
4669
4672
  gridGraphicTransform: n
4670
4673
  }).pipe(
4671
- L(async (r) => r),
4674
+ E(async (r) => r),
4672
4675
  x((r) => r.gridAxesTransform.rotate == 0 || r.gridAxesTransform.rotate == 180 ? r.gridContainerPosition.map((i, a) => [
4673
4676
  1 / r.gridGraphicTransform.scale[0] / r.gridContainerPosition[a].scale[0],
4674
4677
  1 / r.gridGraphicTransform.scale[1] / r.gridContainerPosition[a].scale[1]
@@ -4693,12 +4696,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4693
4696
  }).pipe(
4694
4697
  y(1)
4695
4698
  );
4696
- return E({
4699
+ return L({
4697
4700
  fullDataFormatter: t,
4698
4701
  computedData: e,
4699
4702
  multiGridContainer: s
4700
4703
  }).pipe(
4701
- L(async (u) => u),
4704
+ E(async (u) => u),
4702
4705
  // distinctUntilChanged((a, b) => {
4703
4706
  // // 只有當computedData的長度改變時,才重新計算
4704
4707
  // return a.computedData.length === b.computedData.length
@@ -4717,60 +4720,60 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4717
4720
  ...u.fullDataFormatter.container
4718
4721
  }
4719
4722
  }, m = pt(p).pipe(
4720
- C(a),
4723
+ M(a),
4721
4724
  y(1)
4722
4725
  ), d = pt(f).pipe(
4723
- C(a),
4726
+ M(a),
4724
4727
  y(1)
4725
4728
  ), v = m.pipe(
4726
4729
  x((j) => j.separateSeries),
4727
4730
  q(),
4728
4731
  y(1)
4729
4732
  ), D = pt(u.multiGridContainer[c]).pipe(
4730
- C(a),
4733
+ M(a),
4731
4734
  y(1)
4732
4735
  ), A = mi({
4733
4736
  fullDataFormatter$: m,
4734
4737
  layout$: n
4735
4738
  }).pipe(
4736
- C(a),
4739
+ M(a),
4737
4740
  y(1)
4738
4741
  ), $ = d.pipe(
4739
4742
  x((j) => j.flat())
4740
4743
  ).pipe(
4741
- C(a),
4744
+ M(a),
4742
4745
  y(1)
4743
- ), T = di({
4746
+ ), F = di({
4744
4747
  computedData$: d
4745
4748
  }).pipe(
4746
- C(a),
4749
+ M(a),
4747
4750
  y(1)
4748
4751
  ), _ = fn({
4749
4752
  datumList$: $
4750
4753
  }).pipe(
4751
- C(a),
4754
+ M(a),
4752
4755
  y(1)
4753
- ), R = hi({
4756
+ ), B = hi({
4754
4757
  datumList$: $
4755
4758
  }).pipe(
4756
- C(a),
4759
+ M(a),
4757
4760
  y(1)
4758
4761
  ), I = gi({
4759
4762
  computedData$: d
4760
4763
  }).pipe(
4761
- C(a),
4764
+ M(a),
4762
4765
  y(1)
4763
4766
  ), k = pi({
4764
4767
  computedData$: d,
4765
4768
  fullDataFormatter$: m,
4766
4769
  layout$: n
4767
4770
  }).pipe(
4768
- C(a),
4771
+ M(a),
4769
4772
  y(1)
4770
4773
  ), b = yi({
4771
4774
  computedLayoutData$: k
4772
4775
  }).pipe(
4773
- C(a),
4776
+ M(a),
4774
4777
  y(1)
4775
4778
  ), w = vi({
4776
4779
  computedData$: d,
@@ -4781,24 +4784,24 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4781
4784
  computedData$: d,
4782
4785
  fullDataFormatter$: m
4783
4786
  }).pipe(
4784
- C(a),
4787
+ M(a),
4785
4788
  y(1)
4786
4789
  ), S = xi({
4787
4790
  computedData$: d,
4788
4791
  groupScaleDomainValue$: g
4789
4792
  }).pipe(
4790
- C(a),
4793
+ M(a),
4791
4794
  y(1)
4792
- ), M = wi({
4795
+ ), T = wi({
4793
4796
  fullDataFormatter$: m,
4794
4797
  layout$: n
4795
4798
  }).pipe(
4796
- C(a),
4799
+ M(a),
4797
4800
  y(1)
4798
- ), B = Di({
4799
- gridAxesTransform$: M
4801
+ ), R = Di({
4802
+ gridAxesTransform$: T
4800
4803
  }).pipe(
4801
- C(a),
4804
+ M(a),
4802
4805
  y(1)
4803
4806
  ), it = $i({
4804
4807
  computedData$: d,
@@ -4807,11 +4810,11 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4807
4810
  fullDataFormatter$: m,
4808
4811
  layout$: n
4809
4812
  }).pipe(
4810
- C(a),
4813
+ M(a),
4811
4814
  y(1)
4812
4815
  ), lt = _i({
4813
4816
  gridContainerPosition$: D,
4814
- gridAxesTransform$: M,
4817
+ gridAxesTransform$: T,
4815
4818
  gridGraphicTransform$: it
4816
4819
  });
4817
4820
  return {
@@ -4819,9 +4822,9 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4819
4822
  gridContainerPosition$: D,
4820
4823
  gridAxesSize$: A,
4821
4824
  gridHighlight$: o,
4822
- seriesLabels$: T,
4825
+ seriesLabels$: F,
4823
4826
  SeriesDataMap$: _,
4824
- GroupDataMap$: R,
4827
+ GroupDataMap$: B,
4825
4828
  dataFormatter$: m,
4826
4829
  computedData$: d,
4827
4830
  computedLayoutData$: k,
@@ -4830,20 +4833,20 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4830
4833
  computedStackedData$: w,
4831
4834
  groupScaleDomainValue$: g,
4832
4835
  filteredMinMaxValue$: S,
4833
- gridAxesTransform$: M,
4834
- gridAxesReverseTransform$: B,
4836
+ gridAxesTransform$: T,
4837
+ gridAxesReverseTransform$: R,
4835
4838
  gridGraphicTransform$: it,
4836
4839
  gridGraphicReverseScale$: lt
4837
4840
  };
4838
4841
  });
4839
4842
  })
4840
4843
  );
4841
- }, Ai = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
4844
+ }, Ai = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => L({
4842
4845
  computedData: t,
4843
4846
  fullDataFormatter: e,
4844
4847
  layout: n
4845
4848
  }).pipe(
4846
- L(async (r) => r),
4849
+ E(async (r) => r),
4847
4850
  x((r) => {
4848
4851
  const i = r.fullDataFormatter.gridList[0] ?? be, a = r.computedData.reduce((l, f, c) => {
4849
4852
  const p = (r.fullDataFormatter.gridList[c] ?? i).separateSeries ? f.length : r.fullDataFormatter.separateGrid ? 1 : 0;
@@ -4892,7 +4895,7 @@ function ft({ columnName: t, expectToBe: e, from: n }) {
4892
4895
  ----> find in '${n}'`;
4893
4896
  }
4894
4897
  function uc(t) {
4895
- return t ? F(t, {
4898
+ return t ? C(t, {
4896
4899
  width: {
4897
4900
  toBe: '"auto" | number',
4898
4901
  test: (n) => n === "auto" || typeof n == "number"
@@ -4907,10 +4910,10 @@ function uc(t) {
4907
4910
  }) : { status: "success", columnName: "", expectToBe: "" };
4908
4911
  }
4909
4912
  function lc(t) {
4910
- return F({ element: t }, {
4913
+ return C({ element: t }, {
4911
4914
  element: {
4912
4915
  toBe: "Dom",
4913
- test: (n) => Li(n)
4916
+ test: (n) => Ei(n)
4914
4917
  }
4915
4918
  });
4916
4919
  }
@@ -4923,7 +4926,7 @@ function cc(t, e) {
4923
4926
  relationship: ["category", "datum", "none"],
4924
4927
  tree: ["category", "datum", "none"],
4925
4928
  noneData: ["none"]
4926
- }, r = F(e, {
4929
+ }, r = C(e, {
4927
4930
  padding: {
4928
4931
  toBeTypes: ["object"]
4929
4932
  },
@@ -4953,7 +4956,7 @@ function cc(t, e) {
4953
4956
  }
4954
4957
  });
4955
4958
  if (e && e.padding) {
4956
- const i = F(e.padding, {
4959
+ const i = C(e.padding, {
4957
4960
  top: {
4958
4961
  toBeTypes: ["number"]
4959
4962
  },
@@ -4971,7 +4974,7 @@ function cc(t, e) {
4971
4974
  return i;
4972
4975
  }
4973
4976
  if (e && e.colors) {
4974
- const i = F(e.colors, {
4977
+ const i = C(e.colors, {
4975
4978
  light: {
4976
4979
  toBeTypes: ["object"]
4977
4980
  },
@@ -4982,7 +4985,7 @@ function cc(t, e) {
4982
4985
  if (i.status === "error")
4983
4986
  return i;
4984
4987
  if (e.colors.light) {
4985
- const a = F(e.colors.light, {
4988
+ const a = C(e.colors.light, {
4986
4989
  label: {
4987
4990
  toBeTypes: ["string[]"]
4988
4991
  },
@@ -5003,7 +5006,7 @@ function cc(t, e) {
5003
5006
  return a;
5004
5007
  }
5005
5008
  if (e.colors.dark) {
5006
- const a = F(e.colors.dark, {
5009
+ const a = C(e.colors.dark, {
5007
5010
  label: {
5008
5011
  toBeTypes: ["string[]"]
5009
5012
  },
@@ -5027,7 +5030,7 @@ function cc(t, e) {
5027
5030
  return r;
5028
5031
  }
5029
5032
  function fc(t, e) {
5030
- return F({ pluginEntities: e }, {
5033
+ return C({ pluginEntities: e }, {
5031
5034
  pluginEntities: {
5032
5035
  toBe: `PluginEntity<'${t}'>[]`,
5033
5036
  test: (r) => Array.isArray(r) && r.every((i) => i.chartType === t || i.chartType === "noneData")
@@ -5065,16 +5068,16 @@ const hc = ({
5065
5068
  from: "Chart.constructor"
5066
5069
  }));
5067
5070
  else {
5068
- const { status: S, columnName: M, expectToBe: B } = lc(u);
5071
+ const { status: S, columnName: T, expectToBe: R } = lc(u);
5069
5072
  if (S === "error")
5070
5073
  throw new Error(ct({
5071
- columnName: M,
5072
- expectToBe: B,
5074
+ columnName: T,
5075
+ expectToBe: R,
5073
5076
  from: "Chart.constructor"
5074
5077
  }));
5075
5078
  S === "warning" && console.warn(ft({
5076
- columnName: M,
5077
- expectToBe: B,
5079
+ columnName: T,
5080
+ expectToBe: R,
5078
5081
  from: "Chart.constructor"
5079
5082
  }));
5080
5083
  }
@@ -5104,8 +5107,8 @@ const hc = ({
5104
5107
  allPluginParams: g.allPluginParams ? g.allPluginParams : {}
5105
5108
  };
5106
5109
  })(l), d = p.data$.pipe(y(1)), v = p.dataFormatter$.pipe(
5107
- C(a),
5108
- Le({}),
5110
+ M(a),
5111
+ Ee({}),
5109
5112
  x((b) => {
5110
5113
  try {
5111
5114
  const { status: w, columnName: g, expectToBe: S } = e(b);
@@ -5131,8 +5134,8 @@ const hc = ({
5131
5134
  // }),
5132
5135
  y(1)
5133
5136
  ), D = p.chartParams$.pipe(
5134
- C(a),
5135
- Le({}),
5137
+ M(a),
5138
+ Ee({}),
5136
5139
  x((b) => {
5137
5140
  try {
5138
5141
  const { status: w, columnName: g, expectToBe: S } = cc(o, b);
@@ -5158,13 +5161,13 @@ const hc = ({
5158
5161
  // }),
5159
5162
  y(1)
5160
5163
  ), A = D.pipe(
5161
- C(a),
5162
- Le({}),
5164
+ M(a),
5165
+ Ee({}),
5163
5166
  x((b) => mt(b.padding ?? {}, jn))
5164
5167
  );
5165
5168
  A.pipe(
5166
- C(a),
5167
- zl()
5169
+ M(a),
5170
+ Hl()
5168
5171
  ).subscribe((b) => {
5169
5172
  c.attr("transform", `translate(${b.left}, ${b.top})`);
5170
5173
  }), A.subscribe((b) => {
@@ -5174,7 +5177,7 @@ const hc = ({
5174
5177
  width: (l == null ? void 0 : l.width) ?? Ae.width,
5175
5178
  height: (l == null ? void 0 : l.height) ?? Ae.height
5176
5179
  }).pipe(
5177
- L((b) => fi(
5180
+ E((b) => fi(
5178
5181
  () => b.width === "auto" || b.height === "auto",
5179
5182
  // 有 'auto' 的話就監聽element的尺寸
5180
5183
  Jl(u).pipe(
@@ -5185,9 +5188,9 @@ const hc = ({
5185
5188
  ),
5186
5189
  pt(b)
5187
5190
  )),
5188
- C(a),
5191
+ M(a),
5189
5192
  Ue()
5190
- ), T = pt().pipe(
5193
+ ), F = pt().pipe(
5191
5194
  ql(
5192
5195
  $.pipe(
5193
5196
  Il(250)
@@ -5198,13 +5201,13 @@ const hc = ({
5198
5201
  ),
5199
5202
  q((b, w) => JSON.stringify(b) === JSON.stringify(w)),
5200
5203
  Ue()
5201
- ), _ = T.subscribe(), R = E({
5202
- rootSize: T,
5204
+ ), _ = F.subscribe(), B = L({
5205
+ rootSize: F,
5203
5206
  mergedPadding: A
5204
5207
  }).pipe(
5205
- C(a),
5206
- L(async (b) => {
5207
- const w = b.rootSize.width > 0 ? b.rootSize.width : Ci, g = b.rootSize.height > 0 ? b.rootSize.height : Mi;
5208
+ M(a),
5209
+ E(async (b) => {
5210
+ const w = b.rootSize.width > 0 ? b.rootSize.width : Mi, g = b.rootSize.height > 0 ? b.rootSize.height : Ti;
5208
5211
  return {
5209
5212
  width: w - b.mergedPadding.left - b.mergedPadding.right,
5210
5213
  height: g - b.mergedPadding.top - b.mergedPadding.bottom,
@@ -5218,30 +5221,30 @@ const hc = ({
5218
5221
  }),
5219
5222
  y(1)
5220
5223
  );
5221
- R.subscribe((b) => {
5224
+ B.subscribe((b) => {
5222
5225
  f.attr("width", b.rootWidth).attr("height", b.rootHeight);
5223
5226
  });
5224
- const I = E({
5227
+ const I = L({
5225
5228
  data: d,
5226
5229
  dataFormatter: v,
5227
5230
  chartParams: D
5228
5231
  // layout: iif(() => isAxesTypeMap[chartType] === true, layout$, of(undefined))
5229
5232
  }).pipe(
5230
- C(a),
5231
- L(async (b) => b),
5232
- L((b) => pt(b).pipe(
5233
+ M(a),
5234
+ E(async (b) => b),
5235
+ E((b) => pt(b).pipe(
5233
5236
  x((w) => {
5234
5237
  try {
5235
- const { status: g, columnName: S, expectToBe: M } = r(w.data);
5238
+ const { status: g, columnName: S, expectToBe: T } = r(w.data);
5236
5239
  if (g === "error")
5237
5240
  throw new Error(ct({
5238
5241
  columnName: S,
5239
- expectToBe: M,
5242
+ expectToBe: T,
5240
5243
  from: "Chart.data$"
5241
5244
  }));
5242
5245
  g === "warning" && console.warn(ft({
5243
5246
  columnName: S,
5244
- expectToBe: M,
5247
+ expectToBe: T,
5245
5248
  from: "Chart.data$"
5246
5249
  }));
5247
5250
  } catch (g) {
@@ -5277,18 +5280,18 @@ const hc = ({
5277
5280
  return;
5278
5281
  }
5279
5282
  h.selectAll("g.orbcharts__plugin").data(b, (w) => w.name).join(
5280
- (w) => w.append("g").attr("class", (g) => `orbcharts__plugin orbcharts__${g.name}`).each((g, S, M) => {
5281
- const B = {
5283
+ (w) => w.append("g").attr("class", (g) => `orbcharts__plugin orbcharts__${g.name}`).each((g, S, T) => {
5284
+ const R = {
5282
5285
  fullParams$: new O(),
5283
5286
  fullChartParams$: D,
5284
5287
  fullDataFormatter$: v,
5285
5288
  computedData$: I,
5286
- layout$: R
5289
+ layout$: B
5287
5290
  }, it = i({
5288
- observer: B,
5291
+ observer: R,
5289
5292
  subject: p
5290
5293
  }), j = {
5291
- selection: Wt(M[S]),
5294
+ selection: Wt(T[S]),
5292
5295
  rootSelection: f,
5293
5296
  name: g.name,
5294
5297
  chartType: o,
@@ -5298,7 +5301,7 @@ const hc = ({
5298
5301
  g.setPresetParams(m.allPluginParams[g.name] ?? {}), g.setContext(j), k[j.name] = g, g.init();
5299
5302
  }),
5300
5303
  (w) => w,
5301
- (w) => w.each((g, S, M) => {
5304
+ (w) => w.each((g, S, T) => {
5302
5305
  k[g.name] && (k[g.name].destroy(), k[g.name] = void 0);
5303
5306
  }).remove()
5304
5307
  ).sort((w, g) => w.layerIndex - g.layerIndex);
@@ -5338,7 +5341,7 @@ class lf extends Ot {
5338
5341
  }
5339
5342
  }
5340
5343
  const pc = (t) => {
5341
- const e = F(t, {
5344
+ const e = C(t, {
5342
5345
  visibleFilter: {
5343
5346
  toBeTypes: ["Function"]
5344
5347
  },
@@ -5348,7 +5351,7 @@ const pc = (t) => {
5348
5351
  container: {
5349
5352
  toBeTypes: ["object"]
5350
5353
  }
5351
- }), n = F(t, {
5354
+ }), n = C(t, {
5352
5355
  seriesDirection: {
5353
5356
  toBe: '"row" | "column"',
5354
5357
  test: (r) => r === "row" || r === "column"
@@ -5372,7 +5375,7 @@ const pc = (t) => {
5372
5375
  if (n.status === "error")
5373
5376
  return n;
5374
5377
  if (t.valueAxis) {
5375
- const r = F(t.valueAxis, {
5378
+ const r = C(t.valueAxis, {
5376
5379
  position: {
5377
5380
  toBe: '"bottom" | "left" | "top" | "right"',
5378
5381
  test: (i) => i === "bottom" || i === "left" || i === "top" || i === "right"
@@ -5393,7 +5396,7 @@ const pc = (t) => {
5393
5396
  return r;
5394
5397
  }
5395
5398
  if (t.groupAxis) {
5396
- const r = F(t.groupAxis, {
5399
+ const r = C(t.groupAxis, {
5397
5400
  position: {
5398
5401
  toBe: '"bottom" | "left" | "top" | "right"',
5399
5402
  test: (i) => i === "bottom" || i === "left" || i === "top" || i === "right"
@@ -5413,7 +5416,7 @@ const pc = (t) => {
5413
5416
  return r;
5414
5417
  }
5415
5418
  if (t.container) {
5416
- const r = F(t.container, {
5419
+ const r = C(t.container, {
5417
5420
  gap: {
5418
5421
  toBeTypes: ["number"]
5419
5422
  },
@@ -5467,7 +5470,7 @@ const mc = (t) => {
5467
5470
  return [];
5468
5471
  let i;
5469
5472
  try {
5470
- const a = Si(e, n), o = Br({
5473
+ const a = Si(e, n), o = Rr({
5471
5474
  transposedDataGrid: a,
5472
5475
  dataFormatterGrid: n,
5473
5476
  chartType: "grid"
@@ -5500,7 +5503,7 @@ const mc = (t) => {
5500
5503
  throw Error(a);
5501
5504
  }
5502
5505
  return i;
5503
- }, dc = (t) => F({ data: t }, {
5506
+ }, dc = (t) => C({ data: t }, {
5504
5507
  data: {
5505
5508
  toBe: "(DataGridDatum | DataGridValue)[][]",
5506
5509
  // 畢免資料量過大檢查不完,不深度檢查
@@ -5588,7 +5591,7 @@ const mc = (t) => {
5588
5591
  layout$: e.layout$
5589
5592
  }).pipe(
5590
5593
  y(1)
5591
- ), T = _i({
5594
+ ), F = _i({
5592
5595
  gridContainerPosition$: i,
5593
5596
  gridAxesTransform$: D,
5594
5597
  gridGraphicTransform$: $
@@ -5616,7 +5619,7 @@ const mc = (t) => {
5616
5619
  gridAxesTransform$: D,
5617
5620
  gridAxesReverseTransform$: A,
5618
5621
  gridGraphicTransform$: $,
5619
- gridGraphicReverseScale$: T
5622
+ gridGraphicReverseScale$: F
5620
5623
  };
5621
5624
  };
5622
5625
  class cf extends Ot {
@@ -5635,7 +5638,7 @@ class cf extends Ot {
5635
5638
  }
5636
5639
  }
5637
5640
  const yc = (t) => {
5638
- const e = F(t, {
5641
+ const e = C(t, {
5639
5642
  visibleFilter: {
5640
5643
  toBeTypes: ["Function"]
5641
5644
  },
@@ -5651,7 +5654,7 @@ const yc = (t) => {
5651
5654
  });
5652
5655
  if (t.gridList) {
5653
5656
  const r = t.gridList.map((i, a) => {
5654
- const o = F(i, {
5657
+ const o = C(i, {
5655
5658
  seriesDirection: {
5656
5659
  toBe: '"row" | "column"',
5657
5660
  test: (s) => s === "row" || s === "column"
@@ -5675,7 +5678,7 @@ const yc = (t) => {
5675
5678
  if (o.status === "error")
5676
5679
  return o;
5677
5680
  if (i.valueAxis) {
5678
- const s = F(i.valueAxis, {
5681
+ const s = C(i.valueAxis, {
5679
5682
  position: {
5680
5683
  toBe: '"top" | "bottom" | "left" | "right"',
5681
5684
  test: (u) => u === "top" || u === "bottom" || u === "left" || u === "right"
@@ -5695,7 +5698,7 @@ const yc = (t) => {
5695
5698
  if (s.status === "error")
5696
5699
  return s;
5697
5700
  } else if (i.groupAxis) {
5698
- const s = F(i.groupAxis, {
5701
+ const s = C(i.groupAxis, {
5699
5702
  position: {
5700
5703
  toBe: '"top" | "bottom" | "left" | "right"',
5701
5704
  test: (u) => u === "top" || u === "bottom" || u === "left" || u === "right"
@@ -5724,7 +5727,7 @@ const yc = (t) => {
5724
5727
  return r;
5725
5728
  }
5726
5729
  if (t.container) {
5727
- const n = F(t.container, {
5730
+ const n = C(t.container, {
5728
5731
  gap: {
5729
5732
  toBeTypes: ["number"]
5730
5733
  },
@@ -5745,7 +5748,7 @@ const yc = (t) => {
5745
5748
  return [];
5746
5749
  let i = [];
5747
5750
  try {
5748
- const a = n.gridList[0] || be, o = e.map((c, h) => n.gridList[h] || a), s = e.map((c, h) => Si(c, o[h])), u = n.separateGrid ? s.map((c, h) => Br({
5751
+ const a = n.gridList[0] || be, o = e.map((c, h) => n.gridList[h] || a), s = e.map((c, h) => Si(c, o[h])), u = n.separateGrid ? s.map((c, h) => Rr({
5749
5752
  transposedDataGrid: c,
5750
5753
  dataFormatterGrid: o[h],
5751
5754
  chartType: "multiGrid"
@@ -5762,15 +5765,15 @@ const yc = (t) => {
5762
5765
  l.set(c, p), f++;
5763
5766
  }
5764
5767
  }), i = s.map((c, h) => {
5765
- const p = u[h], m = Ru({
5768
+ const p = u[h], m = Bu({
5766
5769
  transposedDataGrid: c,
5767
5770
  dataFormatterGrid: o[h],
5768
5771
  chartType: "multiGrid",
5769
5772
  gridIndex: h
5770
5773
  });
5771
5774
  let d = 0;
5772
- return c.map((D, A) => D.map(($, T) => {
5773
- const _ = _e("multiGrid", h, A, T), R = m[T], I = p[A], k = {
5775
+ return c.map((D, A) => D.map(($, F) => {
5776
+ const _ = _e("multiGrid", h, A, F), B = m[F], I = p[A], k = {
5774
5777
  id: $.id ? $.id : _,
5775
5778
  index: d,
5776
5779
  label: $.label ? $.label : _,
@@ -5781,8 +5784,8 @@ const yc = (t) => {
5781
5784
  // accSeriesIndex: seriesIndex, // 預設為seriesIndex
5782
5785
  seriesIndex: A,
5783
5786
  seriesLabel: I,
5784
- groupIndex: T,
5785
- groupLabel: R,
5787
+ groupIndex: F,
5788
+ groupLabel: B,
5786
5789
  color: l.get(I),
5787
5790
  visible: !0
5788
5791
  // 先給一個預設值
@@ -5794,7 +5797,7 @@ const yc = (t) => {
5794
5797
  throw Error(a);
5795
5798
  }
5796
5799
  return i;
5797
- }, bc = (t) => F({ data: t }, {
5800
+ }, bc = (t) => C({ data: t }, {
5798
5801
  data: {
5799
5802
  toBe: "DataGrid[]",
5800
5803
  // 畢免資料量過大檢查不完,不深度檢查
@@ -5950,13 +5953,13 @@ const wc = (t) => ({
5950
5953
  reverse: !0
5951
5954
  });
5952
5955
  }
5953
- return E({
5956
+ return L({
5954
5957
  computedData: t,
5955
5958
  minMaxXY: e,
5956
5959
  fullDataFormatter: n,
5957
5960
  layout: r
5958
5961
  }).pipe(
5959
- L(async (o) => o),
5962
+ E(async (o) => o),
5960
5963
  x((o) => {
5961
5964
  const s = i(o.minMaxXY, o.layout), u = a(o.minMaxXY, o.layout);
5962
5965
  return o.computedData.map((l, f) => l.map((c, h) => ({
@@ -5971,16 +5974,16 @@ const wc = (t) => ({
5971
5974
  }, Sc = ({ computedData$: t, fullDataFormatter$: e }) => t.pipe(
5972
5975
  x((n) => n.map((r) => r[0] ? r[0].categoryLabel : "")),
5973
5976
  q((n, r) => JSON.stringify(n).length === JSON.stringify(r).length)
5974
- ), Cc = ({ computedData$: t }) => t.pipe(
5977
+ ), Mc = ({ computedData$: t }) => t.pipe(
5975
5978
  x((e) => e.map((n) => n.filter((r) => r.visible == !0)).filter((n) => n.length > 0))
5976
- ), Mc = ({ computedLayoutData$: t }) => t.pipe(
5979
+ ), Tc = ({ computedLayoutData$: t }) => t.pipe(
5977
5980
  x((e) => e.map((n) => n.filter((r) => r.visible == !0)).filter((n) => n.length > 0))
5978
- ), Tc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
5981
+ ), Fc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => L({
5979
5982
  computedData: t,
5980
5983
  fullDataFormatter: e,
5981
5984
  layout: n
5982
5985
  }).pipe(
5983
- L(async (i) => i),
5986
+ E(async (i) => i),
5984
5987
  x((i) => {
5985
5988
  if (i.fullDataFormatter.separateCategory)
5986
5989
  return Yt(i.layout, i.fullDataFormatter.container, i.computedData.length);
@@ -5989,7 +5992,7 @@ const wc = (t) => ({
5989
5992
  return i.computedData.map((o, s) => a[0]);
5990
5993
  }
5991
5994
  })
5992
- ), Fc = ({ visibleComputedLayoutData$: t, minMaxXY$: e, fullDataFormatter$: n }) => E({
5995
+ ), Cc = ({ visibleComputedLayoutData$: t, minMaxXY$: e, fullDataFormatter$: n }) => L({
5993
5996
  visibleComputedLayoutData: t,
5994
5997
  minMaxXY: e,
5995
5998
  fullDataFormatter: n
@@ -6011,14 +6014,14 @@ const wc = (t) => ({
6011
6014
  maxYDatum: h
6012
6015
  };
6013
6016
  })
6014
- ), Lc = ({ minMaxXY$: t, filteredMinMaxXYData$: e, fullDataFormatter$: n, layout$: r }) => {
6017
+ ), Ec = ({ minMaxXY$: t, filteredMinMaxXYData$: e, fullDataFormatter$: n, layout$: r }) => {
6015
6018
  const i = new P();
6016
6019
  function a({ minMaxXY: o, filteredMinMaxXYData: s, xAxis: u, yAxis: l, width: f, height: c }) {
6017
- let h = 0, p = 0, m = 0, d = 0, { minX: v, maxX: D, minY: A, maxY: $ } = o, T = s.minXDatum.value[0] ?? 0, _ = s.maxXDatum.value[0] ?? 0, R = s.minYDatum.value[1] ?? 0, I = s.maxYDatum.value[1] ?? 0;
6018
- T === _ && _ === 0 && (_ = 1), R === I && I === 0 && (I = 1), v === D && D === 0 && (D = 1), A === $ && $ === 0 && ($ = 1);
6020
+ let h = 0, p = 0, m = 0, d = 0, { minX: v, maxX: D, minY: A, maxY: $ } = o, F = s.minXDatum.value[0] ?? 0, _ = s.maxXDatum.value[0] ?? 0, B = s.minYDatum.value[1] ?? 0, I = s.maxYDatum.value[1] ?? 0;
6021
+ F === _ && _ === 0 && (_ = 1), B === I && I === 0 && (I = 1), v === D && D === 0 && (D = 1), A === $ && $ === 0 && ($ = 1);
6019
6022
  const k = ut({
6020
6023
  maxValue: _,
6021
- minValue: T,
6024
+ minValue: F,
6022
6025
  axisWidth: f,
6023
6026
  scaleDomain: u.scaleDomain,
6024
6027
  scaleRange: u.scaleRange
@@ -6026,13 +6029,13 @@ const wc = (t) => ({
6026
6029
  h = b, m = (w - b) / f;
6027
6030
  const S = ut({
6028
6031
  maxValue: I,
6029
- minValue: R,
6032
+ minValue: B,
6030
6033
  axisWidth: c,
6031
6034
  scaleDomain: l.scaleDomain,
6032
6035
  scaleRange: l.scaleRange,
6033
6036
  reverse: !0
6034
- }), M = S(A > 0 ? 0 : A), B = S($ < 0 ? 0 : $);
6035
- return p = B, d = (M - B) / c, {
6037
+ }), T = S(A > 0 ? 0 : A), R = S($ < 0 ? 0 : $);
6038
+ return p = R, d = (T - R) / c, {
6036
6039
  translate: [h, p],
6037
6040
  scale: [m, d],
6038
6041
  rotate: 0,
@@ -6041,14 +6044,14 @@ const wc = (t) => ({
6041
6044
  value: `translate(${h}px, ${p}px) scale(${m}, ${d})`
6042
6045
  };
6043
6046
  }
6044
- return new O((o) => (E({
6047
+ return new O((o) => (L({
6045
6048
  minMaxXY: t,
6046
6049
  filteredMinMaxXYData: e,
6047
6050
  fullDataFormatter: n,
6048
6051
  layout: r
6049
6052
  }).pipe(
6050
- C(i),
6051
- L(async (s) => s)
6053
+ M(i),
6054
+ E(async (s) => s)
6052
6055
  ).subscribe((s) => {
6053
6056
  if (!s.filteredMinMaxXYData.minXDatum || !s.filteredMinMaxXYData.maxXDatum || s.filteredMinMaxXYData.minXDatum.value[0] == null || s.filteredMinMaxXYData.maxXDatum.value[0] == null || !s.filteredMinMaxXYData.minYDatum || !s.filteredMinMaxXYData.maxYDatum || s.filteredMinMaxXYData.minYDatum.value[1] == null || s.filteredMinMaxXYData.maxYDatum.value[1] == null)
6054
6057
  return;
@@ -6064,12 +6067,12 @@ const wc = (t) => ({
6064
6067
  }), function() {
6065
6068
  i.next(void 0);
6066
6069
  }));
6067
- }, Ec = ({ multiValueContainerPosition$: t, multiValueGraphicTransform$: e }) => E({
6070
+ }, Lc = ({ multiValueContainerPosition$: t, multiValueGraphicTransform$: e }) => L({
6068
6071
  multiValueContainerPosition: t,
6069
6072
  // multiValueAxesTransform: multiValueAxesTransform$,
6070
6073
  multiValueGraphicTransform: e
6071
6074
  }).pipe(
6072
- L(async (n) => n),
6075
+ E(async (n) => n),
6073
6076
  x((n) => n.multiValueContainerPosition.map((r, i) => [
6074
6077
  1 / n.multiValueGraphicTransform.scale[0] / n.multiValueContainerPosition[i].scale[0],
6075
6078
  1 / n.multiValueGraphicTransform.scale[1] / n.multiValueContainerPosition[i].scale[1]
@@ -6081,7 +6084,7 @@ const wc = (t) => ({
6081
6084
  x((v) => v.separateCategory),
6082
6085
  q(),
6083
6086
  y(1)
6084
- ), i = Tc({
6087
+ ), i = Fc({
6085
6088
  computedData$: e.computedData$,
6086
6089
  fullDataFormatter$: e.fullDataFormatter$,
6087
6090
  layout$: e.layout$
@@ -6113,28 +6116,28 @@ const wc = (t) => ({
6113
6116
  layout$: e.layout$
6114
6117
  }).pipe(
6115
6118
  y(1)
6116
- ), c = Cc({
6119
+ ), c = Mc({
6117
6120
  computedData$: e.computedData$
6118
6121
  }).pipe(
6119
6122
  y(1)
6120
- ), h = Mc({
6123
+ ), h = Tc({
6121
6124
  computedLayoutData$: f
6122
6125
  }).pipe(
6123
6126
  y(1)
6124
- ), p = Fc({
6127
+ ), p = Cc({
6125
6128
  visibleComputedLayoutData$: h,
6126
6129
  minMaxXY$: l,
6127
6130
  fullDataFormatter$: e.fullDataFormatter$
6128
6131
  }).pipe(
6129
6132
  y(1)
6130
- ), m = Lc({
6133
+ ), m = Ec({
6131
6134
  minMaxXY$: l,
6132
6135
  filteredMinMaxXYData$: p,
6133
6136
  fullDataFormatter$: e.fullDataFormatter$,
6134
6137
  layout$: e.layout$
6135
6138
  }).pipe(
6136
6139
  y(1)
6137
- ), d = Ec({
6140
+ ), d = Lc({
6138
6141
  multiValueContainerPosition$: i,
6139
6142
  // multiValueAxesTransform$: multiValueAxesTransform$,
6140
6143
  multiValueGraphicTransform$: m
@@ -6261,14 +6264,14 @@ const Oc = (t) => ({
6261
6264
  status: "success",
6262
6265
  columnName: "",
6263
6266
  expectToBe: ""
6264
- }), Rc = (t, e) => E({
6267
+ }), Bc = (t, e) => L({
6265
6268
  CategoryNodeMap: t,
6266
6269
  CategoryEdgeMap: e
6267
6270
  }).pipe(
6268
- L(async (n) => n),
6271
+ E(async (n) => n),
6269
6272
  x((n) => [...Array.from(n.CategoryNodeMap.keys()), ...Array.from(n.CategoryEdgeMap.keys())]),
6270
6273
  q((n, r) => JSON.stringify(n).length === JSON.stringify(r).length)
6271
- ), Bc = (t) => t.pipe(
6274
+ ), Rc = (t) => t.pipe(
6272
6275
  x((e) => {
6273
6276
  const n = /* @__PURE__ */ new Map();
6274
6277
  return e.nodes.forEach((r) => {
@@ -6282,11 +6285,11 @@ const Oc = (t) => ({
6282
6285
  n.set(r.id, r);
6283
6286
  }), n;
6284
6287
  })
6285
- ), Vc = ({ computedData$: t, NodeMap$: e }) => E({
6288
+ ), Vc = ({ computedData$: t, NodeMap$: e }) => L({
6286
6289
  computedData: t,
6287
6290
  NodeMap: e
6288
6291
  }).pipe(
6289
- L(async (n) => n),
6292
+ E(async (n) => n),
6290
6293
  x((n) => ({
6291
6294
  nodes: n.computedData.nodes.filter((r) => r.visible),
6292
6295
  edges: n.computedData.edges.filter((r) => r.visible).filter((r) => n.NodeMap.has(r.startNode.id) && n.NodeMap.has(r.endNode.id))
@@ -6314,11 +6317,11 @@ const Oc = (t) => ({
6314
6317
  datumList$: e.computedData$.pipe(x((c) => c.edges))
6315
6318
  }).pipe(
6316
6319
  y(1)
6317
- ), s = Bc(e.computedData$).pipe(
6320
+ ), s = Rc(e.computedData$).pipe(
6318
6321
  y(1)
6319
6322
  ), u = Ic(e.computedData$).pipe(
6320
6323
  y(1)
6321
- ), l = Rc(a, o).pipe(
6324
+ ), l = Bc(a, o).pipe(
6322
6325
  y(1)
6323
6326
  ), f = Vc({
6324
6327
  computedData$: e.computedData$,
@@ -6358,7 +6361,7 @@ class pf extends Ot {
6358
6361
  );
6359
6362
  }
6360
6363
  }
6361
- const Xc = (t) => F(t, {
6364
+ const Xc = (t) => C(t, {
6362
6365
  visibleFilter: {
6363
6366
  toBeTypes: ["Function"]
6364
6367
  },
@@ -6446,13 +6449,13 @@ const Xc = (t) => F(t, {
6446
6449
  throw Error(s);
6447
6450
  }
6448
6451
  return o;
6449
- }, Uc = (t) => F({ data: t }, {
6452
+ }, Uc = (t) => C({ data: t }, {
6450
6453
  data: {
6451
6454
  toBe: "DataTreeObj | DataTreeDatum[]",
6452
6455
  // 畢免資料量過大檢查不完,不深度檢查
6453
6456
  test: (n) => U(n) && n.id !== void 0
6454
6457
  }
6455
- }), zc = ({ subject: t, observer: e }) => {
6458
+ }), Hc = ({ subject: t, observer: e }) => {
6456
6459
  const n = Pt(e.fullChartParams$).pipe(
6457
6460
  y(1)
6458
6461
  ), r = ac({
@@ -6497,24 +6500,24 @@ class mf extends Ot {
6497
6500
  dataFormatterValidator: Xc,
6498
6501
  computedDataFn: Yc,
6499
6502
  dataValidator: Uc,
6500
- contextObserverCallback: zc
6503
+ contextObserverCallback: Hc
6501
6504
  },
6502
6505
  e,
6503
6506
  n
6504
6507
  );
6505
6508
  }
6506
6509
  }
6507
- function Hc({ chartType: t, config: e, initFn: n }) {
6510
+ function zc({ chartType: t, config: e, initFn: n }) {
6508
6511
  const r = new P(), i = /* @__PURE__ */ new WeakMap();
6509
6512
  let a = () => {
6510
6513
  }, o;
6511
6514
  const s = new Gn(e.defaultParams), u = new Gn({}), l = s.pipe(
6512
- L((f) => u.pipe(
6513
- C(r),
6515
+ E((f) => u.pipe(
6516
+ M(r),
6514
6517
  x((c) => {
6515
6518
  try {
6516
6519
  const { status: h, columnName: p, expectToBe: m } = e.validator(c, {
6517
- validateColumns: F
6520
+ validateColumns: C
6518
6521
  });
6519
6522
  if (h === "error")
6520
6523
  throw new Error(ct({
@@ -6564,7 +6567,7 @@ const wt = (t) => function(n) {
6564
6567
  return function(i) {
6565
6568
  return class {
6566
6569
  constructor() {
6567
- const o = Hc({
6570
+ const o = zc({
6568
6571
  chartType: t,
6569
6572
  config: n,
6570
6573
  initFn: i
@@ -6576,18 +6579,18 @@ const wt = (t) => function(n) {
6576
6579
  }, gf = wt("series"), yf = wt("grid"), vf = wt("multiGrid"), bf = wt("multiValue"), xf = wt("noneData"), wf = wt("relationship"), Df = wt("tree");
6577
6580
  export {
6578
6581
  Zc as DEFAULTL_DATA_RELATIONA,
6579
- Mi as DEFAULT_CHART_HEIGHT,
6582
+ Ti as DEFAULT_CHART_HEIGHT,
6580
6583
  Ae as DEFAULT_CHART_OPTIONS,
6581
6584
  hn as DEFAULT_CHART_PARAMS,
6582
- Ci as DEFAULT_CHART_WIDTH,
6585
+ Mi as DEFAULT_CHART_WIDTH,
6583
6586
  ve as DEFAULT_DATA_FORMATTER_CONTAINER,
6584
6587
  Kn as DEFAULT_DATA_FORMATTER_GRID,
6585
6588
  Jn as DEFAULT_DATA_FORMATTER_GRID_GRID,
6586
- Ti as DEFAULT_DATA_FORMATTER_GROUP_AXIS,
6589
+ Fi as DEFAULT_DATA_FORMATTER_GROUP_AXIS,
6587
6590
  Zn as DEFAULT_DATA_FORMATTER_MULTI_GRID,
6588
6591
  be as DEFAULT_DATA_FORMATTER_MULTI_GRID_GRID,
6589
6592
  Qn as DEFAULT_DATA_FORMATTER_MULTI_VALUE,
6590
- er as DEFAULT_DATA_FORMATTER_RELATIONAL,
6593
+ er as DEFAULT_DATA_FORMATTER_RELATIONSHIP,
6591
6594
  Wn as DEFAULT_DATA_FORMATTER_SERIES,
6592
6595
  tr as DEFAULT_DATA_FORMATTER_TREE,
6593
6596
  X as DEFAULT_DATA_FORMATTER_VALUE_AXIS,
@@ -6604,7 +6607,7 @@ export {
6604
6607
  lf as SeriesChart,
6605
6608
  mf as TreeChart,
6606
6609
  Yt as calcGridContainerLayout,
6607
- Rn as calcSeriesContainerLayout,
6610
+ Bn as calcSeriesContainerLayout,
6608
6611
  ye as categoryDataMapObservable,
6609
6612
  oc as categoryLabelsObservable,
6610
6613
  vi as computedStackedDataObservables,
@@ -6612,12 +6615,12 @@ export {
6612
6615
  of as createAxisToValueScale,
6613
6616
  nn as createDefaultCategoryLabel,
6614
6617
  _e as createDefaultDatumId,
6615
- Rr as createDefaultGroupLabel,
6618
+ Br as createDefaultGroupLabel,
6616
6619
  en as createDefaultSeriesLabel,
6617
6620
  Nu as createGridGroupLabels,
6618
- Br as createGridSeriesLabels,
6621
+ Rr as createGridSeriesLabels,
6619
6622
  sf as createLabelToAxisScale,
6620
- Ru as createMultiGridGroupLabels,
6623
+ Bu as createMultiGridGroupLabels,
6621
6624
  ku as createMultiGridSeriesLabels,
6622
6625
  ut as createValueToAxisScale,
6623
6626
  yf as defineGridPlugin,
@@ -6636,7 +6639,7 @@ export {
6636
6639
  rf as getMinMaxMultiValue,
6637
6640
  af as getMinMaxMultiValueXY,
6638
6641
  ef as getMinMaxSeries,
6639
- Bu as getMinMaxValue,
6642
+ Ru as getMinMaxValue,
6640
6643
  Di as gridAxesReverseTransformObservable,
6641
6644
  mi as gridAxesSizeObservable,
6642
6645
  wi as gridAxesTransformObservable,
@@ -6650,8 +6653,8 @@ export {
6650
6653
  hi as groupDataMapObservable,
6651
6654
  bi as groupScaleDomainValueObservable,
6652
6655
  xt as highlightObservable,
6653
- Li as isDom,
6654
- Fi as isFunction,
6656
+ Ei as isDom,
6657
+ Ci as isFunction,
6655
6658
  U as isPlainObject,
6656
6659
  mt as mergeOptionsWithDefault,
6657
6660
  Ai as multiGridContainerObservable,
@@ -6665,7 +6668,7 @@ export {
6665
6668
  tc as seriesContainerPositionObservable,
6666
6669
  fn as seriesDataMapObservable,
6667
6670
  Zl as seriesLabelsObservable,
6668
- Hn as seriesVisibleComputedDataObservable,
6671
+ zn as seriesVisibleComputedDataObservable,
6669
6672
  Pt as textSizePxObservable,
6670
6673
  Iu as transposeData,
6671
6674
  sc as treeVisibleComputedDataObservable