@milaboratories/pl-model-common 1.19.3 → 1.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drivers/pframe/data_info.d.ts +31 -18
- package/dist/drivers/pframe/data_info.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +318 -287
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/drivers/pframe/data_info.ts +151 -124
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var I = (e, n, r) => n in e ? T(e, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[n] = r;
|
|
3
|
+
var f = (e, n, r) => I(e, typeof n != "symbol" ? n + "" : n, r);
|
|
4
4
|
import { z as m } from "zod";
|
|
5
5
|
import y from "canonicalize";
|
|
6
6
|
function be(e) {
|
|
@@ -21,30 +21,30 @@ function ve(e) {
|
|
|
21
21
|
initialArgs: n,
|
|
22
22
|
initialUiState: r,
|
|
23
23
|
inputsValid: t,
|
|
24
|
-
outputs:
|
|
25
|
-
renderingMode:
|
|
24
|
+
outputs: i,
|
|
25
|
+
renderingMode: o,
|
|
26
26
|
sdkVersion: s,
|
|
27
27
|
featureFlags: a,
|
|
28
28
|
sections: u,
|
|
29
29
|
title: c,
|
|
30
|
-
enrichmentTargets:
|
|
31
|
-
} = e.v3, { code:
|
|
30
|
+
enrichmentTargets: d
|
|
31
|
+
} = e.v3, { code: V } = e;
|
|
32
32
|
return {
|
|
33
33
|
initialArgs: n,
|
|
34
34
|
initialUiState: r,
|
|
35
35
|
inputsValid: t,
|
|
36
|
-
outputs:
|
|
37
|
-
renderingMode:
|
|
36
|
+
outputs: i,
|
|
37
|
+
renderingMode: o,
|
|
38
38
|
sdkVersion: s,
|
|
39
39
|
featureFlags: a,
|
|
40
40
|
sections: u,
|
|
41
41
|
title: c,
|
|
42
|
-
code:
|
|
43
|
-
enrichmentTargets:
|
|
42
|
+
code: V,
|
|
43
|
+
enrichmentTargets: d
|
|
44
44
|
};
|
|
45
45
|
} else if (e.inputsValid !== void 0) {
|
|
46
|
-
const { sdkVersion: n, renderingMode: r, outputs: t, inputsValid:
|
|
47
|
-
if (n === void 0 || r === void 0 || t === void 0 ||
|
|
46
|
+
const { sdkVersion: n, renderingMode: r, outputs: t, inputsValid: i, sections: o, initialArgs: s, code: a } = e, u = Object.keys(e);
|
|
47
|
+
if (n === void 0 || r === void 0 || t === void 0 || i === void 0 || o === void 0 || s === void 0)
|
|
48
48
|
throw new Error(
|
|
49
49
|
`Malformed config v2. SDK version ${n}; Fields = ${u.join(", ")}`
|
|
50
50
|
);
|
|
@@ -53,16 +53,16 @@ function ve(e) {
|
|
|
53
53
|
renderingMode: r,
|
|
54
54
|
initialArgs: s,
|
|
55
55
|
outputs: Object.fromEntries(
|
|
56
|
-
Object.entries(t).map(([c,
|
|
56
|
+
Object.entries(t).map(([c, d]) => [c, p(d)])
|
|
57
57
|
),
|
|
58
|
-
inputsValid: p(
|
|
59
|
-
sections: p(
|
|
58
|
+
inputsValid: p(i),
|
|
59
|
+
sections: p(o),
|
|
60
60
|
initialUiState: void 0,
|
|
61
61
|
code: a
|
|
62
62
|
};
|
|
63
63
|
} else if (e.renderingMode !== void 0) {
|
|
64
|
-
const { sdkVersion: n, canRun: r, renderingMode: t, outputs:
|
|
65
|
-
if (t === void 0 ||
|
|
64
|
+
const { sdkVersion: n, canRun: r, renderingMode: t, outputs: i, sections: o, initialArgs: s, code: a } = e, u = Object.keys(e);
|
|
65
|
+
if (t === void 0 || i === void 0 || r === void 0 || o === void 0 || s === void 0)
|
|
66
66
|
throw new Error(
|
|
67
67
|
`Malformed config v1. SDK version ${n}; Fields = ${u.join(", ")}`
|
|
68
68
|
);
|
|
@@ -71,10 +71,10 @@ function ve(e) {
|
|
|
71
71
|
renderingMode: t,
|
|
72
72
|
initialArgs: s,
|
|
73
73
|
outputs: Object.fromEntries(
|
|
74
|
-
Object.entries(
|
|
74
|
+
Object.entries(i).map(([c, d]) => [c, p(d)])
|
|
75
75
|
),
|
|
76
76
|
inputsValid: p(r),
|
|
77
|
-
sections: p(
|
|
77
|
+
sections: p(o),
|
|
78
78
|
initialUiState: void 0,
|
|
79
79
|
code: a
|
|
80
80
|
};
|
|
@@ -91,24 +91,24 @@ function ge(e) {
|
|
|
91
91
|
function we(e) {
|
|
92
92
|
return new URL(e).protocol == "block-ui:";
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const Pe = m.object({
|
|
95
95
|
/** Included left border. */
|
|
96
96
|
from: m.number(),
|
|
97
97
|
/** Excluded right border. */
|
|
98
98
|
to: m.number()
|
|
99
99
|
});
|
|
100
|
-
function
|
|
100
|
+
function ke(e, n) {
|
|
101
101
|
if (!(e == null || n == null))
|
|
102
102
|
return { from: e, to: n };
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ae(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 xe(e) {
|
|
109
109
|
return e !== void 0 && e.startsWith("log+live://log/");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function b(e) {
|
|
112
112
|
throw new Error("Unexpected object: " + e);
|
|
113
113
|
}
|
|
114
114
|
const S = "upload://upload/", O = "index://index/";
|
|
@@ -118,7 +118,7 @@ function B(e) {
|
|
|
118
118
|
function U(e) {
|
|
119
119
|
return e.startsWith(O);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function q(e) {
|
|
122
122
|
if (U(e)) {
|
|
123
123
|
const n = e.slice(O.length);
|
|
124
124
|
return JSON.parse(decodeURIComponent(n)).path;
|
|
@@ -126,13 +126,13 @@ function K(e) {
|
|
|
126
126
|
const n = e.slice(S.length);
|
|
127
127
|
return JSON.parse(decodeURIComponent(n)).localPath;
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
b(e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function K(e) {
|
|
132
132
|
return e.replace(/^.*[\\/]/, "");
|
|
133
133
|
}
|
|
134
134
|
function Ee(e) {
|
|
135
|
-
return
|
|
135
|
+
return K(q(e));
|
|
136
136
|
}
|
|
137
137
|
function Se(e) {
|
|
138
138
|
if (!e || typeof e != "object")
|
|
@@ -144,8 +144,8 @@ function Se(e) {
|
|
|
144
144
|
case "Json":
|
|
145
145
|
return typeof n.keyLength == "number" && n.data !== void 0 && typeof n.data == "object";
|
|
146
146
|
case "JsonPartitioned":
|
|
147
|
-
return typeof n.partitionKeyLength == "number" && n.parts !== void 0 && typeof n.parts == "object";
|
|
148
147
|
case "BinaryPartitioned":
|
|
148
|
+
case "ParquetPartitioned":
|
|
149
149
|
return typeof n.partitionKeyLength == "number" && n.parts !== void 0 && typeof n.parts == "object";
|
|
150
150
|
default:
|
|
151
151
|
return !1;
|
|
@@ -158,8 +158,8 @@ function Oe(e, n) {
|
|
|
158
158
|
return e;
|
|
159
159
|
case "JsonPartitioned": {
|
|
160
160
|
const r = {};
|
|
161
|
-
for (const [t,
|
|
162
|
-
r[t] = n(
|
|
161
|
+
for (const [t, i] of Object.entries(e.parts))
|
|
162
|
+
r[t] = n(i);
|
|
163
163
|
return {
|
|
164
164
|
...e,
|
|
165
165
|
parts: r
|
|
@@ -167,35 +167,48 @@ function Oe(e, n) {
|
|
|
167
167
|
}
|
|
168
168
|
case "BinaryPartitioned": {
|
|
169
169
|
const r = {};
|
|
170
|
-
for (const [t,
|
|
170
|
+
for (const [t, i] of Object.entries(e.parts))
|
|
171
171
|
r[t] = {
|
|
172
|
-
index: n(
|
|
173
|
-
values: n(
|
|
172
|
+
index: n(i.index),
|
|
173
|
+
values: n(i.values)
|
|
174
174
|
};
|
|
175
175
|
return {
|
|
176
176
|
...e,
|
|
177
177
|
parts: r
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
+
case "ParquetPartitioned": {
|
|
181
|
+
const r = {};
|
|
182
|
+
for (const [t, i] of Object.entries(e.parts))
|
|
183
|
+
r[t] = n(i);
|
|
184
|
+
return {
|
|
185
|
+
...e,
|
|
186
|
+
parts: r
|
|
187
|
+
};
|
|
188
|
+
}
|
|
180
189
|
}
|
|
181
190
|
}
|
|
182
|
-
function
|
|
191
|
+
function je(e, n) {
|
|
183
192
|
switch (e.type) {
|
|
184
193
|
case "Json":
|
|
185
194
|
break;
|
|
186
195
|
case "JsonPartitioned": {
|
|
187
|
-
|
|
188
|
-
n(t);
|
|
196
|
+
Object.values(e.parts).forEach(n);
|
|
189
197
|
break;
|
|
190
198
|
}
|
|
191
199
|
case "BinaryPartitioned": {
|
|
192
|
-
|
|
193
|
-
n(
|
|
200
|
+
Object.values(e.parts).forEach((r) => {
|
|
201
|
+
n(r.index), n(r.values);
|
|
202
|
+
});
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
case "ParquetPartitioned": {
|
|
206
|
+
Object.values(e.parts).forEach(n);
|
|
194
207
|
break;
|
|
195
208
|
}
|
|
196
209
|
}
|
|
197
210
|
}
|
|
198
|
-
function
|
|
211
|
+
function M(e) {
|
|
199
212
|
if (!e || typeof e != "object")
|
|
200
213
|
return !1;
|
|
201
214
|
const n = e;
|
|
@@ -205,117 +218,135 @@ function _(e) {
|
|
|
205
218
|
case "Json":
|
|
206
219
|
return typeof n.keyLength == "number" && Array.isArray(n.data);
|
|
207
220
|
case "JsonPartitioned":
|
|
208
|
-
return typeof n.partitionKeyLength == "number" && Array.isArray(n.parts);
|
|
209
221
|
case "BinaryPartitioned":
|
|
222
|
+
case "ParquetPartitioned":
|
|
210
223
|
return typeof n.partitionKeyLength == "number" && Array.isArray(n.parts);
|
|
211
224
|
default:
|
|
212
225
|
return !1;
|
|
213
226
|
}
|
|
214
227
|
}
|
|
215
|
-
function
|
|
216
|
-
|
|
228
|
+
function Ce(e) {
|
|
229
|
+
if (!M(e)) return !1;
|
|
230
|
+
switch (e.type) {
|
|
231
|
+
case "JsonPartitioned":
|
|
232
|
+
case "BinaryPartitioned":
|
|
233
|
+
case "ParquetPartitioned":
|
|
234
|
+
return !0;
|
|
235
|
+
default:
|
|
236
|
+
return !1;
|
|
237
|
+
}
|
|
217
238
|
}
|
|
218
|
-
function
|
|
239
|
+
function Fe(e) {
|
|
219
240
|
switch (e.type) {
|
|
220
|
-
case "Json":
|
|
221
|
-
const n = Object.entries(e.data).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
|
|
241
|
+
case "Json":
|
|
222
242
|
return {
|
|
223
243
|
type: "Json",
|
|
224
244
|
keyLength: e.keyLength,
|
|
225
|
-
data: n
|
|
245
|
+
data: Object.entries(e.data).map(([n, r]) => ({ key: JSON.parse(n), value: r }))
|
|
226
246
|
};
|
|
227
|
-
|
|
228
|
-
case "JsonPartitioned": {
|
|
229
|
-
const n = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
|
|
247
|
+
case "JsonPartitioned":
|
|
230
248
|
return {
|
|
231
249
|
type: "JsonPartitioned",
|
|
232
250
|
partitionKeyLength: e.partitionKeyLength,
|
|
233
|
-
parts: n
|
|
251
|
+
parts: Object.entries(e.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }))
|
|
234
252
|
};
|
|
235
|
-
|
|
236
|
-
case "BinaryPartitioned": {
|
|
237
|
-
const n = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
|
|
253
|
+
case "BinaryPartitioned":
|
|
238
254
|
return {
|
|
239
255
|
type: "BinaryPartitioned",
|
|
240
256
|
partitionKeyLength: e.partitionKeyLength,
|
|
241
|
-
parts: n
|
|
257
|
+
parts: Object.entries(e.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }))
|
|
242
258
|
};
|
|
243
|
-
|
|
259
|
+
case "ParquetPartitioned":
|
|
260
|
+
return {
|
|
261
|
+
type: "ParquetPartitioned",
|
|
262
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
263
|
+
parts: Object.entries(e.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }))
|
|
264
|
+
};
|
|
265
|
+
default:
|
|
266
|
+
b(e);
|
|
244
267
|
}
|
|
245
268
|
}
|
|
246
|
-
function
|
|
269
|
+
function Je(e) {
|
|
247
270
|
switch (e.type) {
|
|
248
|
-
case "Json":
|
|
249
|
-
const n = {};
|
|
250
|
-
for (const r of e.data)
|
|
251
|
-
n[JSON.stringify(r.key)] = r.value;
|
|
271
|
+
case "Json":
|
|
252
272
|
return {
|
|
253
273
|
type: "Json",
|
|
254
274
|
keyLength: e.keyLength,
|
|
255
|
-
data:
|
|
275
|
+
data: Object.fromEntries(
|
|
276
|
+
e.data.map(({ key: n, value: r }) => [JSON.stringify(n), r])
|
|
277
|
+
)
|
|
256
278
|
};
|
|
257
|
-
|
|
258
|
-
case "JsonPartitioned": {
|
|
259
|
-
const n = {};
|
|
260
|
-
for (const r of e.parts)
|
|
261
|
-
n[JSON.stringify(r.key)] = r.value;
|
|
279
|
+
case "JsonPartitioned":
|
|
262
280
|
return {
|
|
263
281
|
type: "JsonPartitioned",
|
|
264
282
|
partitionKeyLength: e.partitionKeyLength,
|
|
265
|
-
parts:
|
|
283
|
+
parts: Object.fromEntries(
|
|
284
|
+
e.parts.map(({ key: n, value: r }) => [JSON.stringify(n), r])
|
|
285
|
+
)
|
|
266
286
|
};
|
|
267
|
-
|
|
268
|
-
case "BinaryPartitioned": {
|
|
269
|
-
const n = {};
|
|
270
|
-
for (const r of e.parts)
|
|
271
|
-
n[JSON.stringify(r.key)] = r.value;
|
|
287
|
+
case "BinaryPartitioned":
|
|
272
288
|
return {
|
|
273
289
|
type: "BinaryPartitioned",
|
|
274
290
|
partitionKeyLength: e.partitionKeyLength,
|
|
275
|
-
parts:
|
|
291
|
+
parts: Object.fromEntries(
|
|
292
|
+
e.parts.map(({ key: n, value: r }) => [JSON.stringify(n), r])
|
|
293
|
+
)
|
|
276
294
|
};
|
|
277
|
-
|
|
295
|
+
case "ParquetPartitioned":
|
|
296
|
+
return {
|
|
297
|
+
type: "ParquetPartitioned",
|
|
298
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
299
|
+
parts: Object.fromEntries(
|
|
300
|
+
e.parts.map(({ key: n, value: r }) => [JSON.stringify(n), r])
|
|
301
|
+
)
|
|
302
|
+
};
|
|
303
|
+
default:
|
|
304
|
+
b(e);
|
|
278
305
|
}
|
|
279
306
|
}
|
|
280
|
-
function
|
|
307
|
+
function Ne(e, n) {
|
|
281
308
|
if (e !== void 0)
|
|
282
309
|
switch (e.type) {
|
|
283
310
|
case "Json":
|
|
284
311
|
return e;
|
|
285
|
-
case "JsonPartitioned":
|
|
286
|
-
const r = e.parts.map((t) => ({
|
|
287
|
-
key: t.key,
|
|
288
|
-
value: n(t.value)
|
|
289
|
-
}));
|
|
312
|
+
case "JsonPartitioned":
|
|
290
313
|
return {
|
|
291
314
|
...e,
|
|
292
|
-
parts: r
|
|
315
|
+
parts: e.parts.map((r) => ({
|
|
316
|
+
key: r.key,
|
|
317
|
+
value: n(r.value)
|
|
318
|
+
}))
|
|
293
319
|
};
|
|
294
|
-
|
|
295
|
-
case "BinaryPartitioned": {
|
|
296
|
-
const r = e.parts.map((t) => ({
|
|
297
|
-
key: t.key,
|
|
298
|
-
value: {
|
|
299
|
-
index: n(t.value.index),
|
|
300
|
-
values: n(t.value.values)
|
|
301
|
-
}
|
|
302
|
-
}));
|
|
320
|
+
case "BinaryPartitioned":
|
|
303
321
|
return {
|
|
304
322
|
...e,
|
|
305
|
-
parts: r
|
|
323
|
+
parts: e.parts.map((r) => ({
|
|
324
|
+
key: r.key,
|
|
325
|
+
value: {
|
|
326
|
+
index: n(r.value.index),
|
|
327
|
+
values: n(r.value.values)
|
|
328
|
+
}
|
|
329
|
+
}))
|
|
330
|
+
};
|
|
331
|
+
case "ParquetPartitioned":
|
|
332
|
+
return {
|
|
333
|
+
...e,
|
|
334
|
+
parts: e.parts.map((r) => ({
|
|
335
|
+
key: r.key,
|
|
336
|
+
value: n(r.value)
|
|
337
|
+
}))
|
|
306
338
|
};
|
|
307
|
-
}
|
|
308
339
|
}
|
|
309
340
|
}
|
|
310
|
-
function
|
|
341
|
+
function j(e, n) {
|
|
311
342
|
const r = Math.floor(n / 8), t = 1 << 7 - n % 8;
|
|
312
343
|
return (e[r] & t) > 0;
|
|
313
344
|
}
|
|
314
|
-
function
|
|
315
|
-
return
|
|
345
|
+
function _(e, n) {
|
|
346
|
+
return j(e.absent, n);
|
|
316
347
|
}
|
|
317
348
|
function z(e, n) {
|
|
318
|
-
if (e.isNA) return
|
|
349
|
+
if (e.isNA) return j(e.isNA, n);
|
|
319
350
|
const r = e.type, t = e.data[n];
|
|
320
351
|
switch (r) {
|
|
321
352
|
case "Int":
|
|
@@ -335,70 +366,70 @@ function z(e, n) {
|
|
|
335
366
|
}
|
|
336
367
|
}
|
|
337
368
|
const H = { type: "absent" };
|
|
338
|
-
function
|
|
369
|
+
function Re(e) {
|
|
339
370
|
return typeof e == "object" && e !== null && "type" in e && e.type === "absent";
|
|
340
371
|
}
|
|
341
|
-
const
|
|
372
|
+
const C = null;
|
|
342
373
|
function W(e) {
|
|
343
|
-
return e ===
|
|
374
|
+
return e === C;
|
|
344
375
|
}
|
|
345
|
-
function
|
|
376
|
+
function $e(e, n) {
|
|
346
377
|
return !(n ? n(e) : W(e));
|
|
347
378
|
}
|
|
348
|
-
function
|
|
379
|
+
function F(e, n, r) {
|
|
349
380
|
const t = e.type;
|
|
350
381
|
if (t === "Bytes")
|
|
351
382
|
throw Error("Bytes not yet supported");
|
|
352
383
|
if (r && "dataType" in r && r.dataType !== void 0 && r.dataType !== t)
|
|
353
384
|
throw Error(`expected column of type ${r.dataType}, got ${t}`);
|
|
354
|
-
if (
|
|
385
|
+
if (_(e, n))
|
|
355
386
|
return (r == null ? void 0 : r.absent) !== void 0 ? r.absent : H;
|
|
356
387
|
if (z(e, n))
|
|
357
|
-
return (r == null ? void 0 : r.na) !== void 0 ? r.na :
|
|
358
|
-
const
|
|
388
|
+
return (r == null ? void 0 : r.na) !== void 0 ? r.na : C;
|
|
389
|
+
const i = e.data[n];
|
|
359
390
|
switch (t) {
|
|
360
391
|
case "Int":
|
|
361
|
-
return
|
|
392
|
+
return i;
|
|
362
393
|
case "Long":
|
|
363
|
-
return Number(
|
|
394
|
+
return Number(i);
|
|
364
395
|
case "Float":
|
|
365
|
-
return
|
|
396
|
+
return i;
|
|
366
397
|
case "Double":
|
|
367
|
-
return
|
|
398
|
+
return i;
|
|
368
399
|
case "String":
|
|
369
|
-
return
|
|
400
|
+
return i;
|
|
370
401
|
}
|
|
371
402
|
}
|
|
372
|
-
function $e(e, n, r) {
|
|
373
|
-
return j(e, n, r);
|
|
374
|
-
}
|
|
375
403
|
function De(e, n, r) {
|
|
376
|
-
return
|
|
404
|
+
return F(e, n, r);
|
|
377
405
|
}
|
|
378
|
-
function Le(e) {
|
|
406
|
+
function Le(e, n, r) {
|
|
407
|
+
return F(e, n, r);
|
|
408
|
+
}
|
|
409
|
+
function Ve(e) {
|
|
379
410
|
return {
|
|
380
411
|
kind: e.kind,
|
|
381
412
|
valueType: e.valueType,
|
|
382
413
|
name: e.name,
|
|
383
414
|
domain: e.domain,
|
|
384
415
|
parentAxes: e.parentAxes,
|
|
385
|
-
axesId:
|
|
416
|
+
axesId: J(e.axesSpec)
|
|
386
417
|
};
|
|
387
418
|
}
|
|
388
|
-
function
|
|
419
|
+
function Te(e) {
|
|
389
420
|
return {
|
|
390
421
|
columnId: e.id,
|
|
391
422
|
spec: e.spec
|
|
392
423
|
};
|
|
393
424
|
}
|
|
394
425
|
function h(e) {
|
|
395
|
-
const { type: n, name: r, domain: t } = e,
|
|
396
|
-
return t && Object.entries(t).length > 0 && Object.assign(
|
|
426
|
+
const { type: n, name: r, domain: t } = e, i = { type: n, name: r };
|
|
427
|
+
return t && Object.entries(t).length > 0 && Object.assign(i, { domain: t }), i;
|
|
397
428
|
}
|
|
398
|
-
function
|
|
429
|
+
function J(e) {
|
|
399
430
|
return e.map(h);
|
|
400
431
|
}
|
|
401
|
-
function
|
|
432
|
+
function Ie(e) {
|
|
402
433
|
return y(h(e));
|
|
403
434
|
}
|
|
404
435
|
function G(e, n) {
|
|
@@ -412,9 +443,9 @@ function X(e, n) {
|
|
|
412
443
|
return e.name === n.name && G(e.domain, n.domain);
|
|
413
444
|
}
|
|
414
445
|
function Be(e, n) {
|
|
415
|
-
return { ...e, src:
|
|
446
|
+
return { ...e, src: v(e.src, n) };
|
|
416
447
|
}
|
|
417
|
-
function
|
|
448
|
+
function v(e, n) {
|
|
418
449
|
switch (e.type) {
|
|
419
450
|
case "column":
|
|
420
451
|
return {
|
|
@@ -434,16 +465,16 @@ function b(e, n) {
|
|
|
434
465
|
case "full":
|
|
435
466
|
return {
|
|
436
467
|
type: e.type,
|
|
437
|
-
entries: e.entries.map((r) =>
|
|
468
|
+
entries: e.entries.map((r) => v(r, n))
|
|
438
469
|
};
|
|
439
470
|
case "outer":
|
|
440
471
|
return {
|
|
441
472
|
type: "outer",
|
|
442
|
-
primary:
|
|
443
|
-
secondary: e.secondary.map((r) =>
|
|
473
|
+
primary: v(e.primary, n),
|
|
474
|
+
secondary: e.secondary.map((r) => v(r, n))
|
|
444
475
|
};
|
|
445
476
|
default:
|
|
446
|
-
|
|
477
|
+
b(e);
|
|
447
478
|
}
|
|
448
479
|
}
|
|
449
480
|
function Ue(e) {
|
|
@@ -463,45 +494,45 @@ function Ue(e) {
|
|
|
463
494
|
function Q(e) {
|
|
464
495
|
return y(e);
|
|
465
496
|
}
|
|
466
|
-
function
|
|
497
|
+
function qe(e) {
|
|
467
498
|
return JSON.parse(e);
|
|
468
499
|
}
|
|
469
|
-
function
|
|
500
|
+
function k(e) {
|
|
470
501
|
return y(h(e));
|
|
471
502
|
}
|
|
472
|
-
function
|
|
503
|
+
function A(e, n) {
|
|
473
504
|
return JSON.stringify([e, n]);
|
|
474
505
|
}
|
|
475
|
-
class
|
|
506
|
+
class Ke {
|
|
476
507
|
/**
|
|
477
508
|
* Creates a new anchor context from a set of anchor column specifications
|
|
478
509
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
479
510
|
*/
|
|
480
511
|
constructor(n) {
|
|
481
|
-
|
|
482
|
-
|
|
512
|
+
f(this, "domains", /* @__PURE__ */ new Map());
|
|
513
|
+
f(this, "axes", /* @__PURE__ */ new Map());
|
|
483
514
|
/**
|
|
484
515
|
* Domain packs are used to group domain keys that can be anchored to the same anchor
|
|
485
516
|
* This is used to optimize the lookup of domain anchors
|
|
486
517
|
*/
|
|
487
|
-
|
|
518
|
+
f(this, "domainPacks", []);
|
|
488
519
|
/**
|
|
489
520
|
* Maps domain packs to anchors
|
|
490
521
|
*/
|
|
491
|
-
|
|
522
|
+
f(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
492
523
|
this.anchors = n;
|
|
493
524
|
const r = Object.entries(n);
|
|
494
|
-
r.sort((t,
|
|
495
|
-
for (const [t,
|
|
496
|
-
for (let
|
|
497
|
-
const s =
|
|
498
|
-
this.axes.set(a, { anchor: t, idx:
|
|
525
|
+
r.sort((t, i) => t[0].localeCompare(i[0]));
|
|
526
|
+
for (const [t, i] of r) {
|
|
527
|
+
for (let o = 0; o < i.axesSpec.length; o++) {
|
|
528
|
+
const s = i.axesSpec[o], a = k(s);
|
|
529
|
+
this.axes.set(a, { anchor: t, idx: o });
|
|
499
530
|
}
|
|
500
|
-
if (
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
for (const [s, a] of
|
|
504
|
-
const u =
|
|
531
|
+
if (i.domain !== void 0) {
|
|
532
|
+
const o = Object.entries(i.domain);
|
|
533
|
+
o.sort((s, a) => s[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(o), t), this.domainPacks.push(o.map(([s]) => s));
|
|
534
|
+
for (const [s, a] of o) {
|
|
535
|
+
const u = A(s, a);
|
|
505
536
|
this.domains.set(u, t);
|
|
506
537
|
}
|
|
507
538
|
}
|
|
@@ -515,52 +546,52 @@ class Me {
|
|
|
515
546
|
name: n.name,
|
|
516
547
|
axes: []
|
|
517
548
|
};
|
|
518
|
-
let
|
|
549
|
+
let i;
|
|
519
550
|
if (n.domain !== void 0)
|
|
520
551
|
e:
|
|
521
552
|
for (const s of this.domainPacks) {
|
|
522
553
|
const a = [];
|
|
523
554
|
for (const c of s) {
|
|
524
|
-
const
|
|
525
|
-
if (
|
|
526
|
-
a.push([c,
|
|
555
|
+
const d = n.domain[c];
|
|
556
|
+
if (d !== void 0)
|
|
557
|
+
a.push([c, d]);
|
|
527
558
|
else
|
|
528
559
|
break e;
|
|
529
560
|
}
|
|
530
561
|
const u = this.domainPackToAnchor.get(JSON.stringify(a));
|
|
531
562
|
if (u !== void 0) {
|
|
532
|
-
t.domainAnchor = u,
|
|
563
|
+
t.domainAnchor = u, i = new Set(s);
|
|
533
564
|
break;
|
|
534
565
|
}
|
|
535
566
|
}
|
|
536
567
|
for (const [s, a] of Object.entries(n.domain ?? {})) {
|
|
537
|
-
if (
|
|
568
|
+
if (i !== void 0 && i.has(s))
|
|
538
569
|
continue;
|
|
539
|
-
const u =
|
|
570
|
+
const u = A(s, a), c = this.domains.get(u);
|
|
540
571
|
t.domain ?? (t.domain = {}), t.domain[s] = c ? { anchor: c } : a;
|
|
541
572
|
}
|
|
542
573
|
if (t.axes = n.axesSpec.map((s) => {
|
|
543
|
-
const a =
|
|
574
|
+
const a = k(s), u = this.axes.get(a);
|
|
544
575
|
return u === void 0 ? h(s) : u;
|
|
545
576
|
}), !r || r.length === 0)
|
|
546
577
|
return t;
|
|
547
|
-
const
|
|
578
|
+
const o = [];
|
|
548
579
|
for (const s of r) {
|
|
549
580
|
const [a, u] = s;
|
|
550
581
|
if (typeof a == "number") {
|
|
551
582
|
if (a < 0 || a >= n.axesSpec.length)
|
|
552
583
|
throw new Error(`Axis index ${a} is out of bounds (0-${n.axesSpec.length - 1})`);
|
|
553
|
-
|
|
584
|
+
o.push([a, u]);
|
|
554
585
|
} else {
|
|
555
|
-
const c = n.axesSpec.findIndex((
|
|
586
|
+
const c = n.axesSpec.findIndex((d) => d.name === a);
|
|
556
587
|
if (c === -1)
|
|
557
588
|
throw new Error(`Axis with name "${a}" not found in the column specification`);
|
|
558
|
-
|
|
589
|
+
o.push([c, u]);
|
|
559
590
|
}
|
|
560
591
|
}
|
|
561
|
-
return
|
|
592
|
+
return o.sort((s, a) => s[0] - a[0]), {
|
|
562
593
|
source: t,
|
|
563
|
-
axisFilters:
|
|
594
|
+
axisFilters: o
|
|
564
595
|
};
|
|
565
596
|
}
|
|
566
597
|
/**
|
|
@@ -573,34 +604,34 @@ class Me {
|
|
|
573
604
|
return Q(this.derive(n, r));
|
|
574
605
|
}
|
|
575
606
|
}
|
|
576
|
-
function
|
|
577
|
-
const t = { ...n },
|
|
607
|
+
function Me(e, n, r) {
|
|
608
|
+
const t = { ...n }, i = (r == null ? void 0 : r.ignoreMissingDomains) ?? !1;
|
|
578
609
|
if (t.domainAnchor !== void 0) {
|
|
579
|
-
const
|
|
580
|
-
if (!
|
|
610
|
+
const o = e[t.domainAnchor];
|
|
611
|
+
if (!o)
|
|
581
612
|
throw new Error(`Anchor "${t.domainAnchor}" not found`);
|
|
582
|
-
const s =
|
|
613
|
+
const s = o.domain || {};
|
|
583
614
|
t.domain = { ...s, ...t.domain }, delete t.domainAnchor;
|
|
584
615
|
}
|
|
585
616
|
if (t.domain) {
|
|
586
|
-
const
|
|
617
|
+
const o = {};
|
|
587
618
|
for (const [s, a] of Object.entries(t.domain))
|
|
588
619
|
if (typeof a == "string")
|
|
589
|
-
|
|
620
|
+
o[s] = a;
|
|
590
621
|
else {
|
|
591
622
|
const u = e[a.anchor];
|
|
592
623
|
if (!u)
|
|
593
624
|
throw new Error(`Anchor "${a.anchor}" not found for domain key "${s}"`);
|
|
594
625
|
if (!u.domain || u.domain[s] === void 0) {
|
|
595
|
-
if (!
|
|
626
|
+
if (!i)
|
|
596
627
|
throw new Error(`Domain key "${s}" not found in anchor "${a.anchor}"`);
|
|
597
628
|
continue;
|
|
598
629
|
}
|
|
599
|
-
|
|
630
|
+
o[s] = u.domain[s];
|
|
600
631
|
}
|
|
601
|
-
t.domain =
|
|
632
|
+
t.domain = o;
|
|
602
633
|
}
|
|
603
|
-
return t.axes && (t.axes = t.axes.map((
|
|
634
|
+
return t.axes && (t.axes = t.axes.map((o) => Y(e, o))), t;
|
|
604
635
|
}
|
|
605
636
|
function Y(e, n) {
|
|
606
637
|
if (!Z(n))
|
|
@@ -613,26 +644,26 @@ function Y(e, n) {
|
|
|
613
644
|
throw new Error(`Axis index ${n.idx} out of bounds for anchor "${r}"`);
|
|
614
645
|
return t.axesSpec[n.idx];
|
|
615
646
|
} else if ("name" in n) {
|
|
616
|
-
const
|
|
617
|
-
if (
|
|
647
|
+
const i = t.axesSpec.filter((o) => o.name === n.name);
|
|
648
|
+
if (i.length > 1)
|
|
618
649
|
throw new Error(`Multiple axes with name "${n.name}" found in anchor "${r}"`);
|
|
619
|
-
if (
|
|
650
|
+
if (i.length === 0)
|
|
620
651
|
throw new Error(`Axis with name "${n.name}" not found in anchor "${r}"`);
|
|
621
|
-
return
|
|
652
|
+
return i[0];
|
|
622
653
|
} else if ("id" in n) {
|
|
623
|
-
const
|
|
624
|
-
if (
|
|
654
|
+
const i = t.axesSpec.filter((o) => X(n.id, h(o)));
|
|
655
|
+
if (i.length > 1)
|
|
625
656
|
throw new Error(`Multiple matching axes found for matcher in anchor "${r}"`);
|
|
626
|
-
if (
|
|
657
|
+
if (i.length === 0)
|
|
627
658
|
throw new Error(`No matching axis found for matcher in anchor "${r}"`);
|
|
628
|
-
return
|
|
659
|
+
return i[0];
|
|
629
660
|
}
|
|
630
661
|
throw new Error("Unsupported axis reference type");
|
|
631
662
|
}
|
|
632
663
|
function Z(e) {
|
|
633
664
|
return typeof e == "object" && "anchor" in e;
|
|
634
665
|
}
|
|
635
|
-
function
|
|
666
|
+
function _e(e) {
|
|
636
667
|
return typeof e == "object" && e !== null && "source" in e && "axisFilters" in e;
|
|
637
668
|
}
|
|
638
669
|
function l(e) {
|
|
@@ -670,14 +701,14 @@ function Xe(e) {
|
|
|
670
701
|
return;
|
|
671
702
|
case "full":
|
|
672
703
|
case "inner":
|
|
673
|
-
for (const
|
|
704
|
+
for (const i of t.entries) r(i);
|
|
674
705
|
return;
|
|
675
706
|
case "outer":
|
|
676
707
|
r(t.primary);
|
|
677
|
-
for (const
|
|
708
|
+
for (const i of t.secondary) r(i);
|
|
678
709
|
return;
|
|
679
710
|
default:
|
|
680
|
-
|
|
711
|
+
b(t);
|
|
681
712
|
}
|
|
682
713
|
};
|
|
683
714
|
return r(e), [...n.values()];
|
|
@@ -685,18 +716,18 @@ function Xe(e) {
|
|
|
685
716
|
function ne(e) {
|
|
686
717
|
throw new Error("Unexpected object: " + e);
|
|
687
718
|
}
|
|
688
|
-
function
|
|
719
|
+
function g(e, n) {
|
|
689
720
|
switch (e.type) {
|
|
690
721
|
case "and":
|
|
691
722
|
for (const r of e.operands)
|
|
692
|
-
if (!
|
|
723
|
+
if (!g(r, n)) return !1;
|
|
693
724
|
return !0;
|
|
694
725
|
case "or":
|
|
695
726
|
for (const r of e.operands)
|
|
696
|
-
if (
|
|
727
|
+
if (g(r, n)) return !0;
|
|
697
728
|
return !1;
|
|
698
729
|
case "not":
|
|
699
|
-
return !
|
|
730
|
+
return !g(e.operand, n);
|
|
700
731
|
case "name":
|
|
701
732
|
return l(n) && n.name === e.name;
|
|
702
733
|
case "name_pattern":
|
|
@@ -709,7 +740,7 @@ function v(e, n) {
|
|
|
709
740
|
return l(n) && e.axes.every(
|
|
710
741
|
(r) => n.axesSpec.some(
|
|
711
742
|
(t) => (r.type === void 0 || r.type === t.type) && (r.name === void 0 || r.name === t.name) && (r.domain === void 0 || Object.keys(r.domain).length === 0 || t.domain !== void 0 && Object.entries(r.domain).every(
|
|
712
|
-
([
|
|
743
|
+
([i, o]) => t.domain[i] === o
|
|
713
744
|
))
|
|
714
745
|
)
|
|
715
746
|
);
|
|
@@ -717,7 +748,7 @@ function v(e, n) {
|
|
|
717
748
|
ne(e);
|
|
718
749
|
}
|
|
719
750
|
}
|
|
720
|
-
function
|
|
751
|
+
function x(e, n) {
|
|
721
752
|
if (e.name !== void 0 && e.name !== n.name)
|
|
722
753
|
return !1;
|
|
723
754
|
if (e.type !== void 0) {
|
|
@@ -729,8 +760,8 @@ function P(e, n) {
|
|
|
729
760
|
}
|
|
730
761
|
if (e.domain !== void 0) {
|
|
731
762
|
const r = n.domain || {};
|
|
732
|
-
for (const [t,
|
|
733
|
-
if (r[t] !==
|
|
763
|
+
for (const [t, i] of Object.entries(e.domain))
|
|
764
|
+
if (r[t] !== i)
|
|
734
765
|
return !1;
|
|
735
766
|
}
|
|
736
767
|
return !0;
|
|
@@ -747,35 +778,35 @@ function E(e, n) {
|
|
|
747
778
|
}
|
|
748
779
|
if (n.domain !== void 0) {
|
|
749
780
|
const r = e.domain || {};
|
|
750
|
-
for (const [t,
|
|
751
|
-
if (r[t] !==
|
|
781
|
+
for (const [t, i] of Object.entries(n.domain))
|
|
782
|
+
if (r[t] !== i)
|
|
752
783
|
return !1;
|
|
753
784
|
}
|
|
754
785
|
if (n.axes !== void 0) {
|
|
755
786
|
const r = e.axesSpec.map(h);
|
|
756
787
|
if (n.partialAxesMatch) {
|
|
757
788
|
for (const t of n.axes)
|
|
758
|
-
if (!r.some((
|
|
789
|
+
if (!r.some((i) => x(t, i)))
|
|
759
790
|
return !1;
|
|
760
791
|
} else {
|
|
761
792
|
if (r.length !== n.axes.length)
|
|
762
793
|
return !1;
|
|
763
794
|
for (let t = 0; t < n.axes.length; t++)
|
|
764
|
-
if (!
|
|
795
|
+
if (!x(n.axes[t], r[t]))
|
|
765
796
|
return !1;
|
|
766
797
|
}
|
|
767
798
|
}
|
|
768
799
|
if (n.annotations !== void 0) {
|
|
769
800
|
const r = e.annotations || {};
|
|
770
|
-
for (const [t,
|
|
771
|
-
if (r[t] !==
|
|
801
|
+
for (const [t, i] of Object.entries(n.annotations))
|
|
802
|
+
if (r[t] !== i)
|
|
772
803
|
return !1;
|
|
773
804
|
}
|
|
774
805
|
if (n.annotationPatterns !== void 0) {
|
|
775
806
|
const r = e.annotations || {};
|
|
776
|
-
for (const [t,
|
|
777
|
-
const
|
|
778
|
-
if (
|
|
807
|
+
for (const [t, i] of Object.entries(n.annotationPatterns)) {
|
|
808
|
+
const o = r[t];
|
|
809
|
+
if (o === void 0 || !new RegExp(i).test(o))
|
|
779
810
|
return !1;
|
|
780
811
|
}
|
|
781
812
|
}
|
|
@@ -789,7 +820,7 @@ function Ye(e) {
|
|
|
789
820
|
kind: e.kind,
|
|
790
821
|
name: e.name
|
|
791
822
|
};
|
|
792
|
-
return e.domain !== void 0 && (n.domain = e.domain), l(e) && (n.axesSpec =
|
|
823
|
+
return e.domain !== void 0 && (n.domain = e.domain), l(e) && (n.axesSpec = J(e.axesSpec)), y(n);
|
|
793
824
|
}
|
|
794
825
|
const Ze = { href: "/" }, en = m.object({
|
|
795
826
|
__isRef: m.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -839,42 +870,42 @@ function re(e) {
|
|
|
839
870
|
"Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray"
|
|
840
871
|
);
|
|
841
872
|
}
|
|
842
|
-
const te = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",
|
|
843
|
-
function
|
|
873
|
+
const te = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", ie = "0123456789ABCDEFGHIJKLMNOPQRSTUV", oe = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
874
|
+
function N(e, n, r) {
|
|
844
875
|
r = r || {};
|
|
845
|
-
let t,
|
|
876
|
+
let t, i;
|
|
846
877
|
switch (n) {
|
|
847
878
|
case "RFC3548":
|
|
848
879
|
case "RFC4648":
|
|
849
|
-
t = te,
|
|
880
|
+
t = te, i = !0;
|
|
850
881
|
break;
|
|
851
882
|
case "RFC4648-HEX":
|
|
852
|
-
t =
|
|
883
|
+
t = ie, i = !0;
|
|
853
884
|
break;
|
|
854
885
|
case "Crockford":
|
|
855
|
-
t =
|
|
886
|
+
t = oe, i = !1;
|
|
856
887
|
break;
|
|
857
888
|
default:
|
|
858
889
|
throw new Error("Unknown base32 variant: " + String(n));
|
|
859
890
|
}
|
|
860
|
-
const
|
|
891
|
+
const o = r.padding !== void 0 ? r.padding : i, s = re(e);
|
|
861
892
|
let a = 0, u = 0, c = "";
|
|
862
|
-
for (let
|
|
863
|
-
for (u = u << 8 | s.getUint8(
|
|
893
|
+
for (let d = 0; d < s.byteLength; d++)
|
|
894
|
+
for (u = u << 8 | s.getUint8(d), a += 8; a >= 5; )
|
|
864
895
|
c += t[u >>> a - 5 & 31], a -= 5;
|
|
865
|
-
if (a > 0 && (c += t[u << 5 - a & 31]),
|
|
896
|
+
if (a > 0 && (c += t[u << 5 - a & 31]), o)
|
|
866
897
|
for (; c.length % 8 !== 0; )
|
|
867
898
|
c += "=";
|
|
868
899
|
return c;
|
|
869
900
|
}
|
|
870
|
-
const
|
|
901
|
+
const R = 15, ae = 24, $ = m.string().length(ae).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
871
902
|
function sn() {
|
|
872
|
-
const e = new Uint8Array(
|
|
873
|
-
return crypto.getRandomValues(e),
|
|
903
|
+
const e = new Uint8Array(R);
|
|
904
|
+
return crypto.getRandomValues(e), $.parse(N(e, "RFC4648"));
|
|
874
905
|
}
|
|
875
906
|
function se(e) {
|
|
876
|
-
if (e.length !==
|
|
877
|
-
return
|
|
907
|
+
if (e.length !== R) throw new Error(`Wrong number of bytes: ${e.length}`);
|
|
908
|
+
return $.parse(N(e, "RFC4648"));
|
|
878
909
|
}
|
|
879
910
|
async function un(e) {
|
|
880
911
|
const n = new TextEncoder(), r = await crypto.subtle.digest("SHA-256", n.encode(e));
|
|
@@ -883,22 +914,22 @@ async function un(e) {
|
|
|
883
914
|
function cn(e) {
|
|
884
915
|
return JSON.stringify(e);
|
|
885
916
|
}
|
|
886
|
-
function
|
|
917
|
+
function dn(e) {
|
|
887
918
|
return y(e);
|
|
888
919
|
}
|
|
889
|
-
function
|
|
920
|
+
function fn(e) {
|
|
890
921
|
return JSON.parse(e);
|
|
891
922
|
}
|
|
892
923
|
class ln extends Error {
|
|
893
924
|
constructor() {
|
|
894
925
|
super(...arguments);
|
|
895
|
-
|
|
926
|
+
f(this, "name", "AbortError");
|
|
896
927
|
}
|
|
897
928
|
}
|
|
898
929
|
class mn extends Error {
|
|
899
930
|
constructor() {
|
|
900
931
|
super(...arguments);
|
|
901
|
-
|
|
932
|
+
f(this, "name", "UiError");
|
|
902
933
|
}
|
|
903
934
|
}
|
|
904
935
|
function pn(e) {
|
|
@@ -913,7 +944,7 @@ function hn(e) {
|
|
|
913
944
|
class ce extends Error {
|
|
914
945
|
constructor() {
|
|
915
946
|
super(...arguments);
|
|
916
|
-
|
|
947
|
+
f(this, "name", "PFrameError");
|
|
917
948
|
}
|
|
918
949
|
}
|
|
919
950
|
function yn(e) {
|
|
@@ -922,13 +953,13 @@ function yn(e) {
|
|
|
922
953
|
class bn extends ce {
|
|
923
954
|
constructor() {
|
|
924
955
|
super(...arguments);
|
|
925
|
-
|
|
956
|
+
f(this, "name", "PFrameError.Driver");
|
|
926
957
|
}
|
|
927
958
|
}
|
|
928
959
|
function vn(e) {
|
|
929
960
|
return e instanceof Error && e.name === "PFrameError.Driver";
|
|
930
961
|
}
|
|
931
|
-
function
|
|
962
|
+
function de(e) {
|
|
932
963
|
if (typeof e == "string")
|
|
933
964
|
return `String value was thrown: ${e}`;
|
|
934
965
|
if (e && typeof e == "object")
|
|
@@ -940,14 +971,14 @@ function fe(e) {
|
|
|
940
971
|
return `Non-Error value (${typeof e}) was thrown: ${e}`;
|
|
941
972
|
}
|
|
942
973
|
function w(e) {
|
|
943
|
-
return e instanceof Error ? e : new Error(
|
|
974
|
+
return e instanceof Error ? e : new Error(de(e));
|
|
944
975
|
}
|
|
945
|
-
function
|
|
946
|
-
const n = e.cause ?
|
|
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);
|
|
947
978
|
return r.name = e.name || "Error", r.stack = e.stack, r;
|
|
948
979
|
}
|
|
949
|
-
function
|
|
950
|
-
const n = w(e), r = n.cause ?
|
|
980
|
+
function D(e) {
|
|
981
|
+
const n = w(e), r = n.cause ? D(n.cause) : void 0;
|
|
951
982
|
return {
|
|
952
983
|
name: n.name,
|
|
953
984
|
message: n.message,
|
|
@@ -957,16 +988,16 @@ function $(e) {
|
|
|
957
988
|
}
|
|
958
989
|
function gn(e) {
|
|
959
990
|
if (e.error)
|
|
960
|
-
throw e.error instanceof Error ? e.error :
|
|
991
|
+
throw e.error instanceof Error ? e.error : P(e.error);
|
|
961
992
|
return e.value;
|
|
962
993
|
}
|
|
963
|
-
function
|
|
964
|
-
return e.error ? { error:
|
|
994
|
+
function L(e) {
|
|
995
|
+
return e.error ? { error: D(e.error) } : { value: e.value };
|
|
965
996
|
}
|
|
966
997
|
function wn(e) {
|
|
967
|
-
return e.error ? { error:
|
|
998
|
+
return e.error ? { error: P(e.error) } : { value: e.value };
|
|
968
999
|
}
|
|
969
|
-
function
|
|
1000
|
+
function fe(e) {
|
|
970
1001
|
try {
|
|
971
1002
|
return { value: e() };
|
|
972
1003
|
} catch (n) {
|
|
@@ -980,15 +1011,15 @@ async function le(e) {
|
|
|
980
1011
|
return { error: w(n) };
|
|
981
1012
|
}
|
|
982
1013
|
}
|
|
983
|
-
function
|
|
984
|
-
const n =
|
|
985
|
-
return
|
|
1014
|
+
function Pn(e) {
|
|
1015
|
+
const n = fe(e);
|
|
1016
|
+
return L(n);
|
|
986
1017
|
}
|
|
987
|
-
async function
|
|
1018
|
+
async function kn(e) {
|
|
988
1019
|
const n = await le(e);
|
|
989
|
-
return
|
|
1020
|
+
return L(n);
|
|
990
1021
|
}
|
|
991
|
-
const
|
|
1022
|
+
const An = ["supportsLazyState"], xn = ["requiresUIAPIVersion", "requiresModelAPIVersion"];
|
|
992
1023
|
function En(e, n, r = !0) {
|
|
993
1024
|
return e === void 0 ? !1 : e[n] === r;
|
|
994
1025
|
}
|
|
@@ -1000,14 +1031,14 @@ function On(e) {
|
|
|
1000
1031
|
}
|
|
1001
1032
|
class me extends Error {
|
|
1002
1033
|
constructor(r) {
|
|
1003
|
-
super(`Some of the block requirements are not supported by the runtime: ${Array.from(r.entries()).map(([t,
|
|
1004
|
-
|
|
1034
|
+
super(`Some of the block requirements are not supported by the runtime: ${Array.from(r.entries()).map(([t, i]) => `${t}: ${i}`).join(", ")}`);
|
|
1035
|
+
f(this, "name", "IncompatibleFlagsError");
|
|
1005
1036
|
this.incompatibleFlags = r;
|
|
1006
1037
|
}
|
|
1007
1038
|
}
|
|
1008
|
-
class
|
|
1039
|
+
class jn {
|
|
1009
1040
|
constructor() {
|
|
1010
|
-
|
|
1041
|
+
f(this, "supportedRequirements", /* @__PURE__ */ new Map());
|
|
1011
1042
|
}
|
|
1012
1043
|
/**
|
|
1013
1044
|
* Adds a supported requirement to the runtime capabilities.
|
|
@@ -1025,11 +1056,11 @@ class Cn {
|
|
|
1025
1056
|
getIncompatibleFlags(n) {
|
|
1026
1057
|
if (n === void 0) return;
|
|
1027
1058
|
const r = /* @__PURE__ */ new Map();
|
|
1028
|
-
for (const [t,
|
|
1059
|
+
for (const [t, i] of Object.entries(n))
|
|
1029
1060
|
if (t.startsWith("requires")) {
|
|
1030
|
-
if (
|
|
1031
|
-
const
|
|
1032
|
-
(
|
|
1061
|
+
if (i === void 0) continue;
|
|
1062
|
+
const o = this.supportedRequirements.get(t);
|
|
1063
|
+
(o === void 0 || !o.has(i)) && r.set(t, i);
|
|
1033
1064
|
}
|
|
1034
1065
|
return r.size === 0 ? void 0 : r;
|
|
1035
1066
|
}
|
|
@@ -1054,99 +1085,99 @@ class Cn {
|
|
|
1054
1085
|
}
|
|
1055
1086
|
export {
|
|
1056
1087
|
ln as AbortError,
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1088
|
+
xn as AllRequiresFeatureFlags,
|
|
1089
|
+
An as AllSupportsFeatureFlags,
|
|
1090
|
+
Ke as AnchoredIdDeriver,
|
|
1060
1091
|
Ze as DefaultNavigationState,
|
|
1061
1092
|
me as IncompatibleFlagsError,
|
|
1062
1093
|
bn as PFrameDriverError,
|
|
1063
1094
|
ce as PFrameError,
|
|
1064
1095
|
H as PTableAbsent,
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1096
|
+
C as PTableNA,
|
|
1097
|
+
$ as PlId,
|
|
1098
|
+
R as PlIdBytes,
|
|
1068
1099
|
ae as PlIdLength,
|
|
1069
1100
|
en as PlRef,
|
|
1070
|
-
|
|
1071
|
-
|
|
1101
|
+
Pe as RangeBytes,
|
|
1102
|
+
jn as RuntimeCapabilities,
|
|
1072
1103
|
mn as UiError,
|
|
1073
|
-
|
|
1074
|
-
|
|
1104
|
+
Ie as canonicalizeAxisId,
|
|
1105
|
+
dn as canonicalizeJson,
|
|
1075
1106
|
En as checkBlockFlag,
|
|
1076
1107
|
rn as createPlRef,
|
|
1077
|
-
|
|
1108
|
+
Fe as dataInfoToEntries,
|
|
1078
1109
|
Ye as deriveNativeId,
|
|
1079
|
-
|
|
1110
|
+
P as deserializeError,
|
|
1080
1111
|
wn as deserializeResult,
|
|
1081
1112
|
un as digestPlId,
|
|
1082
1113
|
w as ensureError,
|
|
1083
1114
|
We as ensurePColumn,
|
|
1084
|
-
|
|
1085
|
-
|
|
1115
|
+
Je as entriesToDataInfo,
|
|
1116
|
+
g as executePSpecPredicate,
|
|
1086
1117
|
Xe as extractAllColumns,
|
|
1087
1118
|
Sn as extractAllRequirements,
|
|
1088
1119
|
On as extractAllSupports,
|
|
1089
1120
|
be as extractCodeWithInfo,
|
|
1090
1121
|
ve as extractConfigGeneric,
|
|
1091
|
-
|
|
1122
|
+
J as getAxesId,
|
|
1092
1123
|
h as getAxisId,
|
|
1093
|
-
|
|
1124
|
+
Te as getColumnIdAndSpec,
|
|
1094
1125
|
Ee as getFileNameFromHandle,
|
|
1095
|
-
|
|
1096
|
-
|
|
1126
|
+
q as getFilePathFromHandle,
|
|
1127
|
+
Ve as getPColumnSpecId,
|
|
1097
1128
|
Ue as getPTableColumnId,
|
|
1098
1129
|
ue as hasAbortError,
|
|
1099
1130
|
pn as isAbortError,
|
|
1100
1131
|
hn as isAggregateError,
|
|
1101
1132
|
we as isBlockUIURL,
|
|
1102
1133
|
Se as isDataInfo,
|
|
1103
|
-
|
|
1104
|
-
|
|
1134
|
+
M as isDataInfoEntries,
|
|
1135
|
+
_e as isFilteredPColumn,
|
|
1105
1136
|
ge as isFolderURL,
|
|
1106
1137
|
U as isImportFileHandleIndex,
|
|
1107
1138
|
B as isImportFileHandleUpload,
|
|
1108
|
-
|
|
1139
|
+
xe as isLiveLog,
|
|
1109
1140
|
ee as isPColumn,
|
|
1110
1141
|
He as isPColumnResult,
|
|
1111
1142
|
l as isPColumnSpec,
|
|
1112
1143
|
ze as isPColumnSpecResult,
|
|
1113
1144
|
vn as isPFrameDriverError,
|
|
1114
1145
|
yn as isPFrameError,
|
|
1115
|
-
|
|
1146
|
+
Re as isPTableAbsent,
|
|
1116
1147
|
W as isPTableNA,
|
|
1117
|
-
|
|
1118
|
-
|
|
1148
|
+
$e as isPTableValueAxis,
|
|
1149
|
+
Ce as isPartitionedDataInfoEntries,
|
|
1119
1150
|
nn as isPlRef,
|
|
1120
1151
|
Oe as mapDataInfo,
|
|
1121
|
-
|
|
1122
|
-
|
|
1152
|
+
Ne as mapDataInfoEntries,
|
|
1153
|
+
v as mapJoinEntry,
|
|
1123
1154
|
Ge as mapPObjectData,
|
|
1124
1155
|
Be as mapPTableDef,
|
|
1125
1156
|
an as mapValueInVOE,
|
|
1126
|
-
|
|
1157
|
+
x as matchAxis,
|
|
1127
1158
|
X as matchAxisId,
|
|
1128
1159
|
E as matchPColumn,
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1160
|
+
ke as newRangeBytesOpt,
|
|
1161
|
+
De as pTableValue,
|
|
1162
|
+
Le as pTableValueBranded,
|
|
1163
|
+
qe as parseColumnId,
|
|
1164
|
+
fn as parseJson,
|
|
1134
1165
|
se as plId,
|
|
1135
1166
|
on as plRefsEqual,
|
|
1136
|
-
|
|
1167
|
+
Me as resolveAnchors,
|
|
1137
1168
|
Qe as selectorsToPredicate,
|
|
1138
|
-
|
|
1139
|
-
|
|
1169
|
+
D as serializeError,
|
|
1170
|
+
L as serializeResult,
|
|
1140
1171
|
Q as stringifyColumnId,
|
|
1141
1172
|
cn as stringifyJson,
|
|
1142
1173
|
sn as uniquePlId,
|
|
1143
1174
|
gn as unwrapResult,
|
|
1144
|
-
|
|
1145
|
-
|
|
1175
|
+
Ae as validateRangeBytes,
|
|
1176
|
+
je as visitDataInfo,
|
|
1146
1177
|
tn as withEnrichments,
|
|
1147
|
-
|
|
1148
|
-
|
|
1178
|
+
Pn as wrapAndSerialize,
|
|
1179
|
+
kn as wrapAndSerializeAsync,
|
|
1149
1180
|
le as wrapAsyncCallback,
|
|
1150
|
-
|
|
1181
|
+
fe as wrapCallback
|
|
1151
1182
|
};
|
|
1152
1183
|
//# sourceMappingURL=index.mjs.map
|