anytrek-front-public-component 1.13.22 → 1.13.23
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var we = Object.defineProperty;
|
|
2
|
-
var ye = (
|
|
3
|
-
var Ft = (
|
|
2
|
+
var ye = (vt, dt, g) => dt in vt ? we(vt, dt, { enumerable: !0, configurable: !0, writable: !0, value: g }) : vt[dt] = g;
|
|
3
|
+
var Ft = (vt, dt, g) => ye(vt, typeof dt != "symbol" ? dt + "" : dt, g);
|
|
4
4
|
import { ElButton as ke } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
6
6
|
import "element-plus/es/components/button/style/css";
|
|
7
|
-
import {
|
|
8
|
-
import { defineComponent as ze, ref as pt, computed as qt, watch as ae, onMounted as Ae, onBeforeUnmount as Ie,
|
|
9
|
-
import { g as Te, c as Xt, H as
|
|
10
|
-
function $t(
|
|
11
|
-
throw new Error('Could not dynamically require "' +
|
|
7
|
+
import { u as xe, L as ie, _ as Se, a as Ee, b as Ce } from "./index-WQhLcUBu.mjs";
|
|
8
|
+
import { defineComponent as ze, ref as pt, computed as qt, watch as ae, onMounted as Ae, onBeforeUnmount as Ie, createElementBlock as zt, openBlock as At, normalizeStyle as Lt, createElementVNode as ct, createCommentVNode as Gt, toDisplayString as It, unref as se, createVNode as Ot, Transition as oe, withCtx as Kt, withDirectives as Jt, vShow as Qt, withModifiers as Bt, Fragment as le, renderList as ue, normalizeClass as he } from "vue";
|
|
9
|
+
import { g as Te, c as Xt, H as fe, P as Oe } from "./xgplayer-Cpii7T5s.mjs";
|
|
10
|
+
function $t(vt) {
|
|
11
|
+
throw new Error('Could not dynamically require "' + vt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
12
12
|
}
|
|
13
13
|
var pe = { exports: {} };
|
|
14
14
|
/*!
|
|
@@ -22,9 +22,9 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
|
|
|
22
22
|
JSZip uses the library pako released under the MIT license :
|
|
23
23
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
24
24
|
*/
|
|
25
|
-
(function(
|
|
25
|
+
(function(vt, dt) {
|
|
26
26
|
(function(g) {
|
|
27
|
-
|
|
27
|
+
vt.exports = g();
|
|
28
28
|
})(function() {
|
|
29
29
|
return function g(U, y, h) {
|
|
30
30
|
function l(_, b) {
|
|
@@ -37,9 +37,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
37
37
|
throw v.code = "MODULE_NOT_FOUND", v;
|
|
38
38
|
}
|
|
39
39
|
var i = y[_] = { exports: {} };
|
|
40
|
-
U[_][0].call(i.exports, function(
|
|
41
|
-
var n = U[_][1][
|
|
42
|
-
return l(n ||
|
|
40
|
+
U[_][0].call(i.exports, function(c) {
|
|
41
|
+
var n = U[_][1][c];
|
|
42
|
+
return l(n || c);
|
|
43
43
|
}, i, i.exports, g, U, y, h);
|
|
44
44
|
}
|
|
45
45
|
return y[_].exports;
|
|
@@ -49,20 +49,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
49
49
|
}({ 1: [function(g, U, y) {
|
|
50
50
|
var h = g("./utils"), l = g("./support"), r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
51
51
|
y.encode = function(s) {
|
|
52
|
-
for (var _, b, p, v, i,
|
|
52
|
+
for (var _, b, p, v, i, c, n, u = [], a = 0, d = s.length, w = d, S = h.getTypeOf(s) !== "string"; a < s.length; ) w = d - a, p = S ? (_ = s[a++], b = a < d ? s[a++] : 0, a < d ? s[a++] : 0) : (_ = s.charCodeAt(a++), b = a < d ? s.charCodeAt(a++) : 0, a < d ? s.charCodeAt(a++) : 0), v = _ >> 2, i = (3 & _) << 4 | b >> 4, c = 1 < w ? (15 & b) << 2 | p >> 6 : 64, n = 2 < w ? 63 & p : 64, u.push(r.charAt(v) + r.charAt(i) + r.charAt(c) + r.charAt(n));
|
|
53
53
|
return u.join("");
|
|
54
54
|
}, y.decode = function(s) {
|
|
55
|
-
var _, b, p, v, i,
|
|
55
|
+
var _, b, p, v, i, c, n = 0, u = 0, a = "data:";
|
|
56
56
|
if (s.substr(0, a.length) === a) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
57
57
|
var d, w = 3 * (s = s.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
58
58
|
if (s.charAt(s.length - 1) === r.charAt(64) && w--, s.charAt(s.length - 2) === r.charAt(64) && w--, w % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
59
|
-
for (d = l.uint8array ? new Uint8Array(0 | w) : new Array(0 | w); n < s.length; ) _ = r.indexOf(s.charAt(n++)) << 2 | (v = r.indexOf(s.charAt(n++))) >> 4, b = (15 & v) << 4 | (i = r.indexOf(s.charAt(n++))) >> 2, p = (3 & i) << 6 | (
|
|
59
|
+
for (d = l.uint8array ? new Uint8Array(0 | w) : new Array(0 | w); n < s.length; ) _ = r.indexOf(s.charAt(n++)) << 2 | (v = r.indexOf(s.charAt(n++))) >> 4, b = (15 & v) << 4 | (i = r.indexOf(s.charAt(n++))) >> 2, p = (3 & i) << 6 | (c = r.indexOf(s.charAt(n++))), d[u++] = _, i !== 64 && (d[u++] = b), c !== 64 && (d[u++] = p);
|
|
60
60
|
return d;
|
|
61
61
|
};
|
|
62
62
|
}, { "./support": 30, "./utils": 32 }], 2: [function(g, U, y) {
|
|
63
63
|
var h = g("./external"), l = g("./stream/DataWorker"), r = g("./stream/Crc32Probe"), s = g("./stream/DataLengthProbe");
|
|
64
|
-
function _(b, p, v, i,
|
|
65
|
-
this.compressedSize = b, this.uncompressedSize = p, this.crc32 = v, this.compression = i, this.compressedContent =
|
|
64
|
+
function _(b, p, v, i, c) {
|
|
65
|
+
this.compressedSize = b, this.uncompressedSize = p, this.crc32 = v, this.compression = i, this.compressedContent = c;
|
|
66
66
|
}
|
|
67
67
|
_.prototype = { getContentWorker: function() {
|
|
68
68
|
var b = new l(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")), p = this;
|
|
@@ -92,14 +92,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
92
92
|
}();
|
|
93
93
|
U.exports = function(r, s) {
|
|
94
94
|
return r !== void 0 && r.length ? h.getTypeOf(r) !== "string" ? function(_, b, p, v) {
|
|
95
|
-
var i = l,
|
|
95
|
+
var i = l, c = v + p;
|
|
96
96
|
_ ^= -1;
|
|
97
|
-
for (var n = v; n <
|
|
97
|
+
for (var n = v; n < c; n++) _ = _ >>> 8 ^ i[255 & (_ ^ b[n])];
|
|
98
98
|
return -1 ^ _;
|
|
99
99
|
}(0 | s, r, r.length, 0) : function(_, b, p, v) {
|
|
100
|
-
var i = l,
|
|
100
|
+
var i = l, c = v + p;
|
|
101
101
|
_ ^= -1;
|
|
102
|
-
for (var n = v; n <
|
|
102
|
+
for (var n = v; n < c; n++) _ = _ >>> 8 ^ i[255 & (_ ^ b.charCodeAt(n))];
|
|
103
103
|
return -1 ^ _;
|
|
104
104
|
}(0 | s, r, r.length, 0) : 0;
|
|
105
105
|
};
|
|
@@ -131,81 +131,81 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
131
131
|
return new b("Inflate", {});
|
|
132
132
|
};
|
|
133
133
|
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(g, U, y) {
|
|
134
|
-
function h(i,
|
|
134
|
+
function h(i, c) {
|
|
135
135
|
var n, u = "";
|
|
136
|
-
for (n = 0; n <
|
|
136
|
+
for (n = 0; n < c; n++) u += String.fromCharCode(255 & i), i >>>= 8;
|
|
137
137
|
return u;
|
|
138
138
|
}
|
|
139
|
-
function l(i,
|
|
140
|
-
var w, S, x = i.file,
|
|
141
|
-
|
|
139
|
+
function l(i, c, n, u, a, d) {
|
|
140
|
+
var w, S, x = i.file, R = i.compression, T = d !== _.utf8encode, M = r.transformTo("string", d(x.name)), I = r.transformTo("string", _.utf8encode(x.name)), W = x.comment, J = r.transformTo("string", d(W)), m = r.transformTo("string", _.utf8encode(W)), O = I.length !== x.name.length, e = m.length !== W.length, F = "", rt = "", P = "", nt = x.dir, Z = x.date, Q = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
141
|
+
c && !n || (Q.crc32 = i.crc32, Q.compressedSize = i.compressedSize, Q.uncompressedSize = i.uncompressedSize);
|
|
142
142
|
var A = 0;
|
|
143
|
-
|
|
143
|
+
c && (A |= 8), T || !O && !e || (A |= 2048);
|
|
144
144
|
var C = 0, tt = 0;
|
|
145
145
|
nt && (C |= 16), a === "UNIX" ? (tt = 798, C |= function(K, lt) {
|
|
146
|
-
var
|
|
147
|
-
return K || (
|
|
146
|
+
var gt = K;
|
|
147
|
+
return K || (gt = lt ? 16893 : 33204), (65535 & gt) << 16;
|
|
148
148
|
}(x.unixPermissions, nt)) : (tt = 20, C |= function(K) {
|
|
149
149
|
return 63 & (K || 0);
|
|
150
150
|
}(x.dosPermissions)), w = Z.getUTCHours(), w <<= 6, w |= Z.getUTCMinutes(), w <<= 5, w |= Z.getUTCSeconds() / 2, S = Z.getUTCFullYear() - 1980, S <<= 4, S |= Z.getUTCMonth() + 1, S <<= 5, S |= Z.getUTCDate(), O && (rt = h(1, 1) + h(b(M), 4) + I, F += "up" + h(rt.length, 2) + rt), e && (P = h(1, 1) + h(b(J), 4) + m, F += "uc" + h(P.length, 2) + P);
|
|
151
151
|
var X = "";
|
|
152
152
|
return X += `
|
|
153
|
-
\0`, X += h(A, 2), X +=
|
|
153
|
+
\0`, X += h(A, 2), X += R.magic, X += h(w, 2), X += h(S, 2), X += h(Q.crc32, 4), X += h(Q.compressedSize, 4), X += h(Q.uncompressedSize, 4), X += h(M.length, 2), X += h(F.length, 2), { fileRecord: p.LOCAL_FILE_HEADER + X + M + F, dirRecord: p.CENTRAL_FILE_HEADER + h(tt, 2) + X + h(J.length, 2) + "\0\0\0\0" + h(C, 4) + h(u, 4) + M + F + J };
|
|
154
154
|
}
|
|
155
155
|
var r = g("../utils"), s = g("../stream/GenericWorker"), _ = g("../utf8"), b = g("../crc32"), p = g("../signature");
|
|
156
|
-
function v(i,
|
|
157
|
-
s.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment =
|
|
156
|
+
function v(i, c, n, u) {
|
|
157
|
+
s.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = c, this.zipPlatform = n, this.encodeFileName = u, this.streamFiles = i, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
158
158
|
}
|
|
159
159
|
r.inherits(v, s), v.prototype.push = function(i) {
|
|
160
|
-
var
|
|
161
|
-
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, s.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: n ? (
|
|
160
|
+
var c = i.meta.percent || 0, n = this.entriesCount, u = this._sources.length;
|
|
161
|
+
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, s.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: n ? (c + 100 * (n - u - 1)) / n : 100 } }));
|
|
162
162
|
}, v.prototype.openedSource = function(i) {
|
|
163
163
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
|
|
164
|
-
var
|
|
165
|
-
if (
|
|
166
|
-
var n = l(i,
|
|
164
|
+
var c = this.streamFiles && !i.file.dir;
|
|
165
|
+
if (c) {
|
|
166
|
+
var n = l(i, c, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
167
167
|
this.push({ data: n.fileRecord, meta: { percent: 0 } });
|
|
168
168
|
} else this.accumulate = !0;
|
|
169
169
|
}, v.prototype.closedSource = function(i) {
|
|
170
170
|
this.accumulate = !1;
|
|
171
|
-
var
|
|
172
|
-
if (this.dirRecords.push(n.dirRecord),
|
|
171
|
+
var c = this.streamFiles && !i.file.dir, n = l(i, c, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
172
|
+
if (this.dirRecords.push(n.dirRecord), c) this.push({ data: function(u) {
|
|
173
173
|
return p.DATA_DESCRIPTOR + h(u.crc32, 4) + h(u.compressedSize, 4) + h(u.uncompressedSize, 4);
|
|
174
174
|
}(i), meta: { percent: 100 } });
|
|
175
175
|
else for (this.push({ data: n.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
176
176
|
this.currentFile = null;
|
|
177
177
|
}, v.prototype.flush = function() {
|
|
178
|
-
for (var i = this.bytesWritten,
|
|
178
|
+
for (var i = this.bytesWritten, c = 0; c < this.dirRecords.length; c++) this.push({ data: this.dirRecords[c], meta: { percent: 100 } });
|
|
179
179
|
var n = this.bytesWritten - i, u = function(a, d, w, S, x) {
|
|
180
|
-
var
|
|
181
|
-
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" + h(a, 2) + h(a, 2) + h(d, 4) + h(w, 4) + h(
|
|
180
|
+
var R = r.transformTo("string", x(S));
|
|
181
|
+
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" + h(a, 2) + h(a, 2) + h(d, 4) + h(w, 4) + h(R.length, 2) + R;
|
|
182
182
|
}(this.dirRecords.length, n, i, this.zipComment, this.encodeFileName);
|
|
183
183
|
this.push({ data: u, meta: { percent: 100 } });
|
|
184
184
|
}, v.prototype.prepareNextSource = function() {
|
|
185
185
|
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
186
186
|
}, v.prototype.registerPrevious = function(i) {
|
|
187
187
|
this._sources.push(i);
|
|
188
|
-
var
|
|
188
|
+
var c = this;
|
|
189
189
|
return i.on("data", function(n) {
|
|
190
|
-
|
|
190
|
+
c.processChunk(n);
|
|
191
191
|
}), i.on("end", function() {
|
|
192
|
-
|
|
192
|
+
c.closedSource(c.previous.streamInfo), c._sources.length ? c.prepareNextSource() : c.end();
|
|
193
193
|
}), i.on("error", function(n) {
|
|
194
|
-
|
|
194
|
+
c.error(n);
|
|
195
195
|
}), this;
|
|
196
196
|
}, v.prototype.resume = function() {
|
|
197
197
|
return !!s.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
198
198
|
}, v.prototype.error = function(i) {
|
|
199
|
-
var
|
|
199
|
+
var c = this._sources;
|
|
200
200
|
if (!s.prototype.error.call(this, i)) return !1;
|
|
201
|
-
for (var n = 0; n <
|
|
202
|
-
|
|
201
|
+
for (var n = 0; n < c.length; n++) try {
|
|
202
|
+
c[n].error(i);
|
|
203
203
|
} catch {
|
|
204
204
|
}
|
|
205
205
|
return !0;
|
|
206
206
|
}, v.prototype.lock = function() {
|
|
207
207
|
s.prototype.lock.call(this);
|
|
208
|
-
for (var i = this._sources,
|
|
208
|
+
for (var i = this._sources, c = 0; c < i.length; c++) i[c].lock();
|
|
209
209
|
}, U.exports = v;
|
|
210
210
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(g, U, y) {
|
|
211
211
|
var h = g("../compressions"), l = g("./ZipFileWorker");
|
|
@@ -214,12 +214,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
214
214
|
try {
|
|
215
215
|
r.forEach(function(v, i) {
|
|
216
216
|
p++;
|
|
217
|
-
var
|
|
217
|
+
var c = function(d, w) {
|
|
218
218
|
var S = d || w, x = h[S];
|
|
219
219
|
if (!x) throw new Error(S + " is not a valid compression method !");
|
|
220
220
|
return x;
|
|
221
221
|
}(i.options.compression, s.compression), n = i.options.compressionOptions || s.compressionOptions || {}, u = i.dir, a = i.date;
|
|
222
|
-
i._compressWorker(
|
|
222
|
+
i._compressWorker(c, n).withStreamInfo("file", { name: v, dir: u, date: a, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(b);
|
|
223
223
|
}), b.entriesCount = p;
|
|
224
224
|
} catch (v) {
|
|
225
225
|
b.error(v);
|
|
@@ -242,17 +242,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
242
242
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(g, U, y) {
|
|
243
243
|
var h = g("./utils"), l = g("./external"), r = g("./utf8"), s = g("./zipEntries"), _ = g("./stream/Crc32Probe"), b = g("./nodejsUtils");
|
|
244
244
|
function p(v) {
|
|
245
|
-
return new l.Promise(function(i,
|
|
245
|
+
return new l.Promise(function(i, c) {
|
|
246
246
|
var n = v.decompressed.getContentWorker().pipe(new _());
|
|
247
247
|
n.on("error", function(u) {
|
|
248
|
-
|
|
248
|
+
c(u);
|
|
249
249
|
}).on("end", function() {
|
|
250
|
-
n.streamInfo.crc32 !== v.decompressed.crc32 ?
|
|
250
|
+
n.streamInfo.crc32 !== v.decompressed.crc32 ? c(new Error("Corrupted zip : CRC32 mismatch")) : i();
|
|
251
251
|
}).resume();
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
U.exports = function(v, i) {
|
|
255
|
-
var
|
|
255
|
+
var c = this;
|
|
256
256
|
return i = h.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: r.utf8decode }), b.isNode && b.isStream(v) ? l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : h.prepareContent("the loaded zip file", v, !0, i.optimizedBinaryString, i.base64).then(function(n) {
|
|
257
257
|
var u = new s(i);
|
|
258
258
|
return u.load(n), u;
|
|
@@ -263,9 +263,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
263
263
|
}).then(function(n) {
|
|
264
264
|
for (var u = n.shift(), a = u.files, d = 0; d < a.length; d++) {
|
|
265
265
|
var w = a[d], S = w.fileNameStr, x = h.resolve(w.fileNameStr);
|
|
266
|
-
|
|
266
|
+
c.file(x, w.decompressed, { binary: !0, optimizedBinaryString: !0, date: w.date, dir: w.dir, comment: w.fileCommentStr.length ? w.fileCommentStr : null, unixPermissions: w.unixPermissions, dosPermissions: w.dosPermissions, createFolders: i.createFolders }), w.dir || (c.file(x).unsafeOriginalName = S);
|
|
267
267
|
}
|
|
268
|
-
return u.zipComment.length && (
|
|
268
|
+
return u.zipComment.length && (c.comment = u.zipComment), c;
|
|
269
269
|
});
|
|
270
270
|
};
|
|
271
271
|
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(g, U, y) {
|
|
@@ -318,24 +318,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
318
318
|
return h && typeof h.on == "function" && typeof h.pause == "function" && typeof h.resume == "function";
|
|
319
319
|
} };
|
|
320
320
|
}, {}], 15: [function(g, U, y) {
|
|
321
|
-
function h(x,
|
|
322
|
-
var M, I = r.getTypeOf(
|
|
321
|
+
function h(x, R, T) {
|
|
322
|
+
var M, I = r.getTypeOf(R), W = r.extend(T || {}, b);
|
|
323
323
|
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 && (M = u(x)) && d.call(this, M, !0);
|
|
324
324
|
var J = I === "string" && W.binary === !1 && W.base64 === !1;
|
|
325
|
-
T && T.binary !== void 0 || (W.binary = !J), (
|
|
325
|
+
T && T.binary !== void 0 || (W.binary = !J), (R instanceof p && R.uncompressedSize === 0 || W.dir || !R || R.length === 0) && (W.base64 = !1, W.binary = !0, R = "", W.compression = "STORE", I = "string");
|
|
326
326
|
var m = null;
|
|
327
|
-
m =
|
|
327
|
+
m = R instanceof p || R instanceof s ? R : c.isNode && c.isStream(R) ? new n(x, R) : r.prepareContent(x, R, W.binary, W.optimizedBinaryString, W.base64);
|
|
328
328
|
var O = new v(x, m, W);
|
|
329
329
|
this.files[x] = O;
|
|
330
330
|
}
|
|
331
|
-
var l = g("./utf8"), r = g("./utils"), s = g("./stream/GenericWorker"), _ = g("./stream/StreamHelper"), b = g("./defaults"), p = g("./compressedObject"), v = g("./zipObject"), i = g("./generate"),
|
|
331
|
+
var l = g("./utf8"), r = g("./utils"), s = g("./stream/GenericWorker"), _ = g("./stream/StreamHelper"), b = g("./defaults"), p = g("./compressedObject"), v = g("./zipObject"), i = g("./generate"), c = g("./nodejsUtils"), n = g("./nodejs/NodejsStreamInputAdapter"), u = function(x) {
|
|
332
332
|
x.slice(-1) === "/" && (x = x.substring(0, x.length - 1));
|
|
333
|
-
var
|
|
334
|
-
return 0 <
|
|
333
|
+
var R = x.lastIndexOf("/");
|
|
334
|
+
return 0 < R ? x.substring(0, R) : "";
|
|
335
335
|
}, a = function(x) {
|
|
336
336
|
return x.slice(-1) !== "/" && (x += "/"), x;
|
|
337
|
-
}, d = function(x,
|
|
338
|
-
return
|
|
337
|
+
}, d = function(x, R) {
|
|
338
|
+
return R = R !== void 0 ? R : b.createFolders, x = a(x), this.files[x] || h.call(this, x, null, { dir: !0, createFolders: R }), this.files[x];
|
|
339
339
|
};
|
|
340
340
|
function w(x) {
|
|
341
341
|
return Object.prototype.toString.call(x) === "[object RegExp]";
|
|
@@ -343,15 +343,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
343
343
|
var S = { load: function() {
|
|
344
344
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
345
345
|
}, forEach: function(x) {
|
|
346
|
-
var
|
|
347
|
-
for (
|
|
346
|
+
var R, T, M;
|
|
347
|
+
for (R in this.files) M = this.files[R], (T = R.slice(this.root.length, R.length)) && R.slice(0, this.root.length) === this.root && x(T, M);
|
|
348
348
|
}, filter: function(x) {
|
|
349
|
-
var
|
|
349
|
+
var R = [];
|
|
350
350
|
return this.forEach(function(T, M) {
|
|
351
|
-
x(T, M) &&
|
|
352
|
-
}),
|
|
353
|
-
}, file: function(x,
|
|
354
|
-
if (arguments.length !== 1) return x = this.root + x, h.call(this, x,
|
|
351
|
+
x(T, M) && R.push(M);
|
|
352
|
+
}), R;
|
|
353
|
+
}, file: function(x, R, T) {
|
|
354
|
+
if (arguments.length !== 1) return x = this.root + x, h.call(this, x, R, T), this;
|
|
355
355
|
if (w(x)) {
|
|
356
356
|
var M = x;
|
|
357
357
|
return this.filter(function(W, J) {
|
|
@@ -365,12 +365,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
365
365
|
if (w(x)) return this.filter(function(I, W) {
|
|
366
366
|
return W.dir && x.test(I);
|
|
367
367
|
});
|
|
368
|
-
var
|
|
368
|
+
var R = this.root + x, T = d.call(this, R), M = this.clone();
|
|
369
369
|
return M.root = T.name, M;
|
|
370
370
|
}, remove: function(x) {
|
|
371
371
|
x = this.root + x;
|
|
372
|
-
var
|
|
373
|
-
if (
|
|
372
|
+
var R = this.files[x];
|
|
373
|
+
if (R || (x.slice(-1) !== "/" && (x += "/"), R = this.files[x]), R && !R.dir) delete this.files[x];
|
|
374
374
|
else for (var T = this.filter(function(I, W) {
|
|
375
375
|
return W.name.slice(0, x.length) === x;
|
|
376
376
|
}), M = 0; M < T.length; M++) delete this.files[T[M].name];
|
|
@@ -378,20 +378,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
378
378
|
}, generate: function() {
|
|
379
379
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
380
380
|
}, generateInternalStream: function(x) {
|
|
381
|
-
var
|
|
381
|
+
var R, T = {};
|
|
382
382
|
try {
|
|
383
383
|
if ((T = r.extend(x || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: l.utf8encode })).type = T.type.toLowerCase(), T.compression = T.compression.toUpperCase(), T.type === "binarystring" && (T.type = "string"), !T.type) throw new Error("No output type specified.");
|
|
384
384
|
r.checkSupport(T.type), T.platform !== "darwin" && T.platform !== "freebsd" && T.platform !== "linux" && T.platform !== "sunos" || (T.platform = "UNIX"), T.platform === "win32" && (T.platform = "DOS");
|
|
385
385
|
var M = T.comment || this.comment || "";
|
|
386
|
-
|
|
386
|
+
R = i.generateWorker(this, T, M);
|
|
387
387
|
} catch (I) {
|
|
388
|
-
(
|
|
388
|
+
(R = new s("error")).error(I);
|
|
389
389
|
}
|
|
390
|
-
return new _(
|
|
391
|
-
}, generateAsync: function(x,
|
|
392
|
-
return this.generateInternalStream(x).accumulate(
|
|
393
|
-
}, generateNodeStream: function(x,
|
|
394
|
-
return (x = x || {}).type || (x.type = "nodebuffer"), this.generateInternalStream(x).toNodejsStream(
|
|
390
|
+
return new _(R, T.type || "string", T.mimeType);
|
|
391
|
+
}, generateAsync: function(x, R) {
|
|
392
|
+
return this.generateInternalStream(x).accumulate(R);
|
|
393
|
+
}, generateNodeStream: function(x, R) {
|
|
394
|
+
return (x = x || {}).type || (x.type = "nodebuffer"), this.generateInternalStream(x).toNodejsStream(R);
|
|
395
395
|
} };
|
|
396
396
|
U.exports = S;
|
|
397
397
|
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(g, U, y) {
|
|
@@ -610,16 +610,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
610
610
|
p = g("../nodejs/NodejsStreamOutputAdapter");
|
|
611
611
|
} catch {
|
|
612
612
|
}
|
|
613
|
-
function v(
|
|
613
|
+
function v(c, n) {
|
|
614
614
|
return new b.Promise(function(u, a) {
|
|
615
|
-
var d = [], w =
|
|
616
|
-
|
|
617
|
-
d.push(
|
|
618
|
-
}).on("error", function(
|
|
619
|
-
d = [], a(
|
|
615
|
+
var d = [], w = c._internalType, S = c._outputType, x = c._mimeType;
|
|
616
|
+
c.on("data", function(R, T) {
|
|
617
|
+
d.push(R), n && n(T);
|
|
618
|
+
}).on("error", function(R) {
|
|
619
|
+
d = [], a(R);
|
|
620
620
|
}).on("end", function() {
|
|
621
621
|
try {
|
|
622
|
-
var
|
|
622
|
+
var R = function(T, M, I) {
|
|
623
623
|
switch (T) {
|
|
624
624
|
case "blob":
|
|
625
625
|
return h.newBlob(h.transformTo("arraybuffer", M), I);
|
|
@@ -645,7 +645,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
645
645
|
throw new Error("concat : unsupported type '" + T + "'");
|
|
646
646
|
}
|
|
647
647
|
}(w, d), x);
|
|
648
|
-
u(
|
|
648
|
+
u(R);
|
|
649
649
|
} catch (T) {
|
|
650
650
|
a(T);
|
|
651
651
|
}
|
|
@@ -653,7 +653,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
653
653
|
}).resume();
|
|
654
654
|
});
|
|
655
655
|
}
|
|
656
|
-
function i(
|
|
656
|
+
function i(c, n, u) {
|
|
657
657
|
var a = n;
|
|
658
658
|
switch (n) {
|
|
659
659
|
case "blob":
|
|
@@ -664,27 +664,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
664
664
|
a = "string";
|
|
665
665
|
}
|
|
666
666
|
try {
|
|
667
|
-
this._internalType = a, this._outputType = n, this._mimeType = u, h.checkSupport(a), this._worker =
|
|
667
|
+
this._internalType = a, this._outputType = n, this._mimeType = u, h.checkSupport(a), this._worker = c.pipe(new l(a)), c.lock();
|
|
668
668
|
} catch (d) {
|
|
669
669
|
this._worker = new r("error"), this._worker.error(d);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
i.prototype = { accumulate: function(
|
|
673
|
-
return v(this,
|
|
674
|
-
}, on: function(
|
|
672
|
+
i.prototype = { accumulate: function(c) {
|
|
673
|
+
return v(this, c);
|
|
674
|
+
}, on: function(c, n) {
|
|
675
675
|
var u = this;
|
|
676
|
-
return
|
|
676
|
+
return c === "data" ? this._worker.on(c, function(a) {
|
|
677
677
|
n.call(u, a.data, a.meta);
|
|
678
|
-
}) : this._worker.on(
|
|
678
|
+
}) : this._worker.on(c, function() {
|
|
679
679
|
h.delay(n, arguments, u);
|
|
680
680
|
}), this;
|
|
681
681
|
}, resume: function() {
|
|
682
682
|
return h.delay(this._worker.resume, [], this._worker), this;
|
|
683
683
|
}, pause: function() {
|
|
684
684
|
return this._worker.pause(), this;
|
|
685
|
-
}, toNodejsStream: function(
|
|
685
|
+
}, toNodejsStream: function(c) {
|
|
686
686
|
if (h.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
687
|
-
return new p(this, { objectMode: this._outputType !== "nodebuffer" },
|
|
687
|
+
return new p(this, { objectMode: this._outputType !== "nodebuffer" }, c);
|
|
688
688
|
} }, U.exports = i;
|
|
689
689
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(g, U, y) {
|
|
690
690
|
if (y.base64 = !0, y.array = !0, y.string = !0, y.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", y.nodebuffer = typeof Buffer < "u", y.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") y.blob = !1;
|
|
@@ -716,38 +716,38 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
716
716
|
s.call(this, "utf-8 encode");
|
|
717
717
|
}
|
|
718
718
|
y.utf8encode = function(i) {
|
|
719
|
-
return l.nodebuffer ? r.newBufferFrom(i, "utf-8") : function(
|
|
720
|
-
var n, u, a, d, w, S =
|
|
721
|
-
for (d = 0; d < S; d++) (64512 & (u =
|
|
722
|
-
for (n = l.uint8array ? new Uint8Array(x) : new Array(x), d = w = 0; w < x; d++) (64512 & (u =
|
|
719
|
+
return l.nodebuffer ? r.newBufferFrom(i, "utf-8") : function(c) {
|
|
720
|
+
var n, u, a, d, w, S = c.length, x = 0;
|
|
721
|
+
for (d = 0; d < S; d++) (64512 & (u = c.charCodeAt(d))) == 55296 && d + 1 < S && (64512 & (a = c.charCodeAt(d + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), d++), x += u < 128 ? 1 : u < 2048 ? 2 : u < 65536 ? 3 : 4;
|
|
722
|
+
for (n = l.uint8array ? new Uint8Array(x) : new Array(x), d = w = 0; w < x; d++) (64512 & (u = c.charCodeAt(d))) == 55296 && d + 1 < S && (64512 & (a = c.charCodeAt(d + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), d++), u < 128 ? n[w++] = u : (u < 2048 ? n[w++] = 192 | u >>> 6 : (u < 65536 ? n[w++] = 224 | u >>> 12 : (n[w++] = 240 | u >>> 18, n[w++] = 128 | u >>> 12 & 63), n[w++] = 128 | u >>> 6 & 63), n[w++] = 128 | 63 & u);
|
|
723
723
|
return n;
|
|
724
724
|
}(i);
|
|
725
725
|
}, y.utf8decode = function(i) {
|
|
726
|
-
return l.nodebuffer ? h.transformTo("nodebuffer", i).toString("utf-8") : function(
|
|
727
|
-
var n, u, a, d, w =
|
|
728
|
-
for (n = u = 0; n < w; ) if ((a =
|
|
726
|
+
return l.nodebuffer ? h.transformTo("nodebuffer", i).toString("utf-8") : function(c) {
|
|
727
|
+
var n, u, a, d, w = c.length, S = new Array(2 * w);
|
|
728
|
+
for (n = u = 0; n < w; ) if ((a = c[n++]) < 128) S[u++] = a;
|
|
729
729
|
else if (4 < (d = _[a])) S[u++] = 65533, n += d - 1;
|
|
730
730
|
else {
|
|
731
|
-
for (a &= d === 2 ? 31 : d === 3 ? 15 : 7; 1 < d && n < w; ) a = a << 6 | 63 &
|
|
731
|
+
for (a &= d === 2 ? 31 : d === 3 ? 15 : 7; 1 < d && n < w; ) a = a << 6 | 63 & c[n++], d--;
|
|
732
732
|
1 < d ? S[u++] = 65533 : a < 65536 ? S[u++] = a : (a -= 65536, S[u++] = 55296 | a >> 10 & 1023, S[u++] = 56320 | 1023 & a);
|
|
733
733
|
}
|
|
734
734
|
return S.length !== u && (S.subarray ? S = S.subarray(0, u) : S.length = u), h.applyFromCharCode(S);
|
|
735
735
|
}(i = h.transformTo(l.uint8array ? "uint8array" : "array", i));
|
|
736
736
|
}, h.inherits(p, s), p.prototype.processChunk = function(i) {
|
|
737
|
-
var
|
|
737
|
+
var c = h.transformTo(l.uint8array ? "uint8array" : "array", i.data);
|
|
738
738
|
if (this.leftOver && this.leftOver.length) {
|
|
739
739
|
if (l.uint8array) {
|
|
740
|
-
var n =
|
|
741
|
-
(
|
|
742
|
-
} else
|
|
740
|
+
var n = c;
|
|
741
|
+
(c = new Uint8Array(n.length + this.leftOver.length)).set(this.leftOver, 0), c.set(n, this.leftOver.length);
|
|
742
|
+
} else c = this.leftOver.concat(c);
|
|
743
743
|
this.leftOver = null;
|
|
744
744
|
}
|
|
745
745
|
var u = function(d, w) {
|
|
746
746
|
var S;
|
|
747
747
|
for ((w = w || d.length) > d.length && (w = d.length), S = w - 1; 0 <= S && (192 & d[S]) == 128; ) S--;
|
|
748
748
|
return S < 0 || S === 0 ? w : S + _[d[S]] > w ? S : w;
|
|
749
|
-
}(
|
|
750
|
-
u !==
|
|
749
|
+
}(c), a = c;
|
|
750
|
+
u !== c.length && (l.uint8array ? (a = c.subarray(0, u), this.leftOver = c.subarray(u, c.length)) : (a = c.slice(0, u), this.leftOver = c.slice(u, c.length))), this.push({ data: y.utf8decode(a), meta: i.meta });
|
|
751
751
|
}, p.prototype.flush = function() {
|
|
752
752
|
this.leftOver && this.leftOver.length && (this.push({ data: y.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
753
753
|
}, y.Utf8DecodeWorker = p, h.inherits(v, s), v.prototype.processChunk = function(i) {
|
|
@@ -810,22 +810,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
810
810
|
return u;
|
|
811
811
|
}
|
|
812
812
|
y.applyFromCharCode = v;
|
|
813
|
-
var
|
|
814
|
-
|
|
813
|
+
var c = {};
|
|
814
|
+
c.string = { string: _, array: function(n) {
|
|
815
815
|
return b(n, new Array(n.length));
|
|
816
816
|
}, arraybuffer: function(n) {
|
|
817
|
-
return
|
|
817
|
+
return c.string.uint8array(n).buffer;
|
|
818
818
|
}, uint8array: function(n) {
|
|
819
819
|
return b(n, new Uint8Array(n.length));
|
|
820
820
|
}, nodebuffer: function(n) {
|
|
821
821
|
return b(n, r.allocBuffer(n.length));
|
|
822
|
-
} },
|
|
822
|
+
} }, c.array = { string: v, array: _, arraybuffer: function(n) {
|
|
823
823
|
return new Uint8Array(n).buffer;
|
|
824
824
|
}, uint8array: function(n) {
|
|
825
825
|
return new Uint8Array(n);
|
|
826
826
|
}, nodebuffer: function(n) {
|
|
827
827
|
return r.newBufferFrom(n);
|
|
828
|
-
} },
|
|
828
|
+
} }, c.arraybuffer = { string: function(n) {
|
|
829
829
|
return v(new Uint8Array(n));
|
|
830
830
|
}, array: function(n) {
|
|
831
831
|
return i(new Uint8Array(n), new Array(n.byteLength));
|
|
@@ -833,23 +833,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
833
833
|
return new Uint8Array(n);
|
|
834
834
|
}, nodebuffer: function(n) {
|
|
835
835
|
return r.newBufferFrom(new Uint8Array(n));
|
|
836
|
-
} },
|
|
836
|
+
} }, c.uint8array = { string: v, array: function(n) {
|
|
837
837
|
return i(n, new Array(n.length));
|
|
838
838
|
}, arraybuffer: function(n) {
|
|
839
839
|
return n.buffer;
|
|
840
840
|
}, uint8array: _, nodebuffer: function(n) {
|
|
841
841
|
return r.newBufferFrom(n);
|
|
842
|
-
} },
|
|
842
|
+
} }, c.nodebuffer = { string: v, array: function(n) {
|
|
843
843
|
return i(n, new Array(n.length));
|
|
844
844
|
}, arraybuffer: function(n) {
|
|
845
|
-
return
|
|
845
|
+
return c.nodebuffer.uint8array(n).buffer;
|
|
846
846
|
}, uint8array: function(n) {
|
|
847
847
|
return i(n, new Uint8Array(n.length));
|
|
848
848
|
}, nodebuffer: _ }, y.transformTo = function(n, u) {
|
|
849
849
|
if (u = u || "", !n) return u;
|
|
850
850
|
y.checkSupport(n);
|
|
851
851
|
var a = y.getTypeOf(u);
|
|
852
|
-
return
|
|
852
|
+
return c[a][n](u);
|
|
853
853
|
}, y.resolve = function(n) {
|
|
854
854
|
for (var u = n.split("/"), a = [], d = 0; d < u.length; d++) {
|
|
855
855
|
var w = u[d];
|
|
@@ -878,18 +878,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
878
878
|
return a;
|
|
879
879
|
}, y.prepareContent = function(n, u, a, d, w) {
|
|
880
880
|
return s.Promise.resolve(u).then(function(S) {
|
|
881
|
-
return h.blob && (S instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(S)) !== -1) && typeof FileReader < "u" ? new s.Promise(function(x,
|
|
881
|
+
return h.blob && (S instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(S)) !== -1) && typeof FileReader < "u" ? new s.Promise(function(x, R) {
|
|
882
882
|
var T = new FileReader();
|
|
883
883
|
T.onload = function(M) {
|
|
884
884
|
x(M.target.result);
|
|
885
885
|
}, T.onerror = function(M) {
|
|
886
|
-
|
|
886
|
+
R(M.target.error);
|
|
887
887
|
}, T.readAsArrayBuffer(S);
|
|
888
888
|
}) : S;
|
|
889
889
|
}).then(function(S) {
|
|
890
890
|
var x = y.getTypeOf(S);
|
|
891
|
-
return x ? (x === "arraybuffer" ? S = y.transformTo("uint8array", S) : x === "string" && (w ? S = l.decode(S) : a && d !== !0 && (S = function(
|
|
892
|
-
return b(
|
|
891
|
+
return x ? (x === "arraybuffer" ? S = y.transformTo("uint8array", S) : x === "string" && (w ? S = l.decode(S) : a && d !== !0 && (S = function(R) {
|
|
892
|
+
return b(R, h.uint8array ? new Uint8Array(R.length) : new Array(R.length));
|
|
893
893
|
}(S))), S) : s.Promise.reject(new Error("Can't read the data of '" + n + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
894
894
|
});
|
|
895
895
|
};
|
|
@@ -907,15 +907,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
907
907
|
}, isSignature: function(p, v) {
|
|
908
908
|
var i = this.reader.index;
|
|
909
909
|
this.reader.setIndex(p);
|
|
910
|
-
var
|
|
911
|
-
return this.reader.setIndex(i),
|
|
910
|
+
var c = this.reader.readString(4) === v;
|
|
911
|
+
return this.reader.setIndex(i), c;
|
|
912
912
|
}, readBlockEndOfCentral: function() {
|
|
913
913
|
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);
|
|
914
914
|
var p = this.reader.readData(this.zipCommentLength), v = _.uint8array ? "uint8array" : "array", i = l.transformTo(v, p);
|
|
915
915
|
this.zipComment = this.loadOptions.decodeFileName(i);
|
|
916
916
|
}, readBlockZip64EndOfCentral: function() {
|
|
917
917
|
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 = {};
|
|
918
|
-
for (var p, v, i,
|
|
918
|
+
for (var p, v, i, c = this.zip64EndOfCentralSize - 44; 0 < c; ) p = this.reader.readInt(2), v = this.reader.readInt(4), i = this.reader.readData(v), this.zip64ExtensibleData[p] = { id: p, length: v, value: i };
|
|
919
919
|
}, readBlockZip64EndOfCentralLocator: function() {
|
|
920
920
|
if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
|
|
921
921
|
}, readLocalFiles: function() {
|
|
@@ -937,9 +937,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
937
937
|
}
|
|
938
938
|
var i = this.centralDirOffset + this.centralDirSize;
|
|
939
939
|
this.zip64 && (i += 20, i += 12 + this.zip64EndOfCentralSize);
|
|
940
|
-
var
|
|
941
|
-
if (0 <
|
|
942
|
-
else if (
|
|
940
|
+
var c = v - i;
|
|
941
|
+
if (0 < c) this.isSignature(v, r.CENTRAL_FILE_HEADER) || (this.reader.zero = c);
|
|
942
|
+
else if (c < 0) throw new Error("Corrupted zip: missing " + Math.abs(c) + " bytes.");
|
|
943
943
|
}, prepareReader: function(p) {
|
|
944
944
|
this.reader = h(p);
|
|
945
945
|
}, load: function(p) {
|
|
@@ -947,26 +947,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
947
947
|
} }, U.exports = b;
|
|
948
948
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(g, U, y) {
|
|
949
949
|
var h = g("./reader/readerFor"), l = g("./utils"), r = g("./compressedObject"), s = g("./crc32"), _ = g("./utf8"), b = g("./compressions"), p = g("./support");
|
|
950
|
-
function v(i,
|
|
951
|
-
this.options = i, this.loadOptions =
|
|
950
|
+
function v(i, c) {
|
|
951
|
+
this.options = i, this.loadOptions = c;
|
|
952
952
|
}
|
|
953
953
|
v.prototype = { isEncrypted: function() {
|
|
954
954
|
return (1 & this.bitFlag) == 1;
|
|
955
955
|
}, useUTF8: function() {
|
|
956
956
|
return (2048 & this.bitFlag) == 2048;
|
|
957
957
|
}, readLocalPart: function(i) {
|
|
958
|
-
var
|
|
958
|
+
var c, n;
|
|
959
959
|
if (i.skip(22), this.fileNameLength = i.readInt(2), n = i.readInt(2), this.fileName = i.readData(this.fileNameLength), i.skip(n), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
960
|
-
if ((
|
|
960
|
+
if ((c = function(u) {
|
|
961
961
|
for (var a in b) if (Object.prototype.hasOwnProperty.call(b, a) && b[a].magic === u) return b[a];
|
|
962
962
|
return null;
|
|
963
963
|
}(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + l.pretty(this.compressionMethod) + " unknown (inner file : " + l.transformTo("string", this.fileName) + ")");
|
|
964
|
-
this.decompressed = new r(this.compressedSize, this.uncompressedSize, this.crc32,
|
|
964
|
+
this.decompressed = new r(this.compressedSize, this.uncompressedSize, this.crc32, c, i.readData(this.compressedSize));
|
|
965
965
|
}, readCentralPart: function(i) {
|
|
966
966
|
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);
|
|
967
|
-
var
|
|
967
|
+
var c = i.readInt(2);
|
|
968
968
|
if (this.extraFieldsLength = i.readInt(2), this.fileCommentLength = i.readInt(2), this.diskNumberStart = i.readInt(2), this.internalFileAttributes = i.readInt(2), this.externalFileAttributes = i.readInt(4), this.localHeaderOffset = i.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
|
|
969
|
-
i.skip(
|
|
969
|
+
i.skip(c), this.readExtraFields(i), this.parseZIP64ExtraField(i), this.fileComment = i.readData(this.fileCommentLength);
|
|
970
970
|
}, processAttributes: function() {
|
|
971
971
|
this.unixPermissions = null, this.dosPermissions = null;
|
|
972
972
|
var i = this.versionMadeBy >> 8;
|
|
@@ -977,15 +977,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
977
977
|
this.uncompressedSize === l.MAX_VALUE_32BITS && (this.uncompressedSize = i.readInt(8)), this.compressedSize === l.MAX_VALUE_32BITS && (this.compressedSize = i.readInt(8)), this.localHeaderOffset === l.MAX_VALUE_32BITS && (this.localHeaderOffset = i.readInt(8)), this.diskNumberStart === l.MAX_VALUE_32BITS && (this.diskNumberStart = i.readInt(4));
|
|
978
978
|
}
|
|
979
979
|
}, readExtraFields: function(i) {
|
|
980
|
-
var
|
|
981
|
-
for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; )
|
|
980
|
+
var c, n, u, a = i.index + this.extraFieldsLength;
|
|
981
|
+
for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; ) c = i.readInt(2), n = i.readInt(2), u = i.readData(n), this.extraFields[c] = { id: c, length: n, value: u };
|
|
982
982
|
i.setIndex(a);
|
|
983
983
|
}, handleUTF8: function() {
|
|
984
984
|
var i = p.uint8array ? "uint8array" : "array";
|
|
985
985
|
if (this.useUTF8()) this.fileNameStr = _.utf8decode(this.fileName), this.fileCommentStr = _.utf8decode(this.fileComment);
|
|
986
986
|
else {
|
|
987
|
-
var
|
|
988
|
-
if (
|
|
987
|
+
var c = this.findExtraFieldUnicodePath();
|
|
988
|
+
if (c !== null) this.fileNameStr = c;
|
|
989
989
|
else {
|
|
990
990
|
var n = l.transformTo(i, this.fileName);
|
|
991
991
|
this.fileNameStr = this.loadOptions.decodeFileName(n);
|
|
@@ -1000,28 +1000,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1000
1000
|
}, findExtraFieldUnicodePath: function() {
|
|
1001
1001
|
var i = this.extraFields[28789];
|
|
1002
1002
|
if (i) {
|
|
1003
|
-
var
|
|
1004
|
-
return
|
|
1003
|
+
var c = h(i.value);
|
|
1004
|
+
return c.readInt(1) !== 1 || s(this.fileName) !== c.readInt(4) ? null : _.utf8decode(c.readData(i.length - 5));
|
|
1005
1005
|
}
|
|
1006
1006
|
return null;
|
|
1007
1007
|
}, findExtraFieldUnicodeComment: function() {
|
|
1008
1008
|
var i = this.extraFields[25461];
|
|
1009
1009
|
if (i) {
|
|
1010
|
-
var
|
|
1011
|
-
return
|
|
1010
|
+
var c = h(i.value);
|
|
1011
|
+
return c.readInt(1) !== 1 || s(this.fileComment) !== c.readInt(4) ? null : _.utf8decode(c.readData(i.length - 5));
|
|
1012
1012
|
}
|
|
1013
1013
|
return null;
|
|
1014
1014
|
} }, U.exports = v;
|
|
1015
1015
|
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(g, U, y) {
|
|
1016
|
-
function h(
|
|
1017
|
-
this.name =
|
|
1016
|
+
function h(c, n, u) {
|
|
1017
|
+
this.name = c, this.dir = u.dir, this.date = u.date, this.comment = u.comment, this.unixPermissions = u.unixPermissions, this.dosPermissions = u.dosPermissions, this._data = n, this._dataBinary = u.binary, this.options = { compression: u.compression, compressionOptions: u.compressionOptions };
|
|
1018
1018
|
}
|
|
1019
1019
|
var l = g("./stream/StreamHelper"), r = g("./stream/DataWorker"), s = g("./utf8"), _ = g("./compressedObject"), b = g("./stream/GenericWorker");
|
|
1020
|
-
h.prototype = { internalStream: function(
|
|
1020
|
+
h.prototype = { internalStream: function(c) {
|
|
1021
1021
|
var n = null, u = "string";
|
|
1022
1022
|
try {
|
|
1023
|
-
if (!
|
|
1024
|
-
var a = (u =
|
|
1023
|
+
if (!c) throw new Error("No output type specified.");
|
|
1024
|
+
var a = (u = c.toLowerCase()) === "string" || u === "text";
|
|
1025
1025
|
u !== "binarystring" && u !== "text" || (u = "string"), n = this._decompressWorker();
|
|
1026
1026
|
var d = !this._dataBinary;
|
|
1027
1027
|
d && !a && (n = n.pipe(new s.Utf8EncodeWorker())), !d && a && (n = n.pipe(new s.Utf8DecodeWorker()));
|
|
@@ -1029,14 +1029,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1029
1029
|
(n = new b("error")).error(w);
|
|
1030
1030
|
}
|
|
1031
1031
|
return new l(n, u, "");
|
|
1032
|
-
}, async: function(
|
|
1033
|
-
return this.internalStream(
|
|
1034
|
-
}, nodeStream: function(
|
|
1035
|
-
return this.internalStream(
|
|
1036
|
-
}, _compressWorker: function(
|
|
1037
|
-
if (this._data instanceof _ && this._data.compression.magic ===
|
|
1032
|
+
}, async: function(c, n) {
|
|
1033
|
+
return this.internalStream(c).accumulate(n);
|
|
1034
|
+
}, nodeStream: function(c, n) {
|
|
1035
|
+
return this.internalStream(c || "nodebuffer").toNodejsStream(n);
|
|
1036
|
+
}, _compressWorker: function(c, n) {
|
|
1037
|
+
if (this._data instanceof _ && this._data.compression.magic === c.magic) return this._data.getCompressedWorker();
|
|
1038
1038
|
var u = this._decompressWorker();
|
|
1039
|
-
return this._dataBinary || (u = u.pipe(new s.Utf8EncodeWorker())), _.createWorkerFrom(u,
|
|
1039
|
+
return this._dataBinary || (u = u.pipe(new s.Utf8EncodeWorker())), _.createWorkerFrom(u, c, n);
|
|
1040
1040
|
}, _decompressWorker: function() {
|
|
1041
1041
|
return this._data instanceof _ ? this._data.getContentWorker() : this._data instanceof b ? this._data : new r(this._data);
|
|
1042
1042
|
} };
|
|
@@ -1048,26 +1048,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1048
1048
|
(function(h) {
|
|
1049
1049
|
var l, r, s = h.MutationObserver || h.WebKitMutationObserver;
|
|
1050
1050
|
if (s) {
|
|
1051
|
-
var _ = 0, b = new s(
|
|
1051
|
+
var _ = 0, b = new s(c), p = h.document.createTextNode("");
|
|
1052
1052
|
b.observe(p, { characterData: !0 }), l = function() {
|
|
1053
1053
|
p.data = _ = ++_ % 2;
|
|
1054
1054
|
};
|
|
1055
1055
|
} else if (h.setImmediate || h.MessageChannel === void 0) l = "document" in h && "onreadystatechange" in h.document.createElement("script") ? function() {
|
|
1056
1056
|
var n = h.document.createElement("script");
|
|
1057
1057
|
n.onreadystatechange = function() {
|
|
1058
|
-
|
|
1058
|
+
c(), n.onreadystatechange = null, n.parentNode.removeChild(n), n = null;
|
|
1059
1059
|
}, h.document.documentElement.appendChild(n);
|
|
1060
1060
|
} : function() {
|
|
1061
|
-
setTimeout(
|
|
1061
|
+
setTimeout(c, 0);
|
|
1062
1062
|
};
|
|
1063
1063
|
else {
|
|
1064
1064
|
var v = new h.MessageChannel();
|
|
1065
|
-
v.port1.onmessage =
|
|
1065
|
+
v.port1.onmessage = c, l = function() {
|
|
1066
1066
|
v.port2.postMessage(0);
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
1069
|
var i = [];
|
|
1070
|
-
function
|
|
1070
|
+
function c() {
|
|
1071
1071
|
var n, u;
|
|
1072
1072
|
r = !0;
|
|
1073
1073
|
for (var a = i.length; a; ) {
|
|
@@ -1103,7 +1103,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1103
1103
|
S === a ? r.reject(a, new TypeError("Cannot resolve promise with itself")) : r.resolve(a, S);
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function c(a) {
|
|
1107
1107
|
var d = a && a.then;
|
|
1108
1108
|
if (a && (typeof a == "object" || typeof a == "function") && typeof d == "function") return function() {
|
|
1109
1109
|
d.apply(a, arguments);
|
|
@@ -1117,10 +1117,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1117
1117
|
function x(T) {
|
|
1118
1118
|
w || (w = !0, r.resolve(a, T));
|
|
1119
1119
|
}
|
|
1120
|
-
var
|
|
1120
|
+
var R = u(function() {
|
|
1121
1121
|
d(x, S);
|
|
1122
1122
|
});
|
|
1123
|
-
|
|
1123
|
+
R.status === "error" && S(R.value);
|
|
1124
1124
|
}
|
|
1125
1125
|
function u(a, d) {
|
|
1126
1126
|
var w = {};
|
|
@@ -1158,13 +1158,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1158
1158
|
}, v.prototype.otherCallRejected = function(a) {
|
|
1159
1159
|
i(this.promise, this.onRejected, a);
|
|
1160
1160
|
}, r.resolve = function(a, d) {
|
|
1161
|
-
var w = u(
|
|
1161
|
+
var w = u(c, d);
|
|
1162
1162
|
if (w.status === "error") return r.reject(a, w.value);
|
|
1163
1163
|
var S = w.value;
|
|
1164
1164
|
if (S) n(a, S);
|
|
1165
1165
|
else {
|
|
1166
1166
|
a.state = _, a.outcome = d;
|
|
1167
|
-
for (var x = -1,
|
|
1167
|
+
for (var x = -1, R = a.queue.length; ++x < R; ) a.queue[x].callFulfilled(d);
|
|
1168
1168
|
}
|
|
1169
1169
|
return a;
|
|
1170
1170
|
}, r.reject = function(a, d) {
|
|
@@ -1181,11 +1181,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1181
1181
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1182
1182
|
var w = a.length, S = !1;
|
|
1183
1183
|
if (!w) return this.resolve([]);
|
|
1184
|
-
for (var x = new Array(w),
|
|
1184
|
+
for (var x = new Array(w), R = 0, T = -1, M = new this(l); ++T < w; ) I(a[T], T);
|
|
1185
1185
|
return M;
|
|
1186
1186
|
function I(W, J) {
|
|
1187
1187
|
d.resolve(W).then(function(m) {
|
|
1188
|
-
x[J] = m, ++
|
|
1188
|
+
x[J] = m, ++R !== w || S || (S = !0, r.resolve(M, x));
|
|
1189
1189
|
}, function(m) {
|
|
1190
1190
|
S || (S = !0, r.reject(M, m));
|
|
1191
1191
|
});
|
|
@@ -1195,22 +1195,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1195
1195
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1196
1196
|
var w = a.length, S = !1;
|
|
1197
1197
|
if (!w) return this.resolve([]);
|
|
1198
|
-
for (var x = -1,
|
|
1199
|
-
S || (S = !0, r.resolve(
|
|
1198
|
+
for (var x = -1, R = new this(l); ++x < w; ) T = a[x], d.resolve(T).then(function(M) {
|
|
1199
|
+
S || (S = !0, r.resolve(R, M));
|
|
1200
1200
|
}, function(M) {
|
|
1201
|
-
S || (S = !0, r.reject(
|
|
1201
|
+
S || (S = !0, r.reject(R, M));
|
|
1202
1202
|
});
|
|
1203
1203
|
var T;
|
|
1204
|
-
return
|
|
1204
|
+
return R;
|
|
1205
1205
|
};
|
|
1206
1206
|
}, { immediate: 36 }], 38: [function(g, U, y) {
|
|
1207
1207
|
var h = {};
|
|
1208
1208
|
(0, g("./lib/utils/common").assign)(h, g("./lib/deflate"), g("./lib/inflate"), g("./lib/zlib/constants")), U.exports = h;
|
|
1209
1209
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(g, U, y) {
|
|
1210
|
-
var h = g("./zlib/deflate"), l = g("./utils/common"), r = g("./utils/strings"), s = g("./zlib/messages"), _ = g("./zlib/zstream"), b = Object.prototype.toString, p = 0, v = -1, i = 0,
|
|
1210
|
+
var h = g("./zlib/deflate"), l = g("./utils/common"), r = g("./utils/strings"), s = g("./zlib/messages"), _ = g("./zlib/zstream"), b = Object.prototype.toString, p = 0, v = -1, i = 0, c = 8;
|
|
1211
1211
|
function n(a) {
|
|
1212
1212
|
if (!(this instanceof n)) return new n(a);
|
|
1213
|
-
this.options = l.assign({ level: v, method:
|
|
1213
|
+
this.options = l.assign({ level: v, method: c, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, a || {});
|
|
1214
1214
|
var d = this.options;
|
|
1215
1215
|
d.raw && 0 < d.windowBits ? d.windowBits = -d.windowBits : d.gzip && 0 < d.windowBits && d.windowBits < 16 && (d.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new _(), this.strm.avail_out = 0;
|
|
1216
1216
|
var w = h.deflateInit2(this.strm, d.level, d.method, d.windowBits, d.memLevel, d.strategy);
|
|
@@ -1227,11 +1227,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1227
1227
|
return w.result;
|
|
1228
1228
|
}
|
|
1229
1229
|
n.prototype.push = function(a, d) {
|
|
1230
|
-
var w, S, x = this.strm,
|
|
1230
|
+
var w, S, x = this.strm, R = this.options.chunkSize;
|
|
1231
1231
|
if (this.ended) return !1;
|
|
1232
1232
|
S = d === ~~d ? d : d === !0 ? 4 : 0, typeof a == "string" ? x.input = r.string2buf(a) : b.call(a) === "[object ArrayBuffer]" ? x.input = new Uint8Array(a) : x.input = a, x.next_in = 0, x.avail_in = x.input.length;
|
|
1233
1233
|
do {
|
|
1234
|
-
if (x.avail_out === 0 && (x.output = new l.Buf8(
|
|
1234
|
+
if (x.avail_out === 0 && (x.output = new l.Buf8(R), x.next_out = 0, x.avail_out = R), (w = h.deflate(x, S)) !== 1 && w !== p) return this.onEnd(w), !(this.ended = !0);
|
|
1235
1235
|
x.avail_out !== 0 && (x.avail_in !== 0 || S !== 4 && S !== 2) || (this.options.to === "string" ? this.onData(r.buf2binstring(l.shrinkBuf(x.output, x.next_out))) : this.onData(l.shrinkBuf(x.output, x.next_out)));
|
|
1236
1236
|
} while ((0 < x.avail_in || x.avail_out === 0) && w !== 1);
|
|
1237
1237
|
return S === 4 ? (w = h.deflateEnd(this.strm), this.onEnd(w), this.ended = !0, w === p) : S !== 2 || (this.onEnd(p), !(x.avail_out = 0));
|
|
@@ -1255,17 +1255,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1255
1255
|
if (a !== s.Z_OK) throw new Error(_[a]);
|
|
1256
1256
|
this.header = new p(), h.inflateGetHeader(this.strm, this.header);
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function c(n, u) {
|
|
1259
1259
|
var a = new i(u);
|
|
1260
1260
|
if (a.push(n, !0), a.err) throw a.msg || _[a.err];
|
|
1261
1261
|
return a.result;
|
|
1262
1262
|
}
|
|
1263
1263
|
i.prototype.push = function(n, u) {
|
|
1264
|
-
var a, d, w, S, x,
|
|
1264
|
+
var a, d, w, S, x, R, T = this.strm, M = this.options.chunkSize, I = this.options.dictionary, W = !1;
|
|
1265
1265
|
if (this.ended) return !1;
|
|
1266
1266
|
d = u === ~~u ? u : u === !0 ? s.Z_FINISH : s.Z_NO_FLUSH, typeof n == "string" ? T.input = r.binstring2buf(n) : v.call(n) === "[object ArrayBuffer]" ? T.input = new Uint8Array(n) : T.input = n, T.next_in = 0, T.avail_in = T.input.length;
|
|
1267
1267
|
do {
|
|
1268
|
-
if (T.avail_out === 0 && (T.output = new l.Buf8(M), T.next_out = 0, T.avail_out = M), (a = h.inflate(T, s.Z_NO_FLUSH)) === s.Z_NEED_DICT && I && (
|
|
1268
|
+
if (T.avail_out === 0 && (T.output = new l.Buf8(M), T.next_out = 0, T.avail_out = M), (a = h.inflate(T, s.Z_NO_FLUSH)) === s.Z_NEED_DICT && I && (R = typeof I == "string" ? r.string2buf(I) : v.call(I) === "[object ArrayBuffer]" ? new Uint8Array(I) : I, a = h.inflateSetDictionary(this.strm, R)), a === s.Z_BUF_ERROR && W === !0 && (a = s.Z_OK, W = !1), a !== s.Z_STREAM_END && a !== s.Z_OK) return this.onEnd(a), !(this.ended = !0);
|
|
1269
1269
|
T.next_out && (T.avail_out !== 0 && a !== s.Z_STREAM_END && (T.avail_in !== 0 || d !== s.Z_FINISH && d !== s.Z_SYNC_FLUSH) || (this.options.to === "string" ? (w = r.utf8border(T.output, T.next_out), S = T.next_out - w, x = r.buf2string(T.output, w), T.next_out = S, T.avail_out = M - S, S && l.arraySet(T.output, T.output, w, S, 0), this.onData(x)) : this.onData(l.shrinkBuf(T.output, T.next_out)))), T.avail_in === 0 && T.avail_out === 0 && (W = !0);
|
|
1270
1270
|
} while ((0 < T.avail_in || T.avail_out === 0) && a !== s.Z_STREAM_END);
|
|
1271
1271
|
return a === s.Z_STREAM_END && (d = s.Z_FINISH), d === s.Z_FINISH ? (a = h.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === s.Z_OK) : d !== s.Z_SYNC_FLUSH || (this.onEnd(s.Z_OK), !(T.avail_out = 0));
|
|
@@ -1273,9 +1273,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1273
1273
|
this.chunks.push(n);
|
|
1274
1274
|
}, i.prototype.onEnd = function(n) {
|
|
1275
1275
|
n === s.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = l.flattenChunks(this.chunks)), this.chunks = [], this.err = n, this.msg = this.strm.msg;
|
|
1276
|
-
}, y.Inflate = i, y.inflate =
|
|
1277
|
-
return (u = u || {}).raw = !0,
|
|
1278
|
-
}, y.ungzip =
|
|
1276
|
+
}, y.Inflate = i, y.inflate = c, y.inflateRaw = function(n, u) {
|
|
1277
|
+
return (u = u || {}).raw = !0, c(n, u);
|
|
1278
|
+
}, y.ungzip = c;
|
|
1279
1279
|
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(g, U, y) {
|
|
1280
1280
|
var h = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1281
1281
|
y.assign = function(s) {
|
|
@@ -1294,10 +1294,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1294
1294
|
if (_.subarray && s.subarray) s.set(_.subarray(b, b + p), v);
|
|
1295
1295
|
else for (var i = 0; i < p; i++) s[v + i] = _[b + i];
|
|
1296
1296
|
}, flattenChunks: function(s) {
|
|
1297
|
-
var _, b, p, v, i,
|
|
1297
|
+
var _, b, p, v, i, c;
|
|
1298
1298
|
for (_ = p = 0, b = s.length; _ < b; _++) p += s[_].length;
|
|
1299
|
-
for (
|
|
1300
|
-
return
|
|
1299
|
+
for (c = new Uint8Array(p), _ = v = 0, b = s.length; _ < b; _++) i = s[_], c.set(i, v), v += i.length;
|
|
1300
|
+
return c;
|
|
1301
1301
|
} }, r = { arraySet: function(s, _, b, p, v) {
|
|
1302
1302
|
for (var i = 0; i < p; i++) s[v + i] = _[b + i];
|
|
1303
1303
|
}, flattenChunks: function(s) {
|
|
@@ -1321,28 +1321,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1321
1321
|
for (var s = new h.Buf8(256), _ = 0; _ < 256; _++) s[_] = 252 <= _ ? 6 : 248 <= _ ? 5 : 240 <= _ ? 4 : 224 <= _ ? 3 : 192 <= _ ? 2 : 1;
|
|
1322
1322
|
function b(p, v) {
|
|
1323
1323
|
if (v < 65537 && (p.subarray && r || !p.subarray && l)) return String.fromCharCode.apply(null, h.shrinkBuf(p, v));
|
|
1324
|
-
for (var i = "",
|
|
1324
|
+
for (var i = "", c = 0; c < v; c++) i += String.fromCharCode(p[c]);
|
|
1325
1325
|
return i;
|
|
1326
1326
|
}
|
|
1327
1327
|
s[254] = s[254] = 1, y.string2buf = function(p) {
|
|
1328
|
-
var v, i,
|
|
1329
|
-
for (n = 0; n < a; n++) (64512 & (i = p.charCodeAt(n))) == 55296 && n + 1 < a && (64512 & (
|
|
1330
|
-
for (v = new h.Buf8(d), n = u = 0; u < d; n++) (64512 & (i = p.charCodeAt(n))) == 55296 && n + 1 < a && (64512 & (
|
|
1328
|
+
var v, i, c, n, u, a = p.length, d = 0;
|
|
1329
|
+
for (n = 0; n < a; n++) (64512 & (i = p.charCodeAt(n))) == 55296 && n + 1 < a && (64512 & (c = p.charCodeAt(n + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (c - 56320), n++), d += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
|
|
1330
|
+
for (v = new h.Buf8(d), n = u = 0; u < d; n++) (64512 & (i = p.charCodeAt(n))) == 55296 && n + 1 < a && (64512 & (c = p.charCodeAt(n + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (c - 56320), n++), i < 128 ? v[u++] = i : (i < 2048 ? v[u++] = 192 | i >>> 6 : (i < 65536 ? v[u++] = 224 | i >>> 12 : (v[u++] = 240 | i >>> 18, v[u++] = 128 | i >>> 12 & 63), v[u++] = 128 | i >>> 6 & 63), v[u++] = 128 | 63 & i);
|
|
1331
1331
|
return v;
|
|
1332
1332
|
}, y.buf2binstring = function(p) {
|
|
1333
1333
|
return b(p, p.length);
|
|
1334
1334
|
}, y.binstring2buf = function(p) {
|
|
1335
|
-
for (var v = new h.Buf8(p.length), i = 0,
|
|
1335
|
+
for (var v = new h.Buf8(p.length), i = 0, c = v.length; i < c; i++) v[i] = p.charCodeAt(i);
|
|
1336
1336
|
return v;
|
|
1337
1337
|
}, y.buf2string = function(p, v) {
|
|
1338
|
-
var i,
|
|
1339
|
-
for (i =
|
|
1340
|
-
else if (4 < (u = s[n])) d[
|
|
1338
|
+
var i, c, n, u, a = v || p.length, d = new Array(2 * a);
|
|
1339
|
+
for (i = c = 0; i < a; ) if ((n = p[i++]) < 128) d[c++] = n;
|
|
1340
|
+
else if (4 < (u = s[n])) d[c++] = 65533, i += u - 1;
|
|
1341
1341
|
else {
|
|
1342
1342
|
for (n &= u === 2 ? 31 : u === 3 ? 15 : 7; 1 < u && i < a; ) n = n << 6 | 63 & p[i++], u--;
|
|
1343
|
-
1 < u ? d[
|
|
1343
|
+
1 < u ? d[c++] = 65533 : n < 65536 ? d[c++] = n : (n -= 65536, d[c++] = 55296 | n >> 10 & 1023, d[c++] = 56320 | 1023 & n);
|
|
1344
1344
|
}
|
|
1345
|
-
return b(d,
|
|
1345
|
+
return b(d, c);
|
|
1346
1346
|
}, y.utf8border = function(p, v) {
|
|
1347
1347
|
var i;
|
|
1348
1348
|
for ((v = v || p.length) > p.length && (v = p.length), i = v - 1; 0 <= i && (192 & p[i]) == 128; ) i--;
|
|
@@ -1374,169 +1374,169 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1374
1374
|
return -1 ^ l;
|
|
1375
1375
|
};
|
|
1376
1376
|
}, {}], 46: [function(g, U, y) {
|
|
1377
|
-
var h, l = g("../utils/common"), r = g("./trees"), s = g("./adler32"), _ = g("./crc32"), b = g("./messages"), p = 0, v = 4, i = 0,
|
|
1378
|
-
function nt(t,
|
|
1379
|
-
return t.msg = b[
|
|
1377
|
+
var h, l = g("../utils/common"), r = g("./trees"), s = g("./adler32"), _ = g("./crc32"), b = g("./messages"), p = 0, v = 4, i = 0, c = -2, n = -1, u = 4, a = 2, d = 8, w = 9, S = 286, x = 30, R = 19, T = 2 * S + 1, M = 15, I = 3, W = 258, J = W + I + 1, m = 42, O = 113, e = 1, F = 2, rt = 3, P = 4;
|
|
1378
|
+
function nt(t, D) {
|
|
1379
|
+
return t.msg = b[D], D;
|
|
1380
1380
|
}
|
|
1381
1381
|
function Z(t) {
|
|
1382
1382
|
return (t << 1) - (4 < t ? 9 : 0);
|
|
1383
1383
|
}
|
|
1384
1384
|
function Q(t) {
|
|
1385
|
-
for (var
|
|
1385
|
+
for (var D = t.length; 0 <= --D; ) t[D] = 0;
|
|
1386
1386
|
}
|
|
1387
1387
|
function A(t) {
|
|
1388
|
-
var
|
|
1389
|
-
z > t.avail_out && (z = t.avail_out), z !== 0 && (l.arraySet(t.output,
|
|
1388
|
+
var D = t.state, z = D.pending;
|
|
1389
|
+
z > t.avail_out && (z = t.avail_out), z !== 0 && (l.arraySet(t.output, D.pending_buf, D.pending_out, z, t.next_out), t.next_out += z, D.pending_out += z, t.total_out += z, t.avail_out -= z, D.pending -= z, D.pending === 0 && (D.pending_out = 0));
|
|
1390
1390
|
}
|
|
1391
|
-
function C(t,
|
|
1392
|
-
r._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start,
|
|
1391
|
+
function C(t, D) {
|
|
1392
|
+
r._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, D), t.block_start = t.strstart, A(t.strm);
|
|
1393
1393
|
}
|
|
1394
|
-
function tt(t,
|
|
1395
|
-
t.pending_buf[t.pending++] =
|
|
1394
|
+
function tt(t, D) {
|
|
1395
|
+
t.pending_buf[t.pending++] = D;
|
|
1396
1396
|
}
|
|
1397
|
-
function X(t,
|
|
1398
|
-
t.pending_buf[t.pending++] =
|
|
1397
|
+
function X(t, D) {
|
|
1398
|
+
t.pending_buf[t.pending++] = D >>> 8 & 255, t.pending_buf[t.pending++] = 255 & D;
|
|
1399
1399
|
}
|
|
1400
|
-
function K(t,
|
|
1401
|
-
var z,
|
|
1400
|
+
function K(t, D) {
|
|
1401
|
+
var z, f, o = t.max_chain_length, k = t.strstart, L = t.prev_length, N = t.nice_match, E = t.strstart > t.w_size - J ? t.strstart - (t.w_size - J) : 0, H = t.window, $ = t.w_mask, G = t.prev, et = t.strstart + W, ot = H[k + L - 1], at = H[k + L];
|
|
1402
1402
|
t.prev_length >= t.good_match && (o >>= 2), N > t.lookahead && (N = t.lookahead);
|
|
1403
1403
|
do
|
|
1404
|
-
if (H[(z =
|
|
1404
|
+
if (H[(z = D) + L] === at && H[z + L - 1] === ot && H[z] === H[k] && H[++z] === H[k + 1]) {
|
|
1405
1405
|
k += 2, z++;
|
|
1406
1406
|
do
|
|
1407
1407
|
;
|
|
1408
1408
|
while (H[++k] === H[++z] && H[++k] === H[++z] && H[++k] === H[++z] && H[++k] === H[++z] && H[++k] === H[++z] && H[++k] === H[++z] && H[++k] === H[++z] && H[++k] === H[++z] && k < et);
|
|
1409
|
-
if (
|
|
1410
|
-
if (t.match_start =
|
|
1409
|
+
if (f = W - (et - k), k = et - W, L < f) {
|
|
1410
|
+
if (t.match_start = D, N <= (L = f)) break;
|
|
1411
1411
|
ot = H[k + L - 1], at = H[k + L];
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
while ((
|
|
1414
|
+
while ((D = G[D & $]) > E && --o != 0);
|
|
1415
1415
|
return L <= t.lookahead ? L : t.lookahead;
|
|
1416
1416
|
}
|
|
1417
1417
|
function lt(t) {
|
|
1418
|
-
var
|
|
1418
|
+
var D, z, f, o, k, L, N, E, H, $, G = t.w_size;
|
|
1419
1419
|
do {
|
|
1420
1420
|
if (o = t.window_size - t.lookahead - t.strstart, t.strstart >= G + (G - J)) {
|
|
1421
|
-
for (l.arraySet(t.window, t.window, G, G, 0), t.match_start -= G, t.strstart -= G, t.block_start -= G,
|
|
1422
|
-
for (
|
|
1421
|
+
for (l.arraySet(t.window, t.window, G, G, 0), t.match_start -= G, t.strstart -= G, t.block_start -= G, D = z = t.hash_size; f = t.head[--D], t.head[D] = G <= f ? f - G : 0, --z; ) ;
|
|
1422
|
+
for (D = z = G; f = t.prev[--D], t.prev[D] = G <= f ? f - G : 0, --z; ) ;
|
|
1423
1423
|
o += G;
|
|
1424
1424
|
}
|
|
1425
1425
|
if (t.strm.avail_in === 0) break;
|
|
1426
1426
|
if (L = t.strm, N = t.window, E = t.strstart + t.lookahead, H = o, $ = void 0, $ = L.avail_in, H < $ && ($ = H), z = $ === 0 ? 0 : (L.avail_in -= $, l.arraySet(N, L.input, L.next_in, $, E), L.state.wrap === 1 ? L.adler = s(L.adler, N, $, E) : L.state.wrap === 2 && (L.adler = _(L.adler, N, $, E)), L.next_in += $, L.total_in += $, $), t.lookahead += z, 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)); ) ;
|
|
1427
1427
|
} while (t.lookahead < J && t.strm.avail_in !== 0);
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
for (var z,
|
|
1429
|
+
function gt(t, D) {
|
|
1430
|
+
for (var z, f; ; ) {
|
|
1431
1431
|
if (t.lookahead < J) {
|
|
1432
|
-
if (lt(t), t.lookahead < J &&
|
|
1432
|
+
if (lt(t), t.lookahead < J && D === p) return e;
|
|
1433
1433
|
if (t.lookahead === 0) break;
|
|
1434
1434
|
}
|
|
1435
|
-
if (z = 0, t.lookahead >= I && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + I - 1]) & t.hash_mask, z = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), z !== 0 && t.strstart - z <= t.w_size - J && (t.match_length = K(t, z)), t.match_length >= I) if (
|
|
1435
|
+
if (z = 0, t.lookahead >= I && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + I - 1]) & t.hash_mask, z = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), z !== 0 && t.strstart - z <= t.w_size - J && (t.match_length = K(t, z)), t.match_length >= I) if (f = r._tr_tally(t, t.strstart - t.match_start, t.match_length - I), t.lookahead -= t.match_length, t.match_length <= t.max_lazy_match && t.lookahead >= I) {
|
|
1436
1436
|
for (t.match_length--; t.strstart++, t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + I - 1]) & t.hash_mask, z = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart, --t.match_length != 0; ) ;
|
|
1437
1437
|
t.strstart++;
|
|
1438
1438
|
} else t.strstart += t.match_length, t.match_length = 0, t.ins_h = t.window[t.strstart], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + 1]) & t.hash_mask;
|
|
1439
|
-
else
|
|
1440
|
-
if (
|
|
1439
|
+
else f = r._tr_tally(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
|
|
1440
|
+
if (f && (C(t, !1), t.strm.avail_out === 0)) return e;
|
|
1441
1441
|
}
|
|
1442
|
-
return t.insert = t.strstart < I - 1 ? t.strstart : I - 1,
|
|
1442
|
+
return t.insert = t.strstart < I - 1 ? t.strstart : I - 1, D === v ? (C(t, !0), t.strm.avail_out === 0 ? rt : P) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e : F;
|
|
1443
1443
|
}
|
|
1444
|
-
function st(t,
|
|
1445
|
-
for (var z,
|
|
1444
|
+
function st(t, D) {
|
|
1445
|
+
for (var z, f, o; ; ) {
|
|
1446
1446
|
if (t.lookahead < J) {
|
|
1447
|
-
if (lt(t), t.lookahead < J &&
|
|
1447
|
+
if (lt(t), t.lookahead < J && D === p) return e;
|
|
1448
1448
|
if (t.lookahead === 0) break;
|
|
1449
1449
|
}
|
|
1450
1450
|
if (z = 0, t.lookahead >= I && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + I - 1]) & t.hash_mask, z = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = I - 1, z !== 0 && t.prev_length < t.max_lazy_match && t.strstart - z <= t.w_size - J && (t.match_length = K(t, z), t.match_length <= 5 && (t.strategy === 1 || t.match_length === I && 4096 < t.strstart - t.match_start) && (t.match_length = I - 1)), t.prev_length >= I && t.match_length <= t.prev_length) {
|
|
1451
|
-
for (o = t.strstart + t.lookahead - I,
|
|
1452
|
-
if (t.match_available = 0, t.match_length = I - 1, t.strstart++,
|
|
1451
|
+
for (o = t.strstart + t.lookahead - I, f = r._tr_tally(t, t.strstart - 1 - t.prev_match, t.prev_length - I), t.lookahead -= t.prev_length - 1, t.prev_length -= 2; ++t.strstart <= o && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + I - 1]) & t.hash_mask, z = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), --t.prev_length != 0; ) ;
|
|
1452
|
+
if (t.match_available = 0, t.match_length = I - 1, t.strstart++, f && (C(t, !1), t.strm.avail_out === 0)) return e;
|
|
1453
1453
|
} else if (t.match_available) {
|
|
1454
|
-
if ((
|
|
1454
|
+
if ((f = r._tr_tally(t, 0, t.window[t.strstart - 1])) && C(t, !1), t.strstart++, t.lookahead--, t.strm.avail_out === 0) return e;
|
|
1455
1455
|
} else t.match_available = 1, t.strstart++, t.lookahead--;
|
|
1456
1456
|
}
|
|
1457
|
-
return t.match_available && (
|
|
1457
|
+
return t.match_available && (f = r._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < I - 1 ? t.strstart : I - 1, D === v ? (C(t, !0), t.strm.avail_out === 0 ? rt : P) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e : F;
|
|
1458
1458
|
}
|
|
1459
|
-
function it(t,
|
|
1460
|
-
this.good_length = t, this.max_lazy =
|
|
1459
|
+
function it(t, D, z, f, o) {
|
|
1460
|
+
this.good_length = t, this.max_lazy = D, this.nice_length = z, this.max_chain = f, this.func = o;
|
|
1461
1461
|
}
|
|
1462
1462
|
function mt() {
|
|
1463
|
-
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 = d, 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 l.Buf16(2 * T), this.dyn_dtree = new l.Buf16(2 * (2 * x + 1)), this.bl_tree = new l.Buf16(2 * (2 *
|
|
1463
|
+
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 = d, 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 l.Buf16(2 * T), this.dyn_dtree = new l.Buf16(2 * (2 * x + 1)), this.bl_tree = new l.Buf16(2 * (2 * R + 1)), Q(this.dyn_ltree), Q(this.dyn_dtree), Q(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new l.Buf16(M + 1), this.heap = new l.Buf16(2 * S + 1), Q(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new l.Buf16(2 * S + 1), Q(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
1464
1464
|
}
|
|
1465
1465
|
function ut(t) {
|
|
1466
|
-
var
|
|
1467
|
-
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (
|
|
1466
|
+
var D;
|
|
1467
|
+
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (D = t.state).pending = 0, D.pending_out = 0, D.wrap < 0 && (D.wrap = -D.wrap), D.status = D.wrap ? m : O, t.adler = D.wrap === 2 ? 0 : 1, D.last_flush = p, r._tr_init(D), i) : nt(t, c);
|
|
1468
1468
|
}
|
|
1469
1469
|
function kt(t) {
|
|
1470
|
-
var
|
|
1471
|
-
return
|
|
1470
|
+
var D = ut(t);
|
|
1471
|
+
return D === i && function(z) {
|
|
1472
1472
|
z.window_size = 2 * z.w_size, Q(z.head), z.max_lazy_match = h[z.level].max_lazy, z.good_match = h[z.level].good_length, z.nice_match = h[z.level].nice_length, z.max_chain_length = h[z.level].max_chain, z.strstart = 0, z.block_start = 0, z.lookahead = 0, z.insert = 0, z.match_length = z.prev_length = I - 1, z.match_available = 0, z.ins_h = 0;
|
|
1473
|
-
}(t.state),
|
|
1473
|
+
}(t.state), D;
|
|
1474
1474
|
}
|
|
1475
|
-
function yt(t,
|
|
1476
|
-
if (!t) return
|
|
1475
|
+
function yt(t, D, z, f, o, k) {
|
|
1476
|
+
if (!t) return c;
|
|
1477
1477
|
var L = 1;
|
|
1478
|
-
if (
|
|
1479
|
-
|
|
1478
|
+
if (D === n && (D = 6), f < 0 ? (L = 0, f = -f) : 15 < f && (L = 2, f -= 16), o < 1 || w < o || z !== d || f < 8 || 15 < f || D < 0 || 9 < D || k < 0 || u < k) return nt(t, c);
|
|
1479
|
+
f === 8 && (f = 9);
|
|
1480
1480
|
var N = new mt();
|
|
1481
|
-
return (t.state = N).strm = t, N.wrap = L, N.gzhead = null, N.w_bits =
|
|
1481
|
+
return (t.state = N).strm = t, N.wrap = L, N.gzhead = null, N.w_bits = f, N.w_size = 1 << N.w_bits, N.w_mask = N.w_size - 1, N.hash_bits = o + 7, N.hash_size = 1 << N.hash_bits, N.hash_mask = N.hash_size - 1, N.hash_shift = ~~((N.hash_bits + I - 1) / I), N.window = new l.Buf8(2 * N.w_size), N.head = new l.Buf16(N.hash_size), N.prev = new l.Buf16(N.w_size), N.lit_bufsize = 1 << o + 6, N.pending_buf_size = 4 * N.lit_bufsize, N.pending_buf = new l.Buf8(N.pending_buf_size), N.d_buf = 1 * N.lit_bufsize, N.l_buf = 3 * N.lit_bufsize, N.level = D, N.strategy = k, N.method = z, kt(t);
|
|
1482
1482
|
}
|
|
1483
|
-
h = [new it(0, 0, 0, 0, function(t,
|
|
1483
|
+
h = [new it(0, 0, 0, 0, function(t, D) {
|
|
1484
1484
|
var z = 65535;
|
|
1485
1485
|
for (z > t.pending_buf_size - 5 && (z = t.pending_buf_size - 5); ; ) {
|
|
1486
1486
|
if (t.lookahead <= 1) {
|
|
1487
|
-
if (lt(t), t.lookahead === 0 &&
|
|
1487
|
+
if (lt(t), t.lookahead === 0 && D === p) return e;
|
|
1488
1488
|
if (t.lookahead === 0) break;
|
|
1489
1489
|
}
|
|
1490
1490
|
t.strstart += t.lookahead, t.lookahead = 0;
|
|
1491
|
-
var
|
|
1492
|
-
if ((t.strstart === 0 || t.strstart >=
|
|
1491
|
+
var f = t.block_start + z;
|
|
1492
|
+
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 - J && (C(t, !1), t.strm.avail_out === 0)) return e;
|
|
1493
1493
|
}
|
|
1494
|
-
return t.insert = 0,
|
|
1495
|
-
}), new it(4, 4, 8, 4,
|
|
1496
|
-
return yt(t,
|
|
1497
|
-
}, y.deflateInit2 = yt, y.deflateReset = kt, y.deflateResetKeep = ut, y.deflateSetHeader = function(t,
|
|
1498
|
-
return t && t.state ? t.state.wrap !== 2 ?
|
|
1499
|
-
}, y.deflate = function(t,
|
|
1500
|
-
var z,
|
|
1501
|
-
if (!t || !t.state || 5 <
|
|
1502
|
-
if (
|
|
1503
|
-
if (
|
|
1494
|
+
return t.insert = 0, D === v ? (C(t, !0), t.strm.avail_out === 0 ? rt : P) : (t.strstart > t.block_start && (C(t, !1), t.strm.avail_out), e);
|
|
1495
|
+
}), new it(4, 4, 8, 4, gt), new it(4, 5, 16, 8, gt), new it(4, 6, 32, 32, gt), new it(4, 4, 16, 16, st), new it(8, 16, 32, 32, st), new it(8, 16, 128, 128, st), new it(8, 32, 128, 256, st), new it(32, 128, 258, 1024, st), new it(32, 258, 258, 4096, st)], y.deflateInit = function(t, D) {
|
|
1496
|
+
return yt(t, D, d, 15, 8, 0);
|
|
1497
|
+
}, y.deflateInit2 = yt, y.deflateReset = kt, y.deflateResetKeep = ut, y.deflateSetHeader = function(t, D) {
|
|
1498
|
+
return t && t.state ? t.state.wrap !== 2 ? c : (t.state.gzhead = D, i) : c;
|
|
1499
|
+
}, y.deflate = function(t, D) {
|
|
1500
|
+
var z, f, o, k;
|
|
1501
|
+
if (!t || !t.state || 5 < D || D < 0) return t ? nt(t, c) : c;
|
|
1502
|
+
if (f = t.state, !t.output || !t.input && t.avail_in !== 0 || f.status === 666 && D !== v) return nt(t, t.avail_out === 0 ? -5 : c);
|
|
1503
|
+
if (f.strm = t, z = f.last_flush, f.last_flush = D, f.status === m) if (f.wrap === 2) t.adler = 0, tt(f, 31), tt(f, 139), tt(f, 8), f.gzhead ? (tt(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)), tt(f, 255 & f.gzhead.time), tt(f, f.gzhead.time >> 8 & 255), tt(f, f.gzhead.time >> 16 & 255), tt(f, f.gzhead.time >> 24 & 255), tt(f, f.level === 9 ? 2 : 2 <= f.strategy || f.level < 2 ? 4 : 0), tt(f, 255 & f.gzhead.os), f.gzhead.extra && f.gzhead.extra.length && (tt(f, 255 & f.gzhead.extra.length), tt(f, f.gzhead.extra.length >> 8 & 255)), f.gzhead.hcrc && (t.adler = _(t.adler, f.pending_buf, f.pending, 0)), f.gzindex = 0, f.status = 69) : (tt(f, 0), tt(f, 0), tt(f, 0), tt(f, 0), tt(f, 0), tt(f, f.level === 9 ? 2 : 2 <= f.strategy || f.level < 2 ? 4 : 0), tt(f, 3), f.status = O);
|
|
1504
1504
|
else {
|
|
1505
|
-
var L = d + (
|
|
1506
|
-
L |= (2 <=
|
|
1505
|
+
var L = d + (f.w_bits - 8 << 4) << 8;
|
|
1506
|
+
L |= (2 <= f.strategy || f.level < 2 ? 0 : f.level < 6 ? 1 : f.level === 6 ? 2 : 3) << 6, f.strstart !== 0 && (L |= 32), L += 31 - L % 31, f.status = O, X(f, L), f.strstart !== 0 && (X(f, t.adler >>> 16), X(f, 65535 & t.adler)), t.adler = 1;
|
|
1507
1507
|
}
|
|
1508
|
-
if (
|
|
1509
|
-
for (o =
|
|
1510
|
-
|
|
1511
|
-
} else
|
|
1512
|
-
if (
|
|
1513
|
-
o =
|
|
1508
|
+
if (f.status === 69) if (f.gzhead.extra) {
|
|
1509
|
+
for (o = f.pending; f.gzindex < (65535 & f.gzhead.extra.length) && (f.pending !== f.pending_buf_size || (f.gzhead.hcrc && f.pending > o && (t.adler = _(t.adler, f.pending_buf, f.pending - o, o)), A(t), o = f.pending, f.pending !== f.pending_buf_size)); ) tt(f, 255 & f.gzhead.extra[f.gzindex]), f.gzindex++;
|
|
1510
|
+
f.gzhead.hcrc && f.pending > o && (t.adler = _(t.adler, f.pending_buf, f.pending - o, o)), f.gzindex === f.gzhead.extra.length && (f.gzindex = 0, f.status = 73);
|
|
1511
|
+
} else f.status = 73;
|
|
1512
|
+
if (f.status === 73) if (f.gzhead.name) {
|
|
1513
|
+
o = f.pending;
|
|
1514
1514
|
do {
|
|
1515
|
-
if (
|
|
1515
|
+
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > o && (t.adler = _(t.adler, f.pending_buf, f.pending - o, o)), A(t), o = f.pending, f.pending === f.pending_buf_size)) {
|
|
1516
1516
|
k = 1;
|
|
1517
1517
|
break;
|
|
1518
1518
|
}
|
|
1519
|
-
k =
|
|
1519
|
+
k = f.gzindex < f.gzhead.name.length ? 255 & f.gzhead.name.charCodeAt(f.gzindex++) : 0, tt(f, k);
|
|
1520
1520
|
} while (k !== 0);
|
|
1521
|
-
|
|
1522
|
-
} else
|
|
1523
|
-
if (
|
|
1524
|
-
o =
|
|
1521
|
+
f.gzhead.hcrc && f.pending > o && (t.adler = _(t.adler, f.pending_buf, f.pending - o, o)), k === 0 && (f.gzindex = 0, f.status = 91);
|
|
1522
|
+
} else f.status = 91;
|
|
1523
|
+
if (f.status === 91) if (f.gzhead.comment) {
|
|
1524
|
+
o = f.pending;
|
|
1525
1525
|
do {
|
|
1526
|
-
if (
|
|
1526
|
+
if (f.pending === f.pending_buf_size && (f.gzhead.hcrc && f.pending > o && (t.adler = _(t.adler, f.pending_buf, f.pending - o, o)), A(t), o = f.pending, f.pending === f.pending_buf_size)) {
|
|
1527
1527
|
k = 1;
|
|
1528
1528
|
break;
|
|
1529
1529
|
}
|
|
1530
|
-
k =
|
|
1530
|
+
k = f.gzindex < f.gzhead.comment.length ? 255 & f.gzhead.comment.charCodeAt(f.gzindex++) : 0, tt(f, k);
|
|
1531
1531
|
} while (k !== 0);
|
|
1532
|
-
|
|
1533
|
-
} else
|
|
1534
|
-
if (
|
|
1535
|
-
if (A(t), t.avail_out === 0) return
|
|
1536
|
-
} else if (t.avail_in === 0 && Z(
|
|
1537
|
-
if (
|
|
1538
|
-
if (t.avail_in !== 0 ||
|
|
1539
|
-
var N =
|
|
1532
|
+
f.gzhead.hcrc && f.pending > o && (t.adler = _(t.adler, f.pending_buf, f.pending - o, o)), k === 0 && (f.status = 103);
|
|
1533
|
+
} else f.status = 103;
|
|
1534
|
+
if (f.status === 103 && (f.gzhead.hcrc ? (f.pending + 2 > f.pending_buf_size && A(t), f.pending + 2 <= f.pending_buf_size && (tt(f, 255 & t.adler), tt(f, t.adler >> 8 & 255), t.adler = 0, f.status = O)) : f.status = O), f.pending !== 0) {
|
|
1535
|
+
if (A(t), t.avail_out === 0) return f.last_flush = -1, i;
|
|
1536
|
+
} else if (t.avail_in === 0 && Z(D) <= Z(z) && D !== v) return nt(t, -5);
|
|
1537
|
+
if (f.status === 666 && t.avail_in !== 0) return nt(t, -5);
|
|
1538
|
+
if (t.avail_in !== 0 || f.lookahead !== 0 || D !== p && f.status !== 666) {
|
|
1539
|
+
var N = f.strategy === 2 ? function(E, H) {
|
|
1540
1540
|
for (var $; ; ) {
|
|
1541
1541
|
if (E.lookahead === 0 && (lt(E), E.lookahead === 0)) {
|
|
1542
1542
|
if (H === p) return e;
|
|
@@ -1545,7 +1545,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1545
1545
|
if (E.match_length = 0, $ = r._tr_tally(E, 0, E.window[E.strstart]), E.lookahead--, E.strstart++, $ && (C(E, !1), E.strm.avail_out === 0)) return e;
|
|
1546
1546
|
}
|
|
1547
1547
|
return E.insert = 0, H === v ? (C(E, !0), E.strm.avail_out === 0 ? rt : P) : E.last_lit && (C(E, !1), E.strm.avail_out === 0) ? e : F;
|
|
1548
|
-
}(
|
|
1548
|
+
}(f, D) : f.strategy === 3 ? function(E, H) {
|
|
1549
1549
|
for (var $, G, et, ot, at = E.window; ; ) {
|
|
1550
1550
|
if (E.lookahead <= W) {
|
|
1551
1551
|
if (lt(E), E.lookahead <= W && H === p) return e;
|
|
@@ -1561,20 +1561,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1561
1561
|
if (E.match_length >= I ? ($ = r._tr_tally(E, 1, E.match_length - I), E.lookahead -= E.match_length, E.strstart += E.match_length, E.match_length = 0) : ($ = r._tr_tally(E, 0, E.window[E.strstart]), E.lookahead--, E.strstart++), $ && (C(E, !1), E.strm.avail_out === 0)) return e;
|
|
1562
1562
|
}
|
|
1563
1563
|
return E.insert = 0, H === v ? (C(E, !0), E.strm.avail_out === 0 ? rt : P) : E.last_lit && (C(E, !1), E.strm.avail_out === 0) ? e : F;
|
|
1564
|
-
}(
|
|
1565
|
-
if (N !== rt && N !== P || (
|
|
1566
|
-
if (N === F && (
|
|
1564
|
+
}(f, D) : h[f.level].func(f, D);
|
|
1565
|
+
if (N !== rt && N !== P || (f.status = 666), N === e || N === rt) return t.avail_out === 0 && (f.last_flush = -1), i;
|
|
1566
|
+
if (N === F && (D === 1 ? r._tr_align(f) : D !== 5 && (r._tr_stored_block(f, 0, 0, !1), D === 3 && (Q(f.head), f.lookahead === 0 && (f.strstart = 0, f.block_start = 0, f.insert = 0))), A(t), t.avail_out === 0)) return f.last_flush = -1, i;
|
|
1567
1567
|
}
|
|
1568
|
-
return
|
|
1568
|
+
return D !== v ? i : f.wrap <= 0 ? 1 : (f.wrap === 2 ? (tt(f, 255 & t.adler), tt(f, t.adler >> 8 & 255), tt(f, t.adler >> 16 & 255), tt(f, t.adler >> 24 & 255), tt(f, 255 & t.total_in), tt(f, t.total_in >> 8 & 255), tt(f, t.total_in >> 16 & 255), tt(f, t.total_in >> 24 & 255)) : (X(f, t.adler >>> 16), X(f, 65535 & t.adler)), A(t), 0 < f.wrap && (f.wrap = -f.wrap), f.pending !== 0 ? i : 1);
|
|
1569
1569
|
}, y.deflateEnd = function(t) {
|
|
1570
|
-
var
|
|
1571
|
-
return t && t.state ? (
|
|
1572
|
-
}, y.deflateSetDictionary = function(t,
|
|
1573
|
-
var z,
|
|
1574
|
-
if (!t || !t.state || (k = (z = t.state).wrap) === 2 || k === 1 && z.status !== m || z.lookahead) return
|
|
1575
|
-
for (k === 1 && (t.adler = s(t.adler,
|
|
1576
|
-
for (
|
|
1577
|
-
z.strstart =
|
|
1570
|
+
var D;
|
|
1571
|
+
return t && t.state ? (D = t.state.status) !== m && D !== 69 && D !== 73 && D !== 91 && D !== 103 && D !== O && D !== 666 ? nt(t, c) : (t.state = null, D === O ? nt(t, -3) : i) : c;
|
|
1572
|
+
}, y.deflateSetDictionary = function(t, D) {
|
|
1573
|
+
var z, f, o, k, L, N, E, H, $ = D.length;
|
|
1574
|
+
if (!t || !t.state || (k = (z = t.state).wrap) === 2 || k === 1 && z.status !== m || z.lookahead) return c;
|
|
1575
|
+
for (k === 1 && (t.adler = s(t.adler, D, $, 0)), z.wrap = 0, $ >= z.w_size && (k === 0 && (Q(z.head), z.strstart = 0, z.block_start = 0, z.insert = 0), H = new l.Buf8(z.w_size), l.arraySet(H, D, $ - z.w_size, z.w_size, 0), D = H, $ = z.w_size), L = t.avail_in, N = t.next_in, E = t.input, t.avail_in = $, t.next_in = 0, t.input = D, lt(z); z.lookahead >= I; ) {
|
|
1576
|
+
for (f = z.strstart, o = z.lookahead - (I - 1); z.ins_h = (z.ins_h << z.hash_shift ^ z.window[f + I - 1]) & z.hash_mask, z.prev[f & z.w_mask] = z.head[z.ins_h], z.head[z.ins_h] = f, f++, --o; ) ;
|
|
1577
|
+
z.strstart = f, z.lookahead = I - 1, lt(z);
|
|
1578
1578
|
}
|
|
1579
1579
|
return z.strstart += z.lookahead, z.block_start = z.strstart, z.insert = z.lookahead, z.lookahead = 0, z.match_length = z.prev_length = I - 1, z.match_available = 0, t.next_in = N, t.input = E, t.avail_in = L, z.wrap = k, i;
|
|
1580
1580
|
}, y.deflateInfo = "pako deflate (from Nodeca project)";
|
|
@@ -1584,10 +1584,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1584
1584
|
};
|
|
1585
1585
|
}, {}], 48: [function(g, U, y) {
|
|
1586
1586
|
U.exports = function(h, l) {
|
|
1587
|
-
var r, s, _, b, p, v, i,
|
|
1588
|
-
r = h.state, s = h.next_in, e = h.input, _ = s + (h.avail_in - 5), b = h.next_out, F = h.output, p = b - (l - h.avail_out), v = b + (h.avail_out - 257), i = r.dmax,
|
|
1587
|
+
var r, s, _, b, p, v, i, c, n, u, a, d, w, S, x, R, T, M, I, W, J, m, O, e, F;
|
|
1588
|
+
r = h.state, s = h.next_in, e = h.input, _ = s + (h.avail_in - 5), b = h.next_out, F = h.output, p = b - (l - h.avail_out), v = b + (h.avail_out - 257), i = r.dmax, c = r.wsize, n = r.whave, u = r.wnext, a = r.window, d = r.hold, w = r.bits, S = r.lencode, x = r.distcode, R = (1 << r.lenbits) - 1, T = (1 << r.distbits) - 1;
|
|
1589
1589
|
t: do {
|
|
1590
|
-
w < 15 && (d += e[s++] << w, w += 8, d += e[s++] << w, w += 8), M = S[d &
|
|
1590
|
+
w < 15 && (d += e[s++] << w, w += 8, d += e[s++] << w, w += 8), M = S[d & R];
|
|
1591
1591
|
e: for (; ; ) {
|
|
1592
1592
|
if (d >>>= I = M >>> 24, w -= I, (I = M >>> 16 & 255) === 0) F[b++] = 65535 & M;
|
|
1593
1593
|
else {
|
|
@@ -1623,12 +1623,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1623
1623
|
break t;
|
|
1624
1624
|
}
|
|
1625
1625
|
if (O = a, (m = 0) === u) {
|
|
1626
|
-
if (m +=
|
|
1626
|
+
if (m += c - I, I < W) {
|
|
1627
1627
|
for (W -= I; F[b++] = a[m++], --I; ) ;
|
|
1628
1628
|
m = b - J, O = F;
|
|
1629
1629
|
}
|
|
1630
1630
|
} else if (u < I) {
|
|
1631
|
-
if (m +=
|
|
1631
|
+
if (m += c + u - I, (I -= u) < W) {
|
|
1632
1632
|
for (W -= I; F[b++] = a[m++], --I; ) ;
|
|
1633
1633
|
if (m = 0, u < W) {
|
|
1634
1634
|
for (W -= I = u; F[b++] = a[m++], --I; ) ;
|
|
@@ -1654,7 +1654,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1654
1654
|
s -= W = w >> 3, d &= (1 << (w -= W << 3)) - 1, h.next_in = s, h.next_out = b, h.avail_in = s < _ ? _ - s + 5 : 5 - (s - _), h.avail_out = b < v ? v - b + 257 : 257 - (b - v), r.hold = d, r.bits = w;
|
|
1655
1655
|
};
|
|
1656
1656
|
}, {}], 49: [function(g, U, y) {
|
|
1657
|
-
var h = g("../utils/common"), l = g("./adler32"), r = g("./crc32"), s = g("./inffast"), _ = g("./inftrees"), b = 1, p = 2, v = 0, i = -2,
|
|
1657
|
+
var h = g("../utils/common"), l = g("./adler32"), r = g("./crc32"), s = g("./inffast"), _ = g("./inftrees"), b = 1, p = 2, v = 0, i = -2, c = 1, n = 852, u = 592;
|
|
1658
1658
|
function a(m) {
|
|
1659
1659
|
return (m >>> 24 & 255) + (m >>> 8 & 65280) + ((65280 & m) << 8) + ((255 & m) << 24);
|
|
1660
1660
|
}
|
|
@@ -1663,7 +1663,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1663
1663
|
}
|
|
1664
1664
|
function w(m) {
|
|
1665
1665
|
var O;
|
|
1666
|
-
return m && m.state ? (O = m.state, m.total_in = m.total_out = O.total = 0, m.msg = "", O.wrap && (m.adler = 1 & O.wrap), O.mode =
|
|
1666
|
+
return m && m.state ? (O = m.state, m.total_in = m.total_out = O.total = 0, m.msg = "", O.wrap && (m.adler = 1 & O.wrap), O.mode = c, O.last = 0, O.havedict = 0, O.dmax = 32768, O.head = null, O.hold = 0, O.bits = 0, O.lencode = O.lendyn = new h.Buf32(n), O.distcode = O.distdyn = new h.Buf32(u), O.sane = 1, O.back = -1, v) : i;
|
|
1667
1667
|
}
|
|
1668
1668
|
function S(m) {
|
|
1669
1669
|
var O;
|
|
@@ -1673,7 +1673,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1673
1673
|
var e, F;
|
|
1674
1674
|
return m && m.state ? (F = m.state, O < 0 ? (e = 0, O = -O) : (e = 1 + (O >> 4), O < 48 && (O &= 15)), O && (O < 8 || 15 < O) ? i : (F.window !== null && F.wbits !== O && (F.window = null), F.wrap = e, F.wbits = O, S(m))) : i;
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function R(m, O) {
|
|
1677
1677
|
var e, F;
|
|
1678
1678
|
return m ? (F = new d(), (m.state = F).window = null, (e = x(m, O)) !== v && (m.state = null), e) : i;
|
|
1679
1679
|
}
|
|
@@ -1695,13 +1695,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1695
1695
|
return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new h.Buf8(P.wsize)), F >= P.wsize ? (h.arraySet(P.window, O, e - P.wsize, P.wsize, 0), P.wnext = 0, P.whave = P.wsize) : (F < (rt = P.wsize - P.wnext) && (rt = F), h.arraySet(P.window, O, e - F, rt, P.wnext), (F -= rt) ? (h.arraySet(P.window, O, e - F, F, 0), P.wnext = F, P.whave = P.wsize) : (P.wnext += rt, P.wnext === P.wsize && (P.wnext = 0), P.whave < P.wsize && (P.whave += rt))), 0;
|
|
1696
1696
|
}
|
|
1697
1697
|
y.inflateReset = S, y.inflateReset2 = x, y.inflateResetKeep = w, y.inflateInit = function(m) {
|
|
1698
|
-
return
|
|
1699
|
-
}, y.inflateInit2 =
|
|
1700
|
-
var e, F, rt, P, nt, Z, Q, A, C, tt, X, K, lt,
|
|
1698
|
+
return R(m, 15);
|
|
1699
|
+
}, y.inflateInit2 = R, y.inflate = function(m, O) {
|
|
1700
|
+
var e, F, rt, P, nt, Z, Q, A, C, tt, X, K, lt, gt, st, it, mt, ut, kt, yt, t, D, z, f, o = 0, k = new h.Buf8(4), L = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
1701
1701
|
if (!m || !m.state || !m.output || !m.input && m.avail_in !== 0) return i;
|
|
1702
|
-
(e = m.state).mode === 12 && (e.mode = 13), nt = m.next_out, rt = m.output, Q = m.avail_out, P = m.next_in, F = m.input, Z = m.avail_in, A = e.hold, C = e.bits, tt = Z, X = Q,
|
|
1702
|
+
(e = m.state).mode === 12 && (e.mode = 13), nt = m.next_out, rt = m.output, Q = m.avail_out, P = m.next_in, F = m.input, Z = m.avail_in, A = e.hold, C = e.bits, tt = Z, X = Q, D = v;
|
|
1703
1703
|
t: for (; ; ) switch (e.mode) {
|
|
1704
|
-
case
|
|
1704
|
+
case c:
|
|
1705
1705
|
if (e.wrap === 0) {
|
|
1706
1706
|
e.mode = 13;
|
|
1707
1707
|
break;
|
|
@@ -1870,7 +1870,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1870
1870
|
e.lens[L[e.have++]] = 7 & A, A >>>= 3, C -= 3;
|
|
1871
1871
|
}
|
|
1872
1872
|
for (; e.have < 19; ) e.lens[L[e.have++]] = 0;
|
|
1873
|
-
if (e.lencode = e.lendyn, e.lenbits = 7, z = { bits: e.lenbits },
|
|
1873
|
+
if (e.lencode = e.lendyn, e.lenbits = 7, z = { bits: e.lenbits }, D = _(0, e.lens, 0, 19, e.lencode, 0, e.work, z), e.lenbits = z.bits, D) {
|
|
1874
1874
|
m.msg = "invalid code lengths set", e.mode = 30;
|
|
1875
1875
|
break;
|
|
1876
1876
|
}
|
|
@@ -1884,7 +1884,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1884
1884
|
if (mt < 16) A >>>= st, C -= st, e.lens[e.have++] = mt;
|
|
1885
1885
|
else {
|
|
1886
1886
|
if (mt === 16) {
|
|
1887
|
-
for (
|
|
1887
|
+
for (f = st + 2; C < f; ) {
|
|
1888
1888
|
if (Z === 0) break t;
|
|
1889
1889
|
Z--, A += F[P++] << C, C += 8;
|
|
1890
1890
|
}
|
|
@@ -1894,13 +1894,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1894
1894
|
}
|
|
1895
1895
|
t = e.lens[e.have - 1], K = 3 + (3 & A), A >>>= 2, C -= 2;
|
|
1896
1896
|
} else if (mt === 17) {
|
|
1897
|
-
for (
|
|
1897
|
+
for (f = st + 3; C < f; ) {
|
|
1898
1898
|
if (Z === 0) break t;
|
|
1899
1899
|
Z--, A += F[P++] << C, C += 8;
|
|
1900
1900
|
}
|
|
1901
1901
|
C -= st, t = 0, K = 3 + (7 & (A >>>= st)), A >>>= 3, C -= 3;
|
|
1902
1902
|
} else {
|
|
1903
|
-
for (
|
|
1903
|
+
for (f = st + 7; C < f; ) {
|
|
1904
1904
|
if (Z === 0) break t;
|
|
1905
1905
|
Z--, A += F[P++] << C, C += 8;
|
|
1906
1906
|
}
|
|
@@ -1918,11 +1918,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1918
1918
|
m.msg = "invalid code -- missing end-of-block", e.mode = 30;
|
|
1919
1919
|
break;
|
|
1920
1920
|
}
|
|
1921
|
-
if (e.lenbits = 9, z = { bits: e.lenbits },
|
|
1921
|
+
if (e.lenbits = 9, z = { bits: e.lenbits }, D = _(b, e.lens, 0, e.nlen, e.lencode, 0, e.work, z), e.lenbits = z.bits, D) {
|
|
1922
1922
|
m.msg = "invalid literal/lengths set", e.mode = 30;
|
|
1923
1923
|
break;
|
|
1924
1924
|
}
|
|
1925
|
-
if (e.distbits = 6, e.distcode = e.distdyn, z = { bits: e.distbits },
|
|
1925
|
+
if (e.distbits = 6, e.distcode = e.distdyn, z = { bits: e.distbits }, D = _(p, e.lens, e.nlen, e.ndist, e.distcode, 0, e.work, z), e.distbits = z.bits, D) {
|
|
1926
1926
|
m.msg = "invalid distances set", e.mode = 30;
|
|
1927
1927
|
break;
|
|
1928
1928
|
}
|
|
@@ -1960,7 +1960,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1960
1960
|
e.extra = 15 & it, e.mode = 22;
|
|
1961
1961
|
case 22:
|
|
1962
1962
|
if (e.extra) {
|
|
1963
|
-
for (
|
|
1963
|
+
for (f = e.extra; C < f; ) {
|
|
1964
1964
|
if (Z === 0) break t;
|
|
1965
1965
|
Z--, A += F[P++] << C, C += 8;
|
|
1966
1966
|
}
|
|
@@ -1986,7 +1986,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1986
1986
|
e.offset = mt, e.extra = 15 & it, e.mode = 24;
|
|
1987
1987
|
case 24:
|
|
1988
1988
|
if (e.extra) {
|
|
1989
|
-
for (
|
|
1989
|
+
for (f = e.extra; C < f; ) {
|
|
1990
1990
|
if (Z === 0) break t;
|
|
1991
1991
|
Z--, A += F[P++] << C, C += 8;
|
|
1992
1992
|
}
|
|
@@ -2004,9 +2004,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2004
2004
|
m.msg = "invalid distance too far back", e.mode = 30;
|
|
2005
2005
|
break;
|
|
2006
2006
|
}
|
|
2007
|
-
lt = K > e.wnext ? (K -= e.wnext, e.wsize - K) : e.wnext - K, K > e.length && (K = e.length),
|
|
2008
|
-
} else
|
|
2009
|
-
for (Q < K && (K = Q), Q -= K, e.length -= K; rt[nt++] =
|
|
2007
|
+
lt = K > e.wnext ? (K -= e.wnext, e.wsize - K) : e.wnext - K, K > e.length && (K = e.length), gt = e.window;
|
|
2008
|
+
} else gt = rt, lt = nt - e.offset, K = e.length;
|
|
2009
|
+
for (Q < K && (K = Q), Q -= K, e.length -= K; rt[nt++] = gt[lt++], --K; ) ;
|
|
2010
2010
|
e.length === 0 && (e.mode = 21);
|
|
2011
2011
|
break;
|
|
2012
2012
|
case 26:
|
|
@@ -2040,10 +2040,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2040
2040
|
}
|
|
2041
2041
|
e.mode = 29;
|
|
2042
2042
|
case 29:
|
|
2043
|
-
|
|
2043
|
+
D = 1;
|
|
2044
2044
|
break t;
|
|
2045
2045
|
case 30:
|
|
2046
|
-
|
|
2046
|
+
D = -3;
|
|
2047
2047
|
break t;
|
|
2048
2048
|
case 31:
|
|
2049
2049
|
return -4;
|
|
@@ -2051,7 +2051,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2051
2051
|
default:
|
|
2052
2052
|
return i;
|
|
2053
2053
|
}
|
|
2054
|
-
return m.next_out = nt, m.avail_out = Q, m.next_in = P, m.avail_in = Z, e.hold = A, e.bits = C, (e.wsize || X !== m.avail_out && e.mode < 30 && (e.mode < 27 || O !== 4)) && J(m, m.output, m.next_out, X - m.avail_out) ? (e.mode = 31, -4) : (tt -= m.avail_in, X -= m.avail_out, m.total_in += tt, m.total_out += X, e.total += X, e.wrap && X && (m.adler = e.check = e.flags ? r(e.check, rt, X, m.next_out - X) : l(e.check, rt, X, m.next_out - X)), m.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === 12 ? 128 : 0) + (e.mode === 20 || e.mode === 15 ? 256 : 0), (tt == 0 && X === 0 || O === 4) &&
|
|
2054
|
+
return m.next_out = nt, m.avail_out = Q, m.next_in = P, m.avail_in = Z, e.hold = A, e.bits = C, (e.wsize || X !== m.avail_out && e.mode < 30 && (e.mode < 27 || O !== 4)) && J(m, m.output, m.next_out, X - m.avail_out) ? (e.mode = 31, -4) : (tt -= m.avail_in, X -= m.avail_out, m.total_in += tt, m.total_out += X, e.total += X, e.wrap && X && (m.adler = e.check = e.flags ? r(e.check, rt, X, m.next_out - X) : l(e.check, rt, X, m.next_out - X)), m.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === 12 ? 128 : 0) + (e.mode === 20 || e.mode === 15 ? 256 : 0), (tt == 0 && X === 0 || O === 4) && D === v && (D = -5), D);
|
|
2055
2055
|
}, y.inflateEnd = function(m) {
|
|
2056
2056
|
if (!m || !m.state) return i;
|
|
2057
2057
|
var O = m.state;
|
|
@@ -2065,32 +2065,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2065
2065
|
}, y.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2066
2066
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(g, U, y) {
|
|
2067
2067
|
var h = g("../utils/common"), l = [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], r = [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], s = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], _ = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
2068
|
-
U.exports = function(b, p, v, i,
|
|
2069
|
-
var d, w, S, x,
|
|
2068
|
+
U.exports = function(b, p, v, i, c, n, u, a) {
|
|
2069
|
+
var d, w, S, x, R, T, M, I, W, J = a.bits, m = 0, O = 0, e = 0, F = 0, rt = 0, P = 0, nt = 0, Z = 0, Q = 0, A = 0, C = null, tt = 0, X = new h.Buf16(16), K = new h.Buf16(16), lt = null, gt = 0;
|
|
2070
2070
|
for (m = 0; m <= 15; m++) X[m] = 0;
|
|
2071
2071
|
for (O = 0; O < i; O++) X[p[v + O]]++;
|
|
2072
2072
|
for (rt = J, F = 15; 1 <= F && X[F] === 0; F--) ;
|
|
2073
|
-
if (F < rt && (rt = F), F === 0) return
|
|
2073
|
+
if (F < rt && (rt = F), F === 0) return c[n++] = 20971520, c[n++] = 20971520, a.bits = 1, 0;
|
|
2074
2074
|
for (e = 1; e < F && X[e] === 0; e++) ;
|
|
2075
2075
|
for (rt < e && (rt = e), m = Z = 1; m <= 15; m++) if (Z <<= 1, (Z -= X[m]) < 0) return -1;
|
|
2076
2076
|
if (0 < Z && (b === 0 || F !== 1)) return -1;
|
|
2077
2077
|
for (K[1] = 0, m = 1; m < 15; m++) K[m + 1] = K[m] + X[m];
|
|
2078
2078
|
for (O = 0; O < i; O++) p[v + O] !== 0 && (u[K[p[v + O]]++] = O);
|
|
2079
|
-
if (T = b === 0 ? (C = lt = u, 19) : b === 1 ? (C = l, tt -= 257, lt = r,
|
|
2079
|
+
if (T = b === 0 ? (C = lt = u, 19) : b === 1 ? (C = l, tt -= 257, lt = r, gt -= 257, 256) : (C = s, lt = _, -1), m = e, R = n, nt = O = A = 0, S = -1, x = (Q = 1 << (P = rt)) - 1, b === 1 && 852 < Q || b === 2 && 592 < Q) return 1;
|
|
2080
2080
|
for (; ; ) {
|
|
2081
|
-
for (M = m - nt, W = u[O] < T ? (I = 0, u[O]) : u[O] > T ? (I = lt[
|
|
2081
|
+
for (M = m - nt, W = u[O] < T ? (I = 0, u[O]) : u[O] > T ? (I = lt[gt + u[O]], C[tt + u[O]]) : (I = 96, 0), d = 1 << m - nt, e = w = 1 << P; c[R + (A >> nt) + (w -= d)] = M << 24 | I << 16 | W | 0, w !== 0; ) ;
|
|
2082
2082
|
for (d = 1 << m - 1; A & d; ) d >>= 1;
|
|
2083
2083
|
if (d !== 0 ? (A &= d - 1, A += d) : A = 0, O++, --X[m] == 0) {
|
|
2084
2084
|
if (m === F) break;
|
|
2085
2085
|
m = p[v + u[O]];
|
|
2086
2086
|
}
|
|
2087
2087
|
if (rt < m && (A & x) !== S) {
|
|
2088
|
-
for (nt === 0 && (nt = rt),
|
|
2088
|
+
for (nt === 0 && (nt = rt), R += e, Z = 1 << (P = m - nt); P + nt < F && !((Z -= X[P + nt]) <= 0); ) P++, Z <<= 1;
|
|
2089
2089
|
if (Q += 1 << P, b === 1 && 852 < Q || b === 2 && 592 < Q) return 1;
|
|
2090
|
-
|
|
2090
|
+
c[S = A & x] = rt << 24 | P << 16 | R - n | 0;
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
|
-
return A !== 0 && (
|
|
2093
|
+
return A !== 0 && (c[R + A] = m - nt << 24 | 64 << 16 | 0), a.bits = rt, 0;
|
|
2094
2094
|
};
|
|
2095
2095
|
}, { "../utils/common": 41 }], 51: [function(g, U, y) {
|
|
2096
2096
|
U.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
@@ -2099,7 +2099,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2099
2099
|
function s(o) {
|
|
2100
2100
|
for (var k = o.length; 0 <= --k; ) o[k] = 0;
|
|
2101
2101
|
}
|
|
2102
|
-
var _ = 0, b = 29, p = 256, v = p + 1 + b, i = 30,
|
|
2102
|
+
var _ = 0, b = 29, p = 256, v = p + 1 + b, i = 30, c = 19, n = 2 * v + 1, u = 15, a = 16, d = 7, w = 256, S = 16, x = 17, R = 18, T = [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], M = [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], J = new Array(2 * (v + 2));
|
|
2103
2103
|
s(J);
|
|
2104
2104
|
var m = new Array(2 * i);
|
|
2105
2105
|
s(m);
|
|
@@ -2132,7 +2132,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2132
2132
|
for (var L = 0; L |= 1 & o, o >>>= 1, L <<= 1, 0 < --k; ) ;
|
|
2133
2133
|
return L >>> 1;
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function gt(o, k, L) {
|
|
2136
2136
|
var N, E, H = new Array(u + 1), $ = 0;
|
|
2137
2137
|
for (N = 1; N <= u; N++) H[N] = $ = $ + L[N - 1] << 1;
|
|
2138
2138
|
for (E = 0; E <= k; E++) {
|
|
@@ -2144,7 +2144,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2144
2144
|
var k;
|
|
2145
2145
|
for (k = 0; k < v; k++) o.dyn_ltree[2 * k] = 0;
|
|
2146
2146
|
for (k = 0; k < i; k++) o.dyn_dtree[2 * k] = 0;
|
|
2147
|
-
for (k = 0; k <
|
|
2147
|
+
for (k = 0; k < c; k++) o.bl_tree[2 * k] = 0;
|
|
2148
2148
|
o.dyn_ltree[2 * w] = 1, o.opt_len = o.static_len = 0, o.last_lit = o.matches = 0;
|
|
2149
2149
|
}
|
|
2150
2150
|
function it(o) {
|
|
@@ -2170,33 +2170,33 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2170
2170
|
for (k.max_code = ot, L = o.heap_len >> 1; 1 <= L; L--) ut(o, H, L);
|
|
2171
2171
|
for (E = et; L = o.heap[1], o.heap[1] = o.heap[o.heap_len--], ut(o, H, 1), N = o.heap[1], o.heap[--o.heap_max] = L, o.heap[--o.heap_max] = N, H[2 * E] = H[2 * L] + H[2 * N], o.depth[E] = (o.depth[L] >= o.depth[N] ? o.depth[L] : o.depth[N]) + 1, H[2 * L + 1] = H[2 * N + 1] = E, o.heap[1] = E++, ut(o, H, 1), 2 <= o.heap_len; ) ;
|
|
2172
2172
|
o.heap[--o.heap_max] = o.heap[1], function(at, bt) {
|
|
2173
|
-
var Tt, wt, Et, ht, Rt, Pt, xt = bt.dyn_tree, Nt = bt.max_code, Ut = bt.stat_desc.static_tree, Mt = bt.stat_desc.has_stree, Vt = bt.stat_desc.extra_bits, jt = bt.stat_desc.extra_base, Ct = bt.stat_desc.max_length,
|
|
2173
|
+
var Tt, wt, Et, ht, Rt, Pt, xt = bt.dyn_tree, Nt = bt.max_code, Ut = bt.stat_desc.static_tree, Mt = bt.stat_desc.has_stree, Vt = bt.stat_desc.extra_bits, jt = bt.stat_desc.extra_base, Ct = bt.stat_desc.max_length, B = 0;
|
|
2174
2174
|
for (ht = 0; ht <= u; ht++) at.bl_count[ht] = 0;
|
|
2175
|
-
for (xt[2 * at.heap[at.heap_max] + 1] = 0, Tt = at.heap_max + 1; Tt < n; Tt++) Ct < (ht = xt[2 * xt[2 * (wt = at.heap[Tt]) + 1] + 1] + 1) && (ht = Ct,
|
|
2176
|
-
if (
|
|
2175
|
+
for (xt[2 * at.heap[at.heap_max] + 1] = 0, Tt = at.heap_max + 1; Tt < n; Tt++) Ct < (ht = xt[2 * xt[2 * (wt = at.heap[Tt]) + 1] + 1] + 1) && (ht = Ct, B++), xt[2 * wt + 1] = ht, Nt < wt || (at.bl_count[ht]++, Rt = 0, jt <= wt && (Rt = Vt[wt - jt]), Pt = xt[2 * wt], at.opt_len += Pt * (ht + Rt), Mt && (at.static_len += Pt * (Ut[2 * wt + 1] + Rt)));
|
|
2176
|
+
if (B !== 0) {
|
|
2177
2177
|
do {
|
|
2178
2178
|
for (ht = Ct - 1; at.bl_count[ht] === 0; ) ht--;
|
|
2179
|
-
at.bl_count[ht]--, at.bl_count[ht + 1] += 2, at.bl_count[Ct]--,
|
|
2180
|
-
} while (0 <
|
|
2179
|
+
at.bl_count[ht]--, at.bl_count[ht + 1] += 2, at.bl_count[Ct]--, B -= 2;
|
|
2180
|
+
} while (0 < B);
|
|
2181
2181
|
for (ht = Ct; ht !== 0; ht--) for (wt = at.bl_count[ht]; wt !== 0; ) Nt < (Et = at.heap[--Tt]) || (xt[2 * Et + 1] !== ht && (at.opt_len += (ht - xt[2 * Et + 1]) * xt[2 * Et], xt[2 * Et + 1] = ht), wt--);
|
|
2182
2182
|
}
|
|
2183
|
-
}(o, k),
|
|
2183
|
+
}(o, k), gt(H, ot, o.bl_count);
|
|
2184
2184
|
}
|
|
2185
2185
|
function t(o, k, L) {
|
|
2186
2186
|
var N, E, H = -1, $ = k[1], G = 0, et = 7, ot = 4;
|
|
2187
|
-
for ($ === 0 && (et = 138, ot = 3), k[2 * (L + 1) + 1] = 65535, N = 0; N <= L; N++) E = $, $ = k[2 * (N + 1) + 1], ++G < et && E === $ || (G < ot ? o.bl_tree[2 * E] += G : E !== 0 ? (E !== H && o.bl_tree[2 * E]++, o.bl_tree[2 * S]++) : G <= 10 ? o.bl_tree[2 * x]++ : o.bl_tree[2 *
|
|
2187
|
+
for ($ === 0 && (et = 138, ot = 3), k[2 * (L + 1) + 1] = 65535, N = 0; N <= L; N++) E = $, $ = k[2 * (N + 1) + 1], ++G < et && E === $ || (G < ot ? o.bl_tree[2 * E] += G : E !== 0 ? (E !== H && o.bl_tree[2 * E]++, o.bl_tree[2 * S]++) : G <= 10 ? o.bl_tree[2 * x]++ : o.bl_tree[2 * R]++, H = E, ot = (G = 0) === $ ? (et = 138, 3) : E === $ ? (et = 6, 3) : (et = 7, 4));
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2189
|
+
function D(o, k, L) {
|
|
2190
2190
|
var N, E, H = -1, $ = k[1], G = 0, et = 7, ot = 4;
|
|
2191
2191
|
for ($ === 0 && (et = 138, ot = 3), N = 0; N <= L; N++) if (E = $, $ = k[2 * (N + 1) + 1], !(++G < et && E === $)) {
|
|
2192
2192
|
if (G < ot) for (; K(o, E, o.bl_tree), --G != 0; ) ;
|
|
2193
|
-
else E !== 0 ? (E !== H && (K(o, E, o.bl_tree), G--), K(o, S, o.bl_tree), X(o, G - 3, 2)) : G <= 10 ? (K(o, x, o.bl_tree), X(o, G - 3, 3)) : (K(o,
|
|
2193
|
+
else E !== 0 ? (E !== H && (K(o, E, o.bl_tree), G--), K(o, S, o.bl_tree), X(o, G - 3, 2)) : G <= 10 ? (K(o, x, o.bl_tree), X(o, G - 3, 3)) : (K(o, R, o.bl_tree), X(o, G - 11, 7));
|
|
2194
2194
|
H = E, ot = (G = 0) === $ ? (et = 138, 3) : E === $ ? (et = 6, 3) : (et = 7, 4);
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
2197
2197
|
s(Z);
|
|
2198
2198
|
var z = !1;
|
|
2199
|
-
function
|
|
2199
|
+
function f(o, k, L, N) {
|
|
2200
2200
|
X(o, (_ << 1) + (N ? 1 : 0), 3), function(E, H, $, G) {
|
|
2201
2201
|
it(E), tt(E, $), tt(E, ~$), h.arraySet(E.pending_buf, E.window, H, $, E.pending), E.pending += $;
|
|
2202
2202
|
}(o, k, L);
|
|
@@ -2212,10 +2212,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2212
2212
|
for (; k <= 255; ) J[2 * k + 1] = 9, k++, $[9]++;
|
|
2213
2213
|
for (; k <= 279; ) J[2 * k + 1] = 7, k++, $[7]++;
|
|
2214
2214
|
for (; k <= 287; ) J[2 * k + 1] = 8, k++, $[8]++;
|
|
2215
|
-
for (
|
|
2216
|
-
rt = new Q(J, T, p + 1, v, u), P = new Q(m, M, 0, i, u), nt = new Q(new Array(0), I, 0,
|
|
2215
|
+
for (gt(J, v + 1, $), k = 0; k < i; k++) m[2 * k + 1] = 5, m[2 * k] = lt(k, 5);
|
|
2216
|
+
rt = new Q(J, T, p + 1, v, u), P = new Q(m, M, 0, i, u), nt = new Q(new Array(0), I, 0, c, d);
|
|
2217
2217
|
}(), z = !0), o.l_desc = new A(o.dyn_ltree, rt), o.d_desc = new A(o.dyn_dtree, P), o.bl_desc = new A(o.bl_tree, nt), o.bi_buf = 0, o.bi_valid = 0, st(o);
|
|
2218
|
-
}, y._tr_stored_block =
|
|
2218
|
+
}, y._tr_stored_block = f, y._tr_flush_block = function(o, k, L, N) {
|
|
2219
2219
|
var E, H, $ = 0;
|
|
2220
2220
|
0 < o.level ? (o.strm.data_type === 2 && (o.strm.data_type = function(G) {
|
|
2221
2221
|
var et, ot = 4093624447;
|
|
@@ -2225,12 +2225,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2225
2225
|
return l;
|
|
2226
2226
|
}(o)), yt(o, o.l_desc), yt(o, o.d_desc), $ = function(G) {
|
|
2227
2227
|
var et;
|
|
2228
|
-
for (t(G, G.dyn_ltree, G.l_desc.max_code), t(G, G.dyn_dtree, G.d_desc.max_code), yt(G, G.bl_desc), et =
|
|
2228
|
+
for (t(G, G.dyn_ltree, G.l_desc.max_code), t(G, G.dyn_dtree, G.d_desc.max_code), yt(G, G.bl_desc), et = c - 1; 3 <= et && G.bl_tree[2 * W[et] + 1] === 0; et--) ;
|
|
2229
2229
|
return G.opt_len += 3 * (et + 1) + 5 + 5 + 4, et;
|
|
2230
|
-
}(o), E = o.opt_len + 3 + 7 >>> 3, (H = o.static_len + 3 + 7 >>> 3) <= E && (E = H)) : E = H = L + 5, L + 4 <= E && k !== -1 ?
|
|
2230
|
+
}(o), E = o.opt_len + 3 + 7 >>> 3, (H = o.static_len + 3 + 7 >>> 3) <= E && (E = H)) : E = H = L + 5, L + 4 <= E && k !== -1 ? f(o, k, L, N) : o.strategy === 4 || H === E ? (X(o, 2 + (N ? 1 : 0), 3), kt(o, J, m)) : (X(o, 4 + (N ? 1 : 0), 3), function(G, et, ot, at) {
|
|
2231
2231
|
var bt;
|
|
2232
2232
|
for (X(G, et - 257, 5), X(G, ot - 1, 5), X(G, at - 4, 4), bt = 0; bt < at; bt++) X(G, G.bl_tree[2 * W[bt] + 1], 3);
|
|
2233
|
-
|
|
2233
|
+
D(G, G.dyn_ltree, et - 1), D(G, G.dyn_dtree, ot - 1);
|
|
2234
2234
|
}(o, o.l_desc.max_code + 1, o.d_desc.max_code + 1, $ + 1), kt(o, o.dyn_ltree, o.dyn_dtree)), st(o), N && it(o);
|
|
2235
2235
|
}, y._tr_tally = function(o, k, L) {
|
|
2236
2236
|
return o.pending_buf[o.d_buf + 2 * o.last_lit] = k >>> 8 & 255, o.pending_buf[o.d_buf + 2 * o.last_lit + 1] = 255 & k, o.pending_buf[o.l_buf + o.last_lit] = 255 & L, o.last_lit++, k === 0 ? o.dyn_ltree[2 * L]++ : (o.matches++, k--, o.dyn_ltree[2 * (e[L] + p + 1)]++, o.dyn_dtree[2 * C(k)]++), o.last_lit === o.lit_bufsize - 1;
|
|
@@ -2247,7 +2247,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2247
2247
|
(function(h) {
|
|
2248
2248
|
(function(l, r) {
|
|
2249
2249
|
if (!l.setImmediate) {
|
|
2250
|
-
var s, _, b, p, v = 1, i = {},
|
|
2250
|
+
var s, _, b, p, v = 1, i = {}, c = !1, n = l.document, u = Object.getPrototypeOf && Object.getPrototypeOf(l);
|
|
2251
2251
|
u = u && u.setTimeout ? u : l, s = {}.toString.call(l.process) === "[object process]" ? function(S) {
|
|
2252
2252
|
process.nextTick(function() {
|
|
2253
2253
|
d(S);
|
|
@@ -2274,7 +2274,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2274
2274
|
setTimeout(d, 0, S);
|
|
2275
2275
|
}, u.setImmediate = function(S) {
|
|
2276
2276
|
typeof S != "function" && (S = new Function("" + S));
|
|
2277
|
-
for (var x = new Array(arguments.length - 1),
|
|
2277
|
+
for (var x = new Array(arguments.length - 1), R = 0; R < x.length; R++) x[R] = arguments[R + 1];
|
|
2278
2278
|
var T = { callback: S, args: x };
|
|
2279
2279
|
return i[v] = T, s(v), v++;
|
|
2280
2280
|
}, u.clearImmediate = a;
|
|
@@ -2283,14 +2283,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2283
2283
|
delete i[S];
|
|
2284
2284
|
}
|
|
2285
2285
|
function d(S) {
|
|
2286
|
-
if (
|
|
2286
|
+
if (c) setTimeout(d, 0, S);
|
|
2287
2287
|
else {
|
|
2288
2288
|
var x = i[S];
|
|
2289
2289
|
if (x) {
|
|
2290
|
-
|
|
2290
|
+
c = !0;
|
|
2291
2291
|
try {
|
|
2292
|
-
(function(
|
|
2293
|
-
var T =
|
|
2292
|
+
(function(R) {
|
|
2293
|
+
var T = R.callback, M = R.args;
|
|
2294
2294
|
switch (M.length) {
|
|
2295
2295
|
case 0:
|
|
2296
2296
|
T();
|
|
@@ -2309,7 +2309,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2309
2309
|
}
|
|
2310
2310
|
})(x);
|
|
2311
2311
|
} finally {
|
|
2312
|
-
a(S),
|
|
2312
|
+
a(S), c = !1;
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
}
|
|
@@ -2324,8 +2324,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2324
2324
|
})(pe);
|
|
2325
2325
|
var Be = pe.exports;
|
|
2326
2326
|
const Re = /* @__PURE__ */ Te(Be);
|
|
2327
|
-
function
|
|
2328
|
-
return new Date(
|
|
2327
|
+
function ce(vt) {
|
|
2328
|
+
return new Date(vt).getTime();
|
|
2329
2329
|
}
|
|
2330
2330
|
let te = null;
|
|
2331
2331
|
async function De() {
|
|
@@ -2388,8 +2388,8 @@ class Fe {
|
|
|
2388
2388
|
let l = 0;
|
|
2389
2389
|
const r = h.length, s = await Promise.all(
|
|
2390
2390
|
h.map(async (b, p) => {
|
|
2391
|
-
const i = await (await De())(b),
|
|
2392
|
-
return await this.ffmpeg.writeFile(
|
|
2391
|
+
const i = await (await De())(b), c = `segment_${p}.ts`;
|
|
2392
|
+
return await this.ffmpeg.writeFile(c, i), l++, this.updateProgress(`${Math.floor(l / r * 100)}`), c;
|
|
2393
2393
|
})
|
|
2394
2394
|
);
|
|
2395
2395
|
let _ = y;
|
|
@@ -2431,69 +2431,69 @@ const Pe = {
|
|
|
2431
2431
|
dialogWidth: {},
|
|
2432
2432
|
dialogHeight: {}
|
|
2433
2433
|
},
|
|
2434
|
-
setup(
|
|
2435
|
-
const { t: g } = xe(), U = Ee(), y =
|
|
2434
|
+
setup(vt, { expose: dt }) {
|
|
2435
|
+
const { t: g } = xe(), U = Ee(), y = vt, h = pt(null), l = pt(null);
|
|
2436
2436
|
let r = null;
|
|
2437
|
-
const s = pt(0), _ = pt(0), b = pt(0), p = pt(!1), v = pt(1), i = pt(!1),
|
|
2437
|
+
const s = pt(0), _ = pt(0), b = pt(0), p = pt(!1), v = pt(1), i = pt(!1), c = pt(!0), n = pt(!0), u = pt(!1), a = pt(!1), d = pt(!1), w = pt(!1), S = pt(0), x = pt([]), R = pt(0), T = pt(!1), M = pt(0), I = pt(0);
|
|
2438
2438
|
let W = null, J = null, m = null, O = !1, e = !1;
|
|
2439
2439
|
const F = /* @__PURE__ */ new Set(), rt = pt(0);
|
|
2440
2440
|
let P = null;
|
|
2441
2441
|
const nt = () => {
|
|
2442
|
-
const
|
|
2443
|
-
if (!(
|
|
2444
|
-
x.value = [],
|
|
2442
|
+
const B = y.videoList;
|
|
2443
|
+
if (!(B != null && B.length)) {
|
|
2444
|
+
x.value = [], R.value = 0;
|
|
2445
2445
|
return;
|
|
2446
2446
|
}
|
|
2447
2447
|
let j = 0;
|
|
2448
2448
|
const Y = [];
|
|
2449
|
-
|
|
2450
|
-
const
|
|
2449
|
+
B.forEach((V, q) => {
|
|
2450
|
+
const ft = V.duration || 0;
|
|
2451
2451
|
if (Y.push({
|
|
2452
2452
|
videoUrl: V.media,
|
|
2453
2453
|
start: j,
|
|
2454
|
-
duration:
|
|
2455
|
-
end: j +
|
|
2454
|
+
duration: ft,
|
|
2455
|
+
end: j + ft,
|
|
2456
2456
|
gapDuration: 0,
|
|
2457
2457
|
isGap: !1
|
|
2458
|
-
}), j +=
|
|
2459
|
-
const
|
|
2460
|
-
|
|
2458
|
+
}), j += ft, q < B.length - 1) {
|
|
2459
|
+
const _t = (ce(B[q + 1].startTime) - ce(V.endTime)) / 1e3;
|
|
2460
|
+
_t > 0 && (Y.push({
|
|
2461
2461
|
videoUrl: "",
|
|
2462
2462
|
start: j,
|
|
2463
|
-
duration:
|
|
2464
|
-
end: j +
|
|
2463
|
+
duration: _t,
|
|
2464
|
+
end: j + _t,
|
|
2465
2465
|
gapDuration: 0,
|
|
2466
2466
|
isGap: !0
|
|
2467
|
-
}), j +=
|
|
2467
|
+
}), j += _t);
|
|
2468
2468
|
}
|
|
2469
|
-
}), x.value = Y,
|
|
2470
|
-
}, Z = [1, 2, 4, 8], Q = qt(() => x.value.filter((
|
|
2471
|
-
var
|
|
2472
|
-
return ((j = (
|
|
2469
|
+
}), x.value = Y, R.value = j;
|
|
2470
|
+
}, Z = [1, 2, 4, 8], Q = qt(() => x.value.filter((B) => !B.isGap)), A = qt(() => {
|
|
2471
|
+
var B, j;
|
|
2472
|
+
return ((j = (B = y.videoList) == null ? void 0 : B[_.value]) == null ? void 0 : j.thumb) || "";
|
|
2473
2473
|
}), C = qt(() => {
|
|
2474
|
-
if (
|
|
2475
|
-
const
|
|
2476
|
-
return Math.max(0, Math.min(100,
|
|
2477
|
-
}), tt = (
|
|
2478
|
-
const j = Math.max(0,
|
|
2474
|
+
if (R.value === 0 || !rt.value) return 0;
|
|
2475
|
+
const B = K(b.value);
|
|
2476
|
+
return Math.max(0, Math.min(100, B / rt.value * 100));
|
|
2477
|
+
}), tt = (B) => {
|
|
2478
|
+
const j = Math.max(0, B || 0), Y = Math.floor(j / 3600), V = Math.floor(j % 3600 / 60), q = Math.floor(j % 60);
|
|
2479
2479
|
return Y > 0 ? `${String(Y).padStart(2, "0")}:${String(V).padStart(2, "0")}:${String(q).padStart(2, "0")}` : `${String(V).padStart(2, "0")}:${String(q).padStart(2, "0")}`;
|
|
2480
2480
|
}, X = () => {
|
|
2481
|
-
const
|
|
2481
|
+
const B = x.value, j = rt.value || 1, Y = B.length;
|
|
2482
2482
|
if (!Y || !j) return [];
|
|
2483
|
-
const V =
|
|
2483
|
+
const V = R.value || 1, q = (Y - 1) * de, ft = Math.max(0, j - q), _t = [];
|
|
2484
2484
|
let St = 0;
|
|
2485
2485
|
for (let Dt = 0; Dt < Y; Dt++) {
|
|
2486
|
-
const Wt = V > 0 ?
|
|
2487
|
-
|
|
2486
|
+
const Wt = V > 0 ? B[Dt].duration / V * ft : 0;
|
|
2487
|
+
_t.push({ leftPx: St, widthPx: Wt }), St += Wt + de;
|
|
2488
2488
|
}
|
|
2489
|
-
return
|
|
2490
|
-
}, K = (
|
|
2489
|
+
return _t;
|
|
2490
|
+
}, K = (B) => {
|
|
2491
2491
|
const j = x.value, Y = X();
|
|
2492
2492
|
for (let V = 0; V < j.length; V++) {
|
|
2493
2493
|
const q = j[V];
|
|
2494
|
-
if (
|
|
2495
|
-
const
|
|
2496
|
-
return Y[V].leftPx +
|
|
2494
|
+
if (B >= q.start && B < q.end) {
|
|
2495
|
+
const ft = q.duration ? (B - q.start) / q.duration : 0;
|
|
2496
|
+
return Y[V].leftPx + ft * Y[V].widthPx;
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
2499
2499
|
if (Y.length) {
|
|
@@ -2501,65 +2501,65 @@ const Pe = {
|
|
|
2501
2501
|
return V.leftPx + V.widthPx;
|
|
2502
2502
|
}
|
|
2503
2503
|
return 0;
|
|
2504
|
-
}, lt = (
|
|
2504
|
+
}, lt = (B) => {
|
|
2505
2505
|
const j = x.value, Y = X();
|
|
2506
2506
|
for (let V = 0; V < Y.length; V++) {
|
|
2507
2507
|
const q = Y[V];
|
|
2508
|
-
if (
|
|
2509
|
-
const
|
|
2510
|
-
return j[V].start +
|
|
2508
|
+
if (B >= q.leftPx && B <= q.leftPx + q.widthPx) {
|
|
2509
|
+
const ft = q.widthPx ? (B - q.leftPx) / q.widthPx : 0;
|
|
2510
|
+
return j[V].start + ft * j[V].duration;
|
|
2511
2511
|
}
|
|
2512
2512
|
}
|
|
2513
2513
|
if (Y.length) {
|
|
2514
2514
|
const V = Y[Y.length - 1];
|
|
2515
|
-
if (
|
|
2515
|
+
if (B > V.leftPx + V.widthPx) return j[j.length - 1].end;
|
|
2516
2516
|
for (let q = 0; q < Y.length; q++)
|
|
2517
|
-
if (
|
|
2517
|
+
if (B <= Y[q].leftPx) return j[q].start;
|
|
2518
2518
|
}
|
|
2519
2519
|
return 0;
|
|
2520
|
-
},
|
|
2520
|
+
}, gt = (B, j) => {
|
|
2521
2521
|
const Y = rt.value || 1, q = X()[j] || { leftPx: 0, widthPx: 0 };
|
|
2522
2522
|
return {
|
|
2523
2523
|
left: `${q.leftPx / Y * 100}%`,
|
|
2524
2524
|
width: `${q.widthPx / Y * 100}%`
|
|
2525
2525
|
};
|
|
2526
|
-
}, st = (
|
|
2526
|
+
}, st = (B) => {
|
|
2527
2527
|
const j = Q.value;
|
|
2528
2528
|
if (!j.length) return { index: 0, local: 0 };
|
|
2529
2529
|
for (let V = 0; V < j.length; V++)
|
|
2530
|
-
if (
|
|
2531
|
-
return { index: V, local:
|
|
2530
|
+
if (B >= j[V].start && B <= j[V].end)
|
|
2531
|
+
return { index: V, local: B - j[V].start };
|
|
2532
2532
|
for (let V = 0; V < j.length; V++)
|
|
2533
|
-
if (
|
|
2533
|
+
if (B < j[V].start) return { index: V, local: 0 };
|
|
2534
2534
|
const Y = j[j.length - 1];
|
|
2535
2535
|
return { index: j.length - 1, local: Y.duration - 0.05 };
|
|
2536
2536
|
}, it = () => (r == null ? void 0 : r.media) || null, mt = () => {
|
|
2537
|
-
const
|
|
2538
|
-
|
|
2537
|
+
const B = it();
|
|
2538
|
+
B && (B.addEventListener("timeupdate", L), B.addEventListener("ended", N), B.addEventListener("canplay", E), B.addEventListener("waiting", H), B.addEventListener("playing", $), B.addEventListener("pause", G), B.addEventListener("error", et));
|
|
2539
2539
|
}, ut = () => {
|
|
2540
|
-
const
|
|
2541
|
-
|
|
2542
|
-
}, kt = (
|
|
2540
|
+
const B = it();
|
|
2541
|
+
B && (B.removeEventListener("timeupdate", L), B.removeEventListener("ended", N), B.removeEventListener("canplay", E), B.removeEventListener("waiting", H), B.removeEventListener("playing", $), B.removeEventListener("pause", G), B.removeEventListener("error", et));
|
|
2542
|
+
}, kt = (B) => {
|
|
2543
2543
|
if (r)
|
|
2544
2544
|
try {
|
|
2545
|
-
r.switchURL(
|
|
2545
|
+
r.switchURL(B);
|
|
2546
2546
|
} catch {
|
|
2547
2547
|
i.value = !0;
|
|
2548
2548
|
}
|
|
2549
2549
|
else {
|
|
2550
|
-
if (!
|
|
2550
|
+
if (!fe.isSupported()) {
|
|
2551
2551
|
i.value = !0;
|
|
2552
2552
|
return;
|
|
2553
2553
|
}
|
|
2554
2554
|
r = new Oe({
|
|
2555
2555
|
el: h.value,
|
|
2556
|
-
url:
|
|
2556
|
+
url: B,
|
|
2557
2557
|
width: "100%",
|
|
2558
2558
|
height: "100%",
|
|
2559
2559
|
isLive: !1,
|
|
2560
2560
|
autoplay: !1,
|
|
2561
2561
|
controls: !1,
|
|
2562
|
-
plugins: [
|
|
2562
|
+
plugins: [fe],
|
|
2563
2563
|
// 隐藏 xgplayer 默认 UI,仅作为播放内核
|
|
2564
2564
|
videoFillMode: "fill",
|
|
2565
2565
|
fitVideoSize: "auto",
|
|
@@ -2568,7 +2568,7 @@ const Pe = {
|
|
|
2568
2568
|
keyboard: !1,
|
|
2569
2569
|
playsinline: !0
|
|
2570
2570
|
}), mt(), r.on("loadedmetadata", () => {
|
|
2571
|
-
|
|
2571
|
+
D();
|
|
2572
2572
|
}), r.on("error", () => {
|
|
2573
2573
|
i.value = !0;
|
|
2574
2574
|
});
|
|
@@ -2576,89 +2576,89 @@ const Pe = {
|
|
|
2576
2576
|
}, yt = () => {
|
|
2577
2577
|
ut(), r && (r.destroy(), r = null);
|
|
2578
2578
|
}, t = () => {
|
|
2579
|
-
const
|
|
2580
|
-
|
|
2581
|
-
},
|
|
2582
|
-
const
|
|
2583
|
-
if (
|
|
2579
|
+
const B = it();
|
|
2580
|
+
B && B.playbackRate !== v.value && (B.playbackRate = v.value);
|
|
2581
|
+
}, D = () => {
|
|
2582
|
+
const B = it();
|
|
2583
|
+
if (B) {
|
|
2584
2584
|
if (t(), m != null) {
|
|
2585
2585
|
const j = Q.value[s.value], Y = j == null ? void 0 : j.duration, V = m;
|
|
2586
|
-
|
|
2586
|
+
B.currentTime = Y && isFinite(V) ? Math.max(0, Math.min(V, Y - 0.05)) : Math.max(0, V), m = null;
|
|
2587
2587
|
}
|
|
2588
|
-
O && (O = !1,
|
|
2588
|
+
O && (O = !1, B.play().catch(() => {
|
|
2589
2589
|
}));
|
|
2590
2590
|
}
|
|
2591
|
-
}, z = (
|
|
2592
|
-
const V = Q.value[
|
|
2593
|
-
V && (s.value =
|
|
2594
|
-
},
|
|
2595
|
-
const
|
|
2596
|
-
if (
|
|
2597
|
-
if (b.value >=
|
|
2591
|
+
}, z = (B, j, Y) => {
|
|
2592
|
+
const V = Q.value[B];
|
|
2593
|
+
V && (s.value = B, _.value = B, k = !1, m = Math.max(0, j), O = Y, n.value = !0, u.value = !0, kt(V.videoUrl));
|
|
2594
|
+
}, f = () => {
|
|
2595
|
+
const B = it();
|
|
2596
|
+
if (B) {
|
|
2597
|
+
if (b.value >= R.value - 0.05) {
|
|
2598
2598
|
b.value = 0, z(0, 0, !0);
|
|
2599
2599
|
return;
|
|
2600
2600
|
}
|
|
2601
|
-
|
|
2601
|
+
B.paused ? B.play().then(() => {
|
|
2602
2602
|
p.value = !0, n.value = !1, at();
|
|
2603
2603
|
}).catch(() => {
|
|
2604
|
-
}) : (
|
|
2604
|
+
}) : (B.pause(), p.value = !1, c.value = !0);
|
|
2605
2605
|
}
|
|
2606
2606
|
};
|
|
2607
2607
|
let o = 0, k = !1;
|
|
2608
2608
|
const L = () => {
|
|
2609
2609
|
var Y;
|
|
2610
2610
|
if (d.value) return;
|
|
2611
|
-
const
|
|
2612
|
-
if (
|
|
2613
|
-
const V = j.end, q = j.start +
|
|
2611
|
+
const B = it(), j = Q.value[s.value];
|
|
2612
|
+
if (B && j) {
|
|
2613
|
+
const V = j.end, q = j.start + B.currentTime;
|
|
2614
2614
|
b.value = Math.max(j.start, Math.min(q, V));
|
|
2615
|
-
const
|
|
2616
|
-
|
|
2615
|
+
const ft = Date.now();
|
|
2616
|
+
ft - o >= 1e3 && (o = ft, console.log("[Progress]", {
|
|
2617
2617
|
index: s.value,
|
|
2618
|
-
currentTime: Number(
|
|
2619
|
-
videoDuration: Number((Y =
|
|
2618
|
+
currentTime: Number(B.currentTime.toFixed(2)),
|
|
2619
|
+
videoDuration: Number((Y = B.duration) == null ? void 0 : Y.toFixed(2)),
|
|
2620
2620
|
segStart: Number(j.start.toFixed(2)),
|
|
2621
2621
|
segEnd: Number(j.end.toFixed(2)),
|
|
2622
2622
|
globalTime: Number(b.value.toFixed(2)),
|
|
2623
|
-
totalDuration: Number(
|
|
2623
|
+
totalDuration: Number(R.value.toFixed(2)),
|
|
2624
2624
|
metaDurations: y.videoList.map((St) => St.duration)
|
|
2625
2625
|
}));
|
|
2626
|
-
const
|
|
2627
|
-
|
|
2626
|
+
const _t = j.duration;
|
|
2627
|
+
B.currentTime >= _t - 0.1 && !k && (k = !0, N());
|
|
2628
2628
|
}
|
|
2629
2629
|
}, N = () => {
|
|
2630
|
-
const
|
|
2631
|
-
|
|
2630
|
+
const B = Q.value[s.value];
|
|
2631
|
+
B && (b.value = B.end), s.value < Q.value.length - 1 ? z(s.value + 1, 0, !0) : (p.value = !1, c.value = !0, n.value = !0);
|
|
2632
2632
|
}, E = () => {
|
|
2633
|
-
i.value = !1, u.value = !1,
|
|
2633
|
+
i.value = !1, u.value = !1, D();
|
|
2634
2634
|
}, H = () => {
|
|
2635
2635
|
u.value = !0;
|
|
2636
2636
|
}, $ = () => {
|
|
2637
2637
|
u.value = !1, p.value = !0, n.value = !1, at();
|
|
2638
2638
|
}, G = () => {
|
|
2639
|
-
u.value = !1, p.value = !1,
|
|
2639
|
+
u.value = !1, p.value = !1, c.value = !0;
|
|
2640
2640
|
}, et = () => {
|
|
2641
2641
|
i.value = !0, n.value = !1;
|
|
2642
2642
|
}, ot = () => {
|
|
2643
2643
|
i.value = !1, Q.value[s.value] && z(s.value, 0, !1);
|
|
2644
2644
|
}, at = () => {
|
|
2645
|
-
|
|
2646
|
-
p.value && !a.value && (
|
|
2645
|
+
c.value = !0, W && clearTimeout(W), W = setTimeout(() => {
|
|
2646
|
+
p.value && !a.value && (c.value = !1);
|
|
2647
2647
|
}, 1500);
|
|
2648
2648
|
}, bt = () => {
|
|
2649
|
-
a.value = !0, p.value && (
|
|
2649
|
+
a.value = !0, p.value && (c.value = !0, W && clearTimeout(W));
|
|
2650
2650
|
}, Tt = () => {
|
|
2651
2651
|
a.value = !1, p.value && at();
|
|
2652
|
-
}, wt = (
|
|
2652
|
+
}, wt = (B) => {
|
|
2653
2653
|
const j = l.value;
|
|
2654
2654
|
if (!j) return 0;
|
|
2655
2655
|
const Y = j.getBoundingClientRect();
|
|
2656
|
-
return Math.max(0, Math.min(1, (
|
|
2657
|
-
}, Et = (
|
|
2658
|
-
const j =
|
|
2656
|
+
return Math.max(0, Math.min(1, (B - Y.left) / Y.width)) * 100;
|
|
2657
|
+
}, Et = (B) => {
|
|
2658
|
+
const j = B / 100 * (rt.value || 1);
|
|
2659
2659
|
return lt(j);
|
|
2660
|
-
}, ht = (
|
|
2661
|
-
const j = Et(
|
|
2660
|
+
}, ht = (B) => {
|
|
2661
|
+
const j = Et(B), Y = st(j), V = Q.value[Y.index];
|
|
2662
2662
|
if (!V) return;
|
|
2663
2663
|
b.value = V.start + Y.local;
|
|
2664
2664
|
const q = it();
|
|
@@ -2667,46 +2667,46 @@ const Pe = {
|
|
|
2667
2667
|
return;
|
|
2668
2668
|
}
|
|
2669
2669
|
z(Y.index, Y.local, p.value);
|
|
2670
|
-
}, Rt = (
|
|
2671
|
-
if (
|
|
2670
|
+
}, Rt = (B) => {
|
|
2671
|
+
if (B.preventDefault(), !l.value) return;
|
|
2672
2672
|
d.value = !0, T.value = !0;
|
|
2673
2673
|
const j = (V) => {
|
|
2674
2674
|
J || (J = setTimeout(() => {
|
|
2675
2675
|
var St;
|
|
2676
2676
|
J = null;
|
|
2677
|
-
const q = wt(V.clientX),
|
|
2678
|
-
I.value = q, M.value = Math.max(0, Math.min(
|
|
2679
|
-
const
|
|
2680
|
-
b.value = ((St = Q.value[
|
|
2677
|
+
const q = wt(V.clientX), ft = Et(q);
|
|
2678
|
+
I.value = q, M.value = Math.max(0, Math.min(ft, R.value - 0.05));
|
|
2679
|
+
const _t = st(ft);
|
|
2680
|
+
b.value = ((St = Q.value[_t.index]) == null ? void 0 : St.start) + _t.local;
|
|
2681
2681
|
}, 30));
|
|
2682
2682
|
}, Y = (V) => {
|
|
2683
2683
|
d.value = !1, T.value = !1, J && (clearTimeout(J), J = null), document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", Y), ht(wt(V.clientX));
|
|
2684
2684
|
};
|
|
2685
2685
|
document.addEventListener("mousemove", j), document.addEventListener("mouseup", Y);
|
|
2686
|
-
}, Pt = (
|
|
2687
|
-
const j = wt(
|
|
2688
|
-
I.value = j, M.value = Math.max(0, Math.min(Et(j),
|
|
2686
|
+
}, Pt = (B) => {
|
|
2687
|
+
const j = wt(B.clientX);
|
|
2688
|
+
I.value = j, M.value = Math.max(0, Math.min(Et(j), R.value - 0.05)), T.value = !0;
|
|
2689
2689
|
}, xt = () => {
|
|
2690
2690
|
T.value = !1;
|
|
2691
2691
|
}, Nt = () => {
|
|
2692
|
-
I.value = C.value, M.value = Math.max(0, Math.min(b.value,
|
|
2692
|
+
I.value = C.value, M.value = Math.max(0, Math.min(b.value, R.value - 0.05)), T.value = !0;
|
|
2693
2693
|
}, Ut = () => {
|
|
2694
2694
|
P == null || P.abort();
|
|
2695
|
-
}, Mt = (
|
|
2696
|
-
const Y = URL.createObjectURL(
|
|
2695
|
+
}, Mt = (B, j) => {
|
|
2696
|
+
const Y = URL.createObjectURL(B), V = document.createElement("a");
|
|
2697
2697
|
V.href = Y, V.download = j, V.click(), URL.revokeObjectURL(Y);
|
|
2698
2698
|
}, Vt = async () => {
|
|
2699
2699
|
var Y, V;
|
|
2700
2700
|
if (w.value) return;
|
|
2701
2701
|
P == null || P.abort(), P = new AbortController(), w.value = !0, S.value = 0;
|
|
2702
|
-
const
|
|
2703
|
-
|
|
2702
|
+
const B = [], j = () => {
|
|
2703
|
+
B.forEach((q) => q.getController().abort());
|
|
2704
2704
|
};
|
|
2705
2705
|
P.signal.addEventListener("abort", j);
|
|
2706
2706
|
try {
|
|
2707
|
-
const q = y.videoList,
|
|
2707
|
+
const q = y.videoList, ft = (Y = q == null ? void 0 : q[0]) == null ? void 0 : Y.deviceId, _t = ((V = q == null ? void 0 : q[0]) == null ? void 0 : V.startTime) || (/* @__PURE__ */ new Date()).toISOString(), St = q.length, Dt = new Array(St).fill(0), Wt = async (Zt, Yt) => {
|
|
2708
2708
|
const Ht = new Fe();
|
|
2709
|
-
|
|
2709
|
+
B.push(Ht), Ht.setProgressCallback((_e) => {
|
|
2710
2710
|
Dt[Yt] = Number(_e) || 0, S.value = Math.round(
|
|
2711
2711
|
Dt.reduce((ve, be) => ve + be, 0) / St
|
|
2712
2712
|
);
|
|
@@ -2717,15 +2717,15 @@ const Pe = {
|
|
|
2717
2717
|
}, ee = await Promise.all(q.map(Wt));
|
|
2718
2718
|
if (P != null && P.signal.aborted) throw new Error("Download aborted");
|
|
2719
2719
|
if (St === 1) {
|
|
2720
|
-
Mt(ee[0], `${
|
|
2720
|
+
Mt(ee[0], `${ft} (${_t}).mp4`);
|
|
2721
2721
|
return;
|
|
2722
2722
|
}
|
|
2723
|
-
const re = new Re(), me = re.folder(`${
|
|
2723
|
+
const re = new Re(), me = re.folder(`${ft} (${_t}).mp4`);
|
|
2724
2724
|
q.forEach((Zt, Yt) => {
|
|
2725
2725
|
me.file(`${Zt.deviceId} (${Zt.startTime}).mp4`, ee[Yt]);
|
|
2726
2726
|
});
|
|
2727
2727
|
const ge = await re.generateAsync({ type: "blob" });
|
|
2728
|
-
Mt(ge, `${
|
|
2728
|
+
Mt(ge, `${ft} (${_t}).zip`);
|
|
2729
2729
|
} catch (q) {
|
|
2730
2730
|
if (P != null && P.signal.aborted) {
|
|
2731
2731
|
console.log("[Download] cancelled");
|
|
@@ -2738,115 +2738,115 @@ const Pe = {
|
|
|
2738
2738
|
};
|
|
2739
2739
|
dt({ abortDownload: Ut });
|
|
2740
2740
|
const jt = () => {
|
|
2741
|
-
var
|
|
2742
|
-
(
|
|
2741
|
+
var B;
|
|
2742
|
+
(B = y.videoList) == null || B.forEach((j) => {
|
|
2743
2743
|
if (!j.thumb || F.has(j.thumb)) return;
|
|
2744
2744
|
F.add(j.thumb);
|
|
2745
2745
|
const Y = new Image();
|
|
2746
2746
|
Y.src = j.thumb;
|
|
2747
2747
|
});
|
|
2748
2748
|
};
|
|
2749
|
-
ae(() => y.videoList, (
|
|
2750
|
-
|
|
2749
|
+
ae(() => y.videoList, (B) => {
|
|
2750
|
+
B != null && B.length && (nt(), jt(), s.value = 0, b.value = 0, p.value = !1, c.value = !0, n.value = !0, i.value = !1, r ? z(0, 0, !1) : e = !0);
|
|
2751
2751
|
}, { immediate: !0 }), Ae(() => {
|
|
2752
|
-
var
|
|
2753
|
-
Ct(), window.addEventListener("resize", Ct), e && ((
|
|
2752
|
+
var B;
|
|
2753
|
+
Ct(), window.addEventListener("resize", Ct), e && ((B = y.videoList) != null && B.length) && (e = !1, z(0, 0, !1));
|
|
2754
2754
|
});
|
|
2755
2755
|
const Ct = () => {
|
|
2756
|
-
const
|
|
2757
|
-
|
|
2756
|
+
const B = l.value;
|
|
2757
|
+
B && (rt.value = B.getBoundingClientRect().width);
|
|
2758
2758
|
};
|
|
2759
2759
|
return ae(v, () => {
|
|
2760
2760
|
t();
|
|
2761
2761
|
}), Ie(() => {
|
|
2762
2762
|
Ut(), W && clearTimeout(W), J && clearTimeout(J), window.removeEventListener("resize", Ct), yt();
|
|
2763
|
-
}), (
|
|
2763
|
+
}), (B, j) => {
|
|
2764
2764
|
const Y = Se, V = ke;
|
|
2765
|
-
return
|
|
2765
|
+
return At(), zt("div", {
|
|
2766
2766
|
class: "video-viewport",
|
|
2767
|
-
style: Lt({ width:
|
|
2767
|
+
style: Lt({ width: B.dialogWidth + "px", height: B.dialogHeight + "px" }),
|
|
2768
2768
|
onMouseenter: bt,
|
|
2769
2769
|
onMouseleave: Tt
|
|
2770
2770
|
}, [
|
|
2771
|
-
|
|
2771
|
+
ct("div", {
|
|
2772
2772
|
ref_key: "playerContainerRef",
|
|
2773
2773
|
ref: h,
|
|
2774
2774
|
class: "xgplayer-container"
|
|
2775
2775
|
}, null, 512),
|
|
2776
|
-
i.value ? (
|
|
2777
|
-
|
|
2778
|
-
|
|
2776
|
+
i.value ? (At(), zt("div", Pe, [
|
|
2777
|
+
ct("p", null, It(se(g)("videoLoadFailed")), 1),
|
|
2778
|
+
ct("button", { onClick: ot }, It(se(g)("retry")), 1)
|
|
2779
2779
|
])) : Gt("", !0),
|
|
2780
|
-
n.value && A.value ? (
|
|
2780
|
+
n.value && A.value ? (At(), zt("img", {
|
|
2781
2781
|
key: 1,
|
|
2782
2782
|
class: "video-cover",
|
|
2783
2783
|
src: A.value,
|
|
2784
2784
|
alt: ""
|
|
2785
2785
|
}, null, 8, Le)) : Gt("", !0),
|
|
2786
|
-
u.value ? (
|
|
2786
|
+
u.value ? (At(), zt("div", Ne, [
|
|
2787
2787
|
Ot(ie, {
|
|
2788
2788
|
white: !0,
|
|
2789
2789
|
loading: !0
|
|
2790
2790
|
})
|
|
2791
2791
|
])) : Gt("", !0),
|
|
2792
|
-
|
|
2792
|
+
ct("div", {
|
|
2793
2793
|
class: "center-play-overlay",
|
|
2794
|
-
onClick:
|
|
2794
|
+
onClick: f
|
|
2795
2795
|
}, [
|
|
2796
2796
|
Ot(oe, { name: "fade" }, {
|
|
2797
2797
|
default: Kt(() => [
|
|
2798
|
-
Jt(
|
|
2798
|
+
Jt(ct("div", Ue, [
|
|
2799
2799
|
Ot(Y, {
|
|
2800
2800
|
name: p.value ? "stopPlay" : "play",
|
|
2801
2801
|
"font-size": "48",
|
|
2802
2802
|
color: "#fff"
|
|
2803
2803
|
}, null, 8, ["name"])
|
|
2804
2804
|
], 512), [
|
|
2805
|
-
[Qt,
|
|
2805
|
+
[Qt, c.value]
|
|
2806
2806
|
])
|
|
2807
2807
|
]),
|
|
2808
2808
|
_: 1
|
|
2809
2809
|
}),
|
|
2810
2810
|
Ot(oe, { name: "fade" }, {
|
|
2811
2811
|
default: Kt(() => [
|
|
2812
|
-
Jt(
|
|
2812
|
+
Jt(ct("div", {
|
|
2813
2813
|
class: "center-time",
|
|
2814
2814
|
onClick: j[0] || (j[0] = Bt(() => {
|
|
2815
2815
|
}, ["stop"]))
|
|
2816
2816
|
}, [
|
|
2817
|
-
|
|
2818
|
-
j[4] || (j[4] =
|
|
2819
|
-
|
|
2817
|
+
ct("span", Me, It(tt(b.value)), 1),
|
|
2818
|
+
j[4] || (j[4] = ct("span", { class: "time-sep" }, "/", -1)),
|
|
2819
|
+
ct("span", je, It(tt(R.value)), 1)
|
|
2820
2820
|
], 512), [
|
|
2821
|
-
[Qt,
|
|
2821
|
+
[Qt, c.value]
|
|
2822
2822
|
])
|
|
2823
2823
|
]),
|
|
2824
2824
|
_: 1
|
|
2825
2825
|
})
|
|
2826
2826
|
]),
|
|
2827
|
-
|
|
2827
|
+
ct("div", {
|
|
2828
2828
|
class: "bottom-controls",
|
|
2829
2829
|
onClick: j[3] || (j[3] = Bt(() => {
|
|
2830
2830
|
}, ["stop"]))
|
|
2831
2831
|
}, [
|
|
2832
|
-
|
|
2832
|
+
ct("div", {
|
|
2833
2833
|
class: "progress-container",
|
|
2834
|
-
style: Lt({ width:
|
|
2834
|
+
style: Lt({ width: B.dialogWidth - 500 + "px" })
|
|
2835
2835
|
}, [
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
Jt(
|
|
2836
|
+
ct("div", We, [
|
|
2837
|
+
ct("div", Ze, [
|
|
2838
|
+
Jt(ct("div", {
|
|
2839
2839
|
class: "thumb-time",
|
|
2840
2840
|
style: Lt({ left: I.value + "%" })
|
|
2841
2841
|
}, [
|
|
2842
|
-
|
|
2843
|
-
j[5] || (j[5] =
|
|
2844
|
-
|
|
2842
|
+
ct("span", He, It(tt(M.value)), 1),
|
|
2843
|
+
j[5] || (j[5] = ct("span", { class: "time-sep" }, "/", -1)),
|
|
2844
|
+
ct("span", Ge, It(tt(R.value)), 1)
|
|
2845
2845
|
], 4), [
|
|
2846
2846
|
[Qt, T.value]
|
|
2847
2847
|
])
|
|
2848
2848
|
]),
|
|
2849
|
-
|
|
2849
|
+
ct("div", {
|
|
2850
2850
|
class: "progress-track",
|
|
2851
2851
|
ref_key: "trackRef",
|
|
2852
2852
|
ref: l,
|
|
@@ -2854,35 +2854,35 @@ const Pe = {
|
|
|
2854
2854
|
onMousemove: Pt,
|
|
2855
2855
|
onMouseleave: xt
|
|
2856
2856
|
}, [
|
|
2857
|
-
(
|
|
2858
|
-
key:
|
|
2857
|
+
(At(!0), zt(le, null, ue(x.value, (q, ft) => (At(), zt("div", {
|
|
2858
|
+
key: ft,
|
|
2859
2859
|
class: he(["progress-segment", { gap: q.isGap }]),
|
|
2860
|
-
style: Lt(
|
|
2860
|
+
style: Lt(gt(q, ft))
|
|
2861
2861
|
}, null, 6))), 128)),
|
|
2862
|
-
|
|
2862
|
+
ct("div", {
|
|
2863
2863
|
class: "progress-thumb",
|
|
2864
2864
|
style: Lt({ left: C.value + "%" }),
|
|
2865
2865
|
onMousemove: Bt(Nt, ["stop"]),
|
|
2866
2866
|
onMouseleave: j[1] || (j[1] = Bt((q) => T.value = !1, ["stop"]))
|
|
2867
2867
|
}, [...j[6] || (j[6] = [
|
|
2868
|
-
|
|
2868
|
+
ct("div", { class: "thumb-dot" }, null, -1)
|
|
2869
2869
|
])], 36)
|
|
2870
2870
|
], 544)
|
|
2871
2871
|
]),
|
|
2872
|
-
|
|
2872
|
+
ct("div", {
|
|
2873
2873
|
class: "speed-selector",
|
|
2874
2874
|
onClick: j[2] || (j[2] = Bt(() => {
|
|
2875
2875
|
}, ["stop"]))
|
|
2876
2876
|
}, [
|
|
2877
|
-
(
|
|
2877
|
+
(At(), zt(le, null, ue(Z, (q) => ct("span", {
|
|
2878
2878
|
key: q,
|
|
2879
2879
|
class: he(["speed-text", { active: v.value === q }]),
|
|
2880
|
-
onClick: Bt((
|
|
2880
|
+
onClick: Bt((ft) => v.value = q, ["stop"])
|
|
2881
2881
|
}, "X" + It(q), 11, Ke)), 64))
|
|
2882
2882
|
])
|
|
2883
2883
|
], 4)
|
|
2884
2884
|
]),
|
|
2885
|
-
|
|
2885
|
+
ct("div", {
|
|
2886
2886
|
class: "download",
|
|
2887
2887
|
onClick: Bt(Vt, ["stop"])
|
|
2888
2888
|
}, [
|
|
@@ -2904,7 +2904,7 @@ const Pe = {
|
|
|
2904
2904
|
inert: "",
|
|
2905
2905
|
tabindex: "-1"
|
|
2906
2906
|
}),
|
|
2907
|
-
w.value ? (
|
|
2907
|
+
w.value ? (At(), zt("span", Xe, It(Math.round(S.value)) + "%", 1)) : Gt("", !0)
|
|
2908
2908
|
]),
|
|
2909
2909
|
_: 1
|
|
2910
2910
|
}, 8, ["loading"])
|