doipjs/dist/doip.min.js

33 lines
750 KiB
JavaScript
Raw Normal View History

2022-10-24 13:59:11 -06:00
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).doip=e()}}((function(){return function e(t,i,A){function r(o,a){if(!i[o]){if(!t[o]){var s="function"==typeof require&&require;if(!a&&s)return s(o,!0);if(n)return n(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var I=i[o]={exports:{}};t[o][0].call(I.exports,(function(e){return r(t[o][1][e]||e)}),I,I.exports,e,t,i,A)}return i[o].exports}for(var n="function"==typeof require&&require,o=0;o<A.length;o++)r(A[o]);return r}({1:[function(e,t,i){t.exports=class{constructor(t="https://keyserver.ubuntu.com"){this._baseUrl=t,this._fetch="function"==typeof globalThis.fetch?globalThis.fetch:e("node-fetch")}lookup(e){let t=this._baseUrl+"/pks/lookup?op=get&options=mr&search=";const i=this._fetch;if(e.keyId)t+="0x"+encodeURIComponent(e.keyId);else{if(!e.query)throw new Error("You must provide a query parameter!");t+=encodeURIComponent(e.query)}return i(t).then((function(e){if(200===e.status)return e.text()})).then((function(e){if(e&&!(e.indexOf("-----END PGP PUBLIC KEY BLOCK-----")<0))return e.trim()}))}upload(e){const t=this._baseUrl+"/pks/add";return(0,this._fetch)(t,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"keytext="+encodeURIComponent(e)})}}},{"node-fetch":50}],2:[function(e,t,i){t.exports=class{constructor(){this._fetch="function"==typeof globalThis.fetch?globalThis.fetch:e("node-fetch");const{subtle:t}=globalThis.crypto||e("crypto").webcrypto||new(e("@peculiar/webcrypto").Crypto);this._subtle=t}async lookup(e){const t=this._fetch;if(!e.email)throw new Error("You must provide an email parameter!");if("string"!=typeof e.email||!e.email.includes("@"))throw new Error("Invalid e-mail address.");const[i,A]=e.email.split("@"),r=(new TextEncoder).encode(i.toLowerCase()),n=function(e){if(0===e.length)return"";const t="ybndrfg8ejkmcpqxot1uwisza345h769",i=5,A=31;let r=e[0],n=1,o=8,a="";for(;o>0||n<e.length;){if(o<i)if(n<e.length)r<<=8,r|=255&e[n++],o+=8;else{const e=i-o;r<<=e,o+=e}o-=i,a+=t[A&r>>o]}return a}(new Uint8Array(await this._subtle.digest("SHA-1",r))),o=encodeURIComponent(i),a=`https://openpgpkey.${A}/.well-known/openpgpkey/${A}/hu/${n}?l=${o}`,s=`https://${A}/.well-known/openpgpkey/hu/${n}?l=${o}`;let c;try{if(c=await t(a),200!==c.status)throw new Error("Advanced WKD lookup failed: "+c.statusText)}catch(e){if(c=await t(s),200!==c.status)throw new Error("Direct WKD lookup failed: "+c.statusText)}return new Uint8Array(await c.arrayBuffer())}}},{"@peculiar/webcrypto":50,crypto:50,"node-fetch":50}],3:[function(e,t,i){"use strict";const A=i;A.bignum=e("bn.js"),A.define=e("./asn1/api").define,A.base=e("./asn1/base"),A.constants=e("./asn1/constants"),A.decoders=e("./asn1/decoders"),A.encoders=e("./asn1/encoders")},{"./asn1/api":4,"./asn1/base":6,"./asn1/constants":10,"./asn1/decoders":12,"./asn1/encoders":15,"bn.js":47}],4:[function(e,t,i){"use strict";const A=e("./encoders"),r=e("./decoders"),n=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}i.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function i(e){this._initNamed(e,t)}return n(i,e),i.prototype._initNamed=function(t,i){e.call(this,t,i)},new i(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r[e])),this.decoders[e]},o.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(A[e])),this.encoders[e]},o.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},{"./decoders":12,"./encoders":15,inherits:169}],5:[function(e,t,i){"use strict";const A=e("inherits"),r=e("../base/reporter").Reporter,n=e("safer-buffer").Buffer;fun
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
"use strict";var t=e("base64-js"),A=e("ieee754");i.Buffer=o,i.SlowBuffer=function(e){+e!=e&&(e=0);return o.alloc(+e)},i.INSPECT_MAX_BYTES=50;var r=2147483647;function n(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,i)}function a(e,t,i){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var i=0|h(e,t),A=n(i),r=A.write(e,t);r!==i&&(A=A.slice(0,r));return A}(e,t);if(ArrayBuffer.isView(e))return I(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(x(e,ArrayBuffer)||e&&x(e.buffer,ArrayBuffer))return function(e,t,i){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');var A;A=void 0===t&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,t):new Uint8Array(e,t,i);return A.__proto__=o.prototype,A}(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var A=e.valueOf&&e.valueOf();if(null!=A&&A!==e)return o.from(A,t,i);var r=function(e){if(o.isBuffer(e)){var t=0|f(e.length),i=n(t);return 0===i.length||e.copy(i,0,0,t),i}if(void 0!==e.length)return"number"!=typeof e.length||J(e.length)?n(0):I(e);if("Buffer"===e.type&&Array.isArray(e.data))return I(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return s(e),n(e<0?0:0|f(e))}function I(e){for(var t=e.length<0?0:0|f(e.length),i=n(t),A=0;A<t;A+=1)i[A]=255&e[A];return i}function f(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||x(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,A=arguments.length>2&&!0===arguments[2];if(!A&&0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return K(e).length;default:if(r)return A?-1:R(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,i){var A=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,i);case"utf8":case"utf-8":return b(this,t,i);case"ascii":return v(this,t,i);case"latin1":case"binary":return D(this,t,i);case"base64":return m(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,i);default:if(A)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),A=!0}}function u(e,t,i){var A=e[t];e[t]=e[i],e[i]=A}function d(e,t,i,A,r){if(0===e.length)return-1;if("string"==typeof i?(A=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),J(i=+i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=o.from(t,A)),o.isBuffer(t))return 0===t.length?-1:l(e,t,i,A,r);if("number"==typeof t)return t&=255,"function"==typeof
2022-09-21 11:44:55 -06:00
/*!
* hash-wasm (https://www.npmjs.com/package/hash-wasm)
* (c) Dani Biro
* @license MIT
*/
2022-10-24 13:59:11 -06:00
!function(e,A){"object"==typeof i&&void 0!==t?A(i):A((e="undefined"!=typeof globalThis?globalThis:e||self).hashwasm={})}(this,(function(t){"use strict";
2022-09-21 11:44:55 -06:00
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
2022-10-24 13:59:11 -06:00
***************************************************************************** */function i(e,t,i,A){return new(i||(i=Promise))((function(r,n){function o(e){try{s(A.next(e))}catch(e){n(e)}}function a(e){try{s(A.throw(e))}catch(e){n(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}s((A=A.apply(e,t||[])).next())}))}class A{constructor(){this.mutex=Promise.resolve()}lock(){let e=()=>{};return this.mutex=this.mutex.then((()=>new Promise(e))),new Promise((t=>{e=t}))}dispatch(e){return i(this,void 0,void 0,(function*(){const t=yield this.lock();try{return yield Promise.resolve(e())}finally{t()}}))}}var r;const n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,o=null!==(r=n.Buffer)&&void 0!==r?r:null,a=n.TextEncoder?new n.TextEncoder:null;function s(e,t){return(15&e)+(e>>6|e>>3&8)<<4|(15&t)+(t>>6|t>>3&8)}function c(e,t){const i=t.length>>1;for(let A=0;A<i;A++){const i=A<<1;e[A]=s(t.charCodeAt(i),t.charCodeAt(i+1))}}const I="a".charCodeAt(0)-10,f="0".charCodeAt(0);function h(e,t,i){let A=0;for(let r=0;r<i;r++){let i=t[r]>>>4;e[A++]=i>9?i+I:i+f,i=15&t[r],e[A++]=i>9?i+I:i+f}return String.fromCharCode.apply(null,e)}const g=null!==o?e=>{if("string"==typeof e){const t=o.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(o.isBuffer(e))return new Uint8Array(e.buffer,e.byteOffset,e.length);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")}:e=>{if("string"==typeof e)return a.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=new Uint8Array(256);for(let e=0;e<u.length;e++)d[u.charCodeAt(e)]=e;function l(e,t=!0){const i=e.length,A=i%3,r=[],n=i-A;for(let t=0;t<n;t+=3){const i=(e[t]<<16&16711680)+(e[t+1]<<8&65280)+(255&e[t+2]),A=u.charAt(i>>18&63)+u.charAt(i>>12&63)+u.charAt(i>>6&63)+u.charAt(63&i);r.push(A)}if(1===A){const A=e[i-1],n=u.charAt(A>>2),o=u.charAt(A<<4&63);r.push(`${n}${o}`),t&&r.push("==")}else if(2===A){const A=(e[i-2]<<8)+e[i-1],n=u.charAt(A>>10),o=u.charAt(A>>4&63),a=u.charAt(A<<2&63);r.push(`${n}${o}${a}`),t&&r.push("=")}return r.join("")}function B(e){let t=Math.floor(.75*e.length);const i=e.length;return"="===e[i-1]&&(t-=1,"="===e[i-2]&&(t-=1)),t}function p(e){const t=B(e),i=e.length,A=new Uint8Array(t);let r=0;for(let t=0;t<i;t+=4){const i=d[e.charCodeAt(t)],n=d[e.charCodeAt(t+1)],o=d[e.charCodeAt(t+2)],a=d[e.charCodeAt(t+3)];A[r]=i<<2|n>>4,r+=1,A[r]=(15&n)<<4|o>>2,r+=1,A[r]=(3&o)<<6|63&a,r+=1}return A}const C=16384,Q=new A,E=new Map;function y(e,t){return i(this,void 0,void 0,(function*(){let A=null,r=null,n=!1;if("undefined"==typeof WebAssembly)throw new Error("WebAssembly is not supported in this environment!");const o=()=>new DataView(A.exports.memory.buffer).getUint32(A.exports.STATE_SIZE,!0),a=Q.dispatch((()=>i(this,void 0,void 0,(function*(){if(!E.has(e.name)){const t=p(e.data),i=WebAssembly.compile(t);E.set(e.name,i)}const t=yield E.get(e.name);A=yield WebAssembly.instantiate(t,{})})))),I=(e=null)=>{n=!0,A.exports.Hash_Init(e)},f=e=>{if(!n)throw new Error("update() called before init()");(e=>{let t=0;for(;t<e.length;){const i=e.subarray(t,t+C);t+=i.length,r.set(i),A.exports.Hash_Update(i.length)}})(g(e))},u=new Uint8Array(2*t),d=(e,i=null)=>{if(!n)throw new Error("digest() called before init()");return n=!1,A.exports.Hash_Final(i),"binary"===e?r.slice(0,t):h(u,r,t)},l=e=>"string"==typeof e?e.length<4096:e.byteLength<C;let B=l;switch(e.name){case"argon2":case"scrypt":B=()=>!0;break;case"blake2b":case"blake2s":B=(e,t)=>t<=512&&l(e);break;case"blake3":B=(e,t)=>0===t&&l(e);break;case"xxhash64":case"xxhash3":case"xxhash128":B=()=>!1}return yield(()=>i(this,void 0,void 0,(function*(){A||(yield a);const e=A.exports.Hash_GetBuffer(),t=A.exports.memory.buffer;r=new Uint8Array(t,e,C)})))(),{getMemory:()=>r,writeMemory:(e,t=0)=>{r.set(e,t)},getExports:()=>A.export
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
i.read=function(e,t,i,A,r){var n,o,a=8*r-A-1,s=(1<<a)-1,c=s>>1,I=-7,f=i?r-1:0,h=i?-1:1,g=e[t+f];for(f+=h,n=g&(1<<-I)-1,g>>=-I,I+=a;I>0;n=256*n+e[t+f],f+=h,I-=8);for(o=n&(1<<-I)-1,n>>=-I,I+=A;I>0;o=256*o+e[t+f],f+=h,I-=8);if(0===n)n=1-c;else{if(n===s)return o?NaN:1/0*(g?-1:1);o+=Math.pow(2,A),n-=c}return(g?-1:1)*o*Math.pow(2,n-A)},i.write=function(e,t,i,A,r,n){var o,a,s,c=8*n-r-1,I=(1<<c)-1,f=I>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,g=A?0:n-1,u=A?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=I):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?h/s:h*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=I?(a=0,o=I):o+f>=1?(a=(t*s-1)*Math.pow(2,r),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,r),o=0));r>=8;e[i+g]=255&a,g+=u,a/=256,r-=8);for(o=o<<r|a,c+=r;c>0;e[i+g]=255&o,g+=u,o/=256,c-=8);e[i+g-u]|=128*d}},{}],169:[function(e,t,i){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}},{}],170:[function(e,t,i){"use strict";t.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},{}],171:[function(e,t,i){"use strict";var A=e("inherits"),r=e("hash-base"),n=e("safe-buffer").Buffer,o=new Array(16);function a(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<<t|e>>>32-t}function c(e,t,i,A,r,n,o){return s(e+(t&i|~t&A)+r+n|0,o)+t|0}function I(e,t,i,A,r,n,o){return s(e+(t&A|i&~A)+r+n|0,o)+t|0}function f(e,t,i,A,r,n,o){return s(e+(t^i^A)+r+n|0,o)+t|0}function h(e,t,i,A,r,n,o){return s(e+(i^(t|~A))+r+n|0,o)+t|0}A(a,r),a.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,A=this._b,r=this._c,n=this._d;i=c(i,A,r,n,e[0],3614090360,7),n=c(n,i,A,r,e[1],3905402710,12),r=c(r,n,i,A,e[2],606105819,17),A=c(A,r,n,i,e[3],3250441966,22),i=c(i,A,r,n,e[4],4118548399,7),n=c(n,i,A,r,e[5],1200080426,12),r=c(r,n,i,A,e[6],2821735955,17),A=c(A,r,n,i,e[7],4249261313,22),i=c(i,A,r,n,e[8],1770035416,7),n=c(n,i,A,r,e[9],2336552879,12),r=c(r,n,i,A,e[10],4294925233,17),A=c(A,r,n,i,e[11],2304563134,22),i=c(i,A,r,n,e[12],1804603682,7),n=c(n,i,A,r,e[13],4254626195,12),r=c(r,n,i,A,e[14],2792965006,17),i=I(i,A=c(A,r,n,i,e[15],1236535329,22),r,n,e[1],4129170786,5),n=I(n,i,A,r,e[6],3225465664,9),r=I(r,n,i,A,e[11],643717713,14),A=I(A,r,n,i,e[0],3921069994,20),i=I(i,A,r,n,e[5],3593408605,5),n=I(n,i,A,r,e[10],38016083,9),r=I(r,n,i,A,e[15],3634488961,14),A=I(A,r,n,i,e[4],3889429448,20),i=I(i,A,r,n,e[9],568446438,5),n=I(n,i,A,r,e[14],3275163606,9),r=I(r,n,i,A,e[3],4107603335,14),A=I(A,r,n,i,e[8],1163531501,20),i=I(i,A,r,n,e[13],2850285829,5),n=I(n,i,A,r,e[2],4243563512,9),r=I(r,n,i,A,e[7],1735328473,14),i=f(i,A=I(A,r,n,i,e[12],2368359562,20),r,n,e[5],4294588738,4),n=f(n,i,A,r,e[8],2272392833,11),r=f(r,n,i,A,e[11],1839030562,16),A=f(A,r,n,i,e[14],4259657740,23),i=f(i,A,r,n,e[1],2763975236,4),n=f(n,i,A,r,e[4],1272893353,11),r=f(r,n,i,A,e[7],4139469664,16),A=f(A,r,n,i,e[10],3200236656,23),i=f(i,A,r,n,e[13],681279174,4),n=f(n,i,A,r,e[0],3936430074,11),r=f(r,n,i,A,e[3],3572445317,16),A=f(A,r,n,i,e[6],76029189,23),i=f(i,A,r,n,e[9],3654602809,4),n=f(n,i,A,r,e[12],3873151461,11),r=f(r,n,i,A,e[15],530742520,16),i=h(i,A=f(A,r,n,i,e[2],3299628645,23),r,n,e[0],4096336452,6),n=h(n,i,A,r,e[7],1126891415,10),r=h(r,n,i,A,e[14],2878612391,15),A=h(A,r,n,i,e[5],4237533241,21),i=h(i,A,r,n,e[12],1700485571,6),n=h(n,i,A,r,e[3],2399980690,10),r=h(r,n,i,A,e[10],4293915773,15),A=h(A,r,n,i,e[1],2240044497,21),i=h(i,A,r,n,e[8],1873313359,6),n=h(n,i,A,r,e[15],4264355552,10),r=h(r,n,i,A,e[6],2734768916,15),A=h(A,r,n,i,e[13],1309151649,21),i=h(i,A,r,n,e[4],4149444226,6),n=h(n,i,A,r,e[11],3174756917,10),r=h(r,n,i,A,e[2],718787259,15),A=h(A,r,n,i,e[9],3951481745,21),this._a=this._a+i|0,this.
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
2022-10-27 14:17:03 -06:00
var A=e("buffer"),r=A.Buffer;function n(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=A:(n(A,i),i.Buffer=o),o.prototype=Object.create(r.prototype),n(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var A=r(e);return void 0!==t?"string"==typeof i?A.fill(t,i):A.fill(t):A.fill(0),A},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return A.SlowBuffer(e)}},{buffer:99}],199:[function(e,t,i){(function(i){(function(){"use strict";var A,r=e("buffer"),n=r.Buffer,o={};for(A in r)r.hasOwnProperty(A)&&"SlowBuffer"!==A&&"Buffer"!==A&&(o[A]=r[A]);var a=o.Buffer={};for(A in n)n.hasOwnProperty(A)&&"allocUnsafe"!==A&&"allocUnsafeSlow"!==A&&(a[A]=n[A]);if(o.Buffer.prototype=n.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(e,t,i){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return n(e,t,i)}),a.alloc||(a.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var A=n(e);return t&&0!==t.length?"string"==typeof i?A.fill(t,i):A.fill(t):A.fill(0),A}),!o.kStringMaxLength)try{o.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this)}).call(this,e("_process"))},{_process:187,buffer:99}],200:[function(e,t,i){var A=e("safe-buffer").Buffer;function r(e,t){this._block=A.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=A.from(e,t));for(var i=this._block,r=this._blockSize,n=e.length,o=this._len,a=0;a<n;){for(var s=o%r,c=Math.min(n-a,r-s),I=0;I<c;I++)i[s+I]=e[a+I];a+=c,(o+=c)%r==0&&this._update(i)}return this._len+=n,this},r.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var A=(4294967295&i)>>>0,r=(i-A)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(A,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},{"safe-buffer":198}],201:[function(e,t,i){(i=t.exports=function(e){e=e.toLowerCase();var t=i[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),i.sha1=e("./sha1"),i.sha224=e("./sha224"),i.sha256=e("./sha256"),i.sha384=e("./sha384"),i.sha512=e("./sha512")},{"./sha":202,"./sha1":203,"./sha224":204,"./sha256":205,"./sha384":206,"./sha512":207}],202:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e){return e<<30|e>>>2}function I(e,t,i,A){return 0===e?t&i|~t&A:2===e?t&i|t&A|i&A:t^i^A}A(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,f=0;f<16;++f)i[f]=e.readInt32BE(4*f);for(;f<80;++f)i[f]=i[f-3]^i[f-8]^i[f-14]^i[f-16];for(var