@orbcharts/core 3.0.0-alpha.27 → 3.0.0-alpha.29

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 (35) hide show
  1. package/dist/orbcharts-core.es.js +1070 -1070
  2. package/dist/orbcharts-core.umd.js +2 -2
  3. package/dist/src/defaults.d.ts +2 -3
  4. package/dist/src/grid/computeGridData.d.ts +3 -0
  5. package/dist/src/types/ComputedData.d.ts +1 -1
  6. package/dist/src/types/ComputedDataGrid.d.ts +2 -0
  7. package/dist/src/types/Data.d.ts +1 -1
  8. package/dist/src/types/DataFormatter.d.ts +0 -2
  9. package/dist/src/types/DataFormatterGrid.d.ts +2 -4
  10. package/dist/src/types/DataFormatterMultiGrid.d.ts +2 -1
  11. package/dist/src/types/DataFormatterMultiValue.d.ts +2 -1
  12. package/dist/src/types/DataFormatterRelationship.d.ts +2 -1
  13. package/dist/src/types/DataFormatterSeries.d.ts +2 -3
  14. package/dist/src/types/DataFormatterTree.d.ts +2 -1
  15. package/dist/src/utils/orbchartsUtils.d.ts +18 -5
  16. package/package.json +1 -1
  17. package/src/defaults.ts +30 -48
  18. package/src/grid/computeGridData.ts +31 -23
  19. package/src/multiGrid/computeMultiGridData.ts +37 -27
  20. package/src/multiGrid/multiGridObservables.ts +6 -4
  21. package/src/multiValue/computeMultiValueData.ts +6 -3
  22. package/src/relationship/computeRelationshipData.ts +4 -2
  23. package/src/series/computeSeriesData.ts +7 -8
  24. package/src/tree/computeTreeData.ts +5 -3
  25. package/src/types/ComputedData.ts +1 -1
  26. package/src/types/ComputedDataGrid.ts +2 -0
  27. package/src/types/Data.ts +1 -1
  28. package/src/types/DataFormatter.ts +0 -4
  29. package/src/types/DataFormatterGrid.ts +4 -3
  30. package/src/types/DataFormatterMultiGrid.ts +6 -5
  31. package/src/types/DataFormatterMultiValue.ts +2 -1
  32. package/src/types/DataFormatterRelationship.ts +2 -1
  33. package/src/types/DataFormatterSeries.ts +4 -3
  34. package/src/types/DataFormatterTree.ts +2 -1
  35. package/src/utils/orbchartsUtils.ts +64 -11
@@ -1,13 +1,13 @@
1
- const Kr = {
1
+ const Zr = {
2
2
  preset: {}
3
3
  // 預設為空
4
- }, On = {
4
+ }, kn = {
5
5
  top: 60,
6
6
  right: 60,
7
7
  bottom: 60,
8
8
  left: 60
9
- }, en = {
10
- padding: On,
9
+ }, tn = {
10
+ padding: kn,
11
11
  highlightTarget: "datum",
12
12
  // highlightDefault: HIGHLIGHT_DEFAULT,
13
13
  highlightDefault: null,
@@ -34,33 +34,20 @@ const Kr = {
34
34
  },
35
35
  transitionDuration: 800,
36
36
  transitionEase: "easeCubic"
37
- }, Zr = 800, Jr = 500, _t = {
38
- // ...GLOBAL_DEFAULT,
39
- type: "",
40
- // 後面需複蓋掉否則會有問題
41
- visibleFilter: (t, e, n, r) => !0,
42
- tooltipContentFormat: (t, e, n, r) => {
43
- if (typeof t == "object") {
44
- if (t.tooltipContent)
45
- return t.tooltipContent;
46
- if (t.value)
47
- return String(t.value);
48
- } else return typeof t == "number" ? String(t) : "";
49
- }
50
- }, Y = {
37
+ }, Jr = 800, Qr = 500, K = {
51
38
  position: "left",
52
39
  scaleDomain: [0, "auto"],
53
40
  scaleRange: [0, 0.9],
54
41
  label: ""
55
- }, Qr = {
42
+ }, ti = {
56
43
  position: "bottom",
57
44
  scaleDomain: [0, "auto"],
58
45
  scalePadding: 0.5,
59
46
  label: ""
60
- }, ti = {
61
- ..._t,
47
+ }, ei = {
62
48
  // ...DATA_FORMATTER_WITH_VALUE,
63
49
  type: "series",
50
+ visibleFilter: (t, e, n, r) => !0,
64
51
  unitLabel: "",
65
52
  seriesLabels: [],
66
53
  // mapSeries: (datum, rowIndex, columnIndex, { data, dataFormatter }) => {
@@ -69,12 +56,18 @@ const Kr = {
69
56
  // : rowIndex
70
57
  // return dataFormatter.seriesLabels[seriesIndex]
71
58
  // },
72
- colorsPredicate: (t, e, n, { chartParams: r }) => e < r.colors[r.colorScheme].series.length ? r.colors[r.colorScheme].series[e] : r.colors[r.colorScheme].series[e % r.colors[r.colorScheme].series.length],
59
+ // colorsPredicate: (datum, rowIndex, columnIndex, { chartParams }) => {
60
+ // return rowIndex < chartParams.colors[chartParams.colorScheme].series.length
61
+ // ? chartParams.colors[chartParams.colorScheme].series[rowIndex]
62
+ // : chartParams.colors[chartParams.colorScheme].series[
63
+ // rowIndex % chartParams.colors[chartParams.colorScheme].series.length
64
+ // ]
65
+ // },
73
66
  sort: null
74
- }, ye = {
75
- ..._t,
67
+ }, In = {
76
68
  // ...DATA_FORMATTER_WITH_VALUE,
77
69
  type: "grid",
70
+ visibleFilter: (t, e, n, r) => !0,
78
71
  grid: {
79
72
  // rowUnitLabel: '',
80
73
  rowLabels: [],
@@ -84,47 +77,45 @@ const Kr = {
84
77
  // columnLabelFormat: label => label,
85
78
  seriesType: "row"
86
79
  },
87
- valueAxis: { ...Y },
88
- groupAxis: { ...Qr },
80
+ valueAxis: { ...K },
81
+ groupAxis: { ...ti }
89
82
  // visibleGroupRange: null,
90
- colorsPredicate: (t, e, n, { chartParams: r, dataFormatter: i }) => {
91
- const o = i.grid.seriesType === "row" ? e : n;
92
- return r.colors[r.colorScheme].series[o];
93
- }
94
- }, ei = {
95
- ..._t,
83
+ // colorsPredicate: (datum, rowIndex, columnIndex, { chartParams, dataFormatter }) => {
84
+ // const seriesIndex = dataFormatter.grid.seriesType === 'row' ? rowIndex : columnIndex
85
+ // return chartParams.colors[chartParams.colorScheme].series[seriesIndex]
86
+ // },
87
+ }, On = {
96
88
  type: "multiGrid",
89
+ visibleFilter: (t, e, n, r) => !0,
97
90
  multiGrid: [
98
91
  {
99
- ...ye
100
- },
101
- {
102
- ...ye,
103
- valueAxis: {
104
- ...Y,
105
- position: "right"
106
- },
107
- colorsPredicate: (t, e, n, { chartParams: r, dataFormatter: i }) => {
108
- const o = i.grid.seriesType === "row" ? e : n, a = r.colors[r.colorScheme].series.length - 1 - o;
109
- return r.colors[r.colorScheme].series[a];
110
- }
92
+ ...In
111
93
  }
94
+ // // @Q@ 暫時性的邏輯,之後colorsPredicate移除掉後,這邊也要移除(但colors使用的seriesIndex要接續前一組grid)
95
+ // {
96
+ // ...DATA_FORMATTER_GRID_DEFAULT,
97
+ // colorsPredicate: (datum, rowIndex, columnIndex, { data, chartParams, dataFormatter }) => {
98
+ // const seriesIndex = dataFormatter.grid.seriesType === 'row' ? rowIndex : columnIndex
99
+ // const reverseIndex = chartParams.colors[chartParams.colorScheme].series.length - 1 - seriesIndex
100
+ // return chartParams.colors[chartParams.colorScheme].series[reverseIndex]
101
+ // },
102
+ // }
112
103
  ]
113
104
  // visibleGroupRange: null,
114
105
  }, ni = {
115
- ..._t,
116
106
  type: "multiValue",
107
+ visibleFilter: (t, e, n, r) => !0,
117
108
  // labelFormat: (datum: any) => (datum && datum.label) ?? '',
118
109
  multiValue: [],
119
- xAxis: { ...Y },
120
- yAxis: { ...Y }
110
+ xAxis: { ...K },
111
+ yAxis: { ...K }
121
112
  }, ri = {
122
- ..._t,
123
- type: "tree"
113
+ type: "tree",
114
+ visibleFilter: (t, e, n, r) => !0
124
115
  // labelFormat: (datum: any) => (datum && datum.label) ?? '',
125
116
  }, ii = {
126
- ..._t,
127
- type: "relationship"
117
+ type: "relationship",
118
+ visibleFilter: (t, e, n, r) => !0
128
119
  // node: {
129
120
  // // labelFormat: (node: any) => (node && node.label) ?? '',
130
121
  // descriptionFormat: (node: any) => (node && node.label) ?? ''
@@ -134,15 +125,15 @@ const Kr = {
134
125
  // descriptionFormat: (edge: any) => (edge && edge.label) ?? ''
135
126
  // },
136
127
  };
137
- function Wt(t, e) {
128
+ function Yt(t, e) {
138
129
  return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
139
130
  }
140
131
  function oi(t, e) {
141
132
  return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
142
133
  }
143
- function In(t) {
134
+ function Rn(t) {
144
135
  let e, n, r;
145
- t.length !== 2 ? (e = Wt, n = (u, s) => Wt(t(u), s), r = (u, s) => t(u) - s) : (e = t === Wt || t === oi ? t : ai, n = t, r = t);
136
+ t.length !== 2 ? (e = Yt, n = (u, s) => Yt(t(u), s), r = (u, s) => t(u) - s) : (e = t === Yt || t === oi ? t : ai, n = t, r = t);
146
137
  function i(u, s, l = 0, f = u.length) {
147
138
  if (l < f) {
148
139
  if (e(s, s) !== 0) return f;
@@ -175,17 +166,17 @@ function ai() {
175
166
  function ui(t) {
176
167
  return t === null ? NaN : +t;
177
168
  }
178
- const si = In(Wt), Rn = si.right;
179
- In(ui).center;
180
- class nn extends Map {
169
+ const si = Rn(Yt), Ln = si.right;
170
+ Rn(ui).center;
171
+ class en extends Map {
181
172
  constructor(e, n = fi) {
182
173
  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);
183
174
  }
184
175
  get(e) {
185
- return super.get(rn(this, e));
176
+ return super.get(nn(this, e));
186
177
  }
187
178
  has(e) {
188
- return super.has(rn(this, e));
179
+ return super.has(nn(this, e));
189
180
  }
190
181
  set(e, n) {
191
182
  return super.set(li(this, e), n);
@@ -194,7 +185,7 @@ class nn extends Map {
194
185
  return super.delete(ci(this, e));
195
186
  }
196
187
  }
197
- function rn({ _intern: t, _key: e }, n) {
188
+ function nn({ _intern: t, _key: e }, n) {
198
189
  const r = e(n);
199
190
  return t.has(r) ? t.get(r) : n;
200
191
  }
@@ -210,15 +201,15 @@ function fi(t) {
210
201
  return t !== null && typeof t == "object" ? t.valueOf() : t;
211
202
  }
212
203
  const hi = Math.sqrt(50), di = Math.sqrt(10), pi = Math.sqrt(2);
213
- function Jt(t, e, n) {
204
+ function Zt(t, e, n) {
214
205
  const r = (e - t) / Math.max(0, n), i = Math.floor(Math.log10(r)), o = r / Math.pow(10, i), a = o >= hi ? 10 : o >= di ? 5 : o >= pi ? 2 : 1;
215
206
  let u, s, l;
216
- return i < 0 ? (l = Math.pow(10, -i) / a, u = Math.round(t * l), s = Math.round(e * l), u / l < t && ++u, s / l > e && --s, l = -l) : (l = Math.pow(10, i) * a, u = Math.round(t / l), s = Math.round(e / l), u * l < t && ++u, s * l > e && --s), s < u && 0.5 <= n && n < 2 ? Jt(t, e, n * 2) : [u, s, l];
207
+ return i < 0 ? (l = Math.pow(10, -i) / a, u = Math.round(t * l), s = Math.round(e * l), u / l < t && ++u, s / l > e && --s, l = -l) : (l = Math.pow(10, i) * a, u = Math.round(t / l), s = Math.round(e / l), u * l < t && ++u, s * l > e && --s), s < u && 0.5 <= n && n < 2 ? Zt(t, e, n * 2) : [u, s, l];
217
208
  }
218
209
  function mi(t, e, n) {
219
210
  if (e = +e, t = +t, n = +n, !(n > 0)) return [];
220
211
  if (t === e) return [t];
221
- const r = e < t, [i, o, a] = r ? Jt(e, t, n) : Jt(t, e, n);
212
+ const r = e < t, [i, o, a] = r ? Zt(e, t, n) : Zt(t, e, n);
222
213
  if (!(o >= i)) return [];
223
214
  const u = o - i + 1, s = new Array(u);
224
215
  if (r)
@@ -228,12 +219,12 @@ function mi(t, e, n) {
228
219
  else for (let l = 0; l < u; ++l) s[l] = (i + l) * a;
229
220
  return s;
230
221
  }
231
- function we(t, e, n) {
232
- return e = +e, t = +t, n = +n, Jt(t, e, n)[2];
222
+ function ve(t, e, n) {
223
+ return e = +e, t = +t, n = +n, Zt(t, e, n)[2];
233
224
  }
234
225
  function gi(t, e, n) {
235
226
  e = +e, t = +t, n = +n;
236
- const r = e < t, i = r ? we(e, t, n) : we(t, e, n);
227
+ const r = e < t, i = r ? ve(e, t, n) : ve(t, e, n);
237
228
  return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
238
229
  }
239
230
  function vi(t, e, n) {
@@ -244,7 +235,7 @@ function vi(t, e, n) {
244
235
  }
245
236
  var yi = { value: () => {
246
237
  } };
247
- function Ln() {
238
+ function Vn() {
248
239
  for (var t = 0, e = arguments.length, n = {}, r; t < e; ++t) {
249
240
  if (!(r = arguments[t] + "") || r in n || /[\s.]/.test(r)) throw new Error("illegal type: " + r);
250
241
  n[r] = [];
@@ -261,7 +252,7 @@ function wi(t, e) {
261
252
  return { type: n, name: r };
262
253
  });
263
254
  }
264
- Bt.prototype = Ln.prototype = {
255
+ Bt.prototype = Vn.prototype = {
265
256
  constructor: Bt,
266
257
  on: function(t, e) {
267
258
  var n = this._, r = wi(t + "", n), i, o = -1, a = r.length;
@@ -271,8 +262,8 @@ Bt.prototype = Ln.prototype = {
271
262
  }
272
263
  if (e != null && typeof e != "function") throw new Error("invalid callback: " + e);
273
264
  for (; ++o < a; )
274
- if (i = (t = r[o]).type) n[i] = on(n[i], t.name, e);
275
- else if (e == null) for (i in n) n[i] = on(n[i], t.name, null);
265
+ if (i = (t = r[o]).type) n[i] = rn(n[i], t.name, e);
266
+ else if (e == null) for (i in n) n[i] = rn(n[i], t.name, null);
276
267
  return this;
277
268
  },
278
269
  copy: function() {
@@ -295,7 +286,7 @@ function xi(t, e) {
295
286
  if ((i = t[n]).name === e)
296
287
  return i.value;
297
288
  }
298
- function on(t, e, n) {
289
+ function rn(t, e, n) {
299
290
  for (var r = 0, i = t.length; r < i; ++r)
300
291
  if (t[r].name === e) {
301
292
  t[r] = yi, t = t.slice(0, r).concat(t.slice(r + 1));
@@ -303,22 +294,22 @@ function on(t, e, n) {
303
294
  }
304
295
  return n != null && t.push({ name: e, value: n }), t;
305
296
  }
306
- var xe = "http://www.w3.org/1999/xhtml";
307
- const an = {
297
+ var ye = "http://www.w3.org/1999/xhtml";
298
+ const on = {
308
299
  svg: "http://www.w3.org/2000/svg",
309
- xhtml: xe,
300
+ xhtml: ye,
310
301
  xlink: "http://www.w3.org/1999/xlink",
311
302
  xml: "http://www.w3.org/XML/1998/namespace",
312
303
  xmlns: "http://www.w3.org/2000/xmlns/"
313
304
  };
314
- function le(t) {
305
+ function se(t) {
315
306
  var e = t += "", n = e.indexOf(":");
316
- return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)), an.hasOwnProperty(e) ? { space: an[e], local: t } : t;
307
+ return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)), on.hasOwnProperty(e) ? { space: on[e], local: t } : t;
317
308
  }
318
309
  function bi(t) {
319
310
  return function() {
320
311
  var e = this.ownerDocument, n = this.namespaceURI;
321
- return n === xe && e.documentElement.namespaceURI === xe ? e.createElement(t) : e.createElementNS(n, t);
312
+ return n === ye && e.documentElement.namespaceURI === ye ? e.createElement(t) : e.createElementNS(n, t);
322
313
  };
323
314
  }
324
315
  function _i(t) {
@@ -326,19 +317,19 @@ function _i(t) {
326
317
  return this.ownerDocument.createElementNS(t.space, t.local);
327
318
  };
328
319
  }
329
- function Vn(t) {
330
- var e = le(t);
320
+ function Gn(t) {
321
+ var e = se(t);
331
322
  return (e.local ? _i : bi)(e);
332
323
  }
333
324
  function $i() {
334
325
  }
335
- function Ne(t) {
326
+ function Fe(t) {
336
327
  return t == null ? $i : function() {
337
328
  return this.querySelector(t);
338
329
  };
339
330
  }
340
331
  function Ai(t) {
341
- typeof t != "function" && (t = Ne(t));
332
+ typeof t != "function" && (t = Fe(t));
342
333
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
343
334
  for (var o = e[i], a = o.length, u = r[i] = new Array(a), s, l, f = 0; f < a; ++f)
344
335
  (s = o[f]) && (l = t.call(s, s.__data__, f, o)) && ("__data__" in s && (l.__data__ = s.__data__), u[f] = l);
@@ -350,7 +341,7 @@ function Si(t) {
350
341
  function Di() {
351
342
  return [];
352
343
  }
353
- function Gn(t) {
344
+ function zn(t) {
354
345
  return t == null ? Di : function() {
355
346
  return this.querySelectorAll(t);
356
347
  };
@@ -360,65 +351,65 @@ function Mi(t) {
360
351
  return Si(t.apply(this, arguments));
361
352
  };
362
353
  }
363
- function Ci(t) {
364
- typeof t == "function" ? t = Mi(t) : t = Gn(t);
354
+ function Ei(t) {
355
+ typeof t == "function" ? t = Mi(t) : t = zn(t);
365
356
  for (var e = this._groups, n = e.length, r = [], i = [], o = 0; o < n; ++o)
366
357
  for (var a = e[o], u = a.length, s, l = 0; l < u; ++l)
367
358
  (s = a[l]) && (r.push(t.call(s, s.__data__, l, a)), i.push(s));
368
359
  return new V(r, i);
369
360
  }
370
- function zn(t) {
361
+ function Hn(t) {
371
362
  return function() {
372
363
  return this.matches(t);
373
364
  };
374
365
  }
375
- function Hn(t) {
366
+ function Un(t) {
376
367
  return function(e) {
377
368
  return e.matches(t);
378
369
  };
379
370
  }
380
- var Ei = Array.prototype.find;
371
+ var Ci = Array.prototype.find;
381
372
  function Pi(t) {
382
373
  return function() {
383
- return Ei.call(this.children, t);
374
+ return Ci.call(this.children, t);
384
375
  };
385
376
  }
386
- function Ti() {
377
+ function Fi() {
387
378
  return this.firstElementChild;
388
379
  }
389
- function Fi(t) {
390
- return this.select(t == null ? Ti : Pi(typeof t == "function" ? t : Hn(t)));
380
+ function Ti(t) {
381
+ return this.select(t == null ? Fi : Pi(typeof t == "function" ? t : Un(t)));
391
382
  }
392
383
  var Ni = Array.prototype.filter;
393
384
  function ki() {
394
385
  return Array.from(this.children);
395
386
  }
396
- function Oi(t) {
387
+ function Ii(t) {
397
388
  return function() {
398
389
  return Ni.call(this.children, t);
399
390
  };
400
391
  }
401
- function Ii(t) {
402
- return this.selectAll(t == null ? ki : Oi(typeof t == "function" ? t : Hn(t)));
392
+ function Oi(t) {
393
+ return this.selectAll(t == null ? ki : Ii(typeof t == "function" ? t : Un(t)));
403
394
  }
404
395
  function Ri(t) {
405
- typeof t != "function" && (t = zn(t));
396
+ typeof t != "function" && (t = Hn(t));
406
397
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
407
398
  for (var o = e[i], a = o.length, u = r[i] = [], s, l = 0; l < a; ++l)
408
399
  (s = o[l]) && t.call(s, s.__data__, l, o) && u.push(s);
409
400
  return new V(r, this._parents);
410
401
  }
411
- function Un(t) {
402
+ function Xn(t) {
412
403
  return new Array(t.length);
413
404
  }
414
405
  function Li() {
415
- return new V(this._enter || this._groups.map(Un), this._parents);
406
+ return new V(this._enter || this._groups.map(Xn), this._parents);
416
407
  }
417
- function Qt(t, e) {
408
+ function Jt(t, e) {
418
409
  this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e;
419
410
  }
420
- Qt.prototype = {
421
- constructor: Qt,
411
+ Jt.prototype = {
412
+ constructor: Jt,
422
413
  appendChild: function(t) {
423
414
  return this._parent.insertBefore(t, this._next);
424
415
  },
@@ -439,7 +430,7 @@ function Vi(t) {
439
430
  }
440
431
  function Gi(t, e, n, r, i, o) {
441
432
  for (var a = 0, u, s = e.length, l = o.length; a < l; ++a)
442
- (u = e[a]) ? (u.__data__ = o[a], r[a] = u) : n[a] = new Qt(t, o[a]);
433
+ (u = e[a]) ? (u.__data__ = o[a], r[a] = u) : n[a] = new Jt(t, o[a]);
443
434
  for (; a < s; ++a)
444
435
  (u = e[a]) && (i[a] = u);
445
436
  }
@@ -448,7 +439,7 @@ function zi(t, e, n, r, i, o, a) {
448
439
  for (u = 0; u < f; ++u)
449
440
  (s = e[u]) && (h[u] = d = a.call(s, s.__data__, u, e) + "", l.has(d) ? i[u] = s : l.set(d, s));
450
441
  for (u = 0; u < c; ++u)
451
- d = a.call(t, o[u], u, o) + "", (s = l.get(d)) ? (r[u] = s, s.__data__ = o[u], l.delete(d)) : n[u] = new Qt(t, o[u]);
442
+ d = a.call(t, o[u], u, o) + "", (s = l.get(d)) ? (r[u] = s, s.__data__ = o[u], l.delete(d)) : n[u] = new Jt(t, o[u]);
452
443
  for (u = 0; u < f; ++u)
453
444
  (s = e[u]) && l.get(h[u]) === s && (i[u] = s);
454
445
  }
@@ -460,12 +451,12 @@ function Ui(t, e) {
460
451
  var n = e ? zi : Gi, r = this._parents, i = this._groups;
461
452
  typeof t != "function" && (t = Vi(t));
462
453
  for (var o = i.length, a = new Array(o), u = new Array(o), s = new Array(o), l = 0; l < o; ++l) {
463
- var f = r[l], c = i[l], h = c.length, d = Xi(t.call(f, f && f.__data__, l, r)), m = d.length, p = u[l] = new Array(m), g = a[l] = new Array(m), _ = s[l] = new Array(h);
464
- n(f, c, p, g, _, d, e);
465
- for (var S = 0, b = 0, D, w; S < m; ++S)
466
- if (D = p[S]) {
467
- for (S >= b && (b = S + 1); !(w = g[b]) && ++b < m; ) ;
468
- D._next = w || null;
454
+ var f = r[l], c = i[l], h = c.length, d = Xi(t.call(f, f && f.__data__, l, r)), m = d.length, p = u[l] = new Array(m), g = a[l] = new Array(m), b = s[l] = new Array(h);
455
+ n(f, c, p, g, b, d, e);
456
+ for (var D = 0, x = 0, M, y; D < m; ++D)
457
+ if (M = p[D]) {
458
+ for (D >= x && (x = D + 1); !(y = g[x]) && ++x < m; ) ;
459
+ M._next = y || null;
469
460
  }
470
461
  }
471
462
  return a = new V(a, r), a._enter = u, a._exit = s, a;
@@ -474,13 +465,13 @@ function Xi(t) {
474
465
  return typeof t == "object" && "length" in t ? t : Array.from(t);
475
466
  }
476
467
  function Yi() {
477
- return new V(this._exit || this._groups.map(Un), this._parents);
468
+ return new V(this._exit || this._groups.map(Xn), this._parents);
478
469
  }
479
- function Wi(t, e, n) {
470
+ function Bi(t, e, n) {
480
471
  var r = this.enter(), i = this, o = this.exit();
481
472
  return typeof t == "function" ? (r = t(r), r && (r = r.selection())) : r = r.append(t + ""), e != null && (i = e(i), i && (i = i.selection())), n == null ? o.remove() : n(o), r && i ? r.merge(i).order() : i;
482
473
  }
483
- function Bi(t) {
474
+ function Wi(t) {
484
475
  for (var e = t.selection ? t.selection() : t, n = this._groups, r = e._groups, i = n.length, o = r.length, a = Math.min(i, o), u = new Array(i), s = 0; s < a; ++s)
485
476
  for (var l = n[s], f = r[s], c = l.length, h = u[s] = new Array(c), d, m = 0; m < c; ++m)
486
477
  (d = l[m] || f[m]) && (h[m] = d);
@@ -571,14 +562,14 @@ function so(t, e) {
571
562
  };
572
563
  }
573
564
  function lo(t, e) {
574
- var n = le(t);
565
+ var n = se(t);
575
566
  if (arguments.length < 2) {
576
567
  var r = this.node();
577
568
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
578
569
  }
579
570
  return this.each((e == null ? n.local ? io : ro : typeof e == "function" ? n.local ? so : uo : n.local ? ao : oo)(n, e));
580
571
  }
581
- function Xn(t) {
572
+ function Yn(t) {
582
573
  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
583
574
  }
584
575
  function co(t) {
@@ -601,7 +592,7 @@ function po(t, e, n) {
601
592
  return arguments.length > 1 ? this.each((e == null ? co : typeof e == "function" ? ho : fo)(t, e, n ?? "")) : vt(this.node(), t);
602
593
  }
603
594
  function vt(t, e) {
604
- return t.style.getPropertyValue(e) || Xn(t).getComputedStyle(t, null).getPropertyValue(e);
595
+ return t.style.getPropertyValue(e) || Yn(t).getComputedStyle(t, null).getPropertyValue(e);
605
596
  }
606
597
  function mo(t) {
607
598
  return function() {
@@ -622,14 +613,14 @@ function vo(t, e) {
622
613
  function yo(t, e) {
623
614
  return arguments.length > 1 ? this.each((e == null ? mo : typeof e == "function" ? vo : go)(t, e)) : this.node()[t];
624
615
  }
625
- function Yn(t) {
616
+ function Bn(t) {
626
617
  return t.trim().split(/^|\s+/);
627
618
  }
628
- function ke(t) {
619
+ function Te(t) {
629
620
  return t.classList || new Wn(t);
630
621
  }
631
622
  function Wn(t) {
632
- this._node = t, this._names = Yn(t.getAttribute("class") || "");
623
+ this._node = t, this._names = Bn(t.getAttribute("class") || "");
633
624
  }
634
625
  Wn.prototype = {
635
626
  add: function(t) {
@@ -644,31 +635,31 @@ Wn.prototype = {
644
635
  return this._names.indexOf(t) >= 0;
645
636
  }
646
637
  };
647
- function Bn(t, e) {
648
- for (var n = ke(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
649
- }
650
638
  function qn(t, e) {
651
- for (var n = ke(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
639
+ for (var n = Te(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
640
+ }
641
+ function jn(t, e) {
642
+ for (var n = Te(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
652
643
  }
653
644
  function wo(t) {
654
645
  return function() {
655
- Bn(this, t);
646
+ qn(this, t);
656
647
  };
657
648
  }
658
649
  function xo(t) {
659
650
  return function() {
660
- qn(this, t);
651
+ jn(this, t);
661
652
  };
662
653
  }
663
654
  function bo(t, e) {
664
655
  return function() {
665
- (e.apply(this, arguments) ? Bn : qn)(this, t);
656
+ (e.apply(this, arguments) ? qn : jn)(this, t);
666
657
  };
667
658
  }
668
659
  function _o(t, e) {
669
- var n = Yn(t + "");
660
+ var n = Bn(t + "");
670
661
  if (arguments.length < 2) {
671
- for (var r = ke(this.node()), i = -1, o = n.length; ++i < o; ) if (!r.contains(n[i])) return !1;
662
+ for (var r = Te(this.node()), i = -1, o = n.length; ++i < o; ) if (!r.contains(n[i])) return !1;
672
663
  return !0;
673
664
  }
674
665
  return this.each((typeof e == "function" ? bo : e ? wo : xo)(n, e));
@@ -693,25 +684,25 @@ function Do(t) {
693
684
  function Mo() {
694
685
  this.innerHTML = "";
695
686
  }
696
- function Co(t) {
687
+ function Eo(t) {
697
688
  return function() {
698
689
  this.innerHTML = t;
699
690
  };
700
691
  }
701
- function Eo(t) {
692
+ function Co(t) {
702
693
  return function() {
703
694
  var e = t.apply(this, arguments);
704
695
  this.innerHTML = e ?? "";
705
696
  };
706
697
  }
707
698
  function Po(t) {
708
- return arguments.length ? this.each(t == null ? Mo : (typeof t == "function" ? Eo : Co)(t)) : this.node().innerHTML;
699
+ return arguments.length ? this.each(t == null ? Mo : (typeof t == "function" ? Co : Eo)(t)) : this.node().innerHTML;
709
700
  }
710
- function To() {
701
+ function Fo() {
711
702
  this.nextSibling && this.parentNode.appendChild(this);
712
703
  }
713
- function Fo() {
714
- return this.each(To);
704
+ function To() {
705
+ return this.each(Fo);
715
706
  }
716
707
  function No() {
717
708
  this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
@@ -719,17 +710,17 @@ function No() {
719
710
  function ko() {
720
711
  return this.each(No);
721
712
  }
722
- function Oo(t) {
723
- var e = typeof t == "function" ? t : Vn(t);
713
+ function Io(t) {
714
+ var e = typeof t == "function" ? t : Gn(t);
724
715
  return this.select(function() {
725
716
  return this.appendChild(e.apply(this, arguments));
726
717
  });
727
718
  }
728
- function Io() {
719
+ function Oo() {
729
720
  return null;
730
721
  }
731
722
  function Ro(t, e) {
732
- var n = typeof t == "function" ? t : Vn(t), r = e == null ? Io : typeof e == "function" ? e : Ne(e);
723
+ var n = typeof t == "function" ? t : Gn(t), r = e == null ? Oo : typeof e == "function" ? e : Fe(e);
733
724
  return this.select(function() {
734
725
  return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
735
726
  });
@@ -766,7 +757,7 @@ function Yo(t) {
766
757
  return r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), { type: e, name: n };
767
758
  });
768
759
  }
769
- function Wo(t) {
760
+ function Bo(t) {
770
761
  return function() {
771
762
  var e = this.__on;
772
763
  if (e) {
@@ -776,7 +767,7 @@ function Wo(t) {
776
767
  }
777
768
  };
778
769
  }
779
- function Bo(t, e, n) {
770
+ function Wo(t, e, n) {
780
771
  return function() {
781
772
  var r = this.__on, i, o = Xo(e);
782
773
  if (r) {
@@ -801,21 +792,21 @@ function qo(t, e, n) {
801
792
  }
802
793
  return;
803
794
  }
804
- for (u = e ? Bo : Wo, i = 0; i < o; ++i) this.each(u(r[i], e, n));
795
+ for (u = e ? Wo : Bo, i = 0; i < o; ++i) this.each(u(r[i], e, n));
805
796
  return this;
806
797
  }
807
- function jn(t, e, n) {
808
- var r = Xn(t), i = r.CustomEvent;
798
+ function Kn(t, e, n) {
799
+ var r = Yn(t), i = r.CustomEvent;
809
800
  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);
810
801
  }
811
802
  function jo(t, e) {
812
803
  return function() {
813
- return jn(this, t, e);
804
+ return Kn(this, t, e);
814
805
  };
815
806
  }
816
807
  function Ko(t, e) {
817
808
  return function() {
818
- return jn(this, t, e.apply(this, arguments));
809
+ return Kn(this, t, e.apply(this, arguments));
819
810
  };
820
811
  }
821
812
  function Zo(t, e) {
@@ -826,12 +817,12 @@ function* Jo() {
826
817
  for (var r = t[e], i = 0, o = r.length, a; i < o; ++i)
827
818
  (a = r[i]) && (yield a);
828
819
  }
829
- var Kn = [null];
820
+ var Zn = [null];
830
821
  function V(t, e) {
831
822
  this._groups = t, this._parents = e;
832
823
  }
833
824
  function It() {
834
- return new V([[document.documentElement]], Kn);
825
+ return new V([[document.documentElement]], Zn);
835
826
  }
836
827
  function Qo() {
837
828
  return this;
@@ -839,15 +830,15 @@ function Qo() {
839
830
  V.prototype = It.prototype = {
840
831
  constructor: V,
841
832
  select: Ai,
842
- selectAll: Ci,
843
- selectChild: Fi,
844
- selectChildren: Ii,
833
+ selectAll: Ei,
834
+ selectChild: Ti,
835
+ selectChildren: Oi,
845
836
  filter: Ri,
846
837
  data: Ui,
847
838
  enter: Li,
848
839
  exit: Yi,
849
- join: Wi,
850
- merge: Bi,
840
+ join: Bi,
841
+ merge: Wi,
851
842
  selection: Qo,
852
843
  order: qi,
853
844
  sort: ji,
@@ -863,9 +854,9 @@ V.prototype = It.prototype = {
863
854
  classed: _o,
864
855
  text: Do,
865
856
  html: Po,
866
- raise: Fo,
857
+ raise: To,
867
858
  lower: ko,
868
- append: Oo,
859
+ append: Io,
869
860
  insert: Ro,
870
861
  remove: Vo,
871
862
  clone: Ho,
@@ -874,20 +865,20 @@ V.prototype = It.prototype = {
874
865
  dispatch: Zo,
875
866
  [Symbol.iterator]: Jo
876
867
  };
877
- function Gt(t) {
878
- return typeof t == "string" ? new V([[document.querySelector(t)]], [document.documentElement]) : new V([[t]], Kn);
868
+ function Vt(t) {
869
+ return typeof t == "string" ? new V([[document.querySelector(t)]], [document.documentElement]) : new V([[t]], Zn);
879
870
  }
880
- function Oe(t, e, n) {
871
+ function Ne(t, e, n) {
881
872
  t.prototype = e.prototype = n, n.constructor = t;
882
873
  }
883
- function Zn(t, e) {
874
+ function Jn(t, e) {
884
875
  var n = Object.create(t.prototype);
885
876
  for (var r in e) n[r] = e[r];
886
877
  return n;
887
878
  }
888
- function Rt() {
879
+ function Ot() {
889
880
  }
890
- var Ft = 0.7, te = 1 / Ft, mt = "\\s*([+-]?\\d+)\\s*", Nt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", W = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ta = /^#([0-9a-f]{3,8})$/, ea = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), na = new RegExp(`^rgb\\(${W},${W},${W}\\)$`), ra = new RegExp(`^rgba\\(${mt},${mt},${mt},${Nt}\\)$`), ia = new RegExp(`^rgba\\(${W},${W},${W},${Nt}\\)$`), oa = new RegExp(`^hsl\\(${Nt},${W},${W}\\)$`), aa = new RegExp(`^hsla\\(${Nt},${W},${W},${Nt}\\)$`), un = {
881
+ var Ft = 0.7, Qt = 1 / Ft, mt = "\\s*([+-]?\\d+)\\s*", Tt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ta = /^#([0-9a-f]{3,8})$/, ea = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), na = new RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), ra = new RegExp(`^rgba\\(${mt},${mt},${mt},${Tt}\\)$`), ia = new RegExp(`^rgba\\(${Y},${Y},${Y},${Tt}\\)$`), oa = new RegExp(`^hsl\\(${Tt},${Y},${Y}\\)$`), aa = new RegExp(`^hsla\\(${Tt},${Y},${Y},${Tt}\\)$`), an = {
891
882
  aliceblue: 15792383,
892
883
  antiquewhite: 16444375,
893
884
  aqua: 65535,
@@ -1037,55 +1028,55 @@ var Ft = 0.7, te = 1 / Ft, mt = "\\s*([+-]?\\d+)\\s*", Nt = "\\s*([+-]?(?:\\d*\\
1037
1028
  yellow: 16776960,
1038
1029
  yellowgreen: 10145074
1039
1030
  };
1040
- Oe(Rt, st, {
1031
+ Ne(Ot, lt, {
1041
1032
  copy(t) {
1042
1033
  return Object.assign(new this.constructor(), this, t);
1043
1034
  },
1044
1035
  displayable() {
1045
1036
  return this.rgb().displayable();
1046
1037
  },
1047
- hex: sn,
1038
+ hex: un,
1048
1039
  // Deprecated! Use color.formatHex.
1049
- formatHex: sn,
1040
+ formatHex: un,
1050
1041
  formatHex8: ua,
1051
1042
  formatHsl: sa,
1052
- formatRgb: ln,
1053
- toString: ln
1043
+ formatRgb: sn,
1044
+ toString: sn
1054
1045
  });
1055
- function sn() {
1046
+ function un() {
1056
1047
  return this.rgb().formatHex();
1057
1048
  }
1058
1049
  function ua() {
1059
1050
  return this.rgb().formatHex8();
1060
1051
  }
1061
1052
  function sa() {
1062
- return Jn(this).formatHsl();
1053
+ return Qn(this).formatHsl();
1063
1054
  }
1064
- function ln() {
1055
+ function sn() {
1065
1056
  return this.rgb().formatRgb();
1066
1057
  }
1067
- function st(t) {
1058
+ function lt(t) {
1068
1059
  var e, n;
1069
- return t = (t + "").trim().toLowerCase(), (e = ta.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? cn(e) : n === 3 ? new L(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? zt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? zt(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 = ea.exec(t)) ? new L(e[1], e[2], e[3], 1) : (e = na.exec(t)) ? new L(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = ra.exec(t)) ? zt(e[1], e[2], e[3], e[4]) : (e = ia.exec(t)) ? zt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = oa.exec(t)) ? dn(e[1], e[2] / 100, e[3] / 100, 1) : (e = aa.exec(t)) ? dn(e[1], e[2] / 100, e[3] / 100, e[4]) : un.hasOwnProperty(t) ? cn(un[t]) : t === "transparent" ? new L(NaN, NaN, NaN, 0) : null;
1060
+ return t = (t + "").trim().toLowerCase(), (e = ta.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? ln(e) : n === 3 ? new L(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? Gt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? Gt(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 = ea.exec(t)) ? new L(e[1], e[2], e[3], 1) : (e = na.exec(t)) ? new L(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = ra.exec(t)) ? Gt(e[1], e[2], e[3], e[4]) : (e = ia.exec(t)) ? Gt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = oa.exec(t)) ? hn(e[1], e[2] / 100, e[3] / 100, 1) : (e = aa.exec(t)) ? hn(e[1], e[2] / 100, e[3] / 100, e[4]) : an.hasOwnProperty(t) ? ln(an[t]) : t === "transparent" ? new L(NaN, NaN, NaN, 0) : null;
1070
1061
  }
1071
- function cn(t) {
1062
+ function ln(t) {
1072
1063
  return new L(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
1073
1064
  }
1074
- function zt(t, e, n, r) {
1065
+ function Gt(t, e, n, r) {
1075
1066
  return r <= 0 && (t = e = n = NaN), new L(t, e, n, r);
1076
1067
  }
1077
1068
  function la(t) {
1078
- return t instanceof Rt || (t = st(t)), t ? (t = t.rgb(), new L(t.r, t.g, t.b, t.opacity)) : new L();
1069
+ return t instanceof Ot || (t = lt(t)), t ? (t = t.rgb(), new L(t.r, t.g, t.b, t.opacity)) : new L();
1079
1070
  }
1080
- function be(t, e, n, r) {
1071
+ function we(t, e, n, r) {
1081
1072
  return arguments.length === 1 ? la(t) : new L(t, e, n, r ?? 1);
1082
1073
  }
1083
1074
  function L(t, e, n, r) {
1084
1075
  this.r = +t, this.g = +e, this.b = +n, this.opacity = +r;
1085
1076
  }
1086
- Oe(L, be, Zn(Rt, {
1077
+ Ne(L, we, Jn(Ot, {
1087
1078
  brighter(t) {
1088
- return t = t == null ? te : Math.pow(te, t), new L(this.r * t, this.g * t, this.b * t, this.opacity);
1079
+ return t = t == null ? Qt : Math.pow(Qt, t), new L(this.r * t, this.g * t, this.b * t, this.opacity);
1089
1080
  },
1090
1081
  darker(t) {
1091
1082
  return t = t == null ? Ft : Math.pow(Ft, t), new L(this.r * t, this.g * t, this.b * t, this.opacity);
@@ -1094,57 +1085,57 @@ Oe(L, be, Zn(Rt, {
1094
1085
  return this;
1095
1086
  },
1096
1087
  clamp() {
1097
- return new L(ut(this.r), ut(this.g), ut(this.b), ee(this.opacity));
1088
+ return new L(st(this.r), st(this.g), st(this.b), te(this.opacity));
1098
1089
  },
1099
1090
  displayable() {
1100
1091
  return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
1101
1092
  },
1102
- hex: fn,
1093
+ hex: cn,
1103
1094
  // Deprecated! Use color.formatHex.
1104
- formatHex: fn,
1095
+ formatHex: cn,
1105
1096
  formatHex8: ca,
1106
- formatRgb: hn,
1107
- toString: hn
1097
+ formatRgb: fn,
1098
+ toString: fn
1108
1099
  }));
1109
- function fn() {
1110
- return `#${at(this.r)}${at(this.g)}${at(this.b)}`;
1100
+ function cn() {
1101
+ return `#${ut(this.r)}${ut(this.g)}${ut(this.b)}`;
1111
1102
  }
1112
1103
  function ca() {
1113
- return `#${at(this.r)}${at(this.g)}${at(this.b)}${at((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1104
+ return `#${ut(this.r)}${ut(this.g)}${ut(this.b)}${ut((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1114
1105
  }
1115
- function hn() {
1116
- const t = ee(this.opacity);
1117
- return `${t === 1 ? "rgb(" : "rgba("}${ut(this.r)}, ${ut(this.g)}, ${ut(this.b)}${t === 1 ? ")" : `, ${t})`}`;
1106
+ function fn() {
1107
+ const t = te(this.opacity);
1108
+ return `${t === 1 ? "rgb(" : "rgba("}${st(this.r)}, ${st(this.g)}, ${st(this.b)}${t === 1 ? ")" : `, ${t})`}`;
1118
1109
  }
1119
- function ee(t) {
1110
+ function te(t) {
1120
1111
  return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
1121
1112
  }
1122
- function ut(t) {
1113
+ function st(t) {
1123
1114
  return Math.max(0, Math.min(255, Math.round(t) || 0));
1124
1115
  }
1125
- function at(t) {
1126
- return t = ut(t), (t < 16 ? "0" : "") + t.toString(16);
1116
+ function ut(t) {
1117
+ return t = st(t), (t < 16 ? "0" : "") + t.toString(16);
1127
1118
  }
1128
- function dn(t, e, n, r) {
1119
+ function hn(t, e, n, r) {
1129
1120
  return r <= 0 ? t = e = n = NaN : n <= 0 || n >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new U(t, e, n, r);
1130
1121
  }
1131
- function Jn(t) {
1122
+ function Qn(t) {
1132
1123
  if (t instanceof U) return new U(t.h, t.s, t.l, t.opacity);
1133
- if (t instanceof Rt || (t = st(t)), !t) return new U();
1124
+ if (t instanceof Ot || (t = lt(t)), !t) return new U();
1134
1125
  if (t instanceof U) return t;
1135
1126
  t = t.rgb();
1136
1127
  var e = t.r / 255, n = t.g / 255, r = t.b / 255, i = Math.min(e, n, r), o = Math.max(e, n, r), a = NaN, u = o - i, s = (o + i) / 2;
1137
1128
  return u ? (e === o ? a = (n - r) / u + (n < r) * 6 : n === o ? a = (r - e) / u + 2 : a = (e - n) / u + 4, u /= s < 0.5 ? o + i : 2 - o - i, a *= 60) : u = s > 0 && s < 1 ? 0 : a, new U(a, u, s, t.opacity);
1138
1129
  }
1139
1130
  function fa(t, e, n, r) {
1140
- return arguments.length === 1 ? Jn(t) : new U(t, e, n, r ?? 1);
1131
+ return arguments.length === 1 ? Qn(t) : new U(t, e, n, r ?? 1);
1141
1132
  }
1142
1133
  function U(t, e, n, r) {
1143
1134
  this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
1144
1135
  }
1145
- Oe(U, fa, Zn(Rt, {
1136
+ Ne(U, fa, Jn(Ot, {
1146
1137
  brighter(t) {
1147
- return t = t == null ? te : Math.pow(te, t), new U(this.h, this.s, this.l * t, this.opacity);
1138
+ return t = t == null ? Qt : Math.pow(Qt, t), new U(this.h, this.s, this.l * t, this.opacity);
1148
1139
  },
1149
1140
  darker(t) {
1150
1141
  return t = t == null ? Ft : Math.pow(Ft, t), new U(this.h, this.s, this.l * t, this.opacity);
@@ -1152,33 +1143,33 @@ Oe(U, fa, Zn(Rt, {
1152
1143
  rgb() {
1153
1144
  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;
1154
1145
  return new L(
1155
- de(t >= 240 ? t - 240 : t + 120, i, r),
1156
- de(t, i, r),
1157
- de(t < 120 ? t + 240 : t - 120, i, r),
1146
+ he(t >= 240 ? t - 240 : t + 120, i, r),
1147
+ he(t, i, r),
1148
+ he(t < 120 ? t + 240 : t - 120, i, r),
1158
1149
  this.opacity
1159
1150
  );
1160
1151
  },
1161
1152
  clamp() {
1162
- return new U(pn(this.h), Ht(this.s), Ht(this.l), ee(this.opacity));
1153
+ return new U(dn(this.h), zt(this.s), zt(this.l), te(this.opacity));
1163
1154
  },
1164
1155
  displayable() {
1165
1156
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
1166
1157
  },
1167
1158
  formatHsl() {
1168
- const t = ee(this.opacity);
1169
- return `${t === 1 ? "hsl(" : "hsla("}${pn(this.h)}, ${Ht(this.s) * 100}%, ${Ht(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
1159
+ const t = te(this.opacity);
1160
+ return `${t === 1 ? "hsl(" : "hsla("}${dn(this.h)}, ${zt(this.s) * 100}%, ${zt(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
1170
1161
  }
1171
1162
  }));
1172
- function pn(t) {
1163
+ function dn(t) {
1173
1164
  return t = (t || 0) % 360, t < 0 ? t + 360 : t;
1174
1165
  }
1175
- function Ht(t) {
1166
+ function zt(t) {
1176
1167
  return Math.max(0, Math.min(1, t || 0));
1177
1168
  }
1178
- function de(t, e, n) {
1169
+ function he(t, e, n) {
1179
1170
  return (t < 60 ? e + (n - e) * t / 60 : t < 180 ? n : t < 240 ? e + (n - e) * (240 - t) / 60 : e) * 255;
1180
1171
  }
1181
- const Ie = (t) => () => t;
1172
+ const ke = (t) => () => t;
1182
1173
  function ha(t, e) {
1183
1174
  return function(n) {
1184
1175
  return t + n * e;
@@ -1190,18 +1181,18 @@ function da(t, e, n) {
1190
1181
  };
1191
1182
  }
1192
1183
  function pa(t) {
1193
- return (t = +t) == 1 ? Qn : function(e, n) {
1194
- return n - e ? da(e, n, t) : Ie(isNaN(e) ? n : e);
1184
+ return (t = +t) == 1 ? tr : function(e, n) {
1185
+ return n - e ? da(e, n, t) : ke(isNaN(e) ? n : e);
1195
1186
  };
1196
1187
  }
1197
- function Qn(t, e) {
1188
+ function tr(t, e) {
1198
1189
  var n = e - t;
1199
- return n ? ha(t, n) : Ie(isNaN(t) ? e : t);
1190
+ return n ? ha(t, n) : ke(isNaN(t) ? e : t);
1200
1191
  }
1201
- const ne = function t(e) {
1192
+ const ee = function t(e) {
1202
1193
  var n = pa(e);
1203
1194
  function r(i, o) {
1204
- var a = n((i = be(i)).r, (o = be(o)).r), u = n(i.g, o.g), s = n(i.b, o.b), l = Qn(i.opacity, o.opacity);
1195
+ var a = n((i = we(i)).r, (o = we(o)).r), u = n(i.g, o.g), s = n(i.b, o.b), l = tr(i.opacity, o.opacity);
1205
1196
  return function(f) {
1206
1197
  return i.r = a(f), i.g = u(f), i.b = s(f), i.opacity = l(f), i + "";
1207
1198
  };
@@ -1221,7 +1212,7 @@ function ga(t) {
1221
1212
  }
1222
1213
  function va(t, e) {
1223
1214
  var n = e ? e.length : 0, r = t ? Math.min(n, t.length) : 0, i = new Array(r), o = new Array(n), a;
1224
- for (a = 0; a < r; ++a) i[a] = Re(t[a], e[a]);
1215
+ for (a = 0; a < r; ++a) i[a] = Ie(t[a], e[a]);
1225
1216
  for (; a < n; ++a) o[a] = e[a];
1226
1217
  return function(u) {
1227
1218
  for (a = 0; a < r; ++a) o[a] = i[a](u);
@@ -1243,13 +1234,13 @@ function wa(t, e) {
1243
1234
  var n = {}, r = {}, i;
1244
1235
  (t === null || typeof t != "object") && (t = {}), (e === null || typeof e != "object") && (e = {});
1245
1236
  for (i in e)
1246
- i in t ? n[i] = Re(t[i], e[i]) : r[i] = e[i];
1237
+ i in t ? n[i] = Ie(t[i], e[i]) : r[i] = e[i];
1247
1238
  return function(o) {
1248
1239
  for (i in n) r[i] = n[i](o);
1249
1240
  return r;
1250
1241
  };
1251
1242
  }
1252
- var _e = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, pe = new RegExp(_e.source, "g");
1243
+ var xe = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, de = new RegExp(xe.source, "g");
1253
1244
  function xa(t) {
1254
1245
  return function() {
1255
1246
  return t;
@@ -1260,25 +1251,25 @@ function ba(t) {
1260
1251
  return t(e) + "";
1261
1252
  };
1262
1253
  }
1263
- function tr(t, e) {
1264
- var n = _e.lastIndex = pe.lastIndex = 0, r, i, o, a = -1, u = [], s = [];
1265
- for (t = t + "", e = e + ""; (r = _e.exec(t)) && (i = pe.exec(e)); )
1266
- (o = i.index) > n && (o = e.slice(n, o), u[a] ? u[a] += o : u[++a] = o), (r = r[0]) === (i = i[0]) ? u[a] ? u[a] += i : u[++a] = i : (u[++a] = null, s.push({ i: a, x: H(r, i) })), n = pe.lastIndex;
1254
+ function er(t, e) {
1255
+ var n = xe.lastIndex = de.lastIndex = 0, r, i, o, a = -1, u = [], s = [];
1256
+ for (t = t + "", e = e + ""; (r = xe.exec(t)) && (i = de.exec(e)); )
1257
+ (o = i.index) > n && (o = e.slice(n, o), u[a] ? u[a] += o : u[++a] = o), (r = r[0]) === (i = i[0]) ? u[a] ? u[a] += i : u[++a] = i : (u[++a] = null, s.push({ i: a, x: H(r, i) })), n = de.lastIndex;
1267
1258
  return n < e.length && (o = e.slice(n), u[a] ? u[a] += o : u[++a] = o), u.length < 2 ? s[0] ? ba(s[0].x) : xa(e) : (e = s.length, function(l) {
1268
1259
  for (var f = 0, c; f < e; ++f) u[(c = s[f]).i] = c.x(l);
1269
1260
  return u.join("");
1270
1261
  });
1271
1262
  }
1272
- function Re(t, e) {
1263
+ function Ie(t, e) {
1273
1264
  var n = typeof e, r;
1274
- return e == null || n === "boolean" ? Ie(e) : (n === "number" ? H : n === "string" ? (r = st(e)) ? (e = r, ne) : tr : e instanceof st ? ne : e instanceof Date ? ya : ga(e) ? ma : Array.isArray(e) ? va : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? wa : H)(t, e);
1265
+ return e == null || n === "boolean" ? ke(e) : (n === "number" ? H : n === "string" ? (r = lt(e)) ? (e = r, ee) : er : e instanceof lt ? ee : e instanceof Date ? ya : ga(e) ? ma : Array.isArray(e) ? va : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? wa : H)(t, e);
1275
1266
  }
1276
1267
  function _a(t, e) {
1277
1268
  return t = +t, e = +e, function(n) {
1278
1269
  return Math.round(t * (1 - n) + e * n);
1279
1270
  };
1280
1271
  }
1281
- var mn = 180 / Math.PI, $e = {
1272
+ var pn = 180 / Math.PI, be = {
1282
1273
  translateX: 0,
1283
1274
  translateY: 0,
1284
1275
  rotate: 0,
@@ -1286,26 +1277,26 @@ var mn = 180 / Math.PI, $e = {
1286
1277
  scaleX: 1,
1287
1278
  scaleY: 1
1288
1279
  };
1289
- function er(t, e, n, r, i, o) {
1280
+ function nr(t, e, n, r, i, o) {
1290
1281
  var a, u, s;
1291
1282
  return (a = Math.sqrt(t * t + e * e)) && (t /= a, e /= a), (s = t * n + e * r) && (n -= t * s, r -= e * s), (u = Math.sqrt(n * n + r * r)) && (n /= u, r /= u, s /= u), t * r < e * n && (t = -t, e = -e, s = -s, a = -a), {
1292
1283
  translateX: i,
1293
1284
  translateY: o,
1294
- rotate: Math.atan2(e, t) * mn,
1295
- skewX: Math.atan(s) * mn,
1285
+ rotate: Math.atan2(e, t) * pn,
1286
+ skewX: Math.atan(s) * pn,
1296
1287
  scaleX: a,
1297
1288
  scaleY: u
1298
1289
  };
1299
1290
  }
1300
- var Ut;
1291
+ var Ht;
1301
1292
  function $a(t) {
1302
1293
  const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
1303
- return e.isIdentity ? $e : er(e.a, e.b, e.c, e.d, e.e, e.f);
1294
+ return e.isIdentity ? be : nr(e.a, e.b, e.c, e.d, e.e, e.f);
1304
1295
  }
1305
1296
  function Aa(t) {
1306
- return t == null || (Ut || (Ut = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ut.setAttribute("transform", t), !(t = Ut.transform.baseVal.consolidate())) ? $e : (t = t.matrix, er(t.a, t.b, t.c, t.d, t.e, t.f));
1297
+ return t == null || (Ht || (Ht = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ht.setAttribute("transform", t), !(t = Ht.transform.baseVal.consolidate())) ? be : (t = t.matrix, nr(t.a, t.b, t.c, t.d, t.e, t.f));
1307
1298
  }
1308
- function nr(t, e, n, r) {
1299
+ function rr(t, e, n, r) {
1309
1300
  function i(l) {
1310
1301
  return l.length ? l.pop() + " " : "";
1311
1302
  }
@@ -1335,70 +1326,70 @@ function nr(t, e, n, r) {
1335
1326
  };
1336
1327
  };
1337
1328
  }
1338
- var Sa = nr($a, "px, ", "px)", "deg)"), Da = nr(Aa, ", ", ")", ")"), yt = 0, Ct = 0, Mt = 0, rr = 1e3, re, Et, ie = 0, lt = 0, ce = 0, kt = typeof performance == "object" && performance.now ? performance : Date, ir = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1329
+ var Sa = rr($a, "px, ", "px)", "deg)"), Da = rr(Aa, ", ", ")", ")"), yt = 0, Mt = 0, Dt = 0, ir = 1e3, ne, Et, re = 0, ct = 0, le = 0, Nt = typeof performance == "object" && performance.now ? performance : Date, or = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1339
1330
  setTimeout(t, 17);
1340
1331
  };
1341
- function Le() {
1342
- return lt || (ir(Ma), lt = kt.now() + ce);
1332
+ function Oe() {
1333
+ return ct || (or(Ma), ct = Nt.now() + le);
1343
1334
  }
1344
1335
  function Ma() {
1345
- lt = 0;
1336
+ ct = 0;
1346
1337
  }
1347
- function oe() {
1338
+ function ie() {
1348
1339
  this._call = this._time = this._next = null;
1349
1340
  }
1350
- oe.prototype = or.prototype = {
1351
- constructor: oe,
1341
+ ie.prototype = ar.prototype = {
1342
+ constructor: ie,
1352
1343
  restart: function(t, e, n) {
1353
1344
  if (typeof t != "function") throw new TypeError("callback is not a function");
1354
- n = (n == null ? Le() : +n) + (e == null ? 0 : +e), !this._next && Et !== this && (Et ? Et._next = this : re = this, Et = this), this._call = t, this._time = n, Ae();
1345
+ n = (n == null ? Oe() : +n) + (e == null ? 0 : +e), !this._next && Et !== this && (Et ? Et._next = this : ne = this, Et = this), this._call = t, this._time = n, _e();
1355
1346
  },
1356
1347
  stop: function() {
1357
- this._call && (this._call = null, this._time = 1 / 0, Ae());
1348
+ this._call && (this._call = null, this._time = 1 / 0, _e());
1358
1349
  }
1359
1350
  };
1360
- function or(t, e, n) {
1361
- var r = new oe();
1351
+ function ar(t, e, n) {
1352
+ var r = new ie();
1362
1353
  return r.restart(t, e, n), r;
1363
1354
  }
1364
- function Ca() {
1365
- Le(), ++yt;
1366
- for (var t = re, e; t; )
1367
- (e = lt - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
1355
+ function Ea() {
1356
+ Oe(), ++yt;
1357
+ for (var t = ne, e; t; )
1358
+ (e = ct - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
1368
1359
  --yt;
1369
1360
  }
1370
- function gn() {
1371
- lt = (ie = kt.now()) + ce, yt = Ct = 0;
1361
+ function mn() {
1362
+ ct = (re = Nt.now()) + le, yt = Mt = 0;
1372
1363
  try {
1373
- Ca();
1364
+ Ea();
1374
1365
  } finally {
1375
- yt = 0, Pa(), lt = 0;
1366
+ yt = 0, Pa(), ct = 0;
1376
1367
  }
1377
1368
  }
1378
- function Ea() {
1379
- var t = kt.now(), e = t - ie;
1380
- e > rr && (ce -= e, ie = t);
1369
+ function Ca() {
1370
+ var t = Nt.now(), e = t - re;
1371
+ e > ir && (le -= e, re = t);
1381
1372
  }
1382
1373
  function Pa() {
1383
- for (var t, e = re, n, r = 1 / 0; e; )
1384
- e._call ? (r > e._time && (r = e._time), t = e, e = e._next) : (n = e._next, e._next = null, e = t ? t._next = n : re = n);
1385
- Et = t, Ae(r);
1374
+ for (var t, e = ne, n, r = 1 / 0; e; )
1375
+ e._call ? (r > e._time && (r = e._time), t = e, e = e._next) : (n = e._next, e._next = null, e = t ? t._next = n : ne = n);
1376
+ Et = t, _e(r);
1386
1377
  }
1387
- function Ae(t) {
1378
+ function _e(t) {
1388
1379
  if (!yt) {
1389
- Ct && (Ct = clearTimeout(Ct));
1390
- var e = t - lt;
1391
- e > 24 ? (t < 1 / 0 && (Ct = setTimeout(gn, t - kt.now() - ce)), Mt && (Mt = clearInterval(Mt))) : (Mt || (ie = kt.now(), Mt = setInterval(Ea, rr)), yt = 1, ir(gn));
1380
+ Mt && (Mt = clearTimeout(Mt));
1381
+ var e = t - ct;
1382
+ e > 24 ? (t < 1 / 0 && (Mt = setTimeout(mn, t - Nt.now() - le)), Dt && (Dt = clearInterval(Dt))) : (Dt || (re = Nt.now(), Dt = setInterval(Ca, ir)), yt = 1, or(mn));
1392
1383
  }
1393
1384
  }
1394
- function vn(t, e, n) {
1395
- var r = new oe();
1385
+ function gn(t, e, n) {
1386
+ var r = new ie();
1396
1387
  return e = e == null ? 0 : +e, r.restart((i) => {
1397
1388
  r.stop(), t(i + e);
1398
1389
  }, e, n), r;
1399
1390
  }
1400
- var Ta = Ln("start", "end", "cancel", "interrupt"), Fa = [], ar = 0, yn = 1, Se = 2, qt = 3, wn = 4, De = 5, jt = 6;
1401
- function fe(t, e, n, r, i, o) {
1391
+ var Fa = Vn("start", "end", "cancel", "interrupt"), Ta = [], ur = 0, vn = 1, $e = 2, Wt = 3, yn = 4, Ae = 5, qt = 6;
1392
+ function ce(t, e, n, r, i, o) {
1402
1393
  var a = t.__transition;
1403
1394
  if (!a) t.__transition = {};
1404
1395
  else if (n in a) return;
@@ -1408,24 +1399,24 @@ function fe(t, e, n, r, i, o) {
1408
1399
  // For context during callback.
1409
1400
  group: i,
1410
1401
  // For context during callback.
1411
- on: Ta,
1412
- tween: Fa,
1402
+ on: Fa,
1403
+ tween: Ta,
1413
1404
  time: o.time,
1414
1405
  delay: o.delay,
1415
1406
  duration: o.duration,
1416
1407
  ease: o.ease,
1417
1408
  timer: null,
1418
- state: ar
1409
+ state: ur
1419
1410
  });
1420
1411
  }
1421
- function Ve(t, e) {
1412
+ function Re(t, e) {
1422
1413
  var n = X(t, e);
1423
- if (n.state > ar) throw new Error("too late; already scheduled");
1414
+ if (n.state > ur) throw new Error("too late; already scheduled");
1424
1415
  return n;
1425
1416
  }
1426
1417
  function B(t, e) {
1427
1418
  var n = X(t, e);
1428
- if (n.state > qt) throw new Error("too late; already running");
1419
+ if (n.state > Wt) throw new Error("too late; already running");
1429
1420
  return n;
1430
1421
  }
1431
1422
  function X(t, e) {
@@ -1435,33 +1426,33 @@ function X(t, e) {
1435
1426
  }
1436
1427
  function Na(t, e, n) {
1437
1428
  var r = t.__transition, i;
1438
- r[e] = n, n.timer = or(o, 0, n.time);
1429
+ r[e] = n, n.timer = ar(o, 0, n.time);
1439
1430
  function o(l) {
1440
- n.state = yn, n.timer.restart(a, n.delay, n.time), n.delay <= l && a(l - n.delay);
1431
+ n.state = vn, n.timer.restart(a, n.delay, n.time), n.delay <= l && a(l - n.delay);
1441
1432
  }
1442
1433
  function a(l) {
1443
1434
  var f, c, h, d;
1444
- if (n.state !== yn) return s();
1435
+ if (n.state !== vn) return s();
1445
1436
  for (f in r)
1446
1437
  if (d = r[f], d.name === n.name) {
1447
- if (d.state === qt) return vn(a);
1448
- d.state === wn ? (d.state = jt, d.timer.stop(), d.on.call("interrupt", t, t.__data__, d.index, d.group), delete r[f]) : +f < e && (d.state = jt, d.timer.stop(), d.on.call("cancel", t, t.__data__, d.index, d.group), delete r[f]);
1438
+ if (d.state === Wt) return gn(a);
1439
+ d.state === yn ? (d.state = qt, d.timer.stop(), d.on.call("interrupt", t, t.__data__, d.index, d.group), delete r[f]) : +f < e && (d.state = qt, d.timer.stop(), d.on.call("cancel", t, t.__data__, d.index, d.group), delete r[f]);
1449
1440
  }
1450
- if (vn(function() {
1451
- n.state === qt && (n.state = wn, n.timer.restart(u, n.delay, n.time), u(l));
1452
- }), n.state = Se, n.on.call("start", t, t.__data__, n.index, n.group), n.state === Se) {
1453
- for (n.state = qt, i = new Array(h = n.tween.length), f = 0, c = -1; f < h; ++f)
1441
+ if (gn(function() {
1442
+ n.state === Wt && (n.state = yn, n.timer.restart(u, n.delay, n.time), u(l));
1443
+ }), n.state = $e, n.on.call("start", t, t.__data__, n.index, n.group), n.state === $e) {
1444
+ for (n.state = Wt, i = new Array(h = n.tween.length), f = 0, c = -1; f < h; ++f)
1454
1445
  (d = n.tween[f].value.call(t, t.__data__, n.index, n.group)) && (i[++c] = d);
1455
1446
  i.length = c + 1;
1456
1447
  }
1457
1448
  }
1458
1449
  function u(l) {
1459
- for (var f = l < n.duration ? n.ease.call(null, l / n.duration) : (n.timer.restart(s), n.state = De, 1), c = -1, h = i.length; ++c < h; )
1450
+ for (var f = l < n.duration ? n.ease.call(null, l / n.duration) : (n.timer.restart(s), n.state = Ae, 1), c = -1, h = i.length; ++c < h; )
1460
1451
  i[c].call(t, f);
1461
- n.state === De && (n.on.call("end", t, t.__data__, n.index, n.group), s());
1452
+ n.state === Ae && (n.on.call("end", t, t.__data__, n.index, n.group), s());
1462
1453
  }
1463
1454
  function s() {
1464
- n.state = jt, n.timer.stop(), delete r[e];
1455
+ n.state = qt, n.timer.stop(), delete r[e];
1465
1456
  for (var l in r) return;
1466
1457
  delete t.__transition;
1467
1458
  }
@@ -1475,17 +1466,17 @@ function ka(t, e) {
1475
1466
  o = !1;
1476
1467
  continue;
1477
1468
  }
1478
- i = r.state > Se && r.state < De, r.state = jt, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[a];
1469
+ i = r.state > $e && r.state < Ae, r.state = qt, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[a];
1479
1470
  }
1480
1471
  o && delete t.__transition;
1481
1472
  }
1482
1473
  }
1483
- function Oa(t) {
1474
+ function Ia(t) {
1484
1475
  return this.each(function() {
1485
1476
  ka(this, t);
1486
1477
  });
1487
1478
  }
1488
- function Ia(t, e) {
1479
+ function Oa(t, e) {
1489
1480
  var n, r;
1490
1481
  return function() {
1491
1482
  var i = B(this, t), o = i.tween;
@@ -1525,9 +1516,9 @@ function La(t, e) {
1525
1516
  return a.value;
1526
1517
  return null;
1527
1518
  }
1528
- return this.each((e == null ? Ia : Ra)(n, t, e));
1519
+ return this.each((e == null ? Oa : Ra)(n, t, e));
1529
1520
  }
1530
- function Ge(t, e, n) {
1521
+ function Le(t, e, n) {
1531
1522
  var r = t._id;
1532
1523
  return t.each(function() {
1533
1524
  var i = B(this, r);
@@ -1536,9 +1527,9 @@ function Ge(t, e, n) {
1536
1527
  return X(i, r).value[e];
1537
1528
  };
1538
1529
  }
1539
- function ur(t, e) {
1530
+ function sr(t, e) {
1540
1531
  var n;
1541
- return (typeof e == "number" ? H : e instanceof st ? ne : (n = st(e)) ? (e = n, ne) : tr)(t, e);
1532
+ return (typeof e == "number" ? H : e instanceof lt ? ee : (n = lt(e)) ? (e = n, ee) : er)(t, e);
1542
1533
  }
1543
1534
  function Va(t) {
1544
1535
  return function() {
@@ -1579,15 +1570,15 @@ function Xa(t, e, n) {
1579
1570
  };
1580
1571
  }
1581
1572
  function Ya(t, e) {
1582
- var n = le(t), r = n === "transform" ? Da : ur;
1583
- return this.attrTween(t, typeof e == "function" ? (n.local ? Xa : Ua)(n, r, Ge(this, "attr." + t, e)) : e == null ? (n.local ? Ga : Va)(n) : (n.local ? Ha : za)(n, r, e));
1573
+ var n = se(t), r = n === "transform" ? Da : sr;
1574
+ return this.attrTween(t, typeof e == "function" ? (n.local ? Xa : Ua)(n, r, Le(this, "attr." + t, e)) : e == null ? (n.local ? Ga : Va)(n) : (n.local ? Ha : za)(n, r, e));
1584
1575
  }
1585
- function Wa(t, e) {
1576
+ function Ba(t, e) {
1586
1577
  return function(n) {
1587
1578
  this.setAttribute(t, e.call(this, n));
1588
1579
  };
1589
1580
  }
1590
- function Ba(t, e) {
1581
+ function Wa(t, e) {
1591
1582
  return function(n) {
1592
1583
  this.setAttributeNS(t.space, t.local, e.call(this, n));
1593
1584
  };
@@ -1596,7 +1587,7 @@ function qa(t, e) {
1596
1587
  var n, r;
1597
1588
  function i() {
1598
1589
  var o = e.apply(this, arguments);
1599
- return o !== r && (n = (r = o) && Ba(t, o)), n;
1590
+ return o !== r && (n = (r = o) && Wa(t, o)), n;
1600
1591
  }
1601
1592
  return i._value = e, i;
1602
1593
  }
@@ -1604,7 +1595,7 @@ function ja(t, e) {
1604
1595
  var n, r;
1605
1596
  function i() {
1606
1597
  var o = e.apply(this, arguments);
1607
- return o !== r && (n = (r = o) && Wa(t, o)), n;
1598
+ return o !== r && (n = (r = o) && Ba(t, o)), n;
1608
1599
  }
1609
1600
  return i._value = e, i;
1610
1601
  }
@@ -1613,17 +1604,17 @@ function Ka(t, e) {
1613
1604
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
1614
1605
  if (e == null) return this.tween(n, null);
1615
1606
  if (typeof e != "function") throw new Error();
1616
- var r = le(t);
1607
+ var r = se(t);
1617
1608
  return this.tween(n, (r.local ? qa : ja)(r, e));
1618
1609
  }
1619
1610
  function Za(t, e) {
1620
1611
  return function() {
1621
- Ve(this, t).delay = +e.apply(this, arguments);
1612
+ Re(this, t).delay = +e.apply(this, arguments);
1622
1613
  };
1623
1614
  }
1624
1615
  function Ja(t, e) {
1625
1616
  return e = +e, function() {
1626
- Ve(this, t).delay = e;
1617
+ Re(this, t).delay = e;
1627
1618
  };
1628
1619
  }
1629
1620
  function Qa(t) {
@@ -1666,7 +1657,7 @@ function au(t) {
1666
1657
  return this.each(ou(this._id, t));
1667
1658
  }
1668
1659
  function uu(t) {
1669
- typeof t != "function" && (t = zn(t));
1660
+ typeof t != "function" && (t = Hn(t));
1670
1661
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
1671
1662
  for (var o = e[i], a = o.length, u = r[i] = [], s, l = 0; l < a; ++l)
1672
1663
  (s = o[l]) && t.call(s, s.__data__, l, o) && u.push(s);
@@ -1688,7 +1679,7 @@ function lu(t) {
1688
1679
  });
1689
1680
  }
1690
1681
  function cu(t, e, n) {
1691
- var r, i, o = lu(e) ? Ve : B;
1682
+ var r, i, o = lu(e) ? Re : B;
1692
1683
  return function() {
1693
1684
  var a = o(this, t), u = a.on;
1694
1685
  u !== r && (i = (r = u).copy()).on(e, n), a.on = i;
@@ -1710,20 +1701,20 @@ function du() {
1710
1701
  }
1711
1702
  function pu(t) {
1712
1703
  var e = this._name, n = this._id;
1713
- typeof t != "function" && (t = Ne(t));
1704
+ typeof t != "function" && (t = Fe(t));
1714
1705
  for (var r = this._groups, i = r.length, o = new Array(i), a = 0; a < i; ++a)
1715
1706
  for (var u = r[a], s = u.length, l = o[a] = new Array(s), f, c, h = 0; h < s; ++h)
1716
- (f = u[h]) && (c = t.call(f, f.__data__, h, u)) && ("__data__" in f && (c.__data__ = f.__data__), l[h] = c, fe(l[h], e, n, h, l, X(f, n)));
1707
+ (f = u[h]) && (c = t.call(f, f.__data__, h, u)) && ("__data__" in f && (c.__data__ = f.__data__), l[h] = c, ce(l[h], e, n, h, l, X(f, n)));
1717
1708
  return new J(o, this._parents, e, n);
1718
1709
  }
1719
1710
  function mu(t) {
1720
1711
  var e = this._name, n = this._id;
1721
- typeof t != "function" && (t = Gn(t));
1712
+ typeof t != "function" && (t = zn(t));
1722
1713
  for (var r = this._groups, i = r.length, o = [], a = [], u = 0; u < i; ++u)
1723
1714
  for (var s = r[u], l = s.length, f, c = 0; c < l; ++c)
1724
1715
  if (f = s[c]) {
1725
1716
  for (var h = t.call(f, f.__data__, c, s), d, m = X(f, n), p = 0, g = h.length; p < g; ++p)
1726
- (d = h[p]) && fe(d, e, n, p, h, m);
1717
+ (d = h[p]) && ce(d, e, n, p, h, m);
1727
1718
  o.push(h), a.push(f);
1728
1719
  }
1729
1720
  return new J(o, a, e, n);
@@ -1739,7 +1730,7 @@ function yu(t, e) {
1739
1730
  return o === a ? null : o === n && a === r ? i : i = e(n = o, r = a);
1740
1731
  };
1741
1732
  }
1742
- function sr(t) {
1733
+ function lr(t) {
1743
1734
  return function() {
1744
1735
  this.style.removeProperty(t);
1745
1736
  };
@@ -1761,13 +1752,13 @@ function xu(t, e, n) {
1761
1752
  function bu(t, e) {
1762
1753
  var n, r, i, o = "style." + e, a = "end." + o, u;
1763
1754
  return function() {
1764
- var s = B(this, t), l = s.on, f = s.value[o] == null ? u || (u = sr(e)) : void 0;
1755
+ var s = B(this, t), l = s.on, f = s.value[o] == null ? u || (u = lr(e)) : void 0;
1765
1756
  (l !== n || i !== f) && (r = (n = l).copy()).on(a, i = f), s.on = r;
1766
1757
  };
1767
1758
  }
1768
1759
  function _u(t, e, n) {
1769
- var r = (t += "") == "transform" ? Sa : ur;
1770
- return e == null ? this.styleTween(t, yu(t, r)).on("end.style." + t, sr(t)) : typeof e == "function" ? this.styleTween(t, xu(t, r, Ge(this, "style." + t, e))).each(bu(this._id, t)) : this.styleTween(t, wu(t, r, e), n).on("end.style." + t, null);
1760
+ var r = (t += "") == "transform" ? Sa : sr;
1761
+ return e == null ? this.styleTween(t, yu(t, r)).on("end.style." + t, lr(t)) : typeof e == "function" ? this.styleTween(t, xu(t, r, Le(this, "style." + t, e))).each(bu(this._id, t)) : this.styleTween(t, wu(t, r, e), n).on("end.style." + t, null);
1771
1762
  }
1772
1763
  function $u(t, e, n) {
1773
1764
  return function(r) {
@@ -1800,10 +1791,10 @@ function Mu(t) {
1800
1791
  this.textContent = e ?? "";
1801
1792
  };
1802
1793
  }
1803
- function Cu(t) {
1804
- return this.tween("text", typeof t == "function" ? Mu(Ge(this, "text", t)) : Du(t == null ? "" : t + ""));
1805
- }
1806
1794
  function Eu(t) {
1795
+ return this.tween("text", typeof t == "function" ? Mu(Le(this, "text", t)) : Du(t == null ? "" : t + ""));
1796
+ }
1797
+ function Cu(t) {
1807
1798
  return function(e) {
1808
1799
  this.textContent = t.call(this, e);
1809
1800
  };
@@ -1812,23 +1803,23 @@ function Pu(t) {
1812
1803
  var e, n;
1813
1804
  function r() {
1814
1805
  var i = t.apply(this, arguments);
1815
- return i !== n && (e = (n = i) && Eu(i)), e;
1806
+ return i !== n && (e = (n = i) && Cu(i)), e;
1816
1807
  }
1817
1808
  return r._value = t, r;
1818
1809
  }
1819
- function Tu(t) {
1810
+ function Fu(t) {
1820
1811
  var e = "text";
1821
1812
  if (arguments.length < 1) return (e = this.tween(e)) && e._value;
1822
1813
  if (t == null) return this.tween(e, null);
1823
1814
  if (typeof t != "function") throw new Error();
1824
1815
  return this.tween(e, Pu(t));
1825
1816
  }
1826
- function Fu() {
1827
- for (var t = this._name, e = this._id, n = lr(), r = this._groups, i = r.length, o = 0; o < i; ++o)
1817
+ function Tu() {
1818
+ for (var t = this._name, e = this._id, n = cr(), r = this._groups, i = r.length, o = 0; o < i; ++o)
1828
1819
  for (var a = r[o], u = a.length, s, l = 0; l < u; ++l)
1829
1820
  if (s = a[l]) {
1830
1821
  var f = X(s, e);
1831
- fe(s, t, n, l, a, {
1822
+ ce(s, t, n, l, a, {
1832
1823
  time: f.time + f.delay + f.duration,
1833
1824
  delay: 0,
1834
1825
  duration: f.duration,
@@ -1853,33 +1844,33 @@ var ku = 0;
1853
1844
  function J(t, e, n, r) {
1854
1845
  this._groups = t, this._parents = e, this._name = n, this._id = r;
1855
1846
  }
1856
- function lr() {
1847
+ function cr() {
1857
1848
  return ++ku;
1858
1849
  }
1859
- var K = It.prototype;
1850
+ var j = It.prototype;
1860
1851
  J.prototype = {
1861
1852
  constructor: J,
1862
1853
  select: pu,
1863
1854
  selectAll: mu,
1864
- selectChild: K.selectChild,
1865
- selectChildren: K.selectChildren,
1855
+ selectChild: j.selectChild,
1856
+ selectChildren: j.selectChildren,
1866
1857
  filter: uu,
1867
1858
  merge: su,
1868
1859
  selection: vu,
1869
- transition: Fu,
1870
- call: K.call,
1871
- nodes: K.nodes,
1872
- node: K.node,
1873
- size: K.size,
1874
- empty: K.empty,
1875
- each: K.each,
1860
+ transition: Tu,
1861
+ call: j.call,
1862
+ nodes: j.nodes,
1863
+ node: j.node,
1864
+ size: j.size,
1865
+ empty: j.empty,
1866
+ each: j.each,
1876
1867
  on: fu,
1877
1868
  attr: Ya,
1878
1869
  attrTween: Ka,
1879
1870
  style: _u,
1880
1871
  styleTween: Su,
1881
- text: Cu,
1882
- textTween: Tu,
1872
+ text: Eu,
1873
+ textTween: Fu,
1883
1874
  remove: du,
1884
1875
  tween: La,
1885
1876
  delay: Qa,
@@ -1887,17 +1878,17 @@ J.prototype = {
1887
1878
  ease: iu,
1888
1879
  easeVarying: au,
1889
1880
  end: Nu,
1890
- [Symbol.iterator]: K[Symbol.iterator]
1881
+ [Symbol.iterator]: j[Symbol.iterator]
1891
1882
  };
1892
- function Ou(t) {
1883
+ function Iu(t) {
1893
1884
  return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
1894
1885
  }
1895
- var Iu = {
1886
+ var Ou = {
1896
1887
  time: null,
1897
1888
  // Set on use.
1898
1889
  delay: 0,
1899
1890
  duration: 250,
1900
- ease: Ou
1891
+ ease: Iu
1901
1892
  };
1902
1893
  function Ru(t, e) {
1903
1894
  for (var n; !(n = t.__transition) || !(n = n[e]); )
@@ -1907,18 +1898,18 @@ function Ru(t, e) {
1907
1898
  }
1908
1899
  function Lu(t) {
1909
1900
  var e, n;
1910
- t instanceof J ? (e = t._id, t = t._name) : (e = lr(), (n = Iu).time = Le(), t = t == null ? null : t + "");
1901
+ t instanceof J ? (e = t._id, t = t._name) : (e = cr(), (n = Ou).time = Oe(), t = t == null ? null : t + "");
1911
1902
  for (var r = this._groups, i = r.length, o = 0; o < i; ++o)
1912
1903
  for (var a = r[o], u = a.length, s, l = 0; l < u; ++l)
1913
- (s = a[l]) && fe(s, t, e, l, a, n || Ru(s, e));
1904
+ (s = a[l]) && ce(s, t, e, l, a, n || Ru(s, e));
1914
1905
  return new J(r, this._parents, t, e);
1915
1906
  }
1916
- It.prototype.interrupt = Oa;
1907
+ It.prototype.interrupt = Ia;
1917
1908
  It.prototype.transition = Lu;
1918
1909
  function Vu(t) {
1919
1910
  return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
1920
1911
  }
1921
- function ae(t, e) {
1912
+ function oe(t, e) {
1922
1913
  if ((n = (t = e ? t.toExponential(e - 1) : t.toExponential()).indexOf("e")) < 0) return null;
1923
1914
  var n, r = t.slice(0, n);
1924
1915
  return [
@@ -1927,7 +1918,7 @@ function ae(t, e) {
1927
1918
  ];
1928
1919
  }
1929
1920
  function wt(t) {
1930
- return t = ae(Math.abs(t)), t ? t[1] : NaN;
1921
+ return t = oe(Math.abs(t)), t ? t[1] : NaN;
1931
1922
  }
1932
1923
  function Gu(t, e) {
1933
1924
  return function(n, r) {
@@ -1944,10 +1935,10 @@ function zu(t) {
1944
1935
  };
1945
1936
  }
1946
1937
  var Hu = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
1947
- function ue(t) {
1938
+ function ae(t) {
1948
1939
  if (!(e = Hu.exec(t))) throw new Error("invalid format: " + t);
1949
1940
  var e;
1950
- return new ze({
1941
+ return new Ve({
1951
1942
  fill: e[1],
1952
1943
  align: e[2],
1953
1944
  sign: e[3],
@@ -1960,11 +1951,11 @@ function ue(t) {
1960
1951
  type: e[10]
1961
1952
  });
1962
1953
  }
1963
- ue.prototype = ze.prototype;
1964
- function ze(t) {
1954
+ ae.prototype = Ve.prototype;
1955
+ function Ve(t) {
1965
1956
  this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + "";
1966
1957
  }
1967
- ze.prototype.toString = function() {
1958
+ Ve.prototype.toString = function() {
1968
1959
  return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
1969
1960
  };
1970
1961
  function Uu(t) {
@@ -1983,20 +1974,20 @@ function Uu(t) {
1983
1974
  }
1984
1975
  return r > 0 ? t.slice(0, r) + t.slice(i + 1) : t;
1985
1976
  }
1986
- var cr;
1977
+ var fr;
1987
1978
  function Xu(t, e) {
1988
- var n = ae(t, e);
1979
+ var n = oe(t, e);
1989
1980
  if (!n) return t + "";
1990
- var r = n[0], i = n[1], o = i - (cr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = r.length;
1991
- return o === a ? r : o > a ? r + new Array(o - a + 1).join("0") : o > 0 ? r.slice(0, o) + "." + r.slice(o) : "0." + new Array(1 - o).join("0") + ae(t, Math.max(0, e + o - 1))[0];
1981
+ var r = n[0], i = n[1], o = i - (fr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = r.length;
1982
+ return o === a ? r : o > a ? r + new Array(o - a + 1).join("0") : o > 0 ? r.slice(0, o) + "." + r.slice(o) : "0." + new Array(1 - o).join("0") + oe(t, Math.max(0, e + o - 1))[0];
1992
1983
  }
1993
- function xn(t, e) {
1994
- var n = ae(t, e);
1984
+ function wn(t, e) {
1985
+ var n = oe(t, e);
1995
1986
  if (!n) return t + "";
1996
1987
  var r = n[0], i = n[1];
1997
1988
  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");
1998
1989
  }
1999
- const bn = {
1990
+ const xn = {
2000
1991
  "%": (t, e) => (t * 100).toFixed(e),
2001
1992
  b: (t) => Math.round(t).toString(2),
2002
1993
  c: (t) => t + "",
@@ -2005,65 +1996,65 @@ const bn = {
2005
1996
  f: (t, e) => t.toFixed(e),
2006
1997
  g: (t, e) => t.toPrecision(e),
2007
1998
  o: (t) => Math.round(t).toString(8),
2008
- p: (t, e) => xn(t * 100, e),
2009
- r: xn,
1999
+ p: (t, e) => wn(t * 100, e),
2000
+ r: wn,
2010
2001
  s: Xu,
2011
2002
  X: (t) => Math.round(t).toString(16).toUpperCase(),
2012
2003
  x: (t) => Math.round(t).toString(16)
2013
2004
  };
2014
- function _n(t) {
2005
+ function bn(t) {
2015
2006
  return t;
2016
2007
  }
2017
- var $n = Array.prototype.map, An = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2008
+ var _n = Array.prototype.map, $n = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2018
2009
  function Yu(t) {
2019
- var e = t.grouping === void 0 || t.thousands === void 0 ? _n : Gu($n.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 + "", o = t.numerals === void 0 ? _n : zu($n.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", s = t.nan === void 0 ? "NaN" : t.nan + "";
2010
+ var e = t.grouping === void 0 || t.thousands === void 0 ? bn : Gu(_n.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 + "", o = t.numerals === void 0 ? bn : zu(_n.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", s = t.nan === void 0 ? "NaN" : t.nan + "";
2020
2011
  function l(c) {
2021
- c = ue(c);
2022
- var h = c.fill, d = c.align, m = c.sign, p = c.symbol, g = c.zero, _ = c.width, S = c.comma, b = c.precision, D = c.trim, w = c.type;
2023
- w === "n" ? (S = !0, w = "g") : bn[w] || (b === void 0 && (b = 12), D = !0, w = "g"), (g || h === "0" && d === "=") && (g = !0, h = "0", d = "=");
2024
- var M = p === "$" ? n : p === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : "", v = p === "$" ? r : /[%p]/.test(w) ? a : "", $ = bn[w], x = /[defgprs%]/.test(w);
2025
- b = b === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
2026
- function T(y) {
2027
- var N = M, C = v, z, ht, dt;
2028
- if (w === "c")
2029
- C = $(y) + C, y = "";
2012
+ c = ae(c);
2013
+ var h = c.fill, d = c.align, m = c.sign, p = c.symbol, g = c.zero, b = c.width, D = c.comma, x = c.precision, M = c.trim, y = c.type;
2014
+ y === "n" ? (D = !0, y = "g") : xn[y] || (x === void 0 && (x = 12), M = !0, y = "g"), (g || h === "0" && d === "=") && (g = !0, h = "0", d = "=");
2015
+ var P = p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : "", w = p === "$" ? r : /[%p]/.test(y) ? a : "", _ = xn[y], $ = /[defgprs%]/.test(y);
2016
+ x = x === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, x)) : Math.max(0, Math.min(20, x));
2017
+ function A(v) {
2018
+ var F = P, T = w, z, tt, dt;
2019
+ if (y === "c")
2020
+ T = _(v) + T, v = "";
2030
2021
  else {
2031
- y = +y;
2032
- var q = y < 0 || 1 / y < 0;
2033
- if (y = isNaN(y) ? s : $(Math.abs(y), b), D && (y = Uu(y)), q && +y == 0 && m !== "+" && (q = !1), N = (q ? m === "(" ? m : u : m === "-" || m === "(" ? "" : m) + N, C = (w === "s" ? An[8 + cr / 3] : "") + C + (q && m === "(" ? ")" : ""), x) {
2034
- for (z = -1, ht = y.length; ++z < ht; )
2035
- if (dt = y.charCodeAt(z), 48 > dt || dt > 57) {
2036
- C = (dt === 46 ? i + y.slice(z + 1) : y.slice(z)) + C, y = y.slice(0, z);
2022
+ v = +v;
2023
+ var W = v < 0 || 1 / v < 0;
2024
+ if (v = isNaN(v) ? s : _(Math.abs(v), x), M && (v = Uu(v)), W && +v == 0 && m !== "+" && (W = !1), F = (W ? m === "(" ? m : u : m === "-" || m === "(" ? "" : m) + F, T = (y === "s" ? $n[8 + fr / 3] : "") + T + (W && m === "(" ? ")" : ""), $) {
2025
+ for (z = -1, tt = v.length; ++z < tt; )
2026
+ if (dt = v.charCodeAt(z), 48 > dt || dt > 57) {
2027
+ T = (dt === 46 ? i + v.slice(z + 1) : v.slice(z)) + T, v = v.slice(0, z);
2037
2028
  break;
2038
2029
  }
2039
2030
  }
2040
2031
  }
2041
- S && !g && (y = e(y, 1 / 0));
2042
- var it = N.length + y.length + C.length, j = it < _ ? new Array(_ - it + 1).join(h) : "";
2043
- switch (S && g && (y = e(j + y, j.length ? _ - C.length : 1 / 0), j = ""), d) {
2032
+ D && !g && (v = e(v, 1 / 0));
2033
+ var ot = F.length + v.length + T.length, q = ot < b ? new Array(b - ot + 1).join(h) : "";
2034
+ switch (D && g && (v = e(q + v, q.length ? b - T.length : 1 / 0), q = ""), d) {
2044
2035
  case "<":
2045
- y = N + y + C + j;
2036
+ v = F + v + T + q;
2046
2037
  break;
2047
2038
  case "=":
2048
- y = N + j + y + C;
2039
+ v = F + q + v + T;
2049
2040
  break;
2050
2041
  case "^":
2051
- y = j.slice(0, it = j.length >> 1) + N + y + C + j.slice(it);
2042
+ v = q.slice(0, ot = q.length >> 1) + F + v + T + q.slice(ot);
2052
2043
  break;
2053
2044
  default:
2054
- y = j + N + y + C;
2045
+ v = q + F + v + T;
2055
2046
  break;
2056
2047
  }
2057
- return o(y);
2048
+ return o(v);
2058
2049
  }
2059
- return T.toString = function() {
2050
+ return A.toString = function() {
2060
2051
  return c + "";
2061
- }, T;
2052
+ }, A;
2062
2053
  }
2063
2054
  function f(c, h) {
2064
- var d = l((c = ue(c), c.type = "f", c)), m = Math.max(-8, Math.min(8, Math.floor(wt(h) / 3))) * 3, p = Math.pow(10, -m), g = An[8 + m / 3];
2065
- return function(_) {
2066
- return d(p * _) + g;
2055
+ var d = l((c = ae(c), c.type = "f", c)), m = Math.max(-8, Math.min(8, Math.floor(wt(h) / 3))) * 3, p = Math.pow(10, -m), g = $n[8 + m / 3];
2056
+ return function(b) {
2057
+ return d(p * b) + g;
2067
2058
  };
2068
2059
  }
2069
2060
  return {
@@ -2071,16 +2062,16 @@ function Yu(t) {
2071
2062
  formatPrefix: f
2072
2063
  };
2073
2064
  }
2074
- var Xt, He, fr;
2075
- Wu({
2065
+ var Ut, Ge, hr;
2066
+ Bu({
2076
2067
  thousands: ",",
2077
2068
  grouping: [3],
2078
2069
  currency: ["$", ""]
2079
2070
  });
2080
- function Wu(t) {
2081
- return Xt = Yu(t), He = Xt.format, fr = Xt.formatPrefix, Xt;
2082
- }
2083
2071
  function Bu(t) {
2072
+ return Ut = Yu(t), Ge = Ut.format, hr = Ut.formatPrefix, Ut;
2073
+ }
2074
+ function Wu(t) {
2084
2075
  return Math.max(0, -wt(Math.abs(t)));
2085
2076
  }
2086
2077
  function qu(t, e) {
@@ -2089,7 +2080,7 @@ function qu(t, e) {
2089
2080
  function ju(t, e) {
2090
2081
  return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, wt(e) - wt(t)) + 1;
2091
2082
  }
2092
- function he(t, e) {
2083
+ function fe(t, e) {
2093
2084
  switch (arguments.length) {
2094
2085
  case 0:
2095
2086
  break;
@@ -2102,20 +2093,20 @@ function he(t, e) {
2102
2093
  }
2103
2094
  return this;
2104
2095
  }
2105
- const Sn = Symbol("implicit");
2106
- function hr() {
2107
- var t = new nn(), e = [], n = [], r = Sn;
2096
+ const An = Symbol("implicit");
2097
+ function dr() {
2098
+ var t = new en(), e = [], n = [], r = An;
2108
2099
  function i(o) {
2109
2100
  let a = t.get(o);
2110
2101
  if (a === void 0) {
2111
- if (r !== Sn) return r;
2102
+ if (r !== An) return r;
2112
2103
  t.set(o, a = e.push(o) - 1);
2113
2104
  }
2114
2105
  return n[a % n.length];
2115
2106
  }
2116
2107
  return i.domain = function(o) {
2117
2108
  if (!arguments.length) return e.slice();
2118
- e = [], t = new nn();
2109
+ e = [], t = new en();
2119
2110
  for (const a of o)
2120
2111
  t.has(a) || t.set(a, e.push(a) - 1);
2121
2112
  return i;
@@ -2124,17 +2115,17 @@ function hr() {
2124
2115
  }, i.unknown = function(o) {
2125
2116
  return arguments.length ? (r = o, i) : r;
2126
2117
  }, i.copy = function() {
2127
- return hr(e, n).unknown(r);
2128
- }, he.apply(i, arguments), i;
2118
+ return dr(e, n).unknown(r);
2119
+ }, fe.apply(i, arguments), i;
2129
2120
  }
2130
- function dr() {
2131
- var t = hr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, o, a, u = !1, s = 0, l = 0, f = 0.5;
2121
+ function pr() {
2122
+ var t = dr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, o, a, u = !1, s = 0, l = 0, f = 0.5;
2132
2123
  delete t.unknown;
2133
2124
  function c() {
2134
2125
  var h = e().length, d = i < r, m = d ? i : r, p = d ? r : i;
2135
2126
  o = (p - m) / Math.max(1, h - s + l * 2), u && (o = Math.floor(o)), m += (p - m - o * (h - s)) * f, a = o * (1 - s), u && (m = Math.round(m), a = Math.round(a));
2136
- var g = vi(h).map(function(_) {
2137
- return m + o * _;
2127
+ var g = vi(h).map(function(b) {
2128
+ return m + o * b;
2138
2129
  });
2139
2130
  return n(d ? g.reverse() : g);
2140
2131
  }
@@ -2159,17 +2150,17 @@ function dr() {
2159
2150
  }, t.align = function(h) {
2160
2151
  return arguments.length ? (f = Math.max(0, Math.min(1, h)), c()) : f;
2161
2152
  }, t.copy = function() {
2162
- return dr(e(), [r, i]).round(u).paddingInner(s).paddingOuter(l).align(f);
2163
- }, he.apply(c(), arguments);
2153
+ return pr(e(), [r, i]).round(u).paddingInner(s).paddingOuter(l).align(f);
2154
+ }, fe.apply(c(), arguments);
2164
2155
  }
2165
- function pr(t) {
2156
+ function mr(t) {
2166
2157
  var e = t.copy;
2167
2158
  return t.padding = t.paddingOuter, delete t.paddingInner, delete t.paddingOuter, t.copy = function() {
2168
- return pr(e());
2159
+ return mr(e());
2169
2160
  }, t;
2170
2161
  }
2171
2162
  function Ku() {
2172
- return pr(dr.apply(null, arguments).paddingInner(1));
2163
+ return mr(pr.apply(null, arguments).paddingInner(1));
2173
2164
  }
2174
2165
  function Zu(t) {
2175
2166
  return function() {
@@ -2179,11 +2170,11 @@ function Zu(t) {
2179
2170
  function Ju(t) {
2180
2171
  return +t;
2181
2172
  }
2182
- var Dn = [0, 1];
2173
+ var Sn = [0, 1];
2183
2174
  function pt(t) {
2184
2175
  return t;
2185
2176
  }
2186
- function Me(t, e) {
2177
+ function Se(t, e) {
2187
2178
  return (e -= t = +t) ? function(n) {
2188
2179
  return (n - t) / e;
2189
2180
  } : Zu(isNaN(e) ? NaN : 0.5);
@@ -2196,16 +2187,16 @@ function Qu(t, e) {
2196
2187
  }
2197
2188
  function ts(t, e, n) {
2198
2189
  var r = t[0], i = t[1], o = e[0], a = e[1];
2199
- return i < r ? (r = Me(i, r), o = n(a, o)) : (r = Me(r, i), o = n(o, a)), function(u) {
2190
+ return i < r ? (r = Se(i, r), o = n(a, o)) : (r = Se(r, i), o = n(o, a)), function(u) {
2200
2191
  return o(r(u));
2201
2192
  };
2202
2193
  }
2203
2194
  function es(t, e, n) {
2204
2195
  var r = Math.min(t.length, e.length) - 1, i = new Array(r), o = new Array(r), a = -1;
2205
2196
  for (t[r] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++a < r; )
2206
- i[a] = Me(t[a], t[a + 1]), o[a] = n(e[a], e[a + 1]);
2197
+ i[a] = Se(t[a], t[a + 1]), o[a] = n(e[a], e[a + 1]);
2207
2198
  return function(u) {
2208
- var s = Rn(t, u, 1, r) - 1;
2199
+ var s = Ln(t, u, 1, r) - 1;
2209
2200
  return o[s](i[s](u));
2210
2201
  };
2211
2202
  }
@@ -2213,7 +2204,7 @@ function ns(t, e) {
2213
2204
  return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
2214
2205
  }
2215
2206
  function rs() {
2216
- var t = Dn, e = Dn, n = Re, r, i, o, a = pt, u, s, l;
2207
+ var t = Sn, e = Sn, n = Ie, r, i, o, a = pt, u, s, l;
2217
2208
  function f() {
2218
2209
  var h = Math.min(t.length, e.length);
2219
2210
  return a !== pt && (a = Qu(t[0], t[h - 1])), u = h > 2 ? es : ts, s = l = null, c;
@@ -2244,10 +2235,10 @@ function is() {
2244
2235
  }
2245
2236
  function os(t, e, n, r) {
2246
2237
  var i = gi(t, e, n), o;
2247
- switch (r = ue(r ?? ",f"), r.type) {
2238
+ switch (r = ae(r ?? ",f"), r.type) {
2248
2239
  case "s": {
2249
2240
  var a = Math.max(Math.abs(t), Math.abs(e));
2250
- return r.precision == null && !isNaN(o = qu(i, a)) && (r.precision = o), fr(r, a);
2241
+ return r.precision == null && !isNaN(o = qu(i, a)) && (r.precision = o), hr(r, a);
2251
2242
  }
2252
2243
  case "":
2253
2244
  case "e":
@@ -2259,13 +2250,13 @@ function os(t, e, n, r) {
2259
2250
  }
2260
2251
  case "f":
2261
2252
  case "%": {
2262
- r.precision == null && !isNaN(o = Bu(i)) && (r.precision = o - (r.type === "%") * 2);
2253
+ r.precision == null && !isNaN(o = Wu(i)) && (r.precision = o - (r.type === "%") * 2);
2263
2254
  break;
2264
2255
  }
2265
2256
  }
2266
- return He(r);
2257
+ return Ge(r);
2267
2258
  }
2268
- function mr(t) {
2259
+ function gr(t) {
2269
2260
  var e = t.domain;
2270
2261
  return t.ticks = function(n) {
2271
2262
  var r = e();
@@ -2277,7 +2268,7 @@ function mr(t) {
2277
2268
  n == null && (n = 10);
2278
2269
  var r = e(), i = 0, o = r.length - 1, a = r[i], u = r[o], s, l, f = 10;
2279
2270
  for (u < a && (l = a, a = u, u = l, l = i, i = o, o = l); f-- > 0; ) {
2280
- if (l = we(a, u, n), l === s)
2271
+ if (l = ve(a, u, n), l === s)
2281
2272
  return r[i] = a, r[o] = u, e(r);
2282
2273
  if (l > 0)
2283
2274
  a = Math.floor(a / l) * l, u = Math.ceil(u / l) * l;
@@ -2290,16 +2281,16 @@ function mr(t) {
2290
2281
  return t;
2291
2282
  }, t;
2292
2283
  }
2293
- function gr() {
2284
+ function vr() {
2294
2285
  var t = is();
2295
2286
  return t.copy = function() {
2296
- return ns(t, gr());
2297
- }, he.apply(t, arguments), mr(t);
2287
+ return ns(t, vr());
2288
+ }, fe.apply(t, arguments), gr(t);
2298
2289
  }
2299
- function vr() {
2290
+ function yr() {
2300
2291
  var t = 0, e = 1, n = 1, r = [0.5], i = [0, 1], o;
2301
2292
  function a(s) {
2302
- return s != null && s <= s ? i[Rn(r, s, 0, n)] : o;
2293
+ return s != null && s <= s ? i[Ln(r, s, 0, n)] : o;
2303
2294
  }
2304
2295
  function u() {
2305
2296
  var s = -1;
@@ -2318,19 +2309,19 @@ function vr() {
2318
2309
  }, a.thresholds = function() {
2319
2310
  return r.slice();
2320
2311
  }, a.copy = function() {
2321
- return vr().domain([t, e]).range(i).unknown(o);
2322
- }, he.apply(mr(a), arguments);
2312
+ return yr().domain([t, e]).range(i).unknown(o);
2313
+ }, fe.apply(gr(a), arguments);
2323
2314
  }
2324
- function Pt(t, e, n) {
2315
+ function Ct(t, e, n) {
2325
2316
  this.k = t, this.x = e, this.y = n;
2326
2317
  }
2327
- Pt.prototype = {
2328
- constructor: Pt,
2318
+ Ct.prototype = {
2319
+ constructor: Ct,
2329
2320
  scale: function(t) {
2330
- return t === 1 ? this : new Pt(this.k * t, this.x, this.y);
2321
+ return t === 1 ? this : new Ct(this.k * t, this.x, this.y);
2331
2322
  },
2332
2323
  translate: function(t, e) {
2333
- return t === 0 & e === 0 ? this : new Pt(this.k, this.x + this.k * t, this.y + this.k * e);
2324
+ return t === 0 & e === 0 ? this : new Ct(this.k, this.x + this.k * t, this.y + this.k * e);
2334
2325
  },
2335
2326
  apply: function(t) {
2336
2327
  return [t[0] * this.k + this.x, t[1] * this.k + this.y];
@@ -2360,14 +2351,14 @@ Pt.prototype = {
2360
2351
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2361
2352
  }
2362
2353
  };
2363
- Pt.prototype;
2354
+ Ct.prototype;
2364
2355
  function Z(t) {
2365
2356
  return Object.prototype.toString.call(t) === "[object Object]";
2366
2357
  }
2367
- function Il(t) {
2358
+ function Rl(t) {
2368
2359
  return !!t && !t.nodename && t.constructor != String && t.constructor != RegExp && t.constructor != Array && /function/i.test(t + "");
2369
2360
  }
2370
- function ot(t, e) {
2361
+ function at(t, e) {
2371
2362
  if (Z(t) === !1 || Z(e) === !1)
2372
2363
  return Object.assign({}, e);
2373
2364
  const n = (r, i) => {
@@ -2382,7 +2373,7 @@ function ot(t, e) {
2382
2373
  };
2383
2374
  return n(t, e);
2384
2375
  }
2385
- function Rl(t = 0) {
2376
+ function Ll(t = 0) {
2386
2377
  try {
2387
2378
  let e = t.toString().split(".");
2388
2379
  return e[0] = e[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), e.join(".");
@@ -2390,54 +2381,55 @@ function Rl(t = 0) {
2390
2381
  console.error(e);
2391
2382
  }
2392
2383
  }
2393
- function Ll(t, e) {
2394
- return e instanceof Function ? e(t) : He(e)(t);
2384
+ function Vl(t, e) {
2385
+ return e instanceof Function ? e(t) : Ge(e)(t);
2395
2386
  }
2396
- function Ue(t, e, n) {
2397
- return `${t}_${e}_${n}`;
2387
+ function ze(t, e, n, r) {
2388
+ let i = `${t}_${e}_${n}`;
2389
+ return r != null && (i += `_${r}`), i;
2398
2390
  }
2399
- function yr(t, e) {
2391
+ function wr(t, e) {
2400
2392
  return `${t}_series${e}`;
2401
2393
  }
2402
2394
  function as(t, e) {
2403
2395
  return `${t}_group${e}`;
2404
2396
  }
2405
- function us(t, e) {
2406
- const n = e.grid.seriesType === "row" ? e.grid.rowLabels : e.grid.columnLabels;
2407
- return t.map((r, i) => n[i] != null ? n[i] : yr("grid", i));
2397
+ function us({ transposedDataGrid: t, dataFormatter: e, chartType: n = "grid", gridIndex: r = 0 }) {
2398
+ const i = e.grid.seriesType === "row" ? e.grid.rowLabels : e.grid.columnLabels;
2399
+ return t.map((o, a) => i[a] != null ? i[a] : wr(`${n}_grid${r}`, a));
2408
2400
  }
2409
- function ss(t, e) {
2401
+ function ss({ transposedDataGrid: t, dataFormatter: e, chartType: n = "grid", gridIndex: r = 0 }) {
2410
2402
  if (t[0] == null)
2411
2403
  return [];
2412
- const n = e.grid.seriesType === "row" ? e.grid.columnLabels : e.grid.rowLabels;
2413
- return t[0].map((r, i) => n[i] != null ? n[i] : as("grid", i));
2404
+ const i = e.grid.seriesType === "row" ? e.grid.columnLabels : e.grid.rowLabels;
2405
+ return t[0].map((o, a) => i[a] != null ? i[a] : as(`${n}_grid${r}`, a));
2414
2406
  }
2415
- function Lt(t) {
2407
+ function Rt(t) {
2416
2408
  const e = [0, 0];
2417
2409
  return t.length ? t.reduce((r, i) => [
2418
2410
  i < r[0] ? i : r[0],
2419
2411
  i > r[1] ? i : r[1]
2420
2412
  ], [t[0], t[0]]) : e;
2421
2413
  }
2422
- function Ce(t) {
2414
+ function De(t) {
2423
2415
  const e = t.filter((n) => n != null && n.value != null).map((n) => n.value);
2424
- return Lt(e);
2416
+ return Rt(e);
2425
2417
  }
2426
- function Vl(t) {
2418
+ function Gl(t) {
2427
2419
  const n = (t[0] && Array.isArray(t[0]) ? t.flat() : t).filter((r) => (r == null || Z(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2428
- return Lt(n);
2420
+ return Rt(n);
2429
2421
  }
2430
- function Mn(t) {
2422
+ function Dn(t) {
2431
2423
  const n = t.flat().filter((r) => (r == null || Z(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2432
- return Lt(n);
2424
+ return Rt(n);
2433
2425
  }
2434
- function Gl(t) {
2426
+ function zl(t) {
2435
2427
  const n = t.flat().flat().filter((r) => (r == null || Z(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2436
- return Lt(n);
2428
+ return Rt(n);
2437
2429
  }
2438
- function zl(t, e = 2) {
2430
+ function Hl(t, e = 2) {
2439
2431
  const r = t.flat().filter((i, o) => o == e).filter((i) => (i == null || Z(i) && i.value == null) === !1).map((i) => typeof i == "number" ? i : i.value);
2440
- return Lt(r);
2432
+ return Rt(r);
2441
2433
  }
2442
2434
  function ls(t, e) {
2443
2435
  if (t === "row")
@@ -2448,6 +2440,9 @@ function ls(t, e) {
2448
2440
  i[a][o] = e[o][a];
2449
2441
  return i;
2450
2442
  }
2443
+ function He(t, e) {
2444
+ 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];
2445
+ }
2451
2446
  function cs(t, e) {
2452
2447
  const n = /* @__PURE__ */ new Map();
2453
2448
  let r = Object.assign([], t), i = [];
@@ -2485,13 +2480,14 @@ const fs = (t) => {
2485
2480
  } else
2486
2481
  return (s, l, f) => s.length;
2487
2482
  })(n.sort != null), a = (u, s, l, f, c) => {
2488
- const h = Ue(n.type, s, l), d = n.seriesLabels[s] || yr("series", s), m = n.colorsPredicate(u, s, l, t), p = n.visibleFilter(u, s, l, t);
2483
+ const h = ze(n.type, s, l), d = n.seriesLabels[s] || wr("series", s), m = He(s, r), p = n.visibleFilter(u, s, l, t);
2489
2484
  return typeof u == "number" ? {
2490
2485
  id: h,
2491
2486
  index: f,
2492
2487
  sortedIndex: c,
2493
2488
  label: h,
2494
- tooltipContent: n.tooltipContentFormat(u, s, l, t),
2489
+ description: "",
2490
+ // tooltipContent: dataFormatter.tooltipContentFormat(detailData, rowIndex, columnIndex, context),
2495
2491
  data: {},
2496
2492
  value: u,
2497
2493
  // valueLabel: formatValueToLabel(detailData, dataFormatter.valueFormat),
@@ -2504,7 +2500,8 @@ const fs = (t) => {
2504
2500
  index: f,
2505
2501
  sortedIndex: c,
2506
2502
  label: u.label ? u.label : h,
2507
- tooltipContent: u.tooltipContent ? u.tooltipContent : n.tooltipContentFormat(u, s, l, t),
2503
+ description: u.description,
2504
+ // tooltipContent: detailData.tooltipContent ? detailData.tooltipContent : dataFormatter.tooltipContentFormat(detailData, rowIndex, columnIndex, context),
2508
2505
  data: u.data ?? {},
2509
2506
  value: u.value,
2510
2507
  // valueLabel: formatValueToLabel(detailData.value, dataFormatter.valueFormat),
@@ -2530,17 +2527,17 @@ const fs = (t) => {
2530
2527
  }
2531
2528
  return i;
2532
2529
  };
2533
- var Ee = function(t, e) {
2534
- return Ee = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
2530
+ var Me = function(t, e) {
2531
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
2535
2532
  n.__proto__ = r;
2536
2533
  } || function(n, r) {
2537
2534
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
2538
- }, Ee(t, e);
2535
+ }, Me(t, e);
2539
2536
  };
2540
2537
  function Q(t, e) {
2541
2538
  if (typeof e != "function" && e !== null)
2542
2539
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
2543
- Ee(t, e);
2540
+ Me(t, e);
2544
2541
  function n() {
2545
2542
  this.constructor = t;
2546
2543
  }
@@ -2573,7 +2570,7 @@ function hs(t, e, n, r) {
2573
2570
  l((r = r.apply(t, e || [])).next());
2574
2571
  });
2575
2572
  }
2576
- function wr(t, e) {
2573
+ function xr(t, e) {
2577
2574
  var n = { label: 0, sent: function() {
2578
2575
  if (o[0] & 1) throw o[1];
2579
2576
  return o[1];
@@ -2643,7 +2640,7 @@ function xt(t) {
2643
2640
  };
2644
2641
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
2645
2642
  }
2646
- function nt(t, e) {
2643
+ function rt(t, e) {
2647
2644
  var n = typeof Symbol == "function" && t[Symbol.iterator];
2648
2645
  if (!n) return t;
2649
2646
  var r = n.call(t), i, o = [], a;
@@ -2660,7 +2657,7 @@ function nt(t, e) {
2660
2657
  }
2661
2658
  return o;
2662
2659
  }
2663
- function rt(t, e, n) {
2660
+ function it(t, e, n) {
2664
2661
  if (n || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
2665
2662
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
2666
2663
  return t.concat(o || Array.prototype.slice.call(e));
@@ -2681,8 +2678,8 @@ function ds(t, e, n) {
2681
2678
  }
2682
2679
  function u(d, m) {
2683
2680
  r[d] && (i[d] = function(p) {
2684
- return new Promise(function(g, _) {
2685
- o.push([d, p, g, _]) > 1 || s(d, p);
2681
+ return new Promise(function(g, b) {
2682
+ o.push([d, p, g, b]) > 1 || s(d, p);
2686
2683
  });
2687
2684
  }, m && (i[d] = m(i[d])));
2688
2685
  }
@@ -2725,16 +2722,16 @@ function ps(t) {
2725
2722
  }, a);
2726
2723
  }
2727
2724
  }
2728
- function F(t) {
2725
+ function N(t) {
2729
2726
  return typeof t == "function";
2730
2727
  }
2731
- function Xe(t) {
2728
+ function Ue(t) {
2732
2729
  var e = function(r) {
2733
2730
  Error.call(r), r.stack = new Error().stack;
2734
2731
  }, n = t(e);
2735
2732
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
2736
2733
  }
2737
- var me = Xe(function(t) {
2734
+ var pe = Ue(function(t) {
2738
2735
  return function(n) {
2739
2736
  t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
2740
2737
  ` + n.map(function(r, i) {
@@ -2743,13 +2740,13 @@ var me = Xe(function(t) {
2743
2740
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
2744
2741
  };
2745
2742
  });
2746
- function se(t, e) {
2743
+ function ue(t, e) {
2747
2744
  if (t) {
2748
2745
  var n = t.indexOf(e);
2749
2746
  0 <= n && t.splice(n, 1);
2750
2747
  }
2751
2748
  }
2752
- var Vt = function() {
2749
+ var Lt = function() {
2753
2750
  function t(e) {
2754
2751
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
2755
2752
  }
@@ -2777,11 +2774,11 @@ var Vt = function() {
2777
2774
  else
2778
2775
  a.remove(this);
2779
2776
  var f = this.initialTeardown;
2780
- if (F(f))
2777
+ if (N(f))
2781
2778
  try {
2782
2779
  f();
2783
2780
  } catch (p) {
2784
- o = p instanceof me ? p.errors : [p];
2781
+ o = p instanceof pe ? p.errors : [p];
2785
2782
  }
2786
2783
  var c = this._finalizers;
2787
2784
  if (c) {
@@ -2790,9 +2787,9 @@ var Vt = function() {
2790
2787
  for (var h = xt(c), d = h.next(); !d.done; d = h.next()) {
2791
2788
  var m = d.value;
2792
2789
  try {
2793
- Cn(m);
2790
+ Mn(m);
2794
2791
  } catch (p) {
2795
- o = o ?? [], p instanceof me ? o = rt(rt([], nt(o)), nt(p.errors)) : o.push(p);
2792
+ o = o ?? [], p instanceof pe ? o = it(it([], rt(o)), rt(p.errors)) : o.push(p);
2796
2793
  }
2797
2794
  }
2798
2795
  } catch (p) {
@@ -2806,13 +2803,13 @@ var Vt = function() {
2806
2803
  }
2807
2804
  }
2808
2805
  if (o)
2809
- throw new me(o);
2806
+ throw new pe(o);
2810
2807
  }
2811
2808
  }, t.prototype.add = function(e) {
2812
2809
  var n;
2813
2810
  if (e && e !== this)
2814
2811
  if (this.closed)
2815
- Cn(e);
2812
+ Mn(e);
2816
2813
  else {
2817
2814
  if (e instanceof t) {
2818
2815
  if (e.closed || e._hasParent(this))
@@ -2829,57 +2826,57 @@ var Vt = function() {
2829
2826
  this._parentage = Array.isArray(n) ? (n.push(e), n) : n ? [n, e] : e;
2830
2827
  }, t.prototype._removeParent = function(e) {
2831
2828
  var n = this._parentage;
2832
- n === e ? this._parentage = null : Array.isArray(n) && se(n, e);
2829
+ n === e ? this._parentage = null : Array.isArray(n) && ue(n, e);
2833
2830
  }, t.prototype.remove = function(e) {
2834
2831
  var n = this._finalizers;
2835
- n && se(n, e), e instanceof t && e._removeParent(this);
2832
+ n && ue(n, e), e instanceof t && e._removeParent(this);
2836
2833
  }, t.EMPTY = function() {
2837
2834
  var e = new t();
2838
2835
  return e.closed = !0, e;
2839
2836
  }(), t;
2840
- }(), xr = Vt.EMPTY;
2841
- function br(t) {
2842
- return t instanceof Vt || t && "closed" in t && F(t.remove) && F(t.add) && F(t.unsubscribe);
2837
+ }(), br = Lt.EMPTY;
2838
+ function _r(t) {
2839
+ return t instanceof Lt || t && "closed" in t && N(t.remove) && N(t.add) && N(t.unsubscribe);
2843
2840
  }
2844
- function Cn(t) {
2845
- F(t) ? t() : t.unsubscribe();
2841
+ function Mn(t) {
2842
+ N(t) ? t() : t.unsubscribe();
2846
2843
  }
2847
- var _r = {
2844
+ var $r = {
2848
2845
  onUnhandledError: null,
2849
2846
  onStoppedNotification: null,
2850
2847
  Promise: void 0,
2851
2848
  useDeprecatedSynchronousErrorHandling: !1,
2852
2849
  useDeprecatedNextContext: !1
2853
- }, $r = {
2850
+ }, Ar = {
2854
2851
  setTimeout: function(t, e) {
2855
2852
  for (var n = [], r = 2; r < arguments.length; r++)
2856
2853
  n[r - 2] = arguments[r];
2857
- return setTimeout.apply(void 0, rt([t, e], nt(n)));
2854
+ return setTimeout.apply(void 0, it([t, e], rt(n)));
2858
2855
  },
2859
2856
  clearTimeout: function(t) {
2860
- var e = $r.delegate;
2857
+ var e = Ar.delegate;
2861
2858
  return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(t);
2862
2859
  },
2863
2860
  delegate: void 0
2864
2861
  };
2865
- function Ar(t) {
2866
- $r.setTimeout(function() {
2862
+ function Sr(t) {
2863
+ Ar.setTimeout(function() {
2867
2864
  throw t;
2868
2865
  });
2869
2866
  }
2870
- function Pe() {
2867
+ function Ee() {
2871
2868
  }
2872
- function Kt(t) {
2869
+ function jt(t) {
2873
2870
  t();
2874
2871
  }
2875
- var Ye = function(t) {
2872
+ var Xe = function(t) {
2876
2873
  Q(e, t);
2877
2874
  function e(n) {
2878
2875
  var r = t.call(this) || this;
2879
- return r.isStopped = !1, n ? (r.destination = n, br(n) && n.add(r)) : r.destination = ys, r;
2876
+ return r.isStopped = !1, n ? (r.destination = n, _r(n) && n.add(r)) : r.destination = ys, r;
2880
2877
  }
2881
2878
  return e.create = function(n, r, i) {
2882
- return new Ot(n, r, i);
2879
+ return new kt(n, r, i);
2883
2880
  }, e.prototype.next = function(n) {
2884
2881
  this.isStopped || this._next(n);
2885
2882
  }, e.prototype.error = function(n) {
@@ -2903,8 +2900,8 @@ var Ye = function(t) {
2903
2900
  this.unsubscribe();
2904
2901
  }
2905
2902
  }, e;
2906
- }(Vt), ms = Function.prototype.bind;
2907
- function ge(t, e) {
2903
+ }(Lt), ms = Function.prototype.bind;
2904
+ function me(t, e) {
2908
2905
  return ms.call(t, e);
2909
2906
  }
2910
2907
  var gs = function() {
@@ -2917,7 +2914,7 @@ var gs = function() {
2917
2914
  try {
2918
2915
  n.next(e);
2919
2916
  } catch (r) {
2920
- Yt(r);
2917
+ Xt(r);
2921
2918
  }
2922
2919
  }, t.prototype.error = function(e) {
2923
2920
  var n = this.partialObserver;
@@ -2925,24 +2922,24 @@ var gs = function() {
2925
2922
  try {
2926
2923
  n.error(e);
2927
2924
  } catch (r) {
2928
- Yt(r);
2925
+ Xt(r);
2929
2926
  }
2930
2927
  else
2931
- Yt(e);
2928
+ Xt(e);
2932
2929
  }, t.prototype.complete = function() {
2933
2930
  var e = this.partialObserver;
2934
2931
  if (e.complete)
2935
2932
  try {
2936
2933
  e.complete();
2937
2934
  } catch (n) {
2938
- Yt(n);
2935
+ Xt(n);
2939
2936
  }
2940
2937
  }, t;
2941
- }(), Ot = function(t) {
2938
+ }(), kt = function(t) {
2942
2939
  Q(e, t);
2943
2940
  function e(n, r, i) {
2944
2941
  var o = t.call(this) || this, a;
2945
- if (F(n) || !n)
2942
+ if (N(n) || !n)
2946
2943
  a = {
2947
2944
  next: n ?? void 0,
2948
2945
  error: r ?? void 0,
@@ -2950,43 +2947,43 @@ var gs = function() {
2950
2947
  };
2951
2948
  else {
2952
2949
  var u;
2953
- o && _r.useDeprecatedNextContext ? (u = Object.create(n), u.unsubscribe = function() {
2950
+ o && $r.useDeprecatedNextContext ? (u = Object.create(n), u.unsubscribe = function() {
2954
2951
  return o.unsubscribe();
2955
2952
  }, a = {
2956
- next: n.next && ge(n.next, u),
2957
- error: n.error && ge(n.error, u),
2958
- complete: n.complete && ge(n.complete, u)
2953
+ next: n.next && me(n.next, u),
2954
+ error: n.error && me(n.error, u),
2955
+ complete: n.complete && me(n.complete, u)
2959
2956
  }) : a = n;
2960
2957
  }
2961
2958
  return o.destination = new gs(a), o;
2962
2959
  }
2963
2960
  return e;
2964
- }(Ye);
2965
- function Yt(t) {
2966
- Ar(t);
2961
+ }(Xe);
2962
+ function Xt(t) {
2963
+ Sr(t);
2967
2964
  }
2968
2965
  function vs(t) {
2969
2966
  throw t;
2970
2967
  }
2971
2968
  var ys = {
2972
2969
  closed: !0,
2973
- next: Pe,
2970
+ next: Ee,
2974
2971
  error: vs,
2975
- complete: Pe
2976
- }, We = function() {
2972
+ complete: Ee
2973
+ }, Ye = function() {
2977
2974
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
2978
2975
  }();
2979
- function $t(t) {
2976
+ function _t(t) {
2980
2977
  return t;
2981
2978
  }
2982
2979
  function ws(t) {
2983
- return t.length === 0 ? $t : t.length === 1 ? t[0] : function(n) {
2980
+ return t.length === 0 ? _t : t.length === 1 ? t[0] : function(n) {
2984
2981
  return t.reduce(function(r, i) {
2985
2982
  return i(r);
2986
2983
  }, n);
2987
2984
  };
2988
2985
  }
2989
- var P = function() {
2986
+ var C = function() {
2990
2987
  function t(e) {
2991
2988
  e && (this._subscribe = e);
2992
2989
  }
@@ -2994,8 +2991,8 @@ var P = function() {
2994
2991
  var n = new t();
2995
2992
  return n.source = this, n.operator = e, n;
2996
2993
  }, t.prototype.subscribe = function(e, n, r) {
2997
- var i = this, o = bs(e) ? e : new Ot(e, n, r);
2998
- return Kt(function() {
2994
+ var i = this, o = bs(e) ? e : new kt(e, n, r);
2995
+ return jt(function() {
2999
2996
  var a = i, u = a.operator, s = a.source;
3000
2997
  o.add(u ? u.call(o, s) : s ? i._subscribe(o) : i._trySubscribe(o));
3001
2998
  }), o;
@@ -3008,7 +3005,7 @@ var P = function() {
3008
3005
  }, t.prototype.forEach = function(e, n) {
3009
3006
  var r = this;
3010
3007
  return n = En(n), new n(function(i, o) {
3011
- var a = new Ot({
3008
+ var a = new kt({
3012
3009
  next: function(u) {
3013
3010
  try {
3014
3011
  e(u);
@@ -3024,7 +3021,7 @@ var P = function() {
3024
3021
  }, t.prototype._subscribe = function(e) {
3025
3022
  var n;
3026
3023
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e);
3027
- }, t.prototype[We] = function() {
3024
+ }, t.prototype[Ye] = function() {
3028
3025
  return this;
3029
3026
  }, t.prototype.pipe = function() {
3030
3027
  for (var e = [], n = 0; n < arguments.length; n++)
@@ -3048,18 +3045,18 @@ var P = function() {
3048
3045
  }();
3049
3046
  function En(t) {
3050
3047
  var e;
3051
- return (e = t ?? _r.Promise) !== null && e !== void 0 ? e : Promise;
3048
+ return (e = t ?? $r.Promise) !== null && e !== void 0 ? e : Promise;
3052
3049
  }
3053
3050
  function xs(t) {
3054
- return t && F(t.next) && F(t.error) && F(t.complete);
3051
+ return t && N(t.next) && N(t.error) && N(t.complete);
3055
3052
  }
3056
3053
  function bs(t) {
3057
- return t && t instanceof Ye || xs(t) && br(t);
3054
+ return t && t instanceof Xe || xs(t) && _r(t);
3058
3055
  }
3059
3056
  function _s(t) {
3060
- return F(t == null ? void 0 : t.lift);
3057
+ return N(t == null ? void 0 : t.lift);
3061
3058
  }
3062
- function I(t) {
3059
+ function O(t) {
3063
3060
  return function(e) {
3064
3061
  if (_s(e))
3065
3062
  return e.lift(function(n) {
@@ -3072,7 +3069,7 @@ function I(t) {
3072
3069
  throw new TypeError("Unable to lift unknown Observable type");
3073
3070
  };
3074
3071
  }
3075
- function O(t, e, n, r, i) {
3072
+ function I(t, e, n, r, i) {
3076
3073
  return new $s(t, e, n, r, i);
3077
3074
  }
3078
3075
  var $s = function(t) {
@@ -3110,7 +3107,7 @@ var $s = function(t) {
3110
3107
  t.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
3111
3108
  }
3112
3109
  }, e;
3113
- }(Ye), As = Xe(function(t) {
3110
+ }(Xe), As = Ue(function(t) {
3114
3111
  return function() {
3115
3112
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
3116
3113
  };
@@ -3121,14 +3118,14 @@ var $s = function(t) {
3121
3118
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
3122
3119
  }
3123
3120
  return e.prototype.lift = function(n) {
3124
- var r = new Pn(this, this);
3121
+ var r = new Cn(this, this);
3125
3122
  return r.operator = n, r;
3126
3123
  }, e.prototype._throwIfClosed = function() {
3127
3124
  if (this.closed)
3128
3125
  throw new As();
3129
3126
  }, e.prototype.next = function(n) {
3130
3127
  var r = this;
3131
- Kt(function() {
3128
+ jt(function() {
3132
3129
  var i, o;
3133
3130
  if (r._throwIfClosed(), !r.isStopped) {
3134
3131
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
@@ -3150,7 +3147,7 @@ var $s = function(t) {
3150
3147
  });
3151
3148
  }, e.prototype.error = function(n) {
3152
3149
  var r = this;
3153
- Kt(function() {
3150
+ jt(function() {
3154
3151
  if (r._throwIfClosed(), !r.isStopped) {
3155
3152
  r.hasError = r.isStopped = !0, r.thrownError = n;
3156
3153
  for (var i = r.observers; i.length; )
@@ -3159,7 +3156,7 @@ var $s = function(t) {
3159
3156
  });
3160
3157
  }, e.prototype.complete = function() {
3161
3158
  var n = this;
3162
- Kt(function() {
3159
+ jt(function() {
3163
3160
  if (n._throwIfClosed(), !n.isStopped) {
3164
3161
  n.isStopped = !0;
3165
3162
  for (var r = n.observers; r.length; )
@@ -3181,19 +3178,19 @@ var $s = function(t) {
3181
3178
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
3182
3179
  }, e.prototype._innerSubscribe = function(n) {
3183
3180
  var r = this, i = this, o = i.hasError, a = i.isStopped, u = i.observers;
3184
- return o || a ? xr : (this.currentObservers = null, u.push(n), new Vt(function() {
3185
- r.currentObservers = null, se(u, n);
3181
+ return o || a ? br : (this.currentObservers = null, u.push(n), new Lt(function() {
3182
+ r.currentObservers = null, ue(u, n);
3186
3183
  }));
3187
3184
  }, e.prototype._checkFinalizedStatuses = function(n) {
3188
3185
  var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
3189
3186
  i ? n.error(o) : a && n.complete();
3190
3187
  }, e.prototype.asObservable = function() {
3191
- var n = new P();
3188
+ var n = new C();
3192
3189
  return n.source = this, n;
3193
3190
  }, e.create = function(n, r) {
3194
- return new Pn(n, r);
3191
+ return new Cn(n, r);
3195
3192
  }, e;
3196
- }(P), Pn = function(t) {
3193
+ }(C), Cn = function(t) {
3197
3194
  Q(e, t);
3198
3195
  function e(n, r) {
3199
3196
  var i = t.call(this) || this;
@@ -3210,7 +3207,7 @@ var $s = function(t) {
3210
3207
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
3211
3208
  }, e.prototype._subscribe = function(n) {
3212
3209
  var r, i;
3213
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : xr;
3210
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : br;
3214
3211
  }, e;
3215
3212
  }(E), Be = {
3216
3213
  now: function() {
@@ -3248,14 +3245,14 @@ var $s = function(t) {
3248
3245
  return e.prototype.schedule = function(n, r) {
3249
3246
  return this;
3250
3247
  }, e;
3251
- }(Vt), Te = {
3248
+ }(Lt), Ce = {
3252
3249
  setInterval: function(t, e) {
3253
3250
  for (var n = [], r = 2; r < arguments.length; r++)
3254
3251
  n[r - 2] = arguments[r];
3255
- return setInterval.apply(void 0, rt([t, e], nt(n)));
3252
+ return setInterval.apply(void 0, it([t, e], rt(n)));
3256
3253
  },
3257
3254
  clearInterval: function(t) {
3258
- var e = Te.delegate;
3255
+ var e = Ce.delegate;
3259
3256
  return ((e == null ? void 0 : e.clearInterval) || clearInterval)(t);
3260
3257
  },
3261
3258
  delegate: void 0
@@ -3273,11 +3270,11 @@ var $s = function(t) {
3273
3270
  var o = this.id, a = this.scheduler;
3274
3271
  return o != null && (this.id = this.recycleAsyncId(a, o, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(a, this.id, r), this;
3275
3272
  }, e.prototype.requestAsyncId = function(n, r, i) {
3276
- return i === void 0 && (i = 0), Te.setInterval(n.flush.bind(n, this), i);
3273
+ return i === void 0 && (i = 0), Ce.setInterval(n.flush.bind(n, this), i);
3277
3274
  }, e.prototype.recycleAsyncId = function(n, r, i) {
3278
3275
  if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
3279
3276
  return r;
3280
- r != null && Te.clearInterval(r);
3277
+ r != null && Ce.clearInterval(r);
3281
3278
  }, e.prototype.execute = function(n, r) {
3282
3279
  if (this.closed)
3283
3280
  return new Error("executing a cancelled action");
@@ -3298,20 +3295,20 @@ var $s = function(t) {
3298
3295
  }, e.prototype.unsubscribe = function() {
3299
3296
  if (!this.closed) {
3300
3297
  var n = this, r = n.id, i = n.scheduler, o = i.actions;
3301
- this.work = this.state = this.scheduler = null, this.pending = !1, se(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, t.prototype.unsubscribe.call(this);
3298
+ this.work = this.state = this.scheduler = null, this.pending = !1, ue(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, t.prototype.unsubscribe.call(this);
3302
3299
  }
3303
3300
  }, e;
3304
- }(Ds), Tn = function() {
3301
+ }(Ds), Pn = function() {
3305
3302
  function t(e, n) {
3306
3303
  n === void 0 && (n = t.now), this.schedulerActionCtor = e, this.now = n;
3307
3304
  }
3308
3305
  return t.prototype.schedule = function(e, n, r) {
3309
3306
  return n === void 0 && (n = 0), new this.schedulerActionCtor(this, e).schedule(r, n);
3310
3307
  }, t.now = Be.now, t;
3311
- }(), Cs = function(t) {
3308
+ }(), Es = function(t) {
3312
3309
  Q(e, t);
3313
3310
  function e(n, r) {
3314
- r === void 0 && (r = Tn.now);
3311
+ r === void 0 && (r = Pn.now);
3315
3312
  var i = t.call(this, n, r) || this;
3316
3313
  return i.actions = [], i._active = !1, i;
3317
3314
  }
@@ -3333,50 +3330,50 @@ var $s = function(t) {
3333
3330
  throw i;
3334
3331
  }
3335
3332
  }, e;
3336
- }(Tn), qe = new Cs(Ms), Es = qe, je = new P(function(t) {
3333
+ }(Pn), We = new Es(Ms), Cs = We, qe = new C(function(t) {
3337
3334
  return t.complete();
3338
3335
  });
3339
- function Sr(t) {
3340
- return t && F(t.schedule);
3336
+ function Dr(t) {
3337
+ return t && N(t.schedule);
3341
3338
  }
3342
- function Ke(t) {
3339
+ function je(t) {
3343
3340
  return t[t.length - 1];
3344
3341
  }
3345
3342
  function Ps(t) {
3346
- return F(Ke(t)) ? t.pop() : void 0;
3343
+ return N(je(t)) ? t.pop() : void 0;
3347
3344
  }
3348
- function At(t) {
3349
- return Sr(Ke(t)) ? t.pop() : void 0;
3345
+ function $t(t) {
3346
+ return Dr(je(t)) ? t.pop() : void 0;
3350
3347
  }
3351
- function Dr(t, e) {
3352
- return typeof Ke(t) == "number" ? t.pop() : e;
3348
+ function Mr(t, e) {
3349
+ return typeof je(t) == "number" ? t.pop() : e;
3353
3350
  }
3354
- var Mr = function(t) {
3351
+ var Er = function(t) {
3355
3352
  return t && typeof t.length == "number" && typeof t != "function";
3356
3353
  };
3357
3354
  function Cr(t) {
3358
- return F(t == null ? void 0 : t.then);
3359
- }
3360
- function Er(t) {
3361
- return F(t[We]);
3355
+ return N(t == null ? void 0 : t.then);
3362
3356
  }
3363
3357
  function Pr(t) {
3364
- return Symbol.asyncIterator && F(t == null ? void 0 : t[Symbol.asyncIterator]);
3358
+ return N(t[Ye]);
3359
+ }
3360
+ function Fr(t) {
3361
+ return Symbol.asyncIterator && N(t == null ? void 0 : t[Symbol.asyncIterator]);
3365
3362
  }
3366
3363
  function Tr(t) {
3367
3364
  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.");
3368
3365
  }
3369
- function Ts() {
3366
+ function Fs() {
3370
3367
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
3371
3368
  }
3372
- var Fr = Ts();
3373
- function Nr(t) {
3374
- return F(t == null ? void 0 : t[Fr]);
3375
- }
3369
+ var Nr = Fs();
3376
3370
  function kr(t) {
3371
+ return N(t == null ? void 0 : t[Nr]);
3372
+ }
3373
+ function Ir(t) {
3377
3374
  return ds(this, arguments, function() {
3378
3375
  var n, r, i, o;
3379
- return wr(this, function(a) {
3376
+ return xr(this, function(a) {
3380
3377
  switch (a.label) {
3381
3378
  case 0:
3382
3379
  n = t.getReader(), a.label = 1;
@@ -3405,53 +3402,53 @@ function kr(t) {
3405
3402
  });
3406
3403
  }
3407
3404
  function Or(t) {
3408
- return F(t == null ? void 0 : t.getReader);
3405
+ return N(t == null ? void 0 : t.getReader);
3409
3406
  }
3410
3407
  function G(t) {
3411
- if (t instanceof P)
3408
+ if (t instanceof C)
3412
3409
  return t;
3413
3410
  if (t != null) {
3411
+ if (Pr(t))
3412
+ return Ts(t);
3414
3413
  if (Er(t))
3415
- return Fs(t);
3416
- if (Mr(t))
3417
3414
  return Ns(t);
3418
3415
  if (Cr(t))
3419
3416
  return ks(t);
3420
- if (Pr(t))
3421
- return Ir(t);
3422
- if (Nr(t))
3423
- return Os(t);
3424
- if (Or(t))
3417
+ if (Fr(t))
3418
+ return Rr(t);
3419
+ if (kr(t))
3425
3420
  return Is(t);
3421
+ if (Or(t))
3422
+ return Os(t);
3426
3423
  }
3427
3424
  throw Tr(t);
3428
3425
  }
3429
- function Fs(t) {
3430
- return new P(function(e) {
3431
- var n = t[We]();
3432
- if (F(n.subscribe))
3426
+ function Ts(t) {
3427
+ return new C(function(e) {
3428
+ var n = t[Ye]();
3429
+ if (N(n.subscribe))
3433
3430
  return n.subscribe(e);
3434
3431
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
3435
3432
  });
3436
3433
  }
3437
3434
  function Ns(t) {
3438
- return new P(function(e) {
3435
+ return new C(function(e) {
3439
3436
  for (var n = 0; n < t.length && !e.closed; n++)
3440
3437
  e.next(t[n]);
3441
3438
  e.complete();
3442
3439
  });
3443
3440
  }
3444
3441
  function ks(t) {
3445
- return new P(function(e) {
3442
+ return new C(function(e) {
3446
3443
  t.then(function(n) {
3447
3444
  e.closed || (e.next(n), e.complete());
3448
3445
  }, function(n) {
3449
3446
  return e.error(n);
3450
- }).then(null, Ar);
3447
+ }).then(null, Sr);
3451
3448
  });
3452
3449
  }
3453
- function Os(t) {
3454
- return new P(function(e) {
3450
+ function Is(t) {
3451
+ return new C(function(e) {
3455
3452
  var n, r;
3456
3453
  try {
3457
3454
  for (var i = xt(t), o = i.next(); !o.done; o = i.next()) {
@@ -3471,21 +3468,21 @@ function Os(t) {
3471
3468
  e.complete();
3472
3469
  });
3473
3470
  }
3474
- function Ir(t) {
3475
- return new P(function(e) {
3471
+ function Rr(t) {
3472
+ return new C(function(e) {
3476
3473
  Rs(t, e).catch(function(n) {
3477
3474
  return e.error(n);
3478
3475
  });
3479
3476
  });
3480
3477
  }
3481
- function Is(t) {
3482
- return Ir(kr(t));
3478
+ function Os(t) {
3479
+ return Rr(Ir(t));
3483
3480
  }
3484
3481
  function Rs(t, e) {
3485
3482
  var n, r, i, o;
3486
3483
  return hs(this, void 0, void 0, function() {
3487
3484
  var a, u;
3488
- return wr(this, function(s) {
3485
+ return xr(this, function(s) {
3489
3486
  switch (s.label) {
3490
3487
  case 0:
3491
3488
  s.trys.push([0, 5, 6, 11]), n = ps(t), s.label = 1;
@@ -3519,7 +3516,7 @@ function Rs(t, e) {
3519
3516
  });
3520
3517
  });
3521
3518
  }
3522
- function tt(t, e, n, r, i) {
3519
+ function et(t, e, n, r, i) {
3523
3520
  r === void 0 && (r = 0), i === void 0 && (i = !1);
3524
3521
  var o = e.schedule(function() {
3525
3522
  n(), i ? t.add(this.schedule(null, r)) : this.unsubscribe();
@@ -3527,38 +3524,38 @@ function tt(t, e, n, r, i) {
3527
3524
  if (t.add(o), !i)
3528
3525
  return o;
3529
3526
  }
3530
- function Rr(t, e) {
3531
- return e === void 0 && (e = 0), I(function(n, r) {
3532
- n.subscribe(O(r, function(i) {
3533
- return tt(r, t, function() {
3527
+ function Lr(t, e) {
3528
+ return e === void 0 && (e = 0), O(function(n, r) {
3529
+ n.subscribe(I(r, function(i) {
3530
+ return et(r, t, function() {
3534
3531
  return r.next(i);
3535
3532
  }, e);
3536
3533
  }, function() {
3537
- return tt(r, t, function() {
3534
+ return et(r, t, function() {
3538
3535
  return r.complete();
3539
3536
  }, e);
3540
3537
  }, function(i) {
3541
- return tt(r, t, function() {
3538
+ return et(r, t, function() {
3542
3539
  return r.error(i);
3543
3540
  }, e);
3544
3541
  }));
3545
3542
  });
3546
3543
  }
3547
- function Lr(t, e) {
3548
- return e === void 0 && (e = 0), I(function(n, r) {
3544
+ function Vr(t, e) {
3545
+ return e === void 0 && (e = 0), O(function(n, r) {
3549
3546
  r.add(t.schedule(function() {
3550
3547
  return n.subscribe(r);
3551
3548
  }, e));
3552
3549
  });
3553
3550
  }
3554
3551
  function Ls(t, e) {
3555
- return G(t).pipe(Lr(e), Rr(e));
3552
+ return G(t).pipe(Vr(e), Lr(e));
3556
3553
  }
3557
3554
  function Vs(t, e) {
3558
- return G(t).pipe(Lr(e), Rr(e));
3555
+ return G(t).pipe(Vr(e), Lr(e));
3559
3556
  }
3560
3557
  function Gs(t, e) {
3561
- return new P(function(n) {
3558
+ return new C(function(n) {
3562
3559
  var r = 0;
3563
3560
  return e.schedule(function() {
3564
3561
  r === t.length ? n.complete() : (n.next(t[r++]), n.closed || this.schedule());
@@ -3566,10 +3563,10 @@ function Gs(t, e) {
3566
3563
  });
3567
3564
  }
3568
3565
  function zs(t, e) {
3569
- return new P(function(n) {
3566
+ return new C(function(n) {
3570
3567
  var r;
3571
- return tt(n, e, function() {
3572
- r = t[Fr](), tt(n, e, function() {
3568
+ return et(n, e, function() {
3569
+ r = t[Nr](), et(n, e, function() {
3573
3570
  var i, o, a;
3574
3571
  try {
3575
3572
  i = r.next(), o = i.value, a = i.done;
@@ -3580,17 +3577,17 @@ function zs(t, e) {
3580
3577
  a ? n.complete() : n.next(o);
3581
3578
  }, 0, !0);
3582
3579
  }), function() {
3583
- return F(r == null ? void 0 : r.return) && r.return();
3580
+ return N(r == null ? void 0 : r.return) && r.return();
3584
3581
  };
3585
3582
  });
3586
3583
  }
3587
- function Vr(t, e) {
3584
+ function Gr(t, e) {
3588
3585
  if (!t)
3589
3586
  throw new Error("Iterable cannot be null");
3590
- return new P(function(n) {
3591
- tt(n, e, function() {
3587
+ return new C(function(n) {
3588
+ et(n, e, function() {
3592
3589
  var r = t[Symbol.asyncIterator]();
3593
- tt(n, e, function() {
3590
+ et(n, e, function() {
3594
3591
  r.next().then(function(i) {
3595
3592
  i.done ? n.complete() : n.next(i.value);
3596
3593
  });
@@ -3599,35 +3596,35 @@ function Vr(t, e) {
3599
3596
  });
3600
3597
  }
3601
3598
  function Hs(t, e) {
3602
- return Vr(kr(t), e);
3599
+ return Gr(Ir(t), e);
3603
3600
  }
3604
3601
  function Us(t, e) {
3605
3602
  if (t != null) {
3606
- if (Er(t))
3603
+ if (Pr(t))
3607
3604
  return Ls(t, e);
3608
- if (Mr(t))
3605
+ if (Er(t))
3609
3606
  return Gs(t, e);
3610
3607
  if (Cr(t))
3611
3608
  return Vs(t, e);
3612
- if (Pr(t))
3613
- return Vr(t, e);
3614
- if (Nr(t))
3609
+ if (Fr(t))
3610
+ return Gr(t, e);
3611
+ if (kr(t))
3615
3612
  return zs(t, e);
3616
3613
  if (Or(t))
3617
3614
  return Hs(t, e);
3618
3615
  }
3619
3616
  throw Tr(t);
3620
3617
  }
3621
- function St(t, e) {
3618
+ function At(t, e) {
3622
3619
  return e ? Us(t, e) : G(t);
3623
3620
  }
3624
- function Tt() {
3621
+ function Pt() {
3625
3622
  for (var t = [], e = 0; e < arguments.length; e++)
3626
3623
  t[e] = arguments[e];
3627
- var n = At(t);
3628
- return St(t, n);
3624
+ var n = $t(t);
3625
+ return At(t, n);
3629
3626
  }
3630
- var Gr = Xe(function(t) {
3627
+ var zr = Ue(function(t) {
3631
3628
  return function() {
3632
3629
  t(this), this.name = "EmptyError", this.message = "no elements in sequence";
3633
3630
  };
@@ -3636,20 +3633,20 @@ function Xs(t) {
3636
3633
  return t instanceof Date && !isNaN(t);
3637
3634
  }
3638
3635
  function R(t, e) {
3639
- return I(function(n, r) {
3636
+ return O(function(n, r) {
3640
3637
  var i = 0;
3641
- n.subscribe(O(r, function(o) {
3638
+ n.subscribe(I(r, function(o) {
3642
3639
  r.next(t.call(e, o, i++));
3643
3640
  }));
3644
3641
  });
3645
3642
  }
3646
3643
  var Ys = Array.isArray;
3647
- function Ws(t, e) {
3648
- return Ys(e) ? t.apply(void 0, rt([], nt(e))) : t(e);
3644
+ function Bs(t, e) {
3645
+ return Ys(e) ? t.apply(void 0, it([], rt(e))) : t(e);
3649
3646
  }
3650
- function Bs(t) {
3647
+ function Ws(t) {
3651
3648
  return R(function(e) {
3652
- return Ws(t, e);
3649
+ return Bs(t, e);
3653
3650
  });
3654
3651
  }
3655
3652
  var qs = Array.isArray, js = Object.getPrototypeOf, Ks = Object.prototype, Zs = Object.keys;
@@ -3678,24 +3675,24 @@ function tl(t, e) {
3678
3675
  return n[r] = e[i], n;
3679
3676
  }, {});
3680
3677
  }
3681
- function ct() {
3678
+ function ft() {
3682
3679
  for (var t = [], e = 0; e < arguments.length; e++)
3683
3680
  t[e] = arguments[e];
3684
- var n = At(t), r = Ps(t), i = Js(t), o = i.args, a = i.keys;
3681
+ var n = $t(t), r = Ps(t), i = Js(t), o = i.args, a = i.keys;
3685
3682
  if (o.length === 0)
3686
- return St([], n);
3687
- var u = new P(el(o, n, a ? function(s) {
3683
+ return At([], n);
3684
+ var u = new C(el(o, n, a ? function(s) {
3688
3685
  return tl(a, s);
3689
- } : $t));
3690
- return r ? u.pipe(Bs(r)) : u;
3686
+ } : _t));
3687
+ return r ? u.pipe(Ws(r)) : u;
3691
3688
  }
3692
3689
  function el(t, e, n) {
3693
- return n === void 0 && (n = $t), function(r) {
3690
+ return n === void 0 && (n = _t), function(r) {
3694
3691
  Fn(e, function() {
3695
3692
  for (var i = t.length, o = new Array(i), a = i, u = i, s = function(f) {
3696
3693
  Fn(e, function() {
3697
- var c = St(t[f], e), h = !1;
3698
- c.subscribe(O(r, function(d) {
3694
+ var c = At(t[f], e), h = !1;
3695
+ c.subscribe(I(r, function(d) {
3699
3696
  o[f] = d, h || (h = !0, u--), u || r.next(n(o.slice()));
3700
3697
  }, function() {
3701
3698
  --a || r.complete();
@@ -3707,7 +3704,7 @@ function el(t, e, n) {
3707
3704
  };
3708
3705
  }
3709
3706
  function Fn(t, e, n) {
3710
- t ? tt(n, t, e) : e();
3707
+ t ? et(n, t, e) : e();
3711
3708
  }
3712
3709
  function nl(t, e, n, r, i, o, a, u) {
3713
3710
  var s = [], l = 0, f = 0, c = !1, h = function() {
@@ -3717,52 +3714,52 @@ function nl(t, e, n, r, i, o, a, u) {
3717
3714
  }, m = function(p) {
3718
3715
  l++;
3719
3716
  var g = !1;
3720
- G(n(p, f++)).subscribe(O(e, function(_) {
3721
- e.next(_);
3717
+ G(n(p, f++)).subscribe(I(e, function(b) {
3718
+ e.next(b);
3722
3719
  }, function() {
3723
3720
  g = !0;
3724
3721
  }, void 0, function() {
3725
3722
  if (g)
3726
3723
  try {
3727
3724
  l--;
3728
- for (var _ = function() {
3729
- var S = s.shift();
3730
- a || m(S);
3725
+ for (var b = function() {
3726
+ var D = s.shift();
3727
+ a || m(D);
3731
3728
  }; s.length && l < r; )
3732
- _();
3729
+ b();
3733
3730
  h();
3734
- } catch (S) {
3735
- e.error(S);
3731
+ } catch (D) {
3732
+ e.error(D);
3736
3733
  }
3737
3734
  }));
3738
3735
  };
3739
- return t.subscribe(O(e, d, function() {
3736
+ return t.subscribe(I(e, d, function() {
3740
3737
  c = !0, h();
3741
3738
  })), function() {
3742
3739
  };
3743
3740
  }
3744
- function zr(t, e, n) {
3745
- return n === void 0 && (n = 1 / 0), F(e) ? zr(function(r, i) {
3741
+ function Hr(t, e, n) {
3742
+ return n === void 0 && (n = 1 / 0), N(e) ? Hr(function(r, i) {
3746
3743
  return R(function(o, a) {
3747
3744
  return e(r, o, i, a);
3748
3745
  })(G(t(r, i)));
3749
- }, n) : (typeof e == "number" && (n = e), I(function(r, i) {
3746
+ }, n) : (typeof e == "number" && (n = e), O(function(r, i) {
3750
3747
  return nl(r, i, t, n);
3751
3748
  }));
3752
3749
  }
3753
- function Ze(t) {
3754
- return t === void 0 && (t = 1 / 0), zr($t, t);
3750
+ function Ke(t) {
3751
+ return t === void 0 && (t = 1 / 0), Hr(_t, t);
3755
3752
  }
3756
3753
  function rl() {
3757
- return Ze(1);
3754
+ return Ke(1);
3758
3755
  }
3759
- function Nn() {
3756
+ function Tn() {
3760
3757
  for (var t = [], e = 0; e < arguments.length; e++)
3761
3758
  t[e] = arguments[e];
3762
- return rl()(St(t, At(t)));
3759
+ return rl()(At(t, $t(t)));
3763
3760
  }
3764
3761
  function il(t) {
3765
- return new P(function(e) {
3762
+ return new C(function(e) {
3766
3763
  G(t()).subscribe(e);
3767
3764
  });
3768
3765
  }
@@ -3772,9 +3769,9 @@ function ol(t, e, n) {
3772
3769
  });
3773
3770
  }
3774
3771
  function al(t, e, n) {
3775
- n === void 0 && (n = Es);
3772
+ n === void 0 && (n = Cs);
3776
3773
  var r = -1;
3777
- return e != null && (Sr(e) ? n = e : r = e), new P(function(i) {
3774
+ return e != null && (Dr(e) ? n = e : r = e), new C(function(i) {
3778
3775
  var o = Xs(t) ? +t - n.now() : t;
3779
3776
  o < 0 && (o = 0);
3780
3777
  var a = 0;
@@ -3786,31 +3783,31 @@ function al(t, e, n) {
3786
3783
  function ul() {
3787
3784
  for (var t = [], e = 0; e < arguments.length; e++)
3788
3785
  t[e] = arguments[e];
3789
- var n = At(t), r = Dr(t, 1 / 0), i = t;
3790
- return i.length ? i.length === 1 ? G(i[0]) : Ze(r)(St(i, n)) : je;
3786
+ var n = $t(t), r = Mr(t, 1 / 0), i = t;
3787
+ return i.length ? i.length === 1 ? G(i[0]) : Ke(r)(At(i, n)) : qe;
3791
3788
  }
3792
3789
  var sl = Array.isArray;
3793
3790
  function ll(t) {
3794
3791
  return t.length === 1 && sl(t[0]) ? t[0] : t;
3795
3792
  }
3796
- function kn(t, e) {
3797
- return I(function(n, r) {
3793
+ function Nn(t, e) {
3794
+ return O(function(n, r) {
3798
3795
  var i = 0;
3799
- n.subscribe(O(r, function(o) {
3796
+ n.subscribe(I(r, function(o) {
3800
3797
  return t.call(e, o, i++) && r.next(o);
3801
3798
  }));
3802
3799
  });
3803
3800
  }
3804
- function Hr(t) {
3805
- return I(function(e, n) {
3801
+ function Ur(t) {
3802
+ return O(function(e, n) {
3806
3803
  var r = null, i = !1, o;
3807
- r = e.subscribe(O(n, void 0, void 0, function(a) {
3808
- o = G(t(a, Hr(t)(e))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
3804
+ r = e.subscribe(I(n, void 0, void 0, function(a) {
3805
+ o = G(t(a, Ur(t)(e))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
3809
3806
  })), i && (r.unsubscribe(), r = null, o.subscribe(n));
3810
3807
  });
3811
3808
  }
3812
3809
  function cl(t, e) {
3813
- return e === void 0 && (e = qe), I(function(n, r) {
3810
+ return e === void 0 && (e = We), O(function(n, r) {
3814
3811
  var i = null, o = null, a = null, u = function() {
3815
3812
  if (i) {
3816
3813
  i.unsubscribe(), i = null;
@@ -3826,7 +3823,7 @@ function cl(t, e) {
3826
3823
  }
3827
3824
  u();
3828
3825
  }
3829
- n.subscribe(O(r, function(l) {
3826
+ n.subscribe(I(r, function(l) {
3830
3827
  o = l, a = e.now(), i || (i = e.schedule(s, t), r.add(i));
3831
3828
  }, function() {
3832
3829
  u(), r.complete();
@@ -3836,9 +3833,9 @@ function cl(t, e) {
3836
3833
  });
3837
3834
  }
3838
3835
  function fl(t) {
3839
- return I(function(e, n) {
3836
+ return O(function(e, n) {
3840
3837
  var r = !1;
3841
- e.subscribe(O(n, function(i) {
3838
+ e.subscribe(I(n, function(i) {
3842
3839
  r = !0, n.next(i);
3843
3840
  }, function() {
3844
3841
  r || n.next(t), n.complete();
@@ -3847,18 +3844,18 @@ function fl(t) {
3847
3844
  }
3848
3845
  function hl(t) {
3849
3846
  return t <= 0 ? function() {
3850
- return je;
3851
- } : I(function(e, n) {
3847
+ return qe;
3848
+ } : O(function(e, n) {
3852
3849
  var r = 0;
3853
- e.subscribe(O(n, function(i) {
3850
+ e.subscribe(I(n, function(i) {
3854
3851
  ++r <= t && (n.next(i), t <= r && n.complete());
3855
3852
  }));
3856
3853
  });
3857
3854
  }
3858
- function Je(t, e) {
3859
- return e === void 0 && (e = $t), t = t ?? dl, I(function(n, r) {
3855
+ function Ze(t, e) {
3856
+ return e === void 0 && (e = _t), t = t ?? dl, O(function(n, r) {
3860
3857
  var i, o = !0;
3861
- n.subscribe(O(r, function(a) {
3858
+ n.subscribe(I(r, function(a) {
3862
3859
  var u = e(a);
3863
3860
  (o || !t(i, u)) && (o = !1, i = u, r.next(a));
3864
3861
  }));
@@ -3868,9 +3865,9 @@ function dl(t, e) {
3868
3865
  return t === e;
3869
3866
  }
3870
3867
  function pl(t) {
3871
- return t === void 0 && (t = ml), I(function(e, n) {
3868
+ return t === void 0 && (t = ml), O(function(e, n) {
3872
3869
  var r = !1;
3873
- e.subscribe(O(n, function(i) {
3870
+ e.subscribe(I(n, function(i) {
3874
3871
  r = !0, n.next(i);
3875
3872
  }, function() {
3876
3873
  return r ? n.complete() : n.error(t());
@@ -3878,30 +3875,30 @@ function pl(t) {
3878
3875
  });
3879
3876
  }
3880
3877
  function ml() {
3881
- return new Gr();
3878
+ return new zr();
3882
3879
  }
3883
3880
  function gl(t, e) {
3884
3881
  var n = arguments.length >= 2;
3885
3882
  return function(r) {
3886
- return r.pipe($t, hl(1), n ? fl(e) : pl(function() {
3887
- return new Gr();
3883
+ return r.pipe(_t, hl(1), n ? fl(e) : pl(function() {
3884
+ return new zr();
3888
3885
  }));
3889
3886
  };
3890
3887
  }
3891
3888
  function vl() {
3892
3889
  for (var t = [], e = 0; e < arguments.length; e++)
3893
3890
  t[e] = arguments[e];
3894
- var n = At(t), r = Dr(t, 1 / 0);
3895
- return t = ll(t), I(function(i, o) {
3896
- Ze(r)(St(rt([i], nt(t)), n)).subscribe(o);
3891
+ var n = $t(t), r = Mr(t, 1 / 0);
3892
+ return t = ll(t), O(function(i, o) {
3893
+ Ke(r)(At(it([i], rt(t)), n)).subscribe(o);
3897
3894
  });
3898
3895
  }
3899
3896
  function yl() {
3900
3897
  for (var t = [], e = 0; e < arguments.length; e++)
3901
3898
  t[e] = arguments[e];
3902
- return vl.apply(void 0, rt([], nt(t)));
3899
+ return vl.apply(void 0, it([], rt(t)));
3903
3900
  }
3904
- function Fe(t) {
3901
+ function Pe(t) {
3905
3902
  t === void 0 && (t = {});
3906
3903
  var e = t.connector, n = e === void 0 ? function() {
3907
3904
  return new E();
@@ -3909,32 +3906,32 @@ function Fe(t) {
3909
3906
  return function(l) {
3910
3907
  var f, c, h, d = 0, m = !1, p = !1, g = function() {
3911
3908
  c == null || c.unsubscribe(), c = void 0;
3912
- }, _ = function() {
3909
+ }, b = function() {
3913
3910
  g(), f = h = void 0, m = p = !1;
3914
- }, S = function() {
3915
- var b = f;
3916
- _(), b == null || b.unsubscribe();
3911
+ }, D = function() {
3912
+ var x = f;
3913
+ b(), x == null || x.unsubscribe();
3917
3914
  };
3918
- return I(function(b, D) {
3915
+ return O(function(x, M) {
3919
3916
  d++, !p && !m && g();
3920
- var w = h = h ?? n();
3921
- D.add(function() {
3922
- d--, d === 0 && !p && !m && (c = ve(S, s));
3923
- }), w.subscribe(D), !f && d > 0 && (f = new Ot({
3924
- next: function(M) {
3925
- return w.next(M);
3917
+ var y = h = h ?? n();
3918
+ M.add(function() {
3919
+ d--, d === 0 && !p && !m && (c = ge(D, s));
3920
+ }), y.subscribe(M), !f && d > 0 && (f = new kt({
3921
+ next: function(P) {
3922
+ return y.next(P);
3926
3923
  },
3927
- error: function(M) {
3928
- p = !0, g(), c = ve(_, i, M), w.error(M);
3924
+ error: function(P) {
3925
+ p = !0, g(), c = ge(b, i, P), y.error(P);
3929
3926
  },
3930
3927
  complete: function() {
3931
- m = !0, g(), c = ve(_, a), w.complete();
3928
+ m = !0, g(), c = ge(b, a), y.complete();
3932
3929
  }
3933
- }), G(b).subscribe(f));
3930
+ }), G(x).subscribe(f));
3934
3931
  })(l);
3935
3932
  };
3936
3933
  }
3937
- function ve(t, e) {
3934
+ function ge(t, e) {
3938
3935
  for (var n = [], r = 2; r < arguments.length; r++)
3939
3936
  n[r - 2] = arguments[r];
3940
3937
  if (e === !0) {
@@ -3942,17 +3939,17 @@ function ve(t, e) {
3942
3939
  return;
3943
3940
  }
3944
3941
  if (e !== !1) {
3945
- var i = new Ot({
3942
+ var i = new kt({
3946
3943
  next: function() {
3947
3944
  i.unsubscribe(), t();
3948
3945
  }
3949
3946
  });
3950
- return G(e.apply(void 0, rt([], nt(n)))).subscribe(i);
3947
+ return G(e.apply(void 0, it([], rt(n)))).subscribe(i);
3951
3948
  }
3952
3949
  }
3953
- function A(t, e, n) {
3950
+ function S(t, e, n) {
3954
3951
  var r, i = !1;
3955
- return r = t, Fe({
3952
+ return r = t, Pe({
3956
3953
  connector: function() {
3957
3954
  return new Ss(r, e, n);
3958
3955
  },
@@ -3961,23 +3958,23 @@ function A(t, e, n) {
3961
3958
  resetOnRefCountZero: i
3962
3959
  });
3963
3960
  }
3964
- function Zt() {
3961
+ function Kt() {
3965
3962
  for (var t = [], e = 0; e < arguments.length; e++)
3966
3963
  t[e] = arguments[e];
3967
- var n = At(t);
3968
- return I(function(r, i) {
3969
- (n ? Nn(t, r, n) : Nn(t, r)).subscribe(i);
3964
+ var n = $t(t);
3965
+ return O(function(r, i) {
3966
+ (n ? Tn(t, r, n) : Tn(t, r)).subscribe(i);
3970
3967
  });
3971
3968
  }
3972
- function et(t, e) {
3973
- return I(function(n, r) {
3969
+ function nt(t, e) {
3970
+ return O(function(n, r) {
3974
3971
  var i = null, o = 0, a = !1, u = function() {
3975
3972
  return a && !i && r.complete();
3976
3973
  };
3977
- n.subscribe(O(r, function(s) {
3974
+ n.subscribe(I(r, function(s) {
3978
3975
  i == null || i.unsubscribe();
3979
3976
  var l = 0, f = o++;
3980
- G(t(s, f)).subscribe(i = O(r, function(c) {
3977
+ G(t(s, f)).subscribe(i = I(r, function(c) {
3981
3978
  return r.next(e ? e(s, c, f, l++) : c);
3982
3979
  }, function() {
3983
3980
  i = null, u();
@@ -3988,42 +3985,42 @@ function et(t, e) {
3988
3985
  });
3989
3986
  }
3990
3987
  function k(t) {
3991
- return I(function(e, n) {
3992
- G(t).subscribe(O(n, function() {
3988
+ return O(function(e, n) {
3989
+ G(t).subscribe(I(n, function() {
3993
3990
  return n.complete();
3994
- }, Pe)), !n.closed && e.subscribe(n);
3991
+ }, Ee)), !n.closed && e.subscribe(n);
3995
3992
  });
3996
3993
  }
3997
3994
  function wl(t, e) {
3998
- return I(function(n, r) {
3995
+ return O(function(n, r) {
3999
3996
  var i = e ?? {}, o = i.leading, a = o === void 0 ? !0 : o, u = i.trailing, s = u === void 0 ? !1 : u, l = !1, f = null, c = null, h = !1, d = function() {
4000
3997
  c == null || c.unsubscribe(), c = null, s && (g(), h && r.complete());
4001
3998
  }, m = function() {
4002
3999
  c = null, h && r.complete();
4003
- }, p = function(_) {
4004
- return c = G(t(_)).subscribe(O(r, d, m));
4000
+ }, p = function(b) {
4001
+ return c = G(t(b)).subscribe(I(r, d, m));
4005
4002
  }, g = function() {
4006
4003
  if (l) {
4007
4004
  l = !1;
4008
- var _ = f;
4009
- f = null, r.next(_), !h && p(_);
4005
+ var b = f;
4006
+ f = null, r.next(b), !h && p(b);
4010
4007
  }
4011
4008
  };
4012
- n.subscribe(O(r, function(_) {
4013
- l = !0, f = _, !(c && !c.closed) && (a ? g() : p(_));
4009
+ n.subscribe(I(r, function(b) {
4010
+ l = !0, f = b, !(c && !c.closed) && (a ? g() : p(b));
4014
4011
  }, function() {
4015
4012
  h = !0, !(s && l && c && !c.closed) && r.complete();
4016
4013
  }));
4017
4014
  });
4018
4015
  }
4019
4016
  function xl(t, e, n) {
4020
- e === void 0 && (e = qe);
4017
+ e === void 0 && (e = We);
4021
4018
  var r = al(t, e);
4022
4019
  return wl(function() {
4023
4020
  return r;
4024
4021
  }, n);
4025
4022
  }
4026
- const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4023
+ const Je = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4027
4024
  const r = new E(), i = e.pipe(
4028
4025
  k(r),
4029
4026
  R((s) => ({
@@ -4032,10 +4029,10 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4032
4029
  groupLabel: null,
4033
4030
  highlightDefault: s.highlightDefault
4034
4031
  })),
4035
- Je()
4032
+ Ze()
4036
4033
  ), o = n.pipe(
4037
4034
  k(r),
4038
- kn((s) => s.eventName === "mouseover" || s.eventName === "mousemove"),
4035
+ Nn((s) => s.eventName === "mouseover" || s.eventName === "mousemove"),
4039
4036
  // distinctUntilChanged((prev, current) => prev.eventName === current.eventName)
4040
4037
  R((s) => s.datum ? {
4041
4038
  id: s.datum.id,
@@ -4050,12 +4047,12 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4050
4047
  })
4051
4048
  ), a = n.pipe(
4052
4049
  k(r),
4053
- kn((s) => s.eventName === "mouseout"),
4050
+ Nn((s) => s.eventName === "mouseout"),
4054
4051
  // distinctUntilChanged((prev, current) => prev.eventName === current.eventName)
4055
4052
  // map(d => {
4056
4053
  // return { id: '', label: '' }
4057
4054
  // })
4058
- et((s) => i)
4055
+ nt((s) => i)
4059
4056
  ), u = ({ data: s, id: l, seriesLabel: f, groupLabel: c, highlightDefault: h, target: d }) => {
4060
4057
  let m = [];
4061
4058
  if (h != null && h != "") {
@@ -4080,7 +4077,7 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4080
4077
  }
4081
4078
  return m;
4082
4079
  };
4083
- return new P((s) => (ct({
4080
+ return new C((s) => (ft({
4084
4081
  target: ul(o, a, i),
4085
4082
  datumList: t,
4086
4083
  fullChartParams: e
@@ -4099,7 +4096,7 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4099
4096
  }), function() {
4100
4097
  r.next(void 0);
4101
4098
  }));
4102
- }, tn = ({ datumList$: t }) => t.pipe(
4099
+ }, Qe = ({ datumList$: t }) => t.pipe(
4103
4100
  R((e) => {
4104
4101
  const n = /* @__PURE__ */ new Map();
4105
4102
  return e.forEach((r) => {
@@ -4107,7 +4104,7 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4107
4104
  i.push(r), n.set(r.seriesLabel, i);
4108
4105
  }), n;
4109
4106
  })
4110
- ), Ur = ({ datumList$: t }) => t.pipe(
4107
+ ), Xr = ({ datumList$: t }) => t.pipe(
4111
4108
  R((e) => {
4112
4109
  const n = /* @__PURE__ */ new Map();
4113
4110
  return e.forEach((r) => {
@@ -4116,16 +4113,16 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4116
4113
  }), n;
4117
4114
  })
4118
4115
  ), bl = ({ subject: t, observer: e }) => {
4119
- const n = Qe({
4116
+ const n = Je({
4120
4117
  datumList$: e.computedData$,
4121
4118
  fullChartParams$: e.fullChartParams$,
4122
4119
  event$: t.event$
4123
4120
  }).pipe(
4124
- A(1)
4125
- ), r = tn({
4121
+ S(1)
4122
+ ), r = Qe({
4126
4123
  datumList$: e.computedData$
4127
4124
  }).pipe(
4128
- A(1)
4125
+ S(1)
4129
4126
  );
4130
4127
  return {
4131
4128
  fullParams$: e.fullParams$,
@@ -4140,18 +4137,18 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4140
4137
  maxValue: t = 1,
4141
4138
  minValue: e = 0,
4142
4139
  axisWidth: n,
4143
- scaleDomain: r = Y.scaleDomain,
4144
- scaleRange: i = Y.scaleRange
4140
+ scaleDomain: r = K.scaleDomain,
4141
+ scaleRange: i = K.scaleRange
4145
4142
  }) => {
4146
- const o = r[0] ?? Y.scaleDomain[0], a = r[1] ?? Y.scaleDomain[1], u = i[0] ?? Y.scaleRange[0], s = i[1] ?? Y.scaleRange[1], l = o === "auto" ? e : o, f = a === "auto" ? t : a;
4143
+ const o = r[0] ?? K.scaleDomain[0], a = r[1] ?? K.scaleDomain[1], u = i[0] ?? K.scaleRange[0], s = i[1] ?? K.scaleRange[1], l = o === "auto" ? e : o, f = a === "auto" ? t : a;
4147
4144
  let c = n * u, h = n * s;
4148
- return gr().domain([l, f]).range([c, h]);
4149
- }, Hl = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4145
+ return vr().domain([l, f]).range([c, h]);
4146
+ }, Ul = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4150
4147
  let r = [0, e];
4151
4148
  return Ku().domain(t).range(r).padding(n);
4152
- }, Ul = ({ axisLabels: t, axisWidth: e, padding: n = 0.5, reverse: r = !1 }) => {
4149
+ }, Xl = ({ axisLabels: t, axisWidth: e, padding: n = 0.5, reverse: r = !1 }) => {
4153
4150
  let o = t.map((a, u) => u);
4154
- return r && o.reverse(), vr().domain([-0, e + 0]).range(o);
4151
+ return r && o.reverse(), yr().domain([-0, e + 0]).range(o);
4155
4152
  }, _l = {
4156
4153
  series: !1,
4157
4154
  grid: !0,
@@ -4161,7 +4158,7 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4161
4158
  relationship: !1
4162
4159
  };
4163
4160
  function $l(t) {
4164
- return new P((e) => {
4161
+ return new C((e) => {
4165
4162
  const n = new ResizeObserver((r) => {
4166
4163
  const i = r[0];
4167
4164
  i && i.contentRect && e.next(i.contentRect);
@@ -4174,8 +4171,8 @@ function $l(t) {
4174
4171
  const Al = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }) => {
4175
4172
  const r = new E(), i = t.type;
4176
4173
  return function(a, u) {
4177
- Gt(a).selectAll("svg").remove();
4178
- const s = Gt(a).append("svg");
4174
+ Vt(a).selectAll("svg").remove();
4175
+ const s = Vt(a).append("svg");
4179
4176
  s.attr("xmlns:xlink", "http://www.w3.org/1999/xlink").attr("xmls", "http://www.w3.org/2000/svg").attr("version", "1.1").style("position", "absolute").classed("orbcharts__root", !0);
4180
4177
  const l = s.append("g");
4181
4178
  l.classed("orbcharts__layout", !0);
@@ -4187,141 +4184,141 @@ const Al = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4187
4184
  plugins$: new E(),
4188
4185
  chartParams$: new E(),
4189
4186
  event$: new E()
4190
- }, h = ((v) => {
4191
- const $ = v || Kr, x = $.preset ? $.preset : {};
4187
+ }, h = ((w) => {
4188
+ const _ = w || Zr, $ = _.preset ? _.preset : {};
4192
4189
  return {
4193
- chartParams: x.chartParams ? ot(x.chartParams, en) : en,
4194
- dataFormatter: x.dataFormatter ? ot(x.dataFormatter, t) : t,
4195
- allPluginParams: x.allPluginParams ? x.allPluginParams : {},
4196
- description: x.description ?? ""
4190
+ chartParams: $.chartParams ? at($.chartParams, tn) : tn,
4191
+ dataFormatter: $.dataFormatter ? at($.dataFormatter, t) : t,
4192
+ allPluginParams: $.allPluginParams ? $.allPluginParams : {},
4193
+ description: $.description ?? ""
4197
4194
  };
4198
- })(u), d = c.data$.pipe(A(1)), m = c.dataFormatter$.pipe(
4195
+ })(u), d = c.data$.pipe(S(1)), m = c.dataFormatter$.pipe(
4199
4196
  k(r),
4200
- Zt({}),
4201
- R((v) => ot(v, h.dataFormatter)),
4202
- A(1)
4197
+ Kt({}),
4198
+ R((w) => at(w, h.dataFormatter)),
4199
+ S(1)
4203
4200
  ), p = c.chartParams$.pipe(
4204
4201
  k(r),
4205
- Zt({}),
4206
- R((v) => ot(v, h.chartParams)),
4207
- A(1)
4202
+ Kt({}),
4203
+ R((w) => at(w, h.chartParams)),
4204
+ S(1)
4208
4205
  ), g = p.pipe(
4209
4206
  k(r),
4210
- Zt({}),
4211
- R((v) => ot(v.padding ?? {}, On))
4207
+ Kt({}),
4208
+ R((w) => at(w.padding ?? {}, kn))
4212
4209
  );
4213
4210
  g.pipe(
4214
4211
  k(r),
4215
4212
  gl()
4216
- ).subscribe((v) => {
4217
- l.attr("transform", `translate(${v.left}, ${v.top})`);
4218
- }), g.subscribe((v) => {
4219
- l.transition().attr("transform", `translate(${v.left}, ${v.top})`);
4213
+ ).subscribe((w) => {
4214
+ l.attr("transform", `translate(${w.left}, ${w.top})`);
4215
+ }), g.subscribe((w) => {
4216
+ l.transition().attr("transform", `translate(${w.left}, ${w.top})`);
4220
4217
  });
4221
- const _ = $l(a).pipe(
4218
+ const b = $l(a).pipe(
4222
4219
  k(r),
4223
- Fe()
4224
- ), S = Tt().pipe(
4220
+ Pe()
4221
+ ), D = Pt().pipe(
4225
4222
  yl(
4226
- _.pipe(
4223
+ b.pipe(
4227
4224
  cl(250)
4228
4225
  ),
4229
- _.pipe(
4226
+ b.pipe(
4230
4227
  xl(250)
4231
4228
  )
4232
4229
  ),
4233
- Je((v, $) => JSON.stringify(v) === JSON.stringify($)),
4234
- Fe()
4235
- ), b = S.subscribe(), D = ct({
4236
- rootSize: S,
4230
+ Ze((w, _) => JSON.stringify(w) === JSON.stringify(_)),
4231
+ Pe()
4232
+ ), x = D.subscribe(), M = ft({
4233
+ rootSize: D,
4237
4234
  mergedPadding: g
4238
4235
  }).pipe(
4239
4236
  k(r),
4240
- et(async (v) => {
4241
- const $ = v.rootSize.width > 0 ? v.rootSize.width : Zr, x = v.rootSize.height > 0 ? v.rootSize.height : Jr;
4237
+ nt(async (w) => {
4238
+ const _ = w.rootSize.width > 0 ? w.rootSize.width : Jr, $ = w.rootSize.height > 0 ? w.rootSize.height : Qr;
4242
4239
  return {
4243
- width: $ - v.mergedPadding.left - v.mergedPadding.right,
4244
- height: x - v.mergedPadding.top - v.mergedPadding.bottom,
4245
- top: v.mergedPadding.top,
4246
- right: v.mergedPadding.right,
4247
- bottom: v.mergedPadding.bottom,
4248
- left: v.mergedPadding.left,
4249
- rootWidth: $,
4250
- rootHeight: x
4240
+ width: _ - w.mergedPadding.left - w.mergedPadding.right,
4241
+ height: $ - w.mergedPadding.top - w.mergedPadding.bottom,
4242
+ top: w.mergedPadding.top,
4243
+ right: w.mergedPadding.right,
4244
+ bottom: w.mergedPadding.bottom,
4245
+ left: w.mergedPadding.left,
4246
+ rootWidth: _,
4247
+ rootHeight: $
4251
4248
  };
4252
4249
  }),
4253
- A(1)
4250
+ S(1)
4254
4251
  );
4255
- D.subscribe((v) => {
4256
- s.attr("width", v.rootWidth).attr("height", v.rootHeight);
4252
+ M.subscribe((w) => {
4253
+ s.attr("width", w.rootWidth).attr("height", w.rootHeight);
4257
4254
  });
4258
- const w = ct({
4255
+ const y = ft({
4259
4256
  data: d,
4260
4257
  dataFormatter: m,
4261
4258
  chartParams: p,
4262
- layout: ol(() => _l[i] === !0, D, Tt(void 0))
4259
+ layout: ol(() => _l[i] === !0, M, Pt(void 0))
4263
4260
  }).pipe(
4264
4261
  k(r),
4265
- et(async (v) => v),
4266
- et((v) => Tt(v).pipe(
4267
- R(($) => {
4262
+ nt(async (w) => w),
4263
+ nt((w) => Pt(w).pipe(
4264
+ R((_) => {
4268
4265
  try {
4269
- return e({ data: $.data, dataFormatter: $.dataFormatter, chartParams: $.chartParams, layout: $.layout });
4270
- } catch (x) {
4271
- throw console.error(x), new Error(x);
4266
+ return e({ data: _.data, dataFormatter: _.dataFormatter, chartParams: _.chartParams, layout: _.layout });
4267
+ } catch ($) {
4268
+ throw console.error($), new Error($);
4272
4269
  }
4273
4270
  }),
4274
- Hr(() => je)
4271
+ Ur(() => qe)
4275
4272
  )),
4276
- A(1)
4277
- ), M = {};
4278
- return c.plugins$.subscribe((v) => {
4279
- if (!v)
4273
+ S(1)
4274
+ ), P = {};
4275
+ return c.plugins$.subscribe((w) => {
4276
+ if (!w)
4280
4277
  return;
4281
- const $ = f.selectAll("g.orbcharts__plugin").data(v, (y) => y.name), x = $.enter().append("g").attr("class", (y) => `orbcharts__plugin orbcharts__${y.name}`);
4282
- $.exit().remove().each((y, N, C) => {
4283
- M[y.name] && M[y.name].destroy();
4284
- }), x.each((y, N, C) => {
4278
+ const _ = f.selectAll("g.orbcharts__plugin").data(w, (v) => v.name), $ = _.enter().append("g").attr("class", (v) => `orbcharts__plugin orbcharts__${v.name}`);
4279
+ _.exit().remove().each((v, F, T) => {
4280
+ P[v.name] && P[v.name].destroy();
4281
+ }), $.each((v, F, T) => {
4285
4282
  const z = {
4286
- fullParams$: new P(),
4283
+ fullParams$: new C(),
4287
4284
  fullChartParams$: p,
4288
4285
  fullDataFormatter$: m,
4289
- computedData$: w,
4290
- layout$: D
4291
- }, ht = n({
4286
+ computedData$: y,
4287
+ layout$: M
4288
+ }, tt = n({
4292
4289
  observer: z,
4293
4290
  subject: c
4294
- }), q = {
4295
- selection: Gt(C[N]),
4291
+ }), W = {
4292
+ selection: Vt(T[F]),
4296
4293
  rootSelection: s,
4297
- name: y.name,
4294
+ name: v.name,
4298
4295
  chartType: i,
4299
4296
  subject: c,
4300
- observer: ht
4297
+ observer: tt
4301
4298
  };
4302
- y.setPresetParams(h.allPluginParams[y.name] ?? {}), y.setContext(q), M[q.name] = y, y.init();
4299
+ v.setPresetParams(h.allPluginParams[v.name] ?? {}), v.setContext(W), P[W.name] = v, v.init();
4303
4300
  });
4304
4301
  }), {
4305
4302
  ...c,
4306
4303
  selection: s,
4307
4304
  destroy() {
4308
- Gt(a).selectAll("svg").remove(), r.next(void 0), b.unsubscribe();
4305
+ Vt(a).selectAll("svg").remove(), r.next(void 0), x.unsubscribe();
4309
4306
  }
4310
4307
  };
4311
4308
  };
4312
4309
  };
4313
- class Dt {
4310
+ class St {
4314
4311
  constructor({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r }, i, o) {
4315
4312
  this.data$ = new E(), this.dataFormatter$ = new E(), this.plugins$ = new E(), this.chartParams$ = new E(), this.event$ = new E();
4316
4313
  const u = Al({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r })(i, o);
4317
4314
  this.selection = u.selection, this.destroy = u.destroy, this.data$ = u.data$, this.dataFormatter$ = u.dataFormatter$, this.plugins$ = u.plugins$, this.chartParams$ = u.chartParams$, this.event$ = u.event$;
4318
4315
  }
4319
4316
  }
4320
- class Xl extends Dt {
4317
+ class Yl extends St {
4321
4318
  constructor(e, n) {
4322
4319
  super(
4323
4320
  {
4324
- defaultDataFormatter: ti,
4321
+ defaultDataFormatter: ei,
4325
4322
  computedDataFn: fs,
4326
4323
  contextObserverFn: bl
4327
4324
  },
@@ -4330,95 +4327,96 @@ class Xl extends Dt {
4330
4327
  );
4331
4328
  }
4332
4329
  }
4333
- const Xr = (t) => {
4334
- const { data: e = [], dataFormatter: n, chartParams: r, layout: i } = t;
4335
- if (!e.length)
4330
+ const Sl = (t) => Yr(t, "grid", 0), Yr = (t, e, n = 0) => {
4331
+ const { data: r = [], dataFormatter: i, chartParams: o, layout: a } = t;
4332
+ if (!r.length)
4336
4333
  return [];
4337
- let o;
4334
+ let u;
4338
4335
  try {
4339
- const a = e.reduce((v, $) => $.length > v ? $.length : v, 0), s = e.map((v, $) => {
4340
- if (v.length === a)
4341
- return v;
4342
- const x = Object.assign([], v);
4343
- for (let T = x.length; T < a; T++)
4344
- x[T] = null;
4345
- return x;
4346
- }).map((v, $) => v.map((x, T) => {
4347
- const y = n.colorsPredicate(x, $, T, t), N = n.visibleFilter(x, $, T, t);
4348
- return x == null ? {
4336
+ const s = r.reduce((_, $) => $.length > _ ? $.length : _, 0), f = r.map((_, $) => {
4337
+ if (_.length === s)
4338
+ return _;
4339
+ const A = Object.assign([], _);
4340
+ for (let v = A.length; v < s; v++)
4341
+ A[v] = null;
4342
+ return A;
4343
+ }).map((_, $) => _.map((A, v) => {
4344
+ const F = i.visibleFilter(A, $, v, t);
4345
+ return A == null ? {
4349
4346
  id: "",
4350
4347
  label: "",
4351
- tooltipContent: "",
4348
+ // tooltipContent: '',
4352
4349
  data: {},
4353
4350
  value: null,
4354
- _color: y,
4355
- _visible: N
4356
- } : typeof x == "number" ? {
4351
+ // _color,
4352
+ _visible: F
4353
+ } : typeof A == "number" ? {
4357
4354
  id: "",
4358
4355
  label: "",
4359
- tooltipContent: "",
4356
+ // tooltipContent: '',
4360
4357
  data: {},
4361
- value: x,
4362
- _color: y,
4363
- _visible: N
4358
+ value: A,
4359
+ // _color,
4360
+ _visible: F
4364
4361
  } : {
4365
- id: x.id ?? "",
4366
- label: x.label ?? "",
4367
- tooltipContent: x.tooltipContent ?? "",
4368
- data: x.data ?? {},
4369
- value: x.value,
4370
- _color: y,
4371
- _visible: N
4362
+ id: A.id ?? "",
4363
+ label: A.label ?? "",
4364
+ // tooltipContent: _d.tooltipContent ?? '',
4365
+ data: A.data ?? {},
4366
+ value: A.value,
4367
+ // _color,
4368
+ _visible: F
4372
4369
  };
4373
- })), l = ls(n.grid.seriesType, s), f = n.groupAxis.position === "top" || n.groupAxis.position === "bottom" ? i.width : i.height, c = l[0] ? l[0].length - 1 : 0, h = bt({
4374
- maxValue: c,
4370
+ })), c = ls(i.grid.seriesType, f), h = i.groupAxis.position === "top" || i.groupAxis.position === "bottom" ? a.width : a.height, d = c[0] ? c[0].length - 1 : 0, m = bt({
4371
+ maxValue: d,
4375
4372
  minValue: 0,
4376
- axisWidth: f,
4377
- scaleDomain: [0, c],
4373
+ axisWidth: h,
4374
+ scaleDomain: [0, d],
4378
4375
  // 不使用dataFormatter設定
4379
4376
  scaleRange: [0, 1]
4380
4377
  // 不使用dataFormatter設定
4381
- }), d = [
4382
- n.groupAxis.scaleDomain[0] === "auto" ? 0 : n.groupAxis.scaleDomain[0],
4383
- n.groupAxis.scaleDomain[1] === "auto" ? c : n.groupAxis.scaleDomain[1]
4384
- ], m = l.flat().filter((v) => v._visible != !1), [p, g] = Ce(m), _ = n.valueAxis.position === "left" || n.valueAxis.position === "right" ? i.height : i.width, S = us(l, n), b = ss(l, n), D = bt({
4385
- maxValue: g,
4386
- minValue: p,
4387
- axisWidth: _,
4388
- scaleDomain: [p, g],
4378
+ }), p = c.flat().filter((_) => _._visible != !1), [g, b] = De(p), D = i.valueAxis.position === "left" || i.valueAxis.position === "right" ? a.height : a.width, x = us({ transposedDataGrid: c, dataFormatter: i, chartType: e, gridIndex: n }), M = ss({ transposedDataGrid: c, dataFormatter: i, chartType: e, gridIndex: n }), y = bt({
4379
+ maxValue: b,
4380
+ minValue: g,
4381
+ axisWidth: D,
4382
+ scaleDomain: [g, b],
4389
4383
  // 不使用dataFormatter設定
4390
4384
  scaleRange: [0, 1]
4391
4385
  // 不使用dataFormatter設定
4392
- }), w = D(0);
4393
- let M = 0;
4394
- o = l.map((v, $) => v.map((x, T) => {
4395
- const y = Ue(n.type, $, T), N = b[T], C = D(x.value ?? 0), z = {
4396
- id: x.id ? x.id : y,
4397
- index: M,
4398
- label: x.label ? x.label : y,
4399
- tooltipContent: x.tooltipContent ? x.tooltipContent : n.tooltipContentFormat(x, $, T, t),
4400
- data: x.data,
4401
- value: x.value,
4386
+ }), P = y(0);
4387
+ let w = 0;
4388
+ u = c.map((_, $) => _.map((A, v) => {
4389
+ const F = ze(e, n, $, v), T = M[v], z = y(A.value ?? 0), tt = {
4390
+ id: A.id ? A.id : F,
4391
+ index: w,
4392
+ label: A.label ? A.label : F,
4393
+ description: A.description ?? "",
4394
+ // tooltipContent: groupDatum.tooltipContent ? groupDatum.tooltipContent : dataFormatter.tooltipContentFormat(groupDatum, seriesIndex, groupIndex, context),
4395
+ data: A.data,
4396
+ value: A.value,
4402
4397
  // valueLabel: formatValueToLabel(groupDatum.value, dataFormatter.valueFormat),
4398
+ gridIndex: n,
4399
+ accSeriesIndex: $,
4400
+ // 預設為seriesIndex
4403
4401
  seriesIndex: $,
4404
- seriesLabel: S[$],
4405
- groupIndex: T,
4406
- groupLabel: N,
4407
- // color: seriesColors[seriesIndex],
4408
- color: x._color,
4409
- axisX: h(T),
4410
- axisY: C,
4411
- axisYFromZero: C - w,
4402
+ seriesLabel: x[$],
4403
+ groupIndex: v,
4404
+ groupLabel: T,
4405
+ // color: groupDatum._color,
4406
+ color: He($, o),
4407
+ axisX: m(v),
4408
+ axisY: z,
4409
+ axisYFromZero: z - P,
4412
4410
  // visible: groupDatum._visible == true && scaleDomainFilter(groupIndex) == true ? true : false // 兩者有一個false即為false
4413
- visible: x._visible
4411
+ visible: A._visible
4414
4412
  };
4415
- return M++, z;
4413
+ return w++, tt;
4416
4414
  }));
4417
- } catch (a) {
4418
- throw Error(a);
4415
+ } catch (s) {
4416
+ throw Error(s);
4419
4417
  }
4420
- return o;
4421
- }, Yr = ({ fullDataFormatter$: t, layout$: e }) => {
4418
+ return u;
4419
+ }, Br = ({ fullDataFormatter$: t, layout$: e }) => {
4422
4420
  const n = new E();
4423
4421
  function r({ xAxis: i, yAxis: o, width: a, height: u }) {
4424
4422
  if (!i || !o)
@@ -4440,12 +4438,12 @@ const Xr = (t) => {
4440
4438
  value: `translate(${s}px, ${l}px) rotate(${f}deg) rotateX(${c}deg) rotateY(${h}deg)`
4441
4439
  };
4442
4440
  }
4443
- return new P((i) => (ct({
4441
+ return new C((i) => (ft({
4444
4442
  fullDataFormatter: t,
4445
4443
  layout: e
4446
4444
  }).pipe(
4447
4445
  k(n),
4448
- et(async (o) => o)
4446
+ nt(async (o) => o)
4449
4447
  ).subscribe((o) => {
4450
4448
  const a = r({
4451
4449
  xAxis: o.fullDataFormatter.groupAxis,
@@ -4461,23 +4459,23 @@ const Xr = (t) => {
4461
4459
  const r = new E();
4462
4460
  function i({ data: o, groupAxis: a, valueAxis: u, width: s, height: l }) {
4463
4461
  let f = 0, c = 0, h = 0, d = 0;
4464
- const m = a.position === "top" || a.position === "bottom" ? s : l, p = 0, g = o[0] ? o[0].length - 1 : 0, _ = a.scaleDomain[0] === "auto" ? p - a.scalePadding : a.scaleDomain[0] - a.scalePadding, S = a.scaleDomain[1] === "auto" ? g + a.scalePadding : a.scaleDomain[1] + a.scalePadding, b = bt({
4462
+ const m = a.position === "top" || a.position === "bottom" ? s : l, p = 0, g = o[0] ? o[0].length - 1 : 0, b = a.scaleDomain[0] === "auto" ? p - a.scalePadding : a.scaleDomain[0] - a.scalePadding, D = a.scaleDomain[1] === "auto" ? g + a.scalePadding : a.scaleDomain[1] + a.scalePadding, x = bt({
4465
4463
  maxValue: g,
4466
4464
  minValue: p,
4467
4465
  axisWidth: m,
4468
4466
  // scaleDomain: groupAxis.scaleDomain,
4469
- scaleDomain: [_, S],
4467
+ scaleDomain: [b, D],
4470
4468
  scaleRange: [0, 1]
4471
- }), D = b(p), w = b(g);
4472
- f = D, h = (w - D) / m;
4473
- const v = o.map((ht, dt) => ht.filter((q, it) => it >= _ && it <= S && q.visible == !0)), $ = Mn(v), x = u.position === "left" || u.position === "right" ? l : s, T = bt({
4474
- maxValue: $[1],
4475
- minValue: $[0],
4476
- axisWidth: x,
4469
+ }), M = x(p), y = x(g);
4470
+ f = M, h = (y - M) / m;
4471
+ const w = o.map((tt, dt) => tt.filter((W, ot) => ot >= b && ot <= D && W.visible == !0)), _ = Dn(w), $ = u.position === "left" || u.position === "right" ? l : s, A = bt({
4472
+ maxValue: _[1],
4473
+ minValue: _[0],
4474
+ axisWidth: $,
4477
4475
  scaleDomain: u.scaleDomain,
4478
4476
  scaleRange: u.scaleRange
4479
- }), y = Mn(o), N = T(y[0]), C = T(y[1]);
4480
- return c = N, d = (C - N) / x, {
4477
+ }), v = Dn(o), F = A(v[0]), T = A(v[1]);
4478
+ return c = F, d = (T - F) / $, {
4481
4479
  translate: [f, c],
4482
4480
  scale: [h, d],
4483
4481
  rotate: 0,
@@ -4486,13 +4484,13 @@ const Xr = (t) => {
4486
4484
  value: `translate(${f}px, ${c}px) scale(${h}, ${d})`
4487
4485
  };
4488
4486
  }
4489
- return new P((o) => (ct({
4487
+ return new C((o) => (ft({
4490
4488
  computedData: t,
4491
4489
  fullDataFormatter: e,
4492
4490
  layout: n
4493
4491
  }).pipe(
4494
4492
  k(r),
4495
- et(async (a) => a)
4493
+ nt(async (a) => a)
4496
4494
  ).subscribe((a) => {
4497
4495
  const u = i({
4498
4496
  data: a.computedData,
@@ -4505,7 +4503,7 @@ const Xr = (t) => {
4505
4503
  }), function() {
4506
4504
  r.next(void 0);
4507
4505
  }));
4508
- }, Br = ({ gridAxesTransform$: t }) => t.pipe(
4506
+ }, qr = ({ gridAxesTransform$: t }) => t.pipe(
4509
4507
  R((e) => {
4510
4508
  const n = [0, 0], r = [e.scale[0] * -1, e.scale[1] * -1], i = e.rotate * -1, o = e.rotateX * -1, a = e.rotateY * -1;
4511
4509
  return {
@@ -4517,7 +4515,7 @@ const Xr = (t) => {
4517
4515
  value: `translate(${n[0]}px, ${n[1]}px) rotate(${i}deg) rotateX(${o}deg) rotateY(${a}deg)`
4518
4516
  };
4519
4517
  })
4520
- ), qr = ({ fullDataFormatter$: t, layout$: e }) => {
4518
+ ), jr = ({ fullDataFormatter$: t, layout$: e }) => {
4521
4519
  const n = new E();
4522
4520
  function r({ xAxisPosition: i, yAxisPosition: o, width: a, height: u }) {
4523
4521
  if ((i === "bottom" || i === "top") && (o === "left" || o === "right"))
@@ -4528,13 +4526,13 @@ const Xr = (t) => {
4528
4526
  height: a
4529
4527
  };
4530
4528
  }
4531
- return new P((i) => {
4532
- ct({
4529
+ return new C((i) => {
4530
+ ft({
4533
4531
  fullDataFormatter: t,
4534
4532
  layout: e
4535
4533
  }).pipe(
4536
4534
  k(n),
4537
- et(async (o) => o)
4535
+ nt(async (o) => o)
4538
4536
  ).subscribe((o) => {
4539
4537
  const a = r({
4540
4538
  xAxisPosition: o.fullDataFormatter.groupAxis.position,
@@ -4547,51 +4545,51 @@ const Xr = (t) => {
4547
4545
  };
4548
4546
  });
4549
4547
  });
4550
- }, jr = ({ computedData$: t }) => t.pipe(
4548
+ }, Kr = ({ computedData$: t }) => t.pipe(
4551
4549
  R((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4552
- ), Sl = ({ subject: t, observer: e }) => {
4553
- const n = Yr({
4550
+ ), Dl = ({ subject: t, observer: e }) => {
4551
+ const n = Br({
4554
4552
  fullDataFormatter$: e.fullDataFormatter$,
4555
4553
  layout$: e.layout$
4556
4554
  }).pipe(
4557
- A(1)
4555
+ S(1)
4558
4556
  ), r = Wr({
4559
4557
  computedData$: e.computedData$,
4560
4558
  fullDataFormatter$: e.fullDataFormatter$,
4561
4559
  layout$: e.layout$
4562
4560
  }).pipe(
4563
- A(1)
4564
- ), i = Br({
4561
+ S(1)
4562
+ ), i = qr({
4565
4563
  gridAxesTransform$: n
4566
4564
  }).pipe(
4567
- A(1)
4568
- ), o = qr({
4565
+ S(1)
4566
+ ), o = jr({
4569
4567
  fullDataFormatter$: e.fullDataFormatter$,
4570
4568
  layout$: e.layout$
4571
4569
  }).pipe(
4572
- A(1)
4570
+ S(1)
4573
4571
  ), a = e.computedData$.pipe(
4574
4572
  R((c) => c.flat())
4575
4573
  ).pipe(
4576
- A(1)
4577
- ), u = Qe({
4574
+ S(1)
4575
+ ), u = Je({
4578
4576
  datumList$: a,
4579
4577
  fullChartParams$: e.fullChartParams$,
4580
4578
  event$: t.event$
4581
4579
  }).pipe(
4582
- A(1)
4583
- ), s = tn({
4580
+ S(1)
4581
+ ), s = Qe({
4584
4582
  datumList$: a
4585
4583
  }).pipe(
4586
- A(1)
4587
- ), l = Ur({
4584
+ S(1)
4585
+ ), l = Xr({
4588
4586
  datumList$: a
4589
4587
  }).pipe(
4590
- A(1)
4591
- ), f = jr({
4588
+ S(1)
4589
+ ), f = Kr({
4592
4590
  computedData$: e.computedData$
4593
4591
  }).pipe(
4594
- A(1)
4592
+ S(1)
4595
4593
  );
4596
4594
  return {
4597
4595
  fullParams$: e.fullParams$,
@@ -4609,127 +4607,123 @@ const Xr = (t) => {
4609
4607
  visibleComputedData$: f
4610
4608
  };
4611
4609
  };
4612
- class Yl extends Dt {
4610
+ class Bl extends St {
4613
4611
  constructor(e, n) {
4614
4612
  super(
4615
4613
  {
4616
- defaultDataFormatter: ye,
4617
- computedDataFn: Xr,
4618
- contextObserverFn: Sl
4614
+ defaultDataFormatter: In,
4615
+ computedDataFn: Sl,
4616
+ contextObserverFn: Dl
4619
4617
  },
4620
4618
  e,
4621
4619
  n
4622
4620
  );
4623
4621
  }
4624
4622
  }
4625
- const Dl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4623
+ const Ml = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4626
4624
  if (!t.length)
4627
4625
  return [];
4628
4626
  let i = [];
4629
4627
  try {
4630
- i = t.map((o, a) => {
4631
- const u = {
4632
- ...e.multiGrid[a],
4633
- type: `multiGrid_${a}`,
4634
- // 非規範的名稱,用作 datum id 前綴
4635
- // colors: dataFormatter.colors,
4636
- colorsPredicate: e.multiGrid[a].colorsPredicate,
4637
- visibleFilter: e.visibleFilter,
4638
- // 用any避開function參數型別不同
4639
- // padding: dataFormatter.padding,
4640
- tooltipContentFormat: e.tooltipContentFormat
4641
- // 用any避開function參數型別不同
4642
- };
4643
- return Xr({
4644
- data: o,
4645
- dataFormatter: u,
4646
- chartParams: n,
4647
- layout: r
4648
- });
4628
+ const o = Object.assign({}, On.multiGrid[0]);
4629
+ i = t.map((u, s) => {
4630
+ const l = e.multiGrid[s] || o;
4631
+ return Yr(
4632
+ {
4633
+ data: u,
4634
+ dataFormatter: l,
4635
+ chartParams: n,
4636
+ layout: r
4637
+ },
4638
+ "multiGrid",
4639
+ s
4640
+ );
4649
4641
  });
4642
+ let a = -1;
4643
+ i = i.map((u, s) => u.map((l, f) => (a++, l.map((c) => (c.accSeriesIndex = a, c.color = He(a, n), c)))));
4650
4644
  } catch (o) {
4651
4645
  throw Error(o);
4652
4646
  }
4653
4647
  return i;
4654
- }, Ml = ({ fullDataFormatter$: t, computedData$: e, layout$: n, fullChartParams$: r, event$: i }) => {
4648
+ }, El = ({ fullDataFormatter$: t, computedData$: e, layout$: n, fullChartParams$: r, event$: i }) => {
4655
4649
  const o = new E();
4656
- return ct({
4650
+ return ft({
4657
4651
  fullDataFormatter: t,
4658
4652
  computedData: e
4659
4653
  }).pipe(
4660
- et(async (a) => a),
4661
- Je((a, u) => a.fullDataFormatter.multiGrid.length === u.fullDataFormatter.multiGrid.length && a.computedData.length === u.computedData.length),
4662
- R((a) => (o.next(void 0), a.fullDataFormatter.multiGrid.map((u, s) => {
4663
- const l = Tt(u).pipe(
4654
+ nt(async (a) => a),
4655
+ Ze((a, u) => a.computedData.length === u.computedData.length),
4656
+ R((a) => (o.next(void 0), a.computedData.map((u, s) => {
4657
+ const l = a.fullDataFormatter.multiGrid[s] ?? a.fullDataFormatter.multiGrid[0], f = Pt(l).pipe(
4664
4658
  k(o),
4665
- A(1)
4666
- ), f = Tt(a.computedData[s] || []).pipe(
4659
+ S(1)
4660
+ ), c = Pt(u).pipe(
4667
4661
  k(o),
4668
- A(1)
4669
- ), c = Yr({
4670
- fullDataFormatter$: l,
4662
+ S(1)
4663
+ ), h = Br({
4664
+ fullDataFormatter$: f,
4671
4665
  layout$: n
4672
4666
  }).pipe(
4673
- A(1)
4674
- ), h = Wr({
4675
- computedData$: f,
4676
- fullDataFormatter$: l,
4667
+ S(1)
4668
+ ), d = Wr({
4669
+ computedData$: c,
4670
+ fullDataFormatter$: f,
4677
4671
  layout$: n
4678
4672
  }).pipe(
4679
- A(1)
4680
- ), d = Br({
4681
- gridAxesTransform$: c
4682
- }).pipe(
4683
- A(1)
4673
+ S(1)
4684
4674
  ), m = qr({
4685
- fullDataFormatter$: l,
4675
+ gridAxesTransform$: h
4676
+ }).pipe(
4677
+ S(1)
4678
+ ), p = jr({
4679
+ fullDataFormatter$: f,
4686
4680
  layout$: n
4687
4681
  }).pipe(
4688
- A(1)
4689
- ), p = f.pipe(
4690
- R((D) => D.flat())
4682
+ S(1)
4683
+ ), g = c.pipe(
4684
+ R((y) => y.flat())
4691
4685
  ).pipe(
4692
- A(1)
4693
- ), g = Qe({
4694
- datumList$: p,
4686
+ S(1)
4687
+ ), b = Je({
4688
+ datumList$: g,
4695
4689
  fullChartParams$: r,
4696
4690
  event$: i
4697
4691
  }).pipe(
4698
- A(1)
4699
- ), _ = tn({
4700
- datumList$: p
4692
+ S(1)
4693
+ ), D = Qe({
4694
+ datumList$: g
4701
4695
  }).pipe(
4702
- A(1)
4703
- ), S = Ur({
4704
- datumList$: p
4696
+ S(1)
4697
+ ), x = Xr({
4698
+ datumList$: g
4705
4699
  }).pipe(
4706
- A(1)
4707
- ), b = jr({
4708
- computedData$: f
4700
+ S(1)
4701
+ ), M = Kr({
4702
+ computedData$: c
4709
4703
  }).pipe(
4710
- A(1)
4704
+ S(1)
4711
4705
  );
4712
4706
  return {
4713
- gridAxesTransform$: c,
4714
- gridGraphicTransform$: h,
4715
- gridAxesOppositeTransform$: d,
4716
- gridAxesSize$: m,
4717
- gridHighlight$: g,
4718
- SeriesDataMap$: _,
4719
- GroupDataMap$: S,
4720
- visibleComputedData$: b
4707
+ gridAxesTransform$: h,
4708
+ gridGraphicTransform$: d,
4709
+ gridAxesOppositeTransform$: m,
4710
+ gridAxesSize$: p,
4711
+ gridHighlight$: b,
4712
+ SeriesDataMap$: D,
4713
+ GroupDataMap$: x,
4714
+ visibleComputedData$: M
4721
4715
  };
4722
4716
  })))
4723
4717
  );
4724
4718
  }, Cl = ({ subject: t, observer: e }) => {
4725
- const n = Ml({
4719
+ const n = El({
4726
4720
  fullDataFormatter$: e.fullDataFormatter$,
4727
4721
  computedData$: e.computedData$,
4728
4722
  layout$: e.layout$,
4729
4723
  fullChartParams$: e.fullChartParams$,
4730
4724
  event$: t.event$
4731
4725
  }).pipe(
4732
- A(1)
4726
+ S(1)
4733
4727
  );
4734
4728
  return {
4735
4729
  fullParams$: e.fullParams$,
@@ -4740,12 +4734,12 @@ const Dl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4740
4734
  multiGrid$: n
4741
4735
  };
4742
4736
  };
4743
- class Wl extends Dt {
4737
+ class Wl extends St {
4744
4738
  constructor(e, n) {
4745
4739
  super(
4746
4740
  {
4747
- defaultDataFormatter: ei,
4748
- computedDataFn: Dl,
4741
+ defaultDataFormatter: On,
4742
+ computedDataFn: Ml,
4749
4743
  contextObserverFn: Cl
4750
4744
  },
4751
4745
  e,
@@ -4753,25 +4747,27 @@ class Wl extends Dt {
4753
4747
  );
4754
4748
  }
4755
4749
  }
4756
- const El = (t) => {
4750
+ const Pl = (t) => {
4757
4751
  const { data: e, dataFormatter: n, chartParams: r, layout: i } = t;
4758
4752
  if (!e.length)
4759
4753
  return [];
4760
4754
  let o = [];
4761
4755
  try {
4762
- const a = e.map((b, D) => b.map((w, M) => typeof w == "number" ? {
4756
+ const a = e.map((x, M) => x.map((y, P) => typeof y == "number" ? {
4763
4757
  id: "",
4764
4758
  label: "",
4765
- tooltipContent: "",
4759
+ description: "",
4760
+ // tooltipContent: '',
4766
4761
  data: {},
4767
- value: w
4762
+ value: y
4768
4763
  } : {
4769
- id: w.id ?? "",
4770
- label: w.label ?? "",
4771
- tooltipContent: w.tooltipContent ?? "",
4772
- data: w.data ?? {},
4773
- value: w.value
4774
- })), [u, s] = Ce(a.map((b) => b[0])), [l, f] = Ce(a.map((b) => b[1])), c = n.xAxis.position === "top" || n.xAxis.position === "bottom" ? i.width : i.height, h = n.yAxis.position === "left" || n.yAxis.position === "right" ? i.height : i.width, d = bt({
4764
+ id: y.id ?? "",
4765
+ label: y.label ?? "",
4766
+ description: y.description ?? "",
4767
+ // tooltipContent: _d.tooltipContent ?? '',
4768
+ data: y.data ?? {},
4769
+ value: y.value
4770
+ })), [u, s] = De(a.map((x) => x[0])), [l, f] = De(a.map((x) => x[1])), c = n.xAxis.position === "top" || n.xAxis.position === "bottom" ? i.width : i.height, h = n.yAxis.position === "left" || n.yAxis.position === "right" ? i.height : i.width, d = bt({
4775
4771
  maxValue: s,
4776
4772
  minValue: u,
4777
4773
  axisWidth: c,
@@ -4793,42 +4789,43 @@ const El = (t) => {
4793
4789
  ], g = [
4794
4790
  n.yAxis.scaleDomain[0] === "auto" ? l : n.yAxis.scaleDomain[0],
4795
4791
  n.yAxis.scaleDomain[1] === "auto" ? f : n.yAxis.scaleDomain[1]
4796
- ], _ = (b, D, w, M) => w === 0 && b.value != null && (b.value < p[0] || b.value > p[1]) || w === 1 && b.value != null && (b.value < g[0] || b.value > g[1]) ? !1 : n.visibleFilter(b, D, w, M);
4797
- let S = 0;
4798
- o = a.map((b, D) => b.map((w, M) => {
4799
- const v = S;
4800
- S++;
4801
- const $ = Ue(n.type, D, M), x = _(w, D, M, t);
4792
+ ], b = (x, M, y, P) => y === 0 && x.value != null && (x.value < p[0] || x.value > p[1]) || y === 1 && x.value != null && (x.value < g[0] || x.value > g[1]) ? !1 : n.visibleFilter(x, M, y, P);
4793
+ let D = 0;
4794
+ o = a.map((x, M) => x.map((y, P) => {
4795
+ const w = D;
4796
+ D++;
4797
+ const _ = ze(n.type, M, P), $ = b(y, M, P, t);
4802
4798
  return {
4803
- id: w.id ? w.id : $,
4804
- index: v,
4805
- label: w.label ? w.label : $,
4806
- tooltipContent: w.tooltipContent ? w.tooltipContent : n.tooltipContentFormat(w, D, M, t),
4807
- data: w.data,
4808
- value: w.value,
4799
+ id: y.id ? y.id : _,
4800
+ index: w,
4801
+ label: y.label ? y.label : _,
4802
+ description: y.description ?? "",
4803
+ // tooltipContent: _d.tooltipContent ? _d.tooltipContent : dataFormatter.tooltipContentFormat(_d, i, _i, context),
4804
+ data: y.data,
4805
+ value: y.value,
4809
4806
  // valueLabel: formatValueToLabel(_d.value, dataFormatter.multiValue[_i].valueFormat),
4810
- axis: M == 0 ? d(w.value) : m(w.value),
4811
- visible: x
4807
+ axis: P == 0 ? d(y.value) : m(y.value),
4808
+ visible: $
4812
4809
  };
4813
4810
  }));
4814
4811
  } catch (a) {
4815
4812
  throw Error(a);
4816
4813
  }
4817
4814
  return o;
4818
- }, Pl = ({ subject: t, observer: e }) => ({
4815
+ }, Fl = ({ subject: t, observer: e }) => ({
4819
4816
  fullParams$: e.fullParams$,
4820
4817
  fullChartParams$: e.fullChartParams$,
4821
4818
  fullDataFormatter$: e.fullDataFormatter$,
4822
4819
  computedData$: e.computedData$,
4823
4820
  layout$: e.layout$
4824
4821
  });
4825
- class Bl extends Dt {
4822
+ class ql extends St {
4826
4823
  constructor(e, n) {
4827
4824
  super(
4828
4825
  {
4829
4826
  defaultDataFormatter: ni,
4830
- computedDataFn: El,
4831
- contextObserverFn: Pl
4827
+ computedDataFn: Pl,
4828
+ contextObserverFn: Fl
4832
4829
  },
4833
4830
  e,
4834
4831
  n
@@ -4853,8 +4850,8 @@ const Tl = (t) => {
4853
4850
  id: c.id,
4854
4851
  index: h,
4855
4852
  label: c.label ?? "",
4856
- tooltipContent: c.tooltipContent ? c.tooltipContent : n.tooltipContentFormat(c, 0, h, t),
4857
- // 0代表node
4853
+ description: c.description ?? "",
4854
+ // tooltipContent: node.tooltipContent ? node.tooltipContent : dataFormatter.tooltipContentFormat(node, 0, i, context), // 0代表node
4858
4855
  data: c.data ?? {},
4859
4856
  value: c.value ?? 0,
4860
4857
  startNodes: [],
@@ -4873,8 +4870,8 @@ const Tl = (t) => {
4873
4870
  id: c.id,
4874
4871
  index: h,
4875
4872
  label: c.label ?? "",
4876
- tooltipContent: c.tooltipContent ? c.tooltipContent : n.tooltipContentFormat(c, 1, h, t),
4877
- // 1代表edge
4873
+ description: c.description ?? "",
4874
+ // tooltipContent: edge.tooltipContent ? edge.tooltipContent : dataFormatter.tooltipContentFormat(edge, 1, i, context), // 1代表edge
4878
4875
  data: c.data ?? {},
4879
4876
  value: c.value ?? 0,
4880
4877
  startNode: s.get(c.start),
@@ -4907,34 +4904,35 @@ const Tl = (t) => {
4907
4904
  nodes: i,
4908
4905
  edges: o
4909
4906
  };
4910
- }, Fl = ({ subject: t, observer: e }) => ({
4907
+ }, Nl = ({ subject: t, observer: e }) => ({
4911
4908
  fullParams$: e.fullParams$,
4912
4909
  fullChartParams$: e.fullChartParams$,
4913
4910
  fullDataFormatter$: e.fullDataFormatter$,
4914
4911
  computedData$: e.computedData$,
4915
4912
  layout$: e.layout$
4916
4913
  });
4917
- class ql extends Dt {
4914
+ class jl extends St {
4918
4915
  constructor(e, n) {
4919
4916
  super(
4920
4917
  {
4921
4918
  defaultDataFormatter: ii,
4922
4919
  computedDataFn: Tl,
4923
- contextObserverFn: Fl
4920
+ contextObserverFn: Nl
4924
4921
  },
4925
4922
  e,
4926
4923
  n
4927
4924
  );
4928
4925
  }
4929
4926
  }
4930
- const Nl = (t) => {
4927
+ const kl = (t) => {
4931
4928
  const { data: e = [], dataFormatter: n, chartParams: r } = t;
4932
4929
  let i = {
4933
4930
  id: "",
4934
4931
  index: 0,
4935
4932
  label: "",
4933
+ description: "",
4936
4934
  visible: !0,
4937
- tooltipContent: "",
4935
+ // tooltipContent: '',
4938
4936
  data: {},
4939
4937
  value: 0,
4940
4938
  level: 0,
@@ -4963,7 +4961,7 @@ const Nl = (t) => {
4963
4961
  id: c.id,
4964
4962
  label: c.label,
4965
4963
  data: c.data,
4966
- tooltipContent: c.tooltipContent,
4964
+ // tooltipContent: root.tooltipContent,
4967
4965
  value: c.value,
4968
4966
  children: (l.get(c.id) ?? []).map((h) => f(h))
4969
4967
  });
@@ -4980,8 +4978,9 @@ const Nl = (t) => {
4980
4978
  level: l,
4981
4979
  seq: f,
4982
4980
  label: s.label ?? "",
4981
+ description: s.description ?? "",
4983
4982
  data: s.data ?? {},
4984
- tooltipContent: s.tooltipContent ? s.tooltipContent : n.tooltipContentFormat(s, l, f, t),
4983
+ // tooltipContent: branchRoot.tooltipContent ? branchRoot.tooltipContent : dataFormatter.tooltipContentFormat(branchRoot, level, seq, context),
4985
4984
  value: s.value,
4986
4985
  visible: h,
4987
4986
  children: (s.children ?? []).map((m, p) => u(m, c, p))
@@ -4992,20 +4991,20 @@ const Nl = (t) => {
4992
4991
  throw Error(o);
4993
4992
  }
4994
4993
  return i;
4995
- }, kl = ({ subject: t, observer: e }) => ({
4994
+ }, Il = ({ subject: t, observer: e }) => ({
4996
4995
  fullParams$: e.fullParams$,
4997
4996
  fullChartParams$: e.fullChartParams$,
4998
4997
  fullDataFormatter$: e.fullDataFormatter$,
4999
4998
  computedData$: e.computedData$,
5000
4999
  layout$: e.layout$
5001
5000
  });
5002
- class jl extends Dt {
5001
+ class Kl extends St {
5003
5002
  constructor(e, n) {
5004
5003
  super(
5005
5004
  {
5006
5005
  defaultDataFormatter: ri,
5007
- computedDataFn: Nl,
5008
- contextObserverFn: kl
5006
+ computedDataFn: kl,
5007
+ contextObserverFn: Il
5009
5008
  },
5010
5009
  e,
5011
5010
  n
@@ -5028,19 +5027,19 @@ function Ol({ name: t, defaultParams: e, initFn: n }) {
5028
5027
  a(), u && (u.selection.remove(), u = void 0), r.next(void 0);
5029
5028
  },
5030
5029
  setPresetParams: (l) => {
5031
- s = ot(l, e);
5030
+ s = at(l, e);
5032
5031
  },
5033
5032
  setContext: (l) => {
5034
5033
  u = l, u.observer.fullParams$ = i.pipe(
5035
5034
  k(r),
5036
- Zt({}),
5037
- R((f) => ot(f, s)),
5038
- A(1)
5035
+ Kt({}),
5036
+ R((f) => at(f, s)),
5037
+ S(1)
5039
5038
  );
5040
5039
  }
5041
5040
  };
5042
5041
  }
5043
- const ft = () => function(e, n) {
5042
+ const ht = () => function(e, n) {
5044
5043
  return function(i) {
5045
5044
  return class {
5046
5045
  constructor() {
@@ -5049,42 +5048,43 @@ const ft = () => function(e, n) {
5049
5048
  }
5050
5049
  };
5051
5050
  };
5052
- }, Zl = ft(), Jl = ft(), Ql = ft(), tc = ft(), ec = ft(), nc = ft(), rc = ft();
5051
+ }, Jl = ht(), Ql = ht(), tc = ht(), ec = ht(), nc = ht(), rc = ht(), ic = ht();
5053
5052
  export {
5054
- Yl as GridChart,
5053
+ Bl as GridChart,
5055
5054
  Wl as MultiGridChart,
5056
- Bl as MultiValueChart,
5057
- ql as RelationshipChart,
5058
- Xl as SeriesChart,
5059
- jl as TreeChart,
5055
+ ql as MultiValueChart,
5056
+ jl as RelationshipChart,
5057
+ Yl as SeriesChart,
5058
+ Kl as TreeChart,
5060
5059
  bt as createAxisLinearScale,
5061
- Hl as createAxisPointScale,
5062
- Ul as createAxisQuantizeScale,
5063
- Ue as createDefaultDatumId,
5060
+ Ul as createAxisPointScale,
5061
+ Xl as createAxisQuantizeScale,
5062
+ ze as createDefaultDatumId,
5064
5063
  as as createDefaultGroupLabel,
5065
- yr as createDefaultSeriesLabel,
5064
+ wr as createDefaultSeriesLabel,
5066
5065
  ss as createGridGroupLabels,
5067
5066
  us as createGridSeriesLabels,
5068
- Jl as defineGridPlugin,
5069
- Ql as defineMultiGridPlugin,
5070
- tc as defineMultiValuePlugin,
5071
- ec as defineNoneDataPlugin,
5072
- nc as defineRelationshipPlugin,
5073
- Zl as defineSeriesPlugin,
5074
- rc as defineTreePlugin,
5075
- Rl as formatCommaNumber,
5076
- Ll as formatValueToLabel,
5077
- Lt as getMinAndMax,
5078
- Mn as getMinAndMaxGrid,
5079
- Gl as getMinAndMaxMultiGrid,
5080
- zl as getMinAndMaxMultiValue,
5081
- Vl as getMinAndMaxSeries,
5082
- Ce as getMinAndMaxValue,
5083
- Ur as groupDataMapObservable,
5084
- Qe as highlightObservable,
5085
- Il as isFunction,
5067
+ Ql as defineGridPlugin,
5068
+ tc as defineMultiGridPlugin,
5069
+ ec as defineMultiValuePlugin,
5070
+ nc as defineNoneDataPlugin,
5071
+ rc as defineRelationshipPlugin,
5072
+ Jl as defineSeriesPlugin,
5073
+ ic as defineTreePlugin,
5074
+ Ll as formatCommaNumber,
5075
+ Vl as formatValueToLabel,
5076
+ Rt as getMinAndMax,
5077
+ Dn as getMinAndMaxGrid,
5078
+ zl as getMinAndMaxMultiGrid,
5079
+ Hl as getMinAndMaxMultiValue,
5080
+ Gl as getMinAndMaxSeries,
5081
+ De as getMinAndMaxValue,
5082
+ Xr as groupDataMapObservable,
5083
+ Je as highlightObservable,
5084
+ Rl as isFunction,
5086
5085
  Z as isObject,
5087
- ot as mergeOptionsWithDefault,
5088
- tn as seriesDataMapObservable,
5086
+ at as mergeOptionsWithDefault,
5087
+ He as seriesColorPredicate,
5088
+ Qe as seriesDataMapObservable,
5089
5089
  ls as transposeData
5090
5090
  };