yuanjia-form-pro-standard 1.1.6-beta7.0 → 1.1.6-beta7.1
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/designer.es.js +2899 -108
- package/designer.style.css +1 -1
- package/designer.umd.js +179 -168
- package/package.json +1 -1
package/designer.es.js
CHANGED
|
@@ -40,6 +40,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
|
40
40
|
function getDefaultExportFromCjs(x) {
|
|
41
41
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
42
42
|
}
|
|
43
|
+
function commonjsRequire(path) {
|
|
44
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
45
|
+
}
|
|
43
46
|
var axios$3 = { exports: {} };
|
|
44
47
|
var bind$2 = function bind2(fn2, thisArg) {
|
|
45
48
|
return function wrap() {
|
|
@@ -149634,6 +149637,2723 @@ const _sfc_main$51 = defineComponent({
|
|
|
149634
149637
|
}
|
|
149635
149638
|
});
|
|
149636
149639
|
var ItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$51, [["__scopeId", "data-v-2e5e5aa0"]]);
|
|
149640
|
+
var jszip_min = { exports: {} };
|
|
149641
|
+
/*!
|
|
149642
|
+
|
|
149643
|
+
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
149644
|
+
<http://stuartk.com/jszip>
|
|
149645
|
+
|
|
149646
|
+
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
149647
|
+
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
149648
|
+
|
|
149649
|
+
JSZip uses the library pako released under the MIT license :
|
|
149650
|
+
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
149651
|
+
*/
|
|
149652
|
+
(function(module, exports) {
|
|
149653
|
+
!function(e) {
|
|
149654
|
+
module.exports = e();
|
|
149655
|
+
}(function() {
|
|
149656
|
+
return function s(a5, o, h5) {
|
|
149657
|
+
function u(r5, e5) {
|
|
149658
|
+
if (!o[r5]) {
|
|
149659
|
+
if (!a5[r5]) {
|
|
149660
|
+
var t6 = typeof commonjsRequire == "function" && commonjsRequire;
|
|
149661
|
+
if (!e5 && t6)
|
|
149662
|
+
return t6(r5, true);
|
|
149663
|
+
if (l)
|
|
149664
|
+
return l(r5, true);
|
|
149665
|
+
var n = new Error("Cannot find module '" + r5 + "'");
|
|
149666
|
+
throw n.code = "MODULE_NOT_FOUND", n;
|
|
149667
|
+
}
|
|
149668
|
+
var i5 = o[r5] = { exports: {} };
|
|
149669
|
+
a5[r5][0].call(i5.exports, function(e6) {
|
|
149670
|
+
var t7 = a5[r5][1][e6];
|
|
149671
|
+
return u(t7 || e6);
|
|
149672
|
+
}, i5, i5.exports, s, a5, o, h5);
|
|
149673
|
+
}
|
|
149674
|
+
return o[r5].exports;
|
|
149675
|
+
}
|
|
149676
|
+
for (var l = typeof commonjsRequire == "function" && commonjsRequire, e = 0; e < h5.length; e++)
|
|
149677
|
+
u(h5[e]);
|
|
149678
|
+
return u;
|
|
149679
|
+
}({ 1: [function(e, t6, r5) {
|
|
149680
|
+
var d5 = e("./utils"), c = e("./support"), p5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
149681
|
+
r5.encode = function(e5) {
|
|
149682
|
+
for (var t7, r6, n, i5, s, a5, o, h5 = [], u = 0, l = e5.length, f = l, c5 = d5.getTypeOf(e5) !== "string"; u < e5.length; )
|
|
149683
|
+
f = l - u, n = c5 ? (t7 = e5[u++], r6 = u < l ? e5[u++] : 0, u < l ? e5[u++] : 0) : (t7 = e5.charCodeAt(u++), r6 = u < l ? e5.charCodeAt(u++) : 0, u < l ? e5.charCodeAt(u++) : 0), i5 = t7 >> 2, s = (3 & t7) << 4 | r6 >> 4, a5 = 1 < f ? (15 & r6) << 2 | n >> 6 : 64, o = 2 < f ? 63 & n : 64, h5.push(p5.charAt(i5) + p5.charAt(s) + p5.charAt(a5) + p5.charAt(o));
|
|
149684
|
+
return h5.join("");
|
|
149685
|
+
}, r5.decode = function(e5) {
|
|
149686
|
+
var t7, r6, n, i5, s, a5, o = 0, h5 = 0, u = "data:";
|
|
149687
|
+
if (e5.substr(0, u.length) === u)
|
|
149688
|
+
throw new Error("Invalid base64 input, it looks like a data url.");
|
|
149689
|
+
var l, f = 3 * (e5 = e5.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
149690
|
+
if (e5.charAt(e5.length - 1) === p5.charAt(64) && f--, e5.charAt(e5.length - 2) === p5.charAt(64) && f--, f % 1 != 0)
|
|
149691
|
+
throw new Error("Invalid base64 input, bad content length.");
|
|
149692
|
+
for (l = c.uint8array ? new Uint8Array(0 | f) : new Array(0 | f); o < e5.length; )
|
|
149693
|
+
t7 = p5.indexOf(e5.charAt(o++)) << 2 | (i5 = p5.indexOf(e5.charAt(o++))) >> 4, r6 = (15 & i5) << 4 | (s = p5.indexOf(e5.charAt(o++))) >> 2, n = (3 & s) << 6 | (a5 = p5.indexOf(e5.charAt(o++))), l[h5++] = t7, s !== 64 && (l[h5++] = r6), a5 !== 64 && (l[h5++] = n);
|
|
149694
|
+
return l;
|
|
149695
|
+
};
|
|
149696
|
+
}, { "./support": 30, "./utils": 32 }], 2: [function(e, t6, r5) {
|
|
149697
|
+
var n = e("./external"), i5 = e("./stream/DataWorker"), s = e("./stream/Crc32Probe"), a5 = e("./stream/DataLengthProbe");
|
|
149698
|
+
function o(e5, t7, r6, n5, i6) {
|
|
149699
|
+
this.compressedSize = e5, this.uncompressedSize = t7, this.crc32 = r6, this.compression = n5, this.compressedContent = i6;
|
|
149700
|
+
}
|
|
149701
|
+
o.prototype = { getContentWorker: function() {
|
|
149702
|
+
var e5 = new i5(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a5("data_length")), t7 = this;
|
|
149703
|
+
return e5.on("end", function() {
|
|
149704
|
+
if (this.streamInfo.data_length !== t7.uncompressedSize)
|
|
149705
|
+
throw new Error("Bug : uncompressed data size mismatch");
|
|
149706
|
+
}), e5;
|
|
149707
|
+
}, getCompressedWorker: function() {
|
|
149708
|
+
return new i5(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
149709
|
+
} }, o.createWorkerFrom = function(e5, t7, r6) {
|
|
149710
|
+
return e5.pipe(new s()).pipe(new a5("uncompressedSize")).pipe(t7.compressWorker(r6)).pipe(new a5("compressedSize")).withStreamInfo("compression", t7);
|
|
149711
|
+
}, t6.exports = o;
|
|
149712
|
+
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(e, t6, r5) {
|
|
149713
|
+
var n = e("./stream/GenericWorker");
|
|
149714
|
+
r5.STORE = { magic: "\0\0", compressWorker: function() {
|
|
149715
|
+
return new n("STORE compression");
|
|
149716
|
+
}, uncompressWorker: function() {
|
|
149717
|
+
return new n("STORE decompression");
|
|
149718
|
+
} }, r5.DEFLATE = e("./flate");
|
|
149719
|
+
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(e, t6, r5) {
|
|
149720
|
+
var n = e("./utils");
|
|
149721
|
+
var o = function() {
|
|
149722
|
+
for (var e5, t7 = [], r6 = 0; r6 < 256; r6++) {
|
|
149723
|
+
e5 = r6;
|
|
149724
|
+
for (var n5 = 0; n5 < 8; n5++)
|
|
149725
|
+
e5 = 1 & e5 ? 3988292384 ^ e5 >>> 1 : e5 >>> 1;
|
|
149726
|
+
t7[r6] = e5;
|
|
149727
|
+
}
|
|
149728
|
+
return t7;
|
|
149729
|
+
}();
|
|
149730
|
+
t6.exports = function(e5, t7) {
|
|
149731
|
+
return e5 !== void 0 && e5.length ? n.getTypeOf(e5) !== "string" ? function(e6, t8, r6, n5) {
|
|
149732
|
+
var i5 = o, s = n5 + r6;
|
|
149733
|
+
e6 ^= -1;
|
|
149734
|
+
for (var a5 = n5; a5 < s; a5++)
|
|
149735
|
+
e6 = e6 >>> 8 ^ i5[255 & (e6 ^ t8[a5])];
|
|
149736
|
+
return -1 ^ e6;
|
|
149737
|
+
}(0 | t7, e5, e5.length, 0) : function(e6, t8, r6, n5) {
|
|
149738
|
+
var i5 = o, s = n5 + r6;
|
|
149739
|
+
e6 ^= -1;
|
|
149740
|
+
for (var a5 = n5; a5 < s; a5++)
|
|
149741
|
+
e6 = e6 >>> 8 ^ i5[255 & (e6 ^ t8.charCodeAt(a5))];
|
|
149742
|
+
return -1 ^ e6;
|
|
149743
|
+
}(0 | t7, e5, e5.length, 0) : 0;
|
|
149744
|
+
};
|
|
149745
|
+
}, { "./utils": 32 }], 5: [function(e, t6, r5) {
|
|
149746
|
+
r5.base64 = false, r5.binary = false, r5.dir = false, r5.createFolders = true, r5.date = null, r5.compression = null, r5.compressionOptions = null, r5.comment = null, r5.unixPermissions = null, r5.dosPermissions = null;
|
|
149747
|
+
}, {}], 6: [function(e, t6, r5) {
|
|
149748
|
+
var n = null;
|
|
149749
|
+
n = typeof Promise != "undefined" ? Promise : e("lie"), t6.exports = { Promise: n };
|
|
149750
|
+
}, { lie: 37 }], 7: [function(e, t6, r5) {
|
|
149751
|
+
var n = typeof Uint8Array != "undefined" && typeof Uint16Array != "undefined" && typeof Uint32Array != "undefined", i5 = e("pako"), s = e("./utils"), a5 = e("./stream/GenericWorker"), o = n ? "uint8array" : "array";
|
|
149752
|
+
function h5(e5, t7) {
|
|
149753
|
+
a5.call(this, "FlateWorker/" + e5), this._pako = null, this._pakoAction = e5, this._pakoOptions = t7, this.meta = {};
|
|
149754
|
+
}
|
|
149755
|
+
r5.magic = "\b\0", s.inherits(h5, a5), h5.prototype.processChunk = function(e5) {
|
|
149756
|
+
this.meta = e5.meta, this._pako === null && this._createPako(), this._pako.push(s.transformTo(o, e5.data), false);
|
|
149757
|
+
}, h5.prototype.flush = function() {
|
|
149758
|
+
a5.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], true);
|
|
149759
|
+
}, h5.prototype.cleanUp = function() {
|
|
149760
|
+
a5.prototype.cleanUp.call(this), this._pako = null;
|
|
149761
|
+
}, h5.prototype._createPako = function() {
|
|
149762
|
+
this._pako = new i5[this._pakoAction]({ raw: true, level: this._pakoOptions.level || -1 });
|
|
149763
|
+
var t7 = this;
|
|
149764
|
+
this._pako.onData = function(e5) {
|
|
149765
|
+
t7.push({ data: e5, meta: t7.meta });
|
|
149766
|
+
};
|
|
149767
|
+
}, r5.compressWorker = function(e5) {
|
|
149768
|
+
return new h5("Deflate", e5);
|
|
149769
|
+
}, r5.uncompressWorker = function() {
|
|
149770
|
+
return new h5("Inflate", {});
|
|
149771
|
+
};
|
|
149772
|
+
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e, t6, r5) {
|
|
149773
|
+
function A(e5, t7) {
|
|
149774
|
+
var r6, n5 = "";
|
|
149775
|
+
for (r6 = 0; r6 < t7; r6++)
|
|
149776
|
+
n5 += String.fromCharCode(255 & e5), e5 >>>= 8;
|
|
149777
|
+
return n5;
|
|
149778
|
+
}
|
|
149779
|
+
function n(e5, t7, r6, n5, i6, s5) {
|
|
149780
|
+
var a5, o, h5 = e5.file, u = e5.compression, l = s5 !== O.utf8encode, f = I.transformTo("string", s5(h5.name)), c = I.transformTo("string", O.utf8encode(h5.name)), d5 = h5.comment, p5 = I.transformTo("string", s5(d5)), m5 = I.transformTo("string", O.utf8encode(d5)), _5 = c.length !== h5.name.length, g = m5.length !== d5.length, b5 = "", v = "", y = "", w = h5.dir, k = h5.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
149781
|
+
t7 && !r6 || (x.crc32 = e5.crc32, x.compressedSize = e5.compressedSize, x.uncompressedSize = e5.uncompressedSize);
|
|
149782
|
+
var S = 0;
|
|
149783
|
+
t7 && (S |= 8), l || !_5 && !g || (S |= 2048);
|
|
149784
|
+
var z = 0, C5 = 0;
|
|
149785
|
+
w && (z |= 16), i6 === "UNIX" ? (C5 = 798, z |= function(e6, t8) {
|
|
149786
|
+
var r7 = e6;
|
|
149787
|
+
return e6 || (r7 = t8 ? 16893 : 33204), (65535 & r7) << 16;
|
|
149788
|
+
}(h5.unixPermissions, w)) : (C5 = 20, z |= function(e6) {
|
|
149789
|
+
return 63 & (e6 || 0);
|
|
149790
|
+
}(h5.dosPermissions)), a5 = k.getUTCHours(), a5 <<= 6, a5 |= k.getUTCMinutes(), a5 <<= 5, a5 |= k.getUTCSeconds() / 2, o = k.getUTCFullYear() - 1980, o <<= 4, o |= k.getUTCMonth() + 1, o <<= 5, o |= k.getUTCDate(), _5 && (v = A(1, 1) + A(B(f), 4) + c, b5 += "up" + A(v.length, 2) + v), g && (y = A(1, 1) + A(B(p5), 4) + m5, b5 += "uc" + A(y.length, 2) + y);
|
|
149791
|
+
var E = "";
|
|
149792
|
+
return E += "\n\0", E += A(S, 2), E += u.magic, E += A(a5, 2), E += A(o, 2), E += A(x.crc32, 4), E += A(x.compressedSize, 4), E += A(x.uncompressedSize, 4), E += A(f.length, 2), E += A(b5.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E + f + b5, dirRecord: R.CENTRAL_FILE_HEADER + A(C5, 2) + E + A(p5.length, 2) + "\0\0\0\0" + A(z, 4) + A(n5, 4) + f + b5 + p5 };
|
|
149793
|
+
}
|
|
149794
|
+
var I = e("../utils"), i5 = e("../stream/GenericWorker"), O = e("../utf8"), B = e("../crc32"), R = e("../signature");
|
|
149795
|
+
function s(e5, t7, r6, n5) {
|
|
149796
|
+
i5.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t7, this.zipPlatform = r6, this.encodeFileName = n5, this.streamFiles = e5, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
149797
|
+
}
|
|
149798
|
+
I.inherits(s, i5), s.prototype.push = function(e5) {
|
|
149799
|
+
var t7 = e5.meta.percent || 0, r6 = this.entriesCount, n5 = this._sources.length;
|
|
149800
|
+
this.accumulate ? this.contentBuffer.push(e5) : (this.bytesWritten += e5.data.length, i5.prototype.push.call(this, { data: e5.data, meta: { currentFile: this.currentFile, percent: r6 ? (t7 + 100 * (r6 - n5 - 1)) / r6 : 100 } }));
|
|
149801
|
+
}, s.prototype.openedSource = function(e5) {
|
|
149802
|
+
this.currentSourceOffset = this.bytesWritten, this.currentFile = e5.file.name;
|
|
149803
|
+
var t7 = this.streamFiles && !e5.file.dir;
|
|
149804
|
+
if (t7) {
|
|
149805
|
+
var r6 = n(e5, t7, false, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
149806
|
+
this.push({ data: r6.fileRecord, meta: { percent: 0 } });
|
|
149807
|
+
} else
|
|
149808
|
+
this.accumulate = true;
|
|
149809
|
+
}, s.prototype.closedSource = function(e5) {
|
|
149810
|
+
this.accumulate = false;
|
|
149811
|
+
var t7 = this.streamFiles && !e5.file.dir, r6 = n(e5, t7, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
149812
|
+
if (this.dirRecords.push(r6.dirRecord), t7)
|
|
149813
|
+
this.push({ data: function(e6) {
|
|
149814
|
+
return R.DATA_DESCRIPTOR + A(e6.crc32, 4) + A(e6.compressedSize, 4) + A(e6.uncompressedSize, 4);
|
|
149815
|
+
}(e5), meta: { percent: 100 } });
|
|
149816
|
+
else
|
|
149817
|
+
for (this.push({ data: r6.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; )
|
|
149818
|
+
this.push(this.contentBuffer.shift());
|
|
149819
|
+
this.currentFile = null;
|
|
149820
|
+
}, s.prototype.flush = function() {
|
|
149821
|
+
for (var e5 = this.bytesWritten, t7 = 0; t7 < this.dirRecords.length; t7++)
|
|
149822
|
+
this.push({ data: this.dirRecords[t7], meta: { percent: 100 } });
|
|
149823
|
+
var r6 = this.bytesWritten - e5, n5 = function(e6, t8, r7, n6, i6) {
|
|
149824
|
+
var s5 = I.transformTo("string", i6(n6));
|
|
149825
|
+
return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A(e6, 2) + A(e6, 2) + A(t8, 4) + A(r7, 4) + A(s5.length, 2) + s5;
|
|
149826
|
+
}(this.dirRecords.length, r6, e5, this.zipComment, this.encodeFileName);
|
|
149827
|
+
this.push({ data: n5, meta: { percent: 100 } });
|
|
149828
|
+
}, s.prototype.prepareNextSource = function() {
|
|
149829
|
+
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
149830
|
+
}, s.prototype.registerPrevious = function(e5) {
|
|
149831
|
+
this._sources.push(e5);
|
|
149832
|
+
var t7 = this;
|
|
149833
|
+
return e5.on("data", function(e6) {
|
|
149834
|
+
t7.processChunk(e6);
|
|
149835
|
+
}), e5.on("end", function() {
|
|
149836
|
+
t7.closedSource(t7.previous.streamInfo), t7._sources.length ? t7.prepareNextSource() : t7.end();
|
|
149837
|
+
}), e5.on("error", function(e6) {
|
|
149838
|
+
t7.error(e6);
|
|
149839
|
+
}), this;
|
|
149840
|
+
}, s.prototype.resume = function() {
|
|
149841
|
+
return !!i5.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), true) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), true));
|
|
149842
|
+
}, s.prototype.error = function(e5) {
|
|
149843
|
+
var t7 = this._sources;
|
|
149844
|
+
if (!i5.prototype.error.call(this, e5))
|
|
149845
|
+
return false;
|
|
149846
|
+
for (var r6 = 0; r6 < t7.length; r6++)
|
|
149847
|
+
try {
|
|
149848
|
+
t7[r6].error(e5);
|
|
149849
|
+
} catch (e6) {
|
|
149850
|
+
}
|
|
149851
|
+
return true;
|
|
149852
|
+
}, s.prototype.lock = function() {
|
|
149853
|
+
i5.prototype.lock.call(this);
|
|
149854
|
+
for (var e5 = this._sources, t7 = 0; t7 < e5.length; t7++)
|
|
149855
|
+
e5[t7].lock();
|
|
149856
|
+
}, t6.exports = s;
|
|
149857
|
+
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, t6, r5) {
|
|
149858
|
+
var u = e("../compressions"), n = e("./ZipFileWorker");
|
|
149859
|
+
r5.generateWorker = function(e5, a5, t7) {
|
|
149860
|
+
var o = new n(a5.streamFiles, t7, a5.platform, a5.encodeFileName), h5 = 0;
|
|
149861
|
+
try {
|
|
149862
|
+
e5.forEach(function(e6, t8) {
|
|
149863
|
+
h5++;
|
|
149864
|
+
var r6 = function(e7, t9) {
|
|
149865
|
+
var r7 = e7 || t9, n6 = u[r7];
|
|
149866
|
+
if (!n6)
|
|
149867
|
+
throw new Error(r7 + " is not a valid compression method !");
|
|
149868
|
+
return n6;
|
|
149869
|
+
}(t8.options.compression, a5.compression), n5 = t8.options.compressionOptions || a5.compressionOptions || {}, i5 = t8.dir, s = t8.date;
|
|
149870
|
+
t8._compressWorker(r6, n5).withStreamInfo("file", { name: e6, dir: i5, date: s, comment: t8.comment || "", unixPermissions: t8.unixPermissions, dosPermissions: t8.dosPermissions }).pipe(o);
|
|
149871
|
+
}), o.entriesCount = h5;
|
|
149872
|
+
} catch (e6) {
|
|
149873
|
+
o.error(e6);
|
|
149874
|
+
}
|
|
149875
|
+
return o;
|
|
149876
|
+
};
|
|
149877
|
+
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(e, t6, r5) {
|
|
149878
|
+
function n() {
|
|
149879
|
+
if (!(this instanceof n))
|
|
149880
|
+
return new n();
|
|
149881
|
+
if (arguments.length)
|
|
149882
|
+
throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
149883
|
+
this.files = Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
149884
|
+
var e5 = new n();
|
|
149885
|
+
for (var t7 in this)
|
|
149886
|
+
typeof this[t7] != "function" && (e5[t7] = this[t7]);
|
|
149887
|
+
return e5;
|
|
149888
|
+
};
|
|
149889
|
+
}
|
|
149890
|
+
(n.prototype = e("./object")).loadAsync = e("./load"), n.support = e("./support"), n.defaults = e("./defaults"), n.version = "3.10.1", n.loadAsync = function(e5, t7) {
|
|
149891
|
+
return new n().loadAsync(e5, t7);
|
|
149892
|
+
}, n.external = e("./external"), t6.exports = n;
|
|
149893
|
+
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, t6, r5) {
|
|
149894
|
+
var u = e("./utils"), i5 = e("./external"), n = e("./utf8"), s = e("./zipEntries"), a5 = e("./stream/Crc32Probe"), l = e("./nodejsUtils");
|
|
149895
|
+
function f(n5) {
|
|
149896
|
+
return new i5.Promise(function(e5, t7) {
|
|
149897
|
+
var r6 = n5.decompressed.getContentWorker().pipe(new a5());
|
|
149898
|
+
r6.on("error", function(e6) {
|
|
149899
|
+
t7(e6);
|
|
149900
|
+
}).on("end", function() {
|
|
149901
|
+
r6.streamInfo.crc32 !== n5.decompressed.crc32 ? t7(new Error("Corrupted zip : CRC32 mismatch")) : e5();
|
|
149902
|
+
}).resume();
|
|
149903
|
+
});
|
|
149904
|
+
}
|
|
149905
|
+
t6.exports = function(e5, o) {
|
|
149906
|
+
var h5 = this;
|
|
149907
|
+
return o = u.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l.isNode && l.isStream(e5) ? i5.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", e5, true, o.optimizedBinaryString, o.base64).then(function(e6) {
|
|
149908
|
+
var t7 = new s(o);
|
|
149909
|
+
return t7.load(e6), t7;
|
|
149910
|
+
}).then(function(e6) {
|
|
149911
|
+
var t7 = [i5.Promise.resolve(e6)], r6 = e6.files;
|
|
149912
|
+
if (o.checkCRC32)
|
|
149913
|
+
for (var n5 = 0; n5 < r6.length; n5++)
|
|
149914
|
+
t7.push(f(r6[n5]));
|
|
149915
|
+
return i5.Promise.all(t7);
|
|
149916
|
+
}).then(function(e6) {
|
|
149917
|
+
for (var t7 = e6.shift(), r6 = t7.files, n5 = 0; n5 < r6.length; n5++) {
|
|
149918
|
+
var i6 = r6[n5], s5 = i6.fileNameStr, a6 = u.resolve(i6.fileNameStr);
|
|
149919
|
+
h5.file(a6, i6.decompressed, { binary: true, optimizedBinaryString: true, date: i6.date, dir: i6.dir, comment: i6.fileCommentStr.length ? i6.fileCommentStr : null, unixPermissions: i6.unixPermissions, dosPermissions: i6.dosPermissions, createFolders: o.createFolders }), i6.dir || (h5.file(a6).unsafeOriginalName = s5);
|
|
149920
|
+
}
|
|
149921
|
+
return t7.zipComment.length && (h5.comment = t7.zipComment), h5;
|
|
149922
|
+
});
|
|
149923
|
+
};
|
|
149924
|
+
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e, t6, r5) {
|
|
149925
|
+
var n = e("../utils"), i5 = e("../stream/GenericWorker");
|
|
149926
|
+
function s(e5, t7) {
|
|
149927
|
+
i5.call(this, "Nodejs stream input adapter for " + e5), this._upstreamEnded = false, this._bindStream(t7);
|
|
149928
|
+
}
|
|
149929
|
+
n.inherits(s, i5), s.prototype._bindStream = function(e5) {
|
|
149930
|
+
var t7 = this;
|
|
149931
|
+
(this._stream = e5).pause(), e5.on("data", function(e6) {
|
|
149932
|
+
t7.push({ data: e6, meta: { percent: 0 } });
|
|
149933
|
+
}).on("error", function(e6) {
|
|
149934
|
+
t7.isPaused ? this.generatedError = e6 : t7.error(e6);
|
|
149935
|
+
}).on("end", function() {
|
|
149936
|
+
t7.isPaused ? t7._upstreamEnded = true : t7.end();
|
|
149937
|
+
});
|
|
149938
|
+
}, s.prototype.pause = function() {
|
|
149939
|
+
return !!i5.prototype.pause.call(this) && (this._stream.pause(), true);
|
|
149940
|
+
}, s.prototype.resume = function() {
|
|
149941
|
+
return !!i5.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), true);
|
|
149942
|
+
}, t6.exports = s;
|
|
149943
|
+
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(e, t6, r5) {
|
|
149944
|
+
var i5 = e("readable-stream").Readable;
|
|
149945
|
+
function n(e5, t7, r6) {
|
|
149946
|
+
i5.call(this, t7), this._helper = e5;
|
|
149947
|
+
var n5 = this;
|
|
149948
|
+
e5.on("data", function(e6, t8) {
|
|
149949
|
+
n5.push(e6) || n5._helper.pause(), r6 && r6(t8);
|
|
149950
|
+
}).on("error", function(e6) {
|
|
149951
|
+
n5.emit("error", e6);
|
|
149952
|
+
}).on("end", function() {
|
|
149953
|
+
n5.push(null);
|
|
149954
|
+
});
|
|
149955
|
+
}
|
|
149956
|
+
e("../utils").inherits(n, i5), n.prototype._read = function() {
|
|
149957
|
+
this._helper.resume();
|
|
149958
|
+
}, t6.exports = n;
|
|
149959
|
+
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, t6, r5) {
|
|
149960
|
+
t6.exports = { isNode: typeof Buffer != "undefined", newBufferFrom: function(e5, t7) {
|
|
149961
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from)
|
|
149962
|
+
return Buffer.from(e5, t7);
|
|
149963
|
+
if (typeof e5 == "number")
|
|
149964
|
+
throw new Error('The "data" argument must not be a number');
|
|
149965
|
+
return new Buffer(e5, t7);
|
|
149966
|
+
}, allocBuffer: function(e5) {
|
|
149967
|
+
if (Buffer.alloc)
|
|
149968
|
+
return Buffer.alloc(e5);
|
|
149969
|
+
var t7 = new Buffer(e5);
|
|
149970
|
+
return t7.fill(0), t7;
|
|
149971
|
+
}, isBuffer: function(e5) {
|
|
149972
|
+
return Buffer.isBuffer(e5);
|
|
149973
|
+
}, isStream: function(e5) {
|
|
149974
|
+
return e5 && typeof e5.on == "function" && typeof e5.pause == "function" && typeof e5.resume == "function";
|
|
149975
|
+
} };
|
|
149976
|
+
}, {}], 15: [function(e, t6, r5) {
|
|
149977
|
+
function s(e5, t7, r6) {
|
|
149978
|
+
var n5, i6 = u.getTypeOf(t7), s5 = u.extend(r6 || {}, f);
|
|
149979
|
+
s5.date = s5.date || new Date(), s5.compression !== null && (s5.compression = s5.compression.toUpperCase()), typeof s5.unixPermissions == "string" && (s5.unixPermissions = parseInt(s5.unixPermissions, 8)), s5.unixPermissions && 16384 & s5.unixPermissions && (s5.dir = true), s5.dosPermissions && 16 & s5.dosPermissions && (s5.dir = true), s5.dir && (e5 = g(e5)), s5.createFolders && (n5 = _5(e5)) && b5.call(this, n5, true);
|
|
149980
|
+
var a6 = i6 === "string" && s5.binary === false && s5.base64 === false;
|
|
149981
|
+
r6 && r6.binary !== void 0 || (s5.binary = !a6), (t7 instanceof c && t7.uncompressedSize === 0 || s5.dir || !t7 || t7.length === 0) && (s5.base64 = false, s5.binary = true, t7 = "", s5.compression = "STORE", i6 = "string");
|
|
149982
|
+
var o5 = null;
|
|
149983
|
+
o5 = t7 instanceof c || t7 instanceof l ? t7 : p5.isNode && p5.isStream(t7) ? new m5(e5, t7) : u.prepareContent(e5, t7, s5.binary, s5.optimizedBinaryString, s5.base64);
|
|
149984
|
+
var h6 = new d5(e5, o5, s5);
|
|
149985
|
+
this.files[e5] = h6;
|
|
149986
|
+
}
|
|
149987
|
+
var i5 = e("./utf8"), u = e("./utils"), l = e("./stream/GenericWorker"), a5 = e("./stream/StreamHelper"), f = e("./defaults"), c = e("./compressedObject"), d5 = e("./zipObject"), o = e("./generate"), p5 = e("./nodejsUtils"), m5 = e("./nodejs/NodejsStreamInputAdapter"), _5 = function(e5) {
|
|
149988
|
+
e5.slice(-1) === "/" && (e5 = e5.substring(0, e5.length - 1));
|
|
149989
|
+
var t7 = e5.lastIndexOf("/");
|
|
149990
|
+
return 0 < t7 ? e5.substring(0, t7) : "";
|
|
149991
|
+
}, g = function(e5) {
|
|
149992
|
+
return e5.slice(-1) !== "/" && (e5 += "/"), e5;
|
|
149993
|
+
}, b5 = function(e5, t7) {
|
|
149994
|
+
return t7 = t7 !== void 0 ? t7 : f.createFolders, e5 = g(e5), this.files[e5] || s.call(this, e5, null, { dir: true, createFolders: t7 }), this.files[e5];
|
|
149995
|
+
};
|
|
149996
|
+
function h5(e5) {
|
|
149997
|
+
return Object.prototype.toString.call(e5) === "[object RegExp]";
|
|
149998
|
+
}
|
|
149999
|
+
var n = { load: function() {
|
|
150000
|
+
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
150001
|
+
}, forEach: function(e5) {
|
|
150002
|
+
var t7, r6, n5;
|
|
150003
|
+
for (t7 in this.files)
|
|
150004
|
+
n5 = this.files[t7], (r6 = t7.slice(this.root.length, t7.length)) && t7.slice(0, this.root.length) === this.root && e5(r6, n5);
|
|
150005
|
+
}, filter: function(r6) {
|
|
150006
|
+
var n5 = [];
|
|
150007
|
+
return this.forEach(function(e5, t7) {
|
|
150008
|
+
r6(e5, t7) && n5.push(t7);
|
|
150009
|
+
}), n5;
|
|
150010
|
+
}, file: function(e5, t7, r6) {
|
|
150011
|
+
if (arguments.length !== 1)
|
|
150012
|
+
return e5 = this.root + e5, s.call(this, e5, t7, r6), this;
|
|
150013
|
+
if (h5(e5)) {
|
|
150014
|
+
var n5 = e5;
|
|
150015
|
+
return this.filter(function(e6, t8) {
|
|
150016
|
+
return !t8.dir && n5.test(e6);
|
|
150017
|
+
});
|
|
150018
|
+
}
|
|
150019
|
+
var i6 = this.files[this.root + e5];
|
|
150020
|
+
return i6 && !i6.dir ? i6 : null;
|
|
150021
|
+
}, folder: function(r6) {
|
|
150022
|
+
if (!r6)
|
|
150023
|
+
return this;
|
|
150024
|
+
if (h5(r6))
|
|
150025
|
+
return this.filter(function(e6, t8) {
|
|
150026
|
+
return t8.dir && r6.test(e6);
|
|
150027
|
+
});
|
|
150028
|
+
var e5 = this.root + r6, t7 = b5.call(this, e5), n5 = this.clone();
|
|
150029
|
+
return n5.root = t7.name, n5;
|
|
150030
|
+
}, remove: function(r6) {
|
|
150031
|
+
r6 = this.root + r6;
|
|
150032
|
+
var e5 = this.files[r6];
|
|
150033
|
+
if (e5 || (r6.slice(-1) !== "/" && (r6 += "/"), e5 = this.files[r6]), e5 && !e5.dir)
|
|
150034
|
+
delete this.files[r6];
|
|
150035
|
+
else
|
|
150036
|
+
for (var t7 = this.filter(function(e6, t8) {
|
|
150037
|
+
return t8.name.slice(0, r6.length) === r6;
|
|
150038
|
+
}), n5 = 0; n5 < t7.length; n5++)
|
|
150039
|
+
delete this.files[t7[n5].name];
|
|
150040
|
+
return this;
|
|
150041
|
+
}, generate: function() {
|
|
150042
|
+
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
150043
|
+
}, generateInternalStream: function(e5) {
|
|
150044
|
+
var t7, r6 = {};
|
|
150045
|
+
try {
|
|
150046
|
+
if ((r6 = u.extend(e5 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i5.utf8encode })).type = r6.type.toLowerCase(), r6.compression = r6.compression.toUpperCase(), r6.type === "binarystring" && (r6.type = "string"), !r6.type)
|
|
150047
|
+
throw new Error("No output type specified.");
|
|
150048
|
+
u.checkSupport(r6.type), r6.platform !== "darwin" && r6.platform !== "freebsd" && r6.platform !== "linux" && r6.platform !== "sunos" || (r6.platform = "UNIX"), r6.platform === "win32" && (r6.platform = "DOS");
|
|
150049
|
+
var n5 = r6.comment || this.comment || "";
|
|
150050
|
+
t7 = o.generateWorker(this, r6, n5);
|
|
150051
|
+
} catch (e6) {
|
|
150052
|
+
(t7 = new l("error")).error(e6);
|
|
150053
|
+
}
|
|
150054
|
+
return new a5(t7, r6.type || "string", r6.mimeType);
|
|
150055
|
+
}, generateAsync: function(e5, t7) {
|
|
150056
|
+
return this.generateInternalStream(e5).accumulate(t7);
|
|
150057
|
+
}, generateNodeStream: function(e5, t7) {
|
|
150058
|
+
return (e5 = e5 || {}).type || (e5.type = "nodebuffer"), this.generateInternalStream(e5).toNodejsStream(t7);
|
|
150059
|
+
} };
|
|
150060
|
+
t6.exports = n;
|
|
150061
|
+
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(e, t6, r5) {
|
|
150062
|
+
t6.exports = e("stream");
|
|
150063
|
+
}, { stream: void 0 }], 17: [function(e, t6, r5) {
|
|
150064
|
+
var n = e("./DataReader");
|
|
150065
|
+
function i5(e5) {
|
|
150066
|
+
n.call(this, e5);
|
|
150067
|
+
for (var t7 = 0; t7 < this.data.length; t7++)
|
|
150068
|
+
e5[t7] = 255 & e5[t7];
|
|
150069
|
+
}
|
|
150070
|
+
e("../utils").inherits(i5, n), i5.prototype.byteAt = function(e5) {
|
|
150071
|
+
return this.data[this.zero + e5];
|
|
150072
|
+
}, i5.prototype.lastIndexOfSignature = function(e5) {
|
|
150073
|
+
for (var t7 = e5.charCodeAt(0), r6 = e5.charCodeAt(1), n5 = e5.charCodeAt(2), i6 = e5.charCodeAt(3), s = this.length - 4; 0 <= s; --s)
|
|
150074
|
+
if (this.data[s] === t7 && this.data[s + 1] === r6 && this.data[s + 2] === n5 && this.data[s + 3] === i6)
|
|
150075
|
+
return s - this.zero;
|
|
150076
|
+
return -1;
|
|
150077
|
+
}, i5.prototype.readAndCheckSignature = function(e5) {
|
|
150078
|
+
var t7 = e5.charCodeAt(0), r6 = e5.charCodeAt(1), n5 = e5.charCodeAt(2), i6 = e5.charCodeAt(3), s = this.readData(4);
|
|
150079
|
+
return t7 === s[0] && r6 === s[1] && n5 === s[2] && i6 === s[3];
|
|
150080
|
+
}, i5.prototype.readData = function(e5) {
|
|
150081
|
+
if (this.checkOffset(e5), e5 === 0)
|
|
150082
|
+
return [];
|
|
150083
|
+
var t7 = this.data.slice(this.zero + this.index, this.zero + this.index + e5);
|
|
150084
|
+
return this.index += e5, t7;
|
|
150085
|
+
}, t6.exports = i5;
|
|
150086
|
+
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(e, t6, r5) {
|
|
150087
|
+
var n = e("../utils");
|
|
150088
|
+
function i5(e5) {
|
|
150089
|
+
this.data = e5, this.length = e5.length, this.index = 0, this.zero = 0;
|
|
150090
|
+
}
|
|
150091
|
+
i5.prototype = { checkOffset: function(e5) {
|
|
150092
|
+
this.checkIndex(this.index + e5);
|
|
150093
|
+
}, checkIndex: function(e5) {
|
|
150094
|
+
if (this.length < this.zero + e5 || e5 < 0)
|
|
150095
|
+
throw new Error("End of data reached (data length = " + this.length + ", asked index = " + e5 + "). Corrupted zip ?");
|
|
150096
|
+
}, setIndex: function(e5) {
|
|
150097
|
+
this.checkIndex(e5), this.index = e5;
|
|
150098
|
+
}, skip: function(e5) {
|
|
150099
|
+
this.setIndex(this.index + e5);
|
|
150100
|
+
}, byteAt: function() {
|
|
150101
|
+
}, readInt: function(e5) {
|
|
150102
|
+
var t7, r6 = 0;
|
|
150103
|
+
for (this.checkOffset(e5), t7 = this.index + e5 - 1; t7 >= this.index; t7--)
|
|
150104
|
+
r6 = (r6 << 8) + this.byteAt(t7);
|
|
150105
|
+
return this.index += e5, r6;
|
|
150106
|
+
}, readString: function(e5) {
|
|
150107
|
+
return n.transformTo("string", this.readData(e5));
|
|
150108
|
+
}, readData: function() {
|
|
150109
|
+
}, lastIndexOfSignature: function() {
|
|
150110
|
+
}, readAndCheckSignature: function() {
|
|
150111
|
+
}, readDate: function() {
|
|
150112
|
+
var e5 = this.readInt(4);
|
|
150113
|
+
return new Date(Date.UTC(1980 + (e5 >> 25 & 127), (e5 >> 21 & 15) - 1, e5 >> 16 & 31, e5 >> 11 & 31, e5 >> 5 & 63, (31 & e5) << 1));
|
|
150114
|
+
} }, t6.exports = i5;
|
|
150115
|
+
}, { "../utils": 32 }], 19: [function(e, t6, r5) {
|
|
150116
|
+
var n = e("./Uint8ArrayReader");
|
|
150117
|
+
function i5(e5) {
|
|
150118
|
+
n.call(this, e5);
|
|
150119
|
+
}
|
|
150120
|
+
e("../utils").inherits(i5, n), i5.prototype.readData = function(e5) {
|
|
150121
|
+
this.checkOffset(e5);
|
|
150122
|
+
var t7 = this.data.slice(this.zero + this.index, this.zero + this.index + e5);
|
|
150123
|
+
return this.index += e5, t7;
|
|
150124
|
+
}, t6.exports = i5;
|
|
150125
|
+
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(e, t6, r5) {
|
|
150126
|
+
var n = e("./DataReader");
|
|
150127
|
+
function i5(e5) {
|
|
150128
|
+
n.call(this, e5);
|
|
150129
|
+
}
|
|
150130
|
+
e("../utils").inherits(i5, n), i5.prototype.byteAt = function(e5) {
|
|
150131
|
+
return this.data.charCodeAt(this.zero + e5);
|
|
150132
|
+
}, i5.prototype.lastIndexOfSignature = function(e5) {
|
|
150133
|
+
return this.data.lastIndexOf(e5) - this.zero;
|
|
150134
|
+
}, i5.prototype.readAndCheckSignature = function(e5) {
|
|
150135
|
+
return e5 === this.readData(4);
|
|
150136
|
+
}, i5.prototype.readData = function(e5) {
|
|
150137
|
+
this.checkOffset(e5);
|
|
150138
|
+
var t7 = this.data.slice(this.zero + this.index, this.zero + this.index + e5);
|
|
150139
|
+
return this.index += e5, t7;
|
|
150140
|
+
}, t6.exports = i5;
|
|
150141
|
+
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(e, t6, r5) {
|
|
150142
|
+
var n = e("./ArrayReader");
|
|
150143
|
+
function i5(e5) {
|
|
150144
|
+
n.call(this, e5);
|
|
150145
|
+
}
|
|
150146
|
+
e("../utils").inherits(i5, n), i5.prototype.readData = function(e5) {
|
|
150147
|
+
if (this.checkOffset(e5), e5 === 0)
|
|
150148
|
+
return new Uint8Array(0);
|
|
150149
|
+
var t7 = this.data.subarray(this.zero + this.index, this.zero + this.index + e5);
|
|
150150
|
+
return this.index += e5, t7;
|
|
150151
|
+
}, t6.exports = i5;
|
|
150152
|
+
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e, t6, r5) {
|
|
150153
|
+
var n = e("../utils"), i5 = e("../support"), s = e("./ArrayReader"), a5 = e("./StringReader"), o = e("./NodeBufferReader"), h5 = e("./Uint8ArrayReader");
|
|
150154
|
+
t6.exports = function(e5) {
|
|
150155
|
+
var t7 = n.getTypeOf(e5);
|
|
150156
|
+
return n.checkSupport(t7), t7 !== "string" || i5.uint8array ? t7 === "nodebuffer" ? new o(e5) : i5.uint8array ? new h5(n.transformTo("uint8array", e5)) : new s(n.transformTo("array", e5)) : new a5(e5);
|
|
150157
|
+
};
|
|
150158
|
+
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e, t6, r5) {
|
|
150159
|
+
r5.LOCAL_FILE_HEADER = "PK", r5.CENTRAL_FILE_HEADER = "PK", r5.CENTRAL_DIRECTORY_END = "PK", r5.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", r5.ZIP64_CENTRAL_DIRECTORY_END = "PK", r5.DATA_DESCRIPTOR = "PK\x07\b";
|
|
150160
|
+
}, {}], 24: [function(e, t6, r5) {
|
|
150161
|
+
var n = e("./GenericWorker"), i5 = e("../utils");
|
|
150162
|
+
function s(e5) {
|
|
150163
|
+
n.call(this, "ConvertWorker to " + e5), this.destType = e5;
|
|
150164
|
+
}
|
|
150165
|
+
i5.inherits(s, n), s.prototype.processChunk = function(e5) {
|
|
150166
|
+
this.push({ data: i5.transformTo(this.destType, e5.data), meta: e5.meta });
|
|
150167
|
+
}, t6.exports = s;
|
|
150168
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(e, t6, r5) {
|
|
150169
|
+
var n = e("./GenericWorker"), i5 = e("../crc32");
|
|
150170
|
+
function s() {
|
|
150171
|
+
n.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
150172
|
+
}
|
|
150173
|
+
e("../utils").inherits(s, n), s.prototype.processChunk = function(e5) {
|
|
150174
|
+
this.streamInfo.crc32 = i5(e5.data, this.streamInfo.crc32 || 0), this.push(e5);
|
|
150175
|
+
}, t6.exports = s;
|
|
150176
|
+
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(e, t6, r5) {
|
|
150177
|
+
var n = e("../utils"), i5 = e("./GenericWorker");
|
|
150178
|
+
function s(e5) {
|
|
150179
|
+
i5.call(this, "DataLengthProbe for " + e5), this.propName = e5, this.withStreamInfo(e5, 0);
|
|
150180
|
+
}
|
|
150181
|
+
n.inherits(s, i5), s.prototype.processChunk = function(e5) {
|
|
150182
|
+
if (e5) {
|
|
150183
|
+
var t7 = this.streamInfo[this.propName] || 0;
|
|
150184
|
+
this.streamInfo[this.propName] = t7 + e5.data.length;
|
|
150185
|
+
}
|
|
150186
|
+
i5.prototype.processChunk.call(this, e5);
|
|
150187
|
+
}, t6.exports = s;
|
|
150188
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(e, t6, r5) {
|
|
150189
|
+
var n = e("../utils"), i5 = e("./GenericWorker");
|
|
150190
|
+
function s(e5) {
|
|
150191
|
+
i5.call(this, "DataWorker");
|
|
150192
|
+
var t7 = this;
|
|
150193
|
+
this.dataIsReady = false, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = false, e5.then(function(e6) {
|
|
150194
|
+
t7.dataIsReady = true, t7.data = e6, t7.max = e6 && e6.length || 0, t7.type = n.getTypeOf(e6), t7.isPaused || t7._tickAndRepeat();
|
|
150195
|
+
}, function(e6) {
|
|
150196
|
+
t7.error(e6);
|
|
150197
|
+
});
|
|
150198
|
+
}
|
|
150199
|
+
n.inherits(s, i5), s.prototype.cleanUp = function() {
|
|
150200
|
+
i5.prototype.cleanUp.call(this), this.data = null;
|
|
150201
|
+
}, s.prototype.resume = function() {
|
|
150202
|
+
return !!i5.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = true, n.delay(this._tickAndRepeat, [], this)), true);
|
|
150203
|
+
}, s.prototype._tickAndRepeat = function() {
|
|
150204
|
+
this._tickScheduled = false, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (n.delay(this._tickAndRepeat, [], this), this._tickScheduled = true));
|
|
150205
|
+
}, s.prototype._tick = function() {
|
|
150206
|
+
if (this.isPaused || this.isFinished)
|
|
150207
|
+
return false;
|
|
150208
|
+
var e5 = null, t7 = Math.min(this.max, this.index + 16384);
|
|
150209
|
+
if (this.index >= this.max)
|
|
150210
|
+
return this.end();
|
|
150211
|
+
switch (this.type) {
|
|
150212
|
+
case "string":
|
|
150213
|
+
e5 = this.data.substring(this.index, t7);
|
|
150214
|
+
break;
|
|
150215
|
+
case "uint8array":
|
|
150216
|
+
e5 = this.data.subarray(this.index, t7);
|
|
150217
|
+
break;
|
|
150218
|
+
case "array":
|
|
150219
|
+
case "nodebuffer":
|
|
150220
|
+
e5 = this.data.slice(this.index, t7);
|
|
150221
|
+
}
|
|
150222
|
+
return this.index = t7, this.push({ data: e5, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
150223
|
+
}, t6.exports = s;
|
|
150224
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(e, t6, r5) {
|
|
150225
|
+
function n(e5) {
|
|
150226
|
+
this.name = e5 || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = true, this.isFinished = false, this.isLocked = false, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
|
|
150227
|
+
}
|
|
150228
|
+
n.prototype = { push: function(e5) {
|
|
150229
|
+
this.emit("data", e5);
|
|
150230
|
+
}, end: function() {
|
|
150231
|
+
if (this.isFinished)
|
|
150232
|
+
return false;
|
|
150233
|
+
this.flush();
|
|
150234
|
+
try {
|
|
150235
|
+
this.emit("end"), this.cleanUp(), this.isFinished = true;
|
|
150236
|
+
} catch (e5) {
|
|
150237
|
+
this.emit("error", e5);
|
|
150238
|
+
}
|
|
150239
|
+
return true;
|
|
150240
|
+
}, error: function(e5) {
|
|
150241
|
+
return !this.isFinished && (this.isPaused ? this.generatedError = e5 : (this.isFinished = true, this.emit("error", e5), this.previous && this.previous.error(e5), this.cleanUp()), true);
|
|
150242
|
+
}, on: function(e5, t7) {
|
|
150243
|
+
return this._listeners[e5].push(t7), this;
|
|
150244
|
+
}, cleanUp: function() {
|
|
150245
|
+
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
150246
|
+
}, emit: function(e5, t7) {
|
|
150247
|
+
if (this._listeners[e5])
|
|
150248
|
+
for (var r6 = 0; r6 < this._listeners[e5].length; r6++)
|
|
150249
|
+
this._listeners[e5][r6].call(this, t7);
|
|
150250
|
+
}, pipe: function(e5) {
|
|
150251
|
+
return e5.registerPrevious(this);
|
|
150252
|
+
}, registerPrevious: function(e5) {
|
|
150253
|
+
if (this.isLocked)
|
|
150254
|
+
throw new Error("The stream '" + this + "' has already been used.");
|
|
150255
|
+
this.streamInfo = e5.streamInfo, this.mergeStreamInfo(), this.previous = e5;
|
|
150256
|
+
var t7 = this;
|
|
150257
|
+
return e5.on("data", function(e6) {
|
|
150258
|
+
t7.processChunk(e6);
|
|
150259
|
+
}), e5.on("end", function() {
|
|
150260
|
+
t7.end();
|
|
150261
|
+
}), e5.on("error", function(e6) {
|
|
150262
|
+
t7.error(e6);
|
|
150263
|
+
}), this;
|
|
150264
|
+
}, pause: function() {
|
|
150265
|
+
return !this.isPaused && !this.isFinished && (this.isPaused = true, this.previous && this.previous.pause(), true);
|
|
150266
|
+
}, resume: function() {
|
|
150267
|
+
if (!this.isPaused || this.isFinished)
|
|
150268
|
+
return false;
|
|
150269
|
+
var e5 = this.isPaused = false;
|
|
150270
|
+
return this.generatedError && (this.error(this.generatedError), e5 = true), this.previous && this.previous.resume(), !e5;
|
|
150271
|
+
}, flush: function() {
|
|
150272
|
+
}, processChunk: function(e5) {
|
|
150273
|
+
this.push(e5);
|
|
150274
|
+
}, withStreamInfo: function(e5, t7) {
|
|
150275
|
+
return this.extraStreamInfo[e5] = t7, this.mergeStreamInfo(), this;
|
|
150276
|
+
}, mergeStreamInfo: function() {
|
|
150277
|
+
for (var e5 in this.extraStreamInfo)
|
|
150278
|
+
Object.prototype.hasOwnProperty.call(this.extraStreamInfo, e5) && (this.streamInfo[e5] = this.extraStreamInfo[e5]);
|
|
150279
|
+
}, lock: function() {
|
|
150280
|
+
if (this.isLocked)
|
|
150281
|
+
throw new Error("The stream '" + this + "' has already been used.");
|
|
150282
|
+
this.isLocked = true, this.previous && this.previous.lock();
|
|
150283
|
+
}, toString: function() {
|
|
150284
|
+
var e5 = "Worker " + this.name;
|
|
150285
|
+
return this.previous ? this.previous + " -> " + e5 : e5;
|
|
150286
|
+
} }, t6.exports = n;
|
|
150287
|
+
}, {}], 29: [function(e, t6, r5) {
|
|
150288
|
+
var h5 = e("../utils"), i5 = e("./ConvertWorker"), s = e("./GenericWorker"), u = e("../base64"), n = e("../support"), a5 = e("../external"), o = null;
|
|
150289
|
+
if (n.nodestream)
|
|
150290
|
+
try {
|
|
150291
|
+
o = e("../nodejs/NodejsStreamOutputAdapter");
|
|
150292
|
+
} catch (e5) {
|
|
150293
|
+
}
|
|
150294
|
+
function l(e5, o5) {
|
|
150295
|
+
return new a5.Promise(function(t7, r6) {
|
|
150296
|
+
var n5 = [], i6 = e5._internalType, s5 = e5._outputType, a6 = e5._mimeType;
|
|
150297
|
+
e5.on("data", function(e6, t8) {
|
|
150298
|
+
n5.push(e6), o5 && o5(t8);
|
|
150299
|
+
}).on("error", function(e6) {
|
|
150300
|
+
n5 = [], r6(e6);
|
|
150301
|
+
}).on("end", function() {
|
|
150302
|
+
try {
|
|
150303
|
+
var e6 = function(e7, t8, r7) {
|
|
150304
|
+
switch (e7) {
|
|
150305
|
+
case "blob":
|
|
150306
|
+
return h5.newBlob(h5.transformTo("arraybuffer", t8), r7);
|
|
150307
|
+
case "base64":
|
|
150308
|
+
return u.encode(t8);
|
|
150309
|
+
default:
|
|
150310
|
+
return h5.transformTo(e7, t8);
|
|
150311
|
+
}
|
|
150312
|
+
}(s5, function(e7, t8) {
|
|
150313
|
+
var r7, n6 = 0, i7 = null, s6 = 0;
|
|
150314
|
+
for (r7 = 0; r7 < t8.length; r7++)
|
|
150315
|
+
s6 += t8[r7].length;
|
|
150316
|
+
switch (e7) {
|
|
150317
|
+
case "string":
|
|
150318
|
+
return t8.join("");
|
|
150319
|
+
case "array":
|
|
150320
|
+
return Array.prototype.concat.apply([], t8);
|
|
150321
|
+
case "uint8array":
|
|
150322
|
+
for (i7 = new Uint8Array(s6), r7 = 0; r7 < t8.length; r7++)
|
|
150323
|
+
i7.set(t8[r7], n6), n6 += t8[r7].length;
|
|
150324
|
+
return i7;
|
|
150325
|
+
case "nodebuffer":
|
|
150326
|
+
return Buffer.concat(t8);
|
|
150327
|
+
default:
|
|
150328
|
+
throw new Error("concat : unsupported type '" + e7 + "'");
|
|
150329
|
+
}
|
|
150330
|
+
}(i6, n5), a6);
|
|
150331
|
+
t7(e6);
|
|
150332
|
+
} catch (e7) {
|
|
150333
|
+
r6(e7);
|
|
150334
|
+
}
|
|
150335
|
+
n5 = [];
|
|
150336
|
+
}).resume();
|
|
150337
|
+
});
|
|
150338
|
+
}
|
|
150339
|
+
function f(e5, t7, r6) {
|
|
150340
|
+
var n5 = t7;
|
|
150341
|
+
switch (t7) {
|
|
150342
|
+
case "blob":
|
|
150343
|
+
case "arraybuffer":
|
|
150344
|
+
n5 = "uint8array";
|
|
150345
|
+
break;
|
|
150346
|
+
case "base64":
|
|
150347
|
+
n5 = "string";
|
|
150348
|
+
}
|
|
150349
|
+
try {
|
|
150350
|
+
this._internalType = n5, this._outputType = t7, this._mimeType = r6, h5.checkSupport(n5), this._worker = e5.pipe(new i5(n5)), e5.lock();
|
|
150351
|
+
} catch (e6) {
|
|
150352
|
+
this._worker = new s("error"), this._worker.error(e6);
|
|
150353
|
+
}
|
|
150354
|
+
}
|
|
150355
|
+
f.prototype = { accumulate: function(e5) {
|
|
150356
|
+
return l(this, e5);
|
|
150357
|
+
}, on: function(e5, t7) {
|
|
150358
|
+
var r6 = this;
|
|
150359
|
+
return e5 === "data" ? this._worker.on(e5, function(e6) {
|
|
150360
|
+
t7.call(r6, e6.data, e6.meta);
|
|
150361
|
+
}) : this._worker.on(e5, function() {
|
|
150362
|
+
h5.delay(t7, arguments, r6);
|
|
150363
|
+
}), this;
|
|
150364
|
+
}, resume: function() {
|
|
150365
|
+
return h5.delay(this._worker.resume, [], this._worker), this;
|
|
150366
|
+
}, pause: function() {
|
|
150367
|
+
return this._worker.pause(), this;
|
|
150368
|
+
}, toNodejsStream: function(e5) {
|
|
150369
|
+
if (h5.checkSupport("nodestream"), this._outputType !== "nodebuffer")
|
|
150370
|
+
throw new Error(this._outputType + " is not supported by this method");
|
|
150371
|
+
return new o(this, { objectMode: this._outputType !== "nodebuffer" }, e5);
|
|
150372
|
+
} }, t6.exports = f;
|
|
150373
|
+
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, t6, r5) {
|
|
150374
|
+
if (r5.base64 = true, r5.array = true, r5.string = true, r5.arraybuffer = typeof ArrayBuffer != "undefined" && typeof Uint8Array != "undefined", r5.nodebuffer = typeof Buffer != "undefined", r5.uint8array = typeof Uint8Array != "undefined", typeof ArrayBuffer == "undefined")
|
|
150375
|
+
r5.blob = false;
|
|
150376
|
+
else {
|
|
150377
|
+
var n = new ArrayBuffer(0);
|
|
150378
|
+
try {
|
|
150379
|
+
r5.blob = new Blob([n], { type: "application/zip" }).size === 0;
|
|
150380
|
+
} catch (e5) {
|
|
150381
|
+
try {
|
|
150382
|
+
var i5 = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
150383
|
+
i5.append(n), r5.blob = i5.getBlob("application/zip").size === 0;
|
|
150384
|
+
} catch (e6) {
|
|
150385
|
+
r5.blob = false;
|
|
150386
|
+
}
|
|
150387
|
+
}
|
|
150388
|
+
}
|
|
150389
|
+
try {
|
|
150390
|
+
r5.nodestream = !!e("readable-stream").Readable;
|
|
150391
|
+
} catch (e5) {
|
|
150392
|
+
r5.nodestream = false;
|
|
150393
|
+
}
|
|
150394
|
+
}, { "readable-stream": 16 }], 31: [function(e, t6, s) {
|
|
150395
|
+
for (var o = e("./utils"), h5 = e("./support"), r5 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u = new Array(256), i5 = 0; i5 < 256; i5++)
|
|
150396
|
+
u[i5] = 252 <= i5 ? 6 : 248 <= i5 ? 5 : 240 <= i5 ? 4 : 224 <= i5 ? 3 : 192 <= i5 ? 2 : 1;
|
|
150397
|
+
u[254] = u[254] = 1;
|
|
150398
|
+
function a5() {
|
|
150399
|
+
n.call(this, "utf-8 decode"), this.leftOver = null;
|
|
150400
|
+
}
|
|
150401
|
+
function l() {
|
|
150402
|
+
n.call(this, "utf-8 encode");
|
|
150403
|
+
}
|
|
150404
|
+
s.utf8encode = function(e5) {
|
|
150405
|
+
return h5.nodebuffer ? r5.newBufferFrom(e5, "utf-8") : function(e6) {
|
|
150406
|
+
var t7, r6, n5, i6, s5, a6 = e6.length, o5 = 0;
|
|
150407
|
+
for (i6 = 0; i6 < a6; i6++)
|
|
150408
|
+
(64512 & (r6 = e6.charCodeAt(i6))) == 55296 && i6 + 1 < a6 && (64512 & (n5 = e6.charCodeAt(i6 + 1))) == 56320 && (r6 = 65536 + (r6 - 55296 << 10) + (n5 - 56320), i6++), o5 += r6 < 128 ? 1 : r6 < 2048 ? 2 : r6 < 65536 ? 3 : 4;
|
|
150409
|
+
for (t7 = h5.uint8array ? new Uint8Array(o5) : new Array(o5), i6 = s5 = 0; s5 < o5; i6++)
|
|
150410
|
+
(64512 & (r6 = e6.charCodeAt(i6))) == 55296 && i6 + 1 < a6 && (64512 & (n5 = e6.charCodeAt(i6 + 1))) == 56320 && (r6 = 65536 + (r6 - 55296 << 10) + (n5 - 56320), i6++), r6 < 128 ? t7[s5++] = r6 : (r6 < 2048 ? t7[s5++] = 192 | r6 >>> 6 : (r6 < 65536 ? t7[s5++] = 224 | r6 >>> 12 : (t7[s5++] = 240 | r6 >>> 18, t7[s5++] = 128 | r6 >>> 12 & 63), t7[s5++] = 128 | r6 >>> 6 & 63), t7[s5++] = 128 | 63 & r6);
|
|
150411
|
+
return t7;
|
|
150412
|
+
}(e5);
|
|
150413
|
+
}, s.utf8decode = function(e5) {
|
|
150414
|
+
return h5.nodebuffer ? o.transformTo("nodebuffer", e5).toString("utf-8") : function(e6) {
|
|
150415
|
+
var t7, r6, n5, i6, s5 = e6.length, a6 = new Array(2 * s5);
|
|
150416
|
+
for (t7 = r6 = 0; t7 < s5; )
|
|
150417
|
+
if ((n5 = e6[t7++]) < 128)
|
|
150418
|
+
a6[r6++] = n5;
|
|
150419
|
+
else if (4 < (i6 = u[n5]))
|
|
150420
|
+
a6[r6++] = 65533, t7 += i6 - 1;
|
|
150421
|
+
else {
|
|
150422
|
+
for (n5 &= i6 === 2 ? 31 : i6 === 3 ? 15 : 7; 1 < i6 && t7 < s5; )
|
|
150423
|
+
n5 = n5 << 6 | 63 & e6[t7++], i6--;
|
|
150424
|
+
1 < i6 ? a6[r6++] = 65533 : n5 < 65536 ? a6[r6++] = n5 : (n5 -= 65536, a6[r6++] = 55296 | n5 >> 10 & 1023, a6[r6++] = 56320 | 1023 & n5);
|
|
150425
|
+
}
|
|
150426
|
+
return a6.length !== r6 && (a6.subarray ? a6 = a6.subarray(0, r6) : a6.length = r6), o.applyFromCharCode(a6);
|
|
150427
|
+
}(e5 = o.transformTo(h5.uint8array ? "uint8array" : "array", e5));
|
|
150428
|
+
}, o.inherits(a5, n), a5.prototype.processChunk = function(e5) {
|
|
150429
|
+
var t7 = o.transformTo(h5.uint8array ? "uint8array" : "array", e5.data);
|
|
150430
|
+
if (this.leftOver && this.leftOver.length) {
|
|
150431
|
+
if (h5.uint8array) {
|
|
150432
|
+
var r6 = t7;
|
|
150433
|
+
(t7 = new Uint8Array(r6.length + this.leftOver.length)).set(this.leftOver, 0), t7.set(r6, this.leftOver.length);
|
|
150434
|
+
} else
|
|
150435
|
+
t7 = this.leftOver.concat(t7);
|
|
150436
|
+
this.leftOver = null;
|
|
150437
|
+
}
|
|
150438
|
+
var n5 = function(e6, t8) {
|
|
150439
|
+
var r7;
|
|
150440
|
+
for ((t8 = t8 || e6.length) > e6.length && (t8 = e6.length), r7 = t8 - 1; 0 <= r7 && (192 & e6[r7]) == 128; )
|
|
150441
|
+
r7--;
|
|
150442
|
+
return r7 < 0 ? t8 : r7 === 0 ? t8 : r7 + u[e6[r7]] > t8 ? r7 : t8;
|
|
150443
|
+
}(t7), i6 = t7;
|
|
150444
|
+
n5 !== t7.length && (h5.uint8array ? (i6 = t7.subarray(0, n5), this.leftOver = t7.subarray(n5, t7.length)) : (i6 = t7.slice(0, n5), this.leftOver = t7.slice(n5, t7.length))), this.push({ data: s.utf8decode(i6), meta: e5.meta });
|
|
150445
|
+
}, a5.prototype.flush = function() {
|
|
150446
|
+
this.leftOver && this.leftOver.length && (this.push({ data: s.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
150447
|
+
}, s.Utf8DecodeWorker = a5, o.inherits(l, n), l.prototype.processChunk = function(e5) {
|
|
150448
|
+
this.push({ data: s.utf8encode(e5.data), meta: e5.meta });
|
|
150449
|
+
}, s.Utf8EncodeWorker = l;
|
|
150450
|
+
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, t6, a5) {
|
|
150451
|
+
var o = e("./support"), h5 = e("./base64"), r5 = e("./nodejsUtils"), u = e("./external");
|
|
150452
|
+
function n(e5) {
|
|
150453
|
+
return e5;
|
|
150454
|
+
}
|
|
150455
|
+
function l(e5, t7) {
|
|
150456
|
+
for (var r6 = 0; r6 < e5.length; ++r6)
|
|
150457
|
+
t7[r6] = 255 & e5.charCodeAt(r6);
|
|
150458
|
+
return t7;
|
|
150459
|
+
}
|
|
150460
|
+
e("setimmediate"), a5.newBlob = function(t7, r6) {
|
|
150461
|
+
a5.checkSupport("blob");
|
|
150462
|
+
try {
|
|
150463
|
+
return new Blob([t7], { type: r6 });
|
|
150464
|
+
} catch (e5) {
|
|
150465
|
+
try {
|
|
150466
|
+
var n5 = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
150467
|
+
return n5.append(t7), n5.getBlob(r6);
|
|
150468
|
+
} catch (e6) {
|
|
150469
|
+
throw new Error("Bug : can't construct the Blob.");
|
|
150470
|
+
}
|
|
150471
|
+
}
|
|
150472
|
+
};
|
|
150473
|
+
var i5 = { stringifyByChunk: function(e5, t7, r6) {
|
|
150474
|
+
var n5 = [], i6 = 0, s5 = e5.length;
|
|
150475
|
+
if (s5 <= r6)
|
|
150476
|
+
return String.fromCharCode.apply(null, e5);
|
|
150477
|
+
for (; i6 < s5; )
|
|
150478
|
+
t7 === "array" || t7 === "nodebuffer" ? n5.push(String.fromCharCode.apply(null, e5.slice(i6, Math.min(i6 + r6, s5)))) : n5.push(String.fromCharCode.apply(null, e5.subarray(i6, Math.min(i6 + r6, s5)))), i6 += r6;
|
|
150479
|
+
return n5.join("");
|
|
150480
|
+
}, stringifyByChar: function(e5) {
|
|
150481
|
+
for (var t7 = "", r6 = 0; r6 < e5.length; r6++)
|
|
150482
|
+
t7 += String.fromCharCode(e5[r6]);
|
|
150483
|
+
return t7;
|
|
150484
|
+
}, applyCanBeUsed: { uint8array: function() {
|
|
150485
|
+
try {
|
|
150486
|
+
return o.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
150487
|
+
} catch (e5) {
|
|
150488
|
+
return false;
|
|
150489
|
+
}
|
|
150490
|
+
}(), nodebuffer: function() {
|
|
150491
|
+
try {
|
|
150492
|
+
return o.nodebuffer && String.fromCharCode.apply(null, r5.allocBuffer(1)).length === 1;
|
|
150493
|
+
} catch (e5) {
|
|
150494
|
+
return false;
|
|
150495
|
+
}
|
|
150496
|
+
}() } };
|
|
150497
|
+
function s(e5) {
|
|
150498
|
+
var t7 = 65536, r6 = a5.getTypeOf(e5), n5 = true;
|
|
150499
|
+
if (r6 === "uint8array" ? n5 = i5.applyCanBeUsed.uint8array : r6 === "nodebuffer" && (n5 = i5.applyCanBeUsed.nodebuffer), n5)
|
|
150500
|
+
for (; 1 < t7; )
|
|
150501
|
+
try {
|
|
150502
|
+
return i5.stringifyByChunk(e5, r6, t7);
|
|
150503
|
+
} catch (e6) {
|
|
150504
|
+
t7 = Math.floor(t7 / 2);
|
|
150505
|
+
}
|
|
150506
|
+
return i5.stringifyByChar(e5);
|
|
150507
|
+
}
|
|
150508
|
+
function f(e5, t7) {
|
|
150509
|
+
for (var r6 = 0; r6 < e5.length; r6++)
|
|
150510
|
+
t7[r6] = e5[r6];
|
|
150511
|
+
return t7;
|
|
150512
|
+
}
|
|
150513
|
+
a5.applyFromCharCode = s;
|
|
150514
|
+
var c = {};
|
|
150515
|
+
c.string = { string: n, array: function(e5) {
|
|
150516
|
+
return l(e5, new Array(e5.length));
|
|
150517
|
+
}, arraybuffer: function(e5) {
|
|
150518
|
+
return c.string.uint8array(e5).buffer;
|
|
150519
|
+
}, uint8array: function(e5) {
|
|
150520
|
+
return l(e5, new Uint8Array(e5.length));
|
|
150521
|
+
}, nodebuffer: function(e5) {
|
|
150522
|
+
return l(e5, r5.allocBuffer(e5.length));
|
|
150523
|
+
} }, c.array = { string: s, array: n, arraybuffer: function(e5) {
|
|
150524
|
+
return new Uint8Array(e5).buffer;
|
|
150525
|
+
}, uint8array: function(e5) {
|
|
150526
|
+
return new Uint8Array(e5);
|
|
150527
|
+
}, nodebuffer: function(e5) {
|
|
150528
|
+
return r5.newBufferFrom(e5);
|
|
150529
|
+
} }, c.arraybuffer = { string: function(e5) {
|
|
150530
|
+
return s(new Uint8Array(e5));
|
|
150531
|
+
}, array: function(e5) {
|
|
150532
|
+
return f(new Uint8Array(e5), new Array(e5.byteLength));
|
|
150533
|
+
}, arraybuffer: n, uint8array: function(e5) {
|
|
150534
|
+
return new Uint8Array(e5);
|
|
150535
|
+
}, nodebuffer: function(e5) {
|
|
150536
|
+
return r5.newBufferFrom(new Uint8Array(e5));
|
|
150537
|
+
} }, c.uint8array = { string: s, array: function(e5) {
|
|
150538
|
+
return f(e5, new Array(e5.length));
|
|
150539
|
+
}, arraybuffer: function(e5) {
|
|
150540
|
+
return e5.buffer;
|
|
150541
|
+
}, uint8array: n, nodebuffer: function(e5) {
|
|
150542
|
+
return r5.newBufferFrom(e5);
|
|
150543
|
+
} }, c.nodebuffer = { string: s, array: function(e5) {
|
|
150544
|
+
return f(e5, new Array(e5.length));
|
|
150545
|
+
}, arraybuffer: function(e5) {
|
|
150546
|
+
return c.nodebuffer.uint8array(e5).buffer;
|
|
150547
|
+
}, uint8array: function(e5) {
|
|
150548
|
+
return f(e5, new Uint8Array(e5.length));
|
|
150549
|
+
}, nodebuffer: n }, a5.transformTo = function(e5, t7) {
|
|
150550
|
+
if (t7 = t7 || "", !e5)
|
|
150551
|
+
return t7;
|
|
150552
|
+
a5.checkSupport(e5);
|
|
150553
|
+
var r6 = a5.getTypeOf(t7);
|
|
150554
|
+
return c[r6][e5](t7);
|
|
150555
|
+
}, a5.resolve = function(e5) {
|
|
150556
|
+
for (var t7 = e5.split("/"), r6 = [], n5 = 0; n5 < t7.length; n5++) {
|
|
150557
|
+
var i6 = t7[n5];
|
|
150558
|
+
i6 === "." || i6 === "" && n5 !== 0 && n5 !== t7.length - 1 || (i6 === ".." ? r6.pop() : r6.push(i6));
|
|
150559
|
+
}
|
|
150560
|
+
return r6.join("/");
|
|
150561
|
+
}, a5.getTypeOf = function(e5) {
|
|
150562
|
+
return typeof e5 == "string" ? "string" : Object.prototype.toString.call(e5) === "[object Array]" ? "array" : o.nodebuffer && r5.isBuffer(e5) ? "nodebuffer" : o.uint8array && e5 instanceof Uint8Array ? "uint8array" : o.arraybuffer && e5 instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
150563
|
+
}, a5.checkSupport = function(e5) {
|
|
150564
|
+
if (!o[e5.toLowerCase()])
|
|
150565
|
+
throw new Error(e5 + " is not supported by this platform");
|
|
150566
|
+
}, a5.MAX_VALUE_16BITS = 65535, a5.MAX_VALUE_32BITS = -1, a5.pretty = function(e5) {
|
|
150567
|
+
var t7, r6, n5 = "";
|
|
150568
|
+
for (r6 = 0; r6 < (e5 || "").length; r6++)
|
|
150569
|
+
n5 += "\\x" + ((t7 = e5.charCodeAt(r6)) < 16 ? "0" : "") + t7.toString(16).toUpperCase();
|
|
150570
|
+
return n5;
|
|
150571
|
+
}, a5.delay = function(e5, t7, r6) {
|
|
150572
|
+
setImmediate(function() {
|
|
150573
|
+
e5.apply(r6 || null, t7 || []);
|
|
150574
|
+
});
|
|
150575
|
+
}, a5.inherits = function(e5, t7) {
|
|
150576
|
+
function r6() {
|
|
150577
|
+
}
|
|
150578
|
+
r6.prototype = t7.prototype, e5.prototype = new r6();
|
|
150579
|
+
}, a5.extend = function() {
|
|
150580
|
+
var e5, t7, r6 = {};
|
|
150581
|
+
for (e5 = 0; e5 < arguments.length; e5++)
|
|
150582
|
+
for (t7 in arguments[e5])
|
|
150583
|
+
Object.prototype.hasOwnProperty.call(arguments[e5], t7) && r6[t7] === void 0 && (r6[t7] = arguments[e5][t7]);
|
|
150584
|
+
return r6;
|
|
150585
|
+
}, a5.prepareContent = function(r6, e5, n5, i6, s5) {
|
|
150586
|
+
return u.Promise.resolve(e5).then(function(n6) {
|
|
150587
|
+
return o.blob && (n6 instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n6)) !== -1) && typeof FileReader != "undefined" ? new u.Promise(function(t7, r7) {
|
|
150588
|
+
var e6 = new FileReader();
|
|
150589
|
+
e6.onload = function(e7) {
|
|
150590
|
+
t7(e7.target.result);
|
|
150591
|
+
}, e6.onerror = function(e7) {
|
|
150592
|
+
r7(e7.target.error);
|
|
150593
|
+
}, e6.readAsArrayBuffer(n6);
|
|
150594
|
+
}) : n6;
|
|
150595
|
+
}).then(function(e6) {
|
|
150596
|
+
var t7 = a5.getTypeOf(e6);
|
|
150597
|
+
return t7 ? (t7 === "arraybuffer" ? e6 = a5.transformTo("uint8array", e6) : t7 === "string" && (s5 ? e6 = h5.decode(e6) : n5 && i6 !== true && (e6 = function(e7) {
|
|
150598
|
+
return l(e7, o.uint8array ? new Uint8Array(e7.length) : new Array(e7.length));
|
|
150599
|
+
}(e6))), e6) : u.Promise.reject(new Error("Can't read the data of '" + r6 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
150600
|
+
});
|
|
150601
|
+
};
|
|
150602
|
+
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, t6, r5) {
|
|
150603
|
+
var n = e("./reader/readerFor"), i5 = e("./utils"), s = e("./signature"), a5 = e("./zipEntry"), o = e("./support");
|
|
150604
|
+
function h5(e5) {
|
|
150605
|
+
this.files = [], this.loadOptions = e5;
|
|
150606
|
+
}
|
|
150607
|
+
h5.prototype = { checkSignature: function(e5) {
|
|
150608
|
+
if (!this.reader.readAndCheckSignature(e5)) {
|
|
150609
|
+
this.reader.index -= 4;
|
|
150610
|
+
var t7 = this.reader.readString(4);
|
|
150611
|
+
throw new Error("Corrupted zip or bug: unexpected signature (" + i5.pretty(t7) + ", expected " + i5.pretty(e5) + ")");
|
|
150612
|
+
}
|
|
150613
|
+
}, isSignature: function(e5, t7) {
|
|
150614
|
+
var r6 = this.reader.index;
|
|
150615
|
+
this.reader.setIndex(e5);
|
|
150616
|
+
var n5 = this.reader.readString(4) === t7;
|
|
150617
|
+
return this.reader.setIndex(r6), n5;
|
|
150618
|
+
}, readBlockEndOfCentral: function() {
|
|
150619
|
+
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);
|
|
150620
|
+
var e5 = this.reader.readData(this.zipCommentLength), t7 = o.uint8array ? "uint8array" : "array", r6 = i5.transformTo(t7, e5);
|
|
150621
|
+
this.zipComment = this.loadOptions.decodeFileName(r6);
|
|
150622
|
+
}, readBlockZip64EndOfCentral: function() {
|
|
150623
|
+
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 = {};
|
|
150624
|
+
for (var e5, t7, r6, n5 = this.zip64EndOfCentralSize - 44; 0 < n5; )
|
|
150625
|
+
e5 = this.reader.readInt(2), t7 = this.reader.readInt(4), r6 = this.reader.readData(t7), this.zip64ExtensibleData[e5] = { id: e5, length: t7, value: r6 };
|
|
150626
|
+
}, readBlockZip64EndOfCentralLocator: function() {
|
|
150627
|
+
if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount)
|
|
150628
|
+
throw new Error("Multi-volumes zip are not supported");
|
|
150629
|
+
}, readLocalFiles: function() {
|
|
150630
|
+
var e5, t7;
|
|
150631
|
+
for (e5 = 0; e5 < this.files.length; e5++)
|
|
150632
|
+
t7 = this.files[e5], this.reader.setIndex(t7.localHeaderOffset), this.checkSignature(s.LOCAL_FILE_HEADER), t7.readLocalPart(this.reader), t7.handleUTF8(), t7.processAttributes();
|
|
150633
|
+
}, readCentralDir: function() {
|
|
150634
|
+
var e5;
|
|
150635
|
+
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER); )
|
|
150636
|
+
(e5 = new a5({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(e5);
|
|
150637
|
+
if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0)
|
|
150638
|
+
throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
150639
|
+
}, readEndOfCentral: function() {
|
|
150640
|
+
var e5 = this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);
|
|
150641
|
+
if (e5 < 0)
|
|
150642
|
+
throw !this.isSignature(0, s.LOCAL_FILE_HEADER) ? new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html") : new Error("Corrupted zip: can't find end of central directory");
|
|
150643
|
+
this.reader.setIndex(e5);
|
|
150644
|
+
var t7 = e5;
|
|
150645
|
+
if (this.checkSignature(s.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === i5.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i5.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i5.MAX_VALUE_16BITS || this.centralDirRecords === i5.MAX_VALUE_16BITS || this.centralDirSize === i5.MAX_VALUE_32BITS || this.centralDirOffset === i5.MAX_VALUE_32BITS) {
|
|
150646
|
+
if (this.zip64 = true, (e5 = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0)
|
|
150647
|
+
throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
|
|
150648
|
+
if (this.reader.setIndex(e5), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, s.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0))
|
|
150649
|
+
throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
|
|
150650
|
+
this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
|
|
150651
|
+
}
|
|
150652
|
+
var r6 = this.centralDirOffset + this.centralDirSize;
|
|
150653
|
+
this.zip64 && (r6 += 20, r6 += 12 + this.zip64EndOfCentralSize);
|
|
150654
|
+
var n5 = t7 - r6;
|
|
150655
|
+
if (0 < n5)
|
|
150656
|
+
this.isSignature(t7, s.CENTRAL_FILE_HEADER) || (this.reader.zero = n5);
|
|
150657
|
+
else if (n5 < 0)
|
|
150658
|
+
throw new Error("Corrupted zip: missing " + Math.abs(n5) + " bytes.");
|
|
150659
|
+
}, prepareReader: function(e5) {
|
|
150660
|
+
this.reader = n(e5);
|
|
150661
|
+
}, load: function(e5) {
|
|
150662
|
+
this.prepareReader(e5), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
150663
|
+
} }, t6.exports = h5;
|
|
150664
|
+
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, t6, r5) {
|
|
150665
|
+
var n = e("./reader/readerFor"), s = e("./utils"), i5 = e("./compressedObject"), a5 = e("./crc32"), o = e("./utf8"), h5 = e("./compressions"), u = e("./support");
|
|
150666
|
+
function l(e5, t7) {
|
|
150667
|
+
this.options = e5, this.loadOptions = t7;
|
|
150668
|
+
}
|
|
150669
|
+
l.prototype = { isEncrypted: function() {
|
|
150670
|
+
return (1 & this.bitFlag) == 1;
|
|
150671
|
+
}, useUTF8: function() {
|
|
150672
|
+
return (2048 & this.bitFlag) == 2048;
|
|
150673
|
+
}, readLocalPart: function(e5) {
|
|
150674
|
+
var t7, r6;
|
|
150675
|
+
if (e5.skip(22), this.fileNameLength = e5.readInt(2), r6 = e5.readInt(2), this.fileName = e5.readData(this.fileNameLength), e5.skip(r6), this.compressedSize === -1 || this.uncompressedSize === -1)
|
|
150676
|
+
throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
150677
|
+
if ((t7 = function(e6) {
|
|
150678
|
+
for (var t8 in h5)
|
|
150679
|
+
if (Object.prototype.hasOwnProperty.call(h5, t8) && h5[t8].magic === e6)
|
|
150680
|
+
return h5[t8];
|
|
150681
|
+
return null;
|
|
150682
|
+
}(this.compressionMethod)) === null)
|
|
150683
|
+
throw new Error("Corrupted zip : compression " + s.pretty(this.compressionMethod) + " unknown (inner file : " + s.transformTo("string", this.fileName) + ")");
|
|
150684
|
+
this.decompressed = new i5(this.compressedSize, this.uncompressedSize, this.crc32, t7, e5.readData(this.compressedSize));
|
|
150685
|
+
}, readCentralPart: function(e5) {
|
|
150686
|
+
this.versionMadeBy = e5.readInt(2), e5.skip(2), this.bitFlag = e5.readInt(2), this.compressionMethod = e5.readString(2), this.date = e5.readDate(), this.crc32 = e5.readInt(4), this.compressedSize = e5.readInt(4), this.uncompressedSize = e5.readInt(4);
|
|
150687
|
+
var t7 = e5.readInt(2);
|
|
150688
|
+
if (this.extraFieldsLength = e5.readInt(2), this.fileCommentLength = e5.readInt(2), this.diskNumberStart = e5.readInt(2), this.internalFileAttributes = e5.readInt(2), this.externalFileAttributes = e5.readInt(4), this.localHeaderOffset = e5.readInt(4), this.isEncrypted())
|
|
150689
|
+
throw new Error("Encrypted zip are not supported");
|
|
150690
|
+
e5.skip(t7), this.readExtraFields(e5), this.parseZIP64ExtraField(e5), this.fileComment = e5.readData(this.fileCommentLength);
|
|
150691
|
+
}, processAttributes: function() {
|
|
150692
|
+
this.unixPermissions = null, this.dosPermissions = null;
|
|
150693
|
+
var e5 = this.versionMadeBy >> 8;
|
|
150694
|
+
this.dir = !!(16 & this.externalFileAttributes), e5 == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), e5 == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = true);
|
|
150695
|
+
}, parseZIP64ExtraField: function() {
|
|
150696
|
+
if (this.extraFields[1]) {
|
|
150697
|
+
var e5 = n(this.extraFields[1].value);
|
|
150698
|
+
this.uncompressedSize === s.MAX_VALUE_32BITS && (this.uncompressedSize = e5.readInt(8)), this.compressedSize === s.MAX_VALUE_32BITS && (this.compressedSize = e5.readInt(8)), this.localHeaderOffset === s.MAX_VALUE_32BITS && (this.localHeaderOffset = e5.readInt(8)), this.diskNumberStart === s.MAX_VALUE_32BITS && (this.diskNumberStart = e5.readInt(4));
|
|
150699
|
+
}
|
|
150700
|
+
}, readExtraFields: function(e5) {
|
|
150701
|
+
var t7, r6, n5, i6 = e5.index + this.extraFieldsLength;
|
|
150702
|
+
for (this.extraFields || (this.extraFields = {}); e5.index + 4 < i6; )
|
|
150703
|
+
t7 = e5.readInt(2), r6 = e5.readInt(2), n5 = e5.readData(r6), this.extraFields[t7] = { id: t7, length: r6, value: n5 };
|
|
150704
|
+
e5.setIndex(i6);
|
|
150705
|
+
}, handleUTF8: function() {
|
|
150706
|
+
var e5 = u.uint8array ? "uint8array" : "array";
|
|
150707
|
+
if (this.useUTF8())
|
|
150708
|
+
this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment);
|
|
150709
|
+
else {
|
|
150710
|
+
var t7 = this.findExtraFieldUnicodePath();
|
|
150711
|
+
if (t7 !== null)
|
|
150712
|
+
this.fileNameStr = t7;
|
|
150713
|
+
else {
|
|
150714
|
+
var r6 = s.transformTo(e5, this.fileName);
|
|
150715
|
+
this.fileNameStr = this.loadOptions.decodeFileName(r6);
|
|
150716
|
+
}
|
|
150717
|
+
var n5 = this.findExtraFieldUnicodeComment();
|
|
150718
|
+
if (n5 !== null)
|
|
150719
|
+
this.fileCommentStr = n5;
|
|
150720
|
+
else {
|
|
150721
|
+
var i6 = s.transformTo(e5, this.fileComment);
|
|
150722
|
+
this.fileCommentStr = this.loadOptions.decodeFileName(i6);
|
|
150723
|
+
}
|
|
150724
|
+
}
|
|
150725
|
+
}, findExtraFieldUnicodePath: function() {
|
|
150726
|
+
var e5 = this.extraFields[28789];
|
|
150727
|
+
if (e5) {
|
|
150728
|
+
var t7 = n(e5.value);
|
|
150729
|
+
return t7.readInt(1) !== 1 ? null : a5(this.fileName) !== t7.readInt(4) ? null : o.utf8decode(t7.readData(e5.length - 5));
|
|
150730
|
+
}
|
|
150731
|
+
return null;
|
|
150732
|
+
}, findExtraFieldUnicodeComment: function() {
|
|
150733
|
+
var e5 = this.extraFields[25461];
|
|
150734
|
+
if (e5) {
|
|
150735
|
+
var t7 = n(e5.value);
|
|
150736
|
+
return t7.readInt(1) !== 1 ? null : a5(this.fileComment) !== t7.readInt(4) ? null : o.utf8decode(t7.readData(e5.length - 5));
|
|
150737
|
+
}
|
|
150738
|
+
return null;
|
|
150739
|
+
} }, t6.exports = l;
|
|
150740
|
+
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, t6, r5) {
|
|
150741
|
+
function n(e5, t7, r6) {
|
|
150742
|
+
this.name = e5, this.dir = r6.dir, this.date = r6.date, this.comment = r6.comment, this.unixPermissions = r6.unixPermissions, this.dosPermissions = r6.dosPermissions, this._data = t7, this._dataBinary = r6.binary, this.options = { compression: r6.compression, compressionOptions: r6.compressionOptions };
|
|
150743
|
+
}
|
|
150744
|
+
var s = e("./stream/StreamHelper"), i5 = e("./stream/DataWorker"), a5 = e("./utf8"), o = e("./compressedObject"), h5 = e("./stream/GenericWorker");
|
|
150745
|
+
n.prototype = { internalStream: function(e5) {
|
|
150746
|
+
var t7 = null, r6 = "string";
|
|
150747
|
+
try {
|
|
150748
|
+
if (!e5)
|
|
150749
|
+
throw new Error("No output type specified.");
|
|
150750
|
+
var n5 = (r6 = e5.toLowerCase()) === "string" || r6 === "text";
|
|
150751
|
+
r6 !== "binarystring" && r6 !== "text" || (r6 = "string"), t7 = this._decompressWorker();
|
|
150752
|
+
var i6 = !this._dataBinary;
|
|
150753
|
+
i6 && !n5 && (t7 = t7.pipe(new a5.Utf8EncodeWorker())), !i6 && n5 && (t7 = t7.pipe(new a5.Utf8DecodeWorker()));
|
|
150754
|
+
} catch (e6) {
|
|
150755
|
+
(t7 = new h5("error")).error(e6);
|
|
150756
|
+
}
|
|
150757
|
+
return new s(t7, r6, "");
|
|
150758
|
+
}, async: function(e5, t7) {
|
|
150759
|
+
return this.internalStream(e5).accumulate(t7);
|
|
150760
|
+
}, nodeStream: function(e5, t7) {
|
|
150761
|
+
return this.internalStream(e5 || "nodebuffer").toNodejsStream(t7);
|
|
150762
|
+
}, _compressWorker: function(e5, t7) {
|
|
150763
|
+
if (this._data instanceof o && this._data.compression.magic === e5.magic)
|
|
150764
|
+
return this._data.getCompressedWorker();
|
|
150765
|
+
var r6 = this._decompressWorker();
|
|
150766
|
+
return this._dataBinary || (r6 = r6.pipe(new a5.Utf8EncodeWorker())), o.createWorkerFrom(r6, e5, t7);
|
|
150767
|
+
}, _decompressWorker: function() {
|
|
150768
|
+
return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h5 ? this._data : new i5(this._data);
|
|
150769
|
+
} };
|
|
150770
|
+
for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l = function() {
|
|
150771
|
+
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
150772
|
+
}, f = 0; f < u.length; f++)
|
|
150773
|
+
n.prototype[u[f]] = l;
|
|
150774
|
+
t6.exports = n;
|
|
150775
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l, t6) {
|
|
150776
|
+
(function(t7) {
|
|
150777
|
+
var r5, n, e5 = t7.MutationObserver || t7.WebKitMutationObserver;
|
|
150778
|
+
if (e5) {
|
|
150779
|
+
var i5 = 0, s = new e5(u), a5 = t7.document.createTextNode("");
|
|
150780
|
+
s.observe(a5, { characterData: true }), r5 = function() {
|
|
150781
|
+
a5.data = i5 = ++i5 % 2;
|
|
150782
|
+
};
|
|
150783
|
+
} else if (t7.setImmediate || t7.MessageChannel === void 0)
|
|
150784
|
+
r5 = "document" in t7 && "onreadystatechange" in t7.document.createElement("script") ? function() {
|
|
150785
|
+
var e6 = t7.document.createElement("script");
|
|
150786
|
+
e6.onreadystatechange = function() {
|
|
150787
|
+
u(), e6.onreadystatechange = null, e6.parentNode.removeChild(e6), e6 = null;
|
|
150788
|
+
}, t7.document.documentElement.appendChild(e6);
|
|
150789
|
+
} : function() {
|
|
150790
|
+
setTimeout(u, 0);
|
|
150791
|
+
};
|
|
150792
|
+
else {
|
|
150793
|
+
var o = new t7.MessageChannel();
|
|
150794
|
+
o.port1.onmessage = u, r5 = function() {
|
|
150795
|
+
o.port2.postMessage(0);
|
|
150796
|
+
};
|
|
150797
|
+
}
|
|
150798
|
+
var h5 = [];
|
|
150799
|
+
function u() {
|
|
150800
|
+
var e6, t8;
|
|
150801
|
+
n = true;
|
|
150802
|
+
for (var r6 = h5.length; r6; ) {
|
|
150803
|
+
for (t8 = h5, h5 = [], e6 = -1; ++e6 < r6; )
|
|
150804
|
+
t8[e6]();
|
|
150805
|
+
r6 = h5.length;
|
|
150806
|
+
}
|
|
150807
|
+
n = false;
|
|
150808
|
+
}
|
|
150809
|
+
l.exports = function(e6) {
|
|
150810
|
+
h5.push(e6) !== 1 || n || r5();
|
|
150811
|
+
};
|
|
150812
|
+
}).call(this, typeof commonjsGlobal != "undefined" ? commonjsGlobal : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
|
|
150813
|
+
}, {}], 37: [function(e, t6, r5) {
|
|
150814
|
+
var i5 = e("immediate");
|
|
150815
|
+
function u() {
|
|
150816
|
+
}
|
|
150817
|
+
var l = {}, s = ["REJECTED"], a5 = ["FULFILLED"], n = ["PENDING"];
|
|
150818
|
+
function o(e5) {
|
|
150819
|
+
if (typeof e5 != "function")
|
|
150820
|
+
throw new TypeError("resolver must be a function");
|
|
150821
|
+
this.state = n, this.queue = [], this.outcome = void 0, e5 !== u && d5(this, e5);
|
|
150822
|
+
}
|
|
150823
|
+
function h5(e5, t7, r6) {
|
|
150824
|
+
this.promise = e5, typeof t7 == "function" && (this.onFulfilled = t7, this.callFulfilled = this.otherCallFulfilled), typeof r6 == "function" && (this.onRejected = r6, this.callRejected = this.otherCallRejected);
|
|
150825
|
+
}
|
|
150826
|
+
function f(t7, r6, n5) {
|
|
150827
|
+
i5(function() {
|
|
150828
|
+
var e5;
|
|
150829
|
+
try {
|
|
150830
|
+
e5 = r6(n5);
|
|
150831
|
+
} catch (e6) {
|
|
150832
|
+
return l.reject(t7, e6);
|
|
150833
|
+
}
|
|
150834
|
+
e5 === t7 ? l.reject(t7, new TypeError("Cannot resolve promise with itself")) : l.resolve(t7, e5);
|
|
150835
|
+
});
|
|
150836
|
+
}
|
|
150837
|
+
function c(e5) {
|
|
150838
|
+
var t7 = e5 && e5.then;
|
|
150839
|
+
if (e5 && (typeof e5 == "object" || typeof e5 == "function") && typeof t7 == "function")
|
|
150840
|
+
return function() {
|
|
150841
|
+
t7.apply(e5, arguments);
|
|
150842
|
+
};
|
|
150843
|
+
}
|
|
150844
|
+
function d5(t7, e5) {
|
|
150845
|
+
var r6 = false;
|
|
150846
|
+
function n5(e6) {
|
|
150847
|
+
r6 || (r6 = true, l.reject(t7, e6));
|
|
150848
|
+
}
|
|
150849
|
+
function i6(e6) {
|
|
150850
|
+
r6 || (r6 = true, l.resolve(t7, e6));
|
|
150851
|
+
}
|
|
150852
|
+
var s5 = p5(function() {
|
|
150853
|
+
e5(i6, n5);
|
|
150854
|
+
});
|
|
150855
|
+
s5.status === "error" && n5(s5.value);
|
|
150856
|
+
}
|
|
150857
|
+
function p5(e5, t7) {
|
|
150858
|
+
var r6 = {};
|
|
150859
|
+
try {
|
|
150860
|
+
r6.value = e5(t7), r6.status = "success";
|
|
150861
|
+
} catch (e6) {
|
|
150862
|
+
r6.status = "error", r6.value = e6;
|
|
150863
|
+
}
|
|
150864
|
+
return r6;
|
|
150865
|
+
}
|
|
150866
|
+
(t6.exports = o).prototype.finally = function(t7) {
|
|
150867
|
+
if (typeof t7 != "function")
|
|
150868
|
+
return this;
|
|
150869
|
+
var r6 = this.constructor;
|
|
150870
|
+
return this.then(function(e5) {
|
|
150871
|
+
return r6.resolve(t7()).then(function() {
|
|
150872
|
+
return e5;
|
|
150873
|
+
});
|
|
150874
|
+
}, function(e5) {
|
|
150875
|
+
return r6.resolve(t7()).then(function() {
|
|
150876
|
+
throw e5;
|
|
150877
|
+
});
|
|
150878
|
+
});
|
|
150879
|
+
}, o.prototype.catch = function(e5) {
|
|
150880
|
+
return this.then(null, e5);
|
|
150881
|
+
}, o.prototype.then = function(e5, t7) {
|
|
150882
|
+
if (typeof e5 != "function" && this.state === a5 || typeof t7 != "function" && this.state === s)
|
|
150883
|
+
return this;
|
|
150884
|
+
var r6 = new this.constructor(u);
|
|
150885
|
+
this.state !== n ? f(r6, this.state === a5 ? e5 : t7, this.outcome) : this.queue.push(new h5(r6, e5, t7));
|
|
150886
|
+
return r6;
|
|
150887
|
+
}, h5.prototype.callFulfilled = function(e5) {
|
|
150888
|
+
l.resolve(this.promise, e5);
|
|
150889
|
+
}, h5.prototype.otherCallFulfilled = function(e5) {
|
|
150890
|
+
f(this.promise, this.onFulfilled, e5);
|
|
150891
|
+
}, h5.prototype.callRejected = function(e5) {
|
|
150892
|
+
l.reject(this.promise, e5);
|
|
150893
|
+
}, h5.prototype.otherCallRejected = function(e5) {
|
|
150894
|
+
f(this.promise, this.onRejected, e5);
|
|
150895
|
+
}, l.resolve = function(e5, t7) {
|
|
150896
|
+
var r6 = p5(c, t7);
|
|
150897
|
+
if (r6.status === "error")
|
|
150898
|
+
return l.reject(e5, r6.value);
|
|
150899
|
+
var n5 = r6.value;
|
|
150900
|
+
if (n5)
|
|
150901
|
+
d5(e5, n5);
|
|
150902
|
+
else {
|
|
150903
|
+
e5.state = a5, e5.outcome = t7;
|
|
150904
|
+
for (var i6 = -1, s5 = e5.queue.length; ++i6 < s5; )
|
|
150905
|
+
e5.queue[i6].callFulfilled(t7);
|
|
150906
|
+
}
|
|
150907
|
+
return e5;
|
|
150908
|
+
}, l.reject = function(e5, t7) {
|
|
150909
|
+
e5.state = s, e5.outcome = t7;
|
|
150910
|
+
for (var r6 = -1, n5 = e5.queue.length; ++r6 < n5; )
|
|
150911
|
+
e5.queue[r6].callRejected(t7);
|
|
150912
|
+
return e5;
|
|
150913
|
+
}, o.resolve = function(e5) {
|
|
150914
|
+
if (e5 instanceof this)
|
|
150915
|
+
return e5;
|
|
150916
|
+
return l.resolve(new this(u), e5);
|
|
150917
|
+
}, o.reject = function(e5) {
|
|
150918
|
+
var t7 = new this(u);
|
|
150919
|
+
return l.reject(t7, e5);
|
|
150920
|
+
}, o.all = function(e5) {
|
|
150921
|
+
var r6 = this;
|
|
150922
|
+
if (Object.prototype.toString.call(e5) !== "[object Array]")
|
|
150923
|
+
return this.reject(new TypeError("must be an array"));
|
|
150924
|
+
var n5 = e5.length, i6 = false;
|
|
150925
|
+
if (!n5)
|
|
150926
|
+
return this.resolve([]);
|
|
150927
|
+
var s5 = new Array(n5), a6 = 0, t7 = -1, o5 = new this(u);
|
|
150928
|
+
for (; ++t7 < n5; )
|
|
150929
|
+
h6(e5[t7], t7);
|
|
150930
|
+
return o5;
|
|
150931
|
+
function h6(e6, t8) {
|
|
150932
|
+
r6.resolve(e6).then(function(e7) {
|
|
150933
|
+
s5[t8] = e7, ++a6 !== n5 || i6 || (i6 = true, l.resolve(o5, s5));
|
|
150934
|
+
}, function(e7) {
|
|
150935
|
+
i6 || (i6 = true, l.reject(o5, e7));
|
|
150936
|
+
});
|
|
150937
|
+
}
|
|
150938
|
+
}, o.race = function(e5) {
|
|
150939
|
+
var t7 = this;
|
|
150940
|
+
if (Object.prototype.toString.call(e5) !== "[object Array]")
|
|
150941
|
+
return this.reject(new TypeError("must be an array"));
|
|
150942
|
+
var r6 = e5.length, n5 = false;
|
|
150943
|
+
if (!r6)
|
|
150944
|
+
return this.resolve([]);
|
|
150945
|
+
var i6 = -1, s5 = new this(u);
|
|
150946
|
+
for (; ++i6 < r6; )
|
|
150947
|
+
a6 = e5[i6], t7.resolve(a6).then(function(e6) {
|
|
150948
|
+
n5 || (n5 = true, l.resolve(s5, e6));
|
|
150949
|
+
}, function(e6) {
|
|
150950
|
+
n5 || (n5 = true, l.reject(s5, e6));
|
|
150951
|
+
});
|
|
150952
|
+
var a6;
|
|
150953
|
+
return s5;
|
|
150954
|
+
};
|
|
150955
|
+
}, { immediate: 36 }], 38: [function(e, t6, r5) {
|
|
150956
|
+
var n = {};
|
|
150957
|
+
(0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t6.exports = n;
|
|
150958
|
+
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, t6, r5) {
|
|
150959
|
+
var a5 = e("./zlib/deflate"), o = e("./utils/common"), h5 = e("./utils/strings"), i5 = e("./zlib/messages"), s = e("./zlib/zstream"), u = Object.prototype.toString, l = 0, f = -1, c = 0, d5 = 8;
|
|
150960
|
+
function p5(e5) {
|
|
150961
|
+
if (!(this instanceof p5))
|
|
150962
|
+
return new p5(e5);
|
|
150963
|
+
this.options = o.assign({ level: f, method: d5, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c, to: "" }, e5 || {});
|
|
150964
|
+
var t7 = this.options;
|
|
150965
|
+
t7.raw && 0 < t7.windowBits ? t7.windowBits = -t7.windowBits : t7.gzip && 0 < t7.windowBits && t7.windowBits < 16 && (t7.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new s(), this.strm.avail_out = 0;
|
|
150966
|
+
var r6 = a5.deflateInit2(this.strm, t7.level, t7.method, t7.windowBits, t7.memLevel, t7.strategy);
|
|
150967
|
+
if (r6 !== l)
|
|
150968
|
+
throw new Error(i5[r6]);
|
|
150969
|
+
if (t7.header && a5.deflateSetHeader(this.strm, t7.header), t7.dictionary) {
|
|
150970
|
+
var n5;
|
|
150971
|
+
if (n5 = typeof t7.dictionary == "string" ? h5.string2buf(t7.dictionary) : u.call(t7.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(t7.dictionary) : t7.dictionary, (r6 = a5.deflateSetDictionary(this.strm, n5)) !== l)
|
|
150972
|
+
throw new Error(i5[r6]);
|
|
150973
|
+
this._dict_set = true;
|
|
150974
|
+
}
|
|
150975
|
+
}
|
|
150976
|
+
function n(e5, t7) {
|
|
150977
|
+
var r6 = new p5(t7);
|
|
150978
|
+
if (r6.push(e5, true), r6.err)
|
|
150979
|
+
throw r6.msg || i5[r6.err];
|
|
150980
|
+
return r6.result;
|
|
150981
|
+
}
|
|
150982
|
+
p5.prototype.push = function(e5, t7) {
|
|
150983
|
+
var r6, n5, i6 = this.strm, s5 = this.options.chunkSize;
|
|
150984
|
+
if (this.ended)
|
|
150985
|
+
return false;
|
|
150986
|
+
n5 = t7 === ~~t7 ? t7 : t7 === true ? 4 : 0, typeof e5 == "string" ? i6.input = h5.string2buf(e5) : u.call(e5) === "[object ArrayBuffer]" ? i6.input = new Uint8Array(e5) : i6.input = e5, i6.next_in = 0, i6.avail_in = i6.input.length;
|
|
150987
|
+
do {
|
|
150988
|
+
if (i6.avail_out === 0 && (i6.output = new o.Buf8(s5), i6.next_out = 0, i6.avail_out = s5), (r6 = a5.deflate(i6, n5)) !== 1 && r6 !== l)
|
|
150989
|
+
return this.onEnd(r6), !(this.ended = true);
|
|
150990
|
+
i6.avail_out !== 0 && (i6.avail_in !== 0 || n5 !== 4 && n5 !== 2) || (this.options.to === "string" ? this.onData(h5.buf2binstring(o.shrinkBuf(i6.output, i6.next_out))) : this.onData(o.shrinkBuf(i6.output, i6.next_out)));
|
|
150991
|
+
} while ((0 < i6.avail_in || i6.avail_out === 0) && r6 !== 1);
|
|
150992
|
+
return n5 === 4 ? (r6 = a5.deflateEnd(this.strm), this.onEnd(r6), this.ended = true, r6 === l) : n5 !== 2 || (this.onEnd(l), !(i6.avail_out = 0));
|
|
150993
|
+
}, p5.prototype.onData = function(e5) {
|
|
150994
|
+
this.chunks.push(e5);
|
|
150995
|
+
}, p5.prototype.onEnd = function(e5) {
|
|
150996
|
+
e5 === l && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e5, this.msg = this.strm.msg;
|
|
150997
|
+
}, r5.Deflate = p5, r5.deflate = n, r5.deflateRaw = function(e5, t7) {
|
|
150998
|
+
return (t7 = t7 || {}).raw = true, n(e5, t7);
|
|
150999
|
+
}, r5.gzip = function(e5, t7) {
|
|
151000
|
+
return (t7 = t7 || {}).gzip = true, n(e5, t7);
|
|
151001
|
+
};
|
|
151002
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e, t6, r5) {
|
|
151003
|
+
var c = e("./zlib/inflate"), d5 = e("./utils/common"), p5 = e("./utils/strings"), m5 = e("./zlib/constants"), n = e("./zlib/messages"), i5 = e("./zlib/zstream"), s = e("./zlib/gzheader"), _5 = Object.prototype.toString;
|
|
151004
|
+
function a5(e5) {
|
|
151005
|
+
if (!(this instanceof a5))
|
|
151006
|
+
return new a5(e5);
|
|
151007
|
+
this.options = d5.assign({ chunkSize: 16384, windowBits: 0, to: "" }, e5 || {});
|
|
151008
|
+
var t7 = this.options;
|
|
151009
|
+
t7.raw && 0 <= t7.windowBits && t7.windowBits < 16 && (t7.windowBits = -t7.windowBits, t7.windowBits === 0 && (t7.windowBits = -15)), !(0 <= t7.windowBits && t7.windowBits < 16) || e5 && e5.windowBits || (t7.windowBits += 32), 15 < t7.windowBits && t7.windowBits < 48 && (15 & t7.windowBits) == 0 && (t7.windowBits |= 15), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new i5(), this.strm.avail_out = 0;
|
|
151010
|
+
var r6 = c.inflateInit2(this.strm, t7.windowBits);
|
|
151011
|
+
if (r6 !== m5.Z_OK)
|
|
151012
|
+
throw new Error(n[r6]);
|
|
151013
|
+
this.header = new s(), c.inflateGetHeader(this.strm, this.header);
|
|
151014
|
+
}
|
|
151015
|
+
function o(e5, t7) {
|
|
151016
|
+
var r6 = new a5(t7);
|
|
151017
|
+
if (r6.push(e5, true), r6.err)
|
|
151018
|
+
throw r6.msg || n[r6.err];
|
|
151019
|
+
return r6.result;
|
|
151020
|
+
}
|
|
151021
|
+
a5.prototype.push = function(e5, t7) {
|
|
151022
|
+
var r6, n5, i6, s5, a6, o5, h5 = this.strm, u = this.options.chunkSize, l = this.options.dictionary, f = false;
|
|
151023
|
+
if (this.ended)
|
|
151024
|
+
return false;
|
|
151025
|
+
n5 = t7 === ~~t7 ? t7 : t7 === true ? m5.Z_FINISH : m5.Z_NO_FLUSH, typeof e5 == "string" ? h5.input = p5.binstring2buf(e5) : _5.call(e5) === "[object ArrayBuffer]" ? h5.input = new Uint8Array(e5) : h5.input = e5, h5.next_in = 0, h5.avail_in = h5.input.length;
|
|
151026
|
+
do {
|
|
151027
|
+
if (h5.avail_out === 0 && (h5.output = new d5.Buf8(u), h5.next_out = 0, h5.avail_out = u), (r6 = c.inflate(h5, m5.Z_NO_FLUSH)) === m5.Z_NEED_DICT && l && (o5 = typeof l == "string" ? p5.string2buf(l) : _5.call(l) === "[object ArrayBuffer]" ? new Uint8Array(l) : l, r6 = c.inflateSetDictionary(this.strm, o5)), r6 === m5.Z_BUF_ERROR && f === true && (r6 = m5.Z_OK, f = false), r6 !== m5.Z_STREAM_END && r6 !== m5.Z_OK)
|
|
151028
|
+
return this.onEnd(r6), !(this.ended = true);
|
|
151029
|
+
h5.next_out && (h5.avail_out !== 0 && r6 !== m5.Z_STREAM_END && (h5.avail_in !== 0 || n5 !== m5.Z_FINISH && n5 !== m5.Z_SYNC_FLUSH) || (this.options.to === "string" ? (i6 = p5.utf8border(h5.output, h5.next_out), s5 = h5.next_out - i6, a6 = p5.buf2string(h5.output, i6), h5.next_out = s5, h5.avail_out = u - s5, s5 && d5.arraySet(h5.output, h5.output, i6, s5, 0), this.onData(a6)) : this.onData(d5.shrinkBuf(h5.output, h5.next_out)))), h5.avail_in === 0 && h5.avail_out === 0 && (f = true);
|
|
151030
|
+
} while ((0 < h5.avail_in || h5.avail_out === 0) && r6 !== m5.Z_STREAM_END);
|
|
151031
|
+
return r6 === m5.Z_STREAM_END && (n5 = m5.Z_FINISH), n5 === m5.Z_FINISH ? (r6 = c.inflateEnd(this.strm), this.onEnd(r6), this.ended = true, r6 === m5.Z_OK) : n5 !== m5.Z_SYNC_FLUSH || (this.onEnd(m5.Z_OK), !(h5.avail_out = 0));
|
|
151032
|
+
}, a5.prototype.onData = function(e5) {
|
|
151033
|
+
this.chunks.push(e5);
|
|
151034
|
+
}, a5.prototype.onEnd = function(e5) {
|
|
151035
|
+
e5 === m5.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = d5.flattenChunks(this.chunks)), this.chunks = [], this.err = e5, this.msg = this.strm.msg;
|
|
151036
|
+
}, r5.Inflate = a5, r5.inflate = o, r5.inflateRaw = function(e5, t7) {
|
|
151037
|
+
return (t7 = t7 || {}).raw = true, o(e5, t7);
|
|
151038
|
+
}, r5.ungzip = o;
|
|
151039
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(e, t6, r5) {
|
|
151040
|
+
var n = typeof Uint8Array != "undefined" && typeof Uint16Array != "undefined" && typeof Int32Array != "undefined";
|
|
151041
|
+
r5.assign = function(e5) {
|
|
151042
|
+
for (var t7 = Array.prototype.slice.call(arguments, 1); t7.length; ) {
|
|
151043
|
+
var r6 = t7.shift();
|
|
151044
|
+
if (r6) {
|
|
151045
|
+
if (typeof r6 != "object")
|
|
151046
|
+
throw new TypeError(r6 + "must be non-object");
|
|
151047
|
+
for (var n5 in r6)
|
|
151048
|
+
r6.hasOwnProperty(n5) && (e5[n5] = r6[n5]);
|
|
151049
|
+
}
|
|
151050
|
+
}
|
|
151051
|
+
return e5;
|
|
151052
|
+
}, r5.shrinkBuf = function(e5, t7) {
|
|
151053
|
+
return e5.length === t7 ? e5 : e5.subarray ? e5.subarray(0, t7) : (e5.length = t7, e5);
|
|
151054
|
+
};
|
|
151055
|
+
var i5 = { arraySet: function(e5, t7, r6, n5, i6) {
|
|
151056
|
+
if (t7.subarray && e5.subarray)
|
|
151057
|
+
e5.set(t7.subarray(r6, r6 + n5), i6);
|
|
151058
|
+
else
|
|
151059
|
+
for (var s5 = 0; s5 < n5; s5++)
|
|
151060
|
+
e5[i6 + s5] = t7[r6 + s5];
|
|
151061
|
+
}, flattenChunks: function(e5) {
|
|
151062
|
+
var t7, r6, n5, i6, s5, a5;
|
|
151063
|
+
for (t7 = n5 = 0, r6 = e5.length; t7 < r6; t7++)
|
|
151064
|
+
n5 += e5[t7].length;
|
|
151065
|
+
for (a5 = new Uint8Array(n5), t7 = i6 = 0, r6 = e5.length; t7 < r6; t7++)
|
|
151066
|
+
s5 = e5[t7], a5.set(s5, i6), i6 += s5.length;
|
|
151067
|
+
return a5;
|
|
151068
|
+
} }, s = { arraySet: function(e5, t7, r6, n5, i6) {
|
|
151069
|
+
for (var s5 = 0; s5 < n5; s5++)
|
|
151070
|
+
e5[i6 + s5] = t7[r6 + s5];
|
|
151071
|
+
}, flattenChunks: function(e5) {
|
|
151072
|
+
return [].concat.apply([], e5);
|
|
151073
|
+
} };
|
|
151074
|
+
r5.setTyped = function(e5) {
|
|
151075
|
+
e5 ? (r5.Buf8 = Uint8Array, r5.Buf16 = Uint16Array, r5.Buf32 = Int32Array, r5.assign(r5, i5)) : (r5.Buf8 = Array, r5.Buf16 = Array, r5.Buf32 = Array, r5.assign(r5, s));
|
|
151076
|
+
}, r5.setTyped(n);
|
|
151077
|
+
}, {}], 42: [function(e, t6, r5) {
|
|
151078
|
+
var h5 = e("./common"), i5 = true, s = true;
|
|
151079
|
+
try {
|
|
151080
|
+
String.fromCharCode.apply(null, [0]);
|
|
151081
|
+
} catch (e5) {
|
|
151082
|
+
i5 = false;
|
|
151083
|
+
}
|
|
151084
|
+
try {
|
|
151085
|
+
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
151086
|
+
} catch (e5) {
|
|
151087
|
+
s = false;
|
|
151088
|
+
}
|
|
151089
|
+
for (var u = new h5.Buf8(256), n = 0; n < 256; n++)
|
|
151090
|
+
u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
|
|
151091
|
+
function l(e5, t7) {
|
|
151092
|
+
if (t7 < 65537 && (e5.subarray && s || !e5.subarray && i5))
|
|
151093
|
+
return String.fromCharCode.apply(null, h5.shrinkBuf(e5, t7));
|
|
151094
|
+
for (var r6 = "", n5 = 0; n5 < t7; n5++)
|
|
151095
|
+
r6 += String.fromCharCode(e5[n5]);
|
|
151096
|
+
return r6;
|
|
151097
|
+
}
|
|
151098
|
+
u[254] = u[254] = 1, r5.string2buf = function(e5) {
|
|
151099
|
+
var t7, r6, n5, i6, s5, a5 = e5.length, o = 0;
|
|
151100
|
+
for (i6 = 0; i6 < a5; i6++)
|
|
151101
|
+
(64512 & (r6 = e5.charCodeAt(i6))) == 55296 && i6 + 1 < a5 && (64512 & (n5 = e5.charCodeAt(i6 + 1))) == 56320 && (r6 = 65536 + (r6 - 55296 << 10) + (n5 - 56320), i6++), o += r6 < 128 ? 1 : r6 < 2048 ? 2 : r6 < 65536 ? 3 : 4;
|
|
151102
|
+
for (t7 = new h5.Buf8(o), i6 = s5 = 0; s5 < o; i6++)
|
|
151103
|
+
(64512 & (r6 = e5.charCodeAt(i6))) == 55296 && i6 + 1 < a5 && (64512 & (n5 = e5.charCodeAt(i6 + 1))) == 56320 && (r6 = 65536 + (r6 - 55296 << 10) + (n5 - 56320), i6++), r6 < 128 ? t7[s5++] = r6 : (r6 < 2048 ? t7[s5++] = 192 | r6 >>> 6 : (r6 < 65536 ? t7[s5++] = 224 | r6 >>> 12 : (t7[s5++] = 240 | r6 >>> 18, t7[s5++] = 128 | r6 >>> 12 & 63), t7[s5++] = 128 | r6 >>> 6 & 63), t7[s5++] = 128 | 63 & r6);
|
|
151104
|
+
return t7;
|
|
151105
|
+
}, r5.buf2binstring = function(e5) {
|
|
151106
|
+
return l(e5, e5.length);
|
|
151107
|
+
}, r5.binstring2buf = function(e5) {
|
|
151108
|
+
for (var t7 = new h5.Buf8(e5.length), r6 = 0, n5 = t7.length; r6 < n5; r6++)
|
|
151109
|
+
t7[r6] = e5.charCodeAt(r6);
|
|
151110
|
+
return t7;
|
|
151111
|
+
}, r5.buf2string = function(e5, t7) {
|
|
151112
|
+
var r6, n5, i6, s5, a5 = t7 || e5.length, o = new Array(2 * a5);
|
|
151113
|
+
for (r6 = n5 = 0; r6 < a5; )
|
|
151114
|
+
if ((i6 = e5[r6++]) < 128)
|
|
151115
|
+
o[n5++] = i6;
|
|
151116
|
+
else if (4 < (s5 = u[i6]))
|
|
151117
|
+
o[n5++] = 65533, r6 += s5 - 1;
|
|
151118
|
+
else {
|
|
151119
|
+
for (i6 &= s5 === 2 ? 31 : s5 === 3 ? 15 : 7; 1 < s5 && r6 < a5; )
|
|
151120
|
+
i6 = i6 << 6 | 63 & e5[r6++], s5--;
|
|
151121
|
+
1 < s5 ? o[n5++] = 65533 : i6 < 65536 ? o[n5++] = i6 : (i6 -= 65536, o[n5++] = 55296 | i6 >> 10 & 1023, o[n5++] = 56320 | 1023 & i6);
|
|
151122
|
+
}
|
|
151123
|
+
return l(o, n5);
|
|
151124
|
+
}, r5.utf8border = function(e5, t7) {
|
|
151125
|
+
var r6;
|
|
151126
|
+
for ((t7 = t7 || e5.length) > e5.length && (t7 = e5.length), r6 = t7 - 1; 0 <= r6 && (192 & e5[r6]) == 128; )
|
|
151127
|
+
r6--;
|
|
151128
|
+
return r6 < 0 ? t7 : r6 === 0 ? t7 : r6 + u[e5[r6]] > t7 ? r6 : t7;
|
|
151129
|
+
};
|
|
151130
|
+
}, { "./common": 41 }], 43: [function(e, t6, r5) {
|
|
151131
|
+
t6.exports = function(e5, t7, r6, n) {
|
|
151132
|
+
for (var i5 = 65535 & e5 | 0, s = e5 >>> 16 & 65535 | 0, a5 = 0; r6 !== 0; ) {
|
|
151133
|
+
for (r6 -= a5 = 2e3 < r6 ? 2e3 : r6; s = s + (i5 = i5 + t7[n++] | 0) | 0, --a5; )
|
|
151134
|
+
;
|
|
151135
|
+
i5 %= 65521, s %= 65521;
|
|
151136
|
+
}
|
|
151137
|
+
return i5 | s << 16 | 0;
|
|
151138
|
+
};
|
|
151139
|
+
}, {}], 44: [function(e, t6, r5) {
|
|
151140
|
+
t6.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
|
|
151141
|
+
}, {}], 45: [function(e, t6, r5) {
|
|
151142
|
+
var o = function() {
|
|
151143
|
+
for (var e5, t7 = [], r6 = 0; r6 < 256; r6++) {
|
|
151144
|
+
e5 = r6;
|
|
151145
|
+
for (var n = 0; n < 8; n++)
|
|
151146
|
+
e5 = 1 & e5 ? 3988292384 ^ e5 >>> 1 : e5 >>> 1;
|
|
151147
|
+
t7[r6] = e5;
|
|
151148
|
+
}
|
|
151149
|
+
return t7;
|
|
151150
|
+
}();
|
|
151151
|
+
t6.exports = function(e5, t7, r6, n) {
|
|
151152
|
+
var i5 = o, s = n + r6;
|
|
151153
|
+
e5 ^= -1;
|
|
151154
|
+
for (var a5 = n; a5 < s; a5++)
|
|
151155
|
+
e5 = e5 >>> 8 ^ i5[255 & (e5 ^ t7[a5])];
|
|
151156
|
+
return -1 ^ e5;
|
|
151157
|
+
};
|
|
151158
|
+
}, {}], 46: [function(e, t6, r5) {
|
|
151159
|
+
var h5, c = e("../utils/common"), u = e("./trees"), d5 = e("./adler32"), p5 = e("./crc32"), n = e("./messages"), l = 0, f = 4, m5 = 0, _5 = -2, g = -1, b5 = 4, i5 = 2, v = 8, y = 9, s = 286, a5 = 30, o = 19, w = 2 * s + 1, k = 15, x = 3, S = 258, z = S + x + 1, C5 = 42, E = 113, A = 1, I = 2, O = 3, B = 4;
|
|
151160
|
+
function R(e5, t7) {
|
|
151161
|
+
return e5.msg = n[t7], t7;
|
|
151162
|
+
}
|
|
151163
|
+
function T5(e5) {
|
|
151164
|
+
return (e5 << 1) - (4 < e5 ? 9 : 0);
|
|
151165
|
+
}
|
|
151166
|
+
function D5(e5) {
|
|
151167
|
+
for (var t7 = e5.length; 0 <= --t7; )
|
|
151168
|
+
e5[t7] = 0;
|
|
151169
|
+
}
|
|
151170
|
+
function F5(e5) {
|
|
151171
|
+
var t7 = e5.state, r6 = t7.pending;
|
|
151172
|
+
r6 > e5.avail_out && (r6 = e5.avail_out), r6 !== 0 && (c.arraySet(e5.output, t7.pending_buf, t7.pending_out, r6, e5.next_out), e5.next_out += r6, t7.pending_out += r6, e5.total_out += r6, e5.avail_out -= r6, t7.pending -= r6, t7.pending === 0 && (t7.pending_out = 0));
|
|
151173
|
+
}
|
|
151174
|
+
function N5(e5, t7) {
|
|
151175
|
+
u._tr_flush_block(e5, 0 <= e5.block_start ? e5.block_start : -1, e5.strstart - e5.block_start, t7), e5.block_start = e5.strstart, F5(e5.strm);
|
|
151176
|
+
}
|
|
151177
|
+
function U(e5, t7) {
|
|
151178
|
+
e5.pending_buf[e5.pending++] = t7;
|
|
151179
|
+
}
|
|
151180
|
+
function P5(e5, t7) {
|
|
151181
|
+
e5.pending_buf[e5.pending++] = t7 >>> 8 & 255, e5.pending_buf[e5.pending++] = 255 & t7;
|
|
151182
|
+
}
|
|
151183
|
+
function L5(e5, t7) {
|
|
151184
|
+
var r6, n5, i6 = e5.max_chain_length, s5 = e5.strstart, a6 = e5.prev_length, o5 = e5.nice_match, h6 = e5.strstart > e5.w_size - z ? e5.strstart - (e5.w_size - z) : 0, u5 = e5.window, l5 = e5.w_mask, f5 = e5.prev, c5 = e5.strstart + S, d6 = u5[s5 + a6 - 1], p6 = u5[s5 + a6];
|
|
151185
|
+
e5.prev_length >= e5.good_match && (i6 >>= 2), o5 > e5.lookahead && (o5 = e5.lookahead);
|
|
151186
|
+
do {
|
|
151187
|
+
if (u5[(r6 = t7) + a6] === p6 && u5[r6 + a6 - 1] === d6 && u5[r6] === u5[s5] && u5[++r6] === u5[s5 + 1]) {
|
|
151188
|
+
s5 += 2, r6++;
|
|
151189
|
+
do {
|
|
151190
|
+
} while (u5[++s5] === u5[++r6] && u5[++s5] === u5[++r6] && u5[++s5] === u5[++r6] && u5[++s5] === u5[++r6] && u5[++s5] === u5[++r6] && u5[++s5] === u5[++r6] && u5[++s5] === u5[++r6] && u5[++s5] === u5[++r6] && s5 < c5);
|
|
151191
|
+
if (n5 = S - (c5 - s5), s5 = c5 - S, a6 < n5) {
|
|
151192
|
+
if (e5.match_start = t7, o5 <= (a6 = n5))
|
|
151193
|
+
break;
|
|
151194
|
+
d6 = u5[s5 + a6 - 1], p6 = u5[s5 + a6];
|
|
151195
|
+
}
|
|
151196
|
+
}
|
|
151197
|
+
} while ((t7 = f5[t7 & l5]) > h6 && --i6 != 0);
|
|
151198
|
+
return a6 <= e5.lookahead ? a6 : e5.lookahead;
|
|
151199
|
+
}
|
|
151200
|
+
function j5(e5) {
|
|
151201
|
+
var t7, r6, n5, i6, s5, a6, o5, h6, u5, l5, f5 = e5.w_size;
|
|
151202
|
+
do {
|
|
151203
|
+
if (i6 = e5.window_size - e5.lookahead - e5.strstart, e5.strstart >= f5 + (f5 - z)) {
|
|
151204
|
+
for (c.arraySet(e5.window, e5.window, f5, f5, 0), e5.match_start -= f5, e5.strstart -= f5, e5.block_start -= f5, t7 = r6 = e5.hash_size; n5 = e5.head[--t7], e5.head[t7] = f5 <= n5 ? n5 - f5 : 0, --r6; )
|
|
151205
|
+
;
|
|
151206
|
+
for (t7 = r6 = f5; n5 = e5.prev[--t7], e5.prev[t7] = f5 <= n5 ? n5 - f5 : 0, --r6; )
|
|
151207
|
+
;
|
|
151208
|
+
i6 += f5;
|
|
151209
|
+
}
|
|
151210
|
+
if (e5.strm.avail_in === 0)
|
|
151211
|
+
break;
|
|
151212
|
+
if (a6 = e5.strm, o5 = e5.window, h6 = e5.strstart + e5.lookahead, u5 = i6, l5 = void 0, l5 = a6.avail_in, u5 < l5 && (l5 = u5), r6 = l5 === 0 ? 0 : (a6.avail_in -= l5, c.arraySet(o5, a6.input, a6.next_in, l5, h6), a6.state.wrap === 1 ? a6.adler = d5(a6.adler, o5, l5, h6) : a6.state.wrap === 2 && (a6.adler = p5(a6.adler, o5, l5, h6)), a6.next_in += l5, a6.total_in += l5, l5), e5.lookahead += r6, e5.lookahead + e5.insert >= x)
|
|
151213
|
+
for (s5 = e5.strstart - e5.insert, e5.ins_h = e5.window[s5], e5.ins_h = (e5.ins_h << e5.hash_shift ^ e5.window[s5 + 1]) & e5.hash_mask; e5.insert && (e5.ins_h = (e5.ins_h << e5.hash_shift ^ e5.window[s5 + x - 1]) & e5.hash_mask, e5.prev[s5 & e5.w_mask] = e5.head[e5.ins_h], e5.head[e5.ins_h] = s5, s5++, e5.insert--, !(e5.lookahead + e5.insert < x)); )
|
|
151214
|
+
;
|
|
151215
|
+
} while (e5.lookahead < z && e5.strm.avail_in !== 0);
|
|
151216
|
+
}
|
|
151217
|
+
function Z5(e5, t7) {
|
|
151218
|
+
for (var r6, n5; ; ) {
|
|
151219
|
+
if (e5.lookahead < z) {
|
|
151220
|
+
if (j5(e5), e5.lookahead < z && t7 === l)
|
|
151221
|
+
return A;
|
|
151222
|
+
if (e5.lookahead === 0)
|
|
151223
|
+
break;
|
|
151224
|
+
}
|
|
151225
|
+
if (r6 = 0, e5.lookahead >= x && (e5.ins_h = (e5.ins_h << e5.hash_shift ^ e5.window[e5.strstart + x - 1]) & e5.hash_mask, r6 = e5.prev[e5.strstart & e5.w_mask] = e5.head[e5.ins_h], e5.head[e5.ins_h] = e5.strstart), r6 !== 0 && e5.strstart - r6 <= e5.w_size - z && (e5.match_length = L5(e5, r6)), e5.match_length >= x)
|
|
151226
|
+
if (n5 = u._tr_tally(e5, e5.strstart - e5.match_start, e5.match_length - x), e5.lookahead -= e5.match_length, e5.match_length <= e5.max_lazy_match && e5.lookahead >= x) {
|
|
151227
|
+
for (e5.match_length--; e5.strstart++, e5.ins_h = (e5.ins_h << e5.hash_shift ^ e5.window[e5.strstart + x - 1]) & e5.hash_mask, r6 = e5.prev[e5.strstart & e5.w_mask] = e5.head[e5.ins_h], e5.head[e5.ins_h] = e5.strstart, --e5.match_length != 0; )
|
|
151228
|
+
;
|
|
151229
|
+
e5.strstart++;
|
|
151230
|
+
} else
|
|
151231
|
+
e5.strstart += e5.match_length, e5.match_length = 0, e5.ins_h = e5.window[e5.strstart], e5.ins_h = (e5.ins_h << e5.hash_shift ^ e5.window[e5.strstart + 1]) & e5.hash_mask;
|
|
151232
|
+
else
|
|
151233
|
+
n5 = u._tr_tally(e5, 0, e5.window[e5.strstart]), e5.lookahead--, e5.strstart++;
|
|
151234
|
+
if (n5 && (N5(e5, false), e5.strm.avail_out === 0))
|
|
151235
|
+
return A;
|
|
151236
|
+
}
|
|
151237
|
+
return e5.insert = e5.strstart < x - 1 ? e5.strstart : x - 1, t7 === f ? (N5(e5, true), e5.strm.avail_out === 0 ? O : B) : e5.last_lit && (N5(e5, false), e5.strm.avail_out === 0) ? A : I;
|
|
151238
|
+
}
|
|
151239
|
+
function W5(e5, t7) {
|
|
151240
|
+
for (var r6, n5, i6; ; ) {
|
|
151241
|
+
if (e5.lookahead < z) {
|
|
151242
|
+
if (j5(e5), e5.lookahead < z && t7 === l)
|
|
151243
|
+
return A;
|
|
151244
|
+
if (e5.lookahead === 0)
|
|
151245
|
+
break;
|
|
151246
|
+
}
|
|
151247
|
+
if (r6 = 0, e5.lookahead >= x && (e5.ins_h = (e5.ins_h << e5.hash_shift ^ e5.window[e5.strstart + x - 1]) & e5.hash_mask, r6 = e5.prev[e5.strstart & e5.w_mask] = e5.head[e5.ins_h], e5.head[e5.ins_h] = e5.strstart), e5.prev_length = e5.match_length, e5.prev_match = e5.match_start, e5.match_length = x - 1, r6 !== 0 && e5.prev_length < e5.max_lazy_match && e5.strstart - r6 <= e5.w_size - z && (e5.match_length = L5(e5, r6), e5.match_length <= 5 && (e5.strategy === 1 || e5.match_length === x && 4096 < e5.strstart - e5.match_start) && (e5.match_length = x - 1)), e5.prev_length >= x && e5.match_length <= e5.prev_length) {
|
|
151248
|
+
for (i6 = e5.strstart + e5.lookahead - x, n5 = u._tr_tally(e5, e5.strstart - 1 - e5.prev_match, e5.prev_length - x), e5.lookahead -= e5.prev_length - 1, e5.prev_length -= 2; ++e5.strstart <= i6 && (e5.ins_h = (e5.ins_h << e5.hash_shift ^ e5.window[e5.strstart + x - 1]) & e5.hash_mask, r6 = e5.prev[e5.strstart & e5.w_mask] = e5.head[e5.ins_h], e5.head[e5.ins_h] = e5.strstart), --e5.prev_length != 0; )
|
|
151249
|
+
;
|
|
151250
|
+
if (e5.match_available = 0, e5.match_length = x - 1, e5.strstart++, n5 && (N5(e5, false), e5.strm.avail_out === 0))
|
|
151251
|
+
return A;
|
|
151252
|
+
} else if (e5.match_available) {
|
|
151253
|
+
if ((n5 = u._tr_tally(e5, 0, e5.window[e5.strstart - 1])) && N5(e5, false), e5.strstart++, e5.lookahead--, e5.strm.avail_out === 0)
|
|
151254
|
+
return A;
|
|
151255
|
+
} else
|
|
151256
|
+
e5.match_available = 1, e5.strstart++, e5.lookahead--;
|
|
151257
|
+
}
|
|
151258
|
+
return e5.match_available && (n5 = u._tr_tally(e5, 0, e5.window[e5.strstart - 1]), e5.match_available = 0), e5.insert = e5.strstart < x - 1 ? e5.strstart : x - 1, t7 === f ? (N5(e5, true), e5.strm.avail_out === 0 ? O : B) : e5.last_lit && (N5(e5, false), e5.strm.avail_out === 0) ? A : I;
|
|
151259
|
+
}
|
|
151260
|
+
function M(e5, t7, r6, n5, i6) {
|
|
151261
|
+
this.good_length = e5, this.max_lazy = t7, this.nice_length = r6, this.max_chain = n5, this.func = i6;
|
|
151262
|
+
}
|
|
151263
|
+
function H() {
|
|
151264
|
+
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 = v, 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 c.Buf16(2 * w), this.dyn_dtree = new c.Buf16(2 * (2 * a5 + 1)), this.bl_tree = new c.Buf16(2 * (2 * o + 1)), D5(this.dyn_ltree), D5(this.dyn_dtree), D5(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new c.Buf16(k + 1), this.heap = new c.Buf16(2 * s + 1), D5(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new c.Buf16(2 * s + 1), D5(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;
|
|
151265
|
+
}
|
|
151266
|
+
function G5(e5) {
|
|
151267
|
+
var t7;
|
|
151268
|
+
return e5 && e5.state ? (e5.total_in = e5.total_out = 0, e5.data_type = i5, (t7 = e5.state).pending = 0, t7.pending_out = 0, t7.wrap < 0 && (t7.wrap = -t7.wrap), t7.status = t7.wrap ? C5 : E, e5.adler = t7.wrap === 2 ? 0 : 1, t7.last_flush = l, u._tr_init(t7), m5) : R(e5, _5);
|
|
151269
|
+
}
|
|
151270
|
+
function K(e5) {
|
|
151271
|
+
var t7 = G5(e5);
|
|
151272
|
+
return t7 === m5 && function(e6) {
|
|
151273
|
+
e6.window_size = 2 * e6.w_size, D5(e6.head), e6.max_lazy_match = h5[e6.level].max_lazy, e6.good_match = h5[e6.level].good_length, e6.nice_match = h5[e6.level].nice_length, e6.max_chain_length = h5[e6.level].max_chain, e6.strstart = 0, e6.block_start = 0, e6.lookahead = 0, e6.insert = 0, e6.match_length = e6.prev_length = x - 1, e6.match_available = 0, e6.ins_h = 0;
|
|
151274
|
+
}(e5.state), t7;
|
|
151275
|
+
}
|
|
151276
|
+
function Y(e5, t7, r6, n5, i6, s5) {
|
|
151277
|
+
if (!e5)
|
|
151278
|
+
return _5;
|
|
151279
|
+
var a6 = 1;
|
|
151280
|
+
if (t7 === g && (t7 = 6), n5 < 0 ? (a6 = 0, n5 = -n5) : 15 < n5 && (a6 = 2, n5 -= 16), i6 < 1 || y < i6 || r6 !== v || n5 < 8 || 15 < n5 || t7 < 0 || 9 < t7 || s5 < 0 || b5 < s5)
|
|
151281
|
+
return R(e5, _5);
|
|
151282
|
+
n5 === 8 && (n5 = 9);
|
|
151283
|
+
var o5 = new H();
|
|
151284
|
+
return (e5.state = o5).strm = e5, o5.wrap = a6, o5.gzhead = null, o5.w_bits = n5, o5.w_size = 1 << o5.w_bits, o5.w_mask = o5.w_size - 1, o5.hash_bits = i6 + 7, o5.hash_size = 1 << o5.hash_bits, o5.hash_mask = o5.hash_size - 1, o5.hash_shift = ~~((o5.hash_bits + x - 1) / x), o5.window = new c.Buf8(2 * o5.w_size), o5.head = new c.Buf16(o5.hash_size), o5.prev = new c.Buf16(o5.w_size), o5.lit_bufsize = 1 << i6 + 6, o5.pending_buf_size = 4 * o5.lit_bufsize, o5.pending_buf = new c.Buf8(o5.pending_buf_size), o5.d_buf = 1 * o5.lit_bufsize, o5.l_buf = 3 * o5.lit_bufsize, o5.level = t7, o5.strategy = s5, o5.method = r6, K(e5);
|
|
151285
|
+
}
|
|
151286
|
+
h5 = [new M(0, 0, 0, 0, function(e5, t7) {
|
|
151287
|
+
var r6 = 65535;
|
|
151288
|
+
for (r6 > e5.pending_buf_size - 5 && (r6 = e5.pending_buf_size - 5); ; ) {
|
|
151289
|
+
if (e5.lookahead <= 1) {
|
|
151290
|
+
if (j5(e5), e5.lookahead === 0 && t7 === l)
|
|
151291
|
+
return A;
|
|
151292
|
+
if (e5.lookahead === 0)
|
|
151293
|
+
break;
|
|
151294
|
+
}
|
|
151295
|
+
e5.strstart += e5.lookahead, e5.lookahead = 0;
|
|
151296
|
+
var n5 = e5.block_start + r6;
|
|
151297
|
+
if ((e5.strstart === 0 || e5.strstart >= n5) && (e5.lookahead = e5.strstart - n5, e5.strstart = n5, N5(e5, false), e5.strm.avail_out === 0))
|
|
151298
|
+
return A;
|
|
151299
|
+
if (e5.strstart - e5.block_start >= e5.w_size - z && (N5(e5, false), e5.strm.avail_out === 0))
|
|
151300
|
+
return A;
|
|
151301
|
+
}
|
|
151302
|
+
return e5.insert = 0, t7 === f ? (N5(e5, true), e5.strm.avail_out === 0 ? O : B) : (e5.strstart > e5.block_start && (N5(e5, false), e5.strm.avail_out), A);
|
|
151303
|
+
}), new M(4, 4, 8, 4, Z5), new M(4, 5, 16, 8, Z5), new M(4, 6, 32, 32, Z5), new M(4, 4, 16, 16, W5), new M(8, 16, 32, 32, W5), new M(8, 16, 128, 128, W5), new M(8, 32, 128, 256, W5), new M(32, 128, 258, 1024, W5), new M(32, 258, 258, 4096, W5)], r5.deflateInit = function(e5, t7) {
|
|
151304
|
+
return Y(e5, t7, v, 15, 8, 0);
|
|
151305
|
+
}, r5.deflateInit2 = Y, r5.deflateReset = K, r5.deflateResetKeep = G5, r5.deflateSetHeader = function(e5, t7) {
|
|
151306
|
+
return e5 && e5.state ? e5.state.wrap !== 2 ? _5 : (e5.state.gzhead = t7, m5) : _5;
|
|
151307
|
+
}, r5.deflate = function(e5, t7) {
|
|
151308
|
+
var r6, n5, i6, s5;
|
|
151309
|
+
if (!e5 || !e5.state || 5 < t7 || t7 < 0)
|
|
151310
|
+
return e5 ? R(e5, _5) : _5;
|
|
151311
|
+
if (n5 = e5.state, !e5.output || !e5.input && e5.avail_in !== 0 || n5.status === 666 && t7 !== f)
|
|
151312
|
+
return R(e5, e5.avail_out === 0 ? -5 : _5);
|
|
151313
|
+
if (n5.strm = e5, r6 = n5.last_flush, n5.last_flush = t7, n5.status === C5)
|
|
151314
|
+
if (n5.wrap === 2)
|
|
151315
|
+
e5.adler = 0, U(n5, 31), U(n5, 139), U(n5, 8), n5.gzhead ? (U(n5, (n5.gzhead.text ? 1 : 0) + (n5.gzhead.hcrc ? 2 : 0) + (n5.gzhead.extra ? 4 : 0) + (n5.gzhead.name ? 8 : 0) + (n5.gzhead.comment ? 16 : 0)), U(n5, 255 & n5.gzhead.time), U(n5, n5.gzhead.time >> 8 & 255), U(n5, n5.gzhead.time >> 16 & 255), U(n5, n5.gzhead.time >> 24 & 255), U(n5, n5.level === 9 ? 2 : 2 <= n5.strategy || n5.level < 2 ? 4 : 0), U(n5, 255 & n5.gzhead.os), n5.gzhead.extra && n5.gzhead.extra.length && (U(n5, 255 & n5.gzhead.extra.length), U(n5, n5.gzhead.extra.length >> 8 & 255)), n5.gzhead.hcrc && (e5.adler = p5(e5.adler, n5.pending_buf, n5.pending, 0)), n5.gzindex = 0, n5.status = 69) : (U(n5, 0), U(n5, 0), U(n5, 0), U(n5, 0), U(n5, 0), U(n5, n5.level === 9 ? 2 : 2 <= n5.strategy || n5.level < 2 ? 4 : 0), U(n5, 3), n5.status = E);
|
|
151316
|
+
else {
|
|
151317
|
+
var a6 = v + (n5.w_bits - 8 << 4) << 8;
|
|
151318
|
+
a6 |= (2 <= n5.strategy || n5.level < 2 ? 0 : n5.level < 6 ? 1 : n5.level === 6 ? 2 : 3) << 6, n5.strstart !== 0 && (a6 |= 32), a6 += 31 - a6 % 31, n5.status = E, P5(n5, a6), n5.strstart !== 0 && (P5(n5, e5.adler >>> 16), P5(n5, 65535 & e5.adler)), e5.adler = 1;
|
|
151319
|
+
}
|
|
151320
|
+
if (n5.status === 69)
|
|
151321
|
+
if (n5.gzhead.extra) {
|
|
151322
|
+
for (i6 = n5.pending; n5.gzindex < (65535 & n5.gzhead.extra.length) && (n5.pending !== n5.pending_buf_size || (n5.gzhead.hcrc && n5.pending > i6 && (e5.adler = p5(e5.adler, n5.pending_buf, n5.pending - i6, i6)), F5(e5), i6 = n5.pending, n5.pending !== n5.pending_buf_size)); )
|
|
151323
|
+
U(n5, 255 & n5.gzhead.extra[n5.gzindex]), n5.gzindex++;
|
|
151324
|
+
n5.gzhead.hcrc && n5.pending > i6 && (e5.adler = p5(e5.adler, n5.pending_buf, n5.pending - i6, i6)), n5.gzindex === n5.gzhead.extra.length && (n5.gzindex = 0, n5.status = 73);
|
|
151325
|
+
} else
|
|
151326
|
+
n5.status = 73;
|
|
151327
|
+
if (n5.status === 73)
|
|
151328
|
+
if (n5.gzhead.name) {
|
|
151329
|
+
i6 = n5.pending;
|
|
151330
|
+
do {
|
|
151331
|
+
if (n5.pending === n5.pending_buf_size && (n5.gzhead.hcrc && n5.pending > i6 && (e5.adler = p5(e5.adler, n5.pending_buf, n5.pending - i6, i6)), F5(e5), i6 = n5.pending, n5.pending === n5.pending_buf_size)) {
|
|
151332
|
+
s5 = 1;
|
|
151333
|
+
break;
|
|
151334
|
+
}
|
|
151335
|
+
s5 = n5.gzindex < n5.gzhead.name.length ? 255 & n5.gzhead.name.charCodeAt(n5.gzindex++) : 0, U(n5, s5);
|
|
151336
|
+
} while (s5 !== 0);
|
|
151337
|
+
n5.gzhead.hcrc && n5.pending > i6 && (e5.adler = p5(e5.adler, n5.pending_buf, n5.pending - i6, i6)), s5 === 0 && (n5.gzindex = 0, n5.status = 91);
|
|
151338
|
+
} else
|
|
151339
|
+
n5.status = 91;
|
|
151340
|
+
if (n5.status === 91)
|
|
151341
|
+
if (n5.gzhead.comment) {
|
|
151342
|
+
i6 = n5.pending;
|
|
151343
|
+
do {
|
|
151344
|
+
if (n5.pending === n5.pending_buf_size && (n5.gzhead.hcrc && n5.pending > i6 && (e5.adler = p5(e5.adler, n5.pending_buf, n5.pending - i6, i6)), F5(e5), i6 = n5.pending, n5.pending === n5.pending_buf_size)) {
|
|
151345
|
+
s5 = 1;
|
|
151346
|
+
break;
|
|
151347
|
+
}
|
|
151348
|
+
s5 = n5.gzindex < n5.gzhead.comment.length ? 255 & n5.gzhead.comment.charCodeAt(n5.gzindex++) : 0, U(n5, s5);
|
|
151349
|
+
} while (s5 !== 0);
|
|
151350
|
+
n5.gzhead.hcrc && n5.pending > i6 && (e5.adler = p5(e5.adler, n5.pending_buf, n5.pending - i6, i6)), s5 === 0 && (n5.status = 103);
|
|
151351
|
+
} else
|
|
151352
|
+
n5.status = 103;
|
|
151353
|
+
if (n5.status === 103 && (n5.gzhead.hcrc ? (n5.pending + 2 > n5.pending_buf_size && F5(e5), n5.pending + 2 <= n5.pending_buf_size && (U(n5, 255 & e5.adler), U(n5, e5.adler >> 8 & 255), e5.adler = 0, n5.status = E)) : n5.status = E), n5.pending !== 0) {
|
|
151354
|
+
if (F5(e5), e5.avail_out === 0)
|
|
151355
|
+
return n5.last_flush = -1, m5;
|
|
151356
|
+
} else if (e5.avail_in === 0 && T5(t7) <= T5(r6) && t7 !== f)
|
|
151357
|
+
return R(e5, -5);
|
|
151358
|
+
if (n5.status === 666 && e5.avail_in !== 0)
|
|
151359
|
+
return R(e5, -5);
|
|
151360
|
+
if (e5.avail_in !== 0 || n5.lookahead !== 0 || t7 !== l && n5.status !== 666) {
|
|
151361
|
+
var o5 = n5.strategy === 2 ? function(e6, t8) {
|
|
151362
|
+
for (var r7; ; ) {
|
|
151363
|
+
if (e6.lookahead === 0 && (j5(e6), e6.lookahead === 0)) {
|
|
151364
|
+
if (t8 === l)
|
|
151365
|
+
return A;
|
|
151366
|
+
break;
|
|
151367
|
+
}
|
|
151368
|
+
if (e6.match_length = 0, r7 = u._tr_tally(e6, 0, e6.window[e6.strstart]), e6.lookahead--, e6.strstart++, r7 && (N5(e6, false), e6.strm.avail_out === 0))
|
|
151369
|
+
return A;
|
|
151370
|
+
}
|
|
151371
|
+
return e6.insert = 0, t8 === f ? (N5(e6, true), e6.strm.avail_out === 0 ? O : B) : e6.last_lit && (N5(e6, false), e6.strm.avail_out === 0) ? A : I;
|
|
151372
|
+
}(n5, t7) : n5.strategy === 3 ? function(e6, t8) {
|
|
151373
|
+
for (var r7, n6, i7, s6, a7 = e6.window; ; ) {
|
|
151374
|
+
if (e6.lookahead <= S) {
|
|
151375
|
+
if (j5(e6), e6.lookahead <= S && t8 === l)
|
|
151376
|
+
return A;
|
|
151377
|
+
if (e6.lookahead === 0)
|
|
151378
|
+
break;
|
|
151379
|
+
}
|
|
151380
|
+
if (e6.match_length = 0, e6.lookahead >= x && 0 < e6.strstart && (n6 = a7[i7 = e6.strstart - 1]) === a7[++i7] && n6 === a7[++i7] && n6 === a7[++i7]) {
|
|
151381
|
+
s6 = e6.strstart + S;
|
|
151382
|
+
do {
|
|
151383
|
+
} while (n6 === a7[++i7] && n6 === a7[++i7] && n6 === a7[++i7] && n6 === a7[++i7] && n6 === a7[++i7] && n6 === a7[++i7] && n6 === a7[++i7] && n6 === a7[++i7] && i7 < s6);
|
|
151384
|
+
e6.match_length = S - (s6 - i7), e6.match_length > e6.lookahead && (e6.match_length = e6.lookahead);
|
|
151385
|
+
}
|
|
151386
|
+
if (e6.match_length >= x ? (r7 = u._tr_tally(e6, 1, e6.match_length - x), e6.lookahead -= e6.match_length, e6.strstart += e6.match_length, e6.match_length = 0) : (r7 = u._tr_tally(e6, 0, e6.window[e6.strstart]), e6.lookahead--, e6.strstart++), r7 && (N5(e6, false), e6.strm.avail_out === 0))
|
|
151387
|
+
return A;
|
|
151388
|
+
}
|
|
151389
|
+
return e6.insert = 0, t8 === f ? (N5(e6, true), e6.strm.avail_out === 0 ? O : B) : e6.last_lit && (N5(e6, false), e6.strm.avail_out === 0) ? A : I;
|
|
151390
|
+
}(n5, t7) : h5[n5.level].func(n5, t7);
|
|
151391
|
+
if (o5 !== O && o5 !== B || (n5.status = 666), o5 === A || o5 === O)
|
|
151392
|
+
return e5.avail_out === 0 && (n5.last_flush = -1), m5;
|
|
151393
|
+
if (o5 === I && (t7 === 1 ? u._tr_align(n5) : t7 !== 5 && (u._tr_stored_block(n5, 0, 0, false), t7 === 3 && (D5(n5.head), n5.lookahead === 0 && (n5.strstart = 0, n5.block_start = 0, n5.insert = 0))), F5(e5), e5.avail_out === 0))
|
|
151394
|
+
return n5.last_flush = -1, m5;
|
|
151395
|
+
}
|
|
151396
|
+
return t7 !== f ? m5 : n5.wrap <= 0 ? 1 : (n5.wrap === 2 ? (U(n5, 255 & e5.adler), U(n5, e5.adler >> 8 & 255), U(n5, e5.adler >> 16 & 255), U(n5, e5.adler >> 24 & 255), U(n5, 255 & e5.total_in), U(n5, e5.total_in >> 8 & 255), U(n5, e5.total_in >> 16 & 255), U(n5, e5.total_in >> 24 & 255)) : (P5(n5, e5.adler >>> 16), P5(n5, 65535 & e5.adler)), F5(e5), 0 < n5.wrap && (n5.wrap = -n5.wrap), n5.pending !== 0 ? m5 : 1);
|
|
151397
|
+
}, r5.deflateEnd = function(e5) {
|
|
151398
|
+
var t7;
|
|
151399
|
+
return e5 && e5.state ? (t7 = e5.state.status) !== C5 && t7 !== 69 && t7 !== 73 && t7 !== 91 && t7 !== 103 && t7 !== E && t7 !== 666 ? R(e5, _5) : (e5.state = null, t7 === E ? R(e5, -3) : m5) : _5;
|
|
151400
|
+
}, r5.deflateSetDictionary = function(e5, t7) {
|
|
151401
|
+
var r6, n5, i6, s5, a6, o5, h6, u5, l5 = t7.length;
|
|
151402
|
+
if (!e5 || !e5.state)
|
|
151403
|
+
return _5;
|
|
151404
|
+
if ((s5 = (r6 = e5.state).wrap) === 2 || s5 === 1 && r6.status !== C5 || r6.lookahead)
|
|
151405
|
+
return _5;
|
|
151406
|
+
for (s5 === 1 && (e5.adler = d5(e5.adler, t7, l5, 0)), r6.wrap = 0, l5 >= r6.w_size && (s5 === 0 && (D5(r6.head), r6.strstart = 0, r6.block_start = 0, r6.insert = 0), u5 = new c.Buf8(r6.w_size), c.arraySet(u5, t7, l5 - r6.w_size, r6.w_size, 0), t7 = u5, l5 = r6.w_size), a6 = e5.avail_in, o5 = e5.next_in, h6 = e5.input, e5.avail_in = l5, e5.next_in = 0, e5.input = t7, j5(r6); r6.lookahead >= x; ) {
|
|
151407
|
+
for (n5 = r6.strstart, i6 = r6.lookahead - (x - 1); r6.ins_h = (r6.ins_h << r6.hash_shift ^ r6.window[n5 + x - 1]) & r6.hash_mask, r6.prev[n5 & r6.w_mask] = r6.head[r6.ins_h], r6.head[r6.ins_h] = n5, n5++, --i6; )
|
|
151408
|
+
;
|
|
151409
|
+
r6.strstart = n5, r6.lookahead = x - 1, j5(r6);
|
|
151410
|
+
}
|
|
151411
|
+
return r6.strstart += r6.lookahead, r6.block_start = r6.strstart, r6.insert = r6.lookahead, r6.lookahead = 0, r6.match_length = r6.prev_length = x - 1, r6.match_available = 0, e5.next_in = o5, e5.input = h6, e5.avail_in = a6, r6.wrap = s5, m5;
|
|
151412
|
+
}, r5.deflateInfo = "pako deflate (from Nodeca project)";
|
|
151413
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t6, r5) {
|
|
151414
|
+
t6.exports = function() {
|
|
151415
|
+
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = false;
|
|
151416
|
+
};
|
|
151417
|
+
}, {}], 48: [function(e, t6, r5) {
|
|
151418
|
+
t6.exports = function(e5, t7) {
|
|
151419
|
+
var r6, n, i5, s, a5, o, h5, u, l, f, c, d5, p5, m5, _5, g, b5, v, y, w, k, x, S, z, C5;
|
|
151420
|
+
r6 = e5.state, n = e5.next_in, z = e5.input, i5 = n + (e5.avail_in - 5), s = e5.next_out, C5 = e5.output, a5 = s - (t7 - e5.avail_out), o = s + (e5.avail_out - 257), h5 = r6.dmax, u = r6.wsize, l = r6.whave, f = r6.wnext, c = r6.window, d5 = r6.hold, p5 = r6.bits, m5 = r6.lencode, _5 = r6.distcode, g = (1 << r6.lenbits) - 1, b5 = (1 << r6.distbits) - 1;
|
|
151421
|
+
e:
|
|
151422
|
+
do {
|
|
151423
|
+
p5 < 15 && (d5 += z[n++] << p5, p5 += 8, d5 += z[n++] << p5, p5 += 8), v = m5[d5 & g];
|
|
151424
|
+
t:
|
|
151425
|
+
for (; ; ) {
|
|
151426
|
+
if (d5 >>>= y = v >>> 24, p5 -= y, (y = v >>> 16 & 255) === 0)
|
|
151427
|
+
C5[s++] = 65535 & v;
|
|
151428
|
+
else {
|
|
151429
|
+
if (!(16 & y)) {
|
|
151430
|
+
if ((64 & y) == 0) {
|
|
151431
|
+
v = m5[(65535 & v) + (d5 & (1 << y) - 1)];
|
|
151432
|
+
continue t;
|
|
151433
|
+
}
|
|
151434
|
+
if (32 & y) {
|
|
151435
|
+
r6.mode = 12;
|
|
151436
|
+
break e;
|
|
151437
|
+
}
|
|
151438
|
+
e5.msg = "invalid literal/length code", r6.mode = 30;
|
|
151439
|
+
break e;
|
|
151440
|
+
}
|
|
151441
|
+
w = 65535 & v, (y &= 15) && (p5 < y && (d5 += z[n++] << p5, p5 += 8), w += d5 & (1 << y) - 1, d5 >>>= y, p5 -= y), p5 < 15 && (d5 += z[n++] << p5, p5 += 8, d5 += z[n++] << p5, p5 += 8), v = _5[d5 & b5];
|
|
151442
|
+
r:
|
|
151443
|
+
for (; ; ) {
|
|
151444
|
+
if (d5 >>>= y = v >>> 24, p5 -= y, !(16 & (y = v >>> 16 & 255))) {
|
|
151445
|
+
if ((64 & y) == 0) {
|
|
151446
|
+
v = _5[(65535 & v) + (d5 & (1 << y) - 1)];
|
|
151447
|
+
continue r;
|
|
151448
|
+
}
|
|
151449
|
+
e5.msg = "invalid distance code", r6.mode = 30;
|
|
151450
|
+
break e;
|
|
151451
|
+
}
|
|
151452
|
+
if (k = 65535 & v, p5 < (y &= 15) && (d5 += z[n++] << p5, (p5 += 8) < y && (d5 += z[n++] << p5, p5 += 8)), h5 < (k += d5 & (1 << y) - 1)) {
|
|
151453
|
+
e5.msg = "invalid distance too far back", r6.mode = 30;
|
|
151454
|
+
break e;
|
|
151455
|
+
}
|
|
151456
|
+
if (d5 >>>= y, p5 -= y, (y = s - a5) < k) {
|
|
151457
|
+
if (l < (y = k - y) && r6.sane) {
|
|
151458
|
+
e5.msg = "invalid distance too far back", r6.mode = 30;
|
|
151459
|
+
break e;
|
|
151460
|
+
}
|
|
151461
|
+
if (S = c, (x = 0) === f) {
|
|
151462
|
+
if (x += u - y, y < w) {
|
|
151463
|
+
for (w -= y; C5[s++] = c[x++], --y; )
|
|
151464
|
+
;
|
|
151465
|
+
x = s - k, S = C5;
|
|
151466
|
+
}
|
|
151467
|
+
} else if (f < y) {
|
|
151468
|
+
if (x += u + f - y, (y -= f) < w) {
|
|
151469
|
+
for (w -= y; C5[s++] = c[x++], --y; )
|
|
151470
|
+
;
|
|
151471
|
+
if (x = 0, f < w) {
|
|
151472
|
+
for (w -= y = f; C5[s++] = c[x++], --y; )
|
|
151473
|
+
;
|
|
151474
|
+
x = s - k, S = C5;
|
|
151475
|
+
}
|
|
151476
|
+
}
|
|
151477
|
+
} else if (x += f - y, y < w) {
|
|
151478
|
+
for (w -= y; C5[s++] = c[x++], --y; )
|
|
151479
|
+
;
|
|
151480
|
+
x = s - k, S = C5;
|
|
151481
|
+
}
|
|
151482
|
+
for (; 2 < w; )
|
|
151483
|
+
C5[s++] = S[x++], C5[s++] = S[x++], C5[s++] = S[x++], w -= 3;
|
|
151484
|
+
w && (C5[s++] = S[x++], 1 < w && (C5[s++] = S[x++]));
|
|
151485
|
+
} else {
|
|
151486
|
+
for (x = s - k; C5[s++] = C5[x++], C5[s++] = C5[x++], C5[s++] = C5[x++], 2 < (w -= 3); )
|
|
151487
|
+
;
|
|
151488
|
+
w && (C5[s++] = C5[x++], 1 < w && (C5[s++] = C5[x++]));
|
|
151489
|
+
}
|
|
151490
|
+
break;
|
|
151491
|
+
}
|
|
151492
|
+
}
|
|
151493
|
+
break;
|
|
151494
|
+
}
|
|
151495
|
+
} while (n < i5 && s < o);
|
|
151496
|
+
n -= w = p5 >> 3, d5 &= (1 << (p5 -= w << 3)) - 1, e5.next_in = n, e5.next_out = s, e5.avail_in = n < i5 ? i5 - n + 5 : 5 - (n - i5), e5.avail_out = s < o ? o - s + 257 : 257 - (s - o), r6.hold = d5, r6.bits = p5;
|
|
151497
|
+
};
|
|
151498
|
+
}, {}], 49: [function(e, t6, r5) {
|
|
151499
|
+
var I = e("../utils/common"), O = e("./adler32"), B = e("./crc32"), R = e("./inffast"), T5 = e("./inftrees"), D5 = 1, F5 = 2, N5 = 0, U = -2, P5 = 1, n = 852, i5 = 592;
|
|
151500
|
+
function L5(e5) {
|
|
151501
|
+
return (e5 >>> 24 & 255) + (e5 >>> 8 & 65280) + ((65280 & e5) << 8) + ((255 & e5) << 24);
|
|
151502
|
+
}
|
|
151503
|
+
function s() {
|
|
151504
|
+
this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, 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 I.Buf16(320), this.work = new I.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
151505
|
+
}
|
|
151506
|
+
function a5(e5) {
|
|
151507
|
+
var t7;
|
|
151508
|
+
return e5 && e5.state ? (t7 = e5.state, e5.total_in = e5.total_out = t7.total = 0, e5.msg = "", t7.wrap && (e5.adler = 1 & t7.wrap), t7.mode = P5, t7.last = 0, t7.havedict = 0, t7.dmax = 32768, t7.head = null, t7.hold = 0, t7.bits = 0, t7.lencode = t7.lendyn = new I.Buf32(n), t7.distcode = t7.distdyn = new I.Buf32(i5), t7.sane = 1, t7.back = -1, N5) : U;
|
|
151509
|
+
}
|
|
151510
|
+
function o(e5) {
|
|
151511
|
+
var t7;
|
|
151512
|
+
return e5 && e5.state ? ((t7 = e5.state).wsize = 0, t7.whave = 0, t7.wnext = 0, a5(e5)) : U;
|
|
151513
|
+
}
|
|
151514
|
+
function h5(e5, t7) {
|
|
151515
|
+
var r6, n5;
|
|
151516
|
+
return e5 && e5.state ? (n5 = e5.state, t7 < 0 ? (r6 = 0, t7 = -t7) : (r6 = 1 + (t7 >> 4), t7 < 48 && (t7 &= 15)), t7 && (t7 < 8 || 15 < t7) ? U : (n5.window !== null && n5.wbits !== t7 && (n5.window = null), n5.wrap = r6, n5.wbits = t7, o(e5))) : U;
|
|
151517
|
+
}
|
|
151518
|
+
function u(e5, t7) {
|
|
151519
|
+
var r6, n5;
|
|
151520
|
+
return e5 ? (n5 = new s(), (e5.state = n5).window = null, (r6 = h5(e5, t7)) !== N5 && (e5.state = null), r6) : U;
|
|
151521
|
+
}
|
|
151522
|
+
var l, f, c = true;
|
|
151523
|
+
function j5(e5) {
|
|
151524
|
+
if (c) {
|
|
151525
|
+
var t7;
|
|
151526
|
+
for (l = new I.Buf32(512), f = new I.Buf32(32), t7 = 0; t7 < 144; )
|
|
151527
|
+
e5.lens[t7++] = 8;
|
|
151528
|
+
for (; t7 < 256; )
|
|
151529
|
+
e5.lens[t7++] = 9;
|
|
151530
|
+
for (; t7 < 280; )
|
|
151531
|
+
e5.lens[t7++] = 7;
|
|
151532
|
+
for (; t7 < 288; )
|
|
151533
|
+
e5.lens[t7++] = 8;
|
|
151534
|
+
for (T5(D5, e5.lens, 0, 288, l, 0, e5.work, { bits: 9 }), t7 = 0; t7 < 32; )
|
|
151535
|
+
e5.lens[t7++] = 5;
|
|
151536
|
+
T5(F5, e5.lens, 0, 32, f, 0, e5.work, { bits: 5 }), c = false;
|
|
151537
|
+
}
|
|
151538
|
+
e5.lencode = l, e5.lenbits = 9, e5.distcode = f, e5.distbits = 5;
|
|
151539
|
+
}
|
|
151540
|
+
function Z5(e5, t7, r6, n5) {
|
|
151541
|
+
var i6, s5 = e5.state;
|
|
151542
|
+
return s5.window === null && (s5.wsize = 1 << s5.wbits, s5.wnext = 0, s5.whave = 0, s5.window = new I.Buf8(s5.wsize)), n5 >= s5.wsize ? (I.arraySet(s5.window, t7, r6 - s5.wsize, s5.wsize, 0), s5.wnext = 0, s5.whave = s5.wsize) : (n5 < (i6 = s5.wsize - s5.wnext) && (i6 = n5), I.arraySet(s5.window, t7, r6 - n5, i6, s5.wnext), (n5 -= i6) ? (I.arraySet(s5.window, t7, r6 - n5, n5, 0), s5.wnext = n5, s5.whave = s5.wsize) : (s5.wnext += i6, s5.wnext === s5.wsize && (s5.wnext = 0), s5.whave < s5.wsize && (s5.whave += i6))), 0;
|
|
151543
|
+
}
|
|
151544
|
+
r5.inflateReset = o, r5.inflateReset2 = h5, r5.inflateResetKeep = a5, r5.inflateInit = function(e5) {
|
|
151545
|
+
return u(e5, 15);
|
|
151546
|
+
}, r5.inflateInit2 = u, r5.inflate = function(e5, t7) {
|
|
151547
|
+
var r6, n5, i6, s5, a6, o5, h6, u5, l5, f5, c5, d5, p5, m5, _5, g, b5, v, y, w, k, x, S, z, C5 = 0, E = new I.Buf8(4), A = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
151548
|
+
if (!e5 || !e5.state || !e5.output || !e5.input && e5.avail_in !== 0)
|
|
151549
|
+
return U;
|
|
151550
|
+
(r6 = e5.state).mode === 12 && (r6.mode = 13), a6 = e5.next_out, i6 = e5.output, h6 = e5.avail_out, s5 = e5.next_in, n5 = e5.input, o5 = e5.avail_in, u5 = r6.hold, l5 = r6.bits, f5 = o5, c5 = h6, x = N5;
|
|
151551
|
+
e:
|
|
151552
|
+
for (; ; )
|
|
151553
|
+
switch (r6.mode) {
|
|
151554
|
+
case P5:
|
|
151555
|
+
if (r6.wrap === 0) {
|
|
151556
|
+
r6.mode = 13;
|
|
151557
|
+
break;
|
|
151558
|
+
}
|
|
151559
|
+
for (; l5 < 16; ) {
|
|
151560
|
+
if (o5 === 0)
|
|
151561
|
+
break e;
|
|
151562
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151563
|
+
}
|
|
151564
|
+
if (2 & r6.wrap && u5 === 35615) {
|
|
151565
|
+
E[r6.check = 0] = 255 & u5, E[1] = u5 >>> 8 & 255, r6.check = B(r6.check, E, 2, 0), l5 = u5 = 0, r6.mode = 2;
|
|
151566
|
+
break;
|
|
151567
|
+
}
|
|
151568
|
+
if (r6.flags = 0, r6.head && (r6.head.done = false), !(1 & r6.wrap) || (((255 & u5) << 8) + (u5 >> 8)) % 31) {
|
|
151569
|
+
e5.msg = "incorrect header check", r6.mode = 30;
|
|
151570
|
+
break;
|
|
151571
|
+
}
|
|
151572
|
+
if ((15 & u5) != 8) {
|
|
151573
|
+
e5.msg = "unknown compression method", r6.mode = 30;
|
|
151574
|
+
break;
|
|
151575
|
+
}
|
|
151576
|
+
if (l5 -= 4, k = 8 + (15 & (u5 >>>= 4)), r6.wbits === 0)
|
|
151577
|
+
r6.wbits = k;
|
|
151578
|
+
else if (k > r6.wbits) {
|
|
151579
|
+
e5.msg = "invalid window size", r6.mode = 30;
|
|
151580
|
+
break;
|
|
151581
|
+
}
|
|
151582
|
+
r6.dmax = 1 << k, e5.adler = r6.check = 1, r6.mode = 512 & u5 ? 10 : 12, l5 = u5 = 0;
|
|
151583
|
+
break;
|
|
151584
|
+
case 2:
|
|
151585
|
+
for (; l5 < 16; ) {
|
|
151586
|
+
if (o5 === 0)
|
|
151587
|
+
break e;
|
|
151588
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151589
|
+
}
|
|
151590
|
+
if (r6.flags = u5, (255 & r6.flags) != 8) {
|
|
151591
|
+
e5.msg = "unknown compression method", r6.mode = 30;
|
|
151592
|
+
break;
|
|
151593
|
+
}
|
|
151594
|
+
if (57344 & r6.flags) {
|
|
151595
|
+
e5.msg = "unknown header flags set", r6.mode = 30;
|
|
151596
|
+
break;
|
|
151597
|
+
}
|
|
151598
|
+
r6.head && (r6.head.text = u5 >> 8 & 1), 512 & r6.flags && (E[0] = 255 & u5, E[1] = u5 >>> 8 & 255, r6.check = B(r6.check, E, 2, 0)), l5 = u5 = 0, r6.mode = 3;
|
|
151599
|
+
case 3:
|
|
151600
|
+
for (; l5 < 32; ) {
|
|
151601
|
+
if (o5 === 0)
|
|
151602
|
+
break e;
|
|
151603
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151604
|
+
}
|
|
151605
|
+
r6.head && (r6.head.time = u5), 512 & r6.flags && (E[0] = 255 & u5, E[1] = u5 >>> 8 & 255, E[2] = u5 >>> 16 & 255, E[3] = u5 >>> 24 & 255, r6.check = B(r6.check, E, 4, 0)), l5 = u5 = 0, r6.mode = 4;
|
|
151606
|
+
case 4:
|
|
151607
|
+
for (; l5 < 16; ) {
|
|
151608
|
+
if (o5 === 0)
|
|
151609
|
+
break e;
|
|
151610
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151611
|
+
}
|
|
151612
|
+
r6.head && (r6.head.xflags = 255 & u5, r6.head.os = u5 >> 8), 512 & r6.flags && (E[0] = 255 & u5, E[1] = u5 >>> 8 & 255, r6.check = B(r6.check, E, 2, 0)), l5 = u5 = 0, r6.mode = 5;
|
|
151613
|
+
case 5:
|
|
151614
|
+
if (1024 & r6.flags) {
|
|
151615
|
+
for (; l5 < 16; ) {
|
|
151616
|
+
if (o5 === 0)
|
|
151617
|
+
break e;
|
|
151618
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151619
|
+
}
|
|
151620
|
+
r6.length = u5, r6.head && (r6.head.extra_len = u5), 512 & r6.flags && (E[0] = 255 & u5, E[1] = u5 >>> 8 & 255, r6.check = B(r6.check, E, 2, 0)), l5 = u5 = 0;
|
|
151621
|
+
} else
|
|
151622
|
+
r6.head && (r6.head.extra = null);
|
|
151623
|
+
r6.mode = 6;
|
|
151624
|
+
case 6:
|
|
151625
|
+
if (1024 & r6.flags && (o5 < (d5 = r6.length) && (d5 = o5), d5 && (r6.head && (k = r6.head.extra_len - r6.length, r6.head.extra || (r6.head.extra = new Array(r6.head.extra_len)), I.arraySet(r6.head.extra, n5, s5, d5, k)), 512 & r6.flags && (r6.check = B(r6.check, n5, d5, s5)), o5 -= d5, s5 += d5, r6.length -= d5), r6.length))
|
|
151626
|
+
break e;
|
|
151627
|
+
r6.length = 0, r6.mode = 7;
|
|
151628
|
+
case 7:
|
|
151629
|
+
if (2048 & r6.flags) {
|
|
151630
|
+
if (o5 === 0)
|
|
151631
|
+
break e;
|
|
151632
|
+
for (d5 = 0; k = n5[s5 + d5++], r6.head && k && r6.length < 65536 && (r6.head.name += String.fromCharCode(k)), k && d5 < o5; )
|
|
151633
|
+
;
|
|
151634
|
+
if (512 & r6.flags && (r6.check = B(r6.check, n5, d5, s5)), o5 -= d5, s5 += d5, k)
|
|
151635
|
+
break e;
|
|
151636
|
+
} else
|
|
151637
|
+
r6.head && (r6.head.name = null);
|
|
151638
|
+
r6.length = 0, r6.mode = 8;
|
|
151639
|
+
case 8:
|
|
151640
|
+
if (4096 & r6.flags) {
|
|
151641
|
+
if (o5 === 0)
|
|
151642
|
+
break e;
|
|
151643
|
+
for (d5 = 0; k = n5[s5 + d5++], r6.head && k && r6.length < 65536 && (r6.head.comment += String.fromCharCode(k)), k && d5 < o5; )
|
|
151644
|
+
;
|
|
151645
|
+
if (512 & r6.flags && (r6.check = B(r6.check, n5, d5, s5)), o5 -= d5, s5 += d5, k)
|
|
151646
|
+
break e;
|
|
151647
|
+
} else
|
|
151648
|
+
r6.head && (r6.head.comment = null);
|
|
151649
|
+
r6.mode = 9;
|
|
151650
|
+
case 9:
|
|
151651
|
+
if (512 & r6.flags) {
|
|
151652
|
+
for (; l5 < 16; ) {
|
|
151653
|
+
if (o5 === 0)
|
|
151654
|
+
break e;
|
|
151655
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151656
|
+
}
|
|
151657
|
+
if (u5 !== (65535 & r6.check)) {
|
|
151658
|
+
e5.msg = "header crc mismatch", r6.mode = 30;
|
|
151659
|
+
break;
|
|
151660
|
+
}
|
|
151661
|
+
l5 = u5 = 0;
|
|
151662
|
+
}
|
|
151663
|
+
r6.head && (r6.head.hcrc = r6.flags >> 9 & 1, r6.head.done = true), e5.adler = r6.check = 0, r6.mode = 12;
|
|
151664
|
+
break;
|
|
151665
|
+
case 10:
|
|
151666
|
+
for (; l5 < 32; ) {
|
|
151667
|
+
if (o5 === 0)
|
|
151668
|
+
break e;
|
|
151669
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151670
|
+
}
|
|
151671
|
+
e5.adler = r6.check = L5(u5), l5 = u5 = 0, r6.mode = 11;
|
|
151672
|
+
case 11:
|
|
151673
|
+
if (r6.havedict === 0)
|
|
151674
|
+
return e5.next_out = a6, e5.avail_out = h6, e5.next_in = s5, e5.avail_in = o5, r6.hold = u5, r6.bits = l5, 2;
|
|
151675
|
+
e5.adler = r6.check = 1, r6.mode = 12;
|
|
151676
|
+
case 12:
|
|
151677
|
+
if (t7 === 5 || t7 === 6)
|
|
151678
|
+
break e;
|
|
151679
|
+
case 13:
|
|
151680
|
+
if (r6.last) {
|
|
151681
|
+
u5 >>>= 7 & l5, l5 -= 7 & l5, r6.mode = 27;
|
|
151682
|
+
break;
|
|
151683
|
+
}
|
|
151684
|
+
for (; l5 < 3; ) {
|
|
151685
|
+
if (o5 === 0)
|
|
151686
|
+
break e;
|
|
151687
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151688
|
+
}
|
|
151689
|
+
switch (r6.last = 1 & u5, l5 -= 1, 3 & (u5 >>>= 1)) {
|
|
151690
|
+
case 0:
|
|
151691
|
+
r6.mode = 14;
|
|
151692
|
+
break;
|
|
151693
|
+
case 1:
|
|
151694
|
+
if (j5(r6), r6.mode = 20, t7 !== 6)
|
|
151695
|
+
break;
|
|
151696
|
+
u5 >>>= 2, l5 -= 2;
|
|
151697
|
+
break e;
|
|
151698
|
+
case 2:
|
|
151699
|
+
r6.mode = 17;
|
|
151700
|
+
break;
|
|
151701
|
+
case 3:
|
|
151702
|
+
e5.msg = "invalid block type", r6.mode = 30;
|
|
151703
|
+
}
|
|
151704
|
+
u5 >>>= 2, l5 -= 2;
|
|
151705
|
+
break;
|
|
151706
|
+
case 14:
|
|
151707
|
+
for (u5 >>>= 7 & l5, l5 -= 7 & l5; l5 < 32; ) {
|
|
151708
|
+
if (o5 === 0)
|
|
151709
|
+
break e;
|
|
151710
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151711
|
+
}
|
|
151712
|
+
if ((65535 & u5) != (u5 >>> 16 ^ 65535)) {
|
|
151713
|
+
e5.msg = "invalid stored block lengths", r6.mode = 30;
|
|
151714
|
+
break;
|
|
151715
|
+
}
|
|
151716
|
+
if (r6.length = 65535 & u5, l5 = u5 = 0, r6.mode = 15, t7 === 6)
|
|
151717
|
+
break e;
|
|
151718
|
+
case 15:
|
|
151719
|
+
r6.mode = 16;
|
|
151720
|
+
case 16:
|
|
151721
|
+
if (d5 = r6.length) {
|
|
151722
|
+
if (o5 < d5 && (d5 = o5), h6 < d5 && (d5 = h6), d5 === 0)
|
|
151723
|
+
break e;
|
|
151724
|
+
I.arraySet(i6, n5, s5, d5, a6), o5 -= d5, s5 += d5, h6 -= d5, a6 += d5, r6.length -= d5;
|
|
151725
|
+
break;
|
|
151726
|
+
}
|
|
151727
|
+
r6.mode = 12;
|
|
151728
|
+
break;
|
|
151729
|
+
case 17:
|
|
151730
|
+
for (; l5 < 14; ) {
|
|
151731
|
+
if (o5 === 0)
|
|
151732
|
+
break e;
|
|
151733
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151734
|
+
}
|
|
151735
|
+
if (r6.nlen = 257 + (31 & u5), u5 >>>= 5, l5 -= 5, r6.ndist = 1 + (31 & u5), u5 >>>= 5, l5 -= 5, r6.ncode = 4 + (15 & u5), u5 >>>= 4, l5 -= 4, 286 < r6.nlen || 30 < r6.ndist) {
|
|
151736
|
+
e5.msg = "too many length or distance symbols", r6.mode = 30;
|
|
151737
|
+
break;
|
|
151738
|
+
}
|
|
151739
|
+
r6.have = 0, r6.mode = 18;
|
|
151740
|
+
case 18:
|
|
151741
|
+
for (; r6.have < r6.ncode; ) {
|
|
151742
|
+
for (; l5 < 3; ) {
|
|
151743
|
+
if (o5 === 0)
|
|
151744
|
+
break e;
|
|
151745
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151746
|
+
}
|
|
151747
|
+
r6.lens[A[r6.have++]] = 7 & u5, u5 >>>= 3, l5 -= 3;
|
|
151748
|
+
}
|
|
151749
|
+
for (; r6.have < 19; )
|
|
151750
|
+
r6.lens[A[r6.have++]] = 0;
|
|
151751
|
+
if (r6.lencode = r6.lendyn, r6.lenbits = 7, S = { bits: r6.lenbits }, x = T5(0, r6.lens, 0, 19, r6.lencode, 0, r6.work, S), r6.lenbits = S.bits, x) {
|
|
151752
|
+
e5.msg = "invalid code lengths set", r6.mode = 30;
|
|
151753
|
+
break;
|
|
151754
|
+
}
|
|
151755
|
+
r6.have = 0, r6.mode = 19;
|
|
151756
|
+
case 19:
|
|
151757
|
+
for (; r6.have < r6.nlen + r6.ndist; ) {
|
|
151758
|
+
for (; g = (C5 = r6.lencode[u5 & (1 << r6.lenbits) - 1]) >>> 16 & 255, b5 = 65535 & C5, !((_5 = C5 >>> 24) <= l5); ) {
|
|
151759
|
+
if (o5 === 0)
|
|
151760
|
+
break e;
|
|
151761
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151762
|
+
}
|
|
151763
|
+
if (b5 < 16)
|
|
151764
|
+
u5 >>>= _5, l5 -= _5, r6.lens[r6.have++] = b5;
|
|
151765
|
+
else {
|
|
151766
|
+
if (b5 === 16) {
|
|
151767
|
+
for (z = _5 + 2; l5 < z; ) {
|
|
151768
|
+
if (o5 === 0)
|
|
151769
|
+
break e;
|
|
151770
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151771
|
+
}
|
|
151772
|
+
if (u5 >>>= _5, l5 -= _5, r6.have === 0) {
|
|
151773
|
+
e5.msg = "invalid bit length repeat", r6.mode = 30;
|
|
151774
|
+
break;
|
|
151775
|
+
}
|
|
151776
|
+
k = r6.lens[r6.have - 1], d5 = 3 + (3 & u5), u5 >>>= 2, l5 -= 2;
|
|
151777
|
+
} else if (b5 === 17) {
|
|
151778
|
+
for (z = _5 + 3; l5 < z; ) {
|
|
151779
|
+
if (o5 === 0)
|
|
151780
|
+
break e;
|
|
151781
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151782
|
+
}
|
|
151783
|
+
l5 -= _5, k = 0, d5 = 3 + (7 & (u5 >>>= _5)), u5 >>>= 3, l5 -= 3;
|
|
151784
|
+
} else {
|
|
151785
|
+
for (z = _5 + 7; l5 < z; ) {
|
|
151786
|
+
if (o5 === 0)
|
|
151787
|
+
break e;
|
|
151788
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151789
|
+
}
|
|
151790
|
+
l5 -= _5, k = 0, d5 = 11 + (127 & (u5 >>>= _5)), u5 >>>= 7, l5 -= 7;
|
|
151791
|
+
}
|
|
151792
|
+
if (r6.have + d5 > r6.nlen + r6.ndist) {
|
|
151793
|
+
e5.msg = "invalid bit length repeat", r6.mode = 30;
|
|
151794
|
+
break;
|
|
151795
|
+
}
|
|
151796
|
+
for (; d5--; )
|
|
151797
|
+
r6.lens[r6.have++] = k;
|
|
151798
|
+
}
|
|
151799
|
+
}
|
|
151800
|
+
if (r6.mode === 30)
|
|
151801
|
+
break;
|
|
151802
|
+
if (r6.lens[256] === 0) {
|
|
151803
|
+
e5.msg = "invalid code -- missing end-of-block", r6.mode = 30;
|
|
151804
|
+
break;
|
|
151805
|
+
}
|
|
151806
|
+
if (r6.lenbits = 9, S = { bits: r6.lenbits }, x = T5(D5, r6.lens, 0, r6.nlen, r6.lencode, 0, r6.work, S), r6.lenbits = S.bits, x) {
|
|
151807
|
+
e5.msg = "invalid literal/lengths set", r6.mode = 30;
|
|
151808
|
+
break;
|
|
151809
|
+
}
|
|
151810
|
+
if (r6.distbits = 6, r6.distcode = r6.distdyn, S = { bits: r6.distbits }, x = T5(F5, r6.lens, r6.nlen, r6.ndist, r6.distcode, 0, r6.work, S), r6.distbits = S.bits, x) {
|
|
151811
|
+
e5.msg = "invalid distances set", r6.mode = 30;
|
|
151812
|
+
break;
|
|
151813
|
+
}
|
|
151814
|
+
if (r6.mode = 20, t7 === 6)
|
|
151815
|
+
break e;
|
|
151816
|
+
case 20:
|
|
151817
|
+
r6.mode = 21;
|
|
151818
|
+
case 21:
|
|
151819
|
+
if (6 <= o5 && 258 <= h6) {
|
|
151820
|
+
e5.next_out = a6, e5.avail_out = h6, e5.next_in = s5, e5.avail_in = o5, r6.hold = u5, r6.bits = l5, R(e5, c5), a6 = e5.next_out, i6 = e5.output, h6 = e5.avail_out, s5 = e5.next_in, n5 = e5.input, o5 = e5.avail_in, u5 = r6.hold, l5 = r6.bits, r6.mode === 12 && (r6.back = -1);
|
|
151821
|
+
break;
|
|
151822
|
+
}
|
|
151823
|
+
for (r6.back = 0; g = (C5 = r6.lencode[u5 & (1 << r6.lenbits) - 1]) >>> 16 & 255, b5 = 65535 & C5, !((_5 = C5 >>> 24) <= l5); ) {
|
|
151824
|
+
if (o5 === 0)
|
|
151825
|
+
break e;
|
|
151826
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151827
|
+
}
|
|
151828
|
+
if (g && (240 & g) == 0) {
|
|
151829
|
+
for (v = _5, y = g, w = b5; g = (C5 = r6.lencode[w + ((u5 & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b5 = 65535 & C5, !(v + (_5 = C5 >>> 24) <= l5); ) {
|
|
151830
|
+
if (o5 === 0)
|
|
151831
|
+
break e;
|
|
151832
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151833
|
+
}
|
|
151834
|
+
u5 >>>= v, l5 -= v, r6.back += v;
|
|
151835
|
+
}
|
|
151836
|
+
if (u5 >>>= _5, l5 -= _5, r6.back += _5, r6.length = b5, g === 0) {
|
|
151837
|
+
r6.mode = 26;
|
|
151838
|
+
break;
|
|
151839
|
+
}
|
|
151840
|
+
if (32 & g) {
|
|
151841
|
+
r6.back = -1, r6.mode = 12;
|
|
151842
|
+
break;
|
|
151843
|
+
}
|
|
151844
|
+
if (64 & g) {
|
|
151845
|
+
e5.msg = "invalid literal/length code", r6.mode = 30;
|
|
151846
|
+
break;
|
|
151847
|
+
}
|
|
151848
|
+
r6.extra = 15 & g, r6.mode = 22;
|
|
151849
|
+
case 22:
|
|
151850
|
+
if (r6.extra) {
|
|
151851
|
+
for (z = r6.extra; l5 < z; ) {
|
|
151852
|
+
if (o5 === 0)
|
|
151853
|
+
break e;
|
|
151854
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151855
|
+
}
|
|
151856
|
+
r6.length += u5 & (1 << r6.extra) - 1, u5 >>>= r6.extra, l5 -= r6.extra, r6.back += r6.extra;
|
|
151857
|
+
}
|
|
151858
|
+
r6.was = r6.length, r6.mode = 23;
|
|
151859
|
+
case 23:
|
|
151860
|
+
for (; g = (C5 = r6.distcode[u5 & (1 << r6.distbits) - 1]) >>> 16 & 255, b5 = 65535 & C5, !((_5 = C5 >>> 24) <= l5); ) {
|
|
151861
|
+
if (o5 === 0)
|
|
151862
|
+
break e;
|
|
151863
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151864
|
+
}
|
|
151865
|
+
if ((240 & g) == 0) {
|
|
151866
|
+
for (v = _5, y = g, w = b5; g = (C5 = r6.distcode[w + ((u5 & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b5 = 65535 & C5, !(v + (_5 = C5 >>> 24) <= l5); ) {
|
|
151867
|
+
if (o5 === 0)
|
|
151868
|
+
break e;
|
|
151869
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151870
|
+
}
|
|
151871
|
+
u5 >>>= v, l5 -= v, r6.back += v;
|
|
151872
|
+
}
|
|
151873
|
+
if (u5 >>>= _5, l5 -= _5, r6.back += _5, 64 & g) {
|
|
151874
|
+
e5.msg = "invalid distance code", r6.mode = 30;
|
|
151875
|
+
break;
|
|
151876
|
+
}
|
|
151877
|
+
r6.offset = b5, r6.extra = 15 & g, r6.mode = 24;
|
|
151878
|
+
case 24:
|
|
151879
|
+
if (r6.extra) {
|
|
151880
|
+
for (z = r6.extra; l5 < z; ) {
|
|
151881
|
+
if (o5 === 0)
|
|
151882
|
+
break e;
|
|
151883
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151884
|
+
}
|
|
151885
|
+
r6.offset += u5 & (1 << r6.extra) - 1, u5 >>>= r6.extra, l5 -= r6.extra, r6.back += r6.extra;
|
|
151886
|
+
}
|
|
151887
|
+
if (r6.offset > r6.dmax) {
|
|
151888
|
+
e5.msg = "invalid distance too far back", r6.mode = 30;
|
|
151889
|
+
break;
|
|
151890
|
+
}
|
|
151891
|
+
r6.mode = 25;
|
|
151892
|
+
case 25:
|
|
151893
|
+
if (h6 === 0)
|
|
151894
|
+
break e;
|
|
151895
|
+
if (d5 = c5 - h6, r6.offset > d5) {
|
|
151896
|
+
if ((d5 = r6.offset - d5) > r6.whave && r6.sane) {
|
|
151897
|
+
e5.msg = "invalid distance too far back", r6.mode = 30;
|
|
151898
|
+
break;
|
|
151899
|
+
}
|
|
151900
|
+
p5 = d5 > r6.wnext ? (d5 -= r6.wnext, r6.wsize - d5) : r6.wnext - d5, d5 > r6.length && (d5 = r6.length), m5 = r6.window;
|
|
151901
|
+
} else
|
|
151902
|
+
m5 = i6, p5 = a6 - r6.offset, d5 = r6.length;
|
|
151903
|
+
for (h6 < d5 && (d5 = h6), h6 -= d5, r6.length -= d5; i6[a6++] = m5[p5++], --d5; )
|
|
151904
|
+
;
|
|
151905
|
+
r6.length === 0 && (r6.mode = 21);
|
|
151906
|
+
break;
|
|
151907
|
+
case 26:
|
|
151908
|
+
if (h6 === 0)
|
|
151909
|
+
break e;
|
|
151910
|
+
i6[a6++] = r6.length, h6--, r6.mode = 21;
|
|
151911
|
+
break;
|
|
151912
|
+
case 27:
|
|
151913
|
+
if (r6.wrap) {
|
|
151914
|
+
for (; l5 < 32; ) {
|
|
151915
|
+
if (o5 === 0)
|
|
151916
|
+
break e;
|
|
151917
|
+
o5--, u5 |= n5[s5++] << l5, l5 += 8;
|
|
151918
|
+
}
|
|
151919
|
+
if (c5 -= h6, e5.total_out += c5, r6.total += c5, c5 && (e5.adler = r6.check = r6.flags ? B(r6.check, i6, c5, a6 - c5) : O(r6.check, i6, c5, a6 - c5)), c5 = h6, (r6.flags ? u5 : L5(u5)) !== r6.check) {
|
|
151920
|
+
e5.msg = "incorrect data check", r6.mode = 30;
|
|
151921
|
+
break;
|
|
151922
|
+
}
|
|
151923
|
+
l5 = u5 = 0;
|
|
151924
|
+
}
|
|
151925
|
+
r6.mode = 28;
|
|
151926
|
+
case 28:
|
|
151927
|
+
if (r6.wrap && r6.flags) {
|
|
151928
|
+
for (; l5 < 32; ) {
|
|
151929
|
+
if (o5 === 0)
|
|
151930
|
+
break e;
|
|
151931
|
+
o5--, u5 += n5[s5++] << l5, l5 += 8;
|
|
151932
|
+
}
|
|
151933
|
+
if (u5 !== (4294967295 & r6.total)) {
|
|
151934
|
+
e5.msg = "incorrect length check", r6.mode = 30;
|
|
151935
|
+
break;
|
|
151936
|
+
}
|
|
151937
|
+
l5 = u5 = 0;
|
|
151938
|
+
}
|
|
151939
|
+
r6.mode = 29;
|
|
151940
|
+
case 29:
|
|
151941
|
+
x = 1;
|
|
151942
|
+
break e;
|
|
151943
|
+
case 30:
|
|
151944
|
+
x = -3;
|
|
151945
|
+
break e;
|
|
151946
|
+
case 31:
|
|
151947
|
+
return -4;
|
|
151948
|
+
case 32:
|
|
151949
|
+
default:
|
|
151950
|
+
return U;
|
|
151951
|
+
}
|
|
151952
|
+
return e5.next_out = a6, e5.avail_out = h6, e5.next_in = s5, e5.avail_in = o5, r6.hold = u5, r6.bits = l5, (r6.wsize || c5 !== e5.avail_out && r6.mode < 30 && (r6.mode < 27 || t7 !== 4)) && Z5(e5, e5.output, e5.next_out, c5 - e5.avail_out) ? (r6.mode = 31, -4) : (f5 -= e5.avail_in, c5 -= e5.avail_out, e5.total_in += f5, e5.total_out += c5, r6.total += c5, r6.wrap && c5 && (e5.adler = r6.check = r6.flags ? B(r6.check, i6, c5, e5.next_out - c5) : O(r6.check, i6, c5, e5.next_out - c5)), e5.data_type = r6.bits + (r6.last ? 64 : 0) + (r6.mode === 12 ? 128 : 0) + (r6.mode === 20 || r6.mode === 15 ? 256 : 0), (f5 == 0 && c5 === 0 || t7 === 4) && x === N5 && (x = -5), x);
|
|
151953
|
+
}, r5.inflateEnd = function(e5) {
|
|
151954
|
+
if (!e5 || !e5.state)
|
|
151955
|
+
return U;
|
|
151956
|
+
var t7 = e5.state;
|
|
151957
|
+
return t7.window && (t7.window = null), e5.state = null, N5;
|
|
151958
|
+
}, r5.inflateGetHeader = function(e5, t7) {
|
|
151959
|
+
var r6;
|
|
151960
|
+
return e5 && e5.state ? (2 & (r6 = e5.state).wrap) == 0 ? U : ((r6.head = t7).done = false, N5) : U;
|
|
151961
|
+
}, r5.inflateSetDictionary = function(e5, t7) {
|
|
151962
|
+
var r6, n5 = t7.length;
|
|
151963
|
+
return e5 && e5.state ? (r6 = e5.state).wrap !== 0 && r6.mode !== 11 ? U : r6.mode === 11 && O(1, t7, n5, 0) !== r6.check ? -3 : Z5(e5, t7, n5, n5) ? (r6.mode = 31, -4) : (r6.havedict = 1, N5) : U;
|
|
151964
|
+
}, r5.inflateInfo = "pako inflate (from Nodeca project)";
|
|
151965
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t6, r5) {
|
|
151966
|
+
var D5 = e("../utils/common"), F5 = [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], N5 = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P5 = [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];
|
|
151967
|
+
t6.exports = function(e5, t7, r6, n, i5, s, a5, o) {
|
|
151968
|
+
var h5, u, l, f, c, d5, p5, m5, _5, g = o.bits, b5 = 0, v = 0, y = 0, w = 0, k = 0, x = 0, S = 0, z = 0, C5 = 0, E = 0, A = null, I = 0, O = new D5.Buf16(16), B = new D5.Buf16(16), R = null, T5 = 0;
|
|
151969
|
+
for (b5 = 0; b5 <= 15; b5++)
|
|
151970
|
+
O[b5] = 0;
|
|
151971
|
+
for (v = 0; v < n; v++)
|
|
151972
|
+
O[t7[r6 + v]]++;
|
|
151973
|
+
for (k = g, w = 15; 1 <= w && O[w] === 0; w--)
|
|
151974
|
+
;
|
|
151975
|
+
if (w < k && (k = w), w === 0)
|
|
151976
|
+
return i5[s++] = 20971520, i5[s++] = 20971520, o.bits = 1, 0;
|
|
151977
|
+
for (y = 1; y < w && O[y] === 0; y++)
|
|
151978
|
+
;
|
|
151979
|
+
for (k < y && (k = y), b5 = z = 1; b5 <= 15; b5++)
|
|
151980
|
+
if (z <<= 1, (z -= O[b5]) < 0)
|
|
151981
|
+
return -1;
|
|
151982
|
+
if (0 < z && (e5 === 0 || w !== 1))
|
|
151983
|
+
return -1;
|
|
151984
|
+
for (B[1] = 0, b5 = 1; b5 < 15; b5++)
|
|
151985
|
+
B[b5 + 1] = B[b5] + O[b5];
|
|
151986
|
+
for (v = 0; v < n; v++)
|
|
151987
|
+
t7[r6 + v] !== 0 && (a5[B[t7[r6 + v]]++] = v);
|
|
151988
|
+
if (d5 = e5 === 0 ? (A = R = a5, 19) : e5 === 1 ? (A = F5, I -= 257, R = N5, T5 -= 257, 256) : (A = U, R = P5, -1), b5 = y, c = s, S = v = E = 0, l = -1, f = (C5 = 1 << (x = k)) - 1, e5 === 1 && 852 < C5 || e5 === 2 && 592 < C5)
|
|
151989
|
+
return 1;
|
|
151990
|
+
for (; ; ) {
|
|
151991
|
+
for (p5 = b5 - S, _5 = a5[v] < d5 ? (m5 = 0, a5[v]) : a5[v] > d5 ? (m5 = R[T5 + a5[v]], A[I + a5[v]]) : (m5 = 96, 0), h5 = 1 << b5 - S, y = u = 1 << x; i5[c + (E >> S) + (u -= h5)] = p5 << 24 | m5 << 16 | _5 | 0, u !== 0; )
|
|
151992
|
+
;
|
|
151993
|
+
for (h5 = 1 << b5 - 1; E & h5; )
|
|
151994
|
+
h5 >>= 1;
|
|
151995
|
+
if (h5 !== 0 ? (E &= h5 - 1, E += h5) : E = 0, v++, --O[b5] == 0) {
|
|
151996
|
+
if (b5 === w)
|
|
151997
|
+
break;
|
|
151998
|
+
b5 = t7[r6 + a5[v]];
|
|
151999
|
+
}
|
|
152000
|
+
if (k < b5 && (E & f) !== l) {
|
|
152001
|
+
for (S === 0 && (S = k), c += y, z = 1 << (x = b5 - S); x + S < w && !((z -= O[x + S]) <= 0); )
|
|
152002
|
+
x++, z <<= 1;
|
|
152003
|
+
if (C5 += 1 << x, e5 === 1 && 852 < C5 || e5 === 2 && 592 < C5)
|
|
152004
|
+
return 1;
|
|
152005
|
+
i5[l = E & f] = k << 24 | x << 16 | c - s | 0;
|
|
152006
|
+
}
|
|
152007
|
+
}
|
|
152008
|
+
return E !== 0 && (i5[c + E] = b5 - S << 24 | 64 << 16 | 0), o.bits = k, 0;
|
|
152009
|
+
};
|
|
152010
|
+
}, { "../utils/common": 41 }], 51: [function(e, t6, r5) {
|
|
152011
|
+
t6.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" };
|
|
152012
|
+
}, {}], 52: [function(e, t6, r5) {
|
|
152013
|
+
var i5 = e("../utils/common"), o = 0, h5 = 1;
|
|
152014
|
+
function n(e5) {
|
|
152015
|
+
for (var t7 = e5.length; 0 <= --t7; )
|
|
152016
|
+
e5[t7] = 0;
|
|
152017
|
+
}
|
|
152018
|
+
var s = 0, a5 = 29, u = 256, l = u + 1 + a5, f = 30, c = 19, _5 = 2 * l + 1, g = 15, d5 = 16, p5 = 7, m5 = 256, b5 = 16, v = 17, y = 18, w = [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], k = [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], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z = new Array(2 * (l + 2));
|
|
152019
|
+
n(z);
|
|
152020
|
+
var C5 = new Array(2 * f);
|
|
152021
|
+
n(C5);
|
|
152022
|
+
var E = new Array(512);
|
|
152023
|
+
n(E);
|
|
152024
|
+
var A = new Array(256);
|
|
152025
|
+
n(A);
|
|
152026
|
+
var I = new Array(a5);
|
|
152027
|
+
n(I);
|
|
152028
|
+
var O, B, R, T5 = new Array(f);
|
|
152029
|
+
function D5(e5, t7, r6, n5, i6) {
|
|
152030
|
+
this.static_tree = e5, this.extra_bits = t7, this.extra_base = r6, this.elems = n5, this.max_length = i6, this.has_stree = e5 && e5.length;
|
|
152031
|
+
}
|
|
152032
|
+
function F5(e5, t7) {
|
|
152033
|
+
this.dyn_tree = e5, this.max_code = 0, this.stat_desc = t7;
|
|
152034
|
+
}
|
|
152035
|
+
function N5(e5) {
|
|
152036
|
+
return e5 < 256 ? E[e5] : E[256 + (e5 >>> 7)];
|
|
152037
|
+
}
|
|
152038
|
+
function U(e5, t7) {
|
|
152039
|
+
e5.pending_buf[e5.pending++] = 255 & t7, e5.pending_buf[e5.pending++] = t7 >>> 8 & 255;
|
|
152040
|
+
}
|
|
152041
|
+
function P5(e5, t7, r6) {
|
|
152042
|
+
e5.bi_valid > d5 - r6 ? (e5.bi_buf |= t7 << e5.bi_valid & 65535, U(e5, e5.bi_buf), e5.bi_buf = t7 >> d5 - e5.bi_valid, e5.bi_valid += r6 - d5) : (e5.bi_buf |= t7 << e5.bi_valid & 65535, e5.bi_valid += r6);
|
|
152043
|
+
}
|
|
152044
|
+
function L5(e5, t7, r6) {
|
|
152045
|
+
P5(e5, r6[2 * t7], r6[2 * t7 + 1]);
|
|
152046
|
+
}
|
|
152047
|
+
function j5(e5, t7) {
|
|
152048
|
+
for (var r6 = 0; r6 |= 1 & e5, e5 >>>= 1, r6 <<= 1, 0 < --t7; )
|
|
152049
|
+
;
|
|
152050
|
+
return r6 >>> 1;
|
|
152051
|
+
}
|
|
152052
|
+
function Z5(e5, t7, r6) {
|
|
152053
|
+
var n5, i6, s5 = new Array(g + 1), a6 = 0;
|
|
152054
|
+
for (n5 = 1; n5 <= g; n5++)
|
|
152055
|
+
s5[n5] = a6 = a6 + r6[n5 - 1] << 1;
|
|
152056
|
+
for (i6 = 0; i6 <= t7; i6++) {
|
|
152057
|
+
var o5 = e5[2 * i6 + 1];
|
|
152058
|
+
o5 !== 0 && (e5[2 * i6] = j5(s5[o5]++, o5));
|
|
152059
|
+
}
|
|
152060
|
+
}
|
|
152061
|
+
function W5(e5) {
|
|
152062
|
+
var t7;
|
|
152063
|
+
for (t7 = 0; t7 < l; t7++)
|
|
152064
|
+
e5.dyn_ltree[2 * t7] = 0;
|
|
152065
|
+
for (t7 = 0; t7 < f; t7++)
|
|
152066
|
+
e5.dyn_dtree[2 * t7] = 0;
|
|
152067
|
+
for (t7 = 0; t7 < c; t7++)
|
|
152068
|
+
e5.bl_tree[2 * t7] = 0;
|
|
152069
|
+
e5.dyn_ltree[2 * m5] = 1, e5.opt_len = e5.static_len = 0, e5.last_lit = e5.matches = 0;
|
|
152070
|
+
}
|
|
152071
|
+
function M(e5) {
|
|
152072
|
+
8 < e5.bi_valid ? U(e5, e5.bi_buf) : 0 < e5.bi_valid && (e5.pending_buf[e5.pending++] = e5.bi_buf), e5.bi_buf = 0, e5.bi_valid = 0;
|
|
152073
|
+
}
|
|
152074
|
+
function H(e5, t7, r6, n5) {
|
|
152075
|
+
var i6 = 2 * t7, s5 = 2 * r6;
|
|
152076
|
+
return e5[i6] < e5[s5] || e5[i6] === e5[s5] && n5[t7] <= n5[r6];
|
|
152077
|
+
}
|
|
152078
|
+
function G5(e5, t7, r6) {
|
|
152079
|
+
for (var n5 = e5.heap[r6], i6 = r6 << 1; i6 <= e5.heap_len && (i6 < e5.heap_len && H(t7, e5.heap[i6 + 1], e5.heap[i6], e5.depth) && i6++, !H(t7, n5, e5.heap[i6], e5.depth)); )
|
|
152080
|
+
e5.heap[r6] = e5.heap[i6], r6 = i6, i6 <<= 1;
|
|
152081
|
+
e5.heap[r6] = n5;
|
|
152082
|
+
}
|
|
152083
|
+
function K(e5, t7, r6) {
|
|
152084
|
+
var n5, i6, s5, a6, o5 = 0;
|
|
152085
|
+
if (e5.last_lit !== 0)
|
|
152086
|
+
for (; n5 = e5.pending_buf[e5.d_buf + 2 * o5] << 8 | e5.pending_buf[e5.d_buf + 2 * o5 + 1], i6 = e5.pending_buf[e5.l_buf + o5], o5++, n5 === 0 ? L5(e5, i6, t7) : (L5(e5, (s5 = A[i6]) + u + 1, t7), (a6 = w[s5]) !== 0 && P5(e5, i6 -= I[s5], a6), L5(e5, s5 = N5(--n5), r6), (a6 = k[s5]) !== 0 && P5(e5, n5 -= T5[s5], a6)), o5 < e5.last_lit; )
|
|
152087
|
+
;
|
|
152088
|
+
L5(e5, m5, t7);
|
|
152089
|
+
}
|
|
152090
|
+
function Y(e5, t7) {
|
|
152091
|
+
var r6, n5, i6, s5 = t7.dyn_tree, a6 = t7.stat_desc.static_tree, o5 = t7.stat_desc.has_stree, h6 = t7.stat_desc.elems, u5 = -1;
|
|
152092
|
+
for (e5.heap_len = 0, e5.heap_max = _5, r6 = 0; r6 < h6; r6++)
|
|
152093
|
+
s5[2 * r6] !== 0 ? (e5.heap[++e5.heap_len] = u5 = r6, e5.depth[r6] = 0) : s5[2 * r6 + 1] = 0;
|
|
152094
|
+
for (; e5.heap_len < 2; )
|
|
152095
|
+
s5[2 * (i6 = e5.heap[++e5.heap_len] = u5 < 2 ? ++u5 : 0)] = 1, e5.depth[i6] = 0, e5.opt_len--, o5 && (e5.static_len -= a6[2 * i6 + 1]);
|
|
152096
|
+
for (t7.max_code = u5, r6 = e5.heap_len >> 1; 1 <= r6; r6--)
|
|
152097
|
+
G5(e5, s5, r6);
|
|
152098
|
+
for (i6 = h6; r6 = e5.heap[1], e5.heap[1] = e5.heap[e5.heap_len--], G5(e5, s5, 1), n5 = e5.heap[1], e5.heap[--e5.heap_max] = r6, e5.heap[--e5.heap_max] = n5, s5[2 * i6] = s5[2 * r6] + s5[2 * n5], e5.depth[i6] = (e5.depth[r6] >= e5.depth[n5] ? e5.depth[r6] : e5.depth[n5]) + 1, s5[2 * r6 + 1] = s5[2 * n5 + 1] = i6, e5.heap[1] = i6++, G5(e5, s5, 1), 2 <= e5.heap_len; )
|
|
152099
|
+
;
|
|
152100
|
+
e5.heap[--e5.heap_max] = e5.heap[1], function(e6, t8) {
|
|
152101
|
+
var r7, n6, i7, s6, a7, o6, h7 = t8.dyn_tree, u6 = t8.max_code, l5 = t8.stat_desc.static_tree, f5 = t8.stat_desc.has_stree, c5 = t8.stat_desc.extra_bits, d6 = t8.stat_desc.extra_base, p6 = t8.stat_desc.max_length, m6 = 0;
|
|
152102
|
+
for (s6 = 0; s6 <= g; s6++)
|
|
152103
|
+
e6.bl_count[s6] = 0;
|
|
152104
|
+
for (h7[2 * e6.heap[e6.heap_max] + 1] = 0, r7 = e6.heap_max + 1; r7 < _5; r7++)
|
|
152105
|
+
p6 < (s6 = h7[2 * h7[2 * (n6 = e6.heap[r7]) + 1] + 1] + 1) && (s6 = p6, m6++), h7[2 * n6 + 1] = s6, u6 < n6 || (e6.bl_count[s6]++, a7 = 0, d6 <= n6 && (a7 = c5[n6 - d6]), o6 = h7[2 * n6], e6.opt_len += o6 * (s6 + a7), f5 && (e6.static_len += o6 * (l5[2 * n6 + 1] + a7)));
|
|
152106
|
+
if (m6 !== 0) {
|
|
152107
|
+
do {
|
|
152108
|
+
for (s6 = p6 - 1; e6.bl_count[s6] === 0; )
|
|
152109
|
+
s6--;
|
|
152110
|
+
e6.bl_count[s6]--, e6.bl_count[s6 + 1] += 2, e6.bl_count[p6]--, m6 -= 2;
|
|
152111
|
+
} while (0 < m6);
|
|
152112
|
+
for (s6 = p6; s6 !== 0; s6--)
|
|
152113
|
+
for (n6 = e6.bl_count[s6]; n6 !== 0; )
|
|
152114
|
+
u6 < (i7 = e6.heap[--r7]) || (h7[2 * i7 + 1] !== s6 && (e6.opt_len += (s6 - h7[2 * i7 + 1]) * h7[2 * i7], h7[2 * i7 + 1] = s6), n6--);
|
|
152115
|
+
}
|
|
152116
|
+
}(e5, t7), Z5(s5, u5, e5.bl_count);
|
|
152117
|
+
}
|
|
152118
|
+
function X(e5, t7, r6) {
|
|
152119
|
+
var n5, i6, s5 = -1, a6 = t7[1], o5 = 0, h6 = 7, u5 = 4;
|
|
152120
|
+
for (a6 === 0 && (h6 = 138, u5 = 3), t7[2 * (r6 + 1) + 1] = 65535, n5 = 0; n5 <= r6; n5++)
|
|
152121
|
+
i6 = a6, a6 = t7[2 * (n5 + 1) + 1], ++o5 < h6 && i6 === a6 || (o5 < u5 ? e5.bl_tree[2 * i6] += o5 : i6 !== 0 ? (i6 !== s5 && e5.bl_tree[2 * i6]++, e5.bl_tree[2 * b5]++) : o5 <= 10 ? e5.bl_tree[2 * v]++ : e5.bl_tree[2 * y]++, s5 = i6, u5 = (o5 = 0) === a6 ? (h6 = 138, 3) : i6 === a6 ? (h6 = 6, 3) : (h6 = 7, 4));
|
|
152122
|
+
}
|
|
152123
|
+
function V(e5, t7, r6) {
|
|
152124
|
+
var n5, i6, s5 = -1, a6 = t7[1], o5 = 0, h6 = 7, u5 = 4;
|
|
152125
|
+
for (a6 === 0 && (h6 = 138, u5 = 3), n5 = 0; n5 <= r6; n5++)
|
|
152126
|
+
if (i6 = a6, a6 = t7[2 * (n5 + 1) + 1], !(++o5 < h6 && i6 === a6)) {
|
|
152127
|
+
if (o5 < u5)
|
|
152128
|
+
for (; L5(e5, i6, e5.bl_tree), --o5 != 0; )
|
|
152129
|
+
;
|
|
152130
|
+
else
|
|
152131
|
+
i6 !== 0 ? (i6 !== s5 && (L5(e5, i6, e5.bl_tree), o5--), L5(e5, b5, e5.bl_tree), P5(e5, o5 - 3, 2)) : o5 <= 10 ? (L5(e5, v, e5.bl_tree), P5(e5, o5 - 3, 3)) : (L5(e5, y, e5.bl_tree), P5(e5, o5 - 11, 7));
|
|
152132
|
+
s5 = i6, u5 = (o5 = 0) === a6 ? (h6 = 138, 3) : i6 === a6 ? (h6 = 6, 3) : (h6 = 7, 4);
|
|
152133
|
+
}
|
|
152134
|
+
}
|
|
152135
|
+
n(T5);
|
|
152136
|
+
var q = false;
|
|
152137
|
+
function J(e5, t7, r6, n5) {
|
|
152138
|
+
P5(e5, (s << 1) + (n5 ? 1 : 0), 3), function(e6, t8, r7, n6) {
|
|
152139
|
+
M(e6), n6 && (U(e6, r7), U(e6, ~r7)), i5.arraySet(e6.pending_buf, e6.window, t8, r7, e6.pending), e6.pending += r7;
|
|
152140
|
+
}(e5, t7, r6, true);
|
|
152141
|
+
}
|
|
152142
|
+
r5._tr_init = function(e5) {
|
|
152143
|
+
q || (function() {
|
|
152144
|
+
var e6, t7, r6, n5, i6, s5 = new Array(g + 1);
|
|
152145
|
+
for (n5 = r6 = 0; n5 < a5 - 1; n5++)
|
|
152146
|
+
for (I[n5] = r6, e6 = 0; e6 < 1 << w[n5]; e6++)
|
|
152147
|
+
A[r6++] = n5;
|
|
152148
|
+
for (A[r6 - 1] = n5, n5 = i6 = 0; n5 < 16; n5++)
|
|
152149
|
+
for (T5[n5] = i6, e6 = 0; e6 < 1 << k[n5]; e6++)
|
|
152150
|
+
E[i6++] = n5;
|
|
152151
|
+
for (i6 >>= 7; n5 < f; n5++)
|
|
152152
|
+
for (T5[n5] = i6 << 7, e6 = 0; e6 < 1 << k[n5] - 7; e6++)
|
|
152153
|
+
E[256 + i6++] = n5;
|
|
152154
|
+
for (t7 = 0; t7 <= g; t7++)
|
|
152155
|
+
s5[t7] = 0;
|
|
152156
|
+
for (e6 = 0; e6 <= 143; )
|
|
152157
|
+
z[2 * e6 + 1] = 8, e6++, s5[8]++;
|
|
152158
|
+
for (; e6 <= 255; )
|
|
152159
|
+
z[2 * e6 + 1] = 9, e6++, s5[9]++;
|
|
152160
|
+
for (; e6 <= 279; )
|
|
152161
|
+
z[2 * e6 + 1] = 7, e6++, s5[7]++;
|
|
152162
|
+
for (; e6 <= 287; )
|
|
152163
|
+
z[2 * e6 + 1] = 8, e6++, s5[8]++;
|
|
152164
|
+
for (Z5(z, l + 1, s5), e6 = 0; e6 < f; e6++)
|
|
152165
|
+
C5[2 * e6 + 1] = 5, C5[2 * e6] = j5(e6, 5);
|
|
152166
|
+
O = new D5(z, w, u + 1, l, g), B = new D5(C5, k, 0, f, g), R = new D5(new Array(0), x, 0, c, p5);
|
|
152167
|
+
}(), q = true), e5.l_desc = new F5(e5.dyn_ltree, O), e5.d_desc = new F5(e5.dyn_dtree, B), e5.bl_desc = new F5(e5.bl_tree, R), e5.bi_buf = 0, e5.bi_valid = 0, W5(e5);
|
|
152168
|
+
}, r5._tr_stored_block = J, r5._tr_flush_block = function(e5, t7, r6, n5) {
|
|
152169
|
+
var i6, s5, a6 = 0;
|
|
152170
|
+
0 < e5.level ? (e5.strm.data_type === 2 && (e5.strm.data_type = function(e6) {
|
|
152171
|
+
var t8, r7 = 4093624447;
|
|
152172
|
+
for (t8 = 0; t8 <= 31; t8++, r7 >>>= 1)
|
|
152173
|
+
if (1 & r7 && e6.dyn_ltree[2 * t8] !== 0)
|
|
152174
|
+
return o;
|
|
152175
|
+
if (e6.dyn_ltree[18] !== 0 || e6.dyn_ltree[20] !== 0 || e6.dyn_ltree[26] !== 0)
|
|
152176
|
+
return h5;
|
|
152177
|
+
for (t8 = 32; t8 < u; t8++)
|
|
152178
|
+
if (e6.dyn_ltree[2 * t8] !== 0)
|
|
152179
|
+
return h5;
|
|
152180
|
+
return o;
|
|
152181
|
+
}(e5)), Y(e5, e5.l_desc), Y(e5, e5.d_desc), a6 = function(e6) {
|
|
152182
|
+
var t8;
|
|
152183
|
+
for (X(e6, e6.dyn_ltree, e6.l_desc.max_code), X(e6, e6.dyn_dtree, e6.d_desc.max_code), Y(e6, e6.bl_desc), t8 = c - 1; 3 <= t8 && e6.bl_tree[2 * S[t8] + 1] === 0; t8--)
|
|
152184
|
+
;
|
|
152185
|
+
return e6.opt_len += 3 * (t8 + 1) + 5 + 5 + 4, t8;
|
|
152186
|
+
}(e5), i6 = e5.opt_len + 3 + 7 >>> 3, (s5 = e5.static_len + 3 + 7 >>> 3) <= i6 && (i6 = s5)) : i6 = s5 = r6 + 5, r6 + 4 <= i6 && t7 !== -1 ? J(e5, t7, r6, n5) : e5.strategy === 4 || s5 === i6 ? (P5(e5, 2 + (n5 ? 1 : 0), 3), K(e5, z, C5)) : (P5(e5, 4 + (n5 ? 1 : 0), 3), function(e6, t8, r7, n6) {
|
|
152187
|
+
var i7;
|
|
152188
|
+
for (P5(e6, t8 - 257, 5), P5(e6, r7 - 1, 5), P5(e6, n6 - 4, 4), i7 = 0; i7 < n6; i7++)
|
|
152189
|
+
P5(e6, e6.bl_tree[2 * S[i7] + 1], 3);
|
|
152190
|
+
V(e6, e6.dyn_ltree, t8 - 1), V(e6, e6.dyn_dtree, r7 - 1);
|
|
152191
|
+
}(e5, e5.l_desc.max_code + 1, e5.d_desc.max_code + 1, a6 + 1), K(e5, e5.dyn_ltree, e5.dyn_dtree)), W5(e5), n5 && M(e5);
|
|
152192
|
+
}, r5._tr_tally = function(e5, t7, r6) {
|
|
152193
|
+
return e5.pending_buf[e5.d_buf + 2 * e5.last_lit] = t7 >>> 8 & 255, e5.pending_buf[e5.d_buf + 2 * e5.last_lit + 1] = 255 & t7, e5.pending_buf[e5.l_buf + e5.last_lit] = 255 & r6, e5.last_lit++, t7 === 0 ? e5.dyn_ltree[2 * r6]++ : (e5.matches++, t7--, e5.dyn_ltree[2 * (A[r6] + u + 1)]++, e5.dyn_dtree[2 * N5(t7)]++), e5.last_lit === e5.lit_bufsize - 1;
|
|
152194
|
+
}, r5._tr_align = function(e5) {
|
|
152195
|
+
P5(e5, 2, 3), L5(e5, m5, z), function(e6) {
|
|
152196
|
+
e6.bi_valid === 16 ? (U(e6, e6.bi_buf), e6.bi_buf = 0, e6.bi_valid = 0) : 8 <= e6.bi_valid && (e6.pending_buf[e6.pending++] = 255 & e6.bi_buf, e6.bi_buf >>= 8, e6.bi_valid -= 8);
|
|
152197
|
+
}(e5);
|
|
152198
|
+
};
|
|
152199
|
+
}, { "../utils/common": 41 }], 53: [function(e, t6, r5) {
|
|
152200
|
+
t6.exports = function() {
|
|
152201
|
+
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
152202
|
+
};
|
|
152203
|
+
}, {}], 54: [function(e, t6, r5) {
|
|
152204
|
+
(function(e5) {
|
|
152205
|
+
!function(r6, n) {
|
|
152206
|
+
if (!r6.setImmediate) {
|
|
152207
|
+
var i5, s, t7, a5, o = 1, h5 = {}, u = false, l = r6.document, e6 = Object.getPrototypeOf && Object.getPrototypeOf(r6);
|
|
152208
|
+
e6 = e6 && e6.setTimeout ? e6 : r6, i5 = {}.toString.call(r6.process) === "[object process]" ? function(e7) {
|
|
152209
|
+
process.nextTick(function() {
|
|
152210
|
+
c(e7);
|
|
152211
|
+
});
|
|
152212
|
+
} : function() {
|
|
152213
|
+
if (r6.postMessage && !r6.importScripts) {
|
|
152214
|
+
var e7 = true, t8 = r6.onmessage;
|
|
152215
|
+
return r6.onmessage = function() {
|
|
152216
|
+
e7 = false;
|
|
152217
|
+
}, r6.postMessage("", "*"), r6.onmessage = t8, e7;
|
|
152218
|
+
}
|
|
152219
|
+
}() ? (a5 = "setImmediate$" + Math.random() + "$", r6.addEventListener ? r6.addEventListener("message", d5, false) : r6.attachEvent("onmessage", d5), function(e7) {
|
|
152220
|
+
r6.postMessage(a5 + e7, "*");
|
|
152221
|
+
}) : r6.MessageChannel ? ((t7 = new MessageChannel()).port1.onmessage = function(e7) {
|
|
152222
|
+
c(e7.data);
|
|
152223
|
+
}, function(e7) {
|
|
152224
|
+
t7.port2.postMessage(e7);
|
|
152225
|
+
}) : l && "onreadystatechange" in l.createElement("script") ? (s = l.documentElement, function(e7) {
|
|
152226
|
+
var t8 = l.createElement("script");
|
|
152227
|
+
t8.onreadystatechange = function() {
|
|
152228
|
+
c(e7), t8.onreadystatechange = null, s.removeChild(t8), t8 = null;
|
|
152229
|
+
}, s.appendChild(t8);
|
|
152230
|
+
}) : function(e7) {
|
|
152231
|
+
setTimeout(c, 0, e7);
|
|
152232
|
+
}, e6.setImmediate = function(e7) {
|
|
152233
|
+
typeof e7 != "function" && (e7 = new Function("" + e7));
|
|
152234
|
+
for (var t8 = new Array(arguments.length - 1), r7 = 0; r7 < t8.length; r7++)
|
|
152235
|
+
t8[r7] = arguments[r7 + 1];
|
|
152236
|
+
var n5 = { callback: e7, args: t8 };
|
|
152237
|
+
return h5[o] = n5, i5(o), o++;
|
|
152238
|
+
}, e6.clearImmediate = f;
|
|
152239
|
+
}
|
|
152240
|
+
function f(e7) {
|
|
152241
|
+
delete h5[e7];
|
|
152242
|
+
}
|
|
152243
|
+
function c(e7) {
|
|
152244
|
+
if (u)
|
|
152245
|
+
setTimeout(c, 0, e7);
|
|
152246
|
+
else {
|
|
152247
|
+
var t8 = h5[e7];
|
|
152248
|
+
if (t8) {
|
|
152249
|
+
u = true;
|
|
152250
|
+
try {
|
|
152251
|
+
!function(e8) {
|
|
152252
|
+
var t9 = e8.callback, r7 = e8.args;
|
|
152253
|
+
switch (r7.length) {
|
|
152254
|
+
case 0:
|
|
152255
|
+
t9();
|
|
152256
|
+
break;
|
|
152257
|
+
case 1:
|
|
152258
|
+
t9(r7[0]);
|
|
152259
|
+
break;
|
|
152260
|
+
case 2:
|
|
152261
|
+
t9(r7[0], r7[1]);
|
|
152262
|
+
break;
|
|
152263
|
+
case 3:
|
|
152264
|
+
t9(r7[0], r7[1], r7[2]);
|
|
152265
|
+
break;
|
|
152266
|
+
default:
|
|
152267
|
+
t9.apply(n, r7);
|
|
152268
|
+
}
|
|
152269
|
+
}(t8);
|
|
152270
|
+
} finally {
|
|
152271
|
+
f(e7), u = false;
|
|
152272
|
+
}
|
|
152273
|
+
}
|
|
152274
|
+
}
|
|
152275
|
+
}
|
|
152276
|
+
function d5(e7) {
|
|
152277
|
+
e7.source === r6 && typeof e7.data == "string" && e7.data.indexOf(a5) === 0 && c(+e7.data.slice(a5.length));
|
|
152278
|
+
}
|
|
152279
|
+
}(typeof self == "undefined" ? e5 === void 0 ? this : e5 : self);
|
|
152280
|
+
}).call(this, typeof commonjsGlobal != "undefined" ? commonjsGlobal : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
|
|
152281
|
+
}, {}] }, {}, [10])(10);
|
|
152282
|
+
});
|
|
152283
|
+
})(jszip_min);
|
|
152284
|
+
var JSZip = jszip_min.exports;
|
|
152285
|
+
var FileSaver_min = { exports: {} };
|
|
152286
|
+
(function(module, exports) {
|
|
152287
|
+
(function(a5, b5) {
|
|
152288
|
+
b5();
|
|
152289
|
+
})(commonjsGlobal, function() {
|
|
152290
|
+
function b5(a6, b6) {
|
|
152291
|
+
return typeof b6 == "undefined" ? b6 = { autoBom: false } : typeof b6 != "object" && (console.warn("Deprecated: Expected third argument to be a object"), b6 = { autoBom: !b6 }), b6.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a6.type) ? new Blob(["\uFEFF", a6], { type: a6.type }) : a6;
|
|
152292
|
+
}
|
|
152293
|
+
function c(a6, b6, c5) {
|
|
152294
|
+
var d6 = new XMLHttpRequest();
|
|
152295
|
+
d6.open("GET", a6), d6.responseType = "blob", d6.onload = function() {
|
|
152296
|
+
g(d6.response, b6, c5);
|
|
152297
|
+
}, d6.onerror = function() {
|
|
152298
|
+
console.error("could not download file");
|
|
152299
|
+
}, d6.send();
|
|
152300
|
+
}
|
|
152301
|
+
function d5(a6) {
|
|
152302
|
+
var b6 = new XMLHttpRequest();
|
|
152303
|
+
b6.open("HEAD", a6, false);
|
|
152304
|
+
try {
|
|
152305
|
+
b6.send();
|
|
152306
|
+
} catch (a7) {
|
|
152307
|
+
}
|
|
152308
|
+
return 200 <= b6.status && 299 >= b6.status;
|
|
152309
|
+
}
|
|
152310
|
+
function e(a6) {
|
|
152311
|
+
try {
|
|
152312
|
+
a6.dispatchEvent(new MouseEvent("click"));
|
|
152313
|
+
} catch (c5) {
|
|
152314
|
+
var b6 = document.createEvent("MouseEvents");
|
|
152315
|
+
b6.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), a6.dispatchEvent(b6);
|
|
152316
|
+
}
|
|
152317
|
+
}
|
|
152318
|
+
var f = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof commonjsGlobal == "object" && commonjsGlobal.global === commonjsGlobal ? commonjsGlobal : void 0, a5 = f.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), g = f.saveAs || (typeof window != "object" || window !== f ? function() {
|
|
152319
|
+
} : "download" in HTMLAnchorElement.prototype && !a5 ? function(b6, g5, h5) {
|
|
152320
|
+
var i5 = f.URL || f.webkitURL, j5 = document.createElement("a");
|
|
152321
|
+
g5 = g5 || b6.name || "download", j5.download = g5, j5.rel = "noopener", typeof b6 == "string" ? (j5.href = b6, j5.origin === location.origin ? e(j5) : d5(j5.href) ? c(b6, g5, h5) : e(j5, j5.target = "_blank")) : (j5.href = i5.createObjectURL(b6), setTimeout(function() {
|
|
152322
|
+
i5.revokeObjectURL(j5.href);
|
|
152323
|
+
}, 4e4), setTimeout(function() {
|
|
152324
|
+
e(j5);
|
|
152325
|
+
}, 0));
|
|
152326
|
+
} : "msSaveOrOpenBlob" in navigator ? function(f5, g5, h5) {
|
|
152327
|
+
if (g5 = g5 || f5.name || "download", typeof f5 != "string")
|
|
152328
|
+
navigator.msSaveOrOpenBlob(b5(f5, h5), g5);
|
|
152329
|
+
else if (d5(f5))
|
|
152330
|
+
c(f5, g5, h5);
|
|
152331
|
+
else {
|
|
152332
|
+
var i5 = document.createElement("a");
|
|
152333
|
+
i5.href = f5, i5.target = "_blank", setTimeout(function() {
|
|
152334
|
+
e(i5);
|
|
152335
|
+
});
|
|
152336
|
+
}
|
|
152337
|
+
} : function(b6, d6, e5, g5) {
|
|
152338
|
+
if (g5 = g5 || open("", "_blank"), g5 && (g5.document.title = g5.document.body.innerText = "downloading..."), typeof b6 == "string")
|
|
152339
|
+
return c(b6, d6, e5);
|
|
152340
|
+
var h5 = b6.type === "application/octet-stream", i5 = /constructor/i.test(f.HTMLElement) || f.safari, j5 = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
152341
|
+
if ((j5 || h5 && i5 || a5) && typeof FileReader != "undefined") {
|
|
152342
|
+
var k = new FileReader();
|
|
152343
|
+
k.onloadend = function() {
|
|
152344
|
+
var a6 = k.result;
|
|
152345
|
+
a6 = j5 ? a6 : a6.replace(/^data:[^;]*;/, "data:attachment/file;"), g5 ? g5.location.href = a6 : location = a6, g5 = null;
|
|
152346
|
+
}, k.readAsDataURL(b6);
|
|
152347
|
+
} else {
|
|
152348
|
+
var l = f.URL || f.webkitURL, m5 = l.createObjectURL(b6);
|
|
152349
|
+
g5 ? g5.location = m5 : location.href = m5, g5 = null, setTimeout(function() {
|
|
152350
|
+
l.revokeObjectURL(m5);
|
|
152351
|
+
}, 4e4);
|
|
152352
|
+
}
|
|
152353
|
+
});
|
|
152354
|
+
f.saveAs = g.saveAs = g, module.exports = g;
|
|
152355
|
+
});
|
|
152356
|
+
})(FileSaver_min);
|
|
149637
152357
|
var electronicCaseWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
149638
152358
|
let ossConfigCache$1 = null;
|
|
149639
152359
|
let pendingOSSRequest$1 = null;
|
|
@@ -150341,17 +153061,155 @@ const _sfc_main$50 = {
|
|
|
150341
153061
|
link.click();
|
|
150342
153062
|
document.body.removeChild(link);
|
|
150343
153063
|
},
|
|
150344
|
-
|
|
150345
|
-
|
|
153064
|
+
async getBase64Image(url, name2) {
|
|
153065
|
+
try {
|
|
153066
|
+
const token = almLocalStorage.getItem("token");
|
|
153067
|
+
const rToken = almLocalStorage.getItem("rToken");
|
|
153068
|
+
const tokenTime = almLocalStorage.getItem("tokenTime");
|
|
153069
|
+
const headers = {};
|
|
153070
|
+
if (token !== null)
|
|
153071
|
+
headers["Authorization"] = "Bearer " + token;
|
|
153072
|
+
if (!tokenTime && rToken) {
|
|
153073
|
+
headers["X-Authorization"] = "Bearer " + rToken;
|
|
153074
|
+
}
|
|
153075
|
+
const response = await fetch(url, { headers });
|
|
153076
|
+
if (!response.ok) {
|
|
153077
|
+
throw new Error(`\u83B7\u53D6\u56FE\u7247\u5931\u8D25: ${response.status}`);
|
|
153078
|
+
}
|
|
153079
|
+
const blob = await response.blob();
|
|
153080
|
+
return new Promise((resolve, reject) => {
|
|
153081
|
+
const reader = new FileReader();
|
|
153082
|
+
reader.onloadend = () => {
|
|
153083
|
+
const base64String = reader.result.split(",")[1] || reader.result;
|
|
153084
|
+
resolve({
|
|
153085
|
+
img: base64String,
|
|
153086
|
+
name: name2
|
|
153087
|
+
});
|
|
153088
|
+
};
|
|
153089
|
+
reader.onerror = reject;
|
|
153090
|
+
reader.readAsDataURL(blob);
|
|
153091
|
+
});
|
|
153092
|
+
} catch (error2) {
|
|
153093
|
+
console.error("\u83B7\u53D6\u56FE\u7247 base64 \u5931\u8D25:", error2);
|
|
153094
|
+
throw error2;
|
|
153095
|
+
}
|
|
153096
|
+
},
|
|
153097
|
+
async getImgArrayBuffer(url, name2) {
|
|
153098
|
+
try {
|
|
153099
|
+
const token = almLocalStorage.getItem("token");
|
|
153100
|
+
const rToken = almLocalStorage.getItem("rToken");
|
|
153101
|
+
const tokenTime = almLocalStorage.getItem("tokenTime");
|
|
153102
|
+
const headers = {};
|
|
153103
|
+
if (token !== null)
|
|
153104
|
+
headers["Authorization"] = "Bearer " + token;
|
|
153105
|
+
if (!tokenTime && rToken) {
|
|
153106
|
+
headers["X-Authorization"] = "Bearer " + rToken;
|
|
153107
|
+
}
|
|
153108
|
+
const response = await fetch(url, { headers });
|
|
153109
|
+
if (!response.ok) {
|
|
153110
|
+
throw new Error(`\u83B7\u53D6\u6587\u4EF6\u5931\u8D25: ${response.status}`);
|
|
153111
|
+
}
|
|
153112
|
+
const arrayBuffer = await response.arrayBuffer();
|
|
153113
|
+
return {
|
|
153114
|
+
size: arrayBuffer.byteLength,
|
|
153115
|
+
name: name2,
|
|
153116
|
+
data: arrayBuffer
|
|
153117
|
+
};
|
|
153118
|
+
} catch (error2) {
|
|
153119
|
+
console.error("\u83B7\u53D6\u6587\u4EF6 ArrayBuffer \u5931\u8D25:", error2);
|
|
153120
|
+
throw error2;
|
|
153121
|
+
}
|
|
153122
|
+
},
|
|
153123
|
+
isImageByUrl(url) {
|
|
153124
|
+
if (!url)
|
|
153125
|
+
return false;
|
|
153126
|
+
const imageExtensions = [".png", ".jpg", ".jpeg", ".bmp", ".gif", ".webp", ".psd", ".tiff", ".svg"];
|
|
153127
|
+
const urlLower = url.toLowerCase();
|
|
153128
|
+
return imageExtensions.some((ext) => urlLower.includes(ext));
|
|
153129
|
+
},
|
|
153130
|
+
getFileExtension(file) {
|
|
153131
|
+
const fileName = file.name || file.file_name || "";
|
|
153132
|
+
const fileUrl = file.url || file.file_url || file.download_url || "";
|
|
153133
|
+
if (fileName) {
|
|
153134
|
+
const match = fileName.match(/\.([^.]+)$/);
|
|
153135
|
+
if (match)
|
|
153136
|
+
return match[1].toLowerCase();
|
|
153137
|
+
}
|
|
153138
|
+
if (fileUrl) {
|
|
153139
|
+
const match = fileUrl.match(/\.([^.]+)(?:\?|$)/);
|
|
153140
|
+
if (match)
|
|
153141
|
+
return match[1].toLowerCase();
|
|
153142
|
+
}
|
|
153143
|
+
return "";
|
|
153144
|
+
},
|
|
153145
|
+
async downloadAll() {
|
|
153146
|
+
var _a2, _b2, _c2, _d2, _e, _f2, _g2, _h2;
|
|
150346
153147
|
if (this.allFiles.length === 0) {
|
|
150347
153148
|
(_b2 = (_a2 = this.$message) == null ? void 0 : _a2.warning) == null ? void 0 : _b2.call(_a2, "\u6CA1\u6709\u53EF\u4E0B\u8F7D\u7684\u6587\u4EF6");
|
|
150348
153149
|
return;
|
|
150349
153150
|
}
|
|
150350
|
-
|
|
150351
|
-
|
|
150352
|
-
|
|
150353
|
-
|
|
150354
|
-
|
|
153151
|
+
try {
|
|
153152
|
+
const filePromises = [];
|
|
153153
|
+
let num2 = 1;
|
|
153154
|
+
this.allFiles.forEach((file) => {
|
|
153155
|
+
const fileUrl = file.url || file.file_url || file.download_url;
|
|
153156
|
+
if (!fileUrl) {
|
|
153157
|
+
console.warn("\u6587\u4EF6URL\u4E0D\u5B58\u5728\uFF0C\u8DF3\u8FC7:", file);
|
|
153158
|
+
return;
|
|
153159
|
+
}
|
|
153160
|
+
num2++;
|
|
153161
|
+
const fileName = file.name || file.file_name || `\u6587\u4EF6${num2}`;
|
|
153162
|
+
const fileExtension = this.getFileExtension(file);
|
|
153163
|
+
let promise;
|
|
153164
|
+
if (this.isImageByUrl(fileUrl) || [".png", ".jpg", ".jpeg", ".bmp", ".gif", ".webp", ".psd", ".tiff"].includes("." + fileExtension)) {
|
|
153165
|
+
promise = this.getBase64Image(fileUrl + "?c=" + num2, fileName);
|
|
153166
|
+
} else {
|
|
153167
|
+
promise = this.getImgArrayBuffer(fileUrl + "?c=" + num2, fileName);
|
|
153168
|
+
}
|
|
153169
|
+
filePromises.push({
|
|
153170
|
+
file,
|
|
153171
|
+
promise
|
|
153172
|
+
});
|
|
153173
|
+
});
|
|
153174
|
+
if (filePromises.length === 0) {
|
|
153175
|
+
(_d2 = (_c2 = this.$message) == null ? void 0 : _c2.warning) == null ? void 0 : _d2.call(_c2, "\u6CA1\u6709\u53EF\u4E0B\u8F7D\u7684\u6587\u4EF6");
|
|
153176
|
+
return;
|
|
153177
|
+
}
|
|
153178
|
+
const results = await Promise.all(filePromises.map((item) => item.promise));
|
|
153179
|
+
const zip = new JSZip();
|
|
153180
|
+
const groupedByType = {};
|
|
153181
|
+
filePromises.forEach((item, index2) => {
|
|
153182
|
+
const file = item.file;
|
|
153183
|
+
const result = results[index2];
|
|
153184
|
+
if (!result)
|
|
153185
|
+
return;
|
|
153186
|
+
const typeLabel = file.typeLabel || "\u672A\u5206\u7C7B";
|
|
153187
|
+
if (!groupedByType[typeLabel]) {
|
|
153188
|
+
groupedByType[typeLabel] = [];
|
|
153189
|
+
}
|
|
153190
|
+
groupedByType[typeLabel].push({ file, result });
|
|
153191
|
+
});
|
|
153192
|
+
Object.keys(groupedByType).forEach((typeLabel) => {
|
|
153193
|
+
const folder = zip.folder(typeLabel);
|
|
153194
|
+
groupedByType[typeLabel].forEach(({ file, result }) => {
|
|
153195
|
+
if (!result)
|
|
153196
|
+
return;
|
|
153197
|
+
if (result.size) {
|
|
153198
|
+
folder.file(result.name, result.data, { binary: true });
|
|
153199
|
+
} else {
|
|
153200
|
+
folder.file(result.name, result.img, { base64: true });
|
|
153201
|
+
}
|
|
153202
|
+
});
|
|
153203
|
+
});
|
|
153204
|
+
const content2 = await zip.generateAsync({ type: "blob" }, (metadata) => {
|
|
153205
|
+
});
|
|
153206
|
+
const zipFileName = `\u7535\u5B50\u5377\u5B97_${new Date().getTime()}.zip`;
|
|
153207
|
+
FileSaver_min.exports.saveAs(content2, zipFileName);
|
|
153208
|
+
(_f2 = (_e = this.$message) == null ? void 0 : _e.success) == null ? void 0 : _f2.call(_e, `\u6210\u529F\u6253\u5305\u5E76\u5F00\u59CB\u4E0B\u8F7D ${filePromises.length} \u4E2A\u6587\u4EF6`);
|
|
153209
|
+
} catch (error2) {
|
|
153210
|
+
console.error("\u6253\u5305\u4E0B\u8F7D\u5931\u8D25:", error2);
|
|
153211
|
+
(_h2 = (_g2 = this.$message) == null ? void 0 : _g2.error) == null ? void 0 : _h2.call(_g2, "\u6253\u5305\u4E0B\u8F7D\u5931\u8D25: " + (error2.message || error2));
|
|
153212
|
+
}
|
|
150355
153213
|
}
|
|
150356
153214
|
}
|
|
150357
153215
|
};
|
|
@@ -150412,27 +153270,31 @@ const _hoisted_23 = {
|
|
|
150412
153270
|
class: "preview-error"
|
|
150413
153271
|
};
|
|
150414
153272
|
const _hoisted_24 = { class: "upload-dialog-content" };
|
|
150415
|
-
const _hoisted_25 =
|
|
150416
|
-
|
|
150417
|
-
|
|
150418
|
-
|
|
153273
|
+
const _hoisted_25 = {
|
|
153274
|
+
key: 0,
|
|
153275
|
+
class: "upload-type-label"
|
|
153276
|
+
};
|
|
153277
|
+
const _hoisted_26 = ["src"];
|
|
153278
|
+
const _hoisted_27 = { class: "el-upload-list__item-actions" };
|
|
153279
|
+
const _hoisted_28 = { class: "el-upload-list__item-delete" };
|
|
153280
|
+
const _hoisted_29 = {
|
|
150419
153281
|
key: 0,
|
|
150420
153282
|
class: "el-upload__tip"
|
|
150421
153283
|
};
|
|
150422
|
-
const
|
|
150423
|
-
const
|
|
150424
|
-
const
|
|
153284
|
+
const _hoisted_30 = { class: "dialog-footer" };
|
|
153285
|
+
const _hoisted_31 = { class: "view-files-content" };
|
|
153286
|
+
const _hoisted_32 = {
|
|
150425
153287
|
key: 0,
|
|
150426
153288
|
class: "empty-container"
|
|
150427
153289
|
};
|
|
150428
|
-
const
|
|
153290
|
+
const _hoisted_33 = {
|
|
150429
153291
|
key: 1,
|
|
150430
153292
|
class: "view-files-list"
|
|
150431
153293
|
};
|
|
150432
|
-
const
|
|
150433
|
-
const
|
|
150434
|
-
const
|
|
150435
|
-
const
|
|
153294
|
+
const _hoisted_34 = ["onClick", "title"];
|
|
153295
|
+
const _hoisted_35 = { class: "file-name" };
|
|
153296
|
+
const _hoisted_36 = { key: 0 };
|
|
153297
|
+
const _hoisted_37 = ["src"];
|
|
150436
153298
|
function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
150437
153299
|
const _component_Loading = resolveComponent("Loading");
|
|
150438
153300
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -150721,7 +153583,7 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150721
153583
|
"preview-src-list": $options.getImagePreviewListForType(typeGroup),
|
|
150722
153584
|
"initial-index": $options.getImageIndexInType(file, typeGroup),
|
|
150723
153585
|
fit: "cover",
|
|
150724
|
-
style: { "width": "
|
|
153586
|
+
style: { "width": "100px", "height": "100px", "margin": "8px" }
|
|
150725
153587
|
}, null, 8, ["src", "preview-src-list", "initial-index"])) : (openBlock(), createElementBlock("div", {
|
|
150726
153588
|
key: 1,
|
|
150727
153589
|
class: "view-file-item",
|
|
@@ -150774,7 +153636,7 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150774
153636
|
"before-close": $options.closeUpload
|
|
150775
153637
|
}, {
|
|
150776
153638
|
footer: withCtx(() => [
|
|
150777
|
-
createElementVNode("span",
|
|
153639
|
+
createElementVNode("span", _hoisted_30, [
|
|
150778
153640
|
createVNode(_component_el_button, { onClick: $options.closeUpload }, {
|
|
150779
153641
|
default: withCtx(() => _cache[16] || (_cache[16] = [
|
|
150780
153642
|
createTextVNode("\u53D6\u6D88", -1)
|
|
@@ -150796,9 +153658,10 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150796
153658
|
])
|
|
150797
153659
|
]),
|
|
150798
153660
|
default: withCtx(() => {
|
|
150799
|
-
var _a2, _b2;
|
|
153661
|
+
var _a2, _b2, _c2, _d2;
|
|
150800
153662
|
return [
|
|
150801
153663
|
createElementVNode("div", _hoisted_24, [
|
|
153664
|
+
((_b2 = (_a2 = $data.currentUploadWidget) == null ? void 0 : _a2.options) == null ? void 0 : _b2.label) ? (openBlock(), createElementBlock("div", _hoisted_25, toDisplayString($data.currentUploadWidget.options.label), 1)) : createCommentVNode("", true),
|
|
150802
153665
|
createVNode(_component_el_upload, {
|
|
150803
153666
|
ref: "uploadRef",
|
|
150804
153667
|
action: $data.uploadAction,
|
|
@@ -150808,7 +153671,7 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150808
153671
|
"show-file-list": true,
|
|
150809
153672
|
"list-type": "picture-card",
|
|
150810
153673
|
class: normalizeClass$1({ hideUploadDiv: $data.uploadBtnHidden }),
|
|
150811
|
-
limit: ((
|
|
153674
|
+
limit: ((_d2 = (_c2 = $data.currentUploadWidget) == null ? void 0 : _c2.options) == null ? void 0 : _d2.limit) || 100,
|
|
150812
153675
|
"on-exceed": $options.handleUploadExceed,
|
|
150813
153676
|
"on-preview": $options.handleUploadPreview,
|
|
150814
153677
|
"before-upload": $options.beforeUpload,
|
|
@@ -150822,9 +153685,9 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150822
153685
|
class: "el-upload-list__item-thumbnail",
|
|
150823
153686
|
src: $options.getFileType(file.url),
|
|
150824
153687
|
alt: ""
|
|
150825
|
-
}, null, 8,
|
|
150826
|
-
createElementVNode("span",
|
|
150827
|
-
createElementVNode("span",
|
|
153688
|
+
}, null, 8, _hoisted_26),
|
|
153689
|
+
createElementVNode("span", _hoisted_27, [
|
|
153690
|
+
createElementVNode("span", _hoisted_28, [
|
|
150828
153691
|
createVNode(_component_svg_icon, {
|
|
150829
153692
|
onClick: ($event) => $options.handleUploadRemove(file, $data.uploadFileList),
|
|
150830
153693
|
"icon-class": "el-delete"
|
|
@@ -150837,7 +153700,7 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150837
153700
|
tip: withCtx(() => {
|
|
150838
153701
|
var _a3, _b3;
|
|
150839
153702
|
return [
|
|
150840
|
-
((_b3 = (_a3 = $data.currentUploadWidget) == null ? void 0 : _a3.options) == null ? void 0 : _b3.uploadTip) ? (openBlock(), createElementBlock("div",
|
|
153703
|
+
((_b3 = (_a3 = $data.currentUploadWidget) == null ? void 0 : _a3.options) == null ? void 0 : _b3.uploadTip) ? (openBlock(), createElementBlock("div", _hoisted_29, toDisplayString($data.currentUploadWidget.options.uploadTip), 1)) : createCommentVNode("", true)
|
|
150841
153704
|
];
|
|
150842
153705
|
}),
|
|
150843
153706
|
default: withCtx(() => [
|
|
@@ -150859,8 +153722,8 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150859
153722
|
"before-close": $options.closeViewFiles
|
|
150860
153723
|
}, {
|
|
150861
153724
|
default: withCtx(() => [
|
|
150862
|
-
createElementVNode("div",
|
|
150863
|
-
$data.currentViewFiles.length === 0 ? (openBlock(), createElementBlock("div",
|
|
153725
|
+
createElementVNode("div", _hoisted_31, [
|
|
153726
|
+
$data.currentViewFiles.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_32, " \u6682\u65E0\u6587\u4EF6 ")) : (openBlock(), createElementBlock("div", _hoisted_33, [
|
|
150864
153727
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.currentViewFiles, (file, index2) => {
|
|
150865
153728
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
150866
153729
|
$options.isImageFile(file.url || file.file_url) ? (openBlock(), createBlock(_component_el_image, {
|
|
@@ -150883,8 +153746,8 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150883
153746
|
]),
|
|
150884
153747
|
_: 1
|
|
150885
153748
|
}),
|
|
150886
|
-
createElementVNode("span",
|
|
150887
|
-
], 8,
|
|
153749
|
+
createElementVNode("span", _hoisted_35, toDisplayString(file.name || file.file_name || `\u6587\u4EF6 ${index2 + 1}`), 1)
|
|
153750
|
+
], 8, _hoisted_34))
|
|
150888
153751
|
], 64);
|
|
150889
153752
|
}), 128))
|
|
150890
153753
|
]))
|
|
@@ -150892,7 +153755,7 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150892
153755
|
]),
|
|
150893
153756
|
_: 1
|
|
150894
153757
|
}, 8, ["modelValue", "before-close"]),
|
|
150895
|
-
$data.showPreviewDialogFlag ? withDirectives((openBlock(), createElementBlock("div",
|
|
153758
|
+
$data.showPreviewDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_36, [
|
|
150896
153759
|
createVNode(_component_el_dialog, {
|
|
150897
153760
|
title: "",
|
|
150898
153761
|
modelValue: $data.showPreviewDialogFlag,
|
|
@@ -150910,7 +153773,7 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150910
153773
|
src: $data.previewUrl,
|
|
150911
153774
|
style: { "width": "100%" },
|
|
150912
153775
|
alt: ""
|
|
150913
|
-
}, null, 8,
|
|
153776
|
+
}, null, 8, _hoisted_37)
|
|
150914
153777
|
]),
|
|
150915
153778
|
_: 1
|
|
150916
153779
|
}, 8, ["modelValue"])
|
|
@@ -150922,7 +153785,7 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150922
153785
|
_: 1
|
|
150923
153786
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
150924
153787
|
}
|
|
150925
|
-
var electronicCaseWidget = /* @__PURE__ */ _export_sfc(_sfc_main$50, [["render", _sfc_render$50], ["__scopeId", "data-v-
|
|
153788
|
+
var electronicCaseWidget = /* @__PURE__ */ _export_sfc(_sfc_main$50, [["render", _sfc_render$50], ["__scopeId", "data-v-90a5fb8e"]]);
|
|
150926
153789
|
var __glob_0_9$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
150927
153790
|
__proto__: null,
|
|
150928
153791
|
"default": electronicCaseWidget
|
|
@@ -204915,78 +207778,6 @@ ${scopedSubformCss}
|
|
|
204915
207778
|
${scopedGridSubformCss}
|
|
204916
207779
|
</style>`;
|
|
204917
207780
|
};
|
|
204918
|
-
var FileSaver_min = { exports: {} };
|
|
204919
|
-
(function(module, exports) {
|
|
204920
|
-
(function(a5, b5) {
|
|
204921
|
-
b5();
|
|
204922
|
-
})(commonjsGlobal, function() {
|
|
204923
|
-
function b5(a6, b6) {
|
|
204924
|
-
return typeof b6 == "undefined" ? b6 = { autoBom: false } : typeof b6 != "object" && (console.warn("Deprecated: Expected third argument to be a object"), b6 = { autoBom: !b6 }), b6.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a6.type) ? new Blob(["\uFEFF", a6], { type: a6.type }) : a6;
|
|
204925
|
-
}
|
|
204926
|
-
function c(a6, b6, c5) {
|
|
204927
|
-
var d6 = new XMLHttpRequest();
|
|
204928
|
-
d6.open("GET", a6), d6.responseType = "blob", d6.onload = function() {
|
|
204929
|
-
g(d6.response, b6, c5);
|
|
204930
|
-
}, d6.onerror = function() {
|
|
204931
|
-
console.error("could not download file");
|
|
204932
|
-
}, d6.send();
|
|
204933
|
-
}
|
|
204934
|
-
function d5(a6) {
|
|
204935
|
-
var b6 = new XMLHttpRequest();
|
|
204936
|
-
b6.open("HEAD", a6, false);
|
|
204937
|
-
try {
|
|
204938
|
-
b6.send();
|
|
204939
|
-
} catch (a7) {
|
|
204940
|
-
}
|
|
204941
|
-
return 200 <= b6.status && 299 >= b6.status;
|
|
204942
|
-
}
|
|
204943
|
-
function e(a6) {
|
|
204944
|
-
try {
|
|
204945
|
-
a6.dispatchEvent(new MouseEvent("click"));
|
|
204946
|
-
} catch (c5) {
|
|
204947
|
-
var b6 = document.createEvent("MouseEvents");
|
|
204948
|
-
b6.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), a6.dispatchEvent(b6);
|
|
204949
|
-
}
|
|
204950
|
-
}
|
|
204951
|
-
var f = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof commonjsGlobal == "object" && commonjsGlobal.global === commonjsGlobal ? commonjsGlobal : void 0, a5 = f.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), g = f.saveAs || (typeof window != "object" || window !== f ? function() {
|
|
204952
|
-
} : "download" in HTMLAnchorElement.prototype && !a5 ? function(b6, g5, h5) {
|
|
204953
|
-
var i5 = f.URL || f.webkitURL, j5 = document.createElement("a");
|
|
204954
|
-
g5 = g5 || b6.name || "download", j5.download = g5, j5.rel = "noopener", typeof b6 == "string" ? (j5.href = b6, j5.origin === location.origin ? e(j5) : d5(j5.href) ? c(b6, g5, h5) : e(j5, j5.target = "_blank")) : (j5.href = i5.createObjectURL(b6), setTimeout(function() {
|
|
204955
|
-
i5.revokeObjectURL(j5.href);
|
|
204956
|
-
}, 4e4), setTimeout(function() {
|
|
204957
|
-
e(j5);
|
|
204958
|
-
}, 0));
|
|
204959
|
-
} : "msSaveOrOpenBlob" in navigator ? function(f5, g5, h5) {
|
|
204960
|
-
if (g5 = g5 || f5.name || "download", typeof f5 != "string")
|
|
204961
|
-
navigator.msSaveOrOpenBlob(b5(f5, h5), g5);
|
|
204962
|
-
else if (d5(f5))
|
|
204963
|
-
c(f5, g5, h5);
|
|
204964
|
-
else {
|
|
204965
|
-
var i5 = document.createElement("a");
|
|
204966
|
-
i5.href = f5, i5.target = "_blank", setTimeout(function() {
|
|
204967
|
-
e(i5);
|
|
204968
|
-
});
|
|
204969
|
-
}
|
|
204970
|
-
} : function(b6, d6, e5, g5) {
|
|
204971
|
-
if (g5 = g5 || open("", "_blank"), g5 && (g5.document.title = g5.document.body.innerText = "downloading..."), typeof b6 == "string")
|
|
204972
|
-
return c(b6, d6, e5);
|
|
204973
|
-
var h5 = b6.type === "application/octet-stream", i5 = /constructor/i.test(f.HTMLElement) || f.safari, j5 = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
204974
|
-
if ((j5 || h5 && i5 || a5) && typeof FileReader != "undefined") {
|
|
204975
|
-
var k = new FileReader();
|
|
204976
|
-
k.onloadend = function() {
|
|
204977
|
-
var a6 = k.result;
|
|
204978
|
-
a6 = j5 ? a6 : a6.replace(/^data:[^;]*;/, "data:attachment/file;"), g5 ? g5.location.href = a6 : location = a6, g5 = null;
|
|
204979
|
-
}, k.readAsDataURL(b6);
|
|
204980
|
-
} else {
|
|
204981
|
-
var l = f.URL || f.webkitURL, m5 = l.createObjectURL(b6);
|
|
204982
|
-
g5 ? g5.location = m5 : location.href = m5, g5 = null, setTimeout(function() {
|
|
204983
|
-
l.revokeObjectURL(m5);
|
|
204984
|
-
}, 4e4);
|
|
204985
|
-
}
|
|
204986
|
-
});
|
|
204987
|
-
f.saveAs = g.saveAs = g, module.exports = g;
|
|
204988
|
-
});
|
|
204989
|
-
})(FileSaver_min);
|
|
204990
207781
|
var index_vue_vue_type_style_index_0_scoped_true_lang$4 = "";
|
|
204991
207782
|
const _sfc_main$4j = {
|
|
204992
207783
|
name: "ToolbarPanel",
|
|
@@ -237866,13 +240657,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
|
|
|
237866
240657
|
if (typeof window !== "undefined") {
|
|
237867
240658
|
let loadSvg = function() {
|
|
237868
240659
|
var body = document.body;
|
|
237869
|
-
var svgDom = document.getElementById("
|
|
240660
|
+
var svgDom = document.getElementById("__svg__icons__dom__1768300160981__");
|
|
237870
240661
|
if (!svgDom) {
|
|
237871
240662
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
237872
240663
|
svgDom.style.position = "absolute";
|
|
237873
240664
|
svgDom.style.width = "0";
|
|
237874
240665
|
svgDom.style.height = "0";
|
|
237875
|
-
svgDom.id = "
|
|
240666
|
+
svgDom.id = "__svg__icons__dom__1768300160981__";
|
|
237876
240667
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
237877
240668
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
237878
240669
|
}
|