Socket
Socket
Sign inDemoInstall

multiaddr

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiaddr - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

dist/multiaddr.min.js

@@ -1,3 +0,3 @@

(function(t){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=t()}else if(typeof define==="function"&&define.amd){define([],t)}else{var r;if(typeof window!=="undefined"){r=window}else if(typeof global!=="undefined"){r=global}else if(typeof self!=="undefined"){r=self}else{r=this}r.multiaddr=t()}})(function(){var t,r,e;return function n(t,r,e){function i(a,f){if(!r[a]){if(!t[a]){var u=typeof require=="function"&&require;if(!f&&u)return u(a,!0);if(o)return o(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var l=r[a]={exports:{}};t[a][0].call(l.exports,function(r){var e=t[a][1][r];return i(e?e:r)},l,l.exports,n,t,r,e)}return r[a].exports}var o=typeof require=="function"&&require;for(var a=0;a<e.length;a++)i(e[a]);return i}({1:[function(t,r,e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(t){"use strict";var r=typeof Uint8Array!=="undefined"?Uint8Array:Array;var e="+".charCodeAt(0);var i="/".charCodeAt(0);var o="0".charCodeAt(0);var a="a".charCodeAt(0);var f="A".charCodeAt(0);var u="-".charCodeAt(0);var s="_".charCodeAt(0);function l(t){var r=t.charCodeAt(0);if(r===e||r===u)return 62;if(r===i||r===s)return 63;if(r<o)return-1;if(r<o+10)return r-o+26+26;if(r<f+26)return r-f;if(r<a+26)return r-a+26}function h(t){var e,n,i,o,a,f;if(t.length%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var u=t.length;a="="===t.charAt(u-2)?2:"="===t.charAt(u-1)?1:0;f=new r(t.length*3/4-a);i=a>0?t.length-4:t.length;var s=0;function h(t){f[s++]=t}for(e=0,n=0;e<i;e+=4,n+=3){o=l(t.charAt(e))<<18|l(t.charAt(e+1))<<12|l(t.charAt(e+2))<<6|l(t.charAt(e+3));h((o&16711680)>>16);h((o&65280)>>8);h(o&255)}if(a===2){o=l(t.charAt(e))<<2|l(t.charAt(e+1))>>4;h(o&255)}else if(a===1){o=l(t.charAt(e))<<10|l(t.charAt(e+1))<<4|l(t.charAt(e+2))>>2;h(o>>8&255);h(o&255)}return f}function c(t){var r,e=t.length%3,i="",o,a;function f(t){return n.charAt(t)}function u(t){return f(t>>18&63)+f(t>>12&63)+f(t>>6&63)+f(t&63)}for(r=0,a=t.length-e;r<a;r+=3){o=(t[r]<<16)+(t[r+1]<<8)+t[r+2];i+=u(o)}switch(e){case 1:o=t[t.length-1];i+=f(o>>2);i+=f(o<<4&63);i+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1];i+=f(o>>10);i+=f(o>>4&63);i+=f(o<<2&63);i+="=";break}return i}t.toByteArray=h;t.fromByteArray=c})(typeof e==="undefined"?this.base64js={}:e)},{}],2:[function(t,r,e){var n=t("buffer").Buffer;r.exports=function(t,r){if(!n.isBuffer(t))return undefined;if(!n.isBuffer(r))return undefined;if(typeof t.equals==="function")return t.equals(r);if(t.length!==r.length)return false;for(var e=0;e<t.length;e++){if(t[e]!==r[e])return false}return true}},{buffer:3}],3:[function(t,r,e){(function(r){var n=t("base64-js");var i=t("ieee754");var o=t("is-array");e.Buffer=s;e.SlowBuffer=m;e.INSPECT_MAX_BYTES=50;s.poolSize=8192;var a={};s.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==undefined?r.TYPED_ARRAY_SUPPORT:f();function f(){function t(){}try{var r=new Uint8Array(1);r.foo=function(){return 42};r.constructor=t;return r.foo()===42&&r.constructor===t&&typeof r.subarray==="function"&&r.subarray(1,1).byteLength===0}catch(e){return false}}function u(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t){if(!(this instanceof s)){if(arguments.length>1)return new s(t,arguments[1]);return new s(t)}this.length=0;this.parent=undefined;if(typeof t==="number"){return l(this,t)}if(typeof t==="string"){return h(this,t,arguments.length>1?arguments[1]:"utf8")}return c(this,t)}function l(t,r){t=b(t,r<0?0:E(r)|0);if(!s.TYPED_ARRAY_SUPPORT){for(var e=0;e<r;e++){t[e]=0}}return t}function h(t,r,e){if(typeof e!=="string"||e==="")e="utf8";var n=_(r,e)|0;t=b(t,n);t.write(r,e);return t}function c(t,r){if(s.isBuffer(r))return p(t,r);if(o(r))return d(t,r);if(r==null){throw new TypeError("must start with number, buffer, array or string")}if(typeof ArrayBuffer!=="undefined"){if(r.buffer instanceof ArrayBuffer){return v(t,r)}if(r instanceof ArrayBuffer){return g(t,r)}}if(r.length)return w(t,r);return y(t,r)}function p(t,r){var e=E(r.length)|0;t=b(t,e);r.copy(t,0,0,e);return t}function d(t,r){var e=E(r.length)|0;t=b(t,e);for(var n=0;n<e;n+=1){t[n]=r[n]&255}return t}function v(t,r){var e=E(r.length)|0;t=b(t,e);for(var n=0;n<e;n+=1){t[n]=r[n]&255}return t}function g(t,r){if(s.TYPED_ARRAY_SUPPORT){r.byteLength;t=s._augment(new Uint8Array(r))}else{t=v(t,new Uint8Array(r))}return t}function w(t,r){var e=E(r.length)|0;t=b(t,e);for(var n=0;n<e;n+=1){t[n]=r[n]&255}return t}function y(t,r){var e;var n=0;if(r.type==="Buffer"&&o(r.data)){e=r.data;n=E(e.length)|0}t=b(t,n);for(var i=0;i<n;i+=1){t[i]=e[i]&255}return t}if(s.TYPED_ARRAY_SUPPORT){s.prototype.__proto__=Uint8Array.prototype;s.__proto__=Uint8Array}function b(t,r){if(s.TYPED_ARRAY_SUPPORT){t=s._augment(new Uint8Array(r));t.__proto__=s.prototype}else{t.length=r;t._isBuffer=true}var e=r!==0&&r<=s.poolSize>>>1;if(e)t.parent=a;return t}function E(t){if(t>=u()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+u().toString(16)+" bytes")}return t|0}function m(t,r){if(!(this instanceof m))return new m(t,r);var e=new s(t,r);delete e.parent;return e}s.isBuffer=function rt(t){return!!(t!=null&&t._isBuffer)};s.compare=function et(t,r){if(!s.isBuffer(t)||!s.isBuffer(r)){throw new TypeError("Arguments must be Buffers")}if(t===r)return 0;var e=t.length;var n=r.length;var i=0;var o=Math.min(e,n);while(i<o){if(t[i]!==r[i])break;++i}if(i!==o){e=t[i];n=r[i]}if(e<n)return-1;if(n<e)return 1;return 0};s.isEncoding=function nt(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};s.concat=function it(t,r){if(!o(t))throw new TypeError("list argument must be an Array of Buffers.");if(t.length===0){return new s(0)}var e;if(r===undefined){r=0;for(e=0;e<t.length;e++){r+=t[e].length}}var n=new s(r);var i=0;for(e=0;e<t.length;e++){var a=t[e];a.copy(n,i);i+=a.length}return n};function _(t,r){if(typeof t!=="string")t=""+t;var e=t.length;if(e===0)return 0;var n=false;for(;;){switch(r){case"ascii":case"binary":case"raw":case"raws":return e;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Q(t).length;default:if(n)return Z(t).length;r=(""+r).toLowerCase();n=true}}}s.byteLength=_;s.prototype.length=undefined;s.prototype.parent=undefined;function A(t,r,e){var n=false;r=r|0;e=e===undefined||e===Infinity?this.length:e|0;if(!t)t="utf8";if(r<0)r=0;if(e>this.length)e=this.length;if(e<=r)return"";while(true){switch(t){case"hex":return Y(this,r,e);case"utf8":case"utf-8":return L(this,r,e);case"ascii":return O(this,r,e);case"binary":return k(this,r,e);case"base64":return P(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase();n=true}}}s.prototype.toString=function ot(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return L(this,0,t);return A.apply(this,arguments)};s.prototype.equals=function at(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return s.compare(this,t)===0};s.prototype.inspect=function ft(){var t="";var r=e.INSPECT_MAX_BYTES;if(this.length>0){t=this.toString("hex",0,r).match(/.{2}/g).join(" ");if(this.length>r)t+=" ... "}return"<Buffer "+t+">"};s.prototype.compare=function ut(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return 0;return s.compare(this,t)};s.prototype.indexOf=function st(t,r){if(r>2147483647)r=2147483647;else if(r<-2147483648)r=-2147483648;r>>=0;if(this.length===0)return-1;if(r>=this.length)return-1;if(r<0)r=Math.max(this.length+r,0);if(typeof t==="string"){if(t.length===0)return-1;return String.prototype.indexOf.call(this,t,r)}if(s.isBuffer(t)){return e(this,t,r)}if(typeof t==="number"){if(s.TYPED_ARRAY_SUPPORT&&Uint8Array.prototype.indexOf==="function"){return Uint8Array.prototype.indexOf.call(this,t,r)}return e(this,[t],r)}function e(t,r,e){var n=-1;for(var i=0;e+i<t.length;i++){if(t[e+i]===r[n===-1?0:i-n]){if(n===-1)n=i;if(i-n+1===r.length)return e+n}else{n=-1}}return-1}throw new TypeError("val must be string, number or Buffer")};s.prototype.get=function lt(t){console.log(".get() is deprecated. Access using array indexes instead.");return this.readUInt8(t)};s.prototype.set=function ht(t,r){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(t,r)};function B(t,r,e,n){e=Number(e)||0;var i=t.length-e;if(!n){n=i}else{n=Number(n);if(n>i){n=i}}var o=r.length;if(o%2!==0)throw new Error("Invalid hex string");if(n>o/2){n=o/2}for(var a=0;a<n;a++){var f=parseInt(r.substr(a*2,2),16);if(isNaN(f))throw new Error("Invalid hex string");t[e+a]=f}return a}function I(t,r,e,n){return tt(Z(r,t.length-e),t,e,n)}function S(t,r,e,n){return tt(G(r),t,e,n)}function T(t,r,e,n){return S(t,r,e,n)}function U(t,r,e,n){return tt(Q(r),t,e,n)}function R(t,r,e,n){return tt(K(r,t.length-e),t,e,n)}s.prototype.write=function ct(t,r,e,n){if(r===undefined){n="utf8";e=this.length;r=0}else if(e===undefined&&typeof r==="string"){n=r;e=this.length;r=0}else if(isFinite(r)){r=r|0;if(isFinite(e)){e=e|0;if(n===undefined)n="utf8"}else{n=e;e=undefined}}else{var i=n;n=r;r=e|0;e=i}var o=this.length-r;if(e===undefined||e>o)e=o;if(t.length>0&&(e<0||r<0)||r>this.length){throw new RangeError("attempt to write outside buffer bounds")}if(!n)n="utf8";var a=false;for(;;){switch(n){case"hex":return B(this,t,r,e);case"utf8":case"utf-8":return I(this,t,r,e);case"ascii":return S(this,t,r,e);case"binary":return T(this,t,r,e);case"base64":return U(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r,e);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();a=true}}};s.prototype.toJSON=function pt(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(t,r,e){if(r===0&&e===t.length){return n.fromByteArray(t)}else{return n.fromByteArray(t.slice(r,e))}}function L(t,r,e){e=Math.min(t.length,e);var n=[];var i=r;while(i<e){var o=t[i];var a=null;var f=o>239?4:o>223?3:o>191?2:1;if(i+f<=e){var u,s,l,h;switch(f){case 1:if(o<128){a=o}break;case 2:u=t[i+1];if((u&192)===128){h=(o&31)<<6|u&63;if(h>127){a=h}}break;case 3:u=t[i+1];s=t[i+2];if((u&192)===128&&(s&192)===128){h=(o&15)<<12|(u&63)<<6|s&63;if(h>2047&&(h<55296||h>57343)){a=h}}break;case 4:u=t[i+1];s=t[i+2];l=t[i+3];if((u&192)===128&&(s&192)===128&&(l&192)===128){h=(o&15)<<18|(u&63)<<12|(s&63)<<6|l&63;if(h>65535&&h<1114112){a=h}}}}if(a===null){a=65533;f=1}else if(a>65535){a-=65536;n.push(a>>>10&1023|55296);a=56320|a&1023}n.push(a);i+=f}return j(n)}var x=4096;function j(t){var r=t.length;if(r<=x){return String.fromCharCode.apply(String,t)}var e="";var n=0;while(n<r){e+=String.fromCharCode.apply(String,t.slice(n,n+=x))}return e}function O(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;i++){n+=String.fromCharCode(t[i]&127)}return n}function k(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;i++){n+=String.fromCharCode(t[i])}return n}function Y(t,r,e){var n=t.length;if(!r||r<0)r=0;if(!e||e<0||e>n)e=n;var i="";for(var o=r;o<e;o++){i+=H(t[o])}return i}function D(t,r,e){var n=t.slice(r,e);var i="";for(var o=0;o<n.length;o+=2){i+=String.fromCharCode(n[o]+n[o+1]*256)}return i}s.prototype.slice=function dt(t,r){var e=this.length;t=~~t;r=r===undefined?e:~~r;if(t<0){t+=e;if(t<0)t=0}else if(t>e){t=e}if(r<0){r+=e;if(r<0)r=0}else if(r>e){r=e}if(r<t)r=t;var n;if(s.TYPED_ARRAY_SUPPORT){n=s._augment(this.subarray(t,r))}else{var i=r-t;n=new s(i,undefined);for(var o=0;o<i;o++){n[o]=this[o+t]}}if(n.length)n.parent=this.parent||this;return n};function M(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUIntLE=function vt(t,r,e){t=t|0;r=r|0;if(!e)M(t,r,this.length);var n=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){n+=this[t+o]*i}return n};s.prototype.readUIntBE=function gt(t,r,e){t=t|0;r=r|0;if(!e){M(t,r,this.length)}var n=this[t+--r];var i=1;while(r>0&&(i*=256)){n+=this[t+--r]*i}return n};s.prototype.readUInt8=function wt(t,r){if(!r)M(t,1,this.length);return this[t]};s.prototype.readUInt16LE=function yt(t,r){if(!r)M(t,2,this.length);return this[t]|this[t+1]<<8};s.prototype.readUInt16BE=function bt(t,r){if(!r)M(t,2,this.length);return this[t]<<8|this[t+1]};s.prototype.readUInt32LE=function Et(t,r){if(!r)M(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};s.prototype.readUInt32BE=function mt(t,r){if(!r)M(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};s.prototype.readIntLE=function _t(t,r,e){t=t|0;r=r|0;if(!e)M(t,r,this.length);var n=this[t];var i=1;var o=0;while(++o<r&&(i*=256)){n+=this[t+o]*i}i*=128;if(n>=i)n-=Math.pow(2,8*r);return n};s.prototype.readIntBE=function At(t,r,e){t=t|0;r=r|0;if(!e)M(t,r,this.length);var n=r;var i=1;var o=this[t+--n];while(n>0&&(i*=256)){o+=this[t+--n]*i}i*=128;if(o>=i)o-=Math.pow(2,8*r);return o};s.prototype.readInt8=function Bt(t,r){if(!r)M(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};s.prototype.readInt16LE=function It(t,r){if(!r)M(t,2,this.length);var e=this[t]|this[t+1]<<8;return e&32768?e|4294901760:e};s.prototype.readInt16BE=function St(t,r){if(!r)M(t,2,this.length);var e=this[t+1]|this[t]<<8;return e&32768?e|4294901760:e};s.prototype.readInt32LE=function Tt(t,r){if(!r)M(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};s.prototype.readInt32BE=function Ut(t,r){if(!r)M(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};s.prototype.readFloatLE=function Rt(t,r){if(!r)M(t,4,this.length);return i.read(this,t,true,23,4)};s.prototype.readFloatBE=function Pt(t,r){if(!r)M(t,4,this.length);return i.read(this,t,false,23,4)};s.prototype.readDoubleLE=function Lt(t,r){if(!r)M(t,8,this.length);return i.read(this,t,true,52,8)};s.prototype.readDoubleBE=function xt(t,r){if(!r)M(t,8,this.length);return i.read(this,t,false,52,8)};function C(t,r,e,n,i,o){if(!s.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(r>i||r<o)throw new RangeError("value is out of bounds");if(e+n>t.length)throw new RangeError("index out of range")}s.prototype.writeUIntLE=function jt(t,r,e,n){t=+t;r=r|0;e=e|0;if(!n)C(this,t,r,e,Math.pow(2,8*e),0);var i=1;var o=0;this[r]=t&255;while(++o<e&&(i*=256)){this[r+o]=t/i&255}return r+e};s.prototype.writeUIntBE=function Ot(t,r,e,n){t=+t;r=r|0;e=e|0;if(!n)C(this,t,r,e,Math.pow(2,8*e),0);var i=e-1;var o=1;this[r+i]=t&255;while(--i>=0&&(o*=256)){this[r+i]=t/o&255}return r+e};s.prototype.writeUInt8=function kt(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,1,255,0);if(!s.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[r]=t&255;return r+1};function N(t,r,e,n){if(r<0)r=65535+r+1;for(var i=0,o=Math.min(t.length-e,2);i<o;i++){t[e+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}}s.prototype.writeUInt16LE=function Yt(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,2,65535,0);if(s.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{N(this,t,r,true)}return r+2};s.prototype.writeUInt16BE=function Dt(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,2,65535,0);if(s.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{N(this,t,r,false)}return r+2};function F(t,r,e,n){if(r<0)r=4294967295+r+1;for(var i=0,o=Math.min(t.length-e,4);i<o;i++){t[e+i]=r>>>(n?i:3-i)*8&255}}s.prototype.writeUInt32LE=function Mt(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,4,4294967295,0);if(s.TYPED_ARRAY_SUPPORT){this[r+3]=t>>>24;this[r+2]=t>>>16;this[r+1]=t>>>8;this[r]=t&255}else{F(this,t,r,true)}return r+4};s.prototype.writeUInt32BE=function Ct(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,4,4294967295,0);if(s.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{F(this,t,r,false)}return r+4};s.prototype.writeIntLE=function Nt(t,r,e,n){t=+t;r=r|0;if(!n){var i=Math.pow(2,8*e-1);C(this,t,r,e,i-1,-i)}var o=0;var a=1;var f=t<0?1:0;this[r]=t&255;while(++o<e&&(a*=256)){this[r+o]=(t/a>>0)-f&255}return r+e};s.prototype.writeIntBE=function Ft(t,r,e,n){t=+t;r=r|0;if(!n){var i=Math.pow(2,8*e-1);C(this,t,r,e,i-1,-i)}var o=e-1;var a=1;var f=t<0?1:0;this[r+o]=t&255;while(--o>=0&&(a*=256)){this[r+o]=(t/a>>0)-f&255}return r+e};s.prototype.writeInt8=function qt(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,1,127,-128);if(!s.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[r]=t&255;return r+1};s.prototype.writeInt16LE=function $t(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,2,32767,-32768);if(s.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{N(this,t,r,true)}return r+2};s.prototype.writeInt16BE=function zt(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,2,32767,-32768);if(s.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{N(this,t,r,false)}return r+2};s.prototype.writeInt32LE=function Vt(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,4,2147483647,-2147483648);if(s.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8;this[r+2]=t>>>16;this[r+3]=t>>>24}else{F(this,t,r,true)}return r+4};s.prototype.writeInt32BE=function Xt(t,r,e){t=+t;r=r|0;if(!e)C(this,t,r,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(s.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{F(this,t,r,false)}return r+4};function q(t,r,e,n,i,o){if(r>i||r<o)throw new RangeError("value is out of bounds");if(e+n>t.length)throw new RangeError("index out of range");if(e<0)throw new RangeError("index out of range")}function $(t,r,e,n,o){if(!o){q(t,r,e,4,3.4028234663852886e38,-3.4028234663852886e38)}i.write(t,r,e,n,23,4);return e+4}s.prototype.writeFloatLE=function Jt(t,r,e){return $(this,t,r,true,e)};s.prototype.writeFloatBE=function Wt(t,r,e){return $(this,t,r,false,e)};function z(t,r,e,n,o){if(!o){q(t,r,e,8,1.7976931348623157e308,-1.7976931348623157e308)}i.write(t,r,e,n,52,8);return e+8}s.prototype.writeDoubleLE=function Ht(t,r,e){return z(this,t,r,true,e)};s.prototype.writeDoubleBE=function Zt(t,r,e){return z(this,t,r,false,e)};s.prototype.copy=function Gt(t,r,e,n){if(!e)e=0;if(!n&&n!==0)n=this.length;if(r>=t.length)r=t.length;if(!r)r=0;if(n>0&&n<e)n=e;if(n===e)return 0;if(t.length===0||this.length===0)return 0;if(r<0){throw new RangeError("targetStart out of bounds")}if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");if(n>this.length)n=this.length;if(t.length-r<n-e){n=t.length-r+e}var i=n-e;var o;if(this===t&&e<r&&r<n){for(o=i-1;o>=0;o--){t[o+r]=this[o+e]}}else if(i<1e3||!s.TYPED_ARRAY_SUPPORT){for(o=0;o<i;o++){t[o+r]=this[o+e]}}else{t._set(this.subarray(e,e+i),r)}return i};s.prototype.fill=function Kt(t,r,e){if(!t)t=0;if(!r)r=0;if(!e)e=this.length;if(e<r)throw new RangeError("end < start");if(e===r)return;if(this.length===0)return;if(r<0||r>=this.length)throw new RangeError("start out of bounds");if(e<0||e>this.length)throw new RangeError("end out of bounds");var n;if(typeof t==="number"){for(n=r;n<e;n++){this[n]=t}}else{var i=Z(t.toString());var o=i.length;for(n=r;n<e;n++){this[n]=i[n%o]}}return this};s.prototype.toArrayBuffer=function Qt(){if(typeof Uint8Array!=="undefined"){if(s.TYPED_ARRAY_SUPPORT){return new s(this).buffer}else{var t=new Uint8Array(this.length);for(var r=0,e=t.length;r<e;r+=1){t[r]=this[r]}return t.buffer}}else{throw new TypeError("Buffer.toArrayBuffer not supported in this browser")}};var V=s.prototype;s._augment=function tr(t){t.constructor=s;t._isBuffer=true;t._set=t.set;t.get=V.get;t.set=V.set;t.write=V.write;t.toString=V.toString;t.toLocaleString=V.toString;t.toJSON=V.toJSON;t.equals=V.equals;t.compare=V.compare;t.indexOf=V.indexOf;t.copy=V.copy;t.slice=V.slice;t.readUIntLE=V.readUIntLE;t.readUIntBE=V.readUIntBE;t.readUInt8=V.readUInt8;t.readUInt16LE=V.readUInt16LE;t.readUInt16BE=V.readUInt16BE;t.readUInt32LE=V.readUInt32LE;t.readUInt32BE=V.readUInt32BE;t.readIntLE=V.readIntLE;t.readIntBE=V.readIntBE;t.readInt8=V.readInt8;t.readInt16LE=V.readInt16LE;t.readInt16BE=V.readInt16BE;t.readInt32LE=V.readInt32LE;t.readInt32BE=V.readInt32BE;t.readFloatLE=V.readFloatLE;t.readFloatBE=V.readFloatBE;t.readDoubleLE=V.readDoubleLE;t.readDoubleBE=V.readDoubleBE;t.writeUInt8=V.writeUInt8;t.writeUIntLE=V.writeUIntLE;t.writeUIntBE=V.writeUIntBE;t.writeUInt16LE=V.writeUInt16LE;t.writeUInt16BE=V.writeUInt16BE;t.writeUInt32LE=V.writeUInt32LE;t.writeUInt32BE=V.writeUInt32BE;t.writeIntLE=V.writeIntLE;t.writeIntBE=V.writeIntBE;t.writeInt8=V.writeInt8;t.writeInt16LE=V.writeInt16LE;t.writeInt16BE=V.writeInt16BE;t.writeInt32LE=V.writeInt32LE;t.writeInt32BE=V.writeInt32BE;t.writeFloatLE=V.writeFloatLE;t.writeFloatBE=V.writeFloatBE;t.writeDoubleLE=V.writeDoubleLE;t.writeDoubleBE=V.writeDoubleBE;t.fill=V.fill;t.inspect=V.inspect;t.toArrayBuffer=V.toArrayBuffer;return t};var X=/[^+\/0-9A-Za-z-_]/g;function J(t){t=W(t).replace(X,"");if(t.length<2)return"";while(t.length%4!==0){t=t+"="}return t}function W(t){if(t.trim)return t.trim();return t.replace(/^\s+|\s+$/g,"")}function H(t){if(t<16)return"0"+t.toString(16);return t.toString(16)}function Z(t,r){r=r||Infinity;var e;var n=t.length;var i=null;var o=[];for(var a=0;a<n;a++){e=t.charCodeAt(a);if(e>55295&&e<57344){if(!i){if(e>56319){if((r-=3)>-1)o.push(239,191,189);continue}else if(a+1===n){if((r-=3)>-1)o.push(239,191,189);continue}i=e;continue}if(e<56320){if((r-=3)>-1)o.push(239,191,189);i=e;continue}e=i-55296<<10|e-56320|65536}else if(i){if((r-=3)>-1)o.push(239,191,189)}i=null;if(e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else{throw new Error("Invalid code point")}}return o}function G(t){var r=[];for(var e=0;e<t.length;e++){r.push(t.charCodeAt(e)&255)}return r}function K(t,r){var e,n,i;var o=[];for(var a=0;a<t.length;a++){if((r-=2)<0)break;e=t.charCodeAt(a);n=e>>8;i=e%256;o.push(i);o.push(n)}return o}function Q(t){return n.toByteArray(J(t))}function tt(t,r,e,n){for(var i=0;i<n;i++){if(i+e>=r.length||i>=t.length)break;r[i+e]=t[i]}return i}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"base64-js":1,ieee754:4,"is-array":6}],4:[function(t,r,e){e.read=function(t,r,e,n,i){var o,a;var f=i*8-n-1;var u=(1<<f)-1;var s=u>>1;var l=-7;var h=e?i-1:0;var c=e?-1:1;var p=t[r+h];h+=c;o=p&(1<<-l)-1;p>>=-l;l+=f;for(;l>0;o=o*256+t[r+h],h+=c,l-=8){}a=o&(1<<-l)-1;o>>=-l;l+=n;for(;l>0;a=a*256+t[r+h],h+=c,l-=8){}if(o===0){o=1-s}else if(o===u){return a?NaN:(p?-1:1)*Infinity}else{a=a+Math.pow(2,n);o=o-s}return(p?-1:1)*a*Math.pow(2,o-n)};e.write=function(t,r,e,n,i,o){var a,f,u;var s=o*8-i-1;var l=(1<<s)-1;var h=l>>1;var c=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var p=n?0:o-1;var d=n?1:-1;var v=r<0||r===0&&1/r<0?1:0;r=Math.abs(r);if(isNaN(r)||r===Infinity){f=isNaN(r)?1:0;a=l}else{a=Math.floor(Math.log(r)/Math.LN2);if(r*(u=Math.pow(2,-a))<1){a--;u*=2}if(a+h>=1){r+=c/u}else{r+=c*Math.pow(2,1-h)}if(r*u>=2){a++;u/=2}if(a+h>=l){f=0;a=l}else if(a+h>=1){f=(r*u-1)*Math.pow(2,i);a=a+h}else{f=r*Math.pow(2,h-1)*Math.pow(2,i);a=0}}for(;i>=8;t[e+p]=f&255,p+=d,f/=256,i-=8){}a=a<<i|f;s+=i;for(;s>0;t[e+p]=a&255,p+=d,a/=256,s-=8){}t[e+p-d]|=v*128}},{}],5:[function(t,r,e){var n=e,i=t("buffer").Buffer,o=t("os");n.toBuffer=function f(t,r,e){e=~~e;var n;if(/^(\d{1,3}\.){3,3}\d{1,3}$/.test(t)){n=r||new i(e+4);t.split(/\./g).map(function(t){n[e++]=parseInt(t,10)&255})}else if(/^[a-f0-9:]+$/.test(t)){var o=t.split(/::/g,2),a=(o[0]||"").split(/:/g,8),f=(o[1]||"").split(/:/g,8);if(f.length===0){while(a.length<8)a.push("0000")}else if(a.length===0){while(f.length<8)f.unshift("0000")}else{while(a.length+f.length<8)a.push("0000")}n=r||new i(e+16);a.concat(f).map(function(t){t=parseInt(t,16);n[e++]=t>>8&255;n[e++]=t&255})}else{throw Error("Invalid ip address: "+t)}return n};n.toString=function u(t,r,e){r=~~r;e=e||t.length-r;var n=[];if(e===4){for(var i=0;i<e;i++){n.push(t[r+i])}n=n.join(".")}else if(e===16){for(var i=0;i<e;i+=2){n.push(t.readUInt16BE(r+i).toString(16))}n=n.join(":");n=n.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3");n=n.replace(/:{3,4}/,"::")}return n};n.fromPrefixLen=function s(t,r){if(t>32){r="ipv6"}else{r=a(r)}var e=4;if(r==="ipv6"){e=16}var o=new i(e);for(var f=0,u=o.length;f<u;++f){var s=8;if(t<8){s=t}t-=s;o[f]=~(255>>s)}return n.toString(o)};n.mask=function l(t,l){t=n.toBuffer(t);l=n.toBuffer(l);var r=new i(Math.max(t.length,l.length));if(t.length===l.length){for(var e=0;e<t.length;e++){r[e]=t[e]&l[e]}}else if(l.length===4){for(var e=0;e<l.length;e++){r[e]=t[t.length-4+e]&l[e]}}else{for(var e=0;e<r.length-6;e++){r[e]=0}r[10]=255;r[11]=255;for(var e=0;e<t.length;e++){r[e+12]=t[e]&l[e+12]}}return n.toString(r)};n.cidr=function h(t){var r=t.split("/");if(r.length!=2)throw new Error("invalid CIDR subnet: "+e);var e=r[0];var i=n.fromPrefixLen(parseInt(r[1],10));return n.mask(e,i)};n.subnet=function c(t,r){var e=n.toLong(n.mask(t,r));var i=n.toBuffer(r);var o=0;for(var a=0;a<i.length;a++){if(i[a]==255){o+=8}else{var f=i[a]&255;while(f){f=f<<1&255;o++}}}var u=Math.pow(2,32-o);return{networkAddress:n.fromLong(e),firstAddress:u<=2?n.fromLong(e):n.fromLong(e+1),lastAddress:u<=2?n.fromLong(e+u-1):n.fromLong(e+u-2),broadcastAddress:n.fromLong(e+u-1),subnetMask:r,subnetMaskLength:o,numHosts:u<=2?u:u-2,length:u}};n.cidrSubnet=function p(t){var r=t.split("/");if(r.length!==2)throw new Error("invalid CIDR subnet: "+e);var e=r[0];var i=n.fromPrefixLen(parseInt(r[1],10));return n.subnet(e,i)};n.not=function d(t){var r=n.toBuffer(t);for(var e=0;e<r.length;e++){r[e]=255^r[e]}return n.toString(r)};n.or=function v(t,r){t=n.toBuffer(t);r=n.toBuffer(r);if(t.length==r.length){for(var e=0;e<t.length;++e){t[e]|=r[e]}return n.toString(t)}else{var i=t;var o=r;if(r.length>t.length){i=r;o=t}var a=i.length-o.length;for(var e=a;e<i.length;++e){i[e]|=o[e-a]}return n.toString(i)}};n.isEqual=function g(t,r){t=n.toBuffer(t);r=n.toBuffer(r);if(t.length===r.length){for(var e=0;e<t.length;e++){if(t[e]!==r[e])return false}return true}if(r.length===4){var i=r;r=t;t=i}for(var e=0;e<10;e++){if(r[e]!==0)return false}var o=r.readUInt16BE(10);if(o!==0&&o!==65535)return false;for(var e=0;e<4;e++){if(t[e]!==r[e+12])return false}return true};n.isPrivate=function w(t){return t.match(/^10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/)!=null||t.match(/^192\.168\.([0-9]{1,3})\.([0-9]{1,3})/)!=null||t.match(/^172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})/)!=null||t.match(/^127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/)!=null||t.match(/^169\.254\.([0-9]{1,3})\.([0-9]{1,3})/)!=null||t.match(/^fc00:/)!=null||t.match(/^fe80:/)!=null||t.match(/^::1$/)!=null||t.match(/^::$/)!=null};n.isPublic=function y(t){return!n.isPrivate(t)};n.isLoopback=function b(t){return/^127\.0\.0\.1$/.test(t)||/^fe80::1$/.test(t)||/^::1$/.test(t)||/^::$/.test(t)};n.loopback=function E(t){t=a(t);if(t!=="ipv4"&&t!=="ipv6"){throw new Error("family must be ipv4 or ipv6")}return t==="ipv4"?"127.0.0.1":"fe80::1"};n.address=function m(t,r){var e=o.networkInterfaces(),i;r=a(r);if(t&&!~["public","private"].indexOf(t)){return e[t].filter(function(t){t.family=t.family.toLowerCase();return t.family===r})[0].address}var i=Object.keys(e).map(function(i){var o=e[i].filter(function(e){e.family=e.family.toLowerCase();if(e.family!==r||n.isLoopback(e.address)){return false}else if(!t){return true}return t==="public"?!n.isPrivate(e.address):n.isPrivate(e.address)});return o.length?o[0].address:undefined}).filter(Boolean);return!i.length?n.loopback(r):i[0]};n.toLong=function _(t){var r=0;t.split(".").forEach(function(t){r<<=8;r+=parseInt(t)});return r>>>0};n.fromLong=function A(t){return(t>>>24)+"."+(t>>16&255)+"."+(t>>8&255)+"."+(t&255)};function a(t){return t?t.toLowerCase():"ipv4"}},{buffer:3,os:35}],6:[function(t,r,e){var n=Array.isArray;var i=Object.prototype.toString;r.exports=n||function(t){return!!t&&"[object Array]"==i.call(t)}},{}],7:[function(t,r,e){var n=[];r.exports=n},{}],8:[function(t,r,e){var n=t("lodash._basecreate"),i=t("lodash.isobject"),o=t("lodash._setbinddata"),a=t("lodash._slice");var f=[];var u=f.push;function s(t){var r=t[0],e=t[2],f=t[4];function s(){if(e){var t=a(e);u.apply(t,arguments)}if(this instanceof s){var o=n(r.prototype),l=r.apply(o,t||arguments);return i(l)?l:o}return r.apply(f,t||arguments)}o(s,t);return s}r.exports=s},{"lodash._basecreate":9,"lodash._setbinddata":19,"lodash._slice":21,"lodash.isobject":29}],9:[function(t,r,e){(function(e){var n=t("lodash._isnative"),i=t("lodash.isobject"),o=t("lodash.noop");var a=n(a=Object.create)&&a;function f(t,r){return i(t)?a(t):{}}if(!a){f=function(){function t(){}return function(r){if(i(r)){t.prototype=r;var n=new t;t.prototype=null}return n||e.Object()}}()}r.exports=f}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"lodash._isnative":15,"lodash.isobject":29,"lodash.noop":32}],10:[function(t,r,e){var n=t("lodash.bind"),i=t("lodash.identity"),o=t("lodash._setbinddata"),a=t("lodash.support");var f=/^\s*function[ \n\r\t]+\w/;var u=/\bthis\b/;var s=Function.prototype.toString;function l(t,r,e){if(typeof t!="function"){return i}if(typeof r=="undefined"||!("prototype"in t)){return t}var l=t.__bindData__;if(typeof l=="undefined"){if(a.funcNames){l=!t.name}l=l||!a.funcDecomp;if(!l){var h=s.call(t);if(!a.funcNames){l=!f.test(h)}if(!l){l=u.test(h);o(t,l)}}}if(l===false||l!==true&&l[1]&1){return t}switch(e){case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,i){return t.call(r,e,n,i)};case 4:return function(e,n,i,o){return t.call(r,e,n,i,o)}}return n(t,r)}r.exports=l},{"lodash._setbinddata":19,"lodash.bind":22,"lodash.identity":27,"lodash.support":34}],11:[function(t,r,e){var n=t("lodash._basecreate"),i=t("lodash.isobject"),o=t("lodash._setbinddata"),a=t("lodash._slice");var f=[];var u=f.push;function s(t){var r=t[0],e=t[1],f=t[2],l=t[3],h=t[4],c=t[5];var p=e&1,d=e&2,v=e&4,g=e&8,w=r;function y(){var t=p?h:this;if(f){var o=a(f);u.apply(o,arguments)}if(l||v){o||(o=a(arguments));if(l){u.apply(o,l)}if(v&&o.length<c){e|=16&~32;return s([r,g?e:e&~3,o,null,h,c])}}o||(o=arguments);if(d){r=t[w]}if(this instanceof y){t=n(r.prototype);var b=r.apply(t,o);return i(b)?b:t}return r.apply(t,o)}o(y,t);return y}r.exports=s},{"lodash._basecreate":9,"lodash._setbinddata":19,"lodash._slice":21,"lodash.isobject":29}],12:[function(t,r,e){var n=t("lodash.forin"),i=t("lodash._getarray"),o=t("lodash.isfunction"),a=t("lodash._objecttypes"),f=t("lodash._releasearray");var u="[object Arguments]",s="[object Array]",l="[object Boolean]",h="[object Date]",c="[object Number]",p="[object Object]",d="[object RegExp]",v="[object String]";var g=Object.prototype;var w=g.toString;var y=g.hasOwnProperty;function b(t,r,e,g,E,m){if(e){var _=e(t,r);if(typeof _!="undefined"){return!!_}}if(t===r){return t!==0||1/t==1/r}var A=typeof t,B=typeof r;if(t===t&&!(t&&a[A])&&!(r&&a[B])){return false}if(t==null||r==null){return t===r}var I=w.call(t),S=w.call(r);if(I==u){I=p}if(S==u){S=p}if(I!=S){return false}switch(I){case l:case h:return+t==+r;case c:return t!=+t?r!=+r:t==0?1/t==1/r:t==+r;case d:case v:return t==String(r)}var T=I==s;if(!T){var U=y.call(t,"__wrapped__"),R=y.call(r,"__wrapped__");if(U||R){return b(U?t.__wrapped__:t,R?r.__wrapped__:r,e,g,E,m)}if(I!=p){return false}var P=t.constructor,L=r.constructor;if(P!=L&&!(o(P)&&P instanceof P&&o(L)&&L instanceof L)&&("constructor"in t&&"constructor"in r)){return false}}var x=!E;E||(E=i());m||(m=i());var j=E.length;while(j--){if(E[j]==t){return m[j]==r}}var O=0;_=true;E.push(t);m.push(r);if(T){j=t.length;O=r.length;_=O==j;if(_||g){while(O--){var k=j,Y=r[O];if(g){while(k--){if(_=b(t[k],Y,e,g,E,m)){break}}}else if(!(_=b(t[O],Y,e,g,E,m))){break}}}}else{n(r,function(r,n,i){if(y.call(i,n)){O++;return _=y.call(t,n)&&b(t[n],r,e,g,E,m);
(function(r){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=r()}else if(typeof define==="function"&&define.amd){define([],r)}else{var t;if(typeof window!=="undefined"){t=window}else if(typeof global!=="undefined"){t=global}else if(typeof self!=="undefined"){t=self}else{t=this}t.multiaddr=r()}})(function(){var r,t,e;return function n(r,t,e){function i(f,u){if(!t[f]){if(!r[f]){var a=typeof require=="function"&&require;if(!u&&a)return a(f,!0);if(o)return o(f,!0);var s=new Error("Cannot find module '"+f+"'");throw s.code="MODULE_NOT_FOUND",s}var c=t[f]={exports:{}};r[f][0].call(c.exports,function(t){var e=r[f][1][t];return i(e?e:t)},c,c.exports,n,r,t,e)}return t[f].exports}var o=typeof require=="function"&&require;for(var f=0;f<e.length;f++)i(e[f]);return i}({1:[function(r,t,e){"use strict";e.toByteArray=u;e.fromByteArray=c;var n=[];var i=[];var o=typeof Uint8Array!=="undefined"?Uint8Array:Array;function f(){var r;var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var e=t.length;for(r=0;r<e;r++){n[r]=t[r]}for(r=0;r<e;++r){i[t.charCodeAt(r)]=r}i["-".charCodeAt(0)]=62;i["_".charCodeAt(0)]=63}f();function u(r){var t,e,n,f,u,a;var s=r.length;if(s%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}u=r[s-2]==="="?2:r[s-1]==="="?1:0;a=new o(s*3/4-u);n=u>0?s-4:s;var c=0;for(t=0,e=0;t<n;t+=4,e+=3){f=i[r.charCodeAt(t)]<<18|i[r.charCodeAt(t+1)]<<12|i[r.charCodeAt(t+2)]<<6|i[r.charCodeAt(t+3)];a[c++]=(f&16711680)>>16;a[c++]=(f&65280)>>8;a[c++]=f&255}if(u===2){f=i[r.charCodeAt(t)]<<2|i[r.charCodeAt(t+1)]>>4;a[c++]=f&255}else if(u===1){f=i[r.charCodeAt(t)]<<10|i[r.charCodeAt(t+1)]<<4|i[r.charCodeAt(t+2)]>>2;a[c++]=f>>8&255;a[c++]=f&255}return a}function a(r){return n[r>>18&63]+n[r>>12&63]+n[r>>6&63]+n[r&63]}function s(r,t,e){var n;var i=[];for(var o=t;o<e;o+=3){n=(r[o]<<16)+(r[o+1]<<8)+r[o+2];i.push(a(n))}return i.join("")}function c(r){var t;var e=r.length;var i=e%3;var o="";var f=[];var u=16383;for(var a=0,c=e-i;a<c;a+=u){f.push(s(r,a,a+u>c?c:a+u))}if(i===1){t=r[e-1];o+=n[t>>2];o+=n[t<<4&63];o+="=="}else if(i===2){t=(r[e-2]<<8)+r[e-1];o+=n[t>>10];o+=n[t>>4&63];o+=n[t<<2&63];o+="="}f.push(o);return f.join("")}},{}],2:[function(r,t,e){var n=r("buffer").Buffer;t.exports=function(r,t){if(!n.isBuffer(r))return undefined;if(!n.isBuffer(t))return undefined;if(typeof r.equals==="function")return r.equals(t);if(r.length!==t.length)return false;for(var e=0;e<r.length;e++){if(r[e]!==t[e])return false}return true}},{buffer:3}],3:[function(r,t,e){(function(t){"use strict";var n=r("base64-js");var i=r("ieee754");var o=r("isarray");e.Buffer=s;e.SlowBuffer=_;e.INSPECT_MAX_BYTES=50;s.poolSize=8192;var f={};s.TYPED_ARRAY_SUPPORT=t.TYPED_ARRAY_SUPPORT!==undefined?t.TYPED_ARRAY_SUPPORT:u();function u(){try{var r=new Uint8Array(1);r.foo=function(){return 42};return r.foo()===42&&typeof r.subarray==="function"&&r.subarray(1,1).byteLength===0}catch(t){return false}}function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(r){if(!(this instanceof s)){if(arguments.length>1)return new s(r,arguments[1]);return new s(r)}if(!s.TYPED_ARRAY_SUPPORT){this.length=0;this.parent=undefined}if(typeof r==="number"){return c(this,r)}if(typeof r==="string"){return l(this,r,arguments.length>1?arguments[1]:"utf8")}return h(this,r)}s._augment=function(r){r.__proto__=s.prototype;return r};function c(r,t){r=b(r,t<0?0:m(t)|0);if(!s.TYPED_ARRAY_SUPPORT){for(var e=0;e<t;e++){r[e]=0}}return r}function l(r,t,e){if(typeof e!=="string"||e==="")e="utf8";var n=A(t,e)|0;r=b(r,n);r.write(t,e);return r}function h(r,t){if(s.isBuffer(t))return p(r,t);if(o(t))return v(r,t);if(t==null){throw new TypeError("must start with number, buffer, array or string")}if(typeof ArrayBuffer!=="undefined"){if(t.buffer instanceof ArrayBuffer){return d(r,t)}if(t instanceof ArrayBuffer){return g(r,t)}}if(t.length)return y(r,t);return w(r,t)}function p(r,t){var e=m(t.length)|0;r=b(r,e);t.copy(r,0,0,e);return r}function v(r,t){var e=m(t.length)|0;r=b(r,e);for(var n=0;n<e;n+=1){r[n]=t[n]&255}return r}function d(r,t){var e=m(t.length)|0;r=b(r,e);for(var n=0;n<e;n+=1){r[n]=t[n]&255}return r}function g(r,t){t.byteLength;if(s.TYPED_ARRAY_SUPPORT){r=new Uint8Array(t);r.__proto__=s.prototype}else{r=d(r,new Uint8Array(t))}return r}function y(r,t){var e=m(t.length)|0;r=b(r,e);for(var n=0;n<e;n+=1){r[n]=t[n]&255}return r}function w(r,t){var e;var n=0;if(t.type==="Buffer"&&o(t.data)){e=t.data;n=m(e.length)|0}r=b(r,n);for(var i=0;i<n;i+=1){r[i]=e[i]&255}return r}if(s.TYPED_ARRAY_SUPPORT){s.prototype.__proto__=Uint8Array.prototype;s.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&s[Symbol.species]===s){Object.defineProperty(s,Symbol.species,{value:null,configurable:true})}}else{s.prototype.length=undefined;s.prototype.parent=undefined}function b(r,t){if(s.TYPED_ARRAY_SUPPORT){r=new Uint8Array(t);r.__proto__=s.prototype}else{r.length=t}var e=t!==0&&t<=s.poolSize>>>1;if(e)r.parent=f;return r}function m(r){if(r>=a()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+a().toString(16)+" bytes")}return r|0}function _(r,t){if(!(this instanceof _))return new _(r,t);var e=new s(r,t);delete e.parent;return e}s.isBuffer=function rr(r){return!!(r!=null&&r._isBuffer)};s.compare=function tr(r,t){if(!s.isBuffer(r)||!s.isBuffer(t)){throw new TypeError("Arguments must be Buffers")}if(r===t)return 0;var e=r.length;var n=t.length;var i=0;var o=Math.min(e,n);while(i<o){if(r[i]!==t[i])break;++i}if(i!==o){e=r[i];n=t[i]}if(e<n)return-1;if(n<e)return 1;return 0};s.isEncoding=function er(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};s.concat=function nr(r,t){if(!o(r))throw new TypeError("list argument must be an Array of Buffers.");if(r.length===0){return new s(0)}var e;if(t===undefined){t=0;for(e=0;e<r.length;e++){t+=r[e].length}}var n=new s(t);var i=0;for(e=0;e<r.length;e++){var f=r[e];f.copy(n,i);i+=f.length}return n};function A(r,t){if(typeof r!=="string")r=""+r;var e=r.length;if(e===0)return 0;var n=false;for(;;){switch(t){case"ascii":case"binary":case"raw":case"raws":return e;case"utf8":case"utf-8":return H(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return K(r).length;default:if(n)return H(r).length;t=(""+t).toLowerCase();n=true}}}s.byteLength=A;function E(r,t,e){var n=false;t=t|0;e=e===undefined||e===Infinity?this.length:e|0;if(!r)r="utf8";if(t<0)t=0;if(e>this.length)e=this.length;if(e<=t)return"";while(true){switch(r){case"hex":return C(this,t,e);case"utf8":case"utf-8":return O(this,t,e);case"ascii":return x(this,t,e);case"binary":return Y(this,t,e);case"base64":return I(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase();n=true}}}s.prototype._isBuffer=true;s.prototype.toString=function ir(){var r=this.length|0;if(r===0)return"";if(arguments.length===0)return O(this,0,r);return E.apply(this,arguments)};s.prototype.equals=function or(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(this===r)return true;return s.compare(this,r)===0};s.prototype.inspect=function fr(){var r="";var t=e.INSPECT_MAX_BYTES;if(this.length>0){r=this.toString("hex",0,t).match(/.{2}/g).join(" ");if(this.length>t)r+=" ... "}return"<Buffer "+r+">"};s.prototype.compare=function ur(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(this===r)return 0;return s.compare(this,r)};s.prototype.indexOf=function ar(r,t){if(t>2147483647)t=2147483647;else if(t<-2147483648)t=-2147483648;t>>=0;if(this.length===0)return-1;if(t>=this.length)return-1;if(t<0)t=Math.max(this.length+t,0);if(typeof r==="string"){if(r.length===0)return-1;return String.prototype.indexOf.call(this,r,t)}if(s.isBuffer(r)){return e(this,r,t)}if(typeof r==="number"){if(s.TYPED_ARRAY_SUPPORT&&Uint8Array.prototype.indexOf==="function"){return Uint8Array.prototype.indexOf.call(this,r,t)}return e(this,[r],t)}function e(r,t,e){var n=-1;for(var i=0;e+i<r.length;i++){if(r[e+i]===t[n===-1?0:i-n]){if(n===-1)n=i;if(i-n+1===t.length)return e+n}else{n=-1}}return-1}throw new TypeError("val must be string, number or Buffer")};function S(r,t,e,n){e=Number(e)||0;var i=r.length-e;if(!n){n=i}else{n=Number(n);if(n>i){n=i}}var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");if(n>o/2){n=o/2}for(var f=0;f<n;f++){var u=parseInt(t.substr(f*2,2),16);if(isNaN(u))throw new Error("Invalid hex string");r[e+f]=u}return f}function P(r,t,e,n){return Q(H(t,r.length-e),r,e,n)}function T(r,t,e,n){return Q(J(t),r,e,n)}function B(r,t,e,n){return T(r,t,e,n)}function R(r,t,e,n){return Q(K(t),r,e,n)}function j(r,t,e,n){return Q(Z(t,r.length-e),r,e,n)}s.prototype.write=function sr(r,t,e,n){if(t===undefined){n="utf8";e=this.length;t=0}else if(e===undefined&&typeof t==="string"){n=t;e=this.length;t=0}else if(isFinite(t)){t=t|0;if(isFinite(e)){e=e|0;if(n===undefined)n="utf8"}else{n=e;e=undefined}}else{var i=n;n=t;t=e|0;e=i}var o=this.length-t;if(e===undefined||e>o)e=o;if(r.length>0&&(e<0||t<0)||t>this.length){throw new RangeError("attempt to write outside buffer bounds")}if(!n)n="utf8";var f=false;for(;;){switch(n){case"hex":return S(this,r,t,e);case"utf8":case"utf-8":return P(this,r,t,e);case"ascii":return T(this,r,t,e);case"binary":return B(this,r,t,e);case"base64":return R(this,r,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,r,t,e);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();f=true}}};s.prototype.toJSON=function cr(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(r,t,e){if(t===0&&e===r.length){return n.fromByteArray(r)}else{return n.fromByteArray(r.slice(t,e))}}function O(r,t,e){e=Math.min(r.length,e);var n=[];var i=t;while(i<e){var o=r[i];var f=null;var u=o>239?4:o>223?3:o>191?2:1;if(i+u<=e){var a,s,c,l;switch(u){case 1:if(o<128){f=o}break;case 2:a=r[i+1];if((a&192)===128){l=(o&31)<<6|a&63;if(l>127){f=l}}break;case 3:a=r[i+1];s=r[i+2];if((a&192)===128&&(s&192)===128){l=(o&15)<<12|(a&63)<<6|s&63;if(l>2047&&(l<55296||l>57343)){f=l}}break;case 4:a=r[i+1];s=r[i+2];c=r[i+3];if((a&192)===128&&(s&192)===128&&(c&192)===128){l=(o&15)<<18|(a&63)<<12|(s&63)<<6|c&63;if(l>65535&&l<1114112){f=l}}}}if(f===null){f=65533;u=1}else if(f>65535){f-=65536;n.push(f>>>10&1023|55296);f=56320|f&1023}n.push(f);i+=u}return L(n)}var U=4096;function L(r){var t=r.length;if(t<=U){return String.fromCharCode.apply(String,r)}var e="";var n=0;while(n<t){e+=String.fromCharCode.apply(String,r.slice(n,n+=U))}return e}function x(r,t,e){var n="";e=Math.min(r.length,e);for(var i=t;i<e;i++){n+=String.fromCharCode(r[i]&127)}return n}function Y(r,t,e){var n="";e=Math.min(r.length,e);for(var i=t;i<e;i++){n+=String.fromCharCode(r[i])}return n}function C(r,t,e){var n=r.length;if(!t||t<0)t=0;if(!e||e<0||e>n)e=n;var i="";for(var o=t;o<e;o++){i+=G(r[o])}return i}function M(r,t,e){var n=r.slice(t,e);var i="";for(var o=0;o<n.length;o+=2){i+=String.fromCharCode(n[o]+n[o+1]*256)}return i}s.prototype.slice=function lr(r,t){var e=this.length;r=~~r;t=t===undefined?e:~~t;if(r<0){r+=e;if(r<0)r=0}else if(r>e){r=e}if(t<0){t+=e;if(t<0)t=0}else if(t>e){t=e}if(t<r)t=r;var n;if(s.TYPED_ARRAY_SUPPORT){n=this.subarray(r,t);n.__proto__=s.prototype}else{var i=t-r;n=new s(i,undefined);for(var o=0;o<i;o++){n[o]=this[o+r]}}if(n.length)n.parent=this.parent||this;return n};function k(r,t,e){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+t>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUIntLE=function hr(r,t,e){r=r|0;t=t|0;if(!e)k(r,t,this.length);var n=this[r];var i=1;var o=0;while(++o<t&&(i*=256)){n+=this[r+o]*i}return n};s.prototype.readUIntBE=function pr(r,t,e){r=r|0;t=t|0;if(!e){k(r,t,this.length)}var n=this[r+--t];var i=1;while(t>0&&(i*=256)){n+=this[r+--t]*i}return n};s.prototype.readUInt8=function vr(r,t){if(!t)k(r,1,this.length);return this[r]};s.prototype.readUInt16LE=function dr(r,t){if(!t)k(r,2,this.length);return this[r]|this[r+1]<<8};s.prototype.readUInt16BE=function gr(r,t){if(!t)k(r,2,this.length);return this[r]<<8|this[r+1]};s.prototype.readUInt32LE=function yr(r,t){if(!t)k(r,4,this.length);return(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUInt32BE=function wr(r,t){if(!t)k(r,4,this.length);return this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function br(r,t,e){r=r|0;t=t|0;if(!e)k(r,t,this.length);var n=this[r];var i=1;var o=0;while(++o<t&&(i*=256)){n+=this[r+o]*i}i*=128;if(n>=i)n-=Math.pow(2,8*t);return n};s.prototype.readIntBE=function mr(r,t,e){r=r|0;t=t|0;if(!e)k(r,t,this.length);var n=t;var i=1;var o=this[r+--n];while(n>0&&(i*=256)){o+=this[r+--n]*i}i*=128;if(o>=i)o-=Math.pow(2,8*t);return o};s.prototype.readInt8=function _r(r,t){if(!t)k(r,1,this.length);if(!(this[r]&128))return this[r];return(255-this[r]+1)*-1};s.prototype.readInt16LE=function Ar(r,t){if(!t)k(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};s.prototype.readInt16BE=function Er(r,t){if(!t)k(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};s.prototype.readInt32LE=function Sr(r,t){if(!t)k(r,4,this.length);return this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function Pr(r,t){if(!t)k(r,4,this.length);return this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function Tr(r,t){if(!t)k(r,4,this.length);return i.read(this,r,true,23,4)};s.prototype.readFloatBE=function Br(r,t){if(!t)k(r,4,this.length);return i.read(this,r,false,23,4)};s.prototype.readDoubleLE=function Rr(r,t){if(!t)k(r,8,this.length);return i.read(this,r,true,52,8)};s.prototype.readDoubleBE=function jr(r,t){if(!t)k(r,8,this.length);return i.read(this,r,false,52,8)};function D(r,t,e,n,i,o){if(!s.isBuffer(r))throw new TypeError("buffer must be a Buffer instance");if(t>i||t<o)throw new RangeError("value is out of bounds");if(e+n>r.length)throw new RangeError("index out of range")}s.prototype.writeUIntLE=function Ir(r,t,e,n){r=+r;t=t|0;e=e|0;if(!n)D(this,r,t,e,Math.pow(2,8*e),0);var i=1;var o=0;this[t]=r&255;while(++o<e&&(i*=256)){this[t+o]=r/i&255}return t+e};s.prototype.writeUIntBE=function Or(r,t,e,n){r=+r;t=t|0;e=e|0;if(!n)D(this,r,t,e,Math.pow(2,8*e),0);var i=e-1;var o=1;this[t+i]=r&255;while(--i>=0&&(o*=256)){this[t+i]=r/o&255}return t+e};s.prototype.writeUInt8=function Ur(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,1,255,0);if(!s.TYPED_ARRAY_SUPPORT)r=Math.floor(r);this[t]=r&255;return t+1};function $(r,t,e,n){if(t<0)t=65535+t+1;for(var i=0,o=Math.min(r.length-e,2);i<o;i++){r[e+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}}s.prototype.writeUInt16LE=function Lr(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,2,65535,0);if(s.TYPED_ARRAY_SUPPORT){this[t]=r&255;this[t+1]=r>>>8}else{$(this,r,t,true)}return t+2};s.prototype.writeUInt16BE=function xr(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,2,65535,0);if(s.TYPED_ARRAY_SUPPORT){this[t]=r>>>8;this[t+1]=r&255}else{$(this,r,t,false)}return t+2};function F(r,t,e,n){if(t<0)t=4294967295+t+1;for(var i=0,o=Math.min(r.length-e,4);i<o;i++){r[e+i]=t>>>(n?i:3-i)*8&255}}s.prototype.writeUInt32LE=function Yr(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,4,4294967295,0);if(s.TYPED_ARRAY_SUPPORT){this[t+3]=r>>>24;this[t+2]=r>>>16;this[t+1]=r>>>8;this[t]=r&255}else{F(this,r,t,true)}return t+4};s.prototype.writeUInt32BE=function Cr(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,4,4294967295,0);if(s.TYPED_ARRAY_SUPPORT){this[t]=r>>>24;this[t+1]=r>>>16;this[t+2]=r>>>8;this[t+3]=r&255}else{F(this,r,t,false)}return t+4};s.prototype.writeIntLE=function Mr(r,t,e,n){r=+r;t=t|0;if(!n){var i=Math.pow(2,8*e-1);D(this,r,t,e,i-1,-i)}var o=0;var f=1;var u=r<0?1:0;this[t]=r&255;while(++o<e&&(f*=256)){this[t+o]=(r/f>>0)-u&255}return t+e};s.prototype.writeIntBE=function kr(r,t,e,n){r=+r;t=t|0;if(!n){var i=Math.pow(2,8*e-1);D(this,r,t,e,i-1,-i)}var o=e-1;var f=1;var u=r<0?1:0;this[t+o]=r&255;while(--o>=0&&(f*=256)){this[t+o]=(r/f>>0)-u&255}return t+e};s.prototype.writeInt8=function Dr(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,1,127,-128);if(!s.TYPED_ARRAY_SUPPORT)r=Math.floor(r);if(r<0)r=255+r+1;this[t]=r&255;return t+1};s.prototype.writeInt16LE=function $r(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,2,32767,-32768);if(s.TYPED_ARRAY_SUPPORT){this[t]=r&255;this[t+1]=r>>>8}else{$(this,r,t,true)}return t+2};s.prototype.writeInt16BE=function Fr(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,2,32767,-32768);if(s.TYPED_ARRAY_SUPPORT){this[t]=r>>>8;this[t+1]=r&255}else{$(this,r,t,false)}return t+2};s.prototype.writeInt32LE=function Nr(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,4,2147483647,-2147483648);if(s.TYPED_ARRAY_SUPPORT){this[t]=r&255;this[t+1]=r>>>8;this[t+2]=r>>>16;this[t+3]=r>>>24}else{F(this,r,t,true)}return t+4};s.prototype.writeInt32BE=function zr(r,t,e){r=+r;t=t|0;if(!e)D(this,r,t,4,2147483647,-2147483648);if(r<0)r=4294967295+r+1;if(s.TYPED_ARRAY_SUPPORT){this[t]=r>>>24;this[t+1]=r>>>16;this[t+2]=r>>>8;this[t+3]=r&255}else{F(this,r,t,false)}return t+4};function N(r,t,e,n,i,o){if(e+n>r.length)throw new RangeError("index out of range");if(e<0)throw new RangeError("index out of range")}function z(r,t,e,n,o){if(!o){N(r,t,e,4,3.4028234663852886e38,-3.4028234663852886e38)}i.write(r,t,e,n,23,4);return e+4}s.prototype.writeFloatLE=function qr(r,t,e){return z(this,r,t,true,e)};s.prototype.writeFloatBE=function Vr(r,t,e){return z(this,r,t,false,e)};function q(r,t,e,n,o){if(!o){N(r,t,e,8,1.7976931348623157e308,-1.7976931348623157e308)}i.write(r,t,e,n,52,8);return e+8}s.prototype.writeDoubleLE=function Wr(r,t,e){return q(this,r,t,true,e)};s.prototype.writeDoubleBE=function Xr(r,t,e){return q(this,r,t,false,e)};s.prototype.copy=function Gr(r,t,e,n){if(!e)e=0;if(!n&&n!==0)n=this.length;if(t>=r.length)t=r.length;if(!t)t=0;if(n>0&&n<e)n=e;if(n===e)return 0;if(r.length===0||this.length===0)return 0;if(t<0){throw new RangeError("targetStart out of bounds")}if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");if(n>this.length)n=this.length;if(r.length-t<n-e){n=r.length-t+e}var i=n-e;var o;if(this===r&&e<t&&t<n){for(o=i-1;o>=0;o--){r[o+t]=this[o+e]}}else if(i<1e3||!s.TYPED_ARRAY_SUPPORT){for(o=0;o<i;o++){r[o+t]=this[o+e]}}else{Uint8Array.prototype.set.call(r,this.subarray(e,e+i),t)}return i};s.prototype.fill=function Hr(r,t,e){if(!r)r=0;if(!t)t=0;if(!e)e=this.length;if(e<t)throw new RangeError("end < start");if(e===t)return;if(this.length===0)return;if(t<0||t>=this.length)throw new RangeError("start out of bounds");if(e<0||e>this.length)throw new RangeError("end out of bounds");var n;if(typeof r==="number"){for(n=t;n<e;n++){this[n]=r}}else{var i=H(r.toString());var o=i.length;for(n=t;n<e;n++){this[n]=i[n%o]}}return this};var V=/[^+\/0-9A-Za-z-_]/g;function W(r){r=X(r).replace(V,"");if(r.length<2)return"";while(r.length%4!==0){r=r+"="}return r}function X(r){if(r.trim)return r.trim();return r.replace(/^\s+|\s+$/g,"")}function G(r){if(r<16)return"0"+r.toString(16);return r.toString(16)}function H(r,t){t=t||Infinity;var e;var n=r.length;var i=null;var o=[];for(var f=0;f<n;f++){e=r.charCodeAt(f);if(e>55295&&e<57344){if(!i){if(e>56319){if((t-=3)>-1)o.push(239,191,189);continue}else if(f+1===n){if((t-=3)>-1)o.push(239,191,189);continue}i=e;continue}if(e<56320){if((t-=3)>-1)o.push(239,191,189);i=e;continue}e=(i-55296<<10|e-56320)+65536}else if(i){if((t-=3)>-1)o.push(239,191,189)}i=null;if(e<128){if((t-=1)<0)break;o.push(e)}else if(e<2048){if((t-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else{throw new Error("Invalid code point")}}return o}function J(r){var t=[];for(var e=0;e<r.length;e++){t.push(r.charCodeAt(e)&255)}return t}function Z(r,t){var e,n,i;var o=[];for(var f=0;f<r.length;f++){if((t-=2)<0)break;e=r.charCodeAt(f);n=e>>8;i=e%256;o.push(i);o.push(n)}return o}function K(r){return n.toByteArray(W(r))}function Q(r,t,e,n){for(var i=0;i<n;i++){if(i+e>=t.length||i>=r.length)break;t[i+e]=r[i]}return i}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"base64-js":1,ieee754:5,isarray:4}],4:[function(r,t,e){var n={}.toString;t.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},{}],5:[function(r,t,e){e.read=function(r,t,e,n,i){var o,f;var u=i*8-n-1;var a=(1<<u)-1;var s=a>>1;var c=-7;var l=e?i-1:0;var h=e?-1:1;var p=r[t+l];l+=h;o=p&(1<<-c)-1;p>>=-c;c+=u;for(;c>0;o=o*256+r[t+l],l+=h,c-=8){}f=o&(1<<-c)-1;o>>=-c;c+=n;for(;c>0;f=f*256+r[t+l],l+=h,c-=8){}if(o===0){o=1-s}else if(o===a){return f?NaN:(p?-1:1)*Infinity}else{f=f+Math.pow(2,n);o=o-s}return(p?-1:1)*f*Math.pow(2,o-n)};e.write=function(r,t,e,n,i,o){var f,u,a;var s=o*8-i-1;var c=(1<<s)-1;var l=c>>1;var h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var p=n?0:o-1;var v=n?1:-1;var d=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){u=isNaN(t)?1:0;f=c}else{f=Math.floor(Math.log(t)/Math.LN2);if(t*(a=Math.pow(2,-f))<1){f--;a*=2}if(f+l>=1){t+=h/a}else{t+=h*Math.pow(2,1-l)}if(t*a>=2){f++;a/=2}if(f+l>=c){u=0;f=c}else if(f+l>=1){u=(t*a-1)*Math.pow(2,i);f=f+l}else{u=t*Math.pow(2,l-1)*Math.pow(2,i);f=0}}for(;i>=8;r[e+p]=u&255,p+=v,u/=256,i-=8){}f=f<<i|u;s+=i;for(;s>0;r[e+p]=f&255,p+=v,f/=256,s-=8){}r[e+p-v]|=d*128}},{}],6:[function(r,t,e){"use strict";var n=e;var i=r("buffer").Buffer;var o=r("os");n.toBuffer=function(r,t,e){e=~~e;var n;if(this.isV4Format(r)){n=t||new i(e+4);r.split(/\./g).map(function(r){n[e++]=parseInt(r,10)&255})}else if(this.isV6Format(r)){var o=r.split(":",8);var f;for(f=0;f<o.length;f++){var u=this.isV4Format(o[f]);var a;if(u){a=this.toBuffer(o[f]);o[f]=a.slice(0,2).toString("hex")}if(a&&++f<8){o.splice(f,0,a.slice(2,4).toString("hex"))}}if(o[0]===""){while(o.length<8)o.unshift("0")}else if(o[o.length-1]===""){while(o.length<8)o.push("0")}else if(o.length<8){for(f=0;f<o.length&&o[f]!=="";f++);var s=[f,1];for(f=9-o.length;f>0;f--){s.push("0")}o.splice.apply(o,s)}n=t||new i(e+16);for(f=0;f<o.length;f++){var c=parseInt(o[f],16);n[e++]=c>>8&255;n[e++]=c&255}}if(!n){throw Error("Invalid ip address: "+r)}return n};n.toString=function(r,t,e){t=~~t;e=e||r.length-t;var n=[];if(e===4){for(var i=0;i<e;i++){n.push(r[t+i])}n=n.join(".")}else if(e===16){for(var i=0;i<e;i+=2){n.push(r.readUInt16BE(t+i).toString(16))}n=n.join(":");n=n.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3");n=n.replace(/:{3,4}/,"::")}return n};var f=/^(\d{1,3}\.){3,3}\d{1,3}$/;var u=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;n.isV4Format=function(r){return f.test(r)};n.isV6Format=function(r){return u.test(r)};function a(r){return r?r.toLowerCase():"ipv4"}n.fromPrefixLen=function(r,t){if(r>32){t="ipv6"}else{t=a(t)}var e=4;if(t==="ipv6"){e=16}var o=new i(e);for(var f=0,u=o.length;f<u;++f){var s=8;if(r<8){s=r}r-=s;o[f]=~(255>>s)}return n.toString(o)};n.mask=function(r,t){r=n.toBuffer(r);t=n.toBuffer(t);var e=new i(Math.max(r.length,t.length));if(r.length===t.length){for(var o=0;o<r.length;o++){e[o]=r[o]&t[o]}}else if(t.length===4){for(var o=0;o<t.length;o++){e[o]=r[r.length-4+o]&t[o]}}else{for(var o=0;o<e.length-6;o++){e[o]=0}e[10]=255;e[11]=255;for(var o=0;o<r.length;o++){e[o+12]=r[o]&t[o+12]}}return n.toString(e)};n.cidr=function(r){var t=r.split("/");var e=t[0];if(t.length!==2)throw new Error("invalid CIDR subnet: "+e);var i=n.fromPrefixLen(parseInt(t[1],10));return n.mask(e,i)};n.subnet=function(r,t){var e=n.toLong(n.mask(r,t));var i=n.toBuffer(t);var o=0;for(var f=0;f<i.length;f++){if(i[f]===255){o+=8}else{var u=i[f]&255;while(u){u=u<<1&255;o++}}}var a=Math.pow(2,32-o);return{networkAddress:n.fromLong(e),firstAddress:a<=2?n.fromLong(e):n.fromLong(e+1),lastAddress:a<=2?n.fromLong(e+a-1):n.fromLong(e+a-2),broadcastAddress:n.fromLong(e+a-1),subnetMask:t,subnetMaskLength:o,numHosts:a<=2?a:a-2,length:a,contains:function(r){return e===n.toLong(n.mask(r,t))}}};n.cidrSubnet=function(r){var t=r.split("/");var e=t[0];if(t.length!==2)throw new Error("invalid CIDR subnet: "+e);var i=n.fromPrefixLen(parseInt(t[1],10));return n.subnet(e,i)};n.not=function(r){var t=n.toBuffer(r);for(var e=0;e<t.length;e++){t[e]=255^t[e]}return n.toString(t)};n.or=function(r,t){r=n.toBuffer(r);t=n.toBuffer(t);if(r.length===t.length){for(var e=0;e<r.length;++e){r[e]|=t[e]}return n.toString(r)}else{var i=r;var o=t;if(t.length>r.length){i=t;o=r}var f=i.length-o.length;for(var e=f;e<i.length;++e){i[e]|=o[e-f]}return n.toString(i)}};n.isEqual=function(r,t){r=n.toBuffer(r);t=n.toBuffer(t);if(r.length===t.length){for(var e=0;e<r.length;e++){if(r[e]!==t[e])return false}return true}if(t.length===4){var i=t;t=r;r=i}for(var e=0;e<10;e++){if(t[e]!==0)return false}var o=t.readUInt16BE(10);if(o!==0&&o!==65535)return false;for(var e=0;e<4;e++){if(r[e]!==t[e+12])return false}return true};n.isPrivate=function(r){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(r)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(r)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(r)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(r)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(r)||/^f[cd][0-9a-f]{2}:/i.test(r)||/^fe80:/i.test(r)||/^::1$/.test(r)||/^::$/.test(r)};n.isPublic=function(r){return!n.isPrivate(r)};n.isLoopback=function(r){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(r)||/^fe80::1$/.test(r)||/^::1$/.test(r)||/^::$/.test(r)};n.loopback=function(r){r=a(r);if(r!=="ipv4"&&r!=="ipv6"){throw new Error("family must be ipv4 or ipv6")}return r==="ipv4"?"127.0.0.1":"fe80::1"};n.address=function(r,t){var e=o.networkInterfaces();var i;t=a(t);if(r&&r!=="private"&&r!=="public"){var f=e[r].filter(function(r){var e=r.family.toLowerCase();return e===t});if(f.length===0)return undefined;return f[0].address}var i=Object.keys(e).map(function(i){var o=e[i].filter(function(e){e.family=e.family.toLowerCase();if(e.family!==t||n.isLoopback(e.address)){return false}else if(!r){return true}return r==="public"?!n.isPrivate(e.address):n.isPrivate(e.address)});return o.length?o[0].address:undefined}).filter(Boolean);return!i.length?n.loopback(t):i[0]};n.toLong=function(r){var t=0;r.split(".").forEach(function(r){t<<=8;t+=parseInt(r)});return t>>>0};n.fromLong=function(r){return(r>>>24)+"."+(r>>16&255)+"."+(r>>8&255)+"."+(r&255)}},{buffer:3,os:12}],7:[function(r,t,e){var n=9007199254740991;var i="[object Arguments]",o="[object Function]",f="[object GeneratorFunction]",u="[object String]";var a=/^(?:0|[1-9]\d*)$/;function s(r,t){var e=-1,n=Array(r);while(++e<r){n[e]=t(e)}return n}function c(r,t){r=typeof r=="number"||a.test(r)?+r:-1;t=t==null?n:t;return r>-1&&r%1==0&&r<t}var l=Object.prototype;var h=l.hasOwnProperty;var p=l.toString;var v=Object.getPrototypeOf,d=l.propertyIsEnumerable;var g=Object.keys;var y=E(b);var w=S();function b(r,t){return r&&w(r,t,M)}function m(r,t){return h.call(r,t)||typeof r=="object"&&t in r&&v(r)===null}function _(r){return g(Object(r))}function A(r){return function(t){return t==null?undefined:t[r]}}function E(r,t){return function(e,n){if(e==null){return e}if(!I(e)){return r(e,n)}var i=e.length,o=t?i:-1,f=Object(e);while(t?o--:++o<i){if(n(f[o],o,f)===false){break}}return e}}function S(r){return function(t,e,n){var i=-1,o=Object(t),f=n(t),u=f.length;while(u--){var a=f[r?u:++i];if(e(o[a],a,o)===false){break}}return t}}var P=A("length");function T(r){var t=r?r.length:undefined;if(L(t)&&(j(r)||C(r)||R(r))){return s(t,String)}return null}function B(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||l;return r===e}function R(r){return O(r)&&h.call(r,"callee")&&(!d.call(r,"callee")||p.call(r)==i)}var j=Array.isArray;function I(r){return r!=null&&L(P(r))&&!U(r)}function O(r){return Y(r)&&I(r)}function U(r){var t=x(r)?p.call(r):"";return t==o||t==f}function L(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=n}function x(r){var t=typeof r;return!!r&&(t=="object"||t=="function")}function Y(r){return!!r&&typeof r=="object"}function C(r){return typeof r=="string"||!j(r)&&Y(r)&&p.call(r)==u}function M(r){var t=B(r);if(!(t||I(r))){return _(r)}var e=T(r),n=!!e,i=e||[],o=i.length;for(var f in r){if(m(r,f)&&!(n&&(f=="length"||c(f,o)))&&!(t&&f=="constructor")){i.push(f)}}return i}t.exports=y},{}],8:[function(r,t,e){var n=r("lodash._baseeach");function i(r,t){var e=[];n(r,function(r,n,i){if(t(r,n,i)){e.push(r)}});return e}t.exports=i},{"lodash._baseeach":7}],9:[function(r,t,e){(function(r){var n=200;var i="__lodash_hash_undefined__";var o=1,f=2;var u=1/0,a=9007199254740991;var s="[object Arguments]",c="[object Array]",l="[object Boolean]",h="[object Date]",p="[object Error]",v="[object Function]",d="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",b="[object RegExp]",m="[object Set]",_="[object String]",A="[object Symbol]",E="[object WeakMap]";var S="[object ArrayBuffer]",P="[object Float32Array]",T="[object Float64Array]",B="[object Int8Array]",R="[object Int16Array]",j="[object Int32Array]",I="[object Uint8Array]",O="[object Uint8ClampedArray]",U="[object Uint16Array]",L="[object Uint32Array]";var x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g;var M=/[\\^$.*+?()[\]{}|]/g;var k=/\\(\\)?/g;var D=/^\[object .+?Constructor\]$/;var $=/^(?:0|[1-9]\d*)$/;var F={};F[P]=F[T]=F[B]=F[R]=F[j]=F[I]=F[O]=F[U]=F[L]=true;F[s]=F[c]=F[S]=F[l]=F[h]=F[p]=F[v]=F[g]=F[y]=F[w]=F[b]=F[m]=F[_]=F[E]=false;var N={"function":true,object:true};var z=N[typeof e]&&e&&!e.nodeType?e:undefined;var q=N[typeof t]&&t&&!t.nodeType?t:undefined;var V=rr(z&&q&&typeof r=="object"&&r);var W=rr(N[typeof self]&&self);var X=rr(N[typeof window]&&window);var G=rr(N[typeof this]&&this);var H=V||X!==(G&&G.window)&&X||W||G||Function("return this")();function J(r,t){var e=-1,n=r.length,i=Array(n);while(++e<n){i[e]=t(r[e],e,r)}return i}function Z(r,t){var e=-1,n=r.length;while(++e<n){if(t(r[e],e,r)){return true}}return false}function K(r,t){var e=-1,n=Array(r);while(++e<r){n[e]=t(e)}return n}function Q(r,t){return J(t,function(t){return[t,r[t]]})}function rr(r){return r&&r.Object===Object?r:null}function tr(r){var t=false;if(r!=null&&typeof r.toString!="function"){try{t=!!(r+"")}catch(e){}}return t}function er(r,t){r=typeof r=="number"||$.test(r)?+r:-1;t=t==null?a:t;return r>-1&&r%1==0&&r<t}function nr(r){var t=-1,e=Array(r.size);r.forEach(function(r,n){e[++t]=[n,r]});return e}function ir(r){var t=-1,e=Array(r.size);r.forEach(function(r){e[++t]=r});return e}var or=Array.prototype,fr=Object.prototype;var ur=Function.prototype.toString;var ar=fr.hasOwnProperty;var sr=fr.toString;var cr=RegExp("^"+ur.call(ar).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var lr=H.Symbol,hr=H.Uint8Array,pr=Object.getPrototypeOf,vr=fr.propertyIsEnumerable,dr=or.splice;var gr=Object.keys;var yr=vt(H,"Map"),wr=vt(H,"Set"),br=vt(H,"WeakMap"),mr=vt(Object,"create");var _r=yr?ur.call(yr):"",Ar=wr?ur.call(wr):"",Er=br?ur.call(br):"";var Sr=lr?lr.prototype:undefined,Pr=Sr?Sr.valueOf:undefined,Tr=Sr?Sr.toString:undefined;function Br(){}function Rr(r,t){return Ir(r,t)&&delete r[t]}function jr(r,t){if(mr){var e=r[t];return e===i?undefined:e}return ar.call(r,t)?r[t]:undefined}function Ir(r,t){return mr?r[t]!==undefined:ar.call(r,t)}function Or(r,t,e){r[t]=mr&&e===undefined?i:e}function Ur(r){var t=-1,e=r?r.length:0;this.clear();while(++t<e){var n=r[t];this.set(n[0],n[1])}}function Lr(){this.__data__={hash:new Br,map:yr?new yr:[],string:new Br}}function xr(r){var t=this.__data__;if(bt(r)){return Rr(typeof r=="string"?t.string:t.hash,r)}return yr?t.map["delete"](r):qr(t.map,r)}function Yr(r){var t=this.__data__;if(bt(r)){return jr(typeof r=="string"?t.string:t.hash,r);
}});if(_&&!g){n(t,function(t,r,e){if(y.call(e,r)){return _=--O>-1}})}}E.pop();m.pop();if(x){f(E);f(m)}return _}r.exports=b},{"lodash._getarray":14,"lodash._objecttypes":17,"lodash._releasearray":18,"lodash.forin":25,"lodash.isfunction":28}],13:[function(t,r,e){var n=t("lodash._basebind"),i=t("lodash._basecreatewrapper"),o=t("lodash.isfunction"),a=t("lodash._slice");var f=[];var u=f.push,s=f.unshift;function l(t,r,e,f,h,c){var p=r&1,d=r&2,v=r&4,g=r&8,w=r&16,y=r&32;if(!d&&!o(t)){throw new TypeError}if(w&&!e.length){r&=~16;w=e=false}if(y&&!f.length){r&=~32;y=f=false}var b=t&&t.__bindData__;if(b&&b!==true){b=a(b);if(b[2]){b[2]=a(b[2])}if(b[3]){b[3]=a(b[3])}if(p&&!(b[1]&1)){b[4]=h}if(!p&&b[1]&1){r|=8}if(v&&!(b[1]&4)){b[5]=c}if(w){u.apply(b[2]||(b[2]=[]),e)}if(y){s.apply(b[3]||(b[3]=[]),f)}b[1]|=r;return l.apply(null,b)}var E=r==1||r===17?n:i;return E([t,r,e,f,h,c])}r.exports=l},{"lodash._basebind":8,"lodash._basecreatewrapper":11,"lodash._slice":21,"lodash.isfunction":28}],14:[function(t,r,e){var n=t("lodash._arraypool");function i(){return n.pop()||[]}r.exports=i},{"lodash._arraypool":7}],15:[function(t,r,e){var n=Object.prototype;var i=n.toString;var o=RegExp("^"+String(i).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");function a(t){return typeof t=="function"&&o.test(t)}r.exports=a},{}],16:[function(t,r,e){var n=40;r.exports=n},{}],17:[function(t,r,e){var n={"boolean":false,"function":true,object:true,number:false,string:false,undefined:false};r.exports=n},{}],18:[function(t,r,e){var n=t("lodash._arraypool"),i=t("lodash._maxpoolsize");function o(t){t.length=0;if(n.length<i){n.push(t)}}r.exports=o},{"lodash._arraypool":7,"lodash._maxpoolsize":16}],19:[function(t,r,e){var n=t("lodash._isnative"),i=t("lodash.noop");var o={configurable:false,enumerable:false,value:null,writable:false};var a=function(){try{var t={},r=n(r=Object.defineProperty)&&r,e=r(t,t,t)&&r}catch(i){}return e}();var f=!a?i:function(t,r){o.value=r;a(t,"__bindData__",o)};r.exports=f},{"lodash._isnative":15,"lodash.noop":32}],20:[function(t,r,e){var n=t("lodash._objecttypes");var i=Object.prototype;var o=i.hasOwnProperty;var a=function(t){var r,e=t,i=[];if(!e)return i;if(!n[typeof t])return i;for(r in e){if(o.call(e,r)){i.push(r)}}return i};r.exports=a},{"lodash._objecttypes":17}],21:[function(t,r,e){function n(t,r,e){r||(r=0);if(typeof e=="undefined"){e=t?t.length:0}var n=-1,i=e-r||0,o=Array(i<0?0:i);while(++n<i){o[n]=t[r+n]}return o}r.exports=n},{}],22:[function(t,r,e){var n=t("lodash._createwrapper"),i=t("lodash._slice");function o(t,r){return arguments.length>2?n(t,17,i(arguments,2),null,r):n(t,1,null,null,r)}r.exports=o},{"lodash._createwrapper":13,"lodash._slice":21}],23:[function(t,r,e){var n=t("lodash._basecreatecallback"),i=t("lodash._baseisequal"),o=t("lodash.isobject"),a=t("lodash.keys"),f=t("lodash.property");function u(t,r,e){var u=typeof t;if(t==null||u=="function"){return n(t,r,e)}if(u!="object"){return f(t)}var s=a(t),l=s[0],h=t[l];if(s.length==1&&h===h&&!o(h)){return function(t){var r=t[l];return h===r&&(h!==0||1/h==1/r)}}return function(r){var e=s.length,n=false;while(e--){if(!(n=i(r[s[e]],t[s[e]],null,true))){break}}return n}}r.exports=u},{"lodash._basecreatecallback":10,"lodash._baseisequal":12,"lodash.isobject":29,"lodash.keys":30,"lodash.property":33}],24:[function(t,r,e){var n=t("lodash.createcallback"),i=t("lodash.forown");function o(t,r,e){var o=[];r=n(r,e,3);var a=-1,f=t?t.length:0;if(typeof f=="number"){while(++a<f){var u=t[a];if(r(u,a,t)){o.push(u)}}}else{i(t,function(t,e,n){if(r(t,e,n)){o.push(t)}})}return o}r.exports=o},{"lodash.createcallback":23,"lodash.forown":26}],25:[function(t,r,e){var n=t("lodash._basecreatecallback"),i=t("lodash._objecttypes");var o=function(t,r,e){var o,a=t,f=a;if(!a)return f;if(!i[typeof a])return f;r=r&&typeof e=="undefined"?r:n(r,e,3);for(o in a){if(r(a[o],o,t)===false)return f}return f};r.exports=o},{"lodash._basecreatecallback":10,"lodash._objecttypes":17}],26:[function(t,r,e){var n=t("lodash._basecreatecallback"),i=t("lodash.keys"),o=t("lodash._objecttypes");var a=function(t,r,e){var a,f=t,u=f;if(!f)return u;if(!o[typeof f])return u;r=r&&typeof e=="undefined"?r:n(r,e,3);var s=-1,l=o[typeof f]&&i(f),h=l?l.length:0;while(++s<h){a=l[s];if(r(f[a],a,t)===false)return u}return u};r.exports=a},{"lodash._basecreatecallback":10,"lodash._objecttypes":17,"lodash.keys":30}],27:[function(t,r,e){function n(t){return t}r.exports=n},{}],28:[function(t,r,e){function n(t){return typeof t=="function"}r.exports=n},{}],29:[function(t,r,e){var n=t("lodash._objecttypes");function i(t){return!!(t&&n[typeof t])}r.exports=i},{"lodash._objecttypes":17}],30:[function(t,r,e){var n=t("lodash._isnative"),i=t("lodash.isobject"),o=t("lodash._shimkeys");var a=n(a=Object.keys)&&a;var f=!a?o:function(t){if(!i(t)){return[]}return a(t)};r.exports=f},{"lodash._isnative":15,"lodash._shimkeys":20,"lodash.isobject":29}],31:[function(t,r,e){var n=t("lodash.createcallback"),i=t("lodash.forown");function o(t,r,e){var o=-1,a=t?t.length:0;r=n(r,e,3);if(typeof a=="number"){var f=Array(a);while(++o<a){f[o]=r(t[o],o,t)}}else{f=[];i(t,function(t,e,n){f[++o]=r(t,e,n)})}return f}r.exports=o},{"lodash.createcallback":23,"lodash.forown":26}],32:[function(t,r,e){function n(){}r.exports=n},{}],33:[function(t,r,e){function n(t){return function(r){return r[t]}}r.exports=n},{}],34:[function(t,r,e){(function(e){var n=t("lodash._isnative");var i=/\bthis\b/;var o={};o.funcDecomp=!n(e.WinRTError)&&i.test(function(){return this});o.funcNames=typeof Function.name=="string";r.exports=o}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"lodash._isnative":15}],35:[function(t,r,e){e.endianness=function(){return"LE"};e.hostname=function(){if(typeof location!=="undefined"){return location.hostname}else return""};e.loadavg=function(){return[]};e.uptime=function(){return 0};e.freemem=function(){return Number.MAX_VALUE};e.totalmem=function(){return Number.MAX_VALUE};e.cpus=function(){return[]};e.type=function(){return"Browser"};e.release=function(){if(typeof navigator!=="undefined"){return navigator.appVersion}return""};e.networkInterfaces=e.getNetworkInterfaces=function(){return{}};e.arch=function(){return"javascript"};e.platform=function(){return"browser"};e.tmpdir=e.tmpDir=function(){return"/tmp"};e.EOL="\n"},{}],36:[function(t,r,e){r.exports=n;function n(){var t={};for(var r=0;r<arguments.length;r++){var e=arguments[r];for(var n in e){if(e.hasOwnProperty(n)){t[n]=e[n]}}}return t}},{}],37:[function(t,r,e){(function(e){var n=t("lodash.map");var i=t("lodash.filter");var o=console.log;var a=t("./convert");var f=t("./protocols");var u=r.exports={stringToStringTuples:s,stringTuplesToString:l,tuplesToStringTuples:c,stringTuplesToTuples:h,bufferToTuples:d,tuplesToBuffer:p,bufferToString:v,stringToBuffer:g,fromString:w,fromBuffer:y,validateBuffer:b,isValidBuffer:E,cleanPath:m,ParseError:_,protoFromTuple:A};function s(t){var r=[];var e=t.split("/").slice(1);if(e.length==1&&e[0]=="")return[];for(var n=0;n<e.length;n++){var i=e[n];var o=f(i);if(o.size==0)return[i];n++;if(n>=e.length)throw _("invalid address: "+t);r.push([i,e[n]])}return r}function l(t){var r=[];n(t,function(t){var e=A(t);r.push(e.name);if(t.length>1)r.push(t[1])});return"/"+r.join("/")}function h(t){return n(t,function(t){var r=A(t);if(t.length>1)return[r.code,a.toBuffer(r.code,t[1])];return[r.code]})}function c(t){return n(t,function(t){var r=A(t);if(t.length>1)return[r.code,a.toString(r.code,t[1])];return[r.code]})}function p(t){return y(e.concat(n(t,function(t){var r=A(t);var n=new e([r.code]);if(t.length>1)n=e.concat([n,t[1]]);return n})))}function d(t){var r=[];for(var e=0;e<t.length;){var n=t[e];var i=f(n);if(!i)throw _("Invalid protocol code: "+n);var o=i.size/8;var n=0+t[e];var a=t.slice(e+1,e+1+o);e+=1+o;if(e>t.length)throw _("Invalid address buffer: "+t.toString("hex"));r.push([n,a])}return r}function v(t){var r=d(t);var e=c(r);return l(e)}function g(t){t=m(t);var r=s(t);var e=h(r);return p(e)}function w(t){return g(t)}function y(t){var r=b(t);if(r)throw r;return new e(t)}function b(t){d(t)}function E(t){try{b(t);return true}catch(r){return false}}function m(t){return"/"+i(t.trim().split("/")).join("/")}function _(t){return new Error("Error parsing address: "+t)}function A(t){var r=f(t[0]);if(t.length>1&&r.size==0)throw _("tuple has address but protocol size is 0");return r}}).call(this,t("buffer").Buffer)},{"./convert":38,"./protocols":40,buffer:3,"lodash.filter":24,"lodash.map":31}],38:[function(t,r,e){(function(e){var n=t("ip");var i=t("./protocols");r.exports=o;function o(t,r){if(r instanceof e)return o.toString(t,r);else return o.toBuffer(t,r)}o.toString=function u(t,r){t=i(t);switch(t.code){case 4:case 41:return n.toString(r);case 6:case 17:case 33:case 132:return f(r)}return r.toString("hex")};o.toBuffer=function s(t,r){t=i(t);switch(t.code){case 4:case 41:return n.toBuffer(r);case 6:case 17:case 33:case 132:return a(parseInt(r,10))}return new e(r,"hex")};function a(t){var r=new e(2);r.writeUInt16BE(t,0);return r}function f(t){return t.readUInt16BE(0)}}).call(this,t("buffer").Buffer)},{"./protocols":40,buffer:3,ip:5}],39:[function(t,r,e){(function(n){var i=t("lodash.map");var o=t("xtend");var a=t("./codec");var f=t("buffer-equal");var u=t("./protocols");var s=new Error("Sorry, Not Implemented Yet.");e=r.exports=l;e.Buffer=n;function l(t){if(!(this instanceof l))return new l(t);if(!t)t="";if(t instanceof n)this.buffer=a.fromBuffer(t);else if(typeof t=="string"||t instanceof String)this.buffer=a.fromString(t);else if(t.buffer&&t.protos&&t.protoCodes)this.buffer=a.fromBuffer(t.buffer);else throw new Error("addr must be a string, Buffer, or Multiaddr")}l.prototype.toString=function h(){return a.bufferToString(this.buffer)};l.prototype.toOptions=function c(){var t={};var r=this.toString().split("/");t.family=r[1]==="ip4"?"ipv4":"ipv6";t.host=r[2];t.port=r[4];return t};l.prototype.inspect=function p(){return"<Mutliaddr "+this.buffer.toString("hex")+" - "+a.bufferToString(this.buffer)+">"};l.prototype.protos=function d(){return i(this.protoCodes(),function(t){return o(u(t))})};l.prototype.protos=function v(){return i(this.protoCodes(),function(t){return o(u(t))})};l.prototype.protoCodes=function g(){var t=[];for(var r=0;r<this.buffer.length;r++){var e=0+this.buffer[r];var n=u(e).size/8;r+=n;t.push(e)}return t};l.prototype.protoNames=function w(){return i(this.protos(),function(t){return t.name})};l.prototype.tuples=function y(){return a.bufferToTuples(this.buffer)};l.prototype.stringTuples=function b(){var t=a.bufferToTuples(this.buffer);return a.tuplesToStringTuples(t)};l.prototype.encapsulate=function E(t){t=l(t);return l(this.toString()+t.toString())};l.prototype.decapsulate=function m(t){t=t.toString();var r=this.toString();var e=r.lastIndexOf(t);if(e<0)throw new Error("Address "+this+" does not contain subaddress: "+t);return l(r.slice(0,e))};l.prototype.equals=function _(t){return f(this.buffer,t.buffer)};l.prototype.nodeAddress=function A(){if(!this.isThinWaistAddress())throw new Error('Multiaddr must be "thin waist" address for nodeAddress.');var t=this.protoCodes();var r=this.toString().split("/").slice(1);return{family:t[0]==41?"IPv6":"IPv4",address:r[1],port:r[3]}};l.fromNodeAddress=function B(t,r){if(!t)throw new Error("requires node address object");if(!r)throw new Error("requires transport protocol");var e=t.family=="IPv6"?"ip6":"ip4";return l("/"+[e,t.address,r,t.port].join("/"))};l.prototype.isThinWaistAddress=function I(t){var r=(t||this).protos();if(r.length!=2)return false;if(r[0].code!=4&&r[0].code!=41)return false;if(r[1].code!=6&&r[1].code!=17)return false;return true};l.prototype.fromStupidString=function S(t){throw s};l.protocols=u}).call(this,t("buffer").Buffer)},{"./codec":37,"./protocols":40,buffer:3,"buffer-equal":2,"lodash.map":31,xtend:36}],40:[function(t,r,e){var n=t("lodash.map");r.exports=i;function i(t){if(typeof t=="number"){if(i.codes[t])return i.codes[t];throw new Error("no protocol with code: "+t)}else if(typeof t=="string"||t instanceof String){if(i.names[t])return i.names[t];throw new Error("no protocol with name: "+t)}throw new Error("invalid protocol id type: "+t)}i.table=[[4,32,"ip4"],[6,16,"tcp"],[17,16,"udp"],[33,16,"dccp"],[41,128,"ip6"],[132,16,"sctp"]];i.names={};i.codes={};n(i.table,function(t){var r=o.apply(this,t);i.codes[r.code]=r;i.names[r.name]=r});i.object=o;function o(t,r,e){return{code:t,size:r,name:e}}},{"lodash.map":31}]},{},[39])(39)});
}return yr?t.map.get(r):Vr(t.map,r)}function Cr(r){var t=this.__data__;if(bt(r)){return Ir(typeof r=="string"?t.string:t.hash,r)}return yr?t.map.has(r):Wr(t.map,r)}function Mr(r,t){var e=this.__data__;if(bt(r)){Or(typeof r=="string"?e.string:e.hash,r,t)}else if(yr){e.map.set(r,t)}else{Gr(e.map,r,t)}return this}function kr(r){var t=-1,e=r?r.length:0;this.clear();while(++t<e){var n=r[t];this.set(n[0],n[1])}}function Dr(){this.__data__={array:[],map:null}}function $r(r){var t=this.__data__,e=t.array;return e?qr(e,r):t.map["delete"](r)}function Fr(r){var t=this.__data__,e=t.array;return e?Vr(e,r):t.map.get(r)}function Nr(r){var t=this.__data__,e=t.array;return e?Wr(e,r):t.map.has(r)}function zr(r,t){var e=this.__data__,i=e.array;if(i){if(i.length<n-1){Gr(i,r,t)}else{e.array=null;e.map=new Ur(i)}}var o=e.map;if(o){o.set(r,t)}return this}function qr(r,t){var e=Xr(r,t);if(e<0){return false}var n=r.length-1;if(e==n){r.pop()}else{dr.call(r,e,1)}return true}function Vr(r,t){var e=Xr(r,t);return e<0?undefined:r[e][1]}function Wr(r,t){return Xr(r,t)>-1}function Xr(r,t){var e=r.length;while(e--){if(Pt(r[e][0],t)){return e}}return-1}function Gr(r,t,e){var n=Xr(r,t);if(n<0){r.push([t,e])}else{r[n][1]=e}}function Hr(r){return Bt(r)?r:Et(r)}function Jr(r,t){t=wt(t,r)?[t+""]:Hr(t);var e=0,n=t.length;while(r!=null&&e<n){r=r[t[e++]]}return e&&e==n?r:undefined}function Zr(r,t){return ar.call(r,t)||typeof r=="object"&&t in r&&pr(r)===null}function Kr(r,t){return t in Object(r)}function Qr(r,t,e,n,i){if(r===t){return true}if(r==null||t==null||!Ut(r)&&!Lt(t)){return r!==r&&t!==t}return rt(r,t,Qr,e,n,i)}function rt(r,t,e,n,i,o){var u=Bt(r),a=Bt(t),l=c,h=c;if(!u){l=dt(r);l=l==s?w:l}if(!a){h=dt(t);h=h==s?w:h}var p=l==w&&!tr(r),v=h==w&&!tr(t),d=l==h;if(d&&!p){o||(o=new kr);return u||Mt(r)?st(r,t,e,n,i,o):ct(r,t,l,e,n,i,o)}if(!(i&f)){var g=p&&ar.call(r,"__wrapped__"),y=v&&ar.call(t,"__wrapped__");if(g||y){o||(o=new kr);return e(g?r.value():r,y?t.value():t,n,i,o)}}if(!d){return false}o||(o=new kr);return lt(r,t,e,n,i,o)}function tt(r,t,e,n){var i=e.length,u=i,a=!n;if(r==null){return!u}r=Object(r);while(i--){var s=e[i];if(a&&s[2]?s[1]!==r[s[0]]:!(s[0]in r)){return false}}while(++i<u){s=e[i];var c=s[0],l=r[c],h=s[1];if(a&&s[2]){if(l===undefined&&!(c in r)){return false}}else{var p=new kr,v=n?n(l,h,c,r,t,p):undefined;if(!(v===undefined?Qr(h,l,n,o|f,p):v)){return false}}}return true}function et(r){var t=typeof r;if(t=="function"){return r}if(r==null){return zt}if(t=="object"){return Bt(r)?ot(r[0],r[1]):it(r)}return qt(r)}function nt(r){return gr(Object(r))}function it(r){var t=pt(r);if(t.length==1&&t[0][2]){var e=t[0][0],n=t[0][1];return function(r){if(r==null){return false}return r[e]===n&&(n!==undefined||e in Object(r))}}return function(e){return e===r||tt(e,r,t)}}function ot(r,t){return function(e){var n=Dt(e,r);return n===undefined&&n===t?$t(e,r):Qr(t,n,undefined,o|f)}}function ft(r){return function(t){return t==null?undefined:t[r]}}function ut(r){return function(t){return Jr(t,r)}}function at(r,t,e){var n=-1,i=r.length;if(t<0){t=-t>i?0:i+t}e=e>i?i:e;if(e<0){e+=i}i=t>e?0:e-t>>>0;t>>>=0;var o=Array(i);while(++n<i){o[n]=r[n+t]}return o}function st(r,t,e,n,i,u){var a=-1,s=i&f,c=i&o,l=r.length,h=t.length;if(l!=h&&!(s&&h>l)){return false}var p=u.get(r);if(p){return p==t}var v=true;u.set(r,t);while(++a<l){var d=r[a],g=t[a];if(n){var y=s?n(g,d,a,t,r,u):n(d,g,a,r,t,u)}if(y!==undefined){if(y){continue}v=false;break}if(c){if(!Z(t,function(r){return d===r||e(d,r,n,i,u)})){v=false;break}}else if(!(d===g||e(d,g,n,i,u))){v=false;break}}u["delete"](r);return v}function ct(r,t,e,n,i,u,a){switch(e){case S:if(r.byteLength!=t.byteLength||!n(new hr(r),new hr(t))){return false}return true;case l:case h:return+r==+t;case p:return r.name==t.name&&r.message==t.message;case y:return r!=+r?t!=+t:r==+t;case b:case _:return r==t+"";case g:var s=nr;case m:var c=u&f;s||(s=ir);if(r.size!=t.size&&!c){return false}var v=a.get(r);if(v){return v==t}return st(s(r),s(t),n,i,u|o,a.set(r,t));case A:if(Pr){return Pr.call(r)==Pr.call(t)}}return false}function lt(r,t,e,n,i,o){var u=i&f,a=Ft(r),s=a.length,c=Ft(t),l=c.length;if(s!=l&&!u){return false}var h=s;while(h--){var p=a[h];if(!(u?p in t:Zr(t,p))){return false}}var v=o.get(r);if(v){return v==t}var d=true;o.set(r,t);var g=u;while(++h<s){p=a[h];var y=r[p],w=t[p];if(n){var b=u?n(w,y,p,t,r,o):n(y,w,p,r,t,o)}if(!(b===undefined?y===w||e(y,w,n,i,o):b)){d=false;break}g||(g=p=="constructor")}if(d&&!g){var m=r.constructor,_=t.constructor;if(m!=_&&("constructor"in r&&"constructor"in t)&&!(typeof m=="function"&&m instanceof m&&typeof _=="function"&&_ instanceof _)){d=false}}o["delete"](r);return d}var ht=ft("length");function pt(r){var t=Nt(r),e=t.length;while(e--){t[e][2]=_t(t[e][1])}return t}function vt(r,t){var e=r[t];return xt(e)?e:undefined}function dt(r){return sr.call(r)}if(yr&&dt(new yr)!=g||wr&&dt(new wr)!=m||br&&dt(new br)!=E){dt=function(r){var t=sr.call(r),e=t==w?r.constructor:null,n=typeof e=="function"?ur.call(e):"";if(n){switch(n){case _r:return g;case Ar:return m;case Er:return E}}return t}}function gt(r,t,e){if(r==null){return false}var n=e(r,t);if(!n&&!wt(t)){t=Hr(t);r=At(r,t);if(r!=null){t=St(t);n=e(r,t)}}var i=r?r.length:undefined;return n||!!i&&Ot(i)&&er(t,i)&&(Bt(r)||Yt(r)||Tt(r))}function yt(r){var t=r?r.length:undefined;if(Ot(t)&&(Bt(r)||Yt(r)||Tt(r))){return K(t,String)}return null}function wt(r,t){if(typeof r=="number"){return true}return!Bt(r)&&(Y.test(r)||!x.test(r)||t!=null&&r in Object(t))}function bt(r){var t=typeof r;return t=="number"||t=="boolean"||t=="string"&&r!="__proto__"||r==null}function mt(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||fr;return r===e}function _t(r){return r===r&&!Ut(r)}function At(r,t){return t.length==1?r:Dt(r,at(t,0,-1))}function Et(r){var t=[];kt(r).replace(C,function(r,e,n,i){t.push(n?i.replace(k,"$1"):e||r)});return t}function St(r){var t=r?r.length:0;return t?r[t-1]:undefined}function Pt(r,t){return r===t||r!==r&&t!==t}function Tt(r){return jt(r)&&ar.call(r,"callee")&&(!vr.call(r,"callee")||sr.call(r)==s)}var Bt=Array.isArray;function Rt(r){return r!=null&&Ot(ht(r))&&!It(r)}function jt(r){return Lt(r)&&Rt(r)}function It(r){var t=Ut(r)?sr.call(r):"";return t==v||t==d}function Ot(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=a}function Ut(r){var t=typeof r;return!!r&&(t=="object"||t=="function")}function Lt(r){return!!r&&typeof r=="object"}function xt(r){if(r==null){return false}if(It(r)){return cr.test(ur.call(r))}return Lt(r)&&(tr(r)?cr:D).test(r)}function Yt(r){return typeof r=="string"||!Bt(r)&&Lt(r)&&sr.call(r)==_}function Ct(r){return typeof r=="symbol"||Lt(r)&&sr.call(r)==A}function Mt(r){return Lt(r)&&Ot(r.length)&&!!F[sr.call(r)]}function kt(r){if(typeof r=="string"){return r}if(r==null){return""}if(Ct(r)){return Tr?Tr.call(r):""}var t=r+"";return t=="0"&&1/r==-u?"-0":t}function Dt(r,t,e){var n=r==null?undefined:Jr(r,t);return n===undefined?e:n}function $t(r,t){return gt(r,t,Kr)}function Ft(r){var t=mt(r);if(!(t||Rt(r))){return nt(r)}var e=yt(r),n=!!e,i=e||[],o=i.length;for(var f in r){if(Zr(r,f)&&!(n&&(f=="length"||er(f,o)))&&!(t&&f=="constructor")){i.push(f)}}return i}function Nt(r){return Q(r,Ft(r))}function zt(r){return r}function qt(r){return wt(r)?ft(r):ut(r)}Br.prototype=mr?mr(null):fr;Ur.prototype.clear=Lr;Ur.prototype["delete"]=xr;Ur.prototype.get=Yr;Ur.prototype.has=Cr;Ur.prototype.set=Mr;kr.prototype.clear=Dr;kr.prototype["delete"]=$r;kr.prototype.get=Fr;kr.prototype.has=Nr;kr.prototype.set=zr;t.exports=et}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],10:[function(r,t,e){var n=r("lodash._basefilter"),i=r("lodash._baseiteratee");function o(r,t){var e=-1,n=r.length,i=0,o=[];while(++e<n){var f=r[e];if(t(f,e,r)){o[i++]=f}}return o}function f(r,t){var e=u(r)?o:n;return e(r,i(t,3))}var u=Array.isArray;t.exports=f},{"lodash._basefilter":8,"lodash._baseiteratee":9}],11:[function(r,t,e){var n=r("lodash._baseeach"),i=r("lodash._baseiteratee");var o=9007199254740991;var f="[object Function]",u="[object GeneratorFunction]";function a(r,t){var e=-1,n=r.length,i=Array(n);while(++e<n){i[e]=t(r[e],e,r)}return i}var s=Object.prototype;var c=s.toString;function l(r,t){var e=-1,i=g(r)?Array(r.length):[];n(r,function(r,n,o){i[++e]=t(r,n,o)});return i}function h(r){return function(t){return t==null?undefined:t[r]}}var p=h("length");function v(r,t){var e=d(r)?a:l;return e(r,i(t,3))}var d=Array.isArray;function g(r){return r!=null&&w(p(r))&&!y(r)}function y(r){var t=b(r)?c.call(r):"";return t==f||t==u}function w(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=o}function b(r){var t=typeof r;return!!r&&(t=="object"||t=="function")}t.exports=v},{"lodash._baseeach":7,"lodash._baseiteratee":9}],12:[function(r,t,e){e.endianness=function(){return"LE"};e.hostname=function(){if(typeof location!=="undefined"){return location.hostname}else return""};e.loadavg=function(){return[]};e.uptime=function(){return 0};e.freemem=function(){return Number.MAX_VALUE};e.totalmem=function(){return Number.MAX_VALUE};e.cpus=function(){return[]};e.type=function(){return"Browser"};e.release=function(){if(typeof navigator!=="undefined"){return navigator.appVersion}return""};e.networkInterfaces=e.getNetworkInterfaces=function(){return{}};e.arch=function(){return"javascript"};e.platform=function(){return"browser"};e.tmpdir=e.tmpDir=function(){return"/tmp"};e.EOL="\n"},{}],13:[function(r,t,e){t.exports=i;var n=Object.prototype.hasOwnProperty;function i(){var r={};for(var t=0;t<arguments.length;t++){var e=arguments[t];for(var i in e){if(n.call(e,i)){r[i]=e[i]}}}return r}},{}],14:[function(r,t,e){(function(e){var n=r("lodash.map");var i=r("lodash.filter");var o=r("./convert");var f=r("./protocols");t.exports={stringToStringTuples:u,stringTuplesToString:a,tuplesToStringTuples:c,stringTuplesToTuples:s,bufferToTuples:h,tuplesToBuffer:l,bufferToString:p,stringToBuffer:v,fromString:d,fromBuffer:g,validateBuffer:y,isValidBuffer:w,cleanPath:b,ParseError:m,protoFromTuple:_};function u(r){var t=[];var e=r.split("/").slice(1);if(e.length===1&&e[0]===""){return[]}for(var n=0;n<e.length;n++){var i=e[n];var o=f(i);if(o.size===0){return[i]}n++;if(n>=e.length){throw m("invalid address: "+r)}t.push([i,e[n]])}return t}function a(r){var t=[];n(r,function(r){var e=_(r);t.push(e.name);if(r.length>1){t.push(r[1])}});return"/"+t.join("/")}function s(r){return n(r,function(r){var t=_(r);if(r.length>1){return[t.code,o.toBuffer(t.code,r[1])]}return[t.code]})}function c(r){return n(r,function(r){var t=_(r);if(r.length>1){return[t.code,o.toString(t.code,r[1])]}return[t.code]})}function l(r){return g(e.concat(n(r,function(r){var t=_(r);var n=new e([t.code]);if(r.length>1){n=e.concat([n,r[1]])}return n})))}function h(r){var t=[];for(var e=0;e<r.length;){var n=r[e];var i=f(n);if(!i){throw m("Invalid protocol code: "+n)}var o=i.size/8;n=0+r[e];var u=r.slice(e+1,e+1+o);e+=1+o;if(e>r.length){throw m("Invalid address buffer: "+r.toString("hex"))}t.push([n,u])}return t}function p(r){var t=h(r);var e=c(t);return a(e)}function v(r){r=b(r);var t=u(r);var e=s(t);return l(e)}function d(r){return v(r)}function g(r){var t=y(r);if(t)throw t;return new e(r)}function y(r){h(r)}function w(r){try{y(r);return true}catch(t){return false}}function b(r){return"/"+i(r.trim().split("/")).join("/")}function m(r){return new Error("Error parsing address: "+r)}function _(r){var t=f(r[0]);if(r.length>1&&t.size===0){throw m("tuple has address but protocol size is 0")}return t}}).call(this,r("buffer").Buffer)},{"./convert":15,"./protocols":17,buffer:3,"lodash.filter":10,"lodash.map":11}],15:[function(r,t,e){(function(e){var n=r("ip");var i=r("./protocols");t.exports=o;function o(r,t){if(t instanceof e){return o.toString(r,t)}else{return o.toBuffer(r,t)}}o.toString=function a(r,t){r=i(r);switch(r.code){case 4:case 41:return n.toString(t);case 6:case 17:case 33:case 132:return u(t)}return t.toString("hex")};o.toBuffer=function s(r,t){r=i(r);switch(r.code){case 4:case 41:return n.toBuffer(t);case 6:case 17:case 33:case 132:return f(parseInt(t,10))}return new e(t,"hex")};function f(r){var t=new e(2);t.writeUInt16BE(r,0);return t}function u(r){return r.readUInt16BE(0)}}).call(this,r("buffer").Buffer)},{"./protocols":17,buffer:3,ip:6}],16:[function(r,t,e){(function(n){var i=r("lodash.map");var o=r("xtend");var f=r("./codec");var u=r("buffer-equal");var a=r("./protocols");var s=new Error("Sorry, Not Implemented Yet.");e=t.exports=c;e.Buffer=n;function c(r){if(!(this instanceof c)){return new c(r)}if(!r){r=""}if(r instanceof n){this.buffer=f.fromBuffer(r)}else if(typeof r==="string"||r instanceof String){this.buffer=f.fromString(r)}else if(r.buffer&&r.protos&&r.protoCodes){this.buffer=f.fromBuffer(r.buffer)}else{throw new Error("addr must be a string, Buffer, or Multiaddr")}}c.prototype.toString=function l(){return f.bufferToString(this.buffer)};c.prototype.toOptions=function h(){var r={};var t=this.toString().split("/");r.family=t[1]==="ip4"?"ipv4":"ipv6";r.host=t[2];r.port=t[4];return r};c.prototype.inspect=function p(){return"<Mutliaddr "+this.buffer.toString("hex")+" - "+f.bufferToString(this.buffer)+">"};c.prototype.protos=function v(){return i(this.protoCodes(),function(r){return o(a(r))})};c.prototype.protos=function d(){return i(this.protoCodes(),function(r){return o(a(r))})};c.prototype.protoCodes=function g(){var r=[];for(var t=0;t<this.buffer.length;t++){var e=0+this.buffer[t];var n=a(e).size/8;t+=n;r.push(e)}return r};c.prototype.protoNames=function y(){return i(this.protos(),function(r){return r.name})};c.prototype.tuples=function w(){return f.bufferToTuples(this.buffer)};c.prototype.stringTuples=function b(){var r=f.bufferToTuples(this.buffer);return f.tuplesToStringTuples(r)};c.prototype.encapsulate=function m(r){r=c(r);return c(this.toString()+r.toString())};c.prototype.decapsulate=function _(r){r=r.toString();var t=this.toString();var e=t.lastIndexOf(r);if(e<0){throw new Error("Address "+this+" does not contain subaddress: "+r)}return c(t.slice(0,e))};c.prototype.equals=function A(r){return u(this.buffer,r.buffer)};c.prototype.nodeAddress=function E(){if(!this.isThinWaistAddress()){throw new Error('Multiaddr must be "thin waist" address for nodeAddress.')}var r=this.protoCodes();var t=this.toString().split("/").slice(1);return{family:r[0]===41?"IPv6":"IPv4",address:t[1],port:t[3]}};c.fromNodeAddress=function S(r,t){if(!r)throw new Error("requires node address object");if(!t)throw new Error("requires transport protocol");var e=r.family==="IPv6"?"ip6":"ip4";return c("/"+[e,r.address,t,r.port].join("/"))};c.prototype.isThinWaistAddress=function P(r){var t=(r||this).protos();if(t.length!==2){return false}if(t[0].code!==4&&t[0].code!==41){return false}if(t[1].code!==6&&t[1].code!==17){return false}return true};c.prototype.fromStupidString=function T(r){throw s};c.protocols=a}).call(this,r("buffer").Buffer)},{"./codec":14,"./protocols":17,buffer:3,"buffer-equal":2,"lodash.map":11,xtend:13}],17:[function(r,t,e){var n=r("lodash.map");t.exports=i;function i(r){if(typeof r==="number"){if(i.codes[r]){return i.codes[r]}throw new Error("no protocol with code: "+r)}else if(typeof r==="string"||r instanceof String){if(i.names[r]){return i.names[r]}throw new Error("no protocol with name: "+r)}throw new Error("invalid protocol id type: "+r)}i.table=[[4,32,"ip4"],[6,16,"tcp"],[17,16,"udp"],[33,16,"dccp"],[41,128,"ip6"],[132,16,"sctp"]];i.names={};i.codes={};n(i.table,function(r){var t=o.apply(this,r);i.codes[t.code]=t;i.names[t.name]=t});i.object=o;function o(r,t,e){return{code:r,size:t,name:e}}},{"lodash.map":11}]},{},[16])(16)});
{
"name": "multiaddr",
"version": "1.1.1",
"version": "1.1.2",
"description": "multiaddr implementation (binary + string representation of network addresses)",

@@ -39,13 +39,13 @@ "main": "src/index.js",

"dependencies": {
"buffer-equal": "0.0.1",
"buffer-equal": "1.0.0",
"ip": "^1.0.2",
"lodash.filter": "^3.1.1",
"lodash.map": "^3.1.1",
"lodash.filter": "^4.2.1",
"lodash.map": "^4.2.1",
"xtend": "^4.0.1"
},
"devDependencies": {
"browserify": "^12.0.1",
"browserify": "^13.0.0",
"pre-commit": "^1.1.2",
"standard": "^5.3.1",
"tape": "^2.13.2",
"standard": "^6.0.8",
"tape": "^4.5.1",
"uglifyjs": "^2.4.10",

@@ -52,0 +52,0 @@ "zuul": "^3.7.2"

@@ -1,4 +0,10 @@

# js-multiaddr
js-multiaddr
============
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) ![Build Status](https://travis-ci.org/jbenet/js-multiaddr.svg?style=flat-square)](https://travis-ci.org/jbenet/js-multiaddr) ![](https://img.shields.io/badge/coverage-%3F-yellow.svg?style=flat-square) [![Dependency Status](https://david-dm.org/jbenet/js-multiaddr.svg?style=flat-square)](https://david-dm.org/jbenet/js-multiaddr) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Build Status](https://travis-ci.org/jbenet/js-multiaddr.svg?style=flat-square)](https://travis-ci.org/jbenet/js-multiaddr)
![](https://img.shields.io/badge/coverage-%3F-yellow.svg?style=flat-square)
[![Dependency Status](https://david-dm.org/jbenet/js-multiaddr.svg?style=flat-square)](https://david-dm.org/jbenet/js-multiaddr)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)

@@ -5,0 +11,0 @@ > [multiaddr](https://github.com/jbenet/multiaddr) implementation in JavaScript.

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc