@record-evolution/widget-linechart 1.6.34 → 1.7.1

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.
@@ -1,21 +1,21 @@
1
- import * as Y from "echarts/core";
2
- import { GridComponent as xt, TitleComponent as vt, ToolboxComponent as At, TooltipComponent as _t, LegendComponent as bt, DataZoomComponent as wt } from "echarts/components";
3
- import { LineChart as Ct, BarChart as St, ScatterChart as Et } from "echarts/charts";
4
- import { UniversalTransition as Tt, LegacyGridContainLabel as Dt } from "echarts/features";
5
- import { CanvasRenderer as Ot } from "echarts/renderers";
6
- import et from "tinycolor2";
7
- const I = globalThis, G = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, J = /* @__PURE__ */ Symbol(), st = /* @__PURE__ */ new WeakMap();
8
- let ut = class {
9
- constructor(t, e, i) {
10
- if (this._$cssResult$ = !0, i !== J) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1
+ import * as F from "echarts/core";
2
+ import { GridComponent as St, TitleComponent as Et, ToolboxComponent as Tt, TooltipComponent as Dt, LegendComponent as Lt, DataZoomComponent as Ot } from "echarts/components";
3
+ import { LineChart as Pt, BarChart as Mt, ScatterChart as Ut } from "echarts/charts";
4
+ import { UniversalTransition as Nt, LegacyGridContainLabel as Rt } from "echarts/features";
5
+ import { CanvasRenderer as zt } from "echarts/renderers";
6
+ import lt from "tinycolor2";
7
+ const k = globalThis, Q = k.ShadowRoot && (k.ShadyCSS === void 0 || k.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, tt = /* @__PURE__ */ Symbol(), ct = /* @__PURE__ */ new WeakMap();
8
+ let vt = class {
9
+ constructor(t, e, s) {
10
+ if (this._$cssResult$ = !0, s !== tt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
11
  this.cssText = t, this.t = e;
12
12
  }
13
13
  get styleSheet() {
14
14
  let t = this.o;
15
15
  const e = this.t;
16
- if (G && t === void 0) {
17
- const i = e !== void 0 && e.length === 1;
18
- i && (t = st.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && st.set(e, t));
16
+ if (Q && t === void 0) {
17
+ const s = e !== void 0 && e.length === 1;
18
+ s && (t = ct.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ct.set(e, t));
19
19
  }
20
20
  return t;
21
21
  }
@@ -23,54 +23,54 @@ let ut = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const Lt = (s) => new ut(typeof s == "string" ? s : s + "", void 0, J), Pt = (s, ...t) => {
27
- const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
28
- if (o._$cssResult$ === !0) return o.cssText;
29
- if (typeof o == "number") return o;
30
- throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
31
- })(r) + s[n + 1], s[0]);
32
- return new ut(e, s, J);
33
- }, Mt = (s, t) => {
34
- if (G) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
26
+ const Ht = (i) => new vt(typeof i == "string" ? i : i + "", void 0, tt), jt = (i, ...t) => {
27
+ const e = i.length === 1 ? i[0] : t.reduce((s, n, o) => s + ((r) => {
28
+ if (r._$cssResult$ === !0) return r.cssText;
29
+ if (typeof r == "number") return r;
30
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
31
+ })(n) + i[o + 1], i[0]);
32
+ return new vt(e, i, tt);
33
+ }, It = (i, t) => {
34
+ if (Q) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
35
35
  else for (const e of t) {
36
- const i = document.createElement("style"), r = I.litNonce;
37
- r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
36
+ const s = document.createElement("style"), n = k.litNonce;
37
+ n !== void 0 && s.setAttribute("nonce", n), s.textContent = e.cssText, i.appendChild(s);
38
38
  }
39
- }, it = G ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
39
+ }, pt = Q ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
40
40
  let e = "";
41
- for (const i of t.cssRules) e += i.cssText;
42
- return Lt(e);
43
- })(s) : s;
44
- const { is: Ut, defineProperty: Nt, getOwnPropertyDescriptor: zt, getOwnPropertyNames: Ht, getOwnPropertySymbols: Rt, getPrototypeOf: jt } = Object, W = globalThis, rt = W.trustedTypes, It = rt ? rt.emptyScript : "", kt = W.reactiveElementPolyfillSupport, M = (s, t) => s, k = { toAttribute(s, t) {
41
+ for (const s of t.cssRules) e += s.cssText;
42
+ return Ht(e);
43
+ })(i) : i;
44
+ const { is: kt, defineProperty: Bt, getOwnPropertyDescriptor: Wt, getOwnPropertyNames: qt, getOwnPropertySymbols: Vt, getPrototypeOf: Xt } = Object, q = globalThis, dt = q.trustedTypes, Yt = dt ? dt.emptyScript : "", Zt = q.reactiveElementPolyfillSupport, N = (i, t) => i, B = { toAttribute(i, t) {
45
45
  switch (t) {
46
46
  case Boolean:
47
- s = s ? It : null;
47
+ i = i ? Yt : null;
48
48
  break;
49
49
  case Object:
50
50
  case Array:
51
- s = s == null ? s : JSON.stringify(s);
51
+ i = i == null ? i : JSON.stringify(i);
52
52
  }
53
- return s;
54
- }, fromAttribute(s, t) {
55
- let e = s;
53
+ return i;
54
+ }, fromAttribute(i, t) {
55
+ let e = i;
56
56
  switch (t) {
57
57
  case Boolean:
58
- e = s !== null;
58
+ e = i !== null;
59
59
  break;
60
60
  case Number:
61
- e = s === null ? null : Number(s);
61
+ e = i === null ? null : Number(i);
62
62
  break;
63
63
  case Object:
64
64
  case Array:
65
65
  try {
66
- e = JSON.parse(s);
66
+ e = JSON.parse(i);
67
67
  } catch {
68
68
  e = null;
69
69
  }
70
70
  }
71
71
  return e;
72
- } }, K = (s, t) => !Ut(s, t), nt = { attribute: !0, type: String, converter: k, reflect: !1, useDefault: !1, hasChanged: K };
73
- Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), W.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
72
+ } }, et = (i, t) => !kt(i, t), ut = { attribute: !0, type: String, converter: B, reflect: !1, useDefault: !1, hasChanged: et };
73
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), q.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
74
74
  let S = class extends HTMLElement {
75
75
  static addInitializer(t) {
76
76
  this._$Ei(), (this.l ??= []).push(t);
@@ -78,60 +78,60 @@ let S = class extends HTMLElement {
78
78
  static get observedAttributes() {
79
79
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
80
80
  }
81
- static createProperty(t, e = nt) {
81
+ static createProperty(t, e = ut) {
82
82
  if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
83
- const i = /* @__PURE__ */ Symbol(), r = this.getPropertyDescriptor(t, i, e);
84
- r !== void 0 && Nt(this.prototype, t, r);
83
+ const s = /* @__PURE__ */ Symbol(), n = this.getPropertyDescriptor(t, s, e);
84
+ n !== void 0 && Bt(this.prototype, t, n);
85
85
  }
86
86
  }
87
- static getPropertyDescriptor(t, e, i) {
88
- const { get: r, set: n } = zt(this.prototype, t) ?? { get() {
87
+ static getPropertyDescriptor(t, e, s) {
88
+ const { get: n, set: o } = Wt(this.prototype, t) ?? { get() {
89
89
  return this[e];
90
- }, set(o) {
91
- this[e] = o;
90
+ }, set(r) {
91
+ this[e] = r;
92
92
  } };
93
- return { get: r, set(o) {
94
- const l = r?.call(this);
95
- n?.call(this, o), this.requestUpdate(t, l, i);
93
+ return { get: n, set(r) {
94
+ const l = n?.call(this);
95
+ o?.call(this, r), this.requestUpdate(t, l, s);
96
96
  }, configurable: !0, enumerable: !0 };
97
97
  }
98
98
  static getPropertyOptions(t) {
99
- return this.elementProperties.get(t) ?? nt;
99
+ return this.elementProperties.get(t) ?? ut;
100
100
  }
101
101
  static _$Ei() {
102
- if (this.hasOwnProperty(M("elementProperties"))) return;
103
- const t = jt(this);
102
+ if (this.hasOwnProperty(N("elementProperties"))) return;
103
+ const t = Xt(this);
104
104
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
105
105
  }
106
106
  static finalize() {
107
- if (this.hasOwnProperty(M("finalized"))) return;
108
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(M("properties"))) {
109
- const e = this.properties, i = [...Ht(e), ...Rt(e)];
110
- for (const r of i) this.createProperty(r, e[r]);
107
+ if (this.hasOwnProperty(N("finalized"))) return;
108
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(N("properties"))) {
109
+ const e = this.properties, s = [...qt(e), ...Vt(e)];
110
+ for (const n of s) this.createProperty(n, e[n]);
111
111
  }
112
112
  const t = this[Symbol.metadata];
113
113
  if (t !== null) {
114
114
  const e = litPropertyMetadata.get(t);
115
- if (e !== void 0) for (const [i, r] of e) this.elementProperties.set(i, r);
115
+ if (e !== void 0) for (const [s, n] of e) this.elementProperties.set(s, n);
116
116
  }
117
117
  this._$Eh = /* @__PURE__ */ new Map();
118
- for (const [e, i] of this.elementProperties) {
119
- const r = this._$Eu(e, i);
120
- r !== void 0 && this._$Eh.set(r, e);
118
+ for (const [e, s] of this.elementProperties) {
119
+ const n = this._$Eu(e, s);
120
+ n !== void 0 && this._$Eh.set(n, e);
121
121
  }
122
122
  this.elementStyles = this.finalizeStyles(this.styles);
123
123
  }
124
124
  static finalizeStyles(t) {
125
125
  const e = [];
126
126
  if (Array.isArray(t)) {
127
- const i = new Set(t.flat(1 / 0).reverse());
128
- for (const r of i) e.unshift(it(r));
129
- } else t !== void 0 && e.push(it(t));
127
+ const s = new Set(t.flat(1 / 0).reverse());
128
+ for (const n of s) e.unshift(pt(n));
129
+ } else t !== void 0 && e.push(pt(t));
130
130
  return e;
131
131
  }
132
132
  static _$Eu(t, e) {
133
- const i = e.attribute;
134
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
133
+ const s = e.attribute;
134
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
135
135
  }
136
136
  constructor() {
137
137
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
@@ -147,12 +147,12 @@ let S = class extends HTMLElement {
147
147
  }
148
148
  _$E_() {
149
149
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
150
- for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
150
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
151
151
  t.size > 0 && (this._$Ep = t);
152
152
  }
153
153
  createRenderRoot() {
154
154
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
155
- return Mt(t, this.constructor.elementStyles), t;
155
+ return It(t, this.constructor.elementStyles), t;
156
156
  }
157
157
  connectedCallback() {
158
158
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
@@ -162,35 +162,35 @@ let S = class extends HTMLElement {
162
162
  disconnectedCallback() {
163
163
  this._$EO?.forEach((t) => t.hostDisconnected?.());
164
164
  }
165
- attributeChangedCallback(t, e, i) {
166
- this._$AK(t, i);
165
+ attributeChangedCallback(t, e, s) {
166
+ this._$AK(t, s);
167
167
  }
168
168
  _$ET(t, e) {
169
- const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
170
- if (r !== void 0 && i.reflect === !0) {
171
- const n = (i.converter?.toAttribute !== void 0 ? i.converter : k).toAttribute(e, i.type);
172
- this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
169
+ const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
170
+ if (n !== void 0 && s.reflect === !0) {
171
+ const o = (s.converter?.toAttribute !== void 0 ? s.converter : B).toAttribute(e, s.type);
172
+ this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
173
173
  }
174
174
  }
175
175
  _$AK(t, e) {
176
- const i = this.constructor, r = i._$Eh.get(t);
177
- if (r !== void 0 && this._$Em !== r) {
178
- const n = i.getPropertyOptions(r), o = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : k;
179
- this._$Em = r;
180
- const l = o.fromAttribute(e, n.type);
181
- this[r] = l ?? this._$Ej?.get(r) ?? l, this._$Em = null;
176
+ const s = this.constructor, n = s._$Eh.get(t);
177
+ if (n !== void 0 && this._$Em !== n) {
178
+ const o = s.getPropertyOptions(n), r = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : B;
179
+ this._$Em = n;
180
+ const l = r.fromAttribute(e, o.type);
181
+ this[n] = l ?? this._$Ej?.get(n) ?? l, this._$Em = null;
182
182
  }
183
183
  }
184
- requestUpdate(t, e, i, r = !1, n) {
184
+ requestUpdate(t, e, s, n = !1, o) {
185
185
  if (t !== void 0) {
186
- const o = this.constructor;
187
- if (r === !1 && (n = this[t]), i ??= o.getPropertyOptions(t), !((i.hasChanged ?? K)(n, e) || i.useDefault && i.reflect && n === this._$Ej?.get(t) && !this.hasAttribute(o._$Eu(t, i)))) return;
188
- this.C(t, e, i);
186
+ const r = this.constructor;
187
+ if (n === !1 && (o = this[t]), s ??= r.getPropertyOptions(t), !((s.hasChanged ?? et)(o, e) || s.useDefault && s.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(r._$Eu(t, s)))) return;
188
+ this.C(t, e, s);
189
189
  }
190
190
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
191
191
  }
192
- C(t, e, { useDefault: i, reflect: r, wrapped: n }, o) {
193
- i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), r === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
192
+ C(t, e, { useDefault: s, reflect: n, wrapped: o }, r) {
193
+ s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, r ?? e ?? this[t]), o !== !0 || r !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), n === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
194
194
  }
195
195
  async _$EP() {
196
196
  this.isUpdatePending = !0;
@@ -209,21 +209,21 @@ let S = class extends HTMLElement {
209
209
  if (!this.isUpdatePending) return;
210
210
  if (!this.hasUpdated) {
211
211
  if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
212
- for (const [r, n] of this._$Ep) this[r] = n;
212
+ for (const [n, o] of this._$Ep) this[n] = o;
213
213
  this._$Ep = void 0;
214
214
  }
215
- const i = this.constructor.elementProperties;
216
- if (i.size > 0) for (const [r, n] of i) {
217
- const { wrapped: o } = n, l = this[r];
218
- o !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, n, l);
215
+ const s = this.constructor.elementProperties;
216
+ if (s.size > 0) for (const [n, o] of s) {
217
+ const { wrapped: r } = o, l = this[n];
218
+ r !== !0 || this._$AL.has(n) || l === void 0 || this.C(n, void 0, o, l);
219
219
  }
220
220
  }
221
221
  let t = !1;
222
222
  const e = this._$AL;
223
223
  try {
224
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach((i) => i.hostUpdate?.()), this.update(e)) : this._$EM();
225
- } catch (i) {
226
- throw t = !1, this._$EM(), i;
224
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach((s) => s.hostUpdate?.()), this.update(e)) : this._$EM();
225
+ } catch (s) {
226
+ throw t = !1, this._$EM(), s;
227
227
  }
228
228
  t && this._$AE(e);
229
229
  }
@@ -252,70 +252,70 @@ let S = class extends HTMLElement {
252
252
  firstUpdated(t) {
253
253
  }
254
254
  };
255
- S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[M("elementProperties")] = /* @__PURE__ */ new Map(), S[M("finalized")] = /* @__PURE__ */ new Map(), kt?.({ ReactiveElement: S }), (W.reactiveElementVersions ??= []).push("2.1.2");
256
- const F = globalThis, ot = (s) => s, B = F.trustedTypes, at = B ? B.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, mt = "$lit$", v = `lit$${Math.random().toFixed(9).slice(2)}$`, ft = "?" + v, Bt = `<${ft}>`, b = document, N = () => b.createComment(""), z = (s) => s === null || typeof s != "object" && typeof s != "function", Q = Array.isArray, Wt = (s) => Q(s) || typeof s?.[Symbol.iterator] == "function", Z = `[
257
- \f\r]`, P = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, lt = />/g, A = RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^
258
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ct = /'/g, dt = /"/g, yt = /^(?:script|style|textarea|title)$/i, qt = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), Vt = qt(1), E = /* @__PURE__ */ Symbol.for("lit-noChange"), u = /* @__PURE__ */ Symbol.for("lit-nothing"), pt = /* @__PURE__ */ new WeakMap(), _ = b.createTreeWalker(b, 129);
259
- function gt(s, t) {
260
- if (!Q(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
261
- return at !== void 0 ? at.createHTML(t) : t;
255
+ S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[N("elementProperties")] = /* @__PURE__ */ new Map(), S[N("finalized")] = /* @__PURE__ */ new Map(), Zt?.({ ReactiveElement: S }), (q.reactiveElementVersions ??= []).push("2.1.2");
256
+ const it = globalThis, mt = (i) => i, W = it.trustedTypes, ft = W ? W.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, _t = "$lit$", v = `lit$${Math.random().toFixed(9).slice(2)}$`, bt = "?" + v, Gt = `<${bt}>`, C = document, z = () => C.createComment(""), H = (i) => i === null || typeof i != "object" && typeof i != "function", st = Array.isArray, Jt = (i) => st(i) || typeof i?.[Symbol.iterator] == "function", K = `[
257
+ \f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, yt = /-->/g, gt = />/g, b = RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
258
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), xt = /'/g, $t = /"/g, wt = /^(?:script|style|textarea|title)$/i, Kt = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), Ft = Kt(1), E = /* @__PURE__ */ Symbol.for("lit-noChange"), u = /* @__PURE__ */ Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), w = C.createTreeWalker(C, 129);
259
+ function Ct(i, t) {
260
+ if (!st(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
261
+ return ft !== void 0 ? ft.createHTML(t) : t;
262
262
  }
263
- const Xt = (s, t) => {
264
- const e = s.length - 1, i = [];
265
- let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = P;
263
+ const Qt = (i, t) => {
264
+ const e = i.length - 1, s = [];
265
+ let n, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = U;
266
266
  for (let l = 0; l < e; l++) {
267
- const h = s[l];
268
- let a, d, c = -1, y = 0;
269
- for (; y < h.length && (o.lastIndex = y, d = o.exec(h), d !== null); ) y = o.lastIndex, o === P ? d[1] === "!--" ? o = ht : d[1] !== void 0 ? o = lt : d[2] !== void 0 ? (yt.test(d[2]) && (r = RegExp("</" + d[2], "g")), o = A) : d[3] !== void 0 && (o = A) : o === A ? d[0] === ">" ? (o = r ?? P, c = -1) : d[1] === void 0 ? c = -2 : (c = o.lastIndex - d[2].length, a = d[1], o = d[3] === void 0 ? A : d[3] === '"' ? dt : ct) : o === dt || o === ct ? o = A : o === ht || o === lt ? o = P : (o = A, r = void 0);
270
- const m = o === A && s[l + 1].startsWith("/>") ? " " : "";
271
- n += o === P ? h + Bt : c >= 0 ? (i.push(a), h.slice(0, c) + mt + h.slice(c) + v + m) : h + v + (c === -2 ? l : m);
267
+ const a = i[l];
268
+ let h, c, p = -1, y = 0;
269
+ for (; y < a.length && (r.lastIndex = y, c = r.exec(a), c !== null); ) y = r.lastIndex, r === U ? c[1] === "!--" ? r = yt : c[1] !== void 0 ? r = gt : c[2] !== void 0 ? (wt.test(c[2]) && (n = RegExp("</" + c[2], "g")), r = b) : c[3] !== void 0 && (r = b) : r === b ? c[0] === ">" ? (r = n ?? U, p = -1) : c[1] === void 0 ? p = -2 : (p = r.lastIndex - c[2].length, h = c[1], r = c[3] === void 0 ? b : c[3] === '"' ? $t : xt) : r === $t || r === xt ? r = b : r === yt || r === gt ? r = U : (r = b, n = void 0);
270
+ const m = r === b && i[l + 1].startsWith("/>") ? " " : "";
271
+ o += r === U ? a + Gt : p >= 0 ? (s.push(h), a.slice(0, p) + _t + a.slice(p) + v + m) : a + v + (p === -2 ? l : m);
272
272
  }
273
- return [gt(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
273
+ return [Ct(i, o + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
274
274
  };
275
- class H {
276
- constructor({ strings: t, _$litType$: e }, i) {
277
- let r;
275
+ class j {
276
+ constructor({ strings: t, _$litType$: e }, s) {
277
+ let n;
278
278
  this.parts = [];
279
- let n = 0, o = 0;
280
- const l = t.length - 1, h = this.parts, [a, d] = Xt(t, e);
281
- if (this.el = H.createElement(a, i), _.currentNode = this.el.content, e === 2 || e === 3) {
282
- const c = this.el.content.firstChild;
283
- c.replaceWith(...c.childNodes);
279
+ let o = 0, r = 0;
280
+ const l = t.length - 1, a = this.parts, [h, c] = Qt(t, e);
281
+ if (this.el = j.createElement(h, s), w.currentNode = this.el.content, e === 2 || e === 3) {
282
+ const p = this.el.content.firstChild;
283
+ p.replaceWith(...p.childNodes);
284
284
  }
285
- for (; (r = _.nextNode()) !== null && h.length < l; ) {
286
- if (r.nodeType === 1) {
287
- if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(mt)) {
288
- const y = d[o++], m = r.getAttribute(c).split(v), f = /([.?@])?(.*)/.exec(y);
289
- h.push({ type: 1, index: n, name: f[2], strings: m, ctor: f[1] === "." ? Yt : f[1] === "?" ? Gt : f[1] === "@" ? Jt : q }), r.removeAttribute(c);
290
- } else c.startsWith(v) && (h.push({ type: 6, index: n }), r.removeAttribute(c));
291
- if (yt.test(r.tagName)) {
292
- const c = r.textContent.split(v), y = c.length - 1;
285
+ for (; (n = w.nextNode()) !== null && a.length < l; ) {
286
+ if (n.nodeType === 1) {
287
+ if (n.hasAttributes()) for (const p of n.getAttributeNames()) if (p.endsWith(_t)) {
288
+ const y = c[r++], m = n.getAttribute(p).split(v), g = /([.?@])?(.*)/.exec(y);
289
+ a.push({ type: 1, index: o, name: g[2], strings: m, ctor: g[1] === "." ? ee : g[1] === "?" ? ie : g[1] === "@" ? se : V }), n.removeAttribute(p);
290
+ } else p.startsWith(v) && (a.push({ type: 6, index: o }), n.removeAttribute(p));
291
+ if (wt.test(n.tagName)) {
292
+ const p = n.textContent.split(v), y = p.length - 1;
293
293
  if (y > 0) {
294
- r.textContent = B ? B.emptyScript : "";
295
- for (let m = 0; m < y; m++) r.append(c[m], N()), _.nextNode(), h.push({ type: 2, index: ++n });
296
- r.append(c[y], N());
294
+ n.textContent = W ? W.emptyScript : "";
295
+ for (let m = 0; m < y; m++) n.append(p[m], z()), w.nextNode(), a.push({ type: 2, index: ++o });
296
+ n.append(p[y], z());
297
297
  }
298
298
  }
299
- } else if (r.nodeType === 8) if (r.data === ft) h.push({ type: 2, index: n });
299
+ } else if (n.nodeType === 8) if (n.data === bt) a.push({ type: 2, index: o });
300
300
  else {
301
- let c = -1;
302
- for (; (c = r.data.indexOf(v, c + 1)) !== -1; ) h.push({ type: 7, index: n }), c += v.length - 1;
301
+ let p = -1;
302
+ for (; (p = n.data.indexOf(v, p + 1)) !== -1; ) a.push({ type: 7, index: o }), p += v.length - 1;
303
303
  }
304
- n++;
304
+ o++;
305
305
  }
306
306
  }
307
307
  static createElement(t, e) {
308
- const i = b.createElement("template");
309
- return i.innerHTML = t, i;
308
+ const s = C.createElement("template");
309
+ return s.innerHTML = t, s;
310
310
  }
311
311
  }
312
- function T(s, t, e = s, i) {
312
+ function T(i, t, e = i, s) {
313
313
  if (t === E) return t;
314
- let r = i !== void 0 ? e._$Co?.[i] : e._$Cl;
315
- const n = z(t) ? void 0 : t._$litDirective$;
316
- return r?.constructor !== n && (r?._$AO?.(!1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ??= [])[i] = r : e._$Cl = r), r !== void 0 && (t = T(s, r._$AS(s, t.values), r, i)), t;
314
+ let n = s !== void 0 ? e._$Co?.[s] : e._$Cl;
315
+ const o = H(t) ? void 0 : t._$litDirective$;
316
+ return n?.constructor !== o && (n?._$AO?.(!1), o === void 0 ? n = void 0 : (n = new o(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ??= [])[s] = n : e._$Cl = n), n !== void 0 && (t = T(i, n._$AS(i, t.values), n, s)), t;
317
317
  }
318
- class Zt {
318
+ class te {
319
319
  constructor(t, e) {
320
320
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
321
321
  }
@@ -326,29 +326,29 @@ class Zt {
326
326
  return this._$AM._$AU;
327
327
  }
328
328
  u(t) {
329
- const { el: { content: e }, parts: i } = this._$AD, r = (t?.creationScope ?? b).importNode(e, !0);
330
- _.currentNode = r;
331
- let n = _.nextNode(), o = 0, l = 0, h = i[0];
332
- for (; h !== void 0; ) {
333
- if (o === h.index) {
334
- let a;
335
- h.type === 2 ? a = new R(n, n.nextSibling, this, t) : h.type === 1 ? a = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (a = new Kt(n, this, t)), this._$AV.push(a), h = i[++l];
329
+ const { el: { content: e }, parts: s } = this._$AD, n = (t?.creationScope ?? C).importNode(e, !0);
330
+ w.currentNode = n;
331
+ let o = w.nextNode(), r = 0, l = 0, a = s[0];
332
+ for (; a !== void 0; ) {
333
+ if (r === a.index) {
334
+ let h;
335
+ a.type === 2 ? h = new I(o, o.nextSibling, this, t) : a.type === 1 ? h = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (h = new ne(o, this, t)), this._$AV.push(h), a = s[++l];
336
336
  }
337
- o !== h?.index && (n = _.nextNode(), o++);
337
+ r !== a?.index && (o = w.nextNode(), r++);
338
338
  }
339
- return _.currentNode = b, r;
339
+ return w.currentNode = C, n;
340
340
  }
341
341
  p(t) {
342
342
  let e = 0;
343
- for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
343
+ for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
344
344
  }
345
345
  }
346
- class R {
346
+ class I {
347
347
  get _$AU() {
348
348
  return this._$AM?._$AU ?? this._$Cv;
349
349
  }
350
- constructor(t, e, i, r) {
351
- this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = r?.isConnected ?? !0;
350
+ constructor(t, e, s, n) {
351
+ this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = n, this._$Cv = n?.isConnected ?? !0;
352
352
  }
353
353
  get parentNode() {
354
354
  let t = this._$AA.parentNode;
@@ -362,7 +362,7 @@ class R {
362
362
  return this._$AB;
363
363
  }
364
364
  _$AI(t, e = this) {
365
- t = T(this, t, e), z(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Wt(t) ? this.k(t) : this._(t);
365
+ t = T(this, t, e), H(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Jt(t) ? this.k(t) : this._(t);
366
366
  }
367
367
  O(t) {
368
368
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -371,63 +371,63 @@ class R {
371
371
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
372
372
  }
373
373
  _(t) {
374
- this._$AH !== u && z(this._$AH) ? this._$AA.nextSibling.data = t : this.T(b.createTextNode(t)), this._$AH = t;
374
+ this._$AH !== u && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(C.createTextNode(t)), this._$AH = t;
375
375
  }
376
376
  $(t) {
377
- const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = H.createElement(gt(i.h, i.h[0]), this.options)), i);
378
- if (this._$AH?._$AD === r) this._$AH.p(e);
377
+ const { values: e, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = j.createElement(Ct(s.h, s.h[0]), this.options)), s);
378
+ if (this._$AH?._$AD === n) this._$AH.p(e);
379
379
  else {
380
- const n = new Zt(r, this), o = n.u(this.options);
381
- n.p(e), this.T(o), this._$AH = n;
380
+ const o = new te(n, this), r = o.u(this.options);
381
+ o.p(e), this.T(r), this._$AH = o;
382
382
  }
383
383
  }
384
384
  _$AC(t) {
385
- let e = pt.get(t.strings);
386
- return e === void 0 && pt.set(t.strings, e = new H(t)), e;
385
+ let e = At.get(t.strings);
386
+ return e === void 0 && At.set(t.strings, e = new j(t)), e;
387
387
  }
388
388
  k(t) {
389
- Q(this._$AH) || (this._$AH = [], this._$AR());
389
+ st(this._$AH) || (this._$AH = [], this._$AR());
390
390
  const e = this._$AH;
391
- let i, r = 0;
392
- for (const n of t) r === e.length ? e.push(i = new R(this.O(N()), this.O(N()), this, this.options)) : i = e[r], i._$AI(n), r++;
393
- r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
391
+ let s, n = 0;
392
+ for (const o of t) n === e.length ? e.push(s = new I(this.O(z()), this.O(z()), this, this.options)) : s = e[n], s._$AI(o), n++;
393
+ n < e.length && (this._$AR(s && s._$AB.nextSibling, n), e.length = n);
394
394
  }
395
395
  _$AR(t = this._$AA.nextSibling, e) {
396
396
  for (this._$AP?.(!1, !0, e); t !== this._$AB; ) {
397
- const i = ot(t).nextSibling;
398
- ot(t).remove(), t = i;
397
+ const s = mt(t).nextSibling;
398
+ mt(t).remove(), t = s;
399
399
  }
400
400
  }
401
401
  setConnected(t) {
402
402
  this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
403
403
  }
404
404
  }
405
- class q {
405
+ class V {
406
406
  get tagName() {
407
407
  return this.element.tagName;
408
408
  }
409
409
  get _$AU() {
410
410
  return this._$AM._$AU;
411
411
  }
412
- constructor(t, e, i, r, n) {
413
- this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
412
+ constructor(t, e, s, n, o) {
413
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = u;
414
414
  }
415
- _$AI(t, e = this, i, r) {
416
- const n = this.strings;
417
- let o = !1;
418
- if (n === void 0) t = T(this, t, e, 0), o = !z(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
415
+ _$AI(t, e = this, s, n) {
416
+ const o = this.strings;
417
+ let r = !1;
418
+ if (o === void 0) t = T(this, t, e, 0), r = !H(t) || t !== this._$AH && t !== E, r && (this._$AH = t);
419
419
  else {
420
420
  const l = t;
421
- let h, a;
422
- for (t = n[0], h = 0; h < n.length - 1; h++) a = T(this, l[i + h], e, h), a === E && (a = this._$AH[h]), o ||= !z(a) || a !== this._$AH[h], a === u ? t = u : t !== u && (t += (a ?? "") + n[h + 1]), this._$AH[h] = a;
421
+ let a, h;
422
+ for (t = o[0], a = 0; a < o.length - 1; a++) h = T(this, l[s + a], e, a), h === E && (h = this._$AH[a]), r ||= !H(h) || h !== this._$AH[a], h === u ? t = u : t !== u && (t += (h ?? "") + o[a + 1]), this._$AH[a] = h;
423
423
  }
424
- o && !r && this.j(t);
424
+ r && !n && this.j(t);
425
425
  }
426
426
  j(t) {
427
427
  t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
428
428
  }
429
429
  }
430
- class Yt extends q {
430
+ class ee extends V {
431
431
  constructor() {
432
432
  super(...arguments), this.type = 3;
433
433
  }
@@ -435,7 +435,7 @@ class Yt extends q {
435
435
  this.element[this.name] = t === u ? void 0 : t;
436
436
  }
437
437
  }
438
- class Gt extends q {
438
+ class ie extends V {
439
439
  constructor() {
440
440
  super(...arguments), this.type = 4;
441
441
  }
@@ -443,22 +443,22 @@ class Gt extends q {
443
443
  this.element.toggleAttribute(this.name, !!t && t !== u);
444
444
  }
445
445
  }
446
- class Jt extends q {
447
- constructor(t, e, i, r, n) {
448
- super(t, e, i, r, n), this.type = 5;
446
+ class se extends V {
447
+ constructor(t, e, s, n, o) {
448
+ super(t, e, s, n, o), this.type = 5;
449
449
  }
450
450
  _$AI(t, e = this) {
451
451
  if ((t = T(this, t, e, 0) ?? u) === E) return;
452
- const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || r);
453
- r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
452
+ const s = this._$AH, n = t === u && s !== u || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== u && (s === u || n);
453
+ n && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
454
454
  }
455
455
  handleEvent(t) {
456
456
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
457
457
  }
458
458
  }
459
- class Kt {
460
- constructor(t, e, i) {
461
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
459
+ class ne {
460
+ constructor(t, e, s) {
461
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
462
462
  }
463
463
  get _$AU() {
464
464
  return this._$AM._$AU;
@@ -467,19 +467,19 @@ class Kt {
467
467
  T(this, t);
468
468
  }
469
469
  }
470
- const Ft = F.litHtmlPolyfillSupport;
471
- Ft?.(H, R), (F.litHtmlVersions ??= []).push("3.3.2");
472
- const Qt = (s, t, e) => {
473
- const i = e?.renderBefore ?? t;
474
- let r = i._$litPart$;
475
- if (r === void 0) {
476
- const n = e?.renderBefore ?? null;
477
- i._$litPart$ = r = new R(t.insertBefore(N(), n), n, void 0, e ?? {});
478
- }
479
- return r._$AI(s), r;
470
+ const oe = it.litHtmlPolyfillSupport;
471
+ oe?.(j, I), (it.litHtmlVersions ??= []).push("3.3.2");
472
+ const re = (i, t, e) => {
473
+ const s = e?.renderBefore ?? t;
474
+ let n = s._$litPart$;
475
+ if (n === void 0) {
476
+ const o = e?.renderBefore ?? null;
477
+ s._$litPart$ = n = new I(t.insertBefore(z(), o), o, void 0, e ?? {});
478
+ }
479
+ return n._$AI(i), n;
480
480
  };
481
- const tt = globalThis;
482
- class U extends S {
481
+ const nt = globalThis;
482
+ class R extends S {
483
483
  constructor() {
484
484
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
485
485
  }
@@ -489,7 +489,7 @@ class U extends S {
489
489
  }
490
490
  update(t) {
491
491
  const e = this.render();
492
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Qt(e, this.renderRoot, this.renderOptions);
492
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = re(e, this.renderRoot, this.renderOptions);
493
493
  }
494
494
  connectedCallback() {
495
495
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -501,76 +501,76 @@ class U extends S {
501
501
  return E;
502
502
  }
503
503
  }
504
- U._$litElement$ = !0, U.finalized = !0, tt.litElementHydrateSupport?.({ LitElement: U });
505
- const te = tt.litElementPolyfillSupport;
506
- te?.({ LitElement: U });
507
- (tt.litElementVersions ??= []).push("4.2.2");
508
- const ee = (s) => (t, e) => {
504
+ R._$litElement$ = !0, R.finalized = !0, nt.litElementHydrateSupport?.({ LitElement: R });
505
+ const ae = nt.litElementPolyfillSupport;
506
+ ae?.({ LitElement: R });
507
+ (nt.litElementVersions ??= []).push("4.2.2");
508
+ const he = (i) => (t, e) => {
509
509
  e !== void 0 ? e.addInitializer(() => {
510
- customElements.define(s, t);
511
- }) : customElements.define(s, t);
510
+ customElements.define(i, t);
511
+ }) : customElements.define(i, t);
512
512
  };
513
- const se = { attribute: !0, type: String, converter: k, reflect: !1, hasChanged: K }, ie = (s = se, t, e) => {
514
- const { kind: i, metadata: r } = e;
515
- let n = globalThis.litPropertyMetadata.get(r);
516
- if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), i === "setter" && ((s = Object.create(s)).wrapped = !0), n.set(e.name, s), i === "accessor") {
517
- const { name: o } = e;
513
+ const le = { attribute: !0, type: String, converter: B, reflect: !1, hasChanged: et }, ce = (i = le, t, e) => {
514
+ const { kind: s, metadata: n } = e;
515
+ let o = globalThis.litPropertyMetadata.get(n);
516
+ if (o === void 0 && globalThis.litPropertyMetadata.set(n, o = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), o.set(e.name, i), s === "accessor") {
517
+ const { name: r } = e;
518
518
  return { set(l) {
519
- const h = t.get.call(this);
520
- t.set.call(this, l), this.requestUpdate(o, h, s, !0, l);
519
+ const a = t.get.call(this);
520
+ t.set.call(this, l), this.requestUpdate(r, a, i, !0, l);
521
521
  }, init(l) {
522
- return l !== void 0 && this.C(o, void 0, s, l), l;
522
+ return l !== void 0 && this.C(r, void 0, i, l), l;
523
523
  } };
524
524
  }
525
- if (i === "setter") {
526
- const { name: o } = e;
525
+ if (s === "setter") {
526
+ const { name: r } = e;
527
527
  return function(l) {
528
- const h = this[o];
529
- t.call(this, l), this.requestUpdate(o, h, s, !0, l);
528
+ const a = this[r];
529
+ t.call(this, l), this.requestUpdate(r, a, i, !0, l);
530
530
  };
531
531
  }
532
- throw Error("Unsupported decorator location: " + i);
532
+ throw Error("Unsupported decorator location: " + s);
533
533
  };
534
- function V(s) {
535
- return (t, e) => typeof e == "object" ? ie(s, t, e) : ((i, r, n) => {
536
- const o = r.hasOwnProperty(n);
537
- return r.constructor.createProperty(n, i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
538
- })(s, t, e);
534
+ function X(i) {
535
+ return (t, e) => typeof e == "object" ? ce(i, t, e) : ((s, n, o) => {
536
+ const r = n.hasOwnProperty(o);
537
+ return n.constructor.createProperty(o, s), r ? Object.getOwnPropertyDescriptor(n, o) : void 0;
538
+ })(i, t, e);
539
539
  }
540
- function X(s) {
541
- return V({ ...s, state: !0, attribute: !1 });
540
+ function Y(i) {
541
+ return X({ ...i, state: !0, attribute: !1 });
542
542
  }
543
- const re = (s, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(s, t, e), e);
544
- function ne(s, t) {
545
- return (e, i, r) => {
546
- const n = (o) => o.renderRoot?.querySelector(s) ?? null;
547
- return re(e, i, { get() {
548
- return n(this);
543
+ const pe = (i, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(i, t, e), e);
544
+ function de(i, t) {
545
+ return (e, s, n) => {
546
+ const o = (r) => r.renderRoot?.querySelector(i) ?? null;
547
+ return pe(e, s, { get() {
548
+ return o(this);
549
549
  } });
550
550
  };
551
551
  }
552
- var oe = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, x = (s, t, e, i) => {
553
- for (var r = i > 1 ? void 0 : i ? ae(t, e) : t, n = s.length - 1, o; n >= 0; n--)
554
- (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
555
- return i && r && oe(t, e, r), r;
552
+ var ue = Object.defineProperty, me = Object.getOwnPropertyDescriptor, $ = (i, t, e, s) => {
553
+ for (var n = s > 1 ? void 0 : s ? me(t, e) : t, o = i.length - 1, r; o >= 0; o--)
554
+ (r = i[o]) && (n = (s ? r(t, e, n) : r(n)) || n);
555
+ return s && n && ue(t, e, n), n;
556
556
  };
557
- Y.use([
558
- xt,
559
- vt,
560
- At,
561
- _t,
562
- bt,
563
- wt,
564
- Ct,
557
+ F.use([
565
558
  St,
566
559
  Et,
567
- Ot,
568
560
  Tt,
569
- Dt
561
+ Dt,
562
+ Lt,
563
+ Ot,
564
+ Pt,
565
+ Mt,
566
+ Ut,
567
+ zt,
568
+ Nt,
569
+ Rt
570
570
  ]);
571
- let $ = class extends U {
571
+ let x = class extends R {
572
572
  constructor() {
573
- super(), this.canvasList = /* @__PURE__ */ new Map(), this.origWidth = 0, this.origHeight = 0, this.modifier = 1, this.version = "1.6.34", this.updateThresholdMs = 300, this.maxIntervalSamples = 3, this.template = {
573
+ super(), this.canvasList = /* @__PURE__ */ new Map(), this.origWidth = 0, this.origHeight = 0, this.modifier = 1, this.version = "1.7.1", this.updateThresholdMs = 300, this.maxIntervalSamples = 3, this.template = {
574
574
  title: {
575
575
  text: "Temperature Change in the Coming Week",
576
576
  left: "center",
@@ -629,21 +629,45 @@ let $ = class extends U {
629
629
  fontSize: 14
630
630
  }
631
631
  },
632
- yAxis: {
633
- type: "value",
634
- nameLocation: "middle",
635
- name: "Temperature (°C)",
636
- nameGap: 30,
637
- axisLabel: {
638
- fontSize: 14
639
- },
640
- axisLine: {
641
- lineStyle: {
642
- width: void 0
643
- }
632
+ // index 0 = left (primary) axis, index 1 = right (secondary) axis.
633
+ // Must stay function-free: the template is copied via structuredClone.
634
+ yAxis: [
635
+ {
636
+ type: "value",
637
+ nameLocation: "middle",
638
+ name: "Temperature (°C)",
639
+ nameGap: 30,
640
+ position: "left",
641
+ axisLabel: {
642
+ fontSize: 14
643
+ },
644
+ axisLine: {
645
+ lineStyle: {
646
+ width: void 0
647
+ }
648
+ },
649
+ scale: !1
644
650
  },
645
- scale: !1
646
- },
651
+ {
652
+ type: "value",
653
+ position: "right",
654
+ show: !1,
655
+ name: "",
656
+ nameGap: 30,
657
+ axisLabel: {
658
+ fontSize: 14
659
+ },
660
+ axisLine: {
661
+ lineStyle: {
662
+ width: void 0
663
+ }
664
+ },
665
+ splitLine: {
666
+ show: !1
667
+ },
668
+ scale: !1
669
+ }
670
+ ],
647
671
  series: [
648
672
  {
649
673
  name: "Highest",
@@ -669,23 +693,23 @@ let $ = class extends U {
669
693
  ]
670
694
  };
671
695
  }
672
- update(s) {
673
- s.has("inputData") && (this.cachedXAxisType = void 0, this.cachedYAxisType = void 0), s.has("inputData") && this.chartContainer && (this.transformData(), this.applyData()), s.has("theme") && (this.registerTheme(this.theme), this.deleteCharts(), this.transformData(), this.applyData()), super.update(s);
696
+ update(i) {
697
+ i.has("inputData") && (this.cachedXAxisType = void 0, this.cachedYAxisType = void 0), i.has("inputData") && this.chartContainer && (this.transformData(), this.applyData()), i.has("theme") && (this.registerTheme(this.theme), this.deleteCharts(), this.transformData(), this.applyData()), super.update(i);
674
698
  }
675
- firstUpdated(s) {
699
+ firstUpdated(i) {
676
700
  this.registerTheme(this.theme), this.transformData(), this.applyData(), this.chartContainer && (this.resizeObserver = new ResizeObserver(() => {
677
701
  this.canvasList.forEach((t) => {
678
702
  t.echart?.resize();
679
703
  });
680
704
  }), this.resizeObserver.observe(this.chartContainer));
681
705
  }
682
- registerTheme(s) {
706
+ registerTheme(i) {
683
707
  const t = getComputedStyle(this).getPropertyValue("--re-text-color").trim(), e = getComputedStyle(this).getPropertyValue("--re-tile-background-color").trim();
684
- if (this.themeBgColor = e || this.theme?.theme_object?.backgroundColor, this.themeTitleColor = t || this.theme?.theme_object?.title?.textStyle?.color, this.themeSubtitleColor = t || this.theme?.theme_object?.title?.subtextStyle?.color || this.themeTitleColor, !s || !s.theme_object || !s.theme_name) return;
685
- const i = ["parallel", "geo", "timeline", "visualMap", "markPoint"], r = Object.fromEntries(
686
- Object.entries(s.theme_object).filter(([n]) => !i.includes(n))
708
+ if (this.themeBgColor = e || this.theme?.theme_object?.backgroundColor, this.themeTitleColor = t || this.theme?.theme_object?.title?.textStyle?.color, this.themeSubtitleColor = t || this.theme?.theme_object?.title?.subtextStyle?.color || this.themeTitleColor, !i || !i.theme_object || !i.theme_name) return;
709
+ const s = ["parallel", "geo", "timeline", "visualMap", "markPoint"], n = Object.fromEntries(
710
+ Object.entries(i.theme_object).filter(([o]) => !s.includes(o))
687
711
  );
688
- Y.registerTheme(s.theme_name, r);
712
+ F.registerTheme(i.theme_name, n);
689
713
  }
690
714
  transformData() {
691
715
  if (!this?.inputData?.dataseries?.length) return;
@@ -693,56 +717,57 @@ let $ = class extends U {
693
717
  t.series = [], t.doomed = !0;
694
718
  }), this.inputData.dataseries.sort((t, e) => (t.advanced?.drawOrder ?? 0) - (e.advanced?.drawOrder ?? 0)), this.inputData.dataseries.forEach((t) => {
695
719
  t.advanced ??= {}, t.advanced.chartName ??= "", t.data ??= [];
696
- const e = [...new Set(t.data.map((n) => n.pivot ?? ""))].sort(), i = et(t.backgroundColor).monochromatic(e.length).map((n) => n.toHexString()), r = et(t.borderColor).monochromatic(e.length).map((n) => n.toHexString());
697
- e.forEach((n, o) => {
698
- const l = n ?? "", h = t.label ?? "", a = l + (l && h ? " - " : "") + h, d = t.borderColor ? t.advanced?.chartName?.includes("#split#") ? t.borderColor : r[o] : void 0, c = t.backgroundColor ? t.advanced?.chartName?.includes("#split#") ? t.backgroundColor : i[o] : void 0, y = e.length === 1 ? t.data : t.data?.filter((p) => p.pivot === n);
699
- let m = this.inputData?.axis?.timeseries ? y?.map((p) => ({ name: p.x, value: [new Date(p.x ?? "").getTime(), p.y, p.r] })) ?? [] : y?.map((p) => ({ name: p.x, value: [p.x, p.y, p.r] })) ?? [], f = 0, w = 0;
720
+ const e = [...new Set(t.data.map((o) => o.pivot ?? ""))].sort(), s = lt(t.backgroundColor).monochromatic(e.length).map((o) => o.toHexString()), n = lt(t.borderColor).monochromatic(e.length).map((o) => o.toHexString());
721
+ e.forEach((o, r) => {
722
+ const l = o ?? "", a = t.label ?? "", h = l + (l && a ? " - " : "") + a, c = t.borderColor ? t.advanced?.chartName?.includes("#split#") ? t.borderColor : n[r] : void 0, p = t.backgroundColor ? t.advanced?.chartName?.includes("#split#") ? t.backgroundColor : s[r] : void 0, y = e.length === 1 ? t.data : t.data?.filter((d) => d.pivot === o);
723
+ let m = this.inputData?.axis?.timeseries ? y?.map((d) => ({ name: d.x, value: [new Date(d.x ?? "").getTime(), d.y, d.r] })) ?? [] : y?.map((d) => ({ name: d.x, value: [d.x, d.y, d.r] })) ?? [], g = 0, D = 0;
700
724
  if (this.xAxisType() === "time" && m) {
701
- const p = m.map(($t) => $t.value[0]);
702
- f = Math.min(...p), w = Math.max(...p);
725
+ const d = m.map((f) => f.value[0]);
726
+ g = Math.min(...d), D = Math.max(...d);
703
727
  }
704
- const D = {
705
- id: a,
706
- name: a,
707
- minDate: f,
708
- maxDate: w,
728
+ const L = {
729
+ id: h,
730
+ name: h,
731
+ minDate: g,
732
+ maxDate: D,
709
733
  type: t.type ?? "line",
710
734
  lineStyle: {
711
- color: d,
735
+ color: c,
712
736
  width: t.styling?.borderWidth ?? 2,
713
737
  type: t.styling?.borderDash ?? "solid"
714
738
  },
715
739
  smooth: !1,
716
740
  itemStyle: {
717
- color: c,
718
- borderColor: d,
741
+ color: p,
742
+ borderColor: c,
719
743
  borderWidth: t.styling?.borderWidth ?? 2
720
744
  },
721
- areaStyle: t.styling?.fill ? { color: c } : void 0,
745
+ areaStyle: t.styling?.fill ? { color: p } : void 0,
722
746
  symbol: t.styling?.pointStyle ?? "circle",
723
- symbolSize: (p) => p[2] ?? 0,
747
+ symbolSize: (d) => d[2] ?? 0,
724
748
  showSymbol: t.styling?.pointStyle !== "none",
725
749
  data: m ?? [],
726
- drawOrder: t.advanced?.drawOrder ?? 0
750
+ drawOrder: t.advanced?.drawOrder ?? 0,
751
+ yAxisIndex: t.yAxis === "right" ? 1 : 0
727
752
  };
728
- let C = t.advanced?.chartName ?? "";
729
- C = C.replace("#split#", l);
730
- const O = this.setupChart(C), j = O?.series.map((p) => p.id) ?? [];
731
- let g = a, L = 2;
732
- for (; j.includes(g); )
733
- g = `${a}_${L++}`;
734
- D.id = g, O?.series.push(D);
753
+ let O = t.advanced?.chartName ?? "";
754
+ O = O.replace("#split#", l);
755
+ const P = this.setupChart(O), M = P?.series.map((d) => d.id) ?? [];
756
+ let A = h, Z = 2;
757
+ for (; M.includes(A); )
758
+ A = `${h}_${Z++}`;
759
+ L.id = A, P?.series.push(L);
735
760
  });
736
761
  });
737
- const s = [];
762
+ const i = [];
738
763
  this.canvasList.forEach((t, e) => {
739
- t.doomed && (t.echart?.dispose(), t.element?.remove(), s.push(e));
740
- }), s.forEach((t) => this.canvasList.delete(t)), this.canvasList = new Map(
741
- [...this.canvasList.entries()].sort(([t, e], [i, r]) => {
742
- const n = e.series?.[0].drawOrder ?? 0, o = r.series?.[0].drawOrder ?? 0;
743
- return n !== o ? n - o : t.localeCompare(i);
764
+ t.doomed && (t.echart?.dispose(), t.element?.remove(), i.push(e));
765
+ }), i.forEach((t) => this.canvasList.delete(t)), this.canvasList = new Map(
766
+ [...this.canvasList.entries()].sort(([t, e], [s, n]) => {
767
+ const o = e.series?.[0].drawOrder ?? 0, r = n.series?.[0].drawOrder ?? 0;
768
+ return o !== r ? o - r : t.localeCompare(s);
744
769
  })
745
- ), s.length > 0 && this.canvasList.forEach((t) => {
770
+ ), i.length > 0 && this.canvasList.forEach((t) => {
746
771
  t.echart?.resize();
747
772
  });
748
773
  }
@@ -751,8 +776,8 @@ let $ = class extends U {
751
776
  if (this.inputData?.axis?.timeseries)
752
777
  return this.cachedXAxisType = "time", this.cachedXAxisType;
753
778
  this.cachedXAxisType = "value";
754
- for (const s of this.inputData?.dataseries ?? []) {
755
- const t = s.data?.find((e) => e.x !== void 0 && e.x !== null);
779
+ for (const i of this.inputData?.dataseries ?? []) {
780
+ const t = i.data?.find((e) => e.x !== void 0 && e.x !== null);
756
781
  if (t) {
757
782
  this.cachedXAxisType = isNaN(Number(t.x)) ? "category" : "value";
758
783
  break;
@@ -763,8 +788,8 @@ let $ = class extends U {
763
788
  yAxisType() {
764
789
  if (this.cachedYAxisType) return this.cachedYAxisType;
765
790
  this.cachedYAxisType = "value";
766
- for (const s of this.inputData?.dataseries ?? []) {
767
- const t = s.data?.find((e) => e.y !== void 0 && e.y !== null);
791
+ for (const i of this.inputData?.dataseries ?? []) {
792
+ const t = i.data?.find((e) => e.y !== void 0 && e.y !== null);
768
793
  if (t) {
769
794
  this.cachedYAxisType = isNaN(Number(t.y)) ? "category" : "value";
770
795
  break;
@@ -772,100 +797,124 @@ let $ = class extends U {
772
797
  }
773
798
  return this.cachedYAxisType;
774
799
  }
775
- calculateAnimationDuration(s, t) {
800
+ calculateAnimationDuration(i, t) {
776
801
  const e = Date.now();
777
- if (!(s.series.length === 1) || !this.inputData?.axis?.timeseries)
802
+ if (!(i.series.length === 1) || !this.inputData?.axis?.timeseries)
778
803
  return this.updateThresholdMs;
779
- let r = 0;
804
+ let n = 0;
780
805
  if (this.xAxisType() === "time")
781
- for (const l of s.series) {
782
- const h = l.data;
783
- for (const a of h || []) {
784
- const d = a.value?.[0] || 0;
785
- d > r && (r = d);
806
+ for (const l of i.series) {
807
+ const a = l.data;
808
+ for (const h of a || []) {
809
+ const c = h.value?.[0] || 0;
810
+ c > n && (n = c);
786
811
  }
787
812
  }
788
813
  else
789
- r = e;
790
- if (s.lastMaxTimestamp = s.lastMaxTimestamp ?? 0, r > s.lastMaxTimestamp) {
791
- if (s.updateIntervals ??= [], s.lastUpdateTime > 0) {
792
- const l = e - s.lastUpdateTime;
793
- s.updateIntervals.push(l), s.updateIntervals.length > this.maxIntervalSamples && s.updateIntervals.shift();
814
+ n = e;
815
+ if (i.lastMaxTimestamp = i.lastMaxTimestamp ?? 0, n > i.lastMaxTimestamp) {
816
+ if (i.updateIntervals ??= [], i.lastUpdateTime > 0) {
817
+ const l = e - i.lastUpdateTime;
818
+ i.updateIntervals.push(l), i.updateIntervals.length > this.maxIntervalSamples && i.updateIntervals.shift();
794
819
  }
795
- s.lastUpdateTime = e, s.lastMaxTimestamp = r;
820
+ i.lastUpdateTime = e, i.lastMaxTimestamp = n;
796
821
  }
797
- return s.updateIntervals && s.updateIntervals.length > 0 ? s.updateIntervals.reduce((l, h) => l + h, 0) / s.updateIntervals.length : this.updateThresholdMs;
822
+ return i.updateIntervals && i.updateIntervals.length > 0 ? i.updateIntervals.reduce((l, a) => l + a, 0) / i.updateIntervals.length : this.updateThresholdMs;
798
823
  }
799
824
  applyData() {
800
825
  if (this.chartContainer) {
801
- for (const s of this.canvasList.values())
802
- s.element && this.chartContainer.appendChild(s.element);
803
- this.canvasList.forEach((s, t) => {
804
- s.series.sort((f, w) => f.name > w.name ? 1 : -1);
805
- const e = this.inputData?.axis?.showLegend ?? !0, i = this.inputData?.axis?.showTitle ?? !0, r = this.inputData?.axis?.showXAxis ?? !0, n = this.inputData?.axis?.showYAxis ?? !0, o = this.inputData?.axis?.showBox ?? !1, l = JSON.stringify({
826
+ for (const i of this.canvasList.values())
827
+ i.element && this.chartContainer.appendChild(i.element);
828
+ this.canvasList.forEach((i, t) => {
829
+ i.series.sort((f, G) => f.name > G.name ? 1 : -1);
830
+ const e = this.inputData?.axis?.showLegend ?? !0, s = this.inputData?.axis?.showTitle ?? !0, n = this.inputData?.axis?.showXAxis ?? !0, o = this.inputData?.axis?.showYAxis ?? !0, r = this.inputData?.axis?.showBox ?? !1, l = JSON.stringify({
806
831
  showLegend: e,
807
- showTitle: i,
808
- showXAxis: r,
809
- showYAxis: n,
810
- showBox: o,
832
+ showTitle: s,
833
+ showXAxis: n,
834
+ showYAxis: o,
835
+ showBox: r,
811
836
  xAxisLabel: this.inputData?.axis?.xAxisLabel,
812
837
  yAxisLabel: this.inputData?.axis?.yAxisLabel,
813
838
  xAxisZoom: this.inputData?.axis?.xAxisZoom,
814
839
  yAxisScaling: this.inputData?.axis?.yAxisScaling,
840
+ yAxisLabelRight: this.inputData?.axis?.yAxisLabelRight,
841
+ yAxisScalingRight: this.inputData?.axis?.yAxisScalingRight,
815
842
  xAxisType: this.xAxisType(),
816
843
  yAxisType: this.yAxisType(),
817
- seriesCount: s.series.length,
818
- seriesNames: s.series.map((f) => f.name).join(",")
819
- }), h = s.lastConfig !== l;
820
- s.lastConfig = l;
821
- const a = h ? window.structuredClone(this.template) : s.echart?.getOption() ?? window.structuredClone(this.template);
822
- if (a.title.text = t, a.title.show = i, a.xAxis.name = this.inputData?.axis?.xAxisLabel ?? "", a.xAxis.type = this.xAxisType(), a.xAxis.show = r, this.xAxisType() === "time") {
823
- const f = s.series.map((g) => g.minDate ?? 1 / 0).reduce((g, L) => Math.min(g, L), 1 / 0), w = s.series.map((g) => g.maxDate ?? 0).reduce((g, L) => Math.max(g, L), 0), D = Number(this.timeRange?.start), C = Number(this.timeRange?.end), O = isNaN(D) ? f : D, j = isNaN(C) ? w : C;
824
- a.xAxis = {
825
- ...a.xAxis,
826
- min: O !== 1 / 0 ? O : (/* @__PURE__ */ new Date()).getTime() - 1440 * 60 * 1e3,
827
- max: j !== 0 ? j : (/* @__PURE__ */ new Date()).getTime()
844
+ seriesCount: i.series.length,
845
+ seriesNames: i.series.map((f) => f.name).join(","),
846
+ seriesAxes: i.series.map((f) => f.yAxisIndex ?? 0).join(",")
847
+ }), a = i.lastConfig !== l;
848
+ i.lastConfig = l;
849
+ const h = a ? window.structuredClone(this.template) : i.echart?.getOption() ?? window.structuredClone(this.template);
850
+ if (h.title.text = t, h.title.show = s, h.xAxis.name = this.inputData?.axis?.xAxisLabel ?? "", h.xAxis.type = this.xAxisType(), h.xAxis.show = n, this.xAxisType() === "time") {
851
+ const f = i.series.map((_) => _.minDate ?? 1 / 0).reduce((_, J) => Math.min(_, J), 1 / 0), G = i.series.map((_) => _.maxDate ?? 0).reduce((_, J) => Math.max(_, J), 0), ot = Number(this.timeRange?.start), rt = Number(this.timeRange?.end), at = isNaN(ot) ? f : ot, ht = isNaN(rt) ? G : rt;
852
+ h.xAxis = {
853
+ ...h.xAxis,
854
+ min: at !== 1 / 0 ? at : (/* @__PURE__ */ new Date()).getTime() - 1440 * 60 * 1e3,
855
+ max: ht !== 0 ? ht : (/* @__PURE__ */ new Date()).getTime()
828
856
  };
829
857
  }
830
- a.dataZoom[0].show = this.inputData?.axis?.xAxisZoom ?? !1, a.toolbox.show = this.inputData?.axis?.xAxisZoom ?? !1;
831
- const d = this.inputData?.axis?.yAxisLabel ?? "", c = n && !!d;
832
- a.yAxis.type = this.yAxisType(), a.yAxis.name = d, a.yAxis.scale = this.inputData?.axis?.yAxisScaling ?? !1, a.yAxis.show = n, a.yAxis.nameLocation = "end", a.yAxis.nameGap = 10, a.yAxis.nameTextStyle = { align: "left" }, a.yAxis.axisLine = { show: !0 }, ["value", "log"].includes(a.yAxis.type) && (a.yAxis.axisLabel = {
833
- "font-size": 14,
834
- formatter: (f) => Math.round(f * 100) / 100
835
- }), a.series = s.series, a.legend.show = e;
836
- const y = i || c ? 30 : 0;
837
- a.grid = {
838
- ...a.grid,
839
- show: o,
858
+ h.dataZoom[0].show = this.inputData?.axis?.xAxisZoom ?? !1, h.toolbox.show = this.inputData?.axis?.xAxisZoom ?? !1;
859
+ const c = Array.isArray(h.yAxis) ? h.yAxis : [h.yAxis ?? {}];
860
+ for (; c.length < 2; ) c.push({});
861
+ h.yAxis = c;
862
+ const p = i.series.some((f) => (f.yAxisIndex ?? 0) === 1), y = i.series.length === 0 || i.series.some((f) => (f.yAxisIndex ?? 0) === 0), m = o && y, g = o && p, D = this.inputData?.axis?.yAxisLabel ?? "", L = this.inputData?.axis?.yAxisLabelRight ?? "", O = m && !!D, P = g && !!L, M = this.yAxisType(), A = ["value", "log"].includes(M ?? "") ? { fontSize: 14, formatter: (f) => Math.round(f * 100) / 100 } : void 0;
863
+ Object.assign(c[0], {
864
+ type: M,
865
+ name: D,
866
+ scale: this.inputData?.axis?.yAxisScaling ?? !1,
867
+ show: m,
868
+ position: "left",
869
+ nameLocation: "end",
870
+ nameGap: 10,
871
+ nameTextStyle: { align: "left" },
872
+ axisLine: { show: !0 }
873
+ }), A && (c[0].axisLabel = A), Object.assign(c[1], {
874
+ type: M,
875
+ name: g ? L : "",
876
+ scale: this.inputData?.axis?.yAxisScalingRight ?? !1,
877
+ show: g,
878
+ position: "right",
879
+ nameLocation: "end",
880
+ nameGap: 10,
881
+ nameTextStyle: { align: "right" },
882
+ axisLine: { show: !0 },
883
+ splitLine: { show: !1 }
884
+ }), A && (c[1].axisLabel = A), h.series = i.series, h.legend.show = e;
885
+ const Z = (s || O || P ? 30 : 0) + (e && P ? 25 : 0);
886
+ h.grid = {
887
+ ...h.grid,
888
+ show: r,
840
889
  backgroundColor: "transparent",
841
- borderWidth: o ? 1 : 0,
890
+ borderWidth: r ? 1 : 0,
842
891
  borderColor: this.themeTitleColor ?? "#ccc",
843
- top: y,
844
- bottom: r ? 20 : 0,
845
- left: n ? 20 : 0,
892
+ top: Z,
893
+ bottom: n ? 20 : 0,
894
+ left: m ? 20 : 0,
846
895
  right: 0,
847
- containLabel: r || n
896
+ containLabel: n || o
848
897
  };
849
- const m = this.updateThresholdMs;
850
- a.animation = !0, a.animationEasing = "linear", a.animationDuration = m, a.animationDurationUpdate = m, s.echart?.on("finished", () => s.drawing = !1), s.drawing = !0, s.echart?.setOption(a, { notMerge: h, lazyUpdate: !0 });
898
+ const d = this.updateThresholdMs;
899
+ h.animation = !0, h.animationEasing = "linear", h.animationDuration = d, h.animationDurationUpdate = d, i.echart?.on("finished", () => i.drawing = !1), i.drawing = !0, i.echart?.setOption(h, { notMerge: a, lazyUpdate: !0 });
851
900
  });
852
901
  }
853
902
  }
854
903
  deleteCharts() {
855
- this.canvasList.forEach((s, t) => {
856
- s.echart?.dispose(), s.element?.remove(), this.canvasList.delete(t);
904
+ this.canvasList.forEach((i, t) => {
905
+ i.echart?.dispose(), i.element?.remove(), this.canvasList.delete(t);
857
906
  });
858
907
  }
859
- setupChart(s) {
860
- const t = this.canvasList.get(s);
908
+ setupChart(i) {
909
+ const t = this.canvasList.get(i);
861
910
  if (t)
862
911
  return delete t.doomed, t;
863
912
  if (!this.chartContainer)
864
913
  return;
865
914
  const e = document.createElement("div");
866
- e.setAttribute("name", s), e.setAttribute("class", "sizer"), this.chartContainer.appendChild(e);
867
- const r = {
868
- echart: Y.init(e, this.theme?.theme_name),
915
+ e.setAttribute("name", i), e.setAttribute("class", "sizer"), this.chartContainer.appendChild(e);
916
+ const n = {
917
+ echart: F.init(e, this.theme?.theme_name),
869
918
  series: [],
870
919
  element: e,
871
920
  drawing: !1,
@@ -873,13 +922,13 @@ let $ = class extends U {
873
922
  updateIntervals: [],
874
923
  lastMaxTimestamp: 0
875
924
  };
876
- return this.canvasList.set(s, r), r;
925
+ return this.canvasList.set(i, n), n;
877
926
  }
878
927
  disconnectedCallback() {
879
928
  this.resizeObserver && this.chartContainer && (this.resizeObserver.unobserve(this.chartContainer), this.resizeObserver.disconnect()), super.disconnectedCallback();
880
929
  }
881
930
  render() {
882
- return Vt`
931
+ return Ft`
883
932
  <div
884
933
  class="wrapper"
885
934
  style="background-color: ${this.themeBgColor}; color: ${this.themeTitleColor}"
@@ -902,7 +951,7 @@ let $ = class extends U {
902
951
  `;
903
952
  }
904
953
  };
905
- $.styles = Pt`
954
+ x.styles = jt`
906
955
  :host {
907
956
  display: block;
908
957
  font-family: sans-serif;
@@ -979,34 +1028,34 @@ $.styles = Pt`
979
1028
  justify-content: center;
980
1029
  }
981
1030
  `;
982
- x([
983
- V({ type: Object })
984
- ], $.prototype, "inputData", 2);
985
- x([
986
- V({ type: Object })
987
- ], $.prototype, "theme", 2);
988
- x([
989
- V({ type: Object })
990
- ], $.prototype, "timeRange", 2);
991
- x([
992
- X()
993
- ], $.prototype, "canvasList", 2);
994
- x([
995
- X()
996
- ], $.prototype, "themeBgColor", 2);
997
- x([
998
- X()
999
- ], $.prototype, "themeTitleColor", 2);
1000
- x([
1001
- X()
1002
- ], $.prototype, "themeSubtitleColor", 2);
1003
- x([
1004
- ne(".chart-container")
1005
- ], $.prototype, "chartContainer", 2);
1006
- $ = x([
1007
- ee("widget-linechart-1.6.34")
1008
- ], $);
1031
+ $([
1032
+ X({ type: Object })
1033
+ ], x.prototype, "inputData", 2);
1034
+ $([
1035
+ X({ type: Object })
1036
+ ], x.prototype, "theme", 2);
1037
+ $([
1038
+ X({ type: Object })
1039
+ ], x.prototype, "timeRange", 2);
1040
+ $([
1041
+ Y()
1042
+ ], x.prototype, "canvasList", 2);
1043
+ $([
1044
+ Y()
1045
+ ], x.prototype, "themeBgColor", 2);
1046
+ $([
1047
+ Y()
1048
+ ], x.prototype, "themeTitleColor", 2);
1049
+ $([
1050
+ Y()
1051
+ ], x.prototype, "themeSubtitleColor", 2);
1052
+ $([
1053
+ de(".chart-container")
1054
+ ], x.prototype, "chartContainer", 2);
1055
+ x = $([
1056
+ he("widget-linechart-1.7.1")
1057
+ ], x);
1009
1058
  export {
1010
- $ as WidgetLinechart
1059
+ x as WidgetLinechart
1011
1060
  };
1012
1061
  //# sourceMappingURL=widget-linechart.js.map