@synnaxlabs/pluto 0.42.0 → 0.42.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Center-CNcAEDgS.js → Center-D0JeI7Ta.js} +2 -2
- package/dist/{Center-Map6aflE.cjs → Center-DuI3XH-Q.cjs} +1 -1
- package/dist/{ContextMenu-fLU0wr9S.js → ContextMenu-BiNr7Gxv.js} +3 -3
- package/dist/{ContextMenu-DmRPxhnI.cjs → ContextMenu-HpMLd1Ht.cjs} +1 -1
- package/dist/{DateTime-CP3OmEGY.cjs → DateTime-BsjSfOY-.cjs} +1 -1
- package/dist/{DateTime-CWAcEwXO.js → DateTime-r6hocEmI.js} +2 -2
- package/dist/{Divider-BTLn5ucU.js → Divider-DqEkzRIY.js} +1 -1
- package/dist/{Divider-Dvb6dsgX.cjs → Divider-Dut8qPee.cjs} +2 -2
- package/dist/{Dropdown-CaGzfZRa.cjs → Dropdown-BSSe1E1e.cjs} +1 -1
- package/dist/{Dropdown-nw8kRSbl.js → Dropdown-BrFL1eSc.js} +38 -38
- package/dist/{Haul-B8zGWk0I.cjs → Haul-C6i2oI7z.cjs} +1 -1
- package/dist/{Haul-Cnuzk7Z-.js → Haul-CEFSvdy9.js} +1 -1
- package/dist/{Item-FmwC-twg.js → Item-C5SQraZM.js} +6 -6
- package/dist/{Item-BzrQqxRC.cjs → Item-DSBs9VLu.cjs} +1 -1
- package/dist/{Keyboard-BfvjkBgh.cjs → Keyboard-Ca7TAAHK.cjs} +1 -1
- package/dist/{Keyboard-Cevv7vrQ.js → Keyboard-Duo41pJL.js} +2 -2
- package/dist/{Link-DI7BZ5dL.cjs → Link-B9ZGvoBU.cjs} +1 -1
- package/dist/{Link-Dljdu4e9.js → Link-C9GeoB0w.js} +1 -1
- package/dist/{Pack-to0DG2iP.js → Pack-BozAEHBp.js} +2 -2
- package/dist/{Pack-lJqoOmHx.cjs → Pack-DeZUUdJM.cjs} +1 -1
- package/dist/{Provider-C_B463cg.js → Provider-B86QO9NT.js} +5 -5
- package/dist/{Provider-BlM1x1cF.cjs → Provider-Cw0mSr2D.cjs} +1 -1
- package/dist/{Space-C2oZDkE1.js → Space-CyTH97CN.js} +1 -1
- package/dist/{Space-DfcVsxz8.cjs → Space-DvalhzRj.cjs} +1 -1
- package/dist/{Text-BiYpGaEZ.js → Text-8ps3Uw4T.js} +3 -3
- package/dist/{Text-CWiPrDI1.js → Text-BR4FW9Hy.js} +12 -12
- package/dist/{Text-BjHlLKsp.cjs → Text-C8GBHl-F.cjs} +1 -1
- package/dist/{Text-ZJqK1cI3.cjs → Text-CMTkSEWx.cjs} +2 -2
- package/dist/{Text-DrIBbnml.cjs → Text-DkA06TeT.cjs} +1 -1
- package/dist/{Text-BXADoWYY.js → Text-sH_NOelc.js} +41 -41
- package/dist/{Toggle-CeUVv58o.js → Toggle-BRuUrO2N.js} +29 -29
- package/dist/{Toggle-CfwYy9fe.cjs → Toggle-C0lZDyeo.cjs} +1 -1
- package/dist/{Video-BZ1XTEez.js → Video-DWStbcmD.js} +1 -1
- package/dist/{Video-C7YoF37-.cjs → Video-DgjuFLiE.cjs} +1 -1
- package/dist/{WithIcon-DG7VJxsE.cjs → WithIcon-BgS5shNZ.cjs} +1 -1
- package/dist/{WithIcon-pBZ7H9Lq.js → WithIcon-BhR6nwRh.js} +3 -3
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-hg3QdDDt.cjs → css-9iEiTRNL.cjs} +8 -8
- package/dist/{css-B7c7_G5h.js → css-Cnb9DQMD.js} +612 -611
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/deep-BNa3STCp.cjs +1 -0
- package/dist/deep-P35D0Sz7.js +112 -0
- package/dist/{dimensions-DcjW7X3n.js → dimensions-B6qmnzv3.js} +1 -1
- package/dist/{dimensions-Cz-q0Mok.cjs → dimensions-By-vgVks.cjs} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{eraser-BOx6Xhwn.cjs → eraser-BkqFgBRY.cjs} +2 -2
- package/dist/{eraser-Bsb4kKS3.js → eraser-CK8SwEJa.js} +8 -8
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +7 -7
- package/dist/{external-CEfSeJMr.js → external-B1YsdhS4.js} +9 -9
- package/dist/{external-DeCeUbqe.js → external-B7NxSklQ.js} +6 -6
- package/dist/{external-CLTPcWrI.cjs → external-B8uaUKhb.cjs} +1 -1
- package/dist/{external-DDD_nc3x.js → external-BA_VOnV-.js} +41 -41
- package/dist/{external-Ck1rVwUu.js → external-BDkqwq72.js} +17 -17
- package/dist/{external-BdVuZd3H.cjs → external-BGBgNbe2.cjs} +1 -1
- package/dist/{external-1KJXZcr9.js → external-BOMdfX8_.js} +2 -2
- package/dist/{external-hgzjVlDR.js → external-Bl8q9UBF.js} +11 -11
- package/dist/{external-DgSaeiBz.js → external-BnK4UIFe.js} +3 -3
- package/dist/{external-Cfj1plcw.cjs → external-BwUa_5Vs.cjs} +1 -1
- package/dist/{external-DCcp3sQD.js → external-C0X4mXVG.js} +4 -4
- package/dist/{external-qwaFowDe.js → external-C7yPkamb.js} +5 -5
- package/dist/{external-Cni9ftkW.cjs → external-CTc1n-JC.cjs} +1 -1
- package/dist/{external-DCfs7IFi.cjs → external-CUgPP-JD.cjs} +1 -1
- package/dist/{external-C75Z9Zbn.cjs → external-CzTBFiv_.cjs} +1 -1
- package/dist/{external-BiBhgCdz.cjs → external-DGJ8YAe-.cjs} +1 -1
- package/dist/{external-DhfASB4W.cjs → external-DQwznOyH.cjs} +1 -1
- package/dist/{external-DNT-gmZx.cjs → external-DiLZ1dEk.cjs} +1 -1
- package/dist/{external-bkwgRzLc.js → external-DissGp_3.js} +7 -7
- package/dist/{external-BHHC7TQ_.cjs → external-DmryCcwg.cjs} +1 -1
- package/dist/{external-pUEPQrp_.cjs → external-Dq8-cbf3.cjs} +1 -1
- package/dist/{external-sUHGRdqd.js → external-_8qdWaAg.js} +2 -2
- package/dist/{external-CRNR1bD0.js → external-bSUra-q7.js} +4 -4
- package/dist/{external-BLEs2AYM.cjs → external-zbKPQ9ls.cjs} +2 -2
- package/dist/{font-Crn-D_ua.js → font-CjYcjBiv.js} +2 -2
- package/dist/{font-BFTKtIQk.cjs → font-XlUAG1-r.cjs} +1 -1
- package/dist/{fontString-DjnDxFrE.js → fontString-BN1kd1AP.js} +1 -1
- package/dist/{fontString-DQLaRHQV.cjs → fontString-Ddza50DF.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/{hooks-CTKCi-OE.cjs → hooks-B5aLaWzS.cjs} +1 -1
- package/dist/{hooks-CM9HWxYc.js → hooks-DjznxGgm.js} +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.js +513 -513
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/{provider-XPRFhwnl.cjs → provider-aWtsGnV8.cjs} +24 -24
- package/dist/{provider-BDFfcHVT.js → provider-r5Ly36FI.js} +1569 -1566
- package/dist/src/color/Provider.d.ts +5 -1
- package/dist/src/color/Provider.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +2 -2
- package/dist/src/status/aether/types.d.ts +2 -2
- package/dist/src/table/cells/Cells.d.ts +6 -2
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +6 -2
- package/dist/src/telem/aether/static.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +12 -6
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +2 -2
- package/dist/src/telem/control/aether/indicator.d.ts +12 -4
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts +10 -2
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +5 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +660 -132
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +478 -126
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/vis/axis/axis.d.ts +10 -2
- package/dist/src/vis/axis/axis.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +9 -3
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +5 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/XAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +10 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +40 -8
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts +15 -3
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +40 -8
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +10 -2
- package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +15 -3
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +5 -1
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/units-CX_coN92.cjs +1 -0
- package/dist/{units-a8CggrTe.js → units-Ct3Xl5nK.js} +1 -1
- package/dist/{useClickOutside-CPAEkvf8.cjs → useClickOutside-CSff8yb-.cjs} +1 -1
- package/dist/{useClickOutside-CKMnqdvH.js → useClickOutside-DDCP7Fh-.js} +24 -24
- package/dist/{useDebouncedCallback-Cyd6pZ59.js → useDebouncedCallback-BG4I7mbT.js} +1 -1
- package/dist/{useDebouncedCallback-DsKlBI86.cjs → useDebouncedCallback-DnwYZzjR.cjs} +1 -1
- package/dist/{useMemoCompare-B930TM0g.js → useMemoCompare-BViQehyd.js} +2 -2
- package/dist/{useMemoCompare-DprA41gC.cjs → useMemoCompare-C2X7Mzx8.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-Cvp93Pya.cjs → useVirtualCursorDragWebKit-DDmXE4RW.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-BrSOJpYY.js → useVirtualCursorDragWebKit-DTU2tUmp.js} +3 -3
- package/dist/{value-BdZLWVof.js → value-B6OlPXe1.js} +404 -404
- package/dist/value-Bq1w9UY8.cjs +57 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +5 -5
- package/dist/deep-B1etRzze.cjs +0 -1
- package/dist/deep-BytImVW-.js +0 -102
- package/dist/units-CKKNRQlP.cjs +0 -1
- package/dist/value-B7u8K1CW.cjs +0 -57
|
@@ -2,19 +2,19 @@ var mi = Object.defineProperty;
|
|
|
2
2
|
var yi = (t, n, e) => n in t ? mi(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
|
|
3
3
|
var u = (t, n, e) => yi(t, typeof n != "symbol" ? n + "" : n, e);
|
|
4
4
|
import Ie, { z as d } from "zod";
|
|
5
|
-
import { n as Zr,
|
|
6
|
-
import { m as Z,
|
|
7
|
-
import { M as
|
|
8
|
-
import {
|
|
5
|
+
import { n as Zr, o as vi, j as pe, F as he, q as vs, s as Qt, v as Jn, w as bi, Q as tt, h as Ln, x as Ur, W as xi, y as Ti, L as $, p as wi, u as ge, z as An, B as Si, D as be, E as Ci, G as Br, H as bs, I as xs, J as _r } from "./provider-r5Ly36FI.js";
|
|
6
|
+
import { m as Z, D as v, H as k, I as F, N as K, O as S, R as Ei, U as q, W as ki, X as Pi, Y as Ts, Z as ws, v as J, L as Ri, a0 as $r, a1 as Fr, a2 as Mi, F as Jt, K as re, J as g, g as ae, $ as p, _ as Js, a3 as qr, S as Di, a4 as Ss, b as Yi } from "./css-Cnb9DQMD.js";
|
|
7
|
+
import { M as Oi, u as Ut, C as X, G as Li } from "./eraser-CK8SwEJa.js";
|
|
8
|
+
import { x as Cs } from "./deep-P35D0Sz7.js";
|
|
9
9
|
import { l as jr } from "./state-CjGemC7S.js";
|
|
10
|
-
import { f as ot } from "./fontString-
|
|
10
|
+
import { f as ot } from "./fontString-BN1kd1AP.js";
|
|
11
11
|
import { o as Ai, r as Ii } from "./debounce-CW9Q-DsR.js";
|
|
12
|
-
import { d as er } from "./dimensions-
|
|
12
|
+
import { d as er } from "./dimensions-B6qmnzv3.js";
|
|
13
13
|
import { A as Hr, o as Ni } from "./toArray-B7nD2CTw.js";
|
|
14
|
-
var Zi = Object.defineProperty, Ui = (t, n, e) => n in t ? Zi(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e,
|
|
14
|
+
var Zi = Object.defineProperty, Ui = (t, n, e) => n in t ? Zi(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Vt = (t, n, e) => Ui(t, typeof n != "symbol" ? n + "" : n, e);
|
|
15
15
|
class Bi {
|
|
16
16
|
constructor(n, e) {
|
|
17
|
-
|
|
17
|
+
Vt(this, "handlers"), Vt(this, "transform"), Vt(this, "closer"), this.transform = n, this.handlers = e ?? /* @__PURE__ */ new Map();
|
|
18
18
|
}
|
|
19
19
|
/** Implements the observable interface. */
|
|
20
20
|
onChange(n) {
|
|
@@ -40,7 +40,7 @@ class Bi {
|
|
|
40
40
|
}
|
|
41
41
|
class _i {
|
|
42
42
|
constructor(n) {
|
|
43
|
-
|
|
43
|
+
Vt(this, "handlers"), this.handlers = n ?? /* @__PURE__ */ new Map();
|
|
44
44
|
}
|
|
45
45
|
onChange(n) {
|
|
46
46
|
return this.handlers.set(n, null), () => this.handlers.delete(n);
|
|
@@ -56,16 +56,16 @@ const Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
56
56
|
}, Symbol.toStringTag, { value: "Module" })), ks = "pluto-vis-renderer", Ps = (t, n) => {
|
|
57
57
|
t.set(ks, n, !1);
|
|
58
58
|
}, Rs = (t) => t.get(ks), $i = (t) => t.getOptional(ks), xe = (t, n) => Rs(t)(n), Fi = d.object({
|
|
59
|
-
props:
|
|
59
|
+
props: vi.nullable(),
|
|
60
60
|
state: Zr.connectivity.connectionStateZ.nullable()
|
|
61
61
|
}), zr = {
|
|
62
62
|
client: null
|
|
63
63
|
};
|
|
64
|
-
var
|
|
65
|
-
let es = (
|
|
64
|
+
var ve;
|
|
65
|
+
let es = (ve = class extends pe {
|
|
66
66
|
constructor() {
|
|
67
67
|
super(...arguments);
|
|
68
|
-
u(this, "schema",
|
|
68
|
+
u(this, "schema", ve.stateZ);
|
|
69
69
|
}
|
|
70
70
|
afterUpdate(e) {
|
|
71
71
|
var s;
|
|
@@ -75,7 +75,7 @@ let es = (be = class extends pe {
|
|
|
75
75
|
}
|
|
76
76
|
this.prevState.props != null && Cs.equal(this.state.props, this.prevState.props) && this.internal.client != null || (this.internal.client = new Zr(this.state.props), jn(e, this.internal));
|
|
77
77
|
}
|
|
78
|
-
}, u(
|
|
78
|
+
}, u(ve, "TYPE", "synnax.Provider"), u(ve, "stateZ", Fi), ve);
|
|
79
79
|
const Ms = "pluto-client-context", jn = (t, n) => t.set(Ms, n), Bt = (t) => t.get(Ms).client, qi = {
|
|
80
80
|
[es.TYPE]: es
|
|
81
81
|
}, Ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -129,7 +129,7 @@ class sn extends Te {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
u(sn, "TYPE", "noop-numeric-source");
|
|
132
|
-
const
|
|
132
|
+
const Gr = {
|
|
133
133
|
type: sn.TYPE,
|
|
134
134
|
props: {},
|
|
135
135
|
variant: "source",
|
|
@@ -141,7 +141,7 @@ class rn extends Te {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
u(rn, "TYPE", "noop-string-source");
|
|
144
|
-
const
|
|
144
|
+
const Xr = {
|
|
145
145
|
type: rn.TYPE,
|
|
146
146
|
props: {},
|
|
147
147
|
variant: "source",
|
|
@@ -158,7 +158,7 @@ class an extends Te {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
u(an, "TYPE", "noop-status-source");
|
|
161
|
-
const
|
|
161
|
+
const Ys = {
|
|
162
162
|
type: an.TYPE,
|
|
163
163
|
props: {},
|
|
164
164
|
variant: "source",
|
|
@@ -166,7 +166,7 @@ const Os = {
|
|
|
166
166
|
};
|
|
167
167
|
class on extends Te {
|
|
168
168
|
value() {
|
|
169
|
-
return
|
|
169
|
+
return v.ZERO;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
u(on, "TYPE", "noop-color-source");
|
|
@@ -182,7 +182,7 @@ class ln extends Te {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
u(ln, "TYPE", "noop-series");
|
|
185
|
-
const
|
|
185
|
+
const Vr = {
|
|
186
186
|
type: ln.TYPE,
|
|
187
187
|
props: {},
|
|
188
188
|
variant: "source",
|
|
@@ -216,7 +216,7 @@ const Hi = d.instanceof(ArrayBuffer), _t = d.object({
|
|
|
216
216
|
variant: d.literal("source-transformer")
|
|
217
217
|
}), Jr = _t.extend({
|
|
218
218
|
variant: d.literal("sink-transformer")
|
|
219
|
-
}), cn = we.extend({ valueType: d.literal("series") }),
|
|
219
|
+
}), cn = we.extend({ valueType: d.literal("series") }), Os = we.extend({
|
|
220
220
|
valueType: d.literal("boolean")
|
|
221
221
|
}), Un = Zn.extend({ valueType: d.literal("boolean") }), zi = Jr.extend({
|
|
222
222
|
valueType: d.literal("boolean")
|
|
@@ -254,11 +254,11 @@ let Bn = class extends Es.BaseObserver {
|
|
|
254
254
|
cleanup() {
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
|
-
class
|
|
257
|
+
class V extends Bn {
|
|
258
258
|
}
|
|
259
259
|
class _n extends Bn {
|
|
260
260
|
}
|
|
261
|
-
class Pe extends
|
|
261
|
+
class Pe extends V {
|
|
262
262
|
constructor() {
|
|
263
263
|
super(...arguments);
|
|
264
264
|
u(this, "source_");
|
|
@@ -291,7 +291,7 @@ class Pe extends G {
|
|
|
291
291
|
);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
class sa extends
|
|
294
|
+
class sa extends V {
|
|
295
295
|
constructor() {
|
|
296
296
|
super(...arguments);
|
|
297
297
|
u(this, "sources", {});
|
|
@@ -354,16 +354,16 @@ class Ns {
|
|
|
354
354
|
}
|
|
355
355
|
create(n) {
|
|
356
356
|
switch (n.type) {
|
|
357
|
-
case bt.TYPE:
|
|
358
|
-
return new bt(n.props, this.factory);
|
|
359
357
|
case vt.TYPE:
|
|
360
358
|
return new vt(n.props, this.factory);
|
|
359
|
+
case bt.TYPE:
|
|
360
|
+
return new bt(n.props, this.factory);
|
|
361
361
|
default:
|
|
362
362
|
return null;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
class
|
|
366
|
+
class vt extends V {
|
|
367
367
|
constructor(e, s) {
|
|
368
368
|
super(e);
|
|
369
369
|
u(this, "schema", aa);
|
|
@@ -398,18 +398,18 @@ class bt extends G {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
u(
|
|
402
|
-
const
|
|
401
|
+
u(vt, "TYPE", "source-pipeline");
|
|
402
|
+
const Gi = (t, n) => ({
|
|
403
403
|
variant: "source",
|
|
404
404
|
props: n,
|
|
405
|
-
type:
|
|
405
|
+
type: vt.TYPE,
|
|
406
406
|
valueType: t
|
|
407
407
|
}), ia = d.object({
|
|
408
408
|
connections: d.array(Is),
|
|
409
409
|
inlet: d.string(),
|
|
410
410
|
segments: d.record(d.string(), Zn)
|
|
411
411
|
});
|
|
412
|
-
class
|
|
412
|
+
class bt extends _n {
|
|
413
413
|
constructor(e, s) {
|
|
414
414
|
super(e);
|
|
415
415
|
u(this, "schema", ia);
|
|
@@ -441,11 +441,11 @@ class vt extends _n {
|
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
u(
|
|
445
|
-
const
|
|
444
|
+
u(bt, "TYPE", "sink-pipeline");
|
|
445
|
+
const Xi = (t, n) => ({
|
|
446
446
|
variant: "sink",
|
|
447
447
|
props: n,
|
|
448
|
-
type:
|
|
448
|
+
type: bt.TYPE,
|
|
449
449
|
valueType: t
|
|
450
450
|
}), oa = d.object({
|
|
451
451
|
channel: d.number().or(d.string())
|
|
@@ -456,7 +456,7 @@ const Vi = (t, n) => ({
|
|
|
456
456
|
variant: "success",
|
|
457
457
|
message: "data loaded"
|
|
458
458
|
};
|
|
459
|
-
class xt extends
|
|
459
|
+
class xt extends V {
|
|
460
460
|
constructor(e, s, r) {
|
|
461
461
|
super(s);
|
|
462
462
|
u(this, "schema", oa);
|
|
@@ -496,7 +496,7 @@ class xt extends G {
|
|
|
496
496
|
};
|
|
497
497
|
this.removeStreamHandler = await this.client.stream(o, [i.key]), this.notify(), (r = this.onStatusChange) == null || r.call(this, Us);
|
|
498
498
|
} catch (i) {
|
|
499
|
-
this.valid = !1, (a = this.onStatusChange) == null || a.call(this,
|
|
499
|
+
this.valid = !1, (a = this.onStatusChange) == null || a.call(this, vs(i));
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
}
|
|
@@ -521,16 +521,16 @@ const la = async (t, n, e) => {
|
|
|
521
521
|
if (s.virtual)
|
|
522
522
|
throw new Jn("cannot use virtual channels as a data source");
|
|
523
523
|
return { key: s.index, dataType: q.TIMESTAMP, virtual: !1, isCalculated: r };
|
|
524
|
-
},
|
|
524
|
+
}, Vi = d.object({
|
|
525
525
|
timeRange: K.z,
|
|
526
526
|
channel: d.number().or(d.string()),
|
|
527
527
|
useIndexOfChannel: d.boolean().optional().default(!1)
|
|
528
528
|
});
|
|
529
|
-
class Tt extends
|
|
529
|
+
class Tt extends V {
|
|
530
530
|
constructor(e, s, r) {
|
|
531
531
|
super(s);
|
|
532
532
|
u(this, "client");
|
|
533
|
-
u(this, "schema",
|
|
533
|
+
u(this, "schema", Vi);
|
|
534
534
|
u(this, "data", new F());
|
|
535
535
|
u(this, "valid", !1);
|
|
536
536
|
u(this, "channel", null);
|
|
@@ -562,7 +562,7 @@ class Tt extends G {
|
|
|
562
562
|
const l = await this.client.read(a, this.channel.key);
|
|
563
563
|
l.acquire(), this.data = l, this.notify(), (s = this.onStatusChange) == null || s.call(this, Us);
|
|
564
564
|
} catch (a) {
|
|
565
|
-
this.valid = !1, (r = this.onStatusChange) == null || r.call(this,
|
|
565
|
+
this.valid = !1, (r = this.onStatusChange) == null || r.call(this, vs(a));
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
}
|
|
@@ -573,7 +573,7 @@ const Ki = d.object({
|
|
|
573
573
|
timeSpan: S.z,
|
|
574
574
|
keepFor: S.z.optional()
|
|
575
575
|
});
|
|
576
|
-
class wt extends
|
|
576
|
+
class wt extends V {
|
|
577
577
|
constructor(e, s, r, a = () => Z.now()) {
|
|
578
578
|
super(s);
|
|
579
579
|
u(this, "client");
|
|
@@ -618,7 +618,7 @@ class wt extends G {
|
|
|
618
618
|
};
|
|
619
619
|
this.stopStreaming = await this.client.stream(h, [this.channel.key]), this.notify(), (r = this.onStatusChange) == null || r.call(this, Us);
|
|
620
620
|
} catch (i) {
|
|
621
|
-
this.valid = !1, (a = this.onStatusChange) == null || a.call(this,
|
|
621
|
+
this.valid = !1, (a = this.onStatusChange) == null || a.call(this, vs(i));
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
gcOutOfRangeData() {
|
|
@@ -688,7 +688,7 @@ const Bs = d.object({
|
|
|
688
688
|
data: d.array(ki),
|
|
689
689
|
offsets: d.array(d.number()).optional().default([])
|
|
690
690
|
});
|
|
691
|
-
class un extends
|
|
691
|
+
class un extends V {
|
|
692
692
|
constructor(e) {
|
|
693
693
|
super(e);
|
|
694
694
|
u(this, "data");
|
|
@@ -714,7 +714,7 @@ const ha = Bs.extend({
|
|
|
714
714
|
startPosition: d.number().optional().default(0),
|
|
715
715
|
scrollBounds: d.boolean().optional().default(!1)
|
|
716
716
|
});
|
|
717
|
-
class St extends
|
|
717
|
+
class St extends V {
|
|
718
718
|
constructor(e) {
|
|
719
719
|
super(e);
|
|
720
720
|
u(this, "schema", ha);
|
|
@@ -753,7 +753,7 @@ class St extends G {
|
|
|
753
753
|
}
|
|
754
754
|
u(St, "TYPE", "iterative-series");
|
|
755
755
|
const da = d.number();
|
|
756
|
-
class Ct extends
|
|
756
|
+
class Ct extends V {
|
|
757
757
|
constructor() {
|
|
758
758
|
super(...arguments);
|
|
759
759
|
u(this, "schema", da);
|
|
@@ -764,7 +764,7 @@ class Ct extends G {
|
|
|
764
764
|
}
|
|
765
765
|
u(Ct, "TYPE", "static-numeric");
|
|
766
766
|
const fa = d.string();
|
|
767
|
-
class Et extends
|
|
767
|
+
class Et extends V {
|
|
768
768
|
constructor() {
|
|
769
769
|
super(...arguments);
|
|
770
770
|
u(this, "schema", fa);
|
|
@@ -774,14 +774,14 @@ class Et extends G {
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
u(Et, "TYPE", "static-string");
|
|
777
|
-
const pa =
|
|
778
|
-
class kt extends
|
|
777
|
+
const pa = v.crudeZ;
|
|
778
|
+
class kt extends V {
|
|
779
779
|
constructor() {
|
|
780
780
|
super(...arguments);
|
|
781
781
|
u(this, "schema", pa);
|
|
782
782
|
}
|
|
783
783
|
value() {
|
|
784
|
-
return
|
|
784
|
+
return v.construct(this.props);
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
u(kt, "TYPE", "static-color");
|
|
@@ -827,12 +827,12 @@ class ga {
|
|
|
827
827
|
return new ze(n.props);
|
|
828
828
|
case We.TYPE:
|
|
829
829
|
return new We(n.props);
|
|
830
|
+
case Ge.TYPE:
|
|
831
|
+
return new Ge(n.props);
|
|
830
832
|
case Xe.TYPE:
|
|
831
833
|
return new Xe(n.props);
|
|
832
834
|
case Ve.TYPE:
|
|
833
835
|
return new Ve(n.props);
|
|
834
|
-
case Ge.TYPE:
|
|
835
|
-
return new Ge(n.props);
|
|
836
836
|
}
|
|
837
837
|
return null;
|
|
838
838
|
}
|
|
@@ -893,8 +893,8 @@ const uo = (t) => ({
|
|
|
893
893
|
type: He.TYPE,
|
|
894
894
|
variant: "source",
|
|
895
895
|
valueType: "boolean"
|
|
896
|
-
}),
|
|
897
|
-
trueVariant:
|
|
896
|
+
}), va = d.object({
|
|
897
|
+
trueVariant: bi.optional().default("success")
|
|
898
898
|
}), ht = class ht extends Pe {
|
|
899
899
|
constructor() {
|
|
900
900
|
super(...arguments);
|
|
@@ -904,14 +904,14 @@ const uo = (t) => ({
|
|
|
904
904
|
return e.variant === this.props.trueVariant;
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
|
-
u(ht, "TYPE", "boolean-status"), u(ht, "propsZ",
|
|
907
|
+
u(ht, "TYPE", "boolean-status"), u(ht, "propsZ", va);
|
|
908
908
|
let ze = ht;
|
|
909
909
|
const ho = (t) => ({
|
|
910
910
|
props: t,
|
|
911
911
|
type: ze.TYPE,
|
|
912
912
|
variant: "source",
|
|
913
913
|
valueType: "boolean"
|
|
914
|
-
}),
|
|
914
|
+
}), ba = d.object({
|
|
915
915
|
precision: d.number().optional().default(2),
|
|
916
916
|
prefix: d.string().optional().default(""),
|
|
917
917
|
suffix: d.string().optional().default(""),
|
|
@@ -926,7 +926,7 @@ const ho = (t) => ({
|
|
|
926
926
|
return `${r}${ws.stringifyNumber(e, s, i)}${a}`;
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
|
-
u(dt, "TYPE", "stringify-number"), u(dt, "propsZ",
|
|
929
|
+
u(dt, "TYPE", "stringify-number"), u(dt, "propsZ", ba);
|
|
930
930
|
let We = dt;
|
|
931
931
|
const fo = (t) => ({
|
|
932
932
|
props: t,
|
|
@@ -936,7 +936,7 @@ const fo = (t) => ({
|
|
|
936
936
|
}), xa = d.object({
|
|
937
937
|
windowSize: d.number().optional().default(5)
|
|
938
938
|
});
|
|
939
|
-
class
|
|
939
|
+
class Ge extends Pe {
|
|
940
940
|
constructor() {
|
|
941
941
|
super(...arguments);
|
|
942
942
|
u(this, "schema", xa);
|
|
@@ -949,28 +949,28 @@ class Xe extends Pe {
|
|
|
949
949
|
return this.props.windowSize < 2 ? !0 : (this.values.length > this.props.windowSize && (this.values = []), this.values.push(e), this.values.length === this.props.windowSize);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
u(
|
|
952
|
+
u(Ge, "TYPE", "rolling-average"), u(Ge, "propsZ", ya);
|
|
953
953
|
const po = (t) => ({
|
|
954
954
|
props: t,
|
|
955
|
-
type:
|
|
955
|
+
type: Ge.TYPE,
|
|
956
956
|
variant: "source",
|
|
957
957
|
valueType: "number"
|
|
958
958
|
}), Ta = d.object({
|
|
959
|
-
gradient:
|
|
959
|
+
gradient: v.gradientZ
|
|
960
960
|
}), ft = class ft extends Pe {
|
|
961
961
|
constructor() {
|
|
962
962
|
super(...arguments);
|
|
963
963
|
u(this, "schema", ft.propsZ);
|
|
964
964
|
}
|
|
965
965
|
transform(e) {
|
|
966
|
-
return
|
|
966
|
+
return v.fromGradient(this.props.gradient, e);
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
969
|
u(ft, "TYPE", "color-gradient"), u(ft, "propsZ", Ta);
|
|
970
|
-
let
|
|
970
|
+
let Xe = ft;
|
|
971
971
|
const go = (t) => ({
|
|
972
972
|
props: t,
|
|
973
|
-
type:
|
|
973
|
+
type: Xe.TYPE,
|
|
974
974
|
variant: "source",
|
|
975
975
|
valueType: "color"
|
|
976
976
|
}), wa = d.object({
|
|
@@ -986,10 +986,10 @@ const go = (t) => ({
|
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
u(pt, "TYPE", "scale-number"), u(pt, "propsZ", wa);
|
|
989
|
-
let
|
|
989
|
+
let Ve = pt;
|
|
990
990
|
const mo = (t) => ({
|
|
991
991
|
props: t,
|
|
992
|
-
type:
|
|
992
|
+
type: Ve.TYPE,
|
|
993
993
|
variant: "source",
|
|
994
994
|
valueType: "number"
|
|
995
995
|
});
|
|
@@ -1098,15 +1098,15 @@ const ee = (t, n, e, s) => {
|
|
|
1098
1098
|
}, Ma = (t, n) => t.dataType.isVariable || t.dataType.equals(q.UINT8) ? t : (n == null && t.dataType.equals(q.TIMESTAMP) && (n = BigInt(t.data[0])), t.convert(q.FLOAT32, n)), yo = (t) => t.isVariable || t.equals(q.UINT8) ? t : q.FLOAT32, Da = () => ({
|
|
1099
1099
|
purgedSeries: 0,
|
|
1100
1100
|
purgedBytes: $r.bytes(0)
|
|
1101
|
-
}),
|
|
1101
|
+
}), Ya = {
|
|
1102
1102
|
instrumentation: Ln.NOOP,
|
|
1103
1103
|
staleEntryThreshold: S.seconds(20)
|
|
1104
1104
|
};
|
|
1105
|
-
class
|
|
1105
|
+
class vo {
|
|
1106
1106
|
constructor(n) {
|
|
1107
1107
|
u(this, "data", []);
|
|
1108
1108
|
u(this, "props");
|
|
1109
|
-
this.props = { ...
|
|
1109
|
+
this.props = { ...Ya, ...n };
|
|
1110
1110
|
}
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Writes the given series to the cache, merging written series with any
|
|
@@ -1182,7 +1182,7 @@ class bo {
|
|
|
1182
1182
|
})), new Error("Invalid state");
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
const
|
|
1185
|
+
const bo = 100, xo = 1e6, To = 1e4, wo = 100, So = 40;
|
|
1186
1186
|
class Co {
|
|
1187
1187
|
/**
|
|
1188
1188
|
* @constructor
|
|
@@ -1270,7 +1270,7 @@ class Co {
|
|
|
1270
1270
|
if (typeof n == "number") return n;
|
|
1271
1271
|
if (this.totalWrites < wo) return To;
|
|
1272
1272
|
const e = Fr.roundToNearestMagnitude(this.avgRate * n.seconds);
|
|
1273
|
-
return Math.round(Math.max(Math.min(e, xo),
|
|
1273
|
+
return Math.round(Math.max(Math.min(e, xo), bo));
|
|
1274
1274
|
}
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Closes the cache and releases all resources associated with it. After close()
|
|
@@ -1287,7 +1287,7 @@ class Eo {
|
|
|
1287
1287
|
u(this, "ins");
|
|
1288
1288
|
u(this, "static");
|
|
1289
1289
|
u(this, "dynamic");
|
|
1290
|
-
this.channel = n.channel, this.ins = n.instrumentation ?? Ln.NOOP, this.static = new
|
|
1290
|
+
this.channel = n.channel, this.ins = n.instrumentation ?? Ln.NOOP, this.static = new vo(n), this.dynamic = new Co({
|
|
1291
1291
|
dynamicBufferSize: n.dynamicBufferSize,
|
|
1292
1292
|
dataType: this.channel.dataType
|
|
1293
1293
|
});
|
|
@@ -1333,7 +1333,7 @@ class Po {
|
|
|
1333
1333
|
this.props = {
|
|
1334
1334
|
dynamicBufferSize: ko,
|
|
1335
1335
|
gcInterval: Ur.seconds(30),
|
|
1336
|
-
...
|
|
1336
|
+
...Ya,
|
|
1337
1337
|
...n
|
|
1338
1338
|
}, this.gcInterval = setInterval(() => this.gc(), this.props.gcInterval.milliseconds);
|
|
1339
1339
|
}
|
|
@@ -1472,7 +1472,7 @@ class Ro {
|
|
|
1472
1472
|
class Mo {
|
|
1473
1473
|
constructor(n) {
|
|
1474
1474
|
u(this, "props");
|
|
1475
|
-
u(this, "mu", new
|
|
1475
|
+
u(this, "mu", new Oi());
|
|
1476
1476
|
u(this, "listeners", /* @__PURE__ */ new Map());
|
|
1477
1477
|
u(this, "streamerRunLoop", null);
|
|
1478
1478
|
u(this, "streamer", null);
|
|
@@ -1573,7 +1573,7 @@ class Do {
|
|
|
1573
1573
|
async close() {
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
|
-
class
|
|
1576
|
+
class Yo {
|
|
1577
1577
|
constructor({ instrumentation: n, core: e }) {
|
|
1578
1578
|
u(this, "ins");
|
|
1579
1579
|
u(this, "cache");
|
|
@@ -1611,7 +1611,7 @@ class Oo {
|
|
|
1611
1611
|
this.ins.L.info("closing client"), await this.streamer.close(), await this.reader.close(), this.cache.close();
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
|
-
const
|
|
1614
|
+
const Oa = d.object({}), gt = class gt extends pe {
|
|
1615
1615
|
constructor() {
|
|
1616
1616
|
super(...arguments);
|
|
1617
1617
|
u(this, "schema", gt.stateZ);
|
|
@@ -1621,7 +1621,7 @@ const Ya = d.object({}), gt = class gt extends pe {
|
|
|
1621
1621
|
afterUpdate(e) {
|
|
1622
1622
|
const s = Bt(e), r = Ut(e, "telem");
|
|
1623
1623
|
if (this.internal.instrumentation = r.child("provider"), !(s !== this.prevCore)) return;
|
|
1624
|
-
this.prevCore = s, this.client != null && this.client.close(), this.client = s == null ? new Do() : new
|
|
1624
|
+
this.prevCore = s, this.client != null && this.client.close(), this.client = s == null ? new Do() : new Yo({
|
|
1625
1625
|
core: s,
|
|
1626
1626
|
instrumentation: r
|
|
1627
1627
|
});
|
|
@@ -1629,19 +1629,19 @@ const Ya = d.object({}), gt = class gt extends pe {
|
|
|
1629
1629
|
ka(e, o);
|
|
1630
1630
|
}
|
|
1631
1631
|
};
|
|
1632
|
-
u(gt, "TYPE", "telem.Provider"), u(gt, "stateZ",
|
|
1632
|
+
u(gt, "TYPE", "telem.Provider"), u(gt, "stateZ", Oa);
|
|
1633
1633
|
let Pt = gt;
|
|
1634
|
-
const
|
|
1634
|
+
const Oo = {
|
|
1635
1635
|
[Pt.TYPE]: Pt
|
|
1636
1636
|
}, Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1637
1637
|
__proto__: null,
|
|
1638
1638
|
AbstractSink: _n,
|
|
1639
|
-
AbstractSource:
|
|
1639
|
+
AbstractSource: V,
|
|
1640
1640
|
Base: Bn,
|
|
1641
1641
|
BaseProvider: Pt,
|
|
1642
1642
|
BooleanStatus: ze,
|
|
1643
1643
|
ChannelData: Tt,
|
|
1644
|
-
ColorGradient:
|
|
1644
|
+
ColorGradient: Xe,
|
|
1645
1645
|
CompoundTelemFactory: _s,
|
|
1646
1646
|
Context: Ca,
|
|
1647
1647
|
FixedColorSource: kt,
|
|
@@ -1652,13 +1652,13 @@ const Yo = {
|
|
|
1652
1652
|
MultiSourceTransformer: sa,
|
|
1653
1653
|
NoopFactory: Kr,
|
|
1654
1654
|
PipelineFactory: Ns,
|
|
1655
|
-
REGISTRY:
|
|
1655
|
+
REGISTRY: Oo,
|
|
1656
1656
|
RemoteFactory: ca,
|
|
1657
|
-
RollingAverage:
|
|
1658
|
-
ScaleNumber:
|
|
1657
|
+
RollingAverage: Ge,
|
|
1658
|
+
ScaleNumber: Ve,
|
|
1659
1659
|
SetPoint: qe,
|
|
1660
|
-
SinkPipeline:
|
|
1661
|
-
SourcePipeline:
|
|
1660
|
+
SinkPipeline: bt,
|
|
1661
|
+
SourcePipeline: vt,
|
|
1662
1662
|
StaticFactory: ua,
|
|
1663
1663
|
StreamChannelData: wt,
|
|
1664
1664
|
StreamChannelValue: xt,
|
|
@@ -1669,10 +1669,10 @@ const Yo = {
|
|
|
1669
1669
|
WithinBounds: je,
|
|
1670
1670
|
booleanSinkSpecZ: Un,
|
|
1671
1671
|
booleanSinkTransformerSpecZ: zi,
|
|
1672
|
-
booleanSourceSpecZ:
|
|
1672
|
+
booleanSourceSpecZ: Os,
|
|
1673
1673
|
booleanSourceTransformerSpecZ: Wi,
|
|
1674
1674
|
booleanStatus: ho,
|
|
1675
|
-
booleanStatusProps:
|
|
1675
|
+
booleanStatusProps: va,
|
|
1676
1676
|
channelData: Ji,
|
|
1677
1677
|
colorGradient: go,
|
|
1678
1678
|
colorGradientProps: Ta,
|
|
@@ -1694,13 +1694,13 @@ const Yo = {
|
|
|
1694
1694
|
noopBooleanSourceSpec: Ds,
|
|
1695
1695
|
noopColorSourceSpec: Nn,
|
|
1696
1696
|
noopNumericSinkSpec: Wr,
|
|
1697
|
-
noopNumericSourceSpec:
|
|
1698
|
-
noopSeriesSourceSpec:
|
|
1699
|
-
noopStatusSourceSpec:
|
|
1700
|
-
noopStringSourceSpec:
|
|
1697
|
+
noopNumericSourceSpec: Gr,
|
|
1698
|
+
noopSeriesSourceSpec: Vr,
|
|
1699
|
+
noopStatusSourceSpec: Ys,
|
|
1700
|
+
noopStringSourceSpec: Xr,
|
|
1701
1701
|
numberSinkSpecZ: ta,
|
|
1702
1702
|
numberSourceSpecZ: ea,
|
|
1703
|
-
providerStateZ:
|
|
1703
|
+
providerStateZ: Oa,
|
|
1704
1704
|
rollingAverage: po,
|
|
1705
1705
|
rollingAverageProps: xa,
|
|
1706
1706
|
scaleNumber: mo,
|
|
@@ -1708,11 +1708,11 @@ const Yo = {
|
|
|
1708
1708
|
seriesSourceSpecZ: cn,
|
|
1709
1709
|
setContext: ka,
|
|
1710
1710
|
setpoint: lo,
|
|
1711
|
-
sinkPipeline:
|
|
1711
|
+
sinkPipeline: Xi,
|
|
1712
1712
|
sinkPipelinePropsZ: ia,
|
|
1713
1713
|
sinkSpecZ: Zn,
|
|
1714
1714
|
sinkTransformerSpecZ: Jr,
|
|
1715
|
-
sourcePipeline:
|
|
1715
|
+
sourcePipeline: Gi,
|
|
1716
1716
|
sourcePipelinePropsZ: aa,
|
|
1717
1717
|
sourceSpecZ: we,
|
|
1718
1718
|
sourceTransformerSpecZ: Qr,
|
|
@@ -1723,7 +1723,7 @@ const Yo = {
|
|
|
1723
1723
|
streamChannelValuePropsZ: oa,
|
|
1724
1724
|
stringSourceSpecZ: na,
|
|
1725
1725
|
stringifyNumber: fo,
|
|
1726
|
-
stringifyNumberProps:
|
|
1726
|
+
stringifyNumberProps: ba,
|
|
1727
1727
|
useChildContext: Pa,
|
|
1728
1728
|
useContext: $n,
|
|
1729
1729
|
useSink: $t,
|
|
@@ -1881,7 +1881,7 @@ function Ia(t, n) {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
function Ft() {
|
|
1883
1883
|
}
|
|
1884
|
-
var Rt = 0.7, fn = 1 / Rt, Fe = "\\s*([+-]?\\d+)\\s*", Mt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ie = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", zo = /^#([0-9a-f]{3,8})$/, Wo = new RegExp(`^rgb\\(${Fe},${Fe},${Fe}\\)$`),
|
|
1884
|
+
var Rt = 0.7, fn = 1 / Rt, Fe = "\\s*([+-]?\\d+)\\s*", Mt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ie = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", zo = /^#([0-9a-f]{3,8})$/, Wo = new RegExp(`^rgb\\(${Fe},${Fe},${Fe}\\)$`), Go = new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`), Xo = new RegExp(`^rgba\\(${Fe},${Fe},${Fe},${Mt}\\)$`), Vo = new RegExp(`^rgba\\(${ie},${ie},${ie},${Mt}\\)$`), Ko = new RegExp(`^hsl\\(${Mt},${ie},${ie}\\)$`), Qo = new RegExp(`^hsla\\(${Mt},${ie},${ie},${Mt}\\)$`), sr = {
|
|
1885
1885
|
aliceblue: 15792383,
|
|
1886
1886
|
antiquewhite: 16444375,
|
|
1887
1887
|
aqua: 65535,
|
|
@@ -2060,7 +2060,7 @@ function ar() {
|
|
|
2060
2060
|
}
|
|
2061
2061
|
function Dt(t) {
|
|
2062
2062
|
var n, e;
|
|
2063
|
-
return t = (t + "").trim().toLowerCase(), (n = zo.exec(t)) ? (e = n[1].length, n = parseInt(n[1], 16), e === 6 ? ir(n) : e === 3 ? new z(n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, (n & 15) << 4 | n & 15, 1) : e === 8 ? zt(n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, (n & 255) / 255) : e === 4 ? zt(n >> 12 & 15 | n >> 8 & 240, n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, ((n & 15) << 4 | n & 15) / 255) : null) : (n = Wo.exec(t)) ? new z(n[1], n[2], n[3], 1) : (n =
|
|
2063
|
+
return t = (t + "").trim().toLowerCase(), (n = zo.exec(t)) ? (e = n[1].length, n = parseInt(n[1], 16), e === 6 ? ir(n) : e === 3 ? new z(n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, (n & 15) << 4 | n & 15, 1) : e === 8 ? zt(n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, (n & 255) / 255) : e === 4 ? zt(n >> 12 & 15 | n >> 8 & 240, n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, ((n & 15) << 4 | n & 15) / 255) : null) : (n = Wo.exec(t)) ? new z(n[1], n[2], n[3], 1) : (n = Go.exec(t)) ? new z(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, 1) : (n = Xo.exec(t)) ? zt(n[1], n[2], n[3], n[4]) : (n = Vo.exec(t)) ? zt(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, n[4]) : (n = Ko.exec(t)) ? cr(n[1], n[2] / 100, n[3] / 100, 1) : (n = Qo.exec(t)) ? cr(n[1], n[2] / 100, n[3] / 100, n[4]) : sr.hasOwnProperty(t) ? ir(sr[t]) : t === "transparent" ? new z(NaN, NaN, NaN, 0) : null;
|
|
2064
2064
|
}
|
|
2065
2065
|
function ir(t) {
|
|
2066
2066
|
return new z(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
|
|
@@ -2289,13 +2289,13 @@ function as(t, n) {
|
|
|
2289
2289
|
return (e - t) / n;
|
|
2290
2290
|
} : ml(isNaN(n) ? NaN : 0.5);
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2292
|
+
function vl(t, n) {
|
|
2293
2293
|
var e;
|
|
2294
2294
|
return t > n && (e = t, t = n, n = e), function(s) {
|
|
2295
2295
|
return Math.max(t, Math.min(n, s));
|
|
2296
2296
|
};
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function bl(t, n, e) {
|
|
2299
2299
|
var s = t[0], r = t[1], a = n[0], i = n[1];
|
|
2300
2300
|
return r < s ? (s = as(r, s), a = e(i, a)) : (s = as(s, r), a = e(a, i)), function(o) {
|
|
2301
2301
|
return a(s(o));
|
|
@@ -2317,7 +2317,7 @@ function Tl() {
|
|
|
2317
2317
|
var t = dr, n = dr, e = Hs, s, r, a, i = Ze, o, l, c;
|
|
2318
2318
|
function h() {
|
|
2319
2319
|
var m = Math.min(t.length, n.length);
|
|
2320
|
-
return i !== Ze && (i =
|
|
2320
|
+
return i !== Ze && (i = vl(t[0], t[m - 1])), o = m > 2 ? xl : bl, l = c = null, f;
|
|
2321
2321
|
}
|
|
2322
2322
|
function f(m) {
|
|
2323
2323
|
return m == null || isNaN(m = +m) ? a : (l || (l = o(t.map(s), n, e)))(s(i(m)));
|
|
@@ -2336,8 +2336,8 @@ function Tl() {
|
|
|
2336
2336
|
return arguments.length ? (e = m, h()) : e;
|
|
2337
2337
|
}, f.unknown = function(m) {
|
|
2338
2338
|
return arguments.length ? (a = m, f) : a;
|
|
2339
|
-
}, function(m,
|
|
2340
|
-
return s = m, r =
|
|
2339
|
+
}, function(m, b) {
|
|
2340
|
+
return s = m, r = b, h();
|
|
2341
2341
|
};
|
|
2342
2342
|
}
|
|
2343
2343
|
function Ba() {
|
|
@@ -2447,28 +2447,28 @@ function Rl(t) {
|
|
|
2447
2447
|
var n = t.grouping === void 0 || t.thousands === void 0 ? gr : Sl(mr.call(t.grouping, Number), t.thousands + ""), e = t.currency === void 0 ? "" : t.currency[0] + "", s = t.currency === void 0 ? "" : t.currency[1] + "", r = t.decimal === void 0 ? "." : t.decimal + "", a = t.numerals === void 0 ? gr : Cl(mr.call(t.numerals, String)), i = t.percent === void 0 ? "%" : t.percent + "", o = t.minus === void 0 ? "−" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + "";
|
|
2448
2448
|
function c(f) {
|
|
2449
2449
|
f = yn(f);
|
|
2450
|
-
var m = f.fill,
|
|
2451
|
-
A === "n" ? (L = !0, A = "g") : pr[A] || (R === void 0 && (R = 12), N = !0, A = "g"), (T || m === "0" &&
|
|
2452
|
-
var C =
|
|
2450
|
+
var m = f.fill, b = f.align, E = f.sign, O = f.symbol, T = f.zero, w = f.width, L = f.comma, R = f.precision, N = f.trim, A = f.type;
|
|
2451
|
+
A === "n" ? (L = !0, A = "g") : pr[A] || (R === void 0 && (R = 12), N = !0, A = "g"), (T || m === "0" && b === "=") && (T = !0, m = "0", b = "=");
|
|
2452
|
+
var C = O === "$" ? e : O === "#" && /[boxX]/.test(A) ? "0" + A.toLowerCase() : "", U = O === "$" ? s : /[%p]/.test(A) ? i : "", te = pr[A], De = /[defgprs%]/.test(A);
|
|
2453
2453
|
R = R === void 0 ? 6 : /[gprs]/.test(A) ? Math.max(1, Math.min(21, R)) : Math.max(0, Math.min(20, R));
|
|
2454
2454
|
function me(M) {
|
|
2455
|
-
var le = C, j = U, ye, Ht,
|
|
2455
|
+
var le = C, j = U, ye, Ht, Ye;
|
|
2456
2456
|
if (A === "c")
|
|
2457
2457
|
j = te(M) + j, M = "";
|
|
2458
2458
|
else {
|
|
2459
2459
|
M = +M;
|
|
2460
|
-
var
|
|
2461
|
-
if (M = isNaN(M) ? l : te(Math.abs(M), R), N && (M = kl(M)),
|
|
2460
|
+
var Oe = M < 0 || 1 / M < 0;
|
|
2461
|
+
if (M = isNaN(M) ? l : te(Math.abs(M), R), N && (M = kl(M)), Oe && +M == 0 && E !== "+" && (Oe = !1), le = (Oe ? E === "(" ? E : o : E === "-" || E === "(" ? "" : E) + le, j = (A === "s" ? yr[8 + _a / 3] : "") + j + (Oe && E === "(" ? ")" : ""), De) {
|
|
2462
2462
|
for (ye = -1, Ht = M.length; ++ye < Ht; )
|
|
2463
|
-
if (
|
|
2464
|
-
j = (
|
|
2463
|
+
if (Ye = M.charCodeAt(ye), 48 > Ye || Ye > 57) {
|
|
2464
|
+
j = (Ye === 46 ? r + M.slice(ye + 1) : M.slice(ye)) + j, M = M.slice(0, ye);
|
|
2465
2465
|
break;
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
2469
|
L && !T && (M = n(M, 1 / 0));
|
|
2470
2470
|
var Le = le.length + M.length + j.length, ne = Le < w ? new Array(w - Le + 1).join(m) : "";
|
|
2471
|
-
switch (L && T && (M = n(ne + M, ne.length ? w - j.length : 1 / 0), ne = ""),
|
|
2471
|
+
switch (L && T && (M = n(ne + M, ne.length ? w - j.length : 1 / 0), ne = ""), b) {
|
|
2472
2472
|
case "<":
|
|
2473
2473
|
M = le + M + j + ne;
|
|
2474
2474
|
break;
|
|
@@ -2489,9 +2489,9 @@ function Rl(t) {
|
|
|
2489
2489
|
}, me;
|
|
2490
2490
|
}
|
|
2491
2491
|
function h(f, m) {
|
|
2492
|
-
var
|
|
2492
|
+
var b = c((f = yn(f), f.type = "f", f)), E = Math.max(-8, Math.min(8, Math.floor(Ke(m) / 3))) * 3, O = Math.pow(10, -E), T = yr[8 + E / 3];
|
|
2493
2493
|
return function(w) {
|
|
2494
|
-
return
|
|
2494
|
+
return b(O * w) + T;
|
|
2495
2495
|
};
|
|
2496
2496
|
}
|
|
2497
2497
|
return {
|
|
@@ -2499,22 +2499,22 @@ function Rl(t) {
|
|
|
2499
2499
|
formatPrefix: h
|
|
2500
2500
|
};
|
|
2501
2501
|
}
|
|
2502
|
-
var
|
|
2502
|
+
var Gt, $a, Fa;
|
|
2503
2503
|
Ml({
|
|
2504
2504
|
thousands: ",",
|
|
2505
2505
|
grouping: [3],
|
|
2506
2506
|
currency: ["$", ""]
|
|
2507
2507
|
});
|
|
2508
2508
|
function Ml(t) {
|
|
2509
|
-
return
|
|
2509
|
+
return Gt = Rl(t), $a = Gt.format, Fa = Gt.formatPrefix, Gt;
|
|
2510
2510
|
}
|
|
2511
2511
|
function Dl(t) {
|
|
2512
2512
|
return Math.max(0, -Ke(Math.abs(t)));
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function Yl(t, n) {
|
|
2515
2515
|
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Ke(n) / 3))) * 3 - Ke(Math.abs(t)));
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function Ol(t, n) {
|
|
2518
2518
|
return t = Math.abs(t), n = Math.abs(n) - t, Math.max(0, Ke(n) - Ke(t)) + 1;
|
|
2519
2519
|
}
|
|
2520
2520
|
function Ll(t, n, e, s) {
|
|
@@ -2522,14 +2522,14 @@ function Ll(t, n, e, s) {
|
|
|
2522
2522
|
switch (s = yn(s ?? ",f"), s.type) {
|
|
2523
2523
|
case "s": {
|
|
2524
2524
|
var i = Math.max(Math.abs(t), Math.abs(n));
|
|
2525
|
-
return s.precision == null && !isNaN(a =
|
|
2525
|
+
return s.precision == null && !isNaN(a = Yl(r, i)) && (s.precision = a), Fa(s, i);
|
|
2526
2526
|
}
|
|
2527
2527
|
case "":
|
|
2528
2528
|
case "e":
|
|
2529
2529
|
case "g":
|
|
2530
2530
|
case "p":
|
|
2531
2531
|
case "r": {
|
|
2532
|
-
s.precision == null && !isNaN(a =
|
|
2532
|
+
s.precision == null && !isNaN(a = Ol(r, Math.max(Math.abs(t), Math.abs(n)))) && (s.precision = a - (s.type === "e"));
|
|
2533
2533
|
break;
|
|
2534
2534
|
}
|
|
2535
2535
|
case "f":
|
|
@@ -2576,7 +2576,7 @@ function Il(t, n) {
|
|
|
2576
2576
|
var e = 0, s = t.length - 1, r = t[e], a = t[s], i;
|
|
2577
2577
|
return a < r && (i = e, e = s, s = i, i = r, r = a, a = i), t[e] = n.floor(r), t[s] = n.ceil(a), t;
|
|
2578
2578
|
}
|
|
2579
|
-
const Wn = /* @__PURE__ */ new Date(),
|
|
2579
|
+
const Wn = /* @__PURE__ */ new Date(), Gn = /* @__PURE__ */ new Date();
|
|
2580
2580
|
function B(t, n, e, s) {
|
|
2581
2581
|
function r(a) {
|
|
2582
2582
|
return t(a = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+a)), a;
|
|
@@ -2602,42 +2602,42 @@ function B(t, n, e, s) {
|
|
|
2602
2602
|
else for (; --o >= 0; )
|
|
2603
2603
|
for (; n(i, 1), !a(i); )
|
|
2604
2604
|
;
|
|
2605
|
-
}), e && (r.count = (a, i) => (Wn.setTime(+a),
|
|
2605
|
+
}), e && (r.count = (a, i) => (Wn.setTime(+a), Gn.setTime(+i), t(Wn), t(Gn), Math.floor(e(Wn, Gn))), r.every = (a) => (a = Math.floor(a), !isFinite(a) || !(a > 0) ? null : a > 1 ? r.filter(s ? (i) => s(i) % a === 0 : (i) => r.count(0, i) % a === 0) : r)), r;
|
|
2606
2606
|
}
|
|
2607
|
-
const
|
|
2607
|
+
const vn = B(() => {
|
|
2608
2608
|
}, (t, n) => {
|
|
2609
2609
|
t.setTime(+t + n);
|
|
2610
2610
|
}, (t, n) => n - t);
|
|
2611
|
-
|
|
2611
|
+
vn.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? B((n) => {
|
|
2612
2612
|
n.setTime(Math.floor(n / t) * t);
|
|
2613
2613
|
}, (n, e) => {
|
|
2614
2614
|
n.setTime(+n + e * t);
|
|
2615
|
-
}, (n, e) => (e - n) / t) :
|
|
2616
|
-
|
|
2617
|
-
const ce = 1e3, Q = ce * 60, ue = Q * 60, de = ue * 24, Ws = de * 7,
|
|
2615
|
+
}, (n, e) => (e - n) / t) : vn);
|
|
2616
|
+
vn.range;
|
|
2617
|
+
const ce = 1e3, Q = ce * 60, ue = Q * 60, de = ue * 24, Ws = de * 7, vr = de * 30, Xn = de * 365, Ue = B((t) => {
|
|
2618
2618
|
t.setTime(t - t.getMilliseconds());
|
|
2619
2619
|
}, (t, n) => {
|
|
2620
2620
|
t.setTime(+t + n * ce);
|
|
2621
2621
|
}, (t, n) => (n - t) / ce, (t) => t.getUTCSeconds());
|
|
2622
2622
|
Ue.range;
|
|
2623
|
-
const
|
|
2623
|
+
const Gs = B((t) => {
|
|
2624
2624
|
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ce);
|
|
2625
2625
|
}, (t, n) => {
|
|
2626
2626
|
t.setTime(+t + n * Q);
|
|
2627
2627
|
}, (t, n) => (n - t) / Q, (t) => t.getMinutes());
|
|
2628
|
-
|
|
2628
|
+
Gs.range;
|
|
2629
2629
|
const Nl = B((t) => {
|
|
2630
2630
|
t.setUTCSeconds(0, 0);
|
|
2631
2631
|
}, (t, n) => {
|
|
2632
2632
|
t.setTime(+t + n * Q);
|
|
2633
2633
|
}, (t, n) => (n - t) / Q, (t) => t.getUTCMinutes());
|
|
2634
2634
|
Nl.range;
|
|
2635
|
-
const
|
|
2635
|
+
const Xs = B((t) => {
|
|
2636
2636
|
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ce - t.getMinutes() * Q);
|
|
2637
2637
|
}, (t, n) => {
|
|
2638
2638
|
t.setTime(+t + n * ue);
|
|
2639
2639
|
}, (t, n) => (n - t) / ue, (t) => t.getHours());
|
|
2640
|
-
|
|
2640
|
+
Xs.range;
|
|
2641
2641
|
const Zl = B((t) => {
|
|
2642
2642
|
t.setUTCMinutes(0, 0, 0);
|
|
2643
2643
|
}, (t, n) => {
|
|
@@ -2651,12 +2651,12 @@ const qt = B(
|
|
|
2651
2651
|
(t) => t.getDate() - 1
|
|
2652
2652
|
);
|
|
2653
2653
|
qt.range;
|
|
2654
|
-
const
|
|
2654
|
+
const Vs = B((t) => {
|
|
2655
2655
|
t.setUTCHours(0, 0, 0, 0);
|
|
2656
2656
|
}, (t, n) => {
|
|
2657
2657
|
t.setUTCDate(t.getUTCDate() + n);
|
|
2658
2658
|
}, (t, n) => (n - t) / de, (t) => t.getUTCDate() - 1);
|
|
2659
|
-
|
|
2659
|
+
Vs.range;
|
|
2660
2660
|
const Ul = B((t) => {
|
|
2661
2661
|
t.setUTCHours(0, 0, 0, 0);
|
|
2662
2662
|
}, (t, n) => {
|
|
@@ -2670,9 +2670,9 @@ function Re(t) {
|
|
|
2670
2670
|
n.setDate(n.getDate() + e * 7);
|
|
2671
2671
|
}, (n, e) => (e - n - (e.getTimezoneOffset() - n.getTimezoneOffset()) * Q) / Ws);
|
|
2672
2672
|
}
|
|
2673
|
-
const Fn = Re(0),
|
|
2673
|
+
const Fn = Re(0), bn = Re(1), Bl = Re(2), _l = Re(3), Qe = Re(4), $l = Re(5), Fl = Re(6);
|
|
2674
2674
|
Fn.range;
|
|
2675
|
-
|
|
2675
|
+
bn.range;
|
|
2676
2676
|
Bl.range;
|
|
2677
2677
|
_l.range;
|
|
2678
2678
|
Qe.range;
|
|
@@ -2727,7 +2727,7 @@ ke.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : B((n) => {
|
|
|
2727
2727
|
n.setUTCFullYear(n.getUTCFullYear() + e * t);
|
|
2728
2728
|
});
|
|
2729
2729
|
ke.range;
|
|
2730
|
-
function
|
|
2730
|
+
function Gl(t, n, e, s, r, a) {
|
|
2731
2731
|
const i = [
|
|
2732
2732
|
[Ue, 1, ce],
|
|
2733
2733
|
[Ue, 5, 5 * ce],
|
|
@@ -2744,27 +2744,27 @@ function Xl(t, n, e, s, r, a) {
|
|
|
2744
2744
|
[s, 1, de],
|
|
2745
2745
|
[s, 2, 2 * de],
|
|
2746
2746
|
[e, 1, Ws],
|
|
2747
|
-
[n, 1,
|
|
2748
|
-
[n, 3, 3 *
|
|
2749
|
-
[t, 1,
|
|
2747
|
+
[n, 1, vr],
|
|
2748
|
+
[n, 3, 3 * vr],
|
|
2749
|
+
[t, 1, Xn]
|
|
2750
2750
|
];
|
|
2751
2751
|
function o(c, h, f) {
|
|
2752
2752
|
const m = h < c;
|
|
2753
2753
|
m && ([c, h] = [h, c]);
|
|
2754
|
-
const
|
|
2754
|
+
const b = f && typeof f.range == "function" ? f : l(c, h, f), E = b ? b.range(c, +h + 1) : [];
|
|
2755
2755
|
return m ? E.reverse() : E;
|
|
2756
2756
|
}
|
|
2757
2757
|
function l(c, h, f) {
|
|
2758
|
-
const m = Math.abs(h - c) / f,
|
|
2759
|
-
if (
|
|
2760
|
-
if (
|
|
2761
|
-
const [E,
|
|
2762
|
-
return E.every(
|
|
2758
|
+
const m = Math.abs(h - c) / f, b = Fs(([, , T]) => T).right(i, m);
|
|
2759
|
+
if (b === i.length) return t.every(ns(c / Xn, h / Xn, f));
|
|
2760
|
+
if (b === 0) return vn.every(Math.max(ns(c, h, f), 1));
|
|
2761
|
+
const [E, O] = i[m / i[b - 1][2] < i[b][2] / m ? b - 1 : b];
|
|
2762
|
+
return E.every(O);
|
|
2763
2763
|
}
|
|
2764
2764
|
return [o, l];
|
|
2765
2765
|
}
|
|
2766
|
-
const [
|
|
2767
|
-
function
|
|
2766
|
+
const [Xl, Vl] = Gl(fe, Ks, Fn, qt, Xs, Gs);
|
|
2767
|
+
function Vn(t) {
|
|
2768
2768
|
if (0 <= t.y && t.y < 100) {
|
|
2769
2769
|
var n = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
|
|
2770
2770
|
return n.setFullYear(t.y), n;
|
|
@@ -2782,8 +2782,8 @@ function st(t, n, e) {
|
|
|
2782
2782
|
return { y: t, m: n, d: e, H: 0, M: 0, S: 0, L: 0 };
|
|
2783
2783
|
}
|
|
2784
2784
|
function Kl(t) {
|
|
2785
|
-
var n = t.dateTime, e = t.date, s = t.time, r = t.periods, a = t.days, i = t.shortDays, o = t.months, l = t.shortMonths, c = rt(r), h = at(r), f = rt(a), m = at(a),
|
|
2786
|
-
a:
|
|
2785
|
+
var n = t.dateTime, e = t.date, s = t.time, r = t.periods, a = t.days, i = t.shortDays, o = t.months, l = t.shortMonths, c = rt(r), h = at(r), f = rt(a), m = at(a), b = rt(i), E = at(i), O = rt(o), T = at(o), w = rt(l), L = at(l), R = {
|
|
2786
|
+
a: Oe,
|
|
2787
2787
|
A: Le,
|
|
2788
2788
|
b: ne,
|
|
2789
2789
|
B: oi,
|
|
@@ -2792,10 +2792,10 @@ function Kl(t) {
|
|
|
2792
2792
|
e: Cr,
|
|
2793
2793
|
f: xc,
|
|
2794
2794
|
g: Dc,
|
|
2795
|
-
G:
|
|
2795
|
+
G: Oc,
|
|
2796
2796
|
H: yc,
|
|
2797
|
-
I:
|
|
2798
|
-
j:
|
|
2797
|
+
I: vc,
|
|
2798
|
+
j: bc,
|
|
2799
2799
|
L: Ha,
|
|
2800
2800
|
m: Tc,
|
|
2801
2801
|
M: wc,
|
|
@@ -2812,7 +2812,7 @@ function Kl(t) {
|
|
|
2812
2812
|
x: null,
|
|
2813
2813
|
X: null,
|
|
2814
2814
|
y: Mc,
|
|
2815
|
-
Y:
|
|
2815
|
+
Y: Yc,
|
|
2816
2816
|
Z: Lc,
|
|
2817
2817
|
"%": kr
|
|
2818
2818
|
}, N = {
|
|
@@ -2825,7 +2825,7 @@ function Kl(t) {
|
|
|
2825
2825
|
e: Er,
|
|
2826
2826
|
f: Zc,
|
|
2827
2827
|
g: Wc,
|
|
2828
|
-
G:
|
|
2828
|
+
G: Xc,
|
|
2829
2829
|
H: Ac,
|
|
2830
2830
|
I: Ic,
|
|
2831
2831
|
j: Nc,
|
|
@@ -2845,8 +2845,8 @@ function Kl(t) {
|
|
|
2845
2845
|
x: null,
|
|
2846
2846
|
X: null,
|
|
2847
2847
|
y: zc,
|
|
2848
|
-
Y:
|
|
2849
|
-
Z:
|
|
2848
|
+
Y: Gc,
|
|
2849
|
+
Z: Vc,
|
|
2850
2850
|
"%": kr
|
|
2851
2851
|
}, A = {
|
|
2852
2852
|
a: me,
|
|
@@ -2876,7 +2876,7 @@ function Kl(t) {
|
|
|
2876
2876
|
w: tc,
|
|
2877
2877
|
W: ac,
|
|
2878
2878
|
x: Ht,
|
|
2879
|
-
X:
|
|
2879
|
+
X: Ye,
|
|
2880
2880
|
y: Tr,
|
|
2881
2881
|
Y: xr,
|
|
2882
2882
|
Z: ic,
|
|
@@ -2885,9 +2885,9 @@ function Kl(t) {
|
|
|
2885
2885
|
R.x = C(e, R), R.X = C(s, R), R.c = C(n, R), N.x = C(e, N), N.X = C(s, N), N.c = C(n, N);
|
|
2886
2886
|
function C(x, P) {
|
|
2887
2887
|
return function(D) {
|
|
2888
|
-
var y = [], H = -1, I = 0, W = x.length,
|
|
2888
|
+
var y = [], H = -1, I = 0, W = x.length, G, Se, Qs;
|
|
2889
2889
|
for (D instanceof Date || (D = /* @__PURE__ */ new Date(+D)); ++H < W; )
|
|
2890
|
-
x.charCodeAt(H) === 37 && (y.push(x.slice(I, H)), (Se =
|
|
2890
|
+
x.charCodeAt(H) === 37 && (y.push(x.slice(I, H)), (Se = br[G = x.charAt(++H)]) != null ? G = x.charAt(++H) : Se = G === "e" ? " " : "0", (Qs = P[G]) && (G = Qs(D, Se)), y.push(G), I = H + 1);
|
|
2891
2891
|
return y.push(x.slice(I, H)), y.join("");
|
|
2892
2892
|
};
|
|
2893
2893
|
}
|
|
@@ -2899,17 +2899,17 @@ function Kl(t) {
|
|
|
2899
2899
|
if ("s" in y) return new Date(y.s * 1e3 + ("L" in y ? y.L : 0));
|
|
2900
2900
|
if (P && !("Z" in y) && (y.Z = 0), "p" in y && (y.H = y.H % 12 + y.p * 12), y.m === void 0 && (y.m = "q" in y ? y.q : 0), "V" in y) {
|
|
2901
2901
|
if (y.V < 1 || y.V > 53) return null;
|
|
2902
|
-
"w" in y || (y.w = 1), "Z" in y ? (I = Kn(st(y.y, 0, 1)), W = I.getUTCDay(), I = W > 4 || W === 0 ? xn.ceil(I) : xn(I), I =
|
|
2903
|
-
} else ("W" in y || "U" in y) && ("w" in y || (y.w = "u" in y ? y.u % 7 : "W" in y ? 1 : 0), W = "Z" in y ? Kn(st(y.y, 0, 1)).getUTCDay() :
|
|
2904
|
-
return "Z" in y ? (y.H += y.Z / 100 | 0, y.M += y.Z % 100, Kn(y)) :
|
|
2902
|
+
"w" in y || (y.w = 1), "Z" in y ? (I = Kn(st(y.y, 0, 1)), W = I.getUTCDay(), I = W > 4 || W === 0 ? xn.ceil(I) : xn(I), I = Vs.offset(I, (y.V - 1) * 7), y.y = I.getUTCFullYear(), y.m = I.getUTCMonth(), y.d = I.getUTCDate() + (y.w + 6) % 7) : (I = Vn(st(y.y, 0, 1)), W = I.getDay(), I = W > 4 || W === 0 ? bn.ceil(I) : bn(I), I = qt.offset(I, (y.V - 1) * 7), y.y = I.getFullYear(), y.m = I.getMonth(), y.d = I.getDate() + (y.w + 6) % 7);
|
|
2903
|
+
} else ("W" in y || "U" in y) && ("w" in y || (y.w = "u" in y ? y.u % 7 : "W" in y ? 1 : 0), W = "Z" in y ? Kn(st(y.y, 0, 1)).getUTCDay() : Vn(st(y.y, 0, 1)).getDay(), y.m = 0, y.d = "W" in y ? (y.w + 6) % 7 + y.W * 7 - (W + 5) % 7 : y.w + y.U * 7 - (W + 6) % 7);
|
|
2904
|
+
return "Z" in y ? (y.H += y.Z / 100 | 0, y.M += y.Z % 100, Kn(y)) : Vn(y);
|
|
2905
2905
|
};
|
|
2906
2906
|
}
|
|
2907
2907
|
function te(x, P, D, y) {
|
|
2908
|
-
for (var H = 0, I = P.length, W = D.length,
|
|
2908
|
+
for (var H = 0, I = P.length, W = D.length, G, Se; H < I; ) {
|
|
2909
2909
|
if (y >= W) return -1;
|
|
2910
|
-
if (
|
|
2911
|
-
if (
|
|
2912
|
-
} else if (
|
|
2910
|
+
if (G = P.charCodeAt(H++), G === 37) {
|
|
2911
|
+
if (G = P.charAt(H++), Se = A[G in br ? P.charAt(H++) : G], !Se || (y = Se(x, D, y)) < 0) return -1;
|
|
2912
|
+
} else if (G != D.charCodeAt(y++))
|
|
2913
2913
|
return -1;
|
|
2914
2914
|
}
|
|
2915
2915
|
return y;
|
|
@@ -2919,7 +2919,7 @@ function Kl(t) {
|
|
|
2919
2919
|
return y ? (x.p = h.get(y[0].toLowerCase()), D + y[0].length) : -1;
|
|
2920
2920
|
}
|
|
2921
2921
|
function me(x, P, D) {
|
|
2922
|
-
var y =
|
|
2922
|
+
var y = b.exec(P.slice(D));
|
|
2923
2923
|
return y ? (x.w = E.get(y[0].toLowerCase()), D + y[0].length) : -1;
|
|
2924
2924
|
}
|
|
2925
2925
|
function M(x, P, D) {
|
|
@@ -2931,7 +2931,7 @@ function Kl(t) {
|
|
|
2931
2931
|
return y ? (x.m = L.get(y[0].toLowerCase()), D + y[0].length) : -1;
|
|
2932
2932
|
}
|
|
2933
2933
|
function j(x, P, D) {
|
|
2934
|
-
var y =
|
|
2934
|
+
var y = O.exec(P.slice(D));
|
|
2935
2935
|
return y ? (x.m = T.get(y[0].toLowerCase()), D + y[0].length) : -1;
|
|
2936
2936
|
}
|
|
2937
2937
|
function ye(x, P, D) {
|
|
@@ -2940,10 +2940,10 @@ function Kl(t) {
|
|
|
2940
2940
|
function Ht(x, P, D) {
|
|
2941
2941
|
return te(x, e, P, D);
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2943
|
+
function Ye(x, P, D) {
|
|
2944
2944
|
return te(x, s, P, D);
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2946
|
+
function Oe(x) {
|
|
2947
2947
|
return i[x.getDay()];
|
|
2948
2948
|
}
|
|
2949
2949
|
function Le(x) {
|
|
@@ -3006,8 +3006,8 @@ function Kl(t) {
|
|
|
3006
3006
|
}
|
|
3007
3007
|
};
|
|
3008
3008
|
}
|
|
3009
|
-
var
|
|
3010
|
-
function
|
|
3009
|
+
var br = { "-": "", _: " ", 0: "0" }, _ = /^\s*\d+/, Ql = /^%/, Jl = /[\\^$*+?|[\]().{}]/g;
|
|
3010
|
+
function Y(t, n, e) {
|
|
3011
3011
|
var s = t < 0 ? "-" : "", r = (s ? -t : t) + "", a = r.length;
|
|
3012
3012
|
return s + (a < e ? new Array(e - a + 1).join(n) + r : r);
|
|
3013
3013
|
}
|
|
@@ -3101,130 +3101,130 @@ function mc(t, n, e) {
|
|
|
3101
3101
|
return s ? (t.s = +s[0], e + s[0].length) : -1;
|
|
3102
3102
|
}
|
|
3103
3103
|
function Cr(t, n) {
|
|
3104
|
-
return
|
|
3104
|
+
return Y(t.getDate(), n, 2);
|
|
3105
3105
|
}
|
|
3106
3106
|
function yc(t, n) {
|
|
3107
|
-
return
|
|
3108
|
-
}
|
|
3109
|
-
function bc(t, n) {
|
|
3110
|
-
return O(t.getHours() % 12 || 12, n, 2);
|
|
3107
|
+
return Y(t.getHours(), n, 2);
|
|
3111
3108
|
}
|
|
3112
3109
|
function vc(t, n) {
|
|
3113
|
-
return
|
|
3110
|
+
return Y(t.getHours() % 12 || 12, n, 2);
|
|
3111
|
+
}
|
|
3112
|
+
function bc(t, n) {
|
|
3113
|
+
return Y(1 + qt.count(fe(t), t), n, 3);
|
|
3114
3114
|
}
|
|
3115
3115
|
function Ha(t, n) {
|
|
3116
|
-
return
|
|
3116
|
+
return Y(t.getMilliseconds(), n, 3);
|
|
3117
3117
|
}
|
|
3118
3118
|
function xc(t, n) {
|
|
3119
3119
|
return Ha(t, n) + "000";
|
|
3120
3120
|
}
|
|
3121
3121
|
function Tc(t, n) {
|
|
3122
|
-
return
|
|
3122
|
+
return Y(t.getMonth() + 1, n, 2);
|
|
3123
3123
|
}
|
|
3124
3124
|
function wc(t, n) {
|
|
3125
|
-
return
|
|
3125
|
+
return Y(t.getMinutes(), n, 2);
|
|
3126
3126
|
}
|
|
3127
3127
|
function Sc(t, n) {
|
|
3128
|
-
return
|
|
3128
|
+
return Y(t.getSeconds(), n, 2);
|
|
3129
3129
|
}
|
|
3130
3130
|
function Cc(t) {
|
|
3131
3131
|
var n = t.getDay();
|
|
3132
3132
|
return n === 0 ? 7 : n;
|
|
3133
3133
|
}
|
|
3134
3134
|
function Ec(t, n) {
|
|
3135
|
-
return
|
|
3135
|
+
return Y(Fn.count(fe(t) - 1, t), n, 2);
|
|
3136
3136
|
}
|
|
3137
3137
|
function za(t) {
|
|
3138
3138
|
var n = t.getDay();
|
|
3139
3139
|
return n >= 4 || n === 0 ? Qe(t) : Qe.ceil(t);
|
|
3140
3140
|
}
|
|
3141
3141
|
function kc(t, n) {
|
|
3142
|
-
return t = za(t),
|
|
3142
|
+
return t = za(t), Y(Qe.count(fe(t), t) + (fe(t).getDay() === 4), n, 2);
|
|
3143
3143
|
}
|
|
3144
3144
|
function Pc(t) {
|
|
3145
3145
|
return t.getDay();
|
|
3146
3146
|
}
|
|
3147
3147
|
function Rc(t, n) {
|
|
3148
|
-
return
|
|
3148
|
+
return Y(bn.count(fe(t) - 1, t), n, 2);
|
|
3149
3149
|
}
|
|
3150
3150
|
function Mc(t, n) {
|
|
3151
|
-
return
|
|
3151
|
+
return Y(t.getFullYear() % 100, n, 2);
|
|
3152
3152
|
}
|
|
3153
3153
|
function Dc(t, n) {
|
|
3154
|
-
return t = za(t),
|
|
3155
|
-
}
|
|
3156
|
-
function Oc(t, n) {
|
|
3157
|
-
return O(t.getFullYear() % 1e4, n, 4);
|
|
3154
|
+
return t = za(t), Y(t.getFullYear() % 100, n, 2);
|
|
3158
3155
|
}
|
|
3159
3156
|
function Yc(t, n) {
|
|
3157
|
+
return Y(t.getFullYear() % 1e4, n, 4);
|
|
3158
|
+
}
|
|
3159
|
+
function Oc(t, n) {
|
|
3160
3160
|
var e = t.getDay();
|
|
3161
|
-
return t = e >= 4 || e === 0 ? Qe(t) : Qe.ceil(t),
|
|
3161
|
+
return t = e >= 4 || e === 0 ? Qe(t) : Qe.ceil(t), Y(t.getFullYear() % 1e4, n, 4);
|
|
3162
3162
|
}
|
|
3163
3163
|
function Lc(t) {
|
|
3164
3164
|
var n = t.getTimezoneOffset();
|
|
3165
|
-
return (n > 0 ? "-" : (n *= -1, "+")) +
|
|
3165
|
+
return (n > 0 ? "-" : (n *= -1, "+")) + Y(n / 60 | 0, "0", 2) + Y(n % 60, "0", 2);
|
|
3166
3166
|
}
|
|
3167
3167
|
function Er(t, n) {
|
|
3168
|
-
return
|
|
3168
|
+
return Y(t.getUTCDate(), n, 2);
|
|
3169
3169
|
}
|
|
3170
3170
|
function Ac(t, n) {
|
|
3171
|
-
return
|
|
3171
|
+
return Y(t.getUTCHours(), n, 2);
|
|
3172
3172
|
}
|
|
3173
3173
|
function Ic(t, n) {
|
|
3174
|
-
return
|
|
3174
|
+
return Y(t.getUTCHours() % 12 || 12, n, 2);
|
|
3175
3175
|
}
|
|
3176
3176
|
function Nc(t, n) {
|
|
3177
|
-
return
|
|
3177
|
+
return Y(1 + Vs.count(ke(t), t), n, 3);
|
|
3178
3178
|
}
|
|
3179
3179
|
function Wa(t, n) {
|
|
3180
|
-
return
|
|
3180
|
+
return Y(t.getUTCMilliseconds(), n, 3);
|
|
3181
3181
|
}
|
|
3182
3182
|
function Zc(t, n) {
|
|
3183
3183
|
return Wa(t, n) + "000";
|
|
3184
3184
|
}
|
|
3185
3185
|
function Uc(t, n) {
|
|
3186
|
-
return
|
|
3186
|
+
return Y(t.getUTCMonth() + 1, n, 2);
|
|
3187
3187
|
}
|
|
3188
3188
|
function Bc(t, n) {
|
|
3189
|
-
return
|
|
3189
|
+
return Y(t.getUTCMinutes(), n, 2);
|
|
3190
3190
|
}
|
|
3191
3191
|
function _c(t, n) {
|
|
3192
|
-
return
|
|
3192
|
+
return Y(t.getUTCSeconds(), n, 2);
|
|
3193
3193
|
}
|
|
3194
3194
|
function $c(t) {
|
|
3195
3195
|
var n = t.getUTCDay();
|
|
3196
3196
|
return n === 0 ? 7 : n;
|
|
3197
3197
|
}
|
|
3198
3198
|
function Fc(t, n) {
|
|
3199
|
-
return
|
|
3199
|
+
return Y(ja.count(ke(t) - 1, t), n, 2);
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function Ga(t) {
|
|
3202
3202
|
var n = t.getUTCDay();
|
|
3203
3203
|
return n >= 4 || n === 0 ? Je(t) : Je.ceil(t);
|
|
3204
3204
|
}
|
|
3205
3205
|
function qc(t, n) {
|
|
3206
|
-
return t =
|
|
3206
|
+
return t = Ga(t), Y(Je.count(ke(t), t) + (ke(t).getUTCDay() === 4), n, 2);
|
|
3207
3207
|
}
|
|
3208
3208
|
function jc(t) {
|
|
3209
3209
|
return t.getUTCDay();
|
|
3210
3210
|
}
|
|
3211
3211
|
function Hc(t, n) {
|
|
3212
|
-
return
|
|
3212
|
+
return Y(xn.count(ke(t) - 1, t), n, 2);
|
|
3213
3213
|
}
|
|
3214
3214
|
function zc(t, n) {
|
|
3215
|
-
return
|
|
3215
|
+
return Y(t.getUTCFullYear() % 100, n, 2);
|
|
3216
3216
|
}
|
|
3217
3217
|
function Wc(t, n) {
|
|
3218
|
-
return t =
|
|
3218
|
+
return t = Ga(t), Y(t.getUTCFullYear() % 100, n, 2);
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3220
|
+
function Gc(t, n) {
|
|
3221
|
+
return Y(t.getUTCFullYear() % 1e4, n, 4);
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function Xc(t, n) {
|
|
3224
3224
|
var e = t.getUTCDay();
|
|
3225
|
-
return t = e >= 4 || e === 0 ? Je(t) : Je.ceil(t),
|
|
3225
|
+
return t = e >= 4 || e === 0 ? Je(t) : Je.ceil(t), Y(t.getUTCFullYear() % 1e4, n, 4);
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3227
|
+
function Vc() {
|
|
3228
3228
|
return "+0000";
|
|
3229
3229
|
}
|
|
3230
3230
|
function kr() {
|
|
@@ -3236,7 +3236,7 @@ function Pr(t) {
|
|
|
3236
3236
|
function Rr(t) {
|
|
3237
3237
|
return Math.floor(+t / 1e3);
|
|
3238
3238
|
}
|
|
3239
|
-
var Ae,
|
|
3239
|
+
var Ae, Xa;
|
|
3240
3240
|
Kc({
|
|
3241
3241
|
dateTime: "%x, %X",
|
|
3242
3242
|
date: "%-m/%-d/%Y",
|
|
@@ -3248,7 +3248,7 @@ Kc({
|
|
|
3248
3248
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
3249
3249
|
});
|
|
3250
3250
|
function Kc(t) {
|
|
3251
|
-
return Ae = Kl(t),
|
|
3251
|
+
return Ae = Kl(t), Xa = Ae.format, Ae.parse, Ae.utcFormat, Ae.utcParse, Ae;
|
|
3252
3252
|
}
|
|
3253
3253
|
function Qc(t) {
|
|
3254
3254
|
return new Date(t);
|
|
@@ -3256,10 +3256,10 @@ function Qc(t) {
|
|
|
3256
3256
|
function Jc(t) {
|
|
3257
3257
|
return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
|
|
3258
3258
|
}
|
|
3259
|
-
function
|
|
3260
|
-
var h = Ba(), f = h.invert, m = h.domain,
|
|
3259
|
+
function Va(t, n, e, s, r, a, i, o, l, c) {
|
|
3260
|
+
var h = Ba(), f = h.invert, m = h.domain, b = c(".%L"), E = c(":%S"), O = c("%I:%M"), T = c("%I %p"), w = c("%a %d"), L = c("%b %d"), R = c("%B"), N = c("%Y");
|
|
3261
3261
|
function A(C) {
|
|
3262
|
-
return (l(C) < C ?
|
|
3262
|
+
return (l(C) < C ? b : o(C) < C ? E : i(C) < C ? O : a(C) < C ? T : s(C) < C ? r(C) < C ? w : L : e(C) < C ? R : N)(C);
|
|
3263
3263
|
}
|
|
3264
3264
|
return h.invert = function(C) {
|
|
3265
3265
|
return new Date(f(C));
|
|
@@ -3274,11 +3274,11 @@ function Ga(t, n, e, s, r, a, i, o, l, c) {
|
|
|
3274
3274
|
var U = m();
|
|
3275
3275
|
return (!C || typeof C.range != "function") && (C = n(U[0], U[U.length - 1], C ?? 10)), C ? m(Il(U, C)) : h;
|
|
3276
3276
|
}, h.copy = function() {
|
|
3277
|
-
return Ua(h,
|
|
3277
|
+
return Ua(h, Va(t, n, e, s, r, a, i, o, l, c));
|
|
3278
3278
|
}, h;
|
|
3279
3279
|
}
|
|
3280
3280
|
function eu() {
|
|
3281
|
-
return Aa.apply(
|
|
3281
|
+
return Aa.apply(Va(Xl, Vl, fe, Ks, Fn, qt, Xs, Gs, Ue, Xa).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
3282
3282
|
}
|
|
3283
3283
|
const Mr = [
|
|
3284
3284
|
S.NANOSECOND,
|
|
@@ -3493,18 +3493,18 @@ const is = (t, n) => {
|
|
|
3493
3493
|
linear: (t) => new ru(t),
|
|
3494
3494
|
time: (t) => new su(t)
|
|
3495
3495
|
}, Ja = Qa.extend({
|
|
3496
|
-
color:
|
|
3496
|
+
color: v.colorZ,
|
|
3497
3497
|
type: Ka.optional().default("linear"),
|
|
3498
3498
|
font: d.string(),
|
|
3499
3499
|
showGrid: d.boolean().optional().default(!0),
|
|
3500
3500
|
location: re.outer,
|
|
3501
|
-
gridColor:
|
|
3502
|
-
}), oe = 5,
|
|
3501
|
+
gridColor: v.colorZ
|
|
3502
|
+
}), oe = 5, Yt = 6, jt = { useAtlas: !0 }, iu = {
|
|
3503
3503
|
bottom: (t, n) => new lu(t, n),
|
|
3504
3504
|
top: (t, n) => new cu(t, n),
|
|
3505
3505
|
left: (t, n) => new uu(t, n),
|
|
3506
3506
|
right: (t, n) => new hu(t, n)
|
|
3507
|
-
}, ou = (t, n, e) => iu[t](n, e),
|
|
3507
|
+
}, ou = (t, n, e) => iu[t](n, e), On = class On {
|
|
3508
3508
|
constructor(n, e) {
|
|
3509
3509
|
u(this, "renderCtx");
|
|
3510
3510
|
u(this, "state");
|
|
@@ -3528,19 +3528,19 @@ const is = (t, n) => {
|
|
|
3528
3528
|
maybeDrawGrid(n, e, s) {
|
|
3529
3529
|
const { showGrid: r, gridColor: a } = this.state;
|
|
3530
3530
|
if (r) {
|
|
3531
|
-
const i =
|
|
3532
|
-
l.beginPath(), l.strokeStyle =
|
|
3531
|
+
const i = On.START_BOUND, o = k.construct(n - 1, n + 1), { lower2d: l } = this.renderCtx;
|
|
3532
|
+
l.beginPath(), l.strokeStyle = v.hex(a), e.forEach((c) => {
|
|
3533
3533
|
k.contains(i, c.position) || k.contains(o, c.position) || this.drawLine(...s(c));
|
|
3534
3534
|
}), l.stroke();
|
|
3535
3535
|
}
|
|
3536
3536
|
}
|
|
3537
3537
|
setColor(n) {
|
|
3538
|
-
const e =
|
|
3538
|
+
const e = v.hex(n);
|
|
3539
3539
|
this.renderCtx.lower2d.strokeStyle = e, this.renderCtx.lower2d.fillStyle = e, this.renderCtx.lower2d.font = this.state.font;
|
|
3540
3540
|
}
|
|
3541
3541
|
};
|
|
3542
|
-
u(
|
|
3543
|
-
let et =
|
|
3542
|
+
u(On, "START_BOUND", k.construct(-1, 1));
|
|
3543
|
+
let et = On;
|
|
3544
3544
|
class lu extends et {
|
|
3545
3545
|
render(n) {
|
|
3546
3546
|
const { lower2d: e } = this.renderCtx, { plot: s, position: r } = n, { width: a, height: i } = p.dims(s), o = this.tickFactory.create({ ...n, size: a });
|
|
@@ -3552,7 +3552,7 @@ class lu extends et {
|
|
|
3552
3552
|
), e.fillText(
|
|
3553
3553
|
h.label,
|
|
3554
3554
|
r.x + h.position - c.width / 2,
|
|
3555
|
-
r.y + oe + c.height +
|
|
3555
|
+
r.y + oe + c.height + Yt,
|
|
3556
3556
|
void 0,
|
|
3557
3557
|
jt
|
|
3558
3558
|
);
|
|
@@ -3560,7 +3560,7 @@ class lu extends et {
|
|
|
3560
3560
|
return e.stroke(), this.maybeDrawGrid(a, o, (c) => [
|
|
3561
3561
|
g.translate(r, "x", c.position),
|
|
3562
3562
|
g.translate(r, { x: c.position, y: -i })
|
|
3563
|
-
]), { size: l.height + oe +
|
|
3563
|
+
]), { size: l.height + oe + Yt };
|
|
3564
3564
|
}
|
|
3565
3565
|
}
|
|
3566
3566
|
class cu extends et {
|
|
@@ -3574,7 +3574,7 @@ class cu extends et {
|
|
|
3574
3574
|
), e.fillText(
|
|
3575
3575
|
h.label,
|
|
3576
3576
|
i.x + h.position - c.width / 2,
|
|
3577
|
-
i.y - oe - c.height -
|
|
3577
|
+
i.y - oe - c.height - Yt,
|
|
3578
3578
|
void 0,
|
|
3579
3579
|
jt
|
|
3580
3580
|
);
|
|
@@ -3617,7 +3617,7 @@ class hu extends et {
|
|
|
3617
3617
|
g.translate(r, { x: oe, y: h.position })
|
|
3618
3618
|
), e.fillText(
|
|
3619
3619
|
h.label,
|
|
3620
|
-
r.x + oe +
|
|
3620
|
+
r.x + oe + Yt,
|
|
3621
3621
|
r.y + h.position + c.height / 2,
|
|
3622
3622
|
void 0,
|
|
3623
3623
|
jt
|
|
@@ -3626,7 +3626,7 @@ class hu extends et {
|
|
|
3626
3626
|
return e.stroke(), this.maybeDrawGrid(a, o, (c) => [
|
|
3627
3627
|
g.translateY(r, c.position),
|
|
3628
3628
|
g.translate(r, { x: -i, y: c.position })
|
|
3629
|
-
]), { size: l.width + oe +
|
|
3629
|
+
]), { size: l.width + oe + Yt };
|
|
3630
3630
|
}
|
|
3631
3631
|
}
|
|
3632
3632
|
const qn = Ja.extend({
|
|
@@ -3647,9 +3647,9 @@ const qn = Ja.extend({
|
|
|
3647
3647
|
upper: t + du
|
|
3648
3648
|
},
|
|
3649
3649
|
n
|
|
3650
|
-
), gu = k.DECIMAL,
|
|
3651
|
-
lower: Number(
|
|
3652
|
-
upper: Number(
|
|
3650
|
+
), gu = k.DECIMAL, Yr = Z.now(), mu = {
|
|
3651
|
+
lower: Number(Yr.valueOf()),
|
|
3652
|
+
upper: Number(Yr.add(S.HOUR).valueOf())
|
|
3653
3653
|
}, ei = (t) => t === "linear" ? gu : mu, yu = (t, n = 0.1, e) => {
|
|
3654
3654
|
const s = k.max(t.filter(k.isFinite));
|
|
3655
3655
|
if (!k.isFinite(s)) return ei(e);
|
|
@@ -3657,14 +3657,14 @@ const qn = Ja.extend({
|
|
|
3657
3657
|
if (a === r) return { lower: r - 1, upper: a + 1 };
|
|
3658
3658
|
const i = (a - r) * n;
|
|
3659
3659
|
return { lower: r - i, upper: a + i };
|
|
3660
|
-
},
|
|
3660
|
+
}, vu = 0.01, bu = 0.1;
|
|
3661
3661
|
class ti extends pe {
|
|
3662
3662
|
afterUpdate(n) {
|
|
3663
3663
|
var o;
|
|
3664
3664
|
const { internal: e } = this, { location: s, autoBoundUpdateInterval: r } = this.state;
|
|
3665
|
-
e.render =
|
|
3665
|
+
e.render = X.use(n);
|
|
3666
3666
|
const a = ge(n), i = ae.construct(s);
|
|
3667
|
-
(o = this.state).autoBoundPadding ?? (o.autoBoundPadding = i === "x" ?
|
|
3667
|
+
(o = this.state).autoBoundPadding ?? (o.autoBoundPadding = i === "x" ? bu : vu), e.core = ou(s, e.render, {
|
|
3668
3668
|
color: a.colors.gray.l10,
|
|
3669
3669
|
font: ot(a, { level: "small", code: !0 }),
|
|
3670
3670
|
gridColor: a.colors.gray.l1,
|
|
@@ -3716,7 +3716,7 @@ class ti extends pe {
|
|
|
3716
3716
|
];
|
|
3717
3717
|
}
|
|
3718
3718
|
}
|
|
3719
|
-
const xu = (t) => typeof t == "boolean" ? { lower: t, upper: t } : { lower: (t == null ? void 0 : t.lower) ?? !0, upper: (t == null ? void 0 : t.upper) ?? !0 },
|
|
3719
|
+
const xu = (t) => typeof t == "boolean" ? { lower: t, upper: t } : { lower: (t == null ? void 0 : t.lower) ?? !0, upper: (t == null ? void 0 : t.upper) ?? !0 }, Or = `#version 300 es
|
|
3720
3720
|
precision lowp float;
|
|
3721
3721
|
|
|
3722
3722
|
uniform lowp vec4 u_color;
|
|
@@ -3771,12 +3771,12 @@ void main(void) {
|
|
|
3771
3771
|
x: cn,
|
|
3772
3772
|
y: cn,
|
|
3773
3773
|
label: d.string().optional(),
|
|
3774
|
-
color:
|
|
3774
|
+
color: v.colorZ,
|
|
3775
3775
|
strokeWidth: d.number().default(1),
|
|
3776
3776
|
downsample: d.number().min(1).max(50).optional().default(1),
|
|
3777
3777
|
visible: d.boolean().optional().default(!0)
|
|
3778
3778
|
}), Cu = (t, n, e) => t === -1 || n === -1 || t >= e.series.length ? NaN : Number(e.series[t].at(n)), Eu = S.milliseconds(2);
|
|
3779
|
-
g.NAN, g.NAN,
|
|
3779
|
+
g.NAN, g.NAN, v.ZERO, k.ZERO;
|
|
3780
3780
|
const ku = (t, n) => n.equals(q.UINT8) ? t.UNSIGNED_BYTE : t.FLOAT;
|
|
3781
3781
|
class Lr extends Li {
|
|
3782
3782
|
constructor(e, s, r) {
|
|
@@ -3852,7 +3852,7 @@ const Be = class Be {
|
|
|
3852
3852
|
// Float32 program is used for rendering float32 data. It's used for all other
|
|
3853
3853
|
// channel types.
|
|
3854
3854
|
u(this, "float32Program");
|
|
3855
|
-
this.uint8HybridProgram = new Lr(n, wu,
|
|
3855
|
+
this.uint8HybridProgram = new Lr(n, wu, Or), this.float32Program = new Lr(n, Tu, Or);
|
|
3856
3856
|
}
|
|
3857
3857
|
get gl() {
|
|
3858
3858
|
return this.uint8HybridProgram.renderCtx.gl;
|
|
@@ -3911,14 +3911,14 @@ class wn extends $ {
|
|
|
3911
3911
|
bounds: { lower: 0, upper: 0 }
|
|
3912
3912
|
};
|
|
3913
3913
|
if (o === -1 || l === -1 || !this.state.visible) return m;
|
|
3914
|
-
const
|
|
3914
|
+
const b = i.series[l];
|
|
3915
3915
|
m.value.x = Cu(l, o, i);
|
|
3916
|
-
const [, E] = a.value(),
|
|
3917
|
-
(w) => k.contains(w.alignmentBounds,
|
|
3916
|
+
const [, E] = a.value(), O = E.series.find(
|
|
3917
|
+
(w) => k.contains(w.alignmentBounds, b.alignment + BigInt(o))
|
|
3918
3918
|
);
|
|
3919
|
-
if (
|
|
3920
|
-
const T = Number(
|
|
3921
|
-
return m.value.y = Number(
|
|
3919
|
+
if (O == null) return m;
|
|
3920
|
+
const T = Number(O.alignment - b.alignment);
|
|
3921
|
+
return m.value.y = Number(O.at(o - T)), m.bounds = { ...O.bounds }, m.position = {
|
|
3922
3922
|
x: e.dataToDecimalScale.x.pos(m.value.x),
|
|
3923
3923
|
y: e.dataToDecimalScale.y.pos(m.value.y)
|
|
3924
3924
|
}, m;
|
|
@@ -3941,15 +3941,15 @@ class wn extends $ {
|
|
|
3941
3941
|
props: e.region,
|
|
3942
3942
|
ops: Au(m)
|
|
3943
3943
|
}));
|
|
3944
|
-
const
|
|
3944
|
+
const b = f.setAsActive(), E = f.bindState(this.state), O = f.renderCtx.scaleRegion(e.region).transform;
|
|
3945
3945
|
m.forEach((T) => {
|
|
3946
|
-
const w =
|
|
3947
|
-
f.bindScale(w,
|
|
3948
|
-
}),
|
|
3946
|
+
const w = Ou(o, T).transform;
|
|
3947
|
+
f.bindScale(w, O), f.draw(T, E, c.dataType, h.dataType);
|
|
3948
|
+
}), b();
|
|
3949
3949
|
}
|
|
3950
3950
|
}
|
|
3951
3951
|
u(wn, "TYPE", "line");
|
|
3952
|
-
const Pu = 5e3, Ru = (t, n) =>
|
|
3952
|
+
const Pu = 5e3, Ru = (t, n) => Yu(Du(t), n).map(
|
|
3953
3953
|
(e, s) => Math.floor(s / Mu) * (1 / (Pu * t)) * e
|
|
3954
3954
|
), Mu = 5, Du = (t) => (
|
|
3955
3955
|
// prettier-ignore
|
|
@@ -3970,11 +3970,11 @@ const Pu = 5e3, Ru = (t, n) => Ou(Du(t), n).map(
|
|
|
3970
3970
|
0
|
|
3971
3971
|
// left
|
|
3972
3972
|
])
|
|
3973
|
-
),
|
|
3973
|
+
), Yu = (t, n) => {
|
|
3974
3974
|
const e = new Float32Array(t.length * n);
|
|
3975
3975
|
for (let s = 0; s < n; s++) e.set(t, s * t.length);
|
|
3976
3976
|
return e;
|
|
3977
|
-
},
|
|
3977
|
+
}, Ou = (t, n) => t.translate(
|
|
3978
3978
|
t.x.dim(Number(n.x.sampleOffset)),
|
|
3979
3979
|
t.y.dim(Number(n.y.sampleOffset))
|
|
3980
3980
|
), Zh = { [wn.TYPE]: wn }, Lu = (t, n, e, s, r) => {
|
|
@@ -4018,14 +4018,14 @@ class nt {
|
|
|
4018
4018
|
}
|
|
4019
4019
|
line({ stroke: n, lineWidth: e, lineDash: s, start: r, end: a }) {
|
|
4020
4020
|
const i = this.canvas;
|
|
4021
|
-
i.strokeStyle =
|
|
4021
|
+
i.strokeStyle = v.hex(n), i.lineWidth = e, i.setLineDash([s]), i.beginPath(), i.moveTo(...g.couple(r)), i.lineTo(...g.couple(a)), i.stroke();
|
|
4022
4022
|
}
|
|
4023
4023
|
circle({ fill: n, radius: e, position: s }) {
|
|
4024
4024
|
const r = this.canvas;
|
|
4025
|
-
r.fillStyle =
|
|
4025
|
+
r.fillStyle = v.hex(n), r.beginPath(), r.arc(...g.couple(s), e, 0, 2 * Math.PI), r.fill();
|
|
4026
4026
|
}
|
|
4027
4027
|
resolveColor(n, e) {
|
|
4028
|
-
return n == null ? e == null ? this.theme.colors.text : this.resolveColor(e) : typeof n == "function" ? n(this.theme) :
|
|
4028
|
+
return n == null ? e == null ? this.theme.colors.text : this.resolveColor(e) : typeof n == "function" ? n(this.theme) : v.construct(n);
|
|
4029
4029
|
}
|
|
4030
4030
|
border({
|
|
4031
4031
|
region: n,
|
|
@@ -4035,7 +4035,7 @@ class nt {
|
|
|
4035
4035
|
location: a
|
|
4036
4036
|
}) {
|
|
4037
4037
|
const i = this.canvas;
|
|
4038
|
-
i.strokeStyle =
|
|
4038
|
+
i.strokeStyle = v.hex(this.resolveColor(e, this.theme.colors.border)), i.lineWidth = s ?? this.theme.sizes.border.width, r ?? (r = this.theme.sizes.border.radius), a == null || a === !0 ? r > 0 ? (i.roundRect(
|
|
4039
4039
|
...g.couple(p.topLeft(n)),
|
|
4040
4040
|
...g.couple(p.dims(n)),
|
|
4041
4041
|
r
|
|
@@ -4055,9 +4055,9 @@ class nt {
|
|
|
4055
4055
|
}) {
|
|
4056
4056
|
a ?? (a = this.theme.sizes.border.radius), i ?? (i = 1);
|
|
4057
4057
|
const l = this.canvas;
|
|
4058
|
-
l.fillStyle =
|
|
4058
|
+
l.fillStyle = v.hex(
|
|
4059
4059
|
this.resolveColor(o, this.theme.colors.gray.l1)
|
|
4060
|
-
), l.strokeStyle =
|
|
4060
|
+
), l.strokeStyle = v.hex(
|
|
4061
4061
|
this.resolveColor(r, this.theme.colors.border)
|
|
4062
4062
|
), l.setLineDash([]), l.lineWidth = 1, l.beginPath(), s ? l.roundRect(
|
|
4063
4063
|
...g.couple(p.topLeft(n)),
|
|
@@ -4096,7 +4096,7 @@ class nt {
|
|
|
4096
4096
|
},
|
|
4097
4097
|
(c) => {
|
|
4098
4098
|
const h = ot(this.theme, { level: r });
|
|
4099
|
-
this.canvas.font = h, this.canvas.fillStyle =
|
|
4099
|
+
this.canvas.font = h, this.canvas.fillStyle = v.hex(this.theme.colors.text), this.canvas.textBaseline = "top", n.forEach((f, m) => {
|
|
4100
4100
|
this.canvas.fillText(f, c.x, c.y + l * m);
|
|
4101
4101
|
});
|
|
4102
4102
|
}
|
|
@@ -4116,18 +4116,18 @@ class nt {
|
|
|
4116
4116
|
const h = n * e + c.y * 2 + r * (n - 1), f = s + c.x * 2, m = { ...a };
|
|
4117
4117
|
o.x === "right" ? m.x -= s + l.x * 2 : m.x += l.x, o.y === "top" ? m.y -= h + l.y * 2 : m.y += l.y, this.container({
|
|
4118
4118
|
region: p.construct(m, { width: f, height: h }),
|
|
4119
|
-
backgroundColor: (
|
|
4119
|
+
backgroundColor: (b) => b.colors.gray.l1
|
|
4120
4120
|
});
|
|
4121
|
-
for (let
|
|
4121
|
+
for (let b = 0; b < n; b++) {
|
|
4122
4122
|
const E = p.construct(
|
|
4123
4123
|
g.construct(
|
|
4124
4124
|
m.x + c.x,
|
|
4125
|
-
m.y +
|
|
4125
|
+
m.y + b * e + c.y + r * b
|
|
4126
4126
|
),
|
|
4127
4127
|
s,
|
|
4128
4128
|
e
|
|
4129
4129
|
);
|
|
4130
|
-
i(
|
|
4130
|
+
i(b, E);
|
|
4131
4131
|
}
|
|
4132
4132
|
}
|
|
4133
4133
|
drawTextInCenter({ box: n, text: e, level: s }) {
|
|
@@ -4146,7 +4146,7 @@ class nt {
|
|
|
4146
4146
|
align: c = "top",
|
|
4147
4147
|
color: h
|
|
4148
4148
|
}) {
|
|
4149
|
-
this.canvas.font = ot(this.theme, { level: s, weight: r, code: o }), h != null ? this.canvas.fillStyle =
|
|
4149
|
+
this.canvas.font = ot(this.theme, { level: s, weight: r, code: o }), h != null ? this.canvas.fillStyle = v.hex(this.resolveColor(h)) : a == null ? this.canvas.fillStyle = v.hex(this.theme.colors.text) : this.canvas.fillStyle = v.hex(this.theme.colors.gray[`l${a}`]), this.canvas.textAlign = l, this.canvas.textBaseline = c;
|
|
4150
4150
|
let f;
|
|
4151
4151
|
i != null && (f = this.canvas.scissor(p.construct(e, i, 1e3))), this.canvas.fillText(n, e.x, e.y), f == null || f();
|
|
4152
4152
|
}
|
|
@@ -4157,16 +4157,16 @@ const ni = d.object({
|
|
|
4157
4157
|
dragging: d.boolean(),
|
|
4158
4158
|
lineWidth: d.number().optional().default(1),
|
|
4159
4159
|
lineDash: d.number().optional().default(20),
|
|
4160
|
-
color:
|
|
4160
|
+
color: v.colorZ
|
|
4161
4161
|
}), Nu = 3;
|
|
4162
|
-
class
|
|
4162
|
+
class Ot extends $ {
|
|
4163
4163
|
constructor() {
|
|
4164
4164
|
super(...arguments);
|
|
4165
4165
|
u(this, "schema", ni);
|
|
4166
4166
|
u(this, "lastUpdateRef", null);
|
|
4167
4167
|
}
|
|
4168
4168
|
afterUpdate(e) {
|
|
4169
|
-
this.internal.renderCtx =
|
|
4169
|
+
this.internal.renderCtx = X.use(e);
|
|
4170
4170
|
const s = ge(e);
|
|
4171
4171
|
this.internal.draw = new nt(this.internal.renderCtx.upper2d, s), xe(e, "tool");
|
|
4172
4172
|
}
|
|
@@ -4204,7 +4204,7 @@ class Yt extends $ {
|
|
|
4204
4204
|
direction: i,
|
|
4205
4205
|
region: a,
|
|
4206
4206
|
position: c
|
|
4207
|
-
}), o.fillStyle =
|
|
4207
|
+
}), o.fillStyle = v.hex(this.state.color), o.lineJoin = "round", o.lineWidth = 3.5, o.lineCap = "round", o.beginPath();
|
|
4208
4208
|
const h = 4;
|
|
4209
4209
|
if (r === "left") {
|
|
4210
4210
|
const f = p.left(a) - 1;
|
|
@@ -4213,13 +4213,13 @@ class Yt extends $ {
|
|
|
4213
4213
|
o.closePath(), o.stroke();
|
|
4214
4214
|
}
|
|
4215
4215
|
}
|
|
4216
|
-
u(
|
|
4216
|
+
u(Ot, "TYPE", "Rule");
|
|
4217
4217
|
const Zu = {
|
|
4218
|
-
[
|
|
4218
|
+
[Ot.TYPE]: Ot
|
|
4219
4219
|
}, Uh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4220
4220
|
__proto__: null,
|
|
4221
4221
|
REGISTRY: Zu,
|
|
4222
|
-
Rule:
|
|
4222
|
+
Rule: Ot,
|
|
4223
4223
|
ruleStateZ: ni
|
|
4224
4224
|
}, Symbol.toStringTag, { value: "Module" })), Bh = qn.extend({
|
|
4225
4225
|
location: re.x.optional().default("left")
|
|
@@ -4290,7 +4290,7 @@ class Sn extends ti {
|
|
|
4290
4290
|
return this.childrenOfType(wn.TYPE);
|
|
4291
4291
|
}
|
|
4292
4292
|
get rules() {
|
|
4293
|
-
return this.childrenOfType(
|
|
4293
|
+
return this.childrenOfType(Ot.TYPE);
|
|
4294
4294
|
}
|
|
4295
4295
|
}
|
|
4296
4296
|
u(Sn, "TYPE", "YAxis");
|
|
@@ -4301,7 +4301,7 @@ class os extends $ {
|
|
|
4301
4301
|
u(this, "schema", Bu);
|
|
4302
4302
|
}
|
|
4303
4303
|
afterUpdate(e) {
|
|
4304
|
-
this.internal.render =
|
|
4304
|
+
this.internal.render = X.use(e), this.internal.draw = new nt(this.internal.render.upper2d, ge(e));
|
|
4305
4305
|
}
|
|
4306
4306
|
}
|
|
4307
4307
|
u(os, "TYPE", "range-annotation");
|
|
@@ -4320,14 +4320,14 @@ class Cn extends $ {
|
|
|
4320
4320
|
}
|
|
4321
4321
|
afterUpdate(e) {
|
|
4322
4322
|
const { internal: s } = this;
|
|
4323
|
-
s.render =
|
|
4324
|
-
const r =
|
|
4323
|
+
s.render = X.use(e), s.draw = new nt(s.render.upper2d, ge(e));
|
|
4324
|
+
const r = be(e);
|
|
4325
4325
|
s.requestRender = Rs(e), s.ranges ?? (s.ranges = /* @__PURE__ */ new Map());
|
|
4326
4326
|
const a = Bt(e);
|
|
4327
4327
|
a != null && (s.client = a, s.tracker == null && r(async () => {
|
|
4328
4328
|
s.tracker = await a.ranges.openTracker(), s.tracker.onChange((i) => {
|
|
4329
4329
|
i.forEach((o) => {
|
|
4330
|
-
o.variant === "delete" ? s.ranges.delete(o.key) :
|
|
4330
|
+
o.variant === "delete" ? s.ranges.delete(o.key) : v.isCrude(o.value.color) && s.ranges.set(o.key, o.value);
|
|
4331
4331
|
}), s.requestRender("tool"), this.setState((o) => ({ ...o, count: s.ranges.size }));
|
|
4332
4332
|
}), s.requestRender("tool");
|
|
4333
4333
|
}));
|
|
@@ -4337,7 +4337,7 @@ class Cn extends $ {
|
|
|
4337
4337
|
if (s.client == null || this.fetchedInitial.equals(e, S.minutes(1)))
|
|
4338
4338
|
return;
|
|
4339
4339
|
this.fetchedInitial = e, (await s.client.ranges.retrieve(e)).forEach((a) => {
|
|
4340
|
-
|
|
4340
|
+
v.isCrude(a.color) && s.ranges.set(a.key, a);
|
|
4341
4341
|
}), this.setState((a) => ({ ...a, count: s.ranges.size }));
|
|
4342
4342
|
}
|
|
4343
4343
|
render(e) {
|
|
@@ -4351,30 +4351,30 @@ class Cn extends $ {
|
|
|
4351
4351
|
{ x: p.right(r), y: p.bottom(r) }
|
|
4352
4352
|
)
|
|
4353
4353
|
);
|
|
4354
|
-
l.forEach((
|
|
4355
|
-
const E =
|
|
4354
|
+
l.forEach((b) => {
|
|
4355
|
+
const E = v.colorZ.safeParse(b.color);
|
|
4356
4356
|
if (!E.success) return;
|
|
4357
|
-
const
|
|
4358
|
-
let T = c.pos(Number(
|
|
4359
|
-
const w = c.pos(Number(
|
|
4357
|
+
const O = E.data;
|
|
4358
|
+
let T = c.pos(Number(b.timeRange.start.valueOf()));
|
|
4359
|
+
const w = c.pos(Number(b.timeRange.end.valueOf()));
|
|
4360
4360
|
if (w < p.left(r) || T > p.right(r)) return;
|
|
4361
4361
|
T = qr(T, p.left(r) - 2, p.right(r) - 1);
|
|
4362
4362
|
let L = !1;
|
|
4363
4363
|
h != null && (L = k.contains({ lower: T, upper: w }, h)), L && (f = {
|
|
4364
|
-
key:
|
|
4365
|
-
name:
|
|
4366
|
-
color:
|
|
4367
|
-
timeRange:
|
|
4364
|
+
key: b.key,
|
|
4365
|
+
name: b.name,
|
|
4366
|
+
color: b.color,
|
|
4367
|
+
timeRange: b.timeRange,
|
|
4368
4368
|
viewport: {
|
|
4369
|
-
lower: s.scale(p.xBounds(a)).pos(Number(
|
|
4370
|
-
upper: s.scale(p.xBounds(a)).pos(Number(
|
|
4369
|
+
lower: s.scale(p.xBounds(a)).pos(Number(b.timeRange.start.valueOf())),
|
|
4370
|
+
upper: s.scale(p.xBounds(a)).pos(Number(b.timeRange.end.valueOf()))
|
|
4371
4371
|
}
|
|
4372
4372
|
}), o.container({
|
|
4373
4373
|
region: p.construct(
|
|
4374
4374
|
{ x: T, y: p.top(r) - 1 },
|
|
4375
4375
|
{ x: w, y: p.bottom(r) - 1 }
|
|
4376
4376
|
),
|
|
4377
|
-
backgroundColor:
|
|
4377
|
+
backgroundColor: v.setAlpha(O, 0.2),
|
|
4378
4378
|
bordered: !1
|
|
4379
4379
|
});
|
|
4380
4380
|
const R = p.construct(
|
|
@@ -4383,20 +4383,20 @@ class Cn extends $ {
|
|
|
4383
4383
|
);
|
|
4384
4384
|
o.container({
|
|
4385
4385
|
region: R,
|
|
4386
|
-
backgroundColor: p.width(R) < 20 ?
|
|
4386
|
+
backgroundColor: p.width(R) < 20 ? v.setAlpha(O, 0.4) : (N) => L ? N.colors.gray.l2 : N.colors.gray.l0,
|
|
4387
4387
|
bordered: !0,
|
|
4388
4388
|
borderWidth: 1,
|
|
4389
4389
|
borderRadius: 2,
|
|
4390
|
-
borderColor:
|
|
4390
|
+
borderColor: v.setAlpha(O, 0.8)
|
|
4391
4391
|
}), o.text({
|
|
4392
|
-
text:
|
|
4392
|
+
text: b.name,
|
|
4393
4393
|
position: { x: T + 8, y: p.top(r) - 30 },
|
|
4394
4394
|
level: "small",
|
|
4395
4395
|
shade: 10,
|
|
4396
4396
|
weight: 500,
|
|
4397
4397
|
maxWidth: w - T - 16
|
|
4398
4398
|
});
|
|
4399
|
-
}), m(), f != null ? this.setState((
|
|
4399
|
+
}), m(), f != null ? this.setState((b) => ({ ...b, hovered: f })) : this.state.hovered && this.setState((b) => ({ ...b, hovered: null }));
|
|
4400
4400
|
}
|
|
4401
4401
|
}
|
|
4402
4402
|
u(Cn, "TYPE", "range-provider");
|
|
@@ -4470,10 +4470,10 @@ class En extends ti {
|
|
|
4470
4470
|
u(En, "TYPE", "XAxis");
|
|
4471
4471
|
const Fu = g.construct(12), qu = 3, ju = 14, Hu = g.construct(6), si = d.object({
|
|
4472
4472
|
position: g.xy.or(d.null()),
|
|
4473
|
-
textColor:
|
|
4474
|
-
backgroundColor:
|
|
4475
|
-
borderColor:
|
|
4476
|
-
ruleColor:
|
|
4473
|
+
textColor: v.colorZ.optional().default(v.ZERO),
|
|
4474
|
+
backgroundColor: v.colorZ.optional().default(v.ZERO),
|
|
4475
|
+
borderColor: v.colorZ.optional().default(v.ZERO),
|
|
4476
|
+
ruleColor: v.colorZ.optional().default(v.ZERO),
|
|
4477
4477
|
ruleStrokeWidth: d.number().optional().default(1),
|
|
4478
4478
|
ruleStrokeDash: d.number().default(0)
|
|
4479
4479
|
});
|
|
@@ -4484,7 +4484,7 @@ class Lt extends $ {
|
|
|
4484
4484
|
}
|
|
4485
4485
|
afterUpdate(e) {
|
|
4486
4486
|
const s = ge(e);
|
|
4487
|
-
|
|
4487
|
+
v.isZero(this.state.textColor) && (this.state.textColor = s.colors.text), v.isZero(this.state.backgroundColor) && (this.state.backgroundColor = s.colors.gray.l1), v.isZero(this.state.borderColor) && (this.state.borderColor = s.colors.border), v.isZero(this.state.ruleColor) && (this.state.ruleColor = s.colors.gray.l7), this.internal.dotColor = s.colors.text, this.internal.dotColorContrast = s.colors.textInverted, this.internal.render = X.use(e), this.internal.draw = new nt(this.internal.render.upper2d, s), xe(e, "tool");
|
|
4488
4488
|
}
|
|
4489
4489
|
afterDelete(e) {
|
|
4490
4490
|
xe(e, "tool");
|
|
@@ -4504,8 +4504,8 @@ class Lt extends $ {
|
|
|
4504
4504
|
position: f
|
|
4505
4505
|
}), o.forEach((T) => {
|
|
4506
4506
|
const w = r.pos(T.position);
|
|
4507
|
-
l.circle({ fill:
|
|
4508
|
-
fill:
|
|
4507
|
+
l.circle({ fill: v.setAlpha(T.color, 0.5), radius: 8, position: w }), l.circle({ fill: v.setAlpha(T.color, 0.8), radius: 5, position: w }), l.circle({
|
|
4508
|
+
fill: v.pickByContrast(
|
|
4509
4509
|
T.color,
|
|
4510
4510
|
this.internal.dotColor,
|
|
4511
4511
|
this.internal.dotColorContrast
|
|
@@ -4514,15 +4514,15 @@ class Lt extends $ {
|
|
|
4514
4514
|
position: w
|
|
4515
4515
|
});
|
|
4516
4516
|
});
|
|
4517
|
-
const m = a.pos(this.state.position),
|
|
4518
|
-
m.x > 0.6 && (
|
|
4517
|
+
const m = a.pos(this.state.position), b = { ...re.TOP_LEFT };
|
|
4518
|
+
m.x > 0.6 && (b.x = "right"), m.y > 0.6 && (b.y = "bottom");
|
|
4519
4519
|
let E = i.reduce((T, w) => {
|
|
4520
4520
|
var L;
|
|
4521
4521
|
return Math.max(T, ((L = w.label) == null ? void 0 : L.length) ?? 0);
|
|
4522
4522
|
}, 0);
|
|
4523
|
-
const
|
|
4524
|
-
|
|
4525
|
-
root:
|
|
4523
|
+
const O = h.fString("preciseDate", "local").length;
|
|
4524
|
+
O > E && (E = O), l.list({
|
|
4525
|
+
root: b,
|
|
4526
4526
|
offset: Fu,
|
|
4527
4527
|
length: o.length + 1,
|
|
4528
4528
|
padding: Hu,
|
|
@@ -4569,13 +4569,13 @@ const zu = {
|
|
|
4569
4569
|
two: g.xy.nullable(),
|
|
4570
4570
|
hover: g.xy.nullable(),
|
|
4571
4571
|
color: d.union([
|
|
4572
|
-
|
|
4572
|
+
v.colorZ,
|
|
4573
4573
|
d.object({
|
|
4574
|
-
verticalLine:
|
|
4575
|
-
horizontalLine:
|
|
4576
|
-
obliqueLine:
|
|
4574
|
+
verticalLine: v.colorZ.optional().default(v.ZERO),
|
|
4575
|
+
horizontalLine: v.colorZ.optional().default(v.ZERO),
|
|
4576
|
+
obliqueLine: v.colorZ.optional().default(v.ZERO)
|
|
4577
4577
|
})
|
|
4578
|
-
]).optional().default(
|
|
4578
|
+
]).optional().default(v.ZERO),
|
|
4579
4579
|
strokeWidth: d.number().optional().default(1),
|
|
4580
4580
|
strokeDash: d.number().optional().default(2)
|
|
4581
4581
|
});
|
|
@@ -4585,20 +4585,20 @@ class At extends $ {
|
|
|
4585
4585
|
u(this, "schema", ri);
|
|
4586
4586
|
}
|
|
4587
4587
|
afterUpdate(e) {
|
|
4588
|
-
const s =
|
|
4588
|
+
const s = X.use(e);
|
|
4589
4589
|
this.internal.theme = ge(e), this.internal.renderCtx = s, this.internal.draw = new nt(s.upper2d, this.internal.theme), xe(e, "tool");
|
|
4590
4590
|
}
|
|
4591
4591
|
afterDelete(e) {
|
|
4592
4592
|
xe(e, "layout");
|
|
4593
4593
|
}
|
|
4594
4594
|
get verticalLineColor() {
|
|
4595
|
-
return
|
|
4595
|
+
return v.isColor(this.state.color) ? v.isZero(this.state.color) ? this.internal.theme.colors.gray.l8 : this.state.color : v.isZero(this.state.color.verticalLine) ? this.internal.theme.colors.gray.l8 : this.state.color.verticalLine;
|
|
4596
4596
|
}
|
|
4597
4597
|
get horizontalLineColor() {
|
|
4598
|
-
return
|
|
4598
|
+
return v.isColor(this.state.color) ? v.isZero(this.state.color) ? this.internal.theme.colors.gray.l8 : this.state.color : v.isZero(this.state.color.horizontalLine) ? this.internal.theme.colors.gray.l8 : this.state.color.horizontalLine;
|
|
4599
4599
|
}
|
|
4600
4600
|
get obliqueLineColor() {
|
|
4601
|
-
return
|
|
4601
|
+
return v.isColor(this.state.color) ? v.isZero(this.state.color) ? this.internal.theme.colors.gray.l8 : this.state.color : v.isZero(this.state.color.obliqueLine) ? this.internal.theme.colors.gray.l8 : this.state.color.obliqueLine;
|
|
4602
4602
|
}
|
|
4603
4603
|
find(e) {
|
|
4604
4604
|
const { one: s, two: r } = this.state;
|
|
@@ -4615,20 +4615,20 @@ class At extends $ {
|
|
|
4615
4615
|
)[0]
|
|
4616
4616
|
];
|
|
4617
4617
|
}
|
|
4618
|
-
const c = J.XY.scale(e.region).scale(p.DECIMAL), [h, f] = [c.pos(s), c.pos(r)], [m,
|
|
4618
|
+
const c = J.XY.scale(e.region).scale(p.DECIMAL), [h, f] = [c.pos(s), c.pos(r)], [m, b] = [
|
|
4619
4619
|
e.findByXDecimal(h.x),
|
|
4620
4620
|
e.findByXDecimal(f.x)
|
|
4621
4621
|
];
|
|
4622
|
-
if (m.length === 0 ||
|
|
4623
|
-
const [E,
|
|
4622
|
+
if (m.length === 0 || b.length === 0) return null;
|
|
4623
|
+
const [E, O] = [
|
|
4624
4624
|
m.sort(
|
|
4625
4625
|
(T, w) => g.distance(h, T.position) - g.distance(h, w.position)
|
|
4626
4626
|
)[0],
|
|
4627
|
-
|
|
4627
|
+
b.sort(
|
|
4628
4628
|
(T, w) => g.distance(f, T.position) - g.distance(f, w.position)
|
|
4629
4629
|
)[0]
|
|
4630
4630
|
];
|
|
4631
|
-
return this.internal.dataOne = E.value, this.internal.dataTwo =
|
|
4631
|
+
return this.internal.dataOne = E.value, this.internal.dataTwo = O.value, [E, O];
|
|
4632
4632
|
}
|
|
4633
4633
|
renderHover(e) {
|
|
4634
4634
|
if (this.state.hover == null) return;
|
|
@@ -4638,7 +4638,7 @@ class At extends $ {
|
|
|
4638
4638
|
(c, h) => g.distance(a, c.position) - g.distance(a, h.position)
|
|
4639
4639
|
)[0], { draw: l } = this.internal;
|
|
4640
4640
|
l.circle({
|
|
4641
|
-
fill:
|
|
4641
|
+
fill: v.setAlpha(o.color, 0.5),
|
|
4642
4642
|
radius: 9,
|
|
4643
4643
|
position: r.reverse().pos(o.position)
|
|
4644
4644
|
});
|
|
@@ -4648,7 +4648,7 @@ class At extends $ {
|
|
|
4648
4648
|
this.renderHover(e);
|
|
4649
4649
|
const s = this.find(e);
|
|
4650
4650
|
if (s == null) return;
|
|
4651
|
-
const [r, a] = s, { draw: i } = this.internal, { strokeDash: o, strokeWidth: l } = this.state, c = J.XY.scale(p.DECIMAL).scale(e.region), h = c.pos(r.position), f = c.pos(a.position), m = new S(Math.abs(r.value.x - a.value.x)),
|
|
4651
|
+
const [r, a] = s, { draw: i } = this.internal, { strokeDash: o, strokeWidth: l } = this.state, c = J.XY.scale(p.DECIMAL).scale(e.region), h = c.pos(r.position), f = c.pos(a.position), m = new S(Math.abs(r.value.x - a.value.x)), b = Math.abs(r.value.y - a.value.y), E = b / m.seconds;
|
|
4652
4652
|
i.line({
|
|
4653
4653
|
start: g.construct(h.x, h.y),
|
|
4654
4654
|
end: g.construct(h.x, f.y),
|
|
@@ -4656,7 +4656,7 @@ class At extends $ {
|
|
|
4656
4656
|
lineDash: o,
|
|
4657
4657
|
lineWidth: l
|
|
4658
4658
|
}), i.textContainer({
|
|
4659
|
-
text: [`${
|
|
4659
|
+
text: [`${b.toFixed(2)} ${r.units ?? ""}`],
|
|
4660
4660
|
direction: "x",
|
|
4661
4661
|
position: g.construct(h.x, (h.y + f.y) / 2),
|
|
4662
4662
|
level: "small"
|
|
@@ -4683,22 +4683,22 @@ class At extends $ {
|
|
|
4683
4683
|
position: g.construct((h.x + f.x) / 2, (h.y + f.y) / 2),
|
|
4684
4684
|
level: "small"
|
|
4685
4685
|
}), i.circle({
|
|
4686
|
-
fill:
|
|
4686
|
+
fill: v.setAlpha(r.color, 0.5),
|
|
4687
4687
|
radius: 8,
|
|
4688
4688
|
position: h
|
|
4689
4689
|
}), i.circle({
|
|
4690
|
-
fill:
|
|
4690
|
+
fill: v.setAlpha(r.color, 0.8),
|
|
4691
4691
|
radius: 5,
|
|
4692
4692
|
position: h
|
|
4693
|
-
}), i.circle({ fill:
|
|
4694
|
-
fill:
|
|
4693
|
+
}), i.circle({ fill: v.construct("#ffffff"), radius: 2, position: h }), i.circle({
|
|
4694
|
+
fill: v.setAlpha(a.color, 0.5),
|
|
4695
4695
|
radius: 8,
|
|
4696
4696
|
position: f
|
|
4697
4697
|
}), i.circle({
|
|
4698
|
-
fill:
|
|
4698
|
+
fill: v.setAlpha(a.color, 0.8),
|
|
4699
4699
|
radius: 5,
|
|
4700
4700
|
position: f
|
|
4701
|
-
}), i.circle({ fill:
|
|
4701
|
+
}), i.circle({ fill: v.construct("#ffffff"), radius: 2, position: f });
|
|
4702
4702
|
}
|
|
4703
4703
|
}
|
|
4704
4704
|
u(At, "TYPE", "measure");
|
|
@@ -4709,29 +4709,29 @@ const Wu = {
|
|
|
4709
4709
|
Measure: At,
|
|
4710
4710
|
REGISTRY: Wu,
|
|
4711
4711
|
measureStateZ: ri
|
|
4712
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4712
|
+
}, Symbol.toStringTag, { value: "Module" })), Gu = d.object({
|
|
4713
4713
|
container: p.box,
|
|
4714
4714
|
viewport: p.box,
|
|
4715
4715
|
hold: d.boolean().optional().default(!1),
|
|
4716
4716
|
grid: d.record(d.string(), La),
|
|
4717
4717
|
visible: d.boolean().optional().default(!0),
|
|
4718
4718
|
clearOverScan: g.crudeZ.optional().default(g.ZERO)
|
|
4719
|
-
}),
|
|
4719
|
+
}), Xu = (t, n) => {
|
|
4720
4720
|
const e = p.width(t) * Math.sqrt(p.height(t)), s = p.width(n) * Math.sqrt(p.height(n));
|
|
4721
4721
|
return e / s;
|
|
4722
|
-
},
|
|
4722
|
+
}, Vu = ["upper2d", "lower2d", "gl"], Ku = ["upper2d"];
|
|
4723
4723
|
class ls extends pe {
|
|
4724
4724
|
constructor() {
|
|
4725
4725
|
super(...arguments);
|
|
4726
|
-
u(this, "schema",
|
|
4726
|
+
u(this, "schema", Gu);
|
|
4727
4727
|
}
|
|
4728
4728
|
afterUpdate(e) {
|
|
4729
|
-
this.internal.instrumentation = Ut(e, "lineplot"), this.internal.aggregate = An(e), this.internal.renderCtx =
|
|
4729
|
+
this.internal.instrumentation = Ut(e, "lineplot"), this.internal.aggregate = An(e), this.internal.renderCtx = X.use(e), Ci(e, () => null), Ps(e, (s) => {
|
|
4730
4730
|
this.state.visible && this.requestRender("low", s);
|
|
4731
4731
|
}), !(!this.state.visible && !this.prevState.visible) && this.requestRender("high", "layout");
|
|
4732
4732
|
}
|
|
4733
4733
|
afterDelete(e) {
|
|
4734
|
-
this.internal.renderCtx =
|
|
4734
|
+
this.internal.renderCtx = X.use(e), this.requestRender("high", "layout");
|
|
4735
4735
|
}
|
|
4736
4736
|
findByXDecimal(e) {
|
|
4737
4737
|
const s = {
|
|
@@ -4762,7 +4762,7 @@ class ls extends pe {
|
|
|
4762
4762
|
return this.childrenOfType(hn.TYPE);
|
|
4763
4763
|
}
|
|
4764
4764
|
get exposure() {
|
|
4765
|
-
return
|
|
4765
|
+
return Xu(this.state.viewport, this.state.container);
|
|
4766
4766
|
}
|
|
4767
4767
|
renderAxes(e, s) {
|
|
4768
4768
|
const r = { ...this.state, plot: e, canvases: s, exposure: this.exposure };
|
|
@@ -4843,7 +4843,7 @@ class ls extends pe {
|
|
|
4843
4843
|
}
|
|
4844
4844
|
requestRender(e, s) {
|
|
4845
4845
|
const { renderCtx: r } = this.internal;
|
|
4846
|
-
let a =
|
|
4846
|
+
let a = Vu;
|
|
4847
4847
|
s === "tool" && (a = Ku), r.loop.set({
|
|
4848
4848
|
key: `${this.type}-${this.key}`,
|
|
4849
4849
|
render: () => this.render(a),
|
|
@@ -4884,7 +4884,7 @@ class kn extends pe {
|
|
|
4884
4884
|
throw new tt(
|
|
4885
4885
|
"[vis.worker.Canvas] - expected render context bootstrap to include all canvases"
|
|
4886
4886
|
);
|
|
4887
|
-
this.renderCtx =
|
|
4887
|
+
this.renderCtx = X.create(
|
|
4888
4888
|
e,
|
|
4889
4889
|
s,
|
|
4890
4890
|
r,
|
|
@@ -4914,7 +4914,7 @@ const Qu = {
|
|
|
4914
4914
|
triggered: d.boolean(),
|
|
4915
4915
|
status: Br,
|
|
4916
4916
|
sink: Un.optional().default(In),
|
|
4917
|
-
source: As.optional().default(
|
|
4917
|
+
source: As.optional().default(Ys)
|
|
4918
4918
|
});
|
|
4919
4919
|
class cs extends $ {
|
|
4920
4920
|
constructor() {
|
|
@@ -4942,8 +4942,8 @@ class cs extends $ {
|
|
|
4942
4942
|
}
|
|
4943
4943
|
}
|
|
4944
4944
|
u(cs, "TYPE", "Chip");
|
|
4945
|
-
const eh = d.object({}), Ir = "control-state-provider", th =
|
|
4946
|
-
subjectColor:
|
|
4945
|
+
const eh = d.object({}), Ir = "control-state-provider", th = bs.stateZ.extend({
|
|
4946
|
+
subjectColor: v.colorZ
|
|
4947
4947
|
});
|
|
4948
4948
|
class It extends pe {
|
|
4949
4949
|
constructor() {
|
|
@@ -4974,7 +4974,7 @@ class It extends pe {
|
|
|
4974
4974
|
s.palette = r.colors.visualization.palettes.default, s.defaultColor = r.colors.gray.l8;
|
|
4975
4975
|
const a = Bt(e);
|
|
4976
4976
|
if (s.client != null && a === s.client) return;
|
|
4977
|
-
s.client = a, e.set(Ir, this),
|
|
4977
|
+
s.client = a, e.set(Ir, this), be(e)(async () => {
|
|
4978
4978
|
await this.maybeCloseTracker(), s.client != null && (this.internal.instrumentation.L.debug("starting state tracker"), await this.openTracker(s.client));
|
|
4979
4979
|
});
|
|
4980
4980
|
}
|
|
@@ -4983,7 +4983,7 @@ class It extends pe {
|
|
|
4983
4983
|
this.tracker != null && (this.internal.instrumentation.L.debug("stopping state tracker"), (e = this.disconnectTrackerChange) == null || e.call(this), await this.tracker.close(), this.tracker = void 0);
|
|
4984
4984
|
}
|
|
4985
4985
|
afterDelete(e) {
|
|
4986
|
-
|
|
4986
|
+
be(e)(async () => {
|
|
4987
4987
|
await this.maybeCloseTracker();
|
|
4988
4988
|
});
|
|
4989
4989
|
}
|
|
@@ -4991,7 +4991,7 @@ class It extends pe {
|
|
|
4991
4991
|
return this.obs.onChange(e);
|
|
4992
4992
|
}
|
|
4993
4993
|
get(e) {
|
|
4994
|
-
return Array.isArray(e) ?
|
|
4994
|
+
return Array.isArray(e) ? Yi.unique(e).map((s) => this.getOne(s)).filter((s) => s != null) : this.getOne(e);
|
|
4995
4995
|
}
|
|
4996
4996
|
getOne(e) {
|
|
4997
4997
|
if (this.tracker == null) return;
|
|
@@ -5012,7 +5012,7 @@ class It extends pe {
|
|
|
5012
5012
|
return;
|
|
5013
5013
|
}
|
|
5014
5014
|
(a = this.disconnectTrackerChange) == null || a.call(this), this.disconnectTrackerChange = this.tracker.onChange((i) => {
|
|
5015
|
-
if (r.L.debug("transfer", { transfers: i.map((o) =>
|
|
5015
|
+
if (r.L.debug("transfer", { transfers: i.map((o) => bs.transferString(o)) }), this.tracker == null)
|
|
5016
5016
|
throw new tt("tracker is null inside it's own onChange callback!");
|
|
5017
5017
|
this.updateColors(this.tracker), this.obs.notify(i);
|
|
5018
5018
|
});
|
|
@@ -5047,12 +5047,12 @@ class us extends pe {
|
|
|
5047
5047
|
const { internal: s } = this;
|
|
5048
5048
|
s.instrumentation = Ut(e), (s.prevTrigger == null || Math.abs(this.state.acquireTrigger - s.prevTrigger) > 1) && (s.prevTrigger = this.state.acquireTrigger);
|
|
5049
5049
|
const r = Bt(e), a = It.use(e);
|
|
5050
|
-
|
|
5050
|
+
be(e)(async () => {
|
|
5051
5051
|
s.client = r, s.client == null && await this.release(), s.stateProv = a, s.telemCtx = Pa(e, this, s.telemCtx), s.addStatus = An(e), this.state.acquireTrigger > s.prevTrigger ? await this.acquire() : this.state.acquireTrigger < s.prevTrigger && await this.release();
|
|
5052
5052
|
});
|
|
5053
5053
|
}
|
|
5054
5054
|
afterDelete(e) {
|
|
5055
|
-
|
|
5055
|
+
be(e)(async () => {
|
|
5056
5056
|
await this.release();
|
|
5057
5057
|
});
|
|
5058
5058
|
}
|
|
@@ -5193,7 +5193,7 @@ const zh = (t) => ({
|
|
|
5193
5193
|
variant: "sink",
|
|
5194
5194
|
valueType: "number"
|
|
5195
5195
|
}), ih = d.object({
|
|
5196
|
-
authority: d.number().default(
|
|
5196
|
+
authority: d.number().default(bs.ABSOLUTE_AUTHORITY),
|
|
5197
5197
|
channel: d.number()
|
|
5198
5198
|
});
|
|
5199
5199
|
class Rn extends _n {
|
|
@@ -5228,7 +5228,7 @@ const Wh = (t) => ({
|
|
|
5228
5228
|
}), oh = d.object({
|
|
5229
5229
|
channel: d.number()
|
|
5230
5230
|
});
|
|
5231
|
-
class Mn extends
|
|
5231
|
+
class Mn extends V {
|
|
5232
5232
|
constructor(e, s, r) {
|
|
5233
5233
|
super(r);
|
|
5234
5234
|
u(this, "prov");
|
|
@@ -5284,16 +5284,16 @@ class Mn extends G {
|
|
|
5284
5284
|
}
|
|
5285
5285
|
}
|
|
5286
5286
|
u(Mn, "TYPE", "controlled-status-source");
|
|
5287
|
-
const
|
|
5287
|
+
const Gh = (t) => ({
|
|
5288
5288
|
type: Mn.TYPE,
|
|
5289
5289
|
props: t,
|
|
5290
5290
|
variant: "source",
|
|
5291
5291
|
valueType: "status"
|
|
5292
5292
|
}), lh = d.object({
|
|
5293
|
-
statusSource: As.optional().default(
|
|
5293
|
+
statusSource: As.optional().default(Ys),
|
|
5294
5294
|
colorSource: Ls.optional().default(Nn),
|
|
5295
5295
|
status: Br,
|
|
5296
|
-
color:
|
|
5296
|
+
color: v.colorZ.optional()
|
|
5297
5297
|
});
|
|
5298
5298
|
class hs extends $ {
|
|
5299
5299
|
constructor() {
|
|
@@ -5319,7 +5319,7 @@ class hs extends $ {
|
|
|
5319
5319
|
}
|
|
5320
5320
|
updateState() {
|
|
5321
5321
|
const e = this.internal.colorSource.value(), s = this.internal.statusSource.value();
|
|
5322
|
-
|
|
5322
|
+
v.equals(e, this.state.color) && s.message === this.state.status.message || this.setState((r) => ({ ...r, color: e, status: s }));
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
5325
|
u(hs, "TYPE", "Indicator");
|
|
@@ -5354,7 +5354,7 @@ class ds extends $ {
|
|
|
5354
5354
|
}
|
|
5355
5355
|
}
|
|
5356
5356
|
u(ds, "TYPE", "Legend");
|
|
5357
|
-
const
|
|
5357
|
+
const Xh = {
|
|
5358
5358
|
[us.TYPE]: us,
|
|
5359
5359
|
[It.TYPE]: It,
|
|
5360
5360
|
[hs.TYPE]: hs,
|
|
@@ -5371,7 +5371,7 @@ const Vh = {
|
|
|
5371
5371
|
}
|
|
5372
5372
|
afterUpdate(e) {
|
|
5373
5373
|
const { internal: s } = this;
|
|
5374
|
-
s.renderCtx =
|
|
5374
|
+
s.renderCtx = X.use(e), s.handleError = be(e), Ps(e, () => {
|
|
5375
5375
|
this.state.visible && this.requestRender("low");
|
|
5376
5376
|
}), !(!this.state.visible && !this.prevState.visible) && this.requestRender("high");
|
|
5377
5377
|
}
|
|
@@ -5409,7 +5409,7 @@ const Vh = {
|
|
|
5409
5409
|
};
|
|
5410
5410
|
u(_e, "TYPE", "Table"), u(_e, "stateZ", uh);
|
|
5411
5411
|
let Dn = _e;
|
|
5412
|
-
const
|
|
5412
|
+
const Vh = {
|
|
5413
5413
|
[Dn.TYPE]: Dn
|
|
5414
5414
|
}, hh = d.object({
|
|
5415
5415
|
trigger: d.number(),
|
|
@@ -5426,7 +5426,7 @@ class fs extends $ {
|
|
|
5426
5426
|
(i = this.internal).prevTrigger ?? (i.prevTrigger = this.state.trigger), this.internal.sink = $t(e, s, this.internal.sink);
|
|
5427
5427
|
const r = this.internal.prevTrigger;
|
|
5428
5428
|
if (this.internal.prevTrigger = this.state.trigger, this.state.trigger <= r) return;
|
|
5429
|
-
|
|
5429
|
+
be(e)(async () => {
|
|
5430
5430
|
this.internal.sink.set(!0);
|
|
5431
5431
|
});
|
|
5432
5432
|
}
|
|
@@ -5444,13 +5444,13 @@ const Kh = {
|
|
|
5444
5444
|
region: p.box,
|
|
5445
5445
|
clearOverScan: g.crudeZ.optional().default(10),
|
|
5446
5446
|
visible: d.boolean().optional().default(!0)
|
|
5447
|
-
}),
|
|
5447
|
+
}), Xt = ["upper2d", "lower2d"], $e = class $e extends pe {
|
|
5448
5448
|
constructor() {
|
|
5449
5449
|
super(...arguments);
|
|
5450
5450
|
u(this, "schema", $e.stateZ);
|
|
5451
5451
|
}
|
|
5452
5452
|
afterUpdate(e) {
|
|
5453
|
-
this.internal.renderCtx =
|
|
5453
|
+
this.internal.renderCtx = X.use(e), this.internal.addStatus = An(e), Ps(e, () => {
|
|
5454
5454
|
this.state.visible && this.requestRender("low");
|
|
5455
5455
|
}), !(!this.state.visible && !this.prevState.visible) && (this.internal.viewportScale = J.XY.magnify(g.construct(this.state.zoom)).translate(p.topLeft(this.state.region)).translate(this.state.position), this.requestRender("high"));
|
|
5456
5456
|
}
|
|
@@ -5461,8 +5461,8 @@ const Kh = {
|
|
|
5461
5461
|
if (this.deleted) return;
|
|
5462
5462
|
const { renderCtx: e, addStatus: s, viewportScale: r } = this.internal, a = p.construct(this.state.region);
|
|
5463
5463
|
if (!this.state.visible)
|
|
5464
|
-
return () => e.erase(a, this.state.clearOverScan, ...
|
|
5465
|
-
const i = e.scissor(a, g.ZERO,
|
|
5464
|
+
return () => e.erase(a, this.state.clearOverScan, ...Xt);
|
|
5465
|
+
const i = e.scissor(a, g.ZERO, Xt);
|
|
5466
5466
|
try {
|
|
5467
5467
|
this.children.forEach((l) => {
|
|
5468
5468
|
var c;
|
|
@@ -5479,7 +5479,7 @@ const Kh = {
|
|
|
5479
5479
|
i();
|
|
5480
5480
|
}
|
|
5481
5481
|
const o = p.copy(this.state.region);
|
|
5482
|
-
return () => e.erase(o, this.state.clearOverScan, ...
|
|
5482
|
+
return () => e.erase(o, this.state.clearOverScan, ...Xt);
|
|
5483
5483
|
}
|
|
5484
5484
|
requestRender(e) {
|
|
5485
5485
|
const { renderCtx: s } = this.internal;
|
|
@@ -5487,7 +5487,7 @@ const Kh = {
|
|
|
5487
5487
|
key: `${$e.TYPE}-${this.key}`,
|
|
5488
5488
|
render: this.render.bind(this),
|
|
5489
5489
|
priority: e,
|
|
5490
|
-
canvases:
|
|
5490
|
+
canvases: Xt
|
|
5491
5491
|
});
|
|
5492
5492
|
}
|
|
5493
5493
|
};
|
|
@@ -5502,7 +5502,7 @@ const dh = {
|
|
|
5502
5502
|
diagramStateZ: ii
|
|
5503
5503
|
}, Symbol.toStringTag, { value: "Module" })), fh = d.object({
|
|
5504
5504
|
enabled: d.boolean(),
|
|
5505
|
-
source:
|
|
5505
|
+
source: Os.optional().default(Ds)
|
|
5506
5506
|
});
|
|
5507
5507
|
class ps extends $ {
|
|
5508
5508
|
constructor() {
|
|
@@ -5512,7 +5512,7 @@ class ps extends $ {
|
|
|
5512
5512
|
afterUpdate(e) {
|
|
5513
5513
|
this.internal.addStatus = _r(e);
|
|
5514
5514
|
const { source: s } = this.state, { internal: r } = this;
|
|
5515
|
-
this.internal.source = ee(e, s, this.internal.source),
|
|
5515
|
+
this.internal.source = ee(e, s, this.internal.source), be(e)(async () => {
|
|
5516
5516
|
var i;
|
|
5517
5517
|
await this.updateEnabledState(), (i = r.stopListening) == null || i.call(r), r.stopListening = r.source.onChange(() => {
|
|
5518
5518
|
this.updateEnabledState().catch(this.reportError.bind(this));
|
|
@@ -5542,9 +5542,9 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5542
5542
|
scrolling: d.boolean(),
|
|
5543
5543
|
empty: d.boolean(),
|
|
5544
5544
|
visible: d.boolean(),
|
|
5545
|
-
telem: cn.optional().default(
|
|
5545
|
+
telem: cn.optional().default(Vr),
|
|
5546
5546
|
font: jr.optional().default("p"),
|
|
5547
|
-
color:
|
|
5547
|
+
color: v.colorZ.optional().default(v.ZERO),
|
|
5548
5548
|
overshoot: g.xy.optional().default({ x: 0, y: 0 })
|
|
5549
5549
|
}), gh = 0.98, it = "lower2d", mh = {
|
|
5550
5550
|
offset: 0n,
|
|
@@ -5560,7 +5560,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5560
5560
|
afterUpdate(e) {
|
|
5561
5561
|
var c;
|
|
5562
5562
|
const { internal: s } = this;
|
|
5563
|
-
s.render =
|
|
5563
|
+
s.render = X.use(e), s.theme = ge(e), v.isZero(this.state.color) ? this.internal.textColor = s.theme.colors.gray.l11 : s.textColor = this.state.color, s.telem = ee(e, this.state.telem, s.telem);
|
|
5564
5564
|
const { scrolling: r, wheelPos: a } = this.state;
|
|
5565
5565
|
if (this.state.scrolling && !this.prevState.scrolling) {
|
|
5566
5566
|
const h = this.values.alignmentBounds.upper - 1n;
|
|
@@ -5574,7 +5574,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5574
5574
|
h.offset = this.values.traverseAlignment(
|
|
5575
5575
|
h.offsetRef,
|
|
5576
5576
|
-BigInt(m)
|
|
5577
|
-
), h.offset < f.alignmentBounds.lower + BigInt(this.visibleLineCount) && (h.offset = f.alignmentBounds.lower, this.setState((
|
|
5577
|
+
), h.offset < f.alignmentBounds.lower + BigInt(this.visibleLineCount) && (h.offset = f.alignmentBounds.lower, this.setState((b) => ({ ...b, wheelPos: this.prevState.wheelPos }))), h.offset >= f.alignmentBounds.upper && this.setState((b) => ({ ...b, scrolling: !1 }));
|
|
5578
5578
|
}
|
|
5579
5579
|
const [o, l] = this.internal.telem.value();
|
|
5580
5580
|
this.values = l, this.checkEmpty(), (c = s.stopListeningTelem) == null || c.call(s), s.stopListeningTelem = s.telem.onChange(() => {
|
|
@@ -5668,8 +5668,8 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5668
5668
|
}
|
|
5669
5669
|
};
|
|
5670
5670
|
u(mt, "TYPE", "log"), u(mt, "z", ph);
|
|
5671
|
-
let
|
|
5672
|
-
const ed = { [
|
|
5671
|
+
let Yn = mt;
|
|
5672
|
+
const ed = { [Yn.TYPE]: Yn }, yh = d.object({
|
|
5673
5673
|
fps: d.number()
|
|
5674
5674
|
});
|
|
5675
5675
|
class gs extends $ {
|
|
@@ -5692,17 +5692,17 @@ class gs extends $ {
|
|
|
5692
5692
|
u(gs, "TYPE", "performance");
|
|
5693
5693
|
const td = {
|
|
5694
5694
|
[gs.TYPE]: gs
|
|
5695
|
-
},
|
|
5695
|
+
}, vh = d.object({
|
|
5696
5696
|
trigger: d.number(),
|
|
5697
5697
|
command: d.number().optional(),
|
|
5698
5698
|
value: d.number(),
|
|
5699
5699
|
sink: ta.optional().default(Wr),
|
|
5700
|
-
source: ea.optional().default(
|
|
5700
|
+
source: ea.optional().default(Gr)
|
|
5701
5701
|
});
|
|
5702
5702
|
class ms extends $ {
|
|
5703
5703
|
constructor() {
|
|
5704
5704
|
super(...arguments);
|
|
5705
|
-
u(this, "schema",
|
|
5705
|
+
u(this, "schema", vh);
|
|
5706
5706
|
}
|
|
5707
5707
|
afterUpdate(e) {
|
|
5708
5708
|
const { sink: s, source: r, trigger: a, command: i } = this.state, { internal: o } = this;
|
|
@@ -5724,16 +5724,16 @@ class ms extends $ {
|
|
|
5724
5724
|
}
|
|
5725
5725
|
}
|
|
5726
5726
|
u(ms, "TYPE", "Setpoint");
|
|
5727
|
-
const nd = { [ms.TYPE]: ms },
|
|
5727
|
+
const nd = { [ms.TYPE]: ms }, bh = d.object({
|
|
5728
5728
|
triggered: d.boolean(),
|
|
5729
5729
|
enabled: d.boolean(),
|
|
5730
5730
|
sink: Un.optional().default(In),
|
|
5731
|
-
source:
|
|
5731
|
+
source: Os.optional().default(Ds)
|
|
5732
5732
|
});
|
|
5733
5733
|
class ys extends $ {
|
|
5734
5734
|
constructor() {
|
|
5735
5735
|
super(...arguments);
|
|
5736
|
-
u(this, "schema",
|
|
5736
|
+
u(this, "schema", bh);
|
|
5737
5737
|
}
|
|
5738
5738
|
afterUpdate(e) {
|
|
5739
5739
|
var c;
|
|
@@ -5760,10 +5760,10 @@ class ys extends $ {
|
|
|
5760
5760
|
u(ys, "TYPE", "Toggle");
|
|
5761
5761
|
const sd = { [ys.TYPE]: ys }, Qn = { useAtlas: !0 }, xh = d.object({
|
|
5762
5762
|
box: p.box,
|
|
5763
|
-
telem: na.optional().default(
|
|
5763
|
+
telem: na.optional().default(Xr),
|
|
5764
5764
|
backgroundTelem: Ls.optional().default(Nn),
|
|
5765
5765
|
level: jr.optional().default("p"),
|
|
5766
|
-
color:
|
|
5766
|
+
color: v.colorZ.optional().default(v.ZERO),
|
|
5767
5767
|
precision: d.number().optional().default(2),
|
|
5768
5768
|
minWidth: d.number().optional().default(60),
|
|
5769
5769
|
width: d.number().optional(),
|
|
@@ -5777,7 +5777,7 @@ const sd = { [ys.TYPE]: ys }, Qn = { useAtlas: !0 }, xh = d.object({
|
|
|
5777
5777
|
afterUpdate(e) {
|
|
5778
5778
|
var r, a;
|
|
5779
5779
|
const { internal: s } = this;
|
|
5780
|
-
s.renderCtx =
|
|
5780
|
+
s.renderCtx = X.use(e), s.theme = ge(e), v.isZero(this.state.color) ? s.textColor = s.theme.colors.gray.l10 : s.textColor = this.state.color, s.telem = ee(e, this.state.telem, s.telem), (r = s.stopListening) == null || r.call(s), s.stopListening = s.telem.onChange(() => this.requestRender()), s.fontString = ot(s.theme, { level: this.state.level, code: !0 }), s.backgroundTelem = ee(
|
|
5781
5781
|
e,
|
|
5782
5782
|
this.state.backgroundTelem,
|
|
5783
5783
|
s.backgroundTelem
|
|
@@ -5803,32 +5803,32 @@ const sd = { [ys.TYPE]: ys }, Qn = { useAtlas: !0 }, xh = d.object({
|
|
|
5803
5803
|
render({ viewportScale: e = J.XY.IDENTITY }) {
|
|
5804
5804
|
const { renderCtx: s, telem: r, backgroundTelem: a, fontString: i, requestRender: o } = this.internal, { location: l, box: c } = this.state;
|
|
5805
5805
|
if (p.areaIsZero(c)) return;
|
|
5806
|
-
const h = p.topLeft(c), f = p.width(c), m = p.height(c),
|
|
5806
|
+
const h = p.topLeft(c), f = p.width(c), m = p.height(c), b = s.lower2d.applyScale(e);
|
|
5807
5807
|
let E = r.value();
|
|
5808
|
-
|
|
5809
|
-
const
|
|
5808
|
+
b.font = i;
|
|
5809
|
+
const O = this.fontHeight, T = E[0] == "-";
|
|
5810
5810
|
T && (E = E.slice(1));
|
|
5811
|
-
const { theme: w } = this.internal, L =
|
|
5811
|
+
const { theme: w } = this.internal, L = b.textDimensions(E, Qn), R = L.width + w.sizes.base, N = L.height;
|
|
5812
5812
|
o == null && s.erase(p.construct(this.prevState.box)), this.maybeUpdateWidth(R);
|
|
5813
5813
|
const A = { ...g.ZERO };
|
|
5814
|
-
l.x === "left" ? A.x = 6 +
|
|
5814
|
+
l.x === "left" ? A.x = 6 + O * 0.75 : l.x === "center" && (A.x = f / 2 - R / 2), l.y === "center" && (A.y = m / 2 + N / 2);
|
|
5815
5815
|
const C = g.translate(h, A);
|
|
5816
5816
|
let U = !0;
|
|
5817
5817
|
if (this.state.backgroundTelem.type != Nn.type) {
|
|
5818
|
-
const te = a.value(), De =
|
|
5818
|
+
const te = a.value(), De = v.isZero(te);
|
|
5819
5819
|
if (U = De, !De) {
|
|
5820
5820
|
const me = s.lower2d.applyScale(e);
|
|
5821
|
-
me.fillStyle =
|
|
5822
|
-
|
|
5821
|
+
me.fillStyle = v.hex(te), me.rect(...g.couple(h), f, m), me.fill(), b.fillStyle = v.hex(
|
|
5822
|
+
v.pickByContrast(te, w.colors.gray.l0, w.colors.gray.l11)
|
|
5823
5823
|
);
|
|
5824
5824
|
}
|
|
5825
5825
|
}
|
|
5826
|
-
U && (
|
|
5826
|
+
U && (b.fillStyle = v.hex(this.internal.textColor)), T && b.fillText(
|
|
5827
5827
|
"-",
|
|
5828
|
-
...g.couple(g.translateX(C, -
|
|
5828
|
+
...g.couple(g.translateX(C, -O * 0.6)),
|
|
5829
5829
|
void 0,
|
|
5830
5830
|
Qn
|
|
5831
|
-
),
|
|
5831
|
+
), b.fillText(E, ...g.couple(C), void 0, Qn);
|
|
5832
5832
|
}
|
|
5833
5833
|
};
|
|
5834
5834
|
u(yt, "TYPE", "value"), u(yt, "z", xh);
|
|
@@ -5889,10 +5889,10 @@ export {
|
|
|
5889
5889
|
Dn as aF,
|
|
5890
5890
|
aa as aG,
|
|
5891
5891
|
oa as aH,
|
|
5892
|
-
|
|
5892
|
+
ba as aI,
|
|
5893
5893
|
xa as aJ,
|
|
5894
5894
|
to as aK,
|
|
5895
|
-
|
|
5895
|
+
Gi as aL,
|
|
5896
5896
|
po as aM,
|
|
5897
5897
|
fo as aN,
|
|
5898
5898
|
Zt as aO,
|
|
@@ -5905,18 +5905,18 @@ export {
|
|
|
5905
5905
|
ii as aV,
|
|
5906
5906
|
Nt as aW,
|
|
5907
5907
|
ph as aX,
|
|
5908
|
-
|
|
5908
|
+
Yn as aY,
|
|
5909
5909
|
yh as aZ,
|
|
5910
5910
|
gs as a_,
|
|
5911
5911
|
Cn as aa,
|
|
5912
5912
|
ri as ab,
|
|
5913
5913
|
At as ac,
|
|
5914
5914
|
ni as ad,
|
|
5915
|
-
|
|
5915
|
+
Ot as ae,
|
|
5916
5916
|
Ji as af,
|
|
5917
5917
|
eo as ag,
|
|
5918
5918
|
Pt as ah,
|
|
5919
|
-
|
|
5919
|
+
Oa as ai,
|
|
5920
5920
|
Rn as aj,
|
|
5921
5921
|
Mn as ak,
|
|
5922
5922
|
cs as al,
|
|
@@ -5928,7 +5928,7 @@ export {
|
|
|
5928
5928
|
It as ar,
|
|
5929
5929
|
Wh as as,
|
|
5930
5930
|
ih as at,
|
|
5931
|
-
|
|
5931
|
+
Gh as au,
|
|
5932
5932
|
oh as av,
|
|
5933
5933
|
Ju as aw,
|
|
5934
5934
|
rh as ax,
|
|
@@ -5937,26 +5937,26 @@ export {
|
|
|
5937
5937
|
Ao as b,
|
|
5938
5938
|
ma as b0,
|
|
5939
5939
|
co as b1,
|
|
5940
|
-
|
|
5940
|
+
Xi as b2,
|
|
5941
5941
|
lo as b3,
|
|
5942
5942
|
hh as b4,
|
|
5943
5943
|
fs as b5,
|
|
5944
5944
|
fh as b6,
|
|
5945
5945
|
ps as b7,
|
|
5946
|
-
|
|
5946
|
+
vh as b8,
|
|
5947
5947
|
ms as b9,
|
|
5948
|
-
|
|
5948
|
+
bh as ba,
|
|
5949
5949
|
ys as bb,
|
|
5950
5950
|
Ps as c,
|
|
5951
5951
|
td as d,
|
|
5952
|
-
|
|
5952
|
+
Vh as e,
|
|
5953
5953
|
ed as f,
|
|
5954
5954
|
wh as g,
|
|
5955
5955
|
zu as h,
|
|
5956
5956
|
sd as i,
|
|
5957
|
-
|
|
5957
|
+
Oo as j,
|
|
5958
5958
|
qi as k,
|
|
5959
|
-
|
|
5959
|
+
Gu as l,
|
|
5960
5960
|
nd as m,
|
|
5961
5961
|
Zu as n,
|
|
5962
5962
|
_h as o,
|
|
@@ -5966,7 +5966,7 @@ export {
|
|
|
5966
5966
|
Jh as s,
|
|
5967
5967
|
dh as t,
|
|
5968
5968
|
$i as u,
|
|
5969
|
-
|
|
5969
|
+
Xh as v,
|
|
5970
5970
|
Qu as w,
|
|
5971
5971
|
$h as x,
|
|
5972
5972
|
Bh as y,
|