@dpuse/dpuse-tool-rust-csv-core-parser 1.0.117 → 1.0.118

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 +1 @@
1
- {"version":3,"file":"dpuse-tool-rust-csv-core-parser.es.js","names":["parseDelimitedText","ConnectorError","resolveDecoderId","n","i","a","o","s","r","c","u","d","p","m","_","v","y","b","S","C","ee","te","re","T","ie","ae","oe","se","E","le","D","k","Te","A","N","L","Ne","We","Ge","Ke","qe","Je","H","config","DEFAULT_CHUNK_SIZE","MAX_SLICE_BYTE_COUNT","state","Tool","loadRustBindings","recordReader","RecordReader","convertDelimiterToByte","options","transcoder","constructUtf8Transcoder","recordsPerChunk","reader","stream","cancelRead","records","emitRecords","record","unpackRecordBatch","batch","fullRecords","chunk","result","bytes","sliceStart","text","delimiter","delimitedText","xxxx","hasHeaders","startTime","processedRowCount","progressCallback","count","onProgress","error","session","CsvSession","done","rows","value","remainingRows","remainingCount","byte","decoder","encodingId","encoder","valueIndex","valueStart","valueCount","recordValueCounts","index","valueEnd","valueEnds","valueQuoted","module"],"sources":["../node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js","../src/index.ts"],"sourcesContent":["//#region src/locale/label.ts\nvar e = \"en\", t = [{\n\tid: \"en\",\n\tflag: \"gb\",\n\tlabel: \"English\"\n}, {\n\tid: \"es\",\n\tflag: \"es\",\n\tlabel: \"Español\"\n}];\nfunction n(e) {\n\treturn new Map(Object.entries(e));\n}\nfunction r(e, t, n = \"en\") {\n\tlet r = e.get(t);\n\treturn r === void 0 ? n === t ? void 0 : e.get(n) : r;\n}\n//#endregion\n//#region node_modules/valibot/dist/index.mjs\nvar i = {\n\tlang: void 0,\n\tmessage: void 0,\n\tabortEarly: void 0,\n\tabortPipeEarly: void 0\n};\n/* @__NO_SIDE_EFFECTS__ */\nfunction a(e) {\n\treturn e ? {\n\t\tlang: e?.lang ?? void 0,\n\t\tmessage: e?.message,\n\t\tabortEarly: e?.abortEarly ?? void 0,\n\t\tabortPipeEarly: e?.abortPipeEarly ?? void 0\n\t} : i;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction o(e) {\n\tlet t = typeof e;\n\treturn t === \"string\" ? `\"${e}\"` : t === \"number\" || t === \"bigint\" || t === \"boolean\" ? `${e}` : t === \"object\" || t === \"function\" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? \"null\" : t;\n}\nfunction s(e, t, n, r, i) {\n\tlet a = i && \"input\" in i ? i.input : n.value, s = i?.expected ?? e.expects ?? null, c = i?.received ?? /* @__PURE__ */ o(a), l = {\n\t\tkind: e.kind,\n\t\ttype: e.type,\n\t\tinput: a,\n\t\texpected: s,\n\t\treceived: c,\n\t\tmessage: `Invalid ${t}: ${s ? `Expected ${s} but r` : \"R\"}eceived ${c}`,\n\t\trequirement: e.requirement,\n\t\tpath: i?.path,\n\t\tissues: i?.issues,\n\t\tlang: r.lang,\n\t\tabortEarly: r.abortEarly,\n\t\tabortPipeEarly: r.abortPipeEarly\n\t}, u = e.kind === \"schema\", d = i?.message ?? e.message ?? (e.reference, l.lang, void 0) ?? (u ? (l.lang, void 0) : null) ?? r.message ?? (l.lang, void 0);\n\td !== void 0 && (l.message = typeof d == \"function\" ? d(l) : d), u && (n.typed = !1), n.issues ? n.issues.push(l) : n.issues = [l];\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction c(e, t) {\n\treturn e === t || Number.isNaN(e) && Number.isNaN(t);\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction l(e, t) {\n\treturn Object.prototype.hasOwnProperty.call(e, t) && t !== \"__proto__\" && t !== \"prototype\" && t !== \"constructor\";\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction u(e, t) {\n\tlet n = [...new Set(e)];\n\treturn n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? \"never\";\n}\nfunction d(e) {\n\treturn e[\"~standard\"] = {\n\t\tversion: 1,\n\t\tvendor: \"valibot\",\n\t\tvalidate: (t) => e[\"~run\"]({ value: t }, /* @__PURE__ */ a())\n\t}, e;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction f(e, t) {\n\treturn {\n\t\tkind: \"validation\",\n\t\ttype: \"min_length\",\n\t\treference: f,\n\t\tasync: !1,\n\t\texpects: `>=${e}`,\n\t\trequirement: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn e.typed && e.value.length < this.requirement && s(this, \"length\", e, t, { received: `${e.value.length}` }), e;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction p(e, t, n) {\n\treturn typeof e.fallback == \"function\" ? e.fallback(t, n) : e.fallback;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction m(e, t, n) {\n\treturn typeof e.default == \"function\" ? e.default(t, n) : e.default;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction h(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"array\",\n\t\treference: h,\n\t\texpects: \"Array\",\n\t\tasync: !1,\n\t\titem: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (Array.isArray(n)) {\n\t\t\t\te.typed = !0, e.value = [];\n\t\t\t\tfor (let r = 0; r < n.length; r++) {\n\t\t\t\t\tlet i = n[r], a = this.item[\"~run\"]({ value: i }, t);\n\t\t\t\t\tif (a.issues) {\n\t\t\t\t\t\tlet o = {\n\t\t\t\t\t\t\ttype: \"array\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of a.issues) t.path ? t.path.unshift(o) : t.path = [o], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= a.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta.typed || (e.typed = !1), e.value.push(a.value);\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction g(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"boolean\",\n\t\treference: g,\n\t\texpects: \"boolean\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"boolean\" ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction _(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"literal\",\n\t\treference: _,\n\t\texpects: /* @__PURE__ */ o(e),\n\t\tasync: !1,\n\t\tliteral: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn /* @__PURE__ */ c(e.value, this.literal) ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction v(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"nullable\",\n\t\treference: v,\n\t\texpects: `(${e.expects} | null)`,\n\t\tasync: !1,\n\t\twrapped: e,\n\t\tdefault: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn 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);\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction y(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"number\",\n\t\treference: y,\n\t\texpects: \"number\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"number\" && !isNaN(e.value) ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction b(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"optional\",\n\t\treference: b,\n\t\texpects: `(${e.expects} | undefined)`,\n\t\tasync: !1,\n\t\twrapped: e,\n\t\tdefault: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn 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);\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction x(e, t, n) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"record\",\n\t\treference: x,\n\t\texpects: \"Object\",\n\t\tasync: !1,\n\t\tkey: e,\n\t\tvalue: t,\n\t\tmessage: n,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\te.typed = !0, e.value = {};\n\t\t\t\tfor (let r in n) if (/* @__PURE__ */ l(n, r)) {\n\t\t\t\t\tlet i = n[r], a = this.key[\"~run\"]({ value: r }, t);\n\t\t\t\t\tif (a.issues) {\n\t\t\t\t\t\tlet o = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of a.issues) t.path = [o], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= a.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlet o = this.value[\"~run\"]({ value: i }, t);\n\t\t\t\t\tif (o.issues) {\n\t\t\t\t\t\tlet a = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of o.issues) t.path ? t.path.unshift(a) : t.path = [a], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= o.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t(!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction S(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"strict_object\",\n\t\treference: S,\n\t\texpects: \"Object\",\n\t\tasync: !1,\n\t\tentries: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\te.typed = !0, e.value = {};\n\t\t\t\tfor (let r in this.entries) {\n\t\t\t\t\tlet i = this.entries[r];\n\t\t\t\t\tif (r in n || (i.type === \"exact_optional\" || i.type === \"optional\" || i.type === \"nullish\") && i.default !== void 0) {\n\t\t\t\t\t\tlet a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i[\"~run\"]({ value: a }, t);\n\t\t\t\t\t\tif (o.issues) {\n\t\t\t\t\t\t\tlet i = {\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\t\tvalue: a\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tfor (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);\n\t\t\t\t\t\t\tif (e.issues ||= o.issues, t.abortEarly) {\n\t\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\to.typed || (e.typed = !1), e.value[r] = o.value;\n\t\t\t\t\t} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ p(i);\n\t\t\t\t\telse if (i.type !== \"exact_optional\" && i.type !== \"optional\" && i.type !== \"nullish\" && (s(this, \"key\", e, t, {\n\t\t\t\t\t\tinput: void 0,\n\t\t\t\t\t\texpected: `\"${r}\"`,\n\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: n[r]\n\t\t\t\t\t\t}]\n\t\t\t\t\t}), t.abortEarly)) break;\n\t\t\t\t}\n\t\t\t\tif (!e.issues || !t.abortEarly) {\n\t\t\t\t\tfor (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {\n\t\t\t\t\t\ts(this, \"key\", e, t, {\n\t\t\t\t\t\t\tinput: r,\n\t\t\t\t\t\t\texpected: \"never\",\n\t\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\t\tvalue: n[r]\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction C(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"string\",\n\t\treference: C,\n\t\texpects: \"string\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"string\" ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction ee(e) {\n\tlet t;\n\tif (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);\n\telse t = n.issues;\n\treturn t;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction te(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"union\",\n\t\treference: te,\n\t\texpects: /* @__PURE__ */ u(e.map((e) => e.expects), \"|\"),\n\t\tasync: !1,\n\t\toptions: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n, r, i;\n\t\t\tfor (let a of this.options) {\n\t\t\t\tlet o = a[\"~run\"]({ value: e.value }, t);\n\t\t\t\tif (o.typed) {\n\t\t\t\t\tif (o.issues) r ? r.push(o) : r = [o];\n\t\t\t\t\telse {\n\t\t\t\t\t\tn = o;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else i ? i.push(o) : i = [o];\n\t\t\t}\n\t\t\tif (n) return n;\n\t\t\tif (r) {\n\t\t\t\tif (r.length === 1) return r[0];\n\t\t\t\ts(this, \"type\", e, t, { issues: /* @__PURE__ */ ee(r) }), e.typed = !0;\n\t\t\t} else if (i?.length === 1) return i[0];\n\t\t\telse s(this, \"type\", e, t, { issues: /* @__PURE__ */ ee(i) });\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction ne(...e) {\n\treturn d({\n\t\t...e[0],\n\t\tpipe: e,\n\t\t\"~run\"(t, n) {\n\t\t\tfor (let r of e) if (r.kind !== \"metadata\") {\n\t\t\t\tif (t.issues && (r.kind === \"schema\" || r.kind === \"transformation\")) {\n\t\t\t\t\tt.typed = !1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t(!t.issues || !n.abortEarly && !n.abortPipeEarly) && (t = r[\"~run\"](t, n));\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t});\n}\n//#endregion\n//#region src/locale/locale.schema.ts\nvar w = /* @__PURE__ */ S({\n\ten: /* @__PURE__ */ C(),\n\tes: /* @__PURE__ */ C()\n}), re = {\n\tid: /* @__PURE__ */ C(),\n\tlabel: /* @__PURE__ */ S({\n\t\ten: /* @__PURE__ */ b(/* @__PURE__ */ C()),\n\t\tes: /* @__PURE__ */ b(/* @__PURE__ */ C())\n\t}),\n\tdescription: /* @__PURE__ */ S({\n\t\ten: /* @__PURE__ */ b(/* @__PURE__ */ C()),\n\t\tes: /* @__PURE__ */ b(/* @__PURE__ */ C())\n\t}),\n\ticon: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\ticonDark: /* @__PURE__ */ v(/* @__PURE__ */ C())\n}, T = (e) => /* @__PURE__ */ te(e.map((e) => /* @__PURE__ */ _(e))), ie = T([\n\t\"app\",\n\t\"connector\",\n\t\"connectorConnection\",\n\t\"context\",\n\t\"contextArea\",\n\t\"contextModel\",\n\t\"contextModelDimension\",\n\t\"contextModelDimensionHierarchy\",\n\t\"contextModelEntity\",\n\t\"contextModelEntityDataItem\",\n\t\"contextModelEntityEvent\",\n\t\"contextModelEntityPrimaryMeasure\",\n\t\"contextModelSecondaryMeasure\",\n\t\"cookbook\",\n\t\"cookbookRecipe\",\n\t\"dataView\",\n\t\"engine\",\n\t\"eventQuery\",\n\t\"presenter\",\n\t\"presenterPresentation\",\n\t\"tool\"\n]), ae = T([\n\t\"danger\",\n\t\"success\",\n\t\"warning\"\n]), oe = T([\n\t\"alpha\",\n\t\"beta\",\n\t\"releaseCandidate\",\n\t\"generalAvailability\"\n]), se = /* @__PURE__ */ S({\n\tcolor: ae,\n\tlabel: /* @__PURE__ */ C()\n}), E = {\n\t...re,\n\ttypeId: ie\n}, ce = /* @__PURE__ */ S({\n\t...E,\n\torder: /* @__PURE__ */ y(),\n\tpath: /* @__PURE__ */ C()\n}), le = {\n\t...E,\n\tfirstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),\n\tlastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),\n\tstatus: /* @__PURE__ */ v(se),\n\tstatusId: /* @__PURE__ */ v(oe)\n}, ue = /* @__PURE__ */ S({ ...le }), de = [\n\t{\n\t\tid: \"alpha\",\n\t\tcolor: \"danger\",\n\t\tlabels: {\n\t\t\ten: \"alpha\",\n\t\t\tes: \"alfa\"\n\t\t}\n\t},\n\t{\n\t\tid: \"beta\",\n\t\tcolor: \"warning\",\n\t\tlabels: {\n\t\t\ten: \"beta\",\n\t\t\tes: \"beta\"\n\t\t}\n\t},\n\t{\n\t\tid: \"releaseCandidate\",\n\t\tcolor: \"success\",\n\t\tlabels: {\n\t\t\ten: \"release-candidate\",\n\t\t\tes: \"candidato-de-lanzamiento\"\n\t\t}\n\t},\n\t{\n\t\tid: \"generalAvailability\",\n\t\tcolor: \"success\",\n\t\tlabels: {\n\t\t\ten: \"\",\n\t\t\tes: \"\"\n\t\t}\n\t}\n];\nfunction fe(e, t = \"en\") {\n\tlet n = de.find((t) => t.id === e);\n\tif (n) {\n\t\tlet e = n.labels[t] ?? n.labels.en ?? n.id;\n\t\treturn {\n\t\t\tcolor: n.color,\n\t\t\tlabel: e\n\t\t};\n\t}\n\treturn {\n\t\tcolor: \"danger\",\n\t\tlabel: e\n\t};\n}\n//#endregion\n//#region src/component/dataView/dataFormatIcons.ts\nvar pe = {\n\tarrow: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 1350 1181.25\\\"><polygon fill=\\\"#000\\\" points=\\\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\\\"/><polygon fill=\\\"#000\\\" points=\\\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\\\"/><polygon fill=\\\"#000\\\" points=\\\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\\\"/></svg>\",\n\t\ticonDark: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 1350 1181.25\\\"><polygon fill=\\\"#fff\\\" points=\\\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\\\"/><polygon fill=\\\"#fff\\\" points=\\\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\\\"/><polygon fill=\\\"#fff\\\" points=\\\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\\\"/></svg>\"\n\t},\n\tavro: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"35\\\" height=\\\"30\\\" viewBox=\\\"2 2 35 30\\\"><path fill=\\\"#0068e0\\\" d=\\\"m 11.323019,20.31228 1.54227,4.70955 24.13142,6.882311 z\\\"/><path fill=\\\"#000094\\\" d=\\\"m 19.74759,12.513621 c 0.296701,1.17482 -0.0154,1.921136 -1.916568,1.736268 L 36.900852,31.9224 c 0.216248,0.08673 0.253906,-0.0582 0.104415,-0.279013 z\\\"/><path fill=\\\"#1cccfc\\\" d=\\\"m 19.141638,3.9863335 c 0,0 -0.680128,0.6419002 0.03537,1.4732323 0.530637,0.6173653 1.32431,0.2385015 1.32431,0.2385015 0,0 0.730909,-0.4102455 0.175738,-1.2752416 C 19.955281,3.297646 19.141638,3.9863335 19.141638,3.9863335 Z M 37.043496,31.999998 9.9901505,19.948822 c 0,0 -8.8393814,-5.467278 -7.923605,-7.626915 0.8918121,-2.090598 8.7703415,2.121979 9.6039545,2.315975 0.833613,0.195709 1.297493,-0.332076 1.312898,-0.700099 0.02454,-0.530637 -1.170253,-2.048375 -0.550607,-2.696551 0.617365,-0.646465 2.636637,0.612801 2.636637,0.612801 l 1.638127,1.134309 z\\\"/><path fill=\\\"#1cccfc\\\" d=\\\"M 37.150194,31.886453 19.297405,12.110222 c 0,0 -3.215773,-3.6511281 -3.082258,-4.6964268 0.133515,-1.0452988 4.404285,2.2914409 4.404285,2.2914409 0,0 0.474721,0.4570329 0.924906,0.3788639 0.450185,-0.07589 -0.03138,-0.8244852 -0.03138,-0.8244852 0,0 -0.737756,-1.7140161 -0.245348,-2.0215576 0.495261,-0.3052592 1.745396,0.9848175 1.745396,0.9848175 0,0 0.312105,0.3235177 0.639617,0.2362192 0.327511,-0.08901 0.151773,-0.8085089 0.151773,-0.8085089 0,0 -2.257774,-5.2065236 -1.272958,-5.5945166 1.50233,-0.5951128 3.641994,3.7133212 4.359781,5.0547499 0.180302,0.3703051 10.258977,24.7756347 10.258977,24.7756347 z M 9.2900523,7.4160775 c 0,0 -0.9157763,0.6065243 0.1027039,1.772215 0.9363168,1.0743985 1.7699308,0.5169436 1.7699308,0.5169436 0,0 0.864424,-0.5283551 0.03538,-1.5245842 C 10.101413,6.863758 9.2900523,7.4160775 9.2900523,7.4160775 Z\\\"/></svg>\",\n\t\ticonDark: null\n\t},\n\tdtv: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" stroke=\\\"#488f86\\\" stroke-width=\\\"1.75\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"><path d=\\\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\\\"/><path d=\\\"M14 2v5a1 1 0 0 0 1 1h5\\\"/><path d=\\\"M10 9H8\\\"/><path d=\\\"M16 13H8\\\"/><path d=\\\"M16 17H8\\\"/></svg>\",\n\t\ticonDark: null\n\t},\n\tjson: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 32 32\\\"><defs><linearGradient id=\\\"SVGpjNFndWy\\\" x1=\\\"-683.873\\\" x2=\\\"-664.125\\\" y1=\\\"-565.884\\\" y2=\\\"-585.635\\\" gradientTransform=\\\"matrix(.999 0 0 -.999 688.969 -558.754)\\\" gradientUnits=\\\"userSpaceOnUse\\\"><stop offset=\\\"0\\\"/><stop offset=\\\"1\\\" stop-color=\\\"#fff\\\"/></linearGradient><linearGradient id=\\\"SVGEqVL8KIX\\\" x1=\\\"-663.231\\\" x2=\\\"-682.979\\\" y1=\\\"-584.741\\\" y2=\\\"-564.99\\\" href=\\\"#SVGpjNFndWy\\\"/></defs><path fill=\\\"url(#SVGpjNFndWy)\\\" d=\\\"M15.976 22.842c6.195 8.445 12.257-2.357 12.248-8.853c-.01-7.679-7.794-11.972-12.253-11.972A14.116 14.116 0 0 0 2 16.024C2 25.018 9.812 30 15.971 30c-1.394-.2-6.039-1.2-6.1-11.894c-.042-7.236 2.36-10.126 6.091-8.855a7.11 7.11 0 0 1 4.115 6.816a7.13 7.13 0 0 1-4.101 6.775\\\"/><path fill=\\\"url(#SVGEqVL8KIX)\\\" d=\\\"M15.969 9.245c-4.093-1.411-9.108 1.963-9.108 8.72C6.862 29 15.038 30 16.029 30A14.116 14.116 0 0 0 30 15.994C30 7 22.188 2.017 16.029 2.017c1.706-.236 9.195 1.846 9.195 12.081c0 6.675-5.592 10.308-9.229 8.756a7.11 7.11 0 0 1-4.115-6.816a7.17 7.17 0 0 1 4.089-6.793\\\"/></svg>\",\n\t\ticonDark: null\n\t},\n\tjsonl: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 32 32\\\"><defs><linearGradient id=\\\"SVGpjNFndWy\\\" x1=\\\"-683.873\\\" x2=\\\"-664.125\\\" y1=\\\"-565.884\\\" y2=\\\"-585.635\\\" gradientTransform=\\\"matrix(.999 0 0 -.999 688.969 -558.754)\\\" gradientUnits=\\\"userSpaceOnUse\\\"><stop offset=\\\"0\\\"/><stop offset=\\\"1\\\" stop-color=\\\"#fff\\\"/></linearGradient><linearGradient id=\\\"SVGEqVL8KIX\\\" x1=\\\"-663.231\\\" x2=\\\"-682.979\\\" y1=\\\"-584.741\\\" y2=\\\"-564.99\\\" href=\\\"#SVGpjNFndWy\\\"/></defs><path fill=\\\"url(#SVGpjNFndWy)\\\" d=\\\"M15.976 22.842c6.195 8.445 12.257-2.357 12.248-8.853c-.01-7.679-7.794-11.972-12.253-11.972A14.116 14.116 0 0 0 2 16.024C2 25.018 9.812 30 15.971 30c-1.394-.2-6.039-1.2-6.1-11.894c-.042-7.236 2.36-10.126 6.091-8.855a7.11 7.11 0 0 1 4.115 6.816a7.13 7.13 0 0 1-4.101 6.775\\\"/><path fill=\\\"url(#SVGEqVL8KIX)\\\" d=\\\"M15.969 9.245c-4.093-1.411-9.108 1.963-9.108 8.72C6.862 29 15.038 30 16.029 30A14.116 14.116 0 0 0 30 15.994C30 7 22.188 2.017 16.029 2.017c1.706-.236 9.195 1.846 9.195 12.081c0 6.675-5.592 10.308-9.229 8.756a7.11 7.11 0 0 1-4.115-6.816a7.17 7.17 0 0 1 4.089-6.793\\\"/></svg>\",\n\t\ticonDark: null\n\t},\n\tmarkdown: {\n\t\ticon: \"<svg fill=\\\"none\\\" height=\\\"128\\\" viewBox=\\\"0 0 208 128\\\" width=\\\"208\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><g fill=\\\"#000\\\"><path clip-rule=\\\"evenodd\\\" d=\\\"m15 10c-2.7614 0-5 2.2386-5 5v98c0 2.761 2.2386 5 5 5h178c2.761 0 5-2.239 5-5v-98c0-2.7614-2.239-5-5-5zm-15 5c0-8.28427 6.71573-15 15-15h178c8.284 0 15 6.71573 15 15v98c0 8.284-6.716 15-15 15h-178c-8.28427 0-15-6.716-15-15z\\\" fill-rule=\\\"evenodd\\\"/><path d=\\\"m30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zm125 0-30-33h20v-35h20v35h20z\\\"/></g></svg>\",\n\t\ticonDark: \"<svg fill=\\\"none\\\" height=\\\"128\\\" viewBox=\\\"0 0 208 128\\\" width=\\\"208\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><g fill=\\\"#fff\\\"><path clip-rule=\\\"evenodd\\\" d=\\\"m15 10c-2.7614 0-5 2.2386-5 5v98c0 2.761 2.2386 5 5 5h178c2.761 0 5-2.239 5-5v-98c0-2.7614-2.239-5-5-5zm-15 5c0-8.28427 6.71573-15 15-15h178c8.284 0 15 6.71573 15 15v98c0 8.284-6.716 15-15 15h-178c-8.28427 0-15-6.716-15-15z\\\" fill-rule=\\\"evenodd\\\"/><path d=\\\"m30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zm125 0-30-33h20v-35h20v35h20z\\\"/></g></svg>\"\n\t},\n\tods: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 32 32\\\"><defs><linearGradient id=\\\"SVGIqJReSyg\\\" x1=\\\"4\\\" x2=\\\"28\\\" y1=\\\"31\\\" y2=\\\"1\\\" gradientUnits=\\\"userSpaceOnUse\\\"><stop offset=\\\"0\\\" stop-color=\\\"#007c3c\\\"/><stop offset=\\\"1\\\" stop-color=\\\"#78fc4e\\\"/></linearGradient></defs><g fill-rule=\\\"evenodd\\\" stroke-linecap=\\\"square\\\"><path fill=\\\"url(#SVGIqJReSyg)\\\" d=\\\"M7 0C4.784 0 3 1.784 3 4v24c0 2.216 1.784 4 4 4h18c2.216 0 4-1.784 4-4V12L17 0zm13 0l9 9V0z\\\" transform=\\\"translate(2 2)scale(.875)\\\"/><path fill-opacity=\\\".199\\\" d=\\\"M4.625 25.625v.875c0 1.939 1.561 3.5 3.5 3.5h15.75c1.939 0 3.5-1.561 3.5-3.5v-.875c0 1.939-1.561 3.5-3.5 3.5H8.125a3.49 3.49 0 0 1-3.5-3.5\\\"/><path fill-opacity=\\\".201\\\" d=\\\"M19.5 2h1.225l6.65 6.65v1.225z\\\"/><path fill=\\\"#fafafa\\\" d=\\\"M9.875 13.375A.873.873 0 0 0 9 14.25v6.125c0 .485.39.875.875.875h5.25v-.875h-1.75V19.5h1.75v-.875h-1.75v-.875h7v-3.5a.873.873 0 0 0-.875-.875zm0 .875H12.5v.875H9.875zm3.5 0H16v.875h-2.625zm3.5 0H19.5v.875h-2.625zm-7 1.75H12.5v.875H9.875zm3.5 0H16v.875h-2.625zm3.5 0H19.5v.875h-2.625zm-7 1.75H12.5v.875H9.875zm0 1.75H12.5v.875H9.875z\\\"/><path fill=\\\"#b4f48b\\\" d=\\\"M16 17.75a.873.873 0 0 0-.875.875V23c0 .485.39.875.875.875h6.125c.485 0 .875-.39.875-.875v-4.375a.873.873 0 0 0-.875-.875zm1.75.875h.875V23h-.875zM16 19.5h.875V23H16zm5.25.875h.875V23h-.875zm-1.75.875h.875V23H19.5z\\\"/></g></svg>\",\n\t\ticonDark: null\n\t},\n\tparquet: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 32 32\\\"><path fill=\\\"#50abf1\\\" d=\\\"M14.67 26.604c-1.015-1.218-1.116-1.32-1.015-1.522L27.861 11.18c.102-.102 1.827.71 2.131 1.116c.203.203-1.015 1.42-6.799 7.915l-7.103 7.712s-.811-.609-1.42-1.32m-3.146-3.348l-1.015-1.319c.102-.203 7.915-7.001 8.118-7.001c.102 0 2.03 1.522 2.03 1.724c0 .203-7.915 7.611-8.118 7.611zm-2.74-3.247q-.811-1.015-.71-1.116l3.856-2.841l1.725 1.623c0 .203-3.653 3.247-3.856 3.247q-.304 0-1.015-1.014M6.45 17.37q-1.014-.913-.608-1.015l11.162-7.813c.202 0 1.725 1.014 1.725 1.116L7.364 18.283zm7.306-1.116q-.811-.71-.811-1.015l.811-.71l4.77-3.653l4.059-3.045c.304 0 1.826 1.015 1.725 1.015c0 .305-9.437 8.118-9.64 8.118zm-9.335-1.218q-.71-.71-.406-.913l7.61-4.77a4.06 4.06 0 0 1 1.421 1.117a80 80 0 0 1-8.016 5.48zm16.236 0l-1.015-.812l5.378-4.769q.102-.304 1.218.304l1.015.71a70 70 0 0 1-5.581 5.277zm-17.961-2.03l-.71-.71l.304-.203l7.103-4.16l6.495-3.856l.608.304l.71.508c0 .101-14.002 8.93-14.205 8.93zm10.147-3.45q-.609-.405-.609-.608q.203-.406 2.841-2.03l2.842-1.624l.71.406l.71.508c0 .203-5.58 3.957-5.784 3.957zm5.682-.811l-.71-.61l2.334-1.623l1.522.913l-.203.305c-.304.406-2.03 1.522-2.03 1.522z\\\"/></svg>\",\n\t\ticonDark: null\n\t},\n\tsav: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 128 128\\\"><path fill=\\\"#CC1E4C\\\" d=\\\"M125 80c-1.7 0-3.1 1.3-3.1 3s1.3 3 3.1 3c1.7 0 3-1.3 3-3s-1.3-3-3-3zm-.1.5c1.4 0 2.4 1.1 2.4 2.5s-1 2.5-2.3 2.5c-1.4 0-2.4-1.1-2.4-2.5s.9-2.4 2.3-2.5zm-1 .8v3.4h.6v-1.5h.6l.9 1.5h.6l-.9-1.6c.6 0 .8-.4.8-.9 0-.6-.4-.9-1.2-.9h-1.4zm.5 1.5v-1.1h.7c.5 0 .7.2.7.6s-.3.6-.6.6l-.8-.1zm-93 10.4c-1.6-1.2-3.5-2.2-6.1-3-3.3-1.1-8.1-2.2-10-2.9-1.2-.5-1.7-1.2-1.7-2.2 0-1.4 1.7-2.2 3.7-2.3 3.3.1 4.3 2 4.5 3.3h9.6v7.1zm12 8.9h7.1c6.2-.1 11.2-3.2 13.7-7.7.2-.4.4-.7.6-1.1.4.5.7.7 1.1 1.1 1.7 1.5 3.9 2.6 6.2 3.3 3.7 1.3 6.6 2.2 7.6 2.6 1.9.8 3.1 1.4 3.1 3.1 0 2-2.2 2.8-4.5 2.9-3.1-.1-6.2-1.6-6.1-4.7H60c.6 8.1 8.6 14.4 18 14.5 5.7-.1 11-1.7 14.4-5.8 3.4 3.5 7.4 5.7 13 5.8 8.9-.1 18.1-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28.4zm42.5 0V21h23.8l-1.2-3.5H70.9zm34.3 0L104 21h23.7v-3.5h-22.5zm-98 6.8v3.5H18v-3.5H7.2zm28.4 0v3.5h10.8v-3.5H35.6zm21.3 0v3.5h10.8s.7-1.9.7-3.5H56.9zm21.2 0v3.5h19.1l-1.3-3.5H78.1zm24.8 0l-1.3 3.5h19.2v-3.5h-17.9zM7.2 31.2v3.5H18v-3.5H7.2zm28.4 0v3.5h27.6s2.3-1.8 3-3.5H35.6zm42.5 0v3.5h10.8v-1.9l.7 1.9h19.8l.7-1.9v1.9h10.8v-3.5h-20.3l-1.1 3-1.1-3H78.1zM7.2 38v3.5H18V38H7.2zm28.4 0v3.5h30.6c-.7-1.7-3-3.5-3-3.5H35.6zm42.5 0v3.5h10.8V38H78.1zm12.7 0l1.3 3.5h14.8l1.2-3.5H90.8zm19.3 0v3.5h10.8V38h-10.8zM7.2 44.8v3.5H18v-3.5H7.2zm28.4 0v3.5h10.8v-3.5H35.6zm21.3 0v3.5h11.5c0-1.7-.7-3.5-.7-3.5H56.9zm21.2 0v3.5h10.8v-3.5H78.1zm15.2 0l1.3 3.5h9.9l1.3-3.5H93.3zm16.8 0v3.5h10.8v-3.5h-10.8zM.2 51.6v3.5h24.9v-3.5H.2zm28.2 0v3.5h38.4c.8-.8 1.3-3.5 1.3-3.5H28.4zm42.7 0v3.5h17.8v-3.5H71.1zm24.6 0l1.3 3.5h5.1l1.2-3.5h-7.6zm14.4 0v3.5H128v-3.5h-17.9zM.2 58.4v3.5h24.9v-3.5H.2zm28.2 0v3.5h27.1c4.8 0 8.4-3.5 8.4-3.5H28.4zm42.7 0v3.5h17.8v-3.5H71.1zm27.1 0l1.3 3.5h.2l1.3-3.5h-2.8zm11.9 0v3.5H128v-3.5h-17.9z\\\"/></svg>\",\n\t\ticonDark: null\n\t},\n\tsqlite: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 32 32\\\"><defs><linearGradient id=\\\"SVGwuIXyeeC\\\" x1=\\\"-118.318\\\" x2=\\\"-116.751\\\" y1=\\\"45.638\\\" y2=\\\"45.638\\\" gradientTransform=\\\"matrix(0 11.486 11.486 0 -510.889 1363.307)\\\" gradientUnits=\\\"userSpaceOnUse\\\"><stop offset=\\\"0\\\" stop-color=\\\"#97d9f6\\\"/><stop offset=\\\".92\\\" stop-color=\\\"#0f80cc\\\"/><stop offset=\\\"1\\\" stop-color=\\\"#0f80cc\\\"/></linearGradient></defs><path fill=\\\"#0f80cc\\\" d=\\\"M23.192 3.242H5.623a2.147 2.147 0 0 0-2.141 2.141v19.376A2.147 2.147 0 0 0 5.623 26.9h11.572c-.132-5.758 1.835-16.932 5.997-23.658\\\"/><path fill=\\\"url(#SVGwuIXyeeC)\\\" d=\\\"M22.554 3.867H5.623a1.52 1.52 0 0 0-1.516 1.516v17.962a42 42 0 0 1 13.569-2.684a123.6 123.6 0 0 1 4.878-16.794\\\"/><path fill=\\\"#003b57\\\" d=\\\"M27.29 2.608c-1.2-1.073-2.66-.642-4.1.634q-.32.286-.638.625A25.4 25.4 0 0 0 17.1 15a10 10 0 0 1 .634 1.822c.036.14.069.272.1.384c.062.265.1.437.1.437s-.022-.083-.113-.346l-.059-.17l-.038-.094c-.16-.373-.6-1.16-.8-1.5c-.167.493-.315.954-.438 1.371a12 12 0 0 1 .908 2.8s-.03-.115-.171-.515a19 19 0 0 0-.9-1.708a4 4 0 0 0-.264 1.724a6 6 0 0 1 .493 1.383c.334 1.283.566 2.846.566 2.846l.02.263a26 26 0 0 0 .065 3.205a11.4 11.4 0 0 0 .584 3.1l.18-.1a13.9 13.9 0 0 1-.478-4.628a35.3 35.3 0 0 1 1.938-9.688c2.01-5.308 4.8-9.568 7.35-11.6c-2.326 2.1-5.474 8.9-6.417 11.418a45.7 45.7 0 0 0-2.254 8A6.2 6.2 0 0 1 21.39 20s1.233-1.521 2.674-3.693a26 26 0 0 0-2.755.733c-.7.294-.889.394-.889.394a24 24 0 0 1 4.215-2.007c2.676-4.215 5.592-10.2 2.656-12.824\\\"/></svg>\",\n\t\ticonDark: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 32 32\\\"><defs><linearGradient id=\\\"SVGwuIXyeeCw\\\" x1=\\\"-118.318\\\" x2=\\\"-116.751\\\" y1=\\\"45.638\\\" y2=\\\"45.638\\\" gradientTransform=\\\"matrix(0 11.486 11.486 0 -510.889 1363.307)\\\" gradientUnits=\\\"userSpaceOnUse\\\"><stop offset=\\\"0\\\" stop-color=\\\"#97d9f6\\\"/><stop offset=\\\".92\\\" stop-color=\\\"#0f80cc\\\"/><stop offset=\\\"1\\\" stop-color=\\\"#0f80cc\\\"/></linearGradient></defs><path fill=\\\"#0f80cc\\\" d=\\\"M23.192 3.242H5.623a2.147 2.147 0 0 0-2.141 2.141v19.376A2.147 2.147 0 0 0 5.623 26.9h11.572c-.132-5.758 1.835-16.932 5.997-23.658\\\"/><path fill=\\\"url(#SVGwuIXyeeCw)\\\" d=\\\"M22.554 3.867H5.623a1.52 1.52 0 0 0-1.516 1.516v17.962a42 42 0 0 1 13.569-2.684a123.6 123.6 0 0 1 4.878-16.794\\\"/><path fill=\\\"#fff\\\" d=\\\"M27.29 2.608c-1.2-1.073-2.66-.642-4.1.634q-.32.286-.638.625A25.4 25.4 0 0 0 17.1 15a10 10 0 0 1 .634 1.822c.036.14.069.272.1.384c.062.265.1.437.1.437s-.022-.083-.113-.346l-.059-.17l-.038-.094c-.16-.373-.6-1.16-.8-1.5c-.167.493-.315.954-.438 1.371a12 12 0 0 1 .908 2.8s-.03-.115-.171-.515a19 19 0 0 0-.9-1.708a4 4 0 0 0-.264 1.724a6 6 0 0 1 .493 1.383c.334 1.283.566 2.846.566 2.846l.02.263a26 26 0 0 0 .065 3.205a11.4 11.4 0 0 0 .584 3.1l.18-.1a13.9 13.9 0 0 1-.478-4.628a35.3 35.3 0 0 1 1.938-9.688c2.01-5.308 4.8-9.568 7.35-11.6c-2.326 2.1-5.474 8.9-6.417 11.418a45.7 45.7 0 0 0-2.254 8A6.2 6.2 0 0 1 21.39 20s1.233-1.521 2.674-3.693a26 26 0 0 0-2.755.733c-.7.294-.889.394-.889.394a24 24 0 0 1 4.215-2.007c2.676-4.215 5.592-10.2 2.656-12.824\\\"/></svg>\"\n\t},\n\txlsx: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 32 32\\\"><defs><linearGradient id=\\\"SVGSuUii0pt\\\" x1=\\\"4.494\\\" x2=\\\"13.832\\\" y1=\\\"-2092.086\\\" y2=\\\"-2075.914\\\" gradientTransform=\\\"translate(0 2100)\\\" gradientUnits=\\\"userSpaceOnUse\\\"><stop offset=\\\"0\\\" stop-color=\\\"#18884f\\\"/><stop offset=\\\".5\\\" stop-color=\\\"#117e43\\\"/><stop offset=\\\"1\\\" stop-color=\\\"#0b6631\\\"/></linearGradient></defs><path fill=\\\"#185c37\\\" d=\\\"M19.581 15.35L8.512 13.4v14.409A1.19 1.19 0 0 0 9.705 29h19.1A1.19 1.19 0 0 0 30 27.809V22.5Z\\\"/><path fill=\\\"#21a366\\\" d=\\\"M19.581 3H9.705a1.19 1.19 0 0 0-1.193 1.191V9.5L19.581 16l5.861 1.95L30 16V9.5Z\\\"/><path fill=\\\"#107c41\\\" d=\\\"M8.512 9.5h11.069V16H8.512Z\\\"/><path d=\\\"M16.434 8.2H8.512v16.25h7.922a1.2 1.2 0 0 0 1.194-1.191V9.391A1.2 1.2 0 0 0 16.434 8.2\\\" opacity=\\\".1\\\"/><path d=\\\"M15.783 8.85H8.512V25.1h7.271a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191\\\" opacity=\\\".2\\\"/><path d=\\\"M15.783 8.85H8.512V23.8h7.271a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191\\\" opacity=\\\".2\\\"/><path d=\\\"M15.132 8.85h-6.62V23.8h6.62a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191\\\" opacity=\\\".2\\\"/><path fill=\\\"url(#SVGSuUii0pt)\\\" d=\\\"M3.194 8.85h11.938a1.193 1.193 0 0 1 1.194 1.191v11.918a1.193 1.193 0 0 1-1.194 1.191H3.194A1.19 1.19 0 0 1 2 21.959V10.041A1.19 1.19 0 0 1 3.194 8.85\\\"/><path fill=\\\"#fff\\\" d=\\\"m5.7 19.873l2.511-3.884l-2.3-3.862h1.847L9.013 14.6c.116.234.2.408.238.524h.017q.123-.281.26-.546l1.342-2.447h1.7l-2.359 3.84l2.419 3.905h-1.809l-1.45-2.711A2.4 2.4 0 0 1 9.2 16.8h-.024a1.7 1.7 0 0 1-.168.351l-1.493 2.722Z\\\"/><path fill=\\\"#33c481\\\" d=\\\"M28.806 3h-9.225v6.5H30V4.191A1.19 1.19 0 0 0 28.806 3\\\"/><path fill=\\\"#107c41\\\" d=\\\"M19.581 16H30v6.5H19.581Z\\\"/></svg>\",\n\t\ticonDark: null\n\t},\n\txml: {\n\t\ticon: \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 32 32\\\"><path fill=\\\"#f1662a\\\" d=\\\"m20.42 21.157l2.211 2.211L30 16l-7.369-7.369l-2.211 2.212L25.58 16Zm-8.84-10.314L9.369 8.631L2 16l7.369 7.369l2.211-2.211L6.42 16Zm5.831-3.166l1.6.437l-4.42 16.209l-1.6-.437z\\\"/></svg>\",\n\t\ticonDark: null\n\t}\n};\n//#endregion\n//#region src/component/dataView/index.ts\nn({ en: \"Arrow\" }), n({ en: \"Avro\" }), n({ en: \"Delimited text (CSV, TSV…)\" }), n({ en: \"JSON\" }), n({ en: \"JSON Lines (JSONL)\" }), n({ en: \"Markdown (MD)\" }), n({ en: \"OpenDocument spreadsheet (ODS)\" }), n({ en: \"Parquet\" }), n({ en: \"SPSS (SAV)\" }), n({ en: \"SQLite\" }), n({ en: \"Excel (XLSX, XLSM)\" }), n({ en: \"XML\" });\nvar me = [\n\t\",\",\n\t\";\",\n\t\"\t\",\n\t\"|\",\n\t\" \",\n\t\":\",\n\t\"_\",\n\t\"!\",\n\t\"0x1F\",\n\t\"0x1E\"\n];\nn({ en: \"Newline\" }), n({ en: \"Carriage Return\" }), n({ en: \"Carriage Return/Newline\" }), n({ en: \"Colon\" }), n({ en: \"Comma\" }), n({ en: \"Exclamation Mark\" }), n({ en: \"Record Separator\" }), n({ en: \"Semicolon\" }), n({ en: \"Space\" }), n({ en: \"Tab\" }), n({ en: \"Underscore\" }), n({ en: \"Unit Separator\" }), n({ en: \"Vertical Bar\" }), T([\n\t\"app\",\n\t\"engine\",\n\t\"connector\",\n\t\"cookbook\",\n\t\"presenter\",\n\t\"tool\"\n]);\n//#endregion\n//#region src/component/module/moduleConfig.schema.ts\nvar D = {\n\t...le,\n\tvendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\tvendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\tvendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\tversion: /* @__PURE__ */ C()\n};\n({ ...D });\n//#endregion\n//#region src/component/module/connector/connectorConfig.schema.ts\nvar he = T([\n\t\"abortOperation\",\n\t\"auditObjectContent\",\n\t\"closeStore\",\n\t\"createObject\",\n\t\"describeConnection\",\n\t\"dropObject\",\n\t\"findObject\",\n\t\"getInfo\",\n\t\"getReadableStream\",\n\t\"getRecord\",\n\t\"listNodes\",\n\t\"loadObjectRecords\",\n\t\"openStore\",\n\t\"previewObject\",\n\t\"queryRecords\",\n\t\"removeRecords\",\n\t\"retrieveChunks\",\n\t\"retrieveRecords\",\n\t\"upsertRecords\"\n]), ge = T([\n\t\"application\",\n\t\"curatedDataset\",\n\t\"database\",\n\t\"fileStore\"\n]), _e = /* @__PURE__ */ S({ label: w }), ve = T([\n\t\"apiEndpoint\",\n\t\"file\",\n\t\"table\"\n]), ye = T([\n\t\"bidirectional\",\n\t\"destination\",\n\t\"source\",\n\t\"unknown\"\n]), be = /* @__PURE__ */ S({ label: w }), xe = /* @__PURE__ */ S({\n\tauthMethodId: T([\n\t\t\"apiKey\",\n\t\t\"disabled\",\n\t\t\"oAuth2\",\n\t\t\"none\"\n\t]),\n\tactiveConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),\n\tcanDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),\n\tid: /* @__PURE__ */ b(/* @__PURE__ */ C()),\n\tlabel: /* @__PURE__ */ b(w),\n\tmaxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),\n\tparams: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))\n}), Se = /* @__PURE__ */ S({\n\t...D,\n\ttypeId: /* @__PURE__ */ _(\"connector\"),\n\tactionNames: /* @__PURE__ */ h(he),\n\tcategory: /* @__PURE__ */ v(_e),\n\tcategoryId: ge,\n\timplementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), xe),\n\titemTypeId: ve,\n\tusage: /* @__PURE__ */ v(be),\n\tusageId: /* @__PURE__ */ v(ye)\n}), Ce = {\n\tarabic: {\n\t\tid: \"arabic\",\n\t\tlabel: {\n\t\t\ten: \"Arabic\",\n\t\t\tes: \"Árabe\"\n\t\t}\n\t},\n\tbaltic: {\n\t\tid: \"baltic\",\n\t\tlabel: {\n\t\t\ten: \"Baltic\",\n\t\t\tes: \"Báltico\"\n\t\t}\n\t},\n\tceltic: {\n\t\tid: \"celtic\",\n\t\tlabel: {\n\t\t\ten: \"Celtic\",\n\t\t\tes: \"Celta\"\n\t\t}\n\t},\n\tcentralEuropean: {\n\t\tid: \"centralEuropean\",\n\t\tlabel: {\n\t\t\ten: \"Central European\",\n\t\t\tes: \"Centroeuropeo\"\n\t\t}\n\t},\n\tchineseSimplified: {\n\t\tid: \"chineseSimplified\",\n\t\tlabel: {\n\t\t\ten: \"Chinese Simplified\",\n\t\t\tes: \"Chino simplificado\"\n\t\t}\n\t},\n\tchineseTraditional: {\n\t\tid: \"chineseTraditional\",\n\t\tlabel: {\n\t\t\ten: \"Chinese Traditional\",\n\t\t\tes: \"Chino tradicional\"\n\t\t}\n\t},\n\tcyrillic: {\n\t\tid: \"cyrillic\",\n\t\tlabel: {\n\t\t\ten: \"Cyrillic\",\n\t\t\tes: \"Cirílico\"\n\t\t}\n\t},\n\tgreek: {\n\t\tid: \"greek\",\n\t\tlabel: {\n\t\t\ten: \"Greek\",\n\t\t\tes: \"Griego\"\n\t\t}\n\t},\n\thebrew: {\n\t\tid: \"hebrew\",\n\t\tlabel: {\n\t\t\ten: \"Hebrew\",\n\t\t\tes: \"Hebreo\"\n\t\t}\n\t},\n\tjapanese: {\n\t\tid: \"japanese\",\n\t\tlabel: {\n\t\t\ten: \"Japanese\",\n\t\t\tes: \"Japonés\"\n\t\t}\n\t},\n\tkorean: {\n\t\tid: \"korean\",\n\t\tlabel: {\n\t\t\ten: \"Korean\",\n\t\t\tes: \"Coreano\"\n\t\t}\n\t},\n\tnordic: {\n\t\tid: \"nordic\",\n\t\tlabel: {\n\t\t\ten: \"Nordic\",\n\t\t\tes: \"Nórdico\"\n\t\t}\n\t},\n\tother: {\n\t\tid: \"other\",\n\t\tlabel: {\n\t\t\ten: \"Other\",\n\t\t\tes: \"Otro\"\n\t\t}\n\t},\n\tromanian: {\n\t\tid: \"romanian\",\n\t\tlabel: {\n\t\t\ten: \"Romanian\",\n\t\t\tes: \"Rumano\"\n\t\t}\n\t},\n\tsouthernEuropean: {\n\t\tid: \"southernEuropean\",\n\t\tlabel: {\n\t\t\ten: \"Southern European\",\n\t\t\tes: \"Europeo meridional\"\n\t\t}\n\t},\n\tthai: {\n\t\tid: \"thai\",\n\t\tlabel: {\n\t\t\ten: \"Thai\",\n\t\t\tes: \"Tailandés\"\n\t\t}\n\t},\n\tturkish: {\n\t\tid: \"turkish\",\n\t\tlabel: {\n\t\t\ten: \"Turkish\",\n\t\t\tes: \"Turco\"\n\t\t}\n\t},\n\tunicode16: {\n\t\tid: \"unicode16\",\n\t\tlabel: {\n\t\t\ten: \"Unicode 16\",\n\t\t\tes: \"Unicode 16\"\n\t\t}\n\t},\n\tunicode32: {\n\t\tid: \"unicode32\",\n\t\tlabel: {\n\t\t\ten: \"Unicode 32\",\n\t\t\tes: \"Unicode 32\"\n\t\t}\n\t},\n\tvietnamese: {\n\t\tid: \"vietnamese\",\n\t\tlabel: {\n\t\t\ten: \"Vietnamese\",\n\t\t\tes: \"Vietnamita\"\n\t\t}\n\t},\n\twestern: {\n\t\tid: \"western\",\n\t\tlabel: {\n\t\t\ten: \"Western\",\n\t\t\tes: \"Occidental\"\n\t\t}\n\t}\n}, we = {\n\tascii: {\n\t\tid: \"ascii\",\n\t\tgroupId: null,\n\t\tdecoderId: \"windows-1252\"\n\t},\n\tbig5: {\n\t\tid: \"big5\",\n\t\tgroupId: \"chineseTraditional\",\n\t\tdecoderId: \"big5\"\n\t},\n\tcp273: {\n\t\tid: \"cp273\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: null\n\t},\n\tcp424: {\n\t\tid: \"cp424\",\n\t\tgroupId: \"hebrew\",\n\t\tdecoderId: null\n\t},\n\tcp437: {\n\t\tid: \"cp437\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: null\n\t},\n\tcp500: {\n\t\tid: \"cp500\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: null\n\t},\n\tcp720: {\n\t\tid: \"cp720\",\n\t\tgroupId: \"arabic\",\n\t\tdecoderId: null\n\t},\n\tcp737: {\n\t\tid: \"cp737\",\n\t\tgroupId: \"greek\",\n\t\tdecoderId: null\n\t},\n\tcp775: {\n\t\tid: \"cp775\",\n\t\tgroupId: \"baltic\",\n\t\tdecoderId: null\n\t},\n\tcp850: {\n\t\tid: \"cp850\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: null\n\t},\n\tcp852: {\n\t\tid: \"cp852\",\n\t\tgroupId: \"centralEuropean\",\n\t\tdecoderId: null\n\t},\n\tcp856: {\n\t\tid: \"cp856\",\n\t\tgroupId: \"hebrew\",\n\t\tdecoderId: null\n\t},\n\tcp857: {\n\t\tid: \"cp857\",\n\t\tgroupId: \"turkish\",\n\t\tdecoderId: null\n\t},\n\tcp858: {\n\t\tid: \"cp858\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: null\n\t},\n\tcp860: {\n\t\tid: \"cp860\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: null\n\t},\n\tcp861: {\n\t\tid: \"cp861\",\n\t\tgroupId: \"nordic\",\n\t\tdecoderId: null\n\t},\n\tcp862: {\n\t\tid: \"cp862\",\n\t\tgroupId: \"hebrew\",\n\t\tdecoderId: null\n\t},\n\tcp863: {\n\t\tid: \"cp863\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: null\n\t},\n\tcp864: {\n\t\tid: \"cp864\",\n\t\tgroupId: \"arabic\",\n\t\tdecoderId: null\n\t},\n\tcp865: {\n\t\tid: \"cp865\",\n\t\tgroupId: \"nordic\",\n\t\tdecoderId: null\n\t},\n\tcp869: {\n\t\tid: \"cp869\",\n\t\tgroupId: \"greek\",\n\t\tdecoderId: null\n\t},\n\tcp874: {\n\t\tid: \"cp874\",\n\t\tgroupId: \"thai\",\n\t\tdecoderId: \"windows-874\"\n\t},\n\tcp875: {\n\t\tid: \"cp875\",\n\t\tgroupId: \"greek\",\n\t\tdecoderId: null\n\t},\n\tcp932: {\n\t\tid: \"cp932\",\n\t\tgroupId: \"japanese\",\n\t\tdecoderId: \"shift_jis\"\n\t},\n\tcp949: {\n\t\tid: \"cp949\",\n\t\tgroupId: \"korean\",\n\t\tdecoderId: \"euc-kr\"\n\t},\n\tcp1006: {\n\t\tid: \"cp1006\",\n\t\tgroupId: \"arabic\",\n\t\tdecoderId: null\n\t},\n\tcp1026: {\n\t\tid: \"cp1026\",\n\t\tgroupId: \"turkish\",\n\t\tdecoderId: null\n\t},\n\tcp1125: {\n\t\tid: \"cp1125\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: null\n\t},\n\tcp1140: {\n\t\tid: \"cp1140\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: null\n\t},\n\tcp1258: {\n\t\tid: \"cp1258\",\n\t\tgroupId: \"vietnamese\",\n\t\tdecoderId: \"windows-1258\"\n\t},\n\t\"euc-jp\": {\n\t\tid: \"euc-jp\",\n\t\tgroupId: \"japanese\",\n\t\tdecoderId: \"euc-jp\"\n\t},\n\t\"euc-kr\": {\n\t\tid: \"euc-kr\",\n\t\tgroupId: \"korean\",\n\t\tdecoderId: \"euc-kr\"\n\t},\n\tgb18030: {\n\t\tid: \"gb18030\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tdecoderId: \"gb18030\"\n\t},\n\t\"hp-roman8\": {\n\t\tid: \"hp-roman8\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: null\n\t},\n\t\"hz-gb-2312\": {\n\t\tid: \"hz-gb-2312\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tdecoderId: null\n\t},\n\tibm855: {\n\t\tid: \"ibm855\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: null\n\t},\n\tibm866: {\n\t\tid: \"ibm866\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: \"ibm866\"\n\t},\n\t\"iso-2022-jp\": {\n\t\tid: \"iso-2022-jp\",\n\t\tgroupId: \"japanese\",\n\t\tdecoderId: \"iso-2022-jp\"\n\t},\n\t\"iso-2022-kr\": {\n\t\tid: \"iso-2022-kr\",\n\t\tgroupId: \"korean\",\n\t\tdecoderId: null\n\t},\n\t\"iso-8859-1\": {\n\t\tid: \"iso-8859-1\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: \"windows-1252\"\n\t},\n\t\"iso-8859-2\": {\n\t\tid: \"iso-8859-2\",\n\t\tgroupId: \"centralEuropean\",\n\t\tdecoderId: \"iso-8859-2\"\n\t},\n\t\"iso-8859-5\": {\n\t\tid: \"iso-8859-5\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: \"iso-8859-5\"\n\t},\n\t\"iso-8859-6\": {\n\t\tid: \"iso-8859-6\",\n\t\tgroupId: \"arabic\",\n\t\tdecoderId: \"iso-8859-6\"\n\t},\n\t\"iso-8859-7\": {\n\t\tid: \"iso-8859-7\",\n\t\tgroupId: \"greek\",\n\t\tdecoderId: \"iso-8859-7\"\n\t},\n\t\"iso-8859-8\": {\n\t\tid: \"iso-8859-8\",\n\t\tgroupId: \"hebrew\",\n\t\tdecoderId: \"iso-8859-8-i\"\n\t},\n\t\"iso-8859-9\": {\n\t\tid: \"iso-8859-9\",\n\t\tgroupId: \"turkish\",\n\t\tdecoderId: \"windows-1254\"\n\t},\n\t\"iso-8859-13\": {\n\t\tid: \"iso-8859-13\",\n\t\tgroupId: \"baltic\",\n\t\tdecoderId: \"iso-8859-13\"\n\t},\n\tiso2022_jp_2004: {\n\t\tid: \"iso2022_jp_2004\",\n\t\tgroupId: \"japanese\",\n\t\tdecoderId: null\n\t},\n\tiso2022_jp_ext: {\n\t\tid: \"iso2022_jp_ext\",\n\t\tgroupId: \"japanese\",\n\t\tdecoderId: null\n\t},\n\t\"iso8859-3\": {\n\t\tid: \"iso8859-3\",\n\t\tgroupId: \"southernEuropean\",\n\t\tdecoderId: \"iso-8859-3\"\n\t},\n\t\"iso8859-4\": {\n\t\tid: \"iso8859-4\",\n\t\tgroupId: \"baltic\",\n\t\tdecoderId: \"iso-8859-4\"\n\t},\n\t\"iso8859-10\": {\n\t\tid: \"iso8859-10\",\n\t\tgroupId: \"nordic\",\n\t\tdecoderId: \"iso-8859-10\"\n\t},\n\t\"iso8859-14\": {\n\t\tid: \"iso8859-14\",\n\t\tgroupId: \"celtic\",\n\t\tdecoderId: \"iso-8859-14\"\n\t},\n\t\"iso8859-15\": {\n\t\tid: \"iso8859-15\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: \"iso-8859-15\"\n\t},\n\t\"iso8859-16\": {\n\t\tid: \"iso8859-16\",\n\t\tgroupId: \"romanian\",\n\t\tdecoderId: \"iso-8859-16\"\n\t},\n\tjohab: {\n\t\tid: \"johab\",\n\t\tgroupId: \"korean\",\n\t\tdecoderId: null\n\t},\n\t\"koi8-r\": {\n\t\tid: \"koi8-r\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: \"koi8-r\"\n\t},\n\t\"koi8-t\": {\n\t\tid: \"koi8-t\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: null\n\t},\n\t\"koi8-u\": {\n\t\tid: \"koi8-u\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: \"koi8-u\"\n\t},\n\tkz1048: {\n\t\tid: \"kz1048\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: null\n\t},\n\tmaccyrillic: {\n\t\tid: \"maccyrillic\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: \"x-mac-cyrillic\"\n\t},\n\tmacgreek: {\n\t\tid: \"macgreek\",\n\t\tgroupId: \"greek\",\n\t\tdecoderId: null\n\t},\n\tmaciceland: {\n\t\tid: \"maciceland\",\n\t\tgroupId: \"nordic\",\n\t\tdecoderId: null\n\t},\n\tmaclatin2: {\n\t\tid: \"maclatin2\",\n\t\tgroupId: \"centralEuropean\",\n\t\tdecoderId: null\n\t},\n\tmacroman: {\n\t\tid: \"macroman\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: \"macintosh\"\n\t},\n\tmacturkish: {\n\t\tid: \"macturkish\",\n\t\tgroupId: \"turkish\",\n\t\tdecoderId: null\n\t},\n\tptcp154: {\n\t\tid: \"ptcp154\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: null\n\t},\n\tshift_jis: {\n\t\tid: \"shift_jis\",\n\t\tgroupId: \"japanese\",\n\t\tdecoderId: \"shift_jis\"\n\t},\n\t\"tis-620\": {\n\t\tid: \"tis-620\",\n\t\tgroupId: \"thai\",\n\t\tdecoderId: \"windows-874\"\n\t},\n\t\"utf-7\": {\n\t\tid: \"utf-7\",\n\t\tgroupId: \"other\",\n\t\tdecoderId: null\n\t},\n\t\"utf-8\": {\n\t\tid: \"utf-8\",\n\t\tgroupId: null,\n\t\tdecoderId: \"utf-8\"\n\t},\n\t\"utf-8-sig\": {\n\t\tid: \"utf-8-sig\",\n\t\tgroupId: null,\n\t\tdecoderId: \"utf-8\"\n\t},\n\t\"utf-16\": {\n\t\tid: \"utf-16\",\n\t\tgroupId: \"unicode16\",\n\t\tdecoderId: null\n\t},\n\t\"utf-16-be\": {\n\t\tid: \"utf-16-be\",\n\t\tgroupId: \"unicode16\",\n\t\tdecoderId: \"utf-16be\"\n\t},\n\t\"utf-16-le\": {\n\t\tid: \"utf-16-le\",\n\t\tgroupId: \"unicode16\",\n\t\tdecoderId: \"utf-16le\"\n\t},\n\t\"utf-32\": {\n\t\tid: \"utf-32\",\n\t\tgroupId: \"unicode32\",\n\t\tdecoderId: null\n\t},\n\t\"utf-32-be\": {\n\t\tid: \"utf-32-be\",\n\t\tgroupId: \"unicode32\",\n\t\tdecoderId: null\n\t},\n\t\"utf-32-le\": {\n\t\tid: \"utf-32-le\",\n\t\tgroupId: \"unicode32\",\n\t\tdecoderId: null\n\t},\n\t\"windows-1250\": {\n\t\tid: \"windows-1250\",\n\t\tgroupId: \"centralEuropean\",\n\t\tdecoderId: \"windows-1250\"\n\t},\n\t\"windows-1251\": {\n\t\tid: \"windows-1251\",\n\t\tgroupId: \"cyrillic\",\n\t\tdecoderId: \"windows-1251\"\n\t},\n\t\"windows-1252\": {\n\t\tid: \"windows-1252\",\n\t\tgroupId: \"western\",\n\t\tdecoderId: \"windows-1252\"\n\t},\n\t\"windows-1253\": {\n\t\tid: \"windows-1253\",\n\t\tgroupId: \"greek\",\n\t\tdecoderId: \"windows-1253\"\n\t},\n\t\"windows-1254\": {\n\t\tid: \"windows-1254\",\n\t\tgroupId: \"turkish\",\n\t\tdecoderId: \"windows-1254\"\n\t},\n\t\"windows-1255\": {\n\t\tid: \"windows-1255\",\n\t\tgroupId: \"hebrew\",\n\t\tdecoderId: \"windows-1255\"\n\t},\n\t\"windows-1256\": {\n\t\tid: \"windows-1256\",\n\t\tgroupId: \"arabic\",\n\t\tdecoderId: \"windows-1256\"\n\t},\n\t\"windows-1257\": {\n\t\tid: \"windows-1257\",\n\t\tgroupId: \"baltic\",\n\t\tdecoderId: \"windows-1257\"\n\t}\n}, O = Ce, k = we;\nfunction Te(e) {\n\treturn Object.hasOwn(k, e);\n}\nfunction A(e) {\n\treturn Te(e) ? k[e].decoderId ?? e : e;\n}\nfunction Ee(e = \"en\") {\n\treturn Array.from(Object.values(k), ({ decoderId: t, groupId: n, id: r }) => {\n\t\tlet i = n == null ? \"\" : De(n, e);\n\t\treturn {\n\t\t\tid: r,\n\t\t\tgroupLabel: i,\n\t\t\tlabel: i ? `${i} (${r})` : r,\n\t\t\tisDecodable: t != null,\n\t\t\tdecoderId: t\n\t\t};\n\t}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));\n}\nfunction De(e, t) {\n\tlet n = O[e].label;\n\treturn n[t] ?? n.en ?? e;\n}\n//#endregion\n//#region src/errors/index.ts\nvar j = 2048, M = \"[REDACTED]\", Oe = 10, ke = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Ae = [\n\t[/\\b(Bearer|Basic) +[\\w.~+/=-]+/gi, (e, t) => `${t} ${M}`],\n\t[/(?<![\\w-])([\\w-]+)([\"']?[ \\t]*[:=][ \\t]*[\"']?)([^\\s\"'&,;}?#]+)/g, (e, t, n, r) => ke.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${M}` : e],\n\t[/\\beyJ[\\w-]+\\.[\\w-]+\\.[\\w-]*/g, () => M],\n\t[/\\b(?:sk-|xaat-|xapt-|sl\\.)[\\w-]{16,}/g, () => M],\n\t[/(?<![\\w.+-])[\\w.+-]+@[\\w-]+\\.[\\w.-]+/g, () => M]\n], N = class extends Error {\n\tdata;\n\tlocator;\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, r), this.name = \"DPUseError\", this.data = n, this.locator = t;\n\t}\n}, P = class extends N {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"AppError\";\n\t}\n}, F = class extends N {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"APIError\";\n\t}\n}, I = class extends N {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"EngineError\";\n\t}\n}, L = class extends N {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"ConnectorError\";\n\t}\n}, R = class extends N {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"FetchError\";\n\t}\n};\nasync function je(e, t, n) {\n\tlet r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : \"\"}' received.`, a;\n\ttry {\n\t\ta = await e.text();\n\t} catch (e) {\n\t\ta = `<body unavailable: ${z(e).message}>`;\n\t}\n\treturn new R(i, n, { body: ze(a) });\n}\nfunction Me(e) {\n\treturn e.map((e) => e.message).join(\" \");\n}\nfunction Ne(e) {\n\ttry {\n\t\te();\n\t} catch {}\n}\nfunction z(e) {\n\tif (e instanceof Error) return e;\n\tif (typeof e == \"string\") return Error(e);\n\tif (typeof e == \"number\" || typeof e == \"boolean\" || typeof e == \"bigint\") return Error(String(e));\n\tif (typeof e == \"symbol\") return Error(e.description ?? \"Unknown error\");\n\tif (typeof e == \"object\") try {\n\t\treturn Error(JSON.stringify(e));\n\t} catch {\n\t\treturn /* @__PURE__ */ Error(\"Unknown error\");\n\t}\n\treturn /* @__PURE__ */ Error(\"Unknown error\");\n}\nfunction Pe(e) {\n\tlet t = /* @__PURE__ */ new Set(), n = [], r = z(e);\n\tfor (; r != null && !t.has(r);) {\n\t\tt.add(r);\n\t\tlet [e, i] = Be(r), a = Re(e);\n\t\t/(?:\\.{3}|[.!?])$/.test(a.message) || (a.message += \".\"), n.push(a), r = i;\n\t}\n\treturn n;\n}\nfunction Fe(e) {\n\tlet t;\n\tfor (let n of e.toReversed()) {\n\t\tlet e = Le(n, t);\n\t\tn.stack !== void 0 && (e.stack = n.stack), t = e;\n\t}\n\treturn t ?? /* @__PURE__ */ Error(\"No error to unserialise.\");\n}\nfunction Ie(e) {\n\tlet t;\n\ttry {\n\t\tt = JSON.stringify(e);\n\t} catch {\n\t\tt = typeof e == \"symbol\" ? e.description ?? \"Unknown error\" : typeof e == \"bigint\" ? e.toString() : \"Unknown error\";\n\t}\n\treturn t === \"\" && (t = \"Unknown error\"), t;\n}\nfunction Le(e, t) {\n\tswitch (e.name) {\n\t\tcase \"APIError\": return new F(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"AppError\": return new P(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"ConnectorError\": return new L(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"EngineError\": return new I(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"FetchError\": return new R(e.message, e.locator, e.data, { cause: t });\n\t\tdefault: {\n\t\t\tlet n = e.name;\n\t\t\treturn new class extends Error {\n\t\t\t\tname = n;\n\t\t\t}(e.message, { cause: t });\n\t\t}\n\t}\n}\nfunction Re(e) {\n\tlet { data: t, message: n, stack: r } = e;\n\treturn {\n\t\t...e,\n\t\tdata: t === void 0 ? void 0 : V(t, /* @__PURE__ */ new WeakSet(), 0),\n\t\tmessage: B(n),\n\t\tstack: r === void 0 ? void 0 : B(r)\n\t};\n}\nfunction B(e) {\n\tlet t = e;\n\tfor (let [e, n] of Ae) t = t.replaceAll(e, (e, ...t) => n(e, ...t));\n\treturn t;\n}\nfunction V(e, t, n) {\n\treturn typeof e == \"string\" ? B(e) : typeof e != \"object\" || !e ? e : n >= Oe ? M : t.has(e) ? \"[Circular]\" : (t.add(e), Array.isArray(e) ? e.map((e) => V(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && ke.test(e) ? M : V(r, t, n + 1)])));\n}\nfunction ze(e) {\n\tif (e != null && e !== \"\") return e.length > j ? `${e.slice(0, j)}... [truncated]` : e;\n}\nfunction Be(e) {\n\tlet t = e.cause == null ? null : z(e.cause);\n\tif (e instanceof N) return [{\n\t\tdata: e.data,\n\t\tlocator: e.locator,\n\t\tmessage: e.message,\n\t\tname: e.name,\n\t\tstack: e.stack\n\t}, t];\n\tlet n = Object.fromEntries(Object.entries(e).filter(([e]) => e !== \"cause\"));\n\treturn e.name ? [{\n\t\tdata: n,\n\t\tlocator: \"\",\n\t\tmessage: e.message,\n\t\tname: e.name,\n\t\tstack: e.stack\n\t}, t] : [{\n\t\tdata: n,\n\t\tlocator: \"\",\n\t\tmessage: Ie(e),\n\t\tname: \"Error\",\n\t\tstack: void 0\n\t}, null];\n}\nvar Ve = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ ne(/* @__PURE__ */ h(T([\n\t\"arrow\",\n\t\"avro\",\n\t\"dtv\",\n\t\"json\",\n\t\"jsonl\",\n\t\"markdown\",\n\t\"ods\",\n\t\"parquet\",\n\t\"sav\",\n\t\"sqlite\",\n\t\"xlsx\",\n\t\"xml\"\n])), /* @__PURE__ */ f(1)) }), He = /* @__PURE__ */ h(/* @__PURE__ */ C()), Ue = /* @__PURE__ */ S({\n\t...D,\n\ttypeId: /* @__PURE__ */ _(\"tool\"),\n\tactionNames: /* @__PURE__ */ b(He),\n\tparser: /* @__PURE__ */ b(Ve)\n});\n//#endregion\n//#region src/component/module/tool/delimitedText.ts\nasync function We(e, t, n) {\n\tlet r = Ge(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ke(e, t.valueDelimiterIds, t.isComplete, n);\n\treturn {\n\t\tissues: i,\n\t\tparsedRecords: a,\n\t\trecordDelimiterId: r,\n\t\tvalueDelimiterId: o\n\t};\n}\nfunction Ge(e) {\n\tlet t = (e.match(/\\r\\n/g) ?? []).length, n = (e.match(/(?<!\\r)\\n/g) ?? []).length, r = (e.match(/\\r(?!\\n)/g) ?? []).length;\n\treturn t >= n && t >= r ? \"\\r\\n\" : n >= t && n >= r ? \"\\n\" : r >= t && r >= n ? \"\\r\" : \"\\n\";\n}\nasync function Ke(e, t, n, r) {\n\tlet i, a, o, s = [], c, l = !1;\n\tfor (let u of t) {\n\t\tlet { issues: t, records: d } = await r(e, u, n);\n\t\tif (t.length > 0) {\n\t\t\tc = qe(c, {\n\t\t\t\tdelimiter: u,\n\t\t\t\tissues: t,\n\t\t\t\trecords: d\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (l = !0, d.length === 0) continue;\n\t\tlet { averageValueCount: f, sumOfValueCountDiffs: p } = Je(d);\n\t\t(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);\n\t}\n\tif (!l && c != null) {\n\t\tlet { delimiter: e, issues: t, records: n } = c;\n\t\treturn {\n\t\t\tissues: t,\n\t\t\tparsedRecords: n,\n\t\t\tvalueDelimiterId: H(n) ? e : void 0\n\t\t};\n\t}\n\treturn {\n\t\tissues: [],\n\t\tparsedRecords: s,\n\t\tvalueDelimiterId: i != null && H(s) ? i : void 0\n\t};\n}\nfunction qe(e, t) {\n\treturn e == null || t.issues.length < e.issues.length ? t : e;\n}\nfunction Je(e) {\n\tlet t = 0, n = 0, r;\n\tfor (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;\n\treturn {\n\t\taverageValueCount: t / e.length,\n\t\tsumOfValueCountDiffs: n\n\t};\n}\nfunction H(e) {\n\tlet t = /* @__PURE__ */ new Map();\n\tfor (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);\n\tlet [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];\n\treturn n > 1 && r * 2 > e.length;\n}\n//#endregion\n//#region src/component/module/tool/index.ts\nvar Ye = \"https://engine-eu.dpuse.app/tools\", Xe = { dtv: \"dpuse-tool-rust-csv-core-parser\" }, U = \"dpuse-tool-\";\nfunction W(e, t) {\n\treturn e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, \"en\"));\n}\nfunction G(e, t, n) {\n\tlet r = W(e, t), [i] = r;\n\tif (i === void 0) {\n\t\tlet n = {\n\t\t\tavailableToolIds: e.map((e) => e.id),\n\t\t\tdataFormatId: t\n\t\t};\n\t\tthrow new P(`No tool reads the '${t}' data format.`, \"dpuse-shared.component.module.tool.resolveParserToolConfig\", n);\n\t}\n\tlet a = Xe[t];\n\treturn r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;\n}\nasync function K(e, t) {\n\tlet n = `${U}${t}`, r = e.find((e) => e.id === n);\n\tif (!r) {\n\t\tlet r = {\n\t\t\tavailableToolIds: e.map((e) => e.id),\n\t\t\ttoolName: n\n\t\t};\n\t\tthrow new P(`Tool '${t}' not found.`, \"dpuse-shared.component.module.tool.loadTool\", r);\n\t}\n\tlet i = `${Ye}/${t}_v${r.version}/${n}.es.js`;\n\ttry {\n\t\treturn new (await (import(\n\t\t\t/* @vite-ignore */\n\t\t\ti\n))).Tool();\n\t} catch (e) {\n\t\tlet t = {\n\t\t\ttoolName: n,\n\t\t\turl: i,\n\t\t\tversion: r.version\n\t\t};\n\t\tthrow new P(`Failed to load tool '${n}' v${r.version}.`, \"dpuse-shared.component.module.tool.loadTool\", t, { cause: e });\n\t}\n}\n//#endregion\n//#region src/component/module/connector/objectParsing.ts\nvar Ze = \"\\n\", q = \",\", Qe = 13, J = 10, $e = 34;\nasync function et(e) {\n\tlet { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o, valueDelimiterId: s } = e, { dataFormatId: c, text: l } = n, u = n.bytes.length;\n\tif (u === 0) return {\n\t\tcontentAuditConfig: Y({\n\t\t\tasAt: t,\n\t\t\tcolumns: [],\n\t\t\tisComplete: !0,\n\t\t\trecordCount: 0,\n\t\t\tsize: u,\n\t\t\tstartedAt: a\n\t\t}),\n\t\tpreviewConfig: {\n\t\t\tissues: [{\n\t\t\t\tid: \"empty\",\n\t\t\t\tlineNumber: void 0,\n\t\t\t\tmessage: \"The file is empty.\",\n\t\t\t\tseverityId: \"info\"\n\t\t\t}],\n\t\t\tparsedRecords: [],\n\t\t\tsize: 0,\n\t\t\ttext: void 0\n\t\t},\n\t\treadConfig: {\n\t\t\tdataFormatId: \"dtv\",\n\t\t\tencodingConfidenceLevel: void 0,\n\t\t\tencodingId: void 0,\n\t\t\tfileType: void 0,\n\t\t\thasHeaders: !1,\n\t\t\trecordDelimiterId: Ze,\n\t\t\tvalueDelimiterId: q\n\t\t}\n\t};\n\tif (c == null || l == null || W(o, c).length === 0) return {\n\t\tcontentAuditConfig: Y({\n\t\t\tasAt: t,\n\t\t\tcolumns: [],\n\t\t\tisComplete: n.isComplete,\n\t\t\trecordCount: 0,\n\t\t\tsize: u,\n\t\t\tstartedAt: a\n\t\t}),\n\t\tpreviewConfig: {\n\t\t\tissues: [],\n\t\t\tparsedRecords: [],\n\t\t\tsize: u,\n\t\t\ttext: l\n\t\t},\n\t\treadConfig: {\n\t\t\tdataFormatId: c ?? \"unknown\",\n\t\t\tencodingConfidenceLevel: n.encodingConfidenceLevel,\n\t\t\tencodingId: n.encodingId,\n\t\t\tfileType: n.fileTypeConfig,\n\t\t\thasHeaders: void 0,\n\t\t\trecordDelimiterId: void 0,\n\t\t\tvalueDelimiterId: void 0\n\t\t}\n\t};\n\tlet { parser: d, parserId: f } = await X(o, c, i), p = s == null ? me : [s], m = await d.parseText(l, {\n\t\tdataFormatId: c,\n\t\tisComplete: n.isComplete,\n\t\tvalueDelimiterIds: p\n\t}), h = c === \"dtv\", g = h && s == null && m.valueDelimiterId == null ? await d.parseText(l, {\n\t\tdataFormatId: c,\n\t\tisComplete: n.isComplete,\n\t\tvalueDelimiterIds: [q]\n\t}) : m, _ = r(g.parsedRecords);\n\treturn {\n\t\tcontentAuditConfig: Y({\n\t\t\tasAt: t,\n\t\t\tcolumns: _.columnConfigs,\n\t\t\tisComplete: n.isComplete,\n\t\t\trecordCount: Math.max(0, g.parsedRecords.length - +!!_.hasHeaderRow),\n\t\t\tsize: u,\n\t\t\tstartedAt: a\n\t\t}),\n\t\tpreviewConfig: {\n\t\t\tissues: g.issues,\n\t\t\tparsedRecords: g.parsedRecords,\n\t\t\tsize: u,\n\t\t\ttext: l\n\t\t},\n\t\treadConfig: {\n\t\t\tdataFormatId: c,\n\t\t\tencodingConfidenceLevel: n.encodingConfidenceLevel,\n\t\t\tencodingId: n.encodingId,\n\t\t\tfileType: n.fileTypeConfig,\n\t\t\thasHeaders: _.hasHeaderRow,\n\t\t\tparserId: f,\n\t\t\trecordDelimiterId: g.recordDelimiterId,\n\t\t\tvalueDelimiterId: h ? s ?? g.valueDelimiterId ?? q : g.valueDelimiterId\n\t\t}\n\t};\n}\nasync function tt(e) {\n\tlet { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await X(a, n.dataFormatId, n.parserId);\n\treturn await o.parseStream(i, {\n\t\tabortSignal: r,\n\t\tchunkSize: n.chunkSize,\n\t\tdataFormatId: n.dataFormatId,\n\t\tencodingId: n.encodingId,\n\t\tvalueDelimiterId: n.valueDelimiterId\n\t}, t);\n}\nasync function nt(e) {\n\tlet { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await X(o, r.dataFormatId, r.parserId), d = at(a), f = rt(d.stream, r), p = await u.parseStream(f.stream, {\n\t\tabortSignal: i,\n\t\tchunkSize: r.chunkSize,\n\t\tdataFormatId: r.dataFormatId,\n\t\tencodingId: r.encodingId,\n\t\tvalueDelimiterId: r.valueDelimiterId\n\t}, (e, t) => {\n\t\tl.auditRecords(t), n(t.length, f.byteCount());\n\t});\n\treturn {\n\t\tasAt: s,\n\t\tbyteCount: f.byteCount(),\n\t\tcolumns: l.completeAudit(),\n\t\tcommentLineCount: p.commentLineCount,\n\t\tduration: performance.now() - c,\n\t\temptyLineCount: p.emptyLineCount,\n\t\tinvalidFieldLengthCount: p.nonUniformRecordCount,\n\t\tisComplete: f.isComplete(),\n\t\tlineCount: p.lineCount,\n\t\trecordCount: Math.max(0, p.recordCount - +!!r.hasHeaders),\n\t\tsourceWaitDuration: d.waitDuration()\n\t};\n}\nfunction Y(e) {\n\tlet { asAt: t, columns: n, isComplete: r, recordCount: i, size: a, startedAt: o } = e;\n\treturn {\n\t\tasAt: t,\n\t\tbyteCount: a,\n\t\tcolumns: n,\n\t\tcommentLineCount: void 0,\n\t\tduration: performance.now() - o,\n\t\temptyLineCount: void 0,\n\t\tinvalidFieldLengthCount: void 0,\n\t\tisComplete: r,\n\t\tlineCount: void 0,\n\t\trecordCount: i,\n\t\tsourceWaitDuration: void 0\n\t};\n}\nfunction rt(e, t) {\n\tlet n = e.getReader(), r = it(t.encodingId), i = 0, a = !1;\n\treturn {\n\t\tbyteCount: () => i,\n\t\tisComplete: () => a,\n\t\tstream: new ReadableStream({\n\t\t\tasync pull(e) {\n\t\t\t\tlet o = await n.read();\n\t\t\t\tif (o.done) {\n\t\t\t\t\ta = !0, e.close();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet s = t.stopSignal?.aborted === !0 ? i : t.byteLimit ?? Infinity, c = r(o.value, i, s - i);\n\t\t\t\tc == null ? (i += o.value.length, e.enqueue(o.value)) : (i += c, e.enqueue(o.value.subarray(0, c)), e.close(), await n.cancel());\n\t\t\t},\n\t\t\tcancel(e) {\n\t\t\t\treturn n.cancel(e);\n\t\t\t}\n\t\t}, { highWaterMark: 0 })\n\t};\n}\nfunction it(e) {\n\tlet t = A(e), n = t.startsWith(\"utf-16\"), r = n ? 2 : 1, i = +(t === \"utf-16be\"), a = !1;\n\treturn (e, t, o) => {\n\t\tfor (let s = 0; s < e.length; s++) {\n\t\t\tlet c = e[s];\n\t\t\tif ((c === $e || c === J || c === Qe) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {\n\t\t\t\tif (c === $e) a = !a;\n\t\t\t\telse if (!a && s >= o && (c === J || e[s + r] !== J)) return s + r - i;\n\t\t\t}\n\t\t}\n\t};\n}\nfunction at(e) {\n\tlet t = e.getReader(), n = 0;\n\treturn {\n\t\tstream: new ReadableStream({\n\t\t\tasync pull(e) {\n\t\t\t\tlet r = performance.now(), i = await t.read();\n\t\t\t\tn += performance.now() - r, i.done ? e.close() : e.enqueue(i.value);\n\t\t\t},\n\t\t\tcancel(e) {\n\t\t\t\treturn t.cancel(e);\n\t\t\t}\n\t\t}, { highWaterMark: 0 }),\n\t\twaitDuration: () => n\n\t};\n}\nasync function X(e, t, n) {\n\tlet r = G(e, t, n);\n\treturn {\n\t\tparser: await K(e, r.id.slice(U.length)),\n\t\tparserId: r.id\n\t};\n}\n//#endregion\n//#region src/component/module/connector/index.ts\nvar ot = [\n\t{\n\t\tid: \"application\",\n\t\tlabel: {\n\t\t\ten: \"Application\",\n\t\t\tes: \"Aplicación\"\n\t\t}\n\t},\n\t{\n\t\tid: \"curatedDataset\",\n\t\tlabel: {\n\t\t\ten: \"Curated Dataset\",\n\t\t\tes: \"Conjunto de Datos Curado\"\n\t\t}\n\t},\n\t{\n\t\tid: \"database\",\n\t\tlabel: {\n\t\t\ten: \"Database\",\n\t\t\tes: \"Base de Datos\"\n\t\t}\n\t},\n\t{\n\t\tid: \"fileStore\",\n\t\tlabel: {\n\t\t\ten: \"File Store\",\n\t\t\tes: \"Almacén de Archivos\"\n\t\t}\n\t}\n], st = [\n\t{\n\t\tid: \"apiEndpoint\",\n\t\tlabel: {\n\t\t\ten: \"API Endpoint\",\n\t\t\tes: \"Endpoint de API\"\n\t\t}\n\t},\n\t{\n\t\tid: \"file\",\n\t\tlabel: {\n\t\t\ten: \"File\",\n\t\t\tes: \"Archivo\"\n\t\t}\n\t},\n\t{\n\t\tid: \"table\",\n\t\tlabel: {\n\t\t\ten: \"Table\",\n\t\t\tes: \"Tabla\"\n\t\t}\n\t}\n], ct = {\n\tabortOperation: \"Abort Operation\",\n\tauditObjectContent: \"Audit Object Content\",\n\tcloseStore: \"Close Store\",\n\tcreateObject: \"Create Object\",\n\tdescribeConnection: \"Describe Connection\",\n\tdropObject: \"Drop Object\",\n\tfindObject: \"Find Object\",\n\tgetInfo: \"Get Info\",\n\tgetReadableStream: \"Get Readable Stream\",\n\tgetRecord: \"Get Record\",\n\tlistNodes: \"List Nodes\",\n\tloadObjectRecords: \"Load Object Records\",\n\topenStore: \"Open Store\",\n\tpreviewObject: \"Preview Object\",\n\tqueryRecords: \"Query Records\",\n\tremoveRecords: \"Remove Records\",\n\tretrieveChunks: \"Retrieve Chunks\",\n\tretrieveRecords: \"Retrieve Records\",\n\tupsertRecords: \"Upsert Records\"\n}, lt = [\n\t{\n\t\tid: \"bidirectional\",\n\t\tlabel: {\n\t\t\ten: \"Bidirectional\",\n\t\t\tes: \"Bidireccional\"\n\t\t}\n\t},\n\t{\n\t\tid: \"destination\",\n\t\tlabel: {\n\t\t\ten: \"Destination\",\n\t\t\tes: \"Destino\"\n\t\t}\n\t},\n\t{\n\t\tid: \"source\",\n\t\tlabel: {\n\t\t\ten: \"Source\",\n\t\t\tes: \"Origen\"\n\t\t}\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tlabel: {\n\t\t\ten: \"Unknown\",\n\t\t\tes: \"Desconocido\"\n\t\t}\n\t}\n], ut = /* @__PURE__ */ new Set([\n\t\"createObject\",\n\t\"dropObject\",\n\t\"loadObjectRecords\",\n\t\"removeRecords\",\n\t\"upsertRecords\"\n]), dt = /* @__PURE__ */ new Set([\n\t\"auditObjectContent\",\n\t\"findObject\",\n\t\"getInfo\",\n\t\"getReadableStream\",\n\t\"getRecord\",\n\t\"listNodes\",\n\t\"previewObject\",\n\t\"queryRecords\",\n\t\"retrieveChunks\",\n\t\"retrieveRecords\"\n]);\nfunction ft(e) {\n\tlet t = !1, n = !1;\n\tfor (let r of e) dt.has(r) && (t = !0), ut.has(r) && (n = !0);\n\treturn t && n ? \"bidirectional\" : t ? \"source\" : n ? \"destination\" : \"unknown\";\n}\nvar pt = (e, t = \"en\") => {\n\tlet i = ot.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n}, mt = (e, t = \"en\") => {\n\tlet i = st.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n}, ht = (e, t = \"en\") => {\n\tlet i = lt.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n};\nfunction gt(e) {\n\tlet t = new Set(e), n = \"|Action|Supported|\\n\";\n\tn += \"|:----|:-------:|\\n\";\n\tfor (let e of Object.keys(ct)) n += `| ${ct[e]} | ${t.has(e) ? \"✓\" : \"\"} |\\n`;\n\treturn n;\n}\n//#endregion\n//#region src/component/module/cookbook/cookbookConfig.schema.ts\nvar _t = T([\"list\"]), vt = /* @__PURE__ */ S({\n\t...D,\n\ttypeId: /* @__PURE__ */ _(\"cookbook\"),\n\tactionNames: /* @__PURE__ */ h(_t),\n\trecipes: /* @__PURE__ */ h(ce)\n}), yt = T([\n\t\"list\",\n\t\"render\",\n\t\"setColorMode\"\n]), bt = /* @__PURE__ */ S({\n\t...D,\n\ttypeId: /* @__PURE__ */ _(\"presenter\"),\n\tactionNames: /* @__PURE__ */ h(yt),\n\tpresentations: /* @__PURE__ */ h(ce)\n}), xt = \"https://engine-eu.dpuse.app/presenters\";\nasync function St(e, t, n, r) {\n\tlet i = e.id, a = `${xt}/${i.split(\"-\").slice(2).join(\"-\")}_v${e.version}/${i}.es.js`;\n\ttry {\n\t\treturn new (await (import(\n\t\t\t/* @vite-ignore */\n\t\t\ta\n))).Presenter(t, n, r);\n\t} catch (t) {\n\t\tlet n = {\n\t\t\tpresenterName: i,\n\t\t\turl: a,\n\t\t\tversion: e.version\n\t\t};\n\t\tthrow new P(`Failed to load presenter '${i}' v${e.version}.`, \"dpuse-shared.component.module.presenter.loadPresenter\", n, { cause: t });\n\t}\n}\n//#endregion\n//#region src/locale/index.ts\nfunction Ct(e, t) {\n\treturn {\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\",\n\t\tverb: e.verb?.[t] ?? void 0\n\t};\n}\nfunction wt(e, t, n = !1) {\n\tlet r = e.map((e) => ({\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\",\n\t\tverb: e.verb?.[t] ?? void 0\n\t}));\n\treturn n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;\n}\nfunction Tt(e, t) {\n\treturn {\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\"\n\t};\n}\n//#endregion\n//#region src/utilities/index.ts\nvar Et = /* @__PURE__ */ new Map([\n\t[\"arrow\", \"application/vnd.apache.arrow.file\"],\n\t[\"avro\", \"application/vnd.apache.avro\"],\n\t[\"bin\", \"application/octet-stream\"],\n\t[\"cfb\", \"application/x-cfb\"],\n\t[\"csv\", \"text/csv\"],\n\t[\"dat\", \"application/octet-stream\"],\n\t[\"json\", \"application/json\"],\n\t[\"jsonl\", \"application/jsonl\"],\n\t[\"md\", \"text/markdown\"],\n\t[\"ods\", \"application/vnd.oasis.opendocument.spreadsheet\"],\n\t[\"parquet\", \"application/vnd.apache.parquet\"],\n\t[\"sav\", \"application/x-spss-sav\"],\n\t[\"sqlite\", \"application/vnd.sqlite3\"],\n\t[\"tab\", \"text/tab-separated-values\"],\n\t[\"tsv\", \"text/tab-separated-values\"],\n\t[\"txt\", \"text/plain\"],\n\t[\"xls\", \"application/vnd.ms-excel\"],\n\t[\"xlsm\", \"application/vnd.ms-excel.sheet.macroEnabled.12\"],\n\t[\"xlsx\", \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"],\n\t[\"xml\", \"application/xml\"]\n]), Z = \"en\", Q = [\n\t[\"day\", 864e5],\n\t[\"hour\", 36e5],\n\t[\"minute\", 6e4],\n\t[\"second\", 1e3],\n\t[\"millisecond\", 1]\n], Dt = [\n\t[\"byte\", 1],\n\t[\"kilobyte\", 1024],\n\t[\"megabyte\", 1048576],\n\t[\"gigabyte\", 1073741824],\n\t[\"terabyte\", 1099511627776]\n], Ot = /* @__PURE__ */ new Map(), kt = /* @__PURE__ */ new Map();\nfunction At(e, t = 2, n = t, r = Z) {\n\treturn e == null ? \"\" : $(r, {\n\t\tlocaleMatcher: \"best fit\",\n\t\tmaximumFractionDigits: t,\n\t\tminimumFractionDigits: Math.min(n, t),\n\t\tminimumIntegerDigits: 1,\n\t\tstyle: \"decimal\",\n\t\tuseGrouping: !0\n\t}).format(e);\n}\nfunction jt(e, t = Z) {\n\treturn At(e, 0, 0, t);\n}\nfunction Mt(e, t = 1, n = Z) {\n\treturn e == null || !Number.isFinite(e) ? \"\" : $(n, {\n\t\tmaximumFractionDigits: t,\n\t\tnotation: \"compact\"\n\t}).format(e);\n}\nfunction Nt(e, t = 1, n = Z) {\n\tif (e == null || !Number.isFinite(e)) return \"\";\n\tlet [r, i] = Dt.find(([, n]) => Ht(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? [\"terabyte\", 1099511627776];\n\treturn $(n, {\n\t\tmaximumFractionDigits: i === 1 ? 0 : t,\n\t\tstyle: \"unit\",\n\t\tunit: r,\n\t\tunitDisplay: i === 1 ? \"long\" : \"short\"\n\t}).format(e / i);\n}\nfunction Pt(e, t = \"millisecond\", n = Z) {\n\tif (e == null || !Number.isFinite(e)) return \"\";\n\tlet 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 = [];\n\tfor (let [t, i] of s) {\n\t\tlet a = Math.floor(r / i);\n\t\tif (a === 0 && c.length > 0) continue;\n\t\tr -= a * i;\n\t\tlet o = c.length === 0 && e < 0 && a > 0 ? -a : a;\n\t\tc.push($(n, {\n\t\t\tstyle: \"unit\",\n\t\t\tunit: t,\n\t\t\tunitDisplay: \"short\"\n\t\t}).format(o));\n\t}\n\treturn Vt(n).format(c);\n}\nfunction Ft(e) {\n\tif (!e) return;\n\tlet t = Bt(e);\n\treturn t === void 0 ? e : e.slice(0, t);\n}\nfunction It(e) {\n\tif (!e) return;\n\tlet t = Bt(e);\n\treturn t === void 0 ? void 0 : e.slice(t + 1);\n}\nfunction Lt(e) {\n\treturn e != null && Et.has(e.toLowerCase());\n}\nfunction Rt(e) {\n\treturn (e == null ? void 0 : Et.get(e.toLowerCase())) ?? \"application/octet-stream\";\n}\nfunction zt(e) {\n\tswitch (e) {\n\t\tcase \"Edm.Boolean\": return \"boolean\";\n\t\tcase \"Edm.Byte\":\n\t\tcase \"Edm.Int16\":\n\t\tcase \"Edm.Int32\":\n\t\tcase \"Edm.Int64\":\n\t\tcase \"Edm.SByte\": return \"wholeNumber\";\n\t\tcase \"Edm.Decimal\":\n\t\tcase \"Edm.Double\":\n\t\tcase \"Edm.Single\": return \"decimalNumber\";\n\t\tcase \"Edm.Date\":\n\t\tcase \"Edm.DateTime\":\n\t\tcase \"Edm.DateTimeOffset\": return \"moment\";\n\t\tcase \"Edm.Time\":\n\t\tcase \"Edm.TimeOfDay\": return \"momentTime\";\n\t\tcase \"Edm.Guid\":\n\t\tcase \"Edm.String\": return \"string\";\n\t\tdefault: return \"unknown\";\n\t}\n}\nfunction Bt(e) {\n\tlet t = e.lastIndexOf(\"/\") + 1, n = e.lastIndexOf(\".\");\n\treturn n > t && n < e.length - 1 ? n : void 0;\n}\nfunction Vt(e) {\n\tlet t = Ot.get(e);\n\treturn t || (t = new Intl.ListFormat(e, {\n\t\tstyle: \"narrow\",\n\t\ttype: \"unit\"\n\t}), Ot.set(e, t)), t;\n}\nfunction $(e, t) {\n\tlet n = `${e}|${JSON.stringify(t)}`, r = kt.get(n);\n\treturn r || (r = new Intl.NumberFormat(e, t), kt.set(n, r)), r;\n}\nfunction Ht(e, t) {\n\tlet n = 10 ** t;\n\treturn Math.round(e * n) / n;\n}\n//#endregion\nexport { F as APIError, P as AppError, L as ConnectorError, pe as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, O as ENCODING_GROUP_CONFIG_MAP, k as ENCODING_TYPE_CONFIG_MAP, I as EngineError, R as FetchError, me as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, U as TOOL_NAME_PREFIX, nt as auditObjectContentWithParser, je as buildFetchError, et as buildPreviewObjectResult, ue as componentInstanceConfigSchema, Me as concatenateSerialisedErrorMessages, Se as connectorConfigSchema, pt as constructConnectorCategoryConfig, mt as constructConnectorItemTypeConfig, ht as constructConnectorUsageConfig, zt as convertODataTypeIdToUsageTypeId, vt as cookbookConfigSchema, n as createLabelMap, ft as determineConnectorUsageId, It as extractExtensionFromPath, Ft as extractPathWithoutExtension, At as formatNumberAsDecimalNumber, Pt as formatNumberAsDuration, Mt as formatNumberAsSize, Nt as formatNumberAsStorageSize, jt as formatNumberAsWholeNumber, fe as getComponentStatus, gt as getConnectorActionsTable, Ee as getEncodingTypeConfigs, Lt as hasMimeTypeForExtension, Ne as ignoreErrors, Te as isEncodingTypeId, W as listParserToolConfigs, St as loadPresenter, K as loadTool, Ct as localiseConfig, wt as localiseConfigs, Tt as localiseReference, Rt as lookupMimeTypeForExtension, z as normalizeToError, We as parseDelimitedText, bt as presenterConfigSchema, A as resolveDecoderId, r as resolveLabel, G as resolveParserToolConfig, tt as retrieveRecordsWithParser, Pe as serialiseError, Ue as toolConfigSchema, Fe as unserialiseError };\n","// ── DPUse Framework\nimport { ConnectorError, ignoreErrors, parseDelimitedText, resolveDecoderId } from '@dpuse/dpuse-shared'; // TODO: This should be Module or Tool error?\nimport type {\n ParserInterface,\n ParseStreamOptions,\n ParseTextOptions,\n ParseTextResult,\n ParsingRecord,\n PreviewIssue,\n RecordRetrievalTypeId,\n RetrieveRecordsSummary,\n ValueDelimiterId\n} from '@dpuse/dpuse-shared';\n\n// ── Local Framework\nimport type * as RustModule from '../rust/dpuse_tool_rust_csv_core_parser/pkg/dpuse_tool_rust_csv_core_parser.js';\n\n// ── Types ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\ntype RustBindings = typeof RustModule;\n\ninterface Utf8Transcoder {\n finish: () => Uint8Array;\n transcode: (bytes: Uint8Array) => Uint8Array;\n}\n\nexport interface CsvProcessingOptions {\n delimiter?: string;\n hasHeaders?: boolean;\n}\n\nexport interface CsvProcessingSummary {\n processedRowCount: number;\n failedRowCount: number;\n durationMs?: number;\n}\n\n// ── Constants ────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport const config = {\n id: 'rust-csv-core',\n name: 'Rust CSV Core',\n version: '0.1.0'\n} as const;\n\nconst DEFAULT_CHUNK_SIZE = 10_000;\n\n// WebKit hands over a file stream in pieces of about 18 MB, against about 2 MB in Chromium. Each piece is copied into\n// WebAssembly memory, which never shrinks, so pieces that large grew it to 567 MB. Each piece is read in slices of this\n// size instead. A slice is a view, not a copy.\nconst MAX_SLICE_BYTE_COUNT = 1_048_576;\n\n// ── State ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nconst state: { rustBindingsPromise: Promise<RustBindings> | undefined } = {\n rustBindingsPromise: undefined\n};\n\n// ── Tools ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Parses CSV with a Rust core compiled to WebAssembly, in one of two modes: a transferable ReadableStream where the\n * browser supports one (Chromium), or chunk by chunk where it does not (Safari).\n */\nexport class Tool implements ParserInterface {\n readonly config = config;\n\n /**\n * Parse stream. Reads delimited text from the stream. The caller owns the stream and its fetch, so a failed fetch is\n * the caller's to report. Aborting the signal stops the read and rejects with the signal's reason.\n */\n async parseStream(\n stream: ReadableStream<Uint8Array>,\n options: ParseStreamOptions,\n chunk: (typeId: RecordRetrievalTypeId, records: ParsingRecord[]) => void | Promise<void>\n ): Promise<RetrieveRecordsSummary> {\n const { RecordReader } = await loadRustBindings();\n options.abortSignal.throwIfAborted();\n const recordReader = new RecordReader(convertDelimiterToByte(options.valueDelimiterId));\n const transcoder = constructUtf8Transcoder(options.encodingId);\n const recordsPerChunk = Math.max(1, Math.floor(options.chunkSize ?? DEFAULT_CHUNK_SIZE));\n const reader = stream.getReader();\n // The stream may not be tied to the signal, so an abort cancels the read rather than waiting for the next chunk.\n const cancelRead = (): void => {\n ignoreErrors(() => void reader.cancel(options.abortSignal.reason));\n };\n options.abortSignal.addEventListener('abort', cancelRead, { once: true });\n\n let records: ParsingRecord[] = [];\n // A promise returned by 'chunk' is awaited before reading on, so a slow receiver holds the read back.\n const emitRecords = async (batch: RustModule.RecordBatch): Promise<void> => {\n for (const record of unpackRecordBatch(batch)) {\n records.push(record);\n if (records.length < recordsPerChunk) continue;\n const fullRecords = records;\n records = [];\n await chunk('parsingRecordArray', fullRecords);\n }\n };\n\n try {\n let result = await reader.read();\n while (!result.done) {\n options.abortSignal.throwIfAborted();\n const bytes = transcoder == null ? result.value : transcoder.transcode(result.value);\n for (let sliceStart = 0; sliceStart < bytes.length; sliceStart += MAX_SLICE_BYTE_COUNT) {\n await emitRecords(recordReader.pushChunk(bytes.subarray(sliceStart, sliceStart + MAX_SLICE_BYTE_COUNT)));\n }\n result = await reader.read();\n }\n options.abortSignal.throwIfAborted();\n if (transcoder != null) await emitRecords(recordReader.pushChunk(transcoder.finish()));\n await emitRecords(recordReader.finish());\n if (records.length > 0) await chunk('parsingRecordArray', records);\n return {\n byteCount: recordReader.byteCount,\n commentLineCount: 0, // Comments are not read, as csv-parse is set up in 'dpuse-tool-adaltas-csv-parser'.\n emptyLineCount: recordReader.emptyLineCount,\n lineCount: recordReader.lineCount,\n nonUniformRecordCount: recordReader.nonUniformRecordCount,\n recordCount: recordReader.recordCount\n };\n } finally {\n options.abortSignal.removeEventListener('abort', cancelRead);\n recordReader.free();\n reader.releaseLock();\n }\n }\n\n /**\n * Parse text. 'csv-core' reads any text without error, so no issues are reported, and a quote left open simply\n * runs to the end of the text.\n */\n async parseText(text: string, options: ParseTextOptions): Promise<ParseTextResult> {\n const { RecordReader } = await loadRustBindings();\n return await parseDelimitedText(text, options, (delimitedText, delimiter): Promise<{ issues: PreviewIssue[]; records: ParsingRecord[] }> => {\n const recordReader = new RecordReader(convertDelimiterToByte(delimiter));\n try {\n const records = unpackRecordBatch(recordReader.pushChunk(new TextEncoder().encode(delimitedText)));\n records.push(...unpackRecordBatch(recordReader.finish()));\n return Promise.resolve({ issues: [], records });\n } finally {\n recordReader.free();\n }\n });\n }\n\n /**\n * Process CSV data using transferable ReadableStream (Chromium path).\n */\n async processWithTransferableStream(\n stream: ReadableStream<Uint8Array>,\n options: CsvProcessingOptions = {},\n onProgress?: (rowCount: number) => void\n ): Promise<CsvProcessingSummary> {\n const xxxx = await loadRustBindings();\n const delimiter = options.delimiter?.codePointAt(0) ?? 44; // Default comma\n const hasHeaders = options.hasHeaders ?? true;\n\n const startTime = performance.now();\n let processedRowCount = 0;\n\n const progressCallback = (count: number): void => {\n processedRowCount += count;\n if (onProgress) onProgress(count);\n };\n\n try {\n await xxxx.stream_csv(stream, progressCallback, delimiter, hasHeaders);\n return {\n processedRowCount,\n failedRowCount: 0,\n durationMs: performance.now() - startTime\n };\n } catch (error) {\n throw new ConnectorError('Failed to process CSV stream.', 'dpuse-tool-rust-csv-core-parser|Tool|processWithTransferableStream', { cause: error });\n }\n }\n\n /**\n * Process CSV data using chunk-by-chunk approach (Safari fallback).\n */\n async processWithChunks(stream: ReadableStream<Uint8Array>, options: CsvProcessingOptions = {}, onProgress?: (rowCount: number) => void): Promise<CsvProcessingSummary> {\n const { CsvSession } = await loadRustBindings();\n const delimiter = options.delimiter?.codePointAt(0) ?? 44;\n const hasHeaders = options.hasHeaders ?? true;\n\n const startTime = performance.now();\n let processedRowCount = 0;\n const session = new CsvSession(delimiter, hasHeaders);\n\n try {\n const reader = stream.getReader();\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- The loop ends when the reader reports 'done'.\n while (true) {\n const { value, done } = await reader.read();\n if (done) break;\n\n // if (value) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- The WebAssembly bindings return untyped rows.\n const rows = session.pushChunk(value);\n const count = Array.isArray(rows) ? rows.length : 0;\n processedRowCount += count;\n if (onProgress && count > 0) onProgress(count);\n // }\n }\n\n // Finish processing\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- The WebAssembly bindings return untyped rows.\n const remainingRows = session.finish();\n const remainingCount = Array.isArray(remainingRows) ? remainingRows.length : 0;\n processedRowCount += remainingCount;\n if (onProgress && remainingCount > 0) onProgress(remainingCount);\n\n return {\n processedRowCount,\n failedRowCount: 0,\n durationMs: performance.now() - startTime\n };\n } finally {\n reader.releaseLock();\n }\n } catch (error) {\n throw new ConnectorError('Failed to process CSV chunks.', 'dpuse-tool-rust-csv-core-parser|Tool|processWithChunks', { cause: error });\n }\n }\n}\n\n// ── Helpers ──────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n// The two least common delimiters are named by their character codes, because neither can be typed.\nfunction convertDelimiterToByte(delimiter: ValueDelimiterId): number {\n if (delimiter === '0x1E') return 0x1e;\n if (delimiter === '0x1F') return 0x1f;\n const byte = delimiter.codePointAt(0);\n if (byte == null || byte > 0x7f) throw new Error(`Delimiter '${delimiter}' is not a single ASCII character.`);\n return byte;\n}\n\n// The Rust reader reads UTF-8. Text in any other encoding is decoded and encoded again as UTF-8 on the way in, so it is\n// read as 'TextDecoder' reads it. UTF-8 is passed straight through, which saves a copy of every chunk.\nfunction constructUtf8Transcoder(encodingId: string): Utf8Transcoder | undefined {\n const decoder = new TextDecoder(resolveDecoderId(encodingId));\n if (decoder.encoding === 'utf-8') return undefined;\n const encoder = new TextEncoder();\n return {\n finish: () => encoder.encode(decoder.decode()),\n transcode: (bytes) => encoder.encode(decoder.decode(bytes, { stream: true }))\n };\n}\n\n// Builds a record of '{ value, valueWasQuoted }' objects for each record in the batch, which is freed once read.\nfunction unpackRecordBatch(batch: RustModule.RecordBatch): ParsingRecord[] {\n const { recordValueCounts, text, valueEnds, valueQuoted } = batch;\n batch.free();\n const records: ParsingRecord[] = [];\n let valueIndex = 0;\n let valueStart = 0;\n for (const valueCount of recordValueCounts) {\n const record: ParsingRecord = [];\n for (let index = 0; index < valueCount; index++) {\n const valueEnd = valueEnds[valueIndex] ?? valueStart;\n record.push({ value: text.slice(valueStart, valueEnd), valueWasQuoted: valueQuoted[valueIndex] === 1 });\n valueStart = valueEnd;\n valueIndex++;\n }\n records.push(record);\n }\n return records;\n}\n\n// The WebAssembly loads once, on first use; the promise is kept so callers that arrive together share one load.\nasync function loadRustBindings(): Promise<RustBindings> {\n state.rustBindingsPromise ??= (async () => {\n const module = await import('../rust/dpuse_tool_rust_csv_core_parser/pkg/dpuse_tool_rust_csv_core_parser.js');\n await module.default();\n return module;\n })();\n return state.rustBindingsPromise;\n}\n"],"ignoreList":[0],"mappings":";AAUA,SAASG,EAAE,GAAG;CACb,OAAO,IAAI,IAAI,OAAO,QAAQ,CAAC,CAAC;AACjC;AAOA,IAAIC,IAAI;CACP,MAAM,KAAK;CACX,SAAS,KAAK;CACd,YAAY,KAAK;CACjB,gBAAgB,KAAK;AACtB;;AAEA,SAASC,EAAE,GAAG;CACb,OAAO,IAAI;EACV,MAAM,GAAG,QAAQ,KAAK;EACtB,SAAS,GAAG;EACZ,YAAY,GAAG,cAAc,KAAK;EAClC,gBAAgB,GAAG,kBAAkB,KAAK;CAC3C,IAAID;AACL;;AAEA,SAASE,EAAE,GAAG;CACb,IAAI,IAAI,OAAO;CACf,OAAO,MAAM,WAAW,IAAI,EAAE,KAAK,MAAM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cA,EAAQ,OAAOF,EAAQ,OAAO,CAAC;EAC7C,YAAY,MAAUE,EAAQ,OAAOF,EAAQ,OAAOrB,GAAO,EAAE,QAAQ,GAAK,CAAC,CAAC;CAChF;AACJ;AAGA,SAASL,EAAkB,GAAgD;CACvE,IAAM,EAAE,sBAAmB,SAAM,cAAW,mBAAgBC;CAC5D,EAAM,KAAK;CACX,IAAMJ,IAA2B,CAAC,GAC9BgC,IAAa,GACbC,IAAa;CACjB,KAAK,IAAMC,KAAcC,GAAmB;EACxC,IAAMjC,IAAwB,CAAC;EAC/B,KAAK,IAAIkC,IAAQ,GAAGA,IAAQF,GAAY,KAAS;GAC7C,IAAMG,IAAWC,EAAUN,MAAeC;GAG1C,AAFA/B,EAAO,KAAK;IAAE,OAAOQ,EAAK,MAAMuB,GAAYI,CAAQ;IAAG,gBAAgBE,EAAYP,OAAgB;GAAE,CAAC,GACtG,IAAaK,GACb;EACJ;EACA,EAAQ,KAAKnC,CAAM;CACvB;CACA,OAAOF;AACX;AAGA,eAAeX,IAA0C;CAMrD,OALA,EAAM,yBAAyB,YAAY;EACvC,IAAMmD,IAAS,MAAM,OAAO;EAE5B,OADA,MAAMA,EAAO,QAAQ,GACdA;CACX,EAAA,CAAG,GACIrD,EAAM;AACjB"}
1
+ {"version":3,"file":"dpuse-tool-rust-csv-core-parser.es.js","names":["parseDelimitedText","ConnectorError","getValueDelimiterCharacter","resolveDecoderId","i","a","e","o","s","n","r","c","u","d","t","p","m","_","v","y","b","S","C","ee","te","re","T","ie","ae","oe","se","ce","le","D","ge","O","k","A","j","P","Fe","Re","Ye","Xe","Ze","Qe","$e","B","config","DEFAULT_CHUNK_SIZE","MAX_SLICE_BYTE_COUNT","state","Tool","loadRustBindings","recordReader","RecordReader","convertDelimiterToByte","options","transcoder","constructUtf8Transcoder","recordsPerChunk","reader","stream","cancelRead","records","emitRecords","record","unpackRecordBatch","batch","fullRecords","chunk","result","bytes","sliceStart","text","delimiter","delimitedText","xxxx","hasHeaders","startTime","processedRowCount","progressCallback","count","onProgress","error","session","CsvSession","done","rows","value","remainingRows","remainingCount","byte","decoder","encodingId","encoder","valueIndex","valueStart","valueCount","recordValueCounts","index","valueEnd","valueEnds","valueQuoted","module"],"sources":["../node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js","../src/index.ts"],"sourcesContent":["// src/locale/label.ts\nvar e = \"en\", t = [{\n\tid: \"en\",\n\tflag: \"gb\",\n\tlabel: \"English\"\n}, {\n\tid: \"es\",\n\tflag: \"es\",\n\tlabel: \"Español\"\n}];\nfunction n(e) {\n\treturn new Map(Object.entries(e));\n}\nfunction r(e, t, n = \"en\") {\n\tlet r = e.get(t);\n\treturn r === void 0 ? n === t ? void 0 : e.get(n) : r;\n}\n// node_modules/valibot/dist/index.mjs\nvar i = {\n\tlang: void 0,\n\tmessage: void 0,\n\tabortEarly: void 0,\n\tabortPipeEarly: void 0\n};\n/* @__NO_SIDE_EFFECTS__ */\nfunction a(e) {\n\treturn e ? {\n\t\tlang: e?.lang ?? void 0,\n\t\tmessage: e?.message,\n\t\tabortEarly: e?.abortEarly ?? void 0,\n\t\tabortPipeEarly: e?.abortPipeEarly ?? void 0\n\t} : i;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction o(e) {\n\tlet t = typeof e;\n\treturn t === \"string\" ? `\"${e}\"` : t === \"number\" || t === \"bigint\" || t === \"boolean\" ? `${e}` : t === \"object\" || t === \"function\" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? \"null\" : t;\n}\nfunction s(e, t, n, r, i) {\n\tlet a = i && \"input\" in i ? i.input : n.value, s = i?.expected ?? e.expects ?? null, c = i?.received ?? /* @__PURE__ */ o(a), l = {\n\t\tkind: e.kind,\n\t\ttype: e.type,\n\t\tinput: a,\n\t\texpected: s,\n\t\treceived: c,\n\t\tmessage: `Invalid ${t}: ${s ? `Expected ${s} but r` : \"R\"}eceived ${c}`,\n\t\trequirement: e.requirement,\n\t\tpath: i?.path,\n\t\tissues: i?.issues,\n\t\tlang: r.lang,\n\t\tabortEarly: r.abortEarly,\n\t\tabortPipeEarly: r.abortPipeEarly\n\t}, u = e.kind === \"schema\", d = i?.message ?? e.message ?? (e.reference, l.lang, void 0) ?? (u ? (l.lang, void 0) : null) ?? r.message ?? (l.lang, void 0);\n\td !== void 0 && (l.message = typeof d == \"function\" ? d(l) : d), u && (n.typed = !1), n.issues ? n.issues.push(l) : n.issues = [l];\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction c(e, t) {\n\treturn e === t || Number.isNaN(e) && Number.isNaN(t);\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction l(e, t) {\n\treturn Object.prototype.hasOwnProperty.call(e, t) && t !== \"__proto__\" && t !== \"prototype\" && t !== \"constructor\";\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction u(e, t) {\n\tlet n = [...new Set(e)];\n\treturn n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? \"never\";\n}\nfunction d(e) {\n\treturn e[\"~standard\"] = {\n\t\tversion: 1,\n\t\tvendor: \"valibot\",\n\t\tvalidate: (t) => e[\"~run\"]({ value: t }, /* @__PURE__ */ a())\n\t}, e;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction f(e, t) {\n\treturn {\n\t\tkind: \"validation\",\n\t\ttype: \"min_length\",\n\t\treference: f,\n\t\tasync: !1,\n\t\texpects: `>=${e}`,\n\t\trequirement: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn e.typed && e.value.length < this.requirement && s(this, \"length\", e, t, { received: `${e.value.length}` }), e;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction p(e, t, n) {\n\treturn typeof e.fallback == \"function\" ? e.fallback(t, n) : e.fallback;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction m(e, t, n) {\n\treturn typeof e.default == \"function\" ? e.default(t, n) : e.default;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction h(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"array\",\n\t\treference: h,\n\t\texpects: \"Array\",\n\t\tasync: !1,\n\t\titem: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (Array.isArray(n)) {\n\t\t\t\te.typed = !0, e.value = [];\n\t\t\t\tfor (let r = 0; r < n.length; r++) {\n\t\t\t\t\tlet i = n[r], a = this.item[\"~run\"]({ value: i }, t);\n\t\t\t\t\tif (a.issues) {\n\t\t\t\t\t\tlet o = {\n\t\t\t\t\t\t\ttype: \"array\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of a.issues) t.path ? t.path.unshift(o) : t.path = [o], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= a.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta.typed || (e.typed = !1), e.value.push(a.value);\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction g(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"boolean\",\n\t\treference: g,\n\t\texpects: \"boolean\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"boolean\" ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction _(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"literal\",\n\t\treference: _,\n\t\texpects: /* @__PURE__ */ o(e),\n\t\tasync: !1,\n\t\tliteral: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn /* @__PURE__ */ c(e.value, this.literal) ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction v(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"nullable\",\n\t\treference: v,\n\t\texpects: `(${e.expects} | null)`,\n\t\tasync: !1,\n\t\twrapped: e,\n\t\tdefault: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn 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);\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction y(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"number\",\n\t\treference: y,\n\t\texpects: \"number\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"number\" && !isNaN(e.value) ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction b(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"optional\",\n\t\treference: b,\n\t\texpects: `(${e.expects} | undefined)`,\n\t\tasync: !1,\n\t\twrapped: e,\n\t\tdefault: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn 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);\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction x(e, t, n) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"record\",\n\t\treference: x,\n\t\texpects: \"Object\",\n\t\tasync: !1,\n\t\tkey: e,\n\t\tvalue: t,\n\t\tmessage: n,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\te.typed = !0, e.value = {};\n\t\t\t\tfor (let r in n) if (/* @__PURE__ */ l(n, r)) {\n\t\t\t\t\tlet i = n[r], a = this.key[\"~run\"]({ value: r }, t);\n\t\t\t\t\tif (a.issues) {\n\t\t\t\t\t\tlet o = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of a.issues) t.path = [o], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= a.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlet o = this.value[\"~run\"]({ value: i }, t);\n\t\t\t\t\tif (o.issues) {\n\t\t\t\t\t\tlet a = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of o.issues) t.path ? t.path.unshift(a) : t.path = [a], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= o.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta.typed && o.typed || (e.typed = !1), a.typed && (e.value[a.value] = o.value);\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction S(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"strict_object\",\n\t\treference: S,\n\t\texpects: \"Object\",\n\t\tasync: !1,\n\t\tentries: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\te.typed = !0, e.value = {};\n\t\t\t\tfor (let r in this.entries) {\n\t\t\t\t\tlet i = this.entries[r];\n\t\t\t\t\tif (r in n || (i.type === \"exact_optional\" || i.type === \"optional\" || i.type === \"nullish\") && i.default !== void 0) {\n\t\t\t\t\t\tlet a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i[\"~run\"]({ value: a }, t);\n\t\t\t\t\t\tif (o.issues) {\n\t\t\t\t\t\t\tlet i = {\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\t\tvalue: a\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tfor (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);\n\t\t\t\t\t\t\tif (e.issues ||= o.issues, t.abortEarly) {\n\t\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\to.typed || (e.typed = !1), e.value[r] = o.value;\n\t\t\t\t\t} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ p(i);\n\t\t\t\t\telse if (i.type !== \"exact_optional\" && i.type !== \"optional\" && i.type !== \"nullish\" && (s(this, \"key\", e, t, {\n\t\t\t\t\t\tinput: void 0,\n\t\t\t\t\t\texpected: `\"${r}\"`,\n\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: n[r]\n\t\t\t\t\t\t}]\n\t\t\t\t\t}), t.abortEarly)) break;\n\t\t\t\t}\n\t\t\t\tif (!e.issues || !t.abortEarly) {\n\t\t\t\t\tfor (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {\n\t\t\t\t\t\ts(this, \"key\", e, t, {\n\t\t\t\t\t\t\tinput: r,\n\t\t\t\t\t\t\texpected: \"never\",\n\t\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\t\tvalue: n[r]\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction C(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"string\",\n\t\treference: C,\n\t\texpects: \"string\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"string\" ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction ee(e) {\n\tlet t;\n\tif (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);\n\telse t = n.issues;\n\treturn t;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction te(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"union\",\n\t\treference: te,\n\t\texpects: /* @__PURE__ */ u(e.map((e) => e.expects), \"|\"),\n\t\tasync: !1,\n\t\toptions: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n, r, i;\n\t\t\tfor (let a of this.options) {\n\t\t\t\tlet o = a[\"~run\"]({ value: e.value }, t);\n\t\t\t\tif (o.typed) {\n\t\t\t\t\tif (o.issues) r ? r.push(o) : r = [o];\n\t\t\t\t\telse {\n\t\t\t\t\t\tn = o;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else i ? i.push(o) : i = [o];\n\t\t\t}\n\t\t\tif (n) return n;\n\t\t\tif (r) {\n\t\t\t\tif (r.length === 1) return r[0];\n\t\t\t\ts(this, \"type\", e, t, { issues: /* @__PURE__ */ ee(r) }), e.typed = !0;\n\t\t\t} else if (i?.length === 1) return i[0];\n\t\t\telse s(this, \"type\", e, t, { issues: /* @__PURE__ */ ee(i) });\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction ne(...e) {\n\treturn d({\n\t\t...e[0],\n\t\tpipe: e,\n\t\t\"~run\"(t, n) {\n\t\t\tfor (let r of e) if (r.kind !== \"metadata\") {\n\t\t\t\tif (t.issues && (r.kind === \"schema\" || r.kind === \"transformation\")) {\n\t\t\t\t\tt.typed = !1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tt.issues && (n.abortEarly || n.abortPipeEarly) || (t = r[\"~run\"](t, n));\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t});\n}\n// src/locale/locale.schema.ts\nvar w = /* @__PURE__ */ S({\n\ten: /* @__PURE__ */ C(),\n\tes: /* @__PURE__ */ C()\n}), re = {\n\tid: /* @__PURE__ */ C(),\n\tlabel: /* @__PURE__ */ S({\n\t\ten: /* @__PURE__ */ b(/* @__PURE__ */ C()),\n\t\tes: /* @__PURE__ */ b(/* @__PURE__ */ C())\n\t}),\n\tdescription: /* @__PURE__ */ S({\n\t\ten: /* @__PURE__ */ b(/* @__PURE__ */ C()),\n\t\tes: /* @__PURE__ */ b(/* @__PURE__ */ C())\n\t}),\n\ticon: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\ticonDark: /* @__PURE__ */ v(/* @__PURE__ */ C())\n}, T = (e) => /* @__PURE__ */ te(e.map((e) => /* @__PURE__ */ _(e))), ie = T([\n\t\"app\",\n\t\"connector\",\n\t\"connectorConnection\",\n\t\"context\",\n\t\"contextArea\",\n\t\"contextModel\",\n\t\"contextModelDimension\",\n\t\"contextModelDimensionHierarchy\",\n\t\"contextModelEntity\",\n\t\"contextModelEntityDataItem\",\n\t\"contextModelEntityEvent\",\n\t\"contextModelEntityPrimaryMeasure\",\n\t\"contextModelSecondaryMeasure\",\n\t\"cookbook\",\n\t\"cookbookRecipe\",\n\t\"dataView\",\n\t\"engine\",\n\t\"eventQuery\",\n\t\"presenter\",\n\t\"presenterPresentation\",\n\t\"tool\"\n]), ae = T([\n\t\"danger\",\n\t\"success\",\n\t\"warning\"\n]), oe = T([\n\t\"alpha\",\n\t\"beta\",\n\t\"releaseCandidate\",\n\t\"generalAvailability\"\n]), se = /* @__PURE__ */ S({\n\tcolor: ae,\n\tlabel: /* @__PURE__ */ C()\n}), ce = {\n\t...re,\n\ttypeId: ie\n}, E = /* @__PURE__ */ S({\n\t...ce,\n\torder: /* @__PURE__ */ y(),\n\tpath: /* @__PURE__ */ C()\n}), le = {\n\t...ce,\n\tfirstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),\n\tlastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),\n\tstatus: /* @__PURE__ */ v(se),\n\tstatusId: /* @__PURE__ */ v(oe)\n}, ue = /* @__PURE__ */ S({ ...le }), de = [\n\t{\n\t\tid: \"alpha\",\n\t\tcolor: \"danger\",\n\t\tlabels: {\n\t\t\ten: \"alpha\",\n\t\t\tes: \"alfa\"\n\t\t}\n\t},\n\t{\n\t\tid: \"beta\",\n\t\tcolor: \"warning\",\n\t\tlabels: {\n\t\t\ten: \"beta\",\n\t\t\tes: \"beta\"\n\t\t}\n\t},\n\t{\n\t\tid: \"releaseCandidate\",\n\t\tcolor: \"success\",\n\t\tlabels: {\n\t\t\ten: \"release-candidate\",\n\t\t\tes: \"candidato-de-lanzamiento\"\n\t\t}\n\t},\n\t{\n\t\tid: \"generalAvailability\",\n\t\tcolor: \"success\",\n\t\tlabels: {\n\t\t\ten: \"\",\n\t\t\tes: \"\"\n\t\t}\n\t}\n];\nfunction fe(e, t = \"en\") {\n\tlet n = de.find((t) => t.id === e);\n\tif (n) {\n\t\tlet e = n.labels[t] ?? n.labels.en ?? n.id;\n\t\treturn {\n\t\t\tcolor: n.color,\n\t\t\tlabel: e\n\t\t};\n\t}\n\treturn {\n\t\tcolor: \"danger\",\n\t\tlabel: e\n\t};\n}\n// src/component/connection/index.ts\nvar pe = [\",\", \".\"], me = [\n\t{\n\t\tid: \"arrow\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"avro\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"dtv\",\n\t\tisTable: !0,\n\t\tisText: !0,\n\t\tsupportId: \"supported\"\n\t},\n\t{\n\t\tid: \"json\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"jsonl\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"markdown\",\n\t\tisTable: !1,\n\t\tisText: !0,\n\t\tsupportId: \"unsupported\"\n\t},\n\t{\n\t\tid: \"ods\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"parquet\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"sav\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"sqlite\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"xlsx\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"xml\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"unsupported\"\n\t}\n], D = [\n\t{\n\t\tid: \",\",\n\t\tcharacter: \",\"\n\t},\n\t{\n\t\tid: \";\",\n\t\tcharacter: \";\"\n\t},\n\t{\n\t\tid: \"\t\",\n\t\tcharacter: \"\t\"\n\t},\n\t{\n\t\tid: \"|\",\n\t\tcharacter: \"|\"\n\t},\n\t{\n\t\tid: \" \",\n\t\tcharacter: \" \"\n\t},\n\t{\n\t\tid: \":\",\n\t\tcharacter: \":\"\n\t},\n\t{\n\t\tid: \"_\",\n\t\tcharacter: \"_\"\n\t},\n\t{\n\t\tid: \"!\",\n\t\tcharacter: \"!\"\n\t},\n\t{\n\t\tid: \"0x1F\",\n\t\tcharacter: \"\u001f\"\n\t},\n\t{\n\t\tid: \"0x1E\",\n\t\tcharacter: \"\u001e\"\n\t}\n], he = [\n\t{\n\t\tid: \"string\",\n\t\tdefaultSubtypeId: \"plain\",\n\t\tisChoosable: !0,\n\t\tsubtypeIds: [\n\t\t\t\"plain\",\n\t\t\t\"email\",\n\t\t\t\"url\",\n\t\t\t\"uuid\",\n\t\t\t\"ulid\",\n\t\t\t\"ipv4\",\n\t\t\t\"ipv6\",\n\t\t\t\"ipRange\",\n\t\t\t\"macAddress\",\n\t\t\t\"iban\",\n\t\t\t\"isbn\",\n\t\t\t\"paymentCard\",\n\t\t\t\"hexColor\",\n\t\t\t\"json\",\n\t\t\t\"countryCode\",\n\t\t\t\"currencyCode\",\n\t\t\t\"languageCode\"\n\t\t]\n\t},\n\t{\n\t\tid: \"numeric\",\n\t\tdefaultSubtypeId: \"integer\",\n\t\tisChoosable: !0,\n\t\tsubtypeIds: [\n\t\t\t\"integer\",\n\t\t\t\"decimal\",\n\t\t\t\"bigint\"\n\t\t]\n\t},\n\t{\n\t\tid: \"temporal\",\n\t\tdefaultSubtypeId: \"dateTime\",\n\t\tisChoosable: !0,\n\t\tsubtypeIds: [\n\t\t\t\"date\",\n\t\t\t\"dateTime\",\n\t\t\t\"time\"\n\t\t]\n\t},\n\t{\n\t\tid: \"boolean\",\n\t\tdefaultSubtypeId: void 0,\n\t\tisChoosable: !0,\n\t\tsubtypeIds: []\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tdefaultSubtypeId: void 0,\n\t\tisChoosable: !1,\n\t\tsubtypeIds: []\n\t}\n];\nfunction ge(e) {\n\treturn D.find(({ id: t }) => t === e)?.character ?? e;\n}\nT([\n\t\"app\",\n\t\"engine\",\n\t\"connector\",\n\t\"cookbook\",\n\t\"presenter\",\n\t\"tool\"\n]);\n// src/component/module/moduleConfig.schema.ts\nvar O = {\n\t...le,\n\tvendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\tvendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\tvendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\tversion: /* @__PURE__ */ C()\n};\n({ ...O });\n// src/component/module/connector/connectorConfig.schema.ts\nvar _e = T([\n\t\"abortOperation\",\n\t\"auditObjectContent\",\n\t\"closeStore\",\n\t\"createObject\",\n\t\"describeConnection\",\n\t\"dropObject\",\n\t\"findObject\",\n\t\"getInfo\",\n\t\"getReadableStream\",\n\t\"getRecord\",\n\t\"listNodes\",\n\t\"loadObjectRecords\",\n\t\"openStore\",\n\t\"previewObject\",\n\t\"queryRecords\",\n\t\"removeRecords\",\n\t\"retrieveChunks\",\n\t\"retrieveRecords\",\n\t\"upsertRecords\"\n]), ve = T([\n\t\"application\",\n\t\"curatedDataset\",\n\t\"database\",\n\t\"fileStore\"\n]), ye = /* @__PURE__ */ S({ label: w }), be = T([\n\t\"apiEndpoint\",\n\t\"file\",\n\t\"table\"\n]), xe = T([\n\t\"bidirectional\",\n\t\"destination\",\n\t\"source\",\n\t\"unknown\"\n]), Se = /* @__PURE__ */ S({ label: w }), Ce = /* @__PURE__ */ S({\n\tauthMethodId: T([\n\t\t\"apiKey\",\n\t\t\"disabled\",\n\t\t\"oAuth2\",\n\t\t\"none\"\n\t]),\n\tactiveConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),\n\tcanDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),\n\tid: /* @__PURE__ */ b(/* @__PURE__ */ C()),\n\tlabel: /* @__PURE__ */ b(w),\n\tmaxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),\n\tparams: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))\n}), we = /* @__PURE__ */ S({\n\t...O,\n\ttypeId: /* @__PURE__ */ _(\"connector\"),\n\tactionNames: /* @__PURE__ */ h(_e),\n\tcategory: /* @__PURE__ */ v(ye),\n\tcategoryId: ve,\n\timplementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), Ce),\n\titemTypeId: be,\n\tusage: /* @__PURE__ */ v(Se),\n\tusageId: /* @__PURE__ */ v(xe)\n}), Te = {\n\tarabic: {\n\t\tid: \"arabic\",\n\t\tlabel: {\n\t\t\ten: \"Arabic\",\n\t\t\tes: \"Árabe\"\n\t\t}\n\t},\n\tarmenian: {\n\t\tid: \"armenian\",\n\t\tlabel: {\n\t\t\ten: \"Armenian\",\n\t\t\tes: \"Armenio\"\n\t\t}\n\t},\n\tbaltic: {\n\t\tid: \"baltic\",\n\t\tlabel: {\n\t\t\ten: \"Baltic\",\n\t\t\tes: \"Báltico\"\n\t\t}\n\t},\n\tceltic: {\n\t\tid: \"celtic\",\n\t\tlabel: {\n\t\t\ten: \"Celtic\",\n\t\t\tes: \"Celta\"\n\t\t}\n\t},\n\tcentralEuropean: {\n\t\tid: \"centralEuropean\",\n\t\tlabel: {\n\t\t\ten: \"Central European\",\n\t\t\tes: \"Centroeuropeo\"\n\t\t}\n\t},\n\tchineseSimplified: {\n\t\tid: \"chineseSimplified\",\n\t\tlabel: {\n\t\t\ten: \"Chinese Simplified\",\n\t\t\tes: \"Chino simplificado\"\n\t\t}\n\t},\n\tchineseTraditional: {\n\t\tid: \"chineseTraditional\",\n\t\tlabel: {\n\t\t\ten: \"Chinese Traditional\",\n\t\t\tes: \"Chino tradicional\"\n\t\t}\n\t},\n\tcyrillic: {\n\t\tid: \"cyrillic\",\n\t\tlabel: {\n\t\t\ten: \"Cyrillic\",\n\t\t\tes: \"Cirílico\"\n\t\t}\n\t},\n\tgeorgian: {\n\t\tid: \"georgian\",\n\t\tlabel: {\n\t\t\ten: \"Georgian\",\n\t\t\tes: \"Georgiano\"\n\t\t}\n\t},\n\tgreek: {\n\t\tid: \"greek\",\n\t\tlabel: {\n\t\t\ten: \"Greek\",\n\t\t\tes: \"Griego\"\n\t\t}\n\t},\n\thebrew: {\n\t\tid: \"hebrew\",\n\t\tlabel: {\n\t\t\ten: \"Hebrew\",\n\t\t\tes: \"Hebreo\"\n\t\t}\n\t},\n\tjapanese: {\n\t\tid: \"japanese\",\n\t\tlabel: {\n\t\t\ten: \"Japanese\",\n\t\t\tes: \"Japonés\"\n\t\t}\n\t},\n\tkorean: {\n\t\tid: \"korean\",\n\t\tlabel: {\n\t\t\ten: \"Korean\",\n\t\t\tes: \"Coreano\"\n\t\t}\n\t},\n\tlao: {\n\t\tid: \"lao\",\n\t\tlabel: {\n\t\t\ten: \"Lao\",\n\t\t\tes: \"Lao\"\n\t\t}\n\t},\n\tnordic: {\n\t\tid: \"nordic\",\n\t\tlabel: {\n\t\t\ten: \"Nordic\",\n\t\t\tes: \"Nórdico\"\n\t\t}\n\t},\n\tsouthEasternEuropean: {\n\t\tid: \"southEasternEuropean\",\n\t\tlabel: {\n\t\t\ten: \"South-Eastern European\",\n\t\t\tes: \"Europeo sudoriental\"\n\t\t}\n\t},\n\tsouthernEuropean: {\n\t\tid: \"southernEuropean\",\n\t\tlabel: {\n\t\t\ten: \"Southern European\",\n\t\t\tes: \"Europeo meridional\"\n\t\t}\n\t},\n\tthai: {\n\t\tid: \"thai\",\n\t\tlabel: {\n\t\t\ten: \"Thai\",\n\t\t\tes: \"Tailandés\"\n\t\t}\n\t},\n\tturkish: {\n\t\tid: \"turkish\",\n\t\tlabel: {\n\t\t\ten: \"Turkish\",\n\t\t\tes: \"Turco\"\n\t\t}\n\t},\n\tunicode: {\n\t\tid: \"unicode\",\n\t\tlabel: {\n\t\t\ten: \"Unicode\",\n\t\t\tes: \"Unicode\"\n\t\t}\n\t},\n\tvietnamese: {\n\t\tid: \"vietnamese\",\n\t\tlabel: {\n\t\t\ten: \"Vietnamese\",\n\t\t\tes: \"Vietnamita\"\n\t\t}\n\t},\n\twestern: {\n\t\tid: \"western\",\n\t\tlabel: {\n\t\t\ten: \"Western\",\n\t\t\tes: \"Occidental\"\n\t\t}\n\t}\n}, Ee = {\n\t\"armscii-8\": {\n\t\tid: \"armscii-8\",\n\t\tgroupId: \"armenian\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"armscii8\"\n\t},\n\tascii: {\n\t\tid: \"ascii\",\n\t\tgroupId: null,\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1252\",\n\t\ticonvLiteDecoderId: \"ascii\"\n\t},\n\tbig5: {\n\t\tid: \"big5\",\n\t\tgroupId: \"chineseTraditional\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"big5\",\n\t\ticonvLiteDecoderId: \"big5hkscs\"\n\t},\n\t\"cesu-8\": {\n\t\tid: \"cesu-8\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cesu8\"\n\t},\n\tcp273: {\n\t\tid: \"cp273\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp424: {\n\t\tid: \"cp424\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp437: {\n\t\tid: \"cp437\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp437\"\n\t},\n\tcp500: {\n\t\tid: \"cp500\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp720: {\n\t\tid: \"cp720\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp720\"\n\t},\n\tcp737: {\n\t\tid: \"cp737\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp737\"\n\t},\n\tcp775: {\n\t\tid: \"cp775\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp775\"\n\t},\n\tcp808: {\n\t\tid: \"cp808\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp808\"\n\t},\n\tcp850: {\n\t\tid: \"cp850\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp850\"\n\t},\n\tcp852: {\n\t\tid: \"cp852\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp852\"\n\t},\n\tcp856: {\n\t\tid: \"cp856\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp856\"\n\t},\n\tcp857: {\n\t\tid: \"cp857\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp857\"\n\t},\n\tcp858: {\n\t\tid: \"cp858\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp858\"\n\t},\n\tcp860: {\n\t\tid: \"cp860\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp860\"\n\t},\n\tcp861: {\n\t\tid: \"cp861\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp861\"\n\t},\n\tcp862: {\n\t\tid: \"cp862\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp862\"\n\t},\n\tcp863: {\n\t\tid: \"cp863\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp863\"\n\t},\n\tcp864: {\n\t\tid: \"cp864\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp864\"\n\t},\n\tcp865: {\n\t\tid: \"cp865\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp865\"\n\t},\n\tcp869: {\n\t\tid: \"cp869\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp869\"\n\t},\n\tcp874: {\n\t\tid: \"cp874\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-874\",\n\t\ticonvLiteDecoderId: \"windows874\"\n\t},\n\tcp875: {\n\t\tid: \"cp875\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp922: {\n\t\tid: \"cp922\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp922\"\n\t},\n\tcp932: {\n\t\tid: \"cp932\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"shift_jis\",\n\t\ticonvLiteDecoderId: \"shiftjis\"\n\t},\n\tcp936: {\n\t\tid: \"cp936\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp936\"\n\t},\n\tcp949: {\n\t\tid: \"cp949\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"euc-kr\",\n\t\ticonvLiteDecoderId: \"cp949\"\n\t},\n\tcp950: {\n\t\tid: \"cp950\",\n\t\tgroupId: \"chineseTraditional\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp950\"\n\t},\n\tcp1006: {\n\t\tid: \"cp1006\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp1026: {\n\t\tid: \"cp1026\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp1046: {\n\t\tid: \"cp1046\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1046\"\n\t},\n\tcp1124: {\n\t\tid: \"cp1124\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1124\"\n\t},\n\tcp1125: {\n\t\tid: \"cp1125\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1125\"\n\t},\n\tcp1129: {\n\t\tid: \"cp1129\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1129\"\n\t},\n\tcp1133: {\n\t\tid: \"cp1133\",\n\t\tgroupId: \"lao\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1133\"\n\t},\n\tcp1140: {\n\t\tid: \"cp1140\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp1161: {\n\t\tid: \"cp1161\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1161\"\n\t},\n\tcp1162: {\n\t\tid: \"cp1162\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1162\"\n\t},\n\tcp1163: {\n\t\tid: \"cp1163\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1163\"\n\t},\n\tcp1258: {\n\t\tid: \"cp1258\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1258\",\n\t\ticonvLiteDecoderId: \"windows1258\"\n\t},\n\t\"euc-jp\": {\n\t\tid: \"euc-jp\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"euc-jp\",\n\t\ticonvLiteDecoderId: \"eucjp\"\n\t},\n\t\"euc-kr\": {\n\t\tid: \"euc-kr\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"euc-kr\",\n\t\ticonvLiteDecoderId: \"cp949\"\n\t},\n\tgb18030: {\n\t\tid: \"gb18030\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"gb18030\",\n\t\ticonvLiteDecoderId: \"gb18030\"\n\t},\n\tgbk: {\n\t\tid: \"gbk\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: \"gbk\",\n\t\ticonvLiteDecoderId: \"gbk\"\n\t},\n\t\"georgian-academy\": {\n\t\tid: \"georgian-academy\",\n\t\tgroupId: \"georgian\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"georgianacademy\"\n\t},\n\t\"georgian-ps\": {\n\t\tid: \"georgian-ps\",\n\t\tgroupId: \"georgian\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"georgianps\"\n\t},\n\t\"hp-roman8\": {\n\t\tid: \"hp-roman8\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"hproman8\"\n\t},\n\t\"hz-gb-2312\": {\n\t\tid: \"hz-gb-2312\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tibm855: {\n\t\tid: \"ibm855\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp855\"\n\t},\n\tibm866: {\n\t\tid: \"ibm866\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"ibm866\",\n\t\ticonvLiteDecoderId: \"cp866\"\n\t},\n\t\"iso-2022-jp\": {\n\t\tid: \"iso-2022-jp\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-2022-jp\",\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"iso-2022-kr\": {\n\t\tid: \"iso-2022-kr\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"iso-8859-1\": {\n\t\tid: \"iso-8859-1\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1252\",\n\t\ticonvLiteDecoderId: \"iso88591\"\n\t},\n\t\"iso-8859-2\": {\n\t\tid: \"iso-8859-2\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-2\",\n\t\ticonvLiteDecoderId: \"iso88592\"\n\t},\n\t\"iso-8859-5\": {\n\t\tid: \"iso-8859-5\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-5\",\n\t\ticonvLiteDecoderId: \"iso88595\"\n\t},\n\t\"iso-8859-6\": {\n\t\tid: \"iso-8859-6\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-6\",\n\t\ticonvLiteDecoderId: \"iso88596\"\n\t},\n\t\"iso-8859-7\": {\n\t\tid: \"iso-8859-7\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-7\",\n\t\ticonvLiteDecoderId: \"iso88597\"\n\t},\n\t\"iso-8859-8\": {\n\t\tid: \"iso-8859-8\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-8-i\",\n\t\ticonvLiteDecoderId: \"iso88598\"\n\t},\n\t\"iso-8859-9\": {\n\t\tid: \"iso-8859-9\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1254\",\n\t\ticonvLiteDecoderId: \"iso88599\"\n\t},\n\t\"iso-8859-11\": {\n\t\tid: \"iso-8859-11\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: \"windows-874\",\n\t\ticonvLiteDecoderId: \"iso885911\"\n\t},\n\t\"iso-8859-13\": {\n\t\tid: \"iso-8859-13\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-13\",\n\t\ticonvLiteDecoderId: \"iso885913\"\n\t},\n\t\"iso646-cn\": {\n\t\tid: \"iso646-cn\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"iso646cn\"\n\t},\n\t\"iso646-jp\": {\n\t\tid: \"iso646-jp\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"iso646jp\"\n\t},\n\tiso2022_jp_2004: {\n\t\tid: \"iso2022_jp_2004\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tiso2022_jp_ext: {\n\t\tid: \"iso2022_jp_ext\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"iso8859-3\": {\n\t\tid: \"iso8859-3\",\n\t\tgroupId: \"southernEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-3\",\n\t\ticonvLiteDecoderId: \"iso88593\"\n\t},\n\t\"iso8859-4\": {\n\t\tid: \"iso8859-4\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-4\",\n\t\ticonvLiteDecoderId: \"iso88594\"\n\t},\n\t\"iso8859-10\": {\n\t\tid: \"iso8859-10\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-10\",\n\t\ticonvLiteDecoderId: \"iso885910\"\n\t},\n\t\"iso8859-14\": {\n\t\tid: \"iso8859-14\",\n\t\tgroupId: \"celtic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-14\",\n\t\ticonvLiteDecoderId: \"iso885914\"\n\t},\n\t\"iso8859-15\": {\n\t\tid: \"iso8859-15\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-15\",\n\t\ticonvLiteDecoderId: \"iso885915\"\n\t},\n\t\"iso8859-16\": {\n\t\tid: \"iso8859-16\",\n\t\tgroupId: \"southEasternEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-16\",\n\t\ticonvLiteDecoderId: \"iso885916\"\n\t},\n\tjohab: {\n\t\tid: \"johab\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"koi8-r\": {\n\t\tid: \"koi8-r\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"koi8-r\",\n\t\ticonvLiteDecoderId: \"koi8r\"\n\t},\n\t\"koi8-ru\": {\n\t\tid: \"koi8-ru\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: \"koi8-u\",\n\t\ticonvLiteDecoderId: \"koi8ru\"\n\t},\n\t\"koi8-t\": {\n\t\tid: \"koi8-t\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"koi8t\"\n\t},\n\t\"koi8-u\": {\n\t\tid: \"koi8-u\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"koi8-u\",\n\t\ticonvLiteDecoderId: \"koi8u\"\n\t},\n\tkz1048: {\n\t\tid: \"kz1048\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"rk1048\"\n\t},\n\tmaccroatian: {\n\t\tid: \"maccroatian\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"maccroatian\"\n\t},\n\tmaccyrillic: {\n\t\tid: \"maccyrillic\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"x-mac-cyrillic\",\n\t\ticonvLiteDecoderId: \"maccyrillic\"\n\t},\n\tmacgreek: {\n\t\tid: \"macgreek\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macgreek\"\n\t},\n\tmaciceland: {\n\t\tid: \"maciceland\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"maciceland\"\n\t},\n\tmaclatin2: {\n\t\tid: \"maclatin2\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"maccenteuro\"\n\t},\n\tmacroman: {\n\t\tid: \"macroman\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"macintosh\",\n\t\ticonvLiteDecoderId: \"macroman\"\n\t},\n\tmacromania: {\n\t\tid: \"macromania\",\n\t\tgroupId: \"southEasternEuropean\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macromania\"\n\t},\n\tmacthai: {\n\t\tid: \"macthai\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macthai\"\n\t},\n\tmacturkish: {\n\t\tid: \"macturkish\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macturkish\"\n\t},\n\tmacukraine: {\n\t\tid: \"macukraine\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macukraine\"\n\t},\n\tmik: {\n\t\tid: \"mik\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"mik\"\n\t},\n\tptcp154: {\n\t\tid: \"ptcp154\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"pt154\"\n\t},\n\tshift_jis: {\n\t\tid: \"shift_jis\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"shift_jis\",\n\t\ticonvLiteDecoderId: \"shiftjis\"\n\t},\n\ttcvn: {\n\t\tid: \"tcvn\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"tcvn\"\n\t},\n\t\"tis-620\": {\n\t\tid: \"tis-620\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-874\",\n\t\ticonvLiteDecoderId: \"tis620\"\n\t},\n\t\"utf-7\": {\n\t\tid: \"utf-7\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf7\"\n\t},\n\t\"utf-8\": {\n\t\tid: \"utf-8\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-8\",\n\t\ticonvLiteDecoderId: \"utf-8\"\n\t},\n\t\"utf-8-sig\": {\n\t\tid: \"utf-8-sig\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-8\",\n\t\ticonvLiteDecoderId: \"utf-8\"\n\t},\n\t\"utf-16\": {\n\t\tid: \"utf-16\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf16\"\n\t},\n\t\"utf-16-be\": {\n\t\tid: \"utf-16-be\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-16be\",\n\t\ticonvLiteDecoderId: \"utf16be\"\n\t},\n\t\"utf-16-le\": {\n\t\tid: \"utf-16-le\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-16le\",\n\t\ticonvLiteDecoderId: \"utf16le\"\n\t},\n\t\"utf-32\": {\n\t\tid: \"utf-32\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf32\"\n\t},\n\t\"utf-32-be\": {\n\t\tid: \"utf-32-be\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf32be\"\n\t},\n\t\"utf-32-le\": {\n\t\tid: \"utf-32-le\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf32le\"\n\t},\n\tviscii: {\n\t\tid: \"viscii\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"viscii\"\n\t},\n\t\"windows-1250\": {\n\t\tid: \"windows-1250\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1250\",\n\t\ticonvLiteDecoderId: \"windows1250\"\n\t},\n\t\"windows-1251\": {\n\t\tid: \"windows-1251\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1251\",\n\t\ticonvLiteDecoderId: \"windows1251\"\n\t},\n\t\"windows-1252\": {\n\t\tid: \"windows-1252\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1252\",\n\t\ticonvLiteDecoderId: \"windows1252\"\n\t},\n\t\"windows-1253\": {\n\t\tid: \"windows-1253\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1253\",\n\t\ticonvLiteDecoderId: \"windows1253\"\n\t},\n\t\"windows-1254\": {\n\t\tid: \"windows-1254\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1254\",\n\t\ticonvLiteDecoderId: \"windows1254\"\n\t},\n\t\"windows-1255\": {\n\t\tid: \"windows-1255\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1255\",\n\t\ticonvLiteDecoderId: \"windows1255\"\n\t},\n\t\"windows-1256\": {\n\t\tid: \"windows-1256\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1256\",\n\t\ticonvLiteDecoderId: \"windows1256\"\n\t},\n\t\"windows-1257\": {\n\t\tid: \"windows-1257\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1257\",\n\t\ticonvLiteDecoderId: \"windows1257\"\n\t}\n}, De = Te, k = Ee;\nfunction A(e) {\n\treturn Object.hasOwn(k, e);\n}\nfunction j(e) {\n\treturn A(e) ? k[e].textDecoderId ?? e : e;\n}\nfunction Oe(e = \"en\") {\n\treturn Array.from(Object.values(k), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {\n\t\tlet o = t == null ? \"\" : ke(t, e);\n\t\treturn {\n\t\t\tid: r,\n\t\t\tgroupLabel: o,\n\t\t\tlabel: o ? `${o} (${r})` : r,\n\t\t\tisDetectable: i,\n\t\t\tisDecodable: a != null,\n\t\t\ttextDecoderId: a,\n\t\t\ticonvLiteDecoderId: n\n\t\t};\n\t}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));\n}\nfunction ke(e, t) {\n\tlet n = De[e].label;\n\treturn n[t] ?? n.en ?? e;\n}\n// src/errors/index.ts\nvar M = 2048, N = \"[REDACTED]\", Ae = 10, je = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Me = [\n\t[/\\b(Bearer|Basic) +[\\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],\n\t[/(?<![\\w-])([\\w-]+)([\"']?[ \\t]*[:=][ \\t]*[\"']?)([^\\s\"'&,;}?#]+)/g, (e, t, n, r) => je.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],\n\t[/\\beyJ[\\w-]+\\.[\\w-]+\\.[\\w-]*/g, () => N],\n\t[/\\b(?:sk-|xaat-|xapt-|sl\\.)[\\w-]{16,}/g, () => N],\n\t[/(?<![\\w.+-])[\\w.+-]+@[\\w-]+\\.[\\w.-]+/g, () => N]\n], P = class extends Error {\n\tdata;\n\tlocator;\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, r), this.name = \"DPUseError\", this.data = n, this.locator = t;\n\t}\n}, F = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"AppError\";\n\t}\n}, Ne = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"APIError\";\n\t}\n}, Pe = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"EngineError\";\n\t}\n}, Fe = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"ConnectorError\";\n\t}\n}, I = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"FetchError\";\n\t}\n};\nasync function Ie(e, t, n) {\n\tlet r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : \"\"}' received.`, a;\n\ttry {\n\t\ta = await e.text();\n\t} catch (e) {\n\t\ta = `<body unavailable: ${L(e).message}>`;\n\t}\n\treturn new I(i, n, { body: We(a) });\n}\nfunction Le(e) {\n\treturn e.map((e) => e.message).join(\" \");\n}\nfunction Re(e) {\n\ttry {\n\t\te();\n\t} catch {}\n}\nfunction L(e) {\n\tif (e instanceof Error) return e;\n\tif (typeof e == \"string\") return Error(e);\n\tif (typeof e == \"number\" || typeof e == \"boolean\" || typeof e == \"bigint\") return Error(String(e));\n\tif (typeof e == \"symbol\") return Error(e.description ?? \"Unknown error\");\n\tif (typeof e == \"object\") try {\n\t\treturn Error(JSON.stringify(e));\n\t} catch {\n\t\treturn /* @__PURE__ */ Error(\"Unknown error\");\n\t}\n\treturn /* @__PURE__ */ Error(\"Unknown error\");\n}\nfunction ze(e) {\n\tlet t = /* @__PURE__ */ new Set(), n = [], r = L(e);\n\tfor (; r != null && !t.has(r);) {\n\t\tt.add(r);\n\t\tlet [e, i] = Ge(r), a = Ue(e);\n\t\t/(?:\\.{3}|[.!?])$/.test(a.message) || (a.message += \".\"), n.push(a), r = i;\n\t}\n\treturn n;\n}\nfunction Be(e) {\n\tlet t;\n\tfor (let n of e.toReversed()) {\n\t\tlet e = He(n, t);\n\t\tn.stack !== void 0 && (e.stack = n.stack), t = e;\n\t}\n\treturn t ?? /* @__PURE__ */ Error(\"No error to unserialise.\");\n}\nfunction Ve(e) {\n\tlet t;\n\ttry {\n\t\tt = JSON.stringify(e);\n\t} catch {\n\t\tt = typeof e == \"symbol\" ? e.description ?? \"Unknown error\" : typeof e == \"bigint\" ? e.toString() : \"Unknown error\";\n\t}\n\treturn t === \"\" && (t = \"Unknown error\"), t;\n}\nfunction He(e, t) {\n\tswitch (e.name) {\n\t\tcase \"APIError\": return new Ne(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"AppError\": return new F(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"ConnectorError\": return new Fe(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"EngineError\": return new Pe(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"FetchError\": return new I(e.message, e.locator, e.data, { cause: t });\n\t\tdefault: {\n\t\t\tlet n = e.name;\n\t\t\treturn new class extends Error {\n\t\t\t\tname = n;\n\t\t\t}(e.message, { cause: t });\n\t\t}\n\t}\n}\nfunction Ue(e) {\n\tlet { data: t, message: n, stack: r } = e;\n\treturn {\n\t\t...e,\n\t\tdata: t === void 0 ? void 0 : z(t, /* @__PURE__ */ new WeakSet(), 0),\n\t\tmessage: R(n),\n\t\tstack: r === void 0 ? void 0 : R(r)\n\t};\n}\nfunction R(e) {\n\tlet t = e;\n\tfor (let [e, n] of Me) t = t.replaceAll(e, (e, ...t) => n(e, ...t));\n\treturn t;\n}\nfunction z(e, t, n) {\n\treturn typeof e == \"string\" ? R(e) : typeof e != \"object\" || !e ? e : n >= Ae ? 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 && je.test(e) ? N : z(r, t, n + 1)])));\n}\nfunction We(e) {\n\tif (e != null && e !== \"\") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;\n}\nfunction Ge(e) {\n\tlet t = e.cause == null ? null : L(e.cause);\n\tif (e instanceof P) return [{\n\t\tdata: e.data,\n\t\tlocator: e.locator,\n\t\tmessage: e.message,\n\t\tname: e.name,\n\t\tstack: e.stack\n\t}, t];\n\tlet n = Object.fromEntries(Object.entries(e).filter(([e]) => e !== \"cause\"));\n\treturn e.name ? [{\n\t\tdata: n,\n\t\tlocator: \"\",\n\t\tmessage: e.message,\n\t\tname: e.name,\n\t\tstack: e.stack\n\t}, t] : [{\n\t\tdata: n,\n\t\tlocator: \"\",\n\t\tmessage: Ve(e),\n\t\tname: \"Error\",\n\t\tstack: void 0\n\t}, null];\n}\nvar Ke = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ ne(/* @__PURE__ */ h(T([\n\t\"arrow\",\n\t\"avro\",\n\t\"dtv\",\n\t\"json\",\n\t\"jsonl\",\n\t\"markdown\",\n\t\"ods\",\n\t\"parquet\",\n\t\"sav\",\n\t\"sqlite\",\n\t\"xlsx\",\n\t\"xml\"\n])), /* @__PURE__ */ f(1)) }), qe = /* @__PURE__ */ h(/* @__PURE__ */ C()), Je = /* @__PURE__ */ S({\n\t...O,\n\ttypeId: /* @__PURE__ */ _(\"tool\"),\n\tactionNames: /* @__PURE__ */ b(qe),\n\tparser: /* @__PURE__ */ b(Ke)\n});\n// src/component/module/tool/delimitedText.ts\nasync function Ye(e, t, n) {\n\tlet r = Xe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ze(e, t.valueDelimiterIds, t.isComplete, n);\n\treturn {\n\t\tissues: i,\n\t\tparsedRecords: a,\n\t\trecordDelimiterId: r,\n\t\tvalueDelimiterId: o\n\t};\n}\nfunction Xe(e) {\n\tlet t = (e.match(/\\r\\n/g) ?? []).length, n = (e.match(/(?<!\\r)\\n/g) ?? []).length, r = (e.match(/\\r(?!\\n)/g) ?? []).length;\n\treturn t >= n && t >= r ? \"\\r\\n\" : n >= t && n >= r ? \"\\n\" : r >= t && r >= n ? \"\\r\" : \"\\n\";\n}\nasync function Ze(e, t, n, r) {\n\tlet i, a, o, s = [], c, l = !1;\n\tfor (let u of t) {\n\t\tlet { issues: t, records: d } = await r(e, u, n);\n\t\tif (t.length > 0) {\n\t\t\tc = Qe(c, {\n\t\t\t\tdelimiter: u,\n\t\t\t\tissues: t,\n\t\t\t\trecords: d\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (l = !0, d.length === 0) continue;\n\t\tlet { averageValueCount: f, sumOfValueCountDiffs: p } = $e(d);\n\t\t(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);\n\t}\n\tif (!l && c != null) {\n\t\tlet { delimiter: e, issues: t, records: n } = c;\n\t\treturn {\n\t\t\tissues: t,\n\t\t\tparsedRecords: n,\n\t\t\tvalueDelimiterId: B(n) ? e : void 0\n\t\t};\n\t}\n\treturn {\n\t\tissues: [],\n\t\tparsedRecords: s,\n\t\tvalueDelimiterId: i != null && B(s) ? i : void 0\n\t};\n}\nfunction Qe(e, t) {\n\treturn e == null || t.issues.length < e.issues.length ? t : e;\n}\nfunction $e(e) {\n\tlet t = 0, n = 0, r;\n\tfor (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;\n\treturn {\n\t\taverageValueCount: t / e.length,\n\t\tsumOfValueCountDiffs: n\n\t};\n}\nfunction B(e) {\n\tlet t = /* @__PURE__ */ new Map();\n\tfor (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);\n\tlet [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];\n\treturn n > 1 && r * 2 > e.length;\n}\n// src/component/module/tool/index.ts\nvar et = \"https://engine-eu.dpuse.app/tools\", tt = { dtv: \"dpuse-tool-rust-csv-core-parser\" }, V = \"dpuse-tool-\";\nfunction H(e, t) {\n\treturn e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, \"en\"));\n}\nfunction U(e, t, n) {\n\tlet r = H(e, t), [i] = r;\n\tif (i === void 0) {\n\t\tlet n = {\n\t\t\tavailableToolIds: e.map((e) => e.id),\n\t\t\tdataFormatId: t\n\t\t};\n\t\tthrow new F(`No tool reads the '${t}' data format.`, \"dpuse-shared.component.module.tool.resolveParserToolConfig\", n);\n\t}\n\tlet a = tt[t];\n\treturn r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;\n}\nasync function W(e, t) {\n\tlet n = `${V}${t}`, r = e.find((e) => e.id === n);\n\tif (!r) {\n\t\tlet r = {\n\t\t\tavailableToolIds: e.map((e) => e.id),\n\t\t\ttoolName: n\n\t\t};\n\t\tthrow new F(`Tool '${t}' not found.`, \"dpuse-shared.component.module.tool.loadTool\", r);\n\t}\n\tlet i = `${et}/${t}_v${r.version}/${n}.es.js`;\n\ttry {\n\t\treturn new (await (import(\n\t\t\t/* @vite-ignore */\n\t\t\ti\n))).Tool();\n\t} catch (e) {\n\t\tlet t = {\n\t\t\ttoolName: n,\n\t\t\turl: i,\n\t\t\tversion: r.version\n\t\t};\n\t\tthrow new F(`Failed to load tool '${n}' v${r.version}.`, \"dpuse-shared.component.module.tool.loadTool\", t, { cause: e });\n\t}\n}\n// src/component/module/connector/objectParsing.ts\nvar nt = \"\\n\", G = \",\", rt = 13, K = 10, it = 34, q = 1048576;\nasync function at(e) {\n\tlet { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o, valueDelimiterId: s } = e, { dataFormatId: c, text: l } = n, u = n.bytes.length;\n\tif (u === 0) return {\n\t\tcontentAuditConfig: J({\n\t\t\tasAt: t,\n\t\t\tcolumns: [],\n\t\t\tisComplete: !0,\n\t\t\trecordCount: 0,\n\t\t\tsize: u,\n\t\t\tstartedAt: a\n\t\t}),\n\t\tsampleConfig: {\n\t\t\tissues: [{\n\t\t\t\tid: \"empty\",\n\t\t\t\tlineNumber: void 0,\n\t\t\t\tmessage: \"The file is empty.\",\n\t\t\t\tseverityId: \"info\"\n\t\t\t}],\n\t\t\tparsedRecords: [],\n\t\t\tsize: 0,\n\t\t\ttext: void 0\n\t\t},\n\t\treadingConfig: {\n\t\t\tdataFormatId: \"dtv\",\n\t\t\tencodingConfidenceLevel: void 0,\n\t\t\tencodingId: void 0,\n\t\t\tfileType: void 0,\n\t\t\thasHeaders: !1,\n\t\t\trecordDelimiterId: nt,\n\t\t\tvalueDelimiterId: G\n\t\t}\n\t};\n\tif (c == null || l == null || H(o, c).length === 0) return {\n\t\tcontentAuditConfig: J({\n\t\t\tasAt: t,\n\t\t\tcolumns: [],\n\t\t\tisComplete: n.isComplete,\n\t\t\trecordCount: 0,\n\t\t\tsize: u,\n\t\t\tstartedAt: a\n\t\t}),\n\t\tsampleConfig: {\n\t\t\tissues: [],\n\t\t\tparsedRecords: [],\n\t\t\tsize: u,\n\t\t\ttext: l\n\t\t},\n\t\treadingConfig: {\n\t\t\tdataFormatId: c ?? \"unknown\",\n\t\t\tencodingConfidenceLevel: n.encodingConfidenceLevel,\n\t\t\tencodingId: n.encodingId,\n\t\t\tfileType: n.fileTypeConfig,\n\t\t\thasHeaders: void 0,\n\t\t\trecordDelimiterId: void 0,\n\t\t\tvalueDelimiterId: void 0\n\t\t}\n\t};\n\tlet { parser: d, parserId: f } = await Y(o, c, i), p = s == null ? D.map(({ id: e }) => e) : [s], m = await d.parseText(l, {\n\t\tdataFormatId: c,\n\t\tisComplete: n.isComplete,\n\t\tvalueDelimiterIds: p\n\t}), h = c === \"dtv\", g = h && s == null && m.valueDelimiterId == null ? await d.parseText(l, {\n\t\tdataFormatId: c,\n\t\tisComplete: n.isComplete,\n\t\tvalueDelimiterIds: [G]\n\t}) : m, _ = r(g.parsedRecords);\n\treturn {\n\t\tcontentAuditConfig: J({\n\t\t\tasAt: t,\n\t\t\tcolumns: _.columnConfigs,\n\t\t\tisComplete: n.isComplete,\n\t\t\trecordCount: Math.max(0, g.parsedRecords.length - +!!_.hasHeaders),\n\t\t\tsize: u,\n\t\t\tstartedAt: a\n\t\t}),\n\t\tsampleConfig: {\n\t\t\tissues: g.issues,\n\t\t\tparsedRecords: g.parsedRecords,\n\t\t\tsize: u,\n\t\t\ttext: l\n\t\t},\n\t\treadingConfig: {\n\t\t\tdataFormatId: c,\n\t\t\tencodingConfidenceLevel: n.encodingConfidenceLevel,\n\t\t\tencodingId: n.encodingId,\n\t\t\tfileType: n.fileTypeConfig,\n\t\t\thasHeaders: _.hasHeaders,\n\t\t\tparserId: f,\n\t\t\trecordDelimiterId: g.recordDelimiterId,\n\t\t\tvalueDelimiterId: h ? s ?? g.valueDelimiterId ?? G : g.valueDelimiterId\n\t\t}\n\t};\n}\nasync function ot(e) {\n\tlet { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);\n\treturn await o.parseStream(i, {\n\t\tabortSignal: r,\n\t\tchunkSize: n.chunkSize,\n\t\tdataFormatId: n.dataFormatId,\n\t\tencodingId: n.encodingId,\n\t\tvalueDelimiterId: n.valueDelimiterId\n\t}, t);\n}\nasync function st(e) {\n\tlet { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await Y(o, r.dataFormatId, r.parserId), d = ut(a), f = ct(d.stream, r), p = await u.parseStream(f.stream, {\n\t\tabortSignal: i,\n\t\tchunkSize: r.chunkSize,\n\t\tdataFormatId: r.dataFormatId,\n\t\tencodingId: r.encodingId,\n\t\tvalueDelimiterId: r.valueDelimiterId\n\t}, (e, t) => {\n\t\tl.auditRecords(t), n(t.length, f.byteCount());\n\t}), { columnConfigs: m, hasHeaders: h } = l.completeAudit();\n\treturn {\n\t\tcontentAuditConfig: {\n\t\t\tasAt: s,\n\t\t\tbyteCount: f.byteCount(),\n\t\t\tcolumns: m,\n\t\t\tcommentLineCount: p.commentLineCount,\n\t\t\tduration: performance.now() - c,\n\t\t\temptyLineCount: p.emptyLineCount,\n\t\t\tinvalidFieldLengthCount: p.nonUniformRecordCount,\n\t\t\tisComplete: f.isComplete(),\n\t\t\tlineCount: p.lineCount,\n\t\t\trecordCount: Math.max(0, p.recordCount - +!!h),\n\t\t\tsourceWaitDuration: d.waitDuration()\n\t\t},\n\t\thasHeaders: h\n\t};\n}\nfunction J(e) {\n\tlet { asAt: t, columns: n, isComplete: r, recordCount: i, size: a, startedAt: o } = e;\n\treturn {\n\t\tasAt: t,\n\t\tbyteCount: a,\n\t\tcolumns: n,\n\t\tcommentLineCount: void 0,\n\t\tduration: performance.now() - o,\n\t\temptyLineCount: void 0,\n\t\tinvalidFieldLengthCount: void 0,\n\t\tisComplete: r,\n\t\tlineCount: void 0,\n\t\trecordCount: i,\n\t\tsourceWaitDuration: void 0\n\t};\n}\nfunction ct(e, t) {\n\tlet n = e.getReader(), r = lt(t.encodingId), i = 0, a = !1, o;\n\treturn {\n\t\tbyteCount: () => i,\n\t\tisComplete: () => a,\n\t\tstream: new ReadableStream({\n\t\t\tasync pull(e) {\n\t\t\t\tlet s = o;\n\t\t\t\tif (s == null) {\n\t\t\t\t\tlet t = await n.read();\n\t\t\t\t\tif (t.done) {\n\t\t\t\t\t\ta = !0, e.close();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\ts = t.value;\n\t\t\t\t}\n\t\t\t\tlet c = s.subarray(0, q);\n\t\t\t\to = s.length > q ? s.subarray(q) : void 0;\n\t\t\t\tlet l = t.stopSignal?.aborted === !0 ? i : t.byteLimit ?? Infinity, u = r(c, i, l - i);\n\t\t\t\tu == null ? (i += c.length, e.enqueue(c)) : (i += u, o = void 0, e.enqueue(c.subarray(0, u)), e.close(), await n.cancel());\n\t\t\t},\n\t\t\tcancel(e) {\n\t\t\t\treturn n.cancel(e);\n\t\t\t}\n\t\t}, { highWaterMark: 0 })\n\t};\n}\nfunction lt(e) {\n\tlet t = j(e), n = t.startsWith(\"utf-16\"), r = n ? 2 : 1, i = +(t === \"utf-16be\"), a = !1;\n\treturn (e, t, o) => {\n\t\tfor (let s = 0; s < e.length; s++) {\n\t\t\tlet c = e[s];\n\t\t\tif ((c === it || c === K || c === rt) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {\n\t\t\t\tif (c === it) a = !a;\n\t\t\t\telse if (!a && s >= o && (c === K || e[s + r] !== K)) return s + r - i;\n\t\t\t}\n\t\t}\n\t};\n}\nfunction ut(e) {\n\tlet t = e.getReader(), n = 0;\n\treturn {\n\t\tstream: new ReadableStream({\n\t\t\tasync pull(e) {\n\t\t\t\tlet r = performance.now(), i = await t.read();\n\t\t\t\tn += performance.now() - r, i.done ? e.close() : e.enqueue(i.value);\n\t\t\t},\n\t\t\tcancel(e) {\n\t\t\t\treturn t.cancel(e);\n\t\t\t}\n\t\t}, { highWaterMark: 0 }),\n\t\twaitDuration: () => n\n\t};\n}\nasync function Y(e, t, n) {\n\tlet r = U(e, t, n);\n\treturn {\n\t\tparser: await W(e, r.id.slice(V.length)),\n\t\tparserId: r.id\n\t};\n}\n// src/component/module/connector/index.ts\nvar dt = [\n\t{\n\t\tid: \"application\",\n\t\tlabel: {\n\t\t\ten: \"Application\",\n\t\t\tes: \"Aplicación\"\n\t\t}\n\t},\n\t{\n\t\tid: \"curatedDataset\",\n\t\tlabel: {\n\t\t\ten: \"Curated Dataset\",\n\t\t\tes: \"Conjunto de Datos Curado\"\n\t\t}\n\t},\n\t{\n\t\tid: \"database\",\n\t\tlabel: {\n\t\t\ten: \"Database\",\n\t\t\tes: \"Base de Datos\"\n\t\t}\n\t},\n\t{\n\t\tid: \"fileStore\",\n\t\tlabel: {\n\t\t\ten: \"File Store\",\n\t\t\tes: \"Almacén de Archivos\"\n\t\t}\n\t}\n], ft = [\n\t{\n\t\tid: \"apiEndpoint\",\n\t\tlabel: {\n\t\t\ten: \"API Endpoint\",\n\t\t\tes: \"Endpoint de API\"\n\t\t}\n\t},\n\t{\n\t\tid: \"file\",\n\t\tlabel: {\n\t\t\ten: \"File\",\n\t\t\tes: \"Archivo\"\n\t\t}\n\t},\n\t{\n\t\tid: \"table\",\n\t\tlabel: {\n\t\t\ten: \"Table\",\n\t\t\tes: \"Tabla\"\n\t\t}\n\t}\n], pt = {\n\tabortOperation: \"Abort Operation\",\n\tauditObjectContent: \"Audit Object Content\",\n\tcloseStore: \"Close Store\",\n\tcreateObject: \"Create Object\",\n\tdescribeConnection: \"Describe Connection\",\n\tdropObject: \"Drop Object\",\n\tfindObject: \"Find Object\",\n\tgetInfo: \"Get Info\",\n\tgetReadableStream: \"Get Readable Stream\",\n\tgetRecord: \"Get Record\",\n\tlistNodes: \"List Nodes\",\n\tloadObjectRecords: \"Load Object Records\",\n\topenStore: \"Open Store\",\n\tpreviewObject: \"Preview Object\",\n\tqueryRecords: \"Query Records\",\n\tremoveRecords: \"Remove Records\",\n\tretrieveChunks: \"Retrieve Chunks\",\n\tretrieveRecords: \"Retrieve Records\",\n\tupsertRecords: \"Upsert Records\"\n}, mt = [\n\t{\n\t\tid: \"bidirectional\",\n\t\tlabel: {\n\t\t\ten: \"Bidirectional\",\n\t\t\tes: \"Bidireccional\"\n\t\t}\n\t},\n\t{\n\t\tid: \"destination\",\n\t\tlabel: {\n\t\t\ten: \"Destination\",\n\t\t\tes: \"Destino\"\n\t\t}\n\t},\n\t{\n\t\tid: \"source\",\n\t\tlabel: {\n\t\t\ten: \"Source\",\n\t\t\tes: \"Origen\"\n\t\t}\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tlabel: {\n\t\t\ten: \"Unknown\",\n\t\t\tes: \"Desconocido\"\n\t\t}\n\t}\n], ht = /* @__PURE__ */ new Set([\n\t\"createObject\",\n\t\"dropObject\",\n\t\"loadObjectRecords\",\n\t\"removeRecords\",\n\t\"upsertRecords\"\n]), gt = /* @__PURE__ */ new Set([\n\t\"auditObjectContent\",\n\t\"findObject\",\n\t\"getInfo\",\n\t\"getReadableStream\",\n\t\"getRecord\",\n\t\"listNodes\",\n\t\"previewObject\",\n\t\"queryRecords\",\n\t\"retrieveChunks\",\n\t\"retrieveRecords\"\n]);\nfunction _t(e) {\n\tlet t = !1, n = !1;\n\tfor (let r of e) gt.has(r) && (t = !0), ht.has(r) && (n = !0);\n\treturn t && n ? \"bidirectional\" : t ? \"source\" : n ? \"destination\" : \"unknown\";\n}\nvar vt = (e, t = \"en\") => {\n\tlet i = dt.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n}, yt = (e, t = \"en\") => {\n\tlet i = ft.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n}, bt = (e, t = \"en\") => {\n\tlet i = mt.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n};\nfunction xt(e) {\n\tlet t = new Set(e), n = \"|Action|Supported|\\n\";\n\tn += \"|:----|:-------:|\\n\";\n\tfor (let e of Object.keys(pt)) n += `| ${pt[e]} | ${t.has(e) ? \"✓\" : \"\"} |\\n`;\n\treturn n;\n}\n// src/component/module/cookbook/cookbookConfig.schema.ts\nvar St = T([\"list\"]), Ct = /* @__PURE__ */ S({\n\t...O,\n\ttypeId: /* @__PURE__ */ _(\"cookbook\"),\n\tactionNames: /* @__PURE__ */ h(St),\n\trecipes: /* @__PURE__ */ h(E)\n}), wt = T([\n\t\"list\",\n\t\"render\",\n\t\"setColorMode\"\n]), Tt = /* @__PURE__ */ S({\n\t...O,\n\ttypeId: /* @__PURE__ */ _(\"presenter\"),\n\tactionNames: /* @__PURE__ */ h(wt),\n\tpresentations: /* @__PURE__ */ h(E)\n}), Et = \"https://engine-eu.dpuse.app/presenters\";\nasync function Dt(e, t, n, r) {\n\tlet i = e.id, a = `${Et}/${i.split(\"-\").slice(2).join(\"-\")}_v${e.version}/${i}.es.js`;\n\ttry {\n\t\treturn new (await (import(\n\t\t\t/* @vite-ignore */\n\t\t\ta\n))).Presenter(t, n, r);\n\t} catch (t) {\n\t\tlet n = {\n\t\t\tpresenterName: i,\n\t\t\turl: a,\n\t\t\tversion: e.version\n\t\t};\n\t\tthrow new F(`Failed to load presenter '${i}' v${e.version}.`, \"dpuse-shared.component.module.presenter.loadPresenter\", n, { cause: t });\n\t}\n}\n// src/locale/index.ts\nfunction Ot(e, t) {\n\treturn {\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\",\n\t\tverb: e.verb?.[t] ?? void 0\n\t};\n}\nfunction kt(e, t, n = !1) {\n\tlet r = e.map((e) => ({\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\",\n\t\tverb: e.verb?.[t] ?? void 0\n\t}));\n\treturn n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;\n}\nfunction At(e, t) {\n\treturn {\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\"\n\t};\n}\n// src/utilities/index.ts\nvar jt = /* @__PURE__ */ new Map([\n\t[\"arrow\", \"application/vnd.apache.arrow.file\"],\n\t[\"avro\", \"application/vnd.apache.avro\"],\n\t[\"bin\", \"application/octet-stream\"],\n\t[\"cfb\", \"application/x-cfb\"],\n\t[\"csv\", \"text/csv\"],\n\t[\"dat\", \"application/octet-stream\"],\n\t[\"json\", \"application/json\"],\n\t[\"jsonl\", \"application/jsonl\"],\n\t[\"md\", \"text/markdown\"],\n\t[\"ods\", \"application/vnd.oasis.opendocument.spreadsheet\"],\n\t[\"parquet\", \"application/vnd.apache.parquet\"],\n\t[\"sav\", \"application/x-spss-sav\"],\n\t[\"sqlite\", \"application/vnd.sqlite3\"],\n\t[\"tab\", \"text/tab-separated-values\"],\n\t[\"tsv\", \"text/tab-separated-values\"],\n\t[\"txt\", \"text/plain\"],\n\t[\"xls\", \"application/vnd.ms-excel\"],\n\t[\"xlsm\", \"application/vnd.ms-excel.sheet.macroEnabled.12\"],\n\t[\"xlsx\", \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"],\n\t[\"xml\", \"application/xml\"]\n]), X = \"en\", Z = [\n\t[\"day\", 864e5],\n\t[\"hour\", 36e5],\n\t[\"minute\", 6e4],\n\t[\"second\", 1e3],\n\t[\"millisecond\", 1]\n], Mt = [\n\t[\"byte\", 1],\n\t[\"kilobyte\", 1024],\n\t[\"megabyte\", 1048576],\n\t[\"gigabyte\", 1073741824],\n\t[\"terabyte\", 1099511627776]\n], Q = /* @__PURE__ */ new Map(), Nt = /* @__PURE__ */ new Map();\nfunction Pt(e, t = 2, n = t, r = X) {\n\treturn e == null ? \"\" : $(r, {\n\t\tlocaleMatcher: \"best fit\",\n\t\tmaximumFractionDigits: t,\n\t\tminimumFractionDigits: Math.min(n, t),\n\t\tminimumIntegerDigits: 1,\n\t\tstyle: \"decimal\",\n\t\tuseGrouping: !0\n\t}).format(e);\n}\nfunction Ft(e, t = X) {\n\treturn Pt(e, 0, 0, t);\n}\nfunction It(e, t = 1, n = X) {\n\treturn e == null || !Number.isFinite(e) ? \"\" : $(n, {\n\t\tmaximumFractionDigits: t,\n\t\tnotation: \"compact\"\n\t}).format(e);\n}\nfunction Lt(e, t = 1, n = X) {\n\tif (e == null || !Number.isFinite(e)) return \"\";\n\tlet [r, i] = Mt.find(([, n]) => Kt(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? [\"terabyte\", 1099511627776];\n\treturn $(n, {\n\t\tmaximumFractionDigits: i === 1 ? 0 : t,\n\t\tstyle: \"unit\",\n\t\tunit: r,\n\t\tunitDisplay: i === 1 ? \"long\" : \"short\"\n\t}).format(e / i);\n}\nfunction Rt(e, t = \"millisecond\", n = X) {\n\tif (e == null || !Number.isFinite(e)) return \"\";\n\tlet r = Math.round(Math.abs(e)), i = Z.findIndex(([, e]) => r >= e), a = i === -1 ? Z.length - 1 : i, o = Z.findIndex(([e]) => e === t), s = Z.slice(a, Math.max(o, a) + 1), c = [];\n\tfor (let [t, i] of s) {\n\t\tlet a = Math.floor(r / i);\n\t\tif (a === 0 && c.length > 0) continue;\n\t\tr -= a * i;\n\t\tlet o = c.length === 0 && e < 0 && a > 0 ? -a : a;\n\t\tc.push($(n, {\n\t\t\tstyle: \"unit\",\n\t\t\tunit: t,\n\t\t\tunitDisplay: \"short\"\n\t\t}).format(o));\n\t}\n\treturn Gt(n).format(c);\n}\nfunction zt(e) {\n\tif (!e) return;\n\tlet t = Wt(e);\n\treturn t === void 0 ? e : e.slice(0, t);\n}\nfunction Bt(e) {\n\tif (!e) return;\n\tlet t = Wt(e);\n\treturn t === void 0 ? void 0 : e.slice(t + 1);\n}\nfunction Vt(e) {\n\treturn e != null && jt.has(e.toLowerCase());\n}\nfunction Ht(e) {\n\treturn (e == null ? void 0 : jt.get(e.toLowerCase())) ?? \"application/octet-stream\";\n}\nfunction Ut(e) {\n\tswitch (e) {\n\t\tcase \"Edm.Boolean\": return \"boolean\";\n\t\tcase \"Edm.Byte\":\n\t\tcase \"Edm.Int16\":\n\t\tcase \"Edm.Int32\":\n\t\tcase \"Edm.Int64\":\n\t\tcase \"Edm.SByte\": return \"wholeNumber\";\n\t\tcase \"Edm.Decimal\":\n\t\tcase \"Edm.Double\":\n\t\tcase \"Edm.Single\": return \"decimalNumber\";\n\t\tcase \"Edm.Date\":\n\t\tcase \"Edm.DateTime\":\n\t\tcase \"Edm.DateTimeOffset\": return \"moment\";\n\t\tcase \"Edm.Time\":\n\t\tcase \"Edm.TimeOfDay\": return \"momentTime\";\n\t\tcase \"Edm.Guid\":\n\t\tcase \"Edm.String\": return \"string\";\n\t\tdefault: return \"unknown\";\n\t}\n}\nfunction Wt(e) {\n\tlet t = e.lastIndexOf(\"/\") + 1, n = e.lastIndexOf(\".\");\n\treturn n > t && n < e.length - 1 ? n : void 0;\n}\nfunction Gt(e) {\n\tlet t = Q.get(e);\n\treturn t || (t = new Intl.ListFormat(e, {\n\t\tstyle: \"narrow\",\n\t\ttype: \"unit\"\n\t}), Q.set(e, t)), t;\n}\nfunction $(e, t) {\n\tlet n = `${e}|${JSON.stringify(t)}`, r = Nt.get(n);\n\treturn r || (r = new Intl.NumberFormat(e, t), Nt.set(n, r)), r;\n}\nfunction Kt(e, t) {\n\tlet n = 10 ** t;\n\treturn Math.round(e * n) / n;\n}\nexport { Ne as APIError, F as AppError, Fe as ConnectorError, me as DATA_FORMAT_CONFIGS, he as DATA_TYPE_CONFIGS, pe as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, De as ENCODING_GROUP_CONFIG_MAP, k as ENCODING_TYPE_CONFIG_MAP, Pe as EngineError, I as FetchError, t as SUPPORTED_LANGUAGES, V as TOOL_NAME_PREFIX, D as VALUE_DELIMITER_CONFIGS, st as auditObjectContentWithParser, Ie as buildFetchError, at as buildPreviewObjectResult, ue as componentInstanceConfigSchema, Le as concatenateSerialisedErrorMessages, we as connectorConfigSchema, vt as constructConnectorCategoryConfig, yt as constructConnectorItemTypeConfig, bt as constructConnectorUsageConfig, Ut as convertODataTypeIdToUsageTypeId, Ct as cookbookConfigSchema, n as createLabelMap, _t as determineConnectorUsageId, Bt as extractExtensionFromPath, zt as extractPathWithoutExtension, Pt as formatNumberAsDecimalNumber, Rt as formatNumberAsDuration, It as formatNumberAsSize, Lt as formatNumberAsStorageSize, Ft as formatNumberAsWholeNumber, fe as getComponentStatus, xt as getConnectorActionsTable, Oe as getEncodingTypeConfigs, ge as getValueDelimiterCharacter, Vt as hasMimeTypeForExtension, Re as ignoreErrors, A as isEncodingTypeId, H as listParserToolConfigs, Dt as loadPresenter, W as loadTool, Ot as localiseConfig, kt as localiseConfigs, At as localiseReference, Ht as lookupMimeTypeForExtension, L as normalizeToError, Ye as parseDelimitedText, Tt as presenterConfigSchema, j as resolveDecoderId, r as resolveLabel, U as resolveParserToolConfig, ot as retrieveRecordsWithParser, ze as serialiseError, Je as toolConfigSchema, Be as unserialiseError };\n","// ── DPUse Framework\nimport { ConnectorError, getValueDelimiterCharacter, ignoreErrors, parseDelimitedText, resolveDecoderId } from '@dpuse/dpuse-shared'; // TODO: This should be Module or Tool error?\nimport type {\n ParsedRecord,\n ParserInterface,\n ParseStreamOptions,\n ParseTextOptions,\n ParseTextResult,\n RecordRetrievalTypeId,\n RetrieveRecordsSummary,\n SampleIssue,\n ValueDelimiterId\n} from '@dpuse/dpuse-shared';\n\n// ── Local Framework\nimport type * as RustModule from '../rust/dpuse_tool_rust_csv_core_parser/pkg/dpuse_tool_rust_csv_core_parser.js';\n\n// ── Types ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\ntype RustBindings = typeof RustModule;\n\ninterface Utf8Transcoder {\n finish: () => Uint8Array;\n transcode: (bytes: Uint8Array) => Uint8Array;\n}\n\nexport interface CsvProcessingOptions {\n delimiter?: string;\n hasHeaders?: boolean;\n}\n\nexport interface CsvProcessingSummary {\n processedRowCount: number;\n failedRowCount: number;\n durationMs?: number;\n}\n\n// ── Constants ────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport const config = {\n id: 'rust-csv-core',\n name: 'Rust CSV Core',\n version: '0.1.0'\n} as const;\n\nconst DEFAULT_CHUNK_SIZE = 10_000;\n\n// WebKit hands over a file stream in pieces of about 18 MB, against about 2 MB in Chromium. Each piece is copied into\n// WebAssembly memory, which never shrinks, so pieces that large grew it to 567 MB. Each piece is read in slices of this\n// size instead. A slice is a view, not a copy.\nconst MAX_SLICE_BYTE_COUNT = 1_048_576;\n\n// ── State ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nconst state: { rustBindingsPromise: Promise<RustBindings> | undefined } = {\n rustBindingsPromise: undefined\n};\n\n// ── Tools ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Parses CSV with a Rust core compiled to WebAssembly, in one of two modes: a transferable ReadableStream where the\n * browser supports one (Chromium), or chunk by chunk where it does not (Safari).\n */\nexport class Tool implements ParserInterface {\n readonly config = config;\n\n /**\n * Parse stream. Reads delimited text from the stream. The caller owns the stream and its fetch, so a failed fetch is\n * the caller's to report. Aborting the signal stops the read and rejects with the signal's reason.\n */\n async parseStream(\n stream: ReadableStream<Uint8Array>,\n options: ParseStreamOptions,\n chunk: (typeId: RecordRetrievalTypeId, records: ParsedRecord[]) => void | Promise<void>\n ): Promise<RetrieveRecordsSummary> {\n const { RecordReader } = await loadRustBindings();\n options.abortSignal.throwIfAborted();\n const recordReader = new RecordReader(convertDelimiterToByte(options.valueDelimiterId));\n const transcoder = constructUtf8Transcoder(options.encodingId);\n const recordsPerChunk = Math.max(1, Math.floor(options.chunkSize ?? DEFAULT_CHUNK_SIZE));\n const reader = stream.getReader();\n // The stream may not be tied to the signal, so an abort cancels the read rather than waiting for the next chunk.\n const cancelRead = (): void => {\n ignoreErrors(() => void reader.cancel(options.abortSignal.reason));\n };\n options.abortSignal.addEventListener('abort', cancelRead, { once: true });\n\n let records: ParsedRecord[] = [];\n // A promise returned by 'chunk' is awaited before reading on, so a slow receiver holds the read back.\n const emitRecords = async (batch: RustModule.RecordBatch): Promise<void> => {\n for (const record of unpackRecordBatch(batch)) {\n records.push(record);\n if (records.length < recordsPerChunk) continue;\n const fullRecords = records;\n records = [];\n await chunk('parsingRecordArray', fullRecords);\n }\n };\n\n try {\n let result = await reader.read();\n while (!result.done) {\n options.abortSignal.throwIfAborted();\n const bytes = transcoder == null ? result.value : transcoder.transcode(result.value);\n for (let sliceStart = 0; sliceStart < bytes.length; sliceStart += MAX_SLICE_BYTE_COUNT) {\n await emitRecords(recordReader.pushChunk(bytes.subarray(sliceStart, sliceStart + MAX_SLICE_BYTE_COUNT)));\n }\n result = await reader.read();\n }\n options.abortSignal.throwIfAborted();\n if (transcoder != null) await emitRecords(recordReader.pushChunk(transcoder.finish()));\n await emitRecords(recordReader.finish());\n if (records.length > 0) await chunk('parsingRecordArray', records);\n return {\n byteCount: recordReader.byteCount,\n commentLineCount: 0, // Comments are not read, as csv-parse is set up in 'dpuse-tool-adaltas-csv-parser'.\n emptyLineCount: recordReader.emptyLineCount,\n lineCount: recordReader.lineCount,\n nonUniformRecordCount: recordReader.nonUniformRecordCount,\n recordCount: recordReader.recordCount\n };\n } finally {\n options.abortSignal.removeEventListener('abort', cancelRead);\n recordReader.free();\n reader.releaseLock();\n }\n }\n\n /**\n * Parse text. 'csv-core' reads any text without error, so no issues are reported, and a quote left open simply\n * runs to the end of the text.\n */\n async parseText(text: string, options: ParseTextOptions): Promise<ParseTextResult> {\n const { RecordReader } = await loadRustBindings();\n return await parseDelimitedText(text, options, (delimitedText, delimiter): Promise<{ issues: SampleIssue[]; records: ParsedRecord[] }> => {\n const recordReader = new RecordReader(convertDelimiterToByte(delimiter));\n try {\n const records = unpackRecordBatch(recordReader.pushChunk(new TextEncoder().encode(delimitedText)));\n records.push(...unpackRecordBatch(recordReader.finish()));\n return Promise.resolve({ issues: [], records });\n } finally {\n recordReader.free();\n }\n });\n }\n\n /**\n * Process CSV data using transferable ReadableStream (Chromium path).\n */\n async processWithTransferableStream(\n stream: ReadableStream<Uint8Array>,\n options: CsvProcessingOptions = {},\n onProgress?: (rowCount: number) => void\n ): Promise<CsvProcessingSummary> {\n const xxxx = await loadRustBindings();\n const delimiter = options.delimiter?.codePointAt(0) ?? 44; // Default comma\n const hasHeaders = options.hasHeaders ?? true;\n\n const startTime = performance.now();\n let processedRowCount = 0;\n\n const progressCallback = (count: number): void => {\n processedRowCount += count;\n if (onProgress) onProgress(count);\n };\n\n try {\n await xxxx.stream_csv(stream, progressCallback, delimiter, hasHeaders);\n return {\n processedRowCount,\n failedRowCount: 0,\n durationMs: performance.now() - startTime\n };\n } catch (error) {\n throw new ConnectorError('Failed to process CSV stream.', 'dpuse-tool-rust-csv-core-parser|Tool|processWithTransferableStream', { cause: error });\n }\n }\n\n /**\n * Process CSV data using chunk-by-chunk approach (Safari fallback).\n */\n async processWithChunks(stream: ReadableStream<Uint8Array>, options: CsvProcessingOptions = {}, onProgress?: (rowCount: number) => void): Promise<CsvProcessingSummary> {\n const { CsvSession } = await loadRustBindings();\n const delimiter = options.delimiter?.codePointAt(0) ?? 44;\n const hasHeaders = options.hasHeaders ?? true;\n\n const startTime = performance.now();\n let processedRowCount = 0;\n const session = new CsvSession(delimiter, hasHeaders);\n\n try {\n const reader = stream.getReader();\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- The loop ends when the reader reports 'done'.\n while (true) {\n const { value, done } = await reader.read();\n if (done) break;\n\n // if (value) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- The WebAssembly bindings return untyped rows.\n const rows = session.pushChunk(value);\n const count = Array.isArray(rows) ? rows.length : 0;\n processedRowCount += count;\n if (onProgress && count > 0) onProgress(count);\n // }\n }\n\n // Finish processing\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- The WebAssembly bindings return untyped rows.\n const remainingRows = session.finish();\n const remainingCount = Array.isArray(remainingRows) ? remainingRows.length : 0;\n processedRowCount += remainingCount;\n if (onProgress && remainingCount > 0) onProgress(remainingCount);\n\n return {\n processedRowCount,\n failedRowCount: 0,\n durationMs: performance.now() - startTime\n };\n } finally {\n reader.releaseLock();\n }\n } catch (error) {\n throw new ConnectorError('Failed to process CSV chunks.', 'dpuse-tool-rust-csv-core-parser|Tool|processWithChunks', { cause: error });\n }\n }\n}\n\n// ── Helpers ──────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nfunction convertDelimiterToByte(delimiter: ValueDelimiterId): number {\n const byte = getValueDelimiterCharacter(delimiter).codePointAt(0);\n if (byte == null || byte > 0x7f) throw new Error(`Delimiter '${delimiter}' is not a single ASCII character.`);\n return byte;\n}\n\n// The Rust reader reads UTF-8. Text in any other encoding is decoded and encoded again as UTF-8 on the way in, so it is\n// read as 'TextDecoder' reads it. UTF-8 is passed straight through, which saves a copy of every chunk.\nfunction constructUtf8Transcoder(encodingId: string): Utf8Transcoder | undefined {\n const decoder = new TextDecoder(resolveDecoderId(encodingId));\n if (decoder.encoding === 'utf-8') return undefined;\n const encoder = new TextEncoder();\n return {\n finish: () => encoder.encode(decoder.decode()),\n transcode: (bytes) => encoder.encode(decoder.decode(bytes, { stream: true }))\n };\n}\n\n// Builds a record of '{ value, valueWasQuoted }' objects for each record in the batch, which is freed once read.\nfunction unpackRecordBatch(batch: RustModule.RecordBatch): ParsedRecord[] {\n const { recordValueCounts, text, valueEnds, valueQuoted } = batch;\n batch.free();\n const records: ParsedRecord[] = [];\n let valueIndex = 0;\n let valueStart = 0;\n for (const valueCount of recordValueCounts) {\n const record: ParsedRecord = [];\n for (let index = 0; index < valueCount; index++) {\n const valueEnd = valueEnds[valueIndex] ?? valueStart;\n record.push({ value: text.slice(valueStart, valueEnd), valueWasQuoted: valueQuoted[valueIndex] === 1 });\n valueStart = valueEnd;\n valueIndex++;\n }\n records.push(record);\n }\n return records;\n}\n\n// The WebAssembly loads once, on first use; the promise is kept so callers that arrive together share one load.\nasync function loadRustBindings(): Promise<RustBindings> {\n state.rustBindingsPromise ??= (async () => {\n const module = await import('../rust/dpuse_tool_rust_csv_core_parser/pkg/dpuse_tool_rust_csv_core_parser.js');\n await module.default();\n return module;\n })();\n return state.rustBindingsPromise;\n}\n"],"ignoreList":[0],"mappings":";AAkBA,IAAII,IAAI;CACP,MAAM,KAAK;CACX,SAAS,KAAK;CACd,YAAY,KAAK;CACjB,gBAAgB,KAAK;AACtB;;AAEA,SAASC,EAAE,GAAG;CACb,OAAOC,IAAI;EACV,MAAMA,GAAG,QAAQ,KAAK;EACtB,SAASA,GAAG;EACZ,YAAYA,GAAG,cAAc,KAAK;EAClC,gBAAgBA,GAAG,kBAAkB,KAAK;CAC3C,IAAIF;AACL;;AAEA,SAASG,EAAE,GAAG;CACb,IAAI,IAAI,OAAO;CACf,OAAO,MAAM,WAAW,IAAI,EAAE,KAAK,MAAM,YAAY,MAAM,YAAY,MAAM,YAAY,GAAG,MAAM,MAAM,YAAY,MAAM,cAAc,KAAK,OAAO,eAAe,CAAC,CAAC,EAAE,aAAa,SAAS,SAAS;AACvM;AACA,SAASC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG;CACzB,IAAIH,IAAID,KAAK,WAAWA,IAAIA,EAAE,QAAQK,EAAE,OAAO,IAAIL,GAAG,YAAY,EAAE,WAAW,MAAM,IAAIA,GAAG,YAA4B,kBAAEC,CAAC,GAAG,IAAI;EACjI,MAAM,EAAE;EACR,MAAM,EAAE;EACR,OAAOA;EACP,UAAU;EACV,UAAU;EACV,SAAS,WAAW,EAAE,IAAI,IAAI,YAAY,EAAE,UAAU,IAAI,U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,YAAY1F,EAAiB2F,CAAU,CAAC;CAC5D,IAAID,EAAQ,aAAa,SAAS;CAClC,IAAME,IAAU,IAAI,YAAY;CAChC,OAAO;EACH,cAAcA,EAAQ,OAAOF,EAAQ,OAAO,CAAC;EAC7C,YAAY,MAAUE,EAAQ,OAAOF,EAAQ,OAAOrB,GAAO,EAAE,QAAQ,GAAK,CAAC,CAAC;CAChF;AACJ;AAGA,SAASL,EAAkB,GAA+C;CACtE,IAAM,EAAE,sBAAmB,SAAM,cAAW,mBAAgBC;CAC5D,EAAM,KAAK;CACX,IAAMJ,IAA0B,CAAC,GAC7BgC,IAAa,GACbC,IAAa;CACjB,KAAK,IAAMC,KAAcC,GAAmB;EACxC,IAAMjC,IAAuB,CAAC;EAC9B,KAAK,IAAIkC,IAAQ,GAAGA,IAAQF,GAAY,KAAS;GAC7C,IAAMG,IAAWC,EAAUN,MAAeC;GAG1C,AAFA/B,EAAO,KAAK;IAAE,OAAOQ,EAAK,MAAMuB,GAAYI,CAAQ;IAAG,gBAAgBE,EAAYP,OAAgB;GAAE,CAAC,GACtG,IAAaK,GACb;EACJ;EACA,EAAQ,KAAKnC,CAAM;CACvB;CACA,OAAOF;AACX;AAGA,eAAeX,IAA0C;CAMrD,OALA,EAAM,yBAAyB,YAAY;EACvC,IAAMmD,IAAS,MAAM,OAAO;EAE5B,OADA,MAAMA,EAAO,QAAQ,GACdA;CACX,EAAA,CAAG,GACIrD,EAAM;AACjB"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "packages": [
3
- "@dpuse/dpuse-shared@1.0.174",
3
+ "@dpuse/dpuse-shared@1.0.188",
4
4
  "valibot@1.5.0"
5
5
  ],
6
6
  "external": []
@@ -1,4 +1,4 @@
1
- import { ParserInterface, ParseStreamOptions, ParseTextOptions, ParseTextResult, ParsingRecord, RecordRetrievalTypeId, RetrieveRecordsSummary } from '@dpuse/dpuse-shared';
1
+ import { ParsedRecord, ParserInterface, ParseStreamOptions, ParseTextOptions, ParseTextResult, RecordRetrievalTypeId, RetrieveRecordsSummary } from '@dpuse/dpuse-shared';
2
2
  export interface CsvProcessingOptions {
3
3
  delimiter?: string;
4
4
  hasHeaders?: boolean;
@@ -27,7 +27,7 @@ export declare class Tool implements ParserInterface {
27
27
  * Parse stream. Reads delimited text from the stream. The caller owns the stream and its fetch, so a failed fetch is
28
28
  * the caller's to report. Aborting the signal stops the read and rejects with the signal's reason.
29
29
  */
30
- parseStream(stream: ReadableStream<Uint8Array>, options: ParseStreamOptions, chunk: (typeId: RecordRetrievalTypeId, records: ParsingRecord[]) => void | Promise<void>): Promise<RetrieveRecordsSummary>;
30
+ parseStream(stream: ReadableStream<Uint8Array>, options: ParseStreamOptions, chunk: (typeId: RecordRetrievalTypeId, records: ParsedRecord[]) => void | Promise<void>): Promise<RetrieveRecordsSummary>;
31
31
  /**
32
32
  * Parse text. 'csv-core' reads any text without error, so no issues are reported, and a quote left open simply
33
33
  * runs to the end of the text.