@synnaxlabs/pluto 0.44.5 → 0.44.6
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/{LinePlot-6cl8_hmn.cjs → LinePlot-DRbAPdEU.cjs} +1 -1
- package/dist/{LinePlot-Ck0rhtFk.js → LinePlot-YMJgGruk.js} +255 -256
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +2136 -2151
- package/dist/src/vis/light/aether/light.d.ts +4 -5
- package/dist/src/vis/light/aether/light.d.ts.map +1 -1
- package/dist/src/vis/light/use.d.ts +2 -2
- package/dist/src/vis/light/use.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as N, c as y, d as C, W as U, e as G, i as S, O as
|
|
1
|
+
import { r as N, c as y, d as C, W as U, e as G, i as S, O as oa, w as Xe, f as $, J as la, I as ca, v as mt, h as Jn, b as Q, k as Tr, j as Er, o as Cr, l as ua, m as Mt, p as se, K as f, g as re, H as p, _ as Rs, R as kr, q as sn, a as Pr, S as ha, s as da } from "./css-DvIPI3Qm.js";
|
|
2
2
|
import we, { z as h } from "zod";
|
|
3
|
-
import { z as Ge, X as Dt, A as Ot, B as Ee, N as rn, g as an, D as Rr, T as
|
|
3
|
+
import { z as Ge, X as Dt, A as Ot, B as Ee, N as rn, g as an, D as Rr, T as fa, E as ae, F as on, H as Mr, I as pa, J as kn, U as ma, K as ue, M as gt, Q as q, V as ga, j as V, u as fe, W as ya, Y as Dr, G as va, d as Ms, Z as at, $ as es, a0 as ts, a1 as ba, l as Or, a2 as wa, a3 as xa, a4 as Sa } from "./eraser-CnRJY__h.js";
|
|
4
4
|
import { f as it } from "./fontString-CW0wLG5g.js";
|
|
5
5
|
import "react";
|
|
6
6
|
class Ta {
|
|
@@ -70,7 +70,7 @@ class Rn extends ye {
|
|
|
70
70
|
set() {
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const Lr = {
|
|
74
74
|
type: Rn.TYPE,
|
|
75
75
|
props: {},
|
|
76
76
|
variant: "sink",
|
|
@@ -94,7 +94,7 @@ class Dn extends ye {
|
|
|
94
94
|
return 0;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const _r = {
|
|
98
98
|
type: Dn.TYPE,
|
|
99
99
|
props: {},
|
|
100
100
|
variant: "source",
|
|
@@ -106,7 +106,7 @@ class On extends ye {
|
|
|
106
106
|
return "";
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const Yr = {
|
|
110
110
|
type: On.TYPE,
|
|
111
111
|
props: {},
|
|
112
112
|
variant: "source",
|
|
@@ -147,7 +147,7 @@ class Yn extends ye {
|
|
|
147
147
|
return [C.ZERO, new U([])];
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const Ar = {
|
|
151
151
|
type: Yn.TYPE,
|
|
152
152
|
props: {},
|
|
153
153
|
variant: "source",
|
|
@@ -162,7 +162,7 @@ const Nr = {
|
|
|
162
162
|
[On.TYPE]: On,
|
|
163
163
|
[Yn.TYPE]: Yn
|
|
164
164
|
};
|
|
165
|
-
class
|
|
165
|
+
class Nr {
|
|
166
166
|
type = "noop";
|
|
167
167
|
create(e) {
|
|
168
168
|
const t = ka[e.type];
|
|
@@ -175,17 +175,17 @@ const Pa = h.instanceof(ArrayBuffer), yt = h.object({
|
|
|
175
175
|
valueType: h.string(),
|
|
176
176
|
props: h.any(),
|
|
177
177
|
transfer: h.array(Pa).optional()
|
|
178
|
-
}), ve = yt.extend({ variant: h.literal("source") }), un = yt.extend({ variant: h.literal("sink") }),
|
|
178
|
+
}), ve = yt.extend({ variant: h.literal("source") }), un = yt.extend({ variant: h.literal("sink") }), Ir = yt.extend({
|
|
179
179
|
variant: h.literal("source-transformer")
|
|
180
|
-
}),
|
|
180
|
+
}), Br = yt.extend({
|
|
181
181
|
variant: h.literal("sink-transformer")
|
|
182
182
|
}), Lt = ve.extend({ valueType: h.literal("series") }), ls = ve.extend({
|
|
183
183
|
valueType: h.literal("boolean")
|
|
184
|
-
}), hn = un.extend({ valueType: h.literal("boolean") }), Ra =
|
|
184
|
+
}), hn = un.extend({ valueType: h.literal("boolean") }), Ra = Br.extend({
|
|
185
185
|
valueType: h.literal("boolean")
|
|
186
|
-
}), Ma =
|
|
186
|
+
}), Ma = Ir.extend({
|
|
187
187
|
valueType: h.literal("boolean")
|
|
188
|
-
}),
|
|
188
|
+
}), Zr = ve.extend({ valueType: h.literal("number") }), Ur = un.extend({ valueType: h.literal("number") }), cs = ve.extend({ valueType: h.literal("color") }), us = ve.extend({ valueType: h.literal("status") }), $r = ve.extend({ valueType: h.literal("string") });
|
|
189
189
|
let dn = class extends ns.BaseObserver {
|
|
190
190
|
props_ = void 0;
|
|
191
191
|
uProps_ = void 0;
|
|
@@ -235,7 +235,7 @@ class Ce extends X {
|
|
|
235
235
|
return !0;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
class
|
|
238
|
+
class qr extends X {
|
|
239
239
|
sources = {};
|
|
240
240
|
value() {
|
|
241
241
|
const e = Object.fromEntries(
|
|
@@ -247,7 +247,7 @@ class Fr extends X {
|
|
|
247
247
|
this.sources = { ...this.sources, ...e };
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
class
|
|
250
|
+
class Fr extends dn {
|
|
251
251
|
sinks = {};
|
|
252
252
|
get sink() {
|
|
253
253
|
const [e] = Object.values(this.sinks);
|
|
@@ -267,7 +267,7 @@ class jr extends dn {
|
|
|
267
267
|
const hs = h.object({
|
|
268
268
|
from: h.string(),
|
|
269
269
|
to: h.string()
|
|
270
|
-
}),
|
|
270
|
+
}), jr = h.object({
|
|
271
271
|
connections: h.array(hs),
|
|
272
272
|
outlet: h.string(),
|
|
273
273
|
segments: h.record(h.string(), ve)
|
|
@@ -291,7 +291,7 @@ class ds {
|
|
|
291
291
|
}
|
|
292
292
|
class _t extends X {
|
|
293
293
|
static TYPE = "source-pipeline";
|
|
294
|
-
schema =
|
|
294
|
+
schema = jr;
|
|
295
295
|
sources = {};
|
|
296
296
|
get outlet() {
|
|
297
297
|
const { outlet: e } = this.props, t = this.sources[e];
|
|
@@ -327,14 +327,14 @@ const Da = (n, e) => ({
|
|
|
327
327
|
props: e,
|
|
328
328
|
type: _t.TYPE,
|
|
329
329
|
valueType: n
|
|
330
|
-
}),
|
|
330
|
+
}), Hr = h.object({
|
|
331
331
|
connections: h.array(hs),
|
|
332
332
|
inlet: h.string(),
|
|
333
333
|
segments: h.record(h.string(), un)
|
|
334
334
|
});
|
|
335
335
|
class Yt extends fn {
|
|
336
336
|
static TYPE = "sink-pipeline";
|
|
337
|
-
schema =
|
|
337
|
+
schema = Hr;
|
|
338
338
|
sinks = {};
|
|
339
339
|
get inlet() {
|
|
340
340
|
const { inlet: e } = this.props, t = this.sinks[e];
|
|
@@ -367,12 +367,12 @@ const Oa = (n, e) => ({
|
|
|
367
367
|
props: e,
|
|
368
368
|
type: Yt.TYPE,
|
|
369
369
|
valueType: n
|
|
370
|
-
}),
|
|
370
|
+
}), zr = h.object({
|
|
371
371
|
channel: h.number().or(h.string())
|
|
372
372
|
});
|
|
373
373
|
class At extends X {
|
|
374
374
|
static TYPE = "stream-channel-value";
|
|
375
|
-
schema =
|
|
375
|
+
schema = zr;
|
|
376
376
|
client;
|
|
377
377
|
removeStreamHandler = null;
|
|
378
378
|
leadingBuffer = null;
|
|
@@ -393,7 +393,7 @@ class At extends X {
|
|
|
393
393
|
this.removeStreamHandler?.(), this.valid = !1, this.leadingBuffer?.release(), this.leadingBuffer = null, this.removeStreamHandler = null;
|
|
394
394
|
}
|
|
395
395
|
value() {
|
|
396
|
-
return
|
|
396
|
+
return oa.isZero(this.props.channel) || (this.valid || this.read(), this.leadingBuffer == null || this.leadingBuffer.length === 0) ? 0 : this.leadingBuffer.at(-1, !0);
|
|
397
397
|
}
|
|
398
398
|
async read() {
|
|
399
399
|
try {
|
|
@@ -410,7 +410,7 @@ class At extends X {
|
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
const
|
|
413
|
+
const Wr = async (n, e, t) => {
|
|
414
414
|
const s = await n.retrieveChannel(e), r = Dt.isCalculated(s);
|
|
415
415
|
if (!t || s.isIndex)
|
|
416
416
|
return { key: s.key, dataType: s.dataType, virtual: s.virtual, isCalculated: r };
|
|
@@ -462,7 +462,7 @@ class Nt extends X {
|
|
|
462
462
|
try {
|
|
463
463
|
this.valid = !0;
|
|
464
464
|
const { timeRange: e, channel: t, useIndexOfChannel: s } = this.props;
|
|
465
|
-
this.channel = await
|
|
465
|
+
this.channel = await Wr(
|
|
466
466
|
this.client,
|
|
467
467
|
t,
|
|
468
468
|
s
|
|
@@ -506,7 +506,7 @@ class It extends X {
|
|
|
506
506
|
try {
|
|
507
507
|
this.valid = !0;
|
|
508
508
|
const { channel: e, useIndexOfChannel: t, timeSpan: s } = this.props;
|
|
509
|
-
this.channel = await
|
|
509
|
+
this.channel = await Wr(
|
|
510
510
|
this.client,
|
|
511
511
|
e,
|
|
512
512
|
t
|
|
@@ -540,7 +540,7 @@ const Ya = {
|
|
|
540
540
|
[It.TYPE]: It,
|
|
541
541
|
[At.TYPE]: At
|
|
542
542
|
};
|
|
543
|
-
class
|
|
543
|
+
class Vr {
|
|
544
544
|
type = "remote";
|
|
545
545
|
client;
|
|
546
546
|
constructor(e) {
|
|
@@ -567,7 +567,7 @@ const Aa = (n) => ({
|
|
|
567
567
|
variant: "source",
|
|
568
568
|
valueType: "number"
|
|
569
569
|
});
|
|
570
|
-
class
|
|
570
|
+
class Xr {
|
|
571
571
|
type = "static";
|
|
572
572
|
create(e) {
|
|
573
573
|
switch (e.type) {
|
|
@@ -587,7 +587,7 @@ class Gr {
|
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
const fs = h.object({
|
|
590
|
-
data: h.array(
|
|
590
|
+
data: h.array(la),
|
|
591
591
|
offsets: h.array(h.number()).optional().default([])
|
|
592
592
|
});
|
|
593
593
|
class An extends X {
|
|
@@ -608,8 +608,8 @@ class An extends X {
|
|
|
608
608
|
return [C.max(this.data.map((t) => t.bounds)), this.data];
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
const
|
|
612
|
-
rate:
|
|
611
|
+
const Gr = fs.extend({
|
|
612
|
+
rate: ca.z,
|
|
613
613
|
yOffset: h.number().optional().default(0),
|
|
614
614
|
scroll: h.number().optional().default(0),
|
|
615
615
|
startPosition: h.number().optional().default(0),
|
|
@@ -617,7 +617,7 @@ const Kr = fs.extend({
|
|
|
617
617
|
});
|
|
618
618
|
class Bt extends X {
|
|
619
619
|
static TYPE = "iterative-series";
|
|
620
|
-
schema =
|
|
620
|
+
schema = Gr;
|
|
621
621
|
position;
|
|
622
622
|
interval;
|
|
623
623
|
data;
|
|
@@ -651,26 +651,26 @@ class Bt extends X {
|
|
|
651
651
|
clearInterval(this.interval), this.interval = void 0;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
const
|
|
654
|
+
const Kr = h.number();
|
|
655
655
|
class Zt extends X {
|
|
656
656
|
static TYPE = "static-numeric";
|
|
657
|
-
schema =
|
|
657
|
+
schema = Kr;
|
|
658
658
|
value() {
|
|
659
659
|
return this.props;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const Qr = h.string();
|
|
663
663
|
class Ut extends X {
|
|
664
664
|
static TYPE = "static-string";
|
|
665
|
-
schema =
|
|
665
|
+
schema = Qr;
|
|
666
666
|
value() {
|
|
667
667
|
return this.props;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
const
|
|
670
|
+
const Jr = y.crudeZ;
|
|
671
671
|
class $t extends X {
|
|
672
672
|
static TYPE = "static-color";
|
|
673
|
-
schema =
|
|
673
|
+
schema = Jr;
|
|
674
674
|
value() {
|
|
675
675
|
return y.construct(this.props);
|
|
676
676
|
}
|
|
@@ -701,7 +701,7 @@ const Ba = (n) => ({
|
|
|
701
701
|
variant: "source",
|
|
702
702
|
valueType: "color"
|
|
703
703
|
});
|
|
704
|
-
class
|
|
704
|
+
class ei {
|
|
705
705
|
type = "transformer";
|
|
706
706
|
create(e) {
|
|
707
707
|
switch (e.type) {
|
|
@@ -734,7 +734,7 @@ const Fa = h.object({
|
|
|
734
734
|
variant: "sink",
|
|
735
735
|
valueType: "boolean"
|
|
736
736
|
});
|
|
737
|
-
class Be extends
|
|
737
|
+
class Be extends Fr {
|
|
738
738
|
static TYPE = "boolean-numeric-converter-sink";
|
|
739
739
|
static propsZ = Fa;
|
|
740
740
|
schema = Be.propsZ;
|
|
@@ -742,7 +742,7 @@ class Be extends jr {
|
|
|
742
742
|
return e.map((t) => t ? this.props.truthy : this.props.falsy);
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
const
|
|
745
|
+
const ti = h.object({ trueBound: C.bounds }), Ha = (n) => ({
|
|
746
746
|
props: n,
|
|
747
747
|
type: Ze.TYPE,
|
|
748
748
|
variant: "source",
|
|
@@ -750,7 +750,7 @@ const ni = h.object({ trueBound: C.bounds }), Ha = (n) => ({
|
|
|
750
750
|
});
|
|
751
751
|
class Ze extends Ce {
|
|
752
752
|
static TYPE = "boolean-source";
|
|
753
|
-
static propsZ =
|
|
753
|
+
static propsZ = ti;
|
|
754
754
|
schema = Ze.propsZ;
|
|
755
755
|
curr = null;
|
|
756
756
|
shouldNotify(e) {
|
|
@@ -761,10 +761,10 @@ class Ze extends Ce {
|
|
|
761
761
|
return this.curr = C.contains(this.props.trueBound, e), this.curr;
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
|
-
const
|
|
765
|
-
class Ue extends
|
|
764
|
+
const ni = h.object({});
|
|
765
|
+
class Ue extends qr {
|
|
766
766
|
static TYPE = "mean";
|
|
767
|
-
static propsZ =
|
|
767
|
+
static propsZ = ni;
|
|
768
768
|
schema = Ue.propsZ;
|
|
769
769
|
transform(e) {
|
|
770
770
|
return Object.values(e).reduce((t, s) => t + s, 0) / Object.keys(e).length;
|
|
@@ -775,12 +775,12 @@ const za = (n) => ({
|
|
|
775
775
|
type: Ue.TYPE,
|
|
776
776
|
variant: "source",
|
|
777
777
|
valueType: "boolean"
|
|
778
|
-
}),
|
|
778
|
+
}), si = h.object({
|
|
779
779
|
trueVariant: Xe.variantZ.optional().default("success")
|
|
780
780
|
});
|
|
781
781
|
class $e extends Ce {
|
|
782
782
|
static TYPE = "boolean-status";
|
|
783
|
-
static propsZ =
|
|
783
|
+
static propsZ = si;
|
|
784
784
|
schema = $e.propsZ;
|
|
785
785
|
transform(e) {
|
|
786
786
|
return e.variant === this.props.trueVariant;
|
|
@@ -791,7 +791,7 @@ const Wa = (n) => ({
|
|
|
791
791
|
type: $e.TYPE,
|
|
792
792
|
variant: "source",
|
|
793
793
|
valueType: "boolean"
|
|
794
|
-
}),
|
|
794
|
+
}), ri = h.object({
|
|
795
795
|
precision: h.number().optional().default(2),
|
|
796
796
|
prefix: h.string().optional().default(""),
|
|
797
797
|
suffix: h.string().optional().default(""),
|
|
@@ -799,7 +799,7 @@ const Wa = (n) => ({
|
|
|
799
799
|
});
|
|
800
800
|
class qe extends Ce {
|
|
801
801
|
static TYPE = "stringify-number";
|
|
802
|
-
static propsZ =
|
|
802
|
+
static propsZ = ri;
|
|
803
803
|
schema = qe.propsZ;
|
|
804
804
|
transform(e) {
|
|
805
805
|
const { precision: t, prefix: s, suffix: r, notation: i } = this.props;
|
|
@@ -811,13 +811,13 @@ const Va = (n) => ({
|
|
|
811
811
|
type: qe.TYPE,
|
|
812
812
|
variant: "source",
|
|
813
813
|
valueType: "string"
|
|
814
|
-
}),
|
|
814
|
+
}), ii = h.object({
|
|
815
815
|
windowSize: h.number().optional().default(5)
|
|
816
816
|
});
|
|
817
817
|
class qt extends Ce {
|
|
818
818
|
static TYPE = "rolling-average";
|
|
819
|
-
static propsZ =
|
|
820
|
-
schema =
|
|
819
|
+
static propsZ = ni;
|
|
820
|
+
schema = ii;
|
|
821
821
|
values = [];
|
|
822
822
|
transform(e) {
|
|
823
823
|
return this.props.windowSize < 2 ? e : this.values.reduce((t, s) => t + s, 0) / this.values.length;
|
|
@@ -831,12 +831,12 @@ const Xa = (n) => ({
|
|
|
831
831
|
type: qt.TYPE,
|
|
832
832
|
variant: "source",
|
|
833
833
|
valueType: "number"
|
|
834
|
-
}),
|
|
834
|
+
}), ai = h.object({
|
|
835
835
|
gradient: y.gradientZ
|
|
836
836
|
});
|
|
837
837
|
class Fe extends Ce {
|
|
838
838
|
static TYPE = "color-gradient";
|
|
839
|
-
static propsZ =
|
|
839
|
+
static propsZ = ai;
|
|
840
840
|
schema = Fe.propsZ;
|
|
841
841
|
transform(e) {
|
|
842
842
|
return y.fromGradient(this.props.gradient, e);
|
|
@@ -847,12 +847,12 @@ const Ga = (n) => ({
|
|
|
847
847
|
type: Fe.TYPE,
|
|
848
848
|
variant: "source",
|
|
849
849
|
valueType: "color"
|
|
850
|
-
}),
|
|
850
|
+
}), oi = h.object({
|
|
851
851
|
scale: Q.transform
|
|
852
852
|
});
|
|
853
853
|
class je extends Ce {
|
|
854
854
|
static TYPE = "scale-number";
|
|
855
|
-
static propsZ =
|
|
855
|
+
static propsZ = oi;
|
|
856
856
|
schema = je.propsZ;
|
|
857
857
|
transform(e) {
|
|
858
858
|
const { offset: t, scale: s } = this.props.scale;
|
|
@@ -872,7 +872,7 @@ const Ka = (n) => ({
|
|
|
872
872
|
type: ot.TYPE,
|
|
873
873
|
variant: "source",
|
|
874
874
|
valueType: "number"
|
|
875
|
-
}),
|
|
875
|
+
}), li = (n, e, t) => {
|
|
876
876
|
const s = e.length * t;
|
|
877
877
|
for (let r = s; r < n.length; r += t) {
|
|
878
878
|
const i = n.sub(r, r + 1);
|
|
@@ -895,7 +895,7 @@ const Ka = (n) => ({
|
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
897
|
}, to = {
|
|
898
|
-
decimate:
|
|
898
|
+
decimate: li,
|
|
899
899
|
average: eo
|
|
900
900
|
};
|
|
901
901
|
class ot {
|
|
@@ -907,7 +907,7 @@ class ot {
|
|
|
907
907
|
this.props = e;
|
|
908
908
|
}
|
|
909
909
|
downsample(e) {
|
|
910
|
-
return this._downsample == null && (e.series[0].sampleOffset !== 0 ? this._downsample =
|
|
910
|
+
return this._downsample == null && (e.series[0].sampleOffset !== 0 ? this._downsample = li : this._downsample = to[this.props.mode]), this._downsample;
|
|
911
911
|
}
|
|
912
912
|
transform(e) {
|
|
913
913
|
if (this.props.mode === "decimate" || this.props.windowSize <= 1) return e;
|
|
@@ -961,11 +961,11 @@ class ms {
|
|
|
961
961
|
return null;
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
const e = [new
|
|
966
|
-
return n != null && t.add(new
|
|
964
|
+
const ci = (n) => {
|
|
965
|
+
const e = [new ei(), new Xr(), new Nr()], t = new ms(e);
|
|
966
|
+
return n != null && t.add(new Vr(n)), t.add(new ds(t)), t;
|
|
967
967
|
};
|
|
968
|
-
let
|
|
968
|
+
let ui = class hi {
|
|
969
969
|
factory;
|
|
970
970
|
key;
|
|
971
971
|
parent;
|
|
@@ -977,7 +977,7 @@ let hi = class di {
|
|
|
977
977
|
...this.factory.factories,
|
|
978
978
|
...an.toArray(e)
|
|
979
979
|
]);
|
|
980
|
-
return s.add(new ds(s)), new
|
|
980
|
+
return s.add(new ds(s)), new hi(s, t);
|
|
981
981
|
}
|
|
982
982
|
create(e, t) {
|
|
983
983
|
const s = this.factory.create(e, t);
|
|
@@ -988,13 +988,13 @@ let hi = class di {
|
|
|
988
988
|
return s;
|
|
989
989
|
}
|
|
990
990
|
};
|
|
991
|
-
const vt = "pluto-telem-context", pn = (n) => n.get(vt),
|
|
991
|
+
const vt = "pluto-telem-context", pn = (n) => n.get(vt), di = (n, e) => n.set(vt, e), fi = (n, e, t) => {
|
|
992
992
|
const s = pn(n);
|
|
993
993
|
if (s != null && t != null && s.key === t?.parent?.key) return t;
|
|
994
994
|
const r = s.child(e, s);
|
|
995
995
|
return n.set(vt, r), r;
|
|
996
996
|
};
|
|
997
|
-
class
|
|
997
|
+
class pi {
|
|
998
998
|
spec;
|
|
999
999
|
wrapped;
|
|
1000
1000
|
prevProv;
|
|
@@ -1005,7 +1005,7 @@ class mi {
|
|
|
1005
1005
|
return this.prevProv.key !== e.key || !rn.equal(this.spec, t);
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
|
-
class Ds extends
|
|
1008
|
+
class Ds extends pi {
|
|
1009
1009
|
value() {
|
|
1010
1010
|
return this.wrapped.value();
|
|
1011
1011
|
}
|
|
@@ -1016,7 +1016,7 @@ class Ds extends mi {
|
|
|
1016
1016
|
return this.wrapped.onChange(e);
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
|
-
class Os extends
|
|
1019
|
+
class Os extends pi {
|
|
1020
1020
|
set(...e) {
|
|
1021
1021
|
this.wrapped.set(...e);
|
|
1022
1022
|
}
|
|
@@ -1039,17 +1039,17 @@ const ee = (n, e, t, s) => {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
return new Os(r.create(e, s), r, e);
|
|
1041
1041
|
}, so = h.object({
|
|
1042
|
-
props:
|
|
1042
|
+
props: fa.nullable(),
|
|
1043
1043
|
state: Rr.connectivity.connectionStateZ.nullable()
|
|
1044
|
-
}),
|
|
1044
|
+
}), mi = {
|
|
1045
1045
|
client: null
|
|
1046
1046
|
};
|
|
1047
|
-
let Nn = class
|
|
1047
|
+
let Nn = class gi extends ae {
|
|
1048
1048
|
static TYPE = "synnax.Provider";
|
|
1049
1049
|
static stateZ = so;
|
|
1050
|
-
schema =
|
|
1050
|
+
schema = gi.stateZ;
|
|
1051
1051
|
afterUpdate(e) {
|
|
1052
|
-
if (e.wasSetPreviously(gs) || yn(e,
|
|
1052
|
+
if (e.wasSetPreviously(gs) || yn(e, mi), this.state.props == null) {
|
|
1053
1053
|
this.internal.client != null && (this.internal.client?.close(), this.internal.client = null), yn(e, this.internal);
|
|
1054
1054
|
return;
|
|
1055
1055
|
}
|
|
@@ -1062,12 +1062,12 @@ const gs = "pluto-client-context", yn = (n, e) => n.set(gs, e), Ke = (n) => n.ge
|
|
|
1062
1062
|
__proto__: null,
|
|
1063
1063
|
Provider: Nn,
|
|
1064
1064
|
REGISTRY: ro,
|
|
1065
|
-
ZERO_CONTEXT_VALUE:
|
|
1065
|
+
ZERO_CONTEXT_VALUE: mi,
|
|
1066
1066
|
use: Ke
|
|
1067
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1067
|
+
}, Symbol.toStringTag, { value: "Module" })), yi = (n, e) => n.dataType.isVariable || n.dataType.equals($.UINT8) ? n : (e == null && n.dataType.equals($.TIMESTAMP) && (e = BigInt(n.data[0])), n.convert($.FLOAT32, e)), io = (n) => n.isVariable || n.equals($.UINT8) ? n : $.FLOAT32, vi = () => ({
|
|
1068
1068
|
purgedSeries: 0,
|
|
1069
1069
|
purgedBytes: Er.bytes(0)
|
|
1070
|
-
}),
|
|
1070
|
+
}), bi = {
|
|
1071
1071
|
instrumentation: on.NOOP,
|
|
1072
1072
|
staleEntryThreshold: S.seconds(20)
|
|
1073
1073
|
};
|
|
@@ -1075,14 +1075,14 @@ class ao {
|
|
|
1075
1075
|
data = [];
|
|
1076
1076
|
props;
|
|
1077
1077
|
constructor(e) {
|
|
1078
|
-
this.props = { ...
|
|
1078
|
+
this.props = { ...bi, ...e };
|
|
1079
1079
|
}
|
|
1080
1080
|
/**
|
|
1081
1081
|
* Writes the given series to the cache, merging written series with any
|
|
1082
1082
|
* existing series in the cache.
|
|
1083
1083
|
*/
|
|
1084
1084
|
write(e) {
|
|
1085
|
-
e.length !== 0 && (e.series.forEach((t) => this.writeOne(
|
|
1085
|
+
e.length !== 0 && (e.series.forEach((t) => this.writeOne(yi(t))), this.checkIntegrity(e));
|
|
1086
1086
|
}
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Executes a 'dirty' read of the cache, retrieving any series in the cache that overlap
|
|
@@ -1106,7 +1106,7 @@ class ao {
|
|
|
1106
1106
|
* @returns metrics about the garbage collection.
|
|
1107
1107
|
*/
|
|
1108
1108
|
gc() {
|
|
1109
|
-
const { staleEntryThreshold: e } = this.props, t =
|
|
1109
|
+
const { staleEntryThreshold: e } = this.props, t = vi(), s = this.data.filter((r) => {
|
|
1110
1110
|
const i = r.data.refCount > 0 || N.since(r.addedAt).lessThan(e);
|
|
1111
1111
|
return i || (t.purgedBytes = t.purgedBytes.add(r.data.byteCapacity)), i;
|
|
1112
1112
|
});
|
|
@@ -1220,7 +1220,7 @@ class fo {
|
|
|
1220
1220
|
const c = this.now();
|
|
1221
1221
|
this.curr.timeRange.end = c, s.flushed.push(this.curr), this.curr = this.allocate(t, e.alignment, c), s.allocated.push(this.curr);
|
|
1222
1222
|
}
|
|
1223
|
-
const r =
|
|
1223
|
+
const r = yi(e, this.curr.sampleOffset), i = this.curr.write(r);
|
|
1224
1224
|
if (i === e.length)
|
|
1225
1225
|
return this.updateAvgRate(e), s;
|
|
1226
1226
|
const a = this.now();
|
|
@@ -1301,7 +1301,7 @@ class go {
|
|
|
1301
1301
|
this.props = {
|
|
1302
1302
|
dynamicBufferSize: mo,
|
|
1303
1303
|
gcInterval: Mr.seconds(30),
|
|
1304
|
-
...
|
|
1304
|
+
...bi,
|
|
1305
1305
|
...e
|
|
1306
1306
|
}, this.gcInterval = setInterval(() => this.gc(), this.props.gcInterval.milliseconds);
|
|
1307
1307
|
}
|
|
@@ -1341,7 +1341,7 @@ class go {
|
|
|
1341
1341
|
instrumentation: { L: e }
|
|
1342
1342
|
} = this.props;
|
|
1343
1343
|
e.info("starting garbage collection");
|
|
1344
|
-
const t =
|
|
1344
|
+
const t = vi();
|
|
1345
1345
|
this.cache.forEach((s) => {
|
|
1346
1346
|
const r = s.gc();
|
|
1347
1347
|
t.purgedSeries += r.purgedSeries, t.purgedBytes = t.purgedBytes.add(r.purgedBytes);
|
|
@@ -1371,7 +1371,7 @@ class yo {
|
|
|
1371
1371
|
*/
|
|
1372
1372
|
debouncedRead;
|
|
1373
1373
|
/** A mutex for serializing access to requests. */
|
|
1374
|
-
mu =
|
|
1374
|
+
mu = ua.newMutex({
|
|
1375
1375
|
requests: /* @__PURE__ */ new Set(),
|
|
1376
1376
|
closed: !1
|
|
1377
1377
|
});
|
|
@@ -1383,7 +1383,7 @@ class yo {
|
|
|
1383
1383
|
overlapThreshold: e.overlapThreshold ?? S.milliseconds(5)
|
|
1384
1384
|
};
|
|
1385
1385
|
const t = this.args.batchDebounce.milliseconds;
|
|
1386
|
-
this.debouncedRead =
|
|
1386
|
+
this.debouncedRead = pa(() => void this.batchRead(), t);
|
|
1387
1387
|
}
|
|
1388
1388
|
/** Implements ReadClient. */
|
|
1389
1389
|
async read(e, t) {
|
|
@@ -1467,7 +1467,7 @@ class wo {
|
|
|
1467
1467
|
if (e <= 0)
|
|
1468
1468
|
throw new Error(`invalid weight ${e}: must be positive`);
|
|
1469
1469
|
return new Promise((s, r) => {
|
|
1470
|
-
const i = { resolve: s, reject: r, weight: e, priority: t }, a =
|
|
1470
|
+
const i = { resolve: s, reject: r, weight: e, priority: t }, a = wi(this._queue, (o) => t <= o.priority);
|
|
1471
1471
|
a === -1 && e <= this._value ? this._dispatchItem(i) : this._queue.splice(a + 1, 0, i);
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
@@ -1541,10 +1541,10 @@ class wo {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
function xo(n, e) {
|
|
1544
|
-
const t =
|
|
1544
|
+
const t = wi(n, (s) => e.priority <= s.priority);
|
|
1545
1545
|
n.splice(t + 1, 0, e);
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function wi(n, e) {
|
|
1548
1548
|
for (let t = n.length - 1; t >= 0; t--)
|
|
1549
1549
|
if (e(n[t]))
|
|
1550
1550
|
return t;
|
|
@@ -1729,7 +1729,7 @@ class ko {
|
|
|
1729
1729
|
/** Implements ChannelClient. */
|
|
1730
1730
|
async retrieveChannel(e) {
|
|
1731
1731
|
const t = await this.channelRetriever.retrieve([e]);
|
|
1732
|
-
if (t.length === 0) throw new
|
|
1732
|
+
if (t.length === 0) throw new ma(`channel ${e} not found`);
|
|
1733
1733
|
return t[0];
|
|
1734
1734
|
}
|
|
1735
1735
|
/** Implements ChannelClient */
|
|
@@ -1744,10 +1744,10 @@ class ko {
|
|
|
1744
1744
|
this.ins.L.info("closing client"), await this.streamer.close(), await this.reader.close(), this.cache.close();
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
|
-
const
|
|
1747
|
+
const xi = h.object({});
|
|
1748
1748
|
class lt extends ae {
|
|
1749
1749
|
static TYPE = "telem.Provider";
|
|
1750
|
-
static stateZ =
|
|
1750
|
+
static stateZ = xi;
|
|
1751
1751
|
schema = lt.stateZ;
|
|
1752
1752
|
prevCore = null;
|
|
1753
1753
|
client = null;
|
|
@@ -1758,8 +1758,8 @@ class lt extends ae {
|
|
|
1758
1758
|
if (this.client == null) throw new Error("no client to close");
|
|
1759
1759
|
await this.client.close();
|
|
1760
1760
|
}, "failed to close client"), this.client = s == null ? new Co() : new ko({ core: s, instrumentation: t.instrumentation });
|
|
1761
|
-
const a =
|
|
1762
|
-
|
|
1761
|
+
const a = ci(this.client), o = new ui(a);
|
|
1762
|
+
di(e, o);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
1765
|
const Po = {
|
|
@@ -1775,29 +1775,29 @@ const Po = {
|
|
|
1775
1775
|
ChannelData: Nt,
|
|
1776
1776
|
ColorGradient: Fe,
|
|
1777
1777
|
CompoundTelemFactory: ms,
|
|
1778
|
-
Context:
|
|
1778
|
+
Context: ui,
|
|
1779
1779
|
FixedColorSource: $t,
|
|
1780
1780
|
FixedNumber: Zt,
|
|
1781
1781
|
FixedString: Ut,
|
|
1782
1782
|
IterativeSeries: Bt,
|
|
1783
1783
|
Mean: Ue,
|
|
1784
|
-
MultiSourceTransformer:
|
|
1785
|
-
NoopFactory:
|
|
1784
|
+
MultiSourceTransformer: qr,
|
|
1785
|
+
NoopFactory: Nr,
|
|
1786
1786
|
PipelineFactory: ds,
|
|
1787
1787
|
REGISTRY: Po,
|
|
1788
|
-
RemoteFactory:
|
|
1788
|
+
RemoteFactory: Vr,
|
|
1789
1789
|
RollingAverage: qt,
|
|
1790
1790
|
ScaleNumber: je,
|
|
1791
1791
|
SeriesDownsampler: ot,
|
|
1792
1792
|
SetPoint: Be,
|
|
1793
1793
|
SinkPipeline: Yt,
|
|
1794
1794
|
SourcePipeline: _t,
|
|
1795
|
-
StaticFactory:
|
|
1795
|
+
StaticFactory: Xr,
|
|
1796
1796
|
StreamChannelData: It,
|
|
1797
1797
|
StreamChannelValue: At,
|
|
1798
1798
|
StringifyNumber: qe,
|
|
1799
|
-
TransformerFactory:
|
|
1800
|
-
UnarySinkTransformer:
|
|
1799
|
+
TransformerFactory: ei,
|
|
1800
|
+
UnarySinkTransformer: Fr,
|
|
1801
1801
|
UnarySourceTransformer: Ce,
|
|
1802
1802
|
WithinBounds: Ze,
|
|
1803
1803
|
booleanSinkSpecZ: hn,
|
|
@@ -1805,68 +1805,68 @@ const Po = {
|
|
|
1805
1805
|
booleanSourceSpecZ: ls,
|
|
1806
1806
|
booleanSourceTransformerSpecZ: Ma,
|
|
1807
1807
|
booleanStatus: Wa,
|
|
1808
|
-
booleanStatusProps:
|
|
1808
|
+
booleanStatusProps: si,
|
|
1809
1809
|
channelData: Aa,
|
|
1810
1810
|
colorGradient: Ga,
|
|
1811
|
-
colorGradientProps:
|
|
1811
|
+
colorGradientProps: ai,
|
|
1812
1812
|
colorSourceSpecZ: cs,
|
|
1813
1813
|
connectionZ: hs,
|
|
1814
|
-
createFactory:
|
|
1814
|
+
createFactory: ci,
|
|
1815
1815
|
downsampleMode: Ja,
|
|
1816
1816
|
downsampleModeProps: Qa,
|
|
1817
1817
|
downsampleModeZ: ps,
|
|
1818
1818
|
fixedArray: Ba,
|
|
1819
1819
|
fixedColor: qa,
|
|
1820
|
-
fixedColorSourcePropsZ:
|
|
1820
|
+
fixedColorSourcePropsZ: Jr,
|
|
1821
1821
|
fixedNumber: Ua,
|
|
1822
|
-
fixedNumberPropsZ:
|
|
1822
|
+
fixedNumberPropsZ: Kr,
|
|
1823
1823
|
fixedSeriesPropsZ: fs,
|
|
1824
1824
|
fixedString: $a,
|
|
1825
|
-
fixedStringPropsZ:
|
|
1825
|
+
fixedStringPropsZ: Qr,
|
|
1826
1826
|
iterativeArray: Za,
|
|
1827
|
-
iterativeSeriesPropsZ:
|
|
1827
|
+
iterativeSeriesPropsZ: Gr,
|
|
1828
1828
|
mean: za,
|
|
1829
1829
|
noopBooleanSinkSpec: ln,
|
|
1830
1830
|
noopBooleanSourceSpec: as,
|
|
1831
1831
|
noopColorSourceSpec: cn,
|
|
1832
|
-
noopNumericSinkSpec:
|
|
1833
|
-
noopNumericSourceSpec:
|
|
1834
|
-
noopSeriesSourceSpec:
|
|
1832
|
+
noopNumericSinkSpec: Lr,
|
|
1833
|
+
noopNumericSourceSpec: _r,
|
|
1834
|
+
noopSeriesSourceSpec: Ar,
|
|
1835
1835
|
noopStatusSourceSpec: os,
|
|
1836
|
-
noopStringSourceSpec:
|
|
1837
|
-
numberSinkSpecZ:
|
|
1838
|
-
numberSourceSpecZ:
|
|
1839
|
-
providerStateZ:
|
|
1836
|
+
noopStringSourceSpec: Yr,
|
|
1837
|
+
numberSinkSpecZ: Ur,
|
|
1838
|
+
numberSourceSpecZ: Zr,
|
|
1839
|
+
providerStateZ: xi,
|
|
1840
1840
|
rollingAverage: Xa,
|
|
1841
|
-
rollingAverageProps:
|
|
1841
|
+
rollingAverageProps: ii,
|
|
1842
1842
|
scaleNumber: Ka,
|
|
1843
|
-
scaleNumberProps:
|
|
1843
|
+
scaleNumberProps: oi,
|
|
1844
1844
|
seriesDownsampler: no,
|
|
1845
1845
|
seriesSourceSpecZ: Lt,
|
|
1846
|
-
setContext:
|
|
1846
|
+
setContext: di,
|
|
1847
1847
|
setpoint: ja,
|
|
1848
1848
|
sinkPipeline: Oa,
|
|
1849
|
-
sinkPipelinePropsZ:
|
|
1849
|
+
sinkPipelinePropsZ: Hr,
|
|
1850
1850
|
sinkSpecZ: un,
|
|
1851
|
-
sinkTransformerSpecZ:
|
|
1851
|
+
sinkTransformerSpecZ: Br,
|
|
1852
1852
|
sourcePipeline: Da,
|
|
1853
|
-
sourcePipelinePropsZ:
|
|
1853
|
+
sourcePipelinePropsZ: jr,
|
|
1854
1854
|
sourceSpecZ: ve,
|
|
1855
|
-
sourceTransformerSpecZ:
|
|
1855
|
+
sourceTransformerSpecZ: Ir,
|
|
1856
1856
|
specZ: yt,
|
|
1857
1857
|
statusSourceSpecZ: us,
|
|
1858
1858
|
streamChannelData: Na,
|
|
1859
1859
|
streamChannelValue: Ia,
|
|
1860
|
-
streamChannelValuePropsZ:
|
|
1861
|
-
stringSourceSpecZ:
|
|
1860
|
+
streamChannelValuePropsZ: zr,
|
|
1861
|
+
stringSourceSpecZ: $r,
|
|
1862
1862
|
stringifyNumber: Va,
|
|
1863
|
-
stringifyNumberProps:
|
|
1864
|
-
useChildContext:
|
|
1863
|
+
stringifyNumberProps: ri,
|
|
1864
|
+
useChildContext: fi,
|
|
1865
1865
|
useContext: pn,
|
|
1866
1866
|
useSink: bt,
|
|
1867
1867
|
useSource: ee,
|
|
1868
1868
|
withinBounds: Ha,
|
|
1869
|
-
withinBoundsProps:
|
|
1869
|
+
withinBoundsProps: ti
|
|
1870
1870
|
}, Symbol.toStringTag, { value: "Module" })), Ro = we.object({
|
|
1871
1871
|
request: we.string(),
|
|
1872
1872
|
bounds: we.record(we.string(), C.bounds)
|
|
@@ -1890,13 +1890,13 @@ class In extends q {
|
|
|
1890
1890
|
this.internal.getBounds = e.getBounds;
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
|
-
const
|
|
1893
|
+
const Si = h.object({
|
|
1894
1894
|
key: h.string(),
|
|
1895
1895
|
size: h.number(),
|
|
1896
1896
|
order: h.number(),
|
|
1897
1897
|
loc: se.outer
|
|
1898
1898
|
});
|
|
1899
|
-
h.record(h.string(),
|
|
1899
|
+
h.record(h.string(), Si);
|
|
1900
1900
|
const _e = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s) => s.order - t.order), Do = (n, e, t) => {
|
|
1901
1901
|
const s = e[n];
|
|
1902
1902
|
if (s == null) return f.ZERO;
|
|
@@ -1992,7 +1992,7 @@ function Zn(n, e, t) {
|
|
|
1992
1992
|
const s = e < n, r = s ? Bn(e, n, t) : Bn(n, e, t);
|
|
1993
1993
|
return (s ? -1 : 1) * (r < 0 ? 1 / -r : r);
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1995
|
+
function Ti(n, e) {
|
|
1996
1996
|
switch (arguments.length) {
|
|
1997
1997
|
case 0:
|
|
1998
1998
|
break;
|
|
@@ -2008,7 +2008,7 @@ function Ei(n, e) {
|
|
|
2008
2008
|
function vs(n, e, t) {
|
|
2009
2009
|
n.prototype = e.prototype = t, t.constructor = n;
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function Ei(n, e) {
|
|
2012
2012
|
var t = Object.create(n.prototype);
|
|
2013
2013
|
for (var s in e) t[s] = e[s];
|
|
2014
2014
|
return t;
|
|
@@ -2187,7 +2187,7 @@ function Vo() {
|
|
|
2187
2187
|
return this.rgb().formatHex8();
|
|
2188
2188
|
}
|
|
2189
2189
|
function Xo() {
|
|
2190
|
-
return
|
|
2190
|
+
return Ci(this).formatHsl();
|
|
2191
2191
|
}
|
|
2192
2192
|
function Ys() {
|
|
2193
2193
|
return this.rgb().formatRgb();
|
|
@@ -2211,7 +2211,7 @@ function Un(n, e, t, s) {
|
|
|
2211
2211
|
function H(n, e, t, s) {
|
|
2212
2212
|
this.r = +n, this.g = +e, this.b = +t, this.opacity = +s;
|
|
2213
2213
|
}
|
|
2214
|
-
vs(H, Un,
|
|
2214
|
+
vs(H, Un, Ei(wt, {
|
|
2215
2215
|
brighter(n) {
|
|
2216
2216
|
return n = n == null ? jt : Math.pow(jt, n), new H(this.r * n, this.g * n, this.b * n, this.opacity);
|
|
2217
2217
|
},
|
|
@@ -2256,7 +2256,7 @@ function xe(n) {
|
|
|
2256
2256
|
function Bs(n, e, t, s) {
|
|
2257
2257
|
return s <= 0 ? n = e = t = NaN : t <= 0 || t >= 1 ? n = e = NaN : e <= 0 && (n = NaN), new ne(n, e, t, s);
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function Ci(n) {
|
|
2260
2260
|
if (n instanceof ne) return new ne(n.h, n.s, n.l, n.opacity);
|
|
2261
2261
|
if (n instanceof wt || (n = ht(n)), !n) return new ne();
|
|
2262
2262
|
if (n instanceof ne) return n;
|
|
@@ -2265,12 +2265,12 @@ function ki(n) {
|
|
|
2265
2265
|
return o ? (e === i ? a = (t - s) / o + (t < s) * 6 : t === i ? a = (s - e) / o + 2 : a = (e - t) / o + 4, o /= c < 0.5 ? i + r : 2 - i - r, a *= 60) : o = c > 0 && c < 1 ? 0 : a, new ne(a, o, c, n.opacity);
|
|
2266
2266
|
}
|
|
2267
2267
|
function Qo(n, e, t, s) {
|
|
2268
|
-
return arguments.length === 1 ?
|
|
2268
|
+
return arguments.length === 1 ? Ci(n) : new ne(n, e, t, s ?? 1);
|
|
2269
2269
|
}
|
|
2270
2270
|
function ne(n, e, t, s) {
|
|
2271
2271
|
this.h = +n, this.s = +e, this.l = +t, this.opacity = +s;
|
|
2272
2272
|
}
|
|
2273
|
-
vs(ne, Qo,
|
|
2273
|
+
vs(ne, Qo, Ei(wt, {
|
|
2274
2274
|
brighter(n) {
|
|
2275
2275
|
return n = n == null ? jt : Math.pow(jt, n), new ne(this.h, this.s, this.l * n, this.opacity);
|
|
2276
2276
|
},
|
|
@@ -2318,18 +2318,18 @@ function el(n, e, t) {
|
|
|
2318
2318
|
};
|
|
2319
2319
|
}
|
|
2320
2320
|
function tl(n) {
|
|
2321
|
-
return (n = +n) == 1 ?
|
|
2321
|
+
return (n = +n) == 1 ? ki : function(e, t) {
|
|
2322
2322
|
return t - e ? el(e, t, n) : bs(isNaN(e) ? t : e);
|
|
2323
2323
|
};
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function ki(n, e) {
|
|
2326
2326
|
var t = e - n;
|
|
2327
2327
|
return t ? Jo(n, t) : bs(isNaN(n) ? e : n);
|
|
2328
2328
|
}
|
|
2329
2329
|
const Us = function n(e) {
|
|
2330
2330
|
var t = tl(e);
|
|
2331
2331
|
function s(r, i) {
|
|
2332
|
-
var a = t((r = Un(r)).r, (i = Un(i)).r), o = t(r.g, i.g), c = t(r.b, i.b), l =
|
|
2332
|
+
var a = t((r = Un(r)).r, (i = Un(i)).r), o = t(r.g, i.g), c = t(r.b, i.b), l = ki(r.opacity, i.opacity);
|
|
2333
2333
|
return function(u) {
|
|
2334
2334
|
return r.r = a(u), r.g = o(u), r.b = c(u), r.opacity = l(u), r + "";
|
|
2335
2335
|
};
|
|
@@ -2444,7 +2444,7 @@ function ml(n, e, t) {
|
|
|
2444
2444
|
return i[c](r[c](o));
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function Pi(n, e) {
|
|
2448
2448
|
return e.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown());
|
|
2449
2449
|
}
|
|
2450
2450
|
function gl() {
|
|
@@ -2474,7 +2474,7 @@ function gl() {
|
|
|
2474
2474
|
return s = m, r = v, u();
|
|
2475
2475
|
};
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function Ri() {
|
|
2478
2478
|
return gl()(Ye, Ye);
|
|
2479
2479
|
}
|
|
2480
2480
|
function yl(n) {
|
|
@@ -2545,11 +2545,11 @@ function xl(n) {
|
|
|
2545
2545
|
}
|
|
2546
2546
|
return s > 0 ? n.slice(0, s) + n.slice(r + 1) : n;
|
|
2547
2547
|
}
|
|
2548
|
-
var
|
|
2548
|
+
var Mi;
|
|
2549
2549
|
function Sl(n, e) {
|
|
2550
2550
|
var t = Wt(n, e);
|
|
2551
2551
|
if (!t) return n + "";
|
|
2552
|
-
var s = t[0], r = t[1], i = r - (
|
|
2552
|
+
var s = t[0], r = t[1], i = r - (Mi = Math.max(-8, Math.min(8, Math.floor(r / 3))) * 3) + 1, a = s.length;
|
|
2553
2553
|
return i === a ? s : i > a ? s + new Array(i - a + 1).join("0") : i > 0 ? s.slice(0, i) + "." + s.slice(i) : "0." + new Array(1 - i).join("0") + Wt(n, Math.max(0, e + i - 1))[0];
|
|
2554
2554
|
}
|
|
2555
2555
|
function qs(n, e) {
|
|
@@ -2592,7 +2592,7 @@ function Tl(n) {
|
|
|
2592
2592
|
else {
|
|
2593
2593
|
P = +P;
|
|
2594
2594
|
var De = P < 0 || 1 / P < 0;
|
|
2595
|
-
if (P = isNaN(P) ? c : pe(Math.abs(P), M), Y && (P = xl(P)), De && +P == 0 && T !== "+" && (De = !1), oe = (De ? T === "(" ? T : o : T === "-" || T === "(" ? "" : T) + oe, F = (I === "s" ? zs[8 +
|
|
2595
|
+
if (P = isNaN(P) ? c : pe(Math.abs(P), M), Y && (P = xl(P)), De && +P == 0 && T !== "+" && (De = !1), oe = (De ? T === "(" ? T : o : T === "-" || T === "(" ? "" : T) + oe, F = (I === "s" ? zs[8 + Mi / 3] : "") + F + (De && T === "(" ? ")" : ""), et) {
|
|
2596
2596
|
for (me = -1, Tt = P.length; ++me < Tt; )
|
|
2597
2597
|
if (Me = P.charCodeAt(me), 48 > Me || Me > 57) {
|
|
2598
2598
|
F = (Me === 46 ? r + P.slice(me + 1) : P.slice(me)) + F, P = P.slice(0, me);
|
|
@@ -2633,14 +2633,14 @@ function Tl(n) {
|
|
|
2633
2633
|
formatPrefix: u
|
|
2634
2634
|
};
|
|
2635
2635
|
}
|
|
2636
|
-
var kt,
|
|
2636
|
+
var kt, Di, Oi;
|
|
2637
2637
|
El({
|
|
2638
2638
|
thousands: ",",
|
|
2639
2639
|
grouping: [3],
|
|
2640
2640
|
currency: ["$", ""]
|
|
2641
2641
|
});
|
|
2642
2642
|
function El(n) {
|
|
2643
|
-
return kt = Tl(n),
|
|
2643
|
+
return kt = Tl(n), Di = kt.format, Oi = kt.formatPrefix, kt;
|
|
2644
2644
|
}
|
|
2645
2645
|
function Cl(n) {
|
|
2646
2646
|
return Math.max(0, -He(Math.abs(n)));
|
|
@@ -2656,7 +2656,7 @@ function Rl(n, e, t, s) {
|
|
|
2656
2656
|
switch (s = Vt(s ?? ",f"), s.type) {
|
|
2657
2657
|
case "s": {
|
|
2658
2658
|
var a = Math.max(Math.abs(n), Math.abs(e));
|
|
2659
|
-
return s.precision == null && !isNaN(i = kl(r, a)) && (s.precision = i),
|
|
2659
|
+
return s.precision == null && !isNaN(i = kl(r, a)) && (s.precision = i), Oi(s, a);
|
|
2660
2660
|
}
|
|
2661
2661
|
case "":
|
|
2662
2662
|
case "e":
|
|
@@ -2672,7 +2672,7 @@ function Rl(n, e, t, s) {
|
|
|
2672
2672
|
break;
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
2675
|
-
return
|
|
2675
|
+
return Di(s);
|
|
2676
2676
|
}
|
|
2677
2677
|
function Ml(n) {
|
|
2678
2678
|
var e = n.domain;
|
|
@@ -2699,11 +2699,11 @@ function Ml(n) {
|
|
|
2699
2699
|
return n;
|
|
2700
2700
|
}, n;
|
|
2701
2701
|
}
|
|
2702
|
-
function
|
|
2703
|
-
var n =
|
|
2702
|
+
function Li() {
|
|
2703
|
+
var n = Ri();
|
|
2704
2704
|
return n.copy = function() {
|
|
2705
|
-
return
|
|
2706
|
-
},
|
|
2705
|
+
return Pi(n, Li());
|
|
2706
|
+
}, Ti.apply(n, arguments), Ml(n);
|
|
2707
2707
|
}
|
|
2708
2708
|
function Dl(n, e) {
|
|
2709
2709
|
n = n.slice();
|
|
@@ -2819,8 +2819,8 @@ function Pe(n) {
|
|
|
2819
2819
|
e.setUTCDate(e.getUTCDate() + t * 7);
|
|
2820
2820
|
}, (e, t) => (t - e) / Ss);
|
|
2821
2821
|
}
|
|
2822
|
-
const
|
|
2823
|
-
|
|
2822
|
+
const _i = Pe(0), Kt = Pe(1), Bl = Pe(2), Zl = Pe(3), We = Pe(4), Ul = Pe(5), $l = Pe(6);
|
|
2823
|
+
_i.range;
|
|
2824
2824
|
Kt.range;
|
|
2825
2825
|
Bl.range;
|
|
2826
2826
|
Zl.range;
|
|
@@ -2920,7 +2920,7 @@ function zl(n) {
|
|
|
2920
2920
|
a: De,
|
|
2921
2921
|
A: Oe,
|
|
2922
2922
|
b: te,
|
|
2923
|
-
B:
|
|
2923
|
+
B: Qi,
|
|
2924
2924
|
c: null,
|
|
2925
2925
|
d: Js,
|
|
2926
2926
|
e: Js,
|
|
@@ -2930,11 +2930,11 @@ function zl(n) {
|
|
|
2930
2930
|
H: dc,
|
|
2931
2931
|
I: fc,
|
|
2932
2932
|
j: pc,
|
|
2933
|
-
L:
|
|
2933
|
+
L: Yi,
|
|
2934
2934
|
m: gc,
|
|
2935
2935
|
M: yc,
|
|
2936
|
-
p:
|
|
2937
|
-
q:
|
|
2936
|
+
p: Ji,
|
|
2937
|
+
q: ea,
|
|
2938
2938
|
Q: nr,
|
|
2939
2939
|
s: sr,
|
|
2940
2940
|
S: vc,
|
|
@@ -2950,10 +2950,10 @@ function zl(n) {
|
|
|
2950
2950
|
Z: Rc,
|
|
2951
2951
|
"%": tr
|
|
2952
2952
|
}, Y = {
|
|
2953
|
-
a:
|
|
2954
|
-
A:
|
|
2955
|
-
b:
|
|
2956
|
-
B:
|
|
2953
|
+
a: ta,
|
|
2954
|
+
A: na,
|
|
2955
|
+
b: sa,
|
|
2956
|
+
B: ra,
|
|
2957
2957
|
c: null,
|
|
2958
2958
|
d: er,
|
|
2959
2959
|
e: er,
|
|
@@ -2963,11 +2963,11 @@ function zl(n) {
|
|
|
2963
2963
|
H: Mc,
|
|
2964
2964
|
I: Dc,
|
|
2965
2965
|
j: Oc,
|
|
2966
|
-
L:
|
|
2966
|
+
L: Ni,
|
|
2967
2967
|
m: _c,
|
|
2968
2968
|
M: Yc,
|
|
2969
|
-
p:
|
|
2970
|
-
q:
|
|
2969
|
+
p: ia,
|
|
2970
|
+
q: aa,
|
|
2971
2971
|
Q: nr,
|
|
2972
2972
|
s: sr,
|
|
2973
2973
|
S: Ac,
|
|
@@ -3086,31 +3086,31 @@ function zl(n) {
|
|
|
3086
3086
|
function te(b) {
|
|
3087
3087
|
return c[b.getMonth()];
|
|
3088
3088
|
}
|
|
3089
|
-
function
|
|
3089
|
+
function Qi(b) {
|
|
3090
3090
|
return o[b.getMonth()];
|
|
3091
3091
|
}
|
|
3092
|
-
function
|
|
3092
|
+
function Ji(b) {
|
|
3093
3093
|
return r[+(b.getHours() >= 12)];
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3095
|
+
function ea(b) {
|
|
3096
3096
|
return 1 + ~~(b.getMonth() / 3);
|
|
3097
3097
|
}
|
|
3098
|
-
function
|
|
3098
|
+
function ta(b) {
|
|
3099
3099
|
return a[b.getUTCDay()];
|
|
3100
3100
|
}
|
|
3101
|
-
function
|
|
3101
|
+
function na(b) {
|
|
3102
3102
|
return i[b.getUTCDay()];
|
|
3103
3103
|
}
|
|
3104
|
-
function
|
|
3104
|
+
function sa(b) {
|
|
3105
3105
|
return c[b.getUTCMonth()];
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3107
|
+
function ra(b) {
|
|
3108
3108
|
return o[b.getUTCMonth()];
|
|
3109
3109
|
}
|
|
3110
|
-
function
|
|
3110
|
+
function ia(b) {
|
|
3111
3111
|
return r[+(b.getUTCHours() >= 12)];
|
|
3112
3112
|
}
|
|
3113
|
-
function
|
|
3113
|
+
function aa(b) {
|
|
3114
3114
|
return 1 + ~~(b.getUTCMonth() / 3);
|
|
3115
3115
|
}
|
|
3116
3116
|
return {
|
|
@@ -3246,11 +3246,11 @@ function fc(n, e) {
|
|
|
3246
3246
|
function pc(n, e) {
|
|
3247
3247
|
return O(1 + xt.count(de(n), n), e, 3);
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Yi(n, e) {
|
|
3250
3250
|
return O(n.getMilliseconds(), e, 3);
|
|
3251
3251
|
}
|
|
3252
3252
|
function mc(n, e) {
|
|
3253
|
-
return
|
|
3253
|
+
return Yi(n, e) + "000";
|
|
3254
3254
|
}
|
|
3255
3255
|
function gc(n, e) {
|
|
3256
3256
|
return O(n.getMonth() + 1, e, 2);
|
|
@@ -3268,12 +3268,12 @@ function bc(n) {
|
|
|
3268
3268
|
function wc(n, e) {
|
|
3269
3269
|
return O(mn.count(de(n) - 1, n), e, 2);
|
|
3270
3270
|
}
|
|
3271
|
-
function
|
|
3271
|
+
function Ai(n) {
|
|
3272
3272
|
var e = n.getDay();
|
|
3273
3273
|
return e >= 4 || e === 0 ? ze(n) : ze.ceil(n);
|
|
3274
3274
|
}
|
|
3275
3275
|
function xc(n, e) {
|
|
3276
|
-
return n =
|
|
3276
|
+
return n = Ai(n), O(ze.count(de(n), n) + (de(n).getDay() === 4), e, 2);
|
|
3277
3277
|
}
|
|
3278
3278
|
function Sc(n) {
|
|
3279
3279
|
return n.getDay();
|
|
@@ -3285,7 +3285,7 @@ function Ec(n, e) {
|
|
|
3285
3285
|
return O(n.getFullYear() % 100, e, 2);
|
|
3286
3286
|
}
|
|
3287
3287
|
function Cc(n, e) {
|
|
3288
|
-
return n =
|
|
3288
|
+
return n = Ai(n), O(n.getFullYear() % 100, e, 2);
|
|
3289
3289
|
}
|
|
3290
3290
|
function kc(n, e) {
|
|
3291
3291
|
return O(n.getFullYear() % 1e4, e, 4);
|
|
@@ -3310,11 +3310,11 @@ function Dc(n, e) {
|
|
|
3310
3310
|
function Oc(n, e) {
|
|
3311
3311
|
return O(1 + Cs.count(Te(n), n), e, 3);
|
|
3312
3312
|
}
|
|
3313
|
-
function
|
|
3313
|
+
function Ni(n, e) {
|
|
3314
3314
|
return O(n.getUTCMilliseconds(), e, 3);
|
|
3315
3315
|
}
|
|
3316
3316
|
function Lc(n, e) {
|
|
3317
|
-
return
|
|
3317
|
+
return Ni(n, e) + "000";
|
|
3318
3318
|
}
|
|
3319
3319
|
function _c(n, e) {
|
|
3320
3320
|
return O(n.getUTCMonth() + 1, e, 2);
|
|
@@ -3330,14 +3330,14 @@ function Nc(n) {
|
|
|
3330
3330
|
return e === 0 ? 7 : e;
|
|
3331
3331
|
}
|
|
3332
3332
|
function Ic(n, e) {
|
|
3333
|
-
return O(
|
|
3333
|
+
return O(_i.count(Te(n) - 1, n), e, 2);
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function Ii(n) {
|
|
3336
3336
|
var e = n.getUTCDay();
|
|
3337
3337
|
return e >= 4 || e === 0 ? We(n) : We.ceil(n);
|
|
3338
3338
|
}
|
|
3339
3339
|
function Bc(n, e) {
|
|
3340
|
-
return n =
|
|
3340
|
+
return n = Ii(n), O(We.count(Te(n), n) + (Te(n).getUTCDay() === 4), e, 2);
|
|
3341
3341
|
}
|
|
3342
3342
|
function Zc(n) {
|
|
3343
3343
|
return n.getUTCDay();
|
|
@@ -3349,7 +3349,7 @@ function $c(n, e) {
|
|
|
3349
3349
|
return O(n.getUTCFullYear() % 100, e, 2);
|
|
3350
3350
|
}
|
|
3351
3351
|
function qc(n, e) {
|
|
3352
|
-
return n =
|
|
3352
|
+
return n = Ii(n), O(n.getUTCFullYear() % 100, e, 2);
|
|
3353
3353
|
}
|
|
3354
3354
|
function Fc(n, e) {
|
|
3355
3355
|
return O(n.getUTCFullYear() % 1e4, e, 4);
|
|
@@ -3370,7 +3370,7 @@ function nr(n) {
|
|
|
3370
3370
|
function sr(n) {
|
|
3371
3371
|
return Math.floor(+n / 1e3);
|
|
3372
3372
|
}
|
|
3373
|
-
var Le,
|
|
3373
|
+
var Le, Bi;
|
|
3374
3374
|
zc({
|
|
3375
3375
|
dateTime: "%x, %X",
|
|
3376
3376
|
date: "%-m/%-d/%Y",
|
|
@@ -3382,7 +3382,7 @@ zc({
|
|
|
3382
3382
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
3383
3383
|
});
|
|
3384
3384
|
function zc(n) {
|
|
3385
|
-
return Le = zl(n),
|
|
3385
|
+
return Le = zl(n), Bi = Le.format, Le.parse, Le.utcFormat, Le.utcParse, Le;
|
|
3386
3386
|
}
|
|
3387
3387
|
function Wc(n) {
|
|
3388
3388
|
return new Date(n);
|
|
@@ -3390,8 +3390,8 @@ function Wc(n) {
|
|
|
3390
3390
|
function Vc(n) {
|
|
3391
3391
|
return n instanceof Date ? +n : +/* @__PURE__ */ new Date(+n);
|
|
3392
3392
|
}
|
|
3393
|
-
function
|
|
3394
|
-
var u =
|
|
3393
|
+
function Zi(n, e, t, s, r, i, a, o, c, l) {
|
|
3394
|
+
var u = Ri(), d = u.invert, m = u.domain, v = l(".%L"), T = l(":%S"), w = l("%I:%M"), x = l("%I %p"), R = l("%a %d"), L = l("%b %d"), M = l("%B"), Y = l("%Y");
|
|
3395
3395
|
function I(E) {
|
|
3396
3396
|
return (c(E) < E ? v : o(E) < E ? T : a(E) < E ? w : i(E) < E ? x : s(E) < E ? r(E) < E ? R : L : t(E) < E ? M : Y)(E);
|
|
3397
3397
|
}
|
|
@@ -3408,11 +3408,11 @@ function Ui(n, e, t, s, r, i, a, o, c, l) {
|
|
|
3408
3408
|
var A = m();
|
|
3409
3409
|
return (!E || typeof E.range != "function") && (E = e(A[0], A[A.length - 1], E ?? 10)), E ? m(Dl(A, E)) : u;
|
|
3410
3410
|
}, u.copy = function() {
|
|
3411
|
-
return
|
|
3411
|
+
return Pi(u, Zi(n, e, t, s, r, i, a, o, c, l));
|
|
3412
3412
|
}, u;
|
|
3413
3413
|
}
|
|
3414
3414
|
function Xc() {
|
|
3415
|
-
return
|
|
3415
|
+
return Ti.apply(Zi(jl, Hl, de, ks, mn, xt, Es, Ts, Ae, Bi).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
3416
3416
|
}
|
|
3417
3417
|
const rr = [
|
|
3418
3418
|
S.NANOSECOND,
|
|
@@ -3541,11 +3541,11 @@ class Gc {
|
|
|
3541
3541
|
return this._span.lessThan(S.microseconds(50)) ? `${e.remainder(S.MILLISECOND).microseconds.toString()}µs` : `${e.remainder(S.SECOND).milliseconds.toString()}ms`;
|
|
3542
3542
|
}
|
|
3543
3543
|
}
|
|
3544
|
-
const Kc = () => new Gc(),
|
|
3544
|
+
const Kc = () => new Gc(), Ui = h.enum(["linear", "time"]), $i = h.object({
|
|
3545
3545
|
tickSpacing: h.number().default(75),
|
|
3546
|
-
type:
|
|
3546
|
+
type: Ui.optional().default("linear")
|
|
3547
3547
|
}), ir = (n) => {
|
|
3548
|
-
const e =
|
|
3548
|
+
const e = $i.parse(n);
|
|
3549
3549
|
return eu[e.type](e);
|
|
3550
3550
|
};
|
|
3551
3551
|
class Qc {
|
|
@@ -3603,7 +3603,7 @@ class Jc {
|
|
|
3603
3603
|
currTicks;
|
|
3604
3604
|
d3Scale;
|
|
3605
3605
|
constructor(e) {
|
|
3606
|
-
this.props = e, this.prevDomain = C.construct(0, 0), this.prevScaleSize = 0, this.currTicks = [], this.d3Scale =
|
|
3606
|
+
this.props = e, this.prevDomain = C.construct(0, 0), this.prevScaleSize = 0, this.currTicks = [], this.d3Scale = Li();
|
|
3607
3607
|
}
|
|
3608
3608
|
create({ decimalToDataScale: e, size: t }) {
|
|
3609
3609
|
const s = { lower: e.pos(0), upper: e.pos(1) };
|
|
@@ -3626,9 +3626,9 @@ const Fn = (n, e) => {
|
|
|
3626
3626
|
}, eu = {
|
|
3627
3627
|
linear: (n) => new Jc(n),
|
|
3628
3628
|
time: (n) => new Qc(n)
|
|
3629
|
-
},
|
|
3629
|
+
}, qi = $i.extend({
|
|
3630
3630
|
color: y.colorZ,
|
|
3631
|
-
type:
|
|
3631
|
+
type: Ui.optional().default("linear"),
|
|
3632
3632
|
font: h.string(),
|
|
3633
3633
|
showGrid: h.boolean().optional().default(!0),
|
|
3634
3634
|
location: se.outer,
|
|
@@ -3647,7 +3647,7 @@ class Qe {
|
|
|
3647
3647
|
this.renderCtx = e, this.state = t, this.tickFactory = ir(this.state);
|
|
3648
3648
|
}
|
|
3649
3649
|
setState(e) {
|
|
3650
|
-
this.state =
|
|
3650
|
+
this.state = ga(qi, e), this.tickFactory = ir(e);
|
|
3651
3651
|
}
|
|
3652
3652
|
drawLine(e, t) {
|
|
3653
3653
|
const { lower2d: s } = this.renderCtx;
|
|
@@ -3763,7 +3763,7 @@ class au extends Qe {
|
|
|
3763
3763
|
]), { size: c.width + J + dt };
|
|
3764
3764
|
}
|
|
3765
3765
|
}
|
|
3766
|
-
const gn =
|
|
3766
|
+
const gn = qi.extend({
|
|
3767
3767
|
axisKey: h.string().optional(),
|
|
3768
3768
|
bounds: C.bounds.optional(),
|
|
3769
3769
|
autoBounds: h.object({
|
|
@@ -3784,15 +3784,15 @@ const gn = Fi.extend({
|
|
|
3784
3784
|
), uu = C.DECIMAL, ar = N.now(), hu = {
|
|
3785
3785
|
lower: Number(ar.valueOf()),
|
|
3786
3786
|
upper: Number(ar.add(S.HOUR).valueOf())
|
|
3787
|
-
},
|
|
3787
|
+
}, Fi = (n) => n === "linear" ? uu : hu, du = (n, e = 0.1, t) => {
|
|
3788
3788
|
const s = C.max(n.filter(C.isFinite));
|
|
3789
|
-
if (!C.isFinite(s)) return
|
|
3789
|
+
if (!C.isFinite(s)) return Fi(t);
|
|
3790
3790
|
const { lower: r, upper: i } = s;
|
|
3791
3791
|
if (i === r) return { lower: r - 1, upper: i + 1 };
|
|
3792
3792
|
const a = (i - r) * e;
|
|
3793
3793
|
return { lower: r - a, upper: i + a };
|
|
3794
3794
|
}, fu = 0.01, pu = 0.1;
|
|
3795
|
-
class
|
|
3795
|
+
class ji extends ae {
|
|
3796
3796
|
afterUpdate(e) {
|
|
3797
3797
|
const { internal: t } = this, { location: s, autoBoundUpdateInterval: r } = this.state;
|
|
3798
3798
|
t.render = V.use(e);
|
|
@@ -3802,7 +3802,7 @@ class Hi extends ae {
|
|
|
3802
3802
|
font: it(i, { level: "small", code: !0 }),
|
|
3803
3803
|
gridColor: i.colors.gray.l1,
|
|
3804
3804
|
...this.state
|
|
3805
|
-
}), ge(e, "layout"), t.updateBounds ??=
|
|
3805
|
+
}), ge(e, "layout"), t.updateBounds ??= ya(
|
|
3806
3806
|
(o) => this.setState((c) => ({ ...c, bounds: o })),
|
|
3807
3807
|
r.milliseconds
|
|
3808
3808
|
);
|
|
@@ -3835,7 +3835,7 @@ class Hi extends ae {
|
|
|
3835
3835
|
const l = t();
|
|
3836
3836
|
a = du(l, this.state.autoBoundPadding, this.state.type);
|
|
3837
3837
|
} catch (l) {
|
|
3838
|
-
a =
|
|
3838
|
+
a = Fi(this.state.type), o = l;
|
|
3839
3839
|
}
|
|
3840
3840
|
const c = i(a);
|
|
3841
3841
|
return this.internal.boundSnapshot = c, (this.state.bounds == null || s && this.state.bounds.lower !== c.lower || r && this.state.bounds.upper !== c.upper) && this.internal.updateBounds?.(c), [c, o];
|
|
@@ -3911,7 +3911,7 @@ void main(void) {
|
|
|
3911
3911
|
}), bu = (n, e, t) => n === -1 || e === -1 || n >= t.series.length ? NaN : Number(t.series[n].at(e)), wu = S.milliseconds(2);
|
|
3912
3912
|
f.NAN, f.NAN, y.ZERO, C.ZERO;
|
|
3913
3913
|
const xu = (n, e) => e.equals($.UINT8) ? n.UNSIGNED_BYTE : n.FLOAT;
|
|
3914
|
-
class lr extends
|
|
3914
|
+
class lr extends va {
|
|
3915
3915
|
translationBufferCache = /* @__PURE__ */ new Map();
|
|
3916
3916
|
constructor(e, t, s) {
|
|
3917
3917
|
super(e, t, s), this.translationBufferCache = /* @__PURE__ */ new Map();
|
|
@@ -4289,7 +4289,7 @@ class Je {
|
|
|
4289
4289
|
a != null && (d = this.canvas.scissor(p.construct(t, a, 1e3))), this.canvas.fillText(e, t.x, t.y), d?.();
|
|
4290
4290
|
}
|
|
4291
4291
|
}
|
|
4292
|
-
const
|
|
4292
|
+
const Hi = h.object({
|
|
4293
4293
|
position: h.number().optional(),
|
|
4294
4294
|
pixelPosition: h.number().optional(),
|
|
4295
4295
|
dragging: h.boolean(),
|
|
@@ -4299,7 +4299,7 @@ const zi = h.object({
|
|
|
4299
4299
|
}), Ou = 3;
|
|
4300
4300
|
class Qt extends q {
|
|
4301
4301
|
static TYPE = "Rule";
|
|
4302
|
-
schema =
|
|
4302
|
+
schema = Hi;
|
|
4303
4303
|
lastUpdateRef = null;
|
|
4304
4304
|
afterUpdate(e) {
|
|
4305
4305
|
this.internal.renderCtx = V.use(e);
|
|
@@ -4355,11 +4355,11 @@ const Lu = {
|
|
|
4355
4355
|
__proto__: null,
|
|
4356
4356
|
REGISTRY: Lu,
|
|
4357
4357
|
Rule: Qt,
|
|
4358
|
-
ruleStateZ:
|
|
4358
|
+
ruleStateZ: Hi
|
|
4359
4359
|
}, Symbol.toStringTag, { value: "Module" })), Fh = gn.extend({
|
|
4360
4360
|
location: se.x.optional().default("left")
|
|
4361
4361
|
}), cr = 2, _u = (n) => p.signedWidth(n) < cr || p.signedHeight(n) < cr;
|
|
4362
|
-
class Hn extends
|
|
4362
|
+
class Hn extends ji {
|
|
4363
4363
|
static TYPE = "YAxis";
|
|
4364
4364
|
schema = gn;
|
|
4365
4365
|
xBounds() {
|
|
@@ -4634,7 +4634,7 @@ class pr extends ae {
|
|
|
4634
4634
|
const { internal: t } = this;
|
|
4635
4635
|
t.instrumentation = gt(e), t.addStatus = Dr(e), t.runAsync = ue(e), (t.prevTrigger == null || Math.abs(this.state.acquireTrigger - t.prevTrigger) > 1) && (t.prevTrigger = this.state.acquireTrigger);
|
|
4636
4636
|
const s = Ke(e), r = Jt.use(e);
|
|
4637
|
-
t.stateProv = r, t.telemCtx =
|
|
4637
|
+
t.stateProv = r, t.telemCtx = fi(e, this, t.telemCtx), t.client = s, t.runAsync(async () => {
|
|
4638
4638
|
t.client == null && await this.release(), this.state.acquireTrigger > t.prevTrigger ? await this.acquire() : this.state.acquireTrigger < t.prevTrigger && await this.release();
|
|
4639
4639
|
}, "failed to acquire control");
|
|
4640
4640
|
}
|
|
@@ -4758,7 +4758,7 @@ class zn extends fn {
|
|
|
4758
4758
|
set(...e) {
|
|
4759
4759
|
this.runAsync(async () => {
|
|
4760
4760
|
const { client: t } = this.controller.internal;
|
|
4761
|
-
if (t == null) throw new
|
|
4761
|
+
if (t == null) throw new ba("No cluster connected");
|
|
4762
4762
|
if (this.props.channel === 0)
|
|
4763
4763
|
throw new Ge("No command channel specified for actuator");
|
|
4764
4764
|
const s = await t.channels.retrieve(this.props.channel), r = { [s.key]: e };
|
|
@@ -4952,7 +4952,7 @@ class yr extends q {
|
|
|
4952
4952
|
this.internal.sink.cleanup?.();
|
|
4953
4953
|
}
|
|
4954
4954
|
}
|
|
4955
|
-
const Qh = { [yr.TYPE]: yr },
|
|
4955
|
+
const Qh = { [yr.TYPE]: yr }, zi = h.object({
|
|
4956
4956
|
dpr: h.number(),
|
|
4957
4957
|
region: p.box,
|
|
4958
4958
|
bootstrap: h.boolean().optional().default(!1),
|
|
@@ -4962,11 +4962,11 @@ const Qh = { [yr.TYPE]: yr }, Wi = h.object({
|
|
|
4962
4962
|
glCanvas: h.any().optional(),
|
|
4963
4963
|
upper2dCanvas: h.any().optional(),
|
|
4964
4964
|
lower2dCanvas: h.any().optional(),
|
|
4965
|
-
os:
|
|
4965
|
+
os: ha.osZ
|
|
4966
4966
|
});
|
|
4967
4967
|
class Xn extends ae {
|
|
4968
4968
|
static TYPE = "Canvas";
|
|
4969
|
-
schema =
|
|
4969
|
+
schema = zi;
|
|
4970
4970
|
renderCtx = null;
|
|
4971
4971
|
afterUpdate(e) {
|
|
4972
4972
|
if (this.renderCtx == null) {
|
|
@@ -5000,8 +5000,8 @@ const nh = {
|
|
|
5000
5000
|
__proto__: null,
|
|
5001
5001
|
Canvas: Xn,
|
|
5002
5002
|
REGISTRY: nh,
|
|
5003
|
-
canvasStateZ:
|
|
5004
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5003
|
+
canvasStateZ: zi
|
|
5004
|
+
}, Symbol.toStringTag, { value: "Module" })), Wi = h.object({
|
|
5005
5005
|
position: f.xy,
|
|
5006
5006
|
zoom: h.number(),
|
|
5007
5007
|
region: p.box,
|
|
@@ -5010,7 +5010,7 @@ const nh = {
|
|
|
5010
5010
|
}), Pt = ["upper2d", "lower2d"];
|
|
5011
5011
|
class Ve extends ae {
|
|
5012
5012
|
static TYPE = "Diagram";
|
|
5013
|
-
static stateZ =
|
|
5013
|
+
static stateZ = Wi;
|
|
5014
5014
|
schema = Ve.stateZ;
|
|
5015
5015
|
afterUpdate(e) {
|
|
5016
5016
|
this.internal.renderCtx = V.use(e), this.internal.handleError = ue(e), rs(e, () => {
|
|
@@ -5058,7 +5058,7 @@ const sh = {
|
|
|
5058
5058
|
__proto__: null,
|
|
5059
5059
|
Diagram: Ve,
|
|
5060
5060
|
REGISTRY: sh,
|
|
5061
|
-
diagramStateZ:
|
|
5061
|
+
diagramStateZ: Wi
|
|
5062
5062
|
}, Symbol.toStringTag, { value: "Module" })), rh = h.object({
|
|
5063
5063
|
enabled: h.boolean(),
|
|
5064
5064
|
source: ls.optional().default(as)
|
|
@@ -5067,9 +5067,8 @@ class vr extends q {
|
|
|
5067
5067
|
static TYPE = "Light";
|
|
5068
5068
|
schema = rh;
|
|
5069
5069
|
afterUpdate(e) {
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
this.internal.source = ee(e, t, this.internal.source), s.stopListening?.(), s.stopListening = s.source.onChange(() => this.updateEnabledState());
|
|
5070
|
+
const { internal: t } = this;
|
|
5071
|
+
this.internal.source = ee(e, this.state.source, t.source), this.updateEnabledState(), t.stopListening?.(), t.stopListening = t.source.onChange(() => this.updateEnabledState());
|
|
5073
5072
|
}
|
|
5074
5073
|
updateEnabledState() {
|
|
5075
5074
|
const e = this.internal.source.value();
|
|
@@ -5079,7 +5078,7 @@ class vr extends q {
|
|
|
5079
5078
|
this.internal.stopListening(), this.internal.source.cleanup?.();
|
|
5080
5079
|
}
|
|
5081
5080
|
}
|
|
5082
|
-
const td = { [vr.TYPE]: vr }, ih = f.construct(12), ah = 3, oh = 14, lh = f.construct(6),
|
|
5081
|
+
const td = { [vr.TYPE]: vr }, ih = f.construct(12), ah = 3, oh = 14, lh = f.construct(6), Vi = h.object({
|
|
5083
5082
|
position: f.xy.or(h.null()),
|
|
5084
5083
|
textColor: y.colorZ.optional().default(y.ZERO),
|
|
5085
5084
|
backgroundColor: y.colorZ.optional().default(y.ZERO),
|
|
@@ -5090,7 +5089,7 @@ const td = { [vr.TYPE]: vr }, ih = f.construct(12), ah = 3, oh = 14, lh = f.cons
|
|
|
5090
5089
|
});
|
|
5091
5090
|
class en extends q {
|
|
5092
5091
|
static TYPE = "tooltip";
|
|
5093
|
-
schema =
|
|
5092
|
+
schema = Vi;
|
|
5094
5093
|
afterUpdate(e) {
|
|
5095
5094
|
const t = fe(e);
|
|
5096
5095
|
y.isZero(this.state.textColor) && (this.state.textColor = t.colors.text), y.isZero(this.state.backgroundColor) && (this.state.backgroundColor = t.colors.gray.l1), y.isZero(this.state.borderColor) && (this.state.borderColor = t.colors.border), y.isZero(this.state.ruleColor) && (this.state.ruleColor = t.colors.gray.l7), this.internal.dotColor = t.colors.text, this.internal.dotColorContrast = t.colors.textInverted, this.internal.render = V.use(e), this.internal.draw = new Je(this.internal.render.upper2d, t), ge(e, "tool");
|
|
@@ -5168,15 +5167,15 @@ const ch = {
|
|
|
5168
5167
|
__proto__: null,
|
|
5169
5168
|
REGISTRY: ch,
|
|
5170
5169
|
Tooltip: en,
|
|
5171
|
-
tooltipStateZ:
|
|
5170
|
+
tooltipStateZ: Vi
|
|
5172
5171
|
}, Symbol.toStringTag, { value: "Module" })), uh = h.object({
|
|
5173
5172
|
region: p.box,
|
|
5174
5173
|
wheelPos: h.number(),
|
|
5175
5174
|
scrolling: h.boolean(),
|
|
5176
5175
|
empty: h.boolean(),
|
|
5177
5176
|
visible: h.boolean(),
|
|
5178
|
-
telem: Lt.optional().default(
|
|
5179
|
-
font:
|
|
5177
|
+
telem: Lt.optional().default(Ar),
|
|
5178
|
+
font: Or.optional().default("p"),
|
|
5180
5179
|
color: y.colorZ.optional().default(y.ZERO),
|
|
5181
5180
|
overshoot: f.xy.optional().default({ x: 0, y: 0 })
|
|
5182
5181
|
}), hh = 0.98, rt = "lower2d", dh = {
|
|
@@ -5298,7 +5297,7 @@ class tn extends q {
|
|
|
5298
5297
|
}
|
|
5299
5298
|
}
|
|
5300
5299
|
}
|
|
5301
|
-
const sd = { [tn.TYPE]: tn },
|
|
5300
|
+
const sd = { [tn.TYPE]: tn }, Xi = h.object({
|
|
5302
5301
|
one: f.xy.nullable(),
|
|
5303
5302
|
two: f.xy.nullable(),
|
|
5304
5303
|
hover: f.xy.nullable(),
|
|
@@ -5315,7 +5314,7 @@ const sd = { [tn.TYPE]: tn }, Gi = h.object({
|
|
|
5315
5314
|
});
|
|
5316
5315
|
class nn extends q {
|
|
5317
5316
|
static TYPE = "measure";
|
|
5318
|
-
schema =
|
|
5317
|
+
schema = Xi;
|
|
5319
5318
|
afterUpdate(e) {
|
|
5320
5319
|
const t = V.use(e);
|
|
5321
5320
|
this.internal.theme = fe(e), this.internal.renderCtx = t, this.internal.draw = new Je(t.upper2d, this.internal.theme), ge(e, "tool");
|
|
@@ -5439,13 +5438,13 @@ const fh = {
|
|
|
5439
5438
|
__proto__: null,
|
|
5440
5439
|
Measure: nn,
|
|
5441
5440
|
REGISTRY: fh,
|
|
5442
|
-
measureStateZ:
|
|
5441
|
+
measureStateZ: Xi
|
|
5443
5442
|
}, Symbol.toStringTag, { value: "Module" })), ph = h.object({
|
|
5444
5443
|
trigger: h.number(),
|
|
5445
5444
|
command: h.number().optional(),
|
|
5446
5445
|
value: h.number(),
|
|
5447
|
-
sink:
|
|
5448
|
-
source:
|
|
5446
|
+
sink: Ur.optional().default(Lr),
|
|
5447
|
+
source: Zr.optional().default(_r)
|
|
5449
5448
|
});
|
|
5450
5449
|
class br extends q {
|
|
5451
5450
|
static TYPE = "Setpoint";
|
|
@@ -5477,7 +5476,7 @@ class wr extends q {
|
|
|
5477
5476
|
static TYPE = "Toggle";
|
|
5478
5477
|
schema = mh;
|
|
5479
5478
|
afterUpdate(e) {
|
|
5480
|
-
this.internal.addStatus =
|
|
5479
|
+
this.internal.addStatus = wa(e);
|
|
5481
5480
|
const { sink: t, source: s, triggered: r, enabled: i } = this.state, { triggered: a } = this.prevState, { internal: o } = this;
|
|
5482
5481
|
o.source = ee(e, s, o.source), o.sink = bt(e, t, o.sink), r && !a && o.sink.set(!i), this.updateEnabledState(), o.stopListening?.(), o.stopListening = o.source.onChange(() => this.updateEnabledState());
|
|
5483
5482
|
}
|
|
@@ -5491,9 +5490,9 @@ class wr extends q {
|
|
|
5491
5490
|
}
|
|
5492
5491
|
const ad = { [wr.TYPE]: wr }, Cn = { useAtlas: !0 }, gh = h.object({
|
|
5493
5492
|
box: p.box,
|
|
5494
|
-
telem:
|
|
5493
|
+
telem: $r.optional().default(Yr),
|
|
5495
5494
|
backgroundTelem: cs.optional().default(cn),
|
|
5496
|
-
level:
|
|
5495
|
+
level: Or.optional().default("p"),
|
|
5497
5496
|
color: y.colorZ.optional().default(y.ZERO),
|
|
5498
5497
|
precision: h.number().optional().default(2),
|
|
5499
5498
|
minWidth: h.number().optional().default(60),
|
|
@@ -5713,7 +5712,7 @@ const wh = (n, e) => Object.fromEntries(
|
|
|
5713
5712
|
}, `Failed to parse streamer change for ${v}`);
|
|
5714
5713
|
}
|
|
5715
5714
|
},
|
|
5716
|
-
`Failed to handle streamer change for ${
|
|
5715
|
+
`Failed to handle streamer change for ${da.naturalLanguageJoin(m)}`
|
|
5717
5716
|
);
|
|
5718
5717
|
};
|
|
5719
5718
|
return l.onChange(u), l.close.bind(l);
|
|
@@ -5748,7 +5747,7 @@ class Th {
|
|
|
5748
5747
|
await (await this.streamCloser)();
|
|
5749
5748
|
}
|
|
5750
5749
|
}
|
|
5751
|
-
const Eh = we.object({}), Gn = "flux-context",
|
|
5750
|
+
const Eh = we.object({}), Gn = "flux-context", Gi = "flux.Provider", Ch = (n, e) => n.get(Gn).scopedStore(e), kh = (n) => {
|
|
5752
5751
|
const e = (t, s) => {
|
|
5753
5752
|
if ("client" in n) return n.client;
|
|
5754
5753
|
const r = Ke(t);
|
|
@@ -5759,16 +5758,16 @@ const Eh = we.object({}), Gn = "flux-context", Ki = "flux.Provider", Ch = (n, e)
|
|
|
5759
5758
|
handleAsyncError: Sa(t)
|
|
5760
5759
|
});
|
|
5761
5760
|
};
|
|
5762
|
-
return class
|
|
5763
|
-
static TYPE =
|
|
5761
|
+
return class Ki extends ae {
|
|
5762
|
+
static TYPE = Gi;
|
|
5764
5763
|
static stateZ = Eh;
|
|
5765
|
-
schema =
|
|
5764
|
+
schema = Ki.stateZ;
|
|
5766
5765
|
afterUpdate(s) {
|
|
5767
5766
|
const { internal: r } = this;
|
|
5768
5767
|
r.store = e(s, r.store), s.wasSetPreviously(Gn) || s.set(Gn, r.store);
|
|
5769
5768
|
}
|
|
5770
5769
|
};
|
|
5771
|
-
}, ld = (n) => ({ [
|
|
5770
|
+
}, ld = (n) => ({ [Gi]: kh(n) }), Ph = at.payloadZ.extend({
|
|
5772
5771
|
viewport: C.bounds
|
|
5773
5772
|
}), Rh = h.object({
|
|
5774
5773
|
cursor: f.xy.or(h.null()),
|
|
@@ -5869,7 +5868,7 @@ const cd = {
|
|
|
5869
5868
|
[ur.TYPE]: ur,
|
|
5870
5869
|
[Kn.TYPE]: Kn
|
|
5871
5870
|
}, ud = gn;
|
|
5872
|
-
class Qn extends
|
|
5871
|
+
class Qn extends ji {
|
|
5873
5872
|
static TYPE = "XAxis";
|
|
5874
5873
|
schema = gn;
|
|
5875
5874
|
render(e) {
|
|
@@ -5934,7 +5933,7 @@ const Mh = h.object({
|
|
|
5934
5933
|
container: p.box,
|
|
5935
5934
|
viewport: p.box,
|
|
5936
5935
|
hold: h.boolean().optional().default(!1),
|
|
5937
|
-
grid: h.record(h.string(),
|
|
5936
|
+
grid: h.record(h.string(), Si),
|
|
5938
5937
|
visible: h.boolean().optional().default(!0),
|
|
5939
5938
|
clearOverScan: f.crudeZ.optional().default(f.ZERO)
|
|
5940
5939
|
}), Dh = (n, e) => {
|
|
@@ -6089,20 +6088,20 @@ export {
|
|
|
6089
6088
|
Qe as M,
|
|
6090
6089
|
su as N,
|
|
6091
6090
|
au as O,
|
|
6092
|
-
|
|
6091
|
+
qi as P,
|
|
6093
6092
|
nu as Q,
|
|
6094
6093
|
zh as R,
|
|
6095
6094
|
Hh as S,
|
|
6096
6095
|
ru as T,
|
|
6097
6096
|
ir as U,
|
|
6098
|
-
|
|
6099
|
-
|
|
6097
|
+
$i as V,
|
|
6098
|
+
Ui as W,
|
|
6100
6099
|
Qn as X,
|
|
6101
6100
|
Hn as Y,
|
|
6102
6101
|
Wn as Z,
|
|
6103
6102
|
Vn as _,
|
|
6104
6103
|
is as a,
|
|
6105
|
-
|
|
6104
|
+
$r as a$,
|
|
6106
6105
|
pr as a0,
|
|
6107
6106
|
mr as a1,
|
|
6108
6107
|
gr as a2,
|
|
@@ -6113,28 +6112,28 @@ export {
|
|
|
6113
6112
|
zu as a7,
|
|
6114
6113
|
Gh as a8,
|
|
6115
6114
|
Xh as a9,
|
|
6116
|
-
|
|
6115
|
+
Xi as aA,
|
|
6117
6116
|
nn as aB,
|
|
6118
|
-
|
|
6117
|
+
Hi as aC,
|
|
6119
6118
|
Qt as aD,
|
|
6120
6119
|
Aa as aE,
|
|
6121
6120
|
Na as aF,
|
|
6122
6121
|
ns as aG,
|
|
6123
|
-
|
|
6122
|
+
mi as aH,
|
|
6124
6123
|
Nn as aI,
|
|
6125
|
-
|
|
6124
|
+
Gi as aJ,
|
|
6126
6125
|
Eh as aK,
|
|
6127
6126
|
Th as aL,
|
|
6128
6127
|
bh as aM,
|
|
6129
6128
|
wh as aN,
|
|
6130
6129
|
xr as aO,
|
|
6131
6130
|
lt as aP,
|
|
6132
|
-
|
|
6131
|
+
xi as aQ,
|
|
6133
6132
|
ft as aR,
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6133
|
+
jr as aS,
|
|
6134
|
+
zr as aT,
|
|
6135
|
+
ri as aU,
|
|
6136
|
+
ii as aV,
|
|
6138
6137
|
Ia as aW,
|
|
6139
6138
|
Da as aX,
|
|
6140
6139
|
Xa as aY,
|
|
@@ -6152,7 +6151,7 @@ export {
|
|
|
6152
6151
|
Uu as aj,
|
|
6153
6152
|
Fu as ak,
|
|
6154
6153
|
$u as al,
|
|
6155
|
-
|
|
6154
|
+
zi as am,
|
|
6156
6155
|
Xn as an,
|
|
6157
6156
|
_e as ao,
|
|
6158
6157
|
mu as ap,
|
|
@@ -6160,7 +6159,7 @@ export {
|
|
|
6160
6159
|
gn as ar,
|
|
6161
6160
|
vu as as,
|
|
6162
6161
|
jn as at,
|
|
6163
|
-
|
|
6162
|
+
Vi as au,
|
|
6164
6163
|
en as av,
|
|
6165
6164
|
Yu as aw,
|
|
6166
6165
|
ur as ax,
|
|
@@ -6173,7 +6172,7 @@ export {
|
|
|
6173
6172
|
cl as b3,
|
|
6174
6173
|
ht as b4,
|
|
6175
6174
|
ws as b5,
|
|
6176
|
-
|
|
6175
|
+
Wi as b6,
|
|
6177
6176
|
Ve as b7,
|
|
6178
6177
|
uh as b8,
|
|
6179
6178
|
tn as b9,
|
|
@@ -6182,8 +6181,8 @@ export {
|
|
|
6182
6181
|
th as bc,
|
|
6183
6182
|
eh as bd,
|
|
6184
6183
|
Ku as be,
|
|
6185
|
-
|
|
6186
|
-
|
|
6184
|
+
Hr as bf,
|
|
6185
|
+
ti as bg,
|
|
6187
6186
|
Ha as bh,
|
|
6188
6187
|
Oa as bi,
|
|
6189
6188
|
ja as bj,
|