@milaboratories/milaboratories.pool-explorer.model 1.0.47 → 1.0.49
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/.turbo/turbo-build.log +11 -11
- package/CHANGELOG.md +13 -0
- package/dist/bundle.js +380 -351
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +4 -4
package/dist/bundle.js
CHANGED
|
@@ -2,40 +2,6 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.model = {}));
|
|
3
3
|
})(this, function(exports2) {
|
|
4
4
|
"use strict";
|
|
5
|
-
function getDefaultExportFromCjs(x2) {
|
|
6
|
-
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
7
|
-
}
|
|
8
|
-
var canonicalize = function serialize(object) {
|
|
9
|
-
if (typeof object === "number" && isNaN(object)) {
|
|
10
|
-
throw new Error("NaN is not allowed");
|
|
11
|
-
}
|
|
12
|
-
if (typeof object === "number" && !isFinite(object)) {
|
|
13
|
-
throw new Error("Infinity is not allowed");
|
|
14
|
-
}
|
|
15
|
-
if (object === null || typeof object !== "object") {
|
|
16
|
-
return JSON.stringify(object);
|
|
17
|
-
}
|
|
18
|
-
if (object.toJSON instanceof Function) {
|
|
19
|
-
return serialize(object.toJSON());
|
|
20
|
-
}
|
|
21
|
-
if (Array.isArray(object)) {
|
|
22
|
-
const values2 = object.reduce((t, cv, ci) => {
|
|
23
|
-
const comma = ci === 0 ? "" : ",";
|
|
24
|
-
const value = cv === void 0 || typeof cv === "symbol" ? null : cv;
|
|
25
|
-
return `${t}${comma}${serialize(value)}`;
|
|
26
|
-
}, "");
|
|
27
|
-
return `[${values2}]`;
|
|
28
|
-
}
|
|
29
|
-
const values = Object.keys(object).sort().reduce((t, cv) => {
|
|
30
|
-
if (object[cv] === void 0 || typeof object[cv] === "symbol") {
|
|
31
|
-
return t;
|
|
32
|
-
}
|
|
33
|
-
const comma = t.length === 0 ? "" : ",";
|
|
34
|
-
return `${t}${comma}${serialize(cv)}:${serialize(object[cv])}`;
|
|
35
|
-
}, "");
|
|
36
|
-
return `{${values}}`;
|
|
37
|
-
};
|
|
38
|
-
const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
|
|
39
5
|
var util;
|
|
40
6
|
(function(util2) {
|
|
41
7
|
util2.assertEqual = (val) => val;
|
|
@@ -87,7 +53,7 @@
|
|
|
87
53
|
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
88
54
|
}
|
|
89
55
|
util2.joinValues = joinValues;
|
|
90
|
-
util2.jsonStringifyReplacer = (
|
|
56
|
+
util2.jsonStringifyReplacer = (_2, value) => {
|
|
91
57
|
if (typeof value === "bigint") {
|
|
92
58
|
return value.toString();
|
|
93
59
|
}
|
|
@@ -493,11 +459,11 @@
|
|
|
493
459
|
const isValid = (x2) => x2.status === "valid";
|
|
494
460
|
const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
|
|
495
461
|
function __classPrivateFieldGet(receiver, state, kind, f2) {
|
|
496
|
-
if (typeof state === "function" ? receiver !== state ||
|
|
462
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
497
463
|
return state.get(receiver);
|
|
498
464
|
}
|
|
499
465
|
function __classPrivateFieldSet(receiver, state, value, kind, f2) {
|
|
500
|
-
if (typeof state === "function" ? receiver !== state ||
|
|
466
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
501
467
|
return state.set(receiver, value), value;
|
|
502
468
|
}
|
|
503
469
|
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
@@ -3948,13 +3914,61 @@
|
|
|
3948
3914
|
quotelessJson,
|
|
3949
3915
|
ZodError
|
|
3950
3916
|
});
|
|
3951
|
-
|
|
3952
|
-
|
|
3917
|
+
function getDefaultExportFromCjs(x2) {
|
|
3918
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
3919
|
+
}
|
|
3920
|
+
var canonicalize;
|
|
3921
|
+
var hasRequiredCanonicalize;
|
|
3922
|
+
function requireCanonicalize() {
|
|
3923
|
+
if (hasRequiredCanonicalize) return canonicalize;
|
|
3924
|
+
hasRequiredCanonicalize = 1;
|
|
3925
|
+
canonicalize = function serialize(object) {
|
|
3926
|
+
if (typeof object === "number" && isNaN(object)) {
|
|
3927
|
+
throw new Error("NaN is not allowed");
|
|
3928
|
+
}
|
|
3929
|
+
if (typeof object === "number" && !isFinite(object)) {
|
|
3930
|
+
throw new Error("Infinity is not allowed");
|
|
3931
|
+
}
|
|
3932
|
+
if (object === null || typeof object !== "object") {
|
|
3933
|
+
return JSON.stringify(object);
|
|
3934
|
+
}
|
|
3935
|
+
if (object.toJSON instanceof Function) {
|
|
3936
|
+
return serialize(object.toJSON());
|
|
3937
|
+
}
|
|
3938
|
+
if (Array.isArray(object)) {
|
|
3939
|
+
const values2 = object.reduce((t, cv, ci) => {
|
|
3940
|
+
const comma = ci === 0 ? "" : ",";
|
|
3941
|
+
const value = cv === void 0 || typeof cv === "symbol" ? null : cv;
|
|
3942
|
+
return `${t}${comma}${serialize(value)}`;
|
|
3943
|
+
}, "");
|
|
3944
|
+
return `[${values2}]`;
|
|
3945
|
+
}
|
|
3946
|
+
const values = Object.keys(object).sort().reduce((t, cv) => {
|
|
3947
|
+
if (object[cv] === void 0 || typeof object[cv] === "symbol") {
|
|
3948
|
+
return t;
|
|
3949
|
+
}
|
|
3950
|
+
const comma = t.length === 0 ? "" : ",";
|
|
3951
|
+
return `${t}${comma}${serialize(cv)}:${serialize(object[cv])}`;
|
|
3952
|
+
}, "");
|
|
3953
|
+
return `{${values}}`;
|
|
3954
|
+
};
|
|
3955
|
+
return canonicalize;
|
|
3956
|
+
}
|
|
3957
|
+
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
+
const Oe = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
|
+
var I = Object.defineProperty;
|
|
3960
|
+
var D = (n2, e, t) => e in n2 ? I(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
|
|
3953
3961
|
var l$1 = (n2, e, t) => D(n2, typeof e != "symbol" ? e + "" : e, t);
|
|
3962
|
+
z$2.object({
|
|
3963
|
+
/** Included left border. */
|
|
3964
|
+
from: z$2.number(),
|
|
3965
|
+
/** Excluded right border. */
|
|
3966
|
+
to: z$2.number()
|
|
3967
|
+
});
|
|
3954
3968
|
function w(n2) {
|
|
3955
3969
|
throw new Error("Unexpected object: " + n2);
|
|
3956
3970
|
}
|
|
3957
|
-
function
|
|
3971
|
+
function hn(n2) {
|
|
3958
3972
|
if (!n2 || typeof n2 != "object")
|
|
3959
3973
|
return false;
|
|
3960
3974
|
const e = n2;
|
|
@@ -3971,7 +3985,7 @@
|
|
|
3971
3985
|
return false;
|
|
3972
3986
|
}
|
|
3973
3987
|
}
|
|
3974
|
-
function
|
|
3988
|
+
function gn(n2, e) {
|
|
3975
3989
|
if (n2 !== void 0)
|
|
3976
3990
|
switch (n2.type) {
|
|
3977
3991
|
case "Json":
|
|
@@ -3999,7 +4013,7 @@
|
|
|
3999
4013
|
}
|
|
4000
4014
|
}
|
|
4001
4015
|
}
|
|
4002
|
-
function F
|
|
4016
|
+
function F(n2) {
|
|
4003
4017
|
if (!n2 || typeof n2 != "object")
|
|
4004
4018
|
return false;
|
|
4005
4019
|
const e = n2;
|
|
@@ -4016,10 +4030,10 @@
|
|
|
4016
4030
|
return false;
|
|
4017
4031
|
}
|
|
4018
4032
|
}
|
|
4019
|
-
function gn(n2) {
|
|
4020
|
-
return F$1(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
|
|
4021
|
-
}
|
|
4022
4033
|
function bn(n2) {
|
|
4034
|
+
return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
|
|
4035
|
+
}
|
|
4036
|
+
function wn(n2) {
|
|
4023
4037
|
switch (n2.type) {
|
|
4024
4038
|
case "Json": {
|
|
4025
4039
|
const e = Object.entries(n2.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
@@ -4047,7 +4061,7 @@
|
|
|
4047
4061
|
}
|
|
4048
4062
|
}
|
|
4049
4063
|
}
|
|
4050
|
-
function
|
|
4064
|
+
function Pn(n2) {
|
|
4051
4065
|
switch (n2.type) {
|
|
4052
4066
|
case "Json": {
|
|
4053
4067
|
const e = {};
|
|
@@ -4088,8 +4102,8 @@
|
|
|
4088
4102
|
function C(n2) {
|
|
4089
4103
|
return n2.map(p$1);
|
|
4090
4104
|
}
|
|
4091
|
-
function
|
|
4092
|
-
return
|
|
4105
|
+
function In(n2) {
|
|
4106
|
+
return Oe(p$1(n2));
|
|
4093
4107
|
}
|
|
4094
4108
|
function z$1(n2, e) {
|
|
4095
4109
|
if (n2 === void 0) return e === void 0;
|
|
@@ -4101,10 +4115,10 @@
|
|
|
4101
4115
|
function X(n2, e) {
|
|
4102
4116
|
return n2.name === e.name && z$1(n2.domain, e.domain);
|
|
4103
4117
|
}
|
|
4104
|
-
function
|
|
4105
|
-
return { ...n2, src: h
|
|
4118
|
+
function Dn(n2, e) {
|
|
4119
|
+
return { ...n2, src: h(n2.src, e) };
|
|
4106
4120
|
}
|
|
4107
|
-
function h
|
|
4121
|
+
function h(n2, e) {
|
|
4108
4122
|
switch (n2.type) {
|
|
4109
4123
|
case "column":
|
|
4110
4124
|
return {
|
|
@@ -4124,28 +4138,28 @@
|
|
|
4124
4138
|
case "full":
|
|
4125
4139
|
return {
|
|
4126
4140
|
type: n2.type,
|
|
4127
|
-
entries: n2.entries.map((t) => h
|
|
4141
|
+
entries: n2.entries.map((t) => h(t, e))
|
|
4128
4142
|
};
|
|
4129
4143
|
case "outer":
|
|
4130
4144
|
return {
|
|
4131
4145
|
type: "outer",
|
|
4132
|
-
primary: h
|
|
4133
|
-
secondary: n2.secondary.map((t) => h
|
|
4146
|
+
primary: h(n2.primary, e),
|
|
4147
|
+
secondary: n2.secondary.map((t) => h(t, e))
|
|
4134
4148
|
};
|
|
4135
4149
|
default:
|
|
4136
4150
|
w(n2);
|
|
4137
4151
|
}
|
|
4138
4152
|
}
|
|
4139
4153
|
function G(n2) {
|
|
4140
|
-
return
|
|
4154
|
+
return Oe(n2);
|
|
4141
4155
|
}
|
|
4142
4156
|
function x(n2) {
|
|
4143
|
-
return
|
|
4157
|
+
return Oe(p$1(n2));
|
|
4144
4158
|
}
|
|
4145
4159
|
function A(n2, e) {
|
|
4146
4160
|
return JSON.stringify([n2, e]);
|
|
4147
4161
|
}
|
|
4148
|
-
class
|
|
4162
|
+
class Vn {
|
|
4149
4163
|
/**
|
|
4150
4164
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4151
4165
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -4187,9 +4201,9 @@
|
|
|
4187
4201
|
for (const a of this.domainPacks) {
|
|
4188
4202
|
const i = [];
|
|
4189
4203
|
for (const c2 of a) {
|
|
4190
|
-
const
|
|
4191
|
-
if (
|
|
4192
|
-
i.push([c2,
|
|
4204
|
+
const m2 = e.domain[c2];
|
|
4205
|
+
if (m2 !== void 0)
|
|
4206
|
+
i.push([c2, m2]);
|
|
4193
4207
|
else
|
|
4194
4208
|
break n;
|
|
4195
4209
|
}
|
|
@@ -4218,7 +4232,7 @@
|
|
|
4218
4232
|
throw new Error(`Axis index ${i} is out of bounds (0-${e.axesSpec.length - 1})`);
|
|
4219
4233
|
s2.push([i, u2]);
|
|
4220
4234
|
} else {
|
|
4221
|
-
const c2 = e.axesSpec.findIndex((
|
|
4235
|
+
const c2 = e.axesSpec.findIndex((m2) => m2.name === i);
|
|
4222
4236
|
if (c2 === -1)
|
|
4223
4237
|
throw new Error(`Axis with name "${i}" not found in the column specification`);
|
|
4224
4238
|
s2.push([c2, u2]);
|
|
@@ -4239,7 +4253,7 @@
|
|
|
4239
4253
|
return G(this.derive(e, t));
|
|
4240
4254
|
}
|
|
4241
4255
|
}
|
|
4242
|
-
function
|
|
4256
|
+
function Bn(n2, e, t) {
|
|
4243
4257
|
const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4244
4258
|
if (r.domainAnchor !== void 0) {
|
|
4245
4259
|
const s2 = n2[r.domainAnchor];
|
|
@@ -4314,7 +4328,7 @@
|
|
|
4314
4328
|
data: e(n2.data)
|
|
4315
4329
|
};
|
|
4316
4330
|
}
|
|
4317
|
-
function
|
|
4331
|
+
function vn(n2) {
|
|
4318
4332
|
const e = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4319
4333
|
switch (r.type) {
|
|
4320
4334
|
case "column":
|
|
@@ -4339,7 +4353,7 @@
|
|
|
4339
4353
|
};
|
|
4340
4354
|
return t(n2), [...e.values()];
|
|
4341
4355
|
}
|
|
4342
|
-
function k(n2, e) {
|
|
4356
|
+
function k$1(n2, e) {
|
|
4343
4357
|
if (n2.name !== void 0 && n2.name !== e.name)
|
|
4344
4358
|
return false;
|
|
4345
4359
|
if (n2.type !== void 0) {
|
|
@@ -4377,13 +4391,13 @@
|
|
|
4377
4391
|
const t = n2.axesSpec.map(p$1);
|
|
4378
4392
|
if (e.partialAxesMatch) {
|
|
4379
4393
|
for (const r of e.axes)
|
|
4380
|
-
if (!t.some((o) => k(r, o)))
|
|
4394
|
+
if (!t.some((o) => k$1(r, o)))
|
|
4381
4395
|
return false;
|
|
4382
4396
|
} else {
|
|
4383
4397
|
if (t.length !== e.axes.length)
|
|
4384
4398
|
return false;
|
|
4385
4399
|
for (let r = 0; r < e.axes.length; r++)
|
|
4386
|
-
if (!k(e.axes[r], t[r]))
|
|
4400
|
+
if (!k$1(e.axes[r], t[r]))
|
|
4387
4401
|
return false;
|
|
4388
4402
|
}
|
|
4389
4403
|
}
|
|
@@ -4403,15 +4417,15 @@
|
|
|
4403
4417
|
}
|
|
4404
4418
|
return true;
|
|
4405
4419
|
}
|
|
4406
|
-
function
|
|
4420
|
+
function _n(n2) {
|
|
4407
4421
|
return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
|
|
4408
4422
|
}
|
|
4409
|
-
function
|
|
4423
|
+
function Mn(n2) {
|
|
4410
4424
|
const e = {
|
|
4411
4425
|
kind: n2.kind,
|
|
4412
4426
|
name: n2.name
|
|
4413
4427
|
};
|
|
4414
|
-
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)),
|
|
4428
|
+
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), Oe(e);
|
|
4415
4429
|
}
|
|
4416
4430
|
z$2.object({
|
|
4417
4431
|
__isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4421,10 +4435,10 @@
|
|
|
4421
4435
|
}).describe(
|
|
4422
4436
|
"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."
|
|
4423
4437
|
).readonly();
|
|
4424
|
-
function
|
|
4438
|
+
function qn(n2) {
|
|
4425
4439
|
return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
|
|
4426
4440
|
}
|
|
4427
|
-
function
|
|
4441
|
+
function zn(n2, e = true) {
|
|
4428
4442
|
if (e)
|
|
4429
4443
|
return {
|
|
4430
4444
|
...n2,
|
|
@@ -4435,35 +4449,42 @@
|
|
|
4435
4449
|
return r;
|
|
4436
4450
|
}
|
|
4437
4451
|
}
|
|
4438
|
-
function
|
|
4452
|
+
function Gn(n2, e) {
|
|
4439
4453
|
return n2.ok ? { ok: true, value: e(n2.value) } : n2;
|
|
4440
4454
|
}
|
|
4441
4455
|
const sn = 24;
|
|
4442
4456
|
z$2.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4443
4457
|
var stringify = { exports: {} };
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
if (
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4458
|
+
var hasRequiredStringify;
|
|
4459
|
+
function requireStringify() {
|
|
4460
|
+
if (hasRequiredStringify) return stringify.exports;
|
|
4461
|
+
hasRequiredStringify = 1;
|
|
4462
|
+
(function(module2, exports3) {
|
|
4463
|
+
exports3 = module2.exports = stringify2;
|
|
4464
|
+
exports3.getSerialize = serializer;
|
|
4465
|
+
function stringify2(obj, replacer, spaces, cycleReplacer) {
|
|
4466
|
+
return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces);
|
|
4467
|
+
}
|
|
4468
|
+
function serializer(replacer, cycleReplacer) {
|
|
4469
|
+
var stack = [], keys = [];
|
|
4470
|
+
if (cycleReplacer == null) cycleReplacer = function(key, value) {
|
|
4471
|
+
if (stack[0] === value) return "[Circular ~]";
|
|
4472
|
+
return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
|
|
4473
|
+
};
|
|
4474
|
+
return function(key, value) {
|
|
4475
|
+
if (stack.length > 0) {
|
|
4476
|
+
var thisPos = stack.indexOf(this);
|
|
4477
|
+
~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
|
|
4478
|
+
~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
|
|
4479
|
+
if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value);
|
|
4480
|
+
} else stack.push(value);
|
|
4481
|
+
return replacer == null ? value : replacer.call(this, key, value);
|
|
4482
|
+
};
|
|
4483
|
+
}
|
|
4484
|
+
})(stringify, stringify.exports);
|
|
4485
|
+
return stringify.exports;
|
|
4486
|
+
}
|
|
4487
|
+
requireStringify();
|
|
4467
4488
|
const l = z$2.object({
|
|
4468
4489
|
type: z$2.literal("PlError"),
|
|
4469
4490
|
name: z$2.string(),
|
|
@@ -4492,13 +4513,13 @@
|
|
|
4492
4513
|
cause: z$2.lazy(() => n).optional(),
|
|
4493
4514
|
errors: z$2.lazy(() => n.array()).optional()
|
|
4494
4515
|
});
|
|
4495
|
-
var
|
|
4496
|
-
var
|
|
4497
|
-
var
|
|
4516
|
+
var qe = Object.defineProperty;
|
|
4517
|
+
var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4518
|
+
var k = (t, e, n2) => ze(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4498
4519
|
function re(t) {
|
|
4499
4520
|
return { type: "Immediate", value: t };
|
|
4500
4521
|
}
|
|
4501
|
-
function
|
|
4522
|
+
function dt() {
|
|
4502
4523
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4503
4524
|
}
|
|
4504
4525
|
function Re(t) {
|
|
@@ -4507,39 +4528,39 @@
|
|
|
4507
4528
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4508
4529
|
throw new Error("Can't get platforma instance.");
|
|
4509
4530
|
}
|
|
4510
|
-
function
|
|
4531
|
+
function pt() {
|
|
4511
4532
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4512
4533
|
}
|
|
4513
|
-
function
|
|
4534
|
+
function g() {
|
|
4514
4535
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4515
4536
|
throw new Error("Not in config rendering context");
|
|
4516
4537
|
}
|
|
4517
4538
|
function H(t, e) {
|
|
4518
|
-
const n2 =
|
|
4539
|
+
const n2 = pt();
|
|
4519
4540
|
if (n2 === void 0) return false;
|
|
4520
4541
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4521
4542
|
return n2.callbackRegistry[t] = e, true;
|
|
4522
4543
|
}
|
|
4523
4544
|
const ce = /* @__PURE__ */ new Map();
|
|
4524
|
-
function
|
|
4525
|
-
t in
|
|
4545
|
+
function ft(t, e) {
|
|
4546
|
+
t in g().callbackRegistry || (g().callbackRegistry[t] = (n2) => {
|
|
4526
4547
|
for (const r of ce.get(t))
|
|
4527
4548
|
r(n2);
|
|
4528
4549
|
}, ce.set(t, [])), ce.get(t).push(e);
|
|
4529
4550
|
}
|
|
4530
|
-
class
|
|
4551
|
+
class _ {
|
|
4531
4552
|
constructor(e, n2 = (r) => r) {
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
this.handle = e, this.postProcess = n2,
|
|
4553
|
+
k(this, "isResolved", false);
|
|
4554
|
+
k(this, "resolvedValue");
|
|
4555
|
+
this.handle = e, this.postProcess = n2, ft(e, (r) => {
|
|
4535
4556
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4536
4557
|
});
|
|
4537
4558
|
}
|
|
4538
4559
|
map(e) {
|
|
4539
|
-
return new
|
|
4560
|
+
return new _(this.handle, (n2) => e(this.postProcess(n2)));
|
|
4540
4561
|
}
|
|
4541
4562
|
mapDefined(e) {
|
|
4542
|
-
return new
|
|
4563
|
+
return new _(this.handle, (n2) => {
|
|
4543
4564
|
const r = this.postProcess(n2);
|
|
4544
4565
|
return r ? e(r) : void 0;
|
|
4545
4566
|
});
|
|
@@ -4551,7 +4572,7 @@
|
|
|
4551
4572
|
function he(t, e) {
|
|
4552
4573
|
return t === void 0 ? void 0 : e(t);
|
|
4553
4574
|
}
|
|
4554
|
-
class
|
|
4575
|
+
class E {
|
|
4555
4576
|
constructor(e, n2) {
|
|
4556
4577
|
this.handle = e, this.resolvePath = n2;
|
|
4557
4578
|
}
|
|
@@ -4591,46 +4612,46 @@
|
|
|
4591
4612
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4592
4613
|
];
|
|
4593
4614
|
return he(
|
|
4594
|
-
|
|
4595
|
-
(i) => new
|
|
4615
|
+
g().resolveWithCommon(this.handle, e, ...n2),
|
|
4616
|
+
(i) => new E(i, r)
|
|
4596
4617
|
);
|
|
4597
4618
|
}
|
|
4598
4619
|
get resourceType() {
|
|
4599
|
-
return
|
|
4620
|
+
return g().getResourceType(this.handle);
|
|
4600
4621
|
}
|
|
4601
4622
|
getInputsLocked() {
|
|
4602
|
-
return
|
|
4623
|
+
return g().getInputsLocked(this.handle);
|
|
4603
4624
|
}
|
|
4604
4625
|
getOutputsLocked() {
|
|
4605
|
-
return
|
|
4626
|
+
return g().getOutputsLocked(this.handle);
|
|
4606
4627
|
}
|
|
4607
4628
|
getIsReadyOrError() {
|
|
4608
|
-
return
|
|
4629
|
+
return g().getIsReadyOrError(this.handle);
|
|
4609
4630
|
}
|
|
4610
4631
|
getIsFinal() {
|
|
4611
|
-
return
|
|
4632
|
+
return g().getIsFinal(this.handle);
|
|
4612
4633
|
}
|
|
4613
4634
|
getError() {
|
|
4614
4635
|
const e = [...this.resolvePath, "error"];
|
|
4615
4636
|
return he(
|
|
4616
|
-
|
|
4617
|
-
(n2) => new
|
|
4637
|
+
g().getError(this.handle),
|
|
4638
|
+
(n2) => new E(n2, e)
|
|
4618
4639
|
);
|
|
4619
4640
|
}
|
|
4620
4641
|
listInputFields() {
|
|
4621
|
-
return
|
|
4642
|
+
return g().listInputFields(this.handle);
|
|
4622
4643
|
}
|
|
4623
4644
|
listOutputFields() {
|
|
4624
|
-
return
|
|
4645
|
+
return g().listOutputFields(this.handle);
|
|
4625
4646
|
}
|
|
4626
4647
|
listDynamicFields() {
|
|
4627
|
-
return
|
|
4648
|
+
return g().listDynamicFields(this.handle);
|
|
4628
4649
|
}
|
|
4629
4650
|
getKeyValueBase64(e) {
|
|
4630
|
-
return
|
|
4651
|
+
return g().getKeyValueBase64(this.handle, e);
|
|
4631
4652
|
}
|
|
4632
4653
|
getKeyValueAsString(e) {
|
|
4633
|
-
return
|
|
4654
|
+
return g().getKeyValueAsString(this.handle, e);
|
|
4634
4655
|
}
|
|
4635
4656
|
getKeyValueAsJson(e) {
|
|
4636
4657
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4638,10 +4659,10 @@
|
|
|
4638
4659
|
return JSON.parse(n2);
|
|
4639
4660
|
}
|
|
4640
4661
|
getDataBase64() {
|
|
4641
|
-
return
|
|
4662
|
+
return g().getDataBase64(this.handle);
|
|
4642
4663
|
}
|
|
4643
4664
|
getDataAsString() {
|
|
4644
|
-
return
|
|
4665
|
+
return g().getDataAsString(this.handle);
|
|
4645
4666
|
}
|
|
4646
4667
|
getDataAsJson() {
|
|
4647
4668
|
const e = this.getDataAsString();
|
|
@@ -4662,7 +4683,7 @@
|
|
|
4662
4683
|
*
|
|
4663
4684
|
*/
|
|
4664
4685
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4665
|
-
const r =
|
|
4686
|
+
const r = g().parsePObjectCollection(
|
|
4666
4687
|
this.handle,
|
|
4667
4688
|
e,
|
|
4668
4689
|
n2,
|
|
@@ -4672,19 +4693,19 @@
|
|
|
4672
4693
|
const i = {};
|
|
4673
4694
|
for (const [s2, o] of Object.entries(r)) {
|
|
4674
4695
|
const a = [...this.resolvePath, s2];
|
|
4675
|
-
i[s2] = Kn(o, (l2) => new
|
|
4696
|
+
i[s2] = Kn(o, (l2) => new E(l2, a));
|
|
4676
4697
|
}
|
|
4677
4698
|
return i;
|
|
4678
4699
|
}
|
|
4679
4700
|
getFileContentAsBase64(e) {
|
|
4680
|
-
return new
|
|
4701
|
+
return new _(g().getBlobContentAsBase64(this.handle, e));
|
|
4681
4702
|
}
|
|
4682
4703
|
getFileContentAsString(e) {
|
|
4683
|
-
return new
|
|
4704
|
+
return new _(g().getBlobContentAsString(this.handle, e));
|
|
4684
4705
|
}
|
|
4685
4706
|
getFileContentAsJson(e) {
|
|
4686
|
-
return new
|
|
4687
|
-
|
|
4707
|
+
return new _(
|
|
4708
|
+
g().getBlobContentAsString(this.handle, e)
|
|
4688
4709
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4689
4710
|
}
|
|
4690
4711
|
/**
|
|
@@ -4703,7 +4724,7 @@
|
|
|
4703
4724
|
* @returns downloaded file handle
|
|
4704
4725
|
*/
|
|
4705
4726
|
getFileHandle() {
|
|
4706
|
-
return new
|
|
4727
|
+
return new _(g().getDownloadedBlobContentHandle(this.handle));
|
|
4707
4728
|
}
|
|
4708
4729
|
/**
|
|
4709
4730
|
* @deprecated use getFileHandle
|
|
@@ -4715,7 +4736,7 @@
|
|
|
4715
4736
|
* @returns downloaded file handle
|
|
4716
4737
|
*/
|
|
4717
4738
|
getRemoteFileHandle() {
|
|
4718
|
-
return new
|
|
4739
|
+
return new _(g().getOnDemandBlobContentHandle(this.handle));
|
|
4719
4740
|
}
|
|
4720
4741
|
/**
|
|
4721
4742
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4727,22 +4748,22 @@
|
|
|
4727
4748
|
* @returns the url to the extracted folder
|
|
4728
4749
|
*/
|
|
4729
4750
|
extractArchiveAndGetURL(e) {
|
|
4730
|
-
return new
|
|
4751
|
+
return new _(g().extractArchiveAndGetURL(this.handle, e));
|
|
4731
4752
|
}
|
|
4732
4753
|
getImportProgress() {
|
|
4733
|
-
return new
|
|
4754
|
+
return new _(g().getImportProgress(this.handle));
|
|
4734
4755
|
}
|
|
4735
4756
|
getLastLogs(e) {
|
|
4736
|
-
return new
|
|
4757
|
+
return new _(g().getLastLogs(this.handle, e));
|
|
4737
4758
|
}
|
|
4738
4759
|
getProgressLog(e) {
|
|
4739
|
-
return new
|
|
4760
|
+
return new _(g().getProgressLog(this.handle, e));
|
|
4740
4761
|
}
|
|
4741
4762
|
getProgressLogWithInfo(e) {
|
|
4742
|
-
return new
|
|
4763
|
+
return new _(g().getProgressLogWithInfo(this.handle, e));
|
|
4743
4764
|
}
|
|
4744
4765
|
getLogHandle() {
|
|
4745
|
-
return new
|
|
4766
|
+
return new _(g().getLogHandle(this.handle));
|
|
4746
4767
|
}
|
|
4747
4768
|
allFieldsResolved(e = "Input") {
|
|
4748
4769
|
switch (e) {
|
|
@@ -4768,90 +4789,90 @@
|
|
|
4768
4789
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4769
4790
|
(u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
|
|
4770
4791
|
);
|
|
4771
|
-
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2,
|
|
4792
|
+
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, c2]) => o(u2, c2));
|
|
4772
4793
|
}
|
|
4773
4794
|
}
|
|
4774
|
-
const De = "staging",
|
|
4775
|
-
const
|
|
4795
|
+
const De = "staging", Fe = "main";
|
|
4796
|
+
const mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$2.object({
|
|
4776
4797
|
type: z$2.string(),
|
|
4777
4798
|
importance: z$2.number().optional(),
|
|
4778
4799
|
id: z$2.string().optional(),
|
|
4779
4800
|
label: z$2.string()
|
|
4780
|
-
}),
|
|
4801
|
+
}), bt = z$2.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
|
|
4781
4802
|
function Ve(t, e, n2 = {}) {
|
|
4782
4803
|
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
|
|
4783
|
-
var
|
|
4804
|
+
var P, R;
|
|
4784
4805
|
const w2 = e(f2);
|
|
4785
|
-
let
|
|
4786
|
-
"spec" in w2 && typeof w2.spec == "object" ? (
|
|
4787
|
-
const p2 = (
|
|
4788
|
-
...
|
|
4789
|
-
...
|
|
4790
|
-
...
|
|
4806
|
+
let d, h2, b;
|
|
4807
|
+
"spec" in w2 && typeof w2.spec == "object" ? (d = w2.spec, h2 = w2.prefixTrace, b = w2.suffixTrace) : d = w2;
|
|
4808
|
+
const p2 = (P = d.annotations) == null ? void 0 : P[mt], I2 = (R = d.annotations) == null ? void 0 : R[yt], x2 = (I2 ? bt.safeParse(JSON.parse(I2)).data : void 0) ?? [], y = [
|
|
4809
|
+
...h2 ?? [],
|
|
4810
|
+
...x2,
|
|
4811
|
+
...b ?? []
|
|
4791
4812
|
];
|
|
4792
4813
|
if (p2 !== void 0) {
|
|
4793
|
-
const
|
|
4794
|
-
n2.addLabelAsSuffix ?
|
|
4795
|
-
}
|
|
4796
|
-
const
|
|
4797
|
-
for (let
|
|
4798
|
-
const { type: W } =
|
|
4799
|
-
|
|
4800
|
-
const
|
|
4801
|
-
s2.set(
|
|
4802
|
-
|
|
4814
|
+
const O = { label: p2, type: At, importance: -2 };
|
|
4815
|
+
n2.addLabelAsSuffix ? y.push(O) : y.splice(0, 0, O);
|
|
4816
|
+
}
|
|
4817
|
+
const A2 = [], T = /* @__PURE__ */ new Map();
|
|
4818
|
+
for (let O = y.length - 1; O >= 0; --O) {
|
|
4819
|
+
const { type: W } = y[O], V = y[O].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
|
|
4820
|
+
T.set(W, $);
|
|
4821
|
+
const F2 = `${W}@${$}`;
|
|
4822
|
+
s2.set(F2, (s2.get(F2) ?? 0) + 1), r.set(
|
|
4823
|
+
F2,
|
|
4803
4824
|
Math.max(
|
|
4804
|
-
r.get(
|
|
4805
|
-
V - (
|
|
4825
|
+
r.get(F2) ?? Number.NEGATIVE_INFINITY,
|
|
4826
|
+
V - (y.length - O) * wt
|
|
4806
4827
|
)
|
|
4807
|
-
),
|
|
4828
|
+
), A2.push({ ...y[O], fullType: F2, occurrenceIndex: $ });
|
|
4808
4829
|
}
|
|
4809
|
-
return
|
|
4830
|
+
return A2.reverse(), {
|
|
4810
4831
|
value: f2,
|
|
4811
|
-
spec:
|
|
4832
|
+
spec: d,
|
|
4812
4833
|
label: p2,
|
|
4813
|
-
fullTrace:
|
|
4834
|
+
fullTrace: A2
|
|
4814
4835
|
};
|
|
4815
4836
|
}), a = [], l2 = [], u2 = [...r];
|
|
4816
4837
|
u2.sort(([, f2], [, w2]) => w2 - f2);
|
|
4817
4838
|
for (const [f2] of u2)
|
|
4818
4839
|
f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
|
|
4819
|
-
const
|
|
4820
|
-
const
|
|
4821
|
-
for (let
|
|
4822
|
-
const
|
|
4840
|
+
const c2 = (f2, w2 = false) => {
|
|
4841
|
+
const d = [];
|
|
4842
|
+
for (let h2 = 0; h2 < o.length; h2++) {
|
|
4843
|
+
const b = o[h2], p2 = b.fullTrace.filter((y) => f2.has(y.fullType) || i && i.has(y.type));
|
|
4823
4844
|
if (p2.length === 0)
|
|
4824
4845
|
if (w2)
|
|
4825
|
-
|
|
4846
|
+
d.push({
|
|
4826
4847
|
label: "Unlabeled",
|
|
4827
|
-
value:
|
|
4848
|
+
value: b.value
|
|
4828
4849
|
});
|
|
4829
4850
|
else return;
|
|
4830
|
-
const
|
|
4831
|
-
|
|
4832
|
-
label:
|
|
4833
|
-
value:
|
|
4851
|
+
const I2 = p2.map((y) => y.label), x2 = n2.separator ?? " / ";
|
|
4852
|
+
d.push({
|
|
4853
|
+
label: I2.join(x2),
|
|
4854
|
+
value: b.value
|
|
4834
4855
|
});
|
|
4835
4856
|
}
|
|
4836
|
-
return
|
|
4857
|
+
return d;
|
|
4837
4858
|
};
|
|
4838
4859
|
if (a.length === 0) {
|
|
4839
4860
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4840
|
-
return
|
|
4861
|
+
return c2(new Set(Pe), true);
|
|
4841
4862
|
}
|
|
4842
|
-
let
|
|
4843
|
-
for (;
|
|
4863
|
+
let m2 = 0, v = -1;
|
|
4864
|
+
for (; m2 < a.length; ) {
|
|
4844
4865
|
const f2 = /* @__PURE__ */ new Set();
|
|
4845
|
-
n2.includeNativeLabel && f2.add(
|
|
4846
|
-
for (let
|
|
4847
|
-
|
|
4848
|
-
const w2 =
|
|
4849
|
-
if (w2 !== void 0 && new Set(w2.map((
|
|
4850
|
-
|
|
4851
|
-
}
|
|
4852
|
-
return
|
|
4866
|
+
n2.includeNativeLabel && f2.add(Pe);
|
|
4867
|
+
for (let d = 0; d < m2; ++d) f2.add(a[d]);
|
|
4868
|
+
v >= 0 && f2.add(a[v]);
|
|
4869
|
+
const w2 = c2(f2);
|
|
4870
|
+
if (w2 !== void 0 && new Set(w2.map((d) => d.label)).size === t.length) return w2;
|
|
4871
|
+
v++, v >= a.length && (m2++, v = m2);
|
|
4872
|
+
}
|
|
4873
|
+
return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4853
4874
|
}
|
|
4854
|
-
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned",
|
|
4875
|
+
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", je = Z + "Partitioned/", ae = je + "JsonPartitioned", z = je + "BinaryPartitioned";
|
|
4855
4876
|
const me = (t) => {
|
|
4856
4877
|
if (t.endsWith(".index"))
|
|
4857
4878
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
@@ -4859,7 +4880,7 @@
|
|
|
4859
4880
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4860
4881
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4861
4882
|
};
|
|
4862
|
-
function
|
|
4883
|
+
function xt(t) {
|
|
4863
4884
|
if (!t) return;
|
|
4864
4885
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4865
4886
|
let i = 0;
|
|
@@ -4905,7 +4926,7 @@
|
|
|
4905
4926
|
}
|
|
4906
4927
|
return { data: r, keyLength: i };
|
|
4907
4928
|
}
|
|
4908
|
-
function
|
|
4929
|
+
function Ct(t) {
|
|
4909
4930
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4910
4931
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4911
4932
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4924,11 +4945,11 @@
|
|
|
4924
4945
|
}
|
|
4925
4946
|
return r.map((i) => Array.from(i.values()));
|
|
4926
4947
|
}
|
|
4927
|
-
function
|
|
4948
|
+
function Pt(t) {
|
|
4928
4949
|
if (t === void 0) return;
|
|
4929
|
-
if (F
|
|
4930
|
-
return
|
|
4931
|
-
const e =
|
|
4950
|
+
if (F(t))
|
|
4951
|
+
return Ct(t);
|
|
4952
|
+
const e = xt(t);
|
|
4932
4953
|
if (!e) return;
|
|
4933
4954
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4934
4955
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -5039,15 +5060,15 @@
|
|
|
5039
5060
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5040
5061
|
}
|
|
5041
5062
|
}
|
|
5042
|
-
function
|
|
5063
|
+
function St(t) {
|
|
5043
5064
|
if (t !== void 0) {
|
|
5044
|
-
if (F
|
|
5045
|
-
if (
|
|
5046
|
-
if (t instanceof
|
|
5065
|
+
if (F(t)) return t;
|
|
5066
|
+
if (hn(t)) return wn(t);
|
|
5067
|
+
if (t instanceof E) return ye(t);
|
|
5047
5068
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5048
5069
|
}
|
|
5049
5070
|
}
|
|
5050
|
-
function
|
|
5071
|
+
function _t(t, e) {
|
|
5051
5072
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5052
5073
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5053
5074
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5107,39 +5128,45 @@
|
|
|
5107
5128
|
}
|
|
5108
5129
|
}
|
|
5109
5130
|
}
|
|
5110
|
-
|
|
5131
|
+
function It(t) {
|
|
5132
|
+
if (!Array.isArray(t)) return false;
|
|
5133
|
+
if (t.length === 0) return true;
|
|
5134
|
+
const e = t[0];
|
|
5135
|
+
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5136
|
+
}
|
|
5137
|
+
class Tt {
|
|
5111
5138
|
constructor(e) {
|
|
5112
5139
|
this.columns = e;
|
|
5113
5140
|
}
|
|
5114
5141
|
selectColumns(e) {
|
|
5115
|
-
const n2 = typeof e == "function" ? e :
|
|
5142
|
+
const n2 = typeof e == "function" ? e : _n(e);
|
|
5116
5143
|
return this.columns.filter((r) => n2(r.spec));
|
|
5117
5144
|
}
|
|
5118
5145
|
}
|
|
5119
|
-
function
|
|
5146
|
+
function Lt(t) {
|
|
5120
5147
|
if (t)
|
|
5121
5148
|
return t.map((e) => ({
|
|
5122
|
-
type: `split:${
|
|
5149
|
+
type: `split:${In(e.axisId)}`,
|
|
5123
5150
|
label: e.label,
|
|
5124
5151
|
importance: 1e6
|
|
5125
5152
|
// High importance for split filters in labels
|
|
5126
5153
|
}));
|
|
5127
5154
|
}
|
|
5128
|
-
function
|
|
5155
|
+
function Et(t) {
|
|
5129
5156
|
if (t)
|
|
5130
5157
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5131
5158
|
}
|
|
5132
|
-
function
|
|
5159
|
+
function Ot(t, e) {
|
|
5133
5160
|
if (!e || e.length === 0) return t;
|
|
5134
5161
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5135
|
-
return
|
|
5162
|
+
return Oe({ id: t, axisFilters: n2 });
|
|
5136
5163
|
}
|
|
5137
|
-
function
|
|
5164
|
+
function Se(t) {
|
|
5138
5165
|
if (!t || typeof t != "object") return false;
|
|
5139
5166
|
const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
|
|
5140
5167
|
return !!e.domainAnchor || n2 || r;
|
|
5141
5168
|
}
|
|
5142
|
-
function
|
|
5169
|
+
function kt(t) {
|
|
5143
5170
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5144
5171
|
return [];
|
|
5145
5172
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5147,11 +5174,11 @@
|
|
|
5147
5174
|
throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
|
|
5148
5175
|
return e.sort((n2, r) => n2 - r), e;
|
|
5149
5176
|
}
|
|
5150
|
-
class
|
|
5177
|
+
class le {
|
|
5151
5178
|
constructor() {
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5179
|
+
k(this, "defaultProviderStore", []);
|
|
5180
|
+
k(this, "providers", [new Tt(this.defaultProviderStore)]);
|
|
5181
|
+
k(this, "axisLabelProviders", []);
|
|
5155
5182
|
}
|
|
5156
5183
|
addColumnProvider(e) {
|
|
5157
5184
|
return this.providers.push(e), this;
|
|
@@ -5179,124 +5206,126 @@
|
|
|
5179
5206
|
};
|
|
5180
5207
|
let u2 = () => false;
|
|
5181
5208
|
if (a) {
|
|
5182
|
-
const
|
|
5183
|
-
if (
|
|
5209
|
+
const d = (Array.isArray(a) ? a : [a]).map((h2) => {
|
|
5210
|
+
if (Se(h2)) {
|
|
5184
5211
|
if (!r)
|
|
5185
5212
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5186
|
-
return
|
|
5213
|
+
return _n(Bn(r.anchors, h2, n2));
|
|
5187
5214
|
} else
|
|
5188
|
-
return
|
|
5215
|
+
return _n(h2);
|
|
5189
5216
|
});
|
|
5190
|
-
u2 = (
|
|
5217
|
+
u2 = (h2) => d.some((b) => b(h2));
|
|
5191
5218
|
}
|
|
5192
|
-
const
|
|
5193
|
-
for (const
|
|
5194
|
-
const
|
|
5195
|
-
let
|
|
5196
|
-
if (
|
|
5219
|
+
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], m2 = [], v = /* @__PURE__ */ new Set();
|
|
5220
|
+
for (const d of c2) {
|
|
5221
|
+
const h2 = Se(d);
|
|
5222
|
+
let b;
|
|
5223
|
+
if (h2) {
|
|
5197
5224
|
if (!r)
|
|
5198
5225
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5199
|
-
|
|
5226
|
+
b = Bn(r.anchors, d, n2);
|
|
5200
5227
|
} else
|
|
5201
|
-
|
|
5202
|
-
const p2 = /* @__PURE__ */ new Set(),
|
|
5203
|
-
for (const
|
|
5204
|
-
const
|
|
5205
|
-
for (const
|
|
5206
|
-
if (u2(
|
|
5207
|
-
if (p2.has(
|
|
5208
|
-
throw new Error(`Duplicate column id ${
|
|
5209
|
-
const R =
|
|
5210
|
-
|
|
5228
|
+
b = d;
|
|
5229
|
+
const p2 = /* @__PURE__ */ new Set(), I2 = [];
|
|
5230
|
+
for (const A2 of this.providers) {
|
|
5231
|
+
const T = A2.selectColumns(b);
|
|
5232
|
+
for (const P of T) {
|
|
5233
|
+
if (u2(P.spec)) continue;
|
|
5234
|
+
if (p2.has(P.id))
|
|
5235
|
+
throw new Error(`Duplicate column id ${P.id} in provider ${A2.constructor.name}`);
|
|
5236
|
+
const R = Mn(P.spec);
|
|
5237
|
+
v.has(R) || (p2.add(P.id), v.add(R), I2.push(P));
|
|
5211
5238
|
}
|
|
5212
5239
|
}
|
|
5213
|
-
if (
|
|
5214
|
-
const
|
|
5215
|
-
for (const
|
|
5216
|
-
if (!f(
|
|
5217
|
-
const
|
|
5218
|
-
if (
|
|
5219
|
-
|
|
5220
|
-
|
|
5240
|
+
if (I2.length === 0) continue;
|
|
5241
|
+
const x2 = kt(d), y = x2.length > 0;
|
|
5242
|
+
for (const A2 of I2) {
|
|
5243
|
+
if (!f(A2.spec)) continue;
|
|
5244
|
+
const T = A2.spec;
|
|
5245
|
+
if (y) {
|
|
5246
|
+
if (It(A2.data))
|
|
5247
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A2.id}`);
|
|
5248
|
+
const P = St(A2.data);
|
|
5249
|
+
if (!P) {
|
|
5221
5250
|
if (s2) continue;
|
|
5222
5251
|
return;
|
|
5223
5252
|
}
|
|
5224
|
-
if (!
|
|
5225
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
5226
|
-
const R =
|
|
5227
|
-
if (
|
|
5228
|
-
throw new Error(`Not enough partition keys (${
|
|
5229
|
-
const W =
|
|
5230
|
-
if (G2 >=
|
|
5231
|
-
if (V.push([...
|
|
5253
|
+
if (!bn(P))
|
|
5254
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A2.id}`);
|
|
5255
|
+
const R = Pt(P), O = x2[x2.length - 1];
|
|
5256
|
+
if (O >= P.partitionKeyLength)
|
|
5257
|
+
throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${O}) in column ${T.name}`);
|
|
5258
|
+
const W = x2.map((S) => this.findLabels(p$1(T.axesSpec[S]))), V = [], $ = (S, G2) => {
|
|
5259
|
+
if (G2 >= x2.length) {
|
|
5260
|
+
if (V.push([...S]), V.length > 1e4)
|
|
5232
5261
|
throw new Error("Too many key combinations, aborting.");
|
|
5233
5262
|
return;
|
|
5234
5263
|
}
|
|
5235
|
-
const
|
|
5236
|
-
if (
|
|
5237
|
-
throw new Error(`Axis index ${
|
|
5238
|
-
const
|
|
5239
|
-
if (!
|
|
5264
|
+
const j = x2[G2];
|
|
5265
|
+
if (j >= R.length)
|
|
5266
|
+
throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A2.id}`);
|
|
5267
|
+
const N2 = R[j];
|
|
5268
|
+
if (!N2 || N2.length === 0) {
|
|
5240
5269
|
V.length = 0;
|
|
5241
5270
|
return;
|
|
5242
5271
|
}
|
|
5243
|
-
for (const ee of
|
|
5244
|
-
|
|
5272
|
+
for (const ee of N2)
|
|
5273
|
+
S.push(ee), $(S, G2 + 1), S.pop();
|
|
5245
5274
|
};
|
|
5246
|
-
if (
|
|
5275
|
+
if ($([], 0), V.length === 0)
|
|
5247
5276
|
continue;
|
|
5248
|
-
const
|
|
5249
|
-
for (let
|
|
5250
|
-
|
|
5251
|
-
const
|
|
5252
|
-
for (const
|
|
5253
|
-
const G2 =
|
|
5254
|
-
const ee =
|
|
5255
|
-
return { axisIdx: ee, axisId:
|
|
5277
|
+
const F2 = [...T.axesSpec], Be = x2.map((S) => S);
|
|
5278
|
+
for (let S = x2.length - 1; S >= 0; S--)
|
|
5279
|
+
F2.splice(x2[S], 1);
|
|
5280
|
+
const We = { ...T, axesSpec: F2 };
|
|
5281
|
+
for (const S of V) {
|
|
5282
|
+
const G2 = S.map((j, N2) => {
|
|
5283
|
+
const ee = Be[N2], Ge = p$1(T.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[j]) ?? String(j);
|
|
5284
|
+
return { axisIdx: ee, axisId: Ge, value: j, label: He };
|
|
5256
5285
|
});
|
|
5257
|
-
|
|
5286
|
+
m2.push({
|
|
5258
5287
|
type: "split",
|
|
5259
|
-
originalColumn:
|
|
5260
|
-
spec:
|
|
5261
|
-
adjustedSpec:
|
|
5262
|
-
dataEntries:
|
|
5288
|
+
originalColumn: A2,
|
|
5289
|
+
spec: T,
|
|
5290
|
+
adjustedSpec: We,
|
|
5291
|
+
dataEntries: P,
|
|
5263
5292
|
axisFilters: G2
|
|
5264
5293
|
});
|
|
5265
5294
|
}
|
|
5266
5295
|
} else
|
|
5267
|
-
|
|
5296
|
+
m2.push({
|
|
5268
5297
|
type: "direct",
|
|
5269
|
-
originalColumn:
|
|
5270
|
-
spec:
|
|
5271
|
-
adjustedSpec:
|
|
5298
|
+
originalColumn: A2,
|
|
5299
|
+
spec: T,
|
|
5300
|
+
adjustedSpec: T
|
|
5272
5301
|
});
|
|
5273
5302
|
}
|
|
5274
5303
|
}
|
|
5275
|
-
if (
|
|
5304
|
+
if (m2.length === 0) return [];
|
|
5276
5305
|
const f$1 = Ve(
|
|
5277
|
-
|
|
5278
|
-
(
|
|
5279
|
-
spec:
|
|
5280
|
-
suffixTrace:
|
|
5306
|
+
m2,
|
|
5307
|
+
(d) => ({
|
|
5308
|
+
spec: d.spec,
|
|
5309
|
+
suffixTrace: d.type === "split" ? Lt(d.axisFilters) : void 0
|
|
5281
5310
|
}),
|
|
5282
5311
|
l2
|
|
5283
5312
|
), w2 = [];
|
|
5284
|
-
for (const { value:
|
|
5285
|
-
const { originalColumn:
|
|
5286
|
-
let
|
|
5287
|
-
r ?
|
|
5288
|
-
let
|
|
5289
|
-
o && (
|
|
5290
|
-
...
|
|
5313
|
+
for (const { value: d, label: h2 } of f$1) {
|
|
5314
|
+
const { originalColumn: b, spec: p2 } = d, I2 = d.type === "split" ? d.axisFilters : void 0, x2 = Et(I2);
|
|
5315
|
+
let y;
|
|
5316
|
+
r ? y = r.deriveS(p2, x2) : y = Ot(b.id, x2);
|
|
5317
|
+
let A2 = { ...d.adjustedSpec };
|
|
5318
|
+
o && (A2 = {
|
|
5319
|
+
...A2,
|
|
5291
5320
|
annotations: {
|
|
5292
|
-
...
|
|
5293
|
-
"pl7.app/label":
|
|
5321
|
+
...A2.annotations ?? {},
|
|
5322
|
+
"pl7.app/label": h2
|
|
5294
5323
|
}
|
|
5295
5324
|
}), w2.push({
|
|
5296
|
-
id:
|
|
5297
|
-
spec:
|
|
5298
|
-
data: () =>
|
|
5299
|
-
label:
|
|
5325
|
+
id: y,
|
|
5326
|
+
spec: A2,
|
|
5327
|
+
data: () => d.type === "split" ? Pn(_t(d.dataEntries, x2)) : d.originalColumn.data,
|
|
5328
|
+
label: h2
|
|
5300
5329
|
});
|
|
5301
5330
|
}
|
|
5302
5331
|
return w2;
|
|
@@ -5324,19 +5353,19 @@
|
|
|
5324
5353
|
return i;
|
|
5325
5354
|
}
|
|
5326
5355
|
}
|
|
5327
|
-
function
|
|
5356
|
+
function de(t, e) {
|
|
5328
5357
|
if (t === void 0) return e === void 0;
|
|
5329
5358
|
if (e === void 0) return true;
|
|
5330
5359
|
for (const n2 in e)
|
|
5331
5360
|
if (t[n2] !== e[n2]) return false;
|
|
5332
5361
|
return true;
|
|
5333
5362
|
}
|
|
5334
|
-
function
|
|
5335
|
-
return Kn(t, (e) => e instanceof
|
|
5363
|
+
function _e(t) {
|
|
5364
|
+
return Kn(t, (e) => e instanceof E ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
|
|
5336
5365
|
}
|
|
5337
|
-
class
|
|
5366
|
+
class Rt {
|
|
5338
5367
|
constructor() {
|
|
5339
|
-
|
|
5368
|
+
k(this, "ctx", g());
|
|
5340
5369
|
}
|
|
5341
5370
|
/**
|
|
5342
5371
|
* @deprecated use getOptions()
|
|
@@ -5345,28 +5374,28 @@
|
|
|
5345
5374
|
return this.ctx.calculateOptions(e);
|
|
5346
5375
|
}
|
|
5347
5376
|
getOptions(e, n2) {
|
|
5348
|
-
const r = typeof e == "function" ? e :
|
|
5377
|
+
const r = typeof e == "function" ? e : _n(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5349
5378
|
let s2 = {}, o = false;
|
|
5350
5379
|
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? Ve(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5351
|
-
ref:
|
|
5380
|
+
ref: zn(a, o),
|
|
5352
5381
|
label: l2
|
|
5353
5382
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5354
|
-
ref:
|
|
5383
|
+
ref: zn(a, o),
|
|
5355
5384
|
label: s2(l2, a)
|
|
5356
5385
|
}));
|
|
5357
5386
|
}
|
|
5358
5387
|
resolveAnchorCtx(e) {
|
|
5359
|
-
if (e instanceof
|
|
5388
|
+
if (e instanceof Vn) return e;
|
|
5360
5389
|
const n2 = {};
|
|
5361
5390
|
for (const [r, i] of Object.entries(e))
|
|
5362
|
-
if (
|
|
5391
|
+
if (qn(i)) {
|
|
5363
5392
|
const s2 = this.getPColumnSpecByRef(i);
|
|
5364
5393
|
if (!s2)
|
|
5365
5394
|
return;
|
|
5366
5395
|
n2[r] = s2;
|
|
5367
5396
|
} else
|
|
5368
5397
|
n2[r] = i;
|
|
5369
|
-
return new
|
|
5398
|
+
return new Vn(n2);
|
|
5370
5399
|
}
|
|
5371
5400
|
/**
|
|
5372
5401
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5379,7 +5408,7 @@
|
|
|
5379
5408
|
getAnchoredPColumns(e, n2, r) {
|
|
5380
5409
|
const i = this.resolveAnchorCtx(e);
|
|
5381
5410
|
if (i)
|
|
5382
|
-
return new
|
|
5411
|
+
return new le().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
|
|
5383
5412
|
...r,
|
|
5384
5413
|
anchorCtx: i
|
|
5385
5414
|
});
|
|
@@ -5416,7 +5445,7 @@
|
|
|
5416
5445
|
getCanonicalOptions(e, n2, r) {
|
|
5417
5446
|
const i = this.resolveAnchorCtx(e);
|
|
5418
5447
|
if (!i) return;
|
|
5419
|
-
const s2 = new
|
|
5448
|
+
const s2 = new le().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
|
|
5420
5449
|
...r,
|
|
5421
5450
|
anchorCtx: i
|
|
5422
5451
|
});
|
|
@@ -5440,7 +5469,7 @@
|
|
|
5440
5469
|
ref: n2.ref,
|
|
5441
5470
|
obj: {
|
|
5442
5471
|
...n2.obj,
|
|
5443
|
-
data: new
|
|
5472
|
+
data: new E(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5444
5473
|
}
|
|
5445
5474
|
}))
|
|
5446
5475
|
};
|
|
@@ -5459,9 +5488,9 @@
|
|
|
5459
5488
|
ref: n2.ref,
|
|
5460
5489
|
obj: {
|
|
5461
5490
|
...n2.obj,
|
|
5462
|
-
data:
|
|
5491
|
+
data: Gn(
|
|
5463
5492
|
n2.obj.data,
|
|
5464
|
-
(r) => new
|
|
5493
|
+
(r) => new E(r, [n2.ref.blockId, n2.ref.name])
|
|
5465
5494
|
)
|
|
5466
5495
|
}
|
|
5467
5496
|
}))
|
|
@@ -5490,7 +5519,7 @@
|
|
|
5490
5519
|
if (n2)
|
|
5491
5520
|
return Kn(
|
|
5492
5521
|
n2,
|
|
5493
|
-
(i) => new
|
|
5522
|
+
(i) => new E(i, [e.blockId, e.name])
|
|
5494
5523
|
);
|
|
5495
5524
|
}
|
|
5496
5525
|
/**
|
|
@@ -5533,10 +5562,10 @@
|
|
|
5533
5562
|
if (!f(r.obj.spec))
|
|
5534
5563
|
continue;
|
|
5535
5564
|
const i = r.obj.spec;
|
|
5536
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5565
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && de(e.domain, i.domain)) {
|
|
5537
5566
|
for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
|
|
5538
5567
|
const o = e.axesSpec[s2], a = i.axesSpec[s2];
|
|
5539
|
-
if (o.name !== a.name || o.type !== a.type || !
|
|
5568
|
+
if (o.name !== a.name || o.type !== a.type || !de(o.domain, a.domain))
|
|
5540
5569
|
continue e;
|
|
5541
5570
|
}
|
|
5542
5571
|
n2.push(r.obj);
|
|
@@ -5553,7 +5582,7 @@
|
|
|
5553
5582
|
for (const r of n2.entries) {
|
|
5554
5583
|
if (!Z$1(r.obj)) continue;
|
|
5555
5584
|
const i = r.obj.spec;
|
|
5556
|
-
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type &&
|
|
5585
|
+
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && de(e.domain, i.axesSpec[0].domain)) {
|
|
5557
5586
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5558
5587
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5559
5588
|
return Object.fromEntries(
|
|
@@ -5572,13 +5601,13 @@
|
|
|
5572
5601
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5573
5602
|
*/
|
|
5574
5603
|
selectColumns(e) {
|
|
5575
|
-
const n2 = typeof e == "function" ? e :
|
|
5604
|
+
const n2 = typeof e == "function" ? e : _n(e);
|
|
5576
5605
|
return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
|
|
5577
5606
|
const o = s2;
|
|
5578
5607
|
let a = null;
|
|
5579
5608
|
const l2 = this;
|
|
5580
5609
|
return {
|
|
5581
|
-
id:
|
|
5610
|
+
id: Oe(i),
|
|
5582
5611
|
spec: o,
|
|
5583
5612
|
get data() {
|
|
5584
5613
|
var u2;
|
|
@@ -5605,12 +5634,12 @@
|
|
|
5605
5634
|
}
|
|
5606
5635
|
class te {
|
|
5607
5636
|
constructor() {
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
this.ctx =
|
|
5637
|
+
k(this, "ctx");
|
|
5638
|
+
k(this, "args");
|
|
5639
|
+
k(this, "uiState");
|
|
5640
|
+
k(this, "_activeArgsCache");
|
|
5641
|
+
k(this, "resultPool", new Rt());
|
|
5642
|
+
this.ctx = g(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5614
5643
|
}
|
|
5615
5644
|
/**
|
|
5616
5645
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5628,14 +5657,14 @@
|
|
|
5628
5657
|
getNamedAccessor(e) {
|
|
5629
5658
|
return he(
|
|
5630
5659
|
this.ctx.getAccessorHandleByName(e),
|
|
5631
|
-
(n2) => new
|
|
5660
|
+
(n2) => new E(n2, [e])
|
|
5632
5661
|
);
|
|
5633
5662
|
}
|
|
5634
5663
|
get prerun() {
|
|
5635
5664
|
return this.getNamedAccessor(De);
|
|
5636
5665
|
}
|
|
5637
5666
|
get outputs() {
|
|
5638
|
-
return this.getNamedAccessor(
|
|
5667
|
+
return this.getNamedAccessor(Fe);
|
|
5639
5668
|
}
|
|
5640
5669
|
/**
|
|
5641
5670
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5647,13 +5676,13 @@
|
|
|
5647
5676
|
}
|
|
5648
5677
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5649
5678
|
var i;
|
|
5650
|
-
const n2 = e.some((s2) => !(s2.data instanceof
|
|
5679
|
+
const n2 = e.some((s2) => !(s2.data instanceof E) || hn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5651
5680
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5652
5681
|
}
|
|
5653
5682
|
// TODO remove all non-PColumn fields
|
|
5654
5683
|
createPFrame(e) {
|
|
5655
5684
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5656
|
-
e.map((n2) =>
|
|
5685
|
+
e.map((n2) => _e(n2))
|
|
5657
5686
|
);
|
|
5658
5687
|
}
|
|
5659
5688
|
createPTable(e) {
|
|
@@ -5665,8 +5694,8 @@
|
|
|
5665
5694
|
},
|
|
5666
5695
|
filters: e.filters ?? [],
|
|
5667
5696
|
sorting: e.sorting ?? []
|
|
5668
|
-
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(
|
|
5669
|
-
|
|
5697
|
+
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(vn(n2.src)), this.ctx.createPTable(
|
|
5698
|
+
Dn(n2, (r) => _e(r))
|
|
5670
5699
|
);
|
|
5671
5700
|
}
|
|
5672
5701
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5686,20 +5715,20 @@
|
|
|
5686
5715
|
this.ctx.logError(e);
|
|
5687
5716
|
}
|
|
5688
5717
|
}
|
|
5689
|
-
const Y = "1.33.
|
|
5690
|
-
function
|
|
5718
|
+
const Y = "1.33.10";
|
|
5719
|
+
function Dt(t) {
|
|
5691
5720
|
return t.__renderLambda === true;
|
|
5692
5721
|
}
|
|
5693
|
-
function
|
|
5722
|
+
function pe(t) {
|
|
5694
5723
|
if (t !== void 0)
|
|
5695
|
-
return
|
|
5724
|
+
return Dt(t) ? t.handle : t;
|
|
5696
5725
|
}
|
|
5697
|
-
class
|
|
5726
|
+
class L {
|
|
5698
5727
|
constructor(e, n2, r, i, s2, o, a, l2) {
|
|
5699
5728
|
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
|
|
5700
5729
|
}
|
|
5701
5730
|
static create(e = "Heavy") {
|
|
5702
|
-
return new
|
|
5731
|
+
return new L(
|
|
5703
5732
|
e,
|
|
5704
5733
|
void 0,
|
|
5705
5734
|
{},
|
|
@@ -5713,7 +5742,7 @@
|
|
|
5713
5742
|
output(e, n2, r = {}) {
|
|
5714
5743
|
if (typeof n2 == "function") {
|
|
5715
5744
|
const i = `output#${e}`;
|
|
5716
|
-
return H(i, () => n2(new te())), new
|
|
5745
|
+
return H(i, () => n2(new te())), new L(
|
|
5717
5746
|
this._renderingMode,
|
|
5718
5747
|
this._initialArgs,
|
|
5719
5748
|
this._initialUiState,
|
|
@@ -5731,7 +5760,7 @@
|
|
|
5731
5760
|
this._enrichmentTargets
|
|
5732
5761
|
);
|
|
5733
5762
|
} else
|
|
5734
|
-
return new
|
|
5763
|
+
return new L(
|
|
5735
5764
|
this._renderingMode,
|
|
5736
5765
|
this._initialArgs,
|
|
5737
5766
|
this._initialUiState,
|
|
@@ -5750,7 +5779,7 @@
|
|
|
5750
5779
|
return this.output(e, n2, { retentive: true });
|
|
5751
5780
|
}
|
|
5752
5781
|
argsValid(e) {
|
|
5753
|
-
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new
|
|
5782
|
+
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new L(
|
|
5754
5783
|
this._renderingMode,
|
|
5755
5784
|
this._initialArgs,
|
|
5756
5785
|
this._initialUiState,
|
|
@@ -5762,7 +5791,7 @@
|
|
|
5762
5791
|
this._sections,
|
|
5763
5792
|
this._title,
|
|
5764
5793
|
this._enrichmentTargets
|
|
5765
|
-
)) : new
|
|
5794
|
+
)) : new L(
|
|
5766
5795
|
this._renderingMode,
|
|
5767
5796
|
this._initialArgs,
|
|
5768
5797
|
this._initialUiState,
|
|
@@ -5774,7 +5803,7 @@
|
|
|
5774
5803
|
);
|
|
5775
5804
|
}
|
|
5776
5805
|
sections(e) {
|
|
5777
|
-
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new
|
|
5806
|
+
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new L(
|
|
5778
5807
|
this._renderingMode,
|
|
5779
5808
|
this._initialArgs,
|
|
5780
5809
|
this._initialUiState,
|
|
@@ -5783,7 +5812,7 @@
|
|
|
5783
5812
|
{ __renderLambda: true, handle: "sections" },
|
|
5784
5813
|
this._title,
|
|
5785
5814
|
this._enrichmentTargets
|
|
5786
|
-
)) : new
|
|
5815
|
+
)) : new L(
|
|
5787
5816
|
this._renderingMode,
|
|
5788
5817
|
this._initialArgs,
|
|
5789
5818
|
this._initialUiState,
|
|
@@ -5796,7 +5825,7 @@
|
|
|
5796
5825
|
}
|
|
5797
5826
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5798
5827
|
title(e) {
|
|
5799
|
-
return H("title", () => e(new te())), new
|
|
5828
|
+
return H("title", () => e(new te())), new L(
|
|
5800
5829
|
this._renderingMode,
|
|
5801
5830
|
this._initialArgs,
|
|
5802
5831
|
this._initialUiState,
|
|
@@ -5812,7 +5841,7 @@
|
|
|
5812
5841
|
* @deprecated use {@link withArgs}
|
|
5813
5842
|
* */
|
|
5814
5843
|
initialArgs(e) {
|
|
5815
|
-
return new
|
|
5844
|
+
return new L(
|
|
5816
5845
|
this._renderingMode,
|
|
5817
5846
|
e,
|
|
5818
5847
|
this._initialUiState,
|
|
@@ -5825,7 +5854,7 @@
|
|
|
5825
5854
|
}
|
|
5826
5855
|
/** Sets initial args for the block, this value must be specified. */
|
|
5827
5856
|
withArgs(e) {
|
|
5828
|
-
return new
|
|
5857
|
+
return new L(
|
|
5829
5858
|
this._renderingMode,
|
|
5830
5859
|
e,
|
|
5831
5860
|
this._initialUiState,
|
|
@@ -5838,7 +5867,7 @@
|
|
|
5838
5867
|
}
|
|
5839
5868
|
/** Defines type and sets initial value for block UiState. */
|
|
5840
5869
|
withUiState(e) {
|
|
5841
|
-
return new
|
|
5870
|
+
return new L(
|
|
5842
5871
|
this._renderingMode,
|
|
5843
5872
|
this._initialArgs,
|
|
5844
5873
|
e,
|
|
@@ -5854,7 +5883,7 @@
|
|
|
5854
5883
|
* Influences dependency graph construction.
|
|
5855
5884
|
*/
|
|
5856
5885
|
enriches(e) {
|
|
5857
|
-
return H("enrichmentTargets", e), new
|
|
5886
|
+
return H("enrichmentTargets", e), new L(
|
|
5858
5887
|
this._renderingMode,
|
|
5859
5888
|
this._initialArgs,
|
|
5860
5889
|
this._initialUiState,
|
|
@@ -5886,16 +5915,16 @@
|
|
|
5886
5915
|
sdkVersion: Y,
|
|
5887
5916
|
renderingMode: this._renderingMode,
|
|
5888
5917
|
initialArgs: this._initialArgs,
|
|
5889
|
-
inputsValid:
|
|
5890
|
-
sections:
|
|
5918
|
+
inputsValid: pe(this._inputsValid),
|
|
5919
|
+
sections: pe(this._sections),
|
|
5891
5920
|
outputs: Object.fromEntries(
|
|
5892
|
-
Object.entries(this._outputs).map(([n2, r]) => [n2,
|
|
5921
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
|
|
5893
5922
|
)
|
|
5894
5923
|
};
|
|
5895
|
-
return
|
|
5924
|
+
return dt() ? Re({ sdkVersion: Y }) : { config: e };
|
|
5896
5925
|
}
|
|
5897
5926
|
}
|
|
5898
|
-
const platforma =
|
|
5927
|
+
const platforma = L.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|
|
5899
5928
|
return [{ type: "link", href: "/", label: "Main" }];
|
|
5900
5929
|
}).title((ctx) => "Pool explorer").done();
|
|
5901
5930
|
exports2.platforma = platforma;
|