12345678 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cc94c"],{"4f15":function(module,exports,__webpack_require__){var require,require;!function(t){module.exports=t()}((function(){var define,module,exports;return function t(e,r,n){function i(s,o){if(!r[s]){if(!e[s]){var l="function"==typeof require&&require;if(!o&&l)return require(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var u=r[s]={exports:{}};e[s][0].call(u.exports,(function(t){var r=e[s][1][t];return i(r||t)}),u,u.exports,t,e,r,n)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
- * @license MIT
- */
- var n=t("base64-js"),i=t("ieee754"),a=t("is-array");r.Buffer=o,r.SlowBuffer=o,r.INSPECT_MAX_BYTES=50,o.poolSize=8192;var s=1073741823;function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);var n,i,l,u=typeof t;if("number"===u)n=t>0?t>>>0:0;else if("string"===u)"base64"===e&&(t=S(t)),n=o.byteLength(t,e);else{if("object"!==u||null===t)throw new TypeError("must start with number, buffer, array or string");"Buffer"===t.type&&a(t.data)&&(t=t.data),n=+t.length>0?Math.floor(+t.length):0}if(this.length>s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");if(o.TYPED_ARRAY_SUPPORT?i=o._augment(new Uint8Array(n)):(i=this,i.length=n,i._isBuffer=!0),o.TYPED_ARRAY_SUPPORT&&"number"===typeof t.byteLength)i._set(t);else if(R(t))if(o.isBuffer(t))for(l=0;l<n;l++)i[l]=t.readUInt8(l);else for(l=0;l<n;l++)i[l]=(t[l]%256+256)%256;else if("string"===u)i.write(t,0,e);else if("number"===u&&!o.TYPED_ARRAY_SUPPORT&&!r)for(l=0;l<n;l++)i[l]=0;return i}function l(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;if(a%2!==0)throw new Error("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s<n;s++){var o=parseInt(e.substr(2*s,2),16);if(isNaN(o))throw new Error("Invalid hex string");t[r+s]=o}return s}function u(t,e,r,n){var i=j(O(e),t,r,n);return i}function h(t,e,r,n){var i=j(L(e),t,r,n);return i}function f(t,e,r,n){return h(t,e,r,n)}function c(t,e,r,n){var i=j(U(e),t,r,n);return i}function d(t,e,r,n){var i=j(D(e),t,r,n,2);return i}function p(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function m(t,e,r){var n="",i="";r=Math.min(t.length,r);for(var a=e;a<r;a++)t[a]<=127?(n+=P(i)+String.fromCharCode(t[a]),i=""):i+="%"+t[a].toString(16);return n+P(i)}function _(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;i++)n+=String.fromCharCode(t[i]);return n}function g(t,e,r){return _(t,e,r)}function b(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;a++)i+=T(t[a]);return i}function w(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function y(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function v(t,e,r,n,i,a){if(!o.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(e>i||e<a)throw new TypeError("value is out of bounds");if(r+n>t.length)throw new TypeError("index out of range")}function x(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-r,2);i<a;i++)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function k(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-r,4);i<a;i++)t[r+i]=e>>>8*(n?i:3-i)&255}function E(t,e,r,n,i,a){if(e>i||e<a)throw new TypeError("value is out of bounds");if(r+n>t.length)throw new TypeError("index out of range")}function A(t,e,r,n,a){return a||E(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function z(t,e,r,n,a){return a||E(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}o.TYPED_ARRAY_SUPPORT=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"===typeof e.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(r){return!1}}(),o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a&&t[i]===e[i];i++);return i!==a&&(r=t[i],n=e[i]),r<n?-1:n<r?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!a(t))throw new TypeError("Usage: Buffer.concat(list[, length])");if(0===t.length)return new o(0);if(1===t.length)return t[0];var r;if(void 0===e)for(e=0,r=0;r<t.length;r++)e+=t[r].length;var n=new o(e),i=0;for(r=0;r<t.length;r++){var s=t[r];s.copy(n,i),i+=s.length}return n},o.byteLength=function(t,e){var r;switch(t+="",e||"utf8"){case"ascii":case"binary":case"raw":r=t.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*t.length;break;case"hex":r=t.length>>>1;break;case"utf8":case"utf-8":r=O(t).length;break;case"base64":r=U(t).length;break;default:r=t.length}return r},o.prototype.length=void 0,o.prototype.parent=void 0,o.prototype.toString=function(t,e,r){var n=!1;if(e>>>=0,r=void 0===r||r===1/0?this.length:r>>>0,t||(t="utf8"),e<0&&(e=0),r>this.length&&(r=this.length),r<=e)return"";while(1)switch(t){case"hex":return b(this,e,r);case"utf8":case"utf-8":return m(this,e,r);case"ascii":return _(this,e,r);case"binary":return g(this,e,r);case"base64":return p(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return 0===o.compare(this,t)},o.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return o.compare(this,t)},o.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},o.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},o.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=Number(e)||0;var a,s=this.length-e;switch(r?(r=Number(r),r>s&&(r=s)):r=s,n=String(n||"utf8").toLowerCase(),n){case"hex":a=l(this,t,e,r);break;case"utf8":case"utf-8":a=u(this,t,e,r);break;case"ascii":a=h(this,t,e,r);break;case"binary":a=f(this,t,e,r);break;case"base64":a=c(this,t,e,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=d(this,t,e,r);break;default:throw new TypeError("Unknown encoding: "+n)}return a},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(t,e){var r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),o.TYPED_ARRAY_SUPPORT)return o._augment(this.subarray(t,e));for(var n=e-t,i=new o(n,void 0,!0),a=0;a<n;a++)i[a]=this[a+t];return i},o.prototype.readUInt8=function(t,e){return e||y(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||y(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||y(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||y(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readInt8=function(t,e){return e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||y(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){e||y(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||y(t,4,this.length),i.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||y(t,4,this.length),i.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||y(t,8,this.length),i.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||y(t,8,this.length),i.read(this,t,!1,52,8)},o.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=t,e+1},o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t):x(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t):k(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t):k(this,t,e,!1),e+4},o.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t):x(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):k(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||v(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t):k(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,r){return A(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return A(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return z(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return z(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),n||0===n||(n=this.length),e||(e=0),n!==r&&0!==t.length&&0!==i.length){if(n<r)throw new TypeError("sourceEnd < sourceStart");if(e<0||e>=t.length)throw new TypeError("targetStart out of bounds");if(r<0||r>=i.length)throw new TypeError("sourceStart out of bounds");if(n<0||n>i.length)throw new TypeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var a=n-r;if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(var s=0;s<a;s++)t[s+e]=this[s+r];else t._set(this.subarray(r,r+a),e)}},o.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),r<e)throw new TypeError("end < start");if(r!==e&&0!==this.length){if(e<0||e>=this.length)throw new TypeError("start out of bounds");if(r<0||r>this.length)throw new TypeError("end out of bounds");var n;if("number"===typeof t)for(n=e;n<r;n++)this[n]=t;else{var i=O(t.toString()),a=i.length;for(n=e;n<r;n++)this[n]=i[n%a]}return this}},o.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(o.TYPED_ARRAY_SUPPORT)return new o(this).buffer;for(var t=new Uint8Array(this.length),e=0,r=t.length;e<r;e+=1)t[e]=this[e];return t.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var I=o.prototype;o._augment=function(t){return t.constructor=o,t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=I.get,t.set=I.set,t.write=I.write,t.toString=I.toString,t.toLocaleString=I.toString,t.toJSON=I.toJSON,t.equals=I.equals,t.compare=I.compare,t.copy=I.copy,t.slice=I.slice,t.readUInt8=I.readUInt8,t.readUInt16LE=I.readUInt16LE,t.readUInt16BE=I.readUInt16BE,t.readUInt32LE=I.readUInt32LE,t.readUInt32BE=I.readUInt32BE,t.readInt8=I.readInt8,t.readInt16LE=I.readInt16LE,t.readInt16BE=I.readInt16BE,t.readInt32LE=I.readInt32LE,t.readInt32BE=I.readInt32BE,t.readFloatLE=I.readFloatLE,t.readFloatBE=I.readFloatBE,t.readDoubleLE=I.readDoubleLE,t.readDoubleBE=I.readDoubleBE,t.writeUInt8=I.writeUInt8,t.writeUInt16LE=I.writeUInt16LE,t.writeUInt16BE=I.writeUInt16BE,t.writeUInt32LE=I.writeUInt32LE,t.writeUInt32BE=I.writeUInt32BE,t.writeInt8=I.writeInt8,t.writeInt16LE=I.writeInt16LE,t.writeInt16BE=I.writeInt16BE,t.writeInt32LE=I.writeInt32LE,t.writeInt32BE=I.writeInt32BE,t.writeFloatLE=I.writeFloatLE,t.writeFloatBE=I.writeFloatBE,t.writeDoubleLE=I.writeDoubleLE,t.writeDoubleBE=I.writeDoubleBE,t.fill=I.fill,t.inspect=I.inspect,t.toArrayBuffer=I.toArrayBuffer,t};var C=/[^+\/0-9A-z]/g;function S(t){t=B(t).replace(C,"");while(t.length%4!==0)t+="=";return t}function B(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function R(t){return a(t)||o.isBuffer(t)||t&&"object"===typeof t&&"number"===typeof t.length}function T(t){return t<16?"0"+t.toString(16):t.toString(16)}function O(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n<=127)e.push(n);else{var i=r;n>=55296&&n<=57343&&r++;for(var a=encodeURIComponent(t.slice(i,r+1)).substr(1).split("%"),s=0;s<a.length;s++)e.push(parseInt(a[s],16))}}return e}function L(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e}function D(t){for(var e,r,n,i=[],a=0;a<t.length;a++)e=t.charCodeAt(a),r=e>>8,n=e%256,i.push(n),i.push(r);return i}function U(t){return n.toByteArray(t)}function j(t,e,r,n,i){i&&(n-=n%i);for(var a=0;a<n;a++){if(a+r>=e.length||a>=t.length)break;e[a+r]=t[a]}return a}function P(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}},{"base64-js":2,ieee754:3,"is-array":4}],2:[function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(t){"use strict";var e="undefined"!==typeof Uint8Array?Uint8Array:Array,r="+".charCodeAt(0),i="/".charCodeAt(0),a="0".charCodeAt(0),s="a".charCodeAt(0),o="A".charCodeAt(0);function l(t){var e=t.charCodeAt(0);return e===r?62:e===i?63:e<a?-1:e<a+10?e-a+26+26:e<o+26?e-o:e<s+26?e-s+26:void 0}function u(t){var r,n,i,a,s,o;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=t.length;s="="===t.charAt(u-2)?2:"="===t.charAt(u-1)?1:0,o=new e(3*t.length/4-s),i=s>0?t.length-4:t.length;var h=0;function f(t){o[h++]=t}for(r=0,n=0;r<i;r+=4,n+=3)a=l(t.charAt(r))<<18|l(t.charAt(r+1))<<12|l(t.charAt(r+2))<<6|l(t.charAt(r+3)),f((16711680&a)>>16),f((65280&a)>>8),f(255&a);return 2===s?(a=l(t.charAt(r))<<2|l(t.charAt(r+1))>>4,f(255&a)):1===s&&(a=l(t.charAt(r))<<10|l(t.charAt(r+1))<<4|l(t.charAt(r+2))>>2,f(a>>8&255),f(255&a)),o}function h(t){var e,r,i,a=t.length%3,s="";function o(t){return n.charAt(t)}function l(t){return o(t>>18&63)+o(t>>12&63)+o(t>>6&63)+o(63&t)}for(e=0,i=t.length-a;e<i;e+=3)r=(t[e]<<16)+(t[e+1]<<8)+t[e+2],s+=l(r);switch(a){case 1:r=t[t.length-1],s+=o(r>>2),s+=o(r<<4&63),s+="==";break;case 2:r=(t[t.length-2]<<8)+t[t.length-1],s+=o(r>>10),s+=o(r>>4&63),s+=o(r<<2&63),s+="=";break}return s}t.toByteArray=u,t.fromByteArray=h})("undefined"===typeof r?this.base64js={}:r)},{}],3:[function(t,e,r){r.read=function(t,e,r,n,i){var a,s,o=8*i-n-1,l=(1<<o)-1,u=l>>1,h=-7,f=r?i-1:0,c=r?-1:1,d=t[e+f];for(f+=c,a=d&(1<<-h)-1,d>>=-h,h+=o;h>0;a=256*a+t[e+f],f+=c,h-=8);for(s=a&(1<<-h)-1,a>>=-h,h+=n;h>0;s=256*s+t[e+f],f+=c,h-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),a-=u}return(d?-1:1)*s*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var s,o,l,u=8*a-i-1,h=(1<<u)-1,f=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),e+=s+f>=1?c/l:c*Math.pow(2,1-f),e*l>=2&&(s++,l/=2),s+f>=h?(o=0,s=h):s+f>=1?(o=(e*l-1)*Math.pow(2,i),s+=f):(o=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&o,d+=p,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;t[r+d]=255&s,d+=p,s/=256,u-=8);t[r+d-p]|=128*m}},{}],4:[function(t,e,r){var n=Array.isArray,i=Object.prototype.toString;e.exports=n||function(t){return!!t&&"[object Array]"==i.call(t)}},{}],5:[function(t,e,r){"use strict";var n=t("./dataReader");function i(t){if(t){this.data=t,this.length=this.data.length,this.index=0,this.zero=0;for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}}i.prototype=new n,i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===e&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"./dataReader":10}],6:[function(t,e,r){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t,e){var r,i,a,s,o,l,u,h="",f=0;while(f<t.length)r=t.charCodeAt(f++),i=t.charCodeAt(f++),a=t.charCodeAt(f++),s=r>>2,o=(3&r)<<4|i>>4,l=(15&i)<<2|a>>6,u=63&a,isNaN(i)?l=u=64:isNaN(a)&&(u=64),h=h+n.charAt(s)+n.charAt(o)+n.charAt(l)+n.charAt(u);return h},r.decode=function(t,e){var r,i,a,s,o,l,u,h="",f=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<t.length)s=n.indexOf(t.charAt(f++)),o=n.indexOf(t.charAt(f++)),l=n.indexOf(t.charAt(f++)),u=n.indexOf(t.charAt(f++)),r=s<<2|o>>4,i=(15&o)<<4|l>>2,a=(3&l)<<6|u,h+=String.fromCharCode(r),64!=l&&(h+=String.fromCharCode(i)),64!=u&&(h+=String.fromCharCode(a));return h}},{}],7:[function(t,e,r){"use strict";function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=n},{}],8:[function(t,e,r){"use strict";r.STORE={magic:"\0\0",compress:function(t,e){return t},uncompress:function(t){return t},compressInputType:null,uncompressInputType:null},r.DEFLATE=t("./flate")},{"./flate":13}],9:[function(t,e,r){"use strict";var n=t("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];e.exports=function(t,e){if("undefined"===typeof t||!t.length)return 0;var r="string"!==n.getTypeOf(t);"undefined"==typeof e&&(e=0);var a=0,s=0,o=0;e^=-1;for(var l=0,u=t.length;l<u;l++)o=r?t[l]:t.charCodeAt(l),s=255&(e^o),a=i[s],e=e>>>8^a;return-1^e}},{"./utils":26}],10:[function(t,e,r){"use strict";var n=t("./utils");function i(t){this.data=null,this.length=0,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)}},e.exports=i},{"./utils":26}],11:[function(t,e,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!1,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],12:[function(t,e,r){"use strict";var n=t("./utils");r.string2binary=function(t){return n.string2binary(t)},r.string2Uint8Array=function(t){return n.transformTo("uint8array",t)},r.uint8Array2String=function(t){return n.transformTo("string",t)},r.string2Blob=function(t){var e=n.transformTo("arraybuffer",t);return n.arrayBuffer2Blob(e)},r.arrayBuffer2Blob=function(t){return n.arrayBuffer2Blob(t)},r.transformTo=function(t,e){return n.transformTo(t,e)},r.getTypeOf=function(t){return n.getTypeOf(t)},r.checkSupport=function(t){return n.checkSupport(t)},r.MAX_VALUE_16BITS=n.MAX_VALUE_16BITS,r.MAX_VALUE_32BITS=n.MAX_VALUE_32BITS,r.pretty=function(t){return n.pretty(t)},r.findCompression=function(t){return n.findCompression(t)},r.isRegExp=function(t){return n.isRegExp(t)}},{"./utils":26}],13:[function(t,e,r){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array,i=t("pako");r.uncompressInputType=n?"uint8array":"array",r.compressInputType=n?"uint8array":"array",r.magic="\b\0",r.compress=function(t,e){return i.deflateRaw(t,{level:e.level||-1})},r.uncompress=function(t){return i.inflateRaw(t)}},{pako:29}],14:[function(t,e,r){"use strict";var n=t("./base64");function i(t,e){if(!(this instanceof i))return new i(t,e);this.files={},this.comment=null,this.root="",t&&this.load(t,e),this.clone=function(){var t=new i;for(var e in this)"function"!==typeof this[e]&&(t[e]=this[e]);return t}}i.prototype=t("./object"),i.prototype.load=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.utils=t("./deprecatedPublicUtils"),i.base64={encode:function(t){return n.encode(t)},decode:function(t){return n.decode(t)}},i.compressions=t("./compressions"),e.exports=i},{"./base64":6,"./compressions":8,"./defaults":11,"./deprecatedPublicUtils":12,"./load":15,"./object":18,"./support":22}],15:[function(t,e,r){"use strict";var n=t("./base64"),i=t("./utf8"),a=t("./utils"),s=t("./zipEntries");e.exports=function(t,e){var r,o,l,u;for(e=a.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),e.base64&&(t=n.decode(t)),o=new s(t,e),r=o.files,l=0;l<r.length;l++)u=r[l],this.file(u.fileNameStr,u.decompressed,{binary:!0,optimizedBinaryString:!0,date:u.date,dir:u.dir,comment:u.fileCommentStr.length?u.fileCommentStr:null,unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions,createFolders:e.createFolders});return o.zipComment.length&&(this.comment=o.zipComment),this}},{"./base64":6,"./utf8":25,"./utils":26,"./zipEntries":27}],16:[function(t,e,r){(function(t){"use strict";e.exports=function(e,r){return new t(e,r)},e.exports.test=function(e){return t.isBuffer(e)}}).call(this,t("buffer").Buffer)},{buffer:1}],17:[function(t,e,r){"use strict";var n=t("./uint8ArrayReader");function i(t){this.data=t,this.length=this.data.length,this.index=0,this.zero=0}i.prototype=new n,i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"./uint8ArrayReader":23}],18:[function(t,e,r){"use strict";var n=t("./support"),i=t("./utils"),a=t("./crc32"),s=t("./signature"),o=t("./defaults"),l=t("./base64"),u=t("./compressions"),h=t("./compressedObject"),f=t("./nodeBuffer"),c=t("./utf8"),d=t("./stringWriter"),p=t("./uint8ArrayWriter"),m=function(t){if(t._data instanceof h&&(t._data=t._data.getContent(),t.options.binary=!0,t.options.base64=!1,"uint8array"===i.getTypeOf(t._data))){var e=t._data;t._data=new Uint8Array(e.length),0!==e.length&&t._data.set(e,0)}return t._data},_=function(t){var e=m(t),r=i.getTypeOf(e);return"string"===r?!t.options.binary&&n.nodebuffer?f(e,"utf-8"):t.asBinary():e},g=function(t){var e=m(this);return null===e||"undefined"===typeof e?"":(this.options.base64&&(e=l.decode(e)),e=t&&this.options.binary?S.utf8decode(e):i.transformTo("string",e),t||this.options.binary||(e=i.transformTo("string",S.utf8encode(e))),e)},b=function(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this.options=r,this._initialMetadata={dir:r.dir,date:r.date}};b.prototype={asText:function(){return g.call(this,!0)},asBinary:function(){return g.call(this,!1)},asNodeBuffer:function(){var t=_(this);return i.transformTo("nodebuffer",t)},asUint8Array:function(){var t=_(this);return i.transformTo("uint8array",t)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var w=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},y=function(t){return t=t||{},!0!==t.base64||null!==t.binary&&void 0!==t.binary||(t.binary=!0),t=i.extend(t,o),t.date=t.date||new Date,null!==t.compression&&(t.compression=t.compression.toUpperCase()),t},v=function(t,e,r){var n,a=i.getTypeOf(e);if(r=y(r),"string"===typeof r.unixPermissions&&(r.unixPermissions=parseInt(r.unixPermissions,8)),r.unixPermissions&&16384&r.unixPermissions&&(r.dir=!0),r.dosPermissions&&16&r.dosPermissions&&(r.dir=!0),r.dir&&(t=k(t)),r.createFolders&&(n=x(t))&&E.call(this,n,!0),r.dir||null===e||"undefined"===typeof e)r.base64=!1,r.binary=!1,e=null,a=null;else if("string"===a)r.binary&&!r.base64&&!0!==r.optimizedBinaryString&&(e=i.string2binary(e));else{if(r.base64=!1,r.binary=!0,!a&&!(e instanceof h))throw new Error("The data of '"+t+"' is in an unsupported format !");"arraybuffer"===a&&(e=i.transformTo("uint8array",e))}var s=new b(t,e,r);return this.files[t]=s,s},x=function(t){"/"==t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},k=function(t){return"/"!=t.slice(-1)&&(t+="/"),t},E=function(t,e){return e="undefined"!==typeof e&&e,t=k(t),this.files[t]||v.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]},A=function(t,e,r){var n,s=new h;return t._data instanceof h?(s.uncompressedSize=t._data.uncompressedSize,s.crc32=t._data.crc32,0===s.uncompressedSize||t.dir?(e=u["STORE"],s.compressedContent="",s.crc32=0):t._data.compressionMethod===e.magic?s.compressedContent=t._data.getCompressedContent():(n=t._data.getContent(),s.compressedContent=e.compress(i.transformTo(e.compressInputType,n),r))):(n=_(t),n&&0!==n.length&&!t.dir||(e=u["STORE"],n=""),s.uncompressedSize=n.length,s.crc32=a(n),s.compressedContent=e.compress(i.transformTo(e.compressInputType,n),r)),s.compressedSize=s.compressedContent.length,s.compressionMethod=e.magic,s},z=function(t,e){var r=t;return t||(r=e?16893:33204),(65535&r)<<16},I=function(t,e){return 63&(t||0)},C=function(t,e,r,n,o,l){r.compressedContent;var u,h,f,d,p=l!==c.utf8encode,m=i.transformTo("string",l(e.name)),_=i.transformTo("string",c.utf8encode(e.name)),g=e.comment||"",b=i.transformTo("string",l(g)),y=i.transformTo("string",c.utf8encode(g)),v=_.length!==e.name.length,x=y.length!==g.length,k=e.options,E="",A="",C="";f=e._initialMetadata.dir!==e.dir?e.dir:k.dir,d=e._initialMetadata.date!==e.date?e.date:k.date;var S=0,B=0;f&&(S|=16),"UNIX"===o?(B=798,S|=z(e.unixPermissions,f)):(B=20,S|=I(e.dosPermissions,f)),u=d.getHours(),u<<=6,u|=d.getMinutes(),u<<=5,u|=d.getSeconds()/2,h=d.getFullYear()-1980,h<<=4,h|=d.getMonth()+1,h<<=5,h|=d.getDate(),v&&(A=w(1,1)+w(a(m),4)+_,E+="up"+w(A.length,2)+A),x&&(C=w(1,1)+w(this.crc32(b),4)+y,E+="uc"+w(C.length,2)+C);var R="";R+="\n\0",R+=p||!v&&!x?"\0\0":"\0\b",R+=r.compressionMethod,R+=w(u,2),R+=w(h,2),R+=w(r.crc32,4),R+=w(r.compressedSize,4),R+=w(r.uncompressedSize,4),R+=w(m.length,2),R+=w(E.length,2);var T=s.LOCAL_FILE_HEADER+R+m+E,O=s.CENTRAL_FILE_HEADER+w(B,2)+R+w(b.length,2)+"\0\0\0\0"+w(S,4)+w(n,4)+m+E+b;return{fileRecord:T,dirRecord:O,compressedObject:r}},S={load:function(t,e){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(t){var e,r,n,a,s=[];for(e in this.files)this.files.hasOwnProperty(e)&&(n=this.files[e],a=new b(n.name,n._data,i.extend(n.options)),r=e.slice(this.root.length,e.length),e.slice(0,this.root.length)===this.root&&t(r,a)&&s.push(a));return s},file:function(t,e,r){if(1===arguments.length){if(i.isRegExp(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}return this.filter((function(e,r){return!r.dir&&e===t}))[0]||null}return t=this.root+t,v.call(this,t,e,r),this},folder:function(t){if(!t)return this;if(i.isRegExp(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=E.call(this,e),n=this.clone();return n.root=r.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!=t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(t){t=i.extend(t||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c.utf8encode}),i.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var e,r,n=[],a=0,o=0,h=i.transformTo("string",t.encodeFileName(t.comment||this.comment||""));for(var f in this.files)if(this.files.hasOwnProperty(f)){var m=this.files[f],_=m.options.compression||t.compression.toUpperCase(),g=u[_];if(!g)throw new Error(_+" is not a valid compression method !");var b=m.options.compressionOptions||t.compressionOptions||{},y=A.call(this,m,g,b),v=C.call(this,f,m,y,a,t.platform,t.encodeFileName);a+=v.fileRecord.length+y.compressedSize,o+=v.dirRecord.length,n.push(v)}var x="";x=s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+w(n.length,2)+w(n.length,2)+w(o,4)+w(a,4)+w(h.length,2)+h;var k=t.type.toLowerCase();for(e="uint8array"===k||"arraybuffer"===k||"blob"===k||"nodebuffer"===k?new p(a+o+x.length):new d(a+o+x.length),r=0;r<n.length;r++)e.append(n[r].fileRecord),e.append(n[r].compressedObject.compressedContent);for(r=0;r<n.length;r++)e.append(n[r].dirRecord);e.append(x);var E=e.finalize();switch(t.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return i.transformTo(t.type.toLowerCase(),E);case"blob":return i.arrayBuffer2Blob(i.transformTo("arraybuffer",E),t.mimeType);case"base64":return t.base64?l.encode(E):E;default:return E}},crc32:function(t,e){return a(t,e)},utf8encode:function(t){return i.transformTo("string",c.utf8encode(t))},utf8decode:function(t){return c.utf8decode(t)}};e.exports=S},{"./base64":6,"./compressedObject":7,"./compressions":8,"./crc32":9,"./defaults":11,"./nodeBuffer":16,"./signature":19,"./stringWriter":21,"./support":22,"./uint8ArrayWriter":24,"./utf8":25,"./utils":26}],19:[function(t,e,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"},{}],20:[function(t,e,r){"use strict";var n=t("./dataReader"),i=t("./utils");function a(t,e){this.data=t,e||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}a.prototype=new n,a.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},a.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},a.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=a},{"./dataReader":10,"./utils":26}],21:[function(t,e,r){"use strict";var n=t("./utils"),i=function(){this.data=[]};i.prototype={append:function(t){t=n.transformTo("string",t),this.data.push(t)},finalize:function(){return this.data.join("")}},e.exports=i},{"./utils":26}],22:[function(t,e,r){(function(t){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array,r.nodebuffer="undefined"!==typeof t,r.uint8array="undefined"!==typeof Uint8Array,"undefined"===typeof ArrayBuffer)r.blob=!1;else{var e=new ArrayBuffer(0);try{r.blob=0===new Blob([e],{type:"application/zip"}).size}catch(a){try{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=new n;i.append(e),r.blob=0===i.getBlob("application/zip").size}catch(a){r.blob=!1}}}}).call(this,t("buffer").Buffer)},{buffer:1}],23:[function(t,e,r){"use strict";var n=t("./arrayReader");function i(t){t&&(this.data=t,this.length=this.data.length,this.index=0,this.zero=0)}i.prototype=new n,i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"./arrayReader":5}],24:[function(t,e,r){"use strict";var n=t("./utils"),i=function(t){this.data=new Uint8Array(t),this.index=0};i.prototype={append:function(t){0!==t.length&&(t=n.transformTo("uint8array",t),this.data.set(t,this.index),this.index+=t.length)},finalize:function(){return this.data}},e.exports=i},{"./utils":26}],25:[function(t,e,r){"use strict";for(var n=t("./utils"),i=t("./support"),a=t("./nodeBuffer"),s=new Array(256),o=0;o<256;o++)s[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;s[254]=s[254]=1;var l=function(t){var e,r,n,a,s,o=t.length,l=0;for(a=0;a<o;a++)r=t.charCodeAt(a),55296===(64512&r)&&a+1<o&&(n=t.charCodeAt(a+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(e=i.uint8array?new Uint8Array(l):new Array(l),s=0,a=0;s<l;a++)r=t.charCodeAt(a),55296===(64512&r)&&a+1<o&&(n=t.charCodeAt(a+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),r<128?e[s++]=r:r<2048?(e[s++]=192|r>>>6,e[s++]=128|63&r):r<65536?(e[s++]=224|r>>>12,e[s++]=128|r>>>6&63,e[s++]=128|63&r):(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63,e[s++]=128|r>>>6&63,e[s++]=128|63&r);return e},u=function(t,e){var r;e=e||t.length,e>t.length&&(e=t.length),r=e-1;while(r>=0&&128===(192&t[r]))r--;return r<0||0===r?e:r+s[t[r]]>e?r:e},h=function(t){var e,r,i,a,o=t.length,l=new Array(2*o);for(r=0,e=0;e<o;)if(i=t[e++],i<128)l[r++]=i;else if(a=s[i],a>4)l[r++]=65533,e+=a-1;else{i&=2===a?31:3===a?15:7;while(a>1&&e<o)i=i<<6|63&t[e++],a--;a>1?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)};r.utf8encode=function(t){return i.nodebuffer?a(t,"utf-8"):l(t)},r.utf8decode=function(t){if(i.nodebuffer)return n.transformTo("nodebuffer",t).toString("utf-8");t=n.transformTo(i.uint8array?"uint8array":"array",t);var e=[],r=0,a=t.length,s=65536;while(r<a){var o=u(t,Math.min(r+s,a));i.uint8array?e.push(h(t.subarray(r,o))):e.push(h(t.slice(r,o))),r=o}return e.join("")}},{"./nodeBuffer":16,"./support":22,"./utils":26}],26:[function(t,e,r){"use strict";var n=t("./support"),i=t("./compressions"),a=t("./nodeBuffer");function s(t){return t}function o(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}function l(t){var e=65536,n=[],i=t.length,s=r.getTypeOf(t),o=0,l=!0;try{switch(s){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,a(0));break}}catch(f){l=!1}if(!l){for(var u="",h=0;h<t.length;h++)u+=String.fromCharCode(t[h]);return u}while(o<i&&e>1)try{"array"===s||"nodebuffer"===s?n.push(String.fromCharCode.apply(null,t.slice(o,Math.min(o+e,i)))):n.push(String.fromCharCode.apply(null,t.subarray(o,Math.min(o+e,i)))),o+=e}catch(f){e=Math.floor(e/2)}return n.join("")}function u(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}r.string2binary=function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(255&t.charCodeAt(r));return e},r.arrayBuffer2Blob=function(t,e){r.checkSupport("blob"),e=e||"application/zip";try{return new Blob([t],{type:e})}catch(a){try{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=new n;return i.append(t),i.getBlob(e)}catch(a){throw new Error("Bug : can't construct the Blob.")}}},r.applyFromCharCode=l;var h={};h["string"]={string:s,array:function(t){return o(t,new Array(t.length))},arraybuffer:function(t){return h["string"]["uint8array"](t).buffer},uint8array:function(t){return o(t,new Uint8Array(t.length))},nodebuffer:function(t){return o(t,a(t.length))}},h["array"]={string:l,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a(t)}},h["arraybuffer"]={string:function(t){return l(new Uint8Array(t))},array:function(t){return u(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a(new Uint8Array(t))}},h["uint8array"]={string:l,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return a(t)}},h["nodebuffer"]={string:l,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return h["nodebuffer"]["uint8array"](t).buffer},uint8array:function(t){return u(t,new Uint8Array(t.length))},nodebuffer:s},r.transformTo=function(t,e){if(e||(e=""),!t)return e;r.checkSupport(t);var n=r.getTypeOf(e),i=h[n][t](e);return i},r.getTypeOf=function(t){return"string"===typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":n.nodebuffer&&a.test(t)?"nodebuffer":n.uint8array&&t instanceof Uint8Array?"uint8array":n.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(t){var e=n[t.toLowerCase()];if(!e)throw new Error(t+" is not supported by this browser")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(t){var e,r,n="";for(r=0;r<(t||"").length;r++)e=t.charCodeAt(r),n+="\\x"+(e<16?"0":"")+e.toString(16).toUpperCase();return n},r.findCompression=function(t){for(var e in i)if(i.hasOwnProperty(e)&&i[e].magic===t)return i[e];return null},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&"undefined"===typeof r[e]&&(r[e]=arguments[t][e]);return r}},{"./compressions":8,"./nodeBuffer":16,"./support":22}],27:[function(t,e,r){"use strict";var n=t("./stringReader"),i=t("./nodeBufferReader"),a=t("./uint8ArrayReader"),s=t("./arrayReader"),o=t("./utils"),l=t("./signature"),u=t("./zipEntry"),h=t("./support");t("./object");function f(t,e){this.files=[],this.loadOptions=e,t&&this.load(t)}f.prototype={checkSignature:function(t){var e=this.reader.readString(4);if(e!==t)throw new Error("Corrupted zip or bug : unexpected signature ("+o.pretty(e)+", expected "+o.pretty(t)+")")},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4),i=n===e;return this.reader.setIndex(r),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=h.uint8array?"uint8array":"array",r=o.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var t,e,r,n=this.zip64EndOfCentralSize-44,i=0;while(i<n)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readString(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(l.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;this.reader.setIndex(this.centralDirOffset);while(this.reader.readString(4)===l.CENTRAL_FILE_HEADER)t=new u({zip64:this.zip64},this.loadOptions),t.readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(l.CENTRAL_DIRECTORY_END);if(t<0){var e=!this.isSignature(0,l.LOCAL_FILE_HEADER);throw e?new Error("Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip : can't find end of central directory")}this.reader.setIndex(t);var r=t;if(this.checkSignature(l.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,t=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),t<0)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,l.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=r-n;if(i>0)this.isSignature(r,l.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){var e=o.getTypeOf(t);if(o.checkSupport(e),"string"!==e||h.uint8array)if("nodebuffer"===e)this.reader=new i(t);else if(h.uint8array)this.reader=new a(o.transformTo("uint8array",t));else{if(!h.array)throw new Error("Unexpected error: unsupported type '"+e+"'");this.reader=new s(o.transformTo("array",t))}else this.reader=new n(t,this.loadOptions.optimizedBinaryString)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=f},{"./arrayReader":5,"./nodeBufferReader":17,"./object":18,"./signature":19,"./stringReader":20,"./support":22,"./uint8ArrayReader":23,"./utils":26,"./zipEntry":28}],28:[function(t,e,r){"use strict";var n=t("./stringReader"),i=t("./utils"),a=t("./compressedObject"),s=t("./object"),o=t("./support"),l=0,u=3;function h(t,e){this.options=t,this.loadOptions=e}h.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},prepareCompressedContent:function(t,e,r){return function(){var n=t.index;t.setIndex(e);var i=t.readData(r);return t.setIndex(n),i}},prepareContent:function(t,e,r,n,a){return function(){var t=i.transformTo(n.uncompressInputType,this.getCompressedContent()),e=n.uncompress(t);if(e.length!==a)throw new Error("Bug : uncompressed data size mismatch");return e}},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(e=i.findCompression(this.compressionMethod),null===e)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");if(this.decompressed=new a,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(t,t.index,this.compressedSize,e),this.decompressed.getContent=this.prepareContent(t,t.index,this.compressedSize,e,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=i.transformTo("string",this.decompressed.getContent()),s.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(t){if(this.versionMadeBy=t.readInt(2),this.versionNeeded=t.readInt(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4),this.fileNameLength=t.readInt(2),this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=t.readData(this.fileNameLength),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),t===l&&(this.dosPermissions=63&this.externalFileAttributes),t===u&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=new n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,r,n,i=t.index;this.extraFields=this.extraFields||{};while(t.index<i+this.extraFieldsLength)e=t.readInt(2),r=t.readInt(2),n=t.readString(r),this.extraFields[e]={id:e,length:r,value:n}},handleUTF8:function(){var t=o.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=new n(t.value);return 1!==e.readInt(1)||s.crc32(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readString(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=new n(t.value);return 1!==e.readInt(1)||s.crc32(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readString(t.length-5))}return null}},e.exports=h},{"./compressedObject":7,"./object":18,"./stringReader":20,"./support":22,"./utils":26}],29:[function(t,e,r){"use strict";var n=t("./lib/utils/common").assign,i=t("./lib/deflate"),a=t("./lib/inflate"),s=t("./lib/zlib/constants"),o={};n(o,i,a,s),e.exports=o},{"./lib/deflate":30,"./lib/inflate":31,"./lib/utils/common":32,"./lib/zlib/constants":35}],30:[function(t,e,r){"use strict";var n=t("./zlib/deflate"),i=t("./utils/common"),a=t("./utils/strings"),s=t("./zlib/messages"),o=t("./zlib/zstream"),l=Object.prototype.toString,u=0,h=4,f=0,c=1,d=2,p=-1,m=0,_=8;function g(t){if(!(this instanceof g))return new g(t);this.options=i.assign({level:p,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==f)throw new Error(s[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var u;if(u="string"===typeof e.dictionary?a.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,r=n.deflateSetDictionary(this.strm,u),r!==f)throw new Error(s[r]);this._dict_set=!0}}function b(t,e){var r=new g(e);if(r.push(t,!0),r.err)throw r.msg;return r.result}function w(t,e){return e=e||{},e.raw=!0,b(t,e)}function y(t,e){return e=e||{},e.gzip=!0,b(t,e)}g.prototype.push=function(t,e){var r,s,o=this.strm,p=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?h:u,"string"===typeof t?o.input=a.string2buf(t):"[object ArrayBuffer]"===l.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(p),o.next_out=0,o.avail_out=p),r=n.deflate(o,s),r!==c&&r!==f)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||s!==h&&s!==d)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&r!==c);return s===h?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===f):s!==d||(this.onEnd(f),o.avail_out=0,!0)},g.prototype.onData=function(t){this.chunks.push(t)},g.prototype.onEnd=function(t){t===f&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=g,r.deflate=b,r.deflateRaw=w,r.gzip=y},{"./utils/common":32,"./utils/strings":33,"./zlib/deflate":37,"./zlib/messages":42,"./zlib/zstream":44}],31:[function(t,e,r){"use strict";var n=t("./zlib/inflate"),i=t("./utils/common"),a=t("./utils/strings"),s=t("./zlib/constants"),o=t("./zlib/messages"),l=t("./zlib/zstream"),u=t("./zlib/gzheader"),h=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0===(15&e.windowBits)&&(e.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,e.windowBits);if(r!==s.Z_OK)throw new Error(o[r]);this.header=new u,n.inflateGetHeader(this.strm,this.header)}function c(t,e){var r=new f(e);if(r.push(t,!0),r.err)throw r.msg;return r.result}function d(t,e){return e=e||{},e.raw=!0,c(t,e)}f.prototype.push=function(t,e){var r,o,l,u,f,c,d=this.strm,p=this.options.chunkSize,m=this.options.dictionary,_=!1;if(this.ended)return!1;o=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"===typeof t?d.input=a.binstring2buf(t):"[object ArrayBuffer]"===h.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),r=n.inflate(d,s.Z_NO_FLUSH),r===s.Z_NEED_DICT&&m&&(c="string"===typeof m?a.string2buf(m):"[object ArrayBuffer]"===h.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,c)),r===s.Z_BUF_ERROR&&!0===_&&(r=s.Z_OK,_=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&r!==s.Z_STREAM_END&&(0!==d.avail_in||o!==s.Z_FINISH&&o!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(d.output,d.next_out),u=d.next_out-l,f=a.buf2string(d.output,l),d.next_out=u,d.avail_out=p-u,u&&i.arraySet(d.output,d.output,l,u,0),this.onData(f)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(_=!0)}while((d.avail_in>0||0===d.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(o=s.Z_FINISH),o===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):o!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),d.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=f,r.inflate=c,r.inflateRaw=d,r.ungzip=c},{"./utils/common":32,"./utils/strings":33,"./zlib/constants":35,"./zlib/gzheader":38,"./zlib/inflate":40,"./zlib/messages":42,"./zlib/zstream":44}],32:[function(t,e,r){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;r.assign=function(t){var e=Array.prototype.slice.call(arguments,1);while(e.length){var r=e.shift();if(r){if("object"!==typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,s;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(s=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],s.set(a,i),i+=a.length;return s}},a={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},{}],33:[function(t,e,r){"use strict";var n=t("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(u){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){a=!1}for(var s=new n.Buf8(256),o=0;o<256;o++)s[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function l(t,e){if(e<65537&&(t.subarray&&a||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",s=0;s<e;s++)r+=String.fromCharCode(t[s]);return r}s[254]=s[254]=1,r.string2buf=function(t){var e,r,i,a,s,o=t.length,l=0;for(a=0;a<o;a++)r=t.charCodeAt(a),55296===(64512&r)&&a+1<o&&(i=t.charCodeAt(a+1),56320===(64512&i)&&(r=65536+(r-55296<<10)+(i-56320),a++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(l),s=0,a=0;s<l;a++)r=t.charCodeAt(a),55296===(64512&r)&&a+1<o&&(i=t.charCodeAt(a+1),56320===(64512&i)&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?e[s++]=r:r<2048?(e[s++]=192|r>>>6,e[s++]=128|63&r):r<65536?(e[s++]=224|r>>>12,e[s++]=128|r>>>6&63,e[s++]=128|63&r):(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63,e[s++]=128|r>>>6&63,e[s++]=128|63&r);return e},r.buf2binstring=function(t){return l(t,t.length)},r.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,n,i,a,o=e||t.length,u=new Array(2*o);for(n=0,r=0;r<o;)if(i=t[r++],i<128)u[n++]=i;else if(a=s[i],a>4)u[n++]=65533,r+=a-1;else{i&=2===a?31:3===a?15:7;while(a>1&&r<o)i=i<<6|63&t[r++],a--;a>1?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(t,e){var r;e=e||t.length,e>t.length&&(e=t.length),r=e-1;while(r>=0&&128===(192&t[r]))r--;return r<0||0===r?e:r+s[t[r]]>e?r:e}},{"./common":32}],34:[function(t,e,r){"use strict";function n(t,e,r,n){var i=65535&t|0,a=t>>>16&65535|0,s=0;while(0!==r){s=r>2e3?2e3:r,r-=s;do{i=i+e[n++]|0,a=a+i|0}while(--s);i%=65521,a%=65521}return i|a<<16|0}e.exports=n},{}],35:[function(t,e,r){"use strict";e.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}},{}],36:[function(t,e,r){"use strict";function n(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}var i=n();function a(t,e,r,n){var a=i,s=n+r;t^=-1;for(var o=n;o<s;o++)t=t>>>8^a[255&(t^e[o])];return-1^t}e.exports=a},{}],37:[function(t,e,r){"use strict";var n,i=t("../utils/common"),a=t("./trees"),s=t("./adler32"),o=t("./crc32"),l=t("./messages"),u=0,h=1,f=3,c=4,d=5,p=0,m=1,_=-2,g=-3,b=-5,w=-1,y=1,v=2,x=3,k=4,E=0,A=2,z=8,I=9,C=15,S=8,B=29,R=256,T=R+1+B,O=30,L=19,D=2*T+1,U=15,j=3,P=258,N=P+j+1,F=32,Z=42,M=69,Y=73,W=91,H=103,V=113,G=666,X=1,K=2,q=3,J=4,$=3;function Q(t,e){return t.msg=l[e],e}function tt(t){return(t<<1)-(t>4?9:0)}function et(t){var e=t.length;while(--e>=0)t[e]=0}function rt(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function nt(t,e){a._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,rt(t.strm)}function it(t,e){t.pending_buf[t.pending++]=e}function at(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function st(t,e,r,n){var a=t.avail_in;return a>n&&(a=n),0===a?0:(t.avail_in-=a,i.arraySet(e,t.input,t.next_in,a,r),1===t.state.wrap?t.adler=s(t.adler,e,a,r):2===t.state.wrap&&(t.adler=o(t.adler,e,a,r)),t.next_in+=a,t.total_in+=a,a)}function ot(t,e){var r,n,i=t.max_chain_length,a=t.strstart,s=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-N?t.strstart-(t.w_size-N):0,u=t.window,h=t.w_mask,f=t.prev,c=t.strstart+P,d=u[a+s-1],p=u[a+s];t.prev_length>=t.good_match&&(i>>=2),o>t.lookahead&&(o=t.lookahead);do{if(r=e,u[r+s]===p&&u[r+s-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]&&a<c);if(n=P-(c-a),a=c-P,n>s){if(t.match_start=e,s=n,n>=o)break;d=u[a+s-1],p=u[a+s]}}}while((e=f[e&h])>l&&0!==--i);return s<=t.lookahead?s:t.lookahead}function lt(t){var e,r,n,a,s,o=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=o+(o-N)){i.arraySet(t.window,t.window,o,o,0),t.match_start-=o,t.strstart-=o,t.block_start-=o,r=t.hash_size,e=r;do{n=t.head[--e],t.head[e]=n>=o?n-o:0}while(--r);r=o,e=r;do{n=t.prev[--e],t.prev[e]=n>=o?n-o:0}while(--r);a+=o}if(0===t.strm.avail_in)break;if(r=st(t.strm,t.window,t.strstart+t.lookahead,a),t.lookahead+=r,t.lookahead+t.insert>=j){s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;while(t.insert)if(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+j-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,t.lookahead+t.insert<j)break}}while(t.lookahead<N&&0!==t.strm.avail_in)}function ut(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(lt(t),0===t.lookahead&&e===u)return X;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,nt(t,!1),0===t.strm.avail_out))return X;if(t.strstart-t.block_start>=t.w_size-N&&(nt(t,!1),0===t.strm.avail_out))return X}return t.insert=0,e===c?(nt(t,!0),0===t.strm.avail_out?q:J):(t.strstart>t.block_start&&(nt(t,!1),t.strm.avail_out),X)}function ht(t,e){for(var r,n;;){if(t.lookahead<N){if(lt(t),t.lookahead<N&&e===u)return X;if(0===t.lookahead)break}if(r=0,t.lookahead>=j&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+j-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-N&&(t.match_length=ot(t,r)),t.match_length>=j)if(n=a._tr_tally(t,t.strstart-t.match_start,t.match_length-j),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=j){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+j-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(nt(t,!1),0===t.strm.avail_out))return X}return t.insert=t.strstart<j-1?t.strstart:j-1,e===c?(nt(t,!0),0===t.strm.avail_out?q:J):t.last_lit&&(nt(t,!1),0===t.strm.avail_out)?X:K}function ft(t,e){for(var r,n,i;;){if(t.lookahead<N){if(lt(t),t.lookahead<N&&e===u)return X;if(0===t.lookahead)break}if(r=0,t.lookahead>=j&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+j-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=j-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-N&&(t.match_length=ot(t,r),t.match_length<=5&&(t.strategy===y||t.match_length===j&&t.strstart-t.match_start>4096)&&(t.match_length=j-1)),t.prev_length>=j&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-j,n=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-j),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+j-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=j-1,t.strstart++,n&&(nt(t,!1),0===t.strm.avail_out))return X}else if(t.match_available){if(n=a._tr_tally(t,0,t.window[t.strstart-1]),n&&nt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return X}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<j-1?t.strstart:j-1,e===c?(nt(t,!0),0===t.strm.avail_out?q:J):t.last_lit&&(nt(t,!1),0===t.strm.avail_out)?X:K}function ct(t,e){for(var r,n,i,s,o=t.window;;){if(t.lookahead<=P){if(lt(t),t.lookahead<=P&&e===u)return X;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=j&&t.strstart>0&&(i=t.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){s=t.strstart+P;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<s);t.match_length=P-(s-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=j?(r=a._tr_tally(t,1,t.match_length-j),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(nt(t,!1),0===t.strm.avail_out))return X}return t.insert=0,e===c?(nt(t,!0),0===t.strm.avail_out?q:J):t.last_lit&&(nt(t,!1),0===t.strm.avail_out)?X:K}function dt(t,e){for(var r;;){if(0===t.lookahead&&(lt(t),0===t.lookahead)){if(e===u)return X;break}if(t.match_length=0,r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(nt(t,!1),0===t.strm.avail_out))return X}return t.insert=0,e===c?(nt(t,!0),0===t.strm.avail_out?q:J):t.last_lit&&(nt(t,!1),0===t.strm.avail_out)?X:K}function pt(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function mt(t){t.window_size=2*t.w_size,et(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=j-1,t.match_available=0,t.ins_h=0}function _t(){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=z,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*D),this.dyn_dtree=new i.Buf16(2*(2*O+1)),this.bl_tree=new i.Buf16(2*(2*L+1)),et(this.dyn_ltree),et(this.dyn_dtree),et(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(U+1),this.heap=new i.Buf16(2*T+1),et(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*T+1),et(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 gt(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=A,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?Z:V,t.adler=2===e.wrap?0:1,e.last_flush=u,a._tr_init(e),p):Q(t,_)}function bt(t){var e=gt(t);return e===p&&mt(t.state),e}function wt(t,e){return t&&t.state?2!==t.state.wrap?_:(t.state.gzhead=e,p):_}function yt(t,e,r,n,a,s){if(!t)return _;var o=1;if(e===w&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),a<1||a>I||r!==z||n<8||n>15||e<0||e>9||s<0||s>k)return Q(t,_);8===n&&(n=9);var l=new _t;return t.state=l,l.strm=t,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+j-1)/j),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=l.lit_bufsize>>1,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=r,bt(t)}function vt(t,e){return yt(t,e,z,C,S,E)}function xt(t,e){var r,i,s,l;if(!t||!t.state||e>d||e<0)return t?Q(t,_):_;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===G&&e!==c)return Q(t,0===t.avail_out?b:_);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===Z)if(2===i.wrap)t.adler=0,it(i,31),it(i,139),it(i,8),i.gzhead?(it(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)),it(i,255&i.gzhead.time),it(i,i.gzhead.time>>8&255),it(i,i.gzhead.time>>16&255),it(i,i.gzhead.time>>24&255),it(i,9===i.level?2:i.strategy>=v||i.level<2?4:0),it(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(it(i,255&i.gzhead.extra.length),it(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=o(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=M):(it(i,0),it(i,0),it(i,0),it(i,0),it(i,0),it(i,9===i.level?2:i.strategy>=v||i.level<2?4:0),it(i,$),i.status=V);else{var g=z+(i.w_bits-8<<4)<<8,w=-1;w=i.strategy>=v||i.level<2?0:i.level<6?1:6===i.level?2:3,g|=w<<6,0!==i.strstart&&(g|=F),g+=31-g%31,i.status=V,at(i,g),0!==i.strstart&&(at(i,t.adler>>>16),at(i,65535&t.adler)),t.adler=1}if(i.status===M)if(i.gzhead.extra){s=i.pending;while(i.gzindex<(65535&i.gzhead.extra.length)){if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),rt(t),s=i.pending,i.pending===i.pending_buf_size))break;it(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++}i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Y)}else i.status=Y;if(i.status===Y)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),rt(t),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,it(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=W)}else i.status=W;if(i.status===W)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),rt(t),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,it(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=H)}else i.status=H;if(i.status===H&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&rt(t),i.pending+2<=i.pending_buf_size&&(it(i,255&t.adler),it(i,t.adler>>8&255),t.adler=0,i.status=V)):i.status=V),0!==i.pending){if(rt(t),0===t.avail_out)return i.last_flush=-1,p}else if(0===t.avail_in&&tt(e)<=tt(r)&&e!==c)return Q(t,b);if(i.status===G&&0!==t.avail_in)return Q(t,b);if(0!==t.avail_in||0!==i.lookahead||e!==u&&i.status!==G){var y=i.strategy===v?dt(i,e):i.strategy===x?ct(i,e):n[i.level].func(i,e);if(y!==q&&y!==J||(i.status=G),y===X||y===q)return 0===t.avail_out&&(i.last_flush=-1),p;if(y===K&&(e===h?a._tr_align(i):e!==d&&(a._tr_stored_block(i,0,0,!1),e===f&&(et(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),rt(t),0===t.avail_out))return i.last_flush=-1,p}return e!==c?p:i.wrap<=0?m:(2===i.wrap?(it(i,255&t.adler),it(i,t.adler>>8&255),it(i,t.adler>>16&255),it(i,t.adler>>24&255),it(i,255&t.total_in),it(i,t.total_in>>8&255),it(i,t.total_in>>16&255),it(i,t.total_in>>24&255)):(at(i,t.adler>>>16),at(i,65535&t.adler)),rt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:m)}function kt(t){var e;return t&&t.state?(e=t.state.status,e!==Z&&e!==M&&e!==Y&&e!==W&&e!==H&&e!==V&&e!==G?Q(t,_):(t.state=null,e===V?Q(t,g):p)):_}function Et(t,e){var r,n,a,o,l,u,h,f,c=e.length;if(!t||!t.state)return _;if(r=t.state,o=r.wrap,2===o||1===o&&r.status!==Z||r.lookahead)return _;1===o&&(t.adler=s(t.adler,e,c,0)),r.wrap=0,c>=r.w_size&&(0===o&&(et(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,e,c-r.w_size,r.w_size,0),e=f,c=r.w_size),l=t.avail_in,u=t.next_in,h=t.input,t.avail_in=c,t.next_in=0,t.input=e,lt(r);while(r.lookahead>=j){n=r.strstart,a=r.lookahead-(j-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+j-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=j-1,lt(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=j-1,r.match_available=0,t.next_in=u,t.input=h,t.avail_in=l,r.wrap=o,p}n=[new pt(0,0,0,0,ut),new pt(4,4,8,4,ht),new pt(4,5,16,8,ht),new pt(4,6,32,32,ht),new pt(4,4,16,16,ft),new pt(8,16,32,32,ft),new pt(8,16,128,128,ft),new pt(8,32,128,256,ft),new pt(32,128,258,1024,ft),new pt(32,258,258,4096,ft)],r.deflateInit=vt,r.deflateInit2=yt,r.deflateReset=bt,r.deflateResetKeep=gt,r.deflateSetHeader=wt,r.deflate=xt,r.deflateEnd=kt,r.deflateSetDictionary=Et,r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./messages":42,"./trees":43}],38:[function(t,e,r){"use strict";function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}e.exports=n},{}],39:[function(t,e,r){"use strict";var n=30,i=12;e.exports=function(t,e){var r,a,s,o,l,u,h,f,c,d,p,m,_,g,b,w,y,v,x,k,E,A,z,I,C;r=t.state,a=t.next_in,I=t.input,s=a+(t.avail_in-5),o=t.next_out,C=t.output,l=o-(e-t.avail_out),u=o+(t.avail_out-257),h=r.dmax,f=r.wsize,c=r.whave,d=r.wnext,p=r.window,m=r.hold,_=r.bits,g=r.lencode,b=r.distcode,w=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;t:do{_<15&&(m+=I[a++]<<_,_+=8,m+=I[a++]<<_,_+=8),v=g[m&w];e:for(;;){if(x=v>>>24,m>>>=x,_-=x,x=v>>>16&255,0===x)C[o++]=65535&v;else{if(!(16&x)){if(0===(64&x)){v=g[(65535&v)+(m&(1<<x)-1)];continue e}if(32&x){r.mode=i;break t}t.msg="invalid literal/length code",r.mode=n;break t}k=65535&v,x&=15,x&&(_<x&&(m+=I[a++]<<_,_+=8),k+=m&(1<<x)-1,m>>>=x,_-=x),_<15&&(m+=I[a++]<<_,_+=8,m+=I[a++]<<_,_+=8),v=b[m&y];r:for(;;){if(x=v>>>24,m>>>=x,_-=x,x=v>>>16&255,!(16&x)){if(0===(64&x)){v=b[(65535&v)+(m&(1<<x)-1)];continue r}t.msg="invalid distance code",r.mode=n;break t}if(E=65535&v,x&=15,_<x&&(m+=I[a++]<<_,_+=8,_<x&&(m+=I[a++]<<_,_+=8)),E+=m&(1<<x)-1,E>h){t.msg="invalid distance too far back",r.mode=n;break t}if(m>>>=x,_-=x,x=o-l,E>x){if(x=E-x,x>c&&r.sane){t.msg="invalid distance too far back",r.mode=n;break t}if(A=0,z=p,0===d){if(A+=f-x,x<k){k-=x;do{C[o++]=p[A++]}while(--x);A=o-E,z=C}}else if(d<x){if(A+=f+d-x,x-=d,x<k){k-=x;do{C[o++]=p[A++]}while(--x);if(A=0,d<k){x=d,k-=x;do{C[o++]=p[A++]}while(--x);A=o-E,z=C}}}else if(A+=d-x,x<k){k-=x;do{C[o++]=p[A++]}while(--x);A=o-E,z=C}while(k>2)C[o++]=z[A++],C[o++]=z[A++],C[o++]=z[A++],k-=3;k&&(C[o++]=z[A++],k>1&&(C[o++]=z[A++]))}else{A=o-E;do{C[o++]=C[A++],C[o++]=C[A++],C[o++]=C[A++],k-=3}while(k>2);k&&(C[o++]=C[A++],k>1&&(C[o++]=C[A++]))}break}}break}}while(a<s&&o<u);k=_>>3,a-=k,_-=k<<3,m&=(1<<_)-1,t.next_in=a,t.next_out=o,t.avail_in=a<s?s-a+5:5-(a-s),t.avail_out=o<u?u-o+257:257-(o-u),r.hold=m,r.bits=_}},{}],40:[function(t,e,r){"use strict";var n=t("../utils/common"),i=t("./adler32"),a=t("./crc32"),s=t("./inffast"),o=t("./inftrees"),l=0,u=1,h=2,f=4,c=5,d=6,p=0,m=1,_=2,g=-2,b=-3,w=-4,y=-5,v=8,x=1,k=2,E=3,A=4,z=5,I=6,C=7,S=8,B=9,R=10,T=11,O=12,L=13,D=14,U=15,j=16,P=17,N=18,F=19,Z=20,M=21,Y=22,W=23,H=24,V=25,G=26,X=27,K=28,q=29,J=30,$=31,Q=32,tt=852,et=592,rt=15,nt=rt;function it(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function at(){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 st(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=x,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(tt),e.distcode=e.distdyn=new n.Buf32(et),e.sane=1,e.back=-1,p):g}function ot(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,st(t)):g}function lt(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?g:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,ot(t))):g}function ut(t,e){var r,n;return t?(n=new at,t.state=n,n.window=null,r=lt(t,e),r!==p&&(t.state=null),r):g}function ht(t){return ut(t,nt)}var ft,ct,dt=!0;function pt(t){if(dt){var e;ft=new n.Buf32(512),ct=new n.Buf32(32),e=0;while(e<144)t.lens[e++]=8;while(e<256)t.lens[e++]=9;while(e<280)t.lens[e++]=7;while(e<288)t.lens[e++]=8;o(u,t.lens,0,288,ft,0,t.work,{bits:9}),e=0;while(e<32)t.lens[e++]=5;o(h,t.lens,0,32,ct,0,t.work,{bits:5}),dt=!1}t.lencode=ft,t.lenbits=9,t.distcode=ct,t.distbits=5}function mt(t,e,r,i){var a,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,e,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),n.arraySet(s.window,e,r-i,a,s.wnext),i-=a,i?(n.arraySet(s.window,e,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}function _t(t,e){var r,tt,et,rt,nt,at,st,ot,lt,ut,ht,ft,ct,dt,_t,gt,bt,wt,yt,vt,xt,kt,Et,At,zt=0,It=new n.Buf8(4),Ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return g;r=t.state,r.mode===O&&(r.mode=L),nt=t.next_out,et=t.output,st=t.avail_out,rt=t.next_in,tt=t.input,at=t.avail_in,ot=r.hold,lt=r.bits,ut=at,ht=st,kt=p;t:for(;;)switch(r.mode){case x:if(0===r.wrap){r.mode=L;break}while(lt<16){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if(2&r.wrap&&35615===ot){r.check=0,It[0]=255&ot,It[1]=ot>>>8&255,r.check=a(r.check,It,2,0),ot=0,lt=0,r.mode=k;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&ot)<<8)+(ot>>8))%31){t.msg="incorrect header check",r.mode=J;break}if((15&ot)!==v){t.msg="unknown compression method",r.mode=J;break}if(ot>>>=4,lt-=4,xt=8+(15&ot),0===r.wbits)r.wbits=xt;else if(xt>r.wbits){t.msg="invalid window size",r.mode=J;break}r.dmax=1<<xt,t.adler=r.check=1,r.mode=512&ot?R:O,ot=0,lt=0;break;case k:while(lt<16){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if(r.flags=ot,(255&r.flags)!==v){t.msg="unknown compression method",r.mode=J;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=J;break}r.head&&(r.head.text=ot>>8&1),512&r.flags&&(It[0]=255&ot,It[1]=ot>>>8&255,r.check=a(r.check,It,2,0)),ot=0,lt=0,r.mode=E;case E:while(lt<32){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}r.head&&(r.head.time=ot),512&r.flags&&(It[0]=255&ot,It[1]=ot>>>8&255,It[2]=ot>>>16&255,It[3]=ot>>>24&255,r.check=a(r.check,It,4,0)),ot=0,lt=0,r.mode=A;case A:while(lt<16){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}r.head&&(r.head.xflags=255&ot,r.head.os=ot>>8),512&r.flags&&(It[0]=255&ot,It[1]=ot>>>8&255,r.check=a(r.check,It,2,0)),ot=0,lt=0,r.mode=z;case z:if(1024&r.flags){while(lt<16){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}r.length=ot,r.head&&(r.head.extra_len=ot),512&r.flags&&(It[0]=255&ot,It[1]=ot>>>8&255,r.check=a(r.check,It,2,0)),ot=0,lt=0}else r.head&&(r.head.extra=null);r.mode=I;case I:if(1024&r.flags&&(ft=r.length,ft>at&&(ft=at),ft&&(r.head&&(xt=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,tt,rt,ft,xt)),512&r.flags&&(r.check=a(r.check,tt,ft,rt)),at-=ft,rt+=ft,r.length-=ft),r.length))break t;r.length=0,r.mode=C;case C:if(2048&r.flags){if(0===at)break t;ft=0;do{xt=tt[rt+ft++],r.head&&xt&&r.length<65536&&(r.head.name+=String.fromCharCode(xt))}while(xt&&ft<at);if(512&r.flags&&(r.check=a(r.check,tt,ft,rt)),at-=ft,rt+=ft,xt)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=S;case S:if(4096&r.flags){if(0===at)break t;ft=0;do{xt=tt[rt+ft++],r.head&&xt&&r.length<65536&&(r.head.comment+=String.fromCharCode(xt))}while(xt&&ft<at);if(512&r.flags&&(r.check=a(r.check,tt,ft,rt)),at-=ft,rt+=ft,xt)break t}else r.head&&(r.head.comment=null);r.mode=B;case B:if(512&r.flags){while(lt<16){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if(ot!==(65535&r.check)){t.msg="header crc mismatch",r.mode=J;break}ot=0,lt=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=O;break;case R:while(lt<32){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}t.adler=r.check=it(ot),ot=0,lt=0,r.mode=T;case T:if(0===r.havedict)return t.next_out=nt,t.avail_out=st,t.next_in=rt,t.avail_in=at,r.hold=ot,r.bits=lt,_;t.adler=r.check=1,r.mode=O;case O:if(e===c||e===d)break t;case L:if(r.last){ot>>>=7<,lt-=7<,r.mode=X;break}while(lt<3){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}switch(r.last=1&ot,ot>>>=1,lt-=1,3&ot){case 0:r.mode=D;break;case 1:if(pt(r),r.mode=Z,e===d){ot>>>=2,lt-=2;break t}break;case 2:r.mode=P;break;case 3:t.msg="invalid block type",r.mode=J}ot>>>=2,lt-=2;break;case D:ot>>>=7<,lt-=7<while(lt<32){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if((65535&ot)!==(ot>>>16^65535)){t.msg="invalid stored block lengths",r.mode=J;break}if(r.length=65535&ot,ot=0,lt=0,r.mode=U,e===d)break t;case U:r.mode=j;case j:if(ft=r.length,ft){if(ft>at&&(ft=at),ft>st&&(ft=st),0===ft)break t;n.arraySet(et,tt,rt,ft,nt),at-=ft,rt+=ft,st-=ft,nt+=ft,r.length-=ft;break}r.mode=O;break;case P:while(lt<14){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if(r.nlen=257+(31&ot),ot>>>=5,lt-=5,r.ndist=1+(31&ot),ot>>>=5,lt-=5,r.ncode=4+(15&ot),ot>>>=4,lt-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=J;break}r.have=0,r.mode=N;case N:while(r.have<r.ncode){while(lt<3){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}r.lens[Ct[r.have++]]=7&ot,ot>>>=3,lt-=3}while(r.have<19)r.lens[Ct[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,Et={bits:r.lenbits},kt=o(l,r.lens,0,19,r.lencode,0,r.work,Et),r.lenbits=Et.bits,kt){t.msg="invalid code lengths set",r.mode=J;break}r.have=0,r.mode=F;case F:while(r.have<r.nlen+r.ndist){for(;;){if(zt=r.lencode[ot&(1<<r.lenbits)-1],_t=zt>>>24,gt=zt>>>16&255,bt=65535&zt,_t<=lt)break;if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if(bt<16)ot>>>=_t,lt-=_t,r.lens[r.have++]=bt;else{if(16===bt){At=_t+2;while(lt<At){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if(ot>>>=_t,lt-=_t,0===r.have){t.msg="invalid bit length repeat",r.mode=J;break}xt=r.lens[r.have-1],ft=3+(3&ot),ot>>>=2,lt-=2}else if(17===bt){At=_t+3;while(lt<At){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}ot>>>=_t,lt-=_t,xt=0,ft=3+(7&ot),ot>>>=3,lt-=3}else{At=_t+7;while(lt<At){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}ot>>>=_t,lt-=_t,xt=0,ft=11+(127&ot),ot>>>=7,lt-=7}if(r.have+ft>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=J;break}while(ft--)r.lens[r.have++]=xt}}if(r.mode===J)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=J;break}if(r.lenbits=9,Et={bits:r.lenbits},kt=o(u,r.lens,0,r.nlen,r.lencode,0,r.work,Et),r.lenbits=Et.bits,kt){t.msg="invalid literal/lengths set",r.mode=J;break}if(r.distbits=6,r.distcode=r.distdyn,Et={bits:r.distbits},kt=o(h,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Et),r.distbits=Et.bits,kt){t.msg="invalid distances set",r.mode=J;break}if(r.mode=Z,e===d)break t;case Z:r.mode=M;case M:if(at>=6&&st>=258){t.next_out=nt,t.avail_out=st,t.next_in=rt,t.avail_in=at,r.hold=ot,r.bits=lt,s(t,ht),nt=t.next_out,et=t.output,st=t.avail_out,rt=t.next_in,tt=t.input,at=t.avail_in,ot=r.hold,lt=r.bits,r.mode===O&&(r.back=-1);break}for(r.back=0;;){if(zt=r.lencode[ot&(1<<r.lenbits)-1],_t=zt>>>24,gt=zt>>>16&255,bt=65535&zt,_t<=lt)break;if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if(gt&&0===(240>)){for(wt=_t,yt=gt,vt=bt;;){if(zt=r.lencode[vt+((ot&(1<<wt+yt)-1)>>wt)],_t=zt>>>24,gt=zt>>>16&255,bt=65535&zt,wt+_t<=lt)break;if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}ot>>>=wt,lt-=wt,r.back+=wt}if(ot>>>=_t,lt-=_t,r.back+=_t,r.length=bt,0===gt){r.mode=G;break}if(32>){r.back=-1,r.mode=O;break}if(64>){t.msg="invalid literal/length code",r.mode=J;break}r.extra=15>,r.mode=Y;case Y:if(r.extra){At=r.extra;while(lt<At){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}r.length+=ot&(1<<r.extra)-1,ot>>>=r.extra,lt-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=W;case W:for(;;){if(zt=r.distcode[ot&(1<<r.distbits)-1],_t=zt>>>24,gt=zt>>>16&255,bt=65535&zt,_t<=lt)break;if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if(0===(240>)){for(wt=_t,yt=gt,vt=bt;;){if(zt=r.distcode[vt+((ot&(1<<wt+yt)-1)>>wt)],_t=zt>>>24,gt=zt>>>16&255,bt=65535&zt,wt+_t<=lt)break;if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}ot>>>=wt,lt-=wt,r.back+=wt}if(ot>>>=_t,lt-=_t,r.back+=_t,64>){t.msg="invalid distance code",r.mode=J;break}r.offset=bt,r.extra=15>,r.mode=H;case H:if(r.extra){At=r.extra;while(lt<At){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}r.offset+=ot&(1<<r.extra)-1,ot>>>=r.extra,lt-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=J;break}r.mode=V;case V:if(0===st)break t;if(ft=ht-st,r.offset>ft){if(ft=r.offset-ft,ft>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=J;break}ft>r.wnext?(ft-=r.wnext,ct=r.wsize-ft):ct=r.wnext-ft,ft>r.length&&(ft=r.length),dt=r.window}else dt=et,ct=nt-r.offset,ft=r.length;ft>st&&(ft=st),st-=ft,r.length-=ft;do{et[nt++]=dt[ct++]}while(--ft);0===r.length&&(r.mode=M);break;case G:if(0===st)break t;et[nt++]=r.length,st--,r.mode=M;break;case X:if(r.wrap){while(lt<32){if(0===at)break t;at--,ot|=tt[rt++]<<lt,lt+=8}if(ht-=st,t.total_out+=ht,r.total+=ht,ht&&(t.adler=r.check=r.flags?a(r.check,et,ht,nt-ht):i(r.check,et,ht,nt-ht)),ht=st,(r.flags?ot:it(ot))!==r.check){t.msg="incorrect data check",r.mode=J;break}ot=0,lt=0}r.mode=K;case K:if(r.wrap&&r.flags){while(lt<32){if(0===at)break t;at--,ot+=tt[rt++]<<lt,lt+=8}if(ot!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=J;break}ot=0,lt=0}r.mode=q;case q:kt=m;break t;case J:kt=b;break t;case $:return w;case Q:default:return g}return t.next_out=nt,t.avail_out=st,t.next_in=rt,t.avail_in=at,r.hold=ot,r.bits=lt,(r.wsize||ht!==t.avail_out&&r.mode<J&&(r.mode<X||e!==f))&&mt(t,t.output,t.next_out,ht-t.avail_out)?(r.mode=$,w):(ut-=t.avail_in,ht-=t.avail_out,t.total_in+=ut,t.total_out+=ht,r.total+=ht,r.wrap&&ht&&(t.adler=r.check=r.flags?a(r.check,et,ht,t.next_out-ht):i(r.check,et,ht,t.next_out-ht)),t.data_type=r.bits+(r.last?64:0)+(r.mode===O?128:0)+(r.mode===Z||r.mode===U?256:0),(0===ut&&0===ht||e===f)&&kt===p&&(kt=y),kt)}function gt(t){if(!t||!t.state)return g;var e=t.state;return e.window&&(e.window=null),t.state=null,p}function bt(t,e){var r;return t&&t.state?(r=t.state,0===(2&r.wrap)?g:(r.head=e,e.done=!1,p)):g}function wt(t,e){var r,n,a,s=e.length;return t&&t.state?(r=t.state,0!==r.wrap&&r.mode!==T?g:r.mode===T&&(n=1,n=i(n,e,s,0),n!==r.check)?b:(a=mt(t,e,s,s),a?(r.mode=$,w):(r.havedict=1,p))):g}r.inflateReset=ot,r.inflateReset2=lt,r.inflateResetKeep=st,r.inflateInit=ht,r.inflateInit2=ut,r.inflate=_t,r.inflateEnd=gt,r.inflateGetHeader=bt,r.inflateSetDictionary=wt,r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./inffast":39,"./inftrees":41}],41:[function(t,e,r){"use strict";var n=t("../utils/common"),i=15,a=852,s=592,o=0,l=1,u=2,h=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],d=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,r,p,m,_,g,b){var w,y,v,x,k,E,A,z,I,C=b.bits,S=0,B=0,R=0,T=0,O=0,L=0,D=0,U=0,j=0,P=0,N=null,F=0,Z=new n.Buf16(i+1),M=new n.Buf16(i+1),Y=null,W=0;for(S=0;S<=i;S++)Z[S]=0;for(B=0;B<p;B++)Z[e[r+B]]++;for(O=C,T=i;T>=1;T--)if(0!==Z[T])break;if(O>T&&(O=T),0===T)return m[_++]=20971520,m[_++]=20971520,b.bits=1,0;for(R=1;R<T;R++)if(0!==Z[R])break;for(O<R&&(O=R),U=1,S=1;S<=i;S++)if(U<<=1,U-=Z[S],U<0)return-1;if(U>0&&(t===o||1!==T))return-1;for(M[1]=0,S=1;S<i;S++)M[S+1]=M[S]+Z[S];for(B=0;B<p;B++)0!==e[r+B]&&(g[M[e[r+B]]++]=B);if(t===o?(N=Y=g,E=19):t===l?(N=h,F-=257,Y=f,W-=257,E=256):(N=c,Y=d,E=-1),P=0,B=0,S=R,k=_,L=O,D=0,v=-1,j=1<<O,x=j-1,t===l&&j>a||t===u&&j>s)return 1;for(;;){A=S-D,g[B]<E?(z=0,I=g[B]):g[B]>E?(z=Y[W+g[B]],I=N[F+g[B]]):(z=96,I=0),w=1<<S-D,y=1<<L,R=y;do{y-=w,m[k+(P>>D)+y]=A<<24|z<<16|I|0}while(0!==y);w=1<<S-1;while(P&w)w>>=1;if(0!==w?(P&=w-1,P+=w):P=0,B++,0===--Z[S]){if(S===T)break;S=e[r+g[B]]}if(S>O&&(P&x)!==v){0===D&&(D=O),k+=R,L=S-D,U=1<<L;while(L+D<T){if(U-=Z[L+D],U<=0)break;L++,U<<=1}if(j+=1<<L,t===l&&j>a||t===u&&j>s)return 1;v=P&x,m[v]=O<<24|L<<16|k-_|0}}return 0!==P&&(m[k+P]=S-D<<24|64<<16|0),b.bits=O,0}},{"../utils/common":32}],42:[function(t,e,r){"use strict";e.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"}},{}],43:[function(t,e,r){"use strict";var n=t("../utils/common"),i=4,a=0,s=1,o=2;function l(t){var e=t.length;while(--e>=0)t[e]=0}var u=0,h=1,f=2,c=3,d=258,p=29,m=256,_=m+1+p,g=30,b=19,w=2*_+1,y=15,v=16,x=7,k=256,E=16,A=17,z=18,I=[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],C=[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],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=512,T=new Array(2*(_+2));l(T);var O=new Array(2*g);l(O);var L=new Array(R);l(L);var D=new Array(d-c+1);l(D);var U=new Array(p);l(U);var j,P,N,F=new Array(g);function Z(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function M(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function Y(t){return t<256?L[t]:L[256+(t>>>7)]}function W(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function H(t,e,r){t.bi_valid>v-r?(t.bi_buf|=e<<t.bi_valid&65535,W(t,t.bi_buf),t.bi_buf=e>>v-t.bi_valid,t.bi_valid+=r-v):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function V(t,e,r){H(t,r[2*e],r[2*e+1])}function G(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function X(t){16===t.bi_valid?(W(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function K(t,e){var r,n,i,a,s,o,l=e.dyn_tree,u=e.max_code,h=e.stat_desc.static_tree,f=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,m=0;for(a=0;a<=y;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<w;r++)n=t.heap[r],a=l[2*l[2*n+1]+1]+1,a>p&&(a=p,m++),l[2*n+1]=a,n>u||(t.bl_count[a]++,s=0,n>=d&&(s=c[n-d]),o=l[2*n],t.opt_len+=o*(a+s),f&&(t.static_len+=o*(h[2*n+1]+s)));if(0!==m){do{a=p-1;while(0===t.bl_count[a])a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--){n=t.bl_count[a];while(0!==n)i=t.heap[--r],i>u||(l[2*i+1]!==a&&(t.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}}function q(t,e,r){var n,i,a=new Array(y+1),s=0;for(n=1;n<=y;n++)a[n]=s=s+r[n-1]<<1;for(i=0;i<=e;i++){var o=t[2*i+1];0!==o&&(t[2*i]=G(a[o]++,o))}}function J(){var t,e,r,n,i,a=new Array(y+1);for(r=0,n=0;n<p-1;n++)for(U[n]=r,t=0;t<1<<I[n];t++)D[r++]=n;for(D[r-1]=n,i=0,n=0;n<16;n++)for(F[n]=i,t=0;t<1<<C[n];t++)L[i++]=n;for(i>>=7;n<g;n++)for(F[n]=i<<7,t=0;t<1<<C[n]-7;t++)L[256+i++]=n;for(e=0;e<=y;e++)a[e]=0;t=0;while(t<=143)T[2*t+1]=8,t++,a[8]++;while(t<=255)T[2*t+1]=9,t++,a[9]++;while(t<=279)T[2*t+1]=7,t++,a[7]++;while(t<=287)T[2*t+1]=8,t++,a[8]++;for(q(T,_+1,a),t=0;t<g;t++)O[2*t+1]=5,O[2*t]=G(t,5);j=new Z(T,I,m+1,_,y),P=new Z(O,C,0,g,y),N=new Z(new Array(0),S,0,b,x)}function $(t){var e;for(e=0;e<_;e++)t.dyn_ltree[2*e]=0;for(e=0;e<g;e++)t.dyn_dtree[2*e]=0;for(e=0;e<b;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*k]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Q(t){t.bi_valid>8?W(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function tt(t,e,r,i){Q(t),i&&(W(t,r),W(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}function et(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function rt(t,e,r){var n=t.heap[r],i=r<<1;while(i<=t.heap_len){if(i<t.heap_len&&et(e,t.heap[i+1],t.heap[i],t.depth)&&i++,et(e,n,t.heap[i],t.depth))break;t.heap[r]=t.heap[i],r=i,i<<=1}t.heap[r]=n}function nt(t,e,r){var n,i,a,s,o=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===n?V(t,i,e):(a=D[i],V(t,a+m+1,e),s=I[a],0!==s&&(i-=U[a],H(t,i,s)),n--,a=Y(n),V(t,a,r),s=C[a],0!==s&&(n-=F[a],H(t,n,s)))}while(o<t.last_lit);V(t,k,e)}function it(t,e){var r,n,i,a=e.dyn_tree,s=e.stat_desc.static_tree,o=e.stat_desc.has_stree,l=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=w,r=0;r<l;r++)0!==a[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):a[2*r+1]=0;while(t.heap_len<2)i=t.heap[++t.heap_len]=u<2?++u:0,a[2*i]=1,t.depth[i]=0,t.opt_len--,o&&(t.static_len-=s[2*i+1]);for(e.max_code=u,r=t.heap_len>>1;r>=1;r--)rt(t,a,r);i=l;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],rt(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,rt(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],K(t,e),q(a,u,t.bl_count)}function at(t,e,r){var n,i,a=-1,s=e[1],o=0,l=7,u=4;for(0===s&&(l=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=e[2*(n+1)+1],++o<l&&i===s||(o<u?t.bl_tree[2*i]+=o:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[2*E]++):o<=10?t.bl_tree[2*A]++:t.bl_tree[2*z]++,o=0,a=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4))}function st(t,e,r){var n,i,a=-1,s=e[1],o=0,l=7,u=4;for(0===s&&(l=138,u=3),n=0;n<=r;n++)if(i=s,s=e[2*(n+1)+1],!(++o<l&&i===s)){if(o<u)do{V(t,i,t.bl_tree)}while(0!==--o);else 0!==i?(i!==a&&(V(t,i,t.bl_tree),o--),V(t,E,t.bl_tree),H(t,o-3,2)):o<=10?(V(t,A,t.bl_tree),H(t,o-3,3)):(V(t,z,t.bl_tree),H(t,o-11,7));o=0,a=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4)}}function ot(t){var e;for(at(t,t.dyn_ltree,t.l_desc.max_code),at(t,t.dyn_dtree,t.d_desc.max_code),it(t,t.bl_desc),e=b-1;e>=3;e--)if(0!==t.bl_tree[2*B[e]+1])break;return t.opt_len+=3*(e+1)+5+5+4,e}function lt(t,e,r,n){var i;for(H(t,e-257,5),H(t,r-1,5),H(t,n-4,4),i=0;i<n;i++)H(t,t.bl_tree[2*B[i]+1],3);st(t,t.dyn_ltree,e-1),st(t,t.dyn_dtree,r-1)}function ut(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return a;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return s;for(e=32;e<m;e++)if(0!==t.dyn_ltree[2*e])return s;return a}l(F);var ht=!1;function ft(t){ht||(J(),ht=!0),t.l_desc=new M(t.dyn_ltree,j),t.d_desc=new M(t.dyn_dtree,P),t.bl_desc=new M(t.bl_tree,N),t.bi_buf=0,t.bi_valid=0,$(t)}function ct(t,e,r,n){H(t,(u<<1)+(n?1:0),3),tt(t,e,r,!0)}function dt(t){H(t,h<<1,3),V(t,k,T),X(t)}function pt(t,e,r,n){var a,s,l=0;t.level>0?(t.strm.data_type===o&&(t.strm.data_type=ut(t)),it(t,t.l_desc),it(t,t.d_desc),l=ot(t),a=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&-1!==e?ct(t,e,r,n):t.strategy===i||s===a?(H(t,(h<<1)+(n?1:0),3),nt(t,T,O)):(H(t,(f<<1)+(n?1:0),3),lt(t,t.l_desc.max_code+1,t.d_desc.max_code+1,l+1),nt(t,t.dyn_ltree,t.dyn_dtree)),$(t),n&&Q(t)}function mt(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(D[r]+m+1)]++,t.dyn_dtree[2*Y(e)]++),t.last_lit===t.lit_bufsize-1}r._tr_init=ft,r._tr_stored_block=ct,r._tr_flush_block=pt,r._tr_tally=mt,r._tr_align=dt},{"../utils/common":32}],44:[function(t,e,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}e.exports=n},{}],45:[function(t,e,r){var n=t("lodash._root"),i=1/0,a="[object Symbol]",s=/[&<>"'`]/g,o=RegExp(s.source),l={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};function u(t){return l[t]}var h=Object.prototype,f=h.toString,c=n.Symbol,d=c?c.prototype:void 0,p=c?d.toString:void 0;function m(t){return!!t&&"object"==typeof t}function _(t){return"symbol"==typeof t||m(t)&&f.call(t)==a}function g(t){if("string"==typeof t)return t;if(null==t)return"";if(_(t))return c?p.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}function b(t){return t=g(t),t&&o.test(t)?t.replace(s,u):t}e.exports=b},{"lodash._root":46}],46:[function(t,e,r){(function(t){var n={function:!0,object:!0},i=n[typeof r]&&r&&!r.nodeType?r:void 0,a=n[typeof e]&&e&&!e.nodeType?e:void 0,s=f(i&&a&&"object"==typeof t&&t),o=f(n[typeof self]&&self),l=f(n[typeof window]&&window),u=f(n[typeof this]&&this),h=s||l!==(u&&u.window)&&l||o||u||Function("return this")();function f(t){return t&&t.Object===Object?t:null}e.exports=h}).call(this,"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],47:[function(t,e,r){var n=t("lodash._arraycopy"),i=t("lodash._arrayeach"),a=t("lodash._createassigner"),s=t("lodash.isarguments"),o=t("lodash.isarray"),l=t("lodash.isplainobject"),u=t("lodash.istypedarray"),h=t("lodash.keys"),f=t("lodash.toplainobject");function c(t){return!!t&&"object"==typeof t}var d=9007199254740991;function p(t,e,r,n,a){if(!y(t))return t;var s=b(e)&&(o(e)||u(e)),l=s?void 0:h(e);return i(l||e,(function(i,o){if(l&&(o=i,i=e[o]),c(i))n||(n=[]),a||(a=[]),m(t,e,o,p,r,n,a);else{var u=t[o],h=r?r(u,i,o,t,e):void 0,f=void 0===h;f&&(h=i),void 0===h&&(!s||o in t)||!f&&(h===h?h===u:u!==u)||(t[o]=h)}})),t}function m(t,e,r,i,a,h,c){var d=h.length,p=e[r];while(d--)if(h[d]==p)return void(t[r]=c[d]);var m=t[r],_=a?a(m,p,r,t,e):void 0,g=void 0===_;g&&(_=p,b(p)&&(o(p)||u(p))?_=o(m)?m:b(m)?n(m):[]:l(p)||s(p)?_=s(m)?f(m):l(m)?m:{}:g=!1),h.push(p),c.push(_),g?t[r]=i(_,p,a,h,c):(_===_?_!==m:m===m)&&(t[r]=_)}function _(t){return function(e){return null==e?void 0:e[t]}}var g=_("length");function b(t){return null!=t&&w(g(t))}function w(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=d}function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var v=a(p);e.exports=v},{"lodash._arraycopy":48,"lodash._arrayeach":49,"lodash._createassigner":50,"lodash.isarguments":55,"lodash.isarray":56,"lodash.isplainobject":57,"lodash.istypedarray":59,"lodash.keys":60,"lodash.toplainobject":62}],48:[function(t,e,r){function n(t,e){var r=-1,n=t.length;e||(e=Array(n));while(++r<n)e[r]=t[r];return e}e.exports=n},{}],49:[function(t,e,r){function n(t,e){var r=-1,n=t.length;while(++r<n)if(!1===e(t[r],r,t))break;return t}e.exports=n},{}],50:[function(t,e,r){var n=t("lodash._bindcallback"),i=t("lodash._isiterateecall"),a=t("lodash.restparam");function s(t){return a((function(e,r){var a=-1,s=null==e?0:r.length,o=s>2?r[s-2]:void 0,l=s>2?r[2]:void 0,u=s>1?r[s-1]:void 0;"function"==typeof o?(o=n(o,u,5),s-=2):(o="function"==typeof u?u:void 0,s-=o?1:0),l&&i(r[0],r[1],l)&&(o=s<3?void 0:o,s=1);while(++a<s){var h=r[a];h&&t(e,h,o)}return e}))}e.exports=s},{"lodash._bindcallback":51,"lodash._isiterateecall":52,"lodash.restparam":53}],51:[function(t,e,r){function n(t,e,r){if("function"!=typeof t)return i;if(void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 3:return function(r,n,i){return t.call(e,r,n,i)};case 4:return function(r,n,i,a){return t.call(e,r,n,i,a)};case 5:return function(r,n,i,a,s){return t.call(e,r,n,i,a,s)}}return function(){return t.apply(e,arguments)}}function i(t){return t}e.exports=n},{}],52:[function(t,e,r){var n=/^\d+$/,i=9007199254740991;function a(t){return function(e){return null==e?void 0:e[t]}}var s=a("length");function o(t){return null!=t&&h(s(t))}function l(t,e){return t="number"==typeof t||n.test(t)?+t:-1,e=null==e?i:e,t>-1&&t%1==0&&t<e}function u(t,e,r){if(!f(r))return!1;var n=typeof e;if("number"==n?o(r)&&l(e,r.length):"string"==n&&e in r){var i=r[e];return t===t?t===i:i!==i}return!1}function h(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function f(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}e.exports=u},{}],53:[function(t,e,r){var n="Expected a function",i=Math.max;function a(t,e){if("function"!=typeof t)throw new TypeError(n);return e=i(void 0===e?t.length-1:+e||0,0),function(){var r=arguments,n=-1,a=i(r.length-e,0),s=Array(a);while(++n<a)s[n]=r[e+n];switch(e){case 0:return t.call(this,s);case 1:return t.call(this,r[0],s);case 2:return t.call(this,r[0],r[1],s)}var o=Array(e+1);n=-1;while(++n<e)o[n]=r[n];return o[e]=s,t.apply(this,o)}}e.exports=a},{}],54:[function(t,e,r){var n="[object Function]",i=/^\[object .+?Constructor\]$/;function a(t){return!!t&&"object"==typeof t}var s=Object.prototype,o=Function.prototype.toString,l=s.hasOwnProperty,u=s.toString,h=RegExp("^"+o.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(t,e){var r=null==t?void 0:t[e];return p(r)?r:void 0}function c(t){return d(t)&&u.call(t)==n}function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function p(t){return null!=t&&(c(t)?h.test(o.call(t)):a(t)&&i.test(t))}e.exports=f},{}],55:[function(t,e,r){var n=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",o=Object.prototype,l=o.hasOwnProperty,u=o.toString,h=o.propertyIsEnumerable;function f(t){return function(e){return null==e?void 0:e[t]}}var c=f("length");function d(t){return m(t)&&l.call(t,"callee")&&(!h.call(t,"callee")||u.call(t)==i)}function p(t){return null!=t&&g(c(t))&&!_(t)}function m(t){return w(t)&&p(t)}function _(t){var e=b(t)?u.call(t):"";return e==a||e==s}function g(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function w(t){return!!t&&"object"==typeof t}e.exports=d},{}],56:[function(t,e,r){var n="[object Array]",i="[object Function]",a=/^\[object .+?Constructor\]$/;function s(t){return!!t&&"object"==typeof t}var o=Object.prototype,l=Function.prototype.toString,u=o.hasOwnProperty,h=o.toString,f=RegExp("^"+l.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),c=p(Array,"isArray"),d=9007199254740991;function p(t,e){var r=null==t?void 0:t[e];return w(r)?r:void 0}function m(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=d}var _=c||function(t){return s(t)&&m(t.length)&&h.call(t)==n};function g(t){return b(t)&&h.call(t)==i}function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function w(t){return null!=t&&(g(t)?f.test(l.call(t)):s(t)&&a.test(t))}e.exports=_},{}],57:[function(t,e,r){var n=t("lodash._basefor"),i=t("lodash.isarguments"),a=t("lodash.keysin"),s="[object Object]";function o(t){return!!t&&"object"==typeof t}var l=Object.prototype,u=l.hasOwnProperty,h=l.toString;function f(t,e){return n(t,e,a)}function c(t){var e,r;return!(!o(t)||h.call(t)!=s||i(t)||!(u.call(t,"constructor")||(e=t.constructor,"function"!=typeof e||e instanceof e)))&&(f(t,(function(t,e){r=e})),void 0===r||u.call(t,r))}e.exports=c},{"lodash._basefor":58,"lodash.isarguments":55,"lodash.keysin":61}],58:[function(t,e,r){var n=i();function i(t){return function(e,r,n){var i=-1,a=Object(e),s=n(e),o=s.length;while(o--){var l=s[t?o:++i];if(!1===r(a[l],l,a))break}return e}}e.exports=n},{}],59:[function(t,e,r){var n=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",o="[object Date]",l="[object Error]",u="[object Function]",h="[object Map]",f="[object Number]",c="[object Object]",d="[object RegExp]",p="[object Set]",m="[object String]",_="[object WeakMap]",g="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",y="[object Float64Array]",v="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",E="[object Uint8Array]",A="[object Uint8ClampedArray]",z="[object Uint16Array]",I="[object Uint32Array]",C={};C[w]=C[y]=C[v]=C[x]=C[k]=C[E]=C[A]=C[z]=C[I]=!0,C[i]=C[a]=C[g]=C[s]=C[b]=C[o]=C[l]=C[u]=C[h]=C[f]=C[c]=C[d]=C[p]=C[m]=C[_]=!1;var S=Object.prototype,B=S.toString;function R(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function T(t){return!!t&&"object"==typeof t}function O(t){return T(t)&&R(t.length)&&!!C[B.call(t)]}e.exports=O},{}],60:[function(t,e,r){var n=t("lodash._getnative"),i=t("lodash.isarguments"),a=t("lodash.isarray"),s=/^\d+$/,o=Object.prototype,l=o.hasOwnProperty,u=n(Object,"keys"),h=9007199254740991;function f(t){return function(e){return null==e?void 0:e[t]}}var c=f("length");function d(t){return null!=t&&m(c(t))}function p(t,e){return t="number"==typeof t||s.test(t)?+t:-1,e=null==e?h:e,t>-1&&t%1==0&&t<e}function m(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function _(t){var e=w(t),r=e.length,n=r&&t.length,s=!!n&&m(n)&&(a(t)||i(t)),o=-1,u=[];while(++o<r){var h=e[o];(s&&p(h,n)||l.call(t,h))&&u.push(h)}return u}function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var b=u?function(t){var e=null==t?void 0:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&d(t)?_(t):g(t)?u(t):[]}:_;function w(t){if(null==t)return[];g(t)||(t=Object(t));var e=t.length;e=e&&m(e)&&(a(t)||i(t))&&e||0;var r=t.constructor,n=-1,s="function"==typeof r&&r.prototype===t,o=Array(e),u=e>0;while(++n<e)o[n]=n+"";for(var h in t)u&&p(h,e)||"constructor"==h&&(s||!l.call(t,h))||o.push(h);return o}e.exports=b},{"lodash._getnative":54,"lodash.isarguments":55,"lodash.isarray":56}],61:[function(t,e,r){var n=t("lodash.isarguments"),i=t("lodash.isarray"),a=/^\d+$/,s=Object.prototype,o=s.hasOwnProperty,l=9007199254740991;function u(t,e){return t="number"==typeof t||a.test(t)?+t:-1,e=null==e?l:e,t>-1&&t%1==0&&t<e}function h(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function f(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function c(t){if(null==t)return[];f(t)||(t=Object(t));var e=t.length;e=e&&h(e)&&(i(t)||n(t))&&e||0;var r=t.constructor,a=-1,s="function"==typeof r&&r.prototype===t,l=Array(e),c=e>0;while(++a<e)l[a]=a+"";for(var d in t)c&&u(d,e)||"constructor"==d&&(s||!o.call(t,d))||l.push(d);return l}e.exports=c},{"lodash.isarguments":55,"lodash.isarray":56}],62:[function(t,e,r){var n=t("lodash._basecopy"),i=t("lodash.keysin");function a(t){return n(t,i(t))}e.exports=a},{"lodash._basecopy":63,"lodash.keysin":61}],63:[function(t,e,r){function n(t,e,r){r||(r={});var n=-1,i=e.length;while(++n<i){var a=e[n];r[a]=t[a]}return r}e.exports=n},{}],64:[function(t,e,r){var n,i;n=t("jszip"),i=t("./internal"),e.exports={asBlob:function(t,e){var r;return r=new n,i.addFiles(r,t,e),i.generateDocument(r)}}},{"./internal":65,jszip:14}],65:[function(t,e,r){(function(r,n){var i,a,s;i=t("./templates/document"),a=t("./utils"),s={merge:t("lodash.merge")},e.exports={generateDocument:function(t){var e;if(e=t.generate({type:"arraybuffer"}),r.Blob)return new Blob([e],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});if(r.Buffer)return new n(new Uint8Array(e));throw new Error("Neither Blob nor Buffer are accessible in this environment. Consider adding Blob.js shim")},renderDocumentFile:function(t){var e;return null==t&&(t={}),e=s.merge({margins:{top:1440,right:1440,bottom:1440,left:1440,header:720,footer:720,gutter:0}},function(){switch(t.orientation){case"landscape":return{height:12240,width:15840,orient:"landscape"};default:return{width:12240,height:15840,orient:"portrait"}}}(),{margins:t.margins}),i(e)},addFiles:function(t,e,r){return t.file("[Content_Types].xml",n("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8VHlwZXMgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvY29udGVudC10eXBlcyI+CiAgPERlZmF1bHQgRXh0ZW5zaW9uPSJyZWxzIiBDb250ZW50VHlwZT0KICAgICJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtcGFja2FnZS5yZWxhdGlvbnNoaXBzK3htbCIgLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2RvY3VtZW50LnhtbCIgQ29udGVudFR5cGU9CiAgICAiYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LndvcmRwcm9jZXNzaW5nbWwuZG9jdW1lbnQubWFpbit4bWwiLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2FmY2h1bmsubWh0IiBDb250ZW50VHlwZT0ibWVzc2FnZS9yZmM4MjIiLz4KPC9UeXBlcz4K","base64")),t.folder("_rels").file(".rels",n("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwCiAgICAgIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvb2ZmaWNlRG9jdW1lbnQiCiAgICAgIFRhcmdldD0iL3dvcmQvZG9jdW1lbnQueG1sIiBJZD0iUjA5YzgzZmFmYzA2NzQ4OGUiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64")),t.folder("word").file("document.xml",this.renderDocumentFile(r)).file("afchunk.mht",a.getMHTdocument(e)).folder("_rels").file("document.xml.rels",n("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvYUZDaHVuayIKICAgIFRhcmdldD0iL3dvcmQvYWZjaHVuay5taHQiIElkPSJodG1sQ2h1bmsiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64"))}}}).call(this,"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},t("buffer").Buffer)},{"./templates/document":66,"./utils":69,buffer:1,"lodash.merge":47}],66:[function(_dereq_,module,exports){var _={escape:_dereq_("lodash.escape")};module.exports=function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<w:document\n xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"\n xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"\n xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"\n xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"\n xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n xmlns:ns6="http://schemas.openxmlformats.org/schemaLibrary/2006/main"\n xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"\n xmlns:ns8="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"\n xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"\n xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"\n xmlns:ns11="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"\n xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram"\n xmlns:ns13="urn:schemas-microsoft-com:office:excel"\n xmlns:o="urn:schemas-microsoft-com:office:office"\n xmlns:v="urn:schemas-microsoft-com:vml"\n xmlns:w10="urn:schemas-microsoft-com:office:word"\n xmlns:ns17="urn:schemas-microsoft-com:office:powerpoint"\n xmlns:odx="http://opendope.org/xpaths"\n xmlns:odc="http://opendope.org/conditions"\n xmlns:odq="http://opendope.org/questions"\n xmlns:odi="http://opendope.org/components"\n xmlns:odgm="http://opendope.org/SmartArt/DataHierarchy"\n xmlns:ns24="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"\n xmlns:ns25="http://schemas.openxmlformats.org/drawingml/2006/compatibility"\n xmlns:ns26="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas">\n <w:body>\n <w:altChunk r:id="htmlChunk" />\n <w:sectPr>\n <w:pgSz w:w="'+(null==(__t=width)?"":__t)+'" w:h="'+(null==(__t=height)?"":__t)+'" w:orient="'+(null==(__t=orient)?"":__t)+'" />\n <w:pgMar w:top="'+(null==(__t=margins.top)?"":__t)+'"\n w:right="'+(null==(__t=margins.right)?"":__t)+'"\n w:bottom="'+(null==(__t=margins.bottom)?"":__t)+'"\n w:left="'+(null==(__t=margins.left)?"":__t)+'"\n w:header="'+(null==(__t=margins.header)?"":__t)+'"\n w:footer="'+(null==(__t=margins.footer)?"":__t)+'"\n w:gutter="'+(null==(__t=margins.gutter)?"":__t)+'"/>\n </w:sectPr>\n </w:body>\n</w:document>\n';return __p}},{"lodash.escape":45}],67:[function(_dereq_,module,exports){var _={escape:_dereq_("lodash.escape")};module.exports=function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='MIME-Version: 1.0\nContent-Type: multipart/related;\n type="text/html";\n boundary="----=mhtDocumentPart"\n\n\n------=mhtDocumentPart\nContent-Type: text/html;\n charset="utf-8"\nContent-Transfer-Encoding: quoted-printable\nContent-Location: file:///C:/fake/document.html\n\n'+(null==(__t=htmlSource)?"":__t)+"\n\n"+(null==(__t=contentParts)?"":__t)+"\n\n------=mhtDocumentPart--\n";return __p}},{"lodash.escape":45}],68:[function(_dereq_,module,exports){var _={escape:_dereq_("lodash.escape")};module.exports=function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+="------=mhtDocumentPart\nContent-Type: "+(null==(__t=contentType)?"":__t)+"\nContent-Transfer-Encoding: "+(null==(__t=contentEncoding)?"":__t)+"\nContent-Location: "+(null==(__t=contentLocation)?"":__t)+"\n\n"+(null==(__t=encodedContent)?"":__t)+"\n";return __p}},{"lodash.escape":45}],69:[function(t,e,r){var n,i;n=t("./templates/mht_document"),i=t("./templates/mht_part"),e.exports={getMHTdocument:function(t){var e,r;return r=this._prepareImageParts(t),t=r.htmlSource,e=r.imageContentParts,t=t.replace(/\=/g,"=3D"),n({htmlSource:t,contentParts:e.join("\n")})},_prepareImageParts:function(t){var e,r,n;if(e=[],n=/"data:(\w+\/\w+);(\w+),(\S+)"/g,r=function(t,r,n,a){var s,o,l;return l=e.length,o=r.split("/")[1],s="file:///C:/fake/image"+l+"."+o,e.push(i({contentType:r,contentEncoding:n,contentLocation:s,encodedContent:a})),'"'+s+'"'},"string"===typeof t)return/<img/g.test(t)?(t=t.replace(n,r),{htmlSource:t,imageContentParts:e}):{htmlSource:t,imageContentParts:e};throw new Error("Not a valid source provided!")}}},{"./templates/mht_document":67,"./templates/mht_part":68}]},{},[64])(64)}))}}]);
|