@synnaxlabs/pluto 0.34.0 → 0.34.1
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--yLT9nkT.cjs → LinePlot-44K5K51b.cjs} +8 -8
- package/dist/{LinePlot-6KHKqa-2.js → LinePlot-DN8KOMtR.js} +738 -738
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +2 -2
- package/dist/{external-DcMAC_pY.js → external-B_-ZrYaG.js} +101 -94
- package/dist/external-DVlGiTKE.cjs +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.js +5833 -5065
- package/dist/src/tree/core.d.ts +3 -1
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +1 -0
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +45 -0
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +35 -0
- 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/style.css +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/package.json +4 -4
- package/dist/external-CsrLjLOh.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var c = (n, e, t) =>
|
|
4
|
-
import { Z as
|
|
1
|
+
var li = Object.defineProperty;
|
|
2
|
+
var ci = (n, e, t) => e in n ? li(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var c = (n, e, t) => ci(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { Z as ui, q as He, v as wt, _ as ps, o as F, B as ft, E as ut, y as $, x as hi, z as nt, D as di, G as Rr, V as gs, H as fi, I as it, J as Mr, K as Or, M as pt, N as $s, O as ms, Q as pi, F as We, T as Gn, U as Dr, W as gi, i as Xe, u as xt, c as re, X as mi, Y as Z, A as yi, $ as Yr, a0 as wi, a1 as ys, n as xi, a2 as Ar, a3 as ws, a4 as xs, a5 as Lr, w as bi, a6 as bs, k as _r, a7 as In, a8 as vi } from "./aggregator-DzdAnRwI.js";
|
|
5
5
|
import { z as d } from "zod";
|
|
6
|
-
import { Z as V, G as R, W as
|
|
7
|
-
var
|
|
8
|
-
class
|
|
6
|
+
import { Z as V, G as R, W as Ti, J as Tt, E as f, q as g, g as at, a as Y, _ as Ge, l as I, C as Si, m as Nr } from "./css-B4FcyECk.js";
|
|
7
|
+
var Ei = Object.defineProperty, Ci = (n, e, t) => e in n ? Ei(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ze = (n, e, t) => Ci(n, typeof e != "symbol" ? e + "" : e, t);
|
|
8
|
+
class ki {
|
|
9
9
|
constructor(e, t) {
|
|
10
10
|
ze(this, "handlers"), ze(this, "transform"), ze(this, "closer"), this.transform = e, this.handlers = t ?? /* @__PURE__ */ new Map();
|
|
11
11
|
}
|
|
@@ -31,7 +31,7 @@ class Ci {
|
|
|
31
31
|
return await ((e = this.closer) == null ? void 0 : e.call(this));
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class Pi {
|
|
35
35
|
constructor(e) {
|
|
36
36
|
ze(this, "handlers"), this.handlers = e ?? /* @__PURE__ */ new Map();
|
|
37
37
|
}
|
|
@@ -44,12 +44,12 @@ class ki {
|
|
|
44
44
|
}
|
|
45
45
|
const vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
46
46
|
__proto__: null,
|
|
47
|
-
BaseObserver:
|
|
48
|
-
Observer:
|
|
49
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
50
|
-
props:
|
|
47
|
+
BaseObserver: Pi,
|
|
48
|
+
Observer: ki
|
|
49
|
+
}, Symbol.toStringTag, { value: "Module" })), Ri = d.object({
|
|
50
|
+
props: ui.nullable(),
|
|
51
51
|
state: He.connectivity.connectionStateZ.nullable()
|
|
52
|
-
}),
|
|
52
|
+
}), Ir = {
|
|
53
53
|
synnax: null,
|
|
54
54
|
state: He.connectivity.DEFAULT
|
|
55
55
|
};
|
|
@@ -61,7 +61,7 @@ let Vn = (vt = class extends wt {
|
|
|
61
61
|
}
|
|
62
62
|
async afterUpdate() {
|
|
63
63
|
var t;
|
|
64
|
-
if (this.ctx.has(Ts) || Bn(this.ctx,
|
|
64
|
+
if (this.ctx.has(Ts) || Bn(this.ctx, Ir), this.state.props == null) {
|
|
65
65
|
this.internal.synnax != null && (this.setState((s) => ({ ...s, state: He.connectivity.DEFAULT })), (t = this.internal.synnax) == null || t.close(), this.internal.synnax = null), Bn(this.ctx, this.internal);
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
@@ -69,16 +69,16 @@ let Vn = (vt = class extends wt {
|
|
|
69
69
|
(s) => this.setState((r) => ({ ...r, state: s }))
|
|
70
70
|
), Bn(this.ctx, this.internal));
|
|
71
71
|
}
|
|
72
|
-
}, c(vt, "TYPE", "SynnaxProvider"), c(vt, "stateZ",
|
|
73
|
-
const Ts = "pluto-client-context", Bn = (n, e) => n.set(Ts, e), Oe = (n) => n.get(Ts).synnax,
|
|
72
|
+
}, c(vt, "TYPE", "SynnaxProvider"), c(vt, "stateZ", Ri), vt);
|
|
73
|
+
const Ts = "pluto-client-context", Bn = (n, e) => n.set(Ts, e), Oe = (n) => n.get(Ts).synnax, Mi = {
|
|
74
74
|
[Vn.TYPE]: Vn
|
|
75
|
-
},
|
|
75
|
+
}, eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
76
|
__proto__: null,
|
|
77
77
|
Provider: Vn,
|
|
78
|
-
REGISTRY:
|
|
79
|
-
ZERO_CONTEXT_VALUE:
|
|
78
|
+
REGISTRY: Mi,
|
|
79
|
+
ZERO_CONTEXT_VALUE: Ir,
|
|
80
80
|
use: Oe
|
|
81
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
81
|
+
}, Symbol.toStringTag, { value: "Module" })), Br = "pluto-telem-context", Rn = (n) => n.get(Br), Ur = (n, e) => n.set(Br, e), $r = (n, e) => Rn(n).registerFactory(e);
|
|
82
82
|
class Zs {
|
|
83
83
|
constructor(e, t, s) {
|
|
84
84
|
c(this, "spec");
|
|
@@ -158,7 +158,7 @@ class Ke extends Et {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
c(Ke, "TYPE", "noop-numeric-sink");
|
|
161
|
-
const
|
|
161
|
+
const Zr = {
|
|
162
162
|
type: Ke.TYPE,
|
|
163
163
|
props: {},
|
|
164
164
|
variant: "sink",
|
|
@@ -182,7 +182,7 @@ class Je extends Et {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
c(Je, "TYPE", "noop-numeric-source");
|
|
185
|
-
const
|
|
185
|
+
const Fr = {
|
|
186
186
|
type: Je.TYPE,
|
|
187
187
|
props: {},
|
|
188
188
|
variant: "source",
|
|
@@ -194,7 +194,7 @@ class tn extends Et {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
c(tn, "TYPE", "noop-string-source");
|
|
197
|
-
const
|
|
197
|
+
const zr = {
|
|
198
198
|
type: tn.TYPE,
|
|
199
199
|
props: {},
|
|
200
200
|
variant: "source",
|
|
@@ -223,7 +223,7 @@ class nn extends Et {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
c(nn, "TYPE", "noop-color-source");
|
|
226
|
-
const
|
|
226
|
+
const qr = {
|
|
227
227
|
type: nn.TYPE,
|
|
228
228
|
props: {},
|
|
229
229
|
variant: "source",
|
|
@@ -235,12 +235,12 @@ class sn extends Et {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
c(sn, "TYPE", "noop-series");
|
|
238
|
-
const
|
|
238
|
+
const jr = {
|
|
239
239
|
type: sn.TYPE,
|
|
240
240
|
props: {},
|
|
241
241
|
variant: "source",
|
|
242
242
|
valueType: "series"
|
|
243
|
-
},
|
|
243
|
+
}, Oi = {
|
|
244
244
|
[Ve.TYPE]: Ve,
|
|
245
245
|
[Ke.TYPE]: Ke,
|
|
246
246
|
[Qe.TYPE]: Qe,
|
|
@@ -250,32 +250,32 @@ const qr = {
|
|
|
250
250
|
[tn.TYPE]: tn,
|
|
251
251
|
[sn.TYPE]: sn
|
|
252
252
|
};
|
|
253
|
-
class
|
|
253
|
+
class Hr {
|
|
254
254
|
constructor() {
|
|
255
255
|
c(this, "type", "noop");
|
|
256
256
|
}
|
|
257
257
|
create(e) {
|
|
258
|
-
const t =
|
|
258
|
+
const t = Oi[e.type];
|
|
259
259
|
return t == null ? null : new t();
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
const
|
|
262
|
+
const Di = d.instanceof(ArrayBuffer), Ye = d.object({
|
|
263
263
|
type: d.string(),
|
|
264
264
|
variant: d.enum(["source", "sink", "source-transformer", "sink-transformer"]),
|
|
265
265
|
valueType: d.string(),
|
|
266
266
|
props: d.any(),
|
|
267
|
-
transfer: d.array(
|
|
268
|
-
}), Ct = Ye.extend({ variant: d.literal("source") }), On = Ye.extend({ variant: d.literal("sink") }),
|
|
267
|
+
transfer: d.array(Di).optional()
|
|
268
|
+
}), Ct = Ye.extend({ variant: d.literal("source") }), On = Ye.extend({ variant: d.literal("sink") }), Wr = Ye.extend({
|
|
269
269
|
variant: d.literal("source-transformer")
|
|
270
|
-
}),
|
|
270
|
+
}), Xr = Ye.extend({
|
|
271
271
|
variant: d.literal("sink-transformer")
|
|
272
272
|
}), rn = Ct.extend({ valueType: d.literal("series") }), Cs = Ct.extend({
|
|
273
273
|
valueType: d.literal("boolean")
|
|
274
|
-
}), Dn = On.extend({ valueType: d.literal("boolean") }),
|
|
274
|
+
}), Dn = On.extend({ valueType: d.literal("boolean") }), Yi = Xr.extend({
|
|
275
275
|
valueType: d.literal("boolean")
|
|
276
|
-
}),
|
|
276
|
+
}), Ai = Wr.extend({
|
|
277
277
|
valueType: d.literal("boolean")
|
|
278
|
-
}),
|
|
278
|
+
}), Gr = Ct.extend({ valueType: d.literal("number") }), Vr = On.extend({ valueType: d.literal("number") }), Kr = Ct.extend({ valueType: d.literal("color") }), ks = Ct.extend({ valueType: d.literal("status") }), Qr = Ct.extend({ valueType: d.literal("string") });
|
|
279
279
|
class Yn extends vs.BaseObserver {
|
|
280
280
|
constructor(t) {
|
|
281
281
|
super();
|
|
@@ -347,7 +347,7 @@ class Ae extends Q {
|
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
class
|
|
350
|
+
class Jr extends Q {
|
|
351
351
|
constructor() {
|
|
352
352
|
super(...arguments);
|
|
353
353
|
c(this, "sources", {});
|
|
@@ -373,7 +373,7 @@ class Qr extends Q {
|
|
|
373
373
|
);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
class
|
|
376
|
+
class ta extends Yn {
|
|
377
377
|
constructor() {
|
|
378
378
|
super(...arguments);
|
|
379
379
|
c(this, "sinks", {});
|
|
@@ -399,15 +399,15 @@ class Jr extends Yn {
|
|
|
399
399
|
);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
const
|
|
402
|
+
const ea = d.object({
|
|
403
403
|
from: d.string(),
|
|
404
404
|
to: d.string()
|
|
405
|
-
}),
|
|
406
|
-
connections: d.array(
|
|
405
|
+
}), na = d.object({
|
|
406
|
+
connections: d.array(ea),
|
|
407
407
|
outlet: d.string(),
|
|
408
408
|
segments: d.record(Ct)
|
|
409
409
|
});
|
|
410
|
-
class
|
|
410
|
+
class sa {
|
|
411
411
|
constructor(e) {
|
|
412
412
|
c(this, "type", "pipeline");
|
|
413
413
|
c(this, "factory");
|
|
@@ -427,7 +427,7 @@ class na {
|
|
|
427
427
|
class de extends Q {
|
|
428
428
|
constructor(t, s) {
|
|
429
429
|
super(t);
|
|
430
|
-
c(this, "schema",
|
|
430
|
+
c(this, "schema", na);
|
|
431
431
|
c(this, "sources", {});
|
|
432
432
|
const { connections: r, segments: a } = this.props;
|
|
433
433
|
Object.entries(a).forEach(([i, o]) => {
|
|
@@ -462,20 +462,20 @@ class de extends Q {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
c(de, "TYPE", "source-pipeline");
|
|
465
|
-
const
|
|
465
|
+
const Li = (n, e) => ({
|
|
466
466
|
variant: "source",
|
|
467
467
|
props: e,
|
|
468
468
|
type: de.TYPE,
|
|
469
469
|
valueType: n
|
|
470
|
-
}),
|
|
471
|
-
connections: d.array(
|
|
470
|
+
}), ra = d.object({
|
|
471
|
+
connections: d.array(ea),
|
|
472
472
|
inlet: d.string(),
|
|
473
473
|
segments: d.record(On)
|
|
474
474
|
});
|
|
475
475
|
class fe extends An {
|
|
476
476
|
constructor(t, s) {
|
|
477
477
|
super(t);
|
|
478
|
-
c(this, "schema",
|
|
478
|
+
c(this, "schema", ra);
|
|
479
479
|
c(this, "sinks", {});
|
|
480
480
|
const { connections: r, segments: a } = this.props;
|
|
481
481
|
Object.entries(a).forEach(([i, o]) => {
|
|
@@ -507,12 +507,12 @@ class fe extends An {
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
c(fe, "TYPE", "sink-pipeline");
|
|
510
|
-
const
|
|
510
|
+
const _i = (n, e) => ({
|
|
511
511
|
variant: "sink",
|
|
512
512
|
props: e,
|
|
513
513
|
type: fe.TYPE,
|
|
514
514
|
valueType: n
|
|
515
|
-
}),
|
|
515
|
+
}), aa = d.object({
|
|
516
516
|
channel: d.number().or(d.string())
|
|
517
517
|
});
|
|
518
518
|
class pe extends Q {
|
|
@@ -522,7 +522,7 @@ class pe extends Q {
|
|
|
522
522
|
// Disconnects the current streaming handler.
|
|
523
523
|
c(this, "removeStreamHandler", null);
|
|
524
524
|
c(this, "channelKey", 0);
|
|
525
|
-
c(this, "schema",
|
|
525
|
+
c(this, "schema", aa);
|
|
526
526
|
c(this, "leadingBuffer", null);
|
|
527
527
|
c(this, "valid", !1);
|
|
528
528
|
this.client = t;
|
|
@@ -540,7 +540,7 @@ class pe extends Q {
|
|
|
540
540
|
await ((t = this.removeStreamHandler) == null ? void 0 : t.call(this)), this.valid = !1, (s = this.leadingBuffer) == null || s.release(), this.leadingBuffer = null, this.removeStreamHandler = null;
|
|
541
541
|
}
|
|
542
542
|
async value() {
|
|
543
|
-
return
|
|
543
|
+
return hi(this.props.channel) || (this.channelKey === 0 && (this.channelKey = (await Ps(this.client, this.props.channel, !1)).key), this.valid || await this.read(), this.leadingBuffer == null || this.leadingBuffer.length === 0) ? 0 : this.leadingBuffer.at(-1, !0);
|
|
544
544
|
}
|
|
545
545
|
async read() {
|
|
546
546
|
this.valid = !0, await this.updateStreamHandler();
|
|
@@ -564,7 +564,7 @@ c(pe, "TYPE", "stream-channel-value");
|
|
|
564
564
|
const Ps = async (n, e, t) => {
|
|
565
565
|
const s = await n.retrieveChannel(e);
|
|
566
566
|
return !t || s.isIndex ? { key: s.key, dataType: s.dataType, virtual: s.virtual } : { key: s.index, dataType: nt.TIMESTAMP, virtual: !1 };
|
|
567
|
-
},
|
|
567
|
+
}, Ni = d.object({
|
|
568
568
|
timeRange: ut.z,
|
|
569
569
|
channel: d.number().or(d.string()),
|
|
570
570
|
useIndexOfChannel: d.boolean().optional().default(!1)
|
|
@@ -575,7 +575,7 @@ class ge extends Q {
|
|
|
575
575
|
c(this, "client");
|
|
576
576
|
c(this, "data", []);
|
|
577
577
|
c(this, "valid", !1);
|
|
578
|
-
c(this, "schema",
|
|
578
|
+
c(this, "schema", Ni);
|
|
579
579
|
this.client = t;
|
|
580
580
|
}
|
|
581
581
|
async cleanup() {
|
|
@@ -598,7 +598,7 @@ class ge extends Q {
|
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
c(ge, "TYPE", "series-source");
|
|
601
|
-
const
|
|
601
|
+
const Ii = d.object({
|
|
602
602
|
channel: d.number().or(d.string()),
|
|
603
603
|
useIndexOfChannel: d.boolean().optional().default(!1),
|
|
604
604
|
timeSpan: $.z,
|
|
@@ -611,7 +611,7 @@ class me extends Q {
|
|
|
611
611
|
c(this, "data", []);
|
|
612
612
|
c(this, "stopStreaming");
|
|
613
613
|
c(this, "valid", !1);
|
|
614
|
-
c(this, "schema",
|
|
614
|
+
c(this, "schema", Ii);
|
|
615
615
|
this.client = t;
|
|
616
616
|
}
|
|
617
617
|
async value() {
|
|
@@ -653,39 +653,39 @@ class me extends Q {
|
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
c(me, "TYPE", "dynamic-series-source");
|
|
656
|
-
const
|
|
656
|
+
const Bi = {
|
|
657
657
|
[ge.TYPE]: ge,
|
|
658
658
|
[me.TYPE]: me,
|
|
659
659
|
[pe.TYPE]: pe
|
|
660
660
|
};
|
|
661
|
-
class
|
|
661
|
+
class ia {
|
|
662
662
|
constructor(e) {
|
|
663
663
|
c(this, "type", "remote");
|
|
664
664
|
c(this, "client");
|
|
665
665
|
this.client = e;
|
|
666
666
|
}
|
|
667
667
|
create(e) {
|
|
668
|
-
const t =
|
|
668
|
+
const t = Bi[e.type];
|
|
669
669
|
return t == null ? null : new t(this.client, e.props);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
const
|
|
672
|
+
const Ui = (n) => ({
|
|
673
673
|
type: ge.TYPE,
|
|
674
674
|
props: n,
|
|
675
675
|
variant: "source",
|
|
676
676
|
valueType: "series"
|
|
677
|
-
}),
|
|
677
|
+
}), $i = (n) => ({
|
|
678
678
|
type: me.TYPE,
|
|
679
679
|
props: n,
|
|
680
680
|
variant: "source",
|
|
681
681
|
valueType: "series"
|
|
682
|
-
}),
|
|
682
|
+
}), Zi = (n) => ({
|
|
683
683
|
type: pe.TYPE,
|
|
684
684
|
props: n,
|
|
685
685
|
variant: "source",
|
|
686
686
|
valueType: "number"
|
|
687
687
|
});
|
|
688
|
-
class
|
|
688
|
+
class oa {
|
|
689
689
|
constructor() {
|
|
690
690
|
c(this, "type", "static");
|
|
691
691
|
}
|
|
@@ -705,7 +705,7 @@ class ia {
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
const Rs = d.object({
|
|
708
|
-
data: d.array(
|
|
708
|
+
data: d.array(di),
|
|
709
709
|
offsets: d.array(d.number()).optional().default([])
|
|
710
710
|
});
|
|
711
711
|
class an extends Q {
|
|
@@ -727,8 +727,8 @@ class an extends Q {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
c(an, "TYPE", "static-series");
|
|
730
|
-
const
|
|
731
|
-
rate:
|
|
730
|
+
const la = Rs.extend({
|
|
731
|
+
rate: Rr.z,
|
|
732
732
|
yOffset: d.number().optional().default(0),
|
|
733
733
|
scroll: d.number().optional().default(0),
|
|
734
734
|
startPosition: d.number().optional().default(0),
|
|
@@ -737,7 +737,7 @@ const oa = Rs.extend({
|
|
|
737
737
|
class ye extends Q {
|
|
738
738
|
constructor(t) {
|
|
739
739
|
super(t);
|
|
740
|
-
c(this, "schema",
|
|
740
|
+
c(this, "schema", la);
|
|
741
741
|
c(this, "position");
|
|
742
742
|
c(this, "interval");
|
|
743
743
|
c(this, "data");
|
|
@@ -772,49 +772,49 @@ class ye extends Q {
|
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
c(ye, "TYPE", "iterative-series");
|
|
775
|
-
const
|
|
775
|
+
const ca = d.number();
|
|
776
776
|
class we extends Q {
|
|
777
777
|
constructor() {
|
|
778
778
|
super(...arguments);
|
|
779
|
-
c(this, "schema",
|
|
779
|
+
c(this, "schema", ca);
|
|
780
780
|
}
|
|
781
781
|
async value() {
|
|
782
782
|
return this.props;
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
c(we, "TYPE", "static-numeric");
|
|
786
|
-
const
|
|
786
|
+
const ua = d.string();
|
|
787
787
|
class xe extends Q {
|
|
788
788
|
constructor() {
|
|
789
789
|
super(...arguments);
|
|
790
|
-
c(this, "schema",
|
|
790
|
+
c(this, "schema", ua);
|
|
791
791
|
}
|
|
792
792
|
async value() {
|
|
793
793
|
return this.props;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
c(xe, "TYPE", "static-string");
|
|
797
|
-
const
|
|
797
|
+
const Fi = (n) => ({
|
|
798
798
|
type: an.TYPE,
|
|
799
799
|
props: n,
|
|
800
800
|
variant: "source",
|
|
801
801
|
valueType: "series"
|
|
802
|
-
}),
|
|
802
|
+
}), zi = (n) => ({
|
|
803
803
|
type: ye.TYPE,
|
|
804
804
|
props: n,
|
|
805
805
|
variant: "source",
|
|
806
806
|
valueType: "series"
|
|
807
|
-
}),
|
|
807
|
+
}), qi = (n) => ({
|
|
808
808
|
type: we.TYPE,
|
|
809
809
|
props: n,
|
|
810
810
|
variant: "source",
|
|
811
811
|
valueType: "number"
|
|
812
|
-
}),
|
|
812
|
+
}), ji = (n) => ({
|
|
813
813
|
type: xe.TYPE,
|
|
814
814
|
props: n,
|
|
815
815
|
variant: "source",
|
|
816
816
|
valueType: "string"
|
|
817
|
-
}),
|
|
817
|
+
}), Hi = ["standard", "scientific", "engineering"], ha = d.enum(Hi), Wi = (n, e, t) => {
|
|
818
818
|
if (Number.isNaN(n)) return "NaN";
|
|
819
819
|
if (n === 1 / 0) return "∞";
|
|
820
820
|
if (n === -1 / 0) return "-∞";
|
|
@@ -824,7 +824,7 @@ const Zi = (n) => ({
|
|
|
824
824
|
let s;
|
|
825
825
|
return t === "scientific" ? s = Math.floor(Math.log10(Math.abs(n))) : s = Math.floor(Math.log10(Math.abs(n)) / 3) * 3, `${(n / 10 ** s).toFixed(e)}ᴇ${s}`;
|
|
826
826
|
};
|
|
827
|
-
class
|
|
827
|
+
class da {
|
|
828
828
|
constructor() {
|
|
829
829
|
c(this, "type", "transformer");
|
|
830
830
|
}
|
|
@@ -846,15 +846,15 @@ class ha {
|
|
|
846
846
|
return null;
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
const
|
|
849
|
+
const Xi = d.object({
|
|
850
850
|
truthy: d.number().optional().default(1),
|
|
851
851
|
falsy: d.number().optional().default(0)
|
|
852
|
-
}),
|
|
852
|
+
}), Gi = (n) => ({
|
|
853
853
|
props: n,
|
|
854
854
|
type: qt.TYPE,
|
|
855
855
|
variant: "sink",
|
|
856
856
|
valueType: "boolean"
|
|
857
|
-
}), ae = class ae extends
|
|
857
|
+
}), ae = class ae extends ta {
|
|
858
858
|
constructor() {
|
|
859
859
|
super(...arguments);
|
|
860
860
|
c(this, "schema", ae.propsZ);
|
|
@@ -863,9 +863,9 @@ const Wi = d.object({
|
|
|
863
863
|
return t ? this.props.truthy : this.props.falsy;
|
|
864
864
|
}
|
|
865
865
|
};
|
|
866
|
-
c(ae, "TYPE", "boolean-numeric-converter-sink"), c(ae, "propsZ",
|
|
866
|
+
c(ae, "TYPE", "boolean-numeric-converter-sink"), c(ae, "propsZ", Xi);
|
|
867
867
|
let qt = ae;
|
|
868
|
-
const
|
|
868
|
+
const Vi = d.object({ trueBound: R.bounds }), Ki = (n) => ({
|
|
869
869
|
props: n,
|
|
870
870
|
type: jt.TYPE,
|
|
871
871
|
variant: "source",
|
|
@@ -884,9 +884,9 @@ const Gi = d.object({ trueBound: R.bounds }), Vi = (n) => ({
|
|
|
884
884
|
return this.curr = R.contains(this.props.trueBound, t), this.curr;
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
|
-
c(ie, "TYPE", "boolean-source"), c(ie, "propsZ",
|
|
887
|
+
c(ie, "TYPE", "boolean-source"), c(ie, "propsZ", Vi);
|
|
888
888
|
let jt = ie;
|
|
889
|
-
const
|
|
889
|
+
const fa = d.object({}), oe = class oe extends Jr {
|
|
890
890
|
constructor() {
|
|
891
891
|
super(...arguments);
|
|
892
892
|
c(this, "schema", oe.propsZ);
|
|
@@ -895,15 +895,15 @@ const da = d.object({}), oe = class oe extends Qr {
|
|
|
895
895
|
return Object.values(t).reduce((s, r) => s + r, 0) / Object.keys(t).length;
|
|
896
896
|
}
|
|
897
897
|
};
|
|
898
|
-
c(oe, "TYPE", "mean"), c(oe, "propsZ",
|
|
898
|
+
c(oe, "TYPE", "mean"), c(oe, "propsZ", fa);
|
|
899
899
|
let Ht = oe;
|
|
900
|
-
const
|
|
900
|
+
const Qi = (n) => ({
|
|
901
901
|
props: n,
|
|
902
902
|
type: Ht.TYPE,
|
|
903
903
|
variant: "source",
|
|
904
904
|
valueType: "boolean"
|
|
905
|
-
}),
|
|
906
|
-
trueVariant:
|
|
905
|
+
}), pa = d.object({
|
|
906
|
+
trueVariant: fi.optional().default("success")
|
|
907
907
|
}), le = class le extends Ae {
|
|
908
908
|
constructor() {
|
|
909
909
|
super(...arguments);
|
|
@@ -913,41 +913,41 @@ const Ki = (n) => ({
|
|
|
913
913
|
return t.variant === this.props.trueVariant;
|
|
914
914
|
}
|
|
915
915
|
};
|
|
916
|
-
c(le, "TYPE", "boolean-status"), c(le, "propsZ",
|
|
916
|
+
c(le, "TYPE", "boolean-status"), c(le, "propsZ", pa);
|
|
917
917
|
let Wt = le;
|
|
918
|
-
const
|
|
918
|
+
const Ji = (n) => ({
|
|
919
919
|
props: n,
|
|
920
920
|
type: Wt.TYPE,
|
|
921
921
|
variant: "source",
|
|
922
922
|
valueType: "boolean"
|
|
923
|
-
}),
|
|
923
|
+
}), ga = d.object({
|
|
924
924
|
precision: d.number().optional().default(2),
|
|
925
925
|
prefix: d.string().optional().default(""),
|
|
926
926
|
suffix: d.string().optional().default(""),
|
|
927
|
-
notation:
|
|
927
|
+
notation: ha.optional().default("standard")
|
|
928
928
|
}), ce = class ce extends Ae {
|
|
929
929
|
constructor() {
|
|
930
930
|
super(...arguments);
|
|
931
931
|
c(this, "schema", ce.propsZ);
|
|
932
932
|
}
|
|
933
933
|
transform(t) {
|
|
934
|
-
return `${this.props.prefix}${
|
|
934
|
+
return `${this.props.prefix}${Wi(t, this.props.precision, this.props.notation)}${this.props.suffix}`;
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
c(ce, "TYPE", "stringify-number"), c(ce, "propsZ",
|
|
937
|
+
c(ce, "TYPE", "stringify-number"), c(ce, "propsZ", ga);
|
|
938
938
|
let Xt = ce;
|
|
939
|
-
const
|
|
939
|
+
const to = (n) => ({
|
|
940
940
|
props: n,
|
|
941
941
|
type: Xt.TYPE,
|
|
942
942
|
variant: "source",
|
|
943
943
|
valueType: "string"
|
|
944
|
-
}),
|
|
944
|
+
}), ma = d.object({
|
|
945
945
|
windowSize: d.number().optional().default(5)
|
|
946
946
|
});
|
|
947
947
|
class Gt extends Ae {
|
|
948
948
|
constructor() {
|
|
949
949
|
super(...arguments);
|
|
950
|
-
c(this, "schema",
|
|
950
|
+
c(this, "schema", ma);
|
|
951
951
|
c(this, "values", []);
|
|
952
952
|
}
|
|
953
953
|
transform(t) {
|
|
@@ -957,14 +957,14 @@ class Gt extends Ae {
|
|
|
957
957
|
return this.props.windowSize < 2 ? !0 : (this.values.length > this.props.windowSize && (this.values = []), this.values.push(t), this.values.length === this.props.windowSize);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
c(Gt, "TYPE", "rolling-average"), c(Gt, "propsZ",
|
|
961
|
-
const
|
|
960
|
+
c(Gt, "TYPE", "rolling-average"), c(Gt, "propsZ", fa);
|
|
961
|
+
const eo = (n) => ({
|
|
962
962
|
props: n,
|
|
963
963
|
type: Gt.TYPE,
|
|
964
964
|
variant: "source",
|
|
965
965
|
valueType: "number"
|
|
966
966
|
});
|
|
967
|
-
class
|
|
967
|
+
class ya {
|
|
968
968
|
constructor(e) {
|
|
969
969
|
c(this, "factories");
|
|
970
970
|
c(this, "type", "compound");
|
|
@@ -984,10 +984,10 @@ class ma {
|
|
|
984
984
|
return null;
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
-
const
|
|
988
|
-
const e = [new
|
|
989
|
-
return n != null && t.add(new
|
|
990
|
-
},
|
|
987
|
+
const wa = (n) => {
|
|
988
|
+
const e = [new da(), new oa(), new Hr()], t = new ya(e);
|
|
989
|
+
return n != null && t.add(new ia(n)), t.add(new sa(t)), t;
|
|
990
|
+
}, no = d.object({
|
|
991
991
|
include: d.string().array().optional(),
|
|
992
992
|
exclude: d.string().array().optional(),
|
|
993
993
|
level: d.enum(it.LOG_LEVELS).optional().default("info")
|
|
@@ -996,7 +996,7 @@ var Xn;
|
|
|
996
996
|
let zs = (Xn = class extends wt {
|
|
997
997
|
constructor() {
|
|
998
998
|
super(...arguments);
|
|
999
|
-
c(this, "schema",
|
|
999
|
+
c(this, "schema", no);
|
|
1000
1000
|
}
|
|
1001
1001
|
async afterUpdate() {
|
|
1002
1002
|
if (this.ctx.getOptional(Kn) != null) return;
|
|
@@ -1011,27 +1011,27 @@ const Le = (n, e) => {
|
|
|
1011
1011
|
const t = n.get(Kn);
|
|
1012
1012
|
if (t == null) throw new Error("No instrumentation provider");
|
|
1013
1013
|
return e == null ? t : t.child(e);
|
|
1014
|
-
},
|
|
1014
|
+
}, sh = {
|
|
1015
1015
|
[zs.TYPE]: zs
|
|
1016
|
-
},
|
|
1016
|
+
}, xa = (n, e) => n.dataType.isVariable ? n : (e == null && n.dataType.equals(nt.TIMESTAMP) && (e = BigInt(n.data[0])), n.convert(nt.FLOAT32, e)), ba = () => ({
|
|
1017
1017
|
purgedSeries: 0,
|
|
1018
|
-
purgedBytes:
|
|
1019
|
-
}),
|
|
1018
|
+
purgedBytes: Mr.bytes(0)
|
|
1019
|
+
}), va = {
|
|
1020
1020
|
instrumentation: it.NOOP,
|
|
1021
1021
|
staleEntryThreshold: $.seconds(20)
|
|
1022
1022
|
};
|
|
1023
|
-
class
|
|
1023
|
+
class so {
|
|
1024
1024
|
constructor(e) {
|
|
1025
1025
|
c(this, "data", []);
|
|
1026
1026
|
c(this, "props");
|
|
1027
|
-
this.props = { ...
|
|
1027
|
+
this.props = { ...va, ...e };
|
|
1028
1028
|
}
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Writes the given series to the cache, merging written series with any
|
|
1031
1031
|
* existing series in the cache.
|
|
1032
1032
|
*/
|
|
1033
1033
|
write(e) {
|
|
1034
|
-
e.length !== 0 && (e.forEach((t) => this.writeOne(
|
|
1034
|
+
e.length !== 0 && (e.forEach((t) => this.writeOne(xa(t))), this.checkIntegrity(e));
|
|
1035
1035
|
}
|
|
1036
1036
|
/**
|
|
1037
1037
|
* Executes a 'dirty' read of the cache, retrieving any series in the cache that overlap
|
|
@@ -1055,7 +1055,7 @@ class no {
|
|
|
1055
1055
|
* @returns metrics about the garbage collection.
|
|
1056
1056
|
*/
|
|
1057
1057
|
gc() {
|
|
1058
|
-
const { staleEntryThreshold: e } = this.props, t =
|
|
1058
|
+
const { staleEntryThreshold: e } = this.props, t = ba(), s = this.data.filter((r) => {
|
|
1059
1059
|
const a = r.data.refCount > 0 || F.since(r.addedAt).lessThan(e);
|
|
1060
1060
|
return a || (t.purgedBytes = t.purgedBytes.add(r.data.byteCapacity)), a;
|
|
1061
1061
|
});
|
|
@@ -1100,8 +1100,8 @@ class no {
|
|
|
1100
1100
|
})), new Error("Invalid state");
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
const
|
|
1104
|
-
class
|
|
1103
|
+
const ro = 100, ao = 1e6, io = 1e4, oo = 100, lo = 40;
|
|
1104
|
+
class co {
|
|
1105
1105
|
/**
|
|
1106
1106
|
* @constructor
|
|
1107
1107
|
*
|
|
@@ -1148,7 +1148,7 @@ class lo {
|
|
|
1148
1148
|
this.counter++;
|
|
1149
1149
|
const r = this.props.dataType.isVariable, a = this.props.dataType.equals(nt.TIMESTAMP);
|
|
1150
1150
|
return gs.alloc({
|
|
1151
|
-
capacity: r ? e *
|
|
1151
|
+
capacity: r ? e * lo : e,
|
|
1152
1152
|
dataType: r ? this.props.dataType : nt.FLOAT32,
|
|
1153
1153
|
timeRange: s.range(F.MAX),
|
|
1154
1154
|
sampleOffset: a ? BigInt(s.valueOf()) : 0,
|
|
@@ -1167,7 +1167,7 @@ class lo {
|
|
|
1167
1167
|
const l = this.now();
|
|
1168
1168
|
this.curr.timeRange.end = l, s.flushed.push(this.curr), this.curr = this.allocate(t, e.alignment, l), s.allocated.push(this.curr);
|
|
1169
1169
|
}
|
|
1170
|
-
const r =
|
|
1170
|
+
const r = xa(e, this.curr.sampleOffset), a = this.curr.write(r);
|
|
1171
1171
|
if (a === e.length)
|
|
1172
1172
|
return this.updateAvgRate(e), s;
|
|
1173
1173
|
const i = this.now();
|
|
@@ -1183,9 +1183,9 @@ class lo {
|
|
|
1183
1183
|
nextBufferSize() {
|
|
1184
1184
|
const { dynamicBufferSize: e } = this.props;
|
|
1185
1185
|
if (typeof e == "number") return e;
|
|
1186
|
-
if (this.totalWrites <
|
|
1187
|
-
const t =
|
|
1188
|
-
return Math.round(Math.max(Math.min(t,
|
|
1186
|
+
if (this.totalWrites < oo) return io;
|
|
1187
|
+
const t = Ti.roundToNearestMagnitude(this.avgRate * e.seconds);
|
|
1188
|
+
return Math.round(Math.max(Math.min(t, ao), ro));
|
|
1189
1189
|
}
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Closes the cache and releases all resources associated with it. After close()
|
|
@@ -1195,14 +1195,14 @@ class lo {
|
|
|
1195
1195
|
this.curr = null;
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
|
-
class
|
|
1198
|
+
class uo {
|
|
1199
1199
|
constructor(e) {
|
|
1200
1200
|
c(this, "channel");
|
|
1201
1201
|
c(this, "closed", !1);
|
|
1202
1202
|
c(this, "ins");
|
|
1203
1203
|
c(this, "static");
|
|
1204
1204
|
c(this, "dynamic");
|
|
1205
|
-
this.channel = e.channel, this.ins = e.instrumentation ?? it.NOOP, this.static = new
|
|
1205
|
+
this.channel = e.channel, this.ins = e.instrumentation ?? it.NOOP, this.static = new so(e), this.dynamic = new co({
|
|
1206
1206
|
dynamicBufferSize: e.dynamicBufferSize,
|
|
1207
1207
|
dataType: this.channel.dataType
|
|
1208
1208
|
});
|
|
@@ -1233,22 +1233,22 @@ class co {
|
|
|
1233
1233
|
gc() {
|
|
1234
1234
|
return this.closed ? (this.ins.L.warn(
|
|
1235
1235
|
`Ignoring attempted garbage collection on a closed cache for channel ${this.channel.name}`
|
|
1236
|
-
), { purgedSeries: 0, purgedBytes:
|
|
1236
|
+
), { purgedSeries: 0, purgedBytes: Mr.bytes(0) }) : this.static.gc();
|
|
1237
1237
|
}
|
|
1238
1238
|
close() {
|
|
1239
1239
|
this.closed = !0, this.dynamic.close(), this.static.close();
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
const
|
|
1243
|
-
class
|
|
1242
|
+
const ho = Or.seconds(60);
|
|
1243
|
+
class fo {
|
|
1244
1244
|
constructor(e) {
|
|
1245
1245
|
c(this, "props");
|
|
1246
1246
|
c(this, "cache", /* @__PURE__ */ new Map());
|
|
1247
1247
|
c(this, "gcInterval");
|
|
1248
1248
|
this.props = {
|
|
1249
|
-
dynamicBufferSize:
|
|
1250
|
-
gcInterval:
|
|
1251
|
-
...
|
|
1249
|
+
dynamicBufferSize: ho,
|
|
1250
|
+
gcInterval: Or.seconds(30),
|
|
1251
|
+
...va,
|
|
1252
1252
|
...e
|
|
1253
1253
|
}, this.gcInterval = setInterval(() => this.gc(), this.props.gcInterval.milliseconds);
|
|
1254
1254
|
}
|
|
@@ -1263,7 +1263,7 @@ class ho {
|
|
|
1263
1263
|
if (a.length === 0) return;
|
|
1264
1264
|
const i = await s.retrieve(a);
|
|
1265
1265
|
for (const o of i) {
|
|
1266
|
-
const l = new
|
|
1266
|
+
const l = new uo({
|
|
1267
1267
|
channel: o,
|
|
1268
1268
|
dynamicBufferSize: r,
|
|
1269
1269
|
instrumentation: t.child(`cache-${o.name}-${o.key}`)
|
|
@@ -1288,7 +1288,7 @@ class ho {
|
|
|
1288
1288
|
instrumentation: { L: e }
|
|
1289
1289
|
} = this.props;
|
|
1290
1290
|
e.info("starting garbage collection");
|
|
1291
|
-
const t =
|
|
1291
|
+
const t = ba();
|
|
1292
1292
|
this.cache.forEach((s) => {
|
|
1293
1293
|
const r = s.gc();
|
|
1294
1294
|
t.purgedSeries += r.purgedSeries, t.purgedBytes = t.purgedBytes.add(r.purgedBytes);
|
|
@@ -1329,7 +1329,7 @@ class on {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
const Un = (n) => n.map((e) => e.digest);
|
|
1332
|
-
class
|
|
1332
|
+
class po {
|
|
1333
1333
|
constructor(e) {
|
|
1334
1334
|
c(this, "props");
|
|
1335
1335
|
c(this, "debouncedRead");
|
|
@@ -1342,7 +1342,7 @@ class fo {
|
|
|
1342
1342
|
instrumentation: it.NOOP,
|
|
1343
1343
|
batchDebounce: $.milliseconds(50),
|
|
1344
1344
|
...e
|
|
1345
|
-
}, this.debouncedRead =
|
|
1345
|
+
}, this.debouncedRead = pi(() => {
|
|
1346
1346
|
this.batchRead();
|
|
1347
1347
|
}, this.props.batchDebounce.milliseconds);
|
|
1348
1348
|
}
|
|
@@ -1436,7 +1436,7 @@ class fo {
|
|
|
1436
1436
|
});
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
|
-
class
|
|
1439
|
+
class go {
|
|
1440
1440
|
constructor(e) {
|
|
1441
1441
|
c(this, "props");
|
|
1442
1442
|
c(this, "mu", new ms());
|
|
@@ -1531,7 +1531,7 @@ class po {
|
|
|
1531
1531
|
(e = this.streamer) == null || e.close(), this.streamerRunLoop != null && await this.streamerRunLoop, this.closed = !0;
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
|
-
class
|
|
1534
|
+
class mo {
|
|
1535
1535
|
constructor() {
|
|
1536
1536
|
c(this, "key", Gn.id());
|
|
1537
1537
|
c(this, "_client", null);
|
|
@@ -1557,11 +1557,11 @@ class go {
|
|
|
1557
1557
|
await this.client.close();
|
|
1558
1558
|
}
|
|
1559
1559
|
get client() {
|
|
1560
|
-
if (this._client == null) throw new
|
|
1560
|
+
if (this._client == null) throw new Dr("No cluster has been connected");
|
|
1561
1561
|
return this._client;
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
|
-
class
|
|
1564
|
+
class yo {
|
|
1565
1565
|
constructor({ instrumentation: e, core: t }) {
|
|
1566
1566
|
c(this, "key", Gn.id());
|
|
1567
1567
|
c(this, "ins");
|
|
@@ -1569,14 +1569,14 @@ class mo {
|
|
|
1569
1569
|
c(this, "reader");
|
|
1570
1570
|
c(this, "streamer");
|
|
1571
1571
|
c(this, "channelRetriever");
|
|
1572
|
-
this.ins = e ?? it.NOOP, this.channelRetriever = t.channels.createDebouncedBatchRetriever(10), this.cache = new
|
|
1572
|
+
this.ins = e ?? it.NOOP, this.channelRetriever = t.channels.createDebouncedBatchRetriever(10), this.cache = new fo({
|
|
1573
1573
|
channelRetriever: this.channelRetriever,
|
|
1574
1574
|
instrumentation: this.ins.child("cache")
|
|
1575
|
-
}), this.reader = new
|
|
1575
|
+
}), this.reader = new po({
|
|
1576
1576
|
cache: this.cache,
|
|
1577
1577
|
readRemote: async (s, r) => await t.read(s, r),
|
|
1578
1578
|
instrumentation: this.ins.child("reader")
|
|
1579
|
-
}), this.streamer = new
|
|
1579
|
+
}), this.streamer = new go({
|
|
1580
1580
|
cache: this.cache,
|
|
1581
1581
|
core: t,
|
|
1582
1582
|
instrumentation: this.ins.child("streamer")
|
|
@@ -1585,7 +1585,7 @@ class mo {
|
|
|
1585
1585
|
/** Implements ChannelClient. */
|
|
1586
1586
|
async retrieveChannel(e) {
|
|
1587
1587
|
const t = await this.channelRetriever.retrieve([e]);
|
|
1588
|
-
if (t.length === 0) throw new
|
|
1588
|
+
if (t.length === 0) throw new Dr(`channel ${e} not found`);
|
|
1589
1589
|
return t[0];
|
|
1590
1590
|
}
|
|
1591
1591
|
/** Implements ChannelClient */
|
|
@@ -1600,11 +1600,11 @@ class mo {
|
|
|
1600
1600
|
this.ins.L.info("closing client", { key: this.key }), await this.streamer.close(), this.cache.close();
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
|
-
const
|
|
1603
|
+
const Ta = d.object({}), $t = class $t extends wt {
|
|
1604
1604
|
constructor() {
|
|
1605
1605
|
super(...arguments);
|
|
1606
|
-
c(this, "client", new
|
|
1607
|
-
c(this, "factory",
|
|
1606
|
+
c(this, "client", new mo());
|
|
1607
|
+
c(this, "factory", wa(this.client));
|
|
1608
1608
|
c(this, "schema", $t.stateZ);
|
|
1609
1609
|
c(this, "prevClient", null);
|
|
1610
1610
|
}
|
|
@@ -1629,14 +1629,14 @@ const va = d.object({}), $t = class $t extends wt {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
async afterUpdate() {
|
|
1631
1631
|
const t = Oe(this.ctx), s = Le(this.ctx, "telem");
|
|
1632
|
-
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
|
|
1632
|
+
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 yo({ core: t, instrumentation: s })), this.prevClient = t, Ur(this.ctx, this));
|
|
1633
1633
|
}
|
|
1634
1634
|
};
|
|
1635
|
-
c($t, "TYPE", "TelemProvider"), c($t, "stateZ",
|
|
1635
|
+
c($t, "TYPE", "TelemProvider"), c($t, "stateZ", Ta);
|
|
1636
1636
|
let be = $t;
|
|
1637
|
-
const
|
|
1637
|
+
const wo = {
|
|
1638
1638
|
[be.TYPE]: be
|
|
1639
|
-
},
|
|
1639
|
+
}, rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1640
1640
|
__proto__: null,
|
|
1641
1641
|
AbstractSink: An,
|
|
1642
1642
|
AbstractSource: Q,
|
|
@@ -1644,91 +1644,91 @@ const yo = {
|
|
|
1644
1644
|
BaseProvider: be,
|
|
1645
1645
|
BooleanStatus: Wt,
|
|
1646
1646
|
ChannelData: ge,
|
|
1647
|
-
CompoundTelemFactory:
|
|
1647
|
+
CompoundTelemFactory: ya,
|
|
1648
1648
|
FixedNumber: we,
|
|
1649
1649
|
FixedString: xe,
|
|
1650
1650
|
IterativeSeries: ye,
|
|
1651
1651
|
Mean: Ht,
|
|
1652
|
-
MultiSourceTransformer:
|
|
1653
|
-
NoopFactory:
|
|
1654
|
-
PipelineFactory:
|
|
1655
|
-
REGISTRY:
|
|
1656
|
-
RemoteFactory:
|
|
1652
|
+
MultiSourceTransformer: Jr,
|
|
1653
|
+
NoopFactory: Hr,
|
|
1654
|
+
PipelineFactory: sa,
|
|
1655
|
+
REGISTRY: wo,
|
|
1656
|
+
RemoteFactory: ia,
|
|
1657
1657
|
RollingAverage: Gt,
|
|
1658
1658
|
SetPoint: qt,
|
|
1659
1659
|
SinkPipeline: fe,
|
|
1660
1660
|
SourcePipeline: de,
|
|
1661
|
-
StaticFactory:
|
|
1661
|
+
StaticFactory: oa,
|
|
1662
1662
|
StreamChannelData: me,
|
|
1663
1663
|
StreamChannelValue: pe,
|
|
1664
1664
|
StringifyNumber: Xt,
|
|
1665
|
-
TransformerFactory:
|
|
1666
|
-
UnarySinkTransformer:
|
|
1665
|
+
TransformerFactory: da,
|
|
1666
|
+
UnarySinkTransformer: ta,
|
|
1667
1667
|
UnarySourceTransformer: Ae,
|
|
1668
1668
|
WithinBounds: jt,
|
|
1669
1669
|
booleanSinkSpecZ: Dn,
|
|
1670
|
-
booleanSinkTransformerSpecZ:
|
|
1670
|
+
booleanSinkTransformerSpecZ: Yi,
|
|
1671
1671
|
booleanSourceSpecZ: Cs,
|
|
1672
|
-
booleanSourceTransformerSpecZ:
|
|
1673
|
-
booleanStatus:
|
|
1674
|
-
booleanStatusProps:
|
|
1675
|
-
channelData:
|
|
1676
|
-
colorSourceSpecZ:
|
|
1677
|
-
factory:
|
|
1678
|
-
fixedArray:
|
|
1679
|
-
fixedNumber:
|
|
1680
|
-
fixedNumberPropsZ:
|
|
1672
|
+
booleanSourceTransformerSpecZ: Ai,
|
|
1673
|
+
booleanStatus: Ji,
|
|
1674
|
+
booleanStatusProps: pa,
|
|
1675
|
+
channelData: Ui,
|
|
1676
|
+
colorSourceSpecZ: Kr,
|
|
1677
|
+
factory: wa,
|
|
1678
|
+
fixedArray: Fi,
|
|
1679
|
+
fixedNumber: qi,
|
|
1680
|
+
fixedNumberPropsZ: ca,
|
|
1681
1681
|
fixedSeriesPropsZ: Rs,
|
|
1682
|
-
fixedString:
|
|
1683
|
-
fixedStringPropsZ:
|
|
1684
|
-
iterativeArray:
|
|
1685
|
-
iterativeSeriesPropsZ:
|
|
1686
|
-
mean:
|
|
1682
|
+
fixedString: ji,
|
|
1683
|
+
fixedStringPropsZ: ua,
|
|
1684
|
+
iterativeArray: zi,
|
|
1685
|
+
iterativeSeriesPropsZ: la,
|
|
1686
|
+
mean: Qi,
|
|
1687
1687
|
noopBooleanSinkSpec: Mn,
|
|
1688
1688
|
noopBooleanSourceSpec: Ss,
|
|
1689
|
-
noopColorSourceSpec:
|
|
1690
|
-
noopNumericSinkSpec:
|
|
1691
|
-
noopNumericSourceSpec:
|
|
1692
|
-
noopSeriesSourceSpec:
|
|
1689
|
+
noopColorSourceSpec: qr,
|
|
1690
|
+
noopNumericSinkSpec: Zr,
|
|
1691
|
+
noopNumericSourceSpec: Fr,
|
|
1692
|
+
noopSeriesSourceSpec: jr,
|
|
1693
1693
|
noopStatusSourceSpec: Es,
|
|
1694
|
-
noopStringSourceSpec:
|
|
1695
|
-
numberSinkSpecZ:
|
|
1696
|
-
numberSourceSpecZ:
|
|
1697
|
-
providerStateZ:
|
|
1698
|
-
registerFactory:
|
|
1699
|
-
rollingAverage:
|
|
1700
|
-
rollingAverageProps:
|
|
1694
|
+
noopStringSourceSpec: zr,
|
|
1695
|
+
numberSinkSpecZ: Vr,
|
|
1696
|
+
numberSourceSpecZ: Gr,
|
|
1697
|
+
providerStateZ: Ta,
|
|
1698
|
+
registerFactory: $r,
|
|
1699
|
+
rollingAverage: eo,
|
|
1700
|
+
rollingAverageProps: ma,
|
|
1701
1701
|
seriesSourceSpecZ: rn,
|
|
1702
|
-
setProvider:
|
|
1703
|
-
setpoint:
|
|
1704
|
-
sinkPipeline:
|
|
1705
|
-
sinkPipelinePropsZ:
|
|
1702
|
+
setProvider: Ur,
|
|
1703
|
+
setpoint: Gi,
|
|
1704
|
+
sinkPipeline: _i,
|
|
1705
|
+
sinkPipelinePropsZ: ra,
|
|
1706
1706
|
sinkSpecZ: On,
|
|
1707
|
-
sinkTransformerSpecZ:
|
|
1708
|
-
sourcePipeline:
|
|
1709
|
-
sourcePipelinePropsZ:
|
|
1707
|
+
sinkTransformerSpecZ: Xr,
|
|
1708
|
+
sourcePipeline: Li,
|
|
1709
|
+
sourcePipelinePropsZ: na,
|
|
1710
1710
|
sourceSpecZ: Ct,
|
|
1711
|
-
sourceTransformerSpecZ:
|
|
1711
|
+
sourceTransformerSpecZ: Wr,
|
|
1712
1712
|
specZ: Ye,
|
|
1713
1713
|
statusSourceSpecZ: ks,
|
|
1714
|
-
streamChannelData:
|
|
1715
|
-
streamChannelValue:
|
|
1716
|
-
streamChannelValuePropsZ:
|
|
1717
|
-
stringSourceSpecZ:
|
|
1718
|
-
stringifyNumber:
|
|
1719
|
-
stringifyNumberProps:
|
|
1714
|
+
streamChannelData: $i,
|
|
1715
|
+
streamChannelValue: Zi,
|
|
1716
|
+
streamChannelValuePropsZ: aa,
|
|
1717
|
+
stringSourceSpecZ: Qr,
|
|
1718
|
+
stringifyNumber: to,
|
|
1719
|
+
stringifyNumberProps: ga,
|
|
1720
1720
|
useProvider: Rn,
|
|
1721
1721
|
useSink: De,
|
|
1722
1722
|
useSource: st,
|
|
1723
|
-
withinBounds:
|
|
1724
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1723
|
+
withinBounds: Ki
|
|
1724
|
+
}, Symbol.toStringTag, { value: "Module" })), Sa = d.object({
|
|
1725
1725
|
key: d.string(),
|
|
1726
1726
|
size: d.number(),
|
|
1727
1727
|
order: d.number(),
|
|
1728
1728
|
loc: Tt.outer
|
|
1729
1729
|
});
|
|
1730
|
-
d.record(
|
|
1731
|
-
const It = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s) => s.order - t.order),
|
|
1730
|
+
d.record(Sa);
|
|
1731
|
+
const It = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s) => s.order - t.order), xo = (n, e, t) => {
|
|
1732
1732
|
const s = e[n];
|
|
1733
1733
|
if (s == null) return g.ZERO;
|
|
1734
1734
|
const r = Tt.construct(s.loc), a = It(r, e), i = Tt.construct(at.swap(Tt.direction(r))), o = It(i, e), l = a.findIndex(({ key: p }) => p === n), u = a.slice(0, l).reduce((p, { size: m }) => p + m, 0), h = o.reduce((p, { size: m }) => p + m, 0);
|
|
@@ -1745,7 +1745,7 @@ const It = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s
|
|
|
1745
1745
|
-u - s.size
|
|
1746
1746
|
]);
|
|
1747
1747
|
}
|
|
1748
|
-
},
|
|
1748
|
+
}, bo = (n, e) => {
|
|
1749
1749
|
const t = It("left", n), s = It("right", n), r = It("top", n), a = It("bottom", n), i = t.reduce((h, { size: p }) => h + p, 0), o = s.reduce((h, { size: p }) => h + p, 0), l = r.reduce((h, { size: p }) => h + p, 0), u = a.reduce((h, { size: p }) => h + p, 0);
|
|
1750
1750
|
return f.construct(
|
|
1751
1751
|
g.translate(f.topLeft(e), { x: i, y: l }),
|
|
@@ -1756,12 +1756,12 @@ const It = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s
|
|
|
1756
1756
|
function qe(n, e) {
|
|
1757
1757
|
return n == null || e == null ? NaN : n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function vo(n, e) {
|
|
1760
1760
|
return n == null || e == null ? NaN : e < n ? -1 : e > n ? 1 : e >= n ? 0 : NaN;
|
|
1761
1761
|
}
|
|
1762
1762
|
function Ms(n) {
|
|
1763
1763
|
let e, t, s;
|
|
1764
|
-
n.length !== 2 ? (e = qe, t = (o, l) => qe(n(o), l), s = (o, l) => n(o) - l) : (e = n === qe || n ===
|
|
1764
|
+
n.length !== 2 ? (e = qe, t = (o, l) => qe(n(o), l), s = (o, l) => n(o) - l) : (e = n === qe || n === vo ? n : To, t = n, s = n);
|
|
1765
1765
|
function r(o, l, u = 0, h = o.length) {
|
|
1766
1766
|
if (u < h) {
|
|
1767
1767
|
if (e(l, l) !== 0) return h;
|
|
@@ -1788,21 +1788,21 @@ function Ms(n) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
return { left: r, center: i, right: a };
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function To() {
|
|
1792
1792
|
return 0;
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1794
|
+
function So(n) {
|
|
1795
1795
|
return n === null ? NaN : +n;
|
|
1796
1796
|
}
|
|
1797
|
-
const
|
|
1798
|
-
Ms(
|
|
1799
|
-
const
|
|
1797
|
+
const Eo = Ms(qe), Co = Eo.right;
|
|
1798
|
+
Ms(So).center;
|
|
1799
|
+
const ko = Math.sqrt(50), Po = Math.sqrt(10), Ro = Math.sqrt(2);
|
|
1800
1800
|
function ln(n, e, t) {
|
|
1801
|
-
const s = (e - n) / Math.max(0, t), r = Math.floor(Math.log10(s)), a = s / Math.pow(10, r), i = a >=
|
|
1801
|
+
const s = (e - n) / Math.max(0, t), r = Math.floor(Math.log10(s)), a = s / Math.pow(10, r), i = a >= ko ? 10 : a >= Po ? 5 : a >= Ro ? 2 : 1;
|
|
1802
1802
|
let o, l, u;
|
|
1803
1803
|
return r < 0 ? (u = Math.pow(10, -r) / i, o = Math.round(n * u), l = Math.round(e * u), o / u < n && ++o, l / u > e && --l, u = -u) : (u = Math.pow(10, r) * i, o = Math.round(n / u), l = Math.round(e / u), o * u < n && ++o, l * u > e && --l), l < o && 0.5 <= t && t < 2 ? ln(n, e, t * 2) : [o, l, u];
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function Mo(n, e, t) {
|
|
1806
1806
|
if (e = +e, n = +n, t = +t, !(t > 0)) return [];
|
|
1807
1807
|
if (n === e) return [n];
|
|
1808
1808
|
const s = e < n, [r, a, i] = s ? ln(e, n, t) : ln(n, e, t);
|
|
@@ -1823,7 +1823,7 @@ function Jn(n, e, t) {
|
|
|
1823
1823
|
const s = e < n, r = s ? Qn(e, n, t) : Qn(n, e, t);
|
|
1824
1824
|
return (s ? -1 : 1) * (r < 0 ? 1 / -r : r);
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1826
|
+
function Ea(n, e) {
|
|
1827
1827
|
switch (arguments.length) {
|
|
1828
1828
|
case 0:
|
|
1829
1829
|
break;
|
|
@@ -1839,14 +1839,14 @@ function Sa(n, e) {
|
|
|
1839
1839
|
function Os(n, e, t) {
|
|
1840
1840
|
n.prototype = e.prototype = t, t.constructor = n;
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function Ca(n, e) {
|
|
1843
1843
|
var t = Object.create(n.prototype);
|
|
1844
1844
|
for (var s in e) t[s] = e[s];
|
|
1845
1845
|
return t;
|
|
1846
1846
|
}
|
|
1847
1847
|
function _e() {
|
|
1848
1848
|
}
|
|
1849
|
-
var ve = 0.7, cn = 1 / ve, zt = "\\s*([+-]?\\d+)\\s*", Te = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
1849
|
+
var ve = 0.7, cn = 1 / ve, zt = "\\s*([+-]?\\d+)\\s*", Te = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Oo = /^#([0-9a-f]{3,8})$/, Do = new RegExp(`^rgb\\(${zt},${zt},${zt}\\)$`), Yo = new RegExp(`^rgb\\(${lt},${lt},${lt}\\)$`), Ao = new RegExp(`^rgba\\(${zt},${zt},${zt},${Te}\\)$`), Lo = new RegExp(`^rgba\\(${lt},${lt},${lt},${Te}\\)$`), _o = new RegExp(`^hsl\\(${Te},${lt},${lt}\\)$`), No = new RegExp(`^hsla\\(${Te},${lt},${lt},${Te}\\)$`), qs = {
|
|
1850
1850
|
aliceblue: 15792383,
|
|
1851
1851
|
antiquewhite: 16444375,
|
|
1852
1852
|
aqua: 65535,
|
|
@@ -2006,26 +2006,26 @@ Os(_e, Se, {
|
|
|
2006
2006
|
hex: js,
|
|
2007
2007
|
// Deprecated! Use color.formatHex.
|
|
2008
2008
|
formatHex: js,
|
|
2009
|
-
formatHex8:
|
|
2010
|
-
formatHsl:
|
|
2009
|
+
formatHex8: Io,
|
|
2010
|
+
formatHsl: Bo,
|
|
2011
2011
|
formatRgb: Hs,
|
|
2012
2012
|
toString: Hs
|
|
2013
2013
|
});
|
|
2014
2014
|
function js() {
|
|
2015
2015
|
return this.rgb().formatHex();
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function Io() {
|
|
2018
2018
|
return this.rgb().formatHex8();
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2021
|
-
return
|
|
2020
|
+
function Bo() {
|
|
2021
|
+
return ka(this).formatHsl();
|
|
2022
2022
|
}
|
|
2023
2023
|
function Hs() {
|
|
2024
2024
|
return this.rgb().formatRgb();
|
|
2025
2025
|
}
|
|
2026
2026
|
function Se(n) {
|
|
2027
2027
|
var e, t;
|
|
2028
|
-
return n = (n + "").trim().toLowerCase(), (e =
|
|
2028
|
+
return n = (n + "").trim().toLowerCase(), (e = Oo.exec(n)) ? (t = e[1].length, e = parseInt(e[1], 16), t === 6 ? Ws(e) : t === 3 ? new H(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : t === 8 ? Ue(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : t === 4 ? Ue(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Do.exec(n)) ? new H(e[1], e[2], e[3], 1) : (e = Yo.exec(n)) ? new H(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Ao.exec(n)) ? Ue(e[1], e[2], e[3], e[4]) : (e = Lo.exec(n)) ? Ue(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = _o.exec(n)) ? Vs(e[1], e[2] / 100, e[3] / 100, 1) : (e = No.exec(n)) ? Vs(e[1], e[2] / 100, e[3] / 100, e[4]) : qs.hasOwnProperty(n) ? Ws(qs[n]) : n === "transparent" ? new H(NaN, NaN, NaN, 0) : null;
|
|
2029
2029
|
}
|
|
2030
2030
|
function Ws(n) {
|
|
2031
2031
|
return new H(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
@@ -2033,16 +2033,16 @@ function Ws(n) {
|
|
|
2033
2033
|
function Ue(n, e, t, s) {
|
|
2034
2034
|
return s <= 0 && (n = e = t = NaN), new H(n, e, t, s);
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function Uo(n) {
|
|
2037
2037
|
return n instanceof _e || (n = Se(n)), n ? (n = n.rgb(), new H(n.r, n.g, n.b, n.opacity)) : new H();
|
|
2038
2038
|
}
|
|
2039
2039
|
function ts(n, e, t, s) {
|
|
2040
|
-
return arguments.length === 1 ?
|
|
2040
|
+
return arguments.length === 1 ? Uo(n) : new H(n, e, t, s ?? 1);
|
|
2041
2041
|
}
|
|
2042
2042
|
function H(n, e, t, s) {
|
|
2043
2043
|
this.r = +n, this.g = +e, this.b = +t, this.opacity = +s;
|
|
2044
2044
|
}
|
|
2045
|
-
Os(H, ts,
|
|
2045
|
+
Os(H, ts, Ca(_e, {
|
|
2046
2046
|
brighter(n) {
|
|
2047
2047
|
return n = n == null ? cn : Math.pow(cn, n), new H(this.r * n, this.g * n, this.b * n, this.opacity);
|
|
2048
2048
|
},
|
|
@@ -2061,14 +2061,14 @@ Os(H, ts, Ea(_e, {
|
|
|
2061
2061
|
hex: Xs,
|
|
2062
2062
|
// Deprecated! Use color.formatHex.
|
|
2063
2063
|
formatHex: Xs,
|
|
2064
|
-
formatHex8:
|
|
2064
|
+
formatHex8: $o,
|
|
2065
2065
|
formatRgb: Gs,
|
|
2066
2066
|
toString: Gs
|
|
2067
2067
|
}));
|
|
2068
2068
|
function Xs() {
|
|
2069
2069
|
return `#${Rt(this.r)}${Rt(this.g)}${Rt(this.b)}`;
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2071
|
+
function $o() {
|
|
2072
2072
|
return `#${Rt(this.r)}${Rt(this.g)}${Rt(this.b)}${Rt((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
2073
2073
|
}
|
|
2074
2074
|
function Gs() {
|
|
@@ -2087,7 +2087,7 @@ function Rt(n) {
|
|
|
2087
2087
|
function Vs(n, e, t, s) {
|
|
2088
2088
|
return s <= 0 ? n = e = t = NaN : t <= 0 || t >= 1 ? n = e = NaN : e <= 0 && (n = NaN), new tt(n, e, t, s);
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function ka(n) {
|
|
2091
2091
|
if (n instanceof tt) return new tt(n.h, n.s, n.l, n.opacity);
|
|
2092
2092
|
if (n instanceof _e || (n = Se(n)), !n) return new tt();
|
|
2093
2093
|
if (n instanceof tt) return n;
|
|
@@ -2095,13 +2095,13 @@ function Ca(n) {
|
|
|
2095
2095
|
var e = n.r / 255, t = n.g / 255, s = n.b / 255, r = Math.min(e, t, s), a = Math.max(e, t, s), i = NaN, o = a - r, l = (a + r) / 2;
|
|
2096
2096
|
return o ? (e === a ? i = (t - s) / o + (t < s) * 6 : t === a ? i = (s - e) / o + 2 : i = (e - t) / o + 4, o /= l < 0.5 ? a + r : 2 - a - r, i *= 60) : o = l > 0 && l < 1 ? 0 : i, new tt(i, o, l, n.opacity);
|
|
2097
2097
|
}
|
|
2098
|
-
function
|
|
2099
|
-
return arguments.length === 1 ?
|
|
2098
|
+
function Zo(n, e, t, s) {
|
|
2099
|
+
return arguments.length === 1 ? ka(n) : new tt(n, e, t, s ?? 1);
|
|
2100
2100
|
}
|
|
2101
2101
|
function tt(n, e, t, s) {
|
|
2102
2102
|
this.h = +n, this.s = +e, this.l = +t, this.opacity = +s;
|
|
2103
2103
|
}
|
|
2104
|
-
Os(tt,
|
|
2104
|
+
Os(tt, Zo, Ca(_e, {
|
|
2105
2105
|
brighter(n) {
|
|
2106
2106
|
return n = n == null ? cn : Math.pow(cn, n), new tt(this.h, this.s, this.l * n, this.opacity);
|
|
2107
2107
|
},
|
|
@@ -2138,36 +2138,36 @@ function $n(n, e, t) {
|
|
|
2138
2138
|
return (n < 60 ? e + (t - e) * n / 60 : n < 180 ? t : n < 240 ? e + (t - e) * (240 - n) / 60 : e) * 255;
|
|
2139
2139
|
}
|
|
2140
2140
|
const Ds = (n) => () => n;
|
|
2141
|
-
function
|
|
2141
|
+
function Fo(n, e) {
|
|
2142
2142
|
return function(t) {
|
|
2143
2143
|
return n + t * e;
|
|
2144
2144
|
};
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function zo(n, e, t) {
|
|
2147
2147
|
return n = Math.pow(n, t), e = Math.pow(e, t) - n, t = 1 / t, function(s) {
|
|
2148
2148
|
return Math.pow(n + s * e, t);
|
|
2149
2149
|
};
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2152
|
-
return (n = +n) == 1 ?
|
|
2153
|
-
return t - e ?
|
|
2151
|
+
function qo(n) {
|
|
2152
|
+
return (n = +n) == 1 ? Pa : function(e, t) {
|
|
2153
|
+
return t - e ? zo(e, t, n) : Ds(isNaN(e) ? t : e);
|
|
2154
2154
|
};
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2156
|
+
function Pa(n, e) {
|
|
2157
2157
|
var t = e - n;
|
|
2158
|
-
return t ?
|
|
2158
|
+
return t ? Fo(n, t) : Ds(isNaN(n) ? e : n);
|
|
2159
2159
|
}
|
|
2160
2160
|
const Qs = function n(e) {
|
|
2161
|
-
var t =
|
|
2161
|
+
var t = qo(e);
|
|
2162
2162
|
function s(r, a) {
|
|
2163
|
-
var i = t((r = ts(r)).r, (a = ts(a)).r), o = t(r.g, a.g), l = t(r.b, a.b), u =
|
|
2163
|
+
var i = t((r = ts(r)).r, (a = ts(a)).r), o = t(r.g, a.g), l = t(r.b, a.b), u = Pa(r.opacity, a.opacity);
|
|
2164
2164
|
return function(h) {
|
|
2165
2165
|
return r.r = i(h), r.g = o(h), r.b = l(h), r.opacity = u(h), r + "";
|
|
2166
2166
|
};
|
|
2167
2167
|
}
|
|
2168
2168
|
return s.gamma = n, s;
|
|
2169
2169
|
}(1);
|
|
2170
|
-
function
|
|
2170
|
+
function jo(n, e) {
|
|
2171
2171
|
e || (e = []);
|
|
2172
2172
|
var t = n ? Math.min(e.length, n.length) : 0, s = e.slice(), r;
|
|
2173
2173
|
return function(a) {
|
|
@@ -2175,10 +2175,10 @@ function qo(n, e) {
|
|
|
2175
2175
|
return s;
|
|
2176
2176
|
};
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function Ho(n) {
|
|
2179
2179
|
return ArrayBuffer.isView(n) && !(n instanceof DataView);
|
|
2180
2180
|
}
|
|
2181
|
-
function
|
|
2181
|
+
function Wo(n, e) {
|
|
2182
2182
|
var t = e ? e.length : 0, s = n ? Math.min(t, n.length) : 0, r = new Array(s), a = new Array(t), i;
|
|
2183
2183
|
for (i = 0; i < s; ++i) r[i] = Ys(n[i], e[i]);
|
|
2184
2184
|
for (; i < t; ++i) a[i] = e[i];
|
|
@@ -2187,7 +2187,7 @@ function Ho(n, e) {
|
|
|
2187
2187
|
return a;
|
|
2188
2188
|
};
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2190
|
+
function Xo(n, e) {
|
|
2191
2191
|
var t = /* @__PURE__ */ new Date();
|
|
2192
2192
|
return n = +n, e = +e, function(s) {
|
|
2193
2193
|
return t.setTime(n * (1 - s) + e * s), t;
|
|
@@ -2198,7 +2198,7 @@ function hn(n, e) {
|
|
|
2198
2198
|
return n * (1 - t) + e * t;
|
|
2199
2199
|
};
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function Go(n, e) {
|
|
2202
2202
|
var t = {}, s = {}, r;
|
|
2203
2203
|
(n === null || typeof n != "object") && (n = {}), (e === null || typeof e != "object") && (e = {});
|
|
2204
2204
|
for (r in e)
|
|
@@ -2209,40 +2209,40 @@ function Xo(n, e) {
|
|
|
2209
2209
|
};
|
|
2210
2210
|
}
|
|
2211
2211
|
var es = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Zn = new RegExp(es.source, "g");
|
|
2212
|
-
function
|
|
2212
|
+
function Vo(n) {
|
|
2213
2213
|
return function() {
|
|
2214
2214
|
return n;
|
|
2215
2215
|
};
|
|
2216
2216
|
}
|
|
2217
|
-
function
|
|
2217
|
+
function Ko(n) {
|
|
2218
2218
|
return function(e) {
|
|
2219
2219
|
return n(e) + "";
|
|
2220
2220
|
};
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function Qo(n, e) {
|
|
2223
2223
|
var t = es.lastIndex = Zn.lastIndex = 0, s, r, a, i = -1, o = [], l = [];
|
|
2224
2224
|
for (n = n + "", e = e + ""; (s = es.exec(n)) && (r = Zn.exec(e)); )
|
|
2225
2225
|
(a = r.index) > t && (a = e.slice(t, a), o[i] ? o[i] += a : o[++i] = a), (s = s[0]) === (r = r[0]) ? o[i] ? o[i] += r : o[++i] = r : (o[++i] = null, l.push({ i, x: hn(s, r) })), t = Zn.lastIndex;
|
|
2226
|
-
return t < e.length && (a = e.slice(t), o[i] ? o[i] += a : o[++i] = a), o.length < 2 ? l[0] ?
|
|
2226
|
+
return t < e.length && (a = e.slice(t), o[i] ? o[i] += a : o[++i] = a), o.length < 2 ? l[0] ? Ko(l[0].x) : Vo(e) : (e = l.length, function(u) {
|
|
2227
2227
|
for (var h = 0, p; h < e; ++h) o[(p = l[h]).i] = p.x(u);
|
|
2228
2228
|
return o.join("");
|
|
2229
2229
|
});
|
|
2230
2230
|
}
|
|
2231
2231
|
function Ys(n, e) {
|
|
2232
2232
|
var t = typeof e, s;
|
|
2233
|
-
return e == null || t === "boolean" ? Ds(e) : (t === "number" ? hn : t === "string" ? (s = Se(e)) ? (e = s, Qs) :
|
|
2233
|
+
return e == null || t === "boolean" ? Ds(e) : (t === "number" ? hn : t === "string" ? (s = Se(e)) ? (e = s, Qs) : Qo : e instanceof Se ? Qs : e instanceof Date ? Xo : Ho(e) ? jo : Array.isArray(e) ? Wo : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Go : hn)(n, e);
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function Jo(n, e) {
|
|
2236
2236
|
return n = +n, e = +e, function(t) {
|
|
2237
2237
|
return Math.round(n * (1 - t) + e * t);
|
|
2238
2238
|
};
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function tl(n) {
|
|
2241
2241
|
return function() {
|
|
2242
2242
|
return n;
|
|
2243
2243
|
};
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function el(n) {
|
|
2246
2246
|
return +n;
|
|
2247
2247
|
}
|
|
2248
2248
|
var Js = [0, 1];
|
|
@@ -2252,37 +2252,37 @@ function Bt(n) {
|
|
|
2252
2252
|
function ns(n, e) {
|
|
2253
2253
|
return (e -= n = +n) ? function(t) {
|
|
2254
2254
|
return (t - n) / e;
|
|
2255
|
-
} :
|
|
2255
|
+
} : tl(isNaN(e) ? NaN : 0.5);
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function nl(n, e) {
|
|
2258
2258
|
var t;
|
|
2259
2259
|
return n > e && (t = n, n = e, e = t), function(s) {
|
|
2260
2260
|
return Math.max(n, Math.min(e, s));
|
|
2261
2261
|
};
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function sl(n, e, t) {
|
|
2264
2264
|
var s = n[0], r = n[1], a = e[0], i = e[1];
|
|
2265
2265
|
return r < s ? (s = ns(r, s), a = t(i, a)) : (s = ns(s, r), a = t(a, i)), function(o) {
|
|
2266
2266
|
return a(s(o));
|
|
2267
2267
|
};
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function rl(n, e, t) {
|
|
2270
2270
|
var s = Math.min(n.length, e.length) - 1, r = new Array(s), a = new Array(s), i = -1;
|
|
2271
2271
|
for (n[s] < n[0] && (n = n.slice().reverse(), e = e.slice().reverse()); ++i < s; )
|
|
2272
2272
|
r[i] = ns(n[i], n[i + 1]), a[i] = t(e[i], e[i + 1]);
|
|
2273
2273
|
return function(o) {
|
|
2274
|
-
var l =
|
|
2274
|
+
var l = Co(n, o, 1, s) - 1;
|
|
2275
2275
|
return a[l](r[l](o));
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
2278
|
-
function
|
|
2278
|
+
function Ra(n, e) {
|
|
2279
2279
|
return e.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown());
|
|
2280
2280
|
}
|
|
2281
|
-
function
|
|
2281
|
+
function al() {
|
|
2282
2282
|
var n = Js, e = Js, t = Ys, s, r, a, i = Bt, o, l, u;
|
|
2283
2283
|
function h() {
|
|
2284
2284
|
var m = Math.min(n.length, e.length);
|
|
2285
|
-
return i !== Bt && (i =
|
|
2285
|
+
return i !== Bt && (i = nl(n[0], n[m - 1])), o = m > 2 ? rl : sl, l = u = null, p;
|
|
2286
2286
|
}
|
|
2287
2287
|
function p(m) {
|
|
2288
2288
|
return m == null || isNaN(m = +m) ? a : (l || (l = o(n.map(s), e, t)))(s(i(m)));
|
|
@@ -2290,11 +2290,11 @@ function rl() {
|
|
|
2290
2290
|
return p.invert = function(m) {
|
|
2291
2291
|
return i(r((u || (u = o(e, n.map(s), hn)))(m)));
|
|
2292
2292
|
}, p.domain = function(m) {
|
|
2293
|
-
return arguments.length ? (n = Array.from(m,
|
|
2293
|
+
return arguments.length ? (n = Array.from(m, el), h()) : n.slice();
|
|
2294
2294
|
}, p.range = function(m) {
|
|
2295
2295
|
return arguments.length ? (e = Array.from(m), h()) : e.slice();
|
|
2296
2296
|
}, p.rangeRound = function(m) {
|
|
2297
|
-
return e = Array.from(m), t =
|
|
2297
|
+
return e = Array.from(m), t = Jo, h();
|
|
2298
2298
|
}, p.clamp = function(m) {
|
|
2299
2299
|
return arguments.length ? (i = m ? !0 : Bt, h()) : i !== Bt;
|
|
2300
2300
|
}, p.interpolate = function(m) {
|
|
@@ -2305,10 +2305,10 @@ function rl() {
|
|
|
2305
2305
|
return s = m, r = x, h();
|
|
2306
2306
|
};
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2309
|
-
return
|
|
2308
|
+
function Ma() {
|
|
2309
|
+
return al()(Bt, Bt);
|
|
2310
2310
|
}
|
|
2311
|
-
function
|
|
2311
|
+
function il(n) {
|
|
2312
2312
|
return Math.abs(n = Math.round(n)) >= 1e21 ? n.toLocaleString("en").replace(/,/g, "") : n.toString(10);
|
|
2313
2313
|
}
|
|
2314
2314
|
function dn(n, e) {
|
|
@@ -2322,23 +2322,23 @@ function dn(n, e) {
|
|
|
2322
2322
|
function Vt(n) {
|
|
2323
2323
|
return n = dn(Math.abs(n)), n ? n[1] : NaN;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function ol(n, e) {
|
|
2326
2326
|
return function(t, s) {
|
|
2327
2327
|
for (var r = t.length, a = [], i = 0, o = n[0], l = 0; r > 0 && o > 0 && (l + o + 1 > s && (o = Math.max(1, s - l)), a.push(t.substring(r -= o, r + o)), !((l += o + 1) > s)); )
|
|
2328
2328
|
o = n[i = (i + 1) % n.length];
|
|
2329
2329
|
return a.reverse().join(e);
|
|
2330
2330
|
};
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function ll(n) {
|
|
2333
2333
|
return function(e) {
|
|
2334
2334
|
return e.replace(/[0-9]/g, function(t) {
|
|
2335
2335
|
return n[+t];
|
|
2336
2336
|
});
|
|
2337
2337
|
};
|
|
2338
2338
|
}
|
|
2339
|
-
var
|
|
2339
|
+
var cl = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
2340
2340
|
function fn(n) {
|
|
2341
|
-
if (!(e =
|
|
2341
|
+
if (!(e = cl.exec(n))) throw new Error("invalid format: " + n);
|
|
2342
2342
|
var e;
|
|
2343
2343
|
return new As({
|
|
2344
2344
|
fill: e[1],
|
|
@@ -2360,7 +2360,7 @@ function As(n) {
|
|
|
2360
2360
|
As.prototype.toString = function() {
|
|
2361
2361
|
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;
|
|
2362
2362
|
};
|
|
2363
|
-
function
|
|
2363
|
+
function ul(n) {
|
|
2364
2364
|
t: for (var e = n.length, t = 1, s = -1, r; t < e; ++t)
|
|
2365
2365
|
switch (n[t]) {
|
|
2366
2366
|
case ".":
|
|
@@ -2376,11 +2376,11 @@ function cl(n) {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
return s > 0 ? n.slice(0, s) + n.slice(r + 1) : n;
|
|
2378
2378
|
}
|
|
2379
|
-
var
|
|
2380
|
-
function
|
|
2379
|
+
var Oa;
|
|
2380
|
+
function hl(n, e) {
|
|
2381
2381
|
var t = dn(n, e);
|
|
2382
2382
|
if (!t) return n + "";
|
|
2383
|
-
var s = t[0], r = t[1], a = r - (
|
|
2383
|
+
var s = t[0], r = t[1], a = r - (Oa = Math.max(-8, Math.min(8, Math.floor(r / 3))) * 3) + 1, i = s.length;
|
|
2384
2384
|
return a === i ? s : a > i ? s + new Array(a - i + 1).join("0") : a > 0 ? s.slice(0, a) + "." + s.slice(a) : "0." + new Array(1 - a).join("0") + dn(n, Math.max(0, e + a - 1))[0];
|
|
2385
2385
|
}
|
|
2386
2386
|
function tr(n, e) {
|
|
@@ -2393,14 +2393,14 @@ const er = {
|
|
|
2393
2393
|
"%": (n, e) => (n * 100).toFixed(e),
|
|
2394
2394
|
b: (n) => Math.round(n).toString(2),
|
|
2395
2395
|
c: (n) => n + "",
|
|
2396
|
-
d:
|
|
2396
|
+
d: il,
|
|
2397
2397
|
e: (n, e) => n.toExponential(e),
|
|
2398
2398
|
f: (n, e) => n.toFixed(e),
|
|
2399
2399
|
g: (n, e) => n.toPrecision(e),
|
|
2400
2400
|
o: (n) => Math.round(n).toString(8),
|
|
2401
2401
|
p: (n, e) => tr(n * 100, e),
|
|
2402
2402
|
r: tr,
|
|
2403
|
-
s:
|
|
2403
|
+
s: hl,
|
|
2404
2404
|
X: (n) => Math.round(n).toString(16).toUpperCase(),
|
|
2405
2405
|
x: (n) => Math.round(n).toString(16)
|
|
2406
2406
|
};
|
|
@@ -2408,8 +2408,8 @@ function nr(n) {
|
|
|
2408
2408
|
return n;
|
|
2409
2409
|
}
|
|
2410
2410
|
var sr = Array.prototype.map, rr = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
2411
|
-
function
|
|
2412
|
-
var e = n.grouping === void 0 || n.thousands === void 0 ? nr :
|
|
2411
|
+
function dl(n) {
|
|
2412
|
+
var e = n.grouping === void 0 || n.thousands === void 0 ? nr : ol(sr.call(n.grouping, Number), n.thousands + ""), t = n.currency === void 0 ? "" : n.currency[0] + "", s = n.currency === void 0 ? "" : n.currency[1] + "", r = n.decimal === void 0 ? "." : n.decimal + "", a = n.numerals === void 0 ? nr : ll(sr.call(n.numerals, String)), i = n.percent === void 0 ? "%" : n.percent + "", o = n.minus === void 0 ? "−" : n.minus + "", l = n.nan === void 0 ? "NaN" : n.nan + "";
|
|
2413
2413
|
function u(p) {
|
|
2414
2414
|
p = fn(p);
|
|
2415
2415
|
var m = p.fill, x = p.align, b = p.sign, T = p.symbol, C = p.zero, O = p.width, N = p.comma, M = p.precision, L = p.trim, B = p.type;
|
|
@@ -2423,7 +2423,7 @@ function hl(n) {
|
|
|
2423
2423
|
else {
|
|
2424
2424
|
E = +E;
|
|
2425
2425
|
var Lt = E < 0 || 1 / E < 0;
|
|
2426
|
-
if (E = isNaN(E) ? l : kt(Math.abs(E), M), L && (E =
|
|
2426
|
+
if (E = isNaN(E) ? l : kt(Math.abs(E), M), L && (E = ul(E)), Lt && +E == 0 && b !== "+" && (Lt = !1), ct = (Lt ? b === "(" ? b : o : b === "-" || b === "(" ? "" : b) + ct, q = (B === "s" ? rr[8 + Oa / 3] : "") + q + (Lt && b === "(" ? ")" : ""), Nn) {
|
|
2427
2427
|
for (bt = -1, Be = E.length; ++bt < Be; )
|
|
2428
2428
|
if (At = E.charCodeAt(bt), 48 > At || At > 57) {
|
|
2429
2429
|
q = (At === 46 ? r + E.slice(bt + 1) : E.slice(bt)) + q, E = E.slice(0, bt);
|
|
@@ -2464,55 +2464,55 @@ function hl(n) {
|
|
|
2464
2464
|
formatPrefix: h
|
|
2465
2465
|
};
|
|
2466
2466
|
}
|
|
2467
|
-
var Ze,
|
|
2468
|
-
|
|
2467
|
+
var Ze, Da, Ya;
|
|
2468
|
+
fl({
|
|
2469
2469
|
thousands: ",",
|
|
2470
2470
|
grouping: [3],
|
|
2471
2471
|
currency: ["$", ""]
|
|
2472
2472
|
});
|
|
2473
|
-
function dl(n) {
|
|
2474
|
-
return Ze = hl(n), Oa = Ze.format, Da = Ze.formatPrefix, Ze;
|
|
2475
|
-
}
|
|
2476
2473
|
function fl(n) {
|
|
2474
|
+
return Ze = dl(n), Da = Ze.format, Ya = Ze.formatPrefix, Ze;
|
|
2475
|
+
}
|
|
2476
|
+
function pl(n) {
|
|
2477
2477
|
return Math.max(0, -Vt(Math.abs(n)));
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2479
|
+
function gl(n, e) {
|
|
2480
2480
|
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Vt(e) / 3))) * 3 - Vt(Math.abs(n)));
|
|
2481
2481
|
}
|
|
2482
|
-
function
|
|
2482
|
+
function ml(n, e) {
|
|
2483
2483
|
return n = Math.abs(n), e = Math.abs(e) - n, Math.max(0, Vt(e) - Vt(n)) + 1;
|
|
2484
2484
|
}
|
|
2485
|
-
function
|
|
2485
|
+
function yl(n, e, t, s) {
|
|
2486
2486
|
var r = Jn(n, e, t), a;
|
|
2487
2487
|
switch (s = fn(s ?? ",f"), s.type) {
|
|
2488
2488
|
case "s": {
|
|
2489
2489
|
var i = Math.max(Math.abs(n), Math.abs(e));
|
|
2490
|
-
return s.precision == null && !isNaN(a =
|
|
2490
|
+
return s.precision == null && !isNaN(a = gl(r, i)) && (s.precision = a), Ya(s, i);
|
|
2491
2491
|
}
|
|
2492
2492
|
case "":
|
|
2493
2493
|
case "e":
|
|
2494
2494
|
case "g":
|
|
2495
2495
|
case "p":
|
|
2496
2496
|
case "r": {
|
|
2497
|
-
s.precision == null && !isNaN(a =
|
|
2497
|
+
s.precision == null && !isNaN(a = ml(r, Math.max(Math.abs(n), Math.abs(e)))) && (s.precision = a - (s.type === "e"));
|
|
2498
2498
|
break;
|
|
2499
2499
|
}
|
|
2500
2500
|
case "f":
|
|
2501
2501
|
case "%": {
|
|
2502
|
-
s.precision == null && !isNaN(a =
|
|
2502
|
+
s.precision == null && !isNaN(a = pl(r)) && (s.precision = a - (s.type === "%") * 2);
|
|
2503
2503
|
break;
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
|
-
return
|
|
2506
|
+
return Da(s);
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2508
|
+
function wl(n) {
|
|
2509
2509
|
var e = n.domain;
|
|
2510
2510
|
return n.ticks = function(t) {
|
|
2511
2511
|
var s = e();
|
|
2512
|
-
return
|
|
2512
|
+
return Mo(s[0], s[s.length - 1], t ?? 10);
|
|
2513
2513
|
}, n.tickFormat = function(t, s) {
|
|
2514
2514
|
var r = e();
|
|
2515
|
-
return
|
|
2515
|
+
return yl(r[0], r[r.length - 1], t ?? 10, s);
|
|
2516
2516
|
}, n.nice = function(t) {
|
|
2517
2517
|
t == null && (t = 10);
|
|
2518
2518
|
var s = e(), r = 0, a = s.length - 1, i = s[r], o = s[a], l, u, h = 10;
|
|
@@ -2530,13 +2530,13 @@ function yl(n) {
|
|
|
2530
2530
|
return n;
|
|
2531
2531
|
}, n;
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2534
|
-
var n =
|
|
2533
|
+
function Aa() {
|
|
2534
|
+
var n = Ma();
|
|
2535
2535
|
return n.copy = function() {
|
|
2536
|
-
return
|
|
2537
|
-
},
|
|
2536
|
+
return Ra(n, Aa());
|
|
2537
|
+
}, Ea.apply(n, arguments), wl(n);
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2539
|
+
function xl(n, e) {
|
|
2540
2540
|
n = n.slice();
|
|
2541
2541
|
var t = 0, s = n.length - 1, r = n[t], a = n[s], i;
|
|
2542
2542
|
return a < r && (i = t, t = s, s = i, i = r, r = a, a = i), n[t] = e.floor(r), n[s] = e.ceil(a), n;
|
|
@@ -2591,24 +2591,24 @@ const _s = A((n) => {
|
|
|
2591
2591
|
n.setTime(+n + e * K);
|
|
2592
2592
|
}, (n, e) => (e - n) / K, (n) => n.getMinutes());
|
|
2593
2593
|
_s.range;
|
|
2594
|
-
const
|
|
2594
|
+
const bl = A((n) => {
|
|
2595
2595
|
n.setUTCSeconds(0, 0);
|
|
2596
2596
|
}, (n, e) => {
|
|
2597
2597
|
n.setTime(+n + e * K);
|
|
2598
2598
|
}, (n, e) => (e - n) / K, (n) => n.getUTCMinutes());
|
|
2599
|
-
|
|
2599
|
+
bl.range;
|
|
2600
2600
|
const Ns = A((n) => {
|
|
2601
2601
|
n.setTime(n - n.getMilliseconds() - n.getSeconds() * ht - n.getMinutes() * K);
|
|
2602
2602
|
}, (n, e) => {
|
|
2603
2603
|
n.setTime(+n + e * dt);
|
|
2604
2604
|
}, (n, e) => (e - n) / dt, (n) => n.getHours());
|
|
2605
2605
|
Ns.range;
|
|
2606
|
-
const
|
|
2606
|
+
const vl = A((n) => {
|
|
2607
2607
|
n.setUTCMinutes(0, 0, 0);
|
|
2608
2608
|
}, (n, e) => {
|
|
2609
2609
|
n.setTime(+n + e * dt);
|
|
2610
2610
|
}, (n, e) => (e - n) / dt, (n) => n.getUTCHours());
|
|
2611
|
-
|
|
2611
|
+
vl.range;
|
|
2612
2612
|
const Ne = A(
|
|
2613
2613
|
(n) => n.setHours(0, 0, 0, 0),
|
|
2614
2614
|
(n, e) => n.setDate(n.getDate() + e),
|
|
@@ -2622,12 +2622,12 @@ const Is = A((n) => {
|
|
|
2622
2622
|
n.setUTCDate(n.getUTCDate() + e);
|
|
2623
2623
|
}, (n, e) => (e - n) / gt, (n) => n.getUTCDate() - 1);
|
|
2624
2624
|
Is.range;
|
|
2625
|
-
const
|
|
2625
|
+
const Tl = A((n) => {
|
|
2626
2626
|
n.setUTCHours(0, 0, 0, 0);
|
|
2627
2627
|
}, (n, e) => {
|
|
2628
2628
|
n.setUTCDate(n.getUTCDate() + e);
|
|
2629
2629
|
}, (n, e) => (e - n) / gt, (n) => Math.floor(n / gt));
|
|
2630
|
-
|
|
2630
|
+
Tl.range;
|
|
2631
2631
|
function Dt(n) {
|
|
2632
2632
|
return A((e) => {
|
|
2633
2633
|
e.setDate(e.getDate() - (e.getDay() + 7 - n) % 7), e.setHours(0, 0, 0, 0);
|
|
@@ -2635,14 +2635,14 @@ function Dt(n) {
|
|
|
2635
2635
|
e.setDate(e.getDate() + t * 7);
|
|
2636
2636
|
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * K) / Ls);
|
|
2637
2637
|
}
|
|
2638
|
-
const Ln = Dt(0), gn = Dt(1),
|
|
2638
|
+
const Ln = Dt(0), gn = Dt(1), Sl = Dt(2), El = Dt(3), Kt = Dt(4), Cl = Dt(5), kl = Dt(6);
|
|
2639
2639
|
Ln.range;
|
|
2640
2640
|
gn.range;
|
|
2641
|
-
Tl.range;
|
|
2642
2641
|
Sl.range;
|
|
2643
|
-
Kt.range;
|
|
2644
2642
|
El.range;
|
|
2643
|
+
Kt.range;
|
|
2645
2644
|
Cl.range;
|
|
2645
|
+
kl.range;
|
|
2646
2646
|
function Yt(n) {
|
|
2647
2647
|
return A((e) => {
|
|
2648
2648
|
e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - n) % 7), e.setUTCHours(0, 0, 0, 0);
|
|
@@ -2650,26 +2650,26 @@ function Yt(n) {
|
|
|
2650
2650
|
e.setUTCDate(e.getUTCDate() + t * 7);
|
|
2651
2651
|
}, (e, t) => (t - e) / Ls);
|
|
2652
2652
|
}
|
|
2653
|
-
const
|
|
2654
|
-
|
|
2653
|
+
const La = Yt(0), mn = Yt(1), Pl = Yt(2), Rl = Yt(3), Qt = Yt(4), Ml = Yt(5), Ol = Yt(6);
|
|
2654
|
+
La.range;
|
|
2655
2655
|
mn.range;
|
|
2656
|
-
kl.range;
|
|
2657
2656
|
Pl.range;
|
|
2658
|
-
Qt.range;
|
|
2659
2657
|
Rl.range;
|
|
2658
|
+
Qt.range;
|
|
2660
2659
|
Ml.range;
|
|
2660
|
+
Ol.range;
|
|
2661
2661
|
const Bs = A((n) => {
|
|
2662
2662
|
n.setDate(1), n.setHours(0, 0, 0, 0);
|
|
2663
2663
|
}, (n, e) => {
|
|
2664
2664
|
n.setMonth(n.getMonth() + e);
|
|
2665
2665
|
}, (n, e) => e.getMonth() - n.getMonth() + (e.getFullYear() - n.getFullYear()) * 12, (n) => n.getMonth());
|
|
2666
2666
|
Bs.range;
|
|
2667
|
-
const
|
|
2667
|
+
const Dl = A((n) => {
|
|
2668
2668
|
n.setUTCDate(1), n.setUTCHours(0, 0, 0, 0);
|
|
2669
2669
|
}, (n, e) => {
|
|
2670
2670
|
n.setUTCMonth(n.getUTCMonth() + e);
|
|
2671
2671
|
}, (n, e) => e.getUTCMonth() - n.getUTCMonth() + (e.getUTCFullYear() - n.getUTCFullYear()) * 12, (n) => n.getUTCMonth());
|
|
2672
|
-
|
|
2672
|
+
Dl.range;
|
|
2673
2673
|
const mt = A((n) => {
|
|
2674
2674
|
n.setMonth(0, 1), n.setHours(0, 0, 0, 0);
|
|
2675
2675
|
}, (n, e) => {
|
|
@@ -2692,7 +2692,7 @@ Ot.every = (n) => !isFinite(n = Math.floor(n)) || !(n > 0) ? null : A((e) => {
|
|
|
2692
2692
|
e.setUTCFullYear(e.getUTCFullYear() + t * n);
|
|
2693
2693
|
});
|
|
2694
2694
|
Ot.range;
|
|
2695
|
-
function
|
|
2695
|
+
function Yl(n, e, t, s, r, a) {
|
|
2696
2696
|
const i = [
|
|
2697
2697
|
[Ut, 1, ht],
|
|
2698
2698
|
[Ut, 5, 5 * ht],
|
|
@@ -2728,7 +2728,7 @@ function Dl(n, e, t, s, r, a) {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
return [o, l];
|
|
2730
2730
|
}
|
|
2731
|
-
const [
|
|
2731
|
+
const [Al, Ll] = Yl(mt, Bs, Ln, Ne, Ns, _s);
|
|
2732
2732
|
function jn(n) {
|
|
2733
2733
|
if (0 <= n.y && n.y < 100) {
|
|
2734
2734
|
var e = new Date(-1, n.m, n.d, n.H, n.M, n.S, n.L);
|
|
@@ -2746,72 +2746,72 @@ function Hn(n) {
|
|
|
2746
2746
|
function te(n, e, t) {
|
|
2747
2747
|
return { y: n, m: e, d: t, H: 0, M: 0, S: 0, L: 0 };
|
|
2748
2748
|
}
|
|
2749
|
-
function
|
|
2749
|
+
function _l(n) {
|
|
2750
2750
|
var e = n.dateTime, t = n.date, s = n.time, r = n.periods, a = n.days, i = n.shortDays, o = n.months, l = n.shortMonths, u = ee(r), h = ne(r), p = ee(a), m = ne(a), x = ee(i), b = ne(i), T = ee(o), C = ne(o), O = ee(l), N = ne(l), M = {
|
|
2751
2751
|
a: Lt,
|
|
2752
2752
|
A: _t,
|
|
2753
2753
|
b: J,
|
|
2754
|
-
B:
|
|
2754
|
+
B: Ja,
|
|
2755
2755
|
c: null,
|
|
2756
2756
|
d: hr,
|
|
2757
2757
|
e: hr,
|
|
2758
|
-
f:
|
|
2759
|
-
g:
|
|
2760
|
-
G:
|
|
2761
|
-
H:
|
|
2762
|
-
I:
|
|
2763
|
-
j:
|
|
2764
|
-
L:
|
|
2765
|
-
m:
|
|
2766
|
-
M:
|
|
2767
|
-
p:
|
|
2768
|
-
q:
|
|
2758
|
+
f: rc,
|
|
2759
|
+
g: pc,
|
|
2760
|
+
G: mc,
|
|
2761
|
+
H: ec,
|
|
2762
|
+
I: nc,
|
|
2763
|
+
j: sc,
|
|
2764
|
+
L: _a,
|
|
2765
|
+
m: ac,
|
|
2766
|
+
M: ic,
|
|
2767
|
+
p: ti,
|
|
2768
|
+
q: ei,
|
|
2769
2769
|
Q: pr,
|
|
2770
2770
|
s: gr,
|
|
2771
|
-
S:
|
|
2772
|
-
u:
|
|
2773
|
-
U:
|
|
2774
|
-
V:
|
|
2775
|
-
w:
|
|
2776
|
-
W:
|
|
2771
|
+
S: oc,
|
|
2772
|
+
u: lc,
|
|
2773
|
+
U: cc,
|
|
2774
|
+
V: uc,
|
|
2775
|
+
w: hc,
|
|
2776
|
+
W: dc,
|
|
2777
2777
|
x: null,
|
|
2778
2778
|
X: null,
|
|
2779
|
-
y:
|
|
2780
|
-
Y:
|
|
2781
|
-
Z:
|
|
2779
|
+
y: fc,
|
|
2780
|
+
Y: gc,
|
|
2781
|
+
Z: yc,
|
|
2782
2782
|
"%": fr
|
|
2783
2783
|
}, L = {
|
|
2784
|
-
a:
|
|
2785
|
-
A:
|
|
2786
|
-
b:
|
|
2787
|
-
B:
|
|
2784
|
+
a: ni,
|
|
2785
|
+
A: si,
|
|
2786
|
+
b: ri,
|
|
2787
|
+
B: ai,
|
|
2788
2788
|
c: null,
|
|
2789
2789
|
d: dr,
|
|
2790
2790
|
e: dr,
|
|
2791
|
-
f:
|
|
2792
|
-
g:
|
|
2793
|
-
G:
|
|
2794
|
-
H:
|
|
2795
|
-
I:
|
|
2796
|
-
j:
|
|
2797
|
-
L:
|
|
2798
|
-
m:
|
|
2799
|
-
M:
|
|
2800
|
-
p:
|
|
2801
|
-
q:
|
|
2791
|
+
f: vc,
|
|
2792
|
+
g: Dc,
|
|
2793
|
+
G: Ac,
|
|
2794
|
+
H: wc,
|
|
2795
|
+
I: xc,
|
|
2796
|
+
j: bc,
|
|
2797
|
+
L: Ia,
|
|
2798
|
+
m: Tc,
|
|
2799
|
+
M: Sc,
|
|
2800
|
+
p: ii,
|
|
2801
|
+
q: oi,
|
|
2802
2802
|
Q: pr,
|
|
2803
2803
|
s: gr,
|
|
2804
|
-
S:
|
|
2805
|
-
u:
|
|
2806
|
-
U:
|
|
2807
|
-
V:
|
|
2808
|
-
w:
|
|
2809
|
-
W:
|
|
2804
|
+
S: Ec,
|
|
2805
|
+
u: Cc,
|
|
2806
|
+
U: kc,
|
|
2807
|
+
V: Pc,
|
|
2808
|
+
w: Rc,
|
|
2809
|
+
W: Mc,
|
|
2810
2810
|
x: null,
|
|
2811
2811
|
X: null,
|
|
2812
|
-
y:
|
|
2813
|
-
Y:
|
|
2814
|
-
Z:
|
|
2812
|
+
y: Oc,
|
|
2813
|
+
Y: Yc,
|
|
2814
|
+
Z: Lc,
|
|
2815
2815
|
"%": fr
|
|
2816
2816
|
}, B = {
|
|
2817
2817
|
a: Ie,
|
|
@@ -2821,31 +2821,31 @@ function Ll(n) {
|
|
|
2821
2821
|
c: bt,
|
|
2822
2822
|
d: cr,
|
|
2823
2823
|
e: cr,
|
|
2824
|
-
f:
|
|
2824
|
+
f: Kl,
|
|
2825
2825
|
g: lr,
|
|
2826
2826
|
G: or,
|
|
2827
2827
|
H: ur,
|
|
2828
2828
|
I: ur,
|
|
2829
|
-
j:
|
|
2830
|
-
L:
|
|
2831
|
-
m:
|
|
2832
|
-
M:
|
|
2829
|
+
j: Wl,
|
|
2830
|
+
L: Vl,
|
|
2831
|
+
m: Hl,
|
|
2832
|
+
M: Xl,
|
|
2833
2833
|
p: Nn,
|
|
2834
|
-
q:
|
|
2835
|
-
Q:
|
|
2836
|
-
s:
|
|
2837
|
-
S:
|
|
2838
|
-
u:
|
|
2839
|
-
U:
|
|
2840
|
-
V:
|
|
2841
|
-
w:
|
|
2842
|
-
W:
|
|
2834
|
+
q: jl,
|
|
2835
|
+
Q: Jl,
|
|
2836
|
+
s: tc,
|
|
2837
|
+
S: Gl,
|
|
2838
|
+
u: $l,
|
|
2839
|
+
U: Zl,
|
|
2840
|
+
V: Fl,
|
|
2841
|
+
w: Ul,
|
|
2842
|
+
W: zl,
|
|
2843
2843
|
x: Be,
|
|
2844
2844
|
X: At,
|
|
2845
2845
|
y: lr,
|
|
2846
2846
|
Y: or,
|
|
2847
|
-
Z:
|
|
2848
|
-
"%":
|
|
2847
|
+
Z: ql,
|
|
2848
|
+
"%": Ql
|
|
2849
2849
|
};
|
|
2850
2850
|
M.x = v(t, M), M.X = v(s, M), M.c = v(e, M), L.x = v(t, L), L.X = v(s, L), L.c = v(e, L);
|
|
2851
2851
|
function v(w, S) {
|
|
@@ -2917,31 +2917,31 @@ function Ll(n) {
|
|
|
2917
2917
|
function J(w) {
|
|
2918
2918
|
return l[w.getMonth()];
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2920
|
+
function Ja(w) {
|
|
2921
2921
|
return o[w.getMonth()];
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2923
|
+
function ti(w) {
|
|
2924
2924
|
return r[+(w.getHours() >= 12)];
|
|
2925
2925
|
}
|
|
2926
|
-
function
|
|
2926
|
+
function ei(w) {
|
|
2927
2927
|
return 1 + ~~(w.getMonth() / 3);
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function ni(w) {
|
|
2930
2930
|
return i[w.getUTCDay()];
|
|
2931
2931
|
}
|
|
2932
|
-
function
|
|
2932
|
+
function si(w) {
|
|
2933
2933
|
return a[w.getUTCDay()];
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function ri(w) {
|
|
2936
2936
|
return l[w.getUTCMonth()];
|
|
2937
2937
|
}
|
|
2938
|
-
function
|
|
2938
|
+
function ai(w) {
|
|
2939
2939
|
return o[w.getUTCMonth()];
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function ii(w) {
|
|
2942
2942
|
return r[+(w.getUTCHours() >= 12)];
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function oi(w) {
|
|
2945
2945
|
return 1 + ~~(w.getUTCMonth() / 3);
|
|
2946
2946
|
}
|
|
2947
2947
|
return {
|
|
@@ -2971,37 +2971,37 @@ function Ll(n) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
};
|
|
2973
2973
|
}
|
|
2974
|
-
var ir = { "-": "", _: " ", 0: "0" }, _ = /^\s*\d+/,
|
|
2974
|
+
var ir = { "-": "", _: " ", 0: "0" }, _ = /^\s*\d+/, Nl = /^%/, Il = /[\\^$*+?|[\]().{}]/g;
|
|
2975
2975
|
function P(n, e, t) {
|
|
2976
2976
|
var s = n < 0 ? "-" : "", r = (s ? -n : n) + "", a = r.length;
|
|
2977
2977
|
return s + (a < t ? new Array(t - a + 1).join(e) + r : r);
|
|
2978
2978
|
}
|
|
2979
|
-
function
|
|
2980
|
-
return n.replace(
|
|
2979
|
+
function Bl(n) {
|
|
2980
|
+
return n.replace(Il, "\\$&");
|
|
2981
2981
|
}
|
|
2982
2982
|
function ee(n) {
|
|
2983
|
-
return new RegExp("^(?:" + n.map(
|
|
2983
|
+
return new RegExp("^(?:" + n.map(Bl).join("|") + ")", "i");
|
|
2984
2984
|
}
|
|
2985
2985
|
function ne(n) {
|
|
2986
2986
|
return new Map(n.map((e, t) => [e.toLowerCase(), t]));
|
|
2987
2987
|
}
|
|
2988
|
-
function
|
|
2988
|
+
function Ul(n, e, t) {
|
|
2989
2989
|
var s = _.exec(e.slice(t, t + 1));
|
|
2990
2990
|
return s ? (n.w = +s[0], t + s[0].length) : -1;
|
|
2991
2991
|
}
|
|
2992
|
-
function
|
|
2992
|
+
function $l(n, e, t) {
|
|
2993
2993
|
var s = _.exec(e.slice(t, t + 1));
|
|
2994
2994
|
return s ? (n.u = +s[0], t + s[0].length) : -1;
|
|
2995
2995
|
}
|
|
2996
|
-
function
|
|
2996
|
+
function Zl(n, e, t) {
|
|
2997
2997
|
var s = _.exec(e.slice(t, t + 2));
|
|
2998
2998
|
return s ? (n.U = +s[0], t + s[0].length) : -1;
|
|
2999
2999
|
}
|
|
3000
|
-
function
|
|
3000
|
+
function Fl(n, e, t) {
|
|
3001
3001
|
var s = _.exec(e.slice(t, t + 2));
|
|
3002
3002
|
return s ? (n.V = +s[0], t + s[0].length) : -1;
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function zl(n, e, t) {
|
|
3005
3005
|
var s = _.exec(e.slice(t, t + 2));
|
|
3006
3006
|
return s ? (n.W = +s[0], t + s[0].length) : -1;
|
|
3007
3007
|
}
|
|
@@ -3013,15 +3013,15 @@ function lr(n, e, t) {
|
|
|
3013
3013
|
var s = _.exec(e.slice(t, t + 2));
|
|
3014
3014
|
return s ? (n.y = +s[0] + (+s[0] > 68 ? 1900 : 2e3), t + s[0].length) : -1;
|
|
3015
3015
|
}
|
|
3016
|
-
function
|
|
3016
|
+
function ql(n, e, t) {
|
|
3017
3017
|
var s = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t, t + 6));
|
|
3018
3018
|
return s ? (n.Z = s[1] ? 0 : -(s[2] + (s[3] || "00")), t + s[0].length) : -1;
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function jl(n, e, t) {
|
|
3021
3021
|
var s = _.exec(e.slice(t, t + 1));
|
|
3022
3022
|
return s ? (n.q = s[0] * 3 - 3, t + s[0].length) : -1;
|
|
3023
3023
|
}
|
|
3024
|
-
function
|
|
3024
|
+
function Hl(n, e, t) {
|
|
3025
3025
|
var s = _.exec(e.slice(t, t + 2));
|
|
3026
3026
|
return s ? (n.m = s[0] - 1, t + s[0].length) : -1;
|
|
3027
3027
|
}
|
|
@@ -3029,7 +3029,7 @@ function cr(n, e, t) {
|
|
|
3029
3029
|
var s = _.exec(e.slice(t, t + 2));
|
|
3030
3030
|
return s ? (n.d = +s[0], t + s[0].length) : -1;
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3032
|
+
function Wl(n, e, t) {
|
|
3033
3033
|
var s = _.exec(e.slice(t, t + 3));
|
|
3034
3034
|
return s ? (n.m = 0, n.d = +s[0], t + s[0].length) : -1;
|
|
3035
3035
|
}
|
|
@@ -3037,159 +3037,159 @@ function ur(n, e, t) {
|
|
|
3037
3037
|
var s = _.exec(e.slice(t, t + 2));
|
|
3038
3038
|
return s ? (n.H = +s[0], t + s[0].length) : -1;
|
|
3039
3039
|
}
|
|
3040
|
-
function
|
|
3040
|
+
function Xl(n, e, t) {
|
|
3041
3041
|
var s = _.exec(e.slice(t, t + 2));
|
|
3042
3042
|
return s ? (n.M = +s[0], t + s[0].length) : -1;
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function Gl(n, e, t) {
|
|
3045
3045
|
var s = _.exec(e.slice(t, t + 2));
|
|
3046
3046
|
return s ? (n.S = +s[0], t + s[0].length) : -1;
|
|
3047
3047
|
}
|
|
3048
|
-
function
|
|
3048
|
+
function Vl(n, e, t) {
|
|
3049
3049
|
var s = _.exec(e.slice(t, t + 3));
|
|
3050
3050
|
return s ? (n.L = +s[0], t + s[0].length) : -1;
|
|
3051
3051
|
}
|
|
3052
|
-
function
|
|
3052
|
+
function Kl(n, e, t) {
|
|
3053
3053
|
var s = _.exec(e.slice(t, t + 6));
|
|
3054
3054
|
return s ? (n.L = Math.floor(s[0] / 1e3), t + s[0].length) : -1;
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3057
|
-
var s =
|
|
3056
|
+
function Ql(n, e, t) {
|
|
3057
|
+
var s = Nl.exec(e.slice(t, t + 1));
|
|
3058
3058
|
return s ? t + s[0].length : -1;
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3060
|
+
function Jl(n, e, t) {
|
|
3061
3061
|
var s = _.exec(e.slice(t));
|
|
3062
3062
|
return s ? (n.Q = +s[0], t + s[0].length) : -1;
|
|
3063
3063
|
}
|
|
3064
|
-
function
|
|
3064
|
+
function tc(n, e, t) {
|
|
3065
3065
|
var s = _.exec(e.slice(t));
|
|
3066
3066
|
return s ? (n.s = +s[0], t + s[0].length) : -1;
|
|
3067
3067
|
}
|
|
3068
3068
|
function hr(n, e) {
|
|
3069
3069
|
return P(n.getDate(), e, 2);
|
|
3070
3070
|
}
|
|
3071
|
-
function
|
|
3071
|
+
function ec(n, e) {
|
|
3072
3072
|
return P(n.getHours(), e, 2);
|
|
3073
3073
|
}
|
|
3074
|
-
function
|
|
3074
|
+
function nc(n, e) {
|
|
3075
3075
|
return P(n.getHours() % 12 || 12, e, 2);
|
|
3076
3076
|
}
|
|
3077
|
-
function
|
|
3077
|
+
function sc(n, e) {
|
|
3078
3078
|
return P(1 + Ne.count(mt(n), n), e, 3);
|
|
3079
3079
|
}
|
|
3080
|
-
function
|
|
3080
|
+
function _a(n, e) {
|
|
3081
3081
|
return P(n.getMilliseconds(), e, 3);
|
|
3082
3082
|
}
|
|
3083
|
-
function sc(n, e) {
|
|
3084
|
-
return La(n, e) + "000";
|
|
3085
|
-
}
|
|
3086
3083
|
function rc(n, e) {
|
|
3087
|
-
return
|
|
3084
|
+
return _a(n, e) + "000";
|
|
3088
3085
|
}
|
|
3089
3086
|
function ac(n, e) {
|
|
3090
|
-
return P(n.
|
|
3087
|
+
return P(n.getMonth() + 1, e, 2);
|
|
3091
3088
|
}
|
|
3092
3089
|
function ic(n, e) {
|
|
3090
|
+
return P(n.getMinutes(), e, 2);
|
|
3091
|
+
}
|
|
3092
|
+
function oc(n, e) {
|
|
3093
3093
|
return P(n.getSeconds(), e, 2);
|
|
3094
3094
|
}
|
|
3095
|
-
function
|
|
3095
|
+
function lc(n) {
|
|
3096
3096
|
var e = n.getDay();
|
|
3097
3097
|
return e === 0 ? 7 : e;
|
|
3098
3098
|
}
|
|
3099
|
-
function
|
|
3099
|
+
function cc(n, e) {
|
|
3100
3100
|
return P(Ln.count(mt(n) - 1, n), e, 2);
|
|
3101
3101
|
}
|
|
3102
|
-
function
|
|
3102
|
+
function Na(n) {
|
|
3103
3103
|
var e = n.getDay();
|
|
3104
3104
|
return e >= 4 || e === 0 ? Kt(n) : Kt.ceil(n);
|
|
3105
3105
|
}
|
|
3106
|
-
function
|
|
3107
|
-
return n =
|
|
3106
|
+
function uc(n, e) {
|
|
3107
|
+
return n = Na(n), P(Kt.count(mt(n), n) + (mt(n).getDay() === 4), e, 2);
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3109
|
+
function hc(n) {
|
|
3110
3110
|
return n.getDay();
|
|
3111
3111
|
}
|
|
3112
|
-
function hc(n, e) {
|
|
3113
|
-
return P(gn.count(mt(n) - 1, n), e, 2);
|
|
3114
|
-
}
|
|
3115
3112
|
function dc(n, e) {
|
|
3116
|
-
return P(
|
|
3113
|
+
return P(gn.count(mt(n) - 1, n), e, 2);
|
|
3117
3114
|
}
|
|
3118
3115
|
function fc(n, e) {
|
|
3119
|
-
return
|
|
3116
|
+
return P(n.getFullYear() % 100, e, 2);
|
|
3120
3117
|
}
|
|
3121
3118
|
function pc(n, e) {
|
|
3122
|
-
return P(n.getFullYear() %
|
|
3119
|
+
return n = Na(n), P(n.getFullYear() % 100, e, 2);
|
|
3123
3120
|
}
|
|
3124
3121
|
function gc(n, e) {
|
|
3122
|
+
return P(n.getFullYear() % 1e4, e, 4);
|
|
3123
|
+
}
|
|
3124
|
+
function mc(n, e) {
|
|
3125
3125
|
var t = n.getDay();
|
|
3126
3126
|
return n = t >= 4 || t === 0 ? Kt(n) : Kt.ceil(n), P(n.getFullYear() % 1e4, e, 4);
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function yc(n) {
|
|
3129
3129
|
var e = n.getTimezoneOffset();
|
|
3130
3130
|
return (e > 0 ? "-" : (e *= -1, "+")) + P(e / 60 | 0, "0", 2) + P(e % 60, "0", 2);
|
|
3131
3131
|
}
|
|
3132
3132
|
function dr(n, e) {
|
|
3133
3133
|
return P(n.getUTCDate(), e, 2);
|
|
3134
3134
|
}
|
|
3135
|
-
function
|
|
3135
|
+
function wc(n, e) {
|
|
3136
3136
|
return P(n.getUTCHours(), e, 2);
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function xc(n, e) {
|
|
3139
3139
|
return P(n.getUTCHours() % 12 || 12, e, 2);
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function bc(n, e) {
|
|
3142
3142
|
return P(1 + Is.count(Ot(n), n), e, 3);
|
|
3143
3143
|
}
|
|
3144
|
-
function
|
|
3144
|
+
function Ia(n, e) {
|
|
3145
3145
|
return P(n.getUTCMilliseconds(), e, 3);
|
|
3146
3146
|
}
|
|
3147
|
-
function bc(n, e) {
|
|
3148
|
-
return Na(n, e) + "000";
|
|
3149
|
-
}
|
|
3150
3147
|
function vc(n, e) {
|
|
3151
|
-
return
|
|
3148
|
+
return Ia(n, e) + "000";
|
|
3152
3149
|
}
|
|
3153
3150
|
function Tc(n, e) {
|
|
3154
|
-
return P(n.
|
|
3151
|
+
return P(n.getUTCMonth() + 1, e, 2);
|
|
3155
3152
|
}
|
|
3156
3153
|
function Sc(n, e) {
|
|
3154
|
+
return P(n.getUTCMinutes(), e, 2);
|
|
3155
|
+
}
|
|
3156
|
+
function Ec(n, e) {
|
|
3157
3157
|
return P(n.getUTCSeconds(), e, 2);
|
|
3158
3158
|
}
|
|
3159
|
-
function
|
|
3159
|
+
function Cc(n) {
|
|
3160
3160
|
var e = n.getUTCDay();
|
|
3161
3161
|
return e === 0 ? 7 : e;
|
|
3162
3162
|
}
|
|
3163
|
-
function
|
|
3164
|
-
return P(
|
|
3163
|
+
function kc(n, e) {
|
|
3164
|
+
return P(La.count(Ot(n) - 1, n), e, 2);
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function Ba(n) {
|
|
3167
3167
|
var e = n.getUTCDay();
|
|
3168
3168
|
return e >= 4 || e === 0 ? Qt(n) : Qt.ceil(n);
|
|
3169
3169
|
}
|
|
3170
|
-
function
|
|
3171
|
-
return n =
|
|
3170
|
+
function Pc(n, e) {
|
|
3171
|
+
return n = Ba(n), P(Qt.count(Ot(n), n) + (Ot(n).getUTCDay() === 4), e, 2);
|
|
3172
3172
|
}
|
|
3173
|
-
function
|
|
3173
|
+
function Rc(n) {
|
|
3174
3174
|
return n.getUTCDay();
|
|
3175
3175
|
}
|
|
3176
|
-
function Rc(n, e) {
|
|
3177
|
-
return P(mn.count(Ot(n) - 1, n), e, 2);
|
|
3178
|
-
}
|
|
3179
3176
|
function Mc(n, e) {
|
|
3180
|
-
return P(
|
|
3177
|
+
return P(mn.count(Ot(n) - 1, n), e, 2);
|
|
3181
3178
|
}
|
|
3182
3179
|
function Oc(n, e) {
|
|
3183
|
-
return
|
|
3180
|
+
return P(n.getUTCFullYear() % 100, e, 2);
|
|
3184
3181
|
}
|
|
3185
3182
|
function Dc(n, e) {
|
|
3186
|
-
return P(n.getUTCFullYear() %
|
|
3183
|
+
return n = Ba(n), P(n.getUTCFullYear() % 100, e, 2);
|
|
3187
3184
|
}
|
|
3188
3185
|
function Yc(n, e) {
|
|
3186
|
+
return P(n.getUTCFullYear() % 1e4, e, 4);
|
|
3187
|
+
}
|
|
3188
|
+
function Ac(n, e) {
|
|
3189
3189
|
var t = n.getUTCDay();
|
|
3190
3190
|
return n = t >= 4 || t === 0 ? Qt(n) : Qt.ceil(n), P(n.getUTCFullYear() % 1e4, e, 4);
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3192
|
+
function Lc() {
|
|
3193
3193
|
return "+0000";
|
|
3194
3194
|
}
|
|
3195
3195
|
function fr() {
|
|
@@ -3201,8 +3201,8 @@ function pr(n) {
|
|
|
3201
3201
|
function gr(n) {
|
|
3202
3202
|
return Math.floor(+n / 1e3);
|
|
3203
3203
|
}
|
|
3204
|
-
var Nt,
|
|
3205
|
-
|
|
3204
|
+
var Nt, Ua;
|
|
3205
|
+
_c({
|
|
3206
3206
|
dateTime: "%x, %X",
|
|
3207
3207
|
date: "%-m/%-d/%Y",
|
|
3208
3208
|
time: "%-I:%M:%S %p",
|
|
@@ -3212,24 +3212,24 @@ Lc({
|
|
|
3212
3212
|
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
3213
3213
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
3214
3214
|
});
|
|
3215
|
-
function Lc(n) {
|
|
3216
|
-
return Nt = Ll(n), Ba = Nt.format, Nt.parse, Nt.utcFormat, Nt.utcParse, Nt;
|
|
3217
|
-
}
|
|
3218
3215
|
function _c(n) {
|
|
3219
|
-
return
|
|
3216
|
+
return Nt = _l(n), Ua = Nt.format, Nt.parse, Nt.utcFormat, Nt.utcParse, Nt;
|
|
3220
3217
|
}
|
|
3221
3218
|
function Nc(n) {
|
|
3219
|
+
return new Date(n);
|
|
3220
|
+
}
|
|
3221
|
+
function Ic(n) {
|
|
3222
3222
|
return n instanceof Date ? +n : +/* @__PURE__ */ new Date(+n);
|
|
3223
3223
|
}
|
|
3224
|
-
function
|
|
3225
|
-
var h =
|
|
3224
|
+
function $a(n, e, t, s, r, a, i, o, l, u) {
|
|
3225
|
+
var h = Ma(), p = h.invert, m = h.domain, x = u(".%L"), b = u(":%S"), T = u("%I:%M"), C = u("%I %p"), O = u("%a %d"), N = u("%b %d"), M = u("%B"), L = u("%Y");
|
|
3226
3226
|
function B(v) {
|
|
3227
3227
|
return (l(v) < v ? x : o(v) < v ? b : i(v) < v ? T : a(v) < v ? C : s(v) < v ? r(v) < v ? O : N : t(v) < v ? M : L)(v);
|
|
3228
3228
|
}
|
|
3229
3229
|
return h.invert = function(v) {
|
|
3230
3230
|
return new Date(p(v));
|
|
3231
3231
|
}, h.domain = function(v) {
|
|
3232
|
-
return arguments.length ? m(Array.from(v,
|
|
3232
|
+
return arguments.length ? m(Array.from(v, Ic)) : m().map(Nc);
|
|
3233
3233
|
}, h.ticks = function(v) {
|
|
3234
3234
|
var U = m();
|
|
3235
3235
|
return n(U[0], U[U.length - 1], v ?? 10);
|
|
@@ -3237,22 +3237,22 @@ function Ua(n, e, t, s, r, a, i, o, l, u) {
|
|
|
3237
3237
|
return U == null ? B : u(U);
|
|
3238
3238
|
}, h.nice = function(v) {
|
|
3239
3239
|
var U = m();
|
|
3240
|
-
return (!v || typeof v.range != "function") && (v = e(U[0], U[U.length - 1], v ?? 10)), v ? m(
|
|
3240
|
+
return (!v || typeof v.range != "function") && (v = e(U[0], U[U.length - 1], v ?? 10)), v ? m(xl(U, v)) : h;
|
|
3241
3241
|
}, h.copy = function() {
|
|
3242
|
-
return
|
|
3242
|
+
return Ra(h, $a(n, e, t, s, r, a, i, o, l, u));
|
|
3243
3243
|
}, h;
|
|
3244
3244
|
}
|
|
3245
|
-
function
|
|
3246
|
-
return
|
|
3245
|
+
function Bc() {
|
|
3246
|
+
return Ea.apply($a(Al, Ll, mt, Bs, Ln, Ne, Ns, _s, Ut, Ua).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
3247
3247
|
}
|
|
3248
|
-
const
|
|
3248
|
+
const Za = d.enum(["linear", "time"]), Fa = d.object({
|
|
3249
3249
|
tickSpacing: d.number().default(75),
|
|
3250
|
-
type:
|
|
3250
|
+
type: Za.optional().default("linear")
|
|
3251
3251
|
}), mr = (n) => {
|
|
3252
|
-
const e =
|
|
3253
|
-
return
|
|
3252
|
+
const e = Fa.parse(n);
|
|
3253
|
+
return Zc[e.type](e);
|
|
3254
3254
|
};
|
|
3255
|
-
class
|
|
3255
|
+
class Uc {
|
|
3256
3256
|
constructor(e) {
|
|
3257
3257
|
c(this, "props");
|
|
3258
3258
|
this.props = e;
|
|
@@ -3261,8 +3261,8 @@ class Bc {
|
|
|
3261
3261
|
const s = [0, t], r = [
|
|
3262
3262
|
new F(e.pos(0)).date(),
|
|
3263
3263
|
new F(e.pos(1)).date()
|
|
3264
|
-
], a =
|
|
3265
|
-
return a.ticks(
|
|
3264
|
+
], a = Bc().domain(r).range(s);
|
|
3265
|
+
return a.ticks(za(t, this.props.tickSpacing)).map((o) => ({
|
|
3266
3266
|
label: this.tickLabel(o),
|
|
3267
3267
|
position: a(o)
|
|
3268
3268
|
}));
|
|
@@ -3277,13 +3277,13 @@ class Bc {
|
|
|
3277
3277
|
return t.getSeconds() === 0 && t.getMilliseconds() === 0 && (s = `${t.getHours()}:${t.getMinutes().toString().padStart(2, "0")}`), s;
|
|
3278
3278
|
}
|
|
3279
3279
|
}
|
|
3280
|
-
class
|
|
3280
|
+
class $c {
|
|
3281
3281
|
constructor(e) {
|
|
3282
3282
|
c(this, "props");
|
|
3283
3283
|
this.props = e;
|
|
3284
3284
|
}
|
|
3285
3285
|
generate({ decimalToDataScale: e, size: t }) {
|
|
3286
|
-
const s = [0, t], r = [e.pos(0), e.pos(1)], a =
|
|
3286
|
+
const s = [0, t], r = [e.pos(0), e.pos(1)], a = Aa().domain(r).range(s), i = za(t, this.props.tickSpacing);
|
|
3287
3287
|
return a.ticks(i).map((l) => ({
|
|
3288
3288
|
label: this.tickLabel(l),
|
|
3289
3289
|
position: a(l)
|
|
@@ -3293,21 +3293,21 @@ class Uc {
|
|
|
3293
3293
|
return e.toString();
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
|
-
const
|
|
3296
|
+
const za = (n, e) => {
|
|
3297
3297
|
const t = Math.floor(n / e);
|
|
3298
3298
|
return t > 0 ? t : 1;
|
|
3299
|
-
},
|
|
3300
|
-
linear: (n) => new
|
|
3301
|
-
time: (n) => new
|
|
3302
|
-
},
|
|
3299
|
+
}, Zc = {
|
|
3300
|
+
linear: (n) => new $c(n),
|
|
3301
|
+
time: (n) => new Uc(n)
|
|
3302
|
+
}, qa = Fa.extend({
|
|
3303
3303
|
color: Y.z,
|
|
3304
|
-
type:
|
|
3304
|
+
type: Za.optional().default("linear"),
|
|
3305
3305
|
font: d.string(),
|
|
3306
3306
|
showGrid: d.boolean().optional().default(!0),
|
|
3307
3307
|
location: Tt.outer,
|
|
3308
3308
|
gridColor: Y.z
|
|
3309
3309
|
}), rt = 4;
|
|
3310
|
-
let
|
|
3310
|
+
let Fc = class {
|
|
3311
3311
|
constructor(e, t) {
|
|
3312
3312
|
c(this, "ctx");
|
|
3313
3313
|
c(this, "state");
|
|
@@ -3315,7 +3315,7 @@ let Zc = class {
|
|
|
3315
3315
|
this.ctx = e, this.state = t, this.tickFactory = mr(this.state);
|
|
3316
3316
|
}
|
|
3317
3317
|
setState(e) {
|
|
3318
|
-
this.state =
|
|
3318
|
+
this.state = gi(qa, e), this.tickFactory = mr(e);
|
|
3319
3319
|
}
|
|
3320
3320
|
render(e) {
|
|
3321
3321
|
const { lower2d: t } = this.ctx;
|
|
@@ -3793,18 +3793,18 @@ const yr = /(\d+(\.\d+)?)px/, Wn = (n, e) => {
|
|
|
3793
3793
|
if (t == null) return n;
|
|
3794
3794
|
const s = e.dim(t);
|
|
3795
3795
|
return n.replace(yr, `${s}px`);
|
|
3796
|
-
},
|
|
3796
|
+
}, zc = `precision mediump float;
|
|
3797
3797
|
|
|
3798
3798
|
void main(void) {
|
|
3799
3799
|
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
3800
3800
|
}
|
|
3801
|
-
`,
|
|
3801
|
+
`, qc = `attribute vec4 a_position;
|
|
3802
3802
|
|
|
3803
3803
|
void main(void) {
|
|
3804
3804
|
gl_Position = a_position;
|
|
3805
3805
|
}
|
|
3806
|
-
`, wr = (n) => new Error(`failed to compile webgl program: ${n}`),
|
|
3807
|
-
class
|
|
3806
|
+
`, wr = (n) => new Error(`failed to compile webgl program: ${n}`), jc = new Error("null shader encountered");
|
|
3807
|
+
class ja {
|
|
3808
3808
|
/**
|
|
3809
3809
|
* @constructor compiles the given vertex and fragment shaders under the given
|
|
3810
3810
|
* render context into a program.
|
|
@@ -3863,7 +3863,7 @@ class qa {
|
|
|
3863
3863
|
}
|
|
3864
3864
|
compileShader(e, t) {
|
|
3865
3865
|
const s = this.ctx.gl, r = s.createShader(t);
|
|
3866
|
-
if (r == null) throw
|
|
3866
|
+
if (r == null) throw jc;
|
|
3867
3867
|
if (s.shaderSource(r, e), s.compileShader(r), !s.getShaderParameter(r, s.COMPILE_STATUS)) {
|
|
3868
3868
|
const i = s.getShaderInfoLog(r);
|
|
3869
3869
|
throw s.deleteShader(r), wr(i ?? "unknown");
|
|
@@ -3871,14 +3871,14 @@ class qa {
|
|
|
3871
3871
|
s.attachShader(this.prog, r);
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
|
-
const
|
|
3875
|
-
class
|
|
3874
|
+
const Hc = new Float32Array([0, 0, 0, 0, 0, 0]);
|
|
3875
|
+
class Wc extends ja {
|
|
3876
3876
|
constructor(t) {
|
|
3877
|
-
super(t,
|
|
3877
|
+
super(t, qc, zc);
|
|
3878
3878
|
c(this, "positionBuffer");
|
|
3879
3879
|
const s = t.gl.createBuffer();
|
|
3880
3880
|
if (s == null) throw new pt("webgl: failed to create buffer");
|
|
3881
|
-
this.positionBuffer = s, t.gl.bindBuffer(t.gl.ARRAY_BUFFER, this.positionBuffer), t.gl.bufferData(t.gl.ARRAY_BUFFER,
|
|
3881
|
+
this.positionBuffer = s, t.gl.bindBuffer(t.gl.ARRAY_BUFFER, this.positionBuffer), t.gl.bufferData(t.gl.ARRAY_BUFFER, Hc, t.gl.STATIC_DRAW);
|
|
3882
3882
|
}
|
|
3883
3883
|
exec() {
|
|
3884
3884
|
const { gl: t } = this.ctx, s = t.getAttribLocation(this.prog, "a_position");
|
|
@@ -3887,8 +3887,8 @@ class Hc extends qa {
|
|
|
3887
3887
|
t.bindVertexArray(r), t.enableVertexAttribArray(s), t.vertexAttribPointer(s, 2, t.FLOAT, !1, 0, 0), this.setAsActive(), t.drawArrays(t.TRIANGLES, 0, 3);
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
|
-
const xr = { high: 1, low: 0 }, br =
|
|
3891
|
-
class
|
|
3890
|
+
const xr = { high: 1, low: 0 }, br = Rr.hz(45);
|
|
3891
|
+
class Xc {
|
|
3892
3892
|
constructor(e) {
|
|
3893
3893
|
/** To lock things so renders don't collide */
|
|
3894
3894
|
c(this, "mutex", new ms());
|
|
@@ -4007,7 +4007,7 @@ let z = (et = class {
|
|
|
4007
4007
|
const u = () => {
|
|
4008
4008
|
this.gl.flush(), this.gl.finish();
|
|
4009
4009
|
};
|
|
4010
|
-
this.loop = new
|
|
4010
|
+
this.loop = new Xc(u), this.region = f.ZERO, this.dpr = 1, this.os === "Windows" && (this.clearProgram = new Wc(this));
|
|
4011
4011
|
}
|
|
4012
4012
|
static create(e, t, s, r, a) {
|
|
4013
4013
|
const i = new et(t, s, r, a);
|
|
@@ -4073,7 +4073,7 @@ let z = (et = class {
|
|
|
4073
4073
|
const r = je(t, s);
|
|
4074
4074
|
e.clearRect(...g.couple(f.topLeft(r)), ...Ge.couple(f.dims(r)));
|
|
4075
4075
|
}
|
|
4076
|
-
}, c(et, "CONTEXT_KEY",
|
|
4076
|
+
}, c(et, "CONTEXT_KEY", Si.B("render-context")), et);
|
|
4077
4077
|
const yt = "layout", vr = "data", St = "tool";
|
|
4078
4078
|
var ot;
|
|
4079
4079
|
let W = (ot = class {
|
|
@@ -4094,7 +4094,7 @@ let W = (ot = class {
|
|
|
4094
4094
|
static requestRender(e, t) {
|
|
4095
4095
|
this.useRequest(e)(t);
|
|
4096
4096
|
}
|
|
4097
|
-
}, c(ot, "CONTEXT_KEY", "pluto-vis-renderer"), ot),
|
|
4097
|
+
}, c(ot, "CONTEXT_KEY", "pluto-vis-renderer"), ot), Gc = class {
|
|
4098
4098
|
constructor() {
|
|
4099
4099
|
c(this, "prevErase", f.ZERO);
|
|
4100
4100
|
}
|
|
@@ -4102,7 +4102,7 @@ let W = (ot = class {
|
|
|
4102
4102
|
!f.equals(s, t) && !f.equals(this.prevErase, s) ? (e.erase(s, r, ...a), this.prevErase = s) : e.erase(t, r, ...a);
|
|
4103
4103
|
}
|
|
4104
4104
|
};
|
|
4105
|
-
const _n =
|
|
4105
|
+
const _n = qa.extend({
|
|
4106
4106
|
bounds: R.bounds.optional(),
|
|
4107
4107
|
autoBounds: d.object({
|
|
4108
4108
|
lower: d.boolean().optional().default(!0),
|
|
@@ -4113,34 +4113,34 @@ const _n = za.extend({
|
|
|
4113
4113
|
size: d.number().optional().default(0),
|
|
4114
4114
|
label: d.string().optional().default(""),
|
|
4115
4115
|
labelSize: d.number().optional().default(0)
|
|
4116
|
-
}).partial({ color: !0, font: !0, gridColor: !0 }),
|
|
4116
|
+
}).partial({ color: !0, font: !0, gridColor: !0 }), Vc = 2, Kc = 7, Qc = (n, e) => R.contains(
|
|
4117
4117
|
{
|
|
4118
|
-
lower: n -
|
|
4119
|
-
upper: n +
|
|
4118
|
+
lower: n - Kc,
|
|
4119
|
+
upper: n + Vc
|
|
4120
4120
|
},
|
|
4121
4121
|
e
|
|
4122
|
-
),
|
|
4122
|
+
), Jc = R.DECIMAL, Tr = F.now(), tu = {
|
|
4123
4123
|
lower: Number(Tr.valueOf()),
|
|
4124
4124
|
upper: Number(Tr.add($.HOUR).valueOf())
|
|
4125
|
-
},
|
|
4125
|
+
}, Ha = (n) => n === "linear" ? Jc : tu, eu = (n, e = 0.1, t) => {
|
|
4126
4126
|
const s = R.max(n.filter(R.isFinite));
|
|
4127
|
-
if (!R.isFinite(s)) return
|
|
4127
|
+
if (!R.isFinite(s)) return Ha(t);
|
|
4128
4128
|
const { lower: r, upper: a } = s;
|
|
4129
4129
|
if (a === r) return { lower: r - 1, upper: a + 1 };
|
|
4130
4130
|
const i = (a - r) * e;
|
|
4131
4131
|
return { lower: r - i, upper: a + i };
|
|
4132
|
-
},
|
|
4133
|
-
class
|
|
4132
|
+
}, nu = 0.01, su = 0.1;
|
|
4133
|
+
class Wa extends wt {
|
|
4134
4134
|
async afterUpdate() {
|
|
4135
4135
|
var t, s;
|
|
4136
4136
|
this.internal.render = z.use(this.ctx);
|
|
4137
4137
|
const e = xt(this.ctx);
|
|
4138
|
-
(t = this.state).autoBoundPadding ?? (t.autoBoundPadding = at.construct(this.state.location) === "x" ?
|
|
4138
|
+
(t = this.state).autoBoundPadding ?? (t.autoBoundPadding = at.construct(this.state.location) === "x" ? su : nu), this.internal.core = new Fc(this.internal.render, {
|
|
4139
4139
|
color: e.colors.gray.l8,
|
|
4140
4140
|
font: re(e, { level: "small" }),
|
|
4141
4141
|
gridColor: e.colors.gray.l1,
|
|
4142
4142
|
...this.state
|
|
4143
|
-
}), W.requestRender(this.ctx, yt), (s = this.internal).updateBounds ?? (s.updateBounds =
|
|
4143
|
+
}), W.requestRender(this.ctx, yt), (s = this.internal).updateBounds ?? (s.updateBounds = mi(
|
|
4144
4144
|
(r) => this.setState((a) => ({ ...a, bounds: r })),
|
|
4145
4145
|
this.state.autoBoundUpdateInterval.milliseconds
|
|
4146
4146
|
));
|
|
@@ -4150,19 +4150,19 @@ class Ha extends wt {
|
|
|
4150
4150
|
}
|
|
4151
4151
|
renderAxis(e, t) {
|
|
4152
4152
|
if (!e.canvases.includes("lower2d")) return;
|
|
4153
|
-
const { core: s } = this.internal, { grid: r, container: a } = e, i =
|
|
4153
|
+
const { core: s } = this.internal, { grid: r, container: a } = e, i = xo(`${this.type}-${this.key}`, r, a), o = {
|
|
4154
4154
|
...e,
|
|
4155
4155
|
position: i,
|
|
4156
4156
|
decimalToDataScale: t,
|
|
4157
4157
|
size: this.state.size + this.state.labelSize
|
|
4158
4158
|
}, { size: l } = s.render(o);
|
|
4159
|
-
|
|
4159
|
+
Qc(this.state.size, l) || this.setState((u) => ({ ...u, size: l }));
|
|
4160
4160
|
}
|
|
4161
4161
|
async bounds(e, t) {
|
|
4162
4162
|
var u, h;
|
|
4163
4163
|
if (e && this.internal.boundSnapshot != null)
|
|
4164
4164
|
return [this.internal.boundSnapshot, null];
|
|
4165
|
-
const { lower: s, upper: r } =
|
|
4165
|
+
const { lower: s, upper: r } = ru(this.state.autoBounds);
|
|
4166
4166
|
if (!s && !r && this.state.bounds != null)
|
|
4167
4167
|
return this.internal.boundSnapshot = this.state.bounds, [this.state.bounds, null];
|
|
4168
4168
|
const a = (p) => ({
|
|
@@ -4172,9 +4172,9 @@ class Ha extends wt {
|
|
|
4172
4172
|
let i, o = null;
|
|
4173
4173
|
try {
|
|
4174
4174
|
const p = await t();
|
|
4175
|
-
i =
|
|
4175
|
+
i = eu(p, this.state.autoBoundPadding, this.state.type);
|
|
4176
4176
|
} catch (p) {
|
|
4177
|
-
i =
|
|
4177
|
+
i = Ha(this.state.type), o = p;
|
|
4178
4178
|
}
|
|
4179
4179
|
const l = a(i);
|
|
4180
4180
|
return this.internal.boundSnapshot = l, (this.state.bounds == null || s && this.state.bounds.lower !== l.lower || r && this.state.bounds.upper !== l.upper) && ((h = (u = this.internal).updateBounds) == null || h.call(u, l)), [l, o];
|
|
@@ -4187,16 +4187,16 @@ class Ha extends wt {
|
|
|
4187
4187
|
];
|
|
4188
4188
|
}
|
|
4189
4189
|
}
|
|
4190
|
-
const
|
|
4190
|
+
const ru = (n) => typeof n == "boolean" ? { lower: n, upper: n } : {
|
|
4191
4191
|
lower: (n == null ? void 0 : n.lower) ?? !0,
|
|
4192
4192
|
upper: (n == null ? void 0 : n.upper) ?? !0
|
|
4193
|
-
},
|
|
4193
|
+
}, au = `precision lowp float;
|
|
4194
4194
|
uniform lowp vec4 u_color;
|
|
4195
4195
|
|
|
4196
4196
|
void main(void) {
|
|
4197
4197
|
gl_FragColor = u_color;
|
|
4198
4198
|
}
|
|
4199
|
-
`,
|
|
4199
|
+
`, iu = `attribute float a_x;
|
|
4200
4200
|
attribute float a_y;
|
|
4201
4201
|
attribute lowp vec2 a_translate;
|
|
4202
4202
|
|
|
@@ -4208,18 +4208,18 @@ void main(void) {
|
|
|
4208
4208
|
transformed = transformed + a_translate;
|
|
4209
4209
|
gl_Position = vec4(transformed, 0.0, 1.0);
|
|
4210
4210
|
}
|
|
4211
|
-
`, Sr = nt.FLOAT32.density.valueOf(),
|
|
4211
|
+
`, Sr = nt.FLOAT32.density.valueOf(), ou = d.object({
|
|
4212
4212
|
x: rn,
|
|
4213
4213
|
y: rn,
|
|
4214
4214
|
label: d.string().optional(),
|
|
4215
4215
|
color: Y.z,
|
|
4216
4216
|
strokeWidth: d.number().default(1),
|
|
4217
4217
|
downsample: d.number().min(1).max(50).optional().default(1)
|
|
4218
|
-
}),
|
|
4218
|
+
}), lu = (n, e, t) => n === -1 || e === -1 || n >= t.length ? NaN : Number(t[n].at(e)), cu = $.milliseconds(2);
|
|
4219
4219
|
g.NAN, g.NAN, V;
|
|
4220
|
-
const Zt = class Zt extends
|
|
4220
|
+
const Zt = class Zt extends ja {
|
|
4221
4221
|
constructor(t) {
|
|
4222
|
-
super(t,
|
|
4222
|
+
super(t, iu, au);
|
|
4223
4223
|
c(this, "translationBufferCache", /* @__PURE__ */ new Map());
|
|
4224
4224
|
this.translationBufferCache = /* @__PURE__ */ new Map();
|
|
4225
4225
|
}
|
|
@@ -4264,7 +4264,7 @@ const Zt = class Zt extends qa {
|
|
|
4264
4264
|
const i = s.createBuffer();
|
|
4265
4265
|
if (i == null)
|
|
4266
4266
|
throw new pt("Failed to create buffer from WebGL context");
|
|
4267
|
-
const o =
|
|
4267
|
+
const o = hu(this.ctx.aspect, t);
|
|
4268
4268
|
s.bindBuffer(s.ARRAY_BUFFER, i), s.bufferData(s.ARRAY_BUFFER, o, s.DYNAMIC_DRAW);
|
|
4269
4269
|
const l = { glBuffer: i, jsBuffer: o };
|
|
4270
4270
|
return this.translationBufferCache.set(r, l), l;
|
|
@@ -4287,7 +4287,7 @@ let wn = Zt;
|
|
|
4287
4287
|
class xn extends Z {
|
|
4288
4288
|
constructor() {
|
|
4289
4289
|
super(...arguments);
|
|
4290
|
-
c(this, "schema",
|
|
4290
|
+
c(this, "schema", ou);
|
|
4291
4291
|
}
|
|
4292
4292
|
async afterUpdate() {
|
|
4293
4293
|
var s, r;
|
|
@@ -4326,7 +4326,7 @@ class xn extends Z {
|
|
|
4326
4326
|
};
|
|
4327
4327
|
if (o === -1 || l === -1) return m;
|
|
4328
4328
|
const x = i[l];
|
|
4329
|
-
m.value.x =
|
|
4329
|
+
m.value.x = lu(l, o, i);
|
|
4330
4330
|
const [, b] = await a.value(), T = b.find(
|
|
4331
4331
|
(O) => R.contains(O.alignmentBounds, x.alignment + BigInt(o))
|
|
4332
4332
|
);
|
|
@@ -4341,35 +4341,35 @@ class xn extends Z {
|
|
|
4341
4341
|
if (this.deleted) return;
|
|
4342
4342
|
const { downsample: s } = this.state, { xTelem: r, yTelem: a, prog: i } = this.internal, { dataToDecimalScale: o, exposure: l } = t, [[, u], [, h]] = await Promise.all([r.value(), a.value()]);
|
|
4343
4343
|
u.forEach((T) => T.updateGLBuffer(i.ctx.gl)), h.forEach((T) => T.updateGLBuffer(i.ctx.gl));
|
|
4344
|
-
const p =
|
|
4344
|
+
const p = mu(
|
|
4345
4345
|
u,
|
|
4346
4346
|
h,
|
|
4347
4347
|
l,
|
|
4348
4348
|
s,
|
|
4349
|
-
|
|
4349
|
+
cu
|
|
4350
4350
|
);
|
|
4351
4351
|
this.internal.instrumentation.L.debug("render", () => ({
|
|
4352
4352
|
key: this.key,
|
|
4353
4353
|
downsample: s,
|
|
4354
4354
|
scale: I.xyScaleToTransform(o),
|
|
4355
4355
|
props: t.region,
|
|
4356
|
-
ops:
|
|
4356
|
+
ops: yu(p)
|
|
4357
4357
|
}));
|
|
4358
4358
|
const m = i.setAsActive(), x = i.bindState(this.state), b = I.xyScaleToTransform(
|
|
4359
4359
|
i.ctx.scaleRegion(t.region)
|
|
4360
4360
|
);
|
|
4361
4361
|
p.forEach((T) => {
|
|
4362
4362
|
const C = I.xyScaleToTransform(
|
|
4363
|
-
|
|
4363
|
+
gu(o, T)
|
|
4364
4364
|
);
|
|
4365
4365
|
i.bindScale(C, b), i.draw(T, x);
|
|
4366
4366
|
}), m();
|
|
4367
4367
|
}
|
|
4368
4368
|
}
|
|
4369
4369
|
c(xn, "TYPE", "line");
|
|
4370
|
-
const
|
|
4371
|
-
(t, s) => Math.floor(s /
|
|
4372
|
-
),
|
|
4370
|
+
const uu = 5e3, hu = (n, e) => pu(fu(n), e).map(
|
|
4371
|
+
(t, s) => Math.floor(s / du) * (1 / (uu * n)) * t
|
|
4372
|
+
), du = 5, fu = (n) => (
|
|
4373
4373
|
// prettier-ignore
|
|
4374
4374
|
new Float32Array([
|
|
4375
4375
|
0,
|
|
@@ -4388,24 +4388,24 @@ const cu = 5e3, uu = (n, e) => fu(du(n), e).map(
|
|
|
4388
4388
|
0
|
|
4389
4389
|
// left
|
|
4390
4390
|
])
|
|
4391
|
-
),
|
|
4391
|
+
), pu = (n, e) => {
|
|
4392
4392
|
const t = new Float32Array(n.length * e);
|
|
4393
4393
|
for (let s = 0; s < e; s++) t.set(n, s * n.length);
|
|
4394
4394
|
return t;
|
|
4395
|
-
},
|
|
4395
|
+
}, gu = (n, e) => n.translate(
|
|
4396
4396
|
n.x.dim(Number(e.x.sampleOffset)),
|
|
4397
4397
|
n.y.dim(Number(e.y.sampleOffset))
|
|
4398
|
-
),
|
|
4398
|
+
), oh = { [xn.TYPE]: xn }, mu = (n, e, t, s, r) => {
|
|
4399
4399
|
if (n.length === 0 || e.length === 0) return [];
|
|
4400
4400
|
const a = [];
|
|
4401
4401
|
return n.forEach(
|
|
4402
4402
|
(i) => e.forEach((o) => {
|
|
4403
|
-
if (!
|
|
4403
|
+
if (!wu(i, o, r)) return;
|
|
4404
4404
|
let l = 0, u = 0;
|
|
4405
4405
|
i.alignment < o.alignment ? l = Number(o.alignment - i.alignment) : o.alignment < i.alignment && (u = Number(i.alignment - o.alignment));
|
|
4406
4406
|
const h = Math.min(i.length - l, o.length - u);
|
|
4407
4407
|
if (h === 0) return;
|
|
4408
|
-
const p =
|
|
4408
|
+
const p = Nr(
|
|
4409
4409
|
Math.round(t * 4 * h),
|
|
4410
4410
|
s,
|
|
4411
4411
|
51
|
|
@@ -4413,7 +4413,7 @@ const cu = 5e3, uu = (n, e) => fu(du(n), e).map(
|
|
|
4413
4413
|
a.push({ x: i, y: o, xOffset: l, yOffset: u, count: h, downsample: p });
|
|
4414
4414
|
})
|
|
4415
4415
|
), a;
|
|
4416
|
-
},
|
|
4416
|
+
}, yu = (n) => n.map((e) => ({ ...e, x: e.x.digest, y: e.y.digest })), wu = (n, e, t) => {
|
|
4417
4417
|
if (!(n._timeRange != null && e._timeRange != null))
|
|
4418
4418
|
throw new pt(
|
|
4419
4419
|
`Encountered series without time range in buildDrawOperations. X series present: ${n._timeRange != null}, Y series present: ${e._timeRange != null}`
|
|
@@ -4455,7 +4455,7 @@ class Jt {
|
|
|
4455
4455
|
...g.couple(f.topLeft(e)),
|
|
4456
4456
|
...g.couple(f.dims(e)),
|
|
4457
4457
|
r
|
|
4458
|
-
), i.stroke()) : (i.rect(...g.couple(f.topLeft(e)), ...g.couple(f.dims(e))), i.stroke()) :
|
|
4458
|
+
), i.stroke()) : (i.rect(...g.couple(f.topLeft(e)), ...g.couple(f.dims(e))), i.stroke()) : yi(a).forEach((o) => {
|
|
4459
4459
|
const [l, u] = f.edgePoints(e, o);
|
|
4460
4460
|
i.beginPath(), i.moveTo(...g.couple(l)), i.lineTo(...g.couple(u)), i.stroke();
|
|
4461
4461
|
});
|
|
@@ -4532,7 +4532,7 @@ class Jt {
|
|
|
4532
4532
|
i != null && (l = this.canvas.scissor(f.construct(t, i, 1e3))), this.canvas.fillText(e, t.x, t.y), l == null || l();
|
|
4533
4533
|
}
|
|
4534
4534
|
}
|
|
4535
|
-
const
|
|
4535
|
+
const Xa = d.object({
|
|
4536
4536
|
position: d.number().optional(),
|
|
4537
4537
|
pixelPosition: d.number().optional(),
|
|
4538
4538
|
dragging: d.boolean(),
|
|
@@ -4543,7 +4543,7 @@ const Wa = d.object({
|
|
|
4543
4543
|
class Ee extends Z {
|
|
4544
4544
|
constructor() {
|
|
4545
4545
|
super(...arguments);
|
|
4546
|
-
c(this, "schema",
|
|
4546
|
+
c(this, "schema", Xa);
|
|
4547
4547
|
}
|
|
4548
4548
|
async afterUpdate() {
|
|
4549
4549
|
this.internal.renderCtx = z.use(this.ctx);
|
|
@@ -4582,17 +4582,17 @@ class Ee extends Z {
|
|
|
4582
4582
|
}
|
|
4583
4583
|
}
|
|
4584
4584
|
c(Ee, "TYPE", "Rule");
|
|
4585
|
-
const
|
|
4585
|
+
const xu = {
|
|
4586
4586
|
[Ee.TYPE]: Ee
|
|
4587
|
-
},
|
|
4587
|
+
}, lh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4588
4588
|
__proto__: null,
|
|
4589
|
-
REGISTRY:
|
|
4589
|
+
REGISTRY: xu,
|
|
4590
4590
|
Rule: Ee,
|
|
4591
|
-
ruleStateZ:
|
|
4592
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4591
|
+
ruleStateZ: Xa
|
|
4592
|
+
}, Symbol.toStringTag, { value: "Module" })), ch = _n.extend({
|
|
4593
4593
|
location: Tt.x.optional().default("left")
|
|
4594
|
-
});
|
|
4595
|
-
class bn extends
|
|
4594
|
+
}), Er = 2, bu = (n) => f.signedWidth(n) < Er || f.signedHeight(n) < Er;
|
|
4595
|
+
class bn extends Wa {
|
|
4596
4596
|
constructor() {
|
|
4597
4597
|
super(...arguments);
|
|
4598
4598
|
c(this, "schema", _n);
|
|
@@ -4612,7 +4612,7 @@ class bn extends Ha {
|
|
|
4612
4612
|
if (this.renderAxis(t, a), await this.renderLines(t, s), await this.renderRules(t, a), r != null) throw r;
|
|
4613
4613
|
}
|
|
4614
4614
|
async renderLines({ xDataToDecimalScale: t, plot: s, canvases: r, exposure: a }, i) {
|
|
4615
|
-
if (!r.includes("gl")) return;
|
|
4615
|
+
if (!r.includes("gl") || bu(s)) return;
|
|
4616
4616
|
const o = {
|
|
4617
4617
|
region: s,
|
|
4618
4618
|
dataToDecimalScale: new I.XY(t, i),
|
|
@@ -4659,14 +4659,14 @@ class bn extends Ha {
|
|
|
4659
4659
|
}
|
|
4660
4660
|
}
|
|
4661
4661
|
c(bn, "TYPE", "YAxis");
|
|
4662
|
-
const
|
|
4662
|
+
const vu = d.object({
|
|
4663
4663
|
start: F.z,
|
|
4664
4664
|
end: F.z
|
|
4665
4665
|
});
|
|
4666
4666
|
class ss extends Z {
|
|
4667
4667
|
constructor() {
|
|
4668
4668
|
super(...arguments);
|
|
4669
|
-
c(this, "schema",
|
|
4669
|
+
c(this, "schema", vu);
|
|
4670
4670
|
}
|
|
4671
4671
|
async afterUpdate() {
|
|
4672
4672
|
this.internal.render = z.use(this.ctx), this.internal.draw = new Jt(
|
|
@@ -4678,16 +4678,16 @@ class ss extends Z {
|
|
|
4678
4678
|
}
|
|
4679
4679
|
}
|
|
4680
4680
|
c(ss, "TYPE", "range-annotation");
|
|
4681
|
-
const
|
|
4681
|
+
const Tu = d.object({
|
|
4682
4682
|
triggered: d.boolean(),
|
|
4683
|
-
status:
|
|
4683
|
+
status: Yr,
|
|
4684
4684
|
sink: Dn.optional().default(Mn),
|
|
4685
4685
|
source: ks.optional().default(Es)
|
|
4686
4686
|
});
|
|
4687
4687
|
class rs extends Z {
|
|
4688
4688
|
constructor() {
|
|
4689
4689
|
super(...arguments);
|
|
4690
|
-
c(this, "schema",
|
|
4690
|
+
c(this, "schema", Tu);
|
|
4691
4691
|
}
|
|
4692
4692
|
async afterUpdate() {
|
|
4693
4693
|
var r, a, i;
|
|
@@ -4696,7 +4696,7 @@ class rs extends Z {
|
|
|
4696
4696
|
this.ctx,
|
|
4697
4697
|
s,
|
|
4698
4698
|
this.internal.source
|
|
4699
|
-
), this.internal.sink = await De(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) !==
|
|
4699
|
+
), this.internal.sink = await De(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) !== wi.Absolute.valueOf()).catch(console.error), await this.updateEnabledState(), (i = (a = this.internal).stopListening) == null || i.call(a), this.internal.stopListening = this.internal.source.onChange(() => {
|
|
4700
4700
|
this.updateEnabledState();
|
|
4701
4701
|
});
|
|
4702
4702
|
}
|
|
@@ -4715,13 +4715,13 @@ class rs extends Z {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
}
|
|
4717
4717
|
c(rs, "TYPE", "Chip");
|
|
4718
|
-
const
|
|
4718
|
+
const Su = d.object({}), Cr = "control-state-provider", Eu = ys.stateZ.extend({
|
|
4719
4719
|
subjectColor: Y.z
|
|
4720
4720
|
});
|
|
4721
4721
|
class Ce extends wt {
|
|
4722
4722
|
constructor() {
|
|
4723
4723
|
super(...arguments);
|
|
4724
|
-
c(this, "schema",
|
|
4724
|
+
c(this, "schema", Su);
|
|
4725
4725
|
/** Tracks the colors we assign to a particular control subject. */
|
|
4726
4726
|
c(this, "colors", /* @__PURE__ */ new Map());
|
|
4727
4727
|
/** Tracks the current control state for each channel and allows us to access it */
|
|
@@ -4738,7 +4738,7 @@ class Ce extends wt {
|
|
|
4738
4738
|
* @throws {Error} if the state provider is not in the context.
|
|
4739
4739
|
*/
|
|
4740
4740
|
static use(t) {
|
|
4741
|
-
return t.get(
|
|
4741
|
+
return t.get(Cr);
|
|
4742
4742
|
}
|
|
4743
4743
|
async afterUpdate() {
|
|
4744
4744
|
const { internal: t } = this;
|
|
@@ -4746,7 +4746,7 @@ class Ce extends wt {
|
|
|
4746
4746
|
const s = xt(this.ctx);
|
|
4747
4747
|
t.palette = s.colors.visualization.palettes.default, t.defaultColor = s.colors.gray.l6;
|
|
4748
4748
|
const r = Oe(this.ctx);
|
|
4749
|
-
t.client != null && r === t.client || (t.client = r, this.ctx.set(
|
|
4749
|
+
t.client != null && r === t.client || (t.client = r, this.ctx.set(Cr, this), await this.maybeCloseTracker(), t.client != null && (this.internal.instrumentation.L.debug("starting state tracker"), await this.openTracker(t.client)));
|
|
4750
4750
|
}
|
|
4751
4751
|
async maybeCloseTracker() {
|
|
4752
4752
|
var t;
|
|
@@ -4759,7 +4759,7 @@ class Ce extends wt {
|
|
|
4759
4759
|
return this.obs.onChange(t);
|
|
4760
4760
|
}
|
|
4761
4761
|
get(t) {
|
|
4762
|
-
return Array.isArray(t) ?
|
|
4762
|
+
return Array.isArray(t) ? xi(t).map((s) => this.getOne(s)).filter((s) => s != null) : this.getOne(t);
|
|
4763
4763
|
}
|
|
4764
4764
|
getOne(t) {
|
|
4765
4765
|
if (this.tracker == null) return;
|
|
@@ -4797,24 +4797,24 @@ class Ce extends wt {
|
|
|
4797
4797
|
}
|
|
4798
4798
|
}
|
|
4799
4799
|
c(Ce, "TYPE", "StateProvider");
|
|
4800
|
-
const
|
|
4800
|
+
const Cu = ["acquired", "released", "overridden", "failed"], ku = d.enum(Cu), Pu = d.object({
|
|
4801
4801
|
name: d.string(),
|
|
4802
4802
|
authority: d.number().default(0),
|
|
4803
4803
|
acquireTrigger: d.number(),
|
|
4804
|
-
status:
|
|
4805
|
-
needsControlOf:
|
|
4804
|
+
status: ku.optional(),
|
|
4805
|
+
needsControlOf: Ar.keyZ.array().optional().default([])
|
|
4806
4806
|
});
|
|
4807
4807
|
class as extends wt {
|
|
4808
4808
|
constructor() {
|
|
4809
4809
|
super(...arguments);
|
|
4810
|
-
c(this, "schema",
|
|
4810
|
+
c(this, "schema", Pu);
|
|
4811
4811
|
c(this, "registry", /* @__PURE__ */ new Map());
|
|
4812
4812
|
c(this, "writer");
|
|
4813
4813
|
}
|
|
4814
4814
|
async afterUpdate() {
|
|
4815
4815
|
this.internal.instrumentation = Le(this.ctx), (this.internal.prevTrigger == null || Math.abs(this.state.acquireTrigger - this.internal.prevTrigger) > 1) && (this.internal.prevTrigger = this.state.acquireTrigger);
|
|
4816
4816
|
const t = Oe(this.ctx), s = Ce.use(this.ctx);
|
|
4817
|
-
this.internal.client = t, this.internal.client == null && await this.release(), this.internal.stateProv = s,
|
|
4817
|
+
this.internal.client = t, this.internal.client == null && await this.release(), this.internal.stateProv = s, $r(this.ctx, this), this.internal.addStatus = ws(this.ctx), this.state.acquireTrigger > this.internal.prevTrigger ? (this.acquire(), this.internal.prevTrigger = this.state.acquireTrigger) : this.state.acquireTrigger < this.internal.prevTrigger && (this.release(), this.internal.prevTrigger = this.state.acquireTrigger);
|
|
4818
4818
|
}
|
|
4819
4819
|
async afterDelete() {
|
|
4820
4820
|
await this.release();
|
|
@@ -4910,14 +4910,14 @@ class as extends wt {
|
|
|
4910
4910
|
}
|
|
4911
4911
|
}
|
|
4912
4912
|
c(as, "TYPE", "Controller");
|
|
4913
|
-
const
|
|
4913
|
+
const Ru = d.object({
|
|
4914
4914
|
channel: d.number()
|
|
4915
4915
|
});
|
|
4916
4916
|
class vn extends An {
|
|
4917
4917
|
constructor(t, s) {
|
|
4918
4918
|
super(s);
|
|
4919
4919
|
c(this, "controller");
|
|
4920
|
-
c(this, "schema",
|
|
4920
|
+
c(this, "schema", Ru);
|
|
4921
4921
|
this.controller = t;
|
|
4922
4922
|
}
|
|
4923
4923
|
invalidate() {
|
|
@@ -4942,12 +4942,12 @@ class vn extends An {
|
|
|
4942
4942
|
}
|
|
4943
4943
|
}
|
|
4944
4944
|
c(vn, "TYPE", "controlled-numeric-telem-sink");
|
|
4945
|
-
const
|
|
4945
|
+
const uh = (n) => ({
|
|
4946
4946
|
type: vn.TYPE,
|
|
4947
4947
|
props: n,
|
|
4948
4948
|
variant: "sink",
|
|
4949
4949
|
valueType: "number"
|
|
4950
|
-
}),
|
|
4950
|
+
}), Mu = d.object({
|
|
4951
4951
|
authority: d.number().default(ys.Authority.Absolute.valueOf()),
|
|
4952
4952
|
channel: d.number()
|
|
4953
4953
|
});
|
|
@@ -4955,7 +4955,7 @@ class Tn extends An {
|
|
|
4955
4955
|
constructor(t, s) {
|
|
4956
4956
|
super(s);
|
|
4957
4957
|
c(this, "controller");
|
|
4958
|
-
c(this, "schema",
|
|
4958
|
+
c(this, "schema", Mu);
|
|
4959
4959
|
this.controller = t;
|
|
4960
4960
|
}
|
|
4961
4961
|
async cleanup() {
|
|
@@ -4973,12 +4973,12 @@ class Tn extends An {
|
|
|
4973
4973
|
}
|
|
4974
4974
|
}
|
|
4975
4975
|
c(Tn, "TYPE", "acquire-channel-control");
|
|
4976
|
-
const
|
|
4976
|
+
const hh = (n) => ({
|
|
4977
4977
|
type: Tn.TYPE,
|
|
4978
4978
|
props: n,
|
|
4979
4979
|
variant: "sink",
|
|
4980
4980
|
valueType: "boolean"
|
|
4981
|
-
}),
|
|
4981
|
+
}), Ou = d.object({
|
|
4982
4982
|
channel: d.number()
|
|
4983
4983
|
});
|
|
4984
4984
|
class Sn extends Q {
|
|
@@ -4988,7 +4988,7 @@ class Sn extends Q {
|
|
|
4988
4988
|
c(this, "valid", !1);
|
|
4989
4989
|
c(this, "stopListening");
|
|
4990
4990
|
c(this, "controller");
|
|
4991
|
-
c(this, "schema",
|
|
4991
|
+
c(this, "schema", Ou);
|
|
4992
4992
|
this.prov = s, this.controller = t;
|
|
4993
4993
|
}
|
|
4994
4994
|
async needsControlOf() {
|
|
@@ -4999,7 +4999,7 @@ class Sn extends Q {
|
|
|
4999
4999
|
if (this.valid) return;
|
|
5000
5000
|
const { channel: t } = this.props;
|
|
5001
5001
|
(r = this.stopListening) == null || r.call(this);
|
|
5002
|
-
const s =
|
|
5002
|
+
const s = Lr.filterTransfersByChannelKey(t);
|
|
5003
5003
|
this.stopListening = this.prov.onChange((a) => {
|
|
5004
5004
|
var i;
|
|
5005
5005
|
s(a).length !== 0 && ((i = this.notify) == null || i.call(this));
|
|
@@ -5037,21 +5037,21 @@ class Sn extends Q {
|
|
|
5037
5037
|
}
|
|
5038
5038
|
}
|
|
5039
5039
|
c(Sn, "TYPE", "controlled-status-source");
|
|
5040
|
-
const
|
|
5040
|
+
const dh = (n) => ({
|
|
5041
5041
|
type: Sn.TYPE,
|
|
5042
5042
|
props: n,
|
|
5043
5043
|
variant: "source",
|
|
5044
5044
|
valueType: "status"
|
|
5045
|
-
}),
|
|
5045
|
+
}), Du = d.object({
|
|
5046
5046
|
statusSource: ks.optional().default(Es),
|
|
5047
|
-
colorSource:
|
|
5048
|
-
status:
|
|
5047
|
+
colorSource: Kr.optional().default(qr),
|
|
5048
|
+
status: Yr,
|
|
5049
5049
|
color: Y.z.optional()
|
|
5050
5050
|
});
|
|
5051
5051
|
class is extends Z {
|
|
5052
5052
|
constructor() {
|
|
5053
5053
|
super(...arguments);
|
|
5054
|
-
c(this, "schema",
|
|
5054
|
+
c(this, "schema", Du);
|
|
5055
5055
|
c(this, "stopListeningStatus");
|
|
5056
5056
|
c(this, "stopListeningColor");
|
|
5057
5057
|
}
|
|
@@ -5087,14 +5087,14 @@ class is extends Z {
|
|
|
5087
5087
|
}
|
|
5088
5088
|
}
|
|
5089
5089
|
c(is, "TYPE", "Indicator");
|
|
5090
|
-
const
|
|
5091
|
-
needsControlOf:
|
|
5092
|
-
states:
|
|
5090
|
+
const Yu = d.object({
|
|
5091
|
+
needsControlOf: Ar.keyZ.array(),
|
|
5092
|
+
states: Eu.array()
|
|
5093
5093
|
});
|
|
5094
5094
|
class os extends Z {
|
|
5095
5095
|
constructor() {
|
|
5096
5096
|
super(...arguments);
|
|
5097
|
-
c(this, "schema",
|
|
5097
|
+
c(this, "schema", Yu);
|
|
5098
5098
|
}
|
|
5099
5099
|
async afterUpdate() {
|
|
5100
5100
|
var i;
|
|
@@ -5102,7 +5102,7 @@ class os extends Z {
|
|
|
5102
5102
|
t.stateProv = Ce.use(this.ctx);
|
|
5103
5103
|
const s = this.state.needsControlOf;
|
|
5104
5104
|
(i = t.disconnectStateProv) == null || i.call(t);
|
|
5105
|
-
const r =
|
|
5105
|
+
const r = Lr.filterTransfersByChannelKey(...s), a = t.stateProv.get(s);
|
|
5106
5106
|
this.setState((o) => ({ ...o, states: a })), t.disconnectStateProv = t.stateProv.onChange((o) => {
|
|
5107
5107
|
if (r(o).length === 0) return;
|
|
5108
5108
|
const l = t.stateProv.get(s);
|
|
@@ -5118,20 +5118,20 @@ class os extends Z {
|
|
|
5118
5118
|
}
|
|
5119
5119
|
}
|
|
5120
5120
|
c(os, "TYPE", "Legend");
|
|
5121
|
-
const
|
|
5121
|
+
const fh = {
|
|
5122
5122
|
[as.TYPE]: as,
|
|
5123
5123
|
[Ce.TYPE]: Ce,
|
|
5124
5124
|
[is.TYPE]: is,
|
|
5125
5125
|
[rs.TYPE]: rs,
|
|
5126
5126
|
[os.TYPE]: os
|
|
5127
|
-
},
|
|
5127
|
+
}, Au = d.object({
|
|
5128
5128
|
trigger: d.number(),
|
|
5129
5129
|
sink: Dn.optional().default(Mn)
|
|
5130
5130
|
});
|
|
5131
5131
|
class ls extends Z {
|
|
5132
5132
|
constructor() {
|
|
5133
5133
|
super(...arguments);
|
|
5134
|
-
c(this, "schema",
|
|
5134
|
+
c(this, "schema", Au);
|
|
5135
5135
|
}
|
|
5136
5136
|
async afterUpdate() {
|
|
5137
5137
|
var r;
|
|
@@ -5152,9 +5152,9 @@ class ls extends Z {
|
|
|
5152
5152
|
}
|
|
5153
5153
|
}
|
|
5154
5154
|
c(ls, "TYPE", "Button");
|
|
5155
|
-
const
|
|
5155
|
+
const ph = {
|
|
5156
5156
|
[ls.TYPE]: ls
|
|
5157
|
-
},
|
|
5157
|
+
}, Ga = d.object({
|
|
5158
5158
|
dpr: d.number(),
|
|
5159
5159
|
region: f.box,
|
|
5160
5160
|
bootstrap: d.boolean().optional().default(!1),
|
|
@@ -5164,12 +5164,12 @@ const dh = {
|
|
|
5164
5164
|
glCanvas: d.any().optional(),
|
|
5165
5165
|
upper2dCanvas: d.any().optional(),
|
|
5166
5166
|
lower2dCanvas: d.any().optional(),
|
|
5167
|
-
os:
|
|
5167
|
+
os: bi.osZ
|
|
5168
5168
|
});
|
|
5169
5169
|
class En extends wt {
|
|
5170
5170
|
constructor() {
|
|
5171
5171
|
super(...arguments);
|
|
5172
|
-
c(this, "schema",
|
|
5172
|
+
c(this, "schema", Ga);
|
|
5173
5173
|
c(this, "renderContextSet", !1);
|
|
5174
5174
|
}
|
|
5175
5175
|
async afterUpdate() {
|
|
@@ -5204,14 +5204,14 @@ class En extends wt {
|
|
|
5204
5204
|
}
|
|
5205
5205
|
}
|
|
5206
5206
|
c(En, "TYPE", "Canvas");
|
|
5207
|
-
const
|
|
5207
|
+
const Lu = {
|
|
5208
5208
|
[En.TYPE]: En
|
|
5209
|
-
},
|
|
5209
|
+
}, gh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5210
5210
|
__proto__: null,
|
|
5211
5211
|
Canvas: En,
|
|
5212
|
-
REGISTRY:
|
|
5213
|
-
canvasStateZ:
|
|
5214
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5212
|
+
REGISTRY: Lu,
|
|
5213
|
+
canvasStateZ: Ga
|
|
5214
|
+
}, Symbol.toStringTag, { value: "Module" })), Va = d.object({
|
|
5215
5215
|
position: g.xy,
|
|
5216
5216
|
zoom: d.number(),
|
|
5217
5217
|
region: f.box,
|
|
@@ -5258,24 +5258,24 @@ const Yu = {
|
|
|
5258
5258
|
});
|
|
5259
5259
|
}
|
|
5260
5260
|
};
|
|
5261
|
-
c(Ft, "TYPE", "Diagram"), c(Ft, "stateZ",
|
|
5261
|
+
c(Ft, "TYPE", "Diagram"), c(Ft, "stateZ", Va);
|
|
5262
5262
|
let ke = Ft;
|
|
5263
|
-
const
|
|
5263
|
+
const _u = {
|
|
5264
5264
|
[ke.TYPE]: ke
|
|
5265
|
-
},
|
|
5265
|
+
}, mh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5266
5266
|
__proto__: null,
|
|
5267
5267
|
Diagram: ke,
|
|
5268
|
-
REGISTRY:
|
|
5269
|
-
diagramStateZ:
|
|
5270
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5268
|
+
REGISTRY: _u,
|
|
5269
|
+
diagramStateZ: Va
|
|
5270
|
+
}, Symbol.toStringTag, { value: "Module" })), Nu = d.object({
|
|
5271
5271
|
region: f.box,
|
|
5272
5272
|
enabled: d.boolean().optional().default(!1)
|
|
5273
5273
|
});
|
|
5274
5274
|
class cs extends Z {
|
|
5275
5275
|
constructor() {
|
|
5276
5276
|
super(...arguments);
|
|
5277
|
-
c(this, "schema",
|
|
5278
|
-
c(this, "eraser", new
|
|
5277
|
+
c(this, "schema", Nu);
|
|
5278
|
+
c(this, "eraser", new Gc());
|
|
5279
5279
|
}
|
|
5280
5280
|
async afterUpdate() {
|
|
5281
5281
|
this.deleted || (this.internal.render = z.use(this.ctx), await this.internal.render.loop.set({
|
|
@@ -5304,16 +5304,16 @@ class cs extends Z {
|
|
|
5304
5304
|
}
|
|
5305
5305
|
}
|
|
5306
5306
|
c(cs, "TYPE", "eraser");
|
|
5307
|
-
const
|
|
5307
|
+
const yh = {
|
|
5308
5308
|
[cs.TYPE]: cs
|
|
5309
|
-
},
|
|
5309
|
+
}, Iu = d.object({
|
|
5310
5310
|
enabled: d.boolean(),
|
|
5311
5311
|
source: Cs.optional().default(Ss)
|
|
5312
5312
|
});
|
|
5313
5313
|
class us extends Z {
|
|
5314
5314
|
constructor() {
|
|
5315
5315
|
super(...arguments);
|
|
5316
|
-
c(this, "schema",
|
|
5316
|
+
c(this, "schema", Iu);
|
|
5317
5317
|
}
|
|
5318
5318
|
async afterUpdate() {
|
|
5319
5319
|
var r;
|
|
@@ -5349,7 +5349,7 @@ class us extends Z {
|
|
|
5349
5349
|
}
|
|
5350
5350
|
}
|
|
5351
5351
|
c(us, "TYPE", "Light");
|
|
5352
|
-
const
|
|
5352
|
+
const wh = { [us.TYPE]: us }, Ka = d.object({
|
|
5353
5353
|
position: g.xy.or(d.null()),
|
|
5354
5354
|
textColor: Y.z.optional().default(V),
|
|
5355
5355
|
backgroundColor: Y.z.optional().default(V),
|
|
@@ -5361,7 +5361,7 @@ const mh = { [us.TYPE]: us }, Va = d.object({
|
|
|
5361
5361
|
class Pe extends Z {
|
|
5362
5362
|
constructor() {
|
|
5363
5363
|
super(...arguments);
|
|
5364
|
-
c(this, "schema",
|
|
5364
|
+
c(this, "schema", Ka);
|
|
5365
5365
|
}
|
|
5366
5366
|
async afterUpdate() {
|
|
5367
5367
|
const t = xt(this.ctx);
|
|
@@ -5416,24 +5416,24 @@ class Pe extends Z {
|
|
|
5416
5416
|
}
|
|
5417
5417
|
}
|
|
5418
5418
|
c(Pe, "TYPE", "tooltip");
|
|
5419
|
-
const
|
|
5419
|
+
const Bu = {
|
|
5420
5420
|
[Pe.TYPE]: Pe
|
|
5421
|
-
},
|
|
5421
|
+
}, xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5422
5422
|
__proto__: null,
|
|
5423
|
-
REGISTRY:
|
|
5423
|
+
REGISTRY: Bu,
|
|
5424
5424
|
Tooltip: Pe,
|
|
5425
|
-
tooltipStateZ:
|
|
5426
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5425
|
+
tooltipStateZ: Ka
|
|
5426
|
+
}, Symbol.toStringTag, { value: "Module" })), Uu = d.object({
|
|
5427
5427
|
region: f.box,
|
|
5428
5428
|
wheelPos: d.number(),
|
|
5429
5429
|
scrolling: d.boolean(),
|
|
5430
5430
|
empty: d.boolean(),
|
|
5431
5431
|
visible: d.boolean(),
|
|
5432
|
-
telem: rn.optional().default(
|
|
5433
|
-
font:
|
|
5432
|
+
telem: rn.optional().default(jr),
|
|
5433
|
+
font: _r.optional().default("p"),
|
|
5434
5434
|
color: Y.z.optional().default(V),
|
|
5435
5435
|
overshoot: g.xy.optional().default({ x: 0, y: 0 })
|
|
5436
|
-
}),
|
|
5436
|
+
}), $u = 0.98, se = "lower2d", Zu = {
|
|
5437
5437
|
offset: 0n,
|
|
5438
5438
|
offsetRef: 0n,
|
|
5439
5439
|
scrollRef: 0
|
|
@@ -5442,7 +5442,7 @@ const Nu = {
|
|
|
5442
5442
|
super(...arguments);
|
|
5443
5443
|
c(this, "schema", ue.z);
|
|
5444
5444
|
c(this, "values", new In([]));
|
|
5445
|
-
c(this, "scrollState",
|
|
5445
|
+
c(this, "scrollState", Zu);
|
|
5446
5446
|
}
|
|
5447
5447
|
async afterUpdate() {
|
|
5448
5448
|
var l;
|
|
@@ -5525,7 +5525,7 @@ const Nu = {
|
|
|
5525
5525
|
}
|
|
5526
5526
|
renderScrollbar(t) {
|
|
5527
5527
|
const s = this.state.region, r = f.height(s) / this.totalHeight * f.height(s);
|
|
5528
|
-
if (r >= f.height(s) *
|
|
5528
|
+
if (r >= f.height(s) * $u) return;
|
|
5529
5529
|
let a = f.bottom(s) - r;
|
|
5530
5530
|
this.state.scrolling && (a -= Number(
|
|
5531
5531
|
this.values.distance(
|
|
@@ -5556,9 +5556,9 @@ const Nu = {
|
|
|
5556
5556
|
}
|
|
5557
5557
|
}
|
|
5558
5558
|
};
|
|
5559
|
-
c(ue, "TYPE", "log"), c(ue, "z",
|
|
5559
|
+
c(ue, "TYPE", "log"), c(ue, "z", Uu);
|
|
5560
5560
|
let Cn = ue;
|
|
5561
|
-
const
|
|
5561
|
+
const bh = { [Cn.TYPE]: Cn }, Qa = d.object({
|
|
5562
5562
|
one: g.xy.nullable(),
|
|
5563
5563
|
two: g.xy.nullable(),
|
|
5564
5564
|
hover: g.xy.nullable(),
|
|
@@ -5576,7 +5576,7 @@ const wh = { [Cn.TYPE]: Cn }, Ka = d.object({
|
|
|
5576
5576
|
class Re extends Z {
|
|
5577
5577
|
constructor() {
|
|
5578
5578
|
super(...arguments);
|
|
5579
|
-
c(this, "schema",
|
|
5579
|
+
c(this, "schema", Qa);
|
|
5580
5580
|
}
|
|
5581
5581
|
async afterUpdate() {
|
|
5582
5582
|
const t = z.use(this.ctx);
|
|
@@ -5683,24 +5683,24 @@ class Re extends Z {
|
|
|
5683
5683
|
}
|
|
5684
5684
|
}
|
|
5685
5685
|
c(Re, "TYPE", "measure");
|
|
5686
|
-
const
|
|
5686
|
+
const Fu = {
|
|
5687
5687
|
[Re.TYPE]: Re
|
|
5688
|
-
},
|
|
5688
|
+
}, vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5689
5689
|
__proto__: null,
|
|
5690
5690
|
Measure: Re,
|
|
5691
|
-
REGISTRY:
|
|
5692
|
-
measureStateZ:
|
|
5693
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5691
|
+
REGISTRY: Fu,
|
|
5692
|
+
measureStateZ: Qa
|
|
5693
|
+
}, Symbol.toStringTag, { value: "Module" })), zu = d.object({
|
|
5694
5694
|
trigger: d.number(),
|
|
5695
5695
|
command: d.number().optional(),
|
|
5696
5696
|
value: d.number(),
|
|
5697
|
-
sink:
|
|
5698
|
-
source:
|
|
5697
|
+
sink: Vr.optional().default(Zr),
|
|
5698
|
+
source: Gr.optional().default(Fr)
|
|
5699
5699
|
});
|
|
5700
5700
|
class hs extends Z {
|
|
5701
5701
|
constructor() {
|
|
5702
5702
|
super(...arguments);
|
|
5703
|
-
c(this, "schema",
|
|
5703
|
+
c(this, "schema", zu);
|
|
5704
5704
|
}
|
|
5705
5705
|
async afterUpdate() {
|
|
5706
5706
|
var l;
|
|
@@ -5736,7 +5736,7 @@ class hs extends Z {
|
|
|
5736
5736
|
}
|
|
5737
5737
|
}
|
|
5738
5738
|
c(hs, "TYPE", "Setpoint");
|
|
5739
|
-
const
|
|
5739
|
+
const Th = { [hs.TYPE]: hs }, qu = d.object({
|
|
5740
5740
|
triggered: d.boolean(),
|
|
5741
5741
|
enabled: d.boolean(),
|
|
5742
5742
|
sink: Dn.optional().default(Mn),
|
|
@@ -5745,7 +5745,7 @@ const bh = { [hs.TYPE]: hs }, Fu = d.object({
|
|
|
5745
5745
|
class ds extends Z {
|
|
5746
5746
|
constructor() {
|
|
5747
5747
|
super(...arguments);
|
|
5748
|
-
c(this, "schema",
|
|
5748
|
+
c(this, "schema", qu);
|
|
5749
5749
|
}
|
|
5750
5750
|
async afterUpdate() {
|
|
5751
5751
|
var l;
|
|
@@ -5781,16 +5781,16 @@ class ds extends Z {
|
|
|
5781
5781
|
}
|
|
5782
5782
|
}
|
|
5783
5783
|
c(ds, "TYPE", "Toggle");
|
|
5784
|
-
const
|
|
5784
|
+
const Sh = { [ds.TYPE]: ds }, ju = d.object({
|
|
5785
5785
|
box: f.box,
|
|
5786
|
-
telem:
|
|
5787
|
-
level:
|
|
5786
|
+
telem: Qr.optional().default(zr),
|
|
5787
|
+
level: _r.optional().default("p"),
|
|
5788
5788
|
color: Y.z.optional().default(V),
|
|
5789
5789
|
precision: d.number().optional().default(2),
|
|
5790
5790
|
minWidth: d.number().optional().default(60),
|
|
5791
5791
|
width: d.number().optional(),
|
|
5792
|
-
notation:
|
|
5793
|
-
}),
|
|
5792
|
+
notation: ha.optional().default("standard")
|
|
5793
|
+
}), kr = "upper2d", he = class he extends Z {
|
|
5794
5794
|
constructor() {
|
|
5795
5795
|
super(...arguments);
|
|
5796
5796
|
c(this, "schema", he.z);
|
|
@@ -5803,7 +5803,7 @@ const vh = { [ds.TYPE]: ds }, zu = d.object({
|
|
|
5803
5803
|
async afterDelete() {
|
|
5804
5804
|
var a;
|
|
5805
5805
|
const { requestRender: t, telem: s, render: r } = this.internal;
|
|
5806
|
-
await ((a = s.cleanup) == null ? void 0 : a.call(s)), t == null ? r.erase(f.construct(this.state.box), g.ZERO,
|
|
5806
|
+
await ((a = s.cleanup) == null ? void 0 : a.call(s)), t == null ? r.erase(f.construct(this.state.box), g.ZERO, kr) : t(yt);
|
|
5807
5807
|
}
|
|
5808
5808
|
requestRender() {
|
|
5809
5809
|
const { requestRender: t } = this.internal;
|
|
@@ -5820,7 +5820,7 @@ const vh = { [ds.TYPE]: ds }, zu = d.object({
|
|
|
5820
5820
|
async render({ viewportScale: t = I.XY.IDENTITY }) {
|
|
5821
5821
|
const { render: s, telem: r } = this.internal, a = f.construct(this.state.box);
|
|
5822
5822
|
if (f.areaIsZero(a)) return;
|
|
5823
|
-
const i = s[
|
|
5823
|
+
const i = s[kr].applyScale(t);
|
|
5824
5824
|
let o = await r.value();
|
|
5825
5825
|
const l = re(this.internal.theme, {
|
|
5826
5826
|
level: this.state.level,
|
|
@@ -5841,25 +5841,25 @@ const vh = { [ds.TYPE]: ds }, zu = d.object({
|
|
|
5841
5841
|
), i.fillText(o, ...g.couple(x));
|
|
5842
5842
|
}
|
|
5843
5843
|
};
|
|
5844
|
-
c(he, "TYPE", "value"), c(he, "z",
|
|
5844
|
+
c(he, "TYPE", "value"), c(he, "z", ju);
|
|
5845
5845
|
let Me = he;
|
|
5846
|
-
const
|
|
5846
|
+
const Hu = {
|
|
5847
5847
|
[Me.TYPE]: Me
|
|
5848
|
-
},
|
|
5848
|
+
}, Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5849
5849
|
__proto__: null,
|
|
5850
|
-
REGISTRY:
|
|
5850
|
+
REGISTRY: Hu,
|
|
5851
5851
|
Value: Me
|
|
5852
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5852
|
+
}, Symbol.toStringTag, { value: "Module" })), Wu = vi.payloadZ.extend({
|
|
5853
5853
|
viewport: R.bounds
|
|
5854
|
-
}),
|
|
5854
|
+
}), Pr = (n) => Y.z.safeParse(n).success, Xu = d.object({
|
|
5855
5855
|
cursor: g.xy.or(d.null()),
|
|
5856
|
-
hovered:
|
|
5856
|
+
hovered: Wu.or(d.null()),
|
|
5857
5857
|
count: d.number()
|
|
5858
5858
|
});
|
|
5859
5859
|
class kn extends Z {
|
|
5860
5860
|
constructor() {
|
|
5861
5861
|
super(...arguments);
|
|
5862
|
-
c(this, "schema",
|
|
5862
|
+
c(this, "schema", Xu);
|
|
5863
5863
|
c(this, "fetchedInitial", ut.ZERO);
|
|
5864
5864
|
}
|
|
5865
5865
|
async afterUpdate() {
|
|
@@ -5868,7 +5868,7 @@ class kn extends Z {
|
|
|
5868
5868
|
const s = Oe(this.ctx);
|
|
5869
5869
|
s != null && (t.client = s, t.tracker == null && (t.tracker = await t.client.ranges.openTracker(), t.tracker.onChange(async (r) => {
|
|
5870
5870
|
r.forEach(async (a) => {
|
|
5871
|
-
a.variant === "delete" ? t.ranges.delete(a.key) :
|
|
5871
|
+
a.variant === "delete" ? t.ranges.delete(a.key) : Pr(a.value.color) && t.ranges.set(a.key, a.value);
|
|
5872
5872
|
}), W.requestRender(this.ctx, St), this.setState((a) => ({ ...a, count: t.ranges.size }));
|
|
5873
5873
|
}), W.requestRender(this.ctx, St)));
|
|
5874
5874
|
}
|
|
@@ -5877,7 +5877,7 @@ class kn extends Z {
|
|
|
5877
5877
|
if (s.client == null || this.fetchedInitial.roughlyEquals(t, $.minutes(1)))
|
|
5878
5878
|
return;
|
|
5879
5879
|
this.fetchedInitial = t, (await s.client.ranges.retrieve(t)).forEach((a) => {
|
|
5880
|
-
|
|
5880
|
+
Pr(a.color) && s.ranges.set(a.key, a);
|
|
5881
5881
|
}), this.setState((a) => ({ ...a, count: s.ranges.size }));
|
|
5882
5882
|
}
|
|
5883
5883
|
async render(t) {
|
|
@@ -5898,7 +5898,7 @@ class kn extends Z {
|
|
|
5898
5898
|
let C = u.pos(Number(x.timeRange.start.valueOf()));
|
|
5899
5899
|
const O = u.pos(Number(x.timeRange.end.valueOf()));
|
|
5900
5900
|
if (O < f.left(r) || C > f.right(r)) return;
|
|
5901
|
-
C =
|
|
5901
|
+
C = Nr(C, f.left(r) - 2, f.right(r) - 1);
|
|
5902
5902
|
let N = !1;
|
|
5903
5903
|
h != null && (N = R.contains({ lower: C, upper: O }, h)), N && (p = {
|
|
5904
5904
|
key: x.key,
|
|
@@ -5940,11 +5940,11 @@ class kn extends Z {
|
|
|
5940
5940
|
}
|
|
5941
5941
|
}
|
|
5942
5942
|
c(kn, "TYPE", "range-provider");
|
|
5943
|
-
const
|
|
5943
|
+
const Ch = {
|
|
5944
5944
|
[ss.TYPE]: ss,
|
|
5945
5945
|
[kn.TYPE]: kn
|
|
5946
|
-
},
|
|
5947
|
-
class Pn extends
|
|
5946
|
+
}, kh = _n;
|
|
5947
|
+
class Pn extends Wa {
|
|
5948
5948
|
constructor() {
|
|
5949
5949
|
super(...arguments);
|
|
5950
5950
|
c(this, "schema", _n);
|
|
@@ -6006,21 +6006,21 @@ class Pn extends Ha {
|
|
|
6006
6006
|
}
|
|
6007
6007
|
}
|
|
6008
6008
|
c(Pn, "TYPE", "XAxis");
|
|
6009
|
-
const
|
|
6009
|
+
const Gu = d.object({
|
|
6010
6010
|
container: f.box,
|
|
6011
6011
|
viewport: f.box,
|
|
6012
6012
|
hold: d.boolean().optional().default(!1),
|
|
6013
|
-
grid: d.record(
|
|
6013
|
+
grid: d.record(Sa),
|
|
6014
6014
|
visible: d.boolean().optional().default(!0),
|
|
6015
6015
|
clearOverScan: g.crudeZ.optional().default(g.ZERO)
|
|
6016
|
-
}),
|
|
6016
|
+
}), Vu = (n, e) => {
|
|
6017
6017
|
const t = f.width(n) * Math.sqrt(f.height(n)), s = f.width(e) * Math.sqrt(f.height(e));
|
|
6018
6018
|
return t / s;
|
|
6019
6019
|
};
|
|
6020
6020
|
class fs extends wt {
|
|
6021
6021
|
constructor() {
|
|
6022
6022
|
super(...arguments);
|
|
6023
|
-
c(this, "schema",
|
|
6023
|
+
c(this, "schema", Gu);
|
|
6024
6024
|
}
|
|
6025
6025
|
async afterUpdate() {
|
|
6026
6026
|
this.internal.instrumentation = Le(this.ctx, "lineplot"), this.internal.aggregate = ws(this.ctx), this.internal.renderCtx = z.use(this.ctx), W.control(this.ctx, (t) => this.requestRender("low", t)), this.requestRender("high", yt);
|
|
@@ -6054,7 +6054,7 @@ class fs extends wt {
|
|
|
6054
6054
|
return this.childrenOfType(Re.TYPE);
|
|
6055
6055
|
}
|
|
6056
6056
|
get exposure() {
|
|
6057
|
-
return
|
|
6057
|
+
return Vu(this.state.viewport, this.state.container);
|
|
6058
6058
|
}
|
|
6059
6059
|
async renderAxes(t, s) {
|
|
6060
6060
|
const r = {
|
|
@@ -6079,7 +6079,7 @@ class fs extends wt {
|
|
|
6079
6079
|
await Promise.all(this.measures.map(async (a) => await a.render(r)));
|
|
6080
6080
|
}
|
|
6081
6081
|
calculatePlot() {
|
|
6082
|
-
return
|
|
6082
|
+
return bo(this.state.grid, this.state.container);
|
|
6083
6083
|
}
|
|
6084
6084
|
async render(t) {
|
|
6085
6085
|
const { renderCtx: s } = this.internal, { instrumentation: r } = this.internal;
|
|
@@ -6135,135 +6135,135 @@ class fs extends wt {
|
|
|
6135
6135
|
}
|
|
6136
6136
|
}
|
|
6137
6137
|
c(fs, "TYPE", "LinePlot");
|
|
6138
|
-
const
|
|
6138
|
+
const Ph = {
|
|
6139
6139
|
[fs.TYPE]: fs,
|
|
6140
6140
|
[Pn.TYPE]: Pn,
|
|
6141
6141
|
[bn.TYPE]: bn
|
|
6142
6142
|
};
|
|
6143
6143
|
export {
|
|
6144
6144
|
is as $,
|
|
6145
|
-
|
|
6146
|
-
|
|
6145
|
+
vh as A,
|
|
6146
|
+
lh as B,
|
|
6147
6147
|
z as C,
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6148
|
+
mh as D,
|
|
6149
|
+
Gc as E,
|
|
6150
|
+
Eh as F,
|
|
6151
|
+
ja as G,
|
|
6152
6152
|
fs as H,
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6153
|
+
Gu as I,
|
|
6154
|
+
kh as J,
|
|
6155
|
+
ch as K,
|
|
6156
|
+
Xc as L,
|
|
6157
6157
|
hn as M,
|
|
6158
|
-
|
|
6159
|
-
|
|
6158
|
+
Fc as N,
|
|
6159
|
+
qa as O,
|
|
6160
6160
|
Vn as P,
|
|
6161
6161
|
mr as Q,
|
|
6162
6162
|
vr as R,
|
|
6163
|
-
|
|
6164
|
-
|
|
6163
|
+
Fa as S,
|
|
6164
|
+
Za as T,
|
|
6165
6165
|
Tn as U,
|
|
6166
6166
|
Sn as V,
|
|
6167
6167
|
rs as W,
|
|
6168
6168
|
Pn as X,
|
|
6169
6169
|
bn as Y,
|
|
6170
|
-
|
|
6170
|
+
Ir as Z,
|
|
6171
6171
|
as as _,
|
|
6172
6172
|
W as a,
|
|
6173
|
-
|
|
6173
|
+
Au as a$,
|
|
6174
6174
|
os as a0,
|
|
6175
|
-
|
|
6175
|
+
Cu as a1,
|
|
6176
6176
|
vn as a2,
|
|
6177
6177
|
Ce as a3,
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6178
|
+
hh as a4,
|
|
6179
|
+
Mu as a5,
|
|
6180
|
+
dh as a6,
|
|
6181
|
+
Ou as a7,
|
|
6182
|
+
Tu as a8,
|
|
6183
|
+
Pu as a9,
|
|
6184
|
+
Ui as aA,
|
|
6185
6185
|
cs as aB,
|
|
6186
|
-
|
|
6186
|
+
Nu as aC,
|
|
6187
6187
|
zs as aD,
|
|
6188
|
-
|
|
6188
|
+
no as aE,
|
|
6189
6189
|
be as aF,
|
|
6190
|
-
|
|
6190
|
+
Ta as aG,
|
|
6191
6191
|
Se as aH,
|
|
6192
6192
|
Qs as aI,
|
|
6193
|
-
|
|
6193
|
+
Qo as aJ,
|
|
6194
6194
|
ke as aK,
|
|
6195
|
-
|
|
6195
|
+
Va as aL,
|
|
6196
6196
|
Cn as aM,
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6197
|
+
Uu as aN,
|
|
6198
|
+
na as aO,
|
|
6199
|
+
ra as aP,
|
|
6200
|
+
aa as aQ,
|
|
6201
|
+
ga as aR,
|
|
6202
|
+
ma as aS,
|
|
6203
|
+
Li as aT,
|
|
6204
|
+
Zi as aU,
|
|
6205
|
+
Ki as aV,
|
|
6206
|
+
_i as aW,
|
|
6207
|
+
Gi as aX,
|
|
6208
|
+
to as aY,
|
|
6209
|
+
eo as aZ,
|
|
6210
6210
|
ls as a_,
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6211
|
+
Du as aa,
|
|
6212
|
+
Yu as ab,
|
|
6213
|
+
uh as ac,
|
|
6214
|
+
Ru as ad,
|
|
6215
|
+
Su as ae,
|
|
6216
|
+
ku as af,
|
|
6217
|
+
Eu as ag,
|
|
6218
6218
|
En as ah,
|
|
6219
|
-
|
|
6219
|
+
Ga as ai,
|
|
6220
6220
|
It as aj,
|
|
6221
6221
|
_n as ak,
|
|
6222
|
-
|
|
6223
|
-
|
|
6222
|
+
ru as al,
|
|
6223
|
+
Qc as am,
|
|
6224
6224
|
xn as an,
|
|
6225
|
-
|
|
6225
|
+
ou as ao,
|
|
6226
6226
|
Pe as ap,
|
|
6227
|
-
|
|
6227
|
+
Ka as aq,
|
|
6228
6228
|
ss as ar,
|
|
6229
|
-
|
|
6229
|
+
vu as as,
|
|
6230
6230
|
kn as at,
|
|
6231
|
-
|
|
6231
|
+
Xu as au,
|
|
6232
6232
|
Re as av,
|
|
6233
|
-
|
|
6233
|
+
Qa as aw,
|
|
6234
6234
|
Ee as ax,
|
|
6235
|
-
|
|
6236
|
-
|
|
6235
|
+
Xa as ay,
|
|
6236
|
+
$i as az,
|
|
6237
6237
|
yt as b,
|
|
6238
6238
|
us as b0,
|
|
6239
|
-
|
|
6239
|
+
Iu as b1,
|
|
6240
6240
|
hs as b2,
|
|
6241
|
-
|
|
6241
|
+
zu as b3,
|
|
6242
6242
|
ds as b4,
|
|
6243
|
-
|
|
6243
|
+
qu as b5,
|
|
6244
6244
|
Me as b6,
|
|
6245
6245
|
St as c,
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6246
|
+
sh as d,
|
|
6247
|
+
ph as e,
|
|
6248
|
+
Lu as f,
|
|
6249
|
+
fh as g,
|
|
6250
|
+
_u as h,
|
|
6251
|
+
yh as i,
|
|
6252
|
+
wh as j,
|
|
6253
|
+
oh as k,
|
|
6254
|
+
Ph as l,
|
|
6255
|
+
Fu as m,
|
|
6256
|
+
Ch as n,
|
|
6257
|
+
xu as o,
|
|
6258
|
+
Th as p,
|
|
6259
|
+
Mi as q,
|
|
6260
|
+
wo as r,
|
|
6261
|
+
Sh as s,
|
|
6262
|
+
Bu as t,
|
|
6263
|
+
Hu as u,
|
|
6264
|
+
bh as v,
|
|
6265
|
+
eh as w,
|
|
6266
|
+
rh as x,
|
|
6267
|
+
gh as y,
|
|
6268
|
+
xh as z
|
|
6269
6269
|
};
|