@expofp/loader 1.0.63 → 1.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/bundle.js +566 -433
- package/dist/bundle/bundle.js.map +1 -1
- package/dist/bundle/cssTextAssetResolver.offlineFunc-CWvHnYni.js +19 -0
- package/dist/bundle/cssTextAssetResolver.offlineFunc-CWvHnYni.js.map +1 -0
- package/dist/bundle/{downloadOfflineZip-RIzZSzeG.js → downloadOfflineZip-CNz_lUGZ.js} +701 -687
- package/dist/bundle/downloadOfflineZip-CNz_lUGZ.js.map +1 -0
- package/dist/bundle/legacyDataUrlBaseResolver.offlineFunc-BPlVJ7wy.js +84 -0
- package/dist/bundle/legacyDataUrlBaseResolver.offlineFunc-BPlVJ7wy.js.map +1 -0
- package/dist/bundle/makeOffline-Dj-0o5_7.js +76 -0
- package/dist/bundle/makeOffline-Dj-0o5_7.js.map +1 -0
- package/dist/bundle/makeOfflineBundle-D8tePWGI.js +70 -0
- package/dist/bundle/makeOfflineBundle-D8tePWGI.js.map +1 -0
- package/dist/bundle/tools-D0u8lBvQ.js +102 -0
- package/dist/bundle/tools-D0u8lBvQ.js.map +1 -0
- package/dist/esm/_OLD_fetchWithRetry.d.ts +1 -0
- package/dist/esm/_OLD_fetchWithRetry.js +101 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{loadAndWaitGlobal.d.ts → loadScript.d.ts} +2 -1
- package/dist/esm/{loadAndWaitGlobal.js → loadScript.js} +16 -6
- package/dist/esm/offline/generateZip.js +22 -2
- package/dist/esm/offline/index.d.ts +1 -0
- package/dist/esm/offline/index.js +4 -0
- package/dist/esm/offline/makeOffline.js +11 -3
- package/dist/esm/offline/makeOfflineBundle.js +30 -9
- package/dist/esm/offline/tools.d.ts +1 -0
- package/dist/esm/offline/tools.js +49 -33
- package/dist/esm/resolvers/assetResolver.d.ts +1 -1
- package/dist/esm/resolvers/assetResolver.js +1 -1
- package/dist/esm/resolvers/bundleAssetsResolver.js +1 -1
- package/dist/esm/resolvers/cssTextAssetResolver.d.ts +8 -0
- package/dist/esm/resolvers/cssTextAssetResolver.js +15 -0
- package/dist/esm/resolvers/cssTextAssetResolver.offlineFunc.d.ts +2 -0
- package/dist/esm/resolvers/cssTextAssetResolver.offlineFunc.js +22 -0
- package/dist/esm/resolvers/expoRuntimeBranchResolver.js +1 -1
- package/dist/esm/resolvers/expoRuntimeGetBranchResolver.js +1 -1
- package/dist/esm/resolvers/expoRuntimeResolver.js +1 -1
- package/dist/esm/resolvers/httpResolver.d.ts +1 -1
- package/dist/esm/resolvers/httpResolver.js +1 -1
- package/dist/esm/resolvers/index.js +4 -0
- package/dist/esm/resolvers/legacyAssetUrlsResolver.d.ts +4 -1
- package/dist/esm/resolvers/legacyAssetUrlsResolver.js +15 -2
- package/dist/esm/resolvers/legacyDataResolver.d.ts +4 -1
- package/dist/esm/resolvers/legacyDataResolver.js +4 -1
- package/dist/esm/resolvers/legacyDataUrlBaseResolver.d.ts +8 -0
- package/dist/esm/resolvers/legacyDataUrlBaseResolver.js +15 -0
- package/dist/esm/resolvers/legacyDataUrlBaseResolver.offlineFunc.d.ts +2 -0
- package/dist/esm/resolvers/legacyDataUrlBaseResolver.offlineFunc.js +140 -0
- package/dist/esm/shared.d.ts +1 -0
- package/dist/esm/shared.js +10 -2
- package/dist/esm/types.d.ts +7 -2
- package/package.json +7 -3
- package/dist/bundle/downloadOfflineZip-RIzZSzeG.js.map +0 -1
- package/dist/bundle/makeOffline-Doxc2dX7.js +0 -159
- package/dist/bundle/makeOffline-Doxc2dX7.js.map +0 -1
- package/dist/bundle/makeOfflineBundle-BoEPc05D.js +0 -60
- package/dist/bundle/makeOfflineBundle-BoEPc05D.js.map +0 -1
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import { c as yt, g as Bt, d as Rt } from "./bundle.js";
|
|
2
|
-
import { makeOfflineBundle as Tt } from "./makeOfflineBundle-
|
|
3
|
-
function wt(
|
|
4
|
-
throw new Error('Could not dynamically require "' +
|
|
2
|
+
import { makeOfflineBundle as Tt } from "./makeOfflineBundle-D8tePWGI.js";
|
|
3
|
+
function wt(dt) {
|
|
4
|
+
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.');
|
|
5
5
|
}
|
|
6
6
|
var xt = { exports: {} };
|
|
7
7
|
var Et;
|
|
8
8
|
function Dt() {
|
|
9
|
-
return Et || (Et = 1, (function(
|
|
9
|
+
return Et || (Et = 1, (function(dt, pt) {
|
|
10
10
|
(function(_) {
|
|
11
|
-
|
|
11
|
+
dt.exports = _();
|
|
12
12
|
})(function() {
|
|
13
|
-
return (function _(
|
|
14
|
-
function
|
|
15
|
-
if (!
|
|
16
|
-
if (!
|
|
13
|
+
return (function _(T, w, u) {
|
|
14
|
+
function o(g, y) {
|
|
15
|
+
if (!w[g]) {
|
|
16
|
+
if (!T[g]) {
|
|
17
17
|
var p = typeof wt == "function" && wt;
|
|
18
18
|
if (!y && p) return p(g, !0);
|
|
19
19
|
if (n) return n(g, !0);
|
|
20
20
|
var b = new Error("Cannot find module '" + g + "'");
|
|
21
21
|
throw b.code = "MODULE_NOT_FOUND", b;
|
|
22
22
|
}
|
|
23
|
-
var i =
|
|
24
|
-
|
|
25
|
-
var r =
|
|
26
|
-
return
|
|
27
|
-
}, i, i.exports, _,
|
|
23
|
+
var i = w[g] = { exports: {} };
|
|
24
|
+
T[g][0].call(i.exports, function(d) {
|
|
25
|
+
var r = T[g][1][d];
|
|
26
|
+
return o(r || d);
|
|
27
|
+
}, i, i.exports, _, T, w, u);
|
|
28
28
|
}
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
for (var n = typeof wt == "function" && wt, h = 0; h <
|
|
32
|
-
return
|
|
33
|
-
})({ 1: [function(_,
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
for (var g, y, p, b, i, d, r, l = [], a = 0, c = h.length, v = c, z =
|
|
29
|
+
return w[g].exports;
|
|
30
|
+
}
|
|
31
|
+
for (var n = typeof wt == "function" && wt, h = 0; h < u.length; h++) o(u[h]);
|
|
32
|
+
return o;
|
|
33
|
+
})({ 1: [function(_, T, w) {
|
|
34
|
+
var u = _("./utils"), o = _("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
35
|
+
w.encode = function(h) {
|
|
36
|
+
for (var g, y, p, b, i, d, r, l = [], a = 0, c = h.length, v = c, z = u.getTypeOf(h) !== "string"; a < h.length; ) v = c - a, p = z ? (g = h[a++], y = a < c ? h[a++] : 0, a < c ? h[a++] : 0) : (g = h.charCodeAt(a++), y = a < c ? h.charCodeAt(a++) : 0, a < c ? h.charCodeAt(a++) : 0), b = g >> 2, i = (3 & g) << 4 | y >> 4, d = 1 < v ? (15 & y) << 2 | p >> 6 : 64, r = 2 < v ? 63 & p : 64, l.push(n.charAt(b) + n.charAt(i) + n.charAt(d) + n.charAt(r));
|
|
37
37
|
return l.join("");
|
|
38
|
-
},
|
|
38
|
+
}, w.decode = function(h) {
|
|
39
39
|
var g, y, p, b, i, d, r = 0, l = 0, a = "data:";
|
|
40
40
|
if (h.substr(0, a.length) === a) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
41
41
|
var c, v = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
42
42
|
if (h.charAt(h.length - 1) === n.charAt(64) && v--, h.charAt(h.length - 2) === n.charAt(64) && v--, v % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
43
|
-
for (c =
|
|
43
|
+
for (c = o.uint8array ? new Uint8Array(0 | v) : new Array(0 | v); r < h.length; ) g = n.indexOf(h.charAt(r++)) << 2 | (b = n.indexOf(h.charAt(r++))) >> 4, y = (15 & b) << 4 | (i = n.indexOf(h.charAt(r++))) >> 2, p = (3 & i) << 6 | (d = n.indexOf(h.charAt(r++))), c[l++] = g, i !== 64 && (c[l++] = y), d !== 64 && (c[l++] = p);
|
|
44
44
|
return c;
|
|
45
45
|
};
|
|
46
|
-
}, { "./support": 30, "./utils": 32 }], 2: [function(_,
|
|
47
|
-
var
|
|
46
|
+
}, { "./support": 30, "./utils": 32 }], 2: [function(_, T, w) {
|
|
47
|
+
var u = _("./external"), o = _("./stream/DataWorker"), n = _("./stream/Crc32Probe"), h = _("./stream/DataLengthProbe");
|
|
48
48
|
function g(y, p, b, i, d) {
|
|
49
49
|
this.compressedSize = y, this.uncompressedSize = p, this.crc32 = b, this.compression = i, this.compressedContent = d;
|
|
50
50
|
}
|
|
51
51
|
g.prototype = { getContentWorker: function() {
|
|
52
|
-
var y = new u
|
|
52
|
+
var y = new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), p = this;
|
|
53
53
|
return y.on("end", function() {
|
|
54
54
|
if (this.streamInfo.data_length !== p.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
|
|
55
55
|
}), y;
|
|
56
56
|
}, getCompressedWorker: function() {
|
|
57
|
-
return new u
|
|
57
|
+
return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
58
58
|
} }, g.createWorkerFrom = function(y, p, b) {
|
|
59
59
|
return y.pipe(new n()).pipe(new h("uncompressedSize")).pipe(p.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression", p);
|
|
60
|
-
},
|
|
61
|
-
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(_,
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
return new
|
|
60
|
+
}, T.exports = g;
|
|
61
|
+
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(_, T, w) {
|
|
62
|
+
var u = _("./stream/GenericWorker");
|
|
63
|
+
w.STORE = { magic: "\0\0", compressWorker: function() {
|
|
64
|
+
return new u("STORE compression");
|
|
65
65
|
}, uncompressWorker: function() {
|
|
66
|
-
return new
|
|
67
|
-
} },
|
|
68
|
-
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(_,
|
|
69
|
-
var
|
|
66
|
+
return new u("STORE decompression");
|
|
67
|
+
} }, w.DEFLATE = _("./flate");
|
|
68
|
+
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(_, T, w) {
|
|
69
|
+
var u = _("./utils"), o = (function() {
|
|
70
70
|
for (var n, h = [], g = 0; g < 256; g++) {
|
|
71
71
|
n = g;
|
|
72
72
|
for (var y = 0; y < 8; y++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
|
|
@@ -74,54 +74,54 @@ function Dt() {
|
|
|
74
74
|
}
|
|
75
75
|
return h;
|
|
76
76
|
})();
|
|
77
|
-
|
|
78
|
-
return n !== void 0 && n.length ?
|
|
79
|
-
var i =
|
|
77
|
+
T.exports = function(n, h) {
|
|
78
|
+
return n !== void 0 && n.length ? u.getTypeOf(n) !== "string" ? (function(g, y, p, b) {
|
|
79
|
+
var i = o, d = b + p;
|
|
80
80
|
g ^= -1;
|
|
81
81
|
for (var r = b; r < d; r++) g = g >>> 8 ^ i[255 & (g ^ y[r])];
|
|
82
82
|
return -1 ^ g;
|
|
83
83
|
})(0 | h, n, n.length, 0) : (function(g, y, p, b) {
|
|
84
|
-
var i =
|
|
84
|
+
var i = o, d = b + p;
|
|
85
85
|
g ^= -1;
|
|
86
86
|
for (var r = b; r < d; r++) g = g >>> 8 ^ i[255 & (g ^ y.charCodeAt(r))];
|
|
87
87
|
return -1 ^ g;
|
|
88
88
|
})(0 | h, n, n.length, 0) : 0;
|
|
89
89
|
};
|
|
90
|
-
}, { "./utils": 32 }], 5: [function(_,
|
|
91
|
-
|
|
92
|
-
}, {}], 6: [function(_,
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
}, { lie: 37 }], 7: [function(_,
|
|
96
|
-
var
|
|
90
|
+
}, { "./utils": 32 }], 5: [function(_, T, w) {
|
|
91
|
+
w.base64 = !1, w.binary = !1, w.dir = !1, w.createFolders = !0, w.date = null, w.compression = null, w.compressionOptions = null, w.comment = null, w.unixPermissions = null, w.dosPermissions = null;
|
|
92
|
+
}, {}], 6: [function(_, T, w) {
|
|
93
|
+
var u = null;
|
|
94
|
+
u = typeof Promise < "u" ? Promise : _("lie"), T.exports = { Promise: u };
|
|
95
|
+
}, { lie: 37 }], 7: [function(_, T, w) {
|
|
96
|
+
var u = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = _("pako"), n = _("./utils"), h = _("./stream/GenericWorker"), g = u ? "uint8array" : "array";
|
|
97
97
|
function y(p, b) {
|
|
98
98
|
h.call(this, "FlateWorker/" + p), this._pako = null, this._pakoAction = p, this._pakoOptions = b, this.meta = {};
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
w.magic = "\b\0", n.inherits(y, h), y.prototype.processChunk = function(p) {
|
|
101
101
|
this.meta = p.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(g, p.data), !1);
|
|
102
102
|
}, y.prototype.flush = function() {
|
|
103
103
|
h.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
|
|
104
104
|
}, y.prototype.cleanUp = function() {
|
|
105
105
|
h.prototype.cleanUp.call(this), this._pako = null;
|
|
106
106
|
}, y.prototype._createPako = function() {
|
|
107
|
-
this._pako = new
|
|
107
|
+
this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
|
|
108
108
|
var p = this;
|
|
109
109
|
this._pako.onData = function(b) {
|
|
110
110
|
p.push({ data: b, meta: p.meta });
|
|
111
111
|
};
|
|
112
|
-
},
|
|
112
|
+
}, w.compressWorker = function(p) {
|
|
113
113
|
return new y("Deflate", p);
|
|
114
|
-
},
|
|
114
|
+
}, w.uncompressWorker = function() {
|
|
115
115
|
return new y("Inflate", {});
|
|
116
116
|
};
|
|
117
|
-
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(_,
|
|
118
|
-
function
|
|
117
|
+
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(_, T, w) {
|
|
118
|
+
function u(i, d) {
|
|
119
119
|
var r, l = "";
|
|
120
120
|
for (r = 0; r < d; r++) l += String.fromCharCode(255 & i), i >>>= 8;
|
|
121
121
|
return l;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
var v, z, x = i.file,
|
|
123
|
+
function o(i, d, r, l, a, c) {
|
|
124
|
+
var v, z, x = i.file, F = i.compression, O = c !== g.utf8encode, L = n.transformTo("string", c(x.name)), I = n.transformTo("string", g.utf8encode(x.name)), W = x.comment, q = n.transformTo("string", c(W)), m = n.transformTo("string", g.utf8encode(W)), B = I.length !== x.name.length, e = m.length !== W.length, D = "", J = "", P = "", $ = x.dir, j = x.date, V = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
125
125
|
d && !r || (V.crc32 = i.crc32, V.compressedSize = i.compressedSize, V.uncompressedSize = i.uncompressedSize);
|
|
126
126
|
var E = 0;
|
|
127
127
|
d && (E |= 8), O || !B && !e || (E |= 2048);
|
|
@@ -131,10 +131,10 @@ function Dt() {
|
|
|
131
131
|
return H || (ot = nt ? 16893 : 33204), (65535 & ot) << 16;
|
|
132
132
|
})(x.unixPermissions, $)) : (X = 20, C |= (function(H) {
|
|
133
133
|
return 63 & (H || 0);
|
|
134
|
-
})(x.dosPermissions)), v = j.getUTCHours(), v <<= 6, v |= j.getUTCMinutes(), v <<= 5, v |= j.getUTCSeconds() / 2, z = j.getUTCFullYear() - 1980, z <<= 4, z |= j.getUTCMonth() + 1, z <<= 5, z |= j.getUTCDate(), B && (J =
|
|
134
|
+
})(x.dosPermissions)), v = j.getUTCHours(), v <<= 6, v |= j.getUTCMinutes(), v <<= 5, v |= j.getUTCSeconds() / 2, z = j.getUTCFullYear() - 1980, z <<= 4, z |= j.getUTCMonth() + 1, z <<= 5, z |= j.getUTCDate(), B && (J = u(1, 1) + u(y(L), 4) + I, D += "up" + u(J.length, 2) + J), e && (P = u(1, 1) + u(y(q), 4) + m, D += "uc" + u(P.length, 2) + P);
|
|
135
135
|
var G = "";
|
|
136
136
|
return G += `
|
|
137
|
-
\0`, G +=
|
|
137
|
+
\0`, G += u(E, 2), G += F.magic, G += u(v, 2), G += u(z, 2), G += u(V.crc32, 4), G += u(V.compressedSize, 4), G += u(V.uncompressedSize, 4), G += u(L.length, 2), G += u(D.length, 2), { fileRecord: p.LOCAL_FILE_HEADER + G + L + D, dirRecord: p.CENTRAL_FILE_HEADER + u(X, 2) + G + u(q.length, 2) + "\0\0\0\0" + u(C, 4) + u(l, 4) + L + D + q };
|
|
138
138
|
}
|
|
139
139
|
var n = _("../utils"), h = _("../stream/GenericWorker"), g = _("../utf8"), y = _("../crc32"), p = _("../signature");
|
|
140
140
|
function b(i, d, r, l) {
|
|
@@ -147,22 +147,22 @@ function Dt() {
|
|
|
147
147
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
|
|
148
148
|
var d = this.streamFiles && !i.file.dir;
|
|
149
149
|
if (d) {
|
|
150
|
-
var r =
|
|
150
|
+
var r = o(i, d, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
151
151
|
this.push({ data: r.fileRecord, meta: { percent: 0 } });
|
|
152
152
|
} else this.accumulate = !0;
|
|
153
153
|
}, b.prototype.closedSource = function(i) {
|
|
154
154
|
this.accumulate = !1;
|
|
155
|
-
var d = this.streamFiles && !i.file.dir, r =
|
|
155
|
+
var d = this.streamFiles && !i.file.dir, r = o(i, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
156
156
|
if (this.dirRecords.push(r.dirRecord), d) this.push({ data: (function(l) {
|
|
157
|
-
return p.DATA_DESCRIPTOR +
|
|
157
|
+
return p.DATA_DESCRIPTOR + u(l.crc32, 4) + u(l.compressedSize, 4) + u(l.uncompressedSize, 4);
|
|
158
158
|
})(i), meta: { percent: 100 } });
|
|
159
159
|
else for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
160
160
|
this.currentFile = null;
|
|
161
161
|
}, b.prototype.flush = function() {
|
|
162
162
|
for (var i = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
|
|
163
163
|
var r = this.bytesWritten - i, l = (function(a, c, v, z, x) {
|
|
164
|
-
var
|
|
165
|
-
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" +
|
|
164
|
+
var F = n.transformTo("string", x(z));
|
|
165
|
+
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" + u(a, 2) + u(a, 2) + u(c, 4) + u(v, 4) + u(F.length, 2) + F;
|
|
166
166
|
})(this.dirRecords.length, r, i, this.zipComment, this.encodeFileName);
|
|
167
167
|
this.push({ data: l, meta: { percent: 100 } });
|
|
168
168
|
}, b.prototype.prepareNextSource = function() {
|
|
@@ -190,16 +190,16 @@ function Dt() {
|
|
|
190
190
|
}, b.prototype.lock = function() {
|
|
191
191
|
h.prototype.lock.call(this);
|
|
192
192
|
for (var i = this._sources, d = 0; d < i.length; d++) i[d].lock();
|
|
193
|
-
},
|
|
194
|
-
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(_,
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
var y = new
|
|
193
|
+
}, T.exports = b;
|
|
194
|
+
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(_, T, w) {
|
|
195
|
+
var u = _("../compressions"), o = _("./ZipFileWorker");
|
|
196
|
+
w.generateWorker = function(n, h, g) {
|
|
197
|
+
var y = new o(h.streamFiles, g, h.platform, h.encodeFileName), p = 0;
|
|
198
198
|
try {
|
|
199
199
|
n.forEach(function(b, i) {
|
|
200
200
|
p++;
|
|
201
201
|
var d = (function(c, v) {
|
|
202
|
-
var z = c || v, x =
|
|
202
|
+
var z = c || v, x = u[z];
|
|
203
203
|
if (!x) throw new Error(z + " is not a valid compression method !");
|
|
204
204
|
return x;
|
|
205
205
|
})(i.options.compression, h.compression), r = i.options.compressionOptions || h.compressionOptions || {}, l = i.dir, a = i.date;
|
|
@@ -210,23 +210,23 @@ function Dt() {
|
|
|
210
210
|
}
|
|
211
211
|
return y;
|
|
212
212
|
};
|
|
213
|
-
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(_,
|
|
214
|
-
function
|
|
215
|
-
if (!(this instanceof
|
|
213
|
+
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(_, T, w) {
|
|
214
|
+
function u() {
|
|
215
|
+
if (!(this instanceof u)) return new u();
|
|
216
216
|
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
217
217
|
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
218
|
-
var
|
|
219
|
-
for (var n in this) typeof this[n] != "function" && (
|
|
220
|
-
return
|
|
218
|
+
var o = new u();
|
|
219
|
+
for (var n in this) typeof this[n] != "function" && (o[n] = this[n]);
|
|
220
|
+
return o;
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
(
|
|
224
|
-
return new
|
|
225
|
-
},
|
|
226
|
-
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(_,
|
|
227
|
-
var
|
|
223
|
+
(u.prototype = _("./object")).loadAsync = _("./load"), u.support = _("./support"), u.defaults = _("./defaults"), u.version = "3.10.1", u.loadAsync = function(o, n) {
|
|
224
|
+
return new u().loadAsync(o, n);
|
|
225
|
+
}, u.external = _("./external"), T.exports = u;
|
|
226
|
+
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(_, T, w) {
|
|
227
|
+
var u = _("./utils"), o = _("./external"), n = _("./utf8"), h = _("./zipEntries"), g = _("./stream/Crc32Probe"), y = _("./nodejsUtils");
|
|
228
228
|
function p(b) {
|
|
229
|
-
return new
|
|
229
|
+
return new o.Promise(function(i, d) {
|
|
230
230
|
var r = b.decompressed.getContentWorker().pipe(new g());
|
|
231
231
|
r.on("error", function(l) {
|
|
232
232
|
d(l);
|
|
@@ -235,29 +235,29 @@ function Dt() {
|
|
|
235
235
|
}).resume();
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
T.exports = function(b, i) {
|
|
239
239
|
var d = this;
|
|
240
|
-
return i =
|
|
240
|
+
return i = u.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), y.isNode && y.isStream(b) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", b, !0, i.optimizedBinaryString, i.base64).then(function(r) {
|
|
241
241
|
var l = new h(i);
|
|
242
242
|
return l.load(r), l;
|
|
243
243
|
}).then(function(r) {
|
|
244
|
-
var l = [
|
|
244
|
+
var l = [o.Promise.resolve(r)], a = r.files;
|
|
245
245
|
if (i.checkCRC32) for (var c = 0; c < a.length; c++) l.push(p(a[c]));
|
|
246
|
-
return
|
|
246
|
+
return o.Promise.all(l);
|
|
247
247
|
}).then(function(r) {
|
|
248
248
|
for (var l = r.shift(), a = l.files, c = 0; c < a.length; c++) {
|
|
249
|
-
var v = a[c], z = v.fileNameStr, x =
|
|
249
|
+
var v = a[c], z = v.fileNameStr, x = u.resolve(v.fileNameStr);
|
|
250
250
|
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 = z);
|
|
251
251
|
}
|
|
252
252
|
return l.zipComment.length && (d.comment = l.zipComment), d;
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
|
-
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(_,
|
|
256
|
-
var
|
|
255
|
+
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(_, T, w) {
|
|
256
|
+
var u = _("../utils"), o = _("../stream/GenericWorker");
|
|
257
257
|
function n(h, g) {
|
|
258
|
-
|
|
258
|
+
o.call(this, "Nodejs stream input adapter for " + h), this._upstreamEnded = !1, this._bindStream(g);
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
u.inherits(n, o), n.prototype._bindStream = function(h) {
|
|
261
261
|
var g = this;
|
|
262
262
|
(this._stream = h).pause(), h.on("data", function(y) {
|
|
263
263
|
g.push({ data: y, meta: { percent: 0 } });
|
|
@@ -267,14 +267,14 @@ function Dt() {
|
|
|
267
267
|
g.isPaused ? g._upstreamEnded = !0 : g.end();
|
|
268
268
|
});
|
|
269
269
|
}, n.prototype.pause = function() {
|
|
270
|
-
return !!
|
|
270
|
+
return !!o.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
271
271
|
}, n.prototype.resume = function() {
|
|
272
|
-
return !!
|
|
273
|
-
},
|
|
274
|
-
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(_,
|
|
275
|
-
var
|
|
276
|
-
function
|
|
277
|
-
|
|
272
|
+
return !!o.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
273
|
+
}, T.exports = n;
|
|
274
|
+
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(_, T, w) {
|
|
275
|
+
var u = _("readable-stream").Readable;
|
|
276
|
+
function o(n, h, g) {
|
|
277
|
+
u.call(this, h), this._helper = n;
|
|
278
278
|
var y = this;
|
|
279
279
|
n.on("data", function(p, b) {
|
|
280
280
|
y.push(p) || y._helper.pause(), g && g(b);
|
|
@@ -284,42 +284,42 @@ function Dt() {
|
|
|
284
284
|
y.push(null);
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
_("../utils").inherits(
|
|
287
|
+
_("../utils").inherits(o, u), o.prototype._read = function() {
|
|
288
288
|
this._helper.resume();
|
|
289
|
-
},
|
|
290
|
-
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(_,
|
|
291
|
-
|
|
292
|
-
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(
|
|
293
|
-
if (typeof
|
|
294
|
-
return new Buffer(
|
|
295
|
-
}, allocBuffer: function(
|
|
296
|
-
if (Buffer.alloc) return Buffer.alloc(
|
|
297
|
-
var
|
|
298
|
-
return
|
|
299
|
-
}, isBuffer: function(
|
|
300
|
-
return Buffer.isBuffer(
|
|
301
|
-
}, isStream: function(
|
|
302
|
-
return
|
|
289
|
+
}, T.exports = o;
|
|
290
|
+
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(_, T, w) {
|
|
291
|
+
T.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(u, o) {
|
|
292
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(u, o);
|
|
293
|
+
if (typeof u == "number") throw new Error('The "data" argument must not be a number');
|
|
294
|
+
return new Buffer(u, o);
|
|
295
|
+
}, allocBuffer: function(u) {
|
|
296
|
+
if (Buffer.alloc) return Buffer.alloc(u);
|
|
297
|
+
var o = new Buffer(u);
|
|
298
|
+
return o.fill(0), o;
|
|
299
|
+
}, isBuffer: function(u) {
|
|
300
|
+
return Buffer.isBuffer(u);
|
|
301
|
+
}, isStream: function(u) {
|
|
302
|
+
return u && typeof u.on == "function" && typeof u.pause == "function" && typeof u.resume == "function";
|
|
303
303
|
} };
|
|
304
|
-
}, {}], 15: [function(_,
|
|
305
|
-
function
|
|
306
|
-
var L, I = n.getTypeOf(
|
|
304
|
+
}, {}], 15: [function(_, T, w) {
|
|
305
|
+
function u(x, F, O) {
|
|
306
|
+
var L, I = n.getTypeOf(F), W = n.extend(O || {}, y);
|
|
307
307
|
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 = l(x)) && c.call(this, L, !0);
|
|
308
308
|
var q = I === "string" && W.binary === !1 && W.base64 === !1;
|
|
309
|
-
O && O.binary !== void 0 || (W.binary = !q), (
|
|
309
|
+
O && O.binary !== void 0 || (W.binary = !q), (F instanceof p && F.uncompressedSize === 0 || W.dir || !F || F.length === 0) && (W.base64 = !1, W.binary = !0, F = "", W.compression = "STORE", I = "string");
|
|
310
310
|
var m = null;
|
|
311
|
-
m =
|
|
311
|
+
m = F instanceof p || F instanceof h ? F : d.isNode && d.isStream(F) ? new r(x, F) : n.prepareContent(x, F, W.binary, W.optimizedBinaryString, W.base64);
|
|
312
312
|
var B = new b(x, m, W);
|
|
313
313
|
this.files[x] = B;
|
|
314
314
|
}
|
|
315
|
-
var
|
|
315
|
+
var o = _("./utf8"), n = _("./utils"), h = _("./stream/GenericWorker"), g = _("./stream/StreamHelper"), y = _("./defaults"), p = _("./compressedObject"), b = _("./zipObject"), i = _("./generate"), d = _("./nodejsUtils"), r = _("./nodejs/NodejsStreamInputAdapter"), l = function(x) {
|
|
316
316
|
x.slice(-1) === "/" && (x = x.substring(0, x.length - 1));
|
|
317
|
-
var
|
|
318
|
-
return 0 <
|
|
317
|
+
var F = x.lastIndexOf("/");
|
|
318
|
+
return 0 < F ? x.substring(0, F) : "";
|
|
319
319
|
}, a = function(x) {
|
|
320
320
|
return x.slice(-1) !== "/" && (x += "/"), x;
|
|
321
|
-
}, c = function(x,
|
|
322
|
-
return
|
|
321
|
+
}, c = function(x, F) {
|
|
322
|
+
return F = F !== void 0 ? F : y.createFolders, x = a(x), this.files[x] || u.call(this, x, null, { dir: !0, createFolders: F }), this.files[x];
|
|
323
323
|
};
|
|
324
324
|
function v(x) {
|
|
325
325
|
return Object.prototype.toString.call(x) === "[object RegExp]";
|
|
@@ -327,15 +327,15 @@ function Dt() {
|
|
|
327
327
|
var z = { load: function() {
|
|
328
328
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
329
329
|
}, forEach: function(x) {
|
|
330
|
-
var
|
|
331
|
-
for (
|
|
330
|
+
var F, O, L;
|
|
331
|
+
for (F in this.files) L = this.files[F], (O = F.slice(this.root.length, F.length)) && F.slice(0, this.root.length) === this.root && x(O, L);
|
|
332
332
|
}, filter: function(x) {
|
|
333
|
-
var
|
|
333
|
+
var F = [];
|
|
334
334
|
return this.forEach(function(O, L) {
|
|
335
|
-
x(O, L) &&
|
|
336
|
-
}),
|
|
337
|
-
}, file: function(x,
|
|
338
|
-
if (arguments.length !== 1) return x = this.root + x,
|
|
335
|
+
x(O, L) && F.push(L);
|
|
336
|
+
}), F;
|
|
337
|
+
}, file: function(x, F, O) {
|
|
338
|
+
if (arguments.length !== 1) return x = this.root + x, u.call(this, x, F, O), this;
|
|
339
339
|
if (v(x)) {
|
|
340
340
|
var L = x;
|
|
341
341
|
return this.filter(function(W, q) {
|
|
@@ -349,12 +349,12 @@ function Dt() {
|
|
|
349
349
|
if (v(x)) return this.filter(function(I, W) {
|
|
350
350
|
return W.dir && x.test(I);
|
|
351
351
|
});
|
|
352
|
-
var
|
|
352
|
+
var F = this.root + x, O = c.call(this, F), L = this.clone();
|
|
353
353
|
return L.root = O.name, L;
|
|
354
354
|
}, remove: function(x) {
|
|
355
355
|
x = this.root + x;
|
|
356
|
-
var
|
|
357
|
-
if (
|
|
356
|
+
var F = this.files[x];
|
|
357
|
+
if (F || (x.slice(-1) !== "/" && (x += "/"), F = this.files[x]), F && !F.dir) delete this.files[x];
|
|
358
358
|
else for (var O = this.filter(function(I, W) {
|
|
359
359
|
return W.name.slice(0, x.length) === x;
|
|
360
360
|
}), L = 0; L < O.length; L++) delete this.files[O[L].name];
|
|
@@ -362,49 +362,49 @@ function Dt() {
|
|
|
362
362
|
}, generate: function() {
|
|
363
363
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
364
364
|
}, generateInternalStream: function(x) {
|
|
365
|
-
var
|
|
365
|
+
var F, O = {};
|
|
366
366
|
try {
|
|
367
|
-
if ((O = n.extend(x || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName:
|
|
367
|
+
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.");
|
|
368
368
|
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");
|
|
369
369
|
var L = O.comment || this.comment || "";
|
|
370
|
-
|
|
370
|
+
F = i.generateWorker(this, O, L);
|
|
371
371
|
} catch (I) {
|
|
372
|
-
(
|
|
372
|
+
(F = new h("error")).error(I);
|
|
373
373
|
}
|
|
374
|
-
return new g(
|
|
375
|
-
}, generateAsync: function(x,
|
|
376
|
-
return this.generateInternalStream(x).accumulate(
|
|
377
|
-
}, generateNodeStream: function(x,
|
|
378
|
-
return (x = x || {}).type || (x.type = "nodebuffer"), this.generateInternalStream(x).toNodejsStream(
|
|
374
|
+
return new g(F, O.type || "string", O.mimeType);
|
|
375
|
+
}, generateAsync: function(x, F) {
|
|
376
|
+
return this.generateInternalStream(x).accumulate(F);
|
|
377
|
+
}, generateNodeStream: function(x, F) {
|
|
378
|
+
return (x = x || {}).type || (x.type = "nodebuffer"), this.generateInternalStream(x).toNodejsStream(F);
|
|
379
379
|
} };
|
|
380
|
-
|
|
381
|
-
}, { "./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(_,
|
|
382
|
-
|
|
383
|
-
}, { stream: void 0 }], 17: [function(_,
|
|
384
|
-
var
|
|
385
|
-
function
|
|
386
|
-
|
|
380
|
+
T.exports = z;
|
|
381
|
+
}, { "./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(_, T, w) {
|
|
382
|
+
T.exports = _("stream");
|
|
383
|
+
}, { stream: void 0 }], 17: [function(_, T, w) {
|
|
384
|
+
var u = _("./DataReader");
|
|
385
|
+
function o(n) {
|
|
386
|
+
u.call(this, n);
|
|
387
387
|
for (var h = 0; h < this.data.length; h++) n[h] = 255 & n[h];
|
|
388
388
|
}
|
|
389
|
-
_("../utils").inherits(
|
|
389
|
+
_("../utils").inherits(o, u), o.prototype.byteAt = function(n) {
|
|
390
390
|
return this.data[this.zero + n];
|
|
391
|
-
},
|
|
391
|
+
}, o.prototype.lastIndexOfSignature = function(n) {
|
|
392
392
|
for (var h = n.charCodeAt(0), g = n.charCodeAt(1), y = n.charCodeAt(2), p = n.charCodeAt(3), b = this.length - 4; 0 <= b; --b) if (this.data[b] === h && this.data[b + 1] === g && this.data[b + 2] === y && this.data[b + 3] === p) return b - this.zero;
|
|
393
393
|
return -1;
|
|
394
|
-
},
|
|
394
|
+
}, o.prototype.readAndCheckSignature = function(n) {
|
|
395
395
|
var h = n.charCodeAt(0), g = n.charCodeAt(1), y = n.charCodeAt(2), p = n.charCodeAt(3), b = this.readData(4);
|
|
396
396
|
return h === b[0] && g === b[1] && y === b[2] && p === b[3];
|
|
397
|
-
},
|
|
397
|
+
}, o.prototype.readData = function(n) {
|
|
398
398
|
if (this.checkOffset(n), n === 0) return [];
|
|
399
399
|
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
400
400
|
return this.index += n, h;
|
|
401
|
-
},
|
|
402
|
-
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(_,
|
|
403
|
-
var
|
|
404
|
-
function
|
|
401
|
+
}, T.exports = o;
|
|
402
|
+
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(_, T, w) {
|
|
403
|
+
var u = _("../utils");
|
|
404
|
+
function o(n) {
|
|
405
405
|
this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
|
|
406
406
|
}
|
|
407
|
-
|
|
407
|
+
o.prototype = { checkOffset: function(n) {
|
|
408
408
|
this.checkIndex(this.index + n);
|
|
409
409
|
}, checkIndex: function(n) {
|
|
410
410
|
if (this.length < this.zero + n || n < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + n + "). Corrupted zip ?");
|
|
@@ -418,103 +418,103 @@ function Dt() {
|
|
|
418
418
|
for (this.checkOffset(n), h = this.index + n - 1; h >= this.index; h--) g = (g << 8) + this.byteAt(h);
|
|
419
419
|
return this.index += n, g;
|
|
420
420
|
}, readString: function(n) {
|
|
421
|
-
return
|
|
421
|
+
return u.transformTo("string", this.readData(n));
|
|
422
422
|
}, readData: function() {
|
|
423
423
|
}, lastIndexOfSignature: function() {
|
|
424
424
|
}, readAndCheckSignature: function() {
|
|
425
425
|
}, readDate: function() {
|
|
426
426
|
var n = this.readInt(4);
|
|
427
427
|
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));
|
|
428
|
-
} },
|
|
429
|
-
}, { "../utils": 32 }], 19: [function(_,
|
|
430
|
-
var
|
|
431
|
-
function
|
|
432
|
-
|
|
428
|
+
} }, T.exports = o;
|
|
429
|
+
}, { "../utils": 32 }], 19: [function(_, T, w) {
|
|
430
|
+
var u = _("./Uint8ArrayReader");
|
|
431
|
+
function o(n) {
|
|
432
|
+
u.call(this, n);
|
|
433
433
|
}
|
|
434
|
-
_("../utils").inherits(
|
|
434
|
+
_("../utils").inherits(o, u), o.prototype.readData = function(n) {
|
|
435
435
|
this.checkOffset(n);
|
|
436
436
|
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
437
437
|
return this.index += n, h;
|
|
438
|
-
},
|
|
439
|
-
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(_,
|
|
440
|
-
var
|
|
441
|
-
function
|
|
442
|
-
|
|
438
|
+
}, T.exports = o;
|
|
439
|
+
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(_, T, w) {
|
|
440
|
+
var u = _("./DataReader");
|
|
441
|
+
function o(n) {
|
|
442
|
+
u.call(this, n);
|
|
443
443
|
}
|
|
444
|
-
_("../utils").inherits(
|
|
444
|
+
_("../utils").inherits(o, u), o.prototype.byteAt = function(n) {
|
|
445
445
|
return this.data.charCodeAt(this.zero + n);
|
|
446
|
-
},
|
|
446
|
+
}, o.prototype.lastIndexOfSignature = function(n) {
|
|
447
447
|
return this.data.lastIndexOf(n) - this.zero;
|
|
448
|
-
},
|
|
448
|
+
}, o.prototype.readAndCheckSignature = function(n) {
|
|
449
449
|
return n === this.readData(4);
|
|
450
|
-
},
|
|
450
|
+
}, o.prototype.readData = function(n) {
|
|
451
451
|
this.checkOffset(n);
|
|
452
452
|
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
453
453
|
return this.index += n, h;
|
|
454
|
-
},
|
|
455
|
-
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(_,
|
|
456
|
-
var
|
|
457
|
-
function
|
|
458
|
-
|
|
454
|
+
}, T.exports = o;
|
|
455
|
+
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(_, T, w) {
|
|
456
|
+
var u = _("./ArrayReader");
|
|
457
|
+
function o(n) {
|
|
458
|
+
u.call(this, n);
|
|
459
459
|
}
|
|
460
|
-
_("../utils").inherits(
|
|
460
|
+
_("../utils").inherits(o, u), o.prototype.readData = function(n) {
|
|
461
461
|
if (this.checkOffset(n), n === 0) return new Uint8Array(0);
|
|
462
462
|
var h = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
|
|
463
463
|
return this.index += n, h;
|
|
464
|
-
},
|
|
465
|
-
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(_,
|
|
466
|
-
var
|
|
467
|
-
|
|
468
|
-
var b =
|
|
469
|
-
return
|
|
464
|
+
}, T.exports = o;
|
|
465
|
+
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(_, T, w) {
|
|
466
|
+
var u = _("../utils"), o = _("../support"), n = _("./ArrayReader"), h = _("./StringReader"), g = _("./NodeBufferReader"), y = _("./Uint8ArrayReader");
|
|
467
|
+
T.exports = function(p) {
|
|
468
|
+
var b = u.getTypeOf(p);
|
|
469
|
+
return u.checkSupport(b), b !== "string" || o.uint8array ? b === "nodebuffer" ? new g(p) : o.uint8array ? new y(u.transformTo("uint8array", p)) : new n(u.transformTo("array", p)) : new h(p);
|
|
470
470
|
};
|
|
471
|
-
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(_,
|
|
472
|
-
|
|
473
|
-
}, {}], 24: [function(_,
|
|
474
|
-
var
|
|
471
|
+
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(_, T, w) {
|
|
472
|
+
w.LOCAL_FILE_HEADER = "PK", w.CENTRAL_FILE_HEADER = "PK", w.CENTRAL_DIRECTORY_END = "PK", w.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", w.ZIP64_CENTRAL_DIRECTORY_END = "PK", w.DATA_DESCRIPTOR = "PK\x07\b";
|
|
473
|
+
}, {}], 24: [function(_, T, w) {
|
|
474
|
+
var u = _("./GenericWorker"), o = _("../utils");
|
|
475
475
|
function n(h) {
|
|
476
|
-
|
|
476
|
+
u.call(this, "ConvertWorker to " + h), this.destType = h;
|
|
477
477
|
}
|
|
478
|
-
|
|
479
|
-
this.push({ data:
|
|
480
|
-
},
|
|
481
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(_,
|
|
482
|
-
var
|
|
478
|
+
o.inherits(n, u), n.prototype.processChunk = function(h) {
|
|
479
|
+
this.push({ data: o.transformTo(this.destType, h.data), meta: h.meta });
|
|
480
|
+
}, T.exports = n;
|
|
481
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(_, T, w) {
|
|
482
|
+
var u = _("./GenericWorker"), o = _("../crc32");
|
|
483
483
|
function n() {
|
|
484
|
-
|
|
484
|
+
u.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
485
485
|
}
|
|
486
|
-
_("../utils").inherits(n,
|
|
487
|
-
this.streamInfo.crc32 =
|
|
488
|
-
},
|
|
489
|
-
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(_,
|
|
490
|
-
var
|
|
486
|
+
_("../utils").inherits(n, u), n.prototype.processChunk = function(h) {
|
|
487
|
+
this.streamInfo.crc32 = o(h.data, this.streamInfo.crc32 || 0), this.push(h);
|
|
488
|
+
}, T.exports = n;
|
|
489
|
+
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(_, T, w) {
|
|
490
|
+
var u = _("../utils"), o = _("./GenericWorker");
|
|
491
491
|
function n(h) {
|
|
492
|
-
|
|
492
|
+
o.call(this, "DataLengthProbe for " + h), this.propName = h, this.withStreamInfo(h, 0);
|
|
493
493
|
}
|
|
494
|
-
|
|
494
|
+
u.inherits(n, o), n.prototype.processChunk = function(h) {
|
|
495
495
|
if (h) {
|
|
496
496
|
var g = this.streamInfo[this.propName] || 0;
|
|
497
497
|
this.streamInfo[this.propName] = g + h.data.length;
|
|
498
498
|
}
|
|
499
|
-
|
|
500
|
-
},
|
|
501
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(_,
|
|
502
|
-
var
|
|
499
|
+
o.prototype.processChunk.call(this, h);
|
|
500
|
+
}, T.exports = n;
|
|
501
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(_, T, w) {
|
|
502
|
+
var u = _("../utils"), o = _("./GenericWorker");
|
|
503
503
|
function n(h) {
|
|
504
|
-
|
|
504
|
+
o.call(this, "DataWorker");
|
|
505
505
|
var g = this;
|
|
506
506
|
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(y) {
|
|
507
|
-
g.dataIsReady = !0, g.data = y, g.max = y && y.length || 0, g.type =
|
|
507
|
+
g.dataIsReady = !0, g.data = y, g.max = y && y.length || 0, g.type = u.getTypeOf(y), g.isPaused || g._tickAndRepeat();
|
|
508
508
|
}, function(y) {
|
|
509
509
|
g.error(y);
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
|
-
|
|
513
|
-
|
|
512
|
+
u.inherits(n, o), n.prototype.cleanUp = function() {
|
|
513
|
+
o.prototype.cleanUp.call(this), this.data = null;
|
|
514
514
|
}, n.prototype.resume = function() {
|
|
515
|
-
return !!
|
|
515
|
+
return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, u.delay(this._tickAndRepeat, [], this)), !0);
|
|
516
516
|
}, n.prototype._tickAndRepeat = function() {
|
|
517
|
-
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (
|
|
517
|
+
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (u.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
|
|
518
518
|
}, n.prototype._tick = function() {
|
|
519
519
|
if (this.isPaused || this.isFinished) return !1;
|
|
520
520
|
var h = null, g = Math.min(this.max, this.index + 16384);
|
|
@@ -531,65 +531,65 @@ function Dt() {
|
|
|
531
531
|
h = this.data.slice(this.index, g);
|
|
532
532
|
}
|
|
533
533
|
return this.index = g, this.push({ data: h, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
534
|
-
},
|
|
535
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(_,
|
|
536
|
-
function o
|
|
537
|
-
this.name =
|
|
534
|
+
}, T.exports = n;
|
|
535
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(_, T, w) {
|
|
536
|
+
function u(o) {
|
|
537
|
+
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;
|
|
538
538
|
}
|
|
539
|
-
|
|
540
|
-
this.emit("data",
|
|
539
|
+
u.prototype = { push: function(o) {
|
|
540
|
+
this.emit("data", o);
|
|
541
541
|
}, end: function() {
|
|
542
542
|
if (this.isFinished) return !1;
|
|
543
543
|
this.flush();
|
|
544
544
|
try {
|
|
545
545
|
this.emit("end"), this.cleanUp(), this.isFinished = !0;
|
|
546
|
-
} catch (
|
|
547
|
-
this.emit("error",
|
|
546
|
+
} catch (o) {
|
|
547
|
+
this.emit("error", o);
|
|
548
548
|
}
|
|
549
549
|
return !0;
|
|
550
|
-
}, error: function(
|
|
551
|
-
return !this.isFinished && (this.isPaused ? this.generatedError =
|
|
552
|
-
}, on: function(
|
|
553
|
-
return this._listeners[
|
|
550
|
+
}, error: function(o) {
|
|
551
|
+
return !this.isFinished && (this.isPaused ? this.generatedError = o : (this.isFinished = !0, this.emit("error", o), this.previous && this.previous.error(o), this.cleanUp()), !0);
|
|
552
|
+
}, on: function(o, n) {
|
|
553
|
+
return this._listeners[o].push(n), this;
|
|
554
554
|
}, cleanUp: function() {
|
|
555
555
|
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
556
|
-
}, emit: function(
|
|
557
|
-
if (this._listeners[
|
|
558
|
-
}, pipe: function(
|
|
559
|
-
return
|
|
560
|
-
}, registerPrevious: function(
|
|
556
|
+
}, emit: function(o, n) {
|
|
557
|
+
if (this._listeners[o]) for (var h = 0; h < this._listeners[o].length; h++) this._listeners[o][h].call(this, n);
|
|
558
|
+
}, pipe: function(o) {
|
|
559
|
+
return o.registerPrevious(this);
|
|
560
|
+
}, registerPrevious: function(o) {
|
|
561
561
|
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
562
|
-
this.streamInfo =
|
|
562
|
+
this.streamInfo = o.streamInfo, this.mergeStreamInfo(), this.previous = o;
|
|
563
563
|
var n = this;
|
|
564
|
-
return
|
|
564
|
+
return o.on("data", function(h) {
|
|
565
565
|
n.processChunk(h);
|
|
566
|
-
}),
|
|
566
|
+
}), o.on("end", function() {
|
|
567
567
|
n.end();
|
|
568
|
-
}),
|
|
568
|
+
}), o.on("error", function(h) {
|
|
569
569
|
n.error(h);
|
|
570
570
|
}), this;
|
|
571
571
|
}, pause: function() {
|
|
572
572
|
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
|
|
573
573
|
}, resume: function() {
|
|
574
574
|
if (!this.isPaused || this.isFinished) return !1;
|
|
575
|
-
var
|
|
576
|
-
return this.generatedError && (this.error(this.generatedError),
|
|
575
|
+
var o = this.isPaused = !1;
|
|
576
|
+
return this.generatedError && (this.error(this.generatedError), o = !0), this.previous && this.previous.resume(), !o;
|
|
577
577
|
}, flush: function() {
|
|
578
|
-
}, processChunk: function(
|
|
579
|
-
this.push(
|
|
580
|
-
}, withStreamInfo: function(
|
|
581
|
-
return this.extraStreamInfo[
|
|
578
|
+
}, processChunk: function(o) {
|
|
579
|
+
this.push(o);
|
|
580
|
+
}, withStreamInfo: function(o, n) {
|
|
581
|
+
return this.extraStreamInfo[o] = n, this.mergeStreamInfo(), this;
|
|
582
582
|
}, mergeStreamInfo: function() {
|
|
583
|
-
for (var
|
|
583
|
+
for (var o in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, o) && (this.streamInfo[o] = this.extraStreamInfo[o]);
|
|
584
584
|
}, lock: function() {
|
|
585
585
|
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
586
586
|
this.isLocked = !0, this.previous && this.previous.lock();
|
|
587
587
|
}, toString: function() {
|
|
588
|
-
var
|
|
589
|
-
return this.previous ? this.previous + " -> " +
|
|
590
|
-
} },
|
|
591
|
-
}, {}], 29: [function(_,
|
|
592
|
-
var
|
|
588
|
+
var o = "Worker " + this.name;
|
|
589
|
+
return this.previous ? this.previous + " -> " + o : o;
|
|
590
|
+
} }, T.exports = u;
|
|
591
|
+
}, {}], 29: [function(_, T, w) {
|
|
592
|
+
var u = _("../utils"), o = _("./ConvertWorker"), n = _("./GenericWorker"), h = _("../base64"), g = _("../support"), y = _("../external"), p = null;
|
|
593
593
|
if (g.nodestream) try {
|
|
594
594
|
p = _("../nodejs/NodejsStreamOutputAdapter");
|
|
595
595
|
} catch {
|
|
@@ -597,20 +597,20 @@ function Dt() {
|
|
|
597
597
|
function b(d, r) {
|
|
598
598
|
return new y.Promise(function(l, a) {
|
|
599
599
|
var c = [], v = d._internalType, z = d._outputType, x = d._mimeType;
|
|
600
|
-
d.on("data", function(
|
|
601
|
-
c.push(
|
|
602
|
-
}).on("error", function(
|
|
603
|
-
c = [], a(
|
|
600
|
+
d.on("data", function(F, O) {
|
|
601
|
+
c.push(F), r && r(O);
|
|
602
|
+
}).on("error", function(F) {
|
|
603
|
+
c = [], a(F);
|
|
604
604
|
}).on("end", function() {
|
|
605
605
|
try {
|
|
606
|
-
var
|
|
606
|
+
var F = (function(O, L, I) {
|
|
607
607
|
switch (O) {
|
|
608
608
|
case "blob":
|
|
609
|
-
return
|
|
609
|
+
return u.newBlob(u.transformTo("arraybuffer", L), I);
|
|
610
610
|
case "base64":
|
|
611
611
|
return h.encode(L);
|
|
612
612
|
default:
|
|
613
|
-
return
|
|
613
|
+
return u.transformTo(O, L);
|
|
614
614
|
}
|
|
615
615
|
})(z, (function(O, L) {
|
|
616
616
|
var I, W = 0, q = null, m = 0;
|
|
@@ -629,7 +629,7 @@ function Dt() {
|
|
|
629
629
|
throw new Error("concat : unsupported type '" + O + "'");
|
|
630
630
|
}
|
|
631
631
|
})(v, c), x);
|
|
632
|
-
l(
|
|
632
|
+
l(F);
|
|
633
633
|
} catch (O) {
|
|
634
634
|
a(O);
|
|
635
635
|
}
|
|
@@ -648,7 +648,7 @@ function Dt() {
|
|
|
648
648
|
a = "string";
|
|
649
649
|
}
|
|
650
650
|
try {
|
|
651
|
-
this._internalType = a, this._outputType = r, this._mimeType = l,
|
|
651
|
+
this._internalType = a, this._outputType = r, this._mimeType = l, u.checkSupport(a), this._worker = d.pipe(new o(a)), d.lock();
|
|
652
652
|
} catch (c) {
|
|
653
653
|
this._worker = new n("error"), this._worker.error(c);
|
|
654
654
|
}
|
|
@@ -660,38 +660,38 @@ function Dt() {
|
|
|
660
660
|
return d === "data" ? this._worker.on(d, function(a) {
|
|
661
661
|
r.call(l, a.data, a.meta);
|
|
662
662
|
}) : this._worker.on(d, function() {
|
|
663
|
-
|
|
663
|
+
u.delay(r, arguments, l);
|
|
664
664
|
}), this;
|
|
665
665
|
}, resume: function() {
|
|
666
|
-
return
|
|
666
|
+
return u.delay(this._worker.resume, [], this._worker), this;
|
|
667
667
|
}, pause: function() {
|
|
668
668
|
return this._worker.pause(), this;
|
|
669
669
|
}, toNodejsStream: function(d) {
|
|
670
|
-
if (
|
|
670
|
+
if (u.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
671
671
|
return new p(this, { objectMode: this._outputType !== "nodebuffer" }, d);
|
|
672
|
-
} },
|
|
673
|
-
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(_,
|
|
674
|
-
if (
|
|
672
|
+
} }, T.exports = i;
|
|
673
|
+
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(_, T, w) {
|
|
674
|
+
if (w.base64 = !0, w.array = !0, w.string = !0, w.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", w.nodebuffer = typeof Buffer < "u", w.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") w.blob = !1;
|
|
675
675
|
else {
|
|
676
|
-
var
|
|
676
|
+
var u = new ArrayBuffer(0);
|
|
677
677
|
try {
|
|
678
|
-
|
|
678
|
+
w.blob = new Blob([u], { type: "application/zip" }).size === 0;
|
|
679
679
|
} catch {
|
|
680
680
|
try {
|
|
681
|
-
var
|
|
682
|
-
|
|
681
|
+
var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
682
|
+
o.append(u), w.blob = o.getBlob("application/zip").size === 0;
|
|
683
683
|
} catch {
|
|
684
|
-
|
|
684
|
+
w.blob = !1;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
try {
|
|
689
|
-
|
|
689
|
+
w.nodestream = !!_("readable-stream").Readable;
|
|
690
690
|
} catch {
|
|
691
|
-
|
|
691
|
+
w.nodestream = !1;
|
|
692
692
|
}
|
|
693
|
-
}, { "readable-stream": 16 }], 31: [function(_,
|
|
694
|
-
for (var
|
|
693
|
+
}, { "readable-stream": 16 }], 31: [function(_, T, w) {
|
|
694
|
+
for (var u = _("./utils"), o = _("./support"), n = _("./nodejsUtils"), h = _("./stream/GenericWorker"), g = new Array(256), y = 0; y < 256; y++) g[y] = 252 <= y ? 6 : 248 <= y ? 5 : 240 <= y ? 4 : 224 <= y ? 3 : 192 <= y ? 2 : 1;
|
|
695
695
|
g[254] = g[254] = 1;
|
|
696
696
|
function p() {
|
|
697
697
|
h.call(this, "utf-8 decode"), this.leftOver = null;
|
|
@@ -699,15 +699,15 @@ function Dt() {
|
|
|
699
699
|
function b() {
|
|
700
700
|
h.call(this, "utf-8 encode");
|
|
701
701
|
}
|
|
702
|
-
|
|
703
|
-
return
|
|
702
|
+
w.utf8encode = function(i) {
|
|
703
|
+
return o.nodebuffer ? n.newBufferFrom(i, "utf-8") : (function(d) {
|
|
704
704
|
var r, l, a, c, v, z = d.length, x = 0;
|
|
705
705
|
for (c = 0; c < z; c++) (64512 & (l = d.charCodeAt(c))) == 55296 && c + 1 < z && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (l = 65536 + (l - 55296 << 10) + (a - 56320), c++), x += l < 128 ? 1 : l < 2048 ? 2 : l < 65536 ? 3 : 4;
|
|
706
|
-
for (r =
|
|
706
|
+
for (r = o.uint8array ? new Uint8Array(x) : new Array(x), c = v = 0; v < x; c++) (64512 & (l = d.charCodeAt(c))) == 55296 && c + 1 < z && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (l = 65536 + (l - 55296 << 10) + (a - 56320), c++), l < 128 ? r[v++] = l : (l < 2048 ? r[v++] = 192 | l >>> 6 : (l < 65536 ? r[v++] = 224 | l >>> 12 : (r[v++] = 240 | l >>> 18, r[v++] = 128 | l >>> 12 & 63), r[v++] = 128 | l >>> 6 & 63), r[v++] = 128 | 63 & l);
|
|
707
707
|
return r;
|
|
708
708
|
})(i);
|
|
709
|
-
},
|
|
710
|
-
return
|
|
709
|
+
}, w.utf8decode = function(i) {
|
|
710
|
+
return o.nodebuffer ? u.transformTo("nodebuffer", i).toString("utf-8") : (function(d) {
|
|
711
711
|
var r, l, a, c, v = d.length, z = new Array(2 * v);
|
|
712
712
|
for (r = l = 0; r < v; ) if ((a = d[r++]) < 128) z[l++] = a;
|
|
713
713
|
else if (4 < (c = g[a])) z[l++] = 65533, r += c - 1;
|
|
@@ -715,12 +715,12 @@ function Dt() {
|
|
|
715
715
|
for (a &= c === 2 ? 31 : c === 3 ? 15 : 7; 1 < c && r < v; ) a = a << 6 | 63 & d[r++], c--;
|
|
716
716
|
1 < c ? z[l++] = 65533 : a < 65536 ? z[l++] = a : (a -= 65536, z[l++] = 55296 | a >> 10 & 1023, z[l++] = 56320 | 1023 & a);
|
|
717
717
|
}
|
|
718
|
-
return z.length !== l && (z.subarray ? z = z.subarray(0, l) : z.length = l),
|
|
719
|
-
})(i =
|
|
720
|
-
},
|
|
721
|
-
var d =
|
|
718
|
+
return z.length !== l && (z.subarray ? z = z.subarray(0, l) : z.length = l), u.applyFromCharCode(z);
|
|
719
|
+
})(i = u.transformTo(o.uint8array ? "uint8array" : "array", i));
|
|
720
|
+
}, u.inherits(p, h), p.prototype.processChunk = function(i) {
|
|
721
|
+
var d = u.transformTo(o.uint8array ? "uint8array" : "array", i.data);
|
|
722
722
|
if (this.leftOver && this.leftOver.length) {
|
|
723
|
-
if (
|
|
723
|
+
if (o.uint8array) {
|
|
724
724
|
var r = d;
|
|
725
725
|
(d = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), d.set(r, this.leftOver.length);
|
|
726
726
|
} else d = this.leftOver.concat(d);
|
|
@@ -731,14 +731,14 @@ function Dt() {
|
|
|
731
731
|
for ((v = v || c.length) > c.length && (v = c.length), z = v - 1; 0 <= z && (192 & c[z]) == 128; ) z--;
|
|
732
732
|
return z < 0 || z === 0 ? v : z + g[c[z]] > v ? z : v;
|
|
733
733
|
})(d), a = d;
|
|
734
|
-
l !== d.length && (
|
|
734
|
+
l !== d.length && (o.uint8array ? (a = d.subarray(0, l), this.leftOver = d.subarray(l, d.length)) : (a = d.slice(0, l), this.leftOver = d.slice(l, d.length))), this.push({ data: w.utf8decode(a), meta: i.meta });
|
|
735
735
|
}, p.prototype.flush = function() {
|
|
736
|
-
this.leftOver && this.leftOver.length && (this.push({ data:
|
|
737
|
-
},
|
|
738
|
-
this.push({ data:
|
|
739
|
-
},
|
|
740
|
-
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(_,
|
|
741
|
-
var
|
|
736
|
+
this.leftOver && this.leftOver.length && (this.push({ data: w.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
737
|
+
}, w.Utf8DecodeWorker = p, u.inherits(b, h), b.prototype.processChunk = function(i) {
|
|
738
|
+
this.push({ data: w.utf8encode(i.data), meta: i.meta });
|
|
739
|
+
}, w.Utf8EncodeWorker = b;
|
|
740
|
+
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(_, T, w) {
|
|
741
|
+
var u = _("./support"), o = _("./base64"), n = _("./nodejsUtils"), h = _("./external");
|
|
742
742
|
function g(r) {
|
|
743
743
|
return r;
|
|
744
744
|
}
|
|
@@ -746,8 +746,8 @@ function Dt() {
|
|
|
746
746
|
for (var a = 0; a < r.length; ++a) l[a] = 255 & r.charCodeAt(a);
|
|
747
747
|
return l;
|
|
748
748
|
}
|
|
749
|
-
_("setimmediate"),
|
|
750
|
-
|
|
749
|
+
_("setimmediate"), w.newBlob = function(r, l) {
|
|
750
|
+
w.checkSupport("blob");
|
|
751
751
|
try {
|
|
752
752
|
return new Blob([r], { type: l });
|
|
753
753
|
} catch {
|
|
@@ -769,19 +769,19 @@ function Dt() {
|
|
|
769
769
|
return l;
|
|
770
770
|
}, applyCanBeUsed: { uint8array: (function() {
|
|
771
771
|
try {
|
|
772
|
-
return
|
|
772
|
+
return u.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
773
773
|
} catch {
|
|
774
774
|
return !1;
|
|
775
775
|
}
|
|
776
776
|
})(), nodebuffer: (function() {
|
|
777
777
|
try {
|
|
778
|
-
return
|
|
778
|
+
return u.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
|
|
779
779
|
} catch {
|
|
780
780
|
return !1;
|
|
781
781
|
}
|
|
782
782
|
})() } };
|
|
783
783
|
function b(r) {
|
|
784
|
-
var l = 65536, a =
|
|
784
|
+
var l = 65536, a = w.getTypeOf(r), c = !0;
|
|
785
785
|
if (a === "uint8array" ? c = p.applyCanBeUsed.uint8array : a === "nodebuffer" && (c = p.applyCanBeUsed.nodebuffer), c) for (; 1 < l; ) try {
|
|
786
786
|
return p.stringifyByChunk(r, a, l);
|
|
787
787
|
} catch {
|
|
@@ -793,7 +793,7 @@ function Dt() {
|
|
|
793
793
|
for (var a = 0; a < r.length; a++) l[a] = r[a];
|
|
794
794
|
return l;
|
|
795
795
|
}
|
|
796
|
-
|
|
796
|
+
w.applyFromCharCode = b;
|
|
797
797
|
var d = {};
|
|
798
798
|
d.string = { string: g, array: function(r) {
|
|
799
799
|
return y(r, new Array(r.length));
|
|
@@ -829,56 +829,56 @@ function Dt() {
|
|
|
829
829
|
return d.nodebuffer.uint8array(r).buffer;
|
|
830
830
|
}, uint8array: function(r) {
|
|
831
831
|
return i(r, new Uint8Array(r.length));
|
|
832
|
-
}, nodebuffer: g },
|
|
832
|
+
}, nodebuffer: g }, w.transformTo = function(r, l) {
|
|
833
833
|
if (l = l || "", !r) return l;
|
|
834
|
-
|
|
835
|
-
var a =
|
|
834
|
+
w.checkSupport(r);
|
|
835
|
+
var a = w.getTypeOf(l);
|
|
836
836
|
return d[a][r](l);
|
|
837
|
-
},
|
|
837
|
+
}, w.resolve = function(r) {
|
|
838
838
|
for (var l = r.split("/"), a = [], c = 0; c < l.length; c++) {
|
|
839
839
|
var v = l[c];
|
|
840
840
|
v === "." || v === "" && c !== 0 && c !== l.length - 1 || (v === ".." ? a.pop() : a.push(v));
|
|
841
841
|
}
|
|
842
842
|
return a.join("/");
|
|
843
|
-
},
|
|
844
|
-
return typeof r == "string" ? "string" : Object.prototype.toString.call(r) === "[object Array]" ? "array" :
|
|
845
|
-
},
|
|
846
|
-
if (!
|
|
847
|
-
},
|
|
843
|
+
}, w.getTypeOf = function(r) {
|
|
844
|
+
return typeof r == "string" ? "string" : Object.prototype.toString.call(r) === "[object Array]" ? "array" : u.nodebuffer && n.isBuffer(r) ? "nodebuffer" : u.uint8array && r instanceof Uint8Array ? "uint8array" : u.arraybuffer && r instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
845
|
+
}, w.checkSupport = function(r) {
|
|
846
|
+
if (!u[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
|
|
847
|
+
}, w.MAX_VALUE_16BITS = 65535, w.MAX_VALUE_32BITS = -1, w.pretty = function(r) {
|
|
848
848
|
var l, a, c = "";
|
|
849
849
|
for (a = 0; a < (r || "").length; a++) c += "\\x" + ((l = r.charCodeAt(a)) < 16 ? "0" : "") + l.toString(16).toUpperCase();
|
|
850
850
|
return c;
|
|
851
|
-
},
|
|
851
|
+
}, w.delay = function(r, l, a) {
|
|
852
852
|
setImmediate(function() {
|
|
853
853
|
r.apply(a || null, l || []);
|
|
854
854
|
});
|
|
855
|
-
},
|
|
855
|
+
}, w.inherits = function(r, l) {
|
|
856
856
|
function a() {
|
|
857
857
|
}
|
|
858
858
|
a.prototype = l.prototype, r.prototype = new a();
|
|
859
|
-
},
|
|
859
|
+
}, w.extend = function() {
|
|
860
860
|
var r, l, a = {};
|
|
861
861
|
for (r = 0; r < arguments.length; r++) for (l in arguments[r]) Object.prototype.hasOwnProperty.call(arguments[r], l) && a[l] === void 0 && (a[l] = arguments[r][l]);
|
|
862
862
|
return a;
|
|
863
|
-
},
|
|
863
|
+
}, w.prepareContent = function(r, l, a, c, v) {
|
|
864
864
|
return h.Promise.resolve(l).then(function(z) {
|
|
865
|
-
return
|
|
865
|
+
return u.blob && (z instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(z)) !== -1) && typeof FileReader < "u" ? new h.Promise(function(x, F) {
|
|
866
866
|
var O = new FileReader();
|
|
867
867
|
O.onload = function(L) {
|
|
868
868
|
x(L.target.result);
|
|
869
869
|
}, O.onerror = function(L) {
|
|
870
|
-
|
|
870
|
+
F(L.target.error);
|
|
871
871
|
}, O.readAsArrayBuffer(z);
|
|
872
872
|
}) : z;
|
|
873
873
|
}).then(function(z) {
|
|
874
|
-
var x =
|
|
875
|
-
return x ? (x === "arraybuffer" ? z =
|
|
876
|
-
return y(
|
|
874
|
+
var x = w.getTypeOf(z);
|
|
875
|
+
return x ? (x === "arraybuffer" ? z = w.transformTo("uint8array", z) : x === "string" && (v ? z = o.decode(z) : a && c !== !0 && (z = (function(F) {
|
|
876
|
+
return y(F, u.uint8array ? new Uint8Array(F.length) : new Array(F.length));
|
|
877
877
|
})(z))), z) : h.Promise.reject(new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
878
878
|
});
|
|
879
879
|
};
|
|
880
|
-
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(_,
|
|
881
|
-
var
|
|
880
|
+
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(_, T, w) {
|
|
881
|
+
var u = _("./reader/readerFor"), o = _("./utils"), n = _("./signature"), h = _("./zipEntry"), g = _("./support");
|
|
882
882
|
function y(p) {
|
|
883
883
|
this.files = [], this.loadOptions = p;
|
|
884
884
|
}
|
|
@@ -886,7 +886,7 @@ function Dt() {
|
|
|
886
886
|
if (!this.reader.readAndCheckSignature(p)) {
|
|
887
887
|
this.reader.index -= 4;
|
|
888
888
|
var b = this.reader.readString(4);
|
|
889
|
-
throw new Error("Corrupted zip or bug: unexpected signature (" +
|
|
889
|
+
throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(b) + ", expected " + o.pretty(p) + ")");
|
|
890
890
|
}
|
|
891
891
|
}, isSignature: function(p, b) {
|
|
892
892
|
var i = this.reader.index;
|
|
@@ -895,7 +895,7 @@ function Dt() {
|
|
|
895
895
|
return this.reader.setIndex(i), d;
|
|
896
896
|
}, readBlockEndOfCentral: function() {
|
|
897
897
|
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);
|
|
898
|
-
var p = this.reader.readData(this.zipCommentLength), b = g.uint8array ? "uint8array" : "array", i =
|
|
898
|
+
var p = this.reader.readData(this.zipCommentLength), b = g.uint8array ? "uint8array" : "array", i = o.transformTo(b, p);
|
|
899
899
|
this.zipComment = this.loadOptions.decodeFileName(i);
|
|
900
900
|
}, readBlockZip64EndOfCentral: function() {
|
|
901
901
|
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 = {};
|
|
@@ -914,7 +914,7 @@ function Dt() {
|
|
|
914
914
|
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");
|
|
915
915
|
this.reader.setIndex(p);
|
|
916
916
|
var b = p;
|
|
917
|
-
if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber ===
|
|
917
|
+
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) {
|
|
918
918
|
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");
|
|
919
919
|
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");
|
|
920
920
|
this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
|
|
@@ -925,12 +925,12 @@ function Dt() {
|
|
|
925
925
|
if (0 < d) this.isSignature(b, n.CENTRAL_FILE_HEADER) || (this.reader.zero = d);
|
|
926
926
|
else if (d < 0) throw new Error("Corrupted zip: missing " + Math.abs(d) + " bytes.");
|
|
927
927
|
}, prepareReader: function(p) {
|
|
928
|
-
this.reader =
|
|
928
|
+
this.reader = u(p);
|
|
929
929
|
}, load: function(p) {
|
|
930
930
|
this.prepareReader(p), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
931
|
-
} },
|
|
932
|
-
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(_,
|
|
933
|
-
var
|
|
931
|
+
} }, T.exports = y;
|
|
932
|
+
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(_, T, w) {
|
|
933
|
+
var u = _("./reader/readerFor"), o = _("./utils"), n = _("./compressedObject"), h = _("./crc32"), g = _("./utf8"), y = _("./compressions"), p = _("./support");
|
|
934
934
|
function b(i, d) {
|
|
935
935
|
this.options = i, this.loadOptions = d;
|
|
936
936
|
}
|
|
@@ -944,7 +944,7 @@ function Dt() {
|
|
|
944
944
|
if ((d = (function(l) {
|
|
945
945
|
for (var a in y) if (Object.prototype.hasOwnProperty.call(y, a) && y[a].magic === l) return y[a];
|
|
946
946
|
return null;
|
|
947
|
-
})(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " +
|
|
947
|
+
})(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
|
|
948
948
|
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, d, i.readData(this.compressedSize));
|
|
949
949
|
}, readCentralPart: function(i) {
|
|
950
950
|
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);
|
|
@@ -957,8 +957,8 @@ function Dt() {
|
|
|
957
957
|
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);
|
|
958
958
|
}, parseZIP64ExtraField: function() {
|
|
959
959
|
if (this.extraFields[1]) {
|
|
960
|
-
var i =
|
|
961
|
-
this.uncompressedSize ===
|
|
960
|
+
var i = u(this.extraFields[1].value);
|
|
961
|
+
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));
|
|
962
962
|
}
|
|
963
963
|
}, readExtraFields: function(i) {
|
|
964
964
|
var d, r, l, a = i.index + this.extraFieldsLength;
|
|
@@ -971,37 +971,37 @@ function Dt() {
|
|
|
971
971
|
var d = this.findExtraFieldUnicodePath();
|
|
972
972
|
if (d !== null) this.fileNameStr = d;
|
|
973
973
|
else {
|
|
974
|
-
var r =
|
|
974
|
+
var r = o.transformTo(i, this.fileName);
|
|
975
975
|
this.fileNameStr = this.loadOptions.decodeFileName(r);
|
|
976
976
|
}
|
|
977
977
|
var l = this.findExtraFieldUnicodeComment();
|
|
978
978
|
if (l !== null) this.fileCommentStr = l;
|
|
979
979
|
else {
|
|
980
|
-
var a =
|
|
980
|
+
var a = o.transformTo(i, this.fileComment);
|
|
981
981
|
this.fileCommentStr = this.loadOptions.decodeFileName(a);
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
984
|
}, findExtraFieldUnicodePath: function() {
|
|
985
985
|
var i = this.extraFields[28789];
|
|
986
986
|
if (i) {
|
|
987
|
-
var d =
|
|
987
|
+
var d = u(i.value);
|
|
988
988
|
return d.readInt(1) !== 1 || h(this.fileName) !== d.readInt(4) ? null : g.utf8decode(d.readData(i.length - 5));
|
|
989
989
|
}
|
|
990
990
|
return null;
|
|
991
991
|
}, findExtraFieldUnicodeComment: function() {
|
|
992
992
|
var i = this.extraFields[25461];
|
|
993
993
|
if (i) {
|
|
994
|
-
var d =
|
|
994
|
+
var d = u(i.value);
|
|
995
995
|
return d.readInt(1) !== 1 || h(this.fileComment) !== d.readInt(4) ? null : g.utf8decode(d.readData(i.length - 5));
|
|
996
996
|
}
|
|
997
997
|
return null;
|
|
998
|
-
} },
|
|
999
|
-
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(_,
|
|
1000
|
-
function
|
|
998
|
+
} }, T.exports = b;
|
|
999
|
+
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(_, T, w) {
|
|
1000
|
+
function u(d, r, l) {
|
|
1001
1001
|
this.name = d, this.dir = l.dir, this.date = l.date, this.comment = l.comment, this.unixPermissions = l.unixPermissions, this.dosPermissions = l.dosPermissions, this._data = r, this._dataBinary = l.binary, this.options = { compression: l.compression, compressionOptions: l.compressionOptions };
|
|
1002
1002
|
}
|
|
1003
|
-
var
|
|
1004
|
-
|
|
1003
|
+
var o = _("./stream/StreamHelper"), n = _("./stream/DataWorker"), h = _("./utf8"), g = _("./compressedObject"), y = _("./stream/GenericWorker");
|
|
1004
|
+
u.prototype = { internalStream: function(d) {
|
|
1005
1005
|
var r = null, l = "string";
|
|
1006
1006
|
try {
|
|
1007
1007
|
if (!d) throw new Error("No output type specified.");
|
|
@@ -1012,7 +1012,7 @@ function Dt() {
|
|
|
1012
1012
|
} catch (v) {
|
|
1013
1013
|
(r = new y("error")).error(v);
|
|
1014
1014
|
}
|
|
1015
|
-
return new
|
|
1015
|
+
return new o(r, l, "");
|
|
1016
1016
|
}, async: function(d, r) {
|
|
1017
1017
|
return this.internalStream(d).accumulate(r);
|
|
1018
1018
|
}, nodeStream: function(d, r) {
|
|
@@ -1026,27 +1026,27 @@ function Dt() {
|
|
|
1026
1026
|
} };
|
|
1027
1027
|
for (var p = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], b = function() {
|
|
1028
1028
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1029
|
-
}, i = 0; i < p.length; i++)
|
|
1030
|
-
|
|
1031
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(_,
|
|
1032
|
-
(function(
|
|
1033
|
-
var
|
|
1029
|
+
}, i = 0; i < p.length; i++) u.prototype[p[i]] = b;
|
|
1030
|
+
T.exports = u;
|
|
1031
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(_, T, w) {
|
|
1032
|
+
(function(u) {
|
|
1033
|
+
var o, n, h = u.MutationObserver || u.WebKitMutationObserver;
|
|
1034
1034
|
if (h) {
|
|
1035
|
-
var g = 0, y = new h(d), p =
|
|
1036
|
-
y.observe(p, { characterData: !0 }),
|
|
1035
|
+
var g = 0, y = new h(d), p = u.document.createTextNode("");
|
|
1036
|
+
y.observe(p, { characterData: !0 }), o = function() {
|
|
1037
1037
|
p.data = g = ++g % 2;
|
|
1038
1038
|
};
|
|
1039
|
-
} else if (
|
|
1040
|
-
var r =
|
|
1039
|
+
} else if (u.setImmediate || u.MessageChannel === void 0) o = "document" in u && "onreadystatechange" in u.document.createElement("script") ? function() {
|
|
1040
|
+
var r = u.document.createElement("script");
|
|
1041
1041
|
r.onreadystatechange = function() {
|
|
1042
1042
|
d(), r.onreadystatechange = null, r.parentNode.removeChild(r), r = null;
|
|
1043
|
-
},
|
|
1043
|
+
}, u.document.documentElement.appendChild(r);
|
|
1044
1044
|
} : function() {
|
|
1045
1045
|
setTimeout(d, 0);
|
|
1046
1046
|
};
|
|
1047
1047
|
else {
|
|
1048
|
-
var b = new
|
|
1049
|
-
b.port1.onmessage = d,
|
|
1048
|
+
var b = new u.MessageChannel();
|
|
1049
|
+
b.port1.onmessage = d, o = function() {
|
|
1050
1050
|
b.port2.postMessage(0);
|
|
1051
1051
|
};
|
|
1052
1052
|
}
|
|
@@ -1060,24 +1060,24 @@ function Dt() {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
n = !1;
|
|
1062
1062
|
}
|
|
1063
|
-
|
|
1064
|
-
i.push(r) !== 1 || n ||
|
|
1063
|
+
T.exports = function(r) {
|
|
1064
|
+
i.push(r) !== 1 || n || o();
|
|
1065
1065
|
};
|
|
1066
1066
|
}).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1067
|
-
}, {}], 37: [function(_,
|
|
1068
|
-
var
|
|
1069
|
-
function
|
|
1067
|
+
}, {}], 37: [function(_, T, w) {
|
|
1068
|
+
var u = _("immediate");
|
|
1069
|
+
function o() {
|
|
1070
1070
|
}
|
|
1071
1071
|
var n = {}, h = ["REJECTED"], g = ["FULFILLED"], y = ["PENDING"];
|
|
1072
1072
|
function p(a) {
|
|
1073
1073
|
if (typeof a != "function") throw new TypeError("resolver must be a function");
|
|
1074
|
-
this.state = y, this.queue = [], this.outcome = void 0, a !==
|
|
1074
|
+
this.state = y, this.queue = [], this.outcome = void 0, a !== o && r(this, a);
|
|
1075
1075
|
}
|
|
1076
1076
|
function b(a, c, v) {
|
|
1077
1077
|
this.promise = a, typeof c == "function" && (this.onFulfilled = c, this.callFulfilled = this.otherCallFulfilled), typeof v == "function" && (this.onRejected = v, this.callRejected = this.otherCallRejected);
|
|
1078
1078
|
}
|
|
1079
1079
|
function i(a, c, v) {
|
|
1080
|
-
|
|
1080
|
+
u(function() {
|
|
1081
1081
|
var z;
|
|
1082
1082
|
try {
|
|
1083
1083
|
z = c(v);
|
|
@@ -1101,10 +1101,10 @@ function Dt() {
|
|
|
1101
1101
|
function x(O) {
|
|
1102
1102
|
v || (v = !0, n.resolve(a, O));
|
|
1103
1103
|
}
|
|
1104
|
-
var
|
|
1104
|
+
var F = l(function() {
|
|
1105
1105
|
c(x, z);
|
|
1106
1106
|
});
|
|
1107
|
-
|
|
1107
|
+
F.status === "error" && z(F.value);
|
|
1108
1108
|
}
|
|
1109
1109
|
function l(a, c) {
|
|
1110
1110
|
var v = {};
|
|
@@ -1115,7 +1115,7 @@ function Dt() {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
return v;
|
|
1117
1117
|
}
|
|
1118
|
-
(
|
|
1118
|
+
(T.exports = p).prototype.finally = function(a) {
|
|
1119
1119
|
if (typeof a != "function") return this;
|
|
1120
1120
|
var c = this.constructor;
|
|
1121
1121
|
return this.then(function(v) {
|
|
@@ -1131,7 +1131,7 @@ function Dt() {
|
|
|
1131
1131
|
return this.then(null, a);
|
|
1132
1132
|
}, p.prototype.then = function(a, c) {
|
|
1133
1133
|
if (typeof a != "function" && this.state === g || typeof c != "function" && this.state === h) return this;
|
|
1134
|
-
var v = new this.constructor(
|
|
1134
|
+
var v = new this.constructor(o);
|
|
1135
1135
|
return this.state !== y ? i(v, this.state === g ? a : c, this.outcome) : this.queue.push(new b(v, a, c)), v;
|
|
1136
1136
|
}, b.prototype.callFulfilled = function(a) {
|
|
1137
1137
|
n.resolve(this.promise, a);
|
|
@@ -1148,7 +1148,7 @@ function Dt() {
|
|
|
1148
1148
|
if (z) r(a, z);
|
|
1149
1149
|
else {
|
|
1150
1150
|
a.state = g, a.outcome = c;
|
|
1151
|
-
for (var x = -1,
|
|
1151
|
+
for (var x = -1, F = a.queue.length; ++x < F; ) a.queue[x].callFulfilled(c);
|
|
1152
1152
|
}
|
|
1153
1153
|
return a;
|
|
1154
1154
|
}, n.reject = function(a, c) {
|
|
@@ -1156,20 +1156,20 @@ function Dt() {
|
|
|
1156
1156
|
for (var v = -1, z = a.queue.length; ++v < z; ) a.queue[v].callRejected(c);
|
|
1157
1157
|
return a;
|
|
1158
1158
|
}, p.resolve = function(a) {
|
|
1159
|
-
return a instanceof this ? a : n.resolve(new this(
|
|
1159
|
+
return a instanceof this ? a : n.resolve(new this(o), a);
|
|
1160
1160
|
}, p.reject = function(a) {
|
|
1161
|
-
var c = new this(
|
|
1161
|
+
var c = new this(o);
|
|
1162
1162
|
return n.reject(c, a);
|
|
1163
1163
|
}, p.all = function(a) {
|
|
1164
1164
|
var c = this;
|
|
1165
1165
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1166
1166
|
var v = a.length, z = !1;
|
|
1167
1167
|
if (!v) return this.resolve([]);
|
|
1168
|
-
for (var x = new Array(v),
|
|
1168
|
+
for (var x = new Array(v), F = 0, O = -1, L = new this(o); ++O < v; ) I(a[O], O);
|
|
1169
1169
|
return L;
|
|
1170
1170
|
function I(W, q) {
|
|
1171
1171
|
c.resolve(W).then(function(m) {
|
|
1172
|
-
x[q] = m, ++
|
|
1172
|
+
x[q] = m, ++F !== v || z || (z = !0, n.resolve(L, x));
|
|
1173
1173
|
}, function(m) {
|
|
1174
1174
|
z || (z = !0, n.reject(L, m));
|
|
1175
1175
|
});
|
|
@@ -1179,29 +1179,29 @@ function Dt() {
|
|
|
1179
1179
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1180
1180
|
var v = a.length, z = !1;
|
|
1181
1181
|
if (!v) return this.resolve([]);
|
|
1182
|
-
for (var x = -1,
|
|
1183
|
-
z || (z = !0, n.resolve(
|
|
1182
|
+
for (var x = -1, F = new this(o); ++x < v; ) O = a[x], c.resolve(O).then(function(L) {
|
|
1183
|
+
z || (z = !0, n.resolve(F, L));
|
|
1184
1184
|
}, function(L) {
|
|
1185
|
-
z || (z = !0, n.reject(
|
|
1185
|
+
z || (z = !0, n.reject(F, L));
|
|
1186
1186
|
});
|
|
1187
1187
|
var O;
|
|
1188
|
-
return
|
|
1188
|
+
return F;
|
|
1189
1189
|
};
|
|
1190
|
-
}, { immediate: 36 }], 38: [function(_,
|
|
1191
|
-
var
|
|
1192
|
-
(0, _("./lib/utils/common").assign)(
|
|
1193
|
-
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(_,
|
|
1194
|
-
var
|
|
1190
|
+
}, { immediate: 36 }], 38: [function(_, T, w) {
|
|
1191
|
+
var u = {};
|
|
1192
|
+
(0, _("./lib/utils/common").assign)(u, _("./lib/deflate"), _("./lib/inflate"), _("./lib/zlib/constants")), T.exports = u;
|
|
1193
|
+
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(_, T, w) {
|
|
1194
|
+
var u = _("./zlib/deflate"), o = _("./utils/common"), n = _("./utils/strings"), h = _("./zlib/messages"), g = _("./zlib/zstream"), y = Object.prototype.toString, p = 0, b = -1, i = 0, d = 8;
|
|
1195
1195
|
function r(a) {
|
|
1196
1196
|
if (!(this instanceof r)) return new r(a);
|
|
1197
|
-
this.options =
|
|
1197
|
+
this.options = o.assign({ level: b, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, a || {});
|
|
1198
1198
|
var c = this.options;
|
|
1199
1199
|
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 g(), this.strm.avail_out = 0;
|
|
1200
|
-
var v =
|
|
1200
|
+
var v = u.deflateInit2(this.strm, c.level, c.method, c.windowBits, c.memLevel, c.strategy);
|
|
1201
1201
|
if (v !== p) throw new Error(h[v]);
|
|
1202
|
-
if (c.header &&
|
|
1202
|
+
if (c.header && u.deflateSetHeader(this.strm, c.header), c.dictionary) {
|
|
1203
1203
|
var z;
|
|
1204
|
-
if (z = typeof c.dictionary == "string" ? n.string2buf(c.dictionary) : y.call(c.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(c.dictionary) : c.dictionary, (v =
|
|
1204
|
+
if (z = typeof c.dictionary == "string" ? n.string2buf(c.dictionary) : y.call(c.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(c.dictionary) : c.dictionary, (v = u.deflateSetDictionary(this.strm, z)) !== p) throw new Error(h[v]);
|
|
1205
1205
|
this._dict_set = !0;
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
@@ -1211,33 +1211,33 @@ function Dt() {
|
|
|
1211
1211
|
return v.result;
|
|
1212
1212
|
}
|
|
1213
1213
|
r.prototype.push = function(a, c) {
|
|
1214
|
-
var v, z, x = this.strm,
|
|
1214
|
+
var v, z, x = this.strm, F = this.options.chunkSize;
|
|
1215
1215
|
if (this.ended) return !1;
|
|
1216
1216
|
z = 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;
|
|
1217
1217
|
do {
|
|
1218
|
-
if (x.avail_out === 0 && (x.output = new
|
|
1219
|
-
x.avail_out !== 0 && (x.avail_in !== 0 || z !== 4 && z !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(
|
|
1218
|
+
if (x.avail_out === 0 && (x.output = new o.Buf8(F), x.next_out = 0, x.avail_out = F), (v = u.deflate(x, z)) !== 1 && v !== p) return this.onEnd(v), !(this.ended = !0);
|
|
1219
|
+
x.avail_out !== 0 && (x.avail_in !== 0 || z !== 4 && z !== 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)));
|
|
1220
1220
|
} while ((0 < x.avail_in || x.avail_out === 0) && v !== 1);
|
|
1221
|
-
return z === 4 ? (v =
|
|
1221
|
+
return z === 4 ? (v = u.deflateEnd(this.strm), this.onEnd(v), this.ended = !0, v === p) : z !== 2 || (this.onEnd(p), !(x.avail_out = 0));
|
|
1222
1222
|
}, r.prototype.onData = function(a) {
|
|
1223
1223
|
this.chunks.push(a);
|
|
1224
1224
|
}, r.prototype.onEnd = function(a) {
|
|
1225
|
-
a === p && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result =
|
|
1226
|
-
},
|
|
1225
|
+
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;
|
|
1226
|
+
}, w.Deflate = r, w.deflate = l, w.deflateRaw = function(a, c) {
|
|
1227
1227
|
return (c = c || {}).raw = !0, l(a, c);
|
|
1228
|
-
},
|
|
1228
|
+
}, w.gzip = function(a, c) {
|
|
1229
1229
|
return (c = c || {}).gzip = !0, l(a, c);
|
|
1230
1230
|
};
|
|
1231
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(_,
|
|
1232
|
-
var
|
|
1231
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(_, T, w) {
|
|
1232
|
+
var u = _("./zlib/inflate"), o = _("./utils/common"), n = _("./utils/strings"), h = _("./zlib/constants"), g = _("./zlib/messages"), y = _("./zlib/zstream"), p = _("./zlib/gzheader"), b = Object.prototype.toString;
|
|
1233
1233
|
function i(r) {
|
|
1234
1234
|
if (!(this instanceof i)) return new i(r);
|
|
1235
|
-
this.options =
|
|
1235
|
+
this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, r || {});
|
|
1236
1236
|
var l = this.options;
|
|
1237
1237
|
l.raw && 0 <= l.windowBits && l.windowBits < 16 && (l.windowBits = -l.windowBits, l.windowBits === 0 && (l.windowBits = -15)), !(0 <= l.windowBits && l.windowBits < 16) || r && r.windowBits || (l.windowBits += 32), 15 < l.windowBits && l.windowBits < 48 && (15 & l.windowBits) == 0 && (l.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new y(), this.strm.avail_out = 0;
|
|
1238
|
-
var a =
|
|
1238
|
+
var a = u.inflateInit2(this.strm, l.windowBits);
|
|
1239
1239
|
if (a !== h.Z_OK) throw new Error(g[a]);
|
|
1240
|
-
this.header = new p(),
|
|
1240
|
+
this.header = new p(), u.inflateGetHeader(this.strm, this.header);
|
|
1241
1241
|
}
|
|
1242
1242
|
function d(r, l) {
|
|
1243
1243
|
var a = new i(l);
|
|
@@ -1245,24 +1245,24 @@ function Dt() {
|
|
|
1245
1245
|
return a.result;
|
|
1246
1246
|
}
|
|
1247
1247
|
i.prototype.push = function(r, l) {
|
|
1248
|
-
var a, c, v, z, x,
|
|
1248
|
+
var a, c, v, z, x, F, O = this.strm, L = this.options.chunkSize, I = this.options.dictionary, W = !1;
|
|
1249
1249
|
if (this.ended) return !1;
|
|
1250
1250
|
c = l === ~~l ? l : l === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof r == "string" ? O.input = n.binstring2buf(r) : b.call(r) === "[object ArrayBuffer]" ? O.input = new Uint8Array(r) : O.input = r, O.next_in = 0, O.avail_in = O.input.length;
|
|
1251
1251
|
do {
|
|
1252
|
-
if (O.avail_out === 0 && (O.output = new
|
|
1253
|
-
O.next_out && (O.avail_out !== 0 && a !== h.Z_STREAM_END && (O.avail_in !== 0 || c !== h.Z_FINISH && c !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (v = n.utf8border(O.output, O.next_out), z = O.next_out - v, x = n.buf2string(O.output, v), O.next_out = z, O.avail_out = L - z, z &&
|
|
1252
|
+
if (O.avail_out === 0 && (O.output = new o.Buf8(L), O.next_out = 0, O.avail_out = L), (a = u.inflate(O, h.Z_NO_FLUSH)) === h.Z_NEED_DICT && I && (F = typeof I == "string" ? n.string2buf(I) : b.call(I) === "[object ArrayBuffer]" ? new Uint8Array(I) : I, a = u.inflateSetDictionary(this.strm, F)), a === h.Z_BUF_ERROR && W === !0 && (a = h.Z_OK, W = !1), a !== h.Z_STREAM_END && a !== h.Z_OK) return this.onEnd(a), !(this.ended = !0);
|
|
1253
|
+
O.next_out && (O.avail_out !== 0 && a !== h.Z_STREAM_END && (O.avail_in !== 0 || c !== h.Z_FINISH && c !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (v = n.utf8border(O.output, O.next_out), z = O.next_out - v, x = n.buf2string(O.output, v), O.next_out = z, O.avail_out = L - z, z && o.arraySet(O.output, O.output, v, z, 0), this.onData(x)) : this.onData(o.shrinkBuf(O.output, O.next_out)))), O.avail_in === 0 && O.avail_out === 0 && (W = !0);
|
|
1254
1254
|
} while ((0 < O.avail_in || O.avail_out === 0) && a !== h.Z_STREAM_END);
|
|
1255
|
-
return a === h.Z_STREAM_END && (c = h.Z_FINISH), c === h.Z_FINISH ? (a =
|
|
1255
|
+
return a === h.Z_STREAM_END && (c = h.Z_FINISH), c === h.Z_FINISH ? (a = u.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === h.Z_OK) : c !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(O.avail_out = 0));
|
|
1256
1256
|
}, i.prototype.onData = function(r) {
|
|
1257
1257
|
this.chunks.push(r);
|
|
1258
1258
|
}, i.prototype.onEnd = function(r) {
|
|
1259
|
-
r === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result =
|
|
1260
|
-
},
|
|
1259
|
+
r === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
|
|
1260
|
+
}, w.Inflate = i, w.inflate = d, w.inflateRaw = function(r, l) {
|
|
1261
1261
|
return (l = l || {}).raw = !0, d(r, l);
|
|
1262
|
-
},
|
|
1263
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(_,
|
|
1264
|
-
var
|
|
1265
|
-
|
|
1262
|
+
}, w.ungzip = d;
|
|
1263
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(_, T, w) {
|
|
1264
|
+
var u = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1265
|
+
w.assign = function(h) {
|
|
1266
1266
|
for (var g = Array.prototype.slice.call(arguments, 1); g.length; ) {
|
|
1267
1267
|
var y = g.shift();
|
|
1268
1268
|
if (y) {
|
|
@@ -1271,10 +1271,10 @@ function Dt() {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
1273
|
return h;
|
|
1274
|
-
},
|
|
1274
|
+
}, w.shrinkBuf = function(h, g) {
|
|
1275
1275
|
return h.length === g ? h : h.subarray ? h.subarray(0, g) : (h.length = g, h);
|
|
1276
1276
|
};
|
|
1277
|
-
var
|
|
1277
|
+
var o = { arraySet: function(h, g, y, p, b) {
|
|
1278
1278
|
if (g.subarray && h.subarray) h.set(g.subarray(y, y + p), b);
|
|
1279
1279
|
else for (var i = 0; i < p; i++) h[b + i] = g[y + i];
|
|
1280
1280
|
}, flattenChunks: function(h) {
|
|
@@ -1287,38 +1287,38 @@ function Dt() {
|
|
|
1287
1287
|
}, flattenChunks: function(h) {
|
|
1288
1288
|
return [].concat.apply([], h);
|
|
1289
1289
|
} };
|
|
1290
|
-
|
|
1291
|
-
h ? (
|
|
1292
|
-
},
|
|
1293
|
-
}, {}], 42: [function(_,
|
|
1294
|
-
var
|
|
1290
|
+
w.setTyped = function(h) {
|
|
1291
|
+
h ? (w.Buf8 = Uint8Array, w.Buf16 = Uint16Array, w.Buf32 = Int32Array, w.assign(w, o)) : (w.Buf8 = Array, w.Buf16 = Array, w.Buf32 = Array, w.assign(w, n));
|
|
1292
|
+
}, w.setTyped(u);
|
|
1293
|
+
}, {}], 42: [function(_, T, w) {
|
|
1294
|
+
var u = _("./common"), o = !0, n = !0;
|
|
1295
1295
|
try {
|
|
1296
1296
|
String.fromCharCode.apply(null, [0]);
|
|
1297
1297
|
} catch {
|
|
1298
|
-
|
|
1298
|
+
o = !1;
|
|
1299
1299
|
}
|
|
1300
1300
|
try {
|
|
1301
1301
|
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
1302
1302
|
} catch {
|
|
1303
1303
|
n = !1;
|
|
1304
1304
|
}
|
|
1305
|
-
for (var h = new
|
|
1305
|
+
for (var h = new u.Buf8(256), g = 0; g < 256; g++) h[g] = 252 <= g ? 6 : 248 <= g ? 5 : 240 <= g ? 4 : 224 <= g ? 3 : 192 <= g ? 2 : 1;
|
|
1306
1306
|
function y(p, b) {
|
|
1307
|
-
if (b < 65537 && (p.subarray && n || !p.subarray &&
|
|
1307
|
+
if (b < 65537 && (p.subarray && n || !p.subarray && o)) return String.fromCharCode.apply(null, u.shrinkBuf(p, b));
|
|
1308
1308
|
for (var i = "", d = 0; d < b; d++) i += String.fromCharCode(p[d]);
|
|
1309
1309
|
return i;
|
|
1310
1310
|
}
|
|
1311
|
-
h[254] = h[254] = 1,
|
|
1311
|
+
h[254] = h[254] = 1, w.string2buf = function(p) {
|
|
1312
1312
|
var b, i, d, r, l, a = p.length, c = 0;
|
|
1313
1313
|
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;
|
|
1314
|
-
for (b = new
|
|
1314
|
+
for (b = new u.Buf8(c), r = l = 0; l < c; r++) (64512 & (i = p.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = p.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), i < 128 ? b[l++] = i : (i < 2048 ? b[l++] = 192 | i >>> 6 : (i < 65536 ? b[l++] = 224 | i >>> 12 : (b[l++] = 240 | i >>> 18, b[l++] = 128 | i >>> 12 & 63), b[l++] = 128 | i >>> 6 & 63), b[l++] = 128 | 63 & i);
|
|
1315
1315
|
return b;
|
|
1316
|
-
},
|
|
1316
|
+
}, w.buf2binstring = function(p) {
|
|
1317
1317
|
return y(p, p.length);
|
|
1318
|
-
},
|
|
1319
|
-
for (var b = new
|
|
1318
|
+
}, w.binstring2buf = function(p) {
|
|
1319
|
+
for (var b = new u.Buf8(p.length), i = 0, d = b.length; i < d; i++) b[i] = p.charCodeAt(i);
|
|
1320
1320
|
return b;
|
|
1321
|
-
},
|
|
1321
|
+
}, w.buf2string = function(p, b) {
|
|
1322
1322
|
var i, d, r, l, a = b || p.length, c = new Array(2 * a);
|
|
1323
1323
|
for (i = d = 0; i < a; ) if ((r = p[i++]) < 128) c[d++] = r;
|
|
1324
1324
|
else if (4 < (l = h[r])) c[d++] = 65533, i += l - 1;
|
|
@@ -1327,38 +1327,38 @@ function Dt() {
|
|
|
1327
1327
|
1 < l ? c[d++] = 65533 : r < 65536 ? c[d++] = r : (r -= 65536, c[d++] = 55296 | r >> 10 & 1023, c[d++] = 56320 | 1023 & r);
|
|
1328
1328
|
}
|
|
1329
1329
|
return y(c, d);
|
|
1330
|
-
},
|
|
1330
|
+
}, w.utf8border = function(p, b) {
|
|
1331
1331
|
var i;
|
|
1332
1332
|
for ((b = b || p.length) > p.length && (b = p.length), i = b - 1; 0 <= i && (192 & p[i]) == 128; ) i--;
|
|
1333
1333
|
return i < 0 || i === 0 ? b : i + h[p[i]] > b ? i : b;
|
|
1334
1334
|
};
|
|
1335
|
-
}, { "./common": 41 }], 43: [function(_,
|
|
1336
|
-
|
|
1337
|
-
for (var g = 65535 &
|
|
1338
|
-
for (n -= p = 2e3 < n ? 2e3 : n; y = y + (g = g +
|
|
1335
|
+
}, { "./common": 41 }], 43: [function(_, T, w) {
|
|
1336
|
+
T.exports = function(u, o, n, h) {
|
|
1337
|
+
for (var g = 65535 & u | 0, y = u >>> 16 & 65535 | 0, p = 0; n !== 0; ) {
|
|
1338
|
+
for (n -= p = 2e3 < n ? 2e3 : n; y = y + (g = g + o[h++] | 0) | 0, --p; ) ;
|
|
1339
1339
|
g %= 65521, y %= 65521;
|
|
1340
1340
|
}
|
|
1341
1341
|
return g | y << 16 | 0;
|
|
1342
1342
|
};
|
|
1343
|
-
}, {}], 44: [function(_,
|
|
1344
|
-
|
|
1345
|
-
}, {}], 45: [function(_,
|
|
1346
|
-
var
|
|
1347
|
-
for (var
|
|
1348
|
-
|
|
1349
|
-
for (var g = 0; g < 8; g++)
|
|
1350
|
-
n[h] =
|
|
1343
|
+
}, {}], 44: [function(_, T, w) {
|
|
1344
|
+
T.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 };
|
|
1345
|
+
}, {}], 45: [function(_, T, w) {
|
|
1346
|
+
var u = (function() {
|
|
1347
|
+
for (var o, n = [], h = 0; h < 256; h++) {
|
|
1348
|
+
o = h;
|
|
1349
|
+
for (var g = 0; g < 8; g++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
|
|
1350
|
+
n[h] = o;
|
|
1351
1351
|
}
|
|
1352
1352
|
return n;
|
|
1353
1353
|
})();
|
|
1354
|
-
|
|
1355
|
-
var y =
|
|
1356
|
-
|
|
1357
|
-
for (var b = g; b < p; b++)
|
|
1358
|
-
return -1 ^
|
|
1354
|
+
T.exports = function(o, n, h, g) {
|
|
1355
|
+
var y = u, p = g + h;
|
|
1356
|
+
o ^= -1;
|
|
1357
|
+
for (var b = g; b < p; b++) o = o >>> 8 ^ y[255 & (o ^ n[b])];
|
|
1358
|
+
return -1 ^ o;
|
|
1359
1359
|
};
|
|
1360
|
-
}, {}], 46: [function(_,
|
|
1361
|
-
var
|
|
1360
|
+
}, {}], 46: [function(_, T, w) {
|
|
1361
|
+
var u, o = _("../utils/common"), n = _("./trees"), h = _("./adler32"), g = _("./crc32"), y = _("./messages"), p = 0, b = 4, i = 0, d = -2, r = -1, l = 4, a = 2, c = 8, v = 9, z = 286, x = 30, F = 19, O = 2 * z + 1, L = 15, I = 3, W = 258, q = W + I + 1, m = 42, B = 113, e = 1, D = 2, J = 3, P = 4;
|
|
1362
1362
|
function $(t, R) {
|
|
1363
1363
|
return t.msg = y[R], R;
|
|
1364
1364
|
}
|
|
@@ -1370,7 +1370,7 @@ function Dt() {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
function E(t) {
|
|
1372
1372
|
var R = t.state, A = R.pending;
|
|
1373
|
-
A > t.avail_out && (A = t.avail_out), A !== 0 && (
|
|
1373
|
+
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));
|
|
1374
1374
|
}
|
|
1375
1375
|
function C(t, R) {
|
|
1376
1376
|
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);
|
|
@@ -1382,32 +1382,32 @@ function Dt() {
|
|
|
1382
1382
|
t.pending_buf[t.pending++] = R >>> 8 & 255, t.pending_buf[t.pending++] = 255 & R;
|
|
1383
1383
|
}
|
|
1384
1384
|
function H(t, R) {
|
|
1385
|
-
var A, f, s = t.max_chain_length,
|
|
1385
|
+
var A, f, s = t.max_chain_length, k = t.strstart, N = t.prev_length, U = t.nice_match, S = t.strstart > t.w_size - q ? t.strstart - (t.w_size - q) : 0, Z = t.window, K = t.w_mask, M = t.prev, Y = t.strstart + W, rt = Z[k + N - 1], tt = Z[k + N];
|
|
1386
1386
|
t.prev_length >= t.good_match && (s >>= 2), U > t.lookahead && (U = t.lookahead);
|
|
1387
1387
|
do
|
|
1388
|
-
if (Z[(A = R) +
|
|
1389
|
-
|
|
1388
|
+
if (Z[(A = R) + N] === tt && Z[A + N - 1] === rt && Z[A] === Z[k] && Z[++A] === Z[k + 1]) {
|
|
1389
|
+
k += 2, A++;
|
|
1390
1390
|
do
|
|
1391
1391
|
;
|
|
1392
|
-
while (Z[++
|
|
1393
|
-
if (f = W - (Y -
|
|
1394
|
-
if (t.match_start = R, U <= (
|
|
1395
|
-
rt = Z[
|
|
1392
|
+
while (Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && k < Y);
|
|
1393
|
+
if (f = W - (Y - k), k = Y - W, N < f) {
|
|
1394
|
+
if (t.match_start = R, U <= (N = f)) break;
|
|
1395
|
+
rt = Z[k + N - 1], tt = Z[k + N];
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
while ((R = M[R & K]) > S && --s != 0);
|
|
1399
|
-
return
|
|
1399
|
+
return N <= t.lookahead ? N : t.lookahead;
|
|
1400
1400
|
}
|
|
1401
1401
|
function nt(t) {
|
|
1402
|
-
var R, A, f, s,
|
|
1402
|
+
var R, A, f, s, k, N, U, S, Z, K, M = t.w_size;
|
|
1403
1403
|
do {
|
|
1404
1404
|
if (s = t.window_size - t.lookahead - t.strstart, t.strstart >= M + (M - q)) {
|
|
1405
|
-
for (
|
|
1405
|
+
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; ) ;
|
|
1406
1406
|
for (R = A = M; f = t.prev[--R], t.prev[R] = M <= f ? f - M : 0, --A; ) ;
|
|
1407
1407
|
s += M;
|
|
1408
1408
|
}
|
|
1409
1409
|
if (t.strm.avail_in === 0) break;
|
|
1410
|
-
if (
|
|
1410
|
+
if (N = t.strm, U = t.window, S = t.strstart + t.lookahead, Z = s, K = void 0, K = N.avail_in, Z < K && (K = Z), A = K === 0 ? 0 : (N.avail_in -= K, o.arraySet(U, N.input, N.next_in, K, S), N.state.wrap === 1 ? N.adler = h(N.adler, U, K, S) : N.state.wrap === 2 && (N.adler = g(N.adler, U, K, S)), N.next_in += K, N.total_in += K, K), t.lookahead += A, t.lookahead + t.insert >= I) for (k = t.strstart - t.insert, t.ins_h = t.window[k], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[k + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[k + I - 1]) & t.hash_mask, t.prev[k & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = k, k++, t.insert--, !(t.lookahead + t.insert < I)); ) ;
|
|
1411
1411
|
} while (t.lookahead < q && t.strm.avail_in !== 0);
|
|
1412
1412
|
}
|
|
1413
1413
|
function ot(t, R) {
|
|
@@ -1423,7 +1423,7 @@ function Dt() {
|
|
|
1423
1423
|
else f = n._tr_tally(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
|
|
1424
1424
|
if (f && (C(t, !1), t.strm.avail_out === 0)) return e;
|
|
1425
1425
|
}
|
|
1426
|
-
return t.insert = t.strstart < I - 1 ? t.strstart : I - 1, R === b ? (C(t, !0), t.strm.avail_out === 0 ? J : P) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e :
|
|
1426
|
+
return t.insert = t.strstart < I - 1 ? t.strstart : I - 1, R === b ? (C(t, !0), t.strm.avail_out === 0 ? J : P) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e : D;
|
|
1427
1427
|
}
|
|
1428
1428
|
function Q(t, R) {
|
|
1429
1429
|
for (var A, f, s; ; ) {
|
|
@@ -1438,13 +1438,13 @@ function Dt() {
|
|
|
1438
1438
|
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;
|
|
1439
1439
|
} else t.match_available = 1, t.strstart++, t.lookahead--;
|
|
1440
1440
|
}
|
|
1441
|
-
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 === b ? (C(t, !0), t.strm.avail_out === 0 ? J : P) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e :
|
|
1441
|
+
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 === b ? (C(t, !0), t.strm.avail_out === 0 ? J : P) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e : D;
|
|
1442
1442
|
}
|
|
1443
1443
|
function et(t, R, A, f, s) {
|
|
1444
1444
|
this.good_length = t, this.max_lazy = R, this.nice_length = A, this.max_chain = f, this.func = s;
|
|
1445
1445
|
}
|
|
1446
1446
|
function st() {
|
|
1447
|
-
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
|
|
1447
|
+
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 * F + 1)), V(this.dyn_ltree), V(this.dyn_dtree), V(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(L + 1), this.heap = new o.Buf16(2 * z + 1), V(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * z + 1), V(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;
|
|
1448
1448
|
}
|
|
1449
1449
|
function it(t) {
|
|
1450
1450
|
var R;
|
|
@@ -1453,18 +1453,18 @@ function Dt() {
|
|
|
1453
1453
|
function lt(t) {
|
|
1454
1454
|
var R = it(t);
|
|
1455
1455
|
return R === i && (function(A) {
|
|
1456
|
-
A.window_size = 2 * A.w_size, V(A.head), A.max_lazy_match =
|
|
1456
|
+
A.window_size = 2 * A.w_size, V(A.head), A.max_lazy_match = u[A.level].max_lazy, A.good_match = u[A.level].good_length, A.nice_match = u[A.level].nice_length, A.max_chain_length = u[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;
|
|
1457
1457
|
})(t.state), R;
|
|
1458
1458
|
}
|
|
1459
|
-
function ht(t, R, A, f, s,
|
|
1459
|
+
function ht(t, R, A, f, s, k) {
|
|
1460
1460
|
if (!t) return d;
|
|
1461
|
-
var
|
|
1462
|
-
if (R === r && (R = 6), f < 0 ? (
|
|
1461
|
+
var N = 1;
|
|
1462
|
+
if (R === r && (R = 6), f < 0 ? (N = 0, f = -f) : 15 < f && (N = 2, f -= 16), s < 1 || v < s || A !== c || f < 8 || 15 < f || R < 0 || 9 < R || k < 0 || l < k) return $(t, d);
|
|
1463
1463
|
f === 8 && (f = 9);
|
|
1464
1464
|
var U = new st();
|
|
1465
|
-
return (t.state = U).strm = t, U.wrap =
|
|
1465
|
+
return (t.state = U).strm = t, U.wrap = N, U.gzhead = null, U.w_bits = f, U.w_size = 1 << U.w_bits, U.w_mask = U.w_size - 1, U.hash_bits = s + 7, U.hash_size = 1 << U.hash_bits, U.hash_mask = U.hash_size - 1, U.hash_shift = ~~((U.hash_bits + I - 1) / I), U.window = new o.Buf8(2 * U.w_size), U.head = new o.Buf16(U.hash_size), U.prev = new o.Buf16(U.w_size), U.lit_bufsize = 1 << s + 6, U.pending_buf_size = 4 * U.lit_bufsize, U.pending_buf = new o.Buf8(U.pending_buf_size), U.d_buf = 1 * U.lit_bufsize, U.l_buf = 3 * U.lit_bufsize, U.level = R, U.strategy = k, U.method = A, lt(t);
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1467
|
+
u = [new et(0, 0, 0, 0, function(t, R) {
|
|
1468
1468
|
var A = 65535;
|
|
1469
1469
|
for (A > t.pending_buf_size - 5 && (A = t.pending_buf_size - 5); ; ) {
|
|
1470
1470
|
if (t.lookahead <= 1) {
|
|
@@ -1476,18 +1476,18 @@ function Dt() {
|
|
|
1476
1476
|
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 - q && (C(t, !1), t.strm.avail_out === 0)) return e;
|
|
1477
1477
|
}
|
|
1478
1478
|
return t.insert = 0, R === b ? (C(t, !0), t.strm.avail_out === 0 ? J : P) : (t.strstart > t.block_start && (C(t, !1), t.strm.avail_out), e);
|
|
1479
|
-
}), 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)],
|
|
1479
|
+
}), 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)], w.deflateInit = function(t, R) {
|
|
1480
1480
|
return ht(t, R, c, 15, 8, 0);
|
|
1481
|
-
},
|
|
1481
|
+
}, w.deflateInit2 = ht, w.deflateReset = lt, w.deflateResetKeep = it, w.deflateSetHeader = function(t, R) {
|
|
1482
1482
|
return t && t.state ? t.state.wrap !== 2 ? d : (t.state.gzhead = R, i) : d;
|
|
1483
|
-
},
|
|
1484
|
-
var A, f, s,
|
|
1483
|
+
}, w.deflate = function(t, R) {
|
|
1484
|
+
var A, f, s, k;
|
|
1485
1485
|
if (!t || !t.state || 5 < R || R < 0) return t ? $(t, d) : d;
|
|
1486
1486
|
if (f = t.state, !t.output || !t.input && t.avail_in !== 0 || f.status === 666 && R !== b) return $(t, t.avail_out === 0 ? -5 : d);
|
|
1487
1487
|
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 = g(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);
|
|
1488
1488
|
else {
|
|
1489
|
-
var
|
|
1490
|
-
|
|
1489
|
+
var N = c + (f.w_bits - 8 << 4) << 8;
|
|
1490
|
+
N |= (2 <= f.strategy || f.level < 2 ? 0 : f.level < 6 ? 1 : f.level === 6 ? 2 : 3) << 6, f.strstart !== 0 && (N |= 32), N += 31 - N % 31, f.status = B, G(f, N), f.strstart !== 0 && (G(f, t.adler >>> 16), G(f, 65535 & t.adler)), t.adler = 1;
|
|
1491
1491
|
}
|
|
1492
1492
|
if (f.status === 69) if (f.gzhead.extra) {
|
|
1493
1493
|
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 = g(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++;
|
|
@@ -1497,23 +1497,23 @@ function Dt() {
|
|
|
1497
1497
|
s = f.pending;
|
|
1498
1498
|
do {
|
|
1499
1499
|
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), E(t), s = f.pending, f.pending === f.pending_buf_size)) {
|
|
1500
|
-
|
|
1500
|
+
k = 1;
|
|
1501
1501
|
break;
|
|
1502
1502
|
}
|
|
1503
|
-
|
|
1504
|
-
} while (
|
|
1505
|
-
f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)),
|
|
1503
|
+
k = f.gzindex < f.gzhead.name.length ? 255 & f.gzhead.name.charCodeAt(f.gzindex++) : 0, X(f, k);
|
|
1504
|
+
} while (k !== 0);
|
|
1505
|
+
f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), k === 0 && (f.gzindex = 0, f.status = 91);
|
|
1506
1506
|
} else f.status = 91;
|
|
1507
1507
|
if (f.status === 91) if (f.gzhead.comment) {
|
|
1508
1508
|
s = f.pending;
|
|
1509
1509
|
do {
|
|
1510
1510
|
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), E(t), s = f.pending, f.pending === f.pending_buf_size)) {
|
|
1511
|
-
|
|
1511
|
+
k = 1;
|
|
1512
1512
|
break;
|
|
1513
1513
|
}
|
|
1514
|
-
|
|
1515
|
-
} while (
|
|
1516
|
-
f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)),
|
|
1514
|
+
k = f.gzindex < f.gzhead.comment.length ? 255 & f.gzhead.comment.charCodeAt(f.gzindex++) : 0, X(f, k);
|
|
1515
|
+
} while (k !== 0);
|
|
1516
|
+
f.gzhead.hcrc && f.pending > s && (t.adler = g(t.adler, f.pending_buf, f.pending - s, s)), k === 0 && (f.status = 103);
|
|
1517
1517
|
} else f.status = 103;
|
|
1518
1518
|
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) {
|
|
1519
1519
|
if (E(t), t.avail_out === 0) return f.last_flush = -1, i;
|
|
@@ -1528,7 +1528,7 @@ function Dt() {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
if (S.match_length = 0, K = n._tr_tally(S, 0, S.window[S.strstart]), S.lookahead--, S.strstart++, K && (C(S, !1), S.strm.avail_out === 0)) return e;
|
|
1530
1530
|
}
|
|
1531
|
-
return S.insert = 0, Z === b ? (C(S, !0), S.strm.avail_out === 0 ? J : P) : S.last_lit && (C(S, !1), S.strm.avail_out === 0) ? e :
|
|
1531
|
+
return S.insert = 0, Z === b ? (C(S, !0), S.strm.avail_out === 0 ? J : P) : S.last_lit && (C(S, !1), S.strm.avail_out === 0) ? e : D;
|
|
1532
1532
|
})(f, R) : f.strategy === 3 ? (function(S, Z) {
|
|
1533
1533
|
for (var K, M, Y, rt, tt = S.window; ; ) {
|
|
1534
1534
|
if (S.lookahead <= W) {
|
|
@@ -1544,36 +1544,36 @@ function Dt() {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
if (S.match_length >= I ? (K = n._tr_tally(S, 1, S.match_length - I), S.lookahead -= S.match_length, S.strstart += S.match_length, S.match_length = 0) : (K = n._tr_tally(S, 0, S.window[S.strstart]), S.lookahead--, S.strstart++), K && (C(S, !1), S.strm.avail_out === 0)) return e;
|
|
1546
1546
|
}
|
|
1547
|
-
return S.insert = 0, Z === b ? (C(S, !0), S.strm.avail_out === 0 ? J : P) : S.last_lit && (C(S, !1), S.strm.avail_out === 0) ? e :
|
|
1548
|
-
})(f, R) :
|
|
1547
|
+
return S.insert = 0, Z === b ? (C(S, !0), S.strm.avail_out === 0 ? J : P) : S.last_lit && (C(S, !1), S.strm.avail_out === 0) ? e : D;
|
|
1548
|
+
})(f, R) : u[f.level].func(f, R);
|
|
1549
1549
|
if (U !== J && U !== P || (f.status = 666), U === e || U === J) return t.avail_out === 0 && (f.last_flush = -1), i;
|
|
1550
|
-
if (U ===
|
|
1550
|
+
if (U === D && (R === 1 ? n._tr_align(f) : R !== 5 && (n._tr_stored_block(f, 0, 0, !1), R === 3 && (V(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;
|
|
1551
1551
|
}
|
|
1552
1552
|
return R !== b ? 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);
|
|
1553
|
-
},
|
|
1553
|
+
}, w.deflateEnd = function(t) {
|
|
1554
1554
|
var R;
|
|
1555
1555
|
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;
|
|
1556
|
-
},
|
|
1557
|
-
var A, f, s,
|
|
1558
|
-
if (!t || !t.state || (
|
|
1559
|
-
for (
|
|
1556
|
+
}, w.deflateSetDictionary = function(t, R) {
|
|
1557
|
+
var A, f, s, k, N, U, S, Z, K = R.length;
|
|
1558
|
+
if (!t || !t.state || (k = (A = t.state).wrap) === 2 || k === 1 && A.status !== m || A.lookahead) return d;
|
|
1559
|
+
for (k === 1 && (t.adler = h(t.adler, R, K, 0)), A.wrap = 0, K >= A.w_size && (k === 0 && (V(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), N = t.avail_in, U = t.next_in, S = t.input, t.avail_in = K, t.next_in = 0, t.input = R, nt(A); A.lookahead >= I; ) {
|
|
1560
1560
|
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; ) ;
|
|
1561
1561
|
A.strstart = f, A.lookahead = I - 1, nt(A);
|
|
1562
1562
|
}
|
|
1563
|
-
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 = U, t.input = S, t.avail_in =
|
|
1564
|
-
},
|
|
1565
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(_,
|
|
1566
|
-
|
|
1563
|
+
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 = U, t.input = S, t.avail_in = N, A.wrap = k, i;
|
|
1564
|
+
}, w.deflateInfo = "pako deflate (from Nodeca project)";
|
|
1565
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(_, T, w) {
|
|
1566
|
+
T.exports = function() {
|
|
1567
1567
|
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;
|
|
1568
1568
|
};
|
|
1569
|
-
}, {}], 48: [function(_,
|
|
1570
|
-
|
|
1571
|
-
var n, h, g, y, p, b, i, d, r, l, a, c, v, z, x,
|
|
1572
|
-
n =
|
|
1569
|
+
}, {}], 48: [function(_, T, w) {
|
|
1570
|
+
T.exports = function(u, o) {
|
|
1571
|
+
var n, h, g, y, p, b, i, d, r, l, a, c, v, z, x, F, O, L, I, W, q, m, B, e, D;
|
|
1572
|
+
n = u.state, h = u.next_in, e = u.input, g = h + (u.avail_in - 5), y = u.next_out, D = u.output, p = y - (o - u.avail_out), b = y + (u.avail_out - 257), i = n.dmax, d = n.wsize, r = n.whave, l = n.wnext, a = n.window, c = n.hold, v = n.bits, z = n.lencode, x = n.distcode, F = (1 << n.lenbits) - 1, O = (1 << n.distbits) - 1;
|
|
1573
1573
|
t: do {
|
|
1574
|
-
v < 15 && (c += e[h++] << v, v += 8, c += e[h++] << v, v += 8), L = z[c &
|
|
1574
|
+
v < 15 && (c += e[h++] << v, v += 8, c += e[h++] << v, v += 8), L = z[c & F];
|
|
1575
1575
|
e: for (; ; ) {
|
|
1576
|
-
if (c >>>= I = L >>> 24, v -= I, (I = L >>> 16 & 255) === 0)
|
|
1576
|
+
if (c >>>= I = L >>> 24, v -= I, (I = L >>> 16 & 255) === 0) D[y++] = 65535 & L;
|
|
1577
1577
|
else {
|
|
1578
1578
|
if (!(16 & I)) {
|
|
1579
1579
|
if ((64 & I) == 0) {
|
|
@@ -1584,7 +1584,7 @@ function Dt() {
|
|
|
1584
1584
|
n.mode = 12;
|
|
1585
1585
|
break t;
|
|
1586
1586
|
}
|
|
1587
|
-
|
|
1587
|
+
u.msg = "invalid literal/length code", n.mode = 30;
|
|
1588
1588
|
break t;
|
|
1589
1589
|
}
|
|
1590
1590
|
W = 65535 & L, (I &= 15) && (v < I && (c += e[h++] << v, v += 8), W += c & (1 << I) - 1, c >>>= I, v -= I), v < 15 && (c += e[h++] << v, v += 8, c += e[h++] << v, v += 8), L = x[c & O];
|
|
@@ -1594,40 +1594,40 @@ function Dt() {
|
|
|
1594
1594
|
L = x[(65535 & L) + (c & (1 << I) - 1)];
|
|
1595
1595
|
continue r;
|
|
1596
1596
|
}
|
|
1597
|
-
|
|
1597
|
+
u.msg = "invalid distance code", n.mode = 30;
|
|
1598
1598
|
break t;
|
|
1599
1599
|
}
|
|
1600
1600
|
if (q = 65535 & L, v < (I &= 15) && (c += e[h++] << v, (v += 8) < I && (c += e[h++] << v, v += 8)), i < (q += c & (1 << I) - 1)) {
|
|
1601
|
-
|
|
1601
|
+
u.msg = "invalid distance too far back", n.mode = 30;
|
|
1602
1602
|
break t;
|
|
1603
1603
|
}
|
|
1604
1604
|
if (c >>>= I, v -= I, (I = y - p) < q) {
|
|
1605
1605
|
if (r < (I = q - I) && n.sane) {
|
|
1606
|
-
|
|
1606
|
+
u.msg = "invalid distance too far back", n.mode = 30;
|
|
1607
1607
|
break t;
|
|
1608
1608
|
}
|
|
1609
1609
|
if (B = a, (m = 0) === l) {
|
|
1610
1610
|
if (m += d - I, I < W) {
|
|
1611
|
-
for (W -= I;
|
|
1612
|
-
m = y - q, B =
|
|
1611
|
+
for (W -= I; D[y++] = a[m++], --I; ) ;
|
|
1612
|
+
m = y - q, B = D;
|
|
1613
1613
|
}
|
|
1614
1614
|
} else if (l < I) {
|
|
1615
1615
|
if (m += d + l - I, (I -= l) < W) {
|
|
1616
|
-
for (W -= I;
|
|
1616
|
+
for (W -= I; D[y++] = a[m++], --I; ) ;
|
|
1617
1617
|
if (m = 0, l < W) {
|
|
1618
|
-
for (W -= I = l;
|
|
1619
|
-
m = y - q, B =
|
|
1618
|
+
for (W -= I = l; D[y++] = a[m++], --I; ) ;
|
|
1619
|
+
m = y - q, B = D;
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
1622
|
} else if (m += l - I, I < W) {
|
|
1623
|
-
for (W -= I;
|
|
1624
|
-
m = y - q, B =
|
|
1623
|
+
for (W -= I; D[y++] = a[m++], --I; ) ;
|
|
1624
|
+
m = y - q, B = D;
|
|
1625
1625
|
}
|
|
1626
|
-
for (; 2 < W; )
|
|
1627
|
-
W && (
|
|
1626
|
+
for (; 2 < W; ) D[y++] = B[m++], D[y++] = B[m++], D[y++] = B[m++], W -= 3;
|
|
1627
|
+
W && (D[y++] = B[m++], 1 < W && (D[y++] = B[m++]));
|
|
1628
1628
|
} else {
|
|
1629
|
-
for (m = y - q;
|
|
1630
|
-
W && (
|
|
1629
|
+
for (m = y - q; D[y++] = D[m++], D[y++] = D[m++], D[y++] = D[m++], 2 < (W -= 3); ) ;
|
|
1630
|
+
W && (D[y++] = D[m++], 1 < W && (D[y++] = D[m++]));
|
|
1631
1631
|
}
|
|
1632
1632
|
break;
|
|
1633
1633
|
}
|
|
@@ -1635,37 +1635,37 @@ function Dt() {
|
|
|
1635
1635
|
break;
|
|
1636
1636
|
}
|
|
1637
1637
|
} while (h < g && y < b);
|
|
1638
|
-
h -= W = v >> 3, c &= (1 << (v -= W << 3)) - 1,
|
|
1638
|
+
h -= W = v >> 3, c &= (1 << (v -= W << 3)) - 1, u.next_in = h, u.next_out = y, u.avail_in = h < g ? g - h + 5 : 5 - (h - g), u.avail_out = y < b ? b - y + 257 : 257 - (y - b), n.hold = c, n.bits = v;
|
|
1639
1639
|
};
|
|
1640
|
-
}, {}], 49: [function(_,
|
|
1641
|
-
var
|
|
1640
|
+
}, {}], 49: [function(_, T, w) {
|
|
1641
|
+
var u = _("../utils/common"), o = _("./adler32"), n = _("./crc32"), h = _("./inffast"), g = _("./inftrees"), y = 1, p = 2, b = 0, i = -2, d = 1, r = 852, l = 592;
|
|
1642
1642
|
function a(m) {
|
|
1643
1643
|
return (m >>> 24 & 255) + (m >>> 8 & 65280) + ((65280 & m) << 8) + ((255 & m) << 24);
|
|
1644
1644
|
}
|
|
1645
1645
|
function c() {
|
|
1646
|
-
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
|
|
1646
|
+
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new u.Buf16(320), this.work = new u.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1647
1647
|
}
|
|
1648
1648
|
function v(m) {
|
|
1649
1649
|
var B;
|
|
1650
|
-
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
|
|
1650
|
+
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 u.Buf32(r), B.distcode = B.distdyn = new u.Buf32(l), B.sane = 1, B.back = -1, b) : i;
|
|
1651
1651
|
}
|
|
1652
1652
|
function z(m) {
|
|
1653
1653
|
var B;
|
|
1654
1654
|
return m && m.state ? ((B = m.state).wsize = 0, B.whave = 0, B.wnext = 0, v(m)) : i;
|
|
1655
1655
|
}
|
|
1656
1656
|
function x(m, B) {
|
|
1657
|
-
var e,
|
|
1658
|
-
return m && m.state ? (
|
|
1657
|
+
var e, D;
|
|
1658
|
+
return m && m.state ? (D = m.state, B < 0 ? (e = 0, B = -B) : (e = 1 + (B >> 4), B < 48 && (B &= 15)), B && (B < 8 || 15 < B) ? i : (D.window !== null && D.wbits !== B && (D.window = null), D.wrap = e, D.wbits = B, z(m))) : i;
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
var e,
|
|
1662
|
-
return m ? (
|
|
1660
|
+
function F(m, B) {
|
|
1661
|
+
var e, D;
|
|
1662
|
+
return m ? (D = new c(), (m.state = D).window = null, (e = x(m, B)) !== b && (m.state = null), e) : i;
|
|
1663
1663
|
}
|
|
1664
1664
|
var O, L, I = !0;
|
|
1665
1665
|
function W(m) {
|
|
1666
1666
|
if (I) {
|
|
1667
1667
|
var B;
|
|
1668
|
-
for (O = new
|
|
1668
|
+
for (O = new u.Buf32(512), L = new u.Buf32(32), B = 0; B < 144; ) m.lens[B++] = 8;
|
|
1669
1669
|
for (; B < 256; ) m.lens[B++] = 9;
|
|
1670
1670
|
for (; B < 280; ) m.lens[B++] = 7;
|
|
1671
1671
|
for (; B < 288; ) m.lens[B++] = 8;
|
|
@@ -1674,16 +1674,16 @@ function Dt() {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
m.lencode = O, m.lenbits = 9, m.distcode = L, m.distbits = 5;
|
|
1676
1676
|
}
|
|
1677
|
-
function q(m, B, e,
|
|
1677
|
+
function q(m, B, e, D) {
|
|
1678
1678
|
var J, P = m.state;
|
|
1679
|
-
return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new
|
|
1679
|
+
return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new u.Buf8(P.wsize)), D >= P.wsize ? (u.arraySet(P.window, B, e - P.wsize, P.wsize, 0), P.wnext = 0, P.whave = P.wsize) : (D < (J = P.wsize - P.wnext) && (J = D), u.arraySet(P.window, B, e - D, J, P.wnext), (D -= J) ? (u.arraySet(P.window, B, e - D, D, 0), P.wnext = D, P.whave = P.wsize) : (P.wnext += J, P.wnext === P.wsize && (P.wnext = 0), P.whave < P.wsize && (P.whave += J))), 0;
|
|
1680
1680
|
}
|
|
1681
|
-
|
|
1682
|
-
return
|
|
1683
|
-
},
|
|
1684
|
-
var e,
|
|
1681
|
+
w.inflateReset = z, w.inflateReset2 = x, w.inflateResetKeep = v, w.inflateInit = function(m) {
|
|
1682
|
+
return F(m, 15);
|
|
1683
|
+
}, w.inflateInit2 = F, w.inflate = function(m, B) {
|
|
1684
|
+
var e, D, J, P, $, j, V, E, C, X, G, H, nt, ot, Q, et, st, it, lt, ht, t, R, A, f, s = 0, k = new u.Buf8(4), N = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
1685
1685
|
if (!m || !m.state || !m.output || !m.input && m.avail_in !== 0) return i;
|
|
1686
|
-
(e = m.state).mode === 12 && (e.mode = 13), $ = m.next_out, J = m.output, V = m.avail_out, P = m.next_in,
|
|
1686
|
+
(e = m.state).mode === 12 && (e.mode = 13), $ = m.next_out, J = m.output, V = m.avail_out, P = m.next_in, D = m.input, j = m.avail_in, E = e.hold, C = e.bits, X = j, G = V, R = b;
|
|
1687
1687
|
t: for (; ; ) switch (e.mode) {
|
|
1688
1688
|
case d:
|
|
1689
1689
|
if (e.wrap === 0) {
|
|
@@ -1692,10 +1692,10 @@ function Dt() {
|
|
|
1692
1692
|
}
|
|
1693
1693
|
for (; C < 16; ) {
|
|
1694
1694
|
if (j === 0) break t;
|
|
1695
|
-
j--, E +=
|
|
1695
|
+
j--, E += D[P++] << C, C += 8;
|
|
1696
1696
|
}
|
|
1697
1697
|
if (2 & e.wrap && E === 35615) {
|
|
1698
|
-
|
|
1698
|
+
k[e.check = 0] = 255 & E, k[1] = E >>> 8 & 255, e.check = n(e.check, k, 2, 0), C = E = 0, e.mode = 2;
|
|
1699
1699
|
break;
|
|
1700
1700
|
}
|
|
1701
1701
|
if (e.flags = 0, e.head && (e.head.done = !1), !(1 & e.wrap) || (((255 & E) << 8) + (E >> 8)) % 31) {
|
|
@@ -1716,7 +1716,7 @@ function Dt() {
|
|
|
1716
1716
|
case 2:
|
|
1717
1717
|
for (; C < 16; ) {
|
|
1718
1718
|
if (j === 0) break t;
|
|
1719
|
-
j--, E +=
|
|
1719
|
+
j--, E += D[P++] << C, C += 8;
|
|
1720
1720
|
}
|
|
1721
1721
|
if (e.flags = E, (255 & e.flags) != 8) {
|
|
1722
1722
|
m.msg = "unknown compression method", e.mode = 30;
|
|
@@ -1726,50 +1726,50 @@ function Dt() {
|
|
|
1726
1726
|
m.msg = "unknown header flags set", e.mode = 30;
|
|
1727
1727
|
break;
|
|
1728
1728
|
}
|
|
1729
|
-
e.head && (e.head.text = E >> 8 & 1), 512 & e.flags && (
|
|
1729
|
+
e.head && (e.head.text = E >> 8 & 1), 512 & e.flags && (k[0] = 255 & E, k[1] = E >>> 8 & 255, e.check = n(e.check, k, 2, 0)), C = E = 0, e.mode = 3;
|
|
1730
1730
|
case 3:
|
|
1731
1731
|
for (; C < 32; ) {
|
|
1732
1732
|
if (j === 0) break t;
|
|
1733
|
-
j--, E +=
|
|
1733
|
+
j--, E += D[P++] << C, C += 8;
|
|
1734
1734
|
}
|
|
1735
|
-
e.head && (e.head.time = E), 512 & e.flags && (
|
|
1735
|
+
e.head && (e.head.time = E), 512 & e.flags && (k[0] = 255 & E, k[1] = E >>> 8 & 255, k[2] = E >>> 16 & 255, k[3] = E >>> 24 & 255, e.check = n(e.check, k, 4, 0)), C = E = 0, e.mode = 4;
|
|
1736
1736
|
case 4:
|
|
1737
1737
|
for (; C < 16; ) {
|
|
1738
1738
|
if (j === 0) break t;
|
|
1739
|
-
j--, E +=
|
|
1739
|
+
j--, E += D[P++] << C, C += 8;
|
|
1740
1740
|
}
|
|
1741
|
-
e.head && (e.head.xflags = 255 & E, e.head.os = E >> 8), 512 & e.flags && (
|
|
1741
|
+
e.head && (e.head.xflags = 255 & E, e.head.os = E >> 8), 512 & e.flags && (k[0] = 255 & E, k[1] = E >>> 8 & 255, e.check = n(e.check, k, 2, 0)), C = E = 0, e.mode = 5;
|
|
1742
1742
|
case 5:
|
|
1743
1743
|
if (1024 & e.flags) {
|
|
1744
1744
|
for (; C < 16; ) {
|
|
1745
1745
|
if (j === 0) break t;
|
|
1746
|
-
j--, E +=
|
|
1746
|
+
j--, E += D[P++] << C, C += 8;
|
|
1747
1747
|
}
|
|
1748
|
-
e.length = E, e.head && (e.head.extra_len = E), 512 & e.flags && (
|
|
1748
|
+
e.length = E, e.head && (e.head.extra_len = E), 512 & e.flags && (k[0] = 255 & E, k[1] = E >>> 8 & 255, e.check = n(e.check, k, 2, 0)), C = E = 0;
|
|
1749
1749
|
} else e.head && (e.head.extra = null);
|
|
1750
1750
|
e.mode = 6;
|
|
1751
1751
|
case 6:
|
|
1752
|
-
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)),
|
|
1752
|
+
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)), u.arraySet(e.head.extra, D, P, H, t)), 512 & e.flags && (e.check = n(e.check, D, H, P)), j -= H, P += H, e.length -= H), e.length)) break t;
|
|
1753
1753
|
e.length = 0, e.mode = 7;
|
|
1754
1754
|
case 7:
|
|
1755
1755
|
if (2048 & e.flags) {
|
|
1756
1756
|
if (j === 0) break t;
|
|
1757
|
-
for (H = 0; t =
|
|
1758
|
-
if (512 & e.flags && (e.check = n(e.check,
|
|
1757
|
+
for (H = 0; t = D[P + H++], e.head && t && e.length < 65536 && (e.head.name += String.fromCharCode(t)), t && H < j; ) ;
|
|
1758
|
+
if (512 & e.flags && (e.check = n(e.check, D, H, P)), j -= H, P += H, t) break t;
|
|
1759
1759
|
} else e.head && (e.head.name = null);
|
|
1760
1760
|
e.length = 0, e.mode = 8;
|
|
1761
1761
|
case 8:
|
|
1762
1762
|
if (4096 & e.flags) {
|
|
1763
1763
|
if (j === 0) break t;
|
|
1764
|
-
for (H = 0; t =
|
|
1765
|
-
if (512 & e.flags && (e.check = n(e.check,
|
|
1764
|
+
for (H = 0; t = D[P + H++], e.head && t && e.length < 65536 && (e.head.comment += String.fromCharCode(t)), t && H < j; ) ;
|
|
1765
|
+
if (512 & e.flags && (e.check = n(e.check, D, H, P)), j -= H, P += H, t) break t;
|
|
1766
1766
|
} else e.head && (e.head.comment = null);
|
|
1767
1767
|
e.mode = 9;
|
|
1768
1768
|
case 9:
|
|
1769
1769
|
if (512 & e.flags) {
|
|
1770
1770
|
for (; C < 16; ) {
|
|
1771
1771
|
if (j === 0) break t;
|
|
1772
|
-
j--, E +=
|
|
1772
|
+
j--, E += D[P++] << C, C += 8;
|
|
1773
1773
|
}
|
|
1774
1774
|
if (E !== (65535 & e.check)) {
|
|
1775
1775
|
m.msg = "header crc mismatch", e.mode = 30;
|
|
@@ -1782,7 +1782,7 @@ function Dt() {
|
|
|
1782
1782
|
case 10:
|
|
1783
1783
|
for (; C < 32; ) {
|
|
1784
1784
|
if (j === 0) break t;
|
|
1785
|
-
j--, E +=
|
|
1785
|
+
j--, E += D[P++] << C, C += 8;
|
|
1786
1786
|
}
|
|
1787
1787
|
m.adler = e.check = a(E), C = E = 0, e.mode = 11;
|
|
1788
1788
|
case 11:
|
|
@@ -1797,7 +1797,7 @@ function Dt() {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
for (; C < 3; ) {
|
|
1799
1799
|
if (j === 0) break t;
|
|
1800
|
-
j--, E +=
|
|
1800
|
+
j--, E += D[P++] << C, C += 8;
|
|
1801
1801
|
}
|
|
1802
1802
|
switch (e.last = 1 & E, C -= 1, 3 & (E >>>= 1)) {
|
|
1803
1803
|
case 0:
|
|
@@ -1818,7 +1818,7 @@ function Dt() {
|
|
|
1818
1818
|
case 14:
|
|
1819
1819
|
for (E >>>= 7 & C, C -= 7 & C; C < 32; ) {
|
|
1820
1820
|
if (j === 0) break t;
|
|
1821
|
-
j--, E +=
|
|
1821
|
+
j--, E += D[P++] << C, C += 8;
|
|
1822
1822
|
}
|
|
1823
1823
|
if ((65535 & E) != (E >>> 16 ^ 65535)) {
|
|
1824
1824
|
m.msg = "invalid stored block lengths", e.mode = 30;
|
|
@@ -1830,7 +1830,7 @@ function Dt() {
|
|
|
1830
1830
|
case 16:
|
|
1831
1831
|
if (H = e.length) {
|
|
1832
1832
|
if (j < H && (H = j), V < H && (H = V), H === 0) break t;
|
|
1833
|
-
|
|
1833
|
+
u.arraySet(J, D, P, H, $), j -= H, P += H, V -= H, $ += H, e.length -= H;
|
|
1834
1834
|
break;
|
|
1835
1835
|
}
|
|
1836
1836
|
e.mode = 12;
|
|
@@ -1838,7 +1838,7 @@ function Dt() {
|
|
|
1838
1838
|
case 17:
|
|
1839
1839
|
for (; C < 14; ) {
|
|
1840
1840
|
if (j === 0) break t;
|
|
1841
|
-
j--, E +=
|
|
1841
|
+
j--, E += D[P++] << C, C += 8;
|
|
1842
1842
|
}
|
|
1843
1843
|
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) {
|
|
1844
1844
|
m.msg = "too many length or distance symbols", e.mode = 30;
|
|
@@ -1849,11 +1849,11 @@ function Dt() {
|
|
|
1849
1849
|
for (; e.have < e.ncode; ) {
|
|
1850
1850
|
for (; C < 3; ) {
|
|
1851
1851
|
if (j === 0) break t;
|
|
1852
|
-
j--, E +=
|
|
1852
|
+
j--, E += D[P++] << C, C += 8;
|
|
1853
1853
|
}
|
|
1854
|
-
e.lens[
|
|
1854
|
+
e.lens[N[e.have++]] = 7 & E, E >>>= 3, C -= 3;
|
|
1855
1855
|
}
|
|
1856
|
-
for (; e.have < 19; ) e.lens[
|
|
1856
|
+
for (; e.have < 19; ) e.lens[N[e.have++]] = 0;
|
|
1857
1857
|
if (e.lencode = e.lendyn, e.lenbits = 7, A = { bits: e.lenbits }, R = g(0, e.lens, 0, 19, e.lencode, 0, e.work, A), e.lenbits = A.bits, R) {
|
|
1858
1858
|
m.msg = "invalid code lengths set", e.mode = 30;
|
|
1859
1859
|
break;
|
|
@@ -1863,14 +1863,14 @@ function Dt() {
|
|
|
1863
1863
|
for (; e.have < e.nlen + e.ndist; ) {
|
|
1864
1864
|
for (; et = (s = e.lencode[E & (1 << e.lenbits) - 1]) >>> 16 & 255, st = 65535 & s, !((Q = s >>> 24) <= C); ) {
|
|
1865
1865
|
if (j === 0) break t;
|
|
1866
|
-
j--, E +=
|
|
1866
|
+
j--, E += D[P++] << C, C += 8;
|
|
1867
1867
|
}
|
|
1868
1868
|
if (st < 16) E >>>= Q, C -= Q, e.lens[e.have++] = st;
|
|
1869
1869
|
else {
|
|
1870
1870
|
if (st === 16) {
|
|
1871
1871
|
for (f = Q + 2; C < f; ) {
|
|
1872
1872
|
if (j === 0) break t;
|
|
1873
|
-
j--, E +=
|
|
1873
|
+
j--, E += D[P++] << C, C += 8;
|
|
1874
1874
|
}
|
|
1875
1875
|
if (E >>>= Q, C -= Q, e.have === 0) {
|
|
1876
1876
|
m.msg = "invalid bit length repeat", e.mode = 30;
|
|
@@ -1880,13 +1880,13 @@ function Dt() {
|
|
|
1880
1880
|
} else if (st === 17) {
|
|
1881
1881
|
for (f = Q + 3; C < f; ) {
|
|
1882
1882
|
if (j === 0) break t;
|
|
1883
|
-
j--, E +=
|
|
1883
|
+
j--, E += D[P++] << C, C += 8;
|
|
1884
1884
|
}
|
|
1885
1885
|
C -= Q, t = 0, H = 3 + (7 & (E >>>= Q)), E >>>= 3, C -= 3;
|
|
1886
1886
|
} else {
|
|
1887
1887
|
for (f = Q + 7; C < f; ) {
|
|
1888
1888
|
if (j === 0) break t;
|
|
1889
|
-
j--, E +=
|
|
1889
|
+
j--, E += D[P++] << C, C += 8;
|
|
1890
1890
|
}
|
|
1891
1891
|
C -= Q, t = 0, H = 11 + (127 & (E >>>= Q)), E >>>= 7, C -= 7;
|
|
1892
1892
|
}
|
|
@@ -1915,17 +1915,17 @@ function Dt() {
|
|
|
1915
1915
|
e.mode = 21;
|
|
1916
1916
|
case 21:
|
|
1917
1917
|
if (6 <= j && 258 <= V) {
|
|
1918
|
-
m.next_out = $, m.avail_out = V, m.next_in = P, m.avail_in = j, e.hold = E, e.bits = C, h(m, G), $ = m.next_out, J = m.output, V = m.avail_out, P = m.next_in,
|
|
1918
|
+
m.next_out = $, m.avail_out = V, m.next_in = P, m.avail_in = j, e.hold = E, e.bits = C, h(m, G), $ = m.next_out, J = m.output, V = m.avail_out, P = m.next_in, D = m.input, j = m.avail_in, E = e.hold, C = e.bits, e.mode === 12 && (e.back = -1);
|
|
1919
1919
|
break;
|
|
1920
1920
|
}
|
|
1921
1921
|
for (e.back = 0; et = (s = e.lencode[E & (1 << e.lenbits) - 1]) >>> 16 & 255, st = 65535 & s, !((Q = s >>> 24) <= C); ) {
|
|
1922
1922
|
if (j === 0) break t;
|
|
1923
|
-
j--, E +=
|
|
1923
|
+
j--, E += D[P++] << C, C += 8;
|
|
1924
1924
|
}
|
|
1925
1925
|
if (et && (240 & et) == 0) {
|
|
1926
1926
|
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); ) {
|
|
1927
1927
|
if (j === 0) break t;
|
|
1928
|
-
j--, E +=
|
|
1928
|
+
j--, E += D[P++] << C, C += 8;
|
|
1929
1929
|
}
|
|
1930
1930
|
E >>>= it, C -= it, e.back += it;
|
|
1931
1931
|
}
|
|
@@ -1946,7 +1946,7 @@ function Dt() {
|
|
|
1946
1946
|
if (e.extra) {
|
|
1947
1947
|
for (f = e.extra; C < f; ) {
|
|
1948
1948
|
if (j === 0) break t;
|
|
1949
|
-
j--, E +=
|
|
1949
|
+
j--, E += D[P++] << C, C += 8;
|
|
1950
1950
|
}
|
|
1951
1951
|
e.length += E & (1 << e.extra) - 1, E >>>= e.extra, C -= e.extra, e.back += e.extra;
|
|
1952
1952
|
}
|
|
@@ -1954,12 +1954,12 @@ function Dt() {
|
|
|
1954
1954
|
case 23:
|
|
1955
1955
|
for (; et = (s = e.distcode[E & (1 << e.distbits) - 1]) >>> 16 & 255, st = 65535 & s, !((Q = s >>> 24) <= C); ) {
|
|
1956
1956
|
if (j === 0) break t;
|
|
1957
|
-
j--, E +=
|
|
1957
|
+
j--, E += D[P++] << C, C += 8;
|
|
1958
1958
|
}
|
|
1959
1959
|
if ((240 & et) == 0) {
|
|
1960
1960
|
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); ) {
|
|
1961
1961
|
if (j === 0) break t;
|
|
1962
|
-
j--, E +=
|
|
1962
|
+
j--, E += D[P++] << C, C += 8;
|
|
1963
1963
|
}
|
|
1964
1964
|
E >>>= it, C -= it, e.back += it;
|
|
1965
1965
|
}
|
|
@@ -1972,7 +1972,7 @@ function Dt() {
|
|
|
1972
1972
|
if (e.extra) {
|
|
1973
1973
|
for (f = e.extra; C < f; ) {
|
|
1974
1974
|
if (j === 0) break t;
|
|
1975
|
-
j--, E +=
|
|
1975
|
+
j--, E += D[P++] << C, C += 8;
|
|
1976
1976
|
}
|
|
1977
1977
|
e.offset += E & (1 << e.extra) - 1, E >>>= e.extra, C -= e.extra, e.back += e.extra;
|
|
1978
1978
|
}
|
|
@@ -2001,9 +2001,9 @@ function Dt() {
|
|
|
2001
2001
|
if (e.wrap) {
|
|
2002
2002
|
for (; C < 32; ) {
|
|
2003
2003
|
if (j === 0) break t;
|
|
2004
|
-
j--, E |=
|
|
2004
|
+
j--, E |= D[P++] << C, C += 8;
|
|
2005
2005
|
}
|
|
2006
|
-
if (G -= V, m.total_out += G, e.total += G, G && (m.adler = e.check = e.flags ? n(e.check, J, G, $ - G) :
|
|
2006
|
+
if (G -= V, 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 = V, (e.flags ? E : a(E)) !== e.check) {
|
|
2007
2007
|
m.msg = "incorrect data check", e.mode = 30;
|
|
2008
2008
|
break;
|
|
2009
2009
|
}
|
|
@@ -2014,7 +2014,7 @@ function Dt() {
|
|
|
2014
2014
|
if (e.wrap && e.flags) {
|
|
2015
2015
|
for (; C < 32; ) {
|
|
2016
2016
|
if (j === 0) break t;
|
|
2017
|
-
j--, E +=
|
|
2017
|
+
j--, E += D[P++] << C, C += 8;
|
|
2018
2018
|
}
|
|
2019
2019
|
if (E !== (4294967295 & e.total)) {
|
|
2020
2020
|
m.msg = "incorrect length check", e.mode = 30;
|
|
@@ -2035,55 +2035,55 @@ function Dt() {
|
|
|
2035
2035
|
default:
|
|
2036
2036
|
return i;
|
|
2037
2037
|
}
|
|
2038
|
-
return m.next_out = $, m.avail_out = V, 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)) && q(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) :
|
|
2039
|
-
},
|
|
2038
|
+
return m.next_out = $, m.avail_out = V, 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)) && q(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 === b && (R = -5), R);
|
|
2039
|
+
}, w.inflateEnd = function(m) {
|
|
2040
2040
|
if (!m || !m.state) return i;
|
|
2041
2041
|
var B = m.state;
|
|
2042
2042
|
return B.window && (B.window = null), m.state = null, b;
|
|
2043
|
-
},
|
|
2043
|
+
}, w.inflateGetHeader = function(m, B) {
|
|
2044
2044
|
var e;
|
|
2045
2045
|
return m && m.state ? (2 & (e = m.state).wrap) == 0 ? i : ((e.head = B).done = !1, b) : i;
|
|
2046
|
-
},
|
|
2047
|
-
var e,
|
|
2048
|
-
return m && m.state ? (e = m.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 &&
|
|
2049
|
-
},
|
|
2050
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(_,
|
|
2051
|
-
var
|
|
2052
|
-
|
|
2053
|
-
var c, v, z, x,
|
|
2046
|
+
}, w.inflateSetDictionary = function(m, B) {
|
|
2047
|
+
var e, D = B.length;
|
|
2048
|
+
return m && m.state ? (e = m.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 && o(1, B, D, 0) !== e.check ? -3 : q(m, B, D, D) ? (e.mode = 31, -4) : (e.havedict = 1, b) : i;
|
|
2049
|
+
}, w.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2050
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(_, T, w) {
|
|
2051
|
+
var u = _("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], n = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], h = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], g = [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];
|
|
2052
|
+
T.exports = function(y, p, b, i, d, r, l, a) {
|
|
2053
|
+
var c, v, z, x, F, O, L, I, W, q = a.bits, m = 0, B = 0, e = 0, D = 0, J = 0, P = 0, $ = 0, j = 0, V = 0, E = 0, C = null, X = 0, G = new u.Buf16(16), H = new u.Buf16(16), nt = null, ot = 0;
|
|
2054
2054
|
for (m = 0; m <= 15; m++) G[m] = 0;
|
|
2055
2055
|
for (B = 0; B < i; B++) G[p[b + B]]++;
|
|
2056
|
-
for (J = q,
|
|
2057
|
-
if (
|
|
2058
|
-
for (e = 1; e <
|
|
2056
|
+
for (J = q, D = 15; 1 <= D && G[D] === 0; D--) ;
|
|
2057
|
+
if (D < J && (J = D), D === 0) return d[r++] = 20971520, d[r++] = 20971520, a.bits = 1, 0;
|
|
2058
|
+
for (e = 1; e < D && G[e] === 0; e++) ;
|
|
2059
2059
|
for (J < e && (J = e), m = j = 1; m <= 15; m++) if (j <<= 1, (j -= G[m]) < 0) return -1;
|
|
2060
|
-
if (0 < j && (y === 0 ||
|
|
2060
|
+
if (0 < j && (y === 0 || D !== 1)) return -1;
|
|
2061
2061
|
for (H[1] = 0, m = 1; m < 15; m++) H[m + 1] = H[m] + G[m];
|
|
2062
2062
|
for (B = 0; B < i; B++) p[b + B] !== 0 && (l[H[p[b + B]]++] = B);
|
|
2063
|
-
if (O = y === 0 ? (C = nt = l, 19) : y === 1 ? (C =
|
|
2063
|
+
if (O = y === 0 ? (C = nt = l, 19) : y === 1 ? (C = o, X -= 257, nt = n, ot -= 257, 256) : (C = h, nt = g, -1), m = e, F = r, $ = B = E = 0, z = -1, x = (V = 1 << (P = J)) - 1, y === 1 && 852 < V || y === 2 && 592 < V) return 1;
|
|
2064
2064
|
for (; ; ) {
|
|
2065
|
-
for (L = m - $, W = l[B] < O ? (I = 0, l[B]) : l[B] > O ? (I = nt[ot + l[B]], C[X + l[B]]) : (I = 96, 0), c = 1 << m - $, e = v = 1 << P; d[
|
|
2065
|
+
for (L = m - $, W = l[B] < O ? (I = 0, l[B]) : l[B] > O ? (I = nt[ot + l[B]], C[X + l[B]]) : (I = 96, 0), c = 1 << m - $, e = v = 1 << P; d[F + (E >> $) + (v -= c)] = L << 24 | I << 16 | W | 0, v !== 0; ) ;
|
|
2066
2066
|
for (c = 1 << m - 1; E & c; ) c >>= 1;
|
|
2067
2067
|
if (c !== 0 ? (E &= c - 1, E += c) : E = 0, B++, --G[m] == 0) {
|
|
2068
|
-
if (m ===
|
|
2068
|
+
if (m === D) break;
|
|
2069
2069
|
m = p[b + l[B]];
|
|
2070
2070
|
}
|
|
2071
2071
|
if (J < m && (E & x) !== z) {
|
|
2072
|
-
for ($ === 0 && ($ = J),
|
|
2072
|
+
for ($ === 0 && ($ = J), F += e, j = 1 << (P = m - $); P + $ < D && !((j -= G[P + $]) <= 0); ) P++, j <<= 1;
|
|
2073
2073
|
if (V += 1 << P, y === 1 && 852 < V || y === 2 && 592 < V) return 1;
|
|
2074
|
-
d[z = E & x] = J << 24 | P << 16 |
|
|
2074
|
+
d[z = E & x] = J << 24 | P << 16 | F - r | 0;
|
|
2075
2075
|
}
|
|
2076
2076
|
}
|
|
2077
|
-
return E !== 0 && (d[
|
|
2077
|
+
return E !== 0 && (d[F + E] = m - $ << 24 | 64 << 16 | 0), a.bits = J, 0;
|
|
2078
2078
|
};
|
|
2079
|
-
}, { "../utils/common": 41 }], 51: [function(_,
|
|
2080
|
-
|
|
2081
|
-
}, {}], 52: [function(_,
|
|
2082
|
-
var
|
|
2079
|
+
}, { "../utils/common": 41 }], 51: [function(_, T, w) {
|
|
2080
|
+
T.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" };
|
|
2081
|
+
}, {}], 52: [function(_, T, w) {
|
|
2082
|
+
var u = _("../utils/common"), o = 0, n = 1;
|
|
2083
2083
|
function h(s) {
|
|
2084
|
-
for (var
|
|
2084
|
+
for (var k = s.length; 0 <= --k; ) s[k] = 0;
|
|
2085
2085
|
}
|
|
2086
|
-
var g = 0, y = 29, p = 256, b = p + 1 + y, i = 30, d = 19, r = 2 * b + 1, l = 15, a = 16, c = 7, v = 256, z = 16, x = 17,
|
|
2086
|
+
var g = 0, y = 29, p = 256, b = p + 1 + y, i = 30, d = 19, r = 2 * b + 1, l = 15, a = 16, c = 7, v = 256, z = 16, x = 17, F = 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], q = new Array(2 * (b + 2));
|
|
2087
2087
|
h(q);
|
|
2088
2088
|
var m = new Array(2 * i);
|
|
2089
2089
|
h(m);
|
|
@@ -2091,161 +2091,161 @@ function Dt() {
|
|
|
2091
2091
|
h(B);
|
|
2092
2092
|
var e = new Array(256);
|
|
2093
2093
|
h(e);
|
|
2094
|
-
var
|
|
2095
|
-
h(
|
|
2094
|
+
var D = new Array(y);
|
|
2095
|
+
h(D);
|
|
2096
2096
|
var J, P, $, j = new Array(i);
|
|
2097
|
-
function V(s,
|
|
2098
|
-
this.static_tree = s, this.extra_bits =
|
|
2097
|
+
function V(s, k, N, U, S) {
|
|
2098
|
+
this.static_tree = s, this.extra_bits = k, this.extra_base = N, this.elems = U, this.max_length = S, this.has_stree = s && s.length;
|
|
2099
2099
|
}
|
|
2100
|
-
function E(s,
|
|
2101
|
-
this.dyn_tree = s, this.max_code = 0, this.stat_desc =
|
|
2100
|
+
function E(s, k) {
|
|
2101
|
+
this.dyn_tree = s, this.max_code = 0, this.stat_desc = k;
|
|
2102
2102
|
}
|
|
2103
2103
|
function C(s) {
|
|
2104
2104
|
return s < 256 ? B[s] : B[256 + (s >>> 7)];
|
|
2105
2105
|
}
|
|
2106
|
-
function X(s,
|
|
2107
|
-
s.pending_buf[s.pending++] = 255 &
|
|
2106
|
+
function X(s, k) {
|
|
2107
|
+
s.pending_buf[s.pending++] = 255 & k, s.pending_buf[s.pending++] = k >>> 8 & 255;
|
|
2108
2108
|
}
|
|
2109
|
-
function G(s,
|
|
2110
|
-
s.bi_valid > a -
|
|
2109
|
+
function G(s, k, N) {
|
|
2110
|
+
s.bi_valid > a - N ? (s.bi_buf |= k << s.bi_valid & 65535, X(s, s.bi_buf), s.bi_buf = k >> a - s.bi_valid, s.bi_valid += N - a) : (s.bi_buf |= k << s.bi_valid & 65535, s.bi_valid += N);
|
|
2111
2111
|
}
|
|
2112
|
-
function H(s,
|
|
2113
|
-
G(s,
|
|
2112
|
+
function H(s, k, N) {
|
|
2113
|
+
G(s, N[2 * k], N[2 * k + 1]);
|
|
2114
2114
|
}
|
|
2115
|
-
function nt(s,
|
|
2116
|
-
for (var
|
|
2117
|
-
return
|
|
2115
|
+
function nt(s, k) {
|
|
2116
|
+
for (var N = 0; N |= 1 & s, s >>>= 1, N <<= 1, 0 < --k; ) ;
|
|
2117
|
+
return N >>> 1;
|
|
2118
2118
|
}
|
|
2119
|
-
function ot(s,
|
|
2119
|
+
function ot(s, k, N) {
|
|
2120
2120
|
var U, S, Z = new Array(l + 1), K = 0;
|
|
2121
|
-
for (U = 1; U <= l; U++) Z[U] = K = K +
|
|
2122
|
-
for (S = 0; S <=
|
|
2121
|
+
for (U = 1; U <= l; U++) Z[U] = K = K + N[U - 1] << 1;
|
|
2122
|
+
for (S = 0; S <= k; S++) {
|
|
2123
2123
|
var M = s[2 * S + 1];
|
|
2124
2124
|
M !== 0 && (s[2 * S] = nt(Z[M]++, M));
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
2127
|
function Q(s) {
|
|
2128
|
-
var
|
|
2129
|
-
for (
|
|
2130
|
-
for (
|
|
2131
|
-
for (
|
|
2128
|
+
var k;
|
|
2129
|
+
for (k = 0; k < b; k++) s.dyn_ltree[2 * k] = 0;
|
|
2130
|
+
for (k = 0; k < i; k++) s.dyn_dtree[2 * k] = 0;
|
|
2131
|
+
for (k = 0; k < d; k++) s.bl_tree[2 * k] = 0;
|
|
2132
2132
|
s.dyn_ltree[2 * v] = 1, s.opt_len = s.static_len = 0, s.last_lit = s.matches = 0;
|
|
2133
2133
|
}
|
|
2134
2134
|
function et(s) {
|
|
2135
2135
|
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;
|
|
2136
2136
|
}
|
|
2137
|
-
function st(s,
|
|
2138
|
-
var S = 2 *
|
|
2139
|
-
return s[S] < s[Z] || s[S] === s[Z] && U[
|
|
2137
|
+
function st(s, k, N, U) {
|
|
2138
|
+
var S = 2 * k, Z = 2 * N;
|
|
2139
|
+
return s[S] < s[Z] || s[S] === s[Z] && U[k] <= U[N];
|
|
2140
2140
|
}
|
|
2141
|
-
function it(s,
|
|
2142
|
-
for (var U = s.heap[
|
|
2143
|
-
s.heap[
|
|
2141
|
+
function it(s, k, N) {
|
|
2142
|
+
for (var U = s.heap[N], S = N << 1; S <= s.heap_len && (S < s.heap_len && st(k, s.heap[S + 1], s.heap[S], s.depth) && S++, !st(k, U, s.heap[S], s.depth)); ) s.heap[N] = s.heap[S], N = S, S <<= 1;
|
|
2143
|
+
s.heap[N] = U;
|
|
2144
2144
|
}
|
|
2145
|
-
function lt(s,
|
|
2145
|
+
function lt(s, k, N) {
|
|
2146
2146
|
var U, S, Z, K, M = 0;
|
|
2147
|
-
if (s.last_lit !== 0) for (; U = s.pending_buf[s.d_buf + 2 * M] << 8 | s.pending_buf[s.d_buf + 2 * M + 1], S = s.pending_buf[s.l_buf + M], M++, U === 0 ? H(s, S,
|
|
2148
|
-
H(s, v,
|
|
2147
|
+
if (s.last_lit !== 0) for (; U = s.pending_buf[s.d_buf + 2 * M] << 8 | s.pending_buf[s.d_buf + 2 * M + 1], S = s.pending_buf[s.l_buf + M], M++, U === 0 ? H(s, S, k) : (H(s, (Z = e[S]) + p + 1, k), (K = O[Z]) !== 0 && G(s, S -= D[Z], K), H(s, Z = C(--U), N), (K = L[Z]) !== 0 && G(s, U -= j[Z], K)), M < s.last_lit; ) ;
|
|
2148
|
+
H(s, v, k);
|
|
2149
2149
|
}
|
|
2150
|
-
function ht(s,
|
|
2151
|
-
var
|
|
2152
|
-
for (s.heap_len = 0, s.heap_max = r,
|
|
2150
|
+
function ht(s, k) {
|
|
2151
|
+
var N, U, S, Z = k.dyn_tree, K = k.stat_desc.static_tree, M = k.stat_desc.has_stree, Y = k.stat_desc.elems, rt = -1;
|
|
2152
|
+
for (s.heap_len = 0, s.heap_max = r, N = 0; N < Y; N++) Z[2 * N] !== 0 ? (s.heap[++s.heap_len] = rt = N, s.depth[N] = 0) : Z[2 * N + 1] = 0;
|
|
2153
2153
|
for (; s.heap_len < 2; ) Z[2 * (S = s.heap[++s.heap_len] = rt < 2 ? ++rt : 0)] = 1, s.depth[S] = 0, s.opt_len--, M && (s.static_len -= K[2 * S + 1]);
|
|
2154
|
-
for (
|
|
2155
|
-
for (S = Y;
|
|
2154
|
+
for (k.max_code = rt, N = s.heap_len >> 1; 1 <= N; N--) it(s, Z, N);
|
|
2155
|
+
for (S = Y; N = s.heap[1], s.heap[1] = s.heap[s.heap_len--], it(s, Z, 1), U = s.heap[1], s.heap[--s.heap_max] = N, s.heap[--s.heap_max] = U, Z[2 * S] = Z[2 * N] + Z[2 * U], s.depth[S] = (s.depth[N] >= s.depth[U] ? s.depth[N] : s.depth[U]) + 1, Z[2 * N + 1] = Z[2 * U + 1] = S, s.heap[1] = S++, it(s, Z, 1), 2 <= s.heap_len; ) ;
|
|
2156
2156
|
s.heap[--s.heap_max] = s.heap[1], (function(tt, ut) {
|
|
2157
|
-
var mt, ft, _t, at, bt, kt,
|
|
2157
|
+
var mt, ft, _t, at, bt, kt, ct = ut.dyn_tree, St = ut.max_code, At = ut.stat_desc.static_tree, It = ut.stat_desc.has_stree, Ot = ut.stat_desc.extra_bits, Ct = ut.stat_desc.extra_base, gt = ut.stat_desc.max_length, vt = 0;
|
|
2158
2158
|
for (at = 0; at <= l; at++) tt.bl_count[at] = 0;
|
|
2159
|
-
for (
|
|
2159
|
+
for (ct[2 * tt.heap[tt.heap_max] + 1] = 0, mt = tt.heap_max + 1; mt < r; mt++) gt < (at = ct[2 * ct[2 * (ft = tt.heap[mt]) + 1] + 1] + 1) && (at = gt, vt++), ct[2 * ft + 1] = at, St < ft || (tt.bl_count[at]++, bt = 0, Ct <= ft && (bt = Ot[ft - Ct]), kt = ct[2 * ft], tt.opt_len += kt * (at + bt), It && (tt.static_len += kt * (At[2 * ft + 1] + bt)));
|
|
2160
2160
|
if (vt !== 0) {
|
|
2161
2161
|
do {
|
|
2162
2162
|
for (at = gt - 1; tt.bl_count[at] === 0; ) at--;
|
|
2163
2163
|
tt.bl_count[at]--, tt.bl_count[at + 1] += 2, tt.bl_count[gt]--, vt -= 2;
|
|
2164
2164
|
} while (0 < vt);
|
|
2165
|
-
for (at = gt; at !== 0; at--) for (ft = tt.bl_count[at]; ft !== 0; ) St < (_t = tt.heap[--mt]) || (
|
|
2165
|
+
for (at = gt; at !== 0; at--) for (ft = tt.bl_count[at]; ft !== 0; ) St < (_t = tt.heap[--mt]) || (ct[2 * _t + 1] !== at && (tt.opt_len += (at - ct[2 * _t + 1]) * ct[2 * _t], ct[2 * _t + 1] = at), ft--);
|
|
2166
2166
|
}
|
|
2167
|
-
})(s,
|
|
2167
|
+
})(s, k), ot(Z, rt, s.bl_count);
|
|
2168
2168
|
}
|
|
2169
|
-
function t(s,
|
|
2170
|
-
var U, S, Z = -1, K =
|
|
2171
|
-
for (K === 0 && (Y = 138, rt = 3),
|
|
2169
|
+
function t(s, k, N) {
|
|
2170
|
+
var U, S, Z = -1, K = k[1], M = 0, Y = 7, rt = 4;
|
|
2171
|
+
for (K === 0 && (Y = 138, rt = 3), k[2 * (N + 1) + 1] = 65535, U = 0; U <= N; U++) S = K, K = k[2 * (U + 1) + 1], ++M < Y && S === K || (M < rt ? s.bl_tree[2 * S] += M : S !== 0 ? (S !== Z && s.bl_tree[2 * S]++, s.bl_tree[2 * z]++) : M <= 10 ? s.bl_tree[2 * x]++ : s.bl_tree[2 * F]++, Z = S, rt = (M = 0) === K ? (Y = 138, 3) : S === K ? (Y = 6, 3) : (Y = 7, 4));
|
|
2172
2172
|
}
|
|
2173
|
-
function R(s,
|
|
2174
|
-
var U, S, Z = -1, K =
|
|
2175
|
-
for (K === 0 && (Y = 138, rt = 3), U = 0; U <=
|
|
2173
|
+
function R(s, k, N) {
|
|
2174
|
+
var U, S, Z = -1, K = k[1], M = 0, Y = 7, rt = 4;
|
|
2175
|
+
for (K === 0 && (Y = 138, rt = 3), U = 0; U <= N; U++) if (S = K, K = k[2 * (U + 1) + 1], !(++M < Y && S === K)) {
|
|
2176
2176
|
if (M < rt) for (; H(s, S, s.bl_tree), --M != 0; ) ;
|
|
2177
|
-
else S !== 0 ? (S !== Z && (H(s, S, s.bl_tree), M--), H(s, z, s.bl_tree), G(s, M - 3, 2)) : M <= 10 ? (H(s, x, s.bl_tree), G(s, M - 3, 3)) : (H(s,
|
|
2177
|
+
else S !== 0 ? (S !== Z && (H(s, S, s.bl_tree), M--), H(s, z, s.bl_tree), G(s, M - 3, 2)) : M <= 10 ? (H(s, x, s.bl_tree), G(s, M - 3, 3)) : (H(s, F, s.bl_tree), G(s, M - 11, 7));
|
|
2178
2178
|
Z = S, rt = (M = 0) === K ? (Y = 138, 3) : S === K ? (Y = 6, 3) : (Y = 7, 4);
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
2181
2181
|
h(j);
|
|
2182
2182
|
var A = !1;
|
|
2183
|
-
function f(s,
|
|
2183
|
+
function f(s, k, N, U) {
|
|
2184
2184
|
G(s, (g << 1) + (U ? 1 : 0), 3), (function(S, Z, K, M) {
|
|
2185
|
-
et(S), X(S, K), X(S, ~K),
|
|
2186
|
-
})(s,
|
|
2185
|
+
et(S), X(S, K), X(S, ~K), u.arraySet(S.pending_buf, S.window, Z, K, S.pending), S.pending += K;
|
|
2186
|
+
})(s, k, N);
|
|
2187
2187
|
}
|
|
2188
|
-
|
|
2188
|
+
w._tr_init = function(s) {
|
|
2189
2189
|
A || ((function() {
|
|
2190
|
-
var
|
|
2191
|
-
for (S = U = 0; S < y - 1; S++) for (
|
|
2192
|
-
for (e[U - 1] = S, S = Z = 0; S < 16; S++) for (j[S] = Z,
|
|
2193
|
-
for (Z >>= 7; S < i; S++) for (j[S] = Z << 7,
|
|
2194
|
-
for (
|
|
2195
|
-
for (
|
|
2196
|
-
for (;
|
|
2197
|
-
for (;
|
|
2198
|
-
for (;
|
|
2199
|
-
for (ot(q, b + 1, K),
|
|
2190
|
+
var k, N, U, S, Z, K = new Array(l + 1);
|
|
2191
|
+
for (S = U = 0; S < y - 1; S++) for (D[S] = U, k = 0; k < 1 << O[S]; k++) e[U++] = S;
|
|
2192
|
+
for (e[U - 1] = S, S = Z = 0; S < 16; S++) for (j[S] = Z, k = 0; k < 1 << L[S]; k++) B[Z++] = S;
|
|
2193
|
+
for (Z >>= 7; S < i; S++) for (j[S] = Z << 7, k = 0; k < 1 << L[S] - 7; k++) B[256 + Z++] = S;
|
|
2194
|
+
for (N = 0; N <= l; N++) K[N] = 0;
|
|
2195
|
+
for (k = 0; k <= 143; ) q[2 * k + 1] = 8, k++, K[8]++;
|
|
2196
|
+
for (; k <= 255; ) q[2 * k + 1] = 9, k++, K[9]++;
|
|
2197
|
+
for (; k <= 279; ) q[2 * k + 1] = 7, k++, K[7]++;
|
|
2198
|
+
for (; k <= 287; ) q[2 * k + 1] = 8, k++, K[8]++;
|
|
2199
|
+
for (ot(q, b + 1, K), k = 0; k < i; k++) m[2 * k + 1] = 5, m[2 * k] = nt(k, 5);
|
|
2200
2200
|
J = new V(q, O, p + 1, b, l), P = new V(m, L, 0, i, l), $ = new V(new Array(0), I, 0, d, c);
|
|
2201
2201
|
})(), 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);
|
|
2202
|
-
},
|
|
2202
|
+
}, w._tr_stored_block = f, w._tr_flush_block = function(s, k, N, U) {
|
|
2203
2203
|
var S, Z, K = 0;
|
|
2204
2204
|
0 < s.level ? (s.strm.data_type === 2 && (s.strm.data_type = (function(M) {
|
|
2205
2205
|
var Y, rt = 4093624447;
|
|
2206
|
-
for (Y = 0; Y <= 31; Y++, rt >>>= 1) if (1 & rt && M.dyn_ltree[2 * Y] !== 0) return
|
|
2206
|
+
for (Y = 0; Y <= 31; Y++, rt >>>= 1) if (1 & rt && M.dyn_ltree[2 * Y] !== 0) return o;
|
|
2207
2207
|
if (M.dyn_ltree[18] !== 0 || M.dyn_ltree[20] !== 0 || M.dyn_ltree[26] !== 0) return n;
|
|
2208
2208
|
for (Y = 32; Y < p; Y++) if (M.dyn_ltree[2 * Y] !== 0) return n;
|
|
2209
|
-
return
|
|
2209
|
+
return o;
|
|
2210
2210
|
})(s)), ht(s, s.l_desc), ht(s, s.d_desc), K = (function(M) {
|
|
2211
2211
|
var Y;
|
|
2212
2212
|
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--) ;
|
|
2213
2213
|
return M.opt_len += 3 * (Y + 1) + 5 + 5 + 4, Y;
|
|
2214
|
-
})(s), S = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= S && (S = Z)) : S = Z =
|
|
2214
|
+
})(s), S = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= S && (S = Z)) : S = Z = N + 5, N + 4 <= S && k !== -1 ? f(s, k, N, U) : s.strategy === 4 || Z === S ? (G(s, 2 + (U ? 1 : 0), 3), lt(s, q, m)) : (G(s, 4 + (U ? 1 : 0), 3), (function(M, Y, rt, tt) {
|
|
2215
2215
|
var ut;
|
|
2216
2216
|
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);
|
|
2217
2217
|
R(M, M.dyn_ltree, Y - 1), R(M, M.dyn_dtree, rt - 1);
|
|
2218
2218
|
})(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), U && et(s);
|
|
2219
|
-
},
|
|
2220
|
-
return s.pending_buf[s.d_buf + 2 * s.last_lit] =
|
|
2221
|
-
},
|
|
2222
|
-
G(s, 2, 3), H(s, v, q), (function(
|
|
2223
|
-
|
|
2219
|
+
}, w._tr_tally = function(s, k, N) {
|
|
2220
|
+
return s.pending_buf[s.d_buf + 2 * s.last_lit] = k >>> 8 & 255, s.pending_buf[s.d_buf + 2 * s.last_lit + 1] = 255 & k, s.pending_buf[s.l_buf + s.last_lit] = 255 & N, s.last_lit++, k === 0 ? s.dyn_ltree[2 * N]++ : (s.matches++, k--, s.dyn_ltree[2 * (e[N] + p + 1)]++, s.dyn_dtree[2 * C(k)]++), s.last_lit === s.lit_bufsize - 1;
|
|
2221
|
+
}, w._tr_align = function(s) {
|
|
2222
|
+
G(s, 2, 3), H(s, v, q), (function(k) {
|
|
2223
|
+
k.bi_valid === 16 ? (X(k, k.bi_buf), k.bi_buf = 0, k.bi_valid = 0) : 8 <= k.bi_valid && (k.pending_buf[k.pending++] = 255 & k.bi_buf, k.bi_buf >>= 8, k.bi_valid -= 8);
|
|
2224
2224
|
})(s);
|
|
2225
2225
|
};
|
|
2226
|
-
}, { "../utils/common": 41 }], 53: [function(_,
|
|
2227
|
-
|
|
2226
|
+
}, { "../utils/common": 41 }], 53: [function(_, T, w) {
|
|
2227
|
+
T.exports = function() {
|
|
2228
2228
|
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;
|
|
2229
2229
|
};
|
|
2230
|
-
}, {}], 54: [function(_,
|
|
2231
|
-
(function(
|
|
2232
|
-
(function(
|
|
2233
|
-
if (!
|
|
2234
|
-
var h, g, y, p, b = 1, i = {}, d = !1, r =
|
|
2235
|
-
l = l && l.setTimeout ? l :
|
|
2230
|
+
}, {}], 54: [function(_, T, w) {
|
|
2231
|
+
(function(u) {
|
|
2232
|
+
(function(o, n) {
|
|
2233
|
+
if (!o.setImmediate) {
|
|
2234
|
+
var h, g, y, p, b = 1, i = {}, d = !1, r = o.document, l = Object.getPrototypeOf && Object.getPrototypeOf(o);
|
|
2235
|
+
l = l && l.setTimeout ? l : o, h = {}.toString.call(o.process) === "[object process]" ? function(z) {
|
|
2236
2236
|
process.nextTick(function() {
|
|
2237
2237
|
c(z);
|
|
2238
2238
|
});
|
|
2239
2239
|
} : (function() {
|
|
2240
|
-
if (
|
|
2241
|
-
var z = !0, x =
|
|
2242
|
-
return
|
|
2240
|
+
if (o.postMessage && !o.importScripts) {
|
|
2241
|
+
var z = !0, x = o.onmessage;
|
|
2242
|
+
return o.onmessage = function() {
|
|
2243
2243
|
z = !1;
|
|
2244
|
-
},
|
|
2244
|
+
}, o.postMessage("", "*"), o.onmessage = x, z;
|
|
2245
2245
|
}
|
|
2246
|
-
})() ? (p = "setImmediate$" + Math.random() + "$",
|
|
2247
|
-
|
|
2248
|
-
}) :
|
|
2246
|
+
})() ? (p = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", v, !1) : o.attachEvent("onmessage", v), function(z) {
|
|
2247
|
+
o.postMessage(p + z, "*");
|
|
2248
|
+
}) : o.MessageChannel ? ((y = new MessageChannel()).port1.onmessage = function(z) {
|
|
2249
2249
|
c(z.data);
|
|
2250
2250
|
}, function(z) {
|
|
2251
2251
|
y.port2.postMessage(z);
|
|
@@ -2258,7 +2258,7 @@ function Dt() {
|
|
|
2258
2258
|
setTimeout(c, 0, z);
|
|
2259
2259
|
}, l.setImmediate = function(z) {
|
|
2260
2260
|
typeof z != "function" && (z = new Function("" + z));
|
|
2261
|
-
for (var x = new Array(arguments.length - 1),
|
|
2261
|
+
for (var x = new Array(arguments.length - 1), F = 0; F < x.length; F++) x[F] = arguments[F + 1];
|
|
2262
2262
|
var O = { callback: z, args: x };
|
|
2263
2263
|
return i[b] = O, h(b), b++;
|
|
2264
2264
|
}, l.clearImmediate = a;
|
|
@@ -2273,8 +2273,8 @@ function Dt() {
|
|
|
2273
2273
|
if (x) {
|
|
2274
2274
|
d = !0;
|
|
2275
2275
|
try {
|
|
2276
|
-
(function(
|
|
2277
|
-
var O =
|
|
2276
|
+
(function(F) {
|
|
2277
|
+
var O = F.callback, L = F.args;
|
|
2278
2278
|
switch (L.length) {
|
|
2279
2279
|
case 0:
|
|
2280
2280
|
O();
|
|
@@ -2299,32 +2299,46 @@ function Dt() {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
}
|
|
2301
2301
|
function v(z) {
|
|
2302
|
-
z.source ===
|
|
2302
|
+
z.source === o && typeof z.data == "string" && z.data.indexOf(p) === 0 && c(+z.data.slice(p.length));
|
|
2303
2303
|
}
|
|
2304
|
-
})(typeof self > "u" ?
|
|
2304
|
+
})(typeof self > "u" ? u === void 0 ? this : u : self);
|
|
2305
2305
|
}).call(this, typeof yt < "u" ? yt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2306
2306
|
}, {}] }, {}, [10])(10);
|
|
2307
2307
|
});
|
|
2308
2308
|
})(xt)), xt.exports;
|
|
2309
2309
|
}
|
|
2310
2310
|
var Ft = Dt();
|
|
2311
|
-
const Nt = /* @__PURE__ */ Bt(Ft), zt = Rt("efp:loader:generateZip");
|
|
2312
|
-
async function
|
|
2313
|
-
const
|
|
2314
|
-
for await (const
|
|
2315
|
-
|
|
2311
|
+
const Nt = /* @__PURE__ */ Bt(Ft), zt = Rt("efp:loader:generateZip"), Ut = 10;
|
|
2312
|
+
async function Pt(dt, pt, _) {
|
|
2313
|
+
const T = /* @__PURE__ */ new Set();
|
|
2314
|
+
for await (const w of dt) {
|
|
2315
|
+
const u = Promise.resolve(_(w)).then(() => {
|
|
2316
|
+
T.delete(u);
|
|
2317
|
+
});
|
|
2318
|
+
T.add(u), T.size >= pt && await Promise.race(T);
|
|
2319
|
+
}
|
|
2320
|
+
await Promise.all(T);
|
|
2321
|
+
}
|
|
2322
|
+
async function Lt(dt, pt) {
|
|
2323
|
+
const _ = new Nt(), T = await Tt(dt);
|
|
2324
|
+
let w = !1;
|
|
2325
|
+
await Pt(T, Ut, (o) => {
|
|
2326
|
+
zt("Adding file to zip:", o.path, "size:", o.data.byteLength), _.file(o.path, o.data), w = !0;
|
|
2327
|
+
});
|
|
2316
2328
|
for (const o of pt != null ? pt : [])
|
|
2317
|
-
zt("Adding extra file to zip:", o.path, "size:", o.data.byteLength), _.file(o.path, o.data);
|
|
2318
|
-
|
|
2319
|
-
|
|
2329
|
+
zt("Adding extra file to zip:", o.path, "size:", o.data.byteLength), _.file(o.path, o.data), w = !0;
|
|
2330
|
+
if (!w)
|
|
2331
|
+
throw new Error("No files were added to the ZIP archive");
|
|
2332
|
+
const u = await _.generateAsync({ type: "blob" });
|
|
2333
|
+
return zt("Generated offline ZIP bundle, size:", u.size), u;
|
|
2320
2334
|
}
|
|
2321
|
-
async function
|
|
2335
|
+
async function Wt(dt, pt) {
|
|
2322
2336
|
if (typeof window > "u" || typeof document > "u")
|
|
2323
2337
|
throw new Error("downloadOfflineZip can only be used in a browser environment");
|
|
2324
|
-
const _ = await
|
|
2325
|
-
|
|
2338
|
+
const _ = await Lt(dt, pt), T = document.createElement("a");
|
|
2339
|
+
T.href = URL.createObjectURL(_), T.download = "offline.zip", T.click(), URL.revokeObjectURL(T.href);
|
|
2326
2340
|
}
|
|
2327
2341
|
export {
|
|
2328
|
-
|
|
2342
|
+
Wt as downloadOfflineZip
|
|
2329
2343
|
};
|
|
2330
|
-
//# sourceMappingURL=downloadOfflineZip-
|
|
2344
|
+
//# sourceMappingURL=downloadOfflineZip-CNz_lUGZ.js.map
|