@orbcharts/core 3.0.0-alpha.33 → 3.0.0-alpha.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
1
- const ni = {
1
+ const ri = {
2
2
  preset: {}
3
3
  // 預設為空
4
- }, On = {
4
+ }, Rn = {
5
5
  top: 60,
6
6
  right: 60,
7
7
  bottom: 60,
8
8
  left: 60
9
9
  }, nn = {
10
- padding: On,
10
+ padding: Rn,
11
11
  highlightTarget: "datum",
12
12
  // highlightDefault: HIGHLIGHT_DEFAULT,
13
13
  highlightDefault: null,
@@ -34,17 +34,17 @@ const ni = {
34
34
  },
35
35
  transitionDuration: 800,
36
36
  transitionEase: "easeCubic"
37
- }, ri = 800, ii = 500, Z = {
37
+ }, ii = 800, oi = 500, Z = {
38
38
  position: "left",
39
39
  scaleDomain: [0, "auto"],
40
40
  scaleRange: [0, 0.9],
41
41
  label: ""
42
- }, oi = {
42
+ }, ai = {
43
43
  position: "bottom",
44
44
  scaleDomain: [0, "auto"],
45
45
  scalePadding: 0.5,
46
46
  label: ""
47
- }, ai = {
47
+ }, ui = {
48
48
  // ...DATA_FORMATTER_WITH_VALUE,
49
49
  type: "series",
50
50
  visibleFilter: (t, e, n, r) => !0,
@@ -64,7 +64,7 @@ const ni = {
64
64
  // ]
65
65
  // },
66
66
  sort: null
67
- }, Rn = {
67
+ }, Ln = {
68
68
  visibleFilter: (t, e, n, r) => !0,
69
69
  gridData: {
70
70
  seriesDirection: "row",
@@ -72,14 +72,14 @@ const ni = {
72
72
  columnLabels: []
73
73
  },
74
74
  valueAxis: { ...Z },
75
- groupAxis: { ...oi },
75
+ groupAxis: { ...ai },
76
76
  slotIndex: 0,
77
77
  seriesSlotIndexes: null
78
- }, ui = {
78
+ }, si = {
79
79
  // ...DATA_FORMATTER_WITH_VALUE,
80
80
  type: "grid",
81
81
  grid: {
82
- ...Rn
82
+ ...Ln
83
83
  },
84
84
  container: {
85
85
  gap: 120,
@@ -92,8 +92,8 @@ const ni = {
92
92
  // return chartParams.colors[chartParams.colorScheme].series[seriesIndex]
93
93
  // },
94
94
  }, le = {
95
- ...Rn
96
- }, si = {
95
+ ...Ln
96
+ }, li = {
97
97
  type: "multiGrid",
98
98
  visibleFilter: (t, e, n, r) => !0,
99
99
  gridList: [
@@ -106,18 +106,18 @@ const ni = {
106
106
  rowAmount: 1,
107
107
  columnAmount: 1
108
108
  }
109
- }, li = {
109
+ }, ci = {
110
110
  type: "multiValue",
111
111
  visibleFilter: (t, e, n, r) => !0,
112
112
  // labelFormat: (datum: any) => (datum && datum.label) ?? '',
113
113
  multiValue: [],
114
114
  xAxis: { ...Z },
115
115
  yAxis: { ...Z }
116
- }, ci = {
116
+ }, fi = {
117
117
  type: "tree",
118
118
  visibleFilter: (t, e, n, r) => !0
119
119
  // labelFormat: (datum: any) => (datum && datum.label) ?? '',
120
- }, fi = {
120
+ }, hi = {
121
121
  type: "relationship",
122
122
  visibleFilter: (t, e, n, r) => !0
123
123
  // node: {
@@ -132,12 +132,12 @@ const ni = {
132
132
  function Yt(t, e) {
133
133
  return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
134
134
  }
135
- function hi(t, e) {
135
+ function di(t, e) {
136
136
  return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
137
137
  }
138
- function Ln(t) {
138
+ function Vn(t) {
139
139
  let e, n, r;
140
- t.length !== 2 ? (e = Yt, n = (u, s) => Yt(t(u), s), r = (u, s) => t(u) - s) : (e = t === Yt || t === hi ? t : di, n = t, r = t);
140
+ t.length !== 2 ? (e = Yt, n = (u, s) => Yt(t(u), s), r = (u, s) => t(u) - s) : (e = t === Yt || t === di ? t : pi, n = t, r = t);
141
141
  function i(u, s, l = 0, f = u.length) {
142
142
  if (l < f) {
143
143
  if (e(s, s) !== 0) return f;
@@ -164,16 +164,16 @@ function Ln(t) {
164
164
  }
165
165
  return { left: i, center: a, right: o };
166
166
  }
167
- function di() {
167
+ function pi() {
168
168
  return 0;
169
169
  }
170
- function pi(t) {
170
+ function mi(t) {
171
171
  return t === null ? NaN : +t;
172
172
  }
173
- const mi = Ln(Yt), Vn = mi.right;
174
- Ln(pi).center;
173
+ const gi = Vn(Yt), Gn = gi.right;
174
+ Vn(mi).center;
175
175
  class rn extends Map {
176
- constructor(e, n = yi) {
176
+ constructor(e, n = wi) {
177
177
  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);
178
178
  }
179
179
  get(e) {
@@ -183,34 +183,34 @@ class rn extends Map {
183
183
  return super.has(on(this, e));
184
184
  }
185
185
  set(e, n) {
186
- return super.set(gi(this, e), n);
186
+ return super.set(vi(this, e), n);
187
187
  }
188
188
  delete(e) {
189
- return super.delete(vi(this, e));
189
+ return super.delete(yi(this, e));
190
190
  }
191
191
  }
192
192
  function on({ _intern: t, _key: e }, n) {
193
193
  const r = e(n);
194
194
  return t.has(r) ? t.get(r) : n;
195
195
  }
196
- function gi({ _intern: t, _key: e }, n) {
196
+ function vi({ _intern: t, _key: e }, n) {
197
197
  const r = e(n);
198
198
  return t.has(r) ? t.get(r) : (t.set(r, n), n);
199
199
  }
200
- function vi({ _intern: t, _key: e }, n) {
200
+ function yi({ _intern: t, _key: e }, n) {
201
201
  const r = e(n);
202
202
  return t.has(r) && (n = t.get(r), t.delete(r)), n;
203
203
  }
204
- function yi(t) {
204
+ function wi(t) {
205
205
  return t !== null && typeof t == "object" ? t.valueOf() : t;
206
206
  }
207
- const wi = Math.sqrt(50), xi = Math.sqrt(10), bi = Math.sqrt(2);
207
+ const xi = Math.sqrt(50), bi = Math.sqrt(10), _i = Math.sqrt(2);
208
208
  function Jt(t, e, n) {
209
- const r = (e - t) / Math.max(0, n), i = Math.floor(Math.log10(r)), o = r / Math.pow(10, i), a = o >= wi ? 10 : o >= xi ? 5 : o >= bi ? 2 : 1;
209
+ const r = (e - t) / Math.max(0, n), i = Math.floor(Math.log10(r)), o = r / Math.pow(10, i), a = o >= xi ? 10 : o >= bi ? 5 : o >= _i ? 2 : 1;
210
210
  let u, s, l;
211
211
  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];
212
212
  }
213
- function _i(t, e, n) {
213
+ function $i(t, e, n) {
214
214
  if (e = +e, t = +t, n = +n, !(n > 0)) return [];
215
215
  if (t === e) return [t];
216
216
  const r = e < t, [i, o, a] = r ? Jt(e, t, n) : Jt(t, e, n);
@@ -226,20 +226,20 @@ function _i(t, e, n) {
226
226
  function xe(t, e, n) {
227
227
  return e = +e, t = +t, n = +n, Jt(t, e, n)[2];
228
228
  }
229
- function $i(t, e, n) {
229
+ function Ai(t, e, n) {
230
230
  e = +e, t = +t, n = +n;
231
231
  const r = e < t, i = r ? xe(e, t, n) : xe(t, e, n);
232
232
  return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
233
233
  }
234
- function Ai(t, e, n) {
234
+ function Di(t, e, n) {
235
235
  t = +t, e = +e, n = (i = arguments.length) < 2 ? (e = t, t = 0, 1) : i < 3 ? 1 : +n;
236
236
  for (var r = -1, i = Math.max(0, Math.ceil((e - t) / n)) | 0, o = new Array(i); ++r < i; )
237
237
  o[r] = t + r * n;
238
238
  return o;
239
239
  }
240
- var Di = { value: () => {
240
+ var Si = { value: () => {
241
241
  } };
242
- function Gn() {
242
+ function zn() {
243
243
  for (var t = 0, e = arguments.length, n = {}, r; t < e; ++t) {
244
244
  if (!(r = arguments[t] + "") || r in n || /[\s.]/.test(r)) throw new Error("illegal type: " + r);
245
245
  n[r] = [];
@@ -249,19 +249,19 @@ function Gn() {
249
249
  function Bt(t) {
250
250
  this._ = t;
251
251
  }
252
- function Si(t, e) {
252
+ function Mi(t, e) {
253
253
  return t.trim().split(/^|\s+/).map(function(n) {
254
254
  var r = "", i = n.indexOf(".");
255
255
  if (i >= 0 && (r = n.slice(i + 1), n = n.slice(0, i)), n && !e.hasOwnProperty(n)) throw new Error("unknown type: " + n);
256
256
  return { type: n, name: r };
257
257
  });
258
258
  }
259
- Bt.prototype = Gn.prototype = {
259
+ Bt.prototype = zn.prototype = {
260
260
  constructor: Bt,
261
261
  on: function(t, e) {
262
- var n = this._, r = Si(t + "", n), i, o = -1, a = r.length;
262
+ var n = this._, r = Mi(t + "", n), i, o = -1, a = r.length;
263
263
  if (arguments.length < 2) {
264
- for (; ++o < a; ) if ((i = (t = r[o]).type) && (i = Mi(n[i], t.name))) return i;
264
+ for (; ++o < a; ) if ((i = (t = r[o]).type) && (i = Ci(n[i], t.name))) return i;
265
265
  return;
266
266
  }
267
267
  if (e != null && typeof e != "function") throw new Error("invalid callback: " + e);
@@ -285,7 +285,7 @@ Bt.prototype = Gn.prototype = {
285
285
  for (var r = this._[t], i = 0, o = r.length; i < o; ++i) r[i].value.apply(e, n);
286
286
  }
287
287
  };
288
- function Mi(t, e) {
288
+ function Ci(t, e) {
289
289
  for (var n = 0, r = t.length, i; n < r; ++n)
290
290
  if ((i = t[n]).name === e)
291
291
  return i.value;
@@ -293,7 +293,7 @@ function Mi(t, e) {
293
293
  function an(t, e, n) {
294
294
  for (var r = 0, i = t.length; r < i; ++r)
295
295
  if (t[r].name === e) {
296
- t[r] = Di, t = t.slice(0, r).concat(t.slice(r + 1));
296
+ t[r] = Si, t = t.slice(0, r).concat(t.slice(r + 1));
297
297
  break;
298
298
  }
299
299
  return n != null && t.push({ name: e, value: n }), t;
@@ -310,20 +310,20 @@ function ce(t) {
310
310
  var e = t += "", n = e.indexOf(":");
311
311
  return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)), un.hasOwnProperty(e) ? { space: un[e], local: t } : t;
312
312
  }
313
- function Ci(t) {
313
+ function Ei(t) {
314
314
  return function() {
315
315
  var e = this.ownerDocument, n = this.namespaceURI;
316
316
  return n === be && e.documentElement.namespaceURI === be ? e.createElement(t) : e.createElementNS(n, t);
317
317
  };
318
318
  }
319
- function Ei(t) {
319
+ function Pi(t) {
320
320
  return function() {
321
321
  return this.ownerDocument.createElementNS(t.space, t.local);
322
322
  };
323
323
  }
324
- function zn(t) {
324
+ function Un(t) {
325
325
  var e = ce(t);
326
- return (e.local ? Ei : Ci)(e);
326
+ return (e.local ? Pi : Ei)(e);
327
327
  }
328
328
  function Fi() {
329
329
  }
@@ -332,82 +332,82 @@ function Ne(t) {
332
332
  return this.querySelector(t);
333
333
  };
334
334
  }
335
- function Pi(t) {
335
+ function Ii(t) {
336
336
  typeof t != "function" && (t = Ne(t));
337
337
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
338
338
  for (var o = e[i], a = o.length, u = r[i] = new Array(a), s, l, f = 0; f < a; ++f)
339
339
  (s = o[f]) && (l = t.call(s, s.__data__, f, o)) && ("__data__" in s && (l.__data__ = s.__data__), u[f] = l);
340
340
  return new L(r, this._parents);
341
341
  }
342
- function Ii(t) {
342
+ function Ti(t) {
343
343
  return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
344
344
  }
345
- function Ti() {
345
+ function Ni() {
346
346
  return [];
347
347
  }
348
- function Un(t) {
349
- return t == null ? Ti : function() {
348
+ function Hn(t) {
349
+ return t == null ? Ni : function() {
350
350
  return this.querySelectorAll(t);
351
351
  };
352
352
  }
353
- function Ni(t) {
353
+ function ki(t) {
354
354
  return function() {
355
- return Ii(t.apply(this, arguments));
355
+ return Ti(t.apply(this, arguments));
356
356
  };
357
357
  }
358
- function ki(t) {
359
- typeof t == "function" ? t = Ni(t) : t = Un(t);
358
+ function Oi(t) {
359
+ typeof t == "function" ? t = ki(t) : t = Hn(t);
360
360
  for (var e = this._groups, n = e.length, r = [], i = [], o = 0; o < n; ++o)
361
361
  for (var a = e[o], u = a.length, s, l = 0; l < u; ++l)
362
362
  (s = a[l]) && (r.push(t.call(s, s.__data__, l, a)), i.push(s));
363
363
  return new L(r, i);
364
364
  }
365
- function Hn(t) {
365
+ function Xn(t) {
366
366
  return function() {
367
367
  return this.matches(t);
368
368
  };
369
369
  }
370
- function Xn(t) {
370
+ function Yn(t) {
371
371
  return function(e) {
372
372
  return e.matches(t);
373
373
  };
374
374
  }
375
- var Oi = Array.prototype.find;
376
- function Ri(t) {
375
+ var Ri = Array.prototype.find;
376
+ function Li(t) {
377
377
  return function() {
378
- return Oi.call(this.children, t);
378
+ return Ri.call(this.children, t);
379
379
  };
380
380
  }
381
- function Li() {
381
+ function Vi() {
382
382
  return this.firstElementChild;
383
383
  }
384
- function Vi(t) {
385
- return this.select(t == null ? Li : Ri(typeof t == "function" ? t : Xn(t)));
384
+ function Gi(t) {
385
+ return this.select(t == null ? Vi : Li(typeof t == "function" ? t : Yn(t)));
386
386
  }
387
- var Gi = Array.prototype.filter;
388
- function zi() {
387
+ var zi = Array.prototype.filter;
388
+ function Ui() {
389
389
  return Array.from(this.children);
390
390
  }
391
- function Ui(t) {
391
+ function Hi(t) {
392
392
  return function() {
393
- return Gi.call(this.children, t);
393
+ return zi.call(this.children, t);
394
394
  };
395
395
  }
396
- function Hi(t) {
397
- return this.selectAll(t == null ? zi : Ui(typeof t == "function" ? t : Xn(t)));
398
- }
399
396
  function Xi(t) {
400
- typeof t != "function" && (t = Hn(t));
397
+ return this.selectAll(t == null ? Ui : Hi(typeof t == "function" ? t : Yn(t)));
398
+ }
399
+ function Yi(t) {
400
+ typeof t != "function" && (t = Xn(t));
401
401
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
402
402
  for (var o = e[i], a = o.length, u = r[i] = [], s, l = 0; l < a; ++l)
403
403
  (s = o[l]) && t.call(s, s.__data__, l, o) && u.push(s);
404
404
  return new L(r, this._parents);
405
405
  }
406
- function Yn(t) {
406
+ function Bn(t) {
407
407
  return new Array(t.length);
408
408
  }
409
- function Yi() {
410
- return new L(this._enter || this._groups.map(Yn), this._parents);
409
+ function Bi() {
410
+ return new L(this._enter || this._groups.map(Bn), this._parents);
411
411
  }
412
412
  function Zt(t, e) {
413
413
  this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e;
@@ -427,18 +427,18 @@ Zt.prototype = {
427
427
  return this._parent.querySelectorAll(t);
428
428
  }
429
429
  };
430
- function Bi(t) {
430
+ function Wi(t) {
431
431
  return function() {
432
432
  return t;
433
433
  };
434
434
  }
435
- function Wi(t, e, n, r, i, o) {
435
+ function qi(t, e, n, r, i, o) {
436
436
  for (var a = 0, u, s = e.length, l = o.length; a < l; ++a)
437
437
  (u = e[a]) ? (u.__data__ = o[a], r[a] = u) : n[a] = new Zt(t, o[a]);
438
438
  for (; a < s; ++a)
439
439
  (u = e[a]) && (i[a] = u);
440
440
  }
441
- function qi(t, e, n, r, i, o, a) {
441
+ function ji(t, e, n, r, i, o, a) {
442
442
  var u, s, l = /* @__PURE__ */ new Map(), f = e.length, c = o.length, h = new Array(f), d;
443
443
  for (u = 0; u < f; ++u)
444
444
  (s = e[u]) && (h[u] = d = a.call(s, s.__data__, u, e) + "", l.has(d) ? i[u] = s : l.set(d, s));
@@ -447,15 +447,15 @@ function qi(t, e, n, r, i, o, a) {
447
447
  for (u = 0; u < f; ++u)
448
448
  (s = e[u]) && l.get(h[u]) === s && (i[u] = s);
449
449
  }
450
- function ji(t) {
450
+ function Ki(t) {
451
451
  return t.__data__;
452
452
  }
453
- function Ki(t, e) {
454
- if (!arguments.length) return Array.from(this, ji);
455
- var n = e ? qi : Wi, r = this._parents, i = this._groups;
456
- typeof t != "function" && (t = Bi(t));
453
+ function Ji(t, e) {
454
+ if (!arguments.length) return Array.from(this, Ki);
455
+ var n = e ? ji : qi, r = this._parents, i = this._groups;
456
+ typeof t != "function" && (t = Wi(t));
457
457
  for (var o = i.length, a = new Array(o), u = new Array(o), s = new Array(o), l = 0; l < o; ++l) {
458
- var f = r[l], c = i[l], h = c.length, d = Ji(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);
458
+ var f = r[l], c = i[l], h = c.length, d = Zi(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);
459
459
  n(f, c, p, g, _, d, e);
460
460
  for (var $ = 0, v = 0, b, y; $ < m; ++$)
461
461
  if (b = p[$]) {
@@ -465,17 +465,17 @@ function Ki(t, e) {
465
465
  }
466
466
  return a = new L(a, r), a._enter = u, a._exit = s, a;
467
467
  }
468
- function Ji(t) {
468
+ function Zi(t) {
469
469
  return typeof t == "object" && "length" in t ? t : Array.from(t);
470
470
  }
471
- function Zi() {
472
- return new L(this._exit || this._groups.map(Yn), this._parents);
471
+ function Qi() {
472
+ return new L(this._exit || this._groups.map(Bn), this._parents);
473
473
  }
474
- function Qi(t, e, n) {
474
+ function to(t, e, n) {
475
475
  var r = this.enter(), i = this, o = this.exit();
476
476
  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;
477
477
  }
478
- function to(t) {
478
+ function eo(t) {
479
479
  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)
480
480
  for (var l = n[s], f = r[s], c = l.length, h = u[s] = new Array(c), d, m = 0; m < c; ++m)
481
481
  (d = l[m] || f[m]) && (h[m] = d);
@@ -483,14 +483,14 @@ function to(t) {
483
483
  u[s] = n[s];
484
484
  return new L(u, this._parents);
485
485
  }
486
- function eo() {
486
+ function no() {
487
487
  for (var t = this._groups, e = -1, n = t.length; ++e < n; )
488
488
  for (var r = t[e], i = r.length - 1, o = r[i], a; --i >= 0; )
489
489
  (a = r[i]) && (o && a.compareDocumentPosition(o) ^ 4 && o.parentNode.insertBefore(a, o), o = a);
490
490
  return this;
491
491
  }
492
- function no(t) {
493
- t || (t = ro);
492
+ function ro(t) {
493
+ t || (t = io);
494
494
  function e(c, h) {
495
495
  return c && h ? t(c.__data__, h.__data__) : !c - !h;
496
496
  }
@@ -501,17 +501,17 @@ function no(t) {
501
501
  }
502
502
  return new L(i, this._parents).order();
503
503
  }
504
- function ro(t, e) {
504
+ function io(t, e) {
505
505
  return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
506
506
  }
507
- function io() {
507
+ function oo() {
508
508
  var t = arguments[0];
509
509
  return arguments[0] = this, t.apply(null, arguments), this;
510
510
  }
511
- function oo() {
511
+ function ao() {
512
512
  return Array.from(this);
513
513
  }
514
- function ao() {
514
+ function uo() {
515
515
  for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
516
516
  for (var r = t[e], i = 0, o = r.length; i < o; ++i) {
517
517
  var a = r[i];
@@ -519,114 +519,114 @@ function ao() {
519
519
  }
520
520
  return null;
521
521
  }
522
- function uo() {
522
+ function so() {
523
523
  let t = 0;
524
524
  for (const e of this) ++t;
525
525
  return t;
526
526
  }
527
- function so() {
527
+ function lo() {
528
528
  return !this.node();
529
529
  }
530
- function lo(t) {
530
+ function co(t) {
531
531
  for (var e = this._groups, n = 0, r = e.length; n < r; ++n)
532
532
  for (var i = e[n], o = 0, a = i.length, u; o < a; ++o)
533
533
  (u = i[o]) && t.call(u, u.__data__, o, i);
534
534
  return this;
535
535
  }
536
- function co(t) {
536
+ function fo(t) {
537
537
  return function() {
538
538
  this.removeAttribute(t);
539
539
  };
540
540
  }
541
- function fo(t) {
541
+ function ho(t) {
542
542
  return function() {
543
543
  this.removeAttributeNS(t.space, t.local);
544
544
  };
545
545
  }
546
- function ho(t, e) {
546
+ function po(t, e) {
547
547
  return function() {
548
548
  this.setAttribute(t, e);
549
549
  };
550
550
  }
551
- function po(t, e) {
551
+ function mo(t, e) {
552
552
  return function() {
553
553
  this.setAttributeNS(t.space, t.local, e);
554
554
  };
555
555
  }
556
- function mo(t, e) {
556
+ function go(t, e) {
557
557
  return function() {
558
558
  var n = e.apply(this, arguments);
559
559
  n == null ? this.removeAttribute(t) : this.setAttribute(t, n);
560
560
  };
561
561
  }
562
- function go(t, e) {
562
+ function vo(t, e) {
563
563
  return function() {
564
564
  var n = e.apply(this, arguments);
565
565
  n == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, n);
566
566
  };
567
567
  }
568
- function vo(t, e) {
568
+ function yo(t, e) {
569
569
  var n = ce(t);
570
570
  if (arguments.length < 2) {
571
571
  var r = this.node();
572
572
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
573
573
  }
574
- return this.each((e == null ? n.local ? fo : co : typeof e == "function" ? n.local ? go : mo : n.local ? po : ho)(n, e));
574
+ return this.each((e == null ? n.local ? ho : fo : typeof e == "function" ? n.local ? vo : go : n.local ? mo : po)(n, e));
575
575
  }
576
- function Bn(t) {
576
+ function Wn(t) {
577
577
  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
578
578
  }
579
- function yo(t) {
579
+ function wo(t) {
580
580
  return function() {
581
581
  this.style.removeProperty(t);
582
582
  };
583
583
  }
584
- function wo(t, e, n) {
584
+ function xo(t, e, n) {
585
585
  return function() {
586
586
  this.style.setProperty(t, e, n);
587
587
  };
588
588
  }
589
- function xo(t, e, n) {
589
+ function bo(t, e, n) {
590
590
  return function() {
591
591
  var r = e.apply(this, arguments);
592
592
  r == null ? this.style.removeProperty(t) : this.style.setProperty(t, r, n);
593
593
  };
594
594
  }
595
- function bo(t, e, n) {
596
- return arguments.length > 1 ? this.each((e == null ? yo : typeof e == "function" ? xo : wo)(t, e, n ?? "")) : vt(this.node(), t);
595
+ function _o(t, e, n) {
596
+ return arguments.length > 1 ? this.each((e == null ? wo : typeof e == "function" ? bo : xo)(t, e, n ?? "")) : vt(this.node(), t);
597
597
  }
598
598
  function vt(t, e) {
599
- return t.style.getPropertyValue(e) || Bn(t).getComputedStyle(t, null).getPropertyValue(e);
599
+ return t.style.getPropertyValue(e) || Wn(t).getComputedStyle(t, null).getPropertyValue(e);
600
600
  }
601
- function _o(t) {
601
+ function $o(t) {
602
602
  return function() {
603
603
  delete this[t];
604
604
  };
605
605
  }
606
- function $o(t, e) {
606
+ function Ao(t, e) {
607
607
  return function() {
608
608
  this[t] = e;
609
609
  };
610
610
  }
611
- function Ao(t, e) {
611
+ function Do(t, e) {
612
612
  return function() {
613
613
  var n = e.apply(this, arguments);
614
614
  n == null ? delete this[t] : this[t] = n;
615
615
  };
616
616
  }
617
- function Do(t, e) {
618
- return arguments.length > 1 ? this.each((e == null ? _o : typeof e == "function" ? Ao : $o)(t, e)) : this.node()[t];
617
+ function So(t, e) {
618
+ return arguments.length > 1 ? this.each((e == null ? $o : typeof e == "function" ? Do : Ao)(t, e)) : this.node()[t];
619
619
  }
620
- function Wn(t) {
620
+ function qn(t) {
621
621
  return t.trim().split(/^|\s+/);
622
622
  }
623
623
  function ke(t) {
624
- return t.classList || new qn(t);
624
+ return t.classList || new jn(t);
625
625
  }
626
- function qn(t) {
627
- this._node = t, this._names = Wn(t.getAttribute("class") || "");
626
+ function jn(t) {
627
+ this._node = t, this._names = qn(t.getAttribute("class") || "");
628
628
  }
629
- qn.prototype = {
629
+ jn.prototype = {
630
630
  add: function(t) {
631
631
  var e = this._names.indexOf(t);
632
632
  e < 0 && (this._names.push(t), this._node.setAttribute("class", this._names.join(" ")));
@@ -639,129 +639,129 @@ qn.prototype = {
639
639
  return this._names.indexOf(t) >= 0;
640
640
  }
641
641
  };
642
- function jn(t, e) {
642
+ function Kn(t, e) {
643
643
  for (var n = ke(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
644
644
  }
645
- function Kn(t, e) {
645
+ function Jn(t, e) {
646
646
  for (var n = ke(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
647
647
  }
648
- function So(t) {
649
- return function() {
650
- jn(this, t);
651
- };
652
- }
653
648
  function Mo(t) {
654
649
  return function() {
655
650
  Kn(this, t);
656
651
  };
657
652
  }
658
- function Co(t, e) {
653
+ function Co(t) {
659
654
  return function() {
660
- (e.apply(this, arguments) ? jn : Kn)(this, t);
655
+ Jn(this, t);
661
656
  };
662
657
  }
663
658
  function Eo(t, e) {
664
- var n = Wn(t + "");
659
+ return function() {
660
+ (e.apply(this, arguments) ? Kn : Jn)(this, t);
661
+ };
662
+ }
663
+ function Po(t, e) {
664
+ var n = qn(t + "");
665
665
  if (arguments.length < 2) {
666
666
  for (var r = ke(this.node()), i = -1, o = n.length; ++i < o; ) if (!r.contains(n[i])) return !1;
667
667
  return !0;
668
668
  }
669
- return this.each((typeof e == "function" ? Co : e ? So : Mo)(n, e));
669
+ return this.each((typeof e == "function" ? Eo : e ? Mo : Co)(n, e));
670
670
  }
671
671
  function Fo() {
672
672
  this.textContent = "";
673
673
  }
674
- function Po(t) {
674
+ function Io(t) {
675
675
  return function() {
676
676
  this.textContent = t;
677
677
  };
678
678
  }
679
- function Io(t) {
679
+ function To(t) {
680
680
  return function() {
681
681
  var e = t.apply(this, arguments);
682
682
  this.textContent = e ?? "";
683
683
  };
684
684
  }
685
- function To(t) {
686
- return arguments.length ? this.each(t == null ? Fo : (typeof t == "function" ? Io : Po)(t)) : this.node().textContent;
685
+ function No(t) {
686
+ return arguments.length ? this.each(t == null ? Fo : (typeof t == "function" ? To : Io)(t)) : this.node().textContent;
687
687
  }
688
- function No() {
688
+ function ko() {
689
689
  this.innerHTML = "";
690
690
  }
691
- function ko(t) {
691
+ function Oo(t) {
692
692
  return function() {
693
693
  this.innerHTML = t;
694
694
  };
695
695
  }
696
- function Oo(t) {
696
+ function Ro(t) {
697
697
  return function() {
698
698
  var e = t.apply(this, arguments);
699
699
  this.innerHTML = e ?? "";
700
700
  };
701
701
  }
702
- function Ro(t) {
703
- return arguments.length ? this.each(t == null ? No : (typeof t == "function" ? Oo : ko)(t)) : this.node().innerHTML;
704
- }
705
- function Lo() {
706
- this.nextSibling && this.parentNode.appendChild(this);
702
+ function Lo(t) {
703
+ return arguments.length ? this.each(t == null ? ko : (typeof t == "function" ? Ro : Oo)(t)) : this.node().innerHTML;
707
704
  }
708
705
  function Vo() {
709
- return this.each(Lo);
706
+ this.nextSibling && this.parentNode.appendChild(this);
710
707
  }
711
708
  function Go() {
712
- this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
709
+ return this.each(Vo);
713
710
  }
714
711
  function zo() {
715
- return this.each(Go);
712
+ this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
713
+ }
714
+ function Uo() {
715
+ return this.each(zo);
716
716
  }
717
- function Uo(t) {
718
- var e = typeof t == "function" ? t : zn(t);
717
+ function Ho(t) {
718
+ var e = typeof t == "function" ? t : Un(t);
719
719
  return this.select(function() {
720
720
  return this.appendChild(e.apply(this, arguments));
721
721
  });
722
722
  }
723
- function Ho() {
723
+ function Xo() {
724
724
  return null;
725
725
  }
726
- function Xo(t, e) {
727
- var n = typeof t == "function" ? t : zn(t), r = e == null ? Ho : typeof e == "function" ? e : Ne(e);
726
+ function Yo(t, e) {
727
+ var n = typeof t == "function" ? t : Un(t), r = e == null ? Xo : typeof e == "function" ? e : Ne(e);
728
728
  return this.select(function() {
729
729
  return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
730
730
  });
731
731
  }
732
- function Yo() {
732
+ function Bo() {
733
733
  var t = this.parentNode;
734
734
  t && t.removeChild(this);
735
735
  }
736
- function Bo() {
737
- return this.each(Yo);
738
- }
739
736
  function Wo() {
737
+ return this.each(Bo);
738
+ }
739
+ function qo() {
740
740
  var t = this.cloneNode(!1), e = this.parentNode;
741
741
  return e ? e.insertBefore(t, this.nextSibling) : t;
742
742
  }
743
- function qo() {
743
+ function jo() {
744
744
  var t = this.cloneNode(!0), e = this.parentNode;
745
745
  return e ? e.insertBefore(t, this.nextSibling) : t;
746
746
  }
747
- function jo(t) {
748
- return this.select(t ? qo : Wo);
749
- }
750
747
  function Ko(t) {
751
- return arguments.length ? this.property("__data__", t) : this.node().__data__;
748
+ return this.select(t ? jo : qo);
752
749
  }
753
750
  function Jo(t) {
751
+ return arguments.length ? this.property("__data__", t) : this.node().__data__;
752
+ }
753
+ function Zo(t) {
754
754
  return function(e) {
755
755
  t.call(this, e, this.__data__);
756
756
  };
757
757
  }
758
- function Zo(t) {
758
+ function Qo(t) {
759
759
  return t.trim().split(/^|\s+/).map(function(e) {
760
760
  var n = "", r = e.indexOf(".");
761
761
  return r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), { type: e, name: n };
762
762
  });
763
763
  }
764
- function Qo(t) {
764
+ function ta(t) {
765
765
  return function() {
766
766
  var e = this.__on;
767
767
  if (e) {
@@ -771,9 +771,9 @@ function Qo(t) {
771
771
  }
772
772
  };
773
773
  }
774
- function ta(t, e, n) {
774
+ function ea(t, e, n) {
775
775
  return function() {
776
- var r = this.__on, i, o = Jo(e);
776
+ var r = this.__on, i, o = Zo(e);
777
777
  if (r) {
778
778
  for (var a = 0, u = r.length; a < u; ++a)
779
779
  if ((i = r[a]).type === t.type && i.name === t.name) {
@@ -784,8 +784,8 @@ function ta(t, e, n) {
784
784
  this.addEventListener(t.type, o, n), i = { type: t.type, name: t.name, value: e, listener: o, options: n }, r ? r.push(i) : this.__on = [i];
785
785
  };
786
786
  }
787
- function ea(t, e, n) {
788
- var r = Zo(t + ""), i, o = r.length, a;
787
+ function na(t, e, n) {
788
+ var r = Qo(t + ""), i, o = r.length, a;
789
789
  if (arguments.length < 2) {
790
790
  var u = this.node().__on;
791
791
  if (u) {
@@ -796,93 +796,93 @@ function ea(t, e, n) {
796
796
  }
797
797
  return;
798
798
  }
799
- for (u = e ? ta : Qo, i = 0; i < o; ++i) this.each(u(r[i], e, n));
799
+ for (u = e ? ea : ta, i = 0; i < o; ++i) this.each(u(r[i], e, n));
800
800
  return this;
801
801
  }
802
- function Jn(t, e, n) {
803
- var r = Bn(t), i = r.CustomEvent;
802
+ function Zn(t, e, n) {
803
+ var r = Wn(t), i = r.CustomEvent;
804
804
  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);
805
805
  }
806
- function na(t, e) {
806
+ function ra(t, e) {
807
807
  return function() {
808
- return Jn(this, t, e);
808
+ return Zn(this, t, e);
809
809
  };
810
810
  }
811
- function ra(t, e) {
811
+ function ia(t, e) {
812
812
  return function() {
813
- return Jn(this, t, e.apply(this, arguments));
813
+ return Zn(this, t, e.apply(this, arguments));
814
814
  };
815
815
  }
816
- function ia(t, e) {
817
- return this.each((typeof e == "function" ? ra : na)(t, e));
816
+ function oa(t, e) {
817
+ return this.each((typeof e == "function" ? ia : ra)(t, e));
818
818
  }
819
- function* oa() {
819
+ function* aa() {
820
820
  for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
821
821
  for (var r = t[e], i = 0, o = r.length, a; i < o; ++i)
822
822
  (a = r[i]) && (yield a);
823
823
  }
824
- var Zn = [null];
824
+ var Qn = [null];
825
825
  function L(t, e) {
826
826
  this._groups = t, this._parents = e;
827
827
  }
828
828
  function kt() {
829
- return new L([[document.documentElement]], Zn);
829
+ return new L([[document.documentElement]], Qn);
830
830
  }
831
- function aa() {
831
+ function ua() {
832
832
  return this;
833
833
  }
834
834
  L.prototype = kt.prototype = {
835
835
  constructor: L,
836
- select: Pi,
837
- selectAll: ki,
838
- selectChild: Vi,
839
- selectChildren: Hi,
840
- filter: Xi,
841
- data: Ki,
842
- enter: Yi,
843
- exit: Zi,
844
- join: Qi,
845
- merge: to,
846
- selection: aa,
847
- order: eo,
848
- sort: no,
849
- call: io,
850
- nodes: oo,
851
- node: ao,
852
- size: uo,
853
- empty: so,
854
- each: lo,
855
- attr: vo,
856
- style: bo,
857
- property: Do,
858
- classed: Eo,
859
- text: To,
860
- html: Ro,
861
- raise: Vo,
862
- lower: zo,
863
- append: Uo,
864
- insert: Xo,
865
- remove: Bo,
866
- clone: jo,
867
- datum: Ko,
868
- on: ea,
869
- dispatch: ia,
870
- [Symbol.iterator]: oa
836
+ select: Ii,
837
+ selectAll: Oi,
838
+ selectChild: Gi,
839
+ selectChildren: Xi,
840
+ filter: Yi,
841
+ data: Ji,
842
+ enter: Bi,
843
+ exit: Qi,
844
+ join: to,
845
+ merge: eo,
846
+ selection: ua,
847
+ order: no,
848
+ sort: ro,
849
+ call: oo,
850
+ nodes: ao,
851
+ node: uo,
852
+ size: so,
853
+ empty: lo,
854
+ each: co,
855
+ attr: yo,
856
+ style: _o,
857
+ property: So,
858
+ classed: Po,
859
+ text: No,
860
+ html: Lo,
861
+ raise: Go,
862
+ lower: Uo,
863
+ append: Ho,
864
+ insert: Yo,
865
+ remove: Wo,
866
+ clone: Ko,
867
+ datum: Jo,
868
+ on: na,
869
+ dispatch: oa,
870
+ [Symbol.iterator]: aa
871
871
  };
872
872
  function Vt(t) {
873
- return typeof t == "string" ? new L([[document.querySelector(t)]], [document.documentElement]) : new L([[t]], Zn);
873
+ return typeof t == "string" ? new L([[document.querySelector(t)]], [document.documentElement]) : new L([[t]], Qn);
874
874
  }
875
875
  function Oe(t, e, n) {
876
876
  t.prototype = e.prototype = n, n.constructor = t;
877
877
  }
878
- function Qn(t, e) {
878
+ function tr(t, e) {
879
879
  var n = Object.create(t.prototype);
880
880
  for (var r in e) n[r] = e[r];
881
881
  return n;
882
882
  }
883
883
  function Ot() {
884
884
  }
885
- var Pt = 0.7, Qt = 1 / Pt, mt = "\\s*([+-]?\\d+)\\s*", It = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ua = /^#([0-9a-f]{3,8})$/, sa = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), la = new RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), ca = new RegExp(`^rgba\\(${mt},${mt},${mt},${It}\\)$`), fa = new RegExp(`^rgba\\(${Y},${Y},${Y},${It}\\)$`), ha = new RegExp(`^hsl\\(${It},${Y},${Y}\\)$`), da = new RegExp(`^hsla\\(${It},${Y},${Y},${It}\\)$`), sn = {
885
+ var Ft = 0.7, Qt = 1 / Ft, mt = "\\s*([+-]?\\d+)\\s*", It = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", sa = /^#([0-9a-f]{3,8})$/, la = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), ca = new RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), fa = new RegExp(`^rgba\\(${mt},${mt},${mt},${It}\\)$`), ha = new RegExp(`^rgba\\(${Y},${Y},${Y},${It}\\)$`), da = new RegExp(`^hsl\\(${It},${Y},${Y}\\)$`), pa = new RegExp(`^hsla\\(${It},${Y},${Y},${It}\\)$`), sn = {
886
886
  aliceblue: 15792383,
887
887
  antiquewhite: 16444375,
888
888
  aqua: 65535,
@@ -1042,26 +1042,26 @@ Oe(Ot, lt, {
1042
1042
  hex: ln,
1043
1043
  // Deprecated! Use color.formatHex.
1044
1044
  formatHex: ln,
1045
- formatHex8: pa,
1046
- formatHsl: ma,
1045
+ formatHex8: ma,
1046
+ formatHsl: ga,
1047
1047
  formatRgb: cn,
1048
1048
  toString: cn
1049
1049
  });
1050
1050
  function ln() {
1051
1051
  return this.rgb().formatHex();
1052
1052
  }
1053
- function pa() {
1053
+ function ma() {
1054
1054
  return this.rgb().formatHex8();
1055
1055
  }
1056
- function ma() {
1057
- return tr(this).formatHsl();
1056
+ function ga() {
1057
+ return er(this).formatHsl();
1058
1058
  }
1059
1059
  function cn() {
1060
1060
  return this.rgb().formatRgb();
1061
1061
  }
1062
1062
  function lt(t) {
1063
1063
  var e, n;
1064
- return t = (t + "").trim().toLowerCase(), (e = ua.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? fn(e) : n === 3 ? new O(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 = sa.exec(t)) ? new O(e[1], e[2], e[3], 1) : (e = la.exec(t)) ? new O(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = ca.exec(t)) ? Gt(e[1], e[2], e[3], e[4]) : (e = fa.exec(t)) ? Gt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = ha.exec(t)) ? pn(e[1], e[2] / 100, e[3] / 100, 1) : (e = da.exec(t)) ? pn(e[1], e[2] / 100, e[3] / 100, e[4]) : sn.hasOwnProperty(t) ? fn(sn[t]) : t === "transparent" ? new O(NaN, NaN, NaN, 0) : null;
1064
+ return t = (t + "").trim().toLowerCase(), (e = sa.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? fn(e) : n === 3 ? new O(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 = la.exec(t)) ? new O(e[1], e[2], e[3], 1) : (e = ca.exec(t)) ? new O(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = fa.exec(t)) ? Gt(e[1], e[2], e[3], e[4]) : (e = ha.exec(t)) ? Gt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = da.exec(t)) ? pn(e[1], e[2] / 100, e[3] / 100, 1) : (e = pa.exec(t)) ? pn(e[1], e[2] / 100, e[3] / 100, e[4]) : sn.hasOwnProperty(t) ? fn(sn[t]) : t === "transparent" ? new O(NaN, NaN, NaN, 0) : null;
1065
1065
  }
1066
1066
  function fn(t) {
1067
1067
  return new O(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
@@ -1069,27 +1069,27 @@ function fn(t) {
1069
1069
  function Gt(t, e, n, r) {
1070
1070
  return r <= 0 && (t = e = n = NaN), new O(t, e, n, r);
1071
1071
  }
1072
- function ga(t) {
1072
+ function va(t) {
1073
1073
  return t instanceof Ot || (t = lt(t)), t ? (t = t.rgb(), new O(t.r, t.g, t.b, t.opacity)) : new O();
1074
1074
  }
1075
1075
  function _e(t, e, n, r) {
1076
- return arguments.length === 1 ? ga(t) : new O(t, e, n, r ?? 1);
1076
+ return arguments.length === 1 ? va(t) : new O(t, e, n, r ?? 1);
1077
1077
  }
1078
1078
  function O(t, e, n, r) {
1079
1079
  this.r = +t, this.g = +e, this.b = +n, this.opacity = +r;
1080
1080
  }
1081
- Oe(O, _e, Qn(Ot, {
1081
+ Oe(O, _e, tr(Ot, {
1082
1082
  brighter(t) {
1083
1083
  return t = t == null ? Qt : Math.pow(Qt, t), new O(this.r * t, this.g * t, this.b * t, this.opacity);
1084
1084
  },
1085
1085
  darker(t) {
1086
- return t = t == null ? Pt : Math.pow(Pt, t), new O(this.r * t, this.g * t, this.b * t, this.opacity);
1086
+ return t = t == null ? Ft : Math.pow(Ft, t), new O(this.r * t, this.g * t, this.b * t, this.opacity);
1087
1087
  },
1088
1088
  rgb() {
1089
1089
  return this;
1090
1090
  },
1091
1091
  clamp() {
1092
- return new O(st(this.r), st(this.g), st(this.b), te(this.opacity));
1092
+ return new O(ut(this.r), ut(this.g), ut(this.b), te(this.opacity));
1093
1093
  },
1094
1094
  displayable() {
1095
1095
  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;
@@ -1097,33 +1097,33 @@ Oe(O, _e, Qn(Ot, {
1097
1097
  hex: hn,
1098
1098
  // Deprecated! Use color.formatHex.
1099
1099
  formatHex: hn,
1100
- formatHex8: va,
1100
+ formatHex8: ya,
1101
1101
  formatRgb: dn,
1102
1102
  toString: dn
1103
1103
  }));
1104
1104
  function hn() {
1105
- return `#${ut(this.r)}${ut(this.g)}${ut(this.b)}`;
1105
+ return `#${at(this.r)}${at(this.g)}${at(this.b)}`;
1106
1106
  }
1107
- function va() {
1108
- return `#${ut(this.r)}${ut(this.g)}${ut(this.b)}${ut((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1107
+ function ya() {
1108
+ return `#${at(this.r)}${at(this.g)}${at(this.b)}${at((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1109
1109
  }
1110
1110
  function dn() {
1111
1111
  const t = te(this.opacity);
1112
- return `${t === 1 ? "rgb(" : "rgba("}${st(this.r)}, ${st(this.g)}, ${st(this.b)}${t === 1 ? ")" : `, ${t})`}`;
1112
+ return `${t === 1 ? "rgb(" : "rgba("}${ut(this.r)}, ${ut(this.g)}, ${ut(this.b)}${t === 1 ? ")" : `, ${t})`}`;
1113
1113
  }
1114
1114
  function te(t) {
1115
1115
  return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
1116
1116
  }
1117
- function st(t) {
1117
+ function ut(t) {
1118
1118
  return Math.max(0, Math.min(255, Math.round(t) || 0));
1119
1119
  }
1120
- function ut(t) {
1121
- return t = st(t), (t < 16 ? "0" : "") + t.toString(16);
1120
+ function at(t) {
1121
+ return t = ut(t), (t < 16 ? "0" : "") + t.toString(16);
1122
1122
  }
1123
1123
  function pn(t, e, n, r) {
1124
1124
  return r <= 0 ? t = e = n = NaN : n <= 0 || n >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new z(t, e, n, r);
1125
1125
  }
1126
- function tr(t) {
1126
+ function er(t) {
1127
1127
  if (t instanceof z) return new z(t.h, t.s, t.l, t.opacity);
1128
1128
  if (t instanceof Ot || (t = lt(t)), !t) return new z();
1129
1129
  if (t instanceof z) return t;
@@ -1131,18 +1131,18 @@ function tr(t) {
1131
1131
  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;
1132
1132
  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 z(a, u, s, t.opacity);
1133
1133
  }
1134
- function ya(t, e, n, r) {
1135
- return arguments.length === 1 ? tr(t) : new z(t, e, n, r ?? 1);
1134
+ function wa(t, e, n, r) {
1135
+ return arguments.length === 1 ? er(t) : new z(t, e, n, r ?? 1);
1136
1136
  }
1137
1137
  function z(t, e, n, r) {
1138
1138
  this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
1139
1139
  }
1140
- Oe(z, ya, Qn(Ot, {
1140
+ Oe(z, wa, tr(Ot, {
1141
1141
  brighter(t) {
1142
1142
  return t = t == null ? Qt : Math.pow(Qt, t), new z(this.h, this.s, this.l * t, this.opacity);
1143
1143
  },
1144
1144
  darker(t) {
1145
- return t = t == null ? Pt : Math.pow(Pt, t), new z(this.h, this.s, this.l * t, this.opacity);
1145
+ return t = t == null ? Ft : Math.pow(Ft, t), new z(this.h, this.s, this.l * t, this.opacity);
1146
1146
  },
1147
1147
  rgb() {
1148
1148
  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;
@@ -1174,36 +1174,36 @@ function me(t, e, n) {
1174
1174
  return (t < 60 ? e + (n - e) * t / 60 : t < 180 ? n : t < 240 ? e + (n - e) * (240 - t) / 60 : e) * 255;
1175
1175
  }
1176
1176
  const Re = (t) => () => t;
1177
- function wa(t, e) {
1177
+ function xa(t, e) {
1178
1178
  return function(n) {
1179
1179
  return t + n * e;
1180
1180
  };
1181
1181
  }
1182
- function xa(t, e, n) {
1182
+ function ba(t, e, n) {
1183
1183
  return t = Math.pow(t, n), e = Math.pow(e, n) - t, n = 1 / n, function(r) {
1184
1184
  return Math.pow(t + r * e, n);
1185
1185
  };
1186
1186
  }
1187
- function ba(t) {
1188
- return (t = +t) == 1 ? er : function(e, n) {
1189
- return n - e ? xa(e, n, t) : Re(isNaN(e) ? n : e);
1187
+ function _a(t) {
1188
+ return (t = +t) == 1 ? nr : function(e, n) {
1189
+ return n - e ? ba(e, n, t) : Re(isNaN(e) ? n : e);
1190
1190
  };
1191
1191
  }
1192
- function er(t, e) {
1192
+ function nr(t, e) {
1193
1193
  var n = e - t;
1194
- return n ? wa(t, n) : Re(isNaN(t) ? e : t);
1194
+ return n ? xa(t, n) : Re(isNaN(t) ? e : t);
1195
1195
  }
1196
1196
  const ee = function t(e) {
1197
- var n = ba(e);
1197
+ var n = _a(e);
1198
1198
  function r(i, o) {
1199
- var a = n((i = _e(i)).r, (o = _e(o)).r), u = n(i.g, o.g), s = n(i.b, o.b), l = er(i.opacity, o.opacity);
1199
+ var a = n((i = _e(i)).r, (o = _e(o)).r), u = n(i.g, o.g), s = n(i.b, o.b), l = nr(i.opacity, o.opacity);
1200
1200
  return function(f) {
1201
1201
  return i.r = a(f), i.g = u(f), i.b = s(f), i.opacity = l(f), i + "";
1202
1202
  };
1203
1203
  }
1204
1204
  return r.gamma = t, r;
1205
1205
  }(1);
1206
- function _a(t, e) {
1206
+ function $a(t, e) {
1207
1207
  e || (e = []);
1208
1208
  var n = t ? Math.min(e.length, t.length) : 0, r = e.slice(), i;
1209
1209
  return function(o) {
@@ -1211,10 +1211,10 @@ function _a(t, e) {
1211
1211
  return r;
1212
1212
  };
1213
1213
  }
1214
- function $a(t) {
1214
+ function Aa(t) {
1215
1215
  return ArrayBuffer.isView(t) && !(t instanceof DataView);
1216
1216
  }
1217
- function Aa(t, e) {
1217
+ function Da(t, e) {
1218
1218
  var n = e ? e.length : 0, r = t ? Math.min(n, t.length) : 0, i = new Array(r), o = new Array(n), a;
1219
1219
  for (a = 0; a < r; ++a) i[a] = Le(t[a], e[a]);
1220
1220
  for (; a < n; ++a) o[a] = e[a];
@@ -1223,7 +1223,7 @@ function Aa(t, e) {
1223
1223
  return o;
1224
1224
  };
1225
1225
  }
1226
- function Da(t, e) {
1226
+ function Sa(t, e) {
1227
1227
  var n = /* @__PURE__ */ new Date();
1228
1228
  return t = +t, e = +e, function(r) {
1229
1229
  return n.setTime(t * (1 - r) + e * r), n;
@@ -1234,7 +1234,7 @@ function G(t, e) {
1234
1234
  return t * (1 - n) + e * n;
1235
1235
  };
1236
1236
  }
1237
- function Sa(t, e) {
1237
+ function Ma(t, e) {
1238
1238
  var n = {}, r = {}, i;
1239
1239
  (t === null || typeof t != "object") && (t = {}), (e === null || typeof e != "object") && (e = {});
1240
1240
  for (i in e)
@@ -1245,30 +1245,30 @@ function Sa(t, e) {
1245
1245
  };
1246
1246
  }
1247
1247
  var $e = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, ge = new RegExp($e.source, "g");
1248
- function Ma(t) {
1248
+ function Ca(t) {
1249
1249
  return function() {
1250
1250
  return t;
1251
1251
  };
1252
1252
  }
1253
- function Ca(t) {
1253
+ function Ea(t) {
1254
1254
  return function(e) {
1255
1255
  return t(e) + "";
1256
1256
  };
1257
1257
  }
1258
- function nr(t, e) {
1258
+ function rr(t, e) {
1259
1259
  var n = $e.lastIndex = ge.lastIndex = 0, r, i, o, a = -1, u = [], s = [];
1260
1260
  for (t = t + "", e = e + ""; (r = $e.exec(t)) && (i = ge.exec(e)); )
1261
1261
  (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: G(r, i) })), n = ge.lastIndex;
1262
- return n < e.length && (o = e.slice(n), u[a] ? u[a] += o : u[++a] = o), u.length < 2 ? s[0] ? Ca(s[0].x) : Ma(e) : (e = s.length, function(l) {
1262
+ return n < e.length && (o = e.slice(n), u[a] ? u[a] += o : u[++a] = o), u.length < 2 ? s[0] ? Ea(s[0].x) : Ca(e) : (e = s.length, function(l) {
1263
1263
  for (var f = 0, c; f < e; ++f) u[(c = s[f]).i] = c.x(l);
1264
1264
  return u.join("");
1265
1265
  });
1266
1266
  }
1267
1267
  function Le(t, e) {
1268
1268
  var n = typeof e, r;
1269
- return e == null || n === "boolean" ? Re(e) : (n === "number" ? G : n === "string" ? (r = lt(e)) ? (e = r, ee) : nr : e instanceof lt ? ee : e instanceof Date ? Da : $a(e) ? _a : Array.isArray(e) ? Aa : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Sa : G)(t, e);
1269
+ return e == null || n === "boolean" ? Re(e) : (n === "number" ? G : n === "string" ? (r = lt(e)) ? (e = r, ee) : rr : e instanceof lt ? ee : e instanceof Date ? Sa : Aa(e) ? $a : Array.isArray(e) ? Da : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Ma : G)(t, e);
1270
1270
  }
1271
- function Ea(t, e) {
1271
+ function Pa(t, e) {
1272
1272
  return t = +t, e = +e, function(n) {
1273
1273
  return Math.round(t * (1 - n) + e * n);
1274
1274
  };
@@ -1281,7 +1281,7 @@ var gn = 180 / Math.PI, Ae = {
1281
1281
  scaleX: 1,
1282
1282
  scaleY: 1
1283
1283
  };
1284
- function rr(t, e, n, r, i, o) {
1284
+ function ir(t, e, n, r, i, o) {
1285
1285
  var a, u, s;
1286
1286
  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), {
1287
1287
  translateX: i,
@@ -1295,12 +1295,12 @@ function rr(t, e, n, r, i, o) {
1295
1295
  var Ut;
1296
1296
  function Fa(t) {
1297
1297
  const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
1298
- return e.isIdentity ? Ae : rr(e.a, e.b, e.c, e.d, e.e, e.f);
1298
+ return e.isIdentity ? Ae : ir(e.a, e.b, e.c, e.d, e.e, e.f);
1299
1299
  }
1300
- function Pa(t) {
1301
- return t == null || (Ut || (Ut = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ut.setAttribute("transform", t), !(t = Ut.transform.baseVal.consolidate())) ? Ae : (t = t.matrix, rr(t.a, t.b, t.c, t.d, t.e, t.f));
1300
+ function Ia(t) {
1301
+ return t == null || (Ut || (Ut = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ut.setAttribute("transform", t), !(t = Ut.transform.baseVal.consolidate())) ? Ae : (t = t.matrix, ir(t.a, t.b, t.c, t.d, t.e, t.f));
1302
1302
  }
1303
- function ir(t, e, n, r) {
1303
+ function or(t, e, n, r) {
1304
1304
  function i(l) {
1305
1305
  return l.length ? l.pop() + " " : "";
1306
1306
  }
@@ -1330,19 +1330,19 @@ function ir(t, e, n, r) {
1330
1330
  };
1331
1331
  };
1332
1332
  }
1333
- var Ia = ir(Fa, "px, ", "px)", "deg)"), Ta = ir(Pa, ", ", ")", ")"), yt = 0, Mt = 0, St = 0, or = 1e3, ne, Ct, re = 0, ct = 0, fe = 0, Tt = typeof performance == "object" && performance.now ? performance : Date, ar = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1333
+ var Ta = or(Fa, "px, ", "px)", "deg)"), Na = or(Ia, ", ", ")", ")"), yt = 0, Mt = 0, St = 0, ar = 1e3, ne, Ct, re = 0, ct = 0, fe = 0, Tt = typeof performance == "object" && performance.now ? performance : Date, ur = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1334
1334
  setTimeout(t, 17);
1335
1335
  };
1336
1336
  function Ve() {
1337
- return ct || (ar(Na), ct = Tt.now() + fe);
1337
+ return ct || (ur(ka), ct = Tt.now() + fe);
1338
1338
  }
1339
- function Na() {
1339
+ function ka() {
1340
1340
  ct = 0;
1341
1341
  }
1342
1342
  function ie() {
1343
1343
  this._call = this._time = this._next = null;
1344
1344
  }
1345
- ie.prototype = ur.prototype = {
1345
+ ie.prototype = sr.prototype = {
1346
1346
  constructor: ie,
1347
1347
  restart: function(t, e, n) {
1348
1348
  if (typeof t != "function") throw new TypeError("callback is not a function");
@@ -1352,11 +1352,11 @@ ie.prototype = ur.prototype = {
1352
1352
  this._call && (this._call = null, this._time = 1 / 0, De());
1353
1353
  }
1354
1354
  };
1355
- function ur(t, e, n) {
1355
+ function sr(t, e, n) {
1356
1356
  var r = new ie();
1357
1357
  return r.restart(t, e, n), r;
1358
1358
  }
1359
- function ka() {
1359
+ function Oa() {
1360
1360
  Ve(), ++yt;
1361
1361
  for (var t = ne, e; t; )
1362
1362
  (e = ct - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
@@ -1365,16 +1365,16 @@ function ka() {
1365
1365
  function vn() {
1366
1366
  ct = (re = Tt.now()) + fe, yt = Mt = 0;
1367
1367
  try {
1368
- ka();
1368
+ Oa();
1369
1369
  } finally {
1370
- yt = 0, Ra(), ct = 0;
1370
+ yt = 0, La(), ct = 0;
1371
1371
  }
1372
1372
  }
1373
- function Oa() {
1373
+ function Ra() {
1374
1374
  var t = Tt.now(), e = t - re;
1375
- e > or && (fe -= e, re = t);
1375
+ e > ar && (fe -= e, re = t);
1376
1376
  }
1377
- function Ra() {
1377
+ function La() {
1378
1378
  for (var t, e = ne, n, r = 1 / 0; e; )
1379
1379
  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);
1380
1380
  Ct = t, De(r);
@@ -1383,7 +1383,7 @@ function De(t) {
1383
1383
  if (!yt) {
1384
1384
  Mt && (Mt = clearTimeout(Mt));
1385
1385
  var e = t - ct;
1386
- e > 24 ? (t < 1 / 0 && (Mt = setTimeout(vn, t - Tt.now() - fe)), St && (St = clearInterval(St))) : (St || (re = Tt.now(), St = setInterval(Oa, or)), yt = 1, ar(vn));
1386
+ e > 24 ? (t < 1 / 0 && (Mt = setTimeout(vn, t - Tt.now() - fe)), St && (St = clearInterval(St))) : (St || (re = Tt.now(), St = setInterval(Ra, ar)), yt = 1, ur(vn));
1387
1387
  }
1388
1388
  }
1389
1389
  function yn(t, e, n) {
@@ -1392,30 +1392,30 @@ function yn(t, e, n) {
1392
1392
  r.stop(), t(i + e);
1393
1393
  }, e, n), r;
1394
1394
  }
1395
- var La = Gn("start", "end", "cancel", "interrupt"), Va = [], sr = 0, wn = 1, Se = 2, Wt = 3, xn = 4, Me = 5, qt = 6;
1395
+ var Va = zn("start", "end", "cancel", "interrupt"), Ga = [], lr = 0, wn = 1, Se = 2, Wt = 3, xn = 4, Me = 5, qt = 6;
1396
1396
  function he(t, e, n, r, i, o) {
1397
1397
  var a = t.__transition;
1398
1398
  if (!a) t.__transition = {};
1399
1399
  else if (n in a) return;
1400
- Ga(t, n, {
1400
+ za(t, n, {
1401
1401
  name: e,
1402
1402
  index: r,
1403
1403
  // For context during callback.
1404
1404
  group: i,
1405
1405
  // For context during callback.
1406
- on: La,
1407
- tween: Va,
1406
+ on: Va,
1407
+ tween: Ga,
1408
1408
  time: o.time,
1409
1409
  delay: o.delay,
1410
1410
  duration: o.duration,
1411
1411
  ease: o.ease,
1412
1412
  timer: null,
1413
- state: sr
1413
+ state: lr
1414
1414
  });
1415
1415
  }
1416
1416
  function Ge(t, e) {
1417
1417
  var n = X(t, e);
1418
- if (n.state > sr) throw new Error("too late; already scheduled");
1418
+ if (n.state > lr) throw new Error("too late; already scheduled");
1419
1419
  return n;
1420
1420
  }
1421
1421
  function B(t, e) {
@@ -1428,9 +1428,9 @@ function X(t, e) {
1428
1428
  if (!n || !(n = n[e])) throw new Error("transition not found");
1429
1429
  return n;
1430
1430
  }
1431
- function Ga(t, e, n) {
1431
+ function za(t, e, n) {
1432
1432
  var r = t.__transition, i;
1433
- r[e] = n, n.timer = ur(o, 0, n.time);
1433
+ r[e] = n, n.timer = sr(o, 0, n.time);
1434
1434
  function o(l) {
1435
1435
  n.state = wn, n.timer.restart(a, n.delay, n.time), n.delay <= l && a(l - n.delay);
1436
1436
  }
@@ -1461,7 +1461,7 @@ function Ga(t, e, n) {
1461
1461
  delete t.__transition;
1462
1462
  }
1463
1463
  }
1464
- function za(t, e) {
1464
+ function Ua(t, e) {
1465
1465
  var n = t.__transition, r, i, o = !0, a;
1466
1466
  if (n) {
1467
1467
  e = e == null ? null : e + "";
@@ -1475,12 +1475,12 @@ function za(t, e) {
1475
1475
  o && delete t.__transition;
1476
1476
  }
1477
1477
  }
1478
- function Ua(t) {
1478
+ function Ha(t) {
1479
1479
  return this.each(function() {
1480
- za(this, t);
1480
+ Ua(this, t);
1481
1481
  });
1482
1482
  }
1483
- function Ha(t, e) {
1483
+ function Xa(t, e) {
1484
1484
  var n, r;
1485
1485
  return function() {
1486
1486
  var i = B(this, t), o = i.tween;
@@ -1495,7 +1495,7 @@ function Ha(t, e) {
1495
1495
  i.tween = r;
1496
1496
  };
1497
1497
  }
1498
- function Xa(t, e, n) {
1498
+ function Ya(t, e, n) {
1499
1499
  var r, i;
1500
1500
  if (typeof n != "function") throw new Error();
1501
1501
  return function() {
@@ -1512,7 +1512,7 @@ function Xa(t, e, n) {
1512
1512
  o.tween = i;
1513
1513
  };
1514
1514
  }
1515
- function Ya(t, e) {
1515
+ function Ba(t, e) {
1516
1516
  var n = this._id;
1517
1517
  if (t += "", arguments.length < 2) {
1518
1518
  for (var r = X(this.node(), n).tween, i = 0, o = r.length, a; i < o; ++i)
@@ -1520,7 +1520,7 @@ function Ya(t, e) {
1520
1520
  return a.value;
1521
1521
  return null;
1522
1522
  }
1523
- return this.each((e == null ? Ha : Xa)(n, t, e));
1523
+ return this.each((e == null ? Xa : Ya)(n, t, e));
1524
1524
  }
1525
1525
  function ze(t, e, n) {
1526
1526
  var r = t._id;
@@ -1531,143 +1531,143 @@ function ze(t, e, n) {
1531
1531
  return X(i, r).value[e];
1532
1532
  };
1533
1533
  }
1534
- function lr(t, e) {
1534
+ function cr(t, e) {
1535
1535
  var n;
1536
- return (typeof e == "number" ? G : e instanceof lt ? ee : (n = lt(e)) ? (e = n, ee) : nr)(t, e);
1536
+ return (typeof e == "number" ? G : e instanceof lt ? ee : (n = lt(e)) ? (e = n, ee) : rr)(t, e);
1537
1537
  }
1538
- function Ba(t) {
1538
+ function Wa(t) {
1539
1539
  return function() {
1540
1540
  this.removeAttribute(t);
1541
1541
  };
1542
1542
  }
1543
- function Wa(t) {
1543
+ function qa(t) {
1544
1544
  return function() {
1545
1545
  this.removeAttributeNS(t.space, t.local);
1546
1546
  };
1547
1547
  }
1548
- function qa(t, e, n) {
1548
+ function ja(t, e, n) {
1549
1549
  var r, i = n + "", o;
1550
1550
  return function() {
1551
1551
  var a = this.getAttribute(t);
1552
1552
  return a === i ? null : a === r ? o : o = e(r = a, n);
1553
1553
  };
1554
1554
  }
1555
- function ja(t, e, n) {
1555
+ function Ka(t, e, n) {
1556
1556
  var r, i = n + "", o;
1557
1557
  return function() {
1558
1558
  var a = this.getAttributeNS(t.space, t.local);
1559
1559
  return a === i ? null : a === r ? o : o = e(r = a, n);
1560
1560
  };
1561
1561
  }
1562
- function Ka(t, e, n) {
1562
+ function Ja(t, e, n) {
1563
1563
  var r, i, o;
1564
1564
  return function() {
1565
1565
  var a, u = n(this), s;
1566
1566
  return u == null ? void this.removeAttribute(t) : (a = this.getAttribute(t), s = u + "", a === s ? null : a === r && s === i ? o : (i = s, o = e(r = a, u)));
1567
1567
  };
1568
1568
  }
1569
- function Ja(t, e, n) {
1569
+ function Za(t, e, n) {
1570
1570
  var r, i, o;
1571
1571
  return function() {
1572
1572
  var a, u = n(this), s;
1573
1573
  return u == null ? void this.removeAttributeNS(t.space, t.local) : (a = this.getAttributeNS(t.space, t.local), s = u + "", a === s ? null : a === r && s === i ? o : (i = s, o = e(r = a, u)));
1574
1574
  };
1575
1575
  }
1576
- function Za(t, e) {
1577
- var n = ce(t), r = n === "transform" ? Ta : lr;
1578
- return this.attrTween(t, typeof e == "function" ? (n.local ? Ja : Ka)(n, r, ze(this, "attr." + t, e)) : e == null ? (n.local ? Wa : Ba)(n) : (n.local ? ja : qa)(n, r, e));
1579
- }
1580
1576
  function Qa(t, e) {
1577
+ var n = ce(t), r = n === "transform" ? Na : cr;
1578
+ return this.attrTween(t, typeof e == "function" ? (n.local ? Za : Ja)(n, r, ze(this, "attr." + t, e)) : e == null ? (n.local ? qa : Wa)(n) : (n.local ? Ka : ja)(n, r, e));
1579
+ }
1580
+ function tu(t, e) {
1581
1581
  return function(n) {
1582
1582
  this.setAttribute(t, e.call(this, n));
1583
1583
  };
1584
1584
  }
1585
- function tu(t, e) {
1585
+ function eu(t, e) {
1586
1586
  return function(n) {
1587
1587
  this.setAttributeNS(t.space, t.local, e.call(this, n));
1588
1588
  };
1589
1589
  }
1590
- function eu(t, e) {
1590
+ function nu(t, e) {
1591
1591
  var n, r;
1592
1592
  function i() {
1593
1593
  var o = e.apply(this, arguments);
1594
- return o !== r && (n = (r = o) && tu(t, o)), n;
1594
+ return o !== r && (n = (r = o) && eu(t, o)), n;
1595
1595
  }
1596
1596
  return i._value = e, i;
1597
1597
  }
1598
- function nu(t, e) {
1598
+ function ru(t, e) {
1599
1599
  var n, r;
1600
1600
  function i() {
1601
1601
  var o = e.apply(this, arguments);
1602
- return o !== r && (n = (r = o) && Qa(t, o)), n;
1602
+ return o !== r && (n = (r = o) && tu(t, o)), n;
1603
1603
  }
1604
1604
  return i._value = e, i;
1605
1605
  }
1606
- function ru(t, e) {
1606
+ function iu(t, e) {
1607
1607
  var n = "attr." + t;
1608
1608
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
1609
1609
  if (e == null) return this.tween(n, null);
1610
1610
  if (typeof e != "function") throw new Error();
1611
1611
  var r = ce(t);
1612
- return this.tween(n, (r.local ? eu : nu)(r, e));
1612
+ return this.tween(n, (r.local ? nu : ru)(r, e));
1613
1613
  }
1614
- function iu(t, e) {
1614
+ function ou(t, e) {
1615
1615
  return function() {
1616
1616
  Ge(this, t).delay = +e.apply(this, arguments);
1617
1617
  };
1618
1618
  }
1619
- function ou(t, e) {
1619
+ function au(t, e) {
1620
1620
  return e = +e, function() {
1621
1621
  Ge(this, t).delay = e;
1622
1622
  };
1623
1623
  }
1624
- function au(t) {
1624
+ function uu(t) {
1625
1625
  var e = this._id;
1626
- return arguments.length ? this.each((typeof t == "function" ? iu : ou)(e, t)) : X(this.node(), e).delay;
1626
+ return arguments.length ? this.each((typeof t == "function" ? ou : au)(e, t)) : X(this.node(), e).delay;
1627
1627
  }
1628
- function uu(t, e) {
1628
+ function su(t, e) {
1629
1629
  return function() {
1630
1630
  B(this, t).duration = +e.apply(this, arguments);
1631
1631
  };
1632
1632
  }
1633
- function su(t, e) {
1633
+ function lu(t, e) {
1634
1634
  return e = +e, function() {
1635
1635
  B(this, t).duration = e;
1636
1636
  };
1637
1637
  }
1638
- function lu(t) {
1638
+ function cu(t) {
1639
1639
  var e = this._id;
1640
- return arguments.length ? this.each((typeof t == "function" ? uu : su)(e, t)) : X(this.node(), e).duration;
1640
+ return arguments.length ? this.each((typeof t == "function" ? su : lu)(e, t)) : X(this.node(), e).duration;
1641
1641
  }
1642
- function cu(t, e) {
1642
+ function fu(t, e) {
1643
1643
  if (typeof e != "function") throw new Error();
1644
1644
  return function() {
1645
1645
  B(this, t).ease = e;
1646
1646
  };
1647
1647
  }
1648
- function fu(t) {
1648
+ function hu(t) {
1649
1649
  var e = this._id;
1650
- return arguments.length ? this.each(cu(e, t)) : X(this.node(), e).ease;
1650
+ return arguments.length ? this.each(fu(e, t)) : X(this.node(), e).ease;
1651
1651
  }
1652
- function hu(t, e) {
1652
+ function du(t, e) {
1653
1653
  return function() {
1654
1654
  var n = e.apply(this, arguments);
1655
1655
  if (typeof n != "function") throw new Error();
1656
1656
  B(this, t).ease = n;
1657
1657
  };
1658
1658
  }
1659
- function du(t) {
1659
+ function pu(t) {
1660
1660
  if (typeof t != "function") throw new Error();
1661
- return this.each(hu(this._id, t));
1661
+ return this.each(du(this._id, t));
1662
1662
  }
1663
- function pu(t) {
1664
- typeof t != "function" && (t = Hn(t));
1663
+ function mu(t) {
1664
+ typeof t != "function" && (t = Xn(t));
1665
1665
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
1666
1666
  for (var o = e[i], a = o.length, u = r[i] = [], s, l = 0; l < a; ++l)
1667
1667
  (s = o[l]) && t.call(s, s.__data__, l, o) && u.push(s);
1668
1668
  return new tt(r, this._parents, this._name, this._id);
1669
1669
  }
1670
- function mu(t) {
1670
+ function gu(t) {
1671
1671
  if (t._id !== this._id) throw new Error();
1672
1672
  for (var e = this._groups, n = t._groups, r = e.length, i = n.length, o = Math.min(r, i), a = new Array(r), u = 0; u < o; ++u)
1673
1673
  for (var s = e[u], l = n[u], f = s.length, c = a[u] = new Array(f), h, d = 0; d < f; ++d)
@@ -1676,34 +1676,34 @@ function mu(t) {
1676
1676
  a[u] = e[u];
1677
1677
  return new tt(a, this._parents, this._name, this._id);
1678
1678
  }
1679
- function gu(t) {
1679
+ function vu(t) {
1680
1680
  return (t + "").trim().split(/^|\s+/).every(function(e) {
1681
1681
  var n = e.indexOf(".");
1682
1682
  return n >= 0 && (e = e.slice(0, n)), !e || e === "start";
1683
1683
  });
1684
1684
  }
1685
- function vu(t, e, n) {
1686
- var r, i, o = gu(e) ? Ge : B;
1685
+ function yu(t, e, n) {
1686
+ var r, i, o = vu(e) ? Ge : B;
1687
1687
  return function() {
1688
1688
  var a = o(this, t), u = a.on;
1689
1689
  u !== r && (i = (r = u).copy()).on(e, n), a.on = i;
1690
1690
  };
1691
1691
  }
1692
- function yu(t, e) {
1692
+ function wu(t, e) {
1693
1693
  var n = this._id;
1694
- return arguments.length < 2 ? X(this.node(), n).on.on(t) : this.each(vu(n, t, e));
1694
+ return arguments.length < 2 ? X(this.node(), n).on.on(t) : this.each(yu(n, t, e));
1695
1695
  }
1696
- function wu(t) {
1696
+ function xu(t) {
1697
1697
  return function() {
1698
1698
  var e = this.parentNode;
1699
1699
  for (var n in this.__transition) if (+n !== t) return;
1700
1700
  e && e.removeChild(this);
1701
1701
  };
1702
1702
  }
1703
- function xu() {
1704
- return this.on("end.remove", wu(this._id));
1703
+ function bu() {
1704
+ return this.on("end.remove", xu(this._id));
1705
1705
  }
1706
- function bu(t) {
1706
+ function _u(t) {
1707
1707
  var e = this._name, n = this._id;
1708
1708
  typeof t != "function" && (t = Ne(t));
1709
1709
  for (var r = this._groups, i = r.length, o = new Array(i), a = 0; a < i; ++a)
@@ -1711,9 +1711,9 @@ function bu(t) {
1711
1711
  (f = u[h]) && (c = t.call(f, f.__data__, h, u)) && ("__data__" in f && (c.__data__ = f.__data__), l[h] = c, he(l[h], e, n, h, l, X(f, n)));
1712
1712
  return new tt(o, this._parents, e, n);
1713
1713
  }
1714
- function _u(t) {
1714
+ function $u(t) {
1715
1715
  var e = this._name, n = this._id;
1716
- typeof t != "function" && (t = Un(t));
1716
+ typeof t != "function" && (t = Hn(t));
1717
1717
  for (var r = this._groups, i = r.length, o = [], a = [], u = 0; u < i; ++u)
1718
1718
  for (var s = r[u], l = s.length, f, c = 0; c < l; ++c)
1719
1719
  if (f = s[c]) {
@@ -1723,53 +1723,53 @@ function _u(t) {
1723
1723
  }
1724
1724
  return new tt(o, a, e, n);
1725
1725
  }
1726
- var $u = kt.prototype.constructor;
1727
- function Au() {
1728
- return new $u(this._groups, this._parents);
1726
+ var Au = kt.prototype.constructor;
1727
+ function Du() {
1728
+ return new Au(this._groups, this._parents);
1729
1729
  }
1730
- function Du(t, e) {
1730
+ function Su(t, e) {
1731
1731
  var n, r, i;
1732
1732
  return function() {
1733
1733
  var o = vt(this, t), a = (this.style.removeProperty(t), vt(this, t));
1734
1734
  return o === a ? null : o === n && a === r ? i : i = e(n = o, r = a);
1735
1735
  };
1736
1736
  }
1737
- function cr(t) {
1737
+ function fr(t) {
1738
1738
  return function() {
1739
1739
  this.style.removeProperty(t);
1740
1740
  };
1741
1741
  }
1742
- function Su(t, e, n) {
1742
+ function Mu(t, e, n) {
1743
1743
  var r, i = n + "", o;
1744
1744
  return function() {
1745
1745
  var a = vt(this, t);
1746
1746
  return a === i ? null : a === r ? o : o = e(r = a, n);
1747
1747
  };
1748
1748
  }
1749
- function Mu(t, e, n) {
1749
+ function Cu(t, e, n) {
1750
1750
  var r, i, o;
1751
1751
  return function() {
1752
1752
  var a = vt(this, t), u = n(this), s = u + "";
1753
1753
  return u == null && (s = u = (this.style.removeProperty(t), vt(this, t))), a === s ? null : a === r && s === i ? o : (i = s, o = e(r = a, u));
1754
1754
  };
1755
1755
  }
1756
- function Cu(t, e) {
1756
+ function Eu(t, e) {
1757
1757
  var n, r, i, o = "style." + e, a = "end." + o, u;
1758
1758
  return function() {
1759
- var s = B(this, t), l = s.on, f = s.value[o] == null ? u || (u = cr(e)) : void 0;
1759
+ var s = B(this, t), l = s.on, f = s.value[o] == null ? u || (u = fr(e)) : void 0;
1760
1760
  (l !== n || i !== f) && (r = (n = l).copy()).on(a, i = f), s.on = r;
1761
1761
  };
1762
1762
  }
1763
- function Eu(t, e, n) {
1764
- var r = (t += "") == "transform" ? Ia : lr;
1765
- return e == null ? this.styleTween(t, Du(t, r)).on("end.style." + t, cr(t)) : typeof e == "function" ? this.styleTween(t, Mu(t, r, ze(this, "style." + t, e))).each(Cu(this._id, t)) : this.styleTween(t, Su(t, r, e), n).on("end.style." + t, null);
1763
+ function Pu(t, e, n) {
1764
+ var r = (t += "") == "transform" ? Ta : cr;
1765
+ return e == null ? this.styleTween(t, Su(t, r)).on("end.style." + t, fr(t)) : typeof e == "function" ? this.styleTween(t, Cu(t, r, ze(this, "style." + t, e))).each(Eu(this._id, t)) : this.styleTween(t, Mu(t, r, e), n).on("end.style." + t, null);
1766
1766
  }
1767
1767
  function Fu(t, e, n) {
1768
1768
  return function(r) {
1769
1769
  this.style.setProperty(t, e.call(this, r), n);
1770
1770
  };
1771
1771
  }
1772
- function Pu(t, e, n) {
1772
+ function Iu(t, e, n) {
1773
1773
  var r, i;
1774
1774
  function o() {
1775
1775
  var a = e.apply(this, arguments);
@@ -1777,49 +1777,49 @@ function Pu(t, e, n) {
1777
1777
  }
1778
1778
  return o._value = e, o;
1779
1779
  }
1780
- function Iu(t, e, n) {
1780
+ function Tu(t, e, n) {
1781
1781
  var r = "style." + (t += "");
1782
1782
  if (arguments.length < 2) return (r = this.tween(r)) && r._value;
1783
1783
  if (e == null) return this.tween(r, null);
1784
1784
  if (typeof e != "function") throw new Error();
1785
- return this.tween(r, Pu(t, e, n ?? ""));
1785
+ return this.tween(r, Iu(t, e, n ?? ""));
1786
1786
  }
1787
- function Tu(t) {
1787
+ function Nu(t) {
1788
1788
  return function() {
1789
1789
  this.textContent = t;
1790
1790
  };
1791
1791
  }
1792
- function Nu(t) {
1792
+ function ku(t) {
1793
1793
  return function() {
1794
1794
  var e = t(this);
1795
1795
  this.textContent = e ?? "";
1796
1796
  };
1797
1797
  }
1798
- function ku(t) {
1799
- return this.tween("text", typeof t == "function" ? Nu(ze(this, "text", t)) : Tu(t == null ? "" : t + ""));
1800
- }
1801
1798
  function Ou(t) {
1799
+ return this.tween("text", typeof t == "function" ? ku(ze(this, "text", t)) : Nu(t == null ? "" : t + ""));
1800
+ }
1801
+ function Ru(t) {
1802
1802
  return function(e) {
1803
1803
  this.textContent = t.call(this, e);
1804
1804
  };
1805
1805
  }
1806
- function Ru(t) {
1806
+ function Lu(t) {
1807
1807
  var e, n;
1808
1808
  function r() {
1809
1809
  var i = t.apply(this, arguments);
1810
- return i !== n && (e = (n = i) && Ou(i)), e;
1810
+ return i !== n && (e = (n = i) && Ru(i)), e;
1811
1811
  }
1812
1812
  return r._value = t, r;
1813
1813
  }
1814
- function Lu(t) {
1814
+ function Vu(t) {
1815
1815
  var e = "text";
1816
1816
  if (arguments.length < 1) return (e = this.tween(e)) && e._value;
1817
1817
  if (t == null) return this.tween(e, null);
1818
1818
  if (typeof t != "function") throw new Error();
1819
- return this.tween(e, Ru(t));
1819
+ return this.tween(e, Lu(t));
1820
1820
  }
1821
- function Vu() {
1822
- for (var t = this._name, e = this._id, n = fr(), r = this._groups, i = r.length, o = 0; o < i; ++o)
1821
+ function Gu() {
1822
+ for (var t = this._name, e = this._id, n = hr(), r = this._groups, i = r.length, o = 0; o < i; ++o)
1823
1823
  for (var a = r[o], u = a.length, s, l = 0; l < u; ++l)
1824
1824
  if (s = a[l]) {
1825
1825
  var f = X(s, e);
@@ -1832,7 +1832,7 @@ function Vu() {
1832
1832
  }
1833
1833
  return new tt(r, this._parents, t, n);
1834
1834
  }
1835
- function Gu() {
1835
+ function zu() {
1836
1836
  var t, e, n = this, r = n._id, i = n.size();
1837
1837
  return new Promise(function(o, a) {
1838
1838
  var u = { value: a }, s = { value: function() {
@@ -1844,73 +1844,73 @@ function Gu() {
1844
1844
  }), i === 0 && o();
1845
1845
  });
1846
1846
  }
1847
- var zu = 0;
1847
+ var Uu = 0;
1848
1848
  function tt(t, e, n, r) {
1849
1849
  this._groups = t, this._parents = e, this._name = n, this._id = r;
1850
1850
  }
1851
- function fr() {
1852
- return ++zu;
1851
+ function hr() {
1852
+ return ++Uu;
1853
1853
  }
1854
1854
  var J = kt.prototype;
1855
1855
  tt.prototype = {
1856
1856
  constructor: tt,
1857
- select: bu,
1858
- selectAll: _u,
1857
+ select: _u,
1858
+ selectAll: $u,
1859
1859
  selectChild: J.selectChild,
1860
1860
  selectChildren: J.selectChildren,
1861
- filter: pu,
1862
- merge: mu,
1863
- selection: Au,
1864
- transition: Vu,
1861
+ filter: mu,
1862
+ merge: gu,
1863
+ selection: Du,
1864
+ transition: Gu,
1865
1865
  call: J.call,
1866
1866
  nodes: J.nodes,
1867
1867
  node: J.node,
1868
1868
  size: J.size,
1869
1869
  empty: J.empty,
1870
1870
  each: J.each,
1871
- on: yu,
1872
- attr: Za,
1873
- attrTween: ru,
1874
- style: Eu,
1875
- styleTween: Iu,
1876
- text: ku,
1877
- textTween: Lu,
1878
- remove: xu,
1879
- tween: Ya,
1880
- delay: au,
1881
- duration: lu,
1882
- ease: fu,
1883
- easeVarying: du,
1884
- end: Gu,
1871
+ on: wu,
1872
+ attr: Qa,
1873
+ attrTween: iu,
1874
+ style: Pu,
1875
+ styleTween: Tu,
1876
+ text: Ou,
1877
+ textTween: Vu,
1878
+ remove: bu,
1879
+ tween: Ba,
1880
+ delay: uu,
1881
+ duration: cu,
1882
+ ease: hu,
1883
+ easeVarying: pu,
1884
+ end: zu,
1885
1885
  [Symbol.iterator]: J[Symbol.iterator]
1886
1886
  };
1887
- function Uu(t) {
1887
+ function Hu(t) {
1888
1888
  return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
1889
1889
  }
1890
- var Hu = {
1890
+ var Xu = {
1891
1891
  time: null,
1892
1892
  // Set on use.
1893
1893
  delay: 0,
1894
1894
  duration: 250,
1895
- ease: Uu
1895
+ ease: Hu
1896
1896
  };
1897
- function Xu(t, e) {
1897
+ function Yu(t, e) {
1898
1898
  for (var n; !(n = t.__transition) || !(n = n[e]); )
1899
1899
  if (!(t = t.parentNode))
1900
1900
  throw new Error(`transition ${e} not found`);
1901
1901
  return n;
1902
1902
  }
1903
- function Yu(t) {
1903
+ function Bu(t) {
1904
1904
  var e, n;
1905
- t instanceof tt ? (e = t._id, t = t._name) : (e = fr(), (n = Hu).time = Ve(), t = t == null ? null : t + "");
1905
+ t instanceof tt ? (e = t._id, t = t._name) : (e = hr(), (n = Xu).time = Ve(), t = t == null ? null : t + "");
1906
1906
  for (var r = this._groups, i = r.length, o = 0; o < i; ++o)
1907
1907
  for (var a = r[o], u = a.length, s, l = 0; l < u; ++l)
1908
- (s = a[l]) && he(s, t, e, l, a, n || Xu(s, e));
1908
+ (s = a[l]) && he(s, t, e, l, a, n || Yu(s, e));
1909
1909
  return new tt(r, this._parents, t, e);
1910
1910
  }
1911
- kt.prototype.interrupt = Ua;
1912
- kt.prototype.transition = Yu;
1913
- function Bu(t) {
1911
+ kt.prototype.interrupt = Ha;
1912
+ kt.prototype.transition = Bu;
1913
+ function Wu(t) {
1914
1914
  return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
1915
1915
  }
1916
1916
  function oe(t, e) {
@@ -1924,23 +1924,23 @@ function oe(t, e) {
1924
1924
  function wt(t) {
1925
1925
  return t = oe(Math.abs(t)), t ? t[1] : NaN;
1926
1926
  }
1927
- function Wu(t, e) {
1927
+ function qu(t, e) {
1928
1928
  return function(n, r) {
1929
1929
  for (var i = n.length, o = [], a = 0, u = t[0], s = 0; i > 0 && u > 0 && (s + u + 1 > r && (u = Math.max(1, r - s)), o.push(n.substring(i -= u, i + u)), !((s += u + 1) > r)); )
1930
1930
  u = t[a = (a + 1) % t.length];
1931
1931
  return o.reverse().join(e);
1932
1932
  };
1933
1933
  }
1934
- function qu(t) {
1934
+ function ju(t) {
1935
1935
  return function(e) {
1936
1936
  return e.replace(/[0-9]/g, function(n) {
1937
1937
  return t[+n];
1938
1938
  });
1939
1939
  };
1940
1940
  }
1941
- var ju = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
1941
+ var Ku = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
1942
1942
  function ae(t) {
1943
- if (!(e = ju.exec(t))) throw new Error("invalid format: " + t);
1943
+ if (!(e = Ku.exec(t))) throw new Error("invalid format: " + t);
1944
1944
  var e;
1945
1945
  return new Ue({
1946
1946
  fill: e[1],
@@ -1962,7 +1962,7 @@ function Ue(t) {
1962
1962
  Ue.prototype.toString = function() {
1963
1963
  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;
1964
1964
  };
1965
- function Ku(t) {
1965
+ function Ju(t) {
1966
1966
  t: for (var e = t.length, n = 1, r = -1, i; n < e; ++n)
1967
1967
  switch (t[n]) {
1968
1968
  case ".":
@@ -1978,11 +1978,11 @@ function Ku(t) {
1978
1978
  }
1979
1979
  return r > 0 ? t.slice(0, r) + t.slice(i + 1) : t;
1980
1980
  }
1981
- var hr;
1982
- function Ju(t, e) {
1981
+ var dr;
1982
+ function Zu(t, e) {
1983
1983
  var n = oe(t, e);
1984
1984
  if (!n) return t + "";
1985
- var r = n[0], i = n[1], o = i - (hr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = r.length;
1985
+ var r = n[0], i = n[1], o = i - (dr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = r.length;
1986
1986
  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];
1987
1987
  }
1988
1988
  function bn(t, e) {
@@ -1995,14 +1995,14 @@ const _n = {
1995
1995
  "%": (t, e) => (t * 100).toFixed(e),
1996
1996
  b: (t) => Math.round(t).toString(2),
1997
1997
  c: (t) => t + "",
1998
- d: Bu,
1998
+ d: Wu,
1999
1999
  e: (t, e) => t.toExponential(e),
2000
2000
  f: (t, e) => t.toFixed(e),
2001
2001
  g: (t, e) => t.toPrecision(e),
2002
2002
  o: (t) => Math.round(t).toString(8),
2003
2003
  p: (t, e) => bn(t * 100, e),
2004
2004
  r: bn,
2005
- s: Ju,
2005
+ s: Zu,
2006
2006
  X: (t) => Math.round(t).toString(16).toUpperCase(),
2007
2007
  x: (t) => Math.round(t).toString(16)
2008
2008
  };
@@ -2010,22 +2010,22 @@ function $n(t) {
2010
2010
  return t;
2011
2011
  }
2012
2012
  var An = Array.prototype.map, Dn = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2013
- function Zu(t) {
2014
- var e = t.grouping === void 0 || t.thousands === void 0 ? $n : Wu(An.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 : qu(An.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 + "";
2013
+ function Qu(t) {
2014
+ var e = t.grouping === void 0 || t.thousands === void 0 ? $n : qu(An.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 : ju(An.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 + "";
2015
2015
  function l(c) {
2016
2016
  c = ae(c);
2017
2017
  var h = c.fill, d = c.align, m = c.sign, p = c.symbol, g = c.zero, _ = c.width, $ = c.comma, v = c.precision, b = c.trim, y = c.type;
2018
2018
  y === "n" ? ($ = !0, y = "g") : _n[y] || (v === void 0 && (v = 12), b = !0, y = "g"), (g || h === "0" && d === "=") && (g = !0, h = "0", d = "=");
2019
- var S = p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : "", w = p === "$" ? r : /[%p]/.test(y) ? a : "", A = _n[y], M = /[defgprs%]/.test(y);
2019
+ var D = p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : "", w = p === "$" ? r : /[%p]/.test(y) ? a : "", S = _n[y], M = /[defgprs%]/.test(y);
2020
2020
  v = v === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, v)) : Math.max(0, Math.min(20, v));
2021
2021
  function W(x) {
2022
- var R = S, I = w, q, ht, dt;
2022
+ var R = D, I = w, q, ht, dt;
2023
2023
  if (y === "c")
2024
- I = A(x) + I, x = "";
2024
+ I = S(x) + I, x = "";
2025
2025
  else {
2026
2026
  x = +x;
2027
2027
  var j = x < 0 || 1 / x < 0;
2028
- if (x = isNaN(x) ? s : A(Math.abs(x), v), b && (x = Ku(x)), j && +x == 0 && m !== "+" && (j = !1), R = (j ? m === "(" ? m : u : m === "-" || m === "(" ? "" : m) + R, I = (y === "s" ? Dn[8 + hr / 3] : "") + I + (j && m === "(" ? ")" : ""), M) {
2028
+ if (x = isNaN(x) ? s : S(Math.abs(x), v), b && (x = Ju(x)), j && +x == 0 && m !== "+" && (j = !1), R = (j ? m === "(" ? m : u : m === "-" || m === "(" ? "" : m) + R, I = (y === "s" ? Dn[8 + dr / 3] : "") + I + (j && m === "(" ? ")" : ""), M) {
2029
2029
  for (q = -1, ht = x.length; ++q < ht; )
2030
2030
  if (dt = x.charCodeAt(q), 48 > dt || dt > 57) {
2031
2031
  I = (dt === 46 ? i + x.slice(q + 1) : x.slice(q)) + I, x = x.slice(0, q);
@@ -2034,7 +2034,7 @@ function Zu(t) {
2034
2034
  }
2035
2035
  }
2036
2036
  $ && !g && (x = e(x, 1 / 0));
2037
- var at = R.length + x.length + I.length, K = at < _ ? new Array(_ - at + 1).join(h) : "";
2037
+ var ot = R.length + x.length + I.length, K = ot < _ ? new Array(_ - ot + 1).join(h) : "";
2038
2038
  switch ($ && g && (x = e(K + x, K.length ? _ - I.length : 1 / 0), K = ""), d) {
2039
2039
  case "<":
2040
2040
  x = R + x + I + K;
@@ -2043,7 +2043,7 @@ function Zu(t) {
2043
2043
  x = R + K + x + I;
2044
2044
  break;
2045
2045
  case "^":
2046
- x = K.slice(0, at = K.length >> 1) + R + x + I + K.slice(at);
2046
+ x = K.slice(0, ot = K.length >> 1) + R + x + I + K.slice(ot);
2047
2047
  break;
2048
2048
  default:
2049
2049
  x = K + R + x + I;
@@ -2066,22 +2066,22 @@ function Zu(t) {
2066
2066
  formatPrefix: f
2067
2067
  };
2068
2068
  }
2069
- var Ht, He, dr;
2070
- Qu({
2069
+ var Ht, He, pr;
2070
+ ts({
2071
2071
  thousands: ",",
2072
2072
  grouping: [3],
2073
2073
  currency: ["$", ""]
2074
2074
  });
2075
- function Qu(t) {
2076
- return Ht = Zu(t), He = Ht.format, dr = Ht.formatPrefix, Ht;
2077
- }
2078
2075
  function ts(t) {
2076
+ return Ht = Qu(t), He = Ht.format, pr = Ht.formatPrefix, Ht;
2077
+ }
2078
+ function es(t) {
2079
2079
  return Math.max(0, -wt(Math.abs(t)));
2080
2080
  }
2081
- function es(t, e) {
2081
+ function ns(t, e) {
2082
2082
  return Math.max(0, Math.max(-8, Math.min(8, Math.floor(wt(e) / 3))) * 3 - wt(Math.abs(t)));
2083
2083
  }
2084
- function ns(t, e) {
2084
+ function rs(t, e) {
2085
2085
  return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, wt(e) - wt(t)) + 1;
2086
2086
  }
2087
2087
  function de(t, e) {
@@ -2098,7 +2098,7 @@ function de(t, e) {
2098
2098
  return this;
2099
2099
  }
2100
2100
  const Sn = Symbol("implicit");
2101
- function pr() {
2101
+ function mr() {
2102
2102
  var t = new rn(), e = [], n = [], r = Sn;
2103
2103
  function i(o) {
2104
2104
  let a = t.get(o);
@@ -2119,16 +2119,16 @@ function pr() {
2119
2119
  }, i.unknown = function(o) {
2120
2120
  return arguments.length ? (r = o, i) : r;
2121
2121
  }, i.copy = function() {
2122
- return pr(e, n).unknown(r);
2122
+ return mr(e, n).unknown(r);
2123
2123
  }, de.apply(i, arguments), i;
2124
2124
  }
2125
- function mr() {
2126
- var t = pr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, o, a, u = !1, s = 0, l = 0, f = 0.5;
2125
+ function gr() {
2126
+ var t = mr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, o, a, u = !1, s = 0, l = 0, f = 0.5;
2127
2127
  delete t.unknown;
2128
2128
  function c() {
2129
2129
  var h = e().length, d = i < r, m = d ? i : r, p = d ? r : i;
2130
2130
  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));
2131
- var g = Ai(h).map(function(_) {
2131
+ var g = Di(h).map(function(_) {
2132
2132
  return m + o * _;
2133
2133
  });
2134
2134
  return n(d ? g.reverse() : g);
@@ -2154,24 +2154,24 @@ function mr() {
2154
2154
  }, t.align = function(h) {
2155
2155
  return arguments.length ? (f = Math.max(0, Math.min(1, h)), c()) : f;
2156
2156
  }, t.copy = function() {
2157
- return mr(e(), [r, i]).round(u).paddingInner(s).paddingOuter(l).align(f);
2157
+ return gr(e(), [r, i]).round(u).paddingInner(s).paddingOuter(l).align(f);
2158
2158
  }, de.apply(c(), arguments);
2159
2159
  }
2160
- function gr(t) {
2160
+ function vr(t) {
2161
2161
  var e = t.copy;
2162
2162
  return t.padding = t.paddingOuter, delete t.paddingInner, delete t.paddingOuter, t.copy = function() {
2163
- return gr(e());
2163
+ return vr(e());
2164
2164
  }, t;
2165
2165
  }
2166
- function rs() {
2167
- return gr(mr.apply(null, arguments).paddingInner(1));
2166
+ function is() {
2167
+ return vr(gr.apply(null, arguments).paddingInner(1));
2168
2168
  }
2169
- function is(t) {
2169
+ function os(t) {
2170
2170
  return function() {
2171
2171
  return t;
2172
2172
  };
2173
2173
  }
2174
- function os(t) {
2174
+ function as(t) {
2175
2175
  return +t;
2176
2176
  }
2177
2177
  var Mn = [0, 1];
@@ -2181,37 +2181,37 @@ function pt(t) {
2181
2181
  function Ce(t, e) {
2182
2182
  return (e -= t = +t) ? function(n) {
2183
2183
  return (n - t) / e;
2184
- } : is(isNaN(e) ? NaN : 0.5);
2184
+ } : os(isNaN(e) ? NaN : 0.5);
2185
2185
  }
2186
- function as(t, e) {
2186
+ function us(t, e) {
2187
2187
  var n;
2188
2188
  return t > e && (n = t, t = e, e = n), function(r) {
2189
2189
  return Math.max(t, Math.min(e, r));
2190
2190
  };
2191
2191
  }
2192
- function us(t, e, n) {
2192
+ function ss(t, e, n) {
2193
2193
  var r = t[0], i = t[1], o = e[0], a = e[1];
2194
2194
  return i < r ? (r = Ce(i, r), o = n(a, o)) : (r = Ce(r, i), o = n(o, a)), function(u) {
2195
2195
  return o(r(u));
2196
2196
  };
2197
2197
  }
2198
- function ss(t, e, n) {
2198
+ function ls(t, e, n) {
2199
2199
  var r = Math.min(t.length, e.length) - 1, i = new Array(r), o = new Array(r), a = -1;
2200
2200
  for (t[r] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++a < r; )
2201
2201
  i[a] = Ce(t[a], t[a + 1]), o[a] = n(e[a], e[a + 1]);
2202
2202
  return function(u) {
2203
- var s = Vn(t, u, 1, r) - 1;
2203
+ var s = Gn(t, u, 1, r) - 1;
2204
2204
  return o[s](i[s](u));
2205
2205
  };
2206
2206
  }
2207
- function ls(t, e) {
2207
+ function cs(t, e) {
2208
2208
  return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
2209
2209
  }
2210
- function cs() {
2210
+ function fs() {
2211
2211
  var t = Mn, e = Mn, n = Le, r, i, o, a = pt, u, s, l;
2212
2212
  function f() {
2213
2213
  var h = Math.min(t.length, e.length);
2214
- return a !== pt && (a = as(t[0], t[h - 1])), u = h > 2 ? ss : us, s = l = null, c;
2214
+ return a !== pt && (a = us(t[0], t[h - 1])), u = h > 2 ? ls : ss, s = l = null, c;
2215
2215
  }
2216
2216
  function c(h) {
2217
2217
  return h == null || isNaN(h = +h) ? o : (s || (s = u(t.map(r), e, n)))(r(a(h)));
@@ -2219,11 +2219,11 @@ function cs() {
2219
2219
  return c.invert = function(h) {
2220
2220
  return a(i((l || (l = u(e, t.map(r), G)))(h)));
2221
2221
  }, c.domain = function(h) {
2222
- return arguments.length ? (t = Array.from(h, os), f()) : t.slice();
2222
+ return arguments.length ? (t = Array.from(h, as), f()) : t.slice();
2223
2223
  }, c.range = function(h) {
2224
2224
  return arguments.length ? (e = Array.from(h), f()) : e.slice();
2225
2225
  }, c.rangeRound = function(h) {
2226
- return e = Array.from(h), n = Ea, f();
2226
+ return e = Array.from(h), n = Pa, f();
2227
2227
  }, c.clamp = function(h) {
2228
2228
  return arguments.length ? (a = h ? !0 : pt, f()) : a !== pt;
2229
2229
  }, c.interpolate = function(h) {
@@ -2234,40 +2234,40 @@ function cs() {
2234
2234
  return r = h, i = d, f();
2235
2235
  };
2236
2236
  }
2237
- function fs() {
2238
- return cs()(pt, pt);
2237
+ function hs() {
2238
+ return fs()(pt, pt);
2239
2239
  }
2240
- function hs(t, e, n, r) {
2241
- var i = $i(t, e, n), o;
2240
+ function ds(t, e, n, r) {
2241
+ var i = Ai(t, e, n), o;
2242
2242
  switch (r = ae(r ?? ",f"), r.type) {
2243
2243
  case "s": {
2244
2244
  var a = Math.max(Math.abs(t), Math.abs(e));
2245
- return r.precision == null && !isNaN(o = es(i, a)) && (r.precision = o), dr(r, a);
2245
+ return r.precision == null && !isNaN(o = ns(i, a)) && (r.precision = o), pr(r, a);
2246
2246
  }
2247
2247
  case "":
2248
2248
  case "e":
2249
2249
  case "g":
2250
2250
  case "p":
2251
2251
  case "r": {
2252
- r.precision == null && !isNaN(o = ns(i, Math.max(Math.abs(t), Math.abs(e)))) && (r.precision = o - (r.type === "e"));
2252
+ r.precision == null && !isNaN(o = rs(i, Math.max(Math.abs(t), Math.abs(e)))) && (r.precision = o - (r.type === "e"));
2253
2253
  break;
2254
2254
  }
2255
2255
  case "f":
2256
2256
  case "%": {
2257
- r.precision == null && !isNaN(o = ts(i)) && (r.precision = o - (r.type === "%") * 2);
2257
+ r.precision == null && !isNaN(o = es(i)) && (r.precision = o - (r.type === "%") * 2);
2258
2258
  break;
2259
2259
  }
2260
2260
  }
2261
2261
  return He(r);
2262
2262
  }
2263
- function vr(t) {
2263
+ function yr(t) {
2264
2264
  var e = t.domain;
2265
2265
  return t.ticks = function(n) {
2266
2266
  var r = e();
2267
- return _i(r[0], r[r.length - 1], n ?? 10);
2267
+ return $i(r[0], r[r.length - 1], n ?? 10);
2268
2268
  }, t.tickFormat = function(n, r) {
2269
2269
  var i = e();
2270
- return hs(i[0], i[i.length - 1], n ?? 10, r);
2270
+ return ds(i[0], i[i.length - 1], n ?? 10, r);
2271
2271
  }, t.nice = function(n) {
2272
2272
  n == null && (n = 10);
2273
2273
  var r = e(), i = 0, o = r.length - 1, a = r[i], u = r[o], s, l, f = 10;
@@ -2285,16 +2285,16 @@ function vr(t) {
2285
2285
  return t;
2286
2286
  }, t;
2287
2287
  }
2288
- function yr() {
2289
- var t = fs();
2288
+ function wr() {
2289
+ var t = hs();
2290
2290
  return t.copy = function() {
2291
- return ls(t, yr());
2292
- }, de.apply(t, arguments), vr(t);
2291
+ return cs(t, wr());
2292
+ }, de.apply(t, arguments), yr(t);
2293
2293
  }
2294
- function wr() {
2294
+ function xr() {
2295
2295
  var t = 0, e = 1, n = 1, r = [0.5], i = [0, 1], o;
2296
2296
  function a(s) {
2297
- return s != null && s <= s ? i[Vn(r, s, 0, n)] : o;
2297
+ return s != null && s <= s ? i[Gn(r, s, 0, n)] : o;
2298
2298
  }
2299
2299
  function u() {
2300
2300
  var s = -1;
@@ -2313,8 +2313,8 @@ function wr() {
2313
2313
  }, a.thresholds = function() {
2314
2314
  return r.slice();
2315
2315
  }, a.copy = function() {
2316
- return wr().domain([t, e]).range(i).unknown(o);
2317
- }, de.apply(vr(a), arguments);
2316
+ return xr().domain([t, e]).range(i).unknown(o);
2317
+ }, de.apply(yr(a), arguments);
2318
2318
  }
2319
2319
  function Et(t, e, n) {
2320
2320
  this.k = t, this.x = e, this.y = n;
@@ -2359,10 +2359,10 @@ Et.prototype;
2359
2359
  function Q(t) {
2360
2360
  return Object.prototype.toString.call(t) === "[object Object]";
2361
2361
  }
2362
- function Yl(t) {
2362
+ function Bl(t) {
2363
2363
  return !!t && !t.nodename && t.constructor != String && t.constructor != RegExp && t.constructor != Array && /function/i.test(t + "");
2364
2364
  }
2365
- function nt(t, e) {
2365
+ function st(t, e) {
2366
2366
  if (Q(t) === !1 || Q(e) === !1)
2367
2367
  return Object.assign({}, e);
2368
2368
  const n = (r, i) => {
@@ -2377,7 +2377,7 @@ function nt(t, e) {
2377
2377
  };
2378
2378
  return n(t, e);
2379
2379
  }
2380
- function Bl(t = 0) {
2380
+ function Wl(t = 0) {
2381
2381
  try {
2382
2382
  let e = t.toString().split(".");
2383
2383
  return e[0] = e[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), e.join(".");
@@ -2385,28 +2385,28 @@ function Bl(t = 0) {
2385
2385
  console.error(e);
2386
2386
  }
2387
2387
  }
2388
- function Wl(t, e) {
2388
+ function ql(t, e) {
2389
2389
  return e instanceof Function ? e(t) : He(e)(t);
2390
2390
  }
2391
2391
  function Xe(t, e, n, r) {
2392
2392
  let i = `${t}_${e}_${n}`;
2393
2393
  return r != null && (i += `_${r}`), i;
2394
2394
  }
2395
- function xr(t, e) {
2395
+ function br(t, e) {
2396
2396
  return `${t}_series${e}`;
2397
2397
  }
2398
- function ds(t, e) {
2398
+ function ps(t, e) {
2399
2399
  return `${t}_group${e}`;
2400
2400
  }
2401
- function ps({ transposedDataGrid: t, dataFormatter: e, chartType: n = "grid", gridIndex: r = 0 }) {
2401
+ function ms({ transposedDataGrid: t, dataFormatter: e, chartType: n = "grid", gridIndex: r = 0 }) {
2402
2402
  const i = e.grid.gridData.seriesDirection === "row" ? e.grid.gridData.rowLabels : e.grid.gridData.columnLabels;
2403
- return t.map((o, a) => i[a] != null ? i[a] : xr(`${n}_grid${r}`, a));
2403
+ return t.map((o, a) => i[a] != null ? i[a] : br(`${n}_grid${r}`, a));
2404
2404
  }
2405
- function ms({ transposedDataGrid: t, dataFormatter: e, chartType: n = "grid", gridIndex: r = 0 }) {
2405
+ function gs({ transposedDataGrid: t, dataFormatter: e, chartType: n = "grid", gridIndex: r = 0 }) {
2406
2406
  if (t[0] == null)
2407
2407
  return [];
2408
2408
  const i = e.grid.gridData.seriesDirection === "row" ? e.grid.gridData.columnLabels : e.grid.gridData.rowLabels;
2409
- return t[0].map((o, a) => i[a] != null ? i[a] : ds(`${n}_grid${r}`, a));
2409
+ return t[0].map((o, a) => i[a] != null ? i[a] : ps(`${n}_grid${r}`, a));
2410
2410
  }
2411
2411
  function Rt(t) {
2412
2412
  const e = [0, 0];
@@ -2419,7 +2419,7 @@ function Ee(t) {
2419
2419
  const e = t.filter((n) => n != null && n.value != null).map((n) => n.value);
2420
2420
  return Rt(e);
2421
2421
  }
2422
- function ql(t) {
2422
+ function jl(t) {
2423
2423
  const n = (t[0] && Array.isArray(t[0]) ? t.flat() : t).filter((r) => (r == null || Q(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2424
2424
  return Rt(n);
2425
2425
  }
@@ -2427,15 +2427,15 @@ function Cn(t) {
2427
2427
  const n = t.flat().filter((r) => (r == null || Q(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2428
2428
  return Rt(n);
2429
2429
  }
2430
- function jl(t) {
2430
+ function Kl(t) {
2431
2431
  const n = t.flat().flat().filter((r) => (r == null || Q(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2432
2432
  return Rt(n);
2433
2433
  }
2434
- function Kl(t, e = 2) {
2434
+ function Jl(t, e = 2) {
2435
2435
  const r = t.flat().filter((i, o) => o == e).filter((i) => (i == null || Q(i) && i.value == null) === !1).map((i) => typeof i == "number" ? i : i.value);
2436
2436
  return Rt(r);
2437
2437
  }
2438
- function gs(t, e) {
2438
+ function vs(t, e) {
2439
2439
  if (t === "row")
2440
2440
  return Object.assign([], e);
2441
2441
  const n = e.length, r = e.reduce((o, a) => Math.max(o, a.length), 0), i = new Array(r).fill(null).map(() => new Array(n).fill(null));
@@ -2454,7 +2454,7 @@ function ue(t, e, n, r) {
2454
2454
  scale: h
2455
2455
  };
2456
2456
  }
2457
- function vs(t, e) {
2457
+ function ys(t, e) {
2458
2458
  const n = /* @__PURE__ */ new Map();
2459
2459
  let r = Object.assign([], t), i = [];
2460
2460
  return r.forEach((o, a) => {
@@ -2478,7 +2478,7 @@ function vs(t, e) {
2478
2478
  n.set(String([o.rowIndex, o.columnIndex]), o.index);
2479
2479
  }), n;
2480
2480
  }
2481
- const ys = (t) => {
2481
+ const ws = (t) => {
2482
2482
  const { data: e = [], dataFormatter: n, chartParams: r } = t;
2483
2483
  if (!e.length)
2484
2484
  return [];
@@ -2486,12 +2486,12 @@ const ys = (t) => {
2486
2486
  try {
2487
2487
  const o = ((u) => {
2488
2488
  if (u) {
2489
- const s = vs(e, n.sort);
2489
+ const s = ys(e, n.sort);
2490
2490
  return (l, f, c) => s.get(String([f, c]));
2491
2491
  } else
2492
2492
  return (s, l, f) => s.length;
2493
2493
  })(n.sort != null), a = (u, s, l, f, c) => {
2494
- const h = Xe(n.type, s, l), d = n.seriesLabels[s] || xr("series", s), m = Ye(s, r), p = n.visibleFilter(u, s, l, t);
2494
+ const h = Xe(n.type, s, l), d = n.seriesLabels[s] || br("series", s), m = Ye(s, r), p = n.visibleFilter(u, s, l, t);
2495
2495
  return typeof u == "number" ? {
2496
2496
  id: h,
2497
2497
  index: f,
@@ -2538,23 +2538,23 @@ const ys = (t) => {
2538
2538
  }
2539
2539
  return i;
2540
2540
  };
2541
- var Fe = function(t, e) {
2542
- return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
2541
+ var Pe = function(t, e) {
2542
+ return Pe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
2543
2543
  n.__proto__ = r;
2544
2544
  } || function(n, r) {
2545
2545
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
2546
- }, Fe(t, e);
2546
+ }, Pe(t, e);
2547
2547
  };
2548
2548
  function et(t, e) {
2549
2549
  if (typeof e != "function" && e !== null)
2550
2550
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
2551
- Fe(t, e);
2551
+ Pe(t, e);
2552
2552
  function n() {
2553
2553
  this.constructor = t;
2554
2554
  }
2555
2555
  t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
2556
2556
  }
2557
- function ws(t, e, n, r) {
2557
+ function xs(t, e, n, r) {
2558
2558
  function i(o) {
2559
2559
  return o instanceof n ? o : new n(function(a) {
2560
2560
  a(o);
@@ -2581,7 +2581,7 @@ function ws(t, e, n, r) {
2581
2581
  l((r = r.apply(t, e || [])).next());
2582
2582
  });
2583
2583
  }
2584
- function br(t, e) {
2584
+ function _r(t, e) {
2585
2585
  var n = { label: 0, sent: function() {
2586
2586
  if (o[0] & 1) throw o[1];
2587
2587
  return o[1];
@@ -2651,7 +2651,7 @@ function xt(t) {
2651
2651
  };
2652
2652
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
2653
2653
  }
2654
- function it(t, e) {
2654
+ function rt(t, e) {
2655
2655
  var n = typeof Symbol == "function" && t[Symbol.iterator];
2656
2656
  if (!n) return t;
2657
2657
  var r = n.call(t), i, o = [], a;
@@ -2668,7 +2668,7 @@ function it(t, e) {
2668
2668
  }
2669
2669
  return o;
2670
2670
  }
2671
- function ot(t, e, n) {
2671
+ function it(t, e, n) {
2672
2672
  if (n || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
2673
2673
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
2674
2674
  return t.concat(o || Array.prototype.slice.call(e));
@@ -2676,7 +2676,7 @@ function ot(t, e, n) {
2676
2676
  function gt(t) {
2677
2677
  return this instanceof gt ? (this.v = t, this) : new gt(t);
2678
2678
  }
2679
- function xs(t, e, n) {
2679
+ function bs(t, e, n) {
2680
2680
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2681
2681
  var r = n.apply(t, e || []), i, o = [];
2682
2682
  return i = {}, u("next"), u("throw"), u("return", a), i[Symbol.asyncIterator] = function() {
@@ -2714,7 +2714,7 @@ function xs(t, e, n) {
2714
2714
  d(m), o.shift(), o.length && s(o[0][0], o[0][1]);
2715
2715
  }
2716
2716
  }
2717
- function bs(t) {
2717
+ function _s(t) {
2718
2718
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2719
2719
  var e = t[Symbol.asyncIterator], n;
2720
2720
  return e ? e.call(t) : (t = typeof xt == "function" ? xt(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
@@ -2733,7 +2733,7 @@ function bs(t) {
2733
2733
  }, a);
2734
2734
  }
2735
2735
  }
2736
- function P(t) {
2736
+ function F(t) {
2737
2737
  return typeof t == "function";
2738
2738
  }
2739
2739
  function Be(t) {
@@ -2785,7 +2785,7 @@ var Lt = function() {
2785
2785
  else
2786
2786
  a.remove(this);
2787
2787
  var f = this.initialTeardown;
2788
- if (P(f))
2788
+ if (F(f))
2789
2789
  try {
2790
2790
  f();
2791
2791
  } catch (p) {
@@ -2800,7 +2800,7 @@ var Lt = function() {
2800
2800
  try {
2801
2801
  En(m);
2802
2802
  } catch (p) {
2803
- o = o ?? [], p instanceof ve ? o = ot(ot([], it(o)), it(p.errors)) : o.push(p);
2803
+ o = o ?? [], p instanceof ve ? o = it(it([], rt(o)), rt(p.errors)) : o.push(p);
2804
2804
  }
2805
2805
  }
2806
2806
  } catch (p) {
@@ -2845,37 +2845,37 @@ var Lt = function() {
2845
2845
  var e = new t();
2846
2846
  return e.closed = !0, e;
2847
2847
  }(), t;
2848
- }(), _r = Lt.EMPTY;
2849
- function $r(t) {
2850
- return t instanceof Lt || t && "closed" in t && P(t.remove) && P(t.add) && P(t.unsubscribe);
2848
+ }(), $r = Lt.EMPTY;
2849
+ function Ar(t) {
2850
+ return t instanceof Lt || t && "closed" in t && F(t.remove) && F(t.add) && F(t.unsubscribe);
2851
2851
  }
2852
2852
  function En(t) {
2853
- P(t) ? t() : t.unsubscribe();
2853
+ F(t) ? t() : t.unsubscribe();
2854
2854
  }
2855
- var Ar = {
2855
+ var Dr = {
2856
2856
  onUnhandledError: null,
2857
2857
  onStoppedNotification: null,
2858
2858
  Promise: void 0,
2859
2859
  useDeprecatedSynchronousErrorHandling: !1,
2860
2860
  useDeprecatedNextContext: !1
2861
- }, Dr = {
2861
+ }, Sr = {
2862
2862
  setTimeout: function(t, e) {
2863
2863
  for (var n = [], r = 2; r < arguments.length; r++)
2864
2864
  n[r - 2] = arguments[r];
2865
- return setTimeout.apply(void 0, ot([t, e], it(n)));
2865
+ return setTimeout.apply(void 0, it([t, e], rt(n)));
2866
2866
  },
2867
2867
  clearTimeout: function(t) {
2868
- var e = Dr.delegate;
2868
+ var e = Sr.delegate;
2869
2869
  return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(t);
2870
2870
  },
2871
2871
  delegate: void 0
2872
2872
  };
2873
- function Sr(t) {
2874
- Dr.setTimeout(function() {
2873
+ function Mr(t) {
2874
+ Sr.setTimeout(function() {
2875
2875
  throw t;
2876
2876
  });
2877
2877
  }
2878
- function Pe() {
2878
+ function Fe() {
2879
2879
  }
2880
2880
  function jt(t) {
2881
2881
  t();
@@ -2884,7 +2884,7 @@ var We = function(t) {
2884
2884
  et(e, t);
2885
2885
  function e(n) {
2886
2886
  var r = t.call(this) || this;
2887
- return r.isStopped = !1, n ? (r.destination = n, $r(n) && n.add(r)) : r.destination = Ds, r;
2887
+ return r.isStopped = !1, n ? (r.destination = n, Ar(n) && n.add(r)) : r.destination = Ss, r;
2888
2888
  }
2889
2889
  return e.create = function(n, r, i) {
2890
2890
  return new Nt(n, r, i);
@@ -2911,11 +2911,11 @@ var We = function(t) {
2911
2911
  this.unsubscribe();
2912
2912
  }
2913
2913
  }, e;
2914
- }(Lt), _s = Function.prototype.bind;
2914
+ }(Lt), $s = Function.prototype.bind;
2915
2915
  function ye(t, e) {
2916
- return _s.call(t, e);
2916
+ return $s.call(t, e);
2917
2917
  }
2918
- var $s = function() {
2918
+ var As = function() {
2919
2919
  function t(e) {
2920
2920
  this.partialObserver = e;
2921
2921
  }
@@ -2950,7 +2950,7 @@ var $s = function() {
2950
2950
  et(e, t);
2951
2951
  function e(n, r, i) {
2952
2952
  var o = t.call(this) || this, a;
2953
- if (P(n) || !n)
2953
+ if (F(n) || !n)
2954
2954
  a = {
2955
2955
  next: n ?? void 0,
2956
2956
  error: r ?? void 0,
@@ -2958,7 +2958,7 @@ var $s = function() {
2958
2958
  };
2959
2959
  else {
2960
2960
  var u;
2961
- o && Ar.useDeprecatedNextContext ? (u = Object.create(n), u.unsubscribe = function() {
2961
+ o && Dr.useDeprecatedNextContext ? (u = Object.create(n), u.unsubscribe = function() {
2962
2962
  return o.unsubscribe();
2963
2963
  }, a = {
2964
2964
  next: n.next && ye(n.next, u),
@@ -2966,35 +2966,35 @@ var $s = function() {
2966
2966
  complete: n.complete && ye(n.complete, u)
2967
2967
  }) : a = n;
2968
2968
  }
2969
- return o.destination = new $s(a), o;
2969
+ return o.destination = new As(a), o;
2970
2970
  }
2971
2971
  return e;
2972
2972
  }(We);
2973
2973
  function Xt(t) {
2974
- Sr(t);
2974
+ Mr(t);
2975
2975
  }
2976
- function As(t) {
2976
+ function Ds(t) {
2977
2977
  throw t;
2978
2978
  }
2979
- var Ds = {
2979
+ var Ss = {
2980
2980
  closed: !0,
2981
- next: Pe,
2982
- error: As,
2983
- complete: Pe
2981
+ next: Fe,
2982
+ error: Ds,
2983
+ complete: Fe
2984
2984
  }, qe = function() {
2985
2985
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
2986
2986
  }();
2987
2987
  function _t(t) {
2988
2988
  return t;
2989
2989
  }
2990
- function Ss(t) {
2990
+ function Ms(t) {
2991
2991
  return t.length === 0 ? _t : t.length === 1 ? t[0] : function(n) {
2992
2992
  return t.reduce(function(r, i) {
2993
2993
  return i(r);
2994
2994
  }, n);
2995
2995
  };
2996
2996
  }
2997
- var F = function() {
2997
+ var P = function() {
2998
2998
  function t(e) {
2999
2999
  e && (this._subscribe = e);
3000
3000
  }
@@ -3002,7 +3002,7 @@ var F = function() {
3002
3002
  var n = new t();
3003
3003
  return n.source = this, n.operator = e, n;
3004
3004
  }, t.prototype.subscribe = function(e, n, r) {
3005
- var i = this, o = Cs(e) ? e : new Nt(e, n, r);
3005
+ var i = this, o = Es(e) ? e : new Nt(e, n, r);
3006
3006
  return jt(function() {
3007
3007
  var a = i, u = a.operator, s = a.source;
3008
3008
  o.add(u ? u.call(o, s) : s ? i._subscribe(o) : i._trySubscribe(o));
@@ -3015,7 +3015,7 @@ var F = function() {
3015
3015
  }
3016
3016
  }, t.prototype.forEach = function(e, n) {
3017
3017
  var r = this;
3018
- return n = Fn(n), new n(function(i, o) {
3018
+ return n = Pn(n), new n(function(i, o) {
3019
3019
  var a = new Nt({
3020
3020
  next: function(u) {
3021
3021
  try {
@@ -3037,10 +3037,10 @@ var F = function() {
3037
3037
  }, t.prototype.pipe = function() {
3038
3038
  for (var e = [], n = 0; n < arguments.length; n++)
3039
3039
  e[n] = arguments[n];
3040
- return Ss(e)(this);
3040
+ return Ms(e)(this);
3041
3041
  }, t.prototype.toPromise = function(e) {
3042
3042
  var n = this;
3043
- return e = Fn(e), new e(function(r, i) {
3043
+ return e = Pn(e), new e(function(r, i) {
3044
3044
  var o;
3045
3045
  n.subscribe(function(a) {
3046
3046
  return o = a;
@@ -3054,22 +3054,22 @@ var F = function() {
3054
3054
  return new t(e);
3055
3055
  }, t;
3056
3056
  }();
3057
- function Fn(t) {
3057
+ function Pn(t) {
3058
3058
  var e;
3059
- return (e = t ?? Ar.Promise) !== null && e !== void 0 ? e : Promise;
3060
- }
3061
- function Ms(t) {
3062
- return t && P(t.next) && P(t.error) && P(t.complete);
3059
+ return (e = t ?? Dr.Promise) !== null && e !== void 0 ? e : Promise;
3063
3060
  }
3064
3061
  function Cs(t) {
3065
- return t && t instanceof We || Ms(t) && $r(t);
3062
+ return t && F(t.next) && F(t.error) && F(t.complete);
3066
3063
  }
3067
3064
  function Es(t) {
3068
- return P(t == null ? void 0 : t.lift);
3065
+ return t && t instanceof We || Cs(t) && Ar(t);
3066
+ }
3067
+ function Ps(t) {
3068
+ return F(t == null ? void 0 : t.lift);
3069
3069
  }
3070
3070
  function k(t) {
3071
3071
  return function(e) {
3072
- if (Es(e))
3072
+ if (Ps(e))
3073
3073
  return e.lift(function(n) {
3074
3074
  try {
3075
3075
  return t(n, this);
@@ -3118,7 +3118,7 @@ var Fs = function(t) {
3118
3118
  t.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
3119
3119
  }
3120
3120
  }, e;
3121
- }(We), Ps = Be(function(t) {
3121
+ }(We), Is = Be(function(t) {
3122
3122
  return function() {
3123
3123
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
3124
3124
  };
@@ -3129,11 +3129,11 @@ var Fs = function(t) {
3129
3129
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
3130
3130
  }
3131
3131
  return e.prototype.lift = function(n) {
3132
- var r = new Pn(this, this);
3132
+ var r = new Fn(this, this);
3133
3133
  return r.operator = n, r;
3134
3134
  }, e.prototype._throwIfClosed = function() {
3135
3135
  if (this.closed)
3136
- throw new Ps();
3136
+ throw new Is();
3137
3137
  }, e.prototype.next = function(n) {
3138
3138
  var r = this;
3139
3139
  jt(function() {
@@ -3189,19 +3189,19 @@ var Fs = function(t) {
3189
3189
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
3190
3190
  }, e.prototype._innerSubscribe = function(n) {
3191
3191
  var r = this, i = this, o = i.hasError, a = i.isStopped, u = i.observers;
3192
- return o || a ? _r : (this.currentObservers = null, u.push(n), new Lt(function() {
3192
+ return o || a ? $r : (this.currentObservers = null, u.push(n), new Lt(function() {
3193
3193
  r.currentObservers = null, se(u, n);
3194
3194
  }));
3195
3195
  }, e.prototype._checkFinalizedStatuses = function(n) {
3196
3196
  var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
3197
3197
  i ? n.error(o) : a && n.complete();
3198
3198
  }, e.prototype.asObservable = function() {
3199
- var n = new F();
3199
+ var n = new P();
3200
3200
  return n.source = this, n;
3201
3201
  }, e.create = function(n, r) {
3202
- return new Pn(n, r);
3202
+ return new Fn(n, r);
3203
3203
  }, e;
3204
- }(F), Pn = function(t) {
3204
+ }(P), Fn = function(t) {
3205
3205
  et(e, t);
3206
3206
  function e(n, r) {
3207
3207
  var i = t.call(this) || this;
@@ -3218,14 +3218,14 @@ var Fs = function(t) {
3218
3218
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
3219
3219
  }, e.prototype._subscribe = function(n) {
3220
3220
  var r, i;
3221
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : _r;
3221
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : $r;
3222
3222
  }, e;
3223
3223
  }(C), je = {
3224
3224
  now: function() {
3225
3225
  return (je.delegate || Date).now();
3226
3226
  },
3227
3227
  delegate: void 0
3228
- }, Is = function(t) {
3228
+ }, Ts = function(t) {
3229
3229
  et(e, t);
3230
3230
  function e(n, r, i) {
3231
3231
  n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = je);
@@ -3248,7 +3248,7 @@ var Fs = function(t) {
3248
3248
  l && o.splice(0, l + 1);
3249
3249
  }
3250
3250
  }, e;
3251
- }(C), Ts = function(t) {
3251
+ }(C), Ns = function(t) {
3252
3252
  et(e, t);
3253
3253
  function e(n, r) {
3254
3254
  return t.call(this) || this;
@@ -3260,14 +3260,14 @@ var Fs = function(t) {
3260
3260
  setInterval: function(t, e) {
3261
3261
  for (var n = [], r = 2; r < arguments.length; r++)
3262
3262
  n[r - 2] = arguments[r];
3263
- return setInterval.apply(void 0, ot([t, e], it(n)));
3263
+ return setInterval.apply(void 0, it([t, e], rt(n)));
3264
3264
  },
3265
3265
  clearInterval: function(t) {
3266
3266
  var e = Ie.delegate;
3267
3267
  return ((e == null ? void 0 : e.clearInterval) || clearInterval)(t);
3268
3268
  },
3269
3269
  delegate: void 0
3270
- }, Ns = function(t) {
3270
+ }, ks = function(t) {
3271
3271
  et(e, t);
3272
3272
  function e(n, r) {
3273
3273
  var i = t.call(this, n, r) || this;
@@ -3309,14 +3309,14 @@ var Fs = function(t) {
3309
3309
  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);
3310
3310
  }
3311
3311
  }, e;
3312
- }(Ts), In = function() {
3312
+ }(Ns), In = function() {
3313
3313
  function t(e, n) {
3314
3314
  n === void 0 && (n = t.now), this.schedulerActionCtor = e, this.now = n;
3315
3315
  }
3316
3316
  return t.prototype.schedule = function(e, n, r) {
3317
3317
  return n === void 0 && (n = 0), new this.schedulerActionCtor(this, e).schedule(r, n);
3318
3318
  }, t.now = je.now, t;
3319
- }(), ks = function(t) {
3319
+ }(), Os = function(t) {
3320
3320
  et(e, t);
3321
3321
  function e(n, r) {
3322
3322
  r === void 0 && (r = In.now);
@@ -3341,50 +3341,50 @@ var Fs = function(t) {
3341
3341
  throw i;
3342
3342
  }
3343
3343
  }, e;
3344
- }(In), Ke = new ks(Ns), Os = Ke, Je = new F(function(t) {
3344
+ }(In), Ke = new Os(ks), Rs = Ke, Je = new P(function(t) {
3345
3345
  return t.complete();
3346
3346
  });
3347
- function Mr(t) {
3348
- return t && P(t.schedule);
3347
+ function Cr(t) {
3348
+ return t && F(t.schedule);
3349
3349
  }
3350
3350
  function Ze(t) {
3351
3351
  return t[t.length - 1];
3352
3352
  }
3353
- function Rs(t) {
3354
- return P(Ze(t)) ? t.pop() : void 0;
3353
+ function Ls(t) {
3354
+ return F(Ze(t)) ? t.pop() : void 0;
3355
3355
  }
3356
3356
  function $t(t) {
3357
- return Mr(Ze(t)) ? t.pop() : void 0;
3357
+ return Cr(Ze(t)) ? t.pop() : void 0;
3358
3358
  }
3359
- function Cr(t, e) {
3359
+ function Er(t, e) {
3360
3360
  return typeof Ze(t) == "number" ? t.pop() : e;
3361
3361
  }
3362
- var Er = function(t) {
3362
+ var Pr = function(t) {
3363
3363
  return t && typeof t.length == "number" && typeof t != "function";
3364
3364
  };
3365
3365
  function Fr(t) {
3366
- return P(t == null ? void 0 : t.then);
3367
- }
3368
- function Pr(t) {
3369
- return P(t[qe]);
3366
+ return F(t == null ? void 0 : t.then);
3370
3367
  }
3371
3368
  function Ir(t) {
3372
- return Symbol.asyncIterator && P(t == null ? void 0 : t[Symbol.asyncIterator]);
3369
+ return F(t[qe]);
3373
3370
  }
3374
3371
  function Tr(t) {
3372
+ return Symbol.asyncIterator && F(t == null ? void 0 : t[Symbol.asyncIterator]);
3373
+ }
3374
+ function Nr(t) {
3375
3375
  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.");
3376
3376
  }
3377
- function Ls() {
3377
+ function Vs() {
3378
3378
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
3379
3379
  }
3380
- var Nr = Ls();
3381
- function kr(t) {
3382
- return P(t == null ? void 0 : t[Nr]);
3383
- }
3380
+ var kr = Vs();
3384
3381
  function Or(t) {
3385
- return xs(this, arguments, function() {
3382
+ return F(t == null ? void 0 : t[kr]);
3383
+ }
3384
+ function Rr(t) {
3385
+ return bs(this, arguments, function() {
3386
3386
  var n, r, i, o;
3387
- return br(this, function(a) {
3387
+ return _r(this, function(a) {
3388
3388
  switch (a.label) {
3389
3389
  case 0:
3390
3390
  n = t.getReader(), a.label = 1;
@@ -3412,54 +3412,54 @@ function Or(t) {
3412
3412
  });
3413
3413
  });
3414
3414
  }
3415
- function Rr(t) {
3416
- return P(t == null ? void 0 : t.getReader);
3415
+ function Lr(t) {
3416
+ return F(t == null ? void 0 : t.getReader);
3417
3417
  }
3418
3418
  function V(t) {
3419
- if (t instanceof F)
3419
+ if (t instanceof P)
3420
3420
  return t;
3421
3421
  if (t != null) {
3422
- if (Pr(t))
3423
- return Vs(t);
3424
- if (Er(t))
3422
+ if (Ir(t))
3425
3423
  return Gs(t);
3426
- if (Fr(t))
3424
+ if (Pr(t))
3427
3425
  return zs(t);
3428
- if (Ir(t))
3429
- return Lr(t);
3430
- if (kr(t))
3426
+ if (Fr(t))
3431
3427
  return Us(t);
3432
- if (Rr(t))
3428
+ if (Tr(t))
3429
+ return Vr(t);
3430
+ if (Or(t))
3433
3431
  return Hs(t);
3432
+ if (Lr(t))
3433
+ return Xs(t);
3434
3434
  }
3435
- throw Tr(t);
3435
+ throw Nr(t);
3436
3436
  }
3437
- function Vs(t) {
3438
- return new F(function(e) {
3437
+ function Gs(t) {
3438
+ return new P(function(e) {
3439
3439
  var n = t[qe]();
3440
- if (P(n.subscribe))
3440
+ if (F(n.subscribe))
3441
3441
  return n.subscribe(e);
3442
3442
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
3443
3443
  });
3444
3444
  }
3445
- function Gs(t) {
3446
- return new F(function(e) {
3445
+ function zs(t) {
3446
+ return new P(function(e) {
3447
3447
  for (var n = 0; n < t.length && !e.closed; n++)
3448
3448
  e.next(t[n]);
3449
3449
  e.complete();
3450
3450
  });
3451
3451
  }
3452
- function zs(t) {
3453
- return new F(function(e) {
3452
+ function Us(t) {
3453
+ return new P(function(e) {
3454
3454
  t.then(function(n) {
3455
3455
  e.closed || (e.next(n), e.complete());
3456
3456
  }, function(n) {
3457
3457
  return e.error(n);
3458
- }).then(null, Sr);
3458
+ }).then(null, Mr);
3459
3459
  });
3460
3460
  }
3461
- function Us(t) {
3462
- return new F(function(e) {
3461
+ function Hs(t) {
3462
+ return new P(function(e) {
3463
3463
  var n, r;
3464
3464
  try {
3465
3465
  for (var i = xt(t), o = i.next(); !o.done; o = i.next()) {
@@ -3479,24 +3479,24 @@ function Us(t) {
3479
3479
  e.complete();
3480
3480
  });
3481
3481
  }
3482
- function Lr(t) {
3483
- return new F(function(e) {
3484
- Xs(t, e).catch(function(n) {
3482
+ function Vr(t) {
3483
+ return new P(function(e) {
3484
+ Ys(t, e).catch(function(n) {
3485
3485
  return e.error(n);
3486
3486
  });
3487
3487
  });
3488
3488
  }
3489
- function Hs(t) {
3490
- return Lr(Or(t));
3489
+ function Xs(t) {
3490
+ return Vr(Rr(t));
3491
3491
  }
3492
- function Xs(t, e) {
3492
+ function Ys(t, e) {
3493
3493
  var n, r, i, o;
3494
- return ws(this, void 0, void 0, function() {
3494
+ return xs(this, void 0, void 0, function() {
3495
3495
  var a, u;
3496
- return br(this, function(s) {
3496
+ return _r(this, function(s) {
3497
3497
  switch (s.label) {
3498
3498
  case 0:
3499
- s.trys.push([0, 5, 6, 11]), n = bs(t), s.label = 1;
3499
+ s.trys.push([0, 5, 6, 11]), n = _s(t), s.label = 1;
3500
3500
  case 1:
3501
3501
  return [4, n.next()];
3502
3502
  case 2:
@@ -3527,7 +3527,7 @@ function Xs(t, e) {
3527
3527
  });
3528
3528
  });
3529
3529
  }
3530
- function rt(t, e, n, r, i) {
3530
+ function nt(t, e, n, r, i) {
3531
3531
  r === void 0 && (r = 0), i === void 0 && (i = !1);
3532
3532
  var o = e.schedule(function() {
3533
3533
  n(), i ? t.add(this.schedule(null, r)) : this.unsubscribe();
@@ -3535,49 +3535,49 @@ function rt(t, e, n, r, i) {
3535
3535
  if (t.add(o), !i)
3536
3536
  return o;
3537
3537
  }
3538
- function Vr(t, e) {
3538
+ function Gr(t, e) {
3539
3539
  return e === void 0 && (e = 0), k(function(n, r) {
3540
3540
  n.subscribe(N(r, function(i) {
3541
- return rt(r, t, function() {
3541
+ return nt(r, t, function() {
3542
3542
  return r.next(i);
3543
3543
  }, e);
3544
3544
  }, function() {
3545
- return rt(r, t, function() {
3545
+ return nt(r, t, function() {
3546
3546
  return r.complete();
3547
3547
  }, e);
3548
3548
  }, function(i) {
3549
- return rt(r, t, function() {
3549
+ return nt(r, t, function() {
3550
3550
  return r.error(i);
3551
3551
  }, e);
3552
3552
  }));
3553
3553
  });
3554
3554
  }
3555
- function Gr(t, e) {
3555
+ function zr(t, e) {
3556
3556
  return e === void 0 && (e = 0), k(function(n, r) {
3557
3557
  r.add(t.schedule(function() {
3558
3558
  return n.subscribe(r);
3559
3559
  }, e));
3560
3560
  });
3561
3561
  }
3562
- function Ys(t, e) {
3563
- return V(t).pipe(Gr(e), Vr(e));
3564
- }
3565
3562
  function Bs(t, e) {
3566
- return V(t).pipe(Gr(e), Vr(e));
3563
+ return V(t).pipe(zr(e), Gr(e));
3567
3564
  }
3568
3565
  function Ws(t, e) {
3569
- return new F(function(n) {
3566
+ return V(t).pipe(zr(e), Gr(e));
3567
+ }
3568
+ function qs(t, e) {
3569
+ return new P(function(n) {
3570
3570
  var r = 0;
3571
3571
  return e.schedule(function() {
3572
3572
  r === t.length ? n.complete() : (n.next(t[r++]), n.closed || this.schedule());
3573
3573
  });
3574
3574
  });
3575
3575
  }
3576
- function qs(t, e) {
3577
- return new F(function(n) {
3576
+ function js(t, e) {
3577
+ return new P(function(n) {
3578
3578
  var r;
3579
- return rt(n, e, function() {
3580
- r = t[Nr](), rt(n, e, function() {
3579
+ return nt(n, e, function() {
3580
+ r = t[kr](), nt(n, e, function() {
3581
3581
  var i, o, a;
3582
3582
  try {
3583
3583
  i = r.next(), o = i.value, a = i.done;
@@ -3588,17 +3588,17 @@ function qs(t, e) {
3588
3588
  a ? n.complete() : n.next(o);
3589
3589
  }, 0, !0);
3590
3590
  }), function() {
3591
- return P(r == null ? void 0 : r.return) && r.return();
3591
+ return F(r == null ? void 0 : r.return) && r.return();
3592
3592
  };
3593
3593
  });
3594
3594
  }
3595
- function zr(t, e) {
3595
+ function Ur(t, e) {
3596
3596
  if (!t)
3597
3597
  throw new Error("Iterable cannot be null");
3598
- return new F(function(n) {
3599
- rt(n, e, function() {
3598
+ return new P(function(n) {
3599
+ nt(n, e, function() {
3600
3600
  var r = t[Symbol.asyncIterator]();
3601
- rt(n, e, function() {
3601
+ nt(n, e, function() {
3602
3602
  r.next().then(function(i) {
3603
3603
  i.done ? n.complete() : n.next(i.value);
3604
3604
  });
@@ -3606,41 +3606,41 @@ function zr(t, e) {
3606
3606
  });
3607
3607
  });
3608
3608
  }
3609
- function js(t, e) {
3610
- return zr(Or(t), e);
3611
- }
3612
3609
  function Ks(t, e) {
3610
+ return Ur(Rr(t), e);
3611
+ }
3612
+ function Js(t, e) {
3613
3613
  if (t != null) {
3614
- if (Pr(t))
3615
- return Ys(t, e);
3616
- if (Er(t))
3617
- return Ws(t, e);
3618
- if (Fr(t))
3619
- return Bs(t, e);
3620
3614
  if (Ir(t))
3621
- return zr(t, e);
3622
- if (kr(t))
3615
+ return Bs(t, e);
3616
+ if (Pr(t))
3623
3617
  return qs(t, e);
3624
- if (Rr(t))
3618
+ if (Fr(t))
3619
+ return Ws(t, e);
3620
+ if (Tr(t))
3621
+ return Ur(t, e);
3622
+ if (Or(t))
3625
3623
  return js(t, e);
3624
+ if (Lr(t))
3625
+ return Ks(t, e);
3626
3626
  }
3627
- throw Tr(t);
3627
+ throw Nr(t);
3628
3628
  }
3629
3629
  function At(t, e) {
3630
- return e ? Ks(t, e) : V(t);
3630
+ return e ? Js(t, e) : V(t);
3631
3631
  }
3632
- function Ft() {
3632
+ function Pt() {
3633
3633
  for (var t = [], e = 0; e < arguments.length; e++)
3634
3634
  t[e] = arguments[e];
3635
3635
  var n = $t(t);
3636
3636
  return At(t, n);
3637
3637
  }
3638
- var Ur = Be(function(t) {
3638
+ var Hr = Be(function(t) {
3639
3639
  return function() {
3640
3640
  t(this), this.name = "EmptyError", this.message = "no elements in sequence";
3641
3641
  };
3642
3642
  });
3643
- function Js(t) {
3643
+ function Zs(t) {
3644
3644
  return t instanceof Date && !isNaN(t);
3645
3645
  }
3646
3646
  function E(t, e) {
@@ -3651,23 +3651,23 @@ function E(t, e) {
3651
3651
  }));
3652
3652
  });
3653
3653
  }
3654
- var Zs = Array.isArray;
3655
- function Qs(t, e) {
3656
- return Zs(e) ? t.apply(void 0, ot([], it(e))) : t(e);
3654
+ var Qs = Array.isArray;
3655
+ function tl(t, e) {
3656
+ return Qs(e) ? t.apply(void 0, it([], rt(e))) : t(e);
3657
3657
  }
3658
- function tl(t) {
3658
+ function el(t) {
3659
3659
  return E(function(e) {
3660
- return Qs(t, e);
3660
+ return tl(t, e);
3661
3661
  });
3662
3662
  }
3663
- var el = Array.isArray, nl = Object.getPrototypeOf, rl = Object.prototype, il = Object.keys;
3664
- function ol(t) {
3663
+ var nl = Array.isArray, rl = Object.getPrototypeOf, il = Object.prototype, ol = Object.keys;
3664
+ function al(t) {
3665
3665
  if (t.length === 1) {
3666
3666
  var e = t[0];
3667
- if (el(e))
3667
+ if (nl(e))
3668
3668
  return { args: e, keys: null };
3669
- if (al(e)) {
3670
- var n = il(e);
3669
+ if (ul(e)) {
3670
+ var n = ol(e);
3671
3671
  return {
3672
3672
  args: n.map(function(r) {
3673
3673
  return e[r];
@@ -3678,10 +3678,10 @@ function ol(t) {
3678
3678
  }
3679
3679
  return { args: t, keys: null };
3680
3680
  }
3681
- function al(t) {
3682
- return t && typeof t == "object" && nl(t) === rl;
3681
+ function ul(t) {
3682
+ return t && typeof t == "object" && rl(t) === il;
3683
3683
  }
3684
- function ul(t, e) {
3684
+ function sl(t, e) {
3685
3685
  return t.reduce(function(n, r, i) {
3686
3686
  return n[r] = e[i], n;
3687
3687
  }, {});
@@ -3689,15 +3689,15 @@ function ul(t, e) {
3689
3689
  function H() {
3690
3690
  for (var t = [], e = 0; e < arguments.length; e++)
3691
3691
  t[e] = arguments[e];
3692
- var n = $t(t), r = Rs(t), i = ol(t), o = i.args, a = i.keys;
3692
+ var n = $t(t), r = Ls(t), i = al(t), o = i.args, a = i.keys;
3693
3693
  if (o.length === 0)
3694
3694
  return At([], n);
3695
- var u = new F(sl(o, n, a ? function(s) {
3696
- return ul(a, s);
3695
+ var u = new P(ll(o, n, a ? function(s) {
3696
+ return sl(a, s);
3697
3697
  } : _t));
3698
- return r ? u.pipe(tl(r)) : u;
3698
+ return r ? u.pipe(el(r)) : u;
3699
3699
  }
3700
- function sl(t, e, n) {
3700
+ function ll(t, e, n) {
3701
3701
  return n === void 0 && (n = _t), function(r) {
3702
3702
  Tn(e, function() {
3703
3703
  for (var i = t.length, o = new Array(i), a = i, u = i, s = function(f) {
@@ -3715,9 +3715,9 @@ function sl(t, e, n) {
3715
3715
  };
3716
3716
  }
3717
3717
  function Tn(t, e, n) {
3718
- t ? rt(n, t, e) : e();
3718
+ t ? nt(n, t, e) : e();
3719
3719
  }
3720
- function ll(t, e, n, r, i, o, a, u) {
3720
+ function cl(t, e, n, r, i, o, a, u) {
3721
3721
  var s = [], l = 0, f = 0, c = !1, h = function() {
3722
3722
  c && !s.length && !l && e.complete();
3723
3723
  }, d = function(p) {
@@ -3749,41 +3749,41 @@ function ll(t, e, n, r, i, o, a, u) {
3749
3749
  })), function() {
3750
3750
  };
3751
3751
  }
3752
- function Hr(t, e, n) {
3753
- return n === void 0 && (n = 1 / 0), P(e) ? Hr(function(r, i) {
3752
+ function Xr(t, e, n) {
3753
+ return n === void 0 && (n = 1 / 0), F(e) ? Xr(function(r, i) {
3754
3754
  return E(function(o, a) {
3755
3755
  return e(r, o, i, a);
3756
3756
  })(V(t(r, i)));
3757
3757
  }, n) : (typeof e == "number" && (n = e), k(function(r, i) {
3758
- return ll(r, i, t, n);
3758
+ return cl(r, i, t, n);
3759
3759
  }));
3760
3760
  }
3761
3761
  function Qe(t) {
3762
- return t === void 0 && (t = 1 / 0), Hr(_t, t);
3762
+ return t === void 0 && (t = 1 / 0), Xr(_t, t);
3763
3763
  }
3764
- function cl() {
3764
+ function fl() {
3765
3765
  return Qe(1);
3766
3766
  }
3767
3767
  function Nn() {
3768
3768
  for (var t = [], e = 0; e < arguments.length; e++)
3769
3769
  t[e] = arguments[e];
3770
- return cl()(At(t, $t(t)));
3770
+ return fl()(At(t, $t(t)));
3771
3771
  }
3772
- function fl(t) {
3773
- return new F(function(e) {
3772
+ function hl(t) {
3773
+ return new P(function(e) {
3774
3774
  V(t()).subscribe(e);
3775
3775
  });
3776
3776
  }
3777
- function hl(t, e, n) {
3778
- return fl(function() {
3777
+ function dl(t, e, n) {
3778
+ return hl(function() {
3779
3779
  return t() ? e : n;
3780
3780
  });
3781
3781
  }
3782
- function dl(t, e, n) {
3783
- n === void 0 && (n = Os);
3782
+ function pl(t, e, n) {
3783
+ n === void 0 && (n = Rs);
3784
3784
  var r = -1;
3785
- return e != null && (Mr(e) ? n = e : r = e), new F(function(i) {
3786
- var o = Js(t) ? +t - n.now() : t;
3785
+ return e != null && (Cr(e) ? n = e : r = e), new P(function(i) {
3786
+ var o = Zs(t) ? +t - n.now() : t;
3787
3787
  o < 0 && (o = 0);
3788
3788
  var a = 0;
3789
3789
  return n.schedule(function() {
@@ -3791,15 +3791,15 @@ function dl(t, e, n) {
3791
3791
  }, o);
3792
3792
  });
3793
3793
  }
3794
- function pl() {
3794
+ function ml() {
3795
3795
  for (var t = [], e = 0; e < arguments.length; e++)
3796
3796
  t[e] = arguments[e];
3797
- var n = $t(t), r = Cr(t, 1 / 0), i = t;
3797
+ var n = $t(t), r = Er(t, 1 / 0), i = t;
3798
3798
  return i.length ? i.length === 1 ? V(i[0]) : Qe(r)(At(i, n)) : Je;
3799
3799
  }
3800
- var ml = Array.isArray;
3801
- function gl(t) {
3802
- return t.length === 1 && ml(t[0]) ? t[0] : t;
3800
+ var gl = Array.isArray;
3801
+ function vl(t) {
3802
+ return t.length === 1 && gl(t[0]) ? t[0] : t;
3803
3803
  }
3804
3804
  function kn(t, e) {
3805
3805
  return k(function(n, r) {
@@ -3809,15 +3809,15 @@ function kn(t, e) {
3809
3809
  }));
3810
3810
  });
3811
3811
  }
3812
- function Xr(t) {
3812
+ function Yr(t) {
3813
3813
  return k(function(e, n) {
3814
3814
  var r = null, i = !1, o;
3815
3815
  r = e.subscribe(N(n, void 0, void 0, function(a) {
3816
- o = V(t(a, Xr(t)(e))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
3816
+ o = V(t(a, Yr(t)(e))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
3817
3817
  })), i && (r.unsubscribe(), r = null, o.subscribe(n));
3818
3818
  });
3819
3819
  }
3820
- function vl(t, e) {
3820
+ function yl(t, e) {
3821
3821
  return e === void 0 && (e = Ke), k(function(n, r) {
3822
3822
  var i = null, o = null, a = null, u = function() {
3823
3823
  if (i) {
@@ -3843,7 +3843,7 @@ function vl(t, e) {
3843
3843
  }));
3844
3844
  });
3845
3845
  }
3846
- function yl(t) {
3846
+ function wl(t) {
3847
3847
  return k(function(e, n) {
3848
3848
  var r = !1;
3849
3849
  e.subscribe(N(n, function(i) {
@@ -3853,7 +3853,7 @@ function yl(t) {
3853
3853
  }));
3854
3854
  });
3855
3855
  }
3856
- function wl(t) {
3856
+ function xl(t) {
3857
3857
  return t <= 0 ? function() {
3858
3858
  return Je;
3859
3859
  } : k(function(e, n) {
@@ -3864,7 +3864,7 @@ function wl(t) {
3864
3864
  });
3865
3865
  }
3866
3866
  function pe(t, e) {
3867
- return e === void 0 && (e = _t), t = t ?? xl, k(function(n, r) {
3867
+ return e === void 0 && (e = _t), t = t ?? bl, k(function(n, r) {
3868
3868
  var i, o = !0;
3869
3869
  n.subscribe(N(r, function(a) {
3870
3870
  var u = e(a);
@@ -3872,11 +3872,11 @@ function pe(t, e) {
3872
3872
  }));
3873
3873
  });
3874
3874
  }
3875
- function xl(t, e) {
3875
+ function bl(t, e) {
3876
3876
  return t === e;
3877
3877
  }
3878
- function bl(t) {
3879
- return t === void 0 && (t = _l), k(function(e, n) {
3878
+ function _l(t) {
3879
+ return t === void 0 && (t = $l), k(function(e, n) {
3880
3880
  var r = !1;
3881
3881
  e.subscribe(N(n, function(i) {
3882
3882
  r = !0, n.next(i);
@@ -3885,29 +3885,29 @@ function bl(t) {
3885
3885
  }));
3886
3886
  });
3887
3887
  }
3888
- function _l() {
3889
- return new Ur();
3888
+ function $l() {
3889
+ return new Hr();
3890
3890
  }
3891
- function $l(t, e) {
3891
+ function Al(t, e) {
3892
3892
  var n = arguments.length >= 2;
3893
3893
  return function(r) {
3894
- return r.pipe(_t, wl(1), n ? yl(e) : bl(function() {
3895
- return new Ur();
3894
+ return r.pipe(_t, xl(1), n ? wl(e) : _l(function() {
3895
+ return new Hr();
3896
3896
  }));
3897
3897
  };
3898
3898
  }
3899
- function Al() {
3899
+ function Dl() {
3900
3900
  for (var t = [], e = 0; e < arguments.length; e++)
3901
3901
  t[e] = arguments[e];
3902
- var n = $t(t), r = Cr(t, 1 / 0);
3903
- return t = gl(t), k(function(i, o) {
3904
- Qe(r)(At(ot([i], it(t)), n)).subscribe(o);
3902
+ var n = $t(t), r = Er(t, 1 / 0);
3903
+ return t = vl(t), k(function(i, o) {
3904
+ Qe(r)(At(it([i], rt(t)), n)).subscribe(o);
3905
3905
  });
3906
3906
  }
3907
- function Dl() {
3907
+ function Sl() {
3908
3908
  for (var t = [], e = 0; e < arguments.length; e++)
3909
3909
  t[e] = arguments[e];
3910
- return Al.apply(void 0, ot([], it(t)));
3910
+ return Dl.apply(void 0, it([], rt(t)));
3911
3911
  }
3912
3912
  function Te(t) {
3913
3913
  t === void 0 && (t = {});
@@ -3929,11 +3929,11 @@ function Te(t) {
3929
3929
  b.add(function() {
3930
3930
  d--, d === 0 && !p && !m && (c = we($, s));
3931
3931
  }), y.subscribe(b), !f && d > 0 && (f = new Nt({
3932
- next: function(S) {
3933
- return y.next(S);
3932
+ next: function(D) {
3933
+ return y.next(D);
3934
3934
  },
3935
- error: function(S) {
3936
- p = !0, g(), c = we(_, i, S), y.error(S);
3935
+ error: function(D) {
3936
+ p = !0, g(), c = we(_, i, D), y.error(D);
3937
3937
  },
3938
3938
  complete: function() {
3939
3939
  m = !0, g(), c = we(_, a), y.complete();
@@ -3955,14 +3955,14 @@ function we(t, e) {
3955
3955
  i.unsubscribe(), t();
3956
3956
  }
3957
3957
  });
3958
- return V(e.apply(void 0, ot([], it(n)))).subscribe(i);
3958
+ return V(e.apply(void 0, it([], rt(n)))).subscribe(i);
3959
3959
  }
3960
3960
  }
3961
- function D(t, e, n) {
3961
+ function A(t, e, n) {
3962
3962
  var r, i = !1;
3963
3963
  return r = t, Te({
3964
3964
  connector: function() {
3965
- return new Is(r, e, n);
3965
+ return new Ts(r, e, n);
3966
3966
  },
3967
3967
  resetOnError: !0,
3968
3968
  resetOnComplete: !1,
@@ -3999,10 +3999,10 @@ function T(t) {
3999
3999
  return k(function(e, n) {
4000
4000
  V(t).subscribe(N(n, function() {
4001
4001
  return n.complete();
4002
- }, Pe)), !n.closed && e.subscribe(n);
4002
+ }, Fe)), !n.closed && e.subscribe(n);
4003
4003
  });
4004
4004
  }
4005
- function Sl(t, e) {
4005
+ function Ml(t, e) {
4006
4006
  return k(function(n, r) {
4007
4007
  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() {
4008
4008
  c == null || c.unsubscribe(), c = null, s && (g(), h && r.complete());
@@ -4024,10 +4024,10 @@ function Sl(t, e) {
4024
4024
  }));
4025
4025
  });
4026
4026
  }
4027
- function Ml(t, e, n) {
4027
+ function Cl(t, e, n) {
4028
4028
  e === void 0 && (e = Ke);
4029
- var r = dl(t, e);
4030
- return Sl(function() {
4029
+ var r = pl(t, e);
4030
+ return Ml(function() {
4031
4031
  return r;
4032
4032
  }, n);
4033
4033
  }
@@ -4088,8 +4088,8 @@ const tn = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4088
4088
  }
4089
4089
  return m;
4090
4090
  };
4091
- return new F((s) => (H({
4092
- target: pl(o, a, i),
4091
+ return new P((s) => (H({
4092
+ target: ml(o, a, i),
4093
4093
  datumList: t,
4094
4094
  fullChartParams: e
4095
4095
  }).pipe(
@@ -4115,7 +4115,7 @@ const tn = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4115
4115
  i.push(r), n.set(r.seriesLabel, i);
4116
4116
  }), n;
4117
4117
  })
4118
- ), Yr = ({ datumList$: t }) => t.pipe(
4118
+ ), Br = ({ datumList$: t }) => t.pipe(
4119
4119
  E((e) => {
4120
4120
  const n = /* @__PURE__ */ new Map();
4121
4121
  return e.forEach((r) => {
@@ -4123,17 +4123,17 @@ const tn = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4123
4123
  i.push(r), n.set(r.groupLabel, i);
4124
4124
  }), n;
4125
4125
  })
4126
- ), Cl = ({ subject: t, observer: e }) => {
4126
+ ), El = ({ subject: t, observer: e }) => {
4127
4127
  const n = tn({
4128
4128
  datumList$: e.computedData$,
4129
4129
  fullChartParams$: e.fullChartParams$,
4130
4130
  event$: t.event$
4131
4131
  }).pipe(
4132
- D(1)
4132
+ A(1)
4133
4133
  ), r = en({
4134
4134
  datumList$: e.computedData$
4135
4135
  }).pipe(
4136
- D(1)
4136
+ A(1)
4137
4137
  );
4138
4138
  return {
4139
4139
  fullParams$: e.fullParams$,
@@ -4153,14 +4153,14 @@ const tn = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4153
4153
  }) => {
4154
4154
  const o = r[0] ?? Z.scaleDomain[0], a = r[1] ?? Z.scaleDomain[1], u = i[0] ?? Z.scaleRange[0], s = i[1] ?? Z.scaleRange[1], l = o === "auto" ? e : o, f = a === "auto" ? t : a;
4155
4155
  let c = n * u, h = n * s;
4156
- return yr().domain([l, f]).range([c, h]);
4157
- }, Jl = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4156
+ return wr().domain([l, f]).range([c, h]);
4157
+ }, Zl = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4158
4158
  let r = [0, e];
4159
- return rs().domain(t).range(r).padding(n);
4160
- }, Zl = ({ axisLabels: t, axisWidth: e, padding: n = 0.5, reverse: r = !1 }) => {
4159
+ return is().domain(t).range(r).padding(n);
4160
+ }, Ql = ({ axisLabels: t, axisWidth: e, padding: n = 0.5, reverse: r = !1 }) => {
4161
4161
  let o = t.map((a, u) => u);
4162
- return r && o.reverse(), wr().domain([-0, e + 0]).range(o);
4163
- }, El = {
4162
+ return r && o.reverse(), xr().domain([-0, e + 0]).range(o);
4163
+ }, Pl = {
4164
4164
  series: !1,
4165
4165
  grid: !0,
4166
4166
  multiGrid: !0,
@@ -4169,7 +4169,7 @@ const tn = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4169
4169
  relationship: !1
4170
4170
  };
4171
4171
  function Fl(t) {
4172
- return new F((e) => {
4172
+ return new P((e) => {
4173
4173
  const n = new ResizeObserver((r) => {
4174
4174
  const i = r[0];
4175
4175
  i && i.contentRect && e.next(i.contentRect);
@@ -4179,7 +4179,11 @@ function Fl(t) {
4179
4179
  };
4180
4180
  });
4181
4181
  }
4182
- const Pl = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }) => {
4182
+ function On(t, e, n) {
4183
+ const r = st(t, e);
4184
+ return n === "multiGrid" && t.gridList != null && (r.gridList = t.gridList.map((i) => st(i, e.gridList[0]))), r;
4185
+ }
4186
+ const Il = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }) => {
4183
4187
  const r = new C(), i = t.type;
4184
4188
  return function(a, u) {
4185
4189
  Vt(a).selectAll("svg").remove();
@@ -4196,34 +4200,31 @@ const Pl = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4196
4200
  chartParams$: new C(),
4197
4201
  event$: new C()
4198
4202
  }, h = ((w) => {
4199
- const A = w || ni, M = A.preset ? A.preset : {};
4203
+ const S = w || ri, M = S.preset ? S.preset : {};
4200
4204
  return {
4201
- chartParams: M.chartParams ? nt(M.chartParams, nn) : nn,
4202
- dataFormatter: M.dataFormatter ? nt(M.dataFormatter, t) : t,
4205
+ chartParams: M.chartParams ? st(M.chartParams, nn) : nn,
4206
+ dataFormatter: M.dataFormatter ? On(M.dataFormatter, t, i) : t,
4203
4207
  allPluginParams: M.allPluginParams ? M.allPluginParams : {},
4204
4208
  description: M.description ?? ""
4205
4209
  };
4206
- })(u), d = c.data$.pipe(D(1)), m = c.dataFormatter$.pipe(
4210
+ })(u), d = c.data$.pipe(A(1)), m = c.dataFormatter$.pipe(
4207
4211
  T(r),
4208
4212
  Kt({}),
4209
- E((w) => {
4210
- const A = nt(w, h.dataFormatter);
4211
- return i === "multiGrid" && w.gridList != null && (A.gridList = w.gridList.map((M) => nt(M, h.dataFormatter.gridList[0]))), A;
4212
- }),
4213
- D(1)
4213
+ E((w) => On(w, h.dataFormatter, i)),
4214
+ A(1)
4214
4215
  ), p = c.chartParams$.pipe(
4215
4216
  T(r),
4216
4217
  Kt({}),
4217
- E((w) => nt(w, h.chartParams)),
4218
- D(1)
4218
+ E((w) => st(w, h.chartParams)),
4219
+ A(1)
4219
4220
  ), g = p.pipe(
4220
4221
  T(r),
4221
4222
  Kt({}),
4222
- E((w) => nt(w.padding ?? {}, On))
4223
+ E((w) => st(w.padding ?? {}, Rn))
4223
4224
  );
4224
4225
  g.pipe(
4225
4226
  T(r),
4226
- $l()
4227
+ Al()
4227
4228
  ).subscribe((w) => {
4228
4229
  l.attr("transform", `translate(${w.left}, ${w.top})`);
4229
4230
  }), g.subscribe((w) => {
@@ -4232,16 +4233,16 @@ const Pl = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4232
4233
  const _ = Fl(a).pipe(
4233
4234
  T(r),
4234
4235
  Te()
4235
- ), $ = Ft().pipe(
4236
- Dl(
4236
+ ), $ = Pt().pipe(
4237
+ Sl(
4237
4238
  _.pipe(
4238
- vl(250)
4239
+ yl(250)
4239
4240
  ),
4240
4241
  _.pipe(
4241
- Ml(250)
4242
+ Cl(250)
4242
4243
  )
4243
4244
  ),
4244
- pe((w, A) => JSON.stringify(w) === JSON.stringify(A)),
4245
+ pe((w, S) => JSON.stringify(w) === JSON.stringify(S)),
4245
4246
  Te()
4246
4247
  ), v = $.subscribe(), b = H({
4247
4248
  rootSize: $,
@@ -4249,19 +4250,19 @@ const Pl = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4249
4250
  }).pipe(
4250
4251
  T(r),
4251
4252
  U(async (w) => {
4252
- const A = w.rootSize.width > 0 ? w.rootSize.width : ri, M = w.rootSize.height > 0 ? w.rootSize.height : ii;
4253
+ const S = w.rootSize.width > 0 ? w.rootSize.width : ii, M = w.rootSize.height > 0 ? w.rootSize.height : oi;
4253
4254
  return {
4254
- width: A - w.mergedPadding.left - w.mergedPadding.right,
4255
+ width: S - w.mergedPadding.left - w.mergedPadding.right,
4255
4256
  height: M - w.mergedPadding.top - w.mergedPadding.bottom,
4256
4257
  top: w.mergedPadding.top,
4257
4258
  right: w.mergedPadding.right,
4258
4259
  bottom: w.mergedPadding.bottom,
4259
4260
  left: w.mergedPadding.left,
4260
- rootWidth: A,
4261
+ rootWidth: S,
4261
4262
  rootHeight: M
4262
4263
  };
4263
4264
  }),
4264
- D(1)
4265
+ A(1)
4265
4266
  );
4266
4267
  b.subscribe((w) => {
4267
4268
  s.attr("width", w.rootWidth).attr("height", w.rootHeight);
@@ -4270,33 +4271,33 @@ const Pl = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4270
4271
  data: d,
4271
4272
  dataFormatter: m,
4272
4273
  chartParams: p,
4273
- layout: hl(() => El[i] === !0, b, Ft(void 0))
4274
+ layout: dl(() => Pl[i] === !0, b, Pt(void 0))
4274
4275
  }).pipe(
4275
4276
  T(r),
4276
4277
  U(async (w) => w),
4277
- U((w) => Ft(w).pipe(
4278
- E((A) => {
4278
+ U((w) => Pt(w).pipe(
4279
+ E((S) => {
4279
4280
  try {
4280
- return e({ data: A.data, dataFormatter: A.dataFormatter, chartParams: A.chartParams, layout: A.layout });
4281
+ return e({ data: S.data, dataFormatter: S.dataFormatter, chartParams: S.chartParams, layout: S.layout });
4281
4282
  } catch (M) {
4282
4283
  throw console.error(M), new Error(M);
4283
4284
  }
4284
4285
  }),
4285
- Xr(() => Je)
4286
+ Yr(() => Je)
4286
4287
  )),
4287
- D(1)
4288
+ A(1)
4288
4289
  );
4289
4290
  y.subscribe();
4290
- const S = {};
4291
+ const D = {};
4291
4292
  return c.plugins$.subscribe((w) => {
4292
4293
  if (!w)
4293
4294
  return;
4294
- const A = f.selectAll("g.orbcharts__plugin").data(w, (x) => x.name), M = A.enter().append("g").attr("class", (x) => `orbcharts__plugin orbcharts__${x.name}`);
4295
- A.exit().remove().each((x, R, I) => {
4296
- S[x.name] && S[x.name].destroy();
4295
+ const S = f.selectAll("g.orbcharts__plugin").data(w, (x) => x.name), M = S.enter().append("g").attr("class", (x) => `orbcharts__plugin orbcharts__${x.name}`);
4296
+ S.exit().remove().each((x, R, I) => {
4297
+ D[x.name] && D[x.name].destroy();
4297
4298
  }), M.each((x, R, I) => {
4298
4299
  const q = {
4299
- fullParams$: new F(),
4300
+ fullParams$: new P(),
4300
4301
  fullChartParams$: p,
4301
4302
  fullDataFormatter$: m,
4302
4303
  computedData$: y,
@@ -4312,7 +4313,7 @@ const Pl = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4312
4313
  subject: c,
4313
4314
  observer: ht
4314
4315
  };
4315
- x.setPresetParams(h.allPluginParams[x.name] ?? {}), x.setContext(j), S[j.name] = x, x.init();
4316
+ x.setPresetParams(h.allPluginParams[x.name] ?? {}), x.setContext(j), D[j.name] = x, x.init();
4316
4317
  });
4317
4318
  }), {
4318
4319
  ...c,
@@ -4326,24 +4327,24 @@ const Pl = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4326
4327
  class Dt {
4327
4328
  constructor({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r }, i, o) {
4328
4329
  this.data$ = new C(), this.dataFormatter$ = new C(), this.plugins$ = new C(), this.chartParams$ = new C(), this.event$ = new C();
4329
- const u = Pl({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r })(i, o);
4330
+ const u = Il({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r })(i, o);
4330
4331
  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$;
4331
4332
  }
4332
4333
  }
4333
- class Ql extends Dt {
4334
+ class tc extends Dt {
4334
4335
  constructor(e, n) {
4335
4336
  super(
4336
4337
  {
4337
- defaultDataFormatter: ai,
4338
- computedDataFn: ys,
4339
- contextObserverFn: Cl
4338
+ defaultDataFormatter: ui,
4339
+ computedDataFn: ws,
4340
+ contextObserverFn: El
4340
4341
  },
4341
4342
  e,
4342
4343
  n
4343
4344
  );
4344
4345
  }
4345
4346
  }
4346
- const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4347
+ const Tl = (t) => Wr(t, "grid", 0), Wr = (t, e, n = 0) => {
4347
4348
  const { data: r = [], dataFormatter: i, chartParams: o, layout: a } = t;
4348
4349
  if (!r.length)
4349
4350
  return [];
@@ -4357,7 +4358,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4357
4358
  b[y] = null;
4358
4359
  return b;
4359
4360
  }).map(($, v) => $.map((b, y) => {
4360
- const S = i.grid.visibleFilter(b, v, y, t);
4361
+ const D = i.grid.visibleFilter(b, v, y, t);
4361
4362
  return b == null ? {
4362
4363
  id: "",
4363
4364
  label: "",
@@ -4365,7 +4366,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4365
4366
  data: {},
4366
4367
  value: null,
4367
4368
  // _color,
4368
- _visible: S
4369
+ _visible: D
4369
4370
  } : typeof b == "number" ? {
4370
4371
  id: "",
4371
4372
  label: "",
@@ -4373,7 +4374,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4373
4374
  data: {},
4374
4375
  value: b,
4375
4376
  // _color,
4376
- _visible: S
4377
+ _visible: D
4377
4378
  } : {
4378
4379
  id: b.id ?? "",
4379
4380
  label: b.label ?? "",
@@ -4381,9 +4382,9 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4381
4382
  data: b.data ?? {},
4382
4383
  value: b.value,
4383
4384
  // _color,
4384
- _visible: S
4385
+ _visible: D
4385
4386
  };
4386
- })), c = gs(i.grid.gridData.seriesDirection, f), { groupScale: h } = (() => {
4387
+ })), c = vs(i.grid.gridData.seriesDirection, f), { groupScale: h } = (() => {
4387
4388
  const $ = i.grid.groupAxis.position === "top" || i.grid.groupAxis.position === "bottom" ? a.width : a.height, v = c[0] ? c[0].length - 1 : 0;
4388
4389
  return { groupScale: bt({
4389
4390
  maxValue: v,
@@ -4394,9 +4395,9 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4394
4395
  scaleRange: [0, 1]
4395
4396
  // 不使用dataFormatter設定
4396
4397
  }) };
4397
- })(), d = ps({ transposedDataGrid: c, dataFormatter: i, chartType: e, gridIndex: n }), m = ms({ transposedDataGrid: c, dataFormatter: i, chartType: e, gridIndex: n }), p = (() => {
4398
- const $ = i.grid.valueAxis.position === "left" || i.grid.valueAxis.position === "right" ? a.height : a.width, v = c.flat().filter((S) => S._visible != !1), [b, y] = Ee(v);
4399
- return c.map((S, w) => bt({
4398
+ })(), d = ms({ transposedDataGrid: c, dataFormatter: i, chartType: e, gridIndex: n }), m = gs({ transposedDataGrid: c, dataFormatter: i, chartType: e, gridIndex: n }), p = (() => {
4399
+ const $ = i.grid.valueAxis.position === "left" || i.grid.valueAxis.position === "right" ? a.height : a.width, v = c.flat().filter((D) => D._visible != !1), [b, y] = Ee(v);
4400
+ return c.map((D, w) => bt({
4400
4401
  maxValue: y,
4401
4402
  minValue: b,
4402
4403
  axisWidth: $,
@@ -4408,10 +4409,10 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4408
4409
  })(), g = c.map(($, v) => p[v](0));
4409
4410
  let _ = 0;
4410
4411
  u = c.map(($, v) => $.map((b, y) => {
4411
- const S = Xe(e, n, v, y), w = m[y], A = p[v], M = A(b.value ?? 0), W = g[v], x = {
4412
- id: b.id ? b.id : S,
4412
+ const D = Xe(e, n, v, y), w = m[y], S = p[v], M = S(b.value ?? 0), W = g[v], x = {
4413
+ id: b.id ? b.id : D,
4413
4414
  index: _,
4414
- label: b.label ? b.label : S,
4415
+ label: b.label ? b.label : D,
4415
4416
  description: b.description ?? "",
4416
4417
  // tooltipContent: groupDatum.tooltipContent ? groupDatum.tooltipContent : dataFormatter.tooltipContentFormat(groupDatum, seriesIndex, groupIndex, context),
4417
4418
  data: b.data,
@@ -4438,7 +4439,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4438
4439
  throw Error(s);
4439
4440
  }
4440
4441
  return u;
4441
- }, Wr = ({ fullDataFormatter$: t, layout$: e }) => {
4442
+ }, qr = ({ fullDataFormatter$: t, layout$: e }) => {
4442
4443
  const n = new C();
4443
4444
  function r({ xAxis: i, yAxis: o, width: a, height: u }) {
4444
4445
  if (!i || !o)
@@ -4460,7 +4461,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4460
4461
  value: `translate(${s}px, ${l}px) rotate(${f}deg) rotateX(${c}deg) rotateY(${h}deg)`
4461
4462
  };
4462
4463
  }
4463
- return new F((i) => (H({
4464
+ return new P((i) => (H({
4464
4465
  fullDataFormatter: t,
4465
4466
  layout: e
4466
4467
  }).pipe(
@@ -4477,7 +4478,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4477
4478
  }), function() {
4478
4479
  n.next(void 0);
4479
4480
  }));
4480
- }, qr = ({ gridAxesTransform$: t }) => t.pipe(
4481
+ }, jr = ({ gridAxesTransform$: t }) => t.pipe(
4481
4482
  E((e) => {
4482
4483
  const n = [0, 0], r = [1 / e.scale[0], 1 / e.scale[1]], i = e.rotate * -1, o = e.rotateX * -1, a = e.rotateY * -1;
4483
4484
  return {
@@ -4489,7 +4490,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4489
4490
  value: `translate(${n[0]}px, ${n[1]}px) rotate(${i}deg) rotateX(${o}deg) rotateY(${a}deg)`
4490
4491
  };
4491
4492
  })
4492
- ), jr = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => {
4493
+ ), Kr = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => {
4493
4494
  const r = new C();
4494
4495
  function i({ data: o, groupAxis: a, valueAxis: u, width: s, height: l }) {
4495
4496
  let f = 0, c = 0, h = 0, d = 0;
@@ -4502,9 +4503,9 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4502
4503
  scaleRange: [0, 1]
4503
4504
  }), b = v(p), y = v(g);
4504
4505
  f = b, h = (y - b) / m;
4505
- const w = o.map((ht, dt) => ht.filter((j, at) => at >= _ && at <= $ && j.visible == !0)), A = Cn(w), M = u.position === "left" || u.position === "right" ? l : s, W = bt({
4506
- maxValue: A[1],
4507
- minValue: A[0],
4506
+ const w = o.map((ht, dt) => ht.filter((j, ot) => ot >= _ && ot <= $ && j.visible == !0)), S = Cn(w), M = u.position === "left" || u.position === "right" ? l : s, W = bt({
4507
+ maxValue: S[1],
4508
+ minValue: S[0],
4508
4509
  axisWidth: M,
4509
4510
  scaleDomain: u.scaleDomain,
4510
4511
  scaleRange: u.scaleRange
@@ -4518,7 +4519,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4518
4519
  value: `translate(${f}px, ${c}px) scale(${h}, ${d})`
4519
4520
  };
4520
4521
  }
4521
- return new F((o) => (H({
4522
+ return new P((o) => (H({
4522
4523
  computedData: t,
4523
4524
  fullDataFormatter: e,
4524
4525
  layout: n
@@ -4537,7 +4538,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4537
4538
  }), function() {
4538
4539
  r.next(void 0);
4539
4540
  }));
4540
- }, Kr = ({ gridContainer$: t, gridAxesTransform$: e, gridGraphicTransform$: n }) => H({
4541
+ }, Jr = ({ gridContainer$: t, gridAxesTransform$: e, gridGraphicTransform$: n }) => H({
4541
4542
  gridContainer: t,
4542
4543
  gridAxesTransform: e,
4543
4544
  gridGraphicTransform: n
@@ -4550,7 +4551,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4550
4551
  1 / r.gridGraphicTransform.scale[0] / r.gridContainer[o].scale[1],
4551
4552
  1 / r.gridGraphicTransform.scale[1] / r.gridContainer[o].scale[0]
4552
4553
  ]))
4553
- ), Jr = ({ fullDataFormatter$: t, layout$: e }) => {
4554
+ ), Zr = ({ fullDataFormatter$: t, layout$: e }) => {
4554
4555
  const n = new C();
4555
4556
  function r({ xAxisPosition: i, yAxisPosition: o, width: a, height: u }) {
4556
4557
  if ((i === "bottom" || i === "top") && (o === "left" || o === "right"))
@@ -4561,7 +4562,7 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4561
4562
  height: a
4562
4563
  };
4563
4564
  }
4564
- return new F((i) => {
4565
+ return new P((i) => {
4565
4566
  H({
4566
4567
  fullDataFormatter: t,
4567
4568
  layout: e
@@ -4580,18 +4581,18 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4580
4581
  };
4581
4582
  });
4582
4583
  });
4583
- }, Zr = ({ computedData$: t }) => t.pipe(
4584
+ }, Qr = ({ computedData$: t }) => t.pipe(
4584
4585
  E((e) => e.filter((n) => n.length).map((n) => n[0].seriesLabel)),
4585
4586
  pe((e, n) => JSON.stringify(e).length === JSON.stringify(n).length)
4586
- ), Qr = ({ computedData$: t }) => t.pipe(
4587
+ ), ti = ({ computedData$: t }) => t.pipe(
4587
4588
  E((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4588
- ), ti = ({ computedData$: t, fullDataFormatter$: e }) => H({
4589
+ ), ei = ({ computedData$: t, fullDataFormatter$: e }) => H({
4589
4590
  computedData: t,
4590
4591
  fullDataFormatter: e
4591
4592
  }).pipe(
4592
4593
  E((n) => !!(n.fullDataFormatter.grid.seriesSlotIndexes && n.fullDataFormatter.grid.seriesSlotIndexes.length === n.computedData.length)),
4593
4594
  pe()
4594
- ), ei = ({ computedData$: t, fullDataFormatter$: e, fullChartParams$: n, layout$: r }) => H({
4595
+ ), ni = ({ computedData$: t, fullDataFormatter$: e, fullChartParams$: n, layout$: r }) => H({
4595
4596
  computedData: t,
4596
4597
  fullDataFormatter: e,
4597
4598
  fullChartParams: n,
@@ -4625,65 +4626,65 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4625
4626
  });
4626
4627
  }
4627
4628
  })
4628
- ), Tl = ({ subject: t, observer: e }) => {
4629
- const n = ti({
4629
+ ), Nl = ({ subject: t, observer: e }) => {
4630
+ const n = ei({
4630
4631
  computedData$: e.computedData$,
4631
4632
  fullDataFormatter$: e.fullDataFormatter$
4632
4633
  }).pipe(
4633
- D(1)
4634
- ), r = ei({
4634
+ A(1)
4635
+ ), r = ni({
4635
4636
  computedData$: e.computedData$,
4636
4637
  fullDataFormatter$: e.fullDataFormatter$,
4637
4638
  fullChartParams$: e.fullChartParams$,
4638
4639
  layout$: e.layout$
4639
- }), i = Wr({
4640
+ }), i = qr({
4640
4641
  fullDataFormatter$: e.fullDataFormatter$,
4641
4642
  layout$: e.layout$
4642
4643
  }).pipe(
4643
- D(1)
4644
- ), o = qr({
4644
+ A(1)
4645
+ ), o = jr({
4645
4646
  gridAxesTransform$: i
4646
4647
  }).pipe(
4647
- D(1)
4648
- ), a = jr({
4648
+ A(1)
4649
+ ), a = Kr({
4649
4650
  computedData$: e.computedData$,
4650
4651
  fullDataFormatter$: e.fullDataFormatter$,
4651
4652
  layout$: e.layout$
4652
4653
  }).pipe(
4653
- D(1)
4654
- ), u = Kr({
4654
+ A(1)
4655
+ ), u = Jr({
4655
4656
  gridContainer$: r,
4656
4657
  gridAxesTransform$: i,
4657
4658
  gridGraphicTransform$: a
4658
- }), s = Jr({
4659
+ }), s = Zr({
4659
4660
  fullDataFormatter$: e.fullDataFormatter$,
4660
4661
  layout$: e.layout$
4661
4662
  }).pipe(
4662
- D(1)
4663
+ A(1)
4663
4664
  ), l = e.computedData$.pipe(
4664
4665
  E((p) => p.flat())
4665
4666
  ).pipe(
4666
- D(1)
4667
+ A(1)
4667
4668
  ), f = tn({
4668
4669
  datumList$: l,
4669
4670
  fullChartParams$: e.fullChartParams$,
4670
4671
  event$: t.event$
4671
4672
  }).pipe(
4672
- D(1)
4673
- ), c = Zr({
4673
+ A(1)
4674
+ ), c = Qr({
4674
4675
  computedData$: e.computedData$
4675
4676
  }), h = en({
4676
4677
  datumList$: l
4677
4678
  }).pipe(
4678
- D(1)
4679
- ), d = Yr({
4679
+ A(1)
4680
+ ), d = Br({
4680
4681
  datumList$: l
4681
4682
  }).pipe(
4682
- D(1)
4683
- ), m = Qr({
4683
+ A(1)
4684
+ ), m = ti({
4684
4685
  computedData$: e.computedData$
4685
4686
  }).pipe(
4686
- D(1)
4687
+ A(1)
4687
4688
  );
4688
4689
  return {
4689
4690
  fullParams$: e.fullParams$,
@@ -4705,20 +4706,20 @@ const Il = (t) => Br(t, "grid", 0), Br = (t, e, n = 0) => {
4705
4706
  visibleComputedData$: m
4706
4707
  };
4707
4708
  };
4708
- class tc extends Dt {
4709
+ class ec extends Dt {
4709
4710
  constructor(e, n) {
4710
4711
  super(
4711
4712
  {
4712
- defaultDataFormatter: ui,
4713
- computedDataFn: Il,
4714
- contextObserverFn: Tl
4713
+ defaultDataFormatter: si,
4714
+ computedDataFn: Tl,
4715
+ contextObserverFn: Nl
4715
4716
  },
4716
4717
  e,
4717
4718
  n
4718
4719
  );
4719
4720
  }
4720
4721
  }
4721
- const Nl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4722
+ const kl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4722
4723
  if (!t.length)
4723
4724
  return [];
4724
4725
  let i = [];
@@ -4726,7 +4727,7 @@ const Nl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4726
4727
  const o = e.gridList[0] || le;
4727
4728
  i = t.map((u, s) => {
4728
4729
  const l = e.gridList[s] || o;
4729
- return Br(
4730
+ return Wr(
4730
4731
  {
4731
4732
  data: u,
4732
4733
  dataFormatter: {
@@ -4751,68 +4752,68 @@ const Nl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4751
4752
  throw Error(o);
4752
4753
  }
4753
4754
  return i;
4754
- }, kl = ({ fullDataFormatter$: t, computedData$: e, layout$: n, fullChartParams$: r, event$: i }) => {
4755
+ }, Ol = ({ fullDataFormatter$: t, computedData$: e, layout$: n, fullChartParams$: r, event$: i }) => {
4755
4756
  function o({ gridDataFormatter$: u, gridComputedData$: s, layout$: l, fullChartParams$: f, event$: c }) {
4756
- const h = ti({
4757
+ const h = ei({
4757
4758
  computedData$: s,
4758
4759
  fullDataFormatter$: u
4759
4760
  }).pipe(
4760
- D(1)
4761
- ), d = ei({
4761
+ A(1)
4762
+ ), d = ni({
4762
4763
  computedData$: s,
4763
4764
  fullDataFormatter$: u,
4764
4765
  fullChartParams$: f,
4765
4766
  layout$: l
4766
4767
  }).pipe(
4767
- D(1)
4768
- ), m = Wr({
4768
+ A(1)
4769
+ ), m = qr({
4769
4770
  fullDataFormatter$: u,
4770
4771
  layout$: l
4771
4772
  }).pipe(
4772
- D(1)
4773
- ), p = qr({
4773
+ A(1)
4774
+ ), p = jr({
4774
4775
  gridAxesTransform$: m
4775
4776
  }).pipe(
4776
- D(1)
4777
- ), g = jr({
4777
+ A(1)
4778
+ ), g = Kr({
4778
4779
  computedData$: s,
4779
4780
  fullDataFormatter$: u,
4780
4781
  layout$: l
4781
4782
  }).pipe(
4782
- D(1)
4783
- ), _ = Kr({
4783
+ A(1)
4784
+ ), _ = Jr({
4784
4785
  gridContainer$: d,
4785
4786
  gridAxesTransform$: m,
4786
4787
  gridGraphicTransform$: g
4787
- }), $ = Jr({
4788
+ }), $ = Zr({
4788
4789
  fullDataFormatter$: u,
4789
4790
  layout$: l
4790
4791
  }).pipe(
4791
- D(1)
4792
+ A(1)
4792
4793
  ), v = s.pipe(
4793
4794
  E((M) => M.flat())
4794
4795
  ).pipe(
4795
- D(1)
4796
+ A(1)
4796
4797
  ), b = tn({
4797
4798
  datumList$: v,
4798
4799
  fullChartParams$: f,
4799
4800
  event$: c
4800
4801
  }).pipe(
4801
- D(1)
4802
- ), y = Zr({
4802
+ A(1)
4803
+ ), y = Qr({
4803
4804
  computedData$: s
4804
- }), S = en({
4805
+ }), D = en({
4805
4806
  datumList$: v
4806
4807
  }).pipe(
4807
- D(1)
4808
- ), w = Yr({
4808
+ A(1)
4809
+ ), w = Br({
4809
4810
  datumList$: v
4810
4811
  }).pipe(
4811
- D(1)
4812
- ), A = Qr({
4812
+ A(1)
4813
+ ), S = ti({
4813
4814
  computedData$: s
4814
4815
  }).pipe(
4815
- D(1)
4816
+ A(1)
4816
4817
  );
4817
4818
  return {
4818
4819
  isSeriesPositionSeprate$: h,
@@ -4824,9 +4825,9 @@ const Nl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4824
4825
  gridAxesSize$: $,
4825
4826
  gridHighlight$: b,
4826
4827
  existedSeriesLabels$: y,
4827
- SeriesDataMap$: S,
4828
+ SeriesDataMap$: D,
4828
4829
  GroupDataMap$: w,
4829
- visibleComputedData$: A
4830
+ visibleComputedData$: S
4830
4831
  };
4831
4832
  }
4832
4833
  const a = new C();
@@ -4851,12 +4852,12 @@ const Nl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4851
4852
  container: {
4852
4853
  ...u.fullDataFormatter.container
4853
4854
  }
4854
- }, d = Ft(h).pipe(
4855
+ }, d = Pt(h).pipe(
4855
4856
  T(a),
4856
- D(1)
4857
- ), m = Ft(l).pipe(
4857
+ A(1)
4858
+ ), m = Pt(l).pipe(
4858
4859
  T(a),
4859
- D(1)
4860
+ A(1)
4860
4861
  );
4861
4862
  return o({
4862
4863
  gridDataFormatter$: d,
@@ -4868,7 +4869,7 @@ const Nl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4868
4869
  });
4869
4870
  })
4870
4871
  );
4871
- }, Ol = ({ computedData$: t, fullDataFormatter$: e, fullChartParams$: n, layout$: r }) => H({
4872
+ }, Rl = ({ computedData$: t, fullDataFormatter$: e, fullChartParams$: n, layout$: r }) => H({
4872
4873
  computedData: t,
4873
4874
  fullDataFormatter: e,
4874
4875
  fullChartParams: n,
@@ -4905,16 +4906,16 @@ const Nl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4905
4906
  }
4906
4907
  });
4907
4908
  })
4908
- ), Rl = ({ subject: t, observer: e }) => {
4909
- const n = kl({
4909
+ ), Ll = ({ subject: t, observer: e }) => {
4910
+ const n = Ol({
4910
4911
  fullDataFormatter$: e.fullDataFormatter$,
4911
4912
  computedData$: e.computedData$,
4912
4913
  layout$: e.layout$,
4913
4914
  fullChartParams$: e.fullChartParams$,
4914
4915
  event$: t.event$
4915
4916
  }).pipe(
4916
- D(1)
4917
- ), r = Ol({
4917
+ A(1)
4918
+ ), r = Rl({
4918
4919
  computedData$: e.computedData$,
4919
4920
  fullDataFormatter$: e.fullDataFormatter$,
4920
4921
  fullChartParams$: e.fullChartParams$,
@@ -4930,26 +4931,26 @@ const Nl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4930
4931
  multiGridContainer$: r
4931
4932
  };
4932
4933
  };
4933
- class ec extends Dt {
4934
+ class nc extends Dt {
4934
4935
  constructor(e, n) {
4935
4936
  super(
4936
4937
  {
4937
- defaultDataFormatter: si,
4938
- computedDataFn: Nl,
4939
- contextObserverFn: Rl
4938
+ defaultDataFormatter: li,
4939
+ computedDataFn: kl,
4940
+ contextObserverFn: Ll
4940
4941
  },
4941
4942
  e,
4942
4943
  n
4943
4944
  );
4944
4945
  }
4945
4946
  }
4946
- const Ll = (t) => {
4947
+ const Vl = (t) => {
4947
4948
  const { data: e, dataFormatter: n, chartParams: r, layout: i } = t;
4948
4949
  if (!e.length)
4949
4950
  return [];
4950
4951
  let o = [];
4951
4952
  try {
4952
- const a = e.map((v, b) => v.map((y, S) => typeof y == "number" ? {
4953
+ const a = e.map((v, b) => v.map((y, D) => typeof y == "number" ? {
4953
4954
  id: "",
4954
4955
  label: "",
4955
4956
  description: "",
@@ -4985,22 +4986,24 @@ const Ll = (t) => {
4985
4986
  ], g = [
4986
4987
  n.yAxis.scaleDomain[0] === "auto" ? l : n.yAxis.scaleDomain[0],
4987
4988
  n.yAxis.scaleDomain[1] === "auto" ? f : n.yAxis.scaleDomain[1]
4988
- ], _ = (v, b, y, S) => y === 0 && v.value != null && (v.value < p[0] || v.value > p[1]) || y === 1 && v.value != null && (v.value < g[0] || v.value > g[1]) ? !1 : n.visibleFilter(v, b, y, S);
4989
+ ];
4990
+ debugger;
4991
+ const _ = (v, b, y, D) => y === 0 && v.value != null && (v.value < p[0] || v.value > p[1]) || y === 1 && v.value != null && (v.value < g[0] || v.value > g[1]) ? !1 : n.visibleFilter(v, b, y, D);
4989
4992
  let $ = 0;
4990
- o = a.map((v, b) => v.map((y, S) => {
4993
+ o = a.map((v, b) => v.map((y, D) => {
4991
4994
  const w = $;
4992
4995
  $++;
4993
- const A = Xe(n.type, b, S), M = _(y, b, S, t);
4996
+ const S = Xe(n.type, b, D), M = _(y, b, D, t);
4994
4997
  return {
4995
- id: y.id ? y.id : A,
4998
+ id: y.id ? y.id : S,
4996
4999
  index: w,
4997
- label: y.label ? y.label : A,
5000
+ label: y.label ? y.label : S,
4998
5001
  description: y.description ?? "",
4999
5002
  // tooltipContent: _d.tooltipContent ? _d.tooltipContent : dataFormatter.tooltipContentFormat(_d, i, _i, context),
5000
5003
  data: y.data,
5001
5004
  value: y.value,
5002
5005
  // valueLabel: formatValueToLabel(_d.value, dataFormatter.multiValue[_i].valueFormat),
5003
- axis: S == 0 ? d(y.value) : m(y.value),
5006
+ axis: D == 0 ? d(y.value) : m(y.value),
5004
5007
  visible: M
5005
5008
  };
5006
5009
  }));
@@ -5008,27 +5011,27 @@ const Ll = (t) => {
5008
5011
  throw Error(a);
5009
5012
  }
5010
5013
  return o;
5011
- }, Vl = ({ subject: t, observer: e }) => ({
5014
+ }, Gl = ({ subject: t, observer: e }) => ({
5012
5015
  fullParams$: e.fullParams$,
5013
5016
  fullChartParams$: e.fullChartParams$,
5014
5017
  fullDataFormatter$: e.fullDataFormatter$,
5015
5018
  computedData$: e.computedData$,
5016
5019
  layout$: e.layout$
5017
5020
  });
5018
- class nc extends Dt {
5021
+ class rc extends Dt {
5019
5022
  constructor(e, n) {
5020
5023
  super(
5021
5024
  {
5022
- defaultDataFormatter: li,
5023
- computedDataFn: Ll,
5024
- contextObserverFn: Vl
5025
+ defaultDataFormatter: ci,
5026
+ computedDataFn: Vl,
5027
+ contextObserverFn: Gl
5025
5028
  },
5026
5029
  e,
5027
5030
  n
5028
5031
  );
5029
5032
  }
5030
5033
  }
5031
- const Gl = (t) => {
5034
+ const zl = (t) => {
5032
5035
  const { data: e, dataFormatter: n, chartParams: r } = t;
5033
5036
  let i = [], o = [];
5034
5037
  try {
@@ -5100,27 +5103,27 @@ const Gl = (t) => {
5100
5103
  nodes: i,
5101
5104
  edges: o
5102
5105
  };
5103
- }, zl = ({ subject: t, observer: e }) => ({
5106
+ }, Ul = ({ subject: t, observer: e }) => ({
5104
5107
  fullParams$: e.fullParams$,
5105
5108
  fullChartParams$: e.fullChartParams$,
5106
5109
  fullDataFormatter$: e.fullDataFormatter$,
5107
5110
  computedData$: e.computedData$,
5108
5111
  layout$: e.layout$
5109
5112
  });
5110
- class rc extends Dt {
5113
+ class ic extends Dt {
5111
5114
  constructor(e, n) {
5112
5115
  super(
5113
5116
  {
5114
- defaultDataFormatter: fi,
5115
- computedDataFn: Gl,
5116
- contextObserverFn: zl
5117
+ defaultDataFormatter: hi,
5118
+ computedDataFn: zl,
5119
+ contextObserverFn: Ul
5117
5120
  },
5118
5121
  e,
5119
5122
  n
5120
5123
  );
5121
5124
  }
5122
5125
  }
5123
- const Ul = (t) => {
5126
+ const Hl = (t) => {
5124
5127
  const { data: e = [], dataFormatter: n, chartParams: r } = t;
5125
5128
  let i = {
5126
5129
  id: "",
@@ -5187,27 +5190,27 @@ const Ul = (t) => {
5187
5190
  throw Error(o);
5188
5191
  }
5189
5192
  return i;
5190
- }, Hl = ({ subject: t, observer: e }) => ({
5193
+ }, Xl = ({ subject: t, observer: e }) => ({
5191
5194
  fullParams$: e.fullParams$,
5192
5195
  fullChartParams$: e.fullChartParams$,
5193
5196
  fullDataFormatter$: e.fullDataFormatter$,
5194
5197
  computedData$: e.computedData$,
5195
5198
  layout$: e.layout$
5196
5199
  });
5197
- class ic extends Dt {
5200
+ class oc extends Dt {
5198
5201
  constructor(e, n) {
5199
5202
  super(
5200
5203
  {
5201
- defaultDataFormatter: ci,
5202
- computedDataFn: Ul,
5203
- contextObserverFn: Hl
5204
+ defaultDataFormatter: fi,
5205
+ computedDataFn: Hl,
5206
+ contextObserverFn: Xl
5204
5207
  },
5205
5208
  e,
5206
5209
  n
5207
5210
  );
5208
5211
  }
5209
5212
  }
5210
- function Xl({ name: t, defaultParams: e, initFn: n }) {
5213
+ function Yl({ name: t, defaultParams: e, initFn: n }) {
5211
5214
  const r = new C(), i = new C(), o = /* @__PURE__ */ new WeakMap();
5212
5215
  let a = () => {
5213
5216
  }, u, s = e;
@@ -5223,14 +5226,14 @@ function Xl({ name: t, defaultParams: e, initFn: n }) {
5223
5226
  a(), u && (u.selection.remove(), u = void 0), r.next(void 0);
5224
5227
  },
5225
5228
  setPresetParams: (l) => {
5226
- s = nt(l, e);
5229
+ s = st(l, e);
5227
5230
  },
5228
5231
  setContext: (l) => {
5229
5232
  u = l, u.observer.fullParams$ = i.pipe(
5230
5233
  T(r),
5231
5234
  Kt({}),
5232
- E((f) => nt(f, s)),
5233
- D(1)
5235
+ E((f) => st(f, s)),
5236
+ A(1)
5234
5237
  );
5235
5238
  }
5236
5239
  };
@@ -5239,49 +5242,49 @@ const ft = () => function(e, n) {
5239
5242
  return function(i) {
5240
5243
  return class {
5241
5244
  constructor() {
5242
- const a = Xl({ name: e, defaultParams: n, initFn: i });
5245
+ const a = Yl({ name: e, defaultParams: n, initFn: i });
5243
5246
  this.params$ = a.params$, this.name = a.name, this.defaultParams = a.defaultParams, this.init = a.init, this.destroy = a.destroy, this.setPresetParams = a.setPresetParams, this.setContext = a.setContext;
5244
5247
  }
5245
5248
  };
5246
5249
  };
5247
- }, ac = ft(), uc = ft(), sc = ft(), lc = ft(), cc = ft(), fc = ft(), hc = ft();
5250
+ }, uc = ft(), sc = ft(), lc = ft(), cc = ft(), fc = ft(), hc = ft(), dc = ft();
5248
5251
  export {
5249
- tc as GridChart,
5250
- ec as MultiGridChart,
5251
- nc as MultiValueChart,
5252
- rc as RelationshipChart,
5253
- Ql as SeriesChart,
5254
- ic as TreeChart,
5252
+ ec as GridChart,
5253
+ nc as MultiGridChart,
5254
+ rc as MultiValueChart,
5255
+ ic as RelationshipChart,
5256
+ tc as SeriesChart,
5257
+ oc as TreeChart,
5255
5258
  ue as calcGridContainerPosition,
5256
5259
  bt as createAxisLinearScale,
5257
- Jl as createAxisPointScale,
5258
- Zl as createAxisQuantizeScale,
5260
+ Zl as createAxisPointScale,
5261
+ Ql as createAxisQuantizeScale,
5259
5262
  Xe as createDefaultDatumId,
5260
- ds as createDefaultGroupLabel,
5261
- xr as createDefaultSeriesLabel,
5262
- ms as createGridGroupLabels,
5263
- ps as createGridSeriesLabels,
5264
- uc as defineGridPlugin,
5265
- sc as defineMultiGridPlugin,
5266
- lc as defineMultiValuePlugin,
5267
- cc as defineNoneDataPlugin,
5268
- fc as defineRelationshipPlugin,
5269
- ac as defineSeriesPlugin,
5270
- hc as defineTreePlugin,
5271
- Bl as formatCommaNumber,
5272
- Wl as formatValueToLabel,
5263
+ ps as createDefaultGroupLabel,
5264
+ br as createDefaultSeriesLabel,
5265
+ gs as createGridGroupLabels,
5266
+ ms as createGridSeriesLabels,
5267
+ sc as defineGridPlugin,
5268
+ lc as defineMultiGridPlugin,
5269
+ cc as defineMultiValuePlugin,
5270
+ fc as defineNoneDataPlugin,
5271
+ hc as defineRelationshipPlugin,
5272
+ uc as defineSeriesPlugin,
5273
+ dc as defineTreePlugin,
5274
+ Wl as formatCommaNumber,
5275
+ ql as formatValueToLabel,
5273
5276
  Rt as getMinAndMax,
5274
5277
  Cn as getMinAndMaxGrid,
5275
- jl as getMinAndMaxMultiGrid,
5276
- Kl as getMinAndMaxMultiValue,
5277
- ql as getMinAndMaxSeries,
5278
+ Kl as getMinAndMaxMultiGrid,
5279
+ Jl as getMinAndMaxMultiValue,
5280
+ jl as getMinAndMaxSeries,
5278
5281
  Ee as getMinAndMaxValue,
5279
- Yr as groupDataMapObservable,
5282
+ Br as groupDataMapObservable,
5280
5283
  tn as highlightObservable,
5281
- Yl as isFunction,
5282
- Q as isObject,
5283
- nt as mergeOptionsWithDefault,
5284
+ Bl as isFunction,
5285
+ Q as isPlainObject,
5286
+ st as mergeOptionsWithDefault,
5284
5287
  Ye as seriesColorPredicate,
5285
5288
  en as seriesDataMapObservable,
5286
- gs as transposeData
5289
+ vs as transposeData
5287
5290
  };