anytrek-front-public-component 1.14.1 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{ImageDisplayVideo-Cz87MDd8.mjs → ImageDisplayVideo-DfFBOF8l.mjs} +368 -368
- package/anytrek-front-public-component.mjs +2 -2
- package/anytrek-front-public-component.umd.js +79 -79
- package/index-CPnUioab.mjs +70 -0
- package/{index-BWSaLsz0.mjs → index-Cxc6zLLk.mjs} +5862 -5794
- package/package.json +1 -1
- package/style.css +1 -1
- package/{xgplayer-Cpii7T5s.mjs → xgplayer-C7FnRLni.mjs} +722 -699
- package/index-BrI6_G7d.mjs +0 -24
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var Ce = Object.defineProperty;
|
|
2
|
-
var ze = (
|
|
3
|
-
var Lt = (
|
|
2
|
+
var ze = (bt, ft, v) => ft in bt ? Ce(bt, ft, { enumerable: !0, configurable: !0, writable: !0, value: v }) : bt[ft] = v;
|
|
3
|
+
var Lt = (bt, ft, v) => ze(bt, typeof ft != "symbol" ? ft + "" : ft, v);
|
|
4
4
|
import { ElButton as Ae } 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 De, computed as Nt, ref as pt, watch as he, onMounted as Fe, onBeforeUnmount as Pe, openBlock as It, createElementBlock as Tt, normalizeStyle as Ut, createElementVNode as lt, toDisplayString as St, unref as Gt, createCommentVNode as $t, createVNode as zt, Transition as ce, withCtx as Kt, withDirectives as ee, vShow as re, withModifiers as Dt, Fragment as
|
|
9
|
-
import {
|
|
10
|
-
function Vt(
|
|
11
|
-
throw new Error('Could not dynamically require "' +
|
|
7
|
+
import { u as Ie, a as le, f as Te, L as ue, _ as Oe, b as Be, c as Re } from "./index-Cxc6zLLk.mjs";
|
|
8
|
+
import { defineComponent as De, computed as Nt, ref as pt, watch as he, onMounted as Fe, onBeforeUnmount as Pe, openBlock as It, createElementBlock as Tt, normalizeStyle as Ut, createElementVNode as lt, toDisplayString as St, unref as Gt, createCommentVNode as $t, createVNode as zt, Transition as ce, withCtx as Kt, withDirectives as ee, vShow as re, withModifiers as Dt, Fragment as de, renderList as fe, normalizeClass as pe } from "vue";
|
|
9
|
+
import { c as Xt, g as Le, H as me, P as Ne } from "./xgplayer-C7FnRLni.mjs";
|
|
10
|
+
function Vt(bt) {
|
|
11
|
+
throw new Error('Could not dynamically require "' + bt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
12
12
|
}
|
|
13
13
|
var ve = { 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(bt, ft) {
|
|
26
26
|
(function(v) {
|
|
27
|
-
|
|
27
|
+
bt.exports = v();
|
|
28
28
|
})(function() {
|
|
29
29
|
return function v(L, w, h) {
|
|
30
30
|
function l(p, b) {
|
|
@@ -37,9 +37,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
37
37
|
throw _.code = "MODULE_NOT_FOUND", _;
|
|
38
38
|
}
|
|
39
39
|
var i = w[p] = { exports: {} };
|
|
40
|
-
L[p][0].call(i.exports, function(
|
|
41
|
-
var r = L[p][1][
|
|
42
|
-
return l(r ||
|
|
40
|
+
L[p][0].call(i.exports, function(d) {
|
|
41
|
+
var r = L[p][1][d];
|
|
42
|
+
return l(r || d);
|
|
43
43
|
}, i, i.exports, v, L, w, h);
|
|
44
44
|
}
|
|
45
45
|
return w[p].exports;
|
|
@@ -49,20 +49,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
49
49
|
}({ 1: [function(v, L, w) {
|
|
50
50
|
var h = v("./utils"), l = v("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
51
51
|
w.encode = function(o) {
|
|
52
|
-
for (var p, b, g, _, i,
|
|
52
|
+
for (var p, b, g, _, i, d, r, u = [], a = 0, f = o.length, y = f, S = h.getTypeOf(o) !== "string"; a < o.length; ) y = f - a, g = S ? (p = o[a++], b = a < f ? o[a++] : 0, a < f ? o[a++] : 0) : (p = o.charCodeAt(a++), b = a < f ? o.charCodeAt(a++) : 0, a < f ? o.charCodeAt(a++) : 0), _ = p >> 2, i = (3 & p) << 4 | b >> 4, d = 1 < y ? (15 & b) << 2 | g >> 6 : 64, r = 2 < y ? 63 & g : 64, u.push(n.charAt(_) + n.charAt(i) + n.charAt(d) + n.charAt(r));
|
|
53
53
|
return u.join("");
|
|
54
54
|
}, w.decode = function(o) {
|
|
55
|
-
var p, b, g, _, i,
|
|
55
|
+
var p, b, g, _, i, d, r = 0, u = 0, a = "data:";
|
|
56
56
|
if (o.substr(0, a.length) === a) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
57
|
-
var
|
|
57
|
+
var f, y = 3 * (o = o.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
58
58
|
if (o.charAt(o.length - 1) === n.charAt(64) && y--, o.charAt(o.length - 2) === n.charAt(64) && y--, y % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
59
|
-
for (
|
|
60
|
-
return
|
|
59
|
+
for (f = l.uint8array ? new Uint8Array(0 | y) : new Array(0 | y); r < o.length; ) p = n.indexOf(o.charAt(r++)) << 2 | (_ = n.indexOf(o.charAt(r++))) >> 4, b = (15 & _) << 4 | (i = n.indexOf(o.charAt(r++))) >> 2, g = (3 & i) << 6 | (d = n.indexOf(o.charAt(r++))), f[u++] = p, i !== 64 && (f[u++] = b), d !== 64 && (f[u++] = g);
|
|
60
|
+
return f;
|
|
61
61
|
};
|
|
62
62
|
}, { "./support": 30, "./utils": 32 }], 2: [function(v, L, w) {
|
|
63
63
|
var h = v("./external"), l = v("./stream/DataWorker"), n = v("./stream/Crc32Probe"), o = v("./stream/DataLengthProbe");
|
|
64
|
-
function p(b, g, _, i,
|
|
65
|
-
this.compressedSize = b, this.uncompressedSize = g, this.crc32 = _, this.compression = i, this.compressedContent =
|
|
64
|
+
function p(b, g, _, i, d) {
|
|
65
|
+
this.compressedSize = b, this.uncompressedSize = g, this.crc32 = _, this.compression = i, this.compressedContent = d;
|
|
66
66
|
}
|
|
67
67
|
p.prototype = { getContentWorker: function() {
|
|
68
68
|
var b = new l(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")), g = this;
|
|
@@ -92,14 +92,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
92
92
|
}();
|
|
93
93
|
L.exports = function(n, o) {
|
|
94
94
|
return n !== void 0 && n.length ? h.getTypeOf(n) !== "string" ? function(p, b, g, _) {
|
|
95
|
-
var i = l,
|
|
95
|
+
var i = l, d = _ + g;
|
|
96
96
|
p ^= -1;
|
|
97
|
-
for (var r = _; r <
|
|
97
|
+
for (var r = _; r < d; r++) p = p >>> 8 ^ i[255 & (p ^ b[r])];
|
|
98
98
|
return -1 ^ p;
|
|
99
99
|
}(0 | o, n, n.length, 0) : function(p, b, g, _) {
|
|
100
|
-
var i = l,
|
|
100
|
+
var i = l, d = _ + g;
|
|
101
101
|
p ^= -1;
|
|
102
|
-
for (var r = _; r <
|
|
102
|
+
for (var r = _; r < d; r++) p = p >>> 8 ^ i[255 & (p ^ b.charCodeAt(r))];
|
|
103
103
|
return -1 ^ p;
|
|
104
104
|
}(0 | o, n, n.length, 0) : 0;
|
|
105
105
|
};
|
|
@@ -131,16 +131,16 @@ 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(v, L, w) {
|
|
134
|
-
function h(i,
|
|
134
|
+
function h(i, d) {
|
|
135
135
|
var r, u = "";
|
|
136
|
-
for (r = 0; r <
|
|
136
|
+
for (r = 0; r < d; r++) u += String.fromCharCode(255 & i), i >>>= 8;
|
|
137
137
|
return u;
|
|
138
138
|
}
|
|
139
|
-
function l(i,
|
|
140
|
-
var y, S, x = i.file, P = i.compression, O =
|
|
141
|
-
|
|
139
|
+
function l(i, d, r, u, a, f) {
|
|
140
|
+
var y, S, x = i.file, P = i.compression, O = f !== p.utf8encode, N = n.transformTo("string", f(x.name)), I = n.transformTo("string", p.utf8encode(x.name)), H = x.comment, et = n.transformTo("string", f(H)), m = n.transformTo("string", p.utf8encode(H)), T = I.length !== x.name.length, e = m.length !== H.length, D = "", rt = "", M = "", nt = x.dir, j = x.date, V = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
141
|
+
d && !r || (V.crc32 = i.crc32, V.compressedSize = i.compressedSize, V.uncompressedSize = i.uncompressedSize);
|
|
142
142
|
var z = 0;
|
|
143
|
-
|
|
143
|
+
d && (z |= 8), O || !T && !e || (z |= 2048);
|
|
144
144
|
var C = 0, Q = 0;
|
|
145
145
|
nt && (C |= 16), a === "UNIX" ? (Q = 798, C |= function($, ut) {
|
|
146
146
|
var mt = $;
|
|
@@ -153,59 +153,59 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
153
153
|
\0`, K += h(z, 2), K += P.magic, K += h(y, 2), K += h(S, 2), K += h(V.crc32, 4), K += h(V.compressedSize, 4), K += h(V.uncompressedSize, 4), K += h(N.length, 2), K += h(D.length, 2), { fileRecord: g.LOCAL_FILE_HEADER + K + N + D, dirRecord: g.CENTRAL_FILE_HEADER + h(Q, 2) + K + h(et.length, 2) + "\0\0\0\0" + h(C, 4) + h(u, 4) + N + D + et };
|
|
154
154
|
}
|
|
155
155
|
var n = v("../utils"), o = v("../stream/GenericWorker"), p = v("../utf8"), b = v("../crc32"), g = v("../signature");
|
|
156
|
-
function _(i,
|
|
157
|
-
o.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment =
|
|
156
|
+
function _(i, d, r, u) {
|
|
157
|
+
o.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = d, this.zipPlatform = r, 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
|
n.inherits(_, o), _.prototype.push = function(i) {
|
|
160
|
-
var
|
|
161
|
-
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, o.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (
|
|
160
|
+
var d = i.meta.percent || 0, r = this.entriesCount, u = this._sources.length;
|
|
161
|
+
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, o.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (d + 100 * (r - u - 1)) / r : 100 } }));
|
|
162
162
|
}, _.prototype.openedSource = function(i) {
|
|
163
163
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
|
|
164
|
-
var
|
|
165
|
-
if (
|
|
166
|
-
var r = l(i,
|
|
164
|
+
var d = this.streamFiles && !i.file.dir;
|
|
165
|
+
if (d) {
|
|
166
|
+
var r = l(i, d, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
167
167
|
this.push({ data: r.fileRecord, meta: { percent: 0 } });
|
|
168
168
|
} else this.accumulate = !0;
|
|
169
169
|
}, _.prototype.closedSource = function(i) {
|
|
170
170
|
this.accumulate = !1;
|
|
171
|
-
var
|
|
172
|
-
if (this.dirRecords.push(r.dirRecord),
|
|
171
|
+
var d = this.streamFiles && !i.file.dir, r = l(i, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
172
|
+
if (this.dirRecords.push(r.dirRecord), d) this.push({ data: function(u) {
|
|
173
173
|
return g.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: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
176
176
|
this.currentFile = null;
|
|
177
177
|
}, _.prototype.flush = function() {
|
|
178
|
-
for (var i = this.bytesWritten,
|
|
179
|
-
var r = this.bytesWritten - i, u = function(a,
|
|
178
|
+
for (var i = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
|
|
179
|
+
var r = this.bytesWritten - i, u = function(a, f, y, S, x) {
|
|
180
180
|
var P = n.transformTo("string", x(S));
|
|
181
|
-
return g.CENTRAL_DIRECTORY_END + "\0\0\0\0" + h(a, 2) + h(a, 2) + h(
|
|
181
|
+
return g.CENTRAL_DIRECTORY_END + "\0\0\0\0" + h(a, 2) + h(a, 2) + h(f, 4) + h(y, 4) + h(P.length, 2) + P;
|
|
182
182
|
}(this.dirRecords.length, r, i, this.zipComment, this.encodeFileName);
|
|
183
183
|
this.push({ data: u, meta: { percent: 100 } });
|
|
184
184
|
}, _.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
|
}, _.prototype.registerPrevious = function(i) {
|
|
187
187
|
this._sources.push(i);
|
|
188
|
-
var
|
|
188
|
+
var d = this;
|
|
189
189
|
return i.on("data", function(r) {
|
|
190
|
-
|
|
190
|
+
d.processChunk(r);
|
|
191
191
|
}), i.on("end", function() {
|
|
192
|
-
|
|
192
|
+
d.closedSource(d.previous.streamInfo), d._sources.length ? d.prepareNextSource() : d.end();
|
|
193
193
|
}), i.on("error", function(r) {
|
|
194
|
-
|
|
194
|
+
d.error(r);
|
|
195
195
|
}), this;
|
|
196
196
|
}, _.prototype.resume = function() {
|
|
197
197
|
return !!o.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
198
198
|
}, _.prototype.error = function(i) {
|
|
199
|
-
var
|
|
199
|
+
var d = this._sources;
|
|
200
200
|
if (!o.prototype.error.call(this, i)) return !1;
|
|
201
|
-
for (var r = 0; r <
|
|
202
|
-
|
|
201
|
+
for (var r = 0; r < d.length; r++) try {
|
|
202
|
+
d[r].error(i);
|
|
203
203
|
} catch {
|
|
204
204
|
}
|
|
205
205
|
return !0;
|
|
206
206
|
}, _.prototype.lock = function() {
|
|
207
207
|
o.prototype.lock.call(this);
|
|
208
|
-
for (var i = this._sources,
|
|
208
|
+
for (var i = this._sources, d = 0; d < i.length; d++) i[d].lock();
|
|
209
209
|
}, L.exports = _;
|
|
210
210
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(v, L, w) {
|
|
211
211
|
var h = v("../compressions"), l = v("./ZipFileWorker");
|
|
@@ -214,12 +214,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
214
214
|
try {
|
|
215
215
|
n.forEach(function(_, i) {
|
|
216
216
|
g++;
|
|
217
|
-
var
|
|
218
|
-
var S =
|
|
217
|
+
var d = function(f, y) {
|
|
218
|
+
var S = f || y, 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, o.compression), r = i.options.compressionOptions || o.compressionOptions || {}, u = i.dir, a = i.date;
|
|
222
|
-
i._compressWorker(
|
|
222
|
+
i._compressWorker(d, r).withStreamInfo("file", { name: _, dir: u, date: a, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(b);
|
|
223
223
|
}), b.entriesCount = g;
|
|
224
224
|
} catch (_) {
|
|
225
225
|
b.error(_);
|
|
@@ -242,30 +242,30 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
242
242
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(v, L, w) {
|
|
243
243
|
var h = v("./utils"), l = v("./external"), n = v("./utf8"), o = v("./zipEntries"), p = v("./stream/Crc32Probe"), b = v("./nodejsUtils");
|
|
244
244
|
function g(_) {
|
|
245
|
-
return new l.Promise(function(i,
|
|
245
|
+
return new l.Promise(function(i, d) {
|
|
246
246
|
var r = _.decompressed.getContentWorker().pipe(new p());
|
|
247
247
|
r.on("error", function(u) {
|
|
248
|
-
|
|
248
|
+
d(u);
|
|
249
249
|
}).on("end", function() {
|
|
250
|
-
r.streamInfo.crc32 !== _.decompressed.crc32 ?
|
|
250
|
+
r.streamInfo.crc32 !== _.decompressed.crc32 ? d(new Error("Corrupted zip : CRC32 mismatch")) : i();
|
|
251
251
|
}).resume();
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
L.exports = function(_, i) {
|
|
255
|
-
var
|
|
255
|
+
var d = this;
|
|
256
256
|
return i = h.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), b.isNode && b.isStream(_) ? l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : h.prepareContent("the loaded zip file", _, !0, i.optimizedBinaryString, i.base64).then(function(r) {
|
|
257
257
|
var u = new o(i);
|
|
258
258
|
return u.load(r), u;
|
|
259
259
|
}).then(function(r) {
|
|
260
260
|
var u = [l.Promise.resolve(r)], a = r.files;
|
|
261
|
-
if (i.checkCRC32) for (var
|
|
261
|
+
if (i.checkCRC32) for (var f = 0; f < a.length; f++) u.push(g(a[f]));
|
|
262
262
|
return l.Promise.all(u);
|
|
263
263
|
}).then(function(r) {
|
|
264
|
-
for (var u = r.shift(), a = u.files,
|
|
265
|
-
var y = a[
|
|
266
|
-
|
|
264
|
+
for (var u = r.shift(), a = u.files, f = 0; f < a.length; f++) {
|
|
265
|
+
var y = a[f], S = y.fileNameStr, x = h.resolve(y.fileNameStr);
|
|
266
|
+
d.file(x, y.decompressed, { binary: !0, optimizedBinaryString: !0, date: y.date, dir: y.dir, comment: y.fileCommentStr.length ? y.fileCommentStr : null, unixPermissions: y.unixPermissions, dosPermissions: y.dosPermissions, createFolders: i.createFolders }), y.dir || (d.file(x).unsafeOriginalName = S);
|
|
267
267
|
}
|
|
268
|
-
return u.zipComment.length && (
|
|
268
|
+
return u.zipComment.length && (d.comment = u.zipComment), d;
|
|
269
269
|
});
|
|
270
270
|
};
|
|
271
271
|
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(v, L, w) {
|
|
@@ -320,21 +320,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
320
320
|
}, {}], 15: [function(v, L, w) {
|
|
321
321
|
function h(x, P, O) {
|
|
322
322
|
var N, I = n.getTypeOf(P), H = n.extend(O || {}, b);
|
|
323
|
-
H.date = H.date || /* @__PURE__ */ new Date(), H.compression !== null && (H.compression = H.compression.toUpperCase()), typeof H.unixPermissions == "string" && (H.unixPermissions = parseInt(H.unixPermissions, 8)), H.unixPermissions && 16384 & H.unixPermissions && (H.dir = !0), H.dosPermissions && 16 & H.dosPermissions && (H.dir = !0), H.dir && (x = a(x)), H.createFolders && (N = u(x)) &&
|
|
323
|
+
H.date = H.date || /* @__PURE__ */ new Date(), H.compression !== null && (H.compression = H.compression.toUpperCase()), typeof H.unixPermissions == "string" && (H.unixPermissions = parseInt(H.unixPermissions, 8)), H.unixPermissions && 16384 & H.unixPermissions && (H.dir = !0), H.dosPermissions && 16 & H.dosPermissions && (H.dir = !0), H.dir && (x = a(x)), H.createFolders && (N = u(x)) && f.call(this, N, !0);
|
|
324
324
|
var et = I === "string" && H.binary === !1 && H.base64 === !1;
|
|
325
325
|
O && O.binary !== void 0 || (H.binary = !et), (P instanceof g && P.uncompressedSize === 0 || H.dir || !P || P.length === 0) && (H.base64 = !1, H.binary = !0, P = "", H.compression = "STORE", I = "string");
|
|
326
326
|
var m = null;
|
|
327
|
-
m = P instanceof g || P instanceof o ? P :
|
|
327
|
+
m = P instanceof g || P instanceof o ? P : d.isNode && d.isStream(P) ? new r(x, P) : n.prepareContent(x, P, H.binary, H.optimizedBinaryString, H.base64);
|
|
328
328
|
var T = new _(x, m, H);
|
|
329
329
|
this.files[x] = T;
|
|
330
330
|
}
|
|
331
|
-
var l = v("./utf8"), n = v("./utils"), o = v("./stream/GenericWorker"), p = v("./stream/StreamHelper"), b = v("./defaults"), g = v("./compressedObject"), _ = v("./zipObject"), i = v("./generate"),
|
|
331
|
+
var l = v("./utf8"), n = v("./utils"), o = v("./stream/GenericWorker"), p = v("./stream/StreamHelper"), b = v("./defaults"), g = v("./compressedObject"), _ = v("./zipObject"), i = v("./generate"), d = v("./nodejsUtils"), r = v("./nodejs/NodejsStreamInputAdapter"), u = function(x) {
|
|
332
332
|
x.slice(-1) === "/" && (x = x.substring(0, x.length - 1));
|
|
333
333
|
var P = x.lastIndexOf("/");
|
|
334
334
|
return 0 < P ? x.substring(0, P) : "";
|
|
335
335
|
}, a = function(x) {
|
|
336
336
|
return x.slice(-1) !== "/" && (x += "/"), x;
|
|
337
|
-
},
|
|
337
|
+
}, f = function(x, P) {
|
|
338
338
|
return P = P !== void 0 ? P : b.createFolders, x = a(x), this.files[x] || h.call(this, x, null, { dir: !0, createFolders: P }), this.files[x];
|
|
339
339
|
};
|
|
340
340
|
function y(x) {
|
|
@@ -365,7 +365,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
365
365
|
if (y(x)) return this.filter(function(I, H) {
|
|
366
366
|
return H.dir && x.test(I);
|
|
367
367
|
});
|
|
368
|
-
var P = this.root + x, O =
|
|
368
|
+
var P = this.root + x, O = f.call(this, P), N = this.clone();
|
|
369
369
|
return N.root = O.name, N;
|
|
370
370
|
}, remove: function(x) {
|
|
371
371
|
x = this.root + x;
|
|
@@ -610,13 +610,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
610
610
|
g = v("../nodejs/NodejsStreamOutputAdapter");
|
|
611
611
|
} catch {
|
|
612
612
|
}
|
|
613
|
-
function _(
|
|
613
|
+
function _(d, r) {
|
|
614
614
|
return new b.Promise(function(u, a) {
|
|
615
|
-
var
|
|
616
|
-
|
|
617
|
-
|
|
615
|
+
var f = [], y = d._internalType, S = d._outputType, x = d._mimeType;
|
|
616
|
+
d.on("data", function(P, O) {
|
|
617
|
+
f.push(P), r && r(O);
|
|
618
618
|
}).on("error", function(P) {
|
|
619
|
-
|
|
619
|
+
f = [], a(P);
|
|
620
620
|
}).on("end", function() {
|
|
621
621
|
try {
|
|
622
622
|
var P = function(O, N, I) {
|
|
@@ -644,16 +644,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
644
644
|
default:
|
|
645
645
|
throw new Error("concat : unsupported type '" + O + "'");
|
|
646
646
|
}
|
|
647
|
-
}(y,
|
|
647
|
+
}(y, f), x);
|
|
648
648
|
u(P);
|
|
649
649
|
} catch (O) {
|
|
650
650
|
a(O);
|
|
651
651
|
}
|
|
652
|
-
|
|
652
|
+
f = [];
|
|
653
653
|
}).resume();
|
|
654
654
|
});
|
|
655
655
|
}
|
|
656
|
-
function i(
|
|
656
|
+
function i(d, r, u) {
|
|
657
657
|
var a = r;
|
|
658
658
|
switch (r) {
|
|
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 = r, this._mimeType = u, h.checkSupport(a), this._worker =
|
|
668
|
-
} catch (
|
|
669
|
-
this._worker = new n("error"), this._worker.error(
|
|
667
|
+
this._internalType = a, this._outputType = r, this._mimeType = u, h.checkSupport(a), this._worker = d.pipe(new l(a)), d.lock();
|
|
668
|
+
} catch (f) {
|
|
669
|
+
this._worker = new n("error"), this._worker.error(f);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
i.prototype = { accumulate: function(
|
|
673
|
-
return _(this,
|
|
674
|
-
}, on: function(
|
|
672
|
+
i.prototype = { accumulate: function(d) {
|
|
673
|
+
return _(this, d);
|
|
674
|
+
}, on: function(d, r) {
|
|
675
675
|
var u = this;
|
|
676
|
-
return
|
|
676
|
+
return d === "data" ? this._worker.on(d, function(a) {
|
|
677
677
|
r.call(u, a.data, a.meta);
|
|
678
|
-
}) : this._worker.on(
|
|
678
|
+
}) : this._worker.on(d, function() {
|
|
679
679
|
h.delay(r, 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(d) {
|
|
686
686
|
if (h.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
687
|
-
return new g(this, { objectMode: this._outputType !== "nodebuffer" },
|
|
687
|
+
return new g(this, { objectMode: this._outputType !== "nodebuffer" }, d);
|
|
688
688
|
} }, L.exports = i;
|
|
689
689
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(v, L, w) {
|
|
690
690
|
if (w.base64 = !0, w.array = !0, w.string = !0, w.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", w.nodebuffer = typeof Buffer < "u", w.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") w.blob = !1;
|
|
@@ -716,38 +716,38 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
716
716
|
o.call(this, "utf-8 encode");
|
|
717
717
|
}
|
|
718
718
|
w.utf8encode = function(i) {
|
|
719
|
-
return l.nodebuffer ? n.newBufferFrom(i, "utf-8") : function(
|
|
720
|
-
var r, u, a,
|
|
721
|
-
for (
|
|
722
|
-
for (r = l.uint8array ? new Uint8Array(x) : new Array(x),
|
|
719
|
+
return l.nodebuffer ? n.newBufferFrom(i, "utf-8") : function(d) {
|
|
720
|
+
var r, u, a, f, y, S = d.length, x = 0;
|
|
721
|
+
for (f = 0; f < S; f++) (64512 & (u = d.charCodeAt(f))) == 55296 && f + 1 < S && (64512 & (a = d.charCodeAt(f + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), f++), x += u < 128 ? 1 : u < 2048 ? 2 : u < 65536 ? 3 : 4;
|
|
722
|
+
for (r = l.uint8array ? new Uint8Array(x) : new Array(x), f = y = 0; y < x; f++) (64512 & (u = d.charCodeAt(f))) == 55296 && f + 1 < S && (64512 & (a = d.charCodeAt(f + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), f++), u < 128 ? r[y++] = u : (u < 2048 ? r[y++] = 192 | u >>> 6 : (u < 65536 ? r[y++] = 224 | u >>> 12 : (r[y++] = 240 | u >>> 18, r[y++] = 128 | u >>> 12 & 63), r[y++] = 128 | u >>> 6 & 63), r[y++] = 128 | 63 & u);
|
|
723
723
|
return r;
|
|
724
724
|
}(i);
|
|
725
725
|
}, w.utf8decode = function(i) {
|
|
726
|
-
return l.nodebuffer ? h.transformTo("nodebuffer", i).toString("utf-8") : function(
|
|
727
|
-
var r, u, a,
|
|
728
|
-
for (r = u = 0; r < y; ) if ((a =
|
|
729
|
-
else if (4 < (
|
|
726
|
+
return l.nodebuffer ? h.transformTo("nodebuffer", i).toString("utf-8") : function(d) {
|
|
727
|
+
var r, u, a, f, y = d.length, S = new Array(2 * y);
|
|
728
|
+
for (r = u = 0; r < y; ) if ((a = d[r++]) < 128) S[u++] = a;
|
|
729
|
+
else if (4 < (f = p[a])) S[u++] = 65533, r += f - 1;
|
|
730
730
|
else {
|
|
731
|
-
for (a &=
|
|
732
|
-
1 <
|
|
731
|
+
for (a &= f === 2 ? 31 : f === 3 ? 15 : 7; 1 < f && r < y; ) a = a << 6 | 63 & d[r++], f--;
|
|
732
|
+
1 < f ? 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(g, o), g.prototype.processChunk = function(i) {
|
|
737
|
-
var
|
|
737
|
+
var d = h.transformTo(l.uint8array ? "uint8array" : "array", i.data);
|
|
738
738
|
if (this.leftOver && this.leftOver.length) {
|
|
739
739
|
if (l.uint8array) {
|
|
740
|
-
var r =
|
|
741
|
-
(
|
|
742
|
-
} else
|
|
740
|
+
var r = d;
|
|
741
|
+
(d = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), d.set(r, this.leftOver.length);
|
|
742
|
+
} else d = this.leftOver.concat(d);
|
|
743
743
|
this.leftOver = null;
|
|
744
744
|
}
|
|
745
|
-
var u = function(
|
|
745
|
+
var u = function(f, y) {
|
|
746
746
|
var S;
|
|
747
|
-
for ((y = y ||
|
|
748
|
-
return S < 0 || S === 0 ? y : S + p[
|
|
749
|
-
}(
|
|
750
|
-
u !==
|
|
747
|
+
for ((y = y || f.length) > f.length && (y = f.length), S = y - 1; 0 <= S && (192 & f[S]) == 128; ) S--;
|
|
748
|
+
return S < 0 || S === 0 ? y : S + p[f[S]] > y ? S : y;
|
|
749
|
+
}(d), a = d;
|
|
750
|
+
u !== d.length && (l.uint8array ? (a = d.subarray(0, u), this.leftOver = d.subarray(u, d.length)) : (a = d.slice(0, u), this.leftOver = d.slice(u, d.length))), this.push({ data: w.utf8decode(a), meta: i.meta });
|
|
751
751
|
}, g.prototype.flush = function() {
|
|
752
752
|
this.leftOver && this.leftOver.length && (this.push({ data: w.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
753
753
|
}, w.Utf8DecodeWorker = g, h.inherits(_, o), _.prototype.processChunk = function(i) {
|
|
@@ -776,10 +776,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
778
|
var g = { stringifyByChunk: function(r, u, a) {
|
|
779
|
-
var
|
|
779
|
+
var f = [], y = 0, S = r.length;
|
|
780
780
|
if (S <= a) return String.fromCharCode.apply(null, r);
|
|
781
|
-
for (; y < S; ) u === "array" || u === "nodebuffer" ?
|
|
782
|
-
return
|
|
781
|
+
for (; y < S; ) u === "array" || u === "nodebuffer" ? f.push(String.fromCharCode.apply(null, r.slice(y, Math.min(y + a, S)))) : f.push(String.fromCharCode.apply(null, r.subarray(y, Math.min(y + a, S)))), y += a;
|
|
782
|
+
return f.join("");
|
|
783
783
|
}, stringifyByChar: function(r) {
|
|
784
784
|
for (var u = "", a = 0; a < r.length; a++) u += String.fromCharCode(r[a]);
|
|
785
785
|
return u;
|
|
@@ -797,8 +797,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
797
797
|
}
|
|
798
798
|
}() } };
|
|
799
799
|
function _(r) {
|
|
800
|
-
var u = 65536, a = w.getTypeOf(r),
|
|
801
|
-
if (a === "uint8array" ?
|
|
800
|
+
var u = 65536, a = w.getTypeOf(r), f = !0;
|
|
801
|
+
if (a === "uint8array" ? f = g.applyCanBeUsed.uint8array : a === "nodebuffer" && (f = g.applyCanBeUsed.nodebuffer), f) for (; 1 < u; ) try {
|
|
802
802
|
return g.stringifyByChunk(r, a, u);
|
|
803
803
|
} catch {
|
|
804
804
|
u = Math.floor(u / 2);
|
|
@@ -810,22 +810,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
810
810
|
return u;
|
|
811
811
|
}
|
|
812
812
|
w.applyFromCharCode = _;
|
|
813
|
-
var
|
|
814
|
-
|
|
813
|
+
var d = {};
|
|
814
|
+
d.string = { string: p, array: function(r) {
|
|
815
815
|
return b(r, new Array(r.length));
|
|
816
816
|
}, arraybuffer: function(r) {
|
|
817
|
-
return
|
|
817
|
+
return d.string.uint8array(r).buffer;
|
|
818
818
|
}, uint8array: function(r) {
|
|
819
819
|
return b(r, new Uint8Array(r.length));
|
|
820
820
|
}, nodebuffer: function(r) {
|
|
821
821
|
return b(r, n.allocBuffer(r.length));
|
|
822
|
-
} },
|
|
822
|
+
} }, d.array = { string: _, array: p, arraybuffer: function(r) {
|
|
823
823
|
return new Uint8Array(r).buffer;
|
|
824
824
|
}, uint8array: function(r) {
|
|
825
825
|
return new Uint8Array(r);
|
|
826
826
|
}, nodebuffer: function(r) {
|
|
827
827
|
return n.newBufferFrom(r);
|
|
828
|
-
} },
|
|
828
|
+
} }, d.arraybuffer = { string: function(r) {
|
|
829
829
|
return _(new Uint8Array(r));
|
|
830
830
|
}, array: function(r) {
|
|
831
831
|
return i(new Uint8Array(r), new Array(r.byteLength));
|
|
@@ -833,27 +833,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
833
833
|
return new Uint8Array(r);
|
|
834
834
|
}, nodebuffer: function(r) {
|
|
835
835
|
return n.newBufferFrom(new Uint8Array(r));
|
|
836
|
-
} },
|
|
836
|
+
} }, d.uint8array = { string: _, array: function(r) {
|
|
837
837
|
return i(r, new Array(r.length));
|
|
838
838
|
}, arraybuffer: function(r) {
|
|
839
839
|
return r.buffer;
|
|
840
840
|
}, uint8array: p, nodebuffer: function(r) {
|
|
841
841
|
return n.newBufferFrom(r);
|
|
842
|
-
} },
|
|
842
|
+
} }, d.nodebuffer = { string: _, array: function(r) {
|
|
843
843
|
return i(r, new Array(r.length));
|
|
844
844
|
}, arraybuffer: function(r) {
|
|
845
|
-
return
|
|
845
|
+
return d.nodebuffer.uint8array(r).buffer;
|
|
846
846
|
}, uint8array: function(r) {
|
|
847
847
|
return i(r, new Uint8Array(r.length));
|
|
848
848
|
}, nodebuffer: p }, w.transformTo = function(r, u) {
|
|
849
849
|
if (u = u || "", !r) return u;
|
|
850
850
|
w.checkSupport(r);
|
|
851
851
|
var a = w.getTypeOf(u);
|
|
852
|
-
return
|
|
852
|
+
return d[a][r](u);
|
|
853
853
|
}, w.resolve = function(r) {
|
|
854
|
-
for (var u = r.split("/"), a = [],
|
|
855
|
-
var y = u[
|
|
856
|
-
y === "." || y === "" &&
|
|
854
|
+
for (var u = r.split("/"), a = [], f = 0; f < u.length; f++) {
|
|
855
|
+
var y = u[f];
|
|
856
|
+
y === "." || y === "" && f !== 0 && f !== u.length - 1 || (y === ".." ? a.pop() : a.push(y));
|
|
857
857
|
}
|
|
858
858
|
return a.join("/");
|
|
859
859
|
}, w.getTypeOf = function(r) {
|
|
@@ -861,9 +861,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
861
861
|
}, w.checkSupport = function(r) {
|
|
862
862
|
if (!h[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
|
|
863
863
|
}, w.MAX_VALUE_16BITS = 65535, w.MAX_VALUE_32BITS = -1, w.pretty = function(r) {
|
|
864
|
-
var u, a,
|
|
865
|
-
for (a = 0; a < (r || "").length; a++)
|
|
866
|
-
return
|
|
864
|
+
var u, a, f = "";
|
|
865
|
+
for (a = 0; a < (r || "").length; a++) f += "\\x" + ((u = r.charCodeAt(a)) < 16 ? "0" : "") + u.toString(16).toUpperCase();
|
|
866
|
+
return f;
|
|
867
867
|
}, w.delay = function(r, u, a) {
|
|
868
868
|
setImmediate(function() {
|
|
869
869
|
r.apply(a || null, u || []);
|
|
@@ -876,7 +876,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
876
876
|
var r, u, a = {};
|
|
877
877
|
for (r = 0; r < arguments.length; r++) for (u in arguments[r]) Object.prototype.hasOwnProperty.call(arguments[r], u) && a[u] === void 0 && (a[u] = arguments[r][u]);
|
|
878
878
|
return a;
|
|
879
|
-
}, w.prepareContent = function(r, u, a,
|
|
879
|
+
}, w.prepareContent = function(r, u, a, f, y) {
|
|
880
880
|
return o.Promise.resolve(u).then(function(S) {
|
|
881
881
|
return h.blob && (S instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(S)) !== -1) && typeof FileReader < "u" ? new o.Promise(function(x, P) {
|
|
882
882
|
var O = new FileReader();
|
|
@@ -888,7 +888,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
888
888
|
}) : S;
|
|
889
889
|
}).then(function(S) {
|
|
890
890
|
var x = w.getTypeOf(S);
|
|
891
|
-
return x ? (x === "arraybuffer" ? S = w.transformTo("uint8array", S) : x === "string" && (y ? S = l.decode(S) : a &&
|
|
891
|
+
return x ? (x === "arraybuffer" ? S = w.transformTo("uint8array", S) : x === "string" && (y ? S = l.decode(S) : a && f !== !0 && (S = function(P) {
|
|
892
892
|
return b(P, h.uint8array ? new Uint8Array(P.length) : new Array(P.length));
|
|
893
893
|
}(S))), S) : o.Promise.reject(new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
894
894
|
});
|
|
@@ -907,15 +907,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
907
907
|
}, isSignature: function(g, _) {
|
|
908
908
|
var i = this.reader.index;
|
|
909
909
|
this.reader.setIndex(g);
|
|
910
|
-
var
|
|
911
|
-
return this.reader.setIndex(i),
|
|
910
|
+
var d = this.reader.readString(4) === _;
|
|
911
|
+
return this.reader.setIndex(i), d;
|
|
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 g = this.reader.readData(this.zipCommentLength), _ = p.uint8array ? "uint8array" : "array", i = l.transformTo(_, g);
|
|
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 g, _, i,
|
|
918
|
+
for (var g, _, i, d = this.zip64EndOfCentralSize - 44; 0 < d; ) g = this.reader.readInt(2), _ = this.reader.readInt(4), i = this.reader.readData(_), this.zip64ExtensibleData[g] = { id: g, length: _, 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 d = _ - i;
|
|
941
|
+
if (0 < d) this.isSignature(_, n.CENTRAL_FILE_HEADER) || (this.reader.zero = d);
|
|
942
|
+
else if (d < 0) throw new Error("Corrupted zip: missing " + Math.abs(d) + " bytes.");
|
|
943
943
|
}, prepareReader: function(g) {
|
|
944
944
|
this.reader = h(g);
|
|
945
945
|
}, load: function(g) {
|
|
@@ -947,26 +947,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
947
947
|
} }, L.exports = b;
|
|
948
948
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(v, L, w) {
|
|
949
949
|
var h = v("./reader/readerFor"), l = v("./utils"), n = v("./compressedObject"), o = v("./crc32"), p = v("./utf8"), b = v("./compressions"), g = v("./support");
|
|
950
|
-
function _(i,
|
|
951
|
-
this.options = i, this.loadOptions =
|
|
950
|
+
function _(i, d) {
|
|
951
|
+
this.options = i, this.loadOptions = d;
|
|
952
952
|
}
|
|
953
953
|
_.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 d, r;
|
|
959
959
|
if (i.skip(22), this.fileNameLength = i.readInt(2), r = i.readInt(2), this.fileName = i.readData(this.fileNameLength), i.skip(r), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
960
|
-
if ((
|
|
960
|
+
if ((d = 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 n(this.compressedSize, this.uncompressedSize, this.crc32,
|
|
964
|
+
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, d, 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 d = 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(d), 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 d, r, u, a = i.index + this.extraFieldsLength;
|
|
981
|
+
for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; ) d = i.readInt(2), r = i.readInt(2), u = i.readData(r), this.extraFields[d] = { id: d, length: r, value: u };
|
|
982
982
|
i.setIndex(a);
|
|
983
983
|
}, handleUTF8: function() {
|
|
984
984
|
var i = g.uint8array ? "uint8array" : "array";
|
|
985
985
|
if (this.useUTF8()) this.fileNameStr = p.utf8decode(this.fileName), this.fileCommentStr = p.utf8decode(this.fileComment);
|
|
986
986
|
else {
|
|
987
|
-
var
|
|
988
|
-
if (
|
|
987
|
+
var d = this.findExtraFieldUnicodePath();
|
|
988
|
+
if (d !== null) this.fileNameStr = d;
|
|
989
989
|
else {
|
|
990
990
|
var r = l.transformTo(i, this.fileName);
|
|
991
991
|
this.fileNameStr = this.loadOptions.decodeFileName(r);
|
|
@@ -1000,43 +1000,43 @@ 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 d = h(i.value);
|
|
1004
|
+
return d.readInt(1) !== 1 || o(this.fileName) !== d.readInt(4) ? null : p.utf8decode(d.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 d = h(i.value);
|
|
1011
|
+
return d.readInt(1) !== 1 || o(this.fileComment) !== d.readInt(4) ? null : p.utf8decode(d.readData(i.length - 5));
|
|
1012
1012
|
}
|
|
1013
1013
|
return null;
|
|
1014
1014
|
} }, L.exports = _;
|
|
1015
1015
|
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(v, L, w) {
|
|
1016
|
-
function h(
|
|
1017
|
-
this.name =
|
|
1016
|
+
function h(d, r, u) {
|
|
1017
|
+
this.name = d, this.dir = u.dir, this.date = u.date, this.comment = u.comment, this.unixPermissions = u.unixPermissions, this.dosPermissions = u.dosPermissions, this._data = r, this._dataBinary = u.binary, this.options = { compression: u.compression, compressionOptions: u.compressionOptions };
|
|
1018
1018
|
}
|
|
1019
1019
|
var l = v("./stream/StreamHelper"), n = v("./stream/DataWorker"), o = v("./utf8"), p = v("./compressedObject"), b = v("./stream/GenericWorker");
|
|
1020
|
-
h.prototype = { internalStream: function(
|
|
1020
|
+
h.prototype = { internalStream: function(d) {
|
|
1021
1021
|
var r = null, u = "string";
|
|
1022
1022
|
try {
|
|
1023
|
-
if (!
|
|
1024
|
-
var a = (u =
|
|
1023
|
+
if (!d) throw new Error("No output type specified.");
|
|
1024
|
+
var a = (u = d.toLowerCase()) === "string" || u === "text";
|
|
1025
1025
|
u !== "binarystring" && u !== "text" || (u = "string"), r = this._decompressWorker();
|
|
1026
|
-
var
|
|
1027
|
-
|
|
1026
|
+
var f = !this._dataBinary;
|
|
1027
|
+
f && !a && (r = r.pipe(new o.Utf8EncodeWorker())), !f && a && (r = r.pipe(new o.Utf8DecodeWorker()));
|
|
1028
1028
|
} catch (y) {
|
|
1029
1029
|
(r = new b("error")).error(y);
|
|
1030
1030
|
}
|
|
1031
1031
|
return new l(r, u, "");
|
|
1032
|
-
}, async: function(
|
|
1033
|
-
return this.internalStream(
|
|
1034
|
-
}, nodeStream: function(
|
|
1035
|
-
return this.internalStream(
|
|
1036
|
-
}, _compressWorker: function(
|
|
1037
|
-
if (this._data instanceof p && this._data.compression.magic ===
|
|
1032
|
+
}, async: function(d, r) {
|
|
1033
|
+
return this.internalStream(d).accumulate(r);
|
|
1034
|
+
}, nodeStream: function(d, r) {
|
|
1035
|
+
return this.internalStream(d || "nodebuffer").toNodejsStream(r);
|
|
1036
|
+
}, _compressWorker: function(d, r) {
|
|
1037
|
+
if (this._data instanceof p && this._data.compression.magic === d.magic) return this._data.getCompressedWorker();
|
|
1038
1038
|
var u = this._decompressWorker();
|
|
1039
|
-
return this._dataBinary || (u = u.pipe(new o.Utf8EncodeWorker())), p.createWorkerFrom(u,
|
|
1039
|
+
return this._dataBinary || (u = u.pipe(new o.Utf8EncodeWorker())), p.createWorkerFrom(u, d, r);
|
|
1040
1040
|
}, _decompressWorker: function() {
|
|
1041
1041
|
return this._data instanceof p ? this._data.getContentWorker() : this._data instanceof b ? this._data : new n(this._data);
|
|
1042
1042
|
} };
|
|
@@ -1048,26 +1048,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1048
1048
|
(function(h) {
|
|
1049
1049
|
var l, n, o = h.MutationObserver || h.WebKitMutationObserver;
|
|
1050
1050
|
if (o) {
|
|
1051
|
-
var p = 0, b = new o(
|
|
1051
|
+
var p = 0, b = new o(d), g = h.document.createTextNode("");
|
|
1052
1052
|
b.observe(g, { characterData: !0 }), l = function() {
|
|
1053
1053
|
g.data = p = ++p % 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 r = h.document.createElement("script");
|
|
1057
1057
|
r.onreadystatechange = function() {
|
|
1058
|
-
|
|
1058
|
+
d(), r.onreadystatechange = null, r.parentNode.removeChild(r), r = null;
|
|
1059
1059
|
}, h.document.documentElement.appendChild(r);
|
|
1060
1060
|
} : function() {
|
|
1061
|
-
setTimeout(
|
|
1061
|
+
setTimeout(d, 0);
|
|
1062
1062
|
};
|
|
1063
1063
|
else {
|
|
1064
1064
|
var _ = new h.MessageChannel();
|
|
1065
|
-
_.port1.onmessage =
|
|
1065
|
+
_.port1.onmessage = d, l = function() {
|
|
1066
1066
|
_.port2.postMessage(0);
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
1069
|
var i = [];
|
|
1070
|
-
function
|
|
1070
|
+
function d() {
|
|
1071
1071
|
var r, u;
|
|
1072
1072
|
n = !0;
|
|
1073
1073
|
for (var a = i.length; a; ) {
|
|
@@ -1089,27 +1089,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1089
1089
|
if (typeof a != "function") throw new TypeError("resolver must be a function");
|
|
1090
1090
|
this.state = b, this.queue = [], this.outcome = void 0, a !== l && r(this, a);
|
|
1091
1091
|
}
|
|
1092
|
-
function _(a,
|
|
1093
|
-
this.promise = a, typeof
|
|
1092
|
+
function _(a, f, y) {
|
|
1093
|
+
this.promise = a, typeof f == "function" && (this.onFulfilled = f, this.callFulfilled = this.otherCallFulfilled), typeof y == "function" && (this.onRejected = y, this.callRejected = this.otherCallRejected);
|
|
1094
1094
|
}
|
|
1095
|
-
function i(a,
|
|
1095
|
+
function i(a, f, y) {
|
|
1096
1096
|
h(function() {
|
|
1097
1097
|
var S;
|
|
1098
1098
|
try {
|
|
1099
|
-
S =
|
|
1099
|
+
S = f(y);
|
|
1100
1100
|
} catch (x) {
|
|
1101
1101
|
return n.reject(a, x);
|
|
1102
1102
|
}
|
|
1103
1103
|
S === a ? n.reject(a, new TypeError("Cannot resolve promise with itself")) : n.resolve(a, S);
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1107
|
-
var
|
|
1108
|
-
if (a && (typeof a == "object" || typeof a == "function") && typeof
|
|
1109
|
-
|
|
1106
|
+
function d(a) {
|
|
1107
|
+
var f = a && a.then;
|
|
1108
|
+
if (a && (typeof a == "object" || typeof a == "function") && typeof f == "function") return function() {
|
|
1109
|
+
f.apply(a, arguments);
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
|
-
function r(a,
|
|
1112
|
+
function r(a, f) {
|
|
1113
1113
|
var y = !1;
|
|
1114
1114
|
function S(O) {
|
|
1115
1115
|
y || (y = !0, n.reject(a, O));
|
|
@@ -1118,14 +1118,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1118
1118
|
y || (y = !0, n.resolve(a, O));
|
|
1119
1119
|
}
|
|
1120
1120
|
var P = u(function() {
|
|
1121
|
-
|
|
1121
|
+
f(x, S);
|
|
1122
1122
|
});
|
|
1123
1123
|
P.status === "error" && S(P.value);
|
|
1124
1124
|
}
|
|
1125
|
-
function u(a,
|
|
1125
|
+
function u(a, f) {
|
|
1126
1126
|
var y = {};
|
|
1127
1127
|
try {
|
|
1128
|
-
y.value = a(
|
|
1128
|
+
y.value = a(f), y.status = "success";
|
|
1129
1129
|
} catch (S) {
|
|
1130
1130
|
y.status = "error", y.value = S;
|
|
1131
1131
|
}
|
|
@@ -1133,22 +1133,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1133
1133
|
}
|
|
1134
1134
|
(L.exports = g).prototype.finally = function(a) {
|
|
1135
1135
|
if (typeof a != "function") return this;
|
|
1136
|
-
var
|
|
1136
|
+
var f = this.constructor;
|
|
1137
1137
|
return this.then(function(y) {
|
|
1138
|
-
return
|
|
1138
|
+
return f.resolve(a()).then(function() {
|
|
1139
1139
|
return y;
|
|
1140
1140
|
});
|
|
1141
1141
|
}, function(y) {
|
|
1142
|
-
return
|
|
1142
|
+
return f.resolve(a()).then(function() {
|
|
1143
1143
|
throw y;
|
|
1144
1144
|
});
|
|
1145
1145
|
});
|
|
1146
1146
|
}, g.prototype.catch = function(a) {
|
|
1147
1147
|
return this.then(null, a);
|
|
1148
|
-
}, g.prototype.then = function(a,
|
|
1149
|
-
if (typeof a != "function" && this.state === p || typeof
|
|
1148
|
+
}, g.prototype.then = function(a, f) {
|
|
1149
|
+
if (typeof a != "function" && this.state === p || typeof f != "function" && this.state === o) return this;
|
|
1150
1150
|
var y = new this.constructor(l);
|
|
1151
|
-
return this.state !== b ? i(y, this.state === p ? a :
|
|
1151
|
+
return this.state !== b ? i(y, this.state === p ? a : f, this.outcome) : this.queue.push(new _(y, a, f)), y;
|
|
1152
1152
|
}, _.prototype.callFulfilled = function(a) {
|
|
1153
1153
|
n.resolve(this.promise, a);
|
|
1154
1154
|
}, _.prototype.otherCallFulfilled = function(a) {
|
|
@@ -1157,45 +1157,45 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1157
1157
|
n.reject(this.promise, a);
|
|
1158
1158
|
}, _.prototype.otherCallRejected = function(a) {
|
|
1159
1159
|
i(this.promise, this.onRejected, a);
|
|
1160
|
-
}, n.resolve = function(a,
|
|
1161
|
-
var y = u(
|
|
1160
|
+
}, n.resolve = function(a, f) {
|
|
1161
|
+
var y = u(d, f);
|
|
1162
1162
|
if (y.status === "error") return n.reject(a, y.value);
|
|
1163
1163
|
var S = y.value;
|
|
1164
1164
|
if (S) r(a, S);
|
|
1165
1165
|
else {
|
|
1166
|
-
a.state = p, a.outcome =
|
|
1167
|
-
for (var x = -1, P = a.queue.length; ++x < P; ) a.queue[x].callFulfilled(
|
|
1166
|
+
a.state = p, a.outcome = f;
|
|
1167
|
+
for (var x = -1, P = a.queue.length; ++x < P; ) a.queue[x].callFulfilled(f);
|
|
1168
1168
|
}
|
|
1169
1169
|
return a;
|
|
1170
|
-
}, n.reject = function(a,
|
|
1171
|
-
a.state = o, a.outcome =
|
|
1172
|
-
for (var y = -1, S = a.queue.length; ++y < S; ) a.queue[y].callRejected(
|
|
1170
|
+
}, n.reject = function(a, f) {
|
|
1171
|
+
a.state = o, a.outcome = f;
|
|
1172
|
+
for (var y = -1, S = a.queue.length; ++y < S; ) a.queue[y].callRejected(f);
|
|
1173
1173
|
return a;
|
|
1174
1174
|
}, g.resolve = function(a) {
|
|
1175
1175
|
return a instanceof this ? a : n.resolve(new this(l), a);
|
|
1176
1176
|
}, g.reject = function(a) {
|
|
1177
|
-
var
|
|
1178
|
-
return n.reject(
|
|
1177
|
+
var f = new this(l);
|
|
1178
|
+
return n.reject(f, a);
|
|
1179
1179
|
}, g.all = function(a) {
|
|
1180
|
-
var
|
|
1180
|
+
var f = this;
|
|
1181
1181
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1182
1182
|
var y = a.length, S = !1;
|
|
1183
1183
|
if (!y) return this.resolve([]);
|
|
1184
1184
|
for (var x = new Array(y), P = 0, O = -1, N = new this(l); ++O < y; ) I(a[O], O);
|
|
1185
1185
|
return N;
|
|
1186
1186
|
function I(H, et) {
|
|
1187
|
-
|
|
1187
|
+
f.resolve(H).then(function(m) {
|
|
1188
1188
|
x[et] = m, ++P !== y || S || (S = !0, n.resolve(N, x));
|
|
1189
1189
|
}, function(m) {
|
|
1190
1190
|
S || (S = !0, n.reject(N, m));
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
1193
|
}, g.race = function(a) {
|
|
1194
|
-
var
|
|
1194
|
+
var f = this;
|
|
1195
1195
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1196
1196
|
var y = a.length, S = !1;
|
|
1197
1197
|
if (!y) return this.resolve([]);
|
|
1198
|
-
for (var x = -1, P = new this(l); ++x < y; ) O = a[x],
|
|
1198
|
+
for (var x = -1, P = new this(l); ++x < y; ) O = a[x], f.resolve(O).then(function(N) {
|
|
1199
1199
|
S || (S = !0, n.resolve(P, N));
|
|
1200
1200
|
}, function(N) {
|
|
1201
1201
|
S || (S = !0, n.reject(P, N));
|
|
@@ -1207,29 +1207,29 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1207
1207
|
var h = {};
|
|
1208
1208
|
(0, v("./lib/utils/common").assign)(h, v("./lib/deflate"), v("./lib/inflate"), v("./lib/zlib/constants")), L.exports = h;
|
|
1209
1209
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(v, L, w) {
|
|
1210
|
-
var h = v("./zlib/deflate"), l = v("./utils/common"), n = v("./utils/strings"), o = v("./zlib/messages"), p = v("./zlib/zstream"), b = Object.prototype.toString, g = 0, _ = -1, i = 0,
|
|
1210
|
+
var h = v("./zlib/deflate"), l = v("./utils/common"), n = v("./utils/strings"), o = v("./zlib/messages"), p = v("./zlib/zstream"), b = Object.prototype.toString, g = 0, _ = -1, i = 0, d = 8;
|
|
1211
1211
|
function r(a) {
|
|
1212
1212
|
if (!(this instanceof r)) return new r(a);
|
|
1213
|
-
this.options = l.assign({ level: _, method:
|
|
1214
|
-
var
|
|
1215
|
-
|
|
1216
|
-
var y = h.deflateInit2(this.strm,
|
|
1213
|
+
this.options = l.assign({ level: _, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, a || {});
|
|
1214
|
+
var f = this.options;
|
|
1215
|
+
f.raw && 0 < f.windowBits ? f.windowBits = -f.windowBits : f.gzip && 0 < f.windowBits && f.windowBits < 16 && (f.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new p(), this.strm.avail_out = 0;
|
|
1216
|
+
var y = h.deflateInit2(this.strm, f.level, f.method, f.windowBits, f.memLevel, f.strategy);
|
|
1217
1217
|
if (y !== g) throw new Error(o[y]);
|
|
1218
|
-
if (
|
|
1218
|
+
if (f.header && h.deflateSetHeader(this.strm, f.header), f.dictionary) {
|
|
1219
1219
|
var S;
|
|
1220
|
-
if (S = typeof
|
|
1220
|
+
if (S = typeof f.dictionary == "string" ? n.string2buf(f.dictionary) : b.call(f.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(f.dictionary) : f.dictionary, (y = h.deflateSetDictionary(this.strm, S)) !== g) throw new Error(o[y]);
|
|
1221
1221
|
this._dict_set = !0;
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
function u(a,
|
|
1225
|
-
var y = new r(
|
|
1224
|
+
function u(a, f) {
|
|
1225
|
+
var y = new r(f);
|
|
1226
1226
|
if (y.push(a, !0), y.err) throw y.msg || o[y.err];
|
|
1227
1227
|
return y.result;
|
|
1228
1228
|
}
|
|
1229
|
-
r.prototype.push = function(a,
|
|
1229
|
+
r.prototype.push = function(a, f) {
|
|
1230
1230
|
var y, S, x = this.strm, P = this.options.chunkSize;
|
|
1231
1231
|
if (this.ended) return !1;
|
|
1232
|
-
S =
|
|
1232
|
+
S = f === ~~f ? f : f === !0 ? 4 : 0, typeof a == "string" ? x.input = n.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
1234
|
if (x.avail_out === 0 && (x.output = new l.Buf8(P), x.next_out = 0, x.avail_out = P), (y = h.deflate(x, S)) !== 1 && y !== g) return this.onEnd(y), !(this.ended = !0);
|
|
1235
1235
|
x.avail_out !== 0 && (x.avail_in !== 0 || S !== 4 && S !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(l.shrinkBuf(x.output, x.next_out))) : this.onData(l.shrinkBuf(x.output, x.next_out)));
|
|
@@ -1239,10 +1239,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1239
1239
|
this.chunks.push(a);
|
|
1240
1240
|
}, r.prototype.onEnd = function(a) {
|
|
1241
1241
|
a === g && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = l.flattenChunks(this.chunks)), this.chunks = [], this.err = a, this.msg = this.strm.msg;
|
|
1242
|
-
}, w.Deflate = r, w.deflate = u, w.deflateRaw = function(a,
|
|
1243
|
-
return (
|
|
1244
|
-
}, w.gzip = function(a,
|
|
1245
|
-
return (
|
|
1242
|
+
}, w.Deflate = r, w.deflate = u, w.deflateRaw = function(a, f) {
|
|
1243
|
+
return (f = f || {}).raw = !0, u(a, f);
|
|
1244
|
+
}, w.gzip = function(a, f) {
|
|
1245
|
+
return (f = f || {}).gzip = !0, u(a, f);
|
|
1246
1246
|
};
|
|
1247
1247
|
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(v, L, w) {
|
|
1248
1248
|
var h = v("./zlib/inflate"), l = v("./utils/common"), n = v("./utils/strings"), o = v("./zlib/constants"), p = v("./zlib/messages"), b = v("./zlib/zstream"), g = v("./zlib/gzheader"), _ = Object.prototype.toString;
|
|
@@ -1255,27 +1255,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1255
1255
|
if (a !== o.Z_OK) throw new Error(p[a]);
|
|
1256
1256
|
this.header = new g(), h.inflateGetHeader(this.strm, this.header);
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function d(r, u) {
|
|
1259
1259
|
var a = new i(u);
|
|
1260
1260
|
if (a.push(r, !0), a.err) throw a.msg || p[a.err];
|
|
1261
1261
|
return a.result;
|
|
1262
1262
|
}
|
|
1263
1263
|
i.prototype.push = function(r, u) {
|
|
1264
|
-
var a,
|
|
1264
|
+
var a, f, y, S, x, P, O = this.strm, N = this.options.chunkSize, I = this.options.dictionary, H = !1;
|
|
1265
1265
|
if (this.ended) return !1;
|
|
1266
|
-
|
|
1266
|
+
f = u === ~~u ? u : u === !0 ? o.Z_FINISH : o.Z_NO_FLUSH, typeof r == "string" ? O.input = n.binstring2buf(r) : _.call(r) === "[object ArrayBuffer]" ? O.input = new Uint8Array(r) : O.input = r, O.next_in = 0, O.avail_in = O.input.length;
|
|
1267
1267
|
do {
|
|
1268
1268
|
if (O.avail_out === 0 && (O.output = new l.Buf8(N), O.next_out = 0, O.avail_out = N), (a = h.inflate(O, o.Z_NO_FLUSH)) === o.Z_NEED_DICT && I && (P = typeof I == "string" ? n.string2buf(I) : _.call(I) === "[object ArrayBuffer]" ? new Uint8Array(I) : I, a = h.inflateSetDictionary(this.strm, P)), a === o.Z_BUF_ERROR && H === !0 && (a = o.Z_OK, H = !1), a !== o.Z_STREAM_END && a !== o.Z_OK) return this.onEnd(a), !(this.ended = !0);
|
|
1269
|
-
O.next_out && (O.avail_out !== 0 && a !== o.Z_STREAM_END && (O.avail_in !== 0 ||
|
|
1269
|
+
O.next_out && (O.avail_out !== 0 && a !== o.Z_STREAM_END && (O.avail_in !== 0 || f !== o.Z_FINISH && f !== o.Z_SYNC_FLUSH) || (this.options.to === "string" ? (y = n.utf8border(O.output, O.next_out), S = O.next_out - y, x = n.buf2string(O.output, y), O.next_out = S, O.avail_out = N - S, S && l.arraySet(O.output, O.output, y, S, 0), this.onData(x)) : this.onData(l.shrinkBuf(O.output, O.next_out)))), O.avail_in === 0 && O.avail_out === 0 && (H = !0);
|
|
1270
1270
|
} while ((0 < O.avail_in || O.avail_out === 0) && a !== o.Z_STREAM_END);
|
|
1271
|
-
return a === o.Z_STREAM_END && (
|
|
1271
|
+
return a === o.Z_STREAM_END && (f = o.Z_FINISH), f === o.Z_FINISH ? (a = h.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === o.Z_OK) : f !== o.Z_SYNC_FLUSH || (this.onEnd(o.Z_OK), !(O.avail_out = 0));
|
|
1272
1272
|
}, i.prototype.onData = function(r) {
|
|
1273
1273
|
this.chunks.push(r);
|
|
1274
1274
|
}, i.prototype.onEnd = function(r) {
|
|
1275
1275
|
r === o.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = l.flattenChunks(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
|
|
1276
|
-
}, w.Inflate = i, w.inflate =
|
|
1277
|
-
return (u = u || {}).raw = !0,
|
|
1278
|
-
}, w.ungzip =
|
|
1276
|
+
}, w.Inflate = i, w.inflate = d, w.inflateRaw = function(r, u) {
|
|
1277
|
+
return (u = u || {}).raw = !0, d(r, u);
|
|
1278
|
+
}, w.ungzip = d;
|
|
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(v, L, w) {
|
|
1280
1280
|
var h = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1281
1281
|
w.assign = function(o) {
|
|
@@ -1294,10 +1294,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1294
1294
|
if (p.subarray && o.subarray) o.set(p.subarray(b, b + g), _);
|
|
1295
1295
|
else for (var i = 0; i < g; i++) o[_ + i] = p[b + i];
|
|
1296
1296
|
}, flattenChunks: function(o) {
|
|
1297
|
-
var p, b, g, _, i,
|
|
1297
|
+
var p, b, g, _, i, d;
|
|
1298
1298
|
for (p = g = 0, b = o.length; p < b; p++) g += o[p].length;
|
|
1299
|
-
for (
|
|
1300
|
-
return
|
|
1299
|
+
for (d = new Uint8Array(g), p = _ = 0, b = o.length; p < b; p++) i = o[p], d.set(i, _), _ += i.length;
|
|
1300
|
+
return d;
|
|
1301
1301
|
} }, n = { arraySet: function(o, p, b, g, _) {
|
|
1302
1302
|
for (var i = 0; i < g; i++) o[_ + i] = p[b + i];
|
|
1303
1303
|
}, flattenChunks: function(o) {
|
|
@@ -1321,28 +1321,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1321
1321
|
for (var o = new h.Buf8(256), p = 0; p < 256; p++) o[p] = 252 <= p ? 6 : 248 <= p ? 5 : 240 <= p ? 4 : 224 <= p ? 3 : 192 <= p ? 2 : 1;
|
|
1322
1322
|
function b(g, _) {
|
|
1323
1323
|
if (_ < 65537 && (g.subarray && n || !g.subarray && l)) return String.fromCharCode.apply(null, h.shrinkBuf(g, _));
|
|
1324
|
-
for (var i = "",
|
|
1324
|
+
for (var i = "", d = 0; d < _; d++) i += String.fromCharCode(g[d]);
|
|
1325
1325
|
return i;
|
|
1326
1326
|
}
|
|
1327
1327
|
o[254] = o[254] = 1, w.string2buf = function(g) {
|
|
1328
|
-
var _, i,
|
|
1329
|
-
for (r = 0; r < a; r++) (64512 & (i = g.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (
|
|
1330
|
-
for (_ = new h.Buf8(
|
|
1328
|
+
var _, i, d, r, u, a = g.length, f = 0;
|
|
1329
|
+
for (r = 0; r < a; r++) (64512 & (i = g.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = g.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), f += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
|
|
1330
|
+
for (_ = new h.Buf8(f), r = u = 0; u < f; r++) (64512 & (i = g.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = g.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), i < 128 ? _[u++] = i : (i < 2048 ? _[u++] = 192 | i >>> 6 : (i < 65536 ? _[u++] = 224 | i >>> 12 : (_[u++] = 240 | i >>> 18, _[u++] = 128 | i >>> 12 & 63), _[u++] = 128 | i >>> 6 & 63), _[u++] = 128 | 63 & i);
|
|
1331
1331
|
return _;
|
|
1332
1332
|
}, w.buf2binstring = function(g) {
|
|
1333
1333
|
return b(g, g.length);
|
|
1334
1334
|
}, w.binstring2buf = function(g) {
|
|
1335
|
-
for (var _ = new h.Buf8(g.length), i = 0,
|
|
1335
|
+
for (var _ = new h.Buf8(g.length), i = 0, d = _.length; i < d; i++) _[i] = g.charCodeAt(i);
|
|
1336
1336
|
return _;
|
|
1337
1337
|
}, w.buf2string = function(g, _) {
|
|
1338
|
-
var i,
|
|
1339
|
-
for (i =
|
|
1340
|
-
else if (4 < (u = o[r])) d
|
|
1338
|
+
var i, d, r, u, a = _ || g.length, f = new Array(2 * a);
|
|
1339
|
+
for (i = d = 0; i < a; ) if ((r = g[i++]) < 128) f[d++] = r;
|
|
1340
|
+
else if (4 < (u = o[r])) f[d++] = 65533, i += u - 1;
|
|
1341
1341
|
else {
|
|
1342
1342
|
for (r &= u === 2 ? 31 : u === 3 ? 15 : 7; 1 < u && i < a; ) r = r << 6 | 63 & g[i++], u--;
|
|
1343
|
-
1 < u ? d
|
|
1343
|
+
1 < u ? f[d++] = 65533 : r < 65536 ? f[d++] = r : (r -= 65536, f[d++] = 55296 | r >> 10 & 1023, f[d++] = 56320 | 1023 & r);
|
|
1344
1344
|
}
|
|
1345
|
-
return b(
|
|
1345
|
+
return b(f, d);
|
|
1346
1346
|
}, w.utf8border = function(g, _) {
|
|
1347
1347
|
var i;
|
|
1348
1348
|
for ((_ = _ || g.length) > g.length && (_ = g.length), i = _ - 1; 0 <= i && (192 & g[i]) == 128; ) i--;
|
|
@@ -1374,7 +1374,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1374
1374
|
return -1 ^ l;
|
|
1375
1375
|
};
|
|
1376
1376
|
}, {}], 46: [function(v, L, w) {
|
|
1377
|
-
var h, l = v("../utils/common"), n = v("./trees"), o = v("./adler32"), p = v("./crc32"), b = v("./messages"), g = 0, _ = 4, i = 0,
|
|
1377
|
+
var h, l = v("../utils/common"), n = v("./trees"), o = v("./adler32"), p = v("./crc32"), b = v("./messages"), g = 0, _ = 4, i = 0, d = -2, r = -1, u = 4, a = 2, f = 8, y = 9, S = 286, x = 30, P = 19, O = 2 * S + 1, N = 15, I = 3, H = 258, et = H + I + 1, m = 42, T = 113, e = 1, D = 2, rt = 3, M = 4;
|
|
1378
1378
|
function nt(t, R) {
|
|
1379
1379
|
return t.msg = b[R], R;
|
|
1380
1380
|
}
|
|
@@ -1460,25 +1460,25 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1460
1460
|
this.good_length = t, this.max_lazy = R, this.nice_length = A, this.max_chain = c, this.func = s;
|
|
1461
1461
|
}
|
|
1462
1462
|
function gt() {
|
|
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 =
|
|
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 = f, 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 * O), this.dyn_dtree = new l.Buf16(2 * (2 * x + 1)), this.bl_tree = new l.Buf16(2 * (2 * P + 1)), V(this.dyn_ltree), V(this.dyn_dtree), V(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new l.Buf16(N + 1), this.heap = new l.Buf16(2 * S + 1), V(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new l.Buf16(2 * S + 1), V(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
1464
1464
|
}
|
|
1465
1465
|
function ht(t) {
|
|
1466
1466
|
var R;
|
|
1467
|
-
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? m : T, t.adler = R.wrap === 2 ? 0 : 1, R.last_flush = g, n._tr_init(R), i) : nt(t,
|
|
1467
|
+
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? m : T, t.adler = R.wrap === 2 ? 0 : 1, R.last_flush = g, n._tr_init(R), i) : nt(t, d);
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function _t(t) {
|
|
1470
1470
|
var R = ht(t);
|
|
1471
1471
|
return R === i && function(A) {
|
|
1472
1472
|
A.window_size = 2 * A.w_size, V(A.head), A.max_lazy_match = h[A.level].max_lazy, A.good_match = h[A.level].good_length, A.nice_match = h[A.level].nice_length, A.max_chain_length = h[A.level].max_chain, A.strstart = 0, A.block_start = 0, A.lookahead = 0, A.insert = 0, A.match_length = A.prev_length = I - 1, A.match_available = 0, A.ins_h = 0;
|
|
1473
1473
|
}(t.state), R;
|
|
1474
1474
|
}
|
|
1475
1475
|
function yt(t, R, A, c, s, k) {
|
|
1476
|
-
if (!t) return
|
|
1476
|
+
if (!t) return d;
|
|
1477
1477
|
var F = 1;
|
|
1478
|
-
if (R === r && (R = 6), c < 0 ? (F = 0, c = -c) : 15 < c && (F = 2, c -= 16), s < 1 || y < s || A !==
|
|
1478
|
+
if (R === r && (R = 6), c < 0 ? (F = 0, c = -c) : 15 < c && (F = 2, c -= 16), s < 1 || y < s || A !== f || c < 8 || 15 < c || R < 0 || 9 < R || k < 0 || u < k) return nt(t, d);
|
|
1479
1479
|
c === 8 && (c = 9);
|
|
1480
1480
|
var U = new gt();
|
|
1481
|
-
return (t.state = U).strm = t, U.wrap = F, U.gzhead = null, U.w_bits = c, U.w_size = 1 << U.w_bits, U.w_mask = U.w_size - 1, U.hash_bits = s + 7, U.hash_size = 1 << U.hash_bits, U.hash_mask = U.hash_size - 1, U.hash_shift = ~~((U.hash_bits + I - 1) / I), U.window = new l.Buf8(2 * U.w_size), U.head = new l.Buf16(U.hash_size), U.prev = new l.Buf16(U.w_size), U.lit_bufsize = 1 << s + 6, U.pending_buf_size = 4 * U.lit_bufsize, U.pending_buf = new l.Buf8(U.pending_buf_size), U.d_buf = 1 * U.lit_bufsize, U.l_buf = 3 * U.lit_bufsize, U.level = R, U.strategy = k, U.method = A,
|
|
1481
|
+
return (t.state = U).strm = t, U.wrap = F, U.gzhead = null, U.w_bits = c, U.w_size = 1 << U.w_bits, U.w_mask = U.w_size - 1, U.hash_bits = s + 7, U.hash_size = 1 << U.hash_bits, U.hash_mask = U.hash_size - 1, U.hash_shift = ~~((U.hash_bits + I - 1) / I), U.window = new l.Buf8(2 * U.w_size), U.head = new l.Buf16(U.hash_size), U.prev = new l.Buf16(U.w_size), U.lit_bufsize = 1 << s + 6, U.pending_buf_size = 4 * U.lit_bufsize, U.pending_buf = new l.Buf8(U.pending_buf_size), U.d_buf = 1 * U.lit_bufsize, U.l_buf = 3 * U.lit_bufsize, U.level = R, U.strategy = k, U.method = A, _t(t);
|
|
1482
1482
|
}
|
|
1483
1483
|
h = [new st(0, 0, 0, 0, function(t, R) {
|
|
1484
1484
|
var A = 65535;
|
|
@@ -1493,16 +1493,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1493
1493
|
}
|
|
1494
1494
|
return t.insert = 0, R === _ ? (C(t, !0), t.strm.avail_out === 0 ? rt : M) : (t.strstart > t.block_start && (C(t, !1), t.strm.avail_out), e);
|
|
1495
1495
|
}), new st(4, 4, 8, 4, mt), new st(4, 5, 16, 8, mt), new st(4, 6, 32, 32, mt), new st(4, 4, 16, 16, at), new st(8, 16, 32, 32, at), new st(8, 16, 128, 128, at), new st(8, 32, 128, 256, at), new st(32, 128, 258, 1024, at), new st(32, 258, 258, 4096, at)], w.deflateInit = function(t, R) {
|
|
1496
|
-
return yt(t, R,
|
|
1497
|
-
}, w.deflateInit2 = yt, w.deflateReset =
|
|
1498
|
-
return t && t.state ? t.state.wrap !== 2 ?
|
|
1496
|
+
return yt(t, R, f, 15, 8, 0);
|
|
1497
|
+
}, w.deflateInit2 = yt, w.deflateReset = _t, w.deflateResetKeep = ht, w.deflateSetHeader = function(t, R) {
|
|
1498
|
+
return t && t.state ? t.state.wrap !== 2 ? d : (t.state.gzhead = R, i) : d;
|
|
1499
1499
|
}, w.deflate = function(t, R) {
|
|
1500
1500
|
var A, c, s, k;
|
|
1501
|
-
if (!t || !t.state || 5 < R || R < 0) return t ? nt(t,
|
|
1502
|
-
if (c = t.state, !t.output || !t.input && t.avail_in !== 0 || c.status === 666 && R !== _) return nt(t, t.avail_out === 0 ? -5 :
|
|
1501
|
+
if (!t || !t.state || 5 < R || R < 0) return t ? nt(t, d) : d;
|
|
1502
|
+
if (c = t.state, !t.output || !t.input && t.avail_in !== 0 || c.status === 666 && R !== _) return nt(t, t.avail_out === 0 ? -5 : d);
|
|
1503
1503
|
if (c.strm = t, A = c.last_flush, c.last_flush = R, c.status === m) if (c.wrap === 2) t.adler = 0, Q(c, 31), Q(c, 139), Q(c, 8), c.gzhead ? (Q(c, (c.gzhead.text ? 1 : 0) + (c.gzhead.hcrc ? 2 : 0) + (c.gzhead.extra ? 4 : 0) + (c.gzhead.name ? 8 : 0) + (c.gzhead.comment ? 16 : 0)), Q(c, 255 & c.gzhead.time), Q(c, c.gzhead.time >> 8 & 255), Q(c, c.gzhead.time >> 16 & 255), Q(c, c.gzhead.time >> 24 & 255), Q(c, c.level === 9 ? 2 : 2 <= c.strategy || c.level < 2 ? 4 : 0), Q(c, 255 & c.gzhead.os), c.gzhead.extra && c.gzhead.extra.length && (Q(c, 255 & c.gzhead.extra.length), Q(c, c.gzhead.extra.length >> 8 & 255)), c.gzhead.hcrc && (t.adler = p(t.adler, c.pending_buf, c.pending, 0)), c.gzindex = 0, c.status = 69) : (Q(c, 0), Q(c, 0), Q(c, 0), Q(c, 0), Q(c, 0), Q(c, c.level === 9 ? 2 : 2 <= c.strategy || c.level < 2 ? 4 : 0), Q(c, 3), c.status = T);
|
|
1504
1504
|
else {
|
|
1505
|
-
var F =
|
|
1505
|
+
var F = f + (c.w_bits - 8 << 4) << 8;
|
|
1506
1506
|
F |= (2 <= c.strategy || c.level < 2 ? 0 : c.level < 6 ? 1 : c.level === 6 ? 2 : 3) << 6, c.strstart !== 0 && (F |= 32), F += 31 - F % 31, c.status = T, K(c, F), c.strstart !== 0 && (K(c, t.adler >>> 16), K(c, 65535 & t.adler)), t.adler = 1;
|
|
1507
1507
|
}
|
|
1508
1508
|
if (c.status === 69) if (c.gzhead.extra) {
|
|
@@ -1568,10 +1568,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1568
1568
|
return R !== _ ? i : c.wrap <= 0 ? 1 : (c.wrap === 2 ? (Q(c, 255 & t.adler), Q(c, t.adler >> 8 & 255), Q(c, t.adler >> 16 & 255), Q(c, t.adler >> 24 & 255), Q(c, 255 & t.total_in), Q(c, t.total_in >> 8 & 255), Q(c, t.total_in >> 16 & 255), Q(c, t.total_in >> 24 & 255)) : (K(c, t.adler >>> 16), K(c, 65535 & t.adler)), z(t), 0 < c.wrap && (c.wrap = -c.wrap), c.pending !== 0 ? i : 1);
|
|
1569
1569
|
}, w.deflateEnd = function(t) {
|
|
1570
1570
|
var R;
|
|
1571
|
-
return t && t.state ? (R = t.state.status) !== m && R !== 69 && R !== 73 && R !== 91 && R !== 103 && R !== T && R !== 666 ? nt(t,
|
|
1571
|
+
return t && t.state ? (R = t.state.status) !== m && R !== 69 && R !== 73 && R !== 91 && R !== 103 && R !== T && R !== 666 ? nt(t, d) : (t.state = null, R === T ? nt(t, -3) : i) : d;
|
|
1572
1572
|
}, w.deflateSetDictionary = function(t, R) {
|
|
1573
1573
|
var A, c, s, k, F, U, E, Z, X = R.length;
|
|
1574
|
-
if (!t || !t.state || (k = (A = t.state).wrap) === 2 || k === 1 && A.status !== m || A.lookahead) return
|
|
1574
|
+
if (!t || !t.state || (k = (A = t.state).wrap) === 2 || k === 1 && A.status !== m || A.lookahead) return d;
|
|
1575
1575
|
for (k === 1 && (t.adler = o(t.adler, R, X, 0)), A.wrap = 0, X >= A.w_size && (k === 0 && (V(A.head), A.strstart = 0, A.block_start = 0, A.insert = 0), Z = new l.Buf8(A.w_size), l.arraySet(Z, R, X - A.w_size, A.w_size, 0), R = Z, X = A.w_size), F = t.avail_in, U = t.next_in, E = t.input, t.avail_in = X, t.next_in = 0, t.input = R, ut(A); A.lookahead >= I; ) {
|
|
1576
1576
|
for (c = A.strstart, s = A.lookahead - (I - 1); A.ins_h = (A.ins_h << A.hash_shift ^ A.window[c + I - 1]) & A.hash_mask, A.prev[c & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = c, c++, --s; ) ;
|
|
1577
1577
|
A.strstart = c, A.lookahead = I - 1, ut(A);
|
|
@@ -1584,16 +1584,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1584
1584
|
};
|
|
1585
1585
|
}, {}], 48: [function(v, L, w) {
|
|
1586
1586
|
L.exports = function(h, l) {
|
|
1587
|
-
var n, o, p, b, g, _, i,
|
|
1588
|
-
n = h.state, o = h.next_in, e = h.input, p = o + (h.avail_in - 5), b = h.next_out, D = h.output, g = b - (l - h.avail_out), _ = b + (h.avail_out - 257), i = n.dmax,
|
|
1587
|
+
var n, o, p, b, g, _, i, d, r, u, a, f, y, S, x, P, O, N, I, H, et, m, T, e, D;
|
|
1588
|
+
n = h.state, o = h.next_in, e = h.input, p = o + (h.avail_in - 5), b = h.next_out, D = h.output, g = b - (l - h.avail_out), _ = b + (h.avail_out - 257), i = n.dmax, d = n.wsize, r = n.whave, u = n.wnext, a = n.window, f = n.hold, y = n.bits, S = n.lencode, x = n.distcode, P = (1 << n.lenbits) - 1, O = (1 << n.distbits) - 1;
|
|
1589
1589
|
t: do {
|
|
1590
|
-
y < 15 && (
|
|
1590
|
+
y < 15 && (f += e[o++] << y, y += 8, f += e[o++] << y, y += 8), N = S[f & P];
|
|
1591
1591
|
e: for (; ; ) {
|
|
1592
|
-
if (
|
|
1592
|
+
if (f >>>= I = N >>> 24, y -= I, (I = N >>> 16 & 255) === 0) D[b++] = 65535 & N;
|
|
1593
1593
|
else {
|
|
1594
1594
|
if (!(16 & I)) {
|
|
1595
1595
|
if (!(64 & I)) {
|
|
1596
|
-
N = S[(65535 & N) + (
|
|
1596
|
+
N = S[(65535 & N) + (f & (1 << I) - 1)];
|
|
1597
1597
|
continue e;
|
|
1598
1598
|
}
|
|
1599
1599
|
if (32 & I) {
|
|
@@ -1603,32 +1603,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1603
1603
|
h.msg = "invalid literal/length code", n.mode = 30;
|
|
1604
1604
|
break t;
|
|
1605
1605
|
}
|
|
1606
|
-
H = 65535 & N, (I &= 15) && (y < I && (
|
|
1606
|
+
H = 65535 & N, (I &= 15) && (y < I && (f += e[o++] << y, y += 8), H += f & (1 << I) - 1, f >>>= I, y -= I), y < 15 && (f += e[o++] << y, y += 8, f += e[o++] << y, y += 8), N = x[f & O];
|
|
1607
1607
|
r: for (; ; ) {
|
|
1608
|
-
if (
|
|
1608
|
+
if (f >>>= I = N >>> 24, y -= I, !(16 & (I = N >>> 16 & 255))) {
|
|
1609
1609
|
if (!(64 & I)) {
|
|
1610
|
-
N = x[(65535 & N) + (
|
|
1610
|
+
N = x[(65535 & N) + (f & (1 << I) - 1)];
|
|
1611
1611
|
continue r;
|
|
1612
1612
|
}
|
|
1613
1613
|
h.msg = "invalid distance code", n.mode = 30;
|
|
1614
1614
|
break t;
|
|
1615
1615
|
}
|
|
1616
|
-
if (et = 65535 & N, y < (I &= 15) && (
|
|
1616
|
+
if (et = 65535 & N, y < (I &= 15) && (f += e[o++] << y, (y += 8) < I && (f += e[o++] << y, y += 8)), i < (et += f & (1 << I) - 1)) {
|
|
1617
1617
|
h.msg = "invalid distance too far back", n.mode = 30;
|
|
1618
1618
|
break t;
|
|
1619
1619
|
}
|
|
1620
|
-
if (
|
|
1620
|
+
if (f >>>= I, y -= I, (I = b - g) < et) {
|
|
1621
1621
|
if (r < (I = et - I) && n.sane) {
|
|
1622
1622
|
h.msg = "invalid distance too far back", n.mode = 30;
|
|
1623
1623
|
break t;
|
|
1624
1624
|
}
|
|
1625
1625
|
if (T = a, (m = 0) === u) {
|
|
1626
|
-
if (m +=
|
|
1626
|
+
if (m += d - I, I < H) {
|
|
1627
1627
|
for (H -= I; D[b++] = a[m++], --I; ) ;
|
|
1628
1628
|
m = b - et, T = D;
|
|
1629
1629
|
}
|
|
1630
1630
|
} else if (u < I) {
|
|
1631
|
-
if (m +=
|
|
1631
|
+
if (m += d + u - I, (I -= u) < H) {
|
|
1632
1632
|
for (H -= I; D[b++] = a[m++], --I; ) ;
|
|
1633
1633
|
if (m = 0, u < H) {
|
|
1634
1634
|
for (H -= I = u; D[b++] = a[m++], --I; ) ;
|
|
@@ -1651,19 +1651,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1651
1651
|
break;
|
|
1652
1652
|
}
|
|
1653
1653
|
} while (o < p && b < _);
|
|
1654
|
-
o -= H = y >> 3,
|
|
1654
|
+
o -= H = y >> 3, f &= (1 << (y -= H << 3)) - 1, h.next_in = o, h.next_out = b, h.avail_in = o < p ? p - o + 5 : 5 - (o - p), h.avail_out = b < _ ? _ - b + 257 : 257 - (b - _), n.hold = f, n.bits = y;
|
|
1655
1655
|
};
|
|
1656
1656
|
}, {}], 49: [function(v, L, w) {
|
|
1657
|
-
var h = v("../utils/common"), l = v("./adler32"), n = v("./crc32"), o = v("./inffast"), p = v("./inftrees"), b = 1, g = 2, _ = 0, i = -2,
|
|
1657
|
+
var h = v("../utils/common"), l = v("./adler32"), n = v("./crc32"), o = v("./inffast"), p = v("./inftrees"), b = 1, g = 2, _ = 0, i = -2, d = 1, r = 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
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function f() {
|
|
1662
1662
|
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new h.Buf16(320), this.work = new h.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1663
1663
|
}
|
|
1664
1664
|
function y(m) {
|
|
1665
1665
|
var T;
|
|
1666
|
-
return m && m.state ? (T = m.state, m.total_in = m.total_out = T.total = 0, m.msg = "", T.wrap && (m.adler = 1 & T.wrap), T.mode =
|
|
1666
|
+
return m && m.state ? (T = m.state, m.total_in = m.total_out = T.total = 0, m.msg = "", T.wrap && (m.adler = 1 & T.wrap), T.mode = d, T.last = 0, T.havedict = 0, T.dmax = 32768, T.head = null, T.hold = 0, T.bits = 0, T.lencode = T.lendyn = new h.Buf32(r), T.distcode = T.distdyn = new h.Buf32(u), T.sane = 1, T.back = -1, _) : i;
|
|
1667
1667
|
}
|
|
1668
1668
|
function S(m) {
|
|
1669
1669
|
var T;
|
|
@@ -1675,7 +1675,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1675
1675
|
}
|
|
1676
1676
|
function P(m, T) {
|
|
1677
1677
|
var e, D;
|
|
1678
|
-
return m ? (D = new
|
|
1678
|
+
return m ? (D = new f(), (m.state = D).window = null, (e = x(m, T)) !== _ && (m.state = null), e) : i;
|
|
1679
1679
|
}
|
|
1680
1680
|
var O, N, I = !0;
|
|
1681
1681
|
function H(m) {
|
|
@@ -1697,11 +1697,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1697
1697
|
w.inflateReset = S, w.inflateReset2 = x, w.inflateResetKeep = y, w.inflateInit = function(m) {
|
|
1698
1698
|
return P(m, 15);
|
|
1699
1699
|
}, w.inflateInit2 = P, w.inflate = function(m, T) {
|
|
1700
|
-
var e, D, rt, M, nt, j, V, z, C, Q, K, $, ut, mt, at, st, gt, ht,
|
|
1700
|
+
var e, D, rt, M, nt, j, V, z, C, Q, K, $, ut, mt, at, st, gt, ht, _t, yt, t, R, A, c, s = 0, k = new h.Buf8(4), F = [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
1702
|
(e = m.state).mode === 12 && (e.mode = 13), nt = m.next_out, rt = m.output, V = m.avail_out, M = m.next_in, D = m.input, j = m.avail_in, z = e.hold, C = e.bits, Q = j, K = V, R = _;
|
|
1703
1703
|
t: for (; ; ) switch (e.mode) {
|
|
1704
|
-
case
|
|
1704
|
+
case d:
|
|
1705
1705
|
if (e.wrap === 0) {
|
|
1706
1706
|
e.mode = 13;
|
|
1707
1707
|
break;
|
|
@@ -1939,7 +1939,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1939
1939
|
j--, z += D[M++] << C, C += 8;
|
|
1940
1940
|
}
|
|
1941
1941
|
if (st && !(240 & st)) {
|
|
1942
|
-
for (ht = at,
|
|
1942
|
+
for (ht = at, _t = st, yt = gt; st = (s = e.lencode[yt + ((z & (1 << ht + _t) - 1) >> ht)]) >>> 16 & 255, gt = 65535 & s, !(ht + (at = s >>> 24) <= C); ) {
|
|
1943
1943
|
if (j === 0) break t;
|
|
1944
1944
|
j--, z += D[M++] << C, C += 8;
|
|
1945
1945
|
}
|
|
@@ -1973,7 +1973,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1973
1973
|
j--, z += D[M++] << C, C += 8;
|
|
1974
1974
|
}
|
|
1975
1975
|
if (!(240 & st)) {
|
|
1976
|
-
for (ht = at,
|
|
1976
|
+
for (ht = at, _t = st, yt = gt; st = (s = e.distcode[yt + ((z & (1 << ht + _t) - 1) >> ht)]) >>> 16 & 255, gt = 65535 & s, !(ht + (at = s >>> 24) <= C); ) {
|
|
1977
1977
|
if (j === 0) break t;
|
|
1978
1978
|
j--, z += D[M++] << C, C += 8;
|
|
1979
1979
|
}
|
|
@@ -2065,12 +2065,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2065
2065
|
}, w.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2066
2066
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(v, L, w) {
|
|
2067
2067
|
var h = v("../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], n = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], o = [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], p = [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
|
-
L.exports = function(b, g, _, i,
|
|
2069
|
-
var
|
|
2068
|
+
L.exports = function(b, g, _, i, d, r, u, a) {
|
|
2069
|
+
var f, y, S, x, P, O, N, I, H, et = a.bits, m = 0, T = 0, e = 0, D = 0, rt = 0, M = 0, nt = 0, j = 0, V = 0, z = 0, C = null, Q = 0, K = new h.Buf16(16), $ = new h.Buf16(16), ut = null, mt = 0;
|
|
2070
2070
|
for (m = 0; m <= 15; m++) K[m] = 0;
|
|
2071
2071
|
for (T = 0; T < i; T++) K[g[_ + T]]++;
|
|
2072
2072
|
for (rt = et, D = 15; 1 <= D && K[D] === 0; D--) ;
|
|
2073
|
-
if (D < rt && (rt = D), D === 0) return
|
|
2073
|
+
if (D < rt && (rt = D), D === 0) return d[r++] = 20971520, d[r++] = 20971520, a.bits = 1, 0;
|
|
2074
2074
|
for (e = 1; e < D && K[e] === 0; e++) ;
|
|
2075
2075
|
for (rt < e && (rt = e), m = j = 1; m <= 15; m++) if (j <<= 1, (j -= K[m]) < 0) return -1;
|
|
2076
2076
|
if (0 < j && (b === 0 || D !== 1)) return -1;
|
|
@@ -2078,19 +2078,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2078
2078
|
for (T = 0; T < i; T++) g[_ + T] !== 0 && (u[$[g[_ + T]]++] = T);
|
|
2079
2079
|
if (O = b === 0 ? (C = ut = u, 19) : b === 1 ? (C = l, Q -= 257, ut = n, mt -= 257, 256) : (C = o, ut = p, -1), m = e, P = r, nt = T = z = 0, S = -1, x = (V = 1 << (M = rt)) - 1, b === 1 && 852 < V || b === 2 && 592 < V) return 1;
|
|
2080
2080
|
for (; ; ) {
|
|
2081
|
-
for (N = m - nt, H = u[T] < O ? (I = 0, u[T]) : u[T] > O ? (I = ut[mt + u[T]], C[Q + u[T]]) : (I = 96, 0),
|
|
2082
|
-
for (
|
|
2083
|
-
if (
|
|
2081
|
+
for (N = m - nt, H = u[T] < O ? (I = 0, u[T]) : u[T] > O ? (I = ut[mt + u[T]], C[Q + u[T]]) : (I = 96, 0), f = 1 << m - nt, e = y = 1 << M; d[P + (z >> nt) + (y -= f)] = N << 24 | I << 16 | H | 0, y !== 0; ) ;
|
|
2082
|
+
for (f = 1 << m - 1; z & f; ) f >>= 1;
|
|
2083
|
+
if (f !== 0 ? (z &= f - 1, z += f) : z = 0, T++, --K[m] == 0) {
|
|
2084
2084
|
if (m === D) break;
|
|
2085
2085
|
m = g[_ + u[T]];
|
|
2086
2086
|
}
|
|
2087
2087
|
if (rt < m && (z & x) !== S) {
|
|
2088
2088
|
for (nt === 0 && (nt = rt), P += e, j = 1 << (M = m - nt); M + nt < D && !((j -= K[M + nt]) <= 0); ) M++, j <<= 1;
|
|
2089
2089
|
if (V += 1 << M, b === 1 && 852 < V || b === 2 && 592 < V) return 1;
|
|
2090
|
-
|
|
2090
|
+
d[S = z & x] = rt << 24 | M << 16 | P - r | 0;
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
|
-
return z !== 0 && (
|
|
2093
|
+
return z !== 0 && (d[P + z] = m - nt << 24 | 64 << 16 | 0), a.bits = rt, 0;
|
|
2094
2094
|
};
|
|
2095
2095
|
}, { "../utils/common": 41 }], 51: [function(v, L, w) {
|
|
2096
2096
|
L.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 o(s) {
|
|
2100
2100
|
for (var k = s.length; 0 <= --k; ) s[k] = 0;
|
|
2101
2101
|
}
|
|
2102
|
-
var p = 0, b = 29, g = 256, _ = g + 1 + b, i = 30,
|
|
2102
|
+
var p = 0, b = 29, g = 256, _ = g + 1 + b, i = 30, d = 19, r = 2 * _ + 1, u = 15, a = 16, f = 7, y = 256, S = 16, x = 17, P = 18, O = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], N = [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], H = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], et = new Array(2 * (_ + 2));
|
|
2103
2103
|
o(et);
|
|
2104
2104
|
var m = new Array(2 * i);
|
|
2105
2105
|
o(m);
|
|
@@ -2144,7 +2144,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2144
2144
|
var k;
|
|
2145
2145
|
for (k = 0; k < _; k++) s.dyn_ltree[2 * k] = 0;
|
|
2146
2146
|
for (k = 0; k < i; k++) s.dyn_dtree[2 * k] = 0;
|
|
2147
|
-
for (k = 0; k <
|
|
2147
|
+
for (k = 0; k < d; k++) s.bl_tree[2 * k] = 0;
|
|
2148
2148
|
s.dyn_ltree[2 * y] = 1, s.opt_len = s.static_len = 0, s.last_lit = s.matches = 0;
|
|
2149
2149
|
}
|
|
2150
2150
|
function st(s) {
|
|
@@ -2158,7 +2158,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2158
2158
|
for (var U = s.heap[F], E = F << 1; E <= s.heap_len && (E < s.heap_len && gt(k, s.heap[E + 1], s.heap[E], s.depth) && E++, !gt(k, U, s.heap[E], s.depth)); ) s.heap[F] = s.heap[E], F = E, E <<= 1;
|
|
2159
2159
|
s.heap[F] = U;
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function _t(s, k, F) {
|
|
2162
2162
|
var U, E, Z, X, G = 0;
|
|
2163
2163
|
if (s.last_lit !== 0) for (; U = s.pending_buf[s.d_buf + 2 * G] << 8 | s.pending_buf[s.d_buf + 2 * G + 1], E = s.pending_buf[s.l_buf + G], G++, U === 0 ? $(s, E, k) : ($(s, (Z = e[E]) + g + 1, k), (X = O[Z]) !== 0 && K(s, E -= D[Z], X), $(s, Z = C(--U), F), (X = N[Z]) !== 0 && K(s, U -= j[Z], X)), G < s.last_lit; ) ;
|
|
2164
2164
|
$(s, y, k);
|
|
@@ -2213,7 +2213,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2213
2213
|
for (; k <= 279; ) et[2 * k + 1] = 7, k++, X[7]++;
|
|
2214
2214
|
for (; k <= 287; ) et[2 * k + 1] = 8, k++, X[8]++;
|
|
2215
2215
|
for (mt(et, _ + 1, X), k = 0; k < i; k++) m[2 * k + 1] = 5, m[2 * k] = ut(k, 5);
|
|
2216
|
-
rt = new V(et, O, g + 1, _, u), M = new V(m, N, 0, i, u), nt = new V(new Array(0), I, 0,
|
|
2216
|
+
rt = new V(et, O, g + 1, _, u), M = new V(m, N, 0, i, u), nt = new V(new Array(0), I, 0, d, f);
|
|
2217
2217
|
}(), A = !0), s.l_desc = new z(s.dyn_ltree, rt), s.d_desc = new z(s.dyn_dtree, M), s.bl_desc = new z(s.bl_tree, nt), s.bi_buf = 0, s.bi_valid = 0, at(s);
|
|
2218
2218
|
}, w._tr_stored_block = c, w._tr_flush_block = function(s, k, F, U) {
|
|
2219
2219
|
var E, Z, X = 0;
|
|
@@ -2225,13 +2225,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2225
2225
|
return l;
|
|
2226
2226
|
}(s)), yt(s, s.l_desc), yt(s, s.d_desc), X = function(G) {
|
|
2227
2227
|
var tt;
|
|
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), tt =
|
|
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), tt = d - 1; 3 <= tt && G.bl_tree[2 * H[tt] + 1] === 0; tt--) ;
|
|
2229
2229
|
return G.opt_len += 3 * (tt + 1) + 5 + 5 + 4, tt;
|
|
2230
|
-
}(s), E = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= E && (E = Z)) : E = Z = F + 5, F + 4 <= E && k !== -1 ? c(s, k, F, U) : s.strategy === 4 || Z === E ? (K(s, 2 + (U ? 1 : 0), 3),
|
|
2230
|
+
}(s), E = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= E && (E = Z)) : E = Z = F + 5, F + 4 <= E && k !== -1 ? c(s, k, F, U) : s.strategy === 4 || Z === E ? (K(s, 2 + (U ? 1 : 0), 3), _t(s, et, m)) : (K(s, 4 + (U ? 1 : 0), 3), function(G, tt, ot, it) {
|
|
2231
2231
|
var wt;
|
|
2232
2232
|
for (K(G, tt - 257, 5), K(G, ot - 1, 5), K(G, it - 4, 4), wt = 0; wt < it; wt++) K(G, G.bl_tree[2 * H[wt] + 1], 3);
|
|
2233
2233
|
R(G, G.dyn_ltree, tt - 1), R(G, G.dyn_dtree, ot - 1);
|
|
2234
|
-
}(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, X + 1),
|
|
2234
|
+
}(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, X + 1), _t(s, s.dyn_ltree, s.dyn_dtree)), at(s), U && st(s);
|
|
2235
2235
|
}, w._tr_tally = function(s, k, F) {
|
|
2236
2236
|
return s.pending_buf[s.d_buf + 2 * s.last_lit] = k >>> 8 & 255, s.pending_buf[s.d_buf + 2 * s.last_lit + 1] = 255 & k, s.pending_buf[s.l_buf + s.last_lit] = 255 & F, s.last_lit++, k === 0 ? s.dyn_ltree[2 * F]++ : (s.matches++, k--, s.dyn_ltree[2 * (e[F] + g + 1)]++, s.dyn_dtree[2 * C(k)]++), s.last_lit === s.lit_bufsize - 1;
|
|
2237
2237
|
}, w._tr_align = function(s) {
|
|
@@ -2247,10 +2247,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2247
2247
|
(function(h) {
|
|
2248
2248
|
(function(l, n) {
|
|
2249
2249
|
if (!l.setImmediate) {
|
|
2250
|
-
var o, p, b, g, _ = 1, i = {},
|
|
2250
|
+
var o, p, b, g, _ = 1, i = {}, d = !1, r = l.document, u = Object.getPrototypeOf && Object.getPrototypeOf(l);
|
|
2251
2251
|
u = u && u.setTimeout ? u : l, o = {}.toString.call(l.process) === "[object process]" ? function(S) {
|
|
2252
2252
|
process.nextTick(function() {
|
|
2253
|
-
|
|
2253
|
+
f(S);
|
|
2254
2254
|
});
|
|
2255
2255
|
} : function() {
|
|
2256
2256
|
if (l.postMessage && !l.importScripts) {
|
|
@@ -2262,16 +2262,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2262
2262
|
}() ? (g = "setImmediate$" + Math.random() + "$", l.addEventListener ? l.addEventListener("message", y, !1) : l.attachEvent("onmessage", y), function(S) {
|
|
2263
2263
|
l.postMessage(g + S, "*");
|
|
2264
2264
|
}) : l.MessageChannel ? ((b = new MessageChannel()).port1.onmessage = function(S) {
|
|
2265
|
-
|
|
2265
|
+
f(S.data);
|
|
2266
2266
|
}, function(S) {
|
|
2267
2267
|
b.port2.postMessage(S);
|
|
2268
2268
|
}) : r && "onreadystatechange" in r.createElement("script") ? (p = r.documentElement, function(S) {
|
|
2269
2269
|
var x = r.createElement("script");
|
|
2270
2270
|
x.onreadystatechange = function() {
|
|
2271
|
-
|
|
2271
|
+
f(S), x.onreadystatechange = null, p.removeChild(x), x = null;
|
|
2272
2272
|
}, p.appendChild(x);
|
|
2273
2273
|
}) : function(S) {
|
|
2274
|
-
setTimeout(
|
|
2274
|
+
setTimeout(f, 0, S);
|
|
2275
2275
|
}, u.setImmediate = function(S) {
|
|
2276
2276
|
typeof S != "function" && (S = new Function("" + S));
|
|
2277
2277
|
for (var x = new Array(arguments.length - 1), P = 0; P < x.length; P++) x[P] = arguments[P + 1];
|
|
@@ -2282,12 +2282,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2282
2282
|
function a(S) {
|
|
2283
2283
|
delete i[S];
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2286
|
-
if (
|
|
2285
|
+
function f(S) {
|
|
2286
|
+
if (d) setTimeout(f, 0, S);
|
|
2287
2287
|
else {
|
|
2288
2288
|
var x = i[S];
|
|
2289
2289
|
if (x) {
|
|
2290
|
-
|
|
2290
|
+
d = !0;
|
|
2291
2291
|
try {
|
|
2292
2292
|
(function(P) {
|
|
2293
2293
|
var O = P.callback, N = P.args;
|
|
@@ -2309,13 +2309,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2309
2309
|
}
|
|
2310
2310
|
})(x);
|
|
2311
2311
|
} finally {
|
|
2312
|
-
a(S),
|
|
2312
|
+
a(S), d = !1;
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
}
|
|
2316
2316
|
}
|
|
2317
2317
|
function y(S) {
|
|
2318
|
-
S.source === l && typeof S.data == "string" && S.data.indexOf(g) === 0 &&
|
|
2318
|
+
S.source === l && typeof S.data == "string" && S.data.indexOf(g) === 0 && f(+S.data.slice(g.length));
|
|
2319
2319
|
}
|
|
2320
2320
|
})(typeof self > "u" ? h === void 0 ? this : h : self);
|
|
2321
2321
|
}).call(this, typeof Xt < "u" ? Xt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2324,12 +2324,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2324
2324
|
})(ve);
|
|
2325
2325
|
var Ue = ve.exports;
|
|
2326
2326
|
const Me = /* @__PURE__ */ Le(Ue);
|
|
2327
|
-
function ge(
|
|
2328
|
-
return new Date(
|
|
2327
|
+
function ge(bt) {
|
|
2328
|
+
return new Date(bt).getTime();
|
|
2329
2329
|
}
|
|
2330
2330
|
let ne = null;
|
|
2331
2331
|
async function je() {
|
|
2332
|
-
return ne || (ne = (await import("./index-
|
|
2332
|
+
return ne || (ne = (await import("./index-CPnUioab.mjs")).fetchFile), ne;
|
|
2333
2333
|
}
|
|
2334
2334
|
class We {
|
|
2335
2335
|
constructor() {
|
|
@@ -2339,23 +2339,23 @@ class We {
|
|
|
2339
2339
|
Lt(this, "progressCallback", null);
|
|
2340
2340
|
Lt(this, "controller", new AbortController());
|
|
2341
2341
|
}
|
|
2342
|
-
setProgressCallback(
|
|
2343
|
-
this.progressCallback =
|
|
2342
|
+
setProgressCallback(ft) {
|
|
2343
|
+
this.progressCallback = ft;
|
|
2344
2344
|
}
|
|
2345
|
-
updateProgress(
|
|
2346
|
-
this.progressCallback && this.progressCallback(
|
|
2345
|
+
updateProgress(ft) {
|
|
2346
|
+
this.progressCallback && this.progressCallback(ft);
|
|
2347
2347
|
}
|
|
2348
2348
|
async initFFmpeg() {
|
|
2349
2349
|
if (!this.ffmpeg) {
|
|
2350
|
-
const { FFmpeg:
|
|
2351
|
-
this.ffmpeg = new
|
|
2350
|
+
const { FFmpeg: ft } = await import("./index-D8kRViJr.mjs");
|
|
2351
|
+
this.ffmpeg = new ft();
|
|
2352
2352
|
}
|
|
2353
2353
|
await this.ffmpeg.load({
|
|
2354
2354
|
coreURL: "https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.6/dist/esm/ffmpeg-core.js"
|
|
2355
2355
|
});
|
|
2356
2356
|
}
|
|
2357
|
-
parseM3u8(
|
|
2358
|
-
const h =
|
|
2357
|
+
parseM3u8(ft, v) {
|
|
2358
|
+
const h = ft.replace(/\r\n|\r/g, `
|
|
2359
2359
|
`).split(`
|
|
2360
2360
|
`).filter((n) => {
|
|
2361
2361
|
const o = n.trim();
|
|
@@ -2375,21 +2375,21 @@ class We {
|
|
|
2375
2375
|
return p;
|
|
2376
2376
|
});
|
|
2377
2377
|
}
|
|
2378
|
-
async convertHLSToMP4(
|
|
2378
|
+
async convertHLSToMP4(ft, v) {
|
|
2379
2379
|
v && this.setProgressCallback(v), this.format = "mp4", this.updateProgress(0), await this.initFFmpeg(), this.updateProgress(1);
|
|
2380
|
-
const L = await fetch(
|
|
2380
|
+
const L = await fetch(ft, {
|
|
2381
2381
|
signal: this.controller.signal
|
|
2382
2382
|
});
|
|
2383
2383
|
if (!L.ok)
|
|
2384
2384
|
throw new Error(`Failed to fetch m3u8: ${L.status}`);
|
|
2385
|
-
const w = await L.text(), h = this.parseM3u8(w,
|
|
2385
|
+
const w = await L.text(), h = this.parseM3u8(w, ft);
|
|
2386
2386
|
if (h.length === 0)
|
|
2387
2387
|
throw new Error("No TS segments found in the m3u8 file");
|
|
2388
2388
|
let l = 0;
|
|
2389
2389
|
const n = h.length, o = await Promise.all(
|
|
2390
2390
|
h.map(async (b, g) => {
|
|
2391
|
-
const i = await (await je())(b),
|
|
2392
|
-
return await this.ffmpeg.writeFile(
|
|
2391
|
+
const i = await (await je())(b), d = `segment_${g}.ts`;
|
|
2392
|
+
return await this.ffmpeg.writeFile(d, i), l++, this.updateProgress(`${Math.floor(l / n * 100)}`), d;
|
|
2393
2393
|
})
|
|
2394
2394
|
);
|
|
2395
2395
|
let p = w;
|
|
@@ -2431,8 +2431,8 @@ const Ze = {
|
|
|
2431
2431
|
dialogWidth: {},
|
|
2432
2432
|
dialogHeight: {}
|
|
2433
2433
|
},
|
|
2434
|
-
setup(
|
|
2435
|
-
const { t: v } = Ie(), L = Be(), w =
|
|
2434
|
+
setup(bt, { expose: ft }) {
|
|
2435
|
+
const { t: v } = Ie(), L = Be(), w = bt, h = Nt(() => {
|
|
2436
2436
|
const B = le(w.videoList[0].startTime, !1, { time: !0, second: !0 }), W = le(w.videoList[w.videoList.length - 1].endTime, !1, { time: !0, second: !0 });
|
|
2437
2437
|
return console.log("start", B, "end", W), B !== W ? `${B} ~ ${W}` : `${B}`;
|
|
2438
2438
|
}), l = Nt(() => {
|
|
@@ -2440,7 +2440,7 @@ const Ze = {
|
|
|
2440
2440
|
return W !== "0s" ? W : "1s";
|
|
2441
2441
|
}), n = pt(null), o = pt(null);
|
|
2442
2442
|
let p = null;
|
|
2443
|
-
const b = pt(0), g = pt(0), _ = pt(0), i = pt(!1),
|
|
2443
|
+
const b = pt(0), g = pt(0), _ = pt(0), i = pt(!1), d = pt(1), r = pt(!1), u = pt(!0), a = pt(!0), f = pt(!1), y = pt(!1), S = pt(!1), x = pt(!1), P = pt(0), O = pt([]), N = pt(0), I = pt(!1), H = pt(0), et = pt(0);
|
|
2444
2444
|
let m = null, T = null, e = null, D = null, rt = !1, M = !1;
|
|
2445
2445
|
const nt = /* @__PURE__ */ new Set(), j = pt(0);
|
|
2446
2446
|
let V = null;
|
|
@@ -2453,24 +2453,24 @@ const Ze = {
|
|
|
2453
2453
|
let W = 0;
|
|
2454
2454
|
const q = [];
|
|
2455
2455
|
B.forEach((Y, J) => {
|
|
2456
|
-
const
|
|
2456
|
+
const dt = Y.duration || 0;
|
|
2457
2457
|
if (q.push({
|
|
2458
2458
|
videoUrl: Y.media,
|
|
2459
2459
|
start: W,
|
|
2460
|
-
duration:
|
|
2461
|
-
end: W +
|
|
2460
|
+
duration: dt,
|
|
2461
|
+
end: W + dt,
|
|
2462
2462
|
gapDuration: 0,
|
|
2463
2463
|
isGap: !1
|
|
2464
|
-
}), W +=
|
|
2465
|
-
const
|
|
2466
|
-
|
|
2464
|
+
}), W += dt, J < B.length - 1) {
|
|
2465
|
+
const vt = (ge(B[J + 1].startTime) - ge(Y.endTime)) / 1e3;
|
|
2466
|
+
vt > 0 && (q.push({
|
|
2467
2467
|
videoUrl: "",
|
|
2468
2468
|
start: W,
|
|
2469
|
-
duration:
|
|
2470
|
-
end: W +
|
|
2469
|
+
duration: vt,
|
|
2470
|
+
end: W + vt,
|
|
2471
2471
|
gapDuration: 0,
|
|
2472
2472
|
isGap: !0
|
|
2473
|
-
}), W +=
|
|
2473
|
+
}), W += vt);
|
|
2474
2474
|
}
|
|
2475
2475
|
}), O.value = q, N.value = W;
|
|
2476
2476
|
}, C = [1, 2, 4, 8], Q = Nt(() => O.value.filter((B) => !B.isGap)), K = Nt(() => {
|
|
@@ -2486,20 +2486,20 @@ const Ze = {
|
|
|
2486
2486
|
}, mt = () => {
|
|
2487
2487
|
const B = O.value, W = j.value || 1, q = B.length;
|
|
2488
2488
|
if (!q || !W) return [];
|
|
2489
|
-
const Y = N.value || 1, J = (q - 1) * _e,
|
|
2489
|
+
const Y = N.value || 1, J = (q - 1) * _e, dt = Math.max(0, W - J), vt = [];
|
|
2490
2490
|
let Et = 0;
|
|
2491
2491
|
for (let Pt = 0; Pt < q; Pt++) {
|
|
2492
|
-
const Wt = Y > 0 ? B[Pt].duration / Y *
|
|
2493
|
-
|
|
2492
|
+
const Wt = Y > 0 ? B[Pt].duration / Y * dt : 0;
|
|
2493
|
+
vt.push({ leftPx: Et, widthPx: Wt }), Et += Wt + _e;
|
|
2494
2494
|
}
|
|
2495
|
-
return
|
|
2495
|
+
return vt;
|
|
2496
2496
|
}, at = (B) => {
|
|
2497
2497
|
const W = O.value, q = mt();
|
|
2498
2498
|
for (let Y = 0; Y < W.length; Y++) {
|
|
2499
2499
|
const J = W[Y];
|
|
2500
2500
|
if (B >= J.start && B < J.end) {
|
|
2501
|
-
const
|
|
2502
|
-
return q[Y].leftPx +
|
|
2501
|
+
const dt = J.duration ? (B - J.start) / J.duration : 0;
|
|
2502
|
+
return q[Y].leftPx + dt * q[Y].widthPx;
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
2505
|
if (q.length) {
|
|
@@ -2512,8 +2512,8 @@ const Ze = {
|
|
|
2512
2512
|
for (let Y = 0; Y < q.length; Y++) {
|
|
2513
2513
|
const J = q[Y];
|
|
2514
2514
|
if (B >= J.leftPx && B <= J.leftPx + J.widthPx) {
|
|
2515
|
-
const
|
|
2516
|
-
return W[Y].start +
|
|
2515
|
+
const dt = J.widthPx ? (B - J.leftPx) / J.widthPx : 0;
|
|
2516
|
+
return W[Y].start + dt * W[Y].duration;
|
|
2517
2517
|
}
|
|
2518
2518
|
}
|
|
2519
2519
|
if (q.length) {
|
|
@@ -2539,11 +2539,11 @@ const Ze = {
|
|
|
2539
2539
|
if (B < W[Y].start) return { index: Y, local: 0 };
|
|
2540
2540
|
const q = W[W.length - 1];
|
|
2541
2541
|
return { index: W.length - 1, local: q.duration - 0.05 };
|
|
2542
|
-
},
|
|
2543
|
-
const B =
|
|
2542
|
+
}, _t = () => (p == null ? void 0 : p.media) || null, yt = () => {
|
|
2543
|
+
const B = _t();
|
|
2544
2544
|
B && (B.addEventListener("timeupdate", X), B.addEventListener("ended", G), B.addEventListener("canplay", tt), B.addEventListener("waiting", ot), B.addEventListener("playing", it), B.addEventListener("pause", wt), B.addEventListener("error", At));
|
|
2545
2545
|
}, t = () => {
|
|
2546
|
-
const B =
|
|
2546
|
+
const B = _t();
|
|
2547
2547
|
B && (B.removeEventListener("timeupdate", X), B.removeEventListener("ended", G), B.removeEventListener("canplay", tt), B.removeEventListener("waiting", ot), B.removeEventListener("playing", it), B.removeEventListener("pause", wt), B.removeEventListener("error", At));
|
|
2548
2548
|
}, R = (B) => {
|
|
2549
2549
|
if (p)
|
|
@@ -2577,10 +2577,10 @@ const Ze = {
|
|
|
2577
2577
|
}, A = () => {
|
|
2578
2578
|
t(), p && (p.destroy(), p = null);
|
|
2579
2579
|
}, c = () => {
|
|
2580
|
-
const B =
|
|
2581
|
-
B && B.playbackRate !==
|
|
2580
|
+
const B = _t();
|
|
2581
|
+
B && B.playbackRate !== d.value && (B.playbackRate = d.value);
|
|
2582
2582
|
}, s = () => {
|
|
2583
|
-
const B =
|
|
2583
|
+
const B = _t();
|
|
2584
2584
|
if (B && (c(), e != null)) {
|
|
2585
2585
|
const W = Q.value[b.value], q = W == null ? void 0 : W.duration, Y = e;
|
|
2586
2586
|
B.currentTime = q && isFinite(Y) ? Math.max(0, Math.min(Y, q - 0.05)) : Math.max(0, Y), e = null;
|
|
@@ -2592,7 +2592,7 @@ const Ze = {
|
|
|
2592
2592
|
}, F = (B, W, q) => {
|
|
2593
2593
|
const Y = Q.value[B];
|
|
2594
2594
|
if (!Y) return;
|
|
2595
|
-
b.value = B, g.value = B, Z = !1, e = Math.max(0, W), D = q, a.value = !0,
|
|
2595
|
+
b.value = B, g.value = B, Z = !1, e = Math.max(0, W), D = q, a.value = !0, f.value = !0, rt = !0;
|
|
2596
2596
|
const J = R(Y.videoUrl);
|
|
2597
2597
|
J && J.then(() => {
|
|
2598
2598
|
rt = !1, s(), k();
|
|
@@ -2600,7 +2600,7 @@ const Ze = {
|
|
|
2600
2600
|
rt = !1;
|
|
2601
2601
|
});
|
|
2602
2602
|
}, U = () => {
|
|
2603
|
-
const B =
|
|
2603
|
+
const B = _t();
|
|
2604
2604
|
if (B) {
|
|
2605
2605
|
if (_.value >= N.value - 0.05) {
|
|
2606
2606
|
_.value = 0, F(0, 0, !0);
|
|
@@ -2616,12 +2616,12 @@ const Ze = {
|
|
|
2616
2616
|
const X = () => {
|
|
2617
2617
|
var q;
|
|
2618
2618
|
if (S.value) return;
|
|
2619
|
-
const B =
|
|
2619
|
+
const B = _t(), W = Q.value[b.value];
|
|
2620
2620
|
if (B && W) {
|
|
2621
2621
|
const Y = W.end, J = W.start + B.currentTime;
|
|
2622
2622
|
_.value = Math.max(W.start, Math.min(J, Y));
|
|
2623
|
-
const
|
|
2624
|
-
|
|
2623
|
+
const dt = Date.now();
|
|
2624
|
+
dt - E >= 1e3 && (E = dt, console.log("[Progress]", {
|
|
2625
2625
|
index: b.value,
|
|
2626
2626
|
currentTime: Number(B.currentTime.toFixed(2)),
|
|
2627
2627
|
videoDuration: Number((q = B.duration) == null ? void 0 : q.toFixed(2)),
|
|
@@ -2631,20 +2631,20 @@ const Ze = {
|
|
|
2631
2631
|
totalDuration: Number(N.value.toFixed(2)),
|
|
2632
2632
|
metaDurations: w.videoList.map((Et) => Et.duration)
|
|
2633
2633
|
}));
|
|
2634
|
-
const
|
|
2635
|
-
B.currentTime >=
|
|
2634
|
+
const vt = W.duration;
|
|
2635
|
+
B.currentTime >= vt - 0.1 && !Z && (Z = !0, G());
|
|
2636
2636
|
}
|
|
2637
2637
|
}, G = () => {
|
|
2638
2638
|
const B = Q.value[b.value];
|
|
2639
2639
|
B && (_.value = B.end), b.value < Q.value.length - 1 ? F(b.value + 1, 0, !0) : (i.value = !1, u.value = !0, a.value = !0);
|
|
2640
2640
|
}, tt = () => {
|
|
2641
|
-
r.value = !1,
|
|
2641
|
+
r.value = !1, f.value = !1, s(), rt || k();
|
|
2642
2642
|
}, ot = () => {
|
|
2643
|
-
|
|
2643
|
+
f.value = !0;
|
|
2644
2644
|
}, it = () => {
|
|
2645
|
-
|
|
2645
|
+
f.value = !1, i.value = !0, a.value = !1, Ct();
|
|
2646
2646
|
}, wt = () => {
|
|
2647
|
-
|
|
2647
|
+
f.value = !1, i.value = !1, u.value = !0;
|
|
2648
2648
|
}, At = () => {
|
|
2649
2649
|
r.value = !0, a.value = !1;
|
|
2650
2650
|
}, xt = () => {
|
|
@@ -2669,7 +2669,7 @@ const Ze = {
|
|
|
2669
2669
|
const W = kt(B), q = ht(W), Y = Q.value[q.index];
|
|
2670
2670
|
if (!Y) return;
|
|
2671
2671
|
_.value = Y.start + q.local;
|
|
2672
|
-
const J =
|
|
2672
|
+
const J = _t();
|
|
2673
2673
|
if (J && q.index === b.value) {
|
|
2674
2674
|
J.currentTime = q.local;
|
|
2675
2675
|
return;
|
|
@@ -2682,10 +2682,10 @@ const Ze = {
|
|
|
2682
2682
|
T || (T = setTimeout(() => {
|
|
2683
2683
|
var Et;
|
|
2684
2684
|
T = null;
|
|
2685
|
-
const J = Ot(Y.clientX),
|
|
2686
|
-
et.value = J, H.value = Math.max(0, Math.min(
|
|
2687
|
-
const
|
|
2688
|
-
_.value = ((Et = Q.value[
|
|
2685
|
+
const J = Ot(Y.clientX), dt = kt(J);
|
|
2686
|
+
et.value = J, H.value = Math.max(0, Math.min(dt, N.value - 0.05));
|
|
2687
|
+
const vt = ht(dt);
|
|
2688
|
+
_.value = ((Et = Q.value[vt.index]) == null ? void 0 : Et.start) + vt.local;
|
|
2689
2689
|
}, 30));
|
|
2690
2690
|
}, q = (Y) => {
|
|
2691
2691
|
S.value = !1, I.value = !1, T && (clearTimeout(T), T = null), document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", q), Mt(Ot(Y.clientX));
|
|
@@ -2714,7 +2714,7 @@ const Ze = {
|
|
|
2714
2714
|
};
|
|
2715
2715
|
V.signal.addEventListener("abort", W);
|
|
2716
2716
|
try {
|
|
2717
|
-
const J = w.videoList,
|
|
2717
|
+
const J = w.videoList, dt = (q = J == null ? void 0 : J[0]) == null ? void 0 : q.deviceId, vt = ((Y = J == null ? void 0 : J[0]) == null ? void 0 : Y.startTime) || (/* @__PURE__ */ new Date()).toISOString(), Et = J.length, Pt = new Array(Et).fill(0), Wt = async (Zt, te) => {
|
|
2718
2718
|
const Ht = new We();
|
|
2719
2719
|
B.push(Ht), Ht.setProgressCallback((xe) => {
|
|
2720
2720
|
Pt[te] = Number(xe) || 0, P.value = Math.round(
|
|
@@ -2727,15 +2727,15 @@ const Ze = {
|
|
|
2727
2727
|
}, ae = await Promise.all(J.map(Wt));
|
|
2728
2728
|
if (V != null && V.signal.aborted) throw new Error("Download aborted");
|
|
2729
2729
|
if (Et === 1) {
|
|
2730
|
-
ie(ae[0], `${
|
|
2730
|
+
ie(ae[0], `${dt} (${vt}).mp4`);
|
|
2731
2731
|
return;
|
|
2732
2732
|
}
|
|
2733
|
-
const se = new Me(), ye = se.folder(`${
|
|
2733
|
+
const se = new Me(), ye = se.folder(`${dt} (${vt}).mp4`);
|
|
2734
2734
|
J.forEach((Zt, te) => {
|
|
2735
2735
|
ye.file(`${Zt.deviceId} (${Zt.startTime}).mp4`, ae[te]);
|
|
2736
2736
|
});
|
|
2737
2737
|
const ke = await se.generateAsync({ type: "blob" });
|
|
2738
|
-
ie(ke, `${
|
|
2738
|
+
ie(ke, `${dt} (${vt}).zip`);
|
|
2739
2739
|
} catch (J) {
|
|
2740
2740
|
if (V != null && V.signal.aborted) {
|
|
2741
2741
|
console.log("[Download] cancelled");
|
|
@@ -2746,7 +2746,7 @@ const Ze = {
|
|
|
2746
2746
|
V == null || V.signal.removeEventListener("abort", W), V = null, x.value = !1;
|
|
2747
2747
|
}
|
|
2748
2748
|
};
|
|
2749
|
-
|
|
2749
|
+
ft({ abortDownload: Rt });
|
|
2750
2750
|
const we = () => {
|
|
2751
2751
|
var B;
|
|
2752
2752
|
(B = w.videoList) == null || B.forEach((W) => {
|
|
@@ -2766,7 +2766,7 @@ const Ze = {
|
|
|
2766
2766
|
const B = o.value;
|
|
2767
2767
|
B && (j.value = B.getBoundingClientRect().width);
|
|
2768
2768
|
};
|
|
2769
|
-
return he(
|
|
2769
|
+
return he(d, () => {
|
|
2770
2770
|
c();
|
|
2771
2771
|
}), Pe(() => {
|
|
2772
2772
|
Rt(), m && clearTimeout(m), T && clearTimeout(T), window.removeEventListener("resize", Qt), A();
|
|
@@ -2774,7 +2774,7 @@ const Ze = {
|
|
|
2774
2774
|
const q = Oe, Y = Ae;
|
|
2775
2775
|
return It(), Tt("div", {
|
|
2776
2776
|
class: "video-viewport",
|
|
2777
|
-
style: Ut({ width:
|
|
2777
|
+
style: Ut({ width: B.dialogWidth + "px", height: B.dialogHeight + "px" }),
|
|
2778
2778
|
onMouseenter: ct,
|
|
2779
2779
|
onMouseleave: Ft
|
|
2780
2780
|
}, [
|
|
@@ -2793,7 +2793,7 @@ const Ze = {
|
|
|
2793
2793
|
src: K.value,
|
|
2794
2794
|
alt: ""
|
|
2795
2795
|
}, null, 8, He)) : $t("", !0),
|
|
2796
|
-
|
|
2796
|
+
f.value ? (It(), Tt("div", Ge, [
|
|
2797
2797
|
zt(ue, {
|
|
2798
2798
|
white: !0,
|
|
2799
2799
|
loading: !0
|
|
@@ -2841,7 +2841,7 @@ const Ze = {
|
|
|
2841
2841
|
}, [
|
|
2842
2842
|
lt("div", {
|
|
2843
2843
|
class: "progress-container",
|
|
2844
|
-
style: Ut({ width:
|
|
2844
|
+
style: Ut({ width: B.dialogWidth - 500 + "px" })
|
|
2845
2845
|
}, [
|
|
2846
2846
|
lt("div", Ve, [
|
|
2847
2847
|
lt("div", Ye, [
|
|
@@ -2864,10 +2864,10 @@ const Ze = {
|
|
|
2864
2864
|
onMousemove: qt,
|
|
2865
2865
|
onMouseleave: Jt
|
|
2866
2866
|
}, [
|
|
2867
|
-
(It(!0), Tt(
|
|
2868
|
-
key:
|
|
2867
|
+
(It(!0), Tt(de, null, fe(O.value, (J, dt) => (It(), Tt("div", {
|
|
2868
|
+
key: dt,
|
|
2869
2869
|
class: pe(["progress-segment", { gap: J.isGap }]),
|
|
2870
|
-
style: Ut(gt(J,
|
|
2870
|
+
style: Ut(gt(J, dt))
|
|
2871
2871
|
}, null, 6))), 128)),
|
|
2872
2872
|
lt("div", {
|
|
2873
2873
|
class: "progress-thumb",
|
|
@@ -2888,10 +2888,10 @@ const Ze = {
|
|
|
2888
2888
|
onClick: W[1] || (W[1] = Dt(() => {
|
|
2889
2889
|
}, ["stop"]))
|
|
2890
2890
|
}, [
|
|
2891
|
-
(It(), Tt(
|
|
2891
|
+
(It(), Tt(de, null, fe(C, (J) => lt("span", {
|
|
2892
2892
|
key: J,
|
|
2893
|
-
class: pe(["speed-text", { active:
|
|
2894
|
-
onClick: Dt((
|
|
2893
|
+
class: pe(["speed-text", { active: d.value === J }]),
|
|
2894
|
+
onClick: Dt((dt) => d.value = J, ["stop"])
|
|
2895
2895
|
}, "X" + St(J), 11, Qe)), 64))
|
|
2896
2896
|
])
|
|
2897
2897
|
], 4)
|
|
@@ -2937,7 +2937,7 @@ const Ze = {
|
|
|
2937
2937
|
], 36);
|
|
2938
2938
|
};
|
|
2939
2939
|
}
|
|
2940
|
-
}),
|
|
2940
|
+
}), dr = /* @__PURE__ */ Re(ir, [["__scopeId", "data-v-89db4771"]]);
|
|
2941
2941
|
export {
|
|
2942
|
-
|
|
2942
|
+
dr as default
|
|
2943
2943
|
};
|