@advt-gpt-chart/package 3.2.6 → 3.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -11,7 +11,7 @@ var Yx = (i, e) => (e = Symbol[i]) ? e : Symbol.for("Symbol." + i), FG = (i) =>
11
11
  for (var t of _I(e))
12
12
  L_e.call(e, t) && LG(i, t, e[t]);
13
13
  return i;
14
- }, Ei = (i, e) => A2t(i, T2t(e));
14
+ }, Ti = (i, e) => A2t(i, T2t(e));
15
15
  var au = (i, e) => {
16
16
  var t = {};
17
17
  for (var n in i)
@@ -10917,10 +10917,10 @@ let uwt = class {
10917
10917
  return n ? n(t) : null;
10918
10918
  }
10919
10919
  };
10920
- const mr = new uwt();
10920
+ const vr = new uwt();
10921
10921
  let DI;
10922
10922
  function Zz(i) {
10923
- return DI || (DI = mr.CreateGraphic("text", {})), DI.initAttributes(i), DI.AABBBounds;
10923
+ return DI || (DI = vr.CreateGraphic("text", {})), DI.initAttributes(i), DI.AABBBounds;
10924
10924
  }
10925
10925
  var cwt = function(i, e, t, n) {
10926
10926
  var r, o = arguments.length, s = o < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, t) : n;
@@ -12894,7 +12894,7 @@ let F3t = class {
12894
12894
  getShadowRoot(e) {
12895
12895
  var t;
12896
12896
  let n = e.getElementById("_interactive_group");
12897
- return n || (n = mr.CreateGraphic("group", {}), n.id = "_interactive_group", e.add(n)), (t = n.shadowRoot) !== null && t !== void 0 ? t : n.attachShadow();
12897
+ return n || (n = vr.CreateGraphic("group", {}), n.id = "_interactive_group", e.add(n)), (t = n.shadowRoot) !== null && t !== void 0 ? t : n.attachShadow();
12898
12898
  }
12899
12899
  }, N3t = class {
12900
12900
  constructor() {
@@ -13058,7 +13058,7 @@ wL = Jz([pn()], wL);
13058
13058
  const V3t = new to(((i, e, t) => {
13059
13059
  t(Q3) || (i(wSe).toSelf(), i(Q3).toService(wSe)), i(wL).toSelf().inSingletonScope(), i(o3).toService(wL), i(SL).toSelf().inSingletonScope(), i(o3).toService(SL), i(xL).toSelf().inSingletonScope(), i(o3).toService(xL), wc(i, o3), i(CL).toSelf().inSingletonScope(), i(_L).toService(CL), wc(i, _L);
13060
13060
  })), U3t = new to(((i) => {
13061
- i(j0e).to(Kse), i(oqe).toConstantValue(mr);
13061
+ i(j0e).to(Kse), i(oqe).toConstantValue(vr);
13062
13062
  })), RM = Symbol.for("AutoEnablePlugins"), Pqe = Symbol.for("PluginService");
13063
13063
  var j3t = function(i, e, t, n) {
13064
13064
  var r, o = arguments.length, s = o < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, t) : n;
@@ -14698,43 +14698,43 @@ const HAt = new to(((i) => {
14698
14698
  NSe || (NSe = !0, i(gae).to(hae).inSingletonScope(), i(Ld).toService(gae), i(mC).toService(Up), wc(i, mC));
14699
14699
  }));
14700
14700
  function $At() {
14701
- mr.RegisterGraphicCreator("arc", oL);
14701
+ vr.RegisterGraphicCreator("arc", oL);
14702
14702
  }
14703
14703
  function zAt() {
14704
- mr.RegisterGraphicCreator("circle", mqe);
14704
+ vr.RegisterGraphicCreator("circle", mqe);
14705
14705
  }
14706
14706
  function WAt() {
14707
- mr.RegisterGraphicCreator("group", nL);
14707
+ vr.RegisterGraphicCreator("group", nL);
14708
14708
  }
14709
14709
  function VAt() {
14710
- mr.RegisterGraphicCreator("image", Xz);
14710
+ vr.RegisterGraphicCreator("image", Xz);
14711
14711
  }
14712
14712
  function UAt() {
14713
- mr.RegisterGraphicCreator("line", d0);
14713
+ vr.RegisterGraphicCreator("line", d0);
14714
14714
  }
14715
14715
  function jAt() {
14716
- mr.RegisterGraphicCreator("path", swt);
14716
+ vr.RegisterGraphicCreator("path", swt);
14717
14717
  }
14718
14718
  function GAt() {
14719
- mr.RegisterGraphicCreator("polygon", Cqe);
14719
+ vr.RegisterGraphicCreator("polygon", Cqe);
14720
14720
  }
14721
14721
  function qAt() {
14722
- mr.RegisterGraphicCreator("rect", la);
14722
+ vr.RegisterGraphicCreator("rect", la);
14723
14723
  }
14724
14724
  function YAt() {
14725
- mr.RegisterGraphicCreator("richtext", owt);
14725
+ vr.RegisterGraphicCreator("richtext", owt);
14726
14726
  }
14727
14727
  function KAt() {
14728
- mr.RegisterGraphicCreator("symbol", qA);
14728
+ vr.RegisterGraphicCreator("symbol", qA);
14729
14729
  }
14730
14730
  function XAt() {
14731
- mr.RegisterGraphicCreator("text", Qse);
14731
+ vr.RegisterGraphicCreator("text", Qse);
14732
14732
  }
14733
14733
  function ZAt() {
14734
- mr.RegisterGraphicCreator("shadowRoot", lwt);
14734
+ vr.RegisterGraphicCreator("shadowRoot", lwt);
14735
14735
  }
14736
14736
  function QAt() {
14737
- mr.RegisterGraphicCreator("wrapText", Qxt);
14737
+ vr.RegisterGraphicCreator("wrapText", Qxt);
14738
14738
  }
14739
14739
  const HSe = new Ur();
14740
14740
  class JAt {
@@ -17784,7 +17784,7 @@ function g4t(i) {
17784
17784
  }
17785
17785
  function zae(i, e = "type") {
17786
17786
  const t = qqe(i, e);
17787
- return t === "rich" ? mr.richtext(Yqe(i)) : (t === "html" ? i = f4t(i) : t === "react" && (i = g4t(i)), mr.text(i));
17787
+ return t === "rich" ? vr.richtext(Yqe(i)) : (t === "html" ? i = f4t(i) : t === "react" && (i = g4t(i)), vr.text(i));
17788
17788
  }
17789
17789
  function Kqe() {
17790
17790
  Lf(), Mb(), eE(), tW(), F1();
@@ -18439,7 +18439,7 @@ let eYe = class tYe extends T0 {
18439
18439
  }
18440
18440
  h.forEach(((d, f) => {
18441
18441
  var g, p;
18442
- const m = mr.line(Object.assign(Object.assign({
18442
+ const m = vr.line(Object.assign(Object.assign({
18443
18443
  points: d
18444
18444
  }, wt(n) ? (g = n[f]) !== null && g !== void 0 ? g : n[n.length - 1] : n), {
18445
18445
  fill: !1
@@ -18447,8 +18447,8 @@ let eYe = class tYe extends T0 {
18447
18447
  m.name = `${this.name}-line`, m.id = this._getNodeId("line" + f), Sn(r == null ? void 0 : r.line) || (m.states = wt(r.line) ? (p = r.line[f]) !== null && p !== void 0 ? p : r.line[r.line.length - 1] : r.line), this.add(m), this.lines.push(m);
18448
18448
  }));
18449
18449
  } else {
18450
- let h = mr.line;
18451
- Ps(n)[0].cornerRadius && (h = mr.polygon);
18450
+ let h = vr.line;
18451
+ Ps(n)[0].cornerRadius && (h = vr.polygon);
18452
18452
  const d = h(Object.assign(Object.assign({
18453
18453
  points: this._clipPoints(this.attribute.points)
18454
18454
  }, Ps(n)[0]), {
@@ -18477,7 +18477,7 @@ let eYe = class tYe extends T0 {
18477
18477
  }, b = this._computeStartRotate(this._startAngle)) : (v = {
18478
18478
  x: c.x + (bn(a) ? h * Math.cos(a) + d * Math.cos(a - Math.PI / 2) : 0),
18479
18479
  y: c.y + (bn(a) ? h * Math.sin(a) + d * Math.sin(a - Math.PI / 2) : 0)
18480
- }, b = this._computeEndRotate(this._endAngle)), o = mr.symbol(Object.assign(Object.assign(Object.assign({}, v), {
18480
+ }, b = this._computeEndRotate(this._endAngle)), o = vr.symbol(Object.assign(Object.assign(Object.assign({}, v), {
18481
18481
  symbolType: p,
18482
18482
  size: m,
18483
18483
  angle: r ? b + f : 0,
@@ -18787,14 +18787,14 @@ let F4t = class extends B4t {
18787
18787
  getBoundsWithoutRender(e) {
18788
18788
  const t = xa(this.attribute);
18789
18789
  t.scale = this.attribute.scale, this.attribute = e;
18790
- const n = mr.group({
18790
+ const n = vr.group({
18791
18791
  x: this.attribute.x,
18792
18792
  y: this.attribute.y
18793
18793
  });
18794
18794
  return this.add(n), this._renderInner(n), this.removeChild(n), this.attribute = t, n.AABBBounds;
18795
18795
  }
18796
18796
  render() {
18797
- this._prepare(), this._prevInnerView = this._innerView && P4t(this._innerView), this.removeAllChild(!0), this._innerView = mr.group({
18797
+ this._prepare(), this._prevInnerView = this._innerView && P4t(this._innerView), this.removeAllChild(!0), this._innerView = vr.group({
18798
18798
  x: 0,
18799
18799
  y: 0,
18800
18800
  pickable: !1
@@ -18809,14 +18809,14 @@ let F4t = class extends B4t {
18809
18809
  e && (this._innerView.addEventListener("pointermove", this._onHover), this._innerView.addEventListener("pointerout", this._onUnHover)), t && this._innerView.addEventListener("pointerdown", this._onClick);
18810
18810
  }
18811
18811
  _renderInner(e) {
18812
- const { title: t, label: n, tick: r, line: o, items: s } = this.attribute, a = mr.group({
18812
+ const { title: t, label: n, tick: r, line: o, items: s } = this.attribute, a = vr.group({
18813
18813
  x: 0,
18814
18814
  y: 0,
18815
18815
  zIndex: 1,
18816
18816
  pickable: !1
18817
18817
  });
18818
18818
  if (a.name = qu.axisContainer, a.id = this._getNodeId("container"), a.setMode(this.mode), this.axisContainer = a, e.add(a), o && o.visible && this.renderLine(a), s && s.length && (this.data = this._transformItems(s[0]), r && r.visible && this.renderTicks(a), n && n.visible)) {
18819
- const l = mr.group({
18819
+ const l = vr.group({
18820
18820
  x: 0,
18821
18821
  y: 0,
18822
18822
  pickable: !1
@@ -18842,14 +18842,14 @@ let F4t = class extends B4t {
18842
18842
  t && t.visible && this.renderTitle(a);
18843
18843
  }
18844
18844
  renderTicks(e) {
18845
- const t = this.getTickLineItems(), n = mr.group({
18845
+ const t = this.getTickLineItems(), n = vr.group({
18846
18846
  x: 0,
18847
18847
  y: 0,
18848
18848
  pickable: !1
18849
18849
  });
18850
18850
  n.name = qu.tickContainer, n.id = this._getNodeId("tick-container"), e.add(n), t.forEach(((o, s) => {
18851
18851
  var a;
18852
- const l = mr.line(Object.assign({}, this._getTickLineAttribute("tick", o, s, t)));
18852
+ const l = vr.line(Object.assign({}, this._getTickLineAttribute("tick", o, s, t)));
18853
18853
  if (l.name = qu.tick, l.id = this._getNodeId(o.id), Sn((a = this.attribute.tick) === null || a === void 0 ? void 0 : a.state)) l.states = Jx;
18854
18854
  else {
18855
18855
  const u = this.data[s], c = bt({}, Jx, this.attribute.tick.state);
@@ -18863,7 +18863,7 @@ let F4t = class extends B4t {
18863
18863
  if (r && r.visible) {
18864
18864
  const o = this.getSubTickLineItems();
18865
18865
  o.length && o.forEach(((s, a) => {
18866
- const l = mr.line(Object.assign({}, this._getTickLineAttribute("subTick", s, a, t)));
18866
+ const l = vr.line(Object.assign({}, this._getTickLineAttribute("subTick", s, a, t)));
18867
18867
  if (l.name = qu.subTick, l.id = this._getNodeId(`${a}`), Sn(r.state)) l.states = Jx;
18868
18868
  else {
18869
18869
  const u = bt({}, Jx, r.state);
@@ -18878,7 +18878,7 @@ let F4t = class extends B4t {
18878
18878
  renderLabels(e, t, n) {
18879
18879
  const { dataFilter: r } = this.attribute.label;
18880
18880
  r && Hi(r) && (t = r(t, n));
18881
- const o = this._transformItems(t), s = mr.group({
18881
+ const o = this._transformItems(t), s = vr.group({
18882
18882
  x: 0,
18883
18883
  y: 0,
18884
18884
  pickable: !1
@@ -24624,16 +24624,16 @@ let Gae = class qae extends F4t {
24624
24624
  super._renderInner(e), this._breaks && this._breaks.length && this._breaks.forEach(((o, s) => {
24625
24625
  const { startPoint: a, endPoint: l, breakSymbol: u, rawRange: c } = o;
24626
24626
  if ((u == null ? void 0 : u.visible) !== !1) {
24627
- const h = mr.group({
24627
+ const h = vr.group({
24628
24628
  zIndex: w4t
24629
24629
  });
24630
24630
  h.name = qu.axisBreak, h.id = this._getNodeId(`${qu.axisBreak}-${s}`), h.data = c;
24631
- const d = M4t(u), f = mr.symbol(Object.assign({
24631
+ const d = M4t(u), f = vr.symbol(Object.assign({
24632
24632
  x: a.x,
24633
24633
  y: a.y
24634
24634
  }, d));
24635
24635
  f.name = qu.axisBreakSymbol;
24636
- const g = mr.symbol(Object.assign({
24636
+ const g = vr.symbol(Object.assign({
24637
24637
  x: l.x,
24638
24638
  y: l.y
24639
24639
  }, d));
@@ -24642,7 +24642,7 @@ let Gae = class qae extends F4t {
24642
24642
  }));
24643
24643
  const { panel: n } = this.attribute;
24644
24644
  if (n && n.visible) {
24645
- const o = this.axisContainer, s = o.AABBBounds, a = mr.rect(Object.assign({
24645
+ const o = this.axisContainer, s = o.AABBBounds, a = vr.rect(Object.assign({
24646
24646
  x: s.x1,
24647
24647
  y: s.y1,
24648
24648
  width: s.width(),
@@ -24874,7 +24874,7 @@ let Gae = class qae extends F4t {
24874
24874
  const d = this._getAxisLabelLimitLength(h, o);
24875
24875
  let f, g;
24876
24876
  c = Math.max(c, d), a === "left" ? (f = u.x2 - c, g = u.y1) : a === "right" ? (f = u.x1, g = u.y1) : a === "top" ? (f = u.x1, g = u.y2 - c) : a === "bottom" && (f = u.x1, g = u.y1);
24877
- const p = mr.rect({
24877
+ const p = vr.rect({
24878
24878
  x: f,
24879
24879
  y: g,
24880
24880
  width: l ? u.width() : c,
@@ -27486,13 +27486,13 @@ let Jae = class qYe extends T0 {
27486
27486
  this._reset();
27487
27487
  const { layout: r = "horizontal", handler: o = GYe, total: s, defaultCurrent: a = 1, textStyle: l, padding: u = 0 } = this.attribute;
27488
27488
  this._current = a;
27489
- const c = eu(u), h = r === "horizontal", d = mr.group({
27489
+ const c = eu(u), h = r === "horizontal", d = vr.group({
27490
27490
  x: 0,
27491
27491
  y: 0
27492
27492
  }), f = o.style || {}, g = f.size || 15, p = (e = o.space) !== null && e !== void 0 ? e : 8, m = o.state || {};
27493
27493
  let { preShape: v, nextShape: b } = o;
27494
27494
  v || (v = h ? "triangleLeft" : "triangleUp"), b || (b = h ? "triangleRight" : "triangleDown");
27495
- const y = mr.symbol(Object.assign(Object.assign({
27495
+ const y = vr.symbol(Object.assign(Object.assign({
27496
27496
  strokeBoundsBuffer: 0,
27497
27497
  pickMode: "imprecise"
27498
27498
  }, f), {
@@ -27505,7 +27505,7 @@ let Jae = class qYe extends T0 {
27505
27505
  const { width: _, height: S } = iW(this._getPageText(s), Object.assign({
27506
27506
  textAlign: "center",
27507
27507
  textBaseline: "middle"
27508
- }, l), (n = (t = this.stage) === null || t === void 0 ? void 0 : t.getTheme()) === null || n === void 0 ? void 0 : n.text), C = Tt(g) ? g : g[0], x = Tt(g) ? g : g[1], A = mr.text(Object.assign({
27508
+ }, l), (n = (t = this.stage) === null || t === void 0 ? void 0 : t.getTheme()) === null || n === void 0 ? void 0 : n.text), C = Tt(g) ? g : g[0], x = Tt(g) ? g : g[1], A = vr.text(Object.assign({
27509
27509
  x: h ? C / 2 + p + _ / 2 : 0,
27510
27510
  y: h ? 0 : x / 2 + p + S / 2,
27511
27511
  text: this._getPageText(a),
@@ -27514,7 +27514,7 @@ let Jae = class qYe extends T0 {
27514
27514
  lineHeight: l == null ? void 0 : l.fontSize
27515
27515
  }, l));
27516
27516
  this.text = A, d.add(A);
27517
- const T = mr.symbol(Object.assign(Object.assign({
27517
+ const T = vr.symbol(Object.assign(Object.assign({
27518
27518
  strokeBoundsBuffer: 0,
27519
27519
  pickMode: "imprecise"
27520
27520
  }, f), {
@@ -27572,7 +27572,7 @@ let vge = class extends T0 {
27572
27572
  this.removeAllChild(!0);
27573
27573
  const { interactive: e = !0, title: t, padding: n = 0 } = this.attribute;
27574
27574
  this._parsedPadding = eu(n);
27575
- const r = mr.group({
27575
+ const r = vr.group({
27576
27576
  x: this._parsedPadding[3],
27577
27577
  y: this._parsedPadding[0],
27578
27578
  pickable: e,
@@ -27724,7 +27724,7 @@ let XYe = class ZYe extends vge {
27724
27724
  if (e.visible === !1 || Sn(t)) return;
27725
27725
  let s = t;
27726
27726
  n && (s = t == null ? void 0 : t.reverse()), this._contentMaxHeight = Math.max(0, o - this._parsedPadding[0] - this._parsedPadding[2]);
27727
- const a = mr.group({
27727
+ const a = vr.group({
27728
27728
  x: 0,
27729
27729
  y: 0
27730
27730
  });
@@ -27772,15 +27772,15 @@ let XYe = class ZYe extends vge {
27772
27772
  var o, s;
27773
27773
  const { id: a, label: l, value: u, shape: c } = e, { padding: h = 0, focus: d, focusIconStyle: f, align: g, autoEllipsisStrategy: p } = this.attribute.item, { shape: m, label: v, value: b, background: y } = this.attribute.item, _ = this._handleStyle(m, e, t, n, r), S = this._handleStyle(v, e, t, n, r), C = this._handleStyle(b, e, t, n, r), x = this._handleStyle(y, e, t, n, r), A = eu(h);
27774
27774
  let T;
27775
- y.visible === !1 ? (T = mr.group({
27775
+ y.visible === !1 ? (T = vr.group({
27776
27776
  x: 0,
27777
27777
  y: 0,
27778
27778
  cursor: (o = x.style) === null || o === void 0 ? void 0 : o.cursor
27779
- }), this._appendDataToShape(T, fc.item, e, T)) : (T = mr.group(Object.assign({
27779
+ }), this._appendDataToShape(T, fc.item, e, T)) : (T = vr.group(Object.assign({
27780
27780
  x: 0,
27781
27781
  y: 0
27782
27782
  }, x.style)), this._appendDataToShape(T, fc.item, e, T, x.state)), T.id = `${a != null ? a : l}-${n}`, T.addState(t ? Sr.selected : Sr.unSelected);
27783
- const E = mr.group({
27783
+ const E = vr.group({
27784
27784
  x: 0,
27785
27785
  y: 0,
27786
27786
  pickable: !1
@@ -27790,7 +27790,7 @@ let XYe = class ZYe extends vge {
27790
27790
  if (m && m.visible !== !1) {
27791
27791
  const K = Jo(_, "style.size", oF);
27792
27792
  P = wt(K) ? K[0] || 0 : K, k = Jo(m, "space", YYe);
27793
- const ie = mr.symbol(Object.assign(Object.assign({
27793
+ const ie = vr.symbol(Object.assign(Object.assign({
27794
27794
  x: 0,
27795
27795
  y: 0,
27796
27796
  symbolType: "circle",
@@ -27804,7 +27804,7 @@ let XYe = class ZYe extends vge {
27804
27804
  let I = 0;
27805
27805
  if (d) {
27806
27806
  const K = Jo(f, "size", oF);
27807
- R = mr.symbol(Object.assign(Object.assign({
27807
+ R = vr.symbol(Object.assign(Object.assign({
27808
27808
  x: 0,
27809
27809
  y: -K / 2 - 1,
27810
27810
  strokeBoundsBuffer: 0,
@@ -27991,7 +27991,7 @@ let XYe = class ZYe extends vge {
27991
27991
  this._itemContext.totalPage = A, this._updatePositionOfPager(e, m, v);
27992
27992
  }
27993
27993
  h > 1 && (f ? u.setAttribute("y", -(h - 1) * (v + l)) : u.setAttribute("x", -(h - 1) * (m + a)));
27994
- const x = mr.group({
27994
+ const x = vr.group({
27995
27995
  x: 0,
27996
27996
  y: e,
27997
27997
  width: f ? b : m,
@@ -28025,7 +28025,7 @@ let XYe = class ZYe extends vge {
28025
28025
  const _ = this._itemsContainer.AABBBounds.height() - m;
28026
28026
  l.setAttribute("y", -Math.min((c - 1) * (m + a), _));
28027
28027
  }
28028
- const y = mr.group({
28028
+ const y = vr.group({
28029
28029
  x: 0,
28030
28030
  y: t,
28031
28031
  width: p,
@@ -28044,7 +28044,7 @@ let XYe = class ZYe extends vge {
28044
28044
  }))), c = o.map(((d) => ({
28045
28045
  offset: (l - r * d.offset) / l,
28046
28046
  color: d.color
28047
- }))), h = mr.rect({
28047
+ }))), h = vr.rect({
28048
28048
  x: 0,
28049
28049
  y: 0,
28050
28050
  width: s,
@@ -28372,14 +28372,14 @@ let _ge = class QYe extends T0 {
28372
28372
  };
28373
28373
  const f = n === "horizontal";
28374
28374
  this._isHorizontal = f;
28375
- const g = mr.group({
28375
+ const g = vr.group({
28376
28376
  x: 0,
28377
28377
  y: 0
28378
28378
  });
28379
28379
  g.name = Au.innerView, this.add(g), this._innerView = g;
28380
28380
  let p, m = 0;
28381
28381
  if (s && s.visible) {
28382
- p = mr.text(Object.assign({
28382
+ p = vr.text(Object.assign({
28383
28383
  x: f ? 0 : r / 2,
28384
28384
  y: f ? o / 2 : 0,
28385
28385
  textAlign: f ? "start" : "center",
@@ -28390,19 +28390,19 @@ let _ge = class QYe extends T0 {
28390
28390
  const _ = be(s.space) ? s.space : 0;
28391
28391
  m += (f ? p.AABBBounds.width() : p.AABBBounds.height()) + _;
28392
28392
  }
28393
- const v = mr.group({
28393
+ const v = vr.group({
28394
28394
  x: f ? m : 0,
28395
28395
  y: f ? 0 : m
28396
28396
  });
28397
28397
  g.add(v);
28398
- const b = mr.group({
28398
+ const b = vr.group({
28399
28399
  x: 0,
28400
28400
  y: 0
28401
28401
  });
28402
28402
  let y;
28403
28403
  if (b.name = Au.railContainer, this._railContainer = b, v.add(b), this._mainContainer = v, this._renderRail(b), m += f ? r : o, a && a.visible) {
28404
28404
  const _ = be(a.space) ? a.space : 0;
28405
- y = mr.text(Object.assign({
28405
+ y = vr.text(Object.assign({
28406
28406
  x: f ? m + _ : r / 2,
28407
28407
  y: f ? o / 2 : m + _,
28408
28408
  textAlign: f ? "start" : "center",
@@ -28417,7 +28417,7 @@ let _ge = class QYe extends T0 {
28417
28417
  const { railWidth: t, railHeight: n, railStyle: r, slidable: o } = this.attribute;
28418
28418
  let s = "default";
28419
28419
  o !== !1 && (s = "pointer");
28420
- const a = mr.rect(Object.assign({
28420
+ const a = vr.rect(Object.assign({
28421
28421
  x: 0,
28422
28422
  y: 0,
28423
28423
  width: t,
@@ -28465,7 +28465,7 @@ let _ge = class QYe extends T0 {
28465
28465
  } else h = n, d = es(c, n, r);
28466
28466
  const f = this._isHorizontal;
28467
28467
  t || (h = n);
28468
- const g = mr.group({
28468
+ const g = vr.group({
28469
28469
  x: 0,
28470
28470
  y: 0,
28471
28471
  width: s,
@@ -28478,7 +28478,7 @@ let _ge = class QYe extends T0 {
28478
28478
  const p = Ar(t) && t.draggableTrack === !0;
28479
28479
  let m;
28480
28480
  m = u === !1 ? "default" : t === !1 || p === !1 ? "pointer" : jI(f);
28481
- const v = this.calculatePosByValue(h, "start"), b = this.calculatePosByValue(d, t ? "end" : "start"), y = mr.rect(Object.assign({
28481
+ const v = this.calculatePosByValue(h, "start"), b = this.calculatePosByValue(d, t ? "end" : "start"), y = vr.rect(Object.assign({
28482
28482
  x: f ? Math.min(v, b) : 0,
28483
28483
  y: f ? 0 : Math.min(v, b),
28484
28484
  width: f ? Math.abs(b - v) : s,
@@ -28488,10 +28488,10 @@ let _ge = class QYe extends T0 {
28488
28488
  y.name = Au.track, this._track = y, g.add(y), e.add(g);
28489
28489
  }
28490
28490
  _renderHandler(e) {
28491
- return mr.symbol(e);
28491
+ return vr.symbol(e);
28492
28492
  }
28493
28493
  _renderHandlerText(e, t) {
28494
- return mr.text(this._getHandlerTextAttributes(e, t));
28494
+ return vr.text(this._getHandlerTextAttributes(e, t));
28495
28495
  }
28496
28496
  _getHandlerPosition(e) {
28497
28497
  return this.attribute.range && e ? "start" : "end";
@@ -28525,7 +28525,7 @@ let _ge = class QYe extends T0 {
28525
28525
  } : this._tooltipState = null;
28526
28526
  const s = this._isHorizontal ? 0 : r / 2, a = this._isHorizontal ? n / 2 : 0;
28527
28527
  if (t && t.shape) {
28528
- const d = mr.symbol(Object.assign({
28528
+ const d = vr.symbol(Object.assign({
28529
28529
  pickable: !1,
28530
28530
  visible: !!this._tooltipState,
28531
28531
  x: s,
@@ -28540,7 +28540,7 @@ let _ge = class QYe extends T0 {
28540
28540
  text: ""
28541
28541
  };
28542
28542
  this._isHorizontal ? (c.x = s, c.y = o === "top" ? a - n / 2 - u : a + n / 2 + u, c.textAlign = "center", c.textBaseline = o === "top" ? "bottom" : "top") : (c.y = a, c.x = o === "left" ? s - r / 2 - u : a + r / 2 + u, c.textAlign = o === "left" ? "end" : "start", c.textBaseline = "middle");
28543
- const h = mr.text(Object.assign(Object.assign({}, c), l.style));
28543
+ const h = vr.text(Object.assign(Object.assign({}, c), l.style));
28544
28544
  this._mainContainer.add(h), this._tooltipText = h, this._tooltipState && this._updateTooltip();
28545
28545
  }
28546
28546
  _updateTooltip() {
@@ -28903,7 +28903,7 @@ let tKe = class iKe extends vge {
28903
28903
  this._slider && this._slider.setValue(e);
28904
28904
  }
28905
28905
  _renderContent() {
28906
- const { slidable: e, layout: t, align: n, min: r, max: o, value: s, railWidth: a, railHeight: l, showHandler: u = !0, handlerSize: c, handlerStyle: h, railStyle: d, trackStyle: f, startText: g, endText: p, handlerText: m, showTooltip: v, tooltip: b, sizeBackground: y, disableTriggerEvent: _, inverse: S } = this.attribute, C = mr.group({
28906
+ const { slidable: e, layout: t, align: n, min: r, max: o, value: s, railWidth: a, railHeight: l, showHandler: u = !0, handlerSize: c, handlerStyle: h, railStyle: d, trackStyle: f, startText: g, endText: p, handlerText: m, showTooltip: v, tooltip: b, sizeBackground: y, disableTriggerEvent: _, inverse: S } = this.attribute, C = vr.group({
28907
28907
  x: 0,
28908
28908
  y: 0
28909
28909
  });
@@ -28941,7 +28941,7 @@ let tKe = class iKe extends vge {
28941
28941
  C.add(x);
28942
28942
  let A, T = 0;
28943
28943
  t === "horizontal" ? n === "top" ? (A = `M0,0L${a},0L${S ? 0 : a},12Z`, T = l) : (A = `M0,12L${a},12L${S ? 0 : a},0Z`, x.setAttribute("y", 12)) : n === "left" ? A = `M${a},0L${a + 12},${S ? 0 : l}L${a},${l}Z` : (A = `M0,${S ? 0 : l}L12,${l}L12,0Z`, x.setAttribute("x", 12));
28944
- const E = mr.path(Object.assign(Object.assign({
28944
+ const E = vr.path(Object.assign(Object.assign({
28945
28945
  x: 0,
28946
28946
  y: T,
28947
28947
  path: A
@@ -62586,7 +62586,7 @@ function bZe() {
62586
62586
  })(O7)), O7.exports;
62587
62587
  }
62588
62588
  var tLt = bZe();
62589
- const vr = /* @__PURE__ */ ya(tLt);
62589
+ const mr = /* @__PURE__ */ ya(tLt);
62590
62590
  var yZe = typeof global == "object" && global && global.Object === Object && global, iLt = typeof self == "object" && self && self.Object === Object && self, H1 = yZe || iLt || Function("return this")(), Dg = H1.Symbol, _Ze = Object.prototype, nLt = _Ze.hasOwnProperty, rLt = _Ze.toString, c6 = Dg ? Dg.toStringTag : void 0;
62591
62591
  function oLt(i) {
62592
62592
  var e = nLt.call(i, c6), t = i[c6];
@@ -69182,7 +69182,7 @@ const dJe = (i) => {
69182
69182
  }
69183
69183
  }
69184
69184
  vi.isString(T) || (T = T ? "include" : "omit");
69185
- const D = o && "credentials" in t.prototype, N = Ei(Re({}, E), {
69185
+ const D = o && "credentials" in t.prototype, N = Ti(Re({}, E), {
69186
69186
  signal: M,
69187
69187
  method: m.toUpperCase(),
69188
69188
  headers: A.normalize().toJSON(),
@@ -71702,7 +71702,7 @@ const HW = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
71702
71702
  return i.forEach((a) => {
71703
71703
  e.forEach((l) => {
71704
71704
  const u = o ? a : OJe(a, e);
71705
- s.push(Ei(Re({}, u), {
71705
+ s.push(Ti(Re({}, u), {
71706
71706
  [t]: r ? r[l] : l,
71707
71707
  [n]: a[l]
71708
71708
  }));
@@ -71741,7 +71741,7 @@ const HW = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
71741
71741
  if (c.length > 0) {
71742
71742
  a = a.map((y) => {
71743
71743
  const _ = c.map((S) => y[S]).join("-");
71744
- return Ei(Re({}, y), {
71744
+ return Ti(Re({}, y), {
71745
71745
  [ba]: _
71746
71746
  });
71747
71747
  });
@@ -71786,7 +71786,7 @@ const HW = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
71786
71786
  const d = $W(u, !1).map((f) => f.join("-"));
71787
71787
  return o = o.map((f) => {
71788
71788
  const g = l.map((p) => f[p]).join("-");
71789
- return Ei(Re({}, f), {
71789
+ return Ti(Re({}, f), {
71790
71790
  [N7]: g
71791
71791
  });
71792
71792
  }), r[N7] = "细分", {
@@ -71829,7 +71829,7 @@ const HW = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
71829
71829
  if (a.length > 0) {
71830
71830
  o = o.map((p) => {
71831
71831
  const m = a.map((v) => p[v]).join("-");
71832
- return Ei(Re({}, p), {
71832
+ return Ti(Re({}, p), {
71833
71833
  [ba]: m
71834
71834
  });
71835
71835
  });
@@ -71884,7 +71884,7 @@ const HW = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
71884
71884
  if (f.length > 0) {
71885
71885
  s = s.map((S) => {
71886
71886
  const C = f.map((x) => S[x]).join("-");
71887
- return Ei(Re({}, S), {
71887
+ return Ti(Re({}, S), {
71888
71888
  [ba]: C
71889
71889
  });
71890
71890
  });
@@ -72513,7 +72513,7 @@ function Oqt(i) {
72513
72513
  }
72514
72514
  function f4e(i) {
72515
72515
  const e = `${i}`.trim();
72516
- return vr(e).isValid() || Pqt.find((t) => new Date(e.replace(t.regex, t.format)).toString() !== "Invalid Date") || Oqt(e);
72516
+ return mr(e).isValid() || Pqt.find((t) => new Date(e.replace(t.regex, t.format)).toString() !== "Invalid Date") || Oqt(e);
72517
72517
  }
72518
72518
  const uue = (i, e) => (i || []).find((t) => e.includes(t.type)), DJe = (i, e) => (i || []).filter((t) => e.includes(t.type)), E2 = (i, e) => (i || []).find((t) => t.role === e), Mf = (i) => Tn(i) ? i[0] : i, kqt = (i, e) => {
72519
72519
  const t = i === null ? 0 : i.length;
@@ -72588,21 +72588,21 @@ const uue = (i, e) => (i || []).find((t) => e.includes(t.type)), DJe = (i, e) =>
72588
72588
  }, qg = (i, e) => {
72589
72589
  const { cell: t } = i, n = bpe(i, e);
72590
72590
  return Ko(n) ? {
72591
- cell: Ei(Re({}, t), {
72591
+ cell: Ti(Re({}, t), {
72592
72592
  color: n
72593
72593
  })
72594
72594
  } : { cell: t };
72595
72595
  }, $1 = (i, e) => {
72596
72596
  const { cell: t } = i, n = qW(i, e);
72597
72597
  return Ko(n) ? {
72598
- cell: Ei(Re({}, t), {
72598
+ cell: Ti(Re({}, t), {
72599
72599
  size: n
72600
72600
  })
72601
72601
  } : { cell: t };
72602
72602
  }, nm = (i) => {
72603
72603
  const { cell: e } = i, t = bpe(i, ["x"]);
72604
72604
  return Ko(t) ? {
72605
- cell: Ei(Re({}, e), {
72605
+ cell: Ti(Re({}, e), {
72606
72606
  x: t
72607
72607
  })
72608
72608
  } : { cell: e };
@@ -72643,7 +72643,7 @@ const uue = (i, e) => (i || []).find((t) => e.includes(t.type)), DJe = (i, e) =>
72643
72643
  }, YW = (i) => {
72644
72644
  const { spec: e, fieldInfo: t, cell: n, label: r } = i, { y: o } = n;
72645
72645
  return r !== !1 && (e.label = ZC(r, (s) => {
72646
- const a = Ei(Re({}, s), { visible: !0 });
72646
+ const a = Ti(Re({}, s), { visible: !0 });
72647
72647
  if (!(Tn(o) && o.length > 1)) {
72648
72648
  if (o) {
72649
72649
  const l = Tn(o) ? o[0] : o, u = t.find((c) => c.fieldName === l);
@@ -72654,12 +72654,12 @@ const uue = (i, e) => (i || []).find((t) => e.includes(t.type)), DJe = (i, e) =>
72654
72654
  })), { spec: e };
72655
72655
  }, E0 = (i) => {
72656
72656
  const { spec: e, label: t } = i;
72657
- return t !== !1 && Ko(t) && (e.label = ZC(t, (n) => Ei(Re({}, n), {
72657
+ return t !== !1 && Ko(t) && (e.label = ZC(t, (n) => Ti(Re({}, n), {
72658
72658
  visible: !0
72659
72659
  }))), { spec: e };
72660
72660
  }, dk = (i) => {
72661
72661
  const { spec: e, label: t } = i;
72662
- return t !== !1 && (e.label = ZC(t, (n) => Ei(Re({}, n), {
72662
+ return t !== !1 && (e.label = ZC(t, (n) => Ti(Re({}, n), {
72663
72663
  visible: !0
72664
72664
  }))), { spec: e };
72665
72665
  }, _pe = (i) => {
@@ -72756,7 +72756,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
72756
72756
  });
72757
72757
  const t = [];
72758
72758
  return Object.values(e).forEach((n) => {
72759
- n.length === 2 && n.every((r) => vu(r.text)) ? t.push(Ei(Re({}, n[0]), {
72759
+ n.length === 2 && n.every((r) => vu(r.text)) ? t.push(Ti(Re({}, n[0]), {
72760
72760
  text: n[0].text,
72761
72761
  subtext: n[1].text
72762
72762
  })) : n.forEach((r) => {
@@ -72767,7 +72767,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
72767
72767
  const { title: e, spec: t, dataZoom: n, markArea: r, markLine: o, markPoint: s } = i;
72768
72768
  return Tn(e) && e.length >= 2 ? t.title = Uqt(e) : Ko(e) && e !== !1 && (t.title = Dl(e)[0]), Ko(n) && n !== !1 && (t.dataZoom = n), Ko(s) && s !== !1 && (t.markPoint = ZC(s, (a) => {
72769
72769
  const c = a, { label: l } = c, u = au(c, ["label"]);
72770
- return Ei(Re({}, u), {
72770
+ return Ti(Re({}, u), {
72771
72771
  visible: !0,
72772
72772
  itemContent: {
72773
72773
  confine: !0,
@@ -72779,7 +72779,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
72779
72779
  });
72780
72780
  })), Ko(o) && o !== !1 && (t.markLine = ZC(o, (a) => {
72781
72781
  const c = a, { label: l } = c, u = au(c, ["label"]);
72782
- return Ei(Re({}, u), {
72782
+ return Ti(Re({}, u), {
72783
72783
  visible: !0,
72784
72784
  label: {
72785
72785
  text: a.label
@@ -72787,7 +72787,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
72787
72787
  });
72788
72788
  })), Ko(r) && r !== !1 && (t.markArea = ZC(r, (a) => {
72789
72789
  const c = a, { label: l } = c, u = au(c, ["label"]);
72790
- return Ei(Re({}, u), {
72790
+ return Ti(Re({}, u), {
72791
72791
  visible: !0,
72792
72792
  label: {
72793
72793
  text: a.label
@@ -72878,12 +72878,12 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
72878
72878
  }, VJe = (i) => {
72879
72879
  const { cell: e, transpose: t, fieldInfo: n } = i;
72880
72880
  if (t) {
72881
- const { x: r, y: o } = e, s = Dl(r), a = Dl(o), l = n.reduce((u, c) => Ei(Re({}, u), {
72881
+ const { x: r, y: o } = e, s = Dl(r), a = Dl(o), l = n.reduce((u, c) => Ti(Re({}, u), {
72882
72882
  [c.fieldName]: c
72883
72883
  }), {});
72884
72884
  if (s.every((u) => !!l[u] && l[u].role === Xo.MEASURE) && a.every((u) => !!l[u] && l[u].role === Xo.DIMENSION))
72885
- return Ei(Re({}, i), {
72886
- cell: Ei(Re({}, e), {
72885
+ return Ti(Re({}, i), {
72886
+ cell: Ti(Re({}, e), {
72887
72887
  x: o,
72888
72888
  y: r
72889
72889
  })
@@ -72933,7 +72933,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
72933
72933
  }, GJe = (i) => {
72934
72934
  const { transpose: e, spec: t } = i;
72935
72935
  return e ? {
72936
- spec: Ei(Re({}, t), { xField: t.yField, yField: t.xField, direction: "horizontal" })
72936
+ spec: Ti(Re({}, t), { xField: t.yField, yField: t.xField, direction: "horizontal" })
72937
72937
  } : i;
72938
72938
  }, Gqt = (i) => {
72939
72939
  var e;
@@ -73009,7 +73009,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73009
73009
  }, XJe = (i) => {
73010
73010
  var e;
73011
73011
  let { cell: t } = qg(i, ["color", "x", "label"]);
73012
- t = $1(Ei(Re({}, i), { cell: t }), ["size", "value", "y", "radius"]).cell;
73012
+ t = $1(Ti(Re({}, i), { cell: t }), ["size", "value", "y", "radius"]).cell;
73013
73013
  const { spec: n } = i;
73014
73014
  return n.categoryField = (e = t.color) !== null && e !== void 0 ? e : t.x, t.size && (n.valueField = t.size), { spec: n, cell: t };
73015
73015
  }, ZJe = (i) => {
@@ -73025,7 +73025,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73025
73025
  dk
73026
73026
  ], QJe = (i) => {
73027
73027
  let { cell: e } = qg(i, ["color", "x", "label"]);
73028
- e = $1(Ei(Re({}, i), { cell: e }), ["size", "value", "y"]).cell;
73028
+ e = $1(Ti(Re({}, i), { cell: e }), ["size", "value", "y"]).cell;
73029
73029
  const { spec: t } = i;
73030
73030
  return t.categoryField = e.color, t.valueField = e.size, t.seriesField = e.color, t.radius = 0.8, t.innerRadius = 0.7, t.roundCap = !0, t.cornerRadius = 20, { spec: t, cell: e };
73031
73031
  }, Xqt = [
@@ -73043,7 +73043,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73043
73043
  }, eet = (i) => {
73044
73044
  var e;
73045
73045
  const { cell: t, spec: n, series: r } = i, { color: o } = t, s = n.data.values;
73046
- return r ? (n.series = r.map((a) => Ei(Re({}, a), {
73046
+ return r ? (n.series = r.map((a) => Ti(Re({}, a), {
73047
73047
  data: {
73048
73048
  id: `data_${a.type}`,
73049
73049
  values: a.data
@@ -73057,7 +73057,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73057
73057
  id: $Je,
73058
73058
  data: {
73059
73059
  id: n.data.id + "_bar",
73060
- values: o ? s : s.map((a) => Ei(Re({}, a), { [vD]: t.y[0] }))
73060
+ values: o ? s : s.map((a) => Ti(Re({}, a), { [vD]: t.y[0] }))
73061
73061
  },
73062
73062
  dataIndex: 0,
73063
73063
  label: { visible: !0 },
@@ -73071,7 +73071,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73071
73071
  dataIndex: 0,
73072
73072
  data: {
73073
73073
  id: n.data.id + "_line",
73074
- values: o ? s : s.map((a) => Ei(Re({}, a), { [vD]: t.y[1] }))
73074
+ values: o ? s : s.map((a) => Ti(Re({}, a), { [vD]: t.y[1] }))
73075
73075
  },
73076
73076
  label: { visible: !0 },
73077
73077
  xField: t.x,
@@ -73137,7 +73137,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73137
73137
  return t.categoryField = e.color || e.x, t.valueField = e.value || e.y, { spec: t };
73138
73138
  }, Qqt = [nm, iet, bl, net, Hf, YW], ret = (i) => {
73139
73139
  let { cell: e } = qg(i, ["color", "label"]);
73140
- e = $1(Ei(Re({}, i), { cell: e }), ["size", "value"]).cell;
73140
+ e = $1(Ti(Re({}, i), { cell: e }), ["size", "value"]).cell;
73141
73141
  const { spec: t } = i;
73142
73142
  return t.valueField = e.size, t.categoryField = e.color, { spec: t, cell: e };
73143
73143
  }, oet = (i) => {
@@ -73215,7 +73215,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73215
73215
  if (Tn(t) && t.length >= 2) {
73216
73216
  const r = t.find((o) => o.type === "color");
73217
73217
  e.legends = [
73218
- Ei(Re({
73218
+ Ti(Re({
73219
73219
  visible: !0,
73220
73220
  orient: "right",
73221
73221
  position: "start"
@@ -73225,7 +73225,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73225
73225
  ...t.filter((o) => o !== r)
73226
73226
  ];
73227
73227
  } else
73228
- e.legends = Ei(Re({
73228
+ e.legends = Ti(Re({
73229
73229
  visible: !0,
73230
73230
  orient: "right",
73231
73231
  position: "start",
@@ -73357,7 +73357,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73357
73357
  E0
73358
73358
  ], met = (i) => {
73359
73359
  const { spec: e, cell: t } = i, n = qW(i, ["value", "size"]);
73360
- return e.valueField = n, e.indicatorSmartInvert = !0, { spec: e, cell: Ko(n) ? Ei(Re({}, t), { value: n }) : t };
73360
+ return e.valueField = n, e.indicatorSmartInvert = !0, { spec: e, cell: Ko(n) ? Ti(Re({}, t), { value: n }) : t };
73361
73361
  }, rYt = [Dc, bl, met, _pe, rm], vet = {
73362
73362
  regionProjectType: null,
73363
73363
  regionCoordinate: "geo",
@@ -73380,7 +73380,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73380
73380
  ], n.map = (e = t.mapName) !== null && e !== void 0 ? e : "map", { spec: n };
73381
73381
  }, yet = (i) => {
73382
73382
  let { cell: e } = qg(i, ["color", "label"]);
73383
- e = $1(Ei(Re({}, i), { cell: e }), ["size", "value", "y"]).cell;
73383
+ e = $1(Ti(Re({}, i), { cell: e }), ["size", "value", "y"]).cell;
73384
73384
  const { spec: t } = i;
73385
73385
  return t.nameField = e.color, t.valueField = e.size, t.nameProperty = e.color, { spec: t, cell: e };
73386
73386
  }, _et = (i) => {
@@ -73392,7 +73392,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73392
73392
  if (Tn(n) && n.length >= 2) {
73393
73393
  const r = n.find((o) => o.type === "color");
73394
73394
  e.legends = [
73395
- Ei(Re({
73395
+ Ti(Re({
73396
73396
  visible: !0,
73397
73397
  type: "color",
73398
73398
  orient: "bottom",
@@ -73403,7 +73403,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73403
73403
  ...n.filter((o) => o !== r)
73404
73404
  ];
73405
73405
  } else
73406
- e.legends = Ei(Re({
73406
+ e.legends = Ti(Re({
73407
73407
  visible: !0,
73408
73408
  type: "color",
73409
73409
  orient: "bottom",
@@ -73751,7 +73751,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73751
73751
  ], { spec: e };
73752
73752
  }, Det = (i) => {
73753
73753
  const { spec: e, label: t } = i;
73754
- return t !== !1 && (e.label = Ei(Re({}, Dl(t)[0]), {
73754
+ return t !== !1 && (e.label = Ti(Re({}, Dl(t)[0]), {
73755
73755
  visible: !0,
73756
73756
  style: {
73757
73757
  fill: "#FFFFFF",
@@ -73835,7 +73835,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73835
73835
  values: [
73836
73836
  {
73837
73837
  nodes: l,
73838
- links: s.map((u) => Ei(Re({}, u), {
73838
+ links: s.map((u) => Ti(Re({}, u), {
73839
73839
  [r]: a.indexOf(u[r]),
73840
73840
  [o]: a.indexOf(u[o])
73841
73841
  }))
@@ -73844,7 +73844,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73844
73844
  }, { spec: t };
73845
73845
  }, Net = (i) => {
73846
73846
  const { spec: e, cell: t } = i, n = qW(i, ["value", "size"]);
73847
- return e.sourceField = t.source, e.targetField = t.target, e.valueField = n, e.categoryField = "name", { spec: e, cell: Ko(n) ? Ei(Re({}, t), { value: n }) : t };
73847
+ return e.sourceField = t.source, e.targetField = t.target, e.valueField = n, e.categoryField = "name", { spec: e, cell: Ko(n) ? Ti(Re({}, t), { value: n }) : t };
73848
73848
  }, dYt = [Fet, bl, Net, dk, Hf], Het = (i) => {
73849
73849
  const { spec: e, cell: t } = i;
73850
73850
  return e.xField = t.x, e.yField = t.y, Ko(t.color) && (e.seriesField = t.color), Ko(t.size) && (e.sizeField = t.size, e.size = {
@@ -73895,7 +73895,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73895
73895
  E0
73896
73896
  ], zet = (i) => {
73897
73897
  let { cell: e } = qg(i, ["color", "label"]);
73898
- e = $1(Ei(Re({}, i), { cell: e }), ["size", "value"]).cell;
73898
+ e = $1(Ti(Re({}, i), { cell: e }), ["size", "value"]).cell;
73899
73899
  const { dataTable: t, spec: n } = i;
73900
73900
  return n.data = {
73901
73901
  id: "data",
@@ -73908,7 +73908,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73908
73908
  style: {
73909
73909
  fillOpacity: (n) => n.isLeaf ? 0.4 : 0.8
73910
73910
  }
73911
- }, t !== !1 && (e.label = Ei(Re({}, Dl(t)[0]), {
73911
+ }, t !== !1 && (e.label = Ti(Re({}, Dl(t)[0]), {
73912
73912
  visible: !0,
73913
73913
  style: {
73914
73914
  fillOpacity: (n) => n.isLeaf ? 0.4 : 0.8
@@ -73925,7 +73925,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73925
73925
  }, { spec: e };
73926
73926
  }, pYt = [zet, bl, Cpe, Wet, rm], Vet = (i) => {
73927
73927
  let { cell: e } = qg(i, ["color", "label"]);
73928
- e = $1(Ei(Re({}, i), { cell: e }), ["size", "value"]).cell;
73928
+ e = $1(Ti(Re({}, i), { cell: e }), ["size", "value"]).cell;
73929
73929
  const { dataTable: t, spec: n } = i;
73930
73930
  return n.data = {
73931
73931
  id: "data",
@@ -73934,7 +73934,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73934
73934
  }, mYt = [Vet, bl, Cpe, dk, rm], Uet = (i) => {
73935
73935
  const { dataTable: e, spec: t } = i;
73936
73936
  let { cell: n } = qg(i, ["color", "x", "label", "sets"]);
73937
- n = $1(Ei(Re({}, i), { cell: n }), ["size", "value"]).cell;
73937
+ n = $1(Ti(Re({}, i), { cell: n }), ["size", "value"]).cell;
73938
73938
  const r = n.color;
73939
73939
  if (Tn(r) && r.length === 2) {
73940
73940
  const o = {}, s = r[0], a = r[1];
@@ -73946,7 +73946,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73946
73946
  } else dE(r) && (t.data = {
73947
73947
  values: e.map((o) => {
73948
73948
  const a = `${o[r]}`.split(/[,&]/).map((l) => l.trim());
73949
- return Ei(Re({}, o), {
73949
+ return Ti(Re({}, o), {
73950
73950
  [r]: a
73951
73951
  });
73952
73952
  })
@@ -73975,7 +73975,7 @@ const WJe = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % NJe * i, Wqt = (i)
73975
73975
  E0
73976
73976
  ], qet = (i) => {
73977
73977
  let { cell: e } = i;
73978
- return (vu(e.size) || vu(e.color) || e.color === e.size) && (vu(e.color) && (e = qg(i, ["text", "word", "label", "x"]).cell), (vu(e.size) || e.size === e.color) && (e = $1(Ei(Re({}, i), { cell: e }), ["weight", "fontSize"]).cell)), {
73978
+ return (vu(e.size) || vu(e.color) || e.color === e.size) && (vu(e.color) && (e = qg(i, ["text", "word", "label", "x"]).cell), (vu(e.size) || e.size === e.color) && (e = $1(Ti(Re({}, i), { cell: e }), ["weight", "fontSize"]).cell)), {
73979
73979
  cell: e
73980
73980
  };
73981
73981
  }, Yet = (i) => {
@@ -74929,7 +74929,7 @@ function pKt() {
74929
74929
  }
74930
74930
  var mKt = pKt();
74931
74931
  const wpe = /* @__PURE__ */ ya(mKt);
74932
- vr.extend(wpe);
74932
+ mr.extend(wpe);
74933
74933
  const ett = (i, e) => {
74934
74934
  const t = /* @__PURE__ */ new Set();
74935
74935
  return i.filter(((n) => {
@@ -74981,7 +74981,7 @@ function yD(i) {
74981
74981
  }
74982
74982
  function b4e(i) {
74983
74983
  const e = `${i}`.trim();
74984
- if (vr(e).isValid()) return e;
74984
+ if (mr(e).isValid()) return e;
74985
74985
  const t = vKt.find(((r) => new Date(e.replace(r.regex, r.format)).toString() !== "Invalid Date"));
74986
74986
  if (t && t.regex.test(e)) return e.replace(t.regex, t.format);
74987
74987
  const n = [{
@@ -75110,7 +75110,7 @@ const xKt = (i, e = 0.4) => {
75110
75110
  }) : i, AKt = (i) => {
75111
75111
  const { dataTable: e, fieldInfo: t } = i, n = t.find(((r) => r.role === Xo.DIMENSION && r.type === lo.DATE));
75112
75112
  return n && e.sort(((r, o) => {
75113
- const s = vr(b4e(`${r[n.fieldName]}`)), a = vr(b4e(`${o[n.fieldName]}`));
75113
+ const s = mr(b4e(`${r[n.fieldName]}`)), a = mr(b4e(`${o[n.fieldName]}`));
75114
75114
  return s.isValid() && a.isValid() ? s.isBefore(a) ? -1 : 1 : 0;
75115
75115
  })), i;
75116
75116
  }, ntt = (i, e) => {
@@ -79645,7 +79645,7 @@ Expecting ` + yI.join(", ") + ", got '" + (this.terminals_[su] || su) + "'" : j4
79645
79645
  case "INDEX":
79646
79646
  if (z.length === 0) return;
79647
79647
  const le = B && B.length > 0 ? B[0].columnid : Object.keys(z[0])[0], te = B && B.length > 1 ? B[1].columnid : Object.keys(z[0])[1];
79648
- return z.reduce((Se, Ce) => Ei(Re({}, Se), { [Ce[le]]: Ce[te] }), {});
79648
+ return z.reduce((Se, Ce) => Ti(Re({}, Se), { [Ce[le]]: Ce[te] }), {});
79649
79649
  case "RECORDSET":
79650
79650
  return new t.Recordset({ columns: B, data: z });
79651
79651
  case "TEXTSTRING":
@@ -119511,7 +119511,7 @@ const jfi = (i, e) => {
119511
119511
  const s = Fg(n.type), a = (l, u) => l && u.includes(l);
119512
119512
  if (s === "cartesian") {
119513
119513
  let l, u, c;
119514
- return n.type === "heatmap" ? (l = o && a(n == null ? void 0 : n.xField, e) ? n.xField : e[0], u = o && a(n == null ? void 0 : n.yField, e) ? n.yField : e[1], c = o && a(n == null ? void 0 : n.valField, i) ? n.valField : i[0]) : n.type === "rank" ? (l = o && a(n == null ? void 0 : n.xField, i) ? n.xField : i[0], u = o && a(n == null ? void 0 : n.yField, e) ? n.yField : e[0]) : (l = o && a(n == null ? void 0 : n.xField, e) ? n.xField : e[0], u = o && a(n == null ? void 0 : n.yField, i) ? n.yField : i[0]), Ei(Re({}, n), {
119514
+ return n.type === "heatmap" ? (l = o && a(n == null ? void 0 : n.xField, e) ? n.xField : e[0], u = o && a(n == null ? void 0 : n.yField, e) ? n.yField : e[1], c = o && a(n == null ? void 0 : n.valField, i) ? n.valField : i[0]) : n.type === "rank" ? (l = o && a(n == null ? void 0 : n.xField, i) ? n.xField : i[0], u = o && a(n == null ? void 0 : n.yField, e) ? n.yField : e[0]) : (l = o && a(n == null ? void 0 : n.xField, e) ? n.xField : e[0], u = o && a(n == null ? void 0 : n.yField, i) ? n.yField : i[0]), Ti(Re({}, n), {
119515
119515
  metrics: i,
119516
119516
  dimensions: e,
119517
119517
  timeGrain: t,
@@ -119522,7 +119522,7 @@ const jfi = (i, e) => {
119522
119522
  });
119523
119523
  } else if (s === "polar") {
119524
119524
  const l = o && a(n == null ? void 0 : n.nameField, e) ? n.nameField : e[0], u = o && a(n == null ? void 0 : n.valField, i) ? n.valField : i[0];
119525
- return Ei(Re({}, n), {
119525
+ return Ti(Re({}, n), {
119526
119526
  metrics: i,
119527
119527
  dimensions: e,
119528
119528
  data: r,
@@ -119530,7 +119530,7 @@ const jfi = (i, e) => {
119530
119530
  valField: u
119531
119531
  });
119532
119532
  }
119533
- return Ei(Re({}, n), {
119533
+ return Ti(Re({}, n), {
119534
119534
  metrics: i,
119535
119535
  dimensions: e,
119536
119536
  data: r
@@ -119544,7 +119544,7 @@ const jfi = (i, e) => {
119544
119544
  const r = Fg(t.type), o = (i == null ? void 0 : i.map((l) => l.label)) || [], s = (e == null ? void 0 : e.map((l) => l.label)) || [], a = (l, u) => l && u.includes(l);
119545
119545
  if (r === "cartesian") {
119546
119546
  let l, u, c;
119547
- return t.type === "heatmap" ? (l = n && a(t == null ? void 0 : t.xField, s) ? t.xField : s[0], u = n && a(t == null ? void 0 : t.yField, s) ? t.yField : s[1], c = n && a(t == null ? void 0 : t.valField, o) ? t.valField : o[0]) : t.type === "rank" ? (l = n && a(t == null ? void 0 : t.xField, o) ? t.xField : o[0], u = n && a(t == null ? void 0 : t.yField, s) ? t.yField : s[0]) : (l = n && a(t == null ? void 0 : t.xField, s) ? t.xField : s[0], u = n && a(t == null ? void 0 : t.yField, o) ? t.yField : o[0]), Ei(Re({}, t), {
119547
+ return t.type === "heatmap" ? (l = n && a(t == null ? void 0 : t.xField, s) ? t.xField : s[0], u = n && a(t == null ? void 0 : t.yField, s) ? t.yField : s[1], c = n && a(t == null ? void 0 : t.valField, o) ? t.valField : o[0]) : t.type === "rank" ? (l = n && a(t == null ? void 0 : t.xField, o) ? t.xField : o[0], u = n && a(t == null ? void 0 : t.yField, s) ? t.yField : s[0]) : (l = n && a(t == null ? void 0 : t.xField, s) ? t.xField : s[0], u = n && a(t == null ? void 0 : t.yField, o) ? t.yField : o[0]), Ti(Re({}, t), {
119548
119548
  metrics: o,
119549
119549
  dimensions: s,
119550
119550
  xField: l,
@@ -119553,14 +119553,14 @@ const jfi = (i, e) => {
119553
119553
  });
119554
119554
  } else if (r === "polar") {
119555
119555
  const l = n && a(t == null ? void 0 : t.nameField, s) ? t.nameField : s[0], u = n && a(t == null ? void 0 : t.valField, o) ? t.valField : o[0];
119556
- return Ei(Re({}, t), {
119556
+ return Ti(Re({}, t), {
119557
119557
  metrics: o,
119558
119558
  dimensions: s,
119559
119559
  nameField: l,
119560
119560
  valField: u
119561
119561
  });
119562
119562
  }
119563
- return Ei(Re({}, t), {
119563
+ return Ti(Re({}, t), {
119564
119564
  metrics: o,
119565
119565
  dimensions: s
119566
119566
  });
@@ -119589,12 +119589,12 @@ function Wnt(i) {
119589
119589
  if (!e)
119590
119590
  return i;
119591
119591
  if (e.length === 1)
119592
- return Ei(Re({}, i), { type: Qr.Table });
119592
+ return Ti(Re({}, i), { type: Qr.Table });
119593
119593
  const t = yue.getFieldInfo(e), n = yield yue.generateChart("", t, e);
119594
119594
  let r;
119595
119595
  const o = (l = n == null ? void 0 : n.chartAdvistorRes) == null ? void 0 : l[0];
119596
119596
  r = (u = o == null ? void 0 : o.spec) == null ? void 0 : u.type, (!r || !PQi[r]) && (r = Qr.Table);
119597
- const s = Fg(r), a = Ei(Re({}, i), { type: r });
119597
+ const s = Fg(r), a = Ti(Re({}, i), { type: r });
119598
119598
  if (s === "cartesian") {
119599
119599
  const p = (c = n == null ? void 0 : n.spec) == null ? void 0 : c.xField;
119600
119600
  a.xField = p, a.yField = (h = n == null ? void 0 : n.spec) == null ? void 0 : h.yield, Il(p) && (a.xField = p[0]);
@@ -119669,7 +119669,7 @@ function Vnt({
119669
119669
  }));
119670
119670
  const u = hA.json_to_sheet(l);
119671
119671
  hA.book_append_sheet(a, u, "Sheet1");
119672
- const c = vr().format("YYYY-MM-DD-hh-mm-ss");
119672
+ const c = mr().format("YYYY-MM-DD-hh-mm-ss");
119673
119673
  Fnt(a, `${e}-${c}.xlsx`);
119674
119674
  }
119675
119675
  function Kfi(i, e) {
@@ -119678,7 +119678,7 @@ function Kfi(i, e) {
119678
119678
  const s = hA.json_to_sheet(r.data), l = (r.name || `Sheet${o + 1}`).substring(0, 31);
119679
119679
  hA.book_append_sheet(t, s, l);
119680
119680
  });
119681
- const n = vr().format("YYYY-MM-DD-hh-mm-ss");
119681
+ const n = mr().format("YYYY-MM-DD-hh-mm-ss");
119682
119682
  Fnt(t, `${e}-${n}.xlsx`);
119683
119683
  }
119684
119684
  const Xfi = [
@@ -119812,27 +119812,27 @@ class o0i {
119812
119812
  }
119813
119813
  get(e) {
119814
119814
  return ys(this, null, function* () {
119815
- return this.request(Ei(Re({}, e), { method: "GET" }));
119815
+ return this.request(Ti(Re({}, e), { method: "GET" }));
119816
119816
  });
119817
119817
  }
119818
119818
  delete(e) {
119819
119819
  return ys(this, null, function* () {
119820
- return this.request(Ei(Re({}, e), { method: "DELETE" }));
119820
+ return this.request(Ti(Re({}, e), { method: "DELETE" }));
119821
119821
  });
119822
119822
  }
119823
119823
  put(e) {
119824
119824
  return ys(this, null, function* () {
119825
- return this.request(Ei(Re({}, e), { method: "PUT" }));
119825
+ return this.request(Ti(Re({}, e), { method: "PUT" }));
119826
119826
  });
119827
119827
  }
119828
119828
  post(e) {
119829
119829
  return ys(this, null, function* () {
119830
- return this.request(Ei(Re({}, e), { method: "POST" }));
119830
+ return this.request(Ti(Re({}, e), { method: "POST" }));
119831
119831
  });
119832
119832
  }
119833
119833
  patch(e) {
119834
119834
  return ys(this, null, function* () {
119835
- return this.request(Ei(Re({}, e), { method: "PATCH" }));
119835
+ return this.request(Ti(Re({}, e), { method: "PATCH" }));
119836
119836
  });
119837
119837
  }
119838
119838
  ping() {
@@ -119848,7 +119848,7 @@ class o0i {
119848
119848
  const n = new AbortController();
119849
119849
  this.abortControllers.set(t, n);
119850
119850
  const r = Re({}, e);
119851
- return delete r.meta, this.instance(Ei(Re({}, r), { signal: n.signal })).then((o) => {
119851
+ return delete r.meta, this.instance(Ti(Re({}, r), { signal: n.signal })).then((o) => {
119852
119852
  this.abortControllers.delete(t);
119853
119853
  const { status: s, config: a } = o;
119854
119854
  return (a == null ? void 0 : a.method) === "delete" && (s === 200 || s === 201) ? { message: "delete success", success: !0 } : { data: o.data, success: !0 };
@@ -120026,15 +120026,15 @@ const a0i = {
120026
120026
  }, qnt = (i, e = MS) => {
120027
120027
  let t = null;
120028
120028
  if (typeof i == "number")
120029
- i >= 1900 && i <= 2100 ? t = vr(String(i), "YYYY") : i >= 1e9 && i <= 2e9 ? t = vr(i * 1e3) : t = vr(i);
120029
+ i >= 1900 && i <= 2100 ? t = mr(String(i), "YYYY") : i >= 1e9 && i <= 2e9 ? t = mr(i * 1e3) : t = mr(i);
120030
120030
  else if (typeof i == "string")
120031
120031
  if (/^\d+$/.test(i)) {
120032
120032
  const n = parseInt(i, 10);
120033
- n >= 1900 && n <= 2100 ? t = vr(String(n), "YYYY") : n >= 1e9 && n <= 2e9 ? t = vr(n * 1e3) : t = vr(n);
120033
+ n >= 1900 && n <= 2100 ? t = mr(String(n), "YYYY") : n >= 1e9 && n <= 2e9 ? t = mr(n * 1e3) : t = mr(n);
120034
120034
  } else
120035
- t = vr(i);
120035
+ t = mr(i);
120036
120036
  return !t || !t.isValid() ? i : t.format(e);
120037
- }, l0i = ["time", "date", "timestamp", "metricTime"], u0i = (i) => vr(i).isValid() ? !0 : typeof i == "string" ? !isNaN(Date.parse(i)) || /^\d{4}-\d{2}-\d{2}/.test(i) : !1, c0i = (i, e) => {
120037
+ }, l0i = ["time", "date", "timestamp", "metricTime"], u0i = (i) => mr(i).isValid() ? !0 : typeof i == "string" ? !isNaN(Date.parse(i)) || /^\d{4}-\d{2}-\d{2}/.test(i) : !1, c0i = (i, e) => {
120038
120038
  const t = e.filter((n) => l0i.includes(n.toLowerCase()));
120039
120039
  return t.length > 0 ? i.map((n) => {
120040
120040
  const r = Re({}, n);
@@ -120066,8 +120066,8 @@ const a0i = {
120066
120066
  queryType: s
120067
120067
  };
120068
120068
  (i == null ? void 0 : i.type) === "custom" && (i != null && i.custom) && (g.timeRange.custom = {
120069
- from: vr(i.custom.from).format(lT),
120070
- to: vr(i.custom.to).format(lT)
120069
+ from: mr(i.custom.from).format(lT),
120070
+ to: mr(i.custom.to).format(lT)
120071
120071
  }), f && (g.timeDimension = f), r && r.length > 0 && (g.filters = r.map((m) => ({
120072
120072
  conjunction: "AND",
120073
120073
  subFilter: Re({}, m)
@@ -120097,8 +120097,8 @@ const a0i = {
120097
120097
  return p.type === "basic" ? b0i(p == null ? void 0 : p.basic) : p.type === "customSql" ? (m = p == null ? void 0 : p.sql) == null ? void 0 : m.filterCondition : null;
120098
120098
  }).filter((p) => p !== null && p.trim() !== "");
120099
120099
  return (e == null ? void 0 : e.type) === "custom" && (e != null && e.custom) && (e.custom = {
120100
- from: vr(e.custom.from).format(lT),
120101
- to: vr(e.custom.to).format(lT)
120100
+ from: mr(e.custom.from).format(lT),
120101
+ to: mr(e.custom.to).format(lT)
120102
120102
  }), t == null || t.forEach((p) => {
120103
120103
  const m = (p == null ? void 0 : p.displayName) || (p == null ? void 0 : p.label);
120104
120104
  h.metrics.push(m), h.dimensions[m] = d, h.metricDefinitions[m] = p.metricDefinitions, h.filters[m] = f || [], h.timeConstraint[m] = e || {}, h.orders[m] = l || {};
@@ -143346,13 +143346,13 @@ function $3i() {
143346
143346
  }
143347
143347
  var z3i = $3i();
143348
143348
  const alt = /* @__PURE__ */ ya(z3i);
143349
- vr.extend(wpe);
143350
- vr.extend(alt);
143351
- vr.extend(olt);
143352
- vr.extend(slt);
143353
- vr.extend(D3i);
143354
- vr.extend(N3i);
143355
- vr.extend(function(i, e) {
143349
+ mr.extend(wpe);
143350
+ mr.extend(alt);
143351
+ mr.extend(olt);
143352
+ mr.extend(slt);
143353
+ mr.extend(D3i);
143354
+ mr.extend(N3i);
143355
+ mr.extend(function(i, e) {
143356
143356
  var t = e.prototype, n = t.format;
143357
143357
  t.format = function(o) {
143358
143358
  var s = (o || "").replace("Wo", "wo");
@@ -143432,11 +143432,11 @@ var W3i = {
143432
143432
  }, llt = {
143433
143433
  // get
143434
143434
  getNow: function() {
143435
- var e = vr();
143435
+ var e = mr();
143436
143436
  return typeof e.tz == "function" ? e.tz() : e;
143437
143437
  },
143438
143438
  getFixedDate: function(e) {
143439
- return vr(e, ["YYYY-M-DD", "YYYY-MM-DD"]);
143439
+ return mr(e, ["YYYY-M-DD", "YYYY-MM-DD"]);
143440
143440
  },
143441
143441
  getEndDate: function(e) {
143442
143442
  return e.endOf("month");
@@ -143506,7 +143506,7 @@ var W3i = {
143506
143506
  },
143507
143507
  locale: {
143508
143508
  getWeekFirstDay: function(e) {
143509
- return vr().locale(D_(e)).localeData().firstDayOfWeek();
143509
+ return mr().locale(D_(e)).localeData().firstDayOfWeek();
143510
143510
  },
143511
143511
  getWeekFirstDate: function(e, t) {
143512
143512
  return t.locale(D_(e)).weekday(0);
@@ -143515,10 +143515,10 @@ var W3i = {
143515
143515
  return t.locale(D_(e)).week();
143516
143516
  },
143517
143517
  getShortWeekDays: function(e) {
143518
- return vr().locale(D_(e)).localeData().weekdaysMin();
143518
+ return mr().locale(D_(e)).localeData().weekdaysMin();
143519
143519
  },
143520
143520
  getShortMonths: function(e) {
143521
- return vr().locale(D_(e)).localeData().monthsShort();
143521
+ return mr().locale(D_(e)).localeData().monthsShort();
143522
143522
  },
143523
143523
  format: function(e, t, n) {
143524
143524
  return t.locale(D_(e)).format(n);
@@ -143527,14 +143527,14 @@ var W3i = {
143527
143527
  for (var r = D_(e), o = 0; o < n.length; o += 1) {
143528
143528
  var s = n[o], a = t;
143529
143529
  if (s.includes("wo") || s.includes("Wo")) {
143530
- for (var l = a.split("-")[0], u = a.split("-")[1], c = vr(l, "YYYY").startOf("year").locale(r), h = 0; h <= 52; h += 1) {
143530
+ for (var l = a.split("-")[0], u = a.split("-")[1], c = mr(l, "YYYY").startOf("year").locale(r), h = 0; h <= 52; h += 1) {
143531
143531
  var d = c.add(h, "week");
143532
143532
  if (d.format("Wo") === u)
143533
143533
  return d;
143534
143534
  }
143535
143535
  return null;
143536
143536
  }
143537
- var f = vr(a, s, !0).locale(r);
143537
+ var f = mr(a, s, !0).locale(r);
143538
143538
  if (f.isValid())
143539
143539
  return f;
143540
143540
  }
@@ -160991,7 +160991,7 @@ function HPi(i, e) {
160991
160991
  }
160992
160992
  function $Pi(i, e, t = {}) {
160993
160993
  var l, u, c;
160994
- const n = V1e(t), r = U1e(n), o = Ei(Re({}, t), {
160994
+ const n = V1e(t), r = U1e(n), o = Ti(Re({}, t), {
160995
160995
  styles: r
160996
160996
  });
160997
160997
  HPi(n, o);
@@ -161194,9 +161194,9 @@ const JE = (i) => {
161194
161194
  }), oht(l), nhe(BBe(e), `icon should be icon definiton, but got ${e}`), !BBe(e))
161195
161195
  return null;
161196
161196
  let c = e;
161197
- return c && typeof c.icon == "function" && (c = Ei(Re({}, c), {
161197
+ return c && typeof c.icon == "function" && (c = Ti(Re({}, c), {
161198
161198
  icon: c.icon(u.primaryColor, u.secondaryColor)
161199
- })), rhe(c.icon, `svg-${c.name}`, Ei(Re({
161199
+ })), rhe(c.icon, `svg-${c.name}`, Ti(Re({
161200
161200
  className: t,
161201
161201
  onClick: n,
161202
161202
  style: r,
@@ -161495,7 +161495,7 @@ const Ed = /* @__PURE__ */ O.forwardRef((i, e) => {
161495
161495
  }), v = s ? {
161496
161496
  msTransform: `rotate(${s}deg)`,
161497
161497
  transform: `rotate(${s}deg)`
161498
- } : void 0, b = Ei(Re({}, KPi), {
161498
+ } : void 0, b = Ti(Re({}, KPi), {
161499
161499
  className: m,
161500
161500
  style: v,
161501
161501
  viewBox: r
@@ -161908,7 +161908,7 @@ const MOi = (i, e) => {
161908
161908
  data: _
161909
161909
  });
161910
161910
  });
161911
- const m = vr().format("YYYY-MM-DD-HH-mm-ss"), v = `${n || s({ id: "dimensionAttribution" })}-${m}`;
161911
+ const m = mr().format("YYYY-MM-DD-HH-mm-ss"), v = `${n || s({ id: "dimensionAttribution" })}-${m}`;
161912
161912
  Kfi(p, v);
161913
161913
  } catch (p) {
161914
161914
  console.error("Failed to export Excel:", p);
@@ -162514,7 +162514,7 @@ const UBe = {
162514
162514
  return { foldData: n, isMetricFolded: r };
162515
162515
  }, iki = (i, e, t) => {
162516
162516
  let n = "";
162517
- return e != null && e.includes((i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName)) ? n = "metric" : t != null && t.includes((i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName)) && (n = "dimension"), !n && i.role === "measure" && (i.role = "metric"), Ei(Re({}, i), {
162517
+ return e != null && e.includes((i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName)) ? n = "metric" : t != null && t.includes((i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName)) && (n = "dimension"), !n && i.role === "measure" && (i.role = "metric"), Ti(Re({}, i), {
162518
162518
  fieldName: (i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName),
162519
162519
  role: n || (i == null ? void 0 : i.role)
162520
162520
  });
@@ -162595,7 +162595,7 @@ const UBe = {
162595
162595
  (t == null ? void 0 : t.fieldInfo) || [],
162596
162596
  e
162597
162597
  );
162598
- return o = Ei(Re({}, t), {
162598
+ return o = Ti(Re({}, t), {
162599
162599
  transformData: Re(Re({}, t == null ? void 0 : t.transformData), a)
162600
162600
  }), {
162601
162601
  dataset: o,
@@ -162720,7 +162720,7 @@ const K1e = (i) => new oki(i).transform(), ski = rki, aki = (i) => {
162720
162720
  updateChartJson: (n, r) => t((o) => {
162721
162721
  const s = o.chartJson[n];
162722
162722
  return JSON.stringify(s) === JSON.stringify(r) ? o : {
162723
- chartJson: Ei(Re({}, o.chartJson), {
162723
+ chartJson: Ti(Re({}, o.chartJson), {
162724
162724
  [n]: r
162725
162725
  })
162726
162726
  };
@@ -162788,7 +162788,7 @@ const K1e = (i) => new oki(i).transform(), ski = rki, aki = (i) => {
162788
162788
  }, hki = ({ chartProps: i, children: e }) => {
162789
162789
  const t = mo(() => {
162790
162790
  const r = (i == null ? void 0 : i.chartId) || IW(10);
162791
- return Ei(Re({}, i), {
162791
+ return Ti(Re({}, i), {
162792
162792
  chartId: r
162793
162793
  });
162794
162794
  }, [i]), n = uki(t.chartId, t, (r) => r);
@@ -162822,7 +162822,7 @@ const Eht = (i, e) => qnt(i, e || MS), SU = (i, e, t) => {
162822
162822
  return r === xl.Timestamp || r === xl.Date ? Eht(t, n) : t;
162823
162823
  }, gki = (i = [], e, t) => {
162824
162824
  const n = SU(i, e, t);
162825
- return (n === xl.Timestamp || n === xl.Date) && vr(t).isValid() ? vr(t).valueOf() : t;
162825
+ return (n === xl.Timestamp || n === xl.Date) && mr(t).isValid() ? mr(t).valueOf() : t;
162826
162826
  }, Hre = (i, e, t = !0) => {
162827
162827
  if (e == null)
162828
162828
  return t !== !1 ? new Intl.NumberFormat("en-US").format(i) : i.toString();
@@ -162874,6 +162874,14 @@ const Eht = (i, e) => qnt(i, e || MS), SU = (i, e, t) => {
162874
162874
  return ((b = t == null ? void 0 : t.dataFormat) == null ? void 0 : b[v]) || { formatType: "none" };
162875
162875
  }, c = (v) => {
162876
162876
  var y;
162877
+ if (v != null && v.includes(",")) {
162878
+ const S = v.split(",").map((x) => x.trim()).map((x) => {
162879
+ var T;
162880
+ const A = (T = t == null ? void 0 : t.dataFormat) == null ? void 0 : T[x];
162881
+ return (A == null ? void 0 : A.suffix) || "";
162882
+ }), C = S[0];
162883
+ return C && S.every((x) => x === C) ? C : "";
162884
+ }
162877
162885
  const b = (y = t == null ? void 0 : t.dataFormat) == null ? void 0 : y[v];
162878
162886
  return (b == null ? void 0 : b.suffix) || "";
162879
162887
  }, h = (v, b) => {
@@ -162901,7 +162909,7 @@ const Eht = (i, e) => qnt(i, e || MS), SU = (i, e, t) => {
162901
162909
  }
162902
162910
  return b;
162903
162911
  }, p = (v, b, y) => {
162904
- if (console.log("formatValueWithoutUnit", v, b, y), !v || b === null || b === void 0)
162912
+ if (!v || b === null || b === void 0)
162905
162913
  return;
162906
162914
  const _ = d(v, b);
162907
162915
  if (_ === xl.Timestamp || _ === xl.Date)
@@ -163056,7 +163064,7 @@ const Eht = (i, e) => qnt(i, e || MS), SU = (i, e, t) => {
163056
163064
  };
163057
163065
  }),
163058
163066
  columns: [],
163059
- indicators: S.map((C) => Ei(Re({}, C), {
163067
+ indicators: S.map((C) => Ti(Re({}, C), {
163060
163068
  sort: !0
163061
163069
  }))
163062
163070
  }, h), u);
@@ -163089,7 +163097,7 @@ const Eht = (i, e) => qnt(i, e || MS), SU = (i, e, t) => {
163089
163097
  sort: !0
163090
163098
  };
163091
163099
  }),
163092
- indicators: m.map((v) => Ei(Re({}, v), {
163100
+ indicators: m.map((v) => Ti(Re({}, v), {
163093
163101
  sort: !0
163094
163102
  }))
163095
163103
  }, h), u);
@@ -163132,7 +163140,7 @@ const Eht = (i, e) => qnt(i, e || MS), SU = (i, e, t) => {
163132
163140
  );
163133
163141
  }, Rht = (i) => {
163134
163142
  const { transformedProps: e } = bU("PivotTable", i), { formatValueWithoutUnit: t, getUnit: n } = Yk(), r = yki(e, t, n);
163135
- return /* @__PURE__ */ Me(_ki, Ei(Re({}, e), { options: r }));
163143
+ return /* @__PURE__ */ Me(_ki, Ti(Re({}, e), { options: r }));
163136
163144
  }, Cki = (i, e) => {
163137
163145
  const t = i || [], n = t.map((o) => ({
163138
163146
  dimensionKey: "metricId",
@@ -215623,7 +215631,7 @@ const rze = (i, e = LT) => {
215623
215631
  const c = s(u);
215624
215632
  return o(n ? c : e, u[e]);
215625
215633
  }
215626
- }, l = (u) => Ei(Re({}, u), {
215634
+ }, l = (u) => Ti(Re({}, u), {
215627
215635
  value: o(i, u == null ? void 0 : u.value)
215628
215636
  });
215629
215637
  return {
@@ -215745,44 +215753,44 @@ const qKi = [Qr.Pie, Qr.Donut, Qr.Radar, Qr.Funnel], YKi = {
215745
215753
  [Qr.Funnel]: { minAngle: 60 }
215746
215754
  };
215747
215755
  function XKi(i) {
215748
- var _, S;
215749
- const { props: e } = i, { type: t, data: n, dataset: r, metrics: o } = e, a = (((_ = r == null ? void 0 : r.transformData) == null ? void 0 : _.data) || n || []).length, l = (o == null ? void 0 : o.length) || 1, c = ((S = r == null ? void 0 : r.transformData) == null ? void 0 : S.isMetricFolded) ? Math.floor(a / l) : a, [h, d] = tn({
215756
+ var y, _;
215757
+ const { props: e } = i, { type: t, data: n, dataset: r, metrics: o } = e, a = (((y = r == null ? void 0 : r.transformData) == null ? void 0 : y.data) || n || []).length, l = (o == null ? void 0 : o.length) || 1, c = ((_ = r == null ? void 0 : r.transformData) == null ? void 0 : _.isMetricFolded) ? Math.floor(a / l) : a, [h, d] = tn({
215750
215758
  width: 0,
215751
215759
  height: 0
215752
215760
  }), f = Ri(null);
215753
215761
  Pn(() => {
215754
- const C = document.querySelector(".chart-content");
215755
- if (!C)
215762
+ const S = document.querySelector(".chart-content");
215763
+ if (!S)
215756
215764
  return;
215757
- let x = 0;
215758
- const A = () => {
215759
- const E = C.clientWidth;
215760
- E !== x && (x = E, d({
215761
- width: E,
215762
- height: C.clientHeight
215765
+ let C = 0;
215766
+ const x = () => {
215767
+ const T = S.clientWidth;
215768
+ T !== C && (C = T, d({
215769
+ width: T,
215770
+ height: S.clientHeight
215763
215771
  }));
215764
215772
  };
215765
- A();
215766
- const T = new ResizeObserver(() => {
215773
+ x();
215774
+ const A = new ResizeObserver(() => {
215767
215775
  f.current && clearTimeout(f.current), f.current = setTimeout(() => {
215768
- A();
215776
+ x();
215769
215777
  }, 500);
215770
215778
  });
215771
- return T.observe(C), () => {
215772
- T.disconnect(), f.current && clearTimeout(f.current);
215779
+ return A.observe(S), () => {
215780
+ A.disconnect(), f.current && clearTimeout(f.current);
215773
215781
  };
215774
215782
  }, []);
215775
- const g = (C, x) => Math.floor(h.width / (C + x)), p = (C) => Math.floor(360 / C), m = (C, x) => C <= x * 3, v = () => {
215783
+ const g = (S, C) => Math.floor(h.width / (S + C)), p = (S) => Math.floor(360 / S), m = () => {
215776
215784
  if (!t)
215777
215785
  return { visible: !1 };
215778
215786
  if (c === 0)
215779
215787
  return { visible: !1 };
215780
215788
  if (qKi.includes(t)) {
215781
- const R = KKi[t];
215782
- if (!R)
215789
+ const E = KKi[t];
215790
+ if (!E)
215783
215791
  return { visible: !1 };
215784
- const M = R.minAngle, P = p(M);
215785
- return c <= P * 3 ? {
215792
+ const R = E.minAngle, M = p(R);
215793
+ return c <= M ? {
215786
215794
  visible: !0,
215787
215795
  position: "outside",
215788
215796
  overlap: {
@@ -215790,32 +215798,26 @@ function XKi(i) {
215790
215798
  }
215791
215799
  } : { visible: !1 };
215792
215800
  }
215793
- const C = YKi[t];
215794
- if (!C)
215801
+ const S = YKi[t];
215802
+ if (!S)
215795
215803
  return { visible: !1 };
215796
- const x = C.labelWidth, A = C.minGap, T = C.position || "top";
215804
+ const C = S.labelWidth, x = S.minGap, A = S.position || "top";
215797
215805
  if (h.width === 0)
215798
215806
  return { visible: !1 };
215799
- const E = g(x, A);
215800
- return c <= E ? {
215807
+ const T = g(C, x);
215808
+ return c <= T ? {
215801
215809
  visible: !0,
215802
- position: T
215803
- } : m(c, E) ? {
215804
- visible: !0,
215805
- position: T,
215806
- overlap: {
215807
- hideOnHit: !0
215808
- }
215810
+ position: A
215809
215811
  } : { visible: !1 };
215810
- }, b = () => h, y = (C) => {
215811
- if (!(!C || C.length === 0))
215812
- return C.map((x) => ({
215813
- y: x.value,
215812
+ }, v = () => h, b = (S) => {
215813
+ if (!(!S || S.length === 0))
215814
+ return S.map((C) => ({
215815
+ y: C.value,
215814
215816
  label: {
215815
215817
  visible: !0,
215816
215818
  position: "insideEndTop",
215817
215819
  // 使用内部靠上位置,避免超出 y 轴
215818
- text: x.label ? `${x.label}: ${x.value}` : String(x.value),
215820
+ text: C.label ? `${C.label}: ${C.value}` : String(C.value),
215819
215821
  style: {
215820
215822
  fill: "#F55D3E",
215821
215823
  fontSize: 12,
@@ -215848,12 +215850,12 @@ function XKi(i) {
215848
215850
  }));
215849
215851
  };
215850
215852
  return {
215851
- label: v(),
215852
- getDimensions: b,
215853
- buildMarkLine: y
215853
+ label: m(),
215854
+ getDimensions: v,
215855
+ buildMarkLine: b
215854
215856
  };
215855
215857
  }
215856
- const FT = (i, e, t) => e ? vr(i).isValid() ? vr(i).valueOf() : Number(i) : t ? t.get(i) : Number(i), ZKi = (i, e, t, n) => {
215858
+ const FT = (i, e, t) => e ? mr(i).isValid() ? mr(i).valueOf() : Number(i) : t ? t.get(i) : Number(i), ZKi = (i, e, t, n) => {
215857
215859
  if (i === void 0) return !1;
215858
215860
  const r = FT(e.from, t, n), o = e.to !== void 0 ? FT(e.to, t, n) : void 0;
215859
215861
  return r === void 0 ? !1 : o === void 0 ? i > r : i > r && i <= o;
@@ -215866,44 +215868,47 @@ const FT = (i, e, t) => e ? vr(i).isValid() ? vr(i).valueOf() : Number(i) : t ?
215866
215868
  FT(s[c][e], r, o) === l && u.push(c);
215867
215869
  if (u.length === 2) {
215868
215870
  const [c, h] = u, d = s[c][t], f = s[h][t];
215869
- !d && f ? s[c] = Ei(Re({}, s[c]), { [t]: f, _isHidden: !0 }) : d && !f && (s[h] = Ei(Re({}, s[h]), { [t]: d, _isHidden: !0 }));
215871
+ !d && f ? s[c] = Ti(Re({}, s[c]), { [t]: f, _isHidden: !0 }) : d && !f && (s[h] = Ti(Re({}, s[h]), { [t]: d, _isHidden: !0 }));
215870
215872
  }
215871
215873
  }
215872
215874
  return s;
215873
215875
  }, JKi = ({
215874
215876
  data: i,
215875
- xField: e,
215876
- yField: t,
215877
- getFieldType: n,
215878
- dashSegments: r,
215879
- metrics: o
215877
+ actualData: e,
215878
+ xField: t,
215879
+ yField: n,
215880
+ getFieldType: r,
215881
+ dashSegments: o,
215882
+ metrics: s
215880
215883
  }) => {
215881
- const s = (o == null ? void 0 : o.length) || 1, a = mo(() => {
215882
- var m;
215883
- if (!r || r.length === 0)
215884
- return i;
215885
- const c = e || (i.length > 0 ? Object.keys(i[0])[0] : "time"), h = (m = i[0]) == null ? void 0 : m[c], d = n == null ? void 0 : n(c, h), f = d === xl.Timestamp || d === xl.Date, g = d === xl.String || d === xl.Other ? new Map(i.map((v, b) => [v[c], b])) : void 0;
215886
- return (s > 1 ? QKi(i, c, t, r, f, g) : i).map((v) => {
215887
- const b = v[c], y = FT(b, f, g), _ = r.some((C) => ZKi(y, C, f, g)), S = r.some((C) => {
215888
- const x = FT(C.from, f, g);
215889
- return y === x;
215884
+ const a = (s == null ? void 0 : s.length) || 1, l = e || i, u = mo(() => {
215885
+ var y;
215886
+ if (!o || o.length === 0)
215887
+ return l;
215888
+ const f = t || (l.length > 0 ? Object.keys(l[0])[0] : "time"), g = (y = l[0]) == null ? void 0 : y[f], p = r == null ? void 0 : r(f, g), m = p === xl.Timestamp || p === xl.Date, v = p === xl.String || p === xl.Other ? new Map(l.map((_, S) => [_[f], S])) : void 0;
215889
+ return (a > 1 ? QKi(l, f, n, o, m, v) : l).map((_) => {
215890
+ const S = _[f], C = FT(S, m, v), x = o.some((T) => ZKi(C, T, m, v)), A = o.some((T) => {
215891
+ const E = FT(T.from, m, v);
215892
+ return C === E;
215890
215893
  });
215891
- return Ei(Re({}, v), {
215892
- _isDashLine: _,
215893
- _isSplitPoint: S
215894
+ return Ti(Re({}, _), {
215895
+ _isDashLine: x,
215896
+ _isSplitPoint: A
215894
215897
  });
215895
215898
  });
215896
- }, [i, r, e, t, n, s]), l = Fpt(), u = {
215899
+ }, [l, o, t, n, r, a]), c = Fpt(), h = i.length === 1, d = {
215897
215900
  line: {
215898
- style: Ei(Re({}, l.line.style), {
215899
- lineDash: (c) => c._isDashLine ? [5, 5] : [0]
215901
+ style: Ti(Re({}, c.line.style), {
215902
+ lineDash: (f) => f._isDashLine ? [5, 5] : [0]
215900
215903
  })
215901
215904
  },
215902
- point: l.point
215905
+ point: Ti(Re({}, c.point), {
215906
+ style: h ? { fillOpacity: 1, strokeOpacity: 1, size: 10 } : { fillOpacity: 0, strokeOpacity: 0, size: 0 }
215907
+ })
215903
215908
  };
215904
215909
  return {
215905
- processedData: a,
215906
- style: u
215910
+ processedData: u,
215911
+ style: d
215907
215912
  };
215908
215913
  };
215909
215914
  function tp(i, e, t) {
@@ -215939,7 +215944,7 @@ function oO(i) {
215939
215944
  const eXi = (i, e, t) => {
215940
215945
  var d;
215941
215946
  const { data: n, xField: r = "time", yField: o = "value", dimensions: s, dataset: a, xAxis: l, yAxis: u } = i, c = A8(a, { xField: r, yField: o, dimensions: s }), h = Vbe(c);
215942
- return Re(Ei(Re({
215947
+ return Re(Ti(Re({
215943
215948
  type: "area",
215944
215949
  data: [
215945
215950
  {
@@ -215956,7 +215961,7 @@ const eXi = (i, e, t) => {
215956
215961
  }, tXi = tp("Area", IKi, eXi), iXi = (i, e, t) => {
215957
215962
  var f;
215958
215963
  const { data: n, xField: r = "time", yField: o = "value", dimensions: s, dataset: a, threshold: l, xAxis: u, yAxis: c } = i, h = A8(a, { xField: r, yField: o, dimensions: s }), d = t.buildMarkLine(l);
215959
- return Ei(Re({
215964
+ return Ti(Re({
215960
215965
  type: "bar",
215961
215966
  data: [
215962
215967
  {
@@ -216045,7 +216050,7 @@ function rXi(i, e) {
216045
216050
  return (r) => n ? t(n, r) : r;
216046
216051
  }
216047
216052
  function oXi(i, e, t) {
216048
- return i ? i.map((n) => Ei(Re({}, n), {
216053
+ return i ? i.map((n) => Ti(Re({}, n), {
216049
216054
  _seriesType: e,
216050
216055
  _seriesIndex: t
216051
216056
  })) : [];
@@ -216053,7 +216058,7 @@ function oXi(i, e, t) {
216053
216058
  function sXi(i, e, t) {
216054
216059
  return {
216055
216060
  mark: {
216056
- updateTitle: (n) => Ei(Re({}, n), {
216061
+ updateTitle: (n) => Ti(Re({}, n), {
216057
216062
  value: t.formatValue(e, n == null ? void 0 : n.value)
216058
216063
  }),
216059
216064
  content: {
@@ -216070,7 +216075,7 @@ function sXi(i, e, t) {
216070
216075
  }
216071
216076
  },
216072
216077
  dimension: {
216073
- updateTitle: (n) => Ei(Re({}, n), {
216078
+ updateTitle: (n) => Ti(Re({}, n), {
216074
216079
  value: t.formatValue(e, n == null ? void 0 : n.value)
216075
216080
  }),
216076
216081
  content: {
@@ -216113,7 +216118,7 @@ const uze = ((jje = Unt.colorScheme) == null ? void 0 : jje.default) || [
216113
216118
  R && T[R] !== void 0 && (E[R] = T[R]);
216114
216119
  }), E;
216115
216120
  });
216116
- return Ei(Re({}, b), {
216121
+ return Ti(Re({}, b), {
216117
216122
  data: A
216118
216123
  });
216119
216124
  }), s = [], a = [], l = [];
@@ -216161,7 +216166,7 @@ const uze = ((jje = Unt.colorScheme) == null ? void 0 : jje.default) || [
216161
216166
  const v = m[d];
216162
216167
  return typeof v == "number" ? v : typeof v == "string" && parseFloat(v) || 0;
216163
216168
  });
216164
- return Ei(Re({
216169
+ return Ti(Re({
216165
216170
  type: "pie",
216166
216171
  data: [
216167
216172
  {
@@ -216205,7 +216210,7 @@ const uze = ((jje = Unt.colorScheme) == null ? void 0 : jje.default) || [
216205
216210
  const { data: n, dataset: r, nameField: o = "name", valField: s = "value" } = i, a = T8(r, { nameField: o, valField: s }), { nameField: l, valField: u } = a, h = [...((d = r == null ? void 0 : r.transformData) == null ? void 0 : d.data) || n].sort(
216206
216211
  (f, g) => Number(g[u]) - Number(f[u])
216207
216212
  );
216208
- return Ei(Re({
216213
+ return Ti(Re({
216209
216214
  type: "funnel",
216210
216215
  data: [
216211
216216
  {
@@ -216216,7 +216221,7 @@ const uze = ((jje = Unt.colorScheme) == null ? void 0 : jje.default) || [
216216
216221
  categoryField: l,
216217
216222
  valueField: u
216218
216223
  }, oO({ axesConfig: a, dataset: r, tools: e, chartConfig: t })), {
216219
- legends: Ei(Re({}, oO({ axesConfig: a, dataset: r, tools: e, chartConfig: t }).legends), {
216224
+ legends: Ti(Re({}, oO({ axesConfig: a, dataset: r, tools: e, chartConfig: t }).legends), {
216220
216225
  visible: !0,
216221
216226
  padding: {
216222
216227
  top: 40
@@ -218465,15 +218470,27 @@ const RB = {
218465
218470
  return /* @__PURE__ */ Me(tQi, Re({}, e));
218466
218471
  }, nQi = (i, e, t) => {
218467
218472
  var y;
218468
- const { data: n, dataset: r, xField: o = "time", yField: s = "value", dimensions: a, dashSegments: l, metrics: u, threshold: c, xAxis: h, yAxis: d } = i, f = A8(r, { xField: o, yField: s, dimensions: a }), g = Vbe(f), p = ((y = r == null ? void 0 : r.transformData) == null ? void 0 : y.data) || n, { processedData: m, style: v } = JKi({
218469
- data: p,
218473
+ const {
218474
+ data: n,
218475
+ dataset: r,
218476
+ xField: o = "time",
218477
+ yField: s = "value",
218478
+ dimensions: a,
218479
+ dashSegments: l,
218480
+ metrics: u,
218481
+ threshold: c,
218482
+ xAxis: h,
218483
+ yAxis: d
218484
+ } = i, f = A8(r, { xField: o, yField: s, dimensions: a }), g = Vbe(f), p = ((y = r == null ? void 0 : r.transformData) == null ? void 0 : y.data) || n, { processedData: m, style: v } = JKi({
218485
+ data: n,
218486
+ actualData: p,
218470
218487
  xField: g,
218471
218488
  getFieldType: e.getFieldType,
218472
218489
  dashSegments: l,
218473
218490
  yField: f == null ? void 0 : f.yField,
218474
218491
  metrics: u
218475
218492
  }), b = t.buildMarkLine(c);
218476
- return Ei(Re(Re({
218493
+ return Ti(Re(Re({
218477
218494
  type: "line",
218478
218495
  data: [
218479
218496
  {
@@ -218490,7 +218507,7 @@ const RB = {
218490
218507
  }, cmt = tp("Line", HKi, nQi), rQi = (i, e, t) => {
218491
218508
  var l;
218492
218509
  const { data: n = [], dataset: r, nameField: o = "name", valField: s = "value" } = i, a = T8(r, { nameField: o, valField: s });
218493
- return Ei(Re({
218510
+ return Ti(Re({
218494
218511
  type: "pie",
218495
218512
  data: [
218496
218513
  {
@@ -218506,7 +218523,7 @@ const RB = {
218506
218523
  }, hmt = tp("Pie", Bpt, rQi), oQi = (i, e, t) => {
218507
218524
  var f;
218508
218525
  const { data: n, dataset: r, nameField: o = "name", valField: s = "value", dimensions: a } = i, l = T8(r, { nameField: o, valField: s }), { nameField: u, valField: c, seriesField: h } = l, d = ((f = r == null ? void 0 : r.transformData) == null ? void 0 : f.data) || n;
218509
- return Ei(Re({
218526
+ return Ti(Re({
218510
218527
  type: "radar",
218511
218528
  data: [
218512
218529
  {
@@ -218570,9 +218587,9 @@ const RB = {
218570
218587
  xField: s,
218571
218588
  yField: o,
218572
218589
  dimensions: a
218573
- }), d = [...((g = r == null ? void 0 : r.transformData) == null ? void 0 : g.data) || n].sort((p, m) => Number(m[c.yField]) - Number(p[c.yField])), f = Wbe({ xField: c.yField, yField: s, xAxis: l, yAxis: u }, e).map((p) => Ei(Re({}, p), {
218590
+ }), d = [...((g = r == null ? void 0 : r.transformData) == null ? void 0 : g.data) || n].sort((p, m) => Number(m[c.yField]) - Number(p[c.yField])), f = Wbe({ xField: c.yField, yField: s, xAxis: l, yAxis: u }, e).map((p) => Ti(Re({}, p), {
218574
218591
  maxWidth: 150,
218575
- label: Ei(Re({}, p.label), {
218592
+ label: Ti(Re({}, p.label), {
218576
218593
  autoRotate: !0,
218577
218594
  autoHide: !0
218578
218595
  }),
@@ -218580,7 +218597,7 @@ const RB = {
218580
218597
  visible: p.orient === "bottom"
218581
218598
  }
218582
218599
  }));
218583
- return Ei(Re({
218600
+ return Ti(Re({
218584
218601
  type: "bar",
218585
218602
  data: [
218586
218603
  {
@@ -218601,7 +218618,7 @@ const RB = {
218601
218618
  }, lQi = tp("Rank", Dpt, aQi), uQi = (i, e, t) => {
218602
218619
  var d;
218603
218620
  const { data: n, dataset: r, xField: o = "time", yField: s = "value", dimensions: a, xAxis: l, yAxis: u } = i, c = A8(r, { xField: o, yField: s, dimensions: a }), h = Vbe(c);
218604
- return Ei(Re({
218621
+ return Ti(Re({
218605
218622
  type: "scatter",
218606
218623
  data: [
218607
218624
  {
@@ -218738,7 +218755,7 @@ const RB = {
218738
218755
  );
218739
218756
  }, Qbe = (i) => {
218740
218757
  const { transformedProps: e } = bU("Table", i), t = fQi(e);
218741
- return /* @__PURE__ */ Me(gQi, Ei(Re({}, e), { options: t }));
218758
+ return /* @__PURE__ */ Me(gQi, Ti(Re({}, e), { options: t }));
218742
218759
  }, dmt = 2, pQi = () => /* @__PURE__ */ Me(
218743
218760
  "svg",
218744
218761
  {
@@ -218823,7 +218840,7 @@ const fmt = () => {
218823
218840
  var a = s, { children: r } = a, o = au(a, ["children"]);
218824
218841
  return /* @__PURE__ */ Me(
218825
218842
  "svg",
218826
- Ei(Re({
218843
+ Ti(Re({
218827
218844
  style: {
218828
218845
  margin: "0px 4px",
218829
218846
  transform: "translate(0px, 0.125em)"
@@ -219263,7 +219280,7 @@ function mmt() {
219263
219280
  throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");
219264
219281
  return i;
219265
219282
  }
219266
- const $Qi = "3.2.6", zQi = (i) => /* @__PURE__ */ O.createElement("svg", Re({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ O.createElement("path", { d: "M11.667 10.9998V18.3337H8.33398V10.9998L1.66699 1.66675H18.334L11.667 10.9998ZM10 10.4656L15.0947 3.33374H4.90527L10 10.4656Z", fill: "#89898A" })), WQi = (i) => /* @__PURE__ */ O.createElement("svg", Re({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ O.createElement("path", { d: "M6.66699 18.3327H5.00033V8.74935H1.66699L5.83366 1.66602L10.0003 8.74935H6.66699V18.3327Z", fill: "#89898A" }), /* @__PURE__ */ O.createElement("path", { d: "M15.0003 1.66602H13.3337V11.2493H10.0003L14.167 18.3327L18.3337 11.2493H15.0003V1.66602Z", fill: "#89898A" })), af = (i) => (i == null ? void 0 : i.map((e) => Ei(Re({}, e), {
219283
+ const $Qi = "3.2.8", zQi = (i) => /* @__PURE__ */ O.createElement("svg", Re({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ O.createElement("path", { d: "M11.667 10.9998V18.3337H8.33398V10.9998L1.66699 1.66675H18.334L11.667 10.9998ZM10 10.4656L15.0947 3.33374H4.90527L10 10.4656Z", fill: "#89898A" })), WQi = (i) => /* @__PURE__ */ O.createElement("svg", Re({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ O.createElement("path", { d: "M6.66699 18.3327H5.00033V8.74935H1.66699L5.83366 1.66602L10.0003 8.74935H6.66699V18.3327Z", fill: "#89898A" }), /* @__PURE__ */ O.createElement("path", { d: "M15.0003 1.66602H13.3337V11.2493H10.0003L14.167 18.3327L18.3337 11.2493H15.0003V1.66602Z", fill: "#89898A" })), af = (i) => (i == null ? void 0 : i.map((e) => Ti(Re({}, e), {
219267
219284
  label: /* @__PURE__ */ Me(jo, { id: e.key })
219268
219285
  }))) || [], VQi = {
219269
219286
  components: {
@@ -219586,7 +219603,7 @@ const $Qi = "3.2.6", zQi = (i) => /* @__PURE__ */ O.createElement("svg", Re({ wi
219586
219603
  }
219587
219604
  }
219588
219605
  `}
219589
- `, xg = Oc((i, e) => /* @__PURE__ */ Me(ZQi, Ei(Re({}, i), { ref: e }))), $ze = [
219606
+ `, xg = Oc((i, e) => /* @__PURE__ */ Me(ZQi, Ti(Re({}, i), { ref: e }))), $ze = [
219590
219607
  { key: "none", label: "None", value: "none" },
219591
219608
  { key: "number", label: "Number", value: "number" },
219592
219609
  { key: "percentage_raw", label: "Percentage (raw)", value: "percentage_raw", desc: "1→1%" },
@@ -219654,7 +219671,7 @@ function eJi(i, e) {
219654
219671
  }), { metricsOptions: r, dataFormat: o };
219655
219672
  }
219656
219673
  function tJi(i, e, t, n) {
219657
- const { dimensions: r, timeDimension: o = {}, filters: s = [] } = i, { metricsOptions: a, dataFormat: l } = e, u = Ei(Re({}, n), { dataType: "TIMESTAMP" }), c = bmt(a), h = eye(t, c, n), d = (r == null ? void 0 : r.map(
219674
+ const { dimensions: r, timeDimension: o = {}, filters: s = [] } = i, { metricsOptions: a, dataFormat: l } = e, u = Ti(Re({}, n), { dataType: "TIMESTAMP" }), c = bmt(a), h = eye(t, c, n), d = (r == null ? void 0 : r.map(
219658
219675
  (f) => h.find(
219659
219676
  (g) => (f == null ? void 0 : f.displayName) === g.label || (f == null ? void 0 : f.dimensionId) === g.value
219660
219677
  )
@@ -219751,7 +219768,7 @@ function eye(i, e, t) {
219751
219768
  disabled: o || s
219752
219769
  };
219753
219770
  })) || [];
219754
- return n.unshift(Ei(Re({}, t), {
219771
+ return n.unshift(Ti(Re({}, t), {
219755
219772
  dataType: "TIMESTAMP",
219756
219773
  englishName: t.value,
219757
219774
  datasetName: void 0,
@@ -219846,7 +219863,7 @@ const rJi = [
219846
219863
  }, cJi = (i, e, t) => {
219847
219864
  var n, r, o, s, a, l;
219848
219865
  if ((e == null ? void 0 : e.type) === "custom" && (n = e == null ? void 0 : e.custom) != null && n.from && (r = e == null ? void 0 : e.custom) != null && r.to) {
219849
- const u = vr(e.custom.from).format(MS), c = vr(e.custom.to).format(MS);
219866
+ const u = mr(e.custom.from).format(MS), c = mr(e.custom.to).format(MS);
219850
219867
  return `${u}-${c}`;
219851
219868
  }
219852
219869
  if ((e == null ? void 0 : e.type) === "advanced" && e.advanced) {
@@ -219905,7 +219922,7 @@ const rJi = [
219905
219922
  type: "custom",
219906
219923
  custom: {
219907
219924
  from: l.advanced.custom.from,
219908
- to: l.advanced.custom.to || vr().format("YYYY-MM-DD HH:mm:ss")
219925
+ to: l.advanced.custom.to || mr().format("YYYY-MM-DD HH:mm:ss")
219909
219926
  }
219910
219927
  } : {};
219911
219928
  }
@@ -219915,8 +219932,8 @@ const rJi = [
219915
219932
  return (i == null ? void 0 : i.type) === "custom" && ((e = i == null ? void 0 : i.custom) != null && e.from) ? {
219916
219933
  type: "custom",
219917
219934
  custom: {
219918
- from: vr(i.custom.from).format("YYYY-MM-DD HH:mm:ss"),
219919
- to: vr(i.custom.to).format("YYYY-MM-DD HH:mm:ss")
219935
+ from: mr(i.custom.from).format("YYYY-MM-DD HH:mm:ss"),
219936
+ to: mr(i.custom.to).format("YYYY-MM-DD HH:mm:ss")
219920
219937
  }
219921
219938
  } : i;
219922
219939
  }, { Text: N6 } = KE, gJi = QE`
@@ -220048,7 +220065,7 @@ const rJi = [
220048
220065
  `}
220049
220066
  `, Vze = (i) => /* @__PURE__ */ Me(mJi, { children: /* @__PURE__ */ Me(
220050
220067
  gut,
220051
- Ei(Re({}, i), {
220068
+ Ti(Re({}, i), {
220052
220069
  fullscreen: !1,
220053
220070
  headerRender: ({ value: e, onChange: t }) => {
220054
220071
  const n = e.year(), r = e.format("MMM");
@@ -220248,8 +220265,8 @@ const rJi = [
220248
220265
  ] });
220249
220266
  }, CJi = ({ type: i, setClose: e, setApply: t, timeRange: n }) => {
220250
220267
  const [r, o] = tn({
220251
- from: vr().subtract(7, "day"),
220252
- to: vr()
220268
+ from: mr().subtract(7, "day"),
220269
+ to: mr()
220253
220270
  }), [s, a] = tn({
220254
220271
  type: "lastPeriod",
220255
220272
  lastPeriod: { range: 7, unit: "day" }
@@ -220257,8 +220274,8 @@ const rJi = [
220257
220274
  return Pn(() => {
220258
220275
  var u, c;
220259
220276
  i === "custom" && (u = n == null ? void 0 : n.custom) != null && u.from && (c = n == null ? void 0 : n.custom) != null && c.to && o({
220260
- from: vr(n.custom.from),
220261
- to: vr(n.custom.to)
220277
+ from: mr(n.custom.from),
220278
+ to: mr(n.custom.to)
220262
220279
  }), i === "advanced" && n != null && n.advanced && a(n.advanced);
220263
220280
  }, [n]), /* @__PURE__ */ an(qQi, { className: "time-popover-container", children: [
220264
220281
  /* @__PURE__ */ an("div", { className: "time-popover-header", children: [
@@ -220287,7 +220304,7 @@ const rJi = [
220287
220304
  /* @__PURE__ */ Me("div", { className: "time-footer-btn cancel-btn", children: /* @__PURE__ */ Me(xg, { type: "text", onClick: () => e(), children: /* @__PURE__ */ Me(jo, { id: "cancel" }) }) }),
220288
220305
  /* @__PURE__ */ Me("div", { className: "time-footer-btn apply-btn", children: /* @__PURE__ */ Me(xg, { type: "text", onClick: () => {
220289
220306
  if (i === "custom") {
220290
- const u = vr(r.from).format(MS), c = vr(r.to).format(MS);
220307
+ const u = mr(r.from).format(MS), c = mr(r.to).format(MS);
220291
220308
  t({
220292
220309
  type: "custom",
220293
220310
  custom: { from: u, to: c }
@@ -220441,14 +220458,14 @@ const tye = (i) => {
220441
220458
  metricTime: f
220442
220459
  });
220443
220460
  let E = o;
220444
- znt(o) && (E = yield Wnt(Ei(Re({}, o), { data: T })));
220461
+ znt(o) && (E = yield Wnt(Ti(Re({}, o), { data: T })));
220445
220462
  let R = NIe({
220446
220463
  chartJson: E,
220447
220464
  metrics: y,
220448
220465
  dimensions: _,
220449
220466
  isInit: b
220450
220467
  });
220451
- const M = Ei(Re({}, R), {
220468
+ const M = Ti(Re({}, R), {
220452
220469
  data: T,
220453
220470
  timeGrain: S,
220454
220471
  dataFormat: C
@@ -220478,10 +220495,10 @@ const tye = (i) => {
220478
220495
  chartJson: o,
220479
220496
  metrics: S,
220480
220497
  dimensions: C
220481
- }), M = Ei(Re({}, R), {
220498
+ }), M = Ti(Re({}, R), {
220482
220499
  data: E
220483
220500
  }), P = K1e(M), k = s;
220484
- h(Ei(Re({}, k), {
220501
+ h(Ti(Re({}, k), {
220485
220502
  chartState: {
220486
220503
  chartJson: M,
220487
220504
  dataset: P,
@@ -220501,7 +220518,7 @@ const tye = (i) => {
220501
220518
  }
220502
220519
  }),
220503
220520
  queyDetailTableData: (v) => ys(null, null, function* () {
220504
- return n(i, Ei(Re({}, v), { queryType: "detailed" }), d).then((b) => r({ data: b, metricTime: f }));
220521
+ return n(i, Ti(Re({}, v), { queryType: "detailed" }), d).then((b) => r({ data: b, metricTime: f }));
220505
220522
  })
220506
220523
  };
220507
220524
  }, Cmt = 1024;
@@ -233540,7 +233557,7 @@ function Snn(i = {}) {
233540
233557
  initialSpacer() {
233541
233558
  return new Foe(e, !1);
233542
233559
  },
233543
- domEventHandlers: Ei(Re({}, o), {
233560
+ domEventHandlers: Ti(Re({}, o), {
233544
233561
  click: (s, a, l) => {
233545
233562
  if (o.click && o.click(s, a, l))
233546
233563
  return !0;
@@ -235253,7 +235270,7 @@ function pvt(i, e) {
235253
235270
  const mvt = /* @__PURE__ */ K1.define();
235254
235271
  function Qnn(i, e, t, n) {
235255
235272
  let { main: r } = i.selection, o = t - r.from, s = n - r.from;
235256
- return Ei(Re({}, i.changeByRange((a) => {
235273
+ return Ti(Re({}, i.changeByRange((a) => {
235257
235274
  if (a != r && t != n && i.sliceDoc(a.from + o, a.from + s) != i.sliceDoc(t, n))
235258
235275
  return { range: a };
235259
235276
  let l = i.toText(e);
@@ -235662,7 +235679,7 @@ class j3 {
235662
235679
  }, r ? r.timestamp : Date.now(), l, !1);
235663
235680
  }
235664
235681
  map(e) {
235665
- return new j3(this.options, this.attrs, Ei(Re({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);
235682
+ return new j3(this.options, this.attrs, Ti(Re({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);
235666
235683
  }
235667
235684
  setDisabled() {
235668
235685
  return new j3(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
@@ -235842,7 +235859,7 @@ const wye = /* @__PURE__ */ Io.define({
235842
235859
  function Aye(i, e) {
235843
235860
  const t = e.completion.apply || e.completion.label;
235844
235861
  let n = i.state.field(ff).active.find((r) => r.source == e.source);
235845
- return n instanceof HA ? (typeof t == "string" ? i.dispatch(Ei(Re({}, Qnn(i.state, t, n.from, n.to)), {
235862
+ return n instanceof HA ? (typeof t == "string" ? i.dispatch(Ti(Re({}, Qnn(i.state, t, n.from, n.to)), {
235846
235863
  annotations: mvt.of(e.completion)
235847
235864
  })) : t(i, e.completion, n.from, n.to), !0) : !1;
235848
235865
  }
@@ -236629,7 +236646,7 @@ function hon(i, e) {
236629
236646
  return n;
236630
236647
  }
236631
236648
  function don(i, e, t) {
236632
- return t.map((n) => Ei(Re({}, n), { label: n.label[0] == i ? n.label : i + n.label + e, apply: void 0 }));
236649
+ return t.map((n) => Ti(Re({}, n), { label: n.label[0] == i ? n.label : i + n.label + e, apply: void 0 }));
236633
236650
  }
236634
236651
  const fon = /^\w*$/, gon = /^[`'"\[]?\w*[`'"\]]?$/;
236635
236652
  function AVe(i) {
@@ -239527,7 +239544,7 @@ const jan = zs.div`
239527
239544
  /* @__PURE__ */ Me(Ss.Item, { label: /* @__PURE__ */ Me(jo, { id: "dimension" }), name: "dimensionId", children: /* @__PURE__ */ Me(
239528
239545
  wd,
239529
239546
  {
239530
- options: (b = (v = p == null ? void 0 : p.dimensions) == null ? void 0 : v.filter((y) => y.value !== "metricTime")) == null ? void 0 : b.map((y) => Ei(Re({}, y), { disabled: !1 }))
239547
+ options: (b = (v = p == null ? void 0 : p.dimensions) == null ? void 0 : v.filter((y) => y.value !== "metricTime")) == null ? void 0 : b.map((y) => Ti(Re({}, y), { disabled: !1 }))
239531
239548
  }
239532
239549
  ) }),
239533
239550
  /* @__PURE__ */ Me(Ss.Item, { label: /* @__PURE__ */ Me(jo, { id: "condition" }), name: "condition", children: /* @__PURE__ */ Me(wd, { options: af(ame) }) }),
@@ -239776,7 +239793,7 @@ const jan = zs.div`
239776
239793
  }
239777
239794
  u(!1);
239778
239795
  }, h = (p) => {
239779
- i[e] = Ei(Re({}, i[e]), {
239796
+ i[e] = Ti(Re({}, i[e]), {
239780
239797
  direction: p
239781
239798
  }), s == null || s(i), u(!1);
239782
239799
  }, d = ((f = n == null ? void 0 : n.find((p) => p.englishName === e || p.value === e)) == null ? void 0 : f.label) || e;
@@ -239792,7 +239809,7 @@ const jan = zs.div`
239792
239809
  {
239793
239810
  onClick: c,
239794
239811
  mode: "inline",
239795
- items: t == null ? void 0 : t.map((p) => Ei(Re({}, p), {
239812
+ items: t == null ? void 0 : t.map((p) => Ti(Re({}, p), {
239796
239813
  key: p == null ? void 0 : p.value
239797
239814
  }))
239798
239815
  }
@@ -239971,7 +239988,7 @@ function iln({ theme: i, dataSource: e }) {
239971
239988
  metrics: (U == null ? void 0 : U.metrics) || [],
239972
239989
  dimensions: (U == null ? void 0 : U.dissionOptions) || []
239973
239990
  }), p(W);
239974
- const q = Ei(Re({}, W), {
239991
+ const q = Ti(Re({}, W), {
239975
239992
  dataFormat: U == null ? void 0 : U.dataFormat
239976
239993
  });
239977
239994
  x(q, !0);
@@ -239985,7 +240002,7 @@ function iln({ theme: i, dataSource: e }) {
239985
240002
  return;
239986
240003
  }
239987
240004
  const ue = yield _(ae, v), he = tJi(K, ie, ue, c);
239988
- A(Ei(Re({}, he), {
240005
+ A(Ti(Re({}, he), {
239989
240006
  orders: (U == null ? void 0 : U.orders) || {}
239990
240007
  }));
239991
240008
  } else
@@ -239997,7 +240014,7 @@ function iln({ theme: i, dataSource: e }) {
239997
240014
  return;
239998
240015
  }
239999
240016
  const W = yield C((ie = U == null ? void 0 : U.metricIds) == null ? void 0 : ie[0], v), q = JQi(W, h, c);
240000
- A(Ei(Re({}, q), {
240017
+ A(Ti(Re({}, q), {
240001
240018
  timeGrain: U == null ? void 0 : U.timeGrain,
240002
240019
  timeRange: U == null ? void 0 : U.timeRange,
240003
240020
  filters: U == null ? void 0 : U.filters,
@@ -240008,12 +240025,12 @@ function iln({ theme: i, dataSource: e }) {
240008
240025
  (e == null ? void 0 : e.type) === "metricInsight" && (e != null && e.mql ? T(e.mql) : e != null && e.params ? E(e.params) : (f(!1), g({ visible: !0, title: "Error", message: "mql or params is missing " })));
240009
240026
  }, [e]);
240010
240027
  const R = () => {
240011
- f(!0), m({ visible: !1, config: {}, chartState: {} }), p(Re({}, b)), x(Ei(Re({}, b), { dataFormat: h == null ? void 0 : h.dataFormat }));
240028
+ f(!0), m({ visible: !1, config: {}, chartState: {} }), p(Re({}, b)), x(Ti(Re({}, b), { dataFormat: h == null ? void 0 : h.dataFormat }));
240012
240029
  }, M = () => {
240013
240030
  const { metrics: U } = b;
240014
240031
  return !(U != null && U.length);
240015
240032
  }, P = (U, W) => {
240016
- y((q) => Ei(Re({}, q), { [U]: W }));
240033
+ y((q) => Ti(Re({}, q), { [U]: W }));
240017
240034
  }, k = (U, W) => {
240018
240035
  const q = [...U, ...W], ie = (G || []).filter((X) => {
240019
240036
  let ae = !1;
@@ -240301,7 +240318,7 @@ const aln = () => {
240301
240318
  const b = (y) => {
240302
240319
  if (a.visible) {
240303
240320
  const _ = y.target;
240304
- !_.closest(".chart-content") && e.current && !e.current.contains(_) && l(Ei(Re({}, a), { visible: !1 }));
240321
+ !_.closest(".chart-content") && e.current && !e.current.contains(_) && l(Ti(Re({}, a), { visible: !1 }));
240305
240322
  }
240306
240323
  };
240307
240324
  return a != null && a.visible && document.addEventListener("mousedown", b), () => {
@@ -240383,20 +240400,20 @@ const aln = () => {
240383
240400
  }
240384
240401
  `}
240385
240402
  `, cln = (i, e) => {
240386
- const t = vr(e), n = t.year();
240387
- let r = vr(), o = vr();
240403
+ const t = mr(e), n = t.year();
240404
+ let r = mr(), o = mr();
240388
240405
  switch (i.toLowerCase()) {
240389
240406
  case "year":
240390
- r = vr(`${n}-01-01`), o = vr(`${n}-12-31`).endOf("day");
240407
+ r = mr(`${n}-01-01`), o = mr(`${n}-12-31`).endOf("day");
240391
240408
  break;
240392
240409
  case "quarter": {
240393
240410
  const a = (Math.floor(t.month() / 3) + 1 - 1) * 3 + 1;
240394
- r = vr(`${n}-${a.toString().padStart(2, "0")}-01`), o = r.add(3, "month").subtract(1, "day").endOf("day");
240411
+ r = mr(`${n}-${a.toString().padStart(2, "0")}-01`), o = r.add(3, "month").subtract(1, "day").endOf("day");
240395
240412
  break;
240396
240413
  }
240397
240414
  case "month": {
240398
240415
  const s = t.month() + 1;
240399
- r = vr(`${n}-${s.toString().padStart(2, "0")}-01`), o = r.endOf("month");
240416
+ r = mr(`${n}-${s.toString().padStart(2, "0")}-01`), o = r.endOf("month");
240400
240417
  break;
240401
240418
  }
240402
240419
  case "week":
@@ -240412,7 +240429,7 @@ const aln = () => {
240412
240429
  r = t.startOf("minute"), o = t.endOf("minute");
240413
240430
  break;
240414
240431
  default:
240415
- r = vr(`${n}-01-01`), o = vr(`${n}-12-31`).endOf("day");
240432
+ r = mr(`${n}-01-01`), o = mr(`${n}-12-31`).endOf("day");
240416
240433
  }
240417
240434
  return {
240418
240435
  type: "custom",
@@ -240529,7 +240546,7 @@ const aln = () => {
240529
240546
  ), y = () => {
240530
240547
  if (!t)
240531
240548
  return null;
240532
- const { type: x } = t, A = p4[x], T = Ei(Re({}, t), { onContextMenu: b });
240549
+ const { type: x } = t, A = p4[x], T = Ti(Re({}, t), { onContextMenu: b });
240533
240550
  return /* @__PURE__ */ Me("div", { className: "chart-content", children: /* @__PURE__ */ Me(A, Re({}, T)) });
240534
240551
  }, _ = !l.visible && !s;
240535
240552
  return /* @__PURE__ */ an(uln, { className: "drill-by-chart-container", children: [
@@ -241043,21 +241060,25 @@ function pln() {
241043
241060
  })(HB)), HB.exports;
241044
241061
  }
241045
241062
  var mln = pln();
241046
- const vln = /* @__PURE__ */ ya(mln), bln = (i, e = /* @__PURE__ */ new Date()) => `${sWt(i)}-${e.toISOString().replace(/[: ]/g, "-")}`;
241063
+ const vln = /* @__PURE__ */ ya(mln), bln = (i, e = /* @__PURE__ */ new Date()) => {
241064
+ const t = mr(e).format("YYYY-MM-DD_HH-mm-ss");
241065
+ return `${sWt(i)}-${t}`;
241066
+ };
241047
241067
  function yln(i, e, t = !1) {
241048
241068
  return (n) => {
241049
- const r = t ? document.querySelector(i) : n == null ? void 0 : n.currentTarget.closest(i);
241050
- if (!r || !(r instanceof HTMLElement))
241069
+ var s;
241070
+ let r;
241071
+ if (typeof i == "string" ? r = t ? document.querySelector(i) : ((s = n == null ? void 0 : n.currentTarget) == null ? void 0 : s.closest(i)) || null : r = i, !r || !(r instanceof HTMLElement))
241051
241072
  return console.warn("Image download failed, please refresh and try again."), null;
241052
- const o = (s) => typeof s.className == "string" ? s.className !== "mapboxgl-control-container" && !s.className.includes("chart-actions") : !0;
241073
+ const o = (a) => typeof a.className == "string" ? a.className !== "mapboxgl-control-container" && !a.className.includes("chart-actions") : !0;
241053
241074
  return vln.toJpeg(r, {
241054
241075
  bgcolor: "#fff",
241055
241076
  filter: o
241056
- }).then((s) => {
241057
- const a = document.createElement("a");
241058
- a.download = `${bln(e)}.jpg`, a.href = s, a.click();
241059
- }).catch((s) => {
241060
- console.error("Creating image failed", s);
241077
+ }).then((a) => {
241078
+ const l = document.createElement("a");
241079
+ l.download = `${bln(e)}.jpg`, l.href = a, l.click();
241080
+ }).catch((a) => {
241081
+ console.error("Creating image failed", a);
241061
241082
  });
241062
241083
  };
241063
241084
  }
@@ -241244,7 +241265,7 @@ const _ln = zs.div`
241244
241265
  }
241245
241266
  return A;
241246
241267
  }, _ = (C, x) => {
241247
- h((A) => Ei(Re({}, A), {
241268
+ h((A) => Ti(Re({}, A), {
241248
241269
  [o]: {
241249
241270
  formatType: x.formatType,
241250
241271
  decimalPlaces: x.decimalPlaces
@@ -241328,31 +241349,31 @@ const _ln = zs.div`
241328
241349
  key: "detail-data",
241329
241350
  label: "DetailData"
241330
241351
  }
241331
- ], Sln = ({ dataSource: i }) => {
241332
- var u;
241333
- const { chartJson: e, drillBy: t, setDataDetail: n } = P0(), { formatValueWithoutUnit: r } = Yk(), [o, s] = tn(!1), a = () => ys(null, null, function* () {
241334
- const c = e == null ? void 0 : e.chartName;
241352
+ ], Sln = ({ dataSource: i, containerRef: e }) => {
241353
+ var c;
241354
+ const { chartJson: t, drillBy: n, setDataDetail: r } = P0(), { formatValueWithoutUnit: o } = Yk(), [s, a] = tn(!1), l = () => ys(null, null, function* () {
241355
+ const h = t == null ? void 0 : t.chartName;
241335
241356
  try {
241336
- yln(".chart-container", c || "chart", !0)();
241337
- } catch (h) {
241338
- console.log(h);
241339
- }
241340
- }), l = () => {
241341
- var g, p;
241342
- const c = e == null ? void 0 : e.chartName;
241343
- let h = (e == null ? void 0 : e.data) || [], d = c || "chart-data-export", f = e == null ? void 0 : e.metrics;
241344
- if ((e == null ? void 0 : e.type) === Qr.Composite && (e != null && e.series)) {
241345
- const m = Yfi(e.series);
241346
- h = m.data, f = m.metrics;
241357
+ e != null && e.current && yln(e.current, h || "chart")();
241358
+ } catch (d) {
241359
+ console.log(d);
241347
241360
  }
241348
- t != null && t.visible && ((p = (g = t == null ? void 0 : t.chartState) == null ? void 0 : g.dataset) != null && p.data) && (h = t.chartState.dataset.data, d = c + "-drill-by-data-export"), Vnt({
241349
- data: h,
241350
- fileName: d,
241351
- dataFormat: e == null ? void 0 : e.dataFormat,
241352
- formatValueWithoutUnit: r,
241353
- chartType: e == null ? void 0 : e.type,
241354
- metrics: f,
241355
- valField: e == null ? void 0 : e.valField
241361
+ }), u = () => {
241362
+ var p, m;
241363
+ const h = t == null ? void 0 : t.chartName;
241364
+ let d = (t == null ? void 0 : t.data) || [], f = h || "chart-data-export", g = t == null ? void 0 : t.metrics;
241365
+ if ((t == null ? void 0 : t.type) === Qr.Composite && (t != null && t.series)) {
241366
+ const v = Yfi(t.series);
241367
+ d = v.data, g = v.metrics;
241368
+ }
241369
+ n != null && n.visible && ((m = (p = n == null ? void 0 : n.chartState) == null ? void 0 : p.dataset) != null && m.data) && (d = n.chartState.dataset.data, f = h + "-drill-by-data-export"), Vnt({
241370
+ data: d,
241371
+ fileName: f,
241372
+ dataFormat: t == null ? void 0 : t.dataFormat,
241373
+ formatValueWithoutUnit: o,
241374
+ chartType: t == null ? void 0 : t.type,
241375
+ metrics: g,
241376
+ valField: t == null ? void 0 : t.valField
241356
241377
  });
241357
241378
  };
241358
241379
  return /* @__PURE__ */ Me(Eb, { children: /* @__PURE__ */ Me(
@@ -241360,12 +241381,12 @@ const _ln = zs.div`
241360
241381
  {
241361
241382
  trigger: ["click"],
241362
241383
  menu: {
241363
- items: (u = Zoe == null ? void 0 : Zoe.filter((c) => c.key === "detail-data" || c.key === "data-format" ? !!(i != null && i.type) : !0)) == null ? void 0 : u.map((c) => ({
241364
- key: c.key,
241365
- label: /* @__PURE__ */ Me(jo, { id: c == null ? void 0 : c.label })
241384
+ items: (c = Zoe == null ? void 0 : Zoe.filter((h) => h.key === "detail-data" || h.key === "data-format" ? !!(i != null && i.type) : !0)) == null ? void 0 : c.map((h) => ({
241385
+ key: h.key,
241386
+ label: /* @__PURE__ */ Me(jo, { id: h == null ? void 0 : h.label })
241366
241387
  })),
241367
- onClick: ({ key: c }) => {
241368
- c === "download-image" ? a() : c === "download-excel" ? l() : c === "data-format" ? s(!0) : c === "detail-data" && n({ visible: !0 });
241388
+ onClick: ({ key: h }) => {
241389
+ h === "download-image" ? l() : h === "download-excel" ? u() : h === "data-format" ? a(!0) : h === "detail-data" && r({ visible: !0 });
241369
241390
  }
241370
241391
  },
241371
241392
  children: /* @__PURE__ */ Me(
@@ -241377,13 +241398,13 @@ const _ln = zs.div`
241377
241398
  content: /* @__PURE__ */ Me(
241378
241399
  Cln,
241379
241400
  {
241380
- popoverOpen: o,
241401
+ popoverOpen: s,
241381
241402
  onCancel: () => {
241382
- s(!1);
241403
+ a(!1);
241383
241404
  }
241384
241405
  }
241385
241406
  ),
241386
- open: o,
241407
+ open: s,
241387
241408
  placement: "bottomRight",
241388
241409
  arrow: !1,
241389
241410
  children: /* @__PURE__ */ Me(Ta, { className: "download-button", icon: /* @__PURE__ */ Me(Ed, { component: fln }) })
@@ -241400,7 +241421,7 @@ const _ln = zs.div`
241400
241421
  flexDirection: "column",
241401
241422
  height: "100%",
241402
241423
  width: "100%",
241403
- ".chart-container": Ei(Re({
241424
+ ".chart-container": Ti(Re({
241404
241425
  position: "relative",
241405
241426
  boxSizing: "border-box",
241406
241427
  overflow: "hidden",
@@ -241527,84 +241548,84 @@ const _ln = zs.div`
241527
241548
  }
241528
241549
  }
241529
241550
  `;
241530
- function Tln({ theme: i, isFullScreen: e, setFullScreen: t, dataSource: n }) {
241531
- const r = af(Wfi), { chartJson: o, drillBy: s, setChartJson: a } = P0(), l = o == null ? void 0 : o.type, u = o == null ? void 0 : o.availableChartTypes, c = Ri(l), h = u != null && u.length ? (() => {
241532
- const T = [c.current, ...u || []].filter(Boolean), E = r.filter((R) => T.includes(R.key));
241533
- if (c.current && !E.some((R) => R.key === c.current)) {
241534
- const R = r.find((M) => M.key === c.current);
241535
- if (R)
241536
- return [R, ...E];
241537
- }
241538
- return E;
241539
- })() : r, f = l === "composite" ? r.filter((T) => T.key === "composite") : h, g = f.slice(0, 4), [p, m] = tn(g), [v, b] = tn(), y = f.slice(4), _ = f.length > 1, S = (T) => {
241540
- var M, P;
241541
- if (Fg(T) !== "cartesian")
241551
+ function Tln({ theme: i, isFullScreen: e, setFullScreen: t, dataSource: n, containerRef: r }) {
241552
+ const o = af(Wfi), { chartJson: s, drillBy: a, setChartJson: l } = P0(), u = s == null ? void 0 : s.type, c = s == null ? void 0 : s.availableChartTypes, h = Ri(u), d = c != null && c.length ? (() => {
241553
+ const E = [h.current, ...c || []].filter(Boolean), R = o.filter((M) => E.includes(M.key));
241554
+ if (h.current && !R.some((M) => M.key === h.current)) {
241555
+ const M = o.find((P) => P.key === h.current);
241556
+ if (M)
241557
+ return [M, ...R];
241558
+ }
241559
+ return R;
241560
+ })() : o, g = u === "composite" ? o.filter((E) => E.key === "composite") : d, p = g.slice(0, 4), [m, v] = tn(p), [b, y] = tn(), _ = g.slice(4), S = g.length > 1, C = (E) => {
241561
+ var P, k;
241562
+ if (Fg(E) !== "cartesian")
241542
241563
  return !1;
241543
- const R = !!((M = o == null ? void 0 : o.dimensions) != null && M.length);
241544
- if (!R) {
241545
- const k = (P = o == null ? void 0 : o.data) == null ? void 0 : P[0];
241546
- if ((k ? Object.keys(k) : []).length < 2)
241564
+ const M = !!((P = s == null ? void 0 : s.dimensions) != null && P.length);
241565
+ if (!M) {
241566
+ const I = (k = s == null ? void 0 : s.data) == null ? void 0 : k[0];
241567
+ if ((I ? Object.keys(I) : []).length < 2)
241547
241568
  return !0;
241548
241569
  }
241549
- return !R;
241570
+ return !M;
241550
241571
  };
241551
241572
  Pn(() => {
241552
- var E;
241553
- const T = (o == null ? void 0 : o.chartName) || ((E = o == null ? void 0 : o.metrics) == null ? void 0 : E.join(", "));
241554
- b(T);
241555
- }, [o == null ? void 0 : o.chartName, o == null ? void 0 : o.metrics]), Pn(() => {
241556
- if (l)
241557
- if (Gfi(p, l))
241558
- (p == null ? void 0 : p.length) > 4 && m(g);
241573
+ var R;
241574
+ const E = (s == null ? void 0 : s.chartName) || ((R = s == null ? void 0 : s.metrics) == null ? void 0 : R.join(", "));
241575
+ y(E);
241576
+ }, [s == null ? void 0 : s.chartName, s == null ? void 0 : s.metrics]), Pn(() => {
241577
+ if (u)
241578
+ if (Gfi(m, u))
241579
+ (m == null ? void 0 : m.length) > 4 && v(p);
241559
241580
  else {
241560
- const T = h.find((E) => (E == null ? void 0 : E.key) === l);
241561
- T && m([...g, T]);
241581
+ const E = d.find((R) => (R == null ? void 0 : R.key) === u);
241582
+ E && v([...p, E]);
241562
241583
  }
241563
- }, [l]);
241564
- const C = () => {
241584
+ }, [u]);
241585
+ const x = () => {
241565
241586
  t(!0);
241566
- }, x = (T) => {
241567
- const E = jfi(T, o);
241568
- E && a(E);
241569
- }, A = Ye("chart-actions", s != null && s.visible ? "disabled" : "");
241587
+ }, A = (E) => {
241588
+ const R = jfi(E, s);
241589
+ R && l(R);
241590
+ }, T = Ye("chart-actions", a != null && a.visible ? "disabled" : "");
241570
241591
  return /* @__PURE__ */ an(wln, { theme: i, children: [
241571
- /* @__PURE__ */ Me(Jc, { title: v, children: /* @__PURE__ */ Me("div", { className: "chart-name", children: v }) }),
241572
- !e && /* @__PURE__ */ an("div", { className: A, children: [
241592
+ /* @__PURE__ */ Me(Jc, { title: b, children: /* @__PURE__ */ Me("div", { className: "chart-name", children: b }) }),
241593
+ !e && /* @__PURE__ */ an("div", { className: T, children: [
241573
241594
  /* @__PURE__ */ Me(Aln, {}),
241574
241595
  /* @__PURE__ */ Me(qan, {}),
241575
- _ && /* @__PURE__ */ an(Tp.Compact, { className: "chart-type-change", children: [
241576
- p.map((T) => /* @__PURE__ */ Me(Jc, { title: T.label, children: /* @__PURE__ */ Me(
241596
+ S && /* @__PURE__ */ an(Tp.Compact, { className: "chart-type-change", children: [
241597
+ m.map((E) => /* @__PURE__ */ Me(Jc, { title: E.label, children: /* @__PURE__ */ Me(
241577
241598
  Ta,
241578
241599
  {
241579
- className: `chart-type-button ${T.key === (o == null ? void 0 : o.type) ? "active" : ""}`,
241580
- icon: /* @__PURE__ */ Me(Ed, { component: T.icon }),
241581
- disabled: S(T.key),
241582
- onClick: () => x(T == null ? void 0 : T.key)
241600
+ className: `chart-type-button ${E.key === (s == null ? void 0 : s.type) ? "active" : ""}`,
241601
+ icon: /* @__PURE__ */ Me(Ed, { component: E.icon }),
241602
+ disabled: C(E.key),
241603
+ onClick: () => A(E == null ? void 0 : E.key)
241583
241604
  },
241584
- T.key
241585
- ) }, T.key)),
241586
- y.length > 0 && /* @__PURE__ */ Me(
241605
+ E.key
241606
+ ) }, E.key)),
241607
+ _.length > 0 && /* @__PURE__ */ Me(
241587
241608
  T1e,
241588
241609
  {
241589
241610
  trigger: ["click"],
241590
241611
  placement: "bottomRight",
241591
241612
  menu: {
241592
- items: y.map((T) => ({
241593
- key: T.key,
241594
- label: T.label,
241595
- icon: /* @__PURE__ */ Me(Ed, { component: T.icon }),
241596
- disabled: S(T.key)
241613
+ items: _.map((E) => ({
241614
+ key: E.key,
241615
+ label: E.label,
241616
+ icon: /* @__PURE__ */ Me(Ed, { component: E.icon }),
241617
+ disabled: C(E.key)
241597
241618
  })),
241598
- onClick: ({ key: T }) => {
241599
- x(T);
241619
+ onClick: ({ key: E }) => {
241620
+ A(E);
241600
241621
  }
241601
241622
  },
241602
- disabled: y.every((T) => S(T.key)),
241623
+ disabled: _.every((E) => C(E.key)),
241603
241624
  children: /* @__PURE__ */ Me(
241604
241625
  Ta,
241605
241626
  {
241606
241627
  icon: /* @__PURE__ */ Me(lht, {}),
241607
- disabled: y.every((T) => S(T.key))
241628
+ disabled: _.every((E) => C(E.key))
241608
241629
  }
241609
241630
  )
241610
241631
  }
@@ -241617,7 +241638,7 @@ function Tln({ theme: i, isFullScreen: e, setFullScreen: t, dataSource: n }) {
241617
241638
  className: "full-button",
241618
241639
  icon: /* @__PURE__ */ Me(Ed, { component: dht }),
241619
241640
  onClick: () => {
241620
- C();
241641
+ x();
241621
241642
  }
241622
241643
  }
241623
241644
  ) }),
@@ -241632,7 +241653,7 @@ function Tln({ theme: i, isFullScreen: e, setFullScreen: t, dataSource: n }) {
241632
241653
  }
241633
241654
  }
241634
241655
  ),
241635
- /* @__PURE__ */ Me(Sln, { dataSource: n })
241656
+ /* @__PURE__ */ Me(Sln, { dataSource: n, containerRef: r })
241636
241657
  ] })
241637
241658
  ] }),
241638
241659
  e && /* @__PURE__ */ Me("div", { className: "chart-actions-full-screen", children: /* @__PURE__ */ Me(
@@ -241650,7 +241671,7 @@ function Tln({ theme: i, isFullScreen: e, setFullScreen: t, dataSource: n }) {
241650
241671
  }
241651
241672
  const Eln = ({ className: i, chartStyle: e, components: t = p4 }) => {
241652
241673
  var R, M;
241653
- const { chartJson: n, dataset: r, drillBy: o, chartLoading: s, error: a, dataDetail: l, setLoading: u, setContextMenu: c } = P0(), h = Ri(null), d = ((R = mmt()) == null ? void 0 : R.theme) || "light", [f, g] = tn(null), [p, m] = tn(!1), [v, b] = tn(Ei(Re({}, n), { dataset: r })), [y, _] = tn(!((M = r == null ? void 0 : r.data) != null && M.length)), S = a0((P) => {
241674
+ const { chartJson: n, dataset: r, drillBy: o, chartLoading: s, error: a, dataDetail: l, setLoading: u, setContextMenu: c } = P0(), h = Ri(null), d = ((R = mmt()) == null ? void 0 : R.theme) || "light", [f, g] = tn(null), [p, m] = tn(!1), [v, b] = tn(Ti(Re({}, n), { dataset: r })), [y, _] = tn(!((M = r == null ? void 0 : r.data) != null && M.length)), S = a0((P) => {
241654
241675
  P.preventDefault();
241655
241676
  }, []), C = a0(
241656
241677
  (P) => {
@@ -241661,7 +241682,7 @@ const Eln = ({ className: i, chartStyle: e, components: t = p4 }) => {
241661
241682
  Pn(() => {
241662
241683
  var k, I, D;
241663
241684
  (k = n == null ? void 0 : n.dataSource) != null && k.type ? g(n.dataSource) : (g(null), u(!1));
241664
- const P = Ei(Re({}, n), { dataset: r, onContextMenu: C });
241685
+ const P = Ti(Re({}, n), { dataset: r, onContextMenu: C });
241665
241686
  if (b(P), (P.type === "tabs" || P.type === "agent-charts") && P.series) {
241666
241687
  const N = P.series.some((H) => {
241667
241688
  var j;
@@ -241681,7 +241702,8 @@ const Eln = ({ className: i, chartStyle: e, components: t = p4 }) => {
241681
241702
  theme: d,
241682
241703
  isFullScreen: p,
241683
241704
  dataSource: f,
241684
- setFullScreen: m
241705
+ setFullScreen: m,
241706
+ containerRef: h
241685
241707
  }
241686
241708
  ),
241687
241709
  /* @__PURE__ */ an("div", { className: "chart-content", children: [
@@ -241783,7 +241805,7 @@ const Eln = ({ className: i, chartStyle: e, components: t = p4 }) => {
241783
241805
  }
241784
241806
  ), kln = (i) => {
241785
241807
  const o = i, { children: e, className: t = "", node: n } = o, r = au(o, ["children", "className", "node"]);
241786
- return /* @__PURE__ */ Me("code", Ei(Re({}, r), { className: t, children: e }));
241808
+ return /* @__PURE__ */ Me("code", Ti(Re({}, r), { className: t, children: e }));
241787
241809
  }, Iln = (i) => function(t) {
241788
241810
  var m;
241789
241811
  const { children: n, className: r = "" } = t, o = String(n).trim(), s = r.includes("language-vis-chart"), {
@@ -241807,7 +241829,7 @@ const Eln = ({ className: i, chartStyle: e, components: t = p4 }) => {
241807
241829
  );
241808
241830
  const f = ((m = r.match(/language-(.*)/)) == null ? void 0 : m[1]) || "", g = l, p = g && g[f];
241809
241831
  return p ? /* @__PURE__ */ Me(p, Re({}, t)) : u ? /* @__PURE__ */ Me(u, Re({}, t)) : /* @__PURE__ */ Me(kln, Re({}, t));
241810
- }, Dln = (i) => Iln(i), Bln = (i) => Dln(Ei(Re({}, i), {
241832
+ }, Dln = (i) => Iln(i), Bln = (i) => Dln(Ti(Re({}, i), {
241811
241833
  components: Re(Re({}, p4), r1(i, "components", {}))
241812
241834
  })), Lln = {
241813
241835
  timeRange: "Time range",
@@ -243426,14 +243448,14 @@ function yun() {
243426
243448
  })($B)), $B.exports;
243427
243449
  }
243428
243450
  yun();
243429
- vr.extend(olt);
243430
- vr.extend(slt);
243431
- vr.extend(wpe);
243432
- vr.extend(alt);
243451
+ mr.extend(olt);
243452
+ mr.extend(slt);
243453
+ mr.extend(wpe);
243454
+ mr.extend(alt);
243433
243455
  const _un = (i) => {
243434
243456
  switch (i) {
243435
243457
  case "zh-CN":
243436
- vr.locale("zh-cn");
243458
+ mr.locale("zh-cn");
243437
243459
  break;
243438
243460
  }
243439
243461
  }, Cun = {
@@ -248057,7 +248079,7 @@ function fdn(i) {
248057
248079
  const e = this;
248058
248080
  e.parser = t;
248059
248081
  function t(n) {
248060
- return cdn(n, Ei(Re(Re({}, e.data("settings")), i), {
248082
+ return cdn(n, Ti(Re(Re({}, e.data("settings")), i), {
248061
248083
  // Note: these options are not in the readme.
248062
248084
  // The goal is for them to be set by plugins on `data` instead of being
248063
248085
  // passed by users.
@@ -248642,7 +248664,7 @@ function Gdn(i) {
248642
248664
  {
248643
248665
  type: "element",
248644
248666
  tagName: o,
248645
- properties: Ei(Re({}, YT(s)), {
248667
+ properties: Ti(Re({}, YT(s)), {
248646
248668
  id: "footnote-label"
248647
248669
  }),
248648
248670
  children: [{ type: "text", value: r }]
@@ -250757,10 +250779,10 @@ function Syt(i) {
250757
250779
  function xyt(i) {
250758
250780
  return i >= 64976 && i <= 65007 || a0n.has(i);
250759
250781
  }
250760
- var Ti;
250782
+ var Ei;
250761
250783
  (function(i) {
250762
250784
  i.controlCharacterInInputStream = "control-character-in-input-stream", i.noncharacterInInputStream = "noncharacter-in-input-stream", i.surrogateInInputStream = "surrogate-in-input-stream", i.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", i.endTagWithAttributes = "end-tag-with-attributes", i.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", i.unexpectedSolidusInTag = "unexpected-solidus-in-tag", i.unexpectedNullCharacter = "unexpected-null-character", i.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", i.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", i.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", i.missingEndTagName = "missing-end-tag-name", i.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", i.unknownNamedCharacterReference = "unknown-named-character-reference", i.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", i.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", i.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", i.eofBeforeTagName = "eof-before-tag-name", i.eofInTag = "eof-in-tag", i.missingAttributeValue = "missing-attribute-value", i.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", i.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", i.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", i.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", i.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", i.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", i.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", i.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", i.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", i.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", i.cdataInHtmlContent = "cdata-in-html-content", i.incorrectlyOpenedComment = "incorrectly-opened-comment", i.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", i.eofInDoctype = "eof-in-doctype", i.nestedComment = "nested-comment", i.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", i.eofInComment = "eof-in-comment", i.incorrectlyClosedComment = "incorrectly-closed-comment", i.eofInCdata = "eof-in-cdata", i.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", i.nullCharacterReference = "null-character-reference", i.surrogateCharacterReference = "surrogate-character-reference", i.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", i.controlCharacterReference = "control-character-reference", i.noncharacterCharacterReference = "noncharacter-character-reference", i.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", i.missingDoctypeName = "missing-doctype-name", i.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", i.duplicateAttribute = "duplicate-attribute", i.nonConformingDoctype = "non-conforming-doctype", i.missingDoctype = "missing-doctype", i.misplacedDoctype = "misplaced-doctype", i.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", i.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", i.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", i.openElementsLeftAfterEof = "open-elements-left-after-eof", i.abandonedHeadElementChild = "abandoned-head-element-child", i.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", i.nestedNoscriptInHead = "nested-noscript-in-head", i.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text";
250763
- })(Ti || (Ti = {}));
250785
+ })(Ei || (Ei = {}));
250764
250786
  const c0n = 65536;
250765
250787
  class h0n {
250766
250788
  constructor(e) {
@@ -250798,7 +250820,7 @@ class h0n {
250798
250820
  return this.pos++, this._addGap(), u0n(e, t);
250799
250821
  } else if (!this.lastChunkWritten)
250800
250822
  return this.endOfChunkHit = !0, Be.EOF;
250801
- return this._err(Ti.surrogateInInputStream), e;
250823
+ return this._err(Ei.surrogateInInputStream), e;
250802
250824
  }
250803
250825
  willDropParsedChunk() {
250804
250826
  return this.pos > this.bufferWaterline;
@@ -250836,7 +250858,7 @@ class h0n {
250836
250858
  return e === Be.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, Be.LINE_FEED) : e === Be.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, Cyt(e) && (e = this._processSurrogate(e)), this.handler.onParseError === null || e > 31 && e < 127 || e === Be.LINE_FEED || e === Be.CARRIAGE_RETURN || e > 159 && e < 64976 || this._checkForProblematicCharacters(e), e);
250837
250859
  }
250838
250860
  _checkForProblematicCharacters(e) {
250839
- Syt(e) ? this._err(Ti.controlCharacterInInputStream) : xyt(e) && this._err(Ti.noncharacterInInputStream);
250861
+ Syt(e) ? this._err(Ei.controlCharacterInInputStream) : xyt(e) && this._err(Ei.noncharacterInInputStream);
250840
250862
  }
250841
250863
  retreat(e) {
250842
250864
  for (this.pos -= e; this.pos < this.lastGapPos; )
@@ -251406,7 +251428,7 @@ function Tje(i) {
251406
251428
  return Ayt(i) || i === Be.SOLIDUS || i === Be.GREATER_THAN_SIGN;
251407
251429
  }
251408
251430
  function A0n(i) {
251409
- return i === Be.NULL ? Ti.nullCharacterReference : i > 1114111 ? Ti.characterReferenceOutsideUnicodeRange : Cyt(i) ? Ti.surrogateCharacterReference : xyt(i) ? Ti.noncharacterCharacterReference : Syt(i) || i === Be.CARRIAGE_RETURN ? Ti.controlCharacterReference : null;
251431
+ return i === Be.NULL ? Ei.nullCharacterReference : i > 1114111 ? Ei.characterReferenceOutsideUnicodeRange : Cyt(i) ? Ei.surrogateCharacterReference : xyt(i) ? Ei.noncharacterCharacterReference : Syt(i) || i === Be.CARRIAGE_RETURN ? Ei.controlCharacterReference : null;
251410
251432
  }
251411
251433
  class T0n {
251412
251434
  constructor(e, t) {
@@ -251414,10 +251436,10 @@ class T0n {
251414
251436
  this.preprocessor.pos = this.entityStartPos + r - 1, this._flushCodePointConsumedAsCharacterReference(n);
251415
251437
  }, t.onParseError ? {
251416
251438
  missingSemicolonAfterCharacterReference: () => {
251417
- this._err(Ti.missingSemicolonAfterCharacterReference, 1);
251439
+ this._err(Ei.missingSemicolonAfterCharacterReference, 1);
251418
251440
  },
251419
251441
  absenceOfDigitsInNumericCharacterReference: (n) => {
251420
- this._err(Ti.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + n);
251442
+ this._err(Ei.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + n);
251421
251443
  },
251422
251444
  validateNumericCharacterReference: (n) => {
251423
251445
  const r = A0n(n);
@@ -251545,7 +251567,7 @@ class T0n {
251545
251567
  r[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue();
251546
251568
  }
251547
251569
  } else
251548
- this._err(Ti.duplicateAttribute);
251570
+ this._err(Ei.duplicateAttribute);
251549
251571
  }
251550
251572
  _leaveAttrValue() {
251551
251573
  this.currentLocation && (this.currentLocation.endLine = this.preprocessor.line, this.currentLocation.endCol = this.preprocessor.col, this.currentLocation.endOffset = this.preprocessor.offset);
@@ -251556,7 +251578,7 @@ class T0n {
251556
251578
  }
251557
251579
  emitCurrentTagToken() {
251558
251580
  const e = this.currentToken;
251559
- this.prepareToken(e), e.tagID = S4(e.tagName), e.type === Qo.START_TAG ? (this.lastStartTagName = e.tagName, this.handler.onStartTag(e)) : (e.attrs.length > 0 && this._err(Ti.endTagWithAttributes), e.selfClosing && this._err(Ti.endTagWithTrailingSolidus), this.handler.onEndTag(e)), this.preprocessor.dropParsedChunk();
251581
+ this.prepareToken(e), e.tagID = S4(e.tagName), e.type === Qo.START_TAG ? (this.lastStartTagName = e.tagName, this.handler.onStartTag(e)) : (e.attrs.length > 0 && this._err(Ei.endTagWithAttributes), e.selfClosing && this._err(Ei.endTagWithTrailingSolidus), this.handler.onEndTag(e)), this.preprocessor.dropParsedChunk();
251560
251582
  }
251561
251583
  emitCurrentComment(e) {
251562
251584
  this.prepareToken(e), this.handler.onComment(e), this.preprocessor.dropParsedChunk();
@@ -251937,7 +251959,7 @@ class T0n {
251937
251959
  break;
251938
251960
  }
251939
251961
  case Be.NULL: {
251940
- this._err(Ti.unexpectedNullCharacter), this._emitCodePoint(e);
251962
+ this._err(Ei.unexpectedNullCharacter), this._emitCodePoint(e);
251941
251963
  break;
251942
251964
  }
251943
251965
  case Be.EOF: {
@@ -251961,7 +251983,7 @@ class T0n {
251961
251983
  break;
251962
251984
  }
251963
251985
  case Be.NULL: {
251964
- this._err(Ti.unexpectedNullCharacter), this._emitChars(il);
251986
+ this._err(Ei.unexpectedNullCharacter), this._emitChars(il);
251965
251987
  break;
251966
251988
  }
251967
251989
  case Be.EOF: {
@@ -251981,7 +252003,7 @@ class T0n {
251981
252003
  break;
251982
252004
  }
251983
252005
  case Be.NULL: {
251984
- this._err(Ti.unexpectedNullCharacter), this._emitChars(il);
252006
+ this._err(Ei.unexpectedNullCharacter), this._emitChars(il);
251985
252007
  break;
251986
252008
  }
251987
252009
  case Be.EOF: {
@@ -252001,7 +252023,7 @@ class T0n {
252001
252023
  break;
252002
252024
  }
252003
252025
  case Be.NULL: {
252004
- this._err(Ti.unexpectedNullCharacter), this._emitChars(il);
252026
+ this._err(Ei.unexpectedNullCharacter), this._emitChars(il);
252005
252027
  break;
252006
252028
  }
252007
252029
  case Be.EOF: {
@@ -252017,7 +252039,7 @@ class T0n {
252017
252039
  _statePlaintext(e) {
252018
252040
  switch (e) {
252019
252041
  case Be.NULL: {
252020
- this._err(Ti.unexpectedNullCharacter), this._emitChars(il);
252042
+ this._err(Ei.unexpectedNullCharacter), this._emitChars(il);
252021
252043
  break;
252022
252044
  }
252023
252045
  case Be.EOF: {
@@ -252044,15 +252066,15 @@ class T0n {
252044
252066
  break;
252045
252067
  }
252046
252068
  case Be.QUESTION_MARK: {
252047
- this._err(Ti.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = We.BOGUS_COMMENT, this._stateBogusComment(e);
252069
+ this._err(Ei.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = We.BOGUS_COMMENT, this._stateBogusComment(e);
252048
252070
  break;
252049
252071
  }
252050
252072
  case Be.EOF: {
252051
- this._err(Ti.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
252073
+ this._err(Ei.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
252052
252074
  break;
252053
252075
  }
252054
252076
  default:
252055
- this._err(Ti.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = We.DATA, this._stateData(e);
252077
+ this._err(Ei.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = We.DATA, this._stateData(e);
252056
252078
  }
252057
252079
  }
252058
252080
  // End tag open state
@@ -252063,15 +252085,15 @@ class T0n {
252063
252085
  else
252064
252086
  switch (e) {
252065
252087
  case Be.GREATER_THAN_SIGN: {
252066
- this._err(Ti.missingEndTagName), this.state = We.DATA;
252088
+ this._err(Ei.missingEndTagName), this.state = We.DATA;
252067
252089
  break;
252068
252090
  }
252069
252091
  case Be.EOF: {
252070
- this._err(Ti.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
252092
+ this._err(Ei.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
252071
252093
  break;
252072
252094
  }
252073
252095
  default:
252074
- this._err(Ti.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = We.BOGUS_COMMENT, this._stateBogusComment(e);
252096
+ this._err(Ei.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = We.BOGUS_COMMENT, this._stateBogusComment(e);
252075
252097
  }
252076
252098
  }
252077
252099
  // Tag name state
@@ -252095,11 +252117,11 @@ class T0n {
252095
252117
  break;
252096
252118
  }
252097
252119
  case Be.NULL: {
252098
- this._err(Ti.unexpectedNullCharacter), t.tagName += il;
252120
+ this._err(Ei.unexpectedNullCharacter), t.tagName += il;
252099
252121
  break;
252100
252122
  }
252101
252123
  case Be.EOF: {
252102
- this._err(Ti.eofInTag), this._emitEOFToken();
252124
+ this._err(Ei.eofInTag), this._emitEOFToken();
252103
252125
  break;
252104
252126
  }
252105
252127
  default:
@@ -252204,11 +252226,11 @@ class T0n {
252204
252226
  break;
252205
252227
  }
252206
252228
  case Be.NULL: {
252207
- this._err(Ti.unexpectedNullCharacter), this._emitChars(il);
252229
+ this._err(Ei.unexpectedNullCharacter), this._emitChars(il);
252208
252230
  break;
252209
252231
  }
252210
252232
  case Be.EOF: {
252211
- this._err(Ti.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252233
+ this._err(Ei.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252212
252234
  break;
252213
252235
  }
252214
252236
  default:
@@ -252228,11 +252250,11 @@ class T0n {
252228
252250
  break;
252229
252251
  }
252230
252252
  case Be.NULL: {
252231
- this._err(Ti.unexpectedNullCharacter), this.state = We.SCRIPT_DATA_ESCAPED, this._emitChars(il);
252253
+ this._err(Ei.unexpectedNullCharacter), this.state = We.SCRIPT_DATA_ESCAPED, this._emitChars(il);
252232
252254
  break;
252233
252255
  }
252234
252256
  case Be.EOF: {
252235
- this._err(Ti.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252257
+ this._err(Ei.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252236
252258
  break;
252237
252259
  }
252238
252260
  default:
@@ -252256,11 +252278,11 @@ class T0n {
252256
252278
  break;
252257
252279
  }
252258
252280
  case Be.NULL: {
252259
- this._err(Ti.unexpectedNullCharacter), this.state = We.SCRIPT_DATA_ESCAPED, this._emitChars(il);
252281
+ this._err(Ei.unexpectedNullCharacter), this.state = We.SCRIPT_DATA_ESCAPED, this._emitChars(il);
252260
252282
  break;
252261
252283
  }
252262
252284
  case Be.EOF: {
252263
- this._err(Ti.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252285
+ this._err(Ei.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252264
252286
  break;
252265
252287
  }
252266
252288
  default:
@@ -252305,11 +252327,11 @@ class T0n {
252305
252327
  break;
252306
252328
  }
252307
252329
  case Be.NULL: {
252308
- this._err(Ti.unexpectedNullCharacter), this._emitChars(il);
252330
+ this._err(Ei.unexpectedNullCharacter), this._emitChars(il);
252309
252331
  break;
252310
252332
  }
252311
252333
  case Be.EOF: {
252312
- this._err(Ti.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252334
+ this._err(Ei.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252313
252335
  break;
252314
252336
  }
252315
252337
  default:
@@ -252329,11 +252351,11 @@ class T0n {
252329
252351
  break;
252330
252352
  }
252331
252353
  case Be.NULL: {
252332
- this._err(Ti.unexpectedNullCharacter), this.state = We.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(il);
252354
+ this._err(Ei.unexpectedNullCharacter), this.state = We.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(il);
252333
252355
  break;
252334
252356
  }
252335
252357
  case Be.EOF: {
252336
- this._err(Ti.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252358
+ this._err(Ei.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252337
252359
  break;
252338
252360
  }
252339
252361
  default:
@@ -252357,11 +252379,11 @@ class T0n {
252357
252379
  break;
252358
252380
  }
252359
252381
  case Be.NULL: {
252360
- this._err(Ti.unexpectedNullCharacter), this.state = We.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(il);
252382
+ this._err(Ei.unexpectedNullCharacter), this.state = We.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(il);
252361
252383
  break;
252362
252384
  }
252363
252385
  case Be.EOF: {
252364
- this._err(Ti.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252386
+ this._err(Ei.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
252365
252387
  break;
252366
252388
  }
252367
252389
  default:
@@ -252399,7 +252421,7 @@ class T0n {
252399
252421
  break;
252400
252422
  }
252401
252423
  case Be.EQUALS_SIGN: {
252402
- this._err(Ti.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = We.ATTRIBUTE_NAME;
252424
+ this._err(Ei.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = We.ATTRIBUTE_NAME;
252403
252425
  break;
252404
252426
  }
252405
252427
  default:
@@ -252427,11 +252449,11 @@ class T0n {
252427
252449
  case Be.QUOTATION_MARK:
252428
252450
  case Be.APOSTROPHE:
252429
252451
  case Be.LESS_THAN_SIGN: {
252430
- this._err(Ti.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(e);
252452
+ this._err(Ei.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(e);
252431
252453
  break;
252432
252454
  }
252433
252455
  case Be.NULL: {
252434
- this._err(Ti.unexpectedNullCharacter), this.currentAttr.name += il;
252456
+ this._err(Ei.unexpectedNullCharacter), this.currentAttr.name += il;
252435
252457
  break;
252436
252458
  }
252437
252459
  default:
@@ -252460,7 +252482,7 @@ class T0n {
252460
252482
  break;
252461
252483
  }
252462
252484
  case Be.EOF: {
252463
- this._err(Ti.eofInTag), this._emitEOFToken();
252485
+ this._err(Ei.eofInTag), this._emitEOFToken();
252464
252486
  break;
252465
252487
  }
252466
252488
  default:
@@ -252485,7 +252507,7 @@ class T0n {
252485
252507
  break;
252486
252508
  }
252487
252509
  case Be.GREATER_THAN_SIGN: {
252488
- this._err(Ti.missingAttributeValue), this.state = We.DATA, this.emitCurrentTagToken();
252510
+ this._err(Ei.missingAttributeValue), this.state = We.DATA, this.emitCurrentTagToken();
252489
252511
  break;
252490
252512
  }
252491
252513
  default:
@@ -252505,11 +252527,11 @@ class T0n {
252505
252527
  break;
252506
252528
  }
252507
252529
  case Be.NULL: {
252508
- this._err(Ti.unexpectedNullCharacter), this.currentAttr.value += il;
252530
+ this._err(Ei.unexpectedNullCharacter), this.currentAttr.value += il;
252509
252531
  break;
252510
252532
  }
252511
252533
  case Be.EOF: {
252512
- this._err(Ti.eofInTag), this._emitEOFToken();
252534
+ this._err(Ei.eofInTag), this._emitEOFToken();
252513
252535
  break;
252514
252536
  }
252515
252537
  default:
@@ -252529,11 +252551,11 @@ class T0n {
252529
252551
  break;
252530
252552
  }
252531
252553
  case Be.NULL: {
252532
- this._err(Ti.unexpectedNullCharacter), this.currentAttr.value += il;
252554
+ this._err(Ei.unexpectedNullCharacter), this.currentAttr.value += il;
252533
252555
  break;
252534
252556
  }
252535
252557
  case Be.EOF: {
252536
- this._err(Ti.eofInTag), this._emitEOFToken();
252558
+ this._err(Ei.eofInTag), this._emitEOFToken();
252537
252559
  break;
252538
252560
  }
252539
252561
  default:
@@ -252560,7 +252582,7 @@ class T0n {
252560
252582
  break;
252561
252583
  }
252562
252584
  case Be.NULL: {
252563
- this._err(Ti.unexpectedNullCharacter), this.currentAttr.value += il;
252585
+ this._err(Ei.unexpectedNullCharacter), this.currentAttr.value += il;
252564
252586
  break;
252565
252587
  }
252566
252588
  case Be.QUOTATION_MARK:
@@ -252568,11 +252590,11 @@ class T0n {
252568
252590
  case Be.LESS_THAN_SIGN:
252569
252591
  case Be.EQUALS_SIGN:
252570
252592
  case Be.GRAVE_ACCENT: {
252571
- this._err(Ti.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(e);
252593
+ this._err(Ei.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(e);
252572
252594
  break;
252573
252595
  }
252574
252596
  case Be.EOF: {
252575
- this._err(Ti.eofInTag), this._emitEOFToken();
252597
+ this._err(Ei.eofInTag), this._emitEOFToken();
252576
252598
  break;
252577
252599
  }
252578
252600
  default:
@@ -252599,11 +252621,11 @@ class T0n {
252599
252621
  break;
252600
252622
  }
252601
252623
  case Be.EOF: {
252602
- this._err(Ti.eofInTag), this._emitEOFToken();
252624
+ this._err(Ei.eofInTag), this._emitEOFToken();
252603
252625
  break;
252604
252626
  }
252605
252627
  default:
252606
- this._err(Ti.missingWhitespaceBetweenAttributes), this.state = We.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(e);
252628
+ this._err(Ei.missingWhitespaceBetweenAttributes), this.state = We.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(e);
252607
252629
  }
252608
252630
  }
252609
252631
  // Self-closing start tag state
@@ -252616,11 +252638,11 @@ class T0n {
252616
252638
  break;
252617
252639
  }
252618
252640
  case Be.EOF: {
252619
- this._err(Ti.eofInTag), this._emitEOFToken();
252641
+ this._err(Ei.eofInTag), this._emitEOFToken();
252620
252642
  break;
252621
252643
  }
252622
252644
  default:
252623
- this._err(Ti.unexpectedSolidusInTag), this.state = We.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(e);
252645
+ this._err(Ei.unexpectedSolidusInTag), this.state = We.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(e);
252624
252646
  }
252625
252647
  }
252626
252648
  // Bogus comment state
@@ -252637,7 +252659,7 @@ class T0n {
252637
252659
  break;
252638
252660
  }
252639
252661
  case Be.NULL: {
252640
- this._err(Ti.unexpectedNullCharacter), t.data += il;
252662
+ this._err(Ei.unexpectedNullCharacter), t.data += il;
252641
252663
  break;
252642
252664
  }
252643
252665
  default:
@@ -252647,7 +252669,7 @@ class T0n {
252647
252669
  // Markup declaration open state
252648
252670
  //------------------------------------------------------------------
252649
252671
  _stateMarkupDeclarationOpen(e) {
252650
- this._consumeSequenceIfMatch(Xd.DASH_DASH, !0) ? (this._createCommentToken(Xd.DASH_DASH.length + 1), this.state = We.COMMENT_START) : this._consumeSequenceIfMatch(Xd.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Xd.DOCTYPE.length + 1), this.state = We.DOCTYPE) : this._consumeSequenceIfMatch(Xd.CDATA_START, !0) ? this.inForeignNode ? this.state = We.CDATA_SECTION : (this._err(Ti.cdataInHtmlContent), this._createCommentToken(Xd.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = We.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(Ti.incorrectlyOpenedComment), this._createCommentToken(2), this.state = We.BOGUS_COMMENT, this._stateBogusComment(e));
252672
+ this._consumeSequenceIfMatch(Xd.DASH_DASH, !0) ? (this._createCommentToken(Xd.DASH_DASH.length + 1), this.state = We.COMMENT_START) : this._consumeSequenceIfMatch(Xd.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Xd.DOCTYPE.length + 1), this.state = We.DOCTYPE) : this._consumeSequenceIfMatch(Xd.CDATA_START, !0) ? this.inForeignNode ? this.state = We.CDATA_SECTION : (this._err(Ei.cdataInHtmlContent), this._createCommentToken(Xd.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = We.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(Ei.incorrectlyOpenedComment), this._createCommentToken(2), this.state = We.BOGUS_COMMENT, this._stateBogusComment(e));
252651
252673
  }
252652
252674
  // Comment start state
252653
252675
  //------------------------------------------------------------------
@@ -252658,7 +252680,7 @@ class T0n {
252658
252680
  break;
252659
252681
  }
252660
252682
  case Be.GREATER_THAN_SIGN: {
252661
- this._err(Ti.abruptClosingOfEmptyComment), this.state = We.DATA;
252683
+ this._err(Ei.abruptClosingOfEmptyComment), this.state = We.DATA;
252662
252684
  const t = this.currentToken;
252663
252685
  this.emitCurrentComment(t);
252664
252686
  break;
@@ -252677,11 +252699,11 @@ class T0n {
252677
252699
  break;
252678
252700
  }
252679
252701
  case Be.GREATER_THAN_SIGN: {
252680
- this._err(Ti.abruptClosingOfEmptyComment), this.state = We.DATA, this.emitCurrentComment(t);
252702
+ this._err(Ei.abruptClosingOfEmptyComment), this.state = We.DATA, this.emitCurrentComment(t);
252681
252703
  break;
252682
252704
  }
252683
252705
  case Be.EOF: {
252684
- this._err(Ti.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252706
+ this._err(Ei.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252685
252707
  break;
252686
252708
  }
252687
252709
  default:
@@ -252702,11 +252724,11 @@ class T0n {
252702
252724
  break;
252703
252725
  }
252704
252726
  case Be.NULL: {
252705
- this._err(Ti.unexpectedNullCharacter), t.data += il;
252727
+ this._err(Ei.unexpectedNullCharacter), t.data += il;
252706
252728
  break;
252707
252729
  }
252708
252730
  case Be.EOF: {
252709
- this._err(Ti.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252731
+ this._err(Ei.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252710
252732
  break;
252711
252733
  }
252712
252734
  default:
@@ -252743,7 +252765,7 @@ class T0n {
252743
252765
  // Comment less-than sign bang dash dash state
252744
252766
  //------------------------------------------------------------------
252745
252767
  _stateCommentLessThanSignBangDashDash(e) {
252746
- e !== Be.GREATER_THAN_SIGN && e !== Be.EOF && this._err(Ti.nestedComment), this.state = We.COMMENT_END, this._stateCommentEnd(e);
252768
+ e !== Be.GREATER_THAN_SIGN && e !== Be.EOF && this._err(Ei.nestedComment), this.state = We.COMMENT_END, this._stateCommentEnd(e);
252747
252769
  }
252748
252770
  // Comment end dash state
252749
252771
  //------------------------------------------------------------------
@@ -252755,7 +252777,7 @@ class T0n {
252755
252777
  break;
252756
252778
  }
252757
252779
  case Be.EOF: {
252758
- this._err(Ti.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252780
+ this._err(Ei.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252759
252781
  break;
252760
252782
  }
252761
252783
  default:
@@ -252780,7 +252802,7 @@ class T0n {
252780
252802
  break;
252781
252803
  }
252782
252804
  case Be.EOF: {
252783
- this._err(Ti.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252805
+ this._err(Ei.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252784
252806
  break;
252785
252807
  }
252786
252808
  default:
@@ -252797,11 +252819,11 @@ class T0n {
252797
252819
  break;
252798
252820
  }
252799
252821
  case Be.GREATER_THAN_SIGN: {
252800
- this._err(Ti.incorrectlyClosedComment), this.state = We.DATA, this.emitCurrentComment(t);
252822
+ this._err(Ei.incorrectlyClosedComment), this.state = We.DATA, this.emitCurrentComment(t);
252801
252823
  break;
252802
252824
  }
252803
252825
  case Be.EOF: {
252804
- this._err(Ti.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252826
+ this._err(Ei.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
252805
252827
  break;
252806
252828
  }
252807
252829
  default:
@@ -252824,13 +252846,13 @@ class T0n {
252824
252846
  break;
252825
252847
  }
252826
252848
  case Be.EOF: {
252827
- this._err(Ti.eofInDoctype), this._createDoctypeToken(null);
252849
+ this._err(Ei.eofInDoctype), this._createDoctypeToken(null);
252828
252850
  const t = this.currentToken;
252829
252851
  t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252830
252852
  break;
252831
252853
  }
252832
252854
  default:
252833
- this._err(Ti.missingWhitespaceBeforeDoctypeName), this.state = We.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(e);
252855
+ this._err(Ei.missingWhitespaceBeforeDoctypeName), this.state = We.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(e);
252834
252856
  }
252835
252857
  }
252836
252858
  // Before DOCTYPE name state
@@ -252846,17 +252868,17 @@ class T0n {
252846
252868
  case Be.FORM_FEED:
252847
252869
  break;
252848
252870
  case Be.NULL: {
252849
- this._err(Ti.unexpectedNullCharacter), this._createDoctypeToken(il), this.state = We.DOCTYPE_NAME;
252871
+ this._err(Ei.unexpectedNullCharacter), this._createDoctypeToken(il), this.state = We.DOCTYPE_NAME;
252850
252872
  break;
252851
252873
  }
252852
252874
  case Be.GREATER_THAN_SIGN: {
252853
- this._err(Ti.missingDoctypeName), this._createDoctypeToken(null);
252875
+ this._err(Ei.missingDoctypeName), this._createDoctypeToken(null);
252854
252876
  const t = this.currentToken;
252855
252877
  t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = We.DATA;
252856
252878
  break;
252857
252879
  }
252858
252880
  case Be.EOF: {
252859
- this._err(Ti.eofInDoctype), this._createDoctypeToken(null);
252881
+ this._err(Ei.eofInDoctype), this._createDoctypeToken(null);
252860
252882
  const t = this.currentToken;
252861
252883
  t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252862
252884
  break;
@@ -252882,11 +252904,11 @@ class T0n {
252882
252904
  break;
252883
252905
  }
252884
252906
  case Be.NULL: {
252885
- this._err(Ti.unexpectedNullCharacter), t.name += il;
252907
+ this._err(Ei.unexpectedNullCharacter), t.name += il;
252886
252908
  break;
252887
252909
  }
252888
252910
  case Be.EOF: {
252889
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252911
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252890
252912
  break;
252891
252913
  }
252892
252914
  default:
@@ -252908,11 +252930,11 @@ class T0n {
252908
252930
  break;
252909
252931
  }
252910
252932
  case Be.EOF: {
252911
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252933
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252912
252934
  break;
252913
252935
  }
252914
252936
  default:
252915
- this._consumeSequenceIfMatch(Xd.PUBLIC, !1) ? this.state = We.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Xd.SYSTEM, !1) ? this.state = We.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(Ti.invalidCharacterSequenceAfterDoctypeName), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e));
252937
+ this._consumeSequenceIfMatch(Xd.PUBLIC, !1) ? this.state = We.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Xd.SYSTEM, !1) ? this.state = We.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(Ei.invalidCharacterSequenceAfterDoctypeName), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e));
252916
252938
  }
252917
252939
  }
252918
252940
  // After DOCTYPE public keyword state
@@ -252928,23 +252950,23 @@ class T0n {
252928
252950
  break;
252929
252951
  }
252930
252952
  case Be.QUOTATION_MARK: {
252931
- this._err(Ti.missingWhitespaceAfterDoctypePublicKeyword), t.publicId = "", this.state = We.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
252953
+ this._err(Ei.missingWhitespaceAfterDoctypePublicKeyword), t.publicId = "", this.state = We.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
252932
252954
  break;
252933
252955
  }
252934
252956
  case Be.APOSTROPHE: {
252935
- this._err(Ti.missingWhitespaceAfterDoctypePublicKeyword), t.publicId = "", this.state = We.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
252957
+ this._err(Ei.missingWhitespaceAfterDoctypePublicKeyword), t.publicId = "", this.state = We.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
252936
252958
  break;
252937
252959
  }
252938
252960
  case Be.GREATER_THAN_SIGN: {
252939
- this._err(Ti.missingDoctypePublicIdentifier), t.forceQuirks = !0, this.state = We.DATA, this.emitCurrentDoctype(t);
252961
+ this._err(Ei.missingDoctypePublicIdentifier), t.forceQuirks = !0, this.state = We.DATA, this.emitCurrentDoctype(t);
252940
252962
  break;
252941
252963
  }
252942
252964
  case Be.EOF: {
252943
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252965
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252944
252966
  break;
252945
252967
  }
252946
252968
  default:
252947
- this._err(Ti.missingQuoteBeforeDoctypePublicIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
252969
+ this._err(Ei.missingQuoteBeforeDoctypePublicIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
252948
252970
  }
252949
252971
  }
252950
252972
  // Before DOCTYPE public identifier state
@@ -252966,15 +252988,15 @@ class T0n {
252966
252988
  break;
252967
252989
  }
252968
252990
  case Be.GREATER_THAN_SIGN: {
252969
- this._err(Ti.missingDoctypePublicIdentifier), t.forceQuirks = !0, this.state = We.DATA, this.emitCurrentDoctype(t);
252991
+ this._err(Ei.missingDoctypePublicIdentifier), t.forceQuirks = !0, this.state = We.DATA, this.emitCurrentDoctype(t);
252970
252992
  break;
252971
252993
  }
252972
252994
  case Be.EOF: {
252973
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252995
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252974
252996
  break;
252975
252997
  }
252976
252998
  default:
252977
- this._err(Ti.missingQuoteBeforeDoctypePublicIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
252999
+ this._err(Ei.missingQuoteBeforeDoctypePublicIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
252978
253000
  }
252979
253001
  }
252980
253002
  // DOCTYPE public identifier (double-quoted) state
@@ -252987,15 +253009,15 @@ class T0n {
252987
253009
  break;
252988
253010
  }
252989
253011
  case Be.NULL: {
252990
- this._err(Ti.unexpectedNullCharacter), t.publicId += il;
253012
+ this._err(Ei.unexpectedNullCharacter), t.publicId += il;
252991
253013
  break;
252992
253014
  }
252993
253015
  case Be.GREATER_THAN_SIGN: {
252994
- this._err(Ti.abruptDoctypePublicIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = We.DATA;
253016
+ this._err(Ei.abruptDoctypePublicIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = We.DATA;
252995
253017
  break;
252996
253018
  }
252997
253019
  case Be.EOF: {
252998
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253020
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
252999
253021
  break;
253000
253022
  }
253001
253023
  default:
@@ -253012,15 +253034,15 @@ class T0n {
253012
253034
  break;
253013
253035
  }
253014
253036
  case Be.NULL: {
253015
- this._err(Ti.unexpectedNullCharacter), t.publicId += il;
253037
+ this._err(Ei.unexpectedNullCharacter), t.publicId += il;
253016
253038
  break;
253017
253039
  }
253018
253040
  case Be.GREATER_THAN_SIGN: {
253019
- this._err(Ti.abruptDoctypePublicIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = We.DATA;
253041
+ this._err(Ei.abruptDoctypePublicIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = We.DATA;
253020
253042
  break;
253021
253043
  }
253022
253044
  case Be.EOF: {
253023
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253045
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253024
253046
  break;
253025
253047
  }
253026
253048
  default:
@@ -253044,19 +253066,19 @@ class T0n {
253044
253066
  break;
253045
253067
  }
253046
253068
  case Be.QUOTATION_MARK: {
253047
- this._err(Ti.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), t.systemId = "", this.state = We.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
253069
+ this._err(Ei.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), t.systemId = "", this.state = We.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
253048
253070
  break;
253049
253071
  }
253050
253072
  case Be.APOSTROPHE: {
253051
- this._err(Ti.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), t.systemId = "", this.state = We.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
253073
+ this._err(Ei.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), t.systemId = "", this.state = We.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
253052
253074
  break;
253053
253075
  }
253054
253076
  case Be.EOF: {
253055
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253077
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253056
253078
  break;
253057
253079
  }
253058
253080
  default:
253059
- this._err(Ti.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253081
+ this._err(Ei.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253060
253082
  }
253061
253083
  }
253062
253084
  // Between DOCTYPE public and system identifiers state
@@ -253082,11 +253104,11 @@ class T0n {
253082
253104
  break;
253083
253105
  }
253084
253106
  case Be.EOF: {
253085
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253107
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253086
253108
  break;
253087
253109
  }
253088
253110
  default:
253089
- this._err(Ti.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253111
+ this._err(Ei.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253090
253112
  }
253091
253113
  }
253092
253114
  // After DOCTYPE system keyword state
@@ -253102,23 +253124,23 @@ class T0n {
253102
253124
  break;
253103
253125
  }
253104
253126
  case Be.QUOTATION_MARK: {
253105
- this._err(Ti.missingWhitespaceAfterDoctypeSystemKeyword), t.systemId = "", this.state = We.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
253127
+ this._err(Ei.missingWhitespaceAfterDoctypeSystemKeyword), t.systemId = "", this.state = We.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
253106
253128
  break;
253107
253129
  }
253108
253130
  case Be.APOSTROPHE: {
253109
- this._err(Ti.missingWhitespaceAfterDoctypeSystemKeyword), t.systemId = "", this.state = We.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
253131
+ this._err(Ei.missingWhitespaceAfterDoctypeSystemKeyword), t.systemId = "", this.state = We.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
253110
253132
  break;
253111
253133
  }
253112
253134
  case Be.GREATER_THAN_SIGN: {
253113
- this._err(Ti.missingDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.DATA, this.emitCurrentDoctype(t);
253135
+ this._err(Ei.missingDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.DATA, this.emitCurrentDoctype(t);
253114
253136
  break;
253115
253137
  }
253116
253138
  case Be.EOF: {
253117
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253139
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253118
253140
  break;
253119
253141
  }
253120
253142
  default:
253121
- this._err(Ti.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253143
+ this._err(Ei.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253122
253144
  }
253123
253145
  }
253124
253146
  // Before DOCTYPE system identifier state
@@ -253140,15 +253162,15 @@ class T0n {
253140
253162
  break;
253141
253163
  }
253142
253164
  case Be.GREATER_THAN_SIGN: {
253143
- this._err(Ti.missingDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.DATA, this.emitCurrentDoctype(t);
253165
+ this._err(Ei.missingDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.DATA, this.emitCurrentDoctype(t);
253144
253166
  break;
253145
253167
  }
253146
253168
  case Be.EOF: {
253147
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253169
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253148
253170
  break;
253149
253171
  }
253150
253172
  default:
253151
- this._err(Ti.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253173
+ this._err(Ei.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253152
253174
  }
253153
253175
  }
253154
253176
  // DOCTYPE system identifier (double-quoted) state
@@ -253161,15 +253183,15 @@ class T0n {
253161
253183
  break;
253162
253184
  }
253163
253185
  case Be.NULL: {
253164
- this._err(Ti.unexpectedNullCharacter), t.systemId += il;
253186
+ this._err(Ei.unexpectedNullCharacter), t.systemId += il;
253165
253187
  break;
253166
253188
  }
253167
253189
  case Be.GREATER_THAN_SIGN: {
253168
- this._err(Ti.abruptDoctypeSystemIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = We.DATA;
253190
+ this._err(Ei.abruptDoctypeSystemIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = We.DATA;
253169
253191
  break;
253170
253192
  }
253171
253193
  case Be.EOF: {
253172
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253194
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253173
253195
  break;
253174
253196
  }
253175
253197
  default:
@@ -253186,15 +253208,15 @@ class T0n {
253186
253208
  break;
253187
253209
  }
253188
253210
  case Be.NULL: {
253189
- this._err(Ti.unexpectedNullCharacter), t.systemId += il;
253211
+ this._err(Ei.unexpectedNullCharacter), t.systemId += il;
253190
253212
  break;
253191
253213
  }
253192
253214
  case Be.GREATER_THAN_SIGN: {
253193
- this._err(Ti.abruptDoctypeSystemIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = We.DATA;
253215
+ this._err(Ei.abruptDoctypeSystemIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = We.DATA;
253194
253216
  break;
253195
253217
  }
253196
253218
  case Be.EOF: {
253197
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253219
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253198
253220
  break;
253199
253221
  }
253200
253222
  default:
@@ -253216,11 +253238,11 @@ class T0n {
253216
253238
  break;
253217
253239
  }
253218
253240
  case Be.EOF: {
253219
- this._err(Ti.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253241
+ this._err(Ei.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
253220
253242
  break;
253221
253243
  }
253222
253244
  default:
253223
- this._err(Ti.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253245
+ this._err(Ei.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = We.BOGUS_DOCTYPE, this._stateBogusDoctype(e);
253224
253246
  }
253225
253247
  }
253226
253248
  // Bogus DOCTYPE state
@@ -253233,7 +253255,7 @@ class T0n {
253233
253255
  break;
253234
253256
  }
253235
253257
  case Be.NULL: {
253236
- this._err(Ti.unexpectedNullCharacter);
253258
+ this._err(Ei.unexpectedNullCharacter);
253237
253259
  break;
253238
253260
  }
253239
253261
  case Be.EOF: {
@@ -253251,7 +253273,7 @@ class T0n {
253251
253273
  break;
253252
253274
  }
253253
253275
  case Be.EOF: {
253254
- this._err(Ti.eofInCdata), this._emitEOFToken();
253276
+ this._err(Ei.eofInCdata), this._emitEOFToken();
253255
253277
  break;
253256
253278
  }
253257
253279
  default:
@@ -253295,7 +253317,7 @@ class T0n {
253295
253317
  // Ambiguos ampersand state
253296
253318
  //------------------------------------------------------------------
253297
253319
  _stateAmbiguousAmpersand(e) {
253298
- Aje(e) ? this._flushCodePointConsumedAsCharacterReference(e) : (e === Be.SEMICOLON && this._err(Ti.unknownNamedCharacterReference), this.state = this.returnState, this._callState(e));
253320
+ Aje(e) ? this._flushCodePointConsumedAsCharacterReference(e) : (e === Be.SEMICOLON && this._err(Ei.unknownNamedCharacterReference), this.state = this.returnState, this._callState(e));
253299
253321
  }
253300
253322
  }
253301
253323
  const Tyt = /* @__PURE__ */ new Set([oe.DD, oe.DT, oe.LI, oe.OPTGROUP, oe.OPTION, oe.P, oe.RB, oe.RP, oe.RT, oe.RTC]), Eje = /* @__PURE__ */ new Set([
@@ -254199,7 +254221,7 @@ class Dje {
254199
254221
  /** @protected */
254200
254222
  _attachElementToTree(e, t) {
254201
254223
  if (this.options.sourceCodeLocationInfo) {
254202
- const n = t && Ei(Re({}, t), {
254224
+ const n = t && Ti(Re({}, t), {
254203
254225
  startTag: t
254204
254226
  });
254205
254227
  this.treeAdapter.setNodeSourceCodeLocation(e, n);
@@ -254651,7 +254673,7 @@ class Dje {
254651
254673
  case tt.IN_HEAD:
254652
254674
  case tt.IN_HEAD_NO_SCRIPT:
254653
254675
  case tt.AFTER_HEAD: {
254654
- this._err(e, Ti.misplacedDoctype);
254676
+ this._err(e, Ei.misplacedDoctype);
254655
254677
  break;
254656
254678
  }
254657
254679
  case tt.IN_TABLE_TEXT: {
@@ -254662,7 +254684,7 @@ class Dje {
254662
254684
  }
254663
254685
  /** @internal */
254664
254686
  onStartTag(e) {
254665
- this.skipNextNewLine = !1, this.currentToken = e, this._processStartTag(e), e.selfClosing && !e.ackSelfClosing && this._err(e, Ti.nonVoidHtmlElementStartTagWithTrailingSolidus);
254687
+ this.skipNextNewLine = !1, this.currentToken = e, this._processStartTag(e), e.selfClosing && !e.ackSelfClosing && this._err(e, Ei.nonVoidHtmlElementStartTagWithTrailingSolidus);
254666
254688
  }
254667
254689
  /**
254668
254690
  * Processes a given start tag.
@@ -255055,10 +255077,10 @@ function e2e(i, e) {
255055
255077
  function hgn(i, e) {
255056
255078
  i._setDocumentType(e);
255057
255079
  const t = e.forceQuirks ? gg.QUIRKS : z0n(e);
255058
- $0n(e) || i._err(e, Ti.nonConformingDoctype), i.treeAdapter.setDocumentMode(i.document, t), i.insertionMode = tt.BEFORE_HTML;
255080
+ $0n(e) || i._err(e, Ei.nonConformingDoctype), i.treeAdapter.setDocumentMode(i.document, t), i.insertionMode = tt.BEFORE_HTML;
255059
255081
  }
255060
255082
  function yR(i, e) {
255061
- i._err(e, Ti.missingDoctype, !0), i.treeAdapter.setDocumentMode(i.document, gg.QUIRKS), i.insertionMode = tt.BEFORE_HTML, i._processToken(e);
255083
+ i._err(e, Ei.missingDoctype, !0), i.treeAdapter.setDocumentMode(i.document, gg.QUIRKS), i.insertionMode = tt.BEFORE_HTML, i._processToken(e);
255062
255084
  }
255063
255085
  function dgn(i, e) {
255064
255086
  e.tagID === oe.HTML ? (i._insertElement(e, Xi.HTML), i.insertionMode = tt.BEFORE_HEAD) : dM(i, e);
@@ -255086,7 +255108,7 @@ function ggn(i, e) {
255086
255108
  }
255087
255109
  function pgn(i, e) {
255088
255110
  const t = e.tagID;
255089
- t === oe.HEAD || t === oe.BODY || t === oe.HTML || t === oe.BR ? fM(i, e) : i._err(e, Ti.endTagWithoutMatchingOpenElement);
255111
+ t === oe.HEAD || t === oe.BODY || t === oe.HTML || t === oe.BR ? fM(i, e) : i._err(e, Ei.endTagWithoutMatchingOpenElement);
255090
255112
  }
255091
255113
  function fM(i, e) {
255092
255114
  i._insertFakeElement(Vt.HEAD, oe.HEAD), i.headElement = i.openElements.current, i.insertionMode = tt.IN_HEAD, i._processToken(e);
@@ -255127,7 +255149,7 @@ function gm(i, e) {
255127
255149
  break;
255128
255150
  }
255129
255151
  case oe.HEAD: {
255130
- i._err(e, Ti.misplacedStartTagForHeadElement);
255152
+ i._err(e, Ei.misplacedStartTagForHeadElement);
255131
255153
  break;
255132
255154
  }
255133
255155
  default:
@@ -255151,11 +255173,11 @@ function mgn(i, e) {
255151
255173
  break;
255152
255174
  }
255153
255175
  default:
255154
- i._err(e, Ti.endTagWithoutMatchingOpenElement);
255176
+ i._err(e, Ei.endTagWithoutMatchingOpenElement);
255155
255177
  }
255156
255178
  }
255157
255179
  function Ex(i, e) {
255158
- i.openElements.tmplCount > 0 ? (i.openElements.generateImpliedEndTagsThoroughly(), i.openElements.currentTagId !== oe.TEMPLATE && i._err(e, Ti.closingOfElementWithOpenChildElements), i.openElements.popUntilTagNamePopped(oe.TEMPLATE), i.activeFormattingElements.clearToLastMarker(), i.tmplInsertionModeStack.shift(), i._resetInsertionMode()) : i._err(e, Ti.endTagWithoutMatchingOpenElement);
255180
+ i.openElements.tmplCount > 0 ? (i.openElements.generateImpliedEndTagsThoroughly(), i.openElements.currentTagId !== oe.TEMPLATE && i._err(e, Ei.closingOfElementWithOpenChildElements), i.openElements.popUntilTagNamePopped(oe.TEMPLATE), i.activeFormattingElements.clearToLastMarker(), i.tmplInsertionModeStack.shift(), i._resetInsertionMode()) : i._err(e, Ei.endTagWithoutMatchingOpenElement);
255159
255181
  }
255160
255182
  function gM(i, e) {
255161
255183
  i.openElements.pop(), i.insertionMode = tt.AFTER_HEAD, i._processToken(e);
@@ -255177,7 +255199,7 @@ function vgn(i, e) {
255177
255199
  break;
255178
255200
  }
255179
255201
  case oe.NOSCRIPT: {
255180
- i._err(e, Ti.nestedNoscriptInHead);
255202
+ i._err(e, Ei.nestedNoscriptInHead);
255181
255203
  break;
255182
255204
  }
255183
255205
  default:
@@ -255195,11 +255217,11 @@ function bgn(i, e) {
255195
255217
  break;
255196
255218
  }
255197
255219
  default:
255198
- i._err(e, Ti.endTagWithoutMatchingOpenElement);
255220
+ i._err(e, Ei.endTagWithoutMatchingOpenElement);
255199
255221
  }
255200
255222
  }
255201
255223
  function pM(i, e) {
255202
- const t = e.type === Qo.EOF ? Ti.openElementsLeftAfterEof : Ti.disallowedContentInNoscriptInHead;
255224
+ const t = e.type === Qo.EOF ? Ei.openElementsLeftAfterEof : Ei.disallowedContentInNoscriptInHead;
255203
255225
  i._err(e, t), i.openElements.pop(), i.insertionMode = tt.IN_HEAD, i._processToken(e);
255204
255226
  }
255205
255227
  function ygn(i, e) {
@@ -255226,11 +255248,11 @@ function ygn(i, e) {
255226
255248
  case oe.STYLE:
255227
255249
  case oe.TEMPLATE:
255228
255250
  case oe.TITLE: {
255229
- i._err(e, Ti.abandonedHeadElementChild), i.openElements.push(i.headElement, oe.HEAD), gm(i, e), i.openElements.remove(i.headElement);
255251
+ i._err(e, Ei.abandonedHeadElementChild), i.openElements.push(i.headElement, oe.HEAD), gm(i, e), i.openElements.remove(i.headElement);
255230
255252
  break;
255231
255253
  }
255232
255254
  case oe.HEAD: {
255233
- i._err(e, Ti.misplacedStartTagForHeadElement);
255255
+ i._err(e, Ei.misplacedStartTagForHeadElement);
255234
255256
  break;
255235
255257
  }
255236
255258
  default:
@@ -255250,7 +255272,7 @@ function _gn(i, e) {
255250
255272
  break;
255251
255273
  }
255252
255274
  default:
255253
- i._err(e, Ti.endTagWithoutMatchingOpenElement);
255275
+ i._err(e, Ei.endTagWithoutMatchingOpenElement);
255254
255276
  }
255255
255277
  }
255256
255278
  function mM(i, e) {
@@ -255770,7 +255792,7 @@ function opn(i, e) {
255770
255792
  e.tagID === oe.SCRIPT && ((t = i.scriptHandler) === null || t === void 0 || t.call(i, i.openElements.current)), i.openElements.pop(), i.insertionMode = i.originalInsertionMode;
255771
255793
  }
255772
255794
  function spn(i, e) {
255773
- i._err(e, Ti.eofInElementThatCanContainOnlyText), i.openElements.pop(), i.insertionMode = i.originalInsertionMode, i.onEof(e);
255795
+ i._err(e, Ei.eofInElementThatCanContainOnlyText), i.openElements.pop(), i.insertionMode = i.originalInsertionMode, i.onEof(e);
255774
255796
  }
255775
255797
  function Sse(i, e) {
255776
255798
  if (i.openElements.currentTagId !== void 0 && kyt.has(i.openElements.currentTagId))
@@ -256455,7 +256477,7 @@ function Upn(i, e) {
256455
256477
  r === zC.html && t === "svg" && (r = zC.svg);
256456
256478
  const o = Qfn(
256457
256479
  // Shallow clone to not delve into `children`: we only need the attributes.
256458
- Ei(Re({}, i), { children: [] }),
256480
+ Ti(Re({}, i), { children: [] }),
256459
256481
  { space: r === zC.svg ? "svg" : "html" }
256460
256482
  ), s = {
256461
256483
  type: Qo.START_TAG,
@@ -256514,13 +256536,13 @@ function U8(i) {
256514
256536
  };
256515
256537
  }
256516
256538
  function qpn(i) {
256517
- return "children" in i ? YT(Ei(Re({}, i), { children: [] })) : YT(i);
256539
+ return "children" in i ? YT(Ti(Re({}, i), { children: [] })) : YT(i);
256518
256540
  }
256519
256541
  function Ypn(i) {
256520
256542
  return function(e, t) {
256521
256543
  return (
256522
256544
  /** @type {Root} */
256523
- Yyt(e, Ei(Re({}, i), { file: t }))
256545
+ Yyt(e, Ti(Re({}, i), { file: t }))
256524
256546
  );
256525
256547
  };
256526
256548
  }
@@ -256850,7 +256872,7 @@ function Rmn(i) {
256850
256872
  function t2t(i, e, t, n) {
256851
256873
  const r = t.createTracker(n), o = t.enter("strikethrough");
256852
256874
  let s = r.move("~~");
256853
- return s += t.containerPhrasing(i, Ei(Re({}, r.current()), {
256875
+ return s += t.containerPhrasing(i, Ti(Re({}, r.current()), {
256854
256876
  before: s,
256855
256877
  after: "~"
256856
256878
  })), s += r.move("~~"), o(), s;
@@ -257137,7 +257159,7 @@ function Umn(i, e) {
257137
257159
  function jmn(i, e, t, n) {
257138
257160
  const r = Math.max(Math.min(6, i.depth || 1), 1), o = t.createTracker(n);
257139
257161
  if (Umn(i, t)) {
257140
- const c = t.enter("headingSetext"), h = t.enter("phrasing"), d = t.containerPhrasing(i, Ei(Re({}, o.current()), {
257162
+ const c = t.enter("headingSetext"), h = t.enter("phrasing"), d = t.containerPhrasing(i, Ti(Re({}, o.current()), {
257141
257163
  before: `
257142
257164
  `,
257143
257165
  after: `
@@ -257596,7 +257618,7 @@ function v1n(i) {
257596
257618
  `));
257597
257619
  }
257598
257620
  function l(f, g, p, m) {
257599
- const v = p.enter("tableCell"), b = p.enter("phrasing"), y = p.containerPhrasing(f, Ei(Re({}, m), {
257621
+ const v = p.enter("tableCell"), b = p.enter("phrasing"), y = p.containerPhrasing(f, Ti(Re({}, m), {
257600
257622
  before: o,
257601
257623
  after: o
257602
257624
  }));
@@ -258457,7 +258479,7 @@ const sSn = () => {
258457
258479
  }, [u, o]), /* @__PURE__ */ an(pmt.Provider, { value: c, children: [
258458
258480
  i === "md" && /* @__PURE__ */ Me(
258459
258481
  kfn,
258460
- Ei(Re({
258482
+ Ti(Re({
258461
258483
  components: h,
258462
258484
  rehypePlugins: [Ypn, ...n || []],
258463
258485
  remarkPlugins: [nvn, ...r || []]
@@ -258477,7 +258499,7 @@ const sSn = () => {
258477
258499
  }, uvn = (n) => {
258478
258500
  var r = n, { children: i, components: e } = r, t = au(r, ["children", "components"]);
258479
258501
  const o = mo(() => je.Children.toArray(i).join("").trim(), [i]), s = mo(() => lvn(o) ? "json" : "md", [o]);
258480
- return /* @__PURE__ */ Me(svn, Ei(Re({ renderMode: s, components: Re({ code: avn }, e) }, t), { children: o }), o);
258502
+ return /* @__PURE__ */ Me(svn, Ti(Re({ renderMode: s, components: Re({ code: avn }, e) }, t), { children: o }), o);
258481
258503
  }, aSn = Rb(uvn);
258482
258504
  export {
258483
258505
  wki as AgentCharts,