@dpuse/dpuse-shared 1.0.148 → 1.0.150

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.
@@ -75,19 +75,34 @@ function d(e) {
75
75
  }, e;
76
76
  }
77
77
  /* @__NO_SIDE_EFFECTS__ */
78
+ function f(e, t) {
79
+ return {
80
+ kind: "validation",
81
+ type: "min_length",
82
+ reference: f,
83
+ async: !1,
84
+ expects: `>=${e}`,
85
+ requirement: e,
86
+ message: t,
87
+ "~run"(e, t) {
88
+ return e.typed && e.value.length < this.requirement && s(this, "length", e, t, { received: `${e.value.length}` }), e;
89
+ }
90
+ };
91
+ }
92
+ /* @__NO_SIDE_EFFECTS__ */
78
93
  function ee(e, t, n) {
79
94
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
80
95
  }
81
96
  /* @__NO_SIDE_EFFECTS__ */
82
- function f(e, t, n) {
97
+ function p(e, t, n) {
83
98
  return typeof e.default == "function" ? e.default(t, n) : e.default;
84
99
  }
85
100
  /* @__NO_SIDE_EFFECTS__ */
86
- function p(e, t) {
101
+ function m(e, t) {
87
102
  return d({
88
103
  kind: "schema",
89
104
  type: "array",
90
- reference: p,
105
+ reference: m,
91
106
  expects: "Array",
92
107
  async: !1,
93
108
  item: e,
@@ -120,11 +135,11 @@ function p(e, t) {
120
135
  });
121
136
  }
122
137
  /* @__NO_SIDE_EFFECTS__ */
123
- function m(e) {
138
+ function h(e) {
124
139
  return d({
125
140
  kind: "schema",
126
141
  type: "boolean",
127
- reference: m,
142
+ reference: h,
128
143
  expects: "boolean",
129
144
  async: !1,
130
145
  message: e,
@@ -134,11 +149,11 @@ function m(e) {
134
149
  });
135
150
  }
136
151
  /* @__NO_SIDE_EFFECTS__ */
137
- function h(e, t) {
152
+ function g(e, t) {
138
153
  return d({
139
154
  kind: "schema",
140
155
  type: "literal",
141
- reference: h,
156
+ reference: g,
142
157
  expects: /* @__PURE__ */ o(e),
143
158
  async: !1,
144
159
  literal: e,
@@ -149,26 +164,26 @@ function h(e, t) {
149
164
  });
150
165
  }
151
166
  /* @__NO_SIDE_EFFECTS__ */
152
- function g(e, t) {
167
+ function _(e, t) {
153
168
  return d({
154
169
  kind: "schema",
155
170
  type: "nullable",
156
- reference: g,
171
+ reference: _,
157
172
  expects: `(${e.expects} | null)`,
158
173
  async: !1,
159
174
  wrapped: e,
160
175
  default: t,
161
176
  "~run"(e, t) {
162
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ f(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
177
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ p(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
163
178
  }
164
179
  });
165
180
  }
166
181
  /* @__NO_SIDE_EFFECTS__ */
167
- function _(e) {
182
+ function v(e) {
168
183
  return d({
169
184
  kind: "schema",
170
185
  type: "number",
171
- reference: _,
186
+ reference: v,
172
187
  expects: "number",
173
188
  async: !1,
174
189
  message: e,
@@ -178,26 +193,26 @@ function _(e) {
178
193
  });
179
194
  }
180
195
  /* @__NO_SIDE_EFFECTS__ */
181
- function v(e, t) {
196
+ function y(e, t) {
182
197
  return d({
183
198
  kind: "schema",
184
199
  type: "optional",
185
- reference: v,
200
+ reference: y,
186
201
  expects: `(${e.expects} | undefined)`,
187
202
  async: !1,
188
203
  wrapped: e,
189
204
  default: t,
190
205
  "~run"(e, t) {
191
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ f(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
206
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ p(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
192
207
  }
193
208
  });
194
209
  }
195
210
  /* @__NO_SIDE_EFFECTS__ */
196
- function y(e, t, n) {
211
+ function b(e, t, n) {
197
212
  return d({
198
213
  kind: "schema",
199
214
  type: "record",
200
- reference: y,
215
+ reference: b,
201
216
  expects: "Object",
202
217
  async: !1,
203
218
  key: e,
@@ -246,11 +261,11 @@ function y(e, t, n) {
246
261
  });
247
262
  }
248
263
  /* @__NO_SIDE_EFFECTS__ */
249
- function b(e, t) {
264
+ function x(e, t) {
250
265
  return d({
251
266
  kind: "schema",
252
267
  type: "strict_object",
253
- reference: b,
268
+ reference: x,
254
269
  expects: "Object",
255
270
  async: !1,
256
271
  entries: e,
@@ -262,7 +277,7 @@ function b(e, t) {
262
277
  for (let r in this.entries) {
263
278
  let i = this.entries[r];
264
279
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
265
- let a = r in n ? n[r] : /* @__PURE__ */ f(i), o = i["~run"]({ value: a }, t);
280
+ let a = r in n ? n[r] : /* @__PURE__ */ p(i), o = i["~run"]({ value: a }, t);
266
281
  if (o.issues) {
267
282
  let i = {
268
283
  type: "object",
@@ -313,11 +328,11 @@ function b(e, t) {
313
328
  });
314
329
  }
315
330
  /* @__NO_SIDE_EFFECTS__ */
316
- function x(e) {
331
+ function S(e) {
317
332
  return d({
318
333
  kind: "schema",
319
334
  type: "string",
320
- reference: x,
335
+ reference: S,
321
336
  expects: "string",
322
337
  async: !1,
323
338
  message: e,
@@ -327,18 +342,18 @@ function x(e) {
327
342
  });
328
343
  }
329
344
  /* @__NO_SIDE_EFFECTS__ */
330
- function S(e) {
345
+ function C(e) {
331
346
  let t;
332
347
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
333
348
  else t = n.issues;
334
349
  return t;
335
350
  }
336
351
  /* @__NO_SIDE_EFFECTS__ */
337
- function C(e, t) {
352
+ function w(e, t) {
338
353
  return d({
339
354
  kind: "schema",
340
355
  type: "union",
341
- reference: C,
356
+ reference: w,
342
357
  expects: /* @__PURE__ */ u(e.map((e) => e.expects), "|"),
343
358
  async: !1,
344
359
  options: e,
@@ -358,31 +373,48 @@ function C(e, t) {
358
373
  if (n) return n;
359
374
  if (r) {
360
375
  if (r.length === 1) return r[0];
361
- s(this, "type", e, t, { issues: /* @__PURE__ */ S(r) }), e.typed = !0;
376
+ s(this, "type", e, t, { issues: /* @__PURE__ */ C(r) }), e.typed = !0;
362
377
  } else if (i?.length === 1) return i[0];
363
- else s(this, "type", e, t, { issues: /* @__PURE__ */ S(i) });
378
+ else s(this, "type", e, t, { issues: /* @__PURE__ */ C(i) });
364
379
  return e;
365
380
  }
366
381
  });
367
382
  }
383
+ /* @__NO_SIDE_EFFECTS__ */
384
+ function te(...e) {
385
+ return d({
386
+ ...e[0],
387
+ pipe: e,
388
+ "~run"(t, n) {
389
+ for (let r of e) if (r.kind !== "metadata") {
390
+ if (t.issues && (r.kind === "schema" || r.kind === "transformation")) {
391
+ t.typed = !1;
392
+ break;
393
+ }
394
+ (!t.issues || !n.abortEarly && !n.abortPipeEarly) && (t = r["~run"](t, n));
395
+ }
396
+ return t;
397
+ }
398
+ });
399
+ }
368
400
  //#endregion
369
401
  //#region src/locale/locale.schema.ts
370
- var w = /* @__PURE__ */ b({
371
- en: /* @__PURE__ */ x(),
372
- es: /* @__PURE__ */ x()
373
- }), te = {
374
- id: /* @__PURE__ */ x(),
375
- label: /* @__PURE__ */ b({
376
- en: /* @__PURE__ */ v(/* @__PURE__ */ x()),
377
- es: /* @__PURE__ */ v(/* @__PURE__ */ x())
402
+ var T = /* @__PURE__ */ x({
403
+ en: /* @__PURE__ */ S(),
404
+ es: /* @__PURE__ */ S()
405
+ }), ne = {
406
+ id: /* @__PURE__ */ S(),
407
+ label: /* @__PURE__ */ x({
408
+ en: /* @__PURE__ */ y(/* @__PURE__ */ S()),
409
+ es: /* @__PURE__ */ y(/* @__PURE__ */ S())
378
410
  }),
379
- description: /* @__PURE__ */ b({
380
- en: /* @__PURE__ */ v(/* @__PURE__ */ x()),
381
- es: /* @__PURE__ */ v(/* @__PURE__ */ x())
411
+ description: /* @__PURE__ */ x({
412
+ en: /* @__PURE__ */ y(/* @__PURE__ */ S()),
413
+ es: /* @__PURE__ */ y(/* @__PURE__ */ S())
382
414
  }),
383
- icon: /* @__PURE__ */ g(/* @__PURE__ */ x()),
384
- iconDark: /* @__PURE__ */ g(/* @__PURE__ */ x())
385
- }, T = (e) => /* @__PURE__ */ C(e.map((e) => /* @__PURE__ */ h(e))), ne = T([
415
+ icon: /* @__PURE__ */ _(/* @__PURE__ */ S()),
416
+ iconDark: /* @__PURE__ */ _(/* @__PURE__ */ S())
417
+ }, E = (e) => /* @__PURE__ */ w(e.map((e) => /* @__PURE__ */ g(e))), re = E([
386
418
  "app",
387
419
  "connector",
388
420
  "connectorConnection",
@@ -404,32 +436,32 @@ var w = /* @__PURE__ */ b({
404
436
  "presenter",
405
437
  "presenterPresentation",
406
438
  "tool"
407
- ]), re = T([
439
+ ]), ie = E([
408
440
  "danger",
409
441
  "success",
410
442
  "warning"
411
- ]), ie = T([
443
+ ]), ae = E([
412
444
  "alpha",
413
445
  "beta",
414
446
  "releaseCandidate",
415
447
  "generalAvailability"
416
- ]), ae = /* @__PURE__ */ b({
417
- color: re,
418
- label: /* @__PURE__ */ x()
419
- }), E = {
420
- ...te,
421
- typeId: ne
422
- }, D = /* @__PURE__ */ b({
423
- ...E,
424
- order: /* @__PURE__ */ _(),
425
- path: /* @__PURE__ */ x()
448
+ ]), oe = /* @__PURE__ */ x({
449
+ color: ie,
450
+ label: /* @__PURE__ */ S()
451
+ }), se = {
452
+ ...ne,
453
+ typeId: re
454
+ }, D = /* @__PURE__ */ x({
455
+ ...se,
456
+ order: /* @__PURE__ */ v(),
457
+ path: /* @__PURE__ */ S()
426
458
  }), O = {
427
- ...E,
428
- firstCreatedAt: /* @__PURE__ */ g(/* @__PURE__ */ _()),
429
- lastUpdatedAt: /* @__PURE__ */ g(/* @__PURE__ */ _()),
430
- status: /* @__PURE__ */ g(ae),
431
- statusId: /* @__PURE__ */ g(ie)
432
- }, oe = /* @__PURE__ */ b({ ...O }), se = [
459
+ ...se,
460
+ firstCreatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
461
+ lastUpdatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
462
+ status: /* @__PURE__ */ _(oe),
463
+ statusId: /* @__PURE__ */ _(ae)
464
+ }, ce = /* @__PURE__ */ x({ ...O }), le = [
433
465
  {
434
466
  id: "alpha",
435
467
  color: "danger",
@@ -463,8 +495,8 @@ var w = /* @__PURE__ */ b({
463
495
  }
464
496
  }
465
497
  ];
466
- function ce(e, t = "en") {
467
- let n = se.find((t) => t.id === e);
498
+ function ue(e, t = "en") {
499
+ let n = le.find((t) => t.id === e);
468
500
  if (n) {
469
501
  let e = n.labels[t] ?? n.labels.en ?? n.id;
470
502
  return {
@@ -479,7 +511,7 @@ function ce(e, t = "en") {
479
511
  }
480
512
  //#endregion
481
513
  //#region src/component/dataView/dataFormatIcons.ts
482
- var le = {
514
+ var de = {
483
515
  arrow: {
484
516
  icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1350 1181.25\"><polygon fill=\"#000\" points=\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\"/><polygon fill=\"#000\" points=\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\"/><polygon fill=\"#000\" points=\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\"/></svg>",
485
517
  iconDark: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1350 1181.25\"><polygon fill=\"#fff\" points=\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\"/><polygon fill=\"#fff\" points=\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\"/><polygon fill=\"#fff\" points=\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\"/></svg>"
@@ -532,7 +564,7 @@ var le = {
532
564
  //#endregion
533
565
  //#region src/component/dataView/index.ts
534
566
  n({ en: "Arrow" }), n({ en: "Avro" }), n({ en: "Delimited text (CSV, TSV…)" }), n({ en: "JSON" }), n({ en: "JSON Lines (JSONL)" }), n({ en: "Markdown (MD)" }), n({ en: "OpenDocument spreadsheet (ODS)" }), n({ en: "Parquet" }), n({ en: "SPSS (SAV)" }), n({ en: "SQLite" }), n({ en: "Excel (XLSX, XLSM)" }), n({ en: "XML" });
535
- var ue = [
567
+ var fe = [
536
568
  ",",
537
569
  ";",
538
570
  " ",
@@ -544,7 +576,7 @@ var ue = [
544
576
  "0x1F",
545
577
  "0x1E"
546
578
  ];
547
- n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/Newline" }), n({ en: "Colon" }), n({ en: "Comma" }), n({ en: "Exclamation Mark" }), n({ en: "Record Separator" }), n({ en: "Semicolon" }), n({ en: "Space" }), n({ en: "Tab" }), n({ en: "Underscore" }), n({ en: "Unit Separator" }), n({ en: "Vertical Bar" }), T([
579
+ n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/Newline" }), n({ en: "Colon" }), n({ en: "Comma" }), n({ en: "Exclamation Mark" }), n({ en: "Record Separator" }), n({ en: "Semicolon" }), n({ en: "Space" }), n({ en: "Tab" }), n({ en: "Underscore" }), n({ en: "Unit Separator" }), n({ en: "Vertical Bar" }), E([
548
580
  "app",
549
581
  "engine",
550
582
  "connector",
@@ -556,15 +588,15 @@ n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/New
556
588
  //#region src/component/module/moduleConfig.schema.ts
557
589
  var k = {
558
590
  ...O,
559
- vendorAccountURL: /* @__PURE__ */ g(/* @__PURE__ */ x()),
560
- vendorDocumentationURL: /* @__PURE__ */ g(/* @__PURE__ */ x()),
561
- vendorHomeURL: /* @__PURE__ */ g(/* @__PURE__ */ x()),
562
- version: /* @__PURE__ */ x()
591
+ vendorAccountURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
592
+ vendorDocumentationURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
593
+ vendorHomeURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
594
+ version: /* @__PURE__ */ S()
563
595
  };
564
596
  ({ ...k });
565
597
  //#endregion
566
598
  //#region src/component/module/connector/connectorConfig.schema.ts
567
- var de = T([
599
+ var pe = E([
568
600
  "abortOperation",
569
601
  "auditObjectContent",
570
602
  "createObject",
@@ -580,44 +612,44 @@ var de = T([
580
612
  "retrieveChunks",
581
613
  "retrieveRecords",
582
614
  "upsertRecords"
583
- ]), fe = T([
615
+ ]), me = E([
584
616
  "application",
585
617
  "curatedDataset",
586
618
  "database",
587
619
  "fileStore"
588
- ]), pe = /* @__PURE__ */ b({ label: w }), me = T([
620
+ ]), he = /* @__PURE__ */ x({ label: T }), ge = E([
589
621
  "apiEndpoint",
590
622
  "file",
591
623
  "table"
592
- ]), he = T([
624
+ ]), _e = E([
593
625
  "bidirectional",
594
626
  "destination",
595
627
  "source",
596
628
  "unknown"
597
- ]), ge = /* @__PURE__ */ b({ label: w }), _e = /* @__PURE__ */ b({
598
- authMethodId: T([
629
+ ]), ve = /* @__PURE__ */ x({ label: T }), ye = /* @__PURE__ */ x({
630
+ authMethodId: E([
599
631
  "apiKey",
600
632
  "disabled",
601
633
  "oAuth2",
602
634
  "none"
603
635
  ]),
604
- activeConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ _()),
605
- canDescribe: /* @__PURE__ */ v(/* @__PURE__ */ m()),
606
- id: /* @__PURE__ */ v(/* @__PURE__ */ x()),
607
- label: /* @__PURE__ */ v(w),
608
- maxConnectionCount: /* @__PURE__ */ g(/* @__PURE__ */ _()),
609
- params: /* @__PURE__ */ v(/* @__PURE__ */ p(/* @__PURE__ */ y(/* @__PURE__ */ x(), /* @__PURE__ */ x())))
610
- }), ve = /* @__PURE__ */ b({
636
+ activeConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ v()),
637
+ canDescribe: /* @__PURE__ */ y(/* @__PURE__ */ h()),
638
+ id: /* @__PURE__ */ y(/* @__PURE__ */ S()),
639
+ label: /* @__PURE__ */ y(T),
640
+ maxConnectionCount: /* @__PURE__ */ _(/* @__PURE__ */ v()),
641
+ params: /* @__PURE__ */ y(/* @__PURE__ */ m(/* @__PURE__ */ b(/* @__PURE__ */ S(), /* @__PURE__ */ S())))
642
+ }), be = /* @__PURE__ */ x({
611
643
  ...k,
612
- typeId: /* @__PURE__ */ h("connector"),
613
- actionNames: /* @__PURE__ */ p(de),
614
- category: /* @__PURE__ */ g(pe),
615
- categoryId: fe,
616
- implementations: /* @__PURE__ */ y(/* @__PURE__ */ x(), _e),
617
- itemTypeId: me,
618
- usage: /* @__PURE__ */ g(ge),
619
- usageId: /* @__PURE__ */ g(he)
620
- }), ye = [
644
+ typeId: /* @__PURE__ */ g("connector"),
645
+ actionNames: /* @__PURE__ */ m(pe),
646
+ category: /* @__PURE__ */ _(he),
647
+ categoryId: me,
648
+ implementations: /* @__PURE__ */ b(/* @__PURE__ */ S(), ye),
649
+ itemTypeId: ge,
650
+ usage: /* @__PURE__ */ _(ve),
651
+ usageId: /* @__PURE__ */ _(_e)
652
+ }), xe = [
621
653
  {
622
654
  id: "application",
623
655
  label: {
@@ -646,7 +678,7 @@ var de = T([
646
678
  es: "Almacén de Archivos"
647
679
  }
648
680
  }
649
- ], be = [
681
+ ], Se = [
650
682
  {
651
683
  id: "apiEndpoint",
652
684
  label: {
@@ -684,7 +716,7 @@ var de = T([
684
716
  retrieveChunks: "Retrieve Chunks",
685
717
  retrieveRecords: "Retrieve Records",
686
718
  upsertRecords: "Upsert Records"
687
- }, xe = [
719
+ }, Ce = [
688
720
  {
689
721
  id: "bidirectional",
690
722
  label: {
@@ -713,12 +745,12 @@ var de = T([
713
745
  es: "Desconocido"
714
746
  }
715
747
  }
716
- ], Se = /* @__PURE__ */ new Set([
748
+ ], we = /* @__PURE__ */ new Set([
717
749
  "createObject",
718
750
  "dropObject",
719
751
  "removeRecords",
720
752
  "upsertRecords"
721
- ]), Ce = /* @__PURE__ */ new Set([
753
+ ]), Te = /* @__PURE__ */ new Set([
722
754
  "auditObjectContent",
723
755
  "findObject",
724
756
  "getInfo",
@@ -729,13 +761,13 @@ var de = T([
729
761
  "retrieveChunks",
730
762
  "retrieveRecords"
731
763
  ]);
732
- function we(e) {
764
+ function Ee(e) {
733
765
  let t = !1, n = !1;
734
- for (let r of e) Ce.has(r) && (t = !0), Se.has(r) && (n = !0);
766
+ for (let r of e) Te.has(r) && (t = !0), we.has(r) && (n = !0);
735
767
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
736
768
  }
737
- var Te = (e, t = "en") => {
738
- let i = ye.find((t) => t.id === e);
769
+ var De = (e, t = "en") => {
770
+ let i = xe.find((t) => t.id === e);
739
771
  return i ? {
740
772
  label: r(n(i.label), t) ?? i.id,
741
773
  description: ""
@@ -743,8 +775,8 @@ var Te = (e, t = "en") => {
743
775
  label: e,
744
776
  description: ""
745
777
  };
746
- }, Ee = (e, t = "en") => {
747
- let i = be.find((t) => t.id === e);
778
+ }, Oe = (e, t = "en") => {
779
+ let i = Se.find((t) => t.id === e);
748
780
  return i ? {
749
781
  label: r(n(i.label), t) ?? i.id,
750
782
  description: ""
@@ -752,8 +784,8 @@ var Te = (e, t = "en") => {
752
784
  label: e,
753
785
  description: ""
754
786
  };
755
- }, De = (e, t = "en") => {
756
- let i = xe.find((t) => t.id === e);
787
+ }, ke = (e, t = "en") => {
788
+ let i = Ce.find((t) => t.id === e);
757
789
  return i ? {
758
790
  label: r(n(i.label), t) ?? i.id,
759
791
  description: ""
@@ -762,7 +794,7 @@ var Te = (e, t = "en") => {
762
794
  description: ""
763
795
  };
764
796
  };
765
- function Oe(e) {
797
+ function Ae(e) {
766
798
  let t = new Set(e), n = "|Action|Supported|\n";
767
799
  n += "|:----|:-------:|\n";
768
800
  for (let e of Object.keys(A)) n += `| ${A[e]} | ${t.has(e) ? "✓" : ""} |\n`;
@@ -770,12 +802,12 @@ function Oe(e) {
770
802
  }
771
803
  //#endregion
772
804
  //#region src/component/module/cookbook/cookbookConfig.schema.ts
773
- var ke = T(["list"]), Ae = /* @__PURE__ */ b({
805
+ var je = E(["list"]), Me = /* @__PURE__ */ x({
774
806
  ...k,
775
- typeId: /* @__PURE__ */ h("cookbook"),
776
- actionNames: /* @__PURE__ */ p(ke),
777
- recipes: /* @__PURE__ */ p(D)
778
- }), j = 2048, M = "[REDACTED]", je = 10, N = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Me = [
807
+ typeId: /* @__PURE__ */ g("cookbook"),
808
+ actionNames: /* @__PURE__ */ m(je),
809
+ recipes: /* @__PURE__ */ m(D)
810
+ }), j = 2048, M = "[REDACTED]", Ne = 10, N = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Pe = [
779
811
  [/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${M}`],
780
812
  [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => N.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${M}` : e],
781
813
  [/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => M],
@@ -808,19 +840,19 @@ var ke = T(["list"]), Ae = /* @__PURE__ */ b({
808
840
  super(e, t, n, r), this.name = "FetchError";
809
841
  }
810
842
  };
811
- async function Ne(e, t, n) {
843
+ async function Fe(e, t, n) {
812
844
  let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
813
845
  try {
814
846
  a = await e.text();
815
847
  } catch (e) {
816
848
  a = `<body unavailable: ${B(e).message}>`;
817
849
  }
818
- return new z(i, n, { body: Ve(a) });
850
+ return new z(i, n, { body: Ue(a) });
819
851
  }
820
- function Pe(e) {
852
+ function Ie(e) {
821
853
  return e.map((e) => e.message).join(" ");
822
854
  }
823
- function Fe(e) {
855
+ function Le(e) {
824
856
  try {
825
857
  e();
826
858
  } catch {}
@@ -837,24 +869,24 @@ function B(e) {
837
869
  }
838
870
  return /* @__PURE__ */ Error("Unknown error");
839
871
  }
840
- function Ie(e) {
872
+ function Re(e) {
841
873
  let t = /* @__PURE__ */ new Set(), n = [], r = B(e);
842
874
  for (; r != null && !t.has(r);) {
843
875
  t.add(r);
844
- let [e, i] = He(r), a = Be(e);
876
+ let [e, i] = We(r), a = He(e);
845
877
  /(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
846
878
  }
847
879
  return n;
848
880
  }
849
- function Le(e) {
881
+ function ze(e) {
850
882
  let t;
851
883
  for (let n of e.toReversed()) {
852
- let e = ze(n, t);
884
+ let e = Ve(n, t);
853
885
  n.stack !== void 0 && (e.stack = n.stack), t = e;
854
886
  }
855
887
  return t ?? /* @__PURE__ */ Error("No error to unserialise.");
856
888
  }
857
- function Re(e) {
889
+ function Be(e) {
858
890
  let t;
859
891
  try {
860
892
  t = JSON.stringify(e);
@@ -863,7 +895,7 @@ function Re(e) {
863
895
  }
864
896
  return t === "" && (t = "Unknown error"), t;
865
897
  }
866
- function ze(e, t) {
898
+ function Ve(e, t) {
867
899
  switch (e.name) {
868
900
  case "APIError": return new I(e.message, e.locator, e.data, { cause: t });
869
901
  case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
@@ -878,7 +910,7 @@ function ze(e, t) {
878
910
  }
879
911
  }
880
912
  }
881
- function Be(e) {
913
+ function He(e) {
882
914
  let { data: t, message: n, stack: r } = e;
883
915
  return {
884
916
  ...e,
@@ -889,16 +921,16 @@ function Be(e) {
889
921
  }
890
922
  function V(e) {
891
923
  let t = e;
892
- for (let [e, n] of Me) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
924
+ for (let [e, n] of Pe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
893
925
  return t;
894
926
  }
895
927
  function H(e, t, n) {
896
- return typeof e == "string" ? V(e) : typeof e != "object" || !e ? e : n >= je ? M : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => H(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && N.test(e) ? M : H(r, t, n + 1)])));
928
+ return typeof e == "string" ? V(e) : typeof e != "object" || !e ? e : n >= Ne ? M : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => H(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && N.test(e) ? M : H(r, t, n + 1)])));
897
929
  }
898
- function Ve(e) {
930
+ function Ue(e) {
899
931
  if (e != null && e !== "") return e.length > j ? `${e.slice(0, j)}... [truncated]` : e;
900
932
  }
901
- function He(e) {
933
+ function We(e) {
902
934
  let t = e.cause == null ? null : B(e.cause);
903
935
  if (e instanceof P) return [{
904
936
  data: e.data,
@@ -917,25 +949,25 @@ function He(e) {
917
949
  }, t] : [{
918
950
  data: n,
919
951
  locator: "",
920
- message: Re(e),
952
+ message: Be(e),
921
953
  name: "Error",
922
954
  stack: void 0
923
955
  }, null];
924
956
  }
925
957
  //#endregion
926
958
  //#region src/component/module/presenter/presenterConfig.schema.ts
927
- var Ue = T([
959
+ var Ge = E([
928
960
  "list",
929
961
  "render",
930
962
  "setColorMode"
931
- ]), We = /* @__PURE__ */ b({
963
+ ]), Ke = /* @__PURE__ */ x({
932
964
  ...k,
933
- typeId: /* @__PURE__ */ h("presenter"),
934
- actionNames: /* @__PURE__ */ p(Ue),
935
- presentations: /* @__PURE__ */ p(D)
936
- }), Ge = "https://engine-eu.dpuse.app/presenters";
937
- async function Ke(e, t, n, r) {
938
- let i = e.id, a = `${Ge}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
965
+ typeId: /* @__PURE__ */ g("presenter"),
966
+ actionNames: /* @__PURE__ */ m(Ge),
967
+ presentations: /* @__PURE__ */ m(D)
968
+ }), qe = "https://engine-eu.dpuse.app/presenters";
969
+ async function Je(e, t, n, r) {
970
+ let i = e.id, a = `${qe}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
939
971
  try {
940
972
  return new (await (import(
941
973
  /* @vite-ignore */
@@ -950,10 +982,40 @@ async function Ke(e, t, n, r) {
950
982
  throw new F(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
951
983
  }
952
984
  }
953
- //#endregion
954
- //#region src/component/module/tool/index.ts
955
- var qe = "https://engine-eu.dpuse.app/tools";
956
- async function Je(e, t) {
985
+ var Ye = /* @__PURE__ */ x({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ m(E([
986
+ "arrow",
987
+ "avro",
988
+ "dtv",
989
+ "json",
990
+ "jsonl",
991
+ "markdown",
992
+ "ods",
993
+ "parquet",
994
+ "sav",
995
+ "sqlite",
996
+ "xlsx",
997
+ "xml"
998
+ ])), /* @__PURE__ */ f(1)) }), Xe = /* @__PURE__ */ m(/* @__PURE__ */ S()), Ze = /* @__PURE__ */ x({
999
+ ...k,
1000
+ typeId: /* @__PURE__ */ g("tool"),
1001
+ actionNames: /* @__PURE__ */ y(Xe),
1002
+ parser: /* @__PURE__ */ y(Ye)
1003
+ }), Qe = "https://engine-eu.dpuse.app/tools";
1004
+ function U(e, t) {
1005
+ return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
1006
+ }
1007
+ function $e(e, t, n) {
1008
+ let r = U(e, t), [i] = r;
1009
+ if (i === void 0) {
1010
+ let n = {
1011
+ availableToolIds: e.map((e) => e.id),
1012
+ dataFormatId: t
1013
+ };
1014
+ throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
1015
+ }
1016
+ return r.find((e) => e.id === n) ?? i;
1017
+ }
1018
+ async function et(e, t) {
957
1019
  let n = `dpuse-tool-${t}`, r = e.find((e) => e.id === n);
958
1020
  if (!r) {
959
1021
  let r = {
@@ -962,7 +1024,7 @@ async function Je(e, t) {
962
1024
  };
963
1025
  throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
964
1026
  }
965
- let i = `${qe}/${t}_v${r.version}/${n}.es.js`;
1027
+ let i = `${Qe}/${t}_v${r.version}/${n}.es.js`;
966
1028
  try {
967
1029
  return new (await (import(
968
1030
  /* @vite-ignore */
@@ -979,7 +1041,7 @@ async function Je(e, t) {
979
1041
  }
980
1042
  //#endregion
981
1043
  //#region src/encoding/index.ts
982
- var Ye = {
1044
+ var tt = {
983
1045
  arabic: {
984
1046
  id: "arabic",
985
1047
  label: {
@@ -1127,7 +1189,7 @@ var Ye = {
1127
1189
  es: "Occidental"
1128
1190
  }
1129
1191
  }
1130
- }, Xe = {
1192
+ }, nt = {
1131
1193
  ascii: {
1132
1194
  id: "ascii",
1133
1195
  groupId: null,
@@ -1558,16 +1620,16 @@ var Ye = {
1558
1620
  groupId: "baltic",
1559
1621
  decoderId: "windows-1257"
1560
1622
  }
1561
- }, U = Ye, W = Xe;
1562
- function G(e) {
1563
- return Object.hasOwn(W, e);
1623
+ }, W = tt, G = nt;
1624
+ function K(e) {
1625
+ return Object.hasOwn(G, e);
1564
1626
  }
1565
- function Ze(e) {
1566
- return G(e) ? W[e].decoderId ?? e : e;
1627
+ function rt(e) {
1628
+ return K(e) ? G[e].decoderId ?? e : e;
1567
1629
  }
1568
- function Qe(e = "en") {
1569
- return Array.from(Object.values(W), ({ decoderId: t, groupId: n, id: r }) => {
1570
- let i = n == null ? "" : $e(n, e);
1630
+ function it(e = "en") {
1631
+ return Array.from(Object.values(G), ({ decoderId: t, groupId: n, id: r }) => {
1632
+ let i = n == null ? "" : at(n, e);
1571
1633
  return {
1572
1634
  id: r,
1573
1635
  groupLabel: i,
@@ -1577,13 +1639,13 @@ function Qe(e = "en") {
1577
1639
  };
1578
1640
  }).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
1579
1641
  }
1580
- function $e(e, t) {
1581
- let n = U[e].label;
1642
+ function at(e, t) {
1643
+ let n = W[e].label;
1582
1644
  return n[t] ?? n.en ?? e;
1583
1645
  }
1584
1646
  //#endregion
1585
1647
  //#region src/locale/index.ts
1586
- function et(e, t) {
1648
+ function ot(e, t) {
1587
1649
  return {
1588
1650
  ...e,
1589
1651
  label: e.label[t] ?? e.id,
@@ -1591,7 +1653,7 @@ function et(e, t) {
1591
1653
  verb: e.verb?.[t] ?? void 0
1592
1654
  };
1593
1655
  }
1594
- function tt(e, t, n = !1) {
1656
+ function st(e, t, n = !1) {
1595
1657
  let r = e.map((e) => ({
1596
1658
  ...e,
1597
1659
  label: e.label[t] ?? e.id,
@@ -1600,7 +1662,7 @@ function tt(e, t, n = !1) {
1600
1662
  }));
1601
1663
  return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
1602
1664
  }
1603
- function nt(e, t) {
1665
+ function ct(e, t) {
1604
1666
  return {
1605
1667
  ...e,
1606
1668
  label: e.label[t] ?? e.id,
@@ -1609,7 +1671,7 @@ function nt(e, t) {
1609
1671
  }
1610
1672
  //#endregion
1611
1673
  //#region src/utilities/index.ts
1612
- var K = /* @__PURE__ */ new Map([
1674
+ var q = /* @__PURE__ */ new Map([
1613
1675
  ["arrow", "application/vnd.apache.arrow.file"],
1614
1676
  ["avro", "application/vnd.apache.avro"],
1615
1677
  ["bin", "application/octet-stream"],
@@ -1630,20 +1692,20 @@ var K = /* @__PURE__ */ new Map([
1630
1692
  ["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
1631
1693
  ["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
1632
1694
  ["xml", "application/xml"]
1633
- ]), q = "en", J = [
1695
+ ]), J = "en", Y = [
1634
1696
  ["day", 864e5],
1635
1697
  ["hour", 36e5],
1636
1698
  ["minute", 6e4],
1637
1699
  ["second", 1e3],
1638
1700
  ["millisecond", 1]
1639
- ], rt = [
1701
+ ], lt = [
1640
1702
  ["byte", 1],
1641
1703
  ["kilobyte", 1024],
1642
1704
  ["megabyte", 1048576],
1643
1705
  ["gigabyte", 1073741824],
1644
1706
  ["terabyte", 1099511627776]
1645
- ], Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map();
1646
- function Z(e, t = 2, n = t, r = q) {
1707
+ ], X = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map();
1708
+ function ut(e, t = 2, n = t, r = J) {
1647
1709
  return e == null ? "" : $(r, {
1648
1710
  localeMatcher: "best fit",
1649
1711
  maximumFractionDigits: t,
@@ -1653,18 +1715,18 @@ function Z(e, t = 2, n = t, r = q) {
1653
1715
  useGrouping: !0
1654
1716
  }).format(e);
1655
1717
  }
1656
- function it(e, t = q) {
1657
- return Z(e, 0, 0, t);
1718
+ function dt(e, t = J) {
1719
+ return ut(e, 0, 0, t);
1658
1720
  }
1659
- function at(e, t = 1, n = q) {
1721
+ function ft(e, t = 1, n = J) {
1660
1722
  return e == null || !Number.isFinite(e) ? "" : $(n, {
1661
1723
  maximumFractionDigits: t,
1662
1724
  notation: "compact"
1663
1725
  }).format(e);
1664
1726
  }
1665
- function ot(e, t = 1, n = q) {
1727
+ function pt(e, t = 1, n = J) {
1666
1728
  if (e == null || !Number.isFinite(e)) return "";
1667
- let [r, i] = rt.find(([, n]) => mt(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
1729
+ let [r, i] = lt.find(([, n]) => xt(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
1668
1730
  return $(n, {
1669
1731
  maximumFractionDigits: i === 1 ? 0 : t,
1670
1732
  style: "unit",
@@ -1672,9 +1734,9 @@ function ot(e, t = 1, n = q) {
1672
1734
  unitDisplay: i === 1 ? "long" : "short"
1673
1735
  }).format(e / i);
1674
1736
  }
1675
- function st(e, t = "millisecond", n = q) {
1737
+ function mt(e, t = "millisecond", n = J) {
1676
1738
  if (e == null || !Number.isFinite(e)) return "";
1677
- let r = Math.round(Math.abs(e)), i = J.findIndex(([, e]) => r >= e), a = i === -1 ? J.length - 1 : i, o = J.findIndex(([e]) => e === t), s = J.slice(a, Math.max(o, a) + 1), c = [];
1739
+ let r = Math.round(Math.abs(e)), i = Y.findIndex(([, e]) => r >= e), a = i === -1 ? Y.length - 1 : i, o = Y.findIndex(([e]) => e === t), s = Y.slice(a, Math.max(o, a) + 1), c = [];
1678
1740
  for (let [t, i] of s) {
1679
1741
  let a = Math.floor(r / i);
1680
1742
  if (a === 0 && c.length > 0) continue;
@@ -1686,25 +1748,25 @@ function st(e, t = "millisecond", n = q) {
1686
1748
  unitDisplay: "short"
1687
1749
  }).format(o));
1688
1750
  }
1689
- return pt(n).format(c);
1751
+ return bt(n).format(c);
1690
1752
  }
1691
- function ct(e) {
1753
+ function ht(e) {
1692
1754
  if (!e) return;
1693
1755
  let t = Q(e);
1694
1756
  return t === void 0 ? e : e.slice(0, t);
1695
1757
  }
1696
- function lt(e) {
1758
+ function gt(e) {
1697
1759
  if (!e) return;
1698
1760
  let t = Q(e);
1699
1761
  return t === void 0 ? void 0 : e.slice(t + 1);
1700
1762
  }
1701
- function ut(e) {
1702
- return e != null && K.has(e.toLowerCase());
1763
+ function _t(e) {
1764
+ return e != null && q.has(e.toLowerCase());
1703
1765
  }
1704
- function dt(e) {
1705
- return (e == null ? void 0 : K.get(e.toLowerCase())) ?? "application/octet-stream";
1766
+ function vt(e) {
1767
+ return (e == null ? void 0 : q.get(e.toLowerCase())) ?? "application/octet-stream";
1706
1768
  }
1707
- function ft(e) {
1769
+ function yt(e) {
1708
1770
  switch (e) {
1709
1771
  case "Edm.Boolean": return "boolean";
1710
1772
  case "Edm.Byte":
@@ -1729,20 +1791,20 @@ function Q(e) {
1729
1791
  let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
1730
1792
  return n > t && n < e.length - 1 ? n : void 0;
1731
1793
  }
1732
- function pt(e) {
1733
- let t = Y.get(e);
1794
+ function bt(e) {
1795
+ let t = X.get(e);
1734
1796
  return t || (t = new Intl.ListFormat(e, {
1735
1797
  style: "narrow",
1736
1798
  type: "unit"
1737
- }), Y.set(e, t)), t;
1799
+ }), X.set(e, t)), t;
1738
1800
  }
1739
1801
  function $(e, t) {
1740
- let n = `${e}|${JSON.stringify(t)}`, r = X.get(n);
1741
- return r || (r = new Intl.NumberFormat(e, t), X.set(n, r)), r;
1802
+ let n = `${e}|${JSON.stringify(t)}`, r = Z.get(n);
1803
+ return r || (r = new Intl.NumberFormat(e, t), Z.set(n, r)), r;
1742
1804
  }
1743
- function mt(e, t) {
1805
+ function xt(e, t) {
1744
1806
  let n = 10 ** t;
1745
1807
  return Math.round(e * n) / n;
1746
1808
  }
1747
1809
  //#endregion
1748
- export { I as APIError, F as AppError, R as ConnectorError, le as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, U as ENCODING_GROUP_CONFIG_MAP, W as ENCODING_TYPE_CONFIG_MAP, L as EngineError, z as FetchError, ue as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, Ne as buildFetchError, oe as componentInstanceConfigSchema, Pe as concatenateSerialisedErrorMessages, ve as connectorConfigSchema, Te as constructConnectorCategoryConfig, Ee as constructConnectorItemTypeConfig, De as constructConnectorUsageConfig, ft as convertODataTypeIdToUsageTypeId, Ae as cookbookConfigSchema, n as createLabelMap, we as determineConnectorUsageId, lt as extractExtensionFromPath, ct as extractPathWithoutExtension, Z as formatNumberAsDecimalNumber, st as formatNumberAsDuration, at as formatNumberAsSize, ot as formatNumberAsStorageSize, it as formatNumberAsWholeNumber, ce as getComponentStatus, Oe as getConnectorActionsTable, Qe as getEncodingTypeConfigs, ut as hasMimeTypeForExtension, Fe as ignoreErrors, G as isEncodingTypeId, Ke as loadPresenter, Je as loadTool, et as localiseConfig, tt as localiseConfigs, nt as localiseReference, dt as lookupMimeTypeForExtension, B as normalizeToError, We as presenterConfigSchema, Ze as resolveDecoderId, r as resolveLabel, Ie as serialiseError, Le as unserialiseError };
1810
+ export { I as APIError, F as AppError, R as ConnectorError, de as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, W as ENCODING_GROUP_CONFIG_MAP, G as ENCODING_TYPE_CONFIG_MAP, L as EngineError, z as FetchError, fe as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, Fe as buildFetchError, ce as componentInstanceConfigSchema, Ie as concatenateSerialisedErrorMessages, be as connectorConfigSchema, De as constructConnectorCategoryConfig, Oe as constructConnectorItemTypeConfig, ke as constructConnectorUsageConfig, yt as convertODataTypeIdToUsageTypeId, Me as cookbookConfigSchema, n as createLabelMap, Ee as determineConnectorUsageId, gt as extractExtensionFromPath, ht as extractPathWithoutExtension, ut as formatNumberAsDecimalNumber, mt as formatNumberAsDuration, ft as formatNumberAsSize, pt as formatNumberAsStorageSize, dt as formatNumberAsWholeNumber, ue as getComponentStatus, Ae as getConnectorActionsTable, it as getEncodingTypeConfigs, _t as hasMimeTypeForExtension, Le as ignoreErrors, K as isEncodingTypeId, U as listParserToolConfigs, Je as loadPresenter, et as loadTool, ot as localiseConfig, st as localiseConfigs, ct as localiseReference, vt as lookupMimeTypeForExtension, B as normalizeToError, Ke as presenterConfigSchema, rt as resolveDecoderId, r as resolveLabel, $e as resolveParserToolConfig, Re as serialiseError, Ze as toolConfigSchema, ze as unserialiseError };