/* Jimp v0.3.10 https://github.com/oliver-moran/jimp Ported for the Web by Phil Seaton The MIT License (MIT) Copyright (c) 2014 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 o(a,s,f){function u(e,t){if(!s[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[e]={exports:{}};a[e][0].call(i.exports,function(t){return u(a[e][1][t]||t)},i,i.exports,o,a,s,f)}return s[e].exports}for(var l="function"==typeof require&&require,t=0;t>16&255,o[a++]=e>>8&255,o[a++]=255&e;var u,l;2===i&&(e=h[t.charCodeAt(f)]<<2|h[t.charCodeAt(f+1)]>>4,o[a++]=255&e);1===i&&(e=h[t.charCodeAt(f)]<<10|h[t.charCodeAt(f+1)]<<4|h[t.charCodeAt(f+2)]>>2,o[a++]=e>>8&255,o[a++]=255&e);return o},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i=[],o=0,a=r-n;o>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=[],h=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return o.join("")}h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63},{}],8:[function(t,e,r){var n=t("./lib/encoder"),i=t("./lib/decoder");e.exports={encode:n,decode:i}},{"./lib/decoder":9,"./lib/encoder":10}],9:[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[a+4*s]=0,this.data[a+4*s+1]=f.blue,this.data[a+4*s+2]=f.green,this.data[a+4*s+3]=f.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&f&&f+1>1&1)&&this.pos++}}else for(f=0;f>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 l=Math.ceil(this.width/2),h=l%4;for(a=this.height-1;0<=a;a--){var c=this.bottom_up?a:this.height-1-a;for(o=0;o>4,p=15&i,m=this.palette[d];if(this.data[r]=0,this.data[r+1]=m.blue,this.data[r+2]=m.green,this.data[r+3]=m.red,2*o+1>=this.width)break;m=this.palette[p],this.data[r+4]=0,this.data[r+4+1]=m.blue,this.data[r+4+2]=m.green,this.data[r+4+3]=m.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,f=(o>>10&e)/e*255|0,u=o>>15?255:0,l=n*this.width*4+4*i;this.data[l]=u,this.data[l+1]=a,this.data[l+2]=s,this.data[l+3]=f}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,o=0;o>e[1],u=(a&this.maskRed)>>e[2],l=i*this.width*4+4*o;this.data[l]=0,this.data[l+1]=s,this.data[l+2]=f,this.data[l+3]=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?a.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,o,a){return this._write(!0,t,e,r,n,i,o,a)},r.prototype.writeSync=function(t,e,r,n,i,o,a){return this._write(!1,t,e,r,n,i,o,a)},r.prototype._write=function(t,e,r,n,i,o,a,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=l.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=o,this.strm.next_out=a,this.flush=e,!t)return this._process(),this._checkError()?this._afterSync():void 0;var f=this;return u.nextTick(function(){f._process(),f._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=a.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&&!b.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){I(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 o=T.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(o=t.strategy),this._handle.init(t.windowBits||T.Z_DEFAULT_WINDOWBITS,i,t.memLevel||T.Z_DEFAULT_MEMLEVEL,o,t.dictionary),this._buffer=b.allocUnsafe(this._chunkSize),this._offset=0,this._level=i,this._strategy=o,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function I(t,e){e&&i.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function j(t){t.emit("close")}Object.defineProperty(T,"codes",{enumerable:!0,value:Object.freeze(o),writable:!1}),T.Deflate=d,T.Inflate=p,T.Gzip=m,T.Gunzip=y,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 m(t)},T.createGunzip=function(t){return new y(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 m(e),t,r)},T.gzipSync=function(t,e){return c(new m(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 y(e),t,r)},T.gunzipSync=function(t,e){return c(new y(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(S,a),S.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)},S.prototype.reset=function(){return g(this._handle,"zlib binding closed"),this._handle.reset()},S.prototype._flush=function(t){this._transform(b.alloc(0),"",t)},S.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(b.alloc(0),"",e))},S.prototype.close=function(t){I(this,t),i.nextTick(j,this)},S.prototype._transform=function(t,e,r){var n,i=this._writableState,o=(i.ending||i.ended)&&(!t||i.length===t.length);return null===t||b.isBuffer(t)?this._handle?(o?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"))},S.prototype._processChunk=function(o,a,s){var f=o&&o.length,u=this._chunkSize-this._offset,l=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(a,o,l,f,this._buffer,this._offset,u)}while(!this._hadError&&m(t[0],t[1]));if(this._hadError)throw e;if(_<=p)throw I(this),new RangeError(v);var r=b.concat(d,p);return I(this),r}g(this._handle,"zlib binding closed");var n=this._handle.write(a,o,l,f,this._buffer,this._offset,u);function m(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=b.allocUnsafe(h._chunkSize)),0===e){if(l+=f-t,f=t,!c)return!0;var i=h._handle.write(a,o,l,f,h._buffer,h._offset,h._chunkSize);return i.callback=m,void(i.buffer=o)}if(!c)return!1;s()}}n.buffer=o,n.callback=m},t.inherits(d,S),t.inherits(p,S),t.inherits(m,S),t.inherits(y,S),t.inherits(w,S),t.inherits(x,S),t.inherits(E,S)}).call(this,A("_process"))},{"./binding":12,_process:226,assert:3,buffer:16,stream:245,util:261}],14:[function(t,e,r){arguments[4][11][0].apply(r,arguments)},{dup:11}],15:[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;case"base64":return L(t).length;default:if(i)return n?-1:M(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(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 o,a=1,s=t.length,f=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/=a=2,f/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=r;o>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(t){var e=t.length;if(e<=w)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 k(this,e,r);case"utf8":case"utf-8":return y(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return E(this,e,r);case"base64":return v(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(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=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),""},h.prototype.compare=function(t,e,r,n,i){if(B(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 o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),f=this.slice(n,i),u=t.slice(e,r),l=0;l>>=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 o,a,s,f,u,l,h,c,d,p=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return c=e,d=r,R(M(t,(h=this).length-c),h,c,d);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return f=this,u=e,l=r,R(L(t),f,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=e,s=r,R(function(t,e){for(var r,n,i,o=[],a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,(o=this).length-a),o,a,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 w=4096;function x(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,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,8),o.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||I(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||I(t,e,this.length);for(var n=this[t+--e],i=1;0>>=0,e||I(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||I(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||I(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||I(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||I(t,e,this.length);for(var n=e,i=1,o=this[t+--n];0>>=0,e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||I(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||I(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||I(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||I(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||I(t,4,this.length),o.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||I(t,4,this.length),o.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||I(t,8,this.length),o.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||I(t,8,this.length),o.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||j(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,n)||j(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;0<=--i&&(o*=256);)this[e+i]=t/o&255;return e+r},h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||j(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||j(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||j(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||j(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||j(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);j(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>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);j(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;0<=--o&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||j(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||j(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||j(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||j(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||j(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 T(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return T(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return P(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,t||(t=0),"number"==typeof t)for(o=e;o>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.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;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function L(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function R(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function D(t){return t!=t}},{"base64-js":7,ieee754:165}],17:[function(t,e,r){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],18:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],19:[function(t,e,r){var n=t("./_wks")("unscopables"),i=Array.prototype;null==i[n]&&t("./_hide")(i,n,{}),e.exports=function(t){i[n][t]=!0}},{"./_hide":47,"./_wks":112}],20:[function(t,e,r){e.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},{}],21:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":55}],22:[function(t,e,r){"use strict";var u=t("./_to-object"),l=t("./_to-absolute-index"),h=t("./_to-length");e.exports=[].copyWithin||function(t,e){var r=u(this),n=h(r.length),i=l(t,n),o=l(e,n),a=2a;)o.call(t,n=i[a++])&&e.push(n);return e}},{"./_object-gops":74,"./_object-keys":77,"./_object-pie":78}],39:[function(t,e,r){var m=t("./_global"),b=t("./_core"),g=t("./_hide"),_=t("./_redefine"),v=t("./_ctx"),y="prototype",w=function(t,e,r){var n,i,o,a,s=t&w.F,f=t&w.G,u=t&w.S,l=t&w.P,h=t&w.B,c=f?m:u?m[e]||(m[e]={}):(m[e]||{})[y],d=f?b:b[e]||(b[e]={}),p=d[y]||(d[y]={});for(n in f&&(r=e),r)o=((i=!s&&c&&void 0!==c[n])?c:r)[n],a=h&&i?v(o,m):l&&"function"==typeof o?v(Function.call,o):o,c&&_(c,n,o,t&w.U),d[n]!=o&&g(d,n,a),l&&p[n]!=o&&(p[n]=o)};m.core=b,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},{"./_core":31,"./_ctx":33,"./_global":45,"./_hide":47,"./_redefine":85}],40:[function(t,e,r){var n=t("./_wks")("match");e.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,!"/./"[e](r)}catch(t){}}return!0}},{"./_wks":112}],41:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],42:[function(t,e,r){"use strict";var s=t("./_hide"),f=t("./_redefine"),u=t("./_fails"),l=t("./_defined"),h=t("./_wks");e.exports=function(e,t,r){var n=h(e),i=r(l,n,""[e]),o=i[0],a=i[1];u(function(){var t={};return t[n]=function(){return 7},7!=""[e](t)})&&(f(String.prototype,e,o),s(RegExp.prototype,n,2==t?function(t,e){return a.call(t,this,e)}:function(t){return a.call(t,this)}))}},{"./_defined":34,"./_fails":41,"./_hide":47,"./_redefine":85,"./_wks":112}],43:[function(t,e,r){"use strict";var n=t("./_an-object");e.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./_an-object":21}],44:[function(t,e,r){var c=t("./_ctx"),d=t("./_iter-call"),p=t("./_is-array-iter"),m=t("./_an-object"),b=t("./_to-length"),g=t("./core.get-iterator-method"),_={},v={};(r=e.exports=function(t,e,r,n,i){var o,a,s,f,u=i?function(){return t}:g(t),l=c(r,n,e?2:1),h=0;if("function"!=typeof u)throw TypeError(t+" is not iterable!");if(p(u)){for(o=b(t.length);hdocument.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l[u][a[r]];return l()};t.exports=Object.create||function(t,e){var r;return null!==t?(f[u]=i(t),r=new f,f[u]=null,r[s]=t):r=l(),void 0===e?r:o(r,e)}},{"./_an-object":21,"./_dom-create":36,"./_enum-bug-keys":37,"./_html":48,"./_object-dps":70,"./_shared-key":89}],69:[function(t,e,r){var n=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),a=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":21,"./_descriptors":35,"./_ie8-dom-define":49,"./_to-primitive":104}],70:[function(t,e,r){var a=t("./_object-dp"),s=t("./_an-object"),f=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){s(t);for(var r,n=f(e),i=n.length,o=0;oi;)a(n,r=e[i++])&&(~f(o,r)||o.push(r));return o}},{"./_array-includes":24,"./_has":46,"./_shared-key":89,"./_to-iobject":101}],77:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"./_enum-bug-keys":37,"./_object-keys-internal":76}],78:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],79:[function(t,e,r){var i=t("./_export"),o=t("./_core"),a=t("./_fails");e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),i(i.S+i.F*a(function(){r(1)}),"Object",n)}},{"./_core":31,"./_export":39,"./_fails":41}],80:[function(t,e,r){var f=t("./_object-keys"),u=t("./_to-iobject"),l=t("./_object-pie").f;e.exports=function(s){return function(t){for(var e,r=u(t),n=f(r),i=n.length,o=0,a=[];or;)e.push(arguments[r++]);return g[++b]=function(){s("function"==typeof t?t:Function(t),e)},n(b),b},d=function(t){delete g[t]},"process"==t("./_cof")(h)?n=function(t){h.nextTick(a(v,t,1))}:m&&m.now?n=function(t){m.now(a(v,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=y,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",y,!1)):n=_ in u("script")?function(t){f.appendChild(u("script"))[_]=function(){f.removeChild(this),v.call(t)}}:function(t){setTimeout(a(v,t,1),0)}),e.exports={set:c,clear:d}},{"./_cof":30,"./_ctx":33,"./_dom-create":36,"./_global":45,"./_html":48,"./_invoke":51}],98:[function(t,e,r){var n=t("./_to-integer"),i=Math.max,o=Math.min;e.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},{"./_to-integer":100}],99:[function(t,e,r){var n=t("./_to-integer"),i=t("./_to-length");e.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":100,"./_to-length":102}],100:[function(t,e,r){var n=Math.ceil,i=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(0>1,l=23===e?T(2,-24)-T(2,-77):0,h=0,c=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===I?(i=t!=t?1:0,n=f):(n=P(O(t)/C),t*(o=T(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+u?l/o:l*T(2,1-u))*o&&(n++,o/=2),f<=n+u?(i=0,n=f):1<=n+u?(i=(t*o-1)*T(2,e),n+=u):(i=t*T(2,u-1)*T(2,e),n=0));8<=e;a[h++]=255&i,i/=256,e-=8);for(n=n<>1,s=i-7,f=r-1,u=t[f--],l=127&u;for(u>>=7;0>=-s,s+=e;0>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return N(t,52,8)}function W(t){return N(t,23,4)}function Z(t,e,r){m(t[y],e,{get:function(){return this[r]}})}function Y(t,e,r,n){var i=d(+r);if(i+e>t[B])throw S(w);var o=t[R]._b,a=i+t[D],s=o.slice(a,a+e);return n?s:s.reverse()}function X(t,e,r,n,i,o){var a=d(+r);if(a+e>t[B])throw S(w);for(var s=t[R]._b,f=a+t[D],u=n(+i),l=0;lQ;)(V=K[Q++])in x||s(x,V,j[V]);o||(J.constructor=x)}var $=new E(new x(2)),tt=E[y].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||f(E[y],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else x=function(t){l(this,x,_);var e=d(t);this._b=b.call(new Array(e),0),this[B]=e},E=function(t,e,r){l(this,E,v),l(t,x,v);var n=t[B],i=h(e);if(i<0||n>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t){var e=Y(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Y(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return F(Y(this,4,t,arguments[1]))},getUint32:function(t){return F(Y(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return U(Y(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return U(Y(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){X(this,1,t,z,e)},setUint8:function(t,e){X(this,1,t,z,e)},setInt16:function(t,e){X(this,2,t,H,e,arguments[2])},setUint16:function(t,e){X(this,2,t,H,e,arguments[2])},setInt32:function(t,e){X(this,4,t,G,e,arguments[2])},setUint32:function(t,e){X(this,4,t,G,e,arguments[2])},setFloat32:function(t,e){X(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){X(this,8,t,q,e,arguments[2])}});g(x,_),g(E,v),s(E[y],a.VIEW,!0),r[_]=x,r[v]=E},{"./_an-instance":20,"./_array-fill":23,"./_descriptors":35,"./_fails":41,"./_global":45,"./_hide":47,"./_library":63,"./_object-dp":69,"./_object-gopn":73,"./_redefine-all":84,"./_set-to-string-tag":88,"./_to-index":99,"./_to-integer":100,"./_to-length":102,"./_typed":107}],107:[function(t,e,r){for(var n,i=t("./_global"),o=t("./_hide"),a=t("./_uid"),s=a("typed_array"),f=a("view"),u=!(!i.ArrayBuffer||!i.DataView),l=u,h=0,c="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=i[c[h++]])?(o(n.prototype,s,!0),o(n.prototype,f,!0)):l=!1;e.exports={ABV:u,CONSTR:l,TYPED:s,VIEW:f}},{"./_global":45,"./_hide":47,"./_uid":108}],108:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],109:[function(t,e,r){var n=t("./_global").navigator;e.exports=n&&n.userAgent||""},{"./_global":45}],110:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_library"),a=t("./_wks-ext"),s=t("./_object-dp").f;e.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},{"./_core":31,"./_global":45,"./_library":63,"./_object-dp":69,"./_wks-ext":111}],111:[function(t,e,r){r.f=t("./_wks")},{"./_wks":112}],112:[function(t,e,r){var n=t("./_shared")("wks"),i=t("./_uid"),o=t("./_global").Symbol,a="function"==typeof o;(e.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},{"./_global":45,"./_shared":90,"./_uid":108}],113:[function(t,e,r){var n=t("./_classof"),i=t("./_wks")("iterator"),o=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},{"./_classof":29,"./_core":31,"./_iterators":62,"./_wks":112}],114:[function(t,e,r){var n=t("./_export");n(n.P,"Array",{fill:t("./_array-fill")}),t("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":19,"./_array-fill":23,"./_export":39}],115:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(2);n(n.P+n.F*!t("./_strict-method")([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},{"./_array-methods":25,"./_export":39,"./_strict-method":92}],116:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(t){return i(this,t,1=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":19,"./_iter-define":59,"./_iter-step":61,"./_iterators":62,"./_to-iobject":101}],123:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(1);n(n.P+n.F*!t("./_strict-method")([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},{"./_array-methods":25,"./_export":39,"./_strict-method":92}],124:[function(t,e,r){var n=Date.prototype,i="Invalid Date",o="toString",a=n[o],s=n.getTime;new Date(NaN)+""!=i&&t("./_redefine")(n,o,function(){var t=s.call(this);return t==t?a.call(this):i})},{"./_redefine":85}],125:[function(t,e,r){var n=t("./_export");n(n.P,"Function",{bind:t("./_bind")})},{"./_bind":28,"./_export":39}],126:[function(t,e,r){"use strict";var n=t("./_global"),i=t("./_has"),o=t("./_cof"),a=t("./_inherit-if-required"),l=t("./_to-primitive"),s=t("./_fails"),f=t("./_object-gopn").f,u=t("./_object-gopd").f,h=t("./_object-dp").f,c=t("./_string-trim").trim,d="Number",p=n[d],m=p,b=p.prototype,g=o(t("./_object-create")(b))==d,_="trim"in String.prototype,v=function(t){var e=l(t,!1);if("string"==typeof e&&2x;x++)i(m,y=w[x])&&!i(p,y)&&h(p,y,u(m,y));(p.prototype=b).constructor=p,t("./_redefine")(n,d,p)}},{"./_cof":30,"./_descriptors":35,"./_fails":41,"./_global":45,"./_has":46,"./_inherit-if-required":50,"./_object-create":68,"./_object-dp":69,"./_object-gopd":71,"./_object-gopn":73,"./_redefine":85,"./_string-trim":95,"./_to-primitive":104}],127:[function(t,e,r){var n=t("./_export");n(n.S+n.F,"Object",{assign:t("./_object-assign")})},{"./_export":39,"./_object-assign":67}],128:[function(t,e,r){var n=t("./_export");n(n.S,"Object",{create:t("./_object-create")})},{"./_export":39,"./_object-create":68}],129:[function(t,e,r){var n=t("./_export");n(n.S+n.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":35,"./_export":39,"./_object-dp":69}],130:[function(t,e,r){var n=t("./_to-object"),i=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return i(n(t))}})},{"./_object-keys":77,"./_object-sap":79,"./_to-object":103}],131:[function(t,e,r){var n=t("./_export");n(n.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":39,"./_set-proto":86}],132:[function(r,t,e){"use strict";var n,i,o,a,s=r("./_library"),f=r("./_global"),u=r("./_ctx"),l=r("./_classof"),h=r("./_export"),c=r("./_is-object"),d=r("./_a-function"),p=r("./_an-instance"),m=r("./_for-of"),b=r("./_species-constructor"),g=r("./_task").set,_=r("./_microtask")(),v=r("./_new-promise-capability"),y=r("./_perform"),w=r("./_user-agent"),x=r("./_promise-resolve"),E="Promise",k=f.TypeError,S=f.process,I=S&&S.versions,j=I&&I.v8||"",A=f[E],T="process"==l(S),P=function(){},O=i=v.f,C=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[r("./_wks")("species")]=function(t){t(P,P)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==j.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),M=function(t){var e;return!(!c(t)||"function"!=typeof(e=t.then))&&e},L=function(l,r){if(!l._n){l._n=!0;var n=l._c;_(function(){for(var f=l._v,u=1==l._s,t=0,e=function(t){var e,r,n,i=u?t.ok:t.fail,o=t.resolve,a=t.reject,s=t.domain;try{i?(u||(2==l._h&&D(l),l._h=1),!0===i?e=f:(s&&s.enter(),e=i(f),s&&(s.exit(),n=!0)),e===t.promise?a(k("Promise-chain cycle")):(r=M(e))?r.call(e,o,a):o(e)):a(f)}catch(t){s&&!n&&s.exit(),a(t)}};n.length>t;)e(n[t++]);l._c=[],l._n=!1,r&&!l._h&&R(l)})}},R=function(o){g.call(f,function(){var t,e,r,n=o._v,i=B(o);if(i&&(t=y(function(){T?S.emit("unhandledRejection",n,o):(e=f.onunhandledrejection)?e({promise:o,reason:n}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",n)}),o._h=T||B(o)?2:1),o._a=void 0,i&&t.e)throw t.v})},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(e){g.call(f,function(){var t;T?S.emit("rejectionHandled",e):(t=f.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},U=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw k("Promise can't be resolved itself");(r=M(t))?_(function(){var e={_w:n,_d:!1};try{r.call(t,u(U,e,1),u(N,e,1))}catch(t){N.call(e,t)}}):(n._v=t,n._s=1,L(n,!1))}catch(t){N.call({_w:n,_d:!1},t)}}};C||(A=function(t){p(this,A,E,"_h"),d(t),n.call(this);try{t(u(U,this,1),u(N,this,1))}catch(t){N.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("./_redefine-all")(A.prototype,{then:function(t,e){var r=O(b(this,A));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=T?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&L(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=u(U,t,1),this.reject=u(N,t,1)},v.f=O=function(t){return t===A||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!C,{Promise:A}),r("./_set-to-string-tag")(A,E),r("./_set-species")(E),a=r("./_core")[E],h(h.S+h.F*!C,E,{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!C),E,{resolve:function(t){return x(s&&this===a?A:this,t)}}),h(h.S+h.F*!(C&&r("./_iter-detect")(function(t){A.all(t).catch(P)})),E,{all:function(t){var a=this,e=O(a),s=e.resolve,f=e.reject,r=y(function(){var n=[],i=0,o=1;m(t,!1,function(t){var e=i++,r=!1;n.push(void 0),o++,a.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},f)}),--o||s(n)});return r.e&&f(r.v),e.promise},race:function(t){var e=this,r=O(e),n=r.reject,i=y(function(){m(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},{"./_a-function":18,"./_an-instance":20,"./_classof":29,"./_core":31,"./_ctx":33,"./_export":39,"./_for-of":44,"./_global":45,"./_is-object":55,"./_iter-detect":60,"./_library":63,"./_microtask":65,"./_new-promise-capability":66,"./_perform":81,"./_promise-resolve":82,"./_redefine-all":84,"./_set-species":87,"./_set-to-string-tag":88,"./_species-constructor":91,"./_task":97,"./_user-agent":109,"./_wks":112}],133:[function(t,e,r){var n=t("./_export"),s=t("./_object-create"),f=t("./_a-function"),u=t("./_an-object"),l=t("./_is-object"),i=t("./_fails"),h=t("./_bind"),c=(t("./_global").Reflect||{}).construct,d=i(function(){function t(){}return!(c(function(){},[],t)instanceof t)}),p=!i(function(){c(function(){})});n(n.S+n.F*(d||p),"Reflect",{construct:function(t,e){f(t),u(e);var r=arguments.length<3?t:f(arguments[2]);if(p&&!d)return c(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(h.apply(t,n))}var i=r.prototype,o=s(l(i)?i:Object.prototype),a=Function.apply.call(t,o,e);return l(a)?a:o}})},{"./_a-function":18,"./_an-object":21,"./_bind":28,"./_export":39,"./_fails":41,"./_global":45,"./_is-object":55,"./_object-create":68}],134:[function(t,e,r){t("./_descriptors")&&"g"!=/./g.flags&&t("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:t("./_flags")})},{"./_descriptors":35,"./_flags":43,"./_object-dp":69}],135:[function(t,e,r){t("./_fix-re-wks")("match",1,function(n,i,t){return[function(t){"use strict";var e=n(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e):new RegExp(t)[i](String(e))},t]})},{"./_fix-re-wks":42}],136:[function(t,e,r){t("./_fix-re-wks")("replace",2,function(i,o,a){return[function(t,e){"use strict";var r=i(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):a.call(String(r),t,e)},a]})},{"./_fix-re-wks":42}],137:[function(e,t,r){e("./_fix-re-wks")("split",2,function(i,o,a){"use strict";var d=e("./_is-regexp"),p=a,m=[].push,t="split",b="length",g="lastIndex";if("c"=="abbc"[t](/(b)*/)[1]||4!="test"[t](/(?:)/,-1)[b]||2!="ab"[t](/(?:ab)*/)[b]||4!="."[t](/(.?)(.?)/)[b]||1<"."[t](/()()/)[b]||""[t](/.?/)[b]){var _=void 0===/()??/.exec("")[1];a=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!d(t))return p.call(r,t,e);var n,i,o,a,s,f=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===e?4294967295:e>>>0,c=new RegExp(t.source,u+"g");for(_||(n=new RegExp("^"+c.source+"$(?!\\s)",u));(i=c.exec(r))&&!(l<(o=i.index+i[0][b])&&(f.push(r.slice(l,i.index)),!_&&1=h));)c[g]===i.index&&c[g]++;return l===r[b]?!a&&c.test("")||f.push(""):f.push(r.slice(l)),f[b]>h?f.slice(0,h):f}}else"0"[t](void 0,0)[b]&&(a=function(t,e){return void 0===t&&0===e?[]:p.call(this,t,e)});return[function(t,e){var r=i(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):a.call(String(r),t,e)},a]})},{"./_fix-re-wks":42,"./_is-regexp":56}],138:[function(e,t,r){"use strict";e("./es6.regexp.flags");var n=e("./_an-object"),i=e("./_flags"),o=e("./_descriptors"),a="toString",s=/./[a],f=function(t){e("./_redefine")(RegExp.prototype,a,t,!0)};e("./_fails")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?f(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):s.name!=a&&f(function(){return s.call(this)})},{"./_an-object":21,"./_descriptors":35,"./_fails":41,"./_flags":43,"./_redefine":85,"./es6.regexp.flags":134}],139:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_string-context"),o="includes";n(n.P+n.F*t("./_fails-is-regexp")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,1=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":59,"./_string-at":93}],141:[function(t,e,r){"use strict";var n=t("./_global"),a=t("./_has"),i=t("./_descriptors"),o=t("./_export"),s=t("./_redefine"),f=t("./_meta").KEY,u=t("./_fails"),l=t("./_shared"),h=t("./_set-to-string-tag"),c=t("./_uid"),d=t("./_wks"),p=t("./_wks-ext"),m=t("./_wks-define"),b=t("./_enum-keys"),g=t("./_is-array"),_=t("./_an-object"),v=t("./_is-object"),y=t("./_to-iobject"),w=t("./_to-primitive"),x=t("./_property-desc"),E=t("./_object-create"),k=t("./_object-gopn-ext"),S=t("./_object-gopd"),I=t("./_object-dp"),j=t("./_object-keys"),A=S.f,T=I.f,P=k.f,O=n.Symbol,C=n.JSON,M=C&&C.stringify,L="prototype",R=d("_hidden"),B=d("toPrimitive"),D={}.propertyIsEnumerable,N=l("symbol-registry"),U=l("symbols"),F=l("op-symbols"),z=Object[L],H="function"==typeof O,G=n.QObject,q=!G||!G[L]||!G[L].findChild,W=i&&u(function(){return 7!=E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=A(z,e);n&&delete z[e],T(t,e,r),n&&t!==z&&T(z,e,n)}:T,Z=function(t){var e=U[t]=E(O[L]);return e._k=t,e},Y=H&&"symbol"==typeof O.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof O},X=function(t,e,r){return t===z&&X(F,e,r),_(t),e=w(e,!0),_(r),a(U,e)?(r.enumerable?(a(t,R)&&t[R][e]&&(t[R][e]=!1),r=E(r,{enumerable:x(0,!1)})):(a(t,R)||T(t,R,x(1,{})),t[R][e]=!0),W(t,e,r)):T(t,e,r)},V=function(t,e){_(t);for(var r,n=b(e=y(e)),i=0,o=n.length;ii;)a(U,e=r[i++])||e==R||e==f||n.push(e);return n},$=function(t){for(var e,r=t===z,n=P(r?F:y(t)),i=[],o=0;n.length>o;)!a(U,e=n[o++])||r&&!a(z,e)||i.push(U[e]);return i};H||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=c(0et;)d(tt[et++]);for(var rt=j(d.store),nt=0;rt.length>nt;)m(rt[nt++]);o(o.S+o.F*!H,"Symbol",{for:function(t){return a(N,t+="")?N[t]:N[t]=O(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),o(o.S+o.F*!H,"Object",{create:function(t,e){return void 0===e?E(t):V(E(t),e)},defineProperty:X,defineProperties:V,getOwnPropertyDescriptor:K,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),C&&o(o.S+o.F*(!H||u(function(){var t=O();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(v(e)||void 0!==t)&&!Y(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Y(e))return e}),n[1]=e,M.apply(C,n)}}),O[L][B]||t("./_hide")(O[L],B,O[L].valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},{"./_an-object":21,"./_descriptors":35,"./_enum-keys":38,"./_export":39,"./_fails":41,"./_global":45,"./_has":46,"./_hide":47,"./_is-array":54,"./_is-object":55,"./_library":63,"./_meta":64,"./_object-create":68,"./_object-dp":69,"./_object-gopd":71,"./_object-gopn":73,"./_object-gopn-ext":72,"./_object-gops":74,"./_object-keys":77,"./_object-pie":78,"./_property-desc":83,"./_redefine":85,"./_set-to-string-tag":88,"./_shared":90,"./_to-iobject":101,"./_to-primitive":104,"./_uid":108,"./_wks":112,"./_wks-define":110,"./_wks-ext":111}],142:[function(t,e,r){t("./_typed-array")("Float32",4,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"./_typed-array":105}],143:[function(t,e,r){t("./_typed-array")("Float64",8,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"./_typed-array":105}],144:[function(t,e,r){t("./_typed-array")("Uint8",1,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"./_typed-array":105}],145:[function(t,e,r){t("./_typed-array")("Uint8",1,function(n){return function(t,e,r){return n(this,t,e,r)}},!0)},{"./_typed-array":105}],146:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-includes")(!0);n(n.P,"Array",{includes:function(t){return i(this,t,1i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=o[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,l=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,o=d&(1<<-l)-1,d>>=-l,l+=s;0>=-l,l+=n;0>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-a))<1&&(a--,f*=2),2<=(e+=1<=a+h?c/f:c*Math.pow(2,1-h))*f&&(a++,f/=2),l<=a+h?(s=0,a=l):1<=a+h?(s=(e*f-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));8<=i;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<>--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 m(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 b(t){for(var e=0;0>4;if(0!==o)e[Z[r+=a]]=g(o)*(1<>4,0===f)i<15?(_=b(i)+(1<>4;if(0!==a)e[Z[i+=s]]=g(a),i++;else{if(s<15)break;i+=16}}};var A,T,P,O,C,M,L,R,B,D,N,U,F,z,H,G,q,W=0;for(T=1==j?n[0].blocksPerLine*n[0].blocksPerColumn:a*t.mcusPerColumn,i||(i=T);W>8,i=S*p[4+m]+128>>8,o=p[2+m],a=p[6+m],s=I*(p[1+m]-p[7+m])+128>>8,l=I*(p[1+m]+p[7+m])+128>>8,f=p[3+m]<<4,u=p[5+m]<<4,h=n-i+1>>1,n=n+i+1>>1,i=h,h=o*k+a*E+128>>8,o=o*E-a*k+128>>8,a=h,h=s-u+1>>1,s=s+u+1>>1,u=h,h=l+f+1>>1,f=l-f+1>>1,l=h,h=n-a+1>>1,n=n+a+1>>1,a=h,h=i-o+1>>1,i=i+o+1>>1,o=h,h=s*x+l*w+2048>>12,s=s*w-l*x+2048>>12,l=h,h=f*y+u*v+2048>>12,f=f*v-u*y+2048>>12,u=h,p[0+m]=n+l,p[7+m]=n-l,p[1+m]=i+u,p[6+m]=i-u,p[2+m]=o+f,p[5+m]=o-f,p[3+m]=a+s,p[4+m]=a-s):(h=S*p[0+m]+512>>10,p[0+m]=h,p[1+m]=h,p[2+m]=h,p[3+m]=h,p[4+m]=h,p[5+m]=h,p[6+m]=h,p[7+m]=h)}for(c=0;c<8;++c){var b=c;0!=p[8+b]||0!=p[16+b]||0!=p[24+b]||0!=p[32+b]||0!=p[40+b]||0!=p[48+b]||0!=p[56+b]?(n=S*p[0+b]+2048>>12,i=S*p[32+b]+2048>>12,o=p[16+b],a=p[48+b],s=I*(p[8+b]-p[56+b])+2048>>12,l=I*(p[8+b]+p[56+b])+2048>>12,f=p[24+b],u=p[40+b],h=n-i+1>>1,n=n+i+1>>1,i=h,h=o*k+a*E+2048>>12,o=o*E-a*k+2048>>12,a=h,h=s-u+1>>1,s=s+u+1>>1,u=h,h=l+f+1>>1,f=l-f+1>>1,l=h,h=n-a+1>>1,n=n+a+1>>1,a=h,h=i-o+1>>1,i=i+o+1>>1,o=h,h=s*x+l*w+2048>>12,s=s*w-l*x+2048>>12,l=h,h=f*y+u*v+2048>>12,f=f*v-u*y+2048>>12,u=h,p[0+b]=n+l,p[56+b]=n-l,p[8+b]=i+u,p[48+b]=i-u,p[16+b]=o+f,p[40+b]=o-f,p[24+b]=a+s,p[32+b]=a-s):(h=S*r[c+0]+8192>>14,p[0+b]=h,p[8+b]=h,p[16+b]=h,p[24+b]=h,p[32+b]=h,p[40+b]=h,p[48+b]=h,p[56+b]=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++){_[Z[N]]=e[r++]}else{if(g>>4!=1)throw new Error("DQT: invalid table spec");for(N=0;N<64;N++){_[Z[N]]=t()}}l[15&g]=_}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,y=e[r++];for(B=0;B>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&S]=F(I,A)}break;case 65501:t(),o=t();break;case 65498:t();var T=e[r++],P=[];for(B=0;B>4],U.huffmanTableAC=c[15&O],P.push(U)}var C=e[r++],M=e[r++],L=e[r++],R=z(e,r,i,P,o,C,M,L>>4,15&L);r+=R;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),Z(255&t)}function X(t,e,r,n,i){for(var o,a=i[0],s=i[240],f=function(t,e){var r,n,i,o,a,s,f,u,l,h,c=0;for(l=0;l<8;++l){r=t[c],n=t[c+1],i=t[c+2],o=t[c+3],a=t[c+4],s=t[c+5],f=t[c+6];var d=r+(u=t[c+7]),p=r-u,m=n+f,b=n-f,g=i+s,_=i-s,v=o+a,y=o-a,w=d+v,x=d-v,E=m+g,k=m-g;t[c]=w+E,t[c+4]=w-E;var S=.707106781*(k+x);t[c+2]=x+S,t[c+6]=x-S;var I=.382683433*((w=y+_)-(k=b+p)),j=.5411961*w+I,A=1.306562965*k+I,T=.707106781*(E=_+b),P=p+T,O=p-T;t[c+5]=O+j,t[c+3]=O-j,t[c+1]=P+A,t[c+7]=P-A,c+=8}for(l=c=0;l<8;++l){r=t[c],n=t[c+8],i=t[c+16],o=t[c+24],a=t[c+32],s=t[c+40],f=t[c+48];var C=r+(u=t[c+56]),M=r-u,L=n+f,R=n-f,B=i+s,D=i-s,N=o+a,U=o-a,F=C+N,z=C-N,H=L+B,G=L-B;t[c]=F+H,t[c+32]=F-H;var q=.707106781*(G+z);t[c+16]=z+q,t[c+48]=z-q;var W=.382683433*((F=U+D)-(G=R+M)),Z=.5411961*F+W,Y=1.306562965*G+W,X=.707106781*(H=D+R),V=M+X,J=M-X;t[c+40]=J+Z,t[c+24]=J-Z,t[c+8]=V+Y,t[c+56]=V-Y,c++}for(l=0;l<64;++l)h=t[l]*e[l],K[l]=0>4;for(var b=1;b<=c;++b)W(s);m&=15}o=32767+v[d],W(i[(m<<4)+_[o]]),W(g[o]),d++}return 63!=h&&W(a),r}function V(t){if(t<=0&&(t=1),100>3)*v+(d=4*(7&m)),_<=y+p&&(c-=v*(y+1+p-_)),v<=s+d&&(c-=s+d-v+4),f=b[c++],u=b[c++],l=b[c++],M[m]=(B[f]+B[u+256>>0]+B[l+512>>0]>>16)-128,L[m]=(B[f+768>>0]+B[u+1024>>0]+B[l+1280>>0]>>16)-128,R[m]=(B[f+1280>>0]+B[u+1536>>0]+B[l+1792>>0]>>16)-128;i=X(M,A,i,x,k),o=X(L,T,o,E,S),a=X(R,T,a,E,S),s+=32}y+=8}if(0<=C){var w=[];w[1]=C+1,w[0]=(1<>0]=38470*t,B[t+512>>0]=7471*t+32768,B[t+768>>0]=-11059*t,B[t+1024>>0]=-21709*t,B[t+1280>>0]=32768*t+8421375,B[t+1536>>0]=-27439*t,B[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:16}],174:[function(t,e,r){var n,i=function(){function t(){this._src=null,this._parser=new n.JpegImage,this.onload=null}return t.prototype={get src(){return this._src},set src(t){this.load(t)},get width(){return this._parser.width},get height(){return this._parser.height},load:function(t){!function(t,e){if(0!==t.indexOf("data:")){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){e(r.response)},r.send(null)}else{for(var n=t.indexOf("base64,")+7,i=atob(t.substring(n)),o=new Uint8Array(i.length),a=i.length-1;0<=a;a--)o[a]=i.charCodeAt(a);e(o.buffer)}}(this._src=t,function(t){this.parse(new Uint8Array(t)),this.onload&&this.onload()}.bind(this))},parse:function(t){this._parser.parse(t)},getData:function(t,e){return this._parser.getData(t,e,!1)},copyToImageData:function(t){if(2===this._parser.numComponents||4>--d&1;if(255===(c=e[r++])){var t=e[r++];if(t)throw"unexpected marker: "+(c<<8|t).toString(16)}return c>>>(d=7)}function m(t){for(var e=t;;){if("number"==typeof(e=e[p()]))return e;if("object"!=typeof e)throw"invalid huffman sequence"}}function b(t){for(var e=0;0>4;if(0!==o){var s=H[r+=a];t.blockData[e+s]=g(o)*(1<>4,0==(r=15&n))a<15?(_=b(a)+(1<>4;if(0!==a){var f=H[i+=s];t.blockData[e+f]=g(a),i++}else{if(s<15)break;i+=16}}};var A,T,P,O,C,M,L,R,B,D,N,U=0;for(T=1===j?n[0].blocksPerLine*n[0].blocksPerColumn:a*t.mcusPerColumn,i||(i=T);U>8)+(i=P*m+128>>8)+1>>1)-i,v=(o=d)*T+(a=g)*A+128>>8,o=o*A-a*T+128>>8,u=(s=(s=O*(c-_)+128>>8)+(u=b<<4)+1>>1)-u,f=(l=(l=O*(c+_)+128>>8)+(f=p<<4)+1>>1)-f,a=(n=n+(a=v)+1>>1)-a,o=(i=i+o+1>>1)-o,v=s*j+l*I+2048>>12,s=s*I-l*j+2048>>12,l=v,v=f*S+u*k+2048>>12,f=f*k-u*S+2048>>12,u=v,r[x]=n+l,r[x+7]=n-l,r[x+1]=i+u,r[x+6]=i-u,r[x+2]=o+f,r[x+5]=o-f,r[x+3]=a+s,r[x+4]=a-s):(v=P*h+512>>10,r[x]=v,r[x+1]=v,r[x+2]=v,r[x+3]=v,r[x+4]=v,r[x+5]=v,r[x+6]=v,r[x+7]=v);for(var E=0;E<8;++E)h=r[E],0!=((c=r[E+8])|(d=r[E+16])|(p=r[E+24])|(m=r[E+32])|(b=r[E+40])|(g=r[E+48])|(_=r[E+56]))?(i=(n=4112+((n=P*h+2048>>12)+(i=P*m+2048>>12)+1>>1))-i,v=(o=d)*T+(a=g)*A+2048>>12,o=o*A-a*T+2048>>12,a=v,u=(s=(s=O*(c-_)+2048>>12)+(u=b)+1>>1)-u,f=(l=(l=O*(c+_)+2048>>12)+(f=p)+1>>1)-f,v=s*j+l*I+2048>>12,s=s*I-l*j+2048>>12,l=v,v=f*S+u*k+2048>>12,f=f*k-u*S+2048>>12,h=(h=(n=n+a+1>>1)+l)<16?0:4080<=h?255:h>>4,c=(c=(i=i+o+1>>1)+(u=v))<16?0:4080<=c?255:c>>4,d=(d=(o=i-o)+f)<16?0:4080<=d?255:d>>4,p=(p=(a=n-a)+s)<16?0:4080<=p?255:p>>4,m=(m=a-s)<16?0:4080<=m?255:m>>4,b=(b=o-f)<16?0:4080<=b?255:b>>4,g=(g=i-u)<16?0:4080<=g?255:g>>4,_=(_=n-l)<16?0:4080<=_?255:_>>4,w[e+E]=h,w[e+E+8]=c,w[e+E+16]=d,w[e+E+24]=p,w[e+E+32]=m,w[e+E+40]=b,w[e+E+48]=g,w[e+E+56]=_):(v=(v=P*h+8192>>14)<-2040?0:2024<=v?255:v+2056>>4,w[e+E]=v,w[e+E+8]=v,w[e+E+16]=v,w[e+E+24]=v,w[e+E+32]=v,w[e+E+40]=v,w[e+E+48]=v,w[e+E+56]=v)}function W(t,e){for(var r=e.blocksPerLine,n=e.blocksPerColumn,i=new Int16Array(64),o=0;o>4==0)for(m=0;m<64;m++)y[H[m]]=e[s++];else{if(v>>4!=1)throw"DQT: invalid table spec";for(m=0;m<64;m++)y[H[m]]=t()}l[15&v]=y}break;case 65472:case 65473:case 65474:if(n)throw"Only single frame JPEGs supported";t(),(n={}).extended=65473===d,n.progressive=65474===d,n.precision=e[s++],n.scanLines=t(),n.samplesPerLine=t(),n.components=[],n.componentIds={};var w,x=e[s++],E=0,k=0;for(p=0;p>4,I=15&e[s+1];E>4==0?c:h)[15&T]=G(P,C)}break;case 65501:t(),i=t();break;case 65498:t();var M,L=e[s++],R=[];for(p=0;p>4],M.huffmanTableAC=h[15&D],R.push(M)}var N=e[s++],U=e[s++],F=e[s++],z=q(e,s,n,R,i,N,U,F>>4,15&F);s+=z;break;case 65535:255!==e[s]&&s--;break;default:if(255===e[s-3]&&192<=e[s-2]&&e[s-2]<=254){s-=3;break}throw"unknown JPEG marker "+d.toString(16)}d=t()}for(this.width=n.samplesPerLine,this.height=n.scanLines,this.jfif=f,this.adobe=u,this.components=[],p=0;p>8)+y[l+1];return _},_isColorConversionNeeded:function(){return!(!this.adobe||!this.adobe.transformCode)||3===this.numComponents},_convertYccToRgb:function(t){for(var e,r,n,i=0,o=t.length;i>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}return t.prototype={byteIn:function(){var t=this.data,e=this.bp;255===t[e]?143>16,this.clow&=65535)},readBit:function(t,e){var r,n=t[e]>>1,i=1&t[e],o=f[n],a=o.qe,s=this.a-a;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--,0==(32768&s););return this.a=s,t[e]=n<<1|i,r}},t}(),r=function(){var A={LL:0,LH:1,HL:1,HH:2};function t(){this.failOnCorruptedImage=!1}function T(t,e){t.x0=Math.ceil(e.XOsiz/t.XRsiz),t.x1=Math.ceil(e.Xsiz/t.XRsiz),t.y0=Math.ceil(e.YOsiz/t.YRsiz),t.y1=Math.ceil(e.Ysiz/t.YRsiz),t.width=t.x1-t.x0,t.height=t.y1-t.y0}function P(t,e){for(var r,n=t.SIZ,i=[],o=Math.ceil((n.Xsiz-n.XTOsiz)/n.XTsiz),a=Math.ceil((n.Ysiz-n.YTOsiz)/n.YTsiz),s=0;s>s,c=e.tby0>>f,d=e.tbx1+u-1>>s,p=e.tby1+l-1>>f,m=e.resolution.precinctParameters,b=[],g=[];for(i=c;i_.cbxMax&&(_.cbxMax=n),i<_.cbyMin?_.cbxMin=i:i>_.cbyMax&&(_.cbyMax=i)):g[a]=_={cbxMin:n,cbyMin:i,cbxMax:n,cbyMax:i},o.precinct=_}}e.codeblockParameters={codeblockWidth:s,codeblockHeight:f,numcodeblockwide:d-h+1,numcodeblockhigh:p-c+1},e.codeblocks=b,e.precincts=g}function b(t,e,r){for(var n=[],i=t.subbands,o=0,a=i.length;ot.codingStyleParameters.decompositionLevelsCount)){for(var e=t.resolutions[u],r=e.precinctParameters.numprecincts;ht.codingStyleParameters.decompositionLevelsCount)){for(var e=t.resolutions[f],r=e.precinctParameters.numprecincts;ht.codingStyleParameters.decompositionLevelsCount)){var e=t.resolutions[i];if(!(e.precinctParameters.numprecincts<=a)){for(;ne.trx0?Math.ceil(e.trx1/n)-Math.floor(e.trx0/n):0,u=e.try1>e.try0?Math.ceil(e.try1/i)-Math.floor(e.try0/i):0,l=f*u,e.precinctParameters={precinctWidth:n,precinctHeight:i,numprecinctswide:f,numprecinctshigh:u,numprecincts:l,precinctWidthInSubband:a,precinctHeightInSubband:s},w.push(I),0===E)(k={type:"LL"}).tbx0=Math.ceil(v.tcx0/j),k.tby0=Math.ceil(v.tcy0/j),k.tbx1=Math.ceil(v.tcx1/j),k.tby1=Math.ceil(v.tcy1/j),k.resolution=I,O(0,k,S),x.push(k),I.subbands=[k];else{var A=1<>>(a-=t)&(1<>24&255,o>>16&255,o>>8&255,255&o);K("Unsupported header type "+o+" ("+l+")")}s&&(e+=a)}else this.parseCodestream(t,0,t.length)},parseImageProperties:function(t){for(var e=t.getByte();0<=e;){if(65361===(e<<8|(e=t.getByte()))){t.skip(4);var r=t.getInt32()>>>0,n=t.getInt32()>>>0,i=t.getInt32()>>>0,o=t.getInt32()>>>0;t.skip(16);var a=t.getUint16();return this.width=r-i,this.height=n-o,this.componentsCount=a,void(this.bitsPerComponent=8)}}throw new Error("JPX Error: No size marker found in JPX stream")},parseCodestream:function(t,e,r){var n={};try{for(var i=!1,o=e;o+1>5,u=[];s>3,y.mu=0):(y.epsilon=t[s]>>3,y.mu=(7&t[s])<<8|t[s+1],s+=2),u.push(y)}v.SPqcds=u,n.mainHeader?n.QCD=v:(n.currentTile.QCD=v,n.currentTile.QCC=[]);break;case 65373:d=V(t,o);var w,x={};switch(s=o+2,n.SIZ.Csiz<257?w=t[s++]:(w=V(t,s),s+=2),31&(f=t[s++])){case 0:l=8,h=!0;break;case 1:h=!(l=16);break;case 2:l=16,h=!0;break;default:throw new Error("JPX Error: Invalid SQcd value "+f)}for(x.noQuantization=8===l,x.scalarExpounded=h,x.guardBits=f>>5,u=[];s>3,y.mu=0):(y.epsilon=t[s]>>3,y.mu=(7&t[s])<<8|t[s+1],s+=2),u.push(y);x.SPqcds=u,n.mainHeader?n.QCC[w]=x:n.currentTile.QCC[w]=x;break;case 65362:d=V(t,o);var E={};s=o+2;var k=t[s++];E.entropyCoderWithCustomPrecincts=!!(1&k),E.sopMarkerUsed=!!(2&k),E.ephMarkerUsed=!!(4&k),E.progressionOrder=t[s++],E.layersCount=V(t,s),s+=2,E.multipleComponentTransform=t[s++],E.decompositionLevelsCount=t[s++],E.xcb=2+(15&t[s++]),E.ycb=2+(15&t[s++]);var S=t[s++];if(E.selectiveArithmeticCodingBypass=!!(1&S),E.resetContextProbabilities=!!(2&S),E.terminationOnEachCodingPass=!!(4&S),E.verticalyStripe=!!(8&S),E.predictableTermination=!!(16&S),E.segmentationSymbolUsed=!!(32&S),E.reversibleTransformation=t[s++],E.entropyCoderWithCustomPrecincts){for(var I=[];s>4})}E.precinctsSizes=I}var A=[];if(E.selectiveArithmeticCodingBypass&&A.push("selectiveArithmeticCodingBypass"),E.resetContextProbabilities&&A.push("resetContextProbabilities"),E.terminationOnEachCodingPass&&A.push("terminationOnEachCodingPass"),E.verticalyStripe&&A.push("verticalyStripe"),E.predictableTermination&&A.push("predictableTermination"),0>2))+v,x=w+_,I[A++]=y<=0?0:c<=y?255:y>>l,I[A++]=w<=0?0:c<=w?255:w>>l,I[A++]=x<=0?0:c<=x?255:x>>l;else for(m=0;m>l,I[A++]=w<=0?0:c<=w?255:w>>l,I[A++]=x<=0?0:c<=x?255:x>>l;if(T)for(m=0,A=3;m>l}else for(s=0;s>l,A+=n}i.push(j)}return i}(n),this.width=n.SIZ.Xsiz-n.SIZ.XOsiz,this.height=n.SIZ.Ysiz-n.SIZ.YOsiz,this.componentsCount=n.SIZ.Csiz}};var H=function(){function t(t,e){var r=X(Math.max(t,e))+1;this.levels=[];for(var n=0;n>=1,e>>=1,n++}n--,(r=this.levels[n]).items[r.index]=i,this.currentLevel=n,delete this.value},incrementValue:function(){var t=this.levels[this.currentLevel];t.items[t.index]++},nextLevel:function(){var t=this.currentLevel,e=this.levels[t],r=e.items[e.index];return--t<0?(this.value=r,!1):(this.currentLevel=t,(e=this.levels[t]).items[e.index]=r,!0)}},t}(),G=function(){function t(t,e,r){var n=X(Math.max(t,e))+1;this.levels=[];for(var i=0;i>=1,e>>=1,n++}return this.currentLevel=n-1,!0},incrementValue:function(t){var e=this.levels[this.currentLevel];e.items[e.index]=t+1,this.propagateValues()},propagateValues:function(){for(var t=this.currentLevel,e=this.levels[t],r=e.items[e.index];0<=--t;)(e=this.levels[t]).items[e.index]=r},nextLevel:function(){var t=this.currentLevel,e=this.levels[t],r=e.items[e.index];return e.items[e.index]=255,!(--t<0)&&(this.currentLevel=t,(e=this.levels[t]).items[e.index]=r,!0)}},t}(),q=function(){var f=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),u=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),l=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);function t(t,e,r,n,i){this.width=t,this.height=e,this.contextLabelTable="HH"===r?l:"HL"===r?u:f;var o=t*e;this.neighborsSignificance=new Uint8Array(o),this.coefficentsSign=new Uint8Array(o),this.coefficentsMagnitude=14>1,f=-1.586134342059924,u=-.052980118572961,l=.882911075530934,h=.443506852043971,c=1.230174104914001;for(n=(e|=0)-3,i=s+4;i--;n+=2)t[n]*=.8128930661159609;for(o=h*t[(n=e-2)-1],i=s+3;i--&&(a=h*t[n+1],t[n]=c*t[n]-o-a,i--);n+=2)o=h*t[(n+=2)+1],t[n]=c*t[n]-o-a;for(o=l*t[(n=e-1)-1],i=s+2;i--&&(a=l*t[n+1],t[n]-=o+a,i--);n+=2)o=l*t[(n+=2)+1],t[n]-=o+a;for(o=u*t[(n=e)-1],i=s+1;i--&&(a=u*t[n+1],t[n]-=o+a,i--);n+=2)o=u*t[(n+=2)+1],t[n]-=o+a;if(0!==s)for(o=f*t[(n=e+1)-1],i=s;i--&&(a=f*t[n+1],t[n]-=o+a,i--);n+=2)o=f*t[(n+=2)+1],t[n]-=o+a},t}(),Z=function(){function t(){e.call(this)}return(t.prototype=Object.create(e.prototype)).filter=function(t,e,r){var n,i,o=r>>1;for(n=e|=0,i=o+1;i--;n+=2)t[n]-=t[n-1]+t[n+1]+2>>2;for(n=e+1,i=o;i--;n+=2)t[n]+=t[n-1]+t[n+1]>>1},t}();return t}(),n=function(){function t(){}function d(t,e,r){this.data=t,this.start=e,this.end=r}function z(t,e,i){var o=t.getContexts(e),a=1;function r(t){for(var e=0,r=0;r>>0}var n=r(1),s=r(1)?r(1)?r(1)?r(1)?r(1)?r(32)+4436:r(12)+340:r(8)+84:r(6)+20:r(4)+4:r(2);return 0===n?s:0>1)+z(x,"IARDX",w),(M>>1)+z(x,"IARDY",w),!1,m,b)}var L,R,B,D=I-(1&h?0:O),N=S-(2&h?P:0);if(u){for(L=0;L>5&7,f=[31&a],u=e+6;if(7===a){s=536870911&J(t,u-1),u+=3;var l=s+7>>3;for(f[0]=t[u++];0<--l;)f.push(t[u++])}else 5!==a&&6!==a||Z("JBIG2 error: invalid referred-to flags");r.retainBits=f;var h,c,d=r.number<=256?1:r.number<=65536?2:4,p=[];for(h=0;h>>24&255,_[3]=b.height>>16&255,_[4]=b.height>>8&255,_[5]=255&b.height,h=u,c=t.length;h>2&3,l.huffmanDWSelector=h>>4&3,l.bitmapSizeSelector=h>>6&1,l.aggregationInstancesSelector=h>>7&1,l.bitmapCodingContextUsed=!!(256&h),l.bitmapCodingContextRetained=!!(512&h),l.template=h>>10&3,l.refinementTemplate=h>>12&1,f+=2,!l.huffman){for(o=0===l.template?4:1,n=[],i=0;i>2&3),c.referenceCorner=d>>4&3,c.transposed=!!(64&d),c.combinationOperator=d>>7&3,c.defaultPixelValue=d>>9&1,c.dsOffset=d<<17>>27,c.refinementTemplate=d>>15&1,c.huffman){var p=V(s,f);f+=2,c.huffmanFS=3&p,c.huffmanDS=p>>2&3,c.huffmanDT=p>>4&3,c.huffmanRefinementDW=p>>6&3,c.huffmanRefinementDH=p>>8&3,c.huffmanRefinementDX=p>>10&3,c.huffmanRefinementDY=p>>12&3,c.huffmanRefinementSizeSelector=!!(14&p)}if(c.refinement&&!c.refinementTemplate){for(n=[],i=0;i<2;i++)n.push({x:E(s,f),y:E(s,f+1)}),f+=2;c.refinementAt=n}c.numberOfSymbolInstances=J(s,f),f+=4,c.huffman&&Z("JBIG2 error: huffman is not supported"),r=[c,a.referredTo,s,f,u];break;case 38:case 39:var m={};m.info=w(s,f),f+=x;var b=s[f++];if(m.mmr=!!(1&b),m.template=b>>1&3,m.prediction=!!(8&b),!m.mmr){for(o=0===m.template?4:1,n=[],i=0;i>2&1,g.combinationOperator=_>>3&3,g.requiresBuffer=!!(32&_),g.combinationOperatorOverride=!!(64&_),r=[g];break;case 49:case 50:case 51:case 62:break;default:Z("JBIG2 error: segment type "+a.typeName+"("+a.type+") is not implemented")}var v="on"+a.typeName;v in e&&e[v].apply(e,r)}function a(t,e){for(var r=0,n=t.length;r>3,r=new Uint8Array(e*t.height);if(t.defaultPixelValue)for(var n=0,i=r.length;n>3,l=a.combinationOperatorOverride?t.combinationOperator:a.combinationOperator,h=this.buffer,c=128>>(7&t.x),d=t.y*u+(t.x>>3);switch(l){case 0:for(r=0;r>=1)||(i=128,o++);d+=u}break;case 2:for(r=0;r>=1)||(i=128,o++);d+=u}break;default:Z("JBIG2 error: operator "+l+" is not supported")}},onImmediateGenericRegion:function(t,e,r,n){var i=t.info,o=new d(e,r,n),a=O(t.mmr,i.width,i.height,t.template,t.prediction,null,t.at,o);this.drawBitmap(i,a)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(t,e,r,n,i,o){t.huffman&&Z("JBIG2 error: huffman is not supported");var a=this.symbols;a||(this.symbols=a={});for(var s=[],f=0,u=r.length;f>24}function V(t,e){return t[e]<<8|t[e+1]}function J(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var Z=function(){throw console.error.apply(console,arguments),new Error("PDFJS error: "+arguments[0])},K=function(){console.warn.apply(console,arguments)},h=function(){console.info.apply(console,arguments)};n.prototype.parse=function(t){var e=0,r=t.length;151===t[e]&&74===t[e+1]&&66===t[e+2]&&50===t[e+3]&&13===t[e+4]&&10===t[e+5]&&26===t[e+6]&&10===t[e+7]||Z("JBIG2 error: invalid header");var n={};e+=8;var i=t[e++];n.randomAccess=!(1&i),2&i||(n.numberOfPages=J(t,e),e+=4);for(var o=this.parseChunks([{data:t,start:e,end:r}]),a=o.currentPageInfo.width,s=o.currentPageInfo.height,f=o.buffer,u=(t=new Uint8Array(a*s),0),l=0,h=0;h>=1;this.width=a,this.height=s,this.data=t},t.JpegImage=e,t.JpxImage=r,t.Jbig2Image=n}(n||(n={}));var o=n.JpegImage,a=n.JpxImage,s=n.Jbig2Image;"object"==typeof r&&(e.exports={JpegImage:i,JpegDecoder:o,JpxDecoder:a,Jbig2Decoder:s})},{}],175:[function(e,i,t){(function(l){var t=e("xhr"),h=function(){},c=e("parse-bmfont-ascii"),d=e("parse-bmfont-xml"),p=e("parse-bmfont-binary"),m=e("./lib/is-binary"),r=e("xtend"),n=self.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest;i.exports=function(f,u){u="function"==typeof u?u:h,"string"==typeof f?f={uri:f}:f||(f={}),f.binary&&(f=function(t){if(n)return r(t,{responseType:"arraybuffer"});if(void 0===self.XMLHttpRequest)throw new Error("your browser does not support XHR loading");var e=new self.XMLHttpRequest;return e.overrideMimeType("text/plain; charset=x-user-defined"),r({xhr:e},t)}(f)),t(f,function(t,e,r){if(t)return u(t);if(!/^2/.test(e.statusCode))return u(new Error("http status code: "+e.statusCode));if(!r)return u(new Error("no body result"));var n,i,o=!1;if(n=r,"[object ArrayBuffer]"===Object.prototype.toString.call(n)){var a=new Uint8Array(r);r=new l(a,"binary")}m(r)&&(o=!0,"string"==typeof r&&(r=new l(r,"binary"))),o||(l.isBuffer(r)&&(r=r.toString(f.encoding)),r=r.trim());try{var s=e.headers["content-type"];i=o?p(r):/json/.test(s)||"{"===r.charAt(0)?JSON.parse(r):/xml/.test(s)||"<"===r.charAt(0)?d(r):c(r)}catch(t){u(new Error("error parsing font "+t.message)),u=h}u(null,i)})}}).call(this,e("buffer").Buffer)},{"./lib/is-binary":176,buffer:16,"parse-bmfont-ascii":195,"parse-bmfont-binary":196,"parse-bmfont-xml":197,xhr:262,xtend:264}],176:[function(n,i,t){(function(t){var e=n("buffer-equal"),r=new t([66,77,70,3]);i.exports=function(t){return"string"==typeof t?"BMF"===t.substring(0,3):4>=f,l-=f,b!==o){if(b===a)break;for(var g=b>8,++_;var y=v;if(n>=8;null!==m&&s<4096&&(p[s++]=m<<8|y,u+1<=s&&f<12&&(++f,u=u<<1|1)),m=b}else s=a+1,u=(1<<(f=i+1))-1,m=null}return c!==n&&console.log("Warning, gif stream shorter than expected."),r}try{r.GifWriter=function(g,t,e,r){var _=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(a=1<>8&255,g[_++]=255&e,g[_++]=e>>8&255,g[_++]=(null!==v?128:0)|i,g[_++]=o,g[_++]=0,null!==v)for(var s=0,f=v.length;s>16&255,g[_++]=u>>8&255,g[_++]=255&u}if(null!==n){if(n<0||65535>8&255,g[_++]=0}var w=!1;this.addFrame=function(t,e,r,n,i,o){if(!0===w&&(--_,w=!1),o=void 0===o?{}:o,t<0||e<0||65535>=1;)++u;f=1<>8&255,g[_++]=d,g[_++]=0),g[_++]=44,g[_++]=255&t,g[_++]=t>>8&255,g[_++]=255&e,g[_++]=e>>8&255,g[_++]=255&r,g[_++]=r>>8&255,g[_++]=255&n,g[_++]=n>>8&255,g[_++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p>16&255,g[_++]=b>>8&255,g[_++]=255&b}return _=function(e,r,t,n){e[r++]=t;var i=r++,o=1<>=8,l-=8,r===i+256&&(e[i]=255,i=r++)}function d(t){h|=t<>=8,l-=8,r===i+256&&(e[i]=255,i=r++);4096===f?(d(o),f=s+1,u=t+1,m={}):(1<>7,i=1<<1+(7&r);w[t++],w[t++];var o=null,a=null;n&&(o=t,t+=3*(a=i));var s=!0,f=[],u=0,l=null,h=0,c=null;for(this.width=x,this.height=e;s&&t>2&7,t++;break;case 254:for(;;){if(!(0<=(j=w[t++])))throw Error("Invalid block size");if(0===j)break;t+=j}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,m=w[t++]|w[t++]<<8,b=w[t++]|w[t++]<<8,g=w[t++]|w[t++]<<8,_=w[t++],v=_>>6&1,y=1<<1+(7&_),E=o,k=a,S=!1;_>>7&&(S=!0,E=t,t+=3*(k=y));var I=t;for(t++;;){var j;if(!(0<=(j=w[t++])))throw Error("Invalid block size");if(0===j)break;t+=j}f.push({x:p,y:m,width:b,height:g,has_local_palette:S,palette_offset:E,palette_size:k,data_offset:I,data_length:t-I,transparent_index:l,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 f.length},this.loopCount=function(){return c},this.frameInfo=function(t){if(t<0||t>=f.length)throw new Error("Frame index out of range.");return f[t]},this.decodeAndBlitFrameBGRA=function(t,e){var r=this.frameInfo(t),n=r.width*r.height,i=new Uint8Array(n);A(w,r.data_offset,i,n);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,f=x-s,u=s,l=4*(r.y*x+r.x),h=4*((r.y+r.height)*x+r.x),c=l,d=4*f;!0===r.interlaced&&(d+=4*x*7);for(var p=8,m=0,b=i.length;m>=1)),g===a)c+=4;else{var _=w[o+3*g],v=w[o+3*g+1],y=w[o+3*g+2];e[c++]=y,e[c++]=v,e[c++]=_,e[c++]=255}--u}},this.decodeAndBlitFrameRGBA=function(t,e){var r=this.frameInfo(t),n=r.width*r.height,i=new Uint8Array(n);A(w,r.data_offset,i,n);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,f=x-s,u=s,l=4*(r.y*x+r.x),h=4*((r.y+r.height)*x+r.x),c=l,d=4*f;!0===r.interlaced&&(d+=4*x*7);for(var p=8,m=0,b=i.length;m>=1)),g===a)c+=4;else{var _=w[o+3*g],v=w[o+3*g+1],y=w[o+3*g+2];e[c++]=_,e[c++]=v,e[c++]=y,e[c++]=255}--u}}}}catch(t){}},{}],179:[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":180,"./lib/inflate":181,"./lib/utils/common":182,"./lib/zlib/constants":185}],180:[function(t,e,r){"use strict";var a=t("./zlib/deflate"),s=t("./utils/common"),f=t("./utils/strings"),i=t("./zlib/messages"),o=t("./zlib/zstream"),u=Object.prototype.toString,l=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[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e},r.buf2binstring=function(t){return l(t,t.length)},r.binstring2buf=function(t){for(var e=new f.Buf8(t.length),r=0,n=e.length;r>10&1023,s[n++]=56320|1023&i)}return l(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":182}],184:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var i=s,o=n+r;t^=-1;for(var a=n;a>>8^i[255&(t^e[a])];return-1^t}},{}],187:[function(t,e,r){"use strict";var f,c=t("../utils/common"),u=t("./trees"),d=t("./adler32"),p=t("./crc32"),n=t("./messages"),l=0,h=4,m=0,b=-2,g=-1,_=4,i=2,v=8,y=9,o=286,a=30,s=19,w=2*o+1,x=15,E=3,k=258,S=k+E+1,I=42,j=113,A=1,T=2,P=3,O=4;function C(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,R(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,o=t.strstart,a=t.prev_length,s=t.nice_match,f=t.strstart>t.w_size-S?t.strstart-(t.w_size-S):0,u=t.window,l=t.w_mask,h=t.prev,c=t.strstart+k,d=u[o+a-1],p=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(r=e)+a]===p&&u[r+a-1]===d&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&of&&0!=--i);return a<=t.lookahead?a:t.lookahead}function F(t){var e,r,n,i,o,a,s,f,u,l,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-S)){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(a=t.strm,s=t.window,f=t.strstart+t.lookahead,u=i,l=void 0,l=a.avail_in,u=E)for(o=t.strstart-t.insert,t.ins_h=t.window[o],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(F(t),0===t.lookahead&&e===l)return A;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 A;if(t.strstart-t.block_start>=t.w_size-S&&(B(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?P:O):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),A)}),new G(4,4,8,4,z),new G(4,5,16,8,z),new G(4,6,32,32,z),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?b:(t.state.gzhead=e,m):b},r.deflate=function(t,e){var r,n,i,o;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=j);else{var a=v+(n.w_bits-8<<4)<<8;a|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=j,N(n,a),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)),R(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)),R(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}D(n,o=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(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)),R(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}D(n,o=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&R(t),n.pending+2<=n.pending_buf_size&&(D(n,255&t.adler),D(n,t.adler>>8&255),t.adler=0,n.status=j)):n.status=j),0!==n.pending){if(R(t),0===t.avail_out)return n.last_flush=-1,m}else if(0===t.avail_in&&M(e)<=M(r)&&e!==h)return C(t,-5);if(666===n.status&&0!==t.avail_in)return C(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==l&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(F(t),0===t.lookahead)){if(e===l)return A;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 A}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?P:O):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?A:T}(n,e):3===n.strategy?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=k){if(F(t),t.lookahead<=k&&e===l)return A;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 A}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?P:O):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?A:T}(n,e):f[n.level].func(n,e);if(s!==P&&s!==O||(n.status=666),s===A||s===P)return 0===t.avail_out&&(n.last_flush=-1),m;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))),R(t),0===t.avail_out))return n.last_flush=-1,m}return e!==h?m: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)),R(t),0=r.w_size&&(0===o&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,e,l-r.w_size,r.w_size,0),e=u,l=r.w_size),a=t.avail_in,s=t.next_in,f=t.input,t.avail_in=l,t.next_in=0,t.input=e,F(r);r.lookahead>=E;){for(n=r.strstart,i=r.lookahead-(E-1);r.ins_h=(r.ins_h<>>=y=v>>>24,p-=y,0===(y=v>>>16&255))I[o++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=m[(65535&v)+(d&(1<>>=y,p-=y),p<15&&(d+=S[n++]<>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=b[(65535&v)+(d&(1<>>=y,p-=y,(y=o-a)>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){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 a(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,a(t)):D}function f(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=o.wsize?(T.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(i=o.wsize-o.wnext)&&(i=n),T.arraySet(o.window,e,r-n,i,o.wnext),(n-=i)?(T.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=O(r.check,j,2,0),l=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(l-=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&&(j[0]=255&u,j[1]=u>>>8&255,r.check=O(r.check,j,2,0)),l=u=0,r.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,u+=n[o++]<>>8&255,j[2]=u>>>16&255,j[3]=u>>>24&255,r.check=O(r.check,j,4,0)),l=u=0,r.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,u+=n[o++]<>8),512&r.flags&&(j[0]=255&u,j[1]=u>>>8&255,r.check=O(r.check,j,2,0)),l=u=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===s)break t;s--,u+=n[o++]<>>8&255,r.check=O(r.check,j,2,0)),l=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,o,d,x)),512&r.flags&&(r.check=O(r.check,n,d,o)),s-=d,o+=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[o+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(;l<32;){if(0===s)break t;s--,u+=n[o++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===s)break t;s--,u+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:if(F(r),r.mode=20,6!==e)break;u>>>=2,l-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,u+=n[o++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,l=u=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(s>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[A[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,_=65535&I,!((b=I>>>24)<=l);){if(0===s)break t;s--,u+=n[o++]<>>=b,l-=b,r.lens[r.have++]=_;else{if(16===_){for(S=b+2;l>>=b,l-=b,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,l-=2}else if(17===_){for(S=b+3;l>>=b)),u>>>=3,l-=3}else{for(S=b+7;l>>=b)),u>>>=7,l-=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(R,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<=f){t.next_out=a,t.avail_out=f,t.next_in=o,t.avail_in=s,r.hold=u,r.bits=l,C(t,c),a=t.next_out,i=t.output,f=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,u=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(I=r.lencode[u&(1<>>16&255,_=65535&I,!((b=I>>>24)<=l);){if(0===s)break t;s--,u+=n[o++]<>v)])>>>16&255,_=65535&I,!(v+(b=I>>>24)<=l);){if(0===s)break t;s--,u+=n[o++]<>>=v,l-=v,r.back+=v}if(u>>>=b,l-=b,r.back+=b,r.length=_,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(S=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(I=r.distcode[u&(1<>>16&255,_=65535&I,!((b=I>>>24)<=l);){if(0===s)break t;s--,u+=n[o++]<>v)])>>>16&255,_=65535&I,!(v+(b=I>>>24)<=l);){if(0===s)break t;s--,u+=n[o++]<>>=v,l-=v,r.back+=v}if(u>>>=b,l-=b,r.back+=b,64&g){t.msg="invalid distance code",r.mode=30;break}r.offset=_,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(S=r.extra;l>>=r.extra,l-=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===f)break t;if(d=c-f,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=a-r.offset,d=r.length;for(fd?(m=C[M+a[v]],b=A[T+a[v]]):(m=96,b=0),f=1<<_-k,y=u=1<>k)+(u-=f)]=p<<24|m<<16|b|0,0!==u;);for(f=1<<_-1;j&f;)f>>=1;if(0!==f?(j&=f-1,j+=f):j=0,v++,0==--P[_]){if(_===w)break;_=e[r+a[v]]}if(x<_&&(j&h)!==l){for(0===k&&(k=x),c+=y,S=1<<(E=_-k);E+k>>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>i-r?(t.bi_buf|=e<>i-t.bi_valid,t.bi_valid+=r-i):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function z(t,e,r){var n,i,o=new Array(g+1),a=0;for(n=1;n<=g;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=F(o[s]++,s))}}function H(t){var e;for(e=0;e>1;1<=r;r--)W(t,o,r);for(i=f;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,W(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,f=e.dyn_tree,u=e.max_code,l=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,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(f[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 u;for(e=32;e>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?K(t,e,r,n):4===t.strategy||o===i?(N(t,2+(n?1:0),3),Z(t,I,j)):(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*(T[r]+h+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){var e;N(t,2,3),U(t,_,I),16===(e=t).bi_valid?(D(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":182}],194:[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}},{}],195:[function(t,e,r){function o(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=[],o=0;oe.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=(i=t,o=e+14,f(i,o).toString("utf8")),r;var i,o}(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=f(t,e),o=i.length+1,a=r/o,s=0;s element");for(var r=e.getElementsByTagName("page"),n=0;n>4,h.push(s,a);break;case 2:i=3&f,o=f>>2&3,a=f>>4&3,s=f>>6&3,h.push(s,a,o,i);break;case 1:t=1&f,e=f>>1&1,r=f>>2&1,n=f>>3&1,i=f>>4&1,o=f>>5&1,a=f>>6&1,s=f>>7&1,h.push(s,a,o,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 a(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}},{}],208:[function(t,e,r){(function(m){"use strict";var h=t("./paeth-predictor");var b={0:function(t,e,r,n,i){for(var o=0;o>1);n[i+a]=u}},4:function(t,e,r,n,i,o){for(var a=0;a>1);i+=Math.abs(f)}return i},4:function(t,e,r,n){for(var i=0,o=0;o=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":213,"./paeth-predictor":217,buffer:16}],212:[function(t,e,r){(function(u){"use strict";e.exports=function(t,e){var r=e.depth,n=e.width,i=e.height,o=e.colorType,a=e.transColor,s=e.palette,f=t;return 3===o?function(t,e,r,n,i){for(var o=0,a=0;a>3))*this._bitmapInfo.height,r=Math.max(e,a.Z_MIN_CHUNK);this._inflate=a.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 o=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,o(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},l.prototype._handleMetaData=function(t){this.emit("metadata",t),this._bitmapInfo=Object.create(t),this._filter=new o(this._bitmapInfo)},l.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},l.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},l.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},l.prototype._complete=function(t){if(!this.errord){try{var e=f.dataToBitMap(t,this._bitmapInfo),r=u(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",r)}}},{"./bitmapper":203,"./chunkstream":205,"./filter-parse-async":209,"./format-normaliser":212,"./parser":220,util:261,zlib:13}],219:[function(t,e,r){(function(d){"use strict";var p=!0,m=t("zlib"),b=t("./sync-inflate");m.deflateSync||(p=!1);var g=t("./sync-reader"),_=t("./filter-parse-sync"),v=t("./parser"),y=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 o=[];var a=new g(t);if(new v(e,{read:a.read.bind(a),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){o.push(t)}}).start(),a.process(),r)throw r;var s,f=d.concat(o);if(o.length=0,n.interlace)s=m.inflateSync(f);else{var u=(1+(n.width*n.bpp*n.depth+7>>3))*n.height;s=b(f,{chunkSize:u,maxLength:u})}if(f=null,!s||!s.length)throw new Error("bad png - invalid inflate data response");var l=_.process(s,n);f=null;var h=y.dataToBitMap(l,n);l=null;var c=w(h,n);return n.data=c,n.gamma=i||0,n}}).call(this,t("buffer").Buffer)},{"./bitmapper":203,"./filter-parse-sync":210,"./format-normaliser":212,"./parser":220,"./sync-inflate":223,"./sync-reader":224,buffer:16,zlib:13}],220:[function(e,r,t){(function(a){"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+o>t.height)throw new Error("bitblt reading outside image");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error("bitblt writing outside image");for(var f=0;fs&&(n=n.slice(0,s)),u.push(n),l+=n.length,0===(s-=n.length))return!1}return(0===e||i._offset>=i._chunkSize)&&(a=i._chunkSize,i._offset=0,i._buffer=p.allocUnsafe(i._chunkSize)),0===e&&(f+=o-t,o=t,!0)}}this.on("error",function(t){n=t}),m(this._handle,"zlib binding closed");do{var c=this._handle.writeSync(e,t,f,o,this._buffer,this._offset,a);c=c||this._writeState}while(!this._hadError&&h(c[0],c[1]));if(this._hadError)throw n;if(g<=l)throw _(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+g.toString(16)+" bytes");var d=p.concat(u,l);return _(this),d},t.inherits(n,b.Inflate),o.exports=a=e,a.Inflate=n,a.createInflate=function(t){return new n(t)},a.inflateSync=e}).call(this,i("_process"),i("buffer").Buffer)},{_process:226,assert:3,buffer:16,util:261,zlib:13}],224:[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=_-v,k=Math.floor,S=String.fromCharCode;function I(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+=S(t)}).join("")}function T(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function P(t,e,r){var n=0;for(t=r?k(t/s):t>>1,t+=k(t/e);c*y>>1k((g-p)/a))&&I("overflow"),p+=f*a,!(f<(u=s<=b?v:b+y<=s?y:s-b));s+=_)a>k(g/(l=_-u))&&I("overflow"),a*=l;b=P(p-o,e=c.length+1,0==o),k(p/e)>g-m&&I("overflow"),m+=k(p/e),p%=e,c.splice(p++,0,m)}return A(c)}function b(t){var e,r,n,i,o,a,s,f,u,l,h,c,d,p,m,b=[];for(c=(t=j(t)).length,e=x,o=w,a=r=0;ak((g-r)/(d=n+1))&&I("overflow"),r+=(s-e)*d,e=s,a=0;ag&&I("overflow"),h==e){for(f=r,u=_;!(f<(l=u<=o?v:o+y<=u?y:u-o));u+=_)m=f-l,p=_-l,b.push(S(T(l+m%p,0))),f=k(m/p);b.push(S(T(f,0))),o=P(r,d,n==i),r=0,++n}++r,++e}return b.join("")}if(i={version:"1.4.1",ucs2:{decode:j,encode:A},decode:m,encode:b,toASCII:function(t){return p(t,function(t){return u.test(t)?"xn--"+b(t):t})},toUnicode:function(t){return p(t,function(t){return f.test(t)?m(t.slice(4).toLowerCase()):t})}},e&&r)if(C.exports==e)r.exports=i;else for(o in i)i.hasOwnProperty(o)&&(e[o]=i[o]);else t.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],228:[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 o=/\+/g;t=t.split(e);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s,f,u=t.length;0e.highWaterMark&&(e.highWaterMark=(m<=(r=t)?r=m:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var r}function x(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(y("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?g.nextTick(E,t):E(t))}function E(t){y("emit readable"),t.emit("readable"),A(t)}function k(t,e){e.readingMore||(e.readingMore=!0,g.nextTick(S,t,e))}function S(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;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(a);break}++n}return e.length-=n,i}(t,e):function(t,e){var r=u.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=o.slice(a);break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function P(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return y("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):x(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&P(this),null;var n,i=e.needReadable;return y("need readable",i),(0===e.length||e.length-t>>0),o=this.head,a=0;o;)e=o.data,r=i,n=a,e.copy(r,n),a+=o.data.length,o=o.next;return i},t}(),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":244,util:11}],238:[function(t,e,r){"use strict";var o=t("process-nextick-args");function a(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||o.nextTick(a,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(o.nextTick(a,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":225}],239:[function(t,e,r){e.exports=t("events").EventEmitter},{events:151}],240:[function(t,e,r){e.exports=t("./readable").PassThrough},{"./readable":241}],241:[function(t,e,r){(((r=e.exports=t("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=t("./lib/_stream_writable.js"),r.Duplex=t("./lib/_stream_duplex.js"),r.Transform=t("./lib/_stream_transform.js"),r.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":232,"./lib/_stream_passthrough.js":233,"./lib/_stream_readable.js":234,"./lib/_stream_transform.js":235,"./lib/_stream_writable.js":236}],242:[function(t,e,r){e.exports=t("./readable").Transform},{"./readable":241}],243:[function(t,e,r){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":236}],244:[function(t,e,r){var n=t("buffer"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,r),r.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.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},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:16}],245:[function(t,e,r){e.exports=n;var l=t("events").EventEmitter;function n(){l.call(this)}t("inherits")(n,l),n.Readable=t("readable-stream/readable.js"),n.Writable=t("readable-stream/writable.js"),n.Duplex=t("readable-stream/duplex.js"),n.Transform=t("readable-stream/transform.js"),n.PassThrough=t("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function f(t){if(u(),0===l.listenerCount(this,"error"))throw t}function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",f),e.on("error",f),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{events:151,inherits:166,"readable-stream/duplex.js":231,"readable-stream/passthrough.js":240,"readable-stream/readable.js":241,"readable-stream/transform.js":242,"readable-stream/writable.js":243}],246:[function(r,t,i){(function(f){var u=r("./lib/request"),t=r("./lib/response"),l=r("xtend"),e=r("builtin-status-codes"),h=r("url"),n=i;n.request=function(t,e){t="string"==typeof t?h.parse(t):l(t);var r=-1===f.location.protocol.search(/^https?:$/)?"http:":"",n=t.protocol||r,i=t.hostname||t.host,o=t.port,a=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?n+"//"+i:"")+(o?":"+o:"")+a,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var s=new u(t);return e&&s.on("response",e),s},n.get=function(t,e){var r=n.request(t,e);return r.end(),r},n.ClientRequest=u,n.IncomingMessage=t.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=e,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"./lib/request":248,"./lib/response":249,"builtin-status-codes":17,url:256,xtend:264}],247:[function(t,e,s){(function(t){s.fetch=a(t.fetch)&&a(t.ReadableStream),s.writableStream=a(t.WritableStream),s.abortController=a(t.AbortController),s.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),s.blobConstructor=!0}catch(t){}var e;function r(){if(void 0!==e)return e;if(t.XMLHttpRequest){e=new t.XMLHttpRequest;try{e.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){e=null}}else e=null;return e}function n(t){var e=r();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}var i=void 0!==t.ArrayBuffer,o=i&&a(t.ArrayBuffer.prototype.slice);function a(t){return"function"==typeof t}s.arraybuffer=s.fetch||i&&n("arraybuffer"),s.msstream=!s.fetch&&o&&n("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&i&&n("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||!!r()&&a(r().overrideMimeType),s.vbArray=a(t.VBArray),e=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],248:[function(o,s,t){(function(f,u,l){var h=o("./capability"),t=o("inherits"),e=o("./response"),a=o("readable-stream"),c=o("to-arraybuffer"),r=e.IncomingMessage,d=e.readyStates;var n=s.exports=function(e){var t,r=this;a.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new l(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i,o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!h.abortController)t=!(o=!1);else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!h.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=(n=t,i=o,h.fetch&&i?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&n?"arraybuffer":h.vbArray&&n?"text:vbarray":"text"),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};t(n,a.Writable),n.prototype.setHeader=function(t,e){var r=t.toLowerCase();-1===i.indexOf(r)&&(this._headers[r]={name:t,value:e})},n.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},n.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},n.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,n=e._headers,r=null;"GET"!==t.method&&"HEAD"!==t.method&&(r=h.arraybuffer?c(l.concat(e._body)):h.blobConstructor?new u.Blob(e._body.map(function(t){return c(t)}),{type:(n["content-type"]||{}).value||""}):l.concat(e._body).toString());var i=[];if(Object.keys(n).forEach(function(t){var e=n[t].name,r=n[t].value;Array.isArray(r)?r.forEach(function(t){i.push([e,t])}):i.push([e,r])}),"fetch"===e._mode){var o=null;if(h.abortController){var a=new AbortController;o=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=u.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}u.fetch(e._opts.url,{method:e._opts.method,headers:i,body:r||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:o}).then(function(t){e._fetchResponse=t,e._connect()},function(t){u.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var s=e._xhr=new u.XMLHttpRequest;try{s.open(e._opts.method,e._opts.url,!0)}catch(t){return void f.nextTick(function(){e.emit("error",t)})}"responseType"in s&&(s.responseType=e._mode.split(":")[0]),"withCredentials"in s&&(s.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(s.timeout=t.requestTimeout,s.ontimeout=function(){e.emit("requestTimeout")}),i.forEach(function(t){s.setRequestHeader(t[0],t[1])}),e._response=null,s.onreadystatechange=function(){switch(s.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(s.onprogress=function(){e._onXHRProgress()}),s.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{s.send(r)}catch(t){return void f.nextTick(function(){e.emit("error",t)})}}}},n.prototype._onXHRProgress=function(){(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},n.prototype._connect=function(){var e=this;e._destroyed||(e._response=new r(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},n.prototype._write=function(t,e,r){this._body.push(t),r()},n.prototype.abort=n.prototype.destroy=function(){this._destroyed=!0,u.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},n.prototype.end=function(t,e,r){"function"==typeof t&&(r=t,t=void 0),a.Writable.prototype.end.call(this,t,e,r)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,o("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{},o("buffer").Buffer)},{"./capability":247,"./response":249,_process:226,buffer:16,inherits:166,"readable-stream":241,"to-arraybuffer":254}],249:[function(r,t,n){(function(u,l,h){var c=r("./capability"),t=r("inherits"),d=r("readable-stream"),s=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},e=n.IncomingMessage=function(t,e,r,n){var i=this;if(d.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){u.nextTick(function(){i.emit("close")})}),"fetch"===r){if(i._fetchResponse=e,i.url=e.url,i.statusCode=e.status,i.statusMessage=e.statusText,e.headers.forEach(function(t,e){i.headers[e.toLowerCase()]=t,i.rawHeaders.push(e,t)}),c.writableStream){var o=new WritableStream({write:function(r){return new Promise(function(t,e){i._destroyed?e():i.push(new h(r))?t():i._resumeFetch=t})},close:function(){l.clearTimeout(n),i._destroyed||i.push(null)},abort:function(t){i._destroyed||i.emit("error",t)}});try{return void e.body.pipeTo(o).catch(function(t){l.clearTimeout(n),i._destroyed||i.emit("error",t)})}catch(t){}}var a=e.body.getReader();!function e(){a.read().then(function(t){if(!i._destroyed){if(t.done)return l.clearTimeout(n),void i.push(null);i.push(new h(t.value)),e()}}).catch(function(t){l.clearTimeout(n),i._destroyed||i.emit("error",t)})}()}else{if(i._xhr=t,i._pos=0,i.url=t.responseURL,i.statusCode=t.status,i.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var r=e[1].toLowerCase();"set-cookie"===r?(void 0===i.headers[r]&&(i.headers[r]=[]),i.headers[r].push(e[2])):void 0!==i.headers[r]?i.headers[r]+=", "+e[2]:i.headers[r]=e[2],i.rawHeaders.push(e[1],e[2])}}),i._charset="x-user-defined",!c.overrideMimeType){var s=i.rawHeaders["mime-type"];if(s){var f=s.match(/;\s*charset=([^;])(;|$)/);f&&(i._charset=f[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};t(e,d.Readable),e.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},e.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==s.DONE)break;try{r=new l.VBArray(t.responseBody).toArray()}catch(t){}if(null!==r){e.push(new h(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var n=r.substr(e._pos);if("x-user-defined"===e._charset){for(var i=new h(n.length),o=0;oe._pos&&(e.push(new h(new Uint8Array(a.result.slice(e._pos)))),e._pos=a.result.byteLength)},a.onload=function(){e.push(null)},a.readAsArrayBuffer(r)}e._xhr.readyState===s.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{},r("buffer").Buffer)},{"./capability":247,_process:226,buffer:16,inherits:166,"readable-stream":241}],250:[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 o(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=f,this.end=u,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,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 a(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,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(1=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),o=0;o>1)+720)%360;--e;)n.h=(n.h+i)%360,o.push(l(n));return o}function S(t,e){e=e||6;for(var r=l(t).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/e;e--;)a.push(l({h:n,s:i,v:o})),o=(o+s)%1;return a}l.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:h.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:h.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:h.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=A(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(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=a(360*t.h),r=a(100*t.s),n=a(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 o=[C(a(t).toString(16)),C(a(e).toString(16)),C(a(r).toString(16)),C(L(n))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*T(this._r,255))+"%",g:a(100*T(this._g,255))+"%",b:a(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*T(this._r,255))+"%, "+a(100*T(this._g,255))+"%, "+a(100*T(this._b,255))+"%)":"rgba("+a(100*T(this._r,255))+"%, "+a(100*T(this._g,255))+"%, "+a(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[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=l(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 l(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(b,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(r,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(u,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(y,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},l.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 l(t,e)},l.equals=function(t,e){return!(!t||!e)&&l(t).toRgbString()==l(e).toRgbString()},l.random=function(){return l.fromRatio({r:t(),g:t(),b:t()})},l.mix=function(t,e,r){r=0===r?0:r||50;var n=l(t).toRgb(),i=l(e).toRgb(),o=r/100;return l({r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a})},l.readability=function(t,e){var r=l(t),n=l(e);return(h.max(r.getLuminance(),n.getLuminance())+.05)/(h.min(r.getLuminance(),n.getLuminance())+.05)},l.isReadable=function(t,e,r){var n,i,o=l.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<=o;break;case"AAlarge":i=3<=o;break;case"AAAsmall":i=7<=o}return i},l.mostReadable=function(t,e,r){var n,i,o,a,s=null,f=0;i=(r=r||{}).includeFallbackColors,o=r.level,a=r.size;for(var u=0;u",'"',"`"," ","\r","\n","\t"]),D=["'"].concat(i),N=["%","/","?",";","#"].concat(D),U=["/","?","#"],F=/^[+a-z0-9A-Z_-]{0,63}$/,z=/^([+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 o(t,e,r){if(t&&L.isObject(t)&&t instanceof j)return t;var n=new j;return n.parse(t,e,r),n}j.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>>3)]),null==h&&(h=o.t325);var c=new Uint8Array(o.height*(u>>>3)),d=0;if(null!=o.t322){for(var p=o.t322[0],m=o.t323[0],b=Math.floor((o.width+p-1)/p),g=Math.floor((o.height+m-1)/m),_=new Uint8Array(0|Math.ceil(p*m*f/8)),v=0;v>>8;else{if(12!=d)throw"unsupported bit depth "+d;for(l=0;l>>4,i[o++]=255&(p[l]<<4|p[l+1]>>>8),i[o++]=255&p[l+1]}}else{var b=new _;b.parse(f);var g=b.getData(b.width,b.height);for(l=0;l 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"JPEGQTables tag is missing";for(a=0;a>>8,E[x++]=255&I,E[x++]=a|f<<4,s=0;s<16;s++)E[x++]=e[r+S[a]+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++]=y))E[x++]=1,E[x++]=17,E[x++]=0;else for(a=0;a<3;a++)E[x++]=a+1,E[x++]=0!=a?17:(15&_)<<4|15&v,E[x++]=a;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 j=-1;for(a=0;a>>8&255,i[T++]=255&t.height,i[T++]=t.width>>>8&255,i[T++]=255&t.width,1==(i[T++]=y))i[T++]=1,i[T++]=17,i[T++]=0;else for(a=0;a<3;a++)i[T++]=a+1,i[T++]=0!=a?17:(15&_)<<4|15&v,i[T++]=a}if(255==e[l]&&218==e[l+1]){var P=e[l+2]<<8|e[l+3];for((o=new Uint8Array(P+2))[0]=e[l],o[1]=e[l+1],o[2]=e[l+2],o[3]=e[l+3],a=0;a>>8&255,f[u.sofPosition+6]=255&t.height,f[u.sofPosition+7]=t.width>>>8&255,f[u.sofPosition+8]=255&t.width,255==e[r]&&e[r+1]==SOS||(f.set(u.sosMarker,bufoff),bufoff+=sosMarker.length),c=0;c>>6,c=63&l;if(e++,3==h&&(u=15&c,n[f>>>1]|=u<<4*(1-f&1),f++),0==h)for(var d=0;d>>1]|=u<<4*(1-f&1),f++;if(2==h)for(d=0;d<2;d++)4!=(p=c>>>3*(1-d)&7)&&(u+=a[p],n[f>>>1]|=u<<4*(1-f&1),f++);if(1==h)for(d=0;d<3;d++){var p;2!=(p=c>>>2*(2-d)&3)&&(u+=o[p],n[f>>>1]|=u<<4*(1-f&1),f++)}}},I.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},I.decode._lens=function(){var t=function(t,e,r,n){for(var i=0;i>>3>>3]>>>7-(7&f)&1),2==a&&(E=t[f>>>3]>>>(7&f)&1),f++,l+=E,"H"==y){if(null!=s._lens[_][l]){var k=s._lens[_][l];l="",u+=k,k<64&&(s._addNtimes(h,u,_),p+=u,_=1-_,(u=0)==--w&&(y=""))}}else"0001"==l&&(l="",s._addNtimes(h,g-p,_),p=g),"001"==l&&(l="",y="H",w=2),null!=s._dmap[l]&&(m=b+s._dmap[l],s._addNtimes(h,m-p,_),p=m,l="",_=1-_);h.length==o&&""==y&&(s._writeBits(h,n,8*i+v*x),v++,p=_=0,c=s._makeDiff(h),h=[])}},I.decode._findDiff=function(t,e,r){for(var n=0;n=e&&t[n+1]==r)return t[n]},I.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r>>3>>3]>>>7-(7&f)&1),2==a&&(k=t[f>>>3]>>>(7&f)&1),f++,l+=k,x){if(null!=s._lens[_][l]){var S=s._lens[_][l];l="",u+=S,S<64&&(s._addNtimes(h,u,_),_=1-_,u=0)}}else"H"==y?null!=s._lens[_][l]&&(S=s._lens[_][l],l="",u+=S,S<64&&(s._addNtimes(h,u,_),p+=u,_=1-_,(u=0)==--w&&(y=""))):("0001"==l&&(l="",s._addNtimes(h,g-p,_),p=g),"001"==l&&(l="",y="H",w=2),null!=s._dmap[l]&&(m=b+s._dmap[l],s._addNtimes(h,m-p,_),p=m,l="",_=1-_));l.endsWith("000000000001")&&(0<=v&&s._writeBits(h,n,8*i+v*E),1==a&&(x=1==(t[f>>>3]>>>7-(7&f)&1)),2==a&&(x=1==(t[f>>>3]>>>(7&f)&1)),f++,null==s._decodeG3.allow2D&&(s._decodeG3.allow2D=x),s._decodeG3.allow2D||(x=!0,f--),l="",v++,p=_=0,c=s._makeDiff(h),h=[])}h.length==o&&s._writeBits(h,n,8*i+v*E)},I.decode._addNtimes=function(t,e,r){for(var n=0;n>>3]|=t[n]<<7-(r+n&7)},I.decode._decodeLZW=function(t,e,r,n){if(null==I.decode._lzwTab){for(var i=new Uint32Array(65535),o=new Uint16Array(65535),a=new Uint8Array(2e6),s=0;s<256;s++)i[a[s<<2]=s]=s<<2,o[s]=1;I.decode._lzwTab=[i,o,a]}for(var f=I.decode._copyData,u=I.decode._lzwTab[0],l=I.decode._lzwTab[1],h=(a=I.decode._lzwTab[2],258),c=1032,d=9,p=e<<3,m=0,b=0;m=(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;a[m]=a[m+1]=a[m+2]=255*(1-b),a[m+3]=255}if(4==f)for(p=0;p>1)]>>4-4*(1&p)&15,a[m]=a[m+1]=a[m+2]=17*(15-b),a[m+3]=255;if(8==f)for(p=0;p>3)]>>7-(7&p)&1,a[m]=a[m+1]=a[m+2]=255*b,a[m+3]=255;if(2==f)for(p=0;p>2)]>>6-2*(3&p)&3,a[m]=a[m+1]=a[m+2]=85*b,a[m+3]=255;if(8==f)for(p=0;p>8,a[m+1]=v[256+y]>>8,a[m+2]=v[512+y]>>8,a[m+3]=255}}else if(5==s)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)})}else if("object"===O(i[0])&&w.isBuffer(i[0])){var _=i[0];if("function"!=typeof(u=i[1]))return j(n,E.throwError.call(T(T(n)),"cb must be a function",l));I.parseBitmap.call(T(T(n)),_,null,l)}else{"function"!=typeof(u=i[i.length-1])&&"function"!=typeof(u=i[i.length-2])&&(u=C);var v=y.__extraConstructors.find(function(t){return t.test.apply(t,i)});if(!v)return j(n,E.throwError.call(T(T(n)),"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.",l));new Promise(function(t,e){var r;return(r=v.run).call.apply(r,[T(T(n)),t,e].concat(i))}).then(function(){return l(null,T(T(n)))}).catch(l)}return n}var e,r,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(y,i.default),e=y,(r=[{key:"rgba",value:function(t,e){return"boolean"!=typeof t?E.throwError.call(this,"bool must be a boolean, true for RGBA or false for RGB",e):(this._rgba=t,(0,E.isNodePattern)(e)&&e.call(this,null,this),this)}},{key:"emitMulti",value:function(t,e){var r=2"}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||y.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return l.getExtension(t)}},{key:"write",value:function(n,i){var o=this;if(!x.default||!x.default.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof n)return E.throwError.call(this,"path must be a string",i);if(void 0===i&&(i=C),"function"!=typeof i)return E.throwError.call(this,"cb must be a function",i);var t=l.getType(n)||this.getMIME(),e=a.default.parse(n);return e.dir&&s.default.sync(e.dir),this.getBuffer(t,function(t,e){if(t)return E.throwError.call(o,t,i);var r=x.default.createWriteStream(n);r.on("open",function(){r.write(e),r.end()}).on("error",function(t){return E.throwError.call(o,t,i)}),r.on("finish",function(){i.call(o,null,o)})}),this}},{key:"getBase64",value:function(n,i){return n===y.AUTO&&(n=this.getMIME()),"string"!=typeof n?E.throwError.call(this,"mime must be a string",i):"function"!=typeof i?E.throwError.call(this,"cb must be a function",i):(this.getBuffer(n,function(t,e){if(t)return E.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 E.throwError.call(this,"base must be a number",e);if(t<2||64=this.bitmap.width&&(i=this.bitmap.width-1),e<0&&(o=0),e>=this.bitmap.height&&(o=this.bitmap.height-1)),r===y.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&&(o=e%this.bitmap.height));var a=this.bitmap.width*o+i<<2;return(i<0||i>=this.bitmap.width)&&(a=-1),(o<0||o>=this.bitmap.height)&&(a=-1),(0,E.isNodePattern)(n)&&n.call(this,null,a),a}},{key:"getPixelColor",value:function(t,e,r){if("number"!=typeof t||"number"!=typeof e)return E.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,E.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 E.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,E.isNodePattern)(n)&&n.call(this,null,this),this}}])&&p(e.prototype,r),n&&p(e,n),y}();function R(t){Object.entries(t).forEach(function(t){var e=d(t,2),r=e[0],n=e[1];L[r]=n})}function B(t){Object.entries(t).forEach(function(t){var e=d(t,2),r=e[0],n=e[1];L.prototype[r]=n})}function D(s,t,f){var u="before-"+t,l=t.replace(/e$/,"")+"ed";L.prototype[s]=function(){for(var t,e=arguments.length,r=new Array(e),n=0;ni.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),"number"!=typeof r||r<0||1f?"1":"0";return u};var d=[];e.exports=n},{}],270:[function(t,e,r){(function(t,i){"use strict";t.browser,e.exports=function(e,r){var n=new XMLHttpRequest;n.open("GET",e,!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+". Error: "+t.message))}else r(new Error("HTTP Status "+n.status+" for url "+e))}),n.addEventListener("error",function(t){r(t)}),n.send()}}).call(this,t("_process"),t("buffer").Buffer)},{_process:226,buffer:16,phin:201}],271:[function(i,t,h){(function(o){"use strict";i("core-js/modules/es6.object.define-property"),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 f.throwError.call(this,"Unsupported MIME type: "+i,r);this.bitmap=this.constructor.decoders[i](t)}catch(t){r.call(this,t,this)}try{this._exif=s.default.create(t).parse(),function(t){var e=t._exif;if(e&&e.tags&&e.tags.Orientation)switch(t._exif.tags.Orientation){case 1:break;case 2:t.mirror(!0,!1);break;case 3:t.rotate(180,!1);break;case 4:t.mirror(!1,!0);break;case 5:t.rotate(-90,!1).mirror(!0,!1);break;case 6:t.rotate(-90,!1);break;case 7:t.rotate(90,!1).mirror(!0,!1);break;case 8:t.rotate(-270,!1)}}(this)}catch(t){}return r.call(this,null,this),this},h.getBuffer=n,h.getBufferAsync=function(t){return(0,e.default)(n,this,t)};var a=r(i("file-type")),s=r(i("exif-parser")),f=i("@jimp/utils"),u=t(i("../constants")),l=t(i("./mime")),e=r(i("./promisify"));function t(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(t===u.AUTO&&(t=this.getMIME()),"string"!=typeof t)return f.throwError.call(this,"mime must be a string",e);if("function"!=typeof e)return f.throwError.call(this,"cb must be a function",e);var r,n;if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=o.from(this.bitmap.data):this.bitmap.data=(r=this.constructor,n=this,new r(n.bitmap.width,n.bitmap.height,n._background).composite(n,0,0).bitmap).data,this.constructor.encoders[t]){var i=this.constructor.encoders[t](this);e.call(this,null,i)}else e.call(this,"Unsupported MIME type: "+t);return this}}).call(this,i("buffer").Buffer)},{"../constants":267,"./mime":272,"./promisify":273,"@jimp/utils":323,buffer:16,"core-js/modules/es6.object.define-property":129,"exif-parser":152,"file-type":161}],272:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.getExtension=r.getType=r.addType=void 0,t("core-js/modules/es6.regexp.split"),t("core-js/modules/es7.array.includes"),t("core-js/modules/es6.string.includes"),t("core-js/modules/web.dom.iterable"),t("core-js/modules/es6.array.iterator"),t("core-js/modules/es7.object.entries"),t("core-js/modules/es6.array.find");var i={};r.addType=function(t,e){i[t]=e};r.getType=function(t){var e,r=t.split("/").slice(-1),n=r[r.length-1].split(".")[1];return(e=n,Object.entries(i).find(function(t){return t[1].includes(e)})||[])[0]};r.getExtension=function(t){return(i[t.toLowerCase()]||[])[0]}},{"core-js/modules/es6.array.find":117,"core-js/modules/es6.array.iterator":122,"core-js/modules/es6.object.define-property":129,"core-js/modules/es6.regexp.split":137,"core-js/modules/es6.string.includes":139,"core-js/modules/es7.array.includes":146,"core-js/modules/es7.object.entries":147,"core-js/modules/web.dom.iterable":149}],273:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es6.function.bind"),t("core-js/modules/es6.promise");var n=function(t,e){for(var r=arguments.length,i=new Array(2>>y,255<(this.bitmap.data[d+3]=m)&&(this.bitmap.data[d+3]=255),0>>y)*m,this.bitmap.data[d+1]=(n*v>>>y)*m,this.bitmap.data[d+2]=(i*v>>>y)*m):(this.bitmap.data[d+2]=0,this.bitmap.data[d+1]=0,this.bitmap.data[d]=0),0===a&&(S[s]=((u=s+_)>3;if((0===o||o&o-1)&&(0===a||a&a-1))return h.throwError.call(this,"only use one flag per alignment direction",i);var s=o>>1,f=a>>1,u=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,l=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(l,(this.bitmap.width-l.bitmap.width)/2*s,(this.bitmap.height-l.bitmap.height)/2*f),(0,h.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":323,"core-js/modules/es6.object.define-property":129}],300:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var l=t("@jimp/utils");r.default=function(){return{cover:function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return l.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 o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=r>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return l.throwError.call(this,"only use one flag per alignment direction",i);var s=o>>1,f=a>>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*f,t,e),(0,l.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":323,"core-js/modules/es6.object.define-property":129}],301:[function(t,e,r){(function(u){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return t("crop",function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return O.throwError.call(this,"x and y must be numbers",i);if("number"!=typeof r||"number"!=typeof n)return O.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 o=r*e+t<<2,a=o+n*r<<3;this.bitmap.data=this.bitmap.data.slice(o,a)}else{var s=u.allocUnsafe(r*n*4),f=0;this.scanQuiet(t,e,r,n,function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);s.writeUInt32BE(n,f,!0),f+=4}),this.bitmap.data=s}return this.bitmap.width=r,this.bitmap.height=n,(0,O.isNodePattern)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,n=2e-4,i=!0,o=0,a=arguments.length;on)break t}u++}t:for(var g=0;gn)break t}l++}t:for(var w=r-1;u+1<=w;w--){for(var x=e-l-1;0<=x;x--){var E=this.getPixelColor(x,w),k=this.constructor.intToRGBA(E);if(this.constructor.colorDiff(f,k)>n)break t}h++}t:for(var S=e-1;0+l+1<=S;S--){for(var I=r-1;0+u<=I;I--){var j=this.getPixelColor(S,I),A=this.constructor.intToRGBA(j);if(this.constructor.colorDiff(f,A)>n)break t}c++}var T=e-(c+l),P=r-(h+u);return(i?0!==l&&0!==u&&0!==c&&0!==h:0!==l||0!==u||0!==c||0!==h)&&this.crop(l,u,T,P),(0,O.isNodePattern)(t)&&t.call(this,null,this),this}}}};var O=t("@jimp/utils");e.exports=r.default}).call(this,t("buffer").Buffer)},{"@jimp/utils":323,buffer:16,"core-js/modules/es6.object.define-property":129}],302:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol");var n=t("@jimp/utils");function i(t){return(i="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})(t)}r.default=function(){return{displace:function(o,a,t){if("object"!==i(o)||o.constructor!==this.constructor)return n.throwError.call(this,"The source must be a Jimp image",t);if("number"!=typeof a)return n.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=o.bitmap.data[r]/256*a;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,n.isNodePattern)(t)&&t.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":323,"core-js/modules/es6.object.define-property":129,"core-js/modules/es6.symbol":141,"core-js/modules/es7.symbol.async-iterator":148}],303:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),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":323,"core-js/modules/es6.object.define-property":129}],304:[function(n,i,o){(function(e){"use strict";n("core-js/modules/es6.object.define-property"),Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=n("@jimp/utils");function t(s,f,t){if("boolean"!=typeof s||"boolean"!=typeof f)return r.throwError.call(this,"horizontal and vertical must be Booleans",t);if(s&&f)return this.rotate(180,!0,t);var u=e.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=s?this.bitmap.width-1-t:t,i=f?this.bitmap.height-1-e:e,o=this.bitmap.width*i+n<<2,a=this.bitmap.data.readUInt32BE(r);u.writeUInt32BE(a,o)}),this.bitmap.data=e.from(u),(0,r.isNodePattern)(t)&&t.call(this,null,this),this}o.default=function(){return{flip:t,mirror:t}},i.exports=o.default}).call(this,n("buffer").Buffer)},{"@jimp/utils":323,buffer:16,"core-js/modules/es6.object.define-property":129}],305:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var _=t("@jimp/utils");r.default=function(){return{gaussian:function(t,e){if("number"!=typeof t)return _.throwError.call(this,"r must be a number",e);if(t<1)return _.throwError.call(this,"r must be greater than 0",e);for(var r=Math.ceil(2.57*t),n=0;nthis.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),(0,o.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":323,"core-js/modules/es6.object.define-property":129}],316:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es6.string.iterator"),t("core-js/modules/es6.array.from"),t("core-js/modules/es6.regexp.to-string"),t("core-js/modules/es6.date.to-string"),t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol"),t("core-js/modules/web.dom.iterable"),t("core-js/modules/es6.array.is-array"),t("core-js/modules/es6.array.map");var n=t("timm"),i=w(t("@jimp/plugin-dither")),o=w(t("@jimp/plugin-resize")),a=w(t("@jimp/plugin-blit")),s=w(t("@jimp/plugin-rotate")),f=w(t("@jimp/plugin-color")),u=w(t("@jimp/plugin-print")),l=w(t("@jimp/plugin-blur")),h=w(t("@jimp/plugin-crop")),c=w(t("@jimp/plugin-normalize")),d=w(t("@jimp/plugin-invert")),p=w(t("@jimp/plugin-gaussian")),m=w(t("@jimp/plugin-flip")),b=w(t("@jimp/plugin-mask")),g=w(t("@jimp/plugin-scale")),_=w(t("@jimp/plugin-displace")),v=w(t("@jimp/plugin-contain")),y=w(t("@jimp/plugin-cover"));function w(t){return t&&t.__esModule?t:{default:t}}function x(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e