@dpuse/dpuse-shared 1.0.199 → 1.0.202
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/README.md +10 -9
- package/dist/dpuse-shared.es.js +435 -290
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/component/connection/index.d.ts +0 -7
- package/dist/types/src/component/dataView/index.d.ts +24 -2
- package/dist/types/src/component/module/connector/index.d.ts +7 -7
- package/dist/types/src/component/module/connector/objectParsing.d.ts +6 -3
- package/dist/types/src/component/module/connector/tableSchema.d.ts +9 -0
- package/package.json +4 -4
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -166,8 +166,60 @@ function _(e, t) {
|
|
|
166
166
|
function v(e, t) {
|
|
167
167
|
return d({
|
|
168
168
|
kind: "schema",
|
|
169
|
-
type: "
|
|
169
|
+
type: "loose_object",
|
|
170
170
|
reference: v,
|
|
171
|
+
expects: "Object",
|
|
172
|
+
async: !1,
|
|
173
|
+
entries: e,
|
|
174
|
+
message: t,
|
|
175
|
+
"~run"(e, t) {
|
|
176
|
+
let n = e.value;
|
|
177
|
+
if (n && typeof n == "object") {
|
|
178
|
+
e.typed = !0, e.value = {};
|
|
179
|
+
for (let r in this.entries) {
|
|
180
|
+
let i = this.entries[r];
|
|
181
|
+
if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
182
|
+
let a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i["~run"]({ value: a }, t);
|
|
183
|
+
if (o.issues) {
|
|
184
|
+
let i = {
|
|
185
|
+
type: "object",
|
|
186
|
+
origin: "value",
|
|
187
|
+
input: n,
|
|
188
|
+
key: r,
|
|
189
|
+
value: a
|
|
190
|
+
};
|
|
191
|
+
for (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);
|
|
192
|
+
if (e.issues ||= o.issues, t.abortEarly) {
|
|
193
|
+
e.typed = !1;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
o.typed || (e.typed = !1), e.value[r] = o.value;
|
|
198
|
+
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ p(i);
|
|
199
|
+
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (s(this, "key", e, t, {
|
|
200
|
+
input: void 0,
|
|
201
|
+
expected: `"${r}"`,
|
|
202
|
+
path: [{
|
|
203
|
+
type: "object",
|
|
204
|
+
origin: "key",
|
|
205
|
+
input: n,
|
|
206
|
+
key: r,
|
|
207
|
+
value: n[r]
|
|
208
|
+
}]
|
|
209
|
+
}), t.abortEarly)) break;
|
|
210
|
+
}
|
|
211
|
+
if (!e.issues || !t.abortEarly) for (let t in n) /* @__PURE__ */ l(n, t) && !Object.prototype.hasOwnProperty.call(this.entries, t) && (e.value[t] = n[t]);
|
|
212
|
+
} else s(this, "type", e, t);
|
|
213
|
+
return e;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
218
|
+
function y(e, t) {
|
|
219
|
+
return d({
|
|
220
|
+
kind: "schema",
|
|
221
|
+
type: "nullable",
|
|
222
|
+
reference: y,
|
|
171
223
|
expects: `(${e.expects} | null)`,
|
|
172
224
|
async: !1,
|
|
173
225
|
wrapped: e,
|
|
@@ -178,11 +230,11 @@ function v(e, t) {
|
|
|
178
230
|
});
|
|
179
231
|
}
|
|
180
232
|
/* @__NO_SIDE_EFFECTS__ */
|
|
181
|
-
function
|
|
233
|
+
function b(e) {
|
|
182
234
|
return d({
|
|
183
235
|
kind: "schema",
|
|
184
236
|
type: "number",
|
|
185
|
-
reference:
|
|
237
|
+
reference: b,
|
|
186
238
|
expects: "number",
|
|
187
239
|
async: !1,
|
|
188
240
|
message: e,
|
|
@@ -192,11 +244,11 @@ function y(e) {
|
|
|
192
244
|
});
|
|
193
245
|
}
|
|
194
246
|
/* @__NO_SIDE_EFFECTS__ */
|
|
195
|
-
function
|
|
247
|
+
function x(e, t) {
|
|
196
248
|
return d({
|
|
197
249
|
kind: "schema",
|
|
198
250
|
type: "optional",
|
|
199
|
-
reference:
|
|
251
|
+
reference: x,
|
|
200
252
|
expects: `(${e.expects} | undefined)`,
|
|
201
253
|
async: !1,
|
|
202
254
|
wrapped: e,
|
|
@@ -207,11 +259,11 @@ function b(e, t) {
|
|
|
207
259
|
});
|
|
208
260
|
}
|
|
209
261
|
/* @__NO_SIDE_EFFECTS__ */
|
|
210
|
-
function
|
|
262
|
+
function S(e, t, n) {
|
|
211
263
|
return d({
|
|
212
264
|
kind: "schema",
|
|
213
265
|
type: "record",
|
|
214
|
-
reference:
|
|
266
|
+
reference: S,
|
|
215
267
|
expects: "Object",
|
|
216
268
|
async: !1,
|
|
217
269
|
key: e,
|
|
@@ -260,11 +312,11 @@ function x(e, t, n) {
|
|
|
260
312
|
});
|
|
261
313
|
}
|
|
262
314
|
/* @__NO_SIDE_EFFECTS__ */
|
|
263
|
-
function
|
|
315
|
+
function C(e, t) {
|
|
264
316
|
return d({
|
|
265
317
|
kind: "schema",
|
|
266
318
|
type: "strict_object",
|
|
267
|
-
reference:
|
|
319
|
+
reference: C,
|
|
268
320
|
expects: "Object",
|
|
269
321
|
async: !1,
|
|
270
322
|
entries: e,
|
|
@@ -327,11 +379,11 @@ function S(e, t) {
|
|
|
327
379
|
});
|
|
328
380
|
}
|
|
329
381
|
/* @__NO_SIDE_EFFECTS__ */
|
|
330
|
-
function
|
|
382
|
+
function w(e) {
|
|
331
383
|
return d({
|
|
332
384
|
kind: "schema",
|
|
333
385
|
type: "string",
|
|
334
|
-
reference:
|
|
386
|
+
reference: w,
|
|
335
387
|
expects: "string",
|
|
336
388
|
async: !1,
|
|
337
389
|
message: e,
|
|
@@ -341,18 +393,18 @@ function C(e) {
|
|
|
341
393
|
});
|
|
342
394
|
}
|
|
343
395
|
/* @__NO_SIDE_EFFECTS__ */
|
|
344
|
-
function
|
|
396
|
+
function T(e) {
|
|
345
397
|
let t;
|
|
346
398
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
347
399
|
else t = n.issues;
|
|
348
400
|
return t;
|
|
349
401
|
}
|
|
350
402
|
/* @__NO_SIDE_EFFECTS__ */
|
|
351
|
-
function
|
|
403
|
+
function ee(e, t) {
|
|
352
404
|
return d({
|
|
353
405
|
kind: "schema",
|
|
354
406
|
type: "union",
|
|
355
|
-
reference:
|
|
407
|
+
reference: ee,
|
|
356
408
|
expects: /* @__PURE__ */ u(e.map((e) => e.expects), "|"),
|
|
357
409
|
async: !1,
|
|
358
410
|
options: e,
|
|
@@ -372,15 +424,15 @@ function te(e, t) {
|
|
|
372
424
|
if (n) return n;
|
|
373
425
|
if (r) {
|
|
374
426
|
if (r.length === 1) return r[0];
|
|
375
|
-
s(this, "type", e, t, { issues: /* @__PURE__ */
|
|
427
|
+
s(this, "type", e, t, { issues: /* @__PURE__ */ T(r) }), e.typed = !0;
|
|
376
428
|
} else if (i?.length === 1) return i[0];
|
|
377
|
-
else s(this, "type", e, t, { issues: /* @__PURE__ */
|
|
429
|
+
else s(this, "type", e, t, { issues: /* @__PURE__ */ T(i) });
|
|
378
430
|
return e;
|
|
379
431
|
}
|
|
380
432
|
});
|
|
381
433
|
}
|
|
382
434
|
/* @__NO_SIDE_EFFECTS__ */
|
|
383
|
-
function
|
|
435
|
+
function te(...e) {
|
|
384
436
|
return d({
|
|
385
437
|
...e[0],
|
|
386
438
|
pipe: e,
|
|
@@ -396,23 +448,33 @@ function ne(...e) {
|
|
|
396
448
|
}
|
|
397
449
|
});
|
|
398
450
|
}
|
|
451
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
452
|
+
function E(e, t, n) {
|
|
453
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ a(n));
|
|
454
|
+
return {
|
|
455
|
+
typed: r.typed,
|
|
456
|
+
success: !r.issues,
|
|
457
|
+
output: r.value,
|
|
458
|
+
issues: r.issues
|
|
459
|
+
};
|
|
460
|
+
}
|
|
399
461
|
// src/locale/locale.schema.ts
|
|
400
|
-
var
|
|
401
|
-
en: /* @__PURE__ */
|
|
402
|
-
es: /* @__PURE__ */
|
|
403
|
-
}),
|
|
404
|
-
id: /* @__PURE__ */
|
|
405
|
-
label: /* @__PURE__ */
|
|
406
|
-
en: /* @__PURE__ */
|
|
407
|
-
es: /* @__PURE__ */
|
|
462
|
+
var D = /* @__PURE__ */ C({
|
|
463
|
+
en: /* @__PURE__ */ w(),
|
|
464
|
+
es: /* @__PURE__ */ w()
|
|
465
|
+
}), ne = {
|
|
466
|
+
id: /* @__PURE__ */ w(),
|
|
467
|
+
label: /* @__PURE__ */ C({
|
|
468
|
+
en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
469
|
+
es: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
408
470
|
}),
|
|
409
|
-
description: /* @__PURE__ */
|
|
410
|
-
en: /* @__PURE__ */
|
|
411
|
-
es: /* @__PURE__ */
|
|
471
|
+
description: /* @__PURE__ */ C({
|
|
472
|
+
en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
473
|
+
es: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
412
474
|
}),
|
|
413
|
-
icon: /* @__PURE__ */
|
|
414
|
-
iconDark: /* @__PURE__ */
|
|
415
|
-
},
|
|
475
|
+
icon: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
476
|
+
iconDark: /* @__PURE__ */ y(/* @__PURE__ */ w())
|
|
477
|
+
}, O = (e) => /* @__PURE__ */ ee(e.map((e) => /* @__PURE__ */ _(e))), re = O([
|
|
416
478
|
"app",
|
|
417
479
|
"connector",
|
|
418
480
|
"connectorConnection",
|
|
@@ -434,32 +496,32 @@ var w = /* @__PURE__ */ S({
|
|
|
434
496
|
"presenter",
|
|
435
497
|
"presenterPresentation",
|
|
436
498
|
"tool"
|
|
437
|
-
]),
|
|
499
|
+
]), ie = O([
|
|
438
500
|
"danger",
|
|
439
501
|
"success",
|
|
440
502
|
"warning"
|
|
441
|
-
]),
|
|
503
|
+
]), ae = O([
|
|
442
504
|
"alpha",
|
|
443
505
|
"beta",
|
|
444
506
|
"releaseCandidate",
|
|
445
507
|
"generalAvailability"
|
|
446
|
-
]),
|
|
447
|
-
color:
|
|
448
|
-
label: /* @__PURE__ */
|
|
449
|
-
}),
|
|
450
|
-
...
|
|
451
|
-
typeId:
|
|
452
|
-
},
|
|
453
|
-
...
|
|
454
|
-
order: /* @__PURE__ */
|
|
455
|
-
path: /* @__PURE__ */
|
|
508
|
+
]), oe = /* @__PURE__ */ C({
|
|
509
|
+
color: ie,
|
|
510
|
+
label: /* @__PURE__ */ w()
|
|
511
|
+
}), se = {
|
|
512
|
+
...ne,
|
|
513
|
+
typeId: re
|
|
514
|
+
}, ce = /* @__PURE__ */ C({
|
|
515
|
+
...se,
|
|
516
|
+
order: /* @__PURE__ */ b(),
|
|
517
|
+
path: /* @__PURE__ */ w()
|
|
456
518
|
}), le = {
|
|
457
|
-
...
|
|
458
|
-
firstCreatedAt: /* @__PURE__ */
|
|
459
|
-
lastUpdatedAt: /* @__PURE__ */
|
|
460
|
-
status: /* @__PURE__ */
|
|
461
|
-
statusId: /* @__PURE__ */
|
|
462
|
-
}, ue = /* @__PURE__ */
|
|
519
|
+
...se,
|
|
520
|
+
firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
521
|
+
lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
522
|
+
status: /* @__PURE__ */ y(oe),
|
|
523
|
+
statusId: /* @__PURE__ */ y(ae)
|
|
524
|
+
}, ue = /* @__PURE__ */ C({ ...le }), de = [
|
|
463
525
|
{
|
|
464
526
|
id: "alpha",
|
|
465
527
|
color: "danger",
|
|
@@ -507,8 +569,8 @@ function fe(e, t = "en") {
|
|
|
507
569
|
label: e
|
|
508
570
|
};
|
|
509
571
|
}
|
|
510
|
-
// src/component/
|
|
511
|
-
var pe = [
|
|
572
|
+
// src/component/dataView/index.ts
|
|
573
|
+
var pe = [
|
|
512
574
|
{
|
|
513
575
|
id: "arrow",
|
|
514
576
|
isTable: !1,
|
|
@@ -587,7 +649,7 @@ var pe = [",", "."], me = [
|
|
|
587
649
|
isText: !1,
|
|
588
650
|
supportId: "unsupported"
|
|
589
651
|
}
|
|
590
|
-
],
|
|
652
|
+
], k = [
|
|
591
653
|
{
|
|
592
654
|
id: ",",
|
|
593
655
|
character: ","
|
|
@@ -628,7 +690,7 @@ var pe = [",", "."], me = [
|
|
|
628
690
|
id: "0x1E",
|
|
629
691
|
character: ""
|
|
630
692
|
}
|
|
631
|
-
],
|
|
693
|
+
], me = [
|
|
632
694
|
{
|
|
633
695
|
id: "string",
|
|
634
696
|
defaultSubtypeId: "plain",
|
|
@@ -685,11 +747,11 @@ var pe = [",", "."], me = [
|
|
|
685
747
|
isChoosable: !1,
|
|
686
748
|
subtypeIds: []
|
|
687
749
|
}
|
|
688
|
-
];
|
|
750
|
+
], he = [",", "."];
|
|
689
751
|
function ge(e) {
|
|
690
|
-
return
|
|
752
|
+
return k.find(({ id: t }) => t === e)?.character ?? e;
|
|
691
753
|
}
|
|
692
|
-
|
|
754
|
+
O([
|
|
693
755
|
"app",
|
|
694
756
|
"engine",
|
|
695
757
|
"connector",
|
|
@@ -698,16 +760,16 @@ T([
|
|
|
698
760
|
"tool"
|
|
699
761
|
]);
|
|
700
762
|
// src/component/module/moduleConfig.schema.ts
|
|
701
|
-
var
|
|
763
|
+
var A = {
|
|
702
764
|
...le,
|
|
703
|
-
vendorAccountURL: /* @__PURE__ */
|
|
704
|
-
vendorDocumentationURL: /* @__PURE__ */
|
|
705
|
-
vendorHomeURL: /* @__PURE__ */
|
|
706
|
-
version: /* @__PURE__ */
|
|
765
|
+
vendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
766
|
+
vendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
767
|
+
vendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
768
|
+
version: /* @__PURE__ */ w()
|
|
707
769
|
};
|
|
708
|
-
({ ...
|
|
770
|
+
({ ...A });
|
|
709
771
|
// src/component/module/connector/connectorConfig.schema.ts
|
|
710
|
-
var _e =
|
|
772
|
+
var _e = O([
|
|
711
773
|
"abortOperation",
|
|
712
774
|
"auditObjectContent",
|
|
713
775
|
"closeStore",
|
|
@@ -727,43 +789,43 @@ var _e = T([
|
|
|
727
789
|
"retrieveChunks",
|
|
728
790
|
"retrieveRecords",
|
|
729
791
|
"upsertRecords"
|
|
730
|
-
]), ve =
|
|
792
|
+
]), ve = O([
|
|
731
793
|
"application",
|
|
732
794
|
"curatedDataset",
|
|
733
795
|
"database",
|
|
734
796
|
"fileStore"
|
|
735
|
-
]), ye = /* @__PURE__ */
|
|
797
|
+
]), ye = /* @__PURE__ */ C({ label: D }), be = O([
|
|
736
798
|
"apiEndpoint",
|
|
737
799
|
"file",
|
|
738
800
|
"table"
|
|
739
|
-
]), xe =
|
|
801
|
+
]), xe = O([
|
|
740
802
|
"bidirectional",
|
|
741
803
|
"destination",
|
|
742
804
|
"source",
|
|
743
805
|
"unknown"
|
|
744
|
-
]), Se = /* @__PURE__ */
|
|
745
|
-
authMethodId:
|
|
806
|
+
]), Se = /* @__PURE__ */ C({ label: D }), Ce = /* @__PURE__ */ C({
|
|
807
|
+
authMethodId: O([
|
|
746
808
|
"apiKey",
|
|
747
809
|
"disabled",
|
|
748
810
|
"oAuth2",
|
|
749
811
|
"none"
|
|
750
812
|
]),
|
|
751
|
-
activeConnectionCount: /* @__PURE__ */
|
|
752
|
-
canDescribe: /* @__PURE__ */
|
|
753
|
-
id: /* @__PURE__ */
|
|
754
|
-
label: /* @__PURE__ */
|
|
755
|
-
maxConnectionCount: /* @__PURE__ */
|
|
756
|
-
params: /* @__PURE__ */
|
|
757
|
-
}), we = /* @__PURE__ */
|
|
758
|
-
...
|
|
813
|
+
activeConnectionCount: /* @__PURE__ */ x(/* @__PURE__ */ b()),
|
|
814
|
+
canDescribe: /* @__PURE__ */ x(/* @__PURE__ */ g()),
|
|
815
|
+
id: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
816
|
+
label: /* @__PURE__ */ x(D),
|
|
817
|
+
maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
818
|
+
params: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
|
|
819
|
+
}), we = /* @__PURE__ */ C({
|
|
820
|
+
...A,
|
|
759
821
|
typeId: /* @__PURE__ */ _("connector"),
|
|
760
822
|
actionNames: /* @__PURE__ */ h(_e),
|
|
761
|
-
category: /* @__PURE__ */
|
|
823
|
+
category: /* @__PURE__ */ y(ye),
|
|
762
824
|
categoryId: ve,
|
|
763
|
-
implementations: /* @__PURE__ */
|
|
825
|
+
implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), Ce),
|
|
764
826
|
itemTypeId: be,
|
|
765
|
-
usage: /* @__PURE__ */
|
|
766
|
-
usageId: /* @__PURE__ */
|
|
827
|
+
usage: /* @__PURE__ */ y(Se),
|
|
828
|
+
usageId: /* @__PURE__ */ y(xe)
|
|
767
829
|
}), Te = {
|
|
768
830
|
arabic: {
|
|
769
831
|
id: "arabic",
|
|
@@ -1711,16 +1773,16 @@ var _e = T([
|
|
|
1711
1773
|
textDecoderId: "windows-1257",
|
|
1712
1774
|
iconvLiteDecoderId: "windows1257"
|
|
1713
1775
|
}
|
|
1714
|
-
},
|
|
1715
|
-
function
|
|
1716
|
-
return Object.hasOwn(
|
|
1776
|
+
}, j = Te, M = Ee;
|
|
1777
|
+
function De(e) {
|
|
1778
|
+
return Object.hasOwn(M, e);
|
|
1717
1779
|
}
|
|
1718
|
-
function
|
|
1719
|
-
return
|
|
1780
|
+
function Oe(e) {
|
|
1781
|
+
return De(e) ? M[e].textDecoderId ?? e : e;
|
|
1720
1782
|
}
|
|
1721
|
-
function
|
|
1722
|
-
return Array.from(Object.values(
|
|
1723
|
-
let o = t == null ? "" :
|
|
1783
|
+
function ke(e = "en") {
|
|
1784
|
+
return Array.from(Object.values(M), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {
|
|
1785
|
+
let o = t == null ? "" : Ae(t, e);
|
|
1724
1786
|
return {
|
|
1725
1787
|
id: r,
|
|
1726
1788
|
groupLabel: o,
|
|
@@ -1732,62 +1794,62 @@ function Oe(e = "en") {
|
|
|
1732
1794
|
};
|
|
1733
1795
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));
|
|
1734
1796
|
}
|
|
1735
|
-
function
|
|
1736
|
-
let n =
|
|
1797
|
+
function Ae(e, t) {
|
|
1798
|
+
let n = j[e].label;
|
|
1737
1799
|
return n[t] ?? n.en ?? e;
|
|
1738
1800
|
}
|
|
1739
1801
|
// src/errors/index.ts
|
|
1740
|
-
var
|
|
1802
|
+
var je = 2048, N = "[REDACTED]", Me = 10, P = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Ne = [
|
|
1741
1803
|
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
|
|
1742
|
-
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) =>
|
|
1804
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => P.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
|
|
1743
1805
|
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
|
|
1744
1806
|
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
|
|
1745
1807
|
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
|
|
1746
|
-
],
|
|
1808
|
+
], F = class extends Error {
|
|
1747
1809
|
data;
|
|
1748
1810
|
locator;
|
|
1749
1811
|
constructor(e, t, n, r) {
|
|
1750
1812
|
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
1751
1813
|
}
|
|
1752
|
-
},
|
|
1814
|
+
}, I = class extends F {
|
|
1753
1815
|
constructor(e, t, n, r) {
|
|
1754
1816
|
super(e, t, n, r), this.name = "AppError";
|
|
1755
1817
|
}
|
|
1756
|
-
},
|
|
1818
|
+
}, Pe = class extends F {
|
|
1757
1819
|
constructor(e, t, n, r) {
|
|
1758
1820
|
super(e, t, n, r), this.name = "APIError";
|
|
1759
1821
|
}
|
|
1760
|
-
},
|
|
1822
|
+
}, Fe = class extends F {
|
|
1761
1823
|
constructor(e, t, n, r) {
|
|
1762
1824
|
super(e, t, n, r), this.name = "EngineError";
|
|
1763
1825
|
}
|
|
1764
|
-
},
|
|
1826
|
+
}, Ie = class extends F {
|
|
1765
1827
|
constructor(e, t, n, r) {
|
|
1766
1828
|
super(e, t, n, r), this.name = "ConnectorError";
|
|
1767
1829
|
}
|
|
1768
|
-
},
|
|
1830
|
+
}, L = class extends F {
|
|
1769
1831
|
constructor(e, t, n, r) {
|
|
1770
1832
|
super(e, t, n, r), this.name = "FetchError";
|
|
1771
1833
|
}
|
|
1772
1834
|
};
|
|
1773
|
-
async function
|
|
1835
|
+
async function Le(e, t, n) {
|
|
1774
1836
|
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
1775
1837
|
try {
|
|
1776
1838
|
a = await e.text();
|
|
1777
1839
|
} catch (e) {
|
|
1778
|
-
a = `<body unavailable: ${
|
|
1840
|
+
a = `<body unavailable: ${R(e).message}>`;
|
|
1779
1841
|
}
|
|
1780
|
-
return new
|
|
1842
|
+
return new L(i, n, { body: Ge(a) });
|
|
1781
1843
|
}
|
|
1782
|
-
function
|
|
1844
|
+
function Re(e) {
|
|
1783
1845
|
return e.map((e) => e.message).join(" ");
|
|
1784
1846
|
}
|
|
1785
|
-
function
|
|
1847
|
+
function ze(e) {
|
|
1786
1848
|
try {
|
|
1787
1849
|
e();
|
|
1788
1850
|
} catch {}
|
|
1789
1851
|
}
|
|
1790
|
-
function
|
|
1852
|
+
function R(e) {
|
|
1791
1853
|
if (e instanceof Error) return e;
|
|
1792
1854
|
if (typeof e == "string") return Error(e);
|
|
1793
1855
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
|
|
@@ -1799,24 +1861,24 @@ function L(e) {
|
|
|
1799
1861
|
}
|
|
1800
1862
|
return /* @__PURE__ */ Error("Unknown error");
|
|
1801
1863
|
}
|
|
1802
|
-
function
|
|
1803
|
-
let t = /* @__PURE__ */ new Set(), n = [], r =
|
|
1864
|
+
function Be(e) {
|
|
1865
|
+
let t = /* @__PURE__ */ new Set(), n = [], r = R(e);
|
|
1804
1866
|
for (; r != null && !t.has(r);) {
|
|
1805
1867
|
t.add(r);
|
|
1806
|
-
let [e, i] =
|
|
1868
|
+
let [e, i] = Ke(r), a = We(e);
|
|
1807
1869
|
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
1808
1870
|
}
|
|
1809
1871
|
return n;
|
|
1810
1872
|
}
|
|
1811
|
-
function
|
|
1873
|
+
function Ve(e) {
|
|
1812
1874
|
let t;
|
|
1813
1875
|
for (let n of e.toReversed()) {
|
|
1814
|
-
let e =
|
|
1876
|
+
let e = Ue(n, t);
|
|
1815
1877
|
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
1816
1878
|
}
|
|
1817
1879
|
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
1818
1880
|
}
|
|
1819
|
-
function
|
|
1881
|
+
function He(e) {
|
|
1820
1882
|
let t;
|
|
1821
1883
|
try {
|
|
1822
1884
|
t = JSON.stringify(e);
|
|
@@ -1825,13 +1887,13 @@ function Ve(e) {
|
|
|
1825
1887
|
}
|
|
1826
1888
|
return t === "" && (t = "Unknown error"), t;
|
|
1827
1889
|
}
|
|
1828
|
-
function
|
|
1890
|
+
function Ue(e, t) {
|
|
1829
1891
|
switch (e.name) {
|
|
1830
|
-
case "APIError": return new
|
|
1831
|
-
case "AppError": return new
|
|
1832
|
-
case "ConnectorError": return new
|
|
1833
|
-
case "EngineError": return new
|
|
1834
|
-
case "FetchError": return new
|
|
1892
|
+
case "APIError": return new Pe(e.message, e.locator, e.data, { cause: t });
|
|
1893
|
+
case "AppError": return new I(e.message, e.locator, e.data, { cause: t });
|
|
1894
|
+
case "ConnectorError": return new Ie(e.message, e.locator, e.data, { cause: t });
|
|
1895
|
+
case "EngineError": return new Fe(e.message, e.locator, e.data, { cause: t });
|
|
1896
|
+
case "FetchError": return new L(e.message, e.locator, e.data, { cause: t });
|
|
1835
1897
|
default: {
|
|
1836
1898
|
let n = e.name;
|
|
1837
1899
|
return new class extends Error {
|
|
@@ -1840,29 +1902,29 @@ function He(e, t) {
|
|
|
1840
1902
|
}
|
|
1841
1903
|
}
|
|
1842
1904
|
}
|
|
1843
|
-
function
|
|
1905
|
+
function We(e) {
|
|
1844
1906
|
let { data: t, message: n, stack: r } = e;
|
|
1845
1907
|
return {
|
|
1846
1908
|
...e,
|
|
1847
|
-
data: t === void 0 ? void 0 :
|
|
1848
|
-
message:
|
|
1849
|
-
stack: r === void 0 ? void 0 :
|
|
1909
|
+
data: t === void 0 ? void 0 : B(t, /* @__PURE__ */ new WeakSet(), 0),
|
|
1910
|
+
message: z(n),
|
|
1911
|
+
stack: r === void 0 ? void 0 : z(r)
|
|
1850
1912
|
};
|
|
1851
1913
|
}
|
|
1852
|
-
function
|
|
1914
|
+
function z(e) {
|
|
1853
1915
|
let t = e;
|
|
1854
|
-
for (let [e, n] of
|
|
1916
|
+
for (let [e, n] of Ne) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
1855
1917
|
return t;
|
|
1856
1918
|
}
|
|
1857
|
-
function
|
|
1858
|
-
return typeof e == "string" ?
|
|
1859
|
-
}
|
|
1860
|
-
function We(e) {
|
|
1861
|
-
if (e != null && e !== "") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;
|
|
1919
|
+
function B(e, t, n) {
|
|
1920
|
+
return typeof e == "string" ? z(e) : typeof e != "object" || !e ? e : n >= Me ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => B(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && P.test(e) ? N : B(r, t, n + 1)])));
|
|
1862
1921
|
}
|
|
1863
1922
|
function Ge(e) {
|
|
1864
|
-
|
|
1865
|
-
|
|
1923
|
+
if (e != null && e !== "") return e.length > je ? `${e.slice(0, je)}... [truncated]` : e;
|
|
1924
|
+
}
|
|
1925
|
+
function Ke(e) {
|
|
1926
|
+
let t = e.cause == null ? null : R(e.cause);
|
|
1927
|
+
if (e instanceof F) return [{
|
|
1866
1928
|
data: e.data,
|
|
1867
1929
|
locator: e.locator,
|
|
1868
1930
|
message: e.message,
|
|
@@ -1879,12 +1941,12 @@ function Ge(e) {
|
|
|
1879
1941
|
}, t] : [{
|
|
1880
1942
|
data: n,
|
|
1881
1943
|
locator: "",
|
|
1882
|
-
message:
|
|
1944
|
+
message: He(e),
|
|
1883
1945
|
name: "Error",
|
|
1884
1946
|
stack: void 0
|
|
1885
1947
|
}, null];
|
|
1886
1948
|
}
|
|
1887
|
-
var
|
|
1949
|
+
var qe = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(O([
|
|
1888
1950
|
"arrow",
|
|
1889
1951
|
"avro",
|
|
1890
1952
|
"dtv",
|
|
@@ -1897,15 +1959,15 @@ var Ke = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ ne(/* @__PURE__ */ h
|
|
|
1897
1959
|
"sqlite",
|
|
1898
1960
|
"xlsx",
|
|
1899
1961
|
"xml"
|
|
1900
|
-
])), /* @__PURE__ */ f(1)) }),
|
|
1901
|
-
...
|
|
1962
|
+
])), /* @__PURE__ */ f(1)) }), Je = /* @__PURE__ */ h(/* @__PURE__ */ w()), Ye = /* @__PURE__ */ C({
|
|
1963
|
+
...A,
|
|
1902
1964
|
typeId: /* @__PURE__ */ _("tool"),
|
|
1903
|
-
actionNames: /* @__PURE__ */
|
|
1904
|
-
parser: /* @__PURE__ */
|
|
1965
|
+
actionNames: /* @__PURE__ */ x(Je),
|
|
1966
|
+
parser: /* @__PURE__ */ x(qe)
|
|
1905
1967
|
});
|
|
1906
1968
|
// src/component/module/tool/delimitedText.ts
|
|
1907
|
-
async function
|
|
1908
|
-
let r =
|
|
1969
|
+
async function Xe(e, t, n) {
|
|
1970
|
+
let r = Ze(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Qe(e, t.valueDelimiterIds, t.isComplete, n);
|
|
1909
1971
|
return {
|
|
1910
1972
|
issues: i,
|
|
1911
1973
|
parsedRecords: a,
|
|
@@ -1913,16 +1975,16 @@ async function Ye(e, t, n) {
|
|
|
1913
1975
|
valueDelimiterId: o
|
|
1914
1976
|
};
|
|
1915
1977
|
}
|
|
1916
|
-
function
|
|
1978
|
+
function Ze(e) {
|
|
1917
1979
|
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
1918
1980
|
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
1919
1981
|
}
|
|
1920
|
-
async function
|
|
1982
|
+
async function Qe(e, t, n, r) {
|
|
1921
1983
|
let i, a, o, s = [], c, l = !1;
|
|
1922
1984
|
for (let u of t) {
|
|
1923
1985
|
let { issues: t, records: d } = await r(e, u, n);
|
|
1924
1986
|
if (t.length > 0) {
|
|
1925
|
-
c =
|
|
1987
|
+
c = $e(c, {
|
|
1926
1988
|
delimiter: u,
|
|
1927
1989
|
issues: t,
|
|
1928
1990
|
records: d
|
|
@@ -1930,7 +1992,7 @@ async function Ze(e, t, n, r) {
|
|
|
1930
1992
|
continue;
|
|
1931
1993
|
}
|
|
1932
1994
|
if (l = !0, d.length === 0) continue;
|
|
1933
|
-
let { averageValueCount: f, sumOfValueCountDiffs: p } =
|
|
1995
|
+
let { averageValueCount: f, sumOfValueCountDiffs: p } = et(d);
|
|
1934
1996
|
(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);
|
|
1935
1997
|
}
|
|
1936
1998
|
if (!l && c != null) {
|
|
@@ -1938,19 +2000,19 @@ async function Ze(e, t, n, r) {
|
|
|
1938
2000
|
return {
|
|
1939
2001
|
issues: t,
|
|
1940
2002
|
parsedRecords: n,
|
|
1941
|
-
valueDelimiterId:
|
|
2003
|
+
valueDelimiterId: V(n) ? e : void 0
|
|
1942
2004
|
};
|
|
1943
2005
|
}
|
|
1944
2006
|
return {
|
|
1945
2007
|
issues: [],
|
|
1946
2008
|
parsedRecords: s,
|
|
1947
|
-
valueDelimiterId: i != null &&
|
|
2009
|
+
valueDelimiterId: i != null && V(s) ? i : void 0
|
|
1948
2010
|
};
|
|
1949
2011
|
}
|
|
1950
|
-
function
|
|
2012
|
+
function $e(e, t) {
|
|
1951
2013
|
return e == null || t.issues.length < e.issues.length ? t : e;
|
|
1952
2014
|
}
|
|
1953
|
-
function
|
|
2015
|
+
function et(e) {
|
|
1954
2016
|
let t = 0, n = 0, r;
|
|
1955
2017
|
for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
|
|
1956
2018
|
return {
|
|
@@ -1958,39 +2020,39 @@ function $e(e) {
|
|
|
1958
2020
|
sumOfValueCountDiffs: n
|
|
1959
2021
|
};
|
|
1960
2022
|
}
|
|
1961
|
-
function
|
|
2023
|
+
function V(e) {
|
|
1962
2024
|
let t = /* @__PURE__ */ new Map();
|
|
1963
2025
|
for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
|
|
1964
2026
|
let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
|
|
1965
2027
|
return n > 1 && r * 2 > e.length;
|
|
1966
2028
|
}
|
|
1967
2029
|
// src/component/module/tool/index.ts
|
|
1968
|
-
var
|
|
1969
|
-
function
|
|
2030
|
+
var tt = "https://engine-eu.dpuse.app/tools", nt = { dtv: "dpuse-tool-rust-csv-core-parser" }, H = "dpuse-tool-";
|
|
2031
|
+
function U(e, t) {
|
|
1970
2032
|
return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
|
|
1971
2033
|
}
|
|
1972
|
-
function
|
|
1973
|
-
let r =
|
|
2034
|
+
function W(e, t, n) {
|
|
2035
|
+
let r = U(e, t), [i] = r;
|
|
1974
2036
|
if (i === void 0) {
|
|
1975
2037
|
let n = {
|
|
1976
2038
|
availableToolIds: e.map((e) => e.id),
|
|
1977
2039
|
dataFormatId: t
|
|
1978
2040
|
};
|
|
1979
|
-
throw new
|
|
2041
|
+
throw new I(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
1980
2042
|
}
|
|
1981
|
-
let a =
|
|
2043
|
+
let a = nt[t];
|
|
1982
2044
|
return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
|
|
1983
2045
|
}
|
|
1984
|
-
async function
|
|
1985
|
-
let n = `${
|
|
2046
|
+
async function rt(e, t) {
|
|
2047
|
+
let n = `${H}${t}`, r = e.find((e) => e.id === n);
|
|
1986
2048
|
if (!r) {
|
|
1987
2049
|
let r = {
|
|
1988
2050
|
availableToolIds: e.map((e) => e.id),
|
|
1989
2051
|
toolName: n
|
|
1990
2052
|
};
|
|
1991
|
-
throw new
|
|
2053
|
+
throw new I(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
1992
2054
|
}
|
|
1993
|
-
let i = `${
|
|
2055
|
+
let i = `${tt}/${t}_v${r.version}/${n}.es.js`;
|
|
1994
2056
|
try {
|
|
1995
2057
|
return new (await (import(
|
|
1996
2058
|
/* @vite-ignore */
|
|
@@ -2002,21 +2064,21 @@ async function W(e, t) {
|
|
|
2002
2064
|
url: i,
|
|
2003
2065
|
version: r.version
|
|
2004
2066
|
};
|
|
2005
|
-
throw new
|
|
2067
|
+
throw new I(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
|
|
2006
2068
|
}
|
|
2007
2069
|
}
|
|
2008
2070
|
// src/component/module/connector/objectParsing.ts
|
|
2009
|
-
var
|
|
2010
|
-
async function
|
|
2011
|
-
let { asAt: t,
|
|
2012
|
-
if (
|
|
2071
|
+
var it = "\n", G = ",", at = 13, K = 10, ot = 34, q = 1048576;
|
|
2072
|
+
async function st(e) {
|
|
2073
|
+
let { asAt: t, declaredColumnConfigs: n, filePreview: r, hasHeaders: i, inferDataTypes: a, parserId: o, startedAt: s, toolConfigs: c, valueDelimiterId: l } = e, { dataFormatId: u, text: d } = r, f = r.bytes.length;
|
|
2074
|
+
if (f === 0) return {
|
|
2013
2075
|
contentAuditConfig: J({
|
|
2014
2076
|
asAt: t,
|
|
2015
2077
|
columns: [],
|
|
2016
2078
|
isComplete: !0,
|
|
2017
2079
|
recordCount: 0,
|
|
2018
|
-
size:
|
|
2019
|
-
startedAt:
|
|
2080
|
+
size: f,
|
|
2081
|
+
startedAt: s
|
|
2020
2082
|
}),
|
|
2021
2083
|
sampleConfig: {
|
|
2022
2084
|
issues: [{
|
|
@@ -2039,72 +2101,74 @@ async function at(e) {
|
|
|
2039
2101
|
encodingId: void 0,
|
|
2040
2102
|
fileType: void 0,
|
|
2041
2103
|
hasHeaders: !1,
|
|
2042
|
-
|
|
2104
|
+
parserId: void 0,
|
|
2105
|
+
recordDelimiterId: it,
|
|
2043
2106
|
valueDelimiterId: G
|
|
2044
2107
|
}
|
|
2045
2108
|
};
|
|
2046
|
-
if (
|
|
2109
|
+
if (u == null || d == null || U(c, u).length === 0) return {
|
|
2047
2110
|
contentAuditConfig: J({
|
|
2048
2111
|
asAt: t,
|
|
2049
2112
|
columns: [],
|
|
2050
|
-
isComplete:
|
|
2113
|
+
isComplete: r.isComplete,
|
|
2051
2114
|
recordCount: 0,
|
|
2052
|
-
size:
|
|
2053
|
-
startedAt:
|
|
2115
|
+
size: f,
|
|
2116
|
+
startedAt: s
|
|
2054
2117
|
}),
|
|
2055
2118
|
sampleConfig: {
|
|
2056
2119
|
issues: [],
|
|
2057
2120
|
parsedRecords: [],
|
|
2058
|
-
size:
|
|
2059
|
-
text:
|
|
2121
|
+
size: f,
|
|
2122
|
+
text: d
|
|
2060
2123
|
},
|
|
2061
2124
|
readingConfig: {
|
|
2062
|
-
dataFormatId:
|
|
2063
|
-
encodingConfidenceLevel:
|
|
2064
|
-
encodingId:
|
|
2065
|
-
fileType:
|
|
2125
|
+
dataFormatId: u ?? "unknown",
|
|
2126
|
+
encodingConfidenceLevel: r.encodingConfidenceLevel,
|
|
2127
|
+
encodingId: r.encodingId,
|
|
2128
|
+
fileType: r.fileTypeConfig,
|
|
2066
2129
|
hasHeaders: void 0,
|
|
2130
|
+
parserId: void 0,
|
|
2067
2131
|
recordDelimiterId: void 0,
|
|
2068
2132
|
valueDelimiterId: void 0
|
|
2069
2133
|
}
|
|
2070
2134
|
};
|
|
2071
|
-
let { parser:
|
|
2072
|
-
dataFormatId:
|
|
2073
|
-
isComplete:
|
|
2074
|
-
valueDelimiterIds:
|
|
2075
|
-
}),
|
|
2076
|
-
dataFormatId:
|
|
2077
|
-
isComplete:
|
|
2135
|
+
let { parser: p, parserId: m } = await Y(c, u, o), h = l == null ? k.map(({ id: e }) => e) : [l], g = await p.parseText(d, {
|
|
2136
|
+
dataFormatId: u,
|
|
2137
|
+
isComplete: r.isComplete,
|
|
2138
|
+
valueDelimiterIds: h
|
|
2139
|
+
}), _ = u === "dtv", v = _ && l == null && g.valueDelimiterId == null ? await p.parseText(d, {
|
|
2140
|
+
dataFormatId: u,
|
|
2141
|
+
isComplete: r.isComplete,
|
|
2078
2142
|
valueDelimiterIds: [G]
|
|
2079
|
-
}) :
|
|
2143
|
+
}) : g, y = a(v.parsedRecords, i, n);
|
|
2080
2144
|
return {
|
|
2081
2145
|
contentAuditConfig: J({
|
|
2082
2146
|
asAt: t,
|
|
2083
|
-
columns:
|
|
2084
|
-
isComplete:
|
|
2085
|
-
recordCount: Math.max(0,
|
|
2086
|
-
size:
|
|
2087
|
-
startedAt:
|
|
2147
|
+
columns: y.columnConfigs,
|
|
2148
|
+
isComplete: r.isComplete,
|
|
2149
|
+
recordCount: Math.max(0, v.parsedRecords.length - +!!y.hasHeaders),
|
|
2150
|
+
size: f,
|
|
2151
|
+
startedAt: s
|
|
2088
2152
|
}),
|
|
2089
2153
|
sampleConfig: {
|
|
2090
|
-
issues:
|
|
2091
|
-
parsedRecords:
|
|
2092
|
-
size:
|
|
2093
|
-
text:
|
|
2154
|
+
issues: v.issues,
|
|
2155
|
+
parsedRecords: v.parsedRecords,
|
|
2156
|
+
size: f,
|
|
2157
|
+
text: d
|
|
2094
2158
|
},
|
|
2095
2159
|
readingConfig: {
|
|
2096
|
-
dataFormatId:
|
|
2097
|
-
encodingConfidenceLevel:
|
|
2098
|
-
encodingId:
|
|
2099
|
-
fileType:
|
|
2100
|
-
hasHeaders:
|
|
2101
|
-
parserId:
|
|
2102
|
-
recordDelimiterId:
|
|
2103
|
-
valueDelimiterId:
|
|
2160
|
+
dataFormatId: u,
|
|
2161
|
+
encodingConfidenceLevel: r.encodingConfidenceLevel,
|
|
2162
|
+
encodingId: r.encodingId,
|
|
2163
|
+
fileType: r.fileTypeConfig,
|
|
2164
|
+
hasHeaders: y.hasHeaders,
|
|
2165
|
+
parserId: m,
|
|
2166
|
+
recordDelimiterId: v.recordDelimiterId,
|
|
2167
|
+
valueDelimiterId: _ ? l ?? v.valueDelimiterId ?? G : v.valueDelimiterId
|
|
2104
2168
|
}
|
|
2105
2169
|
};
|
|
2106
2170
|
}
|
|
2107
|
-
async function
|
|
2171
|
+
async function ct(e) {
|
|
2108
2172
|
let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);
|
|
2109
2173
|
return await o.parseStream(i, {
|
|
2110
2174
|
abortSignal: r,
|
|
@@ -2114,31 +2178,31 @@ async function ot(e) {
|
|
|
2114
2178
|
valueDelimiterId: n.valueDelimiterId
|
|
2115
2179
|
}, t);
|
|
2116
2180
|
}
|
|
2117
|
-
async function
|
|
2118
|
-
let { constructColumnAuditor: t,
|
|
2119
|
-
abortSignal:
|
|
2120
|
-
chunkSize:
|
|
2121
|
-
dataFormatId:
|
|
2122
|
-
encodingId:
|
|
2123
|
-
valueDelimiterId:
|
|
2181
|
+
async function lt(e) {
|
|
2182
|
+
let { constructColumnAuditor: t, declaredColumnConfigs: n, onProgress: r, options: i, signal: a, stream: o, toolConfigs: s } = e, c = Date.now(), l = performance.now(), u = t(i.hasHeaders, n), { parser: d } = await Y(s, i.dataFormatId, i.parserId), f = ft(o), p = ut(f.stream, i), m = await d.parseStream(p.stream, {
|
|
2183
|
+
abortSignal: a,
|
|
2184
|
+
chunkSize: i.chunkSize,
|
|
2185
|
+
dataFormatId: i.dataFormatId,
|
|
2186
|
+
encodingId: i.encodingId,
|
|
2187
|
+
valueDelimiterId: i.valueDelimiterId
|
|
2124
2188
|
}, (e, t) => {
|
|
2125
|
-
|
|
2126
|
-
}), { columnConfigs:
|
|
2189
|
+
u.auditRecords(t), r(t.length, p.byteCount());
|
|
2190
|
+
}), { columnConfigs: h, hasHeaders: g } = u.completeAudit();
|
|
2127
2191
|
return {
|
|
2128
2192
|
contentAuditConfig: {
|
|
2129
|
-
asAt:
|
|
2130
|
-
byteCount:
|
|
2131
|
-
columns:
|
|
2132
|
-
commentLineCount:
|
|
2133
|
-
duration: performance.now() -
|
|
2134
|
-
emptyLineCount:
|
|
2135
|
-
invalidFieldLengthCount:
|
|
2136
|
-
isComplete:
|
|
2137
|
-
lineCount:
|
|
2138
|
-
recordCount: Math.max(0,
|
|
2139
|
-
sourceWaitDuration:
|
|
2193
|
+
asAt: c,
|
|
2194
|
+
byteCount: p.byteCount(),
|
|
2195
|
+
columns: h,
|
|
2196
|
+
commentLineCount: m.commentLineCount,
|
|
2197
|
+
duration: performance.now() - l,
|
|
2198
|
+
emptyLineCount: m.emptyLineCount,
|
|
2199
|
+
invalidFieldLengthCount: m.nonUniformRecordCount,
|
|
2200
|
+
isComplete: p.isComplete(),
|
|
2201
|
+
lineCount: m.lineCount,
|
|
2202
|
+
recordCount: Math.max(0, m.recordCount - +!!g),
|
|
2203
|
+
sourceWaitDuration: f.waitDuration()
|
|
2140
2204
|
},
|
|
2141
|
-
hasHeaders:
|
|
2205
|
+
hasHeaders: g
|
|
2142
2206
|
};
|
|
2143
2207
|
}
|
|
2144
2208
|
function J(e) {
|
|
@@ -2157,8 +2221,8 @@ function J(e) {
|
|
|
2157
2221
|
sourceWaitDuration: void 0
|
|
2158
2222
|
};
|
|
2159
2223
|
}
|
|
2160
|
-
function
|
|
2161
|
-
let n = e.getReader(), r =
|
|
2224
|
+
function ut(e, t) {
|
|
2225
|
+
let n = e.getReader(), r = dt(t.encodingId), i = 0, a = !1, o;
|
|
2162
2226
|
return {
|
|
2163
2227
|
byteCount: () => i,
|
|
2164
2228
|
isComplete: () => a,
|
|
@@ -2184,19 +2248,19 @@ function ct(e, t) {
|
|
|
2184
2248
|
}, { highWaterMark: 0 })
|
|
2185
2249
|
};
|
|
2186
2250
|
}
|
|
2187
|
-
function
|
|
2188
|
-
let t =
|
|
2251
|
+
function dt(e) {
|
|
2252
|
+
let t = Oe(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
|
|
2189
2253
|
return (e, t, o) => {
|
|
2190
2254
|
for (let s = 0; s < e.length; s++) {
|
|
2191
2255
|
let c = e[s];
|
|
2192
|
-
if ((c ===
|
|
2193
|
-
if (c ===
|
|
2256
|
+
if ((c === ot || c === K || c === at) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
|
|
2257
|
+
if (c === ot) a = !a;
|
|
2194
2258
|
else if (!a && s >= o && (c === K || e[s + r] !== K)) return s + r - i;
|
|
2195
2259
|
}
|
|
2196
2260
|
}
|
|
2197
2261
|
};
|
|
2198
2262
|
}
|
|
2199
|
-
function
|
|
2263
|
+
function ft(e) {
|
|
2200
2264
|
let t = e.getReader(), n = 0;
|
|
2201
2265
|
return {
|
|
2202
2266
|
stream: new ReadableStream({
|
|
@@ -2212,14 +2276,95 @@ function ut(e) {
|
|
|
2212
2276
|
};
|
|
2213
2277
|
}
|
|
2214
2278
|
async function Y(e, t, n) {
|
|
2215
|
-
let r =
|
|
2279
|
+
let r = W(e, t, n);
|
|
2216
2280
|
return {
|
|
2217
|
-
parser: await
|
|
2281
|
+
parser: await rt(e, r.id.slice(H.length)),
|
|
2218
2282
|
parserId: r.id
|
|
2219
2283
|
};
|
|
2220
2284
|
}
|
|
2285
|
+
var pt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
|
|
2286
|
+
format: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2287
|
+
name: /* @__PURE__ */ w(),
|
|
2288
|
+
title: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2289
|
+
type: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
2290
|
+
})) }), mt = /* @__PURE__ */ v({
|
|
2291
|
+
delimiter: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2292
|
+
header: /* @__PURE__ */ x(/* @__PURE__ */ g()),
|
|
2293
|
+
headerRows: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ b()))
|
|
2294
|
+
}), ht = {
|
|
2295
|
+
boolean: {
|
|
2296
|
+
dataSubtypeId: void 0,
|
|
2297
|
+
dataTypeId: "boolean"
|
|
2298
|
+
},
|
|
2299
|
+
date: {
|
|
2300
|
+
dataSubtypeId: "date",
|
|
2301
|
+
dataTypeId: "temporal"
|
|
2302
|
+
},
|
|
2303
|
+
datetime: {
|
|
2304
|
+
dataSubtypeId: "dateTime",
|
|
2305
|
+
dataTypeId: "temporal"
|
|
2306
|
+
},
|
|
2307
|
+
integer: {
|
|
2308
|
+
dataSubtypeId: "integer",
|
|
2309
|
+
dataTypeId: "numeric"
|
|
2310
|
+
},
|
|
2311
|
+
number: {
|
|
2312
|
+
dataSubtypeId: "decimal",
|
|
2313
|
+
dataTypeId: "numeric"
|
|
2314
|
+
},
|
|
2315
|
+
string: {
|
|
2316
|
+
dataSubtypeId: "plain",
|
|
2317
|
+
dataTypeId: "string"
|
|
2318
|
+
},
|
|
2319
|
+
time: {
|
|
2320
|
+
dataSubtypeId: "time",
|
|
2321
|
+
dataTypeId: "temporal"
|
|
2322
|
+
},
|
|
2323
|
+
year: {
|
|
2324
|
+
dataSubtypeId: "integer",
|
|
2325
|
+
dataTypeId: "numeric"
|
|
2326
|
+
}
|
|
2327
|
+
}, gt = {
|
|
2328
|
+
email: "email",
|
|
2329
|
+
uri: "url",
|
|
2330
|
+
uuid: "uuid"
|
|
2331
|
+
};
|
|
2332
|
+
function _t(e) {
|
|
2333
|
+
let t = /* @__PURE__ */ E(pt, e.schema);
|
|
2334
|
+
if (!t.success) throw new I("The table schema is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2335
|
+
let n = /* @__PURE__ */ E(mt, e.dialect ?? {});
|
|
2336
|
+
if (!n.success) throw new I("The table dialect is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2337
|
+
let r = t.output.fields.map((e) => {
|
|
2338
|
+
let t = vt(e.type, e.format);
|
|
2339
|
+
return {
|
|
2340
|
+
name: e.name,
|
|
2341
|
+
label: e.title,
|
|
2342
|
+
dataTypeId: t.dataTypeId,
|
|
2343
|
+
dataSubtypeId: t.dataSubtypeId
|
|
2344
|
+
};
|
|
2345
|
+
}), { delimiter: i = ",", header: a = !0, headerRows: o = [1] } = n.output;
|
|
2346
|
+
return {
|
|
2347
|
+
declaredColumnConfigs: r,
|
|
2348
|
+
declaredReadingConfig: {
|
|
2349
|
+
dataFormatId: "dtv",
|
|
2350
|
+
encodingId: e.encoding?.toLowerCase(),
|
|
2351
|
+
hasHeaders: a && o.length > 0,
|
|
2352
|
+
valueDelimiterId: k.find(({ character: e }) => e === i)?.id
|
|
2353
|
+
}
|
|
2354
|
+
};
|
|
2355
|
+
}
|
|
2356
|
+
function vt(e, t) {
|
|
2357
|
+
let n = e == null ? void 0 : ht[e];
|
|
2358
|
+
return n == null ? {
|
|
2359
|
+
dataSubtypeId: void 0,
|
|
2360
|
+
dataTypeId: void 0
|
|
2361
|
+
} : t == null || n.dataTypeId !== "string" ? n : {
|
|
2362
|
+
dataSubtypeId: gt[t] ?? "plain",
|
|
2363
|
+
dataTypeId: "string"
|
|
2364
|
+
};
|
|
2365
|
+
}
|
|
2221
2366
|
// src/component/module/connector/index.ts
|
|
2222
|
-
var
|
|
2367
|
+
var yt = [
|
|
2223
2368
|
{
|
|
2224
2369
|
id: "application",
|
|
2225
2370
|
label: {
|
|
@@ -2248,7 +2393,7 @@ var dt = [
|
|
|
2248
2393
|
es: "Almacén de Archivos"
|
|
2249
2394
|
}
|
|
2250
2395
|
}
|
|
2251
|
-
],
|
|
2396
|
+
], bt = [
|
|
2252
2397
|
{
|
|
2253
2398
|
id: "apiEndpoint",
|
|
2254
2399
|
label: {
|
|
@@ -2270,7 +2415,7 @@ var dt = [
|
|
|
2270
2415
|
es: "Tabla"
|
|
2271
2416
|
}
|
|
2272
2417
|
}
|
|
2273
|
-
],
|
|
2418
|
+
], xt = {
|
|
2274
2419
|
abortOperation: "Abort Operation",
|
|
2275
2420
|
auditObjectContent: "Audit Object Content",
|
|
2276
2421
|
closeStore: "Close Store",
|
|
@@ -2290,7 +2435,7 @@ var dt = [
|
|
|
2290
2435
|
retrieveChunks: "Retrieve Chunks",
|
|
2291
2436
|
retrieveRecords: "Retrieve Records",
|
|
2292
2437
|
upsertRecords: "Upsert Records"
|
|
2293
|
-
},
|
|
2438
|
+
}, St = [
|
|
2294
2439
|
{
|
|
2295
2440
|
id: "bidirectional",
|
|
2296
2441
|
label: {
|
|
@@ -2319,13 +2464,13 @@ var dt = [
|
|
|
2319
2464
|
es: "Desconocido"
|
|
2320
2465
|
}
|
|
2321
2466
|
}
|
|
2322
|
-
],
|
|
2467
|
+
], Ct = /* @__PURE__ */ new Set([
|
|
2323
2468
|
"createObject",
|
|
2324
2469
|
"dropObject",
|
|
2325
2470
|
"loadObjectRecords",
|
|
2326
2471
|
"removeRecords",
|
|
2327
2472
|
"upsertRecords"
|
|
2328
|
-
]),
|
|
2473
|
+
]), wt = /* @__PURE__ */ new Set([
|
|
2329
2474
|
"auditObjectContent",
|
|
2330
2475
|
"findObject",
|
|
2331
2476
|
"getInfo",
|
|
@@ -2337,13 +2482,13 @@ var dt = [
|
|
|
2337
2482
|
"retrieveChunks",
|
|
2338
2483
|
"retrieveRecords"
|
|
2339
2484
|
]);
|
|
2340
|
-
function
|
|
2485
|
+
function Tt(e) {
|
|
2341
2486
|
let t = !1, n = !1;
|
|
2342
|
-
for (let r of e)
|
|
2487
|
+
for (let r of e) wt.has(r) && (t = !0), Ct.has(r) && (n = !0);
|
|
2343
2488
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
2344
2489
|
}
|
|
2345
|
-
var
|
|
2346
|
-
let i =
|
|
2490
|
+
var Et = (e, t = "en") => {
|
|
2491
|
+
let i = yt.find((t) => t.id === e);
|
|
2347
2492
|
return i ? {
|
|
2348
2493
|
label: r(n(i.label), t) ?? i.id,
|
|
2349
2494
|
description: ""
|
|
@@ -2351,8 +2496,8 @@ var vt = (e, t = "en") => {
|
|
|
2351
2496
|
label: e,
|
|
2352
2497
|
description: ""
|
|
2353
2498
|
};
|
|
2354
|
-
},
|
|
2355
|
-
let i =
|
|
2499
|
+
}, Dt = (e, t = "en") => {
|
|
2500
|
+
let i = bt.find((t) => t.id === e);
|
|
2356
2501
|
return i ? {
|
|
2357
2502
|
label: r(n(i.label), t) ?? i.id,
|
|
2358
2503
|
description: ""
|
|
@@ -2360,8 +2505,8 @@ var vt = (e, t = "en") => {
|
|
|
2360
2505
|
label: e,
|
|
2361
2506
|
description: ""
|
|
2362
2507
|
};
|
|
2363
|
-
},
|
|
2364
|
-
let i =
|
|
2508
|
+
}, Ot = (e, t = "en") => {
|
|
2509
|
+
let i = St.find((t) => t.id === e);
|
|
2365
2510
|
return i ? {
|
|
2366
2511
|
label: r(n(i.label), t) ?? i.id,
|
|
2367
2512
|
description: ""
|
|
@@ -2370,30 +2515,30 @@ var vt = (e, t = "en") => {
|
|
|
2370
2515
|
description: ""
|
|
2371
2516
|
};
|
|
2372
2517
|
};
|
|
2373
|
-
function
|
|
2518
|
+
function kt(e) {
|
|
2374
2519
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
2375
2520
|
n += "|:----|:-------:|\n";
|
|
2376
|
-
for (let e of Object.keys(
|
|
2521
|
+
for (let e of Object.keys(xt)) n += `| ${xt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
2377
2522
|
return n;
|
|
2378
2523
|
}
|
|
2379
2524
|
// src/component/module/cookbook/cookbookConfig.schema.ts
|
|
2380
|
-
var
|
|
2381
|
-
...
|
|
2525
|
+
var At = O(["list"]), jt = /* @__PURE__ */ C({
|
|
2526
|
+
...A,
|
|
2382
2527
|
typeId: /* @__PURE__ */ _("cookbook"),
|
|
2383
|
-
actionNames: /* @__PURE__ */ h(
|
|
2384
|
-
recipes: /* @__PURE__ */ h(
|
|
2385
|
-
}),
|
|
2528
|
+
actionNames: /* @__PURE__ */ h(At),
|
|
2529
|
+
recipes: /* @__PURE__ */ h(ce)
|
|
2530
|
+
}), Mt = O([
|
|
2386
2531
|
"list",
|
|
2387
2532
|
"render",
|
|
2388
2533
|
"setColorMode"
|
|
2389
|
-
]),
|
|
2390
|
-
...
|
|
2534
|
+
]), Nt = /* @__PURE__ */ C({
|
|
2535
|
+
...A,
|
|
2391
2536
|
typeId: /* @__PURE__ */ _("presenter"),
|
|
2392
|
-
actionNames: /* @__PURE__ */ h(
|
|
2393
|
-
presentations: /* @__PURE__ */ h(
|
|
2394
|
-
}),
|
|
2395
|
-
async function
|
|
2396
|
-
let i = e.id, a = `${
|
|
2537
|
+
actionNames: /* @__PURE__ */ h(Mt),
|
|
2538
|
+
presentations: /* @__PURE__ */ h(ce)
|
|
2539
|
+
}), Pt = "https://engine-eu.dpuse.app/presenters";
|
|
2540
|
+
async function Ft(e, t, n, r) {
|
|
2541
|
+
let i = e.id, a = `${Pt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
2397
2542
|
try {
|
|
2398
2543
|
return new (await (import(
|
|
2399
2544
|
/* @vite-ignore */
|
|
@@ -2405,11 +2550,11 @@ async function Dt(e, t, n, r) {
|
|
|
2405
2550
|
url: a,
|
|
2406
2551
|
version: e.version
|
|
2407
2552
|
};
|
|
2408
|
-
throw new
|
|
2553
|
+
throw new I(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
|
|
2409
2554
|
}
|
|
2410
2555
|
}
|
|
2411
2556
|
// src/locale/index.ts
|
|
2412
|
-
function
|
|
2557
|
+
function It(e, t) {
|
|
2413
2558
|
return {
|
|
2414
2559
|
...e,
|
|
2415
2560
|
label: e.label[t] ?? e.id,
|
|
@@ -2417,7 +2562,7 @@ function Ot(e, t) {
|
|
|
2417
2562
|
verb: e.verb?.[t] ?? void 0
|
|
2418
2563
|
};
|
|
2419
2564
|
}
|
|
2420
|
-
function
|
|
2565
|
+
function Lt(e, t, n = !1) {
|
|
2421
2566
|
let r = e.map((e) => ({
|
|
2422
2567
|
...e,
|
|
2423
2568
|
label: e.label[t] ?? e.id,
|
|
@@ -2426,7 +2571,7 @@ function kt(e, t, n = !1) {
|
|
|
2426
2571
|
}));
|
|
2427
2572
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
2428
2573
|
}
|
|
2429
|
-
function
|
|
2574
|
+
function Rt(e, t) {
|
|
2430
2575
|
return {
|
|
2431
2576
|
...e,
|
|
2432
2577
|
label: e.label[t] ?? e.id,
|
|
@@ -2434,7 +2579,7 @@ function At(e, t) {
|
|
|
2434
2579
|
};
|
|
2435
2580
|
}
|
|
2436
2581
|
// src/utilities/index.ts
|
|
2437
|
-
var
|
|
2582
|
+
var zt = /* @__PURE__ */ new Map([
|
|
2438
2583
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
2439
2584
|
["avro", "application/vnd.apache.avro"],
|
|
2440
2585
|
["bin", "application/octet-stream"],
|
|
@@ -2461,14 +2606,14 @@ var jt = /* @__PURE__ */ new Map([
|
|
|
2461
2606
|
["minute", 6e4],
|
|
2462
2607
|
["second", 1e3],
|
|
2463
2608
|
["millisecond", 1]
|
|
2464
|
-
],
|
|
2609
|
+
], Bt = [
|
|
2465
2610
|
["byte", 1],
|
|
2466
2611
|
["kilobyte", 1024],
|
|
2467
2612
|
["megabyte", 1048576],
|
|
2468
2613
|
["gigabyte", 1073741824],
|
|
2469
2614
|
["terabyte", 1099511627776]
|
|
2470
|
-
],
|
|
2471
|
-
function
|
|
2615
|
+
], Vt = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map();
|
|
2616
|
+
function Ht(e, t = 2, n = t, r = X) {
|
|
2472
2617
|
return e == null ? "" : $(r, {
|
|
2473
2618
|
localeMatcher: "best fit",
|
|
2474
2619
|
maximumFractionDigits: t,
|
|
@@ -2478,18 +2623,18 @@ function Pt(e, t = 2, n = t, r = X) {
|
|
|
2478
2623
|
useGrouping: !0
|
|
2479
2624
|
}).format(e);
|
|
2480
2625
|
}
|
|
2481
|
-
function
|
|
2482
|
-
return
|
|
2626
|
+
function Ut(e, t = X) {
|
|
2627
|
+
return Ht(e, 0, 0, t);
|
|
2483
2628
|
}
|
|
2484
|
-
function
|
|
2629
|
+
function Wt(e, t = 1, n = X) {
|
|
2485
2630
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
2486
2631
|
maximumFractionDigits: t,
|
|
2487
2632
|
notation: "compact"
|
|
2488
2633
|
}).format(e);
|
|
2489
2634
|
}
|
|
2490
|
-
function
|
|
2635
|
+
function Gt(e, t = 1, n = X) {
|
|
2491
2636
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2492
|
-
let [r, i] =
|
|
2637
|
+
let [r, i] = Bt.find(([, n]) => en(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
2493
2638
|
return $(n, {
|
|
2494
2639
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
2495
2640
|
style: "unit",
|
|
@@ -2497,7 +2642,7 @@ function Lt(e, t = 1, n = X) {
|
|
|
2497
2642
|
unitDisplay: i === 1 ? "long" : "short"
|
|
2498
2643
|
}).format(e / i);
|
|
2499
2644
|
}
|
|
2500
|
-
function
|
|
2645
|
+
function Kt(e, t = "millisecond", n = X) {
|
|
2501
2646
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2502
2647
|
let r = Math.round(Math.abs(e)), i = Z.findIndex(([, e]) => r >= e), a = i === -1 ? Z.length - 1 : i, o = Z.findIndex(([e]) => e === t), s = Z.slice(a, Math.max(o, a) + 1), c = [];
|
|
2503
2648
|
for (let [t, i] of s) {
|
|
@@ -2511,25 +2656,25 @@ function Rt(e, t = "millisecond", n = X) {
|
|
|
2511
2656
|
unitDisplay: "short"
|
|
2512
2657
|
}).format(o));
|
|
2513
2658
|
}
|
|
2514
|
-
return
|
|
2659
|
+
return $t(n).format(c);
|
|
2515
2660
|
}
|
|
2516
|
-
function
|
|
2661
|
+
function qt(e) {
|
|
2517
2662
|
if (!e) return;
|
|
2518
|
-
let t =
|
|
2663
|
+
let t = Qt(e);
|
|
2519
2664
|
return t === void 0 ? e : e.slice(0, t);
|
|
2520
2665
|
}
|
|
2521
|
-
function
|
|
2666
|
+
function Jt(e) {
|
|
2522
2667
|
if (!e) return;
|
|
2523
|
-
let t =
|
|
2668
|
+
let t = Qt(e);
|
|
2524
2669
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
2525
2670
|
}
|
|
2526
|
-
function
|
|
2527
|
-
return e != null &&
|
|
2671
|
+
function Yt(e) {
|
|
2672
|
+
return e != null && zt.has(e.toLowerCase());
|
|
2528
2673
|
}
|
|
2529
|
-
function
|
|
2530
|
-
return (e == null ? void 0 :
|
|
2674
|
+
function Xt(e) {
|
|
2675
|
+
return (e == null ? void 0 : zt.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
2531
2676
|
}
|
|
2532
|
-
function
|
|
2677
|
+
function Zt(e) {
|
|
2533
2678
|
switch (e) {
|
|
2534
2679
|
case "Edm.Boolean": return "boolean";
|
|
2535
2680
|
case "Edm.Byte":
|
|
@@ -2550,23 +2695,23 @@ function Ut(e) {
|
|
|
2550
2695
|
default: return "unknown";
|
|
2551
2696
|
}
|
|
2552
2697
|
}
|
|
2553
|
-
function
|
|
2698
|
+
function Qt(e) {
|
|
2554
2699
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
2555
2700
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
2556
2701
|
}
|
|
2557
|
-
function
|
|
2558
|
-
let t =
|
|
2702
|
+
function $t(e) {
|
|
2703
|
+
let t = Vt.get(e);
|
|
2559
2704
|
return t || (t = new Intl.ListFormat(e, {
|
|
2560
2705
|
style: "narrow",
|
|
2561
2706
|
type: "unit"
|
|
2562
|
-
}),
|
|
2707
|
+
}), Vt.set(e, t)), t;
|
|
2563
2708
|
}
|
|
2564
2709
|
function $(e, t) {
|
|
2565
|
-
let n = `${e}|${JSON.stringify(t)}`, r =
|
|
2566
|
-
return r || (r = new Intl.NumberFormat(e, t),
|
|
2710
|
+
let n = `${e}|${JSON.stringify(t)}`, r = Q.get(n);
|
|
2711
|
+
return r || (r = new Intl.NumberFormat(e, t), Q.set(n, r)), r;
|
|
2567
2712
|
}
|
|
2568
|
-
function
|
|
2713
|
+
function en(e, t) {
|
|
2569
2714
|
let n = 10 ** t;
|
|
2570
2715
|
return Math.round(e * n) / n;
|
|
2571
2716
|
}
|
|
2572
|
-
export {
|
|
2717
|
+
export { Pe as APIError, I as AppError, Ie as ConnectorError, pe as DATA_FORMAT_CONFIGS, me as DATA_TYPE_CONFIGS, he as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, j as ENCODING_GROUP_CONFIG_MAP, M as ENCODING_TYPE_CONFIG_MAP, Fe as EngineError, L as FetchError, t as SUPPORTED_LANGUAGES, H as TOOL_NAME_PREFIX, k as VALUE_DELIMITER_CONFIGS, lt as auditObjectContentWithParser, Le as buildFetchError, st as buildPreviewObjectResult, ue as componentInstanceConfigSchema, Re as concatenateSerialisedErrorMessages, we as connectorConfigSchema, Et as constructConnectorCategoryConfig, Dt as constructConnectorItemTypeConfig, Ot as constructConnectorUsageConfig, Zt as convertODataTypeIdToUsageTypeId, jt as cookbookConfigSchema, n as createLabelMap, Tt as determineConnectorUsageId, Jt as extractExtensionFromPath, qt as extractPathWithoutExtension, Ht as formatNumberAsDecimalNumber, Kt as formatNumberAsDuration, Wt as formatNumberAsSize, Gt as formatNumberAsStorageSize, Ut as formatNumberAsWholeNumber, fe as getComponentStatus, kt as getConnectorActionsTable, ke as getEncodingTypeConfigs, ge as getValueDelimiterCharacter, Yt as hasMimeTypeForExtension, ze as ignoreErrors, De as isEncodingTypeId, U as listParserToolConfigs, Ft as loadPresenter, rt as loadTool, It as localiseConfig, Lt as localiseConfigs, Rt as localiseReference, Xt as lookupMimeTypeForExtension, R as normalizeToError, Xe as parseDelimitedText, Nt as presenterConfigSchema, _t as readTableSchema, Oe as resolveDecoderId, r as resolveLabel, W as resolveParserToolConfig, ct as retrieveRecordsWithParser, Be as serialiseError, Ye as toolConfigSchema, Ve as unserialiseError };
|