var wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(ct){return ct&&ct.__esModule&&Object.prototype.hasOwnProperty.call(ct,"default")?ct.default:ct}function yt(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ct={exports:{}};/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(ct,ot){(function(p){ct.exports=p()})(function(){return function p(N,y,l){function o(g,b){if(!y[g]){if(!N[g]){var m=typeof yt=="function"&&yt;if(!b&&m)return m(g,!0);if(n)return n(g,!0);var v=new Error("Cannot find module '"+g+"'");throw v.code="MODULE_NOT_FOUND",v}var i=y[g]={exports:{}};N[g][0].call(i.exports,function(d){var r=N[g][1][d];return o(r||d)},i,i.exports,p,N,y,l)}return y[g].exports}for(var n=typeof yt=="function"&&yt,u=0;u<l.length;u++)o(l[u]);return o}({1:[function(p,N,y){var l=p("./utils"),o=p("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";y.encode=function(u){for(var g,b,m,v,i,d,r,h=[],a=0,f=u.length,w=f,E=l.getTypeOf(u)!=="string";a<u.length;)w=f-a,m=E?(g=u[a++],b=a<f?u[a++]:0,a<f?u[a++]:0):(g=u.charCodeAt(a++),b=a<f?u.charCodeAt(a++):0,a<f?u.charCodeAt(a++):0),v=g>>2,i=(3&g)<<4|b>>4,d=1<w?(15&b)<<2|m>>6:64,r=2<w?63&m:64,h.push(n.charAt(v)+n.charAt(i)+n.charAt(d)+n.charAt(r));return h.join("")},y.decode=function(u){var g,b,m,v,i,d,r=0,h=0,a="data:";if(u.substr(0,a.length)===a)throw new Error("Invalid base64 input, it looks like a data url.");var f,w=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===n.charAt(64)&&w--,u.charAt(u.length-2)===n.charAt(64)&&w--,w%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=o.uint8array?new Uint8Array(0|w):new Array(0|w);r<u.length;)g=n.indexOf(u.charAt(r++))<<2|(v=n.indexOf(u.charAt(r++)))>>4,b=(15&v)<<4|(i=n.indexOf(u.charAt(r++)))>>2,m=(3&i)<<6|(d=n.indexOf(u.charAt(r++))),f[h++]=g,i!==64&&(f[h++]=b),d!==64&&(f[h++]=m);return f}},{"./support":30,"./utils":32}],2:[function(p,N,y){var l=p("./external"),o=p("./stream/DataWorker"),n=p("./stream/Crc32Probe"),u=p("./stream/DataLengthProbe");function g(b,m,v,i,d){this.compressedSize=b,this.uncompressedSize=m,this.crc32=v,this.compression=i,this.compressedContent=d}g.prototype={getContentWorker:function(){var b=new o(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),m=this;return b.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new o(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(b,m,v){return b.pipe(new n).pipe(new u("uncompressedSize")).pipe(m.compressWorker(v)).pipe(new u("compressedSize")).withStreamInfo("compression",m)},N.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(p,N,y){var l=p("./stream/GenericWorker");y.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},y.DEFLATE=p("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(p,N,y){var l=p("./utils"),o=function(){for(var n,u=[],g=0;g<256;g++){n=g;for(var b=0;b<8;b++)n=1&n?3988292384^n>>>1:n>>>1;u[g]=n}return u}();N.exports=function(n,u){return n!==void 0&&n.length?l.getTypeOf(n)!=="string"?function(g,b,m,v){var i=o,d=v+m;g^=-1;for(var r=v;r<d;r++)g=g>>>8^i[255&(g^b[r])];return-1^g}(0|u,n,n.length,0):function(g,b,m,v){var i=o,d=v+m;g^=-1;for(var r=v;r<d;r++)g=g>>>8^i[255&(g^b.charCodeAt(r))];return-1^g}(0|u,n,n.length,0):0}},{"./utils":32}],5:[function(p,N,y){y.base64=!1,y.binary=!1,y.dir=!1,y.createFolders=!0,y.date=null,y.compression=null,y.compressionOptions=null,y.comment=null,y.unixPermissions=null,y.dosPermissions=null},{}],6:[function(p,N,y){var l=null;l=typeof Promise<"u"?Promise:p("lie"),N.exports={Promise:l}},{lie:37}],7:[function(p,N,y){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=p("pako"),n=p("./utils"),u=p("./stream/GenericWorker"),g=l?"uint8array":"array";function b(m,v){u.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=v,this.meta={}}y.magic="\b\0",n.inherits(b,u),b.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(g,m.data),!1)},b.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(v){m.push({data:v,meta:m.meta})}},y.compressWorker=function(m){return new b("Deflate",m)},y.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,N,y){function l(i,d){var r,h="";for(r=0;r<d;r++)h+=String.fromCharCode(255&i),i>>>=8;return h}function o(i,d,r,h,a,f){var w,E,x=i.file,L=i.compression,R=f!==g.utf8encode,Z=n.transformTo("string",f(x.name)),O=n.transformTo("string",g.utf8encode(x.name)),H=x.comment,J=n.transformTo("string",f(H)),_=n.transformTo("string",g.utf8encode(H)),T=O.length!==x.name.length,e=_.length!==H.length,F="",rt="",j="",Q=x.dir,W=x.date,tt={crc32:0,compressedSize:0,uncompressedSize:0};d&&!r||(tt.crc32=i.crc32,tt.compressedSize=i.compressedSize,tt.uncompressedSize=i.uncompressedSize);var z=0;d&&(z|=8),R||!T&&!e||(z|=2048);var C=0,Y=0;Q&&(C|=16),a==="UNIX"?(Y=798,C|=function(A,V){var G=A;return A||(G=V?16893:33204),(65535&G)<<16}(x.unixPermissions,Q)):(Y=20,C|=function(A){return 63&(A||0)}(x.dosPermissions)),w=W.getUTCHours(),w<<=6,w|=W.getUTCMinutes(),w<<=5,w|=W.getUTCSeconds()/2,E=W.getUTCFullYear()-1980,E<<=4,E|=W.getUTCMonth()+1,E<<=5,E|=W.getUTCDate(),T&&(rt=l(1,1)+l(b(Z),4)+O,F+="up"+l(rt.length,2)+rt),e&&(j=l(1,1)+l(b(J),4)+_,F+="uc"+l(j.length,2)+j);var I="";return I+=`
\0`,I+=l(z,2),I+=L.magic,I+=l(w,2),I+=l(E,2),I+=l(tt.crc32,4),I+=l(tt.compressedSize,4),I+=l(tt.uncompressedSize,4),I+=l(Z.length,2),I+=l(F.length,2),{fileRecord:m.LOCAL_FILE_HEADER+I+Z+F,dirRecord:m.CENTRAL_FILE_HEADER+l(Y,2)+I+l(J.length,2)+"\0\0\0\0"+l(C,4)+l(h,4)+Z+F+J}}var n=p("../utils"),u=p("../stream/GenericWorker"),g=p("../utf8"),b=p("../crc32"),m=p("../signature");function v(i,d,r,h){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=r,this.encodeFileName=h,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(v,u),v.prototype.push=function(i){var d=i.meta.percent||0,r=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,u.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:r?(d+100*(r-h-1))/r:100}}))},v.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var d=this.streamFiles&&!i.file.dir;if(d){var r=o(i,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},v.prototype.closedSource=function(i){this.accumulate=!1;var d=this.streamFiles&&!i.file.dir,r=o(i,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),d)this.push({data:function(h){return m.DATA_DESCRIPTOR+l(h.crc32,4)+l(h.compressedSize,4)+l(h.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},v.prototype.flush=function(){for(var i=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var r=this.bytesWritten-i,h=function(a,f,w,E,x){var L=n.transformTo("string",x(E));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(a,2)+l(a,2)+l(f,4)+l(w,4)+l(L.length,2)+L}(this.dirRecords.length,r,i,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},v.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},v.prototype.registerPrevious=function(i){this._sources.push(i);var d=this;return i.on("data",function(r){d.processChunk(r)}),i.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),i.on("error",function(r){d.error(r)}),this},v.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},v.prototype.error=function(i){var d=this._sources;if(!u.prototype.error.call(this,i))return!1;for(var r=0;r<d.length;r++)try{d[r].error(i)}catch{}return!0},v.prototype.lock=function(){u.prototype.lock.call(this);for(var i=this._sources,d=0;d<i.length;d++)i[d].lock()},N.exports=v},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(p,N,y){var l=p("../compressions"),o=p("./ZipFileWorker");y.generateWorker=function(n,u,g){var b=new o(u.streamFiles,g,u.platform,u.encodeFileName),m=0;try{n.forEach(function(v,i){m++;var d=function(f,w){var E=f||w,x=l[E];if(!x)throw new Error(E+" is not a valid compression method !");return x}(i.options.compression,u.compression),r=i.options.compressionOptions||u.compressionOptions||{},h=i.dir,a=i.date;i._compressWorker(d,r).withStreamInfo("file",{name:v,dir:h,date:a,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(b)}),b.entriesCount=m}catch(v){b.error(v)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(p,N,y){function l(){if(!(this instanceof l))return new l;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 o=new l;for(var n in this)typeof this[n]!="function"&&(o[n]=this[n]);return o}}(l.prototype=p("./object")).loadAsync=p("./load"),l.support=p("./support"),l.defaults=p("./defaults"),l.version="3.10.1",l.loadAsync=function(o,n){return new l().loadAsync(o,n)},l.external=p("./external"),N.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(p,N,y){var l=p("./utils"),o=p("./external"),n=p("./utf8"),u=p("./zipEntries"),g=p("./stream/Crc32Probe"),b=p("./nodejsUtils");function m(v){return new o.Promise(function(i,d){var r=v.decompressed.getContentWorker().pipe(new g);r.on("error",function(h){d(h)}).on("end",function(){r.streamInfo.crc32!==v.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}N.exports=function(v,i){var d=this;return i=l.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),b.isNode&&b.isStream(v)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",v,!0,i.optimizedBinaryString,i.base64).then(function(r){var h=new u(i);return h.load(r),h}).then(function(r){var h=[o.Promise.resolve(r)],a=r.files;if(i.checkCRC32)for(var f=0;f<a.length;f++)h.push(m(a[f]));return o.Promise.all(h)}).then(function(r){for(var h=r.shift(),a=h.files,f=0;f<a.length;f++){var w=a[f],E=w.fileNameStr,x=l.resolve(w.fileNameStr);d.file(x,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:i.createFolders}),w.dir||(d.file(x).unsafeOriginalName=E)}return h.zipComment.length&&(d.comment=h.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(p,N,y){var l=p("../utils"),o=p("../stream/GenericWorker");function n(u,g){o.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(g)}l.inherits(n,o),n.prototype._bindStream=function(u){var g=this;(this._stream=u).pause(),u.on("data",function(b){g.push({data:b,meta:{percent:0}})}).on("error",function(b){g.isPaused?this.generatedError=b:g.error(b)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},N.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(p,N,y){var l=p("readable-stream").Readable;function o(n,u,g){l.call(this,u),this._helper=n;var b=this;n.on("data",function(m,v){b.push(m)||b._helper.pause(),g&&g(v)}).on("error",function(m){b.emit("error",m)}).on("end",function(){b.push(null)})}p("../utils").inherits(o,l),o.prototype._read=function(){this._helper.resume()},N.exports=o},{"../utils":32,"readable-stream":16}],14:[function(p,N,y){N.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,o);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,o)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var o=new Buffer(l);return o.fill(0),o},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(p,N,y){function l(x,L,R){var Z,O=n.getTypeOf(L),H=n.extend(R||{},b);H.date=H.date||new Date,H.compression!==null&&(H.compression=H.compression.toUpperCase()),typeof H.unixPermissions=="string"&&(H.unixPermissions=parseInt(H.unixPermissions,8)),H.unixPermissions&&16384&H.unixPermissions&&(H.dir=!0),H.dosPermissions&&16&H.dosPermissions&&(H.dir=!0),H.dir&&(x=a(x)),H.createFolders&&(Z=h(x))&&f.call(this,Z,!0);var J=O==="string"&&H.binary===!1&&H.base64===!1;R&&R.binary!==void 0||(H.binary=!J),(L instanceof m&&L.uncompressedSize===0||H.dir||!L||L.length===0)&&(H.base64=!1,H.binary=!0,L="",H.compression="STORE",O="string");var _=null;_=L instanceof m||L instanceof u?L:d.isNode&&d.isStream(L)?new r(x,L):n.prepareContent(x,L,H.binary,H.optimizedBinaryString,H.base64);var T=new v(x,_,H);this.files[x]=T}var o=p("./utf8"),n=p("./utils"),u=p("./stream/GenericWorker"),g=p("./stream/StreamHelper"),b=p("./defaults"),m=p("./compressedObject"),v=p("./zipObject"),i=p("./generate"),d=p("./nodejsUtils"),r=p("./nodejs/NodejsStreamInputAdapter"),h=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var L=x.lastIndexOf("/");return 0<L?x.substring(0,L):""},a=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},f=function(x,L){return L=L!==void 0?L:b.createFolders,x=a(x),this.files[x]||l.call(this,x,null,{dir:!0,createFolders:L}),this.files[x]};function w(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var L,R,Z;for(L in this.files)Z=this.files[L],(R=L.slice(this.root.length,L.length))&&L.slice(0,this.root.length)===this.root&&x(R,Z)},filter:function(x){var L=[];return this.forEach(function(R,Z){x(R,Z)&&L.push(Z)}),L},file:function(x,L,R){if(arguments.length!==1)return x=this.root+x,l.call(this,x,L,R),this;if(w(x)){var Z=x;return this.filter(function(H,J){return!J.dir&&Z.test(H)})}var O=this.files[this.root+x];return O&&!O.dir?O:null},folder:function(x){if(!x)return this;if(w(x))return this.filter(function(O,H){return H.dir&&x.test(O)});var L=this.root+x,R=f.call(this,L),Z=this.clone();return Z.root=R.name,Z},remove:function(x){x=this.root+x;var L=this.files[x];if(L||(x.slice(-1)!=="/"&&(x+="/"),L=this.files[x]),L&&!L.dir)delete this.files[x];else for(var R=this.filter(function(O,H){return H.name.slice(0,x.length)===x}),Z=0;Z<R.length;Z++)delete this.files[R[Z].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var L,R={};try{if((R=n.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=R.type.toLowerCase(),R.compression=R.compression.toUpperCase(),R.type==="binarystring"&&(R.type="string"),!R.type)throw new Error("No output type specified.");n.checkSupport(R.type),R.platform!=="darwin"&&R.platform!=="freebsd"&&R.platform!=="linux"&&R.platform!=="sunos"||(R.platform="UNIX"),R.platform==="win32"&&(R.platform="DOS");var Z=R.comment||this.comment||"";L=i.generateWorker(this,R,Z)}catch(O){(L=new u("error")).error(O)}return new g(L,R.type||"string",R.mimeType)},generateAsync:function(x,L){return this.generateInternalStream(x).accumulate(L)},generateNodeStream:function(x,L){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(L)}};N.exports=E},{"./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(p,N,y){N.exports=p("stream")},{stream:void 0}],17:[function(p,N,y){var l=p("./DataReader");function o(n){l.call(this,n);for(var u=0;u<this.data.length;u++)n[u]=255&n[u]}p("../utils").inherits(o,l),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var u=n.charCodeAt(0),g=n.charCodeAt(1),b=n.charCodeAt(2),m=n.charCodeAt(3),v=this.length-4;0<=v;--v)if(this.data[v]===u&&this.data[v+1]===g&&this.data[v+2]===b&&this.data[v+3]===m)return v-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var u=n.charCodeAt(0),g=n.charCodeAt(1),b=n.charCodeAt(2),m=n.charCodeAt(3),v=this.readData(4);return u===v[0]&&g===v[1]&&b===v[2]&&m===v[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./DataReader":18}],18:[function(p,N,y){var l=p("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var u,g=0;for(this.checkOffset(n),u=this.index+n-1;u>=this.index;u--)g=(g<<8)+this.byteAt(u);return this.index+=n,g},readString:function(n){return l.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},N.exports=o},{"../utils":32}],19:[function(p,N,y){var l=p("./Uint8ArrayReader");function o(n){l.call(this,n)}p("../utils").inherits(o,l),o.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(p,N,y){var l=p("./DataReader");function o(n){l.call(this,n)}p("../utils").inherits(o,l),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./DataReader":18}],21:[function(p,N,y){var l=p("./ArrayReader");function o(n){l.call(this,n)}p("../utils").inherits(o,l),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(p,N,y){var l=p("../utils"),o=p("../support"),n=p("./ArrayReader"),u=p("./StringReader"),g=p("./NodeBufferReader"),b=p("./Uint8ArrayReader");N.exports=function(m){var v=l.getTypeOf(m);return l.checkSupport(v),v!=="string"||o.uint8array?v==="nodebuffer"?new g(m):o.uint8array?new b(l.transformTo("uint8array",m)):new n(l.transformTo("array",m)):new u(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(p,N,y){y.LOCAL_FILE_HEADER="PK",y.CENTRAL_FILE_HEADER="PK",y.CENTRAL_DIRECTORY_END="PK",y.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",y.ZIP64_CENTRAL_DIRECTORY_END="PK",y.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(p,N,y){var l=p("./GenericWorker"),o=p("../utils");function n(u){l.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(n,l),n.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},N.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(p,N,y){var l=p("./GenericWorker"),o=p("../crc32");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p("../utils").inherits(n,l),n.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},N.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,N,y){var l=p("../utils"),o=p("./GenericWorker");function n(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}l.inherits(n,o),n.prototype.processChunk=function(u){if(u){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+u.data.length}o.prototype.processChunk.call(this,u)},N.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(p,N,y){var l=p("../utils"),o=p("./GenericWorker");function n(u){o.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(b){g.dataIsReady=!0,g.data=b,g.max=b&&b.length||0,g.type=l.getTypeOf(b),g.isPaused||g._tickAndRepeat()},function(b){g.error(b)})}l.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,g);break;case"uint8array":u=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":u=this.data.slice(this.index,g)}return this.index=g,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},N.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(p,N,y){function l(o){this.name=o||"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}l.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var u=0;u<this._listeners[o].length;u++)this._listeners[o][u].call(this,n)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var n=this;return o.on("data",function(u){n.processChunk(u)}),o.on("end",function(){n.end()}),o.on("error",function(u){n.error(u)}),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 o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,n){return this.extraStreamInfo[o]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},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 o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},N.exports=l},{}],29:[function(p,N,y){var l=p("../utils"),o=p("./ConvertWorker"),n=p("./GenericWorker"),u=p("../base64"),g=p("../support"),b=p("../external"),m=null;if(g.nodestream)try{m=p("../nodejs/NodejsStreamOutputAdapter")}catch{}function v(d,r){return new b.Promise(function(h,a){var f=[],w=d._internalType,E=d._outputType,x=d._mimeType;d.on("data",function(L,R){f.push(L),r&&r(R)}).on("error",function(L){f=[],a(L)}).on("end",function(){try{var L=function(R,Z,O){switch(R){case"blob":return l.newBlob(l.transformTo("arraybuffer",Z),O);case"base64":return u.encode(Z);default:return l.transformTo(R,Z)}}(E,function(R,Z){var O,H=0,J=null,_=0;for(O=0;O<Z.length;O++)_+=Z[O].length;switch(R){case"string":return Z.join("");case"array":return Array.prototype.concat.apply([],Z);case"uint8array":for(J=new Uint8Array(_),O=0;O<Z.length;O++)J.set(Z[O],H),H+=Z[O].length;return J;case"nodebuffer":return Buffer.concat(Z);default:throw new Error("concat : unsupported type '"+R+"'")}}(w,f),x);h(L)}catch(R){a(R)}f=[]}).resume()})}function i(d,r,h){var a=r;switch(r){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=r,this._mimeType=h,l.checkSupport(a),this._worker=d.pipe(new o(a)),d.lock()}catch(f){this._worker=new n("error"),this._worker.error(f)}}i.prototype={accumulate:function(d){return v(this,d)},on:function(d,r){var h=this;return d==="data"?this._worker.on(d,function(a){r.call(h,a.data,a.meta)}):this._worker.on(d,function(){l.delay(r,arguments,h)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},d)}},N.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(p,N,y){if(y.base64=!0,y.array=!0,y.string=!0,y.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",y.nodebuffer=typeof Buffer<"u",y.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")y.blob=!1;else{var l=new ArrayBuffer(0);try{y.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(l),y.blob=o.getBlob("application/zip").size===0}catch{y.blob=!1}}}try{y.nodestream=!!p("readable-stream").Readable}catch{y.nodestream=!1}},{"readable-stream":16}],31:[function(p,N,y){for(var l=p("./utils"),o=p("./support"),n=p("./nodejsUtils"),u=p("./stream/GenericWorker"),g=new Array(256),b=0;b<256;b++)g[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;g[254]=g[254]=1;function m(){u.call(this,"utf-8 decode"),this.leftOver=null}function v(){u.call(this,"utf-8 encode")}y.utf8encode=function(i){return o.nodebuffer?n.newBufferFrom(i,"utf-8"):function(d){var r,h,a,f,w,E=d.length,x=0;for(f=0;f<E;f++)(64512&(h=d.charCodeAt(f)))==55296&&f+1<E&&(64512&(a=d.charCodeAt(f+1)))==56320&&(h=65536+(h-55296<<10)+(a-56320),f++),x+=h<128?1:h<2048?2:h<65536?3:4;for(r=o.uint8array?new Uint8Array(x):new Array(x),f=w=0;w<x;f++)(64512&(h=d.charCodeAt(f)))==55296&&f+1<E&&(64512&(a=d.charCodeAt(f+1)))==56320&&(h=65536+(h-55296<<10)+(a-56320),f++),h<128?r[w++]=h:(h<2048?r[w++]=192|h>>>6:(h<65536?r[w++]=224|h>>>12:(r[w++]=240|h>>>18,r[w++]=128|h>>>12&63),r[w++]=128|h>>>6&63),r[w++]=128|63&h);return r}(i)},y.utf8decode=function(i){return o.nodebuffer?l.transformTo("nodebuffer",i).toString("utf-8"):function(d){var r,h,a,f,w=d.length,E=new Array(2*w);for(r=h=0;r<w;)if((a=d[r++])<128)E[h++]=a;else if(4<(f=g[a]))E[h++]=65533,r+=f-1;else{for(a&=f===2?31:f===3?15:7;1<f&&r<w;)a=a<<6|63&d[r++],f--;1<f?E[h++]=65533:a<65536?E[h++]=a:(a-=65536,E[h++]=55296|a>>10&1023,E[h++]=56320|1023&a)}return E.length!==h&&(E.subarray?E=E.subarray(0,h):E.length=h),l.applyFromCharCode(E)}(i=l.transformTo(o.uint8array?"uint8array":"array",i))},l.inherits(m,u),m.prototype.processChunk=function(i){var d=l.transformTo(o.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var r=d;(d=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),d.set(r,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var h=function(f,w){var E;for((w=w||f.length)>f.length&&(w=f.length),E=w-1;0<=E&&(192&f[E])==128;)E--;return E<0||E===0?w:E+g[f[E]]>w?E:w}(d),a=d;h!==d.length&&(o.uint8array?(a=d.subarray(0,h),this.leftOver=d.subarray(h,d.length)):(a=d.slice(0,h),this.leftOver=d.slice(h,d.length))),this.push({data:y.utf8decode(a),meta:i.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:y.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},y.Utf8DecodeWorker=m,l.inherits(v,u),v.prototype.processChunk=function(i){this.push({data:y.utf8encode(i.data),meta:i.meta})},y.Utf8EncodeWorker=v},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,N,y){var l=p("./support"),o=p("./base64"),n=p("./nodejsUtils"),u=p("./external");function g(r){return r}function b(r,h){for(var a=0;a<r.length;++a)h[a]=255&r.charCodeAt(a);return h}p("setimmediate"),y.newBlob=function(r,h){y.checkSupport("blob");try{return new Blob([r],{type:h})}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(r),a.getBlob(h)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(r,h,a){var f=[],w=0,E=r.length;if(E<=a)return String.fromCharCode.apply(null,r);for(;w<E;)h==="array"||h==="nodebuffer"?f.push(String.fromCharCode.apply(null,r.slice(w,Math.min(w+a,E)))):f.push(String.fromCharCode.apply(null,r.subarray(w,Math.min(w+a,E)))),w+=a;return f.join("")},stringifyByChar:function(r){for(var h="",a=0;a<r.length;a++)h+=String.fromCharCode(r[a]);return h},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}}()}};function v(r){var h=65536,a=y.getTypeOf(r),f=!0;if(a==="uint8array"?f=m.applyCanBeUsed.uint8array:a==="nodebuffer"&&(f=m.applyCanBeUsed.nodebuffer),f)for(;1<h;)try{return m.stringifyByChunk(r,a,h)}catch{h=Math.floor(h/2)}return m.stringifyByChar(r)}function i(r,h){for(var a=0;a<r.length;a++)h[a]=r[a];return h}y.applyFromCharCode=v;var d={};d.string={string:g,array:function(r){return b(r,new Array(r.length))},arraybuffer:function(r){return d.string.uint8array(r).buffer},uint8array:function(r){return b(r,new Uint8Array(r.length))},nodebuffer:function(r){return b(r,n.allocBuffer(r.length))}},d.array={string:v,array:g,arraybuffer:function(r){return new Uint8Array(r).buffer},uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(r)}},d.arraybuffer={string:function(r){return v(new Uint8Array(r))},array:function(r){return i(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:g,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(new Uint8Array(r))}},d.uint8array={string:v,array:function(r){return i(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:g,nodebuffer:function(r){return n.newBufferFrom(r)}},d.nodebuffer={string:v,array:function(r){return i(r,new Array(r.length))},arraybuffer:function(r){return d.nodebuffer.uint8array(r).buffer},uint8array:function(r){return i(r,new Uint8Array(r.length))},nodebuffer:g},y.transformTo=function(r,h){if(h=h||"",!r)return h;y.checkSupport(r);var a=y.getTypeOf(h);return d[a][r](h)},y.resolve=function(r){for(var h=r.split("/"),a=[],f=0;f<h.length;f++){var w=h[f];w==="."||w===""&&f!==0&&f!==h.length-1||(w===".."?a.pop():a.push(w))}return a.join("/")},y.getTypeOf=function(r){return typeof r=="string"?"string":Object.prototype.toString.call(r)==="[object Array]"?"array":l.nodebuffer&&n.isBuffer(r)?"nodebuffer":l.uint8array&&r instanceof Uint8Array?"uint8array":l.arraybuffer&&r instanceof ArrayBuffer?"arraybuffer":void 0},y.checkSupport=function(r){if(!l[r.toLowerCase()])throw new Error(r+" is not supported by this platform")},y.MAX_VALUE_16BITS=65535,y.MAX_VALUE_32BITS=-1,y.pretty=function(r){var h,a,f="";for(a=0;a<(r||"").length;a++)f+="\\x"+((h=r.charCodeAt(a))<16?"0":"")+h.toString(16).toUpperCase();return f},y.delay=function(r,h,a){setImmediate(function(){r.apply(a||null,h||[])})},y.inherits=function(r,h){function a(){}a.prototype=h.prototype,r.prototype=new a},y.extend=function(){var r,h,a={};for(r=0;r<arguments.length;r++)for(h in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],h)&&a[h]===void 0&&(a[h]=arguments[r][h]);return a},y.prepareContent=function(r,h,a,f,w){return u.Promise.resolve(h).then(function(E){return l.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader<"u"?new u.Promise(function(x,L){var R=new FileReader;R.onload=function(Z){x(Z.target.result)},R.onerror=function(Z){L(Z.target.error)},R.readAsArrayBuffer(E)}):E}).then(function(E){var x=y.getTypeOf(E);return x?(x==="arraybuffer"?E=y.transformTo("uint8array",E):x==="string"&&(w?E=o.decode(E):a&&f!==!0&&(E=function(L){return b(L,l.uint8array?new Uint8Array(L.length):new Array(L.length))}(E))),E):u.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(p,N,y){var l=p("./reader/readerFor"),o=p("./utils"),n=p("./signature"),u=p("./zipEntry"),g=p("./support");function b(m){this.files=[],this.loadOptions=m}b.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var v=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(v)+", expected "+o.pretty(m)+")")}},isSignature:function(m,v){var i=this.reader.index;this.reader.setIndex(m);var d=this.reader.readString(4)===v;return this.reader.setIndex(i),d},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 m=this.reader.readData(this.zipCommentLength),v=g.uint8array?"uint8array":"array",i=o.transformTo(v,m);this.zipComment=this.loadOptions.decodeFileName(i)},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 m,v,i,d=this.zip64EndOfCentralSize-44;0<d;)m=this.reader.readInt(2),v=this.reader.readInt(4),i=this.reader.readData(v),this.zip64ExtensibleData[m]={id:m,length:v,value:i}},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 m,v;for(m=0;m<this.files.length;m++)v=this.files[m],this.reader.setIndex(v.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),v.readLocalPart(this.reader),v.handleUTF8(),v.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(m=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);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 m=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(m<0)throw this.isSignature(0,n.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(m);var v=m;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var d=v-i;if(0<d)this.isSignature(v,n.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(m){this.reader=l(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},N.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(p,N,y){var l=p("./reader/readerFor"),o=p("./utils"),n=p("./compressedObject"),u=p("./crc32"),g=p("./utf8"),b=p("./compressions"),m=p("./support");function v(i,d){this.options=i,this.loadOptions=d}v.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(i){var d,r;if(i.skip(22),this.fileNameLength=i.readInt(2),r=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=function(h){for(var a in b)if(Object.prototype.hasOwnProperty.call(b,a)&&b[a].magic===h)return b[a];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,d,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var d=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(d),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=l(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var d,r,h,a=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<a;)d=i.readInt(2),r=i.readInt(2),h=i.readData(r),this.extraFields[d]={id:d,length:r,value:h};i.setIndex(a)},handleUTF8:function(){var i=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var r=o.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var a=o.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var d=l(i.value);return d.readInt(1)!==1||u(this.fileName)!==d.readInt(4)?null:g.utf8decode(d.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var d=l(i.value);return d.readInt(1)!==1||u(this.fileComment)!==d.readInt(4)?null:g.utf8decode(d.readData(i.length-5))}return null}},N.exports=v},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,N,y){function l(d,r,h){this.name=d,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=r,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var o=p("./stream/StreamHelper"),n=p("./stream/DataWorker"),u=p("./utf8"),g=p("./compressedObject"),b=p("./stream/GenericWorker");l.prototype={internalStream:function(d){var r=null,h="string";try{if(!d)throw new Error("No output type specified.");var a=(h=d.toLowerCase())==="string"||h==="text";h!=="binarystring"&&h!=="text"||(h="string"),r=this._decompressWorker();var f=!this._dataBinary;f&&!a&&(r=r.pipe(new u.Utf8EncodeWorker)),!f&&a&&(r=r.pipe(new u.Utf8DecodeWorker))}catch(w){(r=new b("error")).error(w)}return new o(r,h,"")},async:function(d,r){return this.internalStream(d).accumulate(r)},nodeStream:function(d,r){return this.internalStream(d||"nodebuffer").toNodejsStream(r)},_compressWorker:function(d,r){if(this._data instanceof g&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var h=this._decompressWorker();return this._dataBinary||(h=h.pipe(new u.Utf8EncodeWorker)),g.createWorkerFrom(h,d,r)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof b?this._data:new n(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],v=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},i=0;i<m.length;i++)l.prototype[m[i]]=v;N.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(p,N,y){(function(l){var o,n,u=l.MutationObserver||l.WebKitMutationObserver;if(u){var g=0,b=new u(d),m=l.document.createTextNode("");b.observe(m,{characterData:!0}),o=function(){m.data=g=++g%2}}else if(l.setImmediate||l.MessageChannel===void 0)o="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var r=l.document.createElement("script");r.onreadystatechange=function(){d(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},l.document.documentElement.appendChild(r)}:function(){setTimeout(d,0)};else{var v=new l.MessageChannel;v.port1.onmessage=d,o=function(){v.port2.postMessage(0)}}var i=[];function d(){var r,h;n=!0;for(var a=i.length;a;){for(h=i,i=[],r=-1;++r<a;)h[r]();a=i.length}n=!1}N.exports=function(r){i.push(r)!==1||n||o()}}).call(this,typeof wt<"u"?wt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(p,N,y){var l=p("immediate");function o(){}var n={},u=["REJECTED"],g=["FULFILLED"],b=["PENDING"];function m(a){if(typeof a!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,a!==o&&r(this,a)}function v(a,f,w){this.promise=a,typeof f=="function"&&(this.onFulfilled=f,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function i(a,f,w){l(function(){var E;try{E=f(w)}catch(x){return n.reject(a,x)}E===a?n.reject(a,new TypeError("Cannot resolve promise with itself")):n.resolve(a,E)})}function d(a){var f=a&&a.then;if(a&&(typeof a=="object"||typeof a=="function")&&typeof f=="function")return function(){f.apply(a,arguments)}}function r(a,f){var w=!1;function E(R){w||(w=!0,n.reject(a,R))}function x(R){w||(w=!0,n.resolve(a,R))}var L=h(function(){f(x,E)});L.status==="error"&&E(L.value)}function h(a,f){var w={};try{w.value=a(f),w.status="success"}catch(E){w.status="error",w.value=E}return w}(N.exports=m).prototype.finally=function(a){if(typeof a!="function")return this;var f=this.constructor;return this.then(function(w){return f.resolve(a()).then(function(){return w})},function(w){return f.resolve(a()).then(function(){throw w})})},m.prototype.catch=function(a){return this.then(null,a)},m.prototype.then=function(a,f){if(typeof a!="function"&&this.state===g||typeof f!="function"&&this.state===u)return this;var w=new this.constructor(o);return this.state!==b?i(w,this.state===g?a:f,this.outcome):this.queue.push(new v(w,a,f)),w},v.prototype.callFulfilled=function(a){n.resolve(this.promise,a)},v.prototype.otherCallFulfilled=function(a){i(this.promise,this.onFulfilled,a)},v.prototype.callRejected=function(a){n.reject(this.promise,a)},v.prototype.otherCallRejected=function(a){i(this.promise,this.onRejected,a)},n.resolve=function(a,f){var w=h(d,f);if(w.status==="error")return n.reject(a,w.value);var E=w.value;if(E)r(a,E);else{a.state=g,a.outcome=f;for(var x=-1,L=a.queue.length;++x<L;)a.queue[x].callFulfilled(f)}return a},n.reject=function(a,f){a.state=u,a.outcome=f;for(var w=-1,E=a.queue.length;++w<E;)a.queue[w].callRejected(f);return a},m.resolve=function(a){return a instanceof this?a:n.resolve(new this(o),a)},m.reject=function(a){var f=new this(o);return n.reject(f,a)},m.all=function(a){var f=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=a.length,E=!1;if(!w)return this.resolve([]);for(var x=new Array(w),L=0,R=-1,Z=new this(o);++R<w;)O(a[R],R);return Z;function O(H,J){f.resolve(H).then(function(_){x[J]=_,++L!==w||E||(E=!0,n.resolve(Z,x))},function(_){E||(E=!0,n.reject(Z,_))})}},m.race=function(a){var f=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=a.length,E=!1;if(!w)return this.resolve([]);for(var x=-1,L=new this(o);++x<w;)R=a[x],f.resolve(R).then(function(Z){E||(E=!0,n.resolve(L,Z))},function(Z){E||(E=!0,n.reject(L,Z))});var R;return L}},{immediate:36}],38:[function(p,N,y){var l={};(0,p("./lib/utils/common").assign)(l,p("./lib/deflate"),p("./lib/inflate"),p("./lib/zlib/constants")),N.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(p,N,y){var l=p("./zlib/deflate"),o=p("./utils/common"),n=p("./utils/strings"),u=p("./zlib/messages"),g=p("./zlib/zstream"),b=Object.prototype.toString,m=0,v=-1,i=0,d=8;function r(a){if(!(this instanceof r))return new r(a);this.options=o.assign({level:v,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:i,to:""},a||{});var f=this.options;f.raw&&0<f.windowBits?f.windowBits=-f.windowBits:f.gzip&&0<f.windowBits&&f.windowBits<16&&(f.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var w=l.deflateInit2(this.strm,f.level,f.method,f.windowBits,f.memLevel,f.strategy);if(w!==m)throw new Error(u[w]);if(f.header&&l.deflateSetHeader(this.strm,f.header),f.dictionary){var E;if(E=typeof f.dictionary=="string"?n.string2buf(f.dictionary):b.call(f.dictionary)==="[object ArrayBuffer]"?new Uint8Array(f.dictionary):f.dictionary,(w=l.deflateSetDictionary(this.strm,E))!==m)throw new Error(u[w]);this._dict_set=!0}}function h(a,f){var w=new r(f);if(w.push(a,!0),w.err)throw w.msg||u[w.err];return w.result}r.prototype.push=function(a,f){var w,E,x=this.strm,L=this.options.chunkSize;if(this.ended)return!1;E=f===~~f?f:f===!0?4:0,typeof a=="string"?x.input=n.string2buf(a):b.call(a)==="[object ArrayBuffer]"?x.input=new Uint8Array(a):x.input=a,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(L),x.next_out=0,x.avail_out=L),(w=l.deflate(x,E))!==1&&w!==m)return this.onEnd(w),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(o.shrinkBuf(x.output,x.next_out))):this.onData(o.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&w!==1);return E===4?(w=l.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===m):E!==2||(this.onEnd(m),!(x.avail_out=0))},r.prototype.onData=function(a){this.chunks.push(a)},r.prototype.onEnd=function(a){a===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},y.Deflate=r,y.deflate=h,y.deflateRaw=function(a,f){return(f=f||{}).raw=!0,h(a,f)},y.gzip=function(a,f){return(f=f||{}).gzip=!0,h(a,f)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(p,N,y){var l=p("./zlib/inflate"),o=p("./utils/common"),n=p("./utils/strings"),u=p("./zlib/constants"),g=p("./zlib/messages"),b=p("./zlib/zstream"),m=p("./zlib/gzheader"),v=Object.prototype.toString;function i(r){if(!(this instanceof i))return new i(r);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},r||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||r&&r.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&!(15&h.windowBits)&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var a=l.inflateInit2(this.strm,h.windowBits);if(a!==u.Z_OK)throw new Error(g[a]);this.header=new m,l.inflateGetHeader(this.strm,this.header)}function d(r,h){var a=new i(h);if(a.push(r,!0),a.err)throw a.msg||g[a.err];return a.result}i.prototype.push=function(r,h){var a,f,w,E,x,L,R=this.strm,Z=this.options.chunkSize,O=this.options.dictionary,H=!1;if(this.ended)return!1;f=h===~~h?h:h===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof r=="string"?R.input=n.binstring2buf(r):v.call(r)==="[object ArrayBuffer]"?R.input=new Uint8Array(r):R.input=r,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new o.Buf8(Z),R.next_out=0,R.avail_out=Z),(a=l.inflate(R,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&O&&(L=typeof O=="string"?n.string2buf(O):v.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,a=l.inflateSetDictionary(this.strm,L)),a===u.Z_BUF_ERROR&&H===!0&&(a=u.Z_OK,H=!1),a!==u.Z_STREAM_END&&a!==u.Z_OK)return this.onEnd(a),!(this.ended=!0);R.next_out&&(R.avail_out!==0&&a!==u.Z_STREAM_END&&(R.avail_in!==0||f!==u.Z_FINISH&&f!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=n.utf8border(R.output,R.next_out),E=R.next_out-w,x=n.buf2string(R.output,w),R.next_out=E,R.avail_out=Z-E,E&&o.arraySet(R.output,R.output,w,E,0),this.onData(x)):this.onData(o.shrinkBuf(R.output,R.next_out)))),R.avail_in===0&&R.avail_out===0&&(H=!0)}while((0<R.avail_in||R.avail_out===0)&&a!==u.Z_STREAM_END);return a===u.Z_STREAM_END&&(f=u.Z_FINISH),f===u.Z_FINISH?(a=l.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===u.Z_OK):f!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(R.avail_out=0))},i.prototype.onData=function(r){this.chunks.push(r)},i.prototype.onEnd=function(r){r===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg},y.Inflate=i,y.inflate=d,y.inflateRaw=function(r,h){return(h=h||{}).raw=!0,d(r,h)},y.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(p,N,y){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";y.assign=function(u){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var b=g.shift();if(b){if(typeof b!="object")throw new TypeError(b+"must be non-object");for(var m in b)b.hasOwnProperty(m)&&(u[m]=b[m])}}return u},y.shrinkBuf=function(u,g){return u.length===g?u:u.subarray?u.subarray(0,g):(u.length=g,u)};var o={arraySet:function(u,g,b,m,v){if(g.subarray&&u.subarray)u.set(g.subarray(b,b+m),v);else for(var i=0;i<m;i++)u[v+i]=g[b+i]},flattenChunks:function(u){var g,b,m,v,i,d;for(g=m=0,b=u.length;g<b;g++)m+=u[g].length;for(d=new Uint8Array(m),g=v=0,b=u.length;g<b;g++)i=u[g],d.set(i,v),v+=i.length;return d}},n={arraySet:function(u,g,b,m,v){for(var i=0;i<m;i++)u[v+i]=g[b+i]},flattenChunks:function(u){return[].concat.apply([],u)}};y.setTyped=function(u){u?(y.Buf8=Uint8Array,y.Buf16=Uint16Array,y.Buf32=Int32Array,y.assign(y,o)):(y.Buf8=Array,y.Buf16=Array,y.Buf32=Array,y.assign(y,n))},y.setTyped(l)},{}],42:[function(p,N,y){var l=p("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var u=new l.Buf8(256),g=0;g<256;g++)u[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function b(m,v){if(v<65537&&(m.subarray&&n||!m.subarray&&o))return String.fromCharCode.apply(null,l.shrinkBuf(m,v));for(var i="",d=0;d<v;d++)i+=String.fromCharCode(m[d]);return i}u[254]=u[254]=1,y.string2buf=function(m){var v,i,d,r,h,a=m.length,f=0;for(r=0;r<a;r++)(64512&(i=m.charCodeAt(r)))==55296&&r+1<a&&(64512&(d=m.charCodeAt(r+1)))==56320&&(i=65536+(i-55296<<10)+(d-56320),r++),f+=i<128?1:i<2048?2:i<65536?3:4;for(v=new l.Buf8(f),r=h=0;h<f;r++)(64512&(i=m.charCodeAt(r)))==55296&&r+1<a&&(64512&(d=m.charCodeAt(r+1)))==56320&&(i=65536+(i-55296<<10)+(d-56320),r++),i<128?v[h++]=i:(i<2048?v[h++]=192|i>>>6:(i<65536?v[h++]=224|i>>>12:(v[h++]=240|i>>>18,v[h++]=128|i>>>12&63),v[h++]=128|i>>>6&63),v[h++]=128|63&i);return v},y.buf2binstring=function(m){return b(m,m.length)},y.binstring2buf=function(m){for(var v=new l.Buf8(m.length),i=0,d=v.length;i<d;i++)v[i]=m.charCodeAt(i);return v},y.buf2string=function(m,v){var i,d,r,h,a=v||m.length,f=new Array(2*a);for(i=d=0;i<a;)if((r=m[i++])<128)f[d++]=r;else if(4<(h=u[r]))f[d++]=65533,i+=h-1;else{for(r&=h===2?31:h===3?15:7;1<h&&i<a;)r=r<<6|63&m[i++],h--;1<h?f[d++]=65533:r<65536?f[d++]=r:(r-=65536,f[d++]=55296|r>>10&1023,f[d++]=56320|1023&r)}return b(f,d)},y.utf8border=function(m,v){var i;for((v=v||m.length)>m.length&&(v=m.length),i=v-1;0<=i&&(192&m[i])==128;)i--;return i<0||i===0?v:i+u[m[i]]>v?i:v}},{"./common":41}],43:[function(p,N,y){N.exports=function(l,o,n,u){for(var g=65535&l|0,b=l>>>16&65535|0,m=0;n!==0;){for(n-=m=2e3<n?2e3:n;b=b+(g=g+o[u++]|0)|0,--m;);g%=65521,b%=65521}return g|b<<16|0}},{}],44:[function(p,N,y){N.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(p,N,y){var l=function(){for(var o,n=[],u=0;u<256;u++){o=u;for(var g=0;g<8;g++)o=1&o?3988292384^o>>>1:o>>>1;n[u]=o}return n}();N.exports=function(o,n,u,g){var b=l,m=g+u;o^=-1;for(var v=g;v<m;v++)o=o>>>8^b[255&(o^n[v])];return-1^o}},{}],46:[function(p,N,y){var l,o=p("../utils/common"),n=p("./trees"),u=p("./adler32"),g=p("./crc32"),b=p("./messages"),m=0,v=4,i=0,d=-2,r=-1,h=4,a=2,f=8,w=9,E=286,x=30,L=19,R=2*E+1,Z=15,O=3,H=258,J=H+O+1,_=42,T=113,e=1,F=2,rt=3,j=4;function Q(t,D){return t.msg=b[D],D}function W(t){return(t<<1)-(4<t?9:0)}function tt(t){for(var D=t.length;0<=--D;)t[D]=0}function z(t){var D=t.state,B=D.pending;B>t.avail_out&&(B=t.avail_out),B!==0&&(o.arraySet(t.output,D.pending_buf,D.pending_out,B,t.next_out),t.next_out+=B,D.pending_out+=B,t.total_out+=B,t.avail_out-=B,D.pending-=B,D.pending===0&&(D.pending_out=0))}function C(t,D){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,D),t.block_start=t.strstart,z(t.strm)}function Y(t,D){t.pending_buf[t.pending++]=D}function I(t,D){t.pending_buf[t.pending++]=D>>>8&255,t.pending_buf[t.pending++]=255&D}function A(t,D){var B,c,s=t.max_chain_length,k=t.strstart,U=t.prev_length,P=t.nice_match,S=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,M=t.window,q=t.w_mask,$=t.prev,X=t.strstart+H,st=M[k+U-1],nt=M[k+U];t.prev_length>=t.good_match&&(s>>=2),P>t.lookahead&&(P=t.lookahead);do if(M[(B=D)+U]===nt&&M[B+U-1]===st&&M[B]===M[k]&&M[++B]===M[k+1]){k+=2,B++;do;while(M[++k]===M[++B]&&M[++k]===M[++B]&&M[++k]===M[++B]&&M[++k]===M[++B]&&M[++k]===M[++B]&&M[++k]===M[++B]&&M[++k]===M[++B]&&M[++k]===M[++B]&&k<X);if(c=H-(X-k),k=X-H,U<c){if(t.match_start=D,P<=(U=c))break;st=M[k+U-1],nt=M[k+U]}}while((D=$[D&q])>S&&--s!=0);return U<=t.lookahead?U:t.lookahead}function V(t){var D,B,c,s,k,U,P,S,M,q,$=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=$+($-J)){for(o.arraySet(t.window,t.window,$,$,0),t.match_start-=$,t.strstart-=$,t.block_start-=$,D=B=t.hash_size;c=t.head[--D],t.head[D]=$<=c?c-$:0,--B;);for(D=B=$;c=t.prev[--D],t.prev[D]=$<=c?c-$:0,--B;);s+=$}if(t.strm.avail_in===0)break;if(U=t.strm,P=t.window,S=t.strstart+t.lookahead,M=s,q=void 0,q=U.avail_in,M<q&&(q=M),B=q===0?0:(U.avail_in-=q,o.arraySet(P,U.input,U.next_in,q,S),U.state.wrap===1?U.adler=u(U.adler,P,q,S):U.state.wrap===2&&(U.adler=g(U.adler,P,q,S)),U.next_in+=q,U.total_in+=q,q),t.lookahead+=B,t.lookahead+t.insert>=O)for(k=t.strstart-t.insert,t.ins_h=t.window[k],t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+O-1])&t.hash_mask,t.prev[k&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=k,k++,t.insert--,!(t.lookahead+t.insert<O)););}while(t.lookahead<J&&t.strm.avail_in!==0)}function G(t,D){for(var B,c;;){if(t.lookahead<J){if(V(t),t.lookahead<J&&D===m)return e;if(t.lookahead===0)break}if(B=0,t.lookahead>=O&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,B=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),B!==0&&t.strstart-B<=t.w_size-J&&(t.match_length=A(t,B)),t.match_length>=O)if(c=n._tr_tally(t,t.strstart-t.match_start,t.match_length-O),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=O){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,B=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else c=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(c&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=t.strstart<O-1?t.strstart:O-1,D===v?(C(t,!0),t.strm.avail_out===0?rt:j):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?e:F}function K(t,D){for(var B,c,s;;){if(t.lookahead<J){if(V(t),t.lookahead<J&&D===m)return e;if(t.lookahead===0)break}if(B=0,t.lookahead>=O&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,B=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=O-1,B!==0&&t.prev_length<t.max_lazy_match&&t.strstart-B<=t.w_size-J&&(t.match_length=A(t,B),t.match_length<=5&&(t.strategy===1||t.match_length===O&&4096<t.strstart-t.match_start)&&(t.match_length=O-1)),t.prev_length>=O&&t.match_length<=t.prev_length){for(s=t.strstart+t.lookahead-O,c=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-O),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=s&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,B=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=O-1,t.strstart++,c&&(C(t,!1),t.strm.avail_out===0))return e}else if(t.match_available){if((c=n._tr_tally(t,0,t.window[t.strstart-1]))&&C(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return e}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(c=n._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<O-1?t.strstart:O-1,D===v?(C(t,!0),t.strm.avail_out===0?rt:j):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?e:F}function et(t,D,B,c,s){this.good_length=t,this.max_lazy=D,this.nice_length=B,this.max_chain=c,this.func=s}function it(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=f,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*R),this.dyn_dtree=new o.Buf16(2*(2*x+1)),this.bl_tree=new o.Buf16(2*(2*L+1)),tt(this.dyn_ltree),tt(this.dyn_dtree),tt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(Z+1),this.heap=new o.Buf16(2*E+1),tt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*E+1),tt(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 at(t){var D;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=a,(D=t.state).pending=0,D.pending_out=0,D.wrap<0&&(D.wrap=-D.wrap),D.status=D.wrap?_:T,t.adler=D.wrap===2?0:1,D.last_flush=m,n._tr_init(D),i):Q(t,d)}function ht(t){var D=at(t);return D===i&&function(B){B.window_size=2*B.w_size,tt(B.head),B.max_lazy_match=l[B.level].max_lazy,B.good_match=l[B.level].good_length,B.nice_match=l[B.level].nice_length,B.max_chain_length=l[B.level].max_chain,B.strstart=0,B.block_start=0,B.lookahead=0,B.insert=0,B.match_length=B.prev_length=O-1,B.match_available=0,B.ins_h=0}(t.state),D}function ut(t,D,B,c,s,k){if(!t)return d;var U=1;if(D===r&&(D=6),c<0?(U=0,c=-c):15<c&&(U=2,c-=16),s<1||w<s||B!==f||c<8||15<c||D<0||9<D||k<0||h<k)return Q(t,d);c===8&&(c=9);var P=new it;return(t.state=P).strm=t,P.wrap=U,P.gzhead=null,P.w_bits=c,P.w_size=1<<P.w_bits,P.w_mask=P.w_size-1,P.hash_bits=s+7,P.hash_size=1<<P.hash_bits,P.hash_mask=P.hash_size-1,P.hash_shift=~~((P.hash_bits+O-1)/O),P.window=new o.Buf8(2*P.w_size),P.head=new o.Buf16(P.hash_size),P.prev=new o.Buf16(P.w_size),P.lit_bufsize=1<<s+6,P.pending_buf_size=4*P.lit_bufsize,P.pending_buf=new o.Buf8(P.pending_buf_size),P.d_buf=1*P.lit_bufsize,P.l_buf=3*P.lit_bufsize,P.level=D,P.strategy=k,P.method=B,ht(t)}l=[new et(0,0,0,0,function(t,D){var B=65535;for(B>t.pending_buf_size-5&&(B=t.pending_buf_size-5);;){if(t.lookahead<=1){if(V(t),t.lookahead===0&&D===m)return e;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var c=t.block_start+B;if((t.strstart===0||t.strstart>=c)&&(t.lookahead=t.strstart-c,t.strstart=c,C(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-J&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=0,D===v?(C(t,!0),t.strm.avail_out===0?rt:j):(t.strstart>t.block_start&&(C(t,!1),t.strm.avail_out),e)}),new et(4,4,8,4,G),new et(4,5,16,8,G),new et(4,6,32,32,G),new et(4,4,16,16,K),new et(8,16,32,32,K),new et(8,16,128,128,K),new et(8,32,128,256,K),new et(32,128,258,1024,K),new et(32,258,258,4096,K)],y.deflateInit=function(t,D){return ut(t,D,f,15,8,0)},y.deflateInit2=ut,y.deflateReset=ht,y.deflateResetKeep=at,y.deflateSetHeader=function(t,D){return t&&t.state?t.state.wrap!==2?d:(t.state.gzhead=D,i):d},y.deflate=function(t,D){var B,c,s,k;if(!t||!t.state||5<D||D<0)return t?Q(t,d):d;if(c=t.state,!t.output||!t.input&&t.avail_in!==0||c.status===666&&D!==v)return Q(t,t.avail_out===0?-5:d);if(c.strm=t,B=c.last_flush,c.last_flush=D,c.status===_)if(c.wrap===2)t.adler=0,Y(c,31),Y(c,139),Y(c,8),c.gzhead?(Y(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),Y(c,255&c.gzhead.time),Y(c,c.gzhead.time>>8&255),Y(c,c.gzhead.time>>16&255),Y(c,c.gzhead.time>>24&255),Y(c,c.level===9?2:2<=c.strategy||c.level<2?4:0),Y(c,255&c.gzhead.os),c.gzhead.extra&&c.gzhead.extra.length&&(Y(c,255&c.gzhead.extra.length),Y(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(t.adler=g(t.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=69):(Y(c,0),Y(c,0),Y(c,0),Y(c,0),Y(c,0),Y(c,c.level===9?2:2<=c.strategy||c.level<2?4:0),Y(c,3),c.status=T);else{var U=f+(c.w_bits-8<<4)<<8;U|=(2<=c.strategy||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6,c.strstart!==0&&(U|=32),U+=31-U%31,c.status=T,I(c,U),c.strstart!==0&&(I(c,t.adler>>>16),I(c,65535&t.adler)),t.adler=1}if(c.status===69)if(c.gzhead.extra){for(s=c.pending;c.gzindex<(65535&c.gzhead.extra.length)&&(c.pending!==c.pending_buf_size||(c.gzhead.hcrc&&c.pending>s&&(t.adler=g(t.adler,c.pending_buf,c.pending-s,s)),z(t),s=c.pending,c.pending!==c.pending_buf_size));)Y(c,255&c.gzhead.extra[c.gzindex]),c.gzindex++;c.gzhead.hcrc&&c.pending>s&&(t.adler=g(t.adler,c.pending_buf,c.pending-s,s)),c.gzindex===c.gzhead.extra.length&&(c.gzindex=0,c.status=73)}else c.status=73;if(c.status===73)if(c.gzhead.name){s=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>s&&(t.adler=g(t.adler,c.pending_buf,c.pending-s,s)),z(t),s=c.pending,c.pending===c.pending_buf_size)){k=1;break}k=c.gzindex<c.gzhead.name.length?255&c.gzhead.name.charCodeAt(c.gzindex++):0,Y(c,k)}while(k!==0);c.gzhead.hcrc&&c.pending>s&&(t.adler=g(t.adler,c.pending_buf,c.pending-s,s)),k===0&&(c.gzindex=0,c.status=91)}else c.status=91;if(c.status===91)if(c.gzhead.comment){s=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>s&&(t.adler=g(t.adler,c.pending_buf,c.pending-s,s)),z(t),s=c.pending,c.pending===c.pending_buf_size)){k=1;break}k=c.gzindex<c.gzhead.comment.length?255&c.gzhead.comment.charCodeAt(c.gzindex++):0,Y(c,k)}while(k!==0);c.gzhead.hcrc&&c.pending>s&&(t.adler=g(t.adler,c.pending_buf,c.pending-s,s)),k===0&&(c.status=103)}else c.status=103;if(c.status===103&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&z(t),c.pending+2<=c.pending_buf_size&&(Y(c,255&t.adler),Y(c,t.adler>>8&255),t.adler=0,c.status=T)):c.status=T),c.pending!==0){if(z(t),t.avail_out===0)return c.last_flush=-1,i}else if(t.avail_in===0&&W(D)<=W(B)&&D!==v)return Q(t,-5);if(c.status===666&&t.avail_in!==0)return Q(t,-5);if(t.avail_in!==0||c.lookahead!==0||D!==m&&c.status!==666){var P=c.strategy===2?function(S,M){for(var q;;){if(S.lookahead===0&&(V(S),S.lookahead===0)){if(M===m)return e;break}if(S.match_length=0,q=n._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++,q&&(C(S,!1),S.strm.avail_out===0))return e}return S.insert=0,M===v?(C(S,!0),S.strm.avail_out===0?rt:j):S.last_lit&&(C(S,!1),S.strm.avail_out===0)?e:F}(c,D):c.strategy===3?function(S,M){for(var q,$,X,st,nt=S.window;;){if(S.lookahead<=H){if(V(S),S.lookahead<=H&&M===m)return e;if(S.lookahead===0)break}if(S.match_length=0,S.lookahead>=O&&0<S.strstart&&($=nt[X=S.strstart-1])===nt[++X]&&$===nt[++X]&&$===nt[++X]){st=S.strstart+H;do;while($===nt[++X]&&$===nt[++X]&&$===nt[++X]&&$===nt[++X]&&$===nt[++X]&&$===nt[++X]&&$===nt[++X]&&$===nt[++X]&&X<st);S.match_length=H-(st-X),S.match_length>S.lookahead&&(S.match_length=S.lookahead)}if(S.match_length>=O?(q=n._tr_tally(S,1,S.match_length-O),S.lookahead-=S.match_length,S.strstart+=S.match_length,S.match_length=0):(q=n._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++),q&&(C(S,!1),S.strm.avail_out===0))return e}return S.insert=0,M===v?(C(S,!0),S.strm.avail_out===0?rt:j):S.last_lit&&(C(S,!1),S.strm.avail_out===0)?e:F}(c,D):l[c.level].func(c,D);if(P!==rt&&P!==j||(c.status=666),P===e||P===rt)return t.avail_out===0&&(c.last_flush=-1),i;if(P===F&&(D===1?n._tr_align(c):D!==5&&(n._tr_stored_block(c,0,0,!1),D===3&&(tt(c.head),c.lookahead===0&&(c.strstart=0,c.block_start=0,c.insert=0))),z(t),t.avail_out===0))return c.last_flush=-1,i}return D!==v?i:c.wrap<=0?1:(c.wrap===2?(Y(c,255&t.adler),Y(c,t.adler>>8&255),Y(c,t.adler>>16&255),Y(c,t.adler>>24&255),Y(c,255&t.total_in),Y(c,t.total_in>>8&255),Y(c,t.total_in>>16&255),Y(c,t.total_in>>24&255)):(I(c,t.adler>>>16),I(c,65535&t.adler)),z(t),0<c.wrap&&(c.wrap=-c.wrap),c.pending!==0?i:1)},y.deflateEnd=function(t){var D;return t&&t.state?(D=t.state.status)!==_&&D!==69&&D!==73&&D!==91&&D!==103&&D!==T&&D!==666?Q(t,d):(t.state=null,D===T?Q(t,-3):i):d},y.deflateSetDictionary=function(t,D){var B,c,s,k,U,P,S,M,q=D.length;if(!t||!t.state||(k=(B=t.state).wrap)===2||k===1&&B.status!==_||B.lookahead)return d;for(k===1&&(t.adler=u(t.adler,D,q,0)),B.wrap=0,q>=B.w_size&&(k===0&&(tt(B.head),B.strstart=0,B.block_start=0,B.insert=0),M=new o.Buf8(B.w_size),o.arraySet(M,D,q-B.w_size,B.w_size,0),D=M,q=B.w_size),U=t.avail_in,P=t.next_in,S=t.input,t.avail_in=q,t.next_in=0,t.input=D,V(B);B.lookahead>=O;){for(c=B.strstart,s=B.lookahead-(O-1);B.ins_h=(B.ins_h<<B.hash_shift^B.window[c+O-1])&B.hash_mask,B.prev[c&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=c,c++,--s;);B.strstart=c,B.lookahead=O-1,V(B)}return B.strstart+=B.lookahead,B.block_start=B.strstart,B.insert=B.lookahead,B.lookahead=0,B.match_length=B.prev_length=O-1,B.match_available=0,t.next_in=P,t.input=S,t.avail_in=U,B.wrap=k,i},y.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(p,N,y){N.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(p,N,y){N.exports=function(l,o){var n,u,g,b,m,v,i,d,r,h,a,f,w,E,x,L,R,Z,O,H,J,_,T,e,F;n=l.state,u=l.next_in,e=l.input,g=u+(l.avail_in-5),b=l.next_out,F=l.output,m=b-(o-l.avail_out),v=b+(l.avail_out-257),i=n.dmax,d=n.wsize,r=n.whave,h=n.wnext,a=n.window,f=n.hold,w=n.bits,E=n.lencode,x=n.distcode,L=(1<<n.lenbits)-1,R=(1<<n.distbits)-1;t:do{w<15&&(f+=e[u++]<<w,w+=8,f+=e[u++]<<w,w+=8),Z=E[f&L];e:for(;;){if(f>>>=O=Z>>>24,w-=O,(O=Z>>>16&255)===0)F[b++]=65535&Z;else{if(!(16&O)){if(!(64&O)){Z=E[(65535&Z)+(f&(1<<O)-1)];continue e}if(32&O){n.mode=12;break t}l.msg="invalid literal/length code",n.mode=30;break t}H=65535&Z,(O&=15)&&(w<O&&(f+=e[u++]<<w,w+=8),H+=f&(1<<O)-1,f>>>=O,w-=O),w<15&&(f+=e[u++]<<w,w+=8,f+=e[u++]<<w,w+=8),Z=x[f&R];r:for(;;){if(f>>>=O=Z>>>24,w-=O,!(16&(O=Z>>>16&255))){if(!(64&O)){Z=x[(65535&Z)+(f&(1<<O)-1)];continue r}l.msg="invalid distance code",n.mode=30;break t}if(J=65535&Z,w<(O&=15)&&(f+=e[u++]<<w,(w+=8)<O&&(f+=e[u++]<<w,w+=8)),i<(J+=f&(1<<O)-1)){l.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=O,w-=O,(O=b-m)<J){if(r<(O=J-O)&&n.sane){l.msg="invalid distance too far back",n.mode=30;break t}if(T=a,(_=0)===h){if(_+=d-O,O<H){for(H-=O;F[b++]=a[_++],--O;);_=b-J,T=F}}else if(h<O){if(_+=d+h-O,(O-=h)<H){for(H-=O;F[b++]=a[_++],--O;);if(_=0,h<H){for(H-=O=h;F[b++]=a[_++],--O;);_=b-J,T=F}}}else if(_+=h-O,O<H){for(H-=O;F[b++]=a[_++],--O;);_=b-J,T=F}for(;2<H;)F[b++]=T[_++],F[b++]=T[_++],F[b++]=T[_++],H-=3;H&&(F[b++]=T[_++],1<H&&(F[b++]=T[_++]))}else{for(_=b-J;F[b++]=F[_++],F[b++]=F[_++],F[b++]=F[_++],2<(H-=3););H&&(F[b++]=F[_++],1<H&&(F[b++]=F[_++]))}break}}break}}while(u<g&&b<v);u-=H=w>>3,f&=(1<<(w-=H<<3))-1,l.next_in=u,l.next_out=b,l.avail_in=u<g?g-u+5:5-(u-g),l.avail_out=b<v?v-b+257:257-(b-v),n.hold=f,n.bits=w}},{}],49:[function(p,N,y){var l=p("../utils/common"),o=p("./adler32"),n=p("./crc32"),u=p("./inffast"),g=p("./inftrees"),b=1,m=2,v=0,i=-2,d=1,r=852,h=592;function a(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function f(){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 l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(_){var T;return _&&_.state?(T=_.state,_.total_in=_.total_out=T.total=0,_.msg="",T.wrap&&(_.adler=1&T.wrap),T.mode=d,T.last=0,T.havedict=0,T.dmax=32768,T.head=null,T.hold=0,T.bits=0,T.lencode=T.lendyn=new l.Buf32(r),T.distcode=T.distdyn=new l.Buf32(h),T.sane=1,T.back=-1,v):i}function E(_){var T;return _&&_.state?((T=_.state).wsize=0,T.whave=0,T.wnext=0,w(_)):i}function x(_,T){var e,F;return _&&_.state?(F=_.state,T<0?(e=0,T=-T):(e=1+(T>>4),T<48&&(T&=15)),T&&(T<8||15<T)?i:(F.window!==null&&F.wbits!==T&&(F.window=null),F.wrap=e,F.wbits=T,E(_))):i}function L(_,T){var e,F;return _?(F=new f,(_.state=F).window=null,(e=x(_,T))!==v&&(_.state=null),e):i}var R,Z,O=!0;function H(_){if(O){var T;for(R=new l.Buf32(512),Z=new l.Buf32(32),T=0;T<144;)_.lens[T++]=8;for(;T<256;)_.lens[T++]=9;for(;T<280;)_.lens[T++]=7;for(;T<288;)_.lens[T++]=8;for(g(b,_.lens,0,288,R,0,_.work,{bits:9}),T=0;T<32;)_.lens[T++]=5;g(m,_.lens,0,32,Z,0,_.work,{bits:5}),O=!1}_.lencode=R,_.lenbits=9,_.distcode=Z,_.distbits=5}function J(_,T,e,F){var rt,j=_.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new l.Buf8(j.wsize)),F>=j.wsize?(l.arraySet(j.window,T,e-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(F<(rt=j.wsize-j.wnext)&&(rt=F),l.arraySet(j.window,T,e-F,rt,j.wnext),(F-=rt)?(l.arraySet(j.window,T,e-F,F,0),j.wnext=F,j.whave=j.wsize):(j.wnext+=rt,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=rt))),0}y.inflateReset=E,y.inflateReset2=x,y.inflateResetKeep=w,y.inflateInit=function(_){return L(_,15)},y.inflateInit2=L,y.inflate=function(_,T){var e,F,rt,j,Q,W,tt,z,C,Y,I,A,V,G,K,et,it,at,ht,ut,t,D,B,c,s=0,k=new l.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return i;(e=_.state).mode===12&&(e.mode=13),Q=_.next_out,rt=_.output,tt=_.avail_out,j=_.next_in,F=_.input,W=_.avail_in,z=e.hold,C=e.bits,Y=W,I=tt,D=v;t:for(;;)switch(e.mode){case d:if(e.wrap===0){e.mode=13;break}for(;C<16;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if(2&e.wrap&&z===35615){k[e.check=0]=255&z,k[1]=z>>>8&255,e.check=n(e.check,k,2,0),C=z=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&z)<<8)+(z>>8))%31){_.msg="incorrect header check",e.mode=30;break}if((15&z)!=8){_.msg="unknown compression method",e.mode=30;break}if(C-=4,t=8+(15&(z>>>=4)),e.wbits===0)e.wbits=t;else if(t>e.wbits){_.msg="invalid window size",e.mode=30;break}e.dmax=1<<t,_.adler=e.check=1,e.mode=512&z?10:12,C=z=0;break;case 2:for(;C<16;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if(e.flags=z,(255&e.flags)!=8){_.msg="unknown compression method",e.mode=30;break}if(57344&e.flags){_.msg="unknown header flags set",e.mode=30;break}e.head&&(e.head.text=z>>8&1),512&e.flags&&(k[0]=255&z,k[1]=z>>>8&255,e.check=n(e.check,k,2,0)),C=z=0,e.mode=3;case 3:for(;C<32;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}e.head&&(e.head.time=z),512&e.flags&&(k[0]=255&z,k[1]=z>>>8&255,k[2]=z>>>16&255,k[3]=z>>>24&255,e.check=n(e.check,k,4,0)),C=z=0,e.mode=4;case 4:for(;C<16;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}e.head&&(e.head.xflags=255&z,e.head.os=z>>8),512&e.flags&&(k[0]=255&z,k[1]=z>>>8&255,e.check=n(e.check,k,2,0)),C=z=0,e.mode=5;case 5:if(1024&e.flags){for(;C<16;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}e.length=z,e.head&&(e.head.extra_len=z),512&e.flags&&(k[0]=255&z,k[1]=z>>>8&255,e.check=n(e.check,k,2,0)),C=z=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&(W<(A=e.length)&&(A=W),A&&(e.head&&(t=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),l.arraySet(e.head.extra,F,j,A,t)),512&e.flags&&(e.check=n(e.check,F,A,j)),W-=A,j+=A,e.length-=A),e.length))break t;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(W===0)break t;for(A=0;t=F[j+A++],e.head&&t&&e.length<65536&&(e.head.name+=String.fromCharCode(t)),t&&A<W;);if(512&e.flags&&(e.check=n(e.check,F,A,j)),W-=A,j+=A,t)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=8;case 8:if(4096&e.flags){if(W===0)break t;for(A=0;t=F[j+A++],e.head&&t&&e.length<65536&&(e.head.comment+=String.fromCharCode(t)),t&&A<W;);if(512&e.flags&&(e.check=n(e.check,F,A,j)),W-=A,j+=A,t)break t}else e.head&&(e.head.comment=null);e.mode=9;case 9:if(512&e.flags){for(;C<16;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if(z!==(65535&e.check)){_.msg="header crc mismatch",e.mode=30;break}C=z=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),_.adler=e.check=0,e.mode=12;break;case 10:for(;C<32;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}_.adler=e.check=a(z),C=z=0,e.mode=11;case 11:if(e.havedict===0)return _.next_out=Q,_.avail_out=tt,_.next_in=j,_.avail_in=W,e.hold=z,e.bits=C,2;_.adler=e.check=1,e.mode=12;case 12:if(T===5||T===6)break t;case 13:if(e.last){z>>>=7&C,C-=7&C,e.mode=27;break}for(;C<3;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}switch(e.last=1&z,C-=1,3&(z>>>=1)){case 0:e.mode=14;break;case 1:if(H(e),e.mode=20,T!==6)break;z>>>=2,C-=2;break t;case 2:e.mode=17;break;case 3:_.msg="invalid block type",e.mode=30}z>>>=2,C-=2;break;case 14:for(z>>>=7&C,C-=7&C;C<32;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if((65535&z)!=(z>>>16^65535)){_.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&z,C=z=0,e.mode=15,T===6)break t;case 15:e.mode=16;case 16:if(A=e.length){if(W<A&&(A=W),tt<A&&(A=tt),A===0)break t;l.arraySet(rt,F,j,A,Q),W-=A,j+=A,tt-=A,Q+=A,e.length-=A;break}e.mode=12;break;case 17:for(;C<14;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if(e.nlen=257+(31&z),z>>>=5,C-=5,e.ndist=1+(31&z),z>>>=5,C-=5,e.ncode=4+(15&z),z>>>=4,C-=4,286<e.nlen||30<e.ndist){_.msg="too many length or distance symbols",e.mode=30;break}e.have=0,e.mode=18;case 18:for(;e.have<e.ncode;){for(;C<3;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}e.lens[U[e.have++]]=7&z,z>>>=3,C-=3}for(;e.have<19;)e.lens[U[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,B={bits:e.lenbits},D=g(0,e.lens,0,19,e.lencode,0,e.work,B),e.lenbits=B.bits,D){_.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have<e.nlen+e.ndist;){for(;et=(s=e.lencode[z&(1<<e.lenbits)-1])>>>16&255,it=65535&s,!((K=s>>>24)<=C);){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if(it<16)z>>>=K,C-=K,e.lens[e.have++]=it;else{if(it===16){for(c=K+2;C<c;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if(z>>>=K,C-=K,e.have===0){_.msg="invalid bit length repeat",e.mode=30;break}t=e.lens[e.have-1],A=3+(3&z),z>>>=2,C-=2}else if(it===17){for(c=K+3;C<c;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}C-=K,t=0,A=3+(7&(z>>>=K)),z>>>=3,C-=3}else{for(c=K+7;C<c;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}C-=K,t=0,A=11+(127&(z>>>=K)),z>>>=7,C-=7}if(e.have+A>e.nlen+e.ndist){_.msg="invalid bit length repeat",e.mode=30;break}for(;A--;)e.lens[e.have++]=t}}if(e.mode===30)break;if(e.lens[256]===0){_.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,B={bits:e.lenbits},D=g(b,e.lens,0,e.nlen,e.lencode,0,e.work,B),e.lenbits=B.bits,D){_.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,B={bits:e.distbits},D=g(m,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,B),e.distbits=B.bits,D){_.msg="invalid distances set",e.mode=30;break}if(e.mode=20,T===6)break t;case 20:e.mode=21;case 21:if(6<=W&&258<=tt){_.next_out=Q,_.avail_out=tt,_.next_in=j,_.avail_in=W,e.hold=z,e.bits=C,u(_,I),Q=_.next_out,rt=_.output,tt=_.avail_out,j=_.next_in,F=_.input,W=_.avail_in,z=e.hold,C=e.bits,e.mode===12&&(e.back=-1);break}for(e.back=0;et=(s=e.lencode[z&(1<<e.lenbits)-1])>>>16&255,it=65535&s,!((K=s>>>24)<=C);){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if(et&&!(240&et)){for(at=K,ht=et,ut=it;et=(s=e.lencode[ut+((z&(1<<at+ht)-1)>>at)])>>>16&255,it=65535&s,!(at+(K=s>>>24)<=C);){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}z>>>=at,C-=at,e.back+=at}if(z>>>=K,C-=K,e.back+=K,e.length=it,et===0){e.mode=26;break}if(32&et){e.back=-1,e.mode=12;break}if(64&et){_.msg="invalid literal/length code",e.mode=30;break}e.extra=15&et,e.mode=22;case 22:if(e.extra){for(c=e.extra;C<c;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}e.length+=z&(1<<e.extra)-1,z>>>=e.extra,C-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;et=(s=e.distcode[z&(1<<e.distbits)-1])>>>16&255,it=65535&s,!((K=s>>>24)<=C);){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if(!(240&et)){for(at=K,ht=et,ut=it;et=(s=e.distcode[ut+((z&(1<<at+ht)-1)>>at)])>>>16&255,it=65535&s,!(at+(K=s>>>24)<=C);){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}z>>>=at,C-=at,e.back+=at}if(z>>>=K,C-=K,e.back+=K,64&et){_.msg="invalid distance code",e.mode=30;break}e.offset=it,e.extra=15&et,e.mode=24;case 24:if(e.extra){for(c=e.extra;C<c;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}e.offset+=z&(1<<e.extra)-1,z>>>=e.extra,C-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){_.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(tt===0)break t;if(A=I-tt,e.offset>A){if((A=e.offset-A)>e.whave&&e.sane){_.msg="invalid distance too far back",e.mode=30;break}V=A>e.wnext?(A-=e.wnext,e.wsize-A):e.wnext-A,A>e.length&&(A=e.length),G=e.window}else G=rt,V=Q-e.offset,A=e.length;for(tt<A&&(A=tt),tt-=A,e.length-=A;rt[Q++]=G[V++],--A;);e.length===0&&(e.mode=21);break;case 26:if(tt===0)break t;rt[Q++]=e.length,tt--,e.mode=21;break;case 27:if(e.wrap){for(;C<32;){if(W===0)break t;W--,z|=F[j++]<<C,C+=8}if(I-=tt,_.total_out+=I,e.total+=I,I&&(_.adler=e.check=e.flags?n(e.check,rt,I,Q-I):o(e.check,rt,I,Q-I)),I=tt,(e.flags?z:a(z))!==e.check){_.msg="incorrect data check",e.mode=30;break}C=z=0}e.mode=28;case 28:if(e.wrap&&e.flags){for(;C<32;){if(W===0)break t;W--,z+=F[j++]<<C,C+=8}if(z!==(4294967295&e.total)){_.msg="incorrect length check",e.mode=30;break}C=z=0}e.mode=29;case 29:D=1;break t;case 30:D=-3;break t;case 31:return-4;case 32:default:return i}return _.next_out=Q,_.avail_out=tt,_.next_in=j,_.avail_in=W,e.hold=z,e.bits=C,(e.wsize||I!==_.avail_out&&e.mode<30&&(e.mode<27||T!==4))&&J(_,_.output,_.next_out,I-_.avail_out)?(e.mode=31,-4):(Y-=_.avail_in,I-=_.avail_out,_.total_in+=Y,_.total_out+=I,e.total+=I,e.wrap&&I&&(_.adler=e.check=e.flags?n(e.check,rt,I,_.next_out-I):o(e.check,rt,I,_.next_out-I)),_.data_type=e.bits+(e.last?64:0)+(e.mode===12?128:0)+(e.mode===20||e.mode===15?256:0),(Y==0&&I===0||T===4)&&D===v&&(D=-5),D)},y.inflateEnd=function(_){if(!_||!_.state)return i;var T=_.state;return T.window&&(T.window=null),_.state=null,v},y.inflateGetHeader=function(_,T){var e;return _&&_.state&&2&(e=_.state).wrap?((e.head=T).done=!1,v):i},y.inflateSetDictionary=function(_,T){var e,F=T.length;return _&&_.state?(e=_.state).wrap!==0&&e.mode!==11?i:e.mode===11&&o(1,T,F,0)!==e.check?-3:J(_,T,F,F)?(e.mode=31,-4):(e.havedict=1,v):i},y.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(p,N,y){var l=p("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[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];N.exports=function(b,m,v,i,d,r,h,a){var f,w,E,x,L,R,Z,O,H,J=a.bits,_=0,T=0,e=0,F=0,rt=0,j=0,Q=0,W=0,tt=0,z=0,C=null,Y=0,I=new l.Buf16(16),A=new l.Buf16(16),V=null,G=0;for(_=0;_<=15;_++)I[_]=0;for(T=0;T<i;T++)I[m[v+T]]++;for(rt=J,F=15;1<=F&&I[F]===0;F--);if(F<rt&&(rt=F),F===0)return d[r++]=20971520,d[r++]=20971520,a.bits=1,0;for(e=1;e<F&&I[e]===0;e++);for(rt<e&&(rt=e),_=W=1;_<=15;_++)if(W<<=1,(W-=I[_])<0)return-1;if(0<W&&(b===0||F!==1))return-1;for(A[1]=0,_=1;_<15;_++)A[_+1]=A[_]+I[_];for(T=0;T<i;T++)m[v+T]!==0&&(h[A[m[v+T]]++]=T);if(R=b===0?(C=V=h,19):b===1?(C=o,Y-=257,V=n,G-=257,256):(C=u,V=g,-1),_=e,L=r,Q=T=z=0,E=-1,x=(tt=1<<(j=rt))-1,b===1&&852<tt||b===2&&592<tt)return 1;for(;;){for(Z=_-Q,H=h[T]<R?(O=0,h[T]):h[T]>R?(O=V[G+h[T]],C[Y+h[T]]):(O=96,0),f=1<<_-Q,e=w=1<<j;d[L+(z>>Q)+(w-=f)]=Z<<24|O<<16|H|0,w!==0;);for(f=1<<_-1;z&f;)f>>=1;if(f!==0?(z&=f-1,z+=f):z=0,T++,--I[_]==0){if(_===F)break;_=m[v+h[T]]}if(rt<_&&(z&x)!==E){for(Q===0&&(Q=rt),L+=e,W=1<<(j=_-Q);j+Q<F&&!((W-=I[j+Q])<=0);)j++,W<<=1;if(tt+=1<<j,b===1&&852<tt||b===2&&592<tt)return 1;d[E=z&x]=rt<<24|j<<16|L-r|0}}return z!==0&&(d[L+z]=_-Q<<24|64<<16|0),a.bits=rt,0}},{"../utils/common":41}],51:[function(p,N,y){N.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(p,N,y){var l=p("../utils/common"),o=0,n=1;function u(s){for(var k=s.length;0<=--k;)s[k]=0}var g=0,b=29,m=256,v=m+1+b,i=30,d=19,r=2*v+1,h=15,a=16,f=7,w=256,E=16,x=17,L=18,R=[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],Z=[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],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J=new Array(2*(v+2));u(J);var _=new Array(2*i);u(_);var T=new Array(512);u(T);var e=new Array(256);u(e);var F=new Array(b);u(F);var rt,j,Q,W=new Array(i);function tt(s,k,U,P,S){this.static_tree=s,this.extra_bits=k,this.extra_base=U,this.elems=P,this.max_length=S,this.has_stree=s&&s.length}function z(s,k){this.dyn_tree=s,this.max_code=0,this.stat_desc=k}function C(s){return s<256?T[s]:T[256+(s>>>7)]}function Y(s,k){s.pending_buf[s.pending++]=255&k,s.pending_buf[s.pending++]=k>>>8&255}function I(s,k,U){s.bi_valid>a-U?(s.bi_buf|=k<<s.bi_valid&65535,Y(s,s.bi_buf),s.bi_buf=k>>a-s.bi_valid,s.bi_valid+=U-a):(s.bi_buf|=k<<s.bi_valid&65535,s.bi_valid+=U)}function A(s,k,U){I(s,U[2*k],U[2*k+1])}function V(s,k){for(var U=0;U|=1&s,s>>>=1,U<<=1,0<--k;);return U>>>1}function G(s,k,U){var P,S,M=new Array(h+1),q=0;for(P=1;P<=h;P++)M[P]=q=q+U[P-1]<<1;for(S=0;S<=k;S++){var $=s[2*S+1];$!==0&&(s[2*S]=V(M[$]++,$))}}function K(s){var k;for(k=0;k<v;k++)s.dyn_ltree[2*k]=0;for(k=0;k<i;k++)s.dyn_dtree[2*k]=0;for(k=0;k<d;k++)s.bl_tree[2*k]=0;s.dyn_ltree[2*w]=1,s.opt_len=s.static_len=0,s.last_lit=s.matches=0}function et(s){8<s.bi_valid?Y(s,s.bi_buf):0<s.bi_valid&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0}function it(s,k,U,P){var S=2*k,M=2*U;return s[S]<s[M]||s[S]===s[M]&&P[k]<=P[U]}function at(s,k,U){for(var P=s.heap[U],S=U<<1;S<=s.heap_len&&(S<s.heap_len&&it(k,s.heap[S+1],s.heap[S],s.depth)&&S++,!it(k,P,s.heap[S],s.depth));)s.heap[U]=s.heap[S],U=S,S<<=1;s.heap[U]=P}function ht(s,k,U){var P,S,M,q,$=0;if(s.last_lit!==0)for(;P=s.pending_buf[s.d_buf+2*$]<<8|s.pending_buf[s.d_buf+2*$+1],S=s.pending_buf[s.l_buf+$],$++,P===0?A(s,S,k):(A(s,(M=e[S])+m+1,k),(q=R[M])!==0&&I(s,S-=F[M],q),A(s,M=C(--P),U),(q=Z[M])!==0&&I(s,P-=W[M],q)),$<s.last_lit;);A(s,w,k)}function ut(s,k){var U,P,S,M=k.dyn_tree,q=k.stat_desc.static_tree,$=k.stat_desc.has_stree,X=k.stat_desc.elems,st=-1;for(s.heap_len=0,s.heap_max=r,U=0;U<X;U++)M[2*U]!==0?(s.heap[++s.heap_len]=st=U,s.depth[U]=0):M[2*U+1]=0;for(;s.heap_len<2;)M[2*(S=s.heap[++s.heap_len]=st<2?++st:0)]=1,s.depth[S]=0,s.opt_len--,$&&(s.static_len-=q[2*S+1]);for(k.max_code=st,U=s.heap_len>>1;1<=U;U--)at(s,M,U);for(S=X;U=s.heap[1],s.heap[1]=s.heap[s.heap_len--],at(s,M,1),P=s.heap[1],s.heap[--s.heap_max]=U,s.heap[--s.heap_max]=P,M[2*S]=M[2*U]+M[2*P],s.depth[S]=(s.depth[U]>=s.depth[P]?s.depth[U]:s.depth[P])+1,M[2*U+1]=M[2*P+1]=S,s.heap[1]=S++,at(s,M,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(nt,dt){var mt,ft,_t,lt,vt,kt,pt=dt.dyn_tree,xt=dt.max_code,zt=dt.stat_desc.static_tree,At=dt.stat_desc.has_stree,It=dt.stat_desc.extra_bits,Et=dt.stat_desc.extra_base,gt=dt.stat_desc.max_length,bt=0;for(lt=0;lt<=h;lt++)nt.bl_count[lt]=0;for(pt[2*nt.heap[nt.heap_max]+1]=0,mt=nt.heap_max+1;mt<r;mt++)gt<(lt=pt[2*pt[2*(ft=nt.heap[mt])+1]+1]+1)&&(lt=gt,bt++),pt[2*ft+1]=lt,xt<ft||(nt.bl_count[lt]++,vt=0,Et<=ft&&(vt=It[ft-Et]),kt=pt[2*ft],nt.opt_len+=kt*(lt+vt),At&&(nt.static_len+=kt*(zt[2*ft+1]+vt)));if(bt!==0){do{for(lt=gt-1;nt.bl_count[lt]===0;)lt--;nt.bl_count[lt]--,nt.bl_count[lt+1]+=2,nt.bl_count[gt]--,bt-=2}while(0<bt);for(lt=gt;lt!==0;lt--)for(ft=nt.bl_count[lt];ft!==0;)xt<(_t=nt.heap[--mt])||(pt[2*_t+1]!==lt&&(nt.opt_len+=(lt-pt[2*_t+1])*pt[2*_t],pt[2*_t+1]=lt),ft--)}}(s,k),G(M,st,s.bl_count)}function t(s,k,U){var P,S,M=-1,q=k[1],$=0,X=7,st=4;for(q===0&&(X=138,st=3),k[2*(U+1)+1]=65535,P=0;P<=U;P++)S=q,q=k[2*(P+1)+1],++$<X&&S===q||($<st?s.bl_tree[2*S]+=$:S!==0?(S!==M&&s.bl_tree[2*S]++,s.bl_tree[2*E]++):$<=10?s.bl_tree[2*x]++:s.bl_tree[2*L]++,M=S,st=($=0)===q?(X=138,3):S===q?(X=6,3):(X=7,4))}function D(s,k,U){var P,S,M=-1,q=k[1],$=0,X=7,st=4;for(q===0&&(X=138,st=3),P=0;P<=U;P++)if(S=q,q=k[2*(P+1)+1],!(++$<X&&S===q)){if($<st)for(;A(s,S,s.bl_tree),--$!=0;);else S!==0?(S!==M&&(A(s,S,s.bl_tree),$--),A(s,E,s.bl_tree),I(s,$-3,2)):$<=10?(A(s,x,s.bl_tree),I(s,$-3,3)):(A(s,L,s.bl_tree),I(s,$-11,7));M=S,st=($=0)===q?(X=138,3):S===q?(X=6,3):(X=7,4)}}u(W);var B=!1;function c(s,k,U,P){I(s,(g<<1)+(P?1:0),3),function(S,M,q,$){et(S),$&&(Y(S,q),Y(S,~q)),l.arraySet(S.pending_buf,S.window,M,q,S.pending),S.pending+=q}(s,k,U,!0)}y._tr_init=function(s){B||(function(){var k,U,P,S,M,q=new Array(h+1);for(S=P=0;S<b-1;S++)for(F[S]=P,k=0;k<1<<R[S];k++)e[P++]=S;for(e[P-1]=S,S=M=0;S<16;S++)for(W[S]=M,k=0;k<1<<Z[S];k++)T[M++]=S;for(M>>=7;S<i;S++)for(W[S]=M<<7,k=0;k<1<<Z[S]-7;k++)T[256+M++]=S;for(U=0;U<=h;U++)q[U]=0;for(k=0;k<=143;)J[2*k+1]=8,k++,q[8]++;for(;k<=255;)J[2*k+1]=9,k++,q[9]++;for(;k<=279;)J[2*k+1]=7,k++,q[7]++;for(;k<=287;)J[2*k+1]=8,k++,q[8]++;for(G(J,v+1,q),k=0;k<i;k++)_[2*k+1]=5,_[2*k]=V(k,5);rt=new tt(J,R,m+1,v,h),j=new tt(_,Z,0,i,h),Q=new tt(new Array(0),O,0,d,f)}(),B=!0),s.l_desc=new z(s.dyn_ltree,rt),s.d_desc=new z(s.dyn_dtree,j),s.bl_desc=new z(s.bl_tree,Q),s.bi_buf=0,s.bi_valid=0,K(s)},y._tr_stored_block=c,y._tr_flush_block=function(s,k,U,P){var S,M,q=0;0<s.level?(s.strm.data_type===2&&(s.strm.data_type=function($){var X,st=4093624447;for(X=0;X<=31;X++,st>>>=1)if(1&st&&$.dyn_ltree[2*X]!==0)return o;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return n;for(X=32;X<m;X++)if($.dyn_ltree[2*X]!==0)return n;return o}(s)),ut(s,s.l_desc),ut(s,s.d_desc),q=function($){var X;for(t($,$.dyn_ltree,$.l_desc.max_code),t($,$.dyn_dtree,$.d_desc.max_code),ut($,$.bl_desc),X=d-1;3<=X&&$.bl_tree[2*H[X]+1]===0;X--);return $.opt_len+=3*(X+1)+5+5+4,X}(s),S=s.opt_len+3+7>>>3,(M=s.static_len+3+7>>>3)<=S&&(S=M)):S=M=U+5,U+4<=S&&k!==-1?c(s,k,U,P):s.strategy===4||M===S?(I(s,2+(P?1:0),3),ht(s,J,_)):(I(s,4+(P?1:0),3),function($,X,st,nt){var dt;for(I($,X-257,5),I($,st-1,5),I($,nt-4,4),dt=0;dt<nt;dt++)I($,$.bl_tree[2*H[dt]+1],3);D($,$.dyn_ltree,X-1),D($,$.dyn_dtree,st-1)}(s,s.l_desc.max_code+1,s.d_desc.max_code+1,q+1),ht(s,s.dyn_ltree,s.dyn_dtree)),K(s),P&&et(s)},y._tr_tally=function(s,k,U){return s.pending_buf[s.d_buf+2*s.last_lit]=k>>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&k,s.pending_buf[s.l_buf+s.last_lit]=255&U,s.last_lit++,k===0?s.dyn_ltree[2*U]++:(s.matches++,k--,s.dyn_ltree[2*(e[U]+m+1)]++,s.dyn_dtree[2*C(k)]++),s.last_lit===s.lit_bufsize-1},y._tr_align=function(s){I(s,2,3),A(s,w,J),function(k){k.bi_valid===16?(Y(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(p,N,y){N.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(p,N,y){(function(l){(function(o,n){if(!o.setImmediate){var u,g,b,m,v=1,i={},d=!1,r=o.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(o);h=h&&h.setTimeout?h:o,u={}.toString.call(o.process)==="[object process]"?function(E){process.nextTick(function(){f(E)})}:function(){if(o.postMessage&&!o.importScripts){var E=!0,x=o.onmessage;return o.onmessage=function(){E=!1},o.postMessage("","*"),o.onmessage=x,E}}()?(m="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),function(E){o.postMessage(m+E,"*")}):o.MessageChannel?((b=new MessageChannel).port1.onmessage=function(E){f(E.data)},function(E){b.port2.postMessage(E)}):r&&"onreadystatechange"in r.createElement("script")?(g=r.documentElement,function(E){var x=r.createElement("script");x.onreadystatechange=function(){f(E),x.onreadystatechange=null,g.removeChild(x),x=null},g.appendChild(x)}):function(E){setTimeout(f,0,E)},h.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var x=new Array(arguments.length-1),L=0;L<x.length;L++)x[L]=arguments[L+1];var R={callback:E,args:x};return i[v]=R,u(v),v++},h.clearImmediate=a}function a(E){delete i[E]}function f(E){if(d)setTimeout(f,0,E);else{var x=i[E];if(x){d=!0;try{(function(L){var R=L.callback,Z=L.args;switch(Z.length){case 0:R();break;case 1:R(Z[0]);break;case 2:R(Z[0],Z[1]);break;case 3:R(Z[0],Z[1],Z[2]);break;default:R.apply(n,Z)}})(x)}finally{a(E),d=!1}}}}function w(E){E.source===o&&typeof E.data=="string"&&E.data.indexOf(m)===0&&f(+E.data.slice(m.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof wt<"u"?wt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Ct);var Ot=Ct.exports;const St=Bt(Ot);class Rt{data;constructor(){this.data={},document.cookie.split(";").forEach(ot=>{const p=ot.split("="),N=p[0].replace(/\s/g,""),y=p[1];this.data[N]=y})}set(ot,p){document.cookie=`${ot}=${p}`}get(ot){return this.data[ot]}delete(ot){const p=this.get(ot);p&&(document.cookie=`${ot}=${p}; max-age=0`)}}window.addEventListener("load",async()=>{const ct=new Rt;let ot=[],p=[],N=80,y=!1,l=!1;const o=document.getElementById("dropArea"),n=document.getElementById("fileInput"),u=document.getElementById("filePickerBtn"),g=document.getElementById("quality"),b=document.getElementById("qualityValue"),m=document.getElementById("filesGrid"),v=document.getElementById("downloadAllBtn"),i=document.getElementById("emptyState"),d=document.getElementById("previewModal"),r=document.getElementById("previewImgWrap"),h=document.getElementById("jsSaveCookieBtn"),a=document.getElementById("jsClearAllBtn"),f=ct.get("webp-quality");f&&(g.value=f,N=Number(f),b.textContent=`${f}%`),h.addEventListener("click",I=>{ct.set("webp-quality",g.value),alert("🙆‍♀️ Cookieに設定内容を保存しました。")}),d.addEventListener("click",I=>{d.setAttribute("data-show","0"),r.innerHTML=""});function w(){const I=new Date,A=ht=>String(ht).padStart(2,"0"),V=String(I.getFullYear()).slice(-2),G=A(I.getMonth()+1),K=A(I.getDate()),et=A(I.getHours()),it=A(I.getMinutes()),at=A(I.getSeconds());return`${V}${G}${K}-${et}${it}${at}`}function E(I){y=I,o.classList.toggle("is-dragging",y)}function x(I){const A=100-ot.length,G=Array.from(I).slice(0,Math.max(A,0)).filter(K=>!ot.some(et=>et.name===K.name&&et.size===K.size));ot=[...ot,...G].slice(0,100)}function L(I){if(I&&I.startsWith("blob:"))try{URL.revokeObjectURL(I)}catch{}}function R(I){const A=p[I];L(A?.previewUrl),ot=ot.filter((V,G)=>G!==I),p=p.filter((V,G)=>G!==I),Q()}function Z(I){N=I,b.textContent=`${I}%`}function O(){return`
      <svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
        <path fill-rule="evenodd"
          d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
          clip-rule="evenodd"></path>
      </svg>
    `}function H(){return`
      <svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
        <path fill-rule="evenodd"
          d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
          clip-rule="evenodd"></path>
      </svg>
    `}function J(){return`
      <svg class="spin" viewBox="0 0 24 24" fill="none" aria-hidden="true">
        <circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" opacity=".25"></circle>
        <path fill="currentColor" opacity=".75"
          d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
      </svg>
    `}function _(){return`
      <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
        <path d="M3 21V15H5V17.6L8.1 14.5L9.5 15.9L6.4 19H9V21H3ZM15 21V19H17.6L14.5 15.9L15.9 14.5L19 17.6V15H21V21H15ZM8.1 9.5L5 6.4V9H3V3H9V5H6.4L9.5 8.1L8.1 9.5ZM15.9 9.5L14.5 8.1L17.6 5H15V3H21V9H19V6.4L15.9 9.5ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14Z" fill="#E3E3E3"/>
      </svg>
    `}function T(I){const A=I.length,V=I.endsWith("==")?2:I.endsWith("=")?1:0;return Math.floor(A*3/4)-V}function e(I){if(!Number.isFinite(I)||I<0)return"-";const A=["B","KB","MB","GB"];let V=0,G=I;for(;G>=1024&&V<A.length-1;)G/=1024,V++;return`${G.toFixed(V===0?0:1)} ${A[V]}`}function F(I,A){if(!I||!A)return"";const V=I-A,G=V/I*100;return`${V>=0?"-":"+"}${Math.abs(G).toFixed(0)}%`}function rt(I,A){return new Promise((V,G)=>{const K=new FileReader;K.onload=et=>{const it=new Image;it.onload=()=>{const at=document.createElement("canvas");at.width=it.width,at.height=it.height,at.getContext("2d").drawImage(it,0,0);try{const ut=at.toDataURL("image/webp",A/100),t=ut.split(",")[1]||"",D=T(t);V({dataUrl:ut,bytes:D})}catch(ut){G(new Error("WebP変換に失敗しました: "+ut.message))}},it.onerror=()=>G(new Error("画像の読み込みに失敗しました。")),it.src=et.target.result},K.onerror=()=>G(new Error("ファイルの読み込みに失敗しました。")),K.readAsDataURL(I)})}async function j(){if(ot.length===0){p.forEach(A=>L(A?.previewUrl)),p=[],Q();return}const I=ot.map(async(A,V)=>{const G=p[V];if(G&&G.originalFile===A&&G.webpDataUrl)return G;const K={originalFile:A,webpDataUrl:null,fileName:A.name.split(".").slice(0,-1).join(".")+".webp",status:"変換中",error:null,quality:N,originalBytes:A.size,webpBytes:null,previewUrl:URL.createObjectURL(A)};p[V]=K,Q();try{const{dataUrl:et,bytes:it}=await rt(A,N);return L(K.previewUrl),{...K,webpDataUrl:et,webpBytes:it,previewUrl:et,status:"完了",error:null}}catch(et){return{...K,webpDataUrl:null,webpBytes:null,status:"エラー",error:et.message||String(et)}}});p=await Promise.all(I),Q()}function Q(){i.classList.toggle("uHidden",ot.length>0),m.innerHTML=ot.map((A,V)=>{const G=p[V],K=A.name.split(".").pop().toLowerCase(),et=G?.fileName??A.name.replace(/\.\w+$/,"")+".webp",it=(()=>!G||G.status==="変換中"?`<div class="status status-wait">${J()} 変換中...</div>`:G.status==="完了"?`<div class="status status-ok">${O()} 変換完了</div>`:G.status==="エラー"?`<div class="status status-err">${H()} ${C(G.error||"")}</div>`:"")(),at=G&&G.status==="完了"&&Number.isFinite(G.originalBytes)&&Number.isFinite(G.webpBytes)?`<div class="card-size">
                <div class="card-before">
                  <p>${K}</p>
                  <p>${e(G.originalBytes)}</p>
                </div>
                <div class="card-arrow">▶︎</div>
                <div class="card-after">
                  <p>webp</p>
                  <p>${e(G.webpBytes)}</p>
                </div>
                <div class="card-compress">
                  ${F(G.originalBytes,G.webpBytes)}
                </div>
              </div>`:"",ht=G?.previewUrl?`<div class="card-imgWrap js-img-scale" data-src="${G.previewUrl}">
              <img class="card-img" src="${G.previewUrl}" alt="${Y(et)}" loading="lazy" decoding="async" />
              <div class="card-imgScale">${_()}</div>
            </div>`:"";return`
        <div class="card" data-index="${V}">
          <button class="icon-btn js-remove" title="ファイルを削除" aria-label="ファイルを削除">
            <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                d="M6 18L18 6M6 6l12 12"></path>
            </svg>
          </button>

          ${it}
          <p class="card-title">${C(et)}</p>
          ${at}
          ${ht}

          ${G&&G.status==="完了"&&G.webpDataUrl?`
            <button class="btn js-download" data-href="${G.webpDataUrl}" data-name="${Y(et)}">
              📥 ダウンロードする
            </button>
          `:""}
        </div>
      `}).join(""),m.querySelectorAll(".js-remove").forEach(A=>{A.addEventListener("click",V=>{const G=V.currentTarget.closest(".card"),K=Number(G?.dataset.index||-1);K>=0&&R(K)})}),m.querySelectorAll(".js-download").forEach(A=>{A.addEventListener("click",V=>{const G=V.currentTarget.getAttribute("data-href"),K=V.currentTarget.getAttribute("data-name")||"converted.webp";G&&W(G,K)})}),m.querySelectorAll(".js-img-scale").forEach(A=>{A.addEventListener("click",V=>{V.currentTarget.getAttribute("data-src")&&(d.setAttribute("data-show","1"),r.innerHTML=`<img src="${A.getAttribute("data-src")}" />`)})});const I=p.length>0&&p.every(A=>A?.status==="完了");v.disabled=!I||l,v.textContent=l?"ZIP作成中...":"📥 全てZIPでダウンロードする",a.disabled=!I||l}function W(I,A){const V=document.createElement("a");V.href=I,V.download=A,document.body.appendChild(V),V.click(),document.body.removeChild(V)}async function tt(){if(l)return;if(l=!0,Q(),typeof St>"u"){l=!1,Q();return}const I=new St;let A=!1;for(const V of p)if(V?.status==="完了"&&V.webpDataUrl){const G=V.webpDataUrl.split(",")[1];G?I.file(V.fileName,G,{base64:!0}):A=!0}else V?.status==="エラー"&&(A=!0);try{const V=await I.generateAsync({type:"blob"}),G=document.createElement("a");G.href=URL.createObjectURL(V),G.download=`img2webp-${w()}.zip`,document.body.appendChild(G),G.click(),document.body.removeChild(G),URL.revokeObjectURL(G.href)}catch{}finally{l=!1,Q()}}u.addEventListener("click",()=>n.click()),o.addEventListener("click",I=>{I.target!==n&&n.click()}),["dragenter","dragover"].forEach(I=>{o.addEventListener(I,A=>{A.preventDefault(),A.stopPropagation(),E(!0)})}),["dragleave","dragend","drop"].forEach(I=>{o.addEventListener(I,A=>{A.preventDefault(),A.stopPropagation(),E(!1)})}),o.addEventListener("drop",I=>{const A=I.dataTransfer?.files||[],V=Array.from(A).filter(G=>G.type.startsWith("image/"));x(V),j()}),n.addEventListener("change",I=>{const A=Array.from(I.target.files||[]).filter(V=>V.type.startsWith("image/"));x(A),n.value="",j()}),g.addEventListener("input",I=>{const A=Number(I.target.value||80);Z(A)}),v.addEventListener("click",tt),Z(N),Q();function z(){p.forEach(I=>L(I?.previewUrl)),ot=[],p=[],n.value="",Q()}a.addEventListener("click",()=>{ot.length===0&&p.length===0||confirm("🧐 全て削除しますか？")&&z()});function C(I){return String(I).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function Y(I){return C(I).replaceAll(`
`," ")}window.addEventListener("beforeunload",()=>{p.forEach(I=>L(I?.previewUrl))})});
