@platforma-sdk/model 1.30.21 → 1.30.26

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/index.mjs CHANGED
@@ -1,44 +1,44 @@
1
- var Me = Object.defineProperty;
2
- var We = (t, e, n) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var T = (t, e, n) => We(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { isPColumn as me, mapPObjectData as ye, isDataInfoEntries as _e, isDataInfo as ve, dataInfoToEntries as Ge, resolveAnchors as He, isPColumnSpec as Q, isPartitionedDataInfoEntries as qe, getAxisId as E, entriesToDataInfo as ze, selectorsToPredicate as ce, canonicalizeAxisId as Ye, withEnrichments as be, AnchoredIdDeriver as we, isPlRef as Xe, mapValueInVOE as Qe, ensurePColumn as Ze, extractAllColumns as et, mapPTableDef as tt, mapDataInfo as nt, canonicalizeJson as ee, matchAxisId as R, getColumnIdAndSpec as Ie, getPColumnSpecId as Ae } from "@milaboratories/pl-model-common";
1
+ var ze = Object.defineProperty;
2
+ var Ye = (t, e, n) => e in t ? ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var F = (t, e, n) => Ye(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { isPColumn as ye, mapPObjectData as ve, isDataInfoEntries as Le, isDataInfo as be, dataInfoToEntries as Xe, selectorsToPredicate as Y, resolveAnchors as we, deriveNativeId as Qe, isPColumnSpec as te, isPartitionedDataInfoEntries as Ze, getAxisId as O, entriesToDataInfo as et, canonicalizeAxisId as tt, withEnrichments as Ae, AnchoredIdDeriver as xe, isPlRef as nt, mapValueInVOE as rt, ensurePColumn as it, extractAllColumns as st, mapPTableDef as ot, mapDataInfo as at, canonicalizeJson as re, matchAxisId as K, getColumnIdAndSpec as Ee, getPColumnSpecId as Pe } from "@milaboratories/pl-model-common";
5
5
  export * from "@milaboratories/pl-model-common";
6
- import Le from "canonicalize";
7
- import { z as K } from "zod";
6
+ import De from "canonicalize";
7
+ import { z as U } from "zod";
8
8
  export * from "@milaboratories/pl-error-like";
9
- class rt extends Error {
9
+ class lt extends Error {
10
10
  constructor(e, n) {
11
11
  super(`${e.length}${n ? "+" : ""} errors, first error: ` + e[0].message), this.errors = e, this.moreErrors = n;
12
12
  }
13
13
  }
14
- function it(t) {
15
- if (!t.ok) throw new rt(t.errors, t.moreErrors);
14
+ function ut(t) {
15
+ if (!t.ok) throw new lt(t.errors, t.moreErrors);
16
16
  return t.value;
17
17
  }
18
- function Mt(t) {
18
+ function qt(t) {
19
19
  return new Proxy(t, {
20
20
  get(e, n) {
21
- return it(e[n]);
21
+ return ut(e[n]);
22
22
  }
23
23
  });
24
24
  }
25
25
  function C(t) {
26
- return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null ? Z(t) : t;
26
+ return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null ? ne(t) : t;
27
27
  }
28
- function H(t) {
28
+ function X(t) {
29
29
  return { type: "GetFromCtx", variable: t };
30
30
  }
31
- function Wt(t) {
31
+ function zt(t) {
32
32
  return {
33
33
  type: "Isolate",
34
34
  cfg: t
35
35
  };
36
36
  }
37
- const Gt = H("$args"), Ht = H("$it"), qt = H("$prod"), zt = H("$staging"), Yt = H("$ui");
38
- function Z(t) {
37
+ const Yt = X("$args"), Xt = X("$it"), Qt = X("$prod"), Zt = X("$staging"), en = X("$ui");
38
+ function ne(t) {
39
39
  return { type: "Immediate", value: t };
40
40
  }
41
- function Te(t) {
41
+ function Fe(t) {
42
42
  const e = {};
43
43
  for (const [n, r] of Object.entries(t)) e[n] = C(r);
44
44
  return {
@@ -46,7 +46,7 @@ function Te(t) {
46
46
  template: e
47
47
  };
48
48
  }
49
- function Xt(...t) {
49
+ function tn(...t) {
50
50
  const e = [];
51
51
  for (const n of t) e.push(C(n));
52
52
  return {
@@ -54,14 +54,14 @@ function Xt(...t) {
54
54
  template: e
55
55
  };
56
56
  }
57
- function te(t, e) {
57
+ function ie(t, e) {
58
58
  return {
59
59
  type: "GetJsonField",
60
60
  source: C(t),
61
61
  field: C(e)
62
62
  };
63
63
  }
64
- function Qt(t, e, n = "$it") {
64
+ function nn(t, e, n = "$it") {
65
65
  return {
66
66
  type: "MapRecordValues",
67
67
  source: t,
@@ -69,7 +69,7 @@ function Qt(t, e, n = "$it") {
69
69
  itVar: n
70
70
  };
71
71
  }
72
- function Zt(t, e, n = "$it") {
72
+ function rn(t, e, n = "$it") {
73
73
  return {
74
74
  type: "MapArrayValues",
75
75
  source: t,
@@ -77,46 +77,46 @@ function Zt(t, e, n = "$it") {
77
77
  itVar: n
78
78
  };
79
79
  }
80
- function en(t) {
80
+ function sn(t) {
81
81
  return {
82
82
  type: "Flatten",
83
83
  source: t
84
84
  };
85
85
  }
86
- function tn(t) {
86
+ function on(t) {
87
87
  return {
88
88
  type: "IsEmpty",
89
89
  arg: t
90
90
  };
91
91
  }
92
- function nn(t) {
92
+ function an(t) {
93
93
  return {
94
94
  type: "Not",
95
95
  operand: t
96
96
  };
97
97
  }
98
- function rn(t, e) {
98
+ function ln(t, e) {
99
99
  return {
100
100
  type: "And",
101
101
  operand1: t,
102
102
  operand2: e
103
103
  };
104
104
  }
105
- function sn(t, e) {
105
+ function un(t, e) {
106
106
  return {
107
107
  type: "Or",
108
108
  operand1: t,
109
109
  operand2: e
110
110
  };
111
111
  }
112
- function on(t, e) {
112
+ function cn(t, e) {
113
113
  return {
114
114
  type: "GetResourceField",
115
115
  source: C(t),
116
116
  field: C(e)
117
117
  };
118
118
  }
119
- function an() {
119
+ function dn() {
120
120
  return function(t) {
121
121
  return {
122
122
  type: "GetResourceValueAsJson",
@@ -124,7 +124,7 @@ function an() {
124
124
  };
125
125
  };
126
126
  }
127
- function ln(t, e, n = "$it") {
127
+ function pn(t, e, n = "$it") {
128
128
  return {
129
129
  type: "MapResourceFields",
130
130
  source: t,
@@ -132,19 +132,19 @@ function ln(t, e, n = "$it") {
132
132
  itVar: n
133
133
  };
134
134
  }
135
- function un(t) {
135
+ function fn(t) {
136
136
  return {
137
137
  type: "GetBlobContent",
138
138
  source: C(t)
139
139
  };
140
140
  }
141
- function cn(t) {
141
+ function hn(t) {
142
142
  return {
143
143
  type: "GetBlobContentAsString",
144
144
  source: C(t)
145
145
  };
146
146
  }
147
- function pn() {
147
+ function gn() {
148
148
  return function(t) {
149
149
  return {
150
150
  type: "GetBlobContentAsJson",
@@ -152,100 +152,100 @@ function pn() {
152
152
  };
153
153
  };
154
154
  }
155
- function dn(t) {
155
+ function mn(t) {
156
156
  return {
157
157
  type: "GetDownloadedBlobContent",
158
158
  source: C(t)
159
159
  };
160
160
  }
161
- function fn(t) {
161
+ function yn(t) {
162
162
  return {
163
163
  type: "GetOnDemandBlobContent",
164
164
  source: C(t)
165
165
  };
166
166
  }
167
- function hn(t, e) {
167
+ function vn(t, e) {
168
168
  return {
169
169
  type: "ExtractArchiveAndGetURL",
170
170
  format: e,
171
171
  source: C(t)
172
172
  };
173
173
  }
174
- function gn(t) {
174
+ function bn(t) {
175
175
  return {
176
176
  type: "GetImportProgress",
177
177
  source: C(t)
178
178
  };
179
179
  }
180
- function mn(t, e) {
180
+ function wn(t, e) {
181
181
  return {
182
182
  type: "GetLastLogs",
183
183
  source: C(t),
184
184
  lines: e
185
185
  };
186
186
  }
187
- function yn(t, e) {
187
+ function An(t, e) {
188
188
  return {
189
189
  type: "GetProgressLog",
190
190
  source: C(t),
191
191
  patternToSearch: e
192
192
  };
193
193
  }
194
- function vn(t, e) {
194
+ function xn(t, e) {
195
195
  return {
196
196
  type: "GetProgressLogWithInfo",
197
197
  source: C(t),
198
198
  patternToSearch: e
199
199
  };
200
200
  }
201
- function bn(t) {
201
+ function Pn(t) {
202
202
  return {
203
203
  type: "GetLogHandle",
204
204
  source: C(t)
205
205
  };
206
206
  }
207
- function st() {
207
+ function ct() {
208
208
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
209
209
  }
210
- function Ee(t) {
210
+ function Oe(t) {
211
211
  if (t && typeof globalThis.getPlatforma == "function")
212
212
  return globalThis.getPlatforma(t);
213
213
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
214
214
  throw new Error("Can't get platforma instance.");
215
215
  }
216
- function ot() {
216
+ function dt() {
217
217
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
218
218
  }
219
- function y() {
219
+ function f() {
220
220
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
221
221
  throw new Error("Not in config rendering context");
222
222
  }
223
- function B(t, e) {
224
- const n = ot();
223
+ function G(t, e) {
224
+ const n = dt();
225
225
  if (n === void 0) return !1;
226
226
  if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
227
227
  return n.callbackRegistry[t] = e, !0;
228
228
  }
229
- const ae = /* @__PURE__ */ new Map();
230
- function at(t, e) {
231
- t in y().callbackRegistry || (y().callbackRegistry[t] = (n) => {
232
- for (const r of ae.get(t))
229
+ const ue = /* @__PURE__ */ new Map();
230
+ function pt(t, e) {
231
+ t in f().callbackRegistry || (f().callbackRegistry[t] = (n) => {
232
+ for (const r of ue.get(t))
233
233
  r(n);
234
- }, ae.set(t, [])), ae.get(t).push(e);
234
+ }, ue.set(t, [])), ue.get(t).push(e);
235
235
  }
236
- class S {
236
+ class I {
237
237
  constructor(e, n = (r) => r) {
238
- T(this, "isResolved", !1);
239
- T(this, "resolvedValue");
240
- this.handle = e, this.postProcess = n, at(e, (r) => {
238
+ F(this, "isResolved", !1);
239
+ F(this, "resolvedValue");
240
+ this.handle = e, this.postProcess = n, pt(e, (r) => {
241
241
  this.resolvedValue = n(r), this.isResolved = !0;
242
242
  });
243
243
  }
244
244
  map(e) {
245
- return new S(this.handle, (n) => e(this.postProcess(n)));
245
+ return new I(this.handle, (n) => e(this.postProcess(n)));
246
246
  }
247
247
  mapDefined(e) {
248
- return new S(this.handle, (n) => {
248
+ return new I(this.handle, (n) => {
249
249
  const r = this.postProcess(n);
250
250
  return r ? e(r) : void 0;
251
251
  });
@@ -257,7 +257,7 @@ class S {
257
257
  function pe(t, e) {
258
258
  return t === void 0 ? void 0 : e(t);
259
259
  }
260
- class I {
260
+ class E {
261
261
  constructor(e, n) {
262
262
  this.handle = e, this.resolvePath = n;
263
263
  }
@@ -297,46 +297,46 @@ class I {
297
297
  ...n.map((i) => typeof i == "string" ? i : i.field)
298
298
  ];
299
299
  return pe(
300
- y().resolveWithCommon(this.handle, e, ...n),
301
- (i) => new I(i, r)
300
+ f().resolveWithCommon(this.handle, e, ...n),
301
+ (i) => new E(i, r)
302
302
  );
303
303
  }
304
304
  get resourceType() {
305
- return y().getResourceType(this.handle);
305
+ return f().getResourceType(this.handle);
306
306
  }
307
307
  getInputsLocked() {
308
- return y().getInputsLocked(this.handle);
308
+ return f().getInputsLocked(this.handle);
309
309
  }
310
310
  getOutputsLocked() {
311
- return y().getOutputsLocked(this.handle);
311
+ return f().getOutputsLocked(this.handle);
312
312
  }
313
313
  getIsReadyOrError() {
314
- return y().getIsReadyOrError(this.handle);
314
+ return f().getIsReadyOrError(this.handle);
315
315
  }
316
316
  getIsFinal() {
317
- return y().getIsFinal(this.handle);
317
+ return f().getIsFinal(this.handle);
318
318
  }
319
319
  getError() {
320
320
  const e = [...this.resolvePath, "error"];
321
321
  return pe(
322
- y().getError(this.handle),
323
- (n) => new I(n, e)
322
+ f().getError(this.handle),
323
+ (n) => new E(n, e)
324
324
  );
325
325
  }
326
326
  listInputFields() {
327
- return y().listInputFields(this.handle);
327
+ return f().listInputFields(this.handle);
328
328
  }
329
329
  listOutputFields() {
330
- return y().listOutputFields(this.handle);
330
+ return f().listOutputFields(this.handle);
331
331
  }
332
332
  listDynamicFields() {
333
- return y().listDynamicFields(this.handle);
333
+ return f().listDynamicFields(this.handle);
334
334
  }
335
335
  getKeyValueBase64(e) {
336
- return y().getKeyValueBase64(this.handle, e);
336
+ return f().getKeyValueBase64(this.handle, e);
337
337
  }
338
338
  getKeyValueAsString(e) {
339
- return y().getKeyValueAsString(this.handle, e);
339
+ return f().getKeyValueAsString(this.handle, e);
340
340
  }
341
341
  getKeyValueAsJson(e) {
342
342
  const n = this.getKeyValueAsString(e);
@@ -344,10 +344,10 @@ class I {
344
344
  return JSON.parse(n);
345
345
  }
346
346
  getDataBase64() {
347
- return y().getDataBase64(this.handle);
347
+ return f().getDataBase64(this.handle);
348
348
  }
349
349
  getDataAsString() {
350
- return y().getDataAsString(this.handle);
350
+ return f().getDataAsString(this.handle);
351
351
  }
352
352
  getDataAsJson() {
353
353
  const e = this.getDataAsString();
@@ -360,7 +360,7 @@ class I {
360
360
  getPColumns(e = !1, n = "") {
361
361
  const r = this.parsePObjectCollection(e, n);
362
362
  return r === void 0 ? void 0 : Object.entries(r).map(([, s]) => {
363
- if (!me(s)) throw new Error(`not a PColumn (kind = ${s.spec.kind})`);
363
+ if (!ye(s)) throw new Error(`not a PColumn (kind = ${s.spec.kind})`);
364
364
  return s;
365
365
  });
366
366
  }
@@ -368,7 +368,7 @@ class I {
368
368
  *
369
369
  */
370
370
  parsePObjectCollection(e = !1, n = "") {
371
- const r = y().parsePObjectCollection(
371
+ const r = f().parsePObjectCollection(
372
372
  this.handle,
373
373
  e,
374
374
  n,
@@ -378,19 +378,19 @@ class I {
378
378
  const i = {};
379
379
  for (const [s, o] of Object.entries(r)) {
380
380
  const a = [...this.resolvePath, s];
381
- i[s] = ye(o, (l) => new I(l, a));
381
+ i[s] = ve(o, (l) => new E(l, a));
382
382
  }
383
383
  return i;
384
384
  }
385
385
  getFileContentAsBase64() {
386
- return new S(y().getBlobContentAsBase64(this.handle));
386
+ return new I(f().getBlobContentAsBase64(this.handle));
387
387
  }
388
388
  getFileContentAsString() {
389
- return new S(y().getBlobContentAsString(this.handle));
389
+ return new I(f().getBlobContentAsString(this.handle));
390
390
  }
391
391
  getFileContentAsJson() {
392
- return new S(
393
- y().getBlobContentAsString(this.handle)
392
+ return new I(
393
+ f().getBlobContentAsString(this.handle)
394
394
  ).mapDefined((e) => JSON.parse(e));
395
395
  }
396
396
  /**
@@ -409,7 +409,7 @@ class I {
409
409
  * @returns downloaded file handle
410
410
  */
411
411
  getFileHandle() {
412
- return new S(y().getDownloadedBlobContentHandle(this.handle));
412
+ return new I(f().getDownloadedBlobContentHandle(this.handle));
413
413
  }
414
414
  /**
415
415
  * @deprecated use getFileHandle
@@ -421,7 +421,7 @@ class I {
421
421
  * @returns downloaded file handle
422
422
  */
423
423
  getRemoteFileHandle() {
424
- return new S(y().getOnDemandBlobContentHandle(this.handle));
424
+ return new I(f().getOnDemandBlobContentHandle(this.handle));
425
425
  }
426
426
  /**
427
427
  * @deprecated use getRemoteFileHandle
@@ -433,22 +433,22 @@ class I {
433
433
  * @returns the url to the extracted folder
434
434
  */
435
435
  extractArchiveAndGetURL(e) {
436
- return new S(y().extractArchiveAndGetURL(this.handle, e));
436
+ return new I(f().extractArchiveAndGetURL(this.handle, e));
437
437
  }
438
438
  getImportProgress() {
439
- return new S(y().getImportProgress(this.handle));
439
+ return new I(f().getImportProgress(this.handle));
440
440
  }
441
441
  getLastLogs(e) {
442
- return new S(y().getLastLogs(this.handle, e));
442
+ return new I(f().getLastLogs(this.handle, e));
443
443
  }
444
444
  getProgressLog(e) {
445
- return new S(y().getProgressLog(this.handle, e));
445
+ return new I(f().getProgressLog(this.handle, e));
446
446
  }
447
447
  getProgressLogWithInfo(e) {
448
- return new S(y().getProgressLogWithInfo(this.handle, e));
448
+ return new I(f().getProgressLogWithInfo(this.handle, e));
449
449
  }
450
450
  getLogHandle() {
451
- return new S(y().getLogHandle(this.handle));
451
+ return new I(f().getLogHandle(this.handle));
452
452
  }
453
453
  allFieldsResolved(e = "Input") {
454
454
  switch (e) {
@@ -477,118 +477,119 @@ class I {
477
477
  return s && (l = l.filter((u) => u[1] !== void 0)), l.map(([u, p]) => o(u, p));
478
478
  }
479
479
  }
480
- const Fe = "staging", Oe = "main", lt = {
480
+ const Re = "staging", ke = "main", ft = {
481
481
  explicitColumnsSupport: !0,
482
482
  inlineColumnsSupport: !0,
483
483
  activeArgs: !0
484
484
  };
485
- function De(t) {
485
+ function je(t) {
486
486
  return typeof t == "object" && t !== null && "__awaited_futures__" in t;
487
487
  }
488
- function de(t, e, n) {
488
+ function fe(t, e, n) {
489
489
  if (e.has(n)) return;
490
490
  if (e.add(n), typeof n === "object")
491
- if (De(n)) n.__awaited_futures__.forEach((i) => t.add(i));
491
+ if (je(n)) n.__awaited_futures__.forEach((i) => t.add(i));
492
492
  else if (Array.isArray(n))
493
- for (const i of n) de(t, e, i);
493
+ for (const i of n) fe(t, e, i);
494
494
  else
495
495
  for (const [, i] of Object.entries(n))
496
- i !== n && de(t, e, i);
496
+ i !== n && fe(t, e, i);
497
497
  }
498
- function ut(t) {
498
+ function ht(t) {
499
499
  const e = /* @__PURE__ */ new Set();
500
- return de(e, /* @__PURE__ */ new Set(), t), e;
500
+ return fe(e, /* @__PURE__ */ new Set(), t), e;
501
501
  }
502
- const wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
502
+ const Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
503
503
  __proto__: null,
504
- GlobalCfgRenderCtxFeatureFlags: lt,
505
- MainAccessorName: Oe,
506
- StagingAccessorName: Fe,
507
- getAllFutureAwaits: ut,
508
- isFutureAwait: De
509
- }, Symbol.toStringTag, { value: "Module" })), ct = "pl7.app/label", pt = "pl7.app/trace", dt = K.object({
510
- type: K.string(),
511
- importance: K.number().optional(),
512
- id: K.string().optional(),
513
- label: K.string()
514
- }), ft = K.array(dt), ht = 1e-3, gt = "__LABEL__", xe = "__LABEL__@1";
515
- function Re(t, e, n = {}) {
516
- const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = t.map((f) => {
517
- var z, F;
518
- const g = e(f);
519
- let h, P, c;
520
- "spec" in g && typeof g.spec == "object" ? (h = g.spec, P = g.prefixTrace, c = g.suffixTrace) : h = g;
521
- const b = (z = h.annotations) == null ? void 0 : z[ct], m = (F = h.annotations) == null ? void 0 : F[pt], w = (m ? ft.safeParse(JSON.parse(m)).data : void 0) ?? [], A = [
522
- ...P ?? [],
523
- ...w,
524
- ...c ?? []
504
+ GlobalCfgRenderCtxFeatureFlags: ft,
505
+ MainAccessorName: ke,
506
+ StagingAccessorName: Re,
507
+ getAllFutureAwaits: ht,
508
+ isFutureAwait: je
509
+ }, Symbol.toStringTag, { value: "Module" })), gt = "pl7.app/label", mt = "pl7.app/trace", yt = U.object({
510
+ type: U.string(),
511
+ importance: U.number().optional(),
512
+ id: U.string().optional(),
513
+ label: U.string()
514
+ }), vt = U.array(yt), bt = 1e-3, wt = "__LABEL__", Ce = "__LABEL__@1";
515
+ function Ve(t, e, n = {}) {
516
+ const r = /* @__PURE__ */ new Map(), i = n.forceTraceElements !== void 0 && n.forceTraceElements.length > 0 ? new Set(n.forceTraceElements) : void 0, s = /* @__PURE__ */ new Map(), o = t.map((g) => {
517
+ var S, R;
518
+ const m = e(g);
519
+ let c, y, d;
520
+ "spec" in m && typeof m.spec == "object" ? (c = m.spec, y = m.prefixTrace, d = m.suffixTrace) : c = m;
521
+ const b = (S = c.annotations) == null ? void 0 : S[gt], A = (R = c.annotations) == null ? void 0 : R[mt], v = (A ? vt.safeParse(JSON.parse(A)).data : void 0) ?? [], P = [
522
+ ...y ?? [],
523
+ ...v,
524
+ ...d ?? []
525
525
  ];
526
- if (b) {
527
- const L = { label: b, type: gt, importance: -2 };
528
- n.addLabelAsSuffix ? A.push(L) : A.splice(0, 0, L);
526
+ if (b !== void 0) {
527
+ const D = { label: b, type: wt, importance: -2 };
528
+ n.addLabelAsSuffix ? P.push(D) : P.splice(0, 0, D);
529
529
  }
530
- const O = [], J = /* @__PURE__ */ new Map();
531
- for (let L = A.length - 1; L >= 0; --L) {
532
- const { type: k } = A[L], se = A[L].importance ?? 0, N = (J.get(k) ?? 0) + 1;
533
- J.set(k, N);
534
- const x = `${k}@${N}`;
535
- i.set(x, (i.get(x) ?? 0) + 1), r.set(
536
- x,
530
+ const x = [], T = /* @__PURE__ */ new Map();
531
+ for (let D = P.length - 1; D >= 0; --D) {
532
+ const { type: M } = P[D], j = P[D].importance ?? 0, $ = (T.get(M) ?? 0) + 1;
533
+ T.set(M, $);
534
+ const k = `${M}@${$}`;
535
+ s.set(k, (s.get(k) ?? 0) + 1), r.set(
536
+ k,
537
537
  Math.max(
538
- r.get(x) ?? Number.NEGATIVE_INFINITY,
539
- se - (A.length - L) * ht
538
+ r.get(k) ?? Number.NEGATIVE_INFINITY,
539
+ j - (P.length - D) * bt
540
540
  )
541
- ), O.push({ ...A[L], fullType: x, occurrenceIndex: N });
541
+ ), x.push({ ...P[D], fullType: k, occurrenceIndex: $ });
542
542
  }
543
- return O.reverse(), {
544
- value: f,
545
- spec: h,
543
+ return x.reverse(), {
544
+ value: g,
545
+ spec: c,
546
546
  label: b,
547
- fullTrace: O
547
+ fullTrace: x
548
548
  };
549
- }), o = [], a = [], l = [...r];
550
- l.sort(([, f], [, g]) => g - f);
551
- for (const [f] of l)
552
- f.endsWith("@1") || i.get(f) === t.length ? o.push(f) : a.push(f);
553
- const u = (f) => {
554
- const g = [];
555
- for (let h = 0; h < s.length; h++) {
556
- const P = s[h], c = P.fullTrace.filter((w) => f.has(w.fullType));
557
- if (c.length === 0)
558
- return;
559
- const b = c.map((w) => w.label), m = n.separator ?? " / ";
560
- g.push({
561
- label: b.join(m),
562
- value: P.value
549
+ }), a = [], l = [], u = [...r];
550
+ u.sort(([, g], [, m]) => m - g);
551
+ for (const [g] of u)
552
+ g.endsWith("@1") || s.get(g) === t.length ? a.push(g) : l.push(g);
553
+ const p = (g, m = !1) => {
554
+ const c = [];
555
+ for (let y = 0; y < o.length; y++) {
556
+ const d = o[y], b = d.fullTrace.filter((P) => g.has(P.fullType) || i && i.has(P.type));
557
+ if (b.length === 0)
558
+ if (m)
559
+ c.push({
560
+ label: "Unlabeled",
561
+ value: d.value
562
+ });
563
+ else return;
564
+ const A = b.map((P) => P.label), v = n.separator ?? " / ";
565
+ c.push({
566
+ label: A.join(v),
567
+ value: d.value
563
568
  });
564
569
  }
565
- return g;
570
+ return c;
566
571
  };
567
- if (o.length === 0) {
568
- if (a.length !== 0) throw new Error("Assertion error.");
569
- const f = u(new Set(xe));
570
- if (f === void 0) throw new Error("Assertion error.");
571
- return f;
572
- }
573
- let p = 0, v = 0;
574
- for (; p < o.length; ) {
575
- const f = /* @__PURE__ */ new Set();
576
- n.includeNativeLabel && f.add(xe);
577
- for (let h = 0; h < p; ++h) f.add(o[h]);
578
- f.add(o[v]);
579
- const g = u(f);
580
- if (g !== void 0 && new Set(g.map((h) => h.label)).size === t.length) return g;
581
- v++, v >= o.length && (p++, v = p);
582
- }
583
- const d = u(/* @__PURE__ */ new Set([...o, ...a]));
584
- if (d === void 0) throw new Error("Assertion error.");
585
- return d;
586
- }
587
- const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap", M = q + "JsonPartitioned", $ = q + "BinaryPartitioned", ke = q + "Partitioned/", ie = ke + "JsonPartitioned", W = ke + "BinaryPartitioned";
588
- function je(t, e, n, r = [], i) {
572
+ if (a.length === 0) {
573
+ if (l.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
574
+ return p(new Set(Ce), !0);
575
+ }
576
+ let h = 0, w = -1;
577
+ for (; h < a.length; ) {
578
+ const g = /* @__PURE__ */ new Set();
579
+ n.includeNativeLabel && g.add(Ce);
580
+ for (let c = 0; c < h; ++c) g.add(a[c]);
581
+ w >= 0 && g.add(a[w]);
582
+ const m = p(g);
583
+ if (m !== void 0 && new Set(m.map((c) => c.label)).size === t.length) return m;
584
+ w++, w >= a.length && (h++, w = h);
585
+ }
586
+ return p(/* @__PURE__ */ new Set([...a, ...l]), !0);
587
+ }
588
+ const Q = "PColumnData/", se = Q + "ResourceMap", oe = Q + "Partitioned/ResourceMap", H = Q + "JsonPartitioned", B = Q + "BinaryPartitioned", Ke = Q + "Partitioned/", ae = Ke + "JsonPartitioned", q = Ke + "BinaryPartitioned";
589
+ function $e(t, e, n, r = [], i) {
589
590
  if (t === void 0) return !1;
590
591
  switch (t.resourceType.name) {
591
- case ne: {
592
+ case se: {
592
593
  let s = t.getInputsLocked();
593
594
  for (const o of t.listInputFields()) {
594
595
  const a = t.resolve({ field: o, assertFieldType: "Input" }), l = [...r, ...JSON.parse(o)], u = a === void 0 ? void 0 : e(a);
@@ -596,13 +597,13 @@ function je(t, e, n, r = [], i) {
596
597
  }
597
598
  return s;
598
599
  }
599
- case re: {
600
+ case oe: {
600
601
  let s = t.getInputsLocked();
601
602
  for (const o of t.listInputFields()) {
602
603
  const a = t.resolve({ field: o, assertFieldType: "Input" });
603
604
  if (a === void 0) s = !1;
604
605
  else {
605
- const l = [...r, ...JSON.parse(o)], u = je(
606
+ const l = [...r, ...JSON.parse(o)], u = $e(
606
607
  a,
607
608
  e,
608
609
  n,
@@ -618,55 +619,55 @@ function je(t, e, n, r = [], i) {
618
619
  throw new Error(`Unknown resource type: ${t.resourceType.name}`);
619
620
  }
620
621
  }
621
- function An(t, e, n = !1) {
622
+ function Sn(t, e, n = !1) {
622
623
  const r = [];
623
- return { isComplete: je(t, e, r, [], n), data: r };
624
+ return { isComplete: $e(t, e, r, [], n), data: r };
624
625
  }
625
- const fe = (t) => {
626
+ const he = (t) => {
626
627
  if (t.endsWith(".index"))
627
628
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
628
629
  if (t.endsWith(".values"))
629
630
  return { baseKey: t.substring(0, t.length - 7), type: "values" };
630
631
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
631
632
  };
632
- function mt(t) {
633
+ function At(t) {
633
634
  if (!t) return;
634
635
  const e = t.resourceType.name, n = t.getDataAsJson(), r = [];
635
636
  let i = 0;
636
637
  switch (e) {
637
- case ne:
638
+ case se:
638
639
  i = n.keyLength;
639
640
  break;
640
- case re:
641
+ case oe:
641
642
  i = n.partitionKeyLength + n.keyLength;
642
643
  break;
643
- case M:
644
- case $:
644
+ case H:
645
+ case B:
645
646
  i = n.partitionKeyLength;
646
647
  break;
647
- case W:
648
- case ie:
648
+ case q:
649
+ case ae:
649
650
  i = n.superPartitionKeyLength + n.partitionKeyLength;
650
651
  break;
651
652
  }
652
653
  switch (e) {
653
- case ne:
654
- case M:
655
- case $:
654
+ case se:
655
+ case H:
656
+ case B:
656
657
  for (let s of t.listInputFields()) {
657
- e === $ && (s = fe(s).baseKey);
658
+ e === B && (s = he(s).baseKey);
658
659
  const o = [...JSON.parse(s)];
659
660
  r.push(o);
660
661
  }
661
662
  break;
662
- case re:
663
- case W:
664
- case ie:
663
+ case oe:
664
+ case q:
665
+ case ae:
665
666
  for (const s of t.listInputFields()) {
666
667
  const o = [...JSON.parse(s)], a = t.resolve({ field: s, assertFieldType: "Input" });
667
668
  if (a !== void 0)
668
669
  for (let l of a.listInputFields()) {
669
- e === W && (l = fe(l).baseKey);
670
+ e === q && (l = he(l).baseKey);
670
671
  const u = [...o, ...JSON.parse(l)];
671
672
  r.push(u);
672
673
  }
@@ -675,7 +676,7 @@ function mt(t) {
675
676
  }
676
677
  return { data: r, keyLength: i };
677
678
  }
678
- function yt(t) {
679
+ function xt(t) {
679
680
  if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
680
681
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
681
682
  const { parts: e, partitionKeyLength: n } = t, r = [];
@@ -694,11 +695,11 @@ function yt(t) {
694
695
  }
695
696
  return r.map((i) => Array.from(i.values()));
696
697
  }
697
- function vt(t) {
698
+ function Pt(t) {
698
699
  if (t === void 0) return;
699
- if (_e(t))
700
- return yt(t);
701
- const e = mt(t);
700
+ if (Le(t))
701
+ return xt(t);
702
+ const e = At(t);
702
703
  if (!e) return;
703
704
  const { data: n, keyLength: r } = e, i = [];
704
705
  for (let s = 0; s < r; ++s)
@@ -711,16 +712,16 @@ function vt(t) {
711
712
  }
712
713
  return i.map((s) => Array.from(s.values()));
713
714
  }
714
- function he(t, e = []) {
715
+ function ge(t, e = []) {
715
716
  if (t === void 0 || !t.getIsReadyOrError()) return;
716
717
  const n = t.resourceType.name, r = t.getDataAsJson();
717
- if (e.length > 0 && (n === ie || n === W))
718
+ if (e.length > 0 && (n === ae || n === q))
718
719
  throw new Error(`Unexpected nested super-partitioned resource: ${n}`);
719
720
  switch (n) {
720
- case ne:
721
- case re:
721
+ case se:
722
+ case oe:
722
723
  throw new Error(`Only data columns are supported, got: ${n}`);
723
- case M: {
724
+ case H: {
724
725
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
725
726
  throw new Error(`Missing partitionKeyLength in metadata for ${n}`);
726
727
  const i = [];
@@ -736,12 +737,12 @@ function he(t, e = []) {
736
737
  parts: i
737
738
  };
738
739
  }
739
- case $: {
740
+ case B: {
740
741
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
741
742
  throw new Error(`Missing partitionKeyLength in metadata for ${n}`);
742
743
  const i = [], s = /* @__PURE__ */ new Map();
743
744
  for (const o of t.listInputFields()) {
744
- const a = fe(o), l = t.resolve({ field: o, assertFieldType: "Input" });
745
+ const a = he(o), l = t.resolve({ field: o, assertFieldType: "Input" });
745
746
  if (l === void 0) return;
746
747
  let u = s.get(a.baseKey);
747
748
  u || (u = {}, s.set(a.baseKey, u)), a.type === "index" ? u.index = l : u.values = l;
@@ -763,16 +764,16 @@ function he(t, e = []) {
763
764
  parts: i
764
765
  };
765
766
  }
766
- case ie: {
767
+ case ae: {
767
768
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
768
769
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n}`);
769
770
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s = [];
770
771
  for (const o of t.listInputFields()) {
771
772
  const a = t.resolve({ field: o, assertFieldType: "Input" });
772
773
  if (a === void 0) return;
773
- if (a.resourceType.name !== M)
774
- throw new Error(`Expected ${M} inside ${n}, but got ${a.resourceType.name}`);
775
- const l = he(a, JSON.parse(o));
774
+ if (a.resourceType.name !== H)
775
+ throw new Error(`Expected ${H} inside ${n}, but got ${a.resourceType.name}`);
776
+ const l = ge(a, JSON.parse(o));
776
777
  if (l === void 0) return;
777
778
  if (l.type !== "JsonPartitioned")
778
779
  throw new Error(`Unexpected inner result type for ${n}: ${l.type}`);
@@ -784,16 +785,16 @@ function he(t, e = []) {
784
785
  parts: s
785
786
  };
786
787
  }
787
- case W: {
788
+ case q: {
788
789
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
789
790
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n}`);
790
791
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s = [];
791
792
  for (const o of t.listInputFields()) {
792
793
  const a = t.resolve({ field: o, assertFieldType: "Input" });
793
794
  if (a === void 0) return;
794
- if (a.resourceType.name !== $)
795
- throw new Error(`Expected ${$} inside ${n}, but got ${a.resourceType.name}`);
796
- const l = he(a, JSON.parse(o));
795
+ if (a.resourceType.name !== B)
796
+ throw new Error(`Expected ${B} inside ${n}, but got ${a.resourceType.name}`);
797
+ const l = ge(a, JSON.parse(o));
797
798
  if (l === void 0) return;
798
799
  if (l.type !== "BinaryPartitioned")
799
800
  throw new Error(`Unexpected inner result type for ${n}: ${l.type}`);
@@ -809,15 +810,15 @@ function he(t, e = []) {
809
810
  throw new Error(`Unknown resource type: ${n}`);
810
811
  }
811
812
  }
812
- function bt(t) {
813
+ function Ct(t) {
813
814
  if (t !== void 0) {
814
- if (_e(t)) return t;
815
- if (ve(t)) return Ge(t);
816
- if (t instanceof I) return he(t);
815
+ if (Le(t)) return t;
816
+ if (be(t)) return Xe(t);
817
+ if (t instanceof E) return ge(t);
817
818
  throw new Error(`Unexpected input type: ${typeof t}`);
818
819
  }
819
820
  }
820
- function wt(t, e) {
821
+ function St(t, e) {
821
822
  const n = [...e].sort((s, o) => o[0] - s[0]);
822
823
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
823
824
  const { partitionKeyLength: s } = t;
@@ -877,39 +878,39 @@ function wt(t, e) {
877
878
  }
878
879
  }
879
880
  }
880
- class At {
881
+ class _t {
881
882
  constructor(e) {
882
883
  this.columns = e;
883
884
  }
884
885
  selectColumns(e) {
885
- const n = typeof e == "function" ? e : ce(e);
886
+ const n = typeof e == "function" ? e : Y(e);
886
887
  return this.columns.filter((r) => n(r.spec));
887
888
  }
888
889
  }
889
- function xt(t) {
890
+ function It(t) {
890
891
  if (t)
891
892
  return t.map((e) => ({
892
- type: `split:${Ye(e.axisId)}`,
893
+ type: `split:${tt(e.axisId)}`,
893
894
  label: e.label,
894
895
  importance: 1e6
895
896
  // High importance for split filters in labels
896
897
  }));
897
898
  }
898
- function Pt(t) {
899
+ function Tt(t) {
899
900
  if (t)
900
901
  return t.map((e) => [e.axisIdx, e.value]);
901
902
  }
902
- function Ct(t, e) {
903
+ function Lt(t, e) {
903
904
  if (!e || e.length === 0) return t;
904
905
  const n = [...e].sort((r, i) => r[0] - i[0]);
905
- return Le({ id: t, axisFilters: n });
906
+ return De({ id: t, axisFilters: n });
906
907
  }
907
- function St(t) {
908
+ function Se(t) {
908
909
  if (!t || typeof t != "object") return !1;
909
910
  const e = t, n = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
910
911
  return !!e.domainAnchor || n || r;
911
912
  }
912
- function _t(t) {
913
+ function Et(t) {
913
914
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
914
915
  return [];
915
916
  const e = t.axes.map((n, r) => typeof n == "object" && "split" in n && n.split === !0 ? r : -1).filter((n) => n !== -1);
@@ -917,11 +918,11 @@ function _t(t) {
917
918
  throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
918
919
  return e.sort((n, r) => n - r), e;
919
920
  }
920
- class ge {
921
+ class me {
921
922
  constructor() {
922
- T(this, "defaultProviderStore", []);
923
- T(this, "providers", [new At(this.defaultProviderStore)]);
924
- T(this, "axisLabelProviders", []);
923
+ F(this, "defaultProviderStore", []);
924
+ F(this, "providers", [new _t(this.defaultProviderStore)]);
925
+ F(this, "axisLabelProviders", []);
925
926
  }
926
927
  addColumnProvider(e) {
927
928
  return this.providers.push(e), this;
@@ -943,117 +944,133 @@ class ge {
943
944
  }
944
945
  }
945
946
  getUniversalEntries(e, n) {
946
- const { anchorCtx: r, labelOps: i, dontWaitAllData: s = !1, overrideLabelAnnotation: o = !1 } = n ?? {}, a = {
947
+ const { anchorCtx: r, labelOps: i, dontWaitAllData: s = !1, overrideLabelAnnotation: o = !1, exclude: a } = n ?? {}, l = {
947
948
  ...o && (i == null ? void 0 : i.includeNativeLabel) !== !1 ? { includeNativeLabel: !0 } : {},
948
949
  ...i ?? {}
949
- }, l = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u = [];
950
- for (const d of l) {
951
- const f = St(d);
952
- let g;
953
- if (f) {
950
+ };
951
+ let u = () => !1;
952
+ if (a) {
953
+ const c = (Array.isArray(a) ? a : [a]).map((y) => {
954
+ if (Se(y)) {
955
+ if (!r)
956
+ throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
957
+ return Y(we(r.anchors, y, n));
958
+ } else
959
+ return Y(y);
960
+ });
961
+ u = (y) => c.some((d) => d(y));
962
+ }
963
+ const p = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], h = [], w = /* @__PURE__ */ new Set();
964
+ for (const c of p) {
965
+ const y = Se(c);
966
+ let d;
967
+ if (y) {
954
968
  if (!r)
955
969
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
956
- g = He(r.anchors, d, n);
970
+ d = we(r.anchors, c, n);
957
971
  } else
958
- g = d;
959
- const h = /* @__PURE__ */ new Set(), P = [];
960
- for (const m of this.providers) {
961
- const w = m.selectColumns(g);
962
- for (const A of w) {
963
- if (h.has(A.id)) throw new Error(`Duplicate column id ${A.id} in provider ${m.constructor.name}`);
964
- h.add(A.id), P.push(A);
972
+ d = c;
973
+ const b = /* @__PURE__ */ new Set(), A = [];
974
+ for (const x of this.providers) {
975
+ const T = x.selectColumns(d);
976
+ for (const S of T) {
977
+ if (u(S.spec)) continue;
978
+ if (b.has(S.id))
979
+ throw new Error(`Duplicate column id ${S.id} in provider ${x.constructor.name}`);
980
+ const R = Qe(S.spec);
981
+ w.has(R) || (b.add(S.id), w.add(R), A.push(S));
965
982
  }
966
983
  }
967
- if (P.length === 0) continue;
968
- const c = _t(d), b = c.length > 0;
969
- for (const m of P) {
970
- if (!Q(m.spec)) continue;
971
- const w = m.spec;
972
- if (b) {
973
- const A = bt(m.data);
974
- if (!A) {
984
+ if (A.length === 0) continue;
985
+ const v = Et(c), P = v.length > 0;
986
+ for (const x of A) {
987
+ if (!te(x.spec)) continue;
988
+ const T = x.spec;
989
+ if (P) {
990
+ const S = Ct(x.data);
991
+ if (!S) {
975
992
  if (s) continue;
976
993
  return;
977
994
  }
978
- if (!qe(A))
979
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A.type} for column ${m.id}`);
980
- const O = vt(A), J = c[c.length - 1];
981
- if (J >= A.partitionKeyLength)
982
- throw new Error(`Not enough partition keys (${A.partitionKeyLength}) for requested split axes (max index ${J}) in column ${w.name}`);
983
- const z = c.map((x) => this.findLabels(E(w.axesSpec[x]))), F = [], L = (x, U) => {
984
- if (U >= c.length) {
985
- if (F.push([...x]), F.length > 1e4)
995
+ if (!Ze(S))
996
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${x.id}`);
997
+ const R = Pt(S), D = v[v.length - 1];
998
+ if (D >= S.partitionKeyLength)
999
+ throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${D}) in column ${T.name}`);
1000
+ const M = v.map((_) => this.findLabels(O(T.axesSpec[_]))), j = [], $ = (_, W) => {
1001
+ if (W >= v.length) {
1002
+ if (j.push([..._]), j.length > 1e4)
986
1003
  throw new Error("Too many key combinations, aborting.");
987
1004
  return;
988
1005
  }
989
- const D = c[U];
990
- if (D >= O.length)
991
- throw new Error(`Axis index ${D} out of bounds for unique keys array (length ${O.length}) during split key generation for column ${m.id}`);
992
- const j = O[D];
993
- if (!j || j.length === 0) {
994
- F.length = 0;
1006
+ const V = v[W];
1007
+ if (V >= R.length)
1008
+ throw new Error(`Axis index ${V} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${x.id}`);
1009
+ const J = R[V];
1010
+ if (!J || J.length === 0) {
1011
+ j.length = 0;
995
1012
  return;
996
1013
  }
997
- for (const Y of j)
998
- x.push(Y), L(x, U + 1), x.pop();
1014
+ for (const Z of J)
1015
+ _.push(Z), $(_, W + 1), _.pop();
999
1016
  };
1000
- if (L([], 0), F.length === 0)
1017
+ if ($([], 0), j.length === 0)
1001
1018
  continue;
1002
- const k = [...w.axesSpec], se = c.map((x) => x);
1003
- for (let x = c.length - 1; x >= 0; x--)
1004
- k.splice(c[x], 1);
1005
- const N = { ...w, axesSpec: k };
1006
- for (const x of F) {
1007
- const U = x.map((D, j) => {
1008
- const Y = se[j], Ue = E(w.axesSpec[Y]), oe = z[j], Be = (oe == null ? void 0 : oe[D]) ?? String(D);
1009
- return { axisIdx: Y, axisId: Ue, value: D, label: Be };
1019
+ const k = [...T.axesSpec], We = v.map((_) => _);
1020
+ for (let _ = v.length - 1; _ >= 0; _--)
1021
+ k.splice(v[_], 1);
1022
+ const Ge = { ...T, axesSpec: k };
1023
+ for (const _ of j) {
1024
+ const W = _.map((V, J) => {
1025
+ const Z = We[J], He = O(T.axesSpec[Z]), le = M[J], qe = (le == null ? void 0 : le[V]) ?? String(V);
1026
+ return { axisIdx: Z, axisId: He, value: V, label: qe };
1010
1027
  });
1011
- u.push({
1028
+ h.push({
1012
1029
  type: "split",
1013
- originalColumn: m,
1014
- spec: w,
1015
- adjustedSpec: N,
1016
- dataEntries: A,
1017
- axisFilters: U
1030
+ originalColumn: x,
1031
+ spec: T,
1032
+ adjustedSpec: Ge,
1033
+ dataEntries: S,
1034
+ axisFilters: W
1018
1035
  });
1019
1036
  }
1020
1037
  } else
1021
- u.push({
1038
+ h.push({
1022
1039
  type: "direct",
1023
- originalColumn: m,
1024
- spec: w,
1025
- adjustedSpec: w
1040
+ originalColumn: x,
1041
+ spec: T,
1042
+ adjustedSpec: T
1026
1043
  });
1027
1044
  }
1028
1045
  }
1029
- if (u.length === 0) return [];
1030
- const p = Re(
1031
- u,
1032
- (d) => ({
1033
- spec: d.spec,
1034
- suffixTrace: d.type === "split" ? xt(d.axisFilters) : void 0
1046
+ if (h.length === 0) return [];
1047
+ const g = Ve(
1048
+ h,
1049
+ (c) => ({
1050
+ spec: c.spec,
1051
+ suffixTrace: c.type === "split" ? It(c.axisFilters) : void 0
1035
1052
  }),
1036
- a
1037
- ), v = [];
1038
- for (const { value: d, label: f } of p) {
1039
- const { originalColumn: g, spec: h } = d, P = d.type === "split" ? d.axisFilters : void 0, c = Pt(P);
1040
- let b;
1041
- r ? b = r.deriveS(h, c) : b = Ct(g.id, c);
1042
- let m = { ...d.adjustedSpec };
1043
- o && (m = {
1044
- ...m,
1053
+ l
1054
+ ), m = [];
1055
+ for (const { value: c, label: y } of g) {
1056
+ const { originalColumn: d, spec: b } = c, A = c.type === "split" ? c.axisFilters : void 0, v = Tt(A);
1057
+ let P;
1058
+ r ? P = r.deriveS(b, v) : P = Lt(d.id, v);
1059
+ let x = { ...c.adjustedSpec };
1060
+ o && (x = {
1061
+ ...x,
1045
1062
  annotations: {
1046
- ...m.annotations ?? {},
1047
- "pl7.app/label": f
1063
+ ...x.annotations ?? {},
1064
+ "pl7.app/label": y
1048
1065
  }
1049
- }), v.push({
1050
- id: b,
1051
- spec: m,
1052
- data: () => d.type === "split" ? ze(wt(d.dataEntries, c)) : d.originalColumn.data,
1053
- label: f
1066
+ }), m.push({
1067
+ id: P,
1068
+ spec: x,
1069
+ data: () => c.type === "split" ? et(St(c.dataEntries, v)) : c.originalColumn.data,
1070
+ label: y
1054
1071
  });
1055
1072
  }
1056
- return v;
1073
+ return m;
1057
1074
  }
1058
1075
  getColumns(e, n) {
1059
1076
  const r = this.getUniversalEntries(e, {
@@ -1078,19 +1095,19 @@ class ge {
1078
1095
  return i;
1079
1096
  }
1080
1097
  }
1081
- function le(t, e) {
1098
+ function ce(t, e) {
1082
1099
  if (t === void 0) return e === void 0;
1083
1100
  if (e === void 0) return !0;
1084
1101
  for (const n in e)
1085
1102
  if (t[n] !== e[n]) return !1;
1086
1103
  return !0;
1087
1104
  }
1088
- function Pe(t) {
1089
- return ye(t, (e) => e instanceof I ? e.handle : ve(e) ? nt(e, (n) => n.handle) : e);
1105
+ function _e(t) {
1106
+ return ve(t, (e) => e instanceof E ? e.handle : be(e) ? at(e, (n) => n.handle) : e);
1090
1107
  }
1091
- class It {
1108
+ class Dt {
1092
1109
  constructor() {
1093
- T(this, "ctx", y());
1110
+ F(this, "ctx", f());
1094
1111
  }
1095
1112
  /**
1096
1113
  * @deprecated use getOptions()
@@ -1099,28 +1116,28 @@ class It {
1099
1116
  return this.ctx.calculateOptions(e);
1100
1117
  }
1101
1118
  getOptions(e, n) {
1102
- const r = typeof e == "function" ? e : ce(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
1119
+ const r = typeof e == "function" ? e : Y(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
1103
1120
  let s = {}, o = !1;
1104
- return typeof n < "u" && (typeof n == "function" ? s = n : typeof n == "object" && ("includeNativeLabel" in n || "separator" in n || "addLabelAsSuffix" in n ? s = n : (n = n, s = n.label ?? {}, o = n.refsWithEnrichments ?? !1))), typeof s == "object" ? Re(i, (a) => a.obj, s ?? {}).map(({ value: { ref: a }, label: l }) => ({
1105
- ref: be(a, o),
1121
+ return typeof n < "u" && (typeof n == "function" ? s = n : typeof n == "object" && ("includeNativeLabel" in n || "separator" in n || "addLabelAsSuffix" in n ? s = n : (n = n, s = n.label ?? {}, o = n.refsWithEnrichments ?? !1))), typeof s == "object" ? Ve(i, (a) => a.obj, s ?? {}).map(({ value: { ref: a }, label: l }) => ({
1122
+ ref: Ae(a, o),
1106
1123
  label: l
1107
1124
  })) : i.map(({ ref: a, obj: l }) => ({
1108
- ref: be(a, o),
1125
+ ref: Ae(a, o),
1109
1126
  label: s(l, a)
1110
1127
  }));
1111
1128
  }
1112
1129
  resolveAnchorCtx(e) {
1113
- if (e instanceof we) return e;
1130
+ if (e instanceof xe) return e;
1114
1131
  const n = {};
1115
1132
  for (const [r, i] of Object.entries(e))
1116
- if (Xe(i)) {
1133
+ if (nt(i)) {
1117
1134
  const s = this.getPColumnSpecByRef(i);
1118
1135
  if (!s)
1119
1136
  return;
1120
1137
  n[r] = s;
1121
1138
  } else
1122
1139
  n[r] = i;
1123
- return new we(n);
1140
+ return new xe(n);
1124
1141
  }
1125
1142
  /**
1126
1143
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -1133,7 +1150,7 @@ class It {
1133
1150
  getAnchoredPColumns(e, n, r) {
1134
1151
  const i = this.resolveAnchorCtx(e);
1135
1152
  if (i)
1136
- return new ge().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n, {
1153
+ return new me().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n, {
1137
1154
  ...r,
1138
1155
  anchorCtx: i
1139
1156
  });
@@ -1170,7 +1187,7 @@ class It {
1170
1187
  getCanonicalOptions(e, n, r) {
1171
1188
  const i = this.resolveAnchorCtx(e);
1172
1189
  if (!i) return;
1173
- const s = new ge().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n, {
1190
+ const s = new me().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n, {
1174
1191
  ...r,
1175
1192
  anchorCtx: i
1176
1193
  });
@@ -1194,7 +1211,7 @@ class It {
1194
1211
  ref: n.ref,
1195
1212
  obj: {
1196
1213
  ...n.obj,
1197
- data: new I(n.obj.data, [n.ref.blockId, n.ref.name])
1214
+ data: new E(n.obj.data, [n.ref.blockId, n.ref.name])
1198
1215
  }
1199
1216
  }))
1200
1217
  };
@@ -1213,9 +1230,9 @@ class It {
1213
1230
  ref: n.ref,
1214
1231
  obj: {
1215
1232
  ...n.obj,
1216
- data: Qe(
1233
+ data: rt(
1217
1234
  n.obj.data,
1218
- (r) => new I(r, [n.ref.blockId, n.ref.name])
1235
+ (r) => new E(r, [n.ref.blockId, n.ref.name])
1219
1236
  )
1220
1237
  }
1221
1238
  }))
@@ -1242,9 +1259,9 @@ class It {
1242
1259
  )) == null ? void 0 : r.obj;
1243
1260
  const n = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
1244
1261
  if (n)
1245
- return ye(
1262
+ return ve(
1246
1263
  n,
1247
- (i) => new I(i, [e.blockId, e.name])
1264
+ (i) => new E(i, [e.blockId, e.name])
1248
1265
  );
1249
1266
  }
1250
1267
  /**
@@ -1255,7 +1272,7 @@ class It {
1255
1272
  getPColumnByRef(e) {
1256
1273
  const n = this.getDataByRef(e);
1257
1274
  if (n)
1258
- return Ze(n);
1275
+ return it(n);
1259
1276
  }
1260
1277
  /**
1261
1278
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -1265,7 +1282,7 @@ class It {
1265
1282
  getPColumnSpecByRef(e) {
1266
1283
  const n = this.getSpecByRef(e);
1267
1284
  if (n) {
1268
- if (!Q(n)) throw new Error(`not a PColumn spec (kind = ${n.kind})`);
1285
+ if (!te(n)) throw new Error(`not a PColumn spec (kind = ${n.kind})`);
1269
1286
  return n;
1270
1287
  }
1271
1288
  }
@@ -1284,13 +1301,13 @@ class It {
1284
1301
  findDataWithCompatibleSpec(e) {
1285
1302
  const n = [];
1286
1303
  e: for (const r of this.getData().entries) {
1287
- if (!Q(r.obj.spec))
1304
+ if (!te(r.obj.spec))
1288
1305
  continue;
1289
1306
  const i = r.obj.spec;
1290
- if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && le(e.domain, i.domain)) {
1307
+ if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ce(e.domain, i.domain)) {
1291
1308
  for (let s = 0; s < e.axesSpec.length; ++s) {
1292
1309
  const o = e.axesSpec[s], a = i.axesSpec[s];
1293
- if (o.name !== a.name || o.type !== a.type || !le(o.domain, a.domain))
1310
+ if (o.name !== a.name || o.type !== a.type || !ce(o.domain, a.domain))
1294
1311
  continue e;
1295
1312
  }
1296
1313
  n.push(r.obj);
@@ -1305,9 +1322,9 @@ class It {
1305
1322
  findLabels(e) {
1306
1323
  const n = this.getData();
1307
1324
  for (const r of n.entries) {
1308
- if (!me(r.obj)) continue;
1325
+ if (!ye(r.obj)) continue;
1309
1326
  const i = r.obj.spec;
1310
- if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && le(e.domain, i.axesSpec[0].domain)) {
1327
+ if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && ce(e.domain, i.axesSpec[0].domain)) {
1311
1328
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
1312
1329
  throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
1313
1330
  return Object.fromEntries(
@@ -1326,13 +1343,13 @@ class It {
1326
1343
  * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
1327
1344
  */
1328
1345
  selectColumns(e) {
1329
- const n = typeof e == "function" ? e : ce(e);
1330
- return this.getSpecs().entries.filter(({ obj: i }) => Q(i) ? n(i) : !1).map(({ ref: i, obj: s }) => {
1346
+ const n = typeof e == "function" ? e : Y(e);
1347
+ return this.getSpecs().entries.filter(({ obj: i }) => te(i) ? n(i) : !1).map(({ ref: i, obj: s }) => {
1331
1348
  const o = s;
1332
1349
  let a = null;
1333
1350
  const l = this;
1334
1351
  return {
1335
- id: Le(i),
1352
+ id: De(i),
1336
1353
  spec: o,
1337
1354
  get data() {
1338
1355
  var u;
@@ -1357,15 +1374,15 @@ class It {
1357
1374
  return r;
1358
1375
  }
1359
1376
  }
1360
- class X {
1377
+ class ee {
1361
1378
  constructor() {
1362
- T(this, "ctx");
1363
- T(this, "args");
1364
- T(this, "uiState");
1379
+ F(this, "ctx");
1380
+ F(this, "args");
1381
+ F(this, "uiState");
1365
1382
  // lazy rendering because this feature is rarely used
1366
- T(this, "_activeArgsCache");
1367
- T(this, "resultPool", new It());
1368
- this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
1383
+ F(this, "_activeArgsCache");
1384
+ F(this, "resultPool", new Dt());
1385
+ this.ctx = f(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
1369
1386
  }
1370
1387
  /**
1371
1388
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -1383,14 +1400,14 @@ class X {
1383
1400
  getNamedAccessor(e) {
1384
1401
  return pe(
1385
1402
  this.ctx.getAccessorHandleByName(e),
1386
- (n) => new I(n, [e])
1403
+ (n) => new E(n, [e])
1387
1404
  );
1388
1405
  }
1389
1406
  get prerun() {
1390
- return this.getNamedAccessor(Fe);
1407
+ return this.getNamedAccessor(Re);
1391
1408
  }
1392
1409
  get outputs() {
1393
- return this.getNamedAccessor(Oe);
1410
+ return this.getNamedAccessor(ke);
1394
1411
  }
1395
1412
  /**
1396
1413
  * Find labels data for a given axis id. It will search for a label column and return its data as a map.
@@ -1402,13 +1419,13 @@ class X {
1402
1419
  }
1403
1420
  verifyInlineAndExplicitColumnsSupport(e) {
1404
1421
  var i;
1405
- const n = e.some((s) => !(s.data instanceof I) || ve(s.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === !0;
1422
+ const n = e.some((s) => !(s.data instanceof E) || be(s.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === !0;
1406
1423
  if (n && !r) throw Error("Inline or explicit columns not supported");
1407
1424
  }
1408
1425
  // TODO remove all non-PColumn fields
1409
1426
  createPFrame(e) {
1410
1427
  return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
1411
- e.map((n) => Pe(n))
1428
+ e.map((n) => _e(n))
1412
1429
  );
1413
1430
  }
1414
1431
  createPTable(e) {
@@ -1420,8 +1437,8 @@ class X {
1420
1437
  },
1421
1438
  filters: e.filters ?? [],
1422
1439
  sorting: e.sorting ?? []
1423
- } : n = e, this.verifyInlineAndExplicitColumnsSupport(et(n.src)), this.ctx.createPTable(
1424
- tt(n, (r) => Pe(r))
1440
+ } : n = e, this.verifyInlineAndExplicitColumnsSupport(st(n.src)), this.ctx.createPTable(
1441
+ ot(n, (r) => _e(r))
1425
1442
  );
1426
1443
  }
1427
1444
  /** @deprecated scheduled for removal from SDK */
@@ -1432,19 +1449,19 @@ class X {
1432
1449
  return this.ctx.getCurrentUnstableMarker();
1433
1450
  }
1434
1451
  }
1435
- const G = "1.30.21";
1436
- function Lt(t) {
1452
+ const z = "1.30.26";
1453
+ function Ft(t) {
1437
1454
  return t.__renderLambda === !0;
1438
1455
  }
1439
- function ue(t) {
1456
+ function de(t) {
1440
1457
  if (t !== void 0)
1441
- return Lt(t) ? t.handle : t;
1458
+ return Ft(t) ? t.handle : t;
1442
1459
  }
1443
- function V(t) {
1460
+ function N(t) {
1444
1461
  if (t !== void 0)
1445
1462
  return typeof t == "string" ? { __renderLambda: !0, handle: t, retentive: !1 } : t;
1446
1463
  }
1447
- function xn(t) {
1464
+ function _n(t) {
1448
1465
  if (t.v3 !== void 0) {
1449
1466
  const {
1450
1467
  initialArgs: e,
@@ -1480,10 +1497,10 @@ function xn(t) {
1480
1497
  renderingMode: n,
1481
1498
  initialArgs: o,
1482
1499
  outputs: Object.fromEntries(
1483
- Object.entries(r).map(([u, p]) => [u, V(p)])
1500
+ Object.entries(r).map(([u, p]) => [u, N(p)])
1484
1501
  ),
1485
- inputsValid: V(i),
1486
- sections: V(s),
1502
+ inputsValid: N(i),
1503
+ sections: N(s),
1487
1504
  initialUiState: void 0,
1488
1505
  code: a
1489
1506
  };
@@ -1498,10 +1515,10 @@ function xn(t) {
1498
1515
  renderingMode: r,
1499
1516
  initialArgs: o,
1500
1517
  outputs: Object.fromEntries(
1501
- Object.entries(i).map(([u, p]) => [u, V(p)])
1518
+ Object.entries(i).map(([u, p]) => [u, N(p)])
1502
1519
  ),
1503
- inputsValid: V(n),
1504
- sections: V(s),
1520
+ inputsValid: N(n),
1521
+ sections: N(s),
1505
1522
  initialUiState: void 0,
1506
1523
  code: a
1507
1524
  };
@@ -1512,18 +1529,18 @@ function xn(t) {
1512
1529
  );
1513
1530
  }
1514
1531
  }
1515
- class _ {
1532
+ class L {
1516
1533
  constructor(e, n, r, i, s, o, a, l) {
1517
1534
  this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = i, this._inputsValid = s, this._sections = o, this._title = a, this._enrichmentTargets = l;
1518
1535
  }
1519
1536
  static create(e = "Heavy") {
1520
- return new _(
1537
+ return new L(
1521
1538
  e,
1522
1539
  void 0,
1523
1540
  {},
1524
1541
  {},
1525
- Z(!0),
1526
- Z([]),
1542
+ ne(!0),
1543
+ ne([]),
1527
1544
  void 0,
1528
1545
  void 0
1529
1546
  );
@@ -1531,7 +1548,7 @@ class _ {
1531
1548
  output(e, n, r = {}) {
1532
1549
  if (typeof n == "function") {
1533
1550
  const i = `output#${e}`;
1534
- return B(i, () => n(new X())), new _(
1551
+ return G(i, () => n(new ee())), new L(
1535
1552
  this._renderingMode,
1536
1553
  this._initialArgs,
1537
1554
  this._initialUiState,
@@ -1549,7 +1566,7 @@ class _ {
1549
1566
  this._enrichmentTargets
1550
1567
  );
1551
1568
  } else
1552
- return new _(
1569
+ return new L(
1553
1570
  this._renderingMode,
1554
1571
  this._initialArgs,
1555
1572
  this._initialUiState,
@@ -1568,7 +1585,7 @@ class _ {
1568
1585
  return this.output(e, n, { retentive: !0 });
1569
1586
  }
1570
1587
  argsValid(e) {
1571
- return typeof e == "function" ? (B("inputsValid", () => e(new X())), new _(
1588
+ return typeof e == "function" ? (G("inputsValid", () => e(new ee())), new L(
1572
1589
  this._renderingMode,
1573
1590
  this._initialArgs,
1574
1591
  this._initialUiState,
@@ -1580,7 +1597,7 @@ class _ {
1580
1597
  this._sections,
1581
1598
  this._title,
1582
1599
  this._enrichmentTargets
1583
- )) : new _(
1600
+ )) : new L(
1584
1601
  this._renderingMode,
1585
1602
  this._initialArgs,
1586
1603
  this._initialUiState,
@@ -1592,7 +1609,7 @@ class _ {
1592
1609
  );
1593
1610
  }
1594
1611
  sections(e) {
1595
- return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (B("sections", () => e(new X())), new _(
1612
+ return Array.isArray(e) ? this.sections(ne(e)) : typeof e == "function" ? (G("sections", () => e(new ee())), new L(
1596
1613
  this._renderingMode,
1597
1614
  this._initialArgs,
1598
1615
  this._initialUiState,
@@ -1601,7 +1618,7 @@ class _ {
1601
1618
  { __renderLambda: !0, handle: "sections" },
1602
1619
  this._title,
1603
1620
  this._enrichmentTargets
1604
- )) : new _(
1621
+ )) : new L(
1605
1622
  this._renderingMode,
1606
1623
  this._initialArgs,
1607
1624
  this._initialUiState,
@@ -1614,7 +1631,7 @@ class _ {
1614
1631
  }
1615
1632
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
1616
1633
  title(e) {
1617
- return B("title", () => e(new X())), new _(
1634
+ return G("title", () => e(new ee())), new L(
1618
1635
  this._renderingMode,
1619
1636
  this._initialArgs,
1620
1637
  this._initialUiState,
@@ -1630,7 +1647,7 @@ class _ {
1630
1647
  * @deprecated use {@link withArgs}
1631
1648
  * */
1632
1649
  initialArgs(e) {
1633
- return new _(
1650
+ return new L(
1634
1651
  this._renderingMode,
1635
1652
  e,
1636
1653
  this._initialUiState,
@@ -1643,7 +1660,7 @@ class _ {
1643
1660
  }
1644
1661
  /** Sets initial args for the block, this value must be specified. */
1645
1662
  withArgs(e) {
1646
- return new _(
1663
+ return new L(
1647
1664
  this._renderingMode,
1648
1665
  e,
1649
1666
  this._initialUiState,
@@ -1656,7 +1673,7 @@ class _ {
1656
1673
  }
1657
1674
  /** Defines type and sets initial value for block UiState. */
1658
1675
  withUiState(e) {
1659
- return new _(
1676
+ return new L(
1660
1677
  this._renderingMode,
1661
1678
  this._initialArgs,
1662
1679
  e,
@@ -1672,7 +1689,7 @@ class _ {
1672
1689
  * Influences dependency graph construction.
1673
1690
  */
1674
1691
  enriches(e) {
1675
- return B("enrichmentTargets", e), new _(
1692
+ return G("enrichmentTargets", e), new L(
1676
1693
  this._renderingMode,
1677
1694
  this._initialArgs,
1678
1695
  this._initialUiState,
@@ -1690,7 +1707,7 @@ class _ {
1690
1707
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
1691
1708
  const e = {
1692
1709
  v3: {
1693
- sdkVersion: G,
1710
+ sdkVersion: z,
1694
1711
  renderingMode: this._renderingMode,
1695
1712
  initialArgs: this._initialArgs,
1696
1713
  initialUiState: this._initialUiState,
@@ -1701,54 +1718,54 @@ class _ {
1701
1718
  enrichmentTargets: this._enrichmentTargets
1702
1719
  },
1703
1720
  // fields below are added to allow previous desktop versions read generated configs
1704
- sdkVersion: G,
1721
+ sdkVersion: z,
1705
1722
  renderingMode: this._renderingMode,
1706
1723
  initialArgs: this._initialArgs,
1707
- inputsValid: ue(this._inputsValid),
1708
- sections: ue(this._sections),
1724
+ inputsValid: de(this._inputsValid),
1725
+ sections: de(this._sections),
1709
1726
  outputs: Object.fromEntries(
1710
- Object.entries(this._outputs).map(([n, r]) => [n, ue(r)])
1727
+ Object.entries(this._outputs).map(([n, r]) => [n, de(r)])
1711
1728
  )
1712
1729
  };
1713
- return st() ? Ee({ sdkVersion: G }) : { config: e };
1730
+ return ct() ? Oe({ sdkVersion: z }) : { config: e };
1714
1731
  }
1715
1732
  }
1716
- function Pn(t) {
1733
+ function In(t) {
1717
1734
  const e = t.type;
1718
1735
  switch (e) {
1719
1736
  case "axis":
1720
- return ee(t);
1737
+ return re(t);
1721
1738
  case "column":
1722
- return ee(t);
1739
+ return re(t);
1723
1740
  default:
1724
1741
  throw Error(`unsupported column type: ${e}`);
1725
1742
  }
1726
1743
  }
1727
- function Tt(t) {
1744
+ function Ot(t) {
1728
1745
  return JSON.parse(t);
1729
1746
  }
1730
- function Et(t) {
1747
+ function Rt(t) {
1731
1748
  return t.axesSpec.length === 1 && t.name === "pl7.app/label";
1732
1749
  }
1733
- function Ve(t) {
1734
- return new ge().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
1750
+ function Je(t) {
1751
+ return new me().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
1735
1752
  name: "pl7.app/label",
1736
1753
  axes: [{}]
1737
1754
  // exactly one axis
1738
1755
  }, { dontWaitAllData: !0 });
1739
1756
  }
1740
- function Ke(t, e) {
1757
+ function Ne(t, e) {
1741
1758
  const n = [], r = [];
1742
1759
  for (const a of t)
1743
- Et(a.spec) ? n.push(a) : r.push(a);
1760
+ Rt(a.spec) ? n.push(a) : r.push(a);
1744
1761
  const i = [];
1745
1762
  for (const a of r)
1746
1763
  for (const l of a.spec.axesSpec) {
1747
- const u = E(l);
1748
- i.some((p) => R(p, u)) || i.push(u);
1764
+ const u = O(l);
1765
+ i.some((p) => K(p, u)) || i.push(u);
1749
1766
  }
1750
1767
  for (const a of n) {
1751
- const l = E(a.spec.axesSpec[0]), u = i.findIndex((p) => R(p, l));
1768
+ const l = O(a.spec.axesSpec[0]), u = i.findIndex((p) => K(p, l));
1752
1769
  u !== -1 && i.splice(u, 1);
1753
1770
  }
1754
1771
  const s = (a, l) => {
@@ -1759,14 +1776,14 @@ function Ke(t, e) {
1759
1776
  return u;
1760
1777
  }, o = [];
1761
1778
  for (const a of e) {
1762
- const l = a.spec.axesSpec[0], u = E(l), p = i.findIndex((v) => R(v, u));
1779
+ const l = a.spec.axesSpec[0], u = O(l), p = i.findIndex((h) => K(h, u));
1763
1780
  if (p !== -1) {
1764
- const v = i[p], d = Object.keys(v.domain ?? {}).length, f = Object.keys(l.domain ?? {}).length;
1765
- d > f ? o.push({
1766
- id: s(a.id, v.domain),
1781
+ const h = i[p], w = Object.keys(h.domain ?? {}).length, g = Object.keys(l.domain ?? {}).length;
1782
+ w > g ? o.push({
1783
+ id: s(a.id, h.domain),
1767
1784
  spec: {
1768
1785
  ...a.spec,
1769
- axesSpec: [{ ...v, annotations: l.annotations }]
1786
+ axesSpec: [{ ...h, annotations: l.annotations }]
1770
1787
  },
1771
1788
  data: a.data
1772
1789
  }) : o.push(a), i.splice(p, 1);
@@ -1774,8 +1791,8 @@ function Ke(t, e) {
1774
1791
  }
1775
1792
  return o;
1776
1793
  }
1777
- function $e(t) {
1778
- const e = (i) => Array.isArray(i), n = (i) => i instanceof I, r = (i) => typeof i == "object" && "type" in i;
1794
+ function Ue(t) {
1795
+ const e = (i) => Array.isArray(i), n = (i) => i instanceof E, r = (i) => typeof i == "object" && "type" in i;
1779
1796
  return t.map((i) => i.data).every((i) => {
1780
1797
  if (e(i))
1781
1798
  return !0;
@@ -1794,7 +1811,7 @@ function $e(t) {
1794
1811
  throw Error(`unsupported column data type: ${i}`);
1795
1812
  });
1796
1813
  }
1797
- function Je(t, e, n, r, i, s) {
1814
+ function Be(t, e, n, r, i, s) {
1798
1815
  let o = t;
1799
1816
  const a = [];
1800
1817
  if (s) {
@@ -1815,56 +1832,56 @@ function Je(t, e, n, r, i, s) {
1815
1832
  sorting: i
1816
1833
  };
1817
1834
  }
1818
- function Cn(t, e, n, r) {
1835
+ function Tn(t, e, n, r) {
1819
1836
  var u, p;
1820
1837
  Array.isArray(r) && (r = { filters: r });
1821
- const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s = [...(r == null ? void 0 : r.filters) ?? [], ...((u = n == null ? void 0 : n.pTableParams) == null ? void 0 : u.filters) ?? []], o = ((p = n == null ? void 0 : n.pTableParams) == null ? void 0 : p.sorting) ?? [], a = Ve(t.resultPool);
1838
+ const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s = [...(r == null ? void 0 : r.filters) ?? [], ...((u = n == null ? void 0 : n.pTableParams) == null ? void 0 : u.filters) ?? []], o = ((p = n == null ? void 0 : n.pTableParams) == null ? void 0 : p.sorting) ?? [], a = Je(t.resultPool);
1822
1839
  if (!a) return;
1823
- const l = Ke(e.map(Ie), a);
1824
- if ($e([...e, ...l]))
1840
+ const l = Ne(e.map(Ee), a);
1841
+ if (Ue([...e, ...l]))
1825
1842
  return t.createPTable(
1826
- Je(e, l, i, s, o, r == null ? void 0 : r.coreColumnPredicate)
1843
+ Be(e, l, i, s, o, r == null ? void 0 : r.coreColumnPredicate)
1827
1844
  );
1828
1845
  }
1829
- function Ft(t) {
1846
+ function kt(t) {
1830
1847
  var e;
1831
1848
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
1832
1849
  }
1833
- function Sn(t, e, n, r, i) {
1834
- var h, P;
1835
- const s = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((h = r == null ? void 0 : r.pTableParams) == null ? void 0 : h.filters) ?? []], a = ((P = r == null ? void 0 : r.pTableParams) == null ? void 0 : P.sorting) ?? [], l = e.find((c) => n(c.spec));
1850
+ function Ln(t, e, n, r, i) {
1851
+ var c, y;
1852
+ const s = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((c = r == null ? void 0 : r.pTableParams) == null ? void 0 : c.filters) ?? []], a = ((y = r == null ? void 0 : r.pTableParams) == null ? void 0 : y.sorting) ?? [], l = e.find((d) => n(d.spec));
1836
1853
  if (!l) return;
1837
- const u = Ve(t.resultPool);
1854
+ const u = Je(t.resultPool);
1838
1855
  if (!u) return;
1839
1856
  const p = new Set((() => {
1840
- var b, m;
1857
+ var b, A;
1841
1858
  if (s === "inner") return [];
1842
- const c = (m = (b = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : b.hiddenColIds) == null ? void 0 : m.map(Tt).filter((w) => w.type === "column").map((w) => w.id);
1843
- return c || e.filter((w) => Ft(w.spec)).map((w) => w.id);
1859
+ const d = (A = (b = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : b.hiddenColIds) == null ? void 0 : A.map(Ot).filter((v) => v.type === "column").map((v) => v.id);
1860
+ return d || e.filter((v) => kt(v.spec)).map((v) => v.id);
1844
1861
  })());
1845
- p.delete(l.id), [...o.map((c) => c.column), ...a.map((c) => c.column)].filter((c) => c.type === "column").map((c) => p.delete(c.id));
1846
- const v = e.filter((c) => !p.has(c.id)), d = Ke(v.map(Ie), u), f = [
1847
- ...l.spec.axesSpec.map((c) => ({
1862
+ p.delete(l.id), [...o.map((d) => d.column), ...a.map((d) => d.column)].filter((d) => d.type === "column").map((d) => p.delete(d.id));
1863
+ const h = e.filter((d) => !p.has(d.id)), w = Ne(h.map(Ee), u), g = [
1864
+ ...l.spec.axesSpec.map((d) => ({
1848
1865
  type: "axis",
1849
- id: E(c),
1850
- spec: c
1866
+ id: O(d),
1867
+ spec: d
1851
1868
  })),
1852
- ...[...e, ...d].map((c) => ({
1869
+ ...[...e, ...w].map((d) => ({
1853
1870
  type: "column",
1854
- id: c.id,
1855
- spec: c.spec
1871
+ id: d.id,
1872
+ spec: d.spec
1856
1873
  }))
1857
1874
  ];
1858
- if (!$e([...v, ...d])) return;
1859
- const g = t.createPTable(
1860
- Je(e, d, s, o, a, i == null ? void 0 : i.coreColumnPredicate)
1875
+ if (!Ue([...h, ...w])) return;
1876
+ const m = t.createPTable(
1877
+ Be(e, w, s, o, a, i == null ? void 0 : i.coreColumnPredicate)
1861
1878
  );
1862
1879
  return {
1863
- tableSpec: f,
1864
- tableHandle: g
1880
+ tableSpec: g,
1881
+ tableHandle: m
1865
1882
  };
1866
1883
  }
1867
- function _n(t, e, n) {
1884
+ function En(t, e, n) {
1868
1885
  const r = t.resultPool.findLabels(e);
1869
1886
  return {
1870
1887
  axis: e,
@@ -1875,7 +1892,7 @@ function _n(t, e, n) {
1875
1892
  defaultValue: n[0]
1876
1893
  };
1877
1894
  }
1878
- const Ot = (t, e) => {
1895
+ const jt = (t, e) => {
1879
1896
  let n = t.toString();
1880
1897
  return e == null || e.forEach((r) => {
1881
1898
  if (r)
@@ -1883,7 +1900,7 @@ const Ot = (t, e) => {
1883
1900
  n += i, n += s;
1884
1901
  }), n;
1885
1902
  };
1886
- function Dt(t) {
1903
+ function Vt(t) {
1887
1904
  if (!t.length)
1888
1905
  return [];
1889
1906
  let e = [[]];
@@ -1894,85 +1911,85 @@ function Dt(t) {
1894
1911
  }), e = r;
1895
1912
  }), e;
1896
1913
  }
1897
- function Rt(t, e) {
1898
- const n = t.axesSpec.map(E);
1899
- return e.axesSpec.map(E).every((i) => n.some((s) => R(s, i) && R(i, s)));
1914
+ function Kt(t, e) {
1915
+ const n = t.axesSpec.map(O);
1916
+ return e.axesSpec.map(O).every((i) => n.some((s) => K(s, i) && K(i, s)));
1900
1917
  }
1901
- function Ne(t, e) {
1902
- const n = t.axesSpec.map(E);
1903
- return e.axesSpec.map(E).every((i) => n.some((s) => R(s, i)));
1918
+ function Me(t, e) {
1919
+ const n = t.axesSpec.map(O);
1920
+ return e.axesSpec.map(O).every((i) => n.some((s) => K(s, i)));
1904
1921
  }
1905
- const kt = "pl7.app/graph/isVirtual", Ce = "pl7.app/label";
1906
- function Se(t, e) {
1907
- const n = t.spec.axesSpec.map(E), r = e.spec.axesSpec.map(E);
1908
- if (Rt(t.spec, e.spec))
1922
+ const $t = "pl7.app/graph/isVirtual", Ie = "pl7.app/label";
1923
+ function Te(t, e) {
1924
+ const n = t.spec.axesSpec.map(O), r = e.spec.axesSpec.map(O);
1925
+ if (Kt(t.spec, e.spec))
1909
1926
  return [];
1910
- if (!Ne(t.spec, e.spec))
1927
+ if (!Me(t.spec, e.spec))
1911
1928
  return [];
1912
- const o = r.map((v) => n.filter((d) => R(d, v))), a = Dt(o), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), p = a.map((v) => {
1913
- const d = /* @__PURE__ */ new Set();
1914
- return v.map((f, g) => {
1915
- const h = e.spec.axesSpec[g].domain, P = f.domain;
1916
- return Object.entries(P ?? {}).forEach(([c, b]) => {
1917
- if ((h == null ? void 0 : h[c]) === void 0) {
1918
- const m = JSON.stringify([c, b]);
1919
- d.add(m), l.add(m);
1929
+ const o = r.map((h) => n.filter((w) => K(w, h))), a = Vt(o), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), p = a.map((h) => {
1930
+ const w = /* @__PURE__ */ new Set();
1931
+ return h.map((g, m) => {
1932
+ const c = e.spec.axesSpec[m].domain, y = g.domain;
1933
+ return Object.entries(y ?? {}).forEach(([d, b]) => {
1934
+ if ((c == null ? void 0 : c[d]) === void 0) {
1935
+ const A = JSON.stringify([d, b]);
1936
+ w.add(A), l.add(A);
1920
1937
  }
1921
1938
  }), {
1922
- ...f,
1923
- annotations: e.spec.axesSpec[g].annotations
1939
+ ...g,
1940
+ annotations: e.spec.axesSpec[m].annotations
1924
1941
  };
1925
- }), d;
1942
+ }), w;
1926
1943
  });
1927
- return [...l].forEach((v) => {
1928
- p.some((d) => !d.has(v)) && u.add(v);
1929
- }), a.map((v, d) => {
1930
- var c;
1931
- const f = Ot(e.id, v.map((b) => b.domain)), g = ((c = e.spec.annotations) == null ? void 0 : c[Ce]) ?? "", h = [...p[d]].filter((b) => u.has(b)).sort().map((b) => {
1932
- var m;
1933
- return (m = JSON.parse(b)) == null ? void 0 : m[1];
1934
- }).join(" / "), P = {
1944
+ return [...l].forEach((h) => {
1945
+ p.some((w) => !w.has(h)) && u.add(h);
1946
+ }), a.map((h, w) => {
1947
+ var d;
1948
+ const g = jt(e.id, h.map((b) => b.domain)), m = ((d = e.spec.annotations) == null ? void 0 : d[Ie]) ?? "", c = [...p[w]].filter((b) => u.has(b)).sort().map((b) => {
1949
+ var A;
1950
+ return (A = JSON.parse(b)) == null ? void 0 : A[1];
1951
+ }).join(" / "), y = {
1935
1952
  ...e.spec.annotations,
1936
- [kt]: "true"
1953
+ [$t]: "true"
1937
1954
  };
1938
- return (g || h) && (P[Ce] = g && h ? g + " / " + h : g + h), {
1939
- id: f,
1955
+ return (m || c) && (y[Ie] = m && c ? m + " / " + c : m + c), {
1956
+ id: g,
1940
1957
  spec: {
1941
1958
  ...e.spec,
1942
- axesSpec: v.map((b, m) => ({
1959
+ axesSpec: h.map((b, A) => ({
1943
1960
  ...b,
1944
- annotations: e.spec.axesSpec[m].annotations
1961
+ annotations: e.spec.axesSpec[A].annotations
1945
1962
  })),
1946
- annotations: P
1963
+ annotations: y
1947
1964
  },
1948
1965
  data: e.data
1949
1966
  };
1950
1967
  });
1951
1968
  }
1952
- function jt(t) {
1969
+ function Jt(t) {
1953
1970
  const e = [];
1954
1971
  for (let n = 0; n < t.length; n++)
1955
1972
  for (let r = n + 1; r < t.length; r++) {
1956
1973
  const i = t[n], s = t[r];
1957
1974
  e.push(
1958
- ...Se(i, s),
1959
- ...Se(s, i)
1975
+ ...Te(i, s),
1976
+ ...Te(s, i)
1960
1977
  );
1961
1978
  }
1962
1979
  return e;
1963
1980
  }
1964
- function Vt(t, e) {
1981
+ function Nt(t, e) {
1965
1982
  const n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
1966
1983
  t.forEach((s) => {
1967
- n.add(s.id), r.set(ee(Ae(s.spec)), s);
1984
+ n.add(s.id), r.set(re(Pe(s.spec)), s);
1968
1985
  });
1969
1986
  const i = /* @__PURE__ */ new Map();
1970
1987
  for (const s of e) {
1971
1988
  if (n.has(s.id)) continue;
1972
- const o = ee(Ae(s.spec));
1989
+ const o = re(Pe(s.spec));
1973
1990
  if (!r.has(o)) {
1974
1991
  for (const a of r.values())
1975
- if (Ne(a.spec, s.spec)) {
1992
+ if (Me(a.spec, s.spec)) {
1976
1993
  i.set(o, s);
1977
1994
  break;
1978
1995
  }
@@ -1980,15 +1997,15 @@ function Vt(t, e) {
1980
1997
  }
1981
1998
  return [...r.values(), ...i.values()];
1982
1999
  }
1983
- function In(t, e) {
2000
+ function Dn(t, e) {
1984
2001
  if (!e) return;
1985
- const n = t.resultPool.getData().entries.map((s) => s.obj).filter(me), r = Vt(e, n), i = [...r, ...jt(r)];
2002
+ const n = t.resultPool.getData().entries.map((s) => s.obj).filter(ye), r = Nt(e, n), i = [...r, ...Jt(r)];
1986
2003
  if (!i.some(
1987
- (s) => s.data instanceof I && !s.data.getIsReadyOrError()
2004
+ (s) => s.data instanceof E && !s.data.getIsReadyOrError()
1988
2005
  ))
1989
2006
  return t.createPFrame(i);
1990
2007
  }
1991
- class Ln {
2008
+ class Fn {
1992
2009
  constructor(e) {
1993
2010
  this.handle = e;
1994
2011
  }
@@ -2008,121 +2025,121 @@ class Ln {
2008
2025
  return await platforma.pFrameDriver.getUniqueValues(this.handle, e);
2009
2026
  }
2010
2027
  }
2011
- function Kt(t) {
2012
- return Te({
2028
+ function Ut(t) {
2029
+ return Fe({
2013
2030
  __isRef: !0,
2014
- blockId: te(t, "blockId"),
2015
- name: te(t, "name")
2031
+ blockId: ie(t, "blockId"),
2032
+ name: ie(t, "name")
2016
2033
  });
2017
2034
  }
2018
- function Tn(t) {
2019
- return Te({
2020
- ref: Kt(te(t, "ref")),
2021
- label: te(t, "label")
2035
+ function On(t) {
2036
+ return Fe({
2037
+ ref: Ut(ie(t, "ref")),
2038
+ label: ie(t, "label")
2022
2039
  });
2023
2040
  }
2024
- const En = {
2025
- sdkVersion: G
2041
+ const Rn = {
2042
+ sdkVersion: z
2026
2043
  };
2027
- function $t() {
2028
- return Ee({ sdkVersion: G });
2044
+ function Bt() {
2045
+ return Oe({ sdkVersion: z });
2029
2046
  }
2030
- function Fn(t) {
2047
+ function kn(t) {
2031
2048
  try {
2032
- return $t();
2049
+ return Bt();
2033
2050
  } catch {
2034
2051
  return t;
2035
2052
  }
2036
2053
  }
2037
- function On(t) {
2054
+ function jn(t) {
2038
2055
  if (typeof globalThis.getEnvironmentValue == "function")
2039
2056
  return globalThis.getEnvironmentValue(t);
2040
2057
  }
2041
2058
  export {
2042
- Gt as Args,
2043
- _ as BlockModel,
2044
- En as CurrentSdkInfo,
2045
- S as FutureRef,
2046
- kt as IS_VIRTUAL_COLUMN,
2047
- Ht as It,
2048
- wn as JsRenderInternal,
2049
- Ce as LABEL_ANNOTATION,
2050
- qt as MainOutputs,
2051
- rt as OutputError,
2052
- ct as PAnnotationLabel,
2053
- pt as PAnnotationTrace,
2054
- ge as PColumnCollection,
2055
- Ln as PFrameImpl,
2056
- $ as RT_BINARY_PARTITIONED,
2057
- W as RT_BINARY_SUPER_PARTITIONED,
2058
- M as RT_JSON_PARTITIONED,
2059
- ie as RT_JSON_SUPER_PARTITIONED,
2060
- ne as RT_RESOURCE_MAP,
2061
- re as RT_RESOURCE_MAP_PARTITIONED,
2062
- X as RenderCtx,
2063
- It as ResultPool,
2064
- zt as StagingOutputs,
2065
- ft as Trace,
2066
- dt as TraceEntry,
2067
- I as TreeNodeAccessor,
2068
- Yt as UiState,
2069
- $e as allColumnsComputed,
2070
- rn as and,
2071
- bt as convertOrParsePColumnData,
2072
- In as createPFrameForGraphs,
2073
- Cn as createPlDataTable,
2074
- _n as createPlDataTableSheet,
2075
- Sn as createPlDataTableV2,
2076
- Re as deriveLabels,
2077
- ue as downgradeCfgOrLambda,
2078
- Vt as enrichColumnsWithCompatible,
2079
- hn as extractArchiveAndGetURL,
2080
- xn as extractConfig,
2081
- wt as filterDataInfoEntries,
2082
- en as flatten,
2083
- Tn as fromPlOption,
2084
- Kt as fromPlRef,
2085
- jt as getAdditionalColumns,
2086
- Ve as getAllLabelColumns,
2087
- un as getBlobContent,
2088
- pn as getBlobContentAsJson,
2089
- cn as getBlobContentAsString,
2090
- dn as getDownloadedBlobContent,
2091
- On as getEnvironmentValue,
2092
- H as getFromCfg,
2093
- Z as getImmediate,
2094
- gn as getImportProgress,
2095
- te as getJsonField,
2096
- mn as getLastLogs,
2097
- bn as getLogHandle,
2098
- Ke as getMatchingLabelColumns,
2099
- fn as getOnDemandBlobContent,
2100
- mt as getPartitionKeysList,
2101
- Fn as getPlatformaOrDefault,
2102
- yn as getProgressLog,
2103
- vn as getProgressLogWithInfo,
2104
- $t as getRawPlatformaInstance,
2105
- on as getResourceField,
2106
- an as getResourceValueAsJson,
2107
- vt as getUniquePartitionKeys,
2059
+ Yt as Args,
2060
+ L as BlockModel,
2061
+ Rn as CurrentSdkInfo,
2062
+ I as FutureRef,
2063
+ $t as IS_VIRTUAL_COLUMN,
2064
+ Xt as It,
2065
+ Cn as JsRenderInternal,
2066
+ Ie as LABEL_ANNOTATION,
2067
+ Qt as MainOutputs,
2068
+ lt as OutputError,
2069
+ gt as PAnnotationLabel,
2070
+ mt as PAnnotationTrace,
2071
+ me as PColumnCollection,
2072
+ Fn as PFrameImpl,
2073
+ B as RT_BINARY_PARTITIONED,
2074
+ q as RT_BINARY_SUPER_PARTITIONED,
2075
+ H as RT_JSON_PARTITIONED,
2076
+ ae as RT_JSON_SUPER_PARTITIONED,
2077
+ se as RT_RESOURCE_MAP,
2078
+ oe as RT_RESOURCE_MAP_PARTITIONED,
2079
+ ee as RenderCtx,
2080
+ Dt as ResultPool,
2081
+ Zt as StagingOutputs,
2082
+ vt as Trace,
2083
+ yt as TraceEntry,
2084
+ E as TreeNodeAccessor,
2085
+ en as UiState,
2086
+ Ue as allColumnsComputed,
2087
+ ln as and,
2088
+ Ct as convertOrParsePColumnData,
2089
+ Dn as createPFrameForGraphs,
2090
+ Tn as createPlDataTable,
2091
+ En as createPlDataTableSheet,
2092
+ Ln as createPlDataTableV2,
2093
+ Ve as deriveLabels,
2094
+ de as downgradeCfgOrLambda,
2095
+ Nt as enrichColumnsWithCompatible,
2096
+ vn as extractArchiveAndGetURL,
2097
+ _n as extractConfig,
2098
+ St as filterDataInfoEntries,
2099
+ sn as flatten,
2100
+ On as fromPlOption,
2101
+ Ut as fromPlRef,
2102
+ Jt as getAdditionalColumns,
2103
+ Je as getAllLabelColumns,
2104
+ fn as getBlobContent,
2105
+ gn as getBlobContentAsJson,
2106
+ hn as getBlobContentAsString,
2107
+ mn as getDownloadedBlobContent,
2108
+ jn as getEnvironmentValue,
2109
+ X as getFromCfg,
2110
+ ne as getImmediate,
2111
+ bn as getImportProgress,
2112
+ ie as getJsonField,
2113
+ wn as getLastLogs,
2114
+ Pn as getLogHandle,
2115
+ Ne as getMatchingLabelColumns,
2116
+ yn as getOnDemandBlobContent,
2117
+ At as getPartitionKeysList,
2118
+ kn as getPlatformaOrDefault,
2119
+ An as getProgressLog,
2120
+ xn as getProgressLogWithInfo,
2121
+ Bt as getRawPlatformaInstance,
2122
+ cn as getResourceField,
2123
+ dn as getResourceValueAsJson,
2124
+ Pt as getUniquePartitionKeys,
2108
2125
  pe as ifDef,
2109
- Ft as isColumnOptional,
2110
- Lt as isConfigLambda,
2111
- tn as isEmpty,
2112
- Et as isLabelColumn,
2113
- Wt as isolate,
2114
- Xt as makeArray,
2115
- Te as makeObject,
2116
- Zt as mapArrayValues,
2117
- Qt as mapRecordValues,
2118
- ln as mapResourceFields,
2119
- nn as not,
2120
- sn as or,
2121
- he as parsePColumnData,
2122
- Tt as parsePTableColumnId,
2123
- An as parseResourceMap,
2124
- it as readOutput,
2125
- Pn as stringifyPTableColumnId,
2126
- Mt as wrapOutputs
2126
+ kt as isColumnOptional,
2127
+ Ft as isConfigLambda,
2128
+ on as isEmpty,
2129
+ Rt as isLabelColumn,
2130
+ zt as isolate,
2131
+ tn as makeArray,
2132
+ Fe as makeObject,
2133
+ rn as mapArrayValues,
2134
+ nn as mapRecordValues,
2135
+ pn as mapResourceFields,
2136
+ an as not,
2137
+ un as or,
2138
+ ge as parsePColumnData,
2139
+ Ot as parsePTableColumnId,
2140
+ Sn as parseResourceMap,
2141
+ ut as readOutput,
2142
+ In as stringifyPTableColumnId,
2143
+ qt as wrapOutputs
2127
2144
  };
2128
2145
  //# sourceMappingURL=index.mjs.map