@dpuse/dpuse-shared 1.0.219 → 1.0.221

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.
@@ -839,9 +839,16 @@ var he = A([
839
839
  itemTypeId: ve,
840
840
  usage: /* @__PURE__ */ y(be),
841
841
  usageId: /* @__PURE__ */ y(ye)
842
- }), Ce = 2048, N = "[REDACTED]", we = 10, Te = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Ee = [
842
+ }), Ce = /* @__PURE__ */ new Set([
843
+ "APIError",
844
+ "AppError",
845
+ "ConnectorError",
846
+ "DPUseError",
847
+ "EngineError",
848
+ "FetchError"
849
+ ]), we = 2048, N = "[REDACTED]", Te = 10, Ee = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, De = [
843
850
  [/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
844
- [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => Te.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
851
+ [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => Ee.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
845
852
  [/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
846
853
  [/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
847
854
  [/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
@@ -855,19 +862,19 @@ var he = A([
855
862
  constructor(e, t, n, r) {
856
863
  super(e, t, n, r), this.name = "AppError";
857
864
  }
858
- }, De = class extends P {
865
+ }, Oe = class extends P {
859
866
  constructor(e, t, n, r) {
860
867
  super(e, t, n, r), this.name = "APIError";
861
868
  }
862
- }, Oe = class extends P {
869
+ }, ke = class extends P {
863
870
  constructor(e, t, n, r) {
864
871
  super(e, t, n, r), this.name = "EngineError";
865
872
  }
866
- }, ke = class extends P {
873
+ }, I = class extends P {
867
874
  constructor(e, t, n, r) {
868
875
  super(e, t, n, r), this.name = "ConnectorError";
869
876
  }
870
- }, I = class extends P {
877
+ }, L = class extends P {
871
878
  constructor(e, t, n, r) {
872
879
  super(e, t, n, r), this.name = "FetchError";
873
880
  }
@@ -877,9 +884,9 @@ async function Ae(e, t, n) {
877
884
  try {
878
885
  a = await e.text();
879
886
  } catch (e) {
880
- a = `<body unavailable: ${L(e).message}>`;
887
+ a = `<body unavailable: ${R(e).message}>`;
881
888
  }
882
- return new I(i, n, { body: Re(a) });
889
+ return new L(i, n, { body: Re(a) });
883
890
  }
884
891
  function je(e) {
885
892
  return e.map((e) => e.message).join(" ");
@@ -889,7 +896,7 @@ function Me(e) {
889
896
  e();
890
897
  } catch {}
891
898
  }
892
- function L(e) {
899
+ function R(e) {
893
900
  if (e instanceof Error) return e;
894
901
  if (typeof e == "string") return Error(e);
895
902
  if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
@@ -902,10 +909,10 @@ function L(e) {
902
909
  return /* @__PURE__ */ Error("Unknown error");
903
910
  }
904
911
  function Ne(e) {
905
- let t = /* @__PURE__ */ new Set(), n = [], r = L(e);
912
+ let t = /* @__PURE__ */ new Set(), n = [], r = R(e);
906
913
  for (; r != null && !t.has(r);) {
907
914
  t.add(r);
908
- let [e, i] = ze(r), a = Le(e);
915
+ let [e, i] = Be(r), a = Le(e);
909
916
  /(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
910
917
  }
911
918
  return n;
@@ -929,11 +936,11 @@ function Fe(e) {
929
936
  }
930
937
  function Ie(e, t) {
931
938
  switch (e.name) {
932
- case "APIError": return new De(e.message, e.locator, e.data, { cause: t });
939
+ case "APIError": return new Oe(e.message, e.locator, e.data, { cause: t });
933
940
  case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
934
- case "ConnectorError": return new ke(e.message, e.locator, e.data, { cause: t });
935
- case "EngineError": return new Oe(e.message, e.locator, e.data, { cause: t });
936
- case "FetchError": return new I(e.message, e.locator, e.data, { cause: t });
941
+ case "ConnectorError": return new I(e.message, e.locator, e.data, { cause: t });
942
+ case "EngineError": return new ke(e.message, e.locator, e.data, { cause: t });
943
+ case "FetchError": return new L(e.message, e.locator, e.data, { cause: t });
937
944
  default: {
938
945
  let n = e.name;
939
946
  return new class extends Error {
@@ -946,25 +953,28 @@ function Le(e) {
946
953
  let { data: t, message: n, stack: r } = e;
947
954
  return {
948
955
  ...e,
949
- data: t === void 0 ? void 0 : z(t, /* @__PURE__ */ new WeakSet(), 0),
950
- message: R(n),
951
- stack: r === void 0 ? void 0 : R(r)
956
+ data: t === void 0 ? void 0 : B(t, /* @__PURE__ */ new WeakSet(), 0),
957
+ message: z(n),
958
+ stack: r === void 0 ? void 0 : z(r)
952
959
  };
953
960
  }
954
- function R(e) {
961
+ function z(e) {
955
962
  let t = e;
956
- for (let [e, n] of Ee) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
963
+ for (let [e, n] of De) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
957
964
  return t;
958
965
  }
959
- function z(e, t, n) {
960
- return typeof e == "string" ? R(e) : typeof e != "object" || !e ? e : n >= we ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => z(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && Te.test(e) ? N : z(r, t, n + 1)])));
966
+ function B(e, t, n) {
967
+ return typeof e == "string" ? z(e) : typeof e != "object" || !e ? e : n >= Te ? 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 && Ee.test(e) ? N : B(r, t, n + 1)])));
961
968
  }
962
969
  function Re(e) {
963
- if (e != null && e !== "") return e.length > Ce ? `${e.slice(0, Ce)}... [truncated]` : e;
970
+ if (e != null && e !== "") return e.length > we ? `${e.slice(0, we)}... [truncated]` : e;
964
971
  }
965
972
  function ze(e) {
966
- let t = e.cause == null ? null : L(e.cause);
967
- if (e instanceof P) return [{
973
+ return e instanceof P || Ce.has(e.name) && typeof e.locator == "string";
974
+ }
975
+ function Be(e) {
976
+ let t = e.cause == null ? null : R(e.cause);
977
+ if (ze(e)) return [{
968
978
  data: e.data,
969
979
  locator: e.locator,
970
980
  message: e.message,
@@ -987,7 +997,7 @@ function ze(e) {
987
997
  }, null];
988
998
  }
989
999
  // src/encoding/index.ts
990
- var Be = {
1000
+ var Ve = {
991
1001
  arabic: {
992
1002
  id: "arabic",
993
1003
  label: {
@@ -1142,7 +1152,7 @@ var Be = {
1142
1152
  es: "Occidental"
1143
1153
  }
1144
1154
  }
1145
- }, Ve = {
1155
+ }, He = {
1146
1156
  "armscii-8": {
1147
1157
  id: "armscii-8",
1148
1158
  groupId: "armenian",
@@ -1934,16 +1944,16 @@ var Be = {
1934
1944
  textDecoderId: "windows-1257",
1935
1945
  iconvLiteDecoderId: "windows1257"
1936
1946
  }
1937
- }, He = Be, B = Ve;
1938
- function Ue(e) {
1939
- return Object.hasOwn(B, e);
1940
- }
1947
+ }, Ue = Ve, V = He;
1941
1948
  function We(e) {
1942
- return Ue(e) ? B[e].textDecoderId ?? e : e;
1949
+ return Object.hasOwn(V, e);
1943
1950
  }
1944
- function Ge(e = "en") {
1945
- return Array.from(Object.values(B), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {
1946
- let o = t == null ? "" : Ke(t, e);
1951
+ function Ge(e) {
1952
+ return We(e) ? V[e].textDecoderId ?? e : e;
1953
+ }
1954
+ function Ke(e = "en") {
1955
+ return Array.from(Object.values(V), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {
1956
+ let o = t == null ? "" : qe(t, e);
1947
1957
  return {
1948
1958
  id: r,
1949
1959
  groupLabel: o,
@@ -1955,11 +1965,11 @@ function Ge(e = "en") {
1955
1965
  };
1956
1966
  }).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));
1957
1967
  }
1958
- function Ke(e, t) {
1959
- let n = He[e].label;
1968
+ function qe(e, t) {
1969
+ let n = Ue[e].label;
1960
1970
  return n[t] ?? n.en ?? e;
1961
1971
  }
1962
- var qe = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ D(/* @__PURE__ */ h(A([
1972
+ var Je = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ D(/* @__PURE__ */ h(A([
1963
1973
  "arrow",
1964
1974
  "avro",
1965
1975
  "dtv",
@@ -1972,15 +1982,15 @@ var qe = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ D(/* @__PURE__ */ h(
1972
1982
  "sqlite",
1973
1983
  "xlsx",
1974
1984
  "xml"
1975
- ])), /* @__PURE__ */ f(1)) }), Je = /* @__PURE__ */ h(/* @__PURE__ */ w()), Ye = /* @__PURE__ */ C({
1985
+ ])), /* @__PURE__ */ f(1)) }), Ye = /* @__PURE__ */ h(/* @__PURE__ */ w()), Xe = /* @__PURE__ */ C({
1976
1986
  ...M,
1977
1987
  typeId: /* @__PURE__ */ _("tool"),
1978
- actionNames: /* @__PURE__ */ x(Je),
1979
- parser: /* @__PURE__ */ x(qe)
1988
+ actionNames: /* @__PURE__ */ x(Ye),
1989
+ parser: /* @__PURE__ */ x(Je)
1980
1990
  });
1981
1991
  // src/component/module/tool/delimitedText.ts
1982
- async function Xe(e, t, n) {
1983
- let r = Ze(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Qe(e, t.valueDelimiterIds, t.isComplete, n);
1992
+ async function Ze(e, t, n) {
1993
+ let r = Qe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await $e(e, t.valueDelimiterIds, t.isComplete, n);
1984
1994
  return {
1985
1995
  issues: i,
1986
1996
  parsedRecords: a,
@@ -1988,16 +1998,16 @@ async function Xe(e, t, n) {
1988
1998
  valueDelimiterId: o
1989
1999
  };
1990
2000
  }
1991
- function Ze(e) {
2001
+ function Qe(e) {
1992
2002
  let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
1993
2003
  return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
1994
2004
  }
1995
- async function Qe(e, t, n, r) {
2005
+ async function $e(e, t, n, r) {
1996
2006
  let i, a, o, s = [], c, l = !1;
1997
2007
  for (let u of t) {
1998
2008
  let { issues: t, records: d } = await r(e, u, n);
1999
2009
  if (t.length > 0) {
2000
- c = $e(c, {
2010
+ c = et(c, {
2001
2011
  delimiter: u,
2002
2012
  issues: t,
2003
2013
  records: d
@@ -2005,7 +2015,7 @@ async function Qe(e, t, n, r) {
2005
2015
  continue;
2006
2016
  }
2007
2017
  if (l = !0, d.length === 0) continue;
2008
- let { averageValueCount: f, sumOfValueCountDiffs: p } = et(d);
2018
+ let { averageValueCount: f, sumOfValueCountDiffs: p } = tt(d);
2009
2019
  (a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);
2010
2020
  }
2011
2021
  if (!l && c != null) {
@@ -2013,19 +2023,19 @@ async function Qe(e, t, n, r) {
2013
2023
  return {
2014
2024
  issues: t,
2015
2025
  parsedRecords: n,
2016
- valueDelimiterId: V(n) ? e : void 0
2026
+ valueDelimiterId: nt(n) ? e : void 0
2017
2027
  };
2018
2028
  }
2019
2029
  return {
2020
2030
  issues: [],
2021
2031
  parsedRecords: s,
2022
- valueDelimiterId: i != null && V(s) ? i : void 0
2032
+ valueDelimiterId: i != null && nt(s) ? i : void 0
2023
2033
  };
2024
2034
  }
2025
- function $e(e, t) {
2035
+ function et(e, t) {
2026
2036
  return e == null || t.issues.length < e.issues.length ? t : e;
2027
2037
  }
2028
- function et(e) {
2038
+ function tt(e) {
2029
2039
  let t = 0, n = 0, r;
2030
2040
  for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
2031
2041
  return {
@@ -2033,14 +2043,14 @@ function et(e) {
2033
2043
  sumOfValueCountDiffs: n
2034
2044
  };
2035
2045
  }
2036
- function V(e) {
2046
+ function nt(e) {
2037
2047
  let t = /* @__PURE__ */ new Map();
2038
2048
  for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
2039
2049
  let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
2040
2050
  return n > 1 && r * 2 > e.length;
2041
2051
  }
2042
2052
  // src/component/module/tool/index.ts
2043
- var tt = "https://engine-eu.dpuse.app/tools", nt = { dtv: "dpuse-tool-rust-csv-core-parser" }, H = "dpuse-tool-";
2053
+ var rt = "https://engine-eu.dpuse.app/tools", it = { dtv: "dpuse-tool-rust-csv-core-parser" }, H = "dpuse-tool-";
2044
2054
  function U(e, t) {
2045
2055
  return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
2046
2056
  }
@@ -2053,10 +2063,10 @@ function W(e, t, n) {
2053
2063
  };
2054
2064
  throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
2055
2065
  }
2056
- let a = nt[t];
2066
+ let a = it[t];
2057
2067
  return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
2058
2068
  }
2059
- async function rt(e, t) {
2069
+ async function at(e, t) {
2060
2070
  let n = `${H}${t}`, r = e.find((e) => e.id === n);
2061
2071
  if (!r) {
2062
2072
  let r = {
@@ -2065,7 +2075,7 @@ async function rt(e, t) {
2065
2075
  };
2066
2076
  throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
2067
2077
  }
2068
- let i = `${tt}/${t}_v${r.version}/${n}.es.js`;
2078
+ let i = `${rt}/${t}_v${r.version}/${n}.es.js`;
2069
2079
  try {
2070
2080
  return new (await (import(
2071
2081
  /* @vite-ignore */
@@ -2081,8 +2091,8 @@ async function rt(e, t) {
2081
2091
  }
2082
2092
  }
2083
2093
  // src/component/module/connector/objectParsing.ts
2084
- var it = "\n", G = ",", K = new Set(de.filter(({ isStructured: e }) => e).map(({ id: e }) => e)), at = 13, q = 10, ot = 34, J = 1048576;
2085
- async function st(e) {
2094
+ var ot = "\n", G = ",", K = new Set(de.filter(({ isStructured: e }) => e).map(({ id: e }) => e)), st = 13, q = 10, ct = 34, J = 1048576;
2095
+ async function lt(e) {
2086
2096
  let { asAt: t, declaredColumnConfigs: n, declaredReadingConfig: r, filePreview: i, inferDataTypes: a, readingChoiceConfig: o, startedAt: s, toolConfigs: c } = e, { isComplete: l, text: u } = i, d = r != null, f = i.bytes.length, p = {
2087
2097
  decodedEncodingId: i.decodedEncodingId,
2088
2098
  replacementCharacterCount: i.replacementCharacterCount
@@ -2092,7 +2102,7 @@ async function st(e) {
2092
2102
  encodingSourceId: r?.encodingId == null ? i.encodingSourceId : void 0
2093
2103
  };
2094
2104
  if (f === 0) return {
2095
- contentAuditConfig: pt({
2105
+ contentAuditConfig: ht({
2096
2106
  asAt: t,
2097
2107
  columns: [],
2098
2108
  isComplete: !0,
@@ -2116,7 +2126,7 @@ async function st(e) {
2116
2126
  hasHeaders: !1,
2117
2127
  parsedRecords: [],
2118
2128
  parserId: void 0,
2119
- recordDelimiterId: it,
2129
+ recordDelimiterId: ot,
2120
2130
  size: 0,
2121
2131
  text: void 0,
2122
2132
  valueDelimiterId: G
@@ -2129,17 +2139,17 @@ async function st(e) {
2129
2139
  hasHeaders: !1,
2130
2140
  isDeclared: d,
2131
2141
  parserId: void 0,
2132
- recordDelimiterId: it,
2142
+ recordDelimiterId: ot,
2133
2143
  valueDelimiterId: G
2134
2144
  },
2135
2145
  encodingCandidates: m
2136
2146
  };
2137
- let g = r?.dataFormatId ?? i.dataFormatId, _ = r?.valueDelimiterId, v = await yt({
2147
+ let g = r?.dataFormatId ?? i.dataFormatId, _ = r?.valueDelimiterId, v = await xt({
2138
2148
  dataFormatId: g,
2139
2149
  filePreview: i,
2140
2150
  parserId: void 0,
2141
2151
  toolConfigs: c
2142
- }), y = await vt({
2152
+ }), y = await bt({
2143
2153
  dataFormatId: g,
2144
2154
  isComplete: l,
2145
2155
  parserId: void 0,
@@ -2148,12 +2158,12 @@ async function st(e) {
2148
2158
  text: u,
2149
2159
  toolConfigs: c,
2150
2160
  valueDelimiterId: _
2151
- }), b = o?.dataFormatId ?? g, x = o?.dataFormatId != null || o?.parserId != null, S = x || o?.valueDelimiterId != null || o?.structurePath != null, C = x ? await yt({
2161
+ }), b = o?.dataFormatId ?? g, x = o?.dataFormatId != null || o?.parserId != null, S = x || o?.valueDelimiterId != null || o?.structurePath != null, C = x ? await xt({
2152
2162
  dataFormatId: b,
2153
2163
  filePreview: i,
2154
2164
  parserId: o.parserId,
2155
2165
  toolConfigs: c
2156
- }) : v, w = S ? await vt({
2166
+ }) : v, w = S ? await bt({
2157
2167
  dataFormatId: b,
2158
2168
  isComplete: l,
2159
2169
  parserId: o.parserId,
@@ -2164,7 +2174,7 @@ async function st(e) {
2164
2174
  valueDelimiterId: _ ?? o.valueDelimiterId
2165
2175
  }) : y, T = w?.parseTextResult.parsedRecords ?? [], E = w?.parseTextResult.hasHeaders ?? r?.hasHeaders, D = w == null ? void 0 : a(T, E, n), O = S && y != null ? a(y.parseTextResult.parsedRecords, y.parseTextResult.hasHeaders ?? r?.hasHeaders, n) : D;
2166
2176
  return {
2167
- contentAuditConfig: pt({
2177
+ contentAuditConfig: ht({
2168
2178
  asAt: t,
2169
2179
  columns: D?.columnConfigs ?? [],
2170
2180
  isComplete: l,
@@ -2201,8 +2211,8 @@ async function st(e) {
2201
2211
  structureIndex: C
2202
2212
  };
2203
2213
  }
2204
- async function* ct(e) {
2205
- let { options: t, signal: n, stream: r, toolConfigs: i } = e, { encodingId: a, valueDelimiterId: o } = ft(t), { parser: s } = await Y(i, t.dataFormatId, t.parserId), { recordCount: c } = yield* s.parseStream(r, {
2214
+ async function* ut(e) {
2215
+ let { options: t, signal: n, stream: r, toolConfigs: i } = e, { encodingId: a, valueDelimiterId: o } = mt(t), { parser: s } = await Y(i, t.dataFormatId, t.parserId), { recordCount: c } = yield* s.parseStream(r, {
2206
2216
  abortSignal: n,
2207
2217
  chunkSize: t.chunkSize,
2208
2218
  dataFormatId: t.dataFormatId,
@@ -2212,8 +2222,8 @@ async function* ct(e) {
2212
2222
  });
2213
2223
  return { recordCount: c };
2214
2224
  }
2215
- async function lt(e) {
2216
- let { constructColumnAuditor: t, declaredColumnConfigs: n, onProgress: r, options: i, signal: a, stream: o, toolConfigs: s } = e, { encodingId: c, valueDelimiterId: l } = ft(i), u = Date.now(), d = performance.now(), f = t(i.hasHeaders, n), { parser: p } = await Y(s, i.dataFormatId, i.parserId), m = _t(o), h = K.has(i.dataFormatId), g = h ? gt(m.stream) : mt(m.stream, {
2225
+ async function dt(e) {
2226
+ let { constructColumnAuditor: t, declaredColumnConfigs: n, onProgress: r, options: i, signal: a, stream: o, toolConfigs: s } = e, { encodingId: c, valueDelimiterId: l } = mt(i), u = Date.now(), d = performance.now(), f = t(i.hasHeaders, n), { parser: p } = await Y(s, i.dataFormatId, i.parserId), m = yt(o), h = K.has(i.dataFormatId), g = h ? vt(m.stream) : gt(m.stream, {
2217
2227
  byteLimit: i.byteLimit,
2218
2228
  encodingId: c,
2219
2229
  stopSignal: i.stopSignal
@@ -2253,7 +2263,7 @@ async function lt(e) {
2253
2263
  hasHeaders: x
2254
2264
  };
2255
2265
  }
2256
- async function ut(e) {
2266
+ async function ft(e) {
2257
2267
  let { onProgress: t, options: n, signal: r, stream: i, toolConfigs: a } = e, o = await X(a, n.dataFormatId, n.parserId), s = n.encodingId ?? "utf-8";
2258
2268
  return await o.buildStructureIndex(i, {
2259
2269
  abortSignal: r,
@@ -2264,7 +2274,7 @@ async function ut(e) {
2264
2274
  onProgress: t
2265
2275
  });
2266
2276
  }
2267
- async function dt(e) {
2277
+ async function pt(e) {
2268
2278
  let { options: t, signal: n, stream: r, toolConfigs: i } = e;
2269
2279
  return await (await X(i, t.dataFormatId, t.parserId)).listStructureEntries(r, {
2270
2280
  abortSignal: n,
@@ -2275,7 +2285,7 @@ async function dt(e) {
2275
2285
  path: t.structurePath
2276
2286
  });
2277
2287
  }
2278
- function ft(e) {
2288
+ function mt(e) {
2279
2289
  let t = e.valueDelimiterId ?? (K.has(e.dataFormatId) ? "" : void 0);
2280
2290
  if (t == null || e.encodingId == null) throw Error(`'${e.path}' has no encoding or value delimiter, which a parser needs to read it.`);
2281
2291
  return {
@@ -2283,7 +2293,7 @@ function ft(e) {
2283
2293
  valueDelimiterId: t
2284
2294
  };
2285
2295
  }
2286
- function pt(e) {
2296
+ function ht(e) {
2287
2297
  let { asAt: t, columns: n, isComplete: r, recordCount: i, size: a, startedAt: o } = e;
2288
2298
  return {
2289
2299
  asAt: t,
@@ -2299,8 +2309,8 @@ function pt(e) {
2299
2309
  sourceWaitDuration: void 0
2300
2310
  };
2301
2311
  }
2302
- function mt(e, t) {
2303
- let n = e.getReader(), r = ht(t.encodingId), i = 0, a = !1, o;
2312
+ function gt(e, t) {
2313
+ let n = e.getReader(), r = _t(t.encodingId), i = 0, a = !1, o;
2304
2314
  return {
2305
2315
  byteCount: () => i,
2306
2316
  isComplete: () => a,
@@ -2326,19 +2336,19 @@ function mt(e, t) {
2326
2336
  }, { highWaterMark: 0 })
2327
2337
  };
2328
2338
  }
2329
- function ht(e) {
2330
- let t = We(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
2339
+ function _t(e) {
2340
+ let t = Ge(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
2331
2341
  return (e, t, o) => {
2332
2342
  for (let s = 0; s < e.length; s++) {
2333
2343
  let c = e[s];
2334
- if ((c === ot || c === q || c === at) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
2335
- if (c === ot) a = !a;
2344
+ if ((c === ct || c === q || c === st) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
2345
+ if (c === ct) a = !a;
2336
2346
  else if (!a && s >= o && (c === q || e[s + r] !== q)) return s + r - i;
2337
2347
  }
2338
2348
  }
2339
2349
  };
2340
2350
  }
2341
- function gt(e) {
2351
+ function vt(e) {
2342
2352
  let t = e.getReader(), n = 0, r = !1;
2343
2353
  return {
2344
2354
  byteCount: () => n,
@@ -2354,7 +2364,7 @@ function gt(e) {
2354
2364
  }, { highWaterMark: 0 })
2355
2365
  };
2356
2366
  }
2357
- function _t(e) {
2367
+ function yt(e) {
2358
2368
  let t = e.getReader(), n = 0;
2359
2369
  return {
2360
2370
  stream: new ReadableStream({
@@ -2369,7 +2379,7 @@ function _t(e) {
2369
2379
  waitDuration: () => n
2370
2380
  };
2371
2381
  }
2372
- async function vt(e) {
2382
+ async function bt(e) {
2373
2383
  let { dataFormatId: t, isComplete: n, parserId: r, structureIndex: i, structurePath: a, text: o, toolConfigs: s, valueDelimiterId: c } = e;
2374
2384
  if (t == null || o == null || U(s, t).length === 0) return;
2375
2385
  let { parser: l, parserId: u } = await Y(s, t, r);
@@ -2413,7 +2423,7 @@ async function vt(e) {
2413
2423
  valueDelimiterId: p ? c ?? m.valueDelimiterId ?? G : m.valueDelimiterId
2414
2424
  };
2415
2425
  }
2416
- async function yt(e) {
2426
+ async function xt(e) {
2417
2427
  let { dataFormatId: t, filePreview: n, parserId: r, toolConfigs: i } = e;
2418
2428
  if (!(t != null && K.has(t) && U(i, t).length > 0 && W(i, t, r).actionNames?.includes("buildStructureIndex") === !0)) return;
2419
2429
  let a = await X(i, t, r), o = new Blob([n.bytes]).stream(), s = n.decodedEncodingId ?? "utf-8";
@@ -2429,7 +2439,7 @@ async function yt(e) {
2429
2439
  async function Y(e, t, n) {
2430
2440
  let r = W(e, t, n);
2431
2441
  return {
2432
- parser: await rt(e, r.id.slice(H.length)),
2442
+ parser: await at(e, r.id.slice(H.length)),
2433
2443
  parserId: r.id
2434
2444
  };
2435
2445
  }
@@ -2438,32 +2448,44 @@ async function X(e, t, n) {
2438
2448
  if (!("buildStructureIndex" in r)) throw new F(`Tool '${i}' does not map the structure of '${t}' items.`, "dpuse-shared.component.module.connector.objectParsing.loadStructuredParser");
2439
2449
  return r;
2440
2450
  }
2451
+ // src/component/module/connector/storeErrors.ts
2452
+ function St(e, t, n, r) {
2453
+ return new I(t, n, { storeErrorId: e }, r);
2454
+ }
2455
+ function Ct(e) {
2456
+ let t = /* @__PURE__ */ new Set();
2457
+ for (let n = e; n instanceof Error && !t.has(n); n = n.cause) {
2458
+ t.add(n);
2459
+ let e = n.data?.storeErrorId;
2460
+ if (e === "heldElsewhere" || e === "notLoaded") return e;
2461
+ }
2462
+ }
2441
2463
  // src/component/module/connector/storePath.ts
2442
- var bt = /^[\w-]+$/u;
2443
- function xt(e) {
2464
+ var wt = /^[\w-]+$/u;
2465
+ function Tt(e) {
2444
2466
  if (!e.startsWith("/")) return {
2445
2467
  databaseName: void 0,
2446
2468
  tableName: e
2447
2469
  };
2448
2470
  let [, t, n, ...r] = e.split("/");
2449
- if (t == null || n == null || n === "" || r.length > 0 || !bt.test(t)) throw Error(`Encountered invalid store path '${e}'.`);
2471
+ if (t == null || n == null || n === "" || r.length > 0 || !wt.test(t)) throw Error(`Encountered invalid store path '${e}'.`);
2450
2472
  return {
2451
2473
  databaseName: t,
2452
2474
  tableName: n
2453
2475
  };
2454
2476
  }
2455
2477
  // src/component/module/connector/storeValues.ts
2456
- function St(e) {
2478
+ function Et(e) {
2457
2479
  return e.map((e) => ({
2458
- value: Ct(e),
2480
+ value: Dt(e),
2459
2481
  valueWasQuoted: !1
2460
2482
  }));
2461
2483
  }
2462
- function Ct(e) {
2484
+ function Dt(e) {
2463
2485
  return e == null ? null : e instanceof Date ? e.toISOString() : String(e);
2464
2486
  }
2465
2487
  // src/component/module/connector/webLock.ts
2466
- async function wt(e, t = {}) {
2488
+ async function Ot(e, t = {}) {
2467
2489
  let n = Promise.withResolvers(), r = { isGranted: !1 }, i = navigator.locks.request(e, t.takeOver === !0 ? { steal: !0 } : { ifAvailable: !0 }, (e) => {
2468
2490
  if (e == null) n.resolve(void 0);
2469
2491
  else return r.isGranted = !0, new Promise((e) => {
@@ -2480,16 +2502,16 @@ async function wt(e, t = {}) {
2480
2502
  o(), await a;
2481
2503
  };
2482
2504
  }
2483
- var Tt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
2505
+ var kt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
2484
2506
  format: /* @__PURE__ */ x(/* @__PURE__ */ w()),
2485
2507
  name: /* @__PURE__ */ w(),
2486
2508
  title: /* @__PURE__ */ x(/* @__PURE__ */ w()),
2487
2509
  type: /* @__PURE__ */ x(/* @__PURE__ */ w())
2488
- })) }), Et = /* @__PURE__ */ v({
2510
+ })) }), At = /* @__PURE__ */ v({
2489
2511
  delimiter: /* @__PURE__ */ x(/* @__PURE__ */ w()),
2490
2512
  header: /* @__PURE__ */ x(/* @__PURE__ */ g()),
2491
2513
  headerRows: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ b()))
2492
- }), Dt = {
2514
+ }), jt = {
2493
2515
  boolean: {
2494
2516
  dataSubtypeId: void 0,
2495
2517
  dataTypeId: "boolean"
@@ -2522,18 +2544,18 @@ var Tt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
2522
2544
  dataSubtypeId: "integer",
2523
2545
  dataTypeId: "numeric"
2524
2546
  }
2525
- }, Ot = {
2547
+ }, Mt = {
2526
2548
  email: "email",
2527
2549
  uri: "url",
2528
2550
  uuid: "uuid"
2529
2551
  };
2530
- function kt(e) {
2531
- let t = /* @__PURE__ */ O(Tt, e.schema);
2552
+ function Nt(e) {
2553
+ let t = /* @__PURE__ */ O(kt, e.schema);
2532
2554
  if (!t.success) throw new F("The table schema is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
2533
- let n = /* @__PURE__ */ O(Et, e.dialect ?? {});
2555
+ let n = /* @__PURE__ */ O(At, e.dialect ?? {});
2534
2556
  if (!n.success) throw new F("The table dialect is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
2535
2557
  let r = t.output.fields.map((e) => {
2536
- let t = At(e.type, e.format);
2558
+ let t = Pt(e.type, e.format);
2537
2559
  return {
2538
2560
  name: e.name,
2539
2561
  label: e.title,
@@ -2551,18 +2573,18 @@ function kt(e) {
2551
2573
  }
2552
2574
  };
2553
2575
  }
2554
- function At(e, t) {
2555
- let n = e == null ? void 0 : Dt[e];
2576
+ function Pt(e, t) {
2577
+ let n = e == null ? void 0 : jt[e];
2556
2578
  return n == null ? {
2557
2579
  dataSubtypeId: void 0,
2558
2580
  dataTypeId: void 0
2559
2581
  } : t == null || n.dataTypeId !== "string" ? n : {
2560
- dataSubtypeId: Ot[t] ?? "plain",
2582
+ dataSubtypeId: Mt[t] ?? "plain",
2561
2583
  dataTypeId: "string"
2562
2584
  };
2563
2585
  }
2564
2586
  // src/component/module/connector/index.ts
2565
- var jt = [
2587
+ var Ft = [
2566
2588
  {
2567
2589
  id: "application",
2568
2590
  label: {
@@ -2591,7 +2613,7 @@ var jt = [
2591
2613
  es: "Almacén de Archivos"
2592
2614
  }
2593
2615
  }
2594
- ], Mt = [
2616
+ ], It = [
2595
2617
  {
2596
2618
  id: "apiEndpoint",
2597
2619
  label: {
@@ -2613,7 +2635,7 @@ var jt = [
2613
2635
  es: "Tabla"
2614
2636
  }
2615
2637
  }
2616
- ], Nt = {
2638
+ ], Lt = {
2617
2639
  auditObjectContent: "Audit Object Content",
2618
2640
  closeStore: "Close Store",
2619
2641
  createObject: "Create Object",
@@ -2633,7 +2655,7 @@ var jt = [
2633
2655
  removeRecords: "Remove Records",
2634
2656
  retrieveRecords: "Retrieve Records",
2635
2657
  upsertRecords: "Upsert Records"
2636
- }, Pt = [
2658
+ }, Rt = [
2637
2659
  {
2638
2660
  id: "bidirectional",
2639
2661
  label: {
@@ -2662,13 +2684,13 @@ var jt = [
2662
2684
  es: "Desconocido"
2663
2685
  }
2664
2686
  }
2665
- ], Ft = /* @__PURE__ */ new Set([
2687
+ ], zt = /* @__PURE__ */ new Set([
2666
2688
  "createObject",
2667
2689
  "dropObject",
2668
2690
  "loadObjectRecords",
2669
2691
  "removeRecords",
2670
2692
  "upsertRecords"
2671
- ]), It = /* @__PURE__ */ new Set([
2693
+ ]), Bt = /* @__PURE__ */ new Set([
2672
2694
  "auditObjectContent",
2673
2695
  "findObject",
2674
2696
  "getInfo",
@@ -2681,13 +2703,13 @@ var jt = [
2681
2703
  "queryRecords",
2682
2704
  "retrieveRecords"
2683
2705
  ]);
2684
- function Lt(e) {
2706
+ function Vt(e) {
2685
2707
  let t = !1, n = !1;
2686
- for (let r of e) It.has(r) && (t = !0), Ft.has(r) && (n = !0);
2708
+ for (let r of e) Bt.has(r) && (t = !0), zt.has(r) && (n = !0);
2687
2709
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
2688
2710
  }
2689
- var Rt = (e, t = "en") => {
2690
- let i = jt.find((t) => t.id === e);
2711
+ var Ht = (e, t = "en") => {
2712
+ let i = Ft.find((t) => t.id === e);
2691
2713
  return i ? {
2692
2714
  label: r(n(i.label), t) ?? i.id,
2693
2715
  description: ""
@@ -2695,8 +2717,8 @@ var Rt = (e, t = "en") => {
2695
2717
  label: e,
2696
2718
  description: ""
2697
2719
  };
2698
- }, zt = (e, t = "en") => {
2699
- let i = Mt.find((t) => t.id === e);
2720
+ }, Ut = (e, t = "en") => {
2721
+ let i = It.find((t) => t.id === e);
2700
2722
  return i ? {
2701
2723
  label: r(n(i.label), t) ?? i.id,
2702
2724
  description: ""
@@ -2704,8 +2726,8 @@ var Rt = (e, t = "en") => {
2704
2726
  label: e,
2705
2727
  description: ""
2706
2728
  };
2707
- }, Bt = (e, t = "en") => {
2708
- let i = Pt.find((t) => t.id === e);
2729
+ }, Wt = (e, t = "en") => {
2730
+ let i = Rt.find((t) => t.id === e);
2709
2731
  return i ? {
2710
2732
  label: r(n(i.label), t) ?? i.id,
2711
2733
  description: ""
@@ -2714,36 +2736,36 @@ var Rt = (e, t = "en") => {
2714
2736
  description: ""
2715
2737
  };
2716
2738
  };
2717
- function Vt(e) {
2739
+ function Gt(e) {
2718
2740
  let t = new Set(e), n = "|Action|Supported|\n";
2719
2741
  n += "|:----|:-------:|\n";
2720
- for (let e of Object.keys(Nt)) n += `| ${Nt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
2742
+ for (let e of Object.keys(Lt)) n += `| ${Lt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
2721
2743
  return n;
2722
2744
  }
2723
2745
  // src/component/module/cookbook/cookbookConfig.schema.ts
2724
- var Ht = A(["list"]), Ut = /* @__PURE__ */ C({
2746
+ var Kt = A(["list"]), qt = /* @__PURE__ */ C({
2725
2747
  ...M,
2726
2748
  typeId: /* @__PURE__ */ _("cookbook"),
2727
- actionNames: /* @__PURE__ */ h(Ht),
2749
+ actionNames: /* @__PURE__ */ h(Kt),
2728
2750
  recipes: /* @__PURE__ */ h(oe)
2729
2751
  });
2730
2752
  // src/component/module/engine/index.ts
2731
- function Wt(e) {
2753
+ function Jt(e) {
2732
2754
  return e.signal ?? new AbortController().signal;
2733
2755
  }
2734
2756
  // src/component/module/presenter/presenterConfig.schema.ts
2735
- var Gt = A([
2757
+ var Yt = A([
2736
2758
  "list",
2737
2759
  "render",
2738
2760
  "setColorMode"
2739
- ]), Kt = /* @__PURE__ */ C({
2761
+ ]), Xt = /* @__PURE__ */ C({
2740
2762
  ...M,
2741
2763
  typeId: /* @__PURE__ */ _("presenter"),
2742
- actionNames: /* @__PURE__ */ h(Gt),
2764
+ actionNames: /* @__PURE__ */ h(Yt),
2743
2765
  presentations: /* @__PURE__ */ h(oe)
2744
- }), qt = "https://engine-eu.dpuse.app/presenters";
2745
- async function Jt(e, t, n, r) {
2746
- let i = e.id, a = `${qt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
2766
+ }), Zt = "https://engine-eu.dpuse.app/presenters";
2767
+ async function Qt(e, t, n, r) {
2768
+ let i = e.id, a = `${Zt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
2747
2769
  try {
2748
2770
  return new (await (import(
2749
2771
  /* @vite-ignore */
@@ -2759,7 +2781,7 @@ async function Jt(e, t, n, r) {
2759
2781
  }
2760
2782
  }
2761
2783
  // src/locale/index.ts
2762
- function Yt(e, t) {
2784
+ function $t(e, t) {
2763
2785
  return {
2764
2786
  ...e,
2765
2787
  label: e.label[t] ?? e.id,
@@ -2767,7 +2789,7 @@ function Yt(e, t) {
2767
2789
  verb: e.verb?.[t] ?? void 0
2768
2790
  };
2769
2791
  }
2770
- function Xt(e, t, n = !1) {
2792
+ function en(e, t, n = !1) {
2771
2793
  let r = e.map((e) => ({
2772
2794
  ...e,
2773
2795
  label: e.label[t] ?? e.id,
@@ -2776,7 +2798,7 @@ function Xt(e, t, n = !1) {
2776
2798
  }));
2777
2799
  return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
2778
2800
  }
2779
- function Zt(e, t) {
2801
+ function tn(e, t) {
2780
2802
  return {
2781
2803
  ...e,
2782
2804
  label: e.label[t] ?? e.id,
@@ -2784,7 +2806,7 @@ function Zt(e, t) {
2784
2806
  };
2785
2807
  }
2786
2808
  // src/utilities/index.ts
2787
- var Qt = /* @__PURE__ */ new Map([
2809
+ var nn = /* @__PURE__ */ new Map([
2788
2810
  ["arrow", "application/vnd.apache.arrow.file"],
2789
2811
  ["avro", "application/vnd.apache.avro"],
2790
2812
  ["bin", "application/octet-stream"],
@@ -2811,14 +2833,14 @@ var Qt = /* @__PURE__ */ new Map([
2811
2833
  ["minute", 6e4],
2812
2834
  ["second", 1e3],
2813
2835
  ["millisecond", 1]
2814
- ], $t = [
2836
+ ], rn = [
2815
2837
  ["byte", 1],
2816
2838
  ["KiB", 1024],
2817
2839
  ["MiB", 1048576],
2818
2840
  ["GiB", 1073741824],
2819
2841
  ["TiB", 1099511627776]
2820
- ], en = /* @__PURE__ */ new Map(), tn = /* @__PURE__ */ new Map();
2821
- function nn(e, t = 2, n = t, r = Z) {
2842
+ ], an = /* @__PURE__ */ new Map(), on = /* @__PURE__ */ new Map();
2843
+ function sn(e, t = 2, n = t, r = Z) {
2822
2844
  return e == null ? "" : $(r, {
2823
2845
  localeMatcher: "best fit",
2824
2846
  maximumFractionDigits: t,
@@ -2828,18 +2850,18 @@ function nn(e, t = 2, n = t, r = Z) {
2828
2850
  useGrouping: !0
2829
2851
  }).format(e);
2830
2852
  }
2831
- function rn(e, t = Z) {
2832
- return nn(e, 0, 0, t);
2853
+ function cn(e, t = Z) {
2854
+ return sn(e, 0, 0, t);
2833
2855
  }
2834
- function an(e, t = 1, n = Z) {
2856
+ function ln(e, t = 1, n = Z) {
2835
2857
  return e == null || !Number.isFinite(e) ? "" : $(n, {
2836
2858
  maximumFractionDigits: t,
2837
2859
  notation: "compact"
2838
2860
  }).format(e);
2839
2861
  }
2840
- function on(e, t = 1, n = Z) {
2862
+ function un(e, t = 1, n = Z) {
2841
2863
  if (e == null || !Number.isFinite(e)) return "";
2842
- let [r, i] = $t.find(([, n]) => hn(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["TiB", 1099511627776];
2864
+ let [r, i] = rn.find(([, n]) => yn(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["TiB", 1099511627776];
2843
2865
  return i === 1 ? $(n, {
2844
2866
  maximumFractionDigits: 0,
2845
2867
  style: "unit",
@@ -2847,7 +2869,7 @@ function on(e, t = 1, n = Z) {
2847
2869
  unitDisplay: "long"
2848
2870
  }).format(e) : `${$(n, { maximumFractionDigits: t }).format(e / i)} ${r}`;
2849
2871
  }
2850
- function sn(e, t = "millisecond", n = Z) {
2872
+ function dn(e, t = "millisecond", n = Z) {
2851
2873
  if (e == null || !Number.isFinite(e)) return "";
2852
2874
  let r = Math.round(Math.abs(e)), i = Q.findIndex(([, e]) => r >= e), a = i === -1 ? Q.length - 1 : i, o = Q.findIndex(([e]) => e === t), s = Q.slice(a, Math.max(o, a) + 1), c = [];
2853
2875
  for (let [t, i] of s) {
@@ -2861,25 +2883,25 @@ function sn(e, t = "millisecond", n = Z) {
2861
2883
  unitDisplay: "short"
2862
2884
  }).format(o));
2863
2885
  }
2864
- return mn(n).format(c);
2886
+ return vn(n).format(c);
2865
2887
  }
2866
- function cn(e) {
2888
+ function fn(e) {
2867
2889
  if (!e) return;
2868
- let t = pn(e);
2890
+ let t = _n(e);
2869
2891
  return t === void 0 ? e : e.slice(0, t);
2870
2892
  }
2871
- function ln(e) {
2893
+ function pn(e) {
2872
2894
  if (!e) return;
2873
- let t = pn(e);
2895
+ let t = _n(e);
2874
2896
  return t === void 0 ? void 0 : e.slice(t + 1);
2875
2897
  }
2876
- function un(e) {
2877
- return e != null && Qt.has(e.toLowerCase());
2898
+ function mn(e) {
2899
+ return e != null && nn.has(e.toLowerCase());
2878
2900
  }
2879
- function dn(e) {
2880
- return (e == null ? void 0 : Qt.get(e.toLowerCase())) ?? "application/octet-stream";
2901
+ function hn(e) {
2902
+ return (e == null ? void 0 : nn.get(e.toLowerCase())) ?? "application/octet-stream";
2881
2903
  }
2882
- function fn(e) {
2904
+ function gn(e) {
2883
2905
  switch (e) {
2884
2906
  case "Edm.Boolean": return "boolean";
2885
2907
  case "Edm.Byte":
@@ -2900,23 +2922,23 @@ function fn(e) {
2900
2922
  default: return "unknown";
2901
2923
  }
2902
2924
  }
2903
- function pn(e) {
2925
+ function _n(e) {
2904
2926
  let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
2905
2927
  return n > t && n < e.length - 1 ? n : void 0;
2906
2928
  }
2907
- function mn(e) {
2908
- let t = en.get(e);
2929
+ function vn(e) {
2930
+ let t = an.get(e);
2909
2931
  return t || (t = new Intl.ListFormat(e, {
2910
2932
  style: "narrow",
2911
2933
  type: "unit"
2912
- }), en.set(e, t)), t;
2934
+ }), an.set(e, t)), t;
2913
2935
  }
2914
2936
  function $(e, t) {
2915
- let n = `${e}|${JSON.stringify(t)}`, r = tn.get(n);
2916
- return r || (r = new Intl.NumberFormat(e, t), tn.set(n, r)), r;
2937
+ let n = `${e}|${JSON.stringify(t)}`, r = on.get(n);
2938
+ return r || (r = new Intl.NumberFormat(e, t), on.set(n, r)), r;
2917
2939
  }
2918
- function hn(e, t) {
2940
+ function yn(e, t) {
2919
2941
  let n = 10 ** t;
2920
2942
  return Math.round(e * n) / n;
2921
2943
  }
2922
- export { De as APIError, F as AppError, ke as ConnectorError, de as DATA_FORMAT_CONFIGS, fe as DATA_TYPE_CONFIGS, pe as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, He as ENCODING_GROUP_CONFIG_MAP, B as ENCODING_TYPE_CONFIG_MAP, Oe as EngineError, I as FetchError, t as SUPPORTED_LANGUAGES, H as TOOL_NAME_PREFIX, j as VALUE_DELIMITER_CONFIGS, wt as acquireWebLock, lt as auditObjectContentWithParser, Ae as buildFetchError, st as buildPreviewObjectResult, ce as componentInstanceConfigSchema, je as concatenateSerialisedErrorMessages, Se as connectorConfigSchema, Rt as constructConnectorCategoryConfig, zt as constructConnectorItemTypeConfig, Bt as constructConnectorUsageConfig, fn as convertODataTypeIdToUsageTypeId, St as convertStoreRecordToParsedRecord, Ct as convertStoreValueToText, Ut as cookbookConfigSchema, n as createLabelMap, Lt as determineConnectorUsageId, ln as extractExtensionFromPath, cn as extractPathWithoutExtension, nn as formatNumberAsDecimalNumber, sn as formatNumberAsDuration, an as formatNumberAsSize, on as formatNumberAsStorageSize, rn as formatNumberAsWholeNumber, ue as getComponentStatus, Vt as getConnectorActionsTable, Ge as getEncodingTypeConfigs, me as getValueDelimiterCharacter, un as hasMimeTypeForExtension, Me as ignoreErrors, ut as indexObjectStructureWithParser, Ue as isEncodingTypeId, dt as listObjectStructureEntriesWithParser, U as listParserToolConfigs, Jt as loadPresenter, rt as loadTool, Yt as localiseConfig, Xt as localiseConfigs, Zt as localiseReference, dn as lookupMimeTypeForExtension, L as normalizeToError, Xe as parseDelimitedText, Kt as presenterConfigSchema, kt as readTableSchema, We as resolveDecoderId, r as resolveLabel, W as resolveParserToolConfig, Wt as resolveRequestSignal, xt as resolveStorePath, ct as retrieveRecordsWithParser, Ne as serialiseError, Ye as toolConfigSchema, Pe as unserialiseError };
2944
+ export { Oe as APIError, F as AppError, I as ConnectorError, de as DATA_FORMAT_CONFIGS, fe as DATA_TYPE_CONFIGS, pe as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, Ue as ENCODING_GROUP_CONFIG_MAP, V as ENCODING_TYPE_CONFIG_MAP, ke as EngineError, L as FetchError, t as SUPPORTED_LANGUAGES, H as TOOL_NAME_PREFIX, j as VALUE_DELIMITER_CONFIGS, Ot as acquireWebLock, dt as auditObjectContentWithParser, Ae as buildFetchError, lt as buildPreviewObjectResult, ce as componentInstanceConfigSchema, je as concatenateSerialisedErrorMessages, Se as connectorConfigSchema, Ht as constructConnectorCategoryConfig, Ut as constructConnectorItemTypeConfig, Wt as constructConnectorUsageConfig, St as constructStoreError, gn as convertODataTypeIdToUsageTypeId, Et as convertStoreRecordToParsedRecord, Dt as convertStoreValueToText, qt as cookbookConfigSchema, n as createLabelMap, Vt as determineConnectorUsageId, pn as extractExtensionFromPath, fn as extractPathWithoutExtension, Ct as findStoreErrorId, sn as formatNumberAsDecimalNumber, dn as formatNumberAsDuration, ln as formatNumberAsSize, un as formatNumberAsStorageSize, cn as formatNumberAsWholeNumber, ue as getComponentStatus, Gt as getConnectorActionsTable, Ke as getEncodingTypeConfigs, me as getValueDelimiterCharacter, mn as hasMimeTypeForExtension, Me as ignoreErrors, ft as indexObjectStructureWithParser, We as isEncodingTypeId, pt as listObjectStructureEntriesWithParser, U as listParserToolConfigs, Qt as loadPresenter, at as loadTool, $t as localiseConfig, en as localiseConfigs, tn as localiseReference, hn as lookupMimeTypeForExtension, R as normalizeToError, Ze as parseDelimitedText, Xt as presenterConfigSchema, Nt as readTableSchema, Ge as resolveDecoderId, r as resolveLabel, W as resolveParserToolConfig, Jt as resolveRequestSignal, Tt as resolveStorePath, ut as retrieveRecordsWithParser, Ne as serialiseError, Xe as toolConfigSchema, Pe as unserialiseError };