@datapos/datapos-shared 0.3.311 → 0.3.314

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.
@@ -1,74 +1,587 @@
1
- const x = ["createObject", "dropObject", "removeRecords", "upsertRecords"], w = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
2
- function N() {
3
- function e(n, t, r) {
4
- r.textContent = "Cytoscape.js diagram goes here...";
1
+ let O;
2
+ // @__NO_SIDE_EFFECTS__
3
+ function L(e) {
4
+ return {
5
+ lang: e?.lang ?? O?.lang,
6
+ message: e?.message,
7
+ abortEarly: e?.abortEarly ?? O?.abortEarly,
8
+ abortPipeEarly: e?.abortPipeEarly ?? O?.abortPipeEarly
9
+ };
10
+ }
11
+ let P;
12
+ // @__NO_SIDE_EFFECTS__
13
+ function V(e) {
14
+ return P?.get(e);
15
+ }
16
+ let H;
17
+ // @__NO_SIDE_EFFECTS__
18
+ function K(e) {
19
+ return H?.get(e);
20
+ }
21
+ let W;
22
+ // @__NO_SIDE_EFFECTS__
23
+ function X(e, r) {
24
+ return W?.get(e)?.get(r);
25
+ }
26
+ // @__NO_SIDE_EFFECTS__
27
+ function F(e) {
28
+ const r = typeof e;
29
+ return r === "string" ? `"${e}"` : r === "number" || r === "bigint" || r === "boolean" ? `${e}` : r === "object" || r === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : r;
30
+ }
31
+ function y(e, r, t, n, o) {
32
+ const s = o && "input" in o ? o.input : t.value, i = o?.expected ?? e.expects ?? null, c = o?.received ?? /* @__PURE__ */ F(s), a = {
33
+ kind: e.kind,
34
+ type: e.type,
35
+ input: s,
36
+ expected: i,
37
+ received: c,
38
+ message: `Invalid ${r}: ${i ? `Expected ${i} but r` : "R"}eceived ${c}`,
39
+ requirement: e.requirement,
40
+ path: o?.path,
41
+ issues: o?.issues,
42
+ lang: n.lang,
43
+ abortEarly: n.abortEarly,
44
+ abortPipeEarly: n.abortPipeEarly
45
+ }, u = e.kind === "schema", p = o?.message ?? e.message ?? /* @__PURE__ */ X(e.reference, a.lang) ?? (u ? /* @__PURE__ */ K(a.lang) : null) ?? n.message ?? /* @__PURE__ */ V(a.lang);
46
+ p !== void 0 && (a.message = typeof p == "function" ? p(a) : p), u && (t.typed = !1), t.issues ? t.issues.push(a) : t.issues = [a];
47
+ }
48
+ // @__NO_SIDE_EFFECTS__
49
+ function g(e) {
50
+ return {
51
+ version: 1,
52
+ vendor: "valibot",
53
+ validate(r) {
54
+ return e["~run"]({ value: r }, /* @__PURE__ */ L());
55
+ }
56
+ };
57
+ }
58
+ // @__NO_SIDE_EFFECTS__
59
+ function z(e, r) {
60
+ return Object.hasOwn(e, r) && r !== "__proto__" && r !== "prototype" && r !== "constructor";
61
+ }
62
+ // @__NO_SIDE_EFFECTS__
63
+ function J(e, r) {
64
+ const t = [...new Set(e)];
65
+ return t.length > 1 ? `(${t.join(` ${r} `)})` : t[0] ?? "never";
66
+ }
67
+ // @__NO_SIDE_EFFECTS__
68
+ function q(e, r, t) {
69
+ return typeof e.fallback == "function" ? e.fallback(r, t) : e.fallback;
70
+ }
71
+ // @__NO_SIDE_EFFECTS__
72
+ function N(e, r, t) {
73
+ return typeof e.default == "function" ? e.default(r, t) : e.default;
74
+ }
75
+ // @__NO_SIDE_EFFECTS__
76
+ function v(e, r) {
77
+ return {
78
+ kind: "schema",
79
+ type: "array",
80
+ reference: v,
81
+ expects: "Array",
82
+ async: !1,
83
+ item: e,
84
+ message: r,
85
+ get "~standard"() {
86
+ return /* @__PURE__ */ g(this);
87
+ },
88
+ "~run"(t, n) {
89
+ const o = t.value;
90
+ if (Array.isArray(o)) {
91
+ t.typed = !0, t.value = [];
92
+ for (let s = 0; s < o.length; s++) {
93
+ const i = o[s], c = this.item["~run"]({ value: i }, n);
94
+ if (c.issues) {
95
+ const a = {
96
+ type: "array",
97
+ origin: "value",
98
+ input: o,
99
+ key: s,
100
+ value: i
101
+ };
102
+ for (const u of c.issues)
103
+ u.path ? u.path.unshift(a) : u.path = [a], t.issues?.push(u);
104
+ if (t.issues || (t.issues = c.issues), n.abortEarly) {
105
+ t.typed = !1;
106
+ break;
107
+ }
108
+ }
109
+ c.typed || (t.typed = !1), t.value.push(c.value);
110
+ }
111
+ } else y(this, "type", t, n);
112
+ return t;
113
+ }
114
+ };
115
+ }
116
+ // @__NO_SIDE_EFFECTS__
117
+ function $(e) {
118
+ return {
119
+ kind: "schema",
120
+ type: "boolean",
121
+ reference: $,
122
+ expects: "boolean",
123
+ async: !1,
124
+ message: e,
125
+ get "~standard"() {
126
+ return /* @__PURE__ */ g(this);
127
+ },
128
+ "~run"(r, t) {
129
+ return typeof r.value == "boolean" ? r.typed = !0 : y(this, "type", r, t), r;
130
+ }
131
+ };
132
+ }
133
+ // @__NO_SIDE_EFFECTS__
134
+ function k(e, r) {
135
+ return {
136
+ kind: "schema",
137
+ type: "literal",
138
+ reference: k,
139
+ expects: /* @__PURE__ */ F(e),
140
+ async: !1,
141
+ literal: e,
142
+ message: r,
143
+ get "~standard"() {
144
+ return /* @__PURE__ */ g(this);
145
+ },
146
+ "~run"(t, n) {
147
+ return t.value === this.literal ? t.typed = !0 : y(this, "type", t, n), t;
148
+ }
149
+ };
150
+ }
151
+ // @__NO_SIDE_EFFECTS__
152
+ function b(e, r) {
153
+ return {
154
+ kind: "schema",
155
+ type: "nullable",
156
+ reference: b,
157
+ expects: `(${e.expects} | null)`,
158
+ async: !1,
159
+ wrapped: e,
160
+ default: r,
161
+ get "~standard"() {
162
+ return /* @__PURE__ */ g(this);
163
+ },
164
+ "~run"(t, n) {
165
+ return t.value === null && (this.default !== void 0 && (t.value = /* @__PURE__ */ N(this, t, n)), t.value === null) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
166
+ }
167
+ };
168
+ }
169
+ // @__NO_SIDE_EFFECTS__
170
+ function S(e) {
171
+ return {
172
+ kind: "schema",
173
+ type: "number",
174
+ reference: S,
175
+ expects: "number",
176
+ async: !1,
177
+ message: e,
178
+ get "~standard"() {
179
+ return /* @__PURE__ */ g(this);
180
+ },
181
+ "~run"(r, t) {
182
+ return typeof r.value == "number" && !isNaN(r.value) ? r.typed = !0 : y(this, "type", r, t), r;
183
+ }
184
+ };
185
+ }
186
+ // @__NO_SIDE_EFFECTS__
187
+ function m(e, r) {
188
+ return {
189
+ kind: "schema",
190
+ type: "object",
191
+ reference: m,
192
+ expects: "Object",
193
+ async: !1,
194
+ entries: e,
195
+ message: r,
196
+ get "~standard"() {
197
+ return /* @__PURE__ */ g(this);
198
+ },
199
+ "~run"(t, n) {
200
+ const o = t.value;
201
+ if (o && typeof o == "object") {
202
+ t.typed = !0, t.value = {};
203
+ for (const s in this.entries) {
204
+ const i = this.entries[s];
205
+ if (s in o || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
206
+ const c = s in o ? o[s] : /* @__PURE__ */ N(i), a = i["~run"]({ value: c }, n);
207
+ if (a.issues) {
208
+ const u = {
209
+ type: "object",
210
+ origin: "value",
211
+ input: o,
212
+ key: s,
213
+ value: c
214
+ };
215
+ for (const p of a.issues)
216
+ p.path ? p.path.unshift(u) : p.path = [u], t.issues?.push(p);
217
+ if (t.issues || (t.issues = a.issues), n.abortEarly) {
218
+ t.typed = !1;
219
+ break;
220
+ }
221
+ }
222
+ a.typed || (t.typed = !1), t.value[s] = a.value;
223
+ } else if (i.fallback !== void 0) t.value[s] = /* @__PURE__ */ q(i);
224
+ else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (y(this, "key", t, n, {
225
+ input: void 0,
226
+ expected: `"${s}"`,
227
+ path: [{
228
+ type: "object",
229
+ origin: "key",
230
+ input: o,
231
+ key: s,
232
+ value: o[s]
233
+ }]
234
+ }), n.abortEarly))
235
+ break;
236
+ }
237
+ } else y(this, "type", t, n);
238
+ return t;
239
+ }
240
+ };
241
+ }
242
+ // @__NO_SIDE_EFFECTS__
243
+ function f(e, r) {
244
+ return {
245
+ kind: "schema",
246
+ type: "optional",
247
+ reference: f,
248
+ expects: `(${e.expects} | undefined)`,
249
+ async: !1,
250
+ wrapped: e,
251
+ default: r,
252
+ get "~standard"() {
253
+ return /* @__PURE__ */ g(this);
254
+ },
255
+ "~run"(t, n) {
256
+ return t.value === void 0 && (this.default !== void 0 && (t.value = /* @__PURE__ */ N(this, t, n)), t.value === void 0) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
257
+ }
258
+ };
259
+ }
260
+ // @__NO_SIDE_EFFECTS__
261
+ function M(e, r, t) {
262
+ return {
263
+ kind: "schema",
264
+ type: "record",
265
+ reference: M,
266
+ expects: "Object",
267
+ async: !1,
268
+ key: e,
269
+ value: r,
270
+ message: t,
271
+ get "~standard"() {
272
+ return /* @__PURE__ */ g(this);
273
+ },
274
+ "~run"(n, o) {
275
+ const s = n.value;
276
+ if (s && typeof s == "object") {
277
+ n.typed = !0, n.value = {};
278
+ for (const i in s) if (/* @__PURE__ */ z(s, i)) {
279
+ const c = s[i], a = this.key["~run"]({ value: i }, o);
280
+ if (a.issues) {
281
+ const p = {
282
+ type: "object",
283
+ origin: "key",
284
+ input: s,
285
+ key: i,
286
+ value: c
287
+ };
288
+ for (const x of a.issues)
289
+ x.path = [p], n.issues?.push(x);
290
+ if (n.issues || (n.issues = a.issues), o.abortEarly) {
291
+ n.typed = !1;
292
+ break;
293
+ }
294
+ }
295
+ const u = this.value["~run"]({ value: c }, o);
296
+ if (u.issues) {
297
+ const p = {
298
+ type: "object",
299
+ origin: "value",
300
+ input: s,
301
+ key: i,
302
+ value: c
303
+ };
304
+ for (const x of u.issues)
305
+ x.path ? x.path.unshift(p) : x.path = [p], n.issues?.push(x);
306
+ if (n.issues || (n.issues = u.issues), o.abortEarly) {
307
+ n.typed = !1;
308
+ break;
309
+ }
310
+ }
311
+ (!a.typed || !u.typed) && (n.typed = !1), a.typed && (n.value[a.value] = u.value);
312
+ }
313
+ } else y(this, "type", n, o);
314
+ return n;
315
+ }
316
+ };
317
+ }
318
+ // @__NO_SIDE_EFFECTS__
319
+ function l(e) {
320
+ return {
321
+ kind: "schema",
322
+ type: "string",
323
+ reference: l,
324
+ expects: "string",
325
+ async: !1,
326
+ message: e,
327
+ get "~standard"() {
328
+ return /* @__PURE__ */ g(this);
329
+ },
330
+ "~run"(r, t) {
331
+ return typeof r.value == "string" ? r.typed = !0 : y(this, "type", r, t), r;
332
+ }
333
+ };
334
+ }
335
+ // @__NO_SIDE_EFFECTS__
336
+ function T(e) {
337
+ let r;
338
+ if (e) for (const t of e) r ? r.push(...t.issues) : r = t.issues;
339
+ return r;
340
+ }
341
+ // @__NO_SIDE_EFFECTS__
342
+ function _(e, r) {
343
+ return {
344
+ kind: "schema",
345
+ type: "union",
346
+ reference: _,
347
+ expects: /* @__PURE__ */ J(e.map((t) => t.expects), "|"),
348
+ async: !1,
349
+ options: e,
350
+ message: r,
351
+ get "~standard"() {
352
+ return /* @__PURE__ */ g(this);
353
+ },
354
+ "~run"(t, n) {
355
+ let o, s, i;
356
+ for (const c of this.options) {
357
+ const a = c["~run"]({ value: t.value }, n);
358
+ if (a.typed) if (a.issues) s ? s.push(a) : s = [a];
359
+ else {
360
+ o = a;
361
+ break;
362
+ }
363
+ else i ? i.push(a) : i = [a];
364
+ }
365
+ if (o) return o;
366
+ if (s) {
367
+ if (s.length === 1) return s[0];
368
+ y(this, "type", t, n, { issues: /* @__PURE__ */ T(s) }), t.typed = !0;
369
+ } else {
370
+ if (i?.length === 1) return i[0];
371
+ y(this, "type", t, n, { issues: /* @__PURE__ */ T(i) });
372
+ }
373
+ return t;
374
+ }
375
+ };
376
+ }
377
+ const h = (e) => /* @__PURE__ */ _(e.map((r) => /* @__PURE__ */ k(r))), Q = /* @__PURE__ */ m({
378
+ "en-au": /* @__PURE__ */ l(),
379
+ "en-gb": /* @__PURE__ */ l(),
380
+ "en-us": /* @__PURE__ */ l(),
381
+ "es-es": /* @__PURE__ */ l()
382
+ }), D = /* @__PURE__ */ m({
383
+ "en-au": /* @__PURE__ */ f(/* @__PURE__ */ l()),
384
+ "en-gb": /* @__PURE__ */ f(/* @__PURE__ */ l()),
385
+ "en-us": /* @__PURE__ */ f(/* @__PURE__ */ l()),
386
+ "es-es": /* @__PURE__ */ f(/* @__PURE__ */ l())
387
+ }), Y = h(["amber", "green", "red", "other"]), Z = h([
388
+ "alpha",
389
+ "beta",
390
+ "generalAvailability",
391
+ "notApplicable",
392
+ "preAlpha",
393
+ "proposed",
394
+ "releaseCandidate",
395
+ "unavailable",
396
+ "underReview"
397
+ ]), ee = h([
398
+ "app",
399
+ "connector",
400
+ "connectorConnection",
401
+ "context",
402
+ "contextModelGroup",
403
+ "contextModel",
404
+ "contextModelDimensionGroup",
405
+ "contextModelDimension",
406
+ "contextModelDimensionHierarchy",
407
+ "contextModelEntityGroup",
408
+ "contextModelEntity",
409
+ "contextModelEntityDataItem",
410
+ "contextModelEntityEvent",
411
+ "contextModelEntityPrimaryMeasure",
412
+ "contextModelSecondaryMeasureGroup",
413
+ "contextModelSecondaryMeasure",
414
+ "dataView",
415
+ "dimension",
416
+ "engine",
417
+ "eventQuery",
418
+ "presenter",
419
+ "presenterPresentation",
420
+ "tool"
421
+ ]);
422
+ h(["app", "engine", "connector", "context", "presenter", "tool"]);
423
+ const te = /* @__PURE__ */ m({
424
+ id: /* @__PURE__ */ l(),
425
+ color: Y,
426
+ label: /* @__PURE__ */ l()
427
+ }), j = {
428
+ id: /* @__PURE__ */ l(),
429
+ label: D,
430
+ description: D,
431
+ firstCreatedAt: /* @__PURE__ */ f(/* @__PURE__ */ S()),
432
+ icon: /* @__PURE__ */ b(/* @__PURE__ */ l()),
433
+ iconDark: /* @__PURE__ */ b(/* @__PURE__ */ l()),
434
+ lastUpdatedAt: /* @__PURE__ */ b(/* @__PURE__ */ S()),
435
+ status: /* @__PURE__ */ b(te),
436
+ statusId: Z
437
+ }, ye = /* @__PURE__ */ m({
438
+ ...j,
439
+ typeId: ee
440
+ }), A = {
441
+ ...j,
442
+ version: /* @__PURE__ */ l()
443
+ }, U = /* @__PURE__ */ m({
444
+ id: /* @__PURE__ */ l(),
445
+ label: D,
446
+ description: D,
447
+ icon: /* @__PURE__ */ b(/* @__PURE__ */ l()),
448
+ iconDark: /* @__PURE__ */ b(/* @__PURE__ */ l()),
449
+ order: /* @__PURE__ */ S(),
450
+ path: /* @__PURE__ */ l()
451
+ }), re = [
452
+ { id: "alpha", color: "red", label: { "en-gb": "alpha" } },
453
+ { id: "beta", color: "amber", label: { "en-gb": "beta" } },
454
+ { id: "generalAvailability", color: "green", label: { "en-gb": "" } },
455
+ { id: "notApplicable", color: "green", label: { "en-gb": "not-applicable" } },
456
+ { id: "preAlpha", color: "red", label: { "en-gb": "pre-alpha" } },
457
+ { id: "proposed", color: "other", label: { "en-gb": "proposed" } },
458
+ { id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
459
+ { id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
460
+ { id: "underReview", color: "other", label: { "en-gb": "under-review" } }
461
+ ], ge = (e, r = E) => {
462
+ const t = re.find((n) => n.id === e);
463
+ return t ? { ...t, label: t.label[r] || t.label[E] || e } : { id: e, color: "other", label: e };
464
+ }, ne = h(["application", "curatedDataset", "database", "fileStore"]), oe = h([
465
+ "abortOperation",
466
+ "authenticateConnection",
467
+ "createObject",
468
+ "describeConnection",
469
+ "dropObject",
470
+ "findObject",
471
+ "getRecord",
472
+ "listNodes",
473
+ "previewObject",
474
+ "removeRecords",
475
+ "retrieveRecords",
476
+ "upsertRecords"
477
+ ]), se = h(["bidirectional", "destination", "source", "unknown"]), ie = h(["apiKey", "disabled", "oAuth2", "none"]), ae = /* @__PURE__ */ m({
478
+ id: /* @__PURE__ */ l(),
479
+ label: /* @__PURE__ */ l()
480
+ }), le = /* @__PURE__ */ m({
481
+ authMethodId: ie,
482
+ activeConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ S()),
483
+ canDescribe: /* @__PURE__ */ f(/* @__PURE__ */ $()),
484
+ id: /* @__PURE__ */ f(/* @__PURE__ */ l()),
485
+ label: /* @__PURE__ */ f(Q),
486
+ maxConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ S()),
487
+ params: /* @__PURE__ */ f(/* @__PURE__ */ v(/* @__PURE__ */ M(/* @__PURE__ */ l(), /* @__PURE__ */ l())))
488
+ }), he = /* @__PURE__ */ m({
489
+ ...A,
490
+ typeId: /* @__PURE__ */ k("connector"),
491
+ category: /* @__PURE__ */ b(ae),
492
+ categoryId: ne,
493
+ implementations: /* @__PURE__ */ M(/* @__PURE__ */ l(), le),
494
+ operations: /* @__PURE__ */ v(oe),
495
+ usageId: se,
496
+ vendorAccountURL: /* @__PURE__ */ b(/* @__PURE__ */ l()),
497
+ vendorDocumentationURL: /* @__PURE__ */ b(/* @__PURE__ */ l()),
498
+ vendorHomeURL: /* @__PURE__ */ b(/* @__PURE__ */ l())
499
+ }), ve = ["createObject", "dropObject", "removeRecords", "upsertRecords"], Ee = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], ce = h(["list"]), ue = /* @__PURE__ */ m({
500
+ ...j,
501
+ typeId: /* @__PURE__ */ k("contextModelGroup"),
502
+ modelRefs: /* @__PURE__ */ v(U),
503
+ order: /* @__PURE__ */ S()
504
+ }), xe = /* @__PURE__ */ m({
505
+ ...A,
506
+ typeId: /* @__PURE__ */ k("context"),
507
+ models: /* @__PURE__ */ v(ue),
508
+ operations: /* @__PURE__ */ v(ce)
509
+ }), pe = h(["list", "render", "setColorMode"]), Se = /* @__PURE__ */ m({
510
+ ...A,
511
+ typeId: /* @__PURE__ */ k("presenter"),
512
+ presentations: /* @__PURE__ */ v(U),
513
+ operations: /* @__PURE__ */ v(pe)
514
+ });
515
+ function ke() {
516
+ function e(r, t, n) {
517
+ n.textContent = "Cytoscape.js diagram goes here...";
5
518
  }
6
519
  return { render: e };
7
520
  }
8
- function y() {
9
- function e(n, t) {
10
- console.log(1111, n), console.log(2222, t), console.log(3333, t.childNodes), console.log(4444, t.children);
521
+ function Ie() {
522
+ function e(r, t) {
523
+ console.log(1111, r), console.log(2222, t), console.log(3333, t.childNodes), console.log(4444, t.children);
11
524
  }
12
525
  return { render: e };
13
526
  }
14
- const S = 0, T = (e) => e, D = () => Date.now();
15
- class u extends Error {
527
+ const De = 0, we = (e) => e, Ce = () => Date.now();
528
+ class R extends Error {
16
529
  locator;
17
- constructor(n, t, r) {
18
- super(n, r), this.name = "DataPosError", this.locator = t, Error.captureStackTrace?.(this, new.target);
530
+ constructor(r, t, n) {
531
+ super(r, n), this.name = "DataPosError", this.locator = t, Error.captureStackTrace?.(this, new.target);
19
532
  }
20
533
  }
21
- class l extends u {
22
- constructor(n, t, r) {
23
- super(n, t, r), this.name = "ApplicationError";
534
+ class I extends R {
535
+ constructor(r, t, n) {
536
+ super(r, t, n), this.name = "ApplicationError";
24
537
  }
25
538
  }
26
- class O extends l {
27
- constructor(n, t, r) {
28
- super(n, t, r), this.name = "APIError";
539
+ class Oe extends I {
540
+ constructor(r, t, n) {
541
+ super(r, t, n), this.name = "APIError";
29
542
  }
30
543
  }
31
- class $ extends l {
32
- constructor(n, t, r) {
33
- super(n, t, r), this.name = "EngineError";
544
+ class Ne extends I {
545
+ constructor(r, t, n) {
546
+ super(r, t, n), this.name = "EngineError";
34
547
  }
35
548
  }
36
- class m extends l {
549
+ class G extends I {
37
550
  body;
38
- constructor(n, t, r, o) {
39
- super(n, t, o), this.name = "FetchError", this.body = r;
551
+ constructor(r, t, n, o) {
552
+ super(r, t, o), this.name = "FetchError", this.body = n;
40
553
  }
41
554
  }
42
- class g extends l {
555
+ class fe extends I {
43
556
  componentName;
44
557
  info;
45
- constructor(n, t, r, o, s) {
46
- super(n, t, s), this.name = "VueHandledError", this.info = r, this.componentName = o;
558
+ constructor(r, t, n, o, s) {
559
+ super(r, t, s), this.name = "VueHandledError", this.info = n, this.componentName = o;
47
560
  }
48
561
  }
49
- class I extends l {
50
- constructor(n, t, r) {
51
- super(n, t, r), this.name = "WindowHandledRuntimeError";
562
+ class Me extends I {
563
+ constructor(r, t, n) {
564
+ super(r, t, n), this.name = "WindowHandledRuntimeError";
52
565
  }
53
566
  }
54
- class v extends l {
55
- constructor(n, t, r) {
56
- super(n, t, r), this.name = "WindowHandledPromiseRejectionError";
567
+ class je extends I {
568
+ constructor(r, t, n) {
569
+ super(r, t, n), this.name = "WindowHandledPromiseRejectionError";
57
570
  }
58
571
  }
59
- class A extends u {
60
- constructor(n, t, r) {
61
- super(n, t, r), this.name = "OperationalError";
572
+ class Ae extends R {
573
+ constructor(r, t, n) {
574
+ super(r, t, n), this.name = "OperationalError";
62
575
  }
63
576
  }
64
- async function C(e, n, t) {
65
- const r = `${n} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
66
- return new m(r, t, o);
577
+ async function Re(e, r, t) {
578
+ const n = `${r} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
579
+ return new G(n, t, o);
67
580
  }
68
- function F(e) {
69
- return e.map((n) => n.message).join(" ");
581
+ function Te(e) {
582
+ return e.map((r) => r.message).join(" ");
70
583
  }
71
- function R(e) {
584
+ function Fe(e) {
72
585
  if (e instanceof Error) return e;
73
586
  if (typeof e == "string") return new Error(e);
74
587
  if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return new Error(String(e));
@@ -81,28 +594,28 @@ function R(e) {
81
594
  }
82
595
  return new Error("Unknown error");
83
596
  }
84
- function k(e) {
85
- const n = /* @__PURE__ */ new Set(), t = [];
86
- let r = e;
87
- for (; r && !n.has(r); ) {
88
- n.add(r);
597
+ function $e(e) {
598
+ const r = /* @__PURE__ */ new Set(), t = [];
599
+ let n = e;
600
+ for (; n && !r.has(n); ) {
601
+ r.add(n);
89
602
  let o;
90
- if (r instanceof m)
91
- o = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
92
- else if (r instanceof g)
93
- o = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
94
- else if (r instanceof u)
95
- o = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
96
- else if (r instanceof Error) {
97
- const s = r;
98
- o = { locator: "", message: s.message, name: s.name, stack: s.stack }, r = s.cause;
99
- } else r ? (o = { locator: "", message: String(r), name: "Error" }, r = void 0) : (o = { locator: "", message: "Unknown error.", name: "Error" }, r = void 0);
603
+ if (n instanceof G)
604
+ o = { body: n.body, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
605
+ else if (n instanceof fe)
606
+ o = { componentName: n.componentName, info: n.info, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
607
+ else if (n instanceof R)
608
+ o = { locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
609
+ else if (n instanceof Error) {
610
+ const s = n;
611
+ o = { locator: "", message: s.message, name: s.name, stack: s.stack }, n = s.cause;
612
+ } else n ? (o = { locator: "", message: String(n), name: "Error" }, n = void 0) : (o = { locator: "", message: "Unknown error.", name: "Error" }, n = void 0);
100
613
  /(?:\.{3}|[.!?])$/.test(o.message) || (o.message += "."), t.push(o);
101
614
  }
102
615
  return t;
103
616
  }
104
- const f = "en-US", c = {};
105
- function B(e) {
617
+ const B = "en-US", w = {};
618
+ function _e(e) {
106
619
  switch (e) {
107
620
  case "Edm.Binary":
108
621
  return "unknown";
@@ -142,54 +655,54 @@ function B(e) {
142
655
  return "unknown";
143
656
  }
144
657
  }
145
- function M(e) {
658
+ function Ue(e) {
146
659
  if (e) {
147
- const n = e.lastIndexOf("/"), t = e.lastIndexOf(".", n > -1 ? n : e.length);
660
+ const r = e.lastIndexOf("/"), t = e.lastIndexOf(".", r > -1 ? r : e.length);
148
661
  return t > -1 ? e.substring(0, t) : e;
149
662
  }
150
663
  }
151
- function j(e) {
664
+ function Ge(e) {
152
665
  if (e) {
153
- const n = e.lastIndexOf(".");
154
- if (n > -1) return e.substring(n + 1);
666
+ const r = e.lastIndexOf(".");
667
+ if (r > -1) return e.substring(r + 1);
155
668
  }
156
669
  }
157
- function a(e, n = 2, t = n, r = f) {
670
+ function d(e, r = 2, t = r, n = B) {
158
671
  if (e == null) return "";
159
- const o = `${r}decimal${n}.${t}`;
160
- let s = c[o];
161
- return s || (s = new Intl.NumberFormat(r, {
672
+ const o = `${n}decimal${r}.${t}`;
673
+ let s = w[o];
674
+ return s || (s = new Intl.NumberFormat(n, {
162
675
  localeMatcher: "best fit",
163
- maximumFractionDigits: n,
676
+ maximumFractionDigits: r,
164
677
  minimumFractionDigits: t,
165
678
  minimumIntegerDigits: 1,
166
679
  style: "decimal",
167
680
  useGrouping: !0
168
- }), c[o] = s), s.format(e);
681
+ }), w[o] = s), s.format(e);
169
682
  }
170
- function U(e) {
171
- return e == null ? "" : e < 1e3 ? d(e) : e < 1e6 ? `${a(e / 1e3, 2, 0)}K` : e < 1e9 ? `${a(e / 1e6, 2, 0)}M` : e < 1e12 ? `${a(e / 1e9, 2, 0)}B` : `${a(e / 1e12, 2, 0)}T`;
683
+ function Be(e) {
684
+ return e == null ? "" : e < 1e3 ? C(e) : e < 1e6 ? `${d(e / 1e3, 2, 0)}K` : e < 1e9 ? `${d(e / 1e6, 2, 0)}M` : e < 1e12 ? `${d(e / 1e9, 2, 0)}B` : `${d(e / 1e12, 2, 0)}T`;
172
685
  }
173
- function L(e) {
174
- return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${d(e)} bytes` : e < 1048576 ? `${a(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${a(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${a(e / 1073741824, 2, 0)} GB` : `${a(e / 1099511627776, 2, 0)} TB`;
686
+ function Le(e) {
687
+ return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${C(e)} bytes` : e < 1048576 ? `${d(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${d(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${d(e / 1073741824, 2, 0)} GB` : `${d(e / 1099511627776, 2, 0)} TB`;
175
688
  }
176
- function _(e) {
177
- return e == null ? "" : e < 1e3 ? `${d(e)} ms` : e === 1e3 ? `${d(e)} sec` : e < 6e4 ? `${a(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${a(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${a(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${a(e / 864e5, 2, 0)} days`;
689
+ function Pe(e) {
690
+ return e == null ? "" : e < 1e3 ? `${C(e)} ms` : e === 1e3 ? `${C(e)} sec` : e < 6e4 ? `${d(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${d(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${d(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${d(e / 864e5, 2, 0)} days`;
178
691
  }
179
- function d(e, n = f) {
692
+ function C(e, r = B) {
180
693
  if (e == null) return "";
181
- const t = `${n}decimal0.0`;
182
- let r = c[t];
183
- return r || (r = new Intl.NumberFormat(n, {
694
+ const t = `${r}decimal0.0`;
695
+ let n = w[t];
696
+ return n || (n = new Intl.NumberFormat(r, {
184
697
  localeMatcher: "best fit",
185
698
  maximumFractionDigits: 0,
186
699
  minimumFractionDigits: 0,
187
700
  minimumIntegerDigits: 1,
188
701
  style: "decimal",
189
702
  useGrouping: !0
190
- }), c[t] = r), r.format(e);
703
+ }), w[t] = n), n.format(e);
191
704
  }
192
- function W(e) {
705
+ function Ve(e) {
193
706
  switch (e) {
194
707
  case "csv":
195
708
  return "text/csv";
@@ -204,7 +717,7 @@ function W(e) {
204
717
  return "application/octet-stream";
205
718
  }
206
719
  }
207
- const b = [
720
+ const de = [
208
721
  { id: "dtv", label: { "en-gb": "Delimited Text" } },
209
722
  { id: "e/e", label: { "en-gb": "Entity/Event" } },
210
723
  { id: "jsonArray", label: { "en-gb": "JSON Array" } },
@@ -212,22 +725,22 @@ const b = [
212
725
  { id: "xls", label: { "en-gb": "XLS" } },
213
726
  { id: "xlsx", label: { "en-gb": "XLSX" } },
214
727
  { id: "xml", label: { "en-gb": "XML" } }
215
- ], G = (e = i) => {
216
- const n = [];
217
- for (const t of b) n.push({ ...t, label: t.label[e] || t.label[i] || t.id });
218
- return n;
219
- }, p = [
728
+ ], He = (e = E) => {
729
+ const r = [];
730
+ for (const t of de) r.push({ ...t, label: t.label[e] || t.label[E] || t.id });
731
+ return r;
732
+ }, me = [
220
733
  { id: `
221
734
  `, label: { "en-gb": "Newline" } },
222
735
  { id: "\r", label: { "en-gb": "Carriage Return" } },
223
736
  { id: `\r
224
737
  `, label: { "en-gb": "Carriage Return/Newline" } }
225
- ], V = (e = i) => {
226
- const n = [];
227
- for (const t of p)
228
- n.push({ ...t, label: t.label[e] || t.label[i] || t.id });
229
- return n;
230
- }, E = [
738
+ ], Ke = (e = E) => {
739
+ const r = [];
740
+ for (const t of me)
741
+ r.push({ ...t, label: t.label[e] || t.label[E] || t.id });
742
+ return r;
743
+ }, be = [
231
744
  { id: ":", label: { "en-gb": "Colon" } },
232
745
  { id: ",", label: { "en-gb": "Comma" } },
233
746
  { id: "!", label: { "en-gb": "Exclamation Mark" } },
@@ -239,57 +752,48 @@ const b = [
239
752
  { id: "_", label: { "en-gb": "Underscore" } },
240
753
  { id: "0x1F", label: { "en-gb": "Unit Separator" } },
241
754
  { id: "|", label: { "en-gb": "Vertical Bar" } }
242
- ], X = (e = i) => {
243
- const n = [];
244
- for (const t of E)
245
- n.push({ ...t, label: t.label[e] || t.label[i] || t.id });
246
- return n;
247
- }, h = [
248
- { id: "alpha", color: "red", label: { "en-gb": "alpha" } },
249
- { id: "beta", color: "amber", label: { "en-gb": "beta" } },
250
- { id: "generalAvailability", color: "green", label: { "en-gb": "" } },
251
- { id: "notApplicable", color: "green", label: { "en-gb": "not-applicable" } },
252
- { id: "preAlpha", color: "red", label: { "en-gb": "pre-alpha" } },
253
- { id: "proposed", color: "other", label: { "en-gb": "proposed" } },
254
- { id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
255
- { id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
256
- { id: "underReview", color: "other", label: { "en-gb": "under-review" } }
257
- ], z = (e, n = i) => {
258
- const t = h.find((r) => r.id === e);
259
- return t ? { ...t, label: t.label[n] || t.label[i] || e } : { id: e, color: "other", label: e };
260
- }, i = "en-gb";
755
+ ], We = (e = E) => {
756
+ const r = [];
757
+ for (const t of be)
758
+ r.push({ ...t, label: t.label[e] || t.label[E] || t.id });
759
+ return r;
760
+ }, E = "en-gb";
261
761
  export {
262
- O as APIError,
263
- l as ApplicationError,
264
- x as CONNECTOR_DESTINATION_OPERATIONS,
265
- w as CONNECTOR_SOURCE_OPERATIONS,
266
- i as DEFAULT_LOCALE_CODE,
267
- S as DefaultTimestamp,
268
- $ as EngineError,
269
- m as FetchError,
270
- A as OperationalError,
271
- g as VueError,
272
- v as WindowPromiseRejectionError,
273
- I as WindowRuntimeError,
274
- C as buildFetchError,
275
- F as concatenateSerialisedErrorMessages,
276
- T as convertMillisecondsToTimestamp,
277
- B as convertODataTypeIdToUsageTypeId,
278
- j as extractExtensionFromPath,
279
- M as extractNameFromPath,
280
- a as formatNumberAsDecimalNumber,
281
- _ as formatNumberAsDuration,
282
- U as formatNumberAsSize,
283
- L as formatNumberAsStorageSize,
284
- d as formatNumberAsWholeNumber,
285
- z as getComponentStatus,
286
- D as getCurrentTimestamp,
287
- G as getDataFormats,
288
- V as getRecordDelimiters,
289
- X as getValueDelimiters,
290
- W as lookupMimeTypeForExtension,
291
- R as normalizeToError,
292
- k as serialiseError,
293
- N as useCytoscapeJS,
294
- y as useDataTable
762
+ Oe as APIError,
763
+ I as ApplicationError,
764
+ ve as CONNECTOR_DESTINATION_OPERATIONS,
765
+ Ee as CONNECTOR_SOURCE_OPERATIONS,
766
+ E as DEFAULT_LOCALE_CODE,
767
+ De as DefaultTimestamp,
768
+ Ne as EngineError,
769
+ G as FetchError,
770
+ Ae as OperationalError,
771
+ fe as VueError,
772
+ je as WindowPromiseRejectionError,
773
+ Me as WindowRuntimeError,
774
+ Re as buildFetchError,
775
+ ye as componentConfigSchema,
776
+ Te as concatenateSerialisedErrorMessages,
777
+ he as connectorConfigSchema,
778
+ xe as contextConfigSchema,
779
+ we as convertMillisecondsToTimestamp,
780
+ _e as convertODataTypeIdToUsageTypeId,
781
+ Ge as extractExtensionFromPath,
782
+ Ue as extractNameFromPath,
783
+ d as formatNumberAsDecimalNumber,
784
+ Pe as formatNumberAsDuration,
785
+ Be as formatNumberAsSize,
786
+ Le as formatNumberAsStorageSize,
787
+ C as formatNumberAsWholeNumber,
788
+ ge as getComponentStatus,
789
+ Ce as getCurrentTimestamp,
790
+ He as getDataFormats,
791
+ Ke as getRecordDelimiters,
792
+ We as getValueDelimiters,
793
+ Ve as lookupMimeTypeForExtension,
794
+ Fe as normalizeToError,
795
+ Se as presenterConfigSchema,
796
+ $e as serialiseError,
797
+ ke as useCytoscapeJS,
798
+ Ie as useDataTable
295
799
  };