@dpuse/dpuse-tool-rust-csv-core-parser 1.0.106 → 1.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -72
- package/dist/dpuse-tool-rust-csv-core-parser.es.js +621 -17
- package/dist/dpuse-tool-rust-csv-core-parser.es.js.map +1 -1
- package/dist/dpuse_tool_rust_csv_core_parser-BZJW07sd.js +584 -0
- package/dist/dpuse_tool_rust_csv_core_parser-BZJW07sd.js.map +1 -0
- package/dist/shipped-packages.json +1 -1
- package/dist/types/src/index.d.ts +12 -1
- package/package.json +13 -12
- package/dist/dpuse_tool_rust_csv_core_parser-DxibblRh.js +0 -470
- package/dist/dpuse_tool_rust_csv_core_parser-DxibblRh.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dpuse-tool-rust-csv-core-parser.es.js","names":["ConnectorError","n","i","a","o","s","r","c","u","d","ee","f","h","g","_","v","b","x","S","C","te","T","ne","re","ie","ae","E","O","k","I","B","config","state","Tool","xxxx","loadRustBindings","delimiter","options","hasHeaders","startTime","processedRowCount","progressCallback","count","onProgress","stream","error","session","CsvSession","reader","done","rows","value","remainingRows","remainingCount","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 ee(e, t, n) {\n\treturn typeof e.fallback == \"function\" ? e.fallback(t, n) : e.fallback;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction f(e, t, n) {\n\treturn typeof e.default == \"function\" ? e.default(t, n) : e.default;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction p(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"array\",\n\t\treference: p,\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 m(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"boolean\",\n\t\treference: m,\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 h(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"literal\",\n\t\treference: h,\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 g(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"nullable\",\n\t\treference: g,\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__ */ f(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 _(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"number\",\n\t\treference: _,\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 v(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"optional\",\n\t\treference: v,\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__ */ f(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 y(e, t, n) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"record\",\n\t\treference: y,\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 b(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"strict_object\",\n\t\treference: b,\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__ */ f(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__ */ ee(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 x(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"string\",\n\t\treference: x,\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 S(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 C(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"union\",\n\t\treference: C,\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__ */ S(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__ */ S(i) });\n\t\t\treturn e;\n\t\t}\n\t});\n}\n//#endregion\n//#region src/locale/locale.schema.ts\nvar w = /* @__PURE__ */ b({\n\ten: /* @__PURE__ */ x(),\n\tes: /* @__PURE__ */ x()\n}), te = {\n\tid: /* @__PURE__ */ x(),\n\tlabel: /* @__PURE__ */ b({\n\t\ten: /* @__PURE__ */ v(/* @__PURE__ */ x()),\n\t\tes: /* @__PURE__ */ v(/* @__PURE__ */ x())\n\t}),\n\tdescription: /* @__PURE__ */ b({\n\t\ten: /* @__PURE__ */ v(/* @__PURE__ */ x()),\n\t\tes: /* @__PURE__ */ v(/* @__PURE__ */ x())\n\t}),\n\ticon: /* @__PURE__ */ g(/* @__PURE__ */ x()),\n\ticonDark: /* @__PURE__ */ g(/* @__PURE__ */ x())\n}, T = (e) => /* @__PURE__ */ C(e.map((e) => /* @__PURE__ */ h(e))), ne = 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]), re = T([\n\t\"danger\",\n\t\"success\",\n\t\"warning\"\n]), ie = T([\n\t\"alpha\",\n\t\"beta\",\n\t\"releaseCandidate\",\n\t\"generalAvailability\"\n]), ae = /* @__PURE__ */ b({\n\tcolor: re,\n\tlabel: /* @__PURE__ */ x()\n}), E = {\n\t...te,\n\ttypeId: ne\n}, D = /* @__PURE__ */ b({\n\t...E,\n\torder: /* @__PURE__ */ _(),\n\tpath: /* @__PURE__ */ x()\n}), O = {\n\t...E,\n\tfirstCreatedAt: /* @__PURE__ */ g(/* @__PURE__ */ _()),\n\tlastUpdatedAt: /* @__PURE__ */ g(/* @__PURE__ */ _()),\n\tstatus: /* @__PURE__ */ g(ae),\n\tstatusId: /* @__PURE__ */ g(ie)\n}, oe = /* @__PURE__ */ b({ ...O }), se = [\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 ce(e, t = \"en\") {\n\tlet n = se.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/index.ts\nn({ en: \"Data Positioning Events\" }), n({ en: \"Delimited Text\" }), n({ en: \"JSON\" }), n({ en: \"SPSS\" }), n({ en: \"XLSX\" }), n({ en: \"XML\" });\nvar le = [\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 k = {\n\t...O,\n\tvendorAccountURL: /* @__PURE__ */ g(/* @__PURE__ */ x()),\n\tvendorDocumentationURL: /* @__PURE__ */ g(/* @__PURE__ */ x()),\n\tvendorHomeURL: /* @__PURE__ */ g(/* @__PURE__ */ x()),\n\tversion: /* @__PURE__ */ x()\n};\n({ ...k });\n//#endregion\n//#region src/component/module/connector/connectorConfig.schema.ts\nvar ue = T([\n\t\"abortOperation\",\n\t\"auditObjectContent\",\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\"previewObject\",\n\t\"removeRecords\",\n\t\"retrieveChunks\",\n\t\"retrieveRecords\",\n\t\"upsertRecords\"\n]), de = T([\n\t\"application\",\n\t\"curatedDataset\",\n\t\"database\",\n\t\"fileStore\"\n]), fe = /* @__PURE__ */ b({ label: w }), pe = T([\n\t\"bidirectional\",\n\t\"destination\",\n\t\"source\",\n\t\"unknown\"\n]), me = /* @__PURE__ */ b({ label: w }), he = /* @__PURE__ */ b({\n\tauthMethodId: T([\n\t\t\"apiKey\",\n\t\t\"disabled\",\n\t\t\"oAuth2\",\n\t\t\"none\"\n\t]),\n\tactiveConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ _()),\n\tcanDescribe: /* @__PURE__ */ v(/* @__PURE__ */ m()),\n\tid: /* @__PURE__ */ v(/* @__PURE__ */ x()),\n\tlabel: /* @__PURE__ */ v(w),\n\tmaxConnectionCount: /* @__PURE__ */ g(/* @__PURE__ */ _()),\n\tparams: /* @__PURE__ */ v(/* @__PURE__ */ p(/* @__PURE__ */ y(/* @__PURE__ */ x(), /* @__PURE__ */ x())))\n}), ge = /* @__PURE__ */ b({\n\t...k,\n\ttypeId: /* @__PURE__ */ h(\"connector\"),\n\tactionNames: /* @__PURE__ */ p(ue),\n\tcategory: /* @__PURE__ */ g(fe),\n\tcategoryId: de,\n\timplementations: /* @__PURE__ */ y(/* @__PURE__ */ x(), he),\n\tusage: /* @__PURE__ */ g(me),\n\tusageId: /* @__PURE__ */ g(pe)\n}), _e = [\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], A = {\n\tabortOperation: \"Abort Operation\",\n\tauditObjectContent: \"Audit Object Content\",\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\tpreviewObject: \"Preview Object\",\n\tremoveRecords: \"Remove Records\",\n\tretrieveChunks: \"Retrieve Chunks\",\n\tretrieveRecords: \"Retrieve Records\",\n\tupsertRecords: \"Upsert Records\"\n}, ve = [\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], ye = /* @__PURE__ */ new Set([\n\t\"createObject\",\n\t\"dropObject\",\n\t\"removeRecords\",\n\t\"upsertRecords\"\n]), be = /* @__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\"retrieveChunks\",\n\t\"retrieveRecords\"\n]);\nfunction xe(e) {\n\tlet t = !1, n = !1;\n\tfor (let r of e) be.has(r) && (t = !0), ye.has(r) && (n = !0);\n\treturn t && n ? \"bidirectional\" : t ? \"source\" : n ? \"destination\" : \"unknown\";\n}\nvar j = (e, t = \"en\") => {\n\tlet i = _e.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}, M = (e, t = \"en\") => {\n\tlet i = ve.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 Se(e) {\n\tlet t = new Set(e), n = \"|Action|Supported|\\n\";\n\tn += \"|:----|:-------:|\\n\";\n\tfor (let e of Object.keys(A)) n += `| ${A[e]} | ${t.has(e) ? \"✓\" : \"\"} |\\n`;\n\treturn n;\n}\n//#endregion\n//#region src/component/module/cookbook/cookbookConfig.schema.ts\nvar Ce = T([\"list\"]), we = /* @__PURE__ */ b({\n\t...k,\n\ttypeId: /* @__PURE__ */ h(\"cookbook\"),\n\tactionNames: /* @__PURE__ */ p(Ce),\n\trecipes: /* @__PURE__ */ p(D)\n}), Te = T([\n\t\"list\",\n\t\"render\",\n\t\"setColorMode\"\n]), Ee = /* @__PURE__ */ b({\n\t...k,\n\ttypeId: /* @__PURE__ */ h(\"presenter\"),\n\tactionNames: /* @__PURE__ */ p(Te),\n\tpresentations: /* @__PURE__ */ p(D)\n}), N = 2048, P = \"[REDACTED]\", De = 10, F = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Oe = [\n\t[/\\b(Bearer|Basic) +[\\w.~+/=-]+/gi, (e, t) => `${t} ${P}`],\n\t[/(?<![\\w-])([\\w-]+)([\"']?[ \\t]*[:=][ \\t]*[\"']?)([^\\s\"'&,;}?#]+)/g, (e, t, n, r) => F.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${P}` : e],\n\t[/\\beyJ[\\w-]+\\.[\\w-]+\\.[\\w-]*/g, () => P],\n\t[/\\b(?:sk-|xaat-|xapt-|sl\\.)[\\w-]{16,}/g, () => P],\n\t[/(?<![\\w.+-])[\\w.+-]+@[\\w-]+\\.[\\w.-]+/g, () => P]\n], I = 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}, L = class extends I {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"AppError\";\n\t}\n}, R = class extends I {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"APIError\";\n\t}\n}, z = class extends I {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"EngineError\";\n\t}\n}, B = class extends I {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"ConnectorError\";\n\t}\n}, V = class extends I {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"FetchError\";\n\t}\n};\nasync function ke(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: ${H(e).message}>`;\n\t}\n\treturn new V(i, n, { body: Le(a) });\n}\nfunction Ae(e) {\n\treturn e.map((e) => e.message).join(\" \");\n}\nfunction je(e) {\n\ttry {\n\t\te();\n\t} catch {}\n}\nfunction H(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 Me(e) {\n\tlet t = /* @__PURE__ */ new Set(), n = [], r = H(e);\n\tfor (; r != null && !t.has(r);) {\n\t\tt.add(r);\n\t\tlet [e, i] = Re(r), a = Ie(e);\n\t\t/(?:\\.{3}|[.!?])$/.test(a.message) || (a.message += \".\"), n.push(a), r = i;\n\t}\n\treturn n;\n}\nfunction Ne(e) {\n\tlet t;\n\tfor (let n of e.toReversed()) {\n\t\tlet e = Fe(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 Pe(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 Fe(e, t) {\n\tswitch (e.name) {\n\t\tcase \"APIError\": return new R(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"AppError\": return new L(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"ConnectorError\": return new B(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"EngineError\": return new z(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"FetchError\": return new V(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 Ie(e) {\n\tlet { data: t, message: n, stack: r } = e;\n\treturn {\n\t\t...e,\n\t\tdata: t === void 0 ? void 0 : W(t, /* @__PURE__ */ new WeakSet(), 0),\n\t\tmessage: U(n),\n\t\tstack: r === void 0 ? void 0 : U(r)\n\t};\n}\nfunction U(e) {\n\tlet t = e;\n\tfor (let [e, n] of Oe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));\n\treturn t;\n}\nfunction W(e, t, n) {\n\treturn typeof e == \"string\" ? U(e) : typeof e != \"object\" || !e ? e : n >= De ? P : t.has(e) ? \"[Circular]\" : (t.add(e), Array.isArray(e) ? e.map((e) => W(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && F.test(e) ? P : W(r, t, n + 1)])));\n}\nfunction Le(e) {\n\tif (e != null && e !== \"\") return e.length > N ? `${e.slice(0, N)}... [truncated]` : e;\n}\nfunction Re(e) {\n\tlet t = e.cause == null ? null : H(e.cause);\n\tif (e instanceof I) 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: Pe(e),\n\t\tname: \"Error\",\n\t\tstack: void 0\n\t}, null];\n}\n//#endregion\n//#region src/component/module/tool/index.ts\nvar ze = \"https://engine-eu.dpuse.app/tools\";\nasync function Be(e, t) {\n\tlet n = `dpuse-tool-${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 L(`Tool '${t}' not found.`, \"dpuse-shared.component.module.tool.loadTool\", r);\n\t}\n\tlet i = `${ze}/${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 L(`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/encoding/index.ts\nvar Ve = {\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}, He = {\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}, G = Ve, K = He;\nfunction q(e) {\n\treturn Object.hasOwn(K, e);\n}\nfunction Ue(e) {\n\treturn q(e) ? K[e].decoderId ?? e : e;\n}\nfunction We(e = \"en\") {\n\treturn Array.from(Object.values(K), ({ decoderId: t, groupId: n, id: r }) => {\n\t\tlet i = n == null ? \"\" : Ge(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 Ge(e, t) {\n\tlet n = G[e].label;\n\treturn n[t] ?? n.en ?? e;\n}\n//#endregion\n//#region src/locale/index.ts\nfunction Ke(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 J(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 qe(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 Y = [\n\t[\n\t\t\"days\",\n\t\t864e5,\n\t\t(e) => e === 1 ? \"1 day\" : `${$(e)} days`\n\t],\n\t[\n\t\t\"hrs\",\n\t\t36e5,\n\t\t(e) => e === 1 ? \"1 hr\" : `${$(e)} hrs`\n\t],\n\t[\n\t\t\"mins\",\n\t\t6e4,\n\t\t(e) => e === 1 ? \"1 min\" : `${$(e)} mins`\n\t],\n\t[\n\t\t\"secs\",\n\t\t1e3,\n\t\t(e) => e === 1 ? \"1 sec\" : `${$(e)} secs`\n\t],\n\t[\n\t\t\"ms\",\n\t\t0,\n\t\t(e) => `${$(e)} ms`\n\t]\n], X = \"en\", Z = /* @__PURE__ */ new Map();\nfunction Je(e) {\n\tswitch (e) {\n\t\tcase \"Edm.Binary\": return \"unknown\";\n\t\tcase \"Edm.Boolean\": return \"boolean\";\n\t\tcase \"Edm.Byte\": return \"wholeNumber\";\n\t\tcase \"Edm.DateTime\": return \"moment\";\n\t\tcase \"Edm.DateTimeOffset\": return \"moment\";\n\t\tcase \"Edm.Decimal\": return \"decimalNumber\";\n\t\tcase \"Edm.Double\": return \"decimalNumber\";\n\t\tcase \"Edm.Guid\": return \"string\";\n\t\tcase \"Edm.Int16\": return \"wholeNumber\";\n\t\tcase \"Edm.Int32\": return \"wholeNumber\";\n\t\tcase \"Edm.Int64\": return \"wholeNumber\";\n\t\tcase \"Edm.SByte\": return \"wholeNumber\";\n\t\tcase \"Edm.Single\": return \"decimalNumber\";\n\t\tcase \"Edm.String\": return \"string\";\n\t\tcase \"Edm.Time\": return \"momentTime\";\n\t\tdefault: return \"unknown\";\n\t}\n}\nfunction Ye(e) {\n\tif (e) {\n\t\tlet t = e.lastIndexOf(\"/\") + 1, n = e.lastIndexOf(\".\");\n\t\treturn n <= t || n === -1 ? e : e.slice(0, Math.max(0, n));\n\t}\n}\nfunction Xe(e) {\n\tif (e) {\n\t\tlet t = e.lastIndexOf(\"/\") + 1, n = e.lastIndexOf(\".\");\n\t\tif (n <= t) return;\n\t\tif (n !== -1) return e.slice(Math.max(0, n + 1));\n\t}\n}\nfunction Q(e, t = 2, n = t, r = X) {\n\tif (e == null) return \"\";\n\tlet i = `${r}decimal${String(t)}.${String(n)}`, a = Z.get(i);\n\treturn a || (a = new Intl.NumberFormat(r, {\n\t\tlocaleMatcher: \"best fit\",\n\t\tmaximumFractionDigits: t,\n\t\tminimumFractionDigits: n,\n\t\tminimumIntegerDigits: 1,\n\t\tstyle: \"decimal\",\n\t\tuseGrouping: !0\n\t}), Z.set(i, a)), a.format(e);\n}\nfunction Ze(e, t = 1) {\n\treturn e == null ? \"\" : e < 1e3 ? $(e) : e < 1e6 ? `${Q(e / 1e3, t, 0)}K` : e < 1e9 ? `${Q(e / 1e6, t, 0)}M` : e < 0xe8d4a51000 ? `${Q(e / 1e9, t, 0)}B` : `${Q(e / 0xe8d4a51000, t, 0)}T`;\n}\nfunction Qe(e, t = 1) {\n\treturn e == null ? \"\" : e === 1 ? \"1 byte\" : e < 1024 ? `${$(e)} bytes` : e < 1048576 ? `${Q(e / 1024, t, 0)} KB` : e < 1073741824 ? `${Q(e / 1048576, t, 0)} MB` : e < 1099511627776 ? `${Q(e / 1073741824, t, 0)} GB` : `${Q(e / 1099511627776, t, 0)} TB`;\n}\nfunction $e(e, t = \"ms\") {\n\tif (e == null) return \"\";\n\tlet n = Y.findIndex(([, t]) => e >= t), r = n === -1 ? Y.length - 1 : n, i = Y.findIndex(([e]) => e === t), a = Y.slice(r, Math.max(i, r) + 1), o = [], s = e;\n\tfor (let [, e, t] of a) s < e || s === 0 && o.length > 0 || (o.push(t(e > 0 ? Math.floor(s / e) : s)), s %= e > 0 ? e : 1);\n\treturn o.join(\" \");\n}\nfunction $(e, t = X) {\n\tif (e == null) return \"\";\n\tlet n = `${t}decimal0.0`, r = Z.get(n);\n\treturn r || (r = new Intl.NumberFormat(t, {\n\t\tlocaleMatcher: \"best fit\",\n\t\tmaximumFractionDigits: 0,\n\t\tminimumFractionDigits: 0,\n\t\tminimumIntegerDigits: 1,\n\t\tstyle: \"decimal\",\n\t\tuseGrouping: !0\n\t}), Z.set(n, r)), r.format(e);\n}\nfunction et(e) {\n\tswitch (e?.toLowerCase()) {\n\t\tcase \"csv\": return \"text/csv\";\n\t\tcase \"tab\":\n\t\tcase \"tsv\": return \"text/tab-separated-values\";\n\t\tcase \"xls\": return \"application/vnd.ms-excel\";\n\t\tcase \"xlsx\": return \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\";\n\t\tdefault: return \"application/octet-stream\";\n\t}\n}\n//#endregion\nexport { R as APIError, L as AppError, B as ConnectorError, e as DEFAULT_LOCALE_ID, G as ENCODING_GROUP_CONFIG_MAP, K as ENCODING_TYPE_CONFIG_MAP, z as EngineError, V as FetchError, le as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, ke as buildFetchError, oe as componentInstanceConfigSchema, Ae as concatenateSerialisedErrorMessages, ge as connectorConfigSchema, j as constructConnectorCategoryConfig, M as constructConnectorUsageConfig, Je as convertODataTypeIdToUsageTypeId, we as cookbookConfigSchema, n as createLabelMap, xe as determineConnectorUsageId, Xe as extractExtensionFromPath, Ye as extractNameFromPath, Q as formatNumberAsDecimalNumber, $e as formatNumberAsDuration, Ze as formatNumberAsSize, Qe as formatNumberAsStorageSize, $ as formatNumberAsWholeNumber, ce as getComponentStatus, Se as getConnectorActionsTable, We as getEncodingTypeConfigs, je as ignoreErrors, q as isEncodingTypeId, Be as loadTool, Ke as localiseConfig, J as localiseConfigs, qe as localiseReference, et as lookupMimeTypeForExtension, H as normalizeToError, Ee as presenterConfigSchema, Ue as resolveDecoderId, r as resolveLabel, Me as serialiseError, Ne as unserialiseError };\n","// ── DPUse Framework\nimport { ConnectorError } from '@dpuse/dpuse-shared'; // TODO: This should be Module or Tool error?\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\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\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 {\n readonly config = config;\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 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,SAASC,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,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,IAAIF,IAAID,KAAK,WAAWA,IAAIA,EAAE,QAAQ,EAAE,OAAO,IAAIA,GAAG,YAAY,EAAE,WAAW,MAAM,IAAIA,GAAG,YAA4B,kBAAEC,CAA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0C;CAMrD,OALA,EAAM,yBAAyB,YAAY;EACvC,IAAMmB,IAAS,MAAM,OAAO;EAE5B,OADA,MAAMA,EAAO,QAAQ,GACdA;CACX,EAAA,CAAG,GACItB,EAAM;AACjB"}
|
|
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","g","_","v","y","x","S","te","C","re","T","ie","ae","oe","se","ce","E","O","M","I","Ee","Le","Re","ze","Be","Ve","V","X","dt","ft","config","DEFAULT_CHUNK_SIZE","state","Tool","loadRustBindings","recordReader","RecordReader","convertDelimiterToByte","options","transcoder","constructUtf8Transcoder","recordsPerChunk","reader","stream","cancelRead","records","emitRecords","record","unpackRecordBatch","batch","fullRecords","chunk","result","text","delimiter","delimitedText","xxxx","hasHeaders","startTime","processedRowCount","progressCallback","count","onProgress","error","session","CsvSession","done","rows","value","remainingRows","remainingCount","byte","decoder","encodingId","encoder","bytes","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 ee(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"boolean\",\n\t\treference: ee,\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 g(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"literal\",\n\t\treference: g,\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 _(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"nullable\",\n\t\treference: _,\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 v(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"number\",\n\t\treference: v,\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 y(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"optional\",\n\t\treference: y,\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 b(e, t, n) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"record\",\n\t\treference: b,\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 x(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"strict_object\",\n\t\treference: x,\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 S(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"string\",\n\t\treference: S,\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 te(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 C(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"union\",\n\t\treference: C,\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__ */ te(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__ */ te(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__ */ x({\n\ten: /* @__PURE__ */ S(),\n\tes: /* @__PURE__ */ S()\n}), re = {\n\tid: /* @__PURE__ */ S(),\n\tlabel: /* @__PURE__ */ x({\n\t\ten: /* @__PURE__ */ y(/* @__PURE__ */ S()),\n\t\tes: /* @__PURE__ */ y(/* @__PURE__ */ S())\n\t}),\n\tdescription: /* @__PURE__ */ x({\n\t\ten: /* @__PURE__ */ y(/* @__PURE__ */ S()),\n\t\tes: /* @__PURE__ */ y(/* @__PURE__ */ S())\n\t}),\n\ticon: /* @__PURE__ */ _(/* @__PURE__ */ S()),\n\ticonDark: /* @__PURE__ */ _(/* @__PURE__ */ S())\n}, T = (e) => /* @__PURE__ */ C(e.map((e) => /* @__PURE__ */ g(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__ */ x({\n\tcolor: ae,\n\tlabel: /* @__PURE__ */ S()\n}), ce = {\n\t...re,\n\ttypeId: ie\n}, le = /* @__PURE__ */ x({\n\t...ce,\n\torder: /* @__PURE__ */ v(),\n\tpath: /* @__PURE__ */ S()\n}), E = {\n\t...ce,\n\tfirstCreatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),\n\tlastUpdatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),\n\tstatus: /* @__PURE__ */ _(se),\n\tstatusId: /* @__PURE__ */ _(oe)\n}, ue = /* @__PURE__ */ x({ ...E }), 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-4.5 18.2-13.9 0-3-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l-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: null\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 D = [\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 O = {\n\t...E,\n\tvendorAccountURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),\n\tvendorDocumentationURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),\n\tvendorHomeURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),\n\tversion: /* @__PURE__ */ S()\n};\n({ ...O });\n//#endregion\n//#region src/component/module/connector/connectorConfig.schema.ts\nvar me = 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]), he = T([\n\t\"application\",\n\t\"curatedDataset\",\n\t\"database\",\n\t\"fileStore\"\n]), ge = /* @__PURE__ */ x({ label: w }), _e = T([\n\t\"apiEndpoint\",\n\t\"file\",\n\t\"table\"\n]), ve = T([\n\t\"bidirectional\",\n\t\"destination\",\n\t\"source\",\n\t\"unknown\"\n]), ye = /* @__PURE__ */ x({ label: w }), be = /* @__PURE__ */ x({\n\tauthMethodId: T([\n\t\t\"apiKey\",\n\t\t\"disabled\",\n\t\t\"oAuth2\",\n\t\t\"none\"\n\t]),\n\tactiveConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ v()),\n\tcanDescribe: /* @__PURE__ */ y(/* @__PURE__ */ ee()),\n\tid: /* @__PURE__ */ y(/* @__PURE__ */ S()),\n\tlabel: /* @__PURE__ */ y(w),\n\tmaxConnectionCount: /* @__PURE__ */ _(/* @__PURE__ */ v()),\n\tparams: /* @__PURE__ */ y(/* @__PURE__ */ h(/* @__PURE__ */ b(/* @__PURE__ */ S(), /* @__PURE__ */ S())))\n}), xe = /* @__PURE__ */ x({\n\t...O,\n\ttypeId: /* @__PURE__ */ g(\"connector\"),\n\tactionNames: /* @__PURE__ */ h(me),\n\tcategory: /* @__PURE__ */ _(ge),\n\tcategoryId: he,\n\timplementations: /* @__PURE__ */ b(/* @__PURE__ */ S(), be),\n\titemTypeId: _e,\n\tusage: /* @__PURE__ */ _(ye),\n\tusageId: /* @__PURE__ */ _(ve)\n}), k = 2048, A = \"[REDACTED]\", Se = 10, j = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Ce = [\n\t[/\\b(Bearer|Basic) +[\\w.~+/=-]+/gi, (e, t) => `${t} ${A}`],\n\t[/(?<![\\w-])([\\w-]+)([\"']?[ \\t]*[:=][ \\t]*[\"']?)([^\\s\"'&,;}?#]+)/g, (e, t, n, r) => j.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${A}` : e],\n\t[/\\beyJ[\\w-]+\\.[\\w-]+\\.[\\w-]*/g, () => A],\n\t[/\\b(?:sk-|xaat-|xapt-|sl\\.)[\\w-]{16,}/g, () => A],\n\t[/(?<![\\w.+-])[\\w.+-]+@[\\w-]+\\.[\\w.-]+/g, () => A]\n], M = 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}, N = class extends M {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"AppError\";\n\t}\n}, P = class extends M {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"APIError\";\n\t}\n}, F = class extends M {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"EngineError\";\n\t}\n}, I = class extends M {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"ConnectorError\";\n\t}\n}, L = class extends M {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"FetchError\";\n\t}\n};\nasync function we(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: ${R(e).message}>`;\n\t}\n\treturn new L(i, n, { body: Me(a) });\n}\nfunction Te(e) {\n\treturn e.map((e) => e.message).join(\" \");\n}\nfunction Ee(e) {\n\ttry {\n\t\te();\n\t} catch {}\n}\nfunction R(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 De(e) {\n\tlet t = /* @__PURE__ */ new Set(), n = [], r = R(e);\n\tfor (; r != null && !t.has(r);) {\n\t\tt.add(r);\n\t\tlet [e, i] = Ne(r), a = je(e);\n\t\t/(?:\\.{3}|[.!?])$/.test(a.message) || (a.message += \".\"), n.push(a), r = i;\n\t}\n\treturn n;\n}\nfunction Oe(e) {\n\tlet t;\n\tfor (let n of e.toReversed()) {\n\t\tlet e = Ae(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 ke(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 Ae(e, t) {\n\tswitch (e.name) {\n\t\tcase \"APIError\": return new P(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"AppError\": return new N(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"ConnectorError\": return new I(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"EngineError\": return new F(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"FetchError\": return new L(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 je(e) {\n\tlet { data: t, message: n, stack: r } = e;\n\treturn {\n\t\t...e,\n\t\tdata: t === void 0 ? void 0 : B(t, /* @__PURE__ */ new WeakSet(), 0),\n\t\tmessage: z(n),\n\t\tstack: r === void 0 ? void 0 : z(r)\n\t};\n}\nfunction z(e) {\n\tlet t = e;\n\tfor (let [e, n] of Ce) t = t.replaceAll(e, (e, ...t) => n(e, ...t));\n\treturn t;\n}\nfunction B(e, t, n) {\n\treturn typeof e == \"string\" ? z(e) : typeof e != \"object\" || !e ? e : n >= Se ? A : t.has(e) ? \"[Circular]\" : (t.add(e), Array.isArray(e) ? e.map((e) => B(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && j.test(e) ? A : B(r, t, n + 1)])));\n}\nfunction Me(e) {\n\tif (e != null && e !== \"\") return e.length > k ? `${e.slice(0, k)}... [truncated]` : e;\n}\nfunction Ne(e) {\n\tlet t = e.cause == null ? null : R(e.cause);\n\tif (e instanceof M) 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: ke(e),\n\t\tname: \"Error\",\n\t\tstack: void 0\n\t}, null];\n}\nvar Pe = /* @__PURE__ */ x({ 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)) }), Fe = /* @__PURE__ */ h(/* @__PURE__ */ S()), Ie = /* @__PURE__ */ x({\n\t...O,\n\ttypeId: /* @__PURE__ */ g(\"tool\"),\n\tactionNames: /* @__PURE__ */ y(Fe),\n\tparser: /* @__PURE__ */ y(Pe)\n});\n//#endregion\n//#region src/component/module/tool/delimitedText.ts\nasync function Le(e, t, n) {\n\tlet r = Re(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 Re(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 = Be(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 } = Ve(d);\n\t\t(!o || p <= o) && (!a || 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: V(n) ? e : void 0\n\t\t};\n\t}\n\treturn {\n\t\tissues: [],\n\t\tparsedRecords: s,\n\t\tvalueDelimiterId: i != null && V(s) ? i : void 0\n\t};\n}\nfunction Be(e, t) {\n\treturn e == null || t.issues.length < e.issues.length ? t : e;\n}\nfunction Ve(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 V(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 He = \"https://engine-eu.dpuse.app/tools\", H = \"dpuse-tool-\";\nfunction U(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 W(e, t, n) {\n\tlet r = U(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 N(`No tool reads the '${t}' data format.`, \"dpuse-shared.component.module.tool.resolveParserToolConfig\", n);\n\t}\n\treturn r.find((e) => e.id === n) ?? i;\n}\nasync function G(e, t) {\n\tlet n = `${H}${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 N(`Tool '${t}' not found.`, \"dpuse-shared.component.module.tool.loadTool\", r);\n\t}\n\tlet i = `${He}/${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 N(`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 Ue = \"\\n\", K = \",\";\nasync function We(e) {\n\tlet { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o } = e, { dataFormatId: s, text: c } = n, l = n.bytes.length;\n\tif (l === 0) return {\n\t\tasAt: t,\n\t\tcolumnConfigs: [],\n\t\tdataFormatId: \"dtv\",\n\t\tduration: performance.now() - a,\n\t\tencodingId: void 0,\n\t\tencodingConfidenceLevel: void 0,\n\t\tfileType: void 0,\n\t\thasHeaders: !1,\n\t\trecordDelimiterId: Ue,\n\t\tparsedRecords: [],\n\t\tinferenceRecords: [],\n\t\tissues: [{\n\t\t\tid: \"empty\",\n\t\t\tlineNumber: void 0,\n\t\t\tmessage: \"The file is empty.\",\n\t\t\tseverityId: \"info\"\n\t\t}],\n\t\tsize: 0,\n\t\ttext: void 0,\n\t\tvalueDelimiterId: K\n\t};\n\tif (s == null || c == null || U(o, s).length === 0) return {\n\t\tasAt: t,\n\t\tcolumnConfigs: [],\n\t\tdataFormatId: s ?? \"unknown\",\n\t\tduration: performance.now() - a,\n\t\tencodingId: n.encodingId,\n\t\tencodingConfidenceLevel: n.encodingConfidenceLevel,\n\t\tfileType: n.fileTypeConfig,\n\t\thasHeaders: void 0,\n\t\trecordDelimiterId: void 0,\n\t\tparsedRecords: [],\n\t\tinferenceRecords: [],\n\t\tissues: [],\n\t\tsize: l,\n\t\ttext: c,\n\t\tvalueDelimiterId: void 0\n\t};\n\tlet { parser: u, parserId: d } = await q(o, s, i), f = await u.parseText(c, {\n\t\tdataFormatId: s,\n\t\tisComplete: n.isComplete,\n\t\tvalueDelimiterIds: D\n\t}), p = s === \"dtv\", m = p && f.valueDelimiterId == null ? await u.parseText(c, {\n\t\tdataFormatId: s,\n\t\tisComplete: n.isComplete,\n\t\tvalueDelimiterIds: [K]\n\t}) : f, h = r(m.parsedRecords);\n\treturn {\n\t\tasAt: t,\n\t\tcolumnConfigs: h.columnConfigs,\n\t\tdataFormatId: s,\n\t\tduration: performance.now() - a,\n\t\tencodingId: n.encodingId,\n\t\tencodingConfidenceLevel: n.encodingConfidenceLevel,\n\t\tfileType: n.fileTypeConfig,\n\t\thasHeaders: h.hasHeaderRow,\n\t\trecordDelimiterId: m.recordDelimiterId,\n\t\tparsedRecords: m.parsedRecords,\n\t\tparserId: d,\n\t\tinferenceRecords: h.typedRecords,\n\t\tissues: m.issues,\n\t\tsize: l,\n\t\ttext: c,\n\t\tvalueDelimiterId: p ? m.valueDelimiterId ?? K : m.valueDelimiterId\n\t};\n}\nasync function Ge(e) {\n\tlet { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await q(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 Ke(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 q(o, r.dataFormatId, r.parserId), d = await u.parseStream(a, {\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);\n\t});\n\treturn {\n\t\tasAt: s,\n\t\tcolumns: l.completeAudit(),\n\t\tcommentLineCount: d.commentLineCount,\n\t\tduration: performance.now() - c,\n\t\temptyLineCount: d.emptyLineCount,\n\t\tinvalidFieldLengthCount: d.nonUniformRecordCount,\n\t\tlineCount: d.lineCount,\n\t\trecordCount: Math.max(0, d.recordCount - +!!r.hasHeaders)\n\t};\n}\nasync function q(e, t, n) {\n\tlet r = W(e, t, n);\n\treturn {\n\t\tparser: await G(e, r.id.slice(H.length)),\n\t\tparserId: r.id\n\t};\n}\n//#endregion\n//#region src/component/module/connector/index.ts\nvar qe = [\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], Je = [\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], J = {\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}, Ye = [\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], Xe = /* @__PURE__ */ new Set([\n\t\"createObject\",\n\t\"dropObject\",\n\t\"loadObjectRecords\",\n\t\"removeRecords\",\n\t\"upsertRecords\"\n]), Ze = /* @__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 Qe(e) {\n\tlet t = !1, n = !1;\n\tfor (let r of e) Ze.has(r) && (t = !0), Xe.has(r) && (n = !0);\n\treturn t && n ? \"bidirectional\" : t ? \"source\" : n ? \"destination\" : \"unknown\";\n}\nvar $e = (e, t = \"en\") => {\n\tlet i = qe.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}, et = (e, t = \"en\") => {\n\tlet i = Je.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}, tt = (e, t = \"en\") => {\n\tlet i = Ye.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 nt(e) {\n\tlet t = new Set(e), n = \"|Action|Supported|\\n\";\n\tn += \"|:----|:-------:|\\n\";\n\tfor (let e of Object.keys(J)) n += `| ${J[e]} | ${t.has(e) ? \"✓\" : \"\"} |\\n`;\n\treturn n;\n}\n//#endregion\n//#region src/component/module/cookbook/cookbookConfig.schema.ts\nvar rt = T([\"list\"]), it = /* @__PURE__ */ x({\n\t...O,\n\ttypeId: /* @__PURE__ */ g(\"cookbook\"),\n\tactionNames: /* @__PURE__ */ h(rt),\n\trecipes: /* @__PURE__ */ h(le)\n}), at = T([\n\t\"list\",\n\t\"render\",\n\t\"setColorMode\"\n]), ot = /* @__PURE__ */ x({\n\t...O,\n\ttypeId: /* @__PURE__ */ g(\"presenter\"),\n\tactionNames: /* @__PURE__ */ h(at),\n\tpresentations: /* @__PURE__ */ h(le)\n}), st = \"https://engine-eu.dpuse.app/presenters\";\nasync function ct(e, t, n, r) {\n\tlet i = e.id, a = `${st}/${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 N(`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/encoding/index.ts\nvar lt = {\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}, ut = {\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}, Y = lt, X = ut;\nfunction dt(e) {\n\treturn Object.hasOwn(X, e);\n}\nfunction ft(e) {\n\treturn dt(e) ? X[e].decoderId ?? e : e;\n}\nfunction pt(e = \"en\") {\n\treturn Array.from(Object.values(X), ({ decoderId: t, groupId: n, id: r }) => {\n\t\tlet i = n == null ? \"\" : mt(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 mt(e, t) {\n\tlet n = Y[e].label;\n\treturn n[t] ?? n.en ?? e;\n}\n//#endregion\n//#region src/locale/index.ts\nfunction ht(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 gt(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 _t(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 vt = /* @__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], yt = [\n\t[\"byte\", 1],\n\t[\"kilobyte\", 1024],\n\t[\"megabyte\", 1048576],\n\t[\"gigabyte\", 1073741824],\n\t[\"terabyte\", 1099511627776]\n], bt = /* @__PURE__ */ new Map(), xt = /* @__PURE__ */ new Map();\nfunction St(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 Ct(e, t = Z) {\n\treturn St(e, 0, 0, t);\n}\nfunction wt(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 Tt(e, t = 1, n = Z) {\n\tif (e == null || !Number.isFinite(e)) return \"\";\n\tlet [r, i] = yt.find(([, n]) => Pt(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 Et(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 Nt(n).format(c);\n}\nfunction Dt(e) {\n\tif (!e) return;\n\tlet t = Mt(e);\n\treturn t === void 0 ? e : e.slice(0, t);\n}\nfunction Ot(e) {\n\tif (!e) return;\n\tlet t = Mt(e);\n\treturn t === void 0 ? void 0 : e.slice(t + 1);\n}\nfunction kt(e) {\n\treturn e != null && vt.has(e.toLowerCase());\n}\nfunction At(e) {\n\treturn (e == null ? void 0 : vt.get(e.toLowerCase())) ?? \"application/octet-stream\";\n}\nfunction jt(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 Mt(e) {\n\tlet t = e.lastIndexOf(\"/\") + 1, n = e.lastIndexOf(\".\");\n\treturn n > t && n < e.length - 1 ? n : void 0;\n}\nfunction Nt(e) {\n\tlet t = bt.get(e);\n\treturn t || (t = new Intl.ListFormat(e, {\n\t\tstyle: \"narrow\",\n\t\ttype: \"unit\"\n\t}), bt.set(e, t)), t;\n}\nfunction $(e, t) {\n\tlet n = `${e}|${JSON.stringify(t)}`, r = xt.get(n);\n\treturn r || (r = new Intl.NumberFormat(e, t), xt.set(n, r)), r;\n}\nfunction Pt(e, t) {\n\tlet n = 10 ** t;\n\treturn Math.round(e * n) / n;\n}\n//#endregion\nexport { P as APIError, N as AppError, I as ConnectorError, pe as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, Y as ENCODING_GROUP_CONFIG_MAP, X as ENCODING_TYPE_CONFIG_MAP, F as EngineError, L as FetchError, D as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, H as TOOL_NAME_PREFIX, Ke as auditObjectContentWithParser, we as buildFetchError, We as buildPreviewConfig, ue as componentInstanceConfigSchema, Te as concatenateSerialisedErrorMessages, xe as connectorConfigSchema, $e as constructConnectorCategoryConfig, et as constructConnectorItemTypeConfig, tt as constructConnectorUsageConfig, jt as convertODataTypeIdToUsageTypeId, it as cookbookConfigSchema, n as createLabelMap, Qe as determineConnectorUsageId, Ot as extractExtensionFromPath, Dt as extractPathWithoutExtension, St as formatNumberAsDecimalNumber, Et as formatNumberAsDuration, wt as formatNumberAsSize, Tt as formatNumberAsStorageSize, Ct as formatNumberAsWholeNumber, fe as getComponentStatus, nt as getConnectorActionsTable, pt as getEncodingTypeConfigs, kt as hasMimeTypeForExtension, Ee as ignoreErrors, dt as isEncodingTypeId, U as listParserToolConfigs, ct as loadPresenter, G as loadTool, ht as localiseConfig, gt as localiseConfigs, _t as localiseReference, At as lookupMimeTypeForExtension, R as normalizeToError, Le as parseDelimitedText, ot as presenterConfigSchema, ft as resolveDecoderId, r as resolveLabel, W as resolveParserToolConfig, Ge as retrieveRecordsWithParser, De as serialiseError, Ie as toolConfigSchema, Oe 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// ── 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 await emitRecords(recordReader.pushChunk(transcoder == null ? result.value : transcoder.transcode(result.value)));\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,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,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