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