@wangliang139/klinecharts-pro 0.1.10 → 0.1.11

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.
@@ -2,7 +2,7 @@ var p5 = Object.defineProperty;
2
2
  var v5 = (e, t, n) => t in e ? p5(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var g1 = (e, t, n) => (v5(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { utils as N, init as _5, dispose as D9, registerOverlay as L5 } from "klinecharts";
5
- const b5 = "@wangliang139/klinecharts-pro", $5 = "0.1.9", x5 = "Financial chart built out of the box based on KLineChart.", k5 = "module", w5 = "./dist/klinecharts-pro.umd.js", A5 = "./dist/klinecharts-pro.js", M5 = "./dist/index.d.ts", S5 = [
5
+ const b5 = "@wangliang139/klinecharts-pro", $5 = "0.1.10", x5 = "Financial chart built out of the box based on KLineChart.", k5 = "module", w5 = "./dist/klinecharts-pro.umd.js", A5 = "./dist/klinecharts-pro.js", M5 = "./dist/index.d.ts", S5 = [
6
6
  "LICENSE",
7
7
  "README.md",
8
8
  "dist/"
@@ -276,8 +276,8 @@ const j5 = {
276
276
  ((r == null ? void 0 : r.isInCandle()) ?? !0) && i ? o = i.pricePrecision : n.getIndicators({ paneId: t.paneId }).forEach((b) => {
277
277
  o = Math.max(o, b.precision);
278
278
  });
279
- const c = e[1].x > e[0].x ? e[0].x : e[1].x, u = [1, 0.786, 0.618, 0.5, 0.382, 0.236, 0], d = e[0].y - e[1].y, l = t.points, v = l[0].value - l[1].value;
280
- u.forEach((p) => {
279
+ const c = e[1].x > e[0].x ? e[0].x : e[1].x, C = [1, 0.786, 0.618, 0.5, 0.382, 0.236, 0], d = e[0].y - e[1].y, l = t.points, v = l[0].value - l[1].value;
280
+ C.forEach((p) => {
281
281
  const b = e[1].y + d * p, S = (l[1].value + v * p).toFixed(o.price);
282
282
  a.push({ coordinates: [{ x: e[0].x, y: b }, { x: e[1].x, y: b }] }), s.push({
283
283
  x: c,
@@ -329,13 +329,13 @@ const j5 = {
329
329
  startAngle: s + Math.PI / 2,
330
330
  endAngle: s + Math.PI
331
331
  }];
332
- let u = e[0].x - n, d = e[0].y - n;
332
+ let C = e[0].x - n, d = e[0].y - n;
333
333
  for (let l = 2; l < 9; l++) {
334
334
  const v = c[l - 2].r + c[l - 1].r;
335
335
  let p = 0;
336
336
  switch (l % 4) {
337
337
  case 0: {
338
- p = s, u -= c[l - 2].r;
338
+ p = s, C -= c[l - 2].r;
339
339
  break;
340
340
  }
341
341
  case 1: {
@@ -343,7 +343,7 @@ const j5 = {
343
343
  break;
344
344
  }
345
345
  case 2: {
346
- p = s + Math.PI, u += c[l - 2].r;
346
+ p = s + Math.PI, C += c[l - 2].r;
347
347
  break;
348
348
  }
349
349
  case 3: {
@@ -351,7 +351,7 @@ const j5 = {
351
351
  break;
352
352
  }
353
353
  }
354
- const b = p + Math.PI / 2, S = F1({ x: u, y: d }, e[0], s);
354
+ const b = p + Math.PI / 2, S = F1({ x: C, y: d }, e[0], s);
355
355
  c.push({
356
356
  ...S,
357
357
  r: v,
@@ -427,9 +427,9 @@ const j5 = {
427
427
  ((t == null ? void 0 : t.isInCandle()) ?? !0) && i ? o = i.pricePrecision : e.getIndicators({ paneId: r.paneId }).forEach((b) => {
428
428
  o = Math.max(o, b.precision);
429
429
  });
430
- const c = r.points, u = c[1].value - c[0].value, d = n[1].y - n[0].y, l = [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1], v = n[2].x > n[1].x ? n[1].x : n[2].x;
430
+ const c = r.points, C = c[1].value - c[0].value, d = n[1].y - n[0].y, l = [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1], v = n[2].x > n[1].x ? n[1].x : n[2].x;
431
431
  l.forEach((p) => {
432
- const b = n[2].y + d * p, S = (c[2].value + u * p).toFixed(o.price);
432
+ const b = n[2].y + d * p, S = (c[2].value + C * p).toFixed(o.price);
433
433
  a.push({ coordinates: [{ x: n[1].x, y: b }, { x: n[2].x, y: b }] }), s.push({
434
434
  x: v,
435
435
  y: b,
@@ -813,18 +813,18 @@ function oe(e) {
813
813
  function ce(e, t, n) {
814
814
  let r, a, s;
815
815
  typeof t == "function" ? (r = e, a = t, s = n || {}) : (r = !0, a = e, s = t || {});
816
- let o = null, i = u0, c = !1, u = "initialValue" in s, d = typeof r == "function" && i1(r);
816
+ let o = null, i = u0, c = !1, C = "initialValue" in s, d = typeof r == "function" && i1(r);
817
817
  const l = /* @__PURE__ */ new Set(), [v, p] = (s.storage || L)(s.initialValue), [b, S] = L(void 0), [Z, I] = L(void 0, {
818
818
  equals: !1
819
- }), [Q, j] = L(u ? "ready" : "unresolved");
819
+ }), [Q, j] = L(C ? "ready" : "unresolved");
820
820
  function w(A, D, H, R) {
821
- return o === A && (o = null, R !== void 0 && (u = !0), (A === i || D === i) && s.onHydrated && queueMicrotask(() => s.onHydrated(R, {
821
+ return o === A && (o = null, R !== void 0 && (C = !0), (A === i || D === i) && s.onHydrated && queueMicrotask(() => s.onHydrated(R, {
822
822
  value: D
823
823
  })), i = u0, k(D, H)), D;
824
824
  }
825
825
  function k(A, D) {
826
826
  C1(() => {
827
- D === void 0 && p(() => A), j(D !== void 0 ? "errored" : u ? "ready" : "unresolved"), S(D);
827
+ D === void 0 && p(() => A), j(D !== void 0 ? "errored" : C ? "ready" : "unresolved"), S(D);
828
828
  for (const H of l.keys())
829
829
  H.decrement();
830
830
  l.clear();
@@ -864,7 +864,7 @@ function ce(e, t, n) {
864
864
  } else if (!oe(R))
865
865
  return w(o, R, void 0, D), R;
866
866
  return o = R, "v" in R ? (R.s === 1 ? w(o, R.v, void 0, D) : w(o, void 0, z1(R.v), D), R) : (c = !0, queueMicrotask(() => c = !1), C1(() => {
867
- j(u ? "refreshing" : "pending"), I();
867
+ j(C ? "refreshing" : "pending"), I();
868
868
  }, !1), R.then((e1) => w(R, e1, void 0, D), (e1) => w(R, void 0, z1(e1), D)));
869
869
  }
870
870
  Object.defineProperties(K, {
@@ -882,7 +882,7 @@ function ce(e, t, n) {
882
882
  },
883
883
  latest: {
884
884
  get() {
885
- if (!u)
885
+ if (!C)
886
886
  return K();
887
887
  const A = b();
888
888
  if (A && !o)
@@ -1103,27 +1103,27 @@ function Y0(e) {
1103
1103
  function me(e, t, n = {}) {
1104
1104
  let r = [], a = [], s = [], o = 0, i = t.length > 1 ? [] : null;
1105
1105
  return H1(() => Y0(s)), () => {
1106
- let c = e() || [], u = c.length, d, l;
1106
+ let c = e() || [], C = c.length, d, l;
1107
1107
  return c[ie], a1(() => {
1108
1108
  let p, b, S, Z, I, Q, j, w, k;
1109
- if (u === 0)
1109
+ if (C === 0)
1110
1110
  o !== 0 && (Y0(s), s = [], r = [], a = [], o = 0, i && (i = [])), n.fallback && (r = [ye], a[0] = R1((K) => (s[0] = K, n.fallback())), o = 1);
1111
1111
  else if (o === 0) {
1112
- for (a = new Array(u), l = 0; l < u; l++)
1112
+ for (a = new Array(C), l = 0; l < C; l++)
1113
1113
  r[l] = c[l], a[l] = R1(v);
1114
- o = u;
1114
+ o = C;
1115
1115
  } else {
1116
- for (S = new Array(u), Z = new Array(u), i && (I = new Array(u)), Q = 0, j = Math.min(o, u); Q < j && r[Q] === c[Q]; Q++)
1116
+ for (S = new Array(C), Z = new Array(C), i && (I = new Array(C)), Q = 0, j = Math.min(o, C); Q < j && r[Q] === c[Q]; Q++)
1117
1117
  ;
1118
- for (j = o - 1, w = u - 1; j >= Q && w >= Q && r[j] === c[w]; j--, w--)
1118
+ for (j = o - 1, w = C - 1; j >= Q && w >= Q && r[j] === c[w]; j--, w--)
1119
1119
  S[w] = a[j], Z[w] = s[j], i && (I[w] = i[j]);
1120
1120
  for (p = /* @__PURE__ */ new Map(), b = new Array(w + 1), l = w; l >= Q; l--)
1121
1121
  k = c[l], d = p.get(k), b[l] = d === void 0 ? -1 : d, p.set(k, l);
1122
1122
  for (d = Q; d <= j; d++)
1123
1123
  k = r[d], l = p.get(k), l !== void 0 && l !== -1 ? (S[l] = a[d], Z[l] = s[d], i && (I[l] = i[d]), l = b[l], p.set(k, l)) : s[d]();
1124
- for (l = Q; l < u; l++)
1124
+ for (l = Q; l < C; l++)
1125
1125
  l in S ? (a[l] = S[l], s[l] = Z[l], i && (i[l] = I[l], i[l](l))) : a[l] = R1(v);
1126
- a = a.slice(0, o = u), r = c.slice(0);
1126
+ a = a.slice(0, o = C), r = c.slice(0);
1127
1127
  }
1128
1128
  return a;
1129
1129
  });
@@ -1210,8 +1210,8 @@ function Z9(...e) {
1210
1210
  if (!i)
1211
1211
  continue;
1212
1212
  const c = Object.getOwnPropertyNames(i);
1213
- for (let u = c.length - 1; u >= 0; u--) {
1214
- const d = c[u];
1213
+ for (let C = c.length - 1; C >= 0; C--) {
1214
+ const d = c[C];
1215
1215
  if (d === "__proto__" || d === "constructor")
1216
1216
  continue;
1217
1217
  const l = Object.getOwnPropertyDescriptor(i, d);
@@ -1260,7 +1260,7 @@ function V(e) {
1260
1260
  }
1261
1261
  const J = (e) => i1(() => e());
1262
1262
  function Le(e, t, n) {
1263
- let r = n.length, a = t.length, s = r, o = 0, i = 0, c = t[a - 1].nextSibling, u = null;
1263
+ let r = n.length, a = t.length, s = r, o = 0, i = 0, c = t[a - 1].nextSibling, C = null;
1264
1264
  for (; o < a || i < s; ) {
1265
1265
  if (t[o] === n[i]) {
1266
1266
  o++, i++;
@@ -1274,22 +1274,22 @@ function Le(e, t, n) {
1274
1274
  e.insertBefore(n[i++], d);
1275
1275
  } else if (s === i)
1276
1276
  for (; o < a; )
1277
- (!u || !u.has(t[o])) && t[o].remove(), o++;
1277
+ (!C || !C.has(t[o])) && t[o].remove(), o++;
1278
1278
  else if (t[o] === n[s - 1] && n[i] === t[a - 1]) {
1279
1279
  const d = t[--a].nextSibling;
1280
1280
  e.insertBefore(n[i++], t[o++].nextSibling), e.insertBefore(n[--s], d), t[a] = n[s];
1281
1281
  } else {
1282
- if (!u) {
1283
- u = /* @__PURE__ */ new Map();
1282
+ if (!C) {
1283
+ C = /* @__PURE__ */ new Map();
1284
1284
  let l = i;
1285
1285
  for (; l < s; )
1286
- u.set(n[l], l++);
1286
+ C.set(n[l], l++);
1287
1287
  }
1288
- const d = u.get(t[o]);
1288
+ const d = C.get(t[o]);
1289
1289
  if (d != null)
1290
1290
  if (i < d && d < s) {
1291
1291
  let l = o, v = 1, p;
1292
- for (; ++l < a && l < s && !((p = u.get(t[l])) == null || p !== d + v); )
1292
+ for (; ++l < a && l < s && !((p = C.get(t[l])) == null || p !== d + v); )
1293
1293
  v++;
1294
1294
  if (v > d - i) {
1295
1295
  const b = t[o];
@@ -1376,8 +1376,8 @@ function xe(e) {
1376
1376
  }), o = () => {
1377
1377
  const c = t[n];
1378
1378
  if (c && !t.disabled) {
1379
- const u = t[`${n}Data`];
1380
- if (u !== void 0 ? c.call(t, u, e) : c.call(t, e), e.cancelBubble)
1379
+ const C = t[`${n}Data`];
1380
+ if (C !== void 0 ? c.call(t, C, e) : c.call(t, e), e.cancelBubble)
1381
1381
  return;
1382
1382
  }
1383
1383
  return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && s(t.host), !0;
@@ -1393,7 +1393,7 @@ function xe(e) {
1393
1393
  }), e.composedPath) {
1394
1394
  const c = e.composedPath();
1395
1395
  s(c[0]);
1396
- for (let u = 0; u < c.length - 2 && (t = c[u], !!o()); u++) {
1396
+ for (let C = 0; C < c.length - 2 && (t = c[C], !!o()); C++) {
1397
1397
  if (t._$host) {
1398
1398
  t = t._$host, i();
1399
1399
  break;
@@ -1454,13 +1454,13 @@ function J1(e, t, n, r, a) {
1454
1454
  function v0(e, t, n, r) {
1455
1455
  let a = !1;
1456
1456
  for (let s = 0, o = t.length; s < o; s++) {
1457
- let i = t[s], c = n && n[e.length], u;
1457
+ let i = t[s], c = n && n[e.length], C;
1458
1458
  if (!(i == null || i === !0 || i === !1))
1459
- if ((u = typeof i) == "object" && i.nodeType)
1459
+ if ((C = typeof i) == "object" && i.nodeType)
1460
1460
  e.push(i);
1461
1461
  else if (Array.isArray(i))
1462
1462
  a = v0(e, i, c) || a;
1463
- else if (u === "function")
1463
+ else if (C === "function")
1464
1464
  if (r) {
1465
1465
  for (; typeof i == "function"; )
1466
1466
  i = i();
@@ -1808,8 +1808,8 @@ function U3() {
1808
1808
  var Y3 = U3;
1809
1809
  W1.exports;
1810
1810
  (function(e, t) {
1811
- var n = o1, r = Y3, a = t && !t.nodeType && t, s = a && !0 && e && !e.nodeType && e, o = s && s.exports === a, i = o ? n.Buffer : void 0, c = i ? i.isBuffer : void 0, u = c || r;
1812
- e.exports = u;
1811
+ var n = o1, r = Y3, a = t && !t.nodeType && t, s = a && !0 && e && !e.nodeType && e, o = s && s.exports === a, i = o ? n.Buffer : void 0, c = i ? i.isBuffer : void 0, C = c || r;
1812
+ e.exports = C;
1813
1813
  })(W1, W1.exports);
1814
1814
  var J9 = W1.exports, V3 = 9007199254740991, H3 = /^(?:0|[1-9]\d*)$/;
1815
1815
  function G3(e, t) {
@@ -1847,12 +1847,12 @@ q1.exports;
1847
1847
  var I0 = q1.exports, M8 = w8, S8 = T0, r9 = I0, a9 = r9 && r9.isTypedArray, T8 = a9 ? S8(a9) : M8, I8 = T8, D8 = D3, P8 = R3, B8 = T1, O8 = J9, E8 = W9, F8 = I8, j8 = Object.prototype, K8 = j8.hasOwnProperty;
1848
1848
  function N8(e, t) {
1849
1849
  var n = B8(e), r = !n && P8(e), a = !n && !r && O8(e), s = !n && !r && !a && F8(e), o = n || r || a || s, i = o ? D8(e.length, String) : [], c = i.length;
1850
- for (var u in e)
1851
- (t || K8.call(e, u)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
1852
- (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1853
- a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1854
- s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
1855
- E8(u, c))) && i.push(u);
1850
+ for (var C in e)
1851
+ (t || K8.call(e, C)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
1852
+ (C == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1853
+ a && (C == "offset" || C == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1854
+ s && (C == "buffer" || C == "byteLength" || C == "byteOffset") || // Skip index properties.
1855
+ E8(C, c))) && i.push(C);
1856
1856
  return i;
1857
1857
  }
1858
1858
  var e5 = N8, Z8 = Object.prototype;
@@ -1916,11 +1916,11 @@ var w7 = k7, e0 = { exports: {} };
1916
1916
  e0.exports;
1917
1917
  (function(e, t) {
1918
1918
  var n = o1, r = t && !t.nodeType && t, a = r && !0 && e && !e.nodeType && e, s = a && a.exports === r, o = s ? n.Buffer : void 0, i = o ? o.allocUnsafe : void 0;
1919
- function c(u, d) {
1919
+ function c(C, d) {
1920
1920
  if (d)
1921
- return u.slice();
1922
- var l = u.length, v = i ? i(l) : new u.constructor(l);
1923
- return u.copy(v), v;
1921
+ return C.slice();
1922
+ var l = C.length, v = i ? i(l) : new C.constructor(l);
1923
+ return C.copy(v), v;
1924
1924
  }
1925
1925
  e.exports = c;
1926
1926
  })(e0, e0.exports);
@@ -2087,7 +2087,7 @@ var H4 = V4, G4 = H4, X4 = T0, p9 = I0, v9 = p9 && p9.isSet, J4 = v9 ? X4(v9) :
2087
2087
  O[l5] = O[kn] = O[Fn] = O[jn] = O[wn] = O[An] = O[Kn] = O[Nn] = O[Zn] = O[Qn] = O[Rn] = O[Tn] = O[In] = O[C5] = O[Dn] = O[Pn] = O[Bn] = O[On] = O[zn] = O[Un] = O[Yn] = O[Vn] = !0;
2088
2088
  O[Mn] = O[u5] = O[En] = !1;
2089
2089
  function U1(e, t, n, r, a, s) {
2090
- var o, i = t & bn, c = t & $n, u = t & xn;
2090
+ var o, i = t & bn, c = t & $n, C = t & xn;
2091
2091
  if (n && (o = a ? n(e, r, a, s) : n(e)), o !== void 0)
2092
2092
  return o;
2093
2093
  if (!pn(e))
@@ -2118,7 +2118,7 @@ function U1(e, t, n, r, a, s) {
2118
2118
  }) : hn(e) && e.forEach(function(Z, I) {
2119
2119
  o.set(I, U1(Z, t, n, I, e, s));
2120
2120
  });
2121
- var b = u ? c ? un : ln : c ? Ln : _n, S = d ? void 0 : b(e);
2121
+ var b = C ? c ? un : ln : c ? Ln : _n, S = d ? void 0 : b(e);
2122
2122
  return en(S || e, function(Z, I) {
2123
2123
  S && (I = Z, Z = e[I]), tn(o, I, U1(Z, t, n, I, e, s));
2124
2124
  }), o;
@@ -2204,14 +2204,14 @@ function Yr(e, t, n, r) {
2204
2204
  return e;
2205
2205
  t = Rr(t, e);
2206
2206
  for (var a = -1, s = t.length, o = s - 1, i = e; i != null && ++a < s; ) {
2207
- var c = Ur(t[a]), u = n;
2207
+ var c = Ur(t[a]), C = n;
2208
2208
  if (c === "__proto__" || c === "constructor" || c === "prototype")
2209
2209
  return e;
2210
2210
  if (a != o) {
2211
2211
  var d = i[c];
2212
- u = r ? r(d, c, i) : void 0, u === void 0 && (u = $9(d) ? d : zr(t[a + 1]) ? [] : {});
2212
+ C = r ? r(d, c, i) : void 0, C === void 0 && (C = $9(d) ? d : zr(t[a + 1]) ? [] : {});
2213
2213
  }
2214
- Qr(i, c, u), i = i[c];
2214
+ Qr(i, c, C), i = i[c];
2215
2215
  }
2216
2216
  return e;
2217
2217
  }
@@ -2322,9 +2322,9 @@ const D1 = (e) => {
2322
2322
  var i = J(() => !!(e.buttons && e.buttons.length > 0));
2323
2323
  return () => i() && (() => {
2324
2324
  var c = Ca();
2325
- return m(c, () => e.buttons.map((u) => y(Wr, Z9(u, {
2325
+ return m(c, () => e.buttons.map((C) => y(Wr, Z9(C, {
2326
2326
  get children() {
2327
- return u.children;
2327
+ return C.children;
2328
2328
  }
2329
2329
  })))), c;
2330
2330
  })();
@@ -2345,13 +2345,13 @@ const y5 = (e) => {
2345
2345
  var o = J(() => !!(e.dataSource && e.dataSource.length > 0));
2346
2346
  return () => o() && (() => {
2347
2347
  var i = fa(), c = i.firstChild;
2348
- return m(c, () => e.dataSource.map((u) => {
2349
- const l = u[e.valueKey ?? "text"] ?? u;
2348
+ return m(c, () => e.dataSource.map((C) => {
2349
+ const l = C[e.valueKey ?? "text"] ?? C;
2350
2350
  return (() => {
2351
2351
  var v = ga();
2352
2352
  return v.$$click = (p) => {
2353
2353
  var b;
2354
- p.stopPropagation(), e.value !== l && ((b = e.onSelected) == null || b.call(e, u)), n(!1);
2354
+ p.stopPropagation(), e.value !== l && ((b = e.onSelected) == null || b.call(e, C)), n(!1);
2355
2355
  }, m(v, l), v;
2356
2356
  })();
2357
2357
  })), i;
@@ -2387,12 +2387,12 @@ const m5 = (e) => {
2387
2387
  return m(i, () => t.prefix), i;
2388
2388
  }
2389
2389
  }), o), o.addEventListener("change", (i) => {
2390
- var u, d;
2390
+ var C, d;
2391
2391
  const c = i.currentTarget.value;
2392
2392
  if ("precision" in t) {
2393
2393
  let l;
2394
2394
  const v = Math.max(0, Math.floor(t.precision));
2395
- v <= 0 ? l = new RegExp(/^[1-9]\d*$/) : l = new RegExp("^\\d+\\.?\\d{0," + v + "}$"), (c === "" || l.test(c) && +c >= t.min && +c <= t.max) && ((u = t.onChange) == null || u.call(t, c === "" ? c : +c));
2395
+ v <= 0 ? l = new RegExp(/^[1-9]\d*$/) : l = new RegExp("^\\d+\\.?\\d{0," + v + "}$"), (c === "" || l.test(c) && +c >= t.min && +c <= t.max) && ((C = t.onChange) == null || C.call(t, c === "" ? c : +c));
2396
2396
  } else
2397
2397
  (d = t.onChange) == null || d.call(t, c);
2398
2398
  }), o.addEventListener("blur", () => {
@@ -2410,8 +2410,8 @@ const m5 = (e) => {
2410
2410
  return m(i, () => t.suffix), i;
2411
2411
  }
2412
2412
  }), null), z((i) => {
2413
- var c = t.style, u = `klinecharts-pro-input ${t.class ?? ""}`, d = r(), l = t.placeholder ?? "";
2414
- return i.e = $1(s, c, i.e), u !== i.t && v1(s, i.t = u), d !== i.a && q(s, "data-status", i.a = d), l !== i.o && q(o, "placeholder", i.o = l), i;
2413
+ var c = t.style, C = `klinecharts-pro-input ${t.class ?? ""}`, d = r(), l = t.placeholder ?? "";
2414
+ return i.e = $1(s, c, i.e), C !== i.t && v1(s, i.t = C), d !== i.a && q(s, "data-status", i.a = d), l !== i.o && q(o, "placeholder", i.o = l), i;
2415
2415
  }, {
2416
2416
  e: void 0,
2417
2417
  t: void 0,
@@ -2672,7 +2672,7 @@ const _a = "指标", La = "主图指标", ba = "副图指标", $a = "设置", xa
2672
2672
  function zu(e, t) {
2673
2673
  h5[e] = t;
2674
2674
  }
2675
- const C = (e, t) => {
2675
+ const u = (e, t) => {
2676
2676
  var n;
2677
2677
  return ((n = h5[t]) == null ? void 0 : n[e]) ?? e;
2678
2678
  };
@@ -2687,7 +2687,7 @@ const Nc = (e) => {
2687
2687
  }), H1(() => {
2688
2688
  document.removeEventListener("fullscreenchange", a), document.removeEventListener("mozfullscreenchange", a), document.removeEventListener("webkitfullscreenchange", a), document.removeEventListener("msfullscreenchange", a);
2689
2689
  }), (() => {
2690
- var s = Fc(), o = s.firstChild, i = o.firstChild, c = o.nextSibling, u = c.firstChild, d = u.nextSibling, l = c.nextSibling, v = l.firstChild, p = v.nextSibling, b = l.nextSibling, S = b.firstChild, Z = S.nextSibling, I = b.nextSibling, Q = I.firstChild, j = Q.nextSibling, w = I.nextSibling;
2690
+ var s = Fc(), o = s.firstChild, i = o.firstChild, c = o.nextSibling, C = c.firstChild, d = C.nextSibling, l = c.nextSibling, v = l.firstChild, p = v.nextSibling, b = l.nextSibling, S = b.firstChild, Z = S.nextSibling, I = b.nextSibling, Q = I.firstChild, j = Q.nextSibling, w = I.nextSibling;
2691
2691
  return A0((k) => {
2692
2692
  t = k;
2693
2693
  }, s), y1(i, "click", e.onMenuClick, !0), m(s, y(V, {
@@ -2711,7 +2711,7 @@ const Nc = (e) => {
2711
2711
  return K.$$click = () => {
2712
2712
  e.onPeriodChange(k);
2713
2713
  }, m(K, () => k.text), z(() => v1(K, `item period ${k.text === e.period.text ? "selected" : ""}`)), K;
2714
- })()), c), y1(c, "click", e.onIndicatorClick, !0), m(d, () => C("indicator", e.locale)), y1(l, "click", e.onTimezoneClick, !0), m(p, () => C("timezone", e.locale)), y1(b, "click", e.onSettingClick, !0), m(Z, () => C("setting", e.locale)), y1(I, "click", e.onScreenshotClick, !0), m(j, () => C("screenshot", e.locale)), w.$$click = () => {
2714
+ })()), c), y1(c, "click", e.onIndicatorClick, !0), m(d, () => u("indicator", e.locale)), y1(l, "click", e.onTimezoneClick, !0), m(p, () => u("timezone", e.locale)), y1(b, "click", e.onSettingClick, !0), m(Z, () => u("setting", e.locale)), y1(I, "click", e.onScreenshotClick, !0), m(j, () => u("screenshot", e.locale)), w.$$click = () => {
2715
2715
  if (n())
2716
2716
  (document.exitFullscreen ?? document.msExitFullscreen ?? document.mozCancelFullScreen ?? document.webkitExitFullscreen).call(document);
2717
2717
  else {
@@ -2722,10 +2722,10 @@ const Nc = (e) => {
2722
2722
  var k = J(() => !!n());
2723
2723
  return () => k() ? [jc(), (() => {
2724
2724
  var K = g0();
2725
- return m(K, () => C("exit_full_screen", e.locale)), K;
2725
+ return m(K, () => u("exit_full_screen", e.locale)), K;
2726
2726
  })()] : [Kc(), (() => {
2727
2727
  var K = g0();
2728
- return m(K, () => C("full_screen", e.locale)), K;
2728
+ return m(K, () => u("full_screen", e.locale)), K;
2729
2729
  })()];
2730
2730
  })()), z(() => q(i, "class", e.spread ? "" : "rotate")), s;
2731
2731
  })();
@@ -2851,64 +2851,64 @@ const su = () => iu(), ou = {
2851
2851
  };
2852
2852
  function cu(e) {
2853
2853
  return [
2854
- { key: "horizontalStraightLine", text: C("horizontal_straight_line", e) },
2855
- { key: "horizontalRayLine", text: C("horizontal_ray_line", e) },
2856
- { key: "horizontalSegment", text: C("horizontal_segment", e) },
2857
- { key: "verticalStraightLine", text: C("vertical_straight_line", e) },
2858
- { key: "verticalRayLine", text: C("vertical_ray_line", e) },
2859
- { key: "verticalSegment", text: C("vertical_segment", e) },
2860
- { key: "straightLine", text: C("straight_line", e) },
2861
- { key: "rayLine", text: C("ray_line", e) },
2862
- { key: "segment", text: C("segment", e) },
2863
- { key: "arrow", text: C("arrow", e) },
2864
- { key: "priceLine", text: C("price_line", e) }
2854
+ { key: "horizontalStraightLine", text: u("horizontal_straight_line", e) },
2855
+ { key: "horizontalRayLine", text: u("horizontal_ray_line", e) },
2856
+ { key: "horizontalSegment", text: u("horizontal_segment", e) },
2857
+ { key: "verticalStraightLine", text: u("vertical_straight_line", e) },
2858
+ { key: "verticalRayLine", text: u("vertical_ray_line", e) },
2859
+ { key: "verticalSegment", text: u("vertical_segment", e) },
2860
+ { key: "straightLine", text: u("straight_line", e) },
2861
+ { key: "rayLine", text: u("ray_line", e) },
2862
+ { key: "segment", text: u("segment", e) },
2863
+ { key: "arrow", text: u("arrow", e) },
2864
+ { key: "priceLine", text: u("price_line", e) }
2865
2865
  ];
2866
2866
  }
2867
2867
  function lu(e) {
2868
2868
  return [
2869
- { key: "priceChannelLine", text: C("price_channel_line", e) },
2870
- { key: "parallelStraightLine", text: C("parallel_straight_line", e) }
2869
+ { key: "priceChannelLine", text: u("price_channel_line", e) },
2870
+ { key: "parallelStraightLine", text: u("parallel_straight_line", e) }
2871
2871
  ];
2872
2872
  }
2873
2873
  function uu(e) {
2874
2874
  return [
2875
- { key: "circle", text: C("circle", e) },
2876
- { key: "rect", text: C("rect", e) },
2877
- { key: "parallelogram", text: C("parallelogram", e) },
2878
- { key: "triangle", text: C("triangle", e) }
2875
+ { key: "circle", text: u("circle", e) },
2876
+ { key: "rect", text: u("rect", e) },
2877
+ { key: "parallelogram", text: u("parallelogram", e) },
2878
+ { key: "triangle", text: u("triangle", e) }
2879
2879
  ];
2880
2880
  }
2881
2881
  function Cu(e) {
2882
2882
  return [
2883
- { key: "fibonacciLine", text: C("fibonacci_line", e) },
2884
- { key: "fibonacciSegment", text: C("fibonacci_segment", e) },
2885
- { key: "fibonacciCircle", text: C("fibonacci_circle", e) },
2886
- { key: "fibonacciSpiral", text: C("fibonacci_spiral", e) },
2887
- { key: "fibonacciSpeedResistanceFan", text: C("fibonacci_speed_resistance_fan", e) },
2888
- { key: "fibonacciExtension", text: C("fibonacci_extension", e) },
2889
- { key: "gannBox", text: C("gann_box", e) }
2883
+ { key: "fibonacciLine", text: u("fibonacci_line", e) },
2884
+ { key: "fibonacciSegment", text: u("fibonacci_segment", e) },
2885
+ { key: "fibonacciCircle", text: u("fibonacci_circle", e) },
2886
+ { key: "fibonacciSpiral", text: u("fibonacci_spiral", e) },
2887
+ { key: "fibonacciSpeedResistanceFan", text: u("fibonacci_speed_resistance_fan", e) },
2888
+ { key: "fibonacciExtension", text: u("fibonacci_extension", e) },
2889
+ { key: "gannBox", text: u("gann_box", e) }
2890
2890
  ];
2891
2891
  }
2892
2892
  function du(e) {
2893
2893
  return [
2894
- { key: "xabcd", text: C("xabcd", e) },
2895
- { key: "abcd", text: C("abcd", e) },
2896
- { key: "threeWaves", text: C("three_waves", e) },
2897
- { key: "fiveWaves", text: C("five_waves", e) },
2898
- { key: "eightWaves", text: C("eight_waves", e) },
2899
- { key: "anyWaves", text: C("any_waves", e) }
2894
+ { key: "xabcd", text: u("xabcd", e) },
2895
+ { key: "abcd", text: u("abcd", e) },
2896
+ { key: "threeWaves", text: u("three_waves", e) },
2897
+ { key: "fiveWaves", text: u("five_waves", e) },
2898
+ { key: "eightWaves", text: u("eight_waves", e) },
2899
+ { key: "anyWaves", text: u("any_waves", e) }
2900
2900
  ];
2901
2901
  }
2902
2902
  function fu(e) {
2903
2903
  return [
2904
- { key: "weak_magnet", text: C("weak_magnet", e) },
2905
- { key: "strong_magnet", text: C("strong_magnet", e) }
2904
+ { key: "weak_magnet", text: u("weak_magnet", e) },
2905
+ { key: "strong_magnet", text: u("strong_magnet", e) }
2906
2906
  ];
2907
2907
  }
2908
2908
  const t1 = (e) => ou[e.name](e.class);
2909
2909
  var gu = /* @__PURE__ */ g('<div class=klinecharts-pro-drawing-bar><span class=split-line></span><div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0></path></svg></div></div><div class=item><span style=width:32px;height:32px></span></div><div class=item><span style=width:32px;height:32px></span></div><span class=split-line></span><div class=item><span style=width:32px;height:32px>'), yu = /* @__PURE__ */ g('<div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0>'), k9 = /* @__PURE__ */ g("<li><span style=padding-left:8px>");
2910
2910
  const w9 = "drawing_tools", mu = (e) => {
2911
- const [t, n] = L("horizontalStraightLine"), [r, a] = L("priceChannelLine"), [s, o] = L("circle"), [i, c] = L("fibonacciLine"), [u, d] = L("xabcd"), [l, v] = L("weak_magnet"), [p, b] = L("normal"), [S, Z] = L(!1), [I, Q] = L(!0), [j, w] = L(""), k = i1(() => [{
2911
+ const [t, n] = L("horizontalStraightLine"), [r, a] = L("priceChannelLine"), [s, o] = L("circle"), [i, c] = L("fibonacciLine"), [C, d] = L("xabcd"), [l, v] = L("weak_magnet"), [p, b] = L("normal"), [S, Z] = L(!1), [I, Q] = L(!0), [j, w] = L(""), k = i1(() => [{
2912
2912
  key: "singleLine",
2913
2913
  icon: t(),
2914
2914
  list: cu(e.locale),
@@ -2930,7 +2930,7 @@ const w9 = "drawing_tools", mu = (e) => {
2930
2930
  setter: c
2931
2931
  }, {
2932
2932
  key: "wave",
2933
- icon: u(),
2933
+ icon: C(),
2934
2934
  list: du(e.locale),
2935
2935
  setter: d
2936
2936
  }]), K = i1(() => fu(e.locale));
@@ -3044,7 +3044,7 @@ s1(["click"]);
3044
3044
  var A9 = /* @__PURE__ */ g("<li class=title>"), M9 = /* @__PURE__ */ g("<li class=row>");
3045
3045
  const hu = (e) => y(D1, {
3046
3046
  get title() {
3047
- return C("indicator", e.locale);
3047
+ return u("indicator", e.locale);
3048
3048
  },
3049
3049
  width: 400,
3050
3050
  get onClose() {
@@ -3056,7 +3056,7 @@ const hu = (e) => y(D1, {
3056
3056
  get children() {
3057
3057
  return [(() => {
3058
3058
  var t = A9();
3059
- return m(t, () => C("main_indicator", e.locale)), t;
3059
+ return m(t, () => u("main_indicator", e.locale)), t;
3060
3060
  })(), J(() => ["MA", "EMA", "SMA", "BOLL", "SAR", "BBI"].map((t) => {
3061
3061
  const n = e.mainIndicators.includes(t);
3062
3062
  return (() => {
@@ -3070,13 +3070,13 @@ const hu = (e) => y(D1, {
3070
3070
  }, m(r, y(x9, {
3071
3071
  checked: n,
3072
3072
  get label() {
3073
- return C(t.toLowerCase(), e.locale);
3073
+ return u(t.toLowerCase(), e.locale);
3074
3074
  }
3075
3075
  })), r;
3076
3076
  })();
3077
3077
  })), (() => {
3078
3078
  var t = A9();
3079
- return m(t, () => C("sub_indicator", e.locale)), t;
3079
+ return m(t, () => u("sub_indicator", e.locale)), t;
3080
3080
  })(), J(() => ["MA", "EMA", "VOL", "MACD", "BOLL", "KDJ", "RSI", "BIAS", "BRAR", "CCI", "DMI", "CR", "PSY", "DMA", "TRIX", "OBV", "VR", "WR", "MTM", "EMV", "SAR", "SMA", "ROC", "PVT", "BBI", "AO"].map((t) => {
3081
3081
  const n = t in e.subIndicators;
3082
3082
  return (() => {
@@ -3090,7 +3090,7 @@ const hu = (e) => y(D1, {
3090
3090
  }, m(r, y(x9, {
3091
3091
  checked: n,
3092
3092
  get label() {
3093
- return C(t.toLowerCase(), e.locale);
3093
+ return u(t.toLowerCase(), e.locale);
3094
3094
  }
3095
3095
  })), r;
3096
3096
  })();
@@ -3103,76 +3103,76 @@ s1(["click"]);
3103
3103
  function S9(e, t) {
3104
3104
  switch (e) {
3105
3105
  case "Etc/UTC":
3106
- return C("utc", t);
3106
+ return u("utc", t);
3107
3107
  case "Pacific/Honolulu":
3108
- return C("honolulu", t);
3108
+ return u("honolulu", t);
3109
3109
  case "America/Juneau":
3110
- return C("juneau", t);
3110
+ return u("juneau", t);
3111
3111
  case "America/Los_Angeles":
3112
- return C("los_angeles", t);
3112
+ return u("los_angeles", t);
3113
3113
  case "America/Chicago":
3114
- return C("chicago", t);
3114
+ return u("chicago", t);
3115
3115
  case "America/Toronto":
3116
- return C("toronto", t);
3116
+ return u("toronto", t);
3117
3117
  case "America/Sao_Paulo":
3118
- return C("sao_paulo", t);
3118
+ return u("sao_paulo", t);
3119
3119
  case "Europe/London":
3120
- return C("london", t);
3120
+ return u("london", t);
3121
3121
  case "Europe/Berlin":
3122
- return C("berlin", t);
3122
+ return u("berlin", t);
3123
3123
  case "Asia/Bahrain":
3124
- return C("bahrain", t);
3124
+ return u("bahrain", t);
3125
3125
  case "Asia/Dubai":
3126
- return C("dubai", t);
3126
+ return u("dubai", t);
3127
3127
  case "Asia/Ashkhabad":
3128
- return C("ashkhabad", t);
3128
+ return u("ashkhabad", t);
3129
3129
  case "Asia/Almaty":
3130
- return C("almaty", t);
3130
+ return u("almaty", t);
3131
3131
  case "Asia/Bangkok":
3132
- return C("bangkok", t);
3132
+ return u("bangkok", t);
3133
3133
  case "Asia/Shanghai":
3134
- return C("shanghai", t);
3134
+ return u("shanghai", t);
3135
3135
  case "Asia/Tokyo":
3136
- return C("tokyo", t);
3136
+ return u("tokyo", t);
3137
3137
  case "Australia/Sydney":
3138
- return C("sydney", t);
3138
+ return u("sydney", t);
3139
3139
  case "Pacific/Norfolk":
3140
- return C("norfolk", t);
3140
+ return u("norfolk", t);
3141
3141
  }
3142
3142
  return e;
3143
3143
  }
3144
3144
  function pu(e) {
3145
3145
  return [
3146
- { key: "Etc/UTC", text: C("utc", e) },
3147
- { key: "Pacific/Honolulu", text: C("honolulu", e) },
3148
- { key: "America/Juneau", text: C("juneau", e) },
3149
- { key: "America/Los_Angeles", text: C("los_angeles", e) },
3150
- { key: "America/Chicago", text: C("chicago", e) },
3151
- { key: "America/Toronto", text: C("toronto", e) },
3152
- { key: "America/Sao_Paulo", text: C("sao_paulo", e) },
3153
- { key: "Europe/London", text: C("london", e) },
3154
- { key: "Europe/Berlin", text: C("berlin", e) },
3155
- { key: "Asia/Bahrain", text: C("bahrain", e) },
3156
- { key: "Asia/Dubai", text: C("dubai", e) },
3157
- { key: "Asia/Ashkhabad", text: C("ashkhabad", e) },
3158
- { key: "Asia/Almaty", text: C("almaty", e) },
3159
- { key: "Asia/Bangkok", text: C("bangkok", e) },
3160
- { key: "Asia/Shanghai", text: C("shanghai", e) },
3161
- { key: "Asia/Tokyo", text: C("tokyo", e) },
3162
- { key: "Australia/Sydney", text: C("sydney", e) },
3163
- { key: "Pacific/Norfolk", text: C("norfolk", e) }
3146
+ { key: "Etc/UTC", text: u("utc", e) },
3147
+ { key: "Pacific/Honolulu", text: u("honolulu", e) },
3148
+ { key: "America/Juneau", text: u("juneau", e) },
3149
+ { key: "America/Los_Angeles", text: u("los_angeles", e) },
3150
+ { key: "America/Chicago", text: u("chicago", e) },
3151
+ { key: "America/Toronto", text: u("toronto", e) },
3152
+ { key: "America/Sao_Paulo", text: u("sao_paulo", e) },
3153
+ { key: "Europe/London", text: u("london", e) },
3154
+ { key: "Europe/Berlin", text: u("berlin", e) },
3155
+ { key: "Asia/Bahrain", text: u("bahrain", e) },
3156
+ { key: "Asia/Dubai", text: u("dubai", e) },
3157
+ { key: "Asia/Ashkhabad", text: u("ashkhabad", e) },
3158
+ { key: "Asia/Almaty", text: u("almaty", e) },
3159
+ { key: "Asia/Bangkok", text: u("bangkok", e) },
3160
+ { key: "Asia/Shanghai", text: u("shanghai", e) },
3161
+ { key: "Asia/Tokyo", text: u("tokyo", e) },
3162
+ { key: "Australia/Sydney", text: u("sydney", e) },
3163
+ { key: "Pacific/Norfolk", text: u("norfolk", e) }
3164
3164
  ];
3165
3165
  }
3166
3166
  const vu = (e) => {
3167
3167
  const [t, n] = L(e.timezone), r = i1(() => pu(e.locale));
3168
3168
  return y(D1, {
3169
3169
  get title() {
3170
- return C("timezone", e.locale);
3170
+ return u("timezone", e.locale);
3171
3171
  },
3172
3172
  width: 320,
3173
3173
  get buttons() {
3174
3174
  return [{
3175
- children: C("confirm", e.locale),
3175
+ children: u("confirm", e.locale),
3176
3176
  onClick: () => {
3177
3177
  e.onConfirm(t()), e.onClose();
3178
3178
  }
@@ -3204,55 +3204,55 @@ function T9(e) {
3204
3204
  return [
3205
3205
  {
3206
3206
  key: "candle.type",
3207
- text: C("candle_type", e),
3207
+ text: u("candle_type", e),
3208
3208
  component: "select",
3209
3209
  dataSource: [
3210
- { key: "candle_solid", text: C("candle_solid", e) },
3211
- { key: "candle_stroke", text: C("candle_stroke", e) },
3212
- { key: "candle_up_stroke", text: C("candle_up_stroke", e) },
3213
- { key: "candle_down_stroke", text: C("candle_down_stroke", e) },
3214
- { key: "ohlc", text: C("ohlc", e) },
3215
- { key: "area", text: C("area", e) }
3210
+ { key: "candle_solid", text: u("candle_solid", e) },
3211
+ { key: "candle_stroke", text: u("candle_stroke", e) },
3212
+ { key: "candle_up_stroke", text: u("candle_up_stroke", e) },
3213
+ { key: "candle_down_stroke", text: u("candle_down_stroke", e) },
3214
+ { key: "ohlc", text: u("ohlc", e) },
3215
+ { key: "area", text: u("area", e) }
3216
3216
  ]
3217
3217
  },
3218
3218
  {
3219
3219
  key: "candle.priceMark.last.show",
3220
- text: C("last_price_show", e),
3220
+ text: u("last_price_show", e),
3221
3221
  component: "switch"
3222
3222
  },
3223
3223
  {
3224
3224
  key: "candle.priceMark.high.show",
3225
- text: C("high_price_show", e),
3225
+ text: u("high_price_show", e),
3226
3226
  component: "switch"
3227
3227
  },
3228
3228
  {
3229
3229
  key: "candle.priceMark.low.show",
3230
- text: C("low_price_show", e),
3230
+ text: u("low_price_show", e),
3231
3231
  component: "switch"
3232
3232
  },
3233
3233
  {
3234
3234
  key: "indicator.lastValueMark.show",
3235
- text: C("indicator_last_value_show", e),
3235
+ text: u("indicator_last_value_show", e),
3236
3236
  component: "switch"
3237
3237
  },
3238
3238
  {
3239
3239
  key: "yAxis.type",
3240
- text: C("price_axis_type", e),
3240
+ text: u("price_axis_type", e),
3241
3241
  component: "select",
3242
3242
  dataSource: [
3243
- { key: "normal", text: C("normal", e) },
3244
- { key: "percentage", text: C("percentage", e) },
3245
- { key: "log", text: C("log", e) }
3243
+ { key: "normal", text: u("normal", e) },
3244
+ { key: "percentage", text: u("percentage", e) },
3245
+ { key: "log", text: u("log", e) }
3246
3246
  ]
3247
3247
  },
3248
3248
  {
3249
3249
  key: "yAxis.reverse",
3250
- text: C("reverse_coordinate", e),
3250
+ text: u("reverse_coordinate", e),
3251
3251
  component: "switch"
3252
3252
  },
3253
3253
  {
3254
3254
  key: "grid.show",
3255
- text: C("grid_show", e),
3255
+ text: u("grid_show", e),
3256
3256
  component: "switch"
3257
3257
  }
3258
3258
  ];
@@ -3266,19 +3266,19 @@ const bu = (e) => {
3266
3266
  const s = (o, i) => {
3267
3267
  const c = {};
3268
3268
  k0(c, o.key, i);
3269
- const u = N.clone(t());
3270
- k0(u, o.key, i), n(u), a(r().map((d) => ({
3269
+ const C = N.clone(t());
3270
+ k0(C, o.key, i), n(C), a(r().map((d) => ({
3271
3271
  ...d
3272
3272
  }))), e.onChange(c);
3273
3273
  };
3274
3274
  return y(D1, {
3275
3275
  get title() {
3276
- return C("setting", e.locale);
3276
+ return u("setting", e.locale);
3277
3277
  },
3278
3278
  width: 560,
3279
3279
  get buttons() {
3280
3280
  return [{
3281
- children: C("restore_default", e.locale),
3281
+ children: u("restore_default", e.locale),
3282
3282
  onClick: () => {
3283
3283
  e.onRestoreDefault(r()), e.onClose();
3284
3284
  }
@@ -3295,7 +3295,7 @@ const bu = (e) => {
3295
3295
  },
3296
3296
  children: (i) => {
3297
3297
  let c;
3298
- const u = N.formatValue(t(), i.key);
3298
+ const C = N.formatValue(t(), i.key);
3299
3299
  switch (i.component) {
3300
3300
  case "select": {
3301
3301
  c = y(y5, {
@@ -3303,7 +3303,7 @@ const bu = (e) => {
3303
3303
  width: "120px"
3304
3304
  },
3305
3305
  get value() {
3306
- return C(u, e.locale);
3306
+ return u(C, e.locale);
3307
3307
  },
3308
3308
  get dataSource() {
3309
3309
  return i.dataSource;
@@ -3316,7 +3316,7 @@ const bu = (e) => {
3316
3316
  break;
3317
3317
  }
3318
3318
  case "switch": {
3319
- const d = !!u;
3319
+ const d = !!C;
3320
3320
  c = y(va, {
3321
3321
  open: d,
3322
3322
  onChange: () => {
@@ -3338,13 +3338,13 @@ const bu = (e) => {
3338
3338
  var $u = /* @__PURE__ */ g("<img style=width:500px;margin-top:20px>");
3339
3339
  const xu = (e) => y(D1, {
3340
3340
  get title() {
3341
- return C("screenshot", e.locale);
3341
+ return u("screenshot", e.locale);
3342
3342
  },
3343
3343
  width: 540,
3344
3344
  get buttons() {
3345
3345
  return [{
3346
3346
  type: "confirm",
3347
- children: C("save", e.locale),
3347
+ children: u("save", e.locale),
3348
3348
  onClick: () => {
3349
3349
  const t = document.createElement("a");
3350
3350
  t.download = "screenshot", t.href = e.url, document.body.appendChild(t), t.click(), t.remove();
@@ -3496,7 +3496,7 @@ const Mu = (e) => {
3496
3496
  get buttons() {
3497
3497
  return [{
3498
3498
  type: "confirm",
3499
- children: C("confirm", e.locale),
3499
+ children: u("confirm", e.locale),
3500
3500
  onClick: () => {
3501
3501
  const a = r(e.params.indicatorName), s = [];
3502
3502
  N.clone(t()).forEach((o, i) => {
@@ -3512,7 +3512,7 @@ const Mu = (e) => {
3512
3512
  var a = wu();
3513
3513
  return m(a, () => r(e.params.indicatorName).map((s, o) => [(() => {
3514
3514
  var i = Au();
3515
- return m(i, () => C(s.paramNameKey, e.locale)), i;
3515
+ return m(i, () => u(s.paramNameKey, e.locale)), i;
3516
3516
  })(), y(m5, {
3517
3517
  style: {
3518
3518
  width: "200px"
@@ -3539,7 +3539,7 @@ const Du = (e) => {
3539
3539
  const [t, n] = L(""), [r] = ce(t, e.datafeed.searchSymbols.bind(e.datafeed));
3540
3540
  return y(D1, {
3541
3541
  get title() {
3542
- return C("symbol_search", e.locale);
3542
+ return u("symbol_search", e.locale);
3543
3543
  },
3544
3544
  width: 460,
3545
3545
  get onClose() {
@@ -3549,7 +3549,7 @@ const Du = (e) => {
3549
3549
  return [y(m5, {
3550
3550
  class: "klinecharts-pro-symbol-search-modal-input",
3551
3551
  get placeholder() {
3552
- return C("symbol_code", e.locale);
3552
+ return u("symbol_code", e.locale);
3553
3553
  },
3554
3554
  get suffix() {
3555
3555
  return Su();
@@ -3602,8 +3602,8 @@ function Q1(e, t, n, r) {
3602
3602
  return e.createIndicator({
3603
3603
  name: t,
3604
3604
  createTooltipDataSource: (o) => {
3605
- const c = o.chart.getStyles().indicator.tooltip.features, u = [];
3606
- return a && (o.indicator.visible ? u.push(c[1]) : u.push(c[0])), u.push(c[2]), u.push(c[3]), {
3605
+ const c = o.chart.getStyles().indicator.tooltip.features, C = [];
3606
+ return a && C.push(o.indicator.visible ? c[1] : c[0]), C.push(c[2]), C.push(c[3]), {
3607
3607
  features: c
3608
3608
  };
3609
3609
  }
@@ -3611,7 +3611,7 @@ function Q1(e, t, n, r) {
3611
3611
  }
3612
3612
  const [_, Ou] = L(null), [Eu, I9] = L(!1), [h1, y0] = L(null), [l1, m0] = L(null), Fu = (e) => {
3613
3613
  let t, n;
3614
- const [r, a] = L(e.theme), [s, o] = L(e.styles), [i, c] = L(e.locale), [u, d] = L(!1), [l, v] = L([...e.mainIndicators]), [p, b] = L({}), [S, Z] = L(!1), [I, Q] = L({
3614
+ const [r, a] = L(e.theme), [s, o] = L(e.styles), [i, c] = L(e.locale), [C, d] = L(!1), [l, v] = L([...e.mainIndicators]), [p, b] = L({}), [S, Z] = L(!1), [I, Q] = L({
3615
3615
  key: e.timezone,
3616
3616
  text: S9(e.timezone, e.locale)
3617
3617
  }), [j, w] = L(!1), [k, K] = L(), [W, f1] = L(""), [A, D] = L(e.drawingBarVisible), [H, R] = L(!1), [e1, P1] = L({
@@ -3910,7 +3910,7 @@ const [_, Ou] = L(null), [Eu, I9] = L(!1), [h1, y0] = L(null), [l1, m0] = L(null
3910
3910
  }
3911
3911
  }), y(V, {
3912
3912
  get when() {
3913
- return u();
3913
+ return C();
3914
3914
  },
3915
3915
  get children() {
3916
3916
  return y(hu, {
@@ -4161,7 +4161,7 @@ class ju {
4161
4161
  this._loading = !0, I9(!0);
4162
4162
  const i = r ?? (/* @__PURE__ */ new Date()).getTime();
4163
4163
  await (async () => {
4164
- const u = l1(), d = h1(), [l] = this.adjustFromTo(u, i, 1), [v] = this.adjustFromTo(u, l, 500), p = await this._datafeed.getHistoryKLineData(d, u, v, l);
4164
+ const C = l1(), d = h1(), [l] = this.adjustFromTo(C, i, 1), [v] = this.adjustFromTo(C, l, 500), p = await this._datafeed.getHistoryKLineData(d, C, v, l);
4165
4165
  o(p, p.length > 0), this._loading = !1, I9(!1);
4166
4166
  })();
4167
4167
  }