@svgrid/grid-wc 3.0.23 → 3.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/GridFooter-La5NyTDN.js +145 -0
  2. package/dist/{GridMenus-Dq2xCN4N.js → GridMenus-4ksk1dnR.js} +491 -491
  3. package/dist/{shadow/PinSplitter-Qd1_-3pw.js → PinSplitter-vmU3zd_R.js} +44 -44
  4. package/dist/{shadow/SvChartMenu-CwWtjXsG.js → SvChartMenu-CgAcTloT.js} +116 -116
  5. package/dist/{shadow/SvDateRangeInput-EIQRPO_K.js → SvDateRangeInput-DHTz33L2.js} +77 -77
  6. package/dist/{SvDateTimePicker-IsJpZskc.js → SvDateTimePicker-DyRO_e91.js} +269 -269
  7. package/dist/{SvField-CpglDJLn.js → SvField-C--8r4go.js} +86 -86
  8. package/dist/{shadow/SvGridCellEditor-Bhdpvez8.js → SvGridCellEditor-6ZyGKeXd.js} +161 -161
  9. package/dist/{SvGridChart-DHptYODr.js → SvGridChart-B1Ro43s3.js} +750 -750
  10. package/dist/{shadow/SvGridChartBuilder-COttFU6T.js → SvGridChartBuilder-BGWhm8hq.js} +373 -373
  11. package/dist/{shadow/SvGridChartPanel-DGMs4B9p.js → SvGridChartPanel-t_UgLw4I.js} +579 -579
  12. package/dist/SvGridChartView-EbUF0BKk.js +45 -0
  13. package/dist/{shadow/SvGridDropdown-CfA5Jfe5.js → SvGridDropdown-CrECQYeq.js} +117 -117
  14. package/dist/chart/SvChartMenu-DslxOgPN.js +1 -1
  15. package/dist/chart/sv-chart-element.js +1 -1
  16. package/dist/{shadow/chart-export-pdf-C_iQ0kET.js → chart-export-pdf-BSDueOD-.js} +1 -1
  17. package/dist/{shadow/client-wYhMjrKG.js → client-DtIdusS4.js} +379 -376
  18. package/dist/{date-format-SCGd8EWh.js → date-format-B0RznzxC.js} +325 -325
  19. package/dist/{grid-extension.svelte-6IzZ_3Cv.js → grid-extension.svelte-BixlrIqc.js} +1 -1
  20. package/dist/shadow/GridFooter-d70CxdXM.js +145 -0
  21. package/dist/shadow/{GridMenus-BoD1TyJM.js → GridMenus-CpE2jjUR.js} +491 -491
  22. package/dist/{PinSplitter-Qd1_-3pw.js → shadow/PinSplitter-vmU3zd_R.js} +44 -44
  23. package/dist/{SvChartMenu-CwWtjXsG.js → shadow/SvChartMenu-CgAcTloT.js} +116 -116
  24. package/dist/{SvDateRangeInput-EIQRPO_K.js → shadow/SvDateRangeInput-DHTz33L2.js} +77 -77
  25. package/dist/shadow/{SvDateTimePicker-IsJpZskc.js → SvDateTimePicker-DyRO_e91.js} +269 -269
  26. package/dist/shadow/{SvField-CpglDJLn.js → SvField-C--8r4go.js} +86 -86
  27. package/dist/{SvGridCellEditor-Bhdpvez8.js → shadow/SvGridCellEditor-6ZyGKeXd.js} +161 -161
  28. package/dist/shadow/{SvGridChart-DHptYODr.js → SvGridChart-B1Ro43s3.js} +750 -750
  29. package/dist/{SvGridChartBuilder-COttFU6T.js → shadow/SvGridChartBuilder-BGWhm8hq.js} +373 -373
  30. package/dist/{SvGridChartPanel-DGMs4B9p.js → shadow/SvGridChartPanel-t_UgLw4I.js} +579 -579
  31. package/dist/shadow/SvGridChartView-EbUF0BKk.js +45 -0
  32. package/dist/{SvGridDropdown-CfA5Jfe5.js → shadow/SvGridDropdown-CrECQYeq.js} +117 -117
  33. package/dist/{chart-export-pdf-C_iQ0kET.js → shadow/chart-export-pdf-BSDueOD-.js} +1 -1
  34. package/dist/{client-wYhMjrKG.js → shadow/client-DtIdusS4.js} +379 -376
  35. package/dist/shadow/{date-format-SCGd8EWh.js → date-format-B0RznzxC.js} +325 -325
  36. package/dist/shadow/{grid-extension.svelte-6IzZ_3Cv.js → grid-extension.svelte-BixlrIqc.js} +1 -1
  37. package/dist/shadow/sv-grid-shadow-element.js +3469 -3459
  38. package/dist/shadow/{svelte-virtualizer.svelte-DTzTRxYp.js → svelte-virtualizer.svelte-u-y0InK2.js} +3 -3
  39. package/dist/sv-grid-element.js +3452 -3442
  40. package/dist/{svelte-virtualizer.svelte-DTzTRxYp.js → svelte-virtualizer.svelte-u-y0InK2.js} +3 -3
  41. package/package.json +3 -3
  42. package/dist/GridFooter-D1Mxru-f.js +0 -145
  43. package/dist/SvGridChartView-iQoET4TC.js +0 -45
  44. package/dist/shadow/GridFooter-BX1o5fzB.js +0 -145
  45. package/dist/shadow/SvGridChartView-iQoET4TC.js +0 -45
@@ -1,19 +1,19 @@
1
- (function(){try{var c=".sv-chart-panes.svelte-14dx6di{flex-direction:column;gap:2px;min-width:0;display:flex}.sv-chart-pane.svelte-14dx6di{min-width:0;position:relative}.sv-chart-pane-title.svelte-14dx6di{z-index:1;color:var(--sg-muted,#64748b);pointer-events:none;font-size:10px;font-weight:600;position:absolute;top:2px}\n";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="SvGridChartPanel"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"SvGridChartPanel");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
1
+ (function(){try{var c=".sv-chart-panes.svelte-14dx6di{flex-direction:column;gap:2px;min-width:0;display:flex}.sv-chart-pane.svelte-14dx6di{min-width:0;position:relative}.sv-chart-pane-title.svelte-14dx6di{z-index:1;color:var(--sg-muted,#64748b);pointer-events:none;font-size:10px;font-weight:600;position:absolute;top:2px}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["grid"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["grid"]=q["grid"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="grid:SvGridChartPanel-t_UgLw4I.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"grid:SvGridChartPanel-t_UgLw4I.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
2
  import { S as e, h as t } from "./chart-xrT6cLA5.js";
3
- import { $ as n, A as r, C as i, D as a, F as o, I as s, J as c, L as l, M as u, N as d, Q as f, R as p, S as m, U as h, W as g, X as _, Y as v, _ as y, a as b, at as x, d as S, f as C, g as w, h as T, i as E, j as ee, k as D, n as O, nt as k, o as te, p as A, r as ne, rt as re, s as ie, tt as j, v as ae, w as M, y as N, z as P } from "./client-wYhMjrKG.js";
4
- import { a as F } from "./editor-contract-peBDxir_.js";
5
- import { a as oe, n as se, o as ce, r as le, s as ue, t as de } from "./SvGridChart-DHptYODr.js";
3
+ import { $ as n, A as r, C as i, D as a, F as o, I as s, L as c, M as l, N as u, R as d, S as f, U as p, W as m, X as h, Y as g, Z as _, _ as v, a as y, d as b, et as x, f as S, g as C, h as w, i as T, it as ee, j as te, k as E, n as D, nt as O, o as ne, ot as k, p as A, r as re, rt as ie, s as ae, v as oe, w as j, y as M, z as N } from "./client-DtIdusS4.js";
4
+ import { a as P } from "./editor-contract-peBDxir_.js";
5
+ import { a as se, n as ce, o as le, r as ue, s as de, t as fe } from "./SvGridChart-B1Ro43s3.js";
6
6
  //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
7
- function I(e) {
7
+ function F(e) {
8
8
  let t = e - 1;
9
9
  return t * t * t + 1;
10
10
  }
11
- function L(e) {
11
+ function I(e) {
12
12
  let t = typeof e == "string" && e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
13
13
  return t ? [parseFloat(t[1]), t[2] || "px"] : [e, "px"];
14
14
  }
15
- function R(e, { delay: t = 0, duration: n = 400, easing: r = I, x: i = 0, y: a = 0, opacity: o = 0 } = {}) {
16
- let s = getComputedStyle(e), c = +s.opacity, l = s.transform === "none" ? "" : s.transform, u = c * (1 - o), [d, f] = L(i), [p, m] = L(a);
15
+ function L(e, { delay: t = 0, duration: n = 400, easing: r = F, x: i = 0, y: a = 0, opacity: o = 0 } = {}) {
16
+ let s = getComputedStyle(e), c = +s.opacity, l = s.transform === "none" ? "" : s.transform, u = c * (1 - o), [d, f] = I(i), [p, m] = I(a);
17
17
  return {
18
18
  delay: t,
19
19
  duration: n,
@@ -25,16 +25,16 @@ function R(e, { delay: t = 0, duration: n = 400, easing: r = I, x: i = 0, y: a =
25
25
  }
26
26
  //#endregion
27
27
  //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/easing/index.js
28
- function fe(e) {
28
+ function pe(e) {
29
29
  let t = e - 1;
30
30
  return t * t * t + 1;
31
31
  }
32
32
  //#endregion
33
33
  //#region ../grid/dist/SvChartPanes.svelte
34
- var z = u("<div class=\"sv-chart-pane is-indicator svelte-14dx6di\"><span class=\"sv-chart-pane-title svelte-14dx6di\"> </span> <!></div>"), pe = u("<div class=\"sv-chart-panes svelte-14dx6di\"><div class=\"sv-chart-pane is-main svelte-14dx6di\"><!></div> <!></div>");
35
- function me(t, i) {
36
- re(i, !0);
37
- let a = O(i, "indicators", 19, () => []), o = O(i, "axisWidth", 3, 56), s = O(i, "zoom", 15, null), l = ne(i, [
34
+ var R = l("<div class=\"sv-chart-pane is-indicator svelte-14dx6di\"><span class=\"sv-chart-pane-title svelte-14dx6di\"> </span> <!></div>"), me = l("<div class=\"sv-chart-panes svelte-14dx6di\"><div class=\"sv-chart-pane is-main svelte-14dx6di\"><!></div> <!></div>");
35
+ function he(t, i) {
36
+ ee(i, !0);
37
+ let a = D(i, "indicators", 19, () => []), o = D(i, "axisWidth", 3, 56), s = D(i, "zoom", 15, null), c = re(i, [
38
38
  "$$slots",
39
39
  "$$events",
40
40
  "$$legacy",
@@ -47,9 +47,9 @@ function me(t, i) {
47
47
  "zoomable",
48
48
  "legend",
49
49
  "toolbar"
50
- ]), u = `svcp-${Math.random().toString(36).slice(2, 8)}`, d = j(() => i.syncGroup ?? u), p = n(0), m = (e) => P(p) > 0 && !e.width ? { width: Math.round(P(p)) } : {}, g = j(() => ({
50
+ ]), l = `svcp-${Math.random().toString(36).slice(2, 8)}`, u = O(() => i.syncGroup ?? l), d = x(0), f = (e) => N(d) > 0 && !e.width ? { width: Math.round(N(d)) } : {}, m = O(() => ({
51
51
  ...i.spec,
52
- ...m(i.spec),
52
+ ...f(i.spec),
53
53
  xAxis: {
54
54
  ...i.spec.xAxis,
55
55
  ...a().length ? { labels: !1 } : {}
@@ -62,13 +62,13 @@ function me(t, i) {
62
62
  ...i.spec.y2Axis,
63
63
  width: o()
64
64
  } } : {}
65
- })), v = j(() => a().map((t, n) => {
65
+ })), h = O(() => a().map((t, n) => {
66
66
  let { title: r, ...s } = e(i.spec, t);
67
67
  return {
68
68
  title: r ?? t.kind,
69
69
  spec: {
70
70
  ...s,
71
- ...m(s),
71
+ ...f(s),
72
72
  xAxis: {
73
73
  ...s.xAxis,
74
74
  labels: n === a().length - 1
@@ -80,13 +80,13 @@ function me(t, i) {
80
80
  }
81
81
  };
82
82
  }));
83
- var y = pe(), b = c(y), S = c(b);
84
- de(S, E({
83
+ var v = me(), y = g(v), b = g(y);
84
+ fe(b, T({
85
85
  get spec() {
86
- return P(g);
86
+ return N(m);
87
87
  },
88
88
  get syncGroup() {
89
- return P(d);
89
+ return N(u);
90
90
  },
91
91
  get onZoom() {
92
92
  return i.onZoom;
@@ -100,36 +100,36 @@ function me(t, i) {
100
100
  get toolbar() {
101
101
  return i.toolbar;
102
102
  }
103
- }, () => l, {
103
+ }, () => c, {
104
104
  get zoom() {
105
105
  return s();
106
106
  },
107
107
  set zoom(e) {
108
108
  s(e);
109
109
  }
110
- })), x(b);
111
- var w = _(b, 2);
112
- M(w, 19, () => P(v), (e, t) => `${a()[t]?.kind}-${t}`, (e, t, n) => {
113
- var s = z(), l = c(s);
114
- let u;
115
- var f = c(l, !0);
116
- x(l);
117
- var p = _(l, 2);
110
+ })), k(y);
111
+ var C = _(y, 2);
112
+ j(C, 19, () => N(h), (e, t) => `${a()[t]?.kind}-${t}`, (e, t, n) => {
113
+ var s = R(), c = g(s);
114
+ let l;
115
+ var d = g(c, !0);
116
+ k(c);
117
+ var f = _(c, 2);
118
118
  {
119
- let e = j(() => i.zoomable ? {
119
+ let e = O(() => i.zoomable ? {
120
120
  drag: !1,
121
121
  wheel: typeof i.zoomable == "object" && i.zoomable.wheel,
122
122
  pan: typeof i.zoomable == "object" && i.zoomable.pan
123
123
  } : !1);
124
- de(p, {
124
+ fe(f, {
125
125
  get spec() {
126
- return P(t).spec;
126
+ return N(t).spec;
127
127
  },
128
128
  get syncGroup() {
129
- return P(d);
129
+ return N(u);
130
130
  },
131
131
  get zoomable() {
132
- return P(e);
132
+ return N(e);
133
133
  },
134
134
  legend: !1,
135
135
  toolbar: !1,
@@ -139,14 +139,14 @@ function me(t, i) {
139
139
  }
140
140
  });
141
141
  }
142
- x(s), h(() => {
143
- C(s, "data-indicator", a()[P(n)]?.kind), u = ae(l, "", u, { left: `${o() + 6}px` }), D(f, P(t).title);
142
+ k(s), p(() => {
143
+ S(s, "data-indicator", a()[N(n)]?.kind), l = oe(c, "", l, { left: `${o() + 6}px` }), E(d, N(t).title);
144
144
  }), r(e, s);
145
- }), x(y), te(y, "clientWidth", (e) => f(p, e)), r(t, y), k();
145
+ }), k(v), ne(v, "clientWidth", (e) => n(d, e)), r(t, v), ie();
146
146
  }
147
147
  //#endregion
148
148
  //#region ../grid/dist/SvGridChartPickers.svelte
149
- var B = [
149
+ var z = [
150
150
  {
151
151
  value: "bar",
152
152
  label: "chartTypeBar",
@@ -304,14 +304,14 @@ var B = [
304
304
  needs: (e) => e.dates.length >= 1 && e.measures.length >= 4
305
305
  }
306
306
  ];
307
- function he(e, t) {
308
- return B.filter((t) => !t.needs || t.needs(e)).map((e) => ({
307
+ function ge(e, t) {
308
+ return z.filter((t) => !t.needs || t.needs(e)).map((e) => ({
309
309
  value: e.value,
310
310
  label: t[e.label],
311
311
  group: t[e.group]
312
312
  }));
313
313
  }
314
- function V(e) {
314
+ function B(e) {
315
315
  return [
316
316
  {
317
317
  value: "sum",
@@ -355,7 +355,7 @@ function V(e) {
355
355
  }
356
356
  ];
357
357
  }
358
- var H = [
358
+ var V = [
359
359
  {
360
360
  key: "theme",
361
361
  label: "chartPaletteTheme",
@@ -405,7 +405,7 @@ var H = [
405
405
  "#94a3b8"
406
406
  ]
407
407
  }
408
- ], U = [
408
+ ], H = [
409
409
  {
410
410
  value: "volume",
411
411
  label: "chartIndVolume",
@@ -456,12 +456,12 @@ var H = [
456
456
  label: "chartIndVwap",
457
457
  title: "chartIndVwapTitle"
458
458
  }
459
- ], ge = [
459
+ ], _e = [
460
460
  "sma",
461
461
  "ema",
462
462
  "bb",
463
463
  "vwap"
464
- ], _e = [
464
+ ], ve = [
465
465
  {
466
466
  key: "open",
467
467
  label: "chartOpen"
@@ -482,7 +482,7 @@ var H = [
482
482
  key: "volume",
483
483
  label: "chartVolume"
484
484
  }
485
- ], ve = [
485
+ ], ye = [
486
486
  "bar",
487
487
  "line",
488
488
  "area",
@@ -492,11 +492,11 @@ var H = [
492
492
  "range-area",
493
493
  "dumbbell",
494
494
  "stream"
495
- ], ye = [
495
+ ], be = [
496
496
  "range-bar",
497
497
  "range-area",
498
498
  "dumbbell"
499
- ], be = [
499
+ ], xe = [
500
500
  {
501
501
  value: "",
502
502
  label: "chartBucketExact"
@@ -521,15 +521,15 @@ var H = [
521
521
  value: "year",
522
522
  label: "chartBucketYear"
523
523
  }
524
- ], xe = u("<option> </option>"), Se = u("<optgroup></optgroup>"), Ce = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), we = u("<option> </option>"), Te = u("<option> </option>"), Ee = u("<option> </option>"), W = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><!><!></select></label>"), De = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label> <!>", 1), Oe = u("<option> </option>"), ke = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Ae = u("<option> </option>"), je = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><!></select></label>"), Me = u("<option> </option>"), Ne = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Pe = u("<option> </option>"), Fe = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Ie = u("<option> </option>"), Le = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Re = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <input class=\"sv-grid-chart-num\" type=\"number\" min=\"1\" max=\"200\"/></label>"), G = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label>"), ze = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label>"), Be = u("<button type=\"button\"> </button>"), Ve = u("<span class=\"sv-grid-chart-ctl sv-grid-chart-indicators\" role=\"group\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <span class=\"sv-grid-chart-chips\"></span></span>"), He = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label> <label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>", 1), Ue = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), We = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), Ge = u("<option> </option>"), Ke = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), K = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), q = u("<option> </option>"), J = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), qe = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), Je = u("<p class=\"sv-grid-chart-hint sv-grid-chart-pivot-hint\" role=\"note\"> </p>"), Ye = u("<p class=\"sv-grid-chart-hint\" role=\"note\"> </p>"), Y = u("<div><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label> <!> <!> <!> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label> <!> <!> <!> <!> <!></div>");
524
+ ], Se = l("<option> </option>"), Ce = l("<optgroup></optgroup>"), we = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Te = l("<option> </option>"), Ee = l("<option> </option>"), De = l("<option> </option>"), U = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><!><!></select></label>"), Oe = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label> <!>", 1), W = l("<option> </option>"), ke = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Ae = l("<option> </option>"), je = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><!></select></label>"), Me = l("<option> </option>"), Ne = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Pe = l("<option> </option>"), Fe = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Ie = l("<option> </option>"), Le = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Re = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <input class=\"sv-grid-chart-num\" type=\"number\" min=\"1\" max=\"200\"/></label>"), G = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label>"), ze = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label>"), Be = l("<button type=\"button\"> </button>"), Ve = l("<span class=\"sv-grid-chart-ctl sv-grid-chart-indicators\" role=\"group\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <span class=\"sv-grid-chart-chips\"></span></span>"), He = l("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label> <label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>", 1), Ue = l("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), We = l("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), Ge = l("<option> </option>"), Ke = l("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), K = l("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), q = l("<option> </option>"), J = l("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), qe = l("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), Je = l("<p class=\"sv-grid-chart-hint sv-grid-chart-pivot-hint\" role=\"note\"> </p>"), Ye = l("<p class=\"sv-grid-chart-hint\" role=\"note\"> </p>"), Y = l("<div><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label> <!> <!> <!> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label> <!> <!> <!> <!> <!></div>");
525
525
  function Xe(e, n) {
526
- re(n, !0);
527
- let i = O(n, "ctrl", 7), o = O(n, "scope", 3, "panel"), s = j(() => i().chartableColumns), u = j(() => i().pivotResult != null), d = j(() => he(P(s), n.messages).filter((e) => !P(u) || t(e.value) === e.value)), f = j(() => [...new Set(P(d).map((e) => e.group))]), p = j(() => V(n.messages));
526
+ ee(n, !0);
527
+ let i = D(n, "ctrl", 7), o = D(n, "scope", 3, "panel"), s = O(() => i().chartableColumns), l = O(() => i().pivotResult != null), u = O(() => ge(N(s), n.messages).filter((e) => !N(l) || t(e.value) === e.value)), d = O(() => [...new Set(N(u).map((e) => e.group))]), f = O(() => B(n.messages));
528
528
  function m(e) {
529
- let t = i().chartIndicators.includes(e), n = ge.includes(e) ? i().chartIndicators.filter((e) => !ge.includes(e)) : i().chartIndicators;
529
+ let t = i().chartIndicators.includes(e), n = _e.includes(e) ? i().chartIndicators.filter((e) => !_e.includes(e)) : i().chartIndicators;
530
530
  i().chartIndicators = t ? n.filter((t) => t !== e) : [...n, e];
531
531
  }
532
- let g = j(() => H.find((e) => e.colors && i().chartPalette && e.colors.join() === i().chartPalette.join())?.key ?? "theme"), b = j(() => i().chartType === "bar"), E = j(() => i().chartType === "pie" || i().chartType === "sunburst"), ee = j(() => !P(u) && i().chartType !== "gauge" && i().chartType !== "histogram"), te = j(() => !P(u) && P(s).dims.length > 1 && ![
532
+ let y = O(() => V.find((e) => e.colors && i().chartPalette && e.colors.join() === i().chartPalette.join())?.key ?? "theme"), x = O(() => i().chartType === "bar"), T = O(() => i().chartType === "pie" || i().chartType === "sunburst"), te = O(() => !N(l) && i().chartType !== "gauge" && i().chartType !== "histogram"), ne = O(() => !N(l) && N(s).dims.length > 1 && ![
533
533
  "pie",
534
534
  "gauge",
535
535
  "waterfall",
@@ -538,12 +538,12 @@ function Xe(e, n) {
538
538
  "bullet",
539
539
  "pareto",
540
540
  "radial-bar"
541
- ].includes(i().chartType)), ne = j(() => [
541
+ ].includes(i().chartType)), re = O(() => [
542
542
  "bar",
543
543
  "line",
544
544
  "area",
545
545
  "radial-column"
546
- ].includes(i().chartType)), ie = j(() => ve.includes(i().chartType) || i().chartType === "scatter" || i().chartType === "boxplot" || i().chartType === "histogram"), ae = j(() => ![
546
+ ].includes(i().chartType)), ae = O(() => ye.includes(i().chartType) || i().chartType === "scatter" || i().chartType === "boxplot" || i().chartType === "histogram"), oe = O(() => ![
547
547
  "gauge",
548
548
  "sankey",
549
549
  "calendar",
@@ -553,15 +553,15 @@ function Xe(e, n) {
553
553
  "chord",
554
554
  "sunburst",
555
555
  "stream"
556
- ].includes(i().chartType)), F = j(() => !P(u) && (i().chartType === "scatter" || ye.includes(i().chartType) || i().chartType === "bullet")), oe = j(() => i().chartType === "scatter" ? n.messages.chartY : i().chartType === "bullet" ? n.messages.chartTarget : n.messages.chartHigh), se = j(() => i().chartType === "funnel"), ce = j(() => i().chartType === "candlestick"), le = j(() => !P(u) && i().chartIsOhlc), ue = j(() => !P(u) && i().chartType === "histogram"), de = j(() => !P(u) && !i().chartIsOhlc), I = j(() => !P(u) && i().chartType !== "scatter" && i().chartType !== "boxplot" && i().chartType !== "histogram" && !i().chartIsOhlc), L = j(() => {
556
+ ].includes(i().chartType)), P = O(() => !N(l) && (i().chartType === "scatter" || be.includes(i().chartType) || i().chartType === "bullet")), se = O(() => i().chartType === "scatter" ? n.messages.chartY : i().chartType === "bullet" ? n.messages.chartTarget : n.messages.chartHigh), ce = O(() => i().chartType === "funnel"), le = O(() => i().chartType === "candlestick"), ue = O(() => !N(l) && i().chartIsOhlc), de = O(() => !N(l) && i().chartType === "histogram"), fe = O(() => !N(l) && !i().chartIsOhlc), F = O(() => !N(l) && i().chartType !== "scatter" && i().chartType !== "boxplot" && i().chartType !== "histogram" && !i().chartIsOhlc), I = O(() => {
557
557
  let e = i().chartType, t = i().chartSpec?.categories.length ?? 0;
558
- if (e === "heatmap" && !i().chartSeriesId && P(s).dims.length > 1) return n.messages.chartIssueHeatmap;
558
+ if (e === "heatmap" && !i().chartSeriesId && N(s).dims.length > 1) return n.messages.chartIssueHeatmap;
559
559
  if (e === "sankey" && !i().chartSeriesId) return n.messages.chartIssueSankey;
560
560
  if (e === "radar" && t > 0 && t < 3) return n.messages.chartIssueRadar;
561
561
  if (e === "funnel" && t === 1) return n.messages.chartIssueFunnel;
562
562
  if (e === "chord" && !i().chartSeriesId) return n.messages.chartIssueChord;
563
563
  if (e === "stream" && !i().chartSeriesId) return n.messages.chartIssueStream;
564
- if (ye.includes(e) && !i().effectiveChartMeasure2Id) return n.messages.chartIssueSecondMeasure;
564
+ if (be.includes(e) && !i().effectiveChartMeasure2Id) return n.messages.chartIssueSecondMeasure;
565
565
  if (i().chartIsOhlc) {
566
566
  let e = i().chartOhlc;
567
567
  if (!i().chartOhlcDateId) return n.messages.chartIssueOhlcDate;
@@ -569,365 +569,365 @@ function Xe(e, n) {
569
569
  }
570
570
  return null;
571
571
  });
572
- var R = Y();
573
- let fe;
574
- var z = c(R), pe = (e) => {
575
- var t = Ce(), a = c(t), o = c(a, !0);
576
- x(a);
572
+ var L = Y();
573
+ let pe;
574
+ var R = g(L), me = (e) => {
575
+ var t = we(), a = g(t), o = g(a, !0);
576
+ k(a);
577
577
  var s = _(a, 2);
578
- M(s, 20, () => P(f), (e) => e, (e, t) => {
579
- var n = Se();
580
- M(n, 21, () => P(d).filter((e) => e.group === t), (e) => e.value, (e, t) => {
581
- var n = xe(), i = c(n, !0);
582
- x(n);
578
+ j(s, 20, () => N(d), (e) => e, (e, t) => {
579
+ var n = Ce();
580
+ j(n, 21, () => N(u).filter((e) => e.group === t), (e) => e.value, (e, t) => {
581
+ var n = Se(), i = g(n, !0);
582
+ k(n);
583
583
  var a = {};
584
- h(() => {
585
- D(i, P(t).label), a !== (a = P(t).value) && (n.value = (n.__value = P(t).value) ?? "");
584
+ p(() => {
585
+ E(i, N(t).label), a !== (a = N(t).value) && (n.value = (n.__value = N(t).value) ?? "");
586
586
  }), r(e, n);
587
- }), x(n), h(() => C(n, "label", t)), r(e, n);
588
- }), x(s);
589
- var u;
590
- w(s), x(t), h(() => {
591
- D(o, n.messages.chartType), u !== (u = i().chartType) && (s.value = (s.__value = i().chartType) ?? "", y(s, i().chartType));
592
- }), l("change", s, (e) => i().chartType = e.currentTarget.value), r(e, t);
587
+ }), k(n), p(() => S(n, "label", t)), r(e, n);
588
+ }), k(s);
589
+ var l;
590
+ C(s), k(t), p(() => {
591
+ E(o, n.messages.chartType), l !== (l = i().chartType) && (s.value = (s.__value = i().chartType) ?? "", v(s, i().chartType));
592
+ }), c("change", s, (e) => i().chartType = e.currentTarget.value), r(e, t);
593
593
  };
594
- a(z, (e) => {
595
- o() === "panel" && e(pe);
594
+ a(R, (e) => {
595
+ o() === "panel" && e(me);
596
596
  });
597
- var me = _(z, 2), B = (e) => {
598
- var t = De(), o = v(t), u = c(o), d = c(u, !0);
599
- x(u);
600
- var f = _(u, 2);
601
- M(f, 21, () => P(s).dates, (e) => e.id, (e, t) => {
602
- var n = we(), i = c(n, !0);
603
- x(n);
597
+ var he = _(R, 2), z = (e) => {
598
+ var t = Oe(), o = h(t), l = g(o), u = g(l, !0);
599
+ k(l);
600
+ var d = _(l, 2);
601
+ j(d, 21, () => N(s).dates, (e) => e.id, (e, t) => {
602
+ var n = Te(), i = g(n, !0);
603
+ k(n);
604
604
  var a = {};
605
- h(() => {
606
- D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
605
+ p(() => {
606
+ E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = N(t).id) ?? "");
607
607
  }), r(e, n);
608
- }), x(f);
609
- var p;
610
- w(f), x(o);
608
+ }), k(d);
609
+ var f;
610
+ C(d), k(o);
611
611
  var m = _(o, 2);
612
- M(m, 17, () => _e, (e) => e.key, (e, t) => {
613
- var o = W(), u = c(o), d = c(u, !0);
614
- x(u);
615
- var f = _(u, 2), p = c(f), m = (e) => {
616
- var t = Te(), i = c(t, !0);
617
- x(t), t.value = t.__value = "", h(() => D(i, n.messages.chartNone)), r(e, t);
612
+ j(m, 17, () => ve, (e) => e.key, (e, t) => {
613
+ var o = U(), l = g(o), u = g(l, !0);
614
+ k(l);
615
+ var d = _(l, 2), f = g(d), m = (e) => {
616
+ var t = Ee(), i = g(t, !0);
617
+ k(t), t.value = t.__value = "", p(() => E(i, n.messages.chartNone)), r(e, t);
618
618
  };
619
- a(p, (e) => {
620
- P(t).key === "volume" && e(m);
619
+ a(f, (e) => {
620
+ N(t).key === "volume" && e(m);
621
621
  });
622
- var g = _(p);
623
- M(g, 17, () => P(s).measures, (e) => e.id, (e, t) => {
624
- var n = Ee(), i = c(n, !0);
625
- x(n);
622
+ var h = _(f);
623
+ j(h, 17, () => N(s).measures, (e) => e.id, (e, t) => {
624
+ var n = De(), i = g(n, !0);
625
+ k(n);
626
626
  var a = {};
627
- h(() => {
628
- D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
627
+ p(() => {
628
+ E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = N(t).id) ?? "");
629
629
  }), r(e, n);
630
- }), x(f);
631
- var v;
632
- w(f), x(o), h(() => {
633
- D(d, n.messages[P(t).label]), v !== (v = i().chartOhlc[P(t).key] ?? "") && (f.value = (f.__value = i().chartOhlc[P(t).key] ?? "") ?? "", y(f, i().chartOhlc[P(t).key] ?? ""));
634
- }), l("change", f, (e) => i().chartOhlc = {
630
+ }), k(d);
631
+ var y;
632
+ C(d), k(o), p(() => {
633
+ E(u, n.messages[N(t).label]), y !== (y = i().chartOhlc[N(t).key] ?? "") && (d.value = (d.__value = i().chartOhlc[N(t).key] ?? "") ?? "", v(d, i().chartOhlc[N(t).key] ?? ""));
634
+ }), c("change", d, (e) => i().chartOhlc = {
635
635
  ...i().chartOhlc,
636
- [P(t).key]: e.currentTarget.value || null
636
+ [N(t).key]: e.currentTarget.value || null
637
637
  }), r(e, o);
638
- }), h(() => {
639
- D(d, n.messages.chartDate), p !== (p = i().chartOhlcDateId ?? "") && (f.value = (f.__value = i().chartOhlcDateId ?? "") ?? "", y(f, i().chartOhlcDateId ?? ""));
640
- }), l("change", f, (e) => i().chartDimensionId = e.currentTarget.value || null), r(e, t);
638
+ }), p(() => {
639
+ E(u, n.messages.chartDate), f !== (f = i().chartOhlcDateId ?? "") && (d.value = (d.__value = i().chartOhlcDateId ?? "") ?? "", v(d, i().chartOhlcDateId ?? ""));
640
+ }), c("change", d, (e) => i().chartDimensionId = e.currentTarget.value || null), r(e, t);
641
641
  }, Xe = (e) => {
642
- var t = ke(), a = c(t), o = c(a, !0);
643
- x(a);
644
- var u = _(a, 2);
645
- M(u, 21, () => P(s).dims, (e) => e.id, (e, t) => {
646
- var n = Oe(), i = c(n, !0);
647
- x(n);
642
+ var t = ke(), a = g(t), o = g(a, !0);
643
+ k(a);
644
+ var l = _(a, 2);
645
+ j(l, 21, () => N(s).dims, (e) => e.id, (e, t) => {
646
+ var n = W(), i = g(n, !0);
647
+ k(n);
648
648
  var a = {};
649
- h(() => {
650
- D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
649
+ p(() => {
650
+ E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = N(t).id) ?? "");
651
651
  }), r(e, n);
652
- }), x(u);
653
- var d;
654
- w(u), x(t), h(() => {
655
- D(o, i().chartType === "sankey" ? n.messages.chartFrom : i().chartType === "heatmap" ? n.messages.chartColumns : n.messages.chartGroupBy), d !== (d = i().chartDimensionId ?? "") && (u.value = (u.__value = i().chartDimensionId ?? "") ?? "", y(u, i().chartDimensionId ?? ""));
656
- }), l("change", u, (e) => i().chartDimensionId = e.currentTarget.value || null), r(e, t);
652
+ }), k(l);
653
+ var u;
654
+ C(l), k(t), p(() => {
655
+ E(o, i().chartType === "sankey" ? n.messages.chartFrom : i().chartType === "heatmap" ? n.messages.chartColumns : n.messages.chartGroupBy), u !== (u = i().chartDimensionId ?? "") && (l.value = (l.__value = i().chartDimensionId ?? "") ?? "", v(l, i().chartDimensionId ?? ""));
656
+ }), c("change", l, (e) => i().chartDimensionId = e.currentTarget.value || null), r(e, t);
657
657
  };
658
- a(me, (e) => {
659
- P(le) ? e(B) : P(ee) && e(Xe, 1);
658
+ a(he, (e) => {
659
+ N(ue) ? e(z) : N(te) && e(Xe, 1);
660
660
  });
661
- var Ze = _(me, 2), Qe = (e) => {
662
- var t = je(), a = c(t), o = c(a, !0);
663
- x(a);
664
- var u = _(a, 2), d = c(u), f = c(d, !0);
665
- x(d), d.value = d.__value = "";
666
- var p = _(d);
667
- M(p, 17, () => P(s).dims, (e) => e.id, (e, t) => {
668
- var n = Ae(), i = c(n, !0);
669
- x(n);
661
+ var Ze = _(he, 2), Qe = (e) => {
662
+ var t = je(), a = g(t), o = g(a, !0);
663
+ k(a);
664
+ var l = _(a, 2), u = g(l), d = g(u, !0);
665
+ k(u), u.value = u.__value = "";
666
+ var f = _(u);
667
+ j(f, 17, () => N(s).dims, (e) => e.id, (e, t) => {
668
+ var n = Ae(), i = g(n, !0);
669
+ k(n);
670
670
  var a = {};
671
- h(() => {
672
- D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
671
+ p(() => {
672
+ E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = N(t).id) ?? "");
673
673
  }), r(e, n);
674
- }), x(u);
674
+ }), k(l);
675
675
  var m;
676
- w(u), x(t), h(() => {
677
- D(o, i().chartType === "sankey" ? n.messages.chartTo : i().chartType === "heatmap" ? n.messages.chartRows : n.messages.chartSplitBy), D(f, n.messages.chartNone), m !== (m = i().chartSeriesId ?? "") && (u.value = (u.__value = i().chartSeriesId ?? "") ?? "", y(u, i().chartSeriesId ?? ""));
678
- }), l("change", u, (e) => i().chartSeriesId = e.currentTarget.value || null), r(e, t);
676
+ C(l), k(t), p(() => {
677
+ E(o, i().chartType === "sankey" ? n.messages.chartTo : i().chartType === "heatmap" ? n.messages.chartRows : n.messages.chartSplitBy), E(d, n.messages.chartNone), m !== (m = i().chartSeriesId ?? "") && (l.value = (l.__value = i().chartSeriesId ?? "") ?? "", v(l, i().chartSeriesId ?? ""));
678
+ }), c("change", l, (e) => i().chartSeriesId = e.currentTarget.value || null), r(e, t);
679
679
  };
680
680
  a(Ze, (e) => {
681
- P(te) && e(Qe);
681
+ N(ne) && e(Qe);
682
682
  });
683
683
  var $e = _(Ze, 2), et = (e) => {
684
- var t = Ne(), a = c(t), o = c(a, !0);
685
- x(a);
686
- var u = _(a, 2);
687
- M(u, 21, () => P(s).measures, (e) => e.id, (e, t) => {
688
- var n = Me(), i = c(n, !0);
689
- x(n);
684
+ var t = Ne(), a = g(t), o = g(a, !0);
685
+ k(a);
686
+ var l = _(a, 2);
687
+ j(l, 21, () => N(s).measures, (e) => e.id, (e, t) => {
688
+ var n = Me(), i = g(n, !0);
689
+ k(n);
690
690
  var a = {};
691
- h(() => {
692
- D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
691
+ p(() => {
692
+ E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = N(t).id) ?? "");
693
693
  }), r(e, n);
694
- }), x(u);
695
- var d;
696
- w(u), x(t), h((e) => {
697
- D(o, e), d !== (d = i().chartMeasureId ?? "") && (u.value = (u.__value = i().chartMeasureId ?? "") ?? "", y(u, i().chartMeasureId ?? ""));
698
- }, [() => i().chartType === "scatter" ? n.messages.chartX : ye.includes(i().chartType) ? n.messages.chartLow : i().chartType === "gauge" ? n.messages.chartMetric : n.messages.chartValue]), l("change", u, (e) => i().chartMeasureId = e.currentTarget.value || null), r(e, t);
694
+ }), k(l);
695
+ var u;
696
+ C(l), k(t), p((e) => {
697
+ E(o, e), u !== (u = i().chartMeasureId ?? "") && (l.value = (l.__value = i().chartMeasureId ?? "") ?? "", v(l, i().chartMeasureId ?? ""));
698
+ }, [() => i().chartType === "scatter" ? n.messages.chartX : be.includes(i().chartType) ? n.messages.chartLow : i().chartType === "gauge" ? n.messages.chartMetric : n.messages.chartValue]), c("change", l, (e) => i().chartMeasureId = e.currentTarget.value || null), r(e, t);
699
699
  };
700
700
  a($e, (e) => {
701
- P(de) && e(et);
701
+ N(fe) && e(et);
702
702
  });
703
703
  var tt = _($e, 2), nt = (e) => {
704
- var t = Fe(), n = c(t), a = c(n, !0);
705
- x(n);
704
+ var t = Fe(), n = g(t), a = g(n, !0);
705
+ k(n);
706
706
  var o = _(n, 2);
707
- M(o, 21, () => P(s).measures, (e) => e.id, (e, t) => {
708
- var n = Pe(), i = c(n, !0);
709
- x(n);
707
+ j(o, 21, () => N(s).measures, (e) => e.id, (e, t) => {
708
+ var n = Pe(), i = g(n, !0);
709
+ k(n);
710
710
  var a = {};
711
- h(() => {
712
- D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
711
+ p(() => {
712
+ E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = N(t).id) ?? "");
713
713
  }), r(e, n);
714
- }), x(o);
715
- var u;
716
- w(o), x(t), h(() => {
717
- D(a, P(oe)), u !== (u = i().effectiveChartMeasure2Id ?? "") && (o.value = (o.__value = i().effectiveChartMeasure2Id ?? "") ?? "", y(o, i().effectiveChartMeasure2Id ?? ""));
718
- }), l("change", o, (e) => i().chartMeasure2Id = e.currentTarget.value || null), r(e, t);
714
+ }), k(o);
715
+ var l;
716
+ C(o), k(t), p(() => {
717
+ E(a, N(se)), l !== (l = i().effectiveChartMeasure2Id ?? "") && (o.value = (o.__value = i().effectiveChartMeasure2Id ?? "") ?? "", v(o, i().effectiveChartMeasure2Id ?? ""));
718
+ }), c("change", o, (e) => i().chartMeasure2Id = e.currentTarget.value || null), r(e, t);
719
719
  };
720
720
  a(tt, (e) => {
721
- P(F) && e(nt);
721
+ N(P) && e(nt);
722
722
  });
723
723
  var rt = _(tt, 2), it = (e) => {
724
- var t = Le(), a = c(t), o = c(a, !0);
725
- x(a);
724
+ var t = Le(), a = g(t), o = g(a, !0);
725
+ k(a);
726
726
  var s = _(a, 2);
727
- M(s, 21, () => P(p), (e) => e.value, (e, t) => {
728
- var n = Ie(), i = c(n, !0);
729
- x(n);
727
+ j(s, 21, () => N(f), (e) => e.value, (e, t) => {
728
+ var n = Ie(), i = g(n, !0);
729
+ k(n);
730
730
  var a = {};
731
- h(() => {
732
- D(i, P(t).label), a !== (a = P(t).value) && (n.value = (n.__value = P(t).value) ?? "");
731
+ p(() => {
732
+ E(i, N(t).label), a !== (a = N(t).value) && (n.value = (n.__value = N(t).value) ?? "");
733
733
  }), r(e, n);
734
- }), x(s);
735
- var u;
736
- w(s), x(t), h(() => {
737
- D(o, n.messages.chartAggregate), u !== (u = i().chartReduce) && (s.value = (s.__value = i().chartReduce) ?? "", y(s, i().chartReduce));
738
- }), l("change", s, (e) => i().chartReduce = e.currentTarget.value), r(e, t);
734
+ }), k(s);
735
+ var l;
736
+ C(s), k(t), p(() => {
737
+ E(o, n.messages.chartAggregate), l !== (l = i().chartReduce) && (s.value = (s.__value = i().chartReduce) ?? "", v(s, i().chartReduce));
738
+ }), c("change", s, (e) => i().chartReduce = e.currentTarget.value), r(e, t);
739
739
  };
740
740
  a(rt, (e) => {
741
- P(I) && e(it);
741
+ N(F) && e(it);
742
742
  });
743
743
  var at = _(rt, 2), ot = (e) => {
744
- var t = Re(), a = c(t), o = c(a, !0);
745
- x(a);
744
+ var t = Re(), a = g(t), o = g(a, !0);
745
+ k(a);
746
746
  var s = _(a, 2);
747
- S(s), x(t), h(() => {
748
- C(t, "title", n.messages.chartBinsTitle), D(o, n.messages.chartBins), T(s, i().chartBins ?? ""), C(s, "placeholder", n.messages.chartBuilderAuto);
749
- }), l("change", s, (e) => i().chartBins = e.currentTarget.value ? Number(e.currentTarget.value) : null), r(e, t);
747
+ b(s), k(t), p(() => {
748
+ S(t, "title", n.messages.chartBinsTitle), E(o, n.messages.chartBins), w(s, i().chartBins ?? ""), S(s, "placeholder", n.messages.chartBuilderAuto);
749
+ }), c("change", s, (e) => i().chartBins = e.currentTarget.value ? Number(e.currentTarget.value) : null), r(e, t);
750
750
  };
751
751
  a(at, (e) => {
752
- P(ue) && e(ot);
752
+ N(de) && e(ot);
753
753
  });
754
754
  var st = _(at, 2), ct = (e) => {
755
- var t = G(), a = c(t), o = c(a, !0);
756
- x(a);
757
- var s = _(a, 2), u = c(s), d = c(u, !0);
758
- x(u), u.value = u.__value = "trapezoid";
759
- var f = _(u), p = c(f, !0);
760
- x(f), f.value = f.__value = "pyramid";
761
- var m = _(f), g = c(m, !0);
762
- x(m), m.value = m.__value = "cone", x(s);
763
- var v;
764
- w(s), x(t), h(() => {
765
- D(o, n.messages.chartShape), D(d, n.messages.chartShapeFunnel), D(p, n.messages.chartShapePyramid), D(g, n.messages.chartShapeCone), v !== (v = i().chartFunnelShape ?? "trapezoid") && (s.value = (s.__value = i().chartFunnelShape ?? "trapezoid") ?? "", y(s, i().chartFunnelShape ?? "trapezoid"));
766
- }), l("change", s, (e) => i().chartFunnelShape = e.currentTarget.value), r(e, t);
755
+ var t = G(), a = g(t), o = g(a, !0);
756
+ k(a);
757
+ var s = _(a, 2), l = g(s), u = g(l, !0);
758
+ k(l), l.value = l.__value = "trapezoid";
759
+ var d = _(l), f = g(d, !0);
760
+ k(d), d.value = d.__value = "pyramid";
761
+ var m = _(d), h = g(m, !0);
762
+ k(m), m.value = m.__value = "cone", k(s);
763
+ var y;
764
+ C(s), k(t), p(() => {
765
+ E(o, n.messages.chartShape), E(u, n.messages.chartShapeFunnel), E(f, n.messages.chartShapePyramid), E(h, n.messages.chartShapeCone), y !== (y = i().chartFunnelShape ?? "trapezoid") && (s.value = (s.__value = i().chartFunnelShape ?? "trapezoid") ?? "", v(s, i().chartFunnelShape ?? "trapezoid"));
766
+ }), c("change", s, (e) => i().chartFunnelShape = e.currentTarget.value), r(e, t);
767
767
  };
768
768
  a(st, (e) => {
769
- P(se) && e(ct);
769
+ N(ce) && e(ct);
770
770
  });
771
771
  var lt = _(st, 2), ut = (e) => {
772
- var t = ze(), a = c(t), o = c(a, !0);
773
- x(a);
774
- var s = _(a, 2), u = c(s), d = c(u, !0);
775
- x(u), u.value = u.__value = "classic";
776
- var f = _(u), p = c(f, !0);
777
- x(f), f.value = f.__value = "hollow";
778
- var m = _(f), g = c(m, !0);
779
- x(m), m.value = m.__value = "heikin-ashi", x(s);
780
- var v;
781
- w(s), x(t), h(() => {
782
- D(o, n.messages.chartCandles), D(d, n.messages.chartCandlesClassic), D(p, n.messages.chartCandlesHollow), D(g, n.messages.chartCandlesHeikinAshi), v !== (v = i().chartCandleStyle ?? "classic") && (s.value = (s.__value = i().chartCandleStyle ?? "classic") ?? "", y(s, i().chartCandleStyle ?? "classic"));
783
- }), l("change", s, (e) => i().chartCandleStyle = e.currentTarget.value), r(e, t);
772
+ var t = ze(), a = g(t), o = g(a, !0);
773
+ k(a);
774
+ var s = _(a, 2), l = g(s), u = g(l, !0);
775
+ k(l), l.value = l.__value = "classic";
776
+ var d = _(l), f = g(d, !0);
777
+ k(d), d.value = d.__value = "hollow";
778
+ var m = _(d), h = g(m, !0);
779
+ k(m), m.value = m.__value = "heikin-ashi", k(s);
780
+ var y;
781
+ C(s), k(t), p(() => {
782
+ E(o, n.messages.chartCandles), E(u, n.messages.chartCandlesClassic), E(f, n.messages.chartCandlesHollow), E(h, n.messages.chartCandlesHeikinAshi), y !== (y = i().chartCandleStyle ?? "classic") && (s.value = (s.__value = i().chartCandleStyle ?? "classic") ?? "", v(s, i().chartCandleStyle ?? "classic"));
783
+ }), c("change", s, (e) => i().chartCandleStyle = e.currentTarget.value), r(e, t);
784
784
  };
785
785
  a(lt, (e) => {
786
- P(ce) && e(ut);
786
+ N(le) && e(ut);
787
787
  });
788
788
  var dt = _(lt, 2), ft = (e) => {
789
- var t = Ve(), a = c(t), o = c(a, !0);
790
- x(a);
789
+ var t = Ve(), a = g(t), o = g(a, !0);
790
+ k(a);
791
791
  var s = _(a, 2);
792
- M(s, 21, () => U, (e) => e.value, (e, t) => {
792
+ j(s, 21, () => H, (e) => e.value, (e, t) => {
793
793
  var a = Be();
794
794
  let o;
795
- var s = c(a, !0);
796
- x(a), h((e, r) => {
797
- o = N(a, 1, "sv-grid-chart-chip", null, o, e), C(a, "aria-pressed", r), C(a, "title", n.messages[P(t).title]), D(s, n.messages[P(t).label]);
798
- }, [() => ({ "is-on": i().chartIndicators.includes(P(t).value) }), () => i().chartIndicators.includes(P(t).value)]), l("click", a, () => m(P(t).value)), r(e, a);
799
- }), x(s), x(t), h(() => {
800
- C(t, "aria-label", n.messages.chartIndicators), D(o, n.messages.chartIndicators);
795
+ var s = g(a, !0);
796
+ k(a), p((e, r) => {
797
+ o = M(a, 1, "sv-grid-chart-chip", null, o, e), S(a, "aria-pressed", r), S(a, "title", n.messages[N(t).title]), E(s, n.messages[N(t).label]);
798
+ }, [() => ({ "is-on": i().chartIndicators.includes(N(t).value) }), () => i().chartIndicators.includes(N(t).value)]), c("click", a, () => m(N(t).value)), r(e, a);
799
+ }), k(s), k(t), p(() => {
800
+ S(t, "aria-label", n.messages.chartIndicators), E(o, n.messages.chartIndicators);
801
801
  }), r(e, t);
802
802
  };
803
803
  a(dt, (e) => {
804
- P(le) && e(ft);
804
+ N(ue) && e(ft);
805
805
  });
806
- var pt = _(dt, 2), mt = c(pt), ht = c(mt, !0);
807
- x(mt);
808
- var X = _(mt, 2), gt = c(X), _t = c(gt, !0);
809
- x(gt), gt.value = gt.__value = "number";
810
- var vt = _(gt), yt = c(vt, !0);
811
- x(vt), vt.value = vt.__value = "currency";
812
- var bt = _(vt), xt = c(bt, !0);
813
- x(bt), bt.value = bt.__value = "percent", x(X);
806
+ var pt = _(dt, 2), mt = g(pt), ht = g(mt, !0);
807
+ k(mt);
808
+ var X = _(mt, 2), gt = g(X), _t = g(gt, !0);
809
+ k(gt), gt.value = gt.__value = "number";
810
+ var vt = _(gt), yt = g(vt, !0);
811
+ k(vt), vt.value = vt.__value = "currency";
812
+ var bt = _(vt), xt = g(bt, !0);
813
+ k(bt), bt.value = bt.__value = "percent", k(X);
814
814
  var St;
815
- w(X), x(pt);
815
+ C(X), k(pt);
816
816
  var Ct = _(pt, 2), wt = (e) => {
817
- var t = He(), a = v(t), o = c(a);
818
- S(o);
817
+ var t = He(), a = h(t), o = g(a);
818
+ b(o);
819
819
  var s = _(o);
820
- x(a);
821
- var u = _(a, 2), d = c(u);
822
- S(d);
823
- var f = _(d);
824
- x(u), h(() => {
825
- A(o, i().chartStacked), D(s, ` ${n.messages.chartStacked ?? ""}`), C(u, "title", n.messages.chartStacked100Title), A(d, i().chartStacked100), D(f, ` ${n.messages.chartStacked100 ?? ""}`);
826
- }), l("change", o, (e) => i().chartStacked = e.currentTarget.checked), l("change", d, (e) => i().chartStacked100 = e.currentTarget.checked), r(e, t);
820
+ k(a);
821
+ var l = _(a, 2), u = g(l);
822
+ b(u);
823
+ var d = _(u);
824
+ k(l), p(() => {
825
+ A(o, i().chartStacked), E(s, ` ${n.messages.chartStacked ?? ""}`), S(l, "title", n.messages.chartStacked100Title), A(u, i().chartStacked100), E(d, ` ${n.messages.chartStacked100 ?? ""}`);
826
+ }), c("change", o, (e) => i().chartStacked = e.currentTarget.checked), c("change", u, (e) => i().chartStacked100 = e.currentTarget.checked), r(e, t);
827
827
  };
828
828
  a(Ct, (e) => {
829
- P(ne) && e(wt);
829
+ N(re) && e(wt);
830
830
  });
831
831
  var Tt = _(Ct, 2), Et = (e) => {
832
- var t = Ue(), a = c(t);
833
- S(a);
832
+ var t = Ue(), a = g(t);
833
+ b(a);
834
834
  var o = _(a);
835
- x(t), h(() => {
836
- C(t, "title", n.messages.chartHorizontalTitle), A(a, i().chartOrientation === "horizontal"), D(o, ` ${n.messages.chartHorizontal ?? ""}`);
837
- }), l("change", a, (e) => i().chartOrientation = e.currentTarget.checked ? "horizontal" : "vertical"), r(e, t);
835
+ k(t), p(() => {
836
+ S(t, "title", n.messages.chartHorizontalTitle), A(a, i().chartOrientation === "horizontal"), E(o, ` ${n.messages.chartHorizontal ?? ""}`);
837
+ }), c("change", a, (e) => i().chartOrientation = e.currentTarget.checked ? "horizontal" : "vertical"), r(e, t);
838
838
  };
839
839
  a(Tt, (e) => {
840
- P(b) && e(Et);
840
+ N(x) && e(Et);
841
841
  });
842
842
  var Dt = _(Tt, 2), Ot = (e) => {
843
- var t = We(), a = c(t);
844
- S(a);
843
+ var t = We(), a = g(t);
844
+ b(a);
845
845
  var o = _(a);
846
- x(t), h(() => {
847
- A(a, i().chartDonut), D(o, ` ${n.messages.chartDonut ?? ""}`);
848
- }), l("change", a, (e) => i().chartDonut = e.currentTarget.checked), r(e, t);
846
+ k(t), p(() => {
847
+ A(a, i().chartDonut), E(o, ` ${n.messages.chartDonut ?? ""}`);
848
+ }), c("change", a, (e) => i().chartDonut = e.currentTarget.checked), r(e, t);
849
849
  };
850
850
  a(Dt, (e) => {
851
- P(E) && e(Ot);
851
+ N(T) && e(Ot);
852
852
  });
853
- var Z = _(Dt, 2), kt = c(Z), At = c(kt, !0);
854
- x(kt);
853
+ var Z = _(Dt, 2), kt = g(Z), At = g(kt, !0);
854
+ k(kt);
855
855
  var Q = _(kt, 2);
856
- M(Q, 21, () => H, (e) => e.key, (e, t) => {
857
- var i = Ge(), a = c(i, !0);
858
- x(i);
856
+ j(Q, 21, () => V, (e) => e.key, (e, t) => {
857
+ var i = Ge(), a = g(i, !0);
858
+ k(i);
859
859
  var o = {};
860
- h(() => {
861
- D(a, n.messages[P(t).label]), o !== (o = P(t).key) && (i.value = (i.__value = P(t).key) ?? "");
860
+ p(() => {
861
+ E(a, n.messages[N(t).label]), o !== (o = N(t).key) && (i.value = (i.__value = N(t).key) ?? "");
862
862
  }), r(e, i);
863
- }), x(Q);
863
+ }), k(Q);
864
864
  var jt;
865
- w(Q), x(Z);
865
+ C(Q), k(Z);
866
866
  var Mt = _(Z, 2), Nt = (e) => {
867
- var t = Ke(), a = c(t);
868
- S(a);
867
+ var t = Ke(), a = g(t);
868
+ b(a);
869
869
  var o = _(a);
870
- x(t), h(() => {
871
- A(a, i().chartDataLabels), D(o, ` ${n.messages.chartLabels ?? ""}`);
872
- }), l("change", a, (e) => i().chartDataLabels = e.currentTarget.checked), r(e, t);
870
+ k(t), p(() => {
871
+ A(a, i().chartDataLabels), E(o, ` ${n.messages.chartLabels ?? ""}`);
872
+ }), c("change", a, (e) => i().chartDataLabels = e.currentTarget.checked), r(e, t);
873
873
  };
874
874
  a(Mt, (e) => {
875
- P(ae) && e(Nt);
875
+ N(oe) && e(Nt);
876
876
  });
877
877
  var Pt = _(Mt, 2), $ = (e) => {
878
- var t = K(), a = c(t);
879
- S(a);
878
+ var t = K(), a = g(t);
879
+ b(a);
880
880
  var o = _(a);
881
- x(t), h(() => {
882
- C(t, "title", n.messages.chartLogScaleTitle), A(a, i().chartLogScale), D(o, ` ${n.messages.chartLogScale ?? ""}`);
883
- }), l("change", a, (e) => i().chartLogScale = e.currentTarget.checked), r(e, t);
881
+ k(t), p(() => {
882
+ S(t, "title", n.messages.chartLogScaleTitle), A(a, i().chartLogScale), E(o, ` ${n.messages.chartLogScale ?? ""}`);
883
+ }), c("change", a, (e) => i().chartLogScale = e.currentTarget.checked), r(e, t);
884
884
  };
885
885
  a(Pt, (e) => {
886
- P(ie) && e($);
886
+ N(ae) && e($);
887
887
  });
888
888
  var Ft = _(Pt, 2), It = (e) => {
889
- var t = J(), a = c(t), o = c(a, !0);
890
- x(a);
889
+ var t = J(), a = g(t), o = g(a, !0);
890
+ k(a);
891
891
  var s = _(a, 2);
892
- M(s, 21, () => be, (e) => e.value, (e, t) => {
893
- var i = q(), a = c(i, !0);
894
- x(i);
892
+ j(s, 21, () => xe, (e) => e.value, (e, t) => {
893
+ var i = q(), a = g(i, !0);
894
+ k(i);
895
895
  var o = {};
896
- h(() => {
897
- D(a, n.messages[P(t).label]), o !== (o = P(t).value) && (i.value = (i.__value = P(t).value) ?? "");
896
+ p(() => {
897
+ E(a, n.messages[N(t).label]), o !== (o = N(t).value) && (i.value = (i.__value = N(t).value) ?? "");
898
898
  }), r(e, i);
899
- }), x(s);
900
- var u;
901
- w(s), x(t), h(() => {
902
- C(t, "title", n.messages.chartBucketTitle), D(o, n.messages.chartBucket), u !== (u = i().chartBucket ?? "") && (s.value = (s.__value = i().chartBucket ?? "") ?? "", y(s, i().chartBucket ?? ""));
903
- }), l("change", s, (e) => i().chartBucket = e.currentTarget.value || null), r(e, t);
899
+ }), k(s);
900
+ var l;
901
+ C(s), k(t), p(() => {
902
+ S(t, "title", n.messages.chartBucketTitle), E(o, n.messages.chartBucket), l !== (l = i().chartBucket ?? "") && (s.value = (s.__value = i().chartBucket ?? "") ?? "", v(s, i().chartBucket ?? ""));
903
+ }), c("change", s, (e) => i().chartBucket = e.currentTarget.value || null), r(e, t);
904
904
  };
905
905
  a(Ft, (e) => {
906
- i().chartDimensionIsDate && P(ee) && e(It);
906
+ i().chartDimensionIsDate && N(te) && e(It);
907
907
  });
908
908
  var Lt = _(Ft, 2), Rt = (e) => {
909
- var t = qe(), a = c(t);
910
- S(a);
909
+ var t = qe(), a = g(t);
910
+ b(a);
911
911
  var o = _(a);
912
- x(t), h(() => {
913
- C(t, "title", n.messages.chartDateAxisTitle), A(a, i().chartTimeAxis), D(o, ` ${n.messages.chartDateAxis ?? ""}`);
914
- }), l("change", a, (e) => i().chartTimeAxis = e.currentTarget.checked), r(e, t);
915
- }, zt = j(() => i().chartDimensionIsDate && ve.includes(i().chartType));
912
+ k(t), p(() => {
913
+ S(t, "title", n.messages.chartDateAxisTitle), A(a, i().chartTimeAxis), E(o, ` ${n.messages.chartDateAxis ?? ""}`);
914
+ }), c("change", a, (e) => i().chartTimeAxis = e.currentTarget.checked), r(e, t);
915
+ }, zt = O(() => i().chartDimensionIsDate && ye.includes(i().chartType));
916
916
  a(Lt, (e) => {
917
- P(zt) && e(Rt);
917
+ N(zt) && e(Rt);
918
918
  });
919
919
  var Bt = _(Lt, 2), Vt = (e) => {
920
- var t = Je(), i = c(t, !0);
921
- x(t), h(() => D(i, n.messages.chartPivotHint)), r(e, t);
920
+ var t = Je(), i = g(t, !0);
921
+ k(t), p(() => E(i, n.messages.chartPivotHint)), r(e, t);
922
922
  }, Ht = (e) => {
923
- var t = Ye(), n = c(t, !0);
924
- x(t), h(() => D(n, P(L))), r(e, t);
923
+ var t = Ye(), n = g(t, !0);
924
+ k(t), p(() => E(n, N(I))), r(e, t);
925
925
  };
926
926
  a(Bt, (e) => {
927
- P(u) ? e(Vt) : P(L) && e(Ht, 1);
928
- }), x(R), h(() => {
929
- fe = N(R, 1, "sv-grid-chart-controls", null, fe, { "is-form": o() === "builder" }), C(R, "data-scope", o()), D(ht, n.messages.chartFormat), D(_t, n.messages.chartFormatNumber), D(yt, n.messages.chartFormatCurrency), D(xt, n.messages.chartFormatPercent), St !== (St = i().chartValueFormat) && (X.value = (X.__value = i().chartValueFormat) ?? "", y(X, i().chartValueFormat)), D(At, n.messages.chartColours), jt !== (jt = P(g)) && (Q.value = (Q.__value = P(g)) ?? "", y(Q, P(g)));
930
- }), l("change", X, (e) => i().chartValueFormat = e.currentTarget.value), l("change", Q, (e) => i().chartPalette = H.find((t) => t.key === e.currentTarget.value)?.colors ?? null), r(e, R), k();
927
+ N(l) ? e(Vt) : N(I) && e(Ht, 1);
928
+ }), k(L), p(() => {
929
+ pe = M(L, 1, "sv-grid-chart-controls", null, pe, { "is-form": o() === "builder" }), S(L, "data-scope", o()), E(ht, n.messages.chartFormat), E(_t, n.messages.chartFormatNumber), E(yt, n.messages.chartFormatCurrency), E(xt, n.messages.chartFormatPercent), St !== (St = i().chartValueFormat) && (X.value = (X.__value = i().chartValueFormat) ?? "", v(X, i().chartValueFormat)), E(At, n.messages.chartColours), jt !== (jt = N(y)) && (Q.value = (Q.__value = N(y)) ?? "", v(Q, N(y)));
930
+ }), c("change", X, (e) => i().chartValueFormat = e.currentTarget.value), c("change", Q, (e) => i().chartPalette = V.find((t) => t.key === e.currentTarget.value)?.colors ?? null), r(e, L), ie();
931
931
  }
932
932
  s(["change", "click"]);
933
933
  //#endregion
@@ -1187,58 +1187,58 @@ var Ze = {
1187
1187
  chartBuilderResetFormat: "Reset format"
1188
1188
  };
1189
1189
  function Qe(e) {
1190
- return F(Ze, e);
1190
+ return P(Ze, e);
1191
1191
  }
1192
1192
  function $e(e, t) {
1193
1193
  return e.replace(/\{(\w+)\}/g, (e, n) => n in t ? String(t[n]) : `{${n}}`);
1194
1194
  }
1195
1195
  //#endregion
1196
1196
  //#region ../grid/dist/SvGridChartPanel.svelte
1197
- var et = u("<div role=\"separator\"></div>"), tt = u("<button type=\"button\" class=\"sv-grid-chart-btn\"> </button>"), nt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"20 6 9 17 4 12\"></polyline></svg>"), rt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path><polyline points=\"7 10 12 15 17 10\"></polyline><line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"></line></svg>"), it = u("<div class=\"sv-grid-chart-export-menu\" role=\"menu\"><button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button></div>"), at = u("<button type=\"button\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 2l1.9 4.6L18.5 8.5 13.9 10.4 12 15l-1.9-4.6L5.5 8.5l4.6-1.9L12 2zm6 11l1 2.4 2.4 1-2.4 1L18 21l-1-2.6-2.4-1 2.4-1L18 13zM6 14l.8 2 2 .8-2 .8L6 20l-.8-2.4-2-.8 2-.8L6 14z\"></path></svg> </button>"), ot = u("<li class=\"sv-grid-chart-saved-item\"><button type=\"button\" class=\"sv-grid-chart-saved-apply\"> </button> <button type=\"button\" class=\"sv-grid-chart-saved-x\">&times;</button></li>"), st = u("<ul class=\"sv-grid-chart-saved-list\"></ul>"), ct = u("<p class=\"sv-grid-chart-saved-empty\"> </p>"), lt = u("<div class=\"sv-grid-chart-export-menu sv-grid-chart-saved-menu\" role=\"dialog\"><form class=\"sv-grid-chart-saved-row\"><input class=\"sv-grid-chart-saved-name\" type=\"text\"/> <button type=\"submit\" class=\"sv-grid-chart-btn\"> </button></form> <!></div>"), ut = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M18.84 12.25l1.72-1.71a5 5 0 0 0-7.07-7.07l-1.72 1.71\"></path><path d=\"M5.17 11.75l-1.71 1.71a5 5 0 0 0 7.07 7.07l1.71-1.71\"></path><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"5\"></line><line x1=\"2\" y1=\"8\" x2=\"5\" y2=\"8\"></line><line x1=\"16\" y1=\"19\" x2=\"16\" y2=\"22\"></line><line x1=\"19\" y1=\"16\" x2=\"22\" y2=\"16\"></line></svg>"), dt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"></path><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"></path></svg>"), ft = u("<button type=\"button\" class=\"sv-grid-chart-btn sv-grid-chart-build-btn\" aria-haspopup=\"dialog\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"></rect><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"></rect><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"></rect><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"></rect></svg> </button> <div class=\"sv-grid-chart-export sv-grid-chart-saved\"><button type=\"button\" class=\"sv-grid-chart-icon-btn sv-grid-chart-saved-btn\" aria-haspopup=\"dialog\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z\"></path><polyline points=\"17 21 17 13 7 13 7 21\"></polyline><polyline points=\"7 3 7 8 15 8\"></polyline></svg></button> <!></div> <button type=\"button\"><!></button> <button type=\"button\" class=\"sv-grid-chart-icon-btn\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"></line><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"></line></svg></button>", 1), pt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 3v3a2 2 0 0 1-2 2H3\"></path><path d=\"M21 8h-3a2 2 0 0 1-2-2V3\"></path><path d=\"M3 16h3a2 2 0 0 1 2 2v3\"></path><path d=\"M16 21v-3a2 2 0 0 1 2-2h3\"></path></svg>"), mt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 3H5a2 2 0 0 0-2 2v3\"></path><path d=\"M21 8V5a2 2 0 0 0-2-2h-3\"></path><path d=\"M3 16v3a2 2 0 0 0 2 2h3\"></path><path d=\"M16 21h3a2 2 0 0 0 2-2v-3\"></path></svg>"), ht = u("<button type=\"button\" class=\"sv-grid-chart-icon-btn\"><!></button> <button type=\"button\" class=\"sv-grid-chart-icon-btn\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"></rect><line x1=\"15\" y1=\"3\" x2=\"15\" y2=\"21\"></line></svg></button>", 1), X = u("<button type=\"button\" class=\"sv-grid-chart-icon-btn\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 3h6v6\"></path><path d=\"M10 14 21 3\"></path><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path></svg></button>"), gt = u("<div><button type=\"button\" class=\"sv-grid-chart-tab-label\" role=\"tab\"> </button> <button type=\"button\" class=\"sv-grid-chart-tab-x\">&times;</button></div>"), _t = u("<div class=\"sv-grid-chart-tabs\" role=\"tablist\"></div>"), vt = u("<button type=\"button\" class=\"sv-grid-chart-btn sv-grid-chart-explain-btn\"> </button>"), yt = u("<p class=\"sv-grid-chart-ai-msg is-error\"> </p>"), bt = u("<p class=\"sv-grid-chart-ai-msg\"> </p>"), xt = u("<div class=\"sv-grid-chart-ai\"><form class=\"sv-grid-chart-ai-row\"><input class=\"sv-grid-chart-ai-input\" type=\"text\"/> <button type=\"submit\" class=\"sv-grid-chart-btn\"> </button> <!></form> <!></div>"), St = u("<div class=\"sv-grid-chart-panes-host\"><!></div>"), Ct = u("<p class=\"sv-grid-chart-empty\"><!></p>"), wt = u("<div class=\"sv-grid-chart-float-resizer\" role=\"separator\"></div>"), Tt = u("<section><!> <header class=\"sv-grid-chart-panel-head\"><div><svg class=\"sv-grid-chart-title-icon\" width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"10\"></line><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"4\"></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"16\"></line></svg> <span class=\"sv-grid-chart-title\"> </span> <div class=\"sv-grid-chart-actions\"><!> <div class=\"sv-grid-chart-export\"><button type=\"button\" class=\"sv-grid-chart-icon-btn\"><!></button> <!></div> <!> <!> <!> <button type=\"button\" class=\"sv-grid-chart-close\">&times;</button></div></div> <!> <!> <!></header> <div class=\"sv-grid-chart-panel-body\"><!></div> <!> <!></section>");
1197
+ var et = l("<div role=\"separator\"></div>"), tt = l("<button type=\"button\" class=\"sv-grid-chart-btn\"> </button>"), nt = u("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"20 6 9 17 4 12\"></polyline></svg>"), rt = u("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path><polyline points=\"7 10 12 15 17 10\"></polyline><line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"></line></svg>"), it = l("<div class=\"sv-grid-chart-export-menu\" role=\"menu\"><button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button></div>"), at = l("<button type=\"button\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 2l1.9 4.6L18.5 8.5 13.9 10.4 12 15l-1.9-4.6L5.5 8.5l4.6-1.9L12 2zm6 11l1 2.4 2.4 1-2.4 1L18 21l-1-2.6-2.4-1 2.4-1L18 13zM6 14l.8 2 2 .8-2 .8L6 20l-.8-2.4-2-.8 2-.8L6 14z\"></path></svg> </button>"), ot = l("<li class=\"sv-grid-chart-saved-item\"><button type=\"button\" class=\"sv-grid-chart-saved-apply\"> </button> <button type=\"button\" class=\"sv-grid-chart-saved-x\">&times;</button></li>"), st = l("<ul class=\"sv-grid-chart-saved-list\"></ul>"), ct = l("<p class=\"sv-grid-chart-saved-empty\"> </p>"), lt = l("<div class=\"sv-grid-chart-export-menu sv-grid-chart-saved-menu\" role=\"dialog\"><form class=\"sv-grid-chart-saved-row\"><input class=\"sv-grid-chart-saved-name\" type=\"text\"/> <button type=\"submit\" class=\"sv-grid-chart-btn\"> </button></form> <!></div>"), ut = u("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M18.84 12.25l1.72-1.71a5 5 0 0 0-7.07-7.07l-1.72 1.71\"></path><path d=\"M5.17 11.75l-1.71 1.71a5 5 0 0 0 7.07 7.07l1.71-1.71\"></path><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"5\"></line><line x1=\"2\" y1=\"8\" x2=\"5\" y2=\"8\"></line><line x1=\"16\" y1=\"19\" x2=\"16\" y2=\"22\"></line><line x1=\"19\" y1=\"16\" x2=\"22\" y2=\"16\"></line></svg>"), dt = u("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"></path><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"></path></svg>"), ft = l("<button type=\"button\" class=\"sv-grid-chart-btn sv-grid-chart-build-btn\" aria-haspopup=\"dialog\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"></rect><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"></rect><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"></rect><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"></rect></svg> </button> <div class=\"sv-grid-chart-export sv-grid-chart-saved\"><button type=\"button\" class=\"sv-grid-chart-icon-btn sv-grid-chart-saved-btn\" aria-haspopup=\"dialog\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z\"></path><polyline points=\"17 21 17 13 7 13 7 21\"></polyline><polyline points=\"7 3 7 8 15 8\"></polyline></svg></button> <!></div> <button type=\"button\"><!></button> <button type=\"button\" class=\"sv-grid-chart-icon-btn\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"></line><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"></line></svg></button>", 1), pt = u("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 3v3a2 2 0 0 1-2 2H3\"></path><path d=\"M21 8h-3a2 2 0 0 1-2-2V3\"></path><path d=\"M3 16h3a2 2 0 0 1 2 2v3\"></path><path d=\"M16 21v-3a2 2 0 0 1 2-2h3\"></path></svg>"), mt = u("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 3H5a2 2 0 0 0-2 2v3\"></path><path d=\"M21 8V5a2 2 0 0 0-2-2h-3\"></path><path d=\"M3 16v3a2 2 0 0 0 2 2h3\"></path><path d=\"M16 21h3a2 2 0 0 0 2-2v-3\"></path></svg>"), ht = l("<button type=\"button\" class=\"sv-grid-chart-icon-btn\"><!></button> <button type=\"button\" class=\"sv-grid-chart-icon-btn\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"></rect><line x1=\"15\" y1=\"3\" x2=\"15\" y2=\"21\"></line></svg></button>", 1), X = l("<button type=\"button\" class=\"sv-grid-chart-icon-btn\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 3h6v6\"></path><path d=\"M10 14 21 3\"></path><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path></svg></button>"), gt = l("<div><button type=\"button\" class=\"sv-grid-chart-tab-label\" role=\"tab\"> </button> <button type=\"button\" class=\"sv-grid-chart-tab-x\">&times;</button></div>"), _t = l("<div class=\"sv-grid-chart-tabs\" role=\"tablist\"></div>"), vt = l("<button type=\"button\" class=\"sv-grid-chart-btn sv-grid-chart-explain-btn\"> </button>"), yt = l("<p class=\"sv-grid-chart-ai-msg is-error\"> </p>"), bt = l("<p class=\"sv-grid-chart-ai-msg\"> </p>"), xt = l("<div class=\"sv-grid-chart-ai\"><form class=\"sv-grid-chart-ai-row\"><input class=\"sv-grid-chart-ai-input\" type=\"text\"/> <button type=\"submit\" class=\"sv-grid-chart-btn\"> </button> <!></form> <!></div>"), St = l("<div class=\"sv-grid-chart-panes-host\"><!></div>"), Ct = l("<p class=\"sv-grid-chart-empty\"><!></p>"), wt = l("<div class=\"sv-grid-chart-float-resizer\" role=\"separator\"></div>"), Tt = l("<section><!> <header class=\"sv-grid-chart-panel-head\"><div><svg class=\"sv-grid-chart-title-icon\" width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"10\"></line><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"4\"></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"16\"></line></svg> <span class=\"sv-grid-chart-title\"> </span> <div class=\"sv-grid-chart-actions\"><!> <div class=\"sv-grid-chart-export\"><button type=\"button\" class=\"sv-grid-chart-icon-btn\"><!></button> <!></div> <!> <!> <!> <button type=\"button\" class=\"sv-grid-chart-close\">&times;</button></div></div> <!> <!> <!></header> <div class=\"sv-grid-chart-panel-body\"><!></div> <!> <!></section>");
1198
1198
  function Et(e, t) {
1199
- re(t, !0);
1200
- let s = n(null), u = n(!1);
1201
- function d() {
1202
- if (P(s)) {
1203
- f(u, !0);
1199
+ ee(t, !0);
1200
+ let s = x(null), l = x(!1);
1201
+ function u() {
1202
+ if (N(s)) {
1203
+ n(l, !0);
1204
1204
  return;
1205
1205
  }
1206
- import("./SvGridChartBuilder-COttFU6T.js").then((e) => {
1207
- f(s, e.default, !0), f(u, !0);
1206
+ import("./SvGridChartBuilder-BGWhm8hq.js").then((e) => {
1207
+ n(s, e.default, !0), n(l, !0);
1208
1208
  });
1209
1209
  }
1210
- let y = O(t, "ctrl", 7), w = j(() => Qe(y().localizationText)), T = j(() => y().chartingConfig), E = j(() => y().chartCfg), te = j(() => y().chartFormat?.legend === void 0 || y().chartFormat.legend), A = j(() => y().chartFormat?.dataLabels === void 0 ? y().chartDataLabels : y().chartFormat.dataLabels !== null && { placement: y().chartFormat.dataLabels }), ne = j(() => y().chartFormat?.crosshairLabels !== !1), F = j(() => y().chartIsCustom), I = j(() => P(T)?.position ?? "bottom"), L = j(() => P(T)?.crossFilter !== !1), z = j(() => y().chartSpec), pe = j(() => y().chartableColumns), B = j(() => y().chartSize ?? (P(I) === "right" ? P(T)?.width ?? 340 : P(T)?.height ?? 260)), V = j(() => y().chartFloating), H = j(() => y().chartMaximized), U = j(() => y().chartFloatRect), ge = n(null);
1211
- function _e() {
1212
- let e = P(ge)?.offsetParent;
1210
+ let v = D(t, "ctrl", 7), C = O(() => Qe(v().localizationText)), w = O(() => v().chartingConfig), T = O(() => v().chartCfg), ne = O(() => v().chartFormat?.legend === void 0 || v().chartFormat.legend), A = O(() => v().chartFormat?.dataLabels === void 0 ? v().chartDataLabels : v().chartFormat.dataLabels !== null && { placement: v().chartFormat.dataLabels }), re = O(() => v().chartFormat?.crosshairLabels !== !1), P = O(() => v().chartIsCustom), F = O(() => N(w)?.position ?? "bottom"), I = O(() => N(w)?.crossFilter !== !1), R = O(() => v().chartSpec), me = O(() => v().chartableColumns), z = O(() => v().chartSize ?? (N(F) === "right" ? N(w)?.width ?? 340 : N(w)?.height ?? 260)), B = O(() => v().chartFloating), V = O(() => v().chartMaximized), H = O(() => v().chartFloatRect), _e = x(null);
1211
+ function ve() {
1212
+ let e = N(_e)?.offsetParent;
1213
1213
  return {
1214
1214
  w: e?.clientWidth ?? 800,
1215
1215
  h: e?.clientHeight ?? 520
1216
1216
  };
1217
1217
  }
1218
- function ve() {
1219
- if (!y().chartFloatRect) {
1220
- let { w: e, h: t } = _e(), n = Math.min(600, Math.max(360, e - 80)), r = Math.min(430, Math.max(260, t - 90));
1221
- y().chartFloatRect = {
1218
+ function ye() {
1219
+ if (!v().chartFloatRect) {
1220
+ let { w: e, h: t } = ve(), n = Math.min(600, Math.max(360, e - 80)), r = Math.min(430, Math.max(260, t - 90));
1221
+ v().chartFloatRect = {
1222
1222
  x: Math.round((e - n) / 2),
1223
1223
  y: Math.round((t - r) / 2),
1224
1224
  w: n,
1225
1225
  h: r
1226
1226
  };
1227
1227
  }
1228
- y().chartFloating = !0;
1228
+ v().chartFloating = !0;
1229
1229
  }
1230
- function ye() {
1231
- y().chartFloating = !1, y().chartMaximized = !1;
1230
+ function be() {
1231
+ v().chartFloating = !1, v().chartMaximized = !1;
1232
1232
  }
1233
- let be = () => y().chartMaximized = !y().chartMaximized;
1234
- function xe(e) {
1235
- if (!P(V) || P(H) || e.target?.closest("button")) return;
1236
- let t = y().chartFloatRect;
1233
+ let xe = () => v().chartMaximized = !v().chartMaximized;
1234
+ function Se(e) {
1235
+ if (!N(B) || N(V) || e.target?.closest("button")) return;
1236
+ let t = v().chartFloatRect;
1237
1237
  if (!t) return;
1238
1238
  e.preventDefault();
1239
- let n = e.clientX, r = e.clientY, { w: i, h: a } = _e(), o = (e) => {
1239
+ let n = e.clientX, r = e.clientY, { w: i, h: a } = ve(), o = (e) => {
1240
1240
  let o = Math.max(0, Math.min(i - t.w, t.x + e.clientX - n)), s = Math.max(0, Math.min(a - t.h, t.y + e.clientY - r));
1241
- y().chartFloatRect = {
1241
+ v().chartFloatRect = {
1242
1242
  x: o,
1243
1243
  y: s,
1244
1244
  w: t.w,
@@ -1249,14 +1249,14 @@ function Et(e, t) {
1249
1249
  };
1250
1250
  window.addEventListener("pointermove", o), window.addEventListener("pointerup", s);
1251
1251
  }
1252
- function Se(e) {
1253
- let t = y().chartFloatRect;
1252
+ function Ce(e) {
1253
+ let t = v().chartFloatRect;
1254
1254
  if (!t) return;
1255
1255
  e.preventDefault(), e.stopPropagation();
1256
1256
  let n = e.clientX, r = e.clientY;
1257
1257
  e.target.setPointerCapture?.(e.pointerId);
1258
1258
  let i = (e) => {
1259
- y().chartFloatRect = {
1259
+ v().chartFloatRect = {
1260
1260
  x: t.x,
1261
1261
  y: t.y,
1262
1262
  w: Math.max(300, t.w + e.clientX - n),
@@ -1267,38 +1267,38 @@ function Et(e, t) {
1267
1267
  };
1268
1268
  window.addEventListener("pointermove", i), window.addEventListener("pointerup", a);
1269
1269
  }
1270
- let Ce = j(() => P(V) ? P(H) ? "left:12px; top:12px; right:12px; bottom:12px; width:auto; height:auto;" : P(U) ? `left:${P(U).x}px; top:${P(U).y}px; width:${P(U).w}px; height:${P(U).h}px;` : "" : P(I) === "right" ? `width:${P(B)}px` : `height:${P(B)}px`), we = j(() => he(P(pe), P(w)));
1271
- function Te(e) {
1272
- P(L) && e.category != null && y().applyChartCrossFilter(String(e.category));
1270
+ let we = O(() => N(B) ? N(V) ? "left:12px; top:12px; right:12px; bottom:12px; width:auto; height:auto;" : N(H) ? `left:${N(H).x}px; top:${N(H).y}px; width:${N(H).w}px; height:${N(H).h}px;` : "" : N(F) === "right" ? `width:${N(z)}px` : `height:${N(z)}px`), Te = O(() => ge(N(me), N(C)));
1271
+ function Ee(e) {
1272
+ N(I) && e.category != null && v().applyChartCrossFilter(String(e.category));
1273
1273
  }
1274
- let Ee = n(null), W = n(!1), De = n(!1), Oe = () => P(Ee)?.querySelector("svg") ?? null, ke = j(() => !!P(z) && se(P(z)));
1274
+ let De = x(null), U = x(!1), Oe = x(!1), W = () => N(De)?.querySelector("svg") ?? null, ke = O(() => !!N(R) && ce(N(R)));
1275
1275
  function Ae() {
1276
- let e = Oe();
1277
- e && ce(e, "chart.png"), f(W, !1);
1276
+ let e = W();
1277
+ e && le(e, "chart.png"), n(U, !1);
1278
1278
  }
1279
1279
  function je() {
1280
- let e = Oe();
1281
- e && ue(e, "chart.svg"), f(W, !1);
1280
+ let e = W();
1281
+ e && de(e, "chart.svg"), n(U, !1);
1282
1282
  }
1283
1283
  function Me() {
1284
- P(z) && oe(P(z), "chart.csv"), f(W, !1);
1284
+ N(R) && se(N(R), "chart.csv"), n(U, !1);
1285
1285
  }
1286
1286
  async function Ne() {
1287
- let e = Oe();
1288
- f(W, !1), e && await (await import("./chart-export-pdf-C_iQ0kET.js")).downloadChartPdf(e, "chart.pdf", { title: P(z)?.title ?? y().charts[y().activeChartIndex]?.title });
1287
+ let e = W();
1288
+ n(U, !1), e && await (await import("./chart-export-pdf-BSDueOD-.js")).downloadChartPdf(e, "chart.pdf", { title: N(R)?.title ?? v().charts[v().activeChartIndex]?.title });
1289
1289
  }
1290
1290
  async function Pe() {
1291
- let e = Oe();
1292
- f(W, !1), e && (await import("./chart-export-pdf-C_iQ0kET.js")).printChart(e, { title: P(z)?.title ?? y().charts[y().activeChartIndex]?.title });
1291
+ let e = W();
1292
+ n(U, !1), e && (await import("./chart-export-pdf-BSDueOD-.js")).printChart(e, { title: N(R)?.title ?? v().charts[v().activeChartIndex]?.title });
1293
1293
  }
1294
1294
  async function Fe() {
1295
- let e = Oe();
1296
- if (f(W, !1), !(!e || typeof ClipboardItem > "u" || !navigator.clipboard?.write)) try {
1297
- let t = await le(e);
1298
- await navigator.clipboard.write([new ClipboardItem({ "image/png": t })]), f(De, !0), setTimeout(() => f(De, !1), 1400);
1295
+ let e = W();
1296
+ if (n(U, !1), !(!e || typeof ClipboardItem > "u" || !navigator.clipboard?.write)) try {
1297
+ let t = await ue(e);
1298
+ await navigator.clipboard.write([new ClipboardItem({ "image/png": t })]), n(Oe, !0), setTimeout(() => n(Oe, !1), 1400);
1299
1299
  } catch {}
1300
1300
  }
1301
- let Ie = n(null), Le = n(null);
1301
+ let Ie = x(null), Le = x(null);
1302
1302
  function Re(e, t, n) {
1303
1303
  let r = (n) => {
1304
1304
  n.target?.closest(e) || t();
@@ -1309,92 +1309,92 @@ function Et(e, t) {
1309
1309
  window.removeEventListener("pointerdown", r), window.removeEventListener("keydown", i, !0);
1310
1310
  };
1311
1311
  }
1312
- g(() => {
1313
- if (P(W)) return Re(".sv-grid-chart-export", () => f(W, !1), () => P(Ie));
1312
+ m(() => {
1313
+ if (N(U)) return Re(".sv-grid-chart-export", () => n(U, !1), () => N(Ie));
1314
1314
  });
1315
- let G = n(!1), ze = n("");
1315
+ let G = x(!1), ze = x("");
1316
1316
  function Be() {
1317
- let e = P(ze).trim();
1318
- e && (y().saveChart(e), f(ze, ""));
1317
+ let e = N(ze).trim();
1318
+ e && (v().saveChart(e), n(ze, ""));
1319
1319
  }
1320
- g(() => {
1321
- if (P(G)) return Re(".sv-grid-chart-saved", () => f(G, !1), () => P(Le));
1320
+ m(() => {
1321
+ if (N(G)) return Re(".sv-grid-chart-saved", () => n(G, !1), () => N(Le));
1322
1322
  });
1323
1323
  async function Ve() {
1324
- if (f(W, !1), !P(z)) return;
1325
- let { chartSummary: e } = await import("./chart-summary-zpeh1XVx.js"), t = e(P(z));
1324
+ if (n(U, !1), !N(R)) return;
1325
+ let { chartSummary: e } = await import("./chart-summary-zpeh1XVx.js"), t = e(N(R));
1326
1326
  try {
1327
1327
  await navigator.clipboard?.writeText(t);
1328
1328
  } catch {}
1329
- f(J, t, !0);
1329
+ n(J, t, !0);
1330
1330
  }
1331
- let He = j(() => !!y().chartAiHandler), Ue = j(() => !!y().chartExplainHandler);
1331
+ let He = O(() => !!v().chartAiHandler), Ue = O(() => !!v().chartExplainHandler);
1332
1332
  async function We() {
1333
- let e = y().chartExplainHandler;
1334
- if (!(!e || P(K))) {
1335
- f(K, !0), f(q, ""), f(J, "");
1333
+ let e = v().chartExplainHandler;
1334
+ if (!(!e || N(K))) {
1335
+ n(K, !0), n(q, ""), n(J, "");
1336
1336
  try {
1337
1337
  let t = await e();
1338
- f(J, t ? [t.summary, ...t.insights].filter(Boolean).join(" ") : "", !0), t || f(q, P(w).chartAiNoExplanation, !0);
1338
+ n(J, t ? [t.summary, ...t.insights].filter(Boolean).join(" ") : "", !0), t || n(q, N(C).chartAiNoExplanation, !0);
1339
1339
  } catch (e) {
1340
- f(q, e instanceof Error ? e.message : P(w).chartAiFailed, !0);
1340
+ n(q, e instanceof Error ? e.message : N(C).chartAiFailed, !0);
1341
1341
  } finally {
1342
- f(K, !1);
1342
+ n(K, !1);
1343
1343
  }
1344
1344
  }
1345
1345
  }
1346
- let Ge = n(!1), Ke = n(""), K = n(!1), q = n(""), J = n("");
1346
+ let Ge = x(!1), Ke = x(""), K = x(!1), q = x(""), J = x("");
1347
1347
  async function qe() {
1348
- let e = y().chartAiHandler, t = P(Ke).trim();
1349
- if (!(!e || !t || P(K))) {
1350
- f(K, !0), f(q, ""), f(J, "");
1348
+ let e = v().chartAiHandler, t = N(Ke).trim();
1349
+ if (!(!e || !t || N(K))) {
1350
+ n(K, !0), n(q, ""), n(J, "");
1351
1351
  try {
1352
- let n = await e(t);
1353
- n ? (y().applyChartConfig(n), f(J, typeof n.rationale == "string" ? n.rationale : "", !0)) : f(q, P(w).chartAiNoChart, !0);
1352
+ let r = await e(t);
1353
+ r ? (v().applyChartConfig(r), n(J, typeof r.rationale == "string" ? r.rationale : "", !0)) : n(q, N(C).chartAiNoChart, !0);
1354
1354
  } catch (e) {
1355
- f(q, e instanceof Error ? e.message : P(w).chartAiFailed, !0);
1355
+ n(q, e instanceof Error ? e.message : N(C).chartAiFailed, !0);
1356
1356
  } finally {
1357
- f(K, !1);
1357
+ n(K, !1);
1358
1358
  }
1359
1359
  }
1360
1360
  }
1361
- let Je = n(!1);
1361
+ let Je = x(!1);
1362
1362
  function Ye(e) {
1363
- e.preventDefault(), f(Je, !0);
1364
- let t = P(I) === "right" ? e.clientX : e.clientY, n = P(B);
1363
+ e.preventDefault(), n(Je, !0);
1364
+ let t = N(F) === "right" ? e.clientX : e.clientY, r = N(z);
1365
1365
  e.target.setPointerCapture?.(e.pointerId);
1366
- let r = (e) => {
1367
- let r = P(I) === "right" ? t - e.clientX : t - e.clientY;
1368
- y().chartSize = Math.max(160, Math.min(720, n + r));
1369
- }, i = () => {
1370
- f(Je, !1), window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", i);
1366
+ let i = (e) => {
1367
+ let n = N(F) === "right" ? t - e.clientX : t - e.clientY;
1368
+ v().chartSize = Math.max(160, Math.min(720, r + n));
1369
+ }, a = () => {
1370
+ n(Je, !1), window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", a);
1371
1371
  };
1372
- window.addEventListener("pointermove", r), window.addEventListener("pointerup", i);
1372
+ window.addEventListener("pointermove", i), window.addEventListener("pointerup", a);
1373
1373
  }
1374
1374
  var Y = Tt();
1375
1375
  let Ze;
1376
- var Et = c(Y), Dt = (e) => {
1376
+ var Et = g(Y), Dt = (e) => {
1377
1377
  var t = et();
1378
1378
  let n;
1379
- h(() => {
1380
- n = N(t, 1, "sv-grid-chart-resizer", null, n, { "is-dragging": P(Je) }), C(t, "aria-orientation", P(I) === "right" ? "vertical" : "horizontal"), C(t, "aria-label", P(w).chartResize);
1381
- }), l("pointerdown", t, Ye), r(e, t);
1379
+ p(() => {
1380
+ n = M(t, 1, "sv-grid-chart-resizer", null, n, { "is-dragging": N(Je) }), S(t, "aria-orientation", N(F) === "right" ? "vertical" : "horizontal"), S(t, "aria-label", N(C).chartResize);
1381
+ }), c("pointerdown", t, Ye), r(e, t);
1382
1382
  };
1383
1383
  a(Et, (e) => {
1384
- P(V) || e(Dt);
1384
+ N(B) || e(Dt);
1385
1385
  });
1386
- var Ot = _(Et, 2), Z = c(Ot);
1386
+ var Ot = _(Et, 2), Z = g(Ot);
1387
1387
  let kt;
1388
- var At = _(c(Z), 2), Q = c(At, !0);
1389
- x(At);
1390
- var jt = _(At, 2), Mt = c(jt), Nt = (e) => {
1391
- var t = tt(), n = c(t, !0);
1392
- x(t), h(() => D(n, P(w).chartClearFilter)), l("click", t, () => y().clearChartCrossFilter()), r(e, t);
1388
+ var At = _(g(Z), 2), Q = g(At, !0);
1389
+ k(At);
1390
+ var jt = _(At, 2), Mt = g(jt), Nt = (e) => {
1391
+ var t = tt(), n = g(t, !0);
1392
+ k(t), p(() => E(n, N(C).chartClearFilter)), c("click", t, () => v().clearChartCrossFilter()), r(e, t);
1393
1393
  };
1394
1394
  a(Mt, (e) => {
1395
- P(L) && !P(F) && e(Nt);
1395
+ N(I) && !N(P) && e(Nt);
1396
1396
  });
1397
- var Pt = _(Mt, 2), $ = c(Pt), Ft = c($), It = (e) => {
1397
+ var Pt = _(Mt, 2), $ = g(Pt), Ft = g($), It = (e) => {
1398
1398
  var t = nt();
1399
1399
  r(e, t);
1400
1400
  }, Lt = (e) => {
@@ -1402,99 +1402,99 @@ function Et(e, t) {
1402
1402
  r(e, t);
1403
1403
  };
1404
1404
  a(Ft, (e) => {
1405
- P(De) ? e(It) : e(Lt, -1);
1406
- }), x($), b($, (e) => f(Ie, e), () => P(Ie));
1405
+ N(Oe) ? e(It) : e(Lt, -1);
1406
+ }), k($), y($, (e) => n(Ie, e), () => N(Ie));
1407
1407
  var Rt = _($, 2), zt = (e) => {
1408
- var t = it(), n = c(t), i = c(n, !0);
1409
- x(n);
1410
- var a = _(n, 2), o = c(a, !0);
1411
- x(a);
1412
- var s = _(a, 2), u = c(s, !0);
1413
- x(s);
1414
- var d = _(s, 2), f = c(d, !0);
1415
- x(d);
1416
- var p = _(d, 2), m = c(p, !0);
1417
- x(p);
1418
- var g = _(p, 2), v = c(g, !0);
1419
- x(g);
1420
- var y = _(g, 2), b = c(y, !0);
1421
- x(y), x(t), h(() => {
1422
- D(i, P(w).chartExportPng), D(o, P(w).chartExportSvg), D(u, P(w).chartExportPdf), d.disabled = !P(ke), D(f, P(w).chartExportCsv), D(m, P(w).chartExportCopy), D(v, P(w).chartExportPrint), D(b, P(w).chartExportDescribe);
1423
- }), l("click", n, Ae), l("click", a, je), l("click", s, Ne), l("click", d, Me), l("click", p, Fe), l("click", g, Pe), l("click", y, Ve), r(e, t);
1408
+ var t = it(), n = g(t), i = g(n, !0);
1409
+ k(n);
1410
+ var a = _(n, 2), o = g(a, !0);
1411
+ k(a);
1412
+ var s = _(a, 2), l = g(s, !0);
1413
+ k(s);
1414
+ var u = _(s, 2), d = g(u, !0);
1415
+ k(u);
1416
+ var f = _(u, 2), m = g(f, !0);
1417
+ k(f);
1418
+ var h = _(f, 2), v = g(h, !0);
1419
+ k(h);
1420
+ var y = _(h, 2), b = g(y, !0);
1421
+ k(y), k(t), p(() => {
1422
+ E(i, N(C).chartExportPng), E(o, N(C).chartExportSvg), E(l, N(C).chartExportPdf), u.disabled = !N(ke), E(d, N(C).chartExportCsv), E(m, N(C).chartExportCopy), E(v, N(C).chartExportPrint), E(b, N(C).chartExportDescribe);
1423
+ }), c("click", n, Ae), c("click", a, je), c("click", s, Ne), c("click", u, Me), c("click", f, Fe), c("click", h, Pe), c("click", y, Ve), r(e, t);
1424
1424
  };
1425
1425
  a(Rt, (e) => {
1426
- P(W) && e(zt);
1427
- }), x(Pt);
1426
+ N(U) && e(zt);
1427
+ }), k(Pt);
1428
1428
  var Bt = _(Pt, 2), Vt = (e) => {
1429
1429
  var t = at();
1430
- let n;
1431
- var i = _(c(t));
1432
- x(t), h(() => {
1433
- n = N(t, 1, "sv-grid-chart-btn sv-grid-chart-ai-btn", null, n, { "is-active": P(Ge) }), C(t, "aria-label", P(w).chartAiLabel), C(t, "title", P(w).chartAiLabel), C(t, "aria-expanded", P(Ge)), D(i, ` ${P(w).chartAi ?? ""}`);
1434
- }), l("click", t, () => f(Ge, !P(Ge))), r(e, t);
1430
+ let i;
1431
+ var a = _(g(t));
1432
+ k(t), p(() => {
1433
+ i = M(t, 1, "sv-grid-chart-btn sv-grid-chart-ai-btn", null, i, { "is-active": N(Ge) }), S(t, "aria-label", N(C).chartAiLabel), S(t, "title", N(C).chartAiLabel), S(t, "aria-expanded", N(Ge)), E(a, ` ${N(C).chartAi ?? ""}`);
1434
+ }), c("click", t, () => n(Ge, !N(Ge))), r(e, t);
1435
1435
  };
1436
1436
  a(Bt, (e) => {
1437
- P(He) && !P(F) && e(Vt);
1437
+ N(He) && !N(P) && e(Vt);
1438
1438
  });
1439
1439
  var Ht = _(Bt, 2), Ut = (e) => {
1440
- var t = ft(), n = v(t), i = _(c(n));
1441
- x(n);
1442
- var o = _(n, 2), s = c(o);
1443
- b(s, (e) => f(Le, e), () => P(Le));
1444
- var u = _(s, 2), m = (e) => {
1445
- var t = lt(), n = c(t), i = c(n);
1446
- S(i);
1447
- var o = _(i, 2), s = c(o, !0);
1448
- x(o), x(n);
1449
- var u = _(n, 2), d = (e) => {
1440
+ var t = ft(), i = h(t), o = _(g(i));
1441
+ k(i);
1442
+ var s = _(i, 2), l = g(s);
1443
+ y(l, (e) => n(Le, e), () => N(Le));
1444
+ var f = _(l, 2), m = (e) => {
1445
+ var t = lt(), i = g(t), o = g(i);
1446
+ b(o);
1447
+ var s = _(o, 2), l = g(s, !0);
1448
+ k(s), k(i);
1449
+ var u = _(i, 2), f = (e) => {
1450
1450
  var t = st();
1451
- M(t, 21, () => y().savedCharts, (e) => e.name, (e, t) => {
1452
- var n = ot(), i = c(n), a = c(i, !0);
1453
- x(i);
1454
- var o = _(i, 2);
1455
- x(n), h(() => {
1456
- C(i, "title", P(w).chartSaveApply), D(a, P(t).name), C(o, "aria-label", `${P(w).chartSaveRemove}: ${P(t).name}`), C(o, "title", P(w).chartSaveRemove);
1457
- }), l("click", i, () => {
1458
- y().applySavedChart(P(t).name), f(G, !1);
1459
- }), l("click", o, () => y().removeSavedChart(P(t).name)), r(e, n);
1460
- }), x(t), r(e, t);
1451
+ j(t, 21, () => v().savedCharts, (e) => e.name, (e, t) => {
1452
+ var i = ot(), a = g(i), o = g(a, !0);
1453
+ k(a);
1454
+ var s = _(a, 2);
1455
+ k(i), p(() => {
1456
+ S(a, "title", N(C).chartSaveApply), E(o, N(t).name), S(s, "aria-label", `${N(C).chartSaveRemove}: ${N(t).name}`), S(s, "title", N(C).chartSaveRemove);
1457
+ }), c("click", a, () => {
1458
+ v().applySavedChart(N(t).name), n(G, !1);
1459
+ }), c("click", s, () => v().removeSavedChart(N(t).name)), r(e, i);
1460
+ }), k(t), r(e, t);
1461
1461
  }, m = (e) => {
1462
- var t = ct(), n = c(t, !0);
1463
- x(t), h(() => D(n, P(w).chartSavedEmpty)), r(e, t);
1462
+ var t = ct(), n = g(t, !0);
1463
+ k(t), p(() => E(n, N(C).chartSavedEmpty)), r(e, t);
1464
1464
  };
1465
1465
  a(u, (e) => {
1466
- y().savedCharts.length ? e(d) : e(m, -1);
1467
- }), x(t), h((e) => {
1468
- C(t, "aria-label", P(w).chartSavedTitle), C(i, "aria-label", P(w).chartSaveName), C(i, "placeholder", P(w).chartSaveNamePlaceholder), o.disabled = e, D(s, P(w).chartSave);
1469
- }, [() => !P(ze).trim()]), p("submit", n, (e) => {
1466
+ v().savedCharts.length ? e(f) : e(m, -1);
1467
+ }), k(t), p((e) => {
1468
+ S(t, "aria-label", N(C).chartSavedTitle), S(o, "aria-label", N(C).chartSaveName), S(o, "placeholder", N(C).chartSaveNamePlaceholder), s.disabled = e, E(l, N(C).chartSave);
1469
+ }, [() => !N(ze).trim()]), d("submit", i, (e) => {
1470
1470
  e.preventDefault(), Be();
1471
- }), ie(i, () => P(ze), (e) => f(ze, e)), r(e, t);
1471
+ }), ae(o, () => N(ze), (e) => n(ze, e)), r(e, t);
1472
1472
  };
1473
- a(u, (e) => {
1474
- P(G) && e(m);
1475
- }), x(o);
1476
- var g = _(o, 2);
1477
- let T;
1478
- var E = c(g), ee = (e) => {
1473
+ a(f, (e) => {
1474
+ N(G) && e(m);
1475
+ }), k(s);
1476
+ var x = _(s, 2);
1477
+ let w;
1478
+ var T = g(x), ee = (e) => {
1479
1479
  var t = ut();
1480
1480
  r(e, t);
1481
- }, O = (e) => {
1481
+ }, te = (e) => {
1482
1482
  var t = dt();
1483
1483
  r(e, t);
1484
1484
  };
1485
- a(E, (e) => {
1486
- y().chartFrozen ? e(ee) : e(O, -1);
1487
- }), x(g);
1488
- var k = _(g, 2);
1489
- h(() => {
1490
- C(n, "aria-label", P(w).chartBuildLabel), C(n, "title", P(w).chartBuildTitle), D(i, ` ${P(w).chartBuild ?? ""}`), C(s, "aria-label", P(w).chartSaveLabel), C(s, "title", P(w).chartSavedTitle), C(s, "aria-expanded", P(G)), T = N(g, 1, "sv-grid-chart-icon-btn sv-grid-chart-link-btn", null, T, { "is-unlinked": !!y().chartFrozen }), C(g, "aria-label", y().chartFrozen ? P(w).chartLinkBack : P(w).chartUnlink), C(g, "aria-pressed", !!y().chartFrozen), C(g, "title", y().chartFrozen ? P(w).chartUnlinkedTitle : P(w).chartLinkedTitle), C(k, "aria-label", P(w).chartAdd), C(k, "title", P(w).chartAdd);
1491
- }), l("click", n, d), l("click", s, () => f(G, !P(G))), l("click", g, () => y().chartFrozen ? y().unfreezeChart() : y().freezeChart()), l("click", k, () => y().addChart()), r(e, t);
1485
+ a(T, (e) => {
1486
+ v().chartFrozen ? e(ee) : e(te, -1);
1487
+ }), k(x);
1488
+ var D = _(x, 2);
1489
+ p(() => {
1490
+ S(i, "aria-label", N(C).chartBuildLabel), S(i, "title", N(C).chartBuildTitle), E(o, ` ${N(C).chartBuild ?? ""}`), S(l, "aria-label", N(C).chartSaveLabel), S(l, "title", N(C).chartSavedTitle), S(l, "aria-expanded", N(G)), w = M(x, 1, "sv-grid-chart-icon-btn sv-grid-chart-link-btn", null, w, { "is-unlinked": !!v().chartFrozen }), S(x, "aria-label", v().chartFrozen ? N(C).chartLinkBack : N(C).chartUnlink), S(x, "aria-pressed", !!v().chartFrozen), S(x, "title", v().chartFrozen ? N(C).chartUnlinkedTitle : N(C).chartLinkedTitle), S(D, "aria-label", N(C).chartAdd), S(D, "title", N(C).chartAdd);
1491
+ }), c("click", i, u), c("click", l, () => n(G, !N(G))), c("click", x, () => v().chartFrozen ? v().unfreezeChart() : v().freezeChart()), c("click", D, () => v().addChart()), r(e, t);
1492
1492
  };
1493
1493
  a(Ht, (e) => {
1494
- P(F) || e(Ut);
1494
+ N(P) || e(Ut);
1495
1495
  });
1496
1496
  var Wt = _(Ht, 2), Gt = (e) => {
1497
- var t = ht(), n = v(t), i = c(n), o = (e) => {
1497
+ var t = ht(), n = h(t), i = g(n), o = (e) => {
1498
1498
  var t = pt();
1499
1499
  r(e, t);
1500
1500
  }, s = (e) => {
@@ -1502,241 +1502,241 @@ function Et(e, t) {
1502
1502
  r(e, t);
1503
1503
  };
1504
1504
  a(i, (e) => {
1505
- P(H) ? e(o) : e(s, -1);
1506
- }), x(n);
1507
- var u = _(n, 2);
1508
- h(() => {
1509
- C(n, "aria-label", P(H) ? P(w).chartRestore : P(w).chartMaximize), C(n, "title", P(H) ? P(w).chartRestore : P(w).chartMaximize), C(u, "aria-label", P(w).chartDockLabel), C(u, "title", P(w).chartDock);
1510
- }), l("click", n, be), l("click", u, ye), r(e, t);
1505
+ N(V) ? e(o) : e(s, -1);
1506
+ }), k(n);
1507
+ var l = _(n, 2);
1508
+ p(() => {
1509
+ S(n, "aria-label", N(V) ? N(C).chartRestore : N(C).chartMaximize), S(n, "title", N(V) ? N(C).chartRestore : N(C).chartMaximize), S(l, "aria-label", N(C).chartDockLabel), S(l, "title", N(C).chartDock);
1510
+ }), c("click", n, xe), c("click", l, be), r(e, t);
1511
1511
  }, Kt = (e) => {
1512
1512
  var t = X();
1513
- h(() => {
1514
- C(t, "aria-label", P(w).chartPopOutLabel), C(t, "title", P(w).chartPopOut);
1515
- }), l("click", t, ve), r(e, t);
1513
+ p(() => {
1514
+ S(t, "aria-label", N(C).chartPopOutLabel), S(t, "title", N(C).chartPopOut);
1515
+ }), c("click", t, ye), r(e, t);
1516
1516
  };
1517
1517
  a(Wt, (e) => {
1518
- P(V) ? e(Gt) : e(Kt, -1);
1518
+ N(B) ? e(Gt) : e(Kt, -1);
1519
1519
  });
1520
1520
  var qt = _(Wt, 2);
1521
- x(jt), x(Z);
1521
+ k(jt), k(Z);
1522
1522
  var Jt = _(Z, 2), Yt = (e) => {
1523
1523
  var t = _t();
1524
- M(t, 23, () => y().charts, (e) => e.id, (e, t, n) => {
1524
+ j(t, 23, () => v().charts, (e) => e.id, (e, t, n) => {
1525
1525
  var i = gt();
1526
1526
  let a;
1527
- var o = c(i), s = c(o, !0);
1528
- x(o);
1529
- var u = _(o, 2);
1530
- x(i), h((e) => {
1531
- a = N(i, 1, "sv-grid-chart-tab", null, a, { "is-active": P(n) === y().activeChartIndex }), C(o, "aria-selected", P(n) === y().activeChartIndex), D(s, P(t).title), C(u, "aria-label", e), C(u, "title", P(w).chartRemove);
1532
- }, [() => $e(P(w).chartRemoveTab, { title: P(t).title })]), l("click", o, () => y().activeChartIndex = P(n)), l("click", u, () => y().removeChart(P(n))), r(e, i);
1533
- }), x(t), h(() => C(t, "aria-label", P(w).chartTabs)), r(e, t);
1527
+ var o = g(i), s = g(o, !0);
1528
+ k(o);
1529
+ var l = _(o, 2);
1530
+ k(i), p((e) => {
1531
+ a = M(i, 1, "sv-grid-chart-tab", null, a, { "is-active": N(n) === v().activeChartIndex }), S(o, "aria-selected", N(n) === v().activeChartIndex), E(s, N(t).title), S(l, "aria-label", e), S(l, "title", N(C).chartRemove);
1532
+ }, [() => $e(N(C).chartRemoveTab, { title: N(t).title })]), c("click", o, () => v().activeChartIndex = N(n)), c("click", l, () => v().removeChart(N(n))), r(e, i);
1533
+ }), k(t), p(() => S(t, "aria-label", N(C).chartTabs)), r(e, t);
1534
1534
  };
1535
1535
  a(Jt, (e) => {
1536
- !P(F) && y().charts.length > 1 && e(Yt);
1536
+ !N(P) && v().charts.length > 1 && e(Yt);
1537
1537
  });
1538
1538
  var Xt = _(Jt, 2), Zt = (e) => {
1539
- var t = xt(), n = c(t), i = c(n);
1540
- S(i);
1541
- var o = _(i, 2), s = c(o, !0);
1542
- x(o);
1543
- var u = _(o, 2), d = (e) => {
1544
- var t = vt(), n = c(t, !0);
1545
- x(t), h(() => {
1546
- t.disabled = P(K) || !P(z), C(t, "title", P(w).chartAiExplainTitle), D(n, P(w).chartAiExplain);
1547
- }), l("click", t, We), r(e, t);
1539
+ var t = xt(), i = g(t), o = g(i);
1540
+ b(o);
1541
+ var s = _(o, 2), l = g(s, !0);
1542
+ k(s);
1543
+ var u = _(s, 2), f = (e) => {
1544
+ var t = vt(), n = g(t, !0);
1545
+ k(t), p(() => {
1546
+ t.disabled = N(K) || !N(R), S(t, "title", N(C).chartAiExplainTitle), E(n, N(C).chartAiExplain);
1547
+ }), c("click", t, We), r(e, t);
1548
1548
  };
1549
1549
  a(u, (e) => {
1550
- P(Ue) && e(d);
1551
- }), x(n);
1552
- var m = _(n, 2), g = (e) => {
1553
- var t = yt(), n = c(t, !0);
1554
- x(t), h(() => D(n, P(q))), r(e, t);
1550
+ N(Ue) && e(f);
1551
+ }), k(i);
1552
+ var m = _(i, 2), h = (e) => {
1553
+ var t = yt(), n = g(t, !0);
1554
+ k(t), p(() => E(n, N(q))), r(e, t);
1555
1555
  }, v = (e) => {
1556
- var t = bt(), n = c(t, !0);
1557
- x(t), h(() => D(n, P(J))), r(e, t);
1556
+ var t = bt(), n = g(t, !0);
1557
+ k(t), p(() => E(n, N(J))), r(e, t);
1558
1558
  };
1559
1559
  a(m, (e) => {
1560
- P(q) ? e(g) : P(J) && e(v, 1);
1561
- }), x(t), h((e) => {
1562
- C(i, "placeholder", P(w).chartAiPlaceholder), i.disabled = P(K), o.disabled = e, D(s, P(K) ? P(w).chartAiThinking : P(w).chartAiRun);
1563
- }, [() => P(K) || !P(Ke).trim()]), p("submit", n, (e) => {
1560
+ N(q) ? e(h) : N(J) && e(v, 1);
1561
+ }), k(t), p((e) => {
1562
+ S(o, "placeholder", N(C).chartAiPlaceholder), o.disabled = N(K), s.disabled = e, E(l, N(K) ? N(C).chartAiThinking : N(C).chartAiRun);
1563
+ }, [() => N(K) || !N(Ke).trim()]), d("submit", i, (e) => {
1564
1564
  e.preventDefault(), qe();
1565
- }), ie(i, () => P(Ke), (e) => f(Ke, e)), r(e, t);
1565
+ }), ae(o, () => N(Ke), (e) => n(Ke, e)), r(e, t);
1566
1566
  };
1567
1567
  a(Xt, (e) => {
1568
- P(He) && P(Ge) && !P(F) && e(Zt);
1568
+ N(He) && N(Ge) && !N(P) && e(Zt);
1569
1569
  });
1570
1570
  var Qt = _(Xt, 2), $t = (e) => {
1571
1571
  Xe(e, {
1572
1572
  get ctrl() {
1573
- return y();
1573
+ return v();
1574
1574
  },
1575
1575
  get messages() {
1576
- return P(w);
1576
+ return N(C);
1577
1577
  }
1578
1578
  });
1579
1579
  };
1580
1580
  a(Qt, (e) => {
1581
- P(F) || e($t);
1582
- }), x(Ot);
1583
- var en = _(Ot, 2), tn = c(en), nn = (e) => {
1584
- var t = St(), n = c(t);
1581
+ N(P) || e($t);
1582
+ }), k(Ot);
1583
+ var en = _(Ot, 2), tn = g(en), nn = (e) => {
1584
+ var t = St(), n = g(t);
1585
1585
  {
1586
- let e = j(() => P(E)?.zoom ?? !1), t = j(() => P(E)?.rangePresets), r = j(() => P(E)?.syncGroup), i = j(() => P(E)?.contextMenu), a = j(() => P(E)?.animate), o = j(() => P(E)?.localeText), s = j(() => P(E)?.export === !0 || void 0);
1587
- me(n, {
1586
+ let e = O(() => N(T)?.zoom ?? !1), t = O(() => N(T)?.rangePresets), r = O(() => N(T)?.syncGroup), i = O(() => N(T)?.contextMenu), a = O(() => N(T)?.animate), o = O(() => N(T)?.localeText), s = O(() => N(T)?.export === !0 || void 0);
1587
+ he(n, {
1588
1588
  get spec() {
1589
- return P(z);
1589
+ return N(R);
1590
1590
  },
1591
1591
  get indicators() {
1592
- return y().chartIndicatorPanes;
1592
+ return v().chartIndicatorPanes;
1593
1593
  },
1594
- onSelect: Te,
1594
+ onSelect: Ee,
1595
1595
  interactive: !0,
1596
1596
  legend: !1,
1597
1597
  get zoomable() {
1598
- return P(e);
1598
+ return N(e);
1599
1599
  },
1600
1600
  get rangePresets() {
1601
- return P(t);
1601
+ return N(t);
1602
1602
  },
1603
1603
  get syncGroup() {
1604
- return P(r);
1604
+ return N(r);
1605
1605
  },
1606
1606
  get contextMenu() {
1607
- return P(i);
1607
+ return N(i);
1608
1608
  },
1609
1609
  get animate() {
1610
- return P(a);
1610
+ return N(a);
1611
1611
  },
1612
1612
  get localeText() {
1613
- return P(o);
1613
+ return N(o);
1614
1614
  },
1615
1615
  get crosshairLabels() {
1616
- return P(ne);
1616
+ return N(re);
1617
1617
  },
1618
1618
  get toolbar() {
1619
- return P(s);
1619
+ return N(s);
1620
1620
  },
1621
1621
  get zoom() {
1622
- return y().chartZoom;
1622
+ return v().chartZoom;
1623
1623
  },
1624
1624
  set zoom(e) {
1625
- y().chartZoom = e;
1625
+ v().chartZoom = e;
1626
1626
  }
1627
1627
  });
1628
1628
  }
1629
- x(t), r(e, t);
1629
+ k(t), r(e, t);
1630
1630
  }, rn = (e) => {
1631
1631
  {
1632
- let t = j(() => P(E)?.zoom ?? !1), n = j(() => P(E)?.brush === !0), r = j(() => P(E)?.rangePresets), i = j(() => P(E)?.syncGroup), a = j(() => P(E)?.contextMenu), o = j(() => P(E)?.animate), s = j(() => P(E)?.localeText), c = j(() => P(E)?.export === !0 || void 0);
1633
- de(e, {
1632
+ let t = O(() => N(T)?.zoom ?? !1), n = O(() => N(T)?.brush === !0), r = O(() => N(T)?.rangePresets), i = O(() => N(T)?.syncGroup), a = O(() => N(T)?.contextMenu), o = O(() => N(T)?.animate), s = O(() => N(T)?.localeText), c = O(() => N(T)?.export === !0 || void 0);
1633
+ fe(e, {
1634
1634
  get spec() {
1635
- return P(z);
1635
+ return N(R);
1636
1636
  },
1637
1637
  autosize: !0,
1638
- onSelect: Te,
1638
+ onSelect: Ee,
1639
1639
  interactive: !0,
1640
1640
  get legend() {
1641
- return P(te);
1641
+ return N(ne);
1642
1642
  },
1643
1643
  get dataLabels() {
1644
- return P(A);
1644
+ return N(A);
1645
1645
  },
1646
1646
  get zoomable() {
1647
- return P(t);
1647
+ return N(t);
1648
1648
  },
1649
1649
  get brush() {
1650
- return P(n);
1650
+ return N(n);
1651
1651
  },
1652
1652
  get rangePresets() {
1653
- return P(r);
1653
+ return N(r);
1654
1654
  },
1655
1655
  get syncGroup() {
1656
- return P(i);
1656
+ return N(i);
1657
1657
  },
1658
1658
  get contextMenu() {
1659
- return P(a);
1659
+ return N(a);
1660
1660
  },
1661
1661
  get animate() {
1662
- return P(o);
1662
+ return N(o);
1663
1663
  },
1664
1664
  get localeText() {
1665
- return P(s);
1665
+ return N(s);
1666
1666
  },
1667
1667
  get crosshairLabels() {
1668
- return P(ne);
1668
+ return N(re);
1669
1669
  },
1670
1670
  get toolbar() {
1671
- return P(c);
1671
+ return N(c);
1672
1672
  },
1673
1673
  get zoom() {
1674
- return y().chartZoom;
1674
+ return v().chartZoom;
1675
1675
  },
1676
1676
  set zoom(e) {
1677
- y().chartZoom = e;
1677
+ v().chartZoom = e;
1678
1678
  }
1679
1679
  });
1680
1680
  }
1681
1681
  }, an = (e) => {
1682
- var t = Ct(), n = c(t), i = (e) => {
1682
+ var t = Ct(), n = g(t), i = (e) => {
1683
1683
  var t = o();
1684
- h(() => D(t, P(w).chartEmptyColumns)), r(e, t);
1684
+ p(() => E(t, N(C).chartEmptyColumns)), r(e, t);
1685
1685
  }, s = (e) => {
1686
1686
  var t = o();
1687
- h(() => D(t, P(w).chartEmptyData)), r(e, t);
1687
+ p(() => E(t, N(C).chartEmptyData)), r(e, t);
1688
1688
  };
1689
1689
  a(n, (e) => {
1690
- !P(pe).dims.length || !P(pe).measures.length ? e(i) : e(s, -1);
1691
- }), x(t), r(e, t);
1690
+ !N(me).dims.length || !N(me).measures.length ? e(i) : e(s, -1);
1691
+ }), k(t), r(e, t);
1692
1692
  };
1693
1693
  a(tn, (e) => {
1694
- P(z) && y().chartIndicatorPanes.length && P(z).series[0]?.ohlc ? e(nn) : P(z) && (P(z).series.length || P(z).gaugeValue != null || P(F)) ? e(rn, 1) : e(an, -1);
1695
- }), x(en), b(en, (e) => f(Ee, e), () => P(Ee));
1694
+ N(R) && v().chartIndicatorPanes.length && N(R).series[0]?.ohlc ? e(nn) : N(R) && (N(R).series.length || N(R).gaugeValue != null || N(P)) ? e(rn, 1) : e(an, -1);
1695
+ }), k(en), y(en, (e) => n(De, e), () => N(De));
1696
1696
  var on = _(en, 2), sn = (e) => {
1697
- var t = ee(), n = v(t);
1698
- i(n, () => P(s), (e, t) => {
1697
+ var t = te(), a = h(t);
1698
+ i(a, () => N(s), (e, t) => {
1699
1699
  t(e, {
1700
1700
  get ctrl() {
1701
- return y();
1701
+ return v();
1702
1702
  },
1703
1703
  get types() {
1704
- return P(we);
1704
+ return N(Te);
1705
1705
  },
1706
1706
  get messages() {
1707
- return P(w);
1707
+ return N(C);
1708
1708
  },
1709
1709
  get open() {
1710
- return P(u);
1710
+ return N(l);
1711
1711
  },
1712
1712
  set open(e) {
1713
- f(u, e, !0);
1713
+ n(l, e, !0);
1714
1714
  }
1715
1715
  });
1716
1716
  }), r(e, t);
1717
1717
  };
1718
1718
  a(on, (e) => {
1719
- P(s) && e(sn);
1719
+ N(s) && e(sn);
1720
1720
  });
1721
1721
  var cn = _(on, 2), ln = (e) => {
1722
1722
  var t = wt();
1723
- h(() => C(t, "aria-label", P(w).chartResizeWindow)), l("pointerdown", t, Se), r(e, t);
1723
+ p(() => S(t, "aria-label", N(C).chartResizeWindow)), c("pointerdown", t, Ce), r(e, t);
1724
1724
  };
1725
1725
  a(cn, (e) => {
1726
- P(V) && !P(H) && e(ln);
1727
- }), x(Y), b(Y, (e) => f(ge, e), () => P(ge)), h(() => {
1728
- Ze = N(Y, 1, "sv-grid-chart-panel", null, Ze, {
1729
- "is-right": P(I) === "right" && !P(V),
1730
- "is-bottom": P(I) === "bottom" && !P(V),
1731
- "is-floating": P(V),
1732
- "is-maximized": P(V) && P(H)
1733
- }), ae(Y, P(Ce)), C(Y, "aria-label", P(w).chartPanelTitle), kt = N(Z, 1, "sv-grid-chart-drawer-title", null, kt, { "is-drag-handle": P(V) && !P(H) }), D(Q, P(w).chartPanelTitle), C($, "aria-label", P(w).chartExportLabel), C($, "title", P(w).chartExport), C($, "aria-expanded", P(W)), C(qt, "aria-label", P(w).chartClose);
1734
- }), l("pointerdown", Z, xe), l("click", $, () => f(W, !P(W))), l("click", qt, () => y().chartPanelOpen = !1), m(3, Y, () => R, () => ({
1735
- x: !P(V) && P(I) === "right" ? P(B) : 0,
1736
- y: !P(V) && P(I) === "bottom" ? P(B) : 0,
1726
+ N(B) && !N(V) && e(ln);
1727
+ }), k(Y), y(Y, (e) => n(_e, e), () => N(_e)), p(() => {
1728
+ Ze = M(Y, 1, "sv-grid-chart-panel", null, Ze, {
1729
+ "is-right": N(F) === "right" && !N(B),
1730
+ "is-bottom": N(F) === "bottom" && !N(B),
1731
+ "is-floating": N(B),
1732
+ "is-maximized": N(B) && N(V)
1733
+ }), oe(Y, N(we)), S(Y, "aria-label", N(C).chartPanelTitle), kt = M(Z, 1, "sv-grid-chart-drawer-title", null, kt, { "is-drag-handle": N(B) && !N(V) }), E(Q, N(C).chartPanelTitle), S($, "aria-label", N(C).chartExportLabel), S($, "title", N(C).chartExport), S($, "aria-expanded", N(U)), S(qt, "aria-label", N(C).chartClose);
1734
+ }), c("pointerdown", Z, Se), c("click", $, () => n(U, !N(U))), c("click", qt, () => v().chartPanelOpen = !1), f(3, Y, () => L, () => ({
1735
+ x: !N(B) && N(F) === "right" ? N(z) : 0,
1736
+ y: !N(B) && N(F) === "bottom" ? N(z) : 0,
1737
1737
  duration: 180,
1738
- easing: fe
1739
- })), r(e, Y), k();
1738
+ easing: pe
1739
+ })), r(e, Y), ie();
1740
1740
  }
1741
1741
  s(["pointerdown", "click"]);
1742
1742
  //#endregion