@dpuse/dpuse-development 0.3.791 → 0.3.793

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.
@@ -29,29 +29,32 @@ function s(e, t, n) {
29
29
  };
30
30
  }
31
31
  //#endregion
32
- //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-DT3mO5rS.js
33
- var c = {
32
+ //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
33
+ function c(e) {
34
+ return new Map(Object.entries(e));
35
+ }
36
+ var l = {
34
37
  lang: void 0,
35
38
  message: void 0,
36
39
  abortEarly: void 0,
37
40
  abortPipeEarly: void 0
38
41
  };
39
42
  /* @__NO_SIDE_EFFECTS__ */
40
- function l(e) {
43
+ function u(e) {
41
44
  return e ? {
42
45
  lang: e?.lang ?? void 0,
43
46
  message: e?.message,
44
47
  abortEarly: e?.abortEarly ?? void 0,
45
48
  abortPipeEarly: e?.abortPipeEarly ?? void 0
46
- } : c;
49
+ } : l;
47
50
  }
48
51
  /* @__NO_SIDE_EFFECTS__ */
49
- function u(e) {
52
+ function d(e) {
50
53
  let t = typeof e;
51
54
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
52
55
  }
53
- function d(e, t, n, r, i) {
54
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ u(a), c = {
56
+ function f(e, t, n, r, i) {
57
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ d(a), c = {
55
58
  kind: e.kind,
56
59
  type: e.type,
57
60
  input: a,
@@ -64,27 +67,27 @@ function d(e, t, n, r, i) {
64
67
  lang: r.lang,
65
68
  abortEarly: r.abortEarly,
66
69
  abortPipeEarly: r.abortPipeEarly
67
- }, l = e.kind === "schema", d = i?.message ?? e.message ?? (e.reference, c.lang, void 0) ?? (l ? (c.lang, void 0) : null) ?? r.message ?? (c.lang, void 0);
68
- d !== void 0 && (c.message = typeof d == "function" ? d(c) : d), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
70
+ }, l = e.kind === "schema", u = i?.message ?? e.message ?? (e.reference, c.lang, void 0) ?? (l ? (c.lang, void 0) : null) ?? r.message ?? (c.lang, void 0);
71
+ u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
69
72
  }
70
73
  /* @__NO_SIDE_EFFECTS__ */
71
74
  function ee(e, t) {
72
75
  return e === t || Number.isNaN(e) && Number.isNaN(t);
73
76
  }
74
77
  /* @__NO_SIDE_EFFECTS__ */
75
- function te(e, t) {
78
+ function p(e, t) {
76
79
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
77
80
  }
78
81
  /* @__NO_SIDE_EFFECTS__ */
79
- function f(e, t) {
82
+ function te(e, t) {
80
83
  let n = [...new Set(e)];
81
84
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
82
85
  }
83
- function p(e) {
86
+ function m(e) {
84
87
  return e["~standard"] = {
85
88
  version: 1,
86
89
  vendor: "valibot",
87
- validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ l())
90
+ validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ u())
88
91
  }, e;
89
92
  }
90
93
  /* @__NO_SIDE_EFFECTS__ */
@@ -92,15 +95,15 @@ function ne(e, t, n) {
92
95
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
93
96
  }
94
97
  /* @__NO_SIDE_EFFECTS__ */
95
- function m(e, t, n) {
98
+ function h(e, t, n) {
96
99
  return typeof e.default == "function" ? e.default(t, n) : e.default;
97
100
  }
98
101
  /* @__NO_SIDE_EFFECTS__ */
99
- function h(e, t) {
100
- return p({
102
+ function g(e, t) {
103
+ return m({
101
104
  kind: "schema",
102
105
  type: "array",
103
- reference: h,
106
+ reference: g,
104
107
  expects: "Array",
105
108
  async: !1,
106
109
  item: e,
@@ -127,90 +130,90 @@ function h(e, t) {
127
130
  }
128
131
  a.typed || (e.typed = !1), e.value.push(a.value);
129
132
  }
130
- } else d(this, "type", e, t);
133
+ } else f(this, "type", e, t);
131
134
  return e;
132
135
  }
133
136
  });
134
137
  }
135
138
  /* @__NO_SIDE_EFFECTS__ */
136
- function g(e) {
137
- return p({
139
+ function _(e) {
140
+ return m({
138
141
  kind: "schema",
139
142
  type: "boolean",
140
- reference: g,
143
+ reference: _,
141
144
  expects: "boolean",
142
145
  async: !1,
143
146
  message: e,
144
147
  "~run"(e, t) {
145
- return typeof e.value == "boolean" ? e.typed = !0 : d(this, "type", e, t), e;
148
+ return typeof e.value == "boolean" ? e.typed = !0 : f(this, "type", e, t), e;
146
149
  }
147
150
  });
148
151
  }
149
152
  /* @__NO_SIDE_EFFECTS__ */
150
- function _(e, t) {
151
- return p({
153
+ function v(e, t) {
154
+ return m({
152
155
  kind: "schema",
153
156
  type: "literal",
154
- reference: _,
155
- expects: /* @__PURE__ */ u(e),
157
+ reference: v,
158
+ expects: /* @__PURE__ */ d(e),
156
159
  async: !1,
157
160
  literal: e,
158
161
  message: t,
159
162
  "~run"(e, t) {
160
- return /* @__PURE__ */ ee(e.value, this.literal) ? e.typed = !0 : d(this, "type", e, t), e;
163
+ return /* @__PURE__ */ ee(e.value, this.literal) ? e.typed = !0 : f(this, "type", e, t), e;
161
164
  }
162
165
  });
163
166
  }
164
167
  /* @__NO_SIDE_EFFECTS__ */
165
- function v(e, t) {
166
- return p({
168
+ function y(e, t) {
169
+ return m({
167
170
  kind: "schema",
168
171
  type: "nullable",
169
- reference: v,
172
+ reference: y,
170
173
  expects: `(${e.expects} | null)`,
171
174
  async: !1,
172
175
  wrapped: e,
173
176
  default: t,
174
177
  "~run"(e, t) {
175
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
178
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ h(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
176
179
  }
177
180
  });
178
181
  }
179
182
  /* @__NO_SIDE_EFFECTS__ */
180
- function y(e) {
181
- return p({
183
+ function b(e) {
184
+ return m({
182
185
  kind: "schema",
183
186
  type: "number",
184
- reference: y,
187
+ reference: b,
185
188
  expects: "number",
186
189
  async: !1,
187
190
  message: e,
188
191
  "~run"(e, t) {
189
- return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : d(this, "type", e, t), e;
192
+ return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : f(this, "type", e, t), e;
190
193
  }
191
194
  });
192
195
  }
193
196
  /* @__NO_SIDE_EFFECTS__ */
194
- function b(e, t) {
195
- return p({
197
+ function x(e, t) {
198
+ return m({
196
199
  kind: "schema",
197
200
  type: "optional",
198
- reference: b,
201
+ reference: x,
199
202
  expects: `(${e.expects} | undefined)`,
200
203
  async: !1,
201
204
  wrapped: e,
202
205
  default: t,
203
206
  "~run"(e, t) {
204
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
207
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ h(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
205
208
  }
206
209
  });
207
210
  }
208
211
  /* @__NO_SIDE_EFFECTS__ */
209
- function x(e, t, n) {
210
- return p({
212
+ function S(e, t, n) {
213
+ return m({
211
214
  kind: "schema",
212
215
  type: "record",
213
- reference: x,
216
+ reference: S,
214
217
  expects: "Object",
215
218
  async: !1,
216
219
  key: e,
@@ -220,7 +223,7 @@ function x(e, t, n) {
220
223
  let n = e.value;
221
224
  if (n && typeof n == "object") {
222
225
  e.typed = !0, e.value = {};
223
- for (let r in n) if (/* @__PURE__ */ te(n, r)) {
226
+ for (let r in n) if (/* @__PURE__ */ p(n, r)) {
224
227
  let i = n[r], a = this.key["~run"]({ value: r }, t);
225
228
  if (a.issues) {
226
229
  let o = {
@@ -253,17 +256,17 @@ function x(e, t, n) {
253
256
  }
254
257
  (!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
255
258
  }
256
- } else d(this, "type", e, t);
259
+ } else f(this, "type", e, t);
257
260
  return e;
258
261
  }
259
262
  });
260
263
  }
261
264
  /* @__NO_SIDE_EFFECTS__ */
262
- function S(e, t) {
263
- return p({
265
+ function C(e, t) {
266
+ return m({
264
267
  kind: "schema",
265
268
  type: "strict_object",
266
- reference: S,
269
+ reference: C,
267
270
  expects: "Object",
268
271
  async: !1,
269
272
  entries: e,
@@ -275,7 +278,7 @@ function S(e, t) {
275
278
  for (let r in this.entries) {
276
279
  let i = this.entries[r];
277
280
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
278
- let a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i["~run"]({ value: a }, t);
281
+ let a = r in n ? n[r] : /* @__PURE__ */ h(i), o = i["~run"]({ value: a }, t);
279
282
  if (o.issues) {
280
283
  let i = {
281
284
  type: "object",
@@ -292,7 +295,7 @@ function S(e, t) {
292
295
  }
293
296
  o.typed || (e.typed = !1), e.value[r] = o.value;
294
297
  } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ne(i);
295
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (d(this, "key", e, t, {
298
+ else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (f(this, "key", e, t, {
296
299
  input: void 0,
297
300
  expected: `"${r}"`,
298
301
  path: [{
@@ -306,7 +309,7 @@ function S(e, t) {
306
309
  }
307
310
  if (!e.issues || !t.abortEarly) {
308
311
  for (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {
309
- d(this, "key", e, t, {
312
+ f(this, "key", e, t, {
310
313
  input: r,
311
314
  expected: "never",
312
315
  path: [{
@@ -320,39 +323,39 @@ function S(e, t) {
320
323
  break;
321
324
  }
322
325
  }
323
- } else d(this, "type", e, t);
326
+ } else f(this, "type", e, t);
324
327
  return e;
325
328
  }
326
329
  });
327
330
  }
328
331
  /* @__NO_SIDE_EFFECTS__ */
329
- function C(e) {
330
- return p({
332
+ function w(e) {
333
+ return m({
331
334
  kind: "schema",
332
335
  type: "string",
333
- reference: C,
336
+ reference: w,
334
337
  expects: "string",
335
338
  async: !1,
336
339
  message: e,
337
340
  "~run"(e, t) {
338
- return typeof e.value == "string" ? e.typed = !0 : d(this, "type", e, t), e;
341
+ return typeof e.value == "string" ? e.typed = !0 : f(this, "type", e, t), e;
339
342
  }
340
343
  });
341
344
  }
342
345
  /* @__NO_SIDE_EFFECTS__ */
343
- function w(e) {
346
+ function T(e) {
344
347
  let t;
345
348
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
346
349
  else t = n.issues;
347
350
  return t;
348
351
  }
349
352
  /* @__NO_SIDE_EFFECTS__ */
350
- function T(e, t) {
351
- return p({
353
+ function E(e, t) {
354
+ return m({
352
355
  kind: "schema",
353
356
  type: "union",
354
- reference: T,
355
- expects: /* @__PURE__ */ f(e.map((e) => e.expects), "|"),
357
+ reference: E,
358
+ expects: /* @__PURE__ */ te(e.map((e) => e.expects), "|"),
356
359
  async: !1,
357
360
  options: e,
358
361
  message: t,
@@ -371,29 +374,29 @@ function T(e, t) {
371
374
  if (n) return n;
372
375
  if (r) {
373
376
  if (r.length === 1) return r[0];
374
- d(this, "type", e, t, { issues: /* @__PURE__ */ w(r) }), e.typed = !0;
377
+ f(this, "type", e, t, { issues: /* @__PURE__ */ T(r) }), e.typed = !0;
375
378
  } else if (i?.length === 1) return i[0];
376
- else d(this, "type", e, t, { issues: /* @__PURE__ */ w(i) });
379
+ else f(this, "type", e, t, { issues: /* @__PURE__ */ T(i) });
377
380
  return e;
378
381
  }
379
382
  });
380
383
  }
381
- var E = /* @__PURE__ */ S({
382
- en: /* @__PURE__ */ C(),
383
- es: /* @__PURE__ */ C()
384
- }), D = {
385
- id: /* @__PURE__ */ C(),
386
- label: /* @__PURE__ */ S({
387
- en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
388
- es: /* @__PURE__ */ b(/* @__PURE__ */ C())
384
+ var D = /* @__PURE__ */ C({
385
+ en: /* @__PURE__ */ w(),
386
+ es: /* @__PURE__ */ w()
387
+ }), re = {
388
+ id: /* @__PURE__ */ w(),
389
+ label: /* @__PURE__ */ C({
390
+ en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
391
+ es: /* @__PURE__ */ x(/* @__PURE__ */ w())
389
392
  }),
390
- description: /* @__PURE__ */ S({
391
- en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
392
- es: /* @__PURE__ */ b(/* @__PURE__ */ C())
393
+ description: /* @__PURE__ */ C({
394
+ en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
395
+ es: /* @__PURE__ */ x(/* @__PURE__ */ w())
393
396
  }),
394
- icon: /* @__PURE__ */ v(/* @__PURE__ */ C()),
395
- iconDark: /* @__PURE__ */ v(/* @__PURE__ */ C())
396
- }, O = (e) => /* @__PURE__ */ T(e.map((e) => /* @__PURE__ */ _(e))), k = O([
397
+ icon: /* @__PURE__ */ y(/* @__PURE__ */ w()),
398
+ iconDark: /* @__PURE__ */ y(/* @__PURE__ */ w())
399
+ }, O = (e) => /* @__PURE__ */ E(e.map((e) => /* @__PURE__ */ v(e))), ie = O([
397
400
  "app",
398
401
  "connector",
399
402
  "connectorConnection",
@@ -415,33 +418,33 @@ var E = /* @__PURE__ */ S({
415
418
  "presenter",
416
419
  "presenterPresentation",
417
420
  "tool"
418
- ]), re = O([
421
+ ]), ae = O([
419
422
  "danger",
420
423
  "success",
421
424
  "warning"
422
- ]), ie = O([
425
+ ]), k = O([
423
426
  "alpha",
424
427
  "beta",
425
428
  "releaseCandidate",
426
429
  "generalAvailability"
427
- ]), ae = /* @__PURE__ */ S({
428
- color: re,
429
- label: /* @__PURE__ */ C()
430
+ ]), oe = /* @__PURE__ */ C({
431
+ color: ae,
432
+ label: /* @__PURE__ */ w()
430
433
  }), A = {
431
- ...D,
432
- typeId: k
433
- }, oe = /* @__PURE__ */ S({
434
+ ...re,
435
+ typeId: ie
436
+ }, se = /* @__PURE__ */ C({
434
437
  ...A,
435
- order: /* @__PURE__ */ y(),
436
- path: /* @__PURE__ */ C()
438
+ order: /* @__PURE__ */ b(),
439
+ path: /* @__PURE__ */ w()
437
440
  }), j = {
438
441
  ...A,
439
- firstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
440
- lastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
441
- status: /* @__PURE__ */ v(ae),
442
- statusId: /* @__PURE__ */ v(ie)
442
+ firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
443
+ lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
444
+ status: /* @__PURE__ */ y(oe),
445
+ statusId: /* @__PURE__ */ y(k)
443
446
  };
444
- ({ ...j }), O([
447
+ ({ ...j }), c({ en: "Data Positioning Events" }), c({ en: "Delimited Text" }), c({ en: "JSON" }), c({ en: "SPSS" }), c({ en: "XLSX" }), c({ en: "XML" }), c({ en: "Newline" }), c({ en: "Carriage Return" }), c({ en: "Carriage Return/Newline" }), c({ en: "Colon" }), c({ en: "Comma" }), c({ en: "Exclamation Mark" }), c({ en: "Record Separator" }), c({ en: "Semicolon" }), c({ en: "Space" }), c({ en: "Tab" }), c({ en: "Underscore" }), c({ en: "Unit Separator" }), c({ en: "Vertical Bar" }), O([
445
448
  "app",
446
449
  "engine",
447
450
  "connector",
@@ -449,19 +452,15 @@ var E = /* @__PURE__ */ S({
449
452
  "presenter",
450
453
  "tool"
451
454
  ]);
452
- //#endregion
453
- //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-aYmFWSrn.js
454
455
  var M = {
455
456
  ...j,
456
- vendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
457
- vendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
458
- vendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
459
- version: /* @__PURE__ */ C()
457
+ vendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
458
+ vendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
459
+ vendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
460
+ version: /* @__PURE__ */ w()
460
461
  };
461
462
  ({ ...M });
462
- //#endregion
463
- //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
464
- var se = O([
463
+ var ce = O([
465
464
  "abortOperation",
466
465
  "auditObjectContent",
467
466
  "createObject",
@@ -477,38 +476,38 @@ var se = O([
477
476
  "retrieveChunks",
478
477
  "retrieveRecords",
479
478
  "upsertRecords"
480
- ]), ce = O([
479
+ ]), le = O([
481
480
  "application",
482
481
  "curatedDataset",
483
482
  "database",
484
483
  "fileStore"
485
- ]), le = /* @__PURE__ */ S({ label: E }), ue = O([
484
+ ]), ue = /* @__PURE__ */ C({ label: D }), de = O([
486
485
  "bidirectional",
487
486
  "destination",
488
487
  "source",
489
488
  "unknown"
490
- ]), de = /* @__PURE__ */ S({ label: E }), fe = /* @__PURE__ */ S({
489
+ ]), fe = /* @__PURE__ */ C({ label: D }), pe = /* @__PURE__ */ C({
491
490
  authMethodId: O([
492
491
  "apiKey",
493
492
  "disabled",
494
493
  "oAuth2",
495
494
  "none"
496
495
  ]),
497
- activeConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),
498
- canDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),
499
- id: /* @__PURE__ */ b(/* @__PURE__ */ C()),
500
- label: /* @__PURE__ */ b(E),
501
- maxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),
502
- params: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))
503
- }), pe = /* @__PURE__ */ S({
496
+ activeConnectionCount: /* @__PURE__ */ x(/* @__PURE__ */ b()),
497
+ canDescribe: /* @__PURE__ */ x(/* @__PURE__ */ _()),
498
+ id: /* @__PURE__ */ x(/* @__PURE__ */ w()),
499
+ label: /* @__PURE__ */ x(D),
500
+ maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
501
+ params: /* @__PURE__ */ x(/* @__PURE__ */ g(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
502
+ }), me = /* @__PURE__ */ C({
504
503
  ...M,
505
- typeId: /* @__PURE__ */ _("connector"),
506
- actionNames: /* @__PURE__ */ h(se),
507
- category: /* @__PURE__ */ v(le),
508
- categoryId: ce,
509
- implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), fe),
510
- usage: /* @__PURE__ */ v(de),
511
- usageId: /* @__PURE__ */ v(ue)
504
+ typeId: /* @__PURE__ */ v("connector"),
505
+ actionNames: /* @__PURE__ */ g(ce),
506
+ category: /* @__PURE__ */ y(ue),
507
+ categoryId: le,
508
+ implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), pe),
509
+ usage: /* @__PURE__ */ y(fe),
510
+ usageId: /* @__PURE__ */ y(de)
512
511
  }), N = {
513
512
  abortOperation: "Abort Operation",
514
513
  auditObjectContent: "Audit Object Content",
@@ -552,18 +551,17 @@ function L(e) {
552
551
  for (let e of Object.keys(N)) n += `| ${N[e]} | ${t.has(e) ? "✓" : ""} |\n`;
553
552
  return n;
554
553
  }
555
- //#endregion
556
- //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModulePresenter.es.js
554
+ O(["list"]), { ...M };
557
555
  var R = O([
558
556
  "list",
559
557
  "render",
560
558
  "setColorMode"
561
- ]), z = /* @__PURE__ */ S({
559
+ ]), z = /* @__PURE__ */ C({
562
560
  ...M,
563
- typeId: /* @__PURE__ */ _("presenter"),
564
- actionNames: /* @__PURE__ */ h(R),
565
- presentations: /* @__PURE__ */ h(oe)
566
- }), B = "code-health-reports/fallow", me = `${B}/badge.json`, he = `${B}/index.md`, V = "<!-- CONTRIBUTING_LICENSE_END -->", H = "<!-- CONTRIBUTING_LICENSE_START -->", ge = "<!-- GOVERNANCE_END -->", _e = "<!-- GOVERNANCE_START -->", U = "<!-- QUALITY_SECURITY_END -->", W = "<!-- QUALITY_SECURITY_START -->", ve = [
561
+ typeId: /* @__PURE__ */ v("presenter"),
562
+ actionNames: /* @__PURE__ */ g(R),
563
+ presentations: /* @__PURE__ */ g(se)
564
+ }), B = "code-health-reports/fallow", he = `${B}/badge.json`, ge = `${B}/index.md`, V = "<!-- CONTRIBUTING_LICENSE_END -->", H = "<!-- CONTRIBUTING_LICENSE_START -->", _e = "<!-- GOVERNANCE_END -->", U = "<!-- GOVERNANCE_START -->", W = "<!-- QUALITY_SECURITY_END -->", G = "<!-- QUALITY_SECURITY_START -->", ve = [
567
565
  {
568
566
  idPrefix: "dpuse-app",
569
567
  typeId: "app",
@@ -650,7 +648,7 @@ var R = O([
650
648
  }
651
649
  ], ye = n(r);
652
650
  async function be(n, r) {
653
- n !== void 0 && X(`${n} - clear(${r})`);
651
+ n !== void 0 && Z(`${n} - clear(${r})`);
654
652
  let i;
655
653
  try {
656
654
  i = await e.readdir(r, { withFileTypes: !0 });
@@ -674,12 +672,12 @@ async function xe(t, n) {
674
672
  return e.readdir(t, n);
675
673
  }
676
674
  async function Se(t, n, r, i) {
677
- t !== void 0 && X(`${t} - exec(${n} ${r.join(" ")})`);
675
+ t !== void 0 && Z(`${t} - exec(${n} ${r.join(" ")})`);
678
676
  let { stdout: a, stderr: o } = await ye(n, r);
679
677
  i === void 0 ? a.trim() && console.log(a.trim()) : await e.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
680
678
  }
681
679
  async function Ce(e, t, n, r = !1, a = !1) {
682
- return X(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
680
+ return Z(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
683
681
  i(t, n, {
684
682
  shell: a,
685
683
  stdio: "inherit"
@@ -689,7 +687,7 @@ async function Ce(e, t, n, r = !1, a = !1) {
689
687
  });
690
688
  }
691
689
  async function we(n, r, a, o, s = !1) {
692
- return X(`${n} - spawn(${r} ${a.join(" ")}) > ${o}`), new Promise((n, c) => {
690
+ return Z(`${n} - spawn(${r} ${a.join(" ")}) > ${o}`), new Promise((n, c) => {
693
691
  let l = i(r, a, {
694
692
  shell: !1,
695
693
  stdio: [
@@ -712,18 +710,18 @@ async function we(n, r, a, o, s = !1) {
712
710
  });
713
711
  }
714
712
  async function Te() {
715
- let e = await K("./README.md"), t = e.indexOf(_e), n = e.indexOf(ge);
713
+ let e = await q("./README.md"), t = e.indexOf(U), n = e.indexOf(_e);
716
714
  if (t === -1 || n === -1) return;
717
- let r = `${W}\n${U}\n\n${H}\n${V}`;
718
- await Y("README.md", `${e.slice(0, t)}${r}${e.slice(n + 23)}`);
715
+ let r = `${G}\n${W}\n\n${H}\n${V}`;
716
+ await X("README.md", `${e.slice(0, t)}${r}${e.slice(n + 23)}`);
719
717
  }
720
- async function G(t) {
718
+ async function K(t) {
721
719
  return JSON.parse(await e.readFile(t, "utf-8"));
722
720
  }
723
- async function K(t) {
721
+ async function q(t) {
724
722
  return await e.readFile(t, "utf-8");
725
723
  }
726
- async function q(t) {
724
+ async function J(t) {
727
725
  try {
728
726
  return await e.readFile(t, "utf-8");
729
727
  } catch (e) {
@@ -731,13 +729,13 @@ async function q(t) {
731
729
  throw e;
732
730
  }
733
731
  }
734
- async function J(n, r) {
732
+ async function Y(n, r) {
735
733
  await e.mkdir(t.dirname(n), { recursive: !0 }), await e.writeFile(n, `${JSON.stringify(r, void 0, 4)}\n`, "utf-8");
736
734
  }
737
735
  async function Ee(e, t, n) {
738
- await Y("README.md", Ie(await K("./README.md"), e, t, n));
736
+ await X("README.md", Le(await q("./README.md"), e, t, n));
739
737
  }
740
- async function Y(t, n) {
738
+ async function X(t, n) {
741
739
  await e.writeFile(t, n, "utf-8");
742
740
  }
743
741
  function De(e) {
@@ -746,7 +744,7 @@ function De(e) {
746
744
  function Oe(e) {
747
745
  console.info(`✅ ${e}`);
748
746
  }
749
- function X(e) {
747
+ function Z(e) {
750
748
  console.info(e);
751
749
  }
752
750
  function ke(e) {
@@ -754,7 +752,7 @@ function ke(e) {
754
752
  if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
755
753
  return t;
756
754
  }
757
- function Z(e, t) {
755
+ function Ae(e, t) {
758
756
  let n = e.repository, r = typeof n == "string" ? n : n?.url;
759
757
  if (r == null || r === "") throw Error(`package.json 'repository' field is required to ${t}.`);
760
758
  let i = r.replace(/^git\+/, "").replace(/\.git$/, ""), a = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(i);
@@ -764,23 +762,23 @@ function Z(e, t) {
764
762
  repo: a[2]
765
763
  };
766
764
  }
767
- async function Ae(t) {
765
+ async function je(t) {
768
766
  return await e.stat(t);
769
767
  }
770
- async function je(e, t, n) {
768
+ async function Me(e, t, n) {
771
769
  switch (n.typeId) {
772
- case "connector": return await Ne(e, t);
773
- case "presenter": return await Pe(e, t);
774
- default: return await Fe(e, t);
770
+ case "connector": return await Pe(e, t);
771
+ case "presenter": return await Fe(e, t);
772
+ default: return await Ie(e, t);
775
773
  }
776
774
  }
777
- async function Me(e, t, n = "./") {
778
- if (X(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
775
+ async function Ne(e, t, n = "./") {
776
+ if (Z(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
779
777
  else {
780
778
  let e = t.version, n = t.version.split(".");
781
779
  t.version = `${n[0] ?? "unknown"}.${n[1] ?? "unknown"}.${String(Number(n[2]) + 1)}`, console.info(`Project version bumped from '${e}' to '${t.version}'.`);
782
780
  }
783
- await J(`${n}package.json`, t);
781
+ await Y(`${n}package.json`, t);
784
782
  }
785
783
  async function Q(e) {
786
784
  let { default: t } = await import("typescript"), n = t.createSourceFile("index.ts", e, t.ScriptTarget.Latest, !0), r = [], i = (e) => {
@@ -788,32 +786,32 @@ async function Q(e) {
788
786
  };
789
787
  return i(n), r;
790
788
  }
791
- async function Ne(e, t) {
792
- X(`${e} Build connector project configuration`);
793
- let [n, r] = await Promise.all([G("config.json"), K("src/index.ts")]), i = /* @__PURE__ */ s(pe, n);
789
+ async function Pe(e, t) {
790
+ Z(`${e} Build connector project configuration`);
791
+ let [n, r] = await Promise.all([K("config.json"), q("src/index.ts")]), i = /* @__PURE__ */ s(me, n);
794
792
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
795
793
  let a = await Q(r);
796
794
  return await $(t, n, a, I(a));
797
795
  }
798
- async function Pe(e, t) {
799
- X(`${e} Build presenter project configuration`);
800
- let [n, r] = await Promise.all([G("config.json"), K("src/index.ts")]), i = /* @__PURE__ */ s(z, n);
796
+ async function Fe(e, t) {
797
+ Z(`${e} Build presenter project configuration`);
798
+ let [n, r] = await Promise.all([K("config.json"), q("src/index.ts")]), i = /* @__PURE__ */ s(z, n);
801
799
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
802
800
  return await $(t, n, await Q(r));
803
801
  }
804
- async function Fe(e, t) {
805
- X(`${e} Build project configuration`);
806
- let n = await G("config.json");
807
- return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await q("logo.svg"), n.iconDark ??= await q("logoDark.svg"), await J("config.json", n), n;
802
+ async function Ie(e, t) {
803
+ Z(`${e} Build project configuration`);
804
+ let n = await K("config.json");
805
+ return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await J("logo.svg"), n.iconDark ??= await J("logoDark.svg"), await Y("config.json", n), n;
808
806
  }
809
807
  async function $(e, t, n, r) {
810
- return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await J("config.json", t), t;
808
+ return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await Y("config.json", t), t;
811
809
  }
812
- function Ie(e, t, n, r) {
810
+ function Le(e, t, n, r) {
813
811
  let i = e.indexOf(n), a = e.indexOf(r);
814
812
  if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
815
813
  let o = t.trim();
816
814
  return `${e.slice(0, Math.max(0, i + n.length))}\n\n${o}\n\n${e.slice(Math.max(0, a))}`;
817
815
  }
818
816
  //#endregion
819
- export { Ce as C, Y as D, Ee as E, I as O, Z as S, J as T, X as _, he as a, K as b, je as c, Se as d, xe as f, Oe as g, De as h, B as i, L as k, Me as l, Ae as m, H as n, U as o, ke as p, me as r, W as s, V as t, be as u, Te as v, we as w, q as x, G as y };
817
+ export { Ce as C, X as D, Ee as E, I as O, Ae as S, Y as T, Z as _, ge as a, q as b, Me as c, Se as d, xe as f, Oe as g, De as h, B as i, L as k, Ne as l, je as m, H as n, W as o, ke as p, he as r, G as s, V as t, be as u, Te as v, we as w, J as x, K as y };