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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,29 +1,26 @@
1
1
  // node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
2
- function e(e) {
3
- return new Map(Object.entries(e));
4
- }
5
- var t = {
2
+ var e = {
6
3
  lang: void 0,
7
4
  message: void 0,
8
5
  abortEarly: void 0,
9
6
  abortPipeEarly: void 0
10
7
  };
11
8
  /* @__NO_SIDE_EFFECTS__ */
12
- function n(e) {
13
- return e ? {
14
- lang: e?.lang ?? void 0,
15
- message: e?.message,
16
- abortEarly: e?.abortEarly ?? void 0,
17
- abortPipeEarly: e?.abortPipeEarly ?? void 0
18
- } : t;
9
+ function t(t) {
10
+ return t ? {
11
+ lang: t?.lang ?? void 0,
12
+ message: t?.message,
13
+ abortEarly: t?.abortEarly ?? void 0,
14
+ abortPipeEarly: t?.abortPipeEarly ?? void 0
15
+ } : e;
19
16
  }
20
17
  /* @__NO_SIDE_EFFECTS__ */
21
- function r(e) {
18
+ function n(e) {
22
19
  let t = typeof e;
23
20
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
24
21
  }
25
- function i(e, t, n, i, a) {
26
- let o = a && "input" in a ? a.input : n.value, s = a?.expected ?? e.expects ?? null, c = a?.received ?? /* @__PURE__ */ r(o), l = {
22
+ function r(e, t, r, i, a) {
23
+ let o = a && "input" in a ? a.input : r.value, s = a?.expected ?? e.expects ?? null, c = a?.received ?? /* @__PURE__ */ n(o), l = {
27
24
  kind: e.kind,
28
25
  type: e.type,
29
26
  input: o,
@@ -37,97 +34,97 @@ function i(e, t, n, i, a) {
37
34
  abortEarly: i.abortEarly,
38
35
  abortPipeEarly: i.abortPipeEarly
39
36
  }, u = e.kind === "schema", d = a?.message ?? e.message ?? (e.reference, l.lang, void 0) ?? (u ? (l.lang, void 0) : null) ?? i.message ?? (l.lang, void 0);
40
- d !== void 0 && (l.message = typeof d == "function" ? d(l) : d), u && (n.typed = !1), n.issues ? n.issues.push(l) : n.issues = [l];
37
+ d !== void 0 && (l.message = typeof d == "function" ? d(l) : d), u && (r.typed = !1), r.issues ? r.issues.push(l) : r.issues = [l];
41
38
  }
42
39
  /* @__NO_SIDE_EFFECTS__ */
43
- function a(e, t) {
40
+ function i(e, t) {
44
41
  return e === t || Number.isNaN(e) && Number.isNaN(t);
45
42
  }
46
43
  /* @__NO_SIDE_EFFECTS__ */
47
- function o(e, t) {
44
+ function a(e, t) {
48
45
  let n = [...new Set(e)];
49
46
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
50
47
  }
51
- function s(e) {
48
+ function o(e) {
52
49
  return e["~standard"] = {
53
50
  version: 1,
54
51
  vendor: "valibot",
55
- validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ n())
52
+ validate: (n) => e["~run"]({ value: n }, /* @__PURE__ */ t())
56
53
  }, e;
57
54
  }
58
55
  /* @__NO_SIDE_EFFECTS__ */
59
- function c(e, t, n) {
56
+ function s(e, t, n) {
60
57
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
61
58
  }
62
59
  /* @__NO_SIDE_EFFECTS__ */
63
- function l(e, t, n) {
60
+ function c(e, t, n) {
64
61
  return typeof e.default == "function" ? e.default(t, n) : e.default;
65
62
  }
66
63
  /* @__NO_SIDE_EFFECTS__ */
67
- function u(e, t) {
68
- return s({
64
+ function l(e, t) {
65
+ return o({
69
66
  kind: "schema",
70
67
  type: "literal",
71
- reference: u,
72
- expects: /* @__PURE__ */ r(e),
68
+ reference: l,
69
+ expects: /* @__PURE__ */ n(e),
73
70
  async: !1,
74
71
  literal: e,
75
72
  message: t,
76
73
  "~run"(e, t) {
77
- return /* @__PURE__ */ a(e.value, this.literal) ? e.typed = !0 : i(this, "type", e, t), e;
74
+ return /* @__PURE__ */ i(e.value, this.literal) ? e.typed = !0 : r(this, "type", e, t), e;
78
75
  }
79
76
  });
80
77
  }
81
78
  /* @__NO_SIDE_EFFECTS__ */
82
- function d(e, t) {
83
- return s({
79
+ function u(e, t) {
80
+ return o({
84
81
  kind: "schema",
85
82
  type: "nullable",
86
- reference: d,
83
+ reference: u,
87
84
  expects: `(${e.expects} | null)`,
88
85
  async: !1,
89
86
  wrapped: e,
90
87
  default: t,
91
88
  "~run"(e, t) {
92
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ l(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
89
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ c(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
93
90
  }
94
91
  });
95
92
  }
96
93
  /* @__NO_SIDE_EFFECTS__ */
97
- function f(e) {
98
- return s({
94
+ function d(e) {
95
+ return o({
99
96
  kind: "schema",
100
97
  type: "number",
101
- reference: f,
98
+ reference: d,
102
99
  expects: "number",
103
100
  async: !1,
104
101
  message: e,
105
102
  "~run"(e, t) {
106
- return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : i(this, "type", e, t), e;
103
+ return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : r(this, "type", e, t), e;
107
104
  }
108
105
  });
109
106
  }
110
107
  /* @__NO_SIDE_EFFECTS__ */
111
- function p(e, t) {
112
- return s({
108
+ function f(e, t) {
109
+ return o({
113
110
  kind: "schema",
114
111
  type: "optional",
115
- reference: p,
112
+ reference: f,
116
113
  expects: `(${e.expects} | undefined)`,
117
114
  async: !1,
118
115
  wrapped: e,
119
116
  default: t,
120
117
  "~run"(e, t) {
121
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ l(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
118
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ c(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
122
119
  }
123
120
  });
124
121
  }
125
122
  /* @__NO_SIDE_EFFECTS__ */
126
- function m(e, t) {
127
- return s({
123
+ function p(e, t) {
124
+ return o({
128
125
  kind: "schema",
129
126
  type: "strict_object",
130
- reference: m,
127
+ reference: p,
131
128
  expects: "Object",
132
129
  async: !1,
133
130
  entries: e,
@@ -136,17 +133,17 @@ function m(e, t) {
136
133
  let n = e.value;
137
134
  if (n && typeof n == "object") {
138
135
  e.typed = !0, e.value = {};
139
- for (let r in this.entries) {
140
- let a = this.entries[r];
141
- if (r in n || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
142
- let i = r in n ? n[r] : /* @__PURE__ */ l(a), o = a["~run"]({ value: i }, t);
136
+ for (let i in this.entries) {
137
+ let a = this.entries[i];
138
+ if (i in n || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
139
+ let r = i in n ? n[i] : /* @__PURE__ */ c(a), o = a["~run"]({ value: r }, t);
143
140
  if (o.issues) {
144
141
  let a = {
145
142
  type: "object",
146
143
  origin: "value",
147
144
  input: n,
148
- key: r,
149
- value: i
145
+ key: i,
146
+ value: r
150
147
  };
151
148
  for (let t of o.issues) t.path ? t.path.unshift(a) : t.path = [a], e.issues?.push(t);
152
149
  if (e.issues ||= o.issues, t.abortEarly) {
@@ -154,78 +151,78 @@ function m(e, t) {
154
151
  break;
155
152
  }
156
153
  }
157
- o.typed || (e.typed = !1), e.value[r] = o.value;
158
- } else if (a.fallback !== void 0) e.value[r] = /* @__PURE__ */ c(a);
159
- else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (i(this, "key", e, t, {
154
+ o.typed || (e.typed = !1), e.value[i] = o.value;
155
+ } else if (a.fallback !== void 0) e.value[i] = /* @__PURE__ */ s(a);
156
+ else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (r(this, "key", e, t, {
160
157
  input: void 0,
161
- expected: `"${r}"`,
158
+ expected: `"${i}"`,
162
159
  path: [{
163
160
  type: "object",
164
161
  origin: "key",
165
162
  input: n,
166
- key: r,
167
- value: n[r]
163
+ key: i,
164
+ value: n[i]
168
165
  }]
169
166
  }), t.abortEarly)) break;
170
167
  }
171
168
  if (!e.issues || !t.abortEarly) {
172
- for (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {
173
- i(this, "key", e, t, {
174
- input: r,
169
+ for (let i in n) if (!Object.prototype.hasOwnProperty.call(this.entries, i)) {
170
+ r(this, "key", e, t, {
171
+ input: i,
175
172
  expected: "never",
176
173
  path: [{
177
174
  type: "object",
178
175
  origin: "key",
179
176
  input: n,
180
- key: r,
181
- value: n[r]
177
+ key: i,
178
+ value: n[i]
182
179
  }]
183
180
  });
184
181
  break;
185
182
  }
186
183
  }
187
- } else i(this, "type", e, t);
184
+ } else r(this, "type", e, t);
188
185
  return e;
189
186
  }
190
187
  });
191
188
  }
192
189
  /* @__NO_SIDE_EFFECTS__ */
193
- function h(e) {
194
- return s({
190
+ function m(e) {
191
+ return o({
195
192
  kind: "schema",
196
193
  type: "string",
197
- reference: h,
194
+ reference: m,
198
195
  expects: "string",
199
196
  async: !1,
200
197
  message: e,
201
198
  "~run"(e, t) {
202
- return typeof e.value == "string" ? e.typed = !0 : i(this, "type", e, t), e;
199
+ return typeof e.value == "string" ? e.typed = !0 : r(this, "type", e, t), e;
203
200
  }
204
201
  });
205
202
  }
206
203
  /* @__NO_SIDE_EFFECTS__ */
207
- function g(e) {
204
+ function h(e) {
208
205
  let t;
209
206
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
210
207
  else t = n.issues;
211
208
  return t;
212
209
  }
213
210
  /* @__NO_SIDE_EFFECTS__ */
214
- function _(e, t) {
215
- return s({
211
+ function g(e, t) {
212
+ return o({
216
213
  kind: "schema",
217
214
  type: "union",
218
- reference: _,
219
- expects: /* @__PURE__ */ o(e.map((e) => e.expects), "|"),
215
+ reference: g,
216
+ expects: /* @__PURE__ */ a(e.map((e) => e.expects), "|"),
220
217
  async: !1,
221
218
  options: e,
222
219
  message: t,
223
220
  "~run"(e, t) {
224
- let n, r, a;
225
- for (let i of this.options) {
226
- let o = i["~run"]({ value: e.value }, t);
221
+ let n, i, a;
222
+ for (let r of this.options) {
223
+ let o = r["~run"]({ value: e.value }, t);
227
224
  if (o.typed) {
228
- if (o.issues) r ? r.push(o) : r = [o];
225
+ if (o.issues) i ? i.push(o) : i = [o];
229
226
  else {
230
227
  n = o;
231
228
  break;
@@ -233,28 +230,28 @@ function _(e, t) {
233
230
  } else a ? a.push(o) : a = [o];
234
231
  }
235
232
  if (n) return n;
236
- if (r) {
237
- if (r.length === 1) return r[0];
238
- i(this, "type", e, t, { issues: /* @__PURE__ */ g(r) }), e.typed = !0;
233
+ if (i) {
234
+ if (i.length === 1) return i[0];
235
+ r(this, "type", e, t, { issues: /* @__PURE__ */ h(i) }), e.typed = !0;
239
236
  } else if (a?.length === 1) return a[0];
240
- else i(this, "type", e, t, { issues: /* @__PURE__ */ g(a) });
237
+ else r(this, "type", e, t, { issues: /* @__PURE__ */ h(a) });
241
238
  return e;
242
239
  }
243
240
  });
244
241
  }
245
- var v = {
246
- id: /* @__PURE__ */ h(),
247
- label: /* @__PURE__ */ m({
248
- en: /* @__PURE__ */ p(/* @__PURE__ */ h()),
249
- es: /* @__PURE__ */ p(/* @__PURE__ */ h())
242
+ var _ = {
243
+ id: /* @__PURE__ */ m(),
244
+ label: /* @__PURE__ */ p({
245
+ en: /* @__PURE__ */ f(/* @__PURE__ */ m()),
246
+ es: /* @__PURE__ */ f(/* @__PURE__ */ m())
250
247
  }),
251
- description: /* @__PURE__ */ m({
252
- en: /* @__PURE__ */ p(/* @__PURE__ */ h()),
253
- es: /* @__PURE__ */ p(/* @__PURE__ */ h())
248
+ description: /* @__PURE__ */ p({
249
+ en: /* @__PURE__ */ f(/* @__PURE__ */ m()),
250
+ es: /* @__PURE__ */ f(/* @__PURE__ */ m())
254
251
  }),
255
- icon: /* @__PURE__ */ d(/* @__PURE__ */ h()),
256
- iconDark: /* @__PURE__ */ d(/* @__PURE__ */ h())
257
- }, y = (e) => /* @__PURE__ */ _(e.map((e) => /* @__PURE__ */ u(e))), b = y([
252
+ icon: /* @__PURE__ */ u(/* @__PURE__ */ m()),
253
+ iconDark: /* @__PURE__ */ u(/* @__PURE__ */ m())
254
+ }, v = (e) => /* @__PURE__ */ g(e.map((e) => /* @__PURE__ */ l(e))), y = v([
258
255
  "app",
259
256
  "connector",
260
257
  "connectorConnection",
@@ -276,31 +273,77 @@ var v = {
276
273
  "presenter",
277
274
  "presenterPresentation",
278
275
  "tool"
279
- ]), x = y([
276
+ ]), b = v([
280
277
  "danger",
281
278
  "success",
282
279
  "warning"
283
- ]), S = y([
280
+ ]), x = v([
284
281
  "alpha",
285
282
  "beta",
286
283
  "releaseCandidate",
287
284
  "generalAvailability"
288
- ]), C = /* @__PURE__ */ m({
289
- color: x,
290
- label: /* @__PURE__ */ h()
291
- }), w = {
292
- ...v,
293
- typeId: b
285
+ ]), S = /* @__PURE__ */ p({
286
+ color: b,
287
+ label: /* @__PURE__ */ m()
288
+ }), C = {
289
+ ..._,
290
+ typeId: y
294
291
  };
295
- ({ ...w });
296
- var T = {
297
- ...w,
298
- firstCreatedAt: /* @__PURE__ */ d(/* @__PURE__ */ f()),
299
- lastUpdatedAt: /* @__PURE__ */ d(/* @__PURE__ */ f()),
300
- status: /* @__PURE__ */ d(C),
301
- statusId: /* @__PURE__ */ d(S)
292
+ ({ ...C });
293
+ var w = {
294
+ ...C,
295
+ firstCreatedAt: /* @__PURE__ */ u(/* @__PURE__ */ d()),
296
+ lastUpdatedAt: /* @__PURE__ */ u(/* @__PURE__ */ d()),
297
+ status: /* @__PURE__ */ u(S),
298
+ statusId: /* @__PURE__ */ u(x)
302
299
  };
303
- ({ ...T }), e({ en: "Arrow" }), e({ en: "Avro" }), e({ en: "Delimited text (CSV, TSV…)" }), e({ en: "JSON" }), e({ en: "JSON Lines (JSONL)" }), e({ en: "Markdown (MD)" }), e({ en: "OpenDocument spreadsheet (ODS)" }), e({ en: "Parquet" }), e({ en: "SPSS (SAV)" }), e({ en: "SQLite" }), e({ en: "Excel (XLSX, XLSM)" }), e({ en: "XML" }), e({ en: "Newline" }), e({ en: "Carriage Return" }), e({ en: "Carriage Return/Newline" }), e({ en: "Colon" }), e({ en: "Comma" }), e({ en: "Exclamation Mark" }), e({ en: "Record Separator" }), e({ en: "Semicolon" }), e({ en: "Space" }), e({ en: "Tab" }), e({ en: "Underscore" }), e({ en: "Unit Separator" }), e({ en: "Vertical Bar" }), y([
300
+ ({ ...w });
301
+ var T = [
302
+ {
303
+ id: ",",
304
+ character: ","
305
+ },
306
+ {
307
+ id: ";",
308
+ character: ";"
309
+ },
310
+ {
311
+ id: " ",
312
+ character: " "
313
+ },
314
+ {
315
+ id: "|",
316
+ character: "|"
317
+ },
318
+ {
319
+ id: " ",
320
+ character: " "
321
+ },
322
+ {
323
+ id: ":",
324
+ character: ":"
325
+ },
326
+ {
327
+ id: "_",
328
+ character: "_"
329
+ },
330
+ {
331
+ id: "!",
332
+ character: "!"
333
+ },
334
+ {
335
+ id: "0x1F",
336
+ character: ""
337
+ },
338
+ {
339
+ id: "0x1E",
340
+ character: ""
341
+ }
342
+ ];
343
+ function E(e) {
344
+ return T.find(({ id: t }) => t === e)?.character ?? e;
345
+ }
346
+ v([
304
347
  "app",
305
348
  "engine",
306
349
  "connector",
@@ -308,14 +351,14 @@ var T = {
308
351
  "presenter",
309
352
  "tool"
310
353
  ]);
311
- var E = {
312
- ...T,
313
- vendorAccountURL: /* @__PURE__ */ d(/* @__PURE__ */ h()),
314
- vendorDocumentationURL: /* @__PURE__ */ d(/* @__PURE__ */ h()),
315
- vendorHomeURL: /* @__PURE__ */ d(/* @__PURE__ */ h()),
316
- version: /* @__PURE__ */ h()
354
+ var D = {
355
+ ...w,
356
+ vendorAccountURL: /* @__PURE__ */ u(/* @__PURE__ */ m()),
357
+ vendorDocumentationURL: /* @__PURE__ */ u(/* @__PURE__ */ m()),
358
+ vendorHomeURL: /* @__PURE__ */ u(/* @__PURE__ */ m()),
359
+ version: /* @__PURE__ */ m()
317
360
  };
318
- ({ ...E }), y([
361
+ ({ ...D }), v([
319
362
  "abortOperation",
320
363
  "auditObjectContent",
321
364
  "closeStore",
@@ -332,484 +375,844 @@ var E = {
332
375
  "previewObject",
333
376
  "queryRecords",
334
377
  "removeRecords",
335
- "retrieveChunks",
336
378
  "retrieveRecords",
337
379
  "upsertRecords"
338
- ]), y([
380
+ ]), v([
339
381
  "application",
340
382
  "curatedDataset",
341
383
  "database",
342
384
  "fileStore"
343
- ]), y([
385
+ ]), v([
344
386
  "apiEndpoint",
345
387
  "file",
346
388
  "table"
347
- ]), y([
389
+ ]), v([
348
390
  "bidirectional",
349
391
  "destination",
350
392
  "source",
351
393
  "unknown"
352
- ]), y([
394
+ ]), v([
353
395
  "apiKey",
354
396
  "disabled",
355
397
  "oAuth2",
356
398
  "none"
357
- ]), { ...E };
358
- var D = {
399
+ ]), { ...D };
400
+ var O = {
401
+ "armscii-8": {
402
+ id: "armscii-8",
403
+ groupId: "armenian",
404
+ isDetectable: !1,
405
+ textDecoderId: null,
406
+ iconvLiteDecoderId: "armscii8"
407
+ },
359
408
  ascii: {
360
409
  id: "ascii",
361
410
  groupId: null,
362
- decoderId: "windows-1252"
411
+ isDetectable: !0,
412
+ textDecoderId: "windows-1252",
413
+ iconvLiteDecoderId: "ascii"
363
414
  },
364
415
  big5: {
365
416
  id: "big5",
366
417
  groupId: "chineseTraditional",
367
- decoderId: "big5"
418
+ isDetectable: !0,
419
+ textDecoderId: "big5",
420
+ iconvLiteDecoderId: "big5hkscs"
421
+ },
422
+ "cesu-8": {
423
+ id: "cesu-8",
424
+ groupId: "unicode",
425
+ isDetectable: !1,
426
+ textDecoderId: null,
427
+ iconvLiteDecoderId: "cesu8"
368
428
  },
369
429
  cp273: {
370
430
  id: "cp273",
371
431
  groupId: "western",
372
- decoderId: null
432
+ isDetectable: !0,
433
+ textDecoderId: null,
434
+ iconvLiteDecoderId: null
373
435
  },
374
436
  cp424: {
375
437
  id: "cp424",
376
438
  groupId: "hebrew",
377
- decoderId: null
439
+ isDetectable: !0,
440
+ textDecoderId: null,
441
+ iconvLiteDecoderId: null
378
442
  },
379
443
  cp437: {
380
444
  id: "cp437",
381
445
  groupId: "western",
382
- decoderId: null
446
+ isDetectable: !0,
447
+ textDecoderId: null,
448
+ iconvLiteDecoderId: "cp437"
383
449
  },
384
450
  cp500: {
385
451
  id: "cp500",
386
452
  groupId: "western",
387
- decoderId: null
453
+ isDetectable: !0,
454
+ textDecoderId: null,
455
+ iconvLiteDecoderId: null
388
456
  },
389
457
  cp720: {
390
458
  id: "cp720",
391
459
  groupId: "arabic",
392
- decoderId: null
460
+ isDetectable: !0,
461
+ textDecoderId: null,
462
+ iconvLiteDecoderId: "cp720"
393
463
  },
394
464
  cp737: {
395
465
  id: "cp737",
396
466
  groupId: "greek",
397
- decoderId: null
467
+ isDetectable: !0,
468
+ textDecoderId: null,
469
+ iconvLiteDecoderId: "cp737"
398
470
  },
399
471
  cp775: {
400
472
  id: "cp775",
401
473
  groupId: "baltic",
402
- decoderId: null
474
+ isDetectable: !0,
475
+ textDecoderId: null,
476
+ iconvLiteDecoderId: "cp775"
477
+ },
478
+ cp808: {
479
+ id: "cp808",
480
+ groupId: "cyrillic",
481
+ isDetectable: !1,
482
+ textDecoderId: null,
483
+ iconvLiteDecoderId: "cp808"
403
484
  },
404
485
  cp850: {
405
486
  id: "cp850",
406
487
  groupId: "western",
407
- decoderId: null
488
+ isDetectable: !0,
489
+ textDecoderId: null,
490
+ iconvLiteDecoderId: "cp850"
408
491
  },
409
492
  cp852: {
410
493
  id: "cp852",
411
494
  groupId: "centralEuropean",
412
- decoderId: null
495
+ isDetectable: !0,
496
+ textDecoderId: null,
497
+ iconvLiteDecoderId: "cp852"
413
498
  },
414
499
  cp856: {
415
500
  id: "cp856",
416
501
  groupId: "hebrew",
417
- decoderId: null
502
+ isDetectable: !0,
503
+ textDecoderId: null,
504
+ iconvLiteDecoderId: "cp856"
418
505
  },
419
506
  cp857: {
420
507
  id: "cp857",
421
508
  groupId: "turkish",
422
- decoderId: null
509
+ isDetectable: !0,
510
+ textDecoderId: null,
511
+ iconvLiteDecoderId: "cp857"
423
512
  },
424
513
  cp858: {
425
514
  id: "cp858",
426
515
  groupId: "western",
427
- decoderId: null
516
+ isDetectable: !0,
517
+ textDecoderId: null,
518
+ iconvLiteDecoderId: "cp858"
428
519
  },
429
520
  cp860: {
430
521
  id: "cp860",
431
522
  groupId: "western",
432
- decoderId: null
523
+ isDetectable: !0,
524
+ textDecoderId: null,
525
+ iconvLiteDecoderId: "cp860"
433
526
  },
434
527
  cp861: {
435
528
  id: "cp861",
436
529
  groupId: "nordic",
437
- decoderId: null
530
+ isDetectable: !0,
531
+ textDecoderId: null,
532
+ iconvLiteDecoderId: "cp861"
438
533
  },
439
534
  cp862: {
440
535
  id: "cp862",
441
536
  groupId: "hebrew",
442
- decoderId: null
537
+ isDetectable: !0,
538
+ textDecoderId: null,
539
+ iconvLiteDecoderId: "cp862"
443
540
  },
444
541
  cp863: {
445
542
  id: "cp863",
446
543
  groupId: "western",
447
- decoderId: null
544
+ isDetectable: !0,
545
+ textDecoderId: null,
546
+ iconvLiteDecoderId: "cp863"
448
547
  },
449
548
  cp864: {
450
549
  id: "cp864",
451
550
  groupId: "arabic",
452
- decoderId: null
551
+ isDetectable: !0,
552
+ textDecoderId: null,
553
+ iconvLiteDecoderId: "cp864"
453
554
  },
454
555
  cp865: {
455
556
  id: "cp865",
456
557
  groupId: "nordic",
457
- decoderId: null
558
+ isDetectable: !0,
559
+ textDecoderId: null,
560
+ iconvLiteDecoderId: "cp865"
458
561
  },
459
562
  cp869: {
460
563
  id: "cp869",
461
564
  groupId: "greek",
462
- decoderId: null
565
+ isDetectable: !0,
566
+ textDecoderId: null,
567
+ iconvLiteDecoderId: "cp869"
463
568
  },
464
569
  cp874: {
465
570
  id: "cp874",
466
571
  groupId: "thai",
467
- decoderId: "windows-874"
572
+ isDetectable: !0,
573
+ textDecoderId: "windows-874",
574
+ iconvLiteDecoderId: "windows874"
468
575
  },
469
576
  cp875: {
470
577
  id: "cp875",
471
578
  groupId: "greek",
472
- decoderId: null
579
+ isDetectable: !0,
580
+ textDecoderId: null,
581
+ iconvLiteDecoderId: null
582
+ },
583
+ cp922: {
584
+ id: "cp922",
585
+ groupId: "baltic",
586
+ isDetectable: !1,
587
+ textDecoderId: null,
588
+ iconvLiteDecoderId: "cp922"
473
589
  },
474
590
  cp932: {
475
591
  id: "cp932",
476
592
  groupId: "japanese",
477
- decoderId: "shift_jis"
593
+ isDetectable: !0,
594
+ textDecoderId: "shift_jis",
595
+ iconvLiteDecoderId: "shiftjis"
596
+ },
597
+ cp936: {
598
+ id: "cp936",
599
+ groupId: "chineseSimplified",
600
+ isDetectable: !1,
601
+ textDecoderId: null,
602
+ iconvLiteDecoderId: "cp936"
478
603
  },
479
604
  cp949: {
480
605
  id: "cp949",
481
606
  groupId: "korean",
482
- decoderId: "euc-kr"
607
+ isDetectable: !0,
608
+ textDecoderId: "euc-kr",
609
+ iconvLiteDecoderId: "cp949"
610
+ },
611
+ cp950: {
612
+ id: "cp950",
613
+ groupId: "chineseTraditional",
614
+ isDetectable: !1,
615
+ textDecoderId: null,
616
+ iconvLiteDecoderId: "cp950"
483
617
  },
484
618
  cp1006: {
485
619
  id: "cp1006",
486
620
  groupId: "arabic",
487
- decoderId: null
621
+ isDetectable: !0,
622
+ textDecoderId: null,
623
+ iconvLiteDecoderId: null
488
624
  },
489
625
  cp1026: {
490
626
  id: "cp1026",
491
627
  groupId: "turkish",
492
- decoderId: null
628
+ isDetectable: !0,
629
+ textDecoderId: null,
630
+ iconvLiteDecoderId: null
631
+ },
632
+ cp1046: {
633
+ id: "cp1046",
634
+ groupId: "arabic",
635
+ isDetectable: !1,
636
+ textDecoderId: null,
637
+ iconvLiteDecoderId: "cp1046"
638
+ },
639
+ cp1124: {
640
+ id: "cp1124",
641
+ groupId: "cyrillic",
642
+ isDetectable: !1,
643
+ textDecoderId: null,
644
+ iconvLiteDecoderId: "cp1124"
493
645
  },
494
646
  cp1125: {
495
647
  id: "cp1125",
496
648
  groupId: "cyrillic",
497
- decoderId: null
649
+ isDetectable: !0,
650
+ textDecoderId: null,
651
+ iconvLiteDecoderId: "cp1125"
652
+ },
653
+ cp1129: {
654
+ id: "cp1129",
655
+ groupId: "vietnamese",
656
+ isDetectable: !1,
657
+ textDecoderId: null,
658
+ iconvLiteDecoderId: "cp1129"
659
+ },
660
+ cp1133: {
661
+ id: "cp1133",
662
+ groupId: "lao",
663
+ isDetectable: !1,
664
+ textDecoderId: null,
665
+ iconvLiteDecoderId: "cp1133"
498
666
  },
499
667
  cp1140: {
500
668
  id: "cp1140",
501
669
  groupId: "western",
502
- decoderId: null
670
+ isDetectable: !0,
671
+ textDecoderId: null,
672
+ iconvLiteDecoderId: null
673
+ },
674
+ cp1161: {
675
+ id: "cp1161",
676
+ groupId: "thai",
677
+ isDetectable: !1,
678
+ textDecoderId: null,
679
+ iconvLiteDecoderId: "cp1161"
680
+ },
681
+ cp1162: {
682
+ id: "cp1162",
683
+ groupId: "thai",
684
+ isDetectable: !1,
685
+ textDecoderId: null,
686
+ iconvLiteDecoderId: "cp1162"
687
+ },
688
+ cp1163: {
689
+ id: "cp1163",
690
+ groupId: "vietnamese",
691
+ isDetectable: !1,
692
+ textDecoderId: null,
693
+ iconvLiteDecoderId: "cp1163"
503
694
  },
504
695
  cp1258: {
505
696
  id: "cp1258",
506
697
  groupId: "vietnamese",
507
- decoderId: "windows-1258"
698
+ isDetectable: !0,
699
+ textDecoderId: "windows-1258",
700
+ iconvLiteDecoderId: "windows1258"
508
701
  },
509
702
  "euc-jp": {
510
703
  id: "euc-jp",
511
704
  groupId: "japanese",
512
- decoderId: "euc-jp"
705
+ isDetectable: !0,
706
+ textDecoderId: "euc-jp",
707
+ iconvLiteDecoderId: "eucjp"
513
708
  },
514
709
  "euc-kr": {
515
710
  id: "euc-kr",
516
711
  groupId: "korean",
517
- decoderId: "euc-kr"
712
+ isDetectable: !0,
713
+ textDecoderId: "euc-kr",
714
+ iconvLiteDecoderId: "cp949"
518
715
  },
519
716
  gb18030: {
520
717
  id: "gb18030",
521
718
  groupId: "chineseSimplified",
522
- decoderId: "gb18030"
719
+ isDetectable: !0,
720
+ textDecoderId: "gb18030",
721
+ iconvLiteDecoderId: "gb18030"
722
+ },
723
+ gbk: {
724
+ id: "gbk",
725
+ groupId: "chineseSimplified",
726
+ isDetectable: !1,
727
+ textDecoderId: "gbk",
728
+ iconvLiteDecoderId: "gbk"
729
+ },
730
+ "georgian-academy": {
731
+ id: "georgian-academy",
732
+ groupId: "georgian",
733
+ isDetectable: !1,
734
+ textDecoderId: null,
735
+ iconvLiteDecoderId: "georgianacademy"
736
+ },
737
+ "georgian-ps": {
738
+ id: "georgian-ps",
739
+ groupId: "georgian",
740
+ isDetectable: !1,
741
+ textDecoderId: null,
742
+ iconvLiteDecoderId: "georgianps"
523
743
  },
524
744
  "hp-roman8": {
525
745
  id: "hp-roman8",
526
746
  groupId: "western",
527
- decoderId: null
747
+ isDetectable: !0,
748
+ textDecoderId: null,
749
+ iconvLiteDecoderId: "hproman8"
528
750
  },
529
751
  "hz-gb-2312": {
530
752
  id: "hz-gb-2312",
531
753
  groupId: "chineseSimplified",
532
- decoderId: null
754
+ isDetectable: !0,
755
+ textDecoderId: null,
756
+ iconvLiteDecoderId: null
533
757
  },
534
758
  ibm855: {
535
759
  id: "ibm855",
536
760
  groupId: "cyrillic",
537
- decoderId: null
761
+ isDetectable: !0,
762
+ textDecoderId: null,
763
+ iconvLiteDecoderId: "cp855"
538
764
  },
539
765
  ibm866: {
540
766
  id: "ibm866",
541
767
  groupId: "cyrillic",
542
- decoderId: "ibm866"
768
+ isDetectable: !0,
769
+ textDecoderId: "ibm866",
770
+ iconvLiteDecoderId: "cp866"
543
771
  },
544
772
  "iso-2022-jp": {
545
773
  id: "iso-2022-jp",
546
774
  groupId: "japanese",
547
- decoderId: "iso-2022-jp"
775
+ isDetectable: !0,
776
+ textDecoderId: "iso-2022-jp",
777
+ iconvLiteDecoderId: null
548
778
  },
549
779
  "iso-2022-kr": {
550
780
  id: "iso-2022-kr",
551
781
  groupId: "korean",
552
- decoderId: null
782
+ isDetectable: !0,
783
+ textDecoderId: null,
784
+ iconvLiteDecoderId: null
553
785
  },
554
786
  "iso-8859-1": {
555
787
  id: "iso-8859-1",
556
788
  groupId: "western",
557
- decoderId: "windows-1252"
789
+ isDetectable: !0,
790
+ textDecoderId: "windows-1252",
791
+ iconvLiteDecoderId: "iso88591"
558
792
  },
559
793
  "iso-8859-2": {
560
794
  id: "iso-8859-2",
561
795
  groupId: "centralEuropean",
562
- decoderId: "iso-8859-2"
796
+ isDetectable: !0,
797
+ textDecoderId: "iso-8859-2",
798
+ iconvLiteDecoderId: "iso88592"
563
799
  },
564
800
  "iso-8859-5": {
565
801
  id: "iso-8859-5",
566
802
  groupId: "cyrillic",
567
- decoderId: "iso-8859-5"
803
+ isDetectable: !0,
804
+ textDecoderId: "iso-8859-5",
805
+ iconvLiteDecoderId: "iso88595"
568
806
  },
569
807
  "iso-8859-6": {
570
808
  id: "iso-8859-6",
571
809
  groupId: "arabic",
572
- decoderId: "iso-8859-6"
810
+ isDetectable: !0,
811
+ textDecoderId: "iso-8859-6",
812
+ iconvLiteDecoderId: "iso88596"
573
813
  },
574
814
  "iso-8859-7": {
575
815
  id: "iso-8859-7",
576
816
  groupId: "greek",
577
- decoderId: "iso-8859-7"
817
+ isDetectable: !0,
818
+ textDecoderId: "iso-8859-7",
819
+ iconvLiteDecoderId: "iso88597"
578
820
  },
579
821
  "iso-8859-8": {
580
822
  id: "iso-8859-8",
581
823
  groupId: "hebrew",
582
- decoderId: "iso-8859-8-i"
824
+ isDetectable: !0,
825
+ textDecoderId: "iso-8859-8-i",
826
+ iconvLiteDecoderId: "iso88598"
583
827
  },
584
828
  "iso-8859-9": {
585
829
  id: "iso-8859-9",
586
830
  groupId: "turkish",
587
- decoderId: "windows-1254"
831
+ isDetectable: !0,
832
+ textDecoderId: "windows-1254",
833
+ iconvLiteDecoderId: "iso88599"
834
+ },
835
+ "iso-8859-11": {
836
+ id: "iso-8859-11",
837
+ groupId: "thai",
838
+ isDetectable: !1,
839
+ textDecoderId: "windows-874",
840
+ iconvLiteDecoderId: "iso885911"
588
841
  },
589
842
  "iso-8859-13": {
590
843
  id: "iso-8859-13",
591
844
  groupId: "baltic",
592
- decoderId: "iso-8859-13"
845
+ isDetectable: !0,
846
+ textDecoderId: "iso-8859-13",
847
+ iconvLiteDecoderId: "iso885913"
848
+ },
849
+ "iso646-cn": {
850
+ id: "iso646-cn",
851
+ groupId: "chineseSimplified",
852
+ isDetectable: !1,
853
+ textDecoderId: null,
854
+ iconvLiteDecoderId: "iso646cn"
855
+ },
856
+ "iso646-jp": {
857
+ id: "iso646-jp",
858
+ groupId: "japanese",
859
+ isDetectable: !1,
860
+ textDecoderId: null,
861
+ iconvLiteDecoderId: "iso646jp"
593
862
  },
594
863
  iso2022_jp_2004: {
595
864
  id: "iso2022_jp_2004",
596
865
  groupId: "japanese",
597
- decoderId: null
866
+ isDetectable: !0,
867
+ textDecoderId: null,
868
+ iconvLiteDecoderId: null
598
869
  },
599
870
  iso2022_jp_ext: {
600
871
  id: "iso2022_jp_ext",
601
872
  groupId: "japanese",
602
- decoderId: null
873
+ isDetectable: !0,
874
+ textDecoderId: null,
875
+ iconvLiteDecoderId: null
603
876
  },
604
877
  "iso8859-3": {
605
878
  id: "iso8859-3",
606
879
  groupId: "southernEuropean",
607
- decoderId: "iso-8859-3"
880
+ isDetectable: !0,
881
+ textDecoderId: "iso-8859-3",
882
+ iconvLiteDecoderId: "iso88593"
608
883
  },
609
884
  "iso8859-4": {
610
885
  id: "iso8859-4",
611
886
  groupId: "baltic",
612
- decoderId: "iso-8859-4"
887
+ isDetectable: !0,
888
+ textDecoderId: "iso-8859-4",
889
+ iconvLiteDecoderId: "iso88594"
613
890
  },
614
891
  "iso8859-10": {
615
892
  id: "iso8859-10",
616
893
  groupId: "nordic",
617
- decoderId: "iso-8859-10"
894
+ isDetectable: !0,
895
+ textDecoderId: "iso-8859-10",
896
+ iconvLiteDecoderId: "iso885910"
618
897
  },
619
898
  "iso8859-14": {
620
899
  id: "iso8859-14",
621
900
  groupId: "celtic",
622
- decoderId: "iso-8859-14"
901
+ isDetectable: !0,
902
+ textDecoderId: "iso-8859-14",
903
+ iconvLiteDecoderId: "iso885914"
623
904
  },
624
905
  "iso8859-15": {
625
906
  id: "iso8859-15",
626
907
  groupId: "western",
627
- decoderId: "iso-8859-15"
908
+ isDetectable: !0,
909
+ textDecoderId: "iso-8859-15",
910
+ iconvLiteDecoderId: "iso885915"
628
911
  },
629
912
  "iso8859-16": {
630
913
  id: "iso8859-16",
631
- groupId: "romanian",
632
- decoderId: "iso-8859-16"
914
+ groupId: "southEasternEuropean",
915
+ isDetectable: !0,
916
+ textDecoderId: "iso-8859-16",
917
+ iconvLiteDecoderId: "iso885916"
633
918
  },
634
919
  johab: {
635
920
  id: "johab",
636
921
  groupId: "korean",
637
- decoderId: null
922
+ isDetectable: !0,
923
+ textDecoderId: null,
924
+ iconvLiteDecoderId: null
638
925
  },
639
926
  "koi8-r": {
640
927
  id: "koi8-r",
641
928
  groupId: "cyrillic",
642
- decoderId: "koi8-r"
929
+ isDetectable: !0,
930
+ textDecoderId: "koi8-r",
931
+ iconvLiteDecoderId: "koi8r"
932
+ },
933
+ "koi8-ru": {
934
+ id: "koi8-ru",
935
+ groupId: "cyrillic",
936
+ isDetectable: !1,
937
+ textDecoderId: "koi8-u",
938
+ iconvLiteDecoderId: "koi8ru"
643
939
  },
644
940
  "koi8-t": {
645
941
  id: "koi8-t",
646
942
  groupId: "cyrillic",
647
- decoderId: null
943
+ isDetectable: !0,
944
+ textDecoderId: null,
945
+ iconvLiteDecoderId: "koi8t"
648
946
  },
649
947
  "koi8-u": {
650
948
  id: "koi8-u",
651
949
  groupId: "cyrillic",
652
- decoderId: "koi8-u"
950
+ isDetectable: !0,
951
+ textDecoderId: "koi8-u",
952
+ iconvLiteDecoderId: "koi8u"
653
953
  },
654
954
  kz1048: {
655
955
  id: "kz1048",
656
956
  groupId: "cyrillic",
657
- decoderId: null
957
+ isDetectable: !0,
958
+ textDecoderId: null,
959
+ iconvLiteDecoderId: "rk1048"
960
+ },
961
+ maccroatian: {
962
+ id: "maccroatian",
963
+ groupId: "centralEuropean",
964
+ isDetectable: !1,
965
+ textDecoderId: null,
966
+ iconvLiteDecoderId: "maccroatian"
658
967
  },
659
968
  maccyrillic: {
660
969
  id: "maccyrillic",
661
970
  groupId: "cyrillic",
662
- decoderId: "x-mac-cyrillic"
971
+ isDetectable: !0,
972
+ textDecoderId: "x-mac-cyrillic",
973
+ iconvLiteDecoderId: "maccyrillic"
663
974
  },
664
975
  macgreek: {
665
976
  id: "macgreek",
666
977
  groupId: "greek",
667
- decoderId: null
978
+ isDetectable: !0,
979
+ textDecoderId: null,
980
+ iconvLiteDecoderId: "macgreek"
668
981
  },
669
982
  maciceland: {
670
983
  id: "maciceland",
671
984
  groupId: "nordic",
672
- decoderId: null
985
+ isDetectable: !0,
986
+ textDecoderId: null,
987
+ iconvLiteDecoderId: "maciceland"
673
988
  },
674
989
  maclatin2: {
675
990
  id: "maclatin2",
676
991
  groupId: "centralEuropean",
677
- decoderId: null
992
+ isDetectable: !0,
993
+ textDecoderId: null,
994
+ iconvLiteDecoderId: "maccenteuro"
678
995
  },
679
996
  macroman: {
680
997
  id: "macroman",
681
998
  groupId: "western",
682
- decoderId: "macintosh"
999
+ isDetectable: !0,
1000
+ textDecoderId: "macintosh",
1001
+ iconvLiteDecoderId: "macroman"
1002
+ },
1003
+ macromania: {
1004
+ id: "macromania",
1005
+ groupId: "southEasternEuropean",
1006
+ isDetectable: !1,
1007
+ textDecoderId: null,
1008
+ iconvLiteDecoderId: "macromania"
1009
+ },
1010
+ macthai: {
1011
+ id: "macthai",
1012
+ groupId: "thai",
1013
+ isDetectable: !1,
1014
+ textDecoderId: null,
1015
+ iconvLiteDecoderId: "macthai"
683
1016
  },
684
1017
  macturkish: {
685
1018
  id: "macturkish",
686
1019
  groupId: "turkish",
687
- decoderId: null
1020
+ isDetectable: !0,
1021
+ textDecoderId: null,
1022
+ iconvLiteDecoderId: "macturkish"
1023
+ },
1024
+ macukraine: {
1025
+ id: "macukraine",
1026
+ groupId: "cyrillic",
1027
+ isDetectable: !1,
1028
+ textDecoderId: null,
1029
+ iconvLiteDecoderId: "macukraine"
1030
+ },
1031
+ mik: {
1032
+ id: "mik",
1033
+ groupId: "cyrillic",
1034
+ isDetectable: !1,
1035
+ textDecoderId: null,
1036
+ iconvLiteDecoderId: "mik"
688
1037
  },
689
1038
  ptcp154: {
690
1039
  id: "ptcp154",
691
1040
  groupId: "cyrillic",
692
- decoderId: null
1041
+ isDetectable: !0,
1042
+ textDecoderId: null,
1043
+ iconvLiteDecoderId: "pt154"
693
1044
  },
694
1045
  shift_jis: {
695
1046
  id: "shift_jis",
696
1047
  groupId: "japanese",
697
- decoderId: "shift_jis"
1048
+ isDetectable: !0,
1049
+ textDecoderId: "shift_jis",
1050
+ iconvLiteDecoderId: "shiftjis"
1051
+ },
1052
+ tcvn: {
1053
+ id: "tcvn",
1054
+ groupId: "vietnamese",
1055
+ isDetectable: !1,
1056
+ textDecoderId: null,
1057
+ iconvLiteDecoderId: "tcvn"
698
1058
  },
699
1059
  "tis-620": {
700
1060
  id: "tis-620",
701
1061
  groupId: "thai",
702
- decoderId: "windows-874"
1062
+ isDetectable: !0,
1063
+ textDecoderId: "windows-874",
1064
+ iconvLiteDecoderId: "tis620"
703
1065
  },
704
1066
  "utf-7": {
705
1067
  id: "utf-7",
706
- groupId: "other",
707
- decoderId: null
1068
+ groupId: "unicode",
1069
+ isDetectable: !0,
1070
+ textDecoderId: null,
1071
+ iconvLiteDecoderId: "utf7"
708
1072
  },
709
1073
  "utf-8": {
710
1074
  id: "utf-8",
711
- groupId: null,
712
- decoderId: "utf-8"
1075
+ groupId: "unicode",
1076
+ isDetectable: !0,
1077
+ textDecoderId: "utf-8",
1078
+ iconvLiteDecoderId: "utf-8"
713
1079
  },
714
1080
  "utf-8-sig": {
715
1081
  id: "utf-8-sig",
716
- groupId: null,
717
- decoderId: "utf-8"
1082
+ groupId: "unicode",
1083
+ isDetectable: !0,
1084
+ textDecoderId: "utf-8",
1085
+ iconvLiteDecoderId: "utf-8"
718
1086
  },
719
1087
  "utf-16": {
720
1088
  id: "utf-16",
721
- groupId: "unicode16",
722
- decoderId: null
1089
+ groupId: "unicode",
1090
+ isDetectable: !0,
1091
+ textDecoderId: null,
1092
+ iconvLiteDecoderId: "utf16"
723
1093
  },
724
1094
  "utf-16-be": {
725
1095
  id: "utf-16-be",
726
- groupId: "unicode16",
727
- decoderId: "utf-16be"
1096
+ groupId: "unicode",
1097
+ isDetectable: !0,
1098
+ textDecoderId: "utf-16be",
1099
+ iconvLiteDecoderId: "utf16be"
728
1100
  },
729
1101
  "utf-16-le": {
730
1102
  id: "utf-16-le",
731
- groupId: "unicode16",
732
- decoderId: "utf-16le"
1103
+ groupId: "unicode",
1104
+ isDetectable: !0,
1105
+ textDecoderId: "utf-16le",
1106
+ iconvLiteDecoderId: "utf16le"
733
1107
  },
734
1108
  "utf-32": {
735
1109
  id: "utf-32",
736
- groupId: "unicode32",
737
- decoderId: null
1110
+ groupId: "unicode",
1111
+ isDetectable: !0,
1112
+ textDecoderId: null,
1113
+ iconvLiteDecoderId: "utf32"
738
1114
  },
739
1115
  "utf-32-be": {
740
1116
  id: "utf-32-be",
741
- groupId: "unicode32",
742
- decoderId: null
1117
+ groupId: "unicode",
1118
+ isDetectable: !0,
1119
+ textDecoderId: null,
1120
+ iconvLiteDecoderId: "utf32be"
743
1121
  },
744
1122
  "utf-32-le": {
745
1123
  id: "utf-32-le",
746
- groupId: "unicode32",
747
- decoderId: null
1124
+ groupId: "unicode",
1125
+ isDetectable: !0,
1126
+ textDecoderId: null,
1127
+ iconvLiteDecoderId: "utf32le"
1128
+ },
1129
+ viscii: {
1130
+ id: "viscii",
1131
+ groupId: "vietnamese",
1132
+ isDetectable: !1,
1133
+ textDecoderId: null,
1134
+ iconvLiteDecoderId: "viscii"
748
1135
  },
749
1136
  "windows-1250": {
750
1137
  id: "windows-1250",
751
1138
  groupId: "centralEuropean",
752
- decoderId: "windows-1250"
1139
+ isDetectable: !0,
1140
+ textDecoderId: "windows-1250",
1141
+ iconvLiteDecoderId: "windows1250"
753
1142
  },
754
1143
  "windows-1251": {
755
1144
  id: "windows-1251",
756
1145
  groupId: "cyrillic",
757
- decoderId: "windows-1251"
1146
+ isDetectable: !0,
1147
+ textDecoderId: "windows-1251",
1148
+ iconvLiteDecoderId: "windows1251"
758
1149
  },
759
1150
  "windows-1252": {
760
1151
  id: "windows-1252",
761
1152
  groupId: "western",
762
- decoderId: "windows-1252"
1153
+ isDetectable: !0,
1154
+ textDecoderId: "windows-1252",
1155
+ iconvLiteDecoderId: "windows1252"
763
1156
  },
764
1157
  "windows-1253": {
765
1158
  id: "windows-1253",
766
1159
  groupId: "greek",
767
- decoderId: "windows-1253"
1160
+ isDetectable: !0,
1161
+ textDecoderId: "windows-1253",
1162
+ iconvLiteDecoderId: "windows1253"
768
1163
  },
769
1164
  "windows-1254": {
770
1165
  id: "windows-1254",
771
1166
  groupId: "turkish",
772
- decoderId: "windows-1254"
1167
+ isDetectable: !0,
1168
+ textDecoderId: "windows-1254",
1169
+ iconvLiteDecoderId: "windows1254"
773
1170
  },
774
1171
  "windows-1255": {
775
1172
  id: "windows-1255",
776
1173
  groupId: "hebrew",
777
- decoderId: "windows-1255"
1174
+ isDetectable: !0,
1175
+ textDecoderId: "windows-1255",
1176
+ iconvLiteDecoderId: "windows1255"
778
1177
  },
779
1178
  "windows-1256": {
780
1179
  id: "windows-1256",
781
1180
  groupId: "arabic",
782
- decoderId: "windows-1256"
1181
+ isDetectable: !0,
1182
+ textDecoderId: "windows-1256",
1183
+ iconvLiteDecoderId: "windows1256"
783
1184
  },
784
1185
  "windows-1257": {
785
1186
  id: "windows-1257",
786
1187
  groupId: "baltic",
787
- decoderId: "windows-1257"
1188
+ isDetectable: !0,
1189
+ textDecoderId: "windows-1257",
1190
+ iconvLiteDecoderId: "windows1257"
788
1191
  }
789
1192
  };
790
- function O(e) {
791
- return Object.hasOwn(D, e);
792
- }
793
1193
  function k(e) {
794
- return O(e) ? D[e].decoderId ?? e : e;
1194
+ return Object.hasOwn(O, e);
1195
+ }
1196
+ function A(e) {
1197
+ return k(e) ? O[e].textDecoderId ?? e : e;
795
1198
  }
796
- var A = class extends Error {
1199
+ var j = class extends Error {
797
1200
  data;
798
1201
  locator;
799
1202
  constructor(e, t, n, r) {
800
1203
  super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
801
1204
  }
802
- }, j = class extends A {
1205
+ }, M = class extends j {
803
1206
  constructor(e, t, n, r) {
804
1207
  super(e, t, n, r), this.name = "ConnectorError";
805
1208
  }
806
1209
  };
807
- function M(e) {
1210
+ function N(e) {
808
1211
  try {
809
1212
  e();
810
1213
  } catch {}
811
1214
  }
812
- y([
1215
+ v([
813
1216
  "arrow",
814
1217
  "avro",
815
1218
  "dtv",
@@ -822,9 +1225,9 @@ y([
822
1225
  "sqlite",
823
1226
  "xlsx",
824
1227
  "xml"
825
- ]), { ...E };
826
- async function N(e, t, n) {
827
- let r = P(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await F(e, t.valueDelimiterIds, t.isComplete, n);
1228
+ ]), { ...D };
1229
+ async function P(e, t, n) {
1230
+ let r = F(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await I(e, t.valueDelimiterIds, t.isComplete, n);
828
1231
  return {
829
1232
  issues: i,
830
1233
  parsedRecords: a,
@@ -832,16 +1235,16 @@ async function N(e, t, n) {
832
1235
  valueDelimiterId: o
833
1236
  };
834
1237
  }
835
- function P(e) {
1238
+ function F(e) {
836
1239
  let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
837
1240
  return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
838
1241
  }
839
- async function F(e, t, n, r) {
1242
+ async function I(e, t, n, r) {
840
1243
  let i, a, o, s = [], c, l = !1;
841
1244
  for (let u of t) {
842
1245
  let { issues: t, records: d } = await r(e, u, n);
843
1246
  if (t.length > 0) {
844
- c = I(c, {
1247
+ c = L(c, {
845
1248
  delimiter: u,
846
1249
  issues: t,
847
1250
  records: d
@@ -849,7 +1252,7 @@ async function F(e, t, n, r) {
849
1252
  continue;
850
1253
  }
851
1254
  if (l = !0, d.length === 0) continue;
852
- let { averageValueCount: f, sumOfValueCountDiffs: p } = L(d);
1255
+ let { averageValueCount: f, sumOfValueCountDiffs: p } = R(d);
853
1256
  (a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);
854
1257
  }
855
1258
  if (!l && c != null) {
@@ -857,19 +1260,19 @@ async function F(e, t, n, r) {
857
1260
  return {
858
1261
  issues: t,
859
1262
  parsedRecords: n,
860
- valueDelimiterId: R(n) ? e : void 0
1263
+ valueDelimiterId: z(n) ? e : void 0
861
1264
  };
862
1265
  }
863
1266
  return {
864
1267
  issues: [],
865
1268
  parsedRecords: s,
866
- valueDelimiterId: i != null && R(s) ? i : void 0
1269
+ valueDelimiterId: i != null && z(s) ? i : void 0
867
1270
  };
868
1271
  }
869
- function I(e, t) {
1272
+ function L(e, t) {
870
1273
  return e == null || t.issues.length < e.issues.length ? t : e;
871
1274
  }
872
- function L(e) {
1275
+ function R(e) {
873
1276
  let t = 0, n = 0, r;
874
1277
  for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
875
1278
  return {
@@ -877,65 +1280,72 @@ function L(e) {
877
1280
  sumOfValueCountDiffs: n
878
1281
  };
879
1282
  }
880
- function R(e) {
1283
+ function z(e) {
881
1284
  let t = /* @__PURE__ */ new Map();
882
1285
  for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
883
1286
  let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
884
1287
  return n > 1 && r * 2 > e.length;
885
1288
  }
886
- y(["list"]), { ...E }, y([
1289
+ v(["list"]), { ...D }, v([
887
1290
  "list",
888
1291
  "render",
889
1292
  "setColorMode"
890
- ]), { ...E };
1293
+ ]), { ...D };
891
1294
  // src/index.ts
892
- var z = {
1295
+ var B = {
893
1296
  id: "rust-csv-core",
894
1297
  name: "Rust CSV Core",
895
1298
  version: "0.1.0"
896
- }, B = 1e4, V = 1048576, H = { rustBindingsPromise: void 0 }, U = class {
897
- config = z;
898
- async parseStream(e, t, n) {
899
- let { RecordReader: r } = await q();
1299
+ }, V = 1e4, H = 1048576, U = { rustBindingsPromise: void 0 }, W = class {
1300
+ config = B;
1301
+ async *parseStream(e, t) {
1302
+ let { RecordReader: n } = await J();
900
1303
  t.abortSignal.throwIfAborted();
901
- let i = new r(W(t.valueDelimiterId)), a = G(t.encodingId), o = Math.max(1, Math.floor(t.chunkSize ?? B)), s = e.getReader(), c = () => {
902
- M(() => void s.cancel(t.abortSignal.reason));
1304
+ let r = new n(G(t.valueDelimiterId)), i = K(t.encodingId), a = Math.max(1, Math.floor(t.chunkSize ?? V)), o = e.getReader(), s = () => {
1305
+ N(() => void o.cancel(t.abortSignal.reason));
903
1306
  };
904
- t.abortSignal.addEventListener("abort", c, { once: !0 });
905
- let l = [], u = async (e) => {
906
- for (let t of K(e)) {
907
- if (l.push(t), l.length < o) continue;
908
- let e = l;
909
- l = [], await n("parsingRecordArray", e);
1307
+ t.abortSignal.addEventListener("abort", s, { once: !0 });
1308
+ let c = [];
1309
+ function* l(e) {
1310
+ for (let t of q(e)) {
1311
+ if (c.push(t), c.length < a) continue;
1312
+ let e = c;
1313
+ c = [], yield {
1314
+ records: e,
1315
+ typeId: "parsingRecordArray"
1316
+ };
910
1317
  }
911
- };
1318
+ }
912
1319
  try {
913
- let e = await s.read();
1320
+ let e = await o.read();
914
1321
  for (; !e.done;) {
915
1322
  t.abortSignal.throwIfAborted();
916
- let n = a == null ? e.value : a.transcode(e.value);
917
- for (let e = 0; e < n.length; e += V) await u(i.pushChunk(n.subarray(e, e + V)));
918
- e = await s.read();
1323
+ let n = i == null ? e.value : i.transcode(e.value);
1324
+ for (let e = 0; e < n.length; e += H) yield* l(r.pushChunk(n.subarray(e, e + H)));
1325
+ e = await o.read();
919
1326
  }
920
- return t.abortSignal.throwIfAborted(), a != null && await u(i.pushChunk(a.finish())), await u(i.finish()), l.length > 0 && await n("parsingRecordArray", l), {
921
- byteCount: i.byteCount,
1327
+ return t.abortSignal.throwIfAborted(), i != null && (yield* l(r.pushChunk(i.finish()))), yield* l(r.finish()), c.length > 0 && (yield {
1328
+ records: c,
1329
+ typeId: "parsingRecordArray"
1330
+ }), {
1331
+ byteCount: r.byteCount,
922
1332
  commentLineCount: 0,
923
- emptyLineCount: i.emptyLineCount,
924
- lineCount: i.lineCount,
925
- nonUniformRecordCount: i.nonUniformRecordCount,
926
- recordCount: i.recordCount
1333
+ emptyLineCount: r.emptyLineCount,
1334
+ lineCount: r.lineCount,
1335
+ nonUniformRecordCount: r.nonUniformRecordCount,
1336
+ recordCount: r.recordCount
927
1337
  };
928
1338
  } finally {
929
- t.abortSignal.removeEventListener("abort", c), i.free(), s.releaseLock();
1339
+ t.abortSignal.removeEventListener("abort", s), r.free(), o.releaseLock();
930
1340
  }
931
1341
  }
932
1342
  async parseText(e, t) {
933
- let { RecordReader: n } = await q();
934
- return await N(e, t, (e, t) => {
935
- let r = new n(W(t));
1343
+ let { RecordReader: n } = await J();
1344
+ return await P(e, t, (e, t) => {
1345
+ let r = new n(G(t));
936
1346
  try {
937
- let t = K(r.pushChunk(new TextEncoder().encode(e)));
938
- return t.push(...K(r.finish())), Promise.resolve({
1347
+ let t = q(r.pushChunk(new TextEncoder().encode(e)));
1348
+ return t.push(...q(r.finish())), Promise.resolve({
939
1349
  issues: [],
940
1350
  records: t
941
1351
  });
@@ -945,7 +1355,7 @@ var z = {
945
1355
  });
946
1356
  }
947
1357
  async processWithTransferableStream(e, t = {}, n) {
948
- let r = await q(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = (e) => {
1358
+ let r = await J(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = (e) => {
949
1359
  s += e, n && n(e);
950
1360
  };
951
1361
  try {
@@ -955,11 +1365,11 @@ var z = {
955
1365
  durationMs: performance.now() - o
956
1366
  };
957
1367
  } catch (e) {
958
- throw new j("Failed to process CSV stream.", "dpuse-tool-rust-csv-core-parser|Tool|processWithTransferableStream", { cause: e });
1368
+ throw new M("Failed to process CSV stream.", "dpuse-tool-rust-csv-core-parser|Tool|processWithTransferableStream", { cause: e });
959
1369
  }
960
1370
  }
961
1371
  async processWithChunks(e, t = {}, n) {
962
- let { CsvSession: r } = await q(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = new r(i, a);
1372
+ let { CsvSession: r } = await J(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = new r(i, a);
963
1373
  try {
964
1374
  let t = e.getReader();
965
1375
  try {
@@ -979,19 +1389,17 @@ var z = {
979
1389
  t.releaseLock();
980
1390
  }
981
1391
  } catch (e) {
982
- throw new j("Failed to process CSV chunks.", "dpuse-tool-rust-csv-core-parser|Tool|processWithChunks", { cause: e });
1392
+ throw new M("Failed to process CSV chunks.", "dpuse-tool-rust-csv-core-parser|Tool|processWithChunks", { cause: e });
983
1393
  }
984
1394
  }
985
1395
  };
986
- function W(e) {
987
- if (e === "0x1E") return 30;
988
- if (e === "0x1F") return 31;
989
- let t = e.codePointAt(0);
1396
+ function G(e) {
1397
+ let t = E(e).codePointAt(0);
990
1398
  if (t == null || t > 127) throw Error(`Delimiter '${e}' is not a single ASCII character.`);
991
1399
  return t;
992
1400
  }
993
- function G(e) {
994
- let t = new TextDecoder(k(e));
1401
+ function K(e) {
1402
+ let t = new TextDecoder(A(e));
995
1403
  if (t.encoding === "utf-8") return;
996
1404
  let n = new TextEncoder();
997
1405
  return {
@@ -999,7 +1407,7 @@ function G(e) {
999
1407
  transcode: (e) => n.encode(t.decode(e, { stream: !0 }))
1000
1408
  };
1001
1409
  }
1002
- function K(e) {
1410
+ function q(e) {
1003
1411
  let { recordValueCounts: t, text: n, valueEnds: r, valueQuoted: i } = e;
1004
1412
  e.free();
1005
1413
  let a = [], o = 0, s = 0;
@@ -1016,10 +1424,10 @@ function K(e) {
1016
1424
  }
1017
1425
  return a;
1018
1426
  }
1019
- async function q() {
1020
- return H.rustBindingsPromise ??= (async () => {
1427
+ async function J() {
1428
+ return U.rustBindingsPromise ??= (async () => {
1021
1429
  let e = await import("./dpuse_tool_rust_csv_core_parser-BZJW07sd.js");
1022
1430
  return await e.default(), e;
1023
- })(), H.rustBindingsPromise;
1431
+ })(), U.rustBindingsPromise;
1024
1432
  }
1025
- export { U as Tool, z as config };
1433
+ export { W as Tool, B as config };