@teselagen/ove 0.7.14 → 0.7.15
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/index.cjs.js +259 -236
- package/index.es.js +259 -236
- package/index.umd.js +259 -236
- package/package.json +1 -2
- package/src/CircularView/RotateCircularViewSlider.js +5 -3
- package/src/SimpleCircularOrLinearView.js +3 -2
- package/Menlo.ttf +0 -0
- package/Monaco.ttf +0 -0
- package/html2canvas.esm--JN4fLQL.mjs +0 -7891
- package/html2canvas.esm-B7d7VJmQ.js +0 -7891
- package/html2canvas.esm-GLpiTZLt.cjs +0 -7891
- package/html2canvas.esm-GLpiTZLt.js +0 -7891
- package/html2canvas.esm-nFNn58sx.js +0 -7891
- package/html2canvas.esm-nFNn58sx.mjs +0 -7891
package/index.umd.js
CHANGED
|
@@ -24298,7 +24298,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24298
24298
|
var papaparse_min = { exports: {} };
|
|
24299
24299
|
/* @license
|
|
24300
24300
|
Papa Parse
|
|
24301
|
-
v5.
|
|
24301
|
+
v5.4.1
|
|
24302
24302
|
https://github.com/mholt/PapaParse
|
|
24303
24303
|
License: MIT
|
|
24304
24304
|
*/
|
|
@@ -24307,24 +24307,28 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24307
24307
|
module2.exports = t2();
|
|
24308
24308
|
}(commonjsGlobal, /* @__PURE__ */ __name(function s2() {
|
|
24309
24309
|
var f2 = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== f2 ? f2 : {};
|
|
24310
|
-
var n2 = !f2.document && !!f2.postMessage, o2 =
|
|
24311
|
-
var
|
|
24312
|
-
|
|
24313
|
-
if (t2.dynamicTyping =
|
|
24314
|
-
var
|
|
24310
|
+
var n2 = !f2.document && !!f2.postMessage, o2 = f2.IS_PAPA_WORKER || false, a2 = {}, u2 = 0, b3 = { parse: function(e2, t2) {
|
|
24311
|
+
var r3 = (t2 = t2 || {}).dynamicTyping || false;
|
|
24312
|
+
J2(r3) && (t2.dynamicTypingFunction = r3, r3 = {});
|
|
24313
|
+
if (t2.dynamicTyping = r3, t2.transform = !!J2(t2.transform) && t2.transform, t2.worker && b3.WORKERS_SUPPORTED) {
|
|
24314
|
+
var i2 = function() {
|
|
24315
24315
|
if (!b3.WORKERS_SUPPORTED)
|
|
24316
24316
|
return false;
|
|
24317
|
-
var e3 = (
|
|
24318
|
-
var
|
|
24319
|
-
return t3.onmessage = _2, t3.id =
|
|
24317
|
+
var e3 = (r4 = f2.URL || f2.webkitURL || null, i3 = s2.toString(), b3.BLOB_URL || (b3.BLOB_URL = r4.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", i3, ")();"], { type: "text/javascript" })))), t3 = new f2.Worker(e3);
|
|
24318
|
+
var r4, i3;
|
|
24319
|
+
return t3.onmessage = _2, t3.id = u2++, a2[t3.id] = t3;
|
|
24320
24320
|
}();
|
|
24321
|
-
return
|
|
24321
|
+
return i2.userStep = t2.step, i2.userChunk = t2.chunk, i2.userComplete = t2.complete, i2.userError = t2.error, t2.step = J2(t2.step), t2.chunk = J2(t2.chunk), t2.complete = J2(t2.complete), t2.error = J2(t2.error), delete t2.worker, void i2.postMessage({ input: e2, config: t2, workerId: i2.id });
|
|
24322
24322
|
}
|
|
24323
24323
|
var n3 = null;
|
|
24324
|
-
b3.NODE_STREAM_INPUT, "string" == typeof e2 ?
|
|
24324
|
+
b3.NODE_STREAM_INPUT, "string" == typeof e2 ? (e2 = function(e3) {
|
|
24325
|
+
if (65279 === e3.charCodeAt(0))
|
|
24326
|
+
return e3.slice(1);
|
|
24327
|
+
return e3;
|
|
24328
|
+
}(e2), n3 = t2.download ? new l2(t2) : new p2(t2)) : true === e2.readable && J2(e2.read) && J2(e2.on) ? n3 = new g2(t2) : (f2.File && e2 instanceof File || e2 instanceof Object) && (n3 = new c2(t2));
|
|
24325
24329
|
return n3.stream(e2);
|
|
24326
24330
|
}, unparse: function(e2, t2) {
|
|
24327
|
-
var n3 = false, _3 = true, m3 = ",", y3 = "\r\n", s3 = '"', a3 = s3 + s3,
|
|
24331
|
+
var n3 = false, _3 = true, m3 = ",", y3 = "\r\n", s3 = '"', a3 = s3 + s3, r3 = false, i2 = null, o3 = false;
|
|
24328
24332
|
!function() {
|
|
24329
24333
|
if ("object" != typeof t2)
|
|
24330
24334
|
return;
|
|
@@ -24332,149 +24336,149 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24332
24336
|
return -1 !== t2.delimiter.indexOf(e3);
|
|
24333
24337
|
}).length || (m3 = t2.delimiter);
|
|
24334
24338
|
("boolean" == typeof t2.quotes || "function" == typeof t2.quotes || Array.isArray(t2.quotes)) && (n3 = t2.quotes);
|
|
24335
|
-
"boolean" != typeof t2.skipEmptyLines && "string" != typeof t2.skipEmptyLines || (
|
|
24339
|
+
"boolean" != typeof t2.skipEmptyLines && "string" != typeof t2.skipEmptyLines || (r3 = t2.skipEmptyLines);
|
|
24336
24340
|
"string" == typeof t2.newline && (y3 = t2.newline);
|
|
24337
24341
|
"string" == typeof t2.quoteChar && (s3 = t2.quoteChar);
|
|
24338
24342
|
"boolean" == typeof t2.header && (_3 = t2.header);
|
|
24339
24343
|
if (Array.isArray(t2.columns)) {
|
|
24340
24344
|
if (0 === t2.columns.length)
|
|
24341
24345
|
throw new Error("Option columns is empty");
|
|
24342
|
-
|
|
24346
|
+
i2 = t2.columns;
|
|
24343
24347
|
}
|
|
24344
24348
|
void 0 !== t2.escapeChar && (a3 = t2.escapeChar + s3);
|
|
24345
24349
|
("boolean" == typeof t2.escapeFormulae || t2.escapeFormulae instanceof RegExp) && (o3 = t2.escapeFormulae instanceof RegExp ? t2.escapeFormulae : /^[=+\-@\t\r].*$/);
|
|
24346
24350
|
}();
|
|
24347
|
-
var
|
|
24351
|
+
var u3 = new RegExp(Q2(s3), "g");
|
|
24348
24352
|
"string" == typeof e2 && (e2 = JSON.parse(e2));
|
|
24349
24353
|
if (Array.isArray(e2)) {
|
|
24350
24354
|
if (!e2.length || Array.isArray(e2[0]))
|
|
24351
|
-
return
|
|
24355
|
+
return h3(null, e2, r3);
|
|
24352
24356
|
if ("object" == typeof e2[0])
|
|
24353
|
-
return
|
|
24357
|
+
return h3(i2 || Object.keys(e2[0]), e2, r3);
|
|
24354
24358
|
} else if ("object" == typeof e2)
|
|
24355
|
-
return "string" == typeof e2.data && (e2.data = JSON.parse(e2.data)), Array.isArray(e2.data) && (e2.fields || (e2.fields = e2.meta && e2.meta.fields ||
|
|
24359
|
+
return "string" == typeof e2.data && (e2.data = JSON.parse(e2.data)), Array.isArray(e2.data) && (e2.fields || (e2.fields = e2.meta && e2.meta.fields || i2), e2.fields || (e2.fields = Array.isArray(e2.data[0]) ? e2.fields : "object" == typeof e2.data[0] ? Object.keys(e2.data[0]) : []), Array.isArray(e2.data[0]) || "object" == typeof e2.data[0] || (e2.data = [e2.data])), h3(e2.fields || [], e2.data || [], r3);
|
|
24356
24360
|
throw new Error("Unable to serialize unrecognized input");
|
|
24357
|
-
function
|
|
24358
|
-
var
|
|
24361
|
+
function h3(e3, t3, r4) {
|
|
24362
|
+
var i3 = "";
|
|
24359
24363
|
"string" == typeof e3 && (e3 = JSON.parse(e3)), "string" == typeof t3 && (t3 = JSON.parse(t3));
|
|
24360
24364
|
var n4 = Array.isArray(e3) && 0 < e3.length, s4 = !Array.isArray(t3[0]);
|
|
24361
24365
|
if (n4 && _3) {
|
|
24362
24366
|
for (var a4 = 0; a4 < e3.length; a4++)
|
|
24363
|
-
0 < a4 && (
|
|
24364
|
-
0 < t3.length && (
|
|
24367
|
+
0 < a4 && (i3 += m3), i3 += v3(e3[a4], a4);
|
|
24368
|
+
0 < t3.length && (i3 += y3);
|
|
24365
24369
|
}
|
|
24366
24370
|
for (var o4 = 0; o4 < t3.length; o4++) {
|
|
24367
|
-
var
|
|
24368
|
-
if (
|
|
24369
|
-
for (var d3 = [], l3 = 0; l3 <
|
|
24371
|
+
var u4 = n4 ? e3.length : t3[o4].length, h4 = false, f3 = n4 ? 0 === Object.keys(t3[o4]).length : 0 === t3[o4].length;
|
|
24372
|
+
if (r4 && !n4 && (h4 = "greedy" === r4 ? "" === t3[o4].join("").trim() : 1 === t3[o4].length && 0 === t3[o4][0].length), "greedy" === r4 && n4) {
|
|
24373
|
+
for (var d3 = [], l3 = 0; l3 < u4; l3++) {
|
|
24370
24374
|
var c3 = s4 ? e3[l3] : l3;
|
|
24371
24375
|
d3.push(t3[o4][c3]);
|
|
24372
24376
|
}
|
|
24373
|
-
|
|
24377
|
+
h4 = "" === d3.join("").trim();
|
|
24374
24378
|
}
|
|
24375
|
-
if (!
|
|
24376
|
-
for (var p3 = 0; p3 <
|
|
24377
|
-
0 < p3 && !f3 && (
|
|
24379
|
+
if (!h4) {
|
|
24380
|
+
for (var p3 = 0; p3 < u4; p3++) {
|
|
24381
|
+
0 < p3 && !f3 && (i3 += m3);
|
|
24378
24382
|
var g3 = n4 && s4 ? e3[p3] : p3;
|
|
24379
|
-
|
|
24383
|
+
i3 += v3(t3[o4][g3], p3);
|
|
24380
24384
|
}
|
|
24381
|
-
o4 < t3.length - 1 && (!
|
|
24385
|
+
o4 < t3.length - 1 && (!r4 || 0 < u4 && !f3) && (i3 += y3);
|
|
24382
24386
|
}
|
|
24383
24387
|
}
|
|
24384
|
-
return
|
|
24388
|
+
return i3;
|
|
24385
24389
|
}
|
|
24386
|
-
__name(
|
|
24390
|
+
__name(h3, "h");
|
|
24387
24391
|
function v3(e3, t3) {
|
|
24388
24392
|
if (null == e3)
|
|
24389
24393
|
return "";
|
|
24390
24394
|
if (e3.constructor === Date)
|
|
24391
24395
|
return JSON.stringify(e3).slice(1, 25);
|
|
24392
|
-
var
|
|
24393
|
-
o3 && "string" == typeof e3 && o3.test(e3) && (e3 = "'" + e3,
|
|
24394
|
-
var
|
|
24395
|
-
return (
|
|
24396
|
-
for (var
|
|
24397
|
-
if (-1 < e4.indexOf(t4[
|
|
24396
|
+
var r4 = false;
|
|
24397
|
+
o3 && "string" == typeof e3 && o3.test(e3) && (e3 = "'" + e3, r4 = true);
|
|
24398
|
+
var i3 = e3.toString().replace(u3, a3);
|
|
24399
|
+
return (r4 = r4 || true === n3 || "function" == typeof n3 && n3(e3, t3) || Array.isArray(n3) && n3[t3] || function(e4, t4) {
|
|
24400
|
+
for (var r5 = 0; r5 < t4.length; r5++)
|
|
24401
|
+
if (-1 < e4.indexOf(t4[r5]))
|
|
24398
24402
|
return true;
|
|
24399
24403
|
return false;
|
|
24400
|
-
}(
|
|
24404
|
+
}(i3, b3.BAD_DELIMITERS) || -1 < i3.indexOf(m3) || " " === i3.charAt(0) || " " === i3.charAt(i3.length - 1)) ? s3 + i3 + s3 : i3;
|
|
24401
24405
|
}
|
|
24402
24406
|
__name(v3, "v");
|
|
24403
24407
|
} };
|
|
24404
|
-
if (b3.RECORD_SEP = String.fromCharCode(30), b3.UNIT_SEP = String.fromCharCode(31), b3.BYTE_ORDER_MARK = "\uFEFF", b3.BAD_DELIMITERS = ["\r", "\n", '"', b3.BYTE_ORDER_MARK], b3.WORKERS_SUPPORTED = !n2 && !!f2.Worker, b3.NODE_STREAM_INPUT = 1, b3.LocalChunkSize = 10485760, b3.RemoteChunkSize = 5242880, b3.DefaultDelimiter = ",", b3.Parser = E2, b3.ParserHandle =
|
|
24408
|
+
if (b3.RECORD_SEP = String.fromCharCode(30), b3.UNIT_SEP = String.fromCharCode(31), b3.BYTE_ORDER_MARK = "\uFEFF", b3.BAD_DELIMITERS = ["\r", "\n", '"', b3.BYTE_ORDER_MARK], b3.WORKERS_SUPPORTED = !n2 && !!f2.Worker, b3.NODE_STREAM_INPUT = 1, b3.LocalChunkSize = 10485760, b3.RemoteChunkSize = 5242880, b3.DefaultDelimiter = ",", b3.Parser = E2, b3.ParserHandle = r2, b3.NetworkStreamer = l2, b3.FileStreamer = c2, b3.StringStreamer = p2, b3.ReadableStreamStreamer = g2, f2.jQuery) {
|
|
24405
24409
|
var d2 = f2.jQuery;
|
|
24406
24410
|
d2.fn.parse = function(o3) {
|
|
24407
|
-
var
|
|
24411
|
+
var r3 = o3.config || {}, u3 = [];
|
|
24408
24412
|
return this.each(function(e3) {
|
|
24409
24413
|
if (!("INPUT" === d2(this).prop("tagName").toUpperCase() && "file" === d2(this).attr("type").toLowerCase() && f2.FileReader) || !this.files || 0 === this.files.length)
|
|
24410
24414
|
return true;
|
|
24411
24415
|
for (var t2 = 0; t2 < this.files.length; t2++)
|
|
24412
|
-
|
|
24416
|
+
u3.push({ file: this.files[t2], inputElem: this, instanceConfig: d2.extend({}, r3) });
|
|
24413
24417
|
}), e2(), this;
|
|
24414
24418
|
function e2() {
|
|
24415
|
-
if (0 !==
|
|
24416
|
-
var e3, t2,
|
|
24417
|
-
if (
|
|
24419
|
+
if (0 !== u3.length) {
|
|
24420
|
+
var e3, t2, r4, i2, n3 = u3[0];
|
|
24421
|
+
if (J2(o3.before)) {
|
|
24418
24422
|
var s3 = o3.before(n3.file, n3.inputElem);
|
|
24419
24423
|
if ("object" == typeof s3) {
|
|
24420
24424
|
if ("abort" === s3.action)
|
|
24421
|
-
return e3 = "AbortError", t2 = n3.file,
|
|
24425
|
+
return e3 = "AbortError", t2 = n3.file, r4 = n3.inputElem, i2 = s3.reason, void (J2(o3.error) && o3.error({ name: e3 }, t2, r4, i2));
|
|
24422
24426
|
if ("skip" === s3.action)
|
|
24423
|
-
return void
|
|
24427
|
+
return void h3();
|
|
24424
24428
|
"object" == typeof s3.config && (n3.instanceConfig = d2.extend(n3.instanceConfig, s3.config));
|
|
24425
24429
|
} else if ("skip" === s3)
|
|
24426
|
-
return void
|
|
24430
|
+
return void h3();
|
|
24427
24431
|
}
|
|
24428
24432
|
var a3 = n3.instanceConfig.complete;
|
|
24429
24433
|
n3.instanceConfig.complete = function(e4) {
|
|
24430
|
-
|
|
24434
|
+
J2(a3) && a3(e4, n3.file, n3.inputElem), h3();
|
|
24431
24435
|
}, b3.parse(n3.file, n3.instanceConfig);
|
|
24432
24436
|
} else
|
|
24433
|
-
|
|
24437
|
+
J2(o3.complete) && o3.complete();
|
|
24434
24438
|
}
|
|
24435
24439
|
__name(e2, "e");
|
|
24436
|
-
function
|
|
24437
|
-
|
|
24440
|
+
function h3() {
|
|
24441
|
+
u3.splice(0, 1), e2();
|
|
24438
24442
|
}
|
|
24439
|
-
__name(
|
|
24443
|
+
__name(h3, "h");
|
|
24440
24444
|
};
|
|
24441
24445
|
}
|
|
24442
|
-
function
|
|
24446
|
+
function h2(e2) {
|
|
24443
24447
|
this._handle = null, this._finished = false, this._completed = false, this._halted = false, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = true, this._completeResults = { data: [], errors: [], meta: {} }, function(e3) {
|
|
24444
24448
|
var t2 = w2(e3);
|
|
24445
24449
|
t2.chunkSize = parseInt(t2.chunkSize), e3.step || e3.chunk || (t2.chunkSize = null);
|
|
24446
|
-
this._handle = new
|
|
24450
|
+
this._handle = new r2(t2), (this._handle.streamer = this)._config = t2;
|
|
24447
24451
|
}.call(this, e2), this.parseChunk = function(e3, t2) {
|
|
24448
|
-
if (this.isFirstChunk &&
|
|
24449
|
-
var
|
|
24450
|
-
void 0 !==
|
|
24452
|
+
if (this.isFirstChunk && J2(this._config.beforeFirstChunk)) {
|
|
24453
|
+
var r3 = this._config.beforeFirstChunk(e3);
|
|
24454
|
+
void 0 !== r3 && (e3 = r3);
|
|
24451
24455
|
}
|
|
24452
24456
|
this.isFirstChunk = false, this._halted = false;
|
|
24453
|
-
var
|
|
24457
|
+
var i2 = this._partialLine + e3;
|
|
24454
24458
|
this._partialLine = "";
|
|
24455
|
-
var n3 = this._handle.parse(
|
|
24459
|
+
var n3 = this._handle.parse(i2, this._baseIndex, !this._finished);
|
|
24456
24460
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
24457
24461
|
var s3 = n3.meta.cursor;
|
|
24458
|
-
this._finished || (this._partialLine =
|
|
24462
|
+
this._finished || (this._partialLine = i2.substring(s3 - this._baseIndex), this._baseIndex = s3), n3 && n3.data && (this._rowCount += n3.data.length);
|
|
24459
24463
|
var a3 = this._finished || this._config.preview && this._rowCount >= this._config.preview;
|
|
24460
24464
|
if (o2)
|
|
24461
24465
|
f2.postMessage({ results: n3, workerId: b3.WORKER_ID, finished: a3 });
|
|
24462
|
-
else if (
|
|
24466
|
+
else if (J2(this._config.chunk) && !t2) {
|
|
24463
24467
|
if (this._config.chunk(n3, this._handle), this._handle.paused() || this._handle.aborted())
|
|
24464
24468
|
return void (this._halted = true);
|
|
24465
24469
|
n3 = void 0, this._completeResults = void 0;
|
|
24466
24470
|
}
|
|
24467
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(n3.data), this._completeResults.errors = this._completeResults.errors.concat(n3.errors), this._completeResults.meta = n3.meta), this._completed || !a3 || !
|
|
24471
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(n3.data), this._completeResults.errors = this._completeResults.errors.concat(n3.errors), this._completeResults.meta = n3.meta), this._completed || !a3 || !J2(this._config.complete) || n3 && n3.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = true), a3 || n3 && n3.meta.paused || this._nextChunk(), n3;
|
|
24468
24472
|
}
|
|
24469
24473
|
this._halted = true;
|
|
24470
24474
|
}, this._sendError = function(e3) {
|
|
24471
|
-
|
|
24475
|
+
J2(this._config.error) ? this._config.error(e3) : o2 && this._config.error && f2.postMessage({ workerId: b3.WORKER_ID, error: e3, finished: false });
|
|
24472
24476
|
};
|
|
24473
24477
|
}
|
|
24474
|
-
__name(
|
|
24478
|
+
__name(h2, "h");
|
|
24475
24479
|
function l2(e2) {
|
|
24476
|
-
var
|
|
24477
|
-
(e2 = e2 || {}).chunkSize || (e2.chunkSize = b3.RemoteChunkSize),
|
|
24480
|
+
var i2;
|
|
24481
|
+
(e2 = e2 || {}).chunkSize || (e2.chunkSize = b3.RemoteChunkSize), h2.call(this, e2), this._nextChunk = n2 ? function() {
|
|
24478
24482
|
this._readChunk(), this._chunkLoaded();
|
|
24479
24483
|
} : function() {
|
|
24480
24484
|
this._readChunk();
|
|
@@ -24484,41 +24488,41 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24484
24488
|
if (this._finished)
|
|
24485
24489
|
this._chunkLoaded();
|
|
24486
24490
|
else {
|
|
24487
|
-
if (
|
|
24491
|
+
if (i2 = new XMLHttpRequest(), this._config.withCredentials && (i2.withCredentials = this._config.withCredentials), n2 || (i2.onload = v2(this._chunkLoaded, this), i2.onerror = v2(this._chunkError, this)), i2.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !n2), this._config.downloadRequestHeaders) {
|
|
24488
24492
|
var e3 = this._config.downloadRequestHeaders;
|
|
24489
24493
|
for (var t2 in e3)
|
|
24490
|
-
|
|
24494
|
+
i2.setRequestHeader(t2, e3[t2]);
|
|
24491
24495
|
}
|
|
24492
24496
|
if (this._config.chunkSize) {
|
|
24493
|
-
var
|
|
24494
|
-
|
|
24497
|
+
var r3 = this._start + this._config.chunkSize - 1;
|
|
24498
|
+
i2.setRequestHeader("Range", "bytes=" + this._start + "-" + r3);
|
|
24495
24499
|
}
|
|
24496
24500
|
try {
|
|
24497
|
-
|
|
24501
|
+
i2.send(this._config.downloadRequestBody);
|
|
24498
24502
|
} catch (e4) {
|
|
24499
24503
|
this._chunkError(e4.message);
|
|
24500
24504
|
}
|
|
24501
|
-
n2 && 0 ===
|
|
24505
|
+
n2 && 0 === i2.status && this._chunkError();
|
|
24502
24506
|
}
|
|
24503
24507
|
}, this._chunkLoaded = function() {
|
|
24504
|
-
4 ===
|
|
24508
|
+
4 === i2.readyState && (i2.status < 200 || 400 <= i2.status ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : i2.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(e3) {
|
|
24505
24509
|
var t2 = e3.getResponseHeader("Content-Range");
|
|
24506
24510
|
if (null === t2)
|
|
24507
24511
|
return -1;
|
|
24508
24512
|
return parseInt(t2.substring(t2.lastIndexOf("/") + 1));
|
|
24509
|
-
}(
|
|
24513
|
+
}(i2), this.parseChunk(i2.responseText)));
|
|
24510
24514
|
}, this._chunkError = function(e3) {
|
|
24511
|
-
var t2 =
|
|
24515
|
+
var t2 = i2.statusText || e3;
|
|
24512
24516
|
this._sendError(new Error(t2));
|
|
24513
24517
|
};
|
|
24514
24518
|
}
|
|
24515
24519
|
__name(l2, "l");
|
|
24516
24520
|
function c2(e2) {
|
|
24517
|
-
var
|
|
24518
|
-
(e2 = e2 || {}).chunkSize || (e2.chunkSize = b3.LocalChunkSize),
|
|
24521
|
+
var i2, n3;
|
|
24522
|
+
(e2 = e2 || {}).chunkSize || (e2.chunkSize = b3.LocalChunkSize), h2.call(this, e2);
|
|
24519
24523
|
var s3 = "undefined" != typeof FileReader;
|
|
24520
24524
|
this.stream = function(e3) {
|
|
24521
|
-
this._input = e3, n3 = e3.slice || e3.webkitSlice || e3.mozSlice, s3 ? ((
|
|
24525
|
+
this._input = e3, n3 = e3.slice || e3.webkitSlice || e3.mozSlice, s3 ? ((i2 = new FileReader()).onload = v2(this._chunkLoaded, this), i2.onerror = v2(this._chunkError, this)) : i2 = new FileReaderSync(), this._nextChunk();
|
|
24522
24526
|
}, this._nextChunk = function() {
|
|
24523
24527
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
24524
24528
|
}, this._readChunk = function() {
|
|
@@ -24527,58 +24531,58 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24527
24531
|
var t2 = Math.min(this._start + this._config.chunkSize, this._input.size);
|
|
24528
24532
|
e3 = n3.call(e3, this._start, t2);
|
|
24529
24533
|
}
|
|
24530
|
-
var
|
|
24531
|
-
s3 || this._chunkLoaded({ target: { result:
|
|
24534
|
+
var r3 = i2.readAsText(e3, this._config.encoding);
|
|
24535
|
+
s3 || this._chunkLoaded({ target: { result: r3 } });
|
|
24532
24536
|
}, this._chunkLoaded = function(e3) {
|
|
24533
24537
|
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(e3.target.result);
|
|
24534
24538
|
}, this._chunkError = function() {
|
|
24535
|
-
this._sendError(
|
|
24539
|
+
this._sendError(i2.error);
|
|
24536
24540
|
};
|
|
24537
24541
|
}
|
|
24538
24542
|
__name(c2, "c");
|
|
24539
24543
|
function p2(e2) {
|
|
24540
|
-
var
|
|
24541
|
-
|
|
24542
|
-
return
|
|
24544
|
+
var r3;
|
|
24545
|
+
h2.call(this, e2 = e2 || {}), this.stream = function(e3) {
|
|
24546
|
+
return r3 = e3, this._nextChunk();
|
|
24543
24547
|
}, this._nextChunk = function() {
|
|
24544
24548
|
if (!this._finished) {
|
|
24545
24549
|
var e3, t2 = this._config.chunkSize;
|
|
24546
|
-
return t2 ? (e3 =
|
|
24550
|
+
return t2 ? (e3 = r3.substring(0, t2), r3 = r3.substring(t2)) : (e3 = r3, r3 = ""), this._finished = !r3, this.parseChunk(e3);
|
|
24547
24551
|
}
|
|
24548
24552
|
};
|
|
24549
24553
|
}
|
|
24550
24554
|
__name(p2, "p");
|
|
24551
24555
|
function g2(e2) {
|
|
24552
|
-
|
|
24553
|
-
var t2 = [],
|
|
24556
|
+
h2.call(this, e2 = e2 || {});
|
|
24557
|
+
var t2 = [], r3 = true, i2 = false;
|
|
24554
24558
|
this.pause = function() {
|
|
24555
|
-
|
|
24559
|
+
h2.prototype.pause.apply(this, arguments), this._input.pause();
|
|
24556
24560
|
}, this.resume = function() {
|
|
24557
|
-
|
|
24561
|
+
h2.prototype.resume.apply(this, arguments), this._input.resume();
|
|
24558
24562
|
}, this.stream = function(e3) {
|
|
24559
24563
|
this._input = e3, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
24560
24564
|
}, this._checkIsFinished = function() {
|
|
24561
|
-
|
|
24565
|
+
i2 && 1 === t2.length && (this._finished = true);
|
|
24562
24566
|
}, this._nextChunk = function() {
|
|
24563
|
-
this._checkIsFinished(), t2.length ? this.parseChunk(t2.shift()) :
|
|
24567
|
+
this._checkIsFinished(), t2.length ? this.parseChunk(t2.shift()) : r3 = true;
|
|
24564
24568
|
}, this._streamData = v2(function(e3) {
|
|
24565
24569
|
try {
|
|
24566
|
-
t2.push("string" == typeof e3 ? e3 : e3.toString(this._config.encoding)),
|
|
24570
|
+
t2.push("string" == typeof e3 ? e3 : e3.toString(this._config.encoding)), r3 && (r3 = false, this._checkIsFinished(), this.parseChunk(t2.shift()));
|
|
24567
24571
|
} catch (e4) {
|
|
24568
24572
|
this._streamError(e4);
|
|
24569
24573
|
}
|
|
24570
24574
|
}, this), this._streamError = v2(function(e3) {
|
|
24571
24575
|
this._streamCleanUp(), this._sendError(e3);
|
|
24572
24576
|
}, this), this._streamEnd = v2(function() {
|
|
24573
|
-
this._streamCleanUp(),
|
|
24577
|
+
this._streamCleanUp(), i2 = true, this._streamData("");
|
|
24574
24578
|
}, this), this._streamCleanUp = v2(function() {
|
|
24575
24579
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
24576
24580
|
}, this);
|
|
24577
24581
|
}
|
|
24578
24582
|
__name(g2, "g");
|
|
24579
|
-
function
|
|
24580
|
-
var a3, o3,
|
|
24581
|
-
if (
|
|
24583
|
+
function r2(m3) {
|
|
24584
|
+
var a3, o3, u3, i2 = Math.pow(2, 53), n3 = -i2, s3 = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, h3 = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, t2 = this, r3 = 0, f3 = 0, d3 = false, e2 = false, l3 = [], c3 = { data: [], errors: [], meta: {} };
|
|
24585
|
+
if (J2(m3.step)) {
|
|
24582
24586
|
var p3 = m3.step;
|
|
24583
24587
|
m3.step = function(e3) {
|
|
24584
24588
|
if (c3 = e3, _3())
|
|
@@ -24586,7 +24590,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24586
24590
|
else {
|
|
24587
24591
|
if (g3(), 0 === c3.data.length)
|
|
24588
24592
|
return;
|
|
24589
|
-
|
|
24593
|
+
r3 += e3.data.length, m3.preview && r3 > m3.preview ? o3.abort() : (c3.data = c3.data[0], p3(c3, t2));
|
|
24590
24594
|
}
|
|
24591
24595
|
};
|
|
24592
24596
|
}
|
|
@@ -24595,13 +24599,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24595
24599
|
}
|
|
24596
24600
|
__name(y3, "y");
|
|
24597
24601
|
function g3() {
|
|
24598
|
-
return c3 &&
|
|
24602
|
+
return c3 && u3 && (k2("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + b3.DefaultDelimiter + "'"), u3 = false), m3.skipEmptyLines && (c3.data = c3.data.filter(function(e3) {
|
|
24599
24603
|
return !y3(e3);
|
|
24600
24604
|
})), _3() && function() {
|
|
24601
24605
|
if (!c3)
|
|
24602
24606
|
return;
|
|
24603
24607
|
function e3(e4, t4) {
|
|
24604
|
-
|
|
24608
|
+
J2(m3.transformHeader) && (e4 = m3.transformHeader(e4, t4)), l3.push(e4);
|
|
24605
24609
|
}
|
|
24606
24610
|
__name(e3, "e");
|
|
24607
24611
|
if (Array.isArray(c3.data[0])) {
|
|
@@ -24614,12 +24618,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24614
24618
|
if (!c3 || !m3.header && !m3.dynamicTyping && !m3.transform)
|
|
24615
24619
|
return c3;
|
|
24616
24620
|
function e3(e4, t4) {
|
|
24617
|
-
var
|
|
24618
|
-
for (
|
|
24619
|
-
var n4 =
|
|
24620
|
-
m3.header && (n4 =
|
|
24621
|
+
var r4, i3 = m3.header ? {} : [];
|
|
24622
|
+
for (r4 = 0; r4 < e4.length; r4++) {
|
|
24623
|
+
var n4 = r4, s4 = e4[r4];
|
|
24624
|
+
m3.header && (n4 = r4 >= l3.length ? "__parsed_extra" : l3[r4]), m3.transform && (s4 = m3.transform(s4, n4)), s4 = v3(n4, s4), "__parsed_extra" === n4 ? (i3[n4] = i3[n4] || [], i3[n4].push(s4)) : i3[n4] = s4;
|
|
24621
24625
|
}
|
|
24622
|
-
return m3.header && (
|
|
24626
|
+
return m3.header && (r4 > l3.length ? k2("FieldMismatch", "TooManyFields", "Too many fields: expected " + l3.length + " fields but parsed " + r4, f3 + t4) : r4 < l3.length && k2("FieldMismatch", "TooFewFields", "Too few fields: expected " + l3.length + " fields but parsed " + r4, f3 + t4)), i3;
|
|
24623
24627
|
}
|
|
24624
24628
|
__name(e3, "e");
|
|
24625
24629
|
var t3 = 1;
|
|
@@ -24634,204 +24638,219 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24634
24638
|
}
|
|
24635
24639
|
__name(_3, "_");
|
|
24636
24640
|
function v3(e3, t3) {
|
|
24637
|
-
return
|
|
24641
|
+
return r4 = e3, m3.dynamicTypingFunction && void 0 === m3.dynamicTyping[r4] && (m3.dynamicTyping[r4] = m3.dynamicTypingFunction(r4)), true === (m3.dynamicTyping[r4] || m3.dynamicTyping) ? "true" === t3 || "TRUE" === t3 || "false" !== t3 && "FALSE" !== t3 && (function(e4) {
|
|
24638
24642
|
if (s3.test(e4)) {
|
|
24639
24643
|
var t4 = parseFloat(e4);
|
|
24640
|
-
if (n3 < t4 && t4 <
|
|
24644
|
+
if (n3 < t4 && t4 < i2)
|
|
24641
24645
|
return true;
|
|
24642
24646
|
}
|
|
24643
24647
|
return false;
|
|
24644
|
-
}(t3) ? parseFloat(t3) :
|
|
24645
|
-
var
|
|
24648
|
+
}(t3) ? parseFloat(t3) : h3.test(t3) ? new Date(t3) : "" === t3 ? null : t3) : t3;
|
|
24649
|
+
var r4;
|
|
24646
24650
|
}
|
|
24647
24651
|
__name(v3, "v");
|
|
24648
|
-
function k2(e3, t3,
|
|
24649
|
-
var n4 = { type: e3, code: t3, message:
|
|
24650
|
-
void 0 !==
|
|
24652
|
+
function k2(e3, t3, r4, i3) {
|
|
24653
|
+
var n4 = { type: e3, code: t3, message: r4 };
|
|
24654
|
+
void 0 !== i3 && (n4.row = i3), c3.errors.push(n4);
|
|
24651
24655
|
}
|
|
24652
24656
|
__name(k2, "k");
|
|
24653
|
-
this.parse = function(e3, t3,
|
|
24654
|
-
var
|
|
24657
|
+
this.parse = function(e3, t3, r4) {
|
|
24658
|
+
var i3 = m3.quoteChar || '"';
|
|
24655
24659
|
if (m3.newline || (m3.newline = function(e4, t4) {
|
|
24656
24660
|
e4 = e4.substring(0, 1048576);
|
|
24657
|
-
var
|
|
24658
|
-
if (1 ===
|
|
24661
|
+
var r5 = new RegExp(Q2(t4) + "([^]*?)" + Q2(t4), "gm"), i4 = (e4 = e4.replace(r5, "")).split("\r"), n5 = e4.split("\n"), s5 = 1 < n5.length && n5[0].length < i4[0].length;
|
|
24662
|
+
if (1 === i4.length || s5)
|
|
24659
24663
|
return "\n";
|
|
24660
|
-
for (var a4 = 0, o4 = 0; o4 <
|
|
24661
|
-
"\n" ===
|
|
24662
|
-
return a4 >=
|
|
24663
|
-
}(e3,
|
|
24664
|
-
|
|
24664
|
+
for (var a4 = 0, o4 = 0; o4 < i4.length; o4++)
|
|
24665
|
+
"\n" === i4[o4][0] && a4++;
|
|
24666
|
+
return a4 >= i4.length / 2 ? "\r\n" : "\r";
|
|
24667
|
+
}(e3, i3)), u3 = false, m3.delimiter)
|
|
24668
|
+
J2(m3.delimiter) && (m3.delimiter = m3.delimiter(e3), c3.meta.delimiter = m3.delimiter);
|
|
24665
24669
|
else {
|
|
24666
|
-
var n4 = function(e4, t4,
|
|
24667
|
-
var s5, a4, o4,
|
|
24670
|
+
var n4 = function(e4, t4, r5, i4, n5) {
|
|
24671
|
+
var s5, a4, o4, u4;
|
|
24668
24672
|
n5 = n5 || [",", " ", "|", ";", b3.RECORD_SEP, b3.UNIT_SEP];
|
|
24669
|
-
for (var
|
|
24670
|
-
var f4 = n5[
|
|
24673
|
+
for (var h4 = 0; h4 < n5.length; h4++) {
|
|
24674
|
+
var f4 = n5[h4], d4 = 0, l4 = 0, c4 = 0;
|
|
24671
24675
|
o4 = void 0;
|
|
24672
|
-
for (var p4 = new E2({ comments:
|
|
24673
|
-
if (
|
|
24676
|
+
for (var p4 = new E2({ comments: i4, delimiter: f4, newline: t4, preview: 10 }).parse(e4), g4 = 0; g4 < p4.data.length; g4++)
|
|
24677
|
+
if (r5 && y3(p4.data[g4]))
|
|
24674
24678
|
c4++;
|
|
24675
24679
|
else {
|
|
24676
24680
|
var _4 = p4.data[g4].length;
|
|
24677
24681
|
l4 += _4, void 0 !== o4 ? 0 < _4 && (d4 += Math.abs(_4 - o4), o4 = _4) : o4 = _4;
|
|
24678
24682
|
}
|
|
24679
|
-
0 < p4.data.length && (l4 /= p4.data.length - c4), (void 0 === a4 || d4 <= a4) && (void 0 ===
|
|
24683
|
+
0 < p4.data.length && (l4 /= p4.data.length - c4), (void 0 === a4 || d4 <= a4) && (void 0 === u4 || u4 < l4) && 1.99 < l4 && (a4 = d4, s5 = f4, u4 = l4);
|
|
24680
24684
|
}
|
|
24681
24685
|
return { successful: !!(m3.delimiter = s5), bestDelimiter: s5 };
|
|
24682
24686
|
}(e3, m3.newline, m3.skipEmptyLines, m3.comments, m3.delimitersToGuess);
|
|
24683
|
-
n4.successful ? m3.delimiter = n4.bestDelimiter : (
|
|
24687
|
+
n4.successful ? m3.delimiter = n4.bestDelimiter : (u3 = true, m3.delimiter = b3.DefaultDelimiter), c3.meta.delimiter = m3.delimiter;
|
|
24684
24688
|
}
|
|
24685
24689
|
var s4 = w2(m3);
|
|
24686
|
-
return m3.preview && m3.header && s4.preview++, a3 = e3, o3 = new E2(s4), c3 = o3.parse(a3, t3,
|
|
24690
|
+
return m3.preview && m3.header && s4.preview++, a3 = e3, o3 = new E2(s4), c3 = o3.parse(a3, t3, r4), g3(), d3 ? { meta: { paused: true } } : c3 || { meta: { paused: false } };
|
|
24687
24691
|
}, this.paused = function() {
|
|
24688
24692
|
return d3;
|
|
24689
24693
|
}, this.pause = function() {
|
|
24690
|
-
d3 = true, o3.abort(), a3 =
|
|
24694
|
+
d3 = true, o3.abort(), a3 = J2(m3.chunk) ? "" : a3.substring(o3.getCharIndex());
|
|
24691
24695
|
}, this.resume = function() {
|
|
24692
24696
|
t2.streamer._halted ? (d3 = false, t2.streamer.parseChunk(a3, true)) : setTimeout(t2.resume, 3);
|
|
24693
24697
|
}, this.aborted = function() {
|
|
24694
24698
|
return e2;
|
|
24695
24699
|
}, this.abort = function() {
|
|
24696
|
-
e2 = true, o3.abort(), c3.meta.aborted = true,
|
|
24700
|
+
e2 = true, o3.abort(), c3.meta.aborted = true, J2(m3.complete) && m3.complete(c3), a3 = "";
|
|
24697
24701
|
};
|
|
24698
24702
|
}
|
|
24699
|
-
__name(
|
|
24700
|
-
function
|
|
24703
|
+
__name(r2, "r");
|
|
24704
|
+
function Q2(e2) {
|
|
24701
24705
|
return e2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
24702
24706
|
}
|
|
24703
|
-
__name(
|
|
24704
|
-
function E2(
|
|
24705
|
-
var
|
|
24706
|
-
if (void 0 !==
|
|
24707
|
+
__name(Q2, "Q");
|
|
24708
|
+
function E2(j2) {
|
|
24709
|
+
var z2, M2 = (j2 = j2 || {}).delimiter, P2 = j2.newline, U2 = j2.comments, q2 = j2.step, N2 = j2.preview, B3 = j2.fastMode, K2 = z2 = void 0 === j2.quoteChar || null === j2.quoteChar ? '"' : j2.quoteChar;
|
|
24710
|
+
if (void 0 !== j2.escapeChar && (K2 = j2.escapeChar), ("string" != typeof M2 || -1 < b3.BAD_DELIMITERS.indexOf(M2)) && (M2 = ","), U2 === M2)
|
|
24707
24711
|
throw new Error("Comment character same as delimiter");
|
|
24708
|
-
true ===
|
|
24709
|
-
var
|
|
24710
|
-
this.parse = function(
|
|
24711
|
-
if ("string" != typeof
|
|
24712
|
+
true === U2 ? U2 = "#" : ("string" != typeof U2 || -1 < b3.BAD_DELIMITERS.indexOf(U2)) && (U2 = false), "\n" !== P2 && "\r" !== P2 && "\r\n" !== P2 && (P2 = "\n");
|
|
24713
|
+
var W2 = 0, H5 = false;
|
|
24714
|
+
this.parse = function(i2, t2, r3) {
|
|
24715
|
+
if ("string" != typeof i2)
|
|
24712
24716
|
throw new Error("Input must be a string");
|
|
24713
|
-
var n3 =
|
|
24714
|
-
if (!
|
|
24715
|
-
return
|
|
24716
|
-
if (
|
|
24717
|
-
|
|
24718
|
-
|
|
24719
|
-
|
|
24720
|
-
|
|
24721
|
-
|
|
24722
|
-
|
|
24717
|
+
var n3 = i2.length, e2 = M2.length, s3 = P2.length, a3 = U2.length, o3 = J2(q2), u3 = [], h3 = [], f3 = [], d3 = W2 = 0;
|
|
24718
|
+
if (!i2)
|
|
24719
|
+
return L2();
|
|
24720
|
+
if (j2.header && !t2) {
|
|
24721
|
+
var l3 = i2.split(P2)[0].split(M2), c3 = [], p3 = {}, g3 = false;
|
|
24722
|
+
for (var _3 in l3) {
|
|
24723
|
+
var m3 = l3[_3];
|
|
24724
|
+
J2(j2.transformHeader) && (m3 = j2.transformHeader(m3, _3));
|
|
24725
|
+
var y3 = m3, v3 = p3[m3] || 0;
|
|
24726
|
+
for (0 < v3 && (g3 = true, y3 = m3 + "_" + v3), p3[m3] = v3 + 1; c3.includes(y3); )
|
|
24727
|
+
y3 = y3 + "_" + v3;
|
|
24728
|
+
c3.push(y3);
|
|
24729
|
+
}
|
|
24730
|
+
if (g3) {
|
|
24731
|
+
var k2 = i2.split(P2);
|
|
24732
|
+
k2[0] = c3.join(M2), i2 = k2.join(P2);
|
|
24733
|
+
}
|
|
24734
|
+
}
|
|
24735
|
+
if (B3 || false !== B3 && -1 === i2.indexOf(z2)) {
|
|
24736
|
+
for (var b5 = i2.split(P2), E3 = 0; E3 < b5.length; E3++) {
|
|
24737
|
+
if (f3 = b5[E3], W2 += f3.length, E3 !== b5.length - 1)
|
|
24738
|
+
W2 += P2.length;
|
|
24739
|
+
else if (r3)
|
|
24740
|
+
return L2();
|
|
24741
|
+
if (!U2 || f3.substring(0, a3) !== U2) {
|
|
24723
24742
|
if (o3) {
|
|
24724
|
-
if (
|
|
24725
|
-
return
|
|
24743
|
+
if (u3 = [], I2(f3.split(M2)), F2(), H5)
|
|
24744
|
+
return L2();
|
|
24726
24745
|
} else
|
|
24727
|
-
|
|
24728
|
-
if (
|
|
24729
|
-
return
|
|
24746
|
+
I2(f3.split(M2));
|
|
24747
|
+
if (N2 && N2 <= E3)
|
|
24748
|
+
return u3 = u3.slice(0, N2), L2(true);
|
|
24730
24749
|
}
|
|
24731
24750
|
}
|
|
24732
|
-
return
|
|
24751
|
+
return L2();
|
|
24733
24752
|
}
|
|
24734
|
-
for (var
|
|
24735
|
-
if (
|
|
24736
|
-
if (
|
|
24737
|
-
if (-1 ===
|
|
24738
|
-
return
|
|
24739
|
-
|
|
24740
|
-
} else if (-1 !==
|
|
24741
|
-
f3.push(
|
|
24753
|
+
for (var w3 = i2.indexOf(M2, W2), R2 = i2.indexOf(P2, W2), C2 = new RegExp(Q2(K2) + Q2(z2), "g"), S2 = i2.indexOf(z2, W2); ; )
|
|
24754
|
+
if (i2[W2] !== z2)
|
|
24755
|
+
if (U2 && 0 === f3.length && i2.substring(W2, W2 + a3) === U2) {
|
|
24756
|
+
if (-1 === R2)
|
|
24757
|
+
return L2();
|
|
24758
|
+
W2 = R2 + s3, R2 = i2.indexOf(P2, W2), w3 = i2.indexOf(M2, W2);
|
|
24759
|
+
} else if (-1 !== w3 && (w3 < R2 || -1 === R2))
|
|
24760
|
+
f3.push(i2.substring(W2, w3)), W2 = w3 + e2, w3 = i2.indexOf(M2, W2);
|
|
24742
24761
|
else {
|
|
24743
|
-
if (-1 ===
|
|
24762
|
+
if (-1 === R2)
|
|
24744
24763
|
break;
|
|
24745
|
-
if (f3.push(
|
|
24746
|
-
return
|
|
24747
|
-
if (
|
|
24748
|
-
return
|
|
24764
|
+
if (f3.push(i2.substring(W2, R2)), D2(R2 + s3), o3 && (F2(), H5))
|
|
24765
|
+
return L2();
|
|
24766
|
+
if (N2 && u3.length >= N2)
|
|
24767
|
+
return L2(true);
|
|
24749
24768
|
}
|
|
24750
24769
|
else
|
|
24751
|
-
for (
|
|
24752
|
-
if (-1 === (
|
|
24753
|
-
return
|
|
24754
|
-
if (
|
|
24755
|
-
return
|
|
24756
|
-
if (
|
|
24757
|
-
if (
|
|
24758
|
-
-1 !==
|
|
24759
|
-
var
|
|
24760
|
-
if (
|
|
24761
|
-
f3.push(
|
|
24770
|
+
for (S2 = W2, W2++; ; ) {
|
|
24771
|
+
if (-1 === (S2 = i2.indexOf(z2, S2 + 1)))
|
|
24772
|
+
return r3 || h3.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: u3.length, index: W2 }), T2();
|
|
24773
|
+
if (S2 === n3 - 1)
|
|
24774
|
+
return T2(i2.substring(W2, S2).replace(C2, z2));
|
|
24775
|
+
if (z2 !== K2 || i2[S2 + 1] !== K2) {
|
|
24776
|
+
if (z2 === K2 || 0 === S2 || i2[S2 - 1] !== K2) {
|
|
24777
|
+
-1 !== w3 && w3 < S2 + 1 && (w3 = i2.indexOf(M2, S2 + 1)), -1 !== R2 && R2 < S2 + 1 && (R2 = i2.indexOf(P2, S2 + 1));
|
|
24778
|
+
var O2 = A2(-1 === R2 ? w3 : Math.min(w3, R2));
|
|
24779
|
+
if (i2.substr(S2 + 1 + O2, e2) === M2) {
|
|
24780
|
+
f3.push(i2.substring(W2, S2).replace(C2, z2)), i2[W2 = S2 + 1 + O2 + e2] !== z2 && (S2 = i2.indexOf(z2, W2)), w3 = i2.indexOf(M2, W2), R2 = i2.indexOf(P2, W2);
|
|
24762
24781
|
break;
|
|
24763
24782
|
}
|
|
24764
|
-
var
|
|
24765
|
-
if (
|
|
24766
|
-
if (f3.push(
|
|
24767
|
-
return
|
|
24768
|
-
if (
|
|
24769
|
-
return
|
|
24783
|
+
var x2 = A2(R2);
|
|
24784
|
+
if (i2.substring(S2 + 1 + x2, S2 + 1 + x2 + s3) === P2) {
|
|
24785
|
+
if (f3.push(i2.substring(W2, S2).replace(C2, z2)), D2(S2 + 1 + x2 + s3), w3 = i2.indexOf(M2, W2), S2 = i2.indexOf(z2, W2), o3 && (F2(), H5))
|
|
24786
|
+
return L2();
|
|
24787
|
+
if (N2 && u3.length >= N2)
|
|
24788
|
+
return L2(true);
|
|
24770
24789
|
break;
|
|
24771
24790
|
}
|
|
24772
|
-
|
|
24791
|
+
h3.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: u3.length, index: W2 }), S2++;
|
|
24773
24792
|
}
|
|
24774
24793
|
} else
|
|
24775
|
-
|
|
24794
|
+
S2++;
|
|
24776
24795
|
}
|
|
24777
|
-
return
|
|
24778
|
-
function
|
|
24779
|
-
|
|
24796
|
+
return T2();
|
|
24797
|
+
function I2(e3) {
|
|
24798
|
+
u3.push(e3), d3 = W2;
|
|
24780
24799
|
}
|
|
24781
|
-
__name(
|
|
24782
|
-
function
|
|
24800
|
+
__name(I2, "I");
|
|
24801
|
+
function A2(e3) {
|
|
24783
24802
|
var t3 = 0;
|
|
24784
|
-
if (-1 !==
|
|
24785
|
-
var
|
|
24786
|
-
|
|
24803
|
+
if (-1 !== e3) {
|
|
24804
|
+
var r4 = i2.substring(S2 + 1, e3);
|
|
24805
|
+
r4 && "" === r4.trim() && (t3 = r4.length);
|
|
24787
24806
|
}
|
|
24788
24807
|
return t3;
|
|
24789
24808
|
}
|
|
24790
|
-
__name(
|
|
24791
|
-
function
|
|
24792
|
-
return
|
|
24809
|
+
__name(A2, "A");
|
|
24810
|
+
function T2(e3) {
|
|
24811
|
+
return r3 || (void 0 === e3 && (e3 = i2.substring(W2)), f3.push(e3), W2 = n3, I2(f3), o3 && F2()), L2();
|
|
24793
24812
|
}
|
|
24794
|
-
__name(
|
|
24795
|
-
function
|
|
24796
|
-
|
|
24813
|
+
__name(T2, "T");
|
|
24814
|
+
function D2(e3) {
|
|
24815
|
+
W2 = e3, I2(f3), f3 = [], R2 = i2.indexOf(P2, W2);
|
|
24797
24816
|
}
|
|
24798
|
-
__name(
|
|
24799
|
-
function
|
|
24800
|
-
return { data:
|
|
24817
|
+
__name(D2, "D");
|
|
24818
|
+
function L2(e3) {
|
|
24819
|
+
return { data: u3, errors: h3, meta: { delimiter: M2, linebreak: P2, aborted: H5, truncated: !!e3, cursor: d3 + (t2 || 0) } };
|
|
24801
24820
|
}
|
|
24802
|
-
__name(
|
|
24803
|
-
function
|
|
24804
|
-
|
|
24821
|
+
__name(L2, "L");
|
|
24822
|
+
function F2() {
|
|
24823
|
+
q2(L2()), u3 = [], h3 = [];
|
|
24805
24824
|
}
|
|
24806
|
-
__name(
|
|
24825
|
+
__name(F2, "F");
|
|
24807
24826
|
}, this.abort = function() {
|
|
24808
|
-
|
|
24827
|
+
H5 = true;
|
|
24809
24828
|
}, this.getCharIndex = function() {
|
|
24810
|
-
return
|
|
24829
|
+
return W2;
|
|
24811
24830
|
};
|
|
24812
24831
|
}
|
|
24813
24832
|
__name(E2, "E");
|
|
24814
24833
|
function _2(e2) {
|
|
24815
|
-
var t2 = e2.data,
|
|
24834
|
+
var t2 = e2.data, r3 = a2[t2.workerId], i2 = false;
|
|
24816
24835
|
if (t2.error)
|
|
24817
|
-
|
|
24836
|
+
r3.userError(t2.error, t2.file);
|
|
24818
24837
|
else if (t2.results && t2.results.data) {
|
|
24819
24838
|
var n3 = { abort: function() {
|
|
24820
|
-
|
|
24839
|
+
i2 = true, m2(t2.workerId, { data: [], errors: [], meta: { aborted: true } });
|
|
24821
24840
|
}, pause: y2, resume: y2 };
|
|
24822
|
-
if (
|
|
24823
|
-
for (var s3 = 0; s3 < t2.results.data.length && (
|
|
24841
|
+
if (J2(r3.userStep)) {
|
|
24842
|
+
for (var s3 = 0; s3 < t2.results.data.length && (r3.userStep({ data: t2.results.data[s3], errors: t2.results.errors, meta: t2.results.meta }, n3), !i2); s3++)
|
|
24824
24843
|
;
|
|
24825
24844
|
delete t2.results;
|
|
24826
24845
|
} else
|
|
24827
|
-
|
|
24846
|
+
J2(r3.userChunk) && (r3.userChunk(t2.results, n3, t2.file), delete t2.results);
|
|
24828
24847
|
}
|
|
24829
|
-
t2.finished && !
|
|
24848
|
+
t2.finished && !i2 && m2(t2.workerId, t2.results);
|
|
24830
24849
|
}
|
|
24831
24850
|
__name(_2, "_");
|
|
24832
24851
|
function m2(e2, t2) {
|
|
24833
|
-
var
|
|
24834
|
-
|
|
24852
|
+
var r3 = a2[e2];
|
|
24853
|
+
J2(r3.userComplete) && r3.userComplete(t2), r3.terminate(), delete a2[e2];
|
|
24835
24854
|
}
|
|
24836
24855
|
__name(m2, "m");
|
|
24837
24856
|
function y2() {
|
|
@@ -24842,8 +24861,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24842
24861
|
if ("object" != typeof e2 || null === e2)
|
|
24843
24862
|
return e2;
|
|
24844
24863
|
var t2 = Array.isArray(e2) ? [] : {};
|
|
24845
|
-
for (var
|
|
24846
|
-
t2[
|
|
24864
|
+
for (var r3 in e2)
|
|
24865
|
+
t2[r3] = w2(e2[r3]);
|
|
24847
24866
|
return t2;
|
|
24848
24867
|
}
|
|
24849
24868
|
__name(w2, "w");
|
|
@@ -24853,20 +24872,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24853
24872
|
};
|
|
24854
24873
|
}
|
|
24855
24874
|
__name(v2, "v");
|
|
24856
|
-
function
|
|
24875
|
+
function J2(e2) {
|
|
24857
24876
|
return "function" == typeof e2;
|
|
24858
24877
|
}
|
|
24859
|
-
__name(
|
|
24878
|
+
__name(J2, "J");
|
|
24860
24879
|
return o2 && (f2.onmessage = function(e2) {
|
|
24861
24880
|
var t2 = e2.data;
|
|
24862
24881
|
void 0 === b3.WORKER_ID && t2 && (b3.WORKER_ID = t2.workerId);
|
|
24863
24882
|
if ("string" == typeof t2.input)
|
|
24864
24883
|
f2.postMessage({ workerId: b3.WORKER_ID, results: b3.parse(t2.input, t2.config), finished: true });
|
|
24865
24884
|
else if (f2.File && t2.input instanceof File || t2.input instanceof Object) {
|
|
24866
|
-
var
|
|
24867
|
-
|
|
24885
|
+
var r3 = b3.parse(t2.input, t2.config);
|
|
24886
|
+
r3 && f2.postMessage({ workerId: b3.WORKER_ID, results: r3, finished: true });
|
|
24868
24887
|
}
|
|
24869
|
-
}), (l2.prototype = Object.create(
|
|
24888
|
+
}), (l2.prototype = Object.create(h2.prototype)).constructor = l2, (c2.prototype = Object.create(h2.prototype)).constructor = c2, (p2.prototype = Object.create(p2.prototype)).constructor = p2, (g2.prototype = Object.create(h2.prototype)).constructor = g2, b3;
|
|
24870
24889
|
}, "s"));
|
|
24871
24890
|
})(papaparse_min);
|
|
24872
24891
|
var papaparse_minExports = papaparse_min.exports;
|
|
@@ -150973,7 +150992,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
150973
150992
|
}
|
|
150974
150993
|
__name(showFileDialog, "showFileDialog");
|
|
150975
150994
|
const name = "@teselagen/ove";
|
|
150976
|
-
const version = "0.7.
|
|
150995
|
+
const version = "0.7.14";
|
|
150977
150996
|
const main = "./src/index.js";
|
|
150978
150997
|
const type = "module";
|
|
150979
150998
|
const exports$1 = {
|
|
@@ -160197,13 +160216,14 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
160197
160216
|
smallSlider,
|
|
160198
160217
|
editorName
|
|
160199
160218
|
}) {
|
|
160219
|
+
const mainSelector = editorName ? `.veEditor.${editorName}` : ".veEditor";
|
|
160200
160220
|
const target = React$2.useRef();
|
|
160201
160221
|
const svgEleRef = React$2.useRef();
|
|
160202
160222
|
reactExports.useEffect(() => {
|
|
160203
160223
|
var _a2;
|
|
160204
|
-
const svgEle = (_a2 = document.querySelector(
|
|
160224
|
+
const svgEle = (_a2 = document.querySelector(mainSelector)) == null ? void 0 : _a2.querySelector(".veCircularView .circularViewSvg");
|
|
160205
160225
|
svgEleRef.current = svgEle;
|
|
160206
|
-
}, [editorName]);
|
|
160226
|
+
}, [editorName, mainSelector]);
|
|
160207
160227
|
const showLabelsDebounced = c(
|
|
160208
160228
|
(el2) => {
|
|
160209
160229
|
try {
|
|
@@ -160240,9 +160260,11 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
160240
160260
|
var _a2;
|
|
160241
160261
|
const val2 = 360 - _val;
|
|
160242
160262
|
if (!svgEleRef.current) {
|
|
160243
|
-
svgEleRef.current = (_a2 = document.querySelector(
|
|
160263
|
+
svgEleRef.current = (_a2 = document.querySelector(mainSelector)) == null ? void 0 : _a2.querySelector(".veCircularView .circularViewSvg");
|
|
160244
160264
|
}
|
|
160245
160265
|
const el2 = svgEleRef.current;
|
|
160266
|
+
if (!el2)
|
|
160267
|
+
return;
|
|
160246
160268
|
const innerEl = el2 == null ? void 0 : el2.querySelector("g");
|
|
160247
160269
|
innerEl.style.transform = `rotate(${val2}deg)`;
|
|
160248
160270
|
setRotationRadians(val2 * Math.PI / 180);
|
|
@@ -168101,7 +168123,8 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
168101
168123
|
withFullscreen,
|
|
168102
168124
|
selectionLayer: selectionLayer2,
|
|
168103
168125
|
selectionLayerUpdate: selectionLayerUpdate2,
|
|
168104
|
-
caretPositionUpdate: caretPositionUpdate2
|
|
168126
|
+
caretPositionUpdate: caretPositionUpdate2,
|
|
168127
|
+
editorName = "tg-simple-dna-view"
|
|
168105
168128
|
} = props;
|
|
168106
168129
|
const [previewType, setPreviewType] = reactExports.useState(
|
|
168107
168130
|
_sequenceData.circular ? "circular" : "linear"
|
|
@@ -168234,7 +168257,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
168234
168257
|
Component,
|
|
168235
168258
|
__spreadValues({}, __spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
168236
168259
|
showCicularViewInternalLabels: true,
|
|
168237
|
-
className:
|
|
168260
|
+
className: `${editorName} veEditor tg-simple-dna-view`,
|
|
168238
168261
|
width: 300,
|
|
168239
168262
|
height: 300,
|
|
168240
168263
|
noWarnings,
|