chbim-plugins 0.2.8 → 0.2.91
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/chbim-plugins.js +5 -5
- package/chbim-plugins.umd.cjs +1 -1
- package/package.json +1 -1
package/chbim-plugins.js
CHANGED
|
@@ -27740,6 +27740,11 @@ const e_ = /* @__PURE__ */ lf(t_);
|
|
|
27740
27740
|
class E1 {
|
|
27741
27741
|
constructor(a, o) {
|
|
27742
27742
|
window.mars3d && (this.panoramicViewClass = o, this.coordinate = [
|
|
27743
|
+
{
|
|
27744
|
+
heading: 0,
|
|
27745
|
+
pitch: -90,
|
|
27746
|
+
stop: 5
|
|
27747
|
+
},
|
|
27743
27748
|
{
|
|
27744
27749
|
heading: 0,
|
|
27745
27750
|
pitch: 0,
|
|
@@ -27764,11 +27769,6 @@ class E1 {
|
|
|
27764
27769
|
heading: 0,
|
|
27765
27770
|
pitch: 90,
|
|
27766
27771
|
stop: 5
|
|
27767
|
-
},
|
|
27768
|
-
{
|
|
27769
|
-
heading: 0,
|
|
27770
|
-
pitch: -90,
|
|
27771
|
-
stop: 5
|
|
27772
27772
|
}
|
|
27773
27773
|
], this.screenshotArray = [], this.events = {}, this.timestamp = 0, this.lat, this.lng, this.alt);
|
|
27774
27774
|
}
|
package/chbim-plugins.umd.cjs
CHANGED
|
@@ -2683,7 +2683,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2683
2683
|
JSZip uses the library pako released under the MIT license :
|
|
2684
2684
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
2685
2685
|
*/(function(x,a){(function(o){x.exports=o()})(function(){return function o(c,f,u){function m(S,b){if(!f[S]){if(!c[S]){var O=typeof uu=="function"&&uu;if(!b&&O)return O(S,!0);if(g)return g(S,!0);var k=new Error("Cannot find module '"+S+"'");throw k.code="MODULE_NOT_FOUND",k}var R=f[S]={exports:{}};c[S][0].call(R.exports,function(F){var E=c[S][1][F];return m(E||F)},R,R.exports,o,c,f,u)}return f[S].exports}for(var g=typeof uu=="function"&&uu,v=0;v<u.length;v++)m(u[v]);return m}({1:[function(o,c,f){var u=o("./utils"),m=o("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.encode=function(v){for(var S,b,O,k,R,F,E,P=[],w=0,T=v.length,I=T,C=u.getTypeOf(v)!=="string";w<v.length;)I=T-w,O=C?(S=v[w++],b=w<T?v[w++]:0,w<T?v[w++]:0):(S=v.charCodeAt(w++),b=w<T?v.charCodeAt(w++):0,w<T?v.charCodeAt(w++):0),k=S>>2,R=(3&S)<<4|b>>4,F=1<I?(15&b)<<2|O>>6:64,E=2<I?63&O:64,P.push(g.charAt(k)+g.charAt(R)+g.charAt(F)+g.charAt(E));return P.join("")},f.decode=function(v){var S,b,O,k,R,F,E=0,P=0,w="data:";if(v.substr(0,w.length)===w)throw new Error("Invalid base64 input, it looks like a data url.");var T,I=3*(v=v.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(v.charAt(v.length-1)===g.charAt(64)&&I--,v.charAt(v.length-2)===g.charAt(64)&&I--,I%1!=0)throw new Error("Invalid base64 input, bad content length.");for(T=m.uint8array?new Uint8Array(0|I):new Array(0|I);E<v.length;)S=g.indexOf(v.charAt(E++))<<2|(k=g.indexOf(v.charAt(E++)))>>4,b=(15&k)<<4|(R=g.indexOf(v.charAt(E++)))>>2,O=(3&R)<<6|(F=g.indexOf(v.charAt(E++))),T[P++]=S,R!==64&&(T[P++]=b),F!==64&&(T[P++]=O);return T}},{"./support":30,"./utils":32}],2:[function(o,c,f){var u=o("./external"),m=o("./stream/DataWorker"),g=o("./stream/Crc32Probe"),v=o("./stream/DataLengthProbe");function S(b,O,k,R,F){this.compressedSize=b,this.uncompressedSize=O,this.crc32=k,this.compression=R,this.compressedContent=F}S.prototype={getContentWorker:function(){var b=new m(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new v("data_length")),O=this;return b.on("end",function(){if(this.streamInfo.data_length!==O.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new m(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S.createWorkerFrom=function(b,O,k){return b.pipe(new g).pipe(new v("uncompressedSize")).pipe(O.compressWorker(k)).pipe(new v("compressedSize")).withStreamInfo("compression",O)},c.exports=S},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,c,f){var u=o("./stream/GenericWorker");f.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},f.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,c,f){var u=o("./utils"),m=function(){for(var g,v=[],S=0;S<256;S++){g=S;for(var b=0;b<8;b++)g=1&g?3988292384^g>>>1:g>>>1;v[S]=g}return v}();c.exports=function(g,v){return g!==void 0&&g.length?u.getTypeOf(g)!=="string"?function(S,b,O,k){var R=m,F=k+O;S^=-1;for(var E=k;E<F;E++)S=S>>>8^R[255&(S^b[E])];return-1^S}(0|v,g,g.length,0):function(S,b,O,k){var R=m,F=k+O;S^=-1;for(var E=k;E<F;E++)S=S>>>8^R[255&(S^b.charCodeAt(E))];return-1^S}(0|v,g,g.length,0):0}},{"./utils":32}],5:[function(o,c,f){f.base64=!1,f.binary=!1,f.dir=!1,f.createFolders=!0,f.date=null,f.compression=null,f.compressionOptions=null,f.comment=null,f.unixPermissions=null,f.dosPermissions=null},{}],6:[function(o,c,f){var u=null;u=typeof Promise<"u"?Promise:o("lie"),c.exports={Promise:u}},{lie:37}],7:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=o("pako"),g=o("./utils"),v=o("./stream/GenericWorker"),S=u?"uint8array":"array";function b(O,k){v.call(this,"FlateWorker/"+O),this._pako=null,this._pakoAction=O,this._pakoOptions=k,this.meta={}}f.magic="\b\0",g.inherits(b,v),b.prototype.processChunk=function(O){this.meta=O.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(S,O.data),!1)},b.prototype.flush=function(){v.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var O=this;this._pako.onData=function(k){O.push({data:k,meta:O.meta})}},f.compressWorker=function(O){return new b("Deflate",O)},f.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,c,f){function u(R,F){var E,P="";for(E=0;E<F;E++)P+=String.fromCharCode(255&R),R>>>=8;return P}function m(R,F,E,P,w,T){var I,C,U=R.file,N=R.compression,X=T!==S.utf8encode,J=g.transformTo("string",T(U.name)),Z=g.transformTo("string",S.utf8encode(U.name)),ct=U.comment,Rt=g.transformTo("string",T(ct)),tt=g.transformTo("string",S.utf8encode(ct)),_t=Z.length!==U.name.length,G=tt.length!==ct.length,Pt="",Et="",At="",ce=U.dir,re=U.date,Ft={crc32:0,compressedSize:0,uncompressedSize:0};F&&!E||(Ft.crc32=R.crc32,Ft.compressedSize=R.compressedSize,Ft.uncompressedSize=R.uncompressedSize);var It=0;F&&(It|=8),X||!_t&&!G||(It|=2048);var Bt=0,Pe=0;ce&&(Bt|=16),w==="UNIX"?(Pe=798,Bt|=function(Wt,$e){var Si=Wt;return Wt||(Si=$e?16893:33204),(65535&Si)<<16}(U.unixPermissions,ce)):(Pe=20,Bt|=function(Wt){return 63&(Wt||0)}(U.dosPermissions)),I=re.getUTCHours(),I<<=6,I|=re.getUTCMinutes(),I<<=5,I|=re.getUTCSeconds()/2,C=re.getUTCFullYear()-1980,C<<=4,C|=re.getUTCMonth()+1,C<<=5,C|=re.getUTCDate(),_t&&(Et=u(1,1)+u(b(J),4)+Z,Pt+="up"+u(Et.length,2)+Et),G&&(At=u(1,1)+u(b(Rt),4)+tt,Pt+="uc"+u(At.length,2)+At);var pe="";return pe+=`
|
|
2686
|
-
\0`,pe+=u(It,2),pe+=N.magic,pe+=u(I,2),pe+=u(C,2),pe+=u(Ft.crc32,4),pe+=u(Ft.compressedSize,4),pe+=u(Ft.uncompressedSize,4),pe+=u(J.length,2),pe+=u(Pt.length,2),{fileRecord:O.LOCAL_FILE_HEADER+pe+J+Pt,dirRecord:O.CENTRAL_FILE_HEADER+u(Pe,2)+pe+u(Rt.length,2)+"\0\0\0\0"+u(Bt,4)+u(P,4)+J+Pt+Rt}}var g=o("../utils"),v=o("../stream/GenericWorker"),S=o("../utf8"),b=o("../crc32"),O=o("../signature");function k(R,F,E,P){v.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=F,this.zipPlatform=E,this.encodeFileName=P,this.streamFiles=R,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(k,v),k.prototype.push=function(R){var F=R.meta.percent||0,E=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(R):(this.bytesWritten+=R.data.length,v.prototype.push.call(this,{data:R.data,meta:{currentFile:this.currentFile,percent:E?(F+100*(E-P-1))/E:100}}))},k.prototype.openedSource=function(R){this.currentSourceOffset=this.bytesWritten,this.currentFile=R.file.name;var F=this.streamFiles&&!R.file.dir;if(F){var E=m(R,F,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(R){this.accumulate=!1;var F=this.streamFiles&&!R.file.dir,E=m(R,F,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),F)this.push({data:function(P){return O.DATA_DESCRIPTOR+u(P.crc32,4)+u(P.compressedSize,4)+u(P.uncompressedSize,4)}(R),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var R=this.bytesWritten,F=0;F<this.dirRecords.length;F++)this.push({data:this.dirRecords[F],meta:{percent:100}});var E=this.bytesWritten-R,P=function(w,T,I,C,U){var N=g.transformTo("string",U(C));return O.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(w,2)+u(w,2)+u(T,4)+u(I,4)+u(N.length,2)+N}(this.dirRecords.length,E,R,this.zipComment,this.encodeFileName);this.push({data:P,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(R){this._sources.push(R);var F=this;return R.on("data",function(E){F.processChunk(E)}),R.on("end",function(){F.closedSource(F.previous.streamInfo),F._sources.length?F.prepareNextSource():F.end()}),R.on("error",function(E){F.error(E)}),this},k.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(R){var F=this._sources;if(!v.prototype.error.call(this,R))return!1;for(var E=0;E<F.length;E++)try{F[E].error(R)}catch{}return!0},k.prototype.lock=function(){v.prototype.lock.call(this);for(var R=this._sources,F=0;F<R.length;F++)R[F].lock()},c.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,c,f){var u=o("../compressions"),m=o("./ZipFileWorker");f.generateWorker=function(g,v,S){var b=new m(v.streamFiles,S,v.platform,v.encodeFileName),O=0;try{g.forEach(function(k,R){O++;var F=function(T,I){var C=T||I,U=u[C];if(!U)throw new Error(C+" is not a valid compression method !");return U}(R.options.compression,v.compression),E=R.options.compressionOptions||v.compressionOptions||{},P=R.dir,w=R.date;R._compressWorker(F,E).withStreamInfo("file",{name:k,dir:P,date:w,comment:R.comment||"",unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions}).pipe(b)}),b.entriesCount=O}catch(k){b.error(k)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,c,f){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new u;for(var g in this)typeof this[g]!="function"&&(m[g]=this[g]);return m}}(u.prototype=o("./object")).loadAsync=o("./load"),u.support=o("./support"),u.defaults=o("./defaults"),u.version="3.10.1",u.loadAsync=function(m,g){return new u().loadAsync(m,g)},u.external=o("./external"),c.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,c,f){var u=o("./utils"),m=o("./external"),g=o("./utf8"),v=o("./zipEntries"),S=o("./stream/Crc32Probe"),b=o("./nodejsUtils");function O(k){return new m.Promise(function(R,F){var E=k.decompressed.getContentWorker().pipe(new S);E.on("error",function(P){F(P)}).on("end",function(){E.streamInfo.crc32!==k.decompressed.crc32?F(new Error("Corrupted zip : CRC32 mismatch")):R()}).resume()})}c.exports=function(k,R){var F=this;return R=u.extend(R||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),b.isNode&&b.isStream(k)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",k,!0,R.optimizedBinaryString,R.base64).then(function(E){var P=new v(R);return P.load(E),P}).then(function(E){var P=[m.Promise.resolve(E)],w=E.files;if(R.checkCRC32)for(var T=0;T<w.length;T++)P.push(O(w[T]));return m.Promise.all(P)}).then(function(E){for(var P=E.shift(),w=P.files,T=0;T<w.length;T++){var I=w[T],C=I.fileNameStr,U=u.resolve(I.fileNameStr);F.file(U,I.decompressed,{binary:!0,optimizedBinaryString:!0,date:I.date,dir:I.dir,comment:I.fileCommentStr.length?I.fileCommentStr:null,unixPermissions:I.unixPermissions,dosPermissions:I.dosPermissions,createFolders:R.createFolders}),I.dir||(F.file(U).unsafeOriginalName=C)}return P.zipComment.length&&(F.comment=P.zipComment),F})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,c,f){var u=o("../utils"),m=o("../stream/GenericWorker");function g(v,S){m.call(this,"Nodejs stream input adapter for "+v),this._upstreamEnded=!1,this._bindStream(S)}u.inherits(g,m),g.prototype._bindStream=function(v){var S=this;(this._stream=v).pause(),v.on("data",function(b){S.push({data:b,meta:{percent:0}})}).on("error",function(b){S.isPaused?this.generatedError=b:S.error(b)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},g.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,c,f){var u=o("readable-stream").Readable;function m(g,v,S){u.call(this,v),this._helper=g;var b=this;g.on("data",function(O,k){b.push(O)||b._helper.pause(),S&&S(k)}).on("error",function(O){b.emit("error",O)}).on("end",function(){b.push(null)})}o("../utils").inherits(m,u),m.prototype._read=function(){this._helper.resume()},c.exports=m},{"../utils":32,"readable-stream":16}],14:[function(o,c,f){c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,m);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,m)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var m=new Buffer(u);return m.fill(0),m},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(o,c,f){function u(U,N,X){var J,Z=g.getTypeOf(N),ct=g.extend(X||{},b);ct.date=ct.date||new Date,ct.compression!==null&&(ct.compression=ct.compression.toUpperCase()),typeof ct.unixPermissions=="string"&&(ct.unixPermissions=parseInt(ct.unixPermissions,8)),ct.unixPermissions&&16384&ct.unixPermissions&&(ct.dir=!0),ct.dosPermissions&&16&ct.dosPermissions&&(ct.dir=!0),ct.dir&&(U=w(U)),ct.createFolders&&(J=P(U))&&T.call(this,J,!0);var Rt=Z==="string"&&ct.binary===!1&&ct.base64===!1;X&&X.binary!==void 0||(ct.binary=!Rt),(N instanceof O&&N.uncompressedSize===0||ct.dir||!N||N.length===0)&&(ct.base64=!1,ct.binary=!0,N="",ct.compression="STORE",Z="string");var tt=null;tt=N instanceof O||N instanceof v?N:F.isNode&&F.isStream(N)?new E(U,N):g.prepareContent(U,N,ct.binary,ct.optimizedBinaryString,ct.base64);var _t=new k(U,tt,ct);this.files[U]=_t}var m=o("./utf8"),g=o("./utils"),v=o("./stream/GenericWorker"),S=o("./stream/StreamHelper"),b=o("./defaults"),O=o("./compressedObject"),k=o("./zipObject"),R=o("./generate"),F=o("./nodejsUtils"),E=o("./nodejs/NodejsStreamInputAdapter"),P=function(U){U.slice(-1)==="/"&&(U=U.substring(0,U.length-1));var N=U.lastIndexOf("/");return 0<N?U.substring(0,N):""},w=function(U){return U.slice(-1)!=="/"&&(U+="/"),U},T=function(U,N){return N=N!==void 0?N:b.createFolders,U=w(U),this.files[U]||u.call(this,U,null,{dir:!0,createFolders:N}),this.files[U]};function I(U){return Object.prototype.toString.call(U)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(U){var N,X,J;for(N in this.files)J=this.files[N],(X=N.slice(this.root.length,N.length))&&N.slice(0,this.root.length)===this.root&&U(X,J)},filter:function(U){var N=[];return this.forEach(function(X,J){U(X,J)&&N.push(J)}),N},file:function(U,N,X){if(arguments.length!==1)return U=this.root+U,u.call(this,U,N,X),this;if(I(U)){var J=U;return this.filter(function(ct,Rt){return!Rt.dir&&J.test(ct)})}var Z=this.files[this.root+U];return Z&&!Z.dir?Z:null},folder:function(U){if(!U)return this;if(I(U))return this.filter(function(Z,ct){return ct.dir&&U.test(Z)});var N=this.root+U,X=T.call(this,N),J=this.clone();return J.root=X.name,J},remove:function(U){U=this.root+U;var N=this.files[U];if(N||(U.slice(-1)!=="/"&&(U+="/"),N=this.files[U]),N&&!N.dir)delete this.files[U];else for(var X=this.filter(function(Z,ct){return ct.name.slice(0,U.length)===U}),J=0;J<X.length;J++)delete this.files[X[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(U){var N,X={};try{if((X=g.extend(U||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=X.type.toLowerCase(),X.compression=X.compression.toUpperCase(),X.type==="binarystring"&&(X.type="string"),!X.type)throw new Error("No output type specified.");g.checkSupport(X.type),X.platform!=="darwin"&&X.platform!=="freebsd"&&X.platform!=="linux"&&X.platform!=="sunos"||(X.platform="UNIX"),X.platform==="win32"&&(X.platform="DOS");var J=X.comment||this.comment||"";N=R.generateWorker(this,X,J)}catch(Z){(N=new v("error")).error(Z)}return new S(N,X.type||"string",X.mimeType)},generateAsync:function(U,N){return this.generateInternalStream(U).accumulate(N)},generateNodeStream:function(U,N){return(U=U||{}).type||(U.type="nodebuffer"),this.generateInternalStream(U).toNodejsStream(N)}};c.exports=C},{"./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(o,c,f){c.exports=o("stream")},{stream:void 0}],17:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g);for(var v=0;v<this.data.length;v++)g[v]=255&g[v]}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data[this.zero+g]},m.prototype.lastIndexOfSignature=function(g){for(var v=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===v&&this.data[k+1]===S&&this.data[k+2]===b&&this.data[k+3]===O)return k-this.zero;return-1},m.prototype.readAndCheckSignature=function(g){var v=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.readData(4);return v===k[0]&&S===k[1]&&b===k[2]&&O===k[3]},m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./DataReader":18}],18:[function(o,c,f){var u=o("../utils");function m(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var v,S=0;for(this.checkOffset(g),v=this.index+g-1;v>=this.index;v--)S=(S<<8)+this.byteAt(v);return this.index+=g,S},readString:function(g){return u.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},c.exports=m},{"../utils":32}],19:[function(o,c,f){var u=o("./Uint8ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){this.checkOffset(g);var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},m.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},m.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},m.prototype.readData=function(g){this.checkOffset(g);var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./DataReader":18}],21:[function(o,c,f){var u=o("./ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var v=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(o,c,f){var u=o("../utils"),m=o("../support"),g=o("./ArrayReader"),v=o("./StringReader"),S=o("./NodeBufferReader"),b=o("./Uint8ArrayReader");c.exports=function(O){var k=u.getTypeOf(O);return u.checkSupport(k),k!=="string"||m.uint8array?k==="nodebuffer"?new S(O):m.uint8array?new b(u.transformTo("uint8array",O)):new g(u.transformTo("array",O)):new v(O)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,c,f){f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,c,f){var u=o("./GenericWorker"),m=o("../utils");function g(v){u.call(this,"ConvertWorker to "+v),this.destType=v}m.inherits(g,u),g.prototype.processChunk=function(v){this.push({data:m.transformTo(this.destType,v.data),meta:v.meta})},c.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(o,c,f){var u=o("./GenericWorker"),m=o("../crc32");function g(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(g,u),g.prototype.processChunk=function(v){this.streamInfo.crc32=m(v.data,this.streamInfo.crc32||0),this.push(v)},c.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(v){m.call(this,"DataLengthProbe for "+v),this.propName=v,this.withStreamInfo(v,0)}u.inherits(g,m),g.prototype.processChunk=function(v){if(v){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+v.data.length}m.prototype.processChunk.call(this,v)},c.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(v){m.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,v.then(function(b){S.dataIsReady=!0,S.data=b,S.max=b&&b.length||0,S.type=u.getTypeOf(b),S.isPaused||S._tickAndRepeat()},function(b){S.error(b)})}u.inherits(g,m),g.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var v=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":v=this.data.substring(this.index,S);break;case"uint8array":v=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":v=this.data.slice(this.index,S)}return this.index=S,this.push({data:v,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(o,c,f){function u(m){this.name=m||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,g){return this._listeners[m].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,g){if(this._listeners[m])for(var v=0;v<this._listeners[m].length;v++)this._listeners[m][v].call(this,g)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var g=this;return m.on("data",function(v){g.processChunk(v)}),m.on("end",function(){g.end()}),m.on("error",function(v){g.error(v)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,g){return this.extraStreamInfo[m]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},c.exports=u},{}],29:[function(o,c,f){var u=o("../utils"),m=o("./ConvertWorker"),g=o("./GenericWorker"),v=o("../base64"),S=o("../support"),b=o("../external"),O=null;if(S.nodestream)try{O=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(F,E){return new b.Promise(function(P,w){var T=[],I=F._internalType,C=F._outputType,U=F._mimeType;F.on("data",function(N,X){T.push(N),E&&E(X)}).on("error",function(N){T=[],w(N)}).on("end",function(){try{var N=function(X,J,Z){switch(X){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),Z);case"base64":return v.encode(J);default:return u.transformTo(X,J)}}(C,function(X,J){var Z,ct=0,Rt=null,tt=0;for(Z=0;Z<J.length;Z++)tt+=J[Z].length;switch(X){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(Rt=new Uint8Array(tt),Z=0;Z<J.length;Z++)Rt.set(J[Z],ct),ct+=J[Z].length;return Rt;case"nodebuffer":return Buffer.concat(J);default:throw new Error("concat : unsupported type '"+X+"'")}}(I,T),U);P(N)}catch(X){w(X)}T=[]}).resume()})}function R(F,E,P){var w=E;switch(E){case"blob":case"arraybuffer":w="uint8array";break;case"base64":w="string"}try{this._internalType=w,this._outputType=E,this._mimeType=P,u.checkSupport(w),this._worker=F.pipe(new m(w)),F.lock()}catch(T){this._worker=new g("error"),this._worker.error(T)}}R.prototype={accumulate:function(F){return k(this,F)},on:function(F,E){var P=this;return F==="data"?this._worker.on(F,function(w){E.call(P,w.data,w.meta)}):this._worker.on(F,function(){u.delay(E,arguments,P)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(F){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new O(this,{objectMode:this._outputType!=="nodebuffer"},F)}},c.exports=R},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,c,f){if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f.nodebuffer=typeof Buffer<"u",f.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")f.blob=!1;else{var u=new ArrayBuffer(0);try{f.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(u),f.blob=m.getBlob("application/zip").size===0}catch{f.blob=!1}}}try{f.nodestream=!!o("readable-stream").Readable}catch{f.nodestream=!1}},{"readable-stream":16}],31:[function(o,c,f){for(var u=o("./utils"),m=o("./support"),g=o("./nodejsUtils"),v=o("./stream/GenericWorker"),S=new Array(256),b=0;b<256;b++)S[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;S[254]=S[254]=1;function O(){v.call(this,"utf-8 decode"),this.leftOver=null}function k(){v.call(this,"utf-8 encode")}f.utf8encode=function(R){return m.nodebuffer?g.newBufferFrom(R,"utf-8"):function(F){var E,P,w,T,I,C=F.length,U=0;for(T=0;T<C;T++)(64512&(P=F.charCodeAt(T)))==55296&&T+1<C&&(64512&(w=F.charCodeAt(T+1)))==56320&&(P=65536+(P-55296<<10)+(w-56320),T++),U+=P<128?1:P<2048?2:P<65536?3:4;for(E=m.uint8array?new Uint8Array(U):new Array(U),T=I=0;I<U;T++)(64512&(P=F.charCodeAt(T)))==55296&&T+1<C&&(64512&(w=F.charCodeAt(T+1)))==56320&&(P=65536+(P-55296<<10)+(w-56320),T++),P<128?E[I++]=P:(P<2048?E[I++]=192|P>>>6:(P<65536?E[I++]=224|P>>>12:(E[I++]=240|P>>>18,E[I++]=128|P>>>12&63),E[I++]=128|P>>>6&63),E[I++]=128|63&P);return E}(R)},f.utf8decode=function(R){return m.nodebuffer?u.transformTo("nodebuffer",R).toString("utf-8"):function(F){var E,P,w,T,I=F.length,C=new Array(2*I);for(E=P=0;E<I;)if((w=F[E++])<128)C[P++]=w;else if(4<(T=S[w]))C[P++]=65533,E+=T-1;else{for(w&=T===2?31:T===3?15:7;1<T&&E<I;)w=w<<6|63&F[E++],T--;1<T?C[P++]=65533:w<65536?C[P++]=w:(w-=65536,C[P++]=55296|w>>10&1023,C[P++]=56320|1023&w)}return C.length!==P&&(C.subarray?C=C.subarray(0,P):C.length=P),u.applyFromCharCode(C)}(R=u.transformTo(m.uint8array?"uint8array":"array",R))},u.inherits(O,v),O.prototype.processChunk=function(R){var F=u.transformTo(m.uint8array?"uint8array":"array",R.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var E=F;(F=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),F.set(E,this.leftOver.length)}else F=this.leftOver.concat(F);this.leftOver=null}var P=function(T,I){var C;for((I=I||T.length)>T.length&&(I=T.length),C=I-1;0<=C&&(192&T[C])==128;)C--;return C<0||C===0?I:C+S[T[C]]>I?C:I}(F),w=F;P!==F.length&&(m.uint8array?(w=F.subarray(0,P),this.leftOver=F.subarray(P,F.length)):(w=F.slice(0,P),this.leftOver=F.slice(P,F.length))),this.push({data:f.utf8decode(w),meta:R.meta})},O.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=O,u.inherits(k,v),k.prototype.processChunk=function(R){this.push({data:f.utf8encode(R.data),meta:R.meta})},f.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,c,f){var u=o("./support"),m=o("./base64"),g=o("./nodejsUtils"),v=o("./external");function S(E){return E}function b(E,P){for(var w=0;w<E.length;++w)P[w]=255&E.charCodeAt(w);return P}o("setimmediate"),f.newBlob=function(E,P){f.checkSupport("blob");try{return new Blob([E],{type:P})}catch{try{var w=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return w.append(E),w.getBlob(P)}catch{throw new Error("Bug : can't construct the Blob.")}}};var O={stringifyByChunk:function(E,P,w){var T=[],I=0,C=E.length;if(C<=w)return String.fromCharCode.apply(null,E);for(;I<C;)P==="array"||P==="nodebuffer"?T.push(String.fromCharCode.apply(null,E.slice(I,Math.min(I+w,C)))):T.push(String.fromCharCode.apply(null,E.subarray(I,Math.min(I+w,C)))),I+=w;return T.join("")},stringifyByChar:function(E){for(var P="",w=0;w<E.length;w++)P+=String.fromCharCode(E[w]);return P},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch{return!1}}()}};function k(E){var P=65536,w=f.getTypeOf(E),T=!0;if(w==="uint8array"?T=O.applyCanBeUsed.uint8array:w==="nodebuffer"&&(T=O.applyCanBeUsed.nodebuffer),T)for(;1<P;)try{return O.stringifyByChunk(E,w,P)}catch{P=Math.floor(P/2)}return O.stringifyByChar(E)}function R(E,P){for(var w=0;w<E.length;w++)P[w]=E[w];return P}f.applyFromCharCode=k;var F={};F.string={string:S,array:function(E){return b(E,new Array(E.length))},arraybuffer:function(E){return F.string.uint8array(E).buffer},uint8array:function(E){return b(E,new Uint8Array(E.length))},nodebuffer:function(E){return b(E,g.allocBuffer(E.length))}},F.array={string:k,array:S,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(E)}},F.arraybuffer={string:function(E){return k(new Uint8Array(E))},array:function(E){return R(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:S,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(new Uint8Array(E))}},F.uint8array={string:k,array:function(E){return R(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:S,nodebuffer:function(E){return g.newBufferFrom(E)}},F.nodebuffer={string:k,array:function(E){return R(E,new Array(E.length))},arraybuffer:function(E){return F.nodebuffer.uint8array(E).buffer},uint8array:function(E){return R(E,new Uint8Array(E.length))},nodebuffer:S},f.transformTo=function(E,P){if(P=P||"",!E)return P;f.checkSupport(E);var w=f.getTypeOf(P);return F[w][E](P)},f.resolve=function(E){for(var P=E.split("/"),w=[],T=0;T<P.length;T++){var I=P[T];I==="."||I===""&&T!==0&&T!==P.length-1||(I===".."?w.pop():w.push(I))}return w.join("/")},f.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":u.nodebuffer&&g.isBuffer(E)?"nodebuffer":u.uint8array&&E instanceof Uint8Array?"uint8array":u.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(E){if(!u[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(E){var P,w,T="";for(w=0;w<(E||"").length;w++)T+="\\x"+((P=E.charCodeAt(w))<16?"0":"")+P.toString(16).toUpperCase();return T},f.delay=function(E,P,w){setImmediate(function(){E.apply(w||null,P||[])})},f.inherits=function(E,P){function w(){}w.prototype=P.prototype,E.prototype=new w},f.extend=function(){var E,P,w={};for(E=0;E<arguments.length;E++)for(P in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],P)&&w[P]===void 0&&(w[P]=arguments[E][P]);return w},f.prepareContent=function(E,P,w,T,I){return v.Promise.resolve(P).then(function(C){return u.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new v.Promise(function(U,N){var X=new FileReader;X.onload=function(J){U(J.target.result)},X.onerror=function(J){N(J.target.error)},X.readAsArrayBuffer(C)}):C}).then(function(C){var U=f.getTypeOf(C);return U?(U==="arraybuffer"?C=f.transformTo("uint8array",C):U==="string"&&(I?C=m.decode(C):w&&T!==!0&&(C=function(N){return b(N,u.uint8array?new Uint8Array(N.length):new Array(N.length))}(C))),C):v.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./signature"),v=o("./zipEntry"),S=o("./support");function b(O){this.files=[],this.loadOptions=O}b.prototype={checkSignature:function(O){if(!this.reader.readAndCheckSignature(O)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(k)+", expected "+m.pretty(O)+")")}},isSignature:function(O,k){var R=this.reader.index;this.reader.setIndex(O);var F=this.reader.readString(4)===k;return this.reader.setIndex(R),F},readBlockEndOfCentral:function(){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);var O=this.reader.readData(this.zipCommentLength),k=S.uint8array?"uint8array":"array",R=m.transformTo(k,O);this.zipComment=this.loadOptions.decodeFileName(R)},readBlockZip64EndOfCentral:function(){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={};for(var O,k,R,F=this.zip64EndOfCentralSize-44;0<F;)O=this.reader.readInt(2),k=this.reader.readInt(4),R=this.reader.readData(k),this.zip64ExtensibleData[O]={id:O,length:k,value:R}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var O,k;for(O=0;O<this.files.length;O++)k=this.files[O],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var O;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(O=new v({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(O);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var O=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(O<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(O);var k=O;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(O=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(O),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var R=this.centralDirOffset+this.centralDirSize;this.zip64&&(R+=20,R+=12+this.zip64EndOfCentralSize);var F=k-R;if(0<F)this.isSignature(k,g.CENTRAL_FILE_HEADER)||(this.reader.zero=F);else if(F<0)throw new Error("Corrupted zip: missing "+Math.abs(F)+" bytes.")},prepareReader:function(O){this.reader=u(O)},load:function(O){this.prepareReader(O),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./compressedObject"),v=o("./crc32"),S=o("./utf8"),b=o("./compressions"),O=o("./support");function k(R,F){this.options=R,this.loadOptions=F}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(R){var F,E;if(R.skip(22),this.fileNameLength=R.readInt(2),E=R.readInt(2),this.fileName=R.readData(this.fileNameLength),R.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((F=function(P){for(var w in b)if(Object.prototype.hasOwnProperty.call(b,w)&&b[w].magic===P)return b[w];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,F,R.readData(this.compressedSize))},readCentralPart:function(R){this.versionMadeBy=R.readInt(2),R.skip(2),this.bitFlag=R.readInt(2),this.compressionMethod=R.readString(2),this.date=R.readDate(),this.crc32=R.readInt(4),this.compressedSize=R.readInt(4),this.uncompressedSize=R.readInt(4);var F=R.readInt(2);if(this.extraFieldsLength=R.readInt(2),this.fileCommentLength=R.readInt(2),this.diskNumberStart=R.readInt(2),this.internalFileAttributes=R.readInt(2),this.externalFileAttributes=R.readInt(4),this.localHeaderOffset=R.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");R.skip(F),this.readExtraFields(R),this.parseZIP64ExtraField(R),this.fileComment=R.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var R=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),R==0&&(this.dosPermissions=63&this.externalFileAttributes),R==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var R=u(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=R.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=R.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=R.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=R.readInt(4))}},readExtraFields:function(R){var F,E,P,w=R.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});R.index+4<w;)F=R.readInt(2),E=R.readInt(2),P=R.readData(E),this.extraFields[F]={id:F,length:E,value:P};R.setIndex(w)},handleUTF8:function(){var R=O.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var F=this.findExtraFieldUnicodePath();if(F!==null)this.fileNameStr=F;else{var E=m.transformTo(R,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var P=this.findExtraFieldUnicodeComment();if(P!==null)this.fileCommentStr=P;else{var w=m.transformTo(R,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(w)}}},findExtraFieldUnicodePath:function(){var R=this.extraFields[28789];if(R){var F=u(R.value);return F.readInt(1)!==1||v(this.fileName)!==F.readInt(4)?null:S.utf8decode(F.readData(R.length-5))}return null},findExtraFieldUnicodeComment:function(){var R=this.extraFields[25461];if(R){var F=u(R.value);return F.readInt(1)!==1||v(this.fileComment)!==F.readInt(4)?null:S.utf8decode(F.readData(R.length-5))}return null}},c.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,c,f){function u(F,E,P){this.name=F,this.dir=P.dir,this.date=P.date,this.comment=P.comment,this.unixPermissions=P.unixPermissions,this.dosPermissions=P.dosPermissions,this._data=E,this._dataBinary=P.binary,this.options={compression:P.compression,compressionOptions:P.compressionOptions}}var m=o("./stream/StreamHelper"),g=o("./stream/DataWorker"),v=o("./utf8"),S=o("./compressedObject"),b=o("./stream/GenericWorker");u.prototype={internalStream:function(F){var E=null,P="string";try{if(!F)throw new Error("No output type specified.");var w=(P=F.toLowerCase())==="string"||P==="text";P!=="binarystring"&&P!=="text"||(P="string"),E=this._decompressWorker();var T=!this._dataBinary;T&&!w&&(E=E.pipe(new v.Utf8EncodeWorker)),!T&&w&&(E=E.pipe(new v.Utf8DecodeWorker))}catch(I){(E=new b("error")).error(I)}return new m(E,P,"")},async:function(F,E){return this.internalStream(F).accumulate(E)},nodeStream:function(F,E){return this.internalStream(F||"nodebuffer").toNodejsStream(E)},_compressWorker:function(F,E){if(this._data instanceof S&&this._data.compression.magic===F.magic)return this._data.getCompressedWorker();var P=this._decompressWorker();return this._dataBinary||(P=P.pipe(new v.Utf8EncodeWorker)),S.createWorkerFrom(P,F,E)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof b?this._data:new g(this._data)}};for(var O=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},R=0;R<O.length;R++)u.prototype[O[R]]=k;c.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,c,f){(function(u){var m,g,v=u.MutationObserver||u.WebKitMutationObserver;if(v){var S=0,b=new v(F),O=u.document.createTextNode("");b.observe(O,{characterData:!0}),m=function(){O.data=S=++S%2}}else if(u.setImmediate||u.MessageChannel===void 0)m="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var E=u.document.createElement("script");E.onreadystatechange=function(){F(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},u.document.documentElement.appendChild(E)}:function(){setTimeout(F,0)};else{var k=new u.MessageChannel;k.port1.onmessage=F,m=function(){k.port2.postMessage(0)}}var R=[];function F(){var E,P;g=!0;for(var w=R.length;w;){for(P=R,R=[],E=-1;++E<w;)P[E]();w=R.length}g=!1}c.exports=function(E){R.push(E)!==1||g||m()}}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,c,f){var u=o("immediate");function m(){}var g={},v=["REJECTED"],S=["FULFILLED"],b=["PENDING"];function O(w){if(typeof w!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,w!==m&&E(this,w)}function k(w,T,I){this.promise=w,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof I=="function"&&(this.onRejected=I,this.callRejected=this.otherCallRejected)}function R(w,T,I){u(function(){var C;try{C=T(I)}catch(U){return g.reject(w,U)}C===w?g.reject(w,new TypeError("Cannot resolve promise with itself")):g.resolve(w,C)})}function F(w){var T=w&&w.then;if(w&&(typeof w=="object"||typeof w=="function")&&typeof T=="function")return function(){T.apply(w,arguments)}}function E(w,T){var I=!1;function C(X){I||(I=!0,g.reject(w,X))}function U(X){I||(I=!0,g.resolve(w,X))}var N=P(function(){T(U,C)});N.status==="error"&&C(N.value)}function P(w,T){var I={};try{I.value=w(T),I.status="success"}catch(C){I.status="error",I.value=C}return I}(c.exports=O).prototype.finally=function(w){if(typeof w!="function")return this;var T=this.constructor;return this.then(function(I){return T.resolve(w()).then(function(){return I})},function(I){return T.resolve(w()).then(function(){throw I})})},O.prototype.catch=function(w){return this.then(null,w)},O.prototype.then=function(w,T){if(typeof w!="function"&&this.state===S||typeof T!="function"&&this.state===v)return this;var I=new this.constructor(m);return this.state!==b?R(I,this.state===S?w:T,this.outcome):this.queue.push(new k(I,w,T)),I},k.prototype.callFulfilled=function(w){g.resolve(this.promise,w)},k.prototype.otherCallFulfilled=function(w){R(this.promise,this.onFulfilled,w)},k.prototype.callRejected=function(w){g.reject(this.promise,w)},k.prototype.otherCallRejected=function(w){R(this.promise,this.onRejected,w)},g.resolve=function(w,T){var I=P(F,T);if(I.status==="error")return g.reject(w,I.value);var C=I.value;if(C)E(w,C);else{w.state=S,w.outcome=T;for(var U=-1,N=w.queue.length;++U<N;)w.queue[U].callFulfilled(T)}return w},g.reject=function(w,T){w.state=v,w.outcome=T;for(var I=-1,C=w.queue.length;++I<C;)w.queue[I].callRejected(T);return w},O.resolve=function(w){return w instanceof this?w:g.resolve(new this(m),w)},O.reject=function(w){var T=new this(m);return g.reject(T,w)},O.all=function(w){var T=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=w.length,C=!1;if(!I)return this.resolve([]);for(var U=new Array(I),N=0,X=-1,J=new this(m);++X<I;)Z(w[X],X);return J;function Z(ct,Rt){T.resolve(ct).then(function(tt){U[Rt]=tt,++N!==I||C||(C=!0,g.resolve(J,U))},function(tt){C||(C=!0,g.reject(J,tt))})}},O.race=function(w){var T=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=w.length,C=!1;if(!I)return this.resolve([]);for(var U=-1,N=new this(m);++U<I;)X=w[U],T.resolve(X).then(function(J){C||(C=!0,g.resolve(N,J))},function(J){C||(C=!0,g.reject(N,J))});var X;return N}},{immediate:36}],38:[function(o,c,f){var u={};(0,o("./lib/utils/common").assign)(u,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),c.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,c,f){var u=o("./zlib/deflate"),m=o("./utils/common"),g=o("./utils/strings"),v=o("./zlib/messages"),S=o("./zlib/zstream"),b=Object.prototype.toString,O=0,k=-1,R=0,F=8;function E(w){if(!(this instanceof E))return new E(w);this.options=m.assign({level:k,method:F,chunkSize:16384,windowBits:15,memLevel:8,strategy:R,to:""},w||{});var T=this.options;T.raw&&0<T.windowBits?T.windowBits=-T.windowBits:T.gzip&&0<T.windowBits&&T.windowBits<16&&(T.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var I=u.deflateInit2(this.strm,T.level,T.method,T.windowBits,T.memLevel,T.strategy);if(I!==O)throw new Error(v[I]);if(T.header&&u.deflateSetHeader(this.strm,T.header),T.dictionary){var C;if(C=typeof T.dictionary=="string"?g.string2buf(T.dictionary):b.call(T.dictionary)==="[object ArrayBuffer]"?new Uint8Array(T.dictionary):T.dictionary,(I=u.deflateSetDictionary(this.strm,C))!==O)throw new Error(v[I]);this._dict_set=!0}}function P(w,T){var I=new E(T);if(I.push(w,!0),I.err)throw I.msg||v[I.err];return I.result}E.prototype.push=function(w,T){var I,C,U=this.strm,N=this.options.chunkSize;if(this.ended)return!1;C=T===~~T?T:T===!0?4:0,typeof w=="string"?U.input=g.string2buf(w):b.call(w)==="[object ArrayBuffer]"?U.input=new Uint8Array(w):U.input=w,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new m.Buf8(N),U.next_out=0,U.avail_out=N),(I=u.deflate(U,C))!==1&&I!==O)return this.onEnd(I),!(this.ended=!0);U.avail_out!==0&&(U.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(m.shrinkBuf(U.output,U.next_out))):this.onData(m.shrinkBuf(U.output,U.next_out)))}while((0<U.avail_in||U.avail_out===0)&&I!==1);return C===4?(I=u.deflateEnd(this.strm),this.onEnd(I),this.ended=!0,I===O):C!==2||(this.onEnd(O),!(U.avail_out=0))},E.prototype.onData=function(w){this.chunks.push(w)},E.prototype.onEnd=function(w){w===O&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg},f.Deflate=E,f.deflate=P,f.deflateRaw=function(w,T){return(T=T||{}).raw=!0,P(w,T)},f.gzip=function(w,T){return(T=T||{}).gzip=!0,P(w,T)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,c,f){var u=o("./zlib/inflate"),m=o("./utils/common"),g=o("./utils/strings"),v=o("./zlib/constants"),S=o("./zlib/messages"),b=o("./zlib/zstream"),O=o("./zlib/gzheader"),k=Object.prototype.toString;function R(E){if(!(this instanceof R))return new R(E);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},E||{});var P=this.options;P.raw&&0<=P.windowBits&&P.windowBits<16&&(P.windowBits=-P.windowBits,P.windowBits===0&&(P.windowBits=-15)),!(0<=P.windowBits&&P.windowBits<16)||E&&E.windowBits||(P.windowBits+=32),15<P.windowBits&&P.windowBits<48&&!(15&P.windowBits)&&(P.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var w=u.inflateInit2(this.strm,P.windowBits);if(w!==v.Z_OK)throw new Error(S[w]);this.header=new O,u.inflateGetHeader(this.strm,this.header)}function F(E,P){var w=new R(P);if(w.push(E,!0),w.err)throw w.msg||S[w.err];return w.result}R.prototype.push=function(E,P){var w,T,I,C,U,N,X=this.strm,J=this.options.chunkSize,Z=this.options.dictionary,ct=!1;if(this.ended)return!1;T=P===~~P?P:P===!0?v.Z_FINISH:v.Z_NO_FLUSH,typeof E=="string"?X.input=g.binstring2buf(E):k.call(E)==="[object ArrayBuffer]"?X.input=new Uint8Array(E):X.input=E,X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0&&(X.output=new m.Buf8(J),X.next_out=0,X.avail_out=J),(w=u.inflate(X,v.Z_NO_FLUSH))===v.Z_NEED_DICT&&Z&&(N=typeof Z=="string"?g.string2buf(Z):k.call(Z)==="[object ArrayBuffer]"?new Uint8Array(Z):Z,w=u.inflateSetDictionary(this.strm,N)),w===v.Z_BUF_ERROR&&ct===!0&&(w=v.Z_OK,ct=!1),w!==v.Z_STREAM_END&&w!==v.Z_OK)return this.onEnd(w),!(this.ended=!0);X.next_out&&(X.avail_out!==0&&w!==v.Z_STREAM_END&&(X.avail_in!==0||T!==v.Z_FINISH&&T!==v.Z_SYNC_FLUSH)||(this.options.to==="string"?(I=g.utf8border(X.output,X.next_out),C=X.next_out-I,U=g.buf2string(X.output,I),X.next_out=C,X.avail_out=J-C,C&&m.arraySet(X.output,X.output,I,C,0),this.onData(U)):this.onData(m.shrinkBuf(X.output,X.next_out)))),X.avail_in===0&&X.avail_out===0&&(ct=!0)}while((0<X.avail_in||X.avail_out===0)&&w!==v.Z_STREAM_END);return w===v.Z_STREAM_END&&(T=v.Z_FINISH),T===v.Z_FINISH?(w=u.inflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===v.Z_OK):T!==v.Z_SYNC_FLUSH||(this.onEnd(v.Z_OK),!(X.avail_out=0))},R.prototype.onData=function(E){this.chunks.push(E)},R.prototype.onEnd=function(E){E===v.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},f.Inflate=R,f.inflate=F,f.inflateRaw=function(E,P){return(P=P||{}).raw=!0,F(E,P)},f.ungzip=F},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";f.assign=function(v){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var b=S.shift();if(b){if(typeof b!="object")throw new TypeError(b+"must be non-object");for(var O in b)b.hasOwnProperty(O)&&(v[O]=b[O])}}return v},f.shrinkBuf=function(v,S){return v.length===S?v:v.subarray?v.subarray(0,S):(v.length=S,v)};var m={arraySet:function(v,S,b,O,k){if(S.subarray&&v.subarray)v.set(S.subarray(b,b+O),k);else for(var R=0;R<O;R++)v[k+R]=S[b+R]},flattenChunks:function(v){var S,b,O,k,R,F;for(S=O=0,b=v.length;S<b;S++)O+=v[S].length;for(F=new Uint8Array(O),S=k=0,b=v.length;S<b;S++)R=v[S],F.set(R,k),k+=R.length;return F}},g={arraySet:function(v,S,b,O,k){for(var R=0;R<O;R++)v[k+R]=S[b+R]},flattenChunks:function(v){return[].concat.apply([],v)}};f.setTyped=function(v){v?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,m)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,g))},f.setTyped(u)},{}],42:[function(o,c,f){var u=o("./common"),m=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}for(var v=new u.Buf8(256),S=0;S<256;S++)v[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function b(O,k){if(k<65537&&(O.subarray&&g||!O.subarray&&m))return String.fromCharCode.apply(null,u.shrinkBuf(O,k));for(var R="",F=0;F<k;F++)R+=String.fromCharCode(O[F]);return R}v[254]=v[254]=1,f.string2buf=function(O){var k,R,F,E,P,w=O.length,T=0;for(E=0;E<w;E++)(64512&(R=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(F=O.charCodeAt(E+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),E++),T+=R<128?1:R<2048?2:R<65536?3:4;for(k=new u.Buf8(T),E=P=0;P<T;E++)(64512&(R=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(F=O.charCodeAt(E+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),E++),R<128?k[P++]=R:(R<2048?k[P++]=192|R>>>6:(R<65536?k[P++]=224|R>>>12:(k[P++]=240|R>>>18,k[P++]=128|R>>>12&63),k[P++]=128|R>>>6&63),k[P++]=128|63&R);return k},f.buf2binstring=function(O){return b(O,O.length)},f.binstring2buf=function(O){for(var k=new u.Buf8(O.length),R=0,F=k.length;R<F;R++)k[R]=O.charCodeAt(R);return k},f.buf2string=function(O,k){var R,F,E,P,w=k||O.length,T=new Array(2*w);for(R=F=0;R<w;)if((E=O[R++])<128)T[F++]=E;else if(4<(P=v[E]))T[F++]=65533,R+=P-1;else{for(E&=P===2?31:P===3?15:7;1<P&&R<w;)E=E<<6|63&O[R++],P--;1<P?T[F++]=65533:E<65536?T[F++]=E:(E-=65536,T[F++]=55296|E>>10&1023,T[F++]=56320|1023&E)}return b(T,F)},f.utf8border=function(O,k){var R;for((k=k||O.length)>O.length&&(k=O.length),R=k-1;0<=R&&(192&O[R])==128;)R--;return R<0||R===0?k:R+v[O[R]]>k?R:k}},{"./common":41}],43:[function(o,c,f){c.exports=function(u,m,g,v){for(var S=65535&u|0,b=u>>>16&65535|0,O=0;g!==0;){for(g-=O=2e3<g?2e3:g;b=b+(S=S+m[v++]|0)|0,--O;);S%=65521,b%=65521}return S|b<<16|0}},{}],44:[function(o,c,f){c.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}},{}],45:[function(o,c,f){var u=function(){for(var m,g=[],v=0;v<256;v++){m=v;for(var S=0;S<8;S++)m=1&m?3988292384^m>>>1:m>>>1;g[v]=m}return g}();c.exports=function(m,g,v,S){var b=u,O=S+v;m^=-1;for(var k=S;k<O;k++)m=m>>>8^b[255&(m^g[k])];return-1^m}},{}],46:[function(o,c,f){var u,m=o("../utils/common"),g=o("./trees"),v=o("./adler32"),S=o("./crc32"),b=o("./messages"),O=0,k=4,R=0,F=-2,E=-1,P=4,w=2,T=8,I=9,C=286,U=30,N=19,X=2*C+1,J=15,Z=3,ct=258,Rt=ct+Z+1,tt=42,_t=113,G=1,Pt=2,Et=3,At=4;function ce(W,Jt){return W.msg=b[Jt],Jt}function re(W){return(W<<1)-(4<W?9:0)}function Ft(W){for(var Jt=W.length;0<=--Jt;)W[Jt]=0}function It(W){var Jt=W.state,jt=Jt.pending;jt>W.avail_out&&(jt=W.avail_out),jt!==0&&(m.arraySet(W.output,Jt.pending_buf,Jt.pending_out,jt,W.next_out),W.next_out+=jt,Jt.pending_out+=jt,W.total_out+=jt,W.avail_out-=jt,Jt.pending-=jt,Jt.pending===0&&(Jt.pending_out=0))}function Bt(W,Jt){g._tr_flush_block(W,0<=W.block_start?W.block_start:-1,W.strstart-W.block_start,Jt),W.block_start=W.strstart,It(W.strm)}function Pe(W,Jt){W.pending_buf[W.pending++]=Jt}function pe(W,Jt){W.pending_buf[W.pending++]=Jt>>>8&255,W.pending_buf[W.pending++]=255&Jt}function Wt(W,Jt){var jt,dt,pt=W.max_chain_length,Dt=W.strstart,ie=W.prev_length,Kt=W.nice_match,z=W.strstart>W.w_size-Rt?W.strstart-(W.w_size-Rt):0,Q=W.window,st=W.w_mask,nt=W.prev,vt=W.strstart+ct,Ut=Q[Dt+ie-1],qt=Q[Dt+ie];W.prev_length>=W.good_match&&(pt>>=2),Kt>W.lookahead&&(Kt=W.lookahead);do if(Q[(jt=Jt)+ie]===qt&&Q[jt+ie-1]===Ut&&Q[jt]===Q[Dt]&&Q[++jt]===Q[Dt+1]){Dt+=2,jt++;do;while(Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Dt<vt);if(dt=ct-(vt-Dt),Dt=vt-ct,ie<dt){if(W.match_start=Jt,Kt<=(ie=dt))break;Ut=Q[Dt+ie-1],qt=Q[Dt+ie]}}while((Jt=nt[Jt&st])>z&&--pt!=0);return ie<=W.lookahead?ie:W.lookahead}function $e(W){var Jt,jt,dt,pt,Dt,ie,Kt,z,Q,st,nt=W.w_size;do{if(pt=W.window_size-W.lookahead-W.strstart,W.strstart>=nt+(nt-Rt)){for(m.arraySet(W.window,W.window,nt,nt,0),W.match_start-=nt,W.strstart-=nt,W.block_start-=nt,Jt=jt=W.hash_size;dt=W.head[--Jt],W.head[Jt]=nt<=dt?dt-nt:0,--jt;);for(Jt=jt=nt;dt=W.prev[--Jt],W.prev[Jt]=nt<=dt?dt-nt:0,--jt;);pt+=nt}if(W.strm.avail_in===0)break;if(ie=W.strm,Kt=W.window,z=W.strstart+W.lookahead,Q=pt,st=void 0,st=ie.avail_in,Q<st&&(st=Q),jt=st===0?0:(ie.avail_in-=st,m.arraySet(Kt,ie.input,ie.next_in,st,z),ie.state.wrap===1?ie.adler=v(ie.adler,Kt,st,z):ie.state.wrap===2&&(ie.adler=S(ie.adler,Kt,st,z)),ie.next_in+=st,ie.total_in+=st,st),W.lookahead+=jt,W.lookahead+W.insert>=Z)for(Dt=W.strstart-W.insert,W.ins_h=W.window[Dt],W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+Z-1])&W.hash_mask,W.prev[Dt&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=Dt,Dt++,W.insert--,!(W.lookahead+W.insert<Z)););}while(W.lookahead<Rt&&W.strm.avail_in!==0)}function Si(W,Jt){for(var jt,dt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),jt!==0&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt)),W.match_length>=Z)if(dt=g._tr_tally(W,W.strstart-W.match_start,W.match_length-Z),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=Z){for(W.match_length--;W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart,--W.match_length!=0;);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else dt=g._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(dt&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Oe(W,Jt){for(var jt,dt,pt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=Z-1,jt!==0&&W.prev_length<W.max_lazy_match&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt),W.match_length<=5&&(W.strategy===1||W.match_length===Z&&4096<W.strstart-W.match_start)&&(W.match_length=Z-1)),W.prev_length>=Z&&W.match_length<=W.prev_length){for(pt=W.strstart+W.lookahead-Z,dt=g._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-Z),W.lookahead-=W.prev_length-1,W.prev_length-=2;++W.strstart<=pt&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),--W.prev_length!=0;);if(W.match_available=0,W.match_length=Z-1,W.strstart++,dt&&(Bt(W,!1),W.strm.avail_out===0))return G}else if(W.match_available){if((dt=g._tr_tally(W,0,W.window[W.strstart-1]))&&Bt(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return G}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(dt=g._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Ge(W,Jt,jt,dt,pt){this.good_length=W,this.max_lazy=Jt,this.nice_length=jt,this.max_chain=dt,this.func=pt}function pi(){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=T,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 m.Buf16(2*X),this.dyn_dtree=new m.Buf16(2*(2*U+1)),this.bl_tree=new m.Buf16(2*(2*N+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(J+1),this.heap=new m.Buf16(2*C+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*C+1),Ft(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}function Di(W){var Jt;return W&&W.state?(W.total_in=W.total_out=0,W.data_type=w,(Jt=W.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?tt:_t,W.adler=Jt.wrap===2?0:1,Jt.last_flush=O,g._tr_init(Jt),R):ce(W,F)}function gn(W){var Jt=Di(W);return Jt===R&&function(jt){jt.window_size=2*jt.w_size,Ft(jt.head),jt.max_lazy_match=u[jt.level].max_lazy,jt.good_match=u[jt.level].good_length,jt.nice_match=u[jt.level].nice_length,jt.max_chain_length=u[jt.level].max_chain,jt.strstart=0,jt.block_start=0,jt.lookahead=0,jt.insert=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,jt.ins_h=0}(W.state),Jt}function Qi(W,Jt,jt,dt,pt,Dt){if(!W)return F;var ie=1;if(Jt===E&&(Jt=6),dt<0?(ie=0,dt=-dt):15<dt&&(ie=2,dt-=16),pt<1||I<pt||jt!==T||dt<8||15<dt||Jt<0||9<Jt||Dt<0||P<Dt)return ce(W,F);dt===8&&(dt=9);var Kt=new pi;return(W.state=Kt).strm=W,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=dt,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=pt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+Z-1)/Z),Kt.window=new m.Buf8(2*Kt.w_size),Kt.head=new m.Buf16(Kt.hash_size),Kt.prev=new m.Buf16(Kt.w_size),Kt.lit_bufsize=1<<pt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new m.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Dt,Kt.method=jt,gn(W)}u=[new Ge(0,0,0,0,function(W,Jt){var jt=65535;for(jt>W.pending_buf_size-5&&(jt=W.pending_buf_size-5);;){if(W.lookahead<=1){if($e(W),W.lookahead===0&&Jt===O)return G;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var dt=W.block_start+jt;if((W.strstart===0||W.strstart>=dt)&&(W.lookahead=W.strstart-dt,W.strstart=dt,Bt(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-Rt&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=0,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:At):(W.strstart>W.block_start&&(Bt(W,!1),W.strm.avail_out),G)}),new Ge(4,4,8,4,Si),new Ge(4,5,16,8,Si),new Ge(4,6,32,32,Si),new Ge(4,4,16,16,Oe),new Ge(8,16,32,32,Oe),new Ge(8,16,128,128,Oe),new Ge(8,32,128,256,Oe),new Ge(32,128,258,1024,Oe),new Ge(32,258,258,4096,Oe)],f.deflateInit=function(W,Jt){return Qi(W,Jt,T,15,8,0)},f.deflateInit2=Qi,f.deflateReset=gn,f.deflateResetKeep=Di,f.deflateSetHeader=function(W,Jt){return W&&W.state?W.state.wrap!==2?F:(W.state.gzhead=Jt,R):F},f.deflate=function(W,Jt){var jt,dt,pt,Dt;if(!W||!W.state||5<Jt||Jt<0)return W?ce(W,F):F;if(dt=W.state,!W.output||!W.input&&W.avail_in!==0||dt.status===666&&Jt!==k)return ce(W,W.avail_out===0?-5:F);if(dt.strm=W,jt=dt.last_flush,dt.last_flush=Jt,dt.status===tt)if(dt.wrap===2)W.adler=0,Pe(dt,31),Pe(dt,139),Pe(dt,8),dt.gzhead?(Pe(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),Pe(dt,255&dt.gzhead.time),Pe(dt,dt.gzhead.time>>8&255),Pe(dt,dt.gzhead.time>>16&255),Pe(dt,dt.gzhead.time>>24&255),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,255&dt.gzhead.os),dt.gzhead.extra&&dt.gzhead.extra.length&&(Pe(dt,255&dt.gzhead.extra.length),Pe(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(W.adler=S(W.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=69):(Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,3),dt.status=_t);else{var ie=T+(dt.w_bits-8<<4)<<8;ie|=(2<=dt.strategy||dt.level<2?0:dt.level<6?1:dt.level===6?2:3)<<6,dt.strstart!==0&&(ie|=32),ie+=31-ie%31,dt.status=_t,pe(dt,ie),dt.strstart!==0&&(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),W.adler=1}if(dt.status===69)if(dt.gzhead.extra){for(pt=dt.pending;dt.gzindex<(65535&dt.gzhead.extra.length)&&(dt.pending!==dt.pending_buf_size||(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending!==dt.pending_buf_size));)Pe(dt,255&dt.gzhead.extra[dt.gzindex]),dt.gzindex++;dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),dt.gzindex===dt.gzhead.extra.length&&(dt.gzindex=0,dt.status=73)}else dt.status=73;if(dt.status===73)if(dt.gzhead.name){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.name.length?255&dt.gzhead.name.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.gzindex=0,dt.status=91)}else dt.status=91;if(dt.status===91)if(dt.gzhead.comment){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.comment.length?255&dt.gzhead.comment.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.status=103)}else dt.status=103;if(dt.status===103&&(dt.gzhead.hcrc?(dt.pending+2>dt.pending_buf_size&&It(W),dt.pending+2<=dt.pending_buf_size&&(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),W.adler=0,dt.status=_t)):dt.status=_t),dt.pending!==0){if(It(W),W.avail_out===0)return dt.last_flush=-1,R}else if(W.avail_in===0&&re(Jt)<=re(jt)&&Jt!==k)return ce(W,-5);if(dt.status===666&&W.avail_in!==0)return ce(W,-5);if(W.avail_in!==0||dt.lookahead!==0||Jt!==O&&dt.status!==666){var Kt=dt.strategy===2?function(z,Q){for(var st;;){if(z.lookahead===0&&($e(z),z.lookahead===0)){if(Q===O)return G;break}if(z.match_length=0,st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,st&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):dt.strategy===3?function(z,Q){for(var st,nt,vt,Ut,qt=z.window;;){if(z.lookahead<=ct){if($e(z),z.lookahead<=ct&&Q===O)return G;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=Z&&0<z.strstart&&(nt=qt[vt=z.strstart-1])===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]){Ut=z.strstart+ct;do;while(nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&vt<Ut);z.match_length=ct-(Ut-vt),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=Z?(st=g._tr_tally(z,1,z.match_length-Z),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),st&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):u[dt.level].func(dt,Jt);if(Kt!==Et&&Kt!==At||(dt.status=666),Kt===G||Kt===Et)return W.avail_out===0&&(dt.last_flush=-1),R;if(Kt===Pt&&(Jt===1?g._tr_align(dt):Jt!==5&&(g._tr_stored_block(dt,0,0,!1),Jt===3&&(Ft(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),It(W),W.avail_out===0))return dt.last_flush=-1,R}return Jt!==k?R:dt.wrap<=0?1:(dt.wrap===2?(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),Pe(dt,W.adler>>16&255),Pe(dt,W.adler>>24&255),Pe(dt,255&W.total_in),Pe(dt,W.total_in>>8&255),Pe(dt,W.total_in>>16&255),Pe(dt,W.total_in>>24&255)):(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),It(W),0<dt.wrap&&(dt.wrap=-dt.wrap),dt.pending!==0?R:1)},f.deflateEnd=function(W){var Jt;return W&&W.state?(Jt=W.state.status)!==tt&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==_t&&Jt!==666?ce(W,F):(W.state=null,Jt===_t?ce(W,-3):R):F},f.deflateSetDictionary=function(W,Jt){var jt,dt,pt,Dt,ie,Kt,z,Q,st=Jt.length;if(!W||!W.state||(Dt=(jt=W.state).wrap)===2||Dt===1&&jt.status!==tt||jt.lookahead)return F;for(Dt===1&&(W.adler=v(W.adler,Jt,st,0)),jt.wrap=0,st>=jt.w_size&&(Dt===0&&(Ft(jt.head),jt.strstart=0,jt.block_start=0,jt.insert=0),Q=new m.Buf8(jt.w_size),m.arraySet(Q,Jt,st-jt.w_size,jt.w_size,0),Jt=Q,st=jt.w_size),ie=W.avail_in,Kt=W.next_in,z=W.input,W.avail_in=st,W.next_in=0,W.input=Jt,$e(jt);jt.lookahead>=Z;){for(dt=jt.strstart,pt=jt.lookahead-(Z-1);jt.ins_h=(jt.ins_h<<jt.hash_shift^jt.window[dt+Z-1])&jt.hash_mask,jt.prev[dt&jt.w_mask]=jt.head[jt.ins_h],jt.head[jt.ins_h]=dt,dt++,--pt;);jt.strstart=dt,jt.lookahead=Z-1,$e(jt)}return jt.strstart+=jt.lookahead,jt.block_start=jt.strstart,jt.insert=jt.lookahead,jt.lookahead=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,W.next_in=Kt,W.input=z,W.avail_in=ie,jt.wrap=Dt,R},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,c,f){c.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,c,f){c.exports=function(u,m){var g,v,S,b,O,k,R,F,E,P,w,T,I,C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt;g=u.state,v=u.next_in,G=u.input,S=v+(u.avail_in-5),b=u.next_out,Pt=u.output,O=b-(m-u.avail_out),k=b+(u.avail_out-257),R=g.dmax,F=g.wsize,E=g.whave,P=g.wnext,w=g.window,T=g.hold,I=g.bits,C=g.lencode,U=g.distcode,N=(1<<g.lenbits)-1,X=(1<<g.distbits)-1;t:do{I<15&&(T+=G[v++]<<I,I+=8,T+=G[v++]<<I,I+=8),J=C[T&N];e:for(;;){if(T>>>=Z=J>>>24,I-=Z,(Z=J>>>16&255)===0)Pt[b++]=65535&J;else{if(!(16&Z)){if(!(64&Z)){J=C[(65535&J)+(T&(1<<Z)-1)];continue e}if(32&Z){g.mode=12;break t}u.msg="invalid literal/length code",g.mode=30;break t}ct=65535&J,(Z&=15)&&(I<Z&&(T+=G[v++]<<I,I+=8),ct+=T&(1<<Z)-1,T>>>=Z,I-=Z),I<15&&(T+=G[v++]<<I,I+=8,T+=G[v++]<<I,I+=8),J=U[T&X];i:for(;;){if(T>>>=Z=J>>>24,I-=Z,!(16&(Z=J>>>16&255))){if(!(64&Z)){J=U[(65535&J)+(T&(1<<Z)-1)];continue i}u.msg="invalid distance code",g.mode=30;break t}if(Rt=65535&J,I<(Z&=15)&&(T+=G[v++]<<I,(I+=8)<Z&&(T+=G[v++]<<I,I+=8)),R<(Rt+=T&(1<<Z)-1)){u.msg="invalid distance too far back",g.mode=30;break t}if(T>>>=Z,I-=Z,(Z=b-O)<Rt){if(E<(Z=Rt-Z)&&g.sane){u.msg="invalid distance too far back",g.mode=30;break t}if(_t=w,(tt=0)===P){if(tt+=F-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}else if(P<Z){if(tt+=F+P-Z,(Z-=P)<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);if(tt=0,P<ct){for(ct-=Z=P;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}}else if(tt+=P-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}for(;2<ct;)Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],ct-=3;ct&&(Pt[b++]=_t[tt++],1<ct&&(Pt[b++]=_t[tt++]))}else{for(tt=b-Rt;Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],2<(ct-=3););ct&&(Pt[b++]=Pt[tt++],1<ct&&(Pt[b++]=Pt[tt++]))}break}}break}}while(v<S&&b<k);v-=ct=I>>3,T&=(1<<(I-=ct<<3))-1,u.next_in=v,u.next_out=b,u.avail_in=v<S?S-v+5:5-(v-S),u.avail_out=b<k?k-b+257:257-(b-k),g.hold=T,g.bits=I}},{}],49:[function(o,c,f){var u=o("../utils/common"),m=o("./adler32"),g=o("./crc32"),v=o("./inffast"),S=o("./inftrees"),b=1,O=2,k=0,R=-2,F=1,E=852,P=592;function w(tt){return(tt>>>24&255)+(tt>>>8&65280)+((65280&tt)<<8)+((255&tt)<<24)}function T(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function I(tt){var _t;return tt&&tt.state?(_t=tt.state,tt.total_in=tt.total_out=_t.total=0,tt.msg="",_t.wrap&&(tt.adler=1&_t.wrap),_t.mode=F,_t.last=0,_t.havedict=0,_t.dmax=32768,_t.head=null,_t.hold=0,_t.bits=0,_t.lencode=_t.lendyn=new u.Buf32(E),_t.distcode=_t.distdyn=new u.Buf32(P),_t.sane=1,_t.back=-1,k):R}function C(tt){var _t;return tt&&tt.state?((_t=tt.state).wsize=0,_t.whave=0,_t.wnext=0,I(tt)):R}function U(tt,_t){var G,Pt;return tt&&tt.state?(Pt=tt.state,_t<0?(G=0,_t=-_t):(G=1+(_t>>4),_t<48&&(_t&=15)),_t&&(_t<8||15<_t)?R:(Pt.window!==null&&Pt.wbits!==_t&&(Pt.window=null),Pt.wrap=G,Pt.wbits=_t,C(tt))):R}function N(tt,_t){var G,Pt;return tt?(Pt=new T,(tt.state=Pt).window=null,(G=U(tt,_t))!==k&&(tt.state=null),G):R}var X,J,Z=!0;function ct(tt){if(Z){var _t;for(X=new u.Buf32(512),J=new u.Buf32(32),_t=0;_t<144;)tt.lens[_t++]=8;for(;_t<256;)tt.lens[_t++]=9;for(;_t<280;)tt.lens[_t++]=7;for(;_t<288;)tt.lens[_t++]=8;for(S(b,tt.lens,0,288,X,0,tt.work,{bits:9}),_t=0;_t<32;)tt.lens[_t++]=5;S(O,tt.lens,0,32,J,0,tt.work,{bits:5}),Z=!1}tt.lencode=X,tt.lenbits=9,tt.distcode=J,tt.distbits=5}function Rt(tt,_t,G,Pt){var Et,At=tt.state;return At.window===null&&(At.wsize=1<<At.wbits,At.wnext=0,At.whave=0,At.window=new u.Buf8(At.wsize)),Pt>=At.wsize?(u.arraySet(At.window,_t,G-At.wsize,At.wsize,0),At.wnext=0,At.whave=At.wsize):(Pt<(Et=At.wsize-At.wnext)&&(Et=Pt),u.arraySet(At.window,_t,G-Pt,Et,At.wnext),(Pt-=Et)?(u.arraySet(At.window,_t,G-Pt,Pt,0),At.wnext=Pt,At.whave=At.wsize):(At.wnext+=Et,At.wnext===At.wsize&&(At.wnext=0),At.whave<At.wsize&&(At.whave+=Et))),0}f.inflateReset=C,f.inflateReset2=U,f.inflateResetKeep=I,f.inflateInit=function(tt){return N(tt,15)},f.inflateInit2=N,f.inflate=function(tt,_t){var G,Pt,Et,At,ce,re,Ft,It,Bt,Pe,pe,Wt,$e,Si,Oe,Ge,pi,Di,gn,Qi,W,Jt,jt,dt,pt=0,Dt=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!tt||!tt.state||!tt.output||!tt.input&&tt.avail_in!==0)return R;(G=tt.state).mode===12&&(G.mode=13),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Bt=G.bits,Pe=re,pe=Ft,Jt=k;t:for(;;)switch(G.mode){case F:if(G.wrap===0){G.mode=13;break}for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(2&G.wrap&&It===35615){Dt[G.check=0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0),Bt=It=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&It)<<8)+(It>>8))%31){tt.msg="incorrect header check",G.mode=30;break}if((15&It)!=8){tt.msg="unknown compression method",G.mode=30;break}if(Bt-=4,W=8+(15&(It>>>=4)),G.wbits===0)G.wbits=W;else if(W>G.wbits){tt.msg="invalid window size",G.mode=30;break}G.dmax=1<<W,tt.adler=G.check=1,G.mode=512&It?10:12,Bt=It=0;break;case 2:for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(G.flags=It,(255&G.flags)!=8){tt.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){tt.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=It>>8&1),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Bt=It=0,G.mode=3;case 3:for(;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.head&&(G.head.time=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,Dt[2]=It>>>16&255,Dt[3]=It>>>24&255,G.check=g(G.check,Dt,4,0)),Bt=It=0,G.mode=4;case 4:for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.head&&(G.head.xflags=255&It,G.head.os=It>>8),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Bt=It=0,G.mode=5;case 5:if(1024&G.flags){for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.length=It,G.head&&(G.head.extra_len=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Bt=It=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(re<(Wt=G.length)&&(Wt=re),Wt&&(G.head&&(W=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),u.arraySet(G.head.extra,Pt,At,Wt,W)),512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,G.length-=Wt),G.length))break t;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.name+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.comment+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(It!==(65535&G.check)){tt.msg="header crc mismatch",G.mode=30;break}Bt=It=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),tt.adler=G.check=0,G.mode=12;break;case 10:for(;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}tt.adler=G.check=w(It),Bt=It=0,G.mode=11;case 11:if(G.havedict===0)return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Bt,2;tt.adler=G.check=1,G.mode=12;case 12:if(_t===5||_t===6)break t;case 13:if(G.last){It>>>=7&Bt,Bt-=7&Bt,G.mode=27;break}for(;Bt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}switch(G.last=1&It,Bt-=1,3&(It>>>=1)){case 0:G.mode=14;break;case 1:if(ct(G),G.mode=20,_t!==6)break;It>>>=2,Bt-=2;break t;case 2:G.mode=17;break;case 3:tt.msg="invalid block type",G.mode=30}It>>>=2,Bt-=2;break;case 14:for(It>>>=7&Bt,Bt-=7&Bt;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if((65535&It)!=(It>>>16^65535)){tt.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&It,Bt=It=0,G.mode=15,_t===6)break t;case 15:G.mode=16;case 16:if(Wt=G.length){if(re<Wt&&(Wt=re),Ft<Wt&&(Wt=Ft),Wt===0)break t;u.arraySet(Et,Pt,At,Wt,ce),re-=Wt,At+=Wt,Ft-=Wt,ce+=Wt,G.length-=Wt;break}G.mode=12;break;case 17:for(;Bt<14;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(G.nlen=257+(31&It),It>>>=5,Bt-=5,G.ndist=1+(31&It),It>>>=5,Bt-=5,G.ncode=4+(15&It),It>>>=4,Bt-=4,286<G.nlen||30<G.ndist){tt.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;Bt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.lens[ie[G.have++]]=7&It,It>>>=3,Bt-=3}for(;G.have<19;)G.lens[ie[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,jt={bits:G.lenbits},Jt=S(0,G.lens,0,19,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(pi<16)It>>>=Oe,Bt-=Oe,G.lens[G.have++]=pi;else{if(pi===16){for(dt=Oe+2;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(It>>>=Oe,Bt-=Oe,G.have===0){tt.msg="invalid bit length repeat",G.mode=30;break}W=G.lens[G.have-1],Wt=3+(3&It),It>>>=2,Bt-=2}else if(pi===17){for(dt=Oe+3;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}Bt-=Oe,W=0,Wt=3+(7&(It>>>=Oe)),It>>>=3,Bt-=3}else{for(dt=Oe+7;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}Bt-=Oe,W=0,Wt=11+(127&(It>>>=Oe)),It>>>=7,Bt-=7}if(G.have+Wt>G.nlen+G.ndist){tt.msg="invalid bit length repeat",G.mode=30;break}for(;Wt--;)G.lens[G.have++]=W}}if(G.mode===30)break;if(G.lens[256]===0){tt.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,jt={bits:G.lenbits},Jt=S(b,G.lens,0,G.nlen,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,jt={bits:G.distbits},Jt=S(O,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,jt),G.distbits=jt.bits,Jt){tt.msg="invalid distances set",G.mode=30;break}if(G.mode=20,_t===6)break t;case 20:G.mode=21;case 21:if(6<=re&&258<=Ft){tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Bt,v(tt,pe),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Bt=G.bits,G.mode===12&&(G.back=-1);break}for(G.back=0;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(Ge&&!(240&Ge)){for(Di=Oe,gn=Ge,Qi=pi;Ge=(pt=G.lencode[Qi+((It&(1<<Di+gn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}It>>>=Di,Bt-=Di,G.back+=Di}if(It>>>=Oe,Bt-=Oe,G.back+=Oe,G.length=pi,Ge===0){G.mode=26;break}if(32&Ge){G.back=-1,G.mode=12;break}if(64&Ge){tt.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Ge,G.mode=22;case 22:if(G.extra){for(dt=G.extra;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.length+=It&(1<<G.extra)-1,It>>>=G.extra,Bt-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Ge=(pt=G.distcode[It&(1<<G.distbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(!(240&Ge)){for(Di=Oe,gn=Ge,Qi=pi;Ge=(pt=G.distcode[Qi+((It&(1<<Di+gn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}It>>>=Di,Bt-=Di,G.back+=Di}if(It>>>=Oe,Bt-=Oe,G.back+=Oe,64&Ge){tt.msg="invalid distance code",G.mode=30;break}G.offset=pi,G.extra=15&Ge,G.mode=24;case 24:if(G.extra){for(dt=G.extra;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.offset+=It&(1<<G.extra)-1,It>>>=G.extra,Bt-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){tt.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(Ft===0)break t;if(Wt=pe-Ft,G.offset>Wt){if((Wt=G.offset-Wt)>G.whave&&G.sane){tt.msg="invalid distance too far back",G.mode=30;break}$e=Wt>G.wnext?(Wt-=G.wnext,G.wsize-Wt):G.wnext-Wt,Wt>G.length&&(Wt=G.length),Si=G.window}else Si=Et,$e=ce-G.offset,Wt=G.length;for(Ft<Wt&&(Wt=Ft),Ft-=Wt,G.length-=Wt;Et[ce++]=Si[$e++],--Wt;);G.length===0&&(G.mode=21);break;case 26:if(Ft===0)break t;Et[ce++]=G.length,Ft--,G.mode=21;break;case 27:if(G.wrap){for(;Bt<32;){if(re===0)break t;re--,It|=Pt[At++]<<Bt,Bt+=8}if(pe-=Ft,tt.total_out+=pe,G.total+=pe,pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,ce-pe):m(G.check,Et,pe,ce-pe)),pe=Ft,(G.flags?It:w(It))!==G.check){tt.msg="incorrect data check",G.mode=30;break}Bt=It=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(It!==(4294967295&G.total)){tt.msg="incorrect length check",G.mode=30;break}Bt=It=0}G.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return R}return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Bt,(G.wsize||pe!==tt.avail_out&&G.mode<30&&(G.mode<27||_t!==4))&&Rt(tt,tt.output,tt.next_out,pe-tt.avail_out)?(G.mode=31,-4):(Pe-=tt.avail_in,pe-=tt.avail_out,tt.total_in+=Pe,tt.total_out+=pe,G.total+=pe,G.wrap&&pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,tt.next_out-pe):m(G.check,Et,pe,tt.next_out-pe)),tt.data_type=G.bits+(G.last?64:0)+(G.mode===12?128:0)+(G.mode===20||G.mode===15?256:0),(Pe==0&&pe===0||_t===4)&&Jt===k&&(Jt=-5),Jt)},f.inflateEnd=function(tt){if(!tt||!tt.state)return R;var _t=tt.state;return _t.window&&(_t.window=null),tt.state=null,k},f.inflateGetHeader=function(tt,_t){var G;return tt&&tt.state&&2&(G=tt.state).wrap?((G.head=_t).done=!1,k):R},f.inflateSetDictionary=function(tt,_t){var G,Pt=_t.length;return tt&&tt.state?(G=tt.state).wrap!==0&&G.mode!==11?R:G.mode===11&&m(1,_t,Pt,0)!==G.check?-3:Rt(tt,_t,Pt,Pt)?(G.mode=31,-4):(G.havedict=1,k):R},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,c,f){var u=o("../utils/common"),m=[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],g=[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],v=[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],S=[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];c.exports=function(b,O,k,R,F,E,P,w){var T,I,C,U,N,X,J,Z,ct,Rt=w.bits,tt=0,_t=0,G=0,Pt=0,Et=0,At=0,ce=0,re=0,Ft=0,It=0,Bt=null,Pe=0,pe=new u.Buf16(16),Wt=new u.Buf16(16),$e=null,Si=0;for(tt=0;tt<=15;tt++)pe[tt]=0;for(_t=0;_t<R;_t++)pe[O[k+_t]]++;for(Et=Rt,Pt=15;1<=Pt&&pe[Pt]===0;Pt--);if(Pt<Et&&(Et=Pt),Pt===0)return F[E++]=20971520,F[E++]=20971520,w.bits=1,0;for(G=1;G<Pt&&pe[G]===0;G++);for(Et<G&&(Et=G),tt=re=1;tt<=15;tt++)if(re<<=1,(re-=pe[tt])<0)return-1;if(0<re&&(b===0||Pt!==1))return-1;for(Wt[1]=0,tt=1;tt<15;tt++)Wt[tt+1]=Wt[tt]+pe[tt];for(_t=0;_t<R;_t++)O[k+_t]!==0&&(P[Wt[O[k+_t]]++]=_t);if(X=b===0?(Bt=$e=P,19):b===1?(Bt=m,Pe-=257,$e=g,Si-=257,256):(Bt=v,$e=S,-1),tt=G,N=E,ce=_t=It=0,C=-1,U=(Ft=1<<(At=Et))-1,b===1&&852<Ft||b===2&&592<Ft)return 1;for(;;){for(J=tt-ce,ct=P[_t]<X?(Z=0,P[_t]):P[_t]>X?(Z=$e[Si+P[_t]],Bt[Pe+P[_t]]):(Z=96,0),T=1<<tt-ce,G=I=1<<At;F[N+(It>>ce)+(I-=T)]=J<<24|Z<<16|ct|0,I!==0;);for(T=1<<tt-1;It&T;)T>>=1;if(T!==0?(It&=T-1,It+=T):It=0,_t++,--pe[tt]==0){if(tt===Pt)break;tt=O[k+P[_t]]}if(Et<tt&&(It&U)!==C){for(ce===0&&(ce=Et),N+=G,re=1<<(At=tt-ce);At+ce<Pt&&!((re-=pe[At+ce])<=0);)At++,re<<=1;if(Ft+=1<<At,b===1&&852<Ft||b===2&&592<Ft)return 1;F[C=It&U]=Et<<24|At<<16|N-E|0}}return It!==0&&(F[N+It]=tt-ce<<24|64<<16|0),w.bits=Et,0}},{"../utils/common":41}],51:[function(o,c,f){c.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"}},{}],52:[function(o,c,f){var u=o("../utils/common"),m=0,g=1;function v(pt){for(var Dt=pt.length;0<=--Dt;)pt[Dt]=0}var S=0,b=29,O=256,k=O+1+b,R=30,F=19,E=2*k+1,P=15,w=16,T=7,I=256,C=16,U=17,N=18,X=[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],J=[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],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Rt=new Array(2*(k+2));v(Rt);var tt=new Array(2*R);v(tt);var _t=new Array(512);v(_t);var G=new Array(256);v(G);var Pt=new Array(b);v(Pt);var Et,At,ce,re=new Array(R);function Ft(pt,Dt,ie,Kt,z){this.static_tree=pt,this.extra_bits=Dt,this.extra_base=ie,this.elems=Kt,this.max_length=z,this.has_stree=pt&&pt.length}function It(pt,Dt){this.dyn_tree=pt,this.max_code=0,this.stat_desc=Dt}function Bt(pt){return pt<256?_t[pt]:_t[256+(pt>>>7)]}function Pe(pt,Dt){pt.pending_buf[pt.pending++]=255&Dt,pt.pending_buf[pt.pending++]=Dt>>>8&255}function pe(pt,Dt,ie){pt.bi_valid>w-ie?(pt.bi_buf|=Dt<<pt.bi_valid&65535,Pe(pt,pt.bi_buf),pt.bi_buf=Dt>>w-pt.bi_valid,pt.bi_valid+=ie-w):(pt.bi_buf|=Dt<<pt.bi_valid&65535,pt.bi_valid+=ie)}function Wt(pt,Dt,ie){pe(pt,ie[2*Dt],ie[2*Dt+1])}function $e(pt,Dt){for(var ie=0;ie|=1&pt,pt>>>=1,ie<<=1,0<--Dt;);return ie>>>1}function Si(pt,Dt,ie){var Kt,z,Q=new Array(P+1),st=0;for(Kt=1;Kt<=P;Kt++)Q[Kt]=st=st+ie[Kt-1]<<1;for(z=0;z<=Dt;z++){var nt=pt[2*z+1];nt!==0&&(pt[2*z]=$e(Q[nt]++,nt))}}function Oe(pt){var Dt;for(Dt=0;Dt<k;Dt++)pt.dyn_ltree[2*Dt]=0;for(Dt=0;Dt<R;Dt++)pt.dyn_dtree[2*Dt]=0;for(Dt=0;Dt<F;Dt++)pt.bl_tree[2*Dt]=0;pt.dyn_ltree[2*I]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function Ge(pt){8<pt.bi_valid?Pe(pt,pt.bi_buf):0<pt.bi_valid&&(pt.pending_buf[pt.pending++]=pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0}function pi(pt,Dt,ie,Kt){var z=2*Dt,Q=2*ie;return pt[z]<pt[Q]||pt[z]===pt[Q]&&Kt[Dt]<=Kt[ie]}function Di(pt,Dt,ie){for(var Kt=pt.heap[ie],z=ie<<1;z<=pt.heap_len&&(z<pt.heap_len&&pi(Dt,pt.heap[z+1],pt.heap[z],pt.depth)&&z++,!pi(Dt,Kt,pt.heap[z],pt.depth));)pt.heap[ie]=pt.heap[z],ie=z,z<<=1;pt.heap[ie]=Kt}function gn(pt,Dt,ie){var Kt,z,Q,st,nt=0;if(pt.last_lit!==0)for(;Kt=pt.pending_buf[pt.d_buf+2*nt]<<8|pt.pending_buf[pt.d_buf+2*nt+1],z=pt.pending_buf[pt.l_buf+nt],nt++,Kt===0?Wt(pt,z,Dt):(Wt(pt,(Q=G[z])+O+1,Dt),(st=X[Q])!==0&&pe(pt,z-=Pt[Q],st),Wt(pt,Q=Bt(--Kt),ie),(st=J[Q])!==0&&pe(pt,Kt-=re[Q],st)),nt<pt.last_lit;);Wt(pt,I,Dt)}function Qi(pt,Dt){var ie,Kt,z,Q=Dt.dyn_tree,st=Dt.stat_desc.static_tree,nt=Dt.stat_desc.has_stree,vt=Dt.stat_desc.elems,Ut=-1;for(pt.heap_len=0,pt.heap_max=E,ie=0;ie<vt;ie++)Q[2*ie]!==0?(pt.heap[++pt.heap_len]=Ut=ie,pt.depth[ie]=0):Q[2*ie+1]=0;for(;pt.heap_len<2;)Q[2*(z=pt.heap[++pt.heap_len]=Ut<2?++Ut:0)]=1,pt.depth[z]=0,pt.opt_len--,nt&&(pt.static_len-=st[2*z+1]);for(Dt.max_code=Ut,ie=pt.heap_len>>1;1<=ie;ie--)Di(pt,Q,ie);for(z=vt;ie=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],Di(pt,Q,1),Kt=pt.heap[1],pt.heap[--pt.heap_max]=ie,pt.heap[--pt.heap_max]=Kt,Q[2*z]=Q[2*ie]+Q[2*Kt],pt.depth[z]=(pt.depth[ie]>=pt.depth[Kt]?pt.depth[ie]:pt.depth[Kt])+1,Q[2*ie+1]=Q[2*Kt+1]=z,pt.heap[1]=z++,Di(pt,Q,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(qt,Xt){var Ne,Ie,me,we,yi,Ei,ni=Xt.dyn_tree,bi=Xt.max_code,Yr=Xt.stat_desc.static_tree,ar=Xt.stat_desc.has_stree,sn=Xt.stat_desc.extra_bits,Po=Xt.stat_desc.extra_base,zi=Xt.stat_desc.max_length,Zo=0;for(we=0;we<=P;we++)qt.bl_count[we]=0;for(ni[2*qt.heap[qt.heap_max]+1]=0,Ne=qt.heap_max+1;Ne<E;Ne++)zi<(we=ni[2*ni[2*(Ie=qt.heap[Ne])+1]+1]+1)&&(we=zi,Zo++),ni[2*Ie+1]=we,bi<Ie||(qt.bl_count[we]++,yi=0,Po<=Ie&&(yi=sn[Ie-Po]),Ei=ni[2*Ie],qt.opt_len+=Ei*(we+yi),ar&&(qt.static_len+=Ei*(Yr[2*Ie+1]+yi)));if(Zo!==0){do{for(we=zi-1;qt.bl_count[we]===0;)we--;qt.bl_count[we]--,qt.bl_count[we+1]+=2,qt.bl_count[zi]--,Zo-=2}while(0<Zo);for(we=zi;we!==0;we--)for(Ie=qt.bl_count[we];Ie!==0;)bi<(me=qt.heap[--Ne])||(ni[2*me+1]!==we&&(qt.opt_len+=(we-ni[2*me+1])*ni[2*me],ni[2*me+1]=we),Ie--)}}(pt,Dt),Si(Q,Ut,pt.bl_count)}function W(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Dt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)z=st,st=Dt[2*(Kt+1)+1],++nt<vt&&z===st||(nt<Ut?pt.bl_tree[2*z]+=nt:z!==0?(z!==Q&&pt.bl_tree[2*z]++,pt.bl_tree[2*C]++):nt<=10?pt.bl_tree[2*U]++:pt.bl_tree[2*N]++,Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4))}function Jt(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Kt=0;Kt<=ie;Kt++)if(z=st,st=Dt[2*(Kt+1)+1],!(++nt<vt&&z===st)){if(nt<Ut)for(;Wt(pt,z,pt.bl_tree),--nt!=0;);else z!==0?(z!==Q&&(Wt(pt,z,pt.bl_tree),nt--),Wt(pt,C,pt.bl_tree),pe(pt,nt-3,2)):nt<=10?(Wt(pt,U,pt.bl_tree),pe(pt,nt-3,3)):(Wt(pt,N,pt.bl_tree),pe(pt,nt-11,7));Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4)}}v(re);var jt=!1;function dt(pt,Dt,ie,Kt){pe(pt,(S<<1)+(Kt?1:0),3),function(z,Q,st,nt){Ge(z),nt&&(Pe(z,st),Pe(z,~st)),u.arraySet(z.pending_buf,z.window,Q,st,z.pending),z.pending+=st}(pt,Dt,ie,!0)}f._tr_init=function(pt){jt||(function(){var Dt,ie,Kt,z,Q,st=new Array(P+1);for(z=Kt=0;z<b-1;z++)for(Pt[z]=Kt,Dt=0;Dt<1<<X[z];Dt++)G[Kt++]=z;for(G[Kt-1]=z,z=Q=0;z<16;z++)for(re[z]=Q,Dt=0;Dt<1<<J[z];Dt++)_t[Q++]=z;for(Q>>=7;z<R;z++)for(re[z]=Q<<7,Dt=0;Dt<1<<J[z]-7;Dt++)_t[256+Q++]=z;for(ie=0;ie<=P;ie++)st[ie]=0;for(Dt=0;Dt<=143;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(;Dt<=255;)Rt[2*Dt+1]=9,Dt++,st[9]++;for(;Dt<=279;)Rt[2*Dt+1]=7,Dt++,st[7]++;for(;Dt<=287;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(Si(Rt,k+1,st),Dt=0;Dt<R;Dt++)tt[2*Dt+1]=5,tt[2*Dt]=$e(Dt,5);Et=new Ft(Rt,X,O+1,k,P),At=new Ft(tt,J,0,R,P),ce=new Ft(new Array(0),Z,0,F,T)}(),jt=!0),pt.l_desc=new It(pt.dyn_ltree,Et),pt.d_desc=new It(pt.dyn_dtree,At),pt.bl_desc=new It(pt.bl_tree,ce),pt.bi_buf=0,pt.bi_valid=0,Oe(pt)},f._tr_stored_block=dt,f._tr_flush_block=function(pt,Dt,ie,Kt){var z,Q,st=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(nt){var vt,Ut=4093624447;for(vt=0;vt<=31;vt++,Ut>>>=1)if(1&Ut&&nt.dyn_ltree[2*vt]!==0)return m;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return g;for(vt=32;vt<O;vt++)if(nt.dyn_ltree[2*vt]!==0)return g;return m}(pt)),Qi(pt,pt.l_desc),Qi(pt,pt.d_desc),st=function(nt){var vt;for(W(nt,nt.dyn_ltree,nt.l_desc.max_code),W(nt,nt.dyn_dtree,nt.d_desc.max_code),Qi(nt,nt.bl_desc),vt=F-1;3<=vt&&nt.bl_tree[2*ct[vt]+1]===0;vt--);return nt.opt_len+=3*(vt+1)+5+5+4,vt}(pt),z=pt.opt_len+3+7>>>3,(Q=pt.static_len+3+7>>>3)<=z&&(z=Q)):z=Q=ie+5,ie+4<=z&&Dt!==-1?dt(pt,Dt,ie,Kt):pt.strategy===4||Q===z?(pe(pt,2+(Kt?1:0),3),gn(pt,Rt,tt)):(pe(pt,4+(Kt?1:0),3),function(nt,vt,Ut,qt){var Xt;for(pe(nt,vt-257,5),pe(nt,Ut-1,5),pe(nt,qt-4,4),Xt=0;Xt<qt;Xt++)pe(nt,nt.bl_tree[2*ct[Xt]+1],3);Jt(nt,nt.dyn_ltree,vt-1),Jt(nt,nt.dyn_dtree,Ut-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,st+1),gn(pt,pt.dyn_ltree,pt.dyn_dtree)),Oe(pt),Kt&&Ge(pt)},f._tr_tally=function(pt,Dt,ie){return pt.pending_buf[pt.d_buf+2*pt.last_lit]=Dt>>>8&255,pt.pending_buf[pt.d_buf+2*pt.last_lit+1]=255&Dt,pt.pending_buf[pt.l_buf+pt.last_lit]=255&ie,pt.last_lit++,Dt===0?pt.dyn_ltree[2*ie]++:(pt.matches++,Dt--,pt.dyn_ltree[2*(G[ie]+O+1)]++,pt.dyn_dtree[2*Bt(Dt)]++),pt.last_lit===pt.lit_bufsize-1},f._tr_align=function(pt){pe(pt,2,3),Wt(pt,I,Rt),function(Dt){Dt.bi_valid===16?(Pe(Dt,Dt.bi_buf),Dt.bi_buf=0,Dt.bi_valid=0):8<=Dt.bi_valid&&(Dt.pending_buf[Dt.pending++]=255&Dt.bi_buf,Dt.bi_buf>>=8,Dt.bi_valid-=8)}(pt)}},{"../utils/common":41}],53:[function(o,c,f){c.exports=function(){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}},{}],54:[function(o,c,f){(function(u){(function(m,g){if(!m.setImmediate){var v,S,b,O,k=1,R={},F=!1,E=m.document,P=Object.getPrototypeOf&&Object.getPrototypeOf(m);P=P&&P.setTimeout?P:m,v={}.toString.call(m.process)==="[object process]"?function(C){process.nextTick(function(){T(C)})}:function(){if(m.postMessage&&!m.importScripts){var C=!0,U=m.onmessage;return m.onmessage=function(){C=!1},m.postMessage("","*"),m.onmessage=U,C}}()?(O="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",I,!1):m.attachEvent("onmessage",I),function(C){m.postMessage(O+C,"*")}):m.MessageChannel?((b=new MessageChannel).port1.onmessage=function(C){T(C.data)},function(C){b.port2.postMessage(C)}):E&&"onreadystatechange"in E.createElement("script")?(S=E.documentElement,function(C){var U=E.createElement("script");U.onreadystatechange=function(){T(C),U.onreadystatechange=null,S.removeChild(U),U=null},S.appendChild(U)}):function(C){setTimeout(T,0,C)},P.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var U=new Array(arguments.length-1),N=0;N<U.length;N++)U[N]=arguments[N+1];var X={callback:C,args:U};return R[k]=X,v(k),k++},P.clearImmediate=w}function w(C){delete R[C]}function T(C){if(F)setTimeout(T,0,C);else{var U=R[C];if(U){F=!0;try{(function(N){var X=N.callback,J=N.args;switch(J.length){case 0:X();break;case 1:X(J[0]);break;case 2:X(J[0],J[1]);break;case 3:X(J[0],J[1],J[2]);break;default:X.apply(g,J)}})(U)}finally{w(C),F=!1}}}}function I(C){C.source===m&&typeof C.data=="string"&&C.data.indexOf(O)===0&&T(+C.data.slice(O.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Af);var mm=Af.exports;const gm=ec(mm);var Pf={exports:{}};(function(x,a){(function(o,c){c()})(br,function(){function o(S,b){return typeof b>"u"?b={autoBom:!1}:typeof b!="object"&&(b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function c(S,b,O){var k=new XMLHttpRequest;k.open("GET",S),k.responseType="blob",k.onload=function(){v(k.response,b,O)},k.onerror=function(){},k.send()}function f(S){var b=new XMLHttpRequest;b.open("HEAD",S,!1);try{b.send()}catch{}return 200<=b.status&&299>=b.status}function u(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(b)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof br=="object"&&br.global===br?br:void 0,g=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!g?function(S,b,O){var k=m.URL||m.webkitURL,R=document.createElement("a");b=b||S.name||"download",R.download=b,R.rel="noopener",typeof S=="string"?(R.href=S,R.origin===location.origin?u(R):f(R.href)?c(S,b,O):u(R,R.target="_blank")):(R.href=k.createObjectURL(S),setTimeout(function(){k.revokeObjectURL(R.href)},4e4),setTimeout(function(){u(R)},0))}:"msSaveOrOpenBlob"in navigator?function(S,b,O){if(b=b||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(o(S,O),b);else if(f(S))c(S,b,O);else{var k=document.createElement("a");k.href=S,k.target="_blank",setTimeout(function(){u(k)})}}:function(S,b,O,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof S=="string")return c(S,b,O);var R=S.type==="application/octet-stream",F=/constructor/i.test(m.HTMLElement)||m.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||R&&F||g)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var I=P.result;I=E?I:I.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=I:location=I,k=null},P.readAsDataURL(S)}else{var w=m.URL||m.webkitURL,T=w.createObjectURL(S);k?k.location=T:location.href=T,k=null,setTimeout(function(){w.revokeObjectURL(T)},4e4)}});m.saveAs=v.saveAs=v,x.exports=v})})(Pf);var vm=Pf.exports;const ym=ec(vm);class _m{constructor(a,o){window.mars3d&&(this.panoramicViewClass=o,this.coordinate=[{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5},{heading:0,pitch:-90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt)}start(a=!0){var o,c;if(a){window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="none"),this.timestamp=new Date().getTime();const f=document.getElementById("app"),u=window.innerHeight,m=document.getElementById("mars3dContainer");m&&(m.style.width=u.toString()+"px",m.style.height=u.toString()+"px"),f!==null&&f.classList.add(this.panoramicViewClass);let{lat:g,lng:v,alt:S}=window.map.getCameraView();this.lat=g,this.lng=v,this.alt=S,window.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(o=this.screenshotArray)==null?void 0:o.length]?window.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(c=this.screenshotArray)==null?void 0:c.length]},{complete:()=>{setTimeout(()=>{var f;this.screenshot((f=this.screenshotArray)==null?void 0:f.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):this.emit("state",{type:"error"})}async screenshot(a){const o=await window.map.expImage({download:!1}),c=window.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),f=await window.domtoimage.toPng(window.map.container,{filter:u=>u!==c[0]});this.mergeImage(o.image,f,o.width,o.height).then(u=>{var v;let m=Number(a)+1,g={src:u,name:"全景图_"+this.timestamp+"_"+m+".jpg"};this.emit("intercept",g),(v=this.screenshotArray)==null||v.push(g),this.start(!1)})}mergeImage(a,o,c,f){return new Promise((u,m)=>{const g=document.createElement("canvas");g.width=c,g.height=f;const v=g.getContext("2d");if(g&&v){const S=new Image;S.crossOrigin="Anonymous",S.onload=()=>{v.drawImage(S,0,0,c,f);const b=new Image;b.crossOrigin="Anonymous",b.onload=()=>{v.drawImage(b,0,0,c,f);const O=g.toDataURL("image/png");u(O)},b.src=o},S.src=a}else m()})}download(){this.screenshotArray&&this.screenshotArray.forEach(a=>{window.mars3d.Util.downloadBase64Image(a.name,a.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const a=new gm;this.screenshotArray.forEach(c=>{const f=c.src.split(",")[1],u=atob(f),m=[];for(let S=0;S<u.length;S+=1024){const b=u.slice(S,S+1024),O=new Array(b.length);for(let R=0;R<b.length;R++)O[R]=b.charCodeAt(R);const k=new Uint8Array(O);m.push(k)}const g=new Blob(m,{type:"image/jpeg"}),v=`${c.name}`;a.file(v,g,{binary:!0})});const o=await a.generateAsync({type:"blob"});ym(o,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const a=document.getElementById("app");a&&a.classList.remove(this.panoramicViewClass);const o=document.getElementById("mars3dContainer");o&&(o.style.width="",o.style.height=""),window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="")}on(a,o){this.events[a]?this.events[a].push(o):this.events[a]=[o]}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}}function ds(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function Lf(x,a){x.prototype=Object.create(a.prototype),x.prototype.constructor=x,x.__proto__=a}/*!
|
|
2686
|
+
\0`,pe+=u(It,2),pe+=N.magic,pe+=u(I,2),pe+=u(C,2),pe+=u(Ft.crc32,4),pe+=u(Ft.compressedSize,4),pe+=u(Ft.uncompressedSize,4),pe+=u(J.length,2),pe+=u(Pt.length,2),{fileRecord:O.LOCAL_FILE_HEADER+pe+J+Pt,dirRecord:O.CENTRAL_FILE_HEADER+u(Pe,2)+pe+u(Rt.length,2)+"\0\0\0\0"+u(Bt,4)+u(P,4)+J+Pt+Rt}}var g=o("../utils"),v=o("../stream/GenericWorker"),S=o("../utf8"),b=o("../crc32"),O=o("../signature");function k(R,F,E,P){v.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=F,this.zipPlatform=E,this.encodeFileName=P,this.streamFiles=R,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(k,v),k.prototype.push=function(R){var F=R.meta.percent||0,E=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(R):(this.bytesWritten+=R.data.length,v.prototype.push.call(this,{data:R.data,meta:{currentFile:this.currentFile,percent:E?(F+100*(E-P-1))/E:100}}))},k.prototype.openedSource=function(R){this.currentSourceOffset=this.bytesWritten,this.currentFile=R.file.name;var F=this.streamFiles&&!R.file.dir;if(F){var E=m(R,F,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(R){this.accumulate=!1;var F=this.streamFiles&&!R.file.dir,E=m(R,F,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),F)this.push({data:function(P){return O.DATA_DESCRIPTOR+u(P.crc32,4)+u(P.compressedSize,4)+u(P.uncompressedSize,4)}(R),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var R=this.bytesWritten,F=0;F<this.dirRecords.length;F++)this.push({data:this.dirRecords[F],meta:{percent:100}});var E=this.bytesWritten-R,P=function(w,T,I,C,U){var N=g.transformTo("string",U(C));return O.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(w,2)+u(w,2)+u(T,4)+u(I,4)+u(N.length,2)+N}(this.dirRecords.length,E,R,this.zipComment,this.encodeFileName);this.push({data:P,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(R){this._sources.push(R);var F=this;return R.on("data",function(E){F.processChunk(E)}),R.on("end",function(){F.closedSource(F.previous.streamInfo),F._sources.length?F.prepareNextSource():F.end()}),R.on("error",function(E){F.error(E)}),this},k.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(R){var F=this._sources;if(!v.prototype.error.call(this,R))return!1;for(var E=0;E<F.length;E++)try{F[E].error(R)}catch{}return!0},k.prototype.lock=function(){v.prototype.lock.call(this);for(var R=this._sources,F=0;F<R.length;F++)R[F].lock()},c.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,c,f){var u=o("../compressions"),m=o("./ZipFileWorker");f.generateWorker=function(g,v,S){var b=new m(v.streamFiles,S,v.platform,v.encodeFileName),O=0;try{g.forEach(function(k,R){O++;var F=function(T,I){var C=T||I,U=u[C];if(!U)throw new Error(C+" is not a valid compression method !");return U}(R.options.compression,v.compression),E=R.options.compressionOptions||v.compressionOptions||{},P=R.dir,w=R.date;R._compressWorker(F,E).withStreamInfo("file",{name:k,dir:P,date:w,comment:R.comment||"",unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions}).pipe(b)}),b.entriesCount=O}catch(k){b.error(k)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,c,f){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new u;for(var g in this)typeof this[g]!="function"&&(m[g]=this[g]);return m}}(u.prototype=o("./object")).loadAsync=o("./load"),u.support=o("./support"),u.defaults=o("./defaults"),u.version="3.10.1",u.loadAsync=function(m,g){return new u().loadAsync(m,g)},u.external=o("./external"),c.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,c,f){var u=o("./utils"),m=o("./external"),g=o("./utf8"),v=o("./zipEntries"),S=o("./stream/Crc32Probe"),b=o("./nodejsUtils");function O(k){return new m.Promise(function(R,F){var E=k.decompressed.getContentWorker().pipe(new S);E.on("error",function(P){F(P)}).on("end",function(){E.streamInfo.crc32!==k.decompressed.crc32?F(new Error("Corrupted zip : CRC32 mismatch")):R()}).resume()})}c.exports=function(k,R){var F=this;return R=u.extend(R||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),b.isNode&&b.isStream(k)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",k,!0,R.optimizedBinaryString,R.base64).then(function(E){var P=new v(R);return P.load(E),P}).then(function(E){var P=[m.Promise.resolve(E)],w=E.files;if(R.checkCRC32)for(var T=0;T<w.length;T++)P.push(O(w[T]));return m.Promise.all(P)}).then(function(E){for(var P=E.shift(),w=P.files,T=0;T<w.length;T++){var I=w[T],C=I.fileNameStr,U=u.resolve(I.fileNameStr);F.file(U,I.decompressed,{binary:!0,optimizedBinaryString:!0,date:I.date,dir:I.dir,comment:I.fileCommentStr.length?I.fileCommentStr:null,unixPermissions:I.unixPermissions,dosPermissions:I.dosPermissions,createFolders:R.createFolders}),I.dir||(F.file(U).unsafeOriginalName=C)}return P.zipComment.length&&(F.comment=P.zipComment),F})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,c,f){var u=o("../utils"),m=o("../stream/GenericWorker");function g(v,S){m.call(this,"Nodejs stream input adapter for "+v),this._upstreamEnded=!1,this._bindStream(S)}u.inherits(g,m),g.prototype._bindStream=function(v){var S=this;(this._stream=v).pause(),v.on("data",function(b){S.push({data:b,meta:{percent:0}})}).on("error",function(b){S.isPaused?this.generatedError=b:S.error(b)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},g.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,c,f){var u=o("readable-stream").Readable;function m(g,v,S){u.call(this,v),this._helper=g;var b=this;g.on("data",function(O,k){b.push(O)||b._helper.pause(),S&&S(k)}).on("error",function(O){b.emit("error",O)}).on("end",function(){b.push(null)})}o("../utils").inherits(m,u),m.prototype._read=function(){this._helper.resume()},c.exports=m},{"../utils":32,"readable-stream":16}],14:[function(o,c,f){c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,m);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,m)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var m=new Buffer(u);return m.fill(0),m},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(o,c,f){function u(U,N,X){var J,Z=g.getTypeOf(N),ct=g.extend(X||{},b);ct.date=ct.date||new Date,ct.compression!==null&&(ct.compression=ct.compression.toUpperCase()),typeof ct.unixPermissions=="string"&&(ct.unixPermissions=parseInt(ct.unixPermissions,8)),ct.unixPermissions&&16384&ct.unixPermissions&&(ct.dir=!0),ct.dosPermissions&&16&ct.dosPermissions&&(ct.dir=!0),ct.dir&&(U=w(U)),ct.createFolders&&(J=P(U))&&T.call(this,J,!0);var Rt=Z==="string"&&ct.binary===!1&&ct.base64===!1;X&&X.binary!==void 0||(ct.binary=!Rt),(N instanceof O&&N.uncompressedSize===0||ct.dir||!N||N.length===0)&&(ct.base64=!1,ct.binary=!0,N="",ct.compression="STORE",Z="string");var tt=null;tt=N instanceof O||N instanceof v?N:F.isNode&&F.isStream(N)?new E(U,N):g.prepareContent(U,N,ct.binary,ct.optimizedBinaryString,ct.base64);var _t=new k(U,tt,ct);this.files[U]=_t}var m=o("./utf8"),g=o("./utils"),v=o("./stream/GenericWorker"),S=o("./stream/StreamHelper"),b=o("./defaults"),O=o("./compressedObject"),k=o("./zipObject"),R=o("./generate"),F=o("./nodejsUtils"),E=o("./nodejs/NodejsStreamInputAdapter"),P=function(U){U.slice(-1)==="/"&&(U=U.substring(0,U.length-1));var N=U.lastIndexOf("/");return 0<N?U.substring(0,N):""},w=function(U){return U.slice(-1)!=="/"&&(U+="/"),U},T=function(U,N){return N=N!==void 0?N:b.createFolders,U=w(U),this.files[U]||u.call(this,U,null,{dir:!0,createFolders:N}),this.files[U]};function I(U){return Object.prototype.toString.call(U)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(U){var N,X,J;for(N in this.files)J=this.files[N],(X=N.slice(this.root.length,N.length))&&N.slice(0,this.root.length)===this.root&&U(X,J)},filter:function(U){var N=[];return this.forEach(function(X,J){U(X,J)&&N.push(J)}),N},file:function(U,N,X){if(arguments.length!==1)return U=this.root+U,u.call(this,U,N,X),this;if(I(U)){var J=U;return this.filter(function(ct,Rt){return!Rt.dir&&J.test(ct)})}var Z=this.files[this.root+U];return Z&&!Z.dir?Z:null},folder:function(U){if(!U)return this;if(I(U))return this.filter(function(Z,ct){return ct.dir&&U.test(Z)});var N=this.root+U,X=T.call(this,N),J=this.clone();return J.root=X.name,J},remove:function(U){U=this.root+U;var N=this.files[U];if(N||(U.slice(-1)!=="/"&&(U+="/"),N=this.files[U]),N&&!N.dir)delete this.files[U];else for(var X=this.filter(function(Z,ct){return ct.name.slice(0,U.length)===U}),J=0;J<X.length;J++)delete this.files[X[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(U){var N,X={};try{if((X=g.extend(U||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=X.type.toLowerCase(),X.compression=X.compression.toUpperCase(),X.type==="binarystring"&&(X.type="string"),!X.type)throw new Error("No output type specified.");g.checkSupport(X.type),X.platform!=="darwin"&&X.platform!=="freebsd"&&X.platform!=="linux"&&X.platform!=="sunos"||(X.platform="UNIX"),X.platform==="win32"&&(X.platform="DOS");var J=X.comment||this.comment||"";N=R.generateWorker(this,X,J)}catch(Z){(N=new v("error")).error(Z)}return new S(N,X.type||"string",X.mimeType)},generateAsync:function(U,N){return this.generateInternalStream(U).accumulate(N)},generateNodeStream:function(U,N){return(U=U||{}).type||(U.type="nodebuffer"),this.generateInternalStream(U).toNodejsStream(N)}};c.exports=C},{"./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(o,c,f){c.exports=o("stream")},{stream:void 0}],17:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g);for(var v=0;v<this.data.length;v++)g[v]=255&g[v]}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data[this.zero+g]},m.prototype.lastIndexOfSignature=function(g){for(var v=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===v&&this.data[k+1]===S&&this.data[k+2]===b&&this.data[k+3]===O)return k-this.zero;return-1},m.prototype.readAndCheckSignature=function(g){var v=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.readData(4);return v===k[0]&&S===k[1]&&b===k[2]&&O===k[3]},m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./DataReader":18}],18:[function(o,c,f){var u=o("../utils");function m(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var v,S=0;for(this.checkOffset(g),v=this.index+g-1;v>=this.index;v--)S=(S<<8)+this.byteAt(v);return this.index+=g,S},readString:function(g){return u.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},c.exports=m},{"../utils":32}],19:[function(o,c,f){var u=o("./Uint8ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){this.checkOffset(g);var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},m.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},m.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},m.prototype.readData=function(g){this.checkOffset(g);var v=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./DataReader":18}],21:[function(o,c,f){var u=o("./ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var v=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,v},c.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(o,c,f){var u=o("../utils"),m=o("../support"),g=o("./ArrayReader"),v=o("./StringReader"),S=o("./NodeBufferReader"),b=o("./Uint8ArrayReader");c.exports=function(O){var k=u.getTypeOf(O);return u.checkSupport(k),k!=="string"||m.uint8array?k==="nodebuffer"?new S(O):m.uint8array?new b(u.transformTo("uint8array",O)):new g(u.transformTo("array",O)):new v(O)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,c,f){f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,c,f){var u=o("./GenericWorker"),m=o("../utils");function g(v){u.call(this,"ConvertWorker to "+v),this.destType=v}m.inherits(g,u),g.prototype.processChunk=function(v){this.push({data:m.transformTo(this.destType,v.data),meta:v.meta})},c.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(o,c,f){var u=o("./GenericWorker"),m=o("../crc32");function g(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(g,u),g.prototype.processChunk=function(v){this.streamInfo.crc32=m(v.data,this.streamInfo.crc32||0),this.push(v)},c.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(v){m.call(this,"DataLengthProbe for "+v),this.propName=v,this.withStreamInfo(v,0)}u.inherits(g,m),g.prototype.processChunk=function(v){if(v){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+v.data.length}m.prototype.processChunk.call(this,v)},c.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(v){m.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,v.then(function(b){S.dataIsReady=!0,S.data=b,S.max=b&&b.length||0,S.type=u.getTypeOf(b),S.isPaused||S._tickAndRepeat()},function(b){S.error(b)})}u.inherits(g,m),g.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var v=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":v=this.data.substring(this.index,S);break;case"uint8array":v=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":v=this.data.slice(this.index,S)}return this.index=S,this.push({data:v,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(o,c,f){function u(m){this.name=m||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,g){return this._listeners[m].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,g){if(this._listeners[m])for(var v=0;v<this._listeners[m].length;v++)this._listeners[m][v].call(this,g)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var g=this;return m.on("data",function(v){g.processChunk(v)}),m.on("end",function(){g.end()}),m.on("error",function(v){g.error(v)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,g){return this.extraStreamInfo[m]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},c.exports=u},{}],29:[function(o,c,f){var u=o("../utils"),m=o("./ConvertWorker"),g=o("./GenericWorker"),v=o("../base64"),S=o("../support"),b=o("../external"),O=null;if(S.nodestream)try{O=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(F,E){return new b.Promise(function(P,w){var T=[],I=F._internalType,C=F._outputType,U=F._mimeType;F.on("data",function(N,X){T.push(N),E&&E(X)}).on("error",function(N){T=[],w(N)}).on("end",function(){try{var N=function(X,J,Z){switch(X){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),Z);case"base64":return v.encode(J);default:return u.transformTo(X,J)}}(C,function(X,J){var Z,ct=0,Rt=null,tt=0;for(Z=0;Z<J.length;Z++)tt+=J[Z].length;switch(X){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(Rt=new Uint8Array(tt),Z=0;Z<J.length;Z++)Rt.set(J[Z],ct),ct+=J[Z].length;return Rt;case"nodebuffer":return Buffer.concat(J);default:throw new Error("concat : unsupported type '"+X+"'")}}(I,T),U);P(N)}catch(X){w(X)}T=[]}).resume()})}function R(F,E,P){var w=E;switch(E){case"blob":case"arraybuffer":w="uint8array";break;case"base64":w="string"}try{this._internalType=w,this._outputType=E,this._mimeType=P,u.checkSupport(w),this._worker=F.pipe(new m(w)),F.lock()}catch(T){this._worker=new g("error"),this._worker.error(T)}}R.prototype={accumulate:function(F){return k(this,F)},on:function(F,E){var P=this;return F==="data"?this._worker.on(F,function(w){E.call(P,w.data,w.meta)}):this._worker.on(F,function(){u.delay(E,arguments,P)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(F){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new O(this,{objectMode:this._outputType!=="nodebuffer"},F)}},c.exports=R},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,c,f){if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f.nodebuffer=typeof Buffer<"u",f.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")f.blob=!1;else{var u=new ArrayBuffer(0);try{f.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(u),f.blob=m.getBlob("application/zip").size===0}catch{f.blob=!1}}}try{f.nodestream=!!o("readable-stream").Readable}catch{f.nodestream=!1}},{"readable-stream":16}],31:[function(o,c,f){for(var u=o("./utils"),m=o("./support"),g=o("./nodejsUtils"),v=o("./stream/GenericWorker"),S=new Array(256),b=0;b<256;b++)S[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;S[254]=S[254]=1;function O(){v.call(this,"utf-8 decode"),this.leftOver=null}function k(){v.call(this,"utf-8 encode")}f.utf8encode=function(R){return m.nodebuffer?g.newBufferFrom(R,"utf-8"):function(F){var E,P,w,T,I,C=F.length,U=0;for(T=0;T<C;T++)(64512&(P=F.charCodeAt(T)))==55296&&T+1<C&&(64512&(w=F.charCodeAt(T+1)))==56320&&(P=65536+(P-55296<<10)+(w-56320),T++),U+=P<128?1:P<2048?2:P<65536?3:4;for(E=m.uint8array?new Uint8Array(U):new Array(U),T=I=0;I<U;T++)(64512&(P=F.charCodeAt(T)))==55296&&T+1<C&&(64512&(w=F.charCodeAt(T+1)))==56320&&(P=65536+(P-55296<<10)+(w-56320),T++),P<128?E[I++]=P:(P<2048?E[I++]=192|P>>>6:(P<65536?E[I++]=224|P>>>12:(E[I++]=240|P>>>18,E[I++]=128|P>>>12&63),E[I++]=128|P>>>6&63),E[I++]=128|63&P);return E}(R)},f.utf8decode=function(R){return m.nodebuffer?u.transformTo("nodebuffer",R).toString("utf-8"):function(F){var E,P,w,T,I=F.length,C=new Array(2*I);for(E=P=0;E<I;)if((w=F[E++])<128)C[P++]=w;else if(4<(T=S[w]))C[P++]=65533,E+=T-1;else{for(w&=T===2?31:T===3?15:7;1<T&&E<I;)w=w<<6|63&F[E++],T--;1<T?C[P++]=65533:w<65536?C[P++]=w:(w-=65536,C[P++]=55296|w>>10&1023,C[P++]=56320|1023&w)}return C.length!==P&&(C.subarray?C=C.subarray(0,P):C.length=P),u.applyFromCharCode(C)}(R=u.transformTo(m.uint8array?"uint8array":"array",R))},u.inherits(O,v),O.prototype.processChunk=function(R){var F=u.transformTo(m.uint8array?"uint8array":"array",R.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var E=F;(F=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),F.set(E,this.leftOver.length)}else F=this.leftOver.concat(F);this.leftOver=null}var P=function(T,I){var C;for((I=I||T.length)>T.length&&(I=T.length),C=I-1;0<=C&&(192&T[C])==128;)C--;return C<0||C===0?I:C+S[T[C]]>I?C:I}(F),w=F;P!==F.length&&(m.uint8array?(w=F.subarray(0,P),this.leftOver=F.subarray(P,F.length)):(w=F.slice(0,P),this.leftOver=F.slice(P,F.length))),this.push({data:f.utf8decode(w),meta:R.meta})},O.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=O,u.inherits(k,v),k.prototype.processChunk=function(R){this.push({data:f.utf8encode(R.data),meta:R.meta})},f.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,c,f){var u=o("./support"),m=o("./base64"),g=o("./nodejsUtils"),v=o("./external");function S(E){return E}function b(E,P){for(var w=0;w<E.length;++w)P[w]=255&E.charCodeAt(w);return P}o("setimmediate"),f.newBlob=function(E,P){f.checkSupport("blob");try{return new Blob([E],{type:P})}catch{try{var w=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return w.append(E),w.getBlob(P)}catch{throw new Error("Bug : can't construct the Blob.")}}};var O={stringifyByChunk:function(E,P,w){var T=[],I=0,C=E.length;if(C<=w)return String.fromCharCode.apply(null,E);for(;I<C;)P==="array"||P==="nodebuffer"?T.push(String.fromCharCode.apply(null,E.slice(I,Math.min(I+w,C)))):T.push(String.fromCharCode.apply(null,E.subarray(I,Math.min(I+w,C)))),I+=w;return T.join("")},stringifyByChar:function(E){for(var P="",w=0;w<E.length;w++)P+=String.fromCharCode(E[w]);return P},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch{return!1}}()}};function k(E){var P=65536,w=f.getTypeOf(E),T=!0;if(w==="uint8array"?T=O.applyCanBeUsed.uint8array:w==="nodebuffer"&&(T=O.applyCanBeUsed.nodebuffer),T)for(;1<P;)try{return O.stringifyByChunk(E,w,P)}catch{P=Math.floor(P/2)}return O.stringifyByChar(E)}function R(E,P){for(var w=0;w<E.length;w++)P[w]=E[w];return P}f.applyFromCharCode=k;var F={};F.string={string:S,array:function(E){return b(E,new Array(E.length))},arraybuffer:function(E){return F.string.uint8array(E).buffer},uint8array:function(E){return b(E,new Uint8Array(E.length))},nodebuffer:function(E){return b(E,g.allocBuffer(E.length))}},F.array={string:k,array:S,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(E)}},F.arraybuffer={string:function(E){return k(new Uint8Array(E))},array:function(E){return R(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:S,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(new Uint8Array(E))}},F.uint8array={string:k,array:function(E){return R(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:S,nodebuffer:function(E){return g.newBufferFrom(E)}},F.nodebuffer={string:k,array:function(E){return R(E,new Array(E.length))},arraybuffer:function(E){return F.nodebuffer.uint8array(E).buffer},uint8array:function(E){return R(E,new Uint8Array(E.length))},nodebuffer:S},f.transformTo=function(E,P){if(P=P||"",!E)return P;f.checkSupport(E);var w=f.getTypeOf(P);return F[w][E](P)},f.resolve=function(E){for(var P=E.split("/"),w=[],T=0;T<P.length;T++){var I=P[T];I==="."||I===""&&T!==0&&T!==P.length-1||(I===".."?w.pop():w.push(I))}return w.join("/")},f.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":u.nodebuffer&&g.isBuffer(E)?"nodebuffer":u.uint8array&&E instanceof Uint8Array?"uint8array":u.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(E){if(!u[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(E){var P,w,T="";for(w=0;w<(E||"").length;w++)T+="\\x"+((P=E.charCodeAt(w))<16?"0":"")+P.toString(16).toUpperCase();return T},f.delay=function(E,P,w){setImmediate(function(){E.apply(w||null,P||[])})},f.inherits=function(E,P){function w(){}w.prototype=P.prototype,E.prototype=new w},f.extend=function(){var E,P,w={};for(E=0;E<arguments.length;E++)for(P in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],P)&&w[P]===void 0&&(w[P]=arguments[E][P]);return w},f.prepareContent=function(E,P,w,T,I){return v.Promise.resolve(P).then(function(C){return u.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new v.Promise(function(U,N){var X=new FileReader;X.onload=function(J){U(J.target.result)},X.onerror=function(J){N(J.target.error)},X.readAsArrayBuffer(C)}):C}).then(function(C){var U=f.getTypeOf(C);return U?(U==="arraybuffer"?C=f.transformTo("uint8array",C):U==="string"&&(I?C=m.decode(C):w&&T!==!0&&(C=function(N){return b(N,u.uint8array?new Uint8Array(N.length):new Array(N.length))}(C))),C):v.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./signature"),v=o("./zipEntry"),S=o("./support");function b(O){this.files=[],this.loadOptions=O}b.prototype={checkSignature:function(O){if(!this.reader.readAndCheckSignature(O)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(k)+", expected "+m.pretty(O)+")")}},isSignature:function(O,k){var R=this.reader.index;this.reader.setIndex(O);var F=this.reader.readString(4)===k;return this.reader.setIndex(R),F},readBlockEndOfCentral:function(){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);var O=this.reader.readData(this.zipCommentLength),k=S.uint8array?"uint8array":"array",R=m.transformTo(k,O);this.zipComment=this.loadOptions.decodeFileName(R)},readBlockZip64EndOfCentral:function(){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={};for(var O,k,R,F=this.zip64EndOfCentralSize-44;0<F;)O=this.reader.readInt(2),k=this.reader.readInt(4),R=this.reader.readData(k),this.zip64ExtensibleData[O]={id:O,length:k,value:R}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var O,k;for(O=0;O<this.files.length;O++)k=this.files[O],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var O;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(O=new v({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(O);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var O=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(O<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(O);var k=O;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(O=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(O),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var R=this.centralDirOffset+this.centralDirSize;this.zip64&&(R+=20,R+=12+this.zip64EndOfCentralSize);var F=k-R;if(0<F)this.isSignature(k,g.CENTRAL_FILE_HEADER)||(this.reader.zero=F);else if(F<0)throw new Error("Corrupted zip: missing "+Math.abs(F)+" bytes.")},prepareReader:function(O){this.reader=u(O)},load:function(O){this.prepareReader(O),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./compressedObject"),v=o("./crc32"),S=o("./utf8"),b=o("./compressions"),O=o("./support");function k(R,F){this.options=R,this.loadOptions=F}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(R){var F,E;if(R.skip(22),this.fileNameLength=R.readInt(2),E=R.readInt(2),this.fileName=R.readData(this.fileNameLength),R.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((F=function(P){for(var w in b)if(Object.prototype.hasOwnProperty.call(b,w)&&b[w].magic===P)return b[w];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,F,R.readData(this.compressedSize))},readCentralPart:function(R){this.versionMadeBy=R.readInt(2),R.skip(2),this.bitFlag=R.readInt(2),this.compressionMethod=R.readString(2),this.date=R.readDate(),this.crc32=R.readInt(4),this.compressedSize=R.readInt(4),this.uncompressedSize=R.readInt(4);var F=R.readInt(2);if(this.extraFieldsLength=R.readInt(2),this.fileCommentLength=R.readInt(2),this.diskNumberStart=R.readInt(2),this.internalFileAttributes=R.readInt(2),this.externalFileAttributes=R.readInt(4),this.localHeaderOffset=R.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");R.skip(F),this.readExtraFields(R),this.parseZIP64ExtraField(R),this.fileComment=R.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var R=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),R==0&&(this.dosPermissions=63&this.externalFileAttributes),R==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var R=u(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=R.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=R.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=R.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=R.readInt(4))}},readExtraFields:function(R){var F,E,P,w=R.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});R.index+4<w;)F=R.readInt(2),E=R.readInt(2),P=R.readData(E),this.extraFields[F]={id:F,length:E,value:P};R.setIndex(w)},handleUTF8:function(){var R=O.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var F=this.findExtraFieldUnicodePath();if(F!==null)this.fileNameStr=F;else{var E=m.transformTo(R,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var P=this.findExtraFieldUnicodeComment();if(P!==null)this.fileCommentStr=P;else{var w=m.transformTo(R,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(w)}}},findExtraFieldUnicodePath:function(){var R=this.extraFields[28789];if(R){var F=u(R.value);return F.readInt(1)!==1||v(this.fileName)!==F.readInt(4)?null:S.utf8decode(F.readData(R.length-5))}return null},findExtraFieldUnicodeComment:function(){var R=this.extraFields[25461];if(R){var F=u(R.value);return F.readInt(1)!==1||v(this.fileComment)!==F.readInt(4)?null:S.utf8decode(F.readData(R.length-5))}return null}},c.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,c,f){function u(F,E,P){this.name=F,this.dir=P.dir,this.date=P.date,this.comment=P.comment,this.unixPermissions=P.unixPermissions,this.dosPermissions=P.dosPermissions,this._data=E,this._dataBinary=P.binary,this.options={compression:P.compression,compressionOptions:P.compressionOptions}}var m=o("./stream/StreamHelper"),g=o("./stream/DataWorker"),v=o("./utf8"),S=o("./compressedObject"),b=o("./stream/GenericWorker");u.prototype={internalStream:function(F){var E=null,P="string";try{if(!F)throw new Error("No output type specified.");var w=(P=F.toLowerCase())==="string"||P==="text";P!=="binarystring"&&P!=="text"||(P="string"),E=this._decompressWorker();var T=!this._dataBinary;T&&!w&&(E=E.pipe(new v.Utf8EncodeWorker)),!T&&w&&(E=E.pipe(new v.Utf8DecodeWorker))}catch(I){(E=new b("error")).error(I)}return new m(E,P,"")},async:function(F,E){return this.internalStream(F).accumulate(E)},nodeStream:function(F,E){return this.internalStream(F||"nodebuffer").toNodejsStream(E)},_compressWorker:function(F,E){if(this._data instanceof S&&this._data.compression.magic===F.magic)return this._data.getCompressedWorker();var P=this._decompressWorker();return this._dataBinary||(P=P.pipe(new v.Utf8EncodeWorker)),S.createWorkerFrom(P,F,E)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof b?this._data:new g(this._data)}};for(var O=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},R=0;R<O.length;R++)u.prototype[O[R]]=k;c.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,c,f){(function(u){var m,g,v=u.MutationObserver||u.WebKitMutationObserver;if(v){var S=0,b=new v(F),O=u.document.createTextNode("");b.observe(O,{characterData:!0}),m=function(){O.data=S=++S%2}}else if(u.setImmediate||u.MessageChannel===void 0)m="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var E=u.document.createElement("script");E.onreadystatechange=function(){F(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},u.document.documentElement.appendChild(E)}:function(){setTimeout(F,0)};else{var k=new u.MessageChannel;k.port1.onmessage=F,m=function(){k.port2.postMessage(0)}}var R=[];function F(){var E,P;g=!0;for(var w=R.length;w;){for(P=R,R=[],E=-1;++E<w;)P[E]();w=R.length}g=!1}c.exports=function(E){R.push(E)!==1||g||m()}}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,c,f){var u=o("immediate");function m(){}var g={},v=["REJECTED"],S=["FULFILLED"],b=["PENDING"];function O(w){if(typeof w!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,w!==m&&E(this,w)}function k(w,T,I){this.promise=w,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof I=="function"&&(this.onRejected=I,this.callRejected=this.otherCallRejected)}function R(w,T,I){u(function(){var C;try{C=T(I)}catch(U){return g.reject(w,U)}C===w?g.reject(w,new TypeError("Cannot resolve promise with itself")):g.resolve(w,C)})}function F(w){var T=w&&w.then;if(w&&(typeof w=="object"||typeof w=="function")&&typeof T=="function")return function(){T.apply(w,arguments)}}function E(w,T){var I=!1;function C(X){I||(I=!0,g.reject(w,X))}function U(X){I||(I=!0,g.resolve(w,X))}var N=P(function(){T(U,C)});N.status==="error"&&C(N.value)}function P(w,T){var I={};try{I.value=w(T),I.status="success"}catch(C){I.status="error",I.value=C}return I}(c.exports=O).prototype.finally=function(w){if(typeof w!="function")return this;var T=this.constructor;return this.then(function(I){return T.resolve(w()).then(function(){return I})},function(I){return T.resolve(w()).then(function(){throw I})})},O.prototype.catch=function(w){return this.then(null,w)},O.prototype.then=function(w,T){if(typeof w!="function"&&this.state===S||typeof T!="function"&&this.state===v)return this;var I=new this.constructor(m);return this.state!==b?R(I,this.state===S?w:T,this.outcome):this.queue.push(new k(I,w,T)),I},k.prototype.callFulfilled=function(w){g.resolve(this.promise,w)},k.prototype.otherCallFulfilled=function(w){R(this.promise,this.onFulfilled,w)},k.prototype.callRejected=function(w){g.reject(this.promise,w)},k.prototype.otherCallRejected=function(w){R(this.promise,this.onRejected,w)},g.resolve=function(w,T){var I=P(F,T);if(I.status==="error")return g.reject(w,I.value);var C=I.value;if(C)E(w,C);else{w.state=S,w.outcome=T;for(var U=-1,N=w.queue.length;++U<N;)w.queue[U].callFulfilled(T)}return w},g.reject=function(w,T){w.state=v,w.outcome=T;for(var I=-1,C=w.queue.length;++I<C;)w.queue[I].callRejected(T);return w},O.resolve=function(w){return w instanceof this?w:g.resolve(new this(m),w)},O.reject=function(w){var T=new this(m);return g.reject(T,w)},O.all=function(w){var T=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=w.length,C=!1;if(!I)return this.resolve([]);for(var U=new Array(I),N=0,X=-1,J=new this(m);++X<I;)Z(w[X],X);return J;function Z(ct,Rt){T.resolve(ct).then(function(tt){U[Rt]=tt,++N!==I||C||(C=!0,g.resolve(J,U))},function(tt){C||(C=!0,g.reject(J,tt))})}},O.race=function(w){var T=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=w.length,C=!1;if(!I)return this.resolve([]);for(var U=-1,N=new this(m);++U<I;)X=w[U],T.resolve(X).then(function(J){C||(C=!0,g.resolve(N,J))},function(J){C||(C=!0,g.reject(N,J))});var X;return N}},{immediate:36}],38:[function(o,c,f){var u={};(0,o("./lib/utils/common").assign)(u,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),c.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,c,f){var u=o("./zlib/deflate"),m=o("./utils/common"),g=o("./utils/strings"),v=o("./zlib/messages"),S=o("./zlib/zstream"),b=Object.prototype.toString,O=0,k=-1,R=0,F=8;function E(w){if(!(this instanceof E))return new E(w);this.options=m.assign({level:k,method:F,chunkSize:16384,windowBits:15,memLevel:8,strategy:R,to:""},w||{});var T=this.options;T.raw&&0<T.windowBits?T.windowBits=-T.windowBits:T.gzip&&0<T.windowBits&&T.windowBits<16&&(T.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var I=u.deflateInit2(this.strm,T.level,T.method,T.windowBits,T.memLevel,T.strategy);if(I!==O)throw new Error(v[I]);if(T.header&&u.deflateSetHeader(this.strm,T.header),T.dictionary){var C;if(C=typeof T.dictionary=="string"?g.string2buf(T.dictionary):b.call(T.dictionary)==="[object ArrayBuffer]"?new Uint8Array(T.dictionary):T.dictionary,(I=u.deflateSetDictionary(this.strm,C))!==O)throw new Error(v[I]);this._dict_set=!0}}function P(w,T){var I=new E(T);if(I.push(w,!0),I.err)throw I.msg||v[I.err];return I.result}E.prototype.push=function(w,T){var I,C,U=this.strm,N=this.options.chunkSize;if(this.ended)return!1;C=T===~~T?T:T===!0?4:0,typeof w=="string"?U.input=g.string2buf(w):b.call(w)==="[object ArrayBuffer]"?U.input=new Uint8Array(w):U.input=w,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new m.Buf8(N),U.next_out=0,U.avail_out=N),(I=u.deflate(U,C))!==1&&I!==O)return this.onEnd(I),!(this.ended=!0);U.avail_out!==0&&(U.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(m.shrinkBuf(U.output,U.next_out))):this.onData(m.shrinkBuf(U.output,U.next_out)))}while((0<U.avail_in||U.avail_out===0)&&I!==1);return C===4?(I=u.deflateEnd(this.strm),this.onEnd(I),this.ended=!0,I===O):C!==2||(this.onEnd(O),!(U.avail_out=0))},E.prototype.onData=function(w){this.chunks.push(w)},E.prototype.onEnd=function(w){w===O&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg},f.Deflate=E,f.deflate=P,f.deflateRaw=function(w,T){return(T=T||{}).raw=!0,P(w,T)},f.gzip=function(w,T){return(T=T||{}).gzip=!0,P(w,T)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,c,f){var u=o("./zlib/inflate"),m=o("./utils/common"),g=o("./utils/strings"),v=o("./zlib/constants"),S=o("./zlib/messages"),b=o("./zlib/zstream"),O=o("./zlib/gzheader"),k=Object.prototype.toString;function R(E){if(!(this instanceof R))return new R(E);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},E||{});var P=this.options;P.raw&&0<=P.windowBits&&P.windowBits<16&&(P.windowBits=-P.windowBits,P.windowBits===0&&(P.windowBits=-15)),!(0<=P.windowBits&&P.windowBits<16)||E&&E.windowBits||(P.windowBits+=32),15<P.windowBits&&P.windowBits<48&&!(15&P.windowBits)&&(P.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var w=u.inflateInit2(this.strm,P.windowBits);if(w!==v.Z_OK)throw new Error(S[w]);this.header=new O,u.inflateGetHeader(this.strm,this.header)}function F(E,P){var w=new R(P);if(w.push(E,!0),w.err)throw w.msg||S[w.err];return w.result}R.prototype.push=function(E,P){var w,T,I,C,U,N,X=this.strm,J=this.options.chunkSize,Z=this.options.dictionary,ct=!1;if(this.ended)return!1;T=P===~~P?P:P===!0?v.Z_FINISH:v.Z_NO_FLUSH,typeof E=="string"?X.input=g.binstring2buf(E):k.call(E)==="[object ArrayBuffer]"?X.input=new Uint8Array(E):X.input=E,X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0&&(X.output=new m.Buf8(J),X.next_out=0,X.avail_out=J),(w=u.inflate(X,v.Z_NO_FLUSH))===v.Z_NEED_DICT&&Z&&(N=typeof Z=="string"?g.string2buf(Z):k.call(Z)==="[object ArrayBuffer]"?new Uint8Array(Z):Z,w=u.inflateSetDictionary(this.strm,N)),w===v.Z_BUF_ERROR&&ct===!0&&(w=v.Z_OK,ct=!1),w!==v.Z_STREAM_END&&w!==v.Z_OK)return this.onEnd(w),!(this.ended=!0);X.next_out&&(X.avail_out!==0&&w!==v.Z_STREAM_END&&(X.avail_in!==0||T!==v.Z_FINISH&&T!==v.Z_SYNC_FLUSH)||(this.options.to==="string"?(I=g.utf8border(X.output,X.next_out),C=X.next_out-I,U=g.buf2string(X.output,I),X.next_out=C,X.avail_out=J-C,C&&m.arraySet(X.output,X.output,I,C,0),this.onData(U)):this.onData(m.shrinkBuf(X.output,X.next_out)))),X.avail_in===0&&X.avail_out===0&&(ct=!0)}while((0<X.avail_in||X.avail_out===0)&&w!==v.Z_STREAM_END);return w===v.Z_STREAM_END&&(T=v.Z_FINISH),T===v.Z_FINISH?(w=u.inflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===v.Z_OK):T!==v.Z_SYNC_FLUSH||(this.onEnd(v.Z_OK),!(X.avail_out=0))},R.prototype.onData=function(E){this.chunks.push(E)},R.prototype.onEnd=function(E){E===v.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},f.Inflate=R,f.inflate=F,f.inflateRaw=function(E,P){return(P=P||{}).raw=!0,F(E,P)},f.ungzip=F},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";f.assign=function(v){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var b=S.shift();if(b){if(typeof b!="object")throw new TypeError(b+"must be non-object");for(var O in b)b.hasOwnProperty(O)&&(v[O]=b[O])}}return v},f.shrinkBuf=function(v,S){return v.length===S?v:v.subarray?v.subarray(0,S):(v.length=S,v)};var m={arraySet:function(v,S,b,O,k){if(S.subarray&&v.subarray)v.set(S.subarray(b,b+O),k);else for(var R=0;R<O;R++)v[k+R]=S[b+R]},flattenChunks:function(v){var S,b,O,k,R,F;for(S=O=0,b=v.length;S<b;S++)O+=v[S].length;for(F=new Uint8Array(O),S=k=0,b=v.length;S<b;S++)R=v[S],F.set(R,k),k+=R.length;return F}},g={arraySet:function(v,S,b,O,k){for(var R=0;R<O;R++)v[k+R]=S[b+R]},flattenChunks:function(v){return[].concat.apply([],v)}};f.setTyped=function(v){v?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,m)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,g))},f.setTyped(u)},{}],42:[function(o,c,f){var u=o("./common"),m=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}for(var v=new u.Buf8(256),S=0;S<256;S++)v[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function b(O,k){if(k<65537&&(O.subarray&&g||!O.subarray&&m))return String.fromCharCode.apply(null,u.shrinkBuf(O,k));for(var R="",F=0;F<k;F++)R+=String.fromCharCode(O[F]);return R}v[254]=v[254]=1,f.string2buf=function(O){var k,R,F,E,P,w=O.length,T=0;for(E=0;E<w;E++)(64512&(R=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(F=O.charCodeAt(E+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),E++),T+=R<128?1:R<2048?2:R<65536?3:4;for(k=new u.Buf8(T),E=P=0;P<T;E++)(64512&(R=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(F=O.charCodeAt(E+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),E++),R<128?k[P++]=R:(R<2048?k[P++]=192|R>>>6:(R<65536?k[P++]=224|R>>>12:(k[P++]=240|R>>>18,k[P++]=128|R>>>12&63),k[P++]=128|R>>>6&63),k[P++]=128|63&R);return k},f.buf2binstring=function(O){return b(O,O.length)},f.binstring2buf=function(O){for(var k=new u.Buf8(O.length),R=0,F=k.length;R<F;R++)k[R]=O.charCodeAt(R);return k},f.buf2string=function(O,k){var R,F,E,P,w=k||O.length,T=new Array(2*w);for(R=F=0;R<w;)if((E=O[R++])<128)T[F++]=E;else if(4<(P=v[E]))T[F++]=65533,R+=P-1;else{for(E&=P===2?31:P===3?15:7;1<P&&R<w;)E=E<<6|63&O[R++],P--;1<P?T[F++]=65533:E<65536?T[F++]=E:(E-=65536,T[F++]=55296|E>>10&1023,T[F++]=56320|1023&E)}return b(T,F)},f.utf8border=function(O,k){var R;for((k=k||O.length)>O.length&&(k=O.length),R=k-1;0<=R&&(192&O[R])==128;)R--;return R<0||R===0?k:R+v[O[R]]>k?R:k}},{"./common":41}],43:[function(o,c,f){c.exports=function(u,m,g,v){for(var S=65535&u|0,b=u>>>16&65535|0,O=0;g!==0;){for(g-=O=2e3<g?2e3:g;b=b+(S=S+m[v++]|0)|0,--O;);S%=65521,b%=65521}return S|b<<16|0}},{}],44:[function(o,c,f){c.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}},{}],45:[function(o,c,f){var u=function(){for(var m,g=[],v=0;v<256;v++){m=v;for(var S=0;S<8;S++)m=1&m?3988292384^m>>>1:m>>>1;g[v]=m}return g}();c.exports=function(m,g,v,S){var b=u,O=S+v;m^=-1;for(var k=S;k<O;k++)m=m>>>8^b[255&(m^g[k])];return-1^m}},{}],46:[function(o,c,f){var u,m=o("../utils/common"),g=o("./trees"),v=o("./adler32"),S=o("./crc32"),b=o("./messages"),O=0,k=4,R=0,F=-2,E=-1,P=4,w=2,T=8,I=9,C=286,U=30,N=19,X=2*C+1,J=15,Z=3,ct=258,Rt=ct+Z+1,tt=42,_t=113,G=1,Pt=2,Et=3,At=4;function ce(W,Jt){return W.msg=b[Jt],Jt}function re(W){return(W<<1)-(4<W?9:0)}function Ft(W){for(var Jt=W.length;0<=--Jt;)W[Jt]=0}function It(W){var Jt=W.state,jt=Jt.pending;jt>W.avail_out&&(jt=W.avail_out),jt!==0&&(m.arraySet(W.output,Jt.pending_buf,Jt.pending_out,jt,W.next_out),W.next_out+=jt,Jt.pending_out+=jt,W.total_out+=jt,W.avail_out-=jt,Jt.pending-=jt,Jt.pending===0&&(Jt.pending_out=0))}function Bt(W,Jt){g._tr_flush_block(W,0<=W.block_start?W.block_start:-1,W.strstart-W.block_start,Jt),W.block_start=W.strstart,It(W.strm)}function Pe(W,Jt){W.pending_buf[W.pending++]=Jt}function pe(W,Jt){W.pending_buf[W.pending++]=Jt>>>8&255,W.pending_buf[W.pending++]=255&Jt}function Wt(W,Jt){var jt,dt,pt=W.max_chain_length,Dt=W.strstart,ie=W.prev_length,Kt=W.nice_match,z=W.strstart>W.w_size-Rt?W.strstart-(W.w_size-Rt):0,Q=W.window,st=W.w_mask,nt=W.prev,vt=W.strstart+ct,Ut=Q[Dt+ie-1],qt=Q[Dt+ie];W.prev_length>=W.good_match&&(pt>>=2),Kt>W.lookahead&&(Kt=W.lookahead);do if(Q[(jt=Jt)+ie]===qt&&Q[jt+ie-1]===Ut&&Q[jt]===Q[Dt]&&Q[++jt]===Q[Dt+1]){Dt+=2,jt++;do;while(Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Dt<vt);if(dt=ct-(vt-Dt),Dt=vt-ct,ie<dt){if(W.match_start=Jt,Kt<=(ie=dt))break;Ut=Q[Dt+ie-1],qt=Q[Dt+ie]}}while((Jt=nt[Jt&st])>z&&--pt!=0);return ie<=W.lookahead?ie:W.lookahead}function $e(W){var Jt,jt,dt,pt,Dt,ie,Kt,z,Q,st,nt=W.w_size;do{if(pt=W.window_size-W.lookahead-W.strstart,W.strstart>=nt+(nt-Rt)){for(m.arraySet(W.window,W.window,nt,nt,0),W.match_start-=nt,W.strstart-=nt,W.block_start-=nt,Jt=jt=W.hash_size;dt=W.head[--Jt],W.head[Jt]=nt<=dt?dt-nt:0,--jt;);for(Jt=jt=nt;dt=W.prev[--Jt],W.prev[Jt]=nt<=dt?dt-nt:0,--jt;);pt+=nt}if(W.strm.avail_in===0)break;if(ie=W.strm,Kt=W.window,z=W.strstart+W.lookahead,Q=pt,st=void 0,st=ie.avail_in,Q<st&&(st=Q),jt=st===0?0:(ie.avail_in-=st,m.arraySet(Kt,ie.input,ie.next_in,st,z),ie.state.wrap===1?ie.adler=v(ie.adler,Kt,st,z):ie.state.wrap===2&&(ie.adler=S(ie.adler,Kt,st,z)),ie.next_in+=st,ie.total_in+=st,st),W.lookahead+=jt,W.lookahead+W.insert>=Z)for(Dt=W.strstart-W.insert,W.ins_h=W.window[Dt],W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+Z-1])&W.hash_mask,W.prev[Dt&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=Dt,Dt++,W.insert--,!(W.lookahead+W.insert<Z)););}while(W.lookahead<Rt&&W.strm.avail_in!==0)}function Si(W,Jt){for(var jt,dt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),jt!==0&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt)),W.match_length>=Z)if(dt=g._tr_tally(W,W.strstart-W.match_start,W.match_length-Z),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=Z){for(W.match_length--;W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart,--W.match_length!=0;);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else dt=g._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(dt&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Oe(W,Jt){for(var jt,dt,pt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=Z-1,jt!==0&&W.prev_length<W.max_lazy_match&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt),W.match_length<=5&&(W.strategy===1||W.match_length===Z&&4096<W.strstart-W.match_start)&&(W.match_length=Z-1)),W.prev_length>=Z&&W.match_length<=W.prev_length){for(pt=W.strstart+W.lookahead-Z,dt=g._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-Z),W.lookahead-=W.prev_length-1,W.prev_length-=2;++W.strstart<=pt&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),--W.prev_length!=0;);if(W.match_available=0,W.match_length=Z-1,W.strstart++,dt&&(Bt(W,!1),W.strm.avail_out===0))return G}else if(W.match_available){if((dt=g._tr_tally(W,0,W.window[W.strstart-1]))&&Bt(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return G}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(dt=g._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Pt}function Ge(W,Jt,jt,dt,pt){this.good_length=W,this.max_lazy=Jt,this.nice_length=jt,this.max_chain=dt,this.func=pt}function pi(){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=T,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 m.Buf16(2*X),this.dyn_dtree=new m.Buf16(2*(2*U+1)),this.bl_tree=new m.Buf16(2*(2*N+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(J+1),this.heap=new m.Buf16(2*C+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*C+1),Ft(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}function Di(W){var Jt;return W&&W.state?(W.total_in=W.total_out=0,W.data_type=w,(Jt=W.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?tt:_t,W.adler=Jt.wrap===2?0:1,Jt.last_flush=O,g._tr_init(Jt),R):ce(W,F)}function gn(W){var Jt=Di(W);return Jt===R&&function(jt){jt.window_size=2*jt.w_size,Ft(jt.head),jt.max_lazy_match=u[jt.level].max_lazy,jt.good_match=u[jt.level].good_length,jt.nice_match=u[jt.level].nice_length,jt.max_chain_length=u[jt.level].max_chain,jt.strstart=0,jt.block_start=0,jt.lookahead=0,jt.insert=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,jt.ins_h=0}(W.state),Jt}function Qi(W,Jt,jt,dt,pt,Dt){if(!W)return F;var ie=1;if(Jt===E&&(Jt=6),dt<0?(ie=0,dt=-dt):15<dt&&(ie=2,dt-=16),pt<1||I<pt||jt!==T||dt<8||15<dt||Jt<0||9<Jt||Dt<0||P<Dt)return ce(W,F);dt===8&&(dt=9);var Kt=new pi;return(W.state=Kt).strm=W,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=dt,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=pt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+Z-1)/Z),Kt.window=new m.Buf8(2*Kt.w_size),Kt.head=new m.Buf16(Kt.hash_size),Kt.prev=new m.Buf16(Kt.w_size),Kt.lit_bufsize=1<<pt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new m.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Dt,Kt.method=jt,gn(W)}u=[new Ge(0,0,0,0,function(W,Jt){var jt=65535;for(jt>W.pending_buf_size-5&&(jt=W.pending_buf_size-5);;){if(W.lookahead<=1){if($e(W),W.lookahead===0&&Jt===O)return G;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var dt=W.block_start+jt;if((W.strstart===0||W.strstart>=dt)&&(W.lookahead=W.strstart-dt,W.strstart=dt,Bt(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-Rt&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=0,Jt===k?(Bt(W,!0),W.strm.avail_out===0?Et:At):(W.strstart>W.block_start&&(Bt(W,!1),W.strm.avail_out),G)}),new Ge(4,4,8,4,Si),new Ge(4,5,16,8,Si),new Ge(4,6,32,32,Si),new Ge(4,4,16,16,Oe),new Ge(8,16,32,32,Oe),new Ge(8,16,128,128,Oe),new Ge(8,32,128,256,Oe),new Ge(32,128,258,1024,Oe),new Ge(32,258,258,4096,Oe)],f.deflateInit=function(W,Jt){return Qi(W,Jt,T,15,8,0)},f.deflateInit2=Qi,f.deflateReset=gn,f.deflateResetKeep=Di,f.deflateSetHeader=function(W,Jt){return W&&W.state?W.state.wrap!==2?F:(W.state.gzhead=Jt,R):F},f.deflate=function(W,Jt){var jt,dt,pt,Dt;if(!W||!W.state||5<Jt||Jt<0)return W?ce(W,F):F;if(dt=W.state,!W.output||!W.input&&W.avail_in!==0||dt.status===666&&Jt!==k)return ce(W,W.avail_out===0?-5:F);if(dt.strm=W,jt=dt.last_flush,dt.last_flush=Jt,dt.status===tt)if(dt.wrap===2)W.adler=0,Pe(dt,31),Pe(dt,139),Pe(dt,8),dt.gzhead?(Pe(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),Pe(dt,255&dt.gzhead.time),Pe(dt,dt.gzhead.time>>8&255),Pe(dt,dt.gzhead.time>>16&255),Pe(dt,dt.gzhead.time>>24&255),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,255&dt.gzhead.os),dt.gzhead.extra&&dt.gzhead.extra.length&&(Pe(dt,255&dt.gzhead.extra.length),Pe(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(W.adler=S(W.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=69):(Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,3),dt.status=_t);else{var ie=T+(dt.w_bits-8<<4)<<8;ie|=(2<=dt.strategy||dt.level<2?0:dt.level<6?1:dt.level===6?2:3)<<6,dt.strstart!==0&&(ie|=32),ie+=31-ie%31,dt.status=_t,pe(dt,ie),dt.strstart!==0&&(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),W.adler=1}if(dt.status===69)if(dt.gzhead.extra){for(pt=dt.pending;dt.gzindex<(65535&dt.gzhead.extra.length)&&(dt.pending!==dt.pending_buf_size||(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending!==dt.pending_buf_size));)Pe(dt,255&dt.gzhead.extra[dt.gzindex]),dt.gzindex++;dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),dt.gzindex===dt.gzhead.extra.length&&(dt.gzindex=0,dt.status=73)}else dt.status=73;if(dt.status===73)if(dt.gzhead.name){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.name.length?255&dt.gzhead.name.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.gzindex=0,dt.status=91)}else dt.status=91;if(dt.status===91)if(dt.gzhead.comment){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.comment.length?255&dt.gzhead.comment.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.status=103)}else dt.status=103;if(dt.status===103&&(dt.gzhead.hcrc?(dt.pending+2>dt.pending_buf_size&&It(W),dt.pending+2<=dt.pending_buf_size&&(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),W.adler=0,dt.status=_t)):dt.status=_t),dt.pending!==0){if(It(W),W.avail_out===0)return dt.last_flush=-1,R}else if(W.avail_in===0&&re(Jt)<=re(jt)&&Jt!==k)return ce(W,-5);if(dt.status===666&&W.avail_in!==0)return ce(W,-5);if(W.avail_in!==0||dt.lookahead!==0||Jt!==O&&dt.status!==666){var Kt=dt.strategy===2?function(z,Q){for(var st;;){if(z.lookahead===0&&($e(z),z.lookahead===0)){if(Q===O)return G;break}if(z.match_length=0,st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,st&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):dt.strategy===3?function(z,Q){for(var st,nt,vt,Ut,qt=z.window;;){if(z.lookahead<=ct){if($e(z),z.lookahead<=ct&&Q===O)return G;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=Z&&0<z.strstart&&(nt=qt[vt=z.strstart-1])===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]){Ut=z.strstart+ct;do;while(nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&vt<Ut);z.match_length=ct-(Ut-vt),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=Z?(st=g._tr_tally(z,1,z.match_length-Z),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),st&&(Bt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Bt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Bt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):u[dt.level].func(dt,Jt);if(Kt!==Et&&Kt!==At||(dt.status=666),Kt===G||Kt===Et)return W.avail_out===0&&(dt.last_flush=-1),R;if(Kt===Pt&&(Jt===1?g._tr_align(dt):Jt!==5&&(g._tr_stored_block(dt,0,0,!1),Jt===3&&(Ft(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),It(W),W.avail_out===0))return dt.last_flush=-1,R}return Jt!==k?R:dt.wrap<=0?1:(dt.wrap===2?(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),Pe(dt,W.adler>>16&255),Pe(dt,W.adler>>24&255),Pe(dt,255&W.total_in),Pe(dt,W.total_in>>8&255),Pe(dt,W.total_in>>16&255),Pe(dt,W.total_in>>24&255)):(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),It(W),0<dt.wrap&&(dt.wrap=-dt.wrap),dt.pending!==0?R:1)},f.deflateEnd=function(W){var Jt;return W&&W.state?(Jt=W.state.status)!==tt&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==_t&&Jt!==666?ce(W,F):(W.state=null,Jt===_t?ce(W,-3):R):F},f.deflateSetDictionary=function(W,Jt){var jt,dt,pt,Dt,ie,Kt,z,Q,st=Jt.length;if(!W||!W.state||(Dt=(jt=W.state).wrap)===2||Dt===1&&jt.status!==tt||jt.lookahead)return F;for(Dt===1&&(W.adler=v(W.adler,Jt,st,0)),jt.wrap=0,st>=jt.w_size&&(Dt===0&&(Ft(jt.head),jt.strstart=0,jt.block_start=0,jt.insert=0),Q=new m.Buf8(jt.w_size),m.arraySet(Q,Jt,st-jt.w_size,jt.w_size,0),Jt=Q,st=jt.w_size),ie=W.avail_in,Kt=W.next_in,z=W.input,W.avail_in=st,W.next_in=0,W.input=Jt,$e(jt);jt.lookahead>=Z;){for(dt=jt.strstart,pt=jt.lookahead-(Z-1);jt.ins_h=(jt.ins_h<<jt.hash_shift^jt.window[dt+Z-1])&jt.hash_mask,jt.prev[dt&jt.w_mask]=jt.head[jt.ins_h],jt.head[jt.ins_h]=dt,dt++,--pt;);jt.strstart=dt,jt.lookahead=Z-1,$e(jt)}return jt.strstart+=jt.lookahead,jt.block_start=jt.strstart,jt.insert=jt.lookahead,jt.lookahead=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,W.next_in=Kt,W.input=z,W.avail_in=ie,jt.wrap=Dt,R},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,c,f){c.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,c,f){c.exports=function(u,m){var g,v,S,b,O,k,R,F,E,P,w,T,I,C,U,N,X,J,Z,ct,Rt,tt,_t,G,Pt;g=u.state,v=u.next_in,G=u.input,S=v+(u.avail_in-5),b=u.next_out,Pt=u.output,O=b-(m-u.avail_out),k=b+(u.avail_out-257),R=g.dmax,F=g.wsize,E=g.whave,P=g.wnext,w=g.window,T=g.hold,I=g.bits,C=g.lencode,U=g.distcode,N=(1<<g.lenbits)-1,X=(1<<g.distbits)-1;t:do{I<15&&(T+=G[v++]<<I,I+=8,T+=G[v++]<<I,I+=8),J=C[T&N];e:for(;;){if(T>>>=Z=J>>>24,I-=Z,(Z=J>>>16&255)===0)Pt[b++]=65535&J;else{if(!(16&Z)){if(!(64&Z)){J=C[(65535&J)+(T&(1<<Z)-1)];continue e}if(32&Z){g.mode=12;break t}u.msg="invalid literal/length code",g.mode=30;break t}ct=65535&J,(Z&=15)&&(I<Z&&(T+=G[v++]<<I,I+=8),ct+=T&(1<<Z)-1,T>>>=Z,I-=Z),I<15&&(T+=G[v++]<<I,I+=8,T+=G[v++]<<I,I+=8),J=U[T&X];i:for(;;){if(T>>>=Z=J>>>24,I-=Z,!(16&(Z=J>>>16&255))){if(!(64&Z)){J=U[(65535&J)+(T&(1<<Z)-1)];continue i}u.msg="invalid distance code",g.mode=30;break t}if(Rt=65535&J,I<(Z&=15)&&(T+=G[v++]<<I,(I+=8)<Z&&(T+=G[v++]<<I,I+=8)),R<(Rt+=T&(1<<Z)-1)){u.msg="invalid distance too far back",g.mode=30;break t}if(T>>>=Z,I-=Z,(Z=b-O)<Rt){if(E<(Z=Rt-Z)&&g.sane){u.msg="invalid distance too far back",g.mode=30;break t}if(_t=w,(tt=0)===P){if(tt+=F-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}else if(P<Z){if(tt+=F+P-Z,(Z-=P)<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);if(tt=0,P<ct){for(ct-=Z=P;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}}else if(tt+=P-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}for(;2<ct;)Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],ct-=3;ct&&(Pt[b++]=_t[tt++],1<ct&&(Pt[b++]=_t[tt++]))}else{for(tt=b-Rt;Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],2<(ct-=3););ct&&(Pt[b++]=Pt[tt++],1<ct&&(Pt[b++]=Pt[tt++]))}break}}break}}while(v<S&&b<k);v-=ct=I>>3,T&=(1<<(I-=ct<<3))-1,u.next_in=v,u.next_out=b,u.avail_in=v<S?S-v+5:5-(v-S),u.avail_out=b<k?k-b+257:257-(b-k),g.hold=T,g.bits=I}},{}],49:[function(o,c,f){var u=o("../utils/common"),m=o("./adler32"),g=o("./crc32"),v=o("./inffast"),S=o("./inftrees"),b=1,O=2,k=0,R=-2,F=1,E=852,P=592;function w(tt){return(tt>>>24&255)+(tt>>>8&65280)+((65280&tt)<<8)+((255&tt)<<24)}function T(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function I(tt){var _t;return tt&&tt.state?(_t=tt.state,tt.total_in=tt.total_out=_t.total=0,tt.msg="",_t.wrap&&(tt.adler=1&_t.wrap),_t.mode=F,_t.last=0,_t.havedict=0,_t.dmax=32768,_t.head=null,_t.hold=0,_t.bits=0,_t.lencode=_t.lendyn=new u.Buf32(E),_t.distcode=_t.distdyn=new u.Buf32(P),_t.sane=1,_t.back=-1,k):R}function C(tt){var _t;return tt&&tt.state?((_t=tt.state).wsize=0,_t.whave=0,_t.wnext=0,I(tt)):R}function U(tt,_t){var G,Pt;return tt&&tt.state?(Pt=tt.state,_t<0?(G=0,_t=-_t):(G=1+(_t>>4),_t<48&&(_t&=15)),_t&&(_t<8||15<_t)?R:(Pt.window!==null&&Pt.wbits!==_t&&(Pt.window=null),Pt.wrap=G,Pt.wbits=_t,C(tt))):R}function N(tt,_t){var G,Pt;return tt?(Pt=new T,(tt.state=Pt).window=null,(G=U(tt,_t))!==k&&(tt.state=null),G):R}var X,J,Z=!0;function ct(tt){if(Z){var _t;for(X=new u.Buf32(512),J=new u.Buf32(32),_t=0;_t<144;)tt.lens[_t++]=8;for(;_t<256;)tt.lens[_t++]=9;for(;_t<280;)tt.lens[_t++]=7;for(;_t<288;)tt.lens[_t++]=8;for(S(b,tt.lens,0,288,X,0,tt.work,{bits:9}),_t=0;_t<32;)tt.lens[_t++]=5;S(O,tt.lens,0,32,J,0,tt.work,{bits:5}),Z=!1}tt.lencode=X,tt.lenbits=9,tt.distcode=J,tt.distbits=5}function Rt(tt,_t,G,Pt){var Et,At=tt.state;return At.window===null&&(At.wsize=1<<At.wbits,At.wnext=0,At.whave=0,At.window=new u.Buf8(At.wsize)),Pt>=At.wsize?(u.arraySet(At.window,_t,G-At.wsize,At.wsize,0),At.wnext=0,At.whave=At.wsize):(Pt<(Et=At.wsize-At.wnext)&&(Et=Pt),u.arraySet(At.window,_t,G-Pt,Et,At.wnext),(Pt-=Et)?(u.arraySet(At.window,_t,G-Pt,Pt,0),At.wnext=Pt,At.whave=At.wsize):(At.wnext+=Et,At.wnext===At.wsize&&(At.wnext=0),At.whave<At.wsize&&(At.whave+=Et))),0}f.inflateReset=C,f.inflateReset2=U,f.inflateResetKeep=I,f.inflateInit=function(tt){return N(tt,15)},f.inflateInit2=N,f.inflate=function(tt,_t){var G,Pt,Et,At,ce,re,Ft,It,Bt,Pe,pe,Wt,$e,Si,Oe,Ge,pi,Di,gn,Qi,W,Jt,jt,dt,pt=0,Dt=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!tt||!tt.state||!tt.output||!tt.input&&tt.avail_in!==0)return R;(G=tt.state).mode===12&&(G.mode=13),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Bt=G.bits,Pe=re,pe=Ft,Jt=k;t:for(;;)switch(G.mode){case F:if(G.wrap===0){G.mode=13;break}for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(2&G.wrap&&It===35615){Dt[G.check=0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0),Bt=It=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&It)<<8)+(It>>8))%31){tt.msg="incorrect header check",G.mode=30;break}if((15&It)!=8){tt.msg="unknown compression method",G.mode=30;break}if(Bt-=4,W=8+(15&(It>>>=4)),G.wbits===0)G.wbits=W;else if(W>G.wbits){tt.msg="invalid window size",G.mode=30;break}G.dmax=1<<W,tt.adler=G.check=1,G.mode=512&It?10:12,Bt=It=0;break;case 2:for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(G.flags=It,(255&G.flags)!=8){tt.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){tt.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=It>>8&1),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Bt=It=0,G.mode=3;case 3:for(;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.head&&(G.head.time=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,Dt[2]=It>>>16&255,Dt[3]=It>>>24&255,G.check=g(G.check,Dt,4,0)),Bt=It=0,G.mode=4;case 4:for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.head&&(G.head.xflags=255&It,G.head.os=It>>8),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Bt=It=0,G.mode=5;case 5:if(1024&G.flags){for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.length=It,G.head&&(G.head.extra_len=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Bt=It=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(re<(Wt=G.length)&&(Wt=re),Wt&&(G.head&&(W=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),u.arraySet(G.head.extra,Pt,At,Wt,W)),512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,G.length-=Wt),G.length))break t;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.name+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.comment+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;Bt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(It!==(65535&G.check)){tt.msg="header crc mismatch",G.mode=30;break}Bt=It=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),tt.adler=G.check=0,G.mode=12;break;case 10:for(;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}tt.adler=G.check=w(It),Bt=It=0,G.mode=11;case 11:if(G.havedict===0)return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Bt,2;tt.adler=G.check=1,G.mode=12;case 12:if(_t===5||_t===6)break t;case 13:if(G.last){It>>>=7&Bt,Bt-=7&Bt,G.mode=27;break}for(;Bt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}switch(G.last=1&It,Bt-=1,3&(It>>>=1)){case 0:G.mode=14;break;case 1:if(ct(G),G.mode=20,_t!==6)break;It>>>=2,Bt-=2;break t;case 2:G.mode=17;break;case 3:tt.msg="invalid block type",G.mode=30}It>>>=2,Bt-=2;break;case 14:for(It>>>=7&Bt,Bt-=7&Bt;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if((65535&It)!=(It>>>16^65535)){tt.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&It,Bt=It=0,G.mode=15,_t===6)break t;case 15:G.mode=16;case 16:if(Wt=G.length){if(re<Wt&&(Wt=re),Ft<Wt&&(Wt=Ft),Wt===0)break t;u.arraySet(Et,Pt,At,Wt,ce),re-=Wt,At+=Wt,Ft-=Wt,ce+=Wt,G.length-=Wt;break}G.mode=12;break;case 17:for(;Bt<14;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(G.nlen=257+(31&It),It>>>=5,Bt-=5,G.ndist=1+(31&It),It>>>=5,Bt-=5,G.ncode=4+(15&It),It>>>=4,Bt-=4,286<G.nlen||30<G.ndist){tt.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;Bt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.lens[ie[G.have++]]=7&It,It>>>=3,Bt-=3}for(;G.have<19;)G.lens[ie[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,jt={bits:G.lenbits},Jt=S(0,G.lens,0,19,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(pi<16)It>>>=Oe,Bt-=Oe,G.lens[G.have++]=pi;else{if(pi===16){for(dt=Oe+2;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(It>>>=Oe,Bt-=Oe,G.have===0){tt.msg="invalid bit length repeat",G.mode=30;break}W=G.lens[G.have-1],Wt=3+(3&It),It>>>=2,Bt-=2}else if(pi===17){for(dt=Oe+3;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}Bt-=Oe,W=0,Wt=3+(7&(It>>>=Oe)),It>>>=3,Bt-=3}else{for(dt=Oe+7;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}Bt-=Oe,W=0,Wt=11+(127&(It>>>=Oe)),It>>>=7,Bt-=7}if(G.have+Wt>G.nlen+G.ndist){tt.msg="invalid bit length repeat",G.mode=30;break}for(;Wt--;)G.lens[G.have++]=W}}if(G.mode===30)break;if(G.lens[256]===0){tt.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,jt={bits:G.lenbits},Jt=S(b,G.lens,0,G.nlen,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,jt={bits:G.distbits},Jt=S(O,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,jt),G.distbits=jt.bits,Jt){tt.msg="invalid distances set",G.mode=30;break}if(G.mode=20,_t===6)break t;case 20:G.mode=21;case 21:if(6<=re&&258<=Ft){tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Bt,v(tt,pe),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Bt=G.bits,G.mode===12&&(G.back=-1);break}for(G.back=0;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(Ge&&!(240&Ge)){for(Di=Oe,gn=Ge,Qi=pi;Ge=(pt=G.lencode[Qi+((It&(1<<Di+gn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}It>>>=Di,Bt-=Di,G.back+=Di}if(It>>>=Oe,Bt-=Oe,G.back+=Oe,G.length=pi,Ge===0){G.mode=26;break}if(32&Ge){G.back=-1,G.mode=12;break}if(64&Ge){tt.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Ge,G.mode=22;case 22:if(G.extra){for(dt=G.extra;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.length+=It&(1<<G.extra)-1,It>>>=G.extra,Bt-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Ge=(pt=G.distcode[It&(1<<G.distbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(!(240&Ge)){for(Di=Oe,gn=Ge,Qi=pi;Ge=(pt=G.distcode[Qi+((It&(1<<Di+gn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Bt);){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}It>>>=Di,Bt-=Di,G.back+=Di}if(It>>>=Oe,Bt-=Oe,G.back+=Oe,64&Ge){tt.msg="invalid distance code",G.mode=30;break}G.offset=pi,G.extra=15&Ge,G.mode=24;case 24:if(G.extra){for(dt=G.extra;Bt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}G.offset+=It&(1<<G.extra)-1,It>>>=G.extra,Bt-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){tt.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(Ft===0)break t;if(Wt=pe-Ft,G.offset>Wt){if((Wt=G.offset-Wt)>G.whave&&G.sane){tt.msg="invalid distance too far back",G.mode=30;break}$e=Wt>G.wnext?(Wt-=G.wnext,G.wsize-Wt):G.wnext-Wt,Wt>G.length&&(Wt=G.length),Si=G.window}else Si=Et,$e=ce-G.offset,Wt=G.length;for(Ft<Wt&&(Wt=Ft),Ft-=Wt,G.length-=Wt;Et[ce++]=Si[$e++],--Wt;);G.length===0&&(G.mode=21);break;case 26:if(Ft===0)break t;Et[ce++]=G.length,Ft--,G.mode=21;break;case 27:if(G.wrap){for(;Bt<32;){if(re===0)break t;re--,It|=Pt[At++]<<Bt,Bt+=8}if(pe-=Ft,tt.total_out+=pe,G.total+=pe,pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,ce-pe):m(G.check,Et,pe,ce-pe)),pe=Ft,(G.flags?It:w(It))!==G.check){tt.msg="incorrect data check",G.mode=30;break}Bt=It=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;Bt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Bt,Bt+=8}if(It!==(4294967295&G.total)){tt.msg="incorrect length check",G.mode=30;break}Bt=It=0}G.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return R}return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Bt,(G.wsize||pe!==tt.avail_out&&G.mode<30&&(G.mode<27||_t!==4))&&Rt(tt,tt.output,tt.next_out,pe-tt.avail_out)?(G.mode=31,-4):(Pe-=tt.avail_in,pe-=tt.avail_out,tt.total_in+=Pe,tt.total_out+=pe,G.total+=pe,G.wrap&&pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,tt.next_out-pe):m(G.check,Et,pe,tt.next_out-pe)),tt.data_type=G.bits+(G.last?64:0)+(G.mode===12?128:0)+(G.mode===20||G.mode===15?256:0),(Pe==0&&pe===0||_t===4)&&Jt===k&&(Jt=-5),Jt)},f.inflateEnd=function(tt){if(!tt||!tt.state)return R;var _t=tt.state;return _t.window&&(_t.window=null),tt.state=null,k},f.inflateGetHeader=function(tt,_t){var G;return tt&&tt.state&&2&(G=tt.state).wrap?((G.head=_t).done=!1,k):R},f.inflateSetDictionary=function(tt,_t){var G,Pt=_t.length;return tt&&tt.state?(G=tt.state).wrap!==0&&G.mode!==11?R:G.mode===11&&m(1,_t,Pt,0)!==G.check?-3:Rt(tt,_t,Pt,Pt)?(G.mode=31,-4):(G.havedict=1,k):R},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,c,f){var u=o("../utils/common"),m=[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],g=[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],v=[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],S=[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];c.exports=function(b,O,k,R,F,E,P,w){var T,I,C,U,N,X,J,Z,ct,Rt=w.bits,tt=0,_t=0,G=0,Pt=0,Et=0,At=0,ce=0,re=0,Ft=0,It=0,Bt=null,Pe=0,pe=new u.Buf16(16),Wt=new u.Buf16(16),$e=null,Si=0;for(tt=0;tt<=15;tt++)pe[tt]=0;for(_t=0;_t<R;_t++)pe[O[k+_t]]++;for(Et=Rt,Pt=15;1<=Pt&&pe[Pt]===0;Pt--);if(Pt<Et&&(Et=Pt),Pt===0)return F[E++]=20971520,F[E++]=20971520,w.bits=1,0;for(G=1;G<Pt&&pe[G]===0;G++);for(Et<G&&(Et=G),tt=re=1;tt<=15;tt++)if(re<<=1,(re-=pe[tt])<0)return-1;if(0<re&&(b===0||Pt!==1))return-1;for(Wt[1]=0,tt=1;tt<15;tt++)Wt[tt+1]=Wt[tt]+pe[tt];for(_t=0;_t<R;_t++)O[k+_t]!==0&&(P[Wt[O[k+_t]]++]=_t);if(X=b===0?(Bt=$e=P,19):b===1?(Bt=m,Pe-=257,$e=g,Si-=257,256):(Bt=v,$e=S,-1),tt=G,N=E,ce=_t=It=0,C=-1,U=(Ft=1<<(At=Et))-1,b===1&&852<Ft||b===2&&592<Ft)return 1;for(;;){for(J=tt-ce,ct=P[_t]<X?(Z=0,P[_t]):P[_t]>X?(Z=$e[Si+P[_t]],Bt[Pe+P[_t]]):(Z=96,0),T=1<<tt-ce,G=I=1<<At;F[N+(It>>ce)+(I-=T)]=J<<24|Z<<16|ct|0,I!==0;);for(T=1<<tt-1;It&T;)T>>=1;if(T!==0?(It&=T-1,It+=T):It=0,_t++,--pe[tt]==0){if(tt===Pt)break;tt=O[k+P[_t]]}if(Et<tt&&(It&U)!==C){for(ce===0&&(ce=Et),N+=G,re=1<<(At=tt-ce);At+ce<Pt&&!((re-=pe[At+ce])<=0);)At++,re<<=1;if(Ft+=1<<At,b===1&&852<Ft||b===2&&592<Ft)return 1;F[C=It&U]=Et<<24|At<<16|N-E|0}}return It!==0&&(F[N+It]=tt-ce<<24|64<<16|0),w.bits=Et,0}},{"../utils/common":41}],51:[function(o,c,f){c.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"}},{}],52:[function(o,c,f){var u=o("../utils/common"),m=0,g=1;function v(pt){for(var Dt=pt.length;0<=--Dt;)pt[Dt]=0}var S=0,b=29,O=256,k=O+1+b,R=30,F=19,E=2*k+1,P=15,w=16,T=7,I=256,C=16,U=17,N=18,X=[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],J=[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],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Rt=new Array(2*(k+2));v(Rt);var tt=new Array(2*R);v(tt);var _t=new Array(512);v(_t);var G=new Array(256);v(G);var Pt=new Array(b);v(Pt);var Et,At,ce,re=new Array(R);function Ft(pt,Dt,ie,Kt,z){this.static_tree=pt,this.extra_bits=Dt,this.extra_base=ie,this.elems=Kt,this.max_length=z,this.has_stree=pt&&pt.length}function It(pt,Dt){this.dyn_tree=pt,this.max_code=0,this.stat_desc=Dt}function Bt(pt){return pt<256?_t[pt]:_t[256+(pt>>>7)]}function Pe(pt,Dt){pt.pending_buf[pt.pending++]=255&Dt,pt.pending_buf[pt.pending++]=Dt>>>8&255}function pe(pt,Dt,ie){pt.bi_valid>w-ie?(pt.bi_buf|=Dt<<pt.bi_valid&65535,Pe(pt,pt.bi_buf),pt.bi_buf=Dt>>w-pt.bi_valid,pt.bi_valid+=ie-w):(pt.bi_buf|=Dt<<pt.bi_valid&65535,pt.bi_valid+=ie)}function Wt(pt,Dt,ie){pe(pt,ie[2*Dt],ie[2*Dt+1])}function $e(pt,Dt){for(var ie=0;ie|=1&pt,pt>>>=1,ie<<=1,0<--Dt;);return ie>>>1}function Si(pt,Dt,ie){var Kt,z,Q=new Array(P+1),st=0;for(Kt=1;Kt<=P;Kt++)Q[Kt]=st=st+ie[Kt-1]<<1;for(z=0;z<=Dt;z++){var nt=pt[2*z+1];nt!==0&&(pt[2*z]=$e(Q[nt]++,nt))}}function Oe(pt){var Dt;for(Dt=0;Dt<k;Dt++)pt.dyn_ltree[2*Dt]=0;for(Dt=0;Dt<R;Dt++)pt.dyn_dtree[2*Dt]=0;for(Dt=0;Dt<F;Dt++)pt.bl_tree[2*Dt]=0;pt.dyn_ltree[2*I]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function Ge(pt){8<pt.bi_valid?Pe(pt,pt.bi_buf):0<pt.bi_valid&&(pt.pending_buf[pt.pending++]=pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0}function pi(pt,Dt,ie,Kt){var z=2*Dt,Q=2*ie;return pt[z]<pt[Q]||pt[z]===pt[Q]&&Kt[Dt]<=Kt[ie]}function Di(pt,Dt,ie){for(var Kt=pt.heap[ie],z=ie<<1;z<=pt.heap_len&&(z<pt.heap_len&&pi(Dt,pt.heap[z+1],pt.heap[z],pt.depth)&&z++,!pi(Dt,Kt,pt.heap[z],pt.depth));)pt.heap[ie]=pt.heap[z],ie=z,z<<=1;pt.heap[ie]=Kt}function gn(pt,Dt,ie){var Kt,z,Q,st,nt=0;if(pt.last_lit!==0)for(;Kt=pt.pending_buf[pt.d_buf+2*nt]<<8|pt.pending_buf[pt.d_buf+2*nt+1],z=pt.pending_buf[pt.l_buf+nt],nt++,Kt===0?Wt(pt,z,Dt):(Wt(pt,(Q=G[z])+O+1,Dt),(st=X[Q])!==0&&pe(pt,z-=Pt[Q],st),Wt(pt,Q=Bt(--Kt),ie),(st=J[Q])!==0&&pe(pt,Kt-=re[Q],st)),nt<pt.last_lit;);Wt(pt,I,Dt)}function Qi(pt,Dt){var ie,Kt,z,Q=Dt.dyn_tree,st=Dt.stat_desc.static_tree,nt=Dt.stat_desc.has_stree,vt=Dt.stat_desc.elems,Ut=-1;for(pt.heap_len=0,pt.heap_max=E,ie=0;ie<vt;ie++)Q[2*ie]!==0?(pt.heap[++pt.heap_len]=Ut=ie,pt.depth[ie]=0):Q[2*ie+1]=0;for(;pt.heap_len<2;)Q[2*(z=pt.heap[++pt.heap_len]=Ut<2?++Ut:0)]=1,pt.depth[z]=0,pt.opt_len--,nt&&(pt.static_len-=st[2*z+1]);for(Dt.max_code=Ut,ie=pt.heap_len>>1;1<=ie;ie--)Di(pt,Q,ie);for(z=vt;ie=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],Di(pt,Q,1),Kt=pt.heap[1],pt.heap[--pt.heap_max]=ie,pt.heap[--pt.heap_max]=Kt,Q[2*z]=Q[2*ie]+Q[2*Kt],pt.depth[z]=(pt.depth[ie]>=pt.depth[Kt]?pt.depth[ie]:pt.depth[Kt])+1,Q[2*ie+1]=Q[2*Kt+1]=z,pt.heap[1]=z++,Di(pt,Q,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(qt,Xt){var Ne,Ie,me,we,yi,Ei,ni=Xt.dyn_tree,bi=Xt.max_code,Yr=Xt.stat_desc.static_tree,ar=Xt.stat_desc.has_stree,sn=Xt.stat_desc.extra_bits,Po=Xt.stat_desc.extra_base,zi=Xt.stat_desc.max_length,Zo=0;for(we=0;we<=P;we++)qt.bl_count[we]=0;for(ni[2*qt.heap[qt.heap_max]+1]=0,Ne=qt.heap_max+1;Ne<E;Ne++)zi<(we=ni[2*ni[2*(Ie=qt.heap[Ne])+1]+1]+1)&&(we=zi,Zo++),ni[2*Ie+1]=we,bi<Ie||(qt.bl_count[we]++,yi=0,Po<=Ie&&(yi=sn[Ie-Po]),Ei=ni[2*Ie],qt.opt_len+=Ei*(we+yi),ar&&(qt.static_len+=Ei*(Yr[2*Ie+1]+yi)));if(Zo!==0){do{for(we=zi-1;qt.bl_count[we]===0;)we--;qt.bl_count[we]--,qt.bl_count[we+1]+=2,qt.bl_count[zi]--,Zo-=2}while(0<Zo);for(we=zi;we!==0;we--)for(Ie=qt.bl_count[we];Ie!==0;)bi<(me=qt.heap[--Ne])||(ni[2*me+1]!==we&&(qt.opt_len+=(we-ni[2*me+1])*ni[2*me],ni[2*me+1]=we),Ie--)}}(pt,Dt),Si(Q,Ut,pt.bl_count)}function W(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Dt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)z=st,st=Dt[2*(Kt+1)+1],++nt<vt&&z===st||(nt<Ut?pt.bl_tree[2*z]+=nt:z!==0?(z!==Q&&pt.bl_tree[2*z]++,pt.bl_tree[2*C]++):nt<=10?pt.bl_tree[2*U]++:pt.bl_tree[2*N]++,Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4))}function Jt(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Kt=0;Kt<=ie;Kt++)if(z=st,st=Dt[2*(Kt+1)+1],!(++nt<vt&&z===st)){if(nt<Ut)for(;Wt(pt,z,pt.bl_tree),--nt!=0;);else z!==0?(z!==Q&&(Wt(pt,z,pt.bl_tree),nt--),Wt(pt,C,pt.bl_tree),pe(pt,nt-3,2)):nt<=10?(Wt(pt,U,pt.bl_tree),pe(pt,nt-3,3)):(Wt(pt,N,pt.bl_tree),pe(pt,nt-11,7));Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4)}}v(re);var jt=!1;function dt(pt,Dt,ie,Kt){pe(pt,(S<<1)+(Kt?1:0),3),function(z,Q,st,nt){Ge(z),nt&&(Pe(z,st),Pe(z,~st)),u.arraySet(z.pending_buf,z.window,Q,st,z.pending),z.pending+=st}(pt,Dt,ie,!0)}f._tr_init=function(pt){jt||(function(){var Dt,ie,Kt,z,Q,st=new Array(P+1);for(z=Kt=0;z<b-1;z++)for(Pt[z]=Kt,Dt=0;Dt<1<<X[z];Dt++)G[Kt++]=z;for(G[Kt-1]=z,z=Q=0;z<16;z++)for(re[z]=Q,Dt=0;Dt<1<<J[z];Dt++)_t[Q++]=z;for(Q>>=7;z<R;z++)for(re[z]=Q<<7,Dt=0;Dt<1<<J[z]-7;Dt++)_t[256+Q++]=z;for(ie=0;ie<=P;ie++)st[ie]=0;for(Dt=0;Dt<=143;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(;Dt<=255;)Rt[2*Dt+1]=9,Dt++,st[9]++;for(;Dt<=279;)Rt[2*Dt+1]=7,Dt++,st[7]++;for(;Dt<=287;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(Si(Rt,k+1,st),Dt=0;Dt<R;Dt++)tt[2*Dt+1]=5,tt[2*Dt]=$e(Dt,5);Et=new Ft(Rt,X,O+1,k,P),At=new Ft(tt,J,0,R,P),ce=new Ft(new Array(0),Z,0,F,T)}(),jt=!0),pt.l_desc=new It(pt.dyn_ltree,Et),pt.d_desc=new It(pt.dyn_dtree,At),pt.bl_desc=new It(pt.bl_tree,ce),pt.bi_buf=0,pt.bi_valid=0,Oe(pt)},f._tr_stored_block=dt,f._tr_flush_block=function(pt,Dt,ie,Kt){var z,Q,st=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(nt){var vt,Ut=4093624447;for(vt=0;vt<=31;vt++,Ut>>>=1)if(1&Ut&&nt.dyn_ltree[2*vt]!==0)return m;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return g;for(vt=32;vt<O;vt++)if(nt.dyn_ltree[2*vt]!==0)return g;return m}(pt)),Qi(pt,pt.l_desc),Qi(pt,pt.d_desc),st=function(nt){var vt;for(W(nt,nt.dyn_ltree,nt.l_desc.max_code),W(nt,nt.dyn_dtree,nt.d_desc.max_code),Qi(nt,nt.bl_desc),vt=F-1;3<=vt&&nt.bl_tree[2*ct[vt]+1]===0;vt--);return nt.opt_len+=3*(vt+1)+5+5+4,vt}(pt),z=pt.opt_len+3+7>>>3,(Q=pt.static_len+3+7>>>3)<=z&&(z=Q)):z=Q=ie+5,ie+4<=z&&Dt!==-1?dt(pt,Dt,ie,Kt):pt.strategy===4||Q===z?(pe(pt,2+(Kt?1:0),3),gn(pt,Rt,tt)):(pe(pt,4+(Kt?1:0),3),function(nt,vt,Ut,qt){var Xt;for(pe(nt,vt-257,5),pe(nt,Ut-1,5),pe(nt,qt-4,4),Xt=0;Xt<qt;Xt++)pe(nt,nt.bl_tree[2*ct[Xt]+1],3);Jt(nt,nt.dyn_ltree,vt-1),Jt(nt,nt.dyn_dtree,Ut-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,st+1),gn(pt,pt.dyn_ltree,pt.dyn_dtree)),Oe(pt),Kt&&Ge(pt)},f._tr_tally=function(pt,Dt,ie){return pt.pending_buf[pt.d_buf+2*pt.last_lit]=Dt>>>8&255,pt.pending_buf[pt.d_buf+2*pt.last_lit+1]=255&Dt,pt.pending_buf[pt.l_buf+pt.last_lit]=255&ie,pt.last_lit++,Dt===0?pt.dyn_ltree[2*ie]++:(pt.matches++,Dt--,pt.dyn_ltree[2*(G[ie]+O+1)]++,pt.dyn_dtree[2*Bt(Dt)]++),pt.last_lit===pt.lit_bufsize-1},f._tr_align=function(pt){pe(pt,2,3),Wt(pt,I,Rt),function(Dt){Dt.bi_valid===16?(Pe(Dt,Dt.bi_buf),Dt.bi_buf=0,Dt.bi_valid=0):8<=Dt.bi_valid&&(Dt.pending_buf[Dt.pending++]=255&Dt.bi_buf,Dt.bi_buf>>=8,Dt.bi_valid-=8)}(pt)}},{"../utils/common":41}],53:[function(o,c,f){c.exports=function(){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}},{}],54:[function(o,c,f){(function(u){(function(m,g){if(!m.setImmediate){var v,S,b,O,k=1,R={},F=!1,E=m.document,P=Object.getPrototypeOf&&Object.getPrototypeOf(m);P=P&&P.setTimeout?P:m,v={}.toString.call(m.process)==="[object process]"?function(C){process.nextTick(function(){T(C)})}:function(){if(m.postMessage&&!m.importScripts){var C=!0,U=m.onmessage;return m.onmessage=function(){C=!1},m.postMessage("","*"),m.onmessage=U,C}}()?(O="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",I,!1):m.attachEvent("onmessage",I),function(C){m.postMessage(O+C,"*")}):m.MessageChannel?((b=new MessageChannel).port1.onmessage=function(C){T(C.data)},function(C){b.port2.postMessage(C)}):E&&"onreadystatechange"in E.createElement("script")?(S=E.documentElement,function(C){var U=E.createElement("script");U.onreadystatechange=function(){T(C),U.onreadystatechange=null,S.removeChild(U),U=null},S.appendChild(U)}):function(C){setTimeout(T,0,C)},P.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var U=new Array(arguments.length-1),N=0;N<U.length;N++)U[N]=arguments[N+1];var X={callback:C,args:U};return R[k]=X,v(k),k++},P.clearImmediate=w}function w(C){delete R[C]}function T(C){if(F)setTimeout(T,0,C);else{var U=R[C];if(U){F=!0;try{(function(N){var X=N.callback,J=N.args;switch(J.length){case 0:X();break;case 1:X(J[0]);break;case 2:X(J[0],J[1]);break;case 3:X(J[0],J[1],J[2]);break;default:X.apply(g,J)}})(U)}finally{w(C),F=!1}}}}function I(C){C.source===m&&typeof C.data=="string"&&C.data.indexOf(O)===0&&T(+C.data.slice(O.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Af);var mm=Af.exports;const gm=ec(mm);var Pf={exports:{}};(function(x,a){(function(o,c){c()})(br,function(){function o(S,b){return typeof b>"u"?b={autoBom:!1}:typeof b!="object"&&(b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function c(S,b,O){var k=new XMLHttpRequest;k.open("GET",S),k.responseType="blob",k.onload=function(){v(k.response,b,O)},k.onerror=function(){},k.send()}function f(S){var b=new XMLHttpRequest;b.open("HEAD",S,!1);try{b.send()}catch{}return 200<=b.status&&299>=b.status}function u(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(b)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof br=="object"&&br.global===br?br:void 0,g=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!g?function(S,b,O){var k=m.URL||m.webkitURL,R=document.createElement("a");b=b||S.name||"download",R.download=b,R.rel="noopener",typeof S=="string"?(R.href=S,R.origin===location.origin?u(R):f(R.href)?c(S,b,O):u(R,R.target="_blank")):(R.href=k.createObjectURL(S),setTimeout(function(){k.revokeObjectURL(R.href)},4e4),setTimeout(function(){u(R)},0))}:"msSaveOrOpenBlob"in navigator?function(S,b,O){if(b=b||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(o(S,O),b);else if(f(S))c(S,b,O);else{var k=document.createElement("a");k.href=S,k.target="_blank",setTimeout(function(){u(k)})}}:function(S,b,O,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof S=="string")return c(S,b,O);var R=S.type==="application/octet-stream",F=/constructor/i.test(m.HTMLElement)||m.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||R&&F||g)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var I=P.result;I=E?I:I.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=I:location=I,k=null},P.readAsDataURL(S)}else{var w=m.URL||m.webkitURL,T=w.createObjectURL(S);k?k.location=T:location.href=T,k=null,setTimeout(function(){w.revokeObjectURL(T)},4e4)}});m.saveAs=v.saveAs=v,x.exports=v})})(Pf);var vm=Pf.exports;const ym=ec(vm);class _m{constructor(a,o){window.mars3d&&(this.panoramicViewClass=o,this.coordinate=[{heading:0,pitch:-90,stop:5},{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt)}start(a=!0){var o,c;if(a){window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="none"),this.timestamp=new Date().getTime();const f=document.getElementById("app"),u=window.innerHeight,m=document.getElementById("mars3dContainer");m&&(m.style.width=u.toString()+"px",m.style.height=u.toString()+"px"),f!==null&&f.classList.add(this.panoramicViewClass);let{lat:g,lng:v,alt:S}=window.map.getCameraView();this.lat=g,this.lng=v,this.alt=S,window.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(o=this.screenshotArray)==null?void 0:o.length]?window.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(c=this.screenshotArray)==null?void 0:c.length]},{complete:()=>{setTimeout(()=>{var f;this.screenshot((f=this.screenshotArray)==null?void 0:f.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):this.emit("state",{type:"error"})}async screenshot(a){const o=await window.map.expImage({download:!1}),c=window.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),f=await window.domtoimage.toPng(window.map.container,{filter:u=>u!==c[0]});this.mergeImage(o.image,f,o.width,o.height).then(u=>{var v;let m=Number(a)+1,g={src:u,name:"全景图_"+this.timestamp+"_"+m+".jpg"};this.emit("intercept",g),(v=this.screenshotArray)==null||v.push(g),this.start(!1)})}mergeImage(a,o,c,f){return new Promise((u,m)=>{const g=document.createElement("canvas");g.width=c,g.height=f;const v=g.getContext("2d");if(g&&v){const S=new Image;S.crossOrigin="Anonymous",S.onload=()=>{v.drawImage(S,0,0,c,f);const b=new Image;b.crossOrigin="Anonymous",b.onload=()=>{v.drawImage(b,0,0,c,f);const O=g.toDataURL("image/png");u(O)},b.src=o},S.src=a}else m()})}download(){this.screenshotArray&&this.screenshotArray.forEach(a=>{window.mars3d.Util.downloadBase64Image(a.name,a.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const a=new gm;this.screenshotArray.forEach(c=>{const f=c.src.split(",")[1],u=atob(f),m=[];for(let S=0;S<u.length;S+=1024){const b=u.slice(S,S+1024),O=new Array(b.length);for(let R=0;R<b.length;R++)O[R]=b.charCodeAt(R);const k=new Uint8Array(O);m.push(k)}const g=new Blob(m,{type:"image/jpeg"}),v=`${c.name}`;a.file(v,g,{binary:!0})});const o=await a.generateAsync({type:"blob"});ym(o,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const a=document.getElementById("app");a&&a.classList.remove(this.panoramicViewClass);const o=document.getElementById("mars3dContainer");o&&(o.style.width="",o.style.height=""),window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="")}on(a,o){this.events[a]?this.events[a].push(o):this.events[a]=[o]}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}}function ds(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function Lf(x,a){x.prototype=Object.create(a.prototype),x.prototype.constructor=x,x.__proto__=a}/*!
|
|
2687
2687
|
* GSAP 3.12.5
|
|
2688
2688
|
* https://gsap.com
|
|
2689
2689
|
*
|