@platforma-open/milaboratories.repertoire-diversity-2.model 1.3.0 → 1.3.1
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/bundle.js +160 -154
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/work/repertoire-diversity/repertoire-diversity/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @platforma-open/milaboratories.repertoire-diversity-2.model@1.3.
|
|
3
|
+
> @platforma-open/milaboratories.repertoire-diversity-2.model@1.3.1 build /home/runner/work/repertoire-diversity/repertoire-diversity/model
|
|
4
4
|
> tsup && vite build && block-tools build-model
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
+
[34mDTS[39m Build start
|
|
14
15
|
[32mESM[39m [1mdist/index.js [22m[32m2.38 KB[39m
|
|
15
16
|
[32mESM[39m [1mdist/index.js.map [22m[32m6.07 KB[39m
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
17
|
+
[32mESM[39m ⚡️ Build success in 306ms
|
|
17
18
|
[32mCJS[39m [1mdist/index.cjs [22m[32m2.38 KB[39m
|
|
18
19
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m6.13 KB[39m
|
|
19
|
-
[32mCJS[39m ⚡️ Build success in
|
|
20
|
-
[
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in 2218ms
|
|
20
|
+
[32mCJS[39m ⚡️ Build success in 307ms
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 3198ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.49 KB[39m
|
|
23
23
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.49 KB[39m
|
|
24
24
|
[36mvite v6.2.6 [32mbuilding for production...[36m[39m
|
|
@@ -26,6 +26,6 @@ transforming...
|
|
|
26
26
|
[32m✓[39m 11 modules transformed.
|
|
27
27
|
rendering chunks...
|
|
28
28
|
computing gzip size...
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m189.
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m202.
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m189.23 kB[22m[1m[22m[2m │ gzip: 36.91 kB[22m[2m │ map: 405.74 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m202.24 kB[22m[1m[22m[2m │ gzip: 37.57 kB[22m[2m │ map: 407.31 kB[22m
|
|
31
|
+
[32m✓ built in 832ms[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -4507,12 +4507,12 @@
|
|
|
4507
4507
|
}), c = l.extend({
|
|
4508
4508
|
cause: z$1.lazy(() => s).optional(),
|
|
4509
4509
|
errors: z$1.lazy(() => s.array()).optional()
|
|
4510
|
-
}), m
|
|
4510
|
+
}), m = z$1.object({
|
|
4511
4511
|
type: z$1.literal("StandardError"),
|
|
4512
4512
|
name: z$1.string(),
|
|
4513
4513
|
message: z$1.string(),
|
|
4514
4514
|
stack: z$1.string().optional()
|
|
4515
|
-
}), p = m
|
|
4515
|
+
}), p = m.extend({
|
|
4516
4516
|
cause: z$1.lazy(() => s).optional(),
|
|
4517
4517
|
errors: z$1.lazy(() => s.array()).optional()
|
|
4518
4518
|
}), s = z$1.union([p, c]);
|
|
@@ -4543,7 +4543,7 @@
|
|
|
4543
4543
|
function ft() {
|
|
4544
4544
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4545
4545
|
}
|
|
4546
|
-
function
|
|
4546
|
+
function y() {
|
|
4547
4547
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4548
4548
|
throw new Error("Not in config rendering context");
|
|
4549
4549
|
}
|
|
@@ -4555,7 +4555,7 @@
|
|
|
4555
4555
|
}
|
|
4556
4556
|
const ce = /* @__PURE__ */ new Map();
|
|
4557
4557
|
function ht(t, e) {
|
|
4558
|
-
t in
|
|
4558
|
+
t in y().callbackRegistry || (y().callbackRegistry[t] = (n2) => {
|
|
4559
4559
|
for (const r of ce.get(t))
|
|
4560
4560
|
r(n2);
|
|
4561
4561
|
}, ce.set(t, [])), ce.get(t).push(e);
|
|
@@ -4624,46 +4624,46 @@
|
|
|
4624
4624
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4625
4625
|
];
|
|
4626
4626
|
return he(
|
|
4627
|
-
|
|
4627
|
+
y().resolveWithCommon(this.handle, e, ...n2),
|
|
4628
4628
|
(i) => new E(i, r)
|
|
4629
4629
|
);
|
|
4630
4630
|
}
|
|
4631
4631
|
get resourceType() {
|
|
4632
|
-
return
|
|
4632
|
+
return y().getResourceType(this.handle);
|
|
4633
4633
|
}
|
|
4634
4634
|
getInputsLocked() {
|
|
4635
|
-
return
|
|
4635
|
+
return y().getInputsLocked(this.handle);
|
|
4636
4636
|
}
|
|
4637
4637
|
getOutputsLocked() {
|
|
4638
|
-
return
|
|
4638
|
+
return y().getOutputsLocked(this.handle);
|
|
4639
4639
|
}
|
|
4640
4640
|
getIsReadyOrError() {
|
|
4641
|
-
return
|
|
4641
|
+
return y().getIsReadyOrError(this.handle);
|
|
4642
4642
|
}
|
|
4643
4643
|
getIsFinal() {
|
|
4644
|
-
return
|
|
4644
|
+
return y().getIsFinal(this.handle);
|
|
4645
4645
|
}
|
|
4646
4646
|
getError() {
|
|
4647
4647
|
const e = [...this.resolvePath, "error"];
|
|
4648
4648
|
return he(
|
|
4649
|
-
|
|
4649
|
+
y().getError(this.handle),
|
|
4650
4650
|
(n2) => new E(n2, e)
|
|
4651
4651
|
);
|
|
4652
4652
|
}
|
|
4653
4653
|
listInputFields() {
|
|
4654
|
-
return
|
|
4654
|
+
return y().listInputFields(this.handle);
|
|
4655
4655
|
}
|
|
4656
4656
|
listOutputFields() {
|
|
4657
|
-
return
|
|
4657
|
+
return y().listOutputFields(this.handle);
|
|
4658
4658
|
}
|
|
4659
4659
|
listDynamicFields() {
|
|
4660
|
-
return
|
|
4660
|
+
return y().listDynamicFields(this.handle);
|
|
4661
4661
|
}
|
|
4662
4662
|
getKeyValueBase64(e) {
|
|
4663
|
-
return
|
|
4663
|
+
return y().getKeyValueBase64(this.handle, e);
|
|
4664
4664
|
}
|
|
4665
4665
|
getKeyValueAsString(e) {
|
|
4666
|
-
return
|
|
4666
|
+
return y().getKeyValueAsString(this.handle, e);
|
|
4667
4667
|
}
|
|
4668
4668
|
getKeyValueAsJson(e) {
|
|
4669
4669
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4671,10 +4671,10 @@
|
|
|
4671
4671
|
return JSON.parse(n2);
|
|
4672
4672
|
}
|
|
4673
4673
|
getDataBase64() {
|
|
4674
|
-
return
|
|
4674
|
+
return y().getDataBase64(this.handle);
|
|
4675
4675
|
}
|
|
4676
4676
|
getDataAsString() {
|
|
4677
|
-
return
|
|
4677
|
+
return y().getDataAsString(this.handle);
|
|
4678
4678
|
}
|
|
4679
4679
|
getDataAsJson() {
|
|
4680
4680
|
const e = this.getDataAsString();
|
|
@@ -4695,7 +4695,7 @@
|
|
|
4695
4695
|
*
|
|
4696
4696
|
*/
|
|
4697
4697
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4698
|
-
const r =
|
|
4698
|
+
const r = y().parsePObjectCollection(
|
|
4699
4699
|
this.handle,
|
|
4700
4700
|
e,
|
|
4701
4701
|
n2,
|
|
@@ -4710,14 +4710,14 @@
|
|
|
4710
4710
|
return i;
|
|
4711
4711
|
}
|
|
4712
4712
|
getFileContentAsBase64(e) {
|
|
4713
|
-
return new _(
|
|
4713
|
+
return new _(y().getBlobContentAsBase64(this.handle, e));
|
|
4714
4714
|
}
|
|
4715
4715
|
getFileContentAsString(e) {
|
|
4716
|
-
return new _(
|
|
4716
|
+
return new _(y().getBlobContentAsString(this.handle, e));
|
|
4717
4717
|
}
|
|
4718
4718
|
getFileContentAsJson(e) {
|
|
4719
4719
|
return new _(
|
|
4720
|
-
|
|
4720
|
+
y().getBlobContentAsString(this.handle, e)
|
|
4721
4721
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4722
4722
|
}
|
|
4723
4723
|
/**
|
|
@@ -4736,7 +4736,7 @@
|
|
|
4736
4736
|
* @returns downloaded file handle
|
|
4737
4737
|
*/
|
|
4738
4738
|
getFileHandle() {
|
|
4739
|
-
return new _(
|
|
4739
|
+
return new _(y().getDownloadedBlobContentHandle(this.handle));
|
|
4740
4740
|
}
|
|
4741
4741
|
/**
|
|
4742
4742
|
* @deprecated use getFileHandle
|
|
@@ -4748,7 +4748,7 @@
|
|
|
4748
4748
|
* @returns downloaded file handle
|
|
4749
4749
|
*/
|
|
4750
4750
|
getRemoteFileHandle() {
|
|
4751
|
-
return new _(
|
|
4751
|
+
return new _(y().getOnDemandBlobContentHandle(this.handle));
|
|
4752
4752
|
}
|
|
4753
4753
|
/**
|
|
4754
4754
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4760,22 +4760,22 @@
|
|
|
4760
4760
|
* @returns the url to the extracted folder
|
|
4761
4761
|
*/
|
|
4762
4762
|
extractArchiveAndGetURL(e) {
|
|
4763
|
-
return new _(
|
|
4763
|
+
return new _(y().extractArchiveAndGetURL(this.handle, e));
|
|
4764
4764
|
}
|
|
4765
4765
|
getImportProgress() {
|
|
4766
|
-
return new _(
|
|
4766
|
+
return new _(y().getImportProgress(this.handle));
|
|
4767
4767
|
}
|
|
4768
4768
|
getLastLogs(e) {
|
|
4769
|
-
return new _(
|
|
4769
|
+
return new _(y().getLastLogs(this.handle, e));
|
|
4770
4770
|
}
|
|
4771
4771
|
getProgressLog(e) {
|
|
4772
|
-
return new _(
|
|
4772
|
+
return new _(y().getProgressLog(this.handle, e));
|
|
4773
4773
|
}
|
|
4774
4774
|
getProgressLogWithInfo(e) {
|
|
4775
|
-
return new _(
|
|
4775
|
+
return new _(y().getProgressLogWithInfo(this.handle, e));
|
|
4776
4776
|
}
|
|
4777
4777
|
getLogHandle() {
|
|
4778
|
-
return new _(
|
|
4778
|
+
return new _(y().getLogHandle(this.handle));
|
|
4779
4779
|
}
|
|
4780
4780
|
allFieldsResolved(e = "Input") {
|
|
4781
4781
|
switch (e) {
|
|
@@ -4812,75 +4812,75 @@
|
|
|
4812
4812
|
label: z$1.string()
|
|
4813
4813
|
}), wt = z$1.array(bt), At = 1e-3, xt = "__LABEL__", Pe = "__LABEL__@1";
|
|
4814
4814
|
function je(t, e, n2 = {}) {
|
|
4815
|
-
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((
|
|
4815
|
+
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((p2) => {
|
|
4816
4816
|
var P2, R;
|
|
4817
|
-
const
|
|
4818
|
-
let
|
|
4819
|
-
"spec" in
|
|
4820
|
-
const h2 = (P2 =
|
|
4821
|
-
...
|
|
4817
|
+
const v = e(p2);
|
|
4818
|
+
let f2, m2, w2;
|
|
4819
|
+
"spec" in v && typeof v.spec == "object" ? (f2 = v.spec, m2 = v.prefixTrace, w2 = v.suffixTrace) : f2 = v;
|
|
4820
|
+
const h2 = (P2 = f2.annotations) == null ? void 0 : P2[yt], I = (R = f2.annotations) == null ? void 0 : R[vt], x = (I ? wt.safeParse(JSON.parse(I)).data : void 0) ?? [], b = [
|
|
4821
|
+
...m2 ?? [],
|
|
4822
4822
|
...x,
|
|
4823
|
-
...
|
|
4823
|
+
...w2 ?? []
|
|
4824
4824
|
];
|
|
4825
4825
|
if (h2 !== void 0) {
|
|
4826
4826
|
const k2 = { label: h2, type: xt, importance: -2 };
|
|
4827
|
-
n2.addLabelAsSuffix ?
|
|
4827
|
+
n2.addLabelAsSuffix ? b.push(k2) : b.splice(0, 0, k2);
|
|
4828
4828
|
}
|
|
4829
4829
|
const A = [], L = /* @__PURE__ */ new Map();
|
|
4830
|
-
for (let k2 =
|
|
4831
|
-
const { type: W } =
|
|
4832
|
-
L.set(W,
|
|
4833
|
-
const F = `${W}@${
|
|
4830
|
+
for (let k2 = b.length - 1; k2 >= 0; --k2) {
|
|
4831
|
+
const { type: W } = b[k2], V = b[k2].importance ?? 0, N2 = (L.get(W) ?? 0) + 1;
|
|
4832
|
+
L.set(W, N2);
|
|
4833
|
+
const F = `${W}@${N2}`;
|
|
4834
4834
|
s2.set(F, (s2.get(F) ?? 0) + 1), r.set(
|
|
4835
4835
|
F,
|
|
4836
4836
|
Math.max(
|
|
4837
4837
|
r.get(F) ?? Number.NEGATIVE_INFINITY,
|
|
4838
|
-
|
|
4838
|
+
V - (b.length - k2) * At
|
|
4839
4839
|
)
|
|
4840
|
-
), A.push({ ...
|
|
4840
|
+
), A.push({ ...b[k2], fullType: F, occurrenceIndex: N2 });
|
|
4841
4841
|
}
|
|
4842
4842
|
return A.reverse(), {
|
|
4843
|
-
value:
|
|
4844
|
-
spec:
|
|
4843
|
+
value: p2,
|
|
4844
|
+
spec: f2,
|
|
4845
4845
|
label: h2,
|
|
4846
4846
|
fullTrace: A
|
|
4847
4847
|
};
|
|
4848
4848
|
}), a = [], l2 = [], u2 = [...r];
|
|
4849
|
-
u2.sort(([,
|
|
4850
|
-
for (const [
|
|
4851
|
-
|
|
4852
|
-
const c2 = (
|
|
4853
|
-
const
|
|
4854
|
-
for (let
|
|
4855
|
-
const
|
|
4849
|
+
u2.sort(([, p2], [, v]) => v - p2);
|
|
4850
|
+
for (const [p2] of u2)
|
|
4851
|
+
p2.endsWith("@1") || s2.get(p2) === t.length ? a.push(p2) : l2.push(p2);
|
|
4852
|
+
const c2 = (p2, v = false) => {
|
|
4853
|
+
const f2 = [];
|
|
4854
|
+
for (let m2 = 0; m2 < o.length; m2++) {
|
|
4855
|
+
const w2 = o[m2], h2 = w2.fullTrace.filter((b) => p2.has(b.fullType) || i && i.has(b.type));
|
|
4856
4856
|
if (h2.length === 0)
|
|
4857
|
-
if (
|
|
4858
|
-
|
|
4857
|
+
if (v)
|
|
4858
|
+
f2.push({
|
|
4859
4859
|
label: "Unlabeled",
|
|
4860
|
-
value:
|
|
4860
|
+
value: w2.value
|
|
4861
4861
|
});
|
|
4862
4862
|
else return;
|
|
4863
|
-
const I = h2.map((
|
|
4864
|
-
|
|
4863
|
+
const I = h2.map((b) => b.label), x = n2.separator ?? " / ";
|
|
4864
|
+
f2.push({
|
|
4865
4865
|
label: I.join(x),
|
|
4866
|
-
value:
|
|
4866
|
+
value: w2.value
|
|
4867
4867
|
});
|
|
4868
4868
|
}
|
|
4869
|
-
return
|
|
4869
|
+
return f2;
|
|
4870
4870
|
};
|
|
4871
4871
|
if (a.length === 0) {
|
|
4872
4872
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4873
4873
|
return c2(new Set(Pe), true);
|
|
4874
4874
|
}
|
|
4875
|
-
let d = 0,
|
|
4875
|
+
let d = 0, g = -1;
|
|
4876
4876
|
for (; d < a.length; ) {
|
|
4877
|
-
const
|
|
4878
|
-
n2.includeNativeLabel &&
|
|
4879
|
-
for (let
|
|
4880
|
-
|
|
4881
|
-
const
|
|
4882
|
-
if (
|
|
4883
|
-
|
|
4877
|
+
const p2 = /* @__PURE__ */ new Set();
|
|
4878
|
+
n2.includeNativeLabel && p2.add(Pe);
|
|
4879
|
+
for (let f2 = 0; f2 < d; ++f2) p2.add(a[f2]);
|
|
4880
|
+
g >= 0 && p2.add(a[g]);
|
|
4881
|
+
const v = c2(p2);
|
|
4882
|
+
if (v !== void 0 && new Set(v.map((f2) => f2.label)).size === t.length) return v;
|
|
4883
|
+
g++, g >= a.length && (d++, g = d);
|
|
4884
4884
|
}
|
|
4885
4885
|
return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4886
4886
|
}
|
|
@@ -5218,43 +5218,43 @@
|
|
|
5218
5218
|
};
|
|
5219
5219
|
let u2 = () => false;
|
|
5220
5220
|
if (a) {
|
|
5221
|
-
const
|
|
5222
|
-
if (Se(
|
|
5221
|
+
const f2 = (Array.isArray(a) ? a : [a]).map((m2) => {
|
|
5222
|
+
if (Se(m2)) {
|
|
5223
5223
|
if (!r)
|
|
5224
5224
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5225
|
-
return Gn(Mn(r.anchors,
|
|
5225
|
+
return Gn(Mn(r.anchors, m2, n2));
|
|
5226
5226
|
} else
|
|
5227
|
-
return Gn(
|
|
5227
|
+
return Gn(m2);
|
|
5228
5228
|
});
|
|
5229
|
-
u2 = (
|
|
5229
|
+
u2 = (m2) => f2.some((w2) => w2(m2));
|
|
5230
5230
|
}
|
|
5231
|
-
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [],
|
|
5232
|
-
for (const
|
|
5233
|
-
const
|
|
5234
|
-
let
|
|
5235
|
-
if (
|
|
5231
|
+
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], g = /* @__PURE__ */ new Set();
|
|
5232
|
+
for (const f$1 of c2) {
|
|
5233
|
+
const m2 = Se(f$1);
|
|
5234
|
+
let w2;
|
|
5235
|
+
if (m2) {
|
|
5236
5236
|
if (!r)
|
|
5237
5237
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5238
|
-
|
|
5238
|
+
w2 = Mn(r.anchors, f$1, n2);
|
|
5239
5239
|
} else
|
|
5240
|
-
|
|
5240
|
+
w2 = f$1;
|
|
5241
5241
|
const h2 = /* @__PURE__ */ new Set(), I = [];
|
|
5242
5242
|
for (const A of this.providers) {
|
|
5243
|
-
const L = A.selectColumns(
|
|
5243
|
+
const L = A.selectColumns(w2);
|
|
5244
5244
|
for (const P2 of L) {
|
|
5245
5245
|
if (u2(P2.spec)) continue;
|
|
5246
5246
|
if (h2.has(P2.id))
|
|
5247
5247
|
throw new Error(`Duplicate column id ${P2.id} in provider ${A.constructor.name}`);
|
|
5248
5248
|
const R = Qn(P2.spec);
|
|
5249
|
-
|
|
5249
|
+
g.has(R) || (h2.add(P2.id), g.add(R), I.push(P2));
|
|
5250
5250
|
}
|
|
5251
5251
|
}
|
|
5252
5252
|
if (I.length === 0) continue;
|
|
5253
|
-
const x = Dt(
|
|
5253
|
+
const x = Dt(f$1), b = x.length > 0;
|
|
5254
5254
|
for (const A of I) {
|
|
5255
5255
|
if (!f(A.spec)) continue;
|
|
5256
5256
|
const L = A.spec;
|
|
5257
|
-
if (
|
|
5257
|
+
if (b) {
|
|
5258
5258
|
if (Lt(A.data))
|
|
5259
5259
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
|
|
5260
5260
|
const P2 = _t(A.data);
|
|
@@ -5267,33 +5267,33 @@
|
|
|
5267
5267
|
const R = St(P2), k2 = x[x.length - 1];
|
|
5268
5268
|
if (k2 >= P2.partitionKeyLength)
|
|
5269
5269
|
throw new Error(`Not enough partition keys (${P2.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
|
|
5270
|
-
const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))),
|
|
5270
|
+
const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))), V = [], N2 = (S, G) => {
|
|
5271
5271
|
if (G >= x.length) {
|
|
5272
|
-
if (
|
|
5272
|
+
if (V.push([...S]), V.length > 1e4)
|
|
5273
5273
|
throw new Error("Too many key combinations, aborting.");
|
|
5274
5274
|
return;
|
|
5275
5275
|
}
|
|
5276
|
-
const
|
|
5277
|
-
if (
|
|
5278
|
-
throw new Error(`Axis index ${
|
|
5279
|
-
const
|
|
5280
|
-
if (!
|
|
5281
|
-
|
|
5276
|
+
const $ = x[G];
|
|
5277
|
+
if ($ >= R.length)
|
|
5278
|
+
throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A.id}`);
|
|
5279
|
+
const J2 = R[$];
|
|
5280
|
+
if (!J2 || J2.length === 0) {
|
|
5281
|
+
V.length = 0;
|
|
5282
5282
|
return;
|
|
5283
5283
|
}
|
|
5284
|
-
for (const ee of
|
|
5285
|
-
S.push(ee),
|
|
5284
|
+
for (const ee of J2)
|
|
5285
|
+
S.push(ee), N2(S, G + 1), S.pop();
|
|
5286
5286
|
};
|
|
5287
|
-
if (
|
|
5287
|
+
if (N2([], 0), V.length === 0)
|
|
5288
5288
|
continue;
|
|
5289
5289
|
const F = [...L.axesSpec], Be = x.map((S) => S);
|
|
5290
5290
|
for (let S = x.length - 1; S >= 0; S--)
|
|
5291
5291
|
F.splice(x[S], 1);
|
|
5292
5292
|
const We = { ...L, axesSpec: F };
|
|
5293
|
-
for (const S of
|
|
5294
|
-
const G = S.map((
|
|
5295
|
-
const ee = Be[
|
|
5296
|
-
return { axisIdx: ee, axisId: Ge, value:
|
|
5293
|
+
for (const S of V) {
|
|
5294
|
+
const G = S.map(($, J2) => {
|
|
5295
|
+
const ee = Be[J2], Ge = p$1(L.axesSpec[ee]), ue2 = W[J2], He = (ue2 == null ? void 0 : ue2[$]) ?? String($);
|
|
5296
|
+
return { axisIdx: ee, axisId: Ge, value: $, label: He };
|
|
5297
5297
|
});
|
|
5298
5298
|
d.push({
|
|
5299
5299
|
type: "split",
|
|
@@ -5314,33 +5314,33 @@
|
|
|
5314
5314
|
}
|
|
5315
5315
|
}
|
|
5316
5316
|
if (d.length === 0) return [];
|
|
5317
|
-
const
|
|
5317
|
+
const p2 = je(
|
|
5318
5318
|
d,
|
|
5319
|
-
(
|
|
5320
|
-
spec:
|
|
5321
|
-
suffixTrace:
|
|
5319
|
+
(f2) => ({
|
|
5320
|
+
spec: f2.spec,
|
|
5321
|
+
suffixTrace: f2.type === "split" ? Et(f2.axisFilters) : void 0
|
|
5322
5322
|
}),
|
|
5323
5323
|
l2
|
|
5324
|
-
),
|
|
5325
|
-
for (const { value:
|
|
5326
|
-
const { originalColumn:
|
|
5327
|
-
let
|
|
5328
|
-
r ?
|
|
5329
|
-
let A = { ...
|
|
5324
|
+
), v = [];
|
|
5325
|
+
for (const { value: f2, label: m2 } of p2) {
|
|
5326
|
+
const { originalColumn: w2, spec: h2 } = f2, I = f2.type === "split" ? f2.axisFilters : void 0, x = kt(I);
|
|
5327
|
+
let b;
|
|
5328
|
+
r ? b = r.deriveS(h2, x) : b = Ot(w2.id, x);
|
|
5329
|
+
let A = { ...f2.adjustedSpec };
|
|
5330
5330
|
o && (A = {
|
|
5331
5331
|
...A,
|
|
5332
5332
|
annotations: {
|
|
5333
5333
|
...A.annotations ?? {},
|
|
5334
|
-
"pl7.app/label":
|
|
5334
|
+
"pl7.app/label": m2
|
|
5335
5335
|
}
|
|
5336
|
-
}),
|
|
5337
|
-
id:
|
|
5336
|
+
}), v.push({
|
|
5337
|
+
id: b,
|
|
5338
5338
|
spec: A,
|
|
5339
|
-
data: () =>
|
|
5340
|
-
label:
|
|
5339
|
+
data: () => f2.type === "split" ? Jn(It(f2.dataEntries, x)) : f2.originalColumn.data,
|
|
5340
|
+
label: m2
|
|
5341
5341
|
});
|
|
5342
5342
|
}
|
|
5343
|
-
return
|
|
5343
|
+
return v;
|
|
5344
5344
|
}
|
|
5345
5345
|
getColumns(e, n2) {
|
|
5346
5346
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5377,7 +5377,7 @@
|
|
|
5377
5377
|
}
|
|
5378
5378
|
class Rt {
|
|
5379
5379
|
constructor() {
|
|
5380
|
-
O(this, "ctx",
|
|
5380
|
+
O(this, "ctx", y());
|
|
5381
5381
|
}
|
|
5382
5382
|
/**
|
|
5383
5383
|
* @deprecated use getOptions()
|
|
@@ -5651,7 +5651,7 @@
|
|
|
5651
5651
|
O(this, "uiState");
|
|
5652
5652
|
O(this, "_activeArgsCache");
|
|
5653
5653
|
O(this, "resultPool", new Rt());
|
|
5654
|
-
this.ctx =
|
|
5654
|
+
this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5655
5655
|
}
|
|
5656
5656
|
/**
|
|
5657
5657
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5727,7 +5727,7 @@
|
|
|
5727
5727
|
this.ctx.logError(e);
|
|
5728
5728
|
}
|
|
5729
5729
|
}
|
|
5730
|
-
const Y = "1.34.
|
|
5730
|
+
const Y = "1.34.10";
|
|
5731
5731
|
function Ft(t) {
|
|
5732
5732
|
return t.__renderLambda === true;
|
|
5733
5733
|
}
|
|
@@ -5970,8 +5970,8 @@
|
|
|
5970
5970
|
for (const a of e) {
|
|
5971
5971
|
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) => Z$1(d, u2));
|
|
5972
5972
|
if (c2 !== -1) {
|
|
5973
|
-
const d = i[c2],
|
|
5974
|
-
|
|
5973
|
+
const d = i[c2], g = Object.keys(d.domain ?? {}).length, p2 = Object.keys(l2.domain ?? {}).length;
|
|
5974
|
+
g > p2 ? o.push({
|
|
5975
5975
|
id: s2(a.id, d.domain),
|
|
5976
5976
|
spec: {
|
|
5977
5977
|
...a.spec,
|
|
@@ -6104,21 +6104,21 @@
|
|
|
6104
6104
|
return [e];
|
|
6105
6105
|
const r = n2.map((u2) => {
|
|
6106
6106
|
const c2 = [];
|
|
6107
|
-
for (const [d,
|
|
6108
|
-
Z$1(
|
|
6107
|
+
for (const [d, g] of t)
|
|
6108
|
+
Z$1(g, u2) && !Z$1(u2, g) && c2.push(g);
|
|
6109
6109
|
return c2;
|
|
6110
6110
|
}), i = $t(r), s2 = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), a = i.map((u2) => {
|
|
6111
6111
|
const c2 = /* @__PURE__ */ new Set();
|
|
6112
|
-
return u2.map((d,
|
|
6113
|
-
const
|
|
6114
|
-
return Object.entries(
|
|
6115
|
-
if ((
|
|
6116
|
-
const
|
|
6117
|
-
c2.add(
|
|
6112
|
+
return u2.map((d, g) => {
|
|
6113
|
+
const p2 = e.spec.axesSpec[g].domain, v = d.domain;
|
|
6114
|
+
return Object.entries(v ?? {}).forEach(([f2, m2]) => {
|
|
6115
|
+
if ((p2 == null ? void 0 : p2[f2]) === void 0) {
|
|
6116
|
+
const w2 = JSON.stringify([f2, m2]);
|
|
6117
|
+
c2.add(w2), s2.add(w2);
|
|
6118
6118
|
}
|
|
6119
6119
|
}), {
|
|
6120
6120
|
...d,
|
|
6121
|
-
annotations: e.spec.axesSpec[
|
|
6121
|
+
annotations: e.spec.axesSpec[g].annotations
|
|
6122
6122
|
};
|
|
6123
6123
|
}), c2;
|
|
6124
6124
|
});
|
|
@@ -6126,23 +6126,23 @@
|
|
|
6126
6126
|
a.some((c2) => !c2.has(u2)) && o.add(u2);
|
|
6127
6127
|
});
|
|
6128
6128
|
const l2 = i.map((u2, c2) => {
|
|
6129
|
-
var
|
|
6130
|
-
const d = Vt(e.id, u2.map((
|
|
6131
|
-
var
|
|
6132
|
-
return (
|
|
6133
|
-
}).join(" / "),
|
|
6129
|
+
var f2;
|
|
6130
|
+
const d = Vt(e.id, u2.map((m2) => m2.domain)), g = ((f2 = e.spec.annotations) == null ? void 0 : f2[Ie]) ?? "", p2 = [...a[c2]].filter((m2) => o.has(m2)).sort().map((m2) => {
|
|
6131
|
+
var w2;
|
|
6132
|
+
return (w2 = JSON.parse(m2)) == null ? void 0 : w2[1];
|
|
6133
|
+
}).join(" / "), v = {
|
|
6134
6134
|
...e.spec.annotations,
|
|
6135
6135
|
[Jt]: "true"
|
|
6136
6136
|
};
|
|
6137
|
-
return (
|
|
6137
|
+
return (g || p2) && (v[Ie] = g && p2 ? g + " / " + p2 : g + p2), {
|
|
6138
6138
|
id: d,
|
|
6139
6139
|
spec: {
|
|
6140
6140
|
...e.spec,
|
|
6141
|
-
axesSpec: u2.map((
|
|
6142
|
-
...
|
|
6143
|
-
annotations: e.spec.axesSpec[
|
|
6141
|
+
axesSpec: u2.map((m2, w2) => ({
|
|
6142
|
+
...m2,
|
|
6143
|
+
annotations: e.spec.axesSpec[w2].annotations
|
|
6144
6144
|
})),
|
|
6145
|
-
annotations:
|
|
6145
|
+
annotations: v
|
|
6146
6146
|
},
|
|
6147
6147
|
data: e.data
|
|
6148
6148
|
};
|
|
@@ -6155,26 +6155,32 @@
|
|
|
6155
6155
|
n2.addColumnProvider(t.resultPool), n2.addColumns(e);
|
|
6156
6156
|
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
6157
6157
|
for (const d of e)
|
|
6158
|
-
for (const
|
|
6159
|
-
const
|
|
6160
|
-
r.set(ue(
|
|
6158
|
+
for (const g of d.spec.axesSpec) {
|
|
6159
|
+
const p2 = p$1(g);
|
|
6160
|
+
r.set(ue(p2), p2), i.set(ue(p2), p2);
|
|
6161
6161
|
}
|
|
6162
6162
|
const s2 = n2.getColumns((d) => Nt(d)) ?? [], o = Bt(s2, r);
|
|
6163
6163
|
for (const d of o)
|
|
6164
6164
|
r.set(...d), i.set(...d);
|
|
6165
|
-
const a = (n2.getColumns(
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6165
|
+
const a = (n2.getColumns((d) => d.axesSpec.some((g) => {
|
|
6166
|
+
const p2 = p$1(g);
|
|
6167
|
+
for (const v of r.values())
|
|
6168
|
+
if (Z$1(v, p2))
|
|
6169
|
+
return true;
|
|
6170
|
+
return false;
|
|
6171
|
+
}), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((d) => !ve(d.spec));
|
|
6169
6172
|
for (const d of a)
|
|
6170
|
-
for (const
|
|
6171
|
-
const
|
|
6172
|
-
i.set(ue(
|
|
6173
|
-
}
|
|
6174
|
-
const l2 = (n2.getColumns(
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6173
|
+
for (const g of d.spec.axesSpec) {
|
|
6174
|
+
const p2 = p$1(g);
|
|
6175
|
+
i.set(ue(p2), p2);
|
|
6176
|
+
}
|
|
6177
|
+
const l2 = (n2.getColumns((d) => d.axesSpec.some((g) => {
|
|
6178
|
+
const p2 = p$1(g);
|
|
6179
|
+
for (const v of i.values())
|
|
6180
|
+
if (Z$1(v, p2))
|
|
6181
|
+
return true;
|
|
6182
|
+
return false;
|
|
6183
|
+
}), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((d) => ve(d.spec)), u2 = [...a, ...l2], c2 = Wt(r, u2);
|
|
6178
6184
|
if (!c2.some(
|
|
6179
6185
|
(d) => d.data instanceof E && !d.data.getIsReadyOrError()
|
|
6180
6186
|
))
|