@milaboratories/pl-model-common 1.16.2 → 1.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drivers/pframe/data_info.d.ts +6 -0
- package/dist/drivers/pframe/data_info.d.ts.map +1 -1
- package/dist/errors.d.ts +4 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +216 -188
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/drivers/pframe/data_info.ts +31 -0
- package/src/errors.ts +8 -0
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var L = (e, n, t) => n in e ?
|
|
3
|
-
var
|
|
1
|
+
var R = Object.defineProperty;
|
|
2
|
+
var L = (e, n, t) => n in e ? R(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var d = (e, n, t) => L(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
4
|
import { z as m } from "zod";
|
|
5
5
|
import h from "canonicalize";
|
|
6
|
-
function
|
|
6
|
+
function ke(e) {
|
|
7
7
|
if (e.code !== void 0)
|
|
8
8
|
return {
|
|
9
9
|
code: e.code,
|
|
@@ -15,7 +15,7 @@ function p(e) {
|
|
|
15
15
|
if (e !== void 0)
|
|
16
16
|
return typeof e == "string" ? { __renderLambda: !0, handle: e, retentive: !1 } : e;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ee(e) {
|
|
19
19
|
if (e.v3 !== void 0) {
|
|
20
20
|
const {
|
|
21
21
|
initialArgs: n,
|
|
@@ -28,7 +28,7 @@ function ke(e) {
|
|
|
28
28
|
sections: u,
|
|
29
29
|
title: c,
|
|
30
30
|
enrichmentTargets: f
|
|
31
|
-
} = e.v3, { code:
|
|
31
|
+
} = e.v3, { code: D } = e;
|
|
32
32
|
return {
|
|
33
33
|
initialArgs: n,
|
|
34
34
|
initialUiState: t,
|
|
@@ -39,7 +39,7 @@ function ke(e) {
|
|
|
39
39
|
featureFlags: s,
|
|
40
40
|
sections: u,
|
|
41
41
|
title: c,
|
|
42
|
-
code:
|
|
42
|
+
code: D,
|
|
43
43
|
enrichmentTargets: f
|
|
44
44
|
};
|
|
45
45
|
} else if (e.inputsValid !== void 0) {
|
|
@@ -85,21 +85,21 @@ function ke(e) {
|
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const xe = m.object({
|
|
89
89
|
/** Included left border. */
|
|
90
90
|
from: m.number(),
|
|
91
91
|
/** Excluded right border. */
|
|
92
92
|
to: m.number()
|
|
93
93
|
});
|
|
94
|
-
function
|
|
94
|
+
function Se(e, n) {
|
|
95
95
|
if (!(e == null || n == null))
|
|
96
96
|
return { from: e, to: n };
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function ve(e, n) {
|
|
99
99
|
if (e.from < 0 || e.to < 0 || e.from >= e.to)
|
|
100
100
|
throw new Error(`${n}: invalid bytes range: ${e}`);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ne(e) {
|
|
103
103
|
return e !== void 0 && e.startsWith("log+live://log/");
|
|
104
104
|
}
|
|
105
105
|
function A(e) {
|
|
@@ -125,10 +125,10 @@ function K(e) {
|
|
|
125
125
|
function M(e) {
|
|
126
126
|
return e.replace(/^.*[\\/]/, "");
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Oe(e) {
|
|
129
129
|
return M(K(e));
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ce(e) {
|
|
132
132
|
if (!e || typeof e != "object")
|
|
133
133
|
return !1;
|
|
134
134
|
const n = e;
|
|
@@ -145,7 +145,7 @@ function Oe(e) {
|
|
|
145
145
|
return !1;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Fe(e, n) {
|
|
149
149
|
if (e !== void 0)
|
|
150
150
|
switch (e.type) {
|
|
151
151
|
case "Json":
|
|
@@ -173,6 +173,22 @@ function Ce(e, n) {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
+
function $e(e, n) {
|
|
177
|
+
switch (e.type) {
|
|
178
|
+
case "Json":
|
|
179
|
+
break;
|
|
180
|
+
case "JsonPartitioned": {
|
|
181
|
+
for (const [t, r] of Object.entries(e.parts))
|
|
182
|
+
n(r);
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
case "BinaryPartitioned": {
|
|
186
|
+
for (const [t, r] of Object.entries(e.parts))
|
|
187
|
+
n(r.index), n(r.values);
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
176
192
|
function _(e) {
|
|
177
193
|
if (!e || typeof e != "object")
|
|
178
194
|
return !1;
|
|
@@ -190,10 +206,10 @@ function _(e) {
|
|
|
190
206
|
return !1;
|
|
191
207
|
}
|
|
192
208
|
}
|
|
193
|
-
function
|
|
209
|
+
function Ve(e) {
|
|
194
210
|
return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : !1;
|
|
195
211
|
}
|
|
196
|
-
function
|
|
212
|
+
function je(e) {
|
|
197
213
|
switch (e.type) {
|
|
198
214
|
case "Json": {
|
|
199
215
|
const n = Object.entries(e.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
@@ -221,7 +237,7 @@ function Ve(e) {
|
|
|
221
237
|
}
|
|
222
238
|
}
|
|
223
239
|
}
|
|
224
|
-
function
|
|
240
|
+
function Ie(e) {
|
|
225
241
|
switch (e.type) {
|
|
226
242
|
case "Json": {
|
|
227
243
|
const n = {};
|
|
@@ -255,7 +271,7 @@ function Fe(e) {
|
|
|
255
271
|
}
|
|
256
272
|
}
|
|
257
273
|
}
|
|
258
|
-
function
|
|
274
|
+
function Je(e, n) {
|
|
259
275
|
if (e !== void 0)
|
|
260
276
|
switch (e.type) {
|
|
261
277
|
case "Json":
|
|
@@ -285,7 +301,7 @@ function Ie(e, n) {
|
|
|
285
301
|
}
|
|
286
302
|
}
|
|
287
303
|
}
|
|
288
|
-
const q = -2147483648, k = -9007199254740991n,
|
|
304
|
+
const q = -2147483648, k = -9007199254740991n, De = NaN, Re = NaN, T = null, z = null;
|
|
289
305
|
function b(e, n) {
|
|
290
306
|
switch (n) {
|
|
291
307
|
case "Int":
|
|
@@ -304,7 +320,7 @@ function b(e, n) {
|
|
|
304
320
|
throw Error(`unsupported data type: ${n}`);
|
|
305
321
|
}
|
|
306
322
|
}
|
|
307
|
-
function
|
|
323
|
+
function Le(e) {
|
|
308
324
|
if (!H(e)) throw new Error(`Expected not-NA PValue, got ${e}`);
|
|
309
325
|
return e;
|
|
310
326
|
}
|
|
@@ -350,7 +366,7 @@ function W(e, n) {
|
|
|
350
366
|
throw Error(`unsupported data type: ${n}`);
|
|
351
367
|
}
|
|
352
368
|
}
|
|
353
|
-
function
|
|
369
|
+
function Be(e) {
|
|
354
370
|
if (e === null || typeof e == "string" || typeof e == "number") return e;
|
|
355
371
|
if (typeof e == "bigint") return { bigint: e.toString() };
|
|
356
372
|
throw new Error(`Type ${typeof e} (value ${e}) not yet supported.`);
|
|
@@ -368,7 +384,7 @@ function G(e, n) {
|
|
|
368
384
|
}
|
|
369
385
|
throw new Error(`Unsupported type ${typeof e} (value ${e}).`);
|
|
370
386
|
}
|
|
371
|
-
function
|
|
387
|
+
function Ue(e) {
|
|
372
388
|
if (e = X(e), e === null) throw new Error("Value is null");
|
|
373
389
|
return e;
|
|
374
390
|
}
|
|
@@ -388,10 +404,10 @@ function Q(e, n) {
|
|
|
388
404
|
return (e[t] & r) > 0;
|
|
389
405
|
}
|
|
390
406
|
const Y = { type: "absent" }, Z = null;
|
|
391
|
-
function
|
|
407
|
+
function Ke(e) {
|
|
392
408
|
return typeof e == "object" && e !== null && e.type === "absent";
|
|
393
409
|
}
|
|
394
|
-
function
|
|
410
|
+
function Me(e, n, t = {}) {
|
|
395
411
|
if (Q(e.absent, n))
|
|
396
412
|
return t.absent === void 0 ? Y : t.absent;
|
|
397
413
|
const r = e.data[n], o = e.type;
|
|
@@ -413,7 +429,7 @@ function Ue(e, n, t = {}) {
|
|
|
413
429
|
throw Error(`unsupported data type: ${o}`);
|
|
414
430
|
}
|
|
415
431
|
}
|
|
416
|
-
function
|
|
432
|
+
function _e(e) {
|
|
417
433
|
return {
|
|
418
434
|
kind: e.kind,
|
|
419
435
|
valueType: e.valueType,
|
|
@@ -423,7 +439,7 @@ function Ke(e) {
|
|
|
423
439
|
axesId: C(e.axesSpec)
|
|
424
440
|
};
|
|
425
441
|
}
|
|
426
|
-
function
|
|
442
|
+
function qe(e) {
|
|
427
443
|
return {
|
|
428
444
|
columnId: e.id,
|
|
429
445
|
spec: e.spec
|
|
@@ -436,7 +452,7 @@ function y(e) {
|
|
|
436
452
|
function C(e) {
|
|
437
453
|
return e.map(y);
|
|
438
454
|
}
|
|
439
|
-
function
|
|
455
|
+
function Te(e) {
|
|
440
456
|
return h(y(e));
|
|
441
457
|
}
|
|
442
458
|
function ee(e, n) {
|
|
@@ -449,7 +465,7 @@ function ee(e, n) {
|
|
|
449
465
|
function ne(e, n) {
|
|
450
466
|
return e.name === n.name && ee(e.domain, n.domain);
|
|
451
467
|
}
|
|
452
|
-
function
|
|
468
|
+
function ze(e, n) {
|
|
453
469
|
return { ...e, src: g(e.src, n) };
|
|
454
470
|
}
|
|
455
471
|
function g(e, n) {
|
|
@@ -484,7 +500,7 @@ function g(e, n) {
|
|
|
484
500
|
A(e);
|
|
485
501
|
}
|
|
486
502
|
}
|
|
487
|
-
function
|
|
503
|
+
function He(e) {
|
|
488
504
|
switch (e.type) {
|
|
489
505
|
case "axis":
|
|
490
506
|
return {
|
|
@@ -501,45 +517,45 @@ function Te(e) {
|
|
|
501
517
|
function te(e) {
|
|
502
518
|
return h(e);
|
|
503
519
|
}
|
|
504
|
-
function
|
|
520
|
+
function We(e) {
|
|
505
521
|
return JSON.parse(e);
|
|
506
522
|
}
|
|
507
|
-
function
|
|
523
|
+
function E(e) {
|
|
508
524
|
return h(y(e));
|
|
509
525
|
}
|
|
510
|
-
function
|
|
526
|
+
function x(e, n) {
|
|
511
527
|
return JSON.stringify([e, n]);
|
|
512
528
|
}
|
|
513
|
-
class
|
|
529
|
+
class Ge {
|
|
514
530
|
/**
|
|
515
531
|
* Creates a new anchor context from a set of anchor column specifications
|
|
516
532
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
517
533
|
*/
|
|
518
534
|
constructor(n) {
|
|
519
|
-
|
|
520
|
-
|
|
535
|
+
d(this, "domains", /* @__PURE__ */ new Map());
|
|
536
|
+
d(this, "axes", /* @__PURE__ */ new Map());
|
|
521
537
|
/**
|
|
522
538
|
* Domain packs are used to group domain keys that can be anchored to the same anchor
|
|
523
539
|
* This is used to optimize the lookup of domain anchors
|
|
524
540
|
*/
|
|
525
|
-
|
|
541
|
+
d(this, "domainPacks", []);
|
|
526
542
|
/**
|
|
527
543
|
* Maps domain packs to anchors
|
|
528
544
|
*/
|
|
529
|
-
|
|
545
|
+
d(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
530
546
|
this.anchors = n;
|
|
531
547
|
const t = Object.entries(n);
|
|
532
548
|
t.sort((r, o) => r[0].localeCompare(o[0]));
|
|
533
549
|
for (const [r, o] of t) {
|
|
534
550
|
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
535
|
-
const a = o.axesSpec[i], s =
|
|
551
|
+
const a = o.axesSpec[i], s = E(a);
|
|
536
552
|
this.axes.set(s, { anchor: r, idx: i });
|
|
537
553
|
}
|
|
538
554
|
if (o.domain !== void 0) {
|
|
539
555
|
const i = Object.entries(o.domain);
|
|
540
556
|
i.sort((a, s) => a[0].localeCompare(s[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
541
557
|
for (const [a, s] of i) {
|
|
542
|
-
const u =
|
|
558
|
+
const u = x(a, s);
|
|
543
559
|
this.domains.set(u, r);
|
|
544
560
|
}
|
|
545
561
|
}
|
|
@@ -574,11 +590,11 @@ class He {
|
|
|
574
590
|
for (const [a, s] of Object.entries(n.domain ?? {})) {
|
|
575
591
|
if (o !== void 0 && o.has(a))
|
|
576
592
|
continue;
|
|
577
|
-
const u =
|
|
593
|
+
const u = x(a, s), c = this.domains.get(u);
|
|
578
594
|
r.domain ?? (r.domain = {}), r.domain[a] = c ? { anchor: c } : s;
|
|
579
595
|
}
|
|
580
596
|
if (r.axes = n.axesSpec.map((a) => {
|
|
581
|
-
const s =
|
|
597
|
+
const s = E(a), u = this.axes.get(s);
|
|
582
598
|
return u === void 0 ? y(a) : u;
|
|
583
599
|
}), !t || t.length === 0)
|
|
584
600
|
return r;
|
|
@@ -611,7 +627,7 @@ class He {
|
|
|
611
627
|
return te(this.derive(n, t));
|
|
612
628
|
}
|
|
613
629
|
}
|
|
614
|
-
function
|
|
630
|
+
function Xe(e, n, t) {
|
|
615
631
|
const r = { ...n }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? !1;
|
|
616
632
|
if (r.domainAnchor !== void 0) {
|
|
617
633
|
const i = e[r.domainAnchor];
|
|
@@ -670,32 +686,32 @@ function re(e, n) {
|
|
|
670
686
|
function oe(e) {
|
|
671
687
|
return typeof e == "object" && "anchor" in e;
|
|
672
688
|
}
|
|
673
|
-
function
|
|
689
|
+
function Qe(e) {
|
|
674
690
|
return typeof e == "object" && e !== null && "source" in e && "axisFilters" in e;
|
|
675
691
|
}
|
|
676
|
-
function
|
|
692
|
+
function l(e) {
|
|
677
693
|
return e.kind === "PColumn";
|
|
678
694
|
}
|
|
679
695
|
function ie(e) {
|
|
680
|
-
return
|
|
696
|
+
return l(e.spec);
|
|
681
697
|
}
|
|
682
|
-
function
|
|
683
|
-
return
|
|
698
|
+
function Ye(e) {
|
|
699
|
+
return l(e.obj);
|
|
684
700
|
}
|
|
685
|
-
function
|
|
686
|
-
return
|
|
701
|
+
function Ze(e) {
|
|
702
|
+
return l(e.obj.spec);
|
|
687
703
|
}
|
|
688
|
-
function
|
|
704
|
+
function en(e) {
|
|
689
705
|
if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
690
706
|
return e;
|
|
691
707
|
}
|
|
692
|
-
function
|
|
708
|
+
function nn(e, n) {
|
|
693
709
|
return e === void 0 ? void 0 : {
|
|
694
710
|
...e,
|
|
695
711
|
data: n(e.data)
|
|
696
712
|
};
|
|
697
713
|
}
|
|
698
|
-
function
|
|
714
|
+
function tn(e) {
|
|
699
715
|
const n = /* @__PURE__ */ new Map(), t = (r) => {
|
|
700
716
|
switch (r.type) {
|
|
701
717
|
case "column":
|
|
@@ -736,15 +752,15 @@ function w(e, n) {
|
|
|
736
752
|
case "not":
|
|
737
753
|
return !w(e.operand, n);
|
|
738
754
|
case "name":
|
|
739
|
-
return
|
|
755
|
+
return l(n) && n.name === e.name;
|
|
740
756
|
case "name_pattern":
|
|
741
|
-
return
|
|
757
|
+
return l(n) && !!n.name.match(e.pattern);
|
|
742
758
|
case "annotation":
|
|
743
|
-
return
|
|
759
|
+
return l(n) && n.annotations !== void 0 && n.annotations[e.annotation] === e.value;
|
|
744
760
|
case "annotation_pattern":
|
|
745
|
-
return
|
|
761
|
+
return l(n) && n.annotations !== void 0 && n.annotations[e.annotation] !== void 0 && !!n.annotations[e.annotation].match(e.pattern);
|
|
746
762
|
case "has_axes":
|
|
747
|
-
return
|
|
763
|
+
return l(n) && e.axes.every(
|
|
748
764
|
(t) => n.axesSpec.some(
|
|
749
765
|
(r) => (t.type === void 0 || t.type === r.type) && (t.name === void 0 || t.name === r.name) && (t.domain === void 0 || Object.keys(t.domain).length === 0 || r.domain !== void 0 && Object.entries(t.domain).every(
|
|
750
766
|
([o, i]) => r.domain[o] === i
|
|
@@ -819,17 +835,17 @@ function v(e, n) {
|
|
|
819
835
|
}
|
|
820
836
|
return !0;
|
|
821
837
|
}
|
|
822
|
-
function
|
|
823
|
-
return Array.isArray(e) ? (n) => e.some((t) =>
|
|
838
|
+
function rn(e) {
|
|
839
|
+
return Array.isArray(e) ? (n) => e.some((t) => l(n) && v(n, t)) : (n) => l(n) && v(n, e);
|
|
824
840
|
}
|
|
825
|
-
function
|
|
841
|
+
function on(e) {
|
|
826
842
|
const n = {
|
|
827
843
|
kind: e.kind,
|
|
828
844
|
name: e.name
|
|
829
845
|
};
|
|
830
|
-
return e.domain !== void 0 && (n.domain = e.domain),
|
|
846
|
+
return e.domain !== void 0 && (n.domain = e.domain), l(e) && (n.axesSpec = C(e.axesSpec)), h(n);
|
|
831
847
|
}
|
|
832
|
-
const
|
|
848
|
+
const sn = { href: "/" }, an = m.object({
|
|
833
849
|
__isRef: m.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
834
850
|
blockId: m.string().describe("Upstream block id"),
|
|
835
851
|
name: m.string().describe("Name of the output provided to the upstream block's output context"),
|
|
@@ -837,10 +853,10 @@ const rn = { href: "/" }, on = m.object({
|
|
|
837
853
|
}).describe(
|
|
838
854
|
"Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
|
|
839
855
|
).readonly();
|
|
840
|
-
function
|
|
856
|
+
function un(e) {
|
|
841
857
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === !0 && "blockId" in e && "name" in e;
|
|
842
858
|
}
|
|
843
|
-
function
|
|
859
|
+
function cn(e, n, t = !1) {
|
|
844
860
|
return t ? {
|
|
845
861
|
__isRef: !0,
|
|
846
862
|
blockId: e,
|
|
@@ -852,7 +868,7 @@ function an(e, n, t = !1) {
|
|
|
852
868
|
name: n
|
|
853
869
|
};
|
|
854
870
|
}
|
|
855
|
-
function
|
|
871
|
+
function fn(e, n = !0) {
|
|
856
872
|
if (n)
|
|
857
873
|
return {
|
|
858
874
|
...e,
|
|
@@ -863,10 +879,10 @@ function un(e, n = !0) {
|
|
|
863
879
|
return r;
|
|
864
880
|
}
|
|
865
881
|
}
|
|
866
|
-
function
|
|
882
|
+
function dn(e, n, t = !1) {
|
|
867
883
|
return e.blockId === n.blockId && e.name === n.name && (t || e.requireEnrichments === n.requireEnrichments);
|
|
868
884
|
}
|
|
869
|
-
function
|
|
885
|
+
function ln(e, n) {
|
|
870
886
|
return e.ok ? { ok: !0, value: n(e.value) } : e;
|
|
871
887
|
}
|
|
872
888
|
function ae(e) {
|
|
@@ -878,7 +894,7 @@ function ae(e) {
|
|
|
878
894
|
);
|
|
879
895
|
}
|
|
880
896
|
const ue = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", ce = "0123456789ABCDEFGHIJKLMNOPQRSTUV", fe = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
881
|
-
function
|
|
897
|
+
function F(e, n, t) {
|
|
882
898
|
t = t || {};
|
|
883
899
|
let r, o;
|
|
884
900
|
switch (n) {
|
|
@@ -905,59 +921,68 @@ function $(e, n, t) {
|
|
|
905
921
|
c += "=";
|
|
906
922
|
return c;
|
|
907
923
|
}
|
|
908
|
-
const
|
|
909
|
-
function
|
|
910
|
-
const e = new Uint8Array(
|
|
911
|
-
return crypto.getRandomValues(e),
|
|
924
|
+
const $ = 15, de = 24, V = m.string().length(de).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
925
|
+
function mn() {
|
|
926
|
+
const e = new Uint8Array($);
|
|
927
|
+
return crypto.getRandomValues(e), V.parse(F(e, "RFC4648"));
|
|
912
928
|
}
|
|
913
929
|
function le(e) {
|
|
914
|
-
if (e.length !==
|
|
915
|
-
return
|
|
930
|
+
if (e.length !== $) throw new Error(`Wrong number of bytes: ${e.length}`);
|
|
931
|
+
return V.parse(F(e, "RFC4648"));
|
|
916
932
|
}
|
|
917
|
-
async function
|
|
933
|
+
async function pn(e) {
|
|
918
934
|
const n = new TextEncoder(), t = await crypto.subtle.digest("SHA-256", n.encode(e));
|
|
919
935
|
return le(new Uint8Array(t.slice(0, 15)));
|
|
920
936
|
}
|
|
921
|
-
function
|
|
937
|
+
function yn(e) {
|
|
922
938
|
return JSON.stringify(e);
|
|
923
939
|
}
|
|
924
|
-
function
|
|
940
|
+
function hn(e) {
|
|
925
941
|
return h(e);
|
|
926
942
|
}
|
|
927
|
-
function
|
|
943
|
+
function gn(e) {
|
|
928
944
|
return JSON.parse(e);
|
|
929
945
|
}
|
|
930
|
-
class
|
|
946
|
+
class bn extends Error {
|
|
931
947
|
constructor() {
|
|
932
948
|
super(...arguments);
|
|
933
|
-
|
|
949
|
+
d(this, "name", "AbortError");
|
|
934
950
|
}
|
|
935
951
|
}
|
|
936
|
-
class
|
|
952
|
+
class wn extends Error {
|
|
937
953
|
constructor() {
|
|
938
954
|
super(...arguments);
|
|
939
|
-
|
|
955
|
+
d(this, "name", "UiError");
|
|
940
956
|
}
|
|
941
957
|
}
|
|
942
|
-
function
|
|
958
|
+
function An(e) {
|
|
943
959
|
return e instanceof Error && e.name === "AbortError";
|
|
944
960
|
}
|
|
945
961
|
function me(e) {
|
|
946
962
|
return e instanceof Error ? e.name === "AbortError" || me(e.cause) : !1;
|
|
947
963
|
}
|
|
948
|
-
function
|
|
964
|
+
function Pn(e) {
|
|
949
965
|
return e instanceof Error && e.name === "AggregateError";
|
|
950
966
|
}
|
|
951
|
-
class
|
|
967
|
+
class pe extends Error {
|
|
952
968
|
constructor() {
|
|
953
969
|
super(...arguments);
|
|
954
|
-
|
|
970
|
+
d(this, "name", "PFrameError");
|
|
955
971
|
}
|
|
956
972
|
}
|
|
957
|
-
function
|
|
973
|
+
function kn(e) {
|
|
958
974
|
return e instanceof Error && e.name === "PFrameError";
|
|
959
975
|
}
|
|
960
|
-
|
|
976
|
+
class En extends pe {
|
|
977
|
+
constructor() {
|
|
978
|
+
super(...arguments);
|
|
979
|
+
d(this, "name", "PFrameError.Driver");
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
function xn(e) {
|
|
983
|
+
return e instanceof Error && e.name === "PFrameError.Driver";
|
|
984
|
+
}
|
|
985
|
+
function ye(e) {
|
|
961
986
|
if (typeof e == "string")
|
|
962
987
|
return `String value was thrown: ${e}`;
|
|
963
988
|
if (e && typeof e == "object")
|
|
@@ -968,15 +993,15 @@ function pe(e) {
|
|
|
968
993
|
}
|
|
969
994
|
return `Non-Error value (${typeof e}) was thrown: ${e}`;
|
|
970
995
|
}
|
|
971
|
-
function
|
|
972
|
-
return e instanceof Error ? e : new Error(
|
|
996
|
+
function P(e) {
|
|
997
|
+
return e instanceof Error ? e : new Error(ye(e));
|
|
973
998
|
}
|
|
974
|
-
function
|
|
975
|
-
const n = e.cause ?
|
|
999
|
+
function j(e) {
|
|
1000
|
+
const n = e.cause ? j(e.cause) : void 0, t = new Error(e.message, n !== void 0 ? { cause: n } : void 0);
|
|
976
1001
|
return t.name = e.name || "Error", t.stack = e.stack, t;
|
|
977
1002
|
}
|
|
978
|
-
function
|
|
979
|
-
const n =
|
|
1003
|
+
function I(e) {
|
|
1004
|
+
const n = P(e), t = n.cause ? I(n.cause) : void 0;
|
|
980
1005
|
return {
|
|
981
1006
|
name: n.name,
|
|
982
1007
|
message: n.message,
|
|
@@ -984,59 +1009,59 @@ function j(e) {
|
|
|
984
1009
|
...n.cause !== void 0 && { cause: t }
|
|
985
1010
|
};
|
|
986
1011
|
}
|
|
987
|
-
function
|
|
1012
|
+
function Sn(e) {
|
|
988
1013
|
if (e.error)
|
|
989
1014
|
throw e.error;
|
|
990
1015
|
return e.value;
|
|
991
1016
|
}
|
|
992
1017
|
function J(e) {
|
|
993
|
-
return e.error ? { error: j(e.error) } : { value: e.value };
|
|
994
|
-
}
|
|
995
|
-
function Pn(e) {
|
|
996
1018
|
return e.error ? { error: I(e.error) } : { value: e.value };
|
|
997
1019
|
}
|
|
998
|
-
function
|
|
1020
|
+
function vn(e) {
|
|
1021
|
+
return e.error ? { error: j(e.error) } : { value: e.value };
|
|
1022
|
+
}
|
|
1023
|
+
function he(e) {
|
|
999
1024
|
try {
|
|
1000
1025
|
return { value: e() };
|
|
1001
1026
|
} catch (n) {
|
|
1002
|
-
return { error:
|
|
1027
|
+
return { error: P(n) };
|
|
1003
1028
|
}
|
|
1004
1029
|
}
|
|
1005
|
-
async function
|
|
1030
|
+
async function ge(e) {
|
|
1006
1031
|
try {
|
|
1007
1032
|
return { value: await e() };
|
|
1008
1033
|
} catch (n) {
|
|
1009
|
-
return { error:
|
|
1034
|
+
return { error: P(n) };
|
|
1010
1035
|
}
|
|
1011
1036
|
}
|
|
1012
|
-
function
|
|
1013
|
-
const n =
|
|
1037
|
+
function Nn(e) {
|
|
1038
|
+
const n = he(e);
|
|
1014
1039
|
return J(n);
|
|
1015
1040
|
}
|
|
1016
|
-
async function
|
|
1017
|
-
const n = await
|
|
1041
|
+
async function On(e) {
|
|
1042
|
+
const n = await ge(e);
|
|
1018
1043
|
return J(n);
|
|
1019
1044
|
}
|
|
1020
|
-
const
|
|
1021
|
-
function
|
|
1045
|
+
const Cn = ["supportsLazyState"], Fn = ["requiresUIAPIVersion", "requiresModelAPIVersion"];
|
|
1046
|
+
function $n(e, n, t = !0) {
|
|
1022
1047
|
return e === void 0 ? !1 : e[n] === t;
|
|
1023
1048
|
}
|
|
1024
|
-
function
|
|
1049
|
+
function Vn(e) {
|
|
1025
1050
|
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, t]) => n.startsWith("requires") && t === !0).map(([n]) => n));
|
|
1026
1051
|
}
|
|
1027
|
-
function
|
|
1052
|
+
function jn(e) {
|
|
1028
1053
|
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, t]) => n.startsWith("supports") && t === !0).map(([n]) => n));
|
|
1029
1054
|
}
|
|
1030
|
-
class
|
|
1055
|
+
class be extends Error {
|
|
1031
1056
|
constructor(t) {
|
|
1032
1057
|
super(`Some of the block requirements are not supported by the runtime: ${Array.from(t.entries()).map(([r, o]) => `${r}: ${o}`).join(", ")}`);
|
|
1033
|
-
|
|
1058
|
+
d(this, "name", "IncompatibleFlagsError");
|
|
1034
1059
|
this.incompatibleFlags = t;
|
|
1035
1060
|
}
|
|
1036
1061
|
}
|
|
1037
|
-
class
|
|
1062
|
+
class In {
|
|
1038
1063
|
constructor() {
|
|
1039
|
-
|
|
1064
|
+
d(this, "supportedRequirements", /* @__PURE__ */ new Map());
|
|
1040
1065
|
}
|
|
1041
1066
|
/**
|
|
1042
1067
|
* Adds a supported requirement to the runtime capabilities.
|
|
@@ -1078,111 +1103,114 @@ class Vn {
|
|
|
1078
1103
|
throwIfIncompatible(n) {
|
|
1079
1104
|
const t = this.getIncompatibleFlags(n);
|
|
1080
1105
|
if (t !== void 0)
|
|
1081
|
-
throw new
|
|
1106
|
+
throw new be(t);
|
|
1082
1107
|
}
|
|
1083
1108
|
}
|
|
1084
1109
|
export {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1110
|
+
bn as AbortError,
|
|
1111
|
+
Fn as AllRequiresFeatureFlags,
|
|
1112
|
+
Cn as AllSupportsFeatureFlags,
|
|
1113
|
+
Ge as AnchoredIdDeriver,
|
|
1114
|
+
sn as DefaultNavigationState,
|
|
1115
|
+
be as IncompatibleFlagsError,
|
|
1116
|
+
En as PFrameDriverError,
|
|
1117
|
+
pe as PFrameError,
|
|
1092
1118
|
Y as PTableAbsent,
|
|
1093
1119
|
Z as PTableNA,
|
|
1094
1120
|
z as PValueBytesNA,
|
|
1095
|
-
|
|
1096
|
-
|
|
1121
|
+
Re as PValueDoubleNA,
|
|
1122
|
+
De as PValueFloatNA,
|
|
1097
1123
|
q as PValueIntNA,
|
|
1098
1124
|
k as PValueLongNA,
|
|
1099
1125
|
T as PValueStringNA,
|
|
1100
|
-
|
|
1101
|
-
|
|
1126
|
+
V as PlId,
|
|
1127
|
+
$ as PlIdBytes,
|
|
1102
1128
|
de as PlIdLength,
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1129
|
+
an as PlRef,
|
|
1130
|
+
xe as RangeBytes,
|
|
1131
|
+
In as RuntimeCapabilities,
|
|
1132
|
+
wn as UiError,
|
|
1133
|
+
Te as canonicalizeAxisId,
|
|
1134
|
+
hn as canonicalizeJson,
|
|
1135
|
+
$n as checkBlockFlag,
|
|
1136
|
+
cn as createPlRef,
|
|
1137
|
+
je as dataInfoToEntries,
|
|
1138
|
+
on as deriveNativeId,
|
|
1139
|
+
j as deserializeError,
|
|
1140
|
+
vn as deserializeResult,
|
|
1141
|
+
pn as digestPlId,
|
|
1142
|
+
P as ensureError,
|
|
1143
|
+
Le as ensureNotNAPValue,
|
|
1144
|
+
en as ensurePColumn,
|
|
1145
|
+
Ie as entriesToDataInfo,
|
|
1120
1146
|
w as executePSpecPredicate,
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1147
|
+
tn as extractAllColumns,
|
|
1148
|
+
Vn as extractAllRequirements,
|
|
1149
|
+
jn as extractAllSupports,
|
|
1150
|
+
ke as extractCodeWithInfo,
|
|
1151
|
+
Ee as extractConfigGeneric,
|
|
1126
1152
|
C as getAxesId,
|
|
1127
1153
|
y as getAxisId,
|
|
1128
|
-
|
|
1129
|
-
|
|
1154
|
+
qe as getColumnIdAndSpec,
|
|
1155
|
+
Oe as getFileNameFromHandle,
|
|
1130
1156
|
K as getFilePathFromHandle,
|
|
1131
|
-
|
|
1132
|
-
|
|
1157
|
+
_e as getPColumnSpecId,
|
|
1158
|
+
He as getPTableColumnId,
|
|
1133
1159
|
me as hasAbortError,
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1160
|
+
An as isAbortError,
|
|
1161
|
+
Pn as isAggregateError,
|
|
1162
|
+
Ce as isDataInfo,
|
|
1137
1163
|
_ as isDataInfoEntries,
|
|
1138
|
-
|
|
1164
|
+
Qe as isFilteredPColumn,
|
|
1139
1165
|
U as isImportFileHandleIndex,
|
|
1140
1166
|
B as isImportFileHandleUpload,
|
|
1141
|
-
|
|
1167
|
+
Ne as isLiveLog,
|
|
1142
1168
|
H as isNotNAPValue,
|
|
1143
1169
|
ie as isPColumn,
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
xn as
|
|
1148
|
-
|
|
1170
|
+
Ze as isPColumnResult,
|
|
1171
|
+
l as isPColumnSpec,
|
|
1172
|
+
Ye as isPColumnSpecResult,
|
|
1173
|
+
xn as isPFrameDriverError,
|
|
1174
|
+
kn as isPFrameError,
|
|
1175
|
+
Ke as isPTableAbsent,
|
|
1149
1176
|
W as isPValue,
|
|
1150
|
-
|
|
1151
|
-
|
|
1177
|
+
Ve as isPartitionedDataInfoEntries,
|
|
1178
|
+
un as isPlRef,
|
|
1152
1179
|
Q as isValueAbsent,
|
|
1153
1180
|
b as isValueNA,
|
|
1154
|
-
|
|
1155
|
-
|
|
1181
|
+
Fe as mapDataInfo,
|
|
1182
|
+
Je as mapDataInfoEntries,
|
|
1156
1183
|
g as mapJoinEntry,
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1184
|
+
nn as mapPObjectData,
|
|
1185
|
+
ze as mapPTableDef,
|
|
1186
|
+
ln as mapValueInVOE,
|
|
1160
1187
|
S as matchAxis,
|
|
1161
1188
|
ne as matchAxisId,
|
|
1162
1189
|
v as matchPColumn,
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1190
|
+
Se as newRangeBytesOpt,
|
|
1191
|
+
Me as pTableValue,
|
|
1192
|
+
Ue as pValueToStringOrNumber,
|
|
1166
1193
|
X as pValueToStringOrNumberOrNull,
|
|
1167
|
-
|
|
1168
|
-
|
|
1194
|
+
We as parseColumnId,
|
|
1195
|
+
gn as parseJson,
|
|
1169
1196
|
le as plId,
|
|
1170
|
-
|
|
1171
|
-
|
|
1197
|
+
dn as plRefsEqual,
|
|
1198
|
+
Xe as resolveAnchors,
|
|
1172
1199
|
G as safeConvertToPValue,
|
|
1173
|
-
|
|
1174
|
-
|
|
1200
|
+
rn as selectorsToPredicate,
|
|
1201
|
+
I as serializeError,
|
|
1175
1202
|
J as serializeResult,
|
|
1176
1203
|
te as stringifyColumnId,
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1204
|
+
yn as stringifyJson,
|
|
1205
|
+
Be as toJsonSafePValue,
|
|
1206
|
+
mn as uniquePlId,
|
|
1207
|
+
Sn as unwrapResult,
|
|
1208
|
+
ve as validateRangeBytes,
|
|
1209
|
+
$e as visitDataInfo,
|
|
1210
|
+
fn as withEnrichments,
|
|
1211
|
+
Nn as wrapAndSerialize,
|
|
1212
|
+
On as wrapAndSerializeAsync,
|
|
1213
|
+
ge as wrapAsyncCallback,
|
|
1214
|
+
he as wrapCallback
|
|
1187
1215
|
};
|
|
1188
1216
|
//# sourceMappingURL=index.mjs.map
|