@milaboratories/milaboratories.pool-explorer.model 1.0.82 → 1.0.83
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 +9 -9
- package/CHANGELOG.md +7 -0
- package/dist/bundle.js +579 -517
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
54
54
|
}
|
|
55
55
|
util2.joinValues = joinValues;
|
|
56
|
-
util2.jsonStringifyReplacer = (
|
|
56
|
+
util2.jsonStringifyReplacer = (_2, value) => {
|
|
57
57
|
if (typeof value === "bigint") {
|
|
58
58
|
return value.toString();
|
|
59
59
|
}
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
overrideMap,
|
|
392
392
|
overrideMap === errorMap ? void 0 : errorMap
|
|
393
393
|
// then global default map
|
|
394
|
-
].filter((
|
|
394
|
+
].filter((x) => !!x)
|
|
395
395
|
});
|
|
396
396
|
ctx.common.issues.push(issue);
|
|
397
397
|
}
|
|
@@ -454,15 +454,15 @@
|
|
|
454
454
|
});
|
|
455
455
|
const DIRTY = (value) => ({ status: "dirty", value });
|
|
456
456
|
const OK = (value) => ({ status: "valid", value });
|
|
457
|
-
const isAborted = (
|
|
458
|
-
const isDirty = (
|
|
459
|
-
const isValid = (
|
|
460
|
-
const isAsync = (
|
|
461
|
-
function __classPrivateFieldGet(receiver, state, kind,
|
|
457
|
+
const isAborted = (x) => x.status === "aborted";
|
|
458
|
+
const isDirty = (x) => x.status === "dirty";
|
|
459
|
+
const isValid = (x) => x.status === "valid";
|
|
460
|
+
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
461
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
462
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");
|
|
463
463
|
return state.get(receiver);
|
|
464
464
|
}
|
|
465
|
-
function __classPrivateFieldSet(receiver, state, value, kind,
|
|
465
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
466
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");
|
|
467
467
|
return state.set(receiver, value), value;
|
|
468
468
|
}
|
|
@@ -2787,7 +2787,7 @@
|
|
|
2787
2787
|
if (!schema)
|
|
2788
2788
|
return null;
|
|
2789
2789
|
return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
|
2790
|
-
}).filter((
|
|
2790
|
+
}).filter((x) => !!x);
|
|
2791
2791
|
if (ctx.common.async) {
|
|
2792
2792
|
return Promise.all(items).then((results) => {
|
|
2793
2793
|
return ParseStatus.mergeArray(status, results);
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
ctx.schemaErrorMap,
|
|
3046
3046
|
getErrorMap(),
|
|
3047
3047
|
errorMap
|
|
3048
|
-
].filter((
|
|
3048
|
+
].filter((x) => !!x),
|
|
3049
3049
|
issueData: {
|
|
3050
3050
|
code: ZodIssueCode.invalid_arguments,
|
|
3051
3051
|
argumentsError: error
|
|
@@ -3061,7 +3061,7 @@
|
|
|
3061
3061
|
ctx.schemaErrorMap,
|
|
3062
3062
|
getErrorMap(),
|
|
3063
3063
|
errorMap
|
|
3064
|
-
].filter((
|
|
3064
|
+
].filter((x) => !!x),
|
|
3065
3065
|
issueData: {
|
|
3066
3066
|
code: ZodIssueCode.invalid_return_type,
|
|
3067
3067
|
returnTypeError: error
|
|
@@ -3914,8 +3914,8 @@
|
|
|
3914
3914
|
quotelessJson,
|
|
3915
3915
|
ZodError
|
|
3916
3916
|
});
|
|
3917
|
-
function getDefaultExportFromCjs(
|
|
3918
|
-
return
|
|
3917
|
+
function getDefaultExportFromCjs(x) {
|
|
3918
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3919
3919
|
}
|
|
3920
3920
|
var canonicalize;
|
|
3921
3921
|
var hasRequiredCanonicalize;
|
|
@@ -3955,20 +3955,20 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3959
|
-
var
|
|
3960
|
-
var
|
|
3961
|
-
var
|
|
3958
|
+
const We = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
|
+
var te = Object.defineProperty;
|
|
3960
|
+
var re = (e, n2, t) => n2 in e ? te(e, n2, { enumerable: true, configurable: true, writable: true, value: t }) : e[n2] = t;
|
|
3961
|
+
var b = (e, n2, t) => re(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
|
|
3962
3962
|
z$1.object({
|
|
3963
3963
|
/** Included left border. */
|
|
3964
3964
|
from: z$1.number(),
|
|
3965
3965
|
/** Excluded right border. */
|
|
3966
3966
|
to: z$1.number()
|
|
3967
3967
|
});
|
|
3968
|
-
function
|
|
3968
|
+
function k$1(e) {
|
|
3969
3969
|
throw new Error("Unexpected object: " + e);
|
|
3970
3970
|
}
|
|
3971
|
-
function
|
|
3971
|
+
function Qe$1(e) {
|
|
3972
3972
|
if (!e || typeof e != "object")
|
|
3973
3973
|
return false;
|
|
3974
3974
|
const n2 = e;
|
|
@@ -3985,44 +3985,44 @@
|
|
|
3985
3985
|
return false;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
function
|
|
3988
|
+
function Xe$1(e, n2) {
|
|
3989
3989
|
if (e !== void 0)
|
|
3990
3990
|
switch (e.type) {
|
|
3991
3991
|
case "Json":
|
|
3992
3992
|
return e;
|
|
3993
3993
|
case "JsonPartitioned": {
|
|
3994
|
-
const
|
|
3995
|
-
for (const [
|
|
3996
|
-
r
|
|
3994
|
+
const t = {};
|
|
3995
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
3996
|
+
t[r] = n2(o);
|
|
3997
3997
|
return {
|
|
3998
3998
|
...e,
|
|
3999
|
-
parts:
|
|
3999
|
+
parts: t
|
|
4000
4000
|
};
|
|
4001
4001
|
}
|
|
4002
4002
|
case "BinaryPartitioned": {
|
|
4003
|
-
const
|
|
4004
|
-
for (const [
|
|
4005
|
-
r
|
|
4006
|
-
index: n2(
|
|
4007
|
-
values: n2(
|
|
4003
|
+
const t = {};
|
|
4004
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
4005
|
+
t[r] = {
|
|
4006
|
+
index: n2(o.index),
|
|
4007
|
+
values: n2(o.values)
|
|
4008
4008
|
};
|
|
4009
4009
|
return {
|
|
4010
4010
|
...e,
|
|
4011
|
-
parts:
|
|
4011
|
+
parts: t
|
|
4012
4012
|
};
|
|
4013
4013
|
}
|
|
4014
4014
|
case "ParquetPartitioned": {
|
|
4015
|
-
const
|
|
4016
|
-
for (const [
|
|
4017
|
-
r
|
|
4015
|
+
const t = {};
|
|
4016
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
4017
|
+
t[r] = n2(o);
|
|
4018
4018
|
return {
|
|
4019
4019
|
...e,
|
|
4020
|
-
parts:
|
|
4020
|
+
parts: t
|
|
4021
4021
|
};
|
|
4022
4022
|
}
|
|
4023
4023
|
}
|
|
4024
4024
|
}
|
|
4025
|
-
function
|
|
4025
|
+
function ue$1(e) {
|
|
4026
4026
|
if (!e || typeof e != "object")
|
|
4027
4027
|
return false;
|
|
4028
4028
|
const n2 = e;
|
|
@@ -4039,8 +4039,8 @@
|
|
|
4039
4039
|
return false;
|
|
4040
4040
|
}
|
|
4041
4041
|
}
|
|
4042
|
-
function
|
|
4043
|
-
if (!
|
|
4042
|
+
function Ze$1(e) {
|
|
4043
|
+
if (!ue$1(e)) return false;
|
|
4044
4044
|
switch (e.type) {
|
|
4045
4045
|
case "JsonPartitioned":
|
|
4046
4046
|
case "BinaryPartitioned":
|
|
@@ -4050,44 +4050,44 @@
|
|
|
4050
4050
|
return false;
|
|
4051
4051
|
}
|
|
4052
4052
|
}
|
|
4053
|
-
function
|
|
4053
|
+
function en$1(e) {
|
|
4054
4054
|
switch (e.type) {
|
|
4055
4055
|
case "Json":
|
|
4056
4056
|
return {
|
|
4057
4057
|
type: "Json",
|
|
4058
4058
|
keyLength: e.keyLength,
|
|
4059
|
-
data: Object.entries(e.data).map(([n2,
|
|
4059
|
+
data: Object.entries(e.data).map(([n2, t]) => ({ key: JSON.parse(n2), value: t }))
|
|
4060
4060
|
};
|
|
4061
4061
|
case "JsonPartitioned":
|
|
4062
4062
|
return {
|
|
4063
4063
|
type: "JsonPartitioned",
|
|
4064
4064
|
partitionKeyLength: e.partitionKeyLength,
|
|
4065
|
-
parts: Object.entries(e.parts).map(([n2,
|
|
4065
|
+
parts: Object.entries(e.parts).map(([n2, t]) => ({ key: JSON.parse(n2), value: t }))
|
|
4066
4066
|
};
|
|
4067
4067
|
case "BinaryPartitioned":
|
|
4068
4068
|
return {
|
|
4069
4069
|
type: "BinaryPartitioned",
|
|
4070
4070
|
partitionKeyLength: e.partitionKeyLength,
|
|
4071
|
-
parts: Object.entries(e.parts).map(([n2,
|
|
4071
|
+
parts: Object.entries(e.parts).map(([n2, t]) => ({ key: JSON.parse(n2), value: t }))
|
|
4072
4072
|
};
|
|
4073
4073
|
case "ParquetPartitioned":
|
|
4074
4074
|
return {
|
|
4075
4075
|
type: "ParquetPartitioned",
|
|
4076
4076
|
partitionKeyLength: e.partitionKeyLength,
|
|
4077
|
-
parts: Object.entries(e.parts).map(([n2,
|
|
4077
|
+
parts: Object.entries(e.parts).map(([n2, t]) => ({ key: JSON.parse(n2), value: t }))
|
|
4078
4078
|
};
|
|
4079
4079
|
default:
|
|
4080
|
-
|
|
4080
|
+
k$1(e);
|
|
4081
4081
|
}
|
|
4082
4082
|
}
|
|
4083
|
-
function
|
|
4083
|
+
function nn(e) {
|
|
4084
4084
|
switch (e.type) {
|
|
4085
4085
|
case "Json":
|
|
4086
4086
|
return {
|
|
4087
4087
|
type: "Json",
|
|
4088
4088
|
keyLength: e.keyLength,
|
|
4089
4089
|
data: Object.fromEntries(
|
|
4090
|
-
e.data.map(({ key: n2, value:
|
|
4090
|
+
e.data.map(({ key: n2, value: t }) => [JSON.stringify(n2), t])
|
|
4091
4091
|
)
|
|
4092
4092
|
};
|
|
4093
4093
|
case "JsonPartitioned":
|
|
@@ -4095,7 +4095,7 @@
|
|
|
4095
4095
|
type: "JsonPartitioned",
|
|
4096
4096
|
partitionKeyLength: e.partitionKeyLength,
|
|
4097
4097
|
parts: Object.fromEntries(
|
|
4098
|
-
e.parts.map(({ key: n2, value:
|
|
4098
|
+
e.parts.map(({ key: n2, value: t }) => [JSON.stringify(n2), t])
|
|
4099
4099
|
)
|
|
4100
4100
|
};
|
|
4101
4101
|
case "BinaryPartitioned":
|
|
@@ -4103,7 +4103,7 @@
|
|
|
4103
4103
|
type: "BinaryPartitioned",
|
|
4104
4104
|
partitionKeyLength: e.partitionKeyLength,
|
|
4105
4105
|
parts: Object.fromEntries(
|
|
4106
|
-
e.parts.map(({ key: n2, value:
|
|
4106
|
+
e.parts.map(({ key: n2, value: t }) => [JSON.stringify(n2), t])
|
|
4107
4107
|
)
|
|
4108
4108
|
};
|
|
4109
4109
|
case "ParquetPartitioned":
|
|
@@ -4111,37 +4111,101 @@
|
|
|
4111
4111
|
type: "ParquetPartitioned",
|
|
4112
4112
|
partitionKeyLength: e.partitionKeyLength,
|
|
4113
4113
|
parts: Object.fromEntries(
|
|
4114
|
-
e.parts.map(({ key: n2, value:
|
|
4114
|
+
e.parts.map(({ key: n2, value: t }) => [JSON.stringify(n2), t])
|
|
4115
4115
|
)
|
|
4116
4116
|
};
|
|
4117
4117
|
default:
|
|
4118
|
-
|
|
4118
|
+
k$1(e);
|
|
4119
4119
|
}
|
|
4120
4120
|
}
|
|
4121
|
-
function
|
|
4122
|
-
|
|
4123
|
-
|
|
4121
|
+
function m$1(e) {
|
|
4122
|
+
return We(e);
|
|
4123
|
+
}
|
|
4124
|
+
function me$1(e) {
|
|
4125
|
+
return JSON.parse(e);
|
|
4126
|
+
}
|
|
4127
|
+
const g = {
|
|
4128
|
+
Int: "Int",
|
|
4129
|
+
Long: "Long",
|
|
4130
|
+
Float: "Float",
|
|
4131
|
+
Double: "Double",
|
|
4132
|
+
String: "String",
|
|
4133
|
+
Bytes: "Bytes"
|
|
4134
|
+
};
|
|
4135
|
+
function I(e, n2) {
|
|
4136
|
+
return e == null ? void 0 : e[n2];
|
|
4137
|
+
}
|
|
4138
|
+
const y = {
|
|
4139
|
+
DiscreteValues: "pl7.app/discreteValues",
|
|
4140
|
+
Graph: {
|
|
4141
|
+
IsVirtual: "pl7.app/graph/isVirtual"
|
|
4142
|
+
},
|
|
4143
|
+
HideDataFromUi: "pl7.app/hideDataFromUi",
|
|
4144
|
+
IsLinkerColumn: "pl7.app/isLinkerColumn",
|
|
4145
|
+
Label: "pl7.app/label",
|
|
4146
|
+
Max: "pl7.app/max",
|
|
4147
|
+
Min: "pl7.app/min",
|
|
4148
|
+
Parents: "pl7.app/parents",
|
|
4149
|
+
Sequence: {
|
|
4150
|
+
Annotation: {
|
|
4151
|
+
Mapping: "pl7.app/sequence/annotation/mapping"
|
|
4152
|
+
},
|
|
4153
|
+
IsAnnotation: "pl7.app/sequence/isAnnotation"
|
|
4154
|
+
},
|
|
4155
|
+
Table: {
|
|
4156
|
+
OrderPriority: "pl7.app/table/orderPriority"
|
|
4157
|
+
},
|
|
4158
|
+
Trace: "pl7.app/trace"
|
|
4159
|
+
}, he = z$1.object({
|
|
4160
|
+
type: z$1.nativeEnum(g),
|
|
4161
|
+
name: z$1.string(),
|
|
4162
|
+
domain: z$1.record(z$1.string(), z$1.string()).optional(),
|
|
4163
|
+
annotations: z$1.record(z$1.string(), z$1.string()).optional(),
|
|
4164
|
+
parentAxes: z$1.array(z$1.number()).optional()
|
|
4165
|
+
}).passthrough();
|
|
4166
|
+
({
|
|
4167
|
+
[y.DiscreteValues]: z$1.array(z$1.string()).or(z$1.array(z$1.number())),
|
|
4168
|
+
[y.Graph.IsVirtual]: z$1.boolean(),
|
|
4169
|
+
[y.HideDataFromUi]: z$1.boolean(),
|
|
4170
|
+
[y.IsLinkerColumn]: z$1.boolean(),
|
|
4171
|
+
[y.Max]: z$1.number(),
|
|
4172
|
+
[y.Min]: z$1.number(),
|
|
4173
|
+
[y.Parents]: z$1.array(he),
|
|
4174
|
+
[y.Sequence.Annotation.Mapping]: z$1.record(z$1.string(), z$1.string()),
|
|
4175
|
+
[y.Sequence.IsAnnotation]: z$1.boolean(),
|
|
4176
|
+
[y.Table.OrderPriority]: z$1.number(),
|
|
4177
|
+
[y.Trace]: z$1.record(z$1.string(), z$1.unknown())
|
|
4178
|
+
});
|
|
4179
|
+
function wn(e, n2) {
|
|
4180
|
+
return I(e == null ? void 0 : e.annotations, n2);
|
|
4181
|
+
}
|
|
4182
|
+
const Pn = {
|
|
4183
|
+
Label: "pl7.app/label"
|
|
4184
|
+
};
|
|
4185
|
+
function p$1(e) {
|
|
4186
|
+
const { type: n2, name: t, domain: r } = e, o = { type: n2, name: t };
|
|
4187
|
+
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
4124
4188
|
}
|
|
4125
|
-
function
|
|
4126
|
-
return e.map(
|
|
4189
|
+
function _(e) {
|
|
4190
|
+
return e.map(p$1);
|
|
4127
4191
|
}
|
|
4128
|
-
function
|
|
4129
|
-
return $
|
|
4192
|
+
function On(e) {
|
|
4193
|
+
return m$1(p$1(e));
|
|
4130
4194
|
}
|
|
4131
|
-
function
|
|
4195
|
+
function Ae$1(e, n2) {
|
|
4132
4196
|
if (e === void 0) return n2 === void 0;
|
|
4133
4197
|
if (n2 === void 0) return true;
|
|
4134
|
-
for (const
|
|
4135
|
-
if (e[
|
|
4198
|
+
for (const t in n2)
|
|
4199
|
+
if (e[t] !== n2[t]) return false;
|
|
4136
4200
|
return true;
|
|
4137
4201
|
}
|
|
4138
|
-
function
|
|
4139
|
-
return e.name === n2.name &&
|
|
4202
|
+
function we(e, n2) {
|
|
4203
|
+
return e.name === n2.name && Ae$1(e.domain, n2.domain);
|
|
4140
4204
|
}
|
|
4141
|
-
function
|
|
4142
|
-
return { ...e, src:
|
|
4205
|
+
function In(e, n2) {
|
|
4206
|
+
return { ...e, src: E(e.src, n2) };
|
|
4143
4207
|
}
|
|
4144
|
-
function
|
|
4208
|
+
function E(e, n2) {
|
|
4145
4209
|
switch (e.type) {
|
|
4146
4210
|
case "column":
|
|
4147
4211
|
return {
|
|
@@ -4161,51 +4225,51 @@
|
|
|
4161
4225
|
case "full":
|
|
4162
4226
|
return {
|
|
4163
4227
|
type: e.type,
|
|
4164
|
-
entries: e.entries.map((
|
|
4228
|
+
entries: e.entries.map((t) => E(t, n2))
|
|
4165
4229
|
};
|
|
4166
4230
|
case "outer":
|
|
4167
4231
|
return {
|
|
4168
4232
|
type: "outer",
|
|
4169
|
-
primary:
|
|
4170
|
-
secondary: e.secondary.map((
|
|
4233
|
+
primary: E(e.primary, n2),
|
|
4234
|
+
secondary: e.secondary.map((t) => E(t, n2))
|
|
4171
4235
|
};
|
|
4172
4236
|
default:
|
|
4173
|
-
|
|
4237
|
+
k$1(e);
|
|
4174
4238
|
}
|
|
4175
4239
|
}
|
|
4176
|
-
function
|
|
4177
|
-
return
|
|
4240
|
+
function Se$1(e) {
|
|
4241
|
+
return We(e);
|
|
4178
4242
|
}
|
|
4179
|
-
function
|
|
4180
|
-
return $
|
|
4243
|
+
function N(e) {
|
|
4244
|
+
return We(p$1(e));
|
|
4181
4245
|
}
|
|
4182
|
-
function
|
|
4246
|
+
function R(e, n2) {
|
|
4183
4247
|
return JSON.stringify([e, n2]);
|
|
4184
4248
|
}
|
|
4185
|
-
class
|
|
4249
|
+
class Nn {
|
|
4186
4250
|
/**
|
|
4187
4251
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4188
4252
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
4189
4253
|
*/
|
|
4190
4254
|
constructor(n2) {
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4255
|
+
b(this, "domains", /* @__PURE__ */ new Map());
|
|
4256
|
+
b(this, "axes", /* @__PURE__ */ new Map());
|
|
4257
|
+
b(this, "domainPacks", []);
|
|
4258
|
+
b(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
4195
4259
|
this.anchors = n2;
|
|
4196
|
-
const
|
|
4197
|
-
|
|
4198
|
-
for (const [
|
|
4199
|
-
for (let
|
|
4200
|
-
const
|
|
4201
|
-
this.axes.set(
|
|
4260
|
+
const t = Object.entries(n2);
|
|
4261
|
+
t.sort((r, o) => r[0].localeCompare(o[0]));
|
|
4262
|
+
for (const [r, o] of t) {
|
|
4263
|
+
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
4264
|
+
const a = o.axesSpec[i], s2 = N(a);
|
|
4265
|
+
this.axes.set(s2, { anchor: r, idx: i });
|
|
4202
4266
|
}
|
|
4203
|
-
if (
|
|
4204
|
-
const
|
|
4205
|
-
|
|
4206
|
-
for (const [
|
|
4207
|
-
const u2 =
|
|
4208
|
-
this.domains.set(u2,
|
|
4267
|
+
if (o.domain !== void 0) {
|
|
4268
|
+
const i = Object.entries(o.domain);
|
|
4269
|
+
i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
4270
|
+
for (const [a, s2] of i) {
|
|
4271
|
+
const u2 = R(a, s2);
|
|
4272
|
+
this.domains.set(u2, r);
|
|
4209
4273
|
}
|
|
4210
4274
|
}
|
|
4211
4275
|
}
|
|
@@ -4213,57 +4277,57 @@
|
|
|
4213
4277
|
/**
|
|
4214
4278
|
* Implementation of derive method
|
|
4215
4279
|
*/
|
|
4216
|
-
derive(n2,
|
|
4217
|
-
const
|
|
4280
|
+
derive(n2, t) {
|
|
4281
|
+
const r = {
|
|
4218
4282
|
name: n2.name,
|
|
4219
4283
|
axes: []
|
|
4220
4284
|
};
|
|
4221
|
-
let
|
|
4285
|
+
let o;
|
|
4222
4286
|
if (n2.domain !== void 0)
|
|
4223
4287
|
e:
|
|
4224
|
-
for (const
|
|
4225
|
-
const
|
|
4226
|
-
for (const c2 of
|
|
4288
|
+
for (const a of this.domainPacks) {
|
|
4289
|
+
const s2 = [];
|
|
4290
|
+
for (const c2 of a) {
|
|
4227
4291
|
const d = n2.domain[c2];
|
|
4228
4292
|
if (d !== void 0)
|
|
4229
|
-
|
|
4293
|
+
s2.push([c2, d]);
|
|
4230
4294
|
else
|
|
4231
4295
|
break e;
|
|
4232
4296
|
}
|
|
4233
|
-
const u2 = this.domainPackToAnchor.get(JSON.stringify(
|
|
4297
|
+
const u2 = this.domainPackToAnchor.get(JSON.stringify(s2));
|
|
4234
4298
|
if (u2 !== void 0) {
|
|
4235
|
-
|
|
4299
|
+
r.domainAnchor = u2, o = new Set(a);
|
|
4236
4300
|
break;
|
|
4237
4301
|
}
|
|
4238
4302
|
}
|
|
4239
|
-
for (const [
|
|
4240
|
-
if (
|
|
4303
|
+
for (const [a, s2] of Object.entries(n2.domain ?? {})) {
|
|
4304
|
+
if (o !== void 0 && o.has(a))
|
|
4241
4305
|
continue;
|
|
4242
|
-
const u2 =
|
|
4243
|
-
|
|
4244
|
-
}
|
|
4245
|
-
if (
|
|
4246
|
-
const
|
|
4247
|
-
return u2 === void 0 ?
|
|
4248
|
-
}), !
|
|
4249
|
-
return
|
|
4250
|
-
const
|
|
4251
|
-
for (const
|
|
4252
|
-
const [
|
|
4253
|
-
if (typeof
|
|
4254
|
-
if (
|
|
4255
|
-
throw new Error(`Axis index ${
|
|
4256
|
-
|
|
4306
|
+
const u2 = R(a, s2), c2 = this.domains.get(u2);
|
|
4307
|
+
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
|
|
4308
|
+
}
|
|
4309
|
+
if (r.axes = n2.axesSpec.map((a) => {
|
|
4310
|
+
const s2 = N(a), u2 = this.axes.get(s2);
|
|
4311
|
+
return u2 === void 0 ? p$1(a) : u2;
|
|
4312
|
+
}), !t || t.length === 0)
|
|
4313
|
+
return r;
|
|
4314
|
+
const i = [];
|
|
4315
|
+
for (const a of t) {
|
|
4316
|
+
const [s2, u2] = a;
|
|
4317
|
+
if (typeof s2 == "number") {
|
|
4318
|
+
if (s2 < 0 || s2 >= n2.axesSpec.length)
|
|
4319
|
+
throw new Error(`Axis index ${s2} is out of bounds (0-${n2.axesSpec.length - 1})`);
|
|
4320
|
+
i.push([s2, u2]);
|
|
4257
4321
|
} else {
|
|
4258
|
-
const c2 = n2.axesSpec.findIndex((d) => d.name ===
|
|
4322
|
+
const c2 = n2.axesSpec.findIndex((d) => d.name === s2);
|
|
4259
4323
|
if (c2 === -1)
|
|
4260
|
-
throw new Error(`Axis with name "${
|
|
4261
|
-
|
|
4324
|
+
throw new Error(`Axis with name "${s2}" not found in the column specification`);
|
|
4325
|
+
i.push([c2, u2]);
|
|
4262
4326
|
}
|
|
4263
4327
|
}
|
|
4264
|
-
return
|
|
4265
|
-
source:
|
|
4266
|
-
axisFilters:
|
|
4328
|
+
return i.sort((a, s2) => a[0] - s2[0]), {
|
|
4329
|
+
source: r,
|
|
4330
|
+
axisFilters: i
|
|
4267
4331
|
};
|
|
4268
4332
|
}
|
|
4269
4333
|
/**
|
|
@@ -4272,111 +4336,111 @@
|
|
|
4272
4336
|
* @param axisFilters Optional axis filters to apply to the column
|
|
4273
4337
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
4274
4338
|
*/
|
|
4275
|
-
deriveS(n2,
|
|
4276
|
-
return
|
|
4339
|
+
deriveS(n2, t) {
|
|
4340
|
+
return Se$1(this.derive(n2, t));
|
|
4277
4341
|
}
|
|
4278
4342
|
}
|
|
4279
|
-
function
|
|
4280
|
-
const
|
|
4281
|
-
if (
|
|
4282
|
-
const
|
|
4283
|
-
if (!
|
|
4284
|
-
throw new Error(`Anchor "${
|
|
4285
|
-
const
|
|
4286
|
-
|
|
4287
|
-
}
|
|
4288
|
-
if (
|
|
4289
|
-
const
|
|
4290
|
-
for (const [
|
|
4291
|
-
if (typeof
|
|
4292
|
-
|
|
4343
|
+
function Rn(e, n2, t) {
|
|
4344
|
+
const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4345
|
+
if (r.domainAnchor !== void 0) {
|
|
4346
|
+
const i = e[r.domainAnchor];
|
|
4347
|
+
if (!i)
|
|
4348
|
+
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
4349
|
+
const a = i.domain || {};
|
|
4350
|
+
r.domain = { ...a, ...r.domain }, delete r.domainAnchor;
|
|
4351
|
+
}
|
|
4352
|
+
if (r.domain) {
|
|
4353
|
+
const i = {};
|
|
4354
|
+
for (const [a, s2] of Object.entries(r.domain))
|
|
4355
|
+
if (typeof s2 == "string")
|
|
4356
|
+
i[a] = s2;
|
|
4293
4357
|
else {
|
|
4294
|
-
const u2 = e[
|
|
4358
|
+
const u2 = e[s2.anchor];
|
|
4295
4359
|
if (!u2)
|
|
4296
|
-
throw new Error(`Anchor "${
|
|
4297
|
-
if (!u2.domain || u2.domain[
|
|
4298
|
-
if (!
|
|
4299
|
-
throw new Error(`Domain key "${
|
|
4360
|
+
throw new Error(`Anchor "${s2.anchor}" not found for domain key "${a}"`);
|
|
4361
|
+
if (!u2.domain || u2.domain[a] === void 0) {
|
|
4362
|
+
if (!o)
|
|
4363
|
+
throw new Error(`Domain key "${a}" not found in anchor "${s2.anchor}"`);
|
|
4300
4364
|
continue;
|
|
4301
4365
|
}
|
|
4302
|
-
|
|
4366
|
+
i[a] = u2.domain[a];
|
|
4303
4367
|
}
|
|
4304
|
-
|
|
4368
|
+
r.domain = i;
|
|
4305
4369
|
}
|
|
4306
|
-
return
|
|
4370
|
+
return r.axes && (r.axes = r.axes.map((i) => Ee(e, i))), r;
|
|
4307
4371
|
}
|
|
4308
|
-
function
|
|
4309
|
-
if (!
|
|
4372
|
+
function Ee(e, n2) {
|
|
4373
|
+
if (!Oe$1(n2))
|
|
4310
4374
|
return n2;
|
|
4311
|
-
const
|
|
4312
|
-
if (!
|
|
4313
|
-
throw new Error(`Anchor "${
|
|
4375
|
+
const t = n2.anchor, r = e[t];
|
|
4376
|
+
if (!r)
|
|
4377
|
+
throw new Error(`Anchor "${t}" not found for axis reference`);
|
|
4314
4378
|
if ("idx" in n2) {
|
|
4315
|
-
if (n2.idx < 0 || n2.idx >=
|
|
4316
|
-
throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${
|
|
4317
|
-
return
|
|
4379
|
+
if (n2.idx < 0 || n2.idx >= r.axesSpec.length)
|
|
4380
|
+
throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${t}"`);
|
|
4381
|
+
return r.axesSpec[n2.idx];
|
|
4318
4382
|
} else if ("name" in n2) {
|
|
4319
|
-
const
|
|
4320
|
-
if (
|
|
4321
|
-
throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${
|
|
4322
|
-
if (
|
|
4323
|
-
throw new Error(`Axis with name "${n2.name}" not found in anchor "${
|
|
4324
|
-
return
|
|
4383
|
+
const o = r.axesSpec.filter((i) => i.name === n2.name);
|
|
4384
|
+
if (o.length > 1)
|
|
4385
|
+
throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${t}"`);
|
|
4386
|
+
if (o.length === 0)
|
|
4387
|
+
throw new Error(`Axis with name "${n2.name}" not found in anchor "${t}"`);
|
|
4388
|
+
return o[0];
|
|
4325
4389
|
} else if ("id" in n2) {
|
|
4326
|
-
const
|
|
4327
|
-
if (
|
|
4328
|
-
throw new Error(`Multiple matching axes found for matcher in anchor "${
|
|
4329
|
-
if (
|
|
4330
|
-
throw new Error(`No matching axis found for matcher in anchor "${
|
|
4331
|
-
return
|
|
4390
|
+
const o = r.axesSpec.filter((i) => we(n2.id, p$1(i)));
|
|
4391
|
+
if (o.length > 1)
|
|
4392
|
+
throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
|
|
4393
|
+
if (o.length === 0)
|
|
4394
|
+
throw new Error(`No matching axis found for matcher in anchor "${t}"`);
|
|
4395
|
+
return o[0];
|
|
4332
4396
|
}
|
|
4333
4397
|
throw new Error("Unsupported axis reference type");
|
|
4334
4398
|
}
|
|
4335
|
-
function
|
|
4399
|
+
function Oe$1(e) {
|
|
4336
4400
|
return typeof e == "object" && "anchor" in e;
|
|
4337
4401
|
}
|
|
4338
|
-
function
|
|
4402
|
+
function w$1(e) {
|
|
4339
4403
|
return e.kind === "PColumn";
|
|
4340
4404
|
}
|
|
4341
|
-
function
|
|
4342
|
-
return
|
|
4405
|
+
function Fe(e) {
|
|
4406
|
+
return w$1(e.spec);
|
|
4343
4407
|
}
|
|
4344
|
-
function
|
|
4345
|
-
if (!
|
|
4408
|
+
function Vn(e) {
|
|
4409
|
+
if (!Fe(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4346
4410
|
return e;
|
|
4347
4411
|
}
|
|
4348
|
-
function
|
|
4412
|
+
function Bn(e, n2) {
|
|
4349
4413
|
return e === void 0 ? void 0 : {
|
|
4350
4414
|
...e,
|
|
4351
4415
|
data: n2(e.data)
|
|
4352
4416
|
};
|
|
4353
4417
|
}
|
|
4354
|
-
function
|
|
4355
|
-
const n2 = /* @__PURE__ */ new Map(),
|
|
4356
|
-
switch (
|
|
4418
|
+
function Mn(e) {
|
|
4419
|
+
const n2 = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4420
|
+
switch (r.type) {
|
|
4357
4421
|
case "column":
|
|
4358
|
-
n2.set(
|
|
4422
|
+
n2.set(r.column.id, r.column);
|
|
4359
4423
|
return;
|
|
4360
4424
|
case "slicedColumn":
|
|
4361
|
-
n2.set(
|
|
4425
|
+
n2.set(r.column.id, r.column);
|
|
4362
4426
|
return;
|
|
4363
4427
|
case "inlineColumn":
|
|
4364
4428
|
return;
|
|
4365
4429
|
case "full":
|
|
4366
4430
|
case "inner":
|
|
4367
|
-
for (const
|
|
4431
|
+
for (const o of r.entries) t(o);
|
|
4368
4432
|
return;
|
|
4369
4433
|
case "outer":
|
|
4370
|
-
r
|
|
4371
|
-
for (const
|
|
4434
|
+
t(r.primary);
|
|
4435
|
+
for (const o of r.secondary) t(o);
|
|
4372
4436
|
return;
|
|
4373
4437
|
default:
|
|
4374
|
-
|
|
4438
|
+
k$1(r);
|
|
4375
4439
|
}
|
|
4376
4440
|
};
|
|
4377
|
-
return
|
|
4441
|
+
return t(e), [...n2.values()];
|
|
4378
4442
|
}
|
|
4379
|
-
function
|
|
4443
|
+
function T(e, n2) {
|
|
4380
4444
|
if (e.name !== void 0 && e.name !== n2.name)
|
|
4381
4445
|
return false;
|
|
4382
4446
|
if (e.type !== void 0) {
|
|
@@ -4387,14 +4451,14 @@
|
|
|
4387
4451
|
return false;
|
|
4388
4452
|
}
|
|
4389
4453
|
if (e.domain !== void 0) {
|
|
4390
|
-
const
|
|
4391
|
-
for (const [
|
|
4392
|
-
if (r
|
|
4454
|
+
const t = n2.domain || {};
|
|
4455
|
+
for (const [r, o] of Object.entries(e.domain))
|
|
4456
|
+
if (t[r] !== o)
|
|
4393
4457
|
return false;
|
|
4394
4458
|
}
|
|
4395
4459
|
return true;
|
|
4396
4460
|
}
|
|
4397
|
-
function
|
|
4461
|
+
function $$1(e, n2) {
|
|
4398
4462
|
if (n2.name !== void 0 && e.name !== n2.name || n2.namePattern !== void 0 && !new RegExp(n2.namePattern).test(e.name))
|
|
4399
4463
|
return false;
|
|
4400
4464
|
if (n2.type !== void 0) {
|
|
@@ -4405,50 +4469,50 @@
|
|
|
4405
4469
|
return false;
|
|
4406
4470
|
}
|
|
4407
4471
|
if (n2.domain !== void 0) {
|
|
4408
|
-
const
|
|
4409
|
-
for (const [
|
|
4410
|
-
if (r
|
|
4472
|
+
const t = e.domain || {};
|
|
4473
|
+
for (const [r, o] of Object.entries(n2.domain))
|
|
4474
|
+
if (t[r] !== o)
|
|
4411
4475
|
return false;
|
|
4412
4476
|
}
|
|
4413
4477
|
if (n2.axes !== void 0) {
|
|
4414
|
-
const
|
|
4478
|
+
const t = e.axesSpec.map(p$1);
|
|
4415
4479
|
if (n2.partialAxesMatch) {
|
|
4416
|
-
for (const
|
|
4417
|
-
if (!
|
|
4480
|
+
for (const r of n2.axes)
|
|
4481
|
+
if (!t.some((o) => T(r, o)))
|
|
4418
4482
|
return false;
|
|
4419
4483
|
} else {
|
|
4420
|
-
if (
|
|
4484
|
+
if (t.length !== n2.axes.length)
|
|
4421
4485
|
return false;
|
|
4422
|
-
for (let
|
|
4423
|
-
if (!
|
|
4486
|
+
for (let r = 0; r < n2.axes.length; r++)
|
|
4487
|
+
if (!T(n2.axes[r], t[r]))
|
|
4424
4488
|
return false;
|
|
4425
4489
|
}
|
|
4426
4490
|
}
|
|
4427
4491
|
if (n2.annotations !== void 0) {
|
|
4428
|
-
const
|
|
4429
|
-
for (const [
|
|
4430
|
-
if (r
|
|
4492
|
+
const t = e.annotations || {};
|
|
4493
|
+
for (const [r, o] of Object.entries(n2.annotations))
|
|
4494
|
+
if (t[r] !== o)
|
|
4431
4495
|
return false;
|
|
4432
4496
|
}
|
|
4433
4497
|
if (n2.annotationPatterns !== void 0) {
|
|
4434
|
-
const
|
|
4435
|
-
for (const [
|
|
4436
|
-
const
|
|
4437
|
-
if (
|
|
4498
|
+
const t = e.annotations || {};
|
|
4499
|
+
for (const [r, o] of Object.entries(n2.annotationPatterns)) {
|
|
4500
|
+
const i = t[r];
|
|
4501
|
+
if (i === void 0 || !new RegExp(o).test(i))
|
|
4438
4502
|
return false;
|
|
4439
4503
|
}
|
|
4440
4504
|
}
|
|
4441
4505
|
return true;
|
|
4442
4506
|
}
|
|
4443
|
-
function
|
|
4444
|
-
return Array.isArray(e) ? (n2) => e.some((
|
|
4507
|
+
function Un(e) {
|
|
4508
|
+
return Array.isArray(e) ? (n2) => e.some((t) => w$1(n2) && $$1(n2, t)) : (n2) => w$1(n2) && $$1(n2, e);
|
|
4445
4509
|
}
|
|
4446
|
-
function
|
|
4510
|
+
function qn(e) {
|
|
4447
4511
|
const n2 = {
|
|
4448
4512
|
kind: e.kind,
|
|
4449
4513
|
name: e.name
|
|
4450
4514
|
};
|
|
4451
|
-
return e.domain !== void 0 && (n2.domain = e.domain),
|
|
4515
|
+
return e.domain !== void 0 && (n2.domain = e.domain), w$1(e) && (n2.axesSpec = _(e.axesSpec)), We(n2);
|
|
4452
4516
|
}
|
|
4453
4517
|
z$1.object({
|
|
4454
4518
|
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4458,25 +4522,25 @@
|
|
|
4458
4522
|
}).describe(
|
|
4459
4523
|
"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."
|
|
4460
4524
|
).readonly();
|
|
4461
|
-
function
|
|
4525
|
+
function Hn(e) {
|
|
4462
4526
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === true && "blockId" in e && "name" in e;
|
|
4463
4527
|
}
|
|
4464
|
-
function
|
|
4528
|
+
function _n(e, n2 = true) {
|
|
4465
4529
|
if (n2)
|
|
4466
4530
|
return {
|
|
4467
4531
|
...e,
|
|
4468
4532
|
requireEnrichments: true
|
|
4469
4533
|
};
|
|
4470
4534
|
{
|
|
4471
|
-
const { requireEnrichments:
|
|
4472
|
-
return
|
|
4535
|
+
const { requireEnrichments: t, ...r } = e;
|
|
4536
|
+
return r;
|
|
4473
4537
|
}
|
|
4474
4538
|
}
|
|
4475
|
-
function
|
|
4539
|
+
function Xn(e, n2) {
|
|
4476
4540
|
return e.ok ? { ok: true, value: n2(e.value) } : e;
|
|
4477
4541
|
}
|
|
4478
|
-
const
|
|
4479
|
-
z$1.string().length(
|
|
4542
|
+
const De$1 = 24;
|
|
4543
|
+
z$1.string().length(De$1).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4480
4544
|
var stringify = { exports: {} };
|
|
4481
4545
|
var hasRequiredStringify;
|
|
4482
4546
|
function requireStringify() {
|
|
@@ -4536,46 +4600,46 @@
|
|
|
4536
4600
|
cause: z$1.lazy(() => n).optional(),
|
|
4537
4601
|
errors: z$1.lazy(() => n.array()).optional()
|
|
4538
4602
|
});
|
|
4539
|
-
var
|
|
4540
|
-
var
|
|
4541
|
-
var V = (t, e, n2) =>
|
|
4603
|
+
var at = Object.defineProperty;
|
|
4604
|
+
var lt = (t, e, n2) => e in t ? at(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4605
|
+
var V = (t, e, n2) => lt(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4542
4606
|
function se(t) {
|
|
4543
4607
|
return { type: "Immediate", value: t };
|
|
4544
4608
|
}
|
|
4545
|
-
function
|
|
4609
|
+
function Vt() {
|
|
4546
4610
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4547
4611
|
}
|
|
4548
|
-
function
|
|
4612
|
+
function He(t) {
|
|
4549
4613
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4550
4614
|
return globalThis.getPlatforma(t);
|
|
4551
4615
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4552
4616
|
throw new Error("Can't get platforma instance.");
|
|
4553
4617
|
}
|
|
4554
|
-
function
|
|
4618
|
+
function kt() {
|
|
4555
4619
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4556
4620
|
}
|
|
4557
|
-
function
|
|
4621
|
+
function v() {
|
|
4558
4622
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4559
4623
|
throw new Error("Not in config rendering context");
|
|
4560
4624
|
}
|
|
4561
4625
|
function G(t, e) {
|
|
4562
|
-
const n2 =
|
|
4626
|
+
const n2 = kt();
|
|
4563
4627
|
if (n2 === void 0) return false;
|
|
4564
4628
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4565
4629
|
return n2.callbackRegistry[t] = e, true;
|
|
4566
4630
|
}
|
|
4567
|
-
const
|
|
4568
|
-
function
|
|
4569
|
-
t in
|
|
4570
|
-
for (const r of
|
|
4631
|
+
const me = /* @__PURE__ */ new Map();
|
|
4632
|
+
function Dt(t, e) {
|
|
4633
|
+
t in v().callbackRegistry || (v().callbackRegistry[t] = (n2) => {
|
|
4634
|
+
for (const r of me.get(t))
|
|
4571
4635
|
r(n2);
|
|
4572
|
-
},
|
|
4636
|
+
}, me.set(t, [])), me.get(t).push(e);
|
|
4573
4637
|
}
|
|
4574
4638
|
class L {
|
|
4575
4639
|
constructor(e, n2 = (r) => r) {
|
|
4576
4640
|
V(this, "isResolved", false);
|
|
4577
4641
|
V(this, "resolvedValue");
|
|
4578
|
-
this.handle = e, this.postProcess = n2,
|
|
4642
|
+
this.handle = e, this.postProcess = n2, Dt(e, (r) => {
|
|
4579
4643
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4580
4644
|
});
|
|
4581
4645
|
}
|
|
@@ -4592,10 +4656,10 @@
|
|
|
4592
4656
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4593
4657
|
}
|
|
4594
4658
|
}
|
|
4595
|
-
function
|
|
4659
|
+
function Ce(t, e) {
|
|
4596
4660
|
return t === void 0 ? void 0 : e(t);
|
|
4597
4661
|
}
|
|
4598
|
-
class
|
|
4662
|
+
class k {
|
|
4599
4663
|
constructor(e, n2) {
|
|
4600
4664
|
this.handle = e, this.resolvePath = n2;
|
|
4601
4665
|
}
|
|
@@ -4634,47 +4698,47 @@
|
|
|
4634
4698
|
...this.resolvePath,
|
|
4635
4699
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4636
4700
|
];
|
|
4637
|
-
return
|
|
4638
|
-
|
|
4639
|
-
(i) => new
|
|
4701
|
+
return Ce(
|
|
4702
|
+
v().resolveWithCommon(this.handle, e, ...n2),
|
|
4703
|
+
(i) => new k(i, r)
|
|
4640
4704
|
);
|
|
4641
4705
|
}
|
|
4642
4706
|
get resourceType() {
|
|
4643
|
-
return
|
|
4707
|
+
return v().getResourceType(this.handle);
|
|
4644
4708
|
}
|
|
4645
4709
|
getInputsLocked() {
|
|
4646
|
-
return
|
|
4710
|
+
return v().getInputsLocked(this.handle);
|
|
4647
4711
|
}
|
|
4648
4712
|
getOutputsLocked() {
|
|
4649
|
-
return
|
|
4713
|
+
return v().getOutputsLocked(this.handle);
|
|
4650
4714
|
}
|
|
4651
4715
|
getIsReadyOrError() {
|
|
4652
|
-
return
|
|
4716
|
+
return v().getIsReadyOrError(this.handle);
|
|
4653
4717
|
}
|
|
4654
4718
|
getIsFinal() {
|
|
4655
|
-
return
|
|
4719
|
+
return v().getIsFinal(this.handle);
|
|
4656
4720
|
}
|
|
4657
4721
|
getError() {
|
|
4658
4722
|
const e = [...this.resolvePath, "error"];
|
|
4659
|
-
return
|
|
4660
|
-
|
|
4661
|
-
(n2) => new
|
|
4723
|
+
return Ce(
|
|
4724
|
+
v().getError(this.handle),
|
|
4725
|
+
(n2) => new k(n2, e)
|
|
4662
4726
|
);
|
|
4663
4727
|
}
|
|
4664
4728
|
listInputFields() {
|
|
4665
|
-
return
|
|
4729
|
+
return v().listInputFields(this.handle);
|
|
4666
4730
|
}
|
|
4667
4731
|
listOutputFields() {
|
|
4668
|
-
return
|
|
4732
|
+
return v().listOutputFields(this.handle);
|
|
4669
4733
|
}
|
|
4670
4734
|
listDynamicFields() {
|
|
4671
|
-
return
|
|
4735
|
+
return v().listDynamicFields(this.handle);
|
|
4672
4736
|
}
|
|
4673
4737
|
getKeyValueBase64(e) {
|
|
4674
|
-
return
|
|
4738
|
+
return v().getKeyValueBase64(this.handle, e);
|
|
4675
4739
|
}
|
|
4676
4740
|
getKeyValueAsString(e) {
|
|
4677
|
-
return
|
|
4741
|
+
return v().getKeyValueAsString(this.handle, e);
|
|
4678
4742
|
}
|
|
4679
4743
|
getKeyValueAsJson(e) {
|
|
4680
4744
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4682,10 +4746,10 @@
|
|
|
4682
4746
|
return JSON.parse(n2);
|
|
4683
4747
|
}
|
|
4684
4748
|
getDataBase64() {
|
|
4685
|
-
return
|
|
4749
|
+
return v().getDataBase64(this.handle);
|
|
4686
4750
|
}
|
|
4687
4751
|
getDataAsString() {
|
|
4688
|
-
return
|
|
4752
|
+
return v().getDataAsString(this.handle);
|
|
4689
4753
|
}
|
|
4690
4754
|
getDataAsJson() {
|
|
4691
4755
|
const e = this.getDataAsString();
|
|
@@ -4698,7 +4762,7 @@
|
|
|
4698
4762
|
getPColumns(e = false, n2 = "") {
|
|
4699
4763
|
const r = this.parsePObjectCollection(e, n2);
|
|
4700
4764
|
return r === void 0 ? void 0 : Object.entries(r).map(([, o]) => {
|
|
4701
|
-
if (!
|
|
4765
|
+
if (!Fe(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
|
|
4702
4766
|
return o;
|
|
4703
4767
|
});
|
|
4704
4768
|
}
|
|
@@ -4706,7 +4770,7 @@
|
|
|
4706
4770
|
*
|
|
4707
4771
|
*/
|
|
4708
4772
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4709
|
-
const r =
|
|
4773
|
+
const r = v().parsePObjectCollection(
|
|
4710
4774
|
this.handle,
|
|
4711
4775
|
e,
|
|
4712
4776
|
n2,
|
|
@@ -4716,19 +4780,19 @@
|
|
|
4716
4780
|
const i = {};
|
|
4717
4781
|
for (const [o, s2] of Object.entries(r)) {
|
|
4718
4782
|
const a = [...this.resolvePath, o];
|
|
4719
|
-
i[o] =
|
|
4783
|
+
i[o] = Bn(s2, (l2) => new k(l2, a));
|
|
4720
4784
|
}
|
|
4721
4785
|
return i;
|
|
4722
4786
|
}
|
|
4723
4787
|
getFileContentAsBase64(e) {
|
|
4724
|
-
return new L(
|
|
4788
|
+
return new L(v().getBlobContentAsBase64(this.handle, e));
|
|
4725
4789
|
}
|
|
4726
4790
|
getFileContentAsString(e) {
|
|
4727
|
-
return new L(
|
|
4791
|
+
return new L(v().getBlobContentAsString(this.handle, e));
|
|
4728
4792
|
}
|
|
4729
4793
|
getFileContentAsJson(e) {
|
|
4730
4794
|
return new L(
|
|
4731
|
-
|
|
4795
|
+
v().getBlobContentAsString(this.handle, e)
|
|
4732
4796
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4733
4797
|
}
|
|
4734
4798
|
/**
|
|
@@ -4747,7 +4811,7 @@
|
|
|
4747
4811
|
* @returns downloaded file handle
|
|
4748
4812
|
*/
|
|
4749
4813
|
getFileHandle() {
|
|
4750
|
-
return new L(
|
|
4814
|
+
return new L(v().getDownloadedBlobContentHandle(this.handle));
|
|
4751
4815
|
}
|
|
4752
4816
|
/**
|
|
4753
4817
|
* @deprecated use getFileHandle
|
|
@@ -4759,7 +4823,7 @@
|
|
|
4759
4823
|
* @returns downloaded file handle
|
|
4760
4824
|
*/
|
|
4761
4825
|
getRemoteFileHandle() {
|
|
4762
|
-
return new L(
|
|
4826
|
+
return new L(v().getOnDemandBlobContentHandle(this.handle));
|
|
4763
4827
|
}
|
|
4764
4828
|
/**
|
|
4765
4829
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4771,22 +4835,22 @@
|
|
|
4771
4835
|
* @returns the url to the extracted folder
|
|
4772
4836
|
*/
|
|
4773
4837
|
extractArchiveAndGetURL(e) {
|
|
4774
|
-
return new L(
|
|
4838
|
+
return new L(v().extractArchiveAndGetURL(this.handle, e));
|
|
4775
4839
|
}
|
|
4776
4840
|
getImportProgress() {
|
|
4777
|
-
return new L(
|
|
4841
|
+
return new L(v().getImportProgress(this.handle));
|
|
4778
4842
|
}
|
|
4779
4843
|
getLastLogs(e) {
|
|
4780
|
-
return new L(
|
|
4844
|
+
return new L(v().getLastLogs(this.handle, e));
|
|
4781
4845
|
}
|
|
4782
4846
|
getProgressLog(e) {
|
|
4783
|
-
return new L(
|
|
4847
|
+
return new L(v().getProgressLog(this.handle, e));
|
|
4784
4848
|
}
|
|
4785
4849
|
getProgressLogWithInfo(e) {
|
|
4786
|
-
return new L(
|
|
4850
|
+
return new L(v().getProgressLogWithInfo(this.handle, e));
|
|
4787
4851
|
}
|
|
4788
4852
|
getLogHandle() {
|
|
4789
|
-
return new L(
|
|
4853
|
+
return new L(v().getLogHandle(this.handle));
|
|
4790
4854
|
}
|
|
4791
4855
|
allFieldsResolved(e = "Input") {
|
|
4792
4856
|
switch (e) {
|
|
@@ -4810,100 +4874,99 @@
|
|
|
4810
4874
|
if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
|
|
4811
4875
|
return;
|
|
4812
4876
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4813
|
-
(
|
|
4877
|
+
(c2) => [c2, this.resolve({ field: c2, assertFieldType: r })]
|
|
4814
4878
|
);
|
|
4815
|
-
return o && (l2 = l2.filter((
|
|
4879
|
+
return o && (l2 = l2.filter((c2) => c2[1] !== void 0)), l2.map(([c2, m2]) => s2(c2, m2));
|
|
4816
4880
|
}
|
|
4817
4881
|
}
|
|
4818
|
-
const
|
|
4819
|
-
const
|
|
4882
|
+
const ze = "staging", Xe = "main";
|
|
4883
|
+
const Nt = z$1.object({
|
|
4820
4884
|
type: z$1.string(),
|
|
4821
4885
|
importance: z$1.number().optional(),
|
|
4822
4886
|
id: z$1.string().optional(),
|
|
4823
4887
|
label: z$1.string()
|
|
4824
|
-
}),
|
|
4825
|
-
function
|
|
4826
|
-
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s2 = t.map((
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
...
|
|
4833
|
-
...
|
|
4834
|
-
...C ?? []
|
|
4888
|
+
}), Ut = z$1.array(Nt), Kt = 1e-3, qt = "__LABEL__", De = "__LABEL__@1";
|
|
4889
|
+
function Qe(t, e, n2 = {}) {
|
|
4890
|
+
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s2 = t.map((f) => {
|
|
4891
|
+
const y$1 = e(f);
|
|
4892
|
+
let p2, g2, P;
|
|
4893
|
+
"spec" in y$1 && typeof y$1.spec == "object" ? (p2 = y$1.spec, g2 = y$1.prefixTrace, P = y$1.suffixTrace) : p2 = y$1;
|
|
4894
|
+
const E2 = wn(p2, y.Label), x = wn(p2, y.Trace), T2 = (x ? Ut.safeParse(me$1(x)).data : void 0) ?? [], S = [
|
|
4895
|
+
...g2 ?? [],
|
|
4896
|
+
...T2,
|
|
4897
|
+
...P ?? []
|
|
4835
4898
|
];
|
|
4836
4899
|
if (E2 !== void 0) {
|
|
4837
|
-
const
|
|
4838
|
-
n2.addLabelAsSuffix ?
|
|
4839
|
-
}
|
|
4840
|
-
const
|
|
4841
|
-
for (let
|
|
4842
|
-
const { type:
|
|
4843
|
-
|
|
4844
|
-
const
|
|
4845
|
-
o.set(
|
|
4846
|
-
|
|
4900
|
+
const u2 = { label: E2, type: qt, importance: -2 };
|
|
4901
|
+
n2.addLabelAsSuffix ? S.push(u2) : S.splice(0, 0, u2);
|
|
4902
|
+
}
|
|
4903
|
+
const C = [], I2 = /* @__PURE__ */ new Map();
|
|
4904
|
+
for (let u2 = S.length - 1; u2 >= 0; --u2) {
|
|
4905
|
+
const { type: b2 } = S[u2], K = S[u2].importance ?? 0, B = (I2.get(b2) ?? 0) + 1;
|
|
4906
|
+
I2.set(b2, B);
|
|
4907
|
+
const O = `${b2}@${B}`;
|
|
4908
|
+
o.set(O, (o.get(O) ?? 0) + 1), r.set(
|
|
4909
|
+
O,
|
|
4847
4910
|
Math.max(
|
|
4848
|
-
r.get(
|
|
4849
|
-
K - (
|
|
4911
|
+
r.get(O) ?? Number.NEGATIVE_INFINITY,
|
|
4912
|
+
K - (S.length - u2) * Kt
|
|
4850
4913
|
)
|
|
4851
|
-
),
|
|
4914
|
+
), C.push({ ...S[u2], fullType: O, occurrenceIndex: B });
|
|
4852
4915
|
}
|
|
4853
|
-
return
|
|
4854
|
-
value:
|
|
4916
|
+
return C.reverse(), {
|
|
4917
|
+
value: f,
|
|
4855
4918
|
spec: p2,
|
|
4856
4919
|
label: E2,
|
|
4857
|
-
fullTrace:
|
|
4920
|
+
fullTrace: C
|
|
4858
4921
|
};
|
|
4859
|
-
}), a = [], l2 = [],
|
|
4860
|
-
|
|
4861
|
-
for (const [
|
|
4862
|
-
|
|
4863
|
-
const
|
|
4922
|
+
}), a = [], l2 = [], c2 = [...r];
|
|
4923
|
+
c2.sort(([, f], [, y2]) => y2 - f);
|
|
4924
|
+
for (const [f] of c2)
|
|
4925
|
+
f.endsWith("@1") || o.get(f) === t.length ? a.push(f) : l2.push(f);
|
|
4926
|
+
const m2 = (f, y2 = false) => {
|
|
4864
4927
|
const p2 = [];
|
|
4865
|
-
for (let
|
|
4866
|
-
const
|
|
4928
|
+
for (let g2 = 0; g2 < s2.length; g2++) {
|
|
4929
|
+
const P = s2[g2], E2 = P.fullTrace.filter((S) => f.has(S.fullType) || i && i.has(S.type));
|
|
4867
4930
|
if (E2.length === 0)
|
|
4868
|
-
if (
|
|
4931
|
+
if (y2)
|
|
4869
4932
|
p2.push({
|
|
4870
4933
|
label: "Unlabeled",
|
|
4871
|
-
value:
|
|
4934
|
+
value: P.value
|
|
4872
4935
|
});
|
|
4873
4936
|
else return;
|
|
4874
|
-
const
|
|
4937
|
+
const x = E2.map((S) => S.label), T2 = n2.separator ?? " / ";
|
|
4875
4938
|
p2.push({
|
|
4876
|
-
label:
|
|
4877
|
-
value:
|
|
4939
|
+
label: x.join(T2),
|
|
4940
|
+
value: P.value
|
|
4878
4941
|
});
|
|
4879
4942
|
}
|
|
4880
4943
|
return p2;
|
|
4881
4944
|
};
|
|
4882
4945
|
if (a.length === 0) {
|
|
4883
4946
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4884
|
-
return
|
|
4885
|
-
}
|
|
4886
|
-
let
|
|
4887
|
-
for (;
|
|
4888
|
-
const
|
|
4889
|
-
n2.includeNativeLabel &&
|
|
4890
|
-
for (let p2 = 0; p2 <
|
|
4891
|
-
|
|
4892
|
-
const
|
|
4893
|
-
if (
|
|
4894
|
-
|
|
4895
|
-
}
|
|
4896
|
-
return
|
|
4947
|
+
return m2(new Set(De), true);
|
|
4948
|
+
}
|
|
4949
|
+
let d = 0, h = -1;
|
|
4950
|
+
for (; d < a.length; ) {
|
|
4951
|
+
const f = /* @__PURE__ */ new Set();
|
|
4952
|
+
n2.includeNativeLabel && f.add(De);
|
|
4953
|
+
for (let p2 = 0; p2 < d; ++p2) f.add(a[p2]);
|
|
4954
|
+
h >= 0 && f.add(a[h]);
|
|
4955
|
+
const y2 = m2(f);
|
|
4956
|
+
if (y2 !== void 0 && new Set(y2.map((p2) => p2.label)).size === t.length) return y2;
|
|
4957
|
+
h++, h >= a.length && (d++, h = d);
|
|
4958
|
+
}
|
|
4959
|
+
return m2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4897
4960
|
}
|
|
4898
|
-
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned",
|
|
4899
|
-
const
|
|
4961
|
+
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", $ = ee + "BinaryPartitioned", Ze = ee + "Partitioned/", ce = Ze + "JsonPartitioned", z = Ze + "BinaryPartitioned";
|
|
4962
|
+
const Se = (t) => {
|
|
4900
4963
|
if (t.endsWith(".index"))
|
|
4901
4964
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
4902
4965
|
if (t.endsWith(".values"))
|
|
4903
4966
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4904
4967
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4905
4968
|
};
|
|
4906
|
-
function
|
|
4969
|
+
function jt(t) {
|
|
4907
4970
|
if (!t) return;
|
|
4908
4971
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4909
4972
|
let i = 0;
|
|
@@ -4915,7 +4978,7 @@
|
|
|
4915
4978
|
i = n2.partitionKeyLength + n2.keyLength;
|
|
4916
4979
|
break;
|
|
4917
4980
|
case H:
|
|
4918
|
-
case
|
|
4981
|
+
case $:
|
|
4919
4982
|
i = n2.partitionKeyLength;
|
|
4920
4983
|
break;
|
|
4921
4984
|
case z:
|
|
@@ -4926,9 +4989,9 @@
|
|
|
4926
4989
|
switch (e) {
|
|
4927
4990
|
case le:
|
|
4928
4991
|
case H:
|
|
4929
|
-
case
|
|
4992
|
+
case $:
|
|
4930
4993
|
for (let o of t.listInputFields()) {
|
|
4931
|
-
e ===
|
|
4994
|
+
e === $ && (o = Se(o).baseKey);
|
|
4932
4995
|
const s2 = [...JSON.parse(o)];
|
|
4933
4996
|
r.push(s2);
|
|
4934
4997
|
}
|
|
@@ -4940,16 +5003,16 @@
|
|
|
4940
5003
|
const s2 = [...JSON.parse(o)], a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4941
5004
|
if (a !== void 0)
|
|
4942
5005
|
for (let l2 of a.listInputFields()) {
|
|
4943
|
-
e === z && (l2 =
|
|
4944
|
-
const
|
|
4945
|
-
r.push(
|
|
5006
|
+
e === z && (l2 = Se(l2).baseKey);
|
|
5007
|
+
const c2 = [...s2, ...JSON.parse(l2)];
|
|
5008
|
+
r.push(c2);
|
|
4946
5009
|
}
|
|
4947
5010
|
}
|
|
4948
5011
|
break;
|
|
4949
5012
|
}
|
|
4950
5013
|
return { data: r, keyLength: i };
|
|
4951
5014
|
}
|
|
4952
|
-
function
|
|
5015
|
+
function Mt(t) {
|
|
4953
5016
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4954
5017
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4955
5018
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4968,11 +5031,11 @@
|
|
|
4968
5031
|
}
|
|
4969
5032
|
return r.map((i) => Array.from(i.values()));
|
|
4970
5033
|
}
|
|
4971
|
-
function
|
|
5034
|
+
function $t(t) {
|
|
4972
5035
|
if (t === void 0) return;
|
|
4973
|
-
if (
|
|
4974
|
-
return
|
|
4975
|
-
const e =
|
|
5036
|
+
if (ue$1(t))
|
|
5037
|
+
return Mt(t);
|
|
5038
|
+
const e = jt(t);
|
|
4976
5039
|
if (!e) return;
|
|
4977
5040
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4978
5041
|
for (let o = 0; o < r; ++o)
|
|
@@ -4985,7 +5048,7 @@
|
|
|
4985
5048
|
}
|
|
4986
5049
|
return i.map((o) => Array.from(o.values()));
|
|
4987
5050
|
}
|
|
4988
|
-
function
|
|
5051
|
+
function Pe(t, e = []) {
|
|
4989
5052
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4990
5053
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4991
5054
|
if (e.length > 0 && (n2 === ce || n2 === z))
|
|
@@ -5010,15 +5073,15 @@
|
|
|
5010
5073
|
parts: i
|
|
5011
5074
|
};
|
|
5012
5075
|
}
|
|
5013
|
-
case
|
|
5076
|
+
case $: {
|
|
5014
5077
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
5015
5078
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
5016
5079
|
const i = [], o = /* @__PURE__ */ new Map();
|
|
5017
5080
|
for (const s2 of t.listInputFields()) {
|
|
5018
|
-
const a =
|
|
5081
|
+
const a = Se(s2), l2 = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
5019
5082
|
if (l2 === void 0) return;
|
|
5020
|
-
let
|
|
5021
|
-
|
|
5083
|
+
let c2 = o.get(a.baseKey);
|
|
5084
|
+
c2 || (c2 = {}, o.set(a.baseKey, c2)), a.type === "index" ? c2.index = l2 : c2.values = l2;
|
|
5022
5085
|
}
|
|
5023
5086
|
for (const [s2, a] of o.entries()) {
|
|
5024
5087
|
if (!a.index || !a.values) return;
|
|
@@ -5046,7 +5109,7 @@
|
|
|
5046
5109
|
if (a === void 0) return;
|
|
5047
5110
|
if (a.resourceType.name !== H)
|
|
5048
5111
|
throw new Error(`Expected ${H} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5049
|
-
const l2 =
|
|
5112
|
+
const l2 = Pe(a, JSON.parse(s2));
|
|
5050
5113
|
if (l2 === void 0) return;
|
|
5051
5114
|
if (l2.type !== "JsonPartitioned")
|
|
5052
5115
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5065,9 +5128,9 @@
|
|
|
5065
5128
|
for (const s2 of t.listInputFields()) {
|
|
5066
5129
|
const a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
5067
5130
|
if (a === void 0) return;
|
|
5068
|
-
if (a.resourceType.name !==
|
|
5069
|
-
throw new Error(`Expected ${
|
|
5070
|
-
const l2 =
|
|
5131
|
+
if (a.resourceType.name !== $)
|
|
5132
|
+
throw new Error(`Expected ${$} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5133
|
+
const l2 = Pe(a, JSON.parse(s2));
|
|
5071
5134
|
if (l2 === void 0) return;
|
|
5072
5135
|
if (l2.type !== "BinaryPartitioned")
|
|
5073
5136
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5083,15 +5146,15 @@
|
|
|
5083
5146
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5084
5147
|
}
|
|
5085
5148
|
}
|
|
5086
|
-
function
|
|
5149
|
+
function Jt(t) {
|
|
5087
5150
|
if (t !== void 0) {
|
|
5088
|
-
if (
|
|
5089
|
-
if (
|
|
5090
|
-
if (t instanceof
|
|
5151
|
+
if (ue$1(t)) return t;
|
|
5152
|
+
if (Qe$1(t)) return en$1(t);
|
|
5153
|
+
if (t instanceof k) return Pe(t);
|
|
5091
5154
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5092
5155
|
}
|
|
5093
5156
|
}
|
|
5094
|
-
function
|
|
5157
|
+
function Bt(t, e) {
|
|
5095
5158
|
const n2 = [...e].sort((s2, a) => a[0] - s2[0]), { type: r } = t;
|
|
5096
5159
|
switch (r) {
|
|
5097
5160
|
case "Json": {
|
|
@@ -5163,45 +5226,45 @@
|
|
|
5163
5226
|
};
|
|
5164
5227
|
}
|
|
5165
5228
|
}
|
|
5166
|
-
function
|
|
5229
|
+
function Wt(t) {
|
|
5167
5230
|
if (!Array.isArray(t)) return false;
|
|
5168
5231
|
if (t.length === 0) return true;
|
|
5169
5232
|
const e = t[0];
|
|
5170
5233
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5171
5234
|
}
|
|
5172
|
-
class
|
|
5235
|
+
class Gt {
|
|
5173
5236
|
constructor(e) {
|
|
5174
5237
|
this.columns = e;
|
|
5175
5238
|
}
|
|
5176
5239
|
selectColumns(e) {
|
|
5177
|
-
const n2 = typeof e == "function" ? e :
|
|
5240
|
+
const n2 = typeof e == "function" ? e : Un(e);
|
|
5178
5241
|
return this.columns.filter((r) => n2(r.spec));
|
|
5179
5242
|
}
|
|
5180
5243
|
}
|
|
5181
|
-
function
|
|
5244
|
+
function Ht(t) {
|
|
5182
5245
|
if (t)
|
|
5183
5246
|
return t.map((e) => ({
|
|
5184
|
-
type: `split:${
|
|
5247
|
+
type: `split:${On(e.axisId)}`,
|
|
5185
5248
|
label: e.label,
|
|
5186
5249
|
importance: 1e6
|
|
5187
5250
|
// High importance for split filters in labels
|
|
5188
5251
|
}));
|
|
5189
5252
|
}
|
|
5190
|
-
function
|
|
5253
|
+
function zt(t) {
|
|
5191
5254
|
if (t)
|
|
5192
5255
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5193
5256
|
}
|
|
5194
|
-
function
|
|
5257
|
+
function Xt(t, e) {
|
|
5195
5258
|
if (!e || e.length === 0) return t;
|
|
5196
5259
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5197
|
-
return
|
|
5260
|
+
return We({ id: t, axisFilters: n2 });
|
|
5198
5261
|
}
|
|
5199
|
-
function
|
|
5262
|
+
function Oe(t) {
|
|
5200
5263
|
if (!t || typeof t != "object") return false;
|
|
5201
5264
|
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);
|
|
5202
5265
|
return !!e.domainAnchor || n2 || r;
|
|
5203
5266
|
}
|
|
5204
|
-
function
|
|
5267
|
+
function Yt(t) {
|
|
5205
5268
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5206
5269
|
return [];
|
|
5207
5270
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5212,7 +5275,7 @@
|
|
|
5212
5275
|
class Q {
|
|
5213
5276
|
constructor() {
|
|
5214
5277
|
V(this, "defaultProviderStore", []);
|
|
5215
|
-
V(this, "providers", [new
|
|
5278
|
+
V(this, "providers", [new Gt(this.defaultProviderStore)]);
|
|
5216
5279
|
V(this, "axisLabelProviders", []);
|
|
5217
5280
|
}
|
|
5218
5281
|
addColumnProvider(e) {
|
|
@@ -5239,131 +5302,131 @@
|
|
|
5239
5302
|
...s2 && (i == null ? void 0 : i.includeNativeLabel) !== false ? { includeNativeLabel: true } : {},
|
|
5240
5303
|
...i ?? {}
|
|
5241
5304
|
};
|
|
5242
|
-
let
|
|
5305
|
+
let c2 = () => false;
|
|
5243
5306
|
if (a) {
|
|
5244
|
-
const p2 = (Array.isArray(a) ? a : [a]).map((
|
|
5245
|
-
if (
|
|
5307
|
+
const p2 = (Array.isArray(a) ? a : [a]).map((g2) => {
|
|
5308
|
+
if (Oe(g2)) {
|
|
5246
5309
|
if (!r)
|
|
5247
5310
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5248
|
-
return
|
|
5311
|
+
return Un(Rn(r.anchors, g2, n2));
|
|
5249
5312
|
} else
|
|
5250
|
-
return
|
|
5313
|
+
return Un(g2);
|
|
5251
5314
|
});
|
|
5252
|
-
|
|
5315
|
+
c2 = (g2) => p2.some((P) => P(g2));
|
|
5253
5316
|
}
|
|
5254
|
-
const
|
|
5255
|
-
for (const p2 of
|
|
5256
|
-
const
|
|
5257
|
-
let
|
|
5258
|
-
if (
|
|
5317
|
+
const m2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], h = /* @__PURE__ */ new Set();
|
|
5318
|
+
for (const p2 of m2) {
|
|
5319
|
+
const g2 = Oe(p2);
|
|
5320
|
+
let P;
|
|
5321
|
+
if (g2) {
|
|
5259
5322
|
if (!r)
|
|
5260
5323
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5261
|
-
|
|
5324
|
+
P = Rn(r.anchors, p2, n2);
|
|
5262
5325
|
} else
|
|
5263
|
-
|
|
5264
|
-
const E2 = /* @__PURE__ */ new Set(),
|
|
5265
|
-
for (const
|
|
5266
|
-
const
|
|
5267
|
-
for (const
|
|
5268
|
-
if (u2
|
|
5269
|
-
if (E2.has(
|
|
5270
|
-
throw new Error(`Duplicate column id ${
|
|
5271
|
-
const
|
|
5272
|
-
|
|
5326
|
+
P = p2;
|
|
5327
|
+
const E2 = /* @__PURE__ */ new Set(), x = [];
|
|
5328
|
+
for (const C of this.providers) {
|
|
5329
|
+
const I2 = C.selectColumns(P);
|
|
5330
|
+
for (const u2 of I2) {
|
|
5331
|
+
if (c2(u2.spec)) continue;
|
|
5332
|
+
if (E2.has(u2.id))
|
|
5333
|
+
throw new Error(`Duplicate column id ${u2.id} in provider ${C.constructor.name}`);
|
|
5334
|
+
const b2 = qn(u2.spec);
|
|
5335
|
+
h.has(b2) || (E2.add(u2.id), h.add(b2), x.push(u2));
|
|
5273
5336
|
}
|
|
5274
5337
|
}
|
|
5275
|
-
if (
|
|
5276
|
-
const
|
|
5277
|
-
for (const
|
|
5278
|
-
if (!
|
|
5279
|
-
const
|
|
5280
|
-
if (
|
|
5281
|
-
if (
|
|
5282
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5283
|
-
const
|
|
5284
|
-
if (!
|
|
5338
|
+
if (x.length === 0) continue;
|
|
5339
|
+
const T2 = Yt(p2), S = T2.length > 0;
|
|
5340
|
+
for (const C of x) {
|
|
5341
|
+
if (!w$1(C.spec)) continue;
|
|
5342
|
+
const I2 = C.spec;
|
|
5343
|
+
if (S) {
|
|
5344
|
+
if (Wt(C.data))
|
|
5345
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${C.id}`);
|
|
5346
|
+
const u2 = Jt(C.data);
|
|
5347
|
+
if (!u2) {
|
|
5285
5348
|
if (o) continue;
|
|
5286
5349
|
return;
|
|
5287
5350
|
}
|
|
5288
|
-
if (!
|
|
5289
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
5290
|
-
const
|
|
5291
|
-
if (
|
|
5292
|
-
throw new Error(`Not enough partition keys (${
|
|
5293
|
-
const
|
|
5294
|
-
if (W >=
|
|
5295
|
-
if (
|
|
5351
|
+
if (!Ze$1(u2))
|
|
5352
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${u2.type} for column ${C.id}`);
|
|
5353
|
+
const b2 = $t(u2), K = T2[T2.length - 1];
|
|
5354
|
+
if (K >= u2.partitionKeyLength)
|
|
5355
|
+
throw new Error(`Not enough partition keys (${u2.partitionKeyLength}) for requested split axes (max index ${K}) in column ${I2.name}`);
|
|
5356
|
+
const B = T2.map((_2) => this.findLabels(p$1(I2.axesSpec[_2]))), O = [], _e = (_2, W) => {
|
|
5357
|
+
if (W >= T2.length) {
|
|
5358
|
+
if (O.push([..._2]), O.length > 1e4)
|
|
5296
5359
|
throw new Error("Too many key combinations, aborting.");
|
|
5297
5360
|
return;
|
|
5298
5361
|
}
|
|
5299
|
-
const
|
|
5300
|
-
if (
|
|
5301
|
-
throw new Error(`Axis index ${
|
|
5302
|
-
const j =
|
|
5362
|
+
const q = T2[W];
|
|
5363
|
+
if (q >= b2.length)
|
|
5364
|
+
throw new Error(`Axis index ${q} out of bounds for unique keys array (length ${b2.length}) during split key generation for column ${C.id}`);
|
|
5365
|
+
const j = b2[q];
|
|
5303
5366
|
if (!j || j.length === 0) {
|
|
5304
|
-
|
|
5367
|
+
O.length = 0;
|
|
5305
5368
|
return;
|
|
5306
5369
|
}
|
|
5307
|
-
for (const
|
|
5308
|
-
|
|
5370
|
+
for (const te2 of j)
|
|
5371
|
+
_2.push(te2), _e(_2, W + 1), _2.pop();
|
|
5309
5372
|
};
|
|
5310
|
-
if (
|
|
5373
|
+
if (_e([], 0), O.length === 0)
|
|
5311
5374
|
continue;
|
|
5312
|
-
const
|
|
5313
|
-
for (let
|
|
5314
|
-
|
|
5315
|
-
const
|
|
5316
|
-
for (const
|
|
5317
|
-
const W =
|
|
5318
|
-
const
|
|
5319
|
-
return { axisIdx:
|
|
5375
|
+
const Le = [...I2.axesSpec], rt = T2.map((_2) => _2);
|
|
5376
|
+
for (let _2 = T2.length - 1; _2 >= 0; _2--)
|
|
5377
|
+
Le.splice(T2[_2], 1);
|
|
5378
|
+
const it = { ...I2, axesSpec: Le };
|
|
5379
|
+
for (const _2 of O) {
|
|
5380
|
+
const W = _2.map((q, j) => {
|
|
5381
|
+
const te2 = rt[j], ot = p$1(I2.axesSpec[te2]), fe = B[j], st = (fe == null ? void 0 : fe[q]) ?? String(q);
|
|
5382
|
+
return { axisIdx: te2, axisId: ot, value: q, label: st };
|
|
5320
5383
|
});
|
|
5321
|
-
|
|
5384
|
+
d.push({
|
|
5322
5385
|
type: "split",
|
|
5323
|
-
originalColumn:
|
|
5324
|
-
spec:
|
|
5325
|
-
adjustedSpec:
|
|
5326
|
-
dataEntries:
|
|
5386
|
+
originalColumn: C,
|
|
5387
|
+
spec: I2,
|
|
5388
|
+
adjustedSpec: it,
|
|
5389
|
+
dataEntries: u2,
|
|
5327
5390
|
axisFilters: W
|
|
5328
5391
|
});
|
|
5329
5392
|
}
|
|
5330
5393
|
} else
|
|
5331
|
-
|
|
5394
|
+
d.push({
|
|
5332
5395
|
type: "direct",
|
|
5333
|
-
originalColumn:
|
|
5334
|
-
spec:
|
|
5335
|
-
adjustedSpec:
|
|
5396
|
+
originalColumn: C,
|
|
5397
|
+
spec: I2,
|
|
5398
|
+
adjustedSpec: I2
|
|
5336
5399
|
});
|
|
5337
5400
|
}
|
|
5338
5401
|
}
|
|
5339
|
-
if (
|
|
5340
|
-
const
|
|
5341
|
-
|
|
5402
|
+
if (d.length === 0) return [];
|
|
5403
|
+
const f = Qe(
|
|
5404
|
+
d,
|
|
5342
5405
|
(p2) => ({
|
|
5343
5406
|
spec: p2.spec,
|
|
5344
|
-
suffixTrace: p2.type === "split" ?
|
|
5407
|
+
suffixTrace: p2.type === "split" ? Ht(p2.axisFilters) : void 0
|
|
5345
5408
|
}),
|
|
5346
5409
|
l2
|
|
5347
|
-
), y = [];
|
|
5348
|
-
for (const { value: p2, label:
|
|
5349
|
-
const { originalColumn:
|
|
5350
|
-
let
|
|
5351
|
-
r ?
|
|
5352
|
-
let
|
|
5353
|
-
s2 && (
|
|
5354
|
-
...
|
|
5410
|
+
), y$1 = [];
|
|
5411
|
+
for (const { value: p2, label: g2 } of f) {
|
|
5412
|
+
const { originalColumn: P, spec: E2 } = p2, x = p2.type === "split" ? p2.axisFilters : void 0, T2 = zt(x);
|
|
5413
|
+
let S;
|
|
5414
|
+
r ? S = r.deriveS(E2, T2) : S = Xt(P.id, T2);
|
|
5415
|
+
let C = { ...p2.adjustedSpec };
|
|
5416
|
+
s2 && (C = {
|
|
5417
|
+
...C,
|
|
5355
5418
|
annotations: {
|
|
5356
|
-
...
|
|
5357
|
-
|
|
5419
|
+
...C.annotations ?? {},
|
|
5420
|
+
[y.Label]: g2
|
|
5358
5421
|
}
|
|
5359
|
-
}), y.push({
|
|
5360
|
-
id:
|
|
5361
|
-
spec:
|
|
5362
|
-
data: () => p2.type === "split" ?
|
|
5363
|
-
label:
|
|
5422
|
+
}), y$1.push({
|
|
5423
|
+
id: S,
|
|
5424
|
+
spec: C,
|
|
5425
|
+
data: () => p2.type === "split" ? nn(Bt(p2.dataEntries, T2)) : p2.originalColumn.data,
|
|
5426
|
+
label: g2
|
|
5364
5427
|
});
|
|
5365
5428
|
}
|
|
5366
|
-
return y;
|
|
5429
|
+
return y$1;
|
|
5367
5430
|
}
|
|
5368
5431
|
getColumns(e, n2) {
|
|
5369
5432
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5388,7 +5451,7 @@
|
|
|
5388
5451
|
return i;
|
|
5389
5452
|
}
|
|
5390
5453
|
}
|
|
5391
|
-
function
|
|
5454
|
+
function Ae(t) {
|
|
5392
5455
|
const e = (i) => i.operator !== "InSet" ? i : {
|
|
5393
5456
|
operator: "Or",
|
|
5394
5457
|
operands: i.references.map((o) => ({
|
|
@@ -5421,19 +5484,19 @@
|
|
|
5421
5484
|
});
|
|
5422
5485
|
return t.map((i) => r(i, e));
|
|
5423
5486
|
}
|
|
5424
|
-
function
|
|
5487
|
+
function ye(t, e) {
|
|
5425
5488
|
if (t === void 0) return e === void 0;
|
|
5426
5489
|
if (e === void 0) return true;
|
|
5427
5490
|
for (const n2 in e)
|
|
5428
5491
|
if (t[n2] !== e[n2]) return false;
|
|
5429
5492
|
return true;
|
|
5430
5493
|
}
|
|
5431
|
-
function
|
|
5432
|
-
return
|
|
5494
|
+
function Re(t) {
|
|
5495
|
+
return Bn(t, (e) => e instanceof k ? e.handle : Qe$1(e) ? Xe$1(e, (n2) => n2.handle) : e);
|
|
5433
5496
|
}
|
|
5434
|
-
class
|
|
5497
|
+
class Qt {
|
|
5435
5498
|
constructor() {
|
|
5436
|
-
V(this, "ctx",
|
|
5499
|
+
V(this, "ctx", v());
|
|
5437
5500
|
}
|
|
5438
5501
|
/**
|
|
5439
5502
|
* @deprecated use getOptions()
|
|
@@ -5442,28 +5505,28 @@
|
|
|
5442
5505
|
return this.ctx.calculateOptions(e);
|
|
5443
5506
|
}
|
|
5444
5507
|
getOptions(e, n2) {
|
|
5445
|
-
const r = typeof e == "function" ? e :
|
|
5508
|
+
const r = typeof e == "function" ? e : Un(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5446
5509
|
let o = {}, s2 = false;
|
|
5447
|
-
return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ?
|
|
5448
|
-
ref:
|
|
5510
|
+
return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ? Qe(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5511
|
+
ref: _n(a, s2),
|
|
5449
5512
|
label: l2
|
|
5450
5513
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5451
|
-
ref:
|
|
5514
|
+
ref: _n(a, s2),
|
|
5452
5515
|
label: o(l2, a)
|
|
5453
5516
|
}));
|
|
5454
5517
|
}
|
|
5455
5518
|
resolveAnchorCtx(e) {
|
|
5456
|
-
if (e instanceof
|
|
5519
|
+
if (e instanceof Nn) return e;
|
|
5457
5520
|
const n2 = {};
|
|
5458
5521
|
for (const [r, i] of Object.entries(e))
|
|
5459
|
-
if (
|
|
5522
|
+
if (Hn(i)) {
|
|
5460
5523
|
const o = this.getPColumnSpecByRef(i);
|
|
5461
5524
|
if (!o)
|
|
5462
5525
|
return;
|
|
5463
5526
|
n2[r] = o;
|
|
5464
5527
|
} else
|
|
5465
5528
|
n2[r] = i;
|
|
5466
|
-
return new
|
|
5529
|
+
return new Nn(n2);
|
|
5467
5530
|
}
|
|
5468
5531
|
/**
|
|
5469
5532
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5537,7 +5600,7 @@
|
|
|
5537
5600
|
ref: n2.ref,
|
|
5538
5601
|
obj: {
|
|
5539
5602
|
...n2.obj,
|
|
5540
|
-
data: new
|
|
5603
|
+
data: new k(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5541
5604
|
}
|
|
5542
5605
|
}))
|
|
5543
5606
|
};
|
|
@@ -5556,9 +5619,9 @@
|
|
|
5556
5619
|
ref: n2.ref,
|
|
5557
5620
|
obj: {
|
|
5558
5621
|
...n2.obj,
|
|
5559
|
-
data:
|
|
5622
|
+
data: Xn(
|
|
5560
5623
|
n2.obj.data,
|
|
5561
|
-
(r) => new
|
|
5624
|
+
(r) => new k(r, [n2.ref.blockId, n2.ref.name])
|
|
5562
5625
|
)
|
|
5563
5626
|
}
|
|
5564
5627
|
}))
|
|
@@ -5585,9 +5648,9 @@
|
|
|
5585
5648
|
)) == null ? void 0 : r.obj;
|
|
5586
5649
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5587
5650
|
if (n2)
|
|
5588
|
-
return
|
|
5651
|
+
return Bn(
|
|
5589
5652
|
n2,
|
|
5590
|
-
(i) => new
|
|
5653
|
+
(i) => new k(i, [e.blockId, e.name])
|
|
5591
5654
|
);
|
|
5592
5655
|
}
|
|
5593
5656
|
/**
|
|
@@ -5598,7 +5661,7 @@
|
|
|
5598
5661
|
getPColumnByRef(e) {
|
|
5599
5662
|
const n2 = this.getDataByRef(e);
|
|
5600
5663
|
if (n2)
|
|
5601
|
-
return
|
|
5664
|
+
return Vn(n2);
|
|
5602
5665
|
}
|
|
5603
5666
|
/**
|
|
5604
5667
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5608,7 +5671,7 @@
|
|
|
5608
5671
|
getPColumnSpecByRef(e) {
|
|
5609
5672
|
const n2 = this.getSpecByRef(e);
|
|
5610
5673
|
if (n2) {
|
|
5611
|
-
if (!
|
|
5674
|
+
if (!w$1(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
|
|
5612
5675
|
return n2;
|
|
5613
5676
|
}
|
|
5614
5677
|
}
|
|
@@ -5627,13 +5690,13 @@
|
|
|
5627
5690
|
findDataWithCompatibleSpec(e) {
|
|
5628
5691
|
const n2 = [];
|
|
5629
5692
|
e: for (const r of this.getData().entries) {
|
|
5630
|
-
if (!
|
|
5693
|
+
if (!w$1(r.obj.spec))
|
|
5631
5694
|
continue;
|
|
5632
5695
|
const i = r.obj.spec;
|
|
5633
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5696
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ye(e.domain, i.domain)) {
|
|
5634
5697
|
for (let o = 0; o < e.axesSpec.length; ++o) {
|
|
5635
5698
|
const s2 = e.axesSpec[o], a = i.axesSpec[o];
|
|
5636
|
-
if (s2.name !== a.name || s2.type !== a.type || !
|
|
5699
|
+
if (s2.name !== a.name || s2.type !== a.type || !ye(s2.domain, a.domain))
|
|
5637
5700
|
continue e;
|
|
5638
5701
|
}
|
|
5639
5702
|
n2.push(r.obj);
|
|
@@ -5648,9 +5711,9 @@
|
|
|
5648
5711
|
findLabels(e) {
|
|
5649
5712
|
const n2 = this.getData();
|
|
5650
5713
|
for (const r of n2.entries) {
|
|
5651
|
-
if (!
|
|
5714
|
+
if (!Fe(r.obj)) continue;
|
|
5652
5715
|
const i = r.obj.spec;
|
|
5653
|
-
if (i.name ===
|
|
5716
|
+
if (i.name === Pn.Label && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && ye(e.domain, i.axesSpec[0].domain)) {
|
|
5654
5717
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5655
5718
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5656
5719
|
return Object.fromEntries(
|
|
@@ -5669,17 +5732,17 @@
|
|
|
5669
5732
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5670
5733
|
*/
|
|
5671
5734
|
selectColumns(e) {
|
|
5672
|
-
const n2 = typeof e == "function" ? e :
|
|
5673
|
-
return this.getSpecs().entries.filter(({ obj: i }) =>
|
|
5735
|
+
const n2 = typeof e == "function" ? e : Un(e);
|
|
5736
|
+
return this.getSpecs().entries.filter(({ obj: i }) => w$1(i) ? n2(i) : false).map(({ ref: i, obj: o }) => {
|
|
5674
5737
|
const s2 = o;
|
|
5675
5738
|
let a = null;
|
|
5676
5739
|
const l2 = this;
|
|
5677
5740
|
return {
|
|
5678
|
-
id:
|
|
5741
|
+
id: We(i),
|
|
5679
5742
|
spec: s2,
|
|
5680
5743
|
get data() {
|
|
5681
|
-
var
|
|
5682
|
-
return a !== null || (a = (
|
|
5744
|
+
var c2;
|
|
5745
|
+
return a !== null || (a = (c2 = l2.getPColumnByRef(i)) == null ? void 0 : c2.data), a;
|
|
5683
5746
|
}
|
|
5684
5747
|
};
|
|
5685
5748
|
});
|
|
@@ -5689,13 +5752,12 @@
|
|
|
5689
5752
|
* @returns a map of axis value => label
|
|
5690
5753
|
*/
|
|
5691
5754
|
findLabelsForColumnAxis(e, n2) {
|
|
5692
|
-
var o;
|
|
5693
5755
|
const r = this.findLabels(e.axesSpec[n2]);
|
|
5694
5756
|
if (!r) return;
|
|
5695
|
-
const i = (
|
|
5757
|
+
const i = wn(e, `pl7.app/axisKeys/${n2}`);
|
|
5696
5758
|
if (i !== void 0) {
|
|
5697
|
-
const
|
|
5698
|
-
return Object.fromEntries(
|
|
5759
|
+
const o = JSON.parse(i);
|
|
5760
|
+
return Object.fromEntries(o.map((s2) => [s2, r[s2] ?? "Unlabelled"]));
|
|
5699
5761
|
} else
|
|
5700
5762
|
return r;
|
|
5701
5763
|
}
|
|
@@ -5706,8 +5768,8 @@
|
|
|
5706
5768
|
V(this, "_argsCache");
|
|
5707
5769
|
V(this, "_uiStateCache");
|
|
5708
5770
|
V(this, "_activeArgsCache");
|
|
5709
|
-
V(this, "resultPool", new
|
|
5710
|
-
this.ctx =
|
|
5771
|
+
V(this, "resultPool", new Qt());
|
|
5772
|
+
this.ctx = v();
|
|
5711
5773
|
}
|
|
5712
5774
|
get args() {
|
|
5713
5775
|
if (this._argsCache === void 0) {
|
|
@@ -5741,16 +5803,16 @@
|
|
|
5741
5803
|
// return this.ctx.featureFlags;
|
|
5742
5804
|
// }
|
|
5743
5805
|
getNamedAccessor(e) {
|
|
5744
|
-
return
|
|
5806
|
+
return Ce(
|
|
5745
5807
|
this.ctx.getAccessorHandleByName(e),
|
|
5746
|
-
(n2) => new
|
|
5808
|
+
(n2) => new k(n2, [e])
|
|
5747
5809
|
);
|
|
5748
5810
|
}
|
|
5749
5811
|
get prerun() {
|
|
5750
|
-
return this.getNamedAccessor(
|
|
5812
|
+
return this.getNamedAccessor(ze);
|
|
5751
5813
|
}
|
|
5752
5814
|
get outputs() {
|
|
5753
|
-
return this.getNamedAccessor(
|
|
5815
|
+
return this.getNamedAccessor(Xe);
|
|
5754
5816
|
}
|
|
5755
5817
|
/**
|
|
5756
5818
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5762,7 +5824,7 @@
|
|
|
5762
5824
|
}
|
|
5763
5825
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5764
5826
|
var i;
|
|
5765
|
-
const n2 = e.some((o) => !(o.data instanceof
|
|
5827
|
+
const n2 = e.some((o) => !(o.data instanceof k) || Qe$1(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5766
5828
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5767
5829
|
}
|
|
5768
5830
|
patchPTableDef(e) {
|
|
@@ -5773,14 +5835,14 @@
|
|
|
5773
5835
|
filters: [...e.partitionFilters, ...e.filters]
|
|
5774
5836
|
}), (r = this.ctx.featureFlags) != null && r.pFrameInSetFilterSupport || (e = {
|
|
5775
5837
|
...e,
|
|
5776
|
-
partitionFilters:
|
|
5777
|
-
filters:
|
|
5838
|
+
partitionFilters: Ae(e.partitionFilters),
|
|
5839
|
+
filters: Ae(e.filters)
|
|
5778
5840
|
}), e;
|
|
5779
5841
|
}
|
|
5780
5842
|
// TODO remove all non-PColumn fields
|
|
5781
5843
|
createPFrame(e) {
|
|
5782
5844
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5783
|
-
e.map((n2) =>
|
|
5845
|
+
e.map((n2) => Re(n2))
|
|
5784
5846
|
);
|
|
5785
5847
|
}
|
|
5786
5848
|
createPTable(e) {
|
|
@@ -5793,8 +5855,8 @@
|
|
|
5793
5855
|
partitionFilters: e.filters ?? [],
|
|
5794
5856
|
filters: [],
|
|
5795
5857
|
sorting: e.sorting ?? []
|
|
5796
|
-
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(
|
|
5797
|
-
|
|
5858
|
+
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(Mn(n2.src)), this.ctx.createPTable(
|
|
5859
|
+
In(n2, (r) => Re(r))
|
|
5798
5860
|
);
|
|
5799
5861
|
}
|
|
5800
5862
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5814,20 +5876,20 @@
|
|
|
5814
5876
|
this.ctx.logError(e);
|
|
5815
5877
|
}
|
|
5816
5878
|
}
|
|
5817
|
-
const
|
|
5818
|
-
function
|
|
5879
|
+
const Zt = "1.42.16", X = Zt;
|
|
5880
|
+
function en(t) {
|
|
5819
5881
|
return t.__renderLambda === true;
|
|
5820
5882
|
}
|
|
5821
|
-
function
|
|
5883
|
+
function ge(t) {
|
|
5822
5884
|
if (t !== void 0)
|
|
5823
|
-
return
|
|
5885
|
+
return en(t) ? t.handle : t;
|
|
5824
5886
|
}
|
|
5825
|
-
const
|
|
5826
|
-
constructor(e, n2, r, i, o, s2, a, l2,
|
|
5827
|
-
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = o, this._sections = s2, this._title = a, this._enrichmentTargets = l2, this._featureFlags =
|
|
5887
|
+
const w = class w2 {
|
|
5888
|
+
constructor(e, n2, r, i, o, s2, a, l2, c2) {
|
|
5889
|
+
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = o, this._sections = s2, this._title = a, this._enrichmentTargets = l2, this._featureFlags = c2;
|
|
5828
5890
|
}
|
|
5829
5891
|
static create(e = "Heavy") {
|
|
5830
|
-
return new
|
|
5892
|
+
return new w2(
|
|
5831
5893
|
e,
|
|
5832
5894
|
void 0,
|
|
5833
5895
|
{},
|
|
@@ -5836,13 +5898,13 @@
|
|
|
5836
5898
|
se([]),
|
|
5837
5899
|
void 0,
|
|
5838
5900
|
void 0,
|
|
5839
|
-
{ ...
|
|
5901
|
+
{ ...w2.INITIAL_BLOCK_FEATURE_FLAGS }
|
|
5840
5902
|
);
|
|
5841
5903
|
}
|
|
5842
5904
|
output(e, n2, r = {}) {
|
|
5843
5905
|
if (typeof n2 == "function") {
|
|
5844
5906
|
const i = `output#${e}`;
|
|
5845
|
-
return G(i, () => n2(new ne())), new
|
|
5907
|
+
return G(i, () => n2(new ne())), new w2(
|
|
5846
5908
|
this._renderingMode,
|
|
5847
5909
|
this._initialArgs,
|
|
5848
5910
|
this._initialUiState,
|
|
@@ -5861,7 +5923,7 @@
|
|
|
5861
5923
|
this._featureFlags
|
|
5862
5924
|
);
|
|
5863
5925
|
} else
|
|
5864
|
-
return new
|
|
5926
|
+
return new w2(
|
|
5865
5927
|
this._renderingMode,
|
|
5866
5928
|
this._initialArgs,
|
|
5867
5929
|
this._initialUiState,
|
|
@@ -5881,7 +5943,7 @@
|
|
|
5881
5943
|
return this.output(e, n2, { retentive: true });
|
|
5882
5944
|
}
|
|
5883
5945
|
argsValid(e) {
|
|
5884
|
-
return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new
|
|
5946
|
+
return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new w2(
|
|
5885
5947
|
this._renderingMode,
|
|
5886
5948
|
this._initialArgs,
|
|
5887
5949
|
this._initialUiState,
|
|
@@ -5894,7 +5956,7 @@
|
|
|
5894
5956
|
this._title,
|
|
5895
5957
|
this._enrichmentTargets,
|
|
5896
5958
|
this._featureFlags
|
|
5897
|
-
)) : new
|
|
5959
|
+
)) : new w2(
|
|
5898
5960
|
this._renderingMode,
|
|
5899
5961
|
this._initialArgs,
|
|
5900
5962
|
this._initialUiState,
|
|
@@ -5907,7 +5969,7 @@
|
|
|
5907
5969
|
);
|
|
5908
5970
|
}
|
|
5909
5971
|
sections(e) {
|
|
5910
|
-
return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new
|
|
5972
|
+
return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new w2(
|
|
5911
5973
|
this._renderingMode,
|
|
5912
5974
|
this._initialArgs,
|
|
5913
5975
|
this._initialUiState,
|
|
@@ -5917,7 +5979,7 @@
|
|
|
5917
5979
|
this._title,
|
|
5918
5980
|
this._enrichmentTargets,
|
|
5919
5981
|
this._featureFlags
|
|
5920
|
-
)) : new
|
|
5982
|
+
)) : new w2(
|
|
5921
5983
|
this._renderingMode,
|
|
5922
5984
|
this._initialArgs,
|
|
5923
5985
|
this._initialUiState,
|
|
@@ -5931,7 +5993,7 @@
|
|
|
5931
5993
|
}
|
|
5932
5994
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5933
5995
|
title(e) {
|
|
5934
|
-
return G("title", () => e(new ne())), new
|
|
5996
|
+
return G("title", () => e(new ne())), new w2(
|
|
5935
5997
|
this._renderingMode,
|
|
5936
5998
|
this._initialArgs,
|
|
5937
5999
|
this._initialUiState,
|
|
@@ -5948,7 +6010,7 @@
|
|
|
5948
6010
|
* @deprecated use {@link withArgs}
|
|
5949
6011
|
* */
|
|
5950
6012
|
initialArgs(e) {
|
|
5951
|
-
return new
|
|
6013
|
+
return new w2(
|
|
5952
6014
|
this._renderingMode,
|
|
5953
6015
|
e,
|
|
5954
6016
|
this._initialUiState,
|
|
@@ -5962,7 +6024,7 @@
|
|
|
5962
6024
|
}
|
|
5963
6025
|
/** Sets initial args for the block, this value must be specified. */
|
|
5964
6026
|
withArgs(e) {
|
|
5965
|
-
return new
|
|
6027
|
+
return new w2(
|
|
5966
6028
|
this._renderingMode,
|
|
5967
6029
|
e,
|
|
5968
6030
|
this._initialUiState,
|
|
@@ -5976,7 +6038,7 @@
|
|
|
5976
6038
|
}
|
|
5977
6039
|
/** Defines type and sets initial value for block UiState. */
|
|
5978
6040
|
withUiState(e) {
|
|
5979
|
-
return new
|
|
6041
|
+
return new w2(
|
|
5980
6042
|
this._renderingMode,
|
|
5981
6043
|
this._initialArgs,
|
|
5982
6044
|
e,
|
|
@@ -5990,7 +6052,7 @@
|
|
|
5990
6052
|
}
|
|
5991
6053
|
/** Sets or overrides feature flags for the block. */
|
|
5992
6054
|
withFeatureFlags(e) {
|
|
5993
|
-
return new
|
|
6055
|
+
return new w2(
|
|
5994
6056
|
this._renderingMode,
|
|
5995
6057
|
this._initialArgs,
|
|
5996
6058
|
this._initialUiState,
|
|
@@ -6007,7 +6069,7 @@
|
|
|
6007
6069
|
* Influences dependency graph construction.
|
|
6008
6070
|
*/
|
|
6009
6071
|
enriches(e) {
|
|
6010
|
-
return G("enrichmentTargets", e), new
|
|
6072
|
+
return G("enrichmentTargets", e), new w2(
|
|
6011
6073
|
this._renderingMode,
|
|
6012
6074
|
this._initialArgs,
|
|
6013
6075
|
this._initialUiState,
|
|
@@ -6048,22 +6110,22 @@
|
|
|
6048
6110
|
sdkVersion: X,
|
|
6049
6111
|
renderingMode: this._renderingMode,
|
|
6050
6112
|
initialArgs: this._initialArgs,
|
|
6051
|
-
inputsValid:
|
|
6052
|
-
sections:
|
|
6113
|
+
inputsValid: ge(this._inputsValid),
|
|
6114
|
+
sections: ge(this._sections),
|
|
6053
6115
|
outputs: Object.fromEntries(
|
|
6054
|
-
Object.entries(this._outputs).map(([r, i]) => [r,
|
|
6116
|
+
Object.entries(this._outputs).map(([r, i]) => [r, ge(i)])
|
|
6055
6117
|
)
|
|
6056
6118
|
};
|
|
6057
|
-
return globalThis.platformaApiVersion = e,
|
|
6119
|
+
return globalThis.platformaApiVersion = e, Vt() ? He({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n2 };
|
|
6058
6120
|
}
|
|
6059
6121
|
};
|
|
6060
|
-
V(
|
|
6122
|
+
V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
6061
6123
|
supportsLazyState: true,
|
|
6062
6124
|
requiresUIAPIVersion: 1,
|
|
6063
6125
|
requiresModelAPIVersion: 1
|
|
6064
6126
|
});
|
|
6065
|
-
let
|
|
6066
|
-
const platforma =
|
|
6127
|
+
let Ne = w;
|
|
6128
|
+
const platforma = Ne.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|
|
6067
6129
|
return [{ type: "link", href: "/", label: "Main" }];
|
|
6068
6130
|
}).title((ctx) => "Pool explorer").done();
|
|
6069
6131
|
exports2.platforma = platforma;
|