@milaboratories/milaboratories.pool-explorer.model 1.0.48 → 1.0.50

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/bundle.js CHANGED
@@ -53,7 +53,7 @@
53
53
  return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
54
54
  }
55
55
  util2.joinValues = joinValues;
56
- util2.jsonStringifyReplacer = (_, value) => {
56
+ util2.jsonStringifyReplacer = (_2, value) => {
57
57
  if (typeof value === "bigint") {
58
58
  return value.toString();
59
59
  }
@@ -3955,9 +3955,9 @@
3955
3955
  return canonicalize;
3956
3956
  }
3957
3957
  var canonicalizeExports = requireCanonicalize();
3958
- const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
- var I$1 = Object.defineProperty;
3960
- var D = (n2, e, t) => e in n2 ? I$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3958
+ const Oe = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
+ var I = Object.defineProperty;
3960
+ var D = (n2, e, t) => e in n2 ? I(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3961
3961
  var l$1 = (n2, e, t) => D(n2, typeof e != "symbol" ? e + "" : e, t);
3962
3962
  z$2.object({
3963
3963
  /** Included left border. */
@@ -4013,7 +4013,7 @@
4013
4013
  }
4014
4014
  }
4015
4015
  }
4016
- function F$1(n2) {
4016
+ function F(n2) {
4017
4017
  if (!n2 || typeof n2 != "object")
4018
4018
  return false;
4019
4019
  const e = n2;
@@ -4031,7 +4031,7 @@
4031
4031
  }
4032
4032
  }
4033
4033
  function bn(n2) {
4034
- return F$1(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4034
+ return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4035
4035
  }
4036
4036
  function wn(n2) {
4037
4037
  switch (n2.type) {
@@ -4096,14 +4096,14 @@
4096
4096
  }
4097
4097
  }
4098
4098
  function p$1(n2) {
4099
- const { type: e, name: t, domain: r } = n2;
4100
- return { type: e, name: t, ...r && { domain: r } };
4099
+ const { type: e, name: t, domain: r } = n2, o = { type: e, name: t };
4100
+ return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
4101
4101
  }
4102
4102
  function C(n2) {
4103
4103
  return n2.map(p$1);
4104
4104
  }
4105
4105
  function In(n2) {
4106
- return ke(p$1(n2));
4106
+ return Oe(p$1(n2));
4107
4107
  }
4108
4108
  function z$1(n2, e) {
4109
4109
  if (n2 === void 0) return e === void 0;
@@ -4116,9 +4116,9 @@
4116
4116
  return n2.name === e.name && z$1(n2.domain, e.domain);
4117
4117
  }
4118
4118
  function Dn(n2, e) {
4119
- return { ...n2, src: h$1(n2.src, e) };
4119
+ return { ...n2, src: h(n2.src, e) };
4120
4120
  }
4121
- function h$1(n2, e) {
4121
+ function h(n2, e) {
4122
4122
  switch (n2.type) {
4123
4123
  case "column":
4124
4124
  return {
@@ -4138,23 +4138,23 @@
4138
4138
  case "full":
4139
4139
  return {
4140
4140
  type: n2.type,
4141
- entries: n2.entries.map((t) => h$1(t, e))
4141
+ entries: n2.entries.map((t) => h(t, e))
4142
4142
  };
4143
4143
  case "outer":
4144
4144
  return {
4145
4145
  type: "outer",
4146
- primary: h$1(n2.primary, e),
4147
- secondary: n2.secondary.map((t) => h$1(t, e))
4146
+ primary: h(n2.primary, e),
4147
+ secondary: n2.secondary.map((t) => h(t, e))
4148
4148
  };
4149
4149
  default:
4150
4150
  w(n2);
4151
4151
  }
4152
4152
  }
4153
4153
  function G(n2) {
4154
- return ke(n2);
4154
+ return Oe(n2);
4155
4155
  }
4156
4156
  function x(n2) {
4157
- return ke(p$1(n2));
4157
+ return Oe(p$1(n2));
4158
4158
  }
4159
4159
  function A(n2, e) {
4160
4160
  return JSON.stringify([n2, e]);
@@ -4353,7 +4353,7 @@
4353
4353
  };
4354
4354
  return t(n2), [...e.values()];
4355
4355
  }
4356
- function k(n2, e) {
4356
+ function k$1(n2, e) {
4357
4357
  if (n2.name !== void 0 && n2.name !== e.name)
4358
4358
  return false;
4359
4359
  if (n2.type !== void 0) {
@@ -4391,13 +4391,13 @@
4391
4391
  const t = n2.axesSpec.map(p$1);
4392
4392
  if (e.partialAxesMatch) {
4393
4393
  for (const r of e.axes)
4394
- if (!t.some((o) => k(r, o)))
4394
+ if (!t.some((o) => k$1(r, o)))
4395
4395
  return false;
4396
4396
  } else {
4397
4397
  if (t.length !== e.axes.length)
4398
4398
  return false;
4399
4399
  for (let r = 0; r < e.axes.length; r++)
4400
- if (!k(e.axes[r], t[r]))
4400
+ if (!k$1(e.axes[r], t[r]))
4401
4401
  return false;
4402
4402
  }
4403
4403
  }
@@ -4425,7 +4425,7 @@
4425
4425
  kind: n2.kind,
4426
4426
  name: n2.name
4427
4427
  };
4428
- return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), ke(e);
4428
+ return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), Oe(e);
4429
4429
  }
4430
4430
  z$2.object({
4431
4431
  __isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
@@ -4513,13 +4513,13 @@
4513
4513
  cause: z$2.lazy(() => n).optional(),
4514
4514
  errors: z$2.lazy(() => n.array()).optional()
4515
4515
  });
4516
- var Xe = Object.defineProperty;
4517
- var Qe = (t, e, n2) => e in t ? Xe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4518
- var F = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
4516
+ var qe = Object.defineProperty;
4517
+ var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4518
+ var k = (t, e, n2) => ze(t, typeof e != "symbol" ? e + "" : e, n2);
4519
4519
  function re(t) {
4520
4520
  return { type: "Immediate", value: t };
4521
4521
  }
4522
- function ht() {
4522
+ function dt() {
4523
4523
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4524
4524
  }
4525
4525
  function Re(t) {
@@ -4528,39 +4528,39 @@
4528
4528
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
4529
4529
  throw new Error("Can't get platforma instance.");
4530
4530
  }
4531
- function gt() {
4531
+ function pt() {
4532
4532
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4533
4533
  }
4534
- function h() {
4534
+ function g() {
4535
4535
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4536
4536
  throw new Error("Not in config rendering context");
4537
4537
  }
4538
4538
  function H(t, e) {
4539
- const n2 = gt();
4539
+ const n2 = pt();
4540
4540
  if (n2 === void 0) return false;
4541
4541
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4542
4542
  return n2.callbackRegistry[t] = e, true;
4543
4543
  }
4544
4544
  const ce = /* @__PURE__ */ new Map();
4545
- function mt(t, e) {
4546
- t in h().callbackRegistry || (h().callbackRegistry[t] = (n2) => {
4545
+ function ft(t, e) {
4546
+ t in g().callbackRegistry || (g().callbackRegistry[t] = (n2) => {
4547
4547
  for (const r of ce.get(t))
4548
4548
  r(n2);
4549
4549
  }, ce.set(t, [])), ce.get(t).push(e);
4550
4550
  }
4551
- class I {
4551
+ class _ {
4552
4552
  constructor(e, n2 = (r) => r) {
4553
- F(this, "isResolved", false);
4554
- F(this, "resolvedValue");
4555
- this.handle = e, this.postProcess = n2, mt(e, (r) => {
4553
+ k(this, "isResolved", false);
4554
+ k(this, "resolvedValue");
4555
+ this.handle = e, this.postProcess = n2, ft(e, (r) => {
4556
4556
  this.resolvedValue = n2(r), this.isResolved = true;
4557
4557
  });
4558
4558
  }
4559
4559
  map(e) {
4560
- return new I(this.handle, (n2) => e(this.postProcess(n2)));
4560
+ return new _(this.handle, (n2) => e(this.postProcess(n2)));
4561
4561
  }
4562
4562
  mapDefined(e) {
4563
- return new I(this.handle, (n2) => {
4563
+ return new _(this.handle, (n2) => {
4564
4564
  const r = this.postProcess(n2);
4565
4565
  return r ? e(r) : void 0;
4566
4566
  });
@@ -4572,7 +4572,7 @@
4572
4572
  function he(t, e) {
4573
4573
  return t === void 0 ? void 0 : e(t);
4574
4574
  }
4575
- class O {
4575
+ class E {
4576
4576
  constructor(e, n2) {
4577
4577
  this.handle = e, this.resolvePath = n2;
4578
4578
  }
@@ -4612,46 +4612,46 @@
4612
4612
  ...n2.map((i) => typeof i == "string" ? i : i.field)
4613
4613
  ];
4614
4614
  return he(
4615
- h().resolveWithCommon(this.handle, e, ...n2),
4616
- (i) => new O(i, r)
4615
+ g().resolveWithCommon(this.handle, e, ...n2),
4616
+ (i) => new E(i, r)
4617
4617
  );
4618
4618
  }
4619
4619
  get resourceType() {
4620
- return h().getResourceType(this.handle);
4620
+ return g().getResourceType(this.handle);
4621
4621
  }
4622
4622
  getInputsLocked() {
4623
- return h().getInputsLocked(this.handle);
4623
+ return g().getInputsLocked(this.handle);
4624
4624
  }
4625
4625
  getOutputsLocked() {
4626
- return h().getOutputsLocked(this.handle);
4626
+ return g().getOutputsLocked(this.handle);
4627
4627
  }
4628
4628
  getIsReadyOrError() {
4629
- return h().getIsReadyOrError(this.handle);
4629
+ return g().getIsReadyOrError(this.handle);
4630
4630
  }
4631
4631
  getIsFinal() {
4632
- return h().getIsFinal(this.handle);
4632
+ return g().getIsFinal(this.handle);
4633
4633
  }
4634
4634
  getError() {
4635
4635
  const e = [...this.resolvePath, "error"];
4636
4636
  return he(
4637
- h().getError(this.handle),
4638
- (n2) => new O(n2, e)
4637
+ g().getError(this.handle),
4638
+ (n2) => new E(n2, e)
4639
4639
  );
4640
4640
  }
4641
4641
  listInputFields() {
4642
- return h().listInputFields(this.handle);
4642
+ return g().listInputFields(this.handle);
4643
4643
  }
4644
4644
  listOutputFields() {
4645
- return h().listOutputFields(this.handle);
4645
+ return g().listOutputFields(this.handle);
4646
4646
  }
4647
4647
  listDynamicFields() {
4648
- return h().listDynamicFields(this.handle);
4648
+ return g().listDynamicFields(this.handle);
4649
4649
  }
4650
4650
  getKeyValueBase64(e) {
4651
- return h().getKeyValueBase64(this.handle, e);
4651
+ return g().getKeyValueBase64(this.handle, e);
4652
4652
  }
4653
4653
  getKeyValueAsString(e) {
4654
- return h().getKeyValueAsString(this.handle, e);
4654
+ return g().getKeyValueAsString(this.handle, e);
4655
4655
  }
4656
4656
  getKeyValueAsJson(e) {
4657
4657
  const n2 = this.getKeyValueAsString(e);
@@ -4659,10 +4659,10 @@
4659
4659
  return JSON.parse(n2);
4660
4660
  }
4661
4661
  getDataBase64() {
4662
- return h().getDataBase64(this.handle);
4662
+ return g().getDataBase64(this.handle);
4663
4663
  }
4664
4664
  getDataAsString() {
4665
- return h().getDataAsString(this.handle);
4665
+ return g().getDataAsString(this.handle);
4666
4666
  }
4667
4667
  getDataAsJson() {
4668
4668
  const e = this.getDataAsString();
@@ -4683,7 +4683,7 @@
4683
4683
  *
4684
4684
  */
4685
4685
  parsePObjectCollection(e = false, n2 = "") {
4686
- const r = h().parsePObjectCollection(
4686
+ const r = g().parsePObjectCollection(
4687
4687
  this.handle,
4688
4688
  e,
4689
4689
  n2,
@@ -4693,19 +4693,19 @@
4693
4693
  const i = {};
4694
4694
  for (const [s2, o] of Object.entries(r)) {
4695
4695
  const a = [...this.resolvePath, s2];
4696
- i[s2] = Kn(o, (l2) => new O(l2, a));
4696
+ i[s2] = Kn(o, (l2) => new E(l2, a));
4697
4697
  }
4698
4698
  return i;
4699
4699
  }
4700
4700
  getFileContentAsBase64(e) {
4701
- return new I(h().getBlobContentAsBase64(this.handle, e));
4701
+ return new _(g().getBlobContentAsBase64(this.handle, e));
4702
4702
  }
4703
4703
  getFileContentAsString(e) {
4704
- return new I(h().getBlobContentAsString(this.handle, e));
4704
+ return new _(g().getBlobContentAsString(this.handle, e));
4705
4705
  }
4706
4706
  getFileContentAsJson(e) {
4707
- return new I(
4708
- h().getBlobContentAsString(this.handle, e)
4707
+ return new _(
4708
+ g().getBlobContentAsString(this.handle, e)
4709
4709
  ).mapDefined((n2) => JSON.parse(n2));
4710
4710
  }
4711
4711
  /**
@@ -4724,7 +4724,7 @@
4724
4724
  * @returns downloaded file handle
4725
4725
  */
4726
4726
  getFileHandle() {
4727
- return new I(h().getDownloadedBlobContentHandle(this.handle));
4727
+ return new _(g().getDownloadedBlobContentHandle(this.handle));
4728
4728
  }
4729
4729
  /**
4730
4730
  * @deprecated use getFileHandle
@@ -4736,7 +4736,7 @@
4736
4736
  * @returns downloaded file handle
4737
4737
  */
4738
4738
  getRemoteFileHandle() {
4739
- return new I(h().getOnDemandBlobContentHandle(this.handle));
4739
+ return new _(g().getOnDemandBlobContentHandle(this.handle));
4740
4740
  }
4741
4741
  /**
4742
4742
  * @deprecated use getRemoteFileHandle
@@ -4748,22 +4748,22 @@
4748
4748
  * @returns the url to the extracted folder
4749
4749
  */
4750
4750
  extractArchiveAndGetURL(e) {
4751
- return new I(h().extractArchiveAndGetURL(this.handle, e));
4751
+ return new _(g().extractArchiveAndGetURL(this.handle, e));
4752
4752
  }
4753
4753
  getImportProgress() {
4754
- return new I(h().getImportProgress(this.handle));
4754
+ return new _(g().getImportProgress(this.handle));
4755
4755
  }
4756
4756
  getLastLogs(e) {
4757
- return new I(h().getLastLogs(this.handle, e));
4757
+ return new _(g().getLastLogs(this.handle, e));
4758
4758
  }
4759
4759
  getProgressLog(e) {
4760
- return new I(h().getProgressLog(this.handle, e));
4760
+ return new _(g().getProgressLog(this.handle, e));
4761
4761
  }
4762
4762
  getProgressLogWithInfo(e) {
4763
- return new I(h().getProgressLogWithInfo(this.handle, e));
4763
+ return new _(g().getProgressLogWithInfo(this.handle, e));
4764
4764
  }
4765
4765
  getLogHandle() {
4766
- return new I(h().getLogHandle(this.handle));
4766
+ return new _(g().getLogHandle(this.handle));
4767
4767
  }
4768
4768
  allFieldsResolved(e = "Input") {
4769
4769
  switch (e) {
@@ -4789,90 +4789,90 @@
4789
4789
  let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4790
4790
  (u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
4791
4791
  );
4792
- return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, d]) => o(u2, d));
4792
+ return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, c2]) => o(u2, c2));
4793
4793
  }
4794
4794
  }
4795
- const De = "staging", Ke = "main";
4796
- const bt = "pl7.app/label", wt = "pl7.app/trace", At = z$2.object({
4795
+ const De = "staging", Fe = "main";
4796
+ const mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$2.object({
4797
4797
  type: z$2.string(),
4798
4798
  importance: z$2.number().optional(),
4799
4799
  id: z$2.string().optional(),
4800
4800
  label: z$2.string()
4801
- }), xt = z$2.array(At), Ct = 1e-3, Pt = "__LABEL__", Se = "__LABEL__@1";
4801
+ }), bt = z$2.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
4802
4802
  function Ve(t, e, n2 = {}) {
4803
4803
  const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
4804
- var S, R;
4804
+ var P, R;
4805
4805
  const w2 = e(f2);
4806
- let c2, g, x2;
4807
- "spec" in w2 && typeof w2.spec == "object" ? (c2 = w2.spec, g = w2.prefixTrace, x2 = w2.suffixTrace) : c2 = w2;
4808
- const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (R = c2.annotations) == null ? void 0 : R[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
4809
- ...g ?? [],
4810
- ...m2,
4811
- ...x2 ?? []
4806
+ let d, h2, b;
4807
+ "spec" in w2 && typeof w2.spec == "object" ? (d = w2.spec, h2 = w2.prefixTrace, b = w2.suffixTrace) : d = w2;
4808
+ const p2 = (P = d.annotations) == null ? void 0 : P[mt], I2 = (R = d.annotations) == null ? void 0 : R[yt], x2 = (I2 ? bt.safeParse(JSON.parse(I2)).data : void 0) ?? [], y = [
4809
+ ...h2 ?? [],
4810
+ ...x2,
4811
+ ...b ?? []
4812
4812
  ];
4813
4813
  if (p2 !== void 0) {
4814
- const k2 = { label: p2, type: Pt, importance: -2 };
4815
- n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
4816
- }
4817
- const C2 = [], L = /* @__PURE__ */ new Map();
4818
- for (let k2 = v.length - 1; k2 >= 0; --k2) {
4819
- const { type: W } = v[k2], V = v[k2].importance ?? 0, N2 = (L.get(W) ?? 0) + 1;
4820
- L.set(W, N2);
4821
- const j = `${W}@${N2}`;
4822
- s2.set(j, (s2.get(j) ?? 0) + 1), r.set(
4823
- j,
4814
+ const O = { label: p2, type: At, importance: -2 };
4815
+ n2.addLabelAsSuffix ? y.push(O) : y.splice(0, 0, O);
4816
+ }
4817
+ const A2 = [], T = /* @__PURE__ */ new Map();
4818
+ for (let O = y.length - 1; O >= 0; --O) {
4819
+ const { type: W } = y[O], V = y[O].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
4820
+ T.set(W, $);
4821
+ const F2 = `${W}@${$}`;
4822
+ s2.set(F2, (s2.get(F2) ?? 0) + 1), r.set(
4823
+ F2,
4824
4824
  Math.max(
4825
- r.get(j) ?? Number.NEGATIVE_INFINITY,
4826
- V - (v.length - k2) * Ct
4825
+ r.get(F2) ?? Number.NEGATIVE_INFINITY,
4826
+ V - (y.length - O) * wt
4827
4827
  )
4828
- ), C2.push({ ...v[k2], fullType: j, occurrenceIndex: N2 });
4828
+ ), A2.push({ ...y[O], fullType: F2, occurrenceIndex: $ });
4829
4829
  }
4830
- return C2.reverse(), {
4830
+ return A2.reverse(), {
4831
4831
  value: f2,
4832
- spec: c2,
4832
+ spec: d,
4833
4833
  label: p2,
4834
- fullTrace: C2
4834
+ fullTrace: A2
4835
4835
  };
4836
4836
  }), a = [], l2 = [], u2 = [...r];
4837
4837
  u2.sort(([, f2], [, w2]) => w2 - f2);
4838
4838
  for (const [f2] of u2)
4839
4839
  f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
4840
- const d = (f2, w2 = false) => {
4841
- const c2 = [];
4842
- for (let g = 0; g < o.length; g++) {
4843
- const x2 = o[g], p2 = x2.fullTrace.filter((v) => f2.has(v.fullType) || i && i.has(v.type));
4840
+ const c2 = (f2, w2 = false) => {
4841
+ const d = [];
4842
+ for (let h2 = 0; h2 < o.length; h2++) {
4843
+ const b = o[h2], p2 = b.fullTrace.filter((y) => f2.has(y.fullType) || i && i.has(y.type));
4844
4844
  if (p2.length === 0)
4845
4845
  if (w2)
4846
- c2.push({
4846
+ d.push({
4847
4847
  label: "Unlabeled",
4848
- value: x2.value
4848
+ value: b.value
4849
4849
  });
4850
4850
  else return;
4851
- const A2 = p2.map((v) => v.label), m2 = n2.separator ?? " / ";
4852
- c2.push({
4853
- label: A2.join(m2),
4854
- value: x2.value
4851
+ const I2 = p2.map((y) => y.label), x2 = n2.separator ?? " / ";
4852
+ d.push({
4853
+ label: I2.join(x2),
4854
+ value: b.value
4855
4855
  });
4856
4856
  }
4857
- return c2;
4857
+ return d;
4858
4858
  };
4859
4859
  if (a.length === 0) {
4860
4860
  if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
4861
- return d(new Set(Se), true);
4861
+ return c2(new Set(Pe), true);
4862
4862
  }
4863
- let y = 0, b = -1;
4864
- for (; y < a.length; ) {
4863
+ let m2 = 0, v = -1;
4864
+ for (; m2 < a.length; ) {
4865
4865
  const f2 = /* @__PURE__ */ new Set();
4866
- n2.includeNativeLabel && f2.add(Se);
4867
- for (let c2 = 0; c2 < y; ++c2) f2.add(a[c2]);
4868
- b >= 0 && f2.add(a[b]);
4869
- const w2 = d(f2);
4870
- if (w2 !== void 0 && new Set(w2.map((c2) => c2.label)).size === t.length) return w2;
4871
- b++, b >= a.length && (y++, b = y);
4872
- }
4873
- return d(/* @__PURE__ */ new Set([...a, ...l2]), true);
4866
+ n2.includeNativeLabel && f2.add(Pe);
4867
+ for (let d = 0; d < m2; ++d) f2.add(a[d]);
4868
+ v >= 0 && f2.add(a[v]);
4869
+ const w2 = c2(f2);
4870
+ if (w2 !== void 0 && new Set(w2.map((d) => d.label)).size === t.length) return w2;
4871
+ v++, v >= a.length && (m2++, v = m2);
4872
+ }
4873
+ return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
4874
4874
  }
4875
- const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", $e = Z + "Partitioned/", ae = $e + "JsonPartitioned", z = $e + "BinaryPartitioned";
4875
+ const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", je = Z + "Partitioned/", ae = je + "JsonPartitioned", z = je + "BinaryPartitioned";
4876
4876
  const me = (t) => {
4877
4877
  if (t.endsWith(".index"))
4878
4878
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
@@ -4880,7 +4880,7 @@
4880
4880
  return { baseKey: t.substring(0, t.length - 7), type: "values" };
4881
4881
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
4882
4882
  };
4883
- function St(t) {
4883
+ function xt(t) {
4884
4884
  if (!t) return;
4885
4885
  const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
4886
4886
  let i = 0;
@@ -4926,7 +4926,7 @@
4926
4926
  }
4927
4927
  return { data: r, keyLength: i };
4928
4928
  }
4929
- function _t(t) {
4929
+ function Ct(t) {
4930
4930
  if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
4931
4931
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
4932
4932
  const { parts: e, partitionKeyLength: n2 } = t, r = [];
@@ -4945,11 +4945,11 @@
4945
4945
  }
4946
4946
  return r.map((i) => Array.from(i.values()));
4947
4947
  }
4948
- function It(t) {
4948
+ function Pt(t) {
4949
4949
  if (t === void 0) return;
4950
- if (F$1(t))
4951
- return _t(t);
4952
- const e = St(t);
4950
+ if (F(t))
4951
+ return Ct(t);
4952
+ const e = xt(t);
4953
4953
  if (!e) return;
4954
4954
  const { data: n2, keyLength: r } = e, i = [];
4955
4955
  for (let s2 = 0; s2 < r; ++s2)
@@ -5060,15 +5060,15 @@
5060
5060
  throw new Error(`Unknown resource type: ${n2}`);
5061
5061
  }
5062
5062
  }
5063
- function Tt(t) {
5063
+ function St(t) {
5064
5064
  if (t !== void 0) {
5065
- if (F$1(t)) return t;
5065
+ if (F(t)) return t;
5066
5066
  if (hn(t)) return wn(t);
5067
- if (t instanceof O) return ye(t);
5067
+ if (t instanceof E) return ye(t);
5068
5068
  throw new Error(`Unexpected input type: ${typeof t}`);
5069
5069
  }
5070
5070
  }
5071
- function Lt(t, e) {
5071
+ function _t(t, e) {
5072
5072
  const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
5073
5073
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
5074
5074
  const { partitionKeyLength: s2 } = t;
@@ -5128,7 +5128,13 @@
5128
5128
  }
5129
5129
  }
5130
5130
  }
5131
- class Et {
5131
+ function It(t) {
5132
+ if (!Array.isArray(t)) return false;
5133
+ if (t.length === 0) return true;
5134
+ const e = t[0];
5135
+ return typeof e == "object" && e !== null && "key" in e && "val" in e;
5136
+ }
5137
+ class Tt {
5132
5138
  constructor(e) {
5133
5139
  this.columns = e;
5134
5140
  }
@@ -5137,7 +5143,7 @@
5137
5143
  return this.columns.filter((r) => n2(r.spec));
5138
5144
  }
5139
5145
  }
5140
- function Ot(t) {
5146
+ function Lt(t) {
5141
5147
  if (t)
5142
5148
  return t.map((e) => ({
5143
5149
  type: `split:${In(e.axisId)}`,
@@ -5146,21 +5152,21 @@
5146
5152
  // High importance for split filters in labels
5147
5153
  }));
5148
5154
  }
5149
- function kt(t) {
5155
+ function Et(t) {
5150
5156
  if (t)
5151
5157
  return t.map((e) => [e.axisIdx, e.value]);
5152
5158
  }
5153
- function Ft(t, e) {
5159
+ function Ot(t, e) {
5154
5160
  if (!e || e.length === 0) return t;
5155
5161
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5156
- return ke({ id: t, axisFilters: n2 });
5162
+ return Oe({ id: t, axisFilters: n2 });
5157
5163
  }
5158
- function _e(t) {
5164
+ function Se(t) {
5159
5165
  if (!t || typeof t != "object") return false;
5160
5166
  const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
5161
5167
  return !!e.domainAnchor || n2 || r;
5162
5168
  }
5163
- function Rt(t) {
5169
+ function kt(t) {
5164
5170
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5165
5171
  return [];
5166
5172
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5168,11 +5174,11 @@
5168
5174
  throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
5169
5175
  return e.sort((n2, r) => n2 - r), e;
5170
5176
  }
5171
- class ve {
5177
+ class le {
5172
5178
  constructor() {
5173
- F(this, "defaultProviderStore", []);
5174
- F(this, "providers", [new Et(this.defaultProviderStore)]);
5175
- F(this, "axisLabelProviders", []);
5179
+ k(this, "defaultProviderStore", []);
5180
+ k(this, "providers", [new Tt(this.defaultProviderStore)]);
5181
+ k(this, "axisLabelProviders", []);
5176
5182
  }
5177
5183
  addColumnProvider(e) {
5178
5184
  return this.providers.push(e), this;
@@ -5200,124 +5206,126 @@
5200
5206
  };
5201
5207
  let u2 = () => false;
5202
5208
  if (a) {
5203
- const c2 = (Array.isArray(a) ? a : [a]).map((g) => {
5204
- if (_e(g)) {
5209
+ const d = (Array.isArray(a) ? a : [a]).map((h2) => {
5210
+ if (Se(h2)) {
5205
5211
  if (!r)
5206
5212
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5207
- return _n(Bn(r.anchors, g, n2));
5213
+ return _n(Bn(r.anchors, h2, n2));
5208
5214
  } else
5209
- return _n(g);
5215
+ return _n(h2);
5210
5216
  });
5211
- u2 = (g) => c2.some((x2) => x2(g));
5217
+ u2 = (h2) => d.some((b) => b(h2));
5212
5218
  }
5213
- const d = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], y = [], b = /* @__PURE__ */ new Set();
5214
- for (const c2 of d) {
5215
- const g = _e(c2);
5216
- let x2;
5217
- if (g) {
5219
+ const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], m2 = [], v = /* @__PURE__ */ new Set();
5220
+ for (const d of c2) {
5221
+ const h2 = Se(d);
5222
+ let b;
5223
+ if (h2) {
5218
5224
  if (!r)
5219
5225
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5220
- x2 = Bn(r.anchors, c2, n2);
5226
+ b = Bn(r.anchors, d, n2);
5221
5227
  } else
5222
- x2 = c2;
5223
- const p2 = /* @__PURE__ */ new Set(), A2 = [];
5224
- for (const C2 of this.providers) {
5225
- const L = C2.selectColumns(x2);
5226
- for (const S of L) {
5227
- if (u2(S.spec)) continue;
5228
- if (p2.has(S.id))
5229
- throw new Error(`Duplicate column id ${S.id} in provider ${C2.constructor.name}`);
5230
- const R = Mn(S.spec);
5231
- b.has(R) || (p2.add(S.id), b.add(R), A2.push(S));
5228
+ b = d;
5229
+ const p2 = /* @__PURE__ */ new Set(), I2 = [];
5230
+ for (const A2 of this.providers) {
5231
+ const T = A2.selectColumns(b);
5232
+ for (const P of T) {
5233
+ if (u2(P.spec)) continue;
5234
+ if (p2.has(P.id))
5235
+ throw new Error(`Duplicate column id ${P.id} in provider ${A2.constructor.name}`);
5236
+ const R = Mn(P.spec);
5237
+ v.has(R) || (p2.add(P.id), v.add(R), I2.push(P));
5232
5238
  }
5233
5239
  }
5234
- if (A2.length === 0) continue;
5235
- const m2 = Rt(c2), v = m2.length > 0;
5236
- for (const C2 of A2) {
5237
- if (!f(C2.spec)) continue;
5238
- const L = C2.spec;
5239
- if (v) {
5240
- const S = Tt(C2.data);
5241
- if (!S) {
5240
+ if (I2.length === 0) continue;
5241
+ const x2 = kt(d), y = x2.length > 0;
5242
+ for (const A2 of I2) {
5243
+ if (!f(A2.spec)) continue;
5244
+ const T = A2.spec;
5245
+ if (y) {
5246
+ if (It(A2.data))
5247
+ throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A2.id}`);
5248
+ const P = St(A2.data);
5249
+ if (!P) {
5242
5250
  if (s2) continue;
5243
5251
  return;
5244
5252
  }
5245
- if (!bn(S))
5246
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${C2.id}`);
5247
- const R = It(S), k2 = m2[m2.length - 1];
5248
- if (k2 >= S.partitionKeyLength)
5249
- throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5250
- const W = m2.map((_) => this.findLabels(p$1(L.axesSpec[_]))), V = [], N2 = (_, G2) => {
5251
- if (G2 >= m2.length) {
5252
- if (V.push([..._]), V.length > 1e4)
5253
+ if (!bn(P))
5254
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A2.id}`);
5255
+ const R = Pt(P), O = x2[x2.length - 1];
5256
+ if (O >= P.partitionKeyLength)
5257
+ throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${O}) in column ${T.name}`);
5258
+ const W = x2.map((S) => this.findLabels(p$1(T.axesSpec[S]))), V = [], $ = (S, G2) => {
5259
+ if (G2 >= x2.length) {
5260
+ if (V.push([...S]), V.length > 1e4)
5253
5261
  throw new Error("Too many key combinations, aborting.");
5254
5262
  return;
5255
5263
  }
5256
- const $ = m2[G2];
5257
- if ($ >= R.length)
5258
- throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${C2.id}`);
5259
- const J = R[$];
5260
- if (!J || J.length === 0) {
5264
+ const j = x2[G2];
5265
+ if (j >= R.length)
5266
+ throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A2.id}`);
5267
+ const N2 = R[j];
5268
+ if (!N2 || N2.length === 0) {
5261
5269
  V.length = 0;
5262
5270
  return;
5263
5271
  }
5264
- for (const ee of J)
5265
- _.push(ee), N2(_, G2 + 1), _.pop();
5272
+ for (const ee of N2)
5273
+ S.push(ee), $(S, G2 + 1), S.pop();
5266
5274
  };
5267
- if (N2([], 0), V.length === 0)
5275
+ if ($([], 0), V.length === 0)
5268
5276
  continue;
5269
- const j = [...L.axesSpec], He = m2.map((_) => _);
5270
- for (let _ = m2.length - 1; _ >= 0; _--)
5271
- j.splice(m2[_], 1);
5272
- const qe = { ...L, axesSpec: j };
5273
- for (const _ of V) {
5274
- const G2 = _.map(($, J) => {
5275
- const ee = He[J], ze = p$1(L.axesSpec[ee]), le = W[J], Ye = (le == null ? void 0 : le[$]) ?? String($);
5276
- return { axisIdx: ee, axisId: ze, value: $, label: Ye };
5277
+ const F2 = [...T.axesSpec], Be = x2.map((S) => S);
5278
+ for (let S = x2.length - 1; S >= 0; S--)
5279
+ F2.splice(x2[S], 1);
5280
+ const We = { ...T, axesSpec: F2 };
5281
+ for (const S of V) {
5282
+ const G2 = S.map((j, N2) => {
5283
+ const ee = Be[N2], Ge = p$1(T.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[j]) ?? String(j);
5284
+ return { axisIdx: ee, axisId: Ge, value: j, label: He };
5277
5285
  });
5278
- y.push({
5286
+ m2.push({
5279
5287
  type: "split",
5280
- originalColumn: C2,
5281
- spec: L,
5282
- adjustedSpec: qe,
5283
- dataEntries: S,
5288
+ originalColumn: A2,
5289
+ spec: T,
5290
+ adjustedSpec: We,
5291
+ dataEntries: P,
5284
5292
  axisFilters: G2
5285
5293
  });
5286
5294
  }
5287
5295
  } else
5288
- y.push({
5296
+ m2.push({
5289
5297
  type: "direct",
5290
- originalColumn: C2,
5291
- spec: L,
5292
- adjustedSpec: L
5298
+ originalColumn: A2,
5299
+ spec: T,
5300
+ adjustedSpec: T
5293
5301
  });
5294
5302
  }
5295
5303
  }
5296
- if (y.length === 0) return [];
5304
+ if (m2.length === 0) return [];
5297
5305
  const f$1 = Ve(
5298
- y,
5299
- (c2) => ({
5300
- spec: c2.spec,
5301
- suffixTrace: c2.type === "split" ? Ot(c2.axisFilters) : void 0
5306
+ m2,
5307
+ (d) => ({
5308
+ spec: d.spec,
5309
+ suffixTrace: d.type === "split" ? Lt(d.axisFilters) : void 0
5302
5310
  }),
5303
5311
  l2
5304
5312
  ), w2 = [];
5305
- for (const { value: c2, label: g } of f$1) {
5306
- const { originalColumn: x2, spec: p2 } = c2, A2 = c2.type === "split" ? c2.axisFilters : void 0, m2 = kt(A2);
5307
- let v;
5308
- r ? v = r.deriveS(p2, m2) : v = Ft(x2.id, m2);
5309
- let C2 = { ...c2.adjustedSpec };
5310
- o && (C2 = {
5311
- ...C2,
5313
+ for (const { value: d, label: h2 } of f$1) {
5314
+ const { originalColumn: b, spec: p2 } = d, I2 = d.type === "split" ? d.axisFilters : void 0, x2 = Et(I2);
5315
+ let y;
5316
+ r ? y = r.deriveS(p2, x2) : y = Ot(b.id, x2);
5317
+ let A2 = { ...d.adjustedSpec };
5318
+ o && (A2 = {
5319
+ ...A2,
5312
5320
  annotations: {
5313
- ...C2.annotations ?? {},
5314
- "pl7.app/label": g
5321
+ ...A2.annotations ?? {},
5322
+ "pl7.app/label": h2
5315
5323
  }
5316
5324
  }), w2.push({
5317
- id: v,
5318
- spec: C2,
5319
- data: () => c2.type === "split" ? Pn(Lt(c2.dataEntries, m2)) : c2.originalColumn.data,
5320
- label: g
5325
+ id: y,
5326
+ spec: A2,
5327
+ data: () => d.type === "split" ? Pn(_t(d.dataEntries, x2)) : d.originalColumn.data,
5328
+ label: h2
5321
5329
  });
5322
5330
  }
5323
5331
  return w2;
@@ -5345,19 +5353,19 @@
5345
5353
  return i;
5346
5354
  }
5347
5355
  }
5348
- function pe(t, e) {
5356
+ function de(t, e) {
5349
5357
  if (t === void 0) return e === void 0;
5350
5358
  if (e === void 0) return true;
5351
5359
  for (const n2 in e)
5352
5360
  if (t[n2] !== e[n2]) return false;
5353
5361
  return true;
5354
5362
  }
5355
- function Ie(t) {
5356
- return Kn(t, (e) => e instanceof O ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
5363
+ function _e(t) {
5364
+ return Kn(t, (e) => e instanceof E ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
5357
5365
  }
5358
- class Dt {
5366
+ class Rt {
5359
5367
  constructor() {
5360
- F(this, "ctx", h());
5368
+ k(this, "ctx", g());
5361
5369
  }
5362
5370
  /**
5363
5371
  * @deprecated use getOptions()
@@ -5400,7 +5408,7 @@
5400
5408
  getAnchoredPColumns(e, n2, r) {
5401
5409
  const i = this.resolveAnchorCtx(e);
5402
5410
  if (i)
5403
- return new ve().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
5411
+ return new le().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
5404
5412
  ...r,
5405
5413
  anchorCtx: i
5406
5414
  });
@@ -5437,7 +5445,7 @@
5437
5445
  getCanonicalOptions(e, n2, r) {
5438
5446
  const i = this.resolveAnchorCtx(e);
5439
5447
  if (!i) return;
5440
- const s2 = new ve().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
5448
+ const s2 = new le().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
5441
5449
  ...r,
5442
5450
  anchorCtx: i
5443
5451
  });
@@ -5461,7 +5469,7 @@
5461
5469
  ref: n2.ref,
5462
5470
  obj: {
5463
5471
  ...n2.obj,
5464
- data: new O(n2.obj.data, [n2.ref.blockId, n2.ref.name])
5472
+ data: new E(n2.obj.data, [n2.ref.blockId, n2.ref.name])
5465
5473
  }
5466
5474
  }))
5467
5475
  };
@@ -5482,7 +5490,7 @@
5482
5490
  ...n2.obj,
5483
5491
  data: Gn(
5484
5492
  n2.obj.data,
5485
- (r) => new O(r, [n2.ref.blockId, n2.ref.name])
5493
+ (r) => new E(r, [n2.ref.blockId, n2.ref.name])
5486
5494
  )
5487
5495
  }
5488
5496
  }))
@@ -5511,7 +5519,7 @@
5511
5519
  if (n2)
5512
5520
  return Kn(
5513
5521
  n2,
5514
- (i) => new O(i, [e.blockId, e.name])
5522
+ (i) => new E(i, [e.blockId, e.name])
5515
5523
  );
5516
5524
  }
5517
5525
  /**
@@ -5554,10 +5562,10 @@
5554
5562
  if (!f(r.obj.spec))
5555
5563
  continue;
5556
5564
  const i = r.obj.spec;
5557
- if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && pe(e.domain, i.domain)) {
5565
+ if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && de(e.domain, i.domain)) {
5558
5566
  for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
5559
5567
  const o = e.axesSpec[s2], a = i.axesSpec[s2];
5560
- if (o.name !== a.name || o.type !== a.type || !pe(o.domain, a.domain))
5568
+ if (o.name !== a.name || o.type !== a.type || !de(o.domain, a.domain))
5561
5569
  continue e;
5562
5570
  }
5563
5571
  n2.push(r.obj);
@@ -5574,7 +5582,7 @@
5574
5582
  for (const r of n2.entries) {
5575
5583
  if (!Z$1(r.obj)) continue;
5576
5584
  const i = r.obj.spec;
5577
- if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && pe(e.domain, i.axesSpec[0].domain)) {
5585
+ if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && de(e.domain, i.axesSpec[0].domain)) {
5578
5586
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
5579
5587
  throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
5580
5588
  return Object.fromEntries(
@@ -5599,7 +5607,7 @@
5599
5607
  let a = null;
5600
5608
  const l2 = this;
5601
5609
  return {
5602
- id: ke(i),
5610
+ id: Oe(i),
5603
5611
  spec: o,
5604
5612
  get data() {
5605
5613
  var u2;
@@ -5626,12 +5634,12 @@
5626
5634
  }
5627
5635
  class te {
5628
5636
  constructor() {
5629
- F(this, "ctx");
5630
- F(this, "args");
5631
- F(this, "uiState");
5632
- F(this, "_activeArgsCache");
5633
- F(this, "resultPool", new Dt());
5634
- this.ctx = h(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5637
+ k(this, "ctx");
5638
+ k(this, "args");
5639
+ k(this, "uiState");
5640
+ k(this, "_activeArgsCache");
5641
+ k(this, "resultPool", new Rt());
5642
+ this.ctx = g(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5635
5643
  }
5636
5644
  /**
5637
5645
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -5649,14 +5657,14 @@
5649
5657
  getNamedAccessor(e) {
5650
5658
  return he(
5651
5659
  this.ctx.getAccessorHandleByName(e),
5652
- (n2) => new O(n2, [e])
5660
+ (n2) => new E(n2, [e])
5653
5661
  );
5654
5662
  }
5655
5663
  get prerun() {
5656
5664
  return this.getNamedAccessor(De);
5657
5665
  }
5658
5666
  get outputs() {
5659
- return this.getNamedAccessor(Ke);
5667
+ return this.getNamedAccessor(Fe);
5660
5668
  }
5661
5669
  /**
5662
5670
  * Find labels data for a given axis id. It will search for a label column and return its data as a map.
@@ -5668,13 +5676,13 @@
5668
5676
  }
5669
5677
  verifyInlineAndExplicitColumnsSupport(e) {
5670
5678
  var i;
5671
- const n2 = e.some((s2) => !(s2.data instanceof O) || hn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5679
+ const n2 = e.some((s2) => !(s2.data instanceof E) || hn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5672
5680
  if (n2 && !r) throw Error("Inline or explicit columns not supported");
5673
5681
  }
5674
5682
  // TODO remove all non-PColumn fields
5675
5683
  createPFrame(e) {
5676
5684
  return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
5677
- e.map((n2) => Ie(n2))
5685
+ e.map((n2) => _e(n2))
5678
5686
  );
5679
5687
  }
5680
5688
  createPTable(e) {
@@ -5687,7 +5695,7 @@
5687
5695
  filters: e.filters ?? [],
5688
5696
  sorting: e.sorting ?? []
5689
5697
  } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(vn(n2.src)), this.ctx.createPTable(
5690
- Dn(n2, (r) => Ie(r))
5698
+ Dn(n2, (r) => _e(r))
5691
5699
  );
5692
5700
  }
5693
5701
  /** @deprecated scheduled for removal from SDK */
@@ -5707,20 +5715,20 @@
5707
5715
  this.ctx.logError(e);
5708
5716
  }
5709
5717
  }
5710
- const Y = "1.33.8";
5711
- function Kt(t) {
5718
+ const Y = "1.33.14";
5719
+ function Dt(t) {
5712
5720
  return t.__renderLambda === true;
5713
5721
  }
5714
- function de(t) {
5722
+ function pe(t) {
5715
5723
  if (t !== void 0)
5716
- return Kt(t) ? t.handle : t;
5724
+ return Dt(t) ? t.handle : t;
5717
5725
  }
5718
- class E {
5726
+ class L {
5719
5727
  constructor(e, n2, r, i, s2, o, a, l2) {
5720
5728
  this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
5721
5729
  }
5722
5730
  static create(e = "Heavy") {
5723
- return new E(
5731
+ return new L(
5724
5732
  e,
5725
5733
  void 0,
5726
5734
  {},
@@ -5734,7 +5742,7 @@
5734
5742
  output(e, n2, r = {}) {
5735
5743
  if (typeof n2 == "function") {
5736
5744
  const i = `output#${e}`;
5737
- return H(i, () => n2(new te())), new E(
5745
+ return H(i, () => n2(new te())), new L(
5738
5746
  this._renderingMode,
5739
5747
  this._initialArgs,
5740
5748
  this._initialUiState,
@@ -5752,7 +5760,7 @@
5752
5760
  this._enrichmentTargets
5753
5761
  );
5754
5762
  } else
5755
- return new E(
5763
+ return new L(
5756
5764
  this._renderingMode,
5757
5765
  this._initialArgs,
5758
5766
  this._initialUiState,
@@ -5771,7 +5779,7 @@
5771
5779
  return this.output(e, n2, { retentive: true });
5772
5780
  }
5773
5781
  argsValid(e) {
5774
- return typeof e == "function" ? (H("inputsValid", () => e(new te())), new E(
5782
+ return typeof e == "function" ? (H("inputsValid", () => e(new te())), new L(
5775
5783
  this._renderingMode,
5776
5784
  this._initialArgs,
5777
5785
  this._initialUiState,
@@ -5783,7 +5791,7 @@
5783
5791
  this._sections,
5784
5792
  this._title,
5785
5793
  this._enrichmentTargets
5786
- )) : new E(
5794
+ )) : new L(
5787
5795
  this._renderingMode,
5788
5796
  this._initialArgs,
5789
5797
  this._initialUiState,
@@ -5795,7 +5803,7 @@
5795
5803
  );
5796
5804
  }
5797
5805
  sections(e) {
5798
- return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new E(
5806
+ return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new L(
5799
5807
  this._renderingMode,
5800
5808
  this._initialArgs,
5801
5809
  this._initialUiState,
@@ -5804,7 +5812,7 @@
5804
5812
  { __renderLambda: true, handle: "sections" },
5805
5813
  this._title,
5806
5814
  this._enrichmentTargets
5807
- )) : new E(
5815
+ )) : new L(
5808
5816
  this._renderingMode,
5809
5817
  this._initialArgs,
5810
5818
  this._initialUiState,
@@ -5817,7 +5825,7 @@
5817
5825
  }
5818
5826
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
5819
5827
  title(e) {
5820
- return H("title", () => e(new te())), new E(
5828
+ return H("title", () => e(new te())), new L(
5821
5829
  this._renderingMode,
5822
5830
  this._initialArgs,
5823
5831
  this._initialUiState,
@@ -5833,7 +5841,7 @@
5833
5841
  * @deprecated use {@link withArgs}
5834
5842
  * */
5835
5843
  initialArgs(e) {
5836
- return new E(
5844
+ return new L(
5837
5845
  this._renderingMode,
5838
5846
  e,
5839
5847
  this._initialUiState,
@@ -5846,7 +5854,7 @@
5846
5854
  }
5847
5855
  /** Sets initial args for the block, this value must be specified. */
5848
5856
  withArgs(e) {
5849
- return new E(
5857
+ return new L(
5850
5858
  this._renderingMode,
5851
5859
  e,
5852
5860
  this._initialUiState,
@@ -5859,7 +5867,7 @@
5859
5867
  }
5860
5868
  /** Defines type and sets initial value for block UiState. */
5861
5869
  withUiState(e) {
5862
- return new E(
5870
+ return new L(
5863
5871
  this._renderingMode,
5864
5872
  this._initialArgs,
5865
5873
  e,
@@ -5875,7 +5883,7 @@
5875
5883
  * Influences dependency graph construction.
5876
5884
  */
5877
5885
  enriches(e) {
5878
- return H("enrichmentTargets", e), new E(
5886
+ return H("enrichmentTargets", e), new L(
5879
5887
  this._renderingMode,
5880
5888
  this._initialArgs,
5881
5889
  this._initialUiState,
@@ -5907,16 +5915,16 @@
5907
5915
  sdkVersion: Y,
5908
5916
  renderingMode: this._renderingMode,
5909
5917
  initialArgs: this._initialArgs,
5910
- inputsValid: de(this._inputsValid),
5911
- sections: de(this._sections),
5918
+ inputsValid: pe(this._inputsValid),
5919
+ sections: pe(this._sections),
5912
5920
  outputs: Object.fromEntries(
5913
- Object.entries(this._outputs).map(([n2, r]) => [n2, de(r)])
5921
+ Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
5914
5922
  )
5915
5923
  };
5916
- return ht() ? Re({ sdkVersion: Y }) : { config: e };
5924
+ return dt() ? Re({ sdkVersion: Y }) : { config: e };
5917
5925
  }
5918
5926
  }
5919
- const platforma = E.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
5927
+ const platforma = L.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
5920
5928
  return [{ type: "link", href: "/", label: "Main" }];
5921
5929
  }).title((ctx) => "Pool explorer").done();
5922
5930
  exports2.platforma = platforma;