@owp/core 2.0.2 → 2.0.4

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.
@@ -0,0 +1,2407 @@
1
+ var Rt = Object.defineProperty;
2
+ var _ = (pt, mt) => Rt(pt, "name", { value: mt, configurable: !0 });
3
+ import { c as wt, g as Tt } from "./_commonjsHelpers-BHGzZHI-.js";
4
+ import { c as kt } from "./_commonjs-dynamic-modules-Dv7l0Iyf.js";
5
+ function Dt(pt, mt) {
6
+ for (var g = 0; g < mt.length; g++) {
7
+ const U = mt[g];
8
+ if (typeof U != "string" && !Array.isArray(U)) {
9
+ for (const k in U)
10
+ if (k !== "default" && !(k in pt)) {
11
+ const u = Object.getOwnPropertyDescriptor(U, k);
12
+ u && Object.defineProperty(pt, k, u.get ? u : {
13
+ enumerable: !0,
14
+ get: /* @__PURE__ */ _(() => U[k], "get")
15
+ });
16
+ }
17
+ }
18
+ }
19
+ return Object.freeze(Object.defineProperty(pt, Symbol.toStringTag, { value: "Module" }));
20
+ }
21
+ _(Dt, "_mergeNamespaces");
22
+ var St = { exports: {} };
23
+ /*!
24
+
25
+ JSZip v3.10.1 - A JavaScript class for generating and reading zip files
26
+ <http://stuartk.com/jszip>
27
+
28
+ (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
29
+ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
30
+
31
+ JSZip uses the library pako released under the MIT license :
32
+ https://github.com/nodeca/pako/blob/main/LICENSE
33
+ */
34
+ var Et;
35
+ function Ft() {
36
+ return Et || (Et = 1, (function(pt, mt) {
37
+ (function(g) {
38
+ pt.exports = g();
39
+ })(function() {
40
+ return (/* @__PURE__ */ _(function g(U, k, u) {
41
+ function o(b, w) {
42
+ if (!k[b]) {
43
+ if (!U[b]) {
44
+ var p = typeof kt == "function" && kt;
45
+ if (!w && p) return p(b, !0);
46
+ if (n) return n(b, !0);
47
+ var v = new Error("Cannot find module '" + b + "'");
48
+ throw v.code = "MODULE_NOT_FOUND", v;
49
+ }
50
+ var i = k[b] = { exports: {} };
51
+ U[b][0].call(i.exports, function(d) {
52
+ var r = U[b][1][d];
53
+ return o(r || d);
54
+ }, i, i.exports, g, U, k, u);
55
+ }
56
+ return k[b].exports;
57
+ }
58
+ _(o, "u");
59
+ for (var n = typeof kt == "function" && kt, h = 0; h < u.length; h++) o(u[h]);
60
+ return o;
61
+ }, "s"))({ 1: [function(g, U, k) {
62
+ var u = g("./utils"), o = g("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
63
+ k.encode = function(h) {
64
+ for (var b, w, p, v, i, d, r, l = [], a = 0, c = h.length, y = c, z = u.getTypeOf(h) !== "string"; a < h.length; ) y = c - a, p = z ? (b = h[a++], w = a < c ? h[a++] : 0, a < c ? h[a++] : 0) : (b = h.charCodeAt(a++), w = a < c ? h.charCodeAt(a++) : 0, a < c ? h.charCodeAt(a++) : 0), v = b >> 2, i = (3 & b) << 4 | w >> 4, d = 1 < y ? (15 & w) << 2 | p >> 6 : 64, r = 2 < y ? 63 & p : 64, l.push(n.charAt(v) + n.charAt(i) + n.charAt(d) + n.charAt(r));
65
+ return l.join("");
66
+ }, k.decode = function(h) {
67
+ var b, w, p, v, i, d, r = 0, l = 0, a = "data:";
68
+ if (h.substr(0, a.length) === a) throw new Error("Invalid base64 input, it looks like a data url.");
69
+ var c, y = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
70
+ if (h.charAt(h.length - 1) === n.charAt(64) && y--, h.charAt(h.length - 2) === n.charAt(64) && y--, y % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
71
+ for (c = o.uint8array ? new Uint8Array(0 | y) : new Array(0 | y); r < h.length; ) b = n.indexOf(h.charAt(r++)) << 2 | (v = n.indexOf(h.charAt(r++))) >> 4, w = (15 & v) << 4 | (i = n.indexOf(h.charAt(r++))) >> 2, p = (3 & i) << 6 | (d = n.indexOf(h.charAt(r++))), c[l++] = b, i !== 64 && (c[l++] = w), d !== 64 && (c[l++] = p);
72
+ return c;
73
+ };
74
+ }, { "./support": 30, "./utils": 32 }], 2: [function(g, U, k) {
75
+ var u = g("./external"), o = g("./stream/DataWorker"), n = g("./stream/Crc32Probe"), h = g("./stream/DataLengthProbe");
76
+ function b(w, p, v, i, d) {
77
+ this.compressedSize = w, this.uncompressedSize = p, this.crc32 = v, this.compression = i, this.compressedContent = d;
78
+ }
79
+ _(b, "o"), b.prototype = { getContentWorker: /* @__PURE__ */ _(function() {
80
+ var w = new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), p = this;
81
+ return w.on("end", function() {
82
+ if (this.streamInfo.data_length !== p.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
83
+ }), w;
84
+ }, "getContentWorker"), getCompressedWorker: /* @__PURE__ */ _(function() {
85
+ return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
86
+ }, "getCompressedWorker") }, b.createWorkerFrom = function(w, p, v) {
87
+ return w.pipe(new n()).pipe(new h("uncompressedSize")).pipe(p.compressWorker(v)).pipe(new h("compressedSize")).withStreamInfo("compression", p);
88
+ }, U.exports = b;
89
+ }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(g, U, k) {
90
+ var u = g("./stream/GenericWorker");
91
+ k.STORE = { magic: "\0\0", compressWorker: /* @__PURE__ */ _(function() {
92
+ return new u("STORE compression");
93
+ }, "compressWorker"), uncompressWorker: /* @__PURE__ */ _(function() {
94
+ return new u("STORE decompression");
95
+ }, "uncompressWorker") }, k.DEFLATE = g("./flate");
96
+ }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(g, U, k) {
97
+ var u = g("./utils"), o = (function() {
98
+ for (var n, h = [], b = 0; b < 256; b++) {
99
+ n = b;
100
+ for (var w = 0; w < 8; w++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
101
+ h[b] = n;
102
+ }
103
+ return h;
104
+ })();
105
+ U.exports = function(n, h) {
106
+ return n !== void 0 && n.length ? u.getTypeOf(n) !== "string" ? (function(b, w, p, v) {
107
+ var i = o, d = v + p;
108
+ b ^= -1;
109
+ for (var r = v; r < d; r++) b = b >>> 8 ^ i[255 & (b ^ w[r])];
110
+ return -1 ^ b;
111
+ })(0 | h, n, n.length, 0) : (function(b, w, p, v) {
112
+ var i = o, d = v + p;
113
+ b ^= -1;
114
+ for (var r = v; r < d; r++) b = b >>> 8 ^ i[255 & (b ^ w.charCodeAt(r))];
115
+ return -1 ^ b;
116
+ })(0 | h, n, n.length, 0) : 0;
117
+ };
118
+ }, { "./utils": 32 }], 5: [function(g, U, k) {
119
+ k.base64 = !1, k.binary = !1, k.dir = !1, k.createFolders = !0, k.date = null, k.compression = null, k.compressionOptions = null, k.comment = null, k.unixPermissions = null, k.dosPermissions = null;
120
+ }, {}], 6: [function(g, U, k) {
121
+ var u = null;
122
+ u = typeof Promise < "u" ? Promise : g("lie"), U.exports = { Promise: u };
123
+ }, { lie: 37 }], 7: [function(g, U, k) {
124
+ var u = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = g("pako"), n = g("./utils"), h = g("./stream/GenericWorker"), b = u ? "uint8array" : "array";
125
+ function w(p, v) {
126
+ h.call(this, "FlateWorker/" + p), this._pako = null, this._pakoAction = p, this._pakoOptions = v, this.meta = {};
127
+ }
128
+ _(w, "h"), k.magic = "\b\0", n.inherits(w, h), w.prototype.processChunk = function(p) {
129
+ this.meta = p.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(b, p.data), !1);
130
+ }, w.prototype.flush = function() {
131
+ h.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
132
+ }, w.prototype.cleanUp = function() {
133
+ h.prototype.cleanUp.call(this), this._pako = null;
134
+ }, w.prototype._createPako = function() {
135
+ this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
136
+ var p = this;
137
+ this._pako.onData = function(v) {
138
+ p.push({ data: v, meta: p.meta });
139
+ };
140
+ }, k.compressWorker = function(p) {
141
+ return new w("Deflate", p);
142
+ }, k.uncompressWorker = function() {
143
+ return new w("Inflate", {});
144
+ };
145
+ }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(g, U, k) {
146
+ function u(i, d) {
147
+ var r, l = "";
148
+ for (r = 0; r < d; r++) l += String.fromCharCode(255 & i), i >>>= 8;
149
+ return l;
150
+ }
151
+ _(u, "A");
152
+ function o(i, d, r, l, a, c) {
153
+ var y, z, S = i.file, F = i.compression, B = c !== b.utf8encode, L = n.transformTo("string", c(S.name)), O = n.transformTo("string", b.utf8encode(S.name)), M = S.comment, q = n.transformTo("string", c(M)), m = n.transformTo("string", b.utf8encode(M)), R = O.length !== S.name.length, e = m.length !== M.length, D = "", $ = "", j = "", Q = S.dir, Z = S.date, J = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
154
+ d && !r || (J.crc32 = i.crc32, J.compressedSize = i.compressedSize, J.uncompressedSize = i.uncompressedSize);
155
+ var A = 0;
156
+ d && (A |= 8), B || !R && !e || (A |= 2048);
157
+ var E = 0, V = 0;
158
+ Q && (E |= 16), a === "UNIX" ? (V = 798, E |= (function(G, it) {
159
+ var ut = G;
160
+ return G || (ut = it ? 16893 : 33204), (65535 & ut) << 16;
161
+ })(S.unixPermissions, Q)) : (V = 20, E |= (function(G) {
162
+ return 63 & (G || 0);
163
+ })(S.dosPermissions)), y = Z.getUTCHours(), y <<= 6, y |= Z.getUTCMinutes(), y <<= 5, y |= Z.getUTCSeconds() / 2, z = Z.getUTCFullYear() - 1980, z <<= 4, z |= Z.getUTCMonth() + 1, z <<= 5, z |= Z.getUTCDate(), R && ($ = u(1, 1) + u(w(L), 4) + O, D += "up" + u($.length, 2) + $), e && (j = u(1, 1) + u(w(q), 4) + m, D += "uc" + u(j.length, 2) + j);
164
+ var K = "";
165
+ return K += `
166
+ \0`, K += u(A, 2), K += F.magic, K += u(y, 2), K += u(z, 2), K += u(J.crc32, 4), K += u(J.compressedSize, 4), K += u(J.uncompressedSize, 4), K += u(L.length, 2), K += u(D.length, 2), { fileRecord: p.LOCAL_FILE_HEADER + K + L + D, dirRecord: p.CENTRAL_FILE_HEADER + u(V, 2) + K + u(q.length, 2) + "\0\0\0\0" + u(E, 4) + u(l, 4) + L + D + q };
167
+ }
168
+ _(o, "n");
169
+ var n = g("../utils"), h = g("../stream/GenericWorker"), b = g("../utf8"), w = g("../crc32"), p = g("../signature");
170
+ function v(i, d, r, l) {
171
+ h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = d, this.zipPlatform = r, this.encodeFileName = l, this.streamFiles = i, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
172
+ }
173
+ _(v, "s"), n.inherits(v, h), v.prototype.push = function(i) {
174
+ var d = i.meta.percent || 0, r = this.entriesCount, l = this._sources.length;
175
+ this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, h.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (d + 100 * (r - l - 1)) / r : 100 } }));
176
+ }, v.prototype.openedSource = function(i) {
177
+ this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
178
+ var d = this.streamFiles && !i.file.dir;
179
+ if (d) {
180
+ var r = o(i, d, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
181
+ this.push({ data: r.fileRecord, meta: { percent: 0 } });
182
+ } else this.accumulate = !0;
183
+ }, v.prototype.closedSource = function(i) {
184
+ this.accumulate = !1;
185
+ var d = this.streamFiles && !i.file.dir, r = o(i, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
186
+ if (this.dirRecords.push(r.dirRecord), d) this.push({ data: (function(l) {
187
+ return p.DATA_DESCRIPTOR + u(l.crc32, 4) + u(l.compressedSize, 4) + u(l.uncompressedSize, 4);
188
+ })(i), meta: { percent: 100 } });
189
+ else for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
190
+ this.currentFile = null;
191
+ }, v.prototype.flush = function() {
192
+ for (var i = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
193
+ var r = this.bytesWritten - i, l = (function(a, c, y, z, S) {
194
+ var F = n.transformTo("string", S(z));
195
+ return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" + u(a, 2) + u(a, 2) + u(c, 4) + u(y, 4) + u(F.length, 2) + F;
196
+ })(this.dirRecords.length, r, i, this.zipComment, this.encodeFileName);
197
+ this.push({ data: l, meta: { percent: 100 } });
198
+ }, v.prototype.prepareNextSource = function() {
199
+ this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
200
+ }, v.prototype.registerPrevious = function(i) {
201
+ this._sources.push(i);
202
+ var d = this;
203
+ return i.on("data", function(r) {
204
+ d.processChunk(r);
205
+ }), i.on("end", function() {
206
+ d.closedSource(d.previous.streamInfo), d._sources.length ? d.prepareNextSource() : d.end();
207
+ }), i.on("error", function(r) {
208
+ d.error(r);
209
+ }), this;
210
+ }, v.prototype.resume = function() {
211
+ return !!h.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
212
+ }, v.prototype.error = function(i) {
213
+ var d = this._sources;
214
+ if (!h.prototype.error.call(this, i)) return !1;
215
+ for (var r = 0; r < d.length; r++) try {
216
+ d[r].error(i);
217
+ } catch {
218
+ }
219
+ return !0;
220
+ }, v.prototype.lock = function() {
221
+ h.prototype.lock.call(this);
222
+ for (var i = this._sources, d = 0; d < i.length; d++) i[d].lock();
223
+ }, U.exports = v;
224
+ }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(g, U, k) {
225
+ var u = g("../compressions"), o = g("./ZipFileWorker");
226
+ k.generateWorker = function(n, h, b) {
227
+ var w = new o(h.streamFiles, b, h.platform, h.encodeFileName), p = 0;
228
+ try {
229
+ n.forEach(function(v, i) {
230
+ p++;
231
+ var d = (function(c, y) {
232
+ var z = c || y, S = u[z];
233
+ if (!S) throw new Error(z + " is not a valid compression method !");
234
+ return S;
235
+ })(i.options.compression, h.compression), r = i.options.compressionOptions || h.compressionOptions || {}, l = i.dir, a = i.date;
236
+ i._compressWorker(d, r).withStreamInfo("file", { name: v, dir: l, date: a, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(w);
237
+ }), w.entriesCount = p;
238
+ } catch (v) {
239
+ w.error(v);
240
+ }
241
+ return w;
242
+ };
243
+ }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(g, U, k) {
244
+ function u() {
245
+ if (!(this instanceof u)) return new u();
246
+ if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
247
+ this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
248
+ var o = new u();
249
+ for (var n in this) typeof this[n] != "function" && (o[n] = this[n]);
250
+ return o;
251
+ };
252
+ }
253
+ _(u, "n"), (u.prototype = g("./object")).loadAsync = g("./load"), u.support = g("./support"), u.defaults = g("./defaults"), u.version = "3.10.1", u.loadAsync = function(o, n) {
254
+ return new u().loadAsync(o, n);
255
+ }, u.external = g("./external"), U.exports = u;
256
+ }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(g, U, k) {
257
+ var u = g("./utils"), o = g("./external"), n = g("./utf8"), h = g("./zipEntries"), b = g("./stream/Crc32Probe"), w = g("./nodejsUtils");
258
+ function p(v) {
259
+ return new o.Promise(function(i, d) {
260
+ var r = v.decompressed.getContentWorker().pipe(new b());
261
+ r.on("error", function(l) {
262
+ d(l);
263
+ }).on("end", function() {
264
+ r.streamInfo.crc32 !== v.decompressed.crc32 ? d(new Error("Corrupted zip : CRC32 mismatch")) : i();
265
+ }).resume();
266
+ });
267
+ }
268
+ _(p, "f"), U.exports = function(v, i) {
269
+ var d = this;
270
+ return i = u.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), w.isNode && w.isStream(v) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", v, !0, i.optimizedBinaryString, i.base64).then(function(r) {
271
+ var l = new h(i);
272
+ return l.load(r), l;
273
+ }).then(function(r) {
274
+ var l = [o.Promise.resolve(r)], a = r.files;
275
+ if (i.checkCRC32) for (var c = 0; c < a.length; c++) l.push(p(a[c]));
276
+ return o.Promise.all(l);
277
+ }).then(function(r) {
278
+ for (var l = r.shift(), a = l.files, c = 0; c < a.length; c++) {
279
+ var y = a[c], z = y.fileNameStr, S = u.resolve(y.fileNameStr);
280
+ d.file(S, y.decompressed, { binary: !0, optimizedBinaryString: !0, date: y.date, dir: y.dir, comment: y.fileCommentStr.length ? y.fileCommentStr : null, unixPermissions: y.unixPermissions, dosPermissions: y.dosPermissions, createFolders: i.createFolders }), y.dir || (d.file(S).unsafeOriginalName = z);
281
+ }
282
+ return l.zipComment.length && (d.comment = l.zipComment), d;
283
+ });
284
+ };
285
+ }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(g, U, k) {
286
+ var u = g("../utils"), o = g("../stream/GenericWorker");
287
+ function n(h, b) {
288
+ o.call(this, "Nodejs stream input adapter for " + h), this._upstreamEnded = !1, this._bindStream(b);
289
+ }
290
+ _(n, "s"), u.inherits(n, o), n.prototype._bindStream = function(h) {
291
+ var b = this;
292
+ (this._stream = h).pause(), h.on("data", function(w) {
293
+ b.push({ data: w, meta: { percent: 0 } });
294
+ }).on("error", function(w) {
295
+ b.isPaused ? this.generatedError = w : b.error(w);
296
+ }).on("end", function() {
297
+ b.isPaused ? b._upstreamEnded = !0 : b.end();
298
+ });
299
+ }, n.prototype.pause = function() {
300
+ return !!o.prototype.pause.call(this) && (this._stream.pause(), !0);
301
+ }, n.prototype.resume = function() {
302
+ return !!o.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
303
+ }, U.exports = n;
304
+ }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(g, U, k) {
305
+ var u = g("readable-stream").Readable;
306
+ function o(n, h, b) {
307
+ u.call(this, h), this._helper = n;
308
+ var w = this;
309
+ n.on("data", function(p, v) {
310
+ w.push(p) || w._helper.pause(), b && b(v);
311
+ }).on("error", function(p) {
312
+ w.emit("error", p);
313
+ }).on("end", function() {
314
+ w.push(null);
315
+ });
316
+ }
317
+ _(o, "n"), g("../utils").inherits(o, u), o.prototype._read = function() {
318
+ this._helper.resume();
319
+ }, U.exports = o;
320
+ }, { "../utils": 32, "readable-stream": 16 }], 14: [function(g, U, k) {
321
+ U.exports = { isNode: typeof Buffer < "u", newBufferFrom: /* @__PURE__ */ _(function(u, o) {
322
+ if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(u, o);
323
+ if (typeof u == "number") throw new Error('The "data" argument must not be a number');
324
+ return new Buffer(u, o);
325
+ }, "newBufferFrom"), allocBuffer: /* @__PURE__ */ _(function(u) {
326
+ if (Buffer.alloc) return Buffer.alloc(u);
327
+ var o = new Buffer(u);
328
+ return o.fill(0), o;
329
+ }, "allocBuffer"), isBuffer: /* @__PURE__ */ _(function(u) {
330
+ return Buffer.isBuffer(u);
331
+ }, "isBuffer"), isStream: /* @__PURE__ */ _(function(u) {
332
+ return u && typeof u.on == "function" && typeof u.pause == "function" && typeof u.resume == "function";
333
+ }, "isStream") };
334
+ }, {}], 15: [function(g, U, k) {
335
+ function u(S, F, B) {
336
+ var L, O = n.getTypeOf(F), M = n.extend(B || {}, w);
337
+ M.date = M.date || /* @__PURE__ */ new Date(), M.compression !== null && (M.compression = M.compression.toUpperCase()), typeof M.unixPermissions == "string" && (M.unixPermissions = parseInt(M.unixPermissions, 8)), M.unixPermissions && 16384 & M.unixPermissions && (M.dir = !0), M.dosPermissions && 16 & M.dosPermissions && (M.dir = !0), M.dir && (S = a(S)), M.createFolders && (L = l(S)) && c.call(this, L, !0);
338
+ var q = O === "string" && M.binary === !1 && M.base64 === !1;
339
+ B && B.binary !== void 0 || (M.binary = !q), (F instanceof p && F.uncompressedSize === 0 || M.dir || !F || F.length === 0) && (M.base64 = !1, M.binary = !0, F = "", M.compression = "STORE", O = "string");
340
+ var m = null;
341
+ m = F instanceof p || F instanceof h ? F : d.isNode && d.isStream(F) ? new r(S, F) : n.prepareContent(S, F, M.binary, M.optimizedBinaryString, M.base64);
342
+ var R = new v(S, m, M);
343
+ this.files[S] = R;
344
+ }
345
+ _(u, "s");
346
+ var o = g("./utf8"), n = g("./utils"), h = g("./stream/GenericWorker"), b = g("./stream/StreamHelper"), w = g("./defaults"), p = g("./compressedObject"), v = g("./zipObject"), i = g("./generate"), d = g("./nodejsUtils"), r = g("./nodejs/NodejsStreamInputAdapter"), l = /* @__PURE__ */ _(function(S) {
347
+ S.slice(-1) === "/" && (S = S.substring(0, S.length - 1));
348
+ var F = S.lastIndexOf("/");
349
+ return 0 < F ? S.substring(0, F) : "";
350
+ }, "_"), a = /* @__PURE__ */ _(function(S) {
351
+ return S.slice(-1) !== "/" && (S += "/"), S;
352
+ }, "g"), c = /* @__PURE__ */ _(function(S, F) {
353
+ return F = F !== void 0 ? F : w.createFolders, S = a(S), this.files[S] || u.call(this, S, null, { dir: !0, createFolders: F }), this.files[S];
354
+ }, "b");
355
+ function y(S) {
356
+ return Object.prototype.toString.call(S) === "[object RegExp]";
357
+ }
358
+ _(y, "h");
359
+ var z = { load: /* @__PURE__ */ _(function() {
360
+ throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
361
+ }, "load"), forEach: /* @__PURE__ */ _(function(S) {
362
+ var F, B, L;
363
+ for (F in this.files) L = this.files[F], (B = F.slice(this.root.length, F.length)) && F.slice(0, this.root.length) === this.root && S(B, L);
364
+ }, "forEach"), filter: /* @__PURE__ */ _(function(S) {
365
+ var F = [];
366
+ return this.forEach(function(B, L) {
367
+ S(B, L) && F.push(L);
368
+ }), F;
369
+ }, "filter"), file: /* @__PURE__ */ _(function(S, F, B) {
370
+ if (arguments.length !== 1) return S = this.root + S, u.call(this, S, F, B), this;
371
+ if (y(S)) {
372
+ var L = S;
373
+ return this.filter(function(M, q) {
374
+ return !q.dir && L.test(M);
375
+ });
376
+ }
377
+ var O = this.files[this.root + S];
378
+ return O && !O.dir ? O : null;
379
+ }, "file"), folder: /* @__PURE__ */ _(function(S) {
380
+ if (!S) return this;
381
+ if (y(S)) return this.filter(function(O, M) {
382
+ return M.dir && S.test(O);
383
+ });
384
+ var F = this.root + S, B = c.call(this, F), L = this.clone();
385
+ return L.root = B.name, L;
386
+ }, "folder"), remove: /* @__PURE__ */ _(function(S) {
387
+ S = this.root + S;
388
+ var F = this.files[S];
389
+ if (F || (S.slice(-1) !== "/" && (S += "/"), F = this.files[S]), F && !F.dir) delete this.files[S];
390
+ else for (var B = this.filter(function(O, M) {
391
+ return M.name.slice(0, S.length) === S;
392
+ }), L = 0; L < B.length; L++) delete this.files[B[L].name];
393
+ return this;
394
+ }, "remove"), generate: /* @__PURE__ */ _(function() {
395
+ throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
396
+ }, "generate"), generateInternalStream: /* @__PURE__ */ _(function(S) {
397
+ var F, B = {};
398
+ try {
399
+ if ((B = n.extend(S || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: o.utf8encode })).type = B.type.toLowerCase(), B.compression = B.compression.toUpperCase(), B.type === "binarystring" && (B.type = "string"), !B.type) throw new Error("No output type specified.");
400
+ n.checkSupport(B.type), B.platform !== "darwin" && B.platform !== "freebsd" && B.platform !== "linux" && B.platform !== "sunos" || (B.platform = "UNIX"), B.platform === "win32" && (B.platform = "DOS");
401
+ var L = B.comment || this.comment || "";
402
+ F = i.generateWorker(this, B, L);
403
+ } catch (O) {
404
+ (F = new h("error")).error(O);
405
+ }
406
+ return new b(F, B.type || "string", B.mimeType);
407
+ }, "generateInternalStream"), generateAsync: /* @__PURE__ */ _(function(S, F) {
408
+ return this.generateInternalStream(S).accumulate(F);
409
+ }, "generateAsync"), generateNodeStream: /* @__PURE__ */ _(function(S, F) {
410
+ return (S = S || {}).type || (S.type = "nodebuffer"), this.generateInternalStream(S).toNodejsStream(F);
411
+ }, "generateNodeStream") };
412
+ U.exports = z;
413
+ }, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(g, U, k) {
414
+ U.exports = g("stream");
415
+ }, { stream: void 0 }], 17: [function(g, U, k) {
416
+ var u = g("./DataReader");
417
+ function o(n) {
418
+ u.call(this, n);
419
+ for (var h = 0; h < this.data.length; h++) n[h] = 255 & n[h];
420
+ }
421
+ _(o, "i"), g("../utils").inherits(o, u), o.prototype.byteAt = function(n) {
422
+ return this.data[this.zero + n];
423
+ }, o.prototype.lastIndexOfSignature = function(n) {
424
+ for (var h = n.charCodeAt(0), b = n.charCodeAt(1), w = n.charCodeAt(2), p = n.charCodeAt(3), v = this.length - 4; 0 <= v; --v) if (this.data[v] === h && this.data[v + 1] === b && this.data[v + 2] === w && this.data[v + 3] === p) return v - this.zero;
425
+ return -1;
426
+ }, o.prototype.readAndCheckSignature = function(n) {
427
+ var h = n.charCodeAt(0), b = n.charCodeAt(1), w = n.charCodeAt(2), p = n.charCodeAt(3), v = this.readData(4);
428
+ return h === v[0] && b === v[1] && w === v[2] && p === v[3];
429
+ }, o.prototype.readData = function(n) {
430
+ if (this.checkOffset(n), n === 0) return [];
431
+ var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
432
+ return this.index += n, h;
433
+ }, U.exports = o;
434
+ }, { "../utils": 32, "./DataReader": 18 }], 18: [function(g, U, k) {
435
+ var u = g("../utils");
436
+ function o(n) {
437
+ this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
438
+ }
439
+ _(o, "i"), o.prototype = { checkOffset: /* @__PURE__ */ _(function(n) {
440
+ this.checkIndex(this.index + n);
441
+ }, "checkOffset"), checkIndex: /* @__PURE__ */ _(function(n) {
442
+ if (this.length < this.zero + n || n < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + n + "). Corrupted zip ?");
443
+ }, "checkIndex"), setIndex: /* @__PURE__ */ _(function(n) {
444
+ this.checkIndex(n), this.index = n;
445
+ }, "setIndex"), skip: /* @__PURE__ */ _(function(n) {
446
+ this.setIndex(this.index + n);
447
+ }, "skip"), byteAt: /* @__PURE__ */ _(function() {
448
+ }, "byteAt"), readInt: /* @__PURE__ */ _(function(n) {
449
+ var h, b = 0;
450
+ for (this.checkOffset(n), h = this.index + n - 1; h >= this.index; h--) b = (b << 8) + this.byteAt(h);
451
+ return this.index += n, b;
452
+ }, "readInt"), readString: /* @__PURE__ */ _(function(n) {
453
+ return u.transformTo("string", this.readData(n));
454
+ }, "readString"), readData: /* @__PURE__ */ _(function() {
455
+ }, "readData"), lastIndexOfSignature: /* @__PURE__ */ _(function() {
456
+ }, "lastIndexOfSignature"), readAndCheckSignature: /* @__PURE__ */ _(function() {
457
+ }, "readAndCheckSignature"), readDate: /* @__PURE__ */ _(function() {
458
+ var n = this.readInt(4);
459
+ return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
460
+ }, "readDate") }, U.exports = o;
461
+ }, { "../utils": 32 }], 19: [function(g, U, k) {
462
+ var u = g("./Uint8ArrayReader");
463
+ function o(n) {
464
+ u.call(this, n);
465
+ }
466
+ _(o, "i"), g("../utils").inherits(o, u), o.prototype.readData = function(n) {
467
+ this.checkOffset(n);
468
+ var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
469
+ return this.index += n, h;
470
+ }, U.exports = o;
471
+ }, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(g, U, k) {
472
+ var u = g("./DataReader");
473
+ function o(n) {
474
+ u.call(this, n);
475
+ }
476
+ _(o, "i"), g("../utils").inherits(o, u), o.prototype.byteAt = function(n) {
477
+ return this.data.charCodeAt(this.zero + n);
478
+ }, o.prototype.lastIndexOfSignature = function(n) {
479
+ return this.data.lastIndexOf(n) - this.zero;
480
+ }, o.prototype.readAndCheckSignature = function(n) {
481
+ return n === this.readData(4);
482
+ }, o.prototype.readData = function(n) {
483
+ this.checkOffset(n);
484
+ var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
485
+ return this.index += n, h;
486
+ }, U.exports = o;
487
+ }, { "../utils": 32, "./DataReader": 18 }], 21: [function(g, U, k) {
488
+ var u = g("./ArrayReader");
489
+ function o(n) {
490
+ u.call(this, n);
491
+ }
492
+ _(o, "i"), g("../utils").inherits(o, u), o.prototype.readData = function(n) {
493
+ if (this.checkOffset(n), n === 0) return new Uint8Array(0);
494
+ var h = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
495
+ return this.index += n, h;
496
+ }, U.exports = o;
497
+ }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(g, U, k) {
498
+ var u = g("../utils"), o = g("../support"), n = g("./ArrayReader"), h = g("./StringReader"), b = g("./NodeBufferReader"), w = g("./Uint8ArrayReader");
499
+ U.exports = function(p) {
500
+ var v = u.getTypeOf(p);
501
+ return u.checkSupport(v), v !== "string" || o.uint8array ? v === "nodebuffer" ? new b(p) : o.uint8array ? new w(u.transformTo("uint8array", p)) : new n(u.transformTo("array", p)) : new h(p);
502
+ };
503
+ }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(g, U, k) {
504
+ k.LOCAL_FILE_HEADER = "PK", k.CENTRAL_FILE_HEADER = "PK", k.CENTRAL_DIRECTORY_END = "PK", k.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", k.ZIP64_CENTRAL_DIRECTORY_END = "PK", k.DATA_DESCRIPTOR = "PK\x07\b";
505
+ }, {}], 24: [function(g, U, k) {
506
+ var u = g("./GenericWorker"), o = g("../utils");
507
+ function n(h) {
508
+ u.call(this, "ConvertWorker to " + h), this.destType = h;
509
+ }
510
+ _(n, "s"), o.inherits(n, u), n.prototype.processChunk = function(h) {
511
+ this.push({ data: o.transformTo(this.destType, h.data), meta: h.meta });
512
+ }, U.exports = n;
513
+ }, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(g, U, k) {
514
+ var u = g("./GenericWorker"), o = g("../crc32");
515
+ function n() {
516
+ u.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
517
+ }
518
+ _(n, "s"), g("../utils").inherits(n, u), n.prototype.processChunk = function(h) {
519
+ this.streamInfo.crc32 = o(h.data, this.streamInfo.crc32 || 0), this.push(h);
520
+ }, U.exports = n;
521
+ }, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(g, U, k) {
522
+ var u = g("../utils"), o = g("./GenericWorker");
523
+ function n(h) {
524
+ o.call(this, "DataLengthProbe for " + h), this.propName = h, this.withStreamInfo(h, 0);
525
+ }
526
+ _(n, "s"), u.inherits(n, o), n.prototype.processChunk = function(h) {
527
+ if (h) {
528
+ var b = this.streamInfo[this.propName] || 0;
529
+ this.streamInfo[this.propName] = b + h.data.length;
530
+ }
531
+ o.prototype.processChunk.call(this, h);
532
+ }, U.exports = n;
533
+ }, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(g, U, k) {
534
+ var u = g("../utils"), o = g("./GenericWorker");
535
+ function n(h) {
536
+ o.call(this, "DataWorker");
537
+ var b = this;
538
+ this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(w) {
539
+ b.dataIsReady = !0, b.data = w, b.max = w && w.length || 0, b.type = u.getTypeOf(w), b.isPaused || b._tickAndRepeat();
540
+ }, function(w) {
541
+ b.error(w);
542
+ });
543
+ }
544
+ _(n, "s"), u.inherits(n, o), n.prototype.cleanUp = function() {
545
+ o.prototype.cleanUp.call(this), this.data = null;
546
+ }, n.prototype.resume = function() {
547
+ return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, u.delay(this._tickAndRepeat, [], this)), !0);
548
+ }, n.prototype._tickAndRepeat = function() {
549
+ this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (u.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
550
+ }, n.prototype._tick = function() {
551
+ if (this.isPaused || this.isFinished) return !1;
552
+ var h = null, b = Math.min(this.max, this.index + 16384);
553
+ if (this.index >= this.max) return this.end();
554
+ switch (this.type) {
555
+ case "string":
556
+ h = this.data.substring(this.index, b);
557
+ break;
558
+ case "uint8array":
559
+ h = this.data.subarray(this.index, b);
560
+ break;
561
+ case "array":
562
+ case "nodebuffer":
563
+ h = this.data.slice(this.index, b);
564
+ }
565
+ return this.index = b, this.push({ data: h, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
566
+ }, U.exports = n;
567
+ }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(g, U, k) {
568
+ function u(o) {
569
+ this.name = o || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
570
+ }
571
+ _(u, "n"), u.prototype = { push: /* @__PURE__ */ _(function(o) {
572
+ this.emit("data", o);
573
+ }, "push"), end: /* @__PURE__ */ _(function() {
574
+ if (this.isFinished) return !1;
575
+ this.flush();
576
+ try {
577
+ this.emit("end"), this.cleanUp(), this.isFinished = !0;
578
+ } catch (o) {
579
+ this.emit("error", o);
580
+ }
581
+ return !0;
582
+ }, "end"), error: /* @__PURE__ */ _(function(o) {
583
+ return !this.isFinished && (this.isPaused ? this.generatedError = o : (this.isFinished = !0, this.emit("error", o), this.previous && this.previous.error(o), this.cleanUp()), !0);
584
+ }, "error"), on: /* @__PURE__ */ _(function(o, n) {
585
+ return this._listeners[o].push(n), this;
586
+ }, "on"), cleanUp: /* @__PURE__ */ _(function() {
587
+ this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
588
+ }, "cleanUp"), emit: /* @__PURE__ */ _(function(o, n) {
589
+ if (this._listeners[o]) for (var h = 0; h < this._listeners[o].length; h++) this._listeners[o][h].call(this, n);
590
+ }, "emit"), pipe: /* @__PURE__ */ _(function(o) {
591
+ return o.registerPrevious(this);
592
+ }, "pipe"), registerPrevious: /* @__PURE__ */ _(function(o) {
593
+ if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
594
+ this.streamInfo = o.streamInfo, this.mergeStreamInfo(), this.previous = o;
595
+ var n = this;
596
+ return o.on("data", function(h) {
597
+ n.processChunk(h);
598
+ }), o.on("end", function() {
599
+ n.end();
600
+ }), o.on("error", function(h) {
601
+ n.error(h);
602
+ }), this;
603
+ }, "registerPrevious"), pause: /* @__PURE__ */ _(function() {
604
+ return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
605
+ }, "pause"), resume: /* @__PURE__ */ _(function() {
606
+ if (!this.isPaused || this.isFinished) return !1;
607
+ var o = this.isPaused = !1;
608
+ return this.generatedError && (this.error(this.generatedError), o = !0), this.previous && this.previous.resume(), !o;
609
+ }, "resume"), flush: /* @__PURE__ */ _(function() {
610
+ }, "flush"), processChunk: /* @__PURE__ */ _(function(o) {
611
+ this.push(o);
612
+ }, "processChunk"), withStreamInfo: /* @__PURE__ */ _(function(o, n) {
613
+ return this.extraStreamInfo[o] = n, this.mergeStreamInfo(), this;
614
+ }, "withStreamInfo"), mergeStreamInfo: /* @__PURE__ */ _(function() {
615
+ for (var o in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, o) && (this.streamInfo[o] = this.extraStreamInfo[o]);
616
+ }, "mergeStreamInfo"), lock: /* @__PURE__ */ _(function() {
617
+ if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
618
+ this.isLocked = !0, this.previous && this.previous.lock();
619
+ }, "lock"), toString: /* @__PURE__ */ _(function() {
620
+ var o = "Worker " + this.name;
621
+ return this.previous ? this.previous + " -> " + o : o;
622
+ }, "toString") }, U.exports = u;
623
+ }, {}], 29: [function(g, U, k) {
624
+ var u = g("../utils"), o = g("./ConvertWorker"), n = g("./GenericWorker"), h = g("../base64"), b = g("../support"), w = g("../external"), p = null;
625
+ if (b.nodestream) try {
626
+ p = g("../nodejs/NodejsStreamOutputAdapter");
627
+ } catch {
628
+ }
629
+ function v(d, r) {
630
+ return new w.Promise(function(l, a) {
631
+ var c = [], y = d._internalType, z = d._outputType, S = d._mimeType;
632
+ d.on("data", function(F, B) {
633
+ c.push(F), r && r(B);
634
+ }).on("error", function(F) {
635
+ c = [], a(F);
636
+ }).on("end", function() {
637
+ try {
638
+ var F = (function(B, L, O) {
639
+ switch (B) {
640
+ case "blob":
641
+ return u.newBlob(u.transformTo("arraybuffer", L), O);
642
+ case "base64":
643
+ return h.encode(L);
644
+ default:
645
+ return u.transformTo(B, L);
646
+ }
647
+ })(z, (function(B, L) {
648
+ var O, M = 0, q = null, m = 0;
649
+ for (O = 0; O < L.length; O++) m += L[O].length;
650
+ switch (B) {
651
+ case "string":
652
+ return L.join("");
653
+ case "array":
654
+ return Array.prototype.concat.apply([], L);
655
+ case "uint8array":
656
+ for (q = new Uint8Array(m), O = 0; O < L.length; O++) q.set(L[O], M), M += L[O].length;
657
+ return q;
658
+ case "nodebuffer":
659
+ return Buffer.concat(L);
660
+ default:
661
+ throw new Error("concat : unsupported type '" + B + "'");
662
+ }
663
+ })(y, c), S);
664
+ l(F);
665
+ } catch (B) {
666
+ a(B);
667
+ }
668
+ c = [];
669
+ }).resume();
670
+ });
671
+ }
672
+ _(v, "l");
673
+ function i(d, r, l) {
674
+ var a = r;
675
+ switch (r) {
676
+ case "blob":
677
+ case "arraybuffer":
678
+ a = "uint8array";
679
+ break;
680
+ case "base64":
681
+ a = "string";
682
+ }
683
+ try {
684
+ this._internalType = a, this._outputType = r, this._mimeType = l, u.checkSupport(a), this._worker = d.pipe(new o(a)), d.lock();
685
+ } catch (c) {
686
+ this._worker = new n("error"), this._worker.error(c);
687
+ }
688
+ }
689
+ _(i, "f"), i.prototype = { accumulate: /* @__PURE__ */ _(function(d) {
690
+ return v(this, d);
691
+ }, "accumulate"), on: /* @__PURE__ */ _(function(d, r) {
692
+ var l = this;
693
+ return d === "data" ? this._worker.on(d, function(a) {
694
+ r.call(l, a.data, a.meta);
695
+ }) : this._worker.on(d, function() {
696
+ u.delay(r, arguments, l);
697
+ }), this;
698
+ }, "on"), resume: /* @__PURE__ */ _(function() {
699
+ return u.delay(this._worker.resume, [], this._worker), this;
700
+ }, "resume"), pause: /* @__PURE__ */ _(function() {
701
+ return this._worker.pause(), this;
702
+ }, "pause"), toNodejsStream: /* @__PURE__ */ _(function(d) {
703
+ if (u.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
704
+ return new p(this, { objectMode: this._outputType !== "nodebuffer" }, d);
705
+ }, "toNodejsStream") }, U.exports = i;
706
+ }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(g, U, k) {
707
+ if (k.base64 = !0, k.array = !0, k.string = !0, k.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", k.nodebuffer = typeof Buffer < "u", k.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") k.blob = !1;
708
+ else {
709
+ var u = new ArrayBuffer(0);
710
+ try {
711
+ k.blob = new Blob([u], { type: "application/zip" }).size === 0;
712
+ } catch {
713
+ try {
714
+ var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
715
+ o.append(u), k.blob = o.getBlob("application/zip").size === 0;
716
+ } catch {
717
+ k.blob = !1;
718
+ }
719
+ }
720
+ }
721
+ try {
722
+ k.nodestream = !!g("readable-stream").Readable;
723
+ } catch {
724
+ k.nodestream = !1;
725
+ }
726
+ }, { "readable-stream": 16 }], 31: [function(g, U, k) {
727
+ for (var u = g("./utils"), o = g("./support"), n = g("./nodejsUtils"), h = g("./stream/GenericWorker"), b = new Array(256), w = 0; w < 256; w++) b[w] = 252 <= w ? 6 : 248 <= w ? 5 : 240 <= w ? 4 : 224 <= w ? 3 : 192 <= w ? 2 : 1;
728
+ b[254] = b[254] = 1;
729
+ function p() {
730
+ h.call(this, "utf-8 decode"), this.leftOver = null;
731
+ }
732
+ _(p, "a");
733
+ function v() {
734
+ h.call(this, "utf-8 encode");
735
+ }
736
+ _(v, "l"), k.utf8encode = function(i) {
737
+ return o.nodebuffer ? n.newBufferFrom(i, "utf-8") : (function(d) {
738
+ var r, l, a, c, y, z = d.length, S = 0;
739
+ for (c = 0; c < z; c++) (64512 & (l = d.charCodeAt(c))) == 55296 && c + 1 < z && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (l = 65536 + (l - 55296 << 10) + (a - 56320), c++), S += l < 128 ? 1 : l < 2048 ? 2 : l < 65536 ? 3 : 4;
740
+ for (r = o.uint8array ? new Uint8Array(S) : new Array(S), c = y = 0; y < S; c++) (64512 & (l = d.charCodeAt(c))) == 55296 && c + 1 < z && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (l = 65536 + (l - 55296 << 10) + (a - 56320), c++), l < 128 ? r[y++] = l : (l < 2048 ? r[y++] = 192 | l >>> 6 : (l < 65536 ? r[y++] = 224 | l >>> 12 : (r[y++] = 240 | l >>> 18, r[y++] = 128 | l >>> 12 & 63), r[y++] = 128 | l >>> 6 & 63), r[y++] = 128 | 63 & l);
741
+ return r;
742
+ })(i);
743
+ }, k.utf8decode = function(i) {
744
+ return o.nodebuffer ? u.transformTo("nodebuffer", i).toString("utf-8") : (function(d) {
745
+ var r, l, a, c, y = d.length, z = new Array(2 * y);
746
+ for (r = l = 0; r < y; ) if ((a = d[r++]) < 128) z[l++] = a;
747
+ else if (4 < (c = b[a])) z[l++] = 65533, r += c - 1;
748
+ else {
749
+ for (a &= c === 2 ? 31 : c === 3 ? 15 : 7; 1 < c && r < y; ) a = a << 6 | 63 & d[r++], c--;
750
+ 1 < c ? z[l++] = 65533 : a < 65536 ? z[l++] = a : (a -= 65536, z[l++] = 55296 | a >> 10 & 1023, z[l++] = 56320 | 1023 & a);
751
+ }
752
+ return z.length !== l && (z.subarray ? z = z.subarray(0, l) : z.length = l), u.applyFromCharCode(z);
753
+ })(i = u.transformTo(o.uint8array ? "uint8array" : "array", i));
754
+ }, u.inherits(p, h), p.prototype.processChunk = function(i) {
755
+ var d = u.transformTo(o.uint8array ? "uint8array" : "array", i.data);
756
+ if (this.leftOver && this.leftOver.length) {
757
+ if (o.uint8array) {
758
+ var r = d;
759
+ (d = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), d.set(r, this.leftOver.length);
760
+ } else d = this.leftOver.concat(d);
761
+ this.leftOver = null;
762
+ }
763
+ var l = (function(c, y) {
764
+ var z;
765
+ for ((y = y || c.length) > c.length && (y = c.length), z = y - 1; 0 <= z && (192 & c[z]) == 128; ) z--;
766
+ return z < 0 || z === 0 ? y : z + b[c[z]] > y ? z : y;
767
+ })(d), a = d;
768
+ l !== d.length && (o.uint8array ? (a = d.subarray(0, l), this.leftOver = d.subarray(l, d.length)) : (a = d.slice(0, l), this.leftOver = d.slice(l, d.length))), this.push({ data: k.utf8decode(a), meta: i.meta });
769
+ }, p.prototype.flush = function() {
770
+ this.leftOver && this.leftOver.length && (this.push({ data: k.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
771
+ }, k.Utf8DecodeWorker = p, u.inherits(v, h), v.prototype.processChunk = function(i) {
772
+ this.push({ data: k.utf8encode(i.data), meta: i.meta });
773
+ }, k.Utf8EncodeWorker = v;
774
+ }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(g, U, k) {
775
+ var u = g("./support"), o = g("./base64"), n = g("./nodejsUtils"), h = g("./external");
776
+ function b(r) {
777
+ return r;
778
+ }
779
+ _(b, "n");
780
+ function w(r, l) {
781
+ for (var a = 0; a < r.length; ++a) l[a] = 255 & r.charCodeAt(a);
782
+ return l;
783
+ }
784
+ _(w, "l"), g("setimmediate"), k.newBlob = function(r, l) {
785
+ k.checkSupport("blob");
786
+ try {
787
+ return new Blob([r], { type: l });
788
+ } catch {
789
+ try {
790
+ var a = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
791
+ return a.append(r), a.getBlob(l);
792
+ } catch {
793
+ throw new Error("Bug : can't construct the Blob.");
794
+ }
795
+ }
796
+ };
797
+ var p = { stringifyByChunk: /* @__PURE__ */ _(function(r, l, a) {
798
+ var c = [], y = 0, z = r.length;
799
+ if (z <= a) return String.fromCharCode.apply(null, r);
800
+ for (; y < z; ) l === "array" || l === "nodebuffer" ? c.push(String.fromCharCode.apply(null, r.slice(y, Math.min(y + a, z)))) : c.push(String.fromCharCode.apply(null, r.subarray(y, Math.min(y + a, z)))), y += a;
801
+ return c.join("");
802
+ }, "stringifyByChunk"), stringifyByChar: /* @__PURE__ */ _(function(r) {
803
+ for (var l = "", a = 0; a < r.length; a++) l += String.fromCharCode(r[a]);
804
+ return l;
805
+ }, "stringifyByChar"), applyCanBeUsed: { uint8array: (function() {
806
+ try {
807
+ return u.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
808
+ } catch {
809
+ return !1;
810
+ }
811
+ })(), nodebuffer: (function() {
812
+ try {
813
+ return u.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
814
+ } catch {
815
+ return !1;
816
+ }
817
+ })() } };
818
+ function v(r) {
819
+ var l = 65536, a = k.getTypeOf(r), c = !0;
820
+ if (a === "uint8array" ? c = p.applyCanBeUsed.uint8array : a === "nodebuffer" && (c = p.applyCanBeUsed.nodebuffer), c) for (; 1 < l; ) try {
821
+ return p.stringifyByChunk(r, a, l);
822
+ } catch {
823
+ l = Math.floor(l / 2);
824
+ }
825
+ return p.stringifyByChar(r);
826
+ }
827
+ _(v, "s");
828
+ function i(r, l) {
829
+ for (var a = 0; a < r.length; a++) l[a] = r[a];
830
+ return l;
831
+ }
832
+ _(i, "f"), k.applyFromCharCode = v;
833
+ var d = {};
834
+ d.string = { string: b, array: /* @__PURE__ */ _(function(r) {
835
+ return w(r, new Array(r.length));
836
+ }, "array"), arraybuffer: /* @__PURE__ */ _(function(r) {
837
+ return d.string.uint8array(r).buffer;
838
+ }, "arraybuffer"), uint8array: /* @__PURE__ */ _(function(r) {
839
+ return w(r, new Uint8Array(r.length));
840
+ }, "uint8array"), nodebuffer: /* @__PURE__ */ _(function(r) {
841
+ return w(r, n.allocBuffer(r.length));
842
+ }, "nodebuffer") }, d.array = { string: v, array: b, arraybuffer: /* @__PURE__ */ _(function(r) {
843
+ return new Uint8Array(r).buffer;
844
+ }, "arraybuffer"), uint8array: /* @__PURE__ */ _(function(r) {
845
+ return new Uint8Array(r);
846
+ }, "uint8array"), nodebuffer: /* @__PURE__ */ _(function(r) {
847
+ return n.newBufferFrom(r);
848
+ }, "nodebuffer") }, d.arraybuffer = { string: /* @__PURE__ */ _(function(r) {
849
+ return v(new Uint8Array(r));
850
+ }, "string"), array: /* @__PURE__ */ _(function(r) {
851
+ return i(new Uint8Array(r), new Array(r.byteLength));
852
+ }, "array"), arraybuffer: b, uint8array: /* @__PURE__ */ _(function(r) {
853
+ return new Uint8Array(r);
854
+ }, "uint8array"), nodebuffer: /* @__PURE__ */ _(function(r) {
855
+ return n.newBufferFrom(new Uint8Array(r));
856
+ }, "nodebuffer") }, d.uint8array = { string: v, array: /* @__PURE__ */ _(function(r) {
857
+ return i(r, new Array(r.length));
858
+ }, "array"), arraybuffer: /* @__PURE__ */ _(function(r) {
859
+ return r.buffer;
860
+ }, "arraybuffer"), uint8array: b, nodebuffer: /* @__PURE__ */ _(function(r) {
861
+ return n.newBufferFrom(r);
862
+ }, "nodebuffer") }, d.nodebuffer = { string: v, array: /* @__PURE__ */ _(function(r) {
863
+ return i(r, new Array(r.length));
864
+ }, "array"), arraybuffer: /* @__PURE__ */ _(function(r) {
865
+ return d.nodebuffer.uint8array(r).buffer;
866
+ }, "arraybuffer"), uint8array: /* @__PURE__ */ _(function(r) {
867
+ return i(r, new Uint8Array(r.length));
868
+ }, "uint8array"), nodebuffer: b }, k.transformTo = function(r, l) {
869
+ if (l = l || "", !r) return l;
870
+ k.checkSupport(r);
871
+ var a = k.getTypeOf(l);
872
+ return d[a][r](l);
873
+ }, k.resolve = function(r) {
874
+ for (var l = r.split("/"), a = [], c = 0; c < l.length; c++) {
875
+ var y = l[c];
876
+ y === "." || y === "" && c !== 0 && c !== l.length - 1 || (y === ".." ? a.pop() : a.push(y));
877
+ }
878
+ return a.join("/");
879
+ }, k.getTypeOf = function(r) {
880
+ return typeof r == "string" ? "string" : Object.prototype.toString.call(r) === "[object Array]" ? "array" : u.nodebuffer && n.isBuffer(r) ? "nodebuffer" : u.uint8array && r instanceof Uint8Array ? "uint8array" : u.arraybuffer && r instanceof ArrayBuffer ? "arraybuffer" : void 0;
881
+ }, k.checkSupport = function(r) {
882
+ if (!u[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
883
+ }, k.MAX_VALUE_16BITS = 65535, k.MAX_VALUE_32BITS = -1, k.pretty = function(r) {
884
+ var l, a, c = "";
885
+ for (a = 0; a < (r || "").length; a++) c += "\\x" + ((l = r.charCodeAt(a)) < 16 ? "0" : "") + l.toString(16).toUpperCase();
886
+ return c;
887
+ }, k.delay = function(r, l, a) {
888
+ setImmediate(function() {
889
+ r.apply(a || null, l || []);
890
+ });
891
+ }, k.inherits = function(r, l) {
892
+ function a() {
893
+ }
894
+ _(a, "r"), a.prototype = l.prototype, r.prototype = new a();
895
+ }, k.extend = function() {
896
+ var r, l, a = {};
897
+ for (r = 0; r < arguments.length; r++) for (l in arguments[r]) Object.prototype.hasOwnProperty.call(arguments[r], l) && a[l] === void 0 && (a[l] = arguments[r][l]);
898
+ return a;
899
+ }, k.prepareContent = function(r, l, a, c, y) {
900
+ return h.Promise.resolve(l).then(function(z) {
901
+ return u.blob && (z instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(z)) !== -1) && typeof FileReader < "u" ? new h.Promise(function(S, F) {
902
+ var B = new FileReader();
903
+ B.onload = function(L) {
904
+ S(L.target.result);
905
+ }, B.onerror = function(L) {
906
+ F(L.target.error);
907
+ }, B.readAsArrayBuffer(z);
908
+ }) : z;
909
+ }).then(function(z) {
910
+ var S = k.getTypeOf(z);
911
+ return S ? (S === "arraybuffer" ? z = k.transformTo("uint8array", z) : S === "string" && (y ? z = o.decode(z) : a && c !== !0 && (z = (function(F) {
912
+ return w(F, u.uint8array ? new Uint8Array(F.length) : new Array(F.length));
913
+ })(z))), z) : h.Promise.reject(new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
914
+ });
915
+ };
916
+ }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(g, U, k) {
917
+ var u = g("./reader/readerFor"), o = g("./utils"), n = g("./signature"), h = g("./zipEntry"), b = g("./support");
918
+ function w(p) {
919
+ this.files = [], this.loadOptions = p;
920
+ }
921
+ _(w, "h"), w.prototype = { checkSignature: /* @__PURE__ */ _(function(p) {
922
+ if (!this.reader.readAndCheckSignature(p)) {
923
+ this.reader.index -= 4;
924
+ var v = this.reader.readString(4);
925
+ throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(v) + ", expected " + o.pretty(p) + ")");
926
+ }
927
+ }, "checkSignature"), isSignature: /* @__PURE__ */ _(function(p, v) {
928
+ var i = this.reader.index;
929
+ this.reader.setIndex(p);
930
+ var d = this.reader.readString(4) === v;
931
+ return this.reader.setIndex(i), d;
932
+ }, "isSignature"), readBlockEndOfCentral: /* @__PURE__ */ _(function() {
933
+ this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2);
934
+ var p = this.reader.readData(this.zipCommentLength), v = b.uint8array ? "uint8array" : "array", i = o.transformTo(v, p);
935
+ this.zipComment = this.loadOptions.decodeFileName(i);
936
+ }, "readBlockEndOfCentral"), readBlockZip64EndOfCentral: /* @__PURE__ */ _(function() {
937
+ this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};
938
+ for (var p, v, i, d = this.zip64EndOfCentralSize - 44; 0 < d; ) p = this.reader.readInt(2), v = this.reader.readInt(4), i = this.reader.readData(v), this.zip64ExtensibleData[p] = { id: p, length: v, value: i };
939
+ }, "readBlockZip64EndOfCentral"), readBlockZip64EndOfCentralLocator: /* @__PURE__ */ _(function() {
940
+ if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
941
+ }, "readBlockZip64EndOfCentralLocator"), readLocalFiles: /* @__PURE__ */ _(function() {
942
+ var p, v;
943
+ for (p = 0; p < this.files.length; p++) v = this.files[p], this.reader.setIndex(v.localHeaderOffset), this.checkSignature(n.LOCAL_FILE_HEADER), v.readLocalPart(this.reader), v.handleUTF8(), v.processAttributes();
944
+ }, "readLocalFiles"), readCentralDir: /* @__PURE__ */ _(function() {
945
+ var p;
946
+ for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); ) (p = new h({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(p);
947
+ if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
948
+ }, "readCentralDir"), readEndOfCentral: /* @__PURE__ */ _(function() {
949
+ var p = this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);
950
+ if (p < 0) throw this.isSignature(0, n.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
951
+ this.reader.setIndex(p);
952
+ var v = p;
953
+ if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === o.MAX_VALUE_16BITS || this.diskWithCentralDirStart === o.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === o.MAX_VALUE_16BITS || this.centralDirRecords === o.MAX_VALUE_16BITS || this.centralDirSize === o.MAX_VALUE_32BITS || this.centralDirOffset === o.MAX_VALUE_32BITS) {
954
+ if (this.zip64 = !0, (p = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
955
+ if (this.reader.setIndex(p), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, n.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
956
+ this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
957
+ }
958
+ var i = this.centralDirOffset + this.centralDirSize;
959
+ this.zip64 && (i += 20, i += 12 + this.zip64EndOfCentralSize);
960
+ var d = v - i;
961
+ if (0 < d) this.isSignature(v, n.CENTRAL_FILE_HEADER) || (this.reader.zero = d);
962
+ else if (d < 0) throw new Error("Corrupted zip: missing " + Math.abs(d) + " bytes.");
963
+ }, "readEndOfCentral"), prepareReader: /* @__PURE__ */ _(function(p) {
964
+ this.reader = u(p);
965
+ }, "prepareReader"), load: /* @__PURE__ */ _(function(p) {
966
+ this.prepareReader(p), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
967
+ }, "load") }, U.exports = w;
968
+ }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(g, U, k) {
969
+ var u = g("./reader/readerFor"), o = g("./utils"), n = g("./compressedObject"), h = g("./crc32"), b = g("./utf8"), w = g("./compressions"), p = g("./support");
970
+ function v(i, d) {
971
+ this.options = i, this.loadOptions = d;
972
+ }
973
+ _(v, "l"), v.prototype = { isEncrypted: /* @__PURE__ */ _(function() {
974
+ return (1 & this.bitFlag) == 1;
975
+ }, "isEncrypted"), useUTF8: /* @__PURE__ */ _(function() {
976
+ return (2048 & this.bitFlag) == 2048;
977
+ }, "useUTF8"), readLocalPart: /* @__PURE__ */ _(function(i) {
978
+ var d, r;
979
+ if (i.skip(22), this.fileNameLength = i.readInt(2), r = i.readInt(2), this.fileName = i.readData(this.fileNameLength), i.skip(r), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
980
+ if ((d = (function(l) {
981
+ for (var a in w) if (Object.prototype.hasOwnProperty.call(w, a) && w[a].magic === l) return w[a];
982
+ return null;
983
+ })(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
984
+ this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, d, i.readData(this.compressedSize));
985
+ }, "readLocalPart"), readCentralPart: /* @__PURE__ */ _(function(i) {
986
+ this.versionMadeBy = i.readInt(2), i.skip(2), this.bitFlag = i.readInt(2), this.compressionMethod = i.readString(2), this.date = i.readDate(), this.crc32 = i.readInt(4), this.compressedSize = i.readInt(4), this.uncompressedSize = i.readInt(4);
987
+ var d = i.readInt(2);
988
+ if (this.extraFieldsLength = i.readInt(2), this.fileCommentLength = i.readInt(2), this.diskNumberStart = i.readInt(2), this.internalFileAttributes = i.readInt(2), this.externalFileAttributes = i.readInt(4), this.localHeaderOffset = i.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
989
+ i.skip(d), this.readExtraFields(i), this.parseZIP64ExtraField(i), this.fileComment = i.readData(this.fileCommentLength);
990
+ }, "readCentralPart"), processAttributes: /* @__PURE__ */ _(function() {
991
+ this.unixPermissions = null, this.dosPermissions = null;
992
+ var i = this.versionMadeBy >> 8;
993
+ this.dir = !!(16 & this.externalFileAttributes), i == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), i == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
994
+ }, "processAttributes"), parseZIP64ExtraField: /* @__PURE__ */ _(function() {
995
+ if (this.extraFields[1]) {
996
+ var i = u(this.extraFields[1].value);
997
+ this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = i.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = i.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = i.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = i.readInt(4));
998
+ }
999
+ }, "parseZIP64ExtraField"), readExtraFields: /* @__PURE__ */ _(function(i) {
1000
+ var d, r, l, a = i.index + this.extraFieldsLength;
1001
+ for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; ) d = i.readInt(2), r = i.readInt(2), l = i.readData(r), this.extraFields[d] = { id: d, length: r, value: l };
1002
+ i.setIndex(a);
1003
+ }, "readExtraFields"), handleUTF8: /* @__PURE__ */ _(function() {
1004
+ var i = p.uint8array ? "uint8array" : "array";
1005
+ if (this.useUTF8()) this.fileNameStr = b.utf8decode(this.fileName), this.fileCommentStr = b.utf8decode(this.fileComment);
1006
+ else {
1007
+ var d = this.findExtraFieldUnicodePath();
1008
+ if (d !== null) this.fileNameStr = d;
1009
+ else {
1010
+ var r = o.transformTo(i, this.fileName);
1011
+ this.fileNameStr = this.loadOptions.decodeFileName(r);
1012
+ }
1013
+ var l = this.findExtraFieldUnicodeComment();
1014
+ if (l !== null) this.fileCommentStr = l;
1015
+ else {
1016
+ var a = o.transformTo(i, this.fileComment);
1017
+ this.fileCommentStr = this.loadOptions.decodeFileName(a);
1018
+ }
1019
+ }
1020
+ }, "handleUTF8"), findExtraFieldUnicodePath: /* @__PURE__ */ _(function() {
1021
+ var i = this.extraFields[28789];
1022
+ if (i) {
1023
+ var d = u(i.value);
1024
+ return d.readInt(1) !== 1 || h(this.fileName) !== d.readInt(4) ? null : b.utf8decode(d.readData(i.length - 5));
1025
+ }
1026
+ return null;
1027
+ }, "findExtraFieldUnicodePath"), findExtraFieldUnicodeComment: /* @__PURE__ */ _(function() {
1028
+ var i = this.extraFields[25461];
1029
+ if (i) {
1030
+ var d = u(i.value);
1031
+ return d.readInt(1) !== 1 || h(this.fileComment) !== d.readInt(4) ? null : b.utf8decode(d.readData(i.length - 5));
1032
+ }
1033
+ return null;
1034
+ }, "findExtraFieldUnicodeComment") }, U.exports = v;
1035
+ }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(g, U, k) {
1036
+ function u(d, r, l) {
1037
+ this.name = d, this.dir = l.dir, this.date = l.date, this.comment = l.comment, this.unixPermissions = l.unixPermissions, this.dosPermissions = l.dosPermissions, this._data = r, this._dataBinary = l.binary, this.options = { compression: l.compression, compressionOptions: l.compressionOptions };
1038
+ }
1039
+ _(u, "n");
1040
+ var o = g("./stream/StreamHelper"), n = g("./stream/DataWorker"), h = g("./utf8"), b = g("./compressedObject"), w = g("./stream/GenericWorker");
1041
+ u.prototype = { internalStream: /* @__PURE__ */ _(function(d) {
1042
+ var r = null, l = "string";
1043
+ try {
1044
+ if (!d) throw new Error("No output type specified.");
1045
+ var a = (l = d.toLowerCase()) === "string" || l === "text";
1046
+ l !== "binarystring" && l !== "text" || (l = "string"), r = this._decompressWorker();
1047
+ var c = !this._dataBinary;
1048
+ c && !a && (r = r.pipe(new h.Utf8EncodeWorker())), !c && a && (r = r.pipe(new h.Utf8DecodeWorker()));
1049
+ } catch (y) {
1050
+ (r = new w("error")).error(y);
1051
+ }
1052
+ return new o(r, l, "");
1053
+ }, "internalStream"), async: /* @__PURE__ */ _(function(d, r) {
1054
+ return this.internalStream(d).accumulate(r);
1055
+ }, "async"), nodeStream: /* @__PURE__ */ _(function(d, r) {
1056
+ return this.internalStream(d || "nodebuffer").toNodejsStream(r);
1057
+ }, "nodeStream"), _compressWorker: /* @__PURE__ */ _(function(d, r) {
1058
+ if (this._data instanceof b && this._data.compression.magic === d.magic) return this._data.getCompressedWorker();
1059
+ var l = this._decompressWorker();
1060
+ return this._dataBinary || (l = l.pipe(new h.Utf8EncodeWorker())), b.createWorkerFrom(l, d, r);
1061
+ }, "_compressWorker"), _decompressWorker: /* @__PURE__ */ _(function() {
1062
+ return this._data instanceof b ? this._data.getContentWorker() : this._data instanceof w ? this._data : new n(this._data);
1063
+ }, "_decompressWorker") };
1064
+ for (var p = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], v = function() {
1065
+ throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1066
+ }, i = 0; i < p.length; i++) u.prototype[p[i]] = v;
1067
+ U.exports = u;
1068
+ }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(g, U, k) {
1069
+ (function(u) {
1070
+ var o, n, h = u.MutationObserver || u.WebKitMutationObserver;
1071
+ if (h) {
1072
+ var b = 0, w = new h(d), p = u.document.createTextNode("");
1073
+ w.observe(p, { characterData: !0 }), o = /* @__PURE__ */ _(function() {
1074
+ p.data = b = ++b % 2;
1075
+ }, "r");
1076
+ } else if (u.setImmediate || u.MessageChannel === void 0) o = "document" in u && "onreadystatechange" in u.document.createElement("script") ? function() {
1077
+ var r = u.document.createElement("script");
1078
+ r.onreadystatechange = function() {
1079
+ d(), r.onreadystatechange = null, r.parentNode.removeChild(r), r = null;
1080
+ }, u.document.documentElement.appendChild(r);
1081
+ } : function() {
1082
+ setTimeout(d, 0);
1083
+ };
1084
+ else {
1085
+ var v = new u.MessageChannel();
1086
+ v.port1.onmessage = d, o = /* @__PURE__ */ _(function() {
1087
+ v.port2.postMessage(0);
1088
+ }, "r");
1089
+ }
1090
+ var i = [];
1091
+ function d() {
1092
+ var r, l;
1093
+ n = !0;
1094
+ for (var a = i.length; a; ) {
1095
+ for (l = i, i = [], r = -1; ++r < a; ) l[r]();
1096
+ a = i.length;
1097
+ }
1098
+ n = !1;
1099
+ }
1100
+ _(d, "u"), U.exports = function(r) {
1101
+ i.push(r) !== 1 || n || o();
1102
+ };
1103
+ }).call(this, typeof wt < "u" ? wt : typeof self < "u" ? self : typeof window < "u" ? window : {});
1104
+ }, {}], 37: [function(g, U, k) {
1105
+ var u = g("immediate");
1106
+ function o() {
1107
+ }
1108
+ _(o, "u");
1109
+ var n = {}, h = ["REJECTED"], b = ["FULFILLED"], w = ["PENDING"];
1110
+ function p(a) {
1111
+ if (typeof a != "function") throw new TypeError("resolver must be a function");
1112
+ this.state = w, this.queue = [], this.outcome = void 0, a !== o && r(this, a);
1113
+ }
1114
+ _(p, "o");
1115
+ function v(a, c, y) {
1116
+ this.promise = a, typeof c == "function" && (this.onFulfilled = c, this.callFulfilled = this.otherCallFulfilled), typeof y == "function" && (this.onRejected = y, this.callRejected = this.otherCallRejected);
1117
+ }
1118
+ _(v, "h");
1119
+ function i(a, c, y) {
1120
+ u(function() {
1121
+ var z;
1122
+ try {
1123
+ z = c(y);
1124
+ } catch (S) {
1125
+ return n.reject(a, S);
1126
+ }
1127
+ z === a ? n.reject(a, new TypeError("Cannot resolve promise with itself")) : n.resolve(a, z);
1128
+ });
1129
+ }
1130
+ _(i, "f");
1131
+ function d(a) {
1132
+ var c = a && a.then;
1133
+ if (a && (typeof a == "object" || typeof a == "function") && typeof c == "function") return function() {
1134
+ c.apply(a, arguments);
1135
+ };
1136
+ }
1137
+ _(d, "c");
1138
+ function r(a, c) {
1139
+ var y = !1;
1140
+ function z(B) {
1141
+ y || (y = !0, n.reject(a, B));
1142
+ }
1143
+ _(z, "n");
1144
+ function S(B) {
1145
+ y || (y = !0, n.resolve(a, B));
1146
+ }
1147
+ _(S, "i");
1148
+ var F = l(function() {
1149
+ c(S, z);
1150
+ });
1151
+ F.status === "error" && z(F.value);
1152
+ }
1153
+ _(r, "d");
1154
+ function l(a, c) {
1155
+ var y = {};
1156
+ try {
1157
+ y.value = a(c), y.status = "success";
1158
+ } catch (z) {
1159
+ y.status = "error", y.value = z;
1160
+ }
1161
+ return y;
1162
+ }
1163
+ _(l, "p"), (U.exports = p).prototype.finally = function(a) {
1164
+ if (typeof a != "function") return this;
1165
+ var c = this.constructor;
1166
+ return this.then(function(y) {
1167
+ return c.resolve(a()).then(function() {
1168
+ return y;
1169
+ });
1170
+ }, function(y) {
1171
+ return c.resolve(a()).then(function() {
1172
+ throw y;
1173
+ });
1174
+ });
1175
+ }, p.prototype.catch = function(a) {
1176
+ return this.then(null, a);
1177
+ }, p.prototype.then = function(a, c) {
1178
+ if (typeof a != "function" && this.state === b || typeof c != "function" && this.state === h) return this;
1179
+ var y = new this.constructor(o);
1180
+ return this.state !== w ? i(y, this.state === b ? a : c, this.outcome) : this.queue.push(new v(y, a, c)), y;
1181
+ }, v.prototype.callFulfilled = function(a) {
1182
+ n.resolve(this.promise, a);
1183
+ }, v.prototype.otherCallFulfilled = function(a) {
1184
+ i(this.promise, this.onFulfilled, a);
1185
+ }, v.prototype.callRejected = function(a) {
1186
+ n.reject(this.promise, a);
1187
+ }, v.prototype.otherCallRejected = function(a) {
1188
+ i(this.promise, this.onRejected, a);
1189
+ }, n.resolve = function(a, c) {
1190
+ var y = l(d, c);
1191
+ if (y.status === "error") return n.reject(a, y.value);
1192
+ var z = y.value;
1193
+ if (z) r(a, z);
1194
+ else {
1195
+ a.state = b, a.outcome = c;
1196
+ for (var S = -1, F = a.queue.length; ++S < F; ) a.queue[S].callFulfilled(c);
1197
+ }
1198
+ return a;
1199
+ }, n.reject = function(a, c) {
1200
+ a.state = h, a.outcome = c;
1201
+ for (var y = -1, z = a.queue.length; ++y < z; ) a.queue[y].callRejected(c);
1202
+ return a;
1203
+ }, p.resolve = function(a) {
1204
+ return a instanceof this ? a : n.resolve(new this(o), a);
1205
+ }, p.reject = function(a) {
1206
+ var c = new this(o);
1207
+ return n.reject(c, a);
1208
+ }, p.all = function(a) {
1209
+ var c = this;
1210
+ if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1211
+ var y = a.length, z = !1;
1212
+ if (!y) return this.resolve([]);
1213
+ for (var S = new Array(y), F = 0, B = -1, L = new this(o); ++B < y; ) O(a[B], B);
1214
+ return L;
1215
+ function O(M, q) {
1216
+ c.resolve(M).then(function(m) {
1217
+ S[q] = m, ++F !== y || z || (z = !0, n.resolve(L, S));
1218
+ }, function(m) {
1219
+ z || (z = !0, n.reject(L, m));
1220
+ });
1221
+ }
1222
+ }, p.race = function(a) {
1223
+ var c = this;
1224
+ if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1225
+ var y = a.length, z = !1;
1226
+ if (!y) return this.resolve([]);
1227
+ for (var S = -1, F = new this(o); ++S < y; ) B = a[S], c.resolve(B).then(function(L) {
1228
+ z || (z = !0, n.resolve(F, L));
1229
+ }, function(L) {
1230
+ z || (z = !0, n.reject(F, L));
1231
+ });
1232
+ var B;
1233
+ return F;
1234
+ };
1235
+ }, { immediate: 36 }], 38: [function(g, U, k) {
1236
+ var u = {};
1237
+ (0, g("./lib/utils/common").assign)(u, g("./lib/deflate"), g("./lib/inflate"), g("./lib/zlib/constants")), U.exports = u;
1238
+ }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(g, U, k) {
1239
+ var u = g("./zlib/deflate"), o = g("./utils/common"), n = g("./utils/strings"), h = g("./zlib/messages"), b = g("./zlib/zstream"), w = Object.prototype.toString, p = 0, v = -1, i = 0, d = 8;
1240
+ function r(a) {
1241
+ if (!(this instanceof r)) return new r(a);
1242
+ this.options = o.assign({ level: v, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, a || {});
1243
+ var c = this.options;
1244
+ c.raw && 0 < c.windowBits ? c.windowBits = -c.windowBits : c.gzip && 0 < c.windowBits && c.windowBits < 16 && (c.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new b(), this.strm.avail_out = 0;
1245
+ var y = u.deflateInit2(this.strm, c.level, c.method, c.windowBits, c.memLevel, c.strategy);
1246
+ if (y !== p) throw new Error(h[y]);
1247
+ if (c.header && u.deflateSetHeader(this.strm, c.header), c.dictionary) {
1248
+ var z;
1249
+ if (z = typeof c.dictionary == "string" ? n.string2buf(c.dictionary) : w.call(c.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(c.dictionary) : c.dictionary, (y = u.deflateSetDictionary(this.strm, z)) !== p) throw new Error(h[y]);
1250
+ this._dict_set = !0;
1251
+ }
1252
+ }
1253
+ _(r, "p");
1254
+ function l(a, c) {
1255
+ var y = new r(c);
1256
+ if (y.push(a, !0), y.err) throw y.msg || h[y.err];
1257
+ return y.result;
1258
+ }
1259
+ _(l, "n"), r.prototype.push = function(a, c) {
1260
+ var y, z, S = this.strm, F = this.options.chunkSize;
1261
+ if (this.ended) return !1;
1262
+ z = c === ~~c ? c : c === !0 ? 4 : 0, typeof a == "string" ? S.input = n.string2buf(a) : w.call(a) === "[object ArrayBuffer]" ? S.input = new Uint8Array(a) : S.input = a, S.next_in = 0, S.avail_in = S.input.length;
1263
+ do {
1264
+ if (S.avail_out === 0 && (S.output = new o.Buf8(F), S.next_out = 0, S.avail_out = F), (y = u.deflate(S, z)) !== 1 && y !== p) return this.onEnd(y), !(this.ended = !0);
1265
+ S.avail_out !== 0 && (S.avail_in !== 0 || z !== 4 && z !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(o.shrinkBuf(S.output, S.next_out))) : this.onData(o.shrinkBuf(S.output, S.next_out)));
1266
+ } while ((0 < S.avail_in || S.avail_out === 0) && y !== 1);
1267
+ return z === 4 ? (y = u.deflateEnd(this.strm), this.onEnd(y), this.ended = !0, y === p) : z !== 2 || (this.onEnd(p), !(S.avail_out = 0));
1268
+ }, r.prototype.onData = function(a) {
1269
+ this.chunks.push(a);
1270
+ }, r.prototype.onEnd = function(a) {
1271
+ a === p && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = a, this.msg = this.strm.msg;
1272
+ }, k.Deflate = r, k.deflate = l, k.deflateRaw = function(a, c) {
1273
+ return (c = c || {}).raw = !0, l(a, c);
1274
+ }, k.gzip = function(a, c) {
1275
+ return (c = c || {}).gzip = !0, l(a, c);
1276
+ };
1277
+ }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(g, U, k) {
1278
+ var u = g("./zlib/inflate"), o = g("./utils/common"), n = g("./utils/strings"), h = g("./zlib/constants"), b = g("./zlib/messages"), w = g("./zlib/zstream"), p = g("./zlib/gzheader"), v = Object.prototype.toString;
1279
+ function i(r) {
1280
+ if (!(this instanceof i)) return new i(r);
1281
+ this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, r || {});
1282
+ var l = this.options;
1283
+ l.raw && 0 <= l.windowBits && l.windowBits < 16 && (l.windowBits = -l.windowBits, l.windowBits === 0 && (l.windowBits = -15)), !(0 <= l.windowBits && l.windowBits < 16) || r && r.windowBits || (l.windowBits += 32), 15 < l.windowBits && l.windowBits < 48 && (15 & l.windowBits) == 0 && (l.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new w(), this.strm.avail_out = 0;
1284
+ var a = u.inflateInit2(this.strm, l.windowBits);
1285
+ if (a !== h.Z_OK) throw new Error(b[a]);
1286
+ this.header = new p(), u.inflateGetHeader(this.strm, this.header);
1287
+ }
1288
+ _(i, "a");
1289
+ function d(r, l) {
1290
+ var a = new i(l);
1291
+ if (a.push(r, !0), a.err) throw a.msg || b[a.err];
1292
+ return a.result;
1293
+ }
1294
+ _(d, "o"), i.prototype.push = function(r, l) {
1295
+ var a, c, y, z, S, F, B = this.strm, L = this.options.chunkSize, O = this.options.dictionary, M = !1;
1296
+ if (this.ended) return !1;
1297
+ c = l === ~~l ? l : l === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof r == "string" ? B.input = n.binstring2buf(r) : v.call(r) === "[object ArrayBuffer]" ? B.input = new Uint8Array(r) : B.input = r, B.next_in = 0, B.avail_in = B.input.length;
1298
+ do {
1299
+ if (B.avail_out === 0 && (B.output = new o.Buf8(L), B.next_out = 0, B.avail_out = L), (a = u.inflate(B, h.Z_NO_FLUSH)) === h.Z_NEED_DICT && O && (F = typeof O == "string" ? n.string2buf(O) : v.call(O) === "[object ArrayBuffer]" ? new Uint8Array(O) : O, a = u.inflateSetDictionary(this.strm, F)), a === h.Z_BUF_ERROR && M === !0 && (a = h.Z_OK, M = !1), a !== h.Z_STREAM_END && a !== h.Z_OK) return this.onEnd(a), !(this.ended = !0);
1300
+ B.next_out && (B.avail_out !== 0 && a !== h.Z_STREAM_END && (B.avail_in !== 0 || c !== h.Z_FINISH && c !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (y = n.utf8border(B.output, B.next_out), z = B.next_out - y, S = n.buf2string(B.output, y), B.next_out = z, B.avail_out = L - z, z && o.arraySet(B.output, B.output, y, z, 0), this.onData(S)) : this.onData(o.shrinkBuf(B.output, B.next_out)))), B.avail_in === 0 && B.avail_out === 0 && (M = !0);
1301
+ } while ((0 < B.avail_in || B.avail_out === 0) && a !== h.Z_STREAM_END);
1302
+ return a === h.Z_STREAM_END && (c = h.Z_FINISH), c === h.Z_FINISH ? (a = u.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === h.Z_OK) : c !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(B.avail_out = 0));
1303
+ }, i.prototype.onData = function(r) {
1304
+ this.chunks.push(r);
1305
+ }, i.prototype.onEnd = function(r) {
1306
+ r === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
1307
+ }, k.Inflate = i, k.inflate = d, k.inflateRaw = function(r, l) {
1308
+ return (l = l || {}).raw = !0, d(r, l);
1309
+ }, k.ungzip = d;
1310
+ }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(g, U, k) {
1311
+ var u = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
1312
+ k.assign = function(h) {
1313
+ for (var b = Array.prototype.slice.call(arguments, 1); b.length; ) {
1314
+ var w = b.shift();
1315
+ if (w) {
1316
+ if (typeof w != "object") throw new TypeError(w + "must be non-object");
1317
+ for (var p in w) w.hasOwnProperty(p) && (h[p] = w[p]);
1318
+ }
1319
+ }
1320
+ return h;
1321
+ }, k.shrinkBuf = function(h, b) {
1322
+ return h.length === b ? h : h.subarray ? h.subarray(0, b) : (h.length = b, h);
1323
+ };
1324
+ var o = { arraySet: /* @__PURE__ */ _(function(h, b, w, p, v) {
1325
+ if (b.subarray && h.subarray) h.set(b.subarray(w, w + p), v);
1326
+ else for (var i = 0; i < p; i++) h[v + i] = b[w + i];
1327
+ }, "arraySet"), flattenChunks: /* @__PURE__ */ _(function(h) {
1328
+ var b, w, p, v, i, d;
1329
+ for (b = p = 0, w = h.length; b < w; b++) p += h[b].length;
1330
+ for (d = new Uint8Array(p), b = v = 0, w = h.length; b < w; b++) i = h[b], d.set(i, v), v += i.length;
1331
+ return d;
1332
+ }, "flattenChunks") }, n = { arraySet: /* @__PURE__ */ _(function(h, b, w, p, v) {
1333
+ for (var i = 0; i < p; i++) h[v + i] = b[w + i];
1334
+ }, "arraySet"), flattenChunks: /* @__PURE__ */ _(function(h) {
1335
+ return [].concat.apply([], h);
1336
+ }, "flattenChunks") };
1337
+ k.setTyped = function(h) {
1338
+ h ? (k.Buf8 = Uint8Array, k.Buf16 = Uint16Array, k.Buf32 = Int32Array, k.assign(k, o)) : (k.Buf8 = Array, k.Buf16 = Array, k.Buf32 = Array, k.assign(k, n));
1339
+ }, k.setTyped(u);
1340
+ }, {}], 42: [function(g, U, k) {
1341
+ var u = g("./common"), o = !0, n = !0;
1342
+ try {
1343
+ String.fromCharCode.apply(null, [0]);
1344
+ } catch {
1345
+ o = !1;
1346
+ }
1347
+ try {
1348
+ String.fromCharCode.apply(null, new Uint8Array(1));
1349
+ } catch {
1350
+ n = !1;
1351
+ }
1352
+ for (var h = new u.Buf8(256), b = 0; b < 256; b++) h[b] = 252 <= b ? 6 : 248 <= b ? 5 : 240 <= b ? 4 : 224 <= b ? 3 : 192 <= b ? 2 : 1;
1353
+ function w(p, v) {
1354
+ if (v < 65537 && (p.subarray && n || !p.subarray && o)) return String.fromCharCode.apply(null, u.shrinkBuf(p, v));
1355
+ for (var i = "", d = 0; d < v; d++) i += String.fromCharCode(p[d]);
1356
+ return i;
1357
+ }
1358
+ _(w, "l"), h[254] = h[254] = 1, k.string2buf = function(p) {
1359
+ var v, i, d, r, l, a = p.length, c = 0;
1360
+ for (r = 0; r < a; r++) (64512 & (i = p.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = p.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), c += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
1361
+ for (v = new u.Buf8(c), r = l = 0; l < c; r++) (64512 & (i = p.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = p.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), i < 128 ? v[l++] = i : (i < 2048 ? v[l++] = 192 | i >>> 6 : (i < 65536 ? v[l++] = 224 | i >>> 12 : (v[l++] = 240 | i >>> 18, v[l++] = 128 | i >>> 12 & 63), v[l++] = 128 | i >>> 6 & 63), v[l++] = 128 | 63 & i);
1362
+ return v;
1363
+ }, k.buf2binstring = function(p) {
1364
+ return w(p, p.length);
1365
+ }, k.binstring2buf = function(p) {
1366
+ for (var v = new u.Buf8(p.length), i = 0, d = v.length; i < d; i++) v[i] = p.charCodeAt(i);
1367
+ return v;
1368
+ }, k.buf2string = function(p, v) {
1369
+ var i, d, r, l, a = v || p.length, c = new Array(2 * a);
1370
+ for (i = d = 0; i < a; ) if ((r = p[i++]) < 128) c[d++] = r;
1371
+ else if (4 < (l = h[r])) c[d++] = 65533, i += l - 1;
1372
+ else {
1373
+ for (r &= l === 2 ? 31 : l === 3 ? 15 : 7; 1 < l && i < a; ) r = r << 6 | 63 & p[i++], l--;
1374
+ 1 < l ? c[d++] = 65533 : r < 65536 ? c[d++] = r : (r -= 65536, c[d++] = 55296 | r >> 10 & 1023, c[d++] = 56320 | 1023 & r);
1375
+ }
1376
+ return w(c, d);
1377
+ }, k.utf8border = function(p, v) {
1378
+ var i;
1379
+ for ((v = v || p.length) > p.length && (v = p.length), i = v - 1; 0 <= i && (192 & p[i]) == 128; ) i--;
1380
+ return i < 0 || i === 0 ? v : i + h[p[i]] > v ? i : v;
1381
+ };
1382
+ }, { "./common": 41 }], 43: [function(g, U, k) {
1383
+ U.exports = function(u, o, n, h) {
1384
+ for (var b = 65535 & u | 0, w = u >>> 16 & 65535 | 0, p = 0; n !== 0; ) {
1385
+ for (n -= p = 2e3 < n ? 2e3 : n; w = w + (b = b + o[h++] | 0) | 0, --p; ) ;
1386
+ b %= 65521, w %= 65521;
1387
+ }
1388
+ return b | w << 16 | 0;
1389
+ };
1390
+ }, {}], 44: [function(g, U, k) {
1391
+ U.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
1392
+ }, {}], 45: [function(g, U, k) {
1393
+ var u = (function() {
1394
+ for (var o, n = [], h = 0; h < 256; h++) {
1395
+ o = h;
1396
+ for (var b = 0; b < 8; b++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
1397
+ n[h] = o;
1398
+ }
1399
+ return n;
1400
+ })();
1401
+ U.exports = function(o, n, h, b) {
1402
+ var w = u, p = b + h;
1403
+ o ^= -1;
1404
+ for (var v = b; v < p; v++) o = o >>> 8 ^ w[255 & (o ^ n[v])];
1405
+ return -1 ^ o;
1406
+ };
1407
+ }, {}], 46: [function(g, U, k) {
1408
+ var u, o = g("../utils/common"), n = g("./trees"), h = g("./adler32"), b = g("./crc32"), w = g("./messages"), p = 0, v = 4, i = 0, d = -2, r = -1, l = 4, a = 2, c = 8, y = 9, z = 286, S = 30, F = 19, B = 2 * z + 1, L = 15, O = 3, M = 258, q = M + O + 1, m = 42, R = 113, e = 1, D = 2, $ = 3, j = 4;
1409
+ function Q(t, T) {
1410
+ return t.msg = w[T], T;
1411
+ }
1412
+ _(Q, "R");
1413
+ function Z(t) {
1414
+ return (t << 1) - (4 < t ? 9 : 0);
1415
+ }
1416
+ _(Z, "T");
1417
+ function J(t) {
1418
+ for (var T = t.length; 0 <= --T; ) t[T] = 0;
1419
+ }
1420
+ _(J, "D");
1421
+ function A(t) {
1422
+ var T = t.state, I = T.pending;
1423
+ I > t.avail_out && (I = t.avail_out), I !== 0 && (o.arraySet(t.output, T.pending_buf, T.pending_out, I, t.next_out), t.next_out += I, T.pending_out += I, t.total_out += I, t.avail_out -= I, T.pending -= I, T.pending === 0 && (T.pending_out = 0));
1424
+ }
1425
+ _(A, "F");
1426
+ function E(t, T) {
1427
+ n._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, T), t.block_start = t.strstart, A(t.strm);
1428
+ }
1429
+ _(E, "N");
1430
+ function V(t, T) {
1431
+ t.pending_buf[t.pending++] = T;
1432
+ }
1433
+ _(V, "U");
1434
+ function K(t, T) {
1435
+ t.pending_buf[t.pending++] = T >>> 8 & 255, t.pending_buf[t.pending++] = 255 & T;
1436
+ }
1437
+ _(K, "P");
1438
+ function G(t, T) {
1439
+ var I, f, s = t.max_chain_length, x = t.strstart, N = t.prev_length, P = t.nice_match, C = t.strstart > t.w_size - q ? t.strstart - (t.w_size - q) : 0, W = t.window, Y = t.w_mask, H = t.prev, X = t.strstart + M, nt = W[x + N - 1], et = W[x + N];
1440
+ t.prev_length >= t.good_match && (s >>= 2), P > t.lookahead && (P = t.lookahead);
1441
+ do
1442
+ if (W[(I = T) + N] === et && W[I + N - 1] === nt && W[I] === W[x] && W[++I] === W[x + 1]) {
1443
+ x += 2, I++;
1444
+ do
1445
+ ;
1446
+ while (W[++x] === W[++I] && W[++x] === W[++I] && W[++x] === W[++I] && W[++x] === W[++I] && W[++x] === W[++I] && W[++x] === W[++I] && W[++x] === W[++I] && W[++x] === W[++I] && x < X);
1447
+ if (f = M - (X - x), x = X - M, N < f) {
1448
+ if (t.match_start = T, P <= (N = f)) break;
1449
+ nt = W[x + N - 1], et = W[x + N];
1450
+ }
1451
+ }
1452
+ while ((T = H[T & Y]) > C && --s != 0);
1453
+ return N <= t.lookahead ? N : t.lookahead;
1454
+ }
1455
+ _(G, "L");
1456
+ function it(t) {
1457
+ var T, I, f, s, x, N, P, C, W, Y, H = t.w_size;
1458
+ do {
1459
+ if (s = t.window_size - t.lookahead - t.strstart, t.strstart >= H + (H - q)) {
1460
+ for (o.arraySet(t.window, t.window, H, H, 0), t.match_start -= H, t.strstart -= H, t.block_start -= H, T = I = t.hash_size; f = t.head[--T], t.head[T] = H <= f ? f - H : 0, --I; ) ;
1461
+ for (T = I = H; f = t.prev[--T], t.prev[T] = H <= f ? f - H : 0, --I; ) ;
1462
+ s += H;
1463
+ }
1464
+ if (t.strm.avail_in === 0) break;
1465
+ if (N = t.strm, P = t.window, C = t.strstart + t.lookahead, W = s, Y = void 0, Y = N.avail_in, W < Y && (Y = W), I = Y === 0 ? 0 : (N.avail_in -= Y, o.arraySet(P, N.input, N.next_in, Y, C), N.state.wrap === 1 ? N.adler = h(N.adler, P, Y, C) : N.state.wrap === 2 && (N.adler = b(N.adler, P, Y, C)), N.next_in += Y, N.total_in += Y, Y), t.lookahead += I, t.lookahead + t.insert >= O) for (x = t.strstart - t.insert, t.ins_h = t.window[x], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[x + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[x + O - 1]) & t.hash_mask, t.prev[x & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = x, x++, t.insert--, !(t.lookahead + t.insert < O)); ) ;
1466
+ } while (t.lookahead < q && t.strm.avail_in !== 0);
1467
+ }
1468
+ _(it, "j");
1469
+ function ut(t, T) {
1470
+ for (var I, f; ; ) {
1471
+ if (t.lookahead < q) {
1472
+ if (it(t), t.lookahead < q && T === p) return e;
1473
+ if (t.lookahead === 0) break;
1474
+ }
1475
+ if (I = 0, t.lookahead >= O && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + O - 1]) & t.hash_mask, I = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), I !== 0 && t.strstart - I <= t.w_size - q && (t.match_length = G(t, I)), t.match_length >= O) if (f = n._tr_tally(t, t.strstart - t.match_start, t.match_length - O), t.lookahead -= t.match_length, t.match_length <= t.max_lazy_match && t.lookahead >= O) {
1476
+ for (t.match_length--; t.strstart++, t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + O - 1]) & t.hash_mask, I = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart, --t.match_length != 0; ) ;
1477
+ t.strstart++;
1478
+ } else t.strstart += t.match_length, t.match_length = 0, t.ins_h = t.window[t.strstart], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + 1]) & t.hash_mask;
1479
+ else f = n._tr_tally(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
1480
+ if (f && (E(t, !1), t.strm.avail_out === 0)) return e;
1481
+ }
1482
+ return t.insert = t.strstart < O - 1 ? t.strstart : O - 1, T === v ? (E(t, !0), t.strm.avail_out === 0 ? $ : j) : t.last_lit && (E(t, !1), t.strm.avail_out === 0) ? e : D;
1483
+ }
1484
+ _(ut, "Z");
1485
+ function tt(t, T) {
1486
+ for (var I, f, s; ; ) {
1487
+ if (t.lookahead < q) {
1488
+ if (it(t), t.lookahead < q && T === p) return e;
1489
+ if (t.lookahead === 0) break;
1490
+ }
1491
+ if (I = 0, t.lookahead >= O && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + O - 1]) & t.hash_mask, I = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = O - 1, I !== 0 && t.prev_length < t.max_lazy_match && t.strstart - I <= t.w_size - q && (t.match_length = G(t, I), t.match_length <= 5 && (t.strategy === 1 || t.match_length === O && 4096 < t.strstart - t.match_start) && (t.match_length = O - 1)), t.prev_length >= O && t.match_length <= t.prev_length) {
1492
+ for (s = t.strstart + t.lookahead - O, f = n._tr_tally(t, t.strstart - 1 - t.prev_match, t.prev_length - O), t.lookahead -= t.prev_length - 1, t.prev_length -= 2; ++t.strstart <= s && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + O - 1]) & t.hash_mask, I = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), --t.prev_length != 0; ) ;
1493
+ if (t.match_available = 0, t.match_length = O - 1, t.strstart++, f && (E(t, !1), t.strm.avail_out === 0)) return e;
1494
+ } else if (t.match_available) {
1495
+ if ((f = n._tr_tally(t, 0, t.window[t.strstart - 1])) && E(t, !1), t.strstart++, t.lookahead--, t.strm.avail_out === 0) return e;
1496
+ } else t.match_available = 1, t.strstart++, t.lookahead--;
1497
+ }
1498
+ return t.match_available && (f = n._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < O - 1 ? t.strstart : O - 1, T === v ? (E(t, !0), t.strm.avail_out === 0 ? $ : j) : t.last_lit && (E(t, !1), t.strm.avail_out === 0) ? e : D;
1499
+ }
1500
+ _(tt, "W");
1501
+ function rt(t, T, I, f, s) {
1502
+ this.good_length = t, this.max_lazy = T, this.nice_length = I, this.max_chain = f, this.func = s;
1503
+ }
1504
+ _(rt, "M");
1505
+ function ot() {
1506
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = c, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new o.Buf16(2 * B), this.dyn_dtree = new o.Buf16(2 * (2 * S + 1)), this.bl_tree = new o.Buf16(2 * (2 * F + 1)), J(this.dyn_ltree), J(this.dyn_dtree), J(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(L + 1), this.heap = new o.Buf16(2 * z + 1), J(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * z + 1), J(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
1507
+ }
1508
+ _(ot, "H");
1509
+ function at(t) {
1510
+ var T;
1511
+ return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (T = t.state).pending = 0, T.pending_out = 0, T.wrap < 0 && (T.wrap = -T.wrap), T.status = T.wrap ? m : R, t.adler = T.wrap === 2 ? 0 : 1, T.last_flush = p, n._tr_init(T), i) : Q(t, d);
1512
+ }
1513
+ _(at, "G");
1514
+ function ft(t) {
1515
+ var T = at(t);
1516
+ return T === i && (function(I) {
1517
+ I.window_size = 2 * I.w_size, J(I.head), I.max_lazy_match = u[I.level].max_lazy, I.good_match = u[I.level].good_length, I.nice_match = u[I.level].nice_length, I.max_chain_length = u[I.level].max_chain, I.strstart = 0, I.block_start = 0, I.lookahead = 0, I.insert = 0, I.match_length = I.prev_length = O - 1, I.match_available = 0, I.ins_h = 0;
1518
+ })(t.state), T;
1519
+ }
1520
+ _(ft, "K");
1521
+ function lt(t, T, I, f, s, x) {
1522
+ if (!t) return d;
1523
+ var N = 1;
1524
+ if (T === r && (T = 6), f < 0 ? (N = 0, f = -f) : 15 < f && (N = 2, f -= 16), s < 1 || y < s || I !== c || f < 8 || 15 < f || T < 0 || 9 < T || x < 0 || l < x) return Q(t, d);
1525
+ f === 8 && (f = 9);
1526
+ var P = new ot();
1527
+ return (t.state = P).strm = t, P.wrap = N, P.gzhead = null, P.w_bits = f, P.w_size = 1 << P.w_bits, P.w_mask = P.w_size - 1, P.hash_bits = s + 7, P.hash_size = 1 << P.hash_bits, P.hash_mask = P.hash_size - 1, P.hash_shift = ~~((P.hash_bits + O - 1) / O), P.window = new o.Buf8(2 * P.w_size), P.head = new o.Buf16(P.hash_size), P.prev = new o.Buf16(P.w_size), P.lit_bufsize = 1 << s + 6, P.pending_buf_size = 4 * P.lit_bufsize, P.pending_buf = new o.Buf8(P.pending_buf_size), P.d_buf = 1 * P.lit_bufsize, P.l_buf = 3 * P.lit_bufsize, P.level = T, P.strategy = x, P.method = I, ft(t);
1528
+ }
1529
+ _(lt, "Y"), u = [new rt(0, 0, 0, 0, function(t, T) {
1530
+ var I = 65535;
1531
+ for (I > t.pending_buf_size - 5 && (I = t.pending_buf_size - 5); ; ) {
1532
+ if (t.lookahead <= 1) {
1533
+ if (it(t), t.lookahead === 0 && T === p) return e;
1534
+ if (t.lookahead === 0) break;
1535
+ }
1536
+ t.strstart += t.lookahead, t.lookahead = 0;
1537
+ var f = t.block_start + I;
1538
+ if ((t.strstart === 0 || t.strstart >= f) && (t.lookahead = t.strstart - f, t.strstart = f, E(t, !1), t.strm.avail_out === 0) || t.strstart - t.block_start >= t.w_size - q && (E(t, !1), t.strm.avail_out === 0)) return e;
1539
+ }
1540
+ return t.insert = 0, T === v ? (E(t, !0), t.strm.avail_out === 0 ? $ : j) : (t.strstart > t.block_start && (E(t, !1), t.strm.avail_out), e);
1541
+ }), new rt(4, 4, 8, 4, ut), new rt(4, 5, 16, 8, ut), new rt(4, 6, 32, 32, ut), new rt(4, 4, 16, 16, tt), new rt(8, 16, 32, 32, tt), new rt(8, 16, 128, 128, tt), new rt(8, 32, 128, 256, tt), new rt(32, 128, 258, 1024, tt), new rt(32, 258, 258, 4096, tt)], k.deflateInit = function(t, T) {
1542
+ return lt(t, T, c, 15, 8, 0);
1543
+ }, k.deflateInit2 = lt, k.deflateReset = ft, k.deflateResetKeep = at, k.deflateSetHeader = function(t, T) {
1544
+ return t && t.state ? t.state.wrap !== 2 ? d : (t.state.gzhead = T, i) : d;
1545
+ }, k.deflate = function(t, T) {
1546
+ var I, f, s, x;
1547
+ if (!t || !t.state || 5 < T || T < 0) return t ? Q(t, d) : d;
1548
+ if (f = t.state, !t.output || !t.input && t.avail_in !== 0 || f.status === 666 && T !== v) return Q(t, t.avail_out === 0 ? -5 : d);
1549
+ if (f.strm = t, I = f.last_flush, f.last_flush = T, f.status === m) if (f.wrap === 2) t.adler = 0, V(f, 31), V(f, 139), V(f, 8), f.gzhead ? (V(f, (f.gzhead.text ? 1 : 0) + (f.gzhead.hcrc ? 2 : 0) + (f.gzhead.extra ? 4 : 0) + (f.gzhead.name ? 8 : 0) + (f.gzhead.comment ? 16 : 0)), V(f, 255 & f.gzhead.time), V(f, f.gzhead.time >> 8 & 255), V(f, f.gzhead.time >> 16 & 255), V(f, f.gzhead.time >> 24 & 255), V(f, f.level === 9 ? 2 : 2 <= f.strategy || f.level < 2 ? 4 : 0), V(f, 255 & f.gzhead.os), f.gzhead.extra && f.gzhead.extra.length && (V(f, 255 & f.gzhead.extra.length), V(f, f.gzhead.extra.length >> 8 & 255)), f.gzhead.hcrc && (t.adler = b(t.adler, f.pending_buf, f.pending, 0)), f.gzindex = 0, f.status = 69) : (V(f, 0), V(f, 0), V(f, 0), V(f, 0), V(f, 0), V(f, f.level === 9 ? 2 : 2 <= f.strategy || f.level < 2 ? 4 : 0), V(f, 3), f.status = R);
1550
+ else {
1551
+ var N = c + (f.w_bits - 8 << 4) << 8;
1552
+ N |= (2 <= f.strategy || f.level < 2 ? 0 : f.level < 6 ? 1 : f.level === 6 ? 2 : 3) << 6, f.strstart !== 0 && (N |= 32), N += 31 - N % 31, f.status = R, K(f, N), f.strstart !== 0 && (K(f, t.adler >>> 16), K(f, 65535 & t.adler)), t.adler = 1;
1553
+ }
1554
+ if (f.status === 69) if (f.gzhead.extra) {
1555
+ for (s = f.pending; f.gzindex < (65535 & f.gzhead.extra.length) && (f.pending !== f.pending_buf_size || (f.gzhead.hcrc && f.pending > s && (t.adler = b(t.adler, f.pending_buf, f.pending - s, s)), A(t), s = f.pending, f.pending !== f.pending_buf_size)); ) V(f, 255 & f.gzhead.extra[f.gzindex]), f.gzindex++;
1556
+ f.gzhead.hcrc && f.pending > s && (t.adler = b(t.adler, f.pending_buf, f.pending - s, s)), f.gzindex === f.gzhead.extra.length && (f.gzindex = 0, f.status = 73);
1557
+ } else f.status = 73;
1558
+ if (f.status === 73) if (f.gzhead.name) {
1559
+ s = f.pending;
1560
+ do {
1561
+ if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > s && (t.adler = b(t.adler, f.pending_buf, f.pending - s, s)), A(t), s = f.pending, f.pending === f.pending_buf_size)) {
1562
+ x = 1;
1563
+ break;
1564
+ }
1565
+ x = f.gzindex < f.gzhead.name.length ? 255 & f.gzhead.name.charCodeAt(f.gzindex++) : 0, V(f, x);
1566
+ } while (x !== 0);
1567
+ f.gzhead.hcrc && f.pending > s && (t.adler = b(t.adler, f.pending_buf, f.pending - s, s)), x === 0 && (f.gzindex = 0, f.status = 91);
1568
+ } else f.status = 91;
1569
+ if (f.status === 91) if (f.gzhead.comment) {
1570
+ s = f.pending;
1571
+ do {
1572
+ if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > s && (t.adler = b(t.adler, f.pending_buf, f.pending - s, s)), A(t), s = f.pending, f.pending === f.pending_buf_size)) {
1573
+ x = 1;
1574
+ break;
1575
+ }
1576
+ x = f.gzindex < f.gzhead.comment.length ? 255 & f.gzhead.comment.charCodeAt(f.gzindex++) : 0, V(f, x);
1577
+ } while (x !== 0);
1578
+ f.gzhead.hcrc && f.pending > s && (t.adler = b(t.adler, f.pending_buf, f.pending - s, s)), x === 0 && (f.status = 103);
1579
+ } else f.status = 103;
1580
+ if (f.status === 103 && (f.gzhead.hcrc ? (f.pending + 2 > f.pending_buf_size && A(t), f.pending + 2 <= f.pending_buf_size && (V(f, 255 & t.adler), V(f, t.adler >> 8 & 255), t.adler = 0, f.status = R)) : f.status = R), f.pending !== 0) {
1581
+ if (A(t), t.avail_out === 0) return f.last_flush = -1, i;
1582
+ } else if (t.avail_in === 0 && Z(T) <= Z(I) && T !== v) return Q(t, -5);
1583
+ if (f.status === 666 && t.avail_in !== 0) return Q(t, -5);
1584
+ if (t.avail_in !== 0 || f.lookahead !== 0 || T !== p && f.status !== 666) {
1585
+ var P = f.strategy === 2 ? (function(C, W) {
1586
+ for (var Y; ; ) {
1587
+ if (C.lookahead === 0 && (it(C), C.lookahead === 0)) {
1588
+ if (W === p) return e;
1589
+ break;
1590
+ }
1591
+ if (C.match_length = 0, Y = n._tr_tally(C, 0, C.window[C.strstart]), C.lookahead--, C.strstart++, Y && (E(C, !1), C.strm.avail_out === 0)) return e;
1592
+ }
1593
+ return C.insert = 0, W === v ? (E(C, !0), C.strm.avail_out === 0 ? $ : j) : C.last_lit && (E(C, !1), C.strm.avail_out === 0) ? e : D;
1594
+ })(f, T) : f.strategy === 3 ? (function(C, W) {
1595
+ for (var Y, H, X, nt, et = C.window; ; ) {
1596
+ if (C.lookahead <= M) {
1597
+ if (it(C), C.lookahead <= M && W === p) return e;
1598
+ if (C.lookahead === 0) break;
1599
+ }
1600
+ if (C.match_length = 0, C.lookahead >= O && 0 < C.strstart && (H = et[X = C.strstart - 1]) === et[++X] && H === et[++X] && H === et[++X]) {
1601
+ nt = C.strstart + M;
1602
+ do
1603
+ ;
1604
+ while (H === et[++X] && H === et[++X] && H === et[++X] && H === et[++X] && H === et[++X] && H === et[++X] && H === et[++X] && H === et[++X] && X < nt);
1605
+ C.match_length = M - (nt - X), C.match_length > C.lookahead && (C.match_length = C.lookahead);
1606
+ }
1607
+ if (C.match_length >= O ? (Y = n._tr_tally(C, 1, C.match_length - O), C.lookahead -= C.match_length, C.strstart += C.match_length, C.match_length = 0) : (Y = n._tr_tally(C, 0, C.window[C.strstart]), C.lookahead--, C.strstart++), Y && (E(C, !1), C.strm.avail_out === 0)) return e;
1608
+ }
1609
+ return C.insert = 0, W === v ? (E(C, !0), C.strm.avail_out === 0 ? $ : j) : C.last_lit && (E(C, !1), C.strm.avail_out === 0) ? e : D;
1610
+ })(f, T) : u[f.level].func(f, T);
1611
+ if (P !== $ && P !== j || (f.status = 666), P === e || P === $) return t.avail_out === 0 && (f.last_flush = -1), i;
1612
+ if (P === D && (T === 1 ? n._tr_align(f) : T !== 5 && (n._tr_stored_block(f, 0, 0, !1), T === 3 && (J(f.head), f.lookahead === 0 && (f.strstart = 0, f.block_start = 0, f.insert = 0))), A(t), t.avail_out === 0)) return f.last_flush = -1, i;
1613
+ }
1614
+ return T !== v ? i : f.wrap <= 0 ? 1 : (f.wrap === 2 ? (V(f, 255 & t.adler), V(f, t.adler >> 8 & 255), V(f, t.adler >> 16 & 255), V(f, t.adler >> 24 & 255), V(f, 255 & t.total_in), V(f, t.total_in >> 8 & 255), V(f, t.total_in >> 16 & 255), V(f, t.total_in >> 24 & 255)) : (K(f, t.adler >>> 16), K(f, 65535 & t.adler)), A(t), 0 < f.wrap && (f.wrap = -f.wrap), f.pending !== 0 ? i : 1);
1615
+ }, k.deflateEnd = function(t) {
1616
+ var T;
1617
+ return t && t.state ? (T = t.state.status) !== m && T !== 69 && T !== 73 && T !== 91 && T !== 103 && T !== R && T !== 666 ? Q(t, d) : (t.state = null, T === R ? Q(t, -3) : i) : d;
1618
+ }, k.deflateSetDictionary = function(t, T) {
1619
+ var I, f, s, x, N, P, C, W, Y = T.length;
1620
+ if (!t || !t.state || (x = (I = t.state).wrap) === 2 || x === 1 && I.status !== m || I.lookahead) return d;
1621
+ for (x === 1 && (t.adler = h(t.adler, T, Y, 0)), I.wrap = 0, Y >= I.w_size && (x === 0 && (J(I.head), I.strstart = 0, I.block_start = 0, I.insert = 0), W = new o.Buf8(I.w_size), o.arraySet(W, T, Y - I.w_size, I.w_size, 0), T = W, Y = I.w_size), N = t.avail_in, P = t.next_in, C = t.input, t.avail_in = Y, t.next_in = 0, t.input = T, it(I); I.lookahead >= O; ) {
1622
+ for (f = I.strstart, s = I.lookahead - (O - 1); I.ins_h = (I.ins_h << I.hash_shift ^ I.window[f + O - 1]) & I.hash_mask, I.prev[f & I.w_mask] = I.head[I.ins_h], I.head[I.ins_h] = f, f++, --s; ) ;
1623
+ I.strstart = f, I.lookahead = O - 1, it(I);
1624
+ }
1625
+ return I.strstart += I.lookahead, I.block_start = I.strstart, I.insert = I.lookahead, I.lookahead = 0, I.match_length = I.prev_length = O - 1, I.match_available = 0, t.next_in = P, t.input = C, t.avail_in = N, I.wrap = x, i;
1626
+ }, k.deflateInfo = "pako deflate (from Nodeca project)";
1627
+ }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(g, U, k) {
1628
+ U.exports = function() {
1629
+ this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
1630
+ };
1631
+ }, {}], 48: [function(g, U, k) {
1632
+ U.exports = function(u, o) {
1633
+ var n, h, b, w, p, v, i, d, r, l, a, c, y, z, S, F, B, L, O, M, q, m, R, e, D;
1634
+ n = u.state, h = u.next_in, e = u.input, b = h + (u.avail_in - 5), w = u.next_out, D = u.output, p = w - (o - u.avail_out), v = w + (u.avail_out - 257), i = n.dmax, d = n.wsize, r = n.whave, l = n.wnext, a = n.window, c = n.hold, y = n.bits, z = n.lencode, S = n.distcode, F = (1 << n.lenbits) - 1, B = (1 << n.distbits) - 1;
1635
+ t: do {
1636
+ y < 15 && (c += e[h++] << y, y += 8, c += e[h++] << y, y += 8), L = z[c & F];
1637
+ e: for (; ; ) {
1638
+ if (c >>>= O = L >>> 24, y -= O, (O = L >>> 16 & 255) === 0) D[w++] = 65535 & L;
1639
+ else {
1640
+ if (!(16 & O)) {
1641
+ if ((64 & O) == 0) {
1642
+ L = z[(65535 & L) + (c & (1 << O) - 1)];
1643
+ continue e;
1644
+ }
1645
+ if (32 & O) {
1646
+ n.mode = 12;
1647
+ break t;
1648
+ }
1649
+ u.msg = "invalid literal/length code", n.mode = 30;
1650
+ break t;
1651
+ }
1652
+ M = 65535 & L, (O &= 15) && (y < O && (c += e[h++] << y, y += 8), M += c & (1 << O) - 1, c >>>= O, y -= O), y < 15 && (c += e[h++] << y, y += 8, c += e[h++] << y, y += 8), L = S[c & B];
1653
+ r: for (; ; ) {
1654
+ if (c >>>= O = L >>> 24, y -= O, !(16 & (O = L >>> 16 & 255))) {
1655
+ if ((64 & O) == 0) {
1656
+ L = S[(65535 & L) + (c & (1 << O) - 1)];
1657
+ continue r;
1658
+ }
1659
+ u.msg = "invalid distance code", n.mode = 30;
1660
+ break t;
1661
+ }
1662
+ if (q = 65535 & L, y < (O &= 15) && (c += e[h++] << y, (y += 8) < O && (c += e[h++] << y, y += 8)), i < (q += c & (1 << O) - 1)) {
1663
+ u.msg = "invalid distance too far back", n.mode = 30;
1664
+ break t;
1665
+ }
1666
+ if (c >>>= O, y -= O, (O = w - p) < q) {
1667
+ if (r < (O = q - O) && n.sane) {
1668
+ u.msg = "invalid distance too far back", n.mode = 30;
1669
+ break t;
1670
+ }
1671
+ if (R = a, (m = 0) === l) {
1672
+ if (m += d - O, O < M) {
1673
+ for (M -= O; D[w++] = a[m++], --O; ) ;
1674
+ m = w - q, R = D;
1675
+ }
1676
+ } else if (l < O) {
1677
+ if (m += d + l - O, (O -= l) < M) {
1678
+ for (M -= O; D[w++] = a[m++], --O; ) ;
1679
+ if (m = 0, l < M) {
1680
+ for (M -= O = l; D[w++] = a[m++], --O; ) ;
1681
+ m = w - q, R = D;
1682
+ }
1683
+ }
1684
+ } else if (m += l - O, O < M) {
1685
+ for (M -= O; D[w++] = a[m++], --O; ) ;
1686
+ m = w - q, R = D;
1687
+ }
1688
+ for (; 2 < M; ) D[w++] = R[m++], D[w++] = R[m++], D[w++] = R[m++], M -= 3;
1689
+ M && (D[w++] = R[m++], 1 < M && (D[w++] = R[m++]));
1690
+ } else {
1691
+ for (m = w - q; D[w++] = D[m++], D[w++] = D[m++], D[w++] = D[m++], 2 < (M -= 3); ) ;
1692
+ M && (D[w++] = D[m++], 1 < M && (D[w++] = D[m++]));
1693
+ }
1694
+ break;
1695
+ }
1696
+ }
1697
+ break;
1698
+ }
1699
+ } while (h < b && w < v);
1700
+ h -= M = y >> 3, c &= (1 << (y -= M << 3)) - 1, u.next_in = h, u.next_out = w, u.avail_in = h < b ? b - h + 5 : 5 - (h - b), u.avail_out = w < v ? v - w + 257 : 257 - (w - v), n.hold = c, n.bits = y;
1701
+ };
1702
+ }, {}], 49: [function(g, U, k) {
1703
+ var u = g("../utils/common"), o = g("./adler32"), n = g("./crc32"), h = g("./inffast"), b = g("./inftrees"), w = 1, p = 2, v = 0, i = -2, d = 1, r = 852, l = 592;
1704
+ function a(m) {
1705
+ return (m >>> 24 & 255) + (m >>> 8 & 65280) + ((65280 & m) << 8) + ((255 & m) << 24);
1706
+ }
1707
+ _(a, "L");
1708
+ function c() {
1709
+ this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new u.Buf16(320), this.work = new u.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
1710
+ }
1711
+ _(c, "s");
1712
+ function y(m) {
1713
+ var R;
1714
+ return m && m.state ? (R = m.state, m.total_in = m.total_out = R.total = 0, m.msg = "", R.wrap && (m.adler = 1 & R.wrap), R.mode = d, R.last = 0, R.havedict = 0, R.dmax = 32768, R.head = null, R.hold = 0, R.bits = 0, R.lencode = R.lendyn = new u.Buf32(r), R.distcode = R.distdyn = new u.Buf32(l), R.sane = 1, R.back = -1, v) : i;
1715
+ }
1716
+ _(y, "a");
1717
+ function z(m) {
1718
+ var R;
1719
+ return m && m.state ? ((R = m.state).wsize = 0, R.whave = 0, R.wnext = 0, y(m)) : i;
1720
+ }
1721
+ _(z, "o");
1722
+ function S(m, R) {
1723
+ var e, D;
1724
+ return m && m.state ? (D = m.state, R < 0 ? (e = 0, R = -R) : (e = 1 + (R >> 4), R < 48 && (R &= 15)), R && (R < 8 || 15 < R) ? i : (D.window !== null && D.wbits !== R && (D.window = null), D.wrap = e, D.wbits = R, z(m))) : i;
1725
+ }
1726
+ _(S, "h");
1727
+ function F(m, R) {
1728
+ var e, D;
1729
+ return m ? (D = new c(), (m.state = D).window = null, (e = S(m, R)) !== v && (m.state = null), e) : i;
1730
+ }
1731
+ _(F, "u");
1732
+ var B, L, O = !0;
1733
+ function M(m) {
1734
+ if (O) {
1735
+ var R;
1736
+ for (B = new u.Buf32(512), L = new u.Buf32(32), R = 0; R < 144; ) m.lens[R++] = 8;
1737
+ for (; R < 256; ) m.lens[R++] = 9;
1738
+ for (; R < 280; ) m.lens[R++] = 7;
1739
+ for (; R < 288; ) m.lens[R++] = 8;
1740
+ for (b(w, m.lens, 0, 288, B, 0, m.work, { bits: 9 }), R = 0; R < 32; ) m.lens[R++] = 5;
1741
+ b(p, m.lens, 0, 32, L, 0, m.work, { bits: 5 }), O = !1;
1742
+ }
1743
+ m.lencode = B, m.lenbits = 9, m.distcode = L, m.distbits = 5;
1744
+ }
1745
+ _(M, "j");
1746
+ function q(m, R, e, D) {
1747
+ var $, j = m.state;
1748
+ return j.window === null && (j.wsize = 1 << j.wbits, j.wnext = 0, j.whave = 0, j.window = new u.Buf8(j.wsize)), D >= j.wsize ? (u.arraySet(j.window, R, e - j.wsize, j.wsize, 0), j.wnext = 0, j.whave = j.wsize) : (D < ($ = j.wsize - j.wnext) && ($ = D), u.arraySet(j.window, R, e - D, $, j.wnext), (D -= $) ? (u.arraySet(j.window, R, e - D, D, 0), j.wnext = D, j.whave = j.wsize) : (j.wnext += $, j.wnext === j.wsize && (j.wnext = 0), j.whave < j.wsize && (j.whave += $))), 0;
1749
+ }
1750
+ _(q, "Z"), k.inflateReset = z, k.inflateReset2 = S, k.inflateResetKeep = y, k.inflateInit = function(m) {
1751
+ return F(m, 15);
1752
+ }, k.inflateInit2 = F, k.inflate = function(m, R) {
1753
+ var e, D, $, j, Q, Z, J, A, E, V, K, G, it, ut, tt, rt, ot, at, ft, lt, t, T, I, f, s = 0, x = new u.Buf8(4), N = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1754
+ if (!m || !m.state || !m.output || !m.input && m.avail_in !== 0) return i;
1755
+ (e = m.state).mode === 12 && (e.mode = 13), Q = m.next_out, $ = m.output, J = m.avail_out, j = m.next_in, D = m.input, Z = m.avail_in, A = e.hold, E = e.bits, V = Z, K = J, T = v;
1756
+ t: for (; ; ) switch (e.mode) {
1757
+ case d:
1758
+ if (e.wrap === 0) {
1759
+ e.mode = 13;
1760
+ break;
1761
+ }
1762
+ for (; E < 16; ) {
1763
+ if (Z === 0) break t;
1764
+ Z--, A += D[j++] << E, E += 8;
1765
+ }
1766
+ if (2 & e.wrap && A === 35615) {
1767
+ x[e.check = 0] = 255 & A, x[1] = A >>> 8 & 255, e.check = n(e.check, x, 2, 0), E = A = 0, e.mode = 2;
1768
+ break;
1769
+ }
1770
+ if (e.flags = 0, e.head && (e.head.done = !1), !(1 & e.wrap) || (((255 & A) << 8) + (A >> 8)) % 31) {
1771
+ m.msg = "incorrect header check", e.mode = 30;
1772
+ break;
1773
+ }
1774
+ if ((15 & A) != 8) {
1775
+ m.msg = "unknown compression method", e.mode = 30;
1776
+ break;
1777
+ }
1778
+ if (E -= 4, t = 8 + (15 & (A >>>= 4)), e.wbits === 0) e.wbits = t;
1779
+ else if (t > e.wbits) {
1780
+ m.msg = "invalid window size", e.mode = 30;
1781
+ break;
1782
+ }
1783
+ e.dmax = 1 << t, m.adler = e.check = 1, e.mode = 512 & A ? 10 : 12, E = A = 0;
1784
+ break;
1785
+ case 2:
1786
+ for (; E < 16; ) {
1787
+ if (Z === 0) break t;
1788
+ Z--, A += D[j++] << E, E += 8;
1789
+ }
1790
+ if (e.flags = A, (255 & e.flags) != 8) {
1791
+ m.msg = "unknown compression method", e.mode = 30;
1792
+ break;
1793
+ }
1794
+ if (57344 & e.flags) {
1795
+ m.msg = "unknown header flags set", e.mode = 30;
1796
+ break;
1797
+ }
1798
+ e.head && (e.head.text = A >> 8 & 1), 512 & e.flags && (x[0] = 255 & A, x[1] = A >>> 8 & 255, e.check = n(e.check, x, 2, 0)), E = A = 0, e.mode = 3;
1799
+ case 3:
1800
+ for (; E < 32; ) {
1801
+ if (Z === 0) break t;
1802
+ Z--, A += D[j++] << E, E += 8;
1803
+ }
1804
+ e.head && (e.head.time = A), 512 & e.flags && (x[0] = 255 & A, x[1] = A >>> 8 & 255, x[2] = A >>> 16 & 255, x[3] = A >>> 24 & 255, e.check = n(e.check, x, 4, 0)), E = A = 0, e.mode = 4;
1805
+ case 4:
1806
+ for (; E < 16; ) {
1807
+ if (Z === 0) break t;
1808
+ Z--, A += D[j++] << E, E += 8;
1809
+ }
1810
+ e.head && (e.head.xflags = 255 & A, e.head.os = A >> 8), 512 & e.flags && (x[0] = 255 & A, x[1] = A >>> 8 & 255, e.check = n(e.check, x, 2, 0)), E = A = 0, e.mode = 5;
1811
+ case 5:
1812
+ if (1024 & e.flags) {
1813
+ for (; E < 16; ) {
1814
+ if (Z === 0) break t;
1815
+ Z--, A += D[j++] << E, E += 8;
1816
+ }
1817
+ e.length = A, e.head && (e.head.extra_len = A), 512 & e.flags && (x[0] = 255 & A, x[1] = A >>> 8 & 255, e.check = n(e.check, x, 2, 0)), E = A = 0;
1818
+ } else e.head && (e.head.extra = null);
1819
+ e.mode = 6;
1820
+ case 6:
1821
+ if (1024 & e.flags && (Z < (G = e.length) && (G = Z), G && (e.head && (t = e.head.extra_len - e.length, e.head.extra || (e.head.extra = new Array(e.head.extra_len)), u.arraySet(e.head.extra, D, j, G, t)), 512 & e.flags && (e.check = n(e.check, D, G, j)), Z -= G, j += G, e.length -= G), e.length)) break t;
1822
+ e.length = 0, e.mode = 7;
1823
+ case 7:
1824
+ if (2048 & e.flags) {
1825
+ if (Z === 0) break t;
1826
+ for (G = 0; t = D[j + G++], e.head && t && e.length < 65536 && (e.head.name += String.fromCharCode(t)), t && G < Z; ) ;
1827
+ if (512 & e.flags && (e.check = n(e.check, D, G, j)), Z -= G, j += G, t) break t;
1828
+ } else e.head && (e.head.name = null);
1829
+ e.length = 0, e.mode = 8;
1830
+ case 8:
1831
+ if (4096 & e.flags) {
1832
+ if (Z === 0) break t;
1833
+ for (G = 0; t = D[j + G++], e.head && t && e.length < 65536 && (e.head.comment += String.fromCharCode(t)), t && G < Z; ) ;
1834
+ if (512 & e.flags && (e.check = n(e.check, D, G, j)), Z -= G, j += G, t) break t;
1835
+ } else e.head && (e.head.comment = null);
1836
+ e.mode = 9;
1837
+ case 9:
1838
+ if (512 & e.flags) {
1839
+ for (; E < 16; ) {
1840
+ if (Z === 0) break t;
1841
+ Z--, A += D[j++] << E, E += 8;
1842
+ }
1843
+ if (A !== (65535 & e.check)) {
1844
+ m.msg = "header crc mismatch", e.mode = 30;
1845
+ break;
1846
+ }
1847
+ E = A = 0;
1848
+ }
1849
+ e.head && (e.head.hcrc = e.flags >> 9 & 1, e.head.done = !0), m.adler = e.check = 0, e.mode = 12;
1850
+ break;
1851
+ case 10:
1852
+ for (; E < 32; ) {
1853
+ if (Z === 0) break t;
1854
+ Z--, A += D[j++] << E, E += 8;
1855
+ }
1856
+ m.adler = e.check = a(A), E = A = 0, e.mode = 11;
1857
+ case 11:
1858
+ if (e.havedict === 0) return m.next_out = Q, m.avail_out = J, m.next_in = j, m.avail_in = Z, e.hold = A, e.bits = E, 2;
1859
+ m.adler = e.check = 1, e.mode = 12;
1860
+ case 12:
1861
+ if (R === 5 || R === 6) break t;
1862
+ case 13:
1863
+ if (e.last) {
1864
+ A >>>= 7 & E, E -= 7 & E, e.mode = 27;
1865
+ break;
1866
+ }
1867
+ for (; E < 3; ) {
1868
+ if (Z === 0) break t;
1869
+ Z--, A += D[j++] << E, E += 8;
1870
+ }
1871
+ switch (e.last = 1 & A, E -= 1, 3 & (A >>>= 1)) {
1872
+ case 0:
1873
+ e.mode = 14;
1874
+ break;
1875
+ case 1:
1876
+ if (M(e), e.mode = 20, R !== 6) break;
1877
+ A >>>= 2, E -= 2;
1878
+ break t;
1879
+ case 2:
1880
+ e.mode = 17;
1881
+ break;
1882
+ case 3:
1883
+ m.msg = "invalid block type", e.mode = 30;
1884
+ }
1885
+ A >>>= 2, E -= 2;
1886
+ break;
1887
+ case 14:
1888
+ for (A >>>= 7 & E, E -= 7 & E; E < 32; ) {
1889
+ if (Z === 0) break t;
1890
+ Z--, A += D[j++] << E, E += 8;
1891
+ }
1892
+ if ((65535 & A) != (A >>> 16 ^ 65535)) {
1893
+ m.msg = "invalid stored block lengths", e.mode = 30;
1894
+ break;
1895
+ }
1896
+ if (e.length = 65535 & A, E = A = 0, e.mode = 15, R === 6) break t;
1897
+ case 15:
1898
+ e.mode = 16;
1899
+ case 16:
1900
+ if (G = e.length) {
1901
+ if (Z < G && (G = Z), J < G && (G = J), G === 0) break t;
1902
+ u.arraySet($, D, j, G, Q), Z -= G, j += G, J -= G, Q += G, e.length -= G;
1903
+ break;
1904
+ }
1905
+ e.mode = 12;
1906
+ break;
1907
+ case 17:
1908
+ for (; E < 14; ) {
1909
+ if (Z === 0) break t;
1910
+ Z--, A += D[j++] << E, E += 8;
1911
+ }
1912
+ if (e.nlen = 257 + (31 & A), A >>>= 5, E -= 5, e.ndist = 1 + (31 & A), A >>>= 5, E -= 5, e.ncode = 4 + (15 & A), A >>>= 4, E -= 4, 286 < e.nlen || 30 < e.ndist) {
1913
+ m.msg = "too many length or distance symbols", e.mode = 30;
1914
+ break;
1915
+ }
1916
+ e.have = 0, e.mode = 18;
1917
+ case 18:
1918
+ for (; e.have < e.ncode; ) {
1919
+ for (; E < 3; ) {
1920
+ if (Z === 0) break t;
1921
+ Z--, A += D[j++] << E, E += 8;
1922
+ }
1923
+ e.lens[N[e.have++]] = 7 & A, A >>>= 3, E -= 3;
1924
+ }
1925
+ for (; e.have < 19; ) e.lens[N[e.have++]] = 0;
1926
+ if (e.lencode = e.lendyn, e.lenbits = 7, I = { bits: e.lenbits }, T = b(0, e.lens, 0, 19, e.lencode, 0, e.work, I), e.lenbits = I.bits, T) {
1927
+ m.msg = "invalid code lengths set", e.mode = 30;
1928
+ break;
1929
+ }
1930
+ e.have = 0, e.mode = 19;
1931
+ case 19:
1932
+ for (; e.have < e.nlen + e.ndist; ) {
1933
+ for (; rt = (s = e.lencode[A & (1 << e.lenbits) - 1]) >>> 16 & 255, ot = 65535 & s, !((tt = s >>> 24) <= E); ) {
1934
+ if (Z === 0) break t;
1935
+ Z--, A += D[j++] << E, E += 8;
1936
+ }
1937
+ if (ot < 16) A >>>= tt, E -= tt, e.lens[e.have++] = ot;
1938
+ else {
1939
+ if (ot === 16) {
1940
+ for (f = tt + 2; E < f; ) {
1941
+ if (Z === 0) break t;
1942
+ Z--, A += D[j++] << E, E += 8;
1943
+ }
1944
+ if (A >>>= tt, E -= tt, e.have === 0) {
1945
+ m.msg = "invalid bit length repeat", e.mode = 30;
1946
+ break;
1947
+ }
1948
+ t = e.lens[e.have - 1], G = 3 + (3 & A), A >>>= 2, E -= 2;
1949
+ } else if (ot === 17) {
1950
+ for (f = tt + 3; E < f; ) {
1951
+ if (Z === 0) break t;
1952
+ Z--, A += D[j++] << E, E += 8;
1953
+ }
1954
+ E -= tt, t = 0, G = 3 + (7 & (A >>>= tt)), A >>>= 3, E -= 3;
1955
+ } else {
1956
+ for (f = tt + 7; E < f; ) {
1957
+ if (Z === 0) break t;
1958
+ Z--, A += D[j++] << E, E += 8;
1959
+ }
1960
+ E -= tt, t = 0, G = 11 + (127 & (A >>>= tt)), A >>>= 7, E -= 7;
1961
+ }
1962
+ if (e.have + G > e.nlen + e.ndist) {
1963
+ m.msg = "invalid bit length repeat", e.mode = 30;
1964
+ break;
1965
+ }
1966
+ for (; G--; ) e.lens[e.have++] = t;
1967
+ }
1968
+ }
1969
+ if (e.mode === 30) break;
1970
+ if (e.lens[256] === 0) {
1971
+ m.msg = "invalid code -- missing end-of-block", e.mode = 30;
1972
+ break;
1973
+ }
1974
+ if (e.lenbits = 9, I = { bits: e.lenbits }, T = b(w, e.lens, 0, e.nlen, e.lencode, 0, e.work, I), e.lenbits = I.bits, T) {
1975
+ m.msg = "invalid literal/lengths set", e.mode = 30;
1976
+ break;
1977
+ }
1978
+ if (e.distbits = 6, e.distcode = e.distdyn, I = { bits: e.distbits }, T = b(p, e.lens, e.nlen, e.ndist, e.distcode, 0, e.work, I), e.distbits = I.bits, T) {
1979
+ m.msg = "invalid distances set", e.mode = 30;
1980
+ break;
1981
+ }
1982
+ if (e.mode = 20, R === 6) break t;
1983
+ case 20:
1984
+ e.mode = 21;
1985
+ case 21:
1986
+ if (6 <= Z && 258 <= J) {
1987
+ m.next_out = Q, m.avail_out = J, m.next_in = j, m.avail_in = Z, e.hold = A, e.bits = E, h(m, K), Q = m.next_out, $ = m.output, J = m.avail_out, j = m.next_in, D = m.input, Z = m.avail_in, A = e.hold, E = e.bits, e.mode === 12 && (e.back = -1);
1988
+ break;
1989
+ }
1990
+ for (e.back = 0; rt = (s = e.lencode[A & (1 << e.lenbits) - 1]) >>> 16 & 255, ot = 65535 & s, !((tt = s >>> 24) <= E); ) {
1991
+ if (Z === 0) break t;
1992
+ Z--, A += D[j++] << E, E += 8;
1993
+ }
1994
+ if (rt && (240 & rt) == 0) {
1995
+ for (at = tt, ft = rt, lt = ot; rt = (s = e.lencode[lt + ((A & (1 << at + ft) - 1) >> at)]) >>> 16 & 255, ot = 65535 & s, !(at + (tt = s >>> 24) <= E); ) {
1996
+ if (Z === 0) break t;
1997
+ Z--, A += D[j++] << E, E += 8;
1998
+ }
1999
+ A >>>= at, E -= at, e.back += at;
2000
+ }
2001
+ if (A >>>= tt, E -= tt, e.back += tt, e.length = ot, rt === 0) {
2002
+ e.mode = 26;
2003
+ break;
2004
+ }
2005
+ if (32 & rt) {
2006
+ e.back = -1, e.mode = 12;
2007
+ break;
2008
+ }
2009
+ if (64 & rt) {
2010
+ m.msg = "invalid literal/length code", e.mode = 30;
2011
+ break;
2012
+ }
2013
+ e.extra = 15 & rt, e.mode = 22;
2014
+ case 22:
2015
+ if (e.extra) {
2016
+ for (f = e.extra; E < f; ) {
2017
+ if (Z === 0) break t;
2018
+ Z--, A += D[j++] << E, E += 8;
2019
+ }
2020
+ e.length += A & (1 << e.extra) - 1, A >>>= e.extra, E -= e.extra, e.back += e.extra;
2021
+ }
2022
+ e.was = e.length, e.mode = 23;
2023
+ case 23:
2024
+ for (; rt = (s = e.distcode[A & (1 << e.distbits) - 1]) >>> 16 & 255, ot = 65535 & s, !((tt = s >>> 24) <= E); ) {
2025
+ if (Z === 0) break t;
2026
+ Z--, A += D[j++] << E, E += 8;
2027
+ }
2028
+ if ((240 & rt) == 0) {
2029
+ for (at = tt, ft = rt, lt = ot; rt = (s = e.distcode[lt + ((A & (1 << at + ft) - 1) >> at)]) >>> 16 & 255, ot = 65535 & s, !(at + (tt = s >>> 24) <= E); ) {
2030
+ if (Z === 0) break t;
2031
+ Z--, A += D[j++] << E, E += 8;
2032
+ }
2033
+ A >>>= at, E -= at, e.back += at;
2034
+ }
2035
+ if (A >>>= tt, E -= tt, e.back += tt, 64 & rt) {
2036
+ m.msg = "invalid distance code", e.mode = 30;
2037
+ break;
2038
+ }
2039
+ e.offset = ot, e.extra = 15 & rt, e.mode = 24;
2040
+ case 24:
2041
+ if (e.extra) {
2042
+ for (f = e.extra; E < f; ) {
2043
+ if (Z === 0) break t;
2044
+ Z--, A += D[j++] << E, E += 8;
2045
+ }
2046
+ e.offset += A & (1 << e.extra) - 1, A >>>= e.extra, E -= e.extra, e.back += e.extra;
2047
+ }
2048
+ if (e.offset > e.dmax) {
2049
+ m.msg = "invalid distance too far back", e.mode = 30;
2050
+ break;
2051
+ }
2052
+ e.mode = 25;
2053
+ case 25:
2054
+ if (J === 0) break t;
2055
+ if (G = K - J, e.offset > G) {
2056
+ if ((G = e.offset - G) > e.whave && e.sane) {
2057
+ m.msg = "invalid distance too far back", e.mode = 30;
2058
+ break;
2059
+ }
2060
+ it = G > e.wnext ? (G -= e.wnext, e.wsize - G) : e.wnext - G, G > e.length && (G = e.length), ut = e.window;
2061
+ } else ut = $, it = Q - e.offset, G = e.length;
2062
+ for (J < G && (G = J), J -= G, e.length -= G; $[Q++] = ut[it++], --G; ) ;
2063
+ e.length === 0 && (e.mode = 21);
2064
+ break;
2065
+ case 26:
2066
+ if (J === 0) break t;
2067
+ $[Q++] = e.length, J--, e.mode = 21;
2068
+ break;
2069
+ case 27:
2070
+ if (e.wrap) {
2071
+ for (; E < 32; ) {
2072
+ if (Z === 0) break t;
2073
+ Z--, A |= D[j++] << E, E += 8;
2074
+ }
2075
+ if (K -= J, m.total_out += K, e.total += K, K && (m.adler = e.check = e.flags ? n(e.check, $, K, Q - K) : o(e.check, $, K, Q - K)), K = J, (e.flags ? A : a(A)) !== e.check) {
2076
+ m.msg = "incorrect data check", e.mode = 30;
2077
+ break;
2078
+ }
2079
+ E = A = 0;
2080
+ }
2081
+ e.mode = 28;
2082
+ case 28:
2083
+ if (e.wrap && e.flags) {
2084
+ for (; E < 32; ) {
2085
+ if (Z === 0) break t;
2086
+ Z--, A += D[j++] << E, E += 8;
2087
+ }
2088
+ if (A !== (4294967295 & e.total)) {
2089
+ m.msg = "incorrect length check", e.mode = 30;
2090
+ break;
2091
+ }
2092
+ E = A = 0;
2093
+ }
2094
+ e.mode = 29;
2095
+ case 29:
2096
+ T = 1;
2097
+ break t;
2098
+ case 30:
2099
+ T = -3;
2100
+ break t;
2101
+ case 31:
2102
+ return -4;
2103
+ case 32:
2104
+ default:
2105
+ return i;
2106
+ }
2107
+ return m.next_out = Q, m.avail_out = J, m.next_in = j, m.avail_in = Z, e.hold = A, e.bits = E, (e.wsize || K !== m.avail_out && e.mode < 30 && (e.mode < 27 || R !== 4)) && q(m, m.output, m.next_out, K - m.avail_out) ? (e.mode = 31, -4) : (V -= m.avail_in, K -= m.avail_out, m.total_in += V, m.total_out += K, e.total += K, e.wrap && K && (m.adler = e.check = e.flags ? n(e.check, $, K, m.next_out - K) : o(e.check, $, K, m.next_out - K)), m.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === 12 ? 128 : 0) + (e.mode === 20 || e.mode === 15 ? 256 : 0), (V == 0 && K === 0 || R === 4) && T === v && (T = -5), T);
2108
+ }, k.inflateEnd = function(m) {
2109
+ if (!m || !m.state) return i;
2110
+ var R = m.state;
2111
+ return R.window && (R.window = null), m.state = null, v;
2112
+ }, k.inflateGetHeader = function(m, R) {
2113
+ var e;
2114
+ return m && m.state ? (2 & (e = m.state).wrap) == 0 ? i : ((e.head = R).done = !1, v) : i;
2115
+ }, k.inflateSetDictionary = function(m, R) {
2116
+ var e, D = R.length;
2117
+ return m && m.state ? (e = m.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 && o(1, R, D, 0) !== e.check ? -3 : q(m, R, D, D) ? (e.mode = 31, -4) : (e.havedict = 1, v) : i;
2118
+ }, k.inflateInfo = "pako inflate (from Nodeca project)";
2119
+ }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(g, U, k) {
2120
+ var u = g("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], n = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], h = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], b = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
2121
+ U.exports = function(w, p, v, i, d, r, l, a) {
2122
+ var c, y, z, S, F, B, L, O, M, q = a.bits, m = 0, R = 0, e = 0, D = 0, $ = 0, j = 0, Q = 0, Z = 0, J = 0, A = 0, E = null, V = 0, K = new u.Buf16(16), G = new u.Buf16(16), it = null, ut = 0;
2123
+ for (m = 0; m <= 15; m++) K[m] = 0;
2124
+ for (R = 0; R < i; R++) K[p[v + R]]++;
2125
+ for ($ = q, D = 15; 1 <= D && K[D] === 0; D--) ;
2126
+ if (D < $ && ($ = D), D === 0) return d[r++] = 20971520, d[r++] = 20971520, a.bits = 1, 0;
2127
+ for (e = 1; e < D && K[e] === 0; e++) ;
2128
+ for ($ < e && ($ = e), m = Z = 1; m <= 15; m++) if (Z <<= 1, (Z -= K[m]) < 0) return -1;
2129
+ if (0 < Z && (w === 0 || D !== 1)) return -1;
2130
+ for (G[1] = 0, m = 1; m < 15; m++) G[m + 1] = G[m] + K[m];
2131
+ for (R = 0; R < i; R++) p[v + R] !== 0 && (l[G[p[v + R]]++] = R);
2132
+ if (B = w === 0 ? (E = it = l, 19) : w === 1 ? (E = o, V -= 257, it = n, ut -= 257, 256) : (E = h, it = b, -1), m = e, F = r, Q = R = A = 0, z = -1, S = (J = 1 << (j = $)) - 1, w === 1 && 852 < J || w === 2 && 592 < J) return 1;
2133
+ for (; ; ) {
2134
+ for (L = m - Q, M = l[R] < B ? (O = 0, l[R]) : l[R] > B ? (O = it[ut + l[R]], E[V + l[R]]) : (O = 96, 0), c = 1 << m - Q, e = y = 1 << j; d[F + (A >> Q) + (y -= c)] = L << 24 | O << 16 | M | 0, y !== 0; ) ;
2135
+ for (c = 1 << m - 1; A & c; ) c >>= 1;
2136
+ if (c !== 0 ? (A &= c - 1, A += c) : A = 0, R++, --K[m] == 0) {
2137
+ if (m === D) break;
2138
+ m = p[v + l[R]];
2139
+ }
2140
+ if ($ < m && (A & S) !== z) {
2141
+ for (Q === 0 && (Q = $), F += e, Z = 1 << (j = m - Q); j + Q < D && !((Z -= K[j + Q]) <= 0); ) j++, Z <<= 1;
2142
+ if (J += 1 << j, w === 1 && 852 < J || w === 2 && 592 < J) return 1;
2143
+ d[z = A & S] = $ << 24 | j << 16 | F - r | 0;
2144
+ }
2145
+ }
2146
+ return A !== 0 && (d[F + A] = m - Q << 24 | 64 << 16 | 0), a.bits = $, 0;
2147
+ };
2148
+ }, { "../utils/common": 41 }], 51: [function(g, U, k) {
2149
+ U.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
2150
+ }, {}], 52: [function(g, U, k) {
2151
+ var u = g("../utils/common"), o = 0, n = 1;
2152
+ function h(s) {
2153
+ for (var x = s.length; 0 <= --x; ) s[x] = 0;
2154
+ }
2155
+ _(h, "n");
2156
+ var b = 0, w = 29, p = 256, v = p + 1 + w, i = 30, d = 19, r = 2 * v + 1, l = 15, a = 16, c = 7, y = 256, z = 16, S = 17, F = 18, B = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], L = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], O = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], q = new Array(2 * (v + 2));
2157
+ h(q);
2158
+ var m = new Array(2 * i);
2159
+ h(m);
2160
+ var R = new Array(512);
2161
+ h(R);
2162
+ var e = new Array(256);
2163
+ h(e);
2164
+ var D = new Array(w);
2165
+ h(D);
2166
+ var $, j, Q, Z = new Array(i);
2167
+ function J(s, x, N, P, C) {
2168
+ this.static_tree = s, this.extra_bits = x, this.extra_base = N, this.elems = P, this.max_length = C, this.has_stree = s && s.length;
2169
+ }
2170
+ _(J, "D");
2171
+ function A(s, x) {
2172
+ this.dyn_tree = s, this.max_code = 0, this.stat_desc = x;
2173
+ }
2174
+ _(A, "F");
2175
+ function E(s) {
2176
+ return s < 256 ? R[s] : R[256 + (s >>> 7)];
2177
+ }
2178
+ _(E, "N");
2179
+ function V(s, x) {
2180
+ s.pending_buf[s.pending++] = 255 & x, s.pending_buf[s.pending++] = x >>> 8 & 255;
2181
+ }
2182
+ _(V, "U");
2183
+ function K(s, x, N) {
2184
+ s.bi_valid > a - N ? (s.bi_buf |= x << s.bi_valid & 65535, V(s, s.bi_buf), s.bi_buf = x >> a - s.bi_valid, s.bi_valid += N - a) : (s.bi_buf |= x << s.bi_valid & 65535, s.bi_valid += N);
2185
+ }
2186
+ _(K, "P");
2187
+ function G(s, x, N) {
2188
+ K(s, N[2 * x], N[2 * x + 1]);
2189
+ }
2190
+ _(G, "L");
2191
+ function it(s, x) {
2192
+ for (var N = 0; N |= 1 & s, s >>>= 1, N <<= 1, 0 < --x; ) ;
2193
+ return N >>> 1;
2194
+ }
2195
+ _(it, "j");
2196
+ function ut(s, x, N) {
2197
+ var P, C, W = new Array(l + 1), Y = 0;
2198
+ for (P = 1; P <= l; P++) W[P] = Y = Y + N[P - 1] << 1;
2199
+ for (C = 0; C <= x; C++) {
2200
+ var H = s[2 * C + 1];
2201
+ H !== 0 && (s[2 * C] = it(W[H]++, H));
2202
+ }
2203
+ }
2204
+ _(ut, "Z");
2205
+ function tt(s) {
2206
+ var x;
2207
+ for (x = 0; x < v; x++) s.dyn_ltree[2 * x] = 0;
2208
+ for (x = 0; x < i; x++) s.dyn_dtree[2 * x] = 0;
2209
+ for (x = 0; x < d; x++) s.bl_tree[2 * x] = 0;
2210
+ s.dyn_ltree[2 * y] = 1, s.opt_len = s.static_len = 0, s.last_lit = s.matches = 0;
2211
+ }
2212
+ _(tt, "W");
2213
+ function rt(s) {
2214
+ 8 < s.bi_valid ? V(s, s.bi_buf) : 0 < s.bi_valid && (s.pending_buf[s.pending++] = s.bi_buf), s.bi_buf = 0, s.bi_valid = 0;
2215
+ }
2216
+ _(rt, "M");
2217
+ function ot(s, x, N, P) {
2218
+ var C = 2 * x, W = 2 * N;
2219
+ return s[C] < s[W] || s[C] === s[W] && P[x] <= P[N];
2220
+ }
2221
+ _(ot, "H");
2222
+ function at(s, x, N) {
2223
+ for (var P = s.heap[N], C = N << 1; C <= s.heap_len && (C < s.heap_len && ot(x, s.heap[C + 1], s.heap[C], s.depth) && C++, !ot(x, P, s.heap[C], s.depth)); ) s.heap[N] = s.heap[C], N = C, C <<= 1;
2224
+ s.heap[N] = P;
2225
+ }
2226
+ _(at, "G");
2227
+ function ft(s, x, N) {
2228
+ var P, C, W, Y, H = 0;
2229
+ if (s.last_lit !== 0) for (; P = s.pending_buf[s.d_buf + 2 * H] << 8 | s.pending_buf[s.d_buf + 2 * H + 1], C = s.pending_buf[s.l_buf + H], H++, P === 0 ? G(s, C, x) : (G(s, (W = e[C]) + p + 1, x), (Y = B[W]) !== 0 && K(s, C -= D[W], Y), G(s, W = E(--P), N), (Y = L[W]) !== 0 && K(s, P -= Z[W], Y)), H < s.last_lit; ) ;
2230
+ G(s, y, x);
2231
+ }
2232
+ _(ft, "K");
2233
+ function lt(s, x) {
2234
+ var N, P, C, W = x.dyn_tree, Y = x.stat_desc.static_tree, H = x.stat_desc.has_stree, X = x.stat_desc.elems, nt = -1;
2235
+ for (s.heap_len = 0, s.heap_max = r, N = 0; N < X; N++) W[2 * N] !== 0 ? (s.heap[++s.heap_len] = nt = N, s.depth[N] = 0) : W[2 * N + 1] = 0;
2236
+ for (; s.heap_len < 2; ) W[2 * (C = s.heap[++s.heap_len] = nt < 2 ? ++nt : 0)] = 1, s.depth[C] = 0, s.opt_len--, H && (s.static_len -= Y[2 * C + 1]);
2237
+ for (x.max_code = nt, N = s.heap_len >> 1; 1 <= N; N--) at(s, W, N);
2238
+ for (C = X; N = s.heap[1], s.heap[1] = s.heap[s.heap_len--], at(s, W, 1), P = s.heap[1], s.heap[--s.heap_max] = N, s.heap[--s.heap_max] = P, W[2 * C] = W[2 * N] + W[2 * P], s.depth[C] = (s.depth[N] >= s.depth[P] ? s.depth[N] : s.depth[P]) + 1, W[2 * N + 1] = W[2 * P + 1] = C, s.heap[1] = C++, at(s, W, 1), 2 <= s.heap_len; ) ;
2239
+ s.heap[--s.heap_max] = s.heap[1], (function(et, ht) {
2240
+ var _t, dt, gt, st, vt, xt, ct = ht.dyn_tree, zt = ht.max_code, It = ht.stat_desc.static_tree, Ot = ht.stat_desc.has_stree, Bt = ht.stat_desc.extra_bits, Ct = ht.stat_desc.extra_base, bt = ht.stat_desc.max_length, yt = 0;
2241
+ for (st = 0; st <= l; st++) et.bl_count[st] = 0;
2242
+ for (ct[2 * et.heap[et.heap_max] + 1] = 0, _t = et.heap_max + 1; _t < r; _t++) bt < (st = ct[2 * ct[2 * (dt = et.heap[_t]) + 1] + 1] + 1) && (st = bt, yt++), ct[2 * dt + 1] = st, zt < dt || (et.bl_count[st]++, vt = 0, Ct <= dt && (vt = Bt[dt - Ct]), xt = ct[2 * dt], et.opt_len += xt * (st + vt), Ot && (et.static_len += xt * (It[2 * dt + 1] + vt)));
2243
+ if (yt !== 0) {
2244
+ do {
2245
+ for (st = bt - 1; et.bl_count[st] === 0; ) st--;
2246
+ et.bl_count[st]--, et.bl_count[st + 1] += 2, et.bl_count[bt]--, yt -= 2;
2247
+ } while (0 < yt);
2248
+ for (st = bt; st !== 0; st--) for (dt = et.bl_count[st]; dt !== 0; ) zt < (gt = et.heap[--_t]) || (ct[2 * gt + 1] !== st && (et.opt_len += (st - ct[2 * gt + 1]) * ct[2 * gt], ct[2 * gt + 1] = st), dt--);
2249
+ }
2250
+ })(s, x), ut(W, nt, s.bl_count);
2251
+ }
2252
+ _(lt, "Y");
2253
+ function t(s, x, N) {
2254
+ var P, C, W = -1, Y = x[1], H = 0, X = 7, nt = 4;
2255
+ for (Y === 0 && (X = 138, nt = 3), x[2 * (N + 1) + 1] = 65535, P = 0; P <= N; P++) C = Y, Y = x[2 * (P + 1) + 1], ++H < X && C === Y || (H < nt ? s.bl_tree[2 * C] += H : C !== 0 ? (C !== W && s.bl_tree[2 * C]++, s.bl_tree[2 * z]++) : H <= 10 ? s.bl_tree[2 * S]++ : s.bl_tree[2 * F]++, W = C, nt = (H = 0) === Y ? (X = 138, 3) : C === Y ? (X = 6, 3) : (X = 7, 4));
2256
+ }
2257
+ _(t, "X");
2258
+ function T(s, x, N) {
2259
+ var P, C, W = -1, Y = x[1], H = 0, X = 7, nt = 4;
2260
+ for (Y === 0 && (X = 138, nt = 3), P = 0; P <= N; P++) if (C = Y, Y = x[2 * (P + 1) + 1], !(++H < X && C === Y)) {
2261
+ if (H < nt) for (; G(s, C, s.bl_tree), --H != 0; ) ;
2262
+ else C !== 0 ? (C !== W && (G(s, C, s.bl_tree), H--), G(s, z, s.bl_tree), K(s, H - 3, 2)) : H <= 10 ? (G(s, S, s.bl_tree), K(s, H - 3, 3)) : (G(s, F, s.bl_tree), K(s, H - 11, 7));
2263
+ W = C, nt = (H = 0) === Y ? (X = 138, 3) : C === Y ? (X = 6, 3) : (X = 7, 4);
2264
+ }
2265
+ }
2266
+ _(T, "V"), h(Z);
2267
+ var I = !1;
2268
+ function f(s, x, N, P) {
2269
+ K(s, (b << 1) + (P ? 1 : 0), 3), (function(C, W, Y, H) {
2270
+ rt(C), V(C, Y), V(C, ~Y), u.arraySet(C.pending_buf, C.window, W, Y, C.pending), C.pending += Y;
2271
+ })(s, x, N);
2272
+ }
2273
+ _(f, "J"), k._tr_init = function(s) {
2274
+ I || ((function() {
2275
+ var x, N, P, C, W, Y = new Array(l + 1);
2276
+ for (C = P = 0; C < w - 1; C++) for (D[C] = P, x = 0; x < 1 << B[C]; x++) e[P++] = C;
2277
+ for (e[P - 1] = C, C = W = 0; C < 16; C++) for (Z[C] = W, x = 0; x < 1 << L[C]; x++) R[W++] = C;
2278
+ for (W >>= 7; C < i; C++) for (Z[C] = W << 7, x = 0; x < 1 << L[C] - 7; x++) R[256 + W++] = C;
2279
+ for (N = 0; N <= l; N++) Y[N] = 0;
2280
+ for (x = 0; x <= 143; ) q[2 * x + 1] = 8, x++, Y[8]++;
2281
+ for (; x <= 255; ) q[2 * x + 1] = 9, x++, Y[9]++;
2282
+ for (; x <= 279; ) q[2 * x + 1] = 7, x++, Y[7]++;
2283
+ for (; x <= 287; ) q[2 * x + 1] = 8, x++, Y[8]++;
2284
+ for (ut(q, v + 1, Y), x = 0; x < i; x++) m[2 * x + 1] = 5, m[2 * x] = it(x, 5);
2285
+ $ = new J(q, B, p + 1, v, l), j = new J(m, L, 0, i, l), Q = new J(new Array(0), O, 0, d, c);
2286
+ })(), I = !0), s.l_desc = new A(s.dyn_ltree, $), s.d_desc = new A(s.dyn_dtree, j), s.bl_desc = new A(s.bl_tree, Q), s.bi_buf = 0, s.bi_valid = 0, tt(s);
2287
+ }, k._tr_stored_block = f, k._tr_flush_block = function(s, x, N, P) {
2288
+ var C, W, Y = 0;
2289
+ 0 < s.level ? (s.strm.data_type === 2 && (s.strm.data_type = (function(H) {
2290
+ var X, nt = 4093624447;
2291
+ for (X = 0; X <= 31; X++, nt >>>= 1) if (1 & nt && H.dyn_ltree[2 * X] !== 0) return o;
2292
+ if (H.dyn_ltree[18] !== 0 || H.dyn_ltree[20] !== 0 || H.dyn_ltree[26] !== 0) return n;
2293
+ for (X = 32; X < p; X++) if (H.dyn_ltree[2 * X] !== 0) return n;
2294
+ return o;
2295
+ })(s)), lt(s, s.l_desc), lt(s, s.d_desc), Y = (function(H) {
2296
+ var X;
2297
+ for (t(H, H.dyn_ltree, H.l_desc.max_code), t(H, H.dyn_dtree, H.d_desc.max_code), lt(H, H.bl_desc), X = d - 1; 3 <= X && H.bl_tree[2 * M[X] + 1] === 0; X--) ;
2298
+ return H.opt_len += 3 * (X + 1) + 5 + 5 + 4, X;
2299
+ })(s), C = s.opt_len + 3 + 7 >>> 3, (W = s.static_len + 3 + 7 >>> 3) <= C && (C = W)) : C = W = N + 5, N + 4 <= C && x !== -1 ? f(s, x, N, P) : s.strategy === 4 || W === C ? (K(s, 2 + (P ? 1 : 0), 3), ft(s, q, m)) : (K(s, 4 + (P ? 1 : 0), 3), (function(H, X, nt, et) {
2300
+ var ht;
2301
+ for (K(H, X - 257, 5), K(H, nt - 1, 5), K(H, et - 4, 4), ht = 0; ht < et; ht++) K(H, H.bl_tree[2 * M[ht] + 1], 3);
2302
+ T(H, H.dyn_ltree, X - 1), T(H, H.dyn_dtree, nt - 1);
2303
+ })(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, Y + 1), ft(s, s.dyn_ltree, s.dyn_dtree)), tt(s), P && rt(s);
2304
+ }, k._tr_tally = function(s, x, N) {
2305
+ return s.pending_buf[s.d_buf + 2 * s.last_lit] = x >>> 8 & 255, s.pending_buf[s.d_buf + 2 * s.last_lit + 1] = 255 & x, s.pending_buf[s.l_buf + s.last_lit] = 255 & N, s.last_lit++, x === 0 ? s.dyn_ltree[2 * N]++ : (s.matches++, x--, s.dyn_ltree[2 * (e[N] + p + 1)]++, s.dyn_dtree[2 * E(x)]++), s.last_lit === s.lit_bufsize - 1;
2306
+ }, k._tr_align = function(s) {
2307
+ K(s, 2, 3), G(s, y, q), (function(x) {
2308
+ x.bi_valid === 16 ? (V(x, x.bi_buf), x.bi_buf = 0, x.bi_valid = 0) : 8 <= x.bi_valid && (x.pending_buf[x.pending++] = 255 & x.bi_buf, x.bi_buf >>= 8, x.bi_valid -= 8);
2309
+ })(s);
2310
+ };
2311
+ }, { "../utils/common": 41 }], 53: [function(g, U, k) {
2312
+ U.exports = function() {
2313
+ this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
2314
+ };
2315
+ }, {}], 54: [function(g, U, k) {
2316
+ (function(u) {
2317
+ (function(o, n) {
2318
+ if (!o.setImmediate) {
2319
+ var h, b, w, p, v = 1, i = {}, d = !1, r = o.document, l = Object.getPrototypeOf && Object.getPrototypeOf(o);
2320
+ l = l && l.setTimeout ? l : o, h = {}.toString.call(o.process) === "[object process]" ? function(z) {
2321
+ process.nextTick(function() {
2322
+ c(z);
2323
+ });
2324
+ } : (function() {
2325
+ if (o.postMessage && !o.importScripts) {
2326
+ var z = !0, S = o.onmessage;
2327
+ return o.onmessage = function() {
2328
+ z = !1;
2329
+ }, o.postMessage("", "*"), o.onmessage = S, z;
2330
+ }
2331
+ })() ? (p = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", y, !1) : o.attachEvent("onmessage", y), function(z) {
2332
+ o.postMessage(p + z, "*");
2333
+ }) : o.MessageChannel ? ((w = new MessageChannel()).port1.onmessage = function(z) {
2334
+ c(z.data);
2335
+ }, function(z) {
2336
+ w.port2.postMessage(z);
2337
+ }) : r && "onreadystatechange" in r.createElement("script") ? (b = r.documentElement, function(z) {
2338
+ var S = r.createElement("script");
2339
+ S.onreadystatechange = function() {
2340
+ c(z), S.onreadystatechange = null, b.removeChild(S), S = null;
2341
+ }, b.appendChild(S);
2342
+ }) : function(z) {
2343
+ setTimeout(c, 0, z);
2344
+ }, l.setImmediate = function(z) {
2345
+ typeof z != "function" && (z = new Function("" + z));
2346
+ for (var S = new Array(arguments.length - 1), F = 0; F < S.length; F++) S[F] = arguments[F + 1];
2347
+ var B = { callback: z, args: S };
2348
+ return i[v] = B, h(v), v++;
2349
+ }, l.clearImmediate = a;
2350
+ }
2351
+ function a(z) {
2352
+ delete i[z];
2353
+ }
2354
+ _(a, "f");
2355
+ function c(z) {
2356
+ if (d) setTimeout(c, 0, z);
2357
+ else {
2358
+ var S = i[z];
2359
+ if (S) {
2360
+ d = !0;
2361
+ try {
2362
+ (function(F) {
2363
+ var B = F.callback, L = F.args;
2364
+ switch (L.length) {
2365
+ case 0:
2366
+ B();
2367
+ break;
2368
+ case 1:
2369
+ B(L[0]);
2370
+ break;
2371
+ case 2:
2372
+ B(L[0], L[1]);
2373
+ break;
2374
+ case 3:
2375
+ B(L[0], L[1], L[2]);
2376
+ break;
2377
+ default:
2378
+ B.apply(n, L);
2379
+ }
2380
+ })(S);
2381
+ } finally {
2382
+ a(z), d = !1;
2383
+ }
2384
+ }
2385
+ }
2386
+ }
2387
+ _(c, "c");
2388
+ function y(z) {
2389
+ z.source === o && typeof z.data == "string" && z.data.indexOf(p) === 0 && c(+z.data.slice(p.length));
2390
+ }
2391
+ _(y, "d");
2392
+ })(typeof self > "u" ? u === void 0 ? this : u : self);
2393
+ }).call(this, typeof wt < "u" ? wt : typeof self < "u" ? self : typeof window < "u" ? window : {});
2394
+ }, {}] }, {}, [10])(10);
2395
+ });
2396
+ })(St)), St.exports;
2397
+ }
2398
+ _(Ft, "requireJszip_min");
2399
+ var At = Ft();
2400
+ const Nt = /* @__PURE__ */ Tt(At), Lt = /* @__PURE__ */ Dt({
2401
+ __proto__: null,
2402
+ default: Nt
2403
+ }, [At]);
2404
+ export {
2405
+ Lt as j
2406
+ };
2407
+ //# sourceMappingURL=jszip.min-DNVFzgT6.js.map