/* JSZip v3.1.3 - A Javascript class for generating and reading zip files (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/master/LICENSE */ !function(w){"object"==typeof exports&&"undefined"!=typeof module?module.exports=w():"function"==typeof define&&define.amd?define([],w):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=w()}(function(){return function b(f,d,a){function e(g,h){if(!d[g]){if(!f[g]){var l="function"==typeof require&&require;if(!h&&l)return l(g,!0);if(c)return c(g,!0);l=Error("Cannot find module '"+g+"'");throw l.code="MODULE_NOT_FOUND",l;}l=d[g]={exports:{}}; f[g][0].call(l.exports,function(a){var c=f[g][1][a];return e(c?c:a)},l,l.exports,b,f,d,a)}return d[g].exports}for(var c="function"==typeof require&&require,g=0;g>2,q=(3&b)<<4|e>>4,x=1< z?(15&e)<<2|d>>6:64,z=2>4,b=(15&b)<<4|n>>2,d=(3&n)<<6|q,E[z++]=c,64!==n&&(E[z++]=b),64!==q&&(E[z++]=d);return E}},{"./support":30,"./utils":32}],2:[function(b,f,d){function a(a,c,b,e,g){this.compressedSize=a;this.uncompressedSize=c;this.crc32=b;this.compression=e;this.compressedContent=g}var e=b("./external"),c=b("./stream/DataWorker"),g=b("./stream/DataLengthProbe"),l=b("./stream/Crc32Probe"),g=b("./stream/DataLengthProbe"); a.prototype={getContentWorker:function(){var a=(new c(e.Promise.resolve(this.compressedContent))).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),b=this;return a.on("end",function(){if(this.streamInfo.data_length!==b.uncompressedSize)throw Error("Bug : uncompressed data size mismatch");}),a},getCompressedWorker:function(){return(new c(e.Promise.resolve(this.compressedContent))).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression",this.compression)}};a.createWorkerFrom=function(a,c,b){return a.pipe(new l).pipe(new g("uncompressedSize")).pipe(c.compressWorker(b)).pipe(new g("compressedSize")).withStreamInfo("compression",c)};f.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(b,f,d){var a=b("./stream/GenericWorker");d.STORE={magic:"\x00\x00",compressWorker:function(b){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}}; d.DEFLATE=b("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(b,f,d){var a=b("./utils"),e=function(){for(var a,b=[],e=0;256>e;e++){a=e;for(var d=0;8>d;d++)a=1&a?3988292384^a>>>1:a>>>1;b[e]=a}return b}();f.exports=function(c,b){if("undefined"==typeof c||!c.length)return 0;var d;if("string"!==a.getTypeOf(c)){var g=0+c.length;d=(0|b)^-1;for(var n=0;n>>8^e[255&(d^c[n])]}else for(g=0+c.length,d=(0|b)^-1,n=0;n>>8^e[255&(d^c.charCodeAt(n))];return d^=-1}},{"./utils":32}], 5:[function(b,f,d){d.base64=!1;d.binary=!1;d.dir=!1;d.createFolders=!0;d.date=null;d.compression=null;d.compressionOptions=null;d.comment=null;d.unixPermissions=null;d.dosPermissions=null},{}],6:[function(b,f,d){b="undefined"!=typeof Promise?Promise:b("lie");f.exports={Promise:b}},{lie:58}],7:[function(b,f,d){function a(a,c){g.call(this,"FlateWorker/"+a);this._pako=new e[a]({raw:!0,level:c.level||-1});this.meta={};var b=this;this._pako.onData=function(a){b.push({data:a,meta:b.meta})}}f="undefined"!= typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;var e=b("pako"),c=b("./utils"),g=b("./stream/GenericWorker"),l=f?"uint8array":"array";d.magic="\b\x00";c.inherits(a,g);a.prototype.processChunk=function(a){this.meta=a.meta;this._pako.push(c.transformTo(l,a.data),!1)};a.prototype.flush=function(){g.prototype.flush.call(this);this._pako.push([],!0)};a.prototype.cleanUp=function(){g.prototype.cleanUp.call(this);this._pako=null};d.compressWorker=function(c){return new a("Deflate", c)};d.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:59}],8:[function(b,f,d){function a(a,b,e,d){c.call(this,"ZipFileWorker");this.bytesWritten=0;this.zipComment=b;this.zipPlatform=e;this.encodeFileName=d;this.streamFiles=a;this.accumulate=!1;this.contentBuffer=[];this.dirRecords=[];this.entriesCount=this.currentSourceOffset=0;this.currentFile=null;this._sources=[]}var e=b("../utils"),c=b("../stream/GenericWorker"),g=b("../utf8"),l=b("../crc32"), h=b("../signature"),n=function(a,c){var b,e="";for(b=0;b>>=8;return e},q=function(a,c,b,d,p,t){var B,z;B=a.file;var v=a.compression,x=t!==g.utf8encode,q=e.transformTo("string",t(B.name)),r=e.transformTo("string",g.utf8encode(B.name)),f=B.comment;t=e.transformTo("string",t(f));var y=e.transformTo("string",g.utf8encode(f)),E=r.length!==B.name.length,F=y.length!==f.length,I=f="",X="";z=B.dir;var T=B.date,aa=0,V=0,u=0;c&&!b||(aa=a.crc32,V=a.compressedSize,u=a.uncompressedSize); a=0;c&&(a|=8);x||!E&&!F||(a|=2048);c=0;z&&(c|=16);"UNIX"===p?(p=798,B=x=B.unixPermissions,z=(x||(B=z?16893:33204),(65535&B)<<16),c|=z):(p=20,c|=63&(B.dosPermissions||0));B=T.getUTCHours();B=B<<6|T.getUTCMinutes();B=B<<5|T.getUTCSeconds()/2;z=T.getUTCFullYear()-1980;z=z<<4|T.getUTCMonth()+1;z=z<<5|T.getUTCDate();E&&(I=n(1,1)+n(l(q),4)+r,f+="up"+n(I.length,2)+I);F&&(X=n(1,1)+n(l(t),4)+y,f+="uc"+n(X.length,2)+X);r="\n\x00"+n(a,2);r+=v.magic;r+=n(B,2);r+=n(z,2);r+=n(aa,4);r+=n(V,4);r+=n(u,4);r+=n(q.length, 2);r+=n(f.length,2);v=h.LOCAL_FILE_HEADER+r+q+f;d=h.CENTRAL_FILE_HEADER+n(p,2)+r+n(t.length,2)+"\x00\x00\x00\x00"+n(c,4)+n(d,4)+q+f+t;return{fileRecord:v,dirRecord:d}},x=function(a){return h.DATA_DESCRIPTOR+n(a.crc32,4)+n(a.compressedSize,4)+n(a.uncompressedSize,4)};e.inherits(a,c);a.prototype.push=function(a){var b=a.meta.percent||0,e=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,c.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile, percent:e?(b+100*(e-d-1))/e:100}}))};a.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten;this.currentFile=a.file.name;var c=this.streamFiles&&!a.file.dir;c?(a=q(a,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:a.fileRecord,meta:{percent:0}})):this.accumulate=!0};a.prototype.closedSource=function(a){this.accumulate=!1;var c=this.streamFiles&&!a.file.dir,b=q(a,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord), c)this.push({data:x(a),meta:{percent:100}});else for(this.push({data:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};a.prototype.flush=function(){for(var a=this.bytesWritten,c=0;ca)throw Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?");},setIndex:function(a){this.checkIndex(a);this.index=a}, skip:function(a){this.setIndex(this.index+a)},byteAt:function(a){},readInt:function(a){var b,c=0;this.checkOffset(a);for(b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return e.transformTo("string",this.readData(a))},readData:function(a){},lastIndexOfSignature:function(a){},readAndCheckSignature:function(a){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<< 1))}};f.exports=a},{"../utils":32}],19:[function(b,f,d){function a(a){e.call(this,a)}var e=b("./Uint8ArrayReader");b("../utils").inherits(a,e);a.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b};f.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(b,f,d){function a(a){e.call(this,a)}var e=b("./DataReader");b("../utils").inherits(a,e);a.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+ a)};a.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero};a.prototype.readAndCheckSignature=function(a){var b=this.readData(4);return a===b};a.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b};f.exports=a},{"../utils":32,"./DataReader":18}],21:[function(b,f,d){function a(a){e.call(this,a)}var e=b("./ArrayReader");b("../utils").inherits(a,e);a.prototype.readData=function(a){if(this.checkOffset(a), 0===a)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b};f.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(b,f,d){var a=b("../utils"),e=b("../support"),c=b("./ArrayReader"),g=b("./StringReader"),l=b("./NodeBufferReader"),h=b("./Uint8ArrayReader");f.exports=function(b){var d=a.getTypeOf(b);return a.checkSupport(d),"string"!==d||e.uint8array?"nodebuffer"===d?new l(b):e.uint8array?new h(a.transformTo("uint8array",b)):new c(a.transformTo("array", b)):new g(b)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(b,f,d){d.LOCAL_FILE_HEADER="PK";d.CENTRAL_FILE_HEADER="PK";d.CENTRAL_DIRECTORY_END="PK";d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK";d.ZIP64_CENTRAL_DIRECTORY_END="PK";d.DATA_DESCRIPTOR="PK\b"},{}],24:[function(b,f,d){function a(a){e.call(this,"ConvertWorker to "+a);this.destType=a}var e=b("./GenericWorker"),c=b("../utils");c.inherits(a,e);a.prototype.processChunk= function(a){this.push({data:c.transformTo(this.destType,a.data),meta:a.meta})};f.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(b,f,d){function a(){e.call(this,"Crc32Probe");this.withStreamInfo("crc32",0)}var e=b("./GenericWorker"),c=b("../crc32");b("../utils").inherits(a,e);a.prototype.processChunk=function(a){this.streamInfo.crc32=c(a.data,this.streamInfo.crc32||0);this.push(a)};f.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(b,f,d){function a(a){e.call(this, "DataLengthProbe for "+a);this.propName=a;this.withStreamInfo(a,0)}d=b("../utils");var e=b("./GenericWorker");d.inherits(a,e);a.prototype.processChunk=function(a){a&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+a.data.length);e.prototype.processChunk.call(this,a)};f.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(b,f,d){function a(a){c.call(this,"DataWorker");var b=this;this.dataIsReady=!1;this.max=this.index=0;this.data=null;this.type="";this._tickScheduled=!1; a.then(function(a){b.dataIsReady=!0;b.data=a;b.max=a&&a.length||0;b.type=e.getTypeOf(a);b.isPaused||b._tickAndRepeat()},function(a){b.error(a)})}var e=b("../utils"),c=b("./GenericWorker");e.inherits(a,c);a.prototype.cleanUp=function(){c.prototype.cleanUp.call(this);this.data=null};a.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,e.delay(this._tickAndRepeat,[],this)),!0)};a.prototype._tickAndRepeat=function(){this._tickScheduled= !1;this.isPaused||this.isFinished||(this._tick(),this.isFinished||(e.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,b=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case "string":a=this.data.substring(this.index,b);break;case "uint8array":a=this.data.subarray(this.index,b);break;case "array":case "nodebuffer":a=this.data.slice(this.index,b)}return this.index= b,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})};f.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(b,f,d){function a(a){this.name=a||"default";this.streamInfo={};this.generatedError=null;this.extraStreamInfo={};this.isPaused=!0;this.isLocked=this.isFinished=!1;this._listeners={data:[],end:[],error:[]};this.previous=null}a.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(), this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,b){return this._listeners[a].push(b),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null;this._listeners=[]},emit:function(a,b){if(this._listeners[a])for(var c=0;c "+a:a}};f.exports=a},{}],29:[function(b,f,d){function a(a,b){var c,d=0,e;for(c=e=0;cb;b++)n[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;n[254]=n[254]=1;d.utf8encode=function(a){if(g.nodebuffer)a=l.newBuffer(a,"utf-8");else{var b,c,d,e,v,p=a.length,t=0;for(e=0;ec?1:2048>c?2:65536>c?3:4;b=g.uint8array?new Uint8Array(t):Array(t);for(e=v=0;vc?b[v++]=c:2048>c?(b[v++]=192|c>>>6,b[v++]=128|63&c):65536>c?(b[v++]=224|c>>>12,b[v++]=128|c>>>6&63,b[v++]=128|63&c):(b[v++]=240|c>>>18,b[v++]=128|c>>>12&63,b[v++]=128|c>>>6&63,b[v++]=128|63&c);a=b}return a};d.utf8decode=function(a){var b;if(g.nodebuffer)b=c.transformTo("nodebuffer",a).toString("utf-8");else{var d=a=c.transformTo(g.uint8array?"uint8array":"array",a),e,f,v,p=d.length;a=Array(2*p);for(e=f=0;eb)a[f++]=b;else if(v=n[b],4b?a[f++]=b:(b-=65536,a[f++]=55296|b>>10&1023,a[f++]=56320|1023&b)}b=(a.length!==f&&(a.subarray?a=a.subarray(0,f):a.length=f),c.applyFromCharCode(a))}return b};c.inherits(a,h);a.prototype.processChunk=function(a){var b=c.transformTo(g.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(g.uint8array){var e=b,b=new Uint8Array(e.length+this.leftOver.length);b.set(this.leftOver, 0);b.set(e,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var f,e=b.length;e>b.length&&(e=b.length);for(f=e-1;0<=f&&128===(192&b[f]);)f--;e=0>f?e:0===f?e:f+n[b[f]]>e?f:e;f=b;e!==b.length&&(g.uint8array?(f=b.subarray(0,e),this.leftOver=b.subarray(e,b.length)):(f=b.slice(0,e),this.leftOver=b.slice(e,b.length)));this.push({data:d.utf8decode(f),meta:a.meta})};a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}), this.leftOver=null)};d.Utf8DecodeWorker=a;c.inherits(e,h);e.prototype.processChunk=function(a){this.push({data:d.utf8encode(a.data),meta:a.meta})};d.Utf8EncodeWorker=e},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(b,f,d){function a(a){return a}function e(a,b){for(var c=0;cb?"0":"")+b.toString(16).toUpperCase(); return d};d.delay=function(a,b,c){q(function(){a.apply(c||null,b||[])})};d.inherits=function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c};d.extend=function(){var a,b,c={};for(a=0;aa)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?Error("Corrupted zip : can't find end of central directory"):Error("Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"); this.reader.setIndex(a);var b=a;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===c.MAX_VALUE_16BITS||this.diskWithCentralDirStart===c.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===c.MAX_VALUE_16BITS||this.centralDirRecords===c.MAX_VALUE_16BITS||this.centralDirSize===c.MAX_VALUE_32BITS||this.centralDirOffset===c.MAX_VALUE_32BITS){if(this.zip64=!0,a=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),0>a)throw Error("Corrupted zip : can't find the ZIP64 end of central directory locator"); if(this.reader.setIndex(a),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),0>this.relativeOffsetEndOfZip64CentralDir))throw 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()}a=this.centralDirOffset+this.centralDirSize;this.zip64&&(a+=20,a+=12+this.zip64EndOfCentralSize);a=b-a;if(0a)throw Error("Corrupted zip: missing "+Math.abs(a)+" bytes.");},prepareReader:function(a){this.reader=e(a)},load:function(a){this.prepareReader(a);this.readEndOfCentral();this.readCentralDir();this.readLocalFiles()}};f.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30, "./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(b,f,d){function a(a,b){this.options=a;this.loadOptions=b}var e=b("./reader/readerFor"),c=b("./utils"),g=b("./compressedObject"),l=b("./crc32"),h=b("./utf8"),n=b("./compressions"),q=b("./support");a.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},readLocalPart:function(a){var b,d;if(a.skip(22),this.fileNameLength=a.readInt(2),d=a.readInt(2),this.fileName=a.readData(this.fileNameLength), a.skip(d),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");var e;a:{d=this.compressionMethod;for(e in n)if(n.hasOwnProperty(e)&&n[e].magic===d){e=n[e];break a}e=null}if(b=e,null===b)throw Error("Corrupted zip : compression "+c.pretty(this.compressionMethod)+" unknown (inner file : "+c.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize, this.uncompressedSize,this.crc32,b,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2);a.skip(2);this.bitFlag=a.readInt(2);this.compressionMethod=a.readString(2);this.date=a.readDate();this.crc32=a.readInt(4);this.compressedSize=a.readInt(4);this.uncompressedSize=a.readInt(4);var b=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes= a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");a.skip(b);this.readExtraFields(a);this.parseZIP64ExtraField(a);this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.dosPermissions=this.unixPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes);0===a&&(this.dosPermissions=63&this.externalFileAttributes);3===a&&(this.unixPermissions=this.externalFileAttributes>>16&65535); this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(a){this.extraFields[1]&&(a=e(this.extraFields[1].value),this.uncompressedSize===c.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===c.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===c.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===c.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4)))},readExtraFields:function(a){var b, c,d,e=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.indexd;)c.push(arguments[d++]); return v[++F]=function(){l("function"==typeof b?b:Function(b),c)},a(F),F},z=function(a){delete v[a]},"process"==b("./_cof")(x)?a=function(a){x.nextTick(g(p,a,1))}:E?(e=new E,c=e.port2,e.port1.onmessage=t,a=g(c.postMessage,c,1)):q.addEventListener&&"function"==typeof postMessage&&!q.importScripts?(a=function(a){q.postMessage(a+"","*")},q.addEventListener("message",t,!1)):a="onreadystatechange"in n("script")?function(a){h.appendChild(n("script")).onreadystatechange=function(){h.removeChild(this);p.call(a)}}: function(a){setTimeout(g(p,a,1),0)});f.exports={set:d,clear:z}},{"./_cof":39,"./_ctx":41,"./_dom-create":43,"./_global":46,"./_html":48,"./_invoke":50}],55:[function(b,f,d){var a=b("./_is-object");f.exports=function(b,c){if(!a(b))return b;var d,e;if(c&&"function"==typeof(d=b.toString)&&!a(e=d.call(b))||"function"==typeof(d=b.valueOf)&&!a(e=d.call(b))||!c&&"function"==typeof(d=b.toString)&&!a(e=d.call(b)))return e;throw TypeError("Can't convert object to primitive value");}},{"./_is-object":51}],56:[function(b, f,d){f=b("./_export");b=b("./_task");f(f.G+f.B,{setImmediate:b.set,clearImmediate:b.clear})},{"./_export":44,"./_task":54}],57:[function(b,f,d){(function(a){function b(){q=!0;for(var a,b,c=x.length;c;){b=x;x=[];for(a=-1;++ab.windowBits&&(b.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new n;this.strm.avail_out=0;var d=c.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(d!==x)throw Error(h[d]);if(b.header&&c.deflateSetHeader(this.strm, b.header),b.dictionary){var e;if(e="string"==typeof b.dictionary?l.string2buf(b.dictionary):"[object ArrayBuffer]"===q.call(b.dictionary)?new Uint8Array(b.dictionary):b.dictionary,d=c.deflateSetDictionary(this.strm,e),d!==x)throw Error(h[d]);this._dict_set=!0}}function e(b,c){var d=new a(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var c=b("./zlib/deflate"),g=b("./utils/common"),l=b("./utils/strings"),h=b("./zlib/messages"),n=b("./zlib/zstream"),q=Object.prototype.toString,x=0,z=-1,E=0,F= 8;a.prototype.push=function(a,b){var d,e,f=this.strm,h=this.options.chunkSize;if(this.ended)return!1;e=b===~~b?b:!0===b?4:0;"string"==typeof a?f.input=l.string2buf(a):"[object ArrayBuffer]"===q.call(a)?f.input=new Uint8Array(a):f.input=a;f.next_in=0;f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new g.Buf8(h),f.next_out=0,f.avail_out=h),d=c.deflate(f,e),1!==d&&d!==x)return this.onEnd(d),this.ended=!0,!1;0!==f.avail_out&&(0!==f.avail_in||4!==e&&2!==e)||("string"===this.options.to?this.onData(l.buf2binstring(g.shrinkBuf(f.output, f.next_out))):this.onData(g.shrinkBuf(f.output,f.next_out)))}while((0d.windowBits&&(d.windowBits=-d.windowBits,0===d.windowBits&&(d.windowBits=-15));!(0<=d.windowBits&&16>d.windowBits)||b&&b.windowBits|| (d.windowBits+=32);15d.windowBits&&0===(15&d.windowBits)&&(d.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new q;this.strm.avail_out=0;b=c.inflateInit2(this.strm,d.windowBits);if(b!==h.Z_OK)throw Error(n[b]);this.header=new x;c.inflateGetHeader(this.strm,this.header)}function e(b,c){var d=new a(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var c=b("./zlib/inflate"),g=b("./utils/common"),l=b("./utils/strings"),h=b("./zlib/constants"),n=b("./zlib/messages"), q=b("./zlib/zstream"),x=b("./zlib/gzheader"),z=Object.prototype.toString;a.prototype.push=function(a,b){var d,e,f,n,A,m,q=this.strm,G=this.options.chunkSize,r=this.options.dictionary,H=!1;if(this.ended)return!1;e=b===~~b?b:!0===b?h.Z_FINISH:h.Z_NO_FLUSH;"string"==typeof a?q.input=l.binstring2buf(a):"[object ArrayBuffer]"===z.call(a)?q.input=new Uint8Array(a):q.input=a;q.next_in=0;q.avail_in=q.input.length;do{if(0===q.avail_out&&(q.output=new g.Buf8(G),q.next_out=0,q.avail_out=G),d=c.inflate(q,h.Z_NO_FLUSH), d===h.Z_NEED_DICT&&r&&(m="string"==typeof r?l.string2buf(r):"[object ArrayBuffer]"===z.call(r)?new Uint8Array(r):r,d=c.inflateSetDictionary(this.strm,m)),d===h.Z_BUF_ERROR&&!0===H&&(d=h.Z_OK,H=!1),d!==h.Z_STREAM_END&&d!==h.Z_OK)return this.onEnd(d),this.ended=!0,!1;q.next_out&&(0!==q.avail_out&&d!==h.Z_STREAM_END&&(0!==q.avail_in||e!==h.Z_FINISH&&e!==h.Z_SYNC_FLUSH)||("string"===this.options.to?(f=l.utf8border(q.output,q.next_out),n=q.next_out-f,A=l.buf2string(q.output,f),q.next_out=n,q.avail_out= G-n,n&&g.arraySet(q.output,q.output,f,n,0),this.onData(A)):this.onData(g.shrinkBuf(q.output,q.next_out))));0===q.avail_in&&0===q.avail_out&&(H=!0)}while((0b&&(a.subarray&&g||!a.subarray&&c))return String.fromCharCode.apply(null, e.shrinkBuf(a,b));for(var d="",f=0;fb;b++)l[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;l[254]=l[254]=1;d.string2buf=function(a){var b,d,c,f,g,h=a.length,l=0;for(f=0;fd?1:2048>d?2:65536>d?3:4;b=new e.Buf8(l);for(f=g=0;gd?b[g++]=d:2048>d?(b[g++]=192|d>>>6,b[g++]=128|63&d):65536>d?(b[g++]=224|d>>>12,b[g++]=128|d>>>6&63,b[g++]=128|63&d):(b[g++]=240|d>>>18,b[g++]=128|d>>>12&63,b[g++]=128|d>>>6&63,b[g++]=128|63&d);return b};d.buf2binstring=function(b){return a(b,b.length)};d.binstring2buf=function(a){for(var b= new e.Buf8(a.length),d=0,c=b.length;df)n[e++]=f;else if(g=l[f],4f?n[e++]=f:(f-=65536,n[e++]=55296|f>>10&1023,n[e++]=56320|1023&f)}return a(n,e)};d.utf8border=function(a,b){var d;b=b||a.length;b>a.length&&(b=a.length);for(d=b-1;0<=d&&128===(192&a[d]);)d--;return 0> d?b:0===d?b:d+l[a[d]]>b?d:b}},{"./common":62}],64:[function(b,f,d){f.exports=function(a,b,d,f){var c=65535&a|0;a=a>>>16&65535|0;for(var e;0!==d;){e=2E3d;d++){a=d;for(var f=0;8>f;f++)a=1&a?3988292384^a>>>1:a>>>1;b[d]=a}return b}();f.exports=function(b,d,f,l){f=l+f;for(b^=-1;l>>8^a[255&(b^d[l])];return b^-1}},{}],67:[function(b,f,d){function a(a,b){return a.msg=r[b],b}function e(a){for(var b=a.length;0<=--b;)a[b]=0}function c(a){var b= a.state,d=b.pending;d>a.avail_out&&(d=a.avail_out);0!==d&&(A.arraySet(a.output,b.pending_buf,b.pending_out,d,a.next_out),a.next_out+=d,b.pending_out+=d,a.total_out+=d,a.avail_out-=d,b.pending-=d,0===b.pending&&(b.pending_out=0))}function g(a,b){m._tr_flush_block(a,0<=a.block_start?a.block_start:-1,a.strstart-a.block_start,b);a.block_start=a.strstart;c(a.strm)}function l(a,b){a.pending_buf[a.pending++]=b}function h(a,b){a.pending_buf[a.pending++]=b>>>8&255;a.pending_buf[a.pending++]=255&b}function n(a, b){var d,c,y=a.max_chain_length,L=a.strstart,e=a.prev_length,f=a.nice_match,r=a.strstart>a.w_size-Q?a.strstart-(a.w_size-Q):0,g=a.window,t=a.w_mask,l=a.prev,h=a.strstart+J,B=g[L+e-1],H=g[L+e];a.prev_length>=a.good_match&&(y>>=2);f>a.lookahead&&(f=a.lookahead);do if(d=b,g[d+e]===H&&g[d+e-1]===B&&g[d]===g[L]&&g[++d]===g[L+1]){L+=2;for(d++;g[++L]===g[++d]&&g[++L]===g[++d]&&g[++L]===g[++d]&&g[++L]===g[++d]&&g[++L]===g[++d]&&g[++L]===g[++d]&&g[++L]===g[++d]&&g[++L]===g[++d]&&L e){if(a.match_start=b,e=c,c>=f)break;B=g[L+e-1];H=g[L+e]}}while((b=l[b&t])>r&&0!==--y);return e<=a.lookahead?e:a.lookahead}function q(a){var b,d,c,y,e=a.w_size;do{if(y=a.window_size-a.lookahead-a.strstart,a.strstart>=e+(e-Q)){A.arraySet(a.window,a.window,e,e,0);a.match_start-=e;a.strstart-=e;a.block_start-=e;b=d=a.hash_size;do c=a.head[--b],a.head[b]=c>=e?c-e:0;while(--d);b=d=e;do c=a.prev[--b],a.prev[b]=c>=e?c-e:0;while(--d);y+=e}if(0===a.strm.avail_in)break;b=a.strm;c=a.window;var L=a.strstart+ a.lookahead,f=b.avail_in;if(d=(f>y&&(f=y),0===f?0:(b.avail_in-=f,A.arraySet(c,b.input,b.next_in,f,L),1===b.state.wrap?b.adler=P(b.adler,c,f,L):2===b.state.wrap&&(b.adler=G(b.adler,c,f,L)),b.next_in+=f,b.total_in+=f,f)),a.lookahead+=d,a.lookahead+a.insert>=C)for(y=a.strstart-a.insert,a.ins_h=a.window[y],a.ins_h=(a.ins_h<=C&&(a.ins_h=(a.ins_h<=C)if(c=m._tr_tally(a,a.strstart-a.match_start,a.match_length-C),a.lookahead-= a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=C){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<=C&&(a.ins_h=(a.ins_h<=a.match_length&&(a.strategy===X||a.match_length===C&&4096=C&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-C;c=m._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-C);a.lookahead-=a.prev_length-1;a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<d.wrap&&(d.wrap=-d.wrap),d.status=d.wrap?Z:Y,b.adler=2===d.wrap?0:1,d.last_flush=H,m._tr_init(d),S):a(b,N)}function p(a){var b= v(a);b===S&&(a=a.state,a.window_size=2*a.w_size,e(a.head),a.max_lazy_match=B[a.level].max_lazy,a.good_match=B[a.level].good_length,a.nice_match=B[a.level].nice_length,a.max_chain_length=B[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=C-1,a.match_available=0,a.ins_h=0);return b}function t(b,d,c,y,e,f){if(!b)return N;var k=1;if(d===I&&(d=6),0>y?(k=0,y=-y):15e||e>u||c!==V||8>y||15d||9f||f>T)return a(b,N);8===y&&(y= 9);var O=new F;return b.state=O,O.strm=b,O.wrap=k,O.gzhead=null,O.w_bits=y,O.w_size=1<a.pending_buf_size-5&&(d=a.pending_buf_size-5);;){if(1>=a.lookahead){if(q(a),0===a.lookahead&&b===H)return M;if(0===a.lookahead)break}a.strstart+=a.lookahead;a.lookahead=0;var c=a.block_start+d;if((0===a.strstart||a.strstart>=c)&&(a.lookahead= a.strstart-c,a.strstart=c,g(a,!1),0===a.strm.avail_out)||a.strstart-a.block_start>=a.w_size-Q&&(g(a,!1),0===a.strm.avail_out))return M}return a.insert=0,b===y?(g(a,!0),0===a.strm.avail_out?W:R):(a.strstart>a.block_start&&g(a,!1),M)}),new E(4,4,8,4,x),new E(4,5,16,8,x),new E(4,6,32,32,x),new E(4,4,16,16,z),new E(8,16,32,32,z),new E(8,16,128,128,z),new E(8,32,128,256,z),new E(32,128,258,1024,z),new E(32,258,258,4096,z)];d.deflateInit=function(a,b){return t(a,b,V,15,8,0)};d.deflateInit2=t;d.deflateReset= p;d.deflateResetKeep=v;d.deflateSetHeader=function(a,b){return a&&a.state?2!==a.state.wrap?N:(a.state.gzhead=b,S):N};d.deflate=function(b,d){var f,k,r,t;if(!b||!b.state||5d)return b?a(b,N):N;if(k=b.state,!b.output||!b.input&&0!==b.avail_in||666===k.status&&d!==y)return a(b,0===b.avail_out?-5:N);if(k.strm=b,f=k.last_flush,k.last_flush=d,k.status===Z)2===k.wrap?(b.adler=0,l(k,31),l(k,139),l(k,8),k.gzhead?(l(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment? 16:0)),l(k,255&k.gzhead.time),l(k,k.gzhead.time>>8&255),l(k,k.gzhead.time>>16&255),l(k,k.gzhead.time>>24&255),l(k,9===k.level?2:2<=k.strategy||2>k.level?4:0),l(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(l(k,255&k.gzhead.extra.length),l(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(b.adler=G(b.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(l(k,0),l(k,0),l(k,0),l(k,0),l(k,0),l(k,9===k.level?2:2<=k.strategy||2>k.level?4:0),l(k,3),k.status=Y)):(r=V+(k.w_bits-8<<4)<<8,r|= (2<=k.strategy||2>k.level?0:6>k.level?1:6===k.level?2:3)<<6,0!==k.strstart&&(r|=32),k.status=Y,h(k,r+(31-r%31)),0!==k.strstart&&(h(k,b.adler>>>16),h(k,65535&b.adler)),b.adler=1);if(69===k.status)if(k.gzhead.extra){for(r=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>r&&(b.adler=G(b.adler,k.pending_buf,k.pending-r,r)),c(b),r=k.pending,k.pending!==k.pending_buf_size));)l(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending> r&&(b.adler=G(b.adler,k.pending_buf,k.pending-r,r));k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(73===k.status)if(k.gzhead.name){r=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>r&&(b.adler=G(b.adler,k.pending_buf,k.pending-r,r)),c(b),r=k.pending,k.pending===k.pending_buf_size)){t=1;break}t=k.gzindexr&&(b.adler=G(b.adler,k.pending_buf, k.pending-r,r));0===t&&(k.gzindex=0,k.status=91)}else k.status=91;if(91===k.status)if(k.gzhead.comment){r=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>r&&(b.adler=G(b.adler,k.pending_buf,k.pending-r,r)),c(b),r=k.pending,k.pending===k.pending_buf_size)){t=1;break}t=k.gzindexr&&(b.adler=G(b.adler,k.pending_buf,k.pending-r,r));0===t&&(k.status=103)}else k.status= 103;if(103===k.status&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&c(b),k.pending+2<=k.pending_buf_size&&(l(k,255&b.adler),l(k,b.adler>>8&255),b.adler=0,k.status=Y)):k.status=Y),0!==k.pending){if(c(b),0===b.avail_out)return k.last_flush=-1,S}else if(0===b.avail_in&&(d<<1)-(4=C&&0k.lookahead&&(k.match_length=k.lookahead)}if(k.match_length>=C?(p=m._tr_tally(k,1,k.match_length-C),k.lookahead-=k.match_length,k.strstart+=k.match_length,k.match_length=0):(p=m._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++),p&&(g(k,!1),0===k.strm.avail_out)){p=M;break a}}p=(k.insert=0,d===y?(g(k,!0), 0===k.strm.avail_out?W:R):k.last_lit&&(g(k,!1),0===k.strm.avail_out)?M:U)}else p=B[k.level].func(k,d);if(p!==W&&p!==R||(k.status=666),p===M||p===W)return 0===b.avail_out&&(k.last_flush=-1),S;if(p===U&&(1===d?m._tr_align(k):5!==d&&(m._tr_stored_block(k,0,0,!1),3===d&&(e(k.head),0===k.lookahead&&(k.strstart=0,k.block_start=0,k.insert=0))),c(b),0===b.avail_out))return k.last_flush=-1,S}return d!==y?S:0>=k.wrap?1:(2===k.wrap?(l(k,255&b.adler),l(k,b.adler>>8&255),l(k,b.adler>>16&255),l(k,b.adler>>24&255), l(k,255&b.total_in),l(k,b.total_in>>8&255),l(k,b.total_in>>16&255),l(k,b.total_in>>24&255)):(h(k,b.adler>>>16),h(k,65535&b.adler)),c(b),0=d.w_size&&(0===f&&(e(d.head),d.strstart=0,d.block_start=0,d.insert=0),r=new A.Buf8(d.w_size),A.arraySet(r,b,c-d.w_size,d.w_size,0),b=r,c=d.w_size);r=a.avail_in;g=a.next_in;t=a.input;a.avail_in=c;a.next_in=0;a.input=b;for(q(d);d.lookahead>=C;){c=d.strstart;y=d.lookahead-(C-1);do d.ins_h=(d.ins_h<t&&(p+=N[e++]<>>24,p>>>=r,t-=r,r=G>>>16&255,0===r)I[h++]=65535&G;else{if(!(16&r)){if(0===(64&r)){G=B[(65535&G)+(p&(1<>>=r,t-=r);15>t&&(p+=N[e++]<>>24,p>>>=r,t-=r,r=G>>>16&255,!(16&r)){if(0===(64&r)){G=A[(65535&G)+(p&(1<x){a.msg="invalid distance too far back";d.mode=30;break a}if(p>>>= r,t-=r,r=h-n,y>r){if(r=y-r,r>E&&d.sane){a.msg="invalid distance too far back";d.mode=30;break a}if(G=0,S=v,0===F){if(G+=z-r,r>3;e-=H;t-=H<<3;a.next_in=e;a.next_out=h;a.avail_in=e>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function e(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits= 0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new z.Buf16(320);this.work=new z.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function c(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=A,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0, b.lencode=b.lendyn=new z.Buf32(m),b.distcode=b.distdyn=new z.Buf32(P),b.sane=1,b.back=-1,t):B}function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,c(a)):B}function l(a,b){var d,c;return a&&a.state?(c=a.state,0>b?(d=0,b=-b):(d=(b>>4)+1,48>b&&(b&=15)),b&&(8>b||15=a.wsize?(z.arraySet(a.window,b,d-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(e=a.wsize-a.wnext,e>c&&(e=c),z.arraySet(a.window,b,d-c,e,a.wnext),c-=e,c?(z.arraySet(a.window,b,d-c,c,0),a.wnext=c,a.whave=a.wsize):(a.wnext+=e,a.wnext===a.wsize&&(a.wnext=0),a.whaveu;){if(0===h)break a;h--;m+=e[g++]<>>8&255;c.check=F(c.check,L,2,0);u=m=0;c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&m)<<8)+(m>>8))%31){b.msg="incorrect header check";c.mode=30;break}if(8!==(15&m)){b.msg="unknown compression method";c.mode=30;break}if(m>>>=4,u-=4,M=(15&m)+8,0===c.wbits)c.wbits=M;else if(M>c.wbits){b.msg="invalid window size";c.mode=30;break}c.dmax=1<u;){if(0===h)break a;h--;m+=e[g++]<>8&1);512&c.flags&&(L[0]=255&m,L[1]=m>>>8&255,c.check=F(c.check,L,2,0));u=m=0;c.mode=3;case 3:for(;32>u;){if(0===h)break a;h--;m+=e[g++]<>>8&255,L[2]=m>>>16&255,L[3]= m>>>24&255,c.check=F(c.check,L,4,0));u=m=0;c.mode=4;case 4:for(;16>u;){if(0===h)break a;h--;m+=e[g++]<>8);512&c.flags&&(L[0]=255&m,L[1]=m>>>8&255,c.check=F(c.check,L,2,0));u=m=0;c.mode=5;case 5:if(1024&c.flags){for(;16>u;){if(0===h)break a;h--;m+=e[g++]<>>8&255,c.check=F(c.check,L,2,0));u=m=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&(D=c.length, D>h&&(D=h),D&&(c.head&&(M=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),z.arraySet(c.head.extra,e,g,D,M)),512&c.flags&&(c.check=F(c.check,e,D,g)),h-=D,g+=D,c.length-=D),c.length))break a;c.length=0;c.mode=7;case 7:if(2048&c.flags){if(0===h)break a;D=0;do M=e[g+D++],c.head&&M&&65536>c.length&&(c.head.name+=String.fromCharCode(M));while(M&&Dc.length&&(c.head.comment+=String.fromCharCode(M));while(M&&Du;){if(0===h)break a;h--;m+=e[g++]<>9&1,c.head.done=!0);b.adler=c.check=0;c.mode=12;break;case 10:for(;32>u;){if(0===h)break a; h--;m+=e[g++]<>>=7&u;u-=7&u;c.mode=27;break}for(;3>u;){if(0===h)break a;h--;m+=e[g++]<>>=1,--u,3&m){case 0:c.mode=14;break;case 1:J=c;if(G){q=new z.Buf32(512);x=new z.Buf32(32);for(K=0;144>K;)J.lens[K++]=8;for(;256>K;)J.lens[K++]=9;for(;280>K;)J.lens[K++]= 7;for(;288>K;)J.lens[K++]=8;p(1,J.lens,0,288,q,0,J.work,{bits:9});for(K=0;32>K;)J.lens[K++]=5;p(2,J.lens,0,32,x,0,J.work,{bits:5});G=!1}J.lencode=q;J.lenbits=9;J.distcode=x;J.distbits=5;if(c.mode=20,6===d){m>>>=2;u-=2;break a}break;case 2:c.mode=17;break;case 3:b.msg="invalid block type",c.mode=30}m>>>=2;u-=2;break;case 14:m>>>=7&u;for(u-=7&u;32>u;){if(0===h)break a;h--;m+=e[g++]<>>16^65535)){b.msg="invalid stored block lengths";c.mode=30;break}if(c.length=65535&m,m=0,u= 0,c.mode=15,6===d)break a;case 15:c.mode=16;case 16:if(D=c.length){if(D>h&&(D=h),D>l&&(D=l),0===D)break a;z.arraySet(f,e,g,D,r);h-=D;g+=D;l-=D;r+=D;c.length-=D;break}c.mode=12;break;case 17:for(;14>u;){if(0===h)break a;h--;m+=e[g++]<>>=5,u-=5,c.ndist=(31&m)+1,m>>>=5,u-=5,c.ncode=(15&m)+4,m>>>=4,u-=4,286u;){if(0===h)break a;h--;m+=e[g++]<< u;u+=8}c.lens[ea[c.have++]]=7&m;m>>>=3;u-=3}for(;19>c.have;)c.lens[ea[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,W={bits:c.lenbits},U=p(0,c.lens,0,19,c.lencode,0,c.work,W),c.lenbits=W.bits,U){b.msg="invalid code lengths set";c.mode=30;break}c.have=0;c.mode=19;case 19:for(;c.have>>24,J=65535&R,!(C<=u);){if(0===h)break a;h--;m+=e[g++]<J)m>>>=C,u-=C,c.lens[c.have++]=J;else{if(16===J){for(K=C+2;u>>=C,u-=C,0===c.have){b.msg="invalid bit length repeat";c.mode=30;break}M=c.lens[c.have-1];D=3+(3&m);m>>>=2;u-=2}else if(17===J){for(K=C+3;u>>=C;u-=C;M=0;D=3+(7&m);m>>>=3;u-=3}else{for(K=C+7;u>>=C;u-=C;M=0;D=11+(127&m);m>>>=7;u-=7}if(c.have+D>c.nlen+c.ndist){b.msg="invalid bit length repeat";c.mode=30;break}for(;D--;)c.lens[c.have++]=M}}if(30===c.mode)break;if(0===c.lens[256]){b.msg="invalid code -- missing end-of-block"; c.mode=30;break}if(c.lenbits=9,W={bits:c.lenbits},U=p(1,c.lens,0,c.nlen,c.lencode,0,c.work,W),c.lenbits=W.bits,U){b.msg="invalid literal/lengths set";c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,W={bits:c.distbits},U=p(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,W),c.distbits=W.bits,U){b.msg="invalid distances set";c.mode=30;break}if(c.mode=20,6===d)break a;case 20:c.mode=21;case 21:if(6<=h&&258<=l){b.next_out=r;b.avail_out=l;b.next_in=g;b.avail_in=h;c.hold=m;c.bits=u;v(b,P);r=b.next_out; f=b.output;l=b.avail_out;g=b.next_in;e=b.input;h=b.avail_in;m=c.hold;u=c.bits;12===c.mode&&(c.back=-1);break}for(c.back=0;R=c.lencode[m&(1<>>24,K=R>>>16&255,J=65535&R,!(C<=u);){if(0===h)break a;h--;m+=e[g++]<>Q)],C=R>>>24,K=R>>>16&255,J=65535&R,!(Q+C<=u);){if(0===h)break a;h--;m+=e[g++]<>>=Q;u-=Q;c.back+=Q}if(m>>>=C,u-=C,c.back+=C,c.length=J,0===K){c.mode=26;break}if(32&K){c.back=-1;c.mode=12;break}if(64& K){b.msg="invalid literal/length code";c.mode=30;break}c.extra=15&K;c.mode=22;case 22:if(c.extra){for(K=c.extra;u>>=c.extra;u-=c.extra;c.back+=c.extra}c.was=c.length;c.mode=23;case 23:for(;R=c.distcode[m&(1<>>24,K=R>>>16&255,J=65535&R,!(C<=u);){if(0===h)break a;h--;m+=e[g++]<>Q)],C=R>>>24,K=R>>>16&255,J=65535&R,!(Q+C<=u);){if(0===h)break a; h--;m+=e[g++]<>>=Q;u-=Q;c.back+=Q}if(m>>>=C,u-=C,c.back+=C,64&K){b.msg="invalid distance code";c.mode=30;break}c.offset=J;c.extra=15&K;c.mode=24;case 24:if(c.extra){for(K=c.extra;u>>=c.extra;u-=c.extra;c.back+=c.extra}if(c.offset>c.dmax){b.msg="invalid distance too far back";c.mode=30;break}c.mode=25;case 25:if(0===l)break a;if(D=P-l,c.offset>D){if(D=c.offset-D,D>c.whave&&c.sane){b.msg="invalid distance too far back"; c.mode=30;break}D>c.wnext?(D-=c.wnext,ba=c.wsize-D):ba=c.wnext-D;D>c.length&&(D=c.length);K=c.window}else K=f,ba=r-c.offset,D=c.length;D>l&&(D=l);l-=D;c.length-=D;do f[r++]=K[ba++];while(--D);0===c.length&&(c.mode=21);break;case 26:if(0===l)break a;f[r++]=c.length;l--;c.mode=21;break;case 27:if(c.wrap){for(;32>u;){if(0===h)break a;h--;m|=e[g++]<u;){if(0===h)break a;h--;m+=e[g++]<c.mode&&(27>c.mode||4!==d))&&n(b,b.output,b.next_out,P-b.avail_out)?(c.mode=31,-4):(H-=b.avail_in,P-=b.avail_out,b.total_in+= H,b.total_out+=P,c.total+=P,c.wrap&&P&&(b.adler=c.check=c.flags?F(c.check,f,P,b.next_out-P):E(c.check,f,P,b.next_out-P)),b.data_type=c.bits+(c.last?64:0)+(12===c.mode?128:0)+(20===c.mode||15===c.mode?256:0),(0===H&&0===P||4===d)&&U===t&&(U=-5),U)};d.inflateEnd=function(a){if(!a||!a.state)return B;var b=a.state;return b.window&&(b.window=null),a.state=null,t};d.inflateGetHeader=function(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?B:(c.head=b,b.done=!1,t)):B};d.inflateSetDictionary=function(a, b){var c,d,e=b.length;return a&&a.state?(c=a.state,0!==c.wrap&&11!==c.mode?B:11===c.mode&&(d=1,d=E(d,b,e,0),d!==c.check)?-3:n(a,b,e,e)?(c.mode=31,-4):(c.havedict=1,t)):B};d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":62,"./adler32":64,"./crc32":66,"./inffast":69,"./inftrees":71}],71:[function(b,f,d){var a=b("../utils/common"),e=[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],c=[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],g=[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],l=[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];f.exports=function(b,d,f,x,z,E,F,v){var h,t,B,A,m,n,G,r,H=v.bits,y,q,N,I,X,T,aa=0,V,u=null,da=0,ca=new a.Buf16(16);A=new a.Buf16(16);var D=null,ba=0;for(y=0;15>=y;y++)ca[y]=0;for(q=0;qN&&(I=N),0===N)return z[E++]=20971520,z[E++]=20971520,v.bits=1,0;for(H=1;H=y;y++)if(h<<=1,h-=ca[y],0>h)return-1;if(0y;y++)A[y+1]=A[y]+ca[y];for(q=0;qm?(G=D[ba+F[q]], r=u[da+F[q]]):(G=96,r=0);h=1<>T)+t]=n<<24|G<<16|r|0;while(0!==t);for(h=1<>=1;if(0!==h?(V&=h-1,V+=h):V=0,q++,0===--ca[y]){if(y===N)break;y=d[f+F[q]]}if(y>I&&(V&x)!==B){0===T&&(T=I);A+=H;X=y-T;for(h=1<=h));)X++,h<<=1;if(aa+=1<>>8&255}function l(a, b,c){a.bi_valid>aa-c?(a.bi_buf|=b<>aa-a.bi_valid,a.bi_valid+=c-aa):(a.bi_buf|=b<>>=1,c<<=1;while(0<--b);return c>>>1}function q(a,b,c){var d,e=Array(T+1),f=0;for(d=1;d<=T;d++)e[d]=f=f+c[d-1]<<1;for(c=0;c<=b;c++)d=a[2*c+1],0!==d&&(a[2*c]=n(e[d]++,d))}function x(a){var b;for(b=0;bd?Z[d]:Z[256+(d>>>7)],h(a,f,c),k=ba[f],0!==k&&(d-=U[f],l(a,d,k)));while(ga.heap_len;)e=a.heap[++a.heap_len]=2>m?++m:0,f[2*e]=1,a.depth[e]=0,a.opt_len--,k&&(a.static_len-=d[2*e+1]);b.max_code=m;for(c=a.heap_len>>1;1<=c;c--)F(a,f,c);e=g;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],F(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,F(a,f,1);while(2<=a.heap_len);a.heap[--a.heap_max]=a.heap[1];var h,t,k=b.dyn_tree,g=b.max_code, l=b.stat_desc.static_tree,r=b.stat_desc.has_stree,A=b.stat_desc.extra_bits,B=b.stat_desc.extra_base,p=b.stat_desc.max_length,O=0;for(d=0;d<=T;d++)a.bl_count[d]=0;k[2*a.heap[a.heap_max]+1]=0;for(c=a.heap_max+1;cp&&(d=p,O++),k[2*e+1]=d,e>g||(a.bl_count[d]++,h=0,e>=B&&(h=A[e-B]),t=k[2*e],a.opt_len+=t*(d+h),r&&(a.static_len+=t*(l[2*e+1]+h)));if(0!==O){do{for(d=p-1;0===a.bl_count[d];)d--;a.bl_count[d]--;a.bl_count[d+1]+=2;a.bl_count[p]--;O-=2}while(0g||(k[2*h+1]!==d&&(a.opt_len+=(d-k[2*h+1])*k[2*h],k[2*h+1]=d),e--)}q(f,m,a.bl_count)}function t(a,b,c){var d,e,f=-1,k=b[1],g=0,h=7,m=4;0===k&&(h=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++)e=k,k=b[2*(d+1)+1],++g=g?a.bl_tree[2*da]++:a.bl_tree[2*ca]++,g=0,f=e,0===k?(h=138,m=3):e===k?(h=6,m=3):(h=7,m=4))}function B(a,b,c){var d,e,f=-1,k=b[1],g=0,m=7,t=4;0===k&&(m=138, t=3);for(d=0;d<=c;d++)if(e=k,k=b[2*(d+1)+1],!(++g=g?(h(a,da,a.bl_tree),l(a,g-3,3)):(h(a,ca,a.bl_tree),l(a,g-11,7));g=0;f=e;0===k?(m=138,t=3):e===k?(m=6,t=3):(m=7,t=4)}}function A(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return G;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return r;for(b=32;bf;f++)for(M[f]=d,b=0;b<1<f;f++)for(U[f]=d,b=0;b<1<>=7;f=b;)J[2*b+1]=8,b++,g[8]++;for(;255>=b;)J[2*b+1]=9,b++,g[9]++;for(;279>=b;)J[2*b+1]=7,b++,g[7]++;for(;287>= b;)J[2*b+1]=8,b++,g[8]++;q(J,S+1,g);for(b=0;b>>3;f=a.static_len+3+7>>>3;f<=e&&(e=f)}else e=f=c+5;if(c+4<=e&&-1!==b)m(a,b,c,d);else if(4===a.strategy||f===e)l(a,2+(d?1:0),3),v(a,J,Q);else{l(a,4+(d?1:0),3);b=a.l_desc.max_code+1;c=a.d_desc.max_code+1;g+=1;l(a,b-257,5);l(a,c-1,5);l(a,g-4,4);for(e=0;e>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(Y[c]+y+1)]++,a.dyn_dtree[2*(256>b?Z[b]:Z[256+(b>>>7)])]++),a.last_lit===a.lit_bufsize-1};d._tr_align=function(a){l(a,2,3);h(a,V,J);16===a.bi_valid?(g(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):8<=a.bi_valid&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}},{"../utils/common":62}],74:[function(b,f,d){f.exports= function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}]},{},[10])(10)});function VsdxExport(w){function b(a,b){var c={"[Content_Types].xml":"", "_rels/.rels":"", "docProps/app.xml":'Microsoft Visio15.0000