(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22d9b8"],{f7e6:function(e,t,r){(function(t){var r;(function(t){e.exports=t()})((function(){return function(){function e(t,n,i){function a(s,l){if(!n[s]){if(!t[s]){var u="function"==typeof r&&r;if(!l&&u)return r(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var h=n[s]={exports:{}};t[s][0].call(h.exports,(function(e){var r=t[s][1][e];return a(r||e)}),h,h.exports,e,t,n,i)}return n[s].exports}for(var o="function"==typeof r&&r,s=0;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function f(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function h(e,t,r){return 3*(t+r)/4-r}function c(e){var t,r,n=u(e),o=n[0],s=n[1],l=new a(h(e,o,s)),f=0,c=s>0?o-4:o;for(r=0;r>16&255,l[f++]=t>>8&255,l[f++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[f++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[f++]=t>>8&255,l[f++]=255&t),l}function d(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,r){for(var n,i=[],a=t;al?l:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],2:[function(e,t,r){},{}],3:[function(e,t,r){(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ "use strict";var n=e("base64-js"),i=e("ieee754");r.Buffer=t,r.SlowBuffer=v,r.INSPECT_MAX_BYTES=50;var a=2147483647;function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return r.__proto__=t.prototype,r}function t(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return l(e,t,r)}function l(e,r,n){if("string"===typeof e)return c(e,r);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,r,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return t.from(i,r,n);var a=m(e);if(a)return a;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),r,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e,t,r){return u(e),e<=0?s(e):void 0!==t?"string"===typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}function h(e){return u(e),s(e<0?0:0|g(e))}function c(e,r){if("string"===typeof r&&""!==r||(r="utf8"),!t.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var n=0|y(e,r),i=s(n),a=i.write(e,r);return a!==n&&(i=i.slice(0,a)),i}function d(e){for(var t=e.length<0?0:0|g(e.length),r=s(t),n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),t.alloc(+e)}function y(e,r){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var a=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(a)return i?-1:Z(e).length;r=(""+r).toLowerCase(),a=!0}}function b(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return F(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function w(e,r,n,i,a){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,J(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof r&&(r=t.from(r,i)),t.isBuffer(r))return 0===r.length?-1:E(e,r,n,i,a);if("number"===typeof r)return r&=255,"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,r,n):Uint8Array.prototype.lastIndexOf.call(e,r,n):E(e,[r],n,i,a);throw new TypeError("val must be string, number or Buffer")}function E(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var f=-1;for(a=r;as&&(r=s-l),a=r;a>=0;a--){for(var h=!0,c=0;ci&&(n=i)):n=i;var a=t.length;n>a/2&&(n=a/2);for(var o=0;o239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(f=u);break;case 2:a=e[i+1],128===(192&a)&&(l=(31&u)<<6|63&a,l>127&&(f=l));break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(f=l));break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(f=l))}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return I(n)}r.kMaxLength=a,t.TYPED_ARRAY_SUPPORT=o(),t.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,r){return l(e,t,r)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,r){return f(e,t,r)},t.allocUnsafe=function(e){return h(e)},t.allocUnsafeSlow=function(e){return h(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,r){if(K(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),K(r,Uint8Array)&&(r=t.from(r,r.offset,r.byteLength)),!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);at&&(e+=" ... "),""},t.prototype.compare=function(e,r,n,i,a){if(K(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===r&&(r=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),f=e.slice(r,n),h=0;h>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return S(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(e){var t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);var r="",n=0;while(nn)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function N(e,r,n,i,a,o){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>a||re.length)throw new RangeError("Index out of range")}function z(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,n,a){return t=+t,r>>>=0,a||z(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,a){return t=+t,r>>>=0,a||z(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r>>=0,t>>>=0,r||D(e,t,this.length);var n=this[e],i=1,a=0;while(++a>>=0,t>>>=0,r||D(e,t,this.length);var n=this[e+--t],i=1;while(t>0&&(i*=256))n+=this[e+--t]*i;return n},t.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);var n=this[e],i=1,a=0;while(++a=i&&(n-=Math.pow(2,8*t)),n},t.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);var n=t,i=1,a=this[e+--n];while(n>0&&(i*=256))a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},t.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;N(this,e,t,r,i,0)}var a=1,o=0;this[t]=255&e;while(++o>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;N(this,e,t,r,i,0)}var a=r-1,o=1;this[t+a]=255&e;while(--a>=0&&(o*=256))this[t+a]=e/o&255;return t+r},t.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;this[t]=255&e;while(++a>0)-s&255;return t+r},t.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;this[t+a]=255&e;while(--a>=0&&(o*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},t.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},t.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},t.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},t.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},t.prototype.copy=function(e,r,n,i){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r=0;--o)e[o+r]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,i),r);return a},t.prototype.fill=function(e,r,n,i){if("string"===typeof e){if("string"===typeof r?(i=r,r=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"===typeof e&&(e&=255);if(r<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=r;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function G(e){for(var t=[],r=0;r>8,i=r%256,a.push(i),a.push(n)}return a}function q(e){return n.toByteArray(X(e))}function V(e,t,r,n){for(var i=0;i=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!==e}}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:6}],4:[function(e,t,r){(function(e){function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function n(e){return"boolean"===typeof e}function i(e){return null===e}function a(e){return null==e}function o(e){return"number"===typeof e}function s(e){return"string"===typeof e}function l(e){return"symbol"===typeof e}function u(e){return void 0===e}function f(e){return"[object RegExp]"===g(e)}function h(e){return"object"===typeof e&&null!==e}function c(e){return"[object Date]"===g(e)}function d(e){return"[object Error]"===g(e)||e instanceof Error}function p(e){return"function"===typeof e}function m(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function g(e){return Object.prototype.toString.call(e)}r.isArray=t,r.isBoolean=n,r.isNull=i,r.isNullOrUndefined=a,r.isNumber=o,r.isString=s,r.isSymbol=l,r.isUndefined=u,r.isRegExp=f,r.isObject=h,r.isDate=c,r.isError=d,r.isFunction=p,r.isPrimitive=m,r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":9}],5:[function(e,t,r){var n=Object.create||S,i=Object.keys||C,a=Function.prototype.bind||T;function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,l=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),s=0===u.x}catch(x){s=!1}function f(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function h(e,t,r){if(t)e.call(r);else for(var n=e.length,i=E(e,n),a=0;a0&&s.length>a)){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,"object"===typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else s=o[t]=r,++e._eventsCount;return e}function v(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(r=o[e],!r)return!1;var u="function"===typeof r;switch(n=arguments.length,n){case 1:h(r,u,this);break;case 2:c(r,u,this,arguments[1]);break;case 3:d(r,u,this,arguments[1],arguments[2]);break;case 4:p(r,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),a=1;a=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():w(r,a),1===r.length&&(i[e]=r[0]),i.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.removeAllListeners=function(e){var t,r,a;if(r=this._events,!r)return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[e]&&(0===--this._eventsCount?this._events=n(null):delete r[e]),this;if(0===arguments.length){var o,s=i(r);for(a=0;a=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return b(this,e,!0)},o.prototype.rawListeners=function(e){return b(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):_.call(e,t)},o.prototype.listenerCount=_,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],6:[function(e,t,r){r.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,f=-7,h=r?i-1:0,c=r?-1:1,d=e[t+h];for(h+=c,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=256*a+e[t+h],h+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+e[t+h],h+=c,f-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=u}return(d?-1:1)*o*Math.pow(2,a-n)},r.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,f=(1<>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+h>=1?c/l:c*Math.pow(2,1-h),t*l>=2&&(o++,l/=2),o+h>=f?(s=0,o=f):o+h>=1?(s=(t*l-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<0;e[r+d]=255&o,d+=p,o/=256,u-=8);e[r+d-p]|=128*m}},{}],7:[function(e,r,n){(function(e){"use strict";var t,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(f),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),t=function(){s.data=a=++a%2}}else if(e.setImmediate||"undefined"===typeof e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){f(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(f,0)};else{var l=new e.MessageChannel;l.port1.onmessage=f,t=function(){l.port2.postMessage(0)}}var u=[];function f(){var e,t;n=!0;var r=u.length;while(r){t=u,u=[],e=-1;while(++e * @license MIT */ t.exports=function(e){return null!=e&&(n(e)||i(e)||!!e._isBuffer)}},{}],10:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],11:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){var t,r,i,o,s,l,u,f=[],h=0,c=e.length,d=c,p="string"!==n.getTypeOf(e);while(h>2,s=(3&t)<<4|r>>4,l=d>1?(15&r)<<2|i>>6:64,u=d>2?63&i:64,f.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(u));return f.join("")},r.decode=function(e){var t,r,n,o,s,l,u,f=0,h=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var d,p=3*e.length/4;if(e.charAt(e.length-1)===a.charAt(64)&&p--,e.charAt(e.length-2)===a.charAt(64)&&p--,p%1!==0)throw new Error("Invalid base64 input, bad content length.");d=i.uint8array?new Uint8Array(0|p):new Array(0|p);while(f>4,r=(15&s)<<4|l>>2,n=(3&l)<<6|u,d[h++]=t,64!==l&&(d[h++]=r),64!==u&&(d[h++]=n);return d}},{"./support":40,"./utils":42}],12:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/DataLengthProbe"),o=e("./stream/Crc32Probe");a=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo["data_length"]!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":16,"./stream/Crc32Probe":35,"./stream/DataLengthProbe":36,"./stream/DataWorker":37}],13:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":17,"./stream/GenericWorker":38}],14:[function(e,t,r){"use strict";var n=e("./utils");function i(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}var a=i();function o(e,t,r,n){var i=a,o=n+r;e^=-1;for(var s=n;s>>8^i[255&(e^t[s])];return-1^e}function s(e,t,r,n){var i=a,o=n+r;e^=-1;for(var s=n;s>>8^i[255&(e^t.charCodeAt(s))];return-1^e}t.exports=function(e,t){if("undefined"===typeof e||!e.length)return 0;var r="string"!==n.getTypeOf(e);return r?o(0|t,e,e.length,0):s(0|t,e,e.length,0)}},{"./utils":42}],15:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],16:[function(e,t,r){"use strict";var n=null;n="undefined"!==typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:46}],17:[function(e,t,r){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":38,"./utils":42,pako:47}],18:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../stream/GenericWorker"),a=e("../utf8"),o=e("../crc32"),s=e("../signature"),l=function(e,t){var r,n="";for(r=0;r>>=8;return n},u=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16},f=function(e,t){return 63&(e||0)},h=function(e,t,r,i,h,c){var d,p,m=e["file"],g=e["compression"],v=c!==a.utf8encode,y=n.transformTo("string",c(m.name)),b=n.transformTo("string",a.utf8encode(m.name)),_=m.comment,w=n.transformTo("string",c(_)),E=n.transformTo("string",a.utf8encode(_)),k=b.length!==m.name.length,S=E.length!==_.length,C="",T="",x="",R=m.dir,A=m.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(O.crc32=e["crc32"],O.compressedSize=e["compressedSize"],O.uncompressedSize=e["uncompressedSize"]);var L=0;t&&(L|=8),v||!k&&!S||(L|=2048);var I=0,F=0;R&&(I|=16),"UNIX"===h?(F=798,I|=u(m.unixPermissions,R)):(F=20,I|=f(m.dosPermissions,R)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,p=A.getUTCFullYear()-1980,p<<=4,p|=A.getUTCMonth()+1,p<<=5,p|=A.getUTCDate(),k&&(T=l(1,1)+l(o(y),4)+b,C+="up"+l(T.length,2)+T),S&&(x=l(1,1)+l(o(w),4)+E,C+="uc"+l(x.length,2)+x);var M="";M+="\n\0",M+=l(L,2),M+=g.magic,M+=l(d,2),M+=l(p,2),M+=l(O.crc32,4),M+=l(O.compressedSize,4),M+=l(O.uncompressedSize,4),M+=l(y.length,2),M+=l(C.length,2);var B=s.LOCAL_FILE_HEADER+M+y+C,P=s.CENTRAL_FILE_HEADER+l(F,2)+M+l(w.length,2)+"\0\0\0\0"+l(I,4)+l(i,4)+y+C+w;return{fileRecord:B,dirRecord:P}},c=function(e,t,r,i,a){var o="",u=n.transformTo("string",a(i));return o=s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(e,2)+l(e,2)+l(t,4)+l(r,4)+l(u.length,2)+u,o},d=function(e){var t="";return t=s.DATA_DESCRIPTOR+l(e["crc32"],4)+l(e["compressedSize"],4)+l(e["uncompressedSize"],4),t};function p(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(p,i),p.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},p.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e["file"].name;var t=this.streamFiles&&!e["file"].dir;if(t){var r=h(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e["file"].dir,r=h(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:d(e),meta:{percent:100}});else{this.push({data:r.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null},p.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t="undefined"!==typeof t?t:s.createFolders,e=m(e),this.files[e]||d.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1===arguments.length){if(v(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,d.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":42,"./DataReader":28}],28:[function(e,t,r){"use strict";var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":42}],29:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader"),i=e("../utils");function a(e){n.call(this,e)}i.inherits(a,n),a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":42,"./Uint8ArrayReader":31}],30:[function(e,t,r){"use strict";var n=e("./DataReader"),i=e("../utils");function a(e){n.call(this,e)}i.inherits(a,n),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":42,"./DataReader":28}],31:[function(e,t,r){"use strict";var n=e("./ArrayReader"),i=e("../utils");function a(e){n.call(this,e)}i.inherits(a,n),a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":42,"./ArrayReader":27}],32:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new o(e)}},{"../support":40,"../utils":42,"./ArrayReader":27,"./NodeBufferReader":29,"./StringReader":30,"./Uint8ArrayReader":31}],33:[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"},{}],34:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":42,"./GenericWorker":38}],35:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32"),a=e("../utils");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a.inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":14,"../utils":42,"./GenericWorker":38}],36:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":42,"./GenericWorker":38}],37:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker"),a=16384;function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=a,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":42,"./GenericWorker":38}],38:[function(e,t,r){"use strict";function n(e){this.name=e||"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}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=n},{}],39:[function(e,t,r){(function(r){"use strict";var n=e("../utils"),i=e("./ConvertWorker"),a=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(p){}function f(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return n.transformTo(e,t)}}function h(e,t){var n,i=0,a=null,o=0;for(n=0;n=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;s[254]=s[254]=1;var u=function(e){var t,r,n,a,o,s=e.length,l=0;for(a=0;a>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t},f=function(e,t){var r;t=t||e.length,t>e.length&&(t=e.length),r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+s[e[r]]>t?r:t},h=function(e){var t,r,i,a,o=e.length,l=new Array(2*o);for(r=0,t=0;t4)l[r++]=65533,t+=a-1;else{i&=2===a?31:3===a?15:7;while(a>1&&t1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)};function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function d(){o.call(this,"utf-8 encode")}r.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):u(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):(e=n.transformTo(i.uint8array?"uint8array":"array",e),h(e))},n.inherits(c,o),c.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;t=new Uint8Array(a.length+this.leftOver.length),t.set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=f(t),s=t;o!==t.length&&(i.uint8array?(s=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(s=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(s),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(d,o),d.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=d},{"./nodejsUtils":22,"./stream/GenericWorker":38,"./support":40,"./utils":42}],42:[function(e,t,r){"use strict";var n=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("set-immediate-shim"),s=e("./external");function l(e){var t=null;return t=n.uint8array?new Uint8Array(e.length):new Array(e.length),f(e,t)}function u(e){return e}function f(e,t){for(var r=0;r1)try{return h.stringifyByChunk(e,n,t)}catch(a){t=Math.floor(t/2)}return h.stringifyByChar(e)}function d(e,t){for(var r=0;r1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(r,a.CENTRAL_FILE_HEADER)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":32,"./signature":33,"./support":40,"./utf8":41,"./utils":42,"./zipEntry":44}],44:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support"),f=0,h=3,c=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null};function d(e,t){this.options=e,this.loadOptions=t}d.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=c(this.compressionMethod),null===t)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(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);var t=e.readInt(2);if(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");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e===f&&(this.dosPermissions=63&this.externalFileAttributes),e===h&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;this.extraFields||(this.extraFields={});while(e.index+40?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==h)throw new Error(o[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"===typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=n.deflateSetDictionary(this.strm,u),r!==h)throw new Error(o[r]);this._dict_set=!0}}function y(e,t){var r=new v(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}function b(e,t){return t=t||{},t.raw=!0,y(e,t)}function _(e,t){return t=t||{},t.gzip=!0,y(e,t)}v.prototype.push=function(e,t){var r,o,s=this.strm,p=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?f:u,"string"===typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(p),s.next_out=0,s.avail_out=p),r=n.deflate(s,o),r!==c&&r!==h)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||o!==f&&o!==d)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&r!==c);return o===f?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===h):o!==d||(this.onEnd(h),s.avail_out=0,!0)},v.prototype.onData=function(e){this.chunks.push(e)},v.prototype.onEnd=function(e){e===h&&("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=v,r.deflate=y,r.deflateRaw=b,r.gzip=_},{"./utils/common":50,"./utils/strings":51,"./zlib/deflate":55,"./zlib/messages":60,"./zlib/zstream":62}],49:[function(e,t,r){"use strict";var n=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),f=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);if(this.header=new u,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=a.string2buf(t.dictionary):"[object ArrayBuffer]"===f.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary),r!==o.Z_OK)))throw new Error(s[r])}function c(e,t){var r=new h(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}function d(e,t){return t=t||{},t.raw=!0,c(e,t)}h.prototype.push=function(e,t){var r,s,l,u,h,c=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"===typeof e?c.input=a.binstring2buf(e):"[object ArrayBuffer]"===f.call(e)?c.input=new Uint8Array(e):c.input=e,c.next_in=0,c.avail_in=c.input.length;do{if(0===c.avail_out&&(c.output=new i.Buf8(d),c.next_out=0,c.avail_out=d),r=n.inflate(c,o.Z_NO_FLUSH),r===o.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),this.ended=!0,!1;c.next_out&&(0!==c.avail_out&&r!==o.Z_STREAM_END&&(0!==c.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(c.output,c.next_out),u=c.next_out-l,h=a.buf2string(c.output,l),c.next_out=u,c.avail_out=d-u,u&&i.arraySet(c.output,c.output,l,u,0),this.onData(h)):this.onData(i.shrinkBuf(c.output,c.next_out)))),0===c.avail_in&&0===c.avail_out&&(m=!0)}while((c.avail_in>0||0===c.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),c.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("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.Inflate=h,r.inflate=c,r.inflateRaw=d,r.ungzip=c},{"./utils/common":50,"./utils/strings":51,"./zlib/constants":53,"./zlib/gzheader":56,"./zlib/inflate":58,"./zlib/messages":60,"./zlib/zstream":62}],50:[function(e,t,r){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var r=t.shift();if(r){if("object"!==typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",o=0;o>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r4)u[n++]=65533,r+=a-1;else{i&=2===a?31:3===a?15:7;while(a>1&&r1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return l(u,n)},r.utf8border=function(e,t){var r;t=t||e.length,t>e.length&&(t=e.length),r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}},{"./common":50}],52:[function(e,t,r){"use strict";function n(e,t,r,n){var i=65535&e|0,a=e>>>16&65535|0,o=0;while(0!==r){o=r>2e3?2e3:r,r-=o;do{i=i+t[n++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}t.exports=n},{}],53:[function(e,t,r){"use strict";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}},{}],54:[function(e,t,r){"use strict";function n(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}var i=n();function a(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s>>8^a[255&(e^t[s])];return-1^e}t.exports=a},{}],55:[function(e,t,r){"use strict";var n,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=0,f=1,h=3,c=4,d=5,p=0,m=1,g=-2,v=-3,y=-5,b=-1,_=1,w=2,E=3,k=4,S=0,C=2,T=8,x=9,R=15,A=8,O=29,L=256,I=L+1+O,F=30,M=19,B=2*I+1,P=15,D=3,N=258,z=N+D+1,U=32,j=42,W=69,X=73,H=91,Z=103,G=113,Y=666,q=1,V=2,K=3,J=4,$=3;function Q(e,t){return e.msg=l[t],t}function ee(e){return(e<<1)-(e>4?9:0)}function te(e){var t=e.length;while(--t>=0)e[t]=0}function re(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.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 ne(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,re(e.strm)}function ie(e,t){e.pending_buf[e.pending++]=t}function ae(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function oe(e,t,r,n){var a=e.avail_in;return a>n&&(a=n),0===a?0:(e.avail_in-=a,i.arraySet(t,e.input,e.next_in,a,r),1===e.state.wrap?e.adler=o(e.adler,t,a,r):2===e.state.wrap&&(e.adler=s(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function se(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,u=e.window,f=e.w_mask,h=e.prev,c=e.strstart+N,d=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,u[r+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&ao){if(e.match_start=t,o=n,n>=s)break;d=u[a+o-1],p=u[a+o]}}}while((t=h[t&f])>l&&0!==--i);return o<=e.lookahead?o:e.lookahead}function le(e){var t,r,n,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-z)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,r=e.hash_size,t=r;do{n=e.head[--t],e.head[t]=n>=s?n-s:0}while(--r);r=s,t=r;do{n=e.prev[--t],e.prev[t]=n>=s?n-s:0}while(--r);a+=s}if(0===e.strm.avail_in)break;if(r=oe(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=r,e.lookahead+e.insert>=D){o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(le(e),0===e.lookahead&&t===u)return q;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,ne(e,!1),0===e.strm.avail_out))return q;if(e.strstart-e.block_start>=e.w_size-z&&(ne(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===c?(ne(e,!0),0===e.strm.avail_out?K:J):(e.strstart>e.block_start&&(ne(e,!1),e.strm.avail_out),q)}function fe(e,t){for(var r,n;;){if(e.lookahead=D&&(e.ins_h=(e.ins_h<=D)if(n=a._tr_tally(e,e.strstart-e.match_start,e.match_length-D),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=D){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=D&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=D-1)),e.prev_length>=D&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-D,n=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-D),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<=D&&e.strstart>0&&(i=e.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){o=e.strstart+N;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=D?(r=a._tr_tally(e,1,e.match_length-D),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ne(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===c?(ne(e,!0),0===e.strm.avail_out?K:J):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?q:V}function de(e,t){for(var r;;){if(0===e.lookahead&&(le(e),0===e.lookahead)){if(t===u)return q;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ne(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===c?(ne(e,!0),0===e.strm.avail_out?K:J):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?q:V}function pe(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function me(e){e.window_size=2*e.w_size,te(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=D-1,e.match_available=0,e.ins_h=0}function ge(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=T,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*B),this.dyn_dtree=new i.Buf16(2*(2*F+1)),this.bl_tree=new i.Buf16(2*(2*M+1)),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(P+1),this.heap=new i.Buf16(2*I+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*I+1),te(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 ve(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=C,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?j:G,e.adler=2===t.wrap?0:1,t.last_flush=u,a._tr_init(t),p):Q(e,g)}function ye(e){var t=ve(e);return t===p&&me(e.state),t}function be(e,t){return e&&e.state?2!==e.state.wrap?g:(e.state.gzhead=t,p):g}function _e(e,t,r,n,a,o){if(!e)return g;var s=1;if(t===b&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),a<1||a>x||r!==T||n<8||n>15||t<0||t>9||o<0||o>k)return Q(e,g);8===n&&(n=9);var l=new ge;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<d||t<0)return e?Q(e,g):g;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===Y&&t!==c)return Q(e,0===e.avail_out?y:g);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===j)if(2===i.wrap)e.adler=0,ie(i,31),ie(i,139),ie(i,8),i.gzhead?(ie(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ie(i,255&i.gzhead.time),ie(i,i.gzhead.time>>8&255),ie(i,i.gzhead.time>>16&255),ie(i,i.gzhead.time>>24&255),ie(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),ie(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ie(i,255&i.gzhead.extra.length),ie(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=W):(ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),ie(i,$),i.status=G);else{var v=T+(i.w_bits-8<<4)<<8,b=-1;b=i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3,v|=b<<6,0!==i.strstart&&(v|=U),v+=31-v%31,i.status=G,ae(i,v),0!==i.strstart&&(ae(i,e.adler>>>16),ae(i,65535&e.adler)),e.adler=1}if(i.status===W)if(i.gzhead.extra){o=i.pending;while(i.gzindex<(65535&i.gzhead.extra.length)){if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),re(e),o=i.pending,i.pending===i.pending_buf_size))break;ie(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++}i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=X)}else i.status=X;if(i.status===X)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),re(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=H)}else i.status=H;if(i.status===H)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),re(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=Z)}else i.status=Z;if(i.status===Z&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&re(e),i.pending+2<=i.pending_buf_size&&(ie(i,255&e.adler),ie(i,e.adler>>8&255),e.adler=0,i.status=G)):i.status=G),0!==i.pending){if(re(e),0===e.avail_out)return i.last_flush=-1,p}else if(0===e.avail_in&&ee(t)<=ee(r)&&t!==c)return Q(e,y);if(i.status===Y&&0!==e.avail_in)return Q(e,y);if(0!==e.avail_in||0!==i.lookahead||t!==u&&i.status!==Y){var _=i.strategy===w?de(i,t):i.strategy===E?ce(i,t):n[i.level].func(i,t);if(_!==K&&_!==J||(i.status=Y),_===q||_===K)return 0===e.avail_out&&(i.last_flush=-1),p;if(_===V&&(t===f?a._tr_align(i):t!==d&&(a._tr_stored_block(i,0,0,!1),t===h&&(te(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),re(e),0===e.avail_out))return i.last_flush=-1,p}return t!==c?p:i.wrap<=0?m:(2===i.wrap?(ie(i,255&e.adler),ie(i,e.adler>>8&255),ie(i,e.adler>>16&255),ie(i,e.adler>>24&255),ie(i,255&e.total_in),ie(i,e.total_in>>8&255),ie(i,e.total_in>>16&255),ie(i,e.total_in>>24&255)):(ae(i,e.adler>>>16),ae(i,65535&e.adler)),re(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:m)}function ke(e){var t;return e&&e.state?(t=e.state.status,t!==j&&t!==W&&t!==X&&t!==H&&t!==Z&&t!==G&&t!==Y?Q(e,g):(e.state=null,t===G?Q(e,v):p)):g}function Se(e,t){var r,n,a,s,l,u,f,h,c=t.length;if(!e||!e.state)return g;if(r=e.state,s=r.wrap,2===s||1===s&&r.status!==j||r.lookahead)return g;1===s&&(e.adler=o(e.adler,t,c,0)),r.wrap=0,c>=r.w_size&&(0===s&&(te(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,c-r.w_size,r.w_size,0),t=h,c=r.w_size),l=e.avail_in,u=e.next_in,f=e.input,e.avail_in=c,e.next_in=0,e.input=t,le(r);while(r.lookahead>=D){n=r.strstart,a=r.lookahead-(D-1);do{r.ins_h=(r.ins_h<>>24,m>>>=E,g-=E,E=w>>>16&255,0===E)R[s++]=65535&w;else{if(!(16&E)){if(0===(64&E)){w=v[(65535&w)+(m&(1<>>=E,g-=E),g<15&&(m+=x[a++]<>>24,m>>>=E,g-=E,E=w>>>16&255,!(16&E)){if(0===(64&E)){w=y[(65535&w)+(m&(1<f){e.msg="invalid distance too far back",r.mode=n;break e}if(m>>>=E,g-=E,E=s-l,S>E){if(E=S-E,E>c&&r.sane){e.msg="invalid distance too far back",r.mode=n;break e}if(C=0,T=p,0===d){if(C+=h-E,E2)R[s++]=T[C++],R[s++]=T[C++],R[s++]=T[C++],k-=3;k&&(R[s++]=T[C++],k>1&&(R[s++]=T[C++]))}else{C=s-S;do{R[s++]=R[C++],R[s++]=R[C++],R[s++]=R[C++],k-=3}while(k>2);k&&(R[s++]=R[C++],k>1&&(R[s++]=R[C++]))}break}}break}}while(a>3,a-=k,g-=k<<3,m&=(1<>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ae(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function oe(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=E,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(ee),t.distcode=t.distdyn=new n.Buf32(te),t.sane=1,t.back=-1,p):v}function se(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,oe(e)):v}function le(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,se(e))):v}function ue(e,t){var r,n;return e?(n=new ae,e.state=n,n.window=null,r=le(e,t),r!==p&&(e.state=null),r):v}function fe(e){return ue(e,ne)}var he,ce,de=!0;function pe(e){if(de){var t;he=new n.Buf32(512),ce=new n.Buf32(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;s(u,e.lens,0,288,he,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;s(f,e.lens,0,32,ce,0,e.work,{bits:5}),de=!1}e.lencode=he,e.lenbits=9,e.distcode=ce,e.distbits=5}function me(e,t,r,i){var a,o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),n.arraySet(o.window,t,r-i,a,o.wnext),i-=a,i?(n.arraySet(o.window,t,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=a(r.check,xe,2,0),se=0,le=0,r.mode=k;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",r.mode=J;break}if((15&se)!==w){e.msg="unknown compression method",r.mode=J;break}if(se>>>=4,le-=4,Ee=8+(15&se),0===r.wbits)r.wbits=Ee;else if(Ee>r.wbits){e.msg="invalid window size",r.mode=J;break}r.dmax=1<>8&1),512&r.flags&&(xe[0]=255&se,xe[1]=se>>>8&255,r.check=a(r.check,xe,2,0)),se=0,le=0,r.mode=S;case S:while(le<32){if(0===ae)break e;ae--,se+=ee[re++]<>>8&255,xe[2]=se>>>16&255,xe[3]=se>>>24&255,r.check=a(r.check,xe,4,0)),se=0,le=0,r.mode=C;case C:while(le<16){if(0===ae)break e;ae--,se+=ee[re++]<>8),512&r.flags&&(xe[0]=255&se,xe[1]=se>>>8&255,r.check=a(r.check,xe,2,0)),se=0,le=0,r.mode=T;case T:if(1024&r.flags){while(le<16){if(0===ae)break e;ae--,se+=ee[re++]<>>8&255,r.check=a(r.check,xe,2,0)),se=0,le=0}else r.head&&(r.head.extra=null);r.mode=x;case x:if(1024&r.flags&&(he=r.length,he>ae&&(he=ae),he&&(r.head&&(Ee=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,ee,re,he,Ee)),512&r.flags&&(r.check=a(r.check,ee,he,re)),ae-=he,re+=he,r.length-=he),r.length))break e;r.length=0,r.mode=R;case R:if(2048&r.flags){if(0===ae)break e;he=0;do{Ee=ee[re+he++],r.head&&Ee&&r.length<65536&&(r.head.name+=String.fromCharCode(Ee))}while(Ee&&he>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=F;break;case L:while(le<32){if(0===ae)break e;ae--,se+=ee[re++]<>>=7&le,le-=7&le,r.mode=q;break}while(le<3){if(0===ae)break e;ae--,se+=ee[re++]<>>=1,le-=1,3&se){case 0:r.mode=B;break;case 1:if(pe(r),r.mode=j,t===d){se>>>=2,le-=2;break e}break;case 2:r.mode=N;break;case 3:e.msg="invalid block type",r.mode=J}se>>>=2,le-=2;break;case B:se>>>=7&le,le-=7≤while(le<32){if(0===ae)break e;ae--,se+=ee[re++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=J;break}if(r.length=65535&se,se=0,le=0,r.mode=P,t===d)break e;case P:r.mode=D;case D:if(he=r.length,he){if(he>ae&&(he=ae),he>oe&&(he=oe),0===he)break e;n.arraySet(te,ee,re,he,ne),ae-=he,re+=he,oe-=he,ne+=he,r.length-=he;break}r.mode=F;break;case N:while(le<14){if(0===ae)break e;ae--,se+=ee[re++]<>>=5,le-=5,r.ndist=1+(31&se),se>>>=5,le-=5,r.ncode=4+(15&se),se>>>=4,le-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=J;break}r.have=0,r.mode=z;case z:while(r.have>>=3,le-=3}while(r.have<19)r.lens[Re[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,Se={bits:r.lenbits},ke=s(l,r.lens,0,19,r.lencode,0,r.work,Se),r.lenbits=Se.bits,ke){e.msg="invalid code lengths set",r.mode=J;break}r.have=0,r.mode=U;case U:while(r.have>>24,ve=Te>>>16&255,ye=65535&Te,ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<>>=ge,le-=ge,r.lens[r.have++]=ye;else{if(16===ye){Ce=ge+2;while(le>>=ge,le-=ge,0===r.have){e.msg="invalid bit length repeat",r.mode=J;break}Ee=r.lens[r.have-1],he=3+(3&se),se>>>=2,le-=2}else if(17===ye){Ce=ge+3;while(le>>=ge,le-=ge,Ee=0,he=3+(7&se),se>>>=3,le-=3}else{Ce=ge+7;while(le>>=ge,le-=ge,Ee=0,he=11+(127&se),se>>>=7,le-=7}if(r.have+he>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=J;break}while(he--)r.lens[r.have++]=Ee}}if(r.mode===J)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=J;break}if(r.lenbits=9,Se={bits:r.lenbits},ke=s(u,r.lens,0,r.nlen,r.lencode,0,r.work,Se),r.lenbits=Se.bits,ke){e.msg="invalid literal/lengths set",r.mode=J;break}if(r.distbits=6,r.distcode=r.distdyn,Se={bits:r.distbits},ke=s(f,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Se),r.distbits=Se.bits,ke){e.msg="invalid distances set",r.mode=J;break}if(r.mode=j,t===d)break e;case j:r.mode=W;case W:if(ae>=6&&oe>=258){e.next_out=ne,e.avail_out=oe,e.next_in=re,e.avail_in=ae,r.hold=se,r.bits=le,o(e,fe),ne=e.next_out,te=e.output,oe=e.avail_out,re=e.next_in,ee=e.input,ae=e.avail_in,se=r.hold,le=r.bits,r.mode===F&&(r.back=-1);break}for(r.back=0;;){if(Te=r.lencode[se&(1<>>24,ve=Te>>>16&255,ye=65535&Te,ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<>be)],ge=Te>>>24,ve=Te>>>16&255,ye=65535&Te,be+ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<>>=be,le-=be,r.back+=be}if(se>>>=ge,le-=ge,r.back+=ge,r.length=ye,0===ve){r.mode=Y;break}if(32&ve){r.back=-1,r.mode=F;break}if(64&ve){e.msg="invalid literal/length code",r.mode=J;break}r.extra=15&ve,r.mode=X;case X:if(r.extra){Ce=r.extra;while(le>>=r.extra,le-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=H;case H:for(;;){if(Te=r.distcode[se&(1<>>24,ve=Te>>>16&255,ye=65535&Te,ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<>be)],ge=Te>>>24,ve=Te>>>16&255,ye=65535&Te,be+ge<=le)break;if(0===ae)break e;ae--,se+=ee[re++]<>>=be,le-=be,r.back+=be}if(se>>>=ge,le-=ge,r.back+=ge,64&ve){e.msg="invalid distance code",r.mode=J;break}r.offset=ye,r.extra=15&ve,r.mode=Z;case Z:if(r.extra){Ce=r.extra;while(le>>=r.extra,le-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=J;break}r.mode=G;case G:if(0===oe)break e;if(he=fe-oe,r.offset>he){if(he=r.offset-he,he>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=J;break}he>r.wnext?(he-=r.wnext,ce=r.wsize-he):ce=r.wnext-he,he>r.length&&(he=r.length),de=r.window}else de=te,ce=ne-r.offset,he=r.length;he>oe&&(he=oe),oe-=he,r.length-=he;do{te[ne++]=de[ce++]}while(--he);0===r.length&&(r.mode=W);break;case Y:if(0===oe)break e;te[ne++]=r.length,oe--,r.mode=W;break;case q:if(r.wrap){while(le<32){if(0===ae)break e;ae--,se|=ee[re++]<=1;I--)if(0!==j[I])break;if(F>I&&(F=I),0===I)return m[g++]=20971520,m[g++]=20971520,y.bits=1,0;for(L=1;L0&&(e===s||1!==I))return-1;for(W[1]=0,A=1;Aa||e===u&&D>o)return 1;for(;;){C=A-B,v[O]S?(T=X[H+v[O]],x=z[U+v[O]]):(T=96,x=0),b=1<>B)+_]=C<<24|T<<16|x|0}while(0!==_);b=1<>=1;if(0!==b?(N&=b-1,N+=b):N=0,O++,0===--j[A]){if(A===I)break;A=t[r+v[O]]}if(A>F&&(N&E)!==w){0===B&&(B=F),k+=L,M=A-B,P=1<a||e===u&&D>o)return 1;w=N&E,m[w]=F<<24|M<<16|k-g|0}}return 0!==N&&(m[k+N]=A-B<<24|64<<16|0),y.bits=F,0}},{"../utils/common":50}],60:[function(e,t,r){"use strict";t.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"}},{}],61:[function(e,t,r){"use strict";var n=e("../utils/common"),i=4,a=0,o=1,s=2;function l(e){var t=e.length;while(--t>=0)e[t]=0}var u=0,f=1,h=2,c=3,d=258,p=29,m=256,g=m+1+p,v=30,y=19,b=2*g+1,_=15,w=16,E=7,k=256,S=16,C=17,T=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],R=[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],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=512,I=new Array(2*(g+2));l(I);var F=new Array(2*v);l(F);var M=new Array(L);l(M);var B=new Array(d-c+1);l(B);var P=new Array(p);l(P);var D,N,z,U=new Array(v);function j(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function W(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function X(e){return e<256?M[e]:M[256+(e>>>7)]}function H(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Z(e,t,r){e.bi_valid>w-r?(e.bi_buf|=t<>w-e.bi_valid,e.bi_valid+=r-w):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function q(e){16===e.bi_valid?(H(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function V(e,t){var r,n,i,a,o,s,l=t.dyn_tree,u=t.max_code,f=t.stat_desc.static_tree,h=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=_;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;rp&&(a=p,m++),l[2*n+1]=a,n>u||(e.bl_count[a]++,o=0,n>=d&&(o=c[n-d]),s=l[2*n],e.opt_len+=s*(a+o),h&&(e.static_len+=s*(f[2*n+1]+o)));if(0!==m){do{a=p-1;while(0===e.bl_count[a])a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--){n=e.bl_count[a];while(0!==n)i=e.heap[--r],i>u||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}}function K(e,t,r){var n,i,a=new Array(_+1),o=0;for(n=1;n<=_;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Y(a[s]++,s))}}function J(){var e,t,r,n,i,a=new Array(_+1);for(r=0,n=0;n>=7;n8?H(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ee(e,t,r,i){Q(e),i&&(H(e,r),H(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function te(e,t,r,n){var i=2*t,a=2*r;return e[i]>1;r>=1;r--)re(e,a,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],re(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,re(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],V(e,t),K(a,u,e.bl_count)}function ae(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s=3;t--)if(0!==e.bl_tree[2*O[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function le(e,t,r,n){var i;for(Z(e,t-257,5),Z(e,r-1,5),Z(e,n-4,4),i=0;i>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t0?(e.strm.data_type===s&&(e.strm.data_type=ue(e)),ie(e,e.l_desc),ie(e,e.d_desc),l=se(e),a=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=a&&(a=o)):a=o=r+5,r+4<=a&&-1!==t?ce(e,t,r,n):e.strategy===i||o===a?(Z(e,(f<<1)+(n?1:0),3),ne(e,I,F)):(Z(e,(h<<1)+(n?1:0),3),le(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),ne(e,e.dyn_ltree,e.dyn_dtree)),$(e),n&&Q(e)}function me(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(B[r]+m+1)]++,e.dyn_dtree[2*X(t)]++),e.last_lit===e.lit_bufsize-1}r._tr_init=he,r._tr_stored_block=ce,r._tr_flush_block=pe,r._tr_tally=me,r._tr_align=de},{"../utils/common":50}],62:[function(e,t,r){"use strict";function n(){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}t.exports=n},{}],63:[function(e,t,r){(function(e){"use strict";function r(t,r,n,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:a=new Array(s-1),o=0;while(o1)for(var r=1;r0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=h(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?S(e,o,t,!1):F(e,o)):S(e,o,t,!1))):n||(o.reading=!1));return T(o)}function S(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),F(e,t)}function C(e,t){var r;return c(t)||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function T(e){return!e.ended&&(e.needReadable||e.length=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,L(e)}}function L(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(I,e):I(e))}function I(e){m("emit readable"),e.emit("readable"),z(e)}function F(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(M,e,t))}function M(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=j(e,t.buffer,t.decoder),r);var r}function j(e,t,r){var n;return ea.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,0===e){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}function X(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;while(n=n.next){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,0===e){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}function H(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(Z,t,e))}function Z(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function G(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):L(this),null;if(e=A(e,t),0===e&&t.ended)return 0===t.length&&H(this),null;var n,i=t.needReadable;return m("need readable",i),(0===t.length||t.length-e0?U(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&H(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(e,r){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e);break}a.pipesCount+=1,m("pipe count=%d opts=%j",a.pipesCount,r);var o=(!r||!1!==r.end)&&e!==t.stdout&&e!==t.stderr,l=o?f:w;function u(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function f(){m("onend"),e.end()}a.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",u);var h=B(n);e.on("drain",h);var c=!1;function d(){m("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",h),e.removeListener("error",v),e.removeListener("unpipe",u),n.removeListener("end",f),n.removeListener("end",w),n.removeListener("data",g),c=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||h()}var p=!1;function g(t){m("ondata"),p=!1;var r=e.write(t);!1!==r||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==G(a.pipes,e))&&!c&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(t){m("onerror",t),w(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),w()}function b(){m("onfinish"),e.removeListener("close",y),w()}function w(){m("unpipe"),n.unpipe(e)}return n.on("data",g),_(e,"error",v),e.once("close",y),e.once("finish",b),e.emit("pipe",n),a.flowing||(m("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a-1?i:a.nextTick;_.WritableState=b;var u=Object.create(e("core-util-is"));u.inherits=e("inherits");var f={deprecate:e("util-deprecate")},h=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,d=n.Uint8Array||function(){};function p(e){return c.from(e)}function m(e){return c.isBuffer(e)||e instanceof d}var g,v=e("./internal/streams/destroy");function y(){}function b(t,r){s=s||e("./_stream_duplex"),t=t||{};var n=r instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,a=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){R(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function _(t){if(s=s||e("./_stream_duplex"),!g.call(_,this)&&!(this instanceof s))return new _(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),h.call(this)}function w(e,t){var r=new Error("write after end");e.emit("error",r),a.nextTick(t,r)}function E(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(n,o),i=!1),i}function k(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=c.from(t,r)),t}function S(e,t,r,n,i,a){if(!r){var o=k(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||P(this,n,r)},Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=v.destroy,_.prototype._undestroy=v.undestroy,_.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":66,"./internal/streams/destroy":72,"./internal/streams/stream":73,_process:64,"core-util-is":4,inherits:8,"process-nextick-args":63,"safe-buffer":78,timers:82,"util-deprecate":83}],71:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("safe-buffer").Buffer,a=e("util");function o(e,t,r){e.copy(t,r)}t.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,r=""+t.data;while(t=t.next)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var t=i.allocUnsafe(e>>>0),r=this.head,n=0;while(r)o(r.data,t,n),n+=r.data.length,r=r.next;return t},e}(),a&&a.inspect&&a.inspect.custom&&(t.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":78,util:2}],72:[function(e,t,r){"use strict";var n=e("process-nextick-args");function i(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}t.exports={destroy:i,undestroy:a}},{"process-nextick-args":63}],73:[function(e,t,r){t.exports=e("events").EventEmitter},{events:5}],74:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":75}],75:[function(e,t,r){r=t.exports=e("./lib/_stream_readable.js"),r.Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":66,"./lib/_stream_passthrough.js":67,"./lib/_stream_readable.js":68,"./lib/_stream_transform.js":69,"./lib/_stream_writable.js":70}],76:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":75}],77:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":70}],78:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,r),r.Buffer=o),a(i,o),o.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:3}],79:[function(e,t,r){(function(e){"use strict";t.exports="function"===typeof e?e:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}).call(this,e("timers").setImmediate)},{timers:82}],80:[function(e,t,r){t.exports=a;var n=e("events").EventEmitter,i=e("inherits");function a(){n.call(this)}i(a,n),a.Readable=e("readable-stream/readable.js"),a.Writable=e("readable-stream/writable.js"),a.Duplex=e("readable-stream/duplex.js"),a.Transform=e("readable-stream/transform.js"),a.PassThrough=e("readable-stream/passthrough.js"),a.Stream=a,a.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},{events:5,inherits:8,"readable-stream/duplex.js":65,"readable-stream/passthrough.js":74,"readable-stream/readable.js":75,"readable-stream/transform.js":76,"readable-stream/writable.js":77}],81:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function f(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,r=f(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}r.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"===typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&o.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"===typeof n?n:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":64,timers:82}],83:[function(e,r,n){(function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;function i(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function n(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}r.exports=t}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],84:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.HandleZip=void 0;var i=n(e("jszip")),a=e("./common/method"),o=function(){function e(e){this.uploadFile=e}return e.prototype.unzipFile=function(e,t){i["default"].loadAsync(this.uploadFile).then((function(t){var r={},n=Object.keys(t.files).length,i=0;t.forEach((function(t,a){var o=a.name,s=o.split("."),l=s[s.length-1].toLowerCase(),u="string";l in{png:1,jpeg:1,jpg:1,gif:1,bmp:1,tif:1,webp:1}?u="base64":"emf"==l&&(u="arraybuffer"),a.async(u).then((function(t){"base64"==u&&(t="data:image/"+l+";base64,"+t),r[a.name]=t,n==i+1&&e(r),i++}))}))}),(function(e){t(e)}))},e.prototype.unzipFileByUrl=function(e,t,r){new i["default"];a.getBinaryContent(e,(function(e,n){if(e)throw e;i["default"].loadAsync(n).then((function(e){var r={},n=Object.keys(e.files).length,i=0;e.forEach((function(e,a){var o=a.name,s=o.split("."),l=s[s.length-1].toLowerCase(),u="string";l in{png:1,jpeg:1,jpg:1,gif:1,bmp:1,tif:1,webp:1}?u="base64":"emf"==l&&(u="arraybuffer"),a.async(u).then((function(e){"base64"==u&&(e="data:image/"+l+";base64,"+e),r[a.name]=e,n==i+1&&t(r),i++}))}))}),(function(e){r(e)}))}))},e.prototype.newZipFile=function(){var e=new i["default"];this.workBook=e},e.prototype.addToZipFile=function(e,t){if(null==this.workBook){var r=new i["default"];this.workBook=r}this.workBook.file(e,t)},e}();r.HandleZip=o},{"./common/method":93,jszip:20}],85:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LuckyImageBase=r.LuckysheetCalcChain=r.LuckySheetConfigMerge=r.LuckySheetborderInfoCellValueStyle=r.LuckySheetborderInfoCellValue=r.LuckySheetborderInfoCellForImp=r.LuckyConfig=r.LuckyInlineString=r.LuckySheetCellFormat=r.LuckySheetCelldataValue=r.LuckySheetCelldataBase=r.LuckyFileInfo=r.LuckySheetBase=r.LuckyFileBase=void 0;var n=function(){function e(){}return e}();r.LuckyFileBase=n;var i=function(){function e(){}return e}();r.LuckySheetBase=i;var a=function(){function e(){}return e}();r.LuckyFileInfo=a;var o=function(){function e(){}return e}();r.LuckySheetCelldataBase=o;var s=function(){function e(){}return e}();r.LuckySheetCelldataValue=s;var l=function(){function e(){}return e}();r.LuckySheetCellFormat=l;var u=function(){function e(){}return e}();r.LuckyInlineString=u;var f=function(){function e(){}return e}();r.LuckyConfig=f;var h=function(){function e(){}return e}();r.LuckySheetborderInfoCellForImp=h;var c=function(){function e(){}return e}();r.LuckySheetborderInfoCellValue=c;var d=function(){function e(){}return e}();r.LuckySheetborderInfoCellValueStyle=d;var p=function(){function e(){}return e}();r.LuckySheetConfigMerge=p;var m=function(){function e(){}return e}();r.LuckysheetCalcChain=m;var g=function(){function e(){}return e}();r.LuckyImageBase=g},{}],86:[function(e,t,r){"use strict";var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.LuckySheetCelldata=void 0;var i=e("./ReadXml"),a=e("../common/method"),o=e("../common/constant"),s=e("./LuckyBase"),l=function(e){function t(t,r,n,i,o,s){var l=e.call(this)||this;l.cell=t,l.sheetFile=o,l.styles=r,l.sharedStrings=n,l.readXml=s,l.mergeCells=i;var u=t.attributeList,f=u.r,h=u.s,c=u.t,d=a.getcellrange(f);return l.r=d.row[0],l.c=d.column[0],l.v=l.generateValue(h,c),l}return n(t,e),t.prototype.generateValue=function(e,t){var r=this,n=this.cell.getInnerElements("v"),l=this.cell.getInnerElements("f");null==n&&(n=this.cell.getInnerElements("t"));var u=this.styles["cellXfs"],f=this.styles["cellStyleXfs"],h=(this.styles["cellStyles"],this.styles["fonts"]),c=this.styles["fills"],d=this.styles["borders"],p=this.styles["numfmts"],m=this.styles["clrScheme"],g=this.sharedStrings,v=new s.LuckySheetCelldataValue;if(null!=l){var y=l[0],b=y.attributeList,_=b.t,w=b.ref,E=b.si,k=l[0].value;"shared"==_&&(this._fomulaRef=w,this._formulaType=_,this._formulaSi=E),(null!=w||null!=k&&k.length>0)&&(k=a.escapeCharacter(k),v.f="="+k)}var S,C=null;if(null!=e){var T=parseInt(e),x=u[T],R=x.attributeList.xfId,A=void 0,O=void 0,L=void 0,I=void 0,F=void 0,M=void 0,B=void 0,P=void 0;if(null!=R){var D=f[parseInt(R)],N=(b=D.attributeList,b.applyNumberFormat),z=b.applyFont,U=b.applyFill,j=b.applyBorder,W=b.applyAlignment;if(b.applyProtection,S=b.quotePrefix,"0"!=N&&null!=b.numFmtId&&(A=b.numFmtId),"0"!=z&&null!=b.fontId&&(O=b.fontId),"0"!=U&&null!=b.fillId&&(L=b.fillId),"0"!=j&&null!=b.borderId&&(I=b.borderId),null!=W&&"0"!=W){var X=D.getInnerElements("alignment");if(null!=X){var H=X[0].attributeList;null!=H.horizontal&&(F=H.horizontal),null!=H.vertical&&(M=H.vertical),null!=H.wrapText&&(B=H.wrapText),null!=H.textRotation&&(P=H.textRotation),null!=H.shrinkToFit&&H.shrinkToFit,null!=H.indent&&H.indent}}}var Z=x.attributeList.applyNumberFormat,G=x.attributeList.applyFont,Y=x.attributeList.applyFill,q=x.attributeList.applyBorder,V=x.attributeList.applyAlignment;if(null!=x.attributeList.applyProtection&&x.attributeList.applyProtection,null!=x.attributeList.quotePrefix&&(S=x.attributeList.quotePrefix),"0"!=Z&&null!=x.attributeList.numFmtId&&(A=x.attributeList.numFmtId),"0"!=G&&(O=x.attributeList.fontId),"0"!=Y&&(L=x.attributeList.fillId),"0"!=q&&(I=x.attributeList.borderId),"0"!=V){X=x.getInnerElements("alignment");if(null!=X&&X.length>0){b=X[0].attributeList;null!=b.horizontal&&(F=b.horizontal),null!=b.vertical&&(M=b.vertical),null!=b.wrapText&&(B=b.wrapText),null!=b.textRotation&&(P=b.textRotation),null!=b.shrinkToFit&&b.shrinkToFit,null!=b.indent&&b.indent}}if(void 0!=A){var K=p[parseInt(A)],J=new s.LuckySheetCellFormat;J.fa=a.escapeCharacter(K),J.t=t,v.ct=J}if(void 0!=L){var $=parseInt(L),Q=c[$],ee=this.getBackgroundByFill(Q,m);null!=ee&&(v.bg=ee)}if(void 0!=O){var te=parseInt(O),re=h[te];if(null!=re){var ne=re.getInnerElements("sz"),ie=re.getInnerElements("color"),ae=re.getInnerElements("name"),oe=re.getInnerElements("family"),se=(re.getInnerElements("charset"),re.getInnerElements("b")),le=re.getInnerElements("i"),ue=re.getInnerElements("strike"),fe=re.getInnerElements("u");if(null!=ne&&ne.length>0){var he=ne[0].attributeList.val;null!=he&&(v.fs=parseInt(he))}if(null!=ie&&ie.length>0){var ce=ie[0],de=i.getColor(ce,this.styles,"t");null!=de&&(v.fc=de)}if(null!=oe&&oe.length>0){var pe=oe[0].attributeList.val;null!=pe&&(C=o.fontFamilys[pe])}if(null!=ae&&ae.length>0){pe=ae[0].attributeList.val;null!=pe&&(v.ff=pe)}if(null!=se&&se.length>0){var me=se[0].attributeList.val;v.bl="0"==me?0:1}if(null!=le&&le.length>0){var ge=le[0].attributeList.val;v.it="0"==ge?0:1}if(null!=ue&&ue.length>0){var ve=ue[0].attributeList.val;v.cl="0"==ve?0:1}if(null!=fe&&fe.length>0){var ye=fe[0].attributeList.val;v.un="single"==ye?1:"double"==ye?2:"singleAccounting"==ye?3:"doubleAccounting"==ye?4:0}}}if(void 0!=F&&(v.ht="center"==F||"centerContinuous"==F?0:"left"==F?1:"right"==F?2:"distributed"==F?0:"fill"==F||"general"==F?1:"justify"==F?0:1),void 0!=M&&(v.vt="bottom"==M?2:"center"==M||"distributed"==M||"justify"==M?0:1),v.tb=void 0!=B&&"1"==B?2:1,void 0!=P&&("255"==P?v.tr=3:(v.tr=0,v.rt=parseInt(P))),void 0!=I){var be=parseInt(I),_e=d[be],we=new s.LuckySheetborderInfoCellForImp;we.rangeType="cell";var Ee=new s.LuckySheetborderInfoCellValue;Ee.row_index=this.r,Ee.col_index=this.c;var ke=_e.getInnerElements("left"),Se=_e.getInnerElements("right"),Ce=_e.getInnerElements("top"),Te=_e.getInnerElements("bottom"),xe=_e.getInnerElements("diagonal"),Re=_e.getInnerElements("start"),Ae=_e.getInnerElements("end"),Oe=this.getBorderInfo(ke),Le=this.getBorderInfo(Se),Ie=this.getBorderInfo(Ce),Fe=this.getBorderInfo(Te),Me=(this.getBorderInfo(xe),this.getBorderInfo(Re)),Be=this.getBorderInfo(Ae),Pe=!1;null!=Me&&null!=Me.color&&(Ee.l=Me,Pe=!0),null!=Be&&null!=Be.color&&(Ee.r=Be,Pe=!0),null!=Oe&&null!=Oe.color&&(Ee.l=Oe,Pe=!0),null!=Le&&null!=Le.color&&(Ee.r=Le,Pe=!0),null!=Ie&&null!=Ie.color&&(Ee.t=Ie,Pe=!0),null!=Fe&&null!=Fe.color&&(Ee.b=Fe,Pe=!0),Pe&&(we.value=Ee,this._borderObject=we)}}else v.tb=1;if(null!=n){var De=n[0].value;if(/&#\d+;/.test(De)&&(De=this.htmlDecode(De)),t==o.ST_CellType["SharedString"]){var Ne=parseInt(n[0].value),ze=g[Ne],Ue=ze.getInnerElements("r");if(null==Ue){var je=ze.getInnerElements("t");if(null!=je){var We="";if(je.forEach((function(e){We+=e.value})),We=a.escapeCharacter(We),"Roman"==C&&We.length>0){var Xe=We.split(""),He=null,Ze="",Ge=null,Ye="Times New Roman";null!=v.ff&&(Ye=v.ff);J=v.ct;null==J&&(J=new s.LuckySheetCellFormat),null==J.s&&(J.s=[]);for(var qe=0;qe-1||We.indexOf("\n")>-1){$e=new s.LuckyInlineString;$e.v=We;J=v.ct;null==J&&(J=new s.LuckySheetCellFormat),null!=v.ff&&($e.ff=v.ff),null!=v.fc&&($e.fc=v.fc),null!=v.fs&&($e.fs=v.fs),null!=v.cl&&($e.cl=v.cl),null!=v.un&&($e.un=v.un),null!=v.bl&&($e.bl=v.bl),null!=v.it&&($e.it=v.it),J.t="inlineStr",J.s=[$e],v.ct=J}else v.v=We,S="1"}}else{var et=[];Ue.forEach((function(e){var t=e.getInnerElements("t"),n=e.getInnerElements("rPr"),o=new s.LuckyInlineString;if(null!=t&&t.length>0){var l=t[0].value;l=r.replaceSpecialWrap(l),l=a.escapeCharacter(l),o.v=l}if(null!=n&&n.length>0){var u=n[0],f=i.getlineStringAttr(u,"sz"),h=i.getlineStringAttr(u,"rFont"),c=(i.getlineStringAttr(u,"family"),i.getlineStringAttr(u,"charset"),i.getlineStringAttr(u,"scheme"),i.getlineStringAttr(u,"b")),d=i.getlineStringAttr(u,"i"),p=i.getlineStringAttr(u,"u"),m=i.getlineStringAttr(u,"strike"),g=i.getlineStringAttr(u,"vertAlign"),y=void 0,b=u.getInnerElements("color");null!=b&&b.length>0&&(y=i.getColor(b[0],r.styles,"t"));var _=void 0;null!=h&&(_=h),null!=_?o.ff=_:null!=v.ff&&(o.ff=v.ff),null!=y?o.fc=y:null!=v.fc&&(o.fc=v.fc),null!=f?o.fs=parseInt(f):null!=v.fs&&(o.fs=v.fs),null!=m?o.cl=parseInt(m):null!=v.cl&&(o.cl=v.cl),null!=p?o.un=parseInt(p):null!=v.un&&(o.un=v.un),null!=c?o.bl=parseInt(c):null!=v.bl&&(o.bl=v.bl),null!=d?o.it=parseInt(d):null!=v.it&&(o.it=v.it),null!=g&&(o.va=parseInt(g))}else null==o.ff&&null!=v.ff&&(o.ff=v.ff),null==o.fc&&null!=v.fc&&(o.fc=v.fc),null==o.fs&&null!=v.fs&&(o.fs=v.fs),null==o.cl&&null!=v.cl&&(o.cl=v.cl),null==o.un&&null!=v.un&&(o.un=v.un),null==o.bl&&null!=v.bl&&(o.bl=v.bl),null==o.it&&null!=v.it&&(o.it=v.it);et.push(o)}));J=v.ct;null==J&&(J=new s.LuckySheetCellFormat),J.t="inlineStr",J.s=et,v.ct=J}}else De=a.escapeCharacter(De),v.v=De}return null!=S&&(v.qp=parseInt(S)),v},t.prototype.replaceSpecialWrap=function(e){return e=e.replace(/_x000D_/g,"").replace(/ /g,"\r\n").replace(/ /g,"\r").replace(/ /g,"\n"),e},t.prototype.getBackgroundByFill=function(e,t){var r=e.getInnerElements("patternFill");if(null!=r){var n=r[0],a=n.getInnerElements("fgColor"),o=n.getInnerElements("bgColor"),s=void 0,l=void 0;if(null!=a){var u=a[0];s=i.getColor(u,this.styles)}if(null!=o){var f=o[0];l=i.getColor(f,this.styles)}if(null!=s)return s;if(null!=l)return l}else{var h=e.getInnerElements("gradientFill");if(null!=h)return null}},t.prototype.getBorderInfo=function(e){if(null==e)return null;var t=e[0],r=t.attributeList,n=(this.styles["clrScheme"],r.style);if(null==n||"none"==n)return null;var a=t.getInnerElements("color"),l="#000000";if(null!=a){var u=a[0];l=i.getColor(u,this.styles,"b"),null==l&&(l="#000000")}var f=new s.LuckySheetborderInfoCellValueStyle;return f.style=o.borderTypes[n],f.color=l,f},t.prototype.htmlDecode=function(e){return e.replace(/&#(x)?([^&]{1,5});?/g,(function(e,t,r){return String.fromCharCode(parseInt(r,t?16:10))}))},t}(s.LuckySheetCelldataBase);r.LuckySheetCelldata=l},{"../common/constant":91,"../common/method":93,"./LuckyBase":85,"./ReadXml":90}],87:[function(e,t,r){"use strict";var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.LuckyFile=void 0;var i=e("./LuckySheet"),a=e("../common/constant"),o=e("./ReadXml"),s=e("../common/method"),l=e("./LuckyBase"),u=e("./LuckyImage"),f=function(e){function t(t,r){var n=e.call(this)||this;n.columnWidthSet=[],n.rowHeightSet=[],n.files=t,n.fileName=r,n.readXml=new o.ReadXml(t),n.getSheetNameList(),n.sharedStrings=n.readXml.getElementsByTagName("sst/si",a.sharedStringsFile),n.calcChain=n.readXml.getElementsByTagName("calcChain/c",a.calcChainFile),n.styles={},n.styles["cellXfs"]=n.readXml.getElementsByTagName("cellXfs/xf",a.stylesFile),n.styles["cellStyleXfs"]=n.readXml.getElementsByTagName("cellStyleXfs/xf",a.stylesFile),n.styles["cellStyles"]=n.readXml.getElementsByTagName("cellStyles/cellStyle",a.stylesFile),n.styles["fonts"]=n.readXml.getElementsByTagName("fonts/font",a.stylesFile),n.styles["fills"]=n.readXml.getElementsByTagName("fills/fill",a.stylesFile),n.styles["borders"]=n.readXml.getElementsByTagName("borders/border",a.stylesFile),n.styles["clrScheme"]=n.readXml.getElementsByTagName("a:clrScheme/a:dk1|a:lt1|a:dk2|a:lt2|a:accent1|a:accent2|a:accent3|a:accent4|a:accent5|a:accent6|a:hlink|a:folHlink",a.theme1File),n.styles["indexedColors"]=n.readXml.getElementsByTagName("colors/indexedColors/rgbColor",a.stylesFile),n.styles["mruColors"]=n.readXml.getElementsByTagName("colors/mruColors/color",a.stylesFile),n.imageList=new u.ImageList(t);for(var i=n.readXml.getElementsByTagName("numFmt/numFmt",a.stylesFile),l=JSON.parse(JSON.stringify(a.numFmtDefault)),f=0;f0?r[0].value:"",this.info.lastmodifiedby=n.length>0?n[0].value:"",this.info.createdTime=i.length>0?i[0].value:"",this.info.modifiedTime=o.length>0?o[0].value:"",this.info.company=e.length>0?e[0].value:"",this.info.appversion=t.length>0?t[0].value:""},t.prototype.getSheetsFull=function(e){void 0===e&&(e=!0);var t=this.readXml.getElementsByTagName("sheets/sheet",a.workBookFile),r={};for(var n in t){var o=t[n];r[o.attributeList.name]=o.attributeList["sheetId"]}this.sheets=[];var l=0;for(var n in t){o=t[n];var u=o.attributeList.name,f=o.attributeList["sheetId"],h=o.attributeList["r:id"],c=this.getSheetFileBysheetId(h),d=this.readXml.getElementsByTagName("worksheet/drawing",c),p=void 0,m=void 0;if(null!=d&&d.length>0){var g=d[0].attributeList,v=s.getXmlAttibute(g,"r:id",null);null!=v&&(p=this.getDrawingFile(v,c),m=this.getDrawingRelsFile(p))}if(null!=c){var y=new i.LuckySheet(u,f,l,e,{sheetFile:c,readXml:this.readXml,sheetList:r,styles:this.styles,sharedStrings:this.sharedStrings,calcChain:this.calcChain,imageList:this.imageList,drawingFile:p,drawingRelsFile:m});this.columnWidthSet=[],this.rowHeightSet=[],this.imagePositionCaculation(y),this.sheets.push(y),l++}}},t.prototype.extendArray=function(e,t,r,n,i){if(!(e0&&(s=t[a-1]);for(var l=a;l<=o;l++){var u=r,f=l.toString();f in n?u=0:f in i&&(u=i[f]),s+=Math.round(u+1),t.push(s)}}},t.prototype.imagePositionCaculation=function(e){var t=e.images,r=e.defaultColWidth,n=e.defaultRowHeight,i={};e.config.colhidden&&(i=e.config.colhidden);var a={};e.config.columnlen&&(a=e.config.columnlen);var o={};e.config.rowhidden&&(o=e.config.rowhidden);var s={};for(var l in e.config.rowlen&&(s=e.config.rowlen),t){var u=t[l],f=u.fromCol,h=u.fromColOff,c=u.fromRow,d=u.fromRowOff,p=u.toCol,m=u.toColOff,g=u.toRow,v=u.toRowOff,y=0,b=0,_=0,w=0;f>=this.columnWidthSet.length&&this.extendArray(f,this.columnWidthSet,r,i,a),y=0==f?0:this.columnWidthSet[f-1],y+=h,c>=this.rowHeightSet.length&&this.extendArray(c,this.rowHeightSet,n,o,s),b=0==c?0:this.rowHeightSet[c-1],b+=d,p>=this.columnWidthSet.length&&this.extendArray(p,this.columnWidthSet,r,i,a),_=0==p?0:this.columnWidthSet[p-1],_=_+m-y,g>=this.rowHeightSet.length&&this.extendArray(g,this.rowHeightSet,n,o,s),w=0==g?0:this.rowHeightSet[g-1],w=w+v-b,console.log(r,i,a),console.log(f,this.columnWidthSet[f],h),console.log(p,this.columnWidthSet[p],m,JSON.stringify(this.columnWidthSet)),u.originWidth=_,u.originHeight=w,u.crop.height=w,u.crop.width=_,u["default"].height=w,u["default"].left=y,u["default"].top=b,u["default"].width=_}console.log(this.columnWidthSet,this.rowHeightSet)},t.prototype.getDrawingFile=function(e,t){var r="xl/worksheets/_rels/",n=t.split("/"),i=n[n.length-1],a=r+i+".rels",o=this.readXml.getElementsByTagName("Relationships/Relationship",a);if(o.length>0)for(var l=0;l-1){var r=t.split("."),n=r[r.length-1].toLowerCase();if(n in{png:1,jpeg:1,jpg:1,gif:1,bmp:1,tif:1,webp:1,emf:1})if("emf"==n){var i,o,s,l=0,u=1,f=new a.ToContext2D(l,u);for(var h in a.FromEMF.K=[],i=a.FromEMF.C,o=a.FromEMF.K,s=4,i)o[i[h]]=h.slice(s);a.FromEMF.Parse(e[t],f),this.images[t]=f.canvas.toDataURL("image/png")}else this.images[t]=e[t]}}return e.prototype.getImageByName=function(e){if(e in this.images){var t=this.images[e];return new s(e,t)}return null},e}();r.ImageList=o;var s=function(e){function t(t,r){var n=e.call(this)||this;return n.src=r,n}return n(t,e),t.prototype.setDefault=function(){},t}(i.LuckyImageBase)},{"../common/emf":92,"./LuckyBase":85}],89:[function(e,t,r){"use strict";var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.LuckySheet=void 0;var i=e("./LuckyCell"),a=e("../common/method"),o=e("./ReadXml"),s=e("./LuckyBase"),l=function(e){function t(t,r,n,i,l){void 0===i&&(i=!1);var u=e.call(this)||this;u.isInitialCell=i,u.readXml=l.readXml,u.sheetFile=l.sheetFile,u.styles=l.styles,u.sharedStrings=l.sharedStrings,u.calcChainEles=l.calcChain,u.sheetList=l.sheetList,u.imageList=l.imageList,u.name=t,u.index=r,u.order=n.toString(),u.config=new s.LuckyConfig,u.celldata=[],u.mergeCells=u.readXml.getElementsByTagName("mergeCells/mergeCell",u.sheetFile);u.styles["clrScheme"];var f=u.readXml.getElementsByTagName("sheetViews/sheetView",u.sheetFile),h="1",c="0",d="100",p="A1";if(f.length>0){var m=f[0].attributeList;h=a.getXmlAttibute(m,"showGridLines","1"),c=a.getXmlAttibute(m,"tabSelected","0"),d=a.getXmlAttibute(m,"zoomScale","100");var g=f[0].getInnerElements("selection");if(null!=g&&g.length>0){p=a.getXmlAttibute(g[0].attributeList,"activeCell","A1");var v=a.getcellrange(p,u.sheetList,r);u.luckysheet_select_save=[],u.luckysheet_select_save.push(v)}}u.showGridLines=h,u.status=c,u.zoomRatio=parseInt(d)/100;var y=u.readXml.getElementsByTagName("sheetPr/tabColor",u.sheetFile);if(null!=y&&y.length>0){var b=y[0],_=(m=b.attributeList,o.getColor(b,u.styles,"b"));u.color=_}var w,E,k=u.readXml.getElementsByTagName("sheetFormatPr",u.sheetFile);if(k.length>0){m=k[0].attributeList;w=a.getXmlAttibute(m,"defaultColWidth","9.21"),E=a.getXmlAttibute(m,"defaultRowHeight","19")}u.defaultColWidth=a.getColumnWidthPixel(parseFloat(w)),u.defaultRowHeight=a.getRowHeightPixel(parseFloat(E)),u.generateConfigColumnLenAndHidden();var S=u.generateConfigRowLenAndHiddenAddCell();if(null!=u.formulaRefList)for(var C in u.formulaRefList){var T=u.formulaRefList[C],x=T["mainRef"],R=x.cellValue,A=x.fv,O=R.r,L=R.c;for(var I in T)if("mainRef"!=I){var F=T[I],M=F.cellValue;if(null!=M){var B=M.r,P=M.c,D=A,N=B-O,z=P-L;N>0?D="="+a.fromulaRef.functionCopy(D,"down",N):N<0&&(D="="+a.fromulaRef.functionCopy(D,"up",Math.abs(N))),z>0?D="="+a.fromulaRef.functionCopy(D,"right",z):z<0&&(D="="+a.fromulaRef.functionCopy(D,"left",Math.abs(z))),M.v.f=D}}}null==u.calcChain&&(u.calcChain=[]);var U={};for(P=0;P0)for(W=0;W0&&te.length>0){var re=Q[0],ne=ee[0],ie=te[0],ae=a.getXmlAttibute(ie.attributeList,"r:embed",null),oe=u.getBase64ByRid(ae,V),se=0,le=0,ue=0,fe=0;oe.fromCol=u.getXdrValue(re.getInnerElements("xdr:col")),oe.fromColOff=a.getPxByEMUs(u.getXdrValue(re.getInnerElements("xdr:colOff"))),oe.fromRow=u.getXdrValue(re.getInnerElements("xdr:row")),oe.fromRowOff=a.getPxByEMUs(u.getXdrValue(re.getInnerElements("xdr:rowOff"))),oe.toCol=u.getXdrValue(ne.getInnerElements("xdr:col")),oe.toColOff=a.getPxByEMUs(u.getXdrValue(ne.getInnerElements("xdr:colOff"))),oe.toRow=u.getXdrValue(ne.getInnerElements("xdr:row")),oe.toRowOff=a.getPxByEMUs(u.getXdrValue(ne.getInnerElements("xdr:rowOff"))),oe.originWidth=ue,oe.originHeight=fe,oe.type="absolute"==$?"3":"oneCell"==$?"2":"1",oe.isFixedPos=!1,oe.fixedLeft=0,oe.fixedTop=0;var he={color:"#000",radius:0,style:"solid",width:0};oe.border=he;var ce={height:fe,offsetLeft:0,offsetTop:0,width:ue};oe.crop=ce;var de={height:fe,left:se,top:le,width:ue};oe["default"]=de,null==u.images&&(u.images={}),u.images[a.generateRandomIndex("image")]=oe}}}return u}return n(t,e),t.prototype.getXdrValue=function(e){return null==e||0==e.length?null:parseInt(e[0].value)},t.prototype.getBase64ByRid=function(e,t){var r=this.readXml.getElementsByTagName("Relationships/Relationship",t);if(null!=r&&r.length>0)for(var n=0;n-1){for(var n=e.split("|"),i="",a=0;a]+?[^/]>[\\s\\S]*?|<"+o+" [^>]+?/>|<"+o+">[\\s\\S]*?|<"+o+"/>"}i=i.substr(1,i.length),r=new RegExp(i,"g")}else r=new RegExp("<"+e+" [^>]+?[^/]>[\\s\\S]*?|<"+e+" [^>]+?/>|<"+e+">[\\s\\S]*?|<"+e+"/>","g");var s=t.match(r);return null==s?[]:s},e}(),s=function(e){function t(t){var r=e.call(this)||this;return r.originFile=t,r}return n(t,e),t.prototype.getElementsByTagName=function(e,t){var r,n=this.getFileByName(t),i=e.split("/");for(var a in i){var o=i[a];if(void 0==r)r=this.getElementsByOneTag(o,n);else if(r instanceof Array){var s=[];for(var u in r){var f=r[u];s=s.concat(this.getElementsByOneTag(o,f))}r=s}else r=this.getElementsByOneTag(o,r)}for(var h=[],c=0;c-1)return this.originFile[t];return""},t}(o);r.ReadXml=s;var l=function(e){function t(t){var r=e.call(this)||this;r.elementString=t,r.setValue();var n=new RegExp('[a-zA-Z0-9_:]*?=".*?"',"g"),i=r.container.match(n);if(r.attributeList={},null!=i)for(var a in i){var o=i[a];if(0!=o.length){var s=o.substr(0,o.indexOf("=")),l=o.substr(o.indexOf("=")+1);null!=s&&null!=l&&0!=s.length&&0!=l.length&&(r.attributeList[s]=l.substr(1,l.length-2))}}return r}return n(t,e),t.prototype.get=function(e){return this.attributeList[e]},t.prototype.getInnerElements=function(e){for(var r=this.getElementsByOneTag(e,this.elementString),n=[],i=0;i"==e.substr(e.length-2,2))this.value="",this.container=e;else{var t=this.getFirstTag(),r=new RegExp("(<"+t+" [^>]+?[^/]>)([\\s\\S]*?)|(<"+t+">)([\\s\\S]*?)","g"),n=r.exec(e);null!=n&&(null!=n[1]?(this.container=n[1],this.value=n[2]):(this.container=n[3],this.value=n[4]))}},t.prototype.getFirstTag=function(){var e=this.elementString,t=e.substr(0,e.indexOf(" "));return(""==t||t.indexOf(">")>-1)&&(t=e.substr(0,e.indexOf(">"))),t=t.substr(1,t.length),t},t}(o);function u(e,t){var r={};if(null==e||0==e.length)return t;for(var n in t){var i=t[n],a=parseInt(n),o=e[a];if(null==o)r[n]=i;else{var s=o.attributeList.rgb;r[n]=s}}return r}function f(e,t,r){void 0===r&&(r="g");var n,o=e.attributeList,s=t["clrScheme"],l=t["indexedColors"],f=(t["mruColors"],u(l,i.indexedColors)),h=o.indexed,c=o.rgb,d=o.theme,p=o.tint;if(null!=h){var m=parseInt(h);n=f[m],null!=n&&(n=n.substring(n.length-6,n.length),n="#"+n)}else if(null!=c)c=c.substring(c.length-6,c.length),n="#"+c;else if(null!=d){var g=parseInt(d);0==g?g=1:1==g?g=0:2==g?g=3:3==g&&(g=2);var v=s[g];if(null!=v){var y=v.getInnerElements("a:sysClr|a:srgbClr");if(null!=y){var b=y[0],_=b.attributeList;b.container.indexOf("sysClr")>-1?null!=_.lastClr?n="#"+_.lastClr:null!=_.val&&(n="#"+_.val):b.container.indexOf("srgbClr")>-1&&(n="#"+_.val)}}}if(null!=p){var w=parseFloat(p);null!=n&&(n=a.LightenDarkenColor(n,w))}return n}function h(e,t){var r,n=e.getInnerElements(t);if(null!=n&&n.length>0)if("b"==t||"i"==t||"strike"==t)r="1";else if("u"==t){var i=n[0].attributeList.val;r="double"==i?"2":"singleAccounting"==i?"3":"doubleAccounting"==i?"4":"1"}else if("vertAlign"==t){i=n[0].attributeList.val;"subscript"==i?r="1":"superscript"==i&&(r="2")}else r=n[0].attributeList.val;return r}r.Element=l,r.getColor=f,r.getlineStringAttr=h},{"../common/constant":91,"../common/method":93}],91:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fontFamilys=r.borderTypes=r.OEM_CHARSET=r.indexedColors=r.numFmtDefault=r.BuiltInCellStyles=r.ST_CellType=r.workbookRels=r.theme1File=r.worksheetFilePath=r.sharedStringsFile=r.stylesFile=r.calcChainFile=r.workBookFile=r.contentTypesFile=r.appFile=r.coreFile=r.columeHeader_word_index=r.columeHeader_word=void 0,r.columeHeader_word=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],r.columeHeader_word_index={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25},r.coreFile="docProps/core.xml",r.appFile="docProps/app.xml",r.contentTypesFile="[Content_Types].xml",r.workBookFile="xl/workbook.xml",r.calcChainFile="xl/calcChain.xml",r.stylesFile="xl/styles.xml",r.sharedStringsFile="xl/sharedStrings.xml",r.worksheetFilePath="xl/worksheets/",r.theme1File="xl/theme/theme1.xml",r.workbookRels="xl/_rels/workbook.xml.rels",r.ST_CellType={Boolean:"b",Date:"d",Error:"e",InlineString:"inlineStr",Number:"n",SharedString:"s",String:"str"},r.BuiltInCellStyles={0:"Normal"},r.numFmtDefault={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"},r.indexedColors={0:"00000000",1:"00FFFFFF",2:"00FF0000",3:"0000FF00",4:"000000FF",5:"00FFFF00",6:"00FF00FF",7:"0000FFFF",8:"00000000",9:"00FFFFFF",10:"00FF0000",11:"0000FF00",12:"000000FF",13:"00FFFF00",14:"00FF00FF",15:"0000FFFF",16:"00800000",17:"00008000",18:"00000080",19:"00808000",20:"00800080",21:"00008080",22:"00C0C0C0",23:"00808080",24:"009999FF",25:"00993366",26:"00FFFFCC",27:"00CCFFFF",28:"00660066",29:"00FF8080",30:"000066CC",31:"00CCCCFF",32:"00000080",33:"00FF00FF",34:"00FFFF00",35:"0000FFFF",36:"00800080",37:"00800000",38:"00008080",39:"000000FF",40:"0000CCFF",41:"00CCFFFF",42:"00CCFFCC",43:"00FFFF99",44:"0099CCFF",45:"00FF99CC",46:"00CC99FF",47:"00FFCC99",48:"003366FF",49:"0033CCCC",50:"0099CC00",51:"00FFCC00",52:"00FF9900",53:"00FF6600",54:"00666699",55:"00969696",56:"00003366",57:"00339966",58:"00003300",59:"00333300",60:"00993300",61:"00993366",62:"00333399",63:"00333333",64:null,65:null},r.OEM_CHARSET={0:"ANSI_CHARSET",1:"DEFAULT_CHARSET",2:"SYMBOL_CHARSET",77:"MAC_CHARSET",128:"SHIFTJIS_CHARSET",129:"HANGUL_CHARSET",130:"JOHAB_CHARSET",134:"GB2312_CHARSET",136:"CHINESEBIG5_CHARSET",161:"GREEK_CHARSET",162:"TURKISH_CHARSET",163:"VIETNAMESE_CHARSET",177:"HEBREW_CHARSET",178:"ARABIC_CHARSET",186:"BALTIC_CHARSET",204:"RUSSIAN_CHARSET",222:"THAI_CHARSET",238:"EASTEUROPE_CHARSET",255:"OEM_CHARSET"},r.borderTypes={none:0,thin:1,hair:2,dotted:3,dashed:4,dashDot:5,dashDotDot:6,double:7,medium:8,mediumDashed:9,mediumDashDot:10,mediumDashDotDot:11,slantDashDot:12,thick:13},r.fontFamilys={0:"defualt",1:"Roman",2:"Swiss",3:"Modern",4:"Script",5:"Decorative"}},{}],92:[function(e,t,r){"use strict";function n(e){return""+parseFloat(e.toFixed(2))}Object.defineProperty(r,"__esModule",{value:!0}),r.ToContext2D=r.FromEMF=r.UDOC=void 0,r.UDOC={},r.UDOC.G={concat:function(e,t){for(var r=0;rn&&(n=o),si&&(i=s)}return[t,r,n,i]},rectToPath:function(e){return{cmds:["M","L","L","L","Z"],crds:[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]]}},insideBox:function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&e[2]<=t[2]&&e[3]<=t[3]},isBox:function(e,t){var r=function(e,t){for(var r=0;r<8;r+=2){for(var n=!0,i=0;i<8;i++)if(Math.abs(t[i]-e[i+r&7])>=2){n=!1;break}if(n)return!0}return!1};if(e.cmds.length>10)return!1;var n=e.cmds.join(""),i=e.crds,a=!1;if("MLLLZ"==n&&8==i.length||"MLLLLZ"==n&&10==i.length){10==i.length&&(i=i.slice(0,8));var o=t[0],s=t[1],l=t[2],u=t[3];a||(a=r(i,[o,s,l,s,l,u,o,u])),a||(a=r(i,[o,u,l,u,l,s,o,s]))}return a},boxArea:function(e){var t=e[2]-e[0],r=e[3]-e[1];return t*r},newPath:function(e){e.pth={cmds:[],crds:[]}},moveTo:function(e,t,n){var i=r.UDOC.M.multPoint(e.ctm,[t,n]);e.pth.cmds.push("M"),e.pth.crds.push(i[0],i[1]),e.cpos=i},lineTo:function(e,t,n){var i=r.UDOC.M.multPoint(e.ctm,[t,n]);e.cpos[0]==i[0]&&e.cpos[1]==i[1]||(e.pth.cmds.push("L"),e.pth.crds.push(i[0],i[1]),e.cpos=i)},curveTo:function(e,t,n,i,a,o,s){var l;l=r.UDOC.M.multPoint(e.ctm,[t,n]),t=l[0],n=l[1],l=r.UDOC.M.multPoint(e.ctm,[i,a]),i=l[0],a=l[1],l=r.UDOC.M.multPoint(e.ctm,[o,s]),o=l[0],s=l[1],e.cpos=l,e.pth.cmds.push("C"),e.pth.crds.push(t,n,i,a,o,s)},closePath:function(e){e.pth.cmds.push("Z")},arc:function(e,t,n,i,a,o,s){if(s)while(o>a)o-=2*Math.PI;else while(o(l[1]-r[1])*(e[0]-r[0])},a=function(){var e=[r[0]-l[0],r[1]-l[1]],t=[n[0]-h[0],n[1]-h[1]],i=r[0]*l[1]-r[1]*l[0],a=n[0]*h[1]-n[1]*h[0],o=1/(e[0]*t[1]-e[1]*t[0]);return[(i*t[0]-a*e[0])*o,(i*t[1]-a*e[1])*o]},o=e;for(var s in r=t[t.length-1],t){var l=t[s],u=o;for(var f in o=[],n=u[u.length-1],u){var h=u[f];i(h)?(i(n)||o.push(a()),o.push(h)):i(n)&&o.push(a()),n=h}r=l}return o}},r.UDOC.M={getScale:function(e){return Math.sqrt(Math.abs(e[0]*e[3]-e[1]*e[2]))},translate:function(e,t,n){r.UDOC.M.concat(e,[1,0,0,1,t,n])},rotate:function(e,t){r.UDOC.M.concat(e,[Math.cos(t),-Math.sin(t),Math.sin(t),Math.cos(t),0,0])},scale:function(e,t,n){r.UDOC.M.concat(e,[t,0,0,n,0,0])},concat:function(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5];e[0]=r*t[0]+n*t[2],e[1]=r*t[1]+n*t[3],e[2]=i*t[0]+a*t[2],e[3]=i*t[1]+a*t[3],e[4]=o*t[0]+s*t[2]+t[4],e[5]=o*t[1]+s*t[3]+t[5]},invert:function(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=t*i-r*n;e[0]=i/s,e[1]=-r/s,e[2]=-n/s,e[3]=t/s,e[4]=(n*o-i*a)/s,e[5]=(r*a-t*o)/s},multPoint:function(e,t){var r=t[0],n=t[1];return[r*e[0]+n*e[2]+e[4],r*e[1]+n*e[3]+e[5]]},multArray:function(e,t){for(var r=0;rn?f:(116*u-16)/t,p=l>n?l:(116*s-16)/t,m=c>n?c:(116*h-16)/t,g=96.72*m,v=100*p,y=81.427*d,b=[g/100,v/100,y/100],_=[3.1338561,-1.6168667,-.4906146,-.9787684,1.9161415,.033454,.0719453,-.2289914,1.4052427],w=[_[0]*b[0]+_[1]*b[1]+_[2]*b[2],_[3]*b[0]+_[4]*b[1]+_[5]*b[2],_[6]*b[0]+_[7]*b[1]+_[8]*b[2]],E=0;E<3;E++)w[E]=Math.max(0,Math.min(1,r.UDOC.C.srgbGamma(w[E])));return w}},r.UDOC.getState=function(e){return{font:r.UDOC.getFont(),dd:{flat:1},space:"/DeviceGray",ca:1,colr:[0,0,0],sspace:"/DeviceGray",CA:1,COLR:[0,0,0],bmode:"/Normal",SA:!1,OPM:0,AIS:!1,OP:!1,op:!1,SMask:"/None",lwidth:1,lcap:0,ljoin:0,mlimit:10,SM:.1,doff:0,dash:[],ctm:[1,0,0,1,0,0],cpos:[0,0],pth:{cmds:[],crds:[]},cpth:e?r.UDOC.G.rectToPath(e):null}},r.UDOC.getFont=function(){return{Tc:0,Tw:0,Th:100,Tl:0,Tf:"Helvetica-Bold",Tfs:1,Tmode:0,Trise:0,Tk:0,Tal:0,Tun:0,Tm:[1,0,0,1,0,0],Tlm:[1,0,0,1,0,0],Trm:[1,0,0,1,0,0]}},r.FromEMF=function(){},r.FromEMF.Parse=function(e,t){e=new Uint8Array(e);var n,i=0,a={fill:!1,strk:!1,bb:[0,0,1,1],wbb:[0,0,1,1],fnt:{nam:"Arial",hgh:25,und:!1,orn:0},tclr:[0,0,0],talg:0},o=[],s=[],l=r.FromEMF.B.readShort,u=r.FromEMF.B.readUshort,f=r.FromEMF.B.readInt,h=r.FromEMF.B.readUint,c=r.FromEMF.B.readFloat;while(1){var d=h(e,i);i+=4;var p=r.FromEMF.K[d],m=h(e,i);i+=4;var g=i,v=null,y=0;if("EOF"==p)break;if("HEADER"==p)a.bb=r.FromEMF._readBox(e,g),g+=16,t.StartPage(a.bb[0],a.bb[1],a.bb[2],a.bb[3]),n=r.UDOC.getState(a.bb);else if("SAVEDC"==p)s.push(JSON.stringify(n),JSON.stringify(a));else if("RESTOREDC"==p){var b=f(e,g);g+=4;while(b<-1)s.pop(),s.pop();a=JSON.parse(s.pop()),n=JSON.parse(s.pop())}else if("SELECTCLIPPATH"==p)n.cpth=JSON.parse(JSON.stringify(n.pth));else if(-1!=["SETMAPMODE","SETPOLYFILLMODE","SETBKMODE","SETICMMODE","SETROP2","EXTSELECTCLIPRGN"].indexOf(p));else if("SETMITERLIMIT"==p)n.mlimit=h(e,g);else if("SETTEXTCOLOR"==p)a.tclr=[e[g]/255,e[g+1]/255,e[g+2]/255];else if("SETTEXTALIGN"==p)a.talg=h(e,g);else if("SETVIEWPORTEXTEX"==p||"SETVIEWPORTORGEX"==p){null==a.vbb&&(a.vbb=[]);var _="SETVIEWPORTORGEX"==p?0:2;a.vbb[_]=f(e,g),g+=4,a.vbb[_+1]=f(e,g),g+=4,"SETVIEWPORTEXTEX"==p&&r.FromEMF._updateCtm(a,n)}else if("SETWINDOWEXTEX"==p||"SETWINDOWORGEX"==p){_="SETWINDOWORGEX"==p?0:2;a.wbb[_]=f(e,g),g+=4,a.wbb[_+1]=f(e,g),g+=4,"SETWINDOWEXTEX"==p&&r.FromEMF._updateCtm(a,n)}else if("COMMENT"==p){h(e,g);g+=4}else if("SELECTOBJECT"==p){var w=h(e,g);if(g+=4,2147483648==w)a.fill=!0,n.colr=[1,1,1];else if(2147483653==w)a.fill=!1;else if(2147483655==w)a.strk=!0,a.lwidth=1,n.COLR=[0,0,0];else if(2147483656==w)a.strk=!1;else if(2147483661==w);else if(2147483662==w);else{var E=o[w];if("b"==E.t){if(a.fill=1!=E.stl,0==E.stl);else if(1!=E.stl)throw E.stl+" e";n.colr=E.clr}else if("p"==E.t)a.strk=5!=E.stl,n.lwidth=E.wid,n.COLR=E.clr;else{if("f"!=E.t)throw"e";a.fnt=E,n.font.Tf=E.nam,n.font.Tfs=Math.abs(E.hgh),n.font.Tun=E.und}}}else if("DELETEOBJECT"==p){w=h(e,g);if(g+=4,null==o[w])throw"e";o[w]=null}else if("CREATEBRUSHINDIRECT"==p)y=h(e,g),g+=4,v={t:"b"},v.stl=h(e,g),g+=4,v.clr=[e[g]/255,e[g+1]/255,e[g+2]/255],g+=4,v.htc=h(e,g),g+=4;else if("CREATEPEN"==p||"EXTCREATEPEN"==p)y=h(e,g),g+=4,v={t:"p"},"EXTCREATEPEN"==p?(g+=16,v.stl=h(e,g),g+=4,v.wid=h(e,g),g+=4,g+=4):(v.stl=h(e,g),g+=4,v.wid=h(e,g),g+=4,g+=4),v.clr=[e[g]/255,e[g+1]/255,e[g+2]/255],g+=4;else if("EXTCREATEFONTINDIRECTW"==p){y=h(e,g),g+=4,v={t:"f",nam:""},v.hgh=f(e,g),g+=4,g+=8,v.orn=f(e,g)/10,g+=4;var k=h(e,g);g+=4,v.und=e[g+1],v.stk=e[g+2],g+=8;while(0!=u(e,g))v.nam+=String.fromCharCode(u(e,g)),g+=2;k>500&&(v.nam+="-Bold")}else if("EXTTEXTOUTW"==p){g+=16;var S=h(e,g);g+=4;c(e,g);g+=4;c(e,g);g+=4;var C=f(e,g);g+=4;var T=f(e,g);g+=4,n.font.Tm=[1,0,0,-1,0,0],r.UDOC.M.rotate(n.font.Tm,a.fnt.orn*Math.PI/180),r.UDOC.M.translate(n.font.Tm,C,T);var x=a.talg;if(6==(6&x))n.font.Tal=2;else{if(0!=(7&x))throw x+" e";n.font.Tal=0}if(24==(24&x));else{if(0!=(24&x))throw"e";r.UDOC.M.translate(n.font.Tm,0,n.font.Tfs)}var R=h(e,g);g+=4;var A=h(e,g);g+=4;h(e,g);g+=4,g+=16;h(e,g);g+=4,A+=i-8;for(var O="",L=0;L0)r.UDOC.G.curveTo(n,X(e,g),X(e,g+H),X(e,g+2*H),X(e,g+3*H),X(e,g+4*H),X(e,g+5*H)),g+=6*H,N-=3}else if("RECTANGLE"==p||"ELLIPSE"==p){r.UDOC.G.newPath(n);var Z=r.FromEMF._readBox(e,g);if("RECTANGLE"==p)r.UDOC.G.moveTo(n,Z[0],Z[1]),r.UDOC.G.lineTo(n,Z[2],Z[1]),r.UDOC.G.lineTo(n,Z[2],Z[3]),r.UDOC.G.lineTo(n,Z[0],Z[3]);else{var G=(Z[0]+Z[2])/2,Y=(Z[1]+Z[3])/2;r.UDOC.G.arc(n,G,Y,(Z[2]-Z[0])/2,0,2*Math.PI,!1)}r.UDOC.G.closePath(n),r.FromEMF._draw(t,n,a,!0)}else if("FILLPATH"==p)t.Fill(n,!1);else if("STROKEPATH"==p)t.Stroke(n);else if("STROKEANDFILLPATH"==p)t.Fill(n,!1),t.Stroke(n);else if("SETWORLDTRANSFORM"==p||"MODIFYWORLDTRANSFORM"==p){var q=[];for(L=0;L<6;L++)q.push(c(e,g+4*L));if(g+=24,"SETWORLDTRANSFORM"==p)n.ctm=q;else{S=h(e,g);if(g+=4,2!=S)throw"e";var V=n.ctm;n.ctm=q,r.UDOC.M.concat(n.ctm,V)}}else if("SETSTRETCHBLTMODE"==p){h(e,g);g+=4}else if("STRETCHDIBITS"==p){Z=r.FromEMF._readBox(e,g);g+=16;var K=f(e,g);g+=4;var J=f(e,g);g+=4;f(e,g);g+=4;f(e,g);g+=4;var $=f(e,g);g+=4;var Q=f(e,g);g+=4;var ee=h(e,g)+i-8;g+=4;h(e,g);g+=4;var te=h(e,g)+i-8;g+=4;h(e,g);g+=4;var re=h(e,g);if(g+=4,0!=re)throw"e";h(e,g);g+=4;var ne=f(e,g);g+=4;var ie=f(e,g);g+=4;h(e,ee);ee+=4;var ae=h(e,ee);ee+=4;var oe=h(e,ee);if(ee+=4,ae!=$||oe!=Q)throw"e";var se=u(e,ee);ee+=2;var le=u(e,ee);if(ee+=2,8!=le&&24!=le&&32!=le)throw le+" e";var ue=h(e,ee);if(ee+=4,0!=ue)throw ue+" e";h(e,ee);ee+=4;h(e,ee);ee+=4;h(e,ee);ee+=4;h(e,ee);ee+=4;h(e,ee);ee+=4;var fe=Math.floor((ae*se*le+31&-32)/8),he=new Uint8Array(ae*oe*4);if(8==le)for(Y=0;Y1){i=n[0],a=n[1];var l=t[i];s=null==l?parseInt(r):parseInt(l)}else s=parseInt(r),a=n[0];if(-1==a.indexOf(":")){var u=parseInt(a.replace(/[^0-9]/g,""))-1,f=o(a.replace(/[^A-Za-z]/g,""));return isNaN(u)||isNaN(f)?null:{row:[u,u],column:[f,f],sheetIndex:s}}var h=a.split(":");u=[],f=[];return u[0]=parseInt(h[0].replace(/[^0-9]/g,""))-1,u[1]=parseInt(h[1].replace(/[^0-9]/g,""))-1,u[0]>u[1]?null:(f[0]=o(h[0].replace(/[^A-Za-z]/g,"")),f[1]=o(h[1].replace(/[^A-Za-z]/g,"")),f[0]>f[1]?null:{row:u,column:f,sheetIndex:s})}function o(e){e=e.toUpperCase();var t=e.length;if(0==t)return NaN;for(var r=e.split(""),i=n.columeHeader_word.length,a=0,o=t-1;o>=0;o--)a+=o==t-1?n.columeHeader_word_index[r[o]]:Math.pow(i,t-o-1)*(n.columeHeader_word_index[r[o]]+1);return a}function s(e){var t=n.columeHeader_word.length;if(e=t/(t-1)*(Math.pow(t,a++)-1))o=a;var s=e-t/(t-1)*(Math.pow(t,o-1)-1);r=s+1;for(var l=o;l>0;l--){var u=r;if(1==l)return u%=t,0==u&&(u=26),i+n.columeHeader_word[u-1];u=Math.ceil(u/Math.pow(t,l-1)),i+=n.columeHeader_word[u-1],l>1&&(r-=(u-1)*t)}}function l(){return.75}function u(e){if(null==e)return 0;var t=e/914400,r=72*t,n=r/l();return n}function f(e,t,r){var n=e[t];return n=null==n?r:n,n}function h(e){var t=Math.round(8*(e-.83)+5);return t}function c(e){var t=Math.round(e/l());return t}function d(e,t){var r=e.substring(e.length-6,e.length),n=m("#"+r),i=v(n[0],n[1],n[2]);if(t>0)i[2]=i[2]*(1-t)+t;else{if(!(t<0))return"#"+r;i[2]=i[2]*(1+t)}var a=g(i[0],i[1],i[2]);return p("RGB("+a.join(",")+")")}function p(e){var t=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(e)){for(var r=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),n="#",i=0;i1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return[Math.round(255*n),Math.round(255*i),Math.round(255*a)]}function v(e,t,r){e/=255,t/=255,r/=255;var n,i,a=Math.max(e,t,r),o=Math.min(e,t,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case e:n=(t-r)/l+(t").replace(/ /g," ").replace(/'/g,"'").replace(/¡/g,"¡").replace(/¢/g,"¢").replace(/£/g,"£").replace(/¤/g,"¤").replace(/¥/g,"¥").replace(/¦/g,"¦").replace(/§/g,"§").replace(/¨/g,"¨").replace(/©/g,"©").replace(/ª/g,"ª").replace(/«/g,"«").replace(/¬/g,"¬").replace(/­/g,"­").replace(/®/g,"®").replace(/¯/g,"¯").replace(/°/g,"°").replace(/±/g,"±").replace(/²/g,"²").replace(/³/g,"³").replace(/´/g,"´").replace(/µ/g,"µ").replace(/¶/g,"¶").replace(/·/g,"·").replace(/¸/g,"¸").replace(/¹/g,"¹").replace(/º/g,"º").replace(/»/g,"»").replace(/¼/g,"¼").replace(/½/g,"½").replace(/¾/g,"¾").replace(/¿/g,"¿").replace(/×/g,"×").replace(/÷/g,"÷").replace(/À/g,"À").replace(/Á/g,"Á").replace(/Â/g,"Â").replace(/Ã/g,"Ã").replace(/Ä/g,"Ä").replace(/Å/g,"Å").replace(/Æ/g,"Æ").replace(/Ç/g,"Ç").replace(/È/g,"È").replace(/É/g,"É").replace(/Ê/g,"Ê").replace(/Ë/g,"Ë").replace(/Ì/g,"Ì").replace(/Í/g,"Í").replace(/Î/g,"Î").replace(/Ï/g,"Ï").replace(/Ð/g,"Ð").replace(/Ñ/g,"Ñ").replace(/Ò/g,"Ò").replace(/Ó/g,"Ó").replace(/Ô/g,"Ô").replace(/Õ/g,"Õ").replace(/Ö/g,"Ö").replace(/Ø/g,"Ø").replace(/Ù/g,"Ù").replace(/Ú/g,"Ú").replace(/Û/g,"Û").replace(/Ü/g,"Ü").replace(/Ý/g,"Ý").replace(/Þ/g,"Þ").replace(/ß/g,"ß").replace(/à/g,"à").replace(/á/g,"á").replace(/â/g,"â").replace(/ã/g,"ã").replace(/ä/g,"ä").replace(/å/g,"å").replace(/æ/g,"æ").replace(/ç/g,"ç").replace(/è/g,"è").replace(/é/g,"é").replace(/ê/g,"ê").replace(/ë/g,"ë").replace(/ì/g,"ì").replace(/í/g,"í").replace(/î/g,"î").replace(/ï/g,"ï").replace(/ð/g,"ð").replace(/ñ/g,"ñ").replace(/ò/g,"ò").replace(/ó/g,"ó").replace(/ô/g,"ô").replace(/õ/g,"õ").replace(/ö/g,"ö").replace(/ø/g,"ø").replace(/ù/g,"ù").replace(/ú/g,"ú").replace(/û/g,"û").replace(/ü/g,"ü").replace(/ý/g,"ý").replace(/þ/g,"þ").replace(/ÿ/g,"ÿ")}r.getRangetxt=i,r.getcellrange=a,r.getptToPxRatioByDPI=l,r.getPxByEMUs=u,r.getXmlAttibute=f,r.getColumnWidthPixel=h,r.getRowHeightPixel=c,r.LightenDarkenColor=d,r.generateRandomIndex=y,r.escapeCharacter=b;var _=function(){function e(){}return e.trim=function(e){return null==e&&(e=""),e.replace(/(^\s*)|(\s*$)/g,"")},e.functionCopy=function(e,t,r){var n=this;if(null==n.operatorjson){for(var i=n.operator.split("|"),a={},o=0;o0?f+=u+"(":f+="(",u="";else if(")"==c&&0==h.dquote)h.bracket-=1,f+=n.functionCopy(u,t,r)+")",u="";else if('"'==c&&0==h.squote)h.dquote>0?(f+=u+'"',h.dquote-=1,u=""):(h.dquote+=1,u+='"');else if(","==c&&0==h.dquote)f+=n.functionCopy(u,t,r)+",",u="";else if("&"==c&&0==h.dquote)u.length>0?(f+=n.functionCopy(u,t,r)+"&",u=""):f+="&";else if(c in n.operatorjson&&0==h.dquote){var d="";l+1=0)do{m=s[p--]}while(p>=0&&" "==m);c+d in n.operatorjson?(u.length>0?(f+=n.functionCopy(u,t,r)+c+d,u=""):f+=c+d,l++):/[^0-9]/.test(d)||"-"!=c||"("!=m&&null!=m&&","!=m&&" "!=m&&!(m in n.operatorjson)?u.length>0?(f+=n.functionCopy(u,t,r)+c,u=""):f+=c:u+=c}else u+=c;l==s.length-1&&(n.iscelldata(n.trim(u))?"down"==t?f+=n.downparam(n.trim(u),r):"up"==t?f+=n.upparam(n.trim(u),r):"left"==t?f+=n.leftparam(n.trim(u),r):"right"==t&&(f+=n.rightparam(n.trim(u),r)):f+=n.trim(u)),l++}return f},e.downparam=function(e,t){return this.updateparam("d",e,t)},e.upparam=function(e,t){return this.updateparam("u",e,t)},e.leftparam=function(e,t){return this.updateparam("l",e,t)},e.rightparam=function(e,t){return this.updateparam("r",e,t)},e.updateparam=function(e,t,r){var n,i=this,a=t.split("!"),l="";if(a.length>1?(n=a[1],l=a[0]+"!"):n=a[0],-1==n.indexOf(":")){var u=parseInt(n.replace(/[^0-9]/g,"")),f=o(n.replace(/[^A-Za-z]/g,"")),h=i.isfreezonFuc(n),c=h[0]?"$":"",d=h[1]?"$":"";return"u"!=e||h[0]?"r"!=e||h[1]?"l"!=e||h[1]?h[0]||(u+=r):f-=r:f+=r:u-=r,u<0||f<0?i.error.r:isNaN(u)||isNaN(f)?isNaN(u)?isNaN(f)?t:l+d+s(f):l+c+u:l+d+s(f)+c+u}n=n.split(":");u=[],f=[];if(u[0]=parseInt(n[0].replace(/[^0-9]/g,"")),u[1]=parseInt(n[1].replace(/[^0-9]/g,"")),u[0]>u[1])return t;if(f[0]=o(n[0].replace(/[^A-Za-z]/g,"")),f[1]=o(n[1].replace(/[^A-Za-z]/g,"")),f[0]>f[1])return t;var p=i.isfreezonFuc(n[0]),m=i.isfreezonFuc(n[1]),g=p[0]?"$":"",v=p[1]?"$":"",y=m[0]?"$":"",b=m[1]?"$":"";return"u"==e?(p[0]||(u[0]-=r),m[0]||(u[1]-=r)):"r"==e?(p[1]||(f[0]+=r),m[1]||(f[1]+=r)):"l"==e?(p[1]||(f[0]-=r),m[1]||(f[1]-=r)):(p[0]||(u[0]+=r),m[0]||(u[1]+=r)),u[0]<0||f[0]<0?i.error.r:isNaN(f[0])&&isNaN(f[1])?l+g+u[0]+":"+y+u[1]:isNaN(u[0])&&isNaN(u[1])?l+v+s(f[0])+":"+b+s(f[1]):l+v+s(f[0])+g+u[0]+":"+b+s(f[1])+y+u[1]},e.iscelldata=function(e){var t,r=e.split("!");t=r.length>1?r[1]:r[0];var n=/^(([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+))$/g,i=/^(((([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+)))|((([a-zA-Z]+)|([$][a-zA-Z]+))))$/g;if(-1==t.indexOf(":")){var a=parseInt(t.replace(/[^0-9]/g,""))-1,s=o(t.replace(/[^A-Za-z]/g,""));return!(isNaN(a)||isNaN(s)||!t.toString().match(n))||!!isNaN(a)&&(isNaN(s),!1)}i=/^(((([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+)))|((([a-zA-Z]+)|([$][a-zA-Z]+)))|((([0-9]+)|([$][0-9]+s))))$/g,t=t.split(":");a=[],s=[];return a[0]=parseInt(t[0].replace(/[^0-9]/g,""))-1,a[1]=parseInt(t[1].replace(/[^0-9]/g,""))-1,!(a[0]>a[1])&&(s[0]=o(t[0].replace(/[^A-Za-z]/g,"")),s[1]=o(t[1].replace(/[^A-Za-z]/g,"")),!(s[0]>s[1])&&!(!t[0].toString().match(i)||!t[1].toString().match(i)))},e.isfreezonFuc=function(e){var t=e.replace(/[^0-9]/g,""),r=e.replace(/[^A-Za-z]/g,""),n=e.substr(e.indexOf(t)-1,1),i=e.substr(e.indexOf(r)-1,1),a=[!1,!1];return"$"==n&&(a[0]=!0),"$"==i&&(a[1]=!0),a},e.operator="==|!=|<>|<=|>=|=|+|-|>|<|/|*|%|&|^",e.error={v:"#VALUE!",n:"#NAME?",na:"#N/A",r:"#REF!",d:"#DIV/0!",nm:"#NUM!",nl:"#NULL!",sp:"#SPILL!"},e.operatorjson=null,e}();function w(e){var t=/[^\u4e00-\u9fa5]/,r=/[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5]/;return!!r.test(e)||!t.test(e)}function E(e){var t=/[^\u0800-\u4e00]/;return!t.test(e)}function k(e){return e>12592&&e<12687||e>=44032&&e<=55203}function S(e){var t=!1;escape(e).indexOf("%u")>-1&&(t=!0);var r=!1,n=/[0-9a-z]/gi;n.test(e)&&(r=!0);var i=/[\x00-\xff]+/g;return i.test(e)&&(r=!0),!(!t||!r)}function C(e,t){var r,n,i,a;t||(t={});var o=function(){try{return new window.XMLHttpRequest}catch(e){}},s=function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}},l="undefined"!==typeof window&&window.ActiveXObject?function(){return o()||s()}:o;"function"===typeof t?(a=t,t={}):"function"===typeof t.callback&&(a=t.callback),n=function(e){a(null,e)},i=function(e){a(e,null)};try{var u=l();u.open("GET",e,!0),"responseType"in u&&(u.responseType="arraybuffer"),u.overrideMimeType&&u.overrideMimeType("text/plain; charset=x-user-defined"),u.onreadystatechange=function(t){if(4===u.readyState)if(200===u.status||0===u.status)try{n(function(e){return e.response||e.responseText}(u))}catch(r){i(new Error(r))}else i(new Error("Ajax error for "+e+" : "+this.status+" "+this.statusText))},t.progress&&(u.onprogress=function(r){t.progress({path:e,originalEvent:r,percent:r.loaded/r.total*100,loaded:r.loaded,total:r.total})}),u.send()}catch(f){i(new Error(f),null)}return r}r.fromulaRef=_,r.isChinese=w,r.isJapanese=E,r.isKoera=k,r.isContainMultiType=S,r.getBinaryContent=C},{"./constant":91}],94:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LuckyExcel=void 0;var n=e("./ToLuckySheet/LuckyFile"),i=e("./HandleZip"),a=function(){function e(){}return e.transformExcelToLucky=function(e,t){var r=new i.HandleZip(e);r.unzipFile((function(r){var i=new n.LuckyFile(r,e.name),a=i.Parse(),o=JSON.parse(a);void 0!=t&&t(o,a)}),(function(e){console.error(e)}))},e.transformExcelToLuckyByUrl=function(e,t,r){var a=new i.HandleZip;a.unzipFileByUrl(e,(function(e){var i=new n.LuckyFile(e,t),a=i.Parse(),o=JSON.parse(a);void 0!=r&&r(o,a)}),(function(e){console.error(e)}))},e.transformLuckyToExcel=function(e,t){},e}();r.LuckyExcel=a},{"./HandleZip":84,"./ToLuckySheet/LuckyFile":87}],95:[function(e,t,r){"use strict";var n=e("./main");t.exports=n.LuckyExcel},{"./main":94}]},{},[95])(95)}))}).call(this,r("c8ba"))}}]);