slog-cdn
Version:
2 lines • 450 kB
JavaScript
/*! xlsx.js@0.15.1 (C) 2013-present SheetJS -- http://sheetjs.com */
var XLSX=function(){function t(){return function e(n,a,s){function l(r,t){if(!a[r]){if(!n[r]){let e="function"==typeof require&&require;if(!t&&e)return e(r,!0);if(i)return i(r,!0);throw new Error("Cannot find module '"+r+"'")}t=a[r]={exports:{}};n[r][0].call(t.exports,function(e){var t=n[r][1][e];return l(t||e)},t,t.exports,e,n,a,s)}return a[r].exports}let i="function"==typeof require&&require;for(let e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t,r){"use strict";let u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e,t){let r="",n,a,s,l,i,o,c,f=0;for(;f<e.length;)n=e.charCodeAt(f++),a=e.charCodeAt(f++),s=e.charCodeAt(f++),l=n>>2,i=(3&n)<<4|a>>4,o=(15&a)<<2|s>>6,c=63&s,isNaN(a)?o=c=64:isNaN(s)&&(c=64),r=r+u.charAt(l)+u.charAt(i)+u.charAt(o)+u.charAt(c);return r},r.decode=function(e,t){let r="";var n,a,s,l,i,o;let c=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<e.length;)s=u.indexOf(e.charAt(c++)),n=(15&(l=u.indexOf(e.charAt(c++))))<<4|(i=u.indexOf(e.charAt(c++)))>>2,a=(3&i)<<6|(o=u.indexOf(e.charAt(c++))),r+=String.fromCharCode(s<<2|l>>4),64!=i&&(r+=String.fromCharCode(n)),64!=o&&(r+=String.fromCharCode(a));return r}},{}],2:[function(e,t,r){"use strict";function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=n},{}],3:[function(e,t,r){"use strict";r.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},r.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,t,r){"use strict";let i=e("./utils"),o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(r,n){if(void 0===r||!r.length)return 0;var a="string"!==i.getTypeOf(r);void 0===n&&(n=0);let s=0;var l;n^=-1;for(let e=0,t=r.length;e<t;e++)l=255&(n^(a?r[e]:r.charCodeAt(e))),n=n>>>8^(s=o[l]);return-1^n}},{"./utils":21}],5:[function(e,t,r){"use strict";let n=e("./utils");function a(e){this.data=null,this.length=0,this.index=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){let t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=a},{"./utils":21}],6:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!1,r.date=null,r.compression=null,r.comment=null},{}],7:[function(e,t,r){"use strict";let n=e("./utils");r.string2binary=function(e){return n.string2binary(e)},r.string2Uint8Array=function(e){return n.transformTo("uint8array",e)},r.uint8Array2String=function(e){return n.transformTo("string",e)},r.string2Blob=function(e){e=n.transformTo("arraybuffer",e);return n.arrayBuffer2Blob(e)},r.arrayBuffer2Blob=function(e){return n.arrayBuffer2Blob(e)},r.transformTo=function(e,t){return n.transformTo(e,t)},r.getTypeOf=function(e){return n.getTypeOf(e)},r.checkSupport=function(e){return n.checkSupport(e)},r.MAX_VALUE_16BITS=n.MAX_VALUE_16BITS,r.MAX_VALUE_32BITS=n.MAX_VALUE_32BITS,r.pretty=function(e){return n.pretty(e)},r.findCompression=function(e){return n.findCompression(e)},r.isRegExp=function(e){return n.isRegExp(e)}},{"./utils":21}],8:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;let a=e("pako");r.uncompressInputType=n?"uint8array":"array",r.compressInputType=n?"uint8array":"array",r.magic="\b\0",r.compress=function(e){return a.deflateRaw(e)},r.uncompress=function(e){return a.inflateRaw(e)}},{pako:24}],9:[function(e,t,r){"use strict";let n=e("./base64");function a(e,t){if(!(this instanceof a))return new a(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){let e=new a;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(a.prototype=e("./object")).load=e("./load"),a.support=e("./support"),a.defaults=e("./defaults"),a.utils=e("./deprecatedPublicUtils"),a.base64={encode:function(e){return n.encode(e)},decode:function(e){return n.decode(e)}},a.compressions=e("./compressions"),t.exports=a},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(e,t,r){"use strict";let l=e("./base64"),i=e("./zipEntries");t.exports=function(e,t){let r,n,a,s;for((t=t||{}).base64&&(e=l.decode(e)),r=(n=new i(e,t)).files,a=0;a<r.length;a++)s=r[a],this.file(s.fileName,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileComment.length?s.fileComment:null,createFolders:t.createFolders});return n.zipComment.length&&(this.comment=n.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(e,t,r){!function(r){"use strict";let n=function(){};if(void 0!==r){let t=!r.from;if(!t)try{r.from("foo","utf8")}catch(e){t=!0}n=t?function(e,t){return t?new r(e,t):new r(e)}:r.from.bind(r),r.alloc||(r.alloc=function(e){return new r(e)})}t.exports=function(e,t){return"number"==typeof e?r.alloc(e):n(e,t)},t.exports.test=function(e){return r.isBuffer(e)}}.call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],12:[function(e,t,r){"use strict";let n=e("./uint8ArrayReader");function a(e){this.data=e,this.length=this.data.length,this.index=0}(a.prototype=new n).readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=a},{"./uint8ArrayReader":18}],13:[function(e,t,r){"use strict";function n(e){var t;return e._data instanceof f&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===S.getTypeOf(e._data)&&(t=e._data,e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0))),e._data}function a(e){var t=n(e);return"string"===S.getTypeOf(t)?!e.options.binary&&o.nodebuffer?u(t,"utf-8"):e.asBinary():t}function s(e){let t=n(this);return null===t||void 0===t?"":(this.options.base64&&(t=g.decode(t)),t=e&&this.options.binary?d.utf8decode(t):S.transformTo("string",t),t=e||this.options.binary?t:S.transformTo("string",d.utf8encode(t)))}function l(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this._data=t,this.options=r,this._initialMetadata={dir:r.dir,date:r.date}}function E(e,t){let r="",n;for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t){return"/"!=e.slice(-1)&&(e+="/"),t=void 0!==t&&t,this.files[e]||h.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}function p(e,t){let r=new f,n;return e._data instanceof f?(r.uncompressedSize=e._data.uncompressedSize,r.crc32=e._data.crc32,0===r.uncompressedSize||e.dir?(t=b.STORE,r.compressedContent="",r.crc32=0):e._data.compressionMethod===t.magic?r.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),r.compressedContent=t.compress(S.transformTo(t.compressInputType,n)))):((n=a(e))&&0!==n.length&&!e.dir||(t=b.STORE,n=""),r.uncompressedSize=n.length,r.crc32=_(n),r.compressedContent=t.compress(S.transformTo(t.compressInputType,n))),r.compressedSize=r.compressedContent.length,r.compressionMethod=t.magic,r}function m(e,t,r,n){r.compressedContent;let a=S.transformTo("string",R.utf8encode(t.name)),s=t.comment||"",l=S.transformTo("string",R.utf8encode(s)),i=a.length!==t.name.length,o=l.length!==s.length,c=t.options,f,u,h="",d,p,m,g;m=(t._initialMetadata.dir!==t.dir?t:c).dir,f=(g=(t._initialMetadata.date!==t.date?t:c).date).getHours(),f=(f=((f<<=6)|g.getMinutes())<<5)|g.getSeconds()/2,u=g.getFullYear()-1980,u=(u=((u<<=4)|g.getMonth()+1)<<5)|g.getDate(),i&&(d=E(1,1)+E(_(a),4)+a,h+="up"+E(d.length,2)+d),o&&(p=E(1,1)+E(this.crc32(l),4)+l,h+="uc"+E(p.length,2)+p);var t="",b=(t=(t=(t=(t=(t=(t=(t=(t=(t+="\n\0")+(i||o?"\0\b":"\0\0")+r.compressionMethod)+E(f,2))+E(u,2))+E(r.crc32,4))+E(r.compressedSize,4))+E(r.uncompressedSize,4))+E(a.length,2))+E(h.length,2),C.LOCAL_FILE_HEADER+t+a+h);return{fileRecord:b,dirRecord:C.CENTRAL_FILE_HEADER+"\0"+t+E(l.length,2)+"\0\0\0\0"+(!0===m?"\0\0\0":"\0\0\0\0")+E(n,4)+a+h+l,compressedObject:r}}let o=e("./support"),S=e("./utils"),_=e("./crc32"),C=e("./signature"),c=e("./defaults"),g=e("./base64"),b=e("./compressions"),f=e("./compressedObject"),u=e("./nodeBuffer"),R=e("./utf8"),w=e("./stringWriter"),B=e("./uint8ArrayWriter"),k=(l.prototype={asText:function(){return s.call(this,!0)},asBinary:function(){return s.call(this,!1)},asNodeBuffer:function(){var e=a(this);return S.transformTo("nodebuffer",e)},asUint8Array:function(){var e=a(this);return S.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}},function(){let e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])arguments[t].hasOwnProperty(r)&&void 0===e[r]&&(e[r]=arguments[t][r]);return e}),h=function(e,t,r){let n=S.getTypeOf(t),a;if(!0!==(s=(s=r)||{}).base64||null!==s.binary&&void 0!==s.binary||(s.binary=!0),(s=k(s,c)).date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),(r=s).createFolders&&(a=function(e){if(e.slice(-1)=="/")e=e.substring(0,e.length-1);let t=e.lastIndexOf("/");return t>0?e.substring(0,t):""}(e))&&i.call(this,a,!0),r.dir||null==t)r.base64=!1,r.binary=!1,t=null;else if("string"===n)r.binary&&!r.base64&&!0!==r.optimizedBinaryString&&(t=S.string2binary(t));else{if(r.base64=!1,r.binary=!0,!(n||t instanceof f))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===n&&(t=S.transformTo("uint8array",t))}var s=new l(e,t,r);return this.files[e]=s},d={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){let t=[],r,n,a,s;for(r in this.files)this.files.hasOwnProperty(r)&&(a=this.files[r],s=new l(a.name,a._data,k(a.options)),n=r.slice(this.root.length,r.length),r.slice(0,this.root.length)===this.root&&e(n,s)&&t.push(s));return t},file:function(n,e,t){if(1!==arguments.length)return n=this.root+n,h.call(this,n,e,t),this;if(S.isRegExp(n)){let r=n;return this.filter(function(e,t){return!t.dir&&r.test(e)})}return this.filter(function(e,t){return!t.dir&&e===n})[0]||null},folder:function(r){if(!r)return this;if(S.isRegExp(r))return this.filter(function(e,t){return t.dir&&r.test(e)});var e=this.root+r,e=i.call(this,e);let t=this.clone();return t.root=e.name,t},remove:function(r){r=this.root+r;let e=this.files[r];if(e||("/"!=r.slice(-1)&&(r+="/"),e=this.files[r]),e&&!e.dir)delete this.files[r];else{var t=this.filter(function(e,t){return t.name.slice(0,r.length)===r});for(let e=0;e<t.length;e++)delete this.files[t[e].name]}return this},generate:function(e){e=k(e||{},{base64:!0,compression:"STORE",type:"base64",comment:null}),S.checkSupport(e.type);let t=[],r=0,n=0,a,s,l=S.transformTo("string",this.utf8encode(e.comment||this.comment||""));for(var i in this.files)if(this.files.hasOwnProperty(i)){var o=this.files[i],c=o.options.compression||e.compression.toUpperCase(),f=b[c];if(!f)throw new Error(c+" is not a valid compression method !");c=p.call(this,o,f),f=m.call(this,i,o,c,r);r+=f.fileRecord.length+c.compressedSize,n+=f.dirRecord.length,t.push(f)}var u=C.CENTRAL_DIRECTORY_END+"\0\0\0\0"+E(t.length,2)+E(t.length,2)+E(n,4)+E(r,4)+E(l.length,2)+l,h=e.type.toLowerCase();for(a=new("uint8array"===h||"arraybuffer"===h||"blob"===h||"nodebuffer"===h?B:w)(r+n+u.length),s=0;s<t.length;s++)a.append(t[s].fileRecord),a.append(t[s].compressedObject.compressedContent);for(s=0;s<t.length;s++)a.append(t[s].dirRecord);a.append(u);var d=a.finalize();switch(e.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return S.transformTo(e.type.toLowerCase(),d);case"blob":return S.arrayBuffer2Blob(S.transformTo("arraybuffer",d));case"base64":return e.base64?g.encode(d):d;default:return d}},crc32:function(e,t){return _(e,t)},utf8encode:function(e){return S.transformTo("string",R.utf8encode(e))},utf8decode:function(e){return R.utf8decode(e)}};t.exports=d},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter":16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],15:[function(e,t,r){"use strict";let n=e("./dataReader"),a=e("./utils");function s(e,t){this.data=e,t||(this.data=a.string2binary(this.data)),this.length=this.data.length,this.index=0}(s.prototype=new n).byteAt=function(e){return this.data.charCodeAt(e)},s.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)},s.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=s},{"./dataReader":5,"./utils":21}],16:[function(e,t,r){"use strict";let n=e("./utils");function a(){this.data=[]}a.prototype={append:function(e){e=n.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},t.exports=a},{"./utils":21}],17:[function(e,t,n){!function(r){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==r,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{let e=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,t=new e;t.append(r),n.blob=0===t.getBlob("application/zip").size}catch(e){n.blob=!1}}}}.call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],18:[function(e,t,r){"use strict";let n=e("./dataReader");function a(e){e&&(this.data=e,this.length=this.data.length,this.index=0)}(a.prototype=new n).byteAt=function(e){return this.data[e]},a.prototype.lastIndexOfSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3);for(let e=this.length-4;0<=e;--e)if(this.data[e]===t&&this.data[e+1]===r&&this.data[e+2]===n&&this.data[e+3]===a)return e;return-1},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.index,this.index+e);return this.index+=e,t},t.exports=a},{"./dataReader":5}],19:[function(e,t,r){"use strict";let n=e("./utils");function a(e){this.data=new Uint8Array(e),this.index=0}a.prototype={append:function(e){0!==e.length&&(e=n.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=a},{"./utils":21}],20:[function(e,t,r){"use strict";let i=e("./utils"),c=e("./support"),n=e("./nodeBuffer"),o=new Array(256);for(let e=0;e<256;e++)o[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;o[254]=o[254]=1;function s(e){let t,r,n,a;var s=e.length;let l=new Array(2*s);for(r=0,t=0;t<s;)if((n=e[t++])<128)l[r++]=n;else if(4<(a=o[n]))l[r++]=65533,t+=a-1;else{for(n&=2===a?31:3===a?15:7;1<a&&t<s;)n=n<<6|63&e[t++],a--;1<a?l[r++]=65533:n<65536?l[r++]=n:(n-=65536,l[r++]=55296|n>>10&1023,l[r++]=56320|1023&n)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),i.applyFromCharCode(l)}r.utf8encode=function(i){if(c.nodebuffer)return n(i,"utf-8");{var o=i;let e,t,r,n,a,s=o.length,l=0;for(n=0;n<s;n++)55296==(64512&(t=o.charCodeAt(n)))&&n+1<s&&56320==(64512&(r=o.charCodeAt(n+1)))&&(t=65536+(t-55296<<10)+(r-56320),n++),l+=t<128?1:t<2048?2:t<65536?3:4;for(e=new(c.uint8array?Uint8Array:Array)(l),a=0,n=0;a<l;n++)55296==(64512&(t=o.charCodeAt(n)))&&n+1<s&&56320==(64512&(r=o.charCodeAt(n+1)))&&(t=65536+(t-55296<<10)+(r-56320),n++),t<128?e[a++]=t:(t<2048?e[a++]=192|t>>>6:(t<65536?e[a++]=224|t>>>12:(e[a++]=240|t>>>18,e[a++]=128|t>>>12&63),e[a++]=128|t>>>6&63),e[a++]=128|63&t);return e}},r.utf8decode=function(e){if(c.nodebuffer)return i.transformTo("nodebuffer",e).toString("utf-8");let t=[],r=0,n=(e=i.transformTo(c.uint8array?"uint8array":"array",e)).length;for(;r<n;){var a=function(e,t){let r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return!(r<0)&&0!==r&&r+o[e[r]]>t?r:t}(e,Math.min(r+65536,n));c.uint8array?t.push(s(e.subarray(r,a))):t.push(s(e.slice(r,a))),r=a}return t.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(e,t,i){"use strict";let r=e("./support"),n=e("./compressions"),o=e("./nodeBuffer");function a(e){return e}function s(t,r){for(let e=0;e<t.length;++e)r[e]=255&t.charCodeAt(e);return r}function l(r){let t=65536,e=[],n=r.length,a=i.getTypeOf(r),s=0,l=!0;try{switch(a){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,o(0))}}catch(e){l=!1}if(!l){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r[e]);return t}for(;s<n&&1<t;)try{"array"===a||"nodebuffer"===a?e.push(String.fromCharCode.apply(null,r.slice(s,Math.min(s+t,n)))):e.push(String.fromCharCode.apply(null,r.subarray(s,Math.min(s+t,n)))),s+=t}catch(e){t=Math.floor(t/2)}return e.join("")}function c(t,r){for(let e=0;e<t.length;e++)r[e]=t[e];return r}i.string2binary=function(t){let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(255&t.charCodeAt(e));return r},i.arrayBuffer2Blob=function(r){i.checkSupport("blob");try{return new Blob([r],{type:"application/zip"})}catch(e){try{let e=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,t=new e;return t.append(r),t.getBlob("application/zip")}catch(e){throw new Error("Bug : can't construct the Blob.")}}},i.applyFromCharCode=l;let f={};f.string={string:a,array:function(e){return s(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return s(e,new Uint8Array(e.length))},nodebuffer:function(e){return s(e,o(e.length))}},f.array={string:l,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o(e)}},f.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return c(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o(new Uint8Array(e))}},f.uint8array={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return o(e)}},f.nodebuffer={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:a},i.transformTo=function(e,t){if(t=t||"",!e)return t;i.checkSupport(e);var r=i.getTypeOf(t);return f[r][e](t)},i.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.test(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this browser")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(e){let t="",r,n;for(n=0;n<(e||"").length;n++)r=e.charCodeAt(n),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t},i.findCompression=function(e){for(var t in n)if(n.hasOwnProperty(t)&&n[t].magic===e)return n[t];return null},i.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(e,t,r){"use strict";let n=e("./stringReader"),a=e("./nodeBufferReader"),s=e("./uint8ArrayReader"),l=e("./utils"),i=e("./signature"),o=e("./zipEntry"),c=e("./support"),f=e("./object");function u(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}u.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+l.pretty(t)+", expected "+l.pretty(e)+")")},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),this.zipComment=this.reader.readString(this.zipCommentLength),this.zipComment=f.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),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 e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readString(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){let e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8()},readCentralDir:function(){let e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===i.CENTRAL_FILE_HEADER;)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(-1===e)throw new Error("Corrupted zip : can't find end of central directory");if(this.reader.setIndex(e),this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,-1===(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR)))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(e){var t=l.getTypeOf(e);"string"!==t||c.uint8array?this.reader="nodebuffer"===t?new a(e):new s(l.transformTo("uint8array",e)):this.reader=new n(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=u},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(e,t,r){"use strict";let n=e("./stringReader"),s=e("./utils"),a=e("./compressedObject"),l=e("./object");function i(e,t){this.options=e,this.loadOptions=t}i.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},prepareCompressedContent:function(r,n,a){return function(){var e=r.index,t=(r.setIndex(n),r.readData(a));return r.setIndex(e),t}},prepareContent:function(e,t,r,n,a){return function(){var e=s.transformTo(n.uncompressInputType,this.getCompressedContent()),e=n.uncompress(e);if(e.length!==a)throw new Error("Bug : uncompressed data size mismatch");return e}},readLocalPart:function(e){var t;if(e.skip(22),this.fileNameLength=e.readInt(2),t=e.readInt(2),this.fileName=e.readString(this.fileNameLength),e.skip(t),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(null===(t=s.findCompression(this.compressionMethod)))throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new a,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=s.transformTo("string",this.decompressed.getContent()),l.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readString(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readString(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readString(this.fileCommentLength),this.dir=!!(16&this.externalFileAttributes)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){let e=new n(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,a=e.index;for(this.extraFields=this.extraFields||{};e.index<a+this.extraFieldsLength;)t=e.readInt(2),r=e.readInt(2),n=e.readString(r),this.extraFields[t]={id:t,length:r,value:n}},handleUTF8:function(){var e;this.useUTF8()?(this.fileName=l.utf8decode(this.fileName),this.fileComment=l.utf8decode(this.fileComment)):(null!==(e=this.findExtraFieldUnicodePath())&&(this.fileName=e),null!==(e=this.findExtraFieldUnicodeComment())&&(this.fileComment=e))},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){let e=new n(t.value);return 1!==e.readInt(1)?null:l.crc32(this.fileName)!==e.readInt(4)?null:l.utf8decode(e.readString(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){let e=new n(t.value);return 1!==e.readInt(1)?null:l.crc32(this.fileComment)!==e.readInt(4)?null:l.utf8decode(e.readString(t.length-5))}return null}},t.exports=i},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,t,r){"use strict";let n=e("./lib/utils/common").assign;var a=e("./lib/deflate"),s=e("./lib/inflate"),e=e("./lib/zlib/constants"),l={};n(l,a,s,e),t.exports=l},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,t,r){"use strict";function n(e){this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});let t=this.options;if(t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,(this.strm.avail_out=0)!==(e=l.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy)))throw new Error(a[e]);t.header&&l.deflateSetHeader(this.strm,t.header)}let l=e("./zlib/deflate.js"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream");function c(e,t){let r=new n(t);if(r.push(e,!0),r.err)throw r.msg;return r.result}n.prototype.push=function(e,t){let r=this.strm;var n=this.options.chunkSize;let a,s;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,r.input="string"==typeof e?o.string2buf(e):e,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new i.Buf8(n),r.next_out=0,r.avail_out=n),1!==(a=l.deflate(r,s))&&0!==a)return this.onEnd(a),!(this.ended=!0)}while((0===r.avail_out||0===r.avail_in&&4===s)&&("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(r.output,r.next_out))):this.onData(i.shrinkBuf(r.output,r.next_out))),(0<r.avail_in||0===r.avail_out)&&1!==a);return 4!==s||(a=l.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,0===a)},n.prototype.onData=function(e){this.chunks.push(e)},n.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=n,r.deflate=c,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,r){"use strict";function n(e){this.options=f.assign({chunkSize:16384,windowBits:0,to:""},e||{});let t=this.options;if(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0,(e=c.inflateInit2(this.strm,t.windowBits))!==h.Z_OK)throw new Error(a[e]);this.header=new l,c.inflateGetHeader(this.strm,this.header)}let c=e("./zlib/inflate.js"),f=e("./utils/common"),u=e("./utils/strings"),h=e("./zlib/constants"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=e("./zlib/gzheader");function i(e,t){let r=new n(t);if(r.push(e,!0),r.err)throw r.msg;return r.result}n.prototype.push=function(e,t){let r=this.strm;var n,a,s,l=this.options.chunkSize;let i,o;if(this.ended)return!1;o=t===~~t?t:!0===t?h.Z_FINISH:h.Z_NO_FLUSH,r.input="string"==typeof e?u.binstring2buf(e):e,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new f.Buf8(l),r.next_out=0,r.avail_out=l),(i=c.inflate(r,h.Z_NO_FLUSH))!==h.Z_STREAM_END&&i!==h.Z_OK)return this.onEnd(i),!(this.ended=!0)}while(r.next_out&&(0===r.avail_out||i===h.Z_STREAM_END||0===r.avail_in&&o===h.Z_FINISH)&&("string"===this.options.to?(n=u.utf8border(r.output,r.next_out),a=r.next_out-n,s=u.buf2string(r.output,n),r.next_out=a,r.avail_out=l-a,a&&f.arraySet(r.output,r.output,n,a,0),this.onData(s)):this.onData(f.shrinkBuf(r.output,r.next_out))),0<r.avail_in&&i!==h.Z_STREAM_END);return(o=i===h.Z_STREAM_END?h.Z_FINISH:o)!==h.Z_FINISH||(i=c.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===h.Z_OK)},n.prototype.onData=function(e){this.chunks.push(e)},n.prototype.onEnd=function(e){e===h.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=n,r.inflate=i,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,i(e,t)},r.ungzip=i},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){let r=Array.prototype.slice.call(arguments,1);for(;r.length;){let e=r.shift();if(e){if("object"!=typeof e)throw new TypeError(e+"must be non-object");for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}return t},r.shrinkBuf=function(e,t){if(e.length!==t){if(e.subarray)return e.subarray(0,t);e.length=t}return e};let a={arraySet:function(t,r,n,a,s){if(r.subarray&&t.subarray)t.set(r.subarray(n,n+a),s);else for(let e=0;e<a;e++)t[s+e]=r[n+e]},flattenChunks:function(e){let t,r,n,a,s,l;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(l=new Uint8Array(n),a=0,t=0,r=e.length;t<r;t++)s=e[t],l.set(s,a),a+=s.length;return l}},s={arraySet:function(t,r,n,a,s){for(let e=0;e<a;e++)t[s+e]=r[n+e]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,a)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s))},r.setTyped(n)},{}],28:[function(e,t,r){"use strict";let o=e("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}let c=new o.Buf8(256);for(let e=0;e<256;e++)c[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;function f(t,r){if(r<65537&&(t.subarray&&s||!t.subarray&&a))return String.fromCharCode.apply(null,o.shrinkBuf(t,r));let n="";for(let e=0;e<r;e++)n+=String.fromCharCode(t[e]);return n}c[254]=c[254]=1,r.string2buf=function(e){let t,r,n,a,s,l=e.length,i=0;for(a=0;a<l;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<l&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),i+=r<128?1:r<2048?2:r<65536?3:4;for(t=new o.Buf8(i),s=0,a=0;s<i;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<l&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return f(e,e.length)},r.binstring2buf=function(r){let n=new o.Buf8(r.length);for(let e=0,t=n.length;e<t;e++)n[e]=r.charCodeAt(e);return n},r.buf2string=function(e,t){let r,n,a,s;var l=t||e.length;let i=new Array(2*l);for(n=0,r=0;r<l;)if((a=e[r++])<128)i[n++]=a;else if(4<(s=c[a]))i[n++]=65533,r+=s-1;else{for(a&=2===s?31:3===s?15:7;1<s&&r<l;)a=a<<6|63&e[r++],s--;1<s?i[n++]=65533:a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|1023&a)}return f(i,n)},r.utf8border=function(e,t){let r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return!(r<0)&&0!==r&&r+c[e[r]]>t?r:t}},{"./common":27}],29:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){let a=65535&e|0,s=e>>>16&65535|0,l=0;for(;0!==r;){for(r-=l=2e3<r?2e3:r;a=a+t[n++]|0,s=s+a|0,--l;);a%=65521,s%=65521}return a|s<<16|0}},{}],30:[function(e,t,r){t.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}},{}],31:[function(e,t,r){"use strict";let l=function(){let t,r=[];for(let e=0;e<256;e++){t=e;for(let e=0;e<8;e++)t=1&t?3988292384^t>>>1:t>>>1;r[e]=t}return r}();t.exports=function(t,r,e,n){var a=l,s=n+e;t^=-1;for(let e=n;e<s;e++)t=t>>>8^a[255&(t^r[e])];return-1^t}},{}],32:[function(e,N,t){"use strict";let o=e("../utils/common"),i=e("./trees"),L=e("./adler32"),c=e("./crc32"),M=e("./messages"),f=0,u=4,h=0,d=-2,W=-1,U=4,H=2,p=8,V=9;let r=286,z=30,X=19,G=2*r+1,j=15,m=3,g=258,b=g+m+1,E=42,S=113,_=1,C=2,R=3,w=4;function B(e,t){return e.msg=M[t],t}function k(e){return(e<<1)-(4<e?9:0)}function T(e){let t=e.length;for(;0<=--t;)e[t]=0}function v(e){let t=e.state,r=t.pending;0!==(r=r>e.avail_out?e.avail_out:r)&&(o.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function x(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function A(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function s(e,t){let r=e.max_chain_length,n=e.strstart,a;var s;let l=e.prev_length,i=e.nice_match;var o=e.strstart>e.w_size-b?e.strstart-(e.w_size-b):0,c=e.window,f=e.w_mask,u=e.prev,h=e.strstart+g;let d=c[n+l-1],p=c[n+l];e.prev_length>=e.good_match&&(r>>=2),i>e.lookahead&&(i=e.lookahead);do{if(c[(a=t)+l]===p&&c[a+l-1]===d&&c[a]===c[n]&&c[++a]===c[n+1]){for(n+=2,a++;c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&n<h;);if(s=g-(h-n),n=h-g,s>l){if(e.match_start=t,(l=s)>=i)break;d=c[n+l-1],p=c[n+l]}}}while((t=u[t&f])>o&&0!=--r);return l<=e.lookahead?l:e.lookahead}function I(e){var t=e.w_size;let r,n,a,s,l;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-b)){for(o.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,r=n;a=e.head[--r],e.head[r]=a>=t?a-t:0,--n;);for(n=t,r=n;a=e.prev[--r],e.prev[r]=a>=t?a-t:0,--n;);s+=t}if(0===e.strm.avail_in)break;if(n=function(e,t,r,n){let a=e.avail_in;return 0===(a=a>n?n:a)?0:(e.avail_in-=a,o.arraySet(t,e.input,e.next_in,a,r),1===e.state.wrap?e.adler=L(e.adler,t,a,r):2===e.state.wrap&&(e.adler=c(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=n,e.lookahead+e.insert>=m)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+m-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<m)););}while(e.lookahead<b&&0!==e.strm.avail_in)}function n(e,t){let r,n;for(;;){if(e.lookahead<b){if(I(e),e.lookahead<b&&t===f)return _;if(0===e.lookahead)break}if(r=0,e.lookahead>=m&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+m-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-b&&(e.match_length=s(e,r)),e.match_length>=m)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-m),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=m){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+m-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(x(e,!1),0===e.strm.avail_out))return _}return e.insert=e.strstart<m-1?e.strstart:m-1,t===u?(x(e,!0),0===e.strm.avail_out?R:w):e.last_lit&&(x(e,!1),0===e.strm.avail_out)?_:C}function a(e,t){let r,n;for(var a;;){if(e.lookahead<b){if(I(e),e.lookahead<b&&t===f)return _;if(0===e.lookahead)break}if(r=0,e.lookahead>=m&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+m-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=m-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-b&&(e.match_length=s(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===m&&4096<e.strstart-e.match_start)&&(e.match_length=m-1)),e.prev_length>=m&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-m,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-m),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+m-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=m-1,e.strstart++,n&&(x(e,!1),0===e.strm.avail_out))return _}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&x(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return _}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<m-1?e.strstart:m-1,t===u?(x(e,!0),0===e.strm.avail_out?R:w):e.last_lit&&(x(e,!1),0===e.strm.avail_out)?_:C}function l(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}let F;function K(){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=p,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*G),this.dyn_dtree=new o.Buf16(2*(2*z+1)),this.bl_tree=new o.Buf16(2*(2*X+1)),T(this.dyn_ltree),T(this.dyn_dtree),T(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(j+1),this.heap=new o.Buf16(2*r+1),T(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*r+1),T(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 D(e){let t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=H,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:S,e.adler=2===t.wrap?0:1,t.last_flush=f,i._tr_init(t),h):B(e,d)}function O(e){var t=D(e);return t===h&&((e=e.state).window_size=2*e.w_size,T(e.head),e.max_lazy_match=F[e.level].max_lazy,e.good_match=F[e.level].good_length,e.nice_match=F[e.level].nice_length,e.max_chain_length=F[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=m-1,e.match_available=0,e.ins_h=0),t}function P(e,t,r,n,a,s){if(!e)return d;let l=1;if(t===W&&(t=6),n<0?(l=0,n=-n):15<n&&(l=2,n-=16),a<1||a>V||r!==p||n<8||15<n||t<0||9<t||s<0||s>U)return B(e,d);8===n&&(n=9);let i=new K;return(e.state=i).strm=e,i.wrap=l,i.gzhead=null,i.w_bits=n,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=a+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+m-1)/m),i.window=new o.Buf8(2*i.w_size),i.head=new o.Buf16(i.hash_size),i.prev=new o.Buf16(i.w_size),i.lit_bufsize=1<<a+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new o.Buf8(i.pending_buf_size),i.d_buf=i.lit_bufsize>>1,i.l_buf=3*i.lit_bufsize,i.level=t,i.strategy=s,i.method=r,O(e)}F=[new l(0,0,0,0,function(e,t){let r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(I(e),0===e.lookahead&&t===f)return _;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,x(e,!1),0===e.strm.avail_out))return _;if(e.strstart-e.block_start>=e.w_size-b&&(x(e,!1),0===e.strm.avail_out))return _}return e.insert=0,t===u?(x(e,!0),0===e.strm.avail_out?R:w):(e.strstart>e.block_start&&(x(e,!1),e.strm.avail_out),_)}),new l(4,4,8,4,n),new l(4,5,16,8,n),new l(4,6,32,32,n),new l(4,4,16,16,a),new l(8,16,32,32,a),new l(8,16,128,128,a),new l(8,32,128,256,a),new l(32,128,258,1024,a),new l(32,258,258,4096,a)],t.deflateInit=function(e,t){return P(e,t,p,15,8,0)},t.deflateInit2=P,t.deflateReset=O,t.deflateResetKeep=D,t.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?d:(e.state.gzhead=t,h)},t.deflate=function(r,e){let t,n,a,s;if(!r||!r.state||5<e||e<0)return r?B(r,d):d;if(n=r.state,!r.output||!r.input&&0!==r.avail_in||666===n.status&&e!==u)return B(r,0===r.avail_out?-5:d);if(n.strm=r,t=n.last_flush,n.last_flush=e,n.status===E)if(2===n.wrap)r.adler=0,y(n,31),y(n,139),y(n,8),n.gzhead?(y(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),y(n,255&n.gzhead.time),y(n,n.gzhead.time>>8&255),y(n,n.gzhead.time>>16&255),y(n,n.gzhead.time>>24&255),y(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),y(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(y(n,255&n.gzhead.extra.length),y(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(r.adler=c(r.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(y(n,0),y(n,0),y(n,0),y(n,0),y(n,0),y(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),y(n,3),n.status=S);else{let e=p+(n.w_bits-8<<4)<<8,t=-1;t=2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3,e|=t<<6,0!==n.strstart&&(e|=32),e+=31-e%31,n.status=S,A(n,e),0!==n.strstart&&(A(n,r.adler>>>16),A(n,65535&r.adler)),r.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(r.adler=c(r.adler,n.pending_buf,n.pending-a,a)),v(r),a=n.pending,n.pending!==n.pending_buf_size));)y(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(r.adler=c(r.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(r.adler=c(r.adler,n.pending_buf,n.pending-a,a)),v(r),a=n.pending,n.pending===n.pending_buf_size)){s=1;break}}while(s=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,y(n,s),0!==s);n.gzhead.hcrc&&n.pending>a&&(r.adler=c(r.adler,n.pending_buf,n.pending-a,a)),0===s&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(r.adler=c(r.adler,n.pending_buf,n.pending-a,a)),v(r),a=n.pending,n.pending===n.pending_buf_size)){s=1;break}}while(s=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,y(n,s),0!==s);n.gzhead.hcrc&&n.pending>a&&(r.adler=c(r.adler,n.pending_buf,n.pending-a,a)),0===s&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&v(r),n.pending+2<=n.pending_buf_size&&(y(n,255&r.adler),y(n,r.adler>>8&255),r.adler=0,n.status=S)):n.status=S),0!==n.pending){if(v(r),0===r.avail_out)return n.last_flush=-1,h}else if(0===r.avail_in&&k(e)<=k(t)&&e!==u)return B(r,-5);if(666===n.status&&0!==r.avail_in)return B(r,-5);if(0!==r.avail_in||0!==n.