@orbcharts/core 3.0.0-alpha.50 → 3.0.0-alpha.52

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- const hi = {
1
+ const vi = {
2
2
  // preset: {} // 預設為空
3
3
  }, Hn = {
4
4
  top: 60,
@@ -34,12 +34,12 @@ const hi = {
34
34
  },
35
35
  transitionDuration: 800,
36
36
  transitionEase: "easeCubic"
37
- }, pi = 800, di = 500, tt = {
37
+ }, bi = 800, wi = 500, tt = {
38
38
  position: "left",
39
39
  scaleDomain: [0, "auto"],
40
40
  scaleRange: [0, 0.9],
41
41
  label: ""
42
- }, mi = {
42
+ }, xi = {
43
43
  position: "bottom",
44
44
  scaleDomain: [0, "auto"],
45
45
  scalePadding: 0.5,
@@ -48,7 +48,7 @@ const hi = {
48
48
  gap: 120,
49
49
  rowAmount: 1,
50
50
  columnAmount: 1
51
- }, gi = {
51
+ }, Xn = {
52
52
  type: "series",
53
53
  visibleFilter: (t, e) => !0,
54
54
  sort: null,
@@ -71,27 +71,31 @@ const hi = {
71
71
  // rowIndex % chartParams.colors[chartParams.colorScheme].series.length
72
72
  // ]
73
73
  // },
74
- }, Xn = {
74
+ };
75
+ Xn.visibleFilter.toString = () => "(datum, context) => true";
76
+ const qn = {
75
77
  seriesDirection: "row",
76
78
  rowLabels: [],
77
79
  columnLabels: [],
78
80
  valueAxis: { ...tt },
79
- groupAxis: { ...mi },
81
+ groupAxis: { ...xi },
80
82
  separateSeries: !1
81
83
  // slotIndex: 0,
82
84
  // seriesSlotIndexes: null
83
- }, yi = {
85
+ }, Yn = {
84
86
  type: "grid",
85
87
  visibleFilter: (t, e) => !0,
86
88
  grid: {
87
- ...Xn
89
+ ...qn
88
90
  },
89
91
  container: {
90
92
  ...Re
91
93
  }
92
- }, se = {
93
- ...Xn
94
- }, vi = {
94
+ };
95
+ Yn.visibleFilter.toString = () => "(datum, context) => true";
96
+ const se = {
97
+ ...qn
98
+ }, Bn = {
95
99
  type: "multiGrid",
96
100
  visibleFilter: (t, e) => !0,
97
101
  gridList: [
@@ -103,19 +107,25 @@ const hi = {
103
107
  container: {
104
108
  ...Re
105
109
  }
106
- }, bi = {
110
+ };
111
+ Bn.visibleFilter.toString = () => "(datum, context) => true";
112
+ const Wn = {
107
113
  type: "multiValue",
108
114
  visibleFilter: (t, e) => !0,
109
115
  categoryLabels: [],
110
116
  multiValue: [],
111
117
  xAxis: { ...tt },
112
118
  yAxis: { ...tt }
113
- }, wi = {
119
+ };
120
+ Wn.visibleFilter.toString = () => "(datum, context) => true";
121
+ const jn = {
114
122
  type: "tree",
115
123
  visibleFilter: (t, e) => !0,
116
124
  // labelFormat: (datum: any) => (datum && datum.label) ?? '',
117
125
  categoryLabels: []
118
- }, xi = {
126
+ };
127
+ jn.visibleFilter.toString = () => "(datum, context) => true";
128
+ const Jn = {
119
129
  type: "relationship",
120
130
  visibleFilter: (t, e) => !0,
121
131
  categoryLabels: []
@@ -128,13 +138,14 @@ const hi = {
128
138
  // descriptionFormat: (edge: any) => (edge && edge.label) ?? ''
129
139
  // },
130
140
  };
141
+ Jn.visibleFilter.toString = () => "(datum, context) => true";
131
142
  function Yt(t, e) {
132
143
  return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
133
144
  }
134
145
  function _i(t, e) {
135
146
  return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
136
147
  }
137
- function qn(t) {
148
+ function Kn(t) {
138
149
  let e, n, r;
139
150
  t.length !== 2 ? (e = Yt, n = (u, l) => Yt(t(u), l), r = (u, l) => t(u) - l) : (e = t === Yt || t === _i ? t : $i, n = t, r = t);
140
151
  function i(u, l, s = 0, f = u.length) {
@@ -169,8 +180,8 @@ function $i() {
169
180
  function Di(t) {
170
181
  return t === null ? NaN : +t;
171
182
  }
172
- const Ai = qn(Yt), Yn = Ai.right;
173
- qn(Di).center;
183
+ const Ai = Kn(Yt), Zn = Ai.right;
184
+ Kn(Di).center;
174
185
  class un extends Map {
175
186
  constructor(e, n = Ci) {
176
187
  if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), e != null) for (const [r, i] of e) this.set(r, i);
@@ -203,9 +214,9 @@ function Mi({ _intern: t, _key: e }, n) {
203
214
  function Ci(t) {
204
215
  return t !== null && typeof t == "object" ? t.valueOf() : t;
205
216
  }
206
- const Pi = Math.sqrt(50), Ei = Math.sqrt(10), Fi = Math.sqrt(2);
217
+ const Pi = Math.sqrt(50), Fi = Math.sqrt(10), Ei = Math.sqrt(2);
207
218
  function Kt(t, e, n) {
208
- const r = (e - t) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / Math.pow(10, i), o = a >= Pi ? 10 : a >= Ei ? 5 : a >= Fi ? 2 : 1;
219
+ const r = (e - t) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / Math.pow(10, i), o = a >= Pi ? 10 : a >= Fi ? 5 : a >= Ei ? 2 : 1;
209
220
  let u, l, s;
210
221
  return i < 0 ? (s = Math.pow(10, -i) / o, u = Math.round(t * s), l = Math.round(e * s), u / s < t && ++u, l / s > e && --l, s = -s) : (s = Math.pow(10, i) * o, u = Math.round(t / s), l = Math.round(e / s), u * s < t && ++u, l * s > e && --l), l < u && 0.5 <= n && n < 2 ? Kt(t, e, n * 2) : [u, l, s];
211
222
  }
@@ -238,7 +249,7 @@ function Oi(t, e, n) {
238
249
  }
239
250
  var Ni = { value: () => {
240
251
  } };
241
- function Bn() {
252
+ function Qn() {
242
253
  for (var t = 0, e = arguments.length, n = {}, r; t < e; ++t) {
243
254
  if (!(r = arguments[t] + "") || r in n || /[\s.]/.test(r)) throw new Error("illegal type: " + r);
244
255
  n[r] = [];
@@ -255,7 +266,7 @@ function ki(t, e) {
255
266
  return { type: n, name: r };
256
267
  });
257
268
  }
258
- Bt.prototype = Bn.prototype = {
269
+ Bt.prototype = Qn.prototype = {
259
270
  constructor: Bt,
260
271
  on: function(t, e) {
261
272
  var n = this._, r = ki(t + "", n), i, a = -1, o = r.length;
@@ -320,7 +331,7 @@ function Gi(t) {
320
331
  return this.ownerDocument.createElementNS(t.space, t.local);
321
332
  };
322
333
  }
323
- function Wn(t) {
334
+ function tr(t) {
324
335
  var e = le(t);
325
336
  return (e.local ? Gi : Ri)(e);
326
337
  }
@@ -344,7 +355,7 @@ function Ui(t) {
344
355
  function Hi() {
345
356
  return [];
346
357
  }
347
- function jn(t) {
358
+ function er(t) {
348
359
  return t == null ? Hi : function() {
349
360
  return this.querySelectorAll(t);
350
361
  };
@@ -355,18 +366,18 @@ function Xi(t) {
355
366
  };
356
367
  }
357
368
  function qi(t) {
358
- typeof t == "function" ? t = Xi(t) : t = jn(t);
369
+ typeof t == "function" ? t = Xi(t) : t = er(t);
359
370
  for (var e = this._groups, n = e.length, r = [], i = [], a = 0; a < n; ++a)
360
371
  for (var o = e[a], u = o.length, l, s = 0; s < u; ++s)
361
372
  (l = o[s]) && (r.push(t.call(l, l.__data__, s, o)), i.push(l));
362
373
  return new z(r, i);
363
374
  }
364
- function Jn(t) {
375
+ function nr(t) {
365
376
  return function() {
366
377
  return this.matches(t);
367
378
  };
368
379
  }
369
- function Kn(t) {
380
+ function rr(t) {
370
381
  return function(e) {
371
382
  return e.matches(t);
372
383
  };
@@ -381,7 +392,7 @@ function Wi() {
381
392
  return this.firstElementChild;
382
393
  }
383
394
  function ji(t) {
384
- return this.select(t == null ? Wi : Bi(typeof t == "function" ? t : Kn(t)));
395
+ return this.select(t == null ? Wi : Bi(typeof t == "function" ? t : rr(t)));
385
396
  }
386
397
  var Ji = Array.prototype.filter;
387
398
  function Ki() {
@@ -393,20 +404,20 @@ function Zi(t) {
393
404
  };
394
405
  }
395
406
  function Qi(t) {
396
- return this.selectAll(t == null ? Ki : Zi(typeof t == "function" ? t : Kn(t)));
407
+ return this.selectAll(t == null ? Ki : Zi(typeof t == "function" ? t : rr(t)));
397
408
  }
398
409
  function ta(t) {
399
- typeof t != "function" && (t = Jn(t));
410
+ typeof t != "function" && (t = nr(t));
400
411
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
401
412
  for (var a = e[i], o = a.length, u = r[i] = [], l, s = 0; s < o; ++s)
402
413
  (l = a[s]) && t.call(l, l.__data__, s, a) && u.push(l);
403
414
  return new z(r, this._parents);
404
415
  }
405
- function Zn(t) {
416
+ function ir(t) {
406
417
  return new Array(t.length);
407
418
  }
408
419
  function ea() {
409
- return new z(this._enter || this._groups.map(Zn), this._parents);
420
+ return new z(this._enter || this._groups.map(ir), this._parents);
410
421
  }
411
422
  function Zt(t, e) {
412
423
  this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e;
@@ -468,7 +479,7 @@ function ua(t) {
468
479
  return typeof t == "object" && "length" in t ? t : Array.from(t);
469
480
  }
470
481
  function sa() {
471
- return new z(this._exit || this._groups.map(Zn), this._parents);
482
+ return new z(this._exit || this._groups.map(ir), this._parents);
472
483
  }
473
484
  function la(t, e, n) {
474
485
  var r = this.enter(), i = this, a = this.exit();
@@ -572,7 +583,7 @@ function Sa(t, e) {
572
583
  }
573
584
  return this.each((e == null ? n.local ? xa : wa : typeof e == "function" ? n.local ? Aa : Da : n.local ? $a : _a)(n, e));
574
585
  }
575
- function Qn(t) {
586
+ function ar(t) {
576
587
  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
577
588
  }
578
589
  function Ma(t) {
@@ -591,13 +602,13 @@ function Pa(t, e, n) {
591
602
  r == null ? this.style.removeProperty(t) : this.style.setProperty(t, r, n);
592
603
  };
593
604
  }
594
- function Ea(t, e, n) {
605
+ function Fa(t, e, n) {
595
606
  return arguments.length > 1 ? this.each((e == null ? Ma : typeof e == "function" ? Pa : Ca)(t, e, n ?? "")) : yt(this.node(), t);
596
607
  }
597
608
  function yt(t, e) {
598
- return t.style.getPropertyValue(e) || Qn(t).getComputedStyle(t, null).getPropertyValue(e);
609
+ return t.style.getPropertyValue(e) || ar(t).getComputedStyle(t, null).getPropertyValue(e);
599
610
  }
600
- function Fa(t) {
611
+ function Ea(t) {
601
612
  return function() {
602
613
  delete this[t];
603
614
  };
@@ -614,18 +625,18 @@ function Ta(t, e) {
614
625
  };
615
626
  }
616
627
  function Oa(t, e) {
617
- return arguments.length > 1 ? this.each((e == null ? Fa : typeof e == "function" ? Ta : La)(t, e)) : this.node()[t];
628
+ return arguments.length > 1 ? this.each((e == null ? Ea : typeof e == "function" ? Ta : La)(t, e)) : this.node()[t];
618
629
  }
619
- function tr(t) {
630
+ function or(t) {
620
631
  return t.trim().split(/^|\s+/);
621
632
  }
622
633
  function Ve(t) {
623
- return t.classList || new er(t);
634
+ return t.classList || new ur(t);
624
635
  }
625
- function er(t) {
626
- this._node = t, this._names = tr(t.getAttribute("class") || "");
636
+ function ur(t) {
637
+ this._node = t, this._names = or(t.getAttribute("class") || "");
627
638
  }
628
- er.prototype = {
639
+ ur.prototype = {
629
640
  add: function(t) {
630
641
  var e = this._names.indexOf(t);
631
642
  e < 0 && (this._names.push(t), this._node.setAttribute("class", this._names.join(" ")));
@@ -638,29 +649,29 @@ er.prototype = {
638
649
  return this._names.indexOf(t) >= 0;
639
650
  }
640
651
  };
641
- function nr(t, e) {
652
+ function sr(t, e) {
642
653
  for (var n = Ve(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
643
654
  }
644
- function rr(t, e) {
655
+ function lr(t, e) {
645
656
  for (var n = Ve(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
646
657
  }
647
658
  function Na(t) {
648
659
  return function() {
649
- nr(this, t);
660
+ sr(this, t);
650
661
  };
651
662
  }
652
663
  function ka(t) {
653
664
  return function() {
654
- rr(this, t);
665
+ lr(this, t);
655
666
  };
656
667
  }
657
668
  function Ia(t, e) {
658
669
  return function() {
659
- (e.apply(this, arguments) ? nr : rr)(this, t);
670
+ (e.apply(this, arguments) ? sr : lr)(this, t);
660
671
  };
661
672
  }
662
673
  function Ra(t, e) {
663
- var n = tr(t + "");
674
+ var n = or(t + "");
664
675
  if (arguments.length < 2) {
665
676
  for (var r = Ve(this.node()), i = -1, a = n.length; ++i < a; ) if (!r.contains(n[i])) return !1;
666
677
  return !0;
@@ -714,7 +725,7 @@ function Ja() {
714
725
  return this.each(ja);
715
726
  }
716
727
  function Ka(t) {
717
- var e = typeof t == "function" ? t : Wn(t);
728
+ var e = typeof t == "function" ? t : tr(t);
718
729
  return this.select(function() {
719
730
  return this.appendChild(e.apply(this, arguments));
720
731
  });
@@ -723,7 +734,7 @@ function Za() {
723
734
  return null;
724
735
  }
725
736
  function Qa(t, e) {
726
- var n = typeof t == "function" ? t : Wn(t), r = e == null ? Za : typeof e == "function" ? e : Ge(e);
737
+ var n = typeof t == "function" ? t : tr(t), r = e == null ? Za : typeof e == "function" ? e : Ge(e);
727
738
  return this.select(function() {
728
739
  return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
729
740
  });
@@ -798,18 +809,18 @@ function co(t, e, n) {
798
809
  for (u = e ? lo : so, i = 0; i < a; ++i) this.each(u(r[i], e, n));
799
810
  return this;
800
811
  }
801
- function ir(t, e, n) {
802
- var r = Qn(t), i = r.CustomEvent;
812
+ function cr(t, e, n) {
813
+ var r = ar(t), i = r.CustomEvent;
803
814
  typeof i == "function" ? i = new i(e, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(e, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(e, !1, !1)), t.dispatchEvent(i);
804
815
  }
805
816
  function fo(t, e) {
806
817
  return function() {
807
- return ir(this, t, e);
818
+ return cr(this, t, e);
808
819
  };
809
820
  }
810
821
  function ho(t, e) {
811
822
  return function() {
812
- return ir(this, t, e.apply(this, arguments));
823
+ return cr(this, t, e.apply(this, arguments));
813
824
  };
814
825
  }
815
826
  function po(t, e) {
@@ -820,12 +831,12 @@ function* mo() {
820
831
  for (var r = t[e], i = 0, a = r.length, o; i < a; ++i)
821
832
  (o = r[i]) && (yield o);
822
833
  }
823
- var ar = [null];
834
+ var fr = [null];
824
835
  function z(t, e) {
825
836
  this._groups = t, this._parents = e;
826
837
  }
827
838
  function Nt() {
828
- return new z([[document.documentElement]], ar);
839
+ return new z([[document.documentElement]], fr);
829
840
  }
830
841
  function go() {
831
842
  return this;
@@ -852,7 +863,7 @@ z.prototype = Nt.prototype = {
852
863
  empty: va,
853
864
  each: ba,
854
865
  attr: Sa,
855
- style: Ea,
866
+ style: Fa,
856
867
  property: Oa,
857
868
  classed: Ra,
858
869
  text: Ua,
@@ -869,19 +880,19 @@ z.prototype = Nt.prototype = {
869
880
  [Symbol.iterator]: mo
870
881
  };
871
882
  function Vt(t) {
872
- return typeof t == "string" ? new z([[document.querySelector(t)]], [document.documentElement]) : new z([[t]], ar);
883
+ return typeof t == "string" ? new z([[document.querySelector(t)]], [document.documentElement]) : new z([[t]], fr);
873
884
  }
874
885
  function ze(t, e, n) {
875
886
  t.prototype = e.prototype = n, n.constructor = t;
876
887
  }
877
- function or(t, e) {
888
+ function hr(t, e) {
878
889
  var n = Object.create(t.prototype);
879
890
  for (var r in e) n[r] = e[r];
880
891
  return n;
881
892
  }
882
893
  function kt() {
883
894
  }
884
- var Ft = 0.7, Qt = 1 / Ft, mt = "\\s*([+-]?\\d+)\\s*", Lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", B = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", yo = /^#([0-9a-f]{3,8})$/, vo = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), bo = new RegExp(`^rgb\\(${B},${B},${B}\\)$`), wo = new RegExp(`^rgba\\(${mt},${mt},${mt},${Lt}\\)$`), xo = new RegExp(`^rgba\\(${B},${B},${B},${Lt}\\)$`), _o = new RegExp(`^hsl\\(${Lt},${B},${B}\\)$`), $o = new RegExp(`^hsla\\(${Lt},${B},${B},${Lt}\\)$`), fn = {
895
+ var Et = 0.7, Qt = 1 / Et, mt = "\\s*([+-]?\\d+)\\s*", Lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", B = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", yo = /^#([0-9a-f]{3,8})$/, vo = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), bo = new RegExp(`^rgb\\(${B},${B},${B}\\)$`), wo = new RegExp(`^rgba\\(${mt},${mt},${mt},${Lt}\\)$`), xo = new RegExp(`^rgba\\(${B},${B},${B},${Lt}\\)$`), _o = new RegExp(`^hsl\\(${Lt},${B},${B}\\)$`), $o = new RegExp(`^hsla\\(${Lt},${B},${B},${Lt}\\)$`), fn = {
885
896
  aliceblue: 15792383,
886
897
  antiquewhite: 16444375,
887
898
  aqua: 65535,
@@ -1053,7 +1064,7 @@ function Do() {
1053
1064
  return this.rgb().formatHex8();
1054
1065
  }
1055
1066
  function Ao() {
1056
- return ur(this).formatHsl();
1067
+ return pr(this).formatHsl();
1057
1068
  }
1058
1069
  function pn() {
1059
1070
  return this.rgb().formatRgb();
@@ -1077,12 +1088,12 @@ function Ae(t, e, n, r) {
1077
1088
  function G(t, e, n, r) {
1078
1089
  this.r = +t, this.g = +e, this.b = +n, this.opacity = +r;
1079
1090
  }
1080
- ze(G, Ae, or(kt, {
1091
+ ze(G, Ae, hr(kt, {
1081
1092
  brighter(t) {
1082
1093
  return t = t == null ? Qt : Math.pow(Qt, t), new G(this.r * t, this.g * t, this.b * t, this.opacity);
1083
1094
  },
1084
1095
  darker(t) {
1085
- return t = t == null ? Ft : Math.pow(Ft, t), new G(this.r * t, this.g * t, this.b * t, this.opacity);
1096
+ return t = t == null ? Et : Math.pow(Et, t), new G(this.r * t, this.g * t, this.b * t, this.opacity);
1086
1097
  },
1087
1098
  rgb() {
1088
1099
  return this;
@@ -1122,7 +1133,7 @@ function st(t) {
1122
1133
  function yn(t, e, n, r) {
1123
1134
  return r <= 0 ? t = e = n = NaN : n <= 0 || n >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new X(t, e, n, r);
1124
1135
  }
1125
- function ur(t) {
1136
+ function pr(t) {
1126
1137
  if (t instanceof X) return new X(t.h, t.s, t.l, t.opacity);
1127
1138
  if (t instanceof kt || (t = ft(t)), !t) return new X();
1128
1139
  if (t instanceof X) return t;
@@ -1131,17 +1142,17 @@ function ur(t) {
1131
1142
  return u ? (e === a ? o = (n - r) / u + (n < r) * 6 : n === a ? o = (r - e) / u + 2 : o = (e - n) / u + 4, u /= l < 0.5 ? a + i : 2 - a - i, o *= 60) : u = l > 0 && l < 1 ? 0 : o, new X(o, u, l, t.opacity);
1132
1143
  }
1133
1144
  function Co(t, e, n, r) {
1134
- return arguments.length === 1 ? ur(t) : new X(t, e, n, r ?? 1);
1145
+ return arguments.length === 1 ? pr(t) : new X(t, e, n, r ?? 1);
1135
1146
  }
1136
1147
  function X(t, e, n, r) {
1137
1148
  this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
1138
1149
  }
1139
- ze(X, Co, or(kt, {
1150
+ ze(X, Co, hr(kt, {
1140
1151
  brighter(t) {
1141
1152
  return t = t == null ? Qt : Math.pow(Qt, t), new X(this.h, this.s, this.l * t, this.opacity);
1142
1153
  },
1143
1154
  darker(t) {
1144
- return t = t == null ? Ft : Math.pow(Ft, t), new X(this.h, this.s, this.l * t, this.opacity);
1155
+ return t = t == null ? Et : Math.pow(Et, t), new X(this.h, this.s, this.l * t, this.opacity);
1145
1156
  },
1146
1157
  rgb() {
1147
1158
  var t = this.h % 360 + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < 0.5 ? n : 1 - n) * e, i = 2 * n - r;
@@ -1178,24 +1189,24 @@ function Po(t, e) {
1178
1189
  return t + n * e;
1179
1190
  };
1180
1191
  }
1181
- function Eo(t, e, n) {
1192
+ function Fo(t, e, n) {
1182
1193
  return t = Math.pow(t, n), e = Math.pow(e, n) - t, n = 1 / n, function(r) {
1183
1194
  return Math.pow(t + r * e, n);
1184
1195
  };
1185
1196
  }
1186
- function Fo(t) {
1187
- return (t = +t) == 1 ? sr : function(e, n) {
1188
- return n - e ? Eo(e, n, t) : Ue(isNaN(e) ? n : e);
1197
+ function Eo(t) {
1198
+ return (t = +t) == 1 ? dr : function(e, n) {
1199
+ return n - e ? Fo(e, n, t) : Ue(isNaN(e) ? n : e);
1189
1200
  };
1190
1201
  }
1191
- function sr(t, e) {
1202
+ function dr(t, e) {
1192
1203
  var n = e - t;
1193
1204
  return n ? Po(t, n) : Ue(isNaN(t) ? e : t);
1194
1205
  }
1195
1206
  const ee = function t(e) {
1196
- var n = Fo(e);
1207
+ var n = Eo(e);
1197
1208
  function r(i, a) {
1198
- var o = n((i = Ae(i)).r, (a = Ae(a)).r), u = n(i.g, a.g), l = n(i.b, a.b), s = sr(i.opacity, a.opacity);
1209
+ var o = n((i = Ae(i)).r, (a = Ae(a)).r), u = n(i.g, a.g), l = n(i.b, a.b), s = dr(i.opacity, a.opacity);
1199
1210
  return function(f) {
1200
1211
  return i.r = o(f), i.g = u(f), i.b = l(f), i.opacity = s(f), i + "";
1201
1212
  };
@@ -1254,7 +1265,7 @@ function Ro(t) {
1254
1265
  return t(e) + "";
1255
1266
  };
1256
1267
  }
1257
- function lr(t, e) {
1268
+ function mr(t, e) {
1258
1269
  var n = Se.lastIndex = ve.lastIndex = 0, r, i, a, o = -1, u = [], l = [];
1259
1270
  for (t = t + "", e = e + ""; (r = Se.exec(t)) && (i = ve.exec(e)); )
1260
1271
  (a = i.index) > n && (a = e.slice(n, a), u[o] ? u[o] += a : u[++o] = a), (r = r[0]) === (i = i[0]) ? u[o] ? u[o] += i : u[++o] = i : (u[++o] = null, l.push({ i: o, x: H(r, i) })), n = ve.lastIndex;
@@ -1265,7 +1276,7 @@ function lr(t, e) {
1265
1276
  }
1266
1277
  function He(t, e) {
1267
1278
  var n = typeof e, r;
1268
- return e == null || n === "boolean" ? Ue(e) : (n === "number" ? H : n === "string" ? (r = ft(e)) ? (e = r, ee) : lr : e instanceof ft ? ee : e instanceof Date ? No : To(e) ? Lo : Array.isArray(e) ? Oo : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? ko : H)(t, e);
1279
+ return e == null || n === "boolean" ? Ue(e) : (n === "number" ? H : n === "string" ? (r = ft(e)) ? (e = r, ee) : mr : e instanceof ft ? ee : e instanceof Date ? No : To(e) ? Lo : Array.isArray(e) ? Oo : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? ko : H)(t, e);
1269
1280
  }
1270
1281
  function Go(t, e) {
1271
1282
  return t = +t, e = +e, function(n) {
@@ -1280,7 +1291,7 @@ var bn = 180 / Math.PI, Me = {
1280
1291
  scaleX: 1,
1281
1292
  scaleY: 1
1282
1293
  };
1283
- function cr(t, e, n, r, i, a) {
1294
+ function gr(t, e, n, r, i, a) {
1284
1295
  var o, u, l;
1285
1296
  return (o = Math.sqrt(t * t + e * e)) && (t /= o, e /= o), (l = t * n + e * r) && (n -= t * l, r -= e * l), (u = Math.sqrt(n * n + r * r)) && (n /= u, r /= u, l /= u), t * r < e * n && (t = -t, e = -e, l = -l, o = -o), {
1286
1297
  translateX: i,
@@ -1294,12 +1305,12 @@ function cr(t, e, n, r, i, a) {
1294
1305
  var Ht;
1295
1306
  function Vo(t) {
1296
1307
  const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
1297
- return e.isIdentity ? Me : cr(e.a, e.b, e.c, e.d, e.e, e.f);
1308
+ return e.isIdentity ? Me : gr(e.a, e.b, e.c, e.d, e.e, e.f);
1298
1309
  }
1299
1310
  function zo(t) {
1300
- return t == null || (Ht || (Ht = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ht.setAttribute("transform", t), !(t = Ht.transform.baseVal.consolidate())) ? Me : (t = t.matrix, cr(t.a, t.b, t.c, t.d, t.e, t.f));
1311
+ return t == null || (Ht || (Ht = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ht.setAttribute("transform", t), !(t = Ht.transform.baseVal.consolidate())) ? Me : (t = t.matrix, gr(t.a, t.b, t.c, t.d, t.e, t.f));
1301
1312
  }
1302
- function fr(t, e, n, r) {
1313
+ function yr(t, e, n, r) {
1303
1314
  function i(s) {
1304
1315
  return s.length ? s.pop() + " " : "";
1305
1316
  }
@@ -1329,11 +1340,11 @@ function fr(t, e, n, r) {
1329
1340
  };
1330
1341
  };
1331
1342
  }
1332
- var Uo = fr(Vo, "px, ", "px)", "deg)"), Ho = fr(zo, ", ", ")", ")"), vt = 0, Mt = 0, St = 0, hr = 1e3, ne, Ct, re = 0, ht = 0, ce = 0, Tt = typeof performance == "object" && performance.now ? performance : Date, pr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1343
+ var Uo = yr(Vo, "px, ", "px)", "deg)"), Ho = yr(zo, ", ", ")", ")"), vt = 0, Mt = 0, St = 0, vr = 1e3, ne, Ct, re = 0, ht = 0, ce = 0, Tt = typeof performance == "object" && performance.now ? performance : Date, br = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1333
1344
  setTimeout(t, 17);
1334
1345
  };
1335
1346
  function Xe() {
1336
- return ht || (pr(Xo), ht = Tt.now() + ce);
1347
+ return ht || (br(Xo), ht = Tt.now() + ce);
1337
1348
  }
1338
1349
  function Xo() {
1339
1350
  ht = 0;
@@ -1341,7 +1352,7 @@ function Xo() {
1341
1352
  function ie() {
1342
1353
  this._call = this._time = this._next = null;
1343
1354
  }
1344
- ie.prototype = dr.prototype = {
1355
+ ie.prototype = wr.prototype = {
1345
1356
  constructor: ie,
1346
1357
  restart: function(t, e, n) {
1347
1358
  if (typeof t != "function") throw new TypeError("callback is not a function");
@@ -1351,7 +1362,7 @@ ie.prototype = dr.prototype = {
1351
1362
  this._call && (this._call = null, this._time = 1 / 0, Ce());
1352
1363
  }
1353
1364
  };
1354
- function dr(t, e, n) {
1365
+ function wr(t, e, n) {
1355
1366
  var r = new ie();
1356
1367
  return r.restart(t, e, n), r;
1357
1368
  }
@@ -1371,7 +1382,7 @@ function wn() {
1371
1382
  }
1372
1383
  function Yo() {
1373
1384
  var t = Tt.now(), e = t - re;
1374
- e > hr && (ce -= e, re = t);
1385
+ e > vr && (ce -= e, re = t);
1375
1386
  }
1376
1387
  function Bo() {
1377
1388
  for (var t, e = ne, n, r = 1 / 0; e; )
@@ -1382,7 +1393,7 @@ function Ce(t) {
1382
1393
  if (!vt) {
1383
1394
  Mt && (Mt = clearTimeout(Mt));
1384
1395
  var e = t - ht;
1385
- e > 24 ? (t < 1 / 0 && (Mt = setTimeout(wn, t - Tt.now() - ce)), St && (St = clearInterval(St))) : (St || (re = Tt.now(), St = setInterval(Yo, hr)), vt = 1, pr(wn));
1396
+ e > 24 ? (t < 1 / 0 && (Mt = setTimeout(wn, t - Tt.now() - ce)), St && (St = clearInterval(St))) : (St || (re = Tt.now(), St = setInterval(Yo, vr)), vt = 1, br(wn));
1386
1397
  }
1387
1398
  }
1388
1399
  function xn(t, e, n) {
@@ -1391,7 +1402,7 @@ function xn(t, e, n) {
1391
1402
  r.stop(), t(i + e);
1392
1403
  }, e, n), r;
1393
1404
  }
1394
- var Wo = Bn("start", "end", "cancel", "interrupt"), jo = [], mr = 0, _n = 1, Pe = 2, Wt = 3, $n = 4, Ee = 5, jt = 6;
1405
+ var Wo = Qn("start", "end", "cancel", "interrupt"), jo = [], xr = 0, _n = 1, Pe = 2, Wt = 3, $n = 4, Fe = 5, jt = 6;
1395
1406
  function fe(t, e, n, r, i, a) {
1396
1407
  var o = t.__transition;
1397
1408
  if (!o) t.__transition = {};
@@ -1409,12 +1420,12 @@ function fe(t, e, n, r, i, a) {
1409
1420
  duration: a.duration,
1410
1421
  ease: a.ease,
1411
1422
  timer: null,
1412
- state: mr
1423
+ state: xr
1413
1424
  });
1414
1425
  }
1415
1426
  function qe(t, e) {
1416
1427
  var n = q(t, e);
1417
- if (n.state > mr) throw new Error("too late; already scheduled");
1428
+ if (n.state > xr) throw new Error("too late; already scheduled");
1418
1429
  return n;
1419
1430
  }
1420
1431
  function j(t, e) {
@@ -1429,7 +1440,7 @@ function q(t, e) {
1429
1440
  }
1430
1441
  function Jo(t, e, n) {
1431
1442
  var r = t.__transition, i;
1432
- r[e] = n, n.timer = dr(a, 0, n.time);
1443
+ r[e] = n, n.timer = wr(a, 0, n.time);
1433
1444
  function a(s) {
1434
1445
  n.state = _n, n.timer.restart(o, n.delay, n.time), n.delay <= s && o(s - n.delay);
1435
1446
  }
@@ -1450,9 +1461,9 @@ function Jo(t, e, n) {
1450
1461
  }
1451
1462
  }
1452
1463
  function u(s) {
1453
- for (var f = s < n.duration ? n.ease.call(null, s / n.duration) : (n.timer.restart(l), n.state = Ee, 1), c = -1, h = i.length; ++c < h; )
1464
+ for (var f = s < n.duration ? n.ease.call(null, s / n.duration) : (n.timer.restart(l), n.state = Fe, 1), c = -1, h = i.length; ++c < h; )
1454
1465
  i[c].call(t, f);
1455
- n.state === Ee && (n.on.call("end", t, t.__data__, n.index, n.group), l());
1466
+ n.state === Fe && (n.on.call("end", t, t.__data__, n.index, n.group), l());
1456
1467
  }
1457
1468
  function l() {
1458
1469
  n.state = jt, n.timer.stop(), delete r[e];
@@ -1469,7 +1480,7 @@ function Ko(t, e) {
1469
1480
  a = !1;
1470
1481
  continue;
1471
1482
  }
1472
- i = r.state > Pe && r.state < Ee, r.state = jt, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[o];
1483
+ i = r.state > Pe && r.state < Fe, r.state = jt, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[o];
1473
1484
  }
1474
1485
  a && delete t.__transition;
1475
1486
  }
@@ -1530,9 +1541,9 @@ function Ye(t, e, n) {
1530
1541
  return q(i, r).value[e];
1531
1542
  };
1532
1543
  }
1533
- function gr(t, e) {
1544
+ function _r(t, e) {
1534
1545
  var n;
1535
- return (typeof e == "number" ? H : e instanceof ft ? ee : (n = ft(e)) ? (e = n, ee) : lr)(t, e);
1546
+ return (typeof e == "number" ? H : e instanceof ft ? ee : (n = ft(e)) ? (e = n, ee) : mr)(t, e);
1536
1547
  }
1537
1548
  function nu(t) {
1538
1549
  return function() {
@@ -1573,7 +1584,7 @@ function uu(t, e, n) {
1573
1584
  };
1574
1585
  }
1575
1586
  function su(t, e) {
1576
- var n = le(t), r = n === "transform" ? Ho : gr;
1587
+ var n = le(t), r = n === "transform" ? Ho : _r;
1577
1588
  return this.attrTween(t, typeof e == "function" ? (n.local ? uu : ou)(n, r, Ye(this, "attr." + t, e)) : e == null ? (n.local ? ru : nu)(n) : (n.local ? au : iu)(n, r, e));
1578
1589
  }
1579
1590
  function lu(t, e) {
@@ -1660,7 +1671,7 @@ function $u(t) {
1660
1671
  return this.each(_u(this._id, t));
1661
1672
  }
1662
1673
  function Du(t) {
1663
- typeof t != "function" && (t = Jn(t));
1674
+ typeof t != "function" && (t = nr(t));
1664
1675
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
1665
1676
  for (var a = e[i], o = a.length, u = r[i] = [], l, s = 0; s < o; ++s)
1666
1677
  (l = a[s]) && t.call(l, l.__data__, s, a) && u.push(l);
@@ -1699,10 +1710,10 @@ function Pu(t) {
1699
1710
  e && e.removeChild(this);
1700
1711
  };
1701
1712
  }
1702
- function Eu() {
1713
+ function Fu() {
1703
1714
  return this.on("end.remove", Pu(this._id));
1704
1715
  }
1705
- function Fu(t) {
1716
+ function Eu(t) {
1706
1717
  var e = this._name, n = this._id;
1707
1718
  typeof t != "function" && (t = Ge(t));
1708
1719
  for (var r = this._groups, i = r.length, a = new Array(i), o = 0; o < i; ++o)
@@ -1712,7 +1723,7 @@ function Fu(t) {
1712
1723
  }
1713
1724
  function Lu(t) {
1714
1725
  var e = this._name, n = this._id;
1715
- typeof t != "function" && (t = jn(t));
1726
+ typeof t != "function" && (t = er(t));
1716
1727
  for (var r = this._groups, i = r.length, a = [], o = [], u = 0; u < i; ++u)
1717
1728
  for (var l = r[u], s = l.length, f, c = 0; c < s; ++c)
1718
1729
  if (f = l[c]) {
@@ -1733,7 +1744,7 @@ function Nu(t, e) {
1733
1744
  return a === o ? null : a === n && o === r ? i : i = e(n = a, r = o);
1734
1745
  };
1735
1746
  }
1736
- function yr(t) {
1747
+ function $r(t) {
1737
1748
  return function() {
1738
1749
  this.style.removeProperty(t);
1739
1750
  };
@@ -1755,13 +1766,13 @@ function Iu(t, e, n) {
1755
1766
  function Ru(t, e) {
1756
1767
  var n, r, i, a = "style." + e, o = "end." + a, u;
1757
1768
  return function() {
1758
- var l = j(this, t), s = l.on, f = l.value[a] == null ? u || (u = yr(e)) : void 0;
1769
+ var l = j(this, t), s = l.on, f = l.value[a] == null ? u || (u = $r(e)) : void 0;
1759
1770
  (s !== n || i !== f) && (r = (n = s).copy()).on(o, i = f), l.on = r;
1760
1771
  };
1761
1772
  }
1762
1773
  function Gu(t, e, n) {
1763
- var r = (t += "") == "transform" ? Uo : gr;
1764
- return e == null ? this.styleTween(t, Nu(t, r)).on("end.style." + t, yr(t)) : typeof e == "function" ? this.styleTween(t, Iu(t, r, Ye(this, "style." + t, e))).each(Ru(this._id, t)) : this.styleTween(t, ku(t, r, e), n).on("end.style." + t, null);
1774
+ var r = (t += "") == "transform" ? Uo : _r;
1775
+ return e == null ? this.styleTween(t, Nu(t, r)).on("end.style." + t, $r(t)) : typeof e == "function" ? this.styleTween(t, Iu(t, r, Ye(this, "style." + t, e))).each(Ru(this._id, t)) : this.styleTween(t, ku(t, r, e), n).on("end.style." + t, null);
1765
1776
  }
1766
1777
  function Vu(t, e, n) {
1767
1778
  return function(r) {
@@ -1818,7 +1829,7 @@ function Wu(t) {
1818
1829
  return this.tween(e, Bu(t));
1819
1830
  }
1820
1831
  function ju() {
1821
- for (var t = this._name, e = this._id, n = vr(), r = this._groups, i = r.length, a = 0; a < i; ++a)
1832
+ for (var t = this._name, e = this._id, n = Dr(), r = this._groups, i = r.length, a = 0; a < i; ++a)
1822
1833
  for (var o = r[a], u = o.length, l, s = 0; s < u; ++s)
1823
1834
  if (l = o[s]) {
1824
1835
  var f = q(l, e);
@@ -1847,13 +1858,13 @@ var Ku = 0;
1847
1858
  function nt(t, e, n, r) {
1848
1859
  this._groups = t, this._parents = e, this._name = n, this._id = r;
1849
1860
  }
1850
- function vr() {
1861
+ function Dr() {
1851
1862
  return ++Ku;
1852
1863
  }
1853
1864
  var Q = Nt.prototype;
1854
1865
  nt.prototype = {
1855
1866
  constructor: nt,
1856
- select: Fu,
1867
+ select: Eu,
1857
1868
  selectAll: Lu,
1858
1869
  selectChild: Q.selectChild,
1859
1870
  selectChildren: Q.selectChildren,
@@ -1874,7 +1885,7 @@ nt.prototype = {
1874
1885
  styleTween: Uu,
1875
1886
  text: qu,
1876
1887
  textTween: Wu,
1877
- remove: Eu,
1888
+ remove: Fu,
1878
1889
  tween: eu,
1879
1890
  delay: gu,
1880
1891
  duration: bu,
@@ -1901,7 +1912,7 @@ function ts(t, e) {
1901
1912
  }
1902
1913
  function es(t) {
1903
1914
  var e, n;
1904
- t instanceof nt ? (e = t._id, t = t._name) : (e = vr(), (n = Qu).time = Xe(), t = t == null ? null : t + "");
1915
+ t instanceof nt ? (e = t._id, t = t._name) : (e = Dr(), (n = Qu).time = Xe(), t = t == null ? null : t + "");
1905
1916
  for (var r = this._groups, i = r.length, a = 0; a < i; ++a)
1906
1917
  for (var o = r[a], u = o.length, l, s = 0; s < u; ++s)
1907
1918
  (l = o[s]) && fe(l, t, e, s, o, n || ts(l, e));
@@ -1977,11 +1988,11 @@ function os(t) {
1977
1988
  }
1978
1989
  return r > 0 ? t.slice(0, r) + t.slice(i + 1) : t;
1979
1990
  }
1980
- var br;
1991
+ var Ar;
1981
1992
  function us(t, e) {
1982
1993
  var n = ae(t, e);
1983
1994
  if (!n) return t + "";
1984
- var r = n[0], i = n[1], a = i - (br = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
1995
+ var r = n[0], i = n[1], a = i - (Ar = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
1985
1996
  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") + ae(t, Math.max(0, e + a - 1))[0];
1986
1997
  }
1987
1998
  function Dn(t, e) {
@@ -2015,16 +2026,16 @@ function ss(t) {
2015
2026
  c = oe(c);
2016
2027
  var h = c.fill, p = c.align, d = c.sign, m = c.symbol, b = c.zero, w = c.width, x = c.comma, _ = c.precision, $ = c.trim, A = c.type;
2017
2028
  A === "n" ? (x = !0, A = "g") : An[A] || (_ === void 0 && (_ = 12), $ = !0, A = "g"), (b || h === "0" && p === "=") && (b = !0, h = "0", p = "=");
2018
- var F = m === "$" ? n : m === "#" && /[boxX]/.test(A) ? "0" + A.toLowerCase() : "", y = m === "$" ? r : /[%p]/.test(A) ? o : "", S = An[A], C = /[defgprs%]/.test(A);
2029
+ var E = m === "$" ? n : m === "#" && /[boxX]/.test(A) ? "0" + A.toLowerCase() : "", y = m === "$" ? r : /[%p]/.test(A) ? o : "", S = An[A], C = /[defgprs%]/.test(A);
2019
2030
  _ = _ === void 0 ? 6 : /[gprs]/.test(A) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
2020
2031
  function rt(v) {
2021
- var I = F, O = y, V, K, ut;
2032
+ var I = E, O = y, V, K, ut;
2022
2033
  if (A === "c")
2023
2034
  O = S(v) + O, v = "";
2024
2035
  else {
2025
2036
  v = +v;
2026
2037
  var Y = v < 0 || 1 / v < 0;
2027
- if (v = isNaN(v) ? l : S(Math.abs(v), _), $ && (v = os(v)), Y && +v == 0 && d !== "+" && (Y = !1), I = (Y ? d === "(" ? d : u : d === "-" || d === "(" ? "" : d) + I, O = (A === "s" ? Cn[8 + br / 3] : "") + O + (Y && d === "(" ? ")" : ""), C) {
2038
+ if (v = isNaN(v) ? l : S(Math.abs(v), _), $ && (v = os(v)), Y && +v == 0 && d !== "+" && (Y = !1), I = (Y ? d === "(" ? d : u : d === "-" || d === "(" ? "" : d) + I, O = (A === "s" ? Cn[8 + Ar / 3] : "") + O + (Y && d === "(" ? ")" : ""), C) {
2028
2039
  for (V = -1, K = v.length; ++V < K; )
2029
2040
  if (ut = v.charCodeAt(V), 48 > ut || ut > 57) {
2030
2041
  O = (ut === 46 ? i + v.slice(V + 1) : v.slice(V)) + O, v = v.slice(0, V);
@@ -2065,14 +2076,14 @@ function ss(t) {
2065
2076
  formatPrefix: f
2066
2077
  };
2067
2078
  }
2068
- var Xt, We, wr;
2079
+ var Xt, We, Sr;
2069
2080
  ls({
2070
2081
  thousands: ",",
2071
2082
  grouping: [3],
2072
2083
  currency: ["$", ""]
2073
2084
  });
2074
2085
  function ls(t) {
2075
- return Xt = ss(t), We = Xt.format, wr = Xt.formatPrefix, Xt;
2086
+ return Xt = ss(t), We = Xt.format, Sr = Xt.formatPrefix, Xt;
2076
2087
  }
2077
2088
  function cs(t) {
2078
2089
  return Math.max(0, -bt(Math.abs(t)));
@@ -2097,7 +2108,7 @@ function he(t, e) {
2097
2108
  return this;
2098
2109
  }
2099
2110
  const Pn = Symbol("implicit");
2100
- function xr() {
2111
+ function Mr() {
2101
2112
  var t = new un(), e = [], n = [], r = Pn;
2102
2113
  function i(a) {
2103
2114
  let o = t.get(a);
@@ -2118,11 +2129,11 @@ function xr() {
2118
2129
  }, i.unknown = function(a) {
2119
2130
  return arguments.length ? (r = a, i) : r;
2120
2131
  }, i.copy = function() {
2121
- return xr(e, n).unknown(r);
2132
+ return Mr(e, n).unknown(r);
2122
2133
  }, he.apply(i, arguments), i;
2123
2134
  }
2124
- function _r() {
2125
- var t = xr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, a, o, u = !1, l = 0, s = 0, f = 0.5;
2135
+ function Cr() {
2136
+ var t = Mr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, a, o, u = !1, l = 0, s = 0, f = 0.5;
2126
2137
  delete t.unknown;
2127
2138
  function c() {
2128
2139
  var h = e().length, p = i < r, d = p ? i : r, m = p ? r : i;
@@ -2153,17 +2164,17 @@ function _r() {
2153
2164
  }, t.align = function(h) {
2154
2165
  return arguments.length ? (f = Math.max(0, Math.min(1, h)), c()) : f;
2155
2166
  }, t.copy = function() {
2156
- return _r(e(), [r, i]).round(u).paddingInner(l).paddingOuter(s).align(f);
2167
+ return Cr(e(), [r, i]).round(u).paddingInner(l).paddingOuter(s).align(f);
2157
2168
  }, he.apply(c(), arguments);
2158
2169
  }
2159
- function $r(t) {
2170
+ function Pr(t) {
2160
2171
  var e = t.copy;
2161
2172
  return t.padding = t.paddingOuter, delete t.paddingInner, delete t.paddingOuter, t.copy = function() {
2162
- return $r(e());
2173
+ return Pr(e());
2163
2174
  }, t;
2164
2175
  }
2165
2176
  function ps() {
2166
- return $r(_r.apply(null, arguments).paddingInner(1));
2177
+ return Pr(Cr.apply(null, arguments).paddingInner(1));
2167
2178
  }
2168
2179
  function ds(t) {
2169
2180
  return function() {
@@ -2173,11 +2184,11 @@ function ds(t) {
2173
2184
  function ms(t) {
2174
2185
  return +t;
2175
2186
  }
2176
- var En = [0, 1];
2187
+ var Fn = [0, 1];
2177
2188
  function dt(t) {
2178
2189
  return t;
2179
2190
  }
2180
- function Fe(t, e) {
2191
+ function Ee(t, e) {
2181
2192
  return (e -= t = +t) ? function(n) {
2182
2193
  return (n - t) / e;
2183
2194
  } : ds(isNaN(e) ? NaN : 0.5);
@@ -2190,16 +2201,16 @@ function gs(t, e) {
2190
2201
  }
2191
2202
  function ys(t, e, n) {
2192
2203
  var r = t[0], i = t[1], a = e[0], o = e[1];
2193
- return i < r ? (r = Fe(i, r), a = n(o, a)) : (r = Fe(r, i), a = n(a, o)), function(u) {
2204
+ return i < r ? (r = Ee(i, r), a = n(o, a)) : (r = Ee(r, i), a = n(a, o)), function(u) {
2194
2205
  return a(r(u));
2195
2206
  };
2196
2207
  }
2197
2208
  function vs(t, e, n) {
2198
2209
  var r = Math.min(t.length, e.length) - 1, i = new Array(r), a = new Array(r), o = -1;
2199
2210
  for (t[r] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++o < r; )
2200
- i[o] = Fe(t[o], t[o + 1]), a[o] = n(e[o], e[o + 1]);
2211
+ i[o] = Ee(t[o], t[o + 1]), a[o] = n(e[o], e[o + 1]);
2201
2212
  return function(u) {
2202
- var l = Yn(t, u, 1, r) - 1;
2213
+ var l = Zn(t, u, 1, r) - 1;
2203
2214
  return a[l](i[l](u));
2204
2215
  };
2205
2216
  }
@@ -2207,7 +2218,7 @@ function bs(t, e) {
2207
2218
  return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
2208
2219
  }
2209
2220
  function ws() {
2210
- var t = En, e = En, n = He, r, i, a, o = dt, u, l, s;
2221
+ var t = Fn, e = Fn, n = He, r, i, a, o = dt, u, l, s;
2211
2222
  function f() {
2212
2223
  var h = Math.min(t.length, e.length);
2213
2224
  return o !== dt && (o = gs(t[0], t[h - 1])), u = h > 2 ? vs : ys, l = s = null, c;
@@ -2241,7 +2252,7 @@ function _s(t, e, n, r) {
2241
2252
  switch (r = oe(r ?? ",f"), r.type) {
2242
2253
  case "s": {
2243
2254
  var o = Math.max(Math.abs(t), Math.abs(e));
2244
- return r.precision == null && !isNaN(a = fs(i, o)) && (r.precision = a), wr(r, o);
2255
+ return r.precision == null && !isNaN(a = fs(i, o)) && (r.precision = a), Sr(r, o);
2245
2256
  }
2246
2257
  case "":
2247
2258
  case "e":
@@ -2259,7 +2270,7 @@ function _s(t, e, n, r) {
2259
2270
  }
2260
2271
  return We(r);
2261
2272
  }
2262
- function Dr(t) {
2273
+ function Fr(t) {
2263
2274
  var e = t.domain;
2264
2275
  return t.ticks = function(n) {
2265
2276
  var r = e();
@@ -2284,16 +2295,16 @@ function Dr(t) {
2284
2295
  return t;
2285
2296
  }, t;
2286
2297
  }
2287
- function Ar() {
2298
+ function Er() {
2288
2299
  var t = xs();
2289
2300
  return t.copy = function() {
2290
- return bs(t, Ar());
2291
- }, he.apply(t, arguments), Dr(t);
2301
+ return bs(t, Er());
2302
+ }, he.apply(t, arguments), Fr(t);
2292
2303
  }
2293
- function Sr() {
2304
+ function Lr() {
2294
2305
  var t = 0, e = 1, n = 1, r = [0.5], i = [0, 1], a;
2295
2306
  function o(l) {
2296
- return l != null && l <= l ? i[Yn(r, l, 0, n)] : a;
2307
+ return l != null && l <= l ? i[Zn(r, l, 0, n)] : a;
2297
2308
  }
2298
2309
  function u() {
2299
2310
  var l = -1;
@@ -2312,8 +2323,8 @@ function Sr() {
2312
2323
  }, o.thresholds = function() {
2313
2324
  return r.slice();
2314
2325
  }, o.copy = function() {
2315
- return Sr().domain([t, e]).range(i).unknown(a);
2316
- }, he.apply(Dr(o), arguments);
2326
+ return Lr().domain([t, e]).range(i).unknown(a);
2327
+ }, he.apply(Fr(o), arguments);
2317
2328
  }
2318
2329
  function Pt(t, e, n) {
2319
2330
  this.k = t, this.x = e, this.y = n;
@@ -2394,10 +2405,10 @@ function pe(t, e, n, r) {
2394
2405
  function je(t, e) {
2395
2406
  return `${t}_series${e}`;
2396
2407
  }
2397
- function Mr(t, e) {
2408
+ function Tr(t, e) {
2398
2409
  return `${t}_group${e}`;
2399
2410
  }
2400
- function Cr({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid" }) {
2411
+ function Or({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid" }) {
2401
2412
  const r = e.seriesDirection === "row" ? e.rowLabels : e.columnLabels;
2402
2413
  return t.map((i, a) => r[a] != null ? r[a] : je(n, a));
2403
2414
  }
@@ -2409,13 +2420,13 @@ function Ds({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid"
2409
2420
  if (t[0] == null)
2410
2421
  return [];
2411
2422
  const r = e.seriesDirection === "row" ? e.columnLabels : e.rowLabels;
2412
- return t[0].map((i, a) => r[a] != null ? r[a] : Mr(n, a));
2423
+ return t[0].map((i, a) => r[a] != null ? r[a] : Tr(n, a));
2413
2424
  }
2414
2425
  function As({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "multiGrid", gridIndex: r = 0 }) {
2415
2426
  if (t[0] == null)
2416
2427
  return [];
2417
2428
  const i = e.seriesDirection === "row" ? e.columnLabels : e.rowLabels;
2418
- return t[0].map((a, o) => i[o] != null ? i[o] : Mr(`${n}_grid${r}`, o));
2429
+ return t[0].map((a, o) => i[o] != null ? i[o] : Tr(`${n}_grid${r}`, o));
2419
2430
  }
2420
2431
  function It(t) {
2421
2432
  const e = [0, 0];
@@ -2432,7 +2443,7 @@ function hc(t) {
2432
2443
  const n = (t[0] && Array.isArray(t[0]) ? t.flat() : t).filter((r) => (r == null || et(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2433
2444
  return It(n);
2434
2445
  }
2435
- function Fn(t) {
2446
+ function En(t) {
2436
2447
  const n = t.flat().filter((r) => (r == null || et(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2437
2448
  return It(n);
2438
2449
  }
@@ -2456,14 +2467,14 @@ function Ss(t, e) {
2456
2467
  function de(t, e) {
2457
2468
  return t < e.colors[e.colorScheme].series.length ? e.colors[e.colorScheme].series[t] : e.colors[e.colorScheme].series[t % e.colors[e.colorScheme].series.length];
2458
2469
  }
2459
- function Pr(t) {
2470
+ function Nr(t) {
2460
2471
  let e = Math.floor(Math.sqrt(t)), n = Math.ceil(t / e);
2461
2472
  for (; e * n < t; )
2462
2473
  n++;
2463
2474
  return { rowAmount: e, columnAmount: n };
2464
2475
  }
2465
2476
  function Ln(t, e, n) {
2466
- const { gap: r } = e, { rowAmount: i, columnAmount: a } = e.rowAmount * e.columnAmount >= n ? e : Pr(n);
2477
+ const { gap: r } = e, { rowAmount: i, columnAmount: a } = e.rowAmount * e.columnAmount >= n ? e : Nr(n);
2467
2478
  return new Array(n).fill(null).map((o, u) => {
2468
2479
  const l = u % a, s = Math.floor(u / a), f = (t.width - r * (a - 1)) / a, c = (t.height - r * (i - 1)) / i, h = l * f + l * r, p = s * c + s * r;
2469
2480
  return {
@@ -2481,7 +2492,7 @@ function Ln(t, e, n) {
2481
2492
  });
2482
2493
  }
2483
2494
  function Te(t, e, n) {
2484
- const { gap: r } = e, { rowAmount: i, columnAmount: a } = e.rowAmount * e.columnAmount >= n ? e : Pr(n);
2495
+ const { gap: r } = e, { rowAmount: i, columnAmount: a } = e.rowAmount * e.columnAmount >= n ? e : Nr(n);
2485
2496
  return new Array(n).fill(null).map((o, u) => {
2486
2497
  const l = u % a, s = Math.floor(u / a), f = (t.width - r * (a - 1)) / a, c = (t.height - r * (i - 1)) / i, h = l * f + l * r, p = s * c + s * r, d = [h, p], m = [f / t.width, c / t.height];
2487
2498
  return {
@@ -2582,7 +2593,7 @@ function Cs(t, e, n, r) {
2582
2593
  s((r = r.apply(t, e || [])).next());
2583
2594
  });
2584
2595
  }
2585
- function Er(t, e) {
2596
+ function kr(t, e) {
2586
2597
  var n = { label: 0, sent: function() {
2587
2598
  if (a[0] & 1) throw a[1];
2588
2599
  return a[1];
@@ -2715,7 +2726,7 @@ function Ps(t, e, n) {
2715
2726
  p(d), a.shift(), a.length && l(a[0][0], a[0][1]);
2716
2727
  }
2717
2728
  }
2718
- function Es(t) {
2729
+ function Fs(t) {
2719
2730
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2720
2731
  var e = t[Symbol.asyncIterator], n;
2721
2732
  return e ? e.call(t) : (t = typeof wt == "function" ? wt(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
@@ -2846,33 +2857,33 @@ var Rt = function() {
2846
2857
  var e = new t();
2847
2858
  return e.closed = !0, e;
2848
2859
  }(), t;
2849
- }(), Fr = Rt.EMPTY;
2850
- function Lr(t) {
2860
+ }(), Ir = Rt.EMPTY;
2861
+ function Rr(t) {
2851
2862
  return t instanceof Rt || t && "closed" in t && L(t.remove) && L(t.add) && L(t.unsubscribe);
2852
2863
  }
2853
2864
  function Tn(t) {
2854
2865
  L(t) ? t() : t.unsubscribe();
2855
2866
  }
2856
- var Tr = {
2867
+ var Gr = {
2857
2868
  onUnhandledError: null,
2858
2869
  onStoppedNotification: null,
2859
2870
  Promise: void 0,
2860
2871
  useDeprecatedSynchronousErrorHandling: !1,
2861
2872
  useDeprecatedNextContext: !1
2862
- }, Or = {
2873
+ }, Vr = {
2863
2874
  setTimeout: function(t, e) {
2864
2875
  for (var n = [], r = 2; r < arguments.length; r++)
2865
2876
  n[r - 2] = arguments[r];
2866
2877
  return setTimeout.apply(void 0, ot([t, e], at(n)));
2867
2878
  },
2868
2879
  clearTimeout: function(t) {
2869
- var e = Or.delegate;
2880
+ var e = Vr.delegate;
2870
2881
  return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(t);
2871
2882
  },
2872
2883
  delegate: void 0
2873
2884
  };
2874
- function Nr(t) {
2875
- Or.setTimeout(function() {
2885
+ function zr(t) {
2886
+ Vr.setTimeout(function() {
2876
2887
  throw t;
2877
2888
  });
2878
2889
  }
@@ -2885,7 +2896,7 @@ var Ke = function(t) {
2885
2896
  J(e, t);
2886
2897
  function e(n) {
2887
2898
  var r = t.call(this) || this;
2888
- return r.isStopped = !1, n ? (r.destination = n, Lr(n) && n.add(r)) : r.destination = Os, r;
2899
+ return r.isStopped = !1, n ? (r.destination = n, Rr(n) && n.add(r)) : r.destination = Os, r;
2889
2900
  }
2890
2901
  return e.create = function(n, r, i) {
2891
2902
  return new Ot(n, r, i);
@@ -2912,9 +2923,9 @@ var Ke = function(t) {
2912
2923
  this.unsubscribe();
2913
2924
  }
2914
2925
  }, e;
2915
- }(Rt), Fs = Function.prototype.bind;
2926
+ }(Rt), Es = Function.prototype.bind;
2916
2927
  function we(t, e) {
2917
- return Fs.call(t, e);
2928
+ return Es.call(t, e);
2918
2929
  }
2919
2930
  var Ls = function() {
2920
2931
  function t(e) {
@@ -2959,7 +2970,7 @@ var Ls = function() {
2959
2970
  };
2960
2971
  else {
2961
2972
  var u;
2962
- a && Tr.useDeprecatedNextContext ? (u = Object.create(n), u.unsubscribe = function() {
2973
+ a && Gr.useDeprecatedNextContext ? (u = Object.create(n), u.unsubscribe = function() {
2963
2974
  return a.unsubscribe();
2964
2975
  }, o = {
2965
2976
  next: n.next && we(n.next, u),
@@ -2972,7 +2983,7 @@ var Ls = function() {
2972
2983
  return e;
2973
2984
  }(Ke);
2974
2985
  function qt(t) {
2975
- Nr(t);
2986
+ zr(t);
2976
2987
  }
2977
2988
  function Ts(t) {
2978
2989
  throw t;
@@ -2995,7 +3006,7 @@ function Ns(t) {
2995
3006
  }, n);
2996
3007
  };
2997
3008
  }
2998
- var E = function() {
3009
+ var F = function() {
2999
3010
  function t(e) {
3000
3011
  e && (this._subscribe = e);
3001
3012
  }
@@ -3057,13 +3068,13 @@ var E = function() {
3057
3068
  }();
3058
3069
  function On(t) {
3059
3070
  var e;
3060
- return (e = t ?? Tr.Promise) !== null && e !== void 0 ? e : Promise;
3071
+ return (e = t ?? Gr.Promise) !== null && e !== void 0 ? e : Promise;
3061
3072
  }
3062
3073
  function ks(t) {
3063
3074
  return t && L(t.next) && L(t.error) && L(t.complete);
3064
3075
  }
3065
3076
  function Is(t) {
3066
- return t && t instanceof Ke || ks(t) && Lr(t);
3077
+ return t && t instanceof Ke || ks(t) && Rr(t);
3067
3078
  }
3068
3079
  function Rs(t) {
3069
3080
  return L(t == null ? void 0 : t.lift);
@@ -3190,19 +3201,19 @@ var Gs = function(t) {
3190
3201
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
3191
3202
  }, e.prototype._innerSubscribe = function(n) {
3192
3203
  var r = this, i = this, a = i.hasError, o = i.isStopped, u = i.observers;
3193
- return a || o ? Fr : (this.currentObservers = null, u.push(n), new Rt(function() {
3204
+ return a || o ? Ir : (this.currentObservers = null, u.push(n), new Rt(function() {
3194
3205
  r.currentObservers = null, ue(u, n);
3195
3206
  }));
3196
3207
  }, e.prototype._checkFinalizedStatuses = function(n) {
3197
3208
  var r = this, i = r.hasError, a = r.thrownError, o = r.isStopped;
3198
3209
  i ? n.error(a) : o && n.complete();
3199
3210
  }, e.prototype.asObservable = function() {
3200
- var n = new E();
3211
+ var n = new F();
3201
3212
  return n.source = this, n;
3202
3213
  }, e.create = function(n, r) {
3203
3214
  return new Nn(n, r);
3204
3215
  }, e;
3205
- }(E), Nn = function(t) {
3216
+ }(F), Nn = function(t) {
3206
3217
  J(e, t);
3207
3218
  function e(n, r) {
3208
3219
  var i = t.call(this) || this;
@@ -3219,7 +3230,7 @@ var Gs = function(t) {
3219
3230
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
3220
3231
  }, e.prototype._subscribe = function(n) {
3221
3232
  var r, i;
3222
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Fr;
3233
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Ir;
3223
3234
  }, e;
3224
3235
  }(P), kn = function(t) {
3225
3236
  J(e, t);
@@ -3365,10 +3376,10 @@ var Gs = function(t) {
3365
3376
  throw i;
3366
3377
  }
3367
3378
  }, e;
3368
- }(In), tn = new Xs(Hs), qs = tn, en = new E(function(t) {
3379
+ }(In), tn = new Xs(Hs), qs = tn, en = new F(function(t) {
3369
3380
  return t.complete();
3370
3381
  });
3371
- function kr(t) {
3382
+ function Ur(t) {
3372
3383
  return t && L(t.schedule);
3373
3384
  }
3374
3385
  function nn(t) {
@@ -3378,37 +3389,37 @@ function Ys(t) {
3378
3389
  return L(nn(t)) ? t.pop() : void 0;
3379
3390
  }
3380
3391
  function $t(t) {
3381
- return kr(nn(t)) ? t.pop() : void 0;
3392
+ return Ur(nn(t)) ? t.pop() : void 0;
3382
3393
  }
3383
- function Ir(t, e) {
3394
+ function Hr(t, e) {
3384
3395
  return typeof nn(t) == "number" ? t.pop() : e;
3385
3396
  }
3386
- var Rr = function(t) {
3397
+ var Xr = function(t) {
3387
3398
  return t && typeof t.length == "number" && typeof t != "function";
3388
3399
  };
3389
- function Gr(t) {
3400
+ function qr(t) {
3390
3401
  return L(t == null ? void 0 : t.then);
3391
3402
  }
3392
- function Vr(t) {
3403
+ function Yr(t) {
3393
3404
  return L(t[Ze]);
3394
3405
  }
3395
- function zr(t) {
3406
+ function Br(t) {
3396
3407
  return Symbol.asyncIterator && L(t == null ? void 0 : t[Symbol.asyncIterator]);
3397
3408
  }
3398
- function Ur(t) {
3409
+ function Wr(t) {
3399
3410
  return new TypeError("You provided " + (t !== null && typeof t == "object" ? "an invalid object" : "'" + t + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
3400
3411
  }
3401
3412
  function Bs() {
3402
3413
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
3403
3414
  }
3404
- var Hr = Bs();
3405
- function Xr(t) {
3406
- return L(t == null ? void 0 : t[Hr]);
3415
+ var jr = Bs();
3416
+ function Jr(t) {
3417
+ return L(t == null ? void 0 : t[jr]);
3407
3418
  }
3408
- function qr(t) {
3419
+ function Kr(t) {
3409
3420
  return Ps(this, arguments, function() {
3410
3421
  var n, r, i, a;
3411
- return Er(this, function(o) {
3422
+ return kr(this, function(o) {
3412
3423
  switch (o.label) {
3413
3424
  case 0:
3414
3425
  n = t.getReader(), o.label = 1;
@@ -3436,30 +3447,30 @@ function qr(t) {
3436
3447
  });
3437
3448
  });
3438
3449
  }
3439
- function Yr(t) {
3450
+ function Zr(t) {
3440
3451
  return L(t == null ? void 0 : t.getReader);
3441
3452
  }
3442
3453
  function U(t) {
3443
- if (t instanceof E)
3454
+ if (t instanceof F)
3444
3455
  return t;
3445
3456
  if (t != null) {
3446
- if (Vr(t))
3457
+ if (Yr(t))
3447
3458
  return Ws(t);
3448
- if (Rr(t))
3459
+ if (Xr(t))
3449
3460
  return js(t);
3450
- if (Gr(t))
3461
+ if (qr(t))
3451
3462
  return Js(t);
3452
- if (zr(t))
3453
- return Br(t);
3454
- if (Xr(t))
3463
+ if (Br(t))
3464
+ return Qr(t);
3465
+ if (Jr(t))
3455
3466
  return Ks(t);
3456
- if (Yr(t))
3467
+ if (Zr(t))
3457
3468
  return Zs(t);
3458
3469
  }
3459
- throw Ur(t);
3470
+ throw Wr(t);
3460
3471
  }
3461
3472
  function Ws(t) {
3462
- return new E(function(e) {
3473
+ return new F(function(e) {
3463
3474
  var n = t[Ze]();
3464
3475
  if (L(n.subscribe))
3465
3476
  return n.subscribe(e);
@@ -3467,23 +3478,23 @@ function Ws(t) {
3467
3478
  });
3468
3479
  }
3469
3480
  function js(t) {
3470
- return new E(function(e) {
3481
+ return new F(function(e) {
3471
3482
  for (var n = 0; n < t.length && !e.closed; n++)
3472
3483
  e.next(t[n]);
3473
3484
  e.complete();
3474
3485
  });
3475
3486
  }
3476
3487
  function Js(t) {
3477
- return new E(function(e) {
3488
+ return new F(function(e) {
3478
3489
  t.then(function(n) {
3479
3490
  e.closed || (e.next(n), e.complete());
3480
3491
  }, function(n) {
3481
3492
  return e.error(n);
3482
- }).then(null, Nr);
3493
+ }).then(null, zr);
3483
3494
  });
3484
3495
  }
3485
3496
  function Ks(t) {
3486
- return new E(function(e) {
3497
+ return new F(function(e) {
3487
3498
  var n, r;
3488
3499
  try {
3489
3500
  for (var i = wt(t), a = i.next(); !a.done; a = i.next()) {
@@ -3503,24 +3514,24 @@ function Ks(t) {
3503
3514
  e.complete();
3504
3515
  });
3505
3516
  }
3506
- function Br(t) {
3507
- return new E(function(e) {
3517
+ function Qr(t) {
3518
+ return new F(function(e) {
3508
3519
  Qs(t, e).catch(function(n) {
3509
3520
  return e.error(n);
3510
3521
  });
3511
3522
  });
3512
3523
  }
3513
3524
  function Zs(t) {
3514
- return Br(qr(t));
3525
+ return Qr(Kr(t));
3515
3526
  }
3516
3527
  function Qs(t, e) {
3517
3528
  var n, r, i, a;
3518
3529
  return Cs(this, void 0, void 0, function() {
3519
3530
  var o, u;
3520
- return Er(this, function(l) {
3531
+ return kr(this, function(l) {
3521
3532
  switch (l.label) {
3522
3533
  case 0:
3523
- l.trys.push([0, 5, 6, 11]), n = Es(t), l.label = 1;
3534
+ l.trys.push([0, 5, 6, 11]), n = Fs(t), l.label = 1;
3524
3535
  case 1:
3525
3536
  return [4, n.next()];
3526
3537
  case 2:
@@ -3559,7 +3570,7 @@ function it(t, e, n, r, i) {
3559
3570
  if (t.add(a), !i)
3560
3571
  return a;
3561
3572
  }
3562
- function Wr(t, e) {
3573
+ function ti(t, e) {
3563
3574
  return e === void 0 && (e = 0), k(function(n, r) {
3564
3575
  n.subscribe(N(r, function(i) {
3565
3576
  return it(r, t, function() {
@@ -3576,7 +3587,7 @@ function Wr(t, e) {
3576
3587
  }));
3577
3588
  });
3578
3589
  }
3579
- function jr(t, e) {
3590
+ function ei(t, e) {
3580
3591
  return e === void 0 && (e = 0), k(function(n, r) {
3581
3592
  r.add(t.schedule(function() {
3582
3593
  return n.subscribe(r);
@@ -3584,13 +3595,13 @@ function jr(t, e) {
3584
3595
  });
3585
3596
  }
3586
3597
  function tl(t, e) {
3587
- return U(t).pipe(jr(e), Wr(e));
3598
+ return U(t).pipe(ei(e), ti(e));
3588
3599
  }
3589
3600
  function el(t, e) {
3590
- return U(t).pipe(jr(e), Wr(e));
3601
+ return U(t).pipe(ei(e), ti(e));
3591
3602
  }
3592
3603
  function nl(t, e) {
3593
- return new E(function(n) {
3604
+ return new F(function(n) {
3594
3605
  var r = 0;
3595
3606
  return e.schedule(function() {
3596
3607
  r === t.length ? n.complete() : (n.next(t[r++]), n.closed || this.schedule());
@@ -3598,10 +3609,10 @@ function nl(t, e) {
3598
3609
  });
3599
3610
  }
3600
3611
  function rl(t, e) {
3601
- return new E(function(n) {
3612
+ return new F(function(n) {
3602
3613
  var r;
3603
3614
  return it(n, e, function() {
3604
- r = t[Hr](), it(n, e, function() {
3615
+ r = t[jr](), it(n, e, function() {
3605
3616
  var i, a, o;
3606
3617
  try {
3607
3618
  i = r.next(), a = i.value, o = i.done;
@@ -3616,10 +3627,10 @@ function rl(t, e) {
3616
3627
  };
3617
3628
  });
3618
3629
  }
3619
- function Jr(t, e) {
3630
+ function ni(t, e) {
3620
3631
  if (!t)
3621
3632
  throw new Error("Iterable cannot be null");
3622
- return new E(function(n) {
3633
+ return new F(function(n) {
3623
3634
  it(n, e, function() {
3624
3635
  var r = t[Symbol.asyncIterator]();
3625
3636
  it(n, e, function() {
@@ -3631,35 +3642,35 @@ function Jr(t, e) {
3631
3642
  });
3632
3643
  }
3633
3644
  function il(t, e) {
3634
- return Jr(qr(t), e);
3645
+ return ni(Kr(t), e);
3635
3646
  }
3636
3647
  function al(t, e) {
3637
3648
  if (t != null) {
3638
- if (Vr(t))
3649
+ if (Yr(t))
3639
3650
  return tl(t, e);
3640
- if (Rr(t))
3651
+ if (Xr(t))
3641
3652
  return nl(t, e);
3642
- if (Gr(t))
3653
+ if (qr(t))
3643
3654
  return el(t, e);
3644
- if (zr(t))
3645
- return Jr(t, e);
3646
- if (Xr(t))
3655
+ if (Br(t))
3656
+ return ni(t, e);
3657
+ if (Jr(t))
3647
3658
  return rl(t, e);
3648
- if (Yr(t))
3659
+ if (Zr(t))
3649
3660
  return il(t, e);
3650
3661
  }
3651
- throw Ur(t);
3662
+ throw Wr(t);
3652
3663
  }
3653
3664
  function Dt(t, e) {
3654
3665
  return e ? al(t, e) : U(t);
3655
3666
  }
3656
- function Et() {
3667
+ function Ft() {
3657
3668
  for (var t = [], e = 0; e < arguments.length; e++)
3658
3669
  t[e] = arguments[e];
3659
3670
  var n = $t(t);
3660
3671
  return Dt(t, n);
3661
3672
  }
3662
- var Kr = Je(function(t) {
3673
+ var ri = Je(function(t) {
3663
3674
  return function() {
3664
3675
  t(this), this.name = "EmptyError", this.message = "no elements in sequence";
3665
3676
  };
@@ -3716,7 +3727,7 @@ function R() {
3716
3727
  var n = $t(t), r = Ys(t), i = dl(t), a = i.args, o = i.keys;
3717
3728
  if (a.length === 0)
3718
3729
  return Dt([], n);
3719
- var u = new E(yl(a, n, o ? function(l) {
3730
+ var u = new F(yl(a, n, o ? function(l) {
3720
3731
  return gl(o, l);
3721
3732
  } : _t));
3722
3733
  return r ? u.pipe(ll(r)) : u;
@@ -3773,8 +3784,8 @@ function vl(t, e, n, r, i, a, o, u) {
3773
3784
  })), function() {
3774
3785
  };
3775
3786
  }
3776
- function Zr(t, e, n) {
3777
- return n === void 0 && (n = 1 / 0), L(e) ? Zr(function(r, i) {
3787
+ function ii(t, e, n) {
3788
+ return n === void 0 && (n = 1 / 0), L(e) ? ii(function(r, i) {
3778
3789
  return D(function(a, o) {
3779
3790
  return e(r, a, i, o);
3780
3791
  })(U(t(r, i)));
@@ -3783,7 +3794,7 @@ function Zr(t, e, n) {
3783
3794
  }));
3784
3795
  }
3785
3796
  function rn(t) {
3786
- return t === void 0 && (t = 1 / 0), Zr(_t, t);
3797
+ return t === void 0 && (t = 1 / 0), ii(_t, t);
3787
3798
  }
3788
3799
  function bl() {
3789
3800
  return rn(1);
@@ -3794,7 +3805,7 @@ function Gn() {
3794
3805
  return bl()(Dt(t, $t(t)));
3795
3806
  }
3796
3807
  function wl(t) {
3797
- return new E(function(e) {
3808
+ return new F(function(e) {
3798
3809
  U(t()).subscribe(e);
3799
3810
  });
3800
3811
  }
@@ -3806,7 +3817,7 @@ function xl(t, e, n) {
3806
3817
  function _l(t, e, n) {
3807
3818
  n === void 0 && (n = qs);
3808
3819
  var r = -1;
3809
- return e != null && (kr(e) ? n = e : r = e), new E(function(i) {
3820
+ return e != null && (Ur(e) ? n = e : r = e), new F(function(i) {
3810
3821
  var a = ol(t) ? +t - n.now() : t;
3811
3822
  a < 0 && (a = 0);
3812
3823
  var o = 0;
@@ -3818,7 +3829,7 @@ function _l(t, e, n) {
3818
3829
  function $l() {
3819
3830
  for (var t = [], e = 0; e < arguments.length; e++)
3820
3831
  t[e] = arguments[e];
3821
- var n = $t(t), r = Ir(t, 1 / 0), i = t;
3832
+ var n = $t(t), r = Hr(t, 1 / 0), i = t;
3822
3833
  return i.length ? i.length === 1 ? U(i[0]) : rn(r)(Dt(i, n)) : en;
3823
3834
  }
3824
3835
  var Dl = Array.isArray;
@@ -3833,11 +3844,11 @@ function Vn(t, e) {
3833
3844
  }));
3834
3845
  });
3835
3846
  }
3836
- function Qr(t) {
3847
+ function ai(t) {
3837
3848
  return k(function(e, n) {
3838
3849
  var r = null, i = !1, a;
3839
3850
  r = e.subscribe(N(n, void 0, void 0, function(o) {
3840
- a = U(t(o, Qr(t)(e))), r ? (r.unsubscribe(), r = null, a.subscribe(n)) : i = !0;
3851
+ a = U(t(o, ai(t)(e))), r ? (r.unsubscribe(), r = null, a.subscribe(n)) : i = !0;
3841
3852
  })), i && (r.unsubscribe(), r = null, a.subscribe(n));
3842
3853
  });
3843
3854
  }
@@ -3899,8 +3910,8 @@ function W(t, e) {
3899
3910
  function Pl(t, e) {
3900
3911
  return t === e;
3901
3912
  }
3902
- function El(t) {
3903
- return t === void 0 && (t = Fl), k(function(e, n) {
3913
+ function Fl(t) {
3914
+ return t === void 0 && (t = El), k(function(e, n) {
3904
3915
  var r = !1;
3905
3916
  e.subscribe(N(n, function(i) {
3906
3917
  r = !0, n.next(i);
@@ -3909,21 +3920,21 @@ function El(t) {
3909
3920
  }));
3910
3921
  });
3911
3922
  }
3912
- function Fl() {
3913
- return new Kr();
3923
+ function El() {
3924
+ return new ri();
3914
3925
  }
3915
3926
  function Ll(t, e) {
3916
3927
  var n = arguments.length >= 2;
3917
3928
  return function(r) {
3918
- return r.pipe(_t, Cl(1), n ? Ml(e) : El(function() {
3919
- return new Kr();
3929
+ return r.pipe(_t, Cl(1), n ? Ml(e) : Fl(function() {
3930
+ return new ri();
3920
3931
  }));
3921
3932
  };
3922
3933
  }
3923
3934
  function Tl() {
3924
3935
  for (var t = [], e = 0; e < arguments.length; e++)
3925
3936
  t[e] = arguments[e];
3926
- var n = $t(t), r = Ir(t, 1 / 0);
3937
+ var n = $t(t), r = Hr(t, 1 / 0);
3927
3938
  return t = Al(t), k(function(i, a) {
3928
3939
  rn(r)(Dt(ot([i], at(t)), n)).subscribe(a);
3929
3940
  });
@@ -3953,11 +3964,11 @@ function Ie(t) {
3953
3964
  $.add(function() {
3954
3965
  p--, p === 0 && !m && !d && (c = xe(x, l));
3955
3966
  }), A.subscribe($), !f && p > 0 && (f = new Ot({
3956
- next: function(F) {
3957
- return A.next(F);
3967
+ next: function(E) {
3968
+ return A.next(E);
3958
3969
  },
3959
- error: function(F) {
3960
- m = !0, b(), c = xe(w, i, F), A.error(F);
3970
+ error: function(E) {
3971
+ m = !0, b(), c = xe(w, i, E), A.error(E);
3961
3972
  },
3962
3973
  complete: function() {
3963
3974
  d = !0, b(), c = xe(w, o), A.complete();
@@ -4105,7 +4116,7 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4105
4116
  function f(c, h) {
4106
4117
  return h == null ? [] : c.filter((p) => p.categoryLabel === h);
4107
4118
  }
4108
- return new E((c) => (R({
4119
+ return new F((c) => (R({
4109
4120
  target: $l(a, o, i),
4110
4121
  datumList: t,
4111
4122
  fullChartParams: e
@@ -4126,7 +4137,7 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4126
4137
  i.push(r), n.set(r.seriesLabel, i);
4127
4138
  }), n;
4128
4139
  })
4129
- ), ti = ({ datumList$: t }) => t.pipe(
4140
+ ), oi = ({ datumList$: t }) => t.pipe(
4130
4141
  D((e) => {
4131
4142
  const n = /* @__PURE__ */ new Map();
4132
4143
  return e.forEach((r) => {
@@ -4260,16 +4271,16 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4260
4271
  scaleRange: i = tt.scaleRange
4261
4272
  }) => {
4262
4273
  const a = r[0] ?? tt.scaleDomain[0], o = r[1] ?? tt.scaleDomain[1], u = i[0] ?? tt.scaleRange[0], l = i[1] ?? tt.scaleRange[1], s = a === "auto" ? e : a, f = o === "auto" ? t : o, c = t - (t - s) / (1 - u), h = f / l;
4263
- return Ar().domain([c, h]).range([0, n]);
4274
+ return Er().domain([c, h]).range([0, n]);
4264
4275
  }, mc = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4265
4276
  let r = [0, e];
4266
4277
  return ps().domain(t).range(r).padding(n);
4267
4278
  }, gc = ({ axisLabels: t, axisWidth: e, padding: n = 0.5, reverse: r = !1 }) => {
4268
4279
  let a = t.map((o, u) => u);
4269
- return r && a.reverse(), Sr().domain([-0, e + 0]).range(a);
4280
+ return r && a.reverse(), Lr().domain([-0, e + 0]).range(a);
4270
4281
  };
4271
4282
  function Xl(t) {
4272
- return new E((e) => {
4283
+ return new F((e) => {
4273
4284
  const n = new ResizeObserver((r) => {
4274
4285
  const i = r[0];
4275
4286
  i && i.contentRect && e.next(i.contentRect);
@@ -4303,7 +4314,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4303
4314
  chartParams$: new P(),
4304
4315
  event$: new P()
4305
4316
  }, h = ((y) => {
4306
- const S = y || hi, C = S.preset ? S.preset : {};
4317
+ const S = y || vi, C = S.preset ? S.preset : {};
4307
4318
  return {
4308
4319
  name: C.name ?? "",
4309
4320
  description: C.description ?? "",
@@ -4337,7 +4348,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4337
4348
  const w = Xl(o).pipe(
4338
4349
  M(r),
4339
4350
  Ie()
4340
- ), x = Et().pipe(
4351
+ ), x = Ft().pipe(
4341
4352
  Ol(
4342
4353
  w.pipe(
4343
4354
  Sl(250)
@@ -4354,7 +4365,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4354
4365
  }).pipe(
4355
4366
  M(r),
4356
4367
  T(async (y) => {
4357
- const S = y.rootSize.width > 0 ? y.rootSize.width : pi, C = y.rootSize.height > 0 ? y.rootSize.height : di;
4368
+ const S = y.rootSize.width > 0 ? y.rootSize.width : bi, C = y.rootSize.height > 0 ? y.rootSize.height : wi;
4358
4369
  return {
4359
4370
  width: S - y.mergedPadding.left - y.mergedPadding.right,
4360
4371
  height: C - y.mergedPadding.top - y.mergedPadding.bottom,
@@ -4379,7 +4390,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4379
4390
  }).pipe(
4380
4391
  M(r),
4381
4392
  T(async (y) => y),
4382
- T((y) => Et(y).pipe(
4393
+ T((y) => Ft(y).pipe(
4383
4394
  D((S) => {
4384
4395
  try {
4385
4396
  return e({ data: S.data, dataFormatter: S.dataFormatter, chartParams: S.chartParams });
@@ -4387,21 +4398,21 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4387
4398
  throw console.error(C), new Error(C);
4388
4399
  }
4389
4400
  }),
4390
- Qr(() => en)
4401
+ ai(() => en)
4391
4402
  )),
4392
4403
  g(1)
4393
4404
  );
4394
4405
  A.subscribe();
4395
- const F = {};
4406
+ const E = {};
4396
4407
  return c.plugins$.subscribe((y) => {
4397
4408
  if (!y)
4398
4409
  return;
4399
4410
  const S = f.selectAll("g.orbcharts__plugin").data(y, (v) => v.name), C = S.enter().append("g").attr("class", (v) => `orbcharts__plugin orbcharts__${v.name}`);
4400
4411
  S.exit().remove().each((v, I, O) => {
4401
- F[v.name] && (F[v.name].destroy(), F[v.name] = void 0);
4412
+ E[v.name] && (E[v.name].destroy(), E[v.name] = void 0);
4402
4413
  }), C.each((v, I, O) => {
4403
4414
  const V = {
4404
- fullParams$: new E(),
4415
+ fullParams$: new F(),
4405
4416
  fullChartParams$: m,
4406
4417
  fullDataFormatter$: d,
4407
4418
  computedData$: A,
@@ -4417,7 +4428,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4417
4428
  subject: c,
4418
4429
  observer: K
4419
4430
  };
4420
- v.setPresetParams(h.allPluginParams[v.name] ?? {}), v.setContext(Y), F[Y.name] = v, v.init();
4431
+ v.setPresetParams(h.allPluginParams[v.name] ?? {}), v.setContext(Y), E[Y.name] = v, v.init();
4421
4432
  });
4422
4433
  }), {
4423
4434
  ...c,
@@ -4439,7 +4450,7 @@ class yc extends At {
4439
4450
  constructor(e, n) {
4440
4451
  super(
4441
4452
  {
4442
- defaultDataFormatter: gi,
4453
+ defaultDataFormatter: Xn,
4443
4454
  computedDataFn: Ms,
4444
4455
  contextObserverFn: Hl
4445
4456
  },
@@ -4448,7 +4459,7 @@ class yc extends At {
4448
4459
  );
4449
4460
  }
4450
4461
  }
4451
- function ei(t, e) {
4462
+ function ui(t, e) {
4452
4463
  if (!t.length)
4453
4464
  return [];
4454
4465
  try {
@@ -4486,7 +4497,7 @@ const Yl = (t) => {
4486
4497
  return [];
4487
4498
  let i;
4488
4499
  try {
4489
- const a = ei(e, n.grid), o = Cr({
4500
+ const a = ui(e, n.grid), o = Or({
4490
4501
  transposedDataGrid: a,
4491
4502
  dataFormatterGrid: n.grid,
4492
4503
  chartType: "grid"
@@ -4519,7 +4530,7 @@ const Yl = (t) => {
4519
4530
  throw Error(a);
4520
4531
  }
4521
4532
  return i;
4522
- }, ni = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => {
4533
+ }, si = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => {
4523
4534
  function r(a, o, u) {
4524
4535
  const l = o.grid.groupAxis.position === "top" || o.grid.groupAxis.position === "bottom" ? u.width : u.height, s = a[0] ? a[0].length - 1 : 0;
4525
4536
  return xt({
@@ -4563,7 +4574,7 @@ const Yl = (t) => {
4563
4574
  }));
4564
4575
  })
4565
4576
  );
4566
- }, ri = ({ fullDataFormatter$: t, layout$: e }) => {
4577
+ }, li = ({ fullDataFormatter$: t, layout$: e }) => {
4567
4578
  const n = new P();
4568
4579
  function r({ xAxis: i, yAxis: a, width: o, height: u }) {
4569
4580
  if (!i || !a)
@@ -4576,7 +4587,7 @@ const Yl = (t) => {
4576
4587
  value: ""
4577
4588
  };
4578
4589
  let l = 0, s = 0, f = 0, c = 0, h = 0;
4579
- return i.position === "bottom" ? a.position === "left" ? (c = 180, s = u) : a.position === "right" ? (c = 180, h = 180, l = o, s = u) : (c = 180, s = u) : i.position === "top" ? a.position === "left" || (a.position === "right" ? (h = 180, l = o) : (c = 180, s = u)) : i.position === "left" ? a.position === "bottom" ? (f = -90, s = u) : a.position === "top" ? (f = -90, h = 180) : (c = 180, s = u) : i.position === "right" && (a.position === "bottom" ? (f = -90, c = 180, s = u, l = o) : a.position === "top" ? (f = -90, c = 180, h = 180, l = o) : (c = 180, s = u)), {
4590
+ return i.position === "bottom" ? a.position === "left" ? (c = 180, s = u) : a.position === "right" ? (c = 180, h = 180, l = o, s = u) : (c = 180, s = u) : i.position === "top" ? a.position === "left" || (a.position === "right" ? (h = 180, l = o) : (c = 180, s = u)) : i.position === "left" ? a.position === "bottom" ? (f = -90, s = u) : a.position === "top" ? (f = -90, h = 180) : (c = 180, s = u) : i.position === "right" ? a.position === "bottom" ? (f = -90, c = 180, s = u, l = o) : a.position === "top" ? (f = -90, c = 180, h = 180, l = o) : (c = 180, s = u) : (c = 180, s = u), {
4580
4591
  translate: [l, s],
4581
4592
  scale: [1, 1],
4582
4593
  rotate: f,
@@ -4585,7 +4596,7 @@ const Yl = (t) => {
4585
4596
  value: `translate(${l}px, ${s}px) rotate(${f}deg) rotateX(${c}deg) rotateY(${h}deg)`
4586
4597
  };
4587
4598
  }
4588
- return new E((i) => (R({
4599
+ return new F((i) => (R({
4589
4600
  fullDataFormatter: t,
4590
4601
  layout: e
4591
4602
  }).pipe(
@@ -4602,7 +4613,7 @@ const Yl = (t) => {
4602
4613
  }), function() {
4603
4614
  n.next(void 0);
4604
4615
  }));
4605
- }, ii = ({ gridAxesTransform$: t }) => t.pipe(
4616
+ }, ci = ({ gridAxesTransform$: t }) => t.pipe(
4606
4617
  D((e) => {
4607
4618
  const n = [0, 0], r = [1 / e.scale[0], 1 / e.scale[1]], i = e.rotate * -1, a = e.rotateX * -1, o = e.rotateY * -1;
4608
4619
  return {
@@ -4614,7 +4625,7 @@ const Yl = (t) => {
4614
4625
  value: `translate(${n[0]}px, ${n[1]}px) rotate(${i}deg) rotateX(${a}deg) rotateY(${o}deg)`
4615
4626
  };
4616
4627
  })
4617
- ), ai = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => {
4628
+ ), fi = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => {
4618
4629
  const r = new P();
4619
4630
  function i({ data: a, groupAxis: o, valueAxis: u, width: l, height: s }) {
4620
4631
  let f = 0, c = 0, h = 0, p = 0;
@@ -4627,13 +4638,13 @@ const Yl = (t) => {
4627
4638
  scaleRange: [0, 1]
4628
4639
  }), $ = _(m), A = _(b);
4629
4640
  m == b ? (f = 0, h = 1) : (f = $, h = (A - $) / d);
4630
- const F = a.map((V, K) => V.filter((ut, Y) => Y >= w && Y <= x && ut.visible == !0)), y = Fn(F), S = u.position === "left" || u.position === "right" ? s : l, C = xt({
4641
+ const E = a.map((V, K) => V.filter((ut, Y) => Y >= w && Y <= x && ut.visible == !0)), y = En(E), S = u.position === "left" || u.position === "right" ? s : l, C = xt({
4631
4642
  maxValue: y[1],
4632
4643
  minValue: y[0],
4633
4644
  axisWidth: S,
4634
4645
  scaleDomain: u.scaleDomain,
4635
4646
  scaleRange: u.scaleRange
4636
- }), rt = Fn(a), v = C(rt[0]), I = C(rt[1]);
4647
+ }), rt = En(a), v = C(rt[0]), I = C(rt[1]);
4637
4648
  return c = v, p = (I - v) / S, {
4638
4649
  translate: [f, c],
4639
4650
  scale: [h, p],
@@ -4643,7 +4654,7 @@ const Yl = (t) => {
4643
4654
  value: `translate(${f}px, ${c}px) scale(${h}, ${p})`
4644
4655
  };
4645
4656
  }
4646
- return new E((a) => (R({
4657
+ return new F((a) => (R({
4647
4658
  computedData: t,
4648
4659
  fullDataFormatter: e,
4649
4660
  layout: n
@@ -4662,7 +4673,7 @@ const Yl = (t) => {
4662
4673
  }), function() {
4663
4674
  r.next(void 0);
4664
4675
  }));
4665
- }, oi = ({ gridContainerPosition$: t, gridAxesTransform$: e, gridGraphicTransform$: n }) => R({
4676
+ }, hi = ({ gridContainerPosition$: t, gridAxesTransform$: e, gridGraphicTransform$: n }) => R({
4666
4677
  gridContainerPosition: t,
4667
4678
  gridAxesTransform: e,
4668
4679
  gridGraphicTransform: n
@@ -4675,18 +4686,15 @@ const Yl = (t) => {
4675
4686
  1 / r.gridGraphicTransform.scale[0] / r.gridContainerPosition[a].scale[1],
4676
4687
  1 / r.gridGraphicTransform.scale[1] / r.gridContainerPosition[a].scale[0]
4677
4688
  ]))
4678
- ), ui = ({ fullDataFormatter$: t, layout$: e }) => {
4689
+ ), pi = ({ fullDataFormatter$: t, layout$: e }) => {
4679
4690
  const n = new P();
4680
4691
  function r({ xAxisPosition: i, yAxisPosition: a, width: o, height: u }) {
4681
- if ((i === "bottom" || i === "top") && (a === "left" || a === "right"))
4682
- return { width: o, height: u };
4683
- if ((i === "left" || i === "right") && (a === "bottom" || a === "top"))
4684
- return {
4685
- width: u,
4686
- height: o
4687
- };
4692
+ return (i === "bottom" || i === "top") && (a === "left" || a === "right") ? { width: o, height: u } : (i === "left" || i === "right") && (a === "bottom" || a === "top") ? {
4693
+ width: u,
4694
+ height: o
4695
+ } : { width: o, height: u };
4688
4696
  }
4689
- return new E((i) => {
4697
+ return new F((i) => {
4690
4698
  R({
4691
4699
  fullDataFormatter: t,
4692
4700
  layout: e
@@ -4705,12 +4713,12 @@ const Yl = (t) => {
4705
4713
  };
4706
4714
  });
4707
4715
  });
4708
- }, si = ({ computedData$: t }) => t.pipe(
4716
+ }, di = ({ computedData$: t }) => t.pipe(
4709
4717
  D((e) => e.filter((n) => n.length).map((n) => n[0].seriesLabel)),
4710
4718
  W((e, n) => JSON.stringify(e).length === JSON.stringify(n).length)
4711
- ), li = ({ computedData$: t }) => t.pipe(
4719
+ ), mi = ({ computedData$: t }) => t.pipe(
4712
4720
  D((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4713
- ), ci = ({ computedLayoutData$: t }) => t.pipe(
4721
+ ), gi = ({ computedLayoutData$: t }) => t.pipe(
4714
4722
  D((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4715
4723
  ), Bl = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => R({
4716
4724
  computedData: t,
@@ -4726,7 +4734,7 @@ const Yl = (t) => {
4726
4734
  return i.computedData.map((o, u) => a[0]);
4727
4735
  }
4728
4736
  })
4729
- ), fi = ({ isSeriesSeprate$: t, computedData$: e }) => {
4737
+ ), yi = ({ isSeriesSeprate$: t, computedData$: e }) => {
4730
4738
  const n = e.pipe(
4731
4739
  D((r) => {
4732
4740
  const i = new Array(r[0] ? r[0].length : 0).fill(null).map((o, u) => r.reduce((l, s) => {
@@ -4756,26 +4764,26 @@ const Yl = (t) => {
4756
4764
  computedData$: e.computedData$,
4757
4765
  fullDataFormatter$: e.fullDataFormatter$,
4758
4766
  layout$: e.layout$
4759
- }), a = ri({
4767
+ }), a = li({
4760
4768
  fullDataFormatter$: e.fullDataFormatter$,
4761
4769
  layout$: e.layout$
4762
4770
  }).pipe(
4763
4771
  g(1)
4764
- ), o = ii({
4772
+ ), o = ci({
4765
4773
  gridAxesTransform$: a
4766
4774
  }).pipe(
4767
4775
  g(1)
4768
- ), u = ai({
4776
+ ), u = fi({
4769
4777
  computedData$: e.computedData$,
4770
4778
  fullDataFormatter$: e.fullDataFormatter$,
4771
4779
  layout$: e.layout$
4772
4780
  }).pipe(
4773
4781
  g(1)
4774
- ), l = oi({
4782
+ ), l = hi({
4775
4783
  gridContainerPosition$: i,
4776
4784
  gridAxesTransform$: a,
4777
4785
  gridGraphicTransform$: u
4778
- }), s = ui({
4786
+ }), s = pi({
4779
4787
  fullDataFormatter$: e.fullDataFormatter$,
4780
4788
  layout$: e.layout$
4781
4789
  }).pipe(
@@ -4790,31 +4798,31 @@ const Yl = (t) => {
4790
4798
  event$: t.event$
4791
4799
  }).pipe(
4792
4800
  g(1)
4793
- ), h = si({
4801
+ ), h = di({
4794
4802
  computedData$: e.computedData$
4795
4803
  }), p = an({
4796
4804
  datumList$: f
4797
4805
  }).pipe(
4798
4806
  g(1)
4799
- ), d = ti({
4807
+ ), d = oi({
4800
4808
  datumList$: f
4801
4809
  }).pipe(
4802
4810
  g(1)
4803
- ), m = ni({
4811
+ ), m = si({
4804
4812
  computedData$: e.computedData$,
4805
4813
  fullDataFormatter$: e.fullDataFormatter$,
4806
4814
  layout$: e.layout$
4807
4815
  }).pipe(
4808
4816
  g(1)
4809
- ), b = li({
4817
+ ), b = mi({
4810
4818
  computedData$: e.computedData$
4811
4819
  }).pipe(
4812
4820
  g(1)
4813
- ), w = ci({
4821
+ ), w = gi({
4814
4822
  computedLayoutData$: m
4815
4823
  }).pipe(
4816
4824
  g(1)
4817
- ), x = fi({
4825
+ ), x = yi({
4818
4826
  computedData$: e.computedData$,
4819
4827
  isSeriesSeprate$: r
4820
4828
  }).pipe(
@@ -4848,7 +4856,7 @@ class vc extends At {
4848
4856
  constructor(e, n) {
4849
4857
  super(
4850
4858
  {
4851
- defaultDataFormatter: yi,
4859
+ defaultDataFormatter: Yn,
4852
4860
  computedDataFn: Yl,
4853
4861
  contextObserverFn: Wl
4854
4862
  },
@@ -4863,7 +4871,7 @@ const jl = (t) => {
4863
4871
  return [];
4864
4872
  let i = [];
4865
4873
  try {
4866
- const a = n.gridList[0] || se, o = e.map((c, h) => n.gridList[h] || a), u = e.map((c, h) => ei(c, o[h])), l = n.separateGrid ? u.map((c, h) => Cr({
4874
+ const a = n.gridList[0] || se, o = e.map((c, h) => n.gridList[h] || a), u = e.map((c, h) => ui(c, o[h])), l = n.separateGrid ? u.map((c, h) => Or({
4867
4875
  transposedDataGrid: c,
4868
4876
  dataFormatterGrid: o[h],
4869
4877
  chartType: "multiGrid"
@@ -4888,7 +4896,7 @@ const jl = (t) => {
4888
4896
  });
4889
4897
  let m = 0;
4890
4898
  return c.map((w, x) => w.map((_, $) => {
4891
- const A = pe("multiGrid", h, x, $), F = d[$], y = p[x], S = {
4899
+ const A = pe("multiGrid", h, x, $), E = d[$], y = p[x], S = {
4892
4900
  id: _.id ? _.id : A,
4893
4901
  index: m,
4894
4902
  label: _.label ? _.label : A,
@@ -4900,7 +4908,7 @@ const jl = (t) => {
4900
4908
  seriesIndex: x,
4901
4909
  seriesLabel: y,
4902
4910
  groupIndex: $,
4903
- groupLabel: F,
4911
+ groupLabel: E,
4904
4912
  color: s.get(y),
4905
4913
  visible: !0
4906
4914
  // 先給一個預設值
@@ -4952,42 +4960,42 @@ const jl = (t) => {
4952
4960
  container: {
4953
4961
  ...l.fullDataFormatter.container
4954
4962
  }
4955
- }, d = Et(p).pipe(
4963
+ }, d = Ft(p).pipe(
4956
4964
  M(a),
4957
4965
  g(1)
4958
- ), m = Et(f).pipe(
4966
+ ), m = Ft(f).pipe(
4959
4967
  M(a),
4960
4968
  g(1)
4961
4969
  ), b = d.pipe(
4962
4970
  D((K) => K.grid.separateSeries),
4963
4971
  W(),
4964
4972
  g(1)
4965
- ), w = Et(l.multiGridContainer[c]).pipe(
4973
+ ), w = Ft(l.multiGridContainer[c]).pipe(
4966
4974
  M(a),
4967
4975
  g(1)
4968
- ), x = ri({
4976
+ ), x = li({
4969
4977
  fullDataFormatter$: d,
4970
4978
  layout$: n
4971
4979
  }).pipe(
4972
4980
  M(a),
4973
4981
  g(1)
4974
- ), _ = ii({
4982
+ ), _ = ci({
4975
4983
  gridAxesTransform$: x
4976
4984
  }).pipe(
4977
4985
  M(a),
4978
4986
  g(1)
4979
- ), $ = ai({
4987
+ ), $ = fi({
4980
4988
  computedData$: m,
4981
4989
  fullDataFormatter$: d,
4982
4990
  layout$: n
4983
4991
  }).pipe(
4984
4992
  M(a),
4985
4993
  g(1)
4986
- ), A = oi({
4994
+ ), A = hi({
4987
4995
  gridContainerPosition$: w,
4988
4996
  gridAxesTransform$: x,
4989
4997
  gridGraphicTransform$: $
4990
- }), F = ui({
4998
+ }), E = pi({
4991
4999
  fullDataFormatter$: d,
4992
5000
  layout$: n
4993
5001
  }).pipe(
@@ -4998,7 +5006,7 @@ const jl = (t) => {
4998
5006
  ).pipe(
4999
5007
  M(a),
5000
5008
  g(1)
5001
- ), S = si({
5009
+ ), S = di({
5002
5010
  computedData$: m
5003
5011
  }).pipe(
5004
5012
  M(a),
@@ -5008,29 +5016,29 @@ const jl = (t) => {
5008
5016
  }).pipe(
5009
5017
  M(a),
5010
5018
  g(1)
5011
- ), rt = ti({
5019
+ ), rt = oi({
5012
5020
  datumList$: y
5013
5021
  }).pipe(
5014
5022
  M(a),
5015
5023
  g(1)
5016
- ), v = li({
5024
+ ), v = mi({
5017
5025
  computedData$: m
5018
5026
  }).pipe(
5019
5027
  M(a),
5020
5028
  g(1)
5021
- ), I = ni({
5029
+ ), I = si({
5022
5030
  computedData$: m,
5023
5031
  fullDataFormatter$: d,
5024
5032
  layout$: n
5025
5033
  }).pipe(
5026
5034
  M(a),
5027
5035
  g(1)
5028
- ), O = ci({
5036
+ ), O = gi({
5029
5037
  computedLayoutData$: I
5030
5038
  }).pipe(
5031
5039
  M(a),
5032
5040
  g(1)
5033
- ), V = fi({
5041
+ ), V = yi({
5034
5042
  computedData$: m,
5035
5043
  isSeriesSeprate$: b
5036
5044
  }).pipe(
@@ -5043,7 +5051,7 @@ const jl = (t) => {
5043
5051
  gridAxesReverseTransform$: _,
5044
5052
  gridGraphicTransform$: $,
5045
5053
  gridGraphicReverseScale$: A,
5046
- gridAxesSize$: F,
5054
+ gridAxesSize$: E,
5047
5055
  gridHighlight$: o,
5048
5056
  seriesLabels$: S,
5049
5057
  SeriesDataMap$: C,
@@ -5105,7 +5113,7 @@ class bc extends At {
5105
5113
  constructor(e, n) {
5106
5114
  super(
5107
5115
  {
5108
- defaultDataFormatter: vi,
5116
+ defaultDataFormatter: Bn,
5109
5117
  computedDataFn: jl,
5110
5118
  contextObserverFn: Zl
5111
5119
  },
@@ -5165,11 +5173,11 @@ const Ql = (t) => {
5165
5173
  ];
5166
5174
  let w = 0;
5167
5175
  a = o.map((x, _) => x.map(($, A) => {
5168
- const F = w;
5176
+ const E = w;
5169
5177
  w++;
5170
5178
  const y = pe(n.type, _, A), S = {
5171
5179
  id: $.id ? $.id : y,
5172
- index: F,
5180
+ index: E,
5173
5181
  label: $.label ? $.label : y,
5174
5182
  description: $.description ?? "",
5175
5183
  // tooltipContent: _d.tooltipContent ? _d.tooltipContent : dataFormatter.tooltipContentFormat(_d, i, _i, context),
@@ -5203,7 +5211,7 @@ class wc extends At {
5203
5211
  constructor(e, n) {
5204
5212
  super(
5205
5213
  {
5206
- defaultDataFormatter: bi,
5214
+ defaultDataFormatter: Wn,
5207
5215
  computedDataFn: Ql,
5208
5216
  contextObserverFn: tc
5209
5217
  },
@@ -5301,7 +5309,7 @@ class xc extends At {
5301
5309
  constructor(e, n) {
5302
5310
  super(
5303
5311
  {
5304
- defaultDataFormatter: xi,
5312
+ defaultDataFormatter: Jn,
5305
5313
  computedDataFn: ec,
5306
5314
  contextObserverFn: nc
5307
5315
  },
@@ -5333,7 +5341,7 @@ const rc = (t) => {
5333
5341
  try {
5334
5342
  const o = function() {
5335
5343
  if (et(e) === !0)
5336
- return structuredClone(e);
5344
+ return JSON.parse(JSON.stringify(e));
5337
5345
  if (Array.isArray(e) === !1)
5338
5346
  return {
5339
5347
  id: ""
@@ -5474,7 +5482,7 @@ class _c extends At {
5474
5482
  constructor(e, n) {
5475
5483
  super(
5476
5484
  {
5477
- defaultDataFormatter: wi,
5485
+ defaultDataFormatter: jn,
5478
5486
  computedDataFn: rc,
5479
5487
  contextObserverFn: uc
5480
5488
  },
@@ -5522,7 +5530,7 @@ const pt = () => function(e, n) {
5522
5530
  }
5523
5531
  };
5524
5532
  };
5525
- }, Dc = pt(), Ac = pt(), Sc = pt(), Mc = pt(), Cc = pt(), Pc = pt(), Ec = pt();
5533
+ }, Dc = pt(), Ac = pt(), Sc = pt(), Mc = pt(), Cc = pt(), Pc = pt(), Fc = pt();
5526
5534
  export {
5527
5535
  vc as GridChart,
5528
5536
  bc as MultiGridChart,
@@ -5537,10 +5545,10 @@ export {
5537
5545
  mc as createAxisPointScale,
5538
5546
  gc as createAxisQuantizeScale,
5539
5547
  pe as createDefaultDatumId,
5540
- Mr as createDefaultGroupLabel,
5548
+ Tr as createDefaultGroupLabel,
5541
5549
  je as createDefaultSeriesLabel,
5542
5550
  Ds as createGridGroupLabels,
5543
- Cr as createGridSeriesLabels,
5551
+ Or as createGridSeriesLabels,
5544
5552
  As as createMultiGridGroupLabels,
5545
5553
  $s as createMultiGridSeriesLabels,
5546
5554
  Ac as defineGridPlugin,
@@ -5549,16 +5557,16 @@ export {
5549
5557
  Cc as defineNoneDataPlugin,
5550
5558
  Pc as defineRelationshipPlugin,
5551
5559
  Dc as defineSeriesPlugin,
5552
- Ec as defineTreePlugin,
5560
+ Fc as defineTreePlugin,
5553
5561
  cc as formatCommaNumber,
5554
5562
  fc as formatValueToLabel,
5555
5563
  It as getMinAndMax,
5556
- Fn as getMinAndMaxGrid,
5564
+ En as getMinAndMaxGrid,
5557
5565
  pc as getMinAndMaxMultiGrid,
5558
5566
  dc as getMinAndMaxMultiValue,
5559
5567
  hc as getMinAndMaxSeries,
5560
5568
  Le as getMinAndMaxValue,
5561
- ti as groupDataMapObservable,
5569
+ oi as groupDataMapObservable,
5562
5570
  me as highlightObservable,
5563
5571
  lc as isFunction,
5564
5572
  et as isPlainObject,