@synnaxlabs/pluto 0.42.0 → 0.42.4
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-CkzEjG7v.cjs +57 -0
- package/dist/{value-BdZLWVof.js → value-DIoBc3VU.js} +637 -634
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +7 -7
- 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
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
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
|
-
import
|
|
5
|
-
import { n as Zr,
|
|
6
|
-
import { m as Z,
|
|
7
|
-
import { M as
|
|
8
|
-
import {
|
|
4
|
+
import Ae, { z as d } from "zod";
|
|
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 et, 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 ve, 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 Zt, 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
|
|
10
|
+
import { f as it } 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);
|
|
@@ -55,17 +55,17 @@ const Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
55
55
|
Observer: Bi
|
|
56
56
|
}, Symbol.toStringTag, { value: "Module" })), ks = "pluto-vis-renderer", Ps = (t, n) => {
|
|
57
57
|
t.set(ks, n, !1);
|
|
58
|
-
}, Rs = (t) => t.get(ks), $i = (t) => t.getOptional(ks),
|
|
59
|
-
props:
|
|
58
|
+
}, Rs = (t) => t.get(ks), $i = (t) => t.getOptional(ks), be = (t, n) => Rs(t)(n), Fi = d.object({
|
|
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 ye;
|
|
65
|
+
let es = (ye = class extends pe {
|
|
66
66
|
constructor() {
|
|
67
67
|
super(...arguments);
|
|
68
|
-
u(this, "schema",
|
|
68
|
+
u(this, "schema", ye.stateZ);
|
|
69
69
|
}
|
|
70
70
|
afterUpdate(e) {
|
|
71
71
|
var s;
|
|
@@ -75,21 +75,21 @@ 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(
|
|
79
|
-
const Ms = "pluto-client-context", jn = (t, n) => t.set(Ms, n),
|
|
78
|
+
}, u(ye, "TYPE", "synnax.Provider"), u(ye, "stateZ", Fi), ye);
|
|
79
|
+
const Ms = "pluto-client-context", jn = (t, n) => t.set(Ms, n), Ut = (t) => t.get(Ms).client, qi = {
|
|
80
80
|
[es.TYPE]: es
|
|
81
81
|
}, Ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82
82
|
__proto__: null,
|
|
83
83
|
Provider: es,
|
|
84
84
|
REGISTRY: qi,
|
|
85
85
|
ZERO_CONTEXT_VALUE: zr,
|
|
86
|
-
use:
|
|
86
|
+
use: Ut
|
|
87
87
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
88
|
-
class
|
|
88
|
+
class xe extends Es.Observer {
|
|
89
89
|
cleanup() {
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
class en extends
|
|
92
|
+
class en extends xe {
|
|
93
93
|
set() {
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -100,7 +100,7 @@ const In = {
|
|
|
100
100
|
variant: "sink",
|
|
101
101
|
valueType: "boolean"
|
|
102
102
|
};
|
|
103
|
-
class tn extends
|
|
103
|
+
class tn extends xe {
|
|
104
104
|
set() {
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -111,7 +111,7 @@ const Wr = {
|
|
|
111
111
|
variant: "sink",
|
|
112
112
|
valueType: "number"
|
|
113
113
|
};
|
|
114
|
-
class nn extends
|
|
114
|
+
class nn extends xe {
|
|
115
115
|
value() {
|
|
116
116
|
return !1;
|
|
117
117
|
}
|
|
@@ -123,31 +123,31 @@ const Ds = {
|
|
|
123
123
|
variant: "source",
|
|
124
124
|
valueType: "boolean"
|
|
125
125
|
};
|
|
126
|
-
class sn extends
|
|
126
|
+
class sn extends xe {
|
|
127
127
|
value() {
|
|
128
128
|
return 0;
|
|
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",
|
|
136
136
|
valueType: "number"
|
|
137
137
|
};
|
|
138
|
-
class rn extends
|
|
138
|
+
class rn extends xe {
|
|
139
139
|
value() {
|
|
140
140
|
return "";
|
|
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",
|
|
148
148
|
valueType: "string"
|
|
149
149
|
};
|
|
150
|
-
class an extends
|
|
150
|
+
class an extends xe {
|
|
151
151
|
value() {
|
|
152
152
|
return {
|
|
153
153
|
key: "noop",
|
|
@@ -158,15 +158,15 @@ 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",
|
|
165
165
|
valueType: "status"
|
|
166
166
|
};
|
|
167
|
-
class on extends
|
|
167
|
+
class on extends xe {
|
|
168
168
|
value() {
|
|
169
|
-
return
|
|
169
|
+
return v.ZERO;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
u(on, "TYPE", "noop-color-source");
|
|
@@ -176,13 +176,13 @@ const Nn = {
|
|
|
176
176
|
variant: "source",
|
|
177
177
|
valueType: "color"
|
|
178
178
|
};
|
|
179
|
-
class ln extends
|
|
179
|
+
class ln extends xe {
|
|
180
180
|
value() {
|
|
181
181
|
return [k.ZERO, new F([])];
|
|
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",
|
|
@@ -206,23 +206,23 @@ class Kr {
|
|
|
206
206
|
return e == null ? null : new e();
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
const Hi = d.instanceof(ArrayBuffer),
|
|
209
|
+
const Hi = d.instanceof(ArrayBuffer), Bt = d.object({
|
|
210
210
|
type: d.string(),
|
|
211
211
|
variant: d.enum(["source", "sink", "source-transformer", "sink-transformer"]),
|
|
212
212
|
valueType: d.string(),
|
|
213
213
|
props: d.any(),
|
|
214
214
|
transfer: d.array(Hi).optional()
|
|
215
|
-
}),
|
|
215
|
+
}), Te = Bt.extend({ variant: d.literal("source") }), Zn = Bt.extend({ variant: d.literal("sink") }), Qr = Bt.extend({
|
|
216
216
|
variant: d.literal("source-transformer")
|
|
217
|
-
}), Jr =
|
|
217
|
+
}), Jr = Bt.extend({
|
|
218
218
|
variant: d.literal("sink-transformer")
|
|
219
|
-
}), cn =
|
|
219
|
+
}), cn = Te.extend({ valueType: d.literal("series") }), Os = Te.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")
|
|
223
223
|
}), Wi = Qr.extend({
|
|
224
224
|
valueType: d.literal("boolean")
|
|
225
|
-
}), ea =
|
|
225
|
+
}), ea = Te.extend({ valueType: d.literal("number") }), ta = Zn.extend({ valueType: d.literal("number") }), Ls = Te.extend({ valueType: d.literal("color") }), As = Te.extend({ valueType: d.literal("status") }), na = Te.extend({ valueType: d.literal("string") });
|
|
226
226
|
let Bn = class extends Es.BaseObserver {
|
|
227
227
|
constructor(e) {
|
|
228
228
|
super();
|
|
@@ -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
|
|
261
|
+
class ke 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", {});
|
|
@@ -344,7 +344,7 @@ const Is = d.object({
|
|
|
344
344
|
}), aa = d.object({
|
|
345
345
|
connections: d.array(Is),
|
|
346
346
|
outlet: d.string(),
|
|
347
|
-
segments: d.record(d.string(),
|
|
347
|
+
segments: d.record(d.string(), Te)
|
|
348
348
|
});
|
|
349
349
|
class Ns {
|
|
350
350
|
constructor(n) {
|
|
@@ -354,8 +354,8 @@ class Ns {
|
|
|
354
354
|
}
|
|
355
355
|
create(n) {
|
|
356
356
|
switch (n.type) {
|
|
357
|
-
case
|
|
358
|
-
return new
|
|
357
|
+
case yt.TYPE:
|
|
358
|
+
return new yt(n.props, this.factory);
|
|
359
359
|
case vt.TYPE:
|
|
360
360
|
return new vt(n.props, this.factory);
|
|
361
361
|
default:
|
|
@@ -363,7 +363,7 @@ class Ns {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
class
|
|
366
|
+
class yt extends V {
|
|
367
367
|
constructor(e, s) {
|
|
368
368
|
super(e);
|
|
369
369
|
u(this, "schema", aa);
|
|
@@ -398,11 +398,11 @@ class bt extends G {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
u(
|
|
402
|
-
const
|
|
401
|
+
u(yt, "TYPE", "source-pipeline");
|
|
402
|
+
const Gi = (t, n) => ({
|
|
403
403
|
variant: "source",
|
|
404
404
|
props: n,
|
|
405
|
-
type:
|
|
405
|
+
type: yt.TYPE,
|
|
406
406
|
valueType: t
|
|
407
407
|
}), ia = d.object({
|
|
408
408
|
connections: d.array(Is),
|
|
@@ -442,7 +442,7 @@ class vt extends _n {
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
u(vt, "TYPE", "sink-pipeline");
|
|
445
|
-
const
|
|
445
|
+
const Xi = (t, n) => ({
|
|
446
446
|
variant: "sink",
|
|
447
447
|
props: n,
|
|
448
448
|
type: vt.TYPE,
|
|
@@ -456,7 +456,7 @@ const Vi = (t, n) => ({
|
|
|
456
456
|
variant: "success",
|
|
457
457
|
message: "data loaded"
|
|
458
458
|
};
|
|
459
|
-
class
|
|
459
|
+
class bt extends V {
|
|
460
460
|
constructor(e, s, r) {
|
|
461
461
|
super(s);
|
|
462
462
|
u(this, "schema", oa);
|
|
@@ -496,11 +496,11 @@ 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
|
}
|
|
503
|
-
u(
|
|
503
|
+
u(bt, "TYPE", "stream-channel-value");
|
|
504
504
|
const la = async (t, n, e) => {
|
|
505
505
|
const s = await t.retrieveChannel(n), r = Qt.isCalculated(s);
|
|
506
506
|
if (!e || s.isIndex)
|
|
@@ -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
|
|
529
|
+
class xt 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,18 +562,18 @@ 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
|
}
|
|
569
|
-
u(
|
|
569
|
+
u(xt, "TYPE", "series-source");
|
|
570
570
|
const Ki = d.object({
|
|
571
571
|
channel: d.number().or(d.string()),
|
|
572
572
|
useIndexOfChannel: d.boolean().optional().default(!1),
|
|
573
573
|
timeSpan: S.z,
|
|
574
574
|
keepFor: S.z.optional()
|
|
575
575
|
});
|
|
576
|
-
class
|
|
576
|
+
class Tt 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() {
|
|
@@ -630,11 +630,11 @@ class wt extends G {
|
|
|
630
630
|
(e = this.stopStreaming) == null || e.call(this), this.stopStreaming = void 0, this.data.release(), this.valid = !1;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
u(
|
|
633
|
+
u(Tt, "TYPE", "dynamic-series-source");
|
|
634
634
|
const Qi = {
|
|
635
|
+
[xt.TYPE]: xt,
|
|
635
636
|
[Tt.TYPE]: Tt,
|
|
636
|
-
[
|
|
637
|
-
[xt.TYPE]: xt
|
|
637
|
+
[bt.TYPE]: bt
|
|
638
638
|
};
|
|
639
639
|
class ca {
|
|
640
640
|
constructor(n) {
|
|
@@ -648,17 +648,17 @@ class ca {
|
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
const Ji = (t) => ({
|
|
651
|
-
type:
|
|
651
|
+
type: xt.TYPE,
|
|
652
652
|
props: t,
|
|
653
653
|
variant: "source",
|
|
654
654
|
valueType: "series"
|
|
655
655
|
}), eo = (t) => ({
|
|
656
|
-
type:
|
|
656
|
+
type: Tt.TYPE,
|
|
657
657
|
props: t,
|
|
658
658
|
variant: "source",
|
|
659
659
|
valueType: "series"
|
|
660
660
|
}), to = (t) => ({
|
|
661
|
-
type:
|
|
661
|
+
type: bt.TYPE,
|
|
662
662
|
props: t,
|
|
663
663
|
variant: "source",
|
|
664
664
|
valueType: "number"
|
|
@@ -671,14 +671,14 @@ class ua {
|
|
|
671
671
|
switch (n.type) {
|
|
672
672
|
case un.TYPE:
|
|
673
673
|
return new un(n.props);
|
|
674
|
+
case wt.TYPE:
|
|
675
|
+
return new wt(n.props);
|
|
674
676
|
case St.TYPE:
|
|
675
677
|
return new St(n.props);
|
|
676
678
|
case Ct.TYPE:
|
|
677
679
|
return new Ct(n.props);
|
|
678
680
|
case Et.TYPE:
|
|
679
681
|
return new Et(n.props);
|
|
680
|
-
case kt.TYPE:
|
|
681
|
-
return new kt(n.props);
|
|
682
682
|
default:
|
|
683
683
|
return null;
|
|
684
684
|
}
|
|
@@ -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
|
|
717
|
+
class wt extends V {
|
|
718
718
|
constructor(e) {
|
|
719
719
|
super(e);
|
|
720
720
|
u(this, "schema", ha);
|
|
@@ -751,9 +751,9 @@ class St extends G {
|
|
|
751
751
|
clearInterval(this.interval), this.interval = void 0;
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
u(
|
|
754
|
+
u(wt, "TYPE", "iterative-series");
|
|
755
755
|
const da = d.number();
|
|
756
|
-
class
|
|
756
|
+
class St extends V {
|
|
757
757
|
constructor() {
|
|
758
758
|
super(...arguments);
|
|
759
759
|
u(this, "schema", da);
|
|
@@ -762,9 +762,9 @@ class Ct extends G {
|
|
|
762
762
|
return this.props;
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
u(
|
|
765
|
+
u(St, "TYPE", "static-numeric");
|
|
766
766
|
const fa = d.string();
|
|
767
|
-
class
|
|
767
|
+
class Ct extends V {
|
|
768
768
|
constructor() {
|
|
769
769
|
super(...arguments);
|
|
770
770
|
u(this, "schema", fa);
|
|
@@ -773,40 +773,40 @@ class Et extends G {
|
|
|
773
773
|
return this.props;
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
u(
|
|
777
|
-
const pa =
|
|
778
|
-
class
|
|
776
|
+
u(Ct, "TYPE", "static-string");
|
|
777
|
+
const pa = v.crudeZ;
|
|
778
|
+
class Et 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
|
-
u(
|
|
787
|
+
u(Et, "TYPE", "static-color");
|
|
788
788
|
const no = (t) => ({
|
|
789
789
|
type: un.TYPE,
|
|
790
790
|
props: t,
|
|
791
791
|
variant: "source",
|
|
792
792
|
valueType: "series"
|
|
793
793
|
}), so = (t) => ({
|
|
794
|
-
type:
|
|
794
|
+
type: wt.TYPE,
|
|
795
795
|
props: t,
|
|
796
796
|
variant: "source",
|
|
797
797
|
valueType: "series"
|
|
798
798
|
}), ro = (t) => ({
|
|
799
|
-
type:
|
|
799
|
+
type: St.TYPE,
|
|
800
800
|
props: t,
|
|
801
801
|
variant: "source",
|
|
802
802
|
valueType: "number"
|
|
803
803
|
}), ao = (t) => ({
|
|
804
|
-
type:
|
|
804
|
+
type: Ct.TYPE,
|
|
805
805
|
props: t,
|
|
806
806
|
variant: "source",
|
|
807
807
|
valueType: "string"
|
|
808
808
|
}), io = (t) => ({
|
|
809
|
-
type:
|
|
809
|
+
type: Et.TYPE,
|
|
810
810
|
props: t,
|
|
811
811
|
variant: "source",
|
|
812
812
|
valueType: "color"
|
|
@@ -817,6 +817,8 @@ class ga {
|
|
|
817
817
|
}
|
|
818
818
|
create(n) {
|
|
819
819
|
switch (n.type) {
|
|
820
|
+
case Fe.TYPE:
|
|
821
|
+
return new Fe(n.props);
|
|
820
822
|
case qe.TYPE:
|
|
821
823
|
return new qe(n.props);
|
|
822
824
|
case je.TYPE:
|
|
@@ -827,12 +829,10 @@ class ga {
|
|
|
827
829
|
return new ze(n.props);
|
|
828
830
|
case We.TYPE:
|
|
829
831
|
return new We(n.props);
|
|
830
|
-
case Xe.TYPE:
|
|
831
|
-
return new Xe(n.props);
|
|
832
|
-
case Ve.TYPE:
|
|
833
|
-
return new Ve(n.props);
|
|
834
832
|
case Ge.TYPE:
|
|
835
833
|
return new Ge(n.props);
|
|
834
|
+
case Xe.TYPE:
|
|
835
|
+
return new Xe(n.props);
|
|
836
836
|
}
|
|
837
837
|
return null;
|
|
838
838
|
}
|
|
@@ -842,29 +842,29 @@ const oo = d.object({
|
|
|
842
842
|
falsy: d.number().optional().default(0)
|
|
843
843
|
}), lo = (t) => ({
|
|
844
844
|
props: t,
|
|
845
|
-
type:
|
|
845
|
+
type: Fe.TYPE,
|
|
846
846
|
variant: "sink",
|
|
847
847
|
valueType: "boolean"
|
|
848
|
-
}),
|
|
848
|
+
}), ot = class ot extends ra {
|
|
849
849
|
constructor() {
|
|
850
850
|
super(...arguments);
|
|
851
|
-
u(this, "schema",
|
|
851
|
+
u(this, "schema", ot.propsZ);
|
|
852
852
|
}
|
|
853
853
|
transform(e) {
|
|
854
854
|
return e ? this.props.truthy : this.props.falsy;
|
|
855
855
|
}
|
|
856
856
|
};
|
|
857
|
-
u(
|
|
858
|
-
let
|
|
857
|
+
u(ot, "TYPE", "boolean-numeric-converter-sink"), u(ot, "propsZ", oo);
|
|
858
|
+
let Fe = ot;
|
|
859
859
|
const ma = d.object({ trueBound: k.bounds }), co = (t) => ({
|
|
860
860
|
props: t,
|
|
861
|
-
type:
|
|
861
|
+
type: qe.TYPE,
|
|
862
862
|
variant: "source",
|
|
863
863
|
valueType: "boolean"
|
|
864
|
-
}),
|
|
864
|
+
}), lt = class lt extends ke {
|
|
865
865
|
constructor() {
|
|
866
866
|
super(...arguments);
|
|
867
|
-
u(this, "schema",
|
|
867
|
+
u(this, "schema", lt.propsZ);
|
|
868
868
|
u(this, "curr", null);
|
|
869
869
|
}
|
|
870
870
|
shouldNotify(e) {
|
|
@@ -875,68 +875,68 @@ const ma = d.object({ trueBound: k.bounds }), co = (t) => ({
|
|
|
875
875
|
return this.curr = k.contains(this.props.trueBound, e), this.curr;
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
|
-
u(
|
|
879
|
-
let
|
|
880
|
-
const ya = d.object({}),
|
|
878
|
+
u(lt, "TYPE", "boolean-source"), u(lt, "propsZ", ma);
|
|
879
|
+
let qe = lt;
|
|
880
|
+
const ya = d.object({}), ct = class ct extends sa {
|
|
881
881
|
constructor() {
|
|
882
882
|
super(...arguments);
|
|
883
|
-
u(this, "schema",
|
|
883
|
+
u(this, "schema", ct.propsZ);
|
|
884
884
|
}
|
|
885
885
|
transform(e) {
|
|
886
886
|
return Object.values(e).reduce((s, r) => s + r, 0) / Object.keys(e).length;
|
|
887
887
|
}
|
|
888
888
|
};
|
|
889
|
-
u(
|
|
890
|
-
let
|
|
889
|
+
u(ct, "TYPE", "mean"), u(ct, "propsZ", ya);
|
|
890
|
+
let je = ct;
|
|
891
891
|
const uo = (t) => ({
|
|
892
892
|
props: t,
|
|
893
|
-
type:
|
|
893
|
+
type: je.TYPE,
|
|
894
894
|
variant: "source",
|
|
895
895
|
valueType: "boolean"
|
|
896
|
-
}),
|
|
897
|
-
trueVariant:
|
|
898
|
-
}),
|
|
896
|
+
}), va = d.object({
|
|
897
|
+
trueVariant: bi.optional().default("success")
|
|
898
|
+
}), ut = class ut extends ke {
|
|
899
899
|
constructor() {
|
|
900
900
|
super(...arguments);
|
|
901
|
-
u(this, "schema",
|
|
901
|
+
u(this, "schema", ut.propsZ);
|
|
902
902
|
}
|
|
903
903
|
transform(e) {
|
|
904
904
|
return e.variant === this.props.trueVariant;
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
|
-
u(
|
|
908
|
-
let
|
|
907
|
+
u(ut, "TYPE", "boolean-status"), u(ut, "propsZ", va);
|
|
908
|
+
let He = ut;
|
|
909
909
|
const ho = (t) => ({
|
|
910
910
|
props: t,
|
|
911
|
-
type:
|
|
911
|
+
type: He.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(""),
|
|
918
918
|
notation: ws.notationZ.optional().default("standard")
|
|
919
|
-
}),
|
|
919
|
+
}), ht = class ht extends ke {
|
|
920
920
|
constructor() {
|
|
921
921
|
super(...arguments);
|
|
922
|
-
u(this, "schema",
|
|
922
|
+
u(this, "schema", ht.propsZ);
|
|
923
923
|
}
|
|
924
924
|
transform(e) {
|
|
925
925
|
const { precision: s, prefix: r, suffix: a, notation: i } = this.props;
|
|
926
926
|
return `${r}${ws.stringifyNumber(e, s, i)}${a}`;
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
|
-
u(
|
|
930
|
-
let
|
|
929
|
+
u(ht, "TYPE", "stringify-number"), u(ht, "propsZ", ba);
|
|
930
|
+
let ze = ht;
|
|
931
931
|
const fo = (t) => ({
|
|
932
932
|
props: t,
|
|
933
|
-
type:
|
|
933
|
+
type: ze.TYPE,
|
|
934
934
|
variant: "source",
|
|
935
935
|
valueType: "string"
|
|
936
936
|
}), xa = d.object({
|
|
937
937
|
windowSize: d.number().optional().default(5)
|
|
938
938
|
});
|
|
939
|
-
class
|
|
939
|
+
class We extends ke {
|
|
940
940
|
constructor() {
|
|
941
941
|
super(...arguments);
|
|
942
942
|
u(this, "schema", xa);
|
|
@@ -949,47 +949,47 @@ 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(We, "TYPE", "rolling-average"), u(We, "propsZ", ya);
|
|
953
953
|
const po = (t) => ({
|
|
954
954
|
props: t,
|
|
955
|
-
type:
|
|
955
|
+
type: We.TYPE,
|
|
956
956
|
variant: "source",
|
|
957
957
|
valueType: "number"
|
|
958
958
|
}), Ta = d.object({
|
|
959
|
-
gradient:
|
|
960
|
-
}),
|
|
959
|
+
gradient: v.gradientZ
|
|
960
|
+
}), dt = class dt extends ke {
|
|
961
961
|
constructor() {
|
|
962
962
|
super(...arguments);
|
|
963
|
-
u(this, "schema",
|
|
963
|
+
u(this, "schema", dt.propsZ);
|
|
964
964
|
}
|
|
965
965
|
transform(e) {
|
|
966
|
-
return
|
|
966
|
+
return v.fromGradient(this.props.gradient, e);
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
|
-
u(
|
|
970
|
-
let
|
|
969
|
+
u(dt, "TYPE", "color-gradient"), u(dt, "propsZ", Ta);
|
|
970
|
+
let Ge = dt;
|
|
971
971
|
const go = (t) => ({
|
|
972
972
|
props: t,
|
|
973
|
-
type:
|
|
973
|
+
type: Ge.TYPE,
|
|
974
974
|
variant: "source",
|
|
975
975
|
valueType: "color"
|
|
976
976
|
}), wa = d.object({
|
|
977
977
|
scale: J.transform
|
|
978
|
-
}),
|
|
978
|
+
}), ft = class ft extends ke {
|
|
979
979
|
constructor() {
|
|
980
980
|
super(...arguments);
|
|
981
|
-
u(this, "schema",
|
|
981
|
+
u(this, "schema", ft.propsZ);
|
|
982
982
|
}
|
|
983
983
|
transform(e) {
|
|
984
984
|
const { offset: s, scale: r } = this.props.scale;
|
|
985
985
|
return e * r + s;
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
|
-
u(
|
|
989
|
-
let
|
|
988
|
+
u(ft, "TYPE", "scale-number"), u(ft, "propsZ", wa);
|
|
989
|
+
let Xe = ft;
|
|
990
990
|
const mo = (t) => ({
|
|
991
991
|
props: t,
|
|
992
|
-
type:
|
|
992
|
+
type: Xe.TYPE,
|
|
993
993
|
variant: "source",
|
|
994
994
|
valueType: "number"
|
|
995
995
|
});
|
|
@@ -1034,7 +1034,7 @@ let Ca = class Ea {
|
|
|
1034
1034
|
create(n, e) {
|
|
1035
1035
|
const s = this.factory.create(n, e);
|
|
1036
1036
|
if (s == null)
|
|
1037
|
-
throw new
|
|
1037
|
+
throw new et(
|
|
1038
1038
|
`Telemetry service could not find a source for type ${n.type}`
|
|
1039
1039
|
);
|
|
1040
1040
|
return s;
|
|
@@ -1087,7 +1087,7 @@ const ee = (t, n, e, s) => {
|
|
|
1087
1087
|
(a = e.cleanup) == null || a.call(e);
|
|
1088
1088
|
}
|
|
1089
1089
|
return new tr(r.create(n, s), r, n);
|
|
1090
|
-
},
|
|
1090
|
+
}, _t = (t, n, e, s) => {
|
|
1091
1091
|
var a;
|
|
1092
1092
|
const r = $n(t);
|
|
1093
1093
|
if (e instanceof nr) {
|
|
@@ -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
|
}
|
|
@@ -1371,7 +1371,7 @@ class Po {
|
|
|
1371
1371
|
get(n) {
|
|
1372
1372
|
const e = this.cache.get(n);
|
|
1373
1373
|
if (e != null) return e;
|
|
1374
|
-
throw new
|
|
1374
|
+
throw new et(`cache entry for ${n} not found`);
|
|
1375
1375
|
}
|
|
1376
1376
|
/** Garbage collects the cache */
|
|
1377
1377
|
gc() {
|
|
@@ -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,17 +1611,17 @@ 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({}), pt = class pt extends pe {
|
|
1615
1615
|
constructor() {
|
|
1616
1616
|
super(...arguments);
|
|
1617
|
-
u(this, "schema",
|
|
1617
|
+
u(this, "schema", pt.stateZ);
|
|
1618
1618
|
u(this, "prevCore", null);
|
|
1619
1619
|
u(this, "client", null);
|
|
1620
1620
|
}
|
|
1621
1621
|
afterUpdate(e) {
|
|
1622
|
-
const s =
|
|
1622
|
+
const s = Ut(e), r = Zt(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,50 +1629,50 @@ const Ya = d.object({}), gt = class gt extends pe {
|
|
|
1629
1629
|
ka(e, o);
|
|
1630
1630
|
}
|
|
1631
1631
|
};
|
|
1632
|
-
u(
|
|
1633
|
-
let
|
|
1634
|
-
const
|
|
1635
|
-
[
|
|
1632
|
+
u(pt, "TYPE", "telem.Provider"), u(pt, "stateZ", Oa);
|
|
1633
|
+
let kt = pt;
|
|
1634
|
+
const Oo = {
|
|
1635
|
+
[kt.TYPE]: kt
|
|
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
|
-
BaseProvider:
|
|
1642
|
-
BooleanStatus:
|
|
1643
|
-
ChannelData:
|
|
1644
|
-
ColorGradient:
|
|
1641
|
+
BaseProvider: kt,
|
|
1642
|
+
BooleanStatus: He,
|
|
1643
|
+
ChannelData: xt,
|
|
1644
|
+
ColorGradient: Ge,
|
|
1645
1645
|
CompoundTelemFactory: _s,
|
|
1646
1646
|
Context: Ca,
|
|
1647
|
-
FixedColorSource:
|
|
1648
|
-
FixedNumber:
|
|
1649
|
-
FixedString:
|
|
1650
|
-
IterativeSeries:
|
|
1651
|
-
Mean:
|
|
1647
|
+
FixedColorSource: Et,
|
|
1648
|
+
FixedNumber: St,
|
|
1649
|
+
FixedString: Ct,
|
|
1650
|
+
IterativeSeries: wt,
|
|
1651
|
+
Mean: je,
|
|
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:
|
|
1659
|
-
SetPoint:
|
|
1657
|
+
RollingAverage: We,
|
|
1658
|
+
ScaleNumber: Xe,
|
|
1659
|
+
SetPoint: Fe,
|
|
1660
1660
|
SinkPipeline: vt,
|
|
1661
|
-
SourcePipeline:
|
|
1661
|
+
SourcePipeline: yt,
|
|
1662
1662
|
StaticFactory: ua,
|
|
1663
|
-
StreamChannelData:
|
|
1664
|
-
StreamChannelValue:
|
|
1665
|
-
StringifyNumber:
|
|
1663
|
+
StreamChannelData: Tt,
|
|
1664
|
+
StreamChannelValue: bt,
|
|
1665
|
+
StringifyNumber: ze,
|
|
1666
1666
|
TransformerFactory: ga,
|
|
1667
1667
|
UnarySinkTransformer: ra,
|
|
1668
|
-
UnarySourceTransformer:
|
|
1669
|
-
WithinBounds:
|
|
1668
|
+
UnarySourceTransformer: ke,
|
|
1669
|
+
WithinBounds: qe,
|
|
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,33 +1708,33 @@ 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
|
-
sourceSpecZ:
|
|
1717
|
+
sourceSpecZ: Te,
|
|
1718
1718
|
sourceTransformerSpecZ: Qr,
|
|
1719
|
-
specZ:
|
|
1719
|
+
specZ: Bt,
|
|
1720
1720
|
statusSourceSpecZ: As,
|
|
1721
1721
|
streamChannelData: eo,
|
|
1722
1722
|
streamChannelValue: to,
|
|
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
|
-
useSink:
|
|
1729
|
+
useSink: _t,
|
|
1730
1730
|
useSource: ee,
|
|
1731
1731
|
withinBounds: co,
|
|
1732
1732
|
withinBoundsProps: ma
|
|
1733
|
-
}, Symbol.toStringTag, { value: "Module" })), Lo =
|
|
1734
|
-
request:
|
|
1735
|
-
bounds:
|
|
1736
|
-
}), Ao =
|
|
1737
|
-
request:
|
|
1733
|
+
}, Symbol.toStringTag, { value: "Module" })), Lo = Ae.object({
|
|
1734
|
+
request: Ae.string(),
|
|
1735
|
+
bounds: Ae.record(Ae.string(), k.bounds)
|
|
1736
|
+
}), Ao = Ae.object({
|
|
1737
|
+
request: Ae.string(),
|
|
1738
1738
|
response: Lo
|
|
1739
1739
|
});
|
|
1740
1740
|
class hn extends $ {
|
|
@@ -1763,10 +1763,10 @@ const La = d.object({
|
|
|
1763
1763
|
loc: re.outer
|
|
1764
1764
|
});
|
|
1765
1765
|
d.record(d.string(), La);
|
|
1766
|
-
const
|
|
1766
|
+
const Ie = (t, n) => Object.values(n).filter(({ loc: e }) => e === t).sort((e, s) => s.order - e.order), Io = (t, n, e) => {
|
|
1767
1767
|
const s = n[t];
|
|
1768
1768
|
if (s == null) return g.ZERO;
|
|
1769
|
-
const r = re.construct(s.loc), a =
|
|
1769
|
+
const r = re.construct(s.loc), a = Ie(r, n), i = re.construct(ae.swap(re.direction(r))), o = Ie(i, n), l = a.findIndex(({ key: f }) => f === t), c = a.slice(0, l).reduce((f, { size: m }) => f + m, 0), h = o.reduce((f, { size: m }) => f + m, 0);
|
|
1770
1770
|
switch (r) {
|
|
1771
1771
|
case "left":
|
|
1772
1772
|
return g.translate(p.topLeft(e), [c, h]);
|
|
@@ -1781,7 +1781,7 @@ const Ne = (t, n) => Object.values(n).filter(({ loc: e }) => e === t).sort((e, s
|
|
|
1781
1781
|
]);
|
|
1782
1782
|
}
|
|
1783
1783
|
}, No = (t, n) => {
|
|
1784
|
-
const e =
|
|
1784
|
+
const e = Ie("left", t), s = Ie("right", t), r = Ie("top", t), a = Ie("bottom", t), i = e.reduce((h, { size: f }) => h + f, 0), o = s.reduce((h, { size: f }) => h + f, 0), l = r.reduce((h, { size: f }) => h + f, 0), c = a.reduce((h, { size: f }) => h + f, 0);
|
|
1785
1785
|
return p.construct(
|
|
1786
1786
|
g.translate(p.topLeft(n), { x: i, y: l }),
|
|
1787
1787
|
p.width(n) - i - o,
|
|
@@ -1879,9 +1879,9 @@ function Ia(t, n) {
|
|
|
1879
1879
|
for (var s in n) e[s] = n[s];
|
|
1880
1880
|
return e;
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1882
|
+
function $t() {
|
|
1883
1883
|
}
|
|
1884
|
-
var
|
|
1884
|
+
var Pt = 0.7, fn = 1 / Pt, $e = "\\s*([+-]?\\d+)\\s*", Rt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ie = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", zo = /^#([0-9a-f]{3,8})$/, Wo = new RegExp(`^rgb\\(${$e},${$e},${$e}\\)$`), Go = new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`), Xo = new RegExp(`^rgba\\(${$e},${$e},${$e},${Rt}\\)$`), Vo = new RegExp(`^rgba\\(${ie},${ie},${ie},${Rt}\\)$`), Ko = new RegExp(`^hsl\\(${Rt},${ie},${ie}\\)$`), Qo = new RegExp(`^hsla\\(${Rt},${ie},${ie},${Rt}\\)$`), sr = {
|
|
1885
1885
|
aliceblue: 15792383,
|
|
1886
1886
|
antiquewhite: 16444375,
|
|
1887
1887
|
aqua: 65535,
|
|
@@ -2031,7 +2031,7 @@ var Rt = 0.7, fn = 1 / Rt, Fe = "\\s*([+-]?\\d+)\\s*", Mt = "\\s*([+-]?(?:\\d*\\
|
|
|
2031
2031
|
yellow: 16776960,
|
|
2032
2032
|
yellowgreen: 10145074
|
|
2033
2033
|
};
|
|
2034
|
-
qs(
|
|
2034
|
+
qs($t, Mt, {
|
|
2035
2035
|
copy(t) {
|
|
2036
2036
|
return Object.assign(new this.constructor(), this, t);
|
|
2037
2037
|
},
|
|
@@ -2058,9 +2058,9 @@ function el() {
|
|
|
2058
2058
|
function ar() {
|
|
2059
2059
|
return this.rgb().formatRgb();
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function Mt(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);
|
|
@@ -2069,7 +2069,7 @@ function zt(t, n, e, s) {
|
|
|
2069
2069
|
return s <= 0 && (t = n = e = NaN), new z(t, n, e, s);
|
|
2070
2070
|
}
|
|
2071
2071
|
function tl(t) {
|
|
2072
|
-
return t instanceof
|
|
2072
|
+
return t instanceof $t || (t = Mt(t)), t ? (t = t.rgb(), new z(t.r, t.g, t.b, t.opacity)) : new z();
|
|
2073
2073
|
}
|
|
2074
2074
|
function ss(t, n, e, s) {
|
|
2075
2075
|
return arguments.length === 1 ? tl(t) : new z(t, n, e, s ?? 1);
|
|
@@ -2077,18 +2077,18 @@ function ss(t, n, e, s) {
|
|
|
2077
2077
|
function z(t, n, e, s) {
|
|
2078
2078
|
this.r = +t, this.g = +n, this.b = +e, this.opacity = +s;
|
|
2079
2079
|
}
|
|
2080
|
-
qs(z, ss, Ia(
|
|
2080
|
+
qs(z, ss, Ia($t, {
|
|
2081
2081
|
brighter(t) {
|
|
2082
2082
|
return t = t == null ? fn : Math.pow(fn, t), new z(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
2083
2083
|
},
|
|
2084
2084
|
darker(t) {
|
|
2085
|
-
return t = t == null ?
|
|
2085
|
+
return t = t == null ? Pt : Math.pow(Pt, t), new z(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
2086
2086
|
},
|
|
2087
2087
|
rgb() {
|
|
2088
2088
|
return this;
|
|
2089
2089
|
},
|
|
2090
2090
|
clamp() {
|
|
2091
|
-
return new z(
|
|
2091
|
+
return new z(Ce(this.r), Ce(this.g), Ce(this.b), pn(this.opacity));
|
|
2092
2092
|
},
|
|
2093
2093
|
displayable() {
|
|
2094
2094
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
@@ -2101,30 +2101,30 @@ qs(z, ss, Ia(Ft, {
|
|
|
2101
2101
|
toString: lr
|
|
2102
2102
|
}));
|
|
2103
2103
|
function or() {
|
|
2104
|
-
return `#${
|
|
2104
|
+
return `#${Se(this.r)}${Se(this.g)}${Se(this.b)}`;
|
|
2105
2105
|
}
|
|
2106
2106
|
function nl() {
|
|
2107
|
-
return `#${
|
|
2107
|
+
return `#${Se(this.r)}${Se(this.g)}${Se(this.b)}${Se((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
2108
2108
|
}
|
|
2109
2109
|
function lr() {
|
|
2110
2110
|
const t = pn(this.opacity);
|
|
2111
|
-
return `${t === 1 ? "rgb(" : "rgba("}${
|
|
2111
|
+
return `${t === 1 ? "rgb(" : "rgba("}${Ce(this.r)}, ${Ce(this.g)}, ${Ce(this.b)}${t === 1 ? ")" : `, ${t})`}`;
|
|
2112
2112
|
}
|
|
2113
2113
|
function pn(t) {
|
|
2114
2114
|
return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2116
|
+
function Ce(t) {
|
|
2117
2117
|
return Math.max(0, Math.min(255, Math.round(t) || 0));
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2120
|
-
return t =
|
|
2119
|
+
function Se(t) {
|
|
2120
|
+
return t = Ce(t), (t < 16 ? "0" : "") + t.toString(16);
|
|
2121
2121
|
}
|
|
2122
2122
|
function cr(t, n, e, s) {
|
|
2123
2123
|
return s <= 0 ? t = n = e = NaN : e <= 0 || e >= 1 ? t = n = NaN : n <= 0 && (t = NaN), new se(t, n, e, s);
|
|
2124
2124
|
}
|
|
2125
2125
|
function Na(t) {
|
|
2126
2126
|
if (t instanceof se) return new se(t.h, t.s, t.l, t.opacity);
|
|
2127
|
-
if (t instanceof
|
|
2127
|
+
if (t instanceof $t || (t = Mt(t)), !t) return new se();
|
|
2128
2128
|
if (t instanceof se) return t;
|
|
2129
2129
|
t = t.rgb();
|
|
2130
2130
|
var n = t.r / 255, e = t.g / 255, s = t.b / 255, r = Math.min(n, e, s), a = Math.max(n, e, s), i = NaN, o = a - r, l = (a + r) / 2;
|
|
@@ -2136,12 +2136,12 @@ function sl(t, n, e, s) {
|
|
|
2136
2136
|
function se(t, n, e, s) {
|
|
2137
2137
|
this.h = +t, this.s = +n, this.l = +e, this.opacity = +s;
|
|
2138
2138
|
}
|
|
2139
|
-
qs(se, sl, Ia(
|
|
2139
|
+
qs(se, sl, Ia($t, {
|
|
2140
2140
|
brighter(t) {
|
|
2141
2141
|
return t = t == null ? fn : Math.pow(fn, t), new se(this.h, this.s, this.l * t, this.opacity);
|
|
2142
2142
|
},
|
|
2143
2143
|
darker(t) {
|
|
2144
|
-
return t = t == null ?
|
|
2144
|
+
return t = t == null ? Pt : Math.pow(Pt, t), new se(this.h, this.s, this.l * t, this.opacity);
|
|
2145
2145
|
},
|
|
2146
2146
|
rgb() {
|
|
2147
2147
|
var t = this.h % 360 + (this.h < 0) * 360, n = isNaN(t) || isNaN(this.s) ? 0 : this.s, e = this.l, s = e + (e < 0.5 ? e : 1 - e) * n, r = 2 * e - s;
|
|
@@ -2265,7 +2265,7 @@ function pl(t, n) {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
function Hs(t, n) {
|
|
2267
2267
|
var e = typeof n, s;
|
|
2268
|
-
return n == null || e === "boolean" ? js(n) : (e === "number" ? gn : e === "string" ? (s =
|
|
2268
|
+
return n == null || e === "boolean" ? js(n) : (e === "number" ? gn : e === "string" ? (s = Mt(n)) ? (n = s, hr) : pl : n instanceof Mt ? hr : n instanceof Date ? ul : ll(n) ? ol : Array.isArray(n) ? cl : typeof n.valueOf != "function" && typeof n.toString != "function" || isNaN(n) ? hl : gn)(t, n);
|
|
2269
2269
|
}
|
|
2270
2270
|
function gl(t, n) {
|
|
2271
2271
|
return t = +t, n = +n, function(e) {
|
|
@@ -2281,7 +2281,7 @@ function yl(t) {
|
|
|
2281
2281
|
return +t;
|
|
2282
2282
|
}
|
|
2283
2283
|
var dr = [0, 1];
|
|
2284
|
-
function
|
|
2284
|
+
function Ne(t) {
|
|
2285
2285
|
return t;
|
|
2286
2286
|
}
|
|
2287
2287
|
function as(t, n) {
|
|
@@ -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));
|
|
@@ -2314,10 +2314,10 @@ function Ua(t, n) {
|
|
|
2314
2314
|
return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
|
|
2315
2315
|
}
|
|
2316
2316
|
function Tl() {
|
|
2317
|
-
var t = dr, n = dr, e = Hs, s, r, a, i =
|
|
2317
|
+
var t = dr, n = dr, e = Hs, s, r, a, i = Ne, o, l, c;
|
|
2318
2318
|
function h() {
|
|
2319
2319
|
var m = Math.min(t.length, n.length);
|
|
2320
|
-
return i !==
|
|
2320
|
+
return i !== Ne && (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)));
|
|
@@ -2331,17 +2331,17 @@ function Tl() {
|
|
|
2331
2331
|
}, f.rangeRound = function(m) {
|
|
2332
2332
|
return n = Array.from(m), e = gl, h();
|
|
2333
2333
|
}, f.clamp = function(m) {
|
|
2334
|
-
return arguments.length ? (i = m ? !0 :
|
|
2334
|
+
return arguments.length ? (i = m ? !0 : Ne, h()) : i !== Ne;
|
|
2335
2335
|
}, f.interpolate = function(m) {
|
|
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() {
|
|
2344
|
-
return Tl()(
|
|
2344
|
+
return Tl()(Ne, Ne);
|
|
2345
2345
|
}
|
|
2346
2346
|
function wl(t) {
|
|
2347
2347
|
return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
|
|
@@ -2354,7 +2354,7 @@ function mn(t, n) {
|
|
|
2354
2354
|
+t.slice(e + 1)
|
|
2355
2355
|
];
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function Ve(t) {
|
|
2358
2358
|
return t = mn(Math.abs(t)), t ? t[1] : NaN;
|
|
2359
2359
|
}
|
|
2360
2360
|
function Sl(t, n) {
|
|
@@ -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], jt = /[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
|
-
function
|
|
2455
|
-
var le = C, j = U,
|
|
2454
|
+
function Me(M) {
|
|
2455
|
+
var le = C, j = U, me, Ht, De;
|
|
2456
2456
|
if (A === "c")
|
|
2457
2457
|
j = te(M) + j, M = "";
|
|
2458
2458
|
else {
|
|
2459
2459
|
M = +M;
|
|
2460
2460
|
var Ye = M < 0 || 1 / M < 0;
|
|
2461
|
-
if (M = isNaN(M) ? l : te(Math.abs(M), R), N && (M = kl(M)), Ye && +M == 0 && E !== "+" && (Ye = !1), le = (Ye ? E === "(" ? E : o : E === "-" || E === "(" ? "" : E) + le, j = (A === "s" ? yr[8 + _a / 3] : "") + j + (Ye && E === "(" ? ")" : ""),
|
|
2462
|
-
for (
|
|
2463
|
-
if (
|
|
2464
|
-
j = (
|
|
2461
|
+
if (M = isNaN(M) ? l : te(Math.abs(M), R), N && (M = kl(M)), Ye && +M == 0 && E !== "+" && (Ye = !1), le = (Ye ? E === "(" ? E : o : E === "-" || E === "(" ? "" : E) + le, j = (A === "s" ? yr[8 + _a / 3] : "") + j + (Ye && E === "(" ? ")" : ""), jt) {
|
|
2462
|
+
for (me = -1, Ht = M.length; ++me < Ht; )
|
|
2463
|
+
if (De = M.charCodeAt(me), 48 > De || De > 57) {
|
|
2464
|
+
j = (De === 46 ? r + M.slice(me + 1) : M.slice(me)) + j, M = M.slice(0, me);
|
|
2465
2465
|
break;
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
2469
|
L && !T && (M = n(M, 1 / 0));
|
|
2470
|
-
var
|
|
2471
|
-
switch (L && T && (M = n(ne + M, ne.length ? w - j.length : 1 / 0), ne = ""),
|
|
2470
|
+
var Oe = le.length + M.length + j.length, ne = Oe < w ? new Array(w - Oe + 1).join(m) : "";
|
|
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;
|
|
@@ -2476,7 +2476,7 @@ function Rl(t) {
|
|
|
2476
2476
|
M = le + ne + M + j;
|
|
2477
2477
|
break;
|
|
2478
2478
|
case "^":
|
|
2479
|
-
M = ne.slice(0,
|
|
2479
|
+
M = ne.slice(0, Oe = ne.length >> 1) + le + M + j + ne.slice(Oe);
|
|
2480
2480
|
break;
|
|
2481
2481
|
default:
|
|
2482
2482
|
M = ne + le + M + j;
|
|
@@ -2484,14 +2484,14 @@ function Rl(t) {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
return a(M);
|
|
2486
2486
|
}
|
|
2487
|
-
return
|
|
2487
|
+
return Me.toString = function() {
|
|
2488
2488
|
return f + "";
|
|
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(Ve(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,37 +2499,37 @@ 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
|
-
return Math.max(0, -
|
|
2513
|
-
}
|
|
2514
|
-
function Ol(t, n) {
|
|
2515
|
-
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Ke(n) / 3))) * 3 - Ke(Math.abs(t)));
|
|
2512
|
+
return Math.max(0, -Ve(Math.abs(t)));
|
|
2516
2513
|
}
|
|
2517
2514
|
function Yl(t, n) {
|
|
2518
|
-
return
|
|
2515
|
+
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Ve(n) / 3))) * 3 - Ve(Math.abs(t)));
|
|
2516
|
+
}
|
|
2517
|
+
function Ol(t, n) {
|
|
2518
|
+
return t = Math.abs(t), n = Math.abs(n) - t, Math.max(0, Ve(n) - Ve(t)) + 1;
|
|
2519
2519
|
}
|
|
2520
2520
|
function Ll(t, n, e, s) {
|
|
2521
2521
|
var r = ns(t, n, e), a;
|
|
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,95 +2602,95 @@ 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, Ze = 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
|
-
|
|
2623
|
-
const
|
|
2622
|
+
Ze.range;
|
|
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) => {
|
|
2644
2644
|
t.setTime(+t + n * ue);
|
|
2645
2645
|
}, (t, n) => (n - t) / ue, (t) => t.getUTCHours());
|
|
2646
2646
|
Zl.range;
|
|
2647
|
-
const
|
|
2647
|
+
const Ft = B(
|
|
2648
2648
|
(t) => t.setHours(0, 0, 0, 0),
|
|
2649
2649
|
(t, n) => t.setDate(t.getDate() + n),
|
|
2650
2650
|
(t, n) => (n - t - (n.getTimezoneOffset() - t.getTimezoneOffset()) * Q) / de,
|
|
2651
2651
|
(t) => t.getDate() - 1
|
|
2652
2652
|
);
|
|
2653
|
-
|
|
2654
|
-
const
|
|
2653
|
+
Ft.range;
|
|
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) => {
|
|
2663
2663
|
t.setUTCDate(t.getUTCDate() + n);
|
|
2664
2664
|
}, (t, n) => (n - t) / de, (t) => Math.floor(t / de));
|
|
2665
2665
|
Ul.range;
|
|
2666
|
-
function
|
|
2666
|
+
function Pe(t) {
|
|
2667
2667
|
return B((n) => {
|
|
2668
2668
|
n.setDate(n.getDate() - (n.getDay() + 7 - t) % 7), n.setHours(0, 0, 0, 0);
|
|
2669
2669
|
}, (n, e) => {
|
|
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 =
|
|
2673
|
+
const Fn = Pe(0), bn = Pe(1), Bl = Pe(2), _l = Pe(3), Ke = Pe(4), $l = Pe(5), Fl = Pe(6);
|
|
2674
2674
|
Fn.range;
|
|
2675
|
-
|
|
2675
|
+
bn.range;
|
|
2676
2676
|
Bl.range;
|
|
2677
2677
|
_l.range;
|
|
2678
|
-
|
|
2678
|
+
Ke.range;
|
|
2679
2679
|
$l.range;
|
|
2680
2680
|
Fl.range;
|
|
2681
|
-
function
|
|
2681
|
+
function Re(t) {
|
|
2682
2682
|
return B((n) => {
|
|
2683
2683
|
n.setUTCDate(n.getUTCDate() - (n.getUTCDay() + 7 - t) % 7), n.setUTCHours(0, 0, 0, 0);
|
|
2684
2684
|
}, (n, e) => {
|
|
2685
2685
|
n.setUTCDate(n.getUTCDate() + e * 7);
|
|
2686
2686
|
}, (n, e) => (e - n) / Ws);
|
|
2687
2687
|
}
|
|
2688
|
-
const ja =
|
|
2688
|
+
const ja = Re(0), xn = Re(1), ql = Re(2), jl = Re(3), Qe = Re(4), Hl = Re(5), zl = Re(6);
|
|
2689
2689
|
ja.range;
|
|
2690
2690
|
xn.range;
|
|
2691
2691
|
ql.range;
|
|
2692
2692
|
jl.range;
|
|
2693
|
-
|
|
2693
|
+
Qe.range;
|
|
2694
2694
|
Hl.range;
|
|
2695
2695
|
zl.range;
|
|
2696
2696
|
const Ks = B((t) => {
|
|
@@ -2716,23 +2716,23 @@ fe.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : B((n) => {
|
|
|
2716
2716
|
n.setFullYear(n.getFullYear() + e * t);
|
|
2717
2717
|
});
|
|
2718
2718
|
fe.range;
|
|
2719
|
-
const
|
|
2719
|
+
const Ee = B((t) => {
|
|
2720
2720
|
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
2721
2721
|
}, (t, n) => {
|
|
2722
2722
|
t.setUTCFullYear(t.getUTCFullYear() + n);
|
|
2723
2723
|
}, (t, n) => n.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
|
|
2724
|
-
|
|
2724
|
+
Ee.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : B((n) => {
|
|
2725
2725
|
n.setUTCFullYear(Math.floor(n.getUTCFullYear() / t) * t), n.setUTCMonth(0, 1), n.setUTCHours(0, 0, 0, 0);
|
|
2726
2726
|
}, (n, e) => {
|
|
2727
2727
|
n.setUTCFullYear(n.getUTCFullYear() + e * t);
|
|
2728
2728
|
});
|
|
2729
|
-
|
|
2730
|
-
function
|
|
2729
|
+
Ee.range;
|
|
2730
|
+
function Gl(t, n, e, s, r, a) {
|
|
2731
2731
|
const i = [
|
|
2732
|
-
[
|
|
2733
|
-
[
|
|
2734
|
-
[
|
|
2735
|
-
[
|
|
2732
|
+
[Ze, 1, ce],
|
|
2733
|
+
[Ze, 5, 5 * ce],
|
|
2734
|
+
[Ze, 15, 15 * ce],
|
|
2735
|
+
[Ze, 30, 30 * ce],
|
|
2736
2736
|
[a, 1, Q],
|
|
2737
2737
|
[a, 5, 5 * Q],
|
|
2738
2738
|
[a, 15, 15 * Q],
|
|
@@ -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, Ft, 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;
|
|
@@ -2778,13 +2778,13 @@ function Kn(t) {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
|
|
2780
2780
|
}
|
|
2781
|
-
function
|
|
2781
|
+
function nt(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 =
|
|
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 = st(r), h = rt(r), f = st(a), m = rt(a), b = st(i), E = rt(i), O = st(o), T = rt(o), w = st(l), L = rt(l), R = {
|
|
2786
2786
|
a: Ye,
|
|
2787
|
-
A:
|
|
2787
|
+
A: Oe,
|
|
2788
2788
|
b: ne,
|
|
2789
2789
|
B: oi,
|
|
2790
2790
|
c: null,
|
|
@@ -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,15 +2845,15 @@ 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
|
-
a:
|
|
2852
|
+
a: Me,
|
|
2853
2853
|
A: M,
|
|
2854
2854
|
b: le,
|
|
2855
2855
|
B: j,
|
|
2856
|
-
c:
|
|
2856
|
+
c: me,
|
|
2857
2857
|
d: wr,
|
|
2858
2858
|
e: wr,
|
|
2859
2859
|
f: fc,
|
|
@@ -2865,7 +2865,7 @@ function Kl(t) {
|
|
|
2865
2865
|
L: dc,
|
|
2866
2866
|
m: lc,
|
|
2867
2867
|
M: uc,
|
|
2868
|
-
p:
|
|
2868
|
+
p: jt,
|
|
2869
2869
|
q: oc,
|
|
2870
2870
|
Q: gc,
|
|
2871
2871
|
s: mc,
|
|
@@ -2876,7 +2876,7 @@ function Kl(t) {
|
|
|
2876
2876
|
w: tc,
|
|
2877
2877
|
W: ac,
|
|
2878
2878
|
x: Ht,
|
|
2879
|
-
X:
|
|
2879
|
+
X: De,
|
|
2880
2880
|
y: Tr,
|
|
2881
2881
|
Y: xr,
|
|
2882
2882
|
Z: ic,
|
|
@@ -2885,41 +2885,41 @@ 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, we, 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)), (
|
|
2890
|
+
x.charCodeAt(H) === 37 && (y.push(x.slice(I, H)), (we = br[G = x.charAt(++H)]) != null ? G = x.charAt(++H) : we = G === "e" ? " " : "0", (Qs = P[G]) && (G = Qs(D, we)), y.push(G), I = H + 1);
|
|
2891
2891
|
return y.push(x.slice(I, H)), y.join("");
|
|
2892
2892
|
};
|
|
2893
2893
|
}
|
|
2894
2894
|
function U(x, P) {
|
|
2895
2895
|
return function(D) {
|
|
2896
|
-
var y =
|
|
2896
|
+
var y = nt(1900, void 0, 1), H = te(y, x, D += "", 0), I, W;
|
|
2897
2897
|
if (H != D.length) return null;
|
|
2898
2898
|
if ("Q" in y) return new Date(y.Q);
|
|
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(
|
|
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(
|
|
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(nt(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(nt(y.y, 0, 1)), W = I.getDay(), I = W > 4 || W === 0 ? bn.ceil(I) : bn(I), I = Ft.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(nt(y.y, 0, 1)).getUTCDay() : Vn(nt(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, we; 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++), we = A[G in br ? P.charAt(H++) : G], !we || (y = we(x, D, y)) < 0) return -1;
|
|
2912
|
+
} else if (G != D.charCodeAt(y++))
|
|
2913
2913
|
return -1;
|
|
2914
2914
|
}
|
|
2915
2915
|
return y;
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function jt(x, P, D) {
|
|
2918
2918
|
var y = c.exec(P.slice(D));
|
|
2919
2919
|
return y ? (x.p = h.get(y[0].toLowerCase()), D + y[0].length) : -1;
|
|
2920
2920
|
}
|
|
2921
|
-
function
|
|
2922
|
-
var y =
|
|
2921
|
+
function Me(x, P, D) {
|
|
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,22 +2931,22 @@ 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
|
-
function
|
|
2937
|
+
function me(x, P, D) {
|
|
2938
2938
|
return te(x, n, P, D);
|
|
2939
2939
|
}
|
|
2940
2940
|
function Ht(x, P, D) {
|
|
2941
2941
|
return te(x, e, P, D);
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2943
|
+
function De(x, P, D) {
|
|
2944
2944
|
return te(x, s, P, D);
|
|
2945
2945
|
}
|
|
2946
2946
|
function Ye(x) {
|
|
2947
2947
|
return i[x.getDay()];
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2949
|
+
function Oe(x) {
|
|
2950
2950
|
return a[x.getDay()];
|
|
2951
2951
|
}
|
|
2952
2952
|
function ne(x) {
|
|
@@ -3006,18 +3006,18 @@ 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
|
}
|
|
3014
3014
|
function ec(t) {
|
|
3015
3015
|
return t.replace(Jl, "\\$&");
|
|
3016
3016
|
}
|
|
3017
|
-
function
|
|
3017
|
+
function st(t) {
|
|
3018
3018
|
return new RegExp("^(?:" + t.map(ec).join("|") + ")", "i");
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function rt(t) {
|
|
3021
3021
|
return new Map(t.map((n, e) => [n.toLowerCase(), e]));
|
|
3022
3022
|
}
|
|
3023
3023
|
function tc(t, n, e) {
|
|
@@ -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 + Ft.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
|
-
return n >= 4 || n === 0 ?
|
|
3139
|
+
return n >= 4 || n === 0 ? Ke(t) : Ke.ceil(t);
|
|
3140
3140
|
}
|
|
3141
3141
|
function kc(t, n) {
|
|
3142
|
-
return t = za(t),
|
|
3142
|
+
return t = za(t), Y(Ke.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 ?
|
|
3161
|
+
return t = e >= 4 || e === 0 ? Ke(t) : Ke.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(Ee(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(Ee(t) - 1, t), n, 2);
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function Ga(t) {
|
|
3202
3202
|
var n = t.getUTCDay();
|
|
3203
|
-
return n >= 4 || n === 0 ?
|
|
3203
|
+
return n >= 4 || n === 0 ? Qe(t) : Qe.ceil(t);
|
|
3204
3204
|
}
|
|
3205
3205
|
function qc(t, n) {
|
|
3206
|
-
return t =
|
|
3206
|
+
return t = Ga(t), Y(Qe.count(Ee(t), t) + (Ee(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(Ee(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 ?
|
|
3225
|
+
return t = e >= 4 || e === 0 ? Qe(t) : Qe.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
|
|
3239
|
+
var Le, 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
|
|
3251
|
+
return Le = Kl(t), Xa = Le.format, Le.parse, Le.utcFormat, Le.utcParse, Le;
|
|
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, Ft, Xs, Gs, Ze, 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, Dt = 6, qt = { 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");
|
|
@@ -3521,27 +3521,27 @@ const is = (t, n) => {
|
|
|
3521
3521
|
drawTicks(n, e) {
|
|
3522
3522
|
let s = Js.ZERO;
|
|
3523
3523
|
return n.forEach((r) => {
|
|
3524
|
-
const a = this.renderCtx.lower2d.textDimensions(r.label,
|
|
3524
|
+
const a = this.renderCtx.lower2d.textDimensions(r.label, qt);
|
|
3525
3525
|
s = Js.max([s, a]), e(a, r);
|
|
3526
3526
|
}), s;
|
|
3527
3527
|
}
|
|
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
|
|
3544
|
-
class lu extends
|
|
3542
|
+
u(On, "START_BOUND", k.construct(-1, 1));
|
|
3543
|
+
let Je = On;
|
|
3544
|
+
class lu extends Je {
|
|
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 });
|
|
3547
3547
|
e.beginPath(), this.setColor(this.state.color), this.drawLine(r, g.translate(r, "x", a));
|
|
@@ -3552,18 +3552,18 @@ 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 + Dt,
|
|
3556
3556
|
void 0,
|
|
3557
|
-
|
|
3557
|
+
qt
|
|
3558
3558
|
);
|
|
3559
3559
|
});
|
|
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 + Dt };
|
|
3564
3564
|
}
|
|
3565
3565
|
}
|
|
3566
|
-
class cu extends
|
|
3566
|
+
class cu extends Je {
|
|
3567
3567
|
render(n) {
|
|
3568
3568
|
const { lower2d: e } = this.renderCtx, { plot: s } = n, { width: r, height: a } = p.dims(s), i = g.translate(n.position, "y", n.size), o = this.tickFactory.create({ ...n, size: r });
|
|
3569
3569
|
e.beginPath(), this.setColor(this.state.color), this.drawLine(i, g.translate(i, "x", r));
|
|
@@ -3574,9 +3574,9 @@ 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 - Dt,
|
|
3578
3578
|
void 0,
|
|
3579
|
-
|
|
3579
|
+
qt
|
|
3580
3580
|
);
|
|
3581
3581
|
});
|
|
3582
3582
|
return e.stroke(), this.maybeDrawGrid(r, o, (c) => [
|
|
@@ -3585,7 +3585,7 @@ class cu extends et {
|
|
|
3585
3585
|
]), { size: l.height + oe };
|
|
3586
3586
|
}
|
|
3587
3587
|
}
|
|
3588
|
-
class uu extends
|
|
3588
|
+
class uu extends Je {
|
|
3589
3589
|
render(n) {
|
|
3590
3590
|
const { lower2d: e } = this.renderCtx, { plot: s, position: r } = n, { height: a, width: i } = p.dims(s), o = g.translate(r, "x", n.size), l = this.tickFactory.create({ ...n, size: a });
|
|
3591
3591
|
e.beginPath(), this.setColor(this.state.color), this.drawLine(o, g.translate(o, "y", a));
|
|
@@ -3598,7 +3598,7 @@ class uu extends et {
|
|
|
3598
3598
|
o.x - h.width - oe * 2,
|
|
3599
3599
|
o.y + f.position + h.height / 2,
|
|
3600
3600
|
void 0,
|
|
3601
|
-
|
|
3601
|
+
qt
|
|
3602
3602
|
);
|
|
3603
3603
|
});
|
|
3604
3604
|
return e.stroke(), this.maybeDrawGrid(a, l, (h) => [
|
|
@@ -3607,7 +3607,7 @@ class uu extends et {
|
|
|
3607
3607
|
]), { size: c.width + oe * 2 };
|
|
3608
3608
|
}
|
|
3609
3609
|
}
|
|
3610
|
-
class hu extends
|
|
3610
|
+
class hu extends Je {
|
|
3611
3611
|
render(n) {
|
|
3612
3612
|
const { lower2d: e } = this.renderCtx, { plot: s, position: r } = n, { height: a, width: i } = p.dims(s), o = this.tickFactory.create({ ...n, size: a });
|
|
3613
3613
|
e.beginPath(), this.setColor(this.state.color), this.drawLine(r, g.translateY(r, a));
|
|
@@ -3617,16 +3617,16 @@ 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 + Dt,
|
|
3621
3621
|
r.y + h.position + c.height / 2,
|
|
3622
3622
|
void 0,
|
|
3623
|
-
|
|
3623
|
+
qt
|
|
3624
3624
|
);
|
|
3625
3625
|
});
|
|
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 + Dt };
|
|
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,25 +3657,25 @@ 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
|
-
font:
|
|
3669
|
+
font: it(a, { level: "small", code: !0 }),
|
|
3670
3670
|
gridColor: a.colors.gray.l1,
|
|
3671
3671
|
...this.state
|
|
3672
|
-
}),
|
|
3672
|
+
}), be(n, "layout"), e.updateBounds ?? (e.updateBounds = Ii(
|
|
3673
3673
|
(l) => this.setState((c) => ({ ...c, bounds: l })),
|
|
3674
3674
|
r.milliseconds
|
|
3675
3675
|
));
|
|
3676
3676
|
}
|
|
3677
3677
|
afterDelete(n) {
|
|
3678
|
-
|
|
3678
|
+
be(n, "layout");
|
|
3679
3679
|
}
|
|
3680
3680
|
renderAxis(n, e) {
|
|
3681
3681
|
if (!n.canvases.includes("lower2d")) return;
|
|
@@ -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) {
|
|
@@ -3824,7 +3824,7 @@ class Lr extends Li {
|
|
|
3824
3824
|
return s.bindBuffer(s.ARRAY_BUFFER, a.glBuffer), a;
|
|
3825
3825
|
const i = s.createBuffer();
|
|
3826
3826
|
if (i == null)
|
|
3827
|
-
throw new
|
|
3827
|
+
throw new et("Failed to create buffer from WebGL context");
|
|
3828
3828
|
const o = Ru(this.renderCtx.aspect, e);
|
|
3829
3829
|
s.bindBuffer(s.ARRAY_BUFFER, i), s.bufferData(s.ARRAY_BUFFER, o, s.DYNAMIC_DRAW);
|
|
3830
3830
|
const l = { glBuffer: i, jsBuffer: o };
|
|
@@ -3843,7 +3843,7 @@ class Lr extends Li {
|
|
|
3843
3843
|
return s.vertexAttribPointer(a, 2, s.FLOAT, !1, 0, 0), s.enableVertexAttribArray(a), s.vertexAttribDivisor(a, 1), r.length / 2;
|
|
3844
3844
|
}
|
|
3845
3845
|
}
|
|
3846
|
-
const
|
|
3846
|
+
const Ue = class Ue {
|
|
3847
3847
|
constructor(n) {
|
|
3848
3848
|
// Uint8 hybrid program is used for high performance rendering of uint8 data along
|
|
3849
3849
|
// with float32 timestamp data. It's used as a hot path optimization for common
|
|
@@ -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;
|
|
@@ -3861,17 +3861,17 @@ const Be = class Be {
|
|
|
3861
3861
|
return n.equals(q.UINT8) ? this.uint8HybridProgram : this.float32Program;
|
|
3862
3862
|
}
|
|
3863
3863
|
static create(n, e) {
|
|
3864
|
-
const s = new
|
|
3865
|
-
return n.set(
|
|
3864
|
+
const s = new Ue(e);
|
|
3865
|
+
return n.set(Ue.CONTEXT_KEY, s), s;
|
|
3866
3866
|
}
|
|
3867
3867
|
static use(n) {
|
|
3868
|
-
const e = n.get(
|
|
3869
|
-
if (e == null) throw new
|
|
3868
|
+
const e = n.get(Ue.CONTEXT_KEY);
|
|
3869
|
+
if (e == null) throw new et("GLProgram not found");
|
|
3870
3870
|
return e;
|
|
3871
3871
|
}
|
|
3872
3872
|
};
|
|
3873
|
-
u(
|
|
3874
|
-
let Tn =
|
|
3873
|
+
u(Ue, "CONTEXT_KEY", "pluto-line-gl-program");
|
|
3874
|
+
let Tn = Ue;
|
|
3875
3875
|
class wn extends $ {
|
|
3876
3876
|
constructor() {
|
|
3877
3877
|
super(...arguments);
|
|
@@ -3882,7 +3882,7 @@ class wn extends $ {
|
|
|
3882
3882
|
const { internal: s } = this, r = {
|
|
3883
3883
|
onStatusChange: An(e)
|
|
3884
3884
|
};
|
|
3885
|
-
s.xTelem = ee(e, this.state.x, s.xTelem, r), s.yTelem = ee(e, this.state.y, s.yTelem, r), s.instrumentation =
|
|
3885
|
+
s.xTelem = ee(e, this.state.x, s.xTelem, r), s.yTelem = ee(e, this.state.y, s.yTelem, r), s.instrumentation = Zt(e, "line"), s.lineCtx = Tn.use(e), s.requestRender = Rs(e), (a = s.stopListeningXTelem) == null || a.call(s), (i = s.stopListeningYTelem) == null || i.call(s), s.stopListeningXTelem = s.xTelem.onChange(() => s.requestRender("data")), s.stopListeningYTelem = s.yTelem.onChange(() => s.requestRender("data")), s.requestRender("layout");
|
|
3886
3886
|
}
|
|
3887
3887
|
afterDelete() {
|
|
3888
3888
|
var s, r, a, i;
|
|
@@ -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) => {
|
|
@@ -3999,7 +3999,7 @@ const Pu = 5e3, Ru = (t, n) => Ou(Du(t), n).map(
|
|
|
3999
3999
|
const s = t.timeRange.overlapsWith(n.timeRange, e), r = k.overlapsWith(t.alignmentBounds, n.alignmentBounds);
|
|
4000
4000
|
return s && r;
|
|
4001
4001
|
};
|
|
4002
|
-
class
|
|
4002
|
+
class tt {
|
|
4003
4003
|
constructor(n, e) {
|
|
4004
4004
|
u(this, "canvas");
|
|
4005
4005
|
u(this, "theme");
|
|
@@ -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)),
|
|
@@ -4086,7 +4086,7 @@ class nt {
|
|
|
4086
4086
|
spacing: s = 1,
|
|
4087
4087
|
level: r = "p"
|
|
4088
4088
|
}) {
|
|
4089
|
-
const a =
|
|
4089
|
+
const a = it(this.theme, { level: r }), i = n.map((c) => er(c, a, this.canvas)), o = this.theme.sizes.base * s, l = Math.max(...i.map((c) => c[ae.dimension(e)])) + o;
|
|
4090
4090
|
return [
|
|
4091
4091
|
{
|
|
4092
4092
|
[ae.dimension(ae.swap(e))]: Math.max(
|
|
@@ -4095,8 +4095,8 @@ class nt {
|
|
|
4095
4095
|
[ae.dimension(e)]: l * n.length - o
|
|
4096
4096
|
},
|
|
4097
4097
|
(c) => {
|
|
4098
|
-
const h =
|
|
4099
|
-
this.canvas.font = h, this.canvas.fillStyle =
|
|
4098
|
+
const h = it(this.theme, { level: r });
|
|
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 =
|
|
4149
|
+
this.canvas.font = it(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,7 +4157,7 @@ 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
4162
|
class Yt extends $ {
|
|
4163
4163
|
constructor() {
|
|
@@ -4166,12 +4166,12 @@ class Yt extends $ {
|
|
|
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
|
-
this.internal.draw = new
|
|
4171
|
+
this.internal.draw = new tt(this.internal.renderCtx.upper2d, s), be(e, "tool");
|
|
4172
4172
|
}
|
|
4173
4173
|
afterDelete(e) {
|
|
4174
|
-
|
|
4174
|
+
be(e, "tool");
|
|
4175
4175
|
}
|
|
4176
4176
|
updatePositions({ decimalToDataScale: e, plot: s }) {
|
|
4177
4177
|
const r = this.state.dragging, a = this.prevState.dragging && !r;
|
|
@@ -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;
|
|
@@ -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 tt(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 =
|
|
4323
|
+
s.render = X.use(e), s.draw = new tt(s.render.upper2d, ge(e));
|
|
4324
4324
|
const r = ve(e);
|
|
4325
4325
|
s.requestRender = Rs(e), s.ranges ?? (s.ranges = /* @__PURE__ */ new Map());
|
|
4326
|
-
const a =
|
|
4326
|
+
const a = Ut(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,24 +4470,24 @@ 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
|
});
|
|
4480
|
-
class
|
|
4480
|
+
class Ot extends $ {
|
|
4481
4481
|
constructor() {
|
|
4482
4482
|
super(...arguments);
|
|
4483
4483
|
u(this, "schema", si);
|
|
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 tt(this.internal.render.upper2d, s), be(e, "tool");
|
|
4488
4488
|
}
|
|
4489
4489
|
afterDelete(e) {
|
|
4490
|
-
|
|
4490
|
+
be(e, "tool");
|
|
4491
4491
|
}
|
|
4492
4492
|
render(e) {
|
|
4493
4493
|
if (this.deleted || this.state.position == null) return;
|
|
@@ -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,
|
|
@@ -4556,49 +4556,49 @@ class Lt extends $ {
|
|
|
4556
4556
|
});
|
|
4557
4557
|
}
|
|
4558
4558
|
}
|
|
4559
|
-
u(
|
|
4559
|
+
u(Ot, "TYPE", "tooltip");
|
|
4560
4560
|
const zu = {
|
|
4561
|
-
[
|
|
4561
|
+
[Ot.TYPE]: Ot
|
|
4562
4562
|
}, Fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4563
4563
|
__proto__: null,
|
|
4564
4564
|
REGISTRY: zu,
|
|
4565
|
-
Tooltip:
|
|
4565
|
+
Tooltip: Ot,
|
|
4566
4566
|
tooltipStateZ: si
|
|
4567
4567
|
}, Symbol.toStringTag, { value: "Module" })), ri = d.object({
|
|
4568
4568
|
one: g.xy.nullable(),
|
|
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
|
});
|
|
4582
|
-
class
|
|
4582
|
+
class Lt extends $ {
|
|
4583
4583
|
constructor() {
|
|
4584
4584
|
super(...arguments);
|
|
4585
4585
|
u(this, "schema", ri);
|
|
4586
4586
|
}
|
|
4587
4587
|
afterUpdate(e) {
|
|
4588
|
-
const s =
|
|
4589
|
-
this.internal.theme = ge(e), this.internal.renderCtx = s, this.internal.draw = new
|
|
4588
|
+
const s = X.use(e);
|
|
4589
|
+
this.internal.theme = ge(e), this.internal.renderCtx = s, this.internal.draw = new tt(s.upper2d, this.internal.theme), be(e, "tool");
|
|
4590
4590
|
}
|
|
4591
4591
|
afterDelete(e) {
|
|
4592
|
-
|
|
4592
|
+
be(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,55 +4683,55 @@ 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
|
-
u(
|
|
4704
|
+
u(Lt, "TYPE", "measure");
|
|
4705
4705
|
const Wu = {
|
|
4706
|
-
[
|
|
4706
|
+
[Lt.TYPE]: Lt
|
|
4707
4707
|
}, qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4708
4708
|
__proto__: null,
|
|
4709
|
-
Measure:
|
|
4709
|
+
Measure: Lt,
|
|
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 =
|
|
4729
|
+
this.internal.instrumentation = Zt(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 = {
|
|
@@ -4753,16 +4753,16 @@ class ls extends pe {
|
|
|
4753
4753
|
return this.childrenOfType(En.TYPE);
|
|
4754
4754
|
}
|
|
4755
4755
|
get tooltips() {
|
|
4756
|
-
return this.childrenOfType(
|
|
4756
|
+
return this.childrenOfType(Ot.TYPE);
|
|
4757
4757
|
}
|
|
4758
4758
|
get measures() {
|
|
4759
|
-
return this.childrenOfType(
|
|
4759
|
+
return this.childrenOfType(Lt.TYPE);
|
|
4760
4760
|
}
|
|
4761
4761
|
get bounds() {
|
|
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),
|
|
@@ -4881,10 +4881,10 @@ class kn extends pe {
|
|
|
4881
4881
|
if (!this.state.bootstrap) return;
|
|
4882
4882
|
const { glCanvas: s, lower2dCanvas: r, upper2dCanvas: a, os: i } = this.state;
|
|
4883
4883
|
if (s == null || r == null || a == null)
|
|
4884
|
-
throw new
|
|
4884
|
+
throw new et(
|
|
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() {
|
|
@@ -4924,7 +4924,7 @@ class cs extends $ {
|
|
|
4924
4924
|
afterUpdate(e) {
|
|
4925
4925
|
var a, i, o;
|
|
4926
4926
|
const { sink: s, source: r } = this.state;
|
|
4927
|
-
this.internal.source = ee(e, r, this.internal.source), this.internal.sink =
|
|
4927
|
+
this.internal.source = ee(e, r, this.internal.source), this.internal.sink = _t(e, s, this.internal.sink), this.state.triggered && !this.prevState.triggered && this.internal.sink.set(
|
|
4928
4928
|
((a = this.state.status.data) == null ? void 0 : a.authority) !== Ss.ABSOLUTE_AUTHORITY
|
|
4929
4929
|
), this.updateEnabledState(), (o = (i = this.internal).stopListening) == null || o.call(i), this.internal.stopListening = this.internal.source.onChange(
|
|
4930
4930
|
() => this.updateEnabledState()
|
|
@@ -4942,10 +4942,10 @@ 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
|
-
class
|
|
4948
|
+
class At extends pe {
|
|
4949
4949
|
constructor() {
|
|
4950
4950
|
super(...arguments);
|
|
4951
4951
|
u(this, "schema", eh);
|
|
@@ -4969,10 +4969,10 @@ class It extends pe {
|
|
|
4969
4969
|
}
|
|
4970
4970
|
afterUpdate(e) {
|
|
4971
4971
|
const { internal: s } = this;
|
|
4972
|
-
s.instrumentation =
|
|
4972
|
+
s.instrumentation = Zt(e, "control-state");
|
|
4973
4973
|
const r = ge(e);
|
|
4974
4974
|
s.palette = r.colors.visualization.palettes.default, s.defaultColor = r.colors.gray.l8;
|
|
4975
|
-
const a =
|
|
4975
|
+
const a = Ut(e);
|
|
4976
4976
|
if (s.client != null && a === s.client) return;
|
|
4977
4977
|
s.client = a, e.set(Ir, this), ve(e)(async () => {
|
|
4978
4978
|
await this.maybeCloseTracker(), s.client != null && (this.internal.instrumentation.L.debug("starting state tracker"), await this.openTracker(s.client));
|
|
@@ -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,8 +5012,8 @@ 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) =>
|
|
5016
|
-
throw new
|
|
5015
|
+
if (r.L.debug("transfer", { transfers: i.map((o) => bs.transferString(o)) }), this.tracker == null)
|
|
5016
|
+
throw new et("tracker is null inside it's own onChange callback!");
|
|
5017
5017
|
this.updateColors(this.tracker), this.obs.notify(i);
|
|
5018
5018
|
});
|
|
5019
5019
|
}
|
|
@@ -5028,7 +5028,7 @@ class It extends pe {
|
|
|
5028
5028
|
});
|
|
5029
5029
|
}
|
|
5030
5030
|
}
|
|
5031
|
-
u(
|
|
5031
|
+
u(At, "TYPE", "StateProvider");
|
|
5032
5032
|
const nh = ["acquired", "released", "overridden", "failed"], sh = d.enum(nh), rh = d.object({
|
|
5033
5033
|
name: d.string(),
|
|
5034
5034
|
authority: d.number().default(0),
|
|
@@ -5045,8 +5045,8 @@ class us extends pe {
|
|
|
5045
5045
|
}
|
|
5046
5046
|
afterUpdate(e) {
|
|
5047
5047
|
const { internal: s } = this;
|
|
5048
|
-
s.instrumentation =
|
|
5049
|
-
const r =
|
|
5048
|
+
s.instrumentation = Zt(e), (s.prevTrigger == null || Math.abs(this.state.acquireTrigger - s.prevTrigger) > 1) && (s.prevTrigger = this.state.acquireTrigger);
|
|
5049
|
+
const r = Ut(e), a = At.use(e);
|
|
5050
5050
|
ve(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
|
});
|
|
@@ -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");
|
|
@@ -5335,7 +5335,7 @@ class ds extends $ {
|
|
|
5335
5335
|
afterUpdate(e) {
|
|
5336
5336
|
var o;
|
|
5337
5337
|
const { internal: s } = this;
|
|
5338
|
-
s.stateProv =
|
|
5338
|
+
s.stateProv = At.use(e);
|
|
5339
5339
|
const r = this.state.needsControlOf;
|
|
5340
5340
|
(o = s.disconnectStateProv) == null || o.call(s);
|
|
5341
5341
|
const a = Ss.filterTransfersByChannelKey(...r), i = s.stateProv.get(r);
|
|
@@ -5354,9 +5354,9 @@ 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
|
+
[At.TYPE]: At,
|
|
5360
5360
|
[hs.TYPE]: hs,
|
|
5361
5361
|
[cs.TYPE]: cs,
|
|
5362
5362
|
[ds.TYPE]: ds
|
|
@@ -5364,14 +5364,14 @@ const Vh = {
|
|
|
5364
5364
|
region: p.box,
|
|
5365
5365
|
clearOverScan: g.crudeZ.optional().default(0),
|
|
5366
5366
|
visible: d.boolean().optional().default(!0)
|
|
5367
|
-
}), Nr = ["upper2d", "lower2d"],
|
|
5367
|
+
}), Nr = ["upper2d", "lower2d"], Be = class Be extends pe {
|
|
5368
5368
|
constructor() {
|
|
5369
5369
|
super(...arguments);
|
|
5370
|
-
u(this, "schema",
|
|
5370
|
+
u(this, "schema", Be.stateZ);
|
|
5371
5371
|
}
|
|
5372
5372
|
afterUpdate(e) {
|
|
5373
5373
|
const { internal: s } = this;
|
|
5374
|
-
s.renderCtx =
|
|
5374
|
+
s.renderCtx = X.use(e), s.handleError = ve(e), Ps(e, () => {
|
|
5375
5375
|
this.state.visible && this.requestRender("low");
|
|
5376
5376
|
}), !(!this.state.visible && !this.prevState.visible) && this.requestRender("high");
|
|
5377
5377
|
}
|
|
@@ -5400,16 +5400,16 @@ const Vh = {
|
|
|
5400
5400
|
requestRender(e) {
|
|
5401
5401
|
const { renderCtx: s } = this.internal;
|
|
5402
5402
|
s.loop.set({
|
|
5403
|
-
key: `${
|
|
5403
|
+
key: `${Be.TYPE}-${this.key}`,
|
|
5404
5404
|
render: this.render.bind(this),
|
|
5405
5405
|
priority: e,
|
|
5406
5406
|
canvases: Nr
|
|
5407
5407
|
});
|
|
5408
5408
|
}
|
|
5409
5409
|
};
|
|
5410
|
-
u(
|
|
5411
|
-
let Dn =
|
|
5412
|
-
const
|
|
5410
|
+
u(Be, "TYPE", "Table"), u(Be, "stateZ", uh);
|
|
5411
|
+
let Dn = Be;
|
|
5412
|
+
const Vh = {
|
|
5413
5413
|
[Dn.TYPE]: Dn
|
|
5414
5414
|
}, hh = d.object({
|
|
5415
5415
|
trigger: d.number(),
|
|
@@ -5423,7 +5423,7 @@ class fs extends $ {
|
|
|
5423
5423
|
afterUpdate(e) {
|
|
5424
5424
|
var i;
|
|
5425
5425
|
const { sink: s } = this.state;
|
|
5426
|
-
(i = this.internal).prevTrigger ?? (i.prevTrigger = this.state.trigger), this.internal.sink =
|
|
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
|
ve(e)(async () => {
|
|
@@ -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
|
-
u(this, "schema",
|
|
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,30 +5479,30 @@ 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;
|
|
5486
5486
|
s.loop.set({
|
|
5487
|
-
key: `${
|
|
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
|
};
|
|
5494
|
-
u(
|
|
5495
|
-
let
|
|
5494
|
+
u(_e, "TYPE", "Diagram"), u(_e, "stateZ", ii);
|
|
5495
|
+
let It = _e;
|
|
5496
5496
|
const dh = {
|
|
5497
|
-
[
|
|
5497
|
+
[It.TYPE]: It
|
|
5498
5498
|
}, Qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5499
5499
|
__proto__: null,
|
|
5500
|
-
Diagram:
|
|
5500
|
+
Diagram: It,
|
|
5501
5501
|
REGISTRY: 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() {
|
|
@@ -5542,25 +5542,25 @@ 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
|
-
}), gh = 0.98,
|
|
5549
|
+
}), gh = 0.98, at = "lower2d", mh = {
|
|
5550
5550
|
offset: 0n,
|
|
5551
5551
|
offsetRef: 0n,
|
|
5552
5552
|
scrollRef: 0
|
|
5553
|
-
},
|
|
5553
|
+
}, gt = class gt extends $ {
|
|
5554
5554
|
constructor() {
|
|
5555
5555
|
super(...arguments);
|
|
5556
|
-
u(this, "schema",
|
|
5556
|
+
u(this, "schema", gt.z);
|
|
5557
5557
|
u(this, "values", new F([]));
|
|
5558
5558
|
u(this, "scrollState", mh);
|
|
5559
5559
|
}
|
|
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(() => {
|
|
@@ -5589,7 +5589,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5589
5589
|
afterDelete() {
|
|
5590
5590
|
var r;
|
|
5591
5591
|
const { telem: e, render: s } = this.internal;
|
|
5592
|
-
(r = e.cleanup) == null || r.call(e), s.erase(p.construct(this.state.region), g.ZERO,
|
|
5592
|
+
(r = e.cleanup) == null || r.call(e), s.erase(p.construct(this.state.region), g.ZERO, at);
|
|
5593
5593
|
}
|
|
5594
5594
|
async requestRender() {
|
|
5595
5595
|
const { render: e } = this.internal;
|
|
@@ -5597,7 +5597,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5597
5597
|
key: `${this.type}-${this.key}`,
|
|
5598
5598
|
render: () => this.render(),
|
|
5599
5599
|
priority: "high",
|
|
5600
|
-
canvases: [
|
|
5600
|
+
canvases: [at]
|
|
5601
5601
|
});
|
|
5602
5602
|
}
|
|
5603
5603
|
get lineHeight() {
|
|
@@ -5615,7 +5615,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5615
5615
|
render() {
|
|
5616
5616
|
const { render: e } = this.internal, s = this.state.region;
|
|
5617
5617
|
if (p.areaIsZero(s)) return;
|
|
5618
|
-
if (!this.state.visible) return () => e.erase(s, g.ZERO,
|
|
5618
|
+
if (!this.state.visible) return () => e.erase(s, g.ZERO, at);
|
|
5619
5619
|
let r;
|
|
5620
5620
|
if (!this.state.scrolling)
|
|
5621
5621
|
r = this.values.subIterator(
|
|
@@ -5629,7 +5629,7 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5629
5629
|
);
|
|
5630
5630
|
r = this.values.subAlignmentSpanIterator(h, this.visibleLineCount);
|
|
5631
5631
|
}
|
|
5632
|
-
const a = this.state.region, i = e[
|
|
5632
|
+
const a = this.state.region, i = e[at], o = new tt(i, this.internal.theme), l = e.scissor(a, g.ZERO, [at]);
|
|
5633
5633
|
this.renderElements(o, r), this.renderScrollbar(o), l();
|
|
5634
5634
|
const c = p.copy(this.state.region);
|
|
5635
5635
|
return ({ canvases: h }) => e.erase(c, this.state.overshoot, ...h);
|
|
@@ -5667,9 +5667,9 @@ const Jh = { [ps.TYPE]: ps }, ph = d.object({
|
|
|
5667
5667
|
}
|
|
5668
5668
|
}
|
|
5669
5669
|
};
|
|
5670
|
-
u(
|
|
5671
|
-
let
|
|
5672
|
-
const ed = { [
|
|
5670
|
+
u(gt, "TYPE", "log"), u(gt, "z", ph);
|
|
5671
|
+
let Yn = gt;
|
|
5672
|
+
const ed = { [Yn.TYPE]: Yn }, yh = d.object({
|
|
5673
5673
|
fps: d.number()
|
|
5674
5674
|
});
|
|
5675
5675
|
class gs extends $ {
|
|
@@ -5692,23 +5692,23 @@ 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;
|
|
5709
5709
|
o.prevTrigger ?? (o.prevTrigger = a), (async () => {
|
|
5710
5710
|
var c;
|
|
5711
|
-
this.internal.source = ee(e, r, this.internal.source), o.sink =
|
|
5711
|
+
this.internal.source = ee(e, r, this.internal.source), o.sink = _t(e, s, o.sink);
|
|
5712
5712
|
const l = o.prevTrigger;
|
|
5713
5713
|
o.prevTrigger = a, a > l && i != null && this.internal.sink.set(i), this.updateValue(), (c = o.stopListening) == null || c.call(o), o.stopListening = o.source.onChange(() => this.updateValue());
|
|
5714
5714
|
})();
|
|
@@ -5724,22 +5724,22 @@ 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;
|
|
5740
5740
|
this.internal.addStatus = _r(e);
|
|
5741
5741
|
const { sink: s, source: r, triggered: a, enabled: i } = this.state, { triggered: o } = this.prevState, { internal: l } = this;
|
|
5742
|
-
l.source = ee(e, r, l.source), l.sink =
|
|
5742
|
+
l.source = ee(e, r, l.source), l.sink = _t(e, s, l.sink), a && !o && l.sink.set(!i), this.updateEnabledState(), (c = l.stopListening) == null || c.call(l), l.stopListening = l.source.onChange(() => this.updateEnabledState());
|
|
5743
5743
|
}
|
|
5744
5744
|
reportError(e) {
|
|
5745
5745
|
this.internal.addStatus({
|
|
@@ -5760,24 +5760,24 @@ 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(),
|
|
5770
5770
|
notation: ws.notationZ.optional().default("standard"),
|
|
5771
5771
|
location: re.xy.optional().default({ x: "left", y: "center" })
|
|
5772
|
-
}), Th = ["upper2d", "lower2d"],
|
|
5772
|
+
}), Th = ["upper2d", "lower2d"], mt = class mt extends $ {
|
|
5773
5773
|
constructor() {
|
|
5774
5774
|
super(...arguments);
|
|
5775
|
-
u(this, "schema",
|
|
5775
|
+
u(this, "schema", mt.z);
|
|
5776
5776
|
}
|
|
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 = it(s.theme, { level: this.state.level, code: !0 }), s.backgroundTelem = ee(
|
|
5781
5781
|
e,
|
|
5782
5782
|
this.state.backgroundTelem,
|
|
5783
5783
|
s.backgroundTelem
|
|
@@ -5803,45 +5803,48 @@ 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()
|
|
5819
|
-
if (
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5818
|
+
const te = a.value();
|
|
5819
|
+
if (!v.isZero(te)) {
|
|
5820
|
+
U = !1, b.fillStyle = v.hex(te), b.fillRect(...g.couple(h), f, m);
|
|
5821
|
+
const Me = v.pickByContrast(
|
|
5822
|
+
te,
|
|
5823
|
+
w.colors.gray.l0,
|
|
5824
|
+
w.colors.gray.l11
|
|
5823
5825
|
);
|
|
5826
|
+
b.fillStyle = v.hex(Me);
|
|
5824
5827
|
}
|
|
5825
5828
|
}
|
|
5826
|
-
U && (
|
|
5829
|
+
U && (b.fillStyle = v.hex(this.internal.textColor)), T && b.fillText(
|
|
5827
5830
|
"-",
|
|
5828
|
-
...g.couple(g.translateX(C, -
|
|
5831
|
+
...g.couple(g.translateX(C, -O * 0.6)),
|
|
5829
5832
|
void 0,
|
|
5830
5833
|
Qn
|
|
5831
|
-
),
|
|
5834
|
+
), b.fillText(E, ...g.couple(C), void 0, Qn);
|
|
5832
5835
|
}
|
|
5833
5836
|
};
|
|
5834
|
-
u(
|
|
5835
|
-
let
|
|
5837
|
+
u(mt, "TYPE", "value"), u(mt, "z", xh);
|
|
5838
|
+
let Nt = mt;
|
|
5836
5839
|
const wh = {
|
|
5837
|
-
[
|
|
5840
|
+
[Nt.TYPE]: Nt
|
|
5838
5841
|
}, rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5839
5842
|
__proto__: null,
|
|
5840
5843
|
REGISTRY: wh,
|
|
5841
|
-
Value:
|
|
5844
|
+
Value: Nt
|
|
5842
5845
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5843
5846
|
export {
|
|
5844
|
-
|
|
5847
|
+
Ie as $,
|
|
5845
5848
|
Ah as A,
|
|
5846
5849
|
hn as B,
|
|
5847
5850
|
Nh as C,
|
|
@@ -5852,7 +5855,7 @@ export {
|
|
|
5852
5855
|
Uh as H,
|
|
5853
5856
|
rd as I,
|
|
5854
5857
|
gn as J,
|
|
5855
|
-
|
|
5858
|
+
Je as K,
|
|
5856
5859
|
ls as L,
|
|
5857
5860
|
lu as M,
|
|
5858
5861
|
hu as N,
|
|
@@ -5877,7 +5880,7 @@ export {
|
|
|
5877
5880
|
Su as a3,
|
|
5878
5881
|
wn as a4,
|
|
5879
5882
|
si as a5,
|
|
5880
|
-
|
|
5883
|
+
Ot as a6,
|
|
5881
5884
|
Bu as a7,
|
|
5882
5885
|
os as a8,
|
|
5883
5886
|
$u as a9,
|
|
@@ -5889,34 +5892,34 @@ export {
|
|
|
5889
5892
|
Dn as aF,
|
|
5890
5893
|
aa as aG,
|
|
5891
5894
|
oa as aH,
|
|
5892
|
-
|
|
5895
|
+
ba as aI,
|
|
5893
5896
|
xa as aJ,
|
|
5894
5897
|
to as aK,
|
|
5895
|
-
|
|
5898
|
+
Gi as aL,
|
|
5896
5899
|
po as aM,
|
|
5897
5900
|
fo as aN,
|
|
5898
|
-
|
|
5901
|
+
Nt as aO,
|
|
5899
5902
|
na as aP,
|
|
5900
5903
|
go as aQ,
|
|
5901
5904
|
mo as aR,
|
|
5902
5905
|
hr as aS,
|
|
5903
5906
|
pl as aT,
|
|
5904
|
-
|
|
5907
|
+
Mt as aU,
|
|
5905
5908
|
ii as aV,
|
|
5906
|
-
|
|
5909
|
+
It as aW,
|
|
5907
5910
|
ph as aX,
|
|
5908
|
-
|
|
5911
|
+
Yn as aY,
|
|
5909
5912
|
yh as aZ,
|
|
5910
5913
|
gs as a_,
|
|
5911
5914
|
Cn as aa,
|
|
5912
5915
|
ri as ab,
|
|
5913
|
-
|
|
5916
|
+
Lt as ac,
|
|
5914
5917
|
ni as ad,
|
|
5915
5918
|
Yt as ae,
|
|
5916
5919
|
Ji as af,
|
|
5917
5920
|
eo as ag,
|
|
5918
|
-
|
|
5919
|
-
|
|
5921
|
+
kt as ah,
|
|
5922
|
+
Oa as ai,
|
|
5920
5923
|
Rn as aj,
|
|
5921
5924
|
Mn as ak,
|
|
5922
5925
|
cs as al,
|
|
@@ -5925,10 +5928,10 @@ export {
|
|
|
5925
5928
|
ds as ao,
|
|
5926
5929
|
nh as ap,
|
|
5927
5930
|
Pn as aq,
|
|
5928
|
-
|
|
5931
|
+
At as ar,
|
|
5929
5932
|
Wh as as,
|
|
5930
5933
|
ih as at,
|
|
5931
|
-
|
|
5934
|
+
Gh as au,
|
|
5932
5935
|
oh as av,
|
|
5933
5936
|
Ju as aw,
|
|
5934
5937
|
rh as ax,
|
|
@@ -5937,36 +5940,36 @@ export {
|
|
|
5937
5940
|
Ao as b,
|
|
5938
5941
|
ma as b0,
|
|
5939
5942
|
co as b1,
|
|
5940
|
-
|
|
5943
|
+
Xi as b2,
|
|
5941
5944
|
lo as b3,
|
|
5942
5945
|
hh as b4,
|
|
5943
5946
|
fs as b5,
|
|
5944
5947
|
fh as b6,
|
|
5945
5948
|
ps as b7,
|
|
5946
|
-
|
|
5949
|
+
vh as b8,
|
|
5947
5950
|
ms as b9,
|
|
5948
|
-
|
|
5951
|
+
bh as ba,
|
|
5949
5952
|
ys as bb,
|
|
5950
5953
|
Ps as c,
|
|
5951
5954
|
td as d,
|
|
5952
|
-
|
|
5955
|
+
Vh as e,
|
|
5953
5956
|
ed as f,
|
|
5954
5957
|
wh as g,
|
|
5955
5958
|
zu as h,
|
|
5956
5959
|
sd as i,
|
|
5957
|
-
|
|
5960
|
+
Oo as j,
|
|
5958
5961
|
qi as k,
|
|
5959
|
-
|
|
5962
|
+
Gu as l,
|
|
5960
5963
|
nd as m,
|
|
5961
5964
|
Zu as n,
|
|
5962
5965
|
_h as o,
|
|
5963
5966
|
Wu as p,
|
|
5964
5967
|
Zh as q,
|
|
5965
|
-
|
|
5968
|
+
be as r,
|
|
5966
5969
|
Jh as s,
|
|
5967
5970
|
dh as t,
|
|
5968
5971
|
$i as u,
|
|
5969
|
-
|
|
5972
|
+
Xh as v,
|
|
5970
5973
|
Qu as w,
|
|
5971
5974
|
$h as x,
|
|
5972
5975
|
Bh as y,
|