@platforma-sdk/ui-vue 1.42.10 → 1.42.15

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.
Files changed (45) hide show
  1. package/.turbo/turbo-build.log +23 -23
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +16 -0
  4. package/dist/components/PlAgDataTable/sources/table-source-v2.js +4 -4
  5. package/dist/components/PlAgDataTable/sources/table-state-v2.js +6 -6
  6. package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +12 -12
  7. package/dist/components/PlMultiSequenceAlignment/data.js +5 -5
  8. package/dist/lib/model/common/dist/index.js +194 -171
  9. package/dist/lib/model/common/dist/index.js.map +1 -1
  10. package/dist/lib/ui/uikit/dist/components/DataTable/TableComponent.vue.js +1 -1
  11. package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
  12. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
  13. package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  14. package/dist/lib/ui/uikit/dist/components/PlAutocomplete/PlAutocomplete.vue.js +22 -22
  15. package/dist/lib/ui/uikit/dist/components/PlAutocomplete/PlAutocomplete.vue.js.map +1 -1
  16. package/dist/lib/ui/uikit/dist/components/PlDropdown/OptionList.vue.js +2 -2
  17. package/dist/lib/ui/uikit/dist/components/PlDropdown/PlDropdown.vue.js +106 -103
  18. package/dist/lib/ui/uikit/dist/components/PlDropdown/PlDropdown.vue.js.map +1 -1
  19. package/dist/lib/ui/uikit/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +1 -1
  20. package/dist/lib/ui/uikit/dist/components/PlDropdownLine/PlDropdownLine.vue.js +81 -77
  21. package/dist/lib/ui/uikit/dist/components/PlDropdownLine/PlDropdownLine.vue.js.map +1 -1
  22. package/dist/lib/ui/uikit/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +22 -22
  23. package/dist/lib/ui/uikit/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js.map +1 -1
  24. package/dist/lib/ui/uikit/dist/components/PlDropdownRef/PlDropdownRef.vue.js +24 -22
  25. package/dist/lib/ui/uikit/dist/components/PlDropdownRef/PlDropdownRef.vue.js.map +1 -1
  26. package/dist/lib/ui/uikit/dist/components/PlFileDialog/Remote.vue.js +8 -8
  27. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +20 -20
  28. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
  29. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlPureSlideModal.vue.js +1 -1
  30. package/dist/lib/ui/uikit/dist/components/PlTextArea/PlTextArea.vue.js +1 -1
  31. package/dist/lib/ui/uikit/dist/components/PlTextField/PlTextField.vue.js +1 -1
  32. package/dist/lib/ui/uikit/dist/generated/components/svg/images/{SvgRequired.vue2.js → SvgRequired.vue.js} +1 -1
  33. package/dist/lib/ui/uikit/dist/generated/components/svg/images/SvgRequired.vue.js.map +1 -0
  34. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +179 -156
  35. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
  36. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +358 -346
  37. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
  38. package/dist/lib/ui/uikit/dist/utils/DropdownOverlay/DropdownOverlay.vue.js +13 -11
  39. package/dist/lib/ui/uikit/dist/utils/DropdownOverlay/DropdownOverlay.vue.js.map +1 -1
  40. package/dist/plugins/Monetization/MonetizationSidebar.vue.js +4 -4
  41. package/dist/sdk/model/dist/index.js +256 -244
  42. package/dist/sdk/model/dist/index.js.map +1 -1
  43. package/package.json +5 -5
  44. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
  45. package/dist/lib/ui/uikit/dist/generated/components/svg/images/SvgRequired.vue2.js.map +0 -1
@@ -1,13 +1,13 @@
1
1
  import f from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
2
2
  import p from "../../../../_virtual/canonicalize.js";
3
- var E = Object.defineProperty, S = (t, e, n) => e in t ? E(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, m = (t, e, n) => S(t, typeof e != "symbol" ? e + "" : e, n);
3
+ var k = Object.defineProperty, O = (t, e, n) => e in t ? k(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, m = (t, e, n) => O(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  f.object({
5
5
  /** Included left border. */
6
6
  from: f.number(),
7
7
  /** Excluded right border. */
8
8
  to: f.number()
9
9
  });
10
- function x(t) {
10
+ function b(t) {
11
11
  throw new Error("Unexpected object: " + t);
12
12
  }
13
13
  function Y(t) {
@@ -20,8 +20,8 @@ function Y(t) {
20
20
  case "Json":
21
21
  return typeof e.keyLength == "number" && e.data !== void 0 && typeof e.data == "object";
22
22
  case "JsonPartitioned":
23
- return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
24
23
  case "BinaryPartitioned":
24
+ case "ParquetPartitioned":
25
25
  return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
26
26
  default:
27
27
  return !1;
@@ -34,8 +34,8 @@ function Z(t, e) {
34
34
  return t;
35
35
  case "JsonPartitioned": {
36
36
  const n = {};
37
- for (const [r, o] of Object.entries(t.parts))
38
- n[r] = e(o);
37
+ for (const [r, a] of Object.entries(t.parts))
38
+ n[r] = e(a);
39
39
  return {
40
40
  ...t,
41
41
  parts: n
@@ -43,19 +43,28 @@ function Z(t, e) {
43
43
  }
44
44
  case "BinaryPartitioned": {
45
45
  const n = {};
46
- for (const [r, o] of Object.entries(t.parts))
46
+ for (const [r, a] of Object.entries(t.parts))
47
47
  n[r] = {
48
- index: e(o.index),
49
- values: e(o.values)
48
+ index: e(a.index),
49
+ values: e(a.values)
50
50
  };
51
51
  return {
52
52
  ...t,
53
53
  parts: n
54
54
  };
55
55
  }
56
+ case "ParquetPartitioned": {
57
+ const n = {};
58
+ for (const [r, a] of Object.entries(t.parts))
59
+ n[r] = e(a);
60
+ return {
61
+ ...t,
62
+ parts: n
63
+ };
64
+ }
56
65
  }
57
66
  }
58
- function I(t) {
67
+ function S(t) {
59
68
  if (!t || typeof t != "object")
60
69
  return !1;
61
70
  const e = t;
@@ -65,87 +74,101 @@ function I(t) {
65
74
  case "Json":
66
75
  return typeof e.keyLength == "number" && Array.isArray(e.data);
67
76
  case "JsonPartitioned":
68
- return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
69
77
  case "BinaryPartitioned":
78
+ case "ParquetPartitioned":
70
79
  return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
71
80
  default:
72
81
  return !1;
73
82
  }
74
83
  }
75
84
  function tt(t) {
76
- return I(t) ? t.type === "JsonPartitioned" || t.type === "BinaryPartitioned" : !1;
85
+ if (!S(t)) return !1;
86
+ switch (t.type) {
87
+ case "JsonPartitioned":
88
+ case "BinaryPartitioned":
89
+ case "ParquetPartitioned":
90
+ return !0;
91
+ default:
92
+ return !1;
93
+ }
77
94
  }
78
95
  function et(t) {
79
96
  switch (t.type) {
80
- case "Json": {
81
- const e = Object.entries(t.data).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
97
+ case "Json":
82
98
  return {
83
99
  type: "Json",
84
100
  keyLength: t.keyLength,
85
- data: e
101
+ data: Object.entries(t.data).map(([e, n]) => ({ key: JSON.parse(e), value: n }))
86
102
  };
87
- }
88
- case "JsonPartitioned": {
89
- const e = Object.entries(t.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
103
+ case "JsonPartitioned":
90
104
  return {
91
105
  type: "JsonPartitioned",
92
106
  partitionKeyLength: t.partitionKeyLength,
93
- parts: e
107
+ parts: Object.entries(t.parts).map(([e, n]) => ({ key: JSON.parse(e), value: n }))
94
108
  };
95
- }
96
- case "BinaryPartitioned": {
97
- const e = Object.entries(t.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
109
+ case "BinaryPartitioned":
98
110
  return {
99
111
  type: "BinaryPartitioned",
100
112
  partitionKeyLength: t.partitionKeyLength,
101
- parts: e
113
+ parts: Object.entries(t.parts).map(([e, n]) => ({ key: JSON.parse(e), value: n }))
102
114
  };
103
- }
115
+ case "ParquetPartitioned":
116
+ return {
117
+ type: "ParquetPartitioned",
118
+ partitionKeyLength: t.partitionKeyLength,
119
+ parts: Object.entries(t.parts).map(([e, n]) => ({ key: JSON.parse(e), value: n }))
120
+ };
121
+ default:
122
+ b(t);
104
123
  }
105
124
  }
106
125
  function nt(t) {
107
126
  switch (t.type) {
108
- case "Json": {
109
- const e = {};
110
- for (const n of t.data)
111
- e[JSON.stringify(n.key)] = n.value;
127
+ case "Json":
112
128
  return {
113
129
  type: "Json",
114
130
  keyLength: t.keyLength,
115
- data: e
131
+ data: Object.fromEntries(
132
+ t.data.map(({ key: e, value: n }) => [JSON.stringify(e), n])
133
+ )
116
134
  };
117
- }
118
- case "JsonPartitioned": {
119
- const e = {};
120
- for (const n of t.parts)
121
- e[JSON.stringify(n.key)] = n.value;
135
+ case "JsonPartitioned":
122
136
  return {
123
137
  type: "JsonPartitioned",
124
138
  partitionKeyLength: t.partitionKeyLength,
125
- parts: e
139
+ parts: Object.fromEntries(
140
+ t.parts.map(({ key: e, value: n }) => [JSON.stringify(e), n])
141
+ )
126
142
  };
127
- }
128
- case "BinaryPartitioned": {
129
- const e = {};
130
- for (const n of t.parts)
131
- e[JSON.stringify(n.key)] = n.value;
143
+ case "BinaryPartitioned":
132
144
  return {
133
145
  type: "BinaryPartitioned",
134
146
  partitionKeyLength: t.partitionKeyLength,
135
- parts: e
147
+ parts: Object.fromEntries(
148
+ t.parts.map(({ key: e, value: n }) => [JSON.stringify(e), n])
149
+ )
136
150
  };
137
- }
151
+ case "ParquetPartitioned":
152
+ return {
153
+ type: "ParquetPartitioned",
154
+ partitionKeyLength: t.partitionKeyLength,
155
+ parts: Object.fromEntries(
156
+ t.parts.map(({ key: e, value: n }) => [JSON.stringify(e), n])
157
+ )
158
+ };
159
+ default:
160
+ b(t);
138
161
  }
139
162
  }
140
- function A(t, e) {
163
+ function x(t, e) {
141
164
  const n = Math.floor(e / 8), r = 1 << 7 - e % 8;
142
165
  return (t[n] & r) > 0;
143
166
  }
144
167
  function J(t, e) {
145
- return A(t.absent, e);
168
+ return x(t.absent, e);
146
169
  }
147
- function O(t, e) {
148
- if (t.isNA) return A(t.isNA, e);
170
+ function j(t, e) {
171
+ if (t.isNA) return x(t.isNA, e);
149
172
  const n = t.type, r = t.data[e];
150
173
  switch (n) {
151
174
  case "Int":
@@ -164,16 +187,16 @@ function O(t, e) {
164
187
  throw Error(`unsupported data type: ${n}`);
165
188
  }
166
189
  }
167
- const N = { type: "absent" };
190
+ const I = { type: "absent" };
168
191
  function rt(t) {
169
192
  return typeof t == "object" && t !== null && "type" in t && t.type === "absent";
170
193
  }
171
- const P = null;
172
- function j(t) {
173
- return t === P;
194
+ const A = null;
195
+ function N(t) {
196
+ return t === A;
174
197
  }
175
- function ot(t, e) {
176
- return !j(t);
198
+ function at(t, e) {
199
+ return !N(t);
177
200
  }
178
201
  function C(t, e, n) {
179
202
  const r = t.type;
@@ -182,29 +205,29 @@ function C(t, e, n) {
182
205
  if (n && "dataType" in n && n.dataType !== void 0 && n.dataType !== r)
183
206
  throw Error(`expected column of type ${n.dataType}, got ${r}`);
184
207
  if (J(t, e))
185
- return (n == null ? void 0 : n.absent) !== void 0 ? n.absent : N;
186
- if (O(t, e))
187
- return (n == null ? void 0 : n.na) !== void 0 ? n.na : P;
188
- const o = t.data[e];
208
+ return (n == null ? void 0 : n.absent) !== void 0 ? n.absent : I;
209
+ if (j(t, e))
210
+ return (n == null ? void 0 : n.na) !== void 0 ? n.na : A;
211
+ const a = t.data[e];
189
212
  switch (r) {
190
213
  case "Int":
191
- return o;
214
+ return a;
192
215
  case "Long":
193
- return Number(o);
216
+ return Number(a);
194
217
  case "Float":
195
- return o;
218
+ return a;
196
219
  case "Double":
197
- return o;
220
+ return a;
198
221
  case "String":
199
- return o;
222
+ return a;
200
223
  }
201
224
  }
202
- function at(t, e, n) {
225
+ function ot(t, e, n) {
203
226
  return C(t, e, n);
204
227
  }
205
228
  function l(t) {
206
- const { type: e, name: n, domain: r } = t, o = { type: e, name: n };
207
- return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
229
+ const { type: e, name: n, domain: r } = t, a = { type: e, name: n };
230
+ return r && Object.entries(r).length > 0 && Object.assign(a, { domain: r }), a;
208
231
  }
209
232
  function $(t) {
210
233
  return t.map(l);
@@ -212,15 +235,15 @@ function $(t) {
212
235
  function it(t) {
213
236
  return p(l(t));
214
237
  }
215
- function T(t, e) {
238
+ function L(t, e) {
216
239
  if (t === void 0) return e === void 0;
217
240
  if (e === void 0) return !0;
218
241
  for (const n in e)
219
242
  if (t[n] !== e[n]) return !1;
220
243
  return !0;
221
244
  }
222
- function L(t, e) {
223
- return t.name === e.name && T(t.domain, e.domain);
245
+ function T(t, e) {
246
+ return t.name === e.name && L(t.domain, e.domain);
224
247
  }
225
248
  function st(t, e) {
226
249
  return { ...t, src: y(t.src, e) };
@@ -254,7 +277,7 @@ function y(t, e) {
254
277
  secondary: t.secondary.map((n) => y(n, e))
255
278
  };
256
279
  default:
257
- x(t);
280
+ b(t);
258
281
  }
259
282
  }
260
283
  function ct(t) {
@@ -274,10 +297,10 @@ function ct(t) {
274
297
  function B(t) {
275
298
  return p(t);
276
299
  }
277
- function b(t) {
300
+ function g(t) {
278
301
  return p(l(t));
279
302
  }
280
- function g(t, e) {
303
+ function w(t, e) {
281
304
  return JSON.stringify([t, e]);
282
305
  }
283
306
  class ut {
@@ -288,17 +311,17 @@ class ut {
288
311
  constructor(e) {
289
312
  m(this, "domains", /* @__PURE__ */ new Map()), m(this, "axes", /* @__PURE__ */ new Map()), m(this, "domainPacks", []), m(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors = e;
290
313
  const n = Object.entries(e);
291
- n.sort((r, o) => r[0].localeCompare(o[0]));
292
- for (const [r, o] of n) {
293
- for (let s = 0; s < o.axesSpec.length; s++) {
294
- const i = o.axesSpec[s], a = b(i);
295
- this.axes.set(a, { anchor: r, idx: s });
314
+ n.sort((r, a) => r[0].localeCompare(a[0]));
315
+ for (const [r, a] of n) {
316
+ for (let s = 0; s < a.axesSpec.length; s++) {
317
+ const i = a.axesSpec[s], o = g(i);
318
+ this.axes.set(o, { anchor: r, idx: s });
296
319
  }
297
- if (o.domain !== void 0) {
298
- const s = Object.entries(o.domain);
299
- s.sort((i, a) => i[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(s), r), this.domainPacks.push(s.map(([i]) => i));
300
- for (const [i, a] of s) {
301
- const c = g(i, a);
320
+ if (a.domain !== void 0) {
321
+ const s = Object.entries(a.domain);
322
+ s.sort((i, o) => i[0].localeCompare(o[0])), this.domainPackToAnchor.set(JSON.stringify(s), r), this.domainPacks.push(s.map(([i]) => i));
323
+ for (const [i, o] of s) {
324
+ const c = w(i, o);
302
325
  this.domains.set(c, r);
303
326
  }
304
327
  }
@@ -312,50 +335,50 @@ class ut {
312
335
  name: e.name,
313
336
  axes: []
314
337
  };
315
- let o;
338
+ let a;
316
339
  if (e.domain !== void 0)
317
340
  t:
318
341
  for (const i of this.domainPacks) {
319
- const a = [];
342
+ const o = [];
320
343
  for (const u of i) {
321
344
  const d = e.domain[u];
322
345
  if (d !== void 0)
323
- a.push([u, d]);
346
+ o.push([u, d]);
324
347
  else
325
348
  break t;
326
349
  }
327
- const c = this.domainPackToAnchor.get(JSON.stringify(a));
350
+ const c = this.domainPackToAnchor.get(JSON.stringify(o));
328
351
  if (c !== void 0) {
329
- r.domainAnchor = c, o = new Set(i);
352
+ r.domainAnchor = c, a = new Set(i);
330
353
  break;
331
354
  }
332
355
  }
333
- for (const [i, a] of Object.entries(e.domain ?? {})) {
334
- if (o !== void 0 && o.has(i))
356
+ for (const [i, o] of Object.entries(e.domain ?? {})) {
357
+ if (a !== void 0 && a.has(i))
335
358
  continue;
336
- const c = g(i, a), u = this.domains.get(c);
337
- r.domain ?? (r.domain = {}), r.domain[i] = u ? { anchor: u } : a;
359
+ const c = w(i, o), u = this.domains.get(c);
360
+ r.domain ?? (r.domain = {}), r.domain[i] = u ? { anchor: u } : o;
338
361
  }
339
362
  if (r.axes = e.axesSpec.map((i) => {
340
- const a = b(i), c = this.axes.get(a);
363
+ const o = g(i), c = this.axes.get(o);
341
364
  return c === void 0 ? l(i) : c;
342
365
  }), !n || n.length === 0)
343
366
  return r;
344
367
  const s = [];
345
368
  for (const i of n) {
346
- const [a, c] = i;
347
- if (typeof a == "number") {
348
- if (a < 0 || a >= e.axesSpec.length)
349
- throw new Error(`Axis index ${a} is out of bounds (0-${e.axesSpec.length - 1})`);
350
- s.push([a, c]);
369
+ const [o, c] = i;
370
+ if (typeof o == "number") {
371
+ if (o < 0 || o >= e.axesSpec.length)
372
+ throw new Error(`Axis index ${o} is out of bounds (0-${e.axesSpec.length - 1})`);
373
+ s.push([o, c]);
351
374
  } else {
352
- const u = e.axesSpec.findIndex((d) => d.name === a);
375
+ const u = e.axesSpec.findIndex((d) => d.name === o);
353
376
  if (u === -1)
354
- throw new Error(`Axis with name "${a}" not found in the column specification`);
377
+ throw new Error(`Axis with name "${o}" not found in the column specification`);
355
378
  s.push([u, c]);
356
379
  }
357
380
  }
358
- return s.sort((i, a) => i[0] - a[0]), {
381
+ return s.sort((i, o) => i[0] - o[0]), {
359
382
  source: r,
360
383
  axisFilters: s
361
384
  };
@@ -371,7 +394,7 @@ class ut {
371
394
  }
372
395
  }
373
396
  function ft(t, e, n) {
374
- const r = { ...e }, o = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
397
+ const r = { ...e }, a = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
375
398
  if (r.domainAnchor !== void 0) {
376
399
  const s = t[r.domainAnchor];
377
400
  if (!s)
@@ -381,26 +404,26 @@ function ft(t, e, n) {
381
404
  }
382
405
  if (r.domain) {
383
406
  const s = {};
384
- for (const [i, a] of Object.entries(r.domain))
385
- if (typeof a == "string")
386
- s[i] = a;
407
+ for (const [i, o] of Object.entries(r.domain))
408
+ if (typeof o == "string")
409
+ s[i] = o;
387
410
  else {
388
- const c = t[a.anchor];
411
+ const c = t[o.anchor];
389
412
  if (!c)
390
- throw new Error(`Anchor "${a.anchor}" not found for domain key "${i}"`);
413
+ throw new Error(`Anchor "${o.anchor}" not found for domain key "${i}"`);
391
414
  if (!c.domain || c.domain[i] === void 0) {
392
- if (!o)
393
- throw new Error(`Domain key "${i}" not found in anchor "${a.anchor}"`);
415
+ if (!a)
416
+ throw new Error(`Domain key "${i}" not found in anchor "${o.anchor}"`);
394
417
  continue;
395
418
  }
396
419
  s[i] = c.domain[i];
397
420
  }
398
421
  r.domain = s;
399
422
  }
400
- return r.axes && (r.axes = r.axes.map((s) => R(t, s))), r;
423
+ return r.axes && (r.axes = r.axes.map((s) => D(t, s))), r;
401
424
  }
402
- function R(t, e) {
403
- if (!D(e))
425
+ function D(t, e) {
426
+ if (!K(e))
404
427
  return e;
405
428
  const n = e.anchor, r = t[n];
406
429
  if (!r)
@@ -410,33 +433,33 @@ function R(t, e) {
410
433
  throw new Error(`Axis index ${e.idx} out of bounds for anchor "${n}"`);
411
434
  return r.axesSpec[e.idx];
412
435
  } else if ("name" in e) {
413
- const o = r.axesSpec.filter((s) => s.name === e.name);
414
- if (o.length > 1)
436
+ const a = r.axesSpec.filter((s) => s.name === e.name);
437
+ if (a.length > 1)
415
438
  throw new Error(`Multiple axes with name "${e.name}" found in anchor "${n}"`);
416
- if (o.length === 0)
439
+ if (a.length === 0)
417
440
  throw new Error(`Axis with name "${e.name}" not found in anchor "${n}"`);
418
- return o[0];
441
+ return a[0];
419
442
  } else if ("id" in e) {
420
- const o = r.axesSpec.filter((s) => L(e.id, l(s)));
421
- if (o.length > 1)
443
+ const a = r.axesSpec.filter((s) => T(e.id, l(s)));
444
+ if (a.length > 1)
422
445
  throw new Error(`Multiple matching axes found for matcher in anchor "${n}"`);
423
- if (o.length === 0)
446
+ if (a.length === 0)
424
447
  throw new Error(`No matching axis found for matcher in anchor "${n}"`);
425
- return o[0];
448
+ return a[0];
426
449
  }
427
450
  throw new Error("Unsupported axis reference type");
428
451
  }
429
- function D(t) {
452
+ function K(t) {
430
453
  return typeof t == "object" && "anchor" in t;
431
454
  }
432
455
  function h(t) {
433
456
  return t.kind === "PColumn";
434
457
  }
435
- function K(t) {
458
+ function R(t) {
436
459
  return h(t.spec);
437
460
  }
438
461
  function dt(t) {
439
- if (!K(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
462
+ if (!R(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
440
463
  return t;
441
464
  }
442
465
  function lt(t, e) {
@@ -458,19 +481,19 @@ function pt(t) {
458
481
  return;
459
482
  case "full":
460
483
  case "inner":
461
- for (const o of r.entries) n(o);
484
+ for (const a of r.entries) n(a);
462
485
  return;
463
486
  case "outer":
464
487
  n(r.primary);
465
- for (const o of r.secondary) n(o);
488
+ for (const a of r.secondary) n(a);
466
489
  return;
467
490
  default:
468
- x(r);
491
+ b(r);
469
492
  }
470
493
  };
471
494
  return n(t), [...e.values()];
472
495
  }
473
- function w(t, e) {
496
+ function v(t, e) {
474
497
  if (t.name !== void 0 && t.name !== e.name)
475
498
  return !1;
476
499
  if (t.type !== void 0) {
@@ -482,13 +505,13 @@ function w(t, e) {
482
505
  }
483
506
  if (t.domain !== void 0) {
484
507
  const n = e.domain || {};
485
- for (const [r, o] of Object.entries(t.domain))
486
- if (n[r] !== o)
508
+ for (const [r, a] of Object.entries(t.domain))
509
+ if (n[r] !== a)
487
510
  return !1;
488
511
  }
489
512
  return !0;
490
513
  }
491
- function v(t, e) {
514
+ function P(t, e) {
492
515
  if (e.name !== void 0 && t.name !== e.name || e.namePattern !== void 0 && !new RegExp(e.namePattern).test(t.name))
493
516
  return !1;
494
517
  if (e.type !== void 0) {
@@ -500,42 +523,42 @@ function v(t, e) {
500
523
  }
501
524
  if (e.domain !== void 0) {
502
525
  const n = t.domain || {};
503
- for (const [r, o] of Object.entries(e.domain))
504
- if (n[r] !== o)
526
+ for (const [r, a] of Object.entries(e.domain))
527
+ if (n[r] !== a)
505
528
  return !1;
506
529
  }
507
530
  if (e.axes !== void 0) {
508
531
  const n = t.axesSpec.map(l);
509
532
  if (e.partialAxesMatch) {
510
533
  for (const r of e.axes)
511
- if (!n.some((o) => w(r, o)))
534
+ if (!n.some((a) => v(r, a)))
512
535
  return !1;
513
536
  } else {
514
537
  if (n.length !== e.axes.length)
515
538
  return !1;
516
539
  for (let r = 0; r < e.axes.length; r++)
517
- if (!w(e.axes[r], n[r]))
540
+ if (!v(e.axes[r], n[r]))
518
541
  return !1;
519
542
  }
520
543
  }
521
544
  if (e.annotations !== void 0) {
522
545
  const n = t.annotations || {};
523
- for (const [r, o] of Object.entries(e.annotations))
524
- if (n[r] !== o)
546
+ for (const [r, a] of Object.entries(e.annotations))
547
+ if (n[r] !== a)
525
548
  return !1;
526
549
  }
527
550
  if (e.annotationPatterns !== void 0) {
528
551
  const n = t.annotations || {};
529
- for (const [r, o] of Object.entries(e.annotationPatterns)) {
552
+ for (const [r, a] of Object.entries(e.annotationPatterns)) {
530
553
  const s = n[r];
531
- if (s === void 0 || !new RegExp(o).test(s))
554
+ if (s === void 0 || !new RegExp(a).test(s))
532
555
  return !1;
533
556
  }
534
557
  }
535
558
  return !0;
536
559
  }
537
560
  function mt(t) {
538
- return Array.isArray(t) ? (e) => t.some((n) => h(e) && v(e, n)) : (e) => h(e) && v(e, t);
561
+ return Array.isArray(t) ? (e) => t.some((n) => h(e) && P(e, n)) : (e) => h(e) && P(e, t);
539
562
  }
540
563
  function yt(t) {
541
564
  const e = {
@@ -577,43 +600,43 @@ function F(t) {
577
600
  "Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray"
578
601
  );
579
602
  }
580
- const U = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", M = "0123456789ABCDEFGHIJKLMNOPQRSTUV", V = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
581
- function _(t, e, n) {
603
+ const M = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", U = "0123456789ABCDEFGHIJKLMNOPQRSTUV", q = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
604
+ function V(t, e, n) {
582
605
  n = n || {};
583
- let r, o;
606
+ let r, a;
584
607
  switch (e) {
585
608
  case "RFC3548":
586
609
  case "RFC4648":
587
- r = U, o = !0;
610
+ r = M, a = !0;
588
611
  break;
589
612
  case "RFC4648-HEX":
590
- r = M, o = !0;
613
+ r = U, a = !0;
591
614
  break;
592
615
  case "Crockford":
593
- r = V, o = !1;
616
+ r = q, a = !1;
594
617
  break;
595
618
  default:
596
619
  throw new Error("Unknown base32 variant: " + String(e));
597
620
  }
598
- const s = n.padding !== void 0 ? n.padding : o, i = F(t);
599
- let a = 0, c = 0, u = "";
621
+ const s = n.padding !== void 0 ? n.padding : a, i = F(t);
622
+ let o = 0, c = 0, u = "";
600
623
  for (let d = 0; d < i.byteLength; d++)
601
- for (c = c << 8 | i.getUint8(d), a += 8; a >= 5; )
602
- u += r[c >>> a - 5 & 31], a -= 5;
603
- if (a > 0 && (u += r[c << 5 - a & 31]), s)
624
+ for (c = c << 8 | i.getUint8(d), o += 8; o >= 5; )
625
+ u += r[c >>> o - 5 & 31], o -= 5;
626
+ if (o > 0 && (u += r[c << 5 - o & 31]), s)
604
627
  for (; u.length % 8 !== 0; )
605
628
  u += "=";
606
629
  return u;
607
630
  }
608
- const z = 15, q = 24, G = f.string().length(q).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
631
+ const _ = 15, z = 24, G = f.string().length(z).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
609
632
  function wt() {
610
- const t = new Uint8Array(z);
611
- return crypto.getRandomValues(t), G.parse(_(t, "RFC4648"));
633
+ const t = new Uint8Array(_);
634
+ return crypto.getRandomValues(t), G.parse(V(t, "RFC4648"));
612
635
  }
613
636
  function vt(t) {
614
637
  return p(t);
615
638
  }
616
- function xt(t) {
639
+ function Pt(t) {
617
640
  return JSON.parse(t);
618
641
  }
619
642
  function H(t) {
@@ -630,31 +653,31 @@ function Q(t) {
630
653
  }
631
654
  return `Non-Error value (${typeof t}) was thrown: ${t}`;
632
655
  }
633
- function At(t) {
656
+ function xt(t) {
634
657
  return t instanceof Error ? t : new Error(Q(t));
635
658
  }
636
- function k(t) {
637
- const e = t.cause ? k(t.cause) : void 0, n = new Error(t.message, e !== void 0 ? { cause: e } : void 0);
659
+ function E(t) {
660
+ const e = t.cause ? E(t.cause) : void 0, n = new Error(t.message, e !== void 0 ? { cause: e } : void 0);
638
661
  return n.name = t.name || "Error", n.stack = t.stack, n;
639
662
  }
640
- function Pt(t) {
663
+ function At(t) {
641
664
  if (t.error)
642
- throw t.error instanceof Error ? t.error : k(t.error);
665
+ throw t.error instanceof Error ? t.error : E(t.error);
643
666
  return t.value;
644
667
  }
645
668
  export {
646
669
  ut as AnchoredIdDeriver,
647
- N as PTableAbsent,
648
- P as PTableNA,
670
+ I as PTableAbsent,
671
+ A as PTableNA,
649
672
  G as PlId,
650
- z as PlIdBytes,
651
- q as PlIdLength,
673
+ _ as PlIdBytes,
674
+ z as PlIdLength,
652
675
  it as canonicalizeAxisId,
653
676
  vt as canonicalizeJson,
654
677
  et as dataInfoToEntries,
655
678
  yt as deriveNativeId,
656
- k as deserializeError,
657
- At as ensureError,
679
+ E as deserializeError,
680
+ xt as ensureError,
658
681
  dt as ensurePColumn,
659
682
  nt as entriesToDataInfo,
660
683
  pt as extractAllColumns,
@@ -663,12 +686,12 @@ export {
663
686
  ct as getPTableColumnId,
664
687
  H as hasAbortError,
665
688
  Y as isDataInfo,
666
- I as isDataInfoEntries,
667
- K as isPColumn,
689
+ S as isDataInfoEntries,
690
+ R as isPColumn,
668
691
  h as isPColumnSpec,
669
692
  rt as isPTableAbsent,
670
- j as isPTableNA,
671
- ot as isPTableValueAxis,
693
+ N as isPTableNA,
694
+ at as isPTableValueAxis,
672
695
  tt as isPartitionedDataInfoEntries,
673
696
  ht as isPlRef,
674
697
  Z as mapDataInfo,
@@ -676,16 +699,16 @@ export {
676
699
  lt as mapPObjectData,
677
700
  st as mapPTableDef,
678
701
  gt as mapValueInVOE,
679
- w as matchAxis,
680
- L as matchAxisId,
681
- v as matchPColumn,
682
- at as pTableValue,
683
- xt as parseJson,
702
+ v as matchAxis,
703
+ T as matchAxisId,
704
+ P as matchPColumn,
705
+ ot as pTableValue,
706
+ Pt as parseJson,
684
707
  ft as resolveAnchors,
685
708
  mt as selectorsToPredicate,
686
709
  B as stringifyColumnId,
687
710
  wt as uniquePlId,
688
- Pt as unwrapResult,
711
+ At as unwrapResult,
689
712
  bt as withEnrichments
690
713
  };
691
714
  //# sourceMappingURL=index.js.map