@milaboratories/milaboratories.ui-examples.model 1.1.53 → 1.1.54

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
@@ -3948,8 +3948,8 @@
3948
3948
  quotelessJson,
3949
3949
  ZodError
3950
3950
  });
3951
- var $ = Object.defineProperty;
3952
- var I$1 = (n2, e, t) => e in n2 ? $(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3951
+ var $$1 = Object.defineProperty;
3952
+ var I$1 = (n2, e, t) => e in n2 ? $$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3953
3953
  var l$1 = (n2, e, t) => I$1(n2, typeof e != "symbol" ? e + "" : e, t);
3954
3954
  function w(n2) {
3955
3955
  throw new Error("Unexpected object: " + n2);
@@ -4081,18 +4081,18 @@
4081
4081
  }
4082
4082
  }
4083
4083
  }
4084
- function Cn$1(n2) {
4084
+ function Cn(n2) {
4085
4085
  return {
4086
4086
  columnId: n2.id,
4087
4087
  spec: n2.spec
4088
4088
  };
4089
4089
  }
4090
- function m$2(n2) {
4090
+ function m$1(n2) {
4091
4091
  const { type: e, name: t, domain: r } = n2;
4092
4092
  return { type: e, name: t, ...r && { domain: r } };
4093
4093
  }
4094
4094
  function Jn(n2) {
4095
- return Le(m$2(n2));
4095
+ return Le(m$1(n2));
4096
4096
  }
4097
4097
  function z(n2, e) {
4098
4098
  if (n2 === void 0) return e === void 0;
@@ -4105,9 +4105,9 @@
4105
4105
  return n2.name === e.name && z(n2.domain, e.domain);
4106
4106
  }
4107
4107
  function On(n2, e) {
4108
- return { ...n2, src: y(n2.src, e) };
4108
+ return { ...n2, src: y$1(n2.src, e) };
4109
4109
  }
4110
- function y(n2, e) {
4110
+ function y$1(n2, e) {
4111
4111
  switch (n2.type) {
4112
4112
  case "column":
4113
4113
  return {
@@ -4125,23 +4125,23 @@
4125
4125
  case "full":
4126
4126
  return {
4127
4127
  type: n2.type,
4128
- entries: n2.entries.map((t) => y(t, e))
4128
+ entries: n2.entries.map((t) => y$1(t, e))
4129
4129
  };
4130
4130
  case "outer":
4131
4131
  return {
4132
4132
  type: "outer",
4133
- primary: y(n2.primary, e),
4134
- secondary: n2.secondary.map((t) => y(t, e))
4133
+ primary: y$1(n2.primary, e),
4134
+ secondary: n2.secondary.map((t) => y$1(t, e))
4135
4135
  };
4136
4136
  default:
4137
4137
  w(n2);
4138
4138
  }
4139
4139
  }
4140
- function G(n2) {
4140
+ function G$1(n2) {
4141
4141
  return Le(n2);
4142
4142
  }
4143
4143
  function x(n2) {
4144
- return Le(m$2(n2));
4144
+ return Le(m$1(n2));
4145
4145
  }
4146
4146
  function A(n2, e) {
4147
4147
  return JSON.stringify([n2, e]);
@@ -4208,7 +4208,7 @@
4208
4208
  }
4209
4209
  if (r.axes = e.axesSpec.map((a) => {
4210
4210
  const i = x(a), u2 = this.axes.get(i);
4211
- return u2 === void 0 ? m$2(a) : u2;
4211
+ return u2 === void 0 ? m$1(a) : u2;
4212
4212
  }), !t || t.length === 0)
4213
4213
  return r;
4214
4214
  const s2 = [];
@@ -4237,7 +4237,7 @@
4237
4237
  * @returns A canonicalized string representation of the anchored column identifier
4238
4238
  */
4239
4239
  deriveS(e, t) {
4240
- return G(this.derive(e, t));
4240
+ return G$1(this.derive(e, t));
4241
4241
  }
4242
4242
  }
4243
4243
  function Dn(n2, e, t) {
@@ -4287,7 +4287,7 @@
4287
4287
  throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
4288
4288
  return o[0];
4289
4289
  } else if ("id" in e) {
4290
- const o = r.axesSpec.filter((s2) => X$1(e.id, m$2(s2)));
4290
+ const o = r.axesSpec.filter((s2) => X$1(e.id, m$1(s2)));
4291
4291
  if (o.length > 1)
4292
4292
  throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
4293
4293
  if (o.length === 0)
@@ -4373,7 +4373,7 @@
4373
4373
  return false;
4374
4374
  }
4375
4375
  if (e.axes !== void 0) {
4376
- const t = n2.axesSpec.map(m$2);
4376
+ const t = n2.axesSpec.map(m$1);
4377
4377
  if (e.partialAxesMatch) {
4378
4378
  for (const r of e.axes)
4379
4379
  if (!t.some((o) => k(r, o)))
@@ -4466,12 +4466,12 @@
4466
4466
  }), c = l.extend({
4467
4467
  cause: z$1.lazy(() => s).optional(),
4468
4468
  errors: z$1.lazy(() => s.array()).optional()
4469
- }), m$1 = z$1.object({
4469
+ }), m = z$1.object({
4470
4470
  type: z$1.literal("StandardError"),
4471
4471
  name: z$1.string(),
4472
4472
  message: z$1.string(),
4473
4473
  stack: z$1.string().optional()
4474
- }), p = m$1.extend({
4474
+ }), p = m.extend({
4475
4475
  cause: z$1.lazy(() => s).optional(),
4476
4476
  errors: z$1.lazy(() => s.array()).optional()
4477
4477
  }), s = z$1.union([p, c]);
@@ -4502,11 +4502,11 @@
4502
4502
  function ot() {
4503
4503
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4504
4504
  }
4505
- function m() {
4505
+ function y() {
4506
4506
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4507
4507
  throw new Error("Not in config rendering context");
4508
4508
  }
4509
- function U(t, e) {
4509
+ function B(t, e) {
4510
4510
  const n2 = ot();
4511
4511
  if (n2 === void 0) return false;
4512
4512
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
@@ -4514,12 +4514,12 @@
4514
4514
  }
4515
4515
  const ae = /* @__PURE__ */ new Map();
4516
4516
  function at(t, e) {
4517
- t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
4517
+ t in y().callbackRegistry || (y().callbackRegistry[t] = (n2) => {
4518
4518
  for (const r of ae.get(t))
4519
4519
  r(n2);
4520
4520
  }, ae.set(t, [])), ae.get(t).push(e);
4521
4521
  }
4522
- class C {
4522
+ class S {
4523
4523
  constructor(e, n2 = (r) => r) {
4524
4524
  T(this, "isResolved", false);
4525
4525
  T(this, "resolvedValue");
@@ -4528,10 +4528,10 @@
4528
4528
  });
4529
4529
  }
4530
4530
  map(e) {
4531
- return new C(this.handle, (n2) => e(this.postProcess(n2)));
4531
+ return new S(this.handle, (n2) => e(this.postProcess(n2)));
4532
4532
  }
4533
4533
  mapDefined(e) {
4534
- return new C(this.handle, (n2) => {
4534
+ return new S(this.handle, (n2) => {
4535
4535
  const r = this.postProcess(n2);
4536
4536
  return r ? e(r) : void 0;
4537
4537
  });
@@ -4540,7 +4540,7 @@
4540
4540
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
4541
4541
  }
4542
4542
  }
4543
- function de(t, e) {
4543
+ function pe(t, e) {
4544
4544
  return t === void 0 ? void 0 : e(t);
4545
4545
  }
4546
4546
  class I {
@@ -4582,47 +4582,47 @@
4582
4582
  ...this.resolvePath,
4583
4583
  ...n2.map((i) => typeof i == "string" ? i : i.field)
4584
4584
  ];
4585
- return de(
4586
- m().resolveWithCommon(this.handle, e, ...n2),
4585
+ return pe(
4586
+ y().resolveWithCommon(this.handle, e, ...n2),
4587
4587
  (i) => new I(i, r)
4588
4588
  );
4589
4589
  }
4590
4590
  get resourceType() {
4591
- return m().getResourceType(this.handle);
4591
+ return y().getResourceType(this.handle);
4592
4592
  }
4593
4593
  getInputsLocked() {
4594
- return m().getInputsLocked(this.handle);
4594
+ return y().getInputsLocked(this.handle);
4595
4595
  }
4596
4596
  getOutputsLocked() {
4597
- return m().getOutputsLocked(this.handle);
4597
+ return y().getOutputsLocked(this.handle);
4598
4598
  }
4599
4599
  getIsReadyOrError() {
4600
- return m().getIsReadyOrError(this.handle);
4600
+ return y().getIsReadyOrError(this.handle);
4601
4601
  }
4602
4602
  getIsFinal() {
4603
- return m().getIsFinal(this.handle);
4603
+ return y().getIsFinal(this.handle);
4604
4604
  }
4605
4605
  getError() {
4606
4606
  const e = [...this.resolvePath, "error"];
4607
- return de(
4608
- m().getError(this.handle),
4607
+ return pe(
4608
+ y().getError(this.handle),
4609
4609
  (n2) => new I(n2, e)
4610
4610
  );
4611
4611
  }
4612
4612
  listInputFields() {
4613
- return m().listInputFields(this.handle);
4613
+ return y().listInputFields(this.handle);
4614
4614
  }
4615
4615
  listOutputFields() {
4616
- return m().listOutputFields(this.handle);
4616
+ return y().listOutputFields(this.handle);
4617
4617
  }
4618
4618
  listDynamicFields() {
4619
- return m().listDynamicFields(this.handle);
4619
+ return y().listDynamicFields(this.handle);
4620
4620
  }
4621
4621
  getKeyValueBase64(e) {
4622
- return m().getKeyValueBase64(this.handle, e);
4622
+ return y().getKeyValueBase64(this.handle, e);
4623
4623
  }
4624
4624
  getKeyValueAsString(e) {
4625
- return m().getKeyValueAsString(this.handle, e);
4625
+ return y().getKeyValueAsString(this.handle, e);
4626
4626
  }
4627
4627
  getKeyValueAsJson(e) {
4628
4628
  const n2 = this.getKeyValueAsString(e);
@@ -4630,10 +4630,10 @@
4630
4630
  return JSON.parse(n2);
4631
4631
  }
4632
4632
  getDataBase64() {
4633
- return m().getDataBase64(this.handle);
4633
+ return y().getDataBase64(this.handle);
4634
4634
  }
4635
4635
  getDataAsString() {
4636
- return m().getDataAsString(this.handle);
4636
+ return y().getDataAsString(this.handle);
4637
4637
  }
4638
4638
  getDataAsJson() {
4639
4639
  const e = this.getDataAsString();
@@ -4654,7 +4654,7 @@
4654
4654
  *
4655
4655
  */
4656
4656
  parsePObjectCollection(e = false, n2 = "") {
4657
- const r = m().parsePObjectCollection(
4657
+ const r = y().parsePObjectCollection(
4658
4658
  this.handle,
4659
4659
  e,
4660
4660
  n2,
@@ -4669,14 +4669,14 @@
4669
4669
  return i;
4670
4670
  }
4671
4671
  getFileContentAsBase64() {
4672
- return new C(m().getBlobContentAsBase64(this.handle));
4672
+ return new S(y().getBlobContentAsBase64(this.handle));
4673
4673
  }
4674
4674
  getFileContentAsString() {
4675
- return new C(m().getBlobContentAsString(this.handle));
4675
+ return new S(y().getBlobContentAsString(this.handle));
4676
4676
  }
4677
4677
  getFileContentAsJson() {
4678
- return new C(
4679
- m().getBlobContentAsString(this.handle)
4678
+ return new S(
4679
+ y().getBlobContentAsString(this.handle)
4680
4680
  ).mapDefined((e) => JSON.parse(e));
4681
4681
  }
4682
4682
  /**
@@ -4695,7 +4695,7 @@
4695
4695
  * @returns downloaded file handle
4696
4696
  */
4697
4697
  getFileHandle() {
4698
- return new C(m().getDownloadedBlobContentHandle(this.handle));
4698
+ return new S(y().getDownloadedBlobContentHandle(this.handle));
4699
4699
  }
4700
4700
  /**
4701
4701
  * @deprecated use getFileHandle
@@ -4707,7 +4707,7 @@
4707
4707
  * @returns downloaded file handle
4708
4708
  */
4709
4709
  getRemoteFileHandle() {
4710
- return new C(m().getOnDemandBlobContentHandle(this.handle));
4710
+ return new S(y().getOnDemandBlobContentHandle(this.handle));
4711
4711
  }
4712
4712
  /**
4713
4713
  * @deprecated use getRemoteFileHandle
@@ -4719,22 +4719,22 @@
4719
4719
  * @returns the url to the extracted folder
4720
4720
  */
4721
4721
  extractArchiveAndGetURL(e) {
4722
- return new C(m().extractArchiveAndGetURL(this.handle, e));
4722
+ return new S(y().extractArchiveAndGetURL(this.handle, e));
4723
4723
  }
4724
4724
  getImportProgress() {
4725
- return new C(m().getImportProgress(this.handle));
4725
+ return new S(y().getImportProgress(this.handle));
4726
4726
  }
4727
4727
  getLastLogs(e) {
4728
- return new C(m().getLastLogs(this.handle, e));
4728
+ return new S(y().getLastLogs(this.handle, e));
4729
4729
  }
4730
4730
  getProgressLog(e) {
4731
- return new C(m().getProgressLog(this.handle, e));
4731
+ return new S(y().getProgressLog(this.handle, e));
4732
4732
  }
4733
4733
  getProgressLogWithInfo(e) {
4734
- return new C(m().getProgressLogWithInfo(this.handle, e));
4734
+ return new S(y().getProgressLogWithInfo(this.handle, e));
4735
4735
  }
4736
4736
  getLogHandle() {
4737
- return new C(m().getLogHandle(this.handle));
4737
+ return new S(y().getLogHandle(this.handle));
4738
4738
  }
4739
4739
  allFieldsResolved(e = "Input") {
4740
4740
  switch (e) {
@@ -4760,89 +4760,89 @@
4760
4760
  let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4761
4761
  (u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
4762
4762
  );
4763
- return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, y2]) => o(u2, y2));
4763
+ return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, p2]) => o(u2, p2));
4764
4764
  }
4765
4765
  }
4766
4766
  const Fe = "staging", De = "main";
4767
- const ct = "pl7.app/label", dt = "pl7.app/trace", pt = z$1.object({
4767
+ const ct = "pl7.app/label", pt = "pl7.app/trace", dt = z$1.object({
4768
4768
  type: z$1.string(),
4769
4769
  importance: z$1.number().optional(),
4770
4770
  id: z$1.string().optional(),
4771
4771
  label: z$1.string()
4772
- }), ft = z$1.array(pt), ht = 1e-3, gt = "__LABEL__", Pe = "__LABEL__@1";
4772
+ }), ft = z$1.array(dt), ht = 1e-3, gt = "__LABEL__", xe = "__LABEL__@1";
4773
4773
  function Re(t, e, n2 = {}) {
4774
4774
  const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
4775
4775
  var z2, F;
4776
- const h = e(f2);
4777
- let p2, x2, c2;
4778
- "spec" in h && typeof h.spec == "object" ? (p2 = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : p2 = h;
4779
- const v = (z2 = p2.annotations) == null ? void 0 : z2[ct], g = (F = p2.annotations) == null ? void 0 : F[dt], b = (g ? ft.safeParse(JSON.parse(g)).data : void 0) ?? [], A2 = [
4780
- ...x2 ?? [],
4781
- ...b,
4776
+ const g = e(f2);
4777
+ let h, P, c2;
4778
+ "spec" in g && typeof g.spec == "object" ? (h = g.spec, P = g.prefixTrace, c2 = g.suffixTrace) : h = g;
4779
+ const b = (z2 = h.annotations) == null ? void 0 : z2[ct], m2 = (F = h.annotations) == null ? void 0 : F[pt], w2 = (m2 ? ft.safeParse(JSON.parse(m2)).data : void 0) ?? [], A2 = [
4780
+ ...P ?? [],
4781
+ ...w2,
4782
4782
  ...c2 ?? []
4783
4783
  ];
4784
- if (v) {
4785
- const L = { label: v, type: gt, importance: -2 };
4784
+ if (b) {
4785
+ const L = { label: b, type: gt, importance: -2 };
4786
4786
  n2.addLabelAsSuffix ? A2.push(L) : A2.splice(0, 0, L);
4787
4787
  }
4788
- const D = [], $2 = /* @__PURE__ */ new Map();
4788
+ const D = [], J = /* @__PURE__ */ new Map();
4789
4789
  for (let L = A2.length - 1; L >= 0; --L) {
4790
- const { type: R } = A2[L], se = A2[L].importance ?? 0, J = ($2.get(R) ?? 0) + 1;
4791
- $2.set(R, J);
4792
- const P = `${R}@${J}`;
4793
- i.set(P, (i.get(P) ?? 0) + 1), r.set(
4794
- P,
4790
+ const { type: k2 } = A2[L], se = A2[L].importance ?? 0, N2 = (J.get(k2) ?? 0) + 1;
4791
+ J.set(k2, N2);
4792
+ const x2 = `${k2}@${N2}`;
4793
+ i.set(x2, (i.get(x2) ?? 0) + 1), r.set(
4794
+ x2,
4795
4795
  Math.max(
4796
- r.get(P) ?? Number.NEGATIVE_INFINITY,
4796
+ r.get(x2) ?? Number.NEGATIVE_INFINITY,
4797
4797
  se - (A2.length - L) * ht
4798
4798
  )
4799
- ), D.push({ ...A2[L], fullType: P, occurenceIndex: J });
4799
+ ), D.push({ ...A2[L], fullType: x2, occurenceIndex: N2 });
4800
4800
  }
4801
4801
  return D.reverse(), {
4802
4802
  value: f2,
4803
- spec: p2,
4804
- label: v,
4803
+ spec: h,
4804
+ label: b,
4805
4805
  fullTrace: D
4806
4806
  };
4807
4807
  }), o = [], a = [], l2 = [...r];
4808
- l2.sort(([, f2], [, h]) => h - f2);
4808
+ l2.sort(([, f2], [, g]) => g - f2);
4809
4809
  for (const [f2] of l2)
4810
4810
  f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
4811
4811
  const u2 = (f2) => {
4812
- const h = [];
4813
- for (let p2 = 0; p2 < s2.length; p2++) {
4814
- const x2 = s2[p2], c2 = x2.fullTrace.filter((b) => f2.has(b.fullType));
4812
+ const g = [];
4813
+ for (let h = 0; h < s2.length; h++) {
4814
+ const P = s2[h], c2 = P.fullTrace.filter((w2) => f2.has(w2.fullType));
4815
4815
  if (c2.length === 0)
4816
4816
  return;
4817
- const v = c2.map((b) => b.label), g = n2.separator ?? " / ";
4818
- h.push({
4819
- label: v.join(g),
4820
- value: x2.value
4817
+ const b = c2.map((w2) => w2.label), m2 = n2.separator ?? " / ";
4818
+ g.push({
4819
+ label: b.join(m2),
4820
+ value: P.value
4821
4821
  });
4822
4822
  }
4823
- return h;
4823
+ return g;
4824
4824
  };
4825
4825
  if (o.length === 0) {
4826
4826
  if (a.length !== 0) throw new Error("Assertion error.");
4827
- const f2 = u2(new Set(Pe));
4827
+ const f2 = u2(new Set(xe));
4828
4828
  if (f2 === void 0) throw new Error("Assertion error.");
4829
4829
  return f2;
4830
4830
  }
4831
- let y2 = 0, w2 = 0;
4832
- for (; y2 < o.length; ) {
4831
+ let p2 = 0, v = 0;
4832
+ for (; p2 < o.length; ) {
4833
4833
  const f2 = /* @__PURE__ */ new Set();
4834
- n2.includeNativeLabel && f2.add(Pe);
4835
- for (let p2 = 0; p2 < y2; ++p2) f2.add(o[p2]);
4836
- f2.add(o[w2]);
4837
- const h = u2(f2);
4838
- if (h !== void 0 && new Set(h.map((p2) => p2.label)).size === t.length) return h;
4839
- w2++, w2 >= o.length && (y2++, w2 = y2);
4834
+ n2.includeNativeLabel && f2.add(xe);
4835
+ for (let h = 0; h < p2; ++h) f2.add(o[h]);
4836
+ f2.add(o[v]);
4837
+ const g = u2(f2);
4838
+ if (g !== void 0 && new Set(g.map((h) => h.label)).size === t.length) return g;
4839
+ v++, v >= o.length && (p2++, v = p2);
4840
4840
  }
4841
4841
  const d = u2(/* @__PURE__ */ new Set([...o, ...a]));
4842
4842
  if (d === void 0) throw new Error("Assertion error.");
4843
4843
  return d;
4844
4844
  }
4845
- const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap", B = q + "JsonPartitioned", K = q + "BinaryPartitioned", ke = q + "Partitioned/", ie = ke + "JsonPartitioned", M = ke + "BinaryPartitioned";
4845
+ const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap", M = q + "JsonPartitioned", $ = q + "BinaryPartitioned", ke = q + "Partitioned/", ie = ke + "JsonPartitioned", W = ke + "BinaryPartitioned";
4846
4846
  const fe = (t) => {
4847
4847
  if (t.endsWith(".index"))
4848
4848
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
@@ -4861,33 +4861,33 @@
4861
4861
  case re:
4862
4862
  i = n2.partitionKeyLength + n2.keyLength;
4863
4863
  break;
4864
- case B:
4865
- case K:
4864
+ case M:
4865
+ case $:
4866
4866
  i = n2.partitionKeyLength;
4867
4867
  break;
4868
- case M:
4868
+ case W:
4869
4869
  case ie:
4870
4870
  i = n2.superPartitionKeyLength + n2.partitionKeyLength;
4871
4871
  break;
4872
4872
  }
4873
4873
  switch (e) {
4874
4874
  case ne:
4875
- case B:
4876
- case K:
4875
+ case M:
4876
+ case $:
4877
4877
  for (let s2 of t.listInputFields()) {
4878
- e === K && (s2 = fe(s2).baseKey);
4878
+ e === $ && (s2 = fe(s2).baseKey);
4879
4879
  const o = [...JSON.parse(s2)];
4880
4880
  r.push(o);
4881
4881
  }
4882
4882
  break;
4883
4883
  case re:
4884
- case M:
4884
+ case W:
4885
4885
  case ie:
4886
4886
  for (const s2 of t.listInputFields()) {
4887
4887
  const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
4888
4888
  if (a !== void 0)
4889
4889
  for (let l2 of a.listInputFields()) {
4890
- e === M && (l2 = fe(l2).baseKey);
4890
+ e === W && (l2 = fe(l2).baseKey);
4891
4891
  const u2 = [...o, ...JSON.parse(l2)];
4892
4892
  r.push(u2);
4893
4893
  }
@@ -4935,13 +4935,13 @@
4935
4935
  function he(t, e = []) {
4936
4936
  if (t === void 0 || !t.getIsReadyOrError()) return;
4937
4937
  const n2 = t.resourceType.name, r = t.getDataAsJson();
4938
- if (e.length > 0 && (n2 === ie || n2 === M))
4938
+ if (e.length > 0 && (n2 === ie || n2 === W))
4939
4939
  throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
4940
4940
  switch (n2) {
4941
4941
  case ne:
4942
4942
  case re:
4943
4943
  throw new Error(`Only data columns are supported, got: ${n2}`);
4944
- case B: {
4944
+ case M: {
4945
4945
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4946
4946
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4947
4947
  const i = [];
@@ -4957,7 +4957,7 @@
4957
4957
  parts: i
4958
4958
  };
4959
4959
  }
4960
- case K: {
4960
+ case $: {
4961
4961
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4962
4962
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4963
4963
  const i = [], s2 = /* @__PURE__ */ new Map();
@@ -4991,8 +4991,8 @@
4991
4991
  for (const o of t.listInputFields()) {
4992
4992
  const a = t.resolve({ field: o, assertFieldType: "Input" });
4993
4993
  if (a === void 0) return;
4994
- if (a.resourceType.name !== B)
4995
- throw new Error(`Expected ${B} inside ${n2}, but got ${a.resourceType.name}`);
4994
+ if (a.resourceType.name !== M)
4995
+ throw new Error(`Expected ${M} inside ${n2}, but got ${a.resourceType.name}`);
4996
4996
  const l2 = he(a, JSON.parse(o));
4997
4997
  if (l2 === void 0) return;
4998
4998
  if (l2.type !== "JsonPartitioned")
@@ -5005,15 +5005,15 @@
5005
5005
  parts: s2
5006
5006
  };
5007
5007
  }
5008
- case M: {
5008
+ case W: {
5009
5009
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
5010
5010
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
5011
5011
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
5012
5012
  for (const o of t.listInputFields()) {
5013
5013
  const a = t.resolve({ field: o, assertFieldType: "Input" });
5014
5014
  if (a === void 0) return;
5015
- if (a.resourceType.name !== K)
5016
- throw new Error(`Expected ${K} inside ${n2}, but got ${a.resourceType.name}`);
5015
+ if (a.resourceType.name !== $)
5016
+ throw new Error(`Expected ${$} inside ${n2}, but got ${a.resourceType.name}`);
5017
5017
  const l2 = he(a, JSON.parse(o));
5018
5018
  if (l2 === void 0) return;
5019
5019
  if (l2.type !== "BinaryPartitioned")
@@ -5107,7 +5107,7 @@
5107
5107
  return this.columns.filter((r) => n2(r.spec));
5108
5108
  }
5109
5109
  }
5110
- function Pt(t) {
5110
+ function xt(t) {
5111
5111
  if (t)
5112
5112
  return t.map((e) => ({
5113
5113
  type: `split:${Jn(e.axisId)}`,
@@ -5116,16 +5116,16 @@
5116
5116
  // High importance for split filters in labels
5117
5117
  }));
5118
5118
  }
5119
- function xt(t) {
5119
+ function Pt(t) {
5120
5120
  if (t)
5121
5121
  return t.map((e) => [e.axisIdx, e.value]);
5122
5122
  }
5123
- function St(t, e) {
5123
+ function Ct(t, e) {
5124
5124
  if (!e || e.length === 0) return t;
5125
5125
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5126
5126
  return Le({ id: t, axisFilters: n2 });
5127
5127
  }
5128
- function Ct(t) {
5128
+ function St(t) {
5129
5129
  if (!t || typeof t != "object") return false;
5130
5130
  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);
5131
5131
  return !!e.domainAnchor || n2 || r;
@@ -5169,112 +5169,112 @@
5169
5169
  ...i ?? {}
5170
5170
  }, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
5171
5171
  for (const d of l2) {
5172
- const f$1 = Ct(d);
5173
- let h;
5172
+ const f$1 = St(d);
5173
+ let g;
5174
5174
  if (f$1) {
5175
5175
  if (!r)
5176
5176
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5177
- h = Dn(r.anchors, d, n2);
5177
+ g = Dn(r.anchors, d, n2);
5178
5178
  } else
5179
- h = d;
5180
- const p2 = /* @__PURE__ */ new Set(), x2 = [];
5181
- for (const g of this.providers) {
5182
- const b = g.selectColumns(h);
5183
- for (const A2 of b) {
5184
- if (p2.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
5185
- p2.add(A2.id), x2.push(A2);
5179
+ g = d;
5180
+ const h = /* @__PURE__ */ new Set(), P = [];
5181
+ for (const m2 of this.providers) {
5182
+ const w2 = m2.selectColumns(g);
5183
+ for (const A2 of w2) {
5184
+ if (h.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${m2.constructor.name}`);
5185
+ h.add(A2.id), P.push(A2);
5186
5186
  }
5187
5187
  }
5188
- if (x2.length === 0) continue;
5189
- const c2 = _t(d), v = c2.length > 0;
5190
- for (const g of x2) {
5191
- if (!f(g.spec)) continue;
5192
- const b = g.spec;
5193
- if (v) {
5194
- const A2 = bt(g.data);
5188
+ if (P.length === 0) continue;
5189
+ const c2 = _t(d), b = c2.length > 0;
5190
+ for (const m2 of P) {
5191
+ if (!f(m2.spec)) continue;
5192
+ const w2 = m2.spec;
5193
+ if (b) {
5194
+ const A2 = bt(m2.data);
5195
5195
  if (!A2) {
5196
5196
  if (s2) continue;
5197
5197
  return;
5198
5198
  }
5199
5199
  if (!yn(A2))
5200
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${g.id}`);
5201
- const D = vt(A2), $2 = c2[c2.length - 1];
5202
- if ($2 >= A2.partitionKeyLength)
5203
- throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${b.name}`);
5204
- const z2 = c2.map((P) => this.findLabels(m$2(b.axesSpec[P]))), F = [], L = (P, N2) => {
5205
- if (N2 >= c2.length) {
5206
- if (F.push([...P]), F.length > 1e4)
5200
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${m2.id}`);
5201
+ const D = vt(A2), J = c2[c2.length - 1];
5202
+ if (J >= A2.partitionKeyLength)
5203
+ throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${J}) in column ${w2.name}`);
5204
+ const z2 = c2.map((x2) => this.findLabels(m$1(w2.axesSpec[x2]))), F = [], L = (x2, U) => {
5205
+ if (U >= c2.length) {
5206
+ if (F.push([...x2]), F.length > 1e4)
5207
5207
  throw new Error("Too many key combinations, aborting.");
5208
5208
  return;
5209
5209
  }
5210
- const O = c2[N2];
5210
+ const O = c2[U];
5211
5211
  if (O >= D.length)
5212
- throw new Error(`Axis index ${O} out of bounds for unique keys array (length ${D.length}) during split key generation for column ${g.id}`);
5213
- const k2 = D[O];
5214
- if (!k2 || k2.length === 0) {
5212
+ throw new Error(`Axis index ${O} out of bounds for unique keys array (length ${D.length}) during split key generation for column ${m2.id}`);
5213
+ const j2 = D[O];
5214
+ if (!j2 || j2.length === 0) {
5215
5215
  F.length = 0;
5216
5216
  return;
5217
5217
  }
5218
- for (const Y2 of k2)
5219
- P.push(Y2), L(P, N2 + 1), P.pop();
5218
+ for (const Y2 of j2)
5219
+ x2.push(Y2), L(x2, U + 1), x2.pop();
5220
5220
  };
5221
5221
  if (L([], 0), F.length === 0)
5222
5222
  continue;
5223
- const R = [...b.axesSpec], se = c2.map((P) => P);
5224
- for (let P = c2.length - 1; P >= 0; P--)
5225
- R.splice(c2[P], 1);
5226
- const J = { ...b, axesSpec: R };
5227
- for (const P of F) {
5228
- const N2 = P.map((O, k2) => {
5229
- const Y2 = se[k2], Ue = m$2(b.axesSpec[Y2]), oe = z2[k2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5223
+ const k2 = [...w2.axesSpec], se = c2.map((x2) => x2);
5224
+ for (let x2 = c2.length - 1; x2 >= 0; x2--)
5225
+ k2.splice(c2[x2], 1);
5226
+ const N2 = { ...w2, axesSpec: k2 };
5227
+ for (const x2 of F) {
5228
+ const U = x2.map((O, j2) => {
5229
+ const Y2 = se[j2], Ue = m$1(w2.axesSpec[Y2]), oe = z2[j2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5230
5230
  return { axisIdx: Y2, axisId: Ue, value: O, label: Be };
5231
5231
  });
5232
5232
  u2.push({
5233
5233
  type: "split",
5234
- originalColumn: g,
5235
- spec: b,
5236
- adjustedSpec: J,
5234
+ originalColumn: m2,
5235
+ spec: w2,
5236
+ adjustedSpec: N2,
5237
5237
  dataEntries: A2,
5238
- axisFilters: N2
5238
+ axisFilters: U
5239
5239
  });
5240
5240
  }
5241
5241
  } else
5242
5242
  u2.push({
5243
5243
  type: "direct",
5244
- originalColumn: g,
5245
- spec: b,
5246
- adjustedSpec: b
5244
+ originalColumn: m2,
5245
+ spec: w2,
5246
+ adjustedSpec: w2
5247
5247
  });
5248
5248
  }
5249
5249
  }
5250
5250
  if (u2.length === 0) return [];
5251
- const y2 = Re(
5251
+ const p2 = Re(
5252
5252
  u2,
5253
5253
  (d) => ({
5254
5254
  spec: d.spec,
5255
- suffixTrace: d.type === "split" ? Pt(d.axisFilters) : void 0
5255
+ suffixTrace: d.type === "split" ? xt(d.axisFilters) : void 0
5256
5256
  }),
5257
5257
  a
5258
- ), w2 = [];
5259
- for (const { value: d, label: f2 } of y2) {
5260
- const { originalColumn: h, spec: p2 } = d, x2 = d.type === "split" ? d.axisFilters : void 0, c2 = xt(x2);
5261
- let v;
5262
- r ? v = r.deriveS(p2, c2) : v = St(h.id, c2);
5263
- let g = { ...d.adjustedSpec };
5264
- o && (g = {
5265
- ...g,
5258
+ ), v = [];
5259
+ for (const { value: d, label: f2 } of p2) {
5260
+ const { originalColumn: g, spec: h } = d, P = d.type === "split" ? d.axisFilters : void 0, c2 = Pt(P);
5261
+ let b;
5262
+ r ? b = r.deriveS(h, c2) : b = Ct(g.id, c2);
5263
+ let m2 = { ...d.adjustedSpec };
5264
+ o && (m2 = {
5265
+ ...m2,
5266
5266
  annotations: {
5267
- ...g.annotations ?? {},
5267
+ ...m2.annotations ?? {},
5268
5268
  "pl7.app/label": f2
5269
5269
  }
5270
- }), w2.push({
5271
- id: v,
5272
- spec: g,
5270
+ }), v.push({
5271
+ id: b,
5272
+ spec: m2,
5273
5273
  data: () => d.type === "split" ? gn(wt(d.dataEntries, c2)) : d.originalColumn.data,
5274
5274
  label: f2
5275
5275
  });
5276
5276
  }
5277
- return w2;
5277
+ return v;
5278
5278
  }
5279
5279
  getColumns(e, n2) {
5280
5280
  const r = this.getUniversalEntries(e, {
@@ -5306,12 +5306,12 @@
5306
5306
  if (t[n2] !== e[n2]) return false;
5307
5307
  return true;
5308
5308
  }
5309
- function xe(t) {
5309
+ function Pe(t) {
5310
5310
  return Fn(t, (e) => e instanceof I ? e.handle : mn(e) ? ln(e, (n2) => n2.handle) : e);
5311
5311
  }
5312
5312
  class It {
5313
5313
  constructor() {
5314
- T(this, "ctx", m());
5314
+ T(this, "ctx", y());
5315
5315
  }
5316
5316
  /**
5317
5317
  * @deprecated use getOptions()
@@ -5585,7 +5585,7 @@
5585
5585
  T(this, "uiState");
5586
5586
  T(this, "_activeArgsCache");
5587
5587
  T(this, "resultPool", new It());
5588
- this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5588
+ this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5589
5589
  }
5590
5590
  /**
5591
5591
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -5601,7 +5601,7 @@
5601
5601
  // return this.ctx.featureFlags;
5602
5602
  // }
5603
5603
  getNamedAccessor(e) {
5604
- return de(
5604
+ return pe(
5605
5605
  this.ctx.getAccessorHandleByName(e),
5606
5606
  (n2) => new I(n2, [e])
5607
5607
  );
@@ -5628,7 +5628,7 @@
5628
5628
  // TODO remove all non-PColumn fields
5629
5629
  createPFrame(e) {
5630
5630
  return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
5631
- e.map((n2) => xe(n2))
5631
+ e.map((n2) => Pe(n2))
5632
5632
  );
5633
5633
  }
5634
5634
  createPTable(e) {
@@ -5641,7 +5641,7 @@
5641
5641
  filters: e.filters ?? [],
5642
5642
  sorting: e.sorting ?? []
5643
5643
  } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Un(n2.src)), this.ctx.createPTable(
5644
- On(n2, (r) => xe(r))
5644
+ On(n2, (r) => Pe(r))
5645
5645
  );
5646
5646
  }
5647
5647
  /** @deprecated scheduled for removal from SDK */
@@ -5652,7 +5652,7 @@
5652
5652
  return this.ctx.getCurrentUnstableMarker();
5653
5653
  }
5654
5654
  }
5655
- const W = "1.30.3";
5655
+ const G = "1.30.11";
5656
5656
  function Lt(t) {
5657
5657
  return t.__renderLambda === true;
5658
5658
  }
@@ -5679,7 +5679,7 @@
5679
5679
  output(e, n2, r = {}) {
5680
5680
  if (typeof n2 == "function") {
5681
5681
  const i = `output#${e}`;
5682
- return U(i, () => n2(new X())), new _(
5682
+ return B(i, () => n2(new X())), new _(
5683
5683
  this._renderingMode,
5684
5684
  this._initialArgs,
5685
5685
  this._initialUiState,
@@ -5716,7 +5716,7 @@
5716
5716
  return this.output(e, n2, { retentive: true });
5717
5717
  }
5718
5718
  argsValid(e) {
5719
- return typeof e == "function" ? (U("inputsValid", () => e(new X())), new _(
5719
+ return typeof e == "function" ? (B("inputsValid", () => e(new X())), new _(
5720
5720
  this._renderingMode,
5721
5721
  this._initialArgs,
5722
5722
  this._initialUiState,
@@ -5740,7 +5740,7 @@
5740
5740
  );
5741
5741
  }
5742
5742
  sections(e) {
5743
- return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (U("sections", () => e(new X())), new _(
5743
+ return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (B("sections", () => e(new X())), new _(
5744
5744
  this._renderingMode,
5745
5745
  this._initialArgs,
5746
5746
  this._initialUiState,
@@ -5762,7 +5762,7 @@
5762
5762
  }
5763
5763
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
5764
5764
  title(e) {
5765
- return U("title", () => e(new X())), new _(
5765
+ return B("title", () => e(new X())), new _(
5766
5766
  this._renderingMode,
5767
5767
  this._initialArgs,
5768
5768
  this._initialUiState,
@@ -5820,7 +5820,7 @@
5820
5820
  * Influences dependency graph construction.
5821
5821
  */
5822
5822
  enriches(e) {
5823
- return U("enrichmentTargets", e), new _(
5823
+ return B("enrichmentTargets", e), new _(
5824
5824
  this._renderingMode,
5825
5825
  this._initialArgs,
5826
5826
  this._initialUiState,
@@ -5838,7 +5838,7 @@
5838
5838
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
5839
5839
  const e = {
5840
5840
  v3: {
5841
- sdkVersion: W,
5841
+ sdkVersion: G,
5842
5842
  renderingMode: this._renderingMode,
5843
5843
  initialArgs: this._initialArgs,
5844
5844
  initialUiState: this._initialUiState,
@@ -5849,7 +5849,7 @@
5849
5849
  enrichmentTargets: this._enrichmentTargets
5850
5850
  },
5851
5851
  // fields below are added to allow previous desktop versions read generated configs
5852
- sdkVersion: W,
5852
+ sdkVersion: G,
5853
5853
  renderingMode: this._renderingMode,
5854
5854
  initialArgs: this._initialArgs,
5855
5855
  inputsValid: ue(this._inputsValid),
@@ -5858,12 +5858,15 @@
5858
5858
  Object.entries(this._outputs).map(([n2, r]) => [n2, ue(r)])
5859
5859
  )
5860
5860
  };
5861
- return st() ? Ee({ sdkVersion: W }) : { config: e };
5861
+ return st() ? Ee({ sdkVersion: G }) : { config: e };
5862
5862
  }
5863
5863
  }
5864
5864
  function Tt(t) {
5865
5865
  return JSON.parse(t);
5866
5866
  }
5867
+ function Et(t) {
5868
+ return t.axesSpec.length === 1 && t.name === "pl7.app/label";
5869
+ }
5867
5870
  function Ve(t) {
5868
5871
  return new ge().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
5869
5872
  name: "pl7.app/label",
@@ -5872,36 +5875,41 @@
5872
5875
  }, { dontWaitAllData: true });
5873
5876
  }
5874
5877
  function Ke(t, e) {
5875
- const n2 = (i, s2) => {
5876
- let o = i.toString();
5877
- if (s2)
5878
- for (const a in s2)
5879
- o += a, o += s2[a];
5880
- return o;
5881
- }, r = /* @__PURE__ */ new Map();
5882
- for (const i of t)
5883
- for (const s2 of i.spec.axesSpec) {
5884
- const o = m$2(s2);
5885
- for (const a of e) {
5886
- const l2 = a.spec.axesSpec[0], u2 = m$2(a.spec.axesSpec[0]);
5887
- if (X$1(o, u2)) {
5888
- const y2 = Object.keys(o.domain ?? {}).length, w2 = Object.keys(u2.domain ?? {}).length;
5889
- if (y2 > w2) {
5890
- const d = n2(a.id, o.domain);
5891
- r.set(d, {
5892
- id: d,
5893
- spec: {
5894
- ...a.spec,
5895
- axesSpec: [{ ...o, annotations: l2.annotations }]
5896
- },
5897
- data: a.data
5898
- });
5899
- } else
5900
- r.set(n2(a.id), a);
5901
- }
5902
- }
5878
+ const n2 = [], r = [];
5879
+ for (const a of t)
5880
+ Et(a.spec) ? n2.push(a) : r.push(a);
5881
+ const i = [];
5882
+ for (const a of r)
5883
+ for (const l2 of a.spec.axesSpec) {
5884
+ const u2 = m$1(l2);
5885
+ i.some((p2) => X$1(p2, u2)) || i.push(u2);
5886
+ }
5887
+ for (const a of n2) {
5888
+ const l2 = m$1(a.spec.axesSpec[0]), u2 = i.findIndex((p2) => X$1(p2, l2));
5889
+ u2 !== -1 && i.splice(u2, 1);
5890
+ }
5891
+ const s2 = (a, l2) => {
5892
+ let u2 = a.toString();
5893
+ if (l2)
5894
+ for (const p2 in l2)
5895
+ u2 += p2, u2 += l2[p2];
5896
+ return u2;
5897
+ }, o = [];
5898
+ for (const a of e) {
5899
+ const l2 = a.spec.axesSpec[0], u2 = m$1(l2), p2 = i.findIndex((v) => X$1(v, u2));
5900
+ if (p2 !== -1) {
5901
+ const v = i[p2], d = Object.keys(v.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
5902
+ d > f2 ? o.push({
5903
+ id: s2(a.id, v.domain),
5904
+ spec: {
5905
+ ...a.spec,
5906
+ axesSpec: [{ ...v, annotations: l2.annotations }]
5907
+ },
5908
+ data: a.data
5909
+ }) : o.push(a), i.splice(p2, 1);
5903
5910
  }
5904
- return [...r.values()];
5911
+ }
5912
+ return o;
5905
5913
  }
5906
5914
  function $e(t) {
5907
5915
  const e = (i) => Array.isArray(i), n2 = (i) => i instanceof I, r = (i) => typeof i == "object" && "type" in i;
@@ -5944,38 +5952,38 @@
5944
5952
  sorting: i
5945
5953
  };
5946
5954
  }
5947
- function Cn(t, e, n2, r) {
5948
- var u2, y2;
5955
+ function Sn(t, e, n2, r) {
5956
+ var u2, p2;
5949
5957
  Array.isArray(r) && (r = { filters: r });
5950
- const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((y2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : y2.sorting) ?? [], a = Ve(t.resultPool);
5958
+ const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((p2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : p2.sorting) ?? [], a = Ve(t.resultPool);
5951
5959
  if (!a) return;
5952
- const l2 = Ke(e.map(Cn$1), a);
5960
+ const l2 = Ke(e.map(Cn), a);
5953
5961
  if ($e([...e, ...l2]))
5954
5962
  return t.createPTable(
5955
5963
  Je(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
5956
5964
  );
5957
5965
  }
5958
- function Et(t) {
5966
+ function Ft(t) {
5959
5967
  var e;
5960
5968
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
5961
5969
  }
5962
5970
  function _n(t, e, n2, r, i) {
5963
- var p2, x2;
5964
- const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((p2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : p2.filters) ?? []], a = ((x2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : x2.sorting) ?? [], l2 = e.find((c2) => n2(c2.spec));
5971
+ var h, P;
5972
+ const s2 = (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) ?? [], l2 = e.find((c2) => n2(c2.spec));
5965
5973
  if (!l2) return;
5966
5974
  const u2 = Ve(t.resultPool);
5967
5975
  if (!u2) return;
5968
- const y2 = new Set((() => {
5969
- var v, g;
5976
+ const p2 = new Set((() => {
5977
+ var b, m2;
5970
5978
  if (s2 === "inner") return [];
5971
- const c2 = (g = (v = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : v.hiddenColIds) == null ? void 0 : g.map(Tt).filter((b) => b.type === "column").map((b) => b.id);
5972
- return c2 || e.filter((b) => Et(b.spec)).map((b) => b.id);
5979
+ const c2 = (m2 = (b = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : b.hiddenColIds) == null ? void 0 : m2.map(Tt).filter((w2) => w2.type === "column").map((w2) => w2.id);
5980
+ return c2 || e.filter((w2) => Ft(w2.spec)).map((w2) => w2.id);
5973
5981
  })());
5974
- y2.delete(l2.id), [...o.map((c2) => c2.column), ...a.map((c2) => c2.column)].filter((c2) => c2.type === "column").map((c2) => y2.delete(c2.id));
5975
- const w2 = e.filter((c2) => !y2.has(c2.id)), d = Ke(w2.map(Cn$1), u2), f2 = [
5982
+ p2.delete(l2.id), [...o.map((c2) => c2.column), ...a.map((c2) => c2.column)].filter((c2) => c2.type === "column").map((c2) => p2.delete(c2.id));
5983
+ const v = e.filter((c2) => !p2.has(c2.id)), d = Ke(v.map(Cn), u2), f2 = [
5976
5984
  ...l2.spec.axesSpec.map((c2) => ({
5977
5985
  type: "axis",
5978
- id: m$2(c2),
5986
+ id: m$1(c2),
5979
5987
  spec: c2
5980
5988
  })),
5981
5989
  ...[...e, ...d].map((c2) => ({
@@ -5984,13 +5992,13 @@
5984
5992
  spec: c2.spec
5985
5993
  }))
5986
5994
  ];
5987
- if (!$e([...w2, ...d])) return;
5988
- const h = t.createPTable(
5995
+ if (!$e([...v, ...d])) return;
5996
+ const g = t.createPTable(
5989
5997
  Je(e, d, s2, o, a, i == null ? void 0 : i.coreColumnPredicate)
5990
5998
  );
5991
5999
  return {
5992
6000
  tableSpec: f2,
5993
- tableHandle: h
6001
+ tableHandle: g
5994
6002
  };
5995
6003
  }
5996
6004
  const ImportFileHandleSchema = z$1.string().optional().refine(
@@ -6039,7 +6047,7 @@
6039
6047
  val: v.toString()
6040
6048
  };
6041
6049
  });
6042
- return Cn(
6050
+ return Sn(
6043
6051
  ctx,
6044
6052
  [
6045
6053
  {