@milaboratories/pl-model-common 1.19.5 → 1.19.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drivers/pframe/data_types.d.ts +4 -4
- package/dist/drivers/pframe/data_types.d.ts.map +1 -1
- package/dist/drivers/pframe/index.d.ts +1 -0
- package/dist/drivers/pframe/index.d.ts.map +1 -1
- package/dist/drivers/pframe/linker_columns.d.ts +43 -0
- package/dist/drivers/pframe/linker_columns.d.ts.map +1 -0
- package/dist/drivers/pframe/spec/spec.d.ts +164 -12
- package/dist/drivers/pframe/spec/spec.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +990 -586
- package/dist/index.mjs.map +1 -1
- package/dist/json.d.ts +3 -3
- package/dist/json.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/drivers/pframe/data_types.ts +26 -29
- package/src/drivers/pframe/index.ts +2 -0
- package/src/drivers/pframe/linker_columns.test.ts +286 -0
- package/src/drivers/pframe/linker_columns.ts +290 -0
- package/src/drivers/pframe/spec/spec.test.ts +182 -0
- package/src/drivers/pframe/spec/spec.ts +404 -22
- package/src/json.ts +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { z as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
1
|
+
var te = Object.defineProperty;
|
|
2
|
+
var re = (e, n, t) => n in e ? te(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var b = (e, n, t) => re(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { z as l } from "zod";
|
|
5
|
+
import F from "canonicalize";
|
|
6
|
+
function Me(e) {
|
|
7
7
|
if (e.code !== void 0)
|
|
8
8
|
return {
|
|
9
9
|
code: e.code,
|
|
@@ -11,130 +11,130 @@ function be(e) {
|
|
|
11
11
|
featureFlags: e.featureFlags
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function x(e) {
|
|
15
15
|
if (e !== void 0)
|
|
16
16
|
return typeof e == "string" ? { __renderLambda: !0, handle: e, retentive: !1 } : e;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Be(e) {
|
|
19
19
|
if (e.v3 !== void 0) {
|
|
20
20
|
const {
|
|
21
21
|
initialArgs: n,
|
|
22
|
-
initialUiState:
|
|
23
|
-
inputsValid:
|
|
24
|
-
outputs:
|
|
25
|
-
renderingMode:
|
|
22
|
+
initialUiState: t,
|
|
23
|
+
inputsValid: r,
|
|
24
|
+
outputs: o,
|
|
25
|
+
renderingMode: i,
|
|
26
26
|
sdkVersion: s,
|
|
27
27
|
featureFlags: a,
|
|
28
28
|
sections: u,
|
|
29
29
|
title: c,
|
|
30
30
|
enrichmentTargets: d
|
|
31
|
-
} = e.v3, { code:
|
|
31
|
+
} = e.v3, { code: f } = e;
|
|
32
32
|
return {
|
|
33
33
|
initialArgs: n,
|
|
34
|
-
initialUiState:
|
|
35
|
-
inputsValid:
|
|
36
|
-
outputs:
|
|
37
|
-
renderingMode:
|
|
34
|
+
initialUiState: t,
|
|
35
|
+
inputsValid: r,
|
|
36
|
+
outputs: o,
|
|
37
|
+
renderingMode: i,
|
|
38
38
|
sdkVersion: s,
|
|
39
39
|
featureFlags: a,
|
|
40
40
|
sections: u,
|
|
41
41
|
title: c,
|
|
42
|
-
code:
|
|
42
|
+
code: f,
|
|
43
43
|
enrichmentTargets: d
|
|
44
44
|
};
|
|
45
45
|
} else if (e.inputsValid !== void 0) {
|
|
46
|
-
const { sdkVersion: n, renderingMode:
|
|
47
|
-
if (n === void 0 ||
|
|
46
|
+
const { sdkVersion: n, renderingMode: t, outputs: r, inputsValid: o, sections: i, initialArgs: s, code: a } = e, u = Object.keys(e);
|
|
47
|
+
if (n === void 0 || t === void 0 || r === void 0 || o === void 0 || i === void 0 || s === void 0)
|
|
48
48
|
throw new Error(
|
|
49
49
|
`Malformed config v2. SDK version ${n}; Fields = ${u.join(", ")}`
|
|
50
50
|
);
|
|
51
51
|
return {
|
|
52
52
|
sdkVersion: n,
|
|
53
|
-
renderingMode:
|
|
53
|
+
renderingMode: t,
|
|
54
54
|
initialArgs: s,
|
|
55
55
|
outputs: Object.fromEntries(
|
|
56
|
-
Object.entries(
|
|
56
|
+
Object.entries(r).map(([c, d]) => [c, x(d)])
|
|
57
57
|
),
|
|
58
|
-
inputsValid:
|
|
59
|
-
sections:
|
|
58
|
+
inputsValid: x(o),
|
|
59
|
+
sections: x(i),
|
|
60
60
|
initialUiState: void 0,
|
|
61
61
|
code: a
|
|
62
62
|
};
|
|
63
63
|
} else if (e.renderingMode !== void 0) {
|
|
64
|
-
const { sdkVersion: n, canRun:
|
|
65
|
-
if (
|
|
64
|
+
const { sdkVersion: n, canRun: t, renderingMode: r, outputs: o, sections: i, initialArgs: s, code: a } = e, u = Object.keys(e);
|
|
65
|
+
if (r === void 0 || o === void 0 || t === void 0 || i === void 0 || s === void 0)
|
|
66
66
|
throw new Error(
|
|
67
67
|
`Malformed config v1. SDK version ${n}; Fields = ${u.join(", ")}`
|
|
68
68
|
);
|
|
69
69
|
return {
|
|
70
70
|
sdkVersion: n ?? "unknown",
|
|
71
|
-
renderingMode:
|
|
71
|
+
renderingMode: r,
|
|
72
72
|
initialArgs: s,
|
|
73
73
|
outputs: Object.fromEntries(
|
|
74
|
-
Object.entries(
|
|
74
|
+
Object.entries(o).map(([c, d]) => [c, x(d)])
|
|
75
75
|
),
|
|
76
|
-
inputsValid:
|
|
77
|
-
sections:
|
|
76
|
+
inputsValid: x(t),
|
|
77
|
+
sections: x(i),
|
|
78
78
|
initialUiState: void 0,
|
|
79
79
|
code: a
|
|
80
80
|
};
|
|
81
81
|
} else {
|
|
82
|
-
const { sdkVersion: n } = e,
|
|
82
|
+
const { sdkVersion: n } = e, t = Object.keys(e);
|
|
83
83
|
throw new Error(
|
|
84
|
-
`Config format not supported: SDK = ${n}; Fields = ${
|
|
84
|
+
`Config format not supported: SDK = ${n}; Fields = ${t.join(", ")}`
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Ue(e) {
|
|
89
89
|
return new URL(e).protocol == "plblob+folder:";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function qe(e) {
|
|
92
92
|
return new URL(e).protocol == "block-ui:";
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const We = l.object({
|
|
95
95
|
/** Included left border. */
|
|
96
|
-
from:
|
|
96
|
+
from: l.number(),
|
|
97
97
|
/** Excluded right border. */
|
|
98
|
-
to:
|
|
98
|
+
to: l.number()
|
|
99
99
|
});
|
|
100
|
-
function
|
|
100
|
+
function ze(e, n) {
|
|
101
101
|
if (!(e == null || n == null))
|
|
102
102
|
return { from: e, to: n };
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function He(e, n) {
|
|
105
105
|
if (e.from < 0 || e.to < 0 || e.from >= e.to)
|
|
106
106
|
throw new Error(`${n}: invalid bytes range: ${e}`);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function _e(e) {
|
|
109
109
|
return e !== void 0 && e.startsWith("log+live://log/");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function S(e) {
|
|
112
112
|
throw new Error("Unexpected object: " + e);
|
|
113
113
|
}
|
|
114
|
-
const
|
|
115
|
-
function
|
|
116
|
-
return e.startsWith(
|
|
114
|
+
const K = "upload://upload/", V = "index://index/";
|
|
115
|
+
function oe(e) {
|
|
116
|
+
return e.startsWith(K);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
return e.startsWith(
|
|
118
|
+
function ie(e) {
|
|
119
|
+
return e.startsWith(V);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
if (
|
|
123
|
-
const n = e.slice(
|
|
121
|
+
function ae(e) {
|
|
122
|
+
if (ie(e)) {
|
|
123
|
+
const n = e.slice(V.length);
|
|
124
124
|
return JSON.parse(decodeURIComponent(n)).path;
|
|
125
|
-
} else if (
|
|
126
|
-
const n = e.slice(
|
|
125
|
+
} else if (oe(e)) {
|
|
126
|
+
const n = e.slice(K.length);
|
|
127
127
|
return JSON.parse(decodeURIComponent(n)).localPath;
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
S(e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function se(e) {
|
|
132
132
|
return e.replace(/^.*[\\/]/, "");
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function Ge(e) {
|
|
135
|
+
return se(ae(e));
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Qe(e) {
|
|
138
138
|
if (!e || typeof e != "object")
|
|
139
139
|
return !1;
|
|
140
140
|
const n = e;
|
|
@@ -151,44 +151,44 @@ function Se(e) {
|
|
|
151
151
|
return !1;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Xe(e, n) {
|
|
155
155
|
if (e !== void 0)
|
|
156
156
|
switch (e.type) {
|
|
157
157
|
case "Json":
|
|
158
158
|
return e;
|
|
159
159
|
case "JsonPartitioned": {
|
|
160
|
-
const
|
|
161
|
-
for (const [
|
|
162
|
-
r
|
|
160
|
+
const t = {};
|
|
161
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
162
|
+
t[r] = n(o);
|
|
163
163
|
return {
|
|
164
164
|
...e,
|
|
165
|
-
parts:
|
|
165
|
+
parts: t
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
case "BinaryPartitioned": {
|
|
169
|
-
const
|
|
170
|
-
for (const [
|
|
171
|
-
r
|
|
172
|
-
index: n(
|
|
173
|
-
values: n(
|
|
169
|
+
const t = {};
|
|
170
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
171
|
+
t[r] = {
|
|
172
|
+
index: n(o.index),
|
|
173
|
+
values: n(o.values)
|
|
174
174
|
};
|
|
175
175
|
return {
|
|
176
176
|
...e,
|
|
177
|
-
parts:
|
|
177
|
+
parts: t
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
case "ParquetPartitioned": {
|
|
181
|
-
const
|
|
182
|
-
for (const [
|
|
183
|
-
r
|
|
181
|
+
const t = {};
|
|
182
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
183
|
+
t[r] = n(o);
|
|
184
184
|
return {
|
|
185
185
|
...e,
|
|
186
|
-
parts:
|
|
186
|
+
parts: t
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Ye(e, n) {
|
|
192
192
|
switch (e.type) {
|
|
193
193
|
case "Json":
|
|
194
194
|
break;
|
|
@@ -197,8 +197,8 @@ function je(e, n) {
|
|
|
197
197
|
break;
|
|
198
198
|
}
|
|
199
199
|
case "BinaryPartitioned": {
|
|
200
|
-
Object.values(e.parts).forEach((
|
|
201
|
-
n(
|
|
200
|
+
Object.values(e.parts).forEach((t) => {
|
|
201
|
+
n(t.index), n(t.values);
|
|
202
202
|
});
|
|
203
203
|
break;
|
|
204
204
|
}
|
|
@@ -208,7 +208,7 @@ function je(e, n) {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ue(e) {
|
|
212
212
|
if (!e || typeof e != "object")
|
|
213
213
|
return !1;
|
|
214
214
|
const n = e;
|
|
@@ -225,8 +225,8 @@ function M(e) {
|
|
|
225
225
|
return !1;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
if (!
|
|
228
|
+
function Ze(e) {
|
|
229
|
+
if (!ue(e)) return !1;
|
|
230
230
|
switch (e.type) {
|
|
231
231
|
case "JsonPartitioned":
|
|
232
232
|
case "BinaryPartitioned":
|
|
@@ -236,44 +236,44 @@ function Ce(e) {
|
|
|
236
236
|
return !1;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function en(e) {
|
|
240
240
|
switch (e.type) {
|
|
241
241
|
case "Json":
|
|
242
242
|
return {
|
|
243
243
|
type: "Json",
|
|
244
244
|
keyLength: e.keyLength,
|
|
245
|
-
data: Object.entries(e.data).map(([n,
|
|
245
|
+
data: Object.entries(e.data).map(([n, t]) => ({ key: JSON.parse(n), value: t }))
|
|
246
246
|
};
|
|
247
247
|
case "JsonPartitioned":
|
|
248
248
|
return {
|
|
249
249
|
type: "JsonPartitioned",
|
|
250
250
|
partitionKeyLength: e.partitionKeyLength,
|
|
251
|
-
parts: Object.entries(e.parts).map(([n,
|
|
251
|
+
parts: Object.entries(e.parts).map(([n, t]) => ({ key: JSON.parse(n), value: t }))
|
|
252
252
|
};
|
|
253
253
|
case "BinaryPartitioned":
|
|
254
254
|
return {
|
|
255
255
|
type: "BinaryPartitioned",
|
|
256
256
|
partitionKeyLength: e.partitionKeyLength,
|
|
257
|
-
parts: Object.entries(e.parts).map(([n,
|
|
257
|
+
parts: Object.entries(e.parts).map(([n, t]) => ({ key: JSON.parse(n), value: t }))
|
|
258
258
|
};
|
|
259
259
|
case "ParquetPartitioned":
|
|
260
260
|
return {
|
|
261
261
|
type: "ParquetPartitioned",
|
|
262
262
|
partitionKeyLength: e.partitionKeyLength,
|
|
263
|
-
parts: Object.entries(e.parts).map(([n,
|
|
263
|
+
parts: Object.entries(e.parts).map(([n, t]) => ({ key: JSON.parse(n), value: t }))
|
|
264
264
|
};
|
|
265
265
|
default:
|
|
266
|
-
|
|
266
|
+
S(e);
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function nn(e) {
|
|
270
270
|
switch (e.type) {
|
|
271
271
|
case "Json":
|
|
272
272
|
return {
|
|
273
273
|
type: "Json",
|
|
274
274
|
keyLength: e.keyLength,
|
|
275
275
|
data: Object.fromEntries(
|
|
276
|
-
e.data.map(({ key: n, value:
|
|
276
|
+
e.data.map(({ key: n, value: t }) => [JSON.stringify(n), t])
|
|
277
277
|
)
|
|
278
278
|
};
|
|
279
279
|
case "JsonPartitioned":
|
|
@@ -281,7 +281,7 @@ function Je(e) {
|
|
|
281
281
|
type: "JsonPartitioned",
|
|
282
282
|
partitionKeyLength: e.partitionKeyLength,
|
|
283
283
|
parts: Object.fromEntries(
|
|
284
|
-
e.parts.map(({ key: n, value:
|
|
284
|
+
e.parts.map(({ key: n, value: t }) => [JSON.stringify(n), t])
|
|
285
285
|
)
|
|
286
286
|
};
|
|
287
287
|
case "BinaryPartitioned":
|
|
@@ -289,7 +289,7 @@ function Je(e) {
|
|
|
289
289
|
type: "BinaryPartitioned",
|
|
290
290
|
partitionKeyLength: e.partitionKeyLength,
|
|
291
291
|
parts: Object.fromEntries(
|
|
292
|
-
e.parts.map(({ key: n, value:
|
|
292
|
+
e.parts.map(({ key: n, value: t }) => [JSON.stringify(n), t])
|
|
293
293
|
)
|
|
294
294
|
};
|
|
295
295
|
case "ParquetPartitioned":
|
|
@@ -297,14 +297,14 @@ function Je(e) {
|
|
|
297
297
|
type: "ParquetPartitioned",
|
|
298
298
|
partitionKeyLength: e.partitionKeyLength,
|
|
299
299
|
parts: Object.fromEntries(
|
|
300
|
-
e.parts.map(({ key: n, value:
|
|
300
|
+
e.parts.map(({ key: n, value: t }) => [JSON.stringify(n), t])
|
|
301
301
|
)
|
|
302
302
|
};
|
|
303
303
|
default:
|
|
304
|
-
|
|
304
|
+
S(e);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function tn(e, n) {
|
|
308
308
|
if (e !== void 0)
|
|
309
309
|
switch (e.type) {
|
|
310
310
|
case "Json":
|
|
@@ -312,140 +312,457 @@ function Ne(e, n) {
|
|
|
312
312
|
case "JsonPartitioned":
|
|
313
313
|
return {
|
|
314
314
|
...e,
|
|
315
|
-
parts: e.parts.map((
|
|
316
|
-
key:
|
|
317
|
-
value: n(
|
|
315
|
+
parts: e.parts.map((t) => ({
|
|
316
|
+
key: t.key,
|
|
317
|
+
value: n(t.value)
|
|
318
318
|
}))
|
|
319
319
|
};
|
|
320
320
|
case "BinaryPartitioned":
|
|
321
321
|
return {
|
|
322
322
|
...e,
|
|
323
|
-
parts: e.parts.map((
|
|
324
|
-
key:
|
|
323
|
+
parts: e.parts.map((t) => ({
|
|
324
|
+
key: t.key,
|
|
325
325
|
value: {
|
|
326
|
-
index: n(
|
|
327
|
-
values: n(
|
|
326
|
+
index: n(t.value.index),
|
|
327
|
+
values: n(t.value.values)
|
|
328
328
|
}
|
|
329
329
|
}))
|
|
330
330
|
};
|
|
331
331
|
case "ParquetPartitioned":
|
|
332
332
|
return {
|
|
333
333
|
...e,
|
|
334
|
-
parts: e.parts.map((
|
|
335
|
-
key:
|
|
336
|
-
value: n(
|
|
334
|
+
parts: e.parts.map((t) => ({
|
|
335
|
+
key: t.key,
|
|
336
|
+
value: n(t.value)
|
|
337
337
|
}))
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
341
|
+
class rn extends Error {
|
|
342
|
+
constructor() {
|
|
343
|
+
super(...arguments);
|
|
344
|
+
b(this, "name", "AbortError");
|
|
345
|
+
}
|
|
344
346
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
+
class on extends Error {
|
|
348
|
+
constructor() {
|
|
349
|
+
super(...arguments);
|
|
350
|
+
b(this, "name", "UiError");
|
|
351
|
+
}
|
|
347
352
|
}
|
|
348
|
-
function
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
return t === null;
|
|
362
|
-
case "Bytes":
|
|
363
|
-
return t === null;
|
|
364
|
-
default:
|
|
365
|
-
throw Error(`unsupported data type: ${r}`);
|
|
353
|
+
function an(e) {
|
|
354
|
+
return e instanceof Error && e.name === "AbortError";
|
|
355
|
+
}
|
|
356
|
+
function ce(e) {
|
|
357
|
+
return e instanceof Error ? e.name === "AbortError" || ce(e.cause) : !1;
|
|
358
|
+
}
|
|
359
|
+
function sn(e) {
|
|
360
|
+
return e instanceof Error && e.name === "AggregateError";
|
|
361
|
+
}
|
|
362
|
+
class le extends Error {
|
|
363
|
+
constructor() {
|
|
364
|
+
super(...arguments);
|
|
365
|
+
b(this, "name", "PFrameError");
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
return typeof e == "object" && e !== null && "type" in e && e.type === "absent";
|
|
368
|
+
function un(e) {
|
|
369
|
+
return e instanceof Error && e.name === "PFrameError";
|
|
371
370
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
371
|
+
class cn extends le {
|
|
372
|
+
constructor() {
|
|
373
|
+
super(...arguments);
|
|
374
|
+
b(this, "name", "PFrameError.Driver");
|
|
375
|
+
}
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
377
|
+
function ln(e) {
|
|
378
|
+
return e instanceof Error && e.name === "PFrameError.Driver";
|
|
378
379
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
380
|
+
function de(e) {
|
|
381
|
+
if (typeof e == "string")
|
|
382
|
+
return `String value was thrown: ${e}`;
|
|
383
|
+
if (e && typeof e == "object")
|
|
384
|
+
try {
|
|
385
|
+
return `Plain object was thrown: ${JSON.stringify(e)}`;
|
|
386
|
+
} catch (n) {
|
|
387
|
+
return `Non-serializable object was thrown (JSON.stringify failed: ${n instanceof Error ? n.message : String(n)}): ${String(e)}`;
|
|
388
|
+
}
|
|
389
|
+
return `Non-Error value (${typeof e}) was thrown: ${e}`;
|
|
390
|
+
}
|
|
391
|
+
function C(e) {
|
|
392
|
+
return e instanceof Error ? e : new Error(de(e));
|
|
393
|
+
}
|
|
394
|
+
function J(e) {
|
|
395
|
+
const n = e.cause ? J(e.cause) : void 0, t = new Error(e.message, n !== void 0 ? { cause: n } : void 0);
|
|
396
|
+
return t.name = e.name || "Error", t.stack = e.stack, t;
|
|
397
|
+
}
|
|
398
|
+
function M(e) {
|
|
399
|
+
const n = C(e), t = n.cause ? M(n.cause) : void 0;
|
|
400
|
+
return {
|
|
401
|
+
name: n.name,
|
|
402
|
+
message: n.message,
|
|
403
|
+
stack: n.stack,
|
|
404
|
+
...n.cause !== void 0 && { cause: t }
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
function dn(e) {
|
|
408
|
+
if (e.error)
|
|
409
|
+
throw e.error instanceof Error ? e.error : J(e.error);
|
|
410
|
+
return e.value;
|
|
411
|
+
}
|
|
412
|
+
function B(e) {
|
|
413
|
+
return e.error ? { error: M(e.error) } : { value: e.value };
|
|
414
|
+
}
|
|
415
|
+
function fn(e) {
|
|
416
|
+
return e.error ? { error: J(e.error) } : { value: e.value };
|
|
417
|
+
}
|
|
418
|
+
function fe(e) {
|
|
419
|
+
try {
|
|
420
|
+
return { value: e() };
|
|
421
|
+
} catch (n) {
|
|
422
|
+
return { error: C(n) };
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
async function pe(e) {
|
|
426
|
+
try {
|
|
427
|
+
return { value: await e() };
|
|
428
|
+
} catch (n) {
|
|
429
|
+
return { error: C(n) };
|
|
401
430
|
}
|
|
402
431
|
}
|
|
403
|
-
function
|
|
404
|
-
|
|
432
|
+
function pn(e) {
|
|
433
|
+
const n = fe(e);
|
|
434
|
+
return B(n);
|
|
435
|
+
}
|
|
436
|
+
async function mn(e) {
|
|
437
|
+
const n = await pe(e);
|
|
438
|
+
return B(n);
|
|
439
|
+
}
|
|
440
|
+
function hn(e) {
|
|
441
|
+
return JSON.stringify(e);
|
|
405
442
|
}
|
|
406
|
-
function
|
|
407
|
-
return F(e
|
|
443
|
+
function m(e) {
|
|
444
|
+
return F(e);
|
|
445
|
+
}
|
|
446
|
+
function me(e) {
|
|
447
|
+
return JSON.parse(e);
|
|
448
|
+
}
|
|
449
|
+
const g = {
|
|
450
|
+
Int: "Int",
|
|
451
|
+
Long: "Long",
|
|
452
|
+
Float: "Float",
|
|
453
|
+
Double: "Double",
|
|
454
|
+
String: "String",
|
|
455
|
+
Bytes: "Bytes"
|
|
456
|
+
};
|
|
457
|
+
function I(e, n) {
|
|
458
|
+
return e == null ? void 0 : e[n];
|
|
459
|
+
}
|
|
460
|
+
function j(e, n, t, r = "readMetadataJsonOrThrow") {
|
|
461
|
+
const o = I(e, t);
|
|
462
|
+
if (o === void 0) return;
|
|
463
|
+
const i = n[t];
|
|
464
|
+
try {
|
|
465
|
+
const s = JSON.parse(o);
|
|
466
|
+
return i.parse(s);
|
|
467
|
+
} catch (s) {
|
|
468
|
+
throw new Error(
|
|
469
|
+
`${r} failed, key: ${String(t)}, value: ${o}, error: ${C(s)}`
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function U(e, n, t) {
|
|
474
|
+
try {
|
|
475
|
+
return j(e, n, t);
|
|
476
|
+
} catch {
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
408
479
|
}
|
|
409
|
-
|
|
480
|
+
const yn = {
|
|
481
|
+
Alphabet: "pl7.app/alphabet",
|
|
482
|
+
BlockId: "pl7.app/blockId"
|
|
483
|
+
}, q = {};
|
|
484
|
+
function gn(e, n) {
|
|
485
|
+
return I(e == null ? void 0 : e.domain, n);
|
|
486
|
+
}
|
|
487
|
+
function bn(e, n) {
|
|
488
|
+
return j(e == null ? void 0 : e.domain, q, n, "readDomainJsonOrThrow");
|
|
489
|
+
}
|
|
490
|
+
function wn(e, n) {
|
|
491
|
+
return U(e == null ? void 0 : e.domain, q, n);
|
|
492
|
+
}
|
|
493
|
+
const y = {
|
|
494
|
+
Alphabet: "pl7.app/alphabet",
|
|
495
|
+
DiscreteValues: "pl7.app/discreteValues",
|
|
496
|
+
Format: "pl7.app/format",
|
|
497
|
+
Graph: {
|
|
498
|
+
IsVirtual: "pl7.app/graph/isVirtual"
|
|
499
|
+
},
|
|
500
|
+
HideDataFromUi: "pl7.app/hideDataFromUi",
|
|
501
|
+
IsLinkerColumn: "pl7.app/isLinkerColumn",
|
|
502
|
+
Label: "pl7.app/label",
|
|
503
|
+
Max: "pl7.app/max",
|
|
504
|
+
Min: "pl7.app/min",
|
|
505
|
+
Parents: "pl7.app/parents",
|
|
506
|
+
Sequence: {
|
|
507
|
+
Annotation: {
|
|
508
|
+
Mapping: "pl7.app/sequence/annotation/mapping"
|
|
509
|
+
},
|
|
510
|
+
IsAnnotation: "pl7.app/sequence/isAnnotation"
|
|
511
|
+
},
|
|
512
|
+
Table: {
|
|
513
|
+
FontFamily: "pl7.app/table/fontFamily",
|
|
514
|
+
OrderPriority: "pl7.app/table/orderPriority",
|
|
515
|
+
Visibility: "pl7.app/table/visibility"
|
|
516
|
+
},
|
|
517
|
+
Trace: "pl7.app/trace"
|
|
518
|
+
}, he = l.object({
|
|
519
|
+
type: l.nativeEnum(g),
|
|
520
|
+
name: l.string(),
|
|
521
|
+
domain: l.record(l.string(), l.string()).optional(),
|
|
522
|
+
annotations: l.record(l.string(), l.string()).optional(),
|
|
523
|
+
parentAxes: l.array(l.number()).optional()
|
|
524
|
+
}).passthrough(), W = {
|
|
525
|
+
[y.DiscreteValues]: l.array(l.string()).or(l.array(l.number())),
|
|
526
|
+
[y.Graph.IsVirtual]: l.boolean(),
|
|
527
|
+
[y.HideDataFromUi]: l.boolean(),
|
|
528
|
+
[y.IsLinkerColumn]: l.boolean(),
|
|
529
|
+
[y.Max]: l.number(),
|
|
530
|
+
[y.Min]: l.number(),
|
|
531
|
+
[y.Parents]: l.array(he),
|
|
532
|
+
[y.Sequence.Annotation.Mapping]: l.record(l.string(), l.string()),
|
|
533
|
+
[y.Sequence.IsAnnotation]: l.boolean(),
|
|
534
|
+
[y.Table.OrderPriority]: l.number(),
|
|
535
|
+
[y.Trace]: l.record(l.string(), l.unknown())
|
|
536
|
+
};
|
|
537
|
+
function An(e, n) {
|
|
538
|
+
return I(e == null ? void 0 : e.annotations, n);
|
|
539
|
+
}
|
|
540
|
+
function vn(e, n) {
|
|
541
|
+
return j(e == null ? void 0 : e.annotations, W, n, "readAnnotationJsonOrThrow");
|
|
542
|
+
}
|
|
543
|
+
function z(e, n) {
|
|
544
|
+
return U(e == null ? void 0 : e.annotations, W, n);
|
|
545
|
+
}
|
|
546
|
+
function O(e) {
|
|
547
|
+
return { axis: e, children: [] };
|
|
548
|
+
}
|
|
549
|
+
function k(e) {
|
|
550
|
+
const n = O(e);
|
|
551
|
+
let t = [n];
|
|
552
|
+
for (; t.length; ) {
|
|
553
|
+
const r = [];
|
|
554
|
+
for (const o of t)
|
|
555
|
+
o.children = o.axis.parentAxesSpec.map(O), r.push(...o.children);
|
|
556
|
+
t = r;
|
|
557
|
+
}
|
|
558
|
+
return n;
|
|
559
|
+
}
|
|
560
|
+
function xn(e) {
|
|
561
|
+
const n = /* @__PURE__ */ new Set([m(p(e.axis))]);
|
|
562
|
+
let t = [e];
|
|
563
|
+
for (; t.length; ) {
|
|
564
|
+
const r = [];
|
|
565
|
+
for (const o of t)
|
|
566
|
+
for (const i of o.children)
|
|
567
|
+
n.add(m(p(i.axis))), r.push(i);
|
|
568
|
+
t = r;
|
|
569
|
+
}
|
|
570
|
+
return n;
|
|
571
|
+
}
|
|
572
|
+
function P(e) {
|
|
573
|
+
const n = [e.axis];
|
|
574
|
+
let t = [e];
|
|
575
|
+
for (; t.length; ) {
|
|
576
|
+
const r = [];
|
|
577
|
+
for (const o of t)
|
|
578
|
+
for (const i of o.children)
|
|
579
|
+
n.push(i.axis), r.push(i);
|
|
580
|
+
t = r;
|
|
581
|
+
}
|
|
582
|
+
return n;
|
|
583
|
+
}
|
|
584
|
+
function D(e) {
|
|
585
|
+
return m(P(k(e)).map(p));
|
|
586
|
+
}
|
|
587
|
+
function ye(e, n) {
|
|
588
|
+
if (e.name !== n.name)
|
|
589
|
+
return e.name < n.name ? 1 : -1;
|
|
590
|
+
if (e.type !== n.type)
|
|
591
|
+
return e.type < n.type ? 1 : -1;
|
|
592
|
+
const t = m(e.domain ?? {}), r = m(n.domain ?? {});
|
|
593
|
+
if (t !== r)
|
|
594
|
+
return t < r ? 1 : -1;
|
|
595
|
+
const o = D(e), i = D(n);
|
|
596
|
+
if (o !== i)
|
|
597
|
+
return o < i ? 1 : -1;
|
|
598
|
+
const s = m(e.annotations ?? {}), a = m(n.annotations ?? {});
|
|
599
|
+
return s !== a ? s < a ? 1 : -1 : 0;
|
|
600
|
+
}
|
|
601
|
+
function ge(e) {
|
|
602
|
+
const n = z(e, y.Parents);
|
|
603
|
+
return n === void 0 ? [] : n;
|
|
604
|
+
}
|
|
605
|
+
function H(e) {
|
|
606
|
+
e.parentAxesSpec.forEach(H), e.parentAxesSpec.sort(ye);
|
|
607
|
+
}
|
|
608
|
+
function be(e) {
|
|
609
|
+
let t = [O(e)];
|
|
610
|
+
const r = new Set(m(p(e)));
|
|
611
|
+
for (; t.length; ) {
|
|
612
|
+
const o = [], i = /* @__PURE__ */ new Set();
|
|
613
|
+
for (const s of t) {
|
|
614
|
+
s.children = s.axis.parentAxesSpec.map(O);
|
|
615
|
+
for (const a of s.children) {
|
|
616
|
+
const u = m(p(a.axis));
|
|
617
|
+
if (!i.has(u)) {
|
|
618
|
+
if (o.push(a), i.add(u), r.has(u))
|
|
619
|
+
return !0;
|
|
620
|
+
r.add(u);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
t = o;
|
|
625
|
+
}
|
|
626
|
+
return !1;
|
|
627
|
+
}
|
|
628
|
+
function _(e) {
|
|
629
|
+
if (!e.length)
|
|
630
|
+
return [];
|
|
631
|
+
const n = e.map((t) => {
|
|
632
|
+
const { parentAxes: r, ...o } = t;
|
|
633
|
+
return { ...o, annotations: { ...o.annotations }, parentAxesSpec: [] };
|
|
634
|
+
});
|
|
635
|
+
return e.forEach((t, r) => {
|
|
636
|
+
var i;
|
|
637
|
+
const o = n[r];
|
|
638
|
+
t.parentAxes ? o.parentAxesSpec = t.parentAxes.map((s) => n[s]) : (o.parentAxesSpec = _(ge(t)), (i = o.annotations) == null || delete i[y.Parents]);
|
|
639
|
+
}), n.some(be) ? n.forEach((t) => {
|
|
640
|
+
t.parentAxesSpec = [];
|
|
641
|
+
}) : n.forEach((t) => {
|
|
642
|
+
H(t);
|
|
643
|
+
}), n;
|
|
644
|
+
}
|
|
645
|
+
function kn(e) {
|
|
646
|
+
const n = e.map((t) => m(p(t)));
|
|
647
|
+
return e.map((t) => {
|
|
648
|
+
const o = t.parentAxesSpec.map((a) => m(p(a))).map((a) => n.indexOf(a)), { parentAxesSpec: i, ...s } = t;
|
|
649
|
+
return o.length ? { ...s, parentAxes: o } : s;
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
const Pn = {
|
|
653
|
+
Label: "pl7.app/label",
|
|
654
|
+
Table: {
|
|
655
|
+
RowSelection: "pl7.app/table/row-selection"
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
function Sn(e) {
|
|
410
659
|
return {
|
|
411
660
|
kind: e.kind,
|
|
412
661
|
valueType: e.valueType,
|
|
413
662
|
name: e.name,
|
|
414
663
|
domain: e.domain,
|
|
415
664
|
parentAxes: e.parentAxes,
|
|
416
|
-
axesId:
|
|
665
|
+
axesId: G(e.axesSpec)
|
|
417
666
|
};
|
|
418
667
|
}
|
|
419
|
-
function
|
|
668
|
+
function En(e) {
|
|
420
669
|
return {
|
|
421
670
|
columnId: e.id,
|
|
422
671
|
spec: e.spec
|
|
423
672
|
};
|
|
424
673
|
}
|
|
425
|
-
function
|
|
426
|
-
const { type: n, name:
|
|
427
|
-
return
|
|
674
|
+
function p(e) {
|
|
675
|
+
const { type: n, name: t, domain: r } = e, o = { type: n, name: t };
|
|
676
|
+
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
428
677
|
}
|
|
429
|
-
function
|
|
430
|
-
return e.map(
|
|
678
|
+
function G(e) {
|
|
679
|
+
return e.map(p);
|
|
431
680
|
}
|
|
432
|
-
function
|
|
433
|
-
return
|
|
681
|
+
function On(e) {
|
|
682
|
+
return m(p(e));
|
|
434
683
|
}
|
|
435
|
-
function
|
|
684
|
+
function we(e, n) {
|
|
436
685
|
if (e === void 0) return n === void 0;
|
|
437
686
|
if (n === void 0) return !0;
|
|
438
|
-
for (const
|
|
439
|
-
if (e[
|
|
687
|
+
for (const t in n)
|
|
688
|
+
if (e[t] !== n[t]) return !1;
|
|
440
689
|
return !0;
|
|
441
690
|
}
|
|
442
|
-
function
|
|
443
|
-
return e.name === n.name &&
|
|
691
|
+
function Ae(e, n) {
|
|
692
|
+
return e.name === n.name && we(e.domain, n.domain);
|
|
693
|
+
}
|
|
694
|
+
function Q(e, n) {
|
|
695
|
+
const t = Math.floor(n / 8), r = 1 << 7 - n % 8;
|
|
696
|
+
return (e[t] & r) > 0;
|
|
697
|
+
}
|
|
698
|
+
function ve(e, n) {
|
|
699
|
+
return Q(e.absent, n);
|
|
700
|
+
}
|
|
701
|
+
function xe(e, n) {
|
|
702
|
+
if (e.isNA) return Q(e.isNA, n);
|
|
703
|
+
const t = e.type, r = e.data[n];
|
|
704
|
+
switch (t) {
|
|
705
|
+
case g.Int:
|
|
706
|
+
return r === -2147483648;
|
|
707
|
+
case g.Long:
|
|
708
|
+
return r === -9007199254740991n;
|
|
709
|
+
case g.Float:
|
|
710
|
+
return Number.isNaN(r);
|
|
711
|
+
case g.Double:
|
|
712
|
+
return Number.isNaN(r);
|
|
713
|
+
case g.String:
|
|
714
|
+
return r === null;
|
|
715
|
+
case g.Bytes:
|
|
716
|
+
return r === null;
|
|
717
|
+
default:
|
|
718
|
+
throw Error(`unsupported data type: ${t}`);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
const ke = { type: "absent" };
|
|
722
|
+
function Fn(e) {
|
|
723
|
+
return typeof e == "object" && e !== null && "type" in e && e.type === "absent";
|
|
444
724
|
}
|
|
445
|
-
|
|
446
|
-
|
|
725
|
+
const X = null;
|
|
726
|
+
function Pe(e) {
|
|
727
|
+
return e === X;
|
|
447
728
|
}
|
|
448
|
-
function
|
|
729
|
+
function Cn(e, n) {
|
|
730
|
+
return !(n ? n(e) : Pe(e));
|
|
731
|
+
}
|
|
732
|
+
function Y(e, n, t) {
|
|
733
|
+
const r = e.type;
|
|
734
|
+
if (r === g.Bytes)
|
|
735
|
+
throw Error("Bytes not yet supported");
|
|
736
|
+
if (t && "dataType" in t && t.dataType !== void 0 && t.dataType !== r)
|
|
737
|
+
throw Error(`expected column of type ${t.dataType}, got ${r}`);
|
|
738
|
+
if (ve(e, n))
|
|
739
|
+
return (t == null ? void 0 : t.absent) !== void 0 ? t.absent : ke;
|
|
740
|
+
if (xe(e, n))
|
|
741
|
+
return (t == null ? void 0 : t.na) !== void 0 ? t.na : X;
|
|
742
|
+
const o = e.data[n];
|
|
743
|
+
switch (r) {
|
|
744
|
+
case g.Int:
|
|
745
|
+
return o;
|
|
746
|
+
case g.Long:
|
|
747
|
+
return Number(o);
|
|
748
|
+
case g.Float:
|
|
749
|
+
return o;
|
|
750
|
+
case g.Double:
|
|
751
|
+
return o;
|
|
752
|
+
case g.String:
|
|
753
|
+
return o;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
function Ln(e, n, t) {
|
|
757
|
+
return Y(e, n, t);
|
|
758
|
+
}
|
|
759
|
+
function Jn(e, n, t) {
|
|
760
|
+
return Y(e, n, t);
|
|
761
|
+
}
|
|
762
|
+
function In(e, n) {
|
|
763
|
+
return { ...e, src: E(e.src, n) };
|
|
764
|
+
}
|
|
765
|
+
function E(e, n) {
|
|
449
766
|
switch (e.type) {
|
|
450
767
|
case "column":
|
|
451
768
|
return {
|
|
@@ -465,19 +782,19 @@ function v(e, n) {
|
|
|
465
782
|
case "full":
|
|
466
783
|
return {
|
|
467
784
|
type: e.type,
|
|
468
|
-
entries: e.entries.map((
|
|
785
|
+
entries: e.entries.map((t) => E(t, n))
|
|
469
786
|
};
|
|
470
787
|
case "outer":
|
|
471
788
|
return {
|
|
472
789
|
type: "outer",
|
|
473
|
-
primary:
|
|
474
|
-
secondary: e.secondary.map((
|
|
790
|
+
primary: E(e.primary, n),
|
|
791
|
+
secondary: e.secondary.map((t) => E(t, n))
|
|
475
792
|
};
|
|
476
793
|
default:
|
|
477
|
-
|
|
794
|
+
S(e);
|
|
478
795
|
}
|
|
479
796
|
}
|
|
480
|
-
function
|
|
797
|
+
function jn(e) {
|
|
481
798
|
switch (e.type) {
|
|
482
799
|
case "axis":
|
|
483
800
|
return {
|
|
@@ -491,49 +808,49 @@ function Ue(e) {
|
|
|
491
808
|
};
|
|
492
809
|
}
|
|
493
810
|
}
|
|
494
|
-
function
|
|
495
|
-
return
|
|
811
|
+
function Se(e) {
|
|
812
|
+
return F(e);
|
|
496
813
|
}
|
|
497
|
-
function
|
|
814
|
+
function Dn(e) {
|
|
498
815
|
return JSON.parse(e);
|
|
499
816
|
}
|
|
500
|
-
function
|
|
501
|
-
return
|
|
817
|
+
function N(e) {
|
|
818
|
+
return F(p(e));
|
|
502
819
|
}
|
|
503
|
-
function
|
|
820
|
+
function R(e, n) {
|
|
504
821
|
return JSON.stringify([e, n]);
|
|
505
822
|
}
|
|
506
|
-
class
|
|
823
|
+
class Nn {
|
|
507
824
|
/**
|
|
508
825
|
* Creates a new anchor context from a set of anchor column specifications
|
|
509
826
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
510
827
|
*/
|
|
511
828
|
constructor(n) {
|
|
512
|
-
|
|
513
|
-
|
|
829
|
+
b(this, "domains", /* @__PURE__ */ new Map());
|
|
830
|
+
b(this, "axes", /* @__PURE__ */ new Map());
|
|
514
831
|
/**
|
|
515
832
|
* Domain packs are used to group domain keys that can be anchored to the same anchor
|
|
516
833
|
* This is used to optimize the lookup of domain anchors
|
|
517
834
|
*/
|
|
518
|
-
|
|
835
|
+
b(this, "domainPacks", []);
|
|
519
836
|
/**
|
|
520
837
|
* Maps domain packs to anchors
|
|
521
838
|
*/
|
|
522
|
-
|
|
839
|
+
b(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
523
840
|
this.anchors = n;
|
|
524
|
-
const
|
|
525
|
-
|
|
526
|
-
for (const [
|
|
527
|
-
for (let
|
|
528
|
-
const s =
|
|
529
|
-
this.axes.set(a, { anchor:
|
|
841
|
+
const t = Object.entries(n);
|
|
842
|
+
t.sort((r, o) => r[0].localeCompare(o[0]));
|
|
843
|
+
for (const [r, o] of t) {
|
|
844
|
+
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
845
|
+
const s = o.axesSpec[i], a = N(s);
|
|
846
|
+
this.axes.set(a, { anchor: r, idx: i });
|
|
530
847
|
}
|
|
531
|
-
if (
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
for (const [s, a] of
|
|
535
|
-
const u =
|
|
536
|
-
this.domains.set(u,
|
|
848
|
+
if (o.domain !== void 0) {
|
|
849
|
+
const i = Object.entries(o.domain);
|
|
850
|
+
i.sort((s, a) => s[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([s]) => s));
|
|
851
|
+
for (const [s, a] of i) {
|
|
852
|
+
const u = R(s, a);
|
|
853
|
+
this.domains.set(u, r);
|
|
537
854
|
}
|
|
538
855
|
}
|
|
539
856
|
}
|
|
@@ -541,12 +858,12 @@ class Ke {
|
|
|
541
858
|
/**
|
|
542
859
|
* Implementation of derive method
|
|
543
860
|
*/
|
|
544
|
-
derive(n,
|
|
545
|
-
const
|
|
861
|
+
derive(n, t) {
|
|
862
|
+
const r = {
|
|
546
863
|
name: n.name,
|
|
547
864
|
axes: []
|
|
548
865
|
};
|
|
549
|
-
let
|
|
866
|
+
let o;
|
|
550
867
|
if (n.domain !== void 0)
|
|
551
868
|
e:
|
|
552
869
|
for (const s of this.domainPacks) {
|
|
@@ -560,38 +877,38 @@ class Ke {
|
|
|
560
877
|
}
|
|
561
878
|
const u = this.domainPackToAnchor.get(JSON.stringify(a));
|
|
562
879
|
if (u !== void 0) {
|
|
563
|
-
|
|
880
|
+
r.domainAnchor = u, o = new Set(s);
|
|
564
881
|
break;
|
|
565
882
|
}
|
|
566
883
|
}
|
|
567
884
|
for (const [s, a] of Object.entries(n.domain ?? {})) {
|
|
568
|
-
if (
|
|
885
|
+
if (o !== void 0 && o.has(s))
|
|
569
886
|
continue;
|
|
570
|
-
const u =
|
|
571
|
-
|
|
887
|
+
const u = R(s, a), c = this.domains.get(u);
|
|
888
|
+
r.domain ?? (r.domain = {}), r.domain[s] = c ? { anchor: c } : a;
|
|
572
889
|
}
|
|
573
|
-
if (
|
|
574
|
-
const a =
|
|
575
|
-
return u === void 0 ?
|
|
576
|
-
}), !
|
|
577
|
-
return
|
|
578
|
-
const
|
|
579
|
-
for (const s of
|
|
890
|
+
if (r.axes = n.axesSpec.map((s) => {
|
|
891
|
+
const a = N(s), u = this.axes.get(a);
|
|
892
|
+
return u === void 0 ? p(s) : u;
|
|
893
|
+
}), !t || t.length === 0)
|
|
894
|
+
return r;
|
|
895
|
+
const i = [];
|
|
896
|
+
for (const s of t) {
|
|
580
897
|
const [a, u] = s;
|
|
581
898
|
if (typeof a == "number") {
|
|
582
899
|
if (a < 0 || a >= n.axesSpec.length)
|
|
583
900
|
throw new Error(`Axis index ${a} is out of bounds (0-${n.axesSpec.length - 1})`);
|
|
584
|
-
|
|
901
|
+
i.push([a, u]);
|
|
585
902
|
} else {
|
|
586
903
|
const c = n.axesSpec.findIndex((d) => d.name === a);
|
|
587
904
|
if (c === -1)
|
|
588
905
|
throw new Error(`Axis with name "${a}" not found in the column specification`);
|
|
589
|
-
|
|
906
|
+
i.push([c, u]);
|
|
590
907
|
}
|
|
591
908
|
}
|
|
592
|
-
return
|
|
593
|
-
source:
|
|
594
|
-
axisFilters:
|
|
909
|
+
return i.sort((s, a) => s[0] - a[0]), {
|
|
910
|
+
source: r,
|
|
911
|
+
axisFilters: i
|
|
595
912
|
};
|
|
596
913
|
}
|
|
597
914
|
/**
|
|
@@ -600,155 +917,155 @@ class Ke {
|
|
|
600
917
|
* @param axisFilters Optional axis filters to apply to the column
|
|
601
918
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
602
919
|
*/
|
|
603
|
-
deriveS(n,
|
|
604
|
-
return
|
|
920
|
+
deriveS(n, t) {
|
|
921
|
+
return Se(this.derive(n, t));
|
|
605
922
|
}
|
|
606
923
|
}
|
|
607
|
-
function
|
|
608
|
-
const
|
|
609
|
-
if (
|
|
610
|
-
const
|
|
611
|
-
if (!
|
|
612
|
-
throw new Error(`Anchor "${
|
|
613
|
-
const s =
|
|
614
|
-
|
|
924
|
+
function Rn(e, n, t) {
|
|
925
|
+
const r = { ...n }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? !1;
|
|
926
|
+
if (r.domainAnchor !== void 0) {
|
|
927
|
+
const i = e[r.domainAnchor];
|
|
928
|
+
if (!i)
|
|
929
|
+
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
930
|
+
const s = i.domain || {};
|
|
931
|
+
r.domain = { ...s, ...r.domain }, delete r.domainAnchor;
|
|
615
932
|
}
|
|
616
|
-
if (
|
|
617
|
-
const
|
|
618
|
-
for (const [s, a] of Object.entries(
|
|
933
|
+
if (r.domain) {
|
|
934
|
+
const i = {};
|
|
935
|
+
for (const [s, a] of Object.entries(r.domain))
|
|
619
936
|
if (typeof a == "string")
|
|
620
|
-
|
|
937
|
+
i[s] = a;
|
|
621
938
|
else {
|
|
622
939
|
const u = e[a.anchor];
|
|
623
940
|
if (!u)
|
|
624
941
|
throw new Error(`Anchor "${a.anchor}" not found for domain key "${s}"`);
|
|
625
942
|
if (!u.domain || u.domain[s] === void 0) {
|
|
626
|
-
if (!
|
|
943
|
+
if (!o)
|
|
627
944
|
throw new Error(`Domain key "${s}" not found in anchor "${a.anchor}"`);
|
|
628
945
|
continue;
|
|
629
946
|
}
|
|
630
|
-
|
|
947
|
+
i[s] = u.domain[s];
|
|
631
948
|
}
|
|
632
|
-
|
|
949
|
+
r.domain = i;
|
|
633
950
|
}
|
|
634
|
-
return
|
|
951
|
+
return r.axes && (r.axes = r.axes.map((i) => Ee(e, i))), r;
|
|
635
952
|
}
|
|
636
|
-
function
|
|
637
|
-
if (!
|
|
953
|
+
function Ee(e, n) {
|
|
954
|
+
if (!Oe(n))
|
|
638
955
|
return n;
|
|
639
|
-
const
|
|
640
|
-
if (!
|
|
641
|
-
throw new Error(`Anchor "${
|
|
956
|
+
const t = n.anchor, r = e[t];
|
|
957
|
+
if (!r)
|
|
958
|
+
throw new Error(`Anchor "${t}" not found for axis reference`);
|
|
642
959
|
if ("idx" in n) {
|
|
643
|
-
if (n.idx < 0 || n.idx >=
|
|
644
|
-
throw new Error(`Axis index ${n.idx} out of bounds for anchor "${
|
|
645
|
-
return
|
|
960
|
+
if (n.idx < 0 || n.idx >= r.axesSpec.length)
|
|
961
|
+
throw new Error(`Axis index ${n.idx} out of bounds for anchor "${t}"`);
|
|
962
|
+
return r.axesSpec[n.idx];
|
|
646
963
|
} else if ("name" in n) {
|
|
647
|
-
const
|
|
648
|
-
if (
|
|
649
|
-
throw new Error(`Multiple axes with name "${n.name}" found in anchor "${
|
|
650
|
-
if (
|
|
651
|
-
throw new Error(`Axis with name "${n.name}" not found in anchor "${
|
|
652
|
-
return
|
|
964
|
+
const o = r.axesSpec.filter((i) => i.name === n.name);
|
|
965
|
+
if (o.length > 1)
|
|
966
|
+
throw new Error(`Multiple axes with name "${n.name}" found in anchor "${t}"`);
|
|
967
|
+
if (o.length === 0)
|
|
968
|
+
throw new Error(`Axis with name "${n.name}" not found in anchor "${t}"`);
|
|
969
|
+
return o[0];
|
|
653
970
|
} else if ("id" in n) {
|
|
654
|
-
const
|
|
655
|
-
if (
|
|
656
|
-
throw new Error(`Multiple matching axes found for matcher in anchor "${
|
|
657
|
-
if (
|
|
658
|
-
throw new Error(`No matching axis found for matcher in anchor "${
|
|
659
|
-
return
|
|
971
|
+
const o = r.axesSpec.filter((i) => Ae(n.id, p(i)));
|
|
972
|
+
if (o.length > 1)
|
|
973
|
+
throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
|
|
974
|
+
if (o.length === 0)
|
|
975
|
+
throw new Error(`No matching axis found for matcher in anchor "${t}"`);
|
|
976
|
+
return o[0];
|
|
660
977
|
}
|
|
661
978
|
throw new Error("Unsupported axis reference type");
|
|
662
979
|
}
|
|
663
|
-
function
|
|
980
|
+
function Oe(e) {
|
|
664
981
|
return typeof e == "object" && "anchor" in e;
|
|
665
982
|
}
|
|
666
|
-
function
|
|
983
|
+
function Tn(e) {
|
|
667
984
|
return typeof e == "object" && e !== null && "source" in e && "axisFilters" in e;
|
|
668
985
|
}
|
|
669
|
-
function
|
|
986
|
+
function w(e) {
|
|
670
987
|
return e.kind === "PColumn";
|
|
671
988
|
}
|
|
672
|
-
function
|
|
673
|
-
return
|
|
989
|
+
function Fe(e) {
|
|
990
|
+
return w(e.spec);
|
|
674
991
|
}
|
|
675
|
-
function
|
|
676
|
-
return
|
|
992
|
+
function $n(e) {
|
|
993
|
+
return w(e.obj);
|
|
677
994
|
}
|
|
678
|
-
function
|
|
679
|
-
return
|
|
995
|
+
function Kn(e) {
|
|
996
|
+
return w(e.obj.spec);
|
|
680
997
|
}
|
|
681
|
-
function
|
|
682
|
-
if (!
|
|
998
|
+
function Vn(e) {
|
|
999
|
+
if (!Fe(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
683
1000
|
return e;
|
|
684
1001
|
}
|
|
685
|
-
function
|
|
1002
|
+
function Mn(e, n) {
|
|
686
1003
|
return e === void 0 ? void 0 : {
|
|
687
1004
|
...e,
|
|
688
1005
|
data: n(e.data)
|
|
689
1006
|
};
|
|
690
1007
|
}
|
|
691
|
-
function
|
|
692
|
-
const n = /* @__PURE__ */ new Map(),
|
|
693
|
-
switch (
|
|
1008
|
+
function Bn(e) {
|
|
1009
|
+
const n = /* @__PURE__ */ new Map(), t = (r) => {
|
|
1010
|
+
switch (r.type) {
|
|
694
1011
|
case "column":
|
|
695
|
-
n.set(
|
|
1012
|
+
n.set(r.column.id, r.column);
|
|
696
1013
|
return;
|
|
697
1014
|
case "slicedColumn":
|
|
698
|
-
n.set(
|
|
1015
|
+
n.set(r.column.id, r.column);
|
|
699
1016
|
return;
|
|
700
1017
|
case "inlineColumn":
|
|
701
1018
|
return;
|
|
702
1019
|
case "full":
|
|
703
1020
|
case "inner":
|
|
704
|
-
for (const
|
|
1021
|
+
for (const o of r.entries) t(o);
|
|
705
1022
|
return;
|
|
706
1023
|
case "outer":
|
|
707
|
-
r
|
|
708
|
-
for (const
|
|
1024
|
+
t(r.primary);
|
|
1025
|
+
for (const o of r.secondary) t(o);
|
|
709
1026
|
return;
|
|
710
1027
|
default:
|
|
711
|
-
|
|
1028
|
+
S(r);
|
|
712
1029
|
}
|
|
713
1030
|
};
|
|
714
|
-
return
|
|
1031
|
+
return t(e), [...n.values()];
|
|
715
1032
|
}
|
|
716
|
-
function
|
|
1033
|
+
function Ce(e) {
|
|
717
1034
|
throw new Error("Unexpected object: " + e);
|
|
718
1035
|
}
|
|
719
|
-
function
|
|
1036
|
+
function L(e, n) {
|
|
720
1037
|
switch (e.type) {
|
|
721
1038
|
case "and":
|
|
722
|
-
for (const
|
|
723
|
-
if (!
|
|
1039
|
+
for (const t of e.operands)
|
|
1040
|
+
if (!L(t, n)) return !1;
|
|
724
1041
|
return !0;
|
|
725
1042
|
case "or":
|
|
726
|
-
for (const
|
|
727
|
-
if (
|
|
1043
|
+
for (const t of e.operands)
|
|
1044
|
+
if (L(t, n)) return !0;
|
|
728
1045
|
return !1;
|
|
729
1046
|
case "not":
|
|
730
|
-
return !
|
|
1047
|
+
return !L(e.operand, n);
|
|
731
1048
|
case "name":
|
|
732
|
-
return
|
|
1049
|
+
return w(n) && n.name === e.name;
|
|
733
1050
|
case "name_pattern":
|
|
734
|
-
return
|
|
1051
|
+
return w(n) && !!n.name.match(e.pattern);
|
|
735
1052
|
case "annotation":
|
|
736
|
-
return
|
|
1053
|
+
return w(n) && n.annotations !== void 0 && n.annotations[e.annotation] === e.value;
|
|
737
1054
|
case "annotation_pattern":
|
|
738
|
-
return
|
|
1055
|
+
return w(n) && n.annotations !== void 0 && n.annotations[e.annotation] !== void 0 && !!n.annotations[e.annotation].match(e.pattern);
|
|
739
1056
|
case "has_axes":
|
|
740
|
-
return
|
|
741
|
-
(
|
|
742
|
-
(
|
|
743
|
-
([
|
|
1057
|
+
return w(n) && e.axes.every(
|
|
1058
|
+
(t) => n.axesSpec.some(
|
|
1059
|
+
(r) => (t.type === void 0 || t.type === r.type) && (t.name === void 0 || t.name === r.name) && (t.domain === void 0 || Object.keys(t.domain).length === 0 || r.domain !== void 0 && Object.entries(t.domain).every(
|
|
1060
|
+
([o, i]) => r.domain[o] === i
|
|
744
1061
|
))
|
|
745
1062
|
)
|
|
746
1063
|
);
|
|
747
1064
|
default:
|
|
748
|
-
|
|
1065
|
+
Ce(e);
|
|
749
1066
|
}
|
|
750
1067
|
}
|
|
751
|
-
function
|
|
1068
|
+
function T(e, n) {
|
|
752
1069
|
if (e.name !== void 0 && e.name !== n.name)
|
|
753
1070
|
return !1;
|
|
754
1071
|
if (e.type !== void 0) {
|
|
@@ -759,14 +1076,14 @@ function x(e, n) {
|
|
|
759
1076
|
return !1;
|
|
760
1077
|
}
|
|
761
1078
|
if (e.domain !== void 0) {
|
|
762
|
-
const
|
|
763
|
-
for (const [
|
|
764
|
-
if (r
|
|
1079
|
+
const t = n.domain || {};
|
|
1080
|
+
for (const [r, o] of Object.entries(e.domain))
|
|
1081
|
+
if (t[r] !== o)
|
|
765
1082
|
return !1;
|
|
766
1083
|
}
|
|
767
1084
|
return !0;
|
|
768
1085
|
}
|
|
769
|
-
function
|
|
1086
|
+
function $(e, n) {
|
|
770
1087
|
if (n.name !== void 0 && e.name !== n.name || n.namePattern !== void 0 && !new RegExp(n.namePattern).test(e.name))
|
|
771
1088
|
return !1;
|
|
772
1089
|
if (n.type !== void 0) {
|
|
@@ -777,64 +1094,236 @@ function E(e, n) {
|
|
|
777
1094
|
return !1;
|
|
778
1095
|
}
|
|
779
1096
|
if (n.domain !== void 0) {
|
|
780
|
-
const
|
|
781
|
-
for (const [
|
|
782
|
-
if (r
|
|
1097
|
+
const t = e.domain || {};
|
|
1098
|
+
for (const [r, o] of Object.entries(n.domain))
|
|
1099
|
+
if (t[r] !== o)
|
|
783
1100
|
return !1;
|
|
784
1101
|
}
|
|
785
1102
|
if (n.axes !== void 0) {
|
|
786
|
-
const
|
|
1103
|
+
const t = e.axesSpec.map(p);
|
|
787
1104
|
if (n.partialAxesMatch) {
|
|
788
|
-
for (const
|
|
789
|
-
if (!
|
|
1105
|
+
for (const r of n.axes)
|
|
1106
|
+
if (!t.some((o) => T(r, o)))
|
|
790
1107
|
return !1;
|
|
791
1108
|
} else {
|
|
792
|
-
if (
|
|
1109
|
+
if (t.length !== n.axes.length)
|
|
793
1110
|
return !1;
|
|
794
|
-
for (let
|
|
795
|
-
if (!
|
|
1111
|
+
for (let r = 0; r < n.axes.length; r++)
|
|
1112
|
+
if (!T(n.axes[r], t[r]))
|
|
796
1113
|
return !1;
|
|
797
1114
|
}
|
|
798
1115
|
}
|
|
799
1116
|
if (n.annotations !== void 0) {
|
|
800
|
-
const
|
|
801
|
-
for (const [
|
|
802
|
-
if (r
|
|
1117
|
+
const t = e.annotations || {};
|
|
1118
|
+
for (const [r, o] of Object.entries(n.annotations))
|
|
1119
|
+
if (t[r] !== o)
|
|
803
1120
|
return !1;
|
|
804
1121
|
}
|
|
805
1122
|
if (n.annotationPatterns !== void 0) {
|
|
806
|
-
const
|
|
807
|
-
for (const [
|
|
808
|
-
const
|
|
809
|
-
if (
|
|
1123
|
+
const t = e.annotations || {};
|
|
1124
|
+
for (const [r, o] of Object.entries(n.annotationPatterns)) {
|
|
1125
|
+
const i = t[r];
|
|
1126
|
+
if (i === void 0 || !new RegExp(o).test(i))
|
|
810
1127
|
return !1;
|
|
811
1128
|
}
|
|
812
1129
|
}
|
|
813
1130
|
return !0;
|
|
814
1131
|
}
|
|
815
|
-
function
|
|
816
|
-
return Array.isArray(e) ? (n) => e.some((
|
|
1132
|
+
function Un(e) {
|
|
1133
|
+
return Array.isArray(e) ? (n) => e.some((t) => w(n) && $(n, t)) : (n) => w(n) && $(n, e);
|
|
817
1134
|
}
|
|
818
|
-
function
|
|
1135
|
+
function qn(e) {
|
|
819
1136
|
const n = {
|
|
820
1137
|
kind: e.kind,
|
|
821
1138
|
name: e.name
|
|
822
1139
|
};
|
|
823
|
-
return e.domain !== void 0 && (n.domain = e.domain),
|
|
1140
|
+
return e.domain !== void 0 && (n.domain = e.domain), w(e) && (n.axesSpec = G(e.axesSpec)), F(n);
|
|
824
1141
|
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
1142
|
+
class A {
|
|
1143
|
+
constructor(n) {
|
|
1144
|
+
/** Graph of linkers connected by axes (single or grouped by parents) */
|
|
1145
|
+
b(this, "data");
|
|
1146
|
+
this.data = n;
|
|
1147
|
+
}
|
|
1148
|
+
get keys() {
|
|
1149
|
+
return this.data.keys();
|
|
1150
|
+
}
|
|
1151
|
+
get keyAxesIds() {
|
|
1152
|
+
return [...this.data.keys()].map(me);
|
|
1153
|
+
}
|
|
1154
|
+
static fromColumns(n) {
|
|
1155
|
+
var r, o;
|
|
1156
|
+
const t = /* @__PURE__ */ new Map();
|
|
1157
|
+
for (const i of n.filter((s) => !!z(s.spec, y.IsLinkerColumn))) {
|
|
1158
|
+
const s = A.getAxesGroups(_(i.spec.axesSpec));
|
|
1159
|
+
if (s.length !== 2)
|
|
1160
|
+
continue;
|
|
1161
|
+
const [a, u] = s, c = A.getAxesRoots(a).map((f) => {
|
|
1162
|
+
const h = P(k(f));
|
|
1163
|
+
return [m(h.map(p)), h];
|
|
1164
|
+
}), d = A.getAxesRoots(u).map((f) => {
|
|
1165
|
+
const h = P(k(f));
|
|
1166
|
+
return [m(h.map(p)), h];
|
|
1167
|
+
});
|
|
1168
|
+
for (const [f, h] of c)
|
|
1169
|
+
t.has(f) || t.set(f, { keyAxesSpec: h, linkWith: /* @__PURE__ */ new Map() });
|
|
1170
|
+
for (const [f, h] of d)
|
|
1171
|
+
t.has(f) || t.set(f, { keyAxesSpec: h, linkWith: /* @__PURE__ */ new Map() });
|
|
1172
|
+
for (const [f] of c)
|
|
1173
|
+
for (const [h] of d)
|
|
1174
|
+
(r = t.get(f)) == null || r.linkWith.set(h, i), (o = t.get(h)) == null || o.linkWith.set(f, i);
|
|
1175
|
+
}
|
|
1176
|
+
return new this(t);
|
|
1177
|
+
}
|
|
1178
|
+
/** Get all available nodes of linker graphs if start from sourceAxesKeys */
|
|
1179
|
+
searchAvailableAxesKeys(n) {
|
|
1180
|
+
const t = new Set(n), r = /* @__PURE__ */ new Set();
|
|
1181
|
+
let o = n;
|
|
1182
|
+
for (; o.length; ) {
|
|
1183
|
+
const i = [];
|
|
1184
|
+
for (const s of o) {
|
|
1185
|
+
const a = this.data.get(s);
|
|
1186
|
+
if (a)
|
|
1187
|
+
for (const u of a.linkWith.keys())
|
|
1188
|
+
!r.has(u) && !t.has(u) && (i.push(u), r.add(u));
|
|
1189
|
+
}
|
|
1190
|
+
o = i;
|
|
1191
|
+
}
|
|
1192
|
+
return r;
|
|
1193
|
+
}
|
|
1194
|
+
/** Get all linker columns that are necessary to reach endKey from startKey */
|
|
1195
|
+
searchLinkerPath(n, t) {
|
|
1196
|
+
const r = {};
|
|
1197
|
+
let o = /* @__PURE__ */ new Set([n]);
|
|
1198
|
+
const i = /* @__PURE__ */ new Set([n]);
|
|
1199
|
+
for (; o.size; ) {
|
|
1200
|
+
const s = /* @__PURE__ */ new Set();
|
|
1201
|
+
for (const a of o) {
|
|
1202
|
+
const u = this.data.get(a);
|
|
1203
|
+
if (u)
|
|
1204
|
+
for (const c of u.linkWith.keys())
|
|
1205
|
+
if (r[c] = a, c === t) {
|
|
1206
|
+
const d = [];
|
|
1207
|
+
let f = t;
|
|
1208
|
+
for (; r[f] !== n; )
|
|
1209
|
+
d.push(f), f = r[f];
|
|
1210
|
+
return d.push(f), d.map((h) => this.data.get(h).linkWith.get(r[h]));
|
|
1211
|
+
} else i.has(c) || (s.add(c), i.add(c));
|
|
1212
|
+
}
|
|
1213
|
+
o = s;
|
|
1214
|
+
}
|
|
1215
|
+
return [];
|
|
1216
|
+
}
|
|
1217
|
+
getLinkerColumnsForAxes({
|
|
1218
|
+
from: n,
|
|
1219
|
+
to: t,
|
|
1220
|
+
throwWhenNoLinkExists: r = !0
|
|
1221
|
+
}) {
|
|
1222
|
+
const o = n.map(A.getLinkerKeyFromAxisSpec);
|
|
1223
|
+
return Array.from(
|
|
1224
|
+
new Map(
|
|
1225
|
+
A.getAxesRoots(t).map(A.getLinkerKeyFromAxisSpec).flatMap((i) => {
|
|
1226
|
+
const s = o.map((a) => this.searchLinkerPath(a, i)).reduce(
|
|
1227
|
+
(a, u) => a.length && a.length < u.length || !u.length ? a : u,
|
|
1228
|
+
[]
|
|
1229
|
+
).map((a) => [a.columnId, a]);
|
|
1230
|
+
if (!s.length && r)
|
|
1231
|
+
throw Error(`Unable to find linker column for ${i}`);
|
|
1232
|
+
return s;
|
|
1233
|
+
})
|
|
1234
|
+
).values()
|
|
1235
|
+
);
|
|
1236
|
+
}
|
|
1237
|
+
/** Get list of axisSpecs from keys of linker columns map */
|
|
1238
|
+
getAxesListFromKeysList(n) {
|
|
1239
|
+
return Array.from(
|
|
1240
|
+
new Map(
|
|
1241
|
+
n.flatMap((t) => {
|
|
1242
|
+
var r;
|
|
1243
|
+
return ((r = this.data.get(t)) == null ? void 0 : r.keyAxesSpec) ?? [];
|
|
1244
|
+
}).map((t) => [m(p(t)), t])
|
|
1245
|
+
).values()
|
|
1246
|
+
);
|
|
1247
|
+
}
|
|
1248
|
+
/** Get axes of target axes that are impossible to be linked to source axes with current linker map */
|
|
1249
|
+
getNonLinkableAxes(n, t) {
|
|
1250
|
+
const r = n.map(A.getLinkerKeyFromAxisSpec), o = t.map(A.getLinkerKeyFromAxisSpec);
|
|
1251
|
+
return Array.from(
|
|
1252
|
+
new Map(
|
|
1253
|
+
t.filter((s, a) => {
|
|
1254
|
+
const u = o[a];
|
|
1255
|
+
return !r.some((c) => this.searchLinkerPath(c, u).length);
|
|
1256
|
+
}).flatMap((s) => P(k(s)).map((a) => [m(p(a)), a]))
|
|
1257
|
+
).values()
|
|
1258
|
+
);
|
|
1259
|
+
}
|
|
1260
|
+
/** Get all axes that can be connected to sourceAxes by linkers */
|
|
1261
|
+
getReachableByLinkersAxesFromAxes(n) {
|
|
1262
|
+
const t = n.map(A.getLinkerKeyFromAxisSpec), r = this.searchAvailableAxesKeys(t);
|
|
1263
|
+
return this.getAxesListFromKeysList([...r]);
|
|
1264
|
+
}
|
|
1265
|
+
static getLinkerKeyFromAxisSpec(n) {
|
|
1266
|
+
return m(P(k(n)).map(p));
|
|
1267
|
+
}
|
|
1268
|
+
/** Split array of axes into several arrays by parents: axes of one group are parents for each other.
|
|
1269
|
+
There are no order inside every group. */
|
|
1270
|
+
static getAxesGroups(n) {
|
|
1271
|
+
switch (n.length) {
|
|
1272
|
+
case 0:
|
|
1273
|
+
return [];
|
|
1274
|
+
case 1:
|
|
1275
|
+
return [[n[0]]];
|
|
1276
|
+
}
|
|
1277
|
+
const t = n.map((u) => m(p(u))), r = n.map(
|
|
1278
|
+
(u) => new Set(
|
|
1279
|
+
u.parentAxesSpec.map((c) => m(p(c))).map((c) => {
|
|
1280
|
+
const d = t.indexOf(c);
|
|
1281
|
+
if (d === -1)
|
|
1282
|
+
throw new Error(`malformed axesSpec: ${JSON.stringify(n)}, unable to locate parent ${c}`);
|
|
1283
|
+
return d;
|
|
1284
|
+
})
|
|
1285
|
+
)
|
|
1286
|
+
), o = [...n.keys()], i = [], s = /* @__PURE__ */ new Set();
|
|
1287
|
+
let a = o.find((u) => !s.has(u));
|
|
1288
|
+
for (; a !== void 0; ) {
|
|
1289
|
+
const u = [a];
|
|
1290
|
+
s.add(a);
|
|
1291
|
+
let c = [a];
|
|
1292
|
+
for (; c.length; ) {
|
|
1293
|
+
const d = /* @__PURE__ */ new Set();
|
|
1294
|
+
for (const f of c) {
|
|
1295
|
+
const h = r[f];
|
|
1296
|
+
o.forEach((v) => {
|
|
1297
|
+
if (v === f || s.has(v))
|
|
1298
|
+
return;
|
|
1299
|
+
(r[v].has(f) || h.has(v)) && (u.push(v), d.add(v), s.add(v));
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1302
|
+
c = [...d];
|
|
1303
|
+
}
|
|
1304
|
+
i.push([...u]), a = o.find((d) => !s.has(d));
|
|
1305
|
+
}
|
|
1306
|
+
return i.map((u) => u.map((c) => n[c]));
|
|
1307
|
+
}
|
|
1308
|
+
/** Get all axes that are not parents of any other axis */
|
|
1309
|
+
static getAxesRoots(n) {
|
|
1310
|
+
const t = new Set(n.flatMap((r) => r.parentAxesSpec).map((r) => m(p(r))));
|
|
1311
|
+
return n.filter((r) => !t.has(m(p(r))));
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
const Wn = { href: "/" }, zn = l.object({
|
|
1315
|
+
__isRef: l.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
1316
|
+
blockId: l.string().describe("Upstream block id"),
|
|
1317
|
+
name: l.string().describe("Name of the output provided to the upstream block's output context"),
|
|
1318
|
+
requireEnrichments: l.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
|
|
830
1319
|
}).describe(
|
|
831
1320
|
"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."
|
|
832
1321
|
).readonly();
|
|
833
|
-
function
|
|
1322
|
+
function Hn(e) {
|
|
834
1323
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === !0 && "blockId" in e && "name" in e;
|
|
835
1324
|
}
|
|
836
|
-
function
|
|
837
|
-
return
|
|
1325
|
+
function _n(e, n, t = !1) {
|
|
1326
|
+
return t ? {
|
|
838
1327
|
__isRef: !0,
|
|
839
1328
|
blockId: e,
|
|
840
1329
|
name: n,
|
|
@@ -845,24 +1334,24 @@ function rn(e, n, r = !1) {
|
|
|
845
1334
|
name: n
|
|
846
1335
|
};
|
|
847
1336
|
}
|
|
848
|
-
function
|
|
1337
|
+
function Gn(e, n = !0) {
|
|
849
1338
|
if (n)
|
|
850
1339
|
return {
|
|
851
1340
|
...e,
|
|
852
1341
|
requireEnrichments: !0
|
|
853
1342
|
};
|
|
854
1343
|
{
|
|
855
|
-
const { requireEnrichments:
|
|
856
|
-
return
|
|
1344
|
+
const { requireEnrichments: t, ...r } = e;
|
|
1345
|
+
return r;
|
|
857
1346
|
}
|
|
858
1347
|
}
|
|
859
|
-
function
|
|
860
|
-
return e.blockId === n.blockId && e.name === n.name && (
|
|
1348
|
+
function Qn(e, n, t = !1) {
|
|
1349
|
+
return e.blockId === n.blockId && e.name === n.name && (t || e.requireEnrichments === n.requireEnrichments);
|
|
861
1350
|
}
|
|
862
|
-
function
|
|
1351
|
+
function Xn(e, n) {
|
|
863
1352
|
return e.ok ? { ok: !0, value: n(e.value) } : e;
|
|
864
1353
|
}
|
|
865
|
-
function
|
|
1354
|
+
function Le(e) {
|
|
866
1355
|
if (e instanceof Int8Array || e instanceof Uint8Array || e instanceof Uint8ClampedArray)
|
|
867
1356
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
868
1357
|
if (e instanceof ArrayBuffer) return new DataView(e);
|
|
@@ -870,183 +1359,75 @@ function re(e) {
|
|
|
870
1359
|
"Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray"
|
|
871
1360
|
);
|
|
872
1361
|
}
|
|
873
|
-
const
|
|
874
|
-
function
|
|
875
|
-
|
|
876
|
-
let
|
|
1362
|
+
const Je = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", Ie = "0123456789ABCDEFGHIJKLMNOPQRSTUV", je = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
1363
|
+
function Z(e, n, t) {
|
|
1364
|
+
t = t || {};
|
|
1365
|
+
let r, o;
|
|
877
1366
|
switch (n) {
|
|
878
1367
|
case "RFC3548":
|
|
879
1368
|
case "RFC4648":
|
|
880
|
-
|
|
1369
|
+
r = Je, o = !0;
|
|
881
1370
|
break;
|
|
882
1371
|
case "RFC4648-HEX":
|
|
883
|
-
|
|
1372
|
+
r = Ie, o = !0;
|
|
884
1373
|
break;
|
|
885
1374
|
case "Crockford":
|
|
886
|
-
|
|
1375
|
+
r = je, o = !1;
|
|
887
1376
|
break;
|
|
888
1377
|
default:
|
|
889
1378
|
throw new Error("Unknown base32 variant: " + String(n));
|
|
890
1379
|
}
|
|
891
|
-
const
|
|
1380
|
+
const i = t.padding !== void 0 ? t.padding : o, s = Le(e);
|
|
892
1381
|
let a = 0, u = 0, c = "";
|
|
893
1382
|
for (let d = 0; d < s.byteLength; d++)
|
|
894
1383
|
for (u = u << 8 | s.getUint8(d), a += 8; a >= 5; )
|
|
895
|
-
c +=
|
|
896
|
-
if (a > 0 && (c +=
|
|
1384
|
+
c += r[u >>> a - 5 & 31], a -= 5;
|
|
1385
|
+
if (a > 0 && (c += r[u << 5 - a & 31]), i)
|
|
897
1386
|
for (; c.length % 8 !== 0; )
|
|
898
1387
|
c += "=";
|
|
899
1388
|
return c;
|
|
900
1389
|
}
|
|
901
|
-
const
|
|
902
|
-
function
|
|
903
|
-
const e = new Uint8Array(
|
|
904
|
-
return crypto.getRandomValues(e),
|
|
905
|
-
}
|
|
906
|
-
function se(e) {
|
|
907
|
-
if (e.length !== R) throw new Error(`Wrong number of bytes: ${e.length}`);
|
|
908
|
-
return $.parse(N(e, "RFC4648"));
|
|
909
|
-
}
|
|
910
|
-
async function un(e) {
|
|
911
|
-
const n = new TextEncoder(), r = await crypto.subtle.digest("SHA-256", n.encode(e));
|
|
912
|
-
return se(new Uint8Array(r.slice(0, 15)));
|
|
913
|
-
}
|
|
914
|
-
function cn(e) {
|
|
915
|
-
return JSON.stringify(e);
|
|
916
|
-
}
|
|
917
|
-
function dn(e) {
|
|
918
|
-
return y(e);
|
|
919
|
-
}
|
|
920
|
-
function fn(e) {
|
|
921
|
-
return JSON.parse(e);
|
|
922
|
-
}
|
|
923
|
-
class ln extends Error {
|
|
924
|
-
constructor() {
|
|
925
|
-
super(...arguments);
|
|
926
|
-
f(this, "name", "AbortError");
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
class mn extends Error {
|
|
930
|
-
constructor() {
|
|
931
|
-
super(...arguments);
|
|
932
|
-
f(this, "name", "UiError");
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
function pn(e) {
|
|
936
|
-
return e instanceof Error && e.name === "AbortError";
|
|
937
|
-
}
|
|
938
|
-
function ue(e) {
|
|
939
|
-
return e instanceof Error ? e.name === "AbortError" || ue(e.cause) : !1;
|
|
940
|
-
}
|
|
941
|
-
function hn(e) {
|
|
942
|
-
return e instanceof Error && e.name === "AggregateError";
|
|
943
|
-
}
|
|
944
|
-
class ce extends Error {
|
|
945
|
-
constructor() {
|
|
946
|
-
super(...arguments);
|
|
947
|
-
f(this, "name", "PFrameError");
|
|
948
|
-
}
|
|
1390
|
+
const ee = 15, De = 24, ne = l.string().length(De).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
1391
|
+
function Yn() {
|
|
1392
|
+
const e = new Uint8Array(ee);
|
|
1393
|
+
return crypto.getRandomValues(e), ne.parse(Z(e, "RFC4648"));
|
|
949
1394
|
}
|
|
950
|
-
function
|
|
951
|
-
|
|
1395
|
+
function Ne(e) {
|
|
1396
|
+
if (e.length !== ee) throw new Error(`Wrong number of bytes: ${e.length}`);
|
|
1397
|
+
return ne.parse(Z(e, "RFC4648"));
|
|
952
1398
|
}
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
f(this, "name", "PFrameError.Driver");
|
|
957
|
-
}
|
|
1399
|
+
async function Zn(e) {
|
|
1400
|
+
const n = new TextEncoder(), t = await crypto.subtle.digest("SHA-256", n.encode(e));
|
|
1401
|
+
return Ne(new Uint8Array(t.slice(0, 15)));
|
|
958
1402
|
}
|
|
959
|
-
|
|
960
|
-
|
|
1403
|
+
const et = ["supportsLazyState"], nt = ["requiresUIAPIVersion", "requiresModelAPIVersion"];
|
|
1404
|
+
function tt(e, n, t = !0) {
|
|
1405
|
+
return e === void 0 ? !1 : e[n] === t;
|
|
961
1406
|
}
|
|
962
|
-
function
|
|
963
|
-
|
|
964
|
-
return `String value was thrown: ${e}`;
|
|
965
|
-
if (e && typeof e == "object")
|
|
966
|
-
try {
|
|
967
|
-
return `Plain object was thrown: ${JSON.stringify(e)}`;
|
|
968
|
-
} catch (n) {
|
|
969
|
-
return `Non-serializable object was thrown (JSON.stringify failed: ${n instanceof Error ? n.message : String(n)}): ${String(e)}`;
|
|
970
|
-
}
|
|
971
|
-
return `Non-Error value (${typeof e}) was thrown: ${e}`;
|
|
1407
|
+
function rt(e) {
|
|
1408
|
+
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, t]) => n.startsWith("requires") && t === !0).map(([n]) => n));
|
|
972
1409
|
}
|
|
973
|
-
function
|
|
974
|
-
return e
|
|
975
|
-
}
|
|
976
|
-
function P(e) {
|
|
977
|
-
const n = e.cause ? P(e.cause) : void 0, r = new Error(e.message, n !== void 0 ? { cause: n } : void 0);
|
|
978
|
-
return r.name = e.name || "Error", r.stack = e.stack, r;
|
|
979
|
-
}
|
|
980
|
-
function D(e) {
|
|
981
|
-
const n = w(e), r = n.cause ? D(n.cause) : void 0;
|
|
982
|
-
return {
|
|
983
|
-
name: n.name,
|
|
984
|
-
message: n.message,
|
|
985
|
-
stack: n.stack,
|
|
986
|
-
...n.cause !== void 0 && { cause: r }
|
|
987
|
-
};
|
|
988
|
-
}
|
|
989
|
-
function gn(e) {
|
|
990
|
-
if (e.error)
|
|
991
|
-
throw e.error instanceof Error ? e.error : P(e.error);
|
|
992
|
-
return e.value;
|
|
993
|
-
}
|
|
994
|
-
function L(e) {
|
|
995
|
-
return e.error ? { error: D(e.error) } : { value: e.value };
|
|
996
|
-
}
|
|
997
|
-
function wn(e) {
|
|
998
|
-
return e.error ? { error: P(e.error) } : { value: e.value };
|
|
999
|
-
}
|
|
1000
|
-
function fe(e) {
|
|
1001
|
-
try {
|
|
1002
|
-
return { value: e() };
|
|
1003
|
-
} catch (n) {
|
|
1004
|
-
return { error: w(n) };
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
async function le(e) {
|
|
1008
|
-
try {
|
|
1009
|
-
return { value: await e() };
|
|
1010
|
-
} catch (n) {
|
|
1011
|
-
return { error: w(n) };
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
function Pn(e) {
|
|
1015
|
-
const n = fe(e);
|
|
1016
|
-
return L(n);
|
|
1017
|
-
}
|
|
1018
|
-
async function kn(e) {
|
|
1019
|
-
const n = await le(e);
|
|
1020
|
-
return L(n);
|
|
1021
|
-
}
|
|
1022
|
-
const An = ["supportsLazyState"], xn = ["requiresUIAPIVersion", "requiresModelAPIVersion"];
|
|
1023
|
-
function En(e, n, r = !0) {
|
|
1024
|
-
return e === void 0 ? !1 : e[n] === r;
|
|
1025
|
-
}
|
|
1026
|
-
function Sn(e) {
|
|
1027
|
-
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, r]) => n.startsWith("requires") && r === !0).map(([n]) => n));
|
|
1028
|
-
}
|
|
1029
|
-
function On(e) {
|
|
1030
|
-
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, r]) => n.startsWith("supports") && r === !0).map(([n]) => n));
|
|
1410
|
+
function ot(e) {
|
|
1411
|
+
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, t]) => n.startsWith("supports") && t === !0).map(([n]) => n));
|
|
1031
1412
|
}
|
|
1032
|
-
class
|
|
1033
|
-
constructor(
|
|
1034
|
-
super(`Some of the block requirements are not supported by the runtime: ${Array.from(
|
|
1035
|
-
|
|
1036
|
-
this.incompatibleFlags =
|
|
1413
|
+
class Re extends Error {
|
|
1414
|
+
constructor(t) {
|
|
1415
|
+
super(`Some of the block requirements are not supported by the runtime: ${Array.from(t.entries()).map(([r, o]) => `${r}: ${o}`).join(", ")}`);
|
|
1416
|
+
b(this, "name", "IncompatibleFlagsError");
|
|
1417
|
+
this.incompatibleFlags = t;
|
|
1037
1418
|
}
|
|
1038
1419
|
}
|
|
1039
|
-
class
|
|
1420
|
+
class it {
|
|
1040
1421
|
constructor() {
|
|
1041
|
-
|
|
1422
|
+
b(this, "supportedRequirements", /* @__PURE__ */ new Map());
|
|
1042
1423
|
}
|
|
1043
1424
|
/**
|
|
1044
1425
|
* Adds a supported requirement to the runtime capabilities.
|
|
1045
1426
|
* @param requirement - The requirement.
|
|
1046
1427
|
* @param value - The value of the requirement. If not provided, defaults to true.
|
|
1047
1428
|
*/
|
|
1048
|
-
addSupportedRequirement(n,
|
|
1049
|
-
return this.supportedRequirements.has(n) || this.supportedRequirements.set(n, /* @__PURE__ */ new Set()), this.supportedRequirements.get(n).add(
|
|
1429
|
+
addSupportedRequirement(n, t = !0) {
|
|
1430
|
+
return this.supportedRequirements.has(n) || this.supportedRequirements.set(n, /* @__PURE__ */ new Set()), this.supportedRequirements.get(n).add(t), this;
|
|
1050
1431
|
}
|
|
1051
1432
|
/**
|
|
1052
1433
|
* Returns a map of incompatible flags. If the block flags are compatible, returns undefined.
|
|
@@ -1055,14 +1436,14 @@ class jn {
|
|
|
1055
1436
|
*/
|
|
1056
1437
|
getIncompatibleFlags(n) {
|
|
1057
1438
|
if (n === void 0) return;
|
|
1058
|
-
const
|
|
1059
|
-
for (const [
|
|
1060
|
-
if (
|
|
1061
|
-
if (
|
|
1062
|
-
const
|
|
1063
|
-
(
|
|
1439
|
+
const t = /* @__PURE__ */ new Map();
|
|
1440
|
+
for (const [r, o] of Object.entries(n))
|
|
1441
|
+
if (r.startsWith("requires")) {
|
|
1442
|
+
if (o === void 0) continue;
|
|
1443
|
+
const i = this.supportedRequirements.get(r);
|
|
1444
|
+
(i === void 0 || !i.has(o)) && t.set(r, o);
|
|
1064
1445
|
}
|
|
1065
|
-
return
|
|
1446
|
+
return t.size === 0 ? void 0 : t;
|
|
1066
1447
|
}
|
|
1067
1448
|
/**
|
|
1068
1449
|
* Checks if the block flags are compatible with the runtime capabilities.
|
|
@@ -1078,106 +1459,129 @@ class jn {
|
|
|
1078
1459
|
* @throws IncompatibleFlagsError if the block flags are incompatible with the runtime capabilities.
|
|
1079
1460
|
*/
|
|
1080
1461
|
throwIfIncompatible(n) {
|
|
1081
|
-
const
|
|
1082
|
-
if (
|
|
1083
|
-
throw new
|
|
1462
|
+
const t = this.getIncompatibleFlags(n);
|
|
1463
|
+
if (t !== void 0)
|
|
1464
|
+
throw new Re(t);
|
|
1084
1465
|
}
|
|
1085
1466
|
}
|
|
1086
1467
|
export {
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1468
|
+
rn as AbortError,
|
|
1469
|
+
nt as AllRequiresFeatureFlags,
|
|
1470
|
+
et as AllSupportsFeatureFlags,
|
|
1471
|
+
Nn as AnchoredIdDeriver,
|
|
1472
|
+
y as Annotation,
|
|
1473
|
+
W as AnnotationJson,
|
|
1474
|
+
he as AxisSpec,
|
|
1475
|
+
Wn as DefaultNavigationState,
|
|
1476
|
+
yn as Domain,
|
|
1477
|
+
q as DomainJson,
|
|
1478
|
+
Re as IncompatibleFlagsError,
|
|
1479
|
+
A as LinkerMap,
|
|
1480
|
+
Pn as PColumnName,
|
|
1481
|
+
cn as PFrameDriverError,
|
|
1482
|
+
le as PFrameError,
|
|
1483
|
+
ke as PTableAbsent,
|
|
1484
|
+
X as PTableNA,
|
|
1485
|
+
ne as PlId,
|
|
1486
|
+
ee as PlIdBytes,
|
|
1487
|
+
De as PlIdLength,
|
|
1488
|
+
zn as PlRef,
|
|
1489
|
+
We as RangeBytes,
|
|
1490
|
+
it as RuntimeCapabilities,
|
|
1491
|
+
on as UiError,
|
|
1492
|
+
g as ValueType,
|
|
1493
|
+
On as canonicalizeAxisId,
|
|
1494
|
+
D as canonicalizeAxisWithParents,
|
|
1495
|
+
m as canonicalizeJson,
|
|
1496
|
+
tt as checkBlockFlag,
|
|
1497
|
+
_n as createPlRef,
|
|
1498
|
+
en as dataInfoToEntries,
|
|
1499
|
+
qn as deriveNativeId,
|
|
1500
|
+
J as deserializeError,
|
|
1501
|
+
fn as deserializeResult,
|
|
1502
|
+
Zn as digestPlId,
|
|
1503
|
+
C as ensureError,
|
|
1504
|
+
Vn as ensurePColumn,
|
|
1505
|
+
nn as entriesToDataInfo,
|
|
1506
|
+
L as executePSpecPredicate,
|
|
1507
|
+
Bn as extractAllColumns,
|
|
1508
|
+
rt as extractAllRequirements,
|
|
1509
|
+
ot as extractAllSupports,
|
|
1510
|
+
Me as extractCodeWithInfo,
|
|
1511
|
+
Be as extractConfigGeneric,
|
|
1512
|
+
P as getArrayFromAxisTree,
|
|
1513
|
+
G as getAxesId,
|
|
1514
|
+
k as getAxesTree,
|
|
1515
|
+
p as getAxisId,
|
|
1516
|
+
En as getColumnIdAndSpec,
|
|
1517
|
+
kn as getDenormalizedAxesList,
|
|
1518
|
+
Ge as getFileNameFromHandle,
|
|
1519
|
+
ae as getFilePathFromHandle,
|
|
1520
|
+
_ as getNormalizedAxesList,
|
|
1521
|
+
Sn as getPColumnSpecId,
|
|
1522
|
+
jn as getPTableColumnId,
|
|
1523
|
+
xn as getSetFromAxisTree,
|
|
1524
|
+
ce as hasAbortError,
|
|
1525
|
+
an as isAbortError,
|
|
1526
|
+
sn as isAggregateError,
|
|
1527
|
+
qe as isBlockUIURL,
|
|
1528
|
+
Qe as isDataInfo,
|
|
1529
|
+
ue as isDataInfoEntries,
|
|
1530
|
+
Tn as isFilteredPColumn,
|
|
1531
|
+
Ue as isFolderURL,
|
|
1532
|
+
ie as isImportFileHandleIndex,
|
|
1533
|
+
oe as isImportFileHandleUpload,
|
|
1534
|
+
_e as isLiveLog,
|
|
1535
|
+
Fe as isPColumn,
|
|
1536
|
+
Kn as isPColumnResult,
|
|
1537
|
+
w as isPColumnSpec,
|
|
1538
|
+
$n as isPColumnSpecResult,
|
|
1539
|
+
ln as isPFrameDriverError,
|
|
1540
|
+
un as isPFrameError,
|
|
1541
|
+
Fn as isPTableAbsent,
|
|
1542
|
+
Pe as isPTableNA,
|
|
1543
|
+
Cn as isPTableValueAxis,
|
|
1544
|
+
Ze as isPartitionedDataInfoEntries,
|
|
1545
|
+
Hn as isPlRef,
|
|
1546
|
+
Xe as mapDataInfo,
|
|
1547
|
+
tn as mapDataInfoEntries,
|
|
1548
|
+
E as mapJoinEntry,
|
|
1549
|
+
Mn as mapPObjectData,
|
|
1550
|
+
In as mapPTableDef,
|
|
1551
|
+
Xn as mapValueInVOE,
|
|
1552
|
+
T as matchAxis,
|
|
1553
|
+
Ae as matchAxisId,
|
|
1554
|
+
$ as matchPColumn,
|
|
1555
|
+
ze as newRangeBytesOpt,
|
|
1556
|
+
Ln as pTableValue,
|
|
1557
|
+
Jn as pTableValueBranded,
|
|
1558
|
+
Dn as parseColumnId,
|
|
1559
|
+
me as parseJson,
|
|
1560
|
+
Ne as plId,
|
|
1561
|
+
Qn as plRefsEqual,
|
|
1562
|
+
An as readAnnotation,
|
|
1563
|
+
z as readAnnotationJson,
|
|
1564
|
+
vn as readAnnotationJsonOrThrow,
|
|
1565
|
+
gn as readDomain,
|
|
1566
|
+
wn as readDomainJson,
|
|
1567
|
+
bn as readDomainJsonOrThrow,
|
|
1568
|
+
I as readMetadata,
|
|
1569
|
+
U as readMetadataJson,
|
|
1570
|
+
j as readMetadataJsonOrThrow,
|
|
1571
|
+
Rn as resolveAnchors,
|
|
1572
|
+
Un as selectorsToPredicate,
|
|
1573
|
+
M as serializeError,
|
|
1574
|
+
B as serializeResult,
|
|
1575
|
+
Se as stringifyColumnId,
|
|
1576
|
+
hn as stringifyJson,
|
|
1577
|
+
Yn as uniquePlId,
|
|
1578
|
+
dn as unwrapResult,
|
|
1579
|
+
He as validateRangeBytes,
|
|
1580
|
+
Ye as visitDataInfo,
|
|
1581
|
+
Gn as withEnrichments,
|
|
1582
|
+
pn as wrapAndSerialize,
|
|
1583
|
+
mn as wrapAndSerializeAsync,
|
|
1584
|
+
pe as wrapAsyncCallback,
|
|
1181
1585
|
fe as wrapCallback
|
|
1182
1586
|
};
|
|
1183
1587
|
//# sourceMappingURL=index.mjs.map
|