document-viewer-vue3 0.1.0

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