@synnaxlabs/pluto 0.36.1 → 0.37.0
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/{Animated-BAoBw9cC.cjs → Animated-BOjwPkTJ.cjs} +1 -1
- package/dist/{Animated-DkZIfEYP.js → Animated-ByIJT_wA.js} +2 -2
- package/dist/{Item-BjErngVu.cjs → Item-Bamd13Tl.cjs} +1 -1
- package/dist/{Item-C7Q_zqsK.js → Item-CQ2ZuDfi.js} +8 -8
- package/dist/{LinePlot-Cyj5fPvs.js → LinePlot-Ci-61YDW.js} +111 -108
- package/dist/LinePlot-D4V1ltNT.cjs +24 -0
- package/dist/{Link-DIP4E5h4.cjs → Link-Cm6yn4zC.cjs} +1 -1
- package/dist/{Link-DkPbZ9Vw.js → Link-ZlOdu4jA.js} +1 -1
- package/dist/{Pack-ClLR2ywa.cjs → Pack-CyaEXvnu.cjs} +1 -1
- package/dist/{Pack-D8EcIVa2.js → Pack-DNCFnyuR.js} +1 -1
- package/dist/{Toggle-CZlnDV1Y.js → Toggle-DlYB4nmh.js} +10838 -10799
- package/dist/{Toggle-Dwz8HiqJ.cjs → Toggle-vgmhy8wZ.cjs} +56 -56
- package/dist/{Video-xr1Ey5qV.cjs → Video-g30B90s-.cjs} +1 -1
- package/dist/{Video-CI9sBV9l.js → Video-jaT7Y97L.js} +1 -1
- package/dist/{aggregator-D6gAHK4j.js → aggregator-CWsCIyed.js} +1276 -1258
- package/dist/aggregator-DX8ts24k.cjs +77 -0
- 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-Bo-hsQHb.cjs +1 -0
- package/dist/{css-DnIb4t_E.js → css-Csw1Dn4s.js} +449 -446
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +5 -5
- package/dist/{external-CetHCRLx.js → external-2PznkZYs.js} +36 -36
- package/dist/{external-BxiJID8F.js → external-4ikhWnyq.js} +2 -2
- package/dist/{external-CIm5lpCQ.cjs → external-BS9Bfsj3.cjs} +1 -1
- package/dist/{external-wgG3P6Dp.js → external-BTnFzhMM.js} +1 -1
- package/dist/{external-BeoanEV1.js → external-BpeQ9rNJ.js} +144 -133
- package/dist/external-Bt_kX5KM.cjs +1 -0
- package/dist/{external-C-tizEE4.js → external-CEcxrva2.js} +5 -5
- package/dist/{external-AQutxNrw.cjs → external-CMEDU76u.cjs} +1 -1
- package/dist/{external-Lmd8cJhx.cjs → external-CWincA61.cjs} +1 -1
- package/dist/{external-Czhk9fZS.cjs → external-C_th4MW9.cjs} +1 -1
- package/dist/{external-BX17kwZc.cjs → external-CyPQsB1T.cjs} +1 -1
- package/dist/{external-BpqHq8f8.js → external-CyYaJ5TW.js} +4 -4
- package/dist/{external-6FH5NjXf.js → external-DIwKYTmY.js} +2 -2
- package/dist/{external-feiUnuJI.js → external-DXD4PtTK.js} +2 -2
- package/dist/{external-xPdBJlsz.js → external-Dn4tpDVi.js} +2 -2
- package/dist/{external-CXQMoMS3.cjs → external-DsJYjdNk.cjs} +1 -1
- package/dist/{external-bByVUOOg.cjs → external-Dtr4ZxR6.cjs} +1 -1
- package/dist/{external-8w5Eg-ce.cjs → external-IztUjYjX.cjs} +1 -1
- package/dist/{external-DAn-_GLc.cjs → external-VEFOprRU.cjs} +1 -1
- package/dist/{external-CFaZ_vCi.js → external-WZW4OBZx.js} +4 -4
- package/dist/{external-Cy8UF9vk.cjs → external-kAduhcvp.cjs} +1 -1
- package/dist/{external-BDzzt6lF.js → external-rGv5AzBK.js} +12 -12
- package/dist/{external-DlCfhkx8.cjs → external-vMTeF1dc.cjs} +1 -1
- package/dist/{external-Ckaptp3S.js → external-vYsKqfFS.js} +4 -4
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +9767 -7504
- 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/pluto.css +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts +2 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.spec.d.ts +2 -0
- package/dist/src/breadcrumb/Breadcrumb.spec.d.ts.map +1 -0
- package/dist/src/color/core/color.d.ts +4 -0
- package/dist/src/color/core/color.d.ts.map +1 -1
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/DateTime.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +1 -0
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts +1 -4
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/select/ComponentSize.d.ts +12 -0
- package/dist/src/select/ComponentSize.d.ts.map +1 -0
- package/dist/src/select/DataType.d.ts +3 -2
- package/dist/src/select/DataType.d.ts.map +1 -1
- package/dist/src/select/external.d.ts +1 -0
- package/dist/src/select/external.d.ts.map +1 -1
- package/dist/src/table/aether/Table.d.ts.map +1 -1
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts +2 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Keyboard.d.ts.map +1 -1
- package/dist/src/theming/Provider.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts +2 -2
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/tree/core.d.ts +5 -2
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/util/canDisable.d.ts +10 -0
- package/dist/src/util/canDisable.d.ts.map +1 -0
- package/dist/src/util/removeProps.d.ts +26 -0
- package/dist/src/util/removeProps.d.ts.map +1 -0
- package/dist/src/util/removeProps.spec.d.ts +2 -0
- package/dist/src/util/removeProps.spec.d.ts.map +1 -0
- package/dist/src/vis/canvas/aether/canvas.d.ts +4 -4
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +9 -2
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/SelectOrientation.d.ts +3 -3
- package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +183 -3
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +115 -6
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/setpoint/aether/setpoint.d.ts +1 -1
- package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.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-CKQQRvyD.js → units-CJ76Jzvw.js} +1 -1
- package/dist/{units-YvMXZR11.cjs → units-CXFC0OLO.cjs} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +13 -13
- package/dist/LinePlot-CFpCtIU5.cjs +0 -24
- package/dist/aggregator-q3hNa4qv.cjs +0 -77
- package/dist/css-C3zWKgOb.cjs +0 -1
- package/dist/external-DtsEr2ls.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var li = Object.defineProperty;
|
|
2
2
|
var ui = (e, n, t) => n in e ? li(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var u = (e, n, t) => ui(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { y as hi, z as Ke, B as ct, _ as ys, D as Z, U as pt, H as ut, I as B, J as fi, K as nt, M as di, N as pi, V as xs, O as gi, Q as at, T as Mr, W as Yr, X as Mt, Y as js, Z as Dr, $ as mi, F as Qe, a0 as Jn, a1 as Or, a2 as yi, d as Ct, g as F, k as xt, j as ce, a3 as xi, G as wi, a4 as z, A as bi, a5 as Ar, a6 as vi, a7 as ws, n as Ti, a8 as Lr, a9 as bs, aa as vs, ab as Nr, x as Si, ac as Ts, l as Ur, ad as Fn, ae as Ei } from "./aggregator-
|
|
4
|
+
import { y as hi, z as Ke, B as ct, _ as ys, D as Z, U as pt, H as ut, I as B, J as fi, K as nt, M as di, N as pi, V as xs, O as gi, Q as at, T as Mr, W as Yr, X as Mt, Y as js, Z as Dr, $ as mi, F as Qe, a0 as Jn, a1 as Or, a2 as yi, d as Ct, g as F, k as xt, j as ce, a3 as xi, G as wi, a4 as z, A as bi, a5 as Ar, a6 as vi, a7 as ws, n as Ti, a8 as Lr, a9 as bs, aa as vs, ab as Nr, x as Si, ac as Ts, l as Ur, ad as Fn, ae as Ei } from "./aggregator-CWsCIyed.js";
|
|
5
5
|
import { z as f } from "zod";
|
|
6
|
-
import { Z as G, H as M, c as ki, a as O, g as Ci, l as Q, f as Pi, m as Ri, K as dt, E as p, G as g, e as rt, _ as qs, Y as
|
|
6
|
+
import { Z as G, H as M, c as ki, a as O, g as Ci, l as Q, f as Pi, m as Ri, K as dt, E as p, G as g, e as rt, _ as qs, Y as $r } from "./css-Csw1Dn4s.js";
|
|
7
7
|
var Mi = Object.defineProperty, Yi = (e, n, t) => n in e ? Mi(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Ve = (e, n, t) => Yi(e, typeof n != "symbol" ? n + "" : n, t);
|
|
8
8
|
class Di {
|
|
9
9
|
constructor(n, t) {
|
|
@@ -70,7 +70,7 @@ let _ = (it = class {
|
|
|
70
70
|
const Ai = f.object({
|
|
71
71
|
props: hi.nullable(),
|
|
72
72
|
state: Ke.connectivity.connectionStateZ.nullable()
|
|
73
|
-
}),
|
|
73
|
+
}), Ir = {
|
|
74
74
|
synnax: null,
|
|
75
75
|
state: Ke.connectivity.DEFAULT
|
|
76
76
|
};
|
|
@@ -82,7 +82,7 @@ let ts = (bt = class extends ct {
|
|
|
82
82
|
}
|
|
83
83
|
async afterUpdate() {
|
|
84
84
|
var t;
|
|
85
|
-
if (this.ctx.has(Es) || _n(this.ctx,
|
|
85
|
+
if (this.ctx.has(Es) || _n(this.ctx, Ir), this.state.props == null) {
|
|
86
86
|
this.internal.synnax != null && (this.setState((s) => ({ ...s, state: Ke.connectivity.DEFAULT })), (t = this.internal.synnax) == null || t.close(), this.internal.synnax = null), _n(this.ctx, this.internal);
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
@@ -91,14 +91,14 @@ let ts = (bt = class extends ct {
|
|
|
91
91
|
), _n(this.ctx, this.internal));
|
|
92
92
|
}
|
|
93
93
|
}, u(bt, "TYPE", "SynnaxProvider"), u(bt, "stateZ", Ai), bt);
|
|
94
|
-
const Es = "pluto-client-context", _n = (e, n) => e.set(Es, n),
|
|
94
|
+
const Es = "pluto-client-context", _n = (e, n) => e.set(Es, n), $e = (e) => e.get(Es).synnax, Li = {
|
|
95
95
|
[ts.TYPE]: ts
|
|
96
96
|
}, sh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
97
97
|
__proto__: null,
|
|
98
98
|
Provider: ts,
|
|
99
99
|
REGISTRY: Li,
|
|
100
|
-
ZERO_CONTEXT_VALUE:
|
|
101
|
-
use:
|
|
100
|
+
ZERO_CONTEXT_VALUE: Ir,
|
|
101
|
+
use: $e
|
|
102
102
|
}, Symbol.toStringTag, { value: "Module" })), Br = "pluto-telem-context", Dn = (e) => e.get(Br), Zr = (e, n) => e.set(Br, n), Fr = (e, n) => Dn(e).registerFactory(n);
|
|
103
103
|
class Ws {
|
|
104
104
|
constructor(n, t, s) {
|
|
@@ -148,7 +148,7 @@ const J = async (e, n, t) => {
|
|
|
148
148
|
await ((r = t.cleanup) == null ? void 0 : r.call(t));
|
|
149
149
|
}
|
|
150
150
|
return new Ws(s.create(n), s, n);
|
|
151
|
-
},
|
|
151
|
+
}, Ie = async (e, n, t) => {
|
|
152
152
|
var r;
|
|
153
153
|
const s = Dn(e);
|
|
154
154
|
if (t instanceof Xs) {
|
|
@@ -292,9 +292,9 @@ const Ui = f.instanceof(ArrayBuffer), Be = f.object({
|
|
|
292
292
|
variant: f.literal("sink-transformer")
|
|
293
293
|
}), cn = St.extend({ valueType: f.literal("series") }), Ps = St.extend({
|
|
294
294
|
valueType: f.literal("boolean")
|
|
295
|
-
}), Nn = Ln.extend({ valueType: f.literal("boolean") }),
|
|
295
|
+
}), Nn = Ln.extend({ valueType: f.literal("boolean") }), $i = Xr.extend({
|
|
296
296
|
valueType: f.literal("boolean")
|
|
297
|
-
}),
|
|
297
|
+
}), Ii = Wr.extend({
|
|
298
298
|
valueType: f.literal("boolean")
|
|
299
299
|
}), Vr = St.extend({ valueType: f.literal("number") }), Gr = Ln.extend({ valueType: f.literal("number") }), Rs = St.extend({ valueType: f.literal("color") }), Ms = St.extend({ valueType: f.literal("status") }), Kr = St.extend({ valueType: f.literal("string") });
|
|
300
300
|
class Un extends Ss.BaseObserver {
|
|
@@ -330,7 +330,7 @@ class Un extends Ss.BaseObserver {
|
|
|
330
330
|
}
|
|
331
331
|
class V extends Un {
|
|
332
332
|
}
|
|
333
|
-
class
|
|
333
|
+
class $n extends Un {
|
|
334
334
|
}
|
|
335
335
|
class Dt extends V {
|
|
336
336
|
constructor() {
|
|
@@ -493,7 +493,7 @@ const Bi = (e, n) => ({
|
|
|
493
493
|
inlet: f.string(),
|
|
494
494
|
segments: f.record(Ln)
|
|
495
495
|
});
|
|
496
|
-
class we extends
|
|
496
|
+
class we extends $n {
|
|
497
497
|
constructor(t, s) {
|
|
498
498
|
super(t);
|
|
499
499
|
u(this, "schema", na);
|
|
@@ -1708,7 +1708,7 @@ const Ea = f.object({}), Ft = class Ft extends ct {
|
|
|
1708
1708
|
return t instanceof Ft ? this.client._client === t.client._client : !1;
|
|
1709
1709
|
}
|
|
1710
1710
|
async afterUpdate() {
|
|
1711
|
-
const t =
|
|
1711
|
+
const t = $e(this.ctx), s = Ze(this.ctx, "telem");
|
|
1712
1712
|
this.internal.instrumentation = s.child("provider"), t !== this.prevClient && (s.L.info("swapping client", { client: t }), t == null ? await this.client.swap(null) : await this.client.swap(new Eo({ core: t, instrumentation: s })), this.prevClient = t, Zr(this.ctx, this));
|
|
1713
1713
|
}
|
|
1714
1714
|
};
|
|
@@ -1718,7 +1718,7 @@ const ko = {
|
|
|
1718
1718
|
[Pe.TYPE]: Pe
|
|
1719
1719
|
}, ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1720
1720
|
__proto__: null,
|
|
1721
|
-
AbstractSink:
|
|
1721
|
+
AbstractSink: $n,
|
|
1722
1722
|
AbstractSource: V,
|
|
1723
1723
|
Base: Un,
|
|
1724
1724
|
BaseProvider: Pe,
|
|
@@ -1750,9 +1750,9 @@ const ko = {
|
|
|
1750
1750
|
UnarySourceTransformer: Dt,
|
|
1751
1751
|
WithinBounds: Wt,
|
|
1752
1752
|
booleanSinkSpecZ: Nn,
|
|
1753
|
-
booleanSinkTransformerSpecZ:
|
|
1753
|
+
booleanSinkTransformerSpecZ: $i,
|
|
1754
1754
|
booleanSourceSpecZ: Ps,
|
|
1755
|
-
booleanSourceTransformerSpecZ:
|
|
1755
|
+
booleanSourceTransformerSpecZ: Ii,
|
|
1756
1756
|
booleanStatus: ro,
|
|
1757
1757
|
booleanStatusProps: pa,
|
|
1758
1758
|
channelData: ji,
|
|
@@ -1808,7 +1808,7 @@ const ko = {
|
|
|
1808
1808
|
stringifyNumber: ao,
|
|
1809
1809
|
stringifyNumberProps: ga,
|
|
1810
1810
|
useProvider: Dn,
|
|
1811
|
-
useSink:
|
|
1811
|
+
useSink: Ie,
|
|
1812
1812
|
useSource: J,
|
|
1813
1813
|
withinBounds: no,
|
|
1814
1814
|
withinBoundsProps: fa
|
|
@@ -1819,10 +1819,10 @@ const ko = {
|
|
|
1819
1819
|
loc: dt.outer
|
|
1820
1820
|
});
|
|
1821
1821
|
f.record(ka);
|
|
1822
|
-
const
|
|
1822
|
+
const It = (e, n) => Object.values(n).filter(({ loc: t }) => t === e).sort((t, s) => s.order - t.order), Co = (e, n, t) => {
|
|
1823
1823
|
const s = n[e];
|
|
1824
1824
|
if (s == null) return g.ZERO;
|
|
1825
|
-
const r = dt.construct(s.loc), a =
|
|
1825
|
+
const r = dt.construct(s.loc), a = It(r, n), i = dt.construct(rt.swap(dt.direction(r))), o = It(i, n), c = a.findIndex(({ key: d }) => d === e), l = a.slice(0, c).reduce((d, { size: m }) => d + m, 0), h = o.reduce((d, { size: m }) => d + m, 0);
|
|
1826
1826
|
switch (r) {
|
|
1827
1827
|
case "left":
|
|
1828
1828
|
return g.translate(p.topLeft(t), [l, h]);
|
|
@@ -1837,7 +1837,7 @@ const $t = (e, n) => Object.values(n).filter(({ loc: t }) => t === e).sort((t, s
|
|
|
1837
1837
|
]);
|
|
1838
1838
|
}
|
|
1839
1839
|
}, Po = (e, n) => {
|
|
1840
|
-
const t =
|
|
1840
|
+
const t = It("left", e), s = It("right", e), r = It("top", e), a = It("bottom", e), i = t.reduce((h, { size: d }) => h + d, 0), o = s.reduce((h, { size: d }) => h + d, 0), c = r.reduce((h, { size: d }) => h + d, 0), l = a.reduce((h, { size: d }) => h + d, 0);
|
|
1841
1841
|
return p.construct(
|
|
1842
1842
|
g.translate(p.topLeft(n), { x: i, y: c }),
|
|
1843
1843
|
p.width(n) - i - o,
|
|
@@ -1937,7 +1937,7 @@ function Pa(e, n) {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
function Fe() {
|
|
1939
1939
|
}
|
|
1940
|
-
var Re = 0.7, fn = 1 / Re, qt = "\\s*([+-]?\\d+)\\s*", Me = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ot = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
1940
|
+
var Re = 0.7, fn = 1 / Re, qt = "\\s*([+-]?\\d+)\\s*", Me = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ot = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", $o = /^#([0-9a-f]{3,8})$/, Io = new RegExp(`^rgb\\(${qt},${qt},${qt}\\)$`), Bo = new RegExp(`^rgb\\(${ot},${ot},${ot}\\)$`), Zo = new RegExp(`^rgba\\(${qt},${qt},${qt},${Me}\\)$`), Fo = new RegExp(`^rgba\\(${ot},${ot},${ot},${Me}\\)$`), _o = new RegExp(`^hsl\\(${Me},${ot},${ot}\\)$`), zo = new RegExp(`^hsla\\(${Me},${ot},${ot},${Me}\\)$`), Gs = {
|
|
1941
1941
|
aliceblue: 15792383,
|
|
1942
1942
|
antiquewhite: 16444375,
|
|
1943
1943
|
aqua: 65535,
|
|
@@ -2116,7 +2116,7 @@ function Qs() {
|
|
|
2116
2116
|
}
|
|
2117
2117
|
function Ye(e) {
|
|
2118
2118
|
var n, t;
|
|
2119
|
-
return e = (e + "").trim().toLowerCase(), (n =
|
|
2119
|
+
return e = (e + "").trim().toLowerCase(), (n = $o.exec(e)) ? (t = n[1].length, n = parseInt(n[1], 16), t === 6 ? Js(n) : t === 3 ? new H(n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, (n & 15) << 4 | n & 15, 1) : t === 8 ? qe(n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, (n & 255) / 255) : t === 4 ? qe(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 = Io.exec(e)) ? new H(n[1], n[2], n[3], 1) : (n = Bo.exec(e)) ? new H(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, 1) : (n = Zo.exec(e)) ? qe(n[1], n[2], n[3], n[4]) : (n = Fo.exec(e)) ? qe(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, n[4]) : (n = _o.exec(e)) ? nr(n[1], n[2] / 100, n[3] / 100, 1) : (n = zo.exec(e)) ? nr(n[1], n[2] / 100, n[3] / 100, n[4]) : Gs.hasOwnProperty(e) ? Js(Gs[e]) : e === "transparent" ? new H(NaN, NaN, NaN, 0) : null;
|
|
2120
2120
|
}
|
|
2121
2121
|
function Js(e) {
|
|
2122
2122
|
return new H(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
@@ -2431,7 +2431,7 @@ var mc = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?
|
|
|
2431
2431
|
function mn(e) {
|
|
2432
2432
|
if (!(n = mc.exec(e))) throw new Error("invalid format: " + e);
|
|
2433
2433
|
var n;
|
|
2434
|
-
return new
|
|
2434
|
+
return new $s({
|
|
2435
2435
|
fill: n[1],
|
|
2436
2436
|
align: n[2],
|
|
2437
2437
|
sign: n[3],
|
|
@@ -2444,11 +2444,11 @@ function mn(e) {
|
|
|
2444
2444
|
type: n[10]
|
|
2445
2445
|
});
|
|
2446
2446
|
}
|
|
2447
|
-
mn.prototype =
|
|
2448
|
-
function
|
|
2447
|
+
mn.prototype = $s.prototype;
|
|
2448
|
+
function $s(e) {
|
|
2449
2449
|
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
2450
2450
|
}
|
|
2451
|
-
|
|
2451
|
+
$s.prototype.toString = function() {
|
|
2452
2452
|
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
2453
2453
|
};
|
|
2454
2454
|
function yc(e) {
|
|
@@ -2503,18 +2503,18 @@ function wc(e) {
|
|
|
2503
2503
|
var n = e.grouping === void 0 || e.thousands === void 0 ? cr : pc(lr.call(e.grouping, Number), e.thousands + ""), t = e.currency === void 0 ? "" : e.currency[0] + "", s = e.currency === void 0 ? "" : e.currency[1] + "", r = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? cr : gc(lr.call(e.numerals, String)), i = e.percent === void 0 ? "%" : e.percent + "", o = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
2504
2504
|
function l(d) {
|
|
2505
2505
|
d = mn(d);
|
|
2506
|
-
var m = d.fill, w = d.align, b = d.sign, v = d.symbol, E = d.zero, Y = d.width, L = d.comma, C = d.precision, A = d.trim,
|
|
2507
|
-
|
|
2508
|
-
var T = v === "$" ? t : v === "#" && /[boxX]/.test(
|
|
2509
|
-
C = C === void 0 ? 6 : /[gprs]/.test(
|
|
2506
|
+
var m = d.fill, w = d.align, b = d.sign, v = d.symbol, E = d.zero, Y = d.width, L = d.comma, C = d.precision, A = d.trim, $ = d.type;
|
|
2507
|
+
$ === "n" ? (L = !0, $ = "g") : or[$] || (C === void 0 && (C = 12), A = !0, $ = "g"), (E || m === "0" && w === "=") && (E = !0, m = "0", w = "=");
|
|
2508
|
+
var T = v === "$" ? t : v === "#" && /[boxX]/.test($) ? "0" + $.toLowerCase() : "", I = v === "$" ? s : /[%p]/.test($) ? i : "", Et = or[$], Zn = /[defgprs%]/.test($);
|
|
2509
|
+
C = C === void 0 ? 6 : /[gprs]/.test($) ? Math.max(1, Math.min(21, C)) : Math.max(0, Math.min(20, C));
|
|
2510
2510
|
function ze(k) {
|
|
2511
|
-
var lt = T, j =
|
|
2512
|
-
if (
|
|
2511
|
+
var lt = T, j = I, wt, je, Lt;
|
|
2512
|
+
if ($ === "c")
|
|
2513
2513
|
j = Et(k) + j, k = "";
|
|
2514
2514
|
else {
|
|
2515
2515
|
k = +k;
|
|
2516
2516
|
var Nt = k < 0 || 1 / k < 0;
|
|
2517
|
-
if (k = isNaN(k) ? c : Et(Math.abs(k), C), A && (k = yc(k)), Nt && +k == 0 && b !== "+" && (Nt = !1), lt = (Nt ? b === "(" ? b : o : b === "-" || b === "(" ? "" : b) + lt, j = (
|
|
2517
|
+
if (k = isNaN(k) ? c : Et(Math.abs(k), C), A && (k = yc(k)), Nt && +k == 0 && b !== "+" && (Nt = !1), lt = (Nt ? b === "(" ? b : o : b === "-" || b === "(" ? "" : b) + lt, j = ($ === "s" ? ur[8 + Oa / 3] : "") + j + (Nt && b === "(" ? ")" : ""), Zn) {
|
|
2518
2518
|
for (wt = -1, je = k.length; ++wt < je; )
|
|
2519
2519
|
if (Lt = k.charCodeAt(wt), 48 > Lt || Lt > 57) {
|
|
2520
2520
|
j = (Lt === 46 ? r + k.slice(wt + 1) : k.slice(wt)) + j, k = k.slice(0, wt);
|
|
@@ -2670,7 +2670,7 @@ yn.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ?
|
|
|
2670
2670
|
n.setTime(+n + t * e);
|
|
2671
2671
|
}, (n, t) => (t - n) / e) : yn);
|
|
2672
2672
|
yn.range;
|
|
2673
|
-
const ht = 1e3, K = ht * 60, ft = K * 60, mt = ft * 24,
|
|
2673
|
+
const ht = 1e3, K = ht * 60, ft = K * 60, mt = ft * 24, Is = mt * 7, hr = mt * 30, Xn = mt * 365, Zt = N((e) => {
|
|
2674
2674
|
e.setTime(e - e.getMilliseconds());
|
|
2675
2675
|
}, (e, n) => {
|
|
2676
2676
|
e.setTime(+e + n * ht);
|
|
@@ -2724,10 +2724,10 @@ function Ot(e) {
|
|
|
2724
2724
|
n.setDate(n.getDate() - (n.getDay() + 7 - e) % 7), n.setHours(0, 0, 0, 0);
|
|
2725
2725
|
}, (n, t) => {
|
|
2726
2726
|
n.setDate(n.getDate() + t * 7);
|
|
2727
|
-
}, (n, t) => (t - n - (t.getTimezoneOffset() - n.getTimezoneOffset()) * K) /
|
|
2727
|
+
}, (n, t) => (t - n - (t.getTimezoneOffset() - n.getTimezoneOffset()) * K) / Is);
|
|
2728
2728
|
}
|
|
2729
|
-
const
|
|
2730
|
-
|
|
2729
|
+
const In = Ot(0), xn = Ot(1), Yc = Ot(2), Dc = Ot(3), ee = Ot(4), Oc = Ot(5), Ac = Ot(6);
|
|
2730
|
+
In.range;
|
|
2731
2731
|
xn.range;
|
|
2732
2732
|
Yc.range;
|
|
2733
2733
|
Dc.range;
|
|
@@ -2739,28 +2739,28 @@ function At(e) {
|
|
|
2739
2739
|
n.setUTCDate(n.getUTCDate() - (n.getUTCDay() + 7 - e) % 7), n.setUTCHours(0, 0, 0, 0);
|
|
2740
2740
|
}, (n, t) => {
|
|
2741
2741
|
n.setUTCDate(n.getUTCDate() + t * 7);
|
|
2742
|
-
}, (n, t) => (t - n) /
|
|
2742
|
+
}, (n, t) => (t - n) / Is);
|
|
2743
2743
|
}
|
|
2744
|
-
const Ua = At(0), wn = At(1), Lc = At(2), Nc = At(3), ne = At(4), Uc = At(5),
|
|
2744
|
+
const Ua = At(0), wn = At(1), Lc = At(2), Nc = At(3), ne = At(4), Uc = At(5), $c = At(6);
|
|
2745
2745
|
Ua.range;
|
|
2746
2746
|
wn.range;
|
|
2747
2747
|
Lc.range;
|
|
2748
2748
|
Nc.range;
|
|
2749
2749
|
ne.range;
|
|
2750
2750
|
Uc.range;
|
|
2751
|
-
|
|
2751
|
+
$c.range;
|
|
2752
2752
|
const _s = N((e) => {
|
|
2753
2753
|
e.setDate(1), e.setHours(0, 0, 0, 0);
|
|
2754
2754
|
}, (e, n) => {
|
|
2755
2755
|
e.setMonth(e.getMonth() + n);
|
|
2756
2756
|
}, (e, n) => n.getMonth() - e.getMonth() + (n.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
|
|
2757
2757
|
_s.range;
|
|
2758
|
-
const
|
|
2758
|
+
const Ic = N((e) => {
|
|
2759
2759
|
e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
|
|
2760
2760
|
}, (e, n) => {
|
|
2761
2761
|
e.setUTCMonth(e.getUTCMonth() + n);
|
|
2762
2762
|
}, (e, n) => n.getUTCMonth() - e.getUTCMonth() + (n.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
|
|
2763
|
-
|
|
2763
|
+
Ic.range;
|
|
2764
2764
|
const yt = N((e) => {
|
|
2765
2765
|
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
|
|
2766
2766
|
}, (e, n) => {
|
|
@@ -2799,7 +2799,7 @@ function Bc(e, n, t, s, r, a) {
|
|
|
2799
2799
|
[r, 12, 12 * ft],
|
|
2800
2800
|
[s, 1, mt],
|
|
2801
2801
|
[s, 2, 2 * mt],
|
|
2802
|
-
[t, 1,
|
|
2802
|
+
[t, 1, Is],
|
|
2803
2803
|
[n, 1, hr],
|
|
2804
2804
|
[n, 3, 3 * hr],
|
|
2805
2805
|
[e, 1, Xn]
|
|
@@ -2819,7 +2819,7 @@ function Bc(e, n, t, s, r, a) {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
return [o, c];
|
|
2821
2821
|
}
|
|
2822
|
-
const [Zc, Fc] = Bc(yt, _s,
|
|
2822
|
+
const [Zc, Fc] = Bc(yt, _s, In, _e, Zs, Bs);
|
|
2823
2823
|
function Vn(e) {
|
|
2824
2824
|
if (0 <= e.y && e.y < 100) {
|
|
2825
2825
|
var n = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
|
|
@@ -2852,7 +2852,7 @@ function _c(e) {
|
|
|
2852
2852
|
H: cl,
|
|
2853
2853
|
I: ll,
|
|
2854
2854
|
j: ul,
|
|
2855
|
-
L:
|
|
2855
|
+
L: $a,
|
|
2856
2856
|
m: fl,
|
|
2857
2857
|
M: dl,
|
|
2858
2858
|
p: ei,
|
|
@@ -2880,7 +2880,7 @@ function _c(e) {
|
|
|
2880
2880
|
d: xr,
|
|
2881
2881
|
e: xr,
|
|
2882
2882
|
f: Rl,
|
|
2883
|
-
g:
|
|
2883
|
+
g: Il,
|
|
2884
2884
|
G: Zl,
|
|
2885
2885
|
H: kl,
|
|
2886
2886
|
I: Cl,
|
|
@@ -2900,11 +2900,11 @@ function _c(e) {
|
|
|
2900
2900
|
W: Ul,
|
|
2901
2901
|
x: null,
|
|
2902
2902
|
X: null,
|
|
2903
|
-
y:
|
|
2903
|
+
y: $l,
|
|
2904
2904
|
Y: Bl,
|
|
2905
2905
|
Z: Fl,
|
|
2906
2906
|
"%": wr
|
|
2907
|
-
},
|
|
2907
|
+
}, $ = {
|
|
2908
2908
|
a: ze,
|
|
2909
2909
|
A: k,
|
|
2910
2910
|
b: lt,
|
|
@@ -2947,7 +2947,7 @@ function _c(e) {
|
|
|
2947
2947
|
return y.push(x.slice(D, q)), y.join("");
|
|
2948
2948
|
};
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2950
|
+
function I(x, S) {
|
|
2951
2951
|
return function(P) {
|
|
2952
2952
|
var y = re(1900, void 0, 1), q = Et(y, x, P += "", 0), D, W;
|
|
2953
2953
|
if (q != P.length) return null;
|
|
@@ -2964,7 +2964,7 @@ function _c(e) {
|
|
|
2964
2964
|
for (var q = 0, D = S.length, W = P.length, X, kt; q < D; ) {
|
|
2965
2965
|
if (y >= W) return -1;
|
|
2966
2966
|
if (X = S.charCodeAt(q++), X === 37) {
|
|
2967
|
-
if (X = S.charAt(q++), kt =
|
|
2967
|
+
if (X = S.charAt(q++), kt = $[X in fr ? S.charAt(q++) : X], !kt || (y = kt(x, P, y)) < 0) return -1;
|
|
2968
2968
|
} else if (X != P.charCodeAt(y++))
|
|
2969
2969
|
return -1;
|
|
2970
2970
|
}
|
|
@@ -3043,7 +3043,7 @@ function _c(e) {
|
|
|
3043
3043
|
}, S;
|
|
3044
3044
|
},
|
|
3045
3045
|
parse: function(x) {
|
|
3046
|
-
var S =
|
|
3046
|
+
var S = I(x += "", !1);
|
|
3047
3047
|
return S.toString = function() {
|
|
3048
3048
|
return x;
|
|
3049
3049
|
}, S;
|
|
@@ -3055,7 +3055,7 @@ function _c(e) {
|
|
|
3055
3055
|
}, S;
|
|
3056
3056
|
},
|
|
3057
3057
|
utcParse: function(x) {
|
|
3058
|
-
var S =
|
|
3058
|
+
var S = I(x += "", !0);
|
|
3059
3059
|
return S.toString = function() {
|
|
3060
3060
|
return x;
|
|
3061
3061
|
}, S;
|
|
@@ -3168,11 +3168,11 @@ function ll(e, n) {
|
|
|
3168
3168
|
function ul(e, n) {
|
|
3169
3169
|
return R(1 + _e.count(yt(e), e), n, 3);
|
|
3170
3170
|
}
|
|
3171
|
-
function
|
|
3171
|
+
function $a(e, n) {
|
|
3172
3172
|
return R(e.getMilliseconds(), n, 3);
|
|
3173
3173
|
}
|
|
3174
3174
|
function hl(e, n) {
|
|
3175
|
-
return
|
|
3175
|
+
return $a(e, n) + "000";
|
|
3176
3176
|
}
|
|
3177
3177
|
function fl(e, n) {
|
|
3178
3178
|
return R(e.getMonth() + 1, n, 2);
|
|
@@ -3188,14 +3188,14 @@ function gl(e) {
|
|
|
3188
3188
|
return n === 0 ? 7 : n;
|
|
3189
3189
|
}
|
|
3190
3190
|
function ml(e, n) {
|
|
3191
|
-
return R(
|
|
3191
|
+
return R(In.count(yt(e) - 1, e), n, 2);
|
|
3192
3192
|
}
|
|
3193
|
-
function
|
|
3193
|
+
function Ia(e) {
|
|
3194
3194
|
var n = e.getDay();
|
|
3195
3195
|
return n >= 4 || n === 0 ? ee(e) : ee.ceil(e);
|
|
3196
3196
|
}
|
|
3197
3197
|
function yl(e, n) {
|
|
3198
|
-
return e =
|
|
3198
|
+
return e = Ia(e), R(ee.count(yt(e), e) + (yt(e).getDay() === 4), n, 2);
|
|
3199
3199
|
}
|
|
3200
3200
|
function xl(e) {
|
|
3201
3201
|
return e.getDay();
|
|
@@ -3207,7 +3207,7 @@ function bl(e, n) {
|
|
|
3207
3207
|
return R(e.getFullYear() % 100, n, 2);
|
|
3208
3208
|
}
|
|
3209
3209
|
function vl(e, n) {
|
|
3210
|
-
return e =
|
|
3210
|
+
return e = Ia(e), R(e.getFullYear() % 100, n, 2);
|
|
3211
3211
|
}
|
|
3212
3212
|
function Tl(e, n) {
|
|
3213
3213
|
return R(e.getFullYear() % 1e4, n, 4);
|
|
@@ -3267,10 +3267,10 @@ function Nl(e) {
|
|
|
3267
3267
|
function Ul(e, n) {
|
|
3268
3268
|
return R(wn.count(Yt(e) - 1, e), n, 2);
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3270
|
+
function $l(e, n) {
|
|
3271
3271
|
return R(e.getUTCFullYear() % 100, n, 2);
|
|
3272
3272
|
}
|
|
3273
|
-
function
|
|
3273
|
+
function Il(e, n) {
|
|
3274
3274
|
return e = Za(e), R(e.getUTCFullYear() % 100, n, 2);
|
|
3275
3275
|
}
|
|
3276
3276
|
function Bl(e, n) {
|
|
@@ -3292,7 +3292,7 @@ function br(e) {
|
|
|
3292
3292
|
function vr(e) {
|
|
3293
3293
|
return Math.floor(+e / 1e3);
|
|
3294
3294
|
}
|
|
3295
|
-
var
|
|
3295
|
+
var $t, Fa;
|
|
3296
3296
|
_l({
|
|
3297
3297
|
dateTime: "%x, %X",
|
|
3298
3298
|
date: "%-m/%-d/%Y",
|
|
@@ -3304,7 +3304,7 @@ _l({
|
|
|
3304
3304
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
3305
3305
|
});
|
|
3306
3306
|
function _l(e) {
|
|
3307
|
-
return
|
|
3307
|
+
return $t = _c(e), Fa = $t.format, $t.parse, $t.utcFormat, $t.utcParse, $t;
|
|
3308
3308
|
}
|
|
3309
3309
|
function zl(e) {
|
|
3310
3310
|
return new Date(e);
|
|
@@ -3314,7 +3314,7 @@ function jl(e) {
|
|
|
3314
3314
|
}
|
|
3315
3315
|
function _a(e, n, t, s, r, a, i, o, c, l) {
|
|
3316
3316
|
var h = Da(), d = h.invert, m = h.domain, w = l(".%L"), b = l(":%S"), v = l("%I:%M"), E = l("%I %p"), Y = l("%a %d"), L = l("%b %d"), C = l("%B"), A = l("%Y");
|
|
3317
|
-
function
|
|
3317
|
+
function $(T) {
|
|
3318
3318
|
return (c(T) < T ? w : o(T) < T ? b : i(T) < T ? v : a(T) < T ? E : s(T) < T ? r(T) < T ? Y : L : t(T) < T ? C : A)(T);
|
|
3319
3319
|
}
|
|
3320
3320
|
return h.invert = function(T) {
|
|
@@ -3322,19 +3322,19 @@ function _a(e, n, t, s, r, a, i, o, c, l) {
|
|
|
3322
3322
|
}, h.domain = function(T) {
|
|
3323
3323
|
return arguments.length ? m(Array.from(T, jl)) : m().map(zl);
|
|
3324
3324
|
}, h.ticks = function(T) {
|
|
3325
|
-
var
|
|
3326
|
-
return e(
|
|
3327
|
-
}, h.tickFormat = function(T,
|
|
3328
|
-
return
|
|
3325
|
+
var I = m();
|
|
3326
|
+
return e(I[0], I[I.length - 1], T ?? 10);
|
|
3327
|
+
}, h.tickFormat = function(T, I) {
|
|
3328
|
+
return I == null ? $ : l(I);
|
|
3329
3329
|
}, h.nice = function(T) {
|
|
3330
|
-
var
|
|
3331
|
-
return (!T || typeof T.range != "function") && (T = n(
|
|
3330
|
+
var I = m();
|
|
3331
|
+
return (!T || typeof T.range != "function") && (T = n(I[0], I[I.length - 1], T ?? 10)), T ? m(Cc(I, T)) : h;
|
|
3332
3332
|
}, h.copy = function() {
|
|
3333
3333
|
return Ya(h, _a(e, n, t, s, r, a, i, o, c, l));
|
|
3334
3334
|
}, h;
|
|
3335
3335
|
}
|
|
3336
3336
|
function ql() {
|
|
3337
|
-
return Ca.apply(_a(Zc, Fc, yt, _s,
|
|
3337
|
+
return Ca.apply(_a(Zc, Fc, yt, _s, In, _e, Zs, Bs, Zt, Fa).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
3338
3338
|
}
|
|
3339
3339
|
const za = f.enum(["linear", "time"]), ja = f.object({
|
|
3340
3340
|
tickSpacing: f.number().default(75),
|
|
@@ -3811,7 +3811,7 @@ const uu = 5e3, hu = (e, n) => pu(du(e), n).map(
|
|
|
3811
3811
|
i.alignment < o.alignment ? c = Number(o.alignment - i.alignment) : o.alignment < i.alignment && (l = Number(i.alignment - o.alignment));
|
|
3812
3812
|
const h = Math.min(i.length - c, o.length - l);
|
|
3813
3813
|
if (h === 0) return;
|
|
3814
|
-
const d =
|
|
3814
|
+
const d = $r(
|
|
3815
3815
|
Math.round(t * 4 * h),
|
|
3816
3816
|
s,
|
|
3817
3817
|
51
|
|
@@ -4116,6 +4116,7 @@ const Su = f.object({
|
|
|
4116
4116
|
this.requestRender("high");
|
|
4117
4117
|
}
|
|
4118
4118
|
async render() {
|
|
4119
|
+
if (this.deleted) return;
|
|
4119
4120
|
const t = p.copy(this.state.region);
|
|
4120
4121
|
if (!this.state.visible)
|
|
4121
4122
|
return async () => this.internal.renderCtx.erase(
|
|
@@ -4171,7 +4172,7 @@ class cs extends z {
|
|
|
4171
4172
|
this.ctx,
|
|
4172
4173
|
s,
|
|
4173
4174
|
this.internal.source
|
|
4174
|
-
), this.internal.sink = await
|
|
4175
|
+
), this.internal.sink = await Ie(this.ctx, t, this.internal.sink), this.state.triggered && !this.prevState.triggered && this.internal.sink.set(((r = this.state.status.data) == null ? void 0 : r.authority) !== vi.Absolute.valueOf()).catch(console.error), await this.updateEnabledState(), (i = (a = this.internal).stopListening) == null || i.call(a), this.internal.stopListening = this.internal.source.onChange(() => {
|
|
4175
4176
|
this.updateEnabledState();
|
|
4176
4177
|
});
|
|
4177
4178
|
}
|
|
@@ -4220,7 +4221,7 @@ class Oe extends ct {
|
|
|
4220
4221
|
t.instrumentation = Ze(this.ctx, "control-state");
|
|
4221
4222
|
const s = xt(this.ctx);
|
|
4222
4223
|
t.palette = s.colors.visualization.palettes.default, t.defaultColor = s.colors.gray.l6;
|
|
4223
|
-
const r =
|
|
4224
|
+
const r = $e(this.ctx);
|
|
4224
4225
|
t.client != null && r === t.client || (t.client = r, this.ctx.set(Pr, this), await this.maybeCloseTracker(), t.client != null && (this.internal.instrumentation.L.debug("starting state tracker"), await this.openTracker(t.client)));
|
|
4225
4226
|
}
|
|
4226
4227
|
async maybeCloseTracker() {
|
|
@@ -4288,8 +4289,8 @@ class ls extends ct {
|
|
|
4288
4289
|
}
|
|
4289
4290
|
async afterUpdate() {
|
|
4290
4291
|
this.internal.instrumentation = Ze(this.ctx), (this.internal.prevTrigger == null || Math.abs(this.state.acquireTrigger - this.internal.prevTrigger) > 1) && (this.internal.prevTrigger = this.state.acquireTrigger);
|
|
4291
|
-
const t =
|
|
4292
|
-
this.internal.client = t, this.internal.client == null && await this.release(), this.internal.stateProv = s, Fr(this.ctx, this), this.internal.addStatus = bs(this.ctx), this.state.acquireTrigger > this.internal.prevTrigger ?
|
|
4292
|
+
const t = $e(this.ctx), s = Oe.use(this.ctx);
|
|
4293
|
+
this.internal.client = t, this.internal.client == null && await this.release(), this.internal.stateProv = s, Fr(this.ctx, this), this.internal.addStatus = bs(this.ctx), this.state.acquireTrigger > this.internal.prevTrigger ? await this.acquire() : this.state.acquireTrigger < this.internal.prevTrigger && await this.release();
|
|
4293
4294
|
}
|
|
4294
4295
|
async afterDelete() {
|
|
4295
4296
|
await this.release();
|
|
@@ -4304,6 +4305,7 @@ class ls extends ct {
|
|
|
4304
4305
|
Qe.unorderedPrimitiveArrays(this.state.needsControlOf, r) !== Qe.EQUAL && this.setState((a) => ({ ...a, needsControlOf: r }));
|
|
4305
4306
|
}
|
|
4306
4307
|
async acquire() {
|
|
4308
|
+
this.internal.prevTrigger = this.state.acquireTrigger;
|
|
4307
4309
|
const { client: t, addStatus: s } = this.internal;
|
|
4308
4310
|
if (t == null)
|
|
4309
4311
|
return s({
|
|
@@ -4318,13 +4320,14 @@ class ls extends ct {
|
|
|
4318
4320
|
message: `Cannot acquire control on ${this.state.name} because there are no channels to control.`,
|
|
4319
4321
|
variant: "warning"
|
|
4320
4322
|
});
|
|
4323
|
+
const a = vs.now().sub(B.milliseconds(1));
|
|
4321
4324
|
this.writer = await t.openWriter({
|
|
4322
|
-
start:
|
|
4325
|
+
start: a,
|
|
4323
4326
|
channels: r,
|
|
4324
4327
|
controlSubject: { key: this.key, name: this.state.name },
|
|
4325
4328
|
authorities: this.state.authority,
|
|
4326
4329
|
enableAutoCommit: !0
|
|
4327
|
-
}), this.setState((
|
|
4330
|
+
}), this.setState((i) => ({ ...i, status: "acquired" }));
|
|
4328
4331
|
} catch (r) {
|
|
4329
4332
|
this.setState((a) => ({ ...a, status: "failed" })), s({
|
|
4330
4333
|
message: `${this.state.name} failed to acquire control: ${r.message}`,
|
|
@@ -4334,6 +4337,7 @@ class ls extends ct {
|
|
|
4334
4337
|
}
|
|
4335
4338
|
async release() {
|
|
4336
4339
|
var t;
|
|
4340
|
+
this.internal.prevTrigger = this.state.acquireTrigger;
|
|
4337
4341
|
try {
|
|
4338
4342
|
await ((t = this.writer) == null ? void 0 : t.close()), this.setState((s) => ({ ...s, status: "released" }));
|
|
4339
4343
|
} catch (s) {
|
|
@@ -4389,7 +4393,7 @@ u(ls, "TYPE", "Controller");
|
|
|
4389
4393
|
const Yu = f.object({
|
|
4390
4394
|
channel: f.number()
|
|
4391
4395
|
});
|
|
4392
|
-
class En extends
|
|
4396
|
+
class En extends $n {
|
|
4393
4397
|
constructor(t, s) {
|
|
4394
4398
|
super(s);
|
|
4395
4399
|
u(this, "controller");
|
|
@@ -4427,7 +4431,7 @@ const fh = (e) => ({
|
|
|
4427
4431
|
authority: f.number().default(ws.Authority.Absolute.valueOf()),
|
|
4428
4432
|
channel: f.number()
|
|
4429
4433
|
});
|
|
4430
|
-
class kn extends
|
|
4434
|
+
class kn extends $n {
|
|
4431
4435
|
constructor(t, s) {
|
|
4432
4436
|
super(s);
|
|
4433
4437
|
u(this, "controller");
|
|
@@ -4612,7 +4616,7 @@ class fs extends z {
|
|
|
4612
4616
|
async afterUpdate() {
|
|
4613
4617
|
var r;
|
|
4614
4618
|
const { sink: t } = this.state;
|
|
4615
|
-
(r = this.internal).prevTrigger ?? (r.prevTrigger = this.state.trigger), this.internal.sink = await
|
|
4619
|
+
(r = this.internal).prevTrigger ?? (r.prevTrigger = this.state.trigger), this.internal.sink = await Ie(this.ctx, t, this.internal.sink);
|
|
4616
4620
|
const s = this.internal.prevTrigger;
|
|
4617
4621
|
this.internal.prevTrigger = this.state.trigger, !(this.state.trigger <= s) && this.internal.sink.set(!0).catch(console.error);
|
|
4618
4622
|
}
|
|
@@ -4736,21 +4740,21 @@ const Uu = {
|
|
|
4736
4740
|
};
|
|
4737
4741
|
u(jt, "TYPE", "Diagram"), u(jt, "stateZ", Ka);
|
|
4738
4742
|
let Ae = jt;
|
|
4739
|
-
const
|
|
4743
|
+
const $u = {
|
|
4740
4744
|
[Ae.TYPE]: Ae
|
|
4741
4745
|
}, xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4742
4746
|
__proto__: null,
|
|
4743
4747
|
Diagram: Ae,
|
|
4744
|
-
REGISTRY:
|
|
4748
|
+
REGISTRY: $u,
|
|
4745
4749
|
diagramStateZ: Ka
|
|
4746
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4750
|
+
}, Symbol.toStringTag, { value: "Module" })), Iu = f.object({
|
|
4747
4751
|
enabled: f.boolean(),
|
|
4748
4752
|
source: Ps.optional().default(ks)
|
|
4749
4753
|
});
|
|
4750
4754
|
class ds extends z {
|
|
4751
4755
|
constructor() {
|
|
4752
4756
|
super(...arguments);
|
|
4753
|
-
u(this, "schema",
|
|
4757
|
+
u(this, "schema", Iu);
|
|
4754
4758
|
}
|
|
4755
4759
|
async afterUpdate() {
|
|
4756
4760
|
var r;
|
|
@@ -5142,12 +5146,14 @@ class ps extends z {
|
|
|
5142
5146
|
async afterUpdate() {
|
|
5143
5147
|
var c;
|
|
5144
5148
|
this.internal.addStatus = Ts(this.ctx);
|
|
5145
|
-
const { sink: t, source: s, trigger: r, command: a } = this.state, {
|
|
5146
|
-
this.internal.source = await J(
|
|
5149
|
+
const { sink: t, source: s, trigger: r, command: a } = this.state, { internal: i } = this;
|
|
5150
|
+
i.prevTrigger ?? (i.prevTrigger = r), this.internal.source = await J(
|
|
5147
5151
|
this.ctx,
|
|
5148
5152
|
s,
|
|
5149
5153
|
this.internal.source
|
|
5150
|
-
),
|
|
5154
|
+
), i.sink = await Ie(this.ctx, t, i.sink);
|
|
5155
|
+
const o = i.prevTrigger;
|
|
5156
|
+
i.prevTrigger = r, r > o && a != null && this.internal.sink.set(a), await this.updateValue(), (c = i.stopListening) == null || c.call(i), i.stopListening = i.source.onChange(() => {
|
|
5151
5157
|
this.updateValue().catch(this.reportError.bind(this));
|
|
5152
5158
|
});
|
|
5153
5159
|
}
|
|
@@ -5163,11 +5169,9 @@ class ps extends z {
|
|
|
5163
5169
|
t !== this.state.value && this.setState((s) => ({ ...s, value: t, triggered: !1 }));
|
|
5164
5170
|
}
|
|
5165
5171
|
async afterDelete() {
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
var t, s, r, a;
|
|
5170
|
-
this.internal.stopListening(), await ((s = (t = this.internal.source).cleanup) == null ? void 0 : s.call(t)), await ((a = (r = this.internal.sink).cleanup) == null ? void 0 : a.call(r));
|
|
5172
|
+
var s, r, a, i;
|
|
5173
|
+
const { internal: t } = this;
|
|
5174
|
+
t.stopListening(), await ((r = (s = t.source).cleanup) == null ? void 0 : r.call(s)), await ((i = (a = t.sink).cleanup) == null ? void 0 : i.call(a));
|
|
5171
5175
|
}
|
|
5172
5176
|
async render() {
|
|
5173
5177
|
}
|
|
@@ -5192,7 +5196,7 @@ class gs extends z {
|
|
|
5192
5196
|
this.ctx,
|
|
5193
5197
|
s,
|
|
5194
5198
|
this.internal.source
|
|
5195
|
-
), o.sink = await
|
|
5199
|
+
), o.sink = await Ie(this.ctx, t, o.sink), r && !i && await o.sink.set(!a), await this.updateEnabledState(), (c = o.stopListening) == null || c.call(o), o.stopListening = o.source.onChange(() => {
|
|
5196
5200
|
this.updateEnabledState().catch(this.reportError.bind(this));
|
|
5197
5201
|
});
|
|
5198
5202
|
}
|
|
@@ -5246,9 +5250,9 @@ const Eh = { [gs.TYPE]: gs }, Hu = f.object({
|
|
|
5246
5250
|
), this.internal.requestRender = _.useOptionalRequest(this.ctx), this.requestRender();
|
|
5247
5251
|
}
|
|
5248
5252
|
async afterDelete() {
|
|
5249
|
-
var a;
|
|
5250
|
-
const {
|
|
5251
|
-
await ((a =
|
|
5253
|
+
var s, r, a, i, o, c;
|
|
5254
|
+
const { internal: t } = this;
|
|
5255
|
+
(s = t.stopListening) == null || s.call(t), (r = t.stopListeningBackground) == null || r.call(t), await ((i = (a = t.telem).cleanup) == null ? void 0 : i.call(a)), await ((c = (o = t.backgroundTelem).cleanup) == null ? void 0 : c.call(o)), t.requestRender == null ? t.render.erase(p.construct(this.state.box), g.ZERO, ...Wu) : t.requestRender(gt);
|
|
5252
5256
|
}
|
|
5253
5257
|
requestRender() {
|
|
5254
5258
|
const { requestRender: t } = this.internal;
|
|
@@ -5317,7 +5321,7 @@ class Mn extends z {
|
|
|
5317
5321
|
async afterUpdate() {
|
|
5318
5322
|
const { internal: t } = this;
|
|
5319
5323
|
t.render = F.use(this.ctx), t.draw = new se(t.render.upper2d, xt(this.ctx)), t.ranges ?? (t.ranges = /* @__PURE__ */ new Map());
|
|
5320
|
-
const s =
|
|
5324
|
+
const s = $e(this.ctx);
|
|
5321
5325
|
s != null && (t.client = s, t.tracker == null && (t.tracker = await t.client.ranges.openTracker(), t.tracker.onChange(async (r) => {
|
|
5322
5326
|
r.forEach(async (a) => {
|
|
5323
5327
|
a.variant === "delete" ? t.ranges.delete(a.key) : Rr(a.value.color) && t.ranges.set(a.key, a.value);
|
|
@@ -5350,7 +5354,7 @@ class Mn extends z {
|
|
|
5350
5354
|
let E = l.pos(Number(w.timeRange.start.valueOf()));
|
|
5351
5355
|
const Y = l.pos(Number(w.timeRange.end.valueOf()));
|
|
5352
5356
|
if (Y < p.left(r) || E > p.right(r)) return;
|
|
5353
|
-
E =
|
|
5357
|
+
E = $r(E, p.left(r) - 2, p.right(r) - 1);
|
|
5354
5358
|
let L = !1;
|
|
5355
5359
|
h != null && (L = M.contains({ lower: E, upper: Y }, h)), L && (d = {
|
|
5356
5360
|
key: w.key,
|
|
@@ -5521,14 +5525,13 @@ class ms extends ct {
|
|
|
5521
5525
|
const r = { findByXDecimal: this.findByXDecimal.bind(this), region: t, canvases: s };
|
|
5522
5526
|
await Promise.all(this.tooltips.map(async (a) => await a.render(r)));
|
|
5523
5527
|
}
|
|
5524
|
-
async renderMeasures(t
|
|
5525
|
-
const
|
|
5528
|
+
async renderMeasures(t) {
|
|
5529
|
+
const s = {
|
|
5526
5530
|
findByXDecimal: this.findByXDecimal.bind(this),
|
|
5527
5531
|
findByXValue: this.findByXValue.bind(this),
|
|
5528
|
-
region: t
|
|
5529
|
-
canvases: s
|
|
5532
|
+
region: t
|
|
5530
5533
|
};
|
|
5531
|
-
await Promise.all(this.measures.map(async (
|
|
5534
|
+
await Promise.all(this.measures.map(async (r) => await r.render(s)));
|
|
5532
5535
|
}
|
|
5533
5536
|
calculatePlot() {
|
|
5534
5537
|
return Po(this.state.grid, this.state.container);
|
|
@@ -5560,7 +5563,7 @@ class ms extends ct {
|
|
|
5560
5563
|
t.filter((h) => h === "gl")
|
|
5561
5564
|
);
|
|
5562
5565
|
try {
|
|
5563
|
-
await this.renderAxes(a, t), await this.renderTooltips(a, t), await this.renderMeasures(a
|
|
5566
|
+
await this.renderAxes(a, t), await this.renderTooltips(a, t), await this.renderMeasures(a), s.gl.finish(), s.gl.flush(), s.gl.finish();
|
|
5564
5567
|
} catch (h) {
|
|
5565
5568
|
if (h.message.toLowerCase().includes("bigint")) return;
|
|
5566
5569
|
this.internal.aggregate({
|
|
@@ -5619,7 +5622,7 @@ export {
|
|
|
5619
5622
|
Pu as W,
|
|
5620
5623
|
Yn as X,
|
|
5621
5624
|
Tn as Y,
|
|
5622
|
-
|
|
5625
|
+
Ir as Z,
|
|
5623
5626
|
En as _,
|
|
5624
5627
|
gt as a,
|
|
5625
5628
|
Nu as a$,
|
|
@@ -5665,7 +5668,7 @@ export {
|
|
|
5665
5668
|
Cu as ac,
|
|
5666
5669
|
Pn as ad,
|
|
5667
5670
|
Ga as ae,
|
|
5668
|
-
|
|
5671
|
+
It as af,
|
|
5669
5672
|
Bn as ag,
|
|
5670
5673
|
ru as ah,
|
|
5671
5674
|
Ql as ai,
|
|
@@ -5688,7 +5691,7 @@ export {
|
|
|
5688
5691
|
Pe as az,
|
|
5689
5692
|
vt as b,
|
|
5690
5693
|
ds as b0,
|
|
5691
|
-
|
|
5694
|
+
Iu as b1,
|
|
5692
5695
|
ps as b2,
|
|
5693
5696
|
ju as b3,
|
|
5694
5697
|
gs as b4,
|
|
@@ -5697,7 +5700,7 @@ export {
|
|
|
5697
5700
|
mh as d,
|
|
5698
5701
|
Uu as e,
|
|
5699
5702
|
gh as f,
|
|
5700
|
-
|
|
5703
|
+
$u as g,
|
|
5701
5704
|
wh as h,
|
|
5702
5705
|
ch as i,
|
|
5703
5706
|
Rh as j,
|