@sheetxl/io-xlsx 0.8.0-beta.1 → 0.8.0-beta.3
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/browser/cjs/BGFXHa9DqD7qfj7K.cjs +5 -0
- package/browser/cjs/C8oC1tPbhgR0Dqtx.cjs +2 -0
- package/browser/cjs/CIQ0CyhkW02G7UhX.cjs +1 -0
- package/browser/cjs/{D5Y4KQhKdukOkjvA.cjs → D3EWCPfCu-qMOIGd.cjs} +1 -2
- package/browser/cjs/{BAtEL-5TLyoaPFDP.cjs → DULsYP_GcPGLVYSE.cjs} +10 -1
- package/browser/cjs/DtBN3UOzNJjYBwJ6.cjs +1 -0
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/sNZR19Wk-XQ2xZ9E.cjs +1 -0
- package/browser/esm/{BkNXyG6NC-w5Xo92.mjs → 9kAH9485xCkOzN_I.mjs} +28 -13
- package/browser/esm/{Cok_fBIUCHDSrKw0.mjs → B8BqrWUHPa06PzmO.mjs} +446 -347
- package/browser/esm/{Dj7D2nVdAZ3TiUks.mjs → BdmxnPd0ptyqOCaM.mjs} +1595 -1124
- package/browser/esm/BzlhIt5zSG0Ts4xd.mjs +3324 -0
- package/browser/esm/CED9M7CASY6R5LBH.mjs +159 -0
- package/browser/esm/{4BWLu134ABlCQEtM.mjs → DNwAYvPHH1G27K-w.mjs} +1824 -1051
- package/browser/esm/{ijQzHH-bvDfUHIi1.mjs → DbSKfjIyE4a1YHoX.mjs} +1 -1
- package/browser/esm/{Dz1Dp8DDJvhd09RR.mjs → DtypWHI_cwfAvvyR.mjs} +1 -1
- package/browser/esm/PpS5wqbPAZ9D3W7c.mjs +67 -0
- package/browser/esm/{Ctqql4O-3xj2K8vv.mjs → aL7oQqItresvrEf2.mjs} +2 -2
- package/browser/esm/{CLWzJJyoSrykkVLX.mjs → h9ucGRwzGRA2N44D.mjs} +2 -2
- package/browser/esm/index.mjs +3 -3
- package/node/esm/{fOnuUjpPCAzmuIXN.mjs → A5sK8gK9ymQOyChG.mjs} +2 -2
- package/node/esm/CCD1vEduHhKax_d_.mjs +170 -0
- package/node/esm/{CF1R5ovFsRNu--Rw.mjs → CJGTDWKH_yrWAW8o.mjs} +1934 -1143
- package/node/esm/{CEAmv36xpTNgFwl_.mjs → CsTuNxyS02vBz0Tk.mjs} +49 -35
- package/node/esm/{Ctcl4jN52INWpKWC.mjs → DOXXVsfrZi_6L0V7.mjs} +607 -506
- package/node/esm/OkoETXoPSSH3gQxa.mjs +2959 -0
- package/node/esm/TERvDGVSsvCefEiX.mjs +3410 -0
- package/node/esm/index.mjs +40 -25
- package/node/esm/{CEV7nKotMpeRRnQC.mjs → mlCt7xhd97xcwrEr.mjs} +1 -1
- package/package.json +3 -3
- package/types/src/ConditionalFormatRules.d.ts +3 -3
- package/types/src/DataValidationRules.d.ts +18 -2
- package/types/src/ExcelCalcStamp.d.ts +39 -0
- package/types/src/ExcelCompat.d.ts +197 -42
- package/types/src/LegacyFormula.d.ts +28 -7
- package/types/src/Plugin.d.ts +16 -5
- package/types/src/ProtectionAttributes.d.ts +38 -0
- package/types/src/SourcePackage.d.ts +31 -12
- package/types/src/Types.d.ts +17 -0
- package/types/src/reader/HiddenFormulas.d.ts +16 -0
- package/types/src/reader/Warning.d.ts +29 -0
- package/types/src/reader/dom/DOMTransformer.d.ts +1 -1
- package/types/src/reader/dom/ExecutionContext.d.ts +16 -3
- package/types/src/reader/dom/Types.d.ts +19 -3
- package/types/src/reader/domVisitors/CommentVisitor.d.ts +18 -1
- package/types/src/reader/domVisitors/CommentsVisitor.d.ts +2 -2
- package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +21 -3
- package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts +2 -2
- package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +6 -1
- package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts +9 -1
- package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts +2 -2
- package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +11 -1
- package/types/src/reader/sax/LeanSaxParser.d.ts +58 -0
- package/types/src/reader/sax/SaxParser.d.ts +11 -1
- package/types/src/reader/sax/SaxVisitor.d.ts +3 -2
- package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +9 -0
- package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +11 -4
- package/types/src/utils/VmlNoteShapes.d.ts +75 -0
- package/types/src/vba/VBAProject.d.ts +52 -4
- package/types/src/writer/builder/ContentTypes.d.ts +13 -0
- package/types/src/writer/builder/Emitter.d.ts +6 -6
- package/types/src/writer/builder/OpcXmlUtils.d.ts +2 -0
- package/types/src/writer/builder/PackageBuilder.d.ts +70 -22
- package/types/src/writer/builder/PartWriter.d.ts +5 -0
- package/types/src/writer/builder/RelationshipSet.d.ts +3 -0
- package/types/src/writer/builder/Types.d.ts +107 -38
- package/types/src/writer/builder/_Types.d.ts +17 -0
- package/types/src/writer/emitters/CommentsEmitter.d.ts +52 -0
- package/types/src/writer/emitters/EmbeddedPartEmitter.d.ts +60 -0
- package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +19 -0
- package/types/src/writer/emitters/LegacyDrawingEmitter.d.ts +18 -0
- package/types/src/writer/emitters/PersonsEmitter.d.ts +17 -0
- package/types/src/writer/emitters/PivotTableEmitter.d.ts +45 -0
- package/types/src/writer/emitters/ThreadedCommentsEmitter.d.ts +21 -0
- package/types/src/writer/emitters/WorkbookEmitter.d.ts +16 -3
- package/types/src/writer/utils/DrawMLUtils.d.ts +16 -1
- package/types/src/writer/utils/HiddenFormulaXfs.d.ts +28 -0
- package/browser/cjs/Bg0e53JZa8vhmm5a.cjs +0 -1
- package/browser/cjs/CK5FFUvet6FnIYO_.cjs +0 -5
- package/browser/cjs/DV6LeTEiiFUrZoxj.cjs +0 -1
- package/browser/cjs/DWkuoJSgvcXJTdN1.cjs +0 -1
- package/browser/cjs/Db8YjGM6TG34c8aT.cjs +0 -1
- package/browser/esm/BzQ_lPzc8C4OTIGZ.mjs +0 -99
- package/browser/esm/CJknI8BYGSZr-4zS.mjs +0 -52
- package/browser/esm/D-m_kQLaewdwuXaF.mjs +0 -2685
- package/node/esm/CvnRSooxEQdlJgMn.mjs +0 -2766
- package/node/esm/DQd0vxzTaPt2qSL-.mjs +0 -108
- package/node/esm/ssSlRCbCqxvZ9IX8.mjs +0 -2481
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.3
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
var
|
|
7
|
+
import { AddressUtils as e, FormulaError as t, FormulaText as n, FunctionDeclarations as r, ICalculation as i, ICondition as a, parseFormulaLiteral as o } from "@sheetxl/sdk";
|
|
8
|
+
var s = "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main", c = "http://schemas.microsoft.com/office/excel/2006/main", l = "{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}", u = "{78C0D931-6437-407d-A8EE-F0AAD7539E65}", d = "{78C0D931-6839-4c89-B8D6-976A2CC4E5B4}", f = "{B025F937-C7B1-47D3-B67F-A62EFF666E3E}", p = "{A8765BA9-456A-4dab-B4F3-ACF838C121DE}", m = "{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}", h = {
|
|
9
9
|
"{05C60535-1F16-4FD2-B633-F4F36F0B64E0}": "sparklines",
|
|
10
10
|
"{7E03D99C-DC04-49D9-9315-930204A7B6E9}": "timelines",
|
|
11
11
|
"{01252117-D84E-4E92-8308-4BE1C098FCBB}": "ignoredErrors",
|
|
12
12
|
"{F7C9EE02-42E1-4005-9D12-6889AFFD525C}": "workbook protection extensions"
|
|
13
|
-
},
|
|
14
|
-
function
|
|
13
|
+
}, g = /* @__PURE__ */ new Set(["{77BFE23E-C014-4D31-8A63-9C772DBF06B6}"]);
|
|
14
|
+
function _(e) {
|
|
15
15
|
return (e ?? "").toUpperCase();
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function v(e) {
|
|
18
18
|
return `{${e().toUpperCase()}}`;
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var y = 4294967295, b = 65535, x = 67324752, S = 134695760, C = S, w = 33639248, T = 101010256, E = 101075792, D = 117853008, O = 39169, k = 21589, ee = 30837, te = 30805, A = 2048, j = 16384, M = 2048, N = 1024, P = new Date(2107, 11, 31), ne = new Date(1980, 0, 1), F = Infinity, re = "undefined", I = /* @__PURE__ */ new Uint8Array(), ie = 2;
|
|
21
21
|
try {
|
|
22
|
-
typeof navigator < "u" && navigator.hardwareConcurrency && (
|
|
22
|
+
typeof navigator < "u" && navigator.hardwareConcurrency && (ie = navigator.hardwareConcurrency);
|
|
23
23
|
} catch {}
|
|
24
|
-
var
|
|
24
|
+
var ae = {
|
|
25
25
|
workerURI: "./core/web-worker-wasm.js",
|
|
26
26
|
wasmURI: "./core/streams/zlib-wasm/zlib-streams.wasm",
|
|
27
27
|
chunkSize: 65536,
|
|
28
|
-
maxWorkers:
|
|
28
|
+
maxWorkers: ie,
|
|
29
29
|
terminateWorkerTimeout: 5e3,
|
|
30
30
|
workerStarvationTimeout: 5e3,
|
|
31
31
|
useWebWorkers: !0,
|
|
32
32
|
useCompressionStream: !0,
|
|
33
33
|
CompressionStream: typeof CompressionStream < "u" && CompressionStream,
|
|
34
34
|
DecompressionStream: typeof DecompressionStream < "u" && DecompressionStream
|
|
35
|
-
},
|
|
35
|
+
}, oe = [
|
|
36
36
|
"baseURI",
|
|
37
37
|
"wasmURI",
|
|
38
38
|
"workerURI",
|
|
@@ -46,20 +46,20 @@ var ne = {
|
|
|
46
46
|
"DecompressionStream",
|
|
47
47
|
"CompressionStreamZlib",
|
|
48
48
|
"DecompressionStreamZlib"
|
|
49
|
-
],
|
|
50
|
-
function
|
|
51
|
-
return
|
|
49
|
+
], se = Object.assign({}, ae);
|
|
50
|
+
function L() {
|
|
51
|
+
return se;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ce(e) {
|
|
54
54
|
return Math.max(e.chunkSize, 64);
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
for (let t of
|
|
56
|
+
function le(e) {
|
|
57
|
+
for (let t of oe) {
|
|
58
58
|
let n = e[t];
|
|
59
|
-
n !== void 0 && (
|
|
59
|
+
n !== void 0 && (se[t] = n);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var ue = [
|
|
63
63
|
[],
|
|
64
64
|
[],
|
|
65
65
|
[],
|
|
@@ -72,13 +72,13 @@ var se = [
|
|
|
72
72
|
for (let e = 0; e < 256; e++) {
|
|
73
73
|
let t = e;
|
|
74
74
|
for (let e = 0; e < 8; e++) t = 1 & t ? t >>> 1 ^ 3988292384 : t >>> 1;
|
|
75
|
-
|
|
75
|
+
ue[0][e] = t;
|
|
76
76
|
}
|
|
77
77
|
for (let e = 0; e < 256; e++) for (let t = 1; t < 8; t++) {
|
|
78
|
-
let n =
|
|
79
|
-
|
|
78
|
+
let n = ue[t - 1][e];
|
|
79
|
+
ue[t][e] = n >>> 8 ^ ue[0][255 & n];
|
|
80
80
|
}
|
|
81
|
-
var [
|
|
81
|
+
var [de, fe, pe, me, he, ge, _e, ve] = ue, ye = class {
|
|
82
82
|
constructor(e) {
|
|
83
83
|
this.crc = e || -1;
|
|
84
84
|
}
|
|
@@ -88,18 +88,18 @@ var [L, ce, le, ue, de, fe, pe, me] = se, he = class {
|
|
|
88
88
|
let i = new DataView(e.buffer, e.byteOffset, n), a = n - 8;
|
|
89
89
|
for (; r <= a; r += 8) {
|
|
90
90
|
let e = t ^ i.getInt32(r, !0), n = i.getInt32(r + 4, !0);
|
|
91
|
-
t =
|
|
91
|
+
t = ve[255 & e] ^ _e[e >>> 8 & 255] ^ ge[e >>> 16 & 255] ^ he[e >>> 24 & 255] ^ me[255 & n] ^ pe[n >>> 8 & 255] ^ fe[n >>> 16 & 255] ^ de[n >>> 24 & 255];
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
for (; r < n; r++) t = t >>> 8 ^
|
|
94
|
+
for (; r < n; r++) t = t >>> 8 ^ de[255 & (t ^ e[r])];
|
|
95
95
|
this.crc = t;
|
|
96
96
|
}
|
|
97
97
|
get() {
|
|
98
98
|
return ~this.crc;
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, be = class extends TransformStream {
|
|
101
101
|
constructor() {
|
|
102
|
-
let e, t = new
|
|
102
|
+
let e, t = new ye();
|
|
103
103
|
super({
|
|
104
104
|
transform(e, n) {
|
|
105
105
|
t.append(e), n.enqueue(e);
|
|
@@ -111,7 +111,7 @@ var [L, ce, le, ue, de, fe, pe, me] = se, he = class {
|
|
|
111
111
|
}), e = this;
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
function
|
|
114
|
+
function xe(e) {
|
|
115
115
|
if (typeof TextEncoder > "u") {
|
|
116
116
|
e = unescape(encodeURIComponent(e));
|
|
117
117
|
let t = new Uint8Array(e.length);
|
|
@@ -146,7 +146,7 @@ var R = {
|
|
|
146
146
|
let i = e.length ? e[e.length - 1] : 0, a = R.getPartial(i);
|
|
147
147
|
return r.push(R.partial(t + a & 31, t + a > 32 ? n : r.pop(), 1)), r;
|
|
148
148
|
}
|
|
149
|
-
},
|
|
149
|
+
}, Se = { bytes: {
|
|
150
150
|
fromBits(e) {
|
|
151
151
|
let t = R.bitLength(e) / 8, n = new Uint8Array(t), r;
|
|
152
152
|
for (let i = 0; i < t; i++) 3 & i || (r = e[i / 4]), n[i] = r >>> 24, r <<= 8;
|
|
@@ -157,7 +157,7 @@ var R = {
|
|
|
157
157
|
for (n = 0; n < e.length; n++) r = r << 8 | e[n], 3 & ~n || (t.push(r), r = 0);
|
|
158
158
|
return 3 & n && t.push(R.partial(8 * (3 & n), r)), t;
|
|
159
159
|
}
|
|
160
|
-
} },
|
|
160
|
+
} }, Ce = { sha1: class {
|
|
161
161
|
constructor(e) {
|
|
162
162
|
let t = this;
|
|
163
163
|
t.blockSize = 512, t._init = [
|
|
@@ -179,7 +179,7 @@ var R = {
|
|
|
179
179
|
}
|
|
180
180
|
update(e) {
|
|
181
181
|
let t = this;
|
|
182
|
-
typeof e == "string" && (e =
|
|
182
|
+
typeof e == "string" && (e = Se.utf8String.toBits(e));
|
|
183
183
|
let n = t._buffer = R.concat(t._buffer, e), r = t._length, i = t._length = r + R.bitLength(e);
|
|
184
184
|
if (i > 9007199254740991) throw Error("Cannot hash more than 2^53 - 1 bits");
|
|
185
185
|
let a = new Uint32Array(n), o = 0;
|
|
@@ -210,7 +210,7 @@ var R = {
|
|
|
210
210
|
}
|
|
211
211
|
n[0] = n[0] + i | 0, n[1] = n[1] + a | 0, n[2] = n[2] + o | 0, n[3] = n[3] + s | 0, n[4] = n[4] + c | 0;
|
|
212
212
|
}
|
|
213
|
-
} },
|
|
213
|
+
} }, we = { aes: class {
|
|
214
214
|
constructor(e) {
|
|
215
215
|
let t = this;
|
|
216
216
|
t._tables = [[
|
|
@@ -266,7 +266,7 @@ var R = {
|
|
|
266
266
|
for (let e = 0; e < 4; e++) i[t ? 3 & -e : e] = u[m >>> 24] << 24 ^ u[h >> 16 & 255] << 16 ^ u[g >> 8 & 255] << 8 ^ u[255 & _] ^ n[v++], d = m, m = h, h = g, g = _, _ = d;
|
|
267
267
|
return i;
|
|
268
268
|
}
|
|
269
|
-
} },
|
|
269
|
+
} }, Te = { ctrGladman: class {
|
|
270
270
|
constructor(e, t) {
|
|
271
271
|
this._prf = e, this._initIv = t, this._iv = t;
|
|
272
272
|
}
|
|
@@ -298,12 +298,12 @@ var R = {
|
|
|
298
298
|
}
|
|
299
299
|
return R.clamp(t, i);
|
|
300
300
|
}
|
|
301
|
-
} },
|
|
302
|
-
importKey: (e) => new
|
|
301
|
+
} }, Ee = {
|
|
302
|
+
importKey: (e) => new Ee.hmacSha1(Se.bytes.toBits(e)),
|
|
303
303
|
pbkdf2(e, t, n, r) {
|
|
304
304
|
if (n ||= 1e4, r < 0 || n < 0) throw Error("invalid params to pbkdf2");
|
|
305
305
|
let i = 1 + (r >> 5) << 2, a, o, s, c, l, u = new ArrayBuffer(i), d = new DataView(u), f = 0, p = R;
|
|
306
|
-
for (t =
|
|
306
|
+
for (t = Se.bytes.toBits(t), l = 1; f < (i || 1); l++) {
|
|
307
307
|
for (a = o = e.encrypt(p.concat(t, [l])), s = 1; s < n; s++) for (o = e.encrypt(o), c = 0; c < o.length; c++) a[c] ^= o[c];
|
|
308
308
|
for (s = 0; f < (i || 1) && s < a.length; s++) d.setInt32(f, a[s]), f += 4;
|
|
309
309
|
}
|
|
@@ -311,7 +311,7 @@ var R = {
|
|
|
311
311
|
},
|
|
312
312
|
hmacSha1: class {
|
|
313
313
|
constructor(e) {
|
|
314
|
-
let t = this, n = t._hash =
|
|
314
|
+
let t = this, n = t._hash = Ce.sha1, r = [[], []];
|
|
315
315
|
t._baseHash = [new n(), new n()];
|
|
316
316
|
let i = t._baseHash[0].blockSize / 32;
|
|
317
317
|
e.length > i && (e = new n().update(e).finalize());
|
|
@@ -334,101 +334,101 @@ var R = {
|
|
|
334
334
|
return this.update(e), this.digest(e);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
},
|
|
338
|
-
function
|
|
339
|
-
if (
|
|
337
|
+
}, De = typeof crypto < "u" && typeof crypto.getRandomValues == "function", Oe = "Invalid password", ke = "Invalid signature", Ae = "zipjs-abort-check-password";
|
|
338
|
+
function je(e) {
|
|
339
|
+
if (De) return crypto.getRandomValues(e);
|
|
340
340
|
throw Error("Crypto API not supported");
|
|
341
341
|
}
|
|
342
|
-
var
|
|
342
|
+
var Me = 16, Ne = { name: "PBKDF2" }, Pe = Object.assign({ hash: { name: "HMAC" } }, Ne), Fe = Object.assign({
|
|
343
343
|
iterations: 1e3,
|
|
344
344
|
hash: { name: "SHA-1" }
|
|
345
|
-
},
|
|
345
|
+
}, Ne), Ie = ["deriveBits"], Le = [
|
|
346
346
|
8,
|
|
347
347
|
12,
|
|
348
348
|
16
|
|
349
|
-
],
|
|
349
|
+
], Re = [
|
|
350
350
|
16,
|
|
351
351
|
24,
|
|
352
352
|
32
|
|
353
|
-
],
|
|
353
|
+
], ze = 10, Be = [
|
|
354
354
|
0,
|
|
355
355
|
0,
|
|
356
356
|
0,
|
|
357
357
|
0
|
|
358
|
-
],
|
|
358
|
+
], Ve = typeof crypto != re, He = Ve && crypto.subtle, Ue = Ve && He !== void 0, We = Se.bytes, Ge = we.aes, Ke = Te.ctrGladman, qe = Ee.hmacSha1, Je = Ve && Ue && typeof He.importKey == "function", Ye = Ve && Ue && typeof He.deriveBits == "function", Xe = class extends TransformStream {
|
|
359
359
|
constructor({ password: e, rawPassword: t, encryptionStrength: n, checkPasswordOnly: r }) {
|
|
360
360
|
super({
|
|
361
361
|
start() {
|
|
362
|
-
|
|
362
|
+
Qe(this, e, t, n);
|
|
363
363
|
},
|
|
364
364
|
async transform(e, t) {
|
|
365
365
|
let n = this, { password: i, strength: a, resolveReady: o, ready: s } = n;
|
|
366
366
|
i ? (await async function(e, t, n, r) {
|
|
367
|
-
let i = await
|
|
368
|
-
if (i[0] != a[0] || i[1] != a[1]) throw Error(
|
|
369
|
-
}(n, a, i,
|
|
370
|
-
let c = new Uint8Array(e.length -
|
|
371
|
-
t.enqueue(
|
|
367
|
+
let i = await et(e, t, n, rt(r, 0, Le[t])), a = rt(r, Le[t]);
|
|
368
|
+
if (i[0] != a[0] || i[1] != a[1]) throw Error(Oe);
|
|
369
|
+
}(n, a, i, rt(e, 0, Le[a] + 2)), e = rt(e, Le[a] + 2), r ? t.error(Error(Ae)) : o()) : await s;
|
|
370
|
+
let c = new Uint8Array(e.length - ze - (e.length - ze) % Me);
|
|
371
|
+
t.enqueue($e(n, e, c, 0, ze, !0));
|
|
372
372
|
},
|
|
373
373
|
async flush(e) {
|
|
374
374
|
let { ctr: t, hmac: n, pending: r, ready: i } = this;
|
|
375
375
|
if (n && t) {
|
|
376
376
|
await i;
|
|
377
|
-
let a =
|
|
377
|
+
let a = rt(r, 0, r.length - ze), o = rt(r, r.length - ze), s = I;
|
|
378
378
|
if (a.length) {
|
|
379
|
-
let e =
|
|
380
|
-
n.update(e), s =
|
|
379
|
+
let e = at(We, a);
|
|
380
|
+
n.update(e), s = it(We, t.update(e));
|
|
381
381
|
}
|
|
382
|
-
let c =
|
|
383
|
-
for (let e = 0; e <
|
|
384
|
-
if (l) throw Error(
|
|
382
|
+
let c = rt(it(We, n.digest()), 0, ze), l = +(r.length < ze);
|
|
383
|
+
for (let e = 0; e < ze; e++) l |= c[e] ^ o[e];
|
|
384
|
+
if (l) throw Error(ke);
|
|
385
385
|
e.enqueue(s);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
},
|
|
390
|
+
}, Ze = class extends TransformStream {
|
|
391
391
|
constructor({ password: e, rawPassword: t, encryptionStrength: n }) {
|
|
392
392
|
let r;
|
|
393
393
|
super({
|
|
394
394
|
start() {
|
|
395
|
-
|
|
395
|
+
Qe(this, e, t, n);
|
|
396
396
|
},
|
|
397
397
|
async transform(e, t) {
|
|
398
|
-
let n = this, { password: r, strength: i, resolveReady: a, ready: o } = n, s =
|
|
398
|
+
let n = this, { password: r, strength: i, resolveReady: a, ready: o } = n, s = I;
|
|
399
399
|
r ? (s = await async function(e, t, n) {
|
|
400
|
-
let r =
|
|
401
|
-
return
|
|
400
|
+
let r = je(new Uint8Array(Le[t]));
|
|
401
|
+
return nt(r, await et(e, t, n, r));
|
|
402
402
|
}(n, i, r), a()) : await o;
|
|
403
|
-
let c = new Uint8Array(s.length + e.length - e.length %
|
|
404
|
-
c.set(s, 0), t.enqueue(
|
|
403
|
+
let c = new Uint8Array(s.length + e.length - e.length % Me);
|
|
404
|
+
c.set(s, 0), t.enqueue($e(n, e, c, s.length, 0));
|
|
405
405
|
},
|
|
406
406
|
async flush(e) {
|
|
407
407
|
let { ctr: t, hmac: n, pending: i, ready: a } = this;
|
|
408
408
|
if (n && t) {
|
|
409
409
|
await a;
|
|
410
|
-
let o =
|
|
410
|
+
let o = I;
|
|
411
411
|
if (i.length) {
|
|
412
|
-
let e = t.update(
|
|
413
|
-
n.update(e), o =
|
|
412
|
+
let e = t.update(at(We, i));
|
|
413
|
+
n.update(e), o = it(We, e);
|
|
414
414
|
}
|
|
415
|
-
r.signature =
|
|
415
|
+
r.signature = it(We, n.digest()).slice(0, ze), e.enqueue(nt(o, r.signature));
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
}), r = this;
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
|
-
function
|
|
421
|
+
function Qe(e, t, n, r) {
|
|
422
422
|
Object.assign(e, {
|
|
423
423
|
ready: new Promise((t) => e.resolveReady = t),
|
|
424
|
-
password:
|
|
424
|
+
password: tt(t, n),
|
|
425
425
|
strength: r - 1,
|
|
426
|
-
pending:
|
|
426
|
+
pending: I
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function $e(e, t, n, r, i, a) {
|
|
430
430
|
let { ctr: o, hmac: s, pending: c } = e;
|
|
431
|
-
c.length && (t =
|
|
431
|
+
c.length && (t = nt(c, t));
|
|
432
432
|
let l = t.length - i, u;
|
|
433
433
|
for (n = function(e, t) {
|
|
434
434
|
if (t && t > e.length) {
|
|
@@ -436,93 +436,93 @@ function Ye(e, t, n, r, i, a) {
|
|
|
436
436
|
(e = new Uint8Array(t)).set(n, 0);
|
|
437
437
|
}
|
|
438
438
|
return e;
|
|
439
|
-
}(n, r + (l - l %
|
|
440
|
-
let e =
|
|
439
|
+
}(n, r + (l - l % Me)), u = 0; u <= l - Me; u += Me) {
|
|
440
|
+
let e = at(We, rt(t, u, u + Me));
|
|
441
441
|
a && s.update(e);
|
|
442
442
|
let i = o.update(e);
|
|
443
|
-
a || s.update(i), n.set(
|
|
443
|
+
a || s.update(i), n.set(it(We, i), u + r);
|
|
444
444
|
}
|
|
445
|
-
return e.pending =
|
|
445
|
+
return e.pending = rt(t, u), n;
|
|
446
446
|
}
|
|
447
|
-
async function
|
|
447
|
+
async function et(e, t, n, r) {
|
|
448
448
|
e.password = null;
|
|
449
449
|
let i = await async function(e, t, n, r, i) {
|
|
450
|
-
if (!
|
|
450
|
+
if (!Je) return Ee.importKey(t);
|
|
451
451
|
try {
|
|
452
|
-
return await
|
|
452
|
+
return await He.importKey(e, t, n, r, i);
|
|
453
453
|
} catch {
|
|
454
|
-
return
|
|
454
|
+
return Je = !1, Ee.importKey(t);
|
|
455
455
|
}
|
|
456
|
-
}("raw", n,
|
|
457
|
-
if (!
|
|
456
|
+
}("raw", n, Pe, !1, Ie), a = await async function(e, t, n) {
|
|
457
|
+
if (!Ye) return Ee.pbkdf2(t, e.salt, Fe.iterations, n);
|
|
458
458
|
try {
|
|
459
|
-
return await
|
|
459
|
+
return await He.deriveBits(e, t, n);
|
|
460
460
|
} catch {
|
|
461
|
-
return
|
|
461
|
+
return Ye = !1, Ee.pbkdf2(t, e.salt, Fe.iterations, n);
|
|
462
462
|
}
|
|
463
|
-
}(Object.assign({ salt: r },
|
|
463
|
+
}(Object.assign({ salt: r }, Fe), i, 8 * (2 * Re[t] + 2)), o = new Uint8Array(a), s = at(We, rt(o, 0, Re[t])), c = at(We, rt(o, Re[t], 2 * Re[t])), l = rt(o, 2 * Re[t]);
|
|
464
464
|
return Object.assign(e, {
|
|
465
465
|
keys: {
|
|
466
466
|
key: s,
|
|
467
467
|
authentication: c,
|
|
468
468
|
passwordVerification: l
|
|
469
469
|
},
|
|
470
|
-
ctr: new
|
|
471
|
-
hmac: new
|
|
470
|
+
ctr: new Ke(new Ge(s), Array.from(Be)),
|
|
471
|
+
hmac: new qe(c)
|
|
472
472
|
}), l;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
return t === void 0 ?
|
|
474
|
+
function tt(e, t) {
|
|
475
|
+
return t === void 0 ? xe(e) : t;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function nt(e, t) {
|
|
478
478
|
let n = e;
|
|
479
479
|
return e.length + t.length && (n = new Uint8Array(e.length + t.length), n.set(e, 0), n.set(t, e.length)), n;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function rt(e, t, n) {
|
|
482
482
|
return e.subarray(t, n);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function it(e, t) {
|
|
485
485
|
return e.fromBits(t);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function at(e, t) {
|
|
488
488
|
return e.toBits(t);
|
|
489
489
|
}
|
|
490
|
-
var
|
|
490
|
+
var ot = class extends TransformStream {
|
|
491
491
|
constructor({ password: e, rawPassword: t, passwordVerification: n, checkPasswordOnly: r }) {
|
|
492
492
|
super({
|
|
493
493
|
start() {
|
|
494
|
-
|
|
494
|
+
ct(this, e, t, n);
|
|
495
495
|
},
|
|
496
496
|
transform(e, t) {
|
|
497
497
|
let n = this;
|
|
498
498
|
if (n.password || n.rawPassword) {
|
|
499
|
-
let t =
|
|
500
|
-
if (n.password = n.rawPassword = null, (t.at(-1) ^ n.passwordVerification) != 0) throw Error(
|
|
499
|
+
let t = lt(n, e.subarray(0, 12));
|
|
500
|
+
if (n.password = n.rawPassword = null, (t.at(-1) ^ n.passwordVerification) != 0) throw Error(Oe);
|
|
501
501
|
e = e.subarray(12);
|
|
502
502
|
}
|
|
503
|
-
r ? t.error(Error(
|
|
503
|
+
r ? t.error(Error(Ae)) : t.enqueue(lt(n, e));
|
|
504
504
|
}
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
|
-
},
|
|
507
|
+
}, st = class extends TransformStream {
|
|
508
508
|
constructor({ password: e, rawPassword: t, passwordVerification: n }) {
|
|
509
509
|
super({
|
|
510
510
|
start() {
|
|
511
|
-
|
|
511
|
+
ct(this, e, t, n);
|
|
512
512
|
},
|
|
513
513
|
transform(e, t) {
|
|
514
514
|
let n = this, r, i;
|
|
515
515
|
if (n.password || n.rawPassword) {
|
|
516
516
|
n.password = n.rawPassword = null;
|
|
517
|
-
let t =
|
|
518
|
-
t[11] = n.passwordVerification, r = new Uint8Array(e.length + t.length), r.set(
|
|
517
|
+
let t = je(/* @__PURE__ */ new Uint8Array(12));
|
|
518
|
+
t[11] = n.passwordVerification, r = new Uint8Array(e.length + t.length), r.set(ut(n, t), 0), i = 12;
|
|
519
519
|
} else r = new Uint8Array(e.length), i = 0;
|
|
520
|
-
r.set(
|
|
520
|
+
r.set(ut(n, e), i), t.enqueue(r);
|
|
521
521
|
}
|
|
522
522
|
});
|
|
523
523
|
}
|
|
524
524
|
};
|
|
525
|
-
function
|
|
525
|
+
function ct(e, t, n, r) {
|
|
526
526
|
Object.assign(e, {
|
|
527
527
|
password: t,
|
|
528
528
|
rawPassword: n,
|
|
@@ -535,27 +535,27 @@ function it(e, t, n, r) {
|
|
|
535
535
|
];
|
|
536
536
|
if (Object.assign(e, {
|
|
537
537
|
keys: r,
|
|
538
|
-
crcKey0: new
|
|
539
|
-
crcKey2: new
|
|
540
|
-
}), n) for (let t = 0; t < n.length; t++)
|
|
541
|
-
else for (let n = 0; n < t.length; n++)
|
|
538
|
+
crcKey0: new ye(r[0]),
|
|
539
|
+
crcKey2: new ye(r[2])
|
|
540
|
+
}), n) for (let t = 0; t < n.length; t++) dt(e, n[t]);
|
|
541
|
+
else for (let n = 0; n < t.length; n++) dt(e, t.charCodeAt(n));
|
|
542
542
|
}(e, t, n);
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function lt(e, t) {
|
|
545
545
|
let n = new Uint8Array(t.length);
|
|
546
|
-
for (let r = 0; r < t.length; r++) n[r] =
|
|
546
|
+
for (let r = 0; r < t.length; r++) n[r] = ft(e) ^ t[r], dt(e, n[r]);
|
|
547
547
|
return n;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function ut(e, t) {
|
|
550
550
|
let n = new Uint8Array(t.length);
|
|
551
|
-
for (let r = 0; r < t.length; r++) n[r] =
|
|
551
|
+
for (let r = 0; r < t.length; r++) n[r] = ft(e) ^ t[r], dt(e, t[r]);
|
|
552
552
|
return n;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function dt(e, t) {
|
|
555
555
|
let [, n] = e.keys;
|
|
556
556
|
e.crcKey0.append([t]);
|
|
557
557
|
let r = ~e.crcKey0.get();
|
|
558
|
-
n =
|
|
558
|
+
n = mt(Math.imul(mt(n + pt(r)), 134775813) + 1), e.crcKey2.append([n >>> 24]);
|
|
559
559
|
let i = ~e.crcKey2.get();
|
|
560
560
|
e.keys = [
|
|
561
561
|
r,
|
|
@@ -563,29 +563,29 @@ function st(e, t) {
|
|
|
563
563
|
i
|
|
564
564
|
];
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function ft(e) {
|
|
567
567
|
let t = 2 | e.keys[2];
|
|
568
|
-
return
|
|
568
|
+
return pt(Math.imul(t, 1 ^ t) >>> 8);
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function pt(e) {
|
|
571
571
|
return 255 & e;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function mt(e) {
|
|
574
574
|
return 4294967295 & e;
|
|
575
575
|
}
|
|
576
|
-
var
|
|
576
|
+
var ht = "Invalid uncompressed size", gt = "Invalid compressed data", _t = class extends TransformStream {
|
|
577
577
|
constructor(e, { chunkSize: t, CompressionStreamZlib: n, CompressionStream: r }) {
|
|
578
578
|
super({});
|
|
579
579
|
let { compressed: i, encrypted: a, useCompressionStream: o, zipCrypto: s, signed: c, level: l, deflate64: u } = e, d = this, f, p, m, h = super.readable, g = c && i && !u && (!a || s) && !!(o && r);
|
|
580
|
-
a && !s || !c || g || (f = new
|
|
580
|
+
a && !s || !c || g || (f = new be(), h = St(h, f)), i && (g ? (m = new vt(), h = Ct(h, new r("gzip")), h = St(h, m)) : h = xt(h, o, {
|
|
581
581
|
level: l,
|
|
582
582
|
chunkSize: t
|
|
583
|
-
}, r, n, r)), a && (s ? h =
|
|
583
|
+
}, r, n, r)), a && (s ? h = St(h, new st(e)) : (p = new Ze(e), h = St(h, p))), bt(d, h, () => {
|
|
584
584
|
let e;
|
|
585
585
|
a && !s && (e = p.signature), a && !s || !c || (e = g ? m.signature : new DataView(f.value.buffer).getUint32(0)), d.signature = e;
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
|
-
},
|
|
588
|
+
}, vt = class extends TransformStream {
|
|
589
589
|
constructor() {
|
|
590
590
|
let e, t = 10, n = /* @__PURE__ */ new Uint8Array();
|
|
591
591
|
super({
|
|
@@ -611,11 +611,11 @@ var dt = "Invalid uncompressed size", ft = "Invalid compressed data", pt = class
|
|
|
611
611
|
}
|
|
612
612
|
}), e = this;
|
|
613
613
|
}
|
|
614
|
-
},
|
|
614
|
+
}, yt = class extends TransformStream {
|
|
615
615
|
constructor(e, { chunkSize: t, DecompressionStreamZlib: n, DecompressionStream: r }) {
|
|
616
616
|
super({});
|
|
617
617
|
let { zipCrypto: i, encrypted: a, signed: o, signature: s, compressed: c, useCompressionStream: l, deflate64: u } = e, d, f, p = super.readable;
|
|
618
|
-
a && (i ? p =
|
|
618
|
+
a && (i ? p = St(p, new ot(e)) : (f = new Xe(e), p = St(p, f))), c && (p = xt(p, l, {
|
|
619
619
|
chunkSize: t,
|
|
620
620
|
deflate64: u
|
|
621
621
|
}, r, n, r), p = function(e) {
|
|
@@ -627,7 +627,7 @@ var dt = "Invalid uncompressed size", ft = "Invalid compressed data", pt = class
|
|
|
627
627
|
n = await t.read();
|
|
628
628
|
} catch (e) {
|
|
629
629
|
if (e && e.message) throw e;
|
|
630
|
-
let t = Error(
|
|
630
|
+
let t = Error(gt);
|
|
631
631
|
throw t.cause = e, t;
|
|
632
632
|
}
|
|
633
633
|
let { value: r, done: i } = n;
|
|
@@ -635,18 +635,18 @@ var dt = "Invalid uncompressed size", ft = "Invalid compressed data", pt = class
|
|
|
635
635
|
},
|
|
636
636
|
cancel: (e) => t.cancel(e)
|
|
637
637
|
});
|
|
638
|
-
}(p)), a && !i || !o || (d = new
|
|
638
|
+
}(p)), a && !i || !o || (d = new be(), p = St(p, d)), bt(this, p, () => {
|
|
639
639
|
if ((!a || i) && o) {
|
|
640
640
|
let e = new DataView(d.value.buffer);
|
|
641
|
-
if (s != e.getUint32(0, !1)) throw Error(
|
|
641
|
+
if (s != e.getUint32(0, !1)) throw Error(ke);
|
|
642
642
|
}
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
|
-
function
|
|
647
|
-
t =
|
|
646
|
+
function bt(e, t, n) {
|
|
647
|
+
t = St(t, new TransformStream({ flush: n })), Object.defineProperty(e, "readable", { get: () => t });
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function xt(e, t, n, r, i, a) {
|
|
650
650
|
let o = t && r ? r : i || a, s = n.deflate64 ? "deflate64-raw" : "deflate-raw", c;
|
|
651
651
|
try {
|
|
652
652
|
c = new o(s, n);
|
|
@@ -658,12 +658,12 @@ function _t(e, t, n, r, i, a) {
|
|
|
658
658
|
c = new a(s, n);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
return
|
|
661
|
+
return Ct(e, c);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function St(e, t) {
|
|
664
664
|
return e.pipeThrough(t);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function Ct(e, t) {
|
|
667
667
|
let n = t.writable.getWriter(), r = e.getReader();
|
|
668
668
|
return async function() {
|
|
669
669
|
try {
|
|
@@ -689,11 +689,11 @@ function yt(e, t) {
|
|
|
689
689
|
}
|
|
690
690
|
}(), t.readable;
|
|
691
691
|
}
|
|
692
|
-
var
|
|
692
|
+
var wt, Tt, Et, Dt, Ot = "start", kt = "data", At = "deflate", jt = class extends TransformStream {
|
|
693
693
|
constructor(e, t) {
|
|
694
694
|
super({});
|
|
695
695
|
let n = this, { codecType: r } = e, i;
|
|
696
|
-
r.startsWith("deflate") ? i =
|
|
696
|
+
r.startsWith("deflate") ? i = _t : r.startsWith("inflate") && (i = yt), n.outputSize = 0;
|
|
697
697
|
let a = 0, o = new i(e, t), s = super.readable, c = new TransformStream({
|
|
698
698
|
transform(e, t) {
|
|
699
699
|
e && e.length && (a += e.length, t.enqueue(e));
|
|
@@ -703,7 +703,7 @@ var bt, xt, St, Ct, wt = "start", Tt = "data", Et = "deflate", Dt = class extend
|
|
|
703
703
|
}
|
|
704
704
|
}), l = new TransformStream({
|
|
705
705
|
transform(t, r) {
|
|
706
|
-
if (t && t.length && (r.enqueue(t), n.outputSize += t.length, e.outputSize !== void 0 && n.outputSize > e.outputSize)) throw Error(
|
|
706
|
+
if (t && t.length && (r.enqueue(t), n.outputSize += t.length, e.outputSize !== void 0 && n.outputSize > e.outputSize)) throw Error(ht);
|
|
707
707
|
},
|
|
708
708
|
flush() {
|
|
709
709
|
let { signature: e } = o;
|
|
@@ -715,7 +715,7 @@ var bt, xt, St, Ct, wt = "start", Tt = "data", Et = "deflate", Dt = class extend
|
|
|
715
715
|
});
|
|
716
716
|
Object.defineProperty(n, "readable", { get: () => s.pipeThrough(c).pipeThrough(o).pipeThrough(l) });
|
|
717
717
|
}
|
|
718
|
-
},
|
|
718
|
+
}, Mt = class extends TransformStream {
|
|
719
719
|
constructor(e) {
|
|
720
720
|
let t;
|
|
721
721
|
e >= 1 || (e = 65536), super({
|
|
@@ -733,17 +733,17 @@ var bt, xt, St, Ct, wt = "start", Tt = "data", Et = "deflate", Dt = class extend
|
|
|
733
733
|
}
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
|
-
},
|
|
736
|
+
}, Nt = { type: "module" }, Pt = "error", Ft = !0;
|
|
737
737
|
try {
|
|
738
|
-
|
|
738
|
+
Ft = typeof structuredClone == "function" && structuredClone(new DOMException("", "AbortError")).code !== void 0;
|
|
739
739
|
} catch {}
|
|
740
|
-
var
|
|
740
|
+
var It = () => {}, Lt = class {
|
|
741
741
|
constructor(e, { readable: t, writable: n }, { options: r, config: i, streamOptions: a, useWebWorkers: o, transferStreams: s, workerURI: c }, l) {
|
|
742
742
|
let { signal: u } = a;
|
|
743
743
|
return Object.assign(e, {
|
|
744
744
|
busy: !0,
|
|
745
745
|
generation: (e.generation || 0) + 1,
|
|
746
|
-
readable: t.pipeThrough(new
|
|
746
|
+
readable: t.pipeThrough(new Mt(ce(i))).pipeThrough(new Rt(a), { signal: u }),
|
|
747
747
|
writable: n,
|
|
748
748
|
options: Object.assign({}, r),
|
|
749
749
|
workerURI: c,
|
|
@@ -758,40 +758,40 @@ var Mt = () => {}, Nt = class {
|
|
|
758
758
|
t && (e.resolveTerminated = null, e.terminated = !0, e.worker.terminate(), t()), e.busy = !1, l(e);
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
|
-
}),
|
|
761
|
+
}), wt === void 0 && (wt = typeof Worker != re), (o && wt ? Vt : Bt)(e, i);
|
|
762
762
|
}
|
|
763
|
-
},
|
|
763
|
+
}, Rt = class extends TransformStream {
|
|
764
764
|
constructor({ onstart: e, onprogress: t, size: n, onend: r }) {
|
|
765
765
|
let i = 0;
|
|
766
766
|
super({
|
|
767
767
|
async start() {
|
|
768
|
-
e && await
|
|
768
|
+
e && await zt(e, n);
|
|
769
769
|
},
|
|
770
770
|
async transform(e, r) {
|
|
771
|
-
i += e.length, t && await
|
|
771
|
+
i += e.length, t && await zt(t, i, n), r.enqueue(e);
|
|
772
772
|
},
|
|
773
773
|
async flush() {
|
|
774
|
-
r && await
|
|
774
|
+
r && await zt(r, i);
|
|
775
775
|
}
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
|
-
async function
|
|
779
|
+
async function zt(e, ...t) {
|
|
780
780
|
try {
|
|
781
781
|
await e(...t);
|
|
782
782
|
} catch {}
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Bt(e, t) {
|
|
785
785
|
return { run: () => async function({ options: e, readable: t, writable: n, onTaskFinished: r }, i) {
|
|
786
786
|
let a;
|
|
787
787
|
try {
|
|
788
788
|
if (!e.useCompressionStream) try {
|
|
789
|
-
await
|
|
789
|
+
await It(i);
|
|
790
790
|
} catch {
|
|
791
791
|
let t = e.codecType.startsWith("deflate") ? i.CompressionStreamZlib : i.DecompressionStreamZlib;
|
|
792
792
|
t && !t.requiresModule || (e.useCompressionStream = !0);
|
|
793
793
|
}
|
|
794
|
-
a = new
|
|
794
|
+
a = new jt(e, i), await t.pipeThrough(a).pipeTo(n, {
|
|
795
795
|
preventClose: !0,
|
|
796
796
|
preventAbort: !0
|
|
797
797
|
});
|
|
@@ -808,15 +808,15 @@ function It(e, t) {
|
|
|
808
808
|
}
|
|
809
809
|
}(e, t) };
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Vt(e, t) {
|
|
812
812
|
let { baseURI: n, chunkSize: r } = t, { wasmURI: i } = t;
|
|
813
813
|
if (!e.interface) {
|
|
814
814
|
let a;
|
|
815
815
|
typeof i == "function" && (i = i());
|
|
816
816
|
try {
|
|
817
|
-
a =
|
|
817
|
+
a = Ut(e.workerURI, n, e);
|
|
818
818
|
} catch {
|
|
819
|
-
return
|
|
819
|
+
return wt = !1, Bt(e, t);
|
|
820
820
|
}
|
|
821
821
|
Object.assign(e, {
|
|
822
822
|
worker: a,
|
|
@@ -845,8 +845,8 @@ function Lt(e, t) {
|
|
|
845
845
|
};
|
|
846
846
|
}(e.writable), u;
|
|
847
847
|
try {
|
|
848
|
-
u =
|
|
849
|
-
type:
|
|
848
|
+
u = Gt({
|
|
849
|
+
type: Ot,
|
|
850
850
|
options: o,
|
|
851
851
|
config: t,
|
|
852
852
|
readable: a,
|
|
@@ -887,33 +887,33 @@ function Lt(e, t) {
|
|
|
887
887
|
}
|
|
888
888
|
return e.interface;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Ht(e) {
|
|
891
891
|
let { worker: t } = e;
|
|
892
892
|
if (t) try {
|
|
893
893
|
t.terminate();
|
|
894
894
|
} catch {}
|
|
895
895
|
e.interface = null;
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Ut(e, t, n, r, i = !0) {
|
|
898
898
|
let a, o, s;
|
|
899
|
-
if (
|
|
899
|
+
if (Et === void 0 || Tt !== e) {
|
|
900
900
|
let c = typeof e == "function";
|
|
901
901
|
o = c ? e(i) : e;
|
|
902
902
|
let l = o.startsWith("data:"), u = o.startsWith("blob:");
|
|
903
903
|
if (l || u) {
|
|
904
|
-
r === void 0 && (r = !1), r && (s =
|
|
904
|
+
r === void 0 && (r = !1), r && (s = Nt);
|
|
905
905
|
try {
|
|
906
906
|
a = new Worker(o, s);
|
|
907
907
|
} catch (i) {
|
|
908
908
|
if (u) try {
|
|
909
909
|
URL.revokeObjectURL(o);
|
|
910
910
|
} catch {}
|
|
911
|
-
if (c && u) return
|
|
911
|
+
if (c && u) return Ut(e, t, n, r, !1);
|
|
912
912
|
if (r) throw i;
|
|
913
|
-
return
|
|
913
|
+
return Ut(e, t, n, !0, !1);
|
|
914
914
|
}
|
|
915
915
|
} else {
|
|
916
|
-
r === void 0 && (r = !0), r && (s =
|
|
916
|
+
r === void 0 && (r = !0), r && (s = Nt);
|
|
917
917
|
try {
|
|
918
918
|
o = new URL(o, t);
|
|
919
919
|
} catch {}
|
|
@@ -921,11 +921,11 @@ function zt(e, t, n, r, i = !0) {
|
|
|
921
921
|
a = new Worker(o, s);
|
|
922
922
|
} catch (a) {
|
|
923
923
|
if (r) throw a;
|
|
924
|
-
return
|
|
924
|
+
return Ut(e, t, n, !1, i);
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
|
-
|
|
928
|
-
} else a = new Worker(
|
|
927
|
+
Tt = e, Et = o, Dt = s;
|
|
928
|
+
} else a = new Worker(Et, Dt);
|
|
929
929
|
return a.addEventListener("message", (e) => async function({ data: e }, t) {
|
|
930
930
|
let { type: n, value: r, messageId: i, result: a, error: o } = e, { reader: s, writer: c, resolveResult: l, rejectResult: u, onTaskFinished: d, generation: f } = t, p = () => t.generation != f;
|
|
931
931
|
try {
|
|
@@ -940,107 +940,107 @@ function zt(e, t, n, r, i = !0) {
|
|
|
940
940
|
} else {
|
|
941
941
|
if (n == "pull") {
|
|
942
942
|
let { value: e, done: n } = await s.read();
|
|
943
|
-
p() ||
|
|
944
|
-
type:
|
|
943
|
+
p() || Gt({
|
|
944
|
+
type: kt,
|
|
945
945
|
value: e,
|
|
946
946
|
done: n,
|
|
947
947
|
messageId: i
|
|
948
948
|
}, t);
|
|
949
949
|
}
|
|
950
|
-
n == "data" && (await c.ready, await c.write(new Uint8Array(r)), p() ||
|
|
950
|
+
n == "data" && (await c.ready, await c.write(new Uint8Array(r)), p() || Gt({
|
|
951
951
|
type: "ack",
|
|
952
952
|
messageId: i
|
|
953
953
|
}, t)), n == "close" && m(null, a);
|
|
954
954
|
}
|
|
955
955
|
} catch (e) {
|
|
956
|
-
p() || (
|
|
956
|
+
p() || (Ht(t), m(e));
|
|
957
957
|
}
|
|
958
958
|
function m(e, t) {
|
|
959
959
|
p() || (e ? u(e) : l(t), c && c.releaseLock(), d());
|
|
960
960
|
}
|
|
961
|
-
}(e, n)), a.addEventListener(
|
|
961
|
+
}(e, n)), a.addEventListener(Pt, (e) => Wt(e, n)), a.addEventListener("messageerror", (e) => Wt(e, n)), a;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Wt(e, t) {
|
|
964
964
|
e.preventDefault && e.preventDefault();
|
|
965
965
|
let { rejectResult: n, writer: r, onTaskFinished: i } = t;
|
|
966
|
-
|
|
966
|
+
Ht(t), n && (n(e.error || Error(e.message || Pt)), r && r.releaseLock(), i());
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Gt(e, { worker: t, writer: n, transferStreams: r }) {
|
|
969
969
|
try {
|
|
970
970
|
let { value: n, readable: i, writable: a } = e, o = [];
|
|
971
|
-
if (n && (e.value = n.byteOffset || n.byteLength != n.buffer.byteLength ? new Uint8Array(n) : n, o.push(e.value.buffer)), r &&
|
|
971
|
+
if (n && (e.value = n.byteOffset || n.byteLength != n.buffer.byteLength ? new Uint8Array(n) : n, o.push(e.value.buffer)), r && Ft ? (i && o.push(i), a && o.push(a)) : e.readable = e.writable = null, o.length) try {
|
|
972
972
|
return t.postMessage(e, o), !0;
|
|
973
973
|
} catch {
|
|
974
|
-
|
|
974
|
+
Ft = !1, e.readable = e.writable = null, t.postMessage(e);
|
|
975
975
|
}
|
|
976
976
|
else t.postMessage(e);
|
|
977
977
|
} catch (e) {
|
|
978
978
|
throw n && n.releaseLock(), e;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
var
|
|
982
|
-
async function
|
|
981
|
+
var Kt, qt, Jt = [], Yt = [], Xt = 0;
|
|
982
|
+
async function Zt(e, t) {
|
|
983
983
|
let { options: n, config: r } = t, { transferStreams: i, useWebWorkers: a, useCompressionStream: o, compressed: s, signed: c, encrypted: l } = n, { workerURI: u, maxWorkers: d } = r;
|
|
984
984
|
return t.transferStreams = i || i === void 0, t.useWebWorkers = !!(s || c || l || t.transferStreams) && (a || a === void 0 && r.useWebWorkers), t.workerURI = t.useWebWorkers && u ? u : void 0, n.useCompressionStream = o || o === void 0 && r.useCompressionStream, (await async function() {
|
|
985
|
-
let n =
|
|
986
|
-
if (n) return
|
|
987
|
-
if (
|
|
988
|
-
let n = { indexWorker:
|
|
989
|
-
return
|
|
985
|
+
let n = Jt.find((e) => !e.busy);
|
|
986
|
+
if (n) return nn(n), new Lt(n, e, t, f);
|
|
987
|
+
if (Jt.length < d) {
|
|
988
|
+
let n = { indexWorker: Xt };
|
|
989
|
+
return Xt++, Jt.push(n), new Lt(n, e, t, f);
|
|
990
990
|
}
|
|
991
991
|
return new Promise((n) => {
|
|
992
|
-
|
|
992
|
+
Yt.push({
|
|
993
993
|
resolve: n,
|
|
994
994
|
stream: e,
|
|
995
995
|
workerOptions: t
|
|
996
|
-
}),
|
|
996
|
+
}), qt = r.workerStarvationTimeout, Qt();
|
|
997
997
|
});
|
|
998
998
|
}()).run();
|
|
999
999
|
function f(e) {
|
|
1000
|
-
if (
|
|
1001
|
-
let [{ resolve: t, stream: n, workerOptions: r }] =
|
|
1002
|
-
t(new
|
|
1003
|
-
} else e.worker ? (
|
|
1000
|
+
if ($t(), Yt.length) {
|
|
1001
|
+
let [{ resolve: t, stream: n, workerOptions: r }] = Yt.splice(0, 1);
|
|
1002
|
+
t(new Lt(e, n, r, f)), Qt();
|
|
1003
|
+
} else e.worker ? (nn(e), function(e, t) {
|
|
1004
1004
|
let { config: n } = t, { terminateWorkerTimeout: r } = n;
|
|
1005
1005
|
Number.isFinite(r) && r >= 0 && (e.terminated ? e.terminated = !1 : e.terminateTimeout = setTimeout(async () => {
|
|
1006
|
-
|
|
1006
|
+
Jt = Jt.filter((t) => t != e);
|
|
1007
1007
|
try {
|
|
1008
1008
|
await e.terminate();
|
|
1009
1009
|
} catch {}
|
|
1010
1010
|
}, r));
|
|
1011
|
-
}(e, t)) :
|
|
1011
|
+
}(e, t)) : Jt = Jt.filter((t) => t != e);
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
!
|
|
1014
|
+
function Qt() {
|
|
1015
|
+
!Kt && Yt.length && Number.isFinite(qt) && qt >= 0 && (Kt = setTimeout(en, qt));
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
|
|
1017
|
+
function $t() {
|
|
1018
|
+
Kt &&= (clearTimeout(Kt), null);
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
if (
|
|
1022
|
-
let [{ resolve: e, stream: t, workerOptions: n }] =
|
|
1023
|
-
e(new
|
|
1020
|
+
function en() {
|
|
1021
|
+
if (Kt = null, Yt.length) {
|
|
1022
|
+
let [{ resolve: e, stream: t, workerOptions: n }] = Yt.splice(0, 1);
|
|
1023
|
+
e(new Lt({}, t, Object.assign({}, n, {
|
|
1024
1024
|
useWebWorkers: !1,
|
|
1025
1025
|
workerURI: void 0
|
|
1026
|
-
}),
|
|
1026
|
+
}), tn)), Qt();
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1030
|
-
|
|
1029
|
+
function tn() {
|
|
1030
|
+
$t(), Qt();
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function nn(e) {
|
|
1033
1033
|
let { terminateTimeout: t } = e;
|
|
1034
1034
|
t && (clearTimeout(t), e.terminateTimeout = null);
|
|
1035
1035
|
}
|
|
1036
|
-
var
|
|
1036
|
+
var rn = "writable", an = class {
|
|
1037
1037
|
constructor() {
|
|
1038
1038
|
this.size = 0;
|
|
1039
1039
|
}
|
|
1040
1040
|
init() {
|
|
1041
1041
|
this.initialized = !0;
|
|
1042
1042
|
}
|
|
1043
|
-
},
|
|
1043
|
+
}, on = class extends an {
|
|
1044
1044
|
get readable() {
|
|
1045
1045
|
return this.createReadable();
|
|
1046
1046
|
}
|
|
@@ -1051,17 +1051,17 @@ var $t = "writable", en = class {
|
|
|
1051
1051
|
o.enqueue(c), a + r > t || t === void 0 && !c.length && s ? o.close() : a += r;
|
|
1052
1052
|
} });
|
|
1053
1053
|
}
|
|
1054
|
-
},
|
|
1054
|
+
}, sn = class extends an {
|
|
1055
1055
|
constructor() {
|
|
1056
1056
|
super();
|
|
1057
1057
|
let e = this, t = new WritableStream({ write(t) {
|
|
1058
1058
|
if (!e.initialized) throw Error("Writer not initialized");
|
|
1059
1059
|
return e.writeUint8Array(t);
|
|
1060
1060
|
} });
|
|
1061
|
-
Object.defineProperty(e,
|
|
1061
|
+
Object.defineProperty(e, rn, { get: () => t });
|
|
1062
1062
|
}
|
|
1063
1063
|
writeUint8Array() {}
|
|
1064
|
-
},
|
|
1064
|
+
}, cn = class extends on {
|
|
1065
1065
|
constructor(e) {
|
|
1066
1066
|
super(), Object.assign(this, {
|
|
1067
1067
|
blob: e,
|
|
@@ -1072,20 +1072,20 @@ var $t = "writable", en = class {
|
|
|
1072
1072
|
let n = this, r = e + t, i = await (e || r < n.size ? n.blob.slice(e, r) : n.blob).arrayBuffer();
|
|
1073
1073
|
return i.byteLength > t && (i = i.slice(e, r)), new Uint8Array(i);
|
|
1074
1074
|
}
|
|
1075
|
-
},
|
|
1075
|
+
}, ln = class extends an {
|
|
1076
1076
|
constructor(e) {
|
|
1077
1077
|
super();
|
|
1078
1078
|
let t = this, n = new TransformStream(), r = [];
|
|
1079
|
-
e && r.push(["Content-Type", e]), Object.defineProperty(t,
|
|
1079
|
+
e && r.push(["Content-Type", e]), Object.defineProperty(t, rn, { get: () => n.writable }), t.blob = new Response(n.readable, { headers: r }).blob(), t.blob.catch(() => {});
|
|
1080
1080
|
}
|
|
1081
1081
|
getData() {
|
|
1082
1082
|
return this.blob;
|
|
1083
1083
|
}
|
|
1084
|
-
},
|
|
1084
|
+
}, un = class extends cn {
|
|
1085
1085
|
constructor(e) {
|
|
1086
1086
|
super(new Blob([e], { type: "text/plain" }));
|
|
1087
1087
|
}
|
|
1088
|
-
},
|
|
1088
|
+
}, dn = class extends on {
|
|
1089
1089
|
constructor(e) {
|
|
1090
1090
|
super(), e = new Uint8Array(e.buffer, e.byteOffset, e.byteLength), Object.assign(this, {
|
|
1091
1091
|
array: e,
|
|
@@ -1095,7 +1095,7 @@ var $t = "writable", en = class {
|
|
|
1095
1095
|
readUint8Array(e, t) {
|
|
1096
1096
|
return this.array.slice(e, e + t);
|
|
1097
1097
|
}
|
|
1098
|
-
},
|
|
1098
|
+
}, fn = class extends sn {
|
|
1099
1099
|
constructor(e) {
|
|
1100
1100
|
super(), this.defaultBufferSize = e || 262144;
|
|
1101
1101
|
}
|
|
@@ -1118,14 +1118,14 @@ var $t = "writable", en = class {
|
|
|
1118
1118
|
getData() {
|
|
1119
1119
|
return this.offset === this.array.length ? this.array : this.array.slice(0, this.offset);
|
|
1120
1120
|
}
|
|
1121
|
-
},
|
|
1121
|
+
}, pn = class extends on {
|
|
1122
1122
|
constructor(e) {
|
|
1123
1123
|
super(), this.readers = e;
|
|
1124
1124
|
}
|
|
1125
1125
|
async init() {
|
|
1126
1126
|
let e = this, { readers: t } = e;
|
|
1127
1127
|
e.lastDiskNumber = 0, e.lastDiskOffset = 0, await Promise.all(t.map(async (n, r) => {
|
|
1128
|
-
await
|
|
1128
|
+
await _n(n), r != t.length - 1 && (e.lastDiskOffset += n.size), e.size += n.size;
|
|
1129
1129
|
})), super.init();
|
|
1130
1130
|
}
|
|
1131
1131
|
async readUint8Array(e, t, n = 0) {
|
|
@@ -1145,10 +1145,10 @@ var $t = "writable", en = class {
|
|
|
1145
1145
|
let u = await r.readUint8Array(e + o, t - o, n);
|
|
1146
1146
|
a.set(u, o), l.length + u.length < t && (a = a.subarray(0, l.length + u.length));
|
|
1147
1147
|
}
|
|
1148
|
-
} else a =
|
|
1148
|
+
} else a = I;
|
|
1149
1149
|
return r.lastDiskNumber = Math.max(o, r.lastDiskNumber), a;
|
|
1150
1150
|
}
|
|
1151
|
-
},
|
|
1151
|
+
}, mn = class extends an {
|
|
1152
1152
|
constructor(e, t = 4294967295) {
|
|
1153
1153
|
super();
|
|
1154
1154
|
let n = this, r, i, a;
|
|
@@ -1166,7 +1166,7 @@ var $t = "writable", en = class {
|
|
|
1166
1166
|
else {
|
|
1167
1167
|
let { value: o, done: s } = await e.next();
|
|
1168
1168
|
if (s && !o) throw Error("Writer iterator completed too soon");
|
|
1169
|
-
r = o, r.size = 0, r.maxSize && (n.maxSize = r.maxSize), n.availableSize = n.maxSize, await
|
|
1169
|
+
r = o, r.size = 0, r.maxSize && (n.maxSize = r.maxSize), n.availableSize = n.maxSize, await _n(r), i = o.writable, a = i.getWriter(), await this.write(t);
|
|
1170
1170
|
}
|
|
1171
1171
|
},
|
|
1172
1172
|
async close() {
|
|
@@ -1183,58 +1183,54 @@ var $t = "writable", en = class {
|
|
|
1183
1183
|
async function c() {
|
|
1184
1184
|
await a.close();
|
|
1185
1185
|
}
|
|
1186
|
-
Object.defineProperty(n,
|
|
1186
|
+
Object.defineProperty(n, rn, { get: () => o });
|
|
1187
1187
|
}
|
|
1188
|
-
},
|
|
1188
|
+
}, hn = class {
|
|
1189
1189
|
constructor(e) {
|
|
1190
|
-
return Array.isArray(e) && (e = new
|
|
1190
|
+
return Array.isArray(e) && (e = new pn(e)), e instanceof ReadableStream && (e = { readable: e }), e;
|
|
1191
1191
|
}
|
|
1192
|
-
},
|
|
1192
|
+
}, gn = class {
|
|
1193
1193
|
constructor(e) {
|
|
1194
|
-
return e.writable === void 0 && typeof e.next == "function" && (e = new
|
|
1194
|
+
return e.writable === void 0 && typeof e.next == "function" && (e = new mn(e)), e instanceof WritableStream && (e = { writable: e }), e.size === void 0 && (e.size = 0), e instanceof mn || Object.assign(e, {
|
|
1195
1195
|
diskNumber: 0,
|
|
1196
1196
|
diskOffset: 0,
|
|
1197
|
-
availableSize:
|
|
1198
|
-
maxSize:
|
|
1197
|
+
availableSize: F,
|
|
1198
|
+
maxSize: F
|
|
1199
1199
|
}), e;
|
|
1200
1200
|
}
|
|
1201
1201
|
};
|
|
1202
|
-
async function
|
|
1202
|
+
async function _n(e, t) {
|
|
1203
1203
|
if (!e.init || e.initialized) return Promise.resolve();
|
|
1204
1204
|
await e.init(t);
|
|
1205
1205
|
}
|
|
1206
1206
|
function z(e, t, n, r) {
|
|
1207
1207
|
return e.readUint8Array(t, n, r);
|
|
1208
1208
|
}
|
|
1209
|
-
var
|
|
1210
|
-
function
|
|
1209
|
+
var vn = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0".split(""), yn = vn.length == 256;
|
|
1210
|
+
function bn(e, t) {
|
|
1211
1211
|
return t && t.trim().toLowerCase() == "cp437" ? function(e) {
|
|
1212
|
-
if (
|
|
1212
|
+
if (yn) {
|
|
1213
1213
|
let t = "";
|
|
1214
|
-
for (let n = 0; n < e.length; n++) t +=
|
|
1214
|
+
for (let n = 0; n < e.length; n++) t += vn[e[n]];
|
|
1215
1215
|
return t;
|
|
1216
1216
|
}
|
|
1217
1217
|
return new TextDecoder().decode(e);
|
|
1218
1218
|
}(e) : new TextDecoder(t, { ignoreBOM: !0 }).decode(e);
|
|
1219
1219
|
}
|
|
1220
|
-
var
|
|
1221
|
-
_n,
|
|
1222
|
-
vn,
|
|
1220
|
+
var xn = "filename", Sn = "rawFilename", Cn = "comment", wn = "rawComment", Tn = "uncompressedSize", En = "compressedSize", Dn = "offset", On = "diskNumberStart", kn = "lastModDate", An = "rawLastModDate", jn = "lastAccessDate", Mn = "rawLastAccessDate", Nn = "creationDate", Pn = "rawCreationDate", Fn = "internalFileAttributes", In = "externalFileAttributes", Ln = "msdosAttributesRaw", Rn = "msdosAttributes", zn = "msDosCompatible", Bn = "zip64", Vn = "encrypted", Hn = "version", Un = "versionMadeBy", Wn = "zipCrypto", Gn = "directory", Kn = "executable", qn = "compressionMethod", Jn = "signature", Yn = "extraField", Xn = "unixMode", Zn = "setuid", Qn = "setgid", $n = "sticky", er = [
|
|
1223
1221
|
xn,
|
|
1224
1222
|
Sn,
|
|
1225
1223
|
Tn,
|
|
1226
1224
|
En,
|
|
1227
|
-
yn,
|
|
1228
|
-
bn,
|
|
1229
|
-
Dn,
|
|
1230
1225
|
kn,
|
|
1231
1226
|
An,
|
|
1232
1227
|
Cn,
|
|
1233
1228
|
wn,
|
|
1234
1229
|
jn,
|
|
1235
|
-
Mn,
|
|
1236
1230
|
Nn,
|
|
1237
1231
|
Pn,
|
|
1232
|
+
Dn,
|
|
1233
|
+
On,
|
|
1238
1234
|
Fn,
|
|
1239
1235
|
In,
|
|
1240
1236
|
Ln,
|
|
@@ -1246,14 +1242,18 @@ var _n = "filename", vn = "rawFilename", yn = "comment", bn = "rawComment", xn =
|
|
|
1246
1242
|
Un,
|
|
1247
1243
|
Wn,
|
|
1248
1244
|
Gn,
|
|
1249
|
-
"extraFieldUnix",
|
|
1250
|
-
"extraFieldInfoZip",
|
|
1251
|
-
"uid",
|
|
1252
|
-
"gid",
|
|
1253
1245
|
Kn,
|
|
1254
1246
|
qn,
|
|
1255
1247
|
Jn,
|
|
1256
1248
|
Yn,
|
|
1249
|
+
"extraFieldUnix",
|
|
1250
|
+
"extraFieldInfoZip",
|
|
1251
|
+
"uid",
|
|
1252
|
+
"gid",
|
|
1253
|
+
Xn,
|
|
1254
|
+
Zn,
|
|
1255
|
+
Qn,
|
|
1256
|
+
$n,
|
|
1257
1257
|
"bitFlag",
|
|
1258
1258
|
"filenameUTF8",
|
|
1259
1259
|
"commentUTF8",
|
|
@@ -1264,54 +1264,54 @@ var _n = "filename", vn = "rawFilename", yn = "comment", bn = "rawComment", xn =
|
|
|
1264
1264
|
"extraFieldAES",
|
|
1265
1265
|
"extraFieldNTFS",
|
|
1266
1266
|
"extraFieldExtendedTimestamp"
|
|
1267
|
-
],
|
|
1267
|
+
], tr = class {
|
|
1268
1268
|
constructor(e) {
|
|
1269
|
-
|
|
1270
|
-
}
|
|
1271
|
-
},
|
|
1272
|
-
[
|
|
1273
|
-
[
|
|
1274
|
-
[
|
|
1275
|
-
[
|
|
1276
|
-
],
|
|
1277
|
-
[
|
|
1278
|
-
getValue:
|
|
1269
|
+
er.forEach((t) => this[t] = e[t]);
|
|
1270
|
+
}
|
|
1271
|
+
}, nr = "password", rr = "rawPassword", ir = "passThrough", ar = "signal", or = "checkAmbiguity", sr = "useWebWorkers", cr = "useCompressionStream", lr = "transferStreams", ur = "encryptionStrength", dr = "extendedTimestamp", fr = "keepOrder", pr = "level", mr = "bufferedWrite", hr = "createTempStream", gr = "dataDescriptorSignature", _r = "useUnicodeFileNames", vr = "dataDescriptor", yr = "encodeText", br = "offset", xr = "usdz", Sr = "unixExtraFieldType", Cr = "strictness", wr = "strict", Tr = "File format is not recognized", Er = "Zip64 extra field not found", Dr = "Compression method not supported", Or = "Split zip file", kr = "Overlapping entry found", Ar = "utf-8", jr = "cp437", Mr = 2057, Nr = [
|
|
1272
|
+
[Tn, y],
|
|
1273
|
+
[En, y],
|
|
1274
|
+
[Dn, y],
|
|
1275
|
+
[On, b]
|
|
1276
|
+
], Pr = {
|
|
1277
|
+
[b]: {
|
|
1278
|
+
getValue: U,
|
|
1279
1279
|
bytes: 4
|
|
1280
1280
|
},
|
|
1281
|
-
[
|
|
1282
|
-
getValue:
|
|
1281
|
+
[y]: {
|
|
1282
|
+
getValue: ei,
|
|
1283
1283
|
bytes: 8
|
|
1284
1284
|
}
|
|
1285
|
-
},
|
|
1285
|
+
}, Fr = class {
|
|
1286
1286
|
constructor(e, t = {}) {
|
|
1287
1287
|
Object.assign(this, {
|
|
1288
|
-
reader: new
|
|
1288
|
+
reader: new hn(e),
|
|
1289
1289
|
options: t,
|
|
1290
|
-
config:
|
|
1290
|
+
config: L(),
|
|
1291
1291
|
readRanges: /* @__PURE__ */ new Map()
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
1294
|
async *getEntriesGenerator(e = {}) {
|
|
1295
1295
|
let t = this, { reader: n } = t, { config: r } = t;
|
|
1296
|
-
if (await
|
|
1297
|
-
let i =
|
|
1298
|
-
return e === void 0 ? t == "strict" ? 0 : t == "tolerant" ? Infinity :
|
|
1299
|
-
}(
|
|
1300
|
-
let { size: r } = e, i = Math.min(r, 65557), a = { count:
|
|
1301
|
-
for await (let [n, l, u, d, f] of
|
|
1302
|
-
let i = await
|
|
1303
|
-
if (i ==
|
|
1304
|
-
if (o ||=
|
|
1305
|
-
} else i !=
|
|
1296
|
+
if (await _n(n), n.size !== void 0 && n.readUint8Array || (n = new cn(await new Response(n.readable).blob()), await _n(n)), n.size < 22) throw Error(Tr);
|
|
1297
|
+
let i = Hr(V(t, e, Cr), V(t, e, or)), a = i == wr, o = i != "tolerant", s = function(e, t) {
|
|
1298
|
+
return e === void 0 ? t == "strict" ? 0 : t == "tolerant" ? Infinity : b : e;
|
|
1299
|
+
}(V(t, e, "maxAppendedDataSize"), i), { endOfDirectoryInfo: c, endOfDirectoryReachingEndCount: l } = await async function(e, t, n) {
|
|
1300
|
+
let { size: r } = e, i = Math.min(r, 65557), a = { count: Ur }, o, s, c = 0;
|
|
1301
|
+
for await (let [n, l, u, d, f] of qr(e, i)) if (f + 22 + H(n, d + 20) == r) {
|
|
1302
|
+
let i = await Yr(e, n, l, d, f, r, a);
|
|
1303
|
+
if (i == Kr) {
|
|
1304
|
+
if (o ||= Jr(u, d, f), c++, !t || c > 1) break;
|
|
1305
|
+
} else i != Gr || s || (s = Jr(u, d, f));
|
|
1306
1306
|
}
|
|
1307
1307
|
return o ||= s, o ||= await async function(e, t, n) {
|
|
1308
1308
|
let { size: r } = e, i = Math.min(r, t == Infinity ? r : 65557 + t), a, o;
|
|
1309
|
-
for await (let [t, s, c, l, u] of
|
|
1310
|
-
let i =
|
|
1309
|
+
for await (let [t, s, c, l, u] of qr(e, i)) {
|
|
1310
|
+
let i = Jr(c, l, u);
|
|
1311
1311
|
a ||= i;
|
|
1312
|
-
let d = await
|
|
1313
|
-
if (d ==
|
|
1314
|
-
d !=
|
|
1312
|
+
let d = await Yr(e, t, s, l, u, r, n);
|
|
1313
|
+
if (d == Kr) return i;
|
|
1314
|
+
d != Gr || o || (o = i);
|
|
1315
1315
|
}
|
|
1316
1316
|
return o || a;
|
|
1317
1317
|
}(e, n, a), {
|
|
@@ -1319,80 +1319,80 @@ var _n = "filename", vn = "rawFilename", yn = "comment", bn = "rawComment", xn =
|
|
|
1319
1319
|
endOfDirectoryReachingEndCount: c
|
|
1320
1320
|
};
|
|
1321
1321
|
}(n, o, s);
|
|
1322
|
-
if (!c) throw
|
|
1323
|
-
o && l > 1 &&
|
|
1324
|
-
let u =
|
|
1325
|
-
n.size - h > s &&
|
|
1326
|
-
let
|
|
1327
|
-
if (f == 4294967295 || d == 4294967295 ||
|
|
1328
|
-
let e = c.offset >= 20 ? await z(n, c.offset - 20, 20) :
|
|
1329
|
-
if (e.length == 20 &&
|
|
1330
|
-
f =
|
|
1331
|
-
let e = await z(n, f, 56, -1), r =
|
|
1332
|
-
if ((e.length < 56 ||
|
|
1322
|
+
if (!c) throw U(W(await z(n, 0, 4))) == 134695760 ? Error(Or) : /* @__PURE__ */ Error("End of central directory not found");
|
|
1323
|
+
o && l > 1 && B("multiple end of central directory records");
|
|
1324
|
+
let u = W(c), d = U(u, 12), f = U(u, 16), p = c.offset, m = H(u, 20), h = p + 22 + m;
|
|
1325
|
+
n.size - h > s && B("appended data");
|
|
1326
|
+
let g = H(u, 4), _ = n.lastDiskNumber || 0, v, y, x = H(u, 6), S = H(u, 10), C = 0;
|
|
1327
|
+
if (f == 4294967295 || d == 4294967295 || S == 65535 || x == 65535) {
|
|
1328
|
+
let e = c.offset >= 20 ? await z(n, c.offset - 20, 20) : I, t = W(e);
|
|
1329
|
+
if (e.length == 20 && U(t, 0) == 117853008) {
|
|
1330
|
+
f = ei(t, 8);
|
|
1331
|
+
let e = await z(n, f, 56, -1), r = W(e), i = c.offset - 20 - 56 - (n.lastDiskOffset || 0);
|
|
1332
|
+
if ((e.length < 56 || U(r, 0) != 101075792) && f != i && i >= 0) {
|
|
1333
1333
|
let t = f;
|
|
1334
|
-
f = i, f > t && (
|
|
1334
|
+
f = i, f > t && (C = f - t), e = await z(n, f, 56, -1), r = W(e);
|
|
1335
1335
|
}
|
|
1336
|
-
if (e.length < 56 ||
|
|
1337
|
-
|
|
1336
|
+
if (e.length < 56 || U(r, 0) != 101075792) throw Error("End of Zip64 central directory locator not found");
|
|
1337
|
+
y = !0, g == 65535 ? g = U(r, 16) : a && g != U(r, 16) && B("mismatched zip64 end of central directory record"), x == 65535 ? x = U(r, 20) : a && x != U(r, 20) && B("mismatched zip64 end of central directory record"), S == 65535 ? S = ei(r, 32) : a && S != ei(r, 32) && B("mismatched zip64 end of central directory record"), d == 4294967295 ? d = ei(r, 40) : a && d != ei(r, 40) && B("mismatched zip64 end of central directory record"), f = ei(r, 48) + C;
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
|
-
let T = d, E = c.offset - (
|
|
1341
|
-
if (f >= n.size && (
|
|
1342
|
-
if (f < 0) throw Error(
|
|
1343
|
-
let D = 0, O = await z(n, f, d,
|
|
1340
|
+
let T = d, E = c.offset - (y ? 76 : 0);
|
|
1341
|
+
if (f >= n.size && (C = n.size - f - d - 22, f = n.size - d - 22), _ != g) throw Error(Or);
|
|
1342
|
+
if (f < 0) throw Error(Tr);
|
|
1343
|
+
let D = 0, O = await z(n, f, d, x), k = W(O);
|
|
1344
1344
|
if (d) {
|
|
1345
|
-
if (O.length < 4) throw Error(
|
|
1345
|
+
if (O.length < 4) throw Error(Tr);
|
|
1346
1346
|
let e = E - d - (n.lastDiskOffset || 0);
|
|
1347
|
-
if (f != e &&
|
|
1348
|
-
let t =
|
|
1349
|
-
if (!t && e >= 0 && e + 4 <= n.size && (t =
|
|
1347
|
+
if (f != e && x == g) {
|
|
1348
|
+
let t = U(k, D) != w;
|
|
1349
|
+
if (!t && e >= 0 && e + 4 <= n.size && (t = U(W(await z(n, e, 4, x)), 0) == w), t) {
|
|
1350
1350
|
let t = f;
|
|
1351
|
-
f = e, f > t && (
|
|
1351
|
+
f = e, f > t && (C += f - t), O = await z(n, f, d, x), k = W(O);
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
let
|
|
1356
|
-
if (d !=
|
|
1357
|
-
|
|
1358
|
-
let
|
|
1359
|
-
for (let i = 0; i <
|
|
1360
|
-
let o = new
|
|
1361
|
-
if (D + 46 > O.length ||
|
|
1362
|
-
|
|
1363
|
-
let s = !!o.bitFlag.languageEncodingFlag, c = D + 46, l = c + o.filenameLength, u = l + o.extraFieldLength, d =
|
|
1355
|
+
let ee = E - f - (n.lastDiskOffset || 0);
|
|
1356
|
+
if (d != ee && ee >= 0 && x == g && (d = ee, O = await z(n, f, d, x), k = W(O)), f < 0 || f >= n.size) throw Error(Tr);
|
|
1357
|
+
v = f;
|
|
1358
|
+
let te = V(t, e, "filenameEncoding"), A = V(t, e, "commentEncoding"), P = a ? /* @__PURE__ */ new Set() : void 0, ne;
|
|
1359
|
+
for (let i = 0; i < S; i++) {
|
|
1360
|
+
let o = new Ir(n, r, t.options);
|
|
1361
|
+
if (D + 46 > O.length || U(k, D) != 33639248) throw Error("Central directory header not found");
|
|
1362
|
+
Lr(o, k, D + 6);
|
|
1363
|
+
let s = !!o.bitFlag.languageEncodingFlag, c = D + 46, l = c + o.filenameLength, u = l + o.extraFieldLength, d = H(k, D + 4), f = !(d >> 8), p = d >> 8 == 3, m = O.subarray(c, l), h = H(k, D + 32), g = u + h, _ = O.subarray(u, g), y = s, x = s, w = U(k, D + 38), T = 255 & w, E = {
|
|
1364
1364
|
readOnly: !!(1 & T),
|
|
1365
1365
|
hidden: !!(2 & T),
|
|
1366
1366
|
system: !!(4 & T),
|
|
1367
1367
|
directory: !!(16 & T),
|
|
1368
1368
|
archive: !!(32 & T)
|
|
1369
|
-
},
|
|
1370
|
-
ie === void 0 && (ie =
|
|
1371
|
-
let ae =
|
|
1372
|
-
ae === void 0 && (ae =
|
|
1369
|
+
}, ee = U(k, D + 42), F = V(t, e, "decodeText") || bn, re = y ? Ar : te || jr, I = x ? Ar : A || jr, ie = F(m, re);
|
|
1370
|
+
ie === void 0 && (ie = bn(m, re));
|
|
1371
|
+
let ae = F(_, I);
|
|
1372
|
+
ae === void 0 && (ae = bn(_, I)), Object.assign(o, {
|
|
1373
1373
|
index: i,
|
|
1374
1374
|
versionMadeBy: d,
|
|
1375
1375
|
msDosCompatible: f,
|
|
1376
1376
|
compressedSize: 0,
|
|
1377
1377
|
uncompressedSize: 0,
|
|
1378
1378
|
commentLength: h,
|
|
1379
|
-
offset:
|
|
1380
|
-
diskNumberStart:
|
|
1381
|
-
internalFileAttributes:
|
|
1382
|
-
externalFileAttributes:
|
|
1379
|
+
offset: ee,
|
|
1380
|
+
diskNumberStart: H(k, D + 34),
|
|
1381
|
+
internalFileAttributes: H(k, D + 36),
|
|
1382
|
+
externalFileAttributes: w,
|
|
1383
1383
|
msdosAttributesRaw: T,
|
|
1384
1384
|
msdosAttributes: E,
|
|
1385
1385
|
rawFilename: m,
|
|
1386
|
-
filenameUTF8:
|
|
1386
|
+
filenameUTF8: y,
|
|
1387
1387
|
commentUTF8: x,
|
|
1388
1388
|
rawExtraField: O.subarray(l, u),
|
|
1389
|
-
rawComment:
|
|
1389
|
+
rawComment: _,
|
|
1390
1390
|
filename: ie,
|
|
1391
1391
|
comment: ae
|
|
1392
|
-
}),
|
|
1393
|
-
let oe = o.externalFileAttributes >> 16 &
|
|
1392
|
+
}), Rr(o, o, k, D + 6), o.offset += C, v = Math.min(o.offset, v), a && (P.has(o.filename) && (ne = !0), P.add(o.filename));
|
|
1393
|
+
let oe = o.externalFileAttributes >> 16 & b;
|
|
1394
1394
|
o.unixMode === void 0 && 16877 & oe && (o.unixMode = oe);
|
|
1395
|
-
let se = !!(o.unixMode &
|
|
1395
|
+
let se = !!(o.unixMode & M), L = !!(o.unixMode & N), ce = !!(512 & o.unixMode), le = o.unixMode === void 0 ? p && !!(73 & oe) : !!(73 & o.unixMode), ue = o.unixMode !== void 0 && (61440 & o.unixMode) == 16384, de = (61440 & oe) == j;
|
|
1396
1396
|
Object.assign(o, {
|
|
1397
1397
|
setuid: se,
|
|
1398
1398
|
setgid: L,
|
|
@@ -1404,20 +1404,20 @@ var _n = "filename", vn = "rawFilename", yn = "comment", bn = "rawComment", xn =
|
|
|
1404
1404
|
directory: ue || de || f && E.directory || o.filename.endsWith("/") && !o.uncompressedSize,
|
|
1405
1405
|
zipCrypto: o.encrypted && !o.extraFieldAES
|
|
1406
1406
|
});
|
|
1407
|
-
let fe = new
|
|
1407
|
+
let fe = new tr(o);
|
|
1408
1408
|
fe.getData = (e, n) => o.getData(e, fe, t.readRanges, n), fe.arrayBuffer = async (e) => {
|
|
1409
1409
|
let n = new TransformStream(), [r] = await Promise.all([new Response(n.readable).arrayBuffer(), o.getData(n, fe, t.readRanges, e)]);
|
|
1410
1410
|
return r;
|
|
1411
|
-
}, D =
|
|
1411
|
+
}, D = g;
|
|
1412
1412
|
let { onprogress: pe } = e;
|
|
1413
1413
|
if (pe) try {
|
|
1414
|
-
await pe(i + 1,
|
|
1414
|
+
await pe(i + 1, S, new tr(o));
|
|
1415
1415
|
} catch {}
|
|
1416
1416
|
yield fe;
|
|
1417
1417
|
}
|
|
1418
|
-
a && D != T &&
|
|
1419
|
-
let
|
|
1420
|
-
return
|
|
1418
|
+
a && D != T && B("trailing central directory data"), ne && B("duplicate filename"), a && (C || S && v > 0) && B("prepended data");
|
|
1419
|
+
let F = V(t, e, "extractPrependedData"), re = V(t, e, "extractAppendedData");
|
|
1420
|
+
return F && (t.prependedData = v > 0 ? await z(n, 0, v) : I), t.comment = m ? await z(n, p + 22, m) : I, re && (t.appendedData = h < n.size ? await z(n, h, n.size - h) : I), !0;
|
|
1421
1421
|
}
|
|
1422
1422
|
async getEntries(e = {}) {
|
|
1423
1423
|
let t = [];
|
|
@@ -1425,7 +1425,7 @@ var _n = "filename", vn = "rawFilename", yn = "comment", bn = "rawComment", xn =
|
|
|
1425
1425
|
return t;
|
|
1426
1426
|
}
|
|
1427
1427
|
async close() {}
|
|
1428
|
-
},
|
|
1428
|
+
}, Ir = class {
|
|
1429
1429
|
constructor(e, t, n) {
|
|
1430
1430
|
Object.assign(this, {
|
|
1431
1431
|
reader: e,
|
|
@@ -1434,72 +1434,72 @@ var _n = "filename", vn = "rawFilename", yn = "comment", bn = "rawComment", xn =
|
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
1436
|
async getData(e, t, n, r = {}) {
|
|
1437
|
-
let i = this, { reader: a, index: o, offset: s, diskNumberStart: c, extraFieldAES: l, extraFieldZip64: u, compressionMethod: d, config: f, bitFlag: p, signature: m, rawLastModDate: h, uncompressedSize: g, compressedSize: _ } = i, { dataDescriptor: v } = p, y = t.localDirectory = {}, b = await z(a, s, 30, c), x =
|
|
1438
|
-
if (S = S && S.length && S, C = C && C.length && C, l && l.originalCompressionMethod != 99 || d != 0 && d != 8 && d != 9 && !w) throw Error(
|
|
1439
|
-
if (b.length < 30 ||
|
|
1440
|
-
|
|
1441
|
-
let { extraFieldLength: T, filenameLength: E } = y, D =
|
|
1437
|
+
let i = this, { reader: a, index: o, offset: s, diskNumberStart: c, extraFieldAES: l, extraFieldZip64: u, compressionMethod: d, config: f, bitFlag: p, signature: m, rawLastModDate: h, uncompressedSize: g, compressedSize: _ } = i, { dataDescriptor: v } = p, y = t.localDirectory = {}, b = await z(a, s, 30, c), x = W(b), S = V(i, r, nr), C = V(i, r, rr), w = V(i, r, ir);
|
|
1438
|
+
if (S = S && S.length && S, C = C && C.length && C, l && l.originalCompressionMethod != 99 || d != 0 && d != 8 && d != 9 && !w) throw Error(Dr);
|
|
1439
|
+
if (b.length < 30 || U(x, 0) != 67324752) throw Error("Local file header not found");
|
|
1440
|
+
Lr(y, x, 4);
|
|
1441
|
+
let { extraFieldLength: T, filenameLength: E } = y, D = Hr(V(i, r, Cr), V(i, r, or)) == wr, O = I;
|
|
1442
1442
|
if (D && (E || T)) {
|
|
1443
1443
|
let e = await z(a, s + 30, E + T, c);
|
|
1444
1444
|
O = e.subarray(0, E), y.rawExtraField = e.subarray(E);
|
|
1445
|
-
} else y.rawExtraField = T ? await z(a, s + 30 + E, T, c) :
|
|
1446
|
-
|
|
1445
|
+
} else y.rawExtraField = T ? await z(a, s + 30 + E, T, c) : I;
|
|
1446
|
+
Rr(i, y, x, 4, !0), D && function(e, t, n) {
|
|
1447
1447
|
let { rawFilename: r } = e;
|
|
1448
|
-
(n.length != r.length || n.some((e, t) => e != r[t])) &&
|
|
1448
|
+
(n.length != r.length || n.some((e, t) => e != r[t])) && B("mismatched local file header (filename)"), (t.rawBitFlag & Mr) != (e.rawBitFlag & Mr) && B("mismatched local file header (general purpose bit flag)"), t.compressionMethod != e.compressionMethod && B("mismatched local file header (compression method)"), t.bitFlag.dataDescriptor || !(t.signature || t.compressedSize || t.uncompressedSize) || t.signature == e.signature && t.compressedSize == e.compressedSize && t.uncompressedSize == e.uncompressedSize || B("mismatched local file header (signature or sizes)");
|
|
1449
1449
|
}(i, y, O);
|
|
1450
1450
|
let { lastAccessDate: k, creationDate: ee } = y;
|
|
1451
1451
|
k && (t.lastAccessDate = k), ee && (t.creationDate = ee);
|
|
1452
|
-
let
|
|
1453
|
-
if (w || (t.zipCrypto =
|
|
1454
|
-
if (!
|
|
1452
|
+
let te = i.encrypted && y.encrypted && !w, A = te && !l;
|
|
1453
|
+
if (w || (t.zipCrypto = A), te) {
|
|
1454
|
+
if (!A && l.strength === void 0) throw Error("Encryption method not supported");
|
|
1455
1455
|
if (!S && !C) throw Error("File contains encrypted entry");
|
|
1456
1456
|
}
|
|
1457
|
-
let
|
|
1458
|
-
offset:
|
|
1457
|
+
let j = s + 30 + E + T, M = _, N = a.createReadable({
|
|
1458
|
+
offset: j,
|
|
1459
1459
|
size: M,
|
|
1460
1460
|
diskNumberStart: c,
|
|
1461
|
-
chunkSize:
|
|
1462
|
-
}),
|
|
1463
|
-
re && (
|
|
1464
|
-
let { onstart: ie, onprogress:
|
|
1465
|
-
|
|
1461
|
+
chunkSize: ce(f)
|
|
1462
|
+
}), P = V(i, r, ar), ne = V(i, r, "checkPasswordOnly"), F = V(i, r, "checkOverlappingEntry"), re = V(i, r, "checkOverlappingEntryOnly");
|
|
1463
|
+
re && (F = !0);
|
|
1464
|
+
let { onstart: ie, onprogress: ae, onend: oe } = r, se = d == 9, L = V(i, r, cr);
|
|
1465
|
+
se && (L = !1);
|
|
1466
1466
|
let le = {
|
|
1467
1467
|
options: {
|
|
1468
1468
|
codecType: "inflate",
|
|
1469
1469
|
password: S,
|
|
1470
1470
|
rawPassword: C,
|
|
1471
|
-
zipCrypto:
|
|
1471
|
+
zipCrypto: A,
|
|
1472
1472
|
encryptionStrength: l && l.strength,
|
|
1473
|
-
signed:
|
|
1474
|
-
passwordVerification:
|
|
1473
|
+
signed: V(i, r, "checkSignature") && !w,
|
|
1474
|
+
passwordVerification: A && (v ? h >>> 8 & 255 : m >>> 24 & 255),
|
|
1475
1475
|
outputSize: w ? _ : g,
|
|
1476
1476
|
signature: m,
|
|
1477
1477
|
compressed: d != 0 && !w,
|
|
1478
|
-
encrypted:
|
|
1479
|
-
useWebWorkers:
|
|
1480
|
-
useCompressionStream:
|
|
1481
|
-
transferStreams:
|
|
1482
|
-
deflate64:
|
|
1478
|
+
encrypted: te,
|
|
1479
|
+
useWebWorkers: V(i, r, sr),
|
|
1480
|
+
useCompressionStream: L,
|
|
1481
|
+
transferStreams: V(i, r, lr),
|
|
1482
|
+
deflate64: se,
|
|
1483
1483
|
checkPasswordOnly: ne
|
|
1484
1484
|
},
|
|
1485
1485
|
config: f,
|
|
1486
1486
|
streamOptions: {
|
|
1487
|
-
signal:
|
|
1487
|
+
signal: P,
|
|
1488
1488
|
size: M,
|
|
1489
1489
|
onstart: ie,
|
|
1490
|
-
onprogress:
|
|
1491
|
-
onend:
|
|
1490
|
+
onprogress: ae,
|
|
1491
|
+
onend: oe
|
|
1492
1492
|
}
|
|
1493
1493
|
}, ue;
|
|
1494
|
-
|
|
1494
|
+
F && await async function({ reader: e, fileEntry: t, index: n, offset: r, diskNumberStart: i, signature: a, compressedSize: o, uncompressedSize: s, dataOffset: c, dataDescriptor: l, extraFieldZip64: u, readRanges: d }) {
|
|
1495
1495
|
let f = 0;
|
|
1496
1496
|
if (i && e.readers) for (let t = 0; t < Math.min(i, e.readers.length); t++) f += e.readers[t].size;
|
|
1497
1497
|
let p = 0;
|
|
1498
1498
|
if (l && (p = u ? 20 : 12), p) {
|
|
1499
1499
|
let n = await z(e, c + o, p + 4, i);
|
|
1500
|
-
if (n.length == p + 4 &&
|
|
1501
|
-
let e =
|
|
1502
|
-
u ? (r =
|
|
1500
|
+
if (n.length == p + 4 && U(W(n), 0) == 134695760) {
|
|
1501
|
+
let e = U(W(n), 4), r, i;
|
|
1502
|
+
u ? (r = ei(W(n), 8), i = ei(W(n), 16)) : (r = U(W(n), 8), i = U(W(n), 12)), (t.encrypted && !t.zipCrypto || e == a) && r == o && i == s && (p += 4);
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
1505
|
let m = {
|
|
@@ -1508,7 +1508,7 @@ var _n = "filename", vn = "rawFilename", yn = "comment", bn = "rawComment", xn =
|
|
|
1508
1508
|
fileEntry: t
|
|
1509
1509
|
};
|
|
1510
1510
|
for (let [e, t] of d) if (e != n && m.start < t.end && t.start < m.end) {
|
|
1511
|
-
let e = Error(
|
|
1511
|
+
let e = Error(kr);
|
|
1512
1512
|
throw e.overlappingEntry = t.fileEntry, e;
|
|
1513
1513
|
}
|
|
1514
1514
|
d.set(n, m);
|
|
@@ -1521,127 +1521,127 @@ var _n = "filename", vn = "rawFilename", yn = "comment", bn = "rawComment", xn =
|
|
|
1521
1521
|
signature: m,
|
|
1522
1522
|
compressedSize: _,
|
|
1523
1523
|
uncompressedSize: g,
|
|
1524
|
-
dataOffset:
|
|
1524
|
+
dataOffset: j,
|
|
1525
1525
|
dataDescriptor: v || y.bitFlag.dataDescriptor,
|
|
1526
1526
|
extraFieldZip64: u || y.extraFieldZip64,
|
|
1527
1527
|
readRanges: n
|
|
1528
1528
|
});
|
|
1529
1529
|
try {
|
|
1530
1530
|
if (!re) {
|
|
1531
|
-
ne && (e = new WritableStream()), e = new
|
|
1532
|
-
let { outputSize: t } = await
|
|
1531
|
+
ne && (e = new WritableStream()), e = new gn(e), await _n(e, w ? _ : g), {writable: ue} = e;
|
|
1532
|
+
let { outputSize: t } = await Zt({
|
|
1533
1533
|
readable: N,
|
|
1534
1534
|
writable: ue
|
|
1535
1535
|
}, le);
|
|
1536
|
-
if (e.size += t, t != (w ? _ : g)) throw Error(
|
|
1536
|
+
if (e.size += t, t != (w ? _ : g)) throw Error(ht);
|
|
1537
1537
|
}
|
|
1538
1538
|
} catch (t) {
|
|
1539
1539
|
if (t.outputSize !== void 0 && (e.size += t.outputSize), !ne || t.message != "zipjs-abort-check-password") throw t;
|
|
1540
1540
|
} finally {
|
|
1541
|
-
|
|
1541
|
+
V(i, r, "preventClose") || !ue || ue.locked || await ue.getWriter().close();
|
|
1542
1542
|
}
|
|
1543
1543
|
return ne || re ? void 0 : e.getData ? e.getData() : ue;
|
|
1544
1544
|
}
|
|
1545
1545
|
};
|
|
1546
|
-
function
|
|
1547
|
-
let r = e.rawBitFlag =
|
|
1546
|
+
function Lr(e, t, n) {
|
|
1547
|
+
let r = e.rawBitFlag = H(t, n + 2), i = !(1 & ~r), a = U(t, n + 6);
|
|
1548
1548
|
Object.assign(e, {
|
|
1549
1549
|
encrypted: i,
|
|
1550
|
-
version:
|
|
1550
|
+
version: H(t, n),
|
|
1551
1551
|
bitFlag: {
|
|
1552
1552
|
level: (6 & r) >> 1,
|
|
1553
1553
|
dataDescriptor: !(8 & ~r),
|
|
1554
|
-
languageEncodingFlag: (r &
|
|
1554
|
+
languageEncodingFlag: (r & A) == A
|
|
1555
1555
|
},
|
|
1556
1556
|
rawLastModDate: a,
|
|
1557
|
-
lastModDate:
|
|
1558
|
-
filenameLength:
|
|
1559
|
-
extraFieldLength:
|
|
1557
|
+
lastModDate: Zr(a),
|
|
1558
|
+
filenameLength: H(t, n + 22),
|
|
1559
|
+
extraFieldLength: H(t, n + 24)
|
|
1560
1560
|
});
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1563
|
-
let { rawExtraField: a } = t, o = t.extraField = /* @__PURE__ */ new Map(), s =
|
|
1562
|
+
function Rr(e, t, n, r, i) {
|
|
1563
|
+
let { rawExtraField: a } = t, o = t.extraField = /* @__PURE__ */ new Map(), s = W(new Uint8Array(a)), c = 0;
|
|
1564
1564
|
try {
|
|
1565
1565
|
for (; c < a.length;) {
|
|
1566
|
-
let e =
|
|
1566
|
+
let e = H(s, c), t = H(s, c + 2);
|
|
1567
1567
|
o.set(e, {
|
|
1568
1568
|
type: e,
|
|
1569
1569
|
data: a.slice(c + 4, c + 4 + t)
|
|
1570
1570
|
}), c += 4 + t;
|
|
1571
1571
|
}
|
|
1572
1572
|
} catch {}
|
|
1573
|
-
let l =
|
|
1573
|
+
let l = H(n, r + 4);
|
|
1574
1574
|
Object.assign(t, {
|
|
1575
|
-
signature:
|
|
1576
|
-
compressedSize:
|
|
1577
|
-
uncompressedSize:
|
|
1575
|
+
signature: U(n, r + 10),
|
|
1576
|
+
compressedSize: U(n, r + 14),
|
|
1577
|
+
uncompressedSize: U(n, r + 18)
|
|
1578
1578
|
});
|
|
1579
1579
|
let u = o.get(1);
|
|
1580
1580
|
u && (function(e, t) {
|
|
1581
1581
|
t.zip64 = !0;
|
|
1582
|
-
let n =
|
|
1583
|
-
if (e.data.length < i) throw Error(
|
|
1582
|
+
let n = W(e.data), r = Nr.filter(([e, n]) => t[e] == n), i = r.reduce((e, [, t]) => e + Pr[t].bytes, 0);
|
|
1583
|
+
if (e.data.length < i) throw Error(Er);
|
|
1584
1584
|
for (let i = 0, a = 0; i < r.length; i++) {
|
|
1585
|
-
let [o, s] = r[i], c =
|
|
1585
|
+
let [o, s] = r[i], c = Pr[s];
|
|
1586
1586
|
t[o] = e[o] = c.getValue(n, a), a += c.bytes;
|
|
1587
1587
|
}
|
|
1588
1588
|
}(u, t), t.extraFieldZip64 = u);
|
|
1589
1589
|
let d = o.get(28789);
|
|
1590
|
-
d && (
|
|
1590
|
+
d && (zr(d, xn, Sn, t, e), t.extraFieldUnicodePath = d);
|
|
1591
1591
|
let f = o.get(25461);
|
|
1592
|
-
f && (
|
|
1592
|
+
f && (zr(f, Cn, wn, t, e), t.extraFieldUnicodeComment = f);
|
|
1593
1593
|
let p = o.get(39169);
|
|
1594
1594
|
p && p.data.length >= 7 ? (function(e, t, n) {
|
|
1595
|
-
let r =
|
|
1595
|
+
let r = W(e.data), i = $r(r, 4);
|
|
1596
1596
|
Object.assign(e, {
|
|
1597
|
-
vendorVersion:
|
|
1598
|
-
vendorId:
|
|
1597
|
+
vendorVersion: $r(r, 0),
|
|
1598
|
+
vendorId: $r(r, 2),
|
|
1599
1599
|
strength: i,
|
|
1600
1600
|
originalCompressionMethod: n,
|
|
1601
|
-
compressionMethod:
|
|
1601
|
+
compressionMethod: H(r, 5)
|
|
1602
1602
|
}), t.compressionMethod = e.compressionMethod;
|
|
1603
1603
|
}(p, t, l), t.extraFieldAES = p) : t.compressionMethod = l;
|
|
1604
1604
|
let m = o.get(10);
|
|
1605
1605
|
m && (function(e, t) {
|
|
1606
|
-
let n =
|
|
1606
|
+
let n = W(e.data), r, i = 4;
|
|
1607
1607
|
try {
|
|
1608
1608
|
for (; i < e.data.length && !r;) {
|
|
1609
|
-
let t =
|
|
1609
|
+
let t = H(n, i), a = H(n, i + 2);
|
|
1610
1610
|
t == 1 && (r = e.data.slice(i + 4, i + 4 + a)), i += 4 + a;
|
|
1611
1611
|
}
|
|
1612
1612
|
} catch {}
|
|
1613
1613
|
try {
|
|
1614
1614
|
if (r && r.length == 24) {
|
|
1615
|
-
let n =
|
|
1615
|
+
let n = W(r), i = n.getBigUint64(0, !0), a = n.getBigUint64(8, !0), o = n.getBigUint64(16, !0);
|
|
1616
1616
|
Object.assign(e, {
|
|
1617
1617
|
rawLastModDate: i,
|
|
1618
1618
|
rawLastAccessDate: a,
|
|
1619
1619
|
rawCreationDate: o
|
|
1620
1620
|
});
|
|
1621
1621
|
let s = {
|
|
1622
|
-
lastModDate:
|
|
1623
|
-
lastAccessDate:
|
|
1624
|
-
creationDate:
|
|
1622
|
+
lastModDate: Qr(i),
|
|
1623
|
+
lastAccessDate: Qr(a),
|
|
1624
|
+
creationDate: Qr(o)
|
|
1625
1625
|
};
|
|
1626
1626
|
Object.assign(e, s), Object.assign(t, s);
|
|
1627
1627
|
}
|
|
1628
1628
|
} catch {}
|
|
1629
1629
|
}(m, t), t.extraFieldNTFS = m);
|
|
1630
1630
|
let h = o.get(30805);
|
|
1631
|
-
if (h)
|
|
1631
|
+
if (h) Br(h, t, !1), t.extraFieldUnix = h;
|
|
1632
1632
|
else {
|
|
1633
1633
|
let e = o.get(30837);
|
|
1634
|
-
e && (
|
|
1634
|
+
e && (Br(e, t, !0), t.extraFieldInfoZip = e);
|
|
1635
1635
|
}
|
|
1636
|
-
let g = o.get(
|
|
1636
|
+
let g = o.get(k);
|
|
1637
1637
|
g && (function(e, t, n) {
|
|
1638
1638
|
if (!e.data.length) return;
|
|
1639
|
-
let r =
|
|
1640
|
-
n ? (1 & ~i || (a.push(
|
|
1639
|
+
let r = W(e.data), i = $r(r, 0), a = [], o = [];
|
|
1640
|
+
n ? (1 & ~i || (a.push(kn), o.push(An)), 2 & ~i || (a.push(jn), o.push(Mn)), 4 & ~i || (a.push(Nn), o.push(Pn))) : e.data.length >= 5 && (a.push(kn), o.push(An));
|
|
1641
1641
|
let s = 1;
|
|
1642
1642
|
a.forEach((n, i) => {
|
|
1643
1643
|
if (e.data.length >= s + 4) {
|
|
1644
|
-
let a =
|
|
1644
|
+
let a = U(r, s);
|
|
1645
1645
|
t[n] = e[n] = /* @__PURE__ */ new Date(1e3 * (0 | a));
|
|
1646
1646
|
let c = o[i];
|
|
1647
1647
|
e[c] = a;
|
|
@@ -1652,49 +1652,49 @@ function Pr(e, t, n, r, i) {
|
|
|
1652
1652
|
let _ = o.get(6534);
|
|
1653
1653
|
_ && (t.extraFieldUSDZ = _);
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function zr(e, t, n, r, i) {
|
|
1656
1656
|
if (e.data.length < 5) return void (e.valid = !1);
|
|
1657
|
-
let a =
|
|
1657
|
+
let a = W(e.data), o = new ye();
|
|
1658
1658
|
o.append(i[n]);
|
|
1659
|
-
let s =
|
|
1659
|
+
let s = W(/* @__PURE__ */ new Uint8Array(4));
|
|
1660
1660
|
s.setUint32(0, o.get(), !0);
|
|
1661
|
-
let c =
|
|
1661
|
+
let c = U(a, 1);
|
|
1662
1662
|
Object.assign(e, {
|
|
1663
|
-
version:
|
|
1664
|
-
[t]:
|
|
1665
|
-
valid: !i.bitFlag.languageEncodingFlag && c ==
|
|
1663
|
+
version: $r(a, 0),
|
|
1664
|
+
[t]: bn(e.data.subarray(5)),
|
|
1665
|
+
valid: !i.bitFlag.languageEncodingFlag && c == U(s, 0)
|
|
1666
1666
|
}), e.valid && (r[t] = e[t], r[t + "UTF8"] = !0);
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function Br(e, t, n) {
|
|
1669
1669
|
try {
|
|
1670
|
-
let r =
|
|
1670
|
+
let r = W(new Uint8Array(e.data)), i, a;
|
|
1671
1671
|
if (n) {
|
|
1672
|
-
let t = 0, n =
|
|
1673
|
-
i =
|
|
1674
|
-
let s =
|
|
1675
|
-
a =
|
|
1672
|
+
let t = 0, n = $r(r, t++), o = $r(r, t++);
|
|
1673
|
+
i = Vr(e.data.subarray(t, t + o)), t += o;
|
|
1674
|
+
let s = $r(r, t++);
|
|
1675
|
+
a = Vr(e.data.subarray(t, t + s)), Object.assign(e, {
|
|
1676
1676
|
version: n,
|
|
1677
1677
|
uid: i,
|
|
1678
1678
|
gid: a
|
|
1679
1679
|
});
|
|
1680
|
-
} else e.data.length >= 4 && (i =
|
|
1680
|
+
} else e.data.length >= 4 && (i = H(r, 0), a = H(r, 2), Object.assign(e, {
|
|
1681
1681
|
uid: i,
|
|
1682
1682
|
gid: a
|
|
1683
1683
|
}));
|
|
1684
1684
|
i !== void 0 && (t.uid = i), a !== void 0 && (t.gid = a);
|
|
1685
1685
|
} catch {}
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function Vr(e) {
|
|
1688
1688
|
let t = /* @__PURE__ */ new Uint8Array(4);
|
|
1689
1689
|
return t.set(e, 0), new DataView(t.buffer, t.byteOffset, 4).getUint32(0, !0);
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1692
|
-
return e === void 0 ? t ?
|
|
1691
|
+
function Hr(e, t) {
|
|
1692
|
+
return e === void 0 ? t ? wr : "balanced" : e;
|
|
1693
1693
|
}
|
|
1694
|
-
var
|
|
1695
|
-
async function*
|
|
1696
|
-
let n = e.size - t, r = await z(e, n, t), i =
|
|
1697
|
-
for (let e = r.length - 22; e >= 0; e--)
|
|
1694
|
+
var Ur = 64, Wr = 0, Gr = 1, Kr = 2;
|
|
1695
|
+
async function* qr(e, t) {
|
|
1696
|
+
let n = e.size - t, r = await z(e, n, t), i = W(r);
|
|
1697
|
+
for (let e = r.length - 22; e >= 0; e--) U(i, e) == 101010256 && (yield [
|
|
1698
1698
|
i,
|
|
1699
1699
|
n,
|
|
1700
1700
|
r,
|
|
@@ -1702,54 +1702,54 @@ async function* Ur(e, t) {
|
|
|
1702
1702
|
n + e
|
|
1703
1703
|
]);
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function Jr(e, t, n) {
|
|
1706
1706
|
return {
|
|
1707
1707
|
offset: n,
|
|
1708
1708
|
buffer: e.slice(t, t + 22).buffer
|
|
1709
1709
|
};
|
|
1710
1710
|
}
|
|
1711
|
-
async function
|
|
1712
|
-
let s =
|
|
1713
|
-
if (s == 65535 || c == 4294967295 || l == 4294967295) return await
|
|
1714
|
-
if (!s && !c) return
|
|
1715
|
-
for (let r of [i - c, l]) if (await
|
|
1716
|
-
return
|
|
1711
|
+
async function Yr(e, t, n, r, i, a, o) {
|
|
1712
|
+
let s = H(t, r + 10), c = U(t, r + 12), l = U(t, r + 16);
|
|
1713
|
+
if (s == 65535 || c == 4294967295 || l == 4294967295) return await Xr(e, t, n, i - 20, a, o) == 117853008 ? Kr : Wr;
|
|
1714
|
+
if (!s && !c) return Gr;
|
|
1715
|
+
for (let r of [i - c, l]) if (await Xr(e, t, n, r, a, o) == 33639248) return Kr;
|
|
1716
|
+
return Wr;
|
|
1717
1717
|
}
|
|
1718
|
-
async function
|
|
1719
|
-
if (!(r < 0 || r + 4 > i)) return r >= n ?
|
|
1718
|
+
async function Xr(e, t, n, r, i, a) {
|
|
1719
|
+
if (!(r < 0 || r + 4 > i)) return r >= n ? U(t, r - n) : a.count > 0 ? (a.count--, U(W(await z(e, r, 4)), 0)) : void 0;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function B(e) {
|
|
1722
1722
|
let t = /* @__PURE__ */ Error("Ambiguous archive");
|
|
1723
1723
|
throw t.reason = e, t;
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function V(e, t, n) {
|
|
1726
1726
|
return t[n] === void 0 ? e.options[n] : t[n];
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1729
|
-
let t = (4294901760 & e) >> 16, n = e &
|
|
1728
|
+
function Zr(e) {
|
|
1729
|
+
let t = (4294901760 & e) >> 16, n = e & b;
|
|
1730
1730
|
try {
|
|
1731
1731
|
return new Date(1980 + ((65024 & t) >> 9), ((480 & t) >> 5) - 1, 31 & t, (63488 & n) >> 11, (2016 & n) >> 5, 2 * (31 & n), 0);
|
|
1732
1732
|
} catch {}
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function Qr(e) {
|
|
1735
1735
|
return new Date(Number(e / BigInt(1e4) - BigInt(0xa9730b66800)));
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function $r(e, t) {
|
|
1738
1738
|
return e.getUint8(t);
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function H(e, t) {
|
|
1741
1741
|
return e.getUint16(t, !0);
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1743
|
+
function U(e, t) {
|
|
1744
1744
|
return e.getUint32(t, !0);
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function ei(e, t) {
|
|
1747
1747
|
return Number(e.getBigUint64(t, !0));
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function W(e) {
|
|
1750
1750
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
1751
1751
|
}
|
|
1752
|
-
var
|
|
1752
|
+
var ti = "Zip file comment exceeds 64KB", ni = "File entry comment exceeds 64KB", ri = "File entry name exceeds 64KB", ii = "Version exceeds 65535", ai = "The strength must equal 1, 2, or 3", oi = "Extra field type exceeds 65535", si = "Extra field data exceeds 64KB", ci = "Compression method not supported", li = -2147483648, ui = 2147483647, di = "Zip64 is not supported (set the 'zip64' option to 'true')", fi = "Undefined uncompressed size", pi = "Undefined reader", mi = "Invalid uid (must be integer 0..2^32-1)", hi = "Invalid gid (must be integer 0..2^32-1)", gi = "Invalid UNIX mode (must be integer 0..65535)", _i = "Invalid unixExtraFieldType (must be 'infozip' or 'unix')", vi = "uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)", yi = "Invalid msdosAttributesRaw (must be integer 0..255)", bi = "Invalid msdosAttributes (must be an object with boolean flags)", xi = new Uint8Array([
|
|
1753
1753
|
7,
|
|
1754
1754
|
0,
|
|
1755
1755
|
2,
|
|
@@ -1759,18 +1759,18 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
1759
1759
|
3,
|
|
1760
1760
|
0,
|
|
1761
1761
|
0
|
|
1762
|
-
]),
|
|
1762
|
+
]), Si = "infozip", Ci = "unix", wi = 0, Ti = [], Ei = class {
|
|
1763
1763
|
constructor(e, t = {}) {
|
|
1764
|
-
let n = (e = new
|
|
1764
|
+
let n = (e = new gn(e)).availableSize !== void 0 && e.availableSize > 0 && e.availableSize !== Infinity && e.maxSize !== void 0 && e.maxSize > 0 && e.maxSize !== Infinity;
|
|
1765
1765
|
Object.assign(this, {
|
|
1766
1766
|
writer: e,
|
|
1767
1767
|
addSplitZipSignature: n,
|
|
1768
1768
|
options: t,
|
|
1769
|
-
config:
|
|
1769
|
+
config: L(),
|
|
1770
1770
|
files: /* @__PURE__ */ new Map(),
|
|
1771
1771
|
filenames: /* @__PURE__ */ new Set(),
|
|
1772
|
-
offset: t.offset === void 0 ? e.size || e.writable.size || 0 : t[
|
|
1773
|
-
initialOffset: t.offset === void 0 ? 0 : t[
|
|
1772
|
+
offset: t.offset === void 0 ? e.size || e.writable.size || 0 : t[br],
|
|
1773
|
+
initialOffset: t.offset === void 0 ? 0 : t[br] - (e.size || e.writable.size || 0),
|
|
1774
1774
|
pendingAddFileCalls: /* @__PURE__ */ new Set(),
|
|
1775
1775
|
bufferedWrites: 0,
|
|
1776
1776
|
lastFileEntry: void 0
|
|
@@ -1778,17 +1778,17 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
1778
1778
|
}
|
|
1779
1779
|
async prependZip(e) {
|
|
1780
1780
|
if (this.filenames.size) throw Error("Zip file not empty");
|
|
1781
|
-
e = new
|
|
1782
|
-
let t = new
|
|
1783
|
-
await t.close(), await
|
|
1781
|
+
e = new hn(e), await _n(e);
|
|
1782
|
+
let t = new Fr(e.readable), n = await t.getEntries();
|
|
1783
|
+
await t.close(), await _n(this.writer), await e.readable.pipeTo(this.writer.writable, {
|
|
1784
1784
|
preventClose: !0,
|
|
1785
1785
|
preventAbort: !0
|
|
1786
1786
|
}), this.writer.size = this.offset = e.size, this.filenames = new Set(n.map((e) => e.filename)), this.files = new Map(n.map((e) => {
|
|
1787
1787
|
let { version: t, rawLastModDate: n, lastAccessDate: r, creationDate: i, rawFilename: a, bitFlag: o, encrypted: s, uncompressedSize: c, compressedSize: l, diskOffset: u, diskNumber: d, zip64: f } = e, { compressionMethod: p, rawExtraFieldZip64: m, rawExtraFieldAES: h, rawExtraFieldExtendedTimestamp: g, rawExtraFieldNTFS: _, rawExtraFieldUnix: v, rawExtraField: y } = e, { level: b, languageEncodingFlag: x, dataDescriptor: S } = o;
|
|
1788
|
-
m ||=
|
|
1789
|
-
let C =
|
|
1788
|
+
m ||= I, h ||= I, g ||= I, _ ||= I, v ||= I, y ||= I, e.extraFieldAES && (p = 99);
|
|
1789
|
+
let C = q(m, h, g, _, v, y), w = f && c >= 4294967295, T = f && l >= 4294967295, { headerArray: E, headerView: D } = Vi({
|
|
1790
1790
|
version: t,
|
|
1791
|
-
bitFlag: -7 &
|
|
1791
|
+
bitFlag: -7 & Hi(b, x, S, s, p) | b << 1,
|
|
1792
1792
|
compressionMethod: p,
|
|
1793
1793
|
uncompressedSize: c,
|
|
1794
1794
|
compressedSize: l,
|
|
@@ -1798,7 +1798,7 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
1798
1798
|
zip64UncompressedSize: w,
|
|
1799
1799
|
extraFieldLength: C
|
|
1800
1800
|
}), { signature: O } = e;
|
|
1801
|
-
return O !== void 0 &&
|
|
1801
|
+
return O !== void 0 && K(D, 10, O), Object.assign(e, {
|
|
1802
1802
|
zip64UncompressedSize: w,
|
|
1803
1803
|
zip64CompressedSize: T,
|
|
1804
1804
|
zip64Offset: f && this.offset - u >= 4294967295,
|
|
@@ -1820,29 +1820,29 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
1820
1820
|
let r = this;
|
|
1821
1821
|
n = Object.assign({}, n);
|
|
1822
1822
|
let { pendingAddFileCalls: i, config: a } = r, o, s;
|
|
1823
|
-
|
|
1823
|
+
wi < a.maxWorkers ? wi++ : await new Promise((e) => Ti.push(e));
|
|
1824
1824
|
try {
|
|
1825
|
-
if (e = e.trim(),
|
|
1825
|
+
if (e = e.trim(), G(r, n, "directory") && !e.endsWith("/") && (e += "/"), r.filenames.has(e)) throw Error("File already exists");
|
|
1826
1826
|
return r.filenames.add(e), s = !0, o = async function(e, t, n, r) {
|
|
1827
1827
|
let i = function(e, t, n) {
|
|
1828
1828
|
t = t.trim();
|
|
1829
|
-
let r =
|
|
1830
|
-
if (o !== void 0 && (o < 0 || o > 4294967295)) throw Error(
|
|
1831
|
-
if (s !== void 0 && (s < 0 || s > 4294967295)) throw Error(
|
|
1832
|
-
if (c !== void 0 && (c < 0 || c > 65535)) throw Error(
|
|
1833
|
-
if (l !== void 0 && l !==
|
|
1834
|
-
if (l ===
|
|
1835
|
-
l !== void 0 || o === void 0 && s === void 0 || (l =
|
|
1836
|
-
let p =
|
|
1837
|
-
if (o !== void 0 || s !== void 0 || c !== void 0 || l ? (r = !1, i = i &
|
|
1838
|
-
if (m && typeof m != "object") throw Error(
|
|
1839
|
-
if (i > 65535) throw Error(
|
|
1840
|
-
let
|
|
1841
|
-
!n.directory && t.endsWith("/") && (n[
|
|
1842
|
-
let
|
|
1843
|
-
|
|
1844
|
-
let
|
|
1845
|
-
return r || (
|
|
1829
|
+
let r = G(e, n, zn), i = G(e, n, Un, r ? 20 : 768), a = G(e, n, Kn), o = G(e, n, "uid"), s = G(e, n, "gid"), c = G(e, n, Xn), l = G(e, n, Sr), u = G(e, n, Zn), d = G(e, n, Qn), f = G(e, n, $n);
|
|
1830
|
+
if (o !== void 0 && (o < 0 || o > 4294967295)) throw Error(mi);
|
|
1831
|
+
if (s !== void 0 && (s < 0 || s > 4294967295)) throw Error(hi);
|
|
1832
|
+
if (c !== void 0 && (c < 0 || c > 65535)) throw Error(gi);
|
|
1833
|
+
if (l !== void 0 && l !== Si && l !== Ci) throw Error(_i);
|
|
1834
|
+
if (l === Ci && (o !== void 0 && o > 65535 || s !== void 0 && s > 65535)) throw Error(vi);
|
|
1835
|
+
l !== void 0 || o === void 0 && s === void 0 || (l = Si);
|
|
1836
|
+
let p = G(e, n, Ln), m = G(e, n, Rn), h = p !== void 0 || m !== void 0;
|
|
1837
|
+
if (o !== void 0 || s !== void 0 || c !== void 0 || l ? (r = !1, i = i & b | 768) : h && (r = !0, i &= 255), p !== void 0 && (p < 0 || p > 255)) throw Error(yi);
|
|
1838
|
+
if (m && typeof m != "object") throw Error(bi);
|
|
1839
|
+
if (i > 65535) throw Error(ii);
|
|
1840
|
+
let g = G(e, n, In, 0);
|
|
1841
|
+
!n.directory && t.endsWith("/") && (n[Gn] = !0);
|
|
1842
|
+
let _ = G(e, n, Gn);
|
|
1843
|
+
_ ? (t.endsWith("/") || (t += "/"), g === 0 && (g = 16, r || (g |= 16877 << 16))) : r || g !== 0 || (g = a ? 493 << 16 : 420 << 16);
|
|
1844
|
+
let v;
|
|
1845
|
+
return r || (v = g >> 16 & b, c = c === void 0 ? v : c & b, u ? c |= M : u = !!(c & M), d ? c |= N : d = !!(c & N), f ? c |= 512 : f = !!(512 & c), _ && (c |= j), g = (c & b) << 16 | 255 & g), {msdosAttributesRaw: p, msdosAttributes: m} = function(e, t) {
|
|
1846
1846
|
if (e !== void 0) e &= 255;
|
|
1847
1847
|
else if (t !== void 0) {
|
|
1848
1848
|
let { readOnly: n, hidden: r, system: i, directory: a, archive: o } = t, s = 0;
|
|
@@ -1858,13 +1858,13 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
1858
1858
|
msdosAttributesRaw: e,
|
|
1859
1859
|
msdosAttributes: t
|
|
1860
1860
|
};
|
|
1861
|
-
}(p, m),
|
|
1861
|
+
}(p, m), h && (g = g & y | 255 & p), {
|
|
1862
1862
|
name: t,
|
|
1863
1863
|
resolvedOptions: {
|
|
1864
1864
|
versionMadeBy: i,
|
|
1865
1865
|
msDosCompatible: r,
|
|
1866
|
-
externalFileAttributes:
|
|
1867
|
-
unixExternalUpper:
|
|
1866
|
+
externalFileAttributes: g,
|
|
1867
|
+
unixExternalUpper: v,
|
|
1868
1868
|
uid: o,
|
|
1869
1869
|
gid: s,
|
|
1870
1870
|
unixMode: c,
|
|
@@ -1879,29 +1879,29 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
1879
1879
|
}(e, t, r);
|
|
1880
1880
|
({name: t} = i);
|
|
1881
1881
|
let a = function(e, t, n) {
|
|
1882
|
-
let r =
|
|
1883
|
-
if (i === void 0 && (i =
|
|
1882
|
+
let r = G(e, n, yr, xe), i = r(t);
|
|
1883
|
+
if (i === void 0 && (i = xe(t)), q(i) > 65535) throw Error(ri);
|
|
1884
1884
|
let a = n.comment || "", o = r(a);
|
|
1885
|
-
if (o === void 0 && (o =
|
|
1886
|
-
let s =
|
|
1887
|
-
if (s > 65535) throw Error(
|
|
1888
|
-
let c =
|
|
1889
|
-
f || (p =
|
|
1890
|
-
let h =
|
|
1891
|
-
if (!f && E !== void 0 && E !== 0 && E !== 8) throw Error(
|
|
1892
|
-
let D =
|
|
1885
|
+
if (o === void 0 && (o = xe(a)), q(o) > 65535) throw Error(ni);
|
|
1886
|
+
let s = G(e, n, Hn, 20);
|
|
1887
|
+
if (s > 65535) throw Error(ii);
|
|
1888
|
+
let c = G(e, n, kn, /* @__PURE__ */ new Date()), l = G(e, n, jn), u = G(e, n, Nn), d = G(e, n, Fn, 0), f = G(e, n, ir), p, m;
|
|
1889
|
+
f || (p = G(e, n, nr), m = G(e, n, rr));
|
|
1890
|
+
let h = G(e, n, ur, 3), g = G(e, n, Wn), _ = G(e, n, dr, !0), v = G(e, n, fr, !0), y = G(e, n, sr), b = G(e, n, lr, !0), x = G(e, n, mr), S = G(e, n, hr), C = G(e, n, gr, !0), w = G(e, n, ar), T = G(e, n, _r, !0), E = G(e, n, qn);
|
|
1891
|
+
if (!f && E !== void 0 && E !== 0 && E !== 8) throw Error(ci);
|
|
1892
|
+
let D = G(e, n, pr), O = G(e, n, cr), k = G(e, n, vr);
|
|
1893
1893
|
x && k === void 0 && (k = !1), (k === void 0 || g) && (k = !0), D !== void 0 && D != 6 && (O = !1), O || e.config.CompressionStream !== void 0 || e.config.CompressionStreamZlib !== void 0 || (D = 0);
|
|
1894
|
-
let ee =
|
|
1895
|
-
if (!(g || p === void 0 && m === void 0 || h >= 1 && h <= 3)) throw Error(
|
|
1896
|
-
let
|
|
1897
|
-
if (
|
|
1894
|
+
let ee = G(e, n, Bn);
|
|
1895
|
+
if (!(g || p === void 0 && m === void 0 || h >= 1 && h <= 3)) throw Error(ai);
|
|
1896
|
+
let te = I, A = n[Yn];
|
|
1897
|
+
if (A) {
|
|
1898
1898
|
let e = 0, t = 0;
|
|
1899
|
-
|
|
1900
|
-
let n =
|
|
1901
|
-
|
|
1902
|
-
if (r > 65535) throw Error(
|
|
1903
|
-
if (
|
|
1904
|
-
|
|
1899
|
+
A.forEach((t) => e += 4 + q(t)), te = new Uint8Array(e);
|
|
1900
|
+
let n = Bi(te);
|
|
1901
|
+
A.forEach((e, r) => {
|
|
1902
|
+
if (r > 65535) throw Error(oi);
|
|
1903
|
+
if (q(e) > 65535) throw Error(si);
|
|
1904
|
+
Li(n, t, r), Li(n, t + 2, q(e)), zi(te, e, t + 4), t += 4 + q(e);
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
1907
|
return {
|
|
@@ -1933,25 +1933,25 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
1933
1933
|
useCompressionStream: O,
|
|
1934
1934
|
dataDescriptor: k,
|
|
1935
1935
|
zip64: ee,
|
|
1936
|
-
rawExtraField:
|
|
1936
|
+
rawExtraField: te
|
|
1937
1937
|
}
|
|
1938
1938
|
};
|
|
1939
|
-
}(e, t, r), { comment: o } = a, s = r[
|
|
1939
|
+
}(e, t, r), { comment: o } = a, s = r[Yn], c;
|
|
1940
1940
|
e.files.set(t, void 0);
|
|
1941
1941
|
try {
|
|
1942
1942
|
let o = await async function(e, t, { resolvedOptions: n }, r) {
|
|
1943
1943
|
let { passThrough: i, zipCrypto: a, password: o, rawPassword: s, encryptionStrength: c } = n, { dataDescriptor: l, zip64: u, level: d, compressionMethod: f } = n, p = 0, m = 0;
|
|
1944
1944
|
if (i) {
|
|
1945
|
-
if (!t) throw Error(
|
|
1946
|
-
if (m = r[
|
|
1945
|
+
if (!t) throw Error(pi);
|
|
1946
|
+
if (m = r[Tn], m === void 0) throw Error(fi);
|
|
1947
1947
|
}
|
|
1948
|
-
let h = !0 === u, g =
|
|
1948
|
+
let h = !0 === u, g = G(e, r, Vn), _ = !!t && (!!(o && q(o) || s && q(s)) || i && g);
|
|
1949
1949
|
t || (d = 0, f = 0);
|
|
1950
1950
|
let v = _ ? a ? 12 : 16 + 4 * c : 0;
|
|
1951
|
-
t && (t = new
|
|
1951
|
+
t && (t = new hn(t), await _n(t), i ? (r.uncompressedSize = m, p = Ii(m) + v) : t.size === void 0 ? (l = !0, (u || u === void 0) && (u = !0, m = p = 4294967296)) : (r.uncompressedSize = m = t.size, p = Ii(m) + v));
|
|
1952
1952
|
let y = h || m >= 4294967295, b = h || p >= 4294967295;
|
|
1953
1953
|
if (y || b) {
|
|
1954
|
-
if (!1 === u) throw Error(
|
|
1954
|
+
if (!1 === u) throw Error(di);
|
|
1955
1955
|
u = !0;
|
|
1956
1956
|
}
|
|
1957
1957
|
return u ||= !1, {
|
|
@@ -1970,61 +1970,61 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
1970
1970
|
}(e, n, a, r);
|
|
1971
1971
|
({reader: n} = o);
|
|
1972
1972
|
let { diskOffset: s, diskNumber: l } = e.writer, u = function(e) {
|
|
1973
|
-
let { rawFilename: t, lastModDate: n, lastAccessDate: r, creationDate: i, level: a, zip64: o, zipCrypto: s, useUnicodeFileNames: c, dataDescriptor: l, directory: u, rawExtraField: d, encryptionStrength: f, extendedTimestamp: p, passThrough: m, encrypted: h, zip64UncompressedSize:
|
|
1974
|
-
if (o && (
|
|
1975
|
-
let e =
|
|
1976
|
-
if (e.uint16(1), e.uint16(16),
|
|
1973
|
+
let { rawFilename: t, lastModDate: n, lastAccessDate: r, creationDate: i, level: a, zip64: o, zipCrypto: s, useUnicodeFileNames: c, dataDescriptor: l, directory: u, rawExtraField: d, encryptionStrength: f, extendedTimestamp: p, passThrough: m, encrypted: h, zip64UncompressedSize: g, zip64CompressedSize: _, uncompressedSize: v } = e, { version: y, compressionMethod: S } = e, C = !u && (S === void 0 ? a === void 0 || a > 0 : S !== 0), w, T = m || !C, E = o && (e.bufferedWrite || !l || !g && !_ || T), D = E || o && l && (g || _);
|
|
1974
|
+
if (o && (g || _)) {
|
|
1975
|
+
let e = ki(20);
|
|
1976
|
+
if (e.uint16(1), e.uint16(16), w = e.array, E && (e.uint64(v), T)) {
|
|
1977
1977
|
let t = h ? s ? 12 : 16 + 4 * f : 0;
|
|
1978
|
-
e.uint64(m ? 0 :
|
|
1978
|
+
e.uint64(m ? 0 : v + t);
|
|
1979
1979
|
}
|
|
1980
|
-
} else
|
|
1981
|
-
let
|
|
1980
|
+
} else w = I;
|
|
1981
|
+
let A, j, M, N, F;
|
|
1982
1982
|
if (h && !s) {
|
|
1983
|
-
let e =
|
|
1984
|
-
e.uint16(
|
|
1985
|
-
} else
|
|
1983
|
+
let e = ki(q(xi) + 2);
|
|
1984
|
+
e.uint16(O), e.bytes(xi), A = e.array, A[8] = f;
|
|
1985
|
+
} else A = I;
|
|
1986
1986
|
if (p) {
|
|
1987
|
-
let e =
|
|
1988
|
-
if (
|
|
1989
|
-
let t = 9 + (r ? 4 : 0) + (i ? 4 : 0), n =
|
|
1990
|
-
|
|
1991
|
-
} else
|
|
1987
|
+
let e = Ni(n);
|
|
1988
|
+
if (Pi(e)) {
|
|
1989
|
+
let t = 9 + (r ? 4 : 0) + (i ? 4 : 0), n = ki(t);
|
|
1990
|
+
N = 1 + (r ? 2 : 0) + (i ? 4 : 0), n.uint16(k), n.uint16(t - 4), n.uint8(N), n.uint32(e), r && n.uint32(Fi(Ni(r))), i && n.uint32(Fi(Ni(i))), M = n.array;
|
|
1991
|
+
} else M = I;
|
|
1992
1992
|
try {
|
|
1993
|
-
let e =
|
|
1994
|
-
t.uint16(10), t.uint16(32), t.skip(4), t.uint16(1), t.uint16(24), t.uint64(e), t.uint64(
|
|
1993
|
+
let e = Mi(n), t = ki(36);
|
|
1994
|
+
t.uint16(10), t.uint16(32), t.skip(4), t.uint16(1), t.uint16(24), t.uint64(e), t.uint64(Mi(r) || e), t.uint64(Mi(i) || e), j = t.array;
|
|
1995
1995
|
} catch {
|
|
1996
|
-
|
|
1996
|
+
j = I;
|
|
1997
1997
|
}
|
|
1998
|
-
} else
|
|
1998
|
+
} else j = M = I;
|
|
1999
1999
|
try {
|
|
2000
2000
|
let { uid: t, gid: n, unixExtraFieldType: r } = e;
|
|
2001
|
-
if (r !=
|
|
2001
|
+
if (r != Si || t === void 0 && n === void 0) if (r != Ci || t === void 0 && n === void 0) F = I;
|
|
2002
2002
|
else {
|
|
2003
|
-
let e =
|
|
2004
|
-
e.uint16(
|
|
2003
|
+
let e = ki(8);
|
|
2004
|
+
e.uint16(te), e.uint16(4), e.uint16((t === void 0 ? 0 : t) & b), e.uint16((n === void 0 ? 0 : n) & b), F = e.array;
|
|
2005
2005
|
}
|
|
2006
2006
|
else {
|
|
2007
|
-
let e =
|
|
2008
|
-
a.uint16(
|
|
2007
|
+
let e = Oi(t), r = Oi(n), i = 3 + e.length + r.length, a = ki(4 + i);
|
|
2008
|
+
a.uint16(ee), a.uint16(i), a.uint8(1), a.uint8(e.length), a.bytes(e), a.uint8(r.length), a.bytes(r), F = a.array;
|
|
2009
2009
|
}
|
|
2010
2010
|
} catch {
|
|
2011
|
-
|
|
2011
|
+
F = I;
|
|
2012
2012
|
}
|
|
2013
|
-
S === void 0 && (S = C ? 8 : 0), o && (
|
|
2014
|
-
let re =
|
|
2015
|
-
if (ie > 65535) throw Error(
|
|
2016
|
-
let { headerArray: ae, headerView: oe, rawLastModDate: se } =
|
|
2017
|
-
version:
|
|
2018
|
-
bitFlag:
|
|
2013
|
+
S === void 0 && (S = C ? 8 : 0), o && (y = y > 45 ? y : 45), h && !s && (y = y > 51 ? y : 51, A[9] = S, S = 99);
|
|
2014
|
+
let re = D ? q(w) : 0, ie = re + q(A, M, j, F, d);
|
|
2015
|
+
if (ie > 65535) throw Error(si);
|
|
2016
|
+
let { headerArray: ae, headerView: oe, rawLastModDate: se } = Vi({
|
|
2017
|
+
version: y,
|
|
2018
|
+
bitFlag: Hi(a, c, l, h, S),
|
|
2019
2019
|
compressionMethod: S,
|
|
2020
|
-
uncompressedSize:
|
|
2021
|
-
lastModDate: n <
|
|
2020
|
+
uncompressedSize: v,
|
|
2021
|
+
lastModDate: n < ne ? ne : n > P ? P : n,
|
|
2022
2022
|
rawFilename: t,
|
|
2023
|
-
zip64CompressedSize:
|
|
2024
|
-
zip64UncompressedSize:
|
|
2023
|
+
zip64CompressedSize: _,
|
|
2024
|
+
zip64UncompressedSize: g,
|
|
2025
2025
|
extraFieldLength: ie
|
|
2026
|
-
}), L =
|
|
2027
|
-
return L.uint32(
|
|
2026
|
+
}), L = ki(30 + q(t) + ie), ce = L.array, le = Bi(ce);
|
|
2027
|
+
return L.uint32(x), L.bytes(ae), L.bytes(t), D && L.bytes(w), L.bytes(A), L.bytes(M), L.bytes(j), L.bytes(F), L.bytes(d), l && (_ || K(le, 18, 0), g || K(le, 22, 0)), {
|
|
2028
2028
|
localHeaderArray: ce,
|
|
2029
2029
|
localHeaderView: le,
|
|
2030
2030
|
headerArray: ae,
|
|
@@ -2033,58 +2033,58 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
2033
2033
|
rawLastModDate: se,
|
|
2034
2034
|
encrypted: h,
|
|
2035
2035
|
compressed: C,
|
|
2036
|
-
version:
|
|
2036
|
+
version: y,
|
|
2037
2037
|
compressionMethod: S,
|
|
2038
|
-
extraFieldExtendedTimestampFlag:
|
|
2039
|
-
rawExtraFieldZip64:
|
|
2038
|
+
extraFieldExtendedTimestampFlag: N,
|
|
2039
|
+
rawExtraFieldZip64: I,
|
|
2040
2040
|
localExtraFieldZip64Length: re,
|
|
2041
|
-
rawExtraFieldExtendedTimestamp:
|
|
2042
|
-
rawExtraFieldNTFS:
|
|
2043
|
-
rawExtraFieldUnix:
|
|
2044
|
-
rawExtraFieldAES:
|
|
2041
|
+
rawExtraFieldExtendedTimestamp: M,
|
|
2042
|
+
rawExtraFieldNTFS: j,
|
|
2043
|
+
rawExtraFieldUnix: F,
|
|
2044
|
+
rawExtraFieldAES: A,
|
|
2045
2045
|
extraFieldLength: ie
|
|
2046
2046
|
};
|
|
2047
2047
|
}(r = Object.assign({}, r, i.resolvedOptions, a.resolvedOptions, o.resolvedOptions, {
|
|
2048
2048
|
internalFileAttribute: a.resolvedOptions.internalFileAttributes,
|
|
2049
2049
|
externalFileAttribute: i.resolvedOptions.externalFileAttributes,
|
|
2050
|
-
signature: r[
|
|
2050
|
+
signature: r[Jn],
|
|
2051
2051
|
offset: e.offset - s,
|
|
2052
2052
|
diskNumberStart: l
|
|
2053
2053
|
})), d = function({ zip64: e, dataDescriptor: t, dataDescriptorSignature: n }) {
|
|
2054
|
-
let r, i =
|
|
2055
|
-
return n && (o += 4), t && (i = new Uint8Array(o), r =
|
|
2054
|
+
let r, i = I, a = 0, o = e ? 20 : 12;
|
|
2055
|
+
return n && (o += 4), t && (i = new Uint8Array(o), r = Bi(i), n && (a = 4, K(r, 0, C))), {
|
|
2056
2056
|
dataDescriptorArray: i,
|
|
2057
2057
|
dataDescriptorView: r,
|
|
2058
2058
|
dataDescriptorOffset: a
|
|
2059
2059
|
};
|
|
2060
|
-
}(r), f =
|
|
2060
|
+
}(r), f = q(u.localHeaderArray, d.dataDescriptorArray);
|
|
2061
2061
|
c = await async function(e, t, n, r, i) {
|
|
2062
|
-
let { files: a, writer: o } = e, { keepOrder: s, dataDescriptor: c, signal: l } = i, { headerInfo: u } = r, d = e.options[
|
|
2063
|
-
a.set(t,
|
|
2062
|
+
let { files: a, writer: o } = e, { keepOrder: s, dataDescriptor: c, signal: l } = i, { headerInfo: u } = r, d = e.options[xr], f = e.lastFileEntry, p, m, h, g, _, v, y, b = {}, x = 0;
|
|
2063
|
+
a.set(t, b), e.lastFileEntry = b;
|
|
2064
2064
|
try {
|
|
2065
2065
|
let m;
|
|
2066
|
-
s && (m = f && f.lock, C()), i.bufferedWrite || !s || e.writerLocked || e.bufferedWrites || !c ? (p = !0, e.bufferedWrites++,
|
|
2066
|
+
s && (m = f && f.lock, C()), i.bufferedWrite || !s || e.writerLocked || e.bufferedWrites || !c ? (p = !0, e.bufferedWrites++, y = i.createTempStream ? await i.createTempStream() : new TransformStream(void 0, void 0, { highWaterMark: F }), y.size = 0, await _n(o)) : (y = o, await w()), await _n(y);
|
|
2067
2067
|
let { diskOffset: h } = o;
|
|
2068
2068
|
if (e.addSplitZipSignature) {
|
|
2069
2069
|
delete e.addSplitZipSignature;
|
|
2070
2070
|
let t = /* @__PURE__ */ new Uint8Array(4);
|
|
2071
|
-
|
|
2071
|
+
K(Bi(t), 0, S), await ji(o, t), e.offset += 4;
|
|
2072
2072
|
}
|
|
2073
|
-
d && !p &&
|
|
2073
|
+
d && !p && Di(r, e.offset - h);
|
|
2074
2074
|
let { localHeaderArray: E } = u;
|
|
2075
2075
|
p || (await m, await T());
|
|
2076
|
-
let D = o.diskNumber, O =
|
|
2077
|
-
if (
|
|
2078
|
-
let { headerInfo: s, dataDescriptorInfo: c, metadataSize: l } = i, { headerArray: u, headerView: d, lastModDate: f, rawLastModDate: p, encrypted: m, compressed: h, version: g, compressionMethod: _, rawExtraFieldZip64: v, localExtraFieldZip64Length: y, rawExtraFieldExtendedTimestamp: b, extraFieldExtendedTimestampFlag: x, rawExtraFieldNTFS: S, rawExtraFieldUnix: C, rawExtraFieldAES: w } = s, { dataDescriptorArray: T } = c, { rawFilename: E, lastAccessDate: D, creationDate: O, password: k, rawPassword: ee, level:
|
|
2076
|
+
let D = o.diskNumber, O = Ai(e, o);
|
|
2077
|
+
if (b.diskNumberStart = D, p || (_ = !0, v = o.size, await ji(y, E)), b = await async function(e, t, { diskNumberStart: n, lock: r }, i, a, o) {
|
|
2078
|
+
let { headerInfo: s, dataDescriptorInfo: c, metadataSize: l } = i, { headerArray: u, headerView: d, lastModDate: f, rawLastModDate: p, encrypted: m, compressed: h, version: g, compressionMethod: _, rawExtraFieldZip64: v, localExtraFieldZip64Length: y, rawExtraFieldExtendedTimestamp: b, extraFieldExtendedTimestampFlag: x, rawExtraFieldNTFS: S, rawExtraFieldUnix: C, rawExtraFieldAES: w } = s, { dataDescriptorArray: T } = c, { rawFilename: E, lastAccessDate: D, creationDate: O, password: k, rawPassword: ee, level: te, zip64: A, zip64UncompressedSize: j, zip64CompressedSize: M, zipCrypto: N, dataDescriptor: P, directory: ne, executable: F, versionMadeBy: re, rawComment: I, rawExtraField: ie, useWebWorkers: ae, transferStreams: oe, onstart: se, onprogress: L, onend: le, signal: ue, encryptionStrength: de, extendedTimestamp: fe, msDosCompatible: pe, internalFileAttributes: me, externalFileAttributes: he, uid: ge, gid: _e, unixMode: ve, setuid: ye, setgid: be, sticky: xe, unixExternalUpper: R, msdosAttributesRaw: Se, msdosAttributes: Ce, useCompressionStream: we, passThrough: Te } = o, Ee = {
|
|
2079
2079
|
lock: r,
|
|
2080
|
-
versionMadeBy:
|
|
2081
|
-
zip64:
|
|
2082
|
-
directory: !!
|
|
2083
|
-
executable: !!
|
|
2080
|
+
versionMadeBy: re,
|
|
2081
|
+
zip64: A,
|
|
2082
|
+
directory: !!ne,
|
|
2083
|
+
executable: !!F,
|
|
2084
2084
|
filenameUTF8: !0,
|
|
2085
2085
|
rawFilename: E,
|
|
2086
2086
|
commentUTF8: !0,
|
|
2087
|
-
rawComment:
|
|
2087
|
+
rawComment: I,
|
|
2088
2088
|
rawExtraFieldZip64: v,
|
|
2089
2089
|
localExtraFieldZip64Length: y,
|
|
2090
2090
|
rawExtraFieldExtendedTimestamp: b,
|
|
@@ -2099,21 +2099,21 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
2099
2099
|
diskNumberStart: n,
|
|
2100
2100
|
uid: ge,
|
|
2101
2101
|
gid: _e,
|
|
2102
|
-
unixMode:
|
|
2103
|
-
setuid:
|
|
2104
|
-
setgid:
|
|
2105
|
-
sticky:
|
|
2106
|
-
unixExternalUpper:
|
|
2102
|
+
unixMode: ve,
|
|
2103
|
+
setuid: ye,
|
|
2104
|
+
setgid: be,
|
|
2105
|
+
sticky: xe,
|
|
2106
|
+
unixExternalUpper: R,
|
|
2107
2107
|
msdosAttributesRaw: Se,
|
|
2108
2108
|
msdosAttributes: Ce
|
|
2109
2109
|
}, { signature: De, uncompressedSize: Oe } = o, ke = 0;
|
|
2110
2110
|
Te || (Oe = 0);
|
|
2111
2111
|
let { writable: Ae } = t;
|
|
2112
2112
|
if (e) {
|
|
2113
|
-
let n = e.createReadable ? e.createReadable({ chunkSize:
|
|
2113
|
+
let n = e.createReadable ? e.createReadable({ chunkSize: ce(a) }) : e.readable, r = e.size, i = {
|
|
2114
2114
|
options: {
|
|
2115
|
-
codecType:
|
|
2116
|
-
level:
|
|
2115
|
+
codecType: At,
|
|
2116
|
+
level: te,
|
|
2117
2117
|
rawPassword: ee,
|
|
2118
2118
|
password: k,
|
|
2119
2119
|
encryptionStrength: de,
|
|
@@ -2122,39 +2122,39 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
2122
2122
|
signed: !Te,
|
|
2123
2123
|
compressed: h && !Te,
|
|
2124
2124
|
encrypted: m && !Te,
|
|
2125
|
-
useWebWorkers:
|
|
2125
|
+
useWebWorkers: ae,
|
|
2126
2126
|
useCompressionStream: we,
|
|
2127
|
-
transferStreams:
|
|
2127
|
+
transferStreams: oe
|
|
2128
2128
|
},
|
|
2129
2129
|
config: a,
|
|
2130
2130
|
streamOptions: {
|
|
2131
2131
|
signal: ue,
|
|
2132
2132
|
size: r,
|
|
2133
|
-
onstart:
|
|
2134
|
-
onprogress:
|
|
2133
|
+
onstart: se,
|
|
2134
|
+
onprogress: L,
|
|
2135
2135
|
onend: le
|
|
2136
2136
|
}
|
|
2137
2137
|
};
|
|
2138
2138
|
try {
|
|
2139
|
-
let e = await
|
|
2139
|
+
let e = await Zt({
|
|
2140
2140
|
readable: n,
|
|
2141
2141
|
writable: Ae
|
|
2142
2142
|
}, i);
|
|
2143
|
-
if (ke = e.outputSize, t.size += ke, Te || (Oe = e.inputSize, De = e.signature), !M && ke >= 4294967295 || !
|
|
2143
|
+
if (ke = e.outputSize, t.size += ke, Te || (Oe = e.inputSize, De = e.signature), !M && ke >= 4294967295 || !j && Oe >= 4294967295) throw Error(di);
|
|
2144
2144
|
} catch (e) {
|
|
2145
2145
|
throw e.outputSize !== void 0 && (t.size += e.outputSize), e;
|
|
2146
2146
|
}
|
|
2147
2147
|
}
|
|
2148
2148
|
return (function({ signature: e, compressedSize: t, uncompressedSize: n, headerInfo: r, dataDescriptorInfo: i }, { zip64: a, zipCrypto: o, dataDescriptor: s }) {
|
|
2149
2149
|
let { headerView: c, encrypted: l } = r, { dataDescriptorView: u, dataDescriptorOffset: d } = i;
|
|
2150
|
-
l && !o || e === void 0 || (
|
|
2150
|
+
l && !o || e === void 0 || (K(c, 10, e), s && K(u, d, e)), a ? s && (Ri(u, d + 4, BigInt(t)), Ri(u, d + 12, BigInt(n))) : (K(c, 14, t), K(c, 18, n), s && (K(u, d + 4, t), K(u, d + 8, n)));
|
|
2151
2151
|
})({
|
|
2152
2152
|
signature: De,
|
|
2153
2153
|
compressedSize: ke,
|
|
2154
2154
|
uncompressedSize: Oe,
|
|
2155
2155
|
headerInfo: s,
|
|
2156
2156
|
dataDescriptorInfo: c
|
|
2157
|
-
}, o), P && await
|
|
2157
|
+
}, o), P && await ji(t, T), Object.assign(Ee, {
|
|
2158
2158
|
uncompressedSize: Oe,
|
|
2159
2159
|
compressedSize: ke,
|
|
2160
2160
|
lastModDate: f,
|
|
@@ -2170,24 +2170,24 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
2170
2170
|
headerView: d,
|
|
2171
2171
|
signature: De,
|
|
2172
2172
|
extraFieldExtendedTimestampFlag: x,
|
|
2173
|
-
zip64UncompressedSize:
|
|
2173
|
+
zip64UncompressedSize: j,
|
|
2174
2174
|
zip64CompressedSize: M
|
|
2175
2175
|
}), Ee;
|
|
2176
|
-
}(n,
|
|
2177
|
-
if (await Promise.all([
|
|
2176
|
+
}(n, y, b, r, e.config, i), p || (_ = !1), a.set(t, b), b.filename = t, p) {
|
|
2177
|
+
if (await Promise.all([y.writable.getWriter().close(), m]), await w(), g = !0, v = o.size, await T(), b.diskNumberStart = o.diskNumber, b.offset = Ai(e, o), d) {
|
|
2178
2178
|
let t = r.metadataSize;
|
|
2179
|
-
|
|
2179
|
+
Di(r, e.offset - o.diskOffset), b.size += r.metadataSize - t;
|
|
2180
2180
|
}
|
|
2181
2181
|
(function({ rawFilename: e, encrypted: t, zip64: n, localExtraFieldZip64Length: r, signature: i, compressedSize: a, uncompressedSize: o, zip64UncompressedSize: s, zip64CompressedSize: c }, l, { dataDescriptor: u }) {
|
|
2182
|
-
if (u || (t ||
|
|
2183
|
-
let t = 30 +
|
|
2184
|
-
|
|
2182
|
+
if (u || (t || K(l, 14, i), c || K(l, 18, a), s || K(l, 22, o)), n && r) {
|
|
2183
|
+
let t = 30 + q(e) + 4;
|
|
2184
|
+
Ri(l, t, BigInt(o)), Ri(l, t + 8, BigInt(a));
|
|
2185
2185
|
}
|
|
2186
|
-
})(
|
|
2186
|
+
})(b, u.localHeaderView, i), await ji(o, u.localHeaderArray), await async function(e, t, n, r) {
|
|
2187
2187
|
let i = t.writable.getWriter();
|
|
2188
2188
|
try {
|
|
2189
2189
|
await e.pipeTo(new WritableStream({ async write(e) {
|
|
2190
|
-
await i.ready, await i.write(e), r(
|
|
2190
|
+
await i.ready, await i.write(e), r(q(e));
|
|
2191
2191
|
} }), {
|
|
2192
2192
|
preventClose: !0,
|
|
2193
2193
|
preventAbort: !0,
|
|
@@ -2196,24 +2196,24 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
2196
2196
|
} finally {
|
|
2197
2197
|
i.releaseLock();
|
|
2198
2198
|
}
|
|
2199
|
-
}(
|
|
2200
|
-
} else
|
|
2201
|
-
return e.offset +=
|
|
2199
|
+
}(y.readable, o, l, (e) => x += e), o.size += y.size, g = !1;
|
|
2200
|
+
} else b.diskNumberStart = D, b.offset = O;
|
|
2201
|
+
return e.offset += b.size, b;
|
|
2202
2202
|
} catch (n) {
|
|
2203
2203
|
if (g || _) {
|
|
2204
2204
|
if (e.hasCorruptedEntries = !0, n) try {
|
|
2205
2205
|
n.corruptedEntry = !0;
|
|
2206
2206
|
} catch {}
|
|
2207
|
-
e.offset += o.size -
|
|
2207
|
+
e.offset += o.size - v, p && (e.offset += x);
|
|
2208
2208
|
}
|
|
2209
2209
|
throw a.delete(t), n;
|
|
2210
2210
|
} finally {
|
|
2211
|
-
if (p && e.bufferedWrites--, h && h(), m && m(), p &&
|
|
2212
|
-
await
|
|
2211
|
+
if (p && e.bufferedWrites--, h && h(), m && m(), p && y && y.dispose) try {
|
|
2212
|
+
await y.dispose();
|
|
2213
2213
|
} catch {}
|
|
2214
2214
|
}
|
|
2215
2215
|
function C() {
|
|
2216
|
-
|
|
2216
|
+
b.lock = new Promise((e) => h = e);
|
|
2217
2217
|
}
|
|
2218
2218
|
async function w() {
|
|
2219
2219
|
e.writerLocked = !0;
|
|
@@ -2223,7 +2223,7 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
2223
2223
|
}), await t;
|
|
2224
2224
|
}
|
|
2225
2225
|
async function T() {
|
|
2226
|
-
|
|
2226
|
+
q(u.localHeaderArray) > o.availableSize && (o.availableSize = 0, await ji(o, I));
|
|
2227
2227
|
}
|
|
2228
2228
|
}(e, t, n, {
|
|
2229
2229
|
headerInfo: u,
|
|
@@ -2237,14 +2237,14 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
2237
2237
|
name: t,
|
|
2238
2238
|
comment: o,
|
|
2239
2239
|
extraField: s
|
|
2240
|
-
}), new
|
|
2240
|
+
}), new tr(c);
|
|
2241
2241
|
}(r, e, t, n), i.add(o), await o;
|
|
2242
2242
|
} catch (t) {
|
|
2243
2243
|
throw s && r.filenames.delete(e), t;
|
|
2244
2244
|
} finally {
|
|
2245
2245
|
i.delete(o);
|
|
2246
|
-
let e =
|
|
2247
|
-
e ? e() :
|
|
2246
|
+
let e = Ti.shift();
|
|
2247
|
+
e ? e() : wi--;
|
|
2248
2248
|
}
|
|
2249
2249
|
}
|
|
2250
2250
|
remove(e) {
|
|
@@ -2255,44 +2255,44 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
2255
2255
|
}
|
|
2256
2256
|
return !1;
|
|
2257
2257
|
}
|
|
2258
|
-
async close(e =
|
|
2258
|
+
async close(e = I, t = {}) {
|
|
2259
2259
|
let { pendingAddFileCalls: n, writer: r } = this, { writable: i } = r;
|
|
2260
|
-
if (
|
|
2260
|
+
if (q(e) > 65535) throw Error(ti);
|
|
2261
2261
|
for (; n.size;) await Promise.allSettled(Array.from(n));
|
|
2262
2262
|
return await async function(e, t, n) {
|
|
2263
2263
|
let r = function(e) {
|
|
2264
2264
|
let t = 0;
|
|
2265
2265
|
for (let [, n] of e) {
|
|
2266
|
-
let { rawFilename: e, rawExtraFieldAES: r, rawComment: i, rawExtraFieldNTFS: a, rawExtraFieldUnix: o, rawExtraField: s, extendedTimestamp: c, extraFieldExtendedTimestampFlag: l, lastModDate: u, zip64UncompressedSize: d, zip64CompressedSize: f, uncompressedSize: p, compressedSize: m } = n,
|
|
2267
|
-
if (
|
|
2268
|
-
let e = 4 + (d ? 8 : 0) + (f ? 8 : 0) + (
|
|
2269
|
-
t.uint16(1), t.uint16(e - 4), d && t.uint64(p), f && t.uint64(m),
|
|
2270
|
-
} else
|
|
2271
|
-
n.rawExtraFieldZip64 =
|
|
2272
|
-
let x =
|
|
2273
|
-
if (c &&
|
|
2274
|
-
let e =
|
|
2275
|
-
e.uint16(
|
|
2276
|
-
} else
|
|
2277
|
-
n.rawExtraFieldExtendedTimestamp =
|
|
2278
|
-
let S =
|
|
2279
|
-
if (S > 65535) throw Error(
|
|
2280
|
-
t += 46 +
|
|
2266
|
+
let { rawFilename: e, rawExtraFieldAES: r, rawComment: i, rawExtraFieldNTFS: a, rawExtraFieldUnix: o, rawExtraField: s, extendedTimestamp: c, extraFieldExtendedTimestampFlag: l, lastModDate: u, zip64UncompressedSize: d, zip64CompressedSize: f, uncompressedSize: p, compressedSize: m } = n, h = n.offset >= y, g = n.diskNumberStart >= b, _, v;
|
|
2267
|
+
if (h || g || d || f) {
|
|
2268
|
+
let e = 4 + (d ? 8 : 0) + (f ? 8 : 0) + (h ? 8 : 0) + (g ? 4 : 0), t = ki(e);
|
|
2269
|
+
t.uint16(1), t.uint16(e - 4), d && t.uint64(p), f && t.uint64(m), h && t.uint64(n.offset), g && t.uint32(n.diskNumberStart), _ = t.array;
|
|
2270
|
+
} else _ = I;
|
|
2271
|
+
n.rawExtraFieldZip64 = _, n.zip64Offset = h, n.zip64DiskNumberStart = g;
|
|
2272
|
+
let x = Ni(u);
|
|
2273
|
+
if (c && Pi(x)) {
|
|
2274
|
+
let e = ki(9);
|
|
2275
|
+
e.uint16(k), e.uint16(5), e.uint8(l), e.uint32(x), v = e.array;
|
|
2276
|
+
} else v = I;
|
|
2277
|
+
n.rawExtraFieldExtendedTimestamp = v;
|
|
2278
|
+
let S = q(_, r, a, o, v, s);
|
|
2279
|
+
if (S > 65535) throw Error(si);
|
|
2280
|
+
t += 46 + q(e, i) + S;
|
|
2281
2281
|
}
|
|
2282
2282
|
return t;
|
|
2283
2283
|
}(e.files), { cdStartDiskNumber: i, cdStartDiskOffset: a } = await async function(e, t, n) {
|
|
2284
2284
|
let { files: r, writer: i } = e, a = new Uint8Array(t);
|
|
2285
|
-
await
|
|
2285
|
+
await _n(i);
|
|
2286
2286
|
let o = 0, s = 0, c = i.diskNumber, l = i.diskOffset;
|
|
2287
2287
|
for (let [e, t] of Array.from(r.values()).entries()) {
|
|
2288
|
-
let { offset: u, rawFilename: d, rawExtraFieldZip64: f, rawExtraFieldAES: p, rawExtraFieldExtendedTimestamp: m, rawExtraFieldNTFS:
|
|
2289
|
-
o + N - s > i.availableSize && (await
|
|
2290
|
-
let
|
|
2291
|
-
if (
|
|
2292
|
-
await n.onprogress(e + 1, r.size, new
|
|
2288
|
+
let { offset: u, rawFilename: d, rawExtraFieldZip64: f, rawExtraFieldAES: p, rawExtraFieldExtendedTimestamp: m, rawExtraFieldNTFS: h, rawExtraFieldUnix: g, rawExtraField: _, rawComment: v, versionMadeBy: x, headerArray: S, headerView: C, zip64UncompressedSize: T, zip64CompressedSize: E, zip64DiskNumberStart: D, zip64Offset: O, internalFileAttributes: k, externalFileAttributes: ee, diskNumberStart: te, uncompressedSize: A, compressedSize: j } = t, M = q(f, p, m, h, g, _), N = 46 + q(d, v) + M;
|
|
2289
|
+
o + N - s > i.availableSize && (await ji(i, a.slice(s, o)), s = o, i.availableSize = 0, await ji(i, I)), e == 0 && (c = i.diskNumber, l = i.diskOffset), T || K(C, 18, A), E || K(C, 14, j), (O || D) && t.version < 45 && Li(C, 0, 45);
|
|
2290
|
+
let P = ki(N);
|
|
2291
|
+
if (P.uint32(w), P.uint16(x), P.bytes(S.subarray(0, 24)), P.uint16(M), P.uint16(q(v)), P.uint16(D ? b : te), P.uint16(k), P.uint32(ee), P.uint32(O ? y : u), P.bytes(d), P.bytes(f), P.bytes(p), P.bytes(m), P.bytes(h), P.bytes(g), P.bytes(_), P.bytes(v), zi(a, P.array, o), o += N, n.onprogress) try {
|
|
2292
|
+
await n.onprogress(e + 1, r.size, new tr(t));
|
|
2293
2293
|
} catch {}
|
|
2294
2294
|
}
|
|
2295
|
-
return await
|
|
2295
|
+
return await ji(i, s ? a.slice(s) : a), {
|
|
2296
2296
|
cdStartDiskNumber: c,
|
|
2297
2297
|
cdStartDiskOffset: l
|
|
2298
2298
|
};
|
|
@@ -2300,45 +2300,45 @@ var Qr = "Zip file comment exceeds 64KB", $r = "File entry comment exceeds 64KB"
|
|
|
2300
2300
|
await async function(e, t, n, r) {
|
|
2301
2301
|
let { writer: i } = e, { cdStartDiskNumber: a, cdStartDiskOffset: o } = r, { directoryDataLength: s } = r, c = e.files.size, l = a, u = e.offset - o - (a ? e.initialOffset : 0), d = i.diskNumber;
|
|
2302
2302
|
i.availableSize < 22 && d++;
|
|
2303
|
-
let f =
|
|
2303
|
+
let f = G(e, n, Bn);
|
|
2304
2304
|
if (u >= 4294967295 || s >= 4294967295 || c >= 65535 || d >= 65535) {
|
|
2305
|
-
if (!1 === f) throw Error(
|
|
2305
|
+
if (!1 === f) throw Error(di);
|
|
2306
2306
|
f = !0;
|
|
2307
2307
|
}
|
|
2308
|
-
let p =
|
|
2309
|
-
if (p > 65535) throw Error(
|
|
2310
|
-
let m =
|
|
2311
|
-
|
|
2308
|
+
let p = q(t);
|
|
2309
|
+
if (p > 65535) throw Error(ti);
|
|
2310
|
+
let m = ki(f ? 98 : 22);
|
|
2311
|
+
q(m.array) + p > i.availableSize && (i.availableSize = 0, await ji(i, I)), d = i.diskNumber, f && (m.uint32(E), m.uint64(44), m.uint16(45), m.uint16(45), m.uint32(d), m.uint32(l), m.uint64(c), m.uint64(c), m.uint64(s), m.uint64(u), m.uint32(D), m.uint32(d), m.uint64(BigInt(e.offset) + BigInt(s) - BigInt(i.diskOffset) - BigInt(i.diskNumber ? e.initialOffset : 0)), m.uint32(d + 1), G(e, n, "supportZip64SplitFile", !0) && (d = b, l = b), c = b, u = y, s = y), m.uint32(T), m.uint16(d), m.uint16(l), m.uint16(c), m.uint16(c), m.uint32(s), m.uint32(u), m.uint16(p), await ji(i, m.array), p && await ji(i, t);
|
|
2312
2312
|
}(e, t, n, {
|
|
2313
2313
|
cdStartDiskNumber: i,
|
|
2314
2314
|
cdStartDiskOffset: a,
|
|
2315
2315
|
directoryDataLength: r
|
|
2316
2316
|
});
|
|
2317
|
-
}(this, e, t),
|
|
2317
|
+
}(this, e, t), G(this, t, "preventClose") || await i.getWriter().close(), r.getData ? r.getData() : i;
|
|
2318
2318
|
}
|
|
2319
2319
|
};
|
|
2320
|
-
function
|
|
2321
|
-
let { headerInfo: n } = e, { localHeaderArray: r, extraFieldLength: i } = n, a = 64 - (t +
|
|
2320
|
+
function Di(e, t) {
|
|
2321
|
+
let { headerInfo: n } = e, { localHeaderArray: r, extraFieldLength: i } = n, a = 64 - (t + q(r)) % 64;
|
|
2322
2322
|
a < 4 && (a += 64);
|
|
2323
|
-
let o = new Uint8Array(a), s =
|
|
2324
|
-
|
|
2323
|
+
let o = new Uint8Array(a), s = Bi(o);
|
|
2324
|
+
Li(s, 0, 6534), Li(s, 2, a - 4);
|
|
2325
2325
|
let c = r;
|
|
2326
|
-
n.localHeaderArray = r = new Uint8Array(
|
|
2327
|
-
let l =
|
|
2328
|
-
|
|
2326
|
+
n.localHeaderArray = r = new Uint8Array(q(c) + a), zi(r, c), zi(r, o, q(c));
|
|
2327
|
+
let l = Bi(r);
|
|
2328
|
+
Li(l, 28, i + a), n.localHeaderView = l, e.metadataSize += a;
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2331
|
-
if (e === void 0) return
|
|
2330
|
+
function Oi(e) {
|
|
2331
|
+
if (e === void 0) return I;
|
|
2332
2332
|
{
|
|
2333
2333
|
let t = /* @__PURE__ */ new Uint8Array(4);
|
|
2334
|
-
|
|
2334
|
+
Bi(t).setUint32(0, e, !0);
|
|
2335
2335
|
let n = 4;
|
|
2336
2336
|
for (; n > 1 && t[n - 1] === 0;) n--;
|
|
2337
2337
|
return t.subarray(0, n);
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2341
|
-
let t = new Uint8Array(e), n =
|
|
2340
|
+
function ki(e) {
|
|
2341
|
+
let t = new Uint8Array(e), n = Bi(t), r = 0;
|
|
2342
2342
|
return {
|
|
2343
2343
|
array: t,
|
|
2344
2344
|
uint8: (e) => {
|
|
@@ -2347,89 +2347,89 @@ function Ei(e) {
|
|
|
2347
2347
|
})(n, r, e), r += 1;
|
|
2348
2348
|
},
|
|
2349
2349
|
uint16: (e) => {
|
|
2350
|
-
|
|
2350
|
+
Li(n, r, e), r += 2;
|
|
2351
2351
|
},
|
|
2352
2352
|
uint32: (e) => {
|
|
2353
|
-
|
|
2353
|
+
K(n, r, e), r += 4;
|
|
2354
2354
|
},
|
|
2355
2355
|
uint64: (e) => {
|
|
2356
|
-
|
|
2356
|
+
Ri(n, r, BigInt(e)), r += 8;
|
|
2357
2357
|
},
|
|
2358
2358
|
bytes: (e) => {
|
|
2359
|
-
|
|
2359
|
+
zi(t, e, r), r += q(e);
|
|
2360
2360
|
},
|
|
2361
2361
|
skip: (e) => r += e
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
2364
|
-
function
|
|
2364
|
+
function Ai(e, t) {
|
|
2365
2365
|
return e.offset - t.diskOffset - (t.diskNumber ? e.initialOffset : 0);
|
|
2366
2366
|
}
|
|
2367
|
-
async function
|
|
2367
|
+
async function ji(e, t) {
|
|
2368
2368
|
let { writable: n } = e, r = n.getWriter();
|
|
2369
2369
|
try {
|
|
2370
|
-
await r.ready, e.size +=
|
|
2370
|
+
await r.ready, e.size += q(t), await r.write(t);
|
|
2371
2371
|
} finally {
|
|
2372
2372
|
r.releaseLock();
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
|
-
function
|
|
2375
|
+
function Mi(e) {
|
|
2376
2376
|
if (e) return (BigInt(e.getTime()) + BigInt(0xa9730b66800)) * BigInt(1e4);
|
|
2377
2377
|
}
|
|
2378
|
-
function
|
|
2378
|
+
function Ni(e) {
|
|
2379
2379
|
return Math.floor(e.getTime() / 1e3);
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2382
|
-
return e >=
|
|
2381
|
+
function Pi(e) {
|
|
2382
|
+
return e >= li && e <= ui;
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2385
|
-
return Math.min(
|
|
2384
|
+
function Fi(e) {
|
|
2385
|
+
return Math.min(ui, Math.max(li, e));
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function G(e, t, n, r) {
|
|
2388
2388
|
let i = t[n] === void 0 ? e.options[n] : t[n];
|
|
2389
2389
|
return i === void 0 ? r : i;
|
|
2390
2390
|
}
|
|
2391
|
-
function
|
|
2391
|
+
function Ii(e) {
|
|
2392
2392
|
return e + 5 * (Math.floor(e / 16383) + 1);
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2394
|
+
function Li(e, t, n) {
|
|
2395
2395
|
e.setUint16(t, n, !0);
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function K(e, t, n) {
|
|
2398
2398
|
e.setUint32(t, n, !0);
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function Ri(e, t, n) {
|
|
2401
2401
|
e.setBigUint64(t, n, !0);
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2403
|
+
function zi(e, t, n) {
|
|
2404
2404
|
e.set(t, n);
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2406
|
+
function Bi(e) {
|
|
2407
2407
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2409
|
+
function q(...e) {
|
|
2410
2410
|
let t = 0;
|
|
2411
2411
|
return e.forEach((e) => e && (t += e.length)), t;
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2414
|
-
let d =
|
|
2413
|
+
function Vi({ version: e, bitFlag: t, compressionMethod: n, uncompressedSize: r, compressedSize: i, lastModDate: a, rawLastModDate: o, rawFilename: s, zip64CompressedSize: c, zip64UncompressedSize: l, extraFieldLength: u }) {
|
|
2414
|
+
let d = ki(26), f = d.array, p = Bi(f);
|
|
2415
2415
|
if (d.uint16(e), d.uint16(t), d.uint16(n), o === void 0) {
|
|
2416
|
-
let e = /* @__PURE__ */ new Uint32Array(1), t =
|
|
2417
|
-
|
|
2416
|
+
let e = /* @__PURE__ */ new Uint32Array(1), t = Bi(e);
|
|
2417
|
+
Li(t, 0, (a.getHours() << 6 | a.getMinutes()) << 5 | a.getSeconds() / 2), Li(t, 2, (a.getFullYear() - 1980 << 4 | a.getMonth() + 1) << 5 | a.getDate()), o = e[0];
|
|
2418
2418
|
}
|
|
2419
|
-
return d.uint32(o), d.skip(4), c || i !== void 0 ? d.uint32(c ?
|
|
2419
|
+
return d.uint32(o), d.skip(4), c || i !== void 0 ? d.uint32(c ? y : i) : d.skip(4), l || r !== void 0 ? d.uint32(l ? y : r) : d.skip(4), d.uint16(q(s)), d.uint16(u), {
|
|
2420
2420
|
headerArray: f,
|
|
2421
2421
|
headerView: p,
|
|
2422
2422
|
rawLastModDate: o
|
|
2423
2423
|
};
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function Hi(e, t, n, r, i) {
|
|
2426
2426
|
let a = 0;
|
|
2427
|
-
return t && (a |=
|
|
2427
|
+
return t && (a |= A), n && (a |= 8), i != 8 && i != 9 || (e >= 0 && e <= 3 && (a |= 6), e > 3 && e <= 5 && (a |= 4), e == 9 && (a |= 2)), r && (a |= 1), a;
|
|
2428
2428
|
}
|
|
2429
2429
|
try {
|
|
2430
|
-
|
|
2430
|
+
le({ baseURI: import.meta.url });
|
|
2431
2431
|
} catch {}
|
|
2432
|
-
var
|
|
2432
|
+
var Ui = [
|
|
2433
2433
|
3,
|
|
2434
2434
|
4,
|
|
2435
2435
|
5,
|
|
@@ -2459,7 +2459,7 @@ var Bi = [
|
|
|
2459
2459
|
195,
|
|
2460
2460
|
227,
|
|
2461
2461
|
258
|
|
2462
|
-
],
|
|
2462
|
+
], Wi = [
|
|
2463
2463
|
0,
|
|
2464
2464
|
0,
|
|
2465
2465
|
0,
|
|
@@ -2489,7 +2489,7 @@ var Bi = [
|
|
|
2489
2489
|
5,
|
|
2490
2490
|
5,
|
|
2491
2491
|
0
|
|
2492
|
-
],
|
|
2492
|
+
], Gi = [
|
|
2493
2493
|
1,
|
|
2494
2494
|
2,
|
|
2495
2495
|
3,
|
|
@@ -2520,7 +2520,7 @@ var Bi = [
|
|
|
2520
2520
|
12289,
|
|
2521
2521
|
16385,
|
|
2522
2522
|
24577
|
|
2523
|
-
],
|
|
2523
|
+
], Ki = [
|
|
2524
2524
|
0,
|
|
2525
2525
|
0,
|
|
2526
2526
|
0,
|
|
@@ -2551,7 +2551,7 @@ var Bi = [
|
|
|
2551
2551
|
12,
|
|
2552
2552
|
13,
|
|
2553
2553
|
13
|
|
2554
|
-
],
|
|
2554
|
+
], qi = [
|
|
2555
2555
|
16,
|
|
2556
2556
|
17,
|
|
2557
2557
|
18,
|
|
@@ -2571,10 +2571,10 @@ var Bi = [
|
|
|
2571
2571
|
14,
|
|
2572
2572
|
1,
|
|
2573
2573
|
15
|
|
2574
|
-
],
|
|
2575
|
-
|
|
2576
|
-
var
|
|
2577
|
-
function
|
|
2574
|
+
], Ji = /* @__PURE__ */ new Uint8Array(288);
|
|
2575
|
+
Ji.fill(8, 0, 144), Ji.fill(9, 144, 256), Ji.fill(7, 256, 280), Ji.fill(8, 280, 288);
|
|
2576
|
+
var Yi = (/* @__PURE__ */ new Uint8Array(30)).fill(5);
|
|
2577
|
+
function Xi(e) {
|
|
2578
2578
|
let t = /* @__PURE__ */ new Uint16Array(16);
|
|
2579
2579
|
for (let n of e) t[n]++;
|
|
2580
2580
|
t[0] = 0;
|
|
@@ -2587,25 +2587,25 @@ function qi(e) {
|
|
|
2587
2587
|
symbols: r
|
|
2588
2588
|
};
|
|
2589
2589
|
}
|
|
2590
|
-
var
|
|
2591
|
-
function
|
|
2590
|
+
var J, Zi, Qi, $i, ea = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2591
|
+
function ta(e, t, n = {}) {
|
|
2592
2592
|
let r = typeof n.level == "number" ? n.level : -1, i = typeof n.outBuffer == "number" ? n.outBuffer : 65536, a = typeof n.inBufferSize == "number" ? n.inBufferSize : 65536;
|
|
2593
2593
|
return new TransformStream({
|
|
2594
2594
|
start() {
|
|
2595
2595
|
try {
|
|
2596
2596
|
let n;
|
|
2597
|
-
if (this.out =
|
|
2598
|
-
if (this._scratch = new Uint8Array(i), e ? (this._process =
|
|
2597
|
+
if (this.out = Zi(i), this.in = Zi(a), this.inBufferSize = a, !this.out || !this.in) throw Error("allocation failed");
|
|
2598
|
+
if (this._scratch = new Uint8Array(i), e ? (this._process = J.deflate_process, this._last_consumed = J.deflate_last_consumed, this._end = J.deflate_end, this.streamHandle = J.deflate_new(), n = t === "gzip" ? J.deflate_init_gzip(this.streamHandle, r) : t === "deflate-raw" ? J.deflate_init_raw(this.streamHandle, r) : J.deflate_init(this.streamHandle, r)) : t === "deflate64-raw" ? (this._process = J.inflate9_process, this._last_consumed = J.inflate9_last_consumed, this._end = J.inflate9_end, this.streamHandle = J.inflate9_new(), n = J.inflate9_init_raw(this.streamHandle)) : (this._process = J.inflate_process, this._last_consumed = J.inflate_last_consumed, this._end = J.inflate_end, this.streamHandle = J.inflate_new(), n = t === "deflate-raw" ? J.inflate_init_raw(this.streamHandle) : t === "gzip" ? J.inflate_init_gzip(this.streamHandle) : J.inflate_init(this.streamHandle)), n !== 0) throw Error("init failed:" + n);
|
|
2599
2599
|
} catch (e) {
|
|
2600
2600
|
throw o(this), e;
|
|
2601
2601
|
}
|
|
2602
2602
|
},
|
|
2603
2603
|
transform(t, n) {
|
|
2604
2604
|
try {
|
|
2605
|
-
let r = t, a = new Uint8Array(
|
|
2605
|
+
let r = t, a = new Uint8Array($i.buffer), o = this._process, s = this._last_consumed, c = this.out, l = this._scratch, u = 0;
|
|
2606
2606
|
for (; u < r.length;) {
|
|
2607
2607
|
let t = Math.min(r.length - u, 32768);
|
|
2608
|
-
if ((!this.in || this.inBufferSize < t) && (this.in &&
|
|
2608
|
+
if ((!this.in || this.inBufferSize < t) && (this.in && Qi && (Qi(this.in), this.in = 0), this.in = Zi(t), this.inBufferSize = t, !this.in)) throw Error("allocation failed");
|
|
2609
2609
|
a.set(r.subarray(u, u + t), this.in);
|
|
2610
2610
|
let d = o(this.streamHandle, this.in, t, c, i, 0), f = 16777215 & d;
|
|
2611
2611
|
if (f && (l.set(a.subarray(c, c + f), 0), n.enqueue(l.slice(0, f))), !e) {
|
|
@@ -2622,7 +2622,7 @@ function Zi(e, t, n = {}) {
|
|
|
2622
2622
|
},
|
|
2623
2623
|
flush(t) {
|
|
2624
2624
|
try {
|
|
2625
|
-
let n = new Uint8Array(
|
|
2625
|
+
let n = new Uint8Array($i.buffer), r = this._process, a = this.out, o = this._scratch;
|
|
2626
2626
|
for (;;) {
|
|
2627
2627
|
let s = r(this.streamHandle, 0, 0, a, i, 4), c = 16777215 & s, l = s >> 24 & 255;
|
|
2628
2628
|
if (!e) {
|
|
@@ -2644,22 +2644,22 @@ function Zi(e, t, n = {}) {
|
|
|
2644
2644
|
});
|
|
2645
2645
|
function o(e) {
|
|
2646
2646
|
let t = 0;
|
|
2647
|
-
return e.streamHandle && e._end && (t = e._end(e.streamHandle)), e.streamHandle = 0, e.in &&
|
|
2647
|
+
return e.streamHandle && e._end && (t = e._end(e.streamHandle)), e.streamHandle = 0, e.in && Qi && Qi(e.in), e.in = 0, e.out && Qi && Qi(e.out), e.out = 0, t;
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
|
-
var
|
|
2650
|
+
var na = class {
|
|
2651
2651
|
constructor(e = "deflate", t) {
|
|
2652
|
-
return
|
|
2652
|
+
return ta(!0, e, t);
|
|
2653
2653
|
}
|
|
2654
|
-
},
|
|
2654
|
+
}, ra = class {
|
|
2655
2655
|
constructor(e = "deflate", t) {
|
|
2656
|
-
return
|
|
2656
|
+
return ta(!1, e, t);
|
|
2657
2657
|
}
|
|
2658
2658
|
};
|
|
2659
|
-
|
|
2660
|
-
var
|
|
2661
|
-
async function
|
|
2662
|
-
if (!
|
|
2659
|
+
na.requiresModule = !0, ra.requiresModule = !0;
|
|
2660
|
+
var ia, aa = !1;
|
|
2661
|
+
async function oa(e, { baseURI: t }) {
|
|
2662
|
+
if (!aa) {
|
|
2663
2663
|
let n, r;
|
|
2664
2664
|
try {
|
|
2665
2665
|
try {
|
|
@@ -2675,8 +2675,8 @@ async function na(e, { baseURI: t }) {
|
|
|
2675
2675
|
}(e);
|
|
2676
2676
|
}
|
|
2677
2677
|
(function(e) {
|
|
2678
|
-
if (
|
|
2679
|
-
})((await WebAssembly.instantiate(n)).instance.exports),
|
|
2678
|
+
if (J = e, {malloc: Zi, free: Qi, memory: $i} = J, typeof Zi != "function" || typeof Qi != "function" || !$i) throw J = Zi = Qi = $i = null, /* @__PURE__ */ Error("Invalid WASM module");
|
|
2679
|
+
})((await WebAssembly.instantiate(n)).instance.exports), aa = !0;
|
|
2680
2680
|
}
|
|
2681
2681
|
}
|
|
2682
2682
|
(function(e) {
|
|
@@ -2685,15 +2685,15 @@ async function na(e, { baseURI: t }) {
|
|
|
2685
2685
|
let t = "", n = e.length, r = 0;
|
|
2686
2686
|
for (; n > r + 2; r += 3) {
|
|
2687
2687
|
let n = e[r] << 16 | e[r + 1] << 8 | e[r + 2];
|
|
2688
|
-
t +=
|
|
2688
|
+
t += ea[n >> 18 & 63] + ea[n >> 12 & 63] + ea[n >> 6 & 63] + ea[63 & n];
|
|
2689
2689
|
}
|
|
2690
2690
|
let i = n - r;
|
|
2691
2691
|
if (i === 1) {
|
|
2692
2692
|
let n = e[r] << 16;
|
|
2693
|
-
t +=
|
|
2693
|
+
t += ea[n >> 18 & 63] + ea[n >> 12 & 63] + "==";
|
|
2694
2694
|
} else if (i === 2) {
|
|
2695
2695
|
let n = e[r] << 16 | e[r + 1] << 8;
|
|
2696
|
-
t +=
|
|
2696
|
+
t += ea[n >> 18 & 63] + ea[n >> 12 & 63] + ea[n >> 6 & 63] + "=";
|
|
2697
2697
|
}
|
|
2698
2698
|
return t;
|
|
2699
2699
|
})(((e) => {
|
|
@@ -2702,7 +2702,7 @@ async function na(e, { baseURI: t }) {
|
|
|
2702
2702
|
o = c(1);
|
|
2703
2703
|
let e = c(2);
|
|
2704
2704
|
if (e == 0) l();
|
|
2705
|
-
else if (e == 1) u(
|
|
2705
|
+
else if (e == 1) u(Xi(Ji), Xi(Yi));
|
|
2706
2706
|
else {
|
|
2707
2707
|
if (e != 2) throw Error("invalid deflate block type");
|
|
2708
2708
|
u(...d());
|
|
@@ -2729,7 +2729,7 @@ async function na(e, { baseURI: t }) {
|
|
|
2729
2729
|
for (; n != 256;) {
|
|
2730
2730
|
if (256 > n) p(a + 1), i[a++] = n;
|
|
2731
2731
|
else {
|
|
2732
|
-
let e = n - 257, r =
|
|
2732
|
+
let e = n - 257, r = Ui[e] + c(Wi[e]), o = f(t), s = Gi[o] + c(Ki[o]);
|
|
2733
2733
|
p(a + r);
|
|
2734
2734
|
let l = a - s;
|
|
2735
2735
|
for (let e = 0; r > e; e++) i[a++] = i[l + e];
|
|
@@ -2739,8 +2739,8 @@ async function na(e, { baseURI: t }) {
|
|
|
2739
2739
|
}
|
|
2740
2740
|
function d() {
|
|
2741
2741
|
let e = c(5) + 257, t = c(5) + 1, n = c(4) + 4, r = /* @__PURE__ */ new Uint8Array(19);
|
|
2742
|
-
for (let e = 0; n > e; e++) r[
|
|
2743
|
-
let i =
|
|
2742
|
+
for (let e = 0; n > e; e++) r[qi[e]] = c(3);
|
|
2743
|
+
let i = Xi(r), a = new Uint8Array(e + t), o = 0;
|
|
2744
2744
|
for (; o < a.length;) {
|
|
2745
2745
|
let e = f(i);
|
|
2746
2746
|
if (16 > e) a[o++] = e;
|
|
@@ -2749,7 +2749,7 @@ async function na(e, { baseURI: t }) {
|
|
|
2749
2749
|
for (; t--;) a[o++] = e;
|
|
2750
2750
|
} else o += e == 17 ? c(3) + 3 : c(7) + 11;
|
|
2751
2751
|
}
|
|
2752
|
-
return [
|
|
2752
|
+
return [Xi(a.subarray(0, e)), Xi(a.subarray(e))];
|
|
2753
2753
|
}
|
|
2754
2754
|
function f(e) {
|
|
2755
2755
|
let { t, symbols: n } = e, r = 0, i = 0, a = 0;
|
|
@@ -2772,22 +2772,22 @@ async function na(e, { baseURI: t }) {
|
|
|
2772
2772
|
})(((e) => {
|
|
2773
2773
|
let t = (e = (e + "").replace(/[^A-Za-z0-9+/=]/g, "")).length, n = [];
|
|
2774
2774
|
for (let r = 0; t > r; r += 4) {
|
|
2775
|
-
let t =
|
|
2775
|
+
let t = ea.indexOf(e[r]) << 18 | ea.indexOf(e[r + 1]) << 12 | (63 & ea.indexOf(e[r + 2])) << 6 | 63 & ea.indexOf(e[r + 3]);
|
|
2776
2776
|
n.push(t >> 16 & 255), e[r + 2] !== "=" && n.push(t >> 8 & 255), e[r + 3] !== "=" && n.push(255 & t);
|
|
2777
2777
|
}
|
|
2778
2778
|
return new Uint8Array(n);
|
|
2779
2779
|
})("zb19kF3XcSd2vu7He/fdmTvAABzigUTfK0gaSxiBkqghRarWc2jODIcgBCXRH/6DVSQEDkXcBwJ8M08Q5ZX5hp+mbUnLcqlcjEsbY72qWOVIFVWFu6GztEXb9Fq70Wa5iVKljVUp1WYrqz82tXJKteVKKUT46z73fQwGIEhq7XAKfOd+ndOnT5/uPn26+6jT249qpZS+t/OgGQ718EGN/5nhUD1oh+GGFNWDSj2o9PDBeMj/6eGDyXBUdEN+RT+hh/YTd8baGe2SRCudqpbGf0qpVGltrLa2FWUqUq7tXNtEURRp5axyShkXWxfpx3S7HcVaP2WeMnGqh9pf+u0oS37DHY4f3Xz0wtYXjOqcPf/wudODzY8/cH7z8yqZG12ePX928MDW6c+rNJ+6p9rF6PqxrQtnNre3VTauZfP8Q2rm4Ojy3OntwQNnLpzf/tyjmw+p2Sw8kMaar6Teopi85Kbn5qZuffZXzj6m9s0290atj2rlxg80V7vbfmhzsu3mitveX0xectvzc1O3uO0Ds829pu2Do1rR9oJ7eGtzU5kDzc1dIMSPnj537sIZpTOu9Ozpc2d/ZVOpGx944Oz5h85ubZ4ZPPDw586fGZy9cP6BwenPnNvU6sYHNh/dPrN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nzQTZ26fSpNW3I4y17G5mdGzyv/1/uzRhNt2KuV/iserUGkox6zVp+EdUGOLYSn4flPGKEmZ3iwrjTJKRisnZaONVkVL+R/PZy06oQWr/x8="))), t) });
|
|
2780
|
-
})(
|
|
2781
|
-
|
|
2780
|
+
})(le), function({ initModule: e }) {
|
|
2781
|
+
It = e;
|
|
2782
2782
|
}({ initModule: (e) => {
|
|
2783
|
-
if (!
|
|
2783
|
+
if (!ia) {
|
|
2784
2784
|
let { wasmURI: t } = e;
|
|
2785
|
-
typeof t == "function" && (t = t()),
|
|
2785
|
+
typeof t == "function" && (t = t()), ia = oa(t, e);
|
|
2786
2786
|
}
|
|
2787
|
-
return
|
|
2788
|
-
} }),
|
|
2789
|
-
CompressionStreamZlib:
|
|
2790
|
-
DecompressionStreamZlib:
|
|
2787
|
+
return ia;
|
|
2788
|
+
} }), le({
|
|
2789
|
+
CompressionStreamZlib: na,
|
|
2790
|
+
DecompressionStreamZlib: ra
|
|
2791
2791
|
}), function(e) {
|
|
2792
2792
|
e({ workerURI: (e) => {
|
|
2793
2793
|
if (e) {
|
|
@@ -2796,8 +2796,51 @@ async function na(e, { baseURI: t }) {
|
|
|
2796
2796
|
}
|
|
2797
2797
|
return "data:text/javascript,(t%3D%3E%7B%22function%22%3D%3Dtypeof%20define%26%26define.amd%3Fdefine(t)%3At()%7D)(function()%7B%22use%20strict%22%3Bconst%7BArray%3At%2CObject%3Ae%2CNumber%3An%2CMath%3As%2CError%3Ar%2CUint8Array%3Ao%2CUint16Array%3Ai%2CUint32Array%3Aa%2CInt32Array%3Ac%2CMap%3Af%2CDataView%3Al%2CPromise%3Aw%2CTextEncoder%3Au%2Ccrypto%3Ah%2CpostMessage%3Ap%2CTransformStream%3Ad%2CReadableStream%3Ay%2CWritableStream%3Am%2CCompressionStream%3Ag%2CDecompressionStream%3AS%7D%3Dself%2Cb%3Dvoid%200%2Ck%3D%22undefined%22%2Cv%3D%22function%22%2Cz%3Dnew%20o%2CC%3D%5B%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%5D%3Bfor(let%20t%3D0%3B256%3Et%3Bt%2B%2B)%7Blet%20e%3Dt%3Bfor(let%20t%3D0%3B8%3Et%3Bt%2B%2B)e%3D1%26e%3Fe%3E%3E%3E1%5E3988292384%3Ae%3E%3E%3E1%3BC%5B0%5D%5Bt%5D%3De%7Dfor(let%20t%3D0%3B256%3Et%3Bt%2B%2B)for(let%20e%3D1%3B8%3Ee%3Be%2B%2B)%7Bconst%20n%3DC%5Be-1%5D%5Bt%5D%3BC%5Be%5D%5Bt%5D%3Dn%3E%3E%3E8%5EC%5B0%5D%5B255%26n%5D%7Dconst%5BI%2CA%2Cx%2CP%2CR%2CU%2CW%2CD%5D%3DC%3Bclass%20M%7Bconstructor(t)%7Bthis.t%3Dt%7C%7C-1%7Dappend(t)%7Blet%20e%3D0%7Cthis.t%3Bconst%20n%3D0%7Ct.length%3Blet%20s%3D0%3Bif(n%3E%3D8%26%26t.buffer)%7Bconst%20r%3Dnew%20l(t.buffer%2Ct.byteOffset%2Cn)%2Co%3Dn-8%3Bfor(%3Bo%3E%3Ds%3Bs%2B%3D8)%7Bconst%20t%3De%5Er.getInt32(s%2C!0)%2Cn%3Dr.getInt32(s%2B4%2C!0)%3Be%3DD%5B255%26t%5D%5EW%5Bt%3E%3E%3E8%26255%5D%5EU%5Bt%3E%3E%3E16%26255%5D%5ER%5Bt%3E%3E%3E24%26255%5D%5EP%5B255%26n%5D%5Ex%5Bn%3E%3E%3E8%26255%5D%5EA%5Bn%3E%3E%3E16%26255%5D%5EI%5Bn%3E%3E%3E24%26255%5D%7D%7Dfor(%3Bn%3Es%3Bs%2B%2B)e%3De%3E%3E%3E8%5EI%5B255%26(e%5Et%5Bs%5D)%5D%3Bthis.t%3De%7Dget()%7Breturn~this.t%7D%7Dclass%20_%20extends%20d%7Bconstructor()%7Blet%20t%3Bconst%20e%3Dnew%20M%3Bsuper(%7Btransform(t%2Cn)%7Be.append(t)%2Cn.enqueue(t)%7D%2Cflush()%7Bconst%20n%3Dnew%20o(4)%3Bnew%20l(n.buffer).setUint32(0%2Ce.get())%2Ct.value%3Dn%7D%7D)%2Ct%3Dthis%7D%7Dconst%20B%3D%7Bconcat(t%2Ce)%7Bif(0%3D%3D%3Dt.length%7C%7C0%3D%3D%3De.length)return%20t.concat(e)%3Bconst%20n%3Dt%5Bt.length-1%5D%2Cs%3DB.o(n)%3Breturn%2032%3D%3D%3Ds%3Ft.concat(e)%3AB.i(e%2Cs%2C0%7Cn%2Ct.slice(0%2Ct.length-1))%7D%2Cl(t)%7Bconst%20e%3Dt.length%3Bif(0%3D%3D%3De)return%200%3Bconst%20n%3Dt%5Be-1%5D%3Breturn%2032*(e-1)%2BB.o(n)%7D%2Cu(t%2Ce)%7Bif(32*t.length%3Ce)return%20t%3Bconst%20n%3D(t%3Dt.slice(0%2Cs.ceil(e%2F32))).length%3Breturn%20e%26%3D31%2Cn%3E0%26%26e%26%26(t%5Bn-1%5D%3DB.h(e%2Ct%5Bn-1%5D%262147483648%3E%3Ee-1%2C1))%2Ct%7D%2Ch%3A(t%2Ce%2Cn)%3D%3E32%3D%3D%3Dt%3Fe%3A(n%3F0%7Ce%3Ae%3C%3C32-t)%2B1099511627776*t%2Co%3At%3D%3Es.round(t%2F1099511627776)%7C%7C32%2Ci(t%2Ce%2Cn%2Cs)%7Bfor(void%200%3D%3D%3Ds%26%26(s%3D%5B%5D)%3Be%3E%3D32%3Be-%3D32)s.push(n)%2Cn%3D0%3Bif(0%3D%3D%3De)return%20s.concat(t)%3Bfor(let%20r%3D0%3Br%3Ct.length%3Br%2B%2B)s.push(n%7Ct%5Br%5D%3E%3E%3Ee)%2Cn%3Dt%5Br%5D%3C%3C32-e%3Bconst%20r%3Dt.length%3Ft%5Bt.length-1%5D%3A0%2Co%3DB.o(r)%3Breturn%20s.push(B.h(e%2Bo%2631%2Ce%2Bo%3E32%3Fn%3As.pop()%2C1))%2Cs%7D%7D%2CT%3D%7Bbytes%3A%7Bp(t)%7Bconst%20e%3DB.l(t)%2F8%2Cn%3Dnew%20o(e)%3Blet%20s%3Bfor(let%20r%3D0%3Be%3Er%3Br%2B%2B)3%26r%7C%7C(s%3Dt%5Br%2F4%5D)%2Cn%5Br%5D%3Ds%3E%3E%3E24%2Cs%3C%3C%3D8%3Breturn%20n%7D%2Cm(t)%7Bconst%20e%3D%5B%5D%3Blet%20n%2Cs%3D0%3Bfor(n%3D0%3Bn%3Ct.length%3Bn%2B%2B)s%3Ds%3C%3C8%7Ct%5Bn%5D%2C3%26~n%7C%7C(e.push(s)%2Cs%3D0)%3Breturn%203%26n%26%26e.push(B.h(8*(3%26n)%2Cs))%2Ce%7D%7D%7D%2CV%3Dclass%7Bconstructor(t)%7Bconst%20e%3Dthis%3Be.blockSize%3D512%2Ce.S%3D%5B1732584193%2C4023233417%2C2562383102%2C271733878%2C3285377520%5D%2Ce.k%3D%5B1518500249%2C1859775393%2C2400959708%2C3395469782%5D%2Ct%3F(e.v%3Dt.v.slice(0)%2Ce.C%3Dt.C.slice(0)%2Ce.I%3Dt.I)%3Ae.reset()%7Dreset()%7Bconst%20t%3Dthis%3Breturn%20t.v%3Dt.S.slice(0)%2Ct.C%3D%5B%5D%2Ct.I%3D0%2Ct%7Dupdate(t)%7Bconst%20e%3Dthis%3B%22string%22%3D%3Dtypeof%20t%26%26(t%3DT.A.m(t))%3Bconst%20n%3De.C%3DB.concat(e.C%2Ct)%2Cs%3De.I%2Co%3De.I%3Ds%2BB.l(t)%3Bif(o%3E9007199254740991)throw%20new%20r(%22Cannot%20hash%20more%20than%202%5E53%20-%201%20bits%22)%3Bconst%20i%3Dnew%20a(n)%3Blet%20c%3D0%3Bfor(let%20t%3De.blockSize%2Bs-(e.blockSize%2Bs%26e.blockSize-1)%3Bo%3E%3Dt%3Bt%2B%3De.blockSize)e.P(i.subarray(16*c%2C16*(c%2B1)))%2Cc%2B%3D1%3Breturn%20n.splice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4%5D%3Dr%5B4%5D%2Bl%7C0%7D%7D%2CK%3D%7BimportKey%3At%3D%3Enew%20K.D(T.bytes.m(t))%2CM(t%2Ce%2Cn%2Cs)%7Bif(n%3Dn%7C%7C1e4%2C0%3Es%7C%7C0%3En)throw%20new%20r(%22invalid%20params%20to%20pbkdf2%22)%3Bconst%20o%3D1%2B(s%3E%3E5)%3C%3C2%3Blet%20i%2Ca%2Cc%2Cf%2Cw%3Bconst%20u%3Dnew%20ArrayBuffer(o)%2Ch%3Dnew%20l(u)%3Blet%20p%3D0%3Bconst%20d%3DB%3Bfor(e%3DT.bytes.m(e)%2Cw%3D1%3B(o%7C%7C1)%3Ep%3Bw%2B%2B)%7Bfor(i%3Da%3Dt.encrypt(d.concat(e%2C%5Bw%5D))%2Cc%3D1%3Bn%3Ec%3Bc%2B%2B)for(a%3Dt.encrypt(a)%2Cf%3D0%3Bf%3Ca.length%3Bf%2B%2B)i%5Bf%5D%5E%3Da%5Bf%5D%3Bfor(c%3D0%3B(o%7C%7C1)%3Ep%26%26c%3Ci.length%3Bc%2B%2B)h.setInt32(p%2Ci%5Bc%5D)%2Cp%2B%3D4%7Dreturn%20u.slice(0%2Cs%2F8)%7D%2CD%3Aclass%7Bconstructor(t)%7Bconst%20e%3Dthis%2Cn%3De._%3DV%2Cs%3D%5B%5B%5D%2C%5B%5D%5D%3Be.B%3D%5Bnew%20n%2Cnew%20n%5D%3Bconst%20r%3De.B%5B0%5D.blockSize%2F32%3Bt.length%3Er%26%26(t%3D(new%20n).update(t).R())%3Bfor(let%20e%3D0%3Br%3Ee%3Be%2B%2B)s%5B0%5D%5Be%5D%3D909522486%5Et%5Be%5D%2Cs%5B1%5D%5Be%5D%3D1549556828%5Et%5Be%5D%3Be.B%5B0%5D.update(s%5B0%5D)%2Ce.B%5B1%5D.update(s%5B1%5D)%2Ce.T%3Dnew%20n(e.B%5B0%5D)%7Dreset()%7Bconst%20t%3Dthis%3Bt.T%3Dnew%20t._(t.B%5B0%5D)%2Ct.V%3D!1%7Dupdate(t)%7Bthis.V%3D!0%2Cthis.T.update(t)%7Ddigest()%7Bconst%20t%3Dthis%2Ce%3Dt.T.R()%2Cn%3Dnew%20t._(t.B%5B1%5D).update(e).R()%3Breturn%20t.reset()%2Cn%7Dencrypt(t)%7Bif(this.V)throw%20new%20r(%22encrypt%20on%20already%20updated%20hmac%20called!%22)%3Breturn%20this.update(t)%2Cthis.digest(t)%7D%7D%7D%2Cj%3Dtypeof%20h!%3Dk%26%26typeof%20h.getRandomValues%3D%3Dv%2CE%3D%22Invalid%20password%22%2CL%3D%22Invalid%20signature%22%2CO%3D%22zipjs-abort-check-password%22%3Bfunction%20H(t)%7Bif(j)return%20h.getRandomValues(t)%3Bthrow%20new%20r(%22Crypto%20API%20not%20supported%22)%7Dconst%20Z%3D16%2CF%3D%7Bname%3A%22PBKDF2%22%7D%2CN%3De.assign(%7Bhash%3A%7Bname%3A%22HMAC%22%7D%7D%2CF)%2Cq%3De.assign(%7Biterations%3A1e3%2Chash%3A%7Bname%3A%22SHA-1%22%7D%7D%2CF)%2CG%3D%5B%22deriveBits%22%5D%2CJ%3D%5B8%2C12%2C16%5D%2CQ%3D%5B16%2C24%2C32%5D%2CX%3D10%2CY%3D%5B0%2C0%2C0%2C0%5D%2C%24%3Dtypeof%20h!%3Dk%2Ctt%3D%24%26%26h.subtle%2Cet%3D%24%26%26typeof%20tt!%3Dk%2Cnt%3DT.bytes%2Cst%3Dclass%7Bconstructor(t)%7Bconst%20e%3Dthis%3Be.K%3D%5B%5B%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%5D%2C%5B%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%5D%5D%2Ce.K%5B0%5D%5B0%5D%5B0%5D%7C%7Ce.j()%3Bconst%20n%3De.K%5B0%5D%5B4%5D%2Cs%3De.K%5B1%5D%2Co%3Dt.length%3Blet%20i%2Ca%2Cc%2Cf%3D1%3Bif(4!%3D%3Do%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Cn)%7Blet%20s%3Bif(!(s%3De.length))return%5B%5D%3Bconst%20r%3DB.l(e)%3Bfor(let%20r%3D0%3Bs%3Er%3Br%2B%3D4)%7Bthis.q(n)%3Bconst%20s%3Dt.encrypt(n)%3Be%5Br%5D%5E%3Ds%5B0%5D%2Ce%5Br%2B1%5D%5E%3Ds%5B1%5D%2Ce%5Br%2B2%5D%5E%3Ds%5B2%5D%2Ce%5Br%2B3%5D%5E%3Ds%5B3%5D%7Dreturn%20B.u(e%2Cr)%7D%7D%2Cot%3DK.D%3Blet%20it%3D%24%26%26et%26%26typeof%20tt.importKey%3D%3Dv%2Cat%3D%24%26%26et%26%26typeof%20tt.deriveBits%3D%3Dv%3Bclass%20ct%20extends%20d%7Bconstructor(%7Bpassword%3At%2CrawPassword%3Ae%2CencryptionStrength%3An%2CcheckPasswordOnly%3As%7D)%7Bsuper(%7Bstart()%7Blt(this%2Ct%2Ce%2Cn)%7D%2Casync%20transform(t%2Ce)%7Bconst%20n%3Dthis%2C%7Bpassword%3Ai%2CG%3Aa%2CJ%3Ac%2Cready%3Af%7D%3Dn%3Bi%3F(await(async(t%2Ce%2Cn%2Cs)%3D%3E%7Bconst%20o%3Dawait%20ut(t%2Ce%2Cn%2Cdt(s%2C0%2CJ%5Be%5D))%2Ci%3Ddt(s%2CJ%5Be%5D)%3Bif(o%5B0%5D!%3Di%5B0%5D%7C%7Co%5B1%5D!%3Di%5B1%5D)throw%20new%20r(E)%7D)(n%2Ca%2Ci%2Cdt(t%2C0%2CJ%5Ba%5D%2B2))%2Ct%3Ddt(t%2CJ%5Ba%5D%2B2)%2Cs%3Fe.error(new%20r(O))%3Ac())%3Aawait%20f%3Bconst%20l%3Dnew%20o(t.length-X-(t.length-X)%25Z)%3Be.enqueue(wt(n%2Ct%2Cl%2C0%2CX%2C!0))%7D%2Casync%20flush(t)%7Bconst%7BX%3Ae%2CY%3An%2Cpending%3As%2Cready%3Ao%7D%3Dthis%3Bif(n%26%26e)%7Bawait%20o%3Bconst%20i%3Ddt(s%2C0%2Cs.length-X)%2Ca%3Ddt(s%2Cs.length-X)%3Blet%20c%3Dz%3Bif(i.length)%7Bconst%20t%3Dmt(nt%2Ci)%3Bn.update(t)%3Bconst%20s%3De.update(t)%3Bc%3Dyt(nt%2Cs)%7Dconst%20f%3Ddt(yt(nt%2Cn.digest())%2C0%2CX)%3Blet%20l%3Ds.length%3CX%3F1%3A0%3Bfor(let%20t%3D0%3BX%3Et%3Bt%2B%2B)l%7C%3Df%5Bt%5D%5Ea%5Bt%5D%3Bif(l)throw%20new%20r(L)%3Bt.enqueue(c)%7D%7D%7D)%7D%7Dclass%20ft%20extends%20d%7Bconstructor(%7Bpassword%3At%2CrawPassword%3Ae%2CencryptionStrength%3An%7D)%7Blet%20s%3Bsuper(%7Bstart()%7Blt(this%2Ct%2Ce%2Cn)%7D%2Casync%20transform(t%2Ce)%7Bconst%20n%3Dthis%2C%7Bpassword%3As%2CG%3Ar%2CJ%3Ai%2Cready%3Aa%7D%3Dn%3Blet%20c%3Dz%3Bs%3F(c%3Dawait(async(t%2Ce%2Cn)%3D%3E%7Bconst%20s%3DH(new%20o(J%5Be%5D))%3Breturn%20pt(s%2Cawait%20ut(t%2Ce%2Cn%2Cs))%7D)(n%2Cr%2Cs)%2Ci())%3Aawait%20a%3Bconst%20f%3Dnew%20o(c.length%2Bt.length-t.length%25Z)%3Bf.set(c%2C0)%2Ce.enqueue(wt(n%2Ct%2Cf%2Cc.length%2C0))%7D%2Casync%20flush(t)%7Bconst%7BX%3Ae%2CY%3An%2Cpending%3Ar%2Cready%3Ao%7D%3Dthis%3Bif(n%26%26e)%7Bawait%20o%3Blet%20i%3Dz%3Bif(r.length)%7Bconst%20t%3De.update(mt(nt%2Cr))%3Bn.update(t)%2Ci%3Dyt(nt%2Ct)%7Ds.signature%3Dyt(nt%2Cn.digest()).slice(0%2CX)%2Ct.enqueue(pt(i%2Cs.signature))%7D%7D%7D)%2Cs%3Dthis%7D%7Dfunction%20lt(t%2Cn%2Cs%2Cr)%7Be.assign(t%2C%7Bready%3Anew%20w(e%3D%3Et.J%3De)%2Cpassword%3Aht(n%2Cs)%2CG%3Ar-1%2Cpending%3Az%7D)%7Dfunction%20wt(t%2Ce%2Cn%2Cs%2Cr%2Ci)%7Bconst%7BX%3Aa%2CY%3Ac%2Cpending%3Af%7D%3Dt%3Bf.length%26%26(e%3Dpt(f%2Ce))%3Bconst%20l%3De.length-r%3Blet%20w%3Bfor(n%3D((t%2Ce)%3D%3E%7Bif(e%26%26e%3Et.length)%7Bconst%20n%3Dt%3B(t%3Dnew%20o(e)).set(n%2C0)%7Dreturn%20t%7D)(n%2Cs%2B(l-l%25Z))%2Cw%3D0%3Bl-Z%3E%3Dw%3Bw%2B%3DZ)%7Bconst%20t%3Dmt(nt%2Cdt(e%2Cw%2Cw%2BZ))%3Bi%26%26c.update(t)%3Bconst%20r%3Da.update(t)%3Bi%7C%7Cc.update(r)%2Cn.set(yt(nt%2Cr)%2Cw%2Bs)%7Dreturn%20t.pending%3Ddt(e%2Cw)%2Cn%7Dasync%20function%20ut(n%2Cs%2Cr%2Ci)%7Bn.password%3Dnull%3Bconst%20a%3Dawait(async(t%2Ce%2Cn%2Cs%2Cr)%3D%3E%7Bif(!it)return%20K.importKey(e)%3Btry%7Breturn%20await%20tt.importKey(%22raw%22%2Ce%2Cn%2C!1%2Cr)%7Dcatch%7Breturn%20it%3D!1%2CK.importKey(e)%7D%7D)(0%2Cr%2CN%2C0%2CG)%2Cc%3Dawait(async(t%2Ce%2Cn)%3D%3E%7Bif(!at)return%20K.M(e%2Ct.salt%2Cq.iterations%2Cn)%3Btry%7Breturn%20await%20tt.deriveBits(t%2Ce%2Cn)%7Dcatch%7Breturn%20at%3D!1%2CK.M(e%2Ct.salt%2Cq.iterations%2Cn)%7D%7D)(e.assign(%7Bsalt%3Ai%7D%2Cq)%2Ca%2C8*(2*Q%5Bs%5D%2B2))%2Cf%3Dnew%20o(c)%2Cl%3Dmt(nt%2Cdt(f%2C0%2CQ%5Bs%5D))%2Cw%3Dmt(nt%2Cdt(f%2CQ%5Bs%5D%2C2*Q%5Bs%5D))%2Cu%3Ddt(f%2C2*Q%5Bs%5D)%3Breturn%20e.assign(n%2C%7Bkeys%3A%7Bkey%3Al%2C%24%3Aw%2CpasswordVerification%3Au%7D%2CX%3Anew%20rt(new%20st(l)%2Ct.from(Y))%2CY%3Anew%20ot(w)%7D)%2Cu%7Dfunction%20ht(t%2Ce)%7Breturn%20e%3D%3D%3Db%3F(t%3D%3E%7Bif(typeof%20u%3D%3Dk)%7Bconst%20e%3Dnew%20o((t%3Dunescape(encodeURIComponent(t))).length)%3Bfor(let%20n%3D0%3Bn%3Ce.length%3Bn%2B%2B)e%5Bn%5D%3Dt.charCodeAt(n)%3Breturn%20e%7Dreturn(new%20u).encode(t)%7D)(t)%3Ae%7Dfunction%20pt(t%2Ce)%7Blet%20n%3Dt%3Breturn%20t.length%2Be.length%26%26(n%3Dnew%20o(t.length%2Be.length)%2Cn.set(t%2C0)%2Cn.set(e%2Ct.length))%2Cn%7Dfunction%20dt(t%2Ce%2Cn)%7Breturn%20t.subarray(e%2Cn)%7Dfunction%20yt(t%2Ce)%7Breturn%20t.p(e)%7Dfunction%20mt(t%2Ce)%7Breturn%20t.m(e)%7Dclass%20gt%20extends%20d%7Bconstructor(%7Bpassword%3At%2CrawPassword%3Ae%2CpasswordVerification%3An%2CcheckPasswordOnly%3As%7D)%7Bsuper(%7Bstart()%7Bbt(this%2Ct%2Ce%2Cn)%7D%2Ctransform(t%2Ce)%7Bconst%20n%3Dthis%3Bif(n.password%7C%7Cn.rawPassword)%7Bconst%20e%3Dkt(n%2Ct.subarray(0%2C12))%3Bif(n.password%3Dn.rawPassword%3Dnull%2C0!%3D(e.at(-1)%5En.passwordVerification))throw%20new%20r(E)%3Bt%3Dt.subarray(12)%7Ds%3Fe.error(new%20r(O))%3Ae.enqueue(kt(n%2Ct))%7D%7D)%7D%7Dclass%20St%20extends%20d%7Bconstructor(%7Bpassword%3At%2CrawPassword%3Ae%2CpasswordVerification%3An%7D)%7Bsuper(%7Bstart()%7Bbt(this%2Ct%2Ce%2Cn)%7D%2Ctransform(t%2Ce)%7Bconst%20n%3Dthis%3Blet%20s%2Cr%3Bif(n.password%7C%7Cn.rawPassword)%7Bn.password%3Dn.rawPassword%3Dnull%3Bconst%20e%3DH(new%20o(12))%3Be%5B11%5D%3Dn.passwordVerification%2Cs%3Dnew%20o(t.length%2Be.length)%2Cs.set(vt(n%2Ce)%2C0)%2Cr%3D12%7Delse%20s%3Dnew%20o(t.length)%2Cr%3D0%3Bs.set(vt(n%2Ct)%2Cr)%2Ce.enqueue(s)%7D%7D)%7D%7Dfunction%20bt(t%2Cn%2Cs%2Cr)%7Be.assign(t%2C%7Bpassword%3An%2CrawPassword%3As%2CpasswordVerification%3Ar%7D)%2C((t%2Cn%2Cs)%3D%3E%7Bconst%20r%3D%5B305419896%2C591751049%2C878082192%5D%3Bif(e.assign(t%2C%7Bkeys%3Ar%2Ctt%3Anew%20M(r%5B0%5D)%2Cet%3Anew%20M(r%5B2%5D)%7D)%2Cs)for(let%20e%3D0%3Be%3Cs.length%3Be%2B%2B)zt(t%2Cs%5Be%5D)%3Belse%20for(let%20e%3D0%3Be%3Cn.length%3Be%2B%2B)zt(t%2Cn.charCodeAt(e))%7D)(t%2Cn%2Cs)%7Dfunction%20kt(t%2Ce)%7Bconst%20n%3Dnew%20o(e.length)%3Bfor(let%20s%3D0%3Bs%3Ce.length%3Bs%2B%2B)n%5Bs%5D%3DCt(t)%5Ee%5Bs%5D%2Czt(t%2Cn%5Bs%5D)%3Breturn%20n%7Dfunction%20vt(t%2Ce)%7Bconst%20n%3Dnew%20o(e.length)%3Bfor(let%20s%3D0%3Bs%3Ce.length%3Bs%2B%2B)n%5Bs%5D%3DCt(t)%5Ee%5Bs%5D%2Czt(t%2Ce%5Bs%5D)%3Breturn%20n%7Dfunction%20zt(t%2Ce)%7Blet%5B%2Cn%5D%3Dt.keys%3Bt.tt.append(%5Be%5D)%3Bconst%20r%3D~t.tt.get()%3Bn%3DAt(s.imul(At(n%2BIt(r))%2C134775813)%2B1)%2Ct.et.append(%5Bn%3E%3E%3E24%5D)%3Bconst%20o%3D~t.et.get()%3Bt.keys%3D%5Br%2Cn%2Co%5D%7Dfunction%20Ct(t)%7Bconst%20e%3D2%7Ct.keys%5B2%5D%3Breturn%20It(s.imul(e%2C1%5Ee)%3E%3E%3E8)%7Dfunction%20It(t)%7Breturn%20255%26t%7Dfunction%20At(t)%7Breturn%204294967295%26t%7Dclass%20xt%20extends%20d%7Bconstructor(t%2C%7BchunkSize%3Ae%2Cnt%3An%2CCompressionStream%3As%7D)%7Bsuper(%7B%7D)%3Bconst%7Bcompressed%3Ar%2Cencrypted%3Ao%2CuseCompressionStream%3Ai%2CzipCrypto%3Aa%2Csigned%3Ac%2Clevel%3Af%2Cdeflate64%3Aw%7D%3Dt%2Cu%3Dthis%3Blet%20h%2Cp%2Cd%2Cy%3Dsuper.readable%3Bconst%20m%3Dc%26%26r%26%26!w%26%26(!o%7C%7Ca)%26%26!(!i%7C%7C!s)%3Bo%26%26!a%7C%7C!c%7C%7Cm%7C%7C(h%3Dnew%20_%2Cy%3DDt(y%2Ch))%2Cr%26%26(m%3F(d%3Dnew%20Pt%2Cy%3DMt(y%2Cnew%20s(%22gzip%22))%2Cy%3DDt(y%2Cd))%3Ay%3DWt(y%2Ci%2C%7Blevel%3Af%2CchunkSize%3Ae%7D%2Cs%2Cn%2Cs))%2Co%26%26(a%3Fy%3DDt(y%2Cnew%20St(t))%3A(p%3Dnew%20ft(t)%2Cy%3DDt(y%2Cp)))%2CUt(u%2Cy%2C()%3D%3E%7Blet%20t%3Bo%26%26!a%26%26(t%3Dp.signature)%2Co%26%26!a%7C%7C!c%7C%7C(t%3Dm%3Fd.signature%3Anew%20l(h.value.buffer).getUint32(0))%2Cu.signature%3Dt%7D)%7D%7Dclass%20Pt%20extends%20d%7Bconstructor()%7Blet%20t%2Ce%3D10%2Cn%3Dnew%20o(0)%3Bsuper(%7Btransform(t%2Cr)%7Bif(e)%7Bconst%20n%3Ds.min(e%2Ct.length)%3Bif(e-%3Dn%2C!(t%3Dt.subarray(n)).length)return%7Dconst%20i%3Dn.length%2Bt.length%3Bif(8%3E%3Di)%7Bconst%20e%3Dnew%20o(i)%3Breturn%20e.set(n)%2Ce.set(t%2Cn.length)%2Cvoid(n%3De)%7Dconst%20a%3Di-8%2Cc%3Dnew%20o(a)%2Cf%3Ds.min(a%2Cn.length)%3Bc.set(n.subarray(0%2Cf)%2C0)%2Ca%3Ef%26%26c.set(t.subarray(0%2Ca-f)%2Cf)%2Cr.enqueue(c)%3Bconst%20l%3Dnew%20o(8)%2Cw%3Dn.length-f%3Bw%26%26l.set(n.subarray(f)%2C0)%2Cl.set(t.subarray(a-f)%2Cw)%2Cn%3Dl%7D%2Cflush()%7Bconst%20e%3Dnew%20l(n.buffer%2Cn.byteOffset%2Cn.byteLength)%3Bt.signature%3De.getUint32(0%2C!0)%2Ct.st%3De.getUint32(4%2C!0)%7D%7D)%2Ct%3Dthis%7D%7Dclass%20Rt%20extends%20d%7Bconstructor(t%2C%7BchunkSize%3Ae%2Crt%3An%2CDecompressionStream%3As%7D)%7Bsuper(%7B%7D)%3Bconst%7BzipCrypto%3Ao%2Cencrypted%3Ai%2Csigned%3Aa%2Csignature%3Ac%2Ccompressed%3Af%2CuseCompressionStream%3Aw%2Cdeflate64%3Au%7D%3Dt%3Blet%20h%2Cp%2Cd%3Dsuper.readable%3Bi%26%26(o%3Fd%3DDt(d%2Cnew%20gt(t))%3A(p%3Dnew%20ct(t)%2Cd%3DDt(d%2Cp)))%2Cf%26%26(d%3DWt(d%2Cw%2C%7BchunkSize%3Ae%2Cdeflate64%3Au%7D%2Cs%2Cn%2Cs)%2Cd%3D(t%3D%3E%7Bconst%20e%3Dt.getReader()%3Breturn%20new%20y(%7Basync%20pull(t)%7Blet%20n%3Btry%7Bn%3Dawait%20e.read()%7Dcatch(t)%7Bif(t%26%26t.message)throw%20t%3Bconst%20e%3Dnew%20r(%22Invalid%20compressed%20data%22)%3Bthrow%20e.cause%3Dt%2Ce%7Dconst%7Bvalue%3As%2Cdone%3Ao%7D%3Dn%3Bo%3Ft.close()%3At.enqueue(s)%7D%2Ccancel%3At%3D%3Ee.cancel(t)%7D)%7D)(d))%2Ci%26%26!o%7C%7C!a%7C%7C(h%3Dnew%20_%2Cd%3DDt(d%2Ch))%2CUt(this%2Cd%2C()%3D%3E%7Bif((!i%7C%7Co)%26%26a)%7Bconst%20t%3Dnew%20l(h.value.buffer)%3Bif(c!%3Dt.getUint32(0%2C!1))throw%20new%20r(L)%7D%7D)%7D%7Dfunction%20Ut(t%2Cn%2Cs)%7Bn%3DDt(n%2Cnew%20d(%7Bflush%3As%7D))%2Ce.defineProperty(t%2C%22readable%22%2C%7Bget%3A()%3D%3En%7D)%7Dfunction%20Wt(t%2Ce%2Cn%2Cs%2Cr%2Co)%7Bconst%20i%3De%26%26s%3Fs%3Ar%7C%7Co%2Ca%3Dn.deflate64%3F%22deflate64-raw%22%3A%22deflate-raw%22%3Blet%20c%3Btry%7Bc%3Dnew%20i(a%2Cn)%7Dcatch(t)%7Bif(!e)throw%20t%3Bif(r)c%3Dnew%20r(a%2Cn)%3Belse%7Bif(!o)throw%20t%3Bc%3Dnew%20o(a%2Cn)%7D%7Dreturn%20Mt(t%2Cc)%7Dfunction%20Dt(t%2Ce)%7Breturn%20t.pipeThrough(e)%7Dfunction%20Mt(t%2Ce)%7Bconst%20n%3De.writable.getWriter()%2Cs%3Dt.getReader()%3Breturn(async()%3D%3E%7Btry%7Bfor(%3B%3B)%7Bawait%20n.ready%3Bconst%20t%3Dawait%20s.read()%3Bif(t.done)%7Bawait%20n.close()%3Bbreak%7Dawait%20n.write(t.value)%7D%7Dcatch(t)%7Bawait(async(t%2Ce)%3D%3E%7Btry%7Bawait%20t.abort(e)%7Dcatch%7B%7D%7D)(n%2Ct)%2Cawait(async(t%2Ce)%3D%3E%7Btry%7Bawait%20t.cancel(e)%7Dcatch%7B%7D%7D)(s%2Ct)%7D%7D)()%2Ce.readable%7Dconst%20_t%3D%22data%22%2CBt%3D%22close%22%3Bclass%20Tt%20extends%20d%7Bconstructor(t%2Cn)%7Bsuper(%7B%7D)%3Bconst%20s%3Dthis%2C%7BcodecType%3Ao%7D%3Dt%3Blet%20i%3Bo.startsWith(%22deflate%22)%3Fi%3Dxt%3Ao.startsWith(%22inflate%22)%26%26(i%3DRt)%2Cs.outputSize%3D0%3Blet%20a%3D0%3Bconst%20c%3Dnew%20i(t%2Cn)%2Cf%3Dsuper.readable%2Cl%3Dnew%20d(%7Btransform(t%2Ce)%7Bt%26%26t.length%26%26(a%2B%3Dt.length%2Ce.enqueue(t))%7D%2Cflush()%7Be.assign(s%2C%7BinputSize%3Aa%7D)%7D%7D)%2Cw%3Dnew%20d(%7Btransform(e%2Cn)%7Bif(e%26%26e.length%26%26(n.enqueue(e)%2Cs.outputSize%2B%3De.length%2Ct.outputSize!%3D%3Db%26%26s.outputSize%3Et.outputSize))throw%20new%20r(%22Invalid%20uncompressed%20size%22)%7D%2Cflush()%7Bconst%7Bsignature%3At%7D%3Dc%3Be.assign(s%2C%7Bsignature%3At%2CinputSize%3Aa%7D)%7D%7D)%3Be.defineProperty(s%2C%22readable%22%2C%7Bget%3A()%3D%3Ef.pipeThrough(l).pipeThrough(c).pipeThrough(w)%7D)%7D%7Dclass%20Vt%20extends%20d%7Bconstructor(t)%7Blet%20e%3B1%3Et%26%26(t%3D65536)%2Csuper(%7Btransform%3A(n%2Cs)%3D%3E%7Bif(e)%7Bconst%20t%3Dnew%20o(e.length%2Bn.length)%3Bt.set(e)%2Ct.set(n%2Ce.length)%2Cn%3Dt%2Ce%3Dnull%7Dlet%20r%3D0%3Bfor(%3Bn.length-r%3Et%3B)s.enqueue(n.slice(r%2Cr%2Bt))%2Cr%2B%3Dt%3Be%3Dr%3Fn.slice(r)%3An%7D%2Cflush(t)%7Be%26%26e.length%26%26t.enqueue(e)%7D%7D)%7D%7Dlet%20Kt%3D2%3Btry%7Btypeof%20navigator!%3Dk%26%26navigator.hardwareConcurrency%26%26(Kt%3Dnavigator.hardwareConcurrency)%7Dcatch%7B%7Dconst%20jt%3D%7Bot%3A%22.%2Fcore%2Fweb-worker-wasm.js%22%2CwasmURI%3A%22.%2Fcore%2Fstreams%2Fzlib-wasm%2Fzlib-streams.wasm%22%2CchunkSize%3A65536%2Cit%3AKt%2Cct%3A5e3%2Cft%3A5e3%2Clt%3A!0%2CuseCompressionStream%3A!0%2CCompressionStream%3Atypeof%20g!%3Dk%26%26g%2CDecompressionStream%3Atypeof%20S!%3Dk%26%26S%7D%3Be.assign(%7B%7D%2Cjt)%3Bconst%20Et%3Dnew%20f%2CLt%3Dnew%20f%3Blet%20Ot%2CHt%2CZt%2CFt%2CNt%2Cqt%3D0%3Basync%20function%20Gt(t)%7Blet%20e%2Cr%3Btry%7Bconst%7Boptions%3Ao%2Cconfig%3Ai%7D%3Dt%3Bif(!o.useCompressionStream)try%7Bawait%20self.initModule(t.config)%7Dcatch%7Bo.useCompressionStream%3D!0%7Di.CompressionStream%3Dself.CompressionStream%2Ci.DecompressionStream%3Dself.DecompressionStream%3Bconst%20a%3D%7BhighWaterMark%3A1%7D%2Cc%3Dt.readable%7C%7Cnew%20y(%7Basync%20pull(t)%7Bconst%20e%3Dnew%20w(t%3D%3EEt.set(qt%2Ct))%3BJt(%7Btype%3A%22pull%22%2CmessageId%3Aqt%7D)%2Cqt%3D(qt%2B1)%25n.MAX_SAFE_INTEGER%3Bconst%7Bvalue%3As%2Cdone%3Ar%7D%3Dawait%20e%3Bt.enqueue(s)%2Cr%26%26t.close()%7D%7D%2Ca)%3Br%3Dt.writable%7C%7Cnew%20m(%7Basync%20write(t)%7Blet%20e%3Bconst%20s%3Dnew%20w(t%3D%3Ee%3Dt)%3BLt.set(qt%2Ce)%2CJt(%7Btype%3A_t%2Cvalue%3At%2CmessageId%3Aqt%7D)%2Cqt%3D(qt%2B1)%25n.MAX_SAFE_INTEGER%2Cawait%20s%7D%7D%2Ca)%2Ce%3Dnew%20Tt(o%2Ci)%2COt%3Dnew%20AbortController%3Bconst%7Bsignal%3Af%7D%3DOt%3Bawait%20c.pipeThrough(e).pipeThrough(new%20Vt((t%3D%3Es.max(t.chunkSize%2C64))(i))).pipeTo(r%2C%7Bsignal%3Af%2CpreventClose%3A!0%2CpreventAbort%3A!0%7D)%2Cawait%20r.getWriter().close()%3Bconst%7Bsignature%3Al%2CinputSize%3Au%2CoutputSize%3Ah%7D%3De%3BJt(%7Btype%3ABt%2Cresult%3A%7Bsignature%3Al%2CinputSize%3Au%2CoutputSize%3Ah%7D%7D)%7Dcatch(t)%7Bif(t.outputSize%3De%3Fe.outputSize%3A0%2Cr%26%26!r.locked)try%7Bawait%20r.getWriter().close()%7Dcatch%7B%7DQt(t)%7D%7Dfunction%20Jt(t)%7Blet%7Bvalue%3Ae%7D%3Dt%3Bif(e)if(e.length)try%7Be%3Dnew%20o(e)%2Ct.value%3De.buffer%2Cp(t%2C%5Bt.value%5D)%7Dcatch%7Bp(t)%7Delse%20p(t)%3Belse%20p(t)%7Dfunction%20Qt(t%3Dnew%20r(%22Unknown%20error%22))%7Bconst%7Bmessage%3Ae%2Cstack%3An%2Ccode%3As%2Cname%3Ao%2CoutputSize%3Ai%7D%3Dt%3Bp(%7Berror%3A%7Bmessage%3Ae%2Cstack%3An%2Ccode%3As%2Cname%3Ao%2CoutputSize%3Ai%7D%7D)%7Dfunction%20Xt(t%2Ce%2Cn%3D%7B%7D)%7Bconst%20i%3D%22number%22%3D%3Dtypeof%20n.level%3Fn.level%3A-1%2Ca%3D%22number%22%3D%3Dtypeof%20n.outBuffer%3Fn.outBuffer%3A65536%2Cc%3D%22number%22%3D%3Dtypeof%20n.inBufferSize%3Fn.inBufferSize%3A65536%3Breturn%20new%20d(%7Bstart()%7Btry%7Blet%20n%3Bif(this.wt%3DZt(a)%2Cthis.in%3DZt(c)%2Cthis.inBufferSize%3Dc%2C!this.wt%7C%7C!this.in)throw%20new%20r(%22allocation%20failed%22)%3Bif(this.ut%3Dnew%20o(a)%2Ct%3F(this.ht%3DHt.deflate_process%2Cthis.dt%3DHt.deflate_last_consumed%2Cthis.yt%3DHt.deflate_end%2Cthis.gt%3DHt.deflate_new()%2Cn%3D%22gzip%22%3D%3D%3De%3FHt.deflate_init_gzip(this.gt%2Ci)%3A%22deflate-raw%22%3D%3D%3De%3FHt.deflate_init_raw(this.gt%2Ci)%3AHt.deflate_init(this.gt%2Ci))%3A%22deflate64-raw%22%3D%3D%3De%3F(this.ht%3DHt.inflate9_process%2Cthis.dt%3DHt.inflate9_last_consumed%2Cthis.yt%3DHt.inflate9_end%2Cthis.gt%3DHt.inflate9_new()%2Cn%3DHt.inflate9_init_raw(this.gt))%3A(this.ht%3DHt.inflate_process%2Cthis.dt%3DHt.inflate_last_consumed%2Cthis.yt%3DHt.inflate_end%2Cthis.gt%3DHt.inflate_new()%2Cn%3D%22deflate-raw%22%3D%3D%3De%3FHt.inflate_init_raw(this.gt)%3A%22gzip%22%3D%3D%3De%3FHt.inflate_init_gzip(this.gt)%3AHt.inflate_init(this.gt))%2C0!%3D%3Dn)throw%20new%20r(%22init%20failed%3A%22%2Bn)%7Dcatch(t)%7Bthrow%20f(this)%2Ct%7D%7D%2Ctransform(e%2Cn)%7Btry%7Bconst%20i%3De%2Cc%3Dnew%20o(Nt.buffer)%2Cf%3Dthis.ht%2Cl%3Dthis.dt%2Cw%3Dthis.wt%2Cu%3Dthis.ut%3Blet%20h%3D0%3Bfor(%3Bh%3Ci.length%3B)%7Bconst%20e%3Ds.min(i.length-h%2C32768)%3Bif((!this.in%7C%7Cthis.inBufferSize%3Ce)%26%26(this.in%26%26Ft%26%26(Ft(this.in)%2Cthis.in%3D0)%2Cthis.in%3DZt(e)%2Cthis.inBufferSize%3De%2C!this.in))throw%20new%20r(%22allocation%20failed%22)%3Bc.set(i.subarray(h%2Ch%2Be)%2Cthis.in)%3Bconst%20o%3Df(this.gt%2Cthis.in%2Ce%2Cw%2Ca%2C0)%2Cp%3D16777215%26o%3Bif(p%26%26(u.set(c.subarray(w%2Cw%2Bp)%2C0)%2Cn.enqueue(u.slice(0%2Cp)))%2C!t)%7Bconst%20t%3Do%3E%3E24%26255%2Ce%3D128%26t%3Ft-256%3At%3Bif(0%3Ee)throw%20new%20r(%22process%20error%3A%22%2Be)%7Dconst%20d%3Dl(this.gt)%3Bif(0%3D%3D%3Dd)break%3Bh%2B%3Dd%7D%7Dcatch(t)%7Bf(this)%2Cn.error(t)%7D%7D%2Cflush(e)%7Btry%7Bconst%20n%3Dnew%20o(Nt.buffer)%2Cs%3Dthis.ht%2Ci%3Dthis.wt%2Cc%3Dthis.ut%3Bfor(%3B%3B)%7Bconst%20o%3Ds(this.gt%2C0%2C0%2Ci%2Ca%2C4)%2Cf%3D16777215%26o%2Cl%3Do%3E%3E24%26255%3Bif(!t)%7Bconst%20t%3D128%26l%3Fl-256%3Al%3Bif(0%3Et)throw%20new%20r(%22process%20error%3A%22%2Bt)%7Dif(f%26%26(c.set(n.subarray(i%2Ci%2Bf)%2C0)%2Ce.enqueue(c.slice(0%2Cf)))%2C1%3D%3D%3Dl%7C%7C0%3D%3D%3Df)break%7D%7Dcatch(t)%7Be.error(t)%7Dfinally%7Bconst%20t%3Df(this)%3B0!%3D%3Dt%26%26e.error(new%20r(%22end%20error%3A%22%2Bt))%7D%7D%2Ccancel()%7Bf(this)%7D%7D)%3Bfunction%20f(t)%7Blet%20e%3D0%3Breturn%20t.gt%26%26t.yt%26%26(e%3Dt.yt(t.gt))%2Ct.gt%3D0%2Ct.in%26%26Ft%26%26Ft(t.in)%2Ct.in%3D0%2Ct.wt%26%26Ft%26%26Ft(t.wt)%2Ct.wt%3D0%2Ce%7D%7DaddEventListener(%22message%22%2C(%7Bdata%3At%7D)%3D%3E%7Bconst%7Btype%3Ae%2CmessageId%3An%2Cvalue%3As%2Cdone%3Ar%7D%3Dt%3Btry%7Bif(%22start%22%3D%3De%26%26Gt(t)%2Ce%3D%3D_t)%7Bconst%20t%3DEt.get(n)%3BEt.delete(n)%2Ct(%7Bvalue%3Anew%20o(s)%2Cdone%3Ar%7D)%7Dif(%22ack%22%3D%3De)%7Bconst%20t%3DLt.get(n)%3BLt.delete(n)%2Ct()%7De%3D%3DBt%26%26Ot.abort()%7Dcatch(t)%7BQt(t)%7D%7D)%3Bclass%20Yt%7Bconstructor(t%3D%22deflate%22%2Ce)%7Breturn%20Xt(!0%2Ct%2Ce)%7D%7Dclass%20%24t%7Bconstructor(t%3D%22deflate%22%2Ce)%7Breturn%20Xt(!1%2Ct%2Ce)%7D%7DYt.St%3D!0%2C%24t.St%3D!0%3Blet%20te%3D!1%3Bself.initModule%3Dasync%20t%3D%3E%7Btry%7Bconst%20e%3Dawait(async(t%2C%7BbaseURI%3Ae%7D)%3D%3E%7Bif(!te)%7Blet%20n%2Cs%3Btry%7Btry%7Bs%3Dnew%20URL(t%2Ce)%7Dcatch%7B%7Dconst%20r%3Dawait%20fetch(s)%3Bn%3Dawait%20r.arrayBuffer()%7Dcatch(e)%7Bif(!t.startsWith(%22data%3Aapplication%2Fwasm%3Bbase64%2C%22))throw%20e%3Bn%3D(t%3D%3E%7Bconst%20e%3Dt.split(%22%2C%22)%5B1%5D%2Cn%3Datob(e)%2Cs%3Dn.length%2Cr%3Dnew%20o(s)%3Bfor(let%20t%3D0%3Bs%3Et%3B%2B%2Bt)r%5Bt%5D%3Dn.charCodeAt(t)%3Breturn%20r.buffer%7D)(t)%7D(t%3D%3E%7Bif(Ht%3Dt%2C(%7Bmalloc%3AZt%2Cfree%3AFt%2Cmemory%3ANt%7D%3DHt)%2C%22function%22!%3Dtypeof%20Zt%7C%7C%22function%22!%3Dtypeof%20Ft%7C%7C!Nt)throw%20Ht%3DZt%3DFt%3DNt%3Dnull%2Cnew%20r(%22Invalid%20WASM%20module%22)%7D)((await%20WebAssembly.instantiate(n)).instance.exports)%2Cte%3D!0%7D%7D)(t.wasmURI%2Ct)%3Breturn%20t.nt%3DYt%2Ct.rt%3D%24t%2Ce%7Dcatch%7B%7D%7D%7D)%3B%0A";
|
|
2798
2798
|
} });
|
|
2799
|
-
}(
|
|
2800
|
-
var
|
|
2799
|
+
}(le);
|
|
2800
|
+
var sa = /&(amp|lt|gt|quot|apos|#x[0-9a-fA-F]+|#[0-9]+);/g;
|
|
2801
|
+
function ca(e, t) {
|
|
2802
|
+
switch (t) {
|
|
2803
|
+
case "amp": return "&";
|
|
2804
|
+
case "lt": return "<";
|
|
2805
|
+
case "gt": return ">";
|
|
2806
|
+
case "quot": return "\"";
|
|
2807
|
+
case "apos": return "'";
|
|
2808
|
+
default: return t.startsWith("#x") ? String.fromCodePoint(parseInt(t.slice(2), 16)) : t.startsWith("#") ? String.fromCodePoint(parseInt(t.slice(1), 10)) : e;
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
function la(e) {
|
|
2812
|
+
return e.replace(sa, ca);
|
|
2813
|
+
}
|
|
2814
|
+
function ua(e) {
|
|
2815
|
+
let t = {}, n = /([A-Za-z_:][-A-Za-z0-9_:.]*)\s*=\s*"([^"]*)"/g, r;
|
|
2816
|
+
for (; r = n.exec(e);) t[r[1]] = la(r[2]);
|
|
2817
|
+
return t;
|
|
2818
|
+
}
|
|
2819
|
+
function da(e, t) {
|
|
2820
|
+
let n = [], r = RegExp(`<${t}\\b([^>]*)/?>`, "g"), i;
|
|
2821
|
+
for (; i = r.exec(e);) n.push(ua(i[1]));
|
|
2822
|
+
return n;
|
|
2823
|
+
}
|
|
2824
|
+
function fa(e) {
|
|
2825
|
+
let t = new TextDecoder("utf-8").decode(e), n = da(t, "Default").map((e) => ({
|
|
2826
|
+
ext: (e.Extension ?? "").toLowerCase(),
|
|
2827
|
+
contentType: e.ContentType ?? ""
|
|
2828
|
+
})).filter((e) => e.ext && e.contentType), r = /* @__PURE__ */ new Map();
|
|
2829
|
+
for (let e of da(t, "Override")) e.PartName && e.ContentType && r.set(e.PartName, e.ContentType);
|
|
2830
|
+
return {
|
|
2831
|
+
defaults: n,
|
|
2832
|
+
overrides: r
|
|
2833
|
+
};
|
|
2834
|
+
}
|
|
2835
|
+
function pa(e) {
|
|
2836
|
+
return da(new TextDecoder("utf-8").decode(e), "Relationship").filter((e) => e.Type && e.Target).map((e) => ({
|
|
2837
|
+
id: e.Id ?? "",
|
|
2838
|
+
type: e.Type,
|
|
2839
|
+
target: e.Target,
|
|
2840
|
+
external: e.TargetMode === "External"
|
|
2841
|
+
}));
|
|
2842
|
+
}
|
|
2843
|
+
var ma = "191029", ha = "<ext uri=\"{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}\" xmlns:xcalcf=\"http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures\"><xcalcf:calcFeatures><xcalcf:feature name=\"microsoft.com:RD\"/><xcalcf:feature name=\"microsoft.com:Single\"/><xcalcf:feature name=\"microsoft.com:FV\"/><xcalcf:feature name=\"microsoft.com:CNMTM\"/><xcalcf:feature name=\"microsoft.com:LET_WF\"/><xcalcf:feature name=\"microsoft.com:LAMBDA_WF\"/><xcalcf:feature name=\"microsoft.com:ARRAYTEXT_WF\"/></xcalcf:calcFeatures></ext>", Y = "_xlfn.", ga = "_xlfn._xlws.", _a = /* @__PURE__ */ new Map([
|
|
2801
2844
|
["ANCHORARRAY", {
|
|
2802
2845
|
prefix: Y,
|
|
2803
2846
|
unimplemented: !0
|
|
@@ -2826,12 +2869,16 @@ var Y = "_xlfn.", ra = "_xlfn._xlws.", ia = /* @__PURE__ */ new Map([
|
|
|
2826
2869
|
prefix: Y,
|
|
2827
2870
|
unimplemented: !0
|
|
2828
2871
|
}],
|
|
2872
|
+
["_LONGTEXT", {
|
|
2873
|
+
prefix: Y,
|
|
2874
|
+
unimplemented: !0
|
|
2875
|
+
}],
|
|
2829
2876
|
["PQSOURCE", {
|
|
2830
2877
|
prefix: Y,
|
|
2831
2878
|
unimplemented: !0
|
|
2832
2879
|
}],
|
|
2833
2880
|
["PY", {
|
|
2834
|
-
prefix:
|
|
2881
|
+
prefix: ga,
|
|
2835
2882
|
unimplemented: !0
|
|
2836
2883
|
}],
|
|
2837
2884
|
["PYTHON_STR", {
|
|
@@ -3105,7 +3152,7 @@ var Y = "_xlfn.", ra = "_xlfn._xlws.", ia = /* @__PURE__ */ new Map([
|
|
|
3105
3152
|
arrayScope: "opens"
|
|
3106
3153
|
}],
|
|
3107
3154
|
["FILTER", {
|
|
3108
|
-
prefix:
|
|
3155
|
+
prefix: ga,
|
|
3109
3156
|
slotAlways: [2],
|
|
3110
3157
|
arrayScope: "opens"
|
|
3111
3158
|
}],
|
|
@@ -3113,7 +3160,7 @@ var Y = "_xlfn.", ra = "_xlfn._xlws.", ia = /* @__PURE__ */ new Map([
|
|
|
3113
3160
|
["LOOKUP", { arrayScope: "opens" }],
|
|
3114
3161
|
["MMULT", { arrayScope: "opens" }],
|
|
3115
3162
|
["SORT", {
|
|
3116
|
-
prefix:
|
|
3163
|
+
prefix: ga,
|
|
3117
3164
|
arrayScope: "opens"
|
|
3118
3165
|
}],
|
|
3119
3166
|
["SUMPRODUCT", { arrayScope: "opens" }],
|
|
@@ -3707,16 +3754,16 @@ var Y = "_xlfn.", ra = "_xlfn._xlws.", ia = /* @__PURE__ */ new Map([
|
|
|
3707
3754
|
["WEIBULL", {}],
|
|
3708
3755
|
["WEIBULL.DIST", { prefix: Y }],
|
|
3709
3756
|
["YEAR", {}]
|
|
3710
|
-
]),
|
|
3757
|
+
]), va = (e) => _a.get(e)?.intersect === "never", ya = (e, t) => !0 === _a.get(e)?.slotNever?.includes(t), ba = (e, t) => !0 === _a.get(e)?.slotAlways?.includes(t), xa = (e) => !0 === _a.get(e)?.valueReturn, Sa = (e) => _a.get(e)?.readsPerCell, Ca = (e) => _a.get(e)?.arrayScope === "opens", wa = (e, t) => ({
|
|
3711
3758
|
type: "function",
|
|
3712
3759
|
value: e,
|
|
3713
3760
|
inputs: t ?? null
|
|
3714
3761
|
});
|
|
3715
|
-
function
|
|
3762
|
+
function Ta(e) {
|
|
3716
3763
|
return (t, n) => {
|
|
3717
3764
|
let r = t.type, i = t.value;
|
|
3718
3765
|
if (r === "function") {
|
|
3719
|
-
let e = String(i).toUpperCase(), n = (a = e,
|
|
3766
|
+
let e = String(i).toUpperCase(), n = (a = e, _a.get(a)?.prefix), r = e === "LET" || e === "LAMBDA" ? Aa(t, e) : void 0;
|
|
3720
3767
|
if (n || r) return {
|
|
3721
3768
|
...t,
|
|
3722
3769
|
value: n ? n + i : i,
|
|
@@ -3731,18 +3778,29 @@ function fa(e) {
|
|
|
3731
3778
|
inputs: t.inputs,
|
|
3732
3779
|
isReference: !0
|
|
3733
3780
|
};
|
|
3734
|
-
return
|
|
3781
|
+
return wa(Y + e, [n]);
|
|
3735
3782
|
}
|
|
3736
3783
|
} else if (r === "postfix") {
|
|
3737
|
-
if (i === "#") return
|
|
3784
|
+
if (i === "#") return wa(Y + "ANCHORARRAY", [t.inputs[0]]);
|
|
3785
|
+
} else if (r === "string") {
|
|
3786
|
+
let e = String(i ?? "");
|
|
3787
|
+
if (e.length > 255) {
|
|
3788
|
+
let t = [];
|
|
3789
|
+
for (let n = 0; n < e.length; n += 255) t.push({
|
|
3790
|
+
type: "string",
|
|
3791
|
+
value: e.substring(n, n + 255),
|
|
3792
|
+
inputs: null
|
|
3793
|
+
});
|
|
3794
|
+
return wa(Y + "_LONGTEXT", t);
|
|
3795
|
+
}
|
|
3738
3796
|
} else if (r === "prefix") {
|
|
3739
|
-
if (i === "@" && n?.type !== "tableReference") return
|
|
3797
|
+
if (i === "@" && n?.type !== "tableReference") return wa(Y + "SINGLE", [t.inputs[0]]);
|
|
3740
3798
|
} else if (r === "named") {
|
|
3741
3799
|
let n = i, r = n?.name;
|
|
3742
3800
|
if (r && !n.scope) {
|
|
3743
3801
|
let n = r.toUpperCase();
|
|
3744
3802
|
if (((e) => {
|
|
3745
|
-
let t =
|
|
3803
|
+
let t = _a.get(e);
|
|
3746
3804
|
return t !== void 0 && !0 !== t.unimplemented;
|
|
3747
3805
|
})(n) && !e?.has(n)) return {
|
|
3748
3806
|
...t,
|
|
@@ -3752,37 +3810,40 @@ function fa(e) {
|
|
|
3752
3810
|
}
|
|
3753
3811
|
};
|
|
3754
3812
|
}
|
|
3755
|
-
} else if (r === "tableReference") return
|
|
3813
|
+
} else if (r === "tableReference") return !t.inputs && t.value ? {
|
|
3814
|
+
...t,
|
|
3815
|
+
inputs: []
|
|
3816
|
+
} : Fa(t);
|
|
3756
3817
|
var a;
|
|
3757
3818
|
};
|
|
3758
3819
|
}
|
|
3759
|
-
var
|
|
3820
|
+
var Ea = (e, t) => e.length > t.length && e.substring(0, t.length).toLowerCase() === t, Da = (e) => {
|
|
3760
3821
|
if (e?.type !== "named") return;
|
|
3761
3822
|
let t = e.value, n = t?.name;
|
|
3762
|
-
return !n || t.scope ||
|
|
3763
|
-
},
|
|
3823
|
+
return !n || t.scope || Ea(n, "_xlpm.") ? void 0 : Ea(n, "_xleta.") ? n.substring(7) : n;
|
|
3824
|
+
}, Oa = (e, t) => ({
|
|
3764
3825
|
...e,
|
|
3765
3826
|
value: {
|
|
3766
3827
|
name: "_xlpm." + t,
|
|
3767
3828
|
scope: null
|
|
3768
3829
|
}
|
|
3769
|
-
}),
|
|
3770
|
-
let n =
|
|
3771
|
-
if (n !== void 0) return n.toUpperCase() === t ?
|
|
3830
|
+
}), ka = (e, t) => {
|
|
3831
|
+
let n = Da(e);
|
|
3832
|
+
if (n !== void 0) return n.toUpperCase() === t ? Oa(e, n) : e;
|
|
3772
3833
|
let r = e.inputs;
|
|
3773
3834
|
if (!r) return e;
|
|
3774
3835
|
let i;
|
|
3775
3836
|
for (let e = 0; e < r.length; e++) {
|
|
3776
3837
|
let n = r[e];
|
|
3777
3838
|
if (!n) continue;
|
|
3778
|
-
let a =
|
|
3839
|
+
let a = ka(n, t);
|
|
3779
3840
|
a !== n && (i ||= [...r], i[e] = a);
|
|
3780
3841
|
}
|
|
3781
3842
|
return i ? {
|
|
3782
3843
|
...e,
|
|
3783
3844
|
inputs: i
|
|
3784
3845
|
} : e;
|
|
3785
|
-
},
|
|
3846
|
+
}, Aa = (e, t) => {
|
|
3786
3847
|
let n = e.inputs, r = n?.length ?? 0;
|
|
3787
3848
|
if (!n || r < 2) return;
|
|
3788
3849
|
let i, a = (e) => (i ?? n)[e], o = (e, t) => {
|
|
@@ -3791,7 +3852,7 @@ var pa = (e, t) => e.length > t.length && e.substring(0, t.length).toLowerCase()
|
|
|
3791
3852
|
if (t === "LAMBDA") for (let e = 0; e < r - 1; e++) s.push([e, r - 1]);
|
|
3792
3853
|
else for (let e = 0; e + 1 < r; e += 2) s.push([e, e + 2]);
|
|
3793
3854
|
for (let [e, t] of s) {
|
|
3794
|
-
let n = a(e), i =
|
|
3855
|
+
let n = a(e), i = Da(n);
|
|
3795
3856
|
if (i === void 0) continue;
|
|
3796
3857
|
o(e, !0 === n.value?.optional ? {
|
|
3797
3858
|
...n,
|
|
@@ -3799,35 +3860,100 @@ var pa = (e, t) => e.length > t.length && e.substring(0, t.length).toLowerCase()
|
|
|
3799
3860
|
name: "_xlop." + i,
|
|
3800
3861
|
scope: null
|
|
3801
3862
|
}
|
|
3802
|
-
} :
|
|
3863
|
+
} : Oa(n, i));
|
|
3803
3864
|
let s = i.toUpperCase();
|
|
3804
3865
|
for (let e = t; e < r; e++) {
|
|
3805
3866
|
let t = a(e);
|
|
3806
|
-
t && o(e,
|
|
3867
|
+
t && o(e, ka(t, s));
|
|
3807
3868
|
}
|
|
3808
3869
|
}
|
|
3809
3870
|
return i;
|
|
3810
|
-
},
|
|
3871
|
+
}, ja = [
|
|
3811
3872
|
"_XLFN._XLWS.",
|
|
3812
3873
|
"_XLFN.",
|
|
3813
3874
|
"_XLWS.",
|
|
3814
3875
|
"_XLETA.",
|
|
3815
3876
|
"_XLPM."
|
|
3816
|
-
],
|
|
3877
|
+
], Ma = (e) => {
|
|
3817
3878
|
let t = e.toUpperCase(), n = 0, r = !0;
|
|
3818
3879
|
for (; r;) {
|
|
3819
3880
|
r = !1;
|
|
3820
|
-
for (let e of
|
|
3881
|
+
for (let e of ja) if (t.startsWith(e, n)) {
|
|
3821
3882
|
n += e.length, r = !0;
|
|
3822
3883
|
break;
|
|
3823
3884
|
}
|
|
3824
3885
|
}
|
|
3825
3886
|
return n === 0 ? e : e.substring(n);
|
|
3826
|
-
},
|
|
3887
|
+
}, Na = /* @__PURE__ */ new Map([
|
|
3827
3888
|
["_TRO_ALL", ".:."],
|
|
3828
3889
|
["_TRO_LEADING", ".:"],
|
|
3829
3890
|
["_TRO_TRAILING", ":."]
|
|
3830
|
-
])
|
|
3891
|
+
]);
|
|
3892
|
+
function Pa() {
|
|
3893
|
+
return (e) => {
|
|
3894
|
+
let t = e.type;
|
|
3895
|
+
if (t === "function") {
|
|
3896
|
+
let t = String(e.value ?? ""), n = Ma(t), r = n.toUpperCase(), i = e.inputs;
|
|
3897
|
+
if (r === "SINGLE" && i?.length === 1) return {
|
|
3898
|
+
type: "prefix",
|
|
3899
|
+
value: "@",
|
|
3900
|
+
inputs: [i[0]],
|
|
3901
|
+
isReference: !0
|
|
3902
|
+
};
|
|
3903
|
+
if (r === "ANCHORARRAY" && i?.length === 1) return {
|
|
3904
|
+
type: "postfix",
|
|
3905
|
+
value: "#",
|
|
3906
|
+
inputs: [i[0]],
|
|
3907
|
+
isReference: !0
|
|
3908
|
+
};
|
|
3909
|
+
let a = Na.get(r);
|
|
3910
|
+
if (a && i?.length === 1 && i[0]?.inputs?.length === 2) {
|
|
3911
|
+
let e = i[0];
|
|
3912
|
+
return {
|
|
3913
|
+
type: "infix",
|
|
3914
|
+
value: a,
|
|
3915
|
+
inputs: [e.inputs[0], e.inputs[1]],
|
|
3916
|
+
isReference: e.isReference ?? !0
|
|
3917
|
+
};
|
|
3918
|
+
}
|
|
3919
|
+
if (r === "_LONGTEXT" && i && i.length > 0 && i.every((e) => e?.type === "string")) {
|
|
3920
|
+
let e = "";
|
|
3921
|
+
for (let t = 0; t < i.length; t++) e += String(i[t].value ?? "");
|
|
3922
|
+
return {
|
|
3923
|
+
type: "string",
|
|
3924
|
+
value: e,
|
|
3925
|
+
inputs: null
|
|
3926
|
+
};
|
|
3927
|
+
}
|
|
3928
|
+
if (n !== t) return {
|
|
3929
|
+
...e,
|
|
3930
|
+
value: r
|
|
3931
|
+
};
|
|
3932
|
+
} else if (t === "named") {
|
|
3933
|
+
let t = e.value, n = t?.name ?? "";
|
|
3934
|
+
if (Ea(n, "_xlop.")) {
|
|
3935
|
+
let r = Ma(n.substring(6));
|
|
3936
|
+
return {
|
|
3937
|
+
...e,
|
|
3938
|
+
value: {
|
|
3939
|
+
name: r,
|
|
3940
|
+
scope: t?.scope ?? null,
|
|
3941
|
+
optional: !0
|
|
3942
|
+
}
|
|
3943
|
+
};
|
|
3944
|
+
}
|
|
3945
|
+
let r = Ma(n);
|
|
3946
|
+
if (r !== n) return {
|
|
3947
|
+
...e,
|
|
3948
|
+
value: {
|
|
3949
|
+
name: r,
|
|
3950
|
+
scope: t?.scope ?? null
|
|
3951
|
+
}
|
|
3952
|
+
};
|
|
3953
|
+
}
|
|
3954
|
+
};
|
|
3955
|
+
}
|
|
3956
|
+
var Fa = (e) => {
|
|
3831
3957
|
let t = e.inputs;
|
|
3832
3958
|
if (!t) return;
|
|
3833
3959
|
let n = !1, r = [];
|
|
@@ -3850,37 +3976,22 @@ var pa = (e, t) => e.length > t.length && e.substring(0, t.length).toLowerCase()
|
|
|
3850
3976
|
...e,
|
|
3851
3977
|
inputs: r
|
|
3852
3978
|
} : void 0;
|
|
3853
|
-
},
|
|
3979
|
+
}, Ia = (e) => {
|
|
3854
3980
|
if (!e) return !1;
|
|
3855
|
-
if (e.type === "function" && (t =
|
|
3981
|
+
if (e.type === "function" && (t = Ua(e), !0 === _a.get(t)?.volatile)) return !0;
|
|
3856
3982
|
var t;
|
|
3857
3983
|
let n = e.inputs;
|
|
3858
3984
|
if (!n) return !1;
|
|
3859
|
-
for (let e = 0; e < n.length; e++) if (
|
|
3985
|
+
for (let e = 0; e < n.length; e++) if (Ia(n[e])) return !0;
|
|
3860
3986
|
return !1;
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
let o = null, s = e()?.getNamedFormulas();
|
|
3870
|
-
if (s) {
|
|
3871
|
-
let e = s.getItems(r ? {
|
|
3872
|
-
name: n,
|
|
3873
|
-
scope: r
|
|
3874
|
-
} : { name: n }), t = r ? e[0] : e.find((e) => !e.getScope()) ?? e[0];
|
|
3875
|
-
t && t.getExpression({ formulaTransform: (e, t) => {
|
|
3876
|
-
t === void 0 && (o = e);
|
|
3877
|
-
} });
|
|
3878
|
-
}
|
|
3879
|
-
return t.set(i, o), o;
|
|
3880
|
-
}
|
|
3881
|
-
};
|
|
3882
|
-
}
|
|
3883
|
-
var Ta = /* @__PURE__ */ new Set([
|
|
3987
|
+
}, La = (e, t) => {
|
|
3988
|
+
if (!e) return !1;
|
|
3989
|
+
if (Za(e, t)) return !0;
|
|
3990
|
+
let n = e.inputs;
|
|
3991
|
+
if (!n) return !1;
|
|
3992
|
+
for (let e = 0; e < n.length; e++) if (La(n[e], t)) return !0;
|
|
3993
|
+
return !1;
|
|
3994
|
+
}, Ra = /* @__PURE__ */ new Set([
|
|
3884
3995
|
"+",
|
|
3885
3996
|
"-",
|
|
3886
3997
|
"*",
|
|
@@ -3893,13 +4004,13 @@ var Ta = /* @__PURE__ */ new Set([
|
|
|
3893
4004
|
"<",
|
|
3894
4005
|
">=",
|
|
3895
4006
|
"<="
|
|
3896
|
-
]),
|
|
4007
|
+
]), za = /* @__PURE__ */ new Set(["-", "+"]), Ba = /* @__PURE__ */ new Set([
|
|
3897
4008
|
":",
|
|
3898
4009
|
" ",
|
|
3899
4010
|
".:.",
|
|
3900
4011
|
".:",
|
|
3901
4012
|
":."
|
|
3902
|
-
]),
|
|
4013
|
+
]), Va = (e) => {
|
|
3903
4014
|
if (!e) return null;
|
|
3904
4015
|
if (e.type === "cell") {
|
|
3905
4016
|
let t = e.value;
|
|
@@ -3918,12 +4029,12 @@ var Ta = /* @__PURE__ */ new Set([
|
|
|
3918
4029
|
} : null;
|
|
3919
4030
|
}
|
|
3920
4031
|
return null;
|
|
3921
|
-
},
|
|
4032
|
+
}, Ha = (e) => {
|
|
3922
4033
|
if (!e || e.type !== "number") return null;
|
|
3923
4034
|
let t = typeof e.value == "number" ? e.value : Number(e.value);
|
|
3924
4035
|
return Number.isFinite(t) ? t : null;
|
|
3925
|
-
},
|
|
3926
|
-
let t =
|
|
4036
|
+
}, Ua = (e) => String(e.value ?? "").toUpperCase(), Wa = /* @__PURE__ */ new WeakMap(), Ga = (e) => {
|
|
4037
|
+
let t = Wa.get(e);
|
|
3927
4038
|
return t || (t = ((e) => {
|
|
3928
4039
|
let t = [], n = [], r = (e) => {
|
|
3929
4040
|
t.push(e.getRangeType() !== null || e.getArrayDepth() > 0), n.push(e.getScalarType() !== null);
|
|
@@ -3946,8 +4057,8 @@ var Ta = /* @__PURE__ */ new Set([
|
|
|
3946
4057
|
valueTyped: n,
|
|
3947
4058
|
period: i
|
|
3948
4059
|
};
|
|
3949
|
-
})(e),
|
|
3950
|
-
},
|
|
4060
|
+
})(e), Wa.set(e, t)), t;
|
|
4061
|
+
}, Ka = (e, t) => {
|
|
3951
4062
|
let n = e.accepts.length;
|
|
3952
4063
|
if (t < n) return t;
|
|
3953
4064
|
if (e.period > 0) {
|
|
@@ -3955,40 +4066,40 @@ var Ta = /* @__PURE__ */ new Set([
|
|
|
3955
4066
|
return r + (t - r) % e.period;
|
|
3956
4067
|
}
|
|
3957
4068
|
return -1;
|
|
3958
|
-
},
|
|
3959
|
-
let r =
|
|
3960
|
-
return i < 0 ? null : !!
|
|
3961
|
-
},
|
|
3962
|
-
let t =
|
|
4069
|
+
}, qa = (e, t, n) => {
|
|
4070
|
+
let r = Ga(t), i = Ka(r, n);
|
|
4071
|
+
return i < 0 ? null : !!ba(e, i) || !va(e) && !ya(e, i) && !r.accepts[i];
|
|
4072
|
+
}, Ja = (e, t) => t && e.type === "function" ? !((e) => {
|
|
4073
|
+
let t = _a.get(e)?.arrayScope;
|
|
3963
4074
|
return t === "consumer" || t === "lazy";
|
|
3964
|
-
})(
|
|
3965
|
-
let r =
|
|
4075
|
+
})(Ua(e)) : t, Ya = (e, t, n) => {
|
|
4076
|
+
let r = Ja(e, n);
|
|
3966
4077
|
if (e.type !== "function") return () => r;
|
|
3967
|
-
let i =
|
|
4078
|
+
let i = Ua(e), a = Ca(i), o = r && ((e) => _a.get(e))(i)?.scopeClears !== void 0;
|
|
3968
4079
|
if (!a && !o) return () => r;
|
|
3969
4080
|
let s = t.getFunction(i);
|
|
3970
4081
|
if (!s) return () => r;
|
|
3971
|
-
let c =
|
|
4082
|
+
let c = Ga(s);
|
|
3972
4083
|
return (e) => {
|
|
3973
|
-
let t =
|
|
3974
|
-
return !(t >= 0 && ((e, t) => !0 ===
|
|
3975
|
-
if (!
|
|
3976
|
-
let r =
|
|
3977
|
-
return !(i < 0) && !
|
|
4084
|
+
let t = Ka(c, e);
|
|
4085
|
+
return !(t >= 0 && ((e, t) => !0 === _a.get(e)?.scopeClears?.includes(t))(i, t)) && (r || ((e, t, n) => {
|
|
4086
|
+
if (!Ca(e) || !t.isBuiltIn()) return !1;
|
|
4087
|
+
let r = Ga(t), i = Ka(r, n);
|
|
4088
|
+
return !(i < 0) && !ba(e, i) && r.accepts[i];
|
|
3978
4089
|
})(i, s, e));
|
|
3979
4090
|
};
|
|
3980
|
-
},
|
|
4091
|
+
}, Xa = (e, t, n) => {
|
|
3981
4092
|
if (!n) return () => !1;
|
|
3982
4093
|
let r = e.type;
|
|
3983
4094
|
if (r === "paren") return () => !0;
|
|
3984
|
-
if (r === "prefix") return () =>
|
|
3985
|
-
if (r === "infix") return () =>
|
|
4095
|
+
if (r === "prefix") return () => za.has(e.value);
|
|
4096
|
+
if (r === "infix") return () => Ra.has(e.value);
|
|
3986
4097
|
if (r !== "function") return () => !1;
|
|
3987
|
-
let i = t.getFunction(
|
|
4098
|
+
let i = t.getFunction(Ua(e));
|
|
3988
4099
|
if (!i) return () => !1;
|
|
3989
|
-
let a =
|
|
4100
|
+
let a = Ga(i);
|
|
3990
4101
|
return (e) => {
|
|
3991
|
-
let t =
|
|
4102
|
+
let t = Ka(a, e);
|
|
3992
4103
|
return t >= 0 && !a.accepts[t];
|
|
3993
4104
|
};
|
|
3994
4105
|
}, X = (e, t, n, r) => {
|
|
@@ -3996,13 +4107,13 @@ var Ta = /* @__PURE__ */ new Set([
|
|
|
3996
4107
|
let i = e.type;
|
|
3997
4108
|
if (i === "prefix") {
|
|
3998
4109
|
let i = e.value;
|
|
3999
|
-
return i !== "@" && !!
|
|
4110
|
+
return i !== "@" && !!za.has(i) && X(e.inputs?.[0], t, n, r);
|
|
4000
4111
|
}
|
|
4001
|
-
if (i === "infix" &&
|
|
4112
|
+
if (i === "infix" && Ba.has(e.value) || i === "postfix" && e.value === "#" || i === "tableReference") return !0;
|
|
4002
4113
|
if (i === "array") return r;
|
|
4003
4114
|
if (i === "paren") return X(e.inputs?.[0], t, n, r);
|
|
4004
4115
|
if (i === "cell") {
|
|
4005
|
-
let t =
|
|
4116
|
+
let t = Va(e);
|
|
4006
4117
|
return t !== null && (t.rows !== 1 || t.cols !== 1);
|
|
4007
4118
|
}
|
|
4008
4119
|
if (i === "named") {
|
|
@@ -4018,10 +4129,11 @@ var Ta = /* @__PURE__ */ new Set([
|
|
|
4018
4129
|
n.delete(a);
|
|
4019
4130
|
}
|
|
4020
4131
|
}
|
|
4021
|
-
if (i === "infix" &&
|
|
4132
|
+
if (i === "infix" && Ra.has(e.value)) return X(e.inputs?.[0], t, n, r) || X(e.inputs?.[1], t, n, r);
|
|
4133
|
+
if (i === "call") return Za(e, t);
|
|
4022
4134
|
if (i === "function") {
|
|
4023
|
-
let i =
|
|
4024
|
-
if (!a) return
|
|
4135
|
+
let i = Ua(e), a = t.getFunction(i);
|
|
4136
|
+
if (!a) return t.hasFunctions();
|
|
4025
4137
|
let o = ((e, t, n, r, i) => {
|
|
4026
4138
|
if (!n.isBuiltIn()) return null;
|
|
4027
4139
|
let a = e.inputs;
|
|
@@ -4031,34 +4143,34 @@ var Ta = /* @__PURE__ */ new Set([
|
|
|
4031
4143
|
case "OFFSET": {
|
|
4032
4144
|
let e = a[3], t = a[4];
|
|
4033
4145
|
if (e === void 0 && t === void 0) return X(o, r, i, !0);
|
|
4034
|
-
let n = o ?
|
|
4146
|
+
let n = o ? Va(o) : null, s = e === void 0 ? n?.rows === 1 : Ha(e) === 1, c = t === void 0 ? n?.cols === 1 : Ha(t) === 1;
|
|
4035
4147
|
return !(s && c);
|
|
4036
4148
|
}
|
|
4037
4149
|
case "INDEX": {
|
|
4038
|
-
let e = a[1], t = a[2], n = o ?
|
|
4150
|
+
let e = a[1], t = a[2], n = o ? Va(o) : null;
|
|
4039
4151
|
if (n?.rows === 1 && n?.cols === 1) return !1;
|
|
4040
4152
|
let r = (e, t) => {
|
|
4041
4153
|
if (e === void 0) return t === 1;
|
|
4042
|
-
let n =
|
|
4154
|
+
let n = Ha(e);
|
|
4043
4155
|
return n !== null && n !== 0;
|
|
4044
4156
|
};
|
|
4045
4157
|
return !(r(e, n?.rows) && r(t, n?.cols));
|
|
4046
4158
|
}
|
|
4047
4159
|
case "XLOOKUP": {
|
|
4048
4160
|
if (a[3] && X(a[3], r, i, !0)) return !0;
|
|
4049
|
-
let e = a[1] ?
|
|
4161
|
+
let e = a[1] ? Va(a[1]) : null, t = a[2] ? Va(a[2]) : null;
|
|
4050
4162
|
return !(e && t && (e.rows === 1 && e.cols === 1 ? t.rows === 1 && t.cols === 1 : e.cols === 1 ? t.cols === 1 : e.rows === 1 && t.rows === 1));
|
|
4051
4163
|
}
|
|
4052
4164
|
default: return null;
|
|
4053
4165
|
}
|
|
4054
4166
|
})(e, i, a, t, n);
|
|
4055
4167
|
if (o !== null) return o;
|
|
4056
|
-
let s =
|
|
4168
|
+
let s = Sa(i);
|
|
4057
4169
|
if (s !== void 0 && a.isBuiltIn()) return X(e.inputs?.[s], t, n, !0);
|
|
4058
|
-
if (a.isBuiltIn() && ((e) => !0 ===
|
|
4170
|
+
if (a.isBuiltIn() && ((e) => !0 === _a.get(e)?.arrayReturn)(i)) return !0;
|
|
4059
4171
|
let c = a.getDeclaration().getReturnType();
|
|
4060
4172
|
if (c.getRangeType() !== null) return !0;
|
|
4061
|
-
let l = a.isBuiltIn() &&
|
|
4173
|
+
let l = a.isBuiltIn() && xa(i);
|
|
4062
4174
|
if (c.getScalarType() !== null && !l) return !1;
|
|
4063
4175
|
let u = e.inputs;
|
|
4064
4176
|
if (!u) return !1;
|
|
@@ -4067,150 +4179,291 @@ var Ta = /* @__PURE__ */ new Set([
|
|
|
4067
4179
|
return !1;
|
|
4068
4180
|
}
|
|
4069
4181
|
return !1;
|
|
4070
|
-
},
|
|
4182
|
+
}, Za = (e, t) => {
|
|
4183
|
+
let n = e.type;
|
|
4184
|
+
if (n === "function") return t.hasFunctions() && t.getFunction(Ua(e)) === null;
|
|
4185
|
+
if (n === "call") {
|
|
4186
|
+
let n = e.inputs?.[0];
|
|
4187
|
+
if (n?.type !== "named") return !1;
|
|
4188
|
+
let r = n.value;
|
|
4189
|
+
return !!r?.name && t.hasFunctions() && t.getNamedRoot(r.name, r.scope) === null;
|
|
4190
|
+
}
|
|
4191
|
+
return !1;
|
|
4192
|
+
}, Qa = (e, t, n) => {
|
|
4071
4193
|
if (!e || e.type !== "function") return !1;
|
|
4072
|
-
let r =
|
|
4073
|
-
return !(!
|
|
4074
|
-
},
|
|
4194
|
+
let r = Ua(e);
|
|
4195
|
+
return !(!xa(r) && Sa(r) === void 0) && !!t.getFunction(r)?.isBuiltIn() && X(e, t, n, !0);
|
|
4196
|
+
}, $a = (e, t, n, r = !1, i = !1) => {
|
|
4075
4197
|
let a = e.inputs;
|
|
4076
|
-
if (!a ||
|
|
4077
|
-
let o = e.type, s =
|
|
4078
|
-
if (o === "infix" &&
|
|
4198
|
+
if (!a || Ja(e, r)) return null;
|
|
4199
|
+
let o = e.type, s = Xa(e, t, i), c = null;
|
|
4200
|
+
if (o === "infix" && Ra.has(e.value)) {
|
|
4079
4201
|
for (let e = 0; e < 2; e++) X(a[e], t, n, s(e)) && (c ??= []).push(e);
|
|
4080
4202
|
return c;
|
|
4081
4203
|
}
|
|
4082
|
-
if (o === "prefix" &&
|
|
4204
|
+
if (o === "prefix" && za.has(e.value)) return X(a[0], t, n, s(0)) && (c = [0]), c;
|
|
4083
4205
|
if (o !== "function") return null;
|
|
4084
|
-
let l =
|
|
4206
|
+
let l = Ua(e), u = t.getFunction(l);
|
|
4085
4207
|
if (!u) return null;
|
|
4086
|
-
let d =
|
|
4208
|
+
let d = Ga(u);
|
|
4087
4209
|
for (let e = 0; e < a.length; e++) {
|
|
4088
|
-
let r =
|
|
4210
|
+
let r = qa(l, u, e);
|
|
4089
4211
|
if (r === null) break;
|
|
4090
4212
|
if (r) {
|
|
4091
4213
|
X(a[e], t, n, s(e)) && (c ??= []).push(e);
|
|
4092
4214
|
continue;
|
|
4093
4215
|
}
|
|
4094
|
-
if (
|
|
4095
|
-
let i =
|
|
4096
|
-
i < 0 || !d.valueTyped[i] ||
|
|
4216
|
+
if (va(l)) continue;
|
|
4217
|
+
let i = Ka(d, e);
|
|
4218
|
+
i < 0 || !d.valueTyped[i] || ya(l, i) || Qa(a[e], t, n) && (c ??= []).push(e);
|
|
4097
4219
|
}
|
|
4098
4220
|
return c;
|
|
4099
|
-
},
|
|
4100
|
-
type
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
}
|
|
4221
|
+
}, eo = (e) => {
|
|
4222
|
+
let t = e?.type === "paren" ? e.inputs?.[0] : void 0;
|
|
4223
|
+
return t ? {
|
|
4224
|
+
...e,
|
|
4225
|
+
inputs: [eo(t)]
|
|
4226
|
+
} : {
|
|
4227
|
+
type: "prefix",
|
|
4228
|
+
value: "@",
|
|
4229
|
+
inputs: [e],
|
|
4230
|
+
isReference: !0
|
|
4231
|
+
};
|
|
4232
|
+
}, to = (e, t) => {
|
|
4105
4233
|
if (!e) return !1;
|
|
4106
4234
|
let n = /* @__PURE__ */ new Set();
|
|
4107
4235
|
if (X(e, t, n, !0)) return !0;
|
|
4108
4236
|
let r = !1, i = (e, a, o) => {
|
|
4109
4237
|
if (r || !e) return;
|
|
4110
|
-
if (e.type === "call")
|
|
4111
|
-
let n = e.inputs?.[0], i = n?.type === "named" ? n.value : null;
|
|
4112
|
-
if (!i?.name || t.getNamedRoot(i.name, i.scope) !== null) return void (r = !0);
|
|
4113
|
-
}
|
|
4114
|
-
if (za(e, t, n, a, o)) return void (r = !0);
|
|
4238
|
+
if (e.type === "call" && !Za(e, t) || $a(e, t, n, a, o)) return void (r = !0);
|
|
4115
4239
|
let s = e.inputs;
|
|
4116
4240
|
if (!s) return;
|
|
4117
|
-
let c =
|
|
4241
|
+
let c = Ya(e, t, a), l = Xa(e, t, o);
|
|
4118
4242
|
for (let e = 0; e < s.length && !r; e++) s[e] && i(s[e], c(e), l(e));
|
|
4119
4243
|
};
|
|
4120
4244
|
return i(e, !1, !0), r;
|
|
4121
4245
|
};
|
|
4122
|
-
function
|
|
4123
|
-
let t = (
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
let
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
}
|
|
4149
|
-
if (n !== t) return {
|
|
4150
|
-
...e,
|
|
4151
|
-
value: r
|
|
4152
|
-
};
|
|
4153
|
-
} else if (t === "named") {
|
|
4154
|
-
let t = e.value, n = t?.name ?? "";
|
|
4155
|
-
if (pa(n, "_xlop.")) {
|
|
4156
|
-
let r = ya(n.substring(6));
|
|
4157
|
-
return {
|
|
4158
|
-
...e,
|
|
4159
|
-
value: {
|
|
4160
|
-
name: r,
|
|
4161
|
-
scope: t?.scope ?? null,
|
|
4162
|
-
optional: !0
|
|
4163
|
-
}
|
|
4164
|
-
};
|
|
4165
|
-
}
|
|
4166
|
-
let r = ya(n);
|
|
4167
|
-
if (r !== n) return {
|
|
4168
|
-
...e,
|
|
4169
|
-
value: {
|
|
4170
|
-
name: r,
|
|
4171
|
-
scope: t?.scope ?? null
|
|
4172
|
-
}
|
|
4173
|
-
};
|
|
4174
|
-
}
|
|
4175
|
-
}, n = wa(e);
|
|
4176
|
-
return (e, r) => {
|
|
4177
|
-
let i = t(e, r) ?? e;
|
|
4178
|
-
return r === void 0 && i.type === "function" && String(i.value).toUpperCase() === "__SXL.INTERSECT" && i.inputs?.length === 1 ? ((e, t) => {
|
|
4179
|
-
if (!e) return e;
|
|
4180
|
-
let n = /* @__PURE__ */ new Set(), r = (e, i, a) => {
|
|
4181
|
-
let o = e.inputs, s = e;
|
|
4182
|
-
if (o) {
|
|
4183
|
-
let n = Ia(e, t, i), c = La(e, t, a), l;
|
|
4184
|
-
for (let e = 0; e < o.length; e++) {
|
|
4185
|
-
let t = o[e];
|
|
4186
|
-
if (!t) continue;
|
|
4187
|
-
let i = r(t, n(e), c(e));
|
|
4188
|
-
i !== t && (l ||= [...o], l[e] = i);
|
|
4246
|
+
function no(e) {
|
|
4247
|
+
let t = Pa();
|
|
4248
|
+
return {
|
|
4249
|
+
base: (e, n) => {
|
|
4250
|
+
let r = t(e, n) ?? e;
|
|
4251
|
+
return r === e ? void 0 : r;
|
|
4252
|
+
},
|
|
4253
|
+
legacy: (n, r) => {
|
|
4254
|
+
let i = t(n, r) ?? n;
|
|
4255
|
+
if (r !== void 0) return i === n ? void 0 : i;
|
|
4256
|
+
let a = ((e, t) => {
|
|
4257
|
+
if (!e) return e;
|
|
4258
|
+
let n = /* @__PURE__ */ new Set(), r = (e, i, a) => {
|
|
4259
|
+
let o = e.inputs, s = e;
|
|
4260
|
+
if (o) {
|
|
4261
|
+
let n = Ya(e, t, i), c = Xa(e, t, a), l;
|
|
4262
|
+
for (let e = 0; e < o.length; e++) {
|
|
4263
|
+
let t = o[e];
|
|
4264
|
+
if (!t) continue;
|
|
4265
|
+
let i = r(t, n(e), c(e));
|
|
4266
|
+
i !== t && (l ||= [...o], l[e] = i);
|
|
4267
|
+
}
|
|
4268
|
+
l && (s = {
|
|
4269
|
+
...e,
|
|
4270
|
+
inputs: l
|
|
4271
|
+
});
|
|
4189
4272
|
}
|
|
4190
|
-
|
|
4191
|
-
|
|
4273
|
+
let c = $a(s, t, n, i, a);
|
|
4274
|
+
if (!c) return s;
|
|
4275
|
+
let l = [...s.inputs];
|
|
4276
|
+
for (let e of c) l[e] = eo(l[e]);
|
|
4277
|
+
return {
|
|
4278
|
+
...s,
|
|
4192
4279
|
inputs: l
|
|
4193
|
-
}
|
|
4280
|
+
};
|
|
4281
|
+
}, i = r(e, !1, !0);
|
|
4282
|
+
return X(i, t, n, !0) ? eo(i) : i;
|
|
4283
|
+
})(i, e);
|
|
4284
|
+
return a === n ? void 0 : a;
|
|
4285
|
+
}
|
|
4286
|
+
};
|
|
4287
|
+
}
|
|
4288
|
+
var ro = "xlsxFormulaDialect";
|
|
4289
|
+
function io(e, t) {
|
|
4290
|
+
let i = /* @__PURE__ */ new Set();
|
|
4291
|
+
if (t) for (let e = 0; e < t.length; e++) i.add(String(t[e]).toUpperCase());
|
|
4292
|
+
let a = /* @__PURE__ */ new Map();
|
|
4293
|
+
if (e) for (let t = 0; t < e.length; t++) {
|
|
4294
|
+
let n = e[t], r = String(n?.name ?? "").toUpperCase();
|
|
4295
|
+
if (!r) continue;
|
|
4296
|
+
let i = a.get(r);
|
|
4297
|
+
i || a.set(r, i = []), i.push(n);
|
|
4298
|
+
}
|
|
4299
|
+
let o = Pa(), s = /* @__PURE__ */ new Map(), c = {
|
|
4300
|
+
getFunction: (e) => r.get(e),
|
|
4301
|
+
hasFunctions: () => !0,
|
|
4302
|
+
getNamedRoot: (e, t) => {
|
|
4303
|
+
let r = a.get(e.toUpperCase());
|
|
4304
|
+
if (!r) return null;
|
|
4305
|
+
let i = t ? t.toUpperCase() : null, c = i ? r.find((e) => String(e.scope ?? "").toUpperCase() === i) ?? r[0] : r.find((e) => !e.scope) ?? r[0], l = c?.ref;
|
|
4306
|
+
if (typeof l != "string") return null;
|
|
4307
|
+
let u = `${String(c.scope ?? "").toUpperCase()}!${e.toUpperCase()}`, d = s.get(u);
|
|
4308
|
+
if (d !== void 0) return d;
|
|
4309
|
+
let f = n.parse(l), p = f ? n.transform(f, o) : null;
|
|
4310
|
+
return s.set(u, p), p;
|
|
4311
|
+
}
|
|
4312
|
+
}, l = no(c), u = Ta({ has: (e) => a.has(e.toUpperCase()) }), d = function(e, t) {
|
|
4313
|
+
let n = Pa();
|
|
4314
|
+
return (r, i) => {
|
|
4315
|
+
let a = e(r, i) ?? r;
|
|
4316
|
+
if (i !== void 0) return a === r ? void 0 : a;
|
|
4317
|
+
let o = /* @__PURE__ */ new Map(), s = co(a, void 0, n, o);
|
|
4318
|
+
if (o.size === 0 || to(s, t)) return a === r ? void 0 : a;
|
|
4319
|
+
let c = /* @__PURE__ */ new Set();
|
|
4320
|
+
for (let e of so(s, t)) {
|
|
4321
|
+
let t = o.get(e);
|
|
4322
|
+
t && c.add(t);
|
|
4323
|
+
}
|
|
4324
|
+
return c.size === 0 ? a === r ? void 0 : a : lo(a, c);
|
|
4325
|
+
};
|
|
4326
|
+
}(u, c), f = (e, t, r) => {
|
|
4327
|
+
let i = n.parse(e, { anchor: t });
|
|
4328
|
+
if (!i) return e;
|
|
4329
|
+
let a = n.transform(i, r);
|
|
4330
|
+
return a === i ? e : n.image(a, { at: t });
|
|
4331
|
+
};
|
|
4332
|
+
return {
|
|
4333
|
+
parse: (e, t) => n.parse(e, {
|
|
4334
|
+
anchor: t,
|
|
4335
|
+
normalize: !0
|
|
4336
|
+
}),
|
|
4337
|
+
readText: (e, t, n) => f(e, t, n ? l.base : l.legacy),
|
|
4338
|
+
readDetached: (e) => f(e, void 0, l.base),
|
|
4339
|
+
annotate: (e) => {
|
|
4340
|
+
let t = to(e, c), n = Ia(e) || La(e, c);
|
|
4341
|
+
if (!t && !n) return;
|
|
4342
|
+
let r = {};
|
|
4343
|
+
return t && (r.cm = !0), n && (r.ca = !0), r;
|
|
4344
|
+
},
|
|
4345
|
+
spell: (e, t, r) => {
|
|
4346
|
+
let a = r || i.size > 0 ? n.transform(e, ((e) => (t) => {
|
|
4347
|
+
let n = t.type;
|
|
4348
|
+
if (n === "tableReference") return !t.value && e ? {
|
|
4349
|
+
...t,
|
|
4350
|
+
value: e
|
|
4351
|
+
} : void 0;
|
|
4352
|
+
if (n === "named" && i.size > 0) {
|
|
4353
|
+
let e = t.value;
|
|
4354
|
+
if (e?.name && !e.scope && i.has(e.name.toUpperCase())) return {
|
|
4355
|
+
type: "tableReference",
|
|
4356
|
+
value: e.name,
|
|
4357
|
+
inputs: null,
|
|
4358
|
+
isReference: !0
|
|
4359
|
+
};
|
|
4194
4360
|
}
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
return {
|
|
4200
|
-
...s,
|
|
4201
|
-
inputs: l
|
|
4202
|
-
};
|
|
4203
|
-
}, i = r(e, !1, !0);
|
|
4204
|
-
return X(i, t, n, !0) ? Ba(i) : i;
|
|
4205
|
-
})(i.inputs[0], n) : i === e ? void 0 : i;
|
|
4361
|
+
})(r)) : e;
|
|
4362
|
+
return n.transform(a, t ? u : d);
|
|
4363
|
+
},
|
|
4364
|
+
writeName: (e) => f(e, void 0, u)
|
|
4206
4365
|
};
|
|
4207
4366
|
}
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
let t = 0;
|
|
4212
|
-
|
|
4213
|
-
|
|
4367
|
+
function ao(t, n) {
|
|
4368
|
+
(function(t, n) {
|
|
4369
|
+
let r = t.tables;
|
|
4370
|
+
if (r) for (let t = 0; t < r.length; t++) {
|
|
4371
|
+
let i = r[t], a = Array.isArray(i) ? i[0] : i?.r, o = Array.isArray(i) ? i[1] : i?.v, s = o?.columns;
|
|
4372
|
+
if (!s || typeof a != "string") continue;
|
|
4373
|
+
let c = e.fastStringToRange(a), l = c.rowStart + (o.headerRowCount ?? 1);
|
|
4374
|
+
for (let e = 0; e < s.length; e++) {
|
|
4375
|
+
let t = s[e];
|
|
4376
|
+
if (!t || typeof t != "object") continue;
|
|
4377
|
+
let r = {
|
|
4378
|
+
rowIndex: l,
|
|
4379
|
+
colIndex: c.colStart + e
|
|
4380
|
+
}, i = t.calculatedColumnFormula;
|
|
4381
|
+
typeof i == "string" && i && (t.calculatedColumnFormula = n.readText(i, r, !1));
|
|
4382
|
+
let a = t.totalsRowFormula;
|
|
4383
|
+
typeof a == "string" && a && (t.totalsRowFormula = n.readText(a, r, !1));
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
})(t, n);
|
|
4387
|
+
let r = t.formulas;
|
|
4388
|
+
if (!r || r.length === 0) return;
|
|
4389
|
+
let i = /* @__PURE__ */ new Set(), a = t.formulaArray;
|
|
4390
|
+
if (a) for (let t = 0; t < a.length; t++) {
|
|
4391
|
+
let n = e.fastStringToRange(String(a[t][0]));
|
|
4392
|
+
i.add(`${n.rowStart},${n.colStart}`);
|
|
4393
|
+
}
|
|
4394
|
+
for (let t = 0; t < r.length; t++) {
|
|
4395
|
+
let a = r[t], o = a[1];
|
|
4396
|
+
if (typeof o != "string") continue;
|
|
4397
|
+
let s = e.fastStringToRange(String(a[0])), c = {
|
|
4398
|
+
rowIndex: s.rowStart,
|
|
4399
|
+
colIndex: s.colStart
|
|
4400
|
+
}, l = n.readText(o, c, i.has(`${s.rowStart},${s.colStart}`));
|
|
4401
|
+
l !== o && (a[1] = l);
|
|
4402
|
+
}
|
|
4403
|
+
}
|
|
4404
|
+
var oo = (e) => e?.type === "prefix" && e.value === "@" && !!e.inputs?.[0], so = (e, t) => {
|
|
4405
|
+
let n = /* @__PURE__ */ new Set();
|
|
4406
|
+
if (!e) return n;
|
|
4407
|
+
let r = /* @__PURE__ */ new Set(), i = (e, a, o) => {
|
|
4408
|
+
let s = e.inputs;
|
|
4409
|
+
if (!s) return;
|
|
4410
|
+
let c;
|
|
4411
|
+
for (let e = 0; e < s.length; e++) {
|
|
4412
|
+
let t = s[e];
|
|
4413
|
+
oo(t) && t.inputs[0].type !== "paren" && (c ||= [...s], c[e] = t.inputs[0]);
|
|
4414
|
+
}
|
|
4415
|
+
if (c) {
|
|
4416
|
+
let i = $a({
|
|
4417
|
+
...e,
|
|
4418
|
+
inputs: c
|
|
4419
|
+
}, t, r, a, o);
|
|
4420
|
+
if (i) for (let e of i) c[e] !== s[e] && n.add(s[e]);
|
|
4421
|
+
}
|
|
4422
|
+
let l = Ya(e, t, a), u = Xa(e, t, o);
|
|
4423
|
+
for (let e = 0; e < s.length; e++) {
|
|
4424
|
+
let t = s[e];
|
|
4425
|
+
t && i(t, l(e), u(e));
|
|
4426
|
+
}
|
|
4427
|
+
};
|
|
4428
|
+
return i(e, !1, !0), oo(e) && e.inputs[0].type !== "paren" && X(e.inputs[0], t, r, !0) && n.add(e), n;
|
|
4429
|
+
}, co = (e, t, n, r) => {
|
|
4430
|
+
let i = e.inputs, a = e;
|
|
4431
|
+
if (i) {
|
|
4432
|
+
let t;
|
|
4433
|
+
for (let a = 0; a < i.length; a++) {
|
|
4434
|
+
let o = i[a];
|
|
4435
|
+
if (!o) continue;
|
|
4436
|
+
let s = co(o, e, n, r);
|
|
4437
|
+
s !== o && (t ||= [...i], t[a] = s);
|
|
4438
|
+
}
|
|
4439
|
+
t && (a = {
|
|
4440
|
+
...e,
|
|
4441
|
+
inputs: t
|
|
4442
|
+
});
|
|
4443
|
+
}
|
|
4444
|
+
let o = n(a, t);
|
|
4445
|
+
return o && o !== a ? (oo(o) && a.type === "function" && r.set(o, e), o) : a;
|
|
4446
|
+
}, lo = (e, t) => {
|
|
4447
|
+
if (t.has(e)) return lo(e.inputs[0], t);
|
|
4448
|
+
let n = e.inputs;
|
|
4449
|
+
if (!n) return e;
|
|
4450
|
+
let r;
|
|
4451
|
+
for (let e = 0; e < n.length; e++) {
|
|
4452
|
+
let i = n[e];
|
|
4453
|
+
if (!i) continue;
|
|
4454
|
+
let a = lo(i, t);
|
|
4455
|
+
a !== i && (r ||= [...n], r[e] = a);
|
|
4456
|
+
}
|
|
4457
|
+
return r ? {
|
|
4458
|
+
...e,
|
|
4459
|
+
inputs: r
|
|
4460
|
+
} : e;
|
|
4461
|
+
}, uo = 67108864, fo = class {
|
|
4462
|
+
constructor(e, t) {
|
|
4463
|
+
this._structurallyChanged = !1, this._parts = e, this._absorbed = t ?? /* @__PURE__ */ new Set();
|
|
4464
|
+
let n = 0;
|
|
4465
|
+
for (let t of e.values()) n += t.data.byteLength;
|
|
4466
|
+
this._totalBytes = n;
|
|
4214
4467
|
}
|
|
4215
4468
|
getNames() {
|
|
4216
4469
|
return [...this._parts.keys()];
|
|
@@ -4221,6 +4474,9 @@ var Ua = 67108864, Wa = class {
|
|
|
4221
4474
|
getPart(e) {
|
|
4222
4475
|
return this._parts.get(e) ?? null;
|
|
4223
4476
|
}
|
|
4477
|
+
isAbsorbed(e) {
|
|
4478
|
+
return this._absorbed.has(e);
|
|
4479
|
+
}
|
|
4224
4480
|
getTotalBytes() {
|
|
4225
4481
|
return this._totalBytes;
|
|
4226
4482
|
}
|
|
@@ -4230,52 +4486,54 @@ var Ua = 67108864, Wa = class {
|
|
|
4230
4486
|
markStructuralChange() {
|
|
4231
4487
|
this._structurallyChanged = !0;
|
|
4232
4488
|
}
|
|
4233
|
-
},
|
|
4234
|
-
function
|
|
4235
|
-
return e ?
|
|
4489
|
+
}, po = /* @__PURE__ */ new WeakMap();
|
|
4490
|
+
function mo(e) {
|
|
4491
|
+
return e ? po.get(e) ?? null : null;
|
|
4236
4492
|
}
|
|
4237
|
-
function
|
|
4238
|
-
|
|
4493
|
+
function ho(e, t) {
|
|
4494
|
+
po.set(e, t);
|
|
4239
4495
|
}
|
|
4240
|
-
function
|
|
4241
|
-
e &&
|
|
4496
|
+
function go(e) {
|
|
4497
|
+
e && po.delete(e);
|
|
4242
4498
|
}
|
|
4243
|
-
var
|
|
4244
|
-
if (
|
|
4245
|
-
if (typeof
|
|
4246
|
-
if (typeof
|
|
4247
|
-
if (typeof
|
|
4248
|
-
let n =
|
|
4499
|
+
var _o = /* @__PURE__ */ new Set(/* @__PURE__ */ "A1.R1C1,ABSREF,ACTIVATE,ACTIVATE.NEXT,ACTIVATE.NOTES,ACTIVATE.PREV,ACTIVE.CELL,ACTIVE.CELL.FONT,ADD.ARROW,ADD.BAR,ADD.CHART.AUTOFORMAT,ADD.COMMAND,ADD.LIST.ITEM,ADD.MENU,ADD.OVERLAY,ADD.PRINT.AREA,ADD.TOOL,ADD.TOOLBAR,ADDIN.MANAGER,ALERT,ALIGNMENT,APP.ACTIVATE,APP.ACTIVATE.MICROSOFT,APP.MAXIMIZE,APP.MINIMIZE,APP.MOVE,APP.RESTORE,APP.SIZE,APP.TITLE,APPLY.NAMES,APPLY.STYLE,ARGUMENT,ARRANGE.ALL,ASSIGN.TO.OBJECT,ASSIGN.TO.TOOL,ATTACH.TEXT,ATTACH.TOOLBARS,ATTRIBUTES,AUTO.OUTLINE,AUTOCORRECT,AXES,BEEP,BORDER,BREAK,BRING.TO.FRONT,CALCULATE.DOCUMENT,CALCULATE.NOW,CALCULATION,CALL,CALLER,CANCEL.COPY,CANCEL.KEY,CELL.PROTECTION,CHANGE.LINK,CHART.ADD.DATA,CHART.TREND,CHART.WIZARD,CHECK.COMMAND,CHECKBOX.PROPERTIES,CLEAR,CLEAR.OUTLINE,CLEAR.PRINT.AREA,CLEAR.ROUTING.SLIP,CLOSE,CLOSE.ALL,COLOR.PALETTE,COLUMN.WIDTH,COMBINATION,CONSOLIDATE,CONSTRAIN.NUMERIC,COPY,COPY.CHART,COPY.PICTURE,COPY.TOOL,CREATE.NAMES,CREATE.OBJECT,CREATE.PUBLISHER,CUSTOM.REPEAT,CUSTOM.UNDO,CUSTOMIZE.TOOLBAR,CUT,DATA.DELETE,DATA.FIND,DATA.FIND.NEXT,DATA.FIND.PREV,DATA.FORM,DATA.LABEL,DATA.SERIES,DEFINE.NAME,DEFINE.STYLE,DELETE.ARROW,DELETE.BAR,DELETE.CHART.AUTOFORMAT,DELETE.COMMAND,DELETE.FORMAT,DELETE.MENU,DELETE.NAME,DELETE.NOTE,DELETE.OVERLAY,DELETE.STYLE,DELETE.TOOL,DELETE.TOOLBAR,DEMOTE,DEREF,DIALOG.BOX,DIRECTORY,DISABLE.INPUT,DISPLAY,DOCUMENTS,DUPLICATE,ECHO,EDIT.COLOR,EDIT.DELETE,EDIT.OBJECT,EDIT.REPEAT,EDIT.SERIES,EDIT.TOOL,EDITBOX.PROPERTIES,EDITION.OPTIONS,ELSE,ELSE.IF,ENABLE.COMMAND,ENABLE.OBJECT,ENABLE.TIPWIZARD,ENABLE.TOOL,END.IF,ENTER.DATA,ERROR,ERRORBAR.X,ERRORBAR.Y,EVALUATE,EXEC,EXECUTE,EXTEND.POLYGON,EXTRACT,FCLOSE,FILE.CLOSE,FILE.DELETE,FILES,FILL.AUTO,FILL.DOWN,FILL.GROUP,FILL.LEFT,FILL.RIGHT,FILL.UP,FILTER.ADVANCED,FILTER.SHOW.ALL,FIND.FILE,FONT,FONT.PROPERTIES,FOPEN,FOR,FOR.CELL,FORMAT.AUTO,FORMAT.CHART,FORMAT.CHARTTYPE,FORMAT.FONT,FORMAT.LEGEND,FORMAT.MAIN,FORMAT.MOVE,FORMAT.NUMBER,FORMAT.OVERLAY,FORMAT.SHAPE,FORMAT.SIZE,FORMAT.TEXT,FORMULA,FORMULA.ARRAY,FORMULA.CONVERT,FORMULA.FILL,FORMULA.FIND,FORMULA.FIND.NEXT,FORMULA.FIND.PREV,FORMULA.GOTO,FORMULA.REPLACE,FPOS,FREAD,FREADLN,FREEZE.PANES,FSIZE,FULL,FULL.SCREEN,FUNCTION.WIZARD,FWRITE,FWRITELN,GALLERY.3D.AREA,GALLERY.3D.BAR,GALLERY.3D.COLUMN,GALLERY.3D.LINE,GALLERY.3D.PIE,GALLERY.3D.SURFACE,GALLERY.AREA,GALLERY.BAR,GALLERY.COLUMN,GALLERY.CUSTOM,GALLERY.DOUGHNUT,GALLERY.LINE,GALLERY.PIE,GALLERY.RADAR,GALLERY.SCATTER,GET.BAR,GET.CELL,GET.CHART.ITEM,GET.DEF,GET.DOCUMENT,GET.FORMULA,GET.LINK.INFO,GET.MOVIE,GET.NAME,GET.NOTE,GET.OBJECT,GET.TOOL,GET.TOOLBAR,GET.WINDOW,GET.WORKBOOK,GET.WORKSPACE,GOAL.SEEK,GOTO,GRIDLINES,GROUP,HALT,HELP,HIDE,HIDE.DIALOG,HIDE.OBJECT,HIDEALL.INKANNOTS,HIDEALL.NOTES,HIDECURR.NOTE,HLINE,HPAGE,HSCROLL,INITIATE,INPUT,INSERT,INSERT.MAP.OBJECT,INSERT.OBJECT,INSERT.PICTURE,INSERT.TITLE,INSERTDATATABLE,JUSTIFY,LABEL.PROPERTIES,LAST.ERROR,LAYOUT,LEGEND,LINE.PRINT,LINK.COMBO,LINK.FORMAT,LINKS,LIST.NAMES,LISTBOX.PROPERTIES,MACRO.OPTIONS,MAIL.ADD.MAILER,MAIL.DELETE.MAILER,MAIL.EDIT.MAILER,MAIL.FORWARD,MAIL.LOGOFF,MAIL.LOGON,MAIL.NEXT.LETTER,MAIL.REPLY,MAIL.REPLY.ALL,MAIL.SEND.MAILER,MAIN.CHART,MAIN.CHART.TYPE,MENU.EDITOR,MERGE.STYLES,MESSAGE,MOVE.BRK,MOVE.TOOL,MOVIE.COMMAND,MSOCHECKS,NAMES,NEW,NEW.WINDOW,NEWWEBQUERY,NEXT,NORMAL,NOTE,OBJECT.PROPERTIES,OBJECT.PROTECTION,ON.DATA,ON.DOUBLECLICK,ON.ENTRY,ON.KEY,ON.RECALC,ON.SHEET,ON.TIME,ON.WINDOW,OPEN,OPEN.DIALOG,OPEN.LINKS,OPEN.MAIL,OPEN.TEXT,OPTIONS.CALCULATION,OPTIONS.CHART,OPTIONS.EDIT,OPTIONS.GENERAL,OPTIONS.LISTS.ADD,OPTIONS.LISTS.DELETE,OPTIONS.LISTS.GET,OPTIONS.ME,OPTIONS.MENONO,OPTIONS.SAVE,OPTIONS.SPELL,OPTIONS.TRANSITION,OPTIONS.VIEW,OUTLINE,OVERLAY,OVERLAY.CHART.TYPE,PAGE.SETUP,PARSE,PASTE,PASTE.LINK,PASTE.PICTURE,PASTE.PICTURE.LINK,PASTE.SPECIAL,PASTE.TOOL,PATTERNS,PAUSE,PICKLIST,PIVOT.ADD.FIELDS,PIVOT.FIELD,PIVOT.FIELD.GROUP,PIVOT.FIELD.PROPERTIES,PIVOT.FIELD.UNGROUP,PIVOT.ITEM,PIVOT.ITEM.PROPERTIES,PIVOT.REFRESH,PIVOT.SHOW.PAGES,PIVOT.TABLE.CHART,PIVOT.TABLE.WIZARD,POKE,POST.DOCUMENT,PRECISION,PREFERRED,PRESS.TOOL,PRINT,PRINT.PREVIEW,PRINTER.SETUP,PROMOTE,PROTECT.DOCUMENT,PROTECT.REVISIONS,PUSHBUTTON.PROPERTIES,QUIT,REFTEXT,REGISTER,REGISTER.ID,RELREF,REMOVE.LIST.ITEM,REMOVE.PAGE.BREAK,RENAME.COMMAND,RENAME.OBJECT,REPLACE.FONT,REQUEST,RESET.TOOL,RESET.TOOLBAR,RESTART,RESULT,RESUME,RETURN,RM.PRINT.AREA,ROUTE.DOCUMENT,ROUTING.SLIP,ROW.HEIGHT,RUN,SAVE,SAVE.AS,SAVE.COPY.AS,SAVE.DIALOG,SAVE.NEW.OBJECT,SAVE.TOOLBAR,SAVE.WORKBOOK,SAVE.WORKSPACE,SCALE,SCENARIO.ADD,SCENARIO.CELLS,SCENARIO.DELETE,SCENARIO.EDIT,SCENARIO.GET,SCENARIO.MERGE,SCENARIO.SHOW,SCENARIO.SHOW.NEXT,SCENARIO.SUMMARY,SCROLLBAR.PROPERTIES,SELECT,SELECT.ALL,SELECT.CHART,SELECT.END,SELECT.LAST.CELL,SELECT.LIST.ITEM,SELECT.PLOT.AREA,SELECT.SPECIAL,SELECTION,SERIES,SEND.KEYS,SEND.MAIL,SEND.TO.BACK,SERIES.AXES,SERIES.ORDER,SERIES.X,SERIES.Y,SET.CONTROL.VALUE,SET.CRITERIA,SET.DATABASE,SET.DIALOG.DEFAULT,SET.DIALOG.FOCUS,SET.EXTRACT,SET.LIST.ITEM,SET.NAME,SET.PAGE.BREAK,SET.PREFERRED,SET.PRINT.AREA,SET.PRINT.TITLES,SET.UPDATE.STATUS,SET.VALUE,SHARE,SHARE.NAME,SHEET.BACKGROUND,SHORT.MENUS,SHOW.ACTIVE.CELL,SHOW.BAR,SHOW.CLIPBOARD,SHOW.DETAIL,SHOW.DIALOG,SHOW.INFO,SHOW.LEVELS,SHOW.TOOLBAR,SORT.SPECIAL,SOUND.NOTE,SOUND.PLAY,SPELLING,SPELLING.CHECK,SPLIT,STANDARD.FONT,STANDARD.WIDTH,STEP,STYLE,SUBSCRIBE.TO,SUBTOTAL.CREATE,SUBTOTAL.REMOVE,SUMMARY.INFO,TAB.ORDER,TABLE,TERMINATE,TEXT.BOX,TEXT.TO.COLUMNS,TEXTREF,TRACER.CLEAR,TRACER.DISPLAY,TRACER.ERROR,TRACER.NAVIGATE,TRAVERSE.NOTES,UNDO,UNGROUP,UNGROUP.SHEETS,UNHIDE,UNLOCKED.NEXT,UNLOCKED.PREV,UNPROTECT.REVISIONS,UNREGISTER,UPDATE.LINK,VBA.INSERT.FILE,VBA.MAKE.ADDIN,VBA.PROCEDURE.DEFINITION,VBAACTIVATE,VIEW.3D,VIEW.DEFINE,VIEW.DELETE,VIEW.GET,VIEW.SHOW,VLINE,VOLATILE,VPAGE,VSCROLL,WAIT,WEB.PUBLISH,WHILE,WINDOW.MAXIMIZE,WINDOW.MINIMIZE,WINDOW.MOVE,WINDOW.RESTORE,WINDOW.SIZE,WINDOW.TITLE,WINDOWS,WORKBOOK.ACTIVATE,WORKBOOK.ADD,WORKBOOK.COPY,WORKBOOK.DELETE,WORKBOOK.HIDE,WORKBOOK.INSERT,WORKBOOK.MOVE,WORKBOOK.NAME,WORKBOOK.NEW,WORKBOOK.NEXT,WORKBOOK.OPTIONS,WORKBOOK.PREV,WORKBOOK.PROTECT,WORKBOOK.SCROLL,WORKBOOK.SELECT,WORKBOOK.TAB.SPLIT,WORKBOOK.UNHIDE,WORKGROUP,WORKGROUP.OPTIONS,WORKSPACE,ZOOM".split(",")), vo = "__xludf.DUMMYFUNCTION", yo = "\"COMPUTED_VALUE\"", bo = (e) => `"${e.replace(/"/g, "\"\"")}"`, xo = (e) => {
|
|
4500
|
+
if (e == null) return "\"\"";
|
|
4501
|
+
if (typeof e == "number") return Number.isFinite(e) ? "" + e : null;
|
|
4502
|
+
if (typeof e == "boolean") return e ? "TRUE" : "FALSE";
|
|
4503
|
+
if (typeof e == "string") return bo(e);
|
|
4504
|
+
let n = e;
|
|
4249
4505
|
if (typeof n?.getCode == "function") {
|
|
4250
|
-
let
|
|
4251
|
-
return
|
|
4506
|
+
let e = n.getCode();
|
|
4507
|
+
return e < 1 ? null : e > 7 ? t.BuiltIn.Value.getLabel() : n.getLabel();
|
|
4252
4508
|
}
|
|
4253
4509
|
return null;
|
|
4254
|
-
},
|
|
4255
|
-
let n =
|
|
4256
|
-
return n === null ? null : `IFERROR(${
|
|
4257
|
-
},
|
|
4258
|
-
let t =
|
|
4259
|
-
return t === null ? null : `IFERROR(${
|
|
4260
|
-
},
|
|
4510
|
+
}, So = (e, t) => {
|
|
4511
|
+
let n = xo(t);
|
|
4512
|
+
return n === null ? null : `IFERROR(${vo}(${bo(e)}),${n})`;
|
|
4513
|
+
}, Co = (e) => {
|
|
4514
|
+
let t = xo(e);
|
|
4515
|
+
return t === null ? null : `IFERROR(${vo}(${bo(yo)}),${t})`;
|
|
4516
|
+
}, wo = async (e, t) => {
|
|
4261
4517
|
let n = /* @__PURE__ */ new Set();
|
|
4262
4518
|
if (t.size === 0) return n;
|
|
4263
|
-
let r = e.getCalculation()
|
|
4519
|
+
let r = e.getCalculation();
|
|
4520
|
+
if (r.getStatus() !== i.Status.Running) return n;
|
|
4521
|
+
let a = r.getFunctions();
|
|
4264
4522
|
for (let e of t) {
|
|
4265
|
-
let t =
|
|
4523
|
+
let t = a.getByName(e);
|
|
4266
4524
|
if (!t) {
|
|
4267
|
-
|
|
4525
|
+
_o.has(e.toUpperCase()) && n.add(e.toUpperCase());
|
|
4268
4526
|
continue;
|
|
4269
4527
|
}
|
|
4270
4528
|
if (!t.isBuiltIn()) {
|
|
4271
4529
|
n.add(e.toUpperCase());
|
|
4272
4530
|
continue;
|
|
4273
4531
|
}
|
|
4274
|
-
let
|
|
4275
|
-
|
|
4532
|
+
let r = (await t.getDescriptor()).getCategory();
|
|
4533
|
+
r !== "Sheets" && r !== "SheetXL" || n.add(e.toUpperCase());
|
|
4276
4534
|
}
|
|
4277
4535
|
return n;
|
|
4278
|
-
},
|
|
4536
|
+
}, To = (e) => e.indexOf("_x") === -1 ? e : e.replace(/_x([0-9A-Fa-f]{4})_/g, (e, t) => String.fromCharCode(parseInt(t, 16))), Eo = (e) => Do(e) ? e.replace(/(_x[0-9A-Fa-f]{4}_)/g, "_x005F$1").replace(/[\x00-\x08\x0B-\x1F]/g, (e) => `_x${e.charCodeAt(0).toString(16).toUpperCase().padStart(4, "0")}_`) : e, Do = (e) => {
|
|
4279
4537
|
let t = e.length;
|
|
4280
4538
|
for (let n = 0; n < t; n++) {
|
|
4281
4539
|
let r = e.charCodeAt(n);
|
|
@@ -4286,30 +4544,152 @@ var Ya = /* @__PURE__ */ new Set(/* @__PURE__ */ "A1.R1C1,ABSREF,ACTIVATE,ACTIVA
|
|
|
4286
4544
|
}
|
|
4287
4545
|
}
|
|
4288
4546
|
return !1;
|
|
4289
|
-
},
|
|
4290
|
-
|
|
4547
|
+
}, Oo = /^\s|\s$/, ko = { "xml:space": "preserve" }, Ao = [
|
|
4548
|
+
{
|
|
4549
|
+
key: "sheet",
|
|
4550
|
+
attribute: "sheet",
|
|
4551
|
+
modelDefault: !1,
|
|
4552
|
+
ooxmlDefault: !1
|
|
4553
|
+
},
|
|
4554
|
+
{
|
|
4555
|
+
key: "objects",
|
|
4556
|
+
attribute: "objects",
|
|
4557
|
+
modelDefault: !1,
|
|
4558
|
+
ooxmlDefault: !1
|
|
4559
|
+
},
|
|
4560
|
+
{
|
|
4561
|
+
key: "scenarios",
|
|
4562
|
+
attribute: "scenarios",
|
|
4563
|
+
modelDefault: !1,
|
|
4564
|
+
ooxmlDefault: !1
|
|
4565
|
+
},
|
|
4566
|
+
{
|
|
4567
|
+
key: "formatCells",
|
|
4568
|
+
attribute: "formatCells",
|
|
4569
|
+
modelDefault: !1,
|
|
4570
|
+
ooxmlDefault: !0
|
|
4571
|
+
},
|
|
4572
|
+
{
|
|
4573
|
+
key: "formatColumns",
|
|
4574
|
+
attribute: "formatColumns",
|
|
4575
|
+
modelDefault: !1,
|
|
4576
|
+
ooxmlDefault: !0
|
|
4577
|
+
},
|
|
4578
|
+
{
|
|
4579
|
+
key: "formatRows",
|
|
4580
|
+
attribute: "formatRows",
|
|
4581
|
+
modelDefault: !1,
|
|
4582
|
+
ooxmlDefault: !0
|
|
4583
|
+
},
|
|
4584
|
+
{
|
|
4585
|
+
key: "insertColumns",
|
|
4586
|
+
attribute: "insertColumns",
|
|
4587
|
+
modelDefault: !1,
|
|
4588
|
+
ooxmlDefault: !0
|
|
4589
|
+
},
|
|
4590
|
+
{
|
|
4591
|
+
key: "insertRows",
|
|
4592
|
+
attribute: "insertRows",
|
|
4593
|
+
modelDefault: !1,
|
|
4594
|
+
ooxmlDefault: !0
|
|
4595
|
+
},
|
|
4596
|
+
{
|
|
4597
|
+
key: "insertHyperlinks",
|
|
4598
|
+
attribute: "insertHyperlinks",
|
|
4599
|
+
modelDefault: !1,
|
|
4600
|
+
ooxmlDefault: !0
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
key: "deleteColumns",
|
|
4604
|
+
attribute: "deleteColumns",
|
|
4605
|
+
modelDefault: !1,
|
|
4606
|
+
ooxmlDefault: !0
|
|
4607
|
+
},
|
|
4608
|
+
{
|
|
4609
|
+
key: "deleteRows",
|
|
4610
|
+
attribute: "deleteRows",
|
|
4611
|
+
modelDefault: !1,
|
|
4612
|
+
ooxmlDefault: !0
|
|
4613
|
+
},
|
|
4614
|
+
{
|
|
4615
|
+
key: "selectLockedCells",
|
|
4616
|
+
attribute: "selectLockedCells",
|
|
4617
|
+
modelDefault: !0,
|
|
4618
|
+
ooxmlDefault: !1
|
|
4619
|
+
},
|
|
4620
|
+
{
|
|
4621
|
+
key: "sort",
|
|
4622
|
+
attribute: "sort",
|
|
4623
|
+
modelDefault: !1,
|
|
4624
|
+
ooxmlDefault: !0
|
|
4625
|
+
},
|
|
4626
|
+
{
|
|
4627
|
+
key: "autoTable",
|
|
4628
|
+
attribute: "autoFilter",
|
|
4629
|
+
modelDefault: !1,
|
|
4630
|
+
ooxmlDefault: !0
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
key: "pivotTables",
|
|
4634
|
+
attribute: "pivotTables",
|
|
4635
|
+
modelDefault: !1,
|
|
4636
|
+
ooxmlDefault: !0
|
|
4637
|
+
},
|
|
4638
|
+
{
|
|
4639
|
+
key: "selectUnlockedCells",
|
|
4640
|
+
attribute: "selectUnlockedCells",
|
|
4641
|
+
modelDefault: !0,
|
|
4642
|
+
ooxmlDefault: !1
|
|
4643
|
+
}
|
|
4644
|
+
], jo = [
|
|
4645
|
+
{
|
|
4646
|
+
key: "structure",
|
|
4647
|
+
attribute: "lockStructure",
|
|
4648
|
+
modelDefault: !1,
|
|
4649
|
+
ooxmlDefault: !1
|
|
4650
|
+
},
|
|
4651
|
+
{
|
|
4652
|
+
key: "windows",
|
|
4653
|
+
attribute: "lockWindows",
|
|
4654
|
+
modelDefault: !1,
|
|
4655
|
+
ooxmlDefault: !1
|
|
4656
|
+
},
|
|
4657
|
+
{
|
|
4658
|
+
key: "revision",
|
|
4659
|
+
attribute: "lockRevision",
|
|
4660
|
+
modelDefault: !0,
|
|
4661
|
+
ooxmlDefault: !1
|
|
4662
|
+
}
|
|
4663
|
+
], Mo = (e, t) => {
|
|
4664
|
+
let n = e.ooxmlDefault;
|
|
4665
|
+
return t === "1" || t === "true" || t === "on" ? n = !0 : t !== "0" && t !== "false" && t !== "off" || (n = !1), !n;
|
|
4666
|
+
}, No = (e, t) => {
|
|
4667
|
+
let n = !(t ?? e.modelDefault);
|
|
4668
|
+
return n === e.ooxmlDefault ? null : n ? "1" : "0";
|
|
4669
|
+
};
|
|
4670
|
+
function Po(e) {
|
|
4291
4671
|
if (e === void 0) return;
|
|
4292
4672
|
if (e.trim().length === 0) return e;
|
|
4293
|
-
let t =
|
|
4673
|
+
let t = o(e);
|
|
4294
4674
|
return t === void 0 ? "=" + e : t;
|
|
4295
4675
|
}
|
|
4296
|
-
function
|
|
4297
|
-
if (
|
|
4298
|
-
if (typeof
|
|
4299
|
-
if (typeof
|
|
4300
|
-
if (
|
|
4301
|
-
if (typeof
|
|
4302
|
-
let n =
|
|
4676
|
+
function Fo(e) {
|
|
4677
|
+
if (e == null) return;
|
|
4678
|
+
if (typeof e == "number") return String(e);
|
|
4679
|
+
if (typeof e == "boolean") return e ? "TRUE" : "FALSE";
|
|
4680
|
+
if (t.isError(e)) return e.getLabel();
|
|
4681
|
+
if (typeof e == "string") return e.startsWith("=") ? e.slice(1) : Io(e);
|
|
4682
|
+
let n = e;
|
|
4303
4683
|
if (n.t === "e" && typeof n.v == "number") {
|
|
4304
|
-
let
|
|
4305
|
-
if (
|
|
4684
|
+
let e = t.getBuiltInByCode(n.v);
|
|
4685
|
+
if (e) return e.getLabel();
|
|
4306
4686
|
}
|
|
4307
|
-
return String(
|
|
4687
|
+
return String(e);
|
|
4308
4688
|
}
|
|
4309
|
-
function
|
|
4689
|
+
function Io(e) {
|
|
4310
4690
|
return `"${e.split("\"").join("\"\"")}"`;
|
|
4311
4691
|
}
|
|
4312
|
-
var
|
|
4692
|
+
var Lo = "aboveAverage", Ro = "beginsWith", zo = "cellIs", Bo = "colorScale", Vo = "containsBlanks", Ho = "containsErrors", Uo = "containsText", Wo = "dataBar", Go = "duplicateValues", Ko = "endsWith", qo = "expression", Jo = "iconSet", Yo = "notContainsBlanks", Xo = "notContainsErrors", Zo = "notContainsText", Qo = "timePeriod", $o = "top10", es = "uniqueValues", Z = a.BuiltInOperatorNames, ts = {
|
|
4313
4693
|
equal: { operator: Z.EqualTo },
|
|
4314
4694
|
notEqual: {
|
|
4315
4695
|
operator: Z.EqualTo,
|
|
@@ -4324,7 +4704,7 @@ var fo = "aboveAverage", po = "beginsWith", mo = "cellIs", ho = "colorScale", go
|
|
|
4324
4704
|
operator: Z.Between,
|
|
4325
4705
|
negate: !0
|
|
4326
4706
|
}
|
|
4327
|
-
},
|
|
4707
|
+
}, ns = {
|
|
4328
4708
|
[Z.EqualTo]: {
|
|
4329
4709
|
plain: "equal",
|
|
4330
4710
|
negated: "notEqual"
|
|
@@ -4349,7 +4729,7 @@ var fo = "aboveAverage", po = "beginsWith", mo = "cellIs", ho = "colorScale", go
|
|
|
4349
4729
|
plain: "between",
|
|
4350
4730
|
negated: "notBetween"
|
|
4351
4731
|
}
|
|
4352
|
-
},
|
|
4732
|
+
}, rs = /* @__PURE__ */ new Set([
|
|
4353
4733
|
"today",
|
|
4354
4734
|
"yesterday",
|
|
4355
4735
|
"tomorrow",
|
|
@@ -4361,72 +4741,72 @@ var fo = "aboveAverage", po = "beginsWith", mo = "cellIs", ho = "colorScale", go
|
|
|
4361
4741
|
"lastWeek",
|
|
4362
4742
|
"nextWeek"
|
|
4363
4743
|
]);
|
|
4364
|
-
function
|
|
4365
|
-
return
|
|
4744
|
+
function is(e) {
|
|
4745
|
+
return Po(e);
|
|
4366
4746
|
}
|
|
4367
|
-
function
|
|
4368
|
-
return
|
|
4747
|
+
function as(e) {
|
|
4748
|
+
return Fo(e) ?? "";
|
|
4369
4749
|
}
|
|
4370
|
-
function
|
|
4750
|
+
function os(e, t) {
|
|
4371
4751
|
return t ? {
|
|
4372
4752
|
operator: Z.Not,
|
|
4373
4753
|
param: e
|
|
4374
4754
|
} : e;
|
|
4375
4755
|
}
|
|
4376
|
-
function
|
|
4377
|
-
let
|
|
4378
|
-
if (!
|
|
4379
|
-
let
|
|
4380
|
-
switch (
|
|
4381
|
-
case
|
|
4382
|
-
case
|
|
4383
|
-
case
|
|
4384
|
-
case
|
|
4385
|
-
let
|
|
4386
|
-
if (!
|
|
4387
|
-
let
|
|
4388
|
-
from:
|
|
4389
|
-
to:
|
|
4390
|
-
} :
|
|
4391
|
-
return
|
|
4392
|
-
operator:
|
|
4393
|
-
param:
|
|
4394
|
-
},
|
|
4756
|
+
function ss(e, t) {
|
|
4757
|
+
let n = e.type;
|
|
4758
|
+
if (!n) return null;
|
|
4759
|
+
let r = e.formulas ?? [];
|
|
4760
|
+
switch (n) {
|
|
4761
|
+
case Bo:
|
|
4762
|
+
case Wo:
|
|
4763
|
+
case Jo: return null;
|
|
4764
|
+
case zo: {
|
|
4765
|
+
let n = e.operator ? ts[e.operator] : void 0;
|
|
4766
|
+
if (!n) return t?.(`Conditional format operator '${e.operator}' is not a known cellIs operator.`), null;
|
|
4767
|
+
let i = n.operator === Z.Between ? {
|
|
4768
|
+
from: is(r[0]),
|
|
4769
|
+
to: is(r[1])
|
|
4770
|
+
} : is(r[0]);
|
|
4771
|
+
return os({
|
|
4772
|
+
operator: n.operator,
|
|
4773
|
+
param: i
|
|
4774
|
+
}, n.negate);
|
|
4395
4775
|
}
|
|
4396
|
-
case
|
|
4776
|
+
case qo: return {
|
|
4397
4777
|
operator: Z.Expression,
|
|
4398
|
-
param:
|
|
4778
|
+
param: r[0] ?? ""
|
|
4399
4779
|
};
|
|
4400
|
-
case
|
|
4780
|
+
case Uo: return {
|
|
4401
4781
|
operator: Z.TextContains,
|
|
4402
4782
|
param: e.text
|
|
4403
4783
|
};
|
|
4404
|
-
case
|
|
4784
|
+
case Zo: return os({
|
|
4405
4785
|
operator: Z.TextContains,
|
|
4406
4786
|
param: e.text
|
|
4407
4787
|
}, !0);
|
|
4408
|
-
case
|
|
4788
|
+
case Ro: return {
|
|
4409
4789
|
operator: Z.TextStartsWith,
|
|
4410
4790
|
param: e.text
|
|
4411
4791
|
};
|
|
4412
|
-
case
|
|
4792
|
+
case Ko: return {
|
|
4413
4793
|
operator: Z.TextEndsWith,
|
|
4414
4794
|
param: e.text
|
|
4415
4795
|
};
|
|
4416
|
-
case
|
|
4417
|
-
case
|
|
4418
|
-
case
|
|
4419
|
-
case
|
|
4420
|
-
case
|
|
4421
|
-
case
|
|
4422
|
-
case
|
|
4796
|
+
case Vo: return { operator: Z.Blank };
|
|
4797
|
+
case Yo: return os({ operator: Z.Blank }, !0);
|
|
4798
|
+
case Ho: return { operator: Z.Error };
|
|
4799
|
+
case Xo: return os({ operator: Z.Error }, !0);
|
|
4800
|
+
case es: return { operator: Z.Unique };
|
|
4801
|
+
case Go: return os({ operator: Z.Unique }, !0);
|
|
4802
|
+
case Qo: {
|
|
4423
4803
|
let t = {};
|
|
4424
4804
|
return e.timePeriod && (t.type = e.timePeriod), {
|
|
4425
4805
|
operator: Z.TimePeriod,
|
|
4426
4806
|
param: t
|
|
4427
4807
|
};
|
|
4428
4808
|
}
|
|
4429
|
-
case
|
|
4809
|
+
case $o: {
|
|
4430
4810
|
let t = {
|
|
4431
4811
|
top: !e.bottom,
|
|
4432
4812
|
percent: e.percent ?? !1
|
|
@@ -4436,158 +4816,158 @@ function Io(e, n) {
|
|
|
4436
4816
|
param: t
|
|
4437
4817
|
};
|
|
4438
4818
|
}
|
|
4439
|
-
case
|
|
4440
|
-
let
|
|
4441
|
-
return e.stdDev !== void 0 && (
|
|
4819
|
+
case Lo: {
|
|
4820
|
+
let t = e.aboveAverage ?? !0, n = e.equalAverage ?? !1, r = { type: t ? n ? a.AverageType.AboveOrEqual : a.AverageType.Above : n ? a.AverageType.BelowOrEqual : a.AverageType.Below };
|
|
4821
|
+
return e.stdDev !== void 0 && (r.stdDevs = e.stdDev), {
|
|
4442
4822
|
operator: Z.Average,
|
|
4443
|
-
param:
|
|
4823
|
+
param: r
|
|
4444
4824
|
};
|
|
4445
4825
|
}
|
|
4446
|
-
default: return
|
|
4826
|
+
default: return t?.(`Conditional format type '${n}' has no condition mapping.`), null;
|
|
4447
4827
|
}
|
|
4448
4828
|
}
|
|
4449
|
-
function
|
|
4829
|
+
function cs(e, t, n) {
|
|
4450
4830
|
if (!e) return null;
|
|
4451
|
-
let
|
|
4831
|
+
let r = e.operator === Z.Not, i = (r ? e.param : e) ?? {}, o = i.operator, s = i.param;
|
|
4452
4832
|
if (!o) return null;
|
|
4453
|
-
let c =
|
|
4833
|
+
let c = ns[o];
|
|
4454
4834
|
if (c) {
|
|
4455
|
-
let e =
|
|
4835
|
+
let e = r ? c.negated : c.plain;
|
|
4456
4836
|
return e ? {
|
|
4457
|
-
type:
|
|
4837
|
+
type: zo,
|
|
4458
4838
|
operator: e,
|
|
4459
|
-
formulas: o === Z.Between ? [
|
|
4460
|
-
} : (
|
|
4839
|
+
formulas: o === Z.Between ? [as(s?.from), as(s?.to)] : [as(s)]
|
|
4840
|
+
} : (n?.(`Conditional format operator 'not(${o})' has no OOXML form.`), null);
|
|
4461
4841
|
}
|
|
4462
4842
|
switch (o) {
|
|
4463
4843
|
case Z.Expression:
|
|
4464
|
-
if (
|
|
4844
|
+
if (r) break;
|
|
4465
4845
|
return {
|
|
4466
|
-
type:
|
|
4846
|
+
type: qo,
|
|
4467
4847
|
formulas: [s == null ? "" : String(s)]
|
|
4468
4848
|
};
|
|
4469
4849
|
case Z.TextContains: {
|
|
4470
4850
|
let e = String(s ?? "");
|
|
4471
|
-
return
|
|
4472
|
-
type:
|
|
4851
|
+
return r ? {
|
|
4852
|
+
type: Zo,
|
|
4473
4853
|
text: e,
|
|
4474
|
-
formulas: [`ISERROR(SEARCH(${
|
|
4854
|
+
formulas: [`ISERROR(SEARCH(${Io(e)},${t}))`]
|
|
4475
4855
|
} : {
|
|
4476
|
-
type:
|
|
4856
|
+
type: Uo,
|
|
4477
4857
|
text: e,
|
|
4478
|
-
formulas: [`NOT(ISERROR(SEARCH(${
|
|
4858
|
+
formulas: [`NOT(ISERROR(SEARCH(${Io(e)},${t})))`]
|
|
4479
4859
|
};
|
|
4480
4860
|
}
|
|
4481
4861
|
case Z.TextStartsWith: {
|
|
4482
|
-
if (
|
|
4862
|
+
if (r) break;
|
|
4483
4863
|
let e = String(s ?? "");
|
|
4484
4864
|
return {
|
|
4485
|
-
type:
|
|
4865
|
+
type: Ro,
|
|
4486
4866
|
text: e,
|
|
4487
|
-
formulas: [`LEFT(${
|
|
4867
|
+
formulas: [`LEFT(${t},LEN(${Io(e)}))=${Io(e)}`]
|
|
4488
4868
|
};
|
|
4489
4869
|
}
|
|
4490
4870
|
case Z.TextEndsWith: {
|
|
4491
|
-
if (
|
|
4871
|
+
if (r) break;
|
|
4492
4872
|
let e = String(s ?? "");
|
|
4493
4873
|
return {
|
|
4494
|
-
type:
|
|
4874
|
+
type: Ko,
|
|
4495
4875
|
text: e,
|
|
4496
|
-
formulas: [`RIGHT(${
|
|
4876
|
+
formulas: [`RIGHT(${t},LEN(${Io(e)}))=${Io(e)}`]
|
|
4497
4877
|
};
|
|
4498
4878
|
}
|
|
4499
|
-
case Z.Blank: return
|
|
4500
|
-
type:
|
|
4501
|
-
formulas: [`LEN(TRIM(${
|
|
4879
|
+
case Z.Blank: return r ? {
|
|
4880
|
+
type: Yo,
|
|
4881
|
+
formulas: [`LEN(TRIM(${t}))>0`]
|
|
4502
4882
|
} : {
|
|
4503
|
-
type:
|
|
4504
|
-
formulas: [`LEN(TRIM(${
|
|
4883
|
+
type: Vo,
|
|
4884
|
+
formulas: [`LEN(TRIM(${t}))=0`]
|
|
4505
4885
|
};
|
|
4506
|
-
case Z.Error: return
|
|
4507
|
-
type:
|
|
4508
|
-
formulas: [`NOT(ISERROR(${
|
|
4886
|
+
case Z.Error: return r ? {
|
|
4887
|
+
type: Xo,
|
|
4888
|
+
formulas: [`NOT(ISERROR(${t}))`]
|
|
4509
4889
|
} : {
|
|
4510
|
-
type:
|
|
4511
|
-
formulas: [`ISERROR(${
|
|
4890
|
+
type: Ho,
|
|
4891
|
+
formulas: [`ISERROR(${t})`]
|
|
4512
4892
|
};
|
|
4513
|
-
case Z.Unique: return { type:
|
|
4893
|
+
case Z.Unique: return { type: r ? Go : es };
|
|
4514
4894
|
case Z.TimePeriod: {
|
|
4515
|
-
if (
|
|
4895
|
+
if (r) break;
|
|
4516
4896
|
let e = s?.type;
|
|
4517
|
-
return e && !
|
|
4518
|
-
type:
|
|
4897
|
+
return e && !rs.has(e) ? (n?.(`Conditional format time period '${e}' has no OOXML form; rule skipped.`), null) : {
|
|
4898
|
+
type: Qo,
|
|
4519
4899
|
timePeriod: e
|
|
4520
4900
|
};
|
|
4521
4901
|
}
|
|
4522
4902
|
case Z.TopN: {
|
|
4523
|
-
if (
|
|
4903
|
+
if (r) break;
|
|
4524
4904
|
let e = s ?? {};
|
|
4525
4905
|
return {
|
|
4526
|
-
type:
|
|
4906
|
+
type: $o,
|
|
4527
4907
|
bottom: !(e.top ?? 1),
|
|
4528
4908
|
percent: e.percent ?? !1,
|
|
4529
4909
|
rank: e.limit
|
|
4530
4910
|
};
|
|
4531
4911
|
}
|
|
4532
4912
|
case Z.Average: {
|
|
4533
|
-
if (
|
|
4534
|
-
let e = s ?? {},
|
|
4913
|
+
if (r) break;
|
|
4914
|
+
let e = s ?? {}, t = e.type ?? a.AverageType.Above;
|
|
4535
4915
|
return {
|
|
4536
|
-
type:
|
|
4537
|
-
aboveAverage:
|
|
4538
|
-
equalAverage:
|
|
4916
|
+
type: Lo,
|
|
4917
|
+
aboveAverage: t === a.AverageType.Above || t === a.AverageType.AboveOrEqual,
|
|
4918
|
+
equalAverage: t === a.AverageType.AboveOrEqual || t === a.AverageType.BelowOrEqual,
|
|
4539
4919
|
stdDev: e.stdDevs
|
|
4540
4920
|
};
|
|
4541
4921
|
}
|
|
4542
4922
|
}
|
|
4543
|
-
return
|
|
4923
|
+
return n?.(`Conditional format operator '${r ? `not(${o})` : o}' has no OOXML form.`), null;
|
|
4544
4924
|
}
|
|
4545
|
-
var
|
|
4546
|
-
[
|
|
4547
|
-
[
|
|
4925
|
+
var ls = "equal", us = "notEqual", ds = "greaterThan", fs = "greaterThanOrEqual", ps = "lessThan", ms = "lessThanOrEqual", Q = a.BuiltInOperatorNames, hs = {
|
|
4926
|
+
[ls]: { operator: Q.EqualTo },
|
|
4927
|
+
[us]: {
|
|
4548
4928
|
operator: Q.EqualTo,
|
|
4549
4929
|
negate: !0
|
|
4550
4930
|
},
|
|
4551
|
-
[
|
|
4552
|
-
[
|
|
4553
|
-
[
|
|
4554
|
-
[
|
|
4555
|
-
},
|
|
4931
|
+
[ds]: { operator: Q.GreaterThan },
|
|
4932
|
+
[fs]: { operator: Q.GreaterThanEqualTo },
|
|
4933
|
+
[ps]: { operator: Q.LessThan },
|
|
4934
|
+
[ms]: { operator: Q.LessThanEqualTo }
|
|
4935
|
+
}, gs = {
|
|
4556
4936
|
[Q.EqualTo]: {
|
|
4557
|
-
plain:
|
|
4558
|
-
negated:
|
|
4937
|
+
plain: ls,
|
|
4938
|
+
negated: us
|
|
4559
4939
|
},
|
|
4560
4940
|
[Q.GreaterThan]: {
|
|
4561
|
-
plain:
|
|
4562
|
-
negated:
|
|
4941
|
+
plain: ds,
|
|
4942
|
+
negated: ms
|
|
4563
4943
|
},
|
|
4564
4944
|
[Q.GreaterThanEqualTo]: {
|
|
4565
|
-
plain:
|
|
4566
|
-
negated:
|
|
4945
|
+
plain: fs,
|
|
4946
|
+
negated: ps
|
|
4567
4947
|
},
|
|
4568
4948
|
[Q.LessThan]: {
|
|
4569
|
-
plain:
|
|
4570
|
-
negated:
|
|
4949
|
+
plain: ps,
|
|
4950
|
+
negated: fs
|
|
4571
4951
|
},
|
|
4572
4952
|
[Q.LessThanEqualTo]: {
|
|
4573
|
-
plain:
|
|
4574
|
-
negated:
|
|
4953
|
+
plain: ms,
|
|
4954
|
+
negated: ds
|
|
4575
4955
|
}
|
|
4576
4956
|
};
|
|
4577
|
-
function
|
|
4578
|
-
return typeof e == "string" &&
|
|
4957
|
+
function _s(e) {
|
|
4958
|
+
return typeof e == "string" && gs[e] !== void 0;
|
|
4579
4959
|
}
|
|
4580
|
-
function
|
|
4960
|
+
function vs(e) {
|
|
4581
4961
|
if (e != null) return "" + e;
|
|
4582
4962
|
}
|
|
4583
|
-
function
|
|
4963
|
+
function ys(e, t) {
|
|
4584
4964
|
let n = function(e) {
|
|
4585
4965
|
if (e == null || e === "") return e ?? void 0;
|
|
4586
4966
|
let t = Number(e);
|
|
4587
4967
|
return Number.isFinite(t) ? t : e;
|
|
4588
4968
|
}(e.val);
|
|
4589
4969
|
if (n === void 0) return null;
|
|
4590
|
-
let r = e.operator ??
|
|
4970
|
+
let r = e.operator ?? ls, i = hs[r];
|
|
4591
4971
|
if (!i) return t?.(`AutoFilter operator '${r}' has no mapping; the rule is carried but inert.`), {
|
|
4592
4972
|
operator: r,
|
|
4593
4973
|
param: n
|
|
@@ -4601,33 +4981,33 @@ function Jo(e, t) {
|
|
|
4601
4981
|
param: a
|
|
4602
4982
|
} : a;
|
|
4603
4983
|
}
|
|
4604
|
-
function
|
|
4984
|
+
function bs(e, t) {
|
|
4605
4985
|
if (!e) return null;
|
|
4606
4986
|
let n = e.operator === Q.Not, r = (n ? e.param : e) ?? {}, i = r.operator;
|
|
4607
4987
|
if (!i) return null;
|
|
4608
|
-
let a =
|
|
4988
|
+
let a = gs[i];
|
|
4609
4989
|
return a ? {
|
|
4610
4990
|
operator: n ? a.negated : a.plain,
|
|
4611
|
-
val:
|
|
4612
|
-
} : !n &&
|
|
4991
|
+
val: vs(r.param)
|
|
4992
|
+
} : !n && hs[i] ? {
|
|
4613
4993
|
operator: i,
|
|
4614
|
-
val:
|
|
4994
|
+
val: vs(r.param)
|
|
4615
4995
|
} : (t?.(`AutoFilter operator '${n ? `not(${i})` : i}' has no OOXML form.`), null);
|
|
4616
4996
|
}
|
|
4617
|
-
var
|
|
4618
|
-
[
|
|
4619
|
-
[
|
|
4620
|
-
[
|
|
4621
|
-
[
|
|
4622
|
-
[
|
|
4623
|
-
},
|
|
4624
|
-
[
|
|
4625
|
-
[
|
|
4626
|
-
[
|
|
4627
|
-
[
|
|
4628
|
-
[
|
|
4629
|
-
[
|
|
4630
|
-
},
|
|
4997
|
+
var xs = "custom", Ss = "date", Cs = "decimal", ws = "list", Ts = "none", Es = "textLength", Ds = "time", Os = "whole", $ = a.BuiltInOperatorNames, ks = a.BuiltInSelectorNames, As = {
|
|
4998
|
+
[Os]: ks.Whole,
|
|
4999
|
+
[Cs]: ks.Number,
|
|
5000
|
+
[Ss]: ks.Date,
|
|
5001
|
+
[Ds]: ks.Time,
|
|
5002
|
+
[Es]: ks.TextLength
|
|
5003
|
+
}, js = {
|
|
5004
|
+
[ks.Whole]: Os,
|
|
5005
|
+
[ks.Number]: Cs,
|
|
5006
|
+
[ks.Date]: Ss,
|
|
5007
|
+
[ks.DateTime]: Ss,
|
|
5008
|
+
[ks.Time]: Ds,
|
|
5009
|
+
[ks.TextLength]: Es
|
|
5010
|
+
}, Ms = {
|
|
4631
5011
|
between: { operator: $.Between },
|
|
4632
5012
|
notBetween: {
|
|
4633
5013
|
operator: $.Between,
|
|
@@ -4642,7 +5022,7 @@ var Xo = "custom", Zo = "date", Qo = "decimal", $o = "list", es = "none", ts = "
|
|
|
4642
5022
|
greaterThanOrEqual: { operator: $.GreaterThanEqualTo },
|
|
4643
5023
|
lessThan: { operator: $.LessThan },
|
|
4644
5024
|
lessThanOrEqual: { operator: $.LessThanEqualTo }
|
|
4645
|
-
},
|
|
5025
|
+
}, Ns = {
|
|
4646
5026
|
[$.Between]: {
|
|
4647
5027
|
plain: "between",
|
|
4648
5028
|
negated: "notBetween"
|
|
@@ -4668,27 +5048,32 @@ var Xo = "custom", Zo = "date", Qo = "decimal", $o = "list", es = "none", ts = "
|
|
|
4668
5048
|
negated: ""
|
|
4669
5049
|
}
|
|
4670
5050
|
};
|
|
4671
|
-
function
|
|
4672
|
-
return t ===
|
|
5051
|
+
function Ps(e, t) {
|
|
5052
|
+
return t === ws || t === xs ? e : Po(e);
|
|
5053
|
+
}
|
|
5054
|
+
function Fs(e) {
|
|
5055
|
+
return Fo(e);
|
|
4673
5056
|
}
|
|
4674
|
-
function
|
|
4675
|
-
|
|
5057
|
+
function Is(e, t, n) {
|
|
5058
|
+
if (typeof e != "string" || e.length <= 255) return e;
|
|
5059
|
+
let r = 255, i = e.charCodeAt(r - 1);
|
|
5060
|
+
return i >= 55296 && i <= 56319 && r--, n?.(`DataValidation ${t} is ${e.length} characters; Excel opens no more than 255, so it is cut.`, `xlsx.dv.${t}.length`), e.substring(0, r);
|
|
4676
5061
|
}
|
|
4677
|
-
function
|
|
5062
|
+
function Ls(e, t) {
|
|
4678
5063
|
let n = e.type;
|
|
4679
|
-
if (!n || n ===
|
|
4680
|
-
if (n ===
|
|
4681
|
-
selector:
|
|
5064
|
+
if (!n || n === Ts) return null;
|
|
5065
|
+
if (n === ws) return {
|
|
5066
|
+
selector: ks.List,
|
|
4682
5067
|
operator: $.InSet,
|
|
4683
|
-
param: e.formula1
|
|
5068
|
+
param: { items: e.formula1 }
|
|
4684
5069
|
};
|
|
4685
|
-
if (n ===
|
|
5070
|
+
if (n === xs) return {
|
|
4686
5071
|
operator: $.Expression,
|
|
4687
5072
|
param: e.formula1
|
|
4688
5073
|
};
|
|
4689
|
-
let r =
|
|
5074
|
+
let r = As[n];
|
|
4690
5075
|
if (!r) return t?.(`DataValidation type '${n}' has no selector mapping.`), null;
|
|
4691
|
-
let i = e.operator ?? "between", a =
|
|
5076
|
+
let i = e.operator ?? "between", a = Ms[i];
|
|
4692
5077
|
if (!a) return t?.(`DataValidation operator '${i}' has no mapping; the rule is carried but inert.`), {
|
|
4693
5078
|
selector: r,
|
|
4694
5079
|
operator: i,
|
|
@@ -4710,34 +5095,120 @@ function ds(e, t) {
|
|
|
4710
5095
|
...s
|
|
4711
5096
|
};
|
|
4712
5097
|
}
|
|
4713
|
-
function
|
|
5098
|
+
function Rs(e, t) {
|
|
4714
5099
|
if (!e) return null;
|
|
4715
5100
|
let n = e.operator === $.Not, r = (n ? e.param : e) ?? {}, i = r.operator, a = r.param;
|
|
4716
5101
|
if (!i) return null;
|
|
4717
|
-
if (!n && (i === $.InSet || i ===
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
5102
|
+
if (!n && (i === $.InSet || i === ws)) {
|
|
5103
|
+
let e = typeof a == "string" ? a : Array.isArray(a?.items) ? `"${a.items.join(",").replace(/"/g, "\"\"")}"` : a?.items;
|
|
5104
|
+
return typeof e == "string" && function(e) {
|
|
5105
|
+
let t = e.startsWith("=") ? e.substring(1) : e, n = [], r = !1;
|
|
5106
|
+
for (let e = 0; e < t.length; e++) {
|
|
5107
|
+
let i = t[e];
|
|
5108
|
+
if (i !== "\"" && i !== "'") if (i !== "{") if (i !== "(") if (i !== ")") if (i !== ",") r = /[A-Za-z0-9_.$!\]]/.test(i);
|
|
5109
|
+
else {
|
|
5110
|
+
if (n.length === 0 || !n[n.length - 1]) return !0;
|
|
5111
|
+
r = !1;
|
|
5112
|
+
}
|
|
5113
|
+
else n.pop(), r = !0;
|
|
5114
|
+
else n.push(r), r = !1;
|
|
5115
|
+
else {
|
|
5116
|
+
for (; e < t.length && t[e] !== "}";) e++;
|
|
5117
|
+
r = !1;
|
|
5118
|
+
}
|
|
5119
|
+
else {
|
|
5120
|
+
for (e++; e < t.length;) {
|
|
5121
|
+
if (t[e] === i) {
|
|
5122
|
+
if (t[e + 1] !== i) break;
|
|
5123
|
+
e++;
|
|
5124
|
+
}
|
|
5125
|
+
e++;
|
|
5126
|
+
}
|
|
5127
|
+
r = i === "'";
|
|
5128
|
+
}
|
|
5129
|
+
}
|
|
5130
|
+
return !1;
|
|
5131
|
+
}(e) ? (t?.(`DataValidation list source '${e}' is a union, which Excel cannot open; the rule is written without its list.`, "xlsx.dv.listUnion"), null) : {
|
|
5132
|
+
type: ws,
|
|
5133
|
+
formula1: e
|
|
5134
|
+
};
|
|
5135
|
+
}
|
|
5136
|
+
if (!n && (i === $.Expression || i === xs)) return {
|
|
5137
|
+
type: xs,
|
|
4723
5138
|
formula1: typeof a == "string" ? a : a?.formula ?? a?.formula1
|
|
4724
5139
|
};
|
|
4725
|
-
let o =
|
|
4726
|
-
if (!o) return !n &&
|
|
4727
|
-
type:
|
|
5140
|
+
let o = Ns[i];
|
|
5141
|
+
if (!o) return !n && Ms[i] ? {
|
|
5142
|
+
type: zs(e.selector),
|
|
4728
5143
|
operator: i,
|
|
4729
|
-
formula1:
|
|
4730
|
-
formula2:
|
|
5144
|
+
formula1: Fs(a?.from ?? a),
|
|
5145
|
+
formula2: Fs(a?.to)
|
|
4731
5146
|
} : (t?.(`DataValidation operator '${n ? `not(${i})` : i}' has no OOXML form.`), null);
|
|
4732
5147
|
let s = n ? o.negated : o.plain;
|
|
4733
5148
|
return s ? {
|
|
4734
|
-
type:
|
|
5149
|
+
type: zs(e.selector),
|
|
4735
5150
|
operator: s,
|
|
4736
|
-
formula1:
|
|
4737
|
-
formula2: i === $.Between ?
|
|
5151
|
+
formula1: Fs(i === $.Between ? a?.from : a),
|
|
5152
|
+
formula2: i === $.Between ? Fs(a?.to) : void 0
|
|
4738
5153
|
} : (t?.(`DataValidation operator 'not(${i})' has no OOXML form.`), null);
|
|
4739
5154
|
}
|
|
4740
|
-
function
|
|
4741
|
-
return (e ?
|
|
5155
|
+
function zs(e) {
|
|
5156
|
+
return (e ? js[e] : void 0) ?? Cs;
|
|
5157
|
+
}
|
|
5158
|
+
var Bs = /\s*<v:shape\b[\s\S]*?<\/v:shape>/g, Vs = /<x:ClientData\b[^>]*\bObjectType="Note"/, Hs = /<x:Row>\s*(-?\d+)\s*<\/x:Row>/, Us = /<x:Column>\s*(-?\d+)\s*<\/x:Column>/, Ws = /(<x:Anchor>)([\s\d,-]*)(<\/x:Anchor>)/, Gs = /\bid="_x0000_s(\d+)"/, Ks = /\bo:spid="_x0000_s(\d+)"/, qs = /\s*<\/xml>\s*$/;
|
|
5159
|
+
function Js(e) {
|
|
5160
|
+
let t = [];
|
|
5161
|
+
return {
|
|
5162
|
+
rest: e.replace(Bs, (e) => {
|
|
5163
|
+
if (!Vs.test(e)) return e;
|
|
5164
|
+
let n = Hs.exec(e), r = Us.exec(e);
|
|
5165
|
+
return n && r ? (t.push({
|
|
5166
|
+
xml: e,
|
|
5167
|
+
row: parseInt(n[1], 10),
|
|
5168
|
+
col: parseInt(r[1], 10)
|
|
5169
|
+
}), "") : e;
|
|
5170
|
+
}),
|
|
5171
|
+
notes: t
|
|
5172
|
+
};
|
|
5173
|
+
}
|
|
5174
|
+
function Ys(e, t, n) {
|
|
5175
|
+
let r = t - e.row, i = n - e.col;
|
|
5176
|
+
if (r === 0 && i === 0) return e.xml;
|
|
5177
|
+
let a = e.xml.replace(Hs, `<x:Row>${t}</x:Row>`).replace(Us, `<x:Column>${n}</x:Column>`);
|
|
5178
|
+
return (/<x:MoveWithCells\s*\/>/.test(a) || /<x:SizeWithCells\s*\/>/.test(a)) && (a = a.replace(Ws, (e, t, n, a) => {
|
|
5179
|
+
let o = n.split(",").map((e) => e.trim());
|
|
5180
|
+
if (o.length !== 8) return e;
|
|
5181
|
+
let s = o.slice();
|
|
5182
|
+
return s[0] = String(Math.max(0, parseInt(o[0], 10) + i)), s[2] = String(Math.max(0, parseInt(o[2], 10) + r)), s[4] = String(Math.max(0, parseInt(o[4], 10) + i)), s[6] = String(Math.max(0, parseInt(o[6], 10) + r)), `${t}${s.join(", ")}${a}`;
|
|
5183
|
+
})), a;
|
|
5184
|
+
}
|
|
5185
|
+
function Xs(e) {
|
|
5186
|
+
let t = 1024;
|
|
5187
|
+
for (let n of e.matchAll(/\b(?:id|o:spid)="_x0000_s(\d+)"/g)) t = Math.max(t, parseInt(n[1], 10));
|
|
5188
|
+
return t;
|
|
5189
|
+
}
|
|
5190
|
+
function Zs(e, t, n) {
|
|
5191
|
+
return `<v:shape id="_x0000_s${n}" type="#_x0000_t202" style='position:absolute;\n margin-left:59.25pt;margin-top:1.5pt;width:108pt;height:59.25pt;z-index:${n - 1024};\n visibility:hidden' fillcolor="#ffffe1" o:insetmode="auto">\n <v:fill color2="#ffffe1"/>\n <v:shadow on="t" color="black" obscured="t"/>\n <v:path o:connecttype="none"/>\n <v:textbox style='mso-direction-alt:auto'>\n <div style='text-align:left'></div>\n </v:textbox>\n <x:ClientData ObjectType="Note">\n <x:MoveWithCells/>\n <x:SizeWithCells/>\n <x:Anchor>\n ${t + 1}, 15, ${Math.max(0, e - 1)}, 10, ${t + 3}, 15, ${e + 3}, 4</x:Anchor>\n <x:AutoFill>False</x:AutoFill>\n <x:Row>${e}</x:Row>\n <x:Column>${t}</x:Column>\n </x:ClientData>\n </v:shape>`;
|
|
5192
|
+
}
|
|
5193
|
+
function Qs(e, t) {
|
|
5194
|
+
let n = e && e.trim() ? e : "<xml xmlns:v=\"urn:schemas-microsoft-com:vml\"\n xmlns:o=\"urn:schemas-microsoft-com:office:office\"\n xmlns:x=\"urn:schemas-microsoft-com:office:excel\">\n <o:shapelayout v:ext=\"edit\">\n <o:idmap v:ext=\"edit\" data=\"1\"/>\n </o:shapelayout></xml>";
|
|
5195
|
+
if (t.length === 0) return /<v:shape\b/.test(n) ? n : null;
|
|
5196
|
+
let r = n, i = qs.exec(r);
|
|
5197
|
+
if (!i) return null;
|
|
5198
|
+
let a = i[0];
|
|
5199
|
+
return r = r.slice(0, i.index), /<v:shapetype\b[^>]*\bid="_x0000_t202"/.test(r) || (r += "<v:shapetype id=\"_x0000_t202\" coordsize=\"21600,21600\" o:spt=\"202\"\n path=\"m,l,21600r21600,l21600,xe\">\n <v:stroke joinstyle=\"miter\"/>\n <v:path gradientshapeok=\"t\" o:connecttype=\"rect\"/>\n </v:shapetype>"), r + t.join("") + a;
|
|
5200
|
+
}
|
|
5201
|
+
function $s(e) {
|
|
5202
|
+
let t = Ks.exec(e) ?? Gs.exec(e);
|
|
5203
|
+
return t ? parseInt(t[1], 10) : null;
|
|
5204
|
+
}
|
|
5205
|
+
var ec = "16.0000", tc = 1048575, nc = 16383;
|
|
5206
|
+
function rc(e) {
|
|
5207
|
+
if (!e || typeof e != "string") return ec;
|
|
5208
|
+
if (e === "local" || e === "dev" || e === "development") return "00.0000";
|
|
5209
|
+
let t = e.match(/^(\d+)(?:\.(\d+))?(?:\.(\d+))?/);
|
|
5210
|
+
if (!t) return ec;
|
|
5211
|
+
let n = parseInt(t[1], 10), r = parseInt(t[2] || "0", 10);
|
|
5212
|
+
return n > 99 || r > 9999 ? ec : `${n.toString()}.${r.toString().padStart(4, "0")}`;
|
|
4742
5213
|
}
|
|
4743
|
-
export {
|
|
5214
|
+
export { u as $, So as A, ha as B, ko as C, yo as D, Eo as E, go as F, Ei as G, la as H, ho as I, ln as J, Fr as K, ro as L, uo as M, fo as N, vo as O, mo as P, f as Q, io as R, No as S, To as T, fa as U, ma as V, pa as W, dn as X, un as Y, fn as Z, cs as _, Xs as a, c as at, jo as b, Zs as c, v as ct, Ps as d, d as et, Rs as f, ys as g, _s as h, Qs as i, s as it, Co as j, wo as k, Ys as l, _ as lt, bs as m, tc as n, p as nt, $s as o, g as ot, Ls as p, cn as q, rc as r, m as rt, Js as s, h as st, nc as t, l as tt, Is as u, ss as v, Oo as w, Mo as x, Ao as y, ao as z };
|