/* Jimp v0.10.2 https://github.com/oliver-moran/jimp Ported for the Web by Phil Seaton MIT License Copyright (c) 2018 Oliver Moran Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ if((void 0===window||!window)&&"undefined"!=typeof self)var window=self;!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{(void 0!==window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).jimp=t()}}(function(){return function a(o,s,l){function u(e,t){if(!s[e]){if(!o[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(f)return f(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[e]={exports:{}};o[e][0].call(i.exports,function(t){return u(o[e][1][t]||t)},i,i.exports,a,o,s,l)}return s[e].exports}for(var f="function"==typeof require&&require,t=0;t>16&255,o[s++]=e>>8&255,o[s++]=255&e;2===a&&(e=u[t.charCodeAt(r)]<<2|u[t.charCodeAt(r+1)]>>4,o[s++]=255&e);1===a&&(e=u[t.charCodeAt(r)]<<10|u[t.charCodeAt(r+1)]<<4|u[t.charCodeAt(r+2)]>>2,o[s++]=e>>8&255,o[s++]=255&e);return o},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i=[],a=0,o=r-n;a>2]+s[e<<4&63]+"==")):2==n&&(e=(t[r-2]<<8)+t[r-1],i.push(s[e>>10]+s[e>>4&63]+s[e<<2&63]+"="));return i.join("")};for(var s=[],u=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=n.length;i>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return a.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],29:[function(t,e,r){var n=t("./lib/encoder"),i=t("./lib/decoder");e.exports={encode:n,decode:i}},{"./lib/decoder":30,"./lib/encoder":31}],30:[function(t,n,e){(function(r){function e(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}e.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<>7-s&1];this.data[o+4*s]=0,this.data[o+4*s+1]=l.blue,this.data[o+4*s+2]=l.green,this.data[o+4*s+3]=l.red}0!=e&&(this.pos+=4-e)}},e.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var r=0,t=this.bottom_up?this.height-1:0,e=!1;r>4),1&l&&l+1>1&1)&&this.pos++}}else for(l=0;l>4),e=!e}function u(t){var e=this.palette[t];this.data[r]=0,this.data[r+1]=e.blue,this.data[r+2]=e.green,this.data[r+3]=e.red,r+=4}}else{var f=Math.ceil(this.width/2),h=f%4;for(o=this.height-1;0<=o;o--){var c=this.bottom_up?o:this.height-1-o;for(a=0;a>4,p=15&i,b=this.palette[d];if(this.data[r]=0,this.data[r+1]=b.blue,this.data[r+2]=b.green,this.data[r+3]=b.red,2*a+1>=this.width)break;b=this.palette[p],this.data[r+4]=0,this.data[r+4+1]=b.blue,this.data[r+4+2]=b.green,this.data[r+4+3]=b.red}0!=h&&(this.pos+=4-h)}}},e.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var r=0,t=this.bottom_up?this.height-1:0;r>5&e)/e*255|0,l=(a>>10&e)/e*255|0,u=a>>15?255:0,f=n*this.width*4+4*i;this.data[f]=u,this.data[1+f]=o,this.data[2+f]=s,this.data[3+f]=l}this.pos+=t}},e.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;0<=n;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a>e[1],u=(o&this.maskRed)>>e[2],f=i*this.width*4+4*a;this.data[f]=0,this.data[1+f]=s,this.data[2+f]=l,this.data[3+f]=u}this.pos+=t}},e.prototype.bit24=function(){for(var t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;rc.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}r.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,h(this.init_done,"close before init"),h(this.mode<=c.UNZIP),this.mode===c.DEFLATE||this.mode===c.GZIP||this.mode===c.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==c.INFLATE&&this.mode!==c.GUNZIP&&this.mode!==c.INFLATERAW&&this.mode!==c.UNZIP||s.inflateEnd(this.strm),this.mode=c.NONE,this.dictionary=null)},r.prototype.write=function(t,e,r,n,i,a,o){return this._write(!0,t,e,r,n,i,a,o)},r.prototype.writeSync=function(t,e,r,n,i,a,o){return this._write(!1,t,e,r,n,i,a,o)},r.prototype._write=function(t,e,r,n,i,a,o,s){if(h.equal(arguments.length,8),h(this.init_done,"write before init"),h(this.mode!==c.NONE,"already finalized"),h.equal(!1,this.write_in_progress,"write already in progress"),h.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,h.equal(!1,void 0===e,"must provide flush value"),this.write_in_progress=!0,e!==c.Z_NO_FLUSH&&e!==c.Z_PARTIAL_FLUSH&&e!==c.Z_SYNC_FLUSH&&e!==c.Z_FULL_FLUSH&&e!==c.Z_FINISH&&e!==c.Z_BLOCK)throw new Error("Invalid flush value");if(null==r&&(r=f.alloc(0),n=i=0),this.strm.avail_in=i,this.strm.input=r,this.strm.next_in=n,this.strm.avail_out=s,this.strm.output=a,this.strm.next_out=o,this.flush=e,!t)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return u.nextTick(function(){l._process(),l._after()}),this},r.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},r.prototype._process=function(){var t=null;switch(this.mode){case c.DEFLATE:case c.GZIP:case c.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case c.UNZIP:switch(0T.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBitsT.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.levelT.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevelT.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=T.Z_FILTERED&&t.strategy!=T.Z_HUFFMAN_ONLY&&t.strategy!=T.Z_RLE&&t.strategy!=T.Z_FIXED&&t.strategy!=T.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!m.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(e);var n=this;this._hadError=!1,this._handle.onerror=function(t,e){S(n),n._hadError=!0;var r=new Error(t);r.errno=e,r.code=T.codes[e],n.emit("error",r)};var i=T.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(i=t.level);var a=T.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(a=t.strategy),this._handle.init(t.windowBits||T.Z_DEFAULT_WINDOWBITS,i,t.memLevel||T.Z_DEFAULT_MEMLEVEL,a,t.dictionary),this._buffer=m.allocUnsafe(this._chunkSize),this._offset=0,this._level=i,this._strategy=a,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function S(t,e){e&&i.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function A(t){t.emit("close")}Object.defineProperty(T,"codes",{enumerable:!0,value:Object.freeze(a),writable:!1}),T.Deflate=d,T.Inflate=p,T.Gzip=b,T.Gunzip=_,T.DeflateRaw=w,T.InflateRaw=x,T.Unzip=E,T.createDeflate=function(t){return new d(t)},T.createInflate=function(t){return new p(t)},T.createDeflateRaw=function(t){return new w(t)},T.createInflateRaw=function(t){return new x(t)},T.createGzip=function(t){return new b(t)},T.createGunzip=function(t){return new _(t)},T.createUnzip=function(t){return new E(t)},T.deflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new d(e),t,r)},T.deflateSync=function(t,e){return c(new d(e),t)},T.gzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new b(e),t,r)},T.gzipSync=function(t,e){return c(new b(e),t)},T.deflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new w(e),t,r)},T.deflateRawSync=function(t,e){return c(new w(e),t)},T.unzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new E(e),t,r)},T.unzipSync=function(t,e){return c(new E(e),t)},T.inflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new p(e),t,r)},T.inflateSync=function(t,e){return c(new p(e),t)},T.gunzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new _(e),t,r)},T.gunzipSync=function(t,e){return c(new _(e),t)},T.inflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new x(e),t,r)},T.inflateRawSync=function(t,e){return c(new x(e),t)},t.inherits(j,o),j.prototype.params=function(t,e,r){if(tT.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(e!=T.Z_FILTERED&&e!=T.Z_HUFFMAN_ONLY&&e!=T.Z_RLE&&e!=T.Z_FIXED&&e!=T.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+e);if(this._level!==t||this._strategy!==e){var n=this;this.flush(s.Z_SYNC_FLUSH,function(){g(n._handle,"zlib binding closed"),n._handle.params(t,e),n._hadError||(n._level=t,n._strategy=e,r&&r())})}else i.nextTick(r)},j.prototype.reset=function(){return g(this._handle,"zlib binding closed"),this._handle.reset()},j.prototype._flush=function(t){this._transform(m.alloc(0),"",t)},j.prototype.flush=function(t,e){var r=this,n=this._writableState;"function"!=typeof t&&(void 0!==t||e)||(e=t,t=s.Z_FULL_FLUSH),n.ended?e&&i.nextTick(e):n.ending?e&&this.once("end",e):n.needDrain?e&&this.once("drain",function(){return r.flush(t,e)}):(this._flushFlag=t,this.write(m.alloc(0),"",e))},j.prototype.close=function(t){S(this,t),i.nextTick(A,this)},j.prototype._transform=function(t,e,r){var n,i=this._writableState,a=(i.ending||i.ended)&&(!t||i.length===t.length);return null===t||m.isBuffer(t)?this._handle?(a?n=this._finishFlushFlag:(n=this._flushFlag,t.length>=i.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),void this._processChunk(t,n,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},j.prototype._processChunk=function(a,o,s){var l=a&&a.length,u=this._chunkSize-this._offset,f=0,h=this,c="function"==typeof s;if(!c){var e,d=[],p=0;this.on("error",function(t){e=t}),g(this._handle,"zlib binding closed");do{var t=this._handle.writeSync(o,a,f,l,this._buffer,this._offset,u)}while(!this._hadError&&b(t[0],t[1]));if(this._hadError)throw e;if(y<=p)throw S(this),new RangeError(v);var r=m.concat(d,p);return S(this),r}g(this._handle,"zlib binding closed");var n=this._handle.write(o,a,f,l,this._buffer,this._offset,u);function b(t,e){if(this&&(this.buffer=null,this.callback=null),!h._hadError){var r=u-e;if(g(0<=r,"have should not go down"),0=h._chunkSize)&&(u=h._chunkSize,h._offset=0,h._buffer=m.allocUnsafe(h._chunkSize)),0===e){if(f+=l-t,l=t,!c)return!0;var i=h._handle.write(o,a,f,l,h._buffer,h._offset,h._chunkSize);return i.callback=b,void(i.buffer=a)}if(!c)return!1;s()}}n.buffer=a,n.callback=b},t.inherits(d,j),t.inherits(p,j),t.inherits(b,j),t.inherits(_,j),t.inherits(w,j),t.inherits(x,j),t.inherits(E,j)}).call(this,I("_process"))},{"./binding":33,_process:312,assert:24,buffer:47,stream:334,util:365}],35:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var e,r,n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var a in i)e=i,r=a,Object.prototype.hasOwnProperty.call(e,r)&&(t[a]=i[a])}}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>>16&65535|0,o=0;0!==r;){for(r-=o=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var i=s,a=n+r;t^=-1;for(var o=n;o>>8^i[255&(t^e[o])];return-1^t}},{}],39:[function(t,e,r){"use strict";var l,c=t("../utils/common"),u=t("./trees"),d=t("./adler32"),p=t("./crc32"),n=t("./messages"),f=0,h=4,b=0,m=-2,g=-1,y=4,i=2,v=8,_=9,a=286,o=30,s=19,w=2*a+1,x=15,E=3,k=258,j=k+E+1,S=42,A=113,I=1,T=2,O=3,R=4;function P(t,e){return t.msg=n[e],e}function M(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(c.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 B(t,e){u._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,C(t.strm)}function D(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-j?t.strstart-(t.w_size-j):0,u=t.window,f=t.w_mask,h=t.prev,c=t.strstart+k,d=u[a+o-1],p=u[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(r=e)+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&al&&0!=--i);return o<=t.lookahead?o:t.lookahead}function z(t){var e,r,n,i,a,o,s,l,u,f,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-j)){for(c.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=r=t.hash_size;n=t.head[--e],t.head[e]=h<=n?n-h:0,--r;);for(e=r=h;n=t.prev[--e],t.prev[e]=h<=n?n-h:0,--r;);i+=h}if(0===t.strm.avail_in)break;if(o=t.strm,s=t.window,l=t.strstart+t.lookahead,u=i,f=void 0,f=o.avail_in,u=E)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<=E&&(t.ins_h=(t.ins_h<=E)if(n=u._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=E&&(t.ins_h=(t.ins_h<=E&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-E,n=u._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(z(t),0===t.lookahead&&e===f)return I;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,B(t,!1),0===t.strm.avail_out))return I;if(t.strstart-t.block_start>=t.w_size-j&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:R):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),I)}),new G(4,4,8,4,F),new G(4,5,16,8,F),new G(4,6,32,32,F),new G(4,4,16,16,H),new G(8,16,32,32,H),new G(8,16,128,128,H),new G(8,32,128,256,H),new G(32,128,258,1024,H),new G(32,258,258,4096,H)],r.deflateInit=function(t,e){return Y(t,e,v,15,8,0)},r.deflateInit2=Y,r.deflateReset=Z,r.deflateResetKeep=W,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,b):m},r.deflate=function(t,e){var r,n,i,a;if(!t||!t.state||5>8&255),D(n,n.gzhead.time>>16&255),D(n,n.gzhead.time>>24&255),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(D(n,255&n.gzhead.extra.length),D(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=p(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(D(n,0),D(n,0),D(n,0),D(n,0),D(n,0),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,3),n.status=A);else{var o=v+(n.w_bits-8<<4)<<8;o|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=A,N(n,o),0!==n.strstart&&(N(n,t.adler>>>16),N(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending!==n.pending_buf_size));)D(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&C(t),n.pending+2<=n.pending_buf_size&&(D(n,255&t.adler),D(n,t.adler>>8&255),t.adler=0,n.status=A)):n.status=A),0!==n.pending){if(C(t),0===t.avail_out)return n.last_flush=-1,b}else if(0===t.avail_in&&M(e)<=M(r)&&e!==h)return P(t,-5);if(666===n.status&&0!==t.avail_in)return P(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==f&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(z(t),0===t.lookahead)){if(e===f)return I;break}if(t.match_length=0,r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):3===n.strategy?function(t,e){for(var r,n,i,a,o=t.window;;){if(t.lookahead<=k){if(z(t),t.lookahead<=k&&e===f)return I;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=u._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):l[n.level].func(n,e);if(s!==O&&s!==R||(n.status=666),s===I||s===O)return 0===t.avail_out&&(n.last_flush=-1),b;if(s===T&&(1===e?u._tr_align(n):5!==e&&(u._tr_stored_block(n,0,0,!1),3===e&&(L(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),C(t),0===t.avail_out))return n.last_flush=-1,b}return e!==h?b:n.wrap<=0?1:(2===n.wrap?(D(n,255&t.adler),D(n,t.adler>>8&255),D(n,t.adler>>16&255),D(n,t.adler>>24&255),D(n,255&t.total_in),D(n,t.total_in>>8&255),D(n,t.total_in>>16&255),D(n,t.total_in>>24&255)):(N(n,t.adler>>>16),N(n,65535&t.adler)),C(t),0=r.w_size&&(0===a&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,e,f-r.w_size,r.w_size,0),e=u,f=r.w_size),o=t.avail_in,s=t.next_in,l=t.input,t.avail_in=f,t.next_in=0,t.input=e,z(r);r.lookahead>=E;){for(n=r.strstart,i=r.lookahead-(E-1);r.ins_h=(r.ins_h<>>=_=v>>>24,p-=_,0===(_=v>>>16&255))S[a++]=65535&v;else{if(!(16&_)){if(0==(64&_)){v=b[(65535&v)+(d&(1<<_)-1)];continue e}if(32&_){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&v,(_&=15)&&(p<_&&(d+=j[n++]<>>=_,p-=_),p<15&&(d+=j[n++]<>>=_=v>>>24,p-=_,!(16&(_=v>>>16&255))){if(0==(64&_)){v=m[(65535&v)+(d&(1<<_)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(x=65535&v,p<(_&=15)&&(d+=j[n++]<>>=_,p-=_,(_=a-o)>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function a(){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 T.Buf16(320),this.work=new T.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(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=N,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new T.Buf32(n),e.distcode=e.distdyn=new T.Buf32(i),e.sane=1,e.back=-1,B):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,o(t)):D}function l(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||15=a.wsize?(T.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n<(i=a.wsize-a.wnext)&&(i=n),T.arraySet(a.window,e,r-n,i,a.wnext),(n-=i)?(T.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=R(r.check,A,2,0),f=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&u)){t.msg="unknown compression method",r.mode=30;break}if(f-=4,x=8+(15&(u>>>=4)),0===r.wbits)r.wbits=x;else if(x>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=R(r.check,A,2,0)),f=u=0,r.mode=3;case 3:for(;f<32;){if(0===s)break t;s--,u+=n[a++]<>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,r.check=R(r.check,A,4,0)),f=u=0,r.mode=4;case 4:for(;f<16;){if(0===s)break t;s--,u+=n[a++]<>8),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=R(r.check,A,2,0)),f=u=0,r.mode=5;case 5:if(1024&r.flags){for(;f<16;){if(0===s)break t;s--,u+=n[a++]<>>8&255,r.check=R(r.check,A,2,0)),f=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(s<(d=r.length)&&(d=s),d&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),T.arraySet(r.head.extra,n,a,d,x)),512&r.flags&&(r.check=R(r.check,n,d,a)),s-=d,a+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;x=n[a+d++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x)),x&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;f<32;){if(0===s)break t;s--,u+=n[a++]<>>=7&f,f-=7&f,r.mode=27;break}for(;f<3;){if(0===s)break t;s--,u+=n[a++]<>>=1)){case 0:r.mode=14;break;case 1:if(z(r),r.mode=20,6!==e)break;u>>>=2,f-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}u>>>=2,f-=2;break;case 14:for(u>>>=7&f,f-=7&f;f<32;){if(0===s)break t;s--,u+=n[a++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,f=u=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(s>>=5,f-=5,r.ndist=1+(31&u),u>>>=5,f-=5,r.ncode=4+(15&u),u>>>=4,f-=4,286>>=3,f-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},E=M(0,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,E){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,y=65535&S,!((m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<>>=m,f-=m,r.lens[r.have++]=y;else{if(16===y){for(j=m+2;f>>=m,f-=m,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}x=r.lens[r.have-1],d=3+(3&u),u>>>=2,f-=2}else if(17===y){for(j=m+3;f>>=m)),u>>>=3,f-=3}else{for(j=m+7;f>>=m)),u>>>=7,f-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=x}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,k={bits:r.lenbits},E=M(L,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,E){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},E=M(C,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,E){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=l){t.next_out=o,t.avail_out=l,t.next_in=a,t.avail_in=s,r.hold=u,r.bits=f,P(t,c),o=t.next_out,i=t.output,l=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,u=r.hold,f=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(S=r.lencode[u&(1<>>16&255,y=65535&S,!((m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<>v)])>>>16&255,y=65535&S,!(v+(m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<>>=v,f-=v,r.back+=v}if(u>>>=m,f-=m,r.back+=m,r.length=y,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(j=r.extra;f>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(S=r.distcode[u&(1<>>16&255,y=65535&S,!((m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<>v)])>>>16&255,y=65535&S,!(v+(m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<>>=v,f-=v,r.back+=v}if(u>>>=m,f-=m,r.back+=m,64&g){t.msg="invalid distance code",r.mode=30;break}r.offset=y,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(j=r.extra;f>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===l)break t;if(d=c-l,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),b=r.window}else b=i,p=o-r.offset,d=r.length;for(ld?(b=P[M+o[v]],I[T+o[v]]):(b=96,0),l=1<>k)+(u-=l)]=p<<24|b<<16|m|0,0!==u;);for(l=1<>=1;if(0!==l?(A&=l-1,A+=l):A=0,v++,0==--O[y]){if(y===w)break;y=e[r+o[v]]}if(x>>7)]}function D(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,r){t.bi_valid>d-r?(t.bi_buf|=e<>d-t.bi_valid,t.bi_valid+=r-d):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function F(t,e,r){var n,i,a=new Array(g+1),o=0;for(n=1;n<=g;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(a[s]++,s))}}function H(t){var e;for(e=0;e>1;1<=r;r--)W(t,a,r);for(i=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(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++,W(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,l=e.dyn_tree,u=e.max_code,f=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,b=0;for(a=0;a<=g;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r>=7;n>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return s;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return l;for(e=32;e>>3,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?K(t,e,r,n):4===t.strategy||a===i?(N(t,2+(n?1:0),3),Z(t,j,S)):(N(t,4+(n?1:0),3),function(t,e,r,n){var i;for(N(t,e-257,5),N(t,r-1,5),N(t,n-4,4),i=0;i>>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*(I[r]+u+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){N(t,2,3),U(t,b,j),function(t){16===t.bi_valid?(D(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":35}],45:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],46:[function(t,e,r){arguments[4][32][0].apply(r,arguments)},{dup:32}],47:[function(B,t,D){(function(h){"use strict";var n=B("base64-js"),a=B("ieee754"),t="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=h,D.SlowBuffer=function(t){+t!=t&&(t=0);return h.alloc(+t)},D.INSPECT_MAX_BYTES=50;var r=2147483647;function o(t){if(r>>1;case"base64":return R(t).length;default:if(i)return n?-1:O(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function p(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s/=o=2,l/=2,r/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;a>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(t){var e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return E(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return w(this,e,r);case"latin1":case"binary":return x(this,e,r);case"base64":return y(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},h.prototype.equals=function(t){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){var t="",e=D.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),""},t&&(h.prototype[t]=h.prototype.inspect),h.prototype.compare=function(t,e,r,n,i){if(M(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=e)return 0;if(i<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),l=this.slice(n,i),u=t.slice(e,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||ithis.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var a,o,s,l,u,f,h,c,d,p=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return c=e,d=r,P(O(t,(h=this).length-c),h,c,d);case"ascii":return g(this,t,e,r);case"latin1":case"binary":return g(this,t,e,r);case"base64":return l=this,u=e,f=r,P(R(t),l,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=e,s=r,P(function(t,e){for(var r,n,i,a=[],o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(t,(a=this).length-o),a,o,s);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function w(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;it.length)throw new RangeError("Index out of range")}function A(t,e,r,n){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,4),a.write(t,e,r,n,23,4),r+4}function T(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,8),a.write(t,e,r,n,52,8),r+8}h.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r>>=0,e>>>=0,r||j(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||j(t,e,this.length);for(var n=this[t+--e],i=1;0>>=0,e||j(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||j(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||j(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||j(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||j(t,e,this.length);for(var n=e,i=1,a=this[t+--n];0>>=0,e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||j(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(t,e){t>>>=0,e||j(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return t>>>=0,e||j(t,4,this.length),a.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||j(t,4,this.length),a.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||j(t,8,this.length),a.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||j(t,8,this.length),a.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||S(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n||S(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;0<=--i&&(a*=256);)this[e+i]=t/a&255;return e+r},h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);S(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},h.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);S(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;0<=--a&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return T(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return T(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,n){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),e>=t.length&&(e=t.length),e=e||0,0=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(a=e;a>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function R(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(e,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function P(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function M(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function L(t){return t!=t}var C=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()}).call(this,B("buffer").Buffer)},{"base64-js":28,buffer:47,ieee754:253}],48:[function(t,e,r){var n=t("buffer").Buffer;e.exports=function(t,e){if(n.isBuffer(t)&&n.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var r=0;r>1,f=23===e?F(2,-24)-F(2,-77):0,h=t<0||0===t&&1/t<0?1:0,c=0;for((t=z(t))!=t||t===1/0?(i=t!=t?1:0,n=l):(n=H(G(t)/q),t*(a=F(2,-n))<1&&(n--,a*=2),2<=(t+=1<=n+u?f/a:f*F(2,1-u))*a&&(n++,a/=2),l<=n+u?(i=0,n=l):1<=n+u?(i=(t*a-1)*F(2,e),n+=u):(i=t*F(2,u-1)*F(2,e),n=0));8<=e;o[c++]=255&i,i/=256,e-=8);for(n=n<>1,s=i-7,l=n-1,u=t[l--],f=127&u;for(u>>=7;0>=-s,s+=e;0>8&255]}function l(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function u(t){return n(t,23,4)}function f(t){return n(t,52,8)}function h(t,e){j(t[M],e,{get:function(){return T(this)[e]}})}function c(t,e,r,n){var i=E(+r),a=T(t);if(i+e>a.byteLength)throw U(L);var o=T(a.buffer).bytes,s=i+a.byteOffset,l=o.slice(s,s+e);return n?l:l.reverse()}function d(t,e,r,n,i,a){var o=E(+r),s=T(t);if(o+e>s.byteLength)throw U(L);for(var l=T(s.buffer).bytes,u=o+s.byteOffset,f=n(+i),h=0;hV;)(W=Y[V++])in B||g(B,W,C[W]);Z.constructor=B}var X=new D(new B(2)),J=D[M].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||y(D[M],{setInt8:function(t,e){J.call(this,t,e<<24>>24)},setUint8:function(t,e){J.call(this,t,e<<24>>24)}},{unsafe:!0})}else B=function(t){_(this,B,R);var e=E(t);O(this,{bytes:S.call(new Array(e),0),byteLength:e}),b||(this.byteLength=e)},D=function(t,e,r){_(this,D,P),_(t,B,P);var n=T(t).byteLength,i=w(e);if(i<0||n>24},getUint8:function(t){return c(this,1,t)[0]},getInt16:function(t,e){var r=c(this,2,t,1>16},getUint16:function(t,e){var r=c(this,2,t,1>>0},getFloat32:function(t,e){return i(c(this,4,t,1")}),y=!d(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]});e.exports=function(r,t,e,n){var i=p(r),a=!d(function(){var t={};return t[i]=function(){return 7},7!=""[r](t)}),o=a&&!d(function(){var t=!1,e=/a/;return"split"===r&&((e={constructor:{}}).constructor[m]=function(){return e},e.flags="",e[i]=/./[i]),e.exec=function(){return t=!0,null},e[i](""),!t});if(!a||!o||"replace"===r&&!g||"split"===r&&!y){var s=/./[i],l=e(i,""[r],function(t,e,r,n,i){return e.exec===b?a&&!i?{done:!0,value:s.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),u=l[0],f=l[1];c(String.prototype,r,u),c(RegExp.prototype,i,2==t?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}),n&&h(RegExp.prototype[i],"sham",!0)}}},{"../internals/create-non-enumerable-property":76,"../internals/fails":86,"../internals/redefine":138,"../internals/regexp-exec":140,"../internals/well-known-symbol":169}],88:[function(t,e,r){"use strict";var a=t("../internals/a-function"),o=t("../internals/is-object"),s=[].slice,l={};e.exports=Function.bind||function(e){var r=a(this),n=s.call(arguments,1),i=function(){var t=n.concat(s.call(arguments));return this instanceof i?function(t,e,r){if(!(e in l)){for(var n=[],i=0;idocument.F=Object"),t.close(),c=t.F;r--;)delete c[h][o[r]];return c()};e.exports=Object.create||function(t,e){var r;return null!==t?(n[h]=i(t),r=new n,n[h]=null,r[f]=t):r=c(),void 0===e?r:a(r,e)},s[f]=!0},{"../internals/an-object":55,"../internals/document-create-element":82,"../internals/enum-bug-keys":84,"../internals/hidden-keys":94,"../internals/html":96,"../internals/object-define-properties":119,"../internals/shared-key":146}],119:[function(t,e,r){var n=t("../internals/descriptors"),o=t("../internals/object-define-property"),s=t("../internals/an-object"),l=t("../internals/object-keys");e.exports=n?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),i=n.length,a=0;ai;)o(n,r=e[i++])&&(~l(a,r)||a.push(r));return a}},{"../internals/array-includes":61,"../internals/has":93,"../internals/hidden-keys":94,"../internals/to-indexed-object":156}],127:[function(t,e,r){var n=t("../internals/object-keys-internal"),i=t("../internals/enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"../internals/enum-bug-keys":84,"../internals/object-keys-internal":126}],128:[function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);r.f=a?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},{}],129:[function(t,e,r){var i=t("../internals/an-object"),a=t("../internals/a-possible-prototype");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,t={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(t){}return function(t,e){return i(t),a(e),n?r.call(t,e):t.__proto__=e,t}}():void 0)},{"../internals/a-possible-prototype":51,"../internals/an-object":55}],130:[function(t,e,r){function n(s){return function(t){for(var e,r=f(t),n=u(r),i=n.length,a=0,o=[];a>>0||(s.test(r)?16:10))}:o},{"../internals/global":92,"../internals/string-trim":152,"../internals/whitespaces":170}],134:[function(t,e,r){e.exports=t("../internals/global")},{"../internals/global":92}],135:[function(t,e,r){e.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},{}],136:[function(t,e,r){var n=t("../internals/an-object"),i=t("../internals/is-object"),a=t("../internals/new-promise-capability");e.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=a.f(t);return(0,r.resolve)(e),r.promise}},{"../internals/an-object":55,"../internals/is-object":105,"../internals/new-promise-capability":115}],137:[function(t,e,r){var i=t("../internals/redefine");e.exports=function(t,e,r){for(var n in e)i(t,n,e[n],r);return t}},{"../internals/redefine":138}],138:[function(t,e,r){var s=t("../internals/global"),n=t("../internals/shared"),l=t("../internals/create-non-enumerable-property"),u=t("../internals/has"),f=t("../internals/set-global"),i=t("../internals/function-to-string"),a=t("../internals/internal-state"),o=a.get,h=a.enforce,c=String(i).split("toString");n("inspectSource",function(t){return i.call(t)}),(e.exports=function(t,e,r,n){var i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,o=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||u(r,"name")||l(r,"name",e),h(r).source=c.join("string"==typeof e?e:"")),t!==s?(i?!o&&t[e]&&(a=!0):delete t[e],a?t[e]=r:l(t,e,r)):a?t[e]=r:f(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&o(this).source||i.call(this)})},{"../internals/create-non-enumerable-property":76,"../internals/function-to-string":89,"../internals/global":92,"../internals/has":93,"../internals/internal-state":100,"../internals/set-global":143,"../internals/shared":148}],139:[function(t,e,r){var i=t("./classof-raw"),a=t("./regexp-exec");e.exports=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==i(t))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(t,e)}},{"./classof-raw":70,"./regexp-exec":140}],140:[function(t,e,r){"use strict";var n,i,o=t("./regexp-flags"),s=RegExp.prototype.exec,l=String.prototype.replace,a=s,u=(n=/a/,i=/b*/g,s.call(n,"a"),s.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),f=void 0!==/()??/.exec("")[1];(u||f)&&(a=function(t){var e,r,n,i,a=this;return f&&(r=new RegExp("^"+a.source+"$(?!\\s)",o.call(a))),u&&(e=a.lastIndex),n=s.call(a,t),u&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),f&&n&&1=e.length?{value:t.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},{"../internals/add-to-unscopables":52,"../internals/define-iterator":79,"../internals/internal-state":100,"../internals/iterators":110,"../internals/to-indexed-object":156}],183:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/indexed-object"),a=t("../internals/to-indexed-object"),o=t("../internals/sloppy-array-method"),s=[].join,l=i!=Object,u=o("join",",");n({target:"Array",proto:!0,forced:l||u},{join:function(t){return s.call(a(this),void 0===t?",":t)}})},{"../internals/export":85,"../internals/indexed-object":98,"../internals/sloppy-array-method":149,"../internals/to-indexed-object":156}],184:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/array-iteration").map;n({target:"Array",proto:!0,forced:!t("../internals/array-method-has-species-support")("map")},{map:function(t,e){return i(this,t,1j;j++)l(v,x=k[j])&&!l(E,x)&&m(E,x,b(v,x));(E.prototype=_).constructor=E,s(a,y,E)}},{"../internals/classof-raw":70,"../internals/descriptors":81,"../internals/fails":86,"../internals/global":92,"../internals/has":93,"../internals/inherit-if-required":99,"../internals/is-forced":103,"../internals/object-create":118,"../internals/object-define-property":120,"../internals/object-get-own-property-descriptor":121,"../internals/object-get-own-property-names":123,"../internals/redefine":138,"../internals/string-trim":152,"../internals/to-primitive":162}],190:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/object-assign");n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},{"../internals/export":85,"../internals/object-assign":117}],191:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/descriptors");n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:t("../internals/object-define-properties")})},{"../internals/descriptors":81,"../internals/export":85,"../internals/object-define-properties":119}],192:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/descriptors");n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:t("../internals/object-define-property").f})},{"../internals/descriptors":81,"../internals/export":85,"../internals/object-define-property":120}],193:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/object-to-array").entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},{"../internals/export":85,"../internals/object-to-array":130}],194:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/fails"),a=t("../internals/to-indexed-object"),o=t("../internals/object-get-own-property-descriptor").f,s=t("../internals/descriptors"),l=i(function(){o(1)});n({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},{"../internals/descriptors":81,"../internals/export":85,"../internals/fails":86,"../internals/object-get-own-property-descriptor":121,"../internals/to-indexed-object":156}],195:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/descriptors"),l=t("../internals/own-keys"),u=t("../internals/to-indexed-object"),f=t("../internals/object-get-own-property-descriptor"),h=t("../internals/create-property");n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=u(t),i=f.f,a=l(n),o={},s=0;a.length>s;)void 0!==(r=i(n,e=a[s++]))&&h(o,e,r);return o}})},{"../internals/create-property":78,"../internals/descriptors":81,"../internals/export":85,"../internals/object-get-own-property-descriptor":121,"../internals/own-keys":132,"../internals/to-indexed-object":156}],196:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/to-object"),a=t("../internals/object-keys");n({target:"Object",stat:!0,forced:t("../internals/fails")(function(){a(1)})},{keys:function(t){return a(i(t))}})},{"../internals/export":85,"../internals/fails":86,"../internals/object-keys":127,"../internals/to-object":159}],197:[function(t,e,r){var n=t("../internals/redefine"),i=t("../internals/object-to-string"),a=Object.prototype;i!==a.toString&&n(a,"toString",i,{unsafe:!0})},{"../internals/object-to-string":131,"../internals/redefine":138}],198:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/parse-int");n({global:!0,forced:parseInt!=i},{parseInt:i})},{"../internals/export":85,"../internals/parse-int":133}],199:[function(t,e,r){"use strict";function b(t){var e;return!(!x(t)||"function"!=typeof(e=t.then))&&e}function a(h,c,d){if(!c.notified){c.notified=!0;var p=c.reactions;O(function(){for(var t=c.value,e=1==c.state,r=0;p.length>r;){var n,i,a,o=p[r++],s=e?o.ok:o.fail,l=o.resolve,u=o.reject,f=o.domain;try{s?(e||(2===c.rejection&&at(h,c),c.rejection=1),!0===s?n=t:(f&&f.enter(),n=s(t),f&&(f.exit(),a=!0)),n===o.promise?u(W("Promise-chain cycle")):(i=b(n))?i.call(n,l,u):l(n)):u(t)}catch(t){f&&!a&&f.exit(),u(t)}}c.reactions=[],c.notified=!1,d&&!c.rejection&&nt(h,c)})}}function i(t,e,r){var n,i;$?((n=Z.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),d.dispatchEvent(n)):n={promise:e,reason:r},(i=d["on"+t])?i(n):t===tt&&P("Unhandled promise rejection",r)}function o(e,r,n,i){return function(t){e(r,n,t,i)}}function s(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,a(t,e,!0))}var n,l,u,f,h=t("../internals/export"),c=t("../internals/is-pure"),d=t("../internals/global"),p=t("../internals/get-built-in"),m=t("../internals/native-promise-constructor"),g=t("../internals/redefine"),y=t("../internals/redefine-all"),v=t("../internals/shared"),_=t("../internals/set-to-string-tag"),w=t("../internals/set-species"),x=t("../internals/is-object"),E=t("../internals/a-function"),k=t("../internals/an-instance"),j=t("../internals/classof-raw"),S=t("../internals/iterate"),A=t("../internals/check-correctness-of-iteration"),I=t("../internals/species-constructor"),T=t("../internals/task").set,O=t("../internals/microtask"),R=t("../internals/promise-resolve"),P=t("../internals/host-report-errors"),M=t("../internals/new-promise-capability"),L=t("../internals/perform"),C=t("../internals/internal-state"),B=t("../internals/is-forced"),D=t("../internals/well-known-symbol"),N=t("../internals/v8-version"),U=D("species"),z="Promise",F=C.get,H=C.set,G=C.getterFor(z),q=m,W=d.TypeError,Z=d.document,Y=d.process,V=v("inspectSource"),X=p("fetch"),J=M.f,K=J,Q="process"==j(Y),$=!!(Z&&Z.createEvent&&d.dispatchEvent),tt="unhandledrejection",et=B(z,function(){var t=V(q)!==String(q);if(66===N)return!0;if(!t&&!Q&&"function"!=typeof PromiseRejectionEvent)return!0;if(c&&!q.prototype.finally)return!0;if(51<=N&&/native code/.test(q))return!1;function e(t){t(function(){},function(){})}var r=q.resolve(1);return(r.constructor={})[U]=e,!(r.then(function(){})instanceof e)}),rt=et||!A(function(t){q.all(t).catch(function(){})}),nt=function(r,n){T.call(d,function(){var t,e=n.value;if(it(n)&&(t=L(function(){Q?Y.emit("unhandledRejection",e,r):i(tt,r,e)}),n.rejection=Q||it(n)?2:1,t.error))throw t.value})},it=function(t){return 1!==t.rejection&&!t.parent},at=function(t,e){T.call(d,function(){Q?Y.emit("rejectionHandled",t):i("rejectionhandled",t,e.value)})},ot=function(r,n,t,e){if(!n.done){n.done=!0,e&&(n=e);try{if(r===t)throw W("Promise can't be resolved itself");var i=b(t);i?O(function(){var e={done:!1};try{i.call(t,o(ot,r,e,n),o(s,r,e,n))}catch(t){s(r,e,t,n)}}):(n.value=t,n.state=1,a(r,n,!1))}catch(t){s(r,{done:!1},t,n)}}};et&&(q=function(t){k(this,q,z),E(t),n.call(this);var e=F(this);try{t(o(ot,this,e),o(s,this,e))}catch(t){s(this,e,t)}},(n=function(t){H(this,{type:z,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=y(q.prototype,{then:function(t,e){var r=G(this),n=J(I(this,q));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=Q?Y.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&a(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),l=function(){var t=new n,e=F(t);this.promise=t,this.resolve=o(ot,t,e),this.reject=o(s,t,e)},M.f=J=function(t){return t===q||t===u?new l(t):K(t)},c||"function"!=typeof m||(f=m.prototype.then,g(m.prototype,"then",function(t,e){var r=this;return new q(function(t,e){f.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof X&&h({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return R(q,X.apply(d,arguments))}}))),h({global:!0,wrap:!0,forced:et},{Promise:q}),_(q,z,!1,!0),w(z),u=p(z),h({target:z,stat:!0,forced:et},{reject:function(t){var e=J(this);return e.reject.call(void 0,t),e.promise}}),h({target:z,stat:!0,forced:c||et},{resolve:function(t){return R(c&&this===u?q:this,t)}}),h({target:z,stat:!0,forced:rt},{all:function(t){var s=this,e=J(s),l=e.resolve,u=e.reject,r=L(function(){var n=E(s.resolve),i=[],a=0,o=1;S(t,function(t){var e=a++,r=!1;i.push(void 0),o++,n.call(s,t).then(function(t){r||(r=!0,i[e]=t,--o||l(i))},u)}),--o||l(i)});return r.error&&u(r.value),e.promise},race:function(t){var r=this,n=J(r),i=n.reject,e=L(function(){var e=E(r.resolve);S(t,function(t){e.call(r,t).then(n.resolve,i)})});return e.error&&i(e.value),n.promise}})},{"../internals/a-function":50,"../internals/an-instance":54,"../internals/check-correctness-of-iteration":69,"../internals/classof-raw":70,"../internals/export":85,"../internals/get-built-in":90,"../internals/global":92,"../internals/host-report-errors":95,"../internals/internal-state":100,"../internals/is-forced":103,"../internals/is-object":105,"../internals/is-pure":106,"../internals/iterate":108,"../internals/microtask":111,"../internals/native-promise-constructor":112,"../internals/new-promise-capability":115,"../internals/perform":135,"../internals/promise-resolve":136,"../internals/redefine":138,"../internals/redefine-all":137,"../internals/set-species":144,"../internals/set-to-string-tag":145,"../internals/shared":148,"../internals/species-constructor":150,"../internals/task":153,"../internals/v8-version":168,"../internals/well-known-symbol":169}],200:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/regexp-exec");n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},{"../internals/export":85,"../internals/regexp-exec":140}],201:[function(t,e,r){"use strict";var n=t("../internals/redefine"),i=t("../internals/an-object"),a=t("../internals/fails"),o=t("../internals/regexp-flags"),s="toString",l=RegExp.prototype,u=l[s],f=a(function(){return"/a/b"!=u.call({source:"a",flags:"b"})}),h=u.name!=s;(f||h)&&n(RegExp.prototype,s,function(){var t=i(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in l)?o.call(t):r)},{unsafe:!0})},{"../internals/an-object":55,"../internals/fails":86,"../internals/redefine":138,"../internals/regexp-flags":141}],202:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/not-a-regexp"),a=t("../internals/require-object-coercible");n({target:"String",proto:!0,forced:!t("../internals/correct-is-regexp-logic")("includes")},{includes:function(t,e){return!!~String(a(this)).indexOf(i(t),1=r.length?{value:void 0,done:!0}:(t=i(r,n),e.index+=t.length,{value:t,done:!1})})},{"../internals/define-iterator":79,"../internals/internal-state":100,"../internals/string-multibyte":151}],204:[function(t,e,r){"use strict";var n=t("../internals/fix-regexp-well-known-symbol-logic"),h=t("../internals/an-object"),c=t("../internals/to-length"),i=t("../internals/require-object-coercible"),d=t("../internals/advance-string-index"),p=t("../internals/regexp-exec-abstract");n("match",1,function(n,u,f){return[function(t){var e=i(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,e):new RegExp(t)[n](String(e))},function(t){var e=f(u,t,this);if(e.done)return e.value;var r=h(t),n=String(this);if(!r.global)return p(r,n);for(var i,a=r.unicode,o=[],s=r.lastIndex=0;null!==(i=p(r,n));){var l=String(i[0]);""===(o[s]=l)&&(r.lastIndex=d(n,c(r.lastIndex),a)),s++}return 0===s?null:o}]})},{"../internals/advance-string-index":53,"../internals/an-object":55,"../internals/fix-regexp-well-known-symbol-logic":87,"../internals/regexp-exec-abstract":139,"../internals/require-object-coercible":142,"../internals/to-length":158}],205:[function(t,e,r){"use strict";var n=t("../internals/fix-regexp-well-known-symbol-logic"),k=t("../internals/an-object"),c=t("../internals/to-object"),j=t("../internals/to-length"),S=t("../internals/to-integer"),a=t("../internals/require-object-coercible"),A=t("../internals/advance-string-index"),I=t("../internals/regexp-exec-abstract"),T=Math.max,O=Math.min,d=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g;n("replace",2,function(i,w,x){return[function(t,e){var r=a(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):w.call(String(r),t,e)},function(t,e){var r=x(w,t,this,e);if(r.done)return r.value;var n=k(t),i=String(this),a="function"==typeof e;a||(e=String(e));var o=n.global;if(o){var s=n.unicode;n.lastIndex=0}for(var l=[];;){var u=I(n,i);if(null===u)break;if(l.push(u),!o)break;""===String(u[0])&&(n.lastIndex=A(i,j(n.lastIndex),s))}for(var f,h="",c=0,d=0;d>>0;if(0==n)return[];if(void 0===t)return[r];if(!h(t))return m.call(r,t,n);for(var i,a,o,s=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,f=new RegExp(t.source,l+"g");(i=d.call(f,r))&&!(u<(a=f.lastIndex)&&(s.push(r.slice(u,i.index)),1=n));)f.lastIndex===i.index&&f.lastIndex++;return u===r.length?!o&&f.test("")||s.push(""):s.push(r.slice(u)),s.length>n?s.slice(0,n):s}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:m.call(this,t,e)}:m,[function(t,e){var r=c(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):y.call(String(r),t,e)},function(t,e){var r=g(y,t,this,e,y!==m);if(r.done)return r.value;var n=v(t),i=String(this),a=_(n,RegExp),o=n.unicode,s=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(S?"y":"g"),l=new a(S?n:"^(?:"+n.source+")",s),u=void 0===e?j:e>>>0;if(0==u)return[];if(0===i.length)return null===E(l,i)?[i]:[];for(var f=0,h=0,c=[];hi){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=o.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else o=a[e]=r,++t._eventsCount;return t}function c(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e>1,f=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,a=d&(1<<-f)-1,d>>=-f,f+=s;0>=-f,f+=n;0>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),2<=(e+=1<=o+h?c/l:c*Math.pow(2,1-h))*l&&(o++,l/=2),f<=o+h?(s=0,o=f):1<=o+h?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));8<=i;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<>--d&1;if(255==(c=e[r++])){var t=e[r++];if(t)throw new Error("unexpected marker: "+(c<<8|t).toString(16))}return c>>>(d=7)}function b(t){for(var e,r=t;null!==(e=p());){if("number"==typeof(r=r[e]))return r;if("object"!=typeof r)throw new Error("invalid huffman sequence")}return null}function m(t){for(var e=0;0>4;if(0!=a){e[Z[r+=o]]=g(a)*(1<>4;if(0==l)_=i<15?(y=m(i)+(1<>4;if(0!=o){e[Z[i+=s]]=g(o),i++}else{if(s<15)break;i+=16}}};var I,T,O,R,P,M,L,C,B,D,N,U,z,F,H,G,q,W=0;for(T=1==A?n[0].blocksPerLine*n[0].blocksPerColumn:o*t.mcusPerColumn,i=i||T;W>8,i=j*p[4+b]+128>>8,a=p[2+b],o=p[6+b],s=S*(p[1+b]-p[7+b])+128>>8,f=S*(p[1+b]+p[7+b])+128>>8,l=p[3+b]<<4,u=p[5+b]<<4,h=n-i+1>>1,n=n+i+1>>1,i=h,h=a*k+o*E+128>>8,a=a*E-o*k+128>>8,o=h,h=s-u+1>>1,s=s+u+1>>1,u=h,h=f+l+1>>1,l=f-l+1>>1,f=h,h=n-o+1>>1,n=n+o+1>>1,o=h,h=i-a+1>>1,i=i+a+1>>1,a=h,h=s*x+f*w+2048>>12,s=s*w-f*x+2048>>12,f=h,h=l*_+u*v+2048>>12,l=l*v-u*_+2048>>12,u=h,p[0+b]=n+f,p[7+b]=n-f,p[1+b]=i+u,p[6+b]=i-u,p[2+b]=a+l,p[5+b]=a-l,p[3+b]=o+s,p[4+b]=o-s):(h=j*p[0+b]+512>>10,p[0+b]=h,p[1+b]=h,p[2+b]=h,p[3+b]=h,p[4+b]=h,p[5+b]=h,p[6+b]=h,p[7+b]=h)}for(c=0;c<8;++c){var m=c;0!=p[8+m]||0!=p[16+m]||0!=p[24+m]||0!=p[32+m]||0!=p[40+m]||0!=p[48+m]||0!=p[56+m]?(n=j*p[0+m]+2048>>12,i=j*p[32+m]+2048>>12,a=p[16+m],o=p[48+m],s=S*(p[8+m]-p[56+m])+2048>>12,f=S*(p[8+m]+p[56+m])+2048>>12,l=p[24+m],u=p[40+m],h=n-i+1>>1,n=n+i+1>>1,i=h,h=a*k+o*E+2048>>12,a=a*E-o*k+2048>>12,o=h,h=s-u+1>>1,s=s+u+1>>1,u=h,h=f+l+1>>1,l=f-l+1>>1,f=h,h=n-o+1>>1,n=n+o+1>>1,o=h,h=i-a+1>>1,i=i+a+1>>1,a=h,h=s*x+f*w+2048>>12,s=s*w-f*x+2048>>12,f=h,h=l*_+u*v+2048>>12,l=l*v-u*_+2048>>12,u=h,p[0+m]=n+f,p[56+m]=n-f,p[8+m]=i+u,p[48+m]=i-u,p[16+m]=a+l,p[40+m]=a-l,p[24+m]=o+s,p[32+m]=o-s):(h=j*r[c+0]+8192>>14,p[0+m]=h,p[8+m]=h,p[16+m]=h,p[24+m]=h,p[32+m]=h,p[40+m]=h,p[48+m]=h,p[56+m]=h)}for(c=0;c<64;++c){var g=128+(p[c]+8>>4);e[c]=g<0?0:255>4==0)for(N=0;N<64;N++){y[Z[N]]=e[r++]}else{if(g>>4!=1)throw new Error("DQT: invalid table spec");for(N=0;N<64;N++){y[Z[N]]=t()}}f[15&g]=y}break;case 65472:case 65473:case 65474:t(),(i={}).extended=65473===p,i.progressive=65474===p,i.precision=e[r++],i.scanLines=t(),i.samplesPerLine=t(),i.components={},i.componentsOrder=[];var v,_=e[r++];for(B=0;B<_;B++){v=e[r];var w=e[r+1]>>4,x=15&e[r+1],E=e[r+2];i.componentsOrder.push(v),i.components[v]={h:w,v:x,quantizationIdx:E},r+=3}n(i),h.push(i);break;case 65476:var k=t();for(B=2;B>4==0?d:c)[15&j]=z(S,I)}break;case 65501:t(),a=t();break;case 65498:t();var T=e[r++],O=[];for(B=0;B>4],U.huffmanTableAC=c[15&R],O.push(U)}var P=e[r++],M=e[r++],L=e[r++],C=F(e,r,i,O,a,P,M,L>>4,15&L);r+=C;break;case 65535:255!==e[r]&&r--;break;default:if(255==e[r-3]&&192<=e[r-2]&&e[r-2]<=254){r-=3;break}throw new Error("unknown JPEG marker "+p.toString(16))}p=t()}if(1!=h.length)throw new Error("only single frame JPEGs supported");for(var B=0;B>8&255),W(255&t)}function Y(t,e,r,n,i){for(var a,o=i[0],s=i[240],l=function(t,e){var r,n,i,a,o,s,l,u,f,h,c=0;for(f=0;f<8;++f){r=t[c],n=t[c+1],i=t[c+2],a=t[c+3],o=t[c+4],s=t[c+5],l=t[c+6];var d=r+(u=t[c+7]),p=r-u,b=n+l,m=n-l,g=i+s,y=i-s,v=a+o,_=a-o,w=d+v,x=d-v,E=b+g,k=b-g;t[c]=w+E,t[c+4]=w-E;var j=.707106781*(k+x);t[c+2]=x+j,t[c+6]=x-j;var S=.382683433*((w=_+y)-(k=m+p)),A=.5411961*w+S,I=1.306562965*k+S,T=.707106781*(E=y+m),O=p+T,R=p-T;t[c+5]=R+A,t[c+3]=R-A,t[c+1]=O+I,t[c+7]=O-I,c+=8}for(f=c=0;f<8;++f){r=t[c],n=t[c+8],i=t[c+16],a=t[c+24],o=t[c+32],s=t[c+40],l=t[c+48];var P=r+(u=t[c+56]),M=r-u,L=n+l,C=n-l,B=i+s,D=i-s,N=a+o,U=a-o,z=P+N,F=P-N,H=L+B,G=L-B;t[c]=z+H,t[c+32]=z-H;var q=.707106781*(G+F);t[c+16]=F+q,t[c+48]=F-q;var W=.382683433*((z=U+D)-(G=C+M)),Z=.5411961*z+W,Y=1.306562965*G+W,V=.707106781*(H=D+C),X=M+V,J=M-V;t[c+40]=J+Z,t[c+24]=J-Z,t[c+8]=X+Y,t[c+56]=X-Y,c++}for(f=0;f<64;++f)h=t[f]*e[f],K[f]=0>4;for(var m=1;m<=c;++m)q(s);b&=15}a=32767+v[d],q(i[(b<<4)+y[a]]),q(g[a]),d++}return 63!=h&&q(o),r}function V(t){if(t<=0&&(t=1),100>3)*g+(h=4*(7&d)),m<=y+c&&(f-=g*(y+1+c-m)),g<=a+h&&(f-=a+h-g+4),o=p[f++],s=p[f++],l=p[f++],R[d]=(L[o]+L[s+256>>0]+L[l+512>>0]>>16)-128,P[d]=(L[o+768>>0]+L[s+1024>>0]+L[l+1280>>0]>>16)-128,M[d]=(L[o+1280>>0]+L[s+1536>>0]+L[l+1792>>0]>>16)-128;r=Y(R,S,r,_,x),n=Y(P,A,n,w,E),i=Y(M,A,i,w,E),a+=32}y+=8}if(0<=O){var v=[];v[1]=O+1,v[0]=(1<>0]=38470*t,L[t+512>>0]=7471*t+32768,L[t+768>>0]=-11059*t,L[t+1024>>0]=-21709*t,L[t+1280>>0]=32768*t+8421375,L[t+1536>>0]=-27439*t,L[t+1792>>0]=-5329*t}(),V(t),(new Date).getTime()}()}e.exports=function(t,e){void 0===e&&(e=50);return{data:new r(e).encode(t,e),width:t.width,height:t.height}}}).call(this,t("buffer").Buffer)},{buffer:47}],262:[function(t,e,r){(function(l){var u=t("path"),f=t("fs"),h=parseInt("0777",8);function c(n,i,t,a){"function"==typeof i?(t=i,i={}):i&&"object"==typeof i||(i={mode:i});var e=i.mode,o=i.fs||f;void 0===e&&(e=h&~l.umask()),a=a||null;var s=t||function(){};n=u.resolve(n),o.mkdir(n,e,function(r){if(!r)return s(null,a=a||n);switch(r.code){case"ENOENT":c(u.dirname(n),i,function(t,e){t?s(t,e):c(n,i,s,e)});break;default:o.stat(n,function(t,e){t||!e.isDirectory()?s(r,a):s(null,a)})}})}e.exports=c.mkdirp=c.mkdirP=c,c.sync=function t(r,n,i){n&&"object"==typeof n||(n={mode:n});var e=n.mode,a=n.fs||f;void 0===e&&(e=h&~l.umask()),i=i||null,r=u.resolve(r);try{a.mkdirSync(r,e),i=i||r}catch(e){switch(e.code){case"ENOENT":t(r,n,i=t(u.dirname(r),n,i));break;default:var o;try{o=a.statSync(r)}catch(t){throw e}if(!o.isDirectory())throw e}}return i}}).call(this,t("_process"))},{_process:312,fs:46,path:286}],263:[function(t,e,r){"use strict";var l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,i=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),a=1;a>=l,f-=l,m!=a){if(m==o)break;for(var g=m>8,++y;var _=v;if(n>=8;null!==b&&s<4096&&(p[s++]=b<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),b=m}else s=1+o,u=(1<<(l=i+1))-1,b=null}return c!==n&&console.log("Warning, gif stream shorter than expected."),r}try{r.GifWriter=function(g,t,e,r){var y=0,n=void 0===(r=void 0===r?{}:r).loop?null:r.loop,v=void 0===r.palette?null:r.palette;if(t<=0||e<=0||65535>=1;)++i;if(o=1<>8&255,g[y++]=255&e,g[y++]=e>>8&255,g[y++]=(null!==v?128:0)|i,g[y++]=a,g[y++]=0,null!==v)for(var s=0,l=v.length;s>16&255,g[y++]=u>>8&255,g[y++]=255&u}if(null!==n){if(n<0||65535>8&255,g[y++]=0}var w=!1;this.addFrame=function(t,e,r,n,i,a){if(!0===w&&(--y,w=!1),a=void 0===a?{}:a,t<0||e<0||65535>=1;)++u;l=1<>8&255,g[y++]=d,g[y++]=0),g[y++]=44,g[y++]=255&t,g[y++]=t>>8&255,g[y++]=255&e,g[y++]=e>>8&255,g[y++]=255&r,g[y++]=r>>8&255,g[y++]=255&n,g[y++]=n>>8&255,g[y++]=!0===o?128|u-1:0,!0===o)for(var p=0,b=s.length;p>16&255,g[y++]=m>>8&255,g[y++]=255&m}return y=function(e,r,t,n){e[r++]=t;var i=r++,a=1<>=8,f-=8,r===i+256&&(e[i]=255,i=r++)}function d(t){h|=t<>=8,f-=8,r===i+256&&(e[i]=255,i=r++);4096===l?(d(a),l=1+s,u=t+1,b={}):(1<>7,i=1<<1+(7&r);w[t++],w[t++];var a=null,o=null;n&&(a=t,t+=3*(o=i));var s=!0,l=[],u=0,f=null,h=0,c=null;for(this.width=x,this.height=e;s&&t>2&7,t++;break;case 254:for(;;){if(!(0<=(A=w[t++])))throw Error("Invalid block size");if(0===A)break;t+=A}break;default:throw new Error("Unknown graphic control label: 0x"+w[t-1].toString(16))}break;case 44:var p=w[t++]|w[t++]<<8,b=w[t++]|w[t++]<<8,m=w[t++]|w[t++]<<8,g=w[t++]|w[t++]<<8,y=w[t++],v=y>>6&1,_=1<<1+(7&y),E=a,k=o,j=!1;if(y>>7){j=!0;E=t,t+=3*(k=_)}var S=t;for(t++;;){var A;if(!(0<=(A=w[t++])))throw Error("Invalid block size");if(0===A)break;t+=A}l.push({x:p,y:b,width:m,height:g,has_local_palette:j,palette_offset:E,palette_size:k,data_offset:S,data_length:t-S,transparent_index:f,interlaced:!!v,delay:u,disposal:h});break;case 59:s=!1;break;default:throw new Error("Unknown gif block: 0x"+w[t-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return c},this.frameInfo=function(t){if(t<0||t>=l.length)throw new Error("Frame index out of range.");return l[t]},this.decodeAndBlitFrameBGRA=function(t,e){var r=this.frameInfo(t),n=r.width*r.height,i=new Uint8Array(n);I(w,r.data_offset,i,n);var a=r.palette_offset,o=r.transparent_index;null===o&&(o=256);var s=r.width,l=x-s,u=s,f=4*(r.y*x+r.x),h=4*((r.y+r.height)*x+r.x),c=f,d=4*l;!0===r.interlaced&&(d+=4*x*7);for(var p=8,b=0,m=i.length;b>=1)),g===o)c+=4;else{var y=w[a+3*g],v=w[a+3*g+1],_=w[a+3*g+2];e[c++]=_,e[c++]=v,e[c++]=y,e[c++]=255}--u}},this.decodeAndBlitFrameRGBA=function(t,e){var r=this.frameInfo(t),n=r.width*r.height,i=new Uint8Array(n);I(w,r.data_offset,i,n);var a=r.palette_offset,o=r.transparent_index;null===o&&(o=256);var s=r.width,l=x-s,u=s,f=4*(r.y*x+r.x),h=4*((r.y+r.height)*x+r.x),c=f,d=4*l;!0===r.interlaced&&(d+=4*x*7);for(var p=8,b=0,m=i.length;b>=1)),g===o)c+=4;else{var y=w[a+3*g],v=w[a+3*g+1],_=w[a+3*g+2];e[c++]=y,e[c++]=v,e[c++]=_,e[c++]=255}--u}}}}catch(t){}},{}],265:[function(t,e,r){"use strict";var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":266,"./lib/inflate":267,"./lib/utils/common":268,"./lib/zlib/constants":271}],266:[function(t,e,r){"use strict";var o=t("./zlib/deflate"),s=t("./utils/common"),l=t("./utils/strings"),i=t("./zlib/messages"),a=t("./zlib/zstream"),u=Object.prototype.toString,f=0,h=-1,c=0,d=8;function p(t){if(!(this instanceof p))return new p(t);this.options=s.assign({level:h,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},t||{});var e=this.options;e.raw&&0>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},r.buf2binstring=function(t){return f(t,t.length)},r.binstring2buf=function(t){for(var e=new l.Buf8(t.length),r=0,n=e.length;r>10&1023,s[n++]=56320|1023&i)}return f(s,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+u[t[r]]>e?r:e}},{"./common":268}],270:[function(t,e,r){arguments[4][36][0].apply(r,arguments)},{dup:36}],271:[function(t,e,r){arguments[4][37][0].apply(r,arguments)},{dup:37}],272:[function(t,e,r){arguments[4][38][0].apply(r,arguments)},{dup:38}],273:[function(t,e,r){"use strict";var l,c=t("../utils/common"),u=t("./trees"),d=t("./adler32"),p=t("./crc32"),n=t("./messages"),f=0,h=4,b=0,m=-2,g=-1,y=4,i=2,v=8,_=9,a=286,o=30,s=19,w=2*a+1,x=15,E=3,k=258,j=k+E+1,S=42,A=113,I=1,T=2,O=3,R=4;function P(t,e){return t.msg=n[e],e}function M(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(c.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 B(t,e){u._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,C(t.strm)}function D(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-j?t.strstart-(t.w_size-j):0,u=t.window,f=t.w_mask,h=t.prev,c=t.strstart+k,d=u[a+o-1],p=u[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(r=e)+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&al&&0!=--i);return o<=t.lookahead?o:t.lookahead}function z(t){var e,r,n,i,a,o,s,l,u,f,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-j)){for(c.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=r=t.hash_size;n=t.head[--e],t.head[e]=h<=n?n-h:0,--r;);for(e=r=h;n=t.prev[--e],t.prev[e]=h<=n?n-h:0,--r;);i+=h}if(0===t.strm.avail_in)break;if(o=t.strm,s=t.window,l=t.strstart+t.lookahead,u=i,f=void 0,f=o.avail_in,u=E)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<=E&&(t.ins_h=(t.ins_h<=E)if(n=u._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=E&&(t.ins_h=(t.ins_h<=E&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-E,n=u._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(z(t),0===t.lookahead&&e===f)return I;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,B(t,!1),0===t.strm.avail_out))return I;if(t.strstart-t.block_start>=t.w_size-j&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:R):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),I)}),new G(4,4,8,4,F),new G(4,5,16,8,F),new G(4,6,32,32,F),new G(4,4,16,16,H),new G(8,16,32,32,H),new G(8,16,128,128,H),new G(8,32,128,256,H),new G(32,128,258,1024,H),new G(32,258,258,4096,H)],r.deflateInit=function(t,e){return Y(t,e,v,15,8,0)},r.deflateInit2=Y,r.deflateReset=Z,r.deflateResetKeep=W,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,b):m},r.deflate=function(t,e){var r,n,i,a;if(!t||!t.state||5>8&255),D(n,n.gzhead.time>>16&255),D(n,n.gzhead.time>>24&255),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(D(n,255&n.gzhead.extra.length),D(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=p(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(D(n,0),D(n,0),D(n,0),D(n,0),D(n,0),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,3),n.status=A);else{var o=v+(n.w_bits-8<<4)<<8;o|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=A,N(n,o),0!==n.strstart&&(N(n,t.adler>>>16),N(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending!==n.pending_buf_size));)D(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&C(t),n.pending+2<=n.pending_buf_size&&(D(n,255&t.adler),D(n,t.adler>>8&255),t.adler=0,n.status=A)):n.status=A),0!==n.pending){if(C(t),0===t.avail_out)return n.last_flush=-1,b}else if(0===t.avail_in&&M(e)<=M(r)&&e!==h)return P(t,-5);if(666===n.status&&0!==t.avail_in)return P(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==f&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(z(t),0===t.lookahead)){if(e===f)return I;break}if(t.match_length=0,r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):3===n.strategy?function(t,e){for(var r,n,i,a,o=t.window;;){if(t.lookahead<=k){if(z(t),t.lookahead<=k&&e===f)return I;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=u._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):l[n.level].func(n,e);if(s!==O&&s!==R||(n.status=666),s===I||s===O)return 0===t.avail_out&&(n.last_flush=-1),b;if(s===T&&(1===e?u._tr_align(n):5!==e&&(u._tr_stored_block(n,0,0,!1),3===e&&(L(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),C(t),0===t.avail_out))return n.last_flush=-1,b}return e!==h?b:n.wrap<=0?1:(2===n.wrap?(D(n,255&t.adler),D(n,t.adler>>8&255),D(n,t.adler>>16&255),D(n,t.adler>>24&255),D(n,255&t.total_in),D(n,t.total_in>>8&255),D(n,t.total_in>>16&255),D(n,t.total_in>>24&255)):(N(n,t.adler>>>16),N(n,65535&t.adler)),C(t),0=r.w_size&&(0===a&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,e,f-r.w_size,r.w_size,0),e=u,f=r.w_size),o=t.avail_in,s=t.next_in,l=t.input,t.avail_in=f,t.next_in=0,t.input=e,z(r);r.lookahead>=E;){for(n=r.strstart,i=r.lookahead-(E-1);r.ins_h=(r.ins_h<>>7)]}function D(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,r){t.bi_valid>d-r?(t.bi_buf|=e<>d-t.bi_valid,t.bi_valid+=r-d):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function F(t,e,r){var n,i,a=new Array(g+1),o=0;for(n=1;n<=g;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(a[s]++,s))}}function H(t){var e;for(e=0;e>1;1<=r;r--)W(t,a,r);for(i=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(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++,W(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,l=e.dyn_tree,u=e.max_code,f=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,b=0;for(a=0;a<=g;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r>=7;n>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return s;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return l;for(e=32;e>>3,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?K(t,e,r,n):4===t.strategy||a===i?(N(t,2+(n?1:0),3),Z(t,j,S)):(N(t,4+(n?1:0),3),function(t,e,r,n){var i;for(N(t,e-257,5),N(t,r-1,5),N(t,n-4,4),i=0;i>>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*(I[r]+u+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){N(t,2,3),U(t,b,j),function(t){16===t.bi_valid?(D(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":268}],280:[function(t,e,r){arguments[4][45][0].apply(r,arguments)},{dup:45}],281:[function(t,e,r){function a(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var r=t.indexOf(" ");if(-1===r)throw new Error("no named row at line "+e);var n=t.substring(0,r);t=(t=(t=(t=t.substring(r+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map(function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)});for(var i=[],a=0;ae.length-1)return 0;var n=e.readUInt8(r++),i=e.readInt32LE(r);switch(r+=4,n){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var n=t.readUInt8(e+2);r.smooth=n>>7&1,r.unicode=n>>6&1,r.italic=n>>5&1,r.bold=n>>4&1,n>>3&1&&(r.fixedHeight=1);return r.charset=t.readUInt8(e+3)||"",r.stretchH=t.readUInt16LE(e+4),r.aa=t.readUInt8(e+6),r.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],r.spacing=[t.readInt8(e+11),t.readInt8(e+12)],r.outline=t.readUInt8(e+13),r.face=function(t,e){return l(t,e).toString("utf8")}(t,e+14),r}(e,r);break;case 2:t.common=function(t,e){var r={};r.lineHeight=t.readUInt16LE(e),r.base=t.readUInt16LE(e+2),r.scaleW=t.readUInt16LE(e+4),r.scaleH=t.readUInt16LE(e+6),r.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return r.packed=0,r.alphaChnl=t.readUInt8(e+11),r.redChnl=t.readUInt8(e+12),r.greenChnl=t.readUInt8(e+13),r.blueChnl=t.readUInt8(e+14),r}(e,r);break;case 3:t.pages=function(t,e,r){for(var n=[],i=l(t,e),a=i.length+1,o=r/a,s=0;s element");for(var r=e.getElementsByTagName("page"),n=0;n>4,h.push(s,o);break;case 2:i=3&l,a=l>>2&3,o=l>>4&3,s=l>>6&3,h.push(s,o,a,i);break;case 1:t=1&l,e=l>>1&1,r=l>>2&1,n=l>>3&1,i=l>>4&1,a=l>>5&1,o=l>>6&1,s=l>>7&1,h.push(s,o,a,i,n,r,e,t)}}return{get:function(t){for(;h.lengtht.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},n.prototype._processRead=function(t){this._reads.shift();for(var e=0,r=0,n=new o(t.length);e=t.length))break;this._processRead(t)}}this._buffers&&0>>1:e>>>=1;n[t]=e}}();var i=e.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,r=0;r>>8;return-1^e}},{}],294:[function(t,e,r){(function(b){"use strict";var h=t("./paeth-predictor");var m={0:function(t,e,r,n,i){for(var a=0;a>1);n[i+o]=u}},4:function(t,e,r,n,i,a){for(var o=0;o>1);i+=Math.abs(l)}return i},4:function(t,e,r,n){for(var i=0,a=0;a=n.height?(this._lastLine=null,this._imageIndex++,n=this._images[this._imageIndex]):this._lastLine=e,n?this.read(n.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,e("buffer").Buffer)},{"./interlace":299,"./paeth-predictor":303,buffer:47}],298:[function(t,e,r){(function(u){"use strict";e.exports=function(t,e){var r=e.depth,n=e.width,i=e.height,a=e.colorType,o=e.transColor,s=e.palette,l=t;return 3===a?function(t,e,r,n,i){for(var a=0,o=0;o>3))*this._bitmapInfo.height,r=Math.max(e,o.Z_MIN_CHUNK);this._inflate=o.createInflate({chunkSize:r});var n=e,i=this.emit.bind(this,"error");this._inflate.on("error",function(t){n&&i(t)}),this._filter.on("complete",this._complete.bind(this));var a=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,a(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},f.prototype._handleMetaData=function(t){this.emit("metadata",t),this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},f.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},f.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},f.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},f.prototype._complete=function(t){if(!this.errord){try{var e=l.dataToBitMap(t,this._bitmapInfo),r=u(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",r)}}},{"./bitmapper":289,"./chunkstream":291,"./filter-parse-async":295,"./format-normaliser":298,"./parser":306,util:365,zlib:34}],305:[function(t,e,r){(function(d){"use strict";var p=!0,b=t("zlib"),m=t("./sync-inflate");b.deflateSync||(p=!1);var g=t("./sync-reader"),y=t("./filter-parse-sync"),v=t("./parser"),_=t("./bitmapper"),w=t("./format-normaliser");e.exports=function(t,e){if(!p)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var r,n,i;var a=[];var o=new g(t);if(new v(e,{read:o.read.bind(o),error:function(t){r=t},metadata:function(t){n=t},gamma:function(t){i=t},palette:function(t){n.palette=t},transColor:function(t){n.transColor=t},inflateData:function(t){a.push(t)}}).start(),o.process(),r)throw r;var s,l=d.concat(a);if(a.length=0,n.interlace)s=b.inflateSync(l);else{var u=(1+(n.width*n.bpp*n.depth+7>>3))*n.height;s=m(l,{chunkSize:u,maxLength:u})}if(l=null,!s||!s.length)throw new Error("bad png - invalid inflate data response");var f=y.process(s,n);l=null;var h=_.dataToBitMap(f,n);f=null;var c=w(h,n);return n.data=c,n.gamma=i||0,n}}).call(this,t("buffer").Buffer)},{"./bitmapper":289,"./filter-parse-sync":296,"./format-normaliser":298,"./parser":306,"./sync-inflate":309,"./sync-reader":310,buffer:47,zlib:34}],306:[function(e,r,t){(function(o){"use strict";var u=e("./constants"),s=e("./crc"),t=r.exports=function(t,e){(this._options=t).checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[u.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[u.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[u.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[u.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[u.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[u.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished};t.prototype.start=function(){this.read(u.PNG_SIGNATURE.length,this._parseSignature.bind(this))},t.prototype._parseSignature=function(t){for(var e=u.PNG_SIGNATURE,r=0;rthis._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;et.width||n>t.height||r+i>t.width||n+a>t.height)throw new Error("bitblt reading outside image");if(o>e.width||s>e.height||o+i>e.width||s+a>e.height)throw new Error("bitblt writing outside image");for(var l=0;ls&&(n=n.slice(0,s)),u.push(n),f+=n.length,0===(s-=n.length))return!1}return(0===e||i._offset>=i._chunkSize)&&(o=i._chunkSize,i._offset=0,i._buffer=p.allocUnsafe(i._chunkSize)),0===e&&(l+=a-t,a=t,!0)}}this.on("error",function(t){n=t}),b(this._handle,"zlib binding closed");do{var c=this._handle.writeSync(e,t,l,a,this._buffer,this._offset,o);c=c||this._writeState}while(!this._hadError&&h(c[0],c[1]));if(this._hadError)throw n;if(g<=f)throw y(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+g.toString(16)+" bytes");var d=p.concat(u,f);return y(this),d},t.inherits(n,m.Inflate),a.exports=o=e,o.Inflate=n,o.createInflate=function(t){return new n(t)},o.inflateSync=e}).call(this,i("_process"),i("buffer").Buffer)},{_process:312,assert:24,buffer:47,util:365,zlib:34}],310:[function(t,e,r){"use strict";var n=e.exports=function(t){this._buffer=t,this._reads=[]};n.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},n.prototype.process=function(){for(;0=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}return 0= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=y-v,k=Math.floor,j=String.fromCharCode;function S(t){throw new RangeError(h[t])}function d(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function p(t,e){var r=t.split("@"),n="";return 1>>10&1023|55296),t=56320|1023&t),e+=j(t)}).join("")}function T(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function O(t,e,r){var n=0;for(t=r?k(t/s):t>>1,t+=k(t/e);c*_>>1k((g-p)/o))&&S("overflow"),p+=l*o,!(l<(u=s<=m?v:m+_<=s?_:s-m));s+=y)o>k(g/(f=y-u))&&S("overflow"),o*=f;m=O(p-a,e=c.length+1,0==a),k(p/e)>g-b&&S("overflow"),b+=k(p/e),p%=e,c.splice(p++,0,b)}return I(c)}function m(t){var e,r,n,i,a,o,s,l,u,f,h,c,d,p,b,m=[];for(c=(t=A(t)).length,e=x,a=w,o=r=0;ok((g-r)/(d=n+1))&&S("overflow"),r+=(s-e)*d,e=s,o=0;og&&S("overflow"),h==e){for(l=r,u=y;!(l<(f=u<=a?v:a+_<=u?_:u-a));u+=y)b=l-f,p=y-f,m.push(j(T(f+b%p,0))),l=k(b/p);m.push(j(T(l,0))),a=O(r,d,n==i),r=0,++n}++r,++e}return m.join("")}if(i={version:"1.4.1",ucs2:{decode:A,encode:I},decode:b,encode:m,toASCII:function(t){return p(t,function(t){return u.test(t)?"xn--"+m(t):t})},toUnicode:function(t){return p(t,function(t){return l.test(t)?b(t.slice(4).toLowerCase()):t})}},e&&r)if(P.exports==e)r.exports=i;else for(a in i)i.hasOwnProperty(a)&&(e[a]=i[a]);else t.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],314:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){e=e||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(e);var o=1e3;n&&"number"==typeof n.maxKeys&&(o=n.maxKeys);var s,l,u=t.length;0e.highWaterMark&&(e.highWaterMark=function(t){return _<=t?t=_:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function x(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(v("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?m.nextTick(E,t):E(t))}function E(t){v("emit readable"),t.emit("readable"),I(t)}function k(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(j,t,e))}function j(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;ta.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=a.slice(o);break}++n}return e.length-=n,i}(t,e):function(t,e){var r=s.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,o),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=a.slice(o);break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function O(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return v("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?O(this):x(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,i=e.needReadable;return v("need readable",i),(0===e.length||e.length-t>>0),a=this.head,o=0;a;)e=a.data,r=i,n=o,e.copy(r,n),o+=a.data.length,a=a.next;return i},i),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":326,util:32}],324:[function(t,e,r){"use strict";var a=t("process-nextick-args");function o(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||a.nextTick(o,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(a.nextTick(o,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":311}],325:[function(t,e,r){e.exports=t("events").EventEmitter},{events:239}],326:[function(t,e,r){var n=t("buffer"),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,r),r.Buffer=o),a(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:47}],327:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=f,this.end=h,e=3;break;default:return this.write=c,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(1t._pos){var n=r.substr(t._pos);if("x-user-defined"===t._charset){for(var i=h.alloc(n.length),a=0;at._pos&&(t.push(h.from(new Uint8Array(o.result.slice(t._pos)))),t._pos=o.result.byteLength)},o.onload=function(){t.push(null)},o.readAsArrayBuffer(r)}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{},r("buffer").Buffer)},{"./capability":336,_process:312,buffer:47,inherits:254,"readable-stream":353}],339:[function(t,e,r){"use strict";var n={};function i(t,i,e){var r=function(n){function t(t,e,r){return n.call(this,function(t,e,r){return"string"==typeof i?i:i(t,e,r)}(t,e,r))||this}return function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}(t,n),t}(e=e||Error);r.prototype.name=e.name,r.prototype.code=t,n[t]=r}function o(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),2t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))i="The ".concat(t," ").concat(n," ").concat(o(e,"type"));else{var a=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(a," ").concat(n," ").concat(o(e,"type"))}return i+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},{}],340:[function(t,e,r){(function(r){"use strict";var n=new Set;e.exports.emitExperimentalWarning=r.emitWarning?function(t){if(!n.has(t)){var e=t+" is an experimental feature. This feature could change at any time";n.add(t),r.emitWarning(e,"ExperimentalWarning")}}:function(){}}).call(this,t("_process"))},{_process:312}],341:[function(f,h,t){(function(t){"use strict";var e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};h.exports=s;var r=f("./_stream_readable"),n=f("./_stream_writable");f("inherits")(s,r);for(var i=e(n.prototype),a=0;ae.highWaterMark&&(e.highWaterMark=function(t){return j<=t?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function A(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,p.nextTick(I,t))}function I(t){var e=t._readableState;m("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||t.emit("readable"),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,L(t)}function T(t,e){e.readingMore||(e.readingMore=!0,p.nextTick(O,t,e))}function O(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function B(t){var e=t._readableState;m("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,p.nextTick(D,e,t))}function D(t,e){m("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function N(t,e){for(var r=0,n=t.length;r=e.highWaterMark:0>>0),a=this.head,o=0;a;)e=a.data,r=i,n=o,s.prototype.copy.call(e,r,n),o+=a.data.length,a=a.next;return i},e.consume=function(t,e){var r;return ti.length?i.length:t;if(a===i.length?n+=i:n+=i.slice(0,t),0===(t-=a)){a===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=i.slice(a);break}++r}return this.length-=r,n},e._getBuffer=function(t){var e=s.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,a=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0===(t-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r).data=i.slice(a);break}++n}return this.length-=n,e},e[a]=function(t,e){return n(this,function(e){for(var t=1;t=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function s(t,e,r){if(t[e]===r)return t;for(var n=t.length,i=Array(n),a=0;a>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(d(n));return a}function j(t,e){e=e||6;for(var r=d(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(d({h:n,s:i,v:a})),a=(a+s)%1;return o}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:u.pow((.055+t)/1.055,2.4))+.7152*(e<=.03928?e/12.92:u.pow((.055+e)/1.055,2.4))+.0722*(r<=.03928?r/12.92:u.pow((.055+r)/1.055,2.4))},setAlpha:function(t){return this._a=I(t),this._roundA=o(100*this._a)/100,this},toHsv:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=a(this._r,this._g,this._b),e=o(360*t.h),r=o(100*t.s),n=o(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=o(360*t.h),r=o(100*t.s),n=o(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return e(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var a=[P(o(t).toString(16)),P(o(e).toString(16)),P(o(r).toString(16)),P(L(n))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(100*T(this._r,255))+"%",g:o(100*T(this._g,255))+"%",b:o(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+o(100*T(this._r,255))+"%, "+o(100*T(this._g,255))+"%, "+o(100*T(this._b,255))+"%)":"rgba("+o(100*T(this._r,255))+"%, "+o(100*T(this._g,255))+"%, "+o(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[e(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+s(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=d(t);r="#"+s(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&0<=this._a;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(r,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},d.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:M(t[n]));t=r}return d(t,e)},d.equals=function(t,e){return!(!t||!e)&&d(t).toRgbString()==d(e).toRgbString()},d.random=function(){return d.fromRatio({r:t(),g:t(),b:t()})},d.mix=function(t,e,r){r=0===r?0:r||50;var n=d(t).toRgb(),i=d(e).toRgb(),a=r/100;return d({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},d.readability=function(t,e){var r=d(t),n=d(e);return(u.max(r.getLuminance(),n.getLuminance())+.05)/(u.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(t,e,r){var n,i,a=d.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":i=4.5<=a;break;case"AAlarge":i=3<=a;break;case"AAAsmall":i=7<=a}return i},d.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u",'"',"`"," ","\r","\n","\t"]),D=["'"].concat(i),N=["%","/","?",";","#"].concat(D),U=["/","?","#"],z=/^[+a-z0-9A-Z_-]{0,63}$/,F=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,H={javascript:!0,"javascript:":!0},G={javascript:!0,"javascript:":!0},q={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W=t("querystring");function a(t,e,r){if(t&&L.isObject(t)&&t instanceof A)return t;var n=new A;return n.parse(t,e,r),n}A.prototype.parse=function(t,e,r){if(!L.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),i=-1!==n&&n>--j&1;if(255===(k=r[n++])){var t=r[n++];if(t){if(220===t&&w){n+=2;var e=r[n++]<<8|r[n++];if(0>>(j=7)}function h(t){for(;;){if("number"==typeof(t=t[f()]))return t;if("object"!==(void 0===t?"undefined":B(t)))throw new D("invalid huffman sequence")}}function c(t){for(var e=0;0>=4,0==i){if(n<15){S=c(n)+(1<>=4,0===r)A=i<15?(S=c(i)+(1<>=4,0==i){if(n<15)break;r+=16}else r+=n,t.a[e+C[r]]=d(i),r++}},O=0,R=1===I?t[0].c*t[0].l:x*i.O;O>10,l[h]=c,l[h+1]=c,l[h+2]=c,l[h+3]=c,l[h+4]=c,l[h+5]=c,l[h+6]=c,l[h+7]=c;else{d*=u[h+1],p*=u[h+2],b*=u[h+3],m*=u[h+4],g*=u[h+5];var _=5793*c+128>>8,w=5793*m+128>>8,x=p,E=y*=u[h+6];w=(_=_+w+1>>1)-w,c=3784*x+1567*E+128>>8,x=1567*x-3784*E+128>>8,g=(m=(m=2896*(d-(v*=u[h+7]))+128>>8)+(g<<=4)+1>>1)-g,b=(v=(v=2896*(d+v)+128>>8)+(b<<=4)+1>>1)-b,E=(_=_+(E=c)+1>>1)-E,x=(w=w+x+1>>1)-x,c=2276*m+3406*v+2048>>12,m=3406*m-2276*v+2048>>12,v=c,c=799*b+4017*g+2048>>12,b=4017*b-799*g+2048>>12,g=c,l[h]=_+v,l[h+7]=_-v,l[h+1]=w+g,l[h+6]=w-g,l[h+2]=x+b,l[h+5]=x-b,l[h+3]=E+m,l[h+4]=E-m}}for(u=0;u<8;++u)c=l[u],0==((d=l[u+8])|(p=l[u+16])|(b=l[u+24])|(m=l[u+32])|(g=l[u+40])|(y=l[u+48])|(v=l[u+56]))?(c=(c=5793*c+8192>>14)<-2040?0:2024<=c?255:c+2056>>4,f[s+u]=c,f[s+u+8]=c,f[s+u+16]=c,f[s+u+24]=c,f[s+u+32]=c,f[s+u+40]=c,f[s+u+48]=c,f[s+u+56]=c):(_=5793*c+2048>>12,w=5793*m+2048>>12,c=3784*(x=p)+1567*(E=y)+2048>>12,x=1567*x-3784*E+2048>>12,E=c,g=(m=(m=2896*(d-v)+2048>>12)+g+1>>1)-g,b=(v=(v=2896*(d+v)+2048>>12)+b+1>>1)-b,c=2276*m+3406*v+2048>>12,m=3406*m-2276*v+2048>>12,v=c,c=799*b+4017*g+2048>>12,b=4017*b-799*g+2048>>12,d=(w=(w=(_=4112+(_+w+1>>1))-w)+x+1>>1)+(g=c),y=w-g,g=(x=w-x)-b,c=(c=(_=_+E+1>>1)+v)<16?0:4080<=c?255:c>>4,d=d<16?0:4080<=d?255:d>>4,p=(p=x+b)<16?0:4080<=p?255:p>>4,b=(b=(E=_-E)+m)<16?0:4080<=b?255:b>>4,m=(m=E-m)<16?0:4080<=m?255:m>>4,g=g<16?0:4080<=g?255:g>>4,y=y<16?0:4080<=y?255:y>>4,v=(v=_-v)<16?0:4080<=v?255:v>>4,f[s+u]=c,f[s+u+8]=d,f[s+u+16]=p,f[s+u+24]=b,f[s+u+32]=m,f[s+u+40]=g,f[s+u+48]=y,f[s+u+56]=v)}return e.a}function L(t,e,r){var n=2=i)return null;o=t[n]<<8|t[n+1]}return{f:a.toString(16),F:o,offset:n}}var i,S,g,C,B,D,N,a;a={},"object"==typeof s?s.exports=a:self.UTIF=a,i="function"==typeof o?o("pako"):self.pako,S=a,g=i,B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},(r.prototype=Error()).name="JpegError",D=r.constructor=r,(e.prototype=Error()).name="DNLMarkerError",N=e.constructor=e,C=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),n.prototype={parse:function(e){function t(){var t=e[a]<<8|e[a+1];return a+=2,t}function r(t){for(var e=Math.ceil(t.v/8/t.s),r=Math.ceil(t.g/8/t.u),n=0;n>4)for(d=0;d<64;d++)m[p=C[d]]=e[a++];else{if(1!=b>>4)throw new D("DQT - invalid table spec");for(d=0;d<64;d++)m[p=C[d]]=t()}n[15&b]=m}break;case 65472:case 65473:case 65474:if(g)throw new D("Only single frame JPEGs supported");t();var g={};for(g.X=65473===c,g.S=65474===c,g.precision=e[a++],c=t(),g.g=i||c,g.v=t(),g.b=[],g.C={},d=e[a++],c=m=b=0;c>4,v=15&e[a+1];b>4?h:f)[15&b]=E(m,v)}break;case 65501:t();var _=t();break;case 65498:for(d=1==++s&&!i,t(),b=e[a++],p=[],c=0;c>4],w.o=f[15&m],p.push(w)}c=e[a++],b=e[a++],m=e[a++];try{var x=k(e,a,g,p,_,c,b,m>>4,15&m,d);a+=x}catch(t){if(t instanceof N)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(e,{N:t.g});throw t}break;case 65500:a+=4;break;case 65535:255!==e[a]&&a--;break;default:if(255===e[a-3]&&192<=e[a-2]&&e[a-2]<=254)a-=3;else{if(!(d=L(e,a-2))||!d.f)throw new D("unknown marker "+c.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+d.f),a=d.offset}}c=t()}for(this.width=g.v,this.height=g.g,this.A=o,this.b=[],c=0;c>8)+a[i+1];return l},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,r,n,i=0,a=t.length;i>>3)]),null==h&&(h=a.t325);var c=new Uint8Array(a.height*(u>>>3)),d=0;if(null!=a.t322){for(var p=a.t322[0],b=a.t323[0],m=Math.floor((a.width+p-1)/p),g=Math.floor((a.height+b-1)/b),y=new Uint8Array(0|Math.ceil(p*b*l/8)),v=0;v>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(f=0;f>>4,i[a++]=255&(p[f]<<4|p[f+1]>>>8),i[a++]=255&p[f+1]}}else{var m=new S.JpegDecoder;m.parse(l);var g=m.getData(m.width,m.height);for(f=0;f offset to first strip or tile");if(null==i){var x=0,E=[];E[x++]=255,E[x++]=216;var k=t.t519;if(null==k)throw new Error("JPEGQTables tag is missing");for(o=0;o>>8,E[x++]=255&S,E[x++]=o|l<<4,s=0;s<16;s++)E[x++]=e[r+j[o]+s];for(s=0;s>>8&255,E[x++]=255&t.height,E[x++]=t.width>>>8&255,E[x++]=255&t.width,1==(E[x++]=_))E[x++]=1,E[x++]=17,E[x++]=0;else for(o=0;o<3;o++)E[x++]=o+1,E[x++]=0!=o?17:(15&y)<<4|15&v,E[x++]=o;null!=w&&0!=w[0]&&(E[x++]=255,E[x++]=221,E[x++]=0,E[x++]=4,E[x++]=w[0]>>>8&255,E[x++]=255&w[0]),i=new Uint8Array(E)}var A=-1;for(o=0;o>>8&255,i[T++]=255&t.height,i[T++]=t.width>>>8&255,i[T++]=255&t.width,1==(i[T++]=_))i[T++]=1,i[T++]=17,i[T++]=0;else for(o=0;o<3;o++)i[T++]=o+1,i[T++]=0!=o?17:(15&y)<<4|15&v,i[T++]=o}if(255==e[f]&&218==e[f+1]){var O=e[f+2]<<8|e[f+3];for((a=new Uint8Array(2+O))[0]=e[f],a[1]=e[f+1],a[2]=e[f+2],a[3]=e[f+3],o=0;o>>8&255,l[u.sofPosition+6]=255&t.height,l[u.sofPosition+7]=t.width>>>8&255,l[u.sofPosition+8]=255&t.width,255==e[r]&&e[r+1]==SOS||(l.set(u.sosMarker,bufoff),bufoff+=sosMarker.length),c=0;c>>6,c=63&f;if(e++,3==h&&(u=15&c,n[l>>>1]|=u<<4*(1-l&1),l++),0==h)for(var d=0;d>>1]|=u<<4*(1-l&1),l++;if(2==h)for(d=0;d<2;d++)4!=(p=c>>>3*(1-d)&7)&&(u+=o[p],n[l>>>1]|=u<<4*(1-l&1),l++);if(1==h)for(d=0;d<3;d++){var p;2!=(p=c>>>2*(2-d)&3)&&(u+=a[p],n[l>>>1]|=u<<4*(1-l&1),l++)}}},S.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},S.decode._lens=function(){function t(t,e,r,n){for(var i=0;i>>3>>3]>>>7-(7&l)&1),2==o&&(E=t[l>>>3]>>>(7&l)&1),l++,f+=E,"H"==_){if(null!=s._lens[y][f]){var k=s._lens[y][f];f="",u+=k,k<64&&(s._addNtimes(h,u,y),p+=u,y=1-y,(u=0)==--w&&(_=""))}}else"0001"==f&&(f="",s._addNtimes(h,g-p,y),p=g),"001"==f&&(f="",_="H",w=2),null!=s._dmap[f]&&(b=m+s._dmap[f],s._addNtimes(h,b-p,y),p=b,f="",y=1-y);h.length==a&&""==_&&(s._writeBits(h,n,8*i+v*x),v++,p=y=0,c=s._makeDiff(h),h=[])}},S.decode._findDiff=function(t,e,r){for(var n=0;n=e&&t[n+1]==r)return t[n]},S.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r>>3>>3]>>>7-(7&l)&1),2==o&&(k=t[l>>>3]>>>(7&l)&1),l++,f+=k,x){if(null!=s._lens[y][f]){var j=s._lens[y][f];f="",u+=j,j<64&&(s._addNtimes(h,u,y),y=1-y,u=0)}}else"H"==_?null!=s._lens[y][f]&&(j=s._lens[y][f],f="",u+=j,j<64&&(s._addNtimes(h,u,y),p+=u,y=1-y,(u=0)==--w&&(_=""))):("0001"==f&&(f="",s._addNtimes(h,g-p,y),p=g),"001"==f&&(f="",_="H",w=2),null!=s._dmap[f]&&(b=m+s._dmap[f],s._addNtimes(h,b-p,y),p=b,f="",y=1-y));f.endsWith("000000000001")&&(0<=v&&s._writeBits(h,n,8*i+v*E),1==o&&(x=1==(t[l>>>3]>>>7-(7&l)&1)),2==o&&(x=1==(t[l>>>3]>>>(7&l)&1)),l++,null==s._decodeG3.allow2D&&(s._decodeG3.allow2D=x),s._decodeG3.allow2D||(x=!0,l--),f="",v++,p=y=0,c=s._makeDiff(h),h=[])}h.length==a&&s._writeBits(h,n,8*i+v*E)},S.decode._addNtimes=function(t,e,r){for(var n=0;n>>3]|=t[n]<<7-(r+n&7)},S.decode._decodeLZW=function(t,e,r,n){if(null==S.decode._lzwTab){for(var i=new Uint32Array(65535),a=new Uint16Array(65535),o=new Uint8Array(2e6),s=0;s<256;s++)i[o[s<<2]=s]=s<<2,a[s]=1;S.decode._lzwTab=[i,a,o]}for(var l=S.decode._copyData,u=S.decode._lzwTab[0],f=S.decode._lzwTab[1],h=(o=S.decode._lzwTab[2],258),c=1032,d=9,p=e<<3,b=0,m=0;b=(t[p>>>3]<<16|t[p+8>>>3]<<8|t[p+16>>>3])>>24-(7&p)-d&(1<>>3]<<16|t[p+8>>>3]<<8|t[p+16>>>3])>>24-(7&p)-d&(1<>3)]>>7-(7&p)&1;o[b]=o[b+1]=o[b+2]=255*(1-m),o[b+3]=255}if(4==l)for(p=0;p>1)]>>4-4*(1&p)&15,o[b]=o[b+1]=o[b+2]=17*(15-m),o[b+3]=255;if(8==l)for(p=0;p>3)]>>7-(7&p)&1,o[b]=o[b+1]=o[b+2]=255*m,o[b+3]=255;if(2==l)for(p=0;p>2)]>>6-2*(3&p)&3,o[b]=o[b+1]=o[b+2]=85*m,o[b+3]=255;if(8==l)for(p=0;p>8,o[b+1]=y[256+v]>>8,o[b+2]=y[512+v]>>8,o[b+3]=255}}else if(5==s){var _,w=4<(_=t.t258?t.t258.length:4)?1:0;for(p=0;p>8&255,t[e+1]=255&r},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=r>>0&255},writeASCII:function(t,e,r){for(var n=0;n (HTTP: "+e.statusCode+")";return new Error(n)})}var L,C={data:null,width:null,height:null},B=function(t){function m(){for(var n,t=arguments.length,i=new Array(t),e=0;e"}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||m.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return b.getExtension(t)}},{key:"write",value:function(n,i){var a=this;if(!k.default||!k.default.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof n)return j.throwError.call(this,"path must be a string",i);if(void 0===i&&(i=P),"function"!=typeof i)return j.throwError.call(this,"cb must be a function",i);var t=b.getType(n)||this.getMIME(),e=o.default.parse(n);return e.dir&&u.default.sync(e.dir),this.getBuffer(t,function(t,e){if(t)return j.throwError.call(a,t,i);var r=k.default.createWriteStream(n);r.on("open",function(){r.write(e),r.end()}).on("error",function(t){return j.throwError.call(a,t,i)}),r.on("finish",function(){i.call(a,null,a)})}),this}},{key:"getBase64",value:function(n,i){return n===m.AUTO&&(n=this.getMIME()),"string"!=typeof n?j.throwError.call(this,"mime must be a string",i):"function"!=typeof i?j.throwError.call(this,"cb must be a function",i):(this.getBuffer(n,function(t,e){if(t)return j.throwError.call(this,t,i);var r="data:"+n+";base64,"+e.toString("base64");i.call(this,null,r)}),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return j.throwError.call(this,"base must be a number",e);if(t<2||64=this.bitmap.width&&(i=this.bitmap.width-1),e<0&&(a=0),e>=this.bitmap.height&&(a=this.bitmap.height-1)),r===m.EDGE_WRAP&&(t<0&&(i=this.bitmap.width+t),t>=this.bitmap.width&&(i=t%this.bitmap.width),e<0&&(i=this.bitmap.height+e),e>=this.bitmap.height&&(a=e%this.bitmap.height));var o=this.bitmap.width*a+i<<2;return(i<0||i>=this.bitmap.width)&&(o=-1),(a<0||a>=this.bitmap.height)&&(o=-1),(0,j.isNodePattern)(n)&&n.call(this,null,o),o}},{key:"getPixelColor",value:function(t,e,r){if("number"!=typeof t||"number"!=typeof e)return j.throwError.call(this,"x and y must be numbers",r);t=Math.round(t),e=Math.round(e);var n=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(n);return(0,j.isNodePattern)(r)&&r.call(this,null,i),i}},{key:"setPixelColor",value:function(t,e,r,n){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof r)return j.throwError.call(this,"hex, x and y must be numbers",n);e=Math.round(e),r=Math.round(r);var i=this.getPixelIndex(e,r);return this.bitmap.data.writeUInt32BE(t,i),(0,j.isNodePattern)(n)&&n.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var t=0;ti.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),"number"!=typeof r||r<0||1l?"1":"0";return u};var d=[];e.exports=n},{}],374:[function(r,n,t){(function(t,i){"use strict";var e=r("@babel/runtime/helpers/interopRequireDefault");r("core-js/modules/es.symbol"),r("core-js/modules/es.array.filter"),r("core-js/modules/es.array.for-each"),r("core-js/modules/es.object.assign"),r("core-js/modules/es.object.define-properties"),r("core-js/modules/es.object.define-property"),r("core-js/modules/es.object.get-own-property-descriptor"),r("core-js/modules/es.object.get-own-property-descriptors"),r("core-js/modules/es.object.keys"),r("core-js/modules/web.dom-collections.for-each");e(r("@babel/runtime/helpers/defineProperty"));t.browser,n.exports=function(e,r){var n=new XMLHttpRequest;n.open("GET",e.url,!0),n.responseType="arraybuffer",n.addEventListener("load",function(){if(n.status<400)try{var t=i.from(this.response);r(null,n,t)}catch(t){return r(new Error("Response is not a buffer for url "+e.url+". Error: "+t.message))}else r(new Error("HTTP Status "+n.status+" for url "+e.url))}),n.addEventListener("error",function(t){r(t)}),n.send()}}).call(this,r("_process"),r("buffer").Buffer)},{"@babel/runtime/helpers/defineProperty":7,"@babel/runtime/helpers/interopRequireDefault":10,_process:312,buffer:47,"core-js/modules/es.array.filter":175,"core-js/modules/es.array.for-each":178,"core-js/modules/es.object.assign":190,"core-js/modules/es.object.define-properties":191,"core-js/modules/es.object.define-property":192,"core-js/modules/es.object.get-own-property-descriptor":194,"core-js/modules/es.object.get-own-property-descriptors":195,"core-js/modules/es.object.keys":196,"core-js/modules/es.symbol":207,"core-js/modules/web.dom-collections.for-each":235,phin:287}],375:[function(f,t,h){(function(m){"use strict";var t=f("@babel/runtime/helpers/interopRequireWildcard"),e=f("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(h,"__esModule",{value:!0}),h.parseBitmap=function(t,e,r){var n=function(t,e){var r=(0,a.default)(t);if(r)return r.mime;if(e)return l.getType(e);return null}(t,e);if("string"!=typeof n)return r(new Error("Could not find MIME for Buffer <"+e+">"));this._originalMime=n.toLowerCase();try{var i=this.getMIME();if(!this.constructor.decoders[i])return s.throwError.call(this,"Unsupported MIME type: "+i,r);this.bitmap=this.constructor.decoders[i](t)}catch(t){return r.call(this,t,this)}try{this._exif=o.default.create(t).parse(),function(t){if(u(t)<2)return;var e=function(t){var r=t.getWidth(),n=t.getHeight();switch(u(t)){case 1:return null;case 2:return function(t,e){return[r-t-1,e]};case 3:return function(t,e){return[r-t-1,n-e-1]};case 4:return function(t,e){return[t,n-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,n-t-1]};case 7:return function(t,e){return[r-e-1,n-t-1]};case 8:return function(t,e){return[r-e-1,t]};default:return null}}(t),r=4>8)+f,_.bitmap.data[a+1]=(u*(s-h)-h+255>>8)+h,_.bitmap.data[a+2]=(u*(l-c)-c+255>>8)+c,_.bitmap.data[a+3]=this.constructor.limit255(d+u)}}),(0,a.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/typeof":20,"@jimp/utils":414}],381:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.shgTable=r.mulTable=void 0;r.mulTable=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1];r.shgTable=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18]},{}],382:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var I=t("@jimp/utils"),T=t("./blur-tables");r.default=function(){return{blur:function(t,e){if("number"!=typeof t)return I.throwError.call(this,"r must be a number",e);if(t<1)return I.throwError.call(this,"r must be greater than 0",e);for(var r,n,i,a,o,s,l,u,f,h,c,d,p,b,m=this.bitmap.width-1,g=this.bitmap.height-1,y=t+1,v=T.mulTable[t],_=T.shgTable[t],w=[],x=[],E=[],k=[],j=[],S=[],A=2;0>>_,255<(this.bitmap.data[d+3]=b)&&(this.bitmap.data[d+3]=255),0>>_)*b,this.bitmap.data[d+1]=(n*v>>>_)*b,this.bitmap.data[d+2]=(i*v>>>_)*b):(this.bitmap.data[d+2]=0,this.bitmap.data[d+1]=0,this.bitmap.data[d]=0),0===o&&(j[s]=((u=s+y)this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,a="number"==typeof r.x?r.x:this.bitmap.width/2,o="number"==typeof r.y?r.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=Math.sqrt(Math.pow(t-a,2)+Math.pow(e-o,2));i-n<=0?this.bitmap.data[r+3]=0:i-n<1&&(this.bitmap.data[r+3]=255*(i-n))}),(0,s.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],384:[function(i,a,o){(function(n){"use strict";var t=i("@babel/runtime/helpers/interopRequireDefault");i("core-js/modules/es.array.for-each"),i("core-js/modules/es.array.is-array"),i("core-js/modules/es.array.map"),i("core-js/modules/es.parse-int"),i("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var l=t(i("@babel/runtime/helpers/toConsumableArray")),u=t(i("tinycolor2")),x=i("@jimp/utils");function f(t,e,r,n){for(var i=[0,0,0],a=(e.length-1)/2,o=0;o>3;if((0==a||a&a-1)&&(0==o||o&o-1))return h.throwError.call(this,"only use one flag per alignment direction",i);var s=a>>1,l=o>>1,u=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,f=this.cloneQuiet().scale(u,n);return this.resize(t,e,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)}),this.blit(f,(this.bitmap.width-f.bitmap.width)/2*s,(this.bitmap.height-f.bitmap.height)/2*l),(0,h.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],386:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var f=t("@jimp/utils");r.default=function(){return{cover:function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return f.throwError.call(this,"w and h must be numbers",i);r&&"function"==typeof r&&void 0===i?(i=r,n=r=null):"function"==typeof n&&void 0===i&&(i=n,n=null);var a=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=r>>3;if((0==a||a&a-1)&&(0==o||o&o-1))return f.throwError.call(this,"only use one flag per alignment direction",i);var s=a>>1,l=o>>1,u=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(u,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*l,t,e),(0,f.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],387:[function(e,r,n){(function(u){"use strict";var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.slice"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){return t("crop",function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return z.throwError.call(this,"x and y must be numbers",i);if("number"!=typeof r||"number"!=typeof n)return z.throwError.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),r=Math.round(r),n=Math.round(n),0===t&&r===this.bitmap.width){var a=r*e+t<<2,o=a+n*r<<2;this.bitmap.data=this.bitmap.data.slice(a,o)}else{var s=u.allocUnsafe(r*n*4),l=0;this.scanQuiet(t,e,r,n,function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);s.writeUInt32BE(n,l,!0),l+=4}),this.bitmap.data=s}return this.bitmap.width=r,this.bitmap.height=n,(0,z.isNodePattern)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,n=0,i=2e-4,a=!0,o=!1,s=arguments.length,l=new Array(s),u=0;ui)break t}b++}d=this.getPixelColor(e,0);t:for(var E=0;Ei)break t}m++}d=this.getPixelColor(0,r);t:for(var A=r-1;b+1<=A;A--){for(var I=e-m-1;0<=I;I--){var T=this.getPixelColor(I,A),O=this.constructor.intToRGBA(T);if(this.constructor.colorDiff(p,O)>i)break t}g++}d=this.getPixelColor(e,r);t:for(var R=e-1;0+m+1<=R;R--){for(var P=r-1;0+b<=P;P--){var M=this.getPixelColor(R,P),L=this.constructor.intToRGBA(M);if(this.constructor.colorDiff(p,L)>i)break t}y++}if(y-=n,m-=n,b-=n,g-=n,o){var C=Math.min(m,y),B=Math.min(b,g);m=y=C,g=b=B}var D=e-((y=0<=y?y:0)+(m=0<=m?m:0)),N=r-((g=0<=g?g:0)+(b=0<=b?b:0));return(a?0!==m&&0!==b&&0!==y&&0!==g:0!==m||0!==b||0!==y||0!==g)&&this.crop(m,b,D,N),(0,z.isNodePattern)(t)&&t.call(this,null,this),this}}}};var U=t(e("@babel/runtime/helpers/typeof")),z=e("@jimp/utils");r.exports=n.default}).call(this,e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/typeof":20,"@jimp/utils":414,buffer:47,"core-js/modules/es.array.slice":186}],388:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(t("@babel/runtime/helpers/typeof")),l=t("@jimp/utils");r.default=function(){return{displace:function(a,o,t){if("object"!==(0,i.default)(a)||a.constructor!==this.constructor)return l.throwError.call(this,"The source must be a Jimp image",t);if("number"!=typeof o)return l.throwError.call(this,"factor must be a number",t);var s=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=a.bitmap.data[r]/256*o;n=Math.round(n);var i=this.getPixelIndex(t+n,e);this.bitmap.data[i]=s.bitmap.data[r],this.bitmap.data[i+1]=s.bitmap.data[r+1],this.bitmap.data[i+2]=s.bitmap.data[r+2]}),(0,l.isNodePattern)(t)&&t.call(this,null,this),this}}},e.exports=r.default},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/typeof":20,"@jimp/utils":414}],389:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=t("@jimp/utils");function i(t){var i=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=i[((3&e)<<2)+t%4];this.bitmap.data[r]=Math.min(this.bitmap.data[r]+n,255),this.bitmap.data[r+1]=Math.min(this.bitmap.data[r+1]+n,255),this.bitmap.data[r+2]=Math.min(this.bitmap.data[r+2]+n,255)}),(0,n.isNodePattern)(t)&&t.call(this,null,this),this}r.default=function(){return{dither565:i,dither16:i}},e.exports=r.default},{"@jimp/utils":414}],390:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=t("@jimp/utils");r.default=function(){return{fisheye:function(t,e){var h=this,c=0this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),(0,a.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],405:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var m=t("@jimp/utils");r.default=function(){return{shadow:function(){var n=this,t=0