text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.IpfsUnixfsEngine=t():e.IpfsUnixfsEngine=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=98)}([function(e,t,n){"use strict";(function(e){var r=n(108),i=n(109),o=n(60);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return f(this,e,t,n)}function f(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|b(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t){if(c(t),e=s(e,t<0?0:0|b(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|b(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function b(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return N(e).length;t=(""+t).toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function k(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function f(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(f(e,o)===f(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var l=!0,h=0;h<u;h++)if(f(e,o+h)!==f(t,h)){l=!1;break}if(l)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function v(e,t,n,r){return F(N(t,e.length-n),e,n,r)}function g(e,t,n,r){return F(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return g(e,t,n,r)}function S(e,t,n,r){return F(q(t),e,n,r)}function w(e,t,n,r){return F(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,f=e[i],c=null,l=f>239?4:f>223?3:f>191?2:1;if(i+l<=n)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,l=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=l}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return f(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return l(null,e)},u.allocUnsafeSlow=function(e){return l(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),f=this.slice(r,i),c=e.slice(t,n),l=0;l<s;++l)if(f[l]!==c[l]){o=f[l],a=c[l];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return k(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return k(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return g(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function B(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=U(e[o]);return i}function C(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function T(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function z(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,o){return o||z(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return o||z(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:N(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var I=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function N(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(3))},function(e,t,n){"use strict";var r,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var f,c=[],l=!1,h=-1;function b(){l&&f&&(l=!1,f.length?c=f.concat(c):h=-1,c.length&&d())}function d(){if(!l){var e=u(b);l=!0;for(var t=c.length;t;){for(f=c,c=[];++h<t;)f&&f[h].run();h=-1,t=c.length}f=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function k(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||l||u(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=k,o.addListener=k,o.once=k,o.off=k,o.removeListener=k,o.removeAllListeners=k,o.emit=k,o.prependListener=k,o.prependOnceListener=k,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function e(t){var n=arguments.length;if("function"==typeof t&&1===t.length){for(var i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return function(t){if(null==i)throw new TypeError("partial sink should only be called once!");var r=i;switch(i=null,n){case 1:return e(t,r[0]);case 2:return e(t,r[0],r[1]);case 3:return e(t,r[0],r[1],r[2]);case 4:return e(t,r[0],r[1],r[2],r[3]);default:return r.unshift(t),e.apply(null,r)}}}var a=t;a&&"function"==typeof a.source&&(a=a.source);for(o=1;o<n;o++){var s=arguments[o];"function"==typeof s?a=s(a):s&&"object"===r(s)&&(s.sink(a),a=s.source)}return a}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(o){"object"===("undefined"==typeof window?"undefined":r(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t=(0,o.default)(t||i.default),!(0,r.default)(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function f(t){var r=(0,u.default)(e[n++]);t.push((0,s.default)(c)),r.apply(null,t)}function c(r){if(r||n===e.length)return t.apply(null,arguments);f((0,a.default)(arguments,1))}f([])};var r=f(n(44)),i=f(n(14)),o=f(n(42)),a=f(n(17)),s=f(n(19)),u=f(n(8));function f(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";e.exports={encode:n(117),decode:n(118),encodingLength:n(119)}},function(e,t,n){"use strict";var r=n(0),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";var r=n(62);e.exports=function(e,t){if(!e)return function(e,n){return e?r(n,e,t):n(!0)};Array.isArray(e)||(e=Object.keys(e).map(function(t){return e[t]}));var n=0;return function(i,o){if(i)return r(o,i,t);n>=e.length?o(!0):o(null,e[n++])}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=void 0;var r,i=n(150),o=(r=i)&&r.__esModule?r:{default:r};var a="function"==typeof Symbol;function s(e){return a&&"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){return s(e)?(0,o.default)(e):e},t.isAsync=s},function(e,t,n){"use strict";(function(r){function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(33),a=n(24),s=n(47),u=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(r,"A link requires a cid to point to"),this._name=t||"",this._nameBuf=null,this._size=n,this._cid=new o(r)}var t,n,s;return t=e,(n=[{key:"toString",value:function(){return"DAGLink <".concat(this._cid.toBaseEncodedString(),' - name: "').concat(this.name,'", size: ').concat(this.size,">")}},{key:"toJSON",value:function(){return this._json||(this._json=Object.freeze({name:this.name,size:this.size,cid:this._cid.toBaseEncodedString()})),Object.assign({},this._json)}},{key:"name",get:function(){return this._name},set:function(e){throw new Error("Can't set property: 'name' is immutable")}},{key:"nameAsBuffer",get:function(){return null!==this._nameBuf?this._nameBuf:(this._nameBuf=r.from(this._name),this._nameBuf)}},{key:"size",get:function(){return this._size},set:function(e){throw new Error("Can't set property: 'size' is immutable")}},{key:"cid",get:function(){return this._cid},set:function(e){throw new Error("Can't set property: 'cid' is immutable")}}])&&i(t.prototype,n),s&&i(t,s),e}();(t=e.exports=s(u,{className:"DAGLink",symbolName:"@ipld/js-ipld-dag-pb/daglink"})).create=n(173),t.util=n(174)}).call(this,n(0).Buffer)},function(e,t,n){"use strict";function r(e){return e}var i=n(38);e.exports=function(e){return e?(e=i(e),function(t){return function(n,r){t(n,function(n,i){try{i=n?null:e(i)}catch(o){return t(o,function(){return r(o)})}r(n,i)})}}):r}},function(e,t,n){"use strict";e.exports=function(e,t){"function"==typeof e&&(t=e,e=!1);var n,r,i,o=[];function a(e,t){e&&(n=e,r&&c(n)),r=t,f()}function s(e){i=i||e||!0,f()}function u(e){i||(r?c(n,e):o.push(e))}if(e)return{push:u,end:s,source:a,buffer:o};return a.push=u,a.end=s,a.buffer=o,a;function f(){r&&(n?c(n):!o.length&&i?c(i):o.length&&c(null,o.shift()))}function c(e,n){var i=r;if(e&&t){var o=t;t=null,o(!0===e?null:e)}r=null,i(e,n)}}},function(e,t,n){"use strict";"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";var r=n(61)(n(124)).Data,i=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],o=["directory","hamt-sharded-directory"];function a(e,t){var n=this;if(!(this instanceof a))return new a(e,t);if(-1===i.indexOf(e))throw new Error("Type: "+e+" is not valid");this.type=e,this.data=t,this.blockSizes=[],this.addBlockSize=function(e){n.blockSizes.push(e)},this.removeBlockSize=function(e){n.blockSizes.splice(e,1)},this.fileSize=function(){if(!(o.indexOf(n.type)>=0)){var e=0;return n.blockSizes.forEach(function(t){e+=t}),t&&(e+=t.length),e}},this.marshal=function(){var e;switch(n.type){case"raw":e=r.DataType.Raw;break;case"directory":e=r.DataType.Directory;break;case"file":e=r.DataType.File;break;case"metadata":e=r.DataType.Metadata;break;case"symlink":e=r.DataType.Symlink;break;case"hamt-sharded-directory":e=r.DataType.HAMTShard;break;default:throw new Error('Unkown type: "'.concat(n.type,'"'))}var t=n.fileSize(),i=n.data;n.data&&n.data.length||(i=void 0);var o=n.blockSizes;return n.blockSizes&&n.blockSizes.length||(o=void 0),r.encode({Type:e,Data:i,filesize:t,blocksizes:o,hashType:n.hashType,fanout:n.fanout})}}a.unmarshal=function(e){var t=r.decode(e);t.Data||(t.Data=void 0);var n=new a(i[t.Type],t.Data);return n.blockSizes=t.blocksizes,n},e.exports=a},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r=n(37),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var o=n(21);o.inherits=n(12);var a=n(84),s=n(88);o.inherits(l,a);for(var u=i(s.prototype),f=0;f<u.length;f++){var c=u[f];l.prototype[c]||(l.prototype[c]=s.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(b,this)}function b(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";e.exports=function(e){return function(t,n){n(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t|=0;for(var n=Math.max(e.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=e[t+i];return r},e.exports=t.default},function(e,t,n){"use strict";var r=n(64);e.exports=function(e,t){return function(n){var i,o,a=[];function s(e){a.push(e)}e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var u,f={emit:function(e,t){"data"==e&&s(t),"end"==e&&(i=!0,s(null)),"error"==e&&(o=t)},queue:s};return function(s,c){if(i=i||s,s)return n(s,function(){if(u){var e=u;u=null,e(s)}c(s)});u=c,r(function r(s){if(u)if(c=u,o)u=null,c(o);else if(a.length){var l=a.shift();u=null,c(null===l,l)}else n(i,function(a,l){if(a&&!0!==a)return o=a,s();if(i=i||a)t.call(f);else if(null!==l&&(e.call(f,l),o||i))return n(o||i,function(){u=null,c(o||i)});s(r)})})}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}},e.exports=t.default},function(e,t,n){"use strict";t.DAGNode=n(30),t.DAGLink=n(9),t.resolver=n(76),t.util=n(32)},function(e,t,n){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===n(e)&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(236);e.exports=function(e){return e=r(e),function(t){return function n(r,i){for(var o,a=!0;a;)a=!1,o=!0,t(r,function(t,r){if(!t&&!e(r))return o?a=!0:n(t,i);i(t,r)}),o=!1}}}},function(e,t,n){"use strict";var r=n(102);function i(e,t){return(e=e||[]).push(t),e}e.exports=function(e,t,n,o){var a,s;function u(i){var f=null,c=!1,l=0;if(i,a)return i(!!a.abort||a,function(e){o(e),s&&s()});var h=!1,b=r(function(){h||a||(h=!0,i(null,function(r,u){h=!1,function(u,h){a||((a=r)?c||o(!0===a?null:a):(f=t(f,h),l=f&&f.length||0,null!=f&&function t(){if(c)return;var n=f;f=null;c=!0;l=0;e(n,function(e){c=!1,!0!==a||l?a&&!0!==a?(o(a),s&&s()):e?i(a=!!e.abort||e,o):l?t():b():o(e)})}(),l<n&&b()))}(0,u)}))});u.abort=function(e){s=function(t){e&&e()};var t=new Error("aborted");t.abort=!0,i(a=t,function(e){e=!0===e?null:e,c||(o&&o(e),s&&s(e))})},b()}return t=t||i,u.abort=function(e){a=new Error("aborted before connecting"),s=function(t){e&&e()}},u}},function(e,t,n){"use strict";(function(t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function o(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var a=n(58),s=Object.prototype.hasOwnProperty,u=Array.prototype.slice,f="foo"===function(){}.name;function c(e){return Object.prototype.toString.call(e)}function l(e){return!o(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var h=e.exports=y,b=/\s*function\s+([^\(\s]*)\s*/;function d(e){if(a.isFunction(e)){if(f)return e.name;var t=e.toString().match(b);return t&&t[1]}}function p(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function k(e){if(f||!a.isFunction(e))return a.inspect(e);var t=d(e);return"[Function"+(t?": "+t:"")+"]"}function m(e,t,n,r,i){throw new h.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function y(e,t){e||m(e,!0,t,"==",h.ok)}function v(e,t,n,s){if(e===t)return!0;if(o(e)&&o(t))return 0===i(e,t);if(a.isDate(e)&&a.isDate(t))return e.getTime()===t.getTime();if(a.isRegExp(e)&&a.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"===r(e)||null!==t&&"object"===r(t)){if(l(e)&&l(t)&&c(e)===c(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var f=(s=s||{actual:[],expected:[]}).actual.indexOf(e);return-1!==f&&f===s.expected.indexOf(t)||(s.actual.push(e),s.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(a.isPrimitive(e)||a.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=g(e),o=g(t);if(i&&!o||!i&&o)return!1;if(i)return e=u.call(e),t=u.call(t),v(e,t,n);var s,f,c=w(e),l=w(t);if(c.length!==l.length)return!1;for(c.sort(),l.sort(),f=c.length-1;f>=0;f--)if(c[f]!==l[f])return!1;for(f=c.length-1;f>=0;f--)if(s=c[f],!v(e[s],t[s],n,r))return!1;return!0}(e,t,n,s))}return n?e===t:e==t}function g(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function S(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(n){t=n}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&m(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&a.isError(i)&&o&&x(i,n)||s)&&m(i,n,"Got unwanted exception"+r),e&&i&&n&&!x(i,n)||!e&&i)throw i}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(k((t=this).actual),128)+" "+t.operator+" "+p(k(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,o=d(n),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},a.inherits(h.AssertionError,Error),h.fail=m,h.ok=y,h.equal=function(e,t,n){e!=t&&m(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&m(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){v(e,t,!1)||m(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){v(e,t,!0)||m(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){v(e,t,!1)&&m(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,n,r){v(t,n,!0)&&m(t,n,r,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,n){e!==t&&m(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&m(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){S(!0,e,t,n)},h.doesNotThrow=function(e,t,n){S(!1,e,t,n)},h.ifError=function(e){if(e)throw e};var w=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(104),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||void 0,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||void 0}).call(this,n(3))},function(e,t,n){"use strict";var r=n(125);e.exports=function(e){return r(function(e,t){return e.push(t),e},[],e)}},function(e,t,n){"use strict";var r=n(129),i=n(69);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";(function(t){var r=n(20).util.cid,i=0,o="sha2-256",a="dag-pb";e.exports=function(e,n,s,u){var f=s.cidVersion||i,c=s.hashAlg||o,l=s.codec||a;if(t.isBuffer(e)&&(f=1,l="raw"),"sha2-256"!==c&&(f=1),s.onlyHash)return r(e,{version:f,hashAlg:c},function(t,n){u(t,{cid:n,node:e})});n.put(e,{version:f,hashAlg:c,format:l},function(t,n){u(t,{cid:n,node:e})})}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(r){function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(24),a=n(47),s=function(){function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),0!==i&&o(i,"A DAGNode requires it's serialized size"),this._data=t||r.alloc(0),this._links=n||[],this._serializedSize=i}var t,n,a;return t=e,(n=[{key:"toJSON",value:function(){return this._json||(this._json=Object.freeze({data:this.data,links:this.links.map(function(e){return e.toJSON()}),size:this.size})),Object.assign({},this._json)}},{key:"toString",value:function(){return'DAGNode <data: "'.concat(this.data.toString("base64"),'", links: ').concat(this.links.length,", size: ").concat(this.size,">")}},{key:"data",get:function(){return this._data},set:function(e){throw new Error("Can't set property: 'data' is immutable")}},{key:"links",get:function(){return this._links},set:function(e){throw new Error("Can't set property: 'links' is immutable")}},{key:"size",get:function(){return void 0===this._size&&(this._size=this.links.reduce(function(e,t){return e+t.size},this._serializedSize)),this._size},set:function(e){throw new Error("Can't set property: 'size' is immutable")}}])&&i(t.prototype,n),a&&i(t,a),e}();(t=e.exports=a(s,{className:"DAGNode",symbolName:"@ipld/js-ipld-dag-pb/dagnode"})).create=n(31),t.clone=n(190),t.addLink=n(191),t.rmLink=n(192)}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(t){var r=n(154),i=n(32).serialize,o=n(34).linkSort,a=n(30),s=n(9);e.exports=function(e,n,u){if("function"==typeof e?(u=e,e=void 0):"string"==typeof e&&(e=t.from(e)),"function"==typeof n&&(u=n,n=[]),!t.isBuffer(e))return u(new Error("Passed 'data' is not a buffer or a string!"));n=n.map(function(e){return s.isDAGLink(e)?e:s.util.createDagLinkFromB58EncodedHash(e)}),n=r(n,o),i({data:e,links:n},function(t,r){if(t)return u(t);u(null,new a(e,n,r.length))})}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(r,i){var o=n(33),a=n(61)(n(172)),s=n(76),u=n(9),f=n(30),c=n(77),l=n(4);function h(e,t){var n,r=e.data,i=e.links,o=void 0===i?[]:i;!f.isDAGNode(e)&&o&&(o=o.map(function(e){return u.isDAGLink(e)?e:u.util.createDagLinkFromB58EncodedHash(e)}));try{n=a.PBNode.encode(function(e){var t={};e.data&&e.data.length>0?t.Data=e.data:t.Data=null;e.links&&e.links.length>0?t.Links=e.links.map(function(e){return{Hash:e.cid.buffer,Name:e.name,Tsize:e.size}}):t.Links=null;return t}({data:r,links:o}))}catch(s){return t(s)}t(null,n)}(t=e.exports).serialize=h,t.deserialize=function(e,t){var n=a.PBNode.decode(e),o=n.Links.map(function(e){return new u(e.Name,e.Tsize,e.Hash)}),s=null==n.Data?r.alloc(0):n.Data;i(function(){return t(null,new f(s,o,e.length))})},t.cid=function(e,t,n){"function"==typeof t&&(n=t,t={});var i=(t=t||{}).hashAlg||s.defaultHashAlg,a=t.version;void 0===a&&(a="sha2-256"===i?0:1),l([function(t){if(r.isBuffer(e))return t(null,e);h(e,t)},function(e,t){return c(e,i,t)},function(e,t){return t(null,new o(a,s.multicodec,e))}],n)}}).call(this,n(0).Buffer,n(25).setImmediate)},function(e,t,n){"use strict";(function(t){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=n(73),o=n(161),a=n(167),s=n(49),u=n(170),f=n(171)(function(){function n(r,s,u){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e.exports.isCID(r)){var f=r;return this.version=f.version,this.codec=f.codec,void(this.multihash=t.from(f.multihash))}if("string"==typeof r)if(o.isEncoded(r)){var c=o.decode(r);r=parseInt(c.slice(0,1).toString("hex"),16),s=a.getCodec(c.slice(1)),u=a.rmPrefix(c.slice(1))}else s="dag-pb",u=i.fromB58String(r),r=0;else if(t.isBuffer(r)){var l=r.slice(0,1),h=parseInt(l.toString("hex"),16);if(0===h||1===h){var b=r;r=h,s=a.getCodec(b.slice(1)),u=a.rmPrefix(b.slice(1))}else s="dag-pb",u=r,r=0}this.codec=s,this.version=r,this.multihash=u,n.validateCID(this)}var s,c,l;return s=n,l=[{key:"validateCID",value:function(e){var t=u.checkCIDComponents(e);if(t)throw new Error(t)}}],(c=[{key:"toV0",value:function(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");var e=i.decode(this.multihash),t=e.name,n=e.length;if("sha2-256"!==t)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==n)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new f(0,this.codec,this.multihash)}},{key:"toV1",value:function(){return new f(1,this.codec,this.multihash)}},{key:"toBaseEncodedString",value:function(e){switch(e=e||"base58btc",this.version){case 0:if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");return i.toB58String(this.multihash);case 1:return o.encode(e,this.buffer).toString();default:throw new Error("Unsupported version")}}},{key:"toString",value:function(e){return this.toBaseEncodedString(e)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(e){return this.codec===e.codec&&this.version===e.version&&this.multihash.equals(e.multihash)}},{key:"buffer",get:function(){switch(this.version){case 0:return this.multihash;case 1:return t.concat([t.from("01","hex"),a.getCodeVarint(this.codec),this.multihash]);default:throw new Error("unsupported version")}}},{key:"prefix",get:function(){return t.concat([t.from("0".concat(this.version),"hex"),a.getCodeVarint(this.codec),i.prefix(this.multihash)])}}])&&r(s.prototype,c),l&&r(s,l),n}(),{className:"CID",symbolName:"@ipld/js-cid/CID"});f.codecs=s,e.exports=f}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(r){var i=n(9),o=n(32).cid;(t=e.exports).cloneData=function(e){var t;return e.data&&e.data.length>0?(t=r.alloc(e.data.length),e.data.copy(t)):t=r.alloc(0),t},t.cloneLinks=function(e){return e.links.slice()},t.linkSort=function(e,t){return r.compare(e.nameAsBuffer,t.nameAsBuffer)},t.toDAGLink=function(e,t,n){"function"==typeof t&&(n=t,t={}),o(e,t,function(r,o){if(r)return n(r);n(null,new i(t.name||"",e.size,o))})}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";function r(e){return e}var i=n(38);e.exports=function(e){if(!e)return r;e=i(e);var t,n,o=!1;return function(r){return function i(a,s){if(n)return s(n);a?(n=a,r(a,o?function(e){o?t=s:s(a)}:function(e){s(a)})):r(null,function(r,a){r?s(r):n?s(n):(o=!0,e(a,function(e,r){o=!1,n?(s(n),t&&t(n)):e?i(e,s):s(null,r)}))})}}}},function(e,t,n){e.exports=n(212)},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick(function(){e.apply(null,o)})}}}:e.exports=t}).call(this,n(1))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return e&&("string"==typeof e?function(t){return t[e]}:"object"===r(e)&&"function"==typeof e.exec?function(t){var n=e.exec(t);return n&&n[0]}:e)}},function(e,t,n){"use strict";(function(e,r){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.hasNextTick=t.hasSetImmediate=void 0,t.fallback=l,t.wrap=h;var o,a=n(17),s=(o=a)&&o.__esModule?o:{default:o};var u,f=t.hasSetImmediate="function"==typeof e&&e,c=t.hasNextTick="object"===(void 0===r?"undefined":i(r))&&"function"==typeof r.nextTick;function l(e){setTimeout(e,0)}function h(e){return function(t){var n=(0,s.default)(arguments,1);e(function(){t.apply(null,n)})}}u=f?e:c?r.nextTick:l,t.default=h(u)}).call(this,n(25).setImmediate,n(1))},function(e,t,n){"use strict";t.defined=function(e){return null!=e&&("number"!=typeof e||!isNaN(e))}},function(e,t,n){"use strict";var r=n(65),i=n(130),o=n(131),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==r(e)}},function(e,t,n){"use strict";var r=Array.isArray;e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n,r,i){return e(n,t,r,i)}},e.exports=t.default},function(e,t,n){"use strict";var r=n(153);e.exports=function(e,t,n){n=void 0===n||n;var i,o=!1;return function(a){var s,u,f=0,c=0,l=0,h=[],b=!1,d=!1;function p(){if(s){var e=s;if(u)return s=null,e(u);if(Object.hasOwnProperty.call(h,c)){s=null;var n=h[c];delete h[c],c++,e(null,n),t&&k()}else c>=l&&d&&(s=null,e(d))}}var k=r(function(){if(b=!0,d)return p();o||t&&f-t>=c||(o=!0,a(i,function(t,r){if(o=!1,t)l=f,d=t,p();else{var i=f++;e(r,function(e,t){n?h[i]=t:h.push(t),e&&(u=e),p()}),d||k()}}))});return function(e,t){e?a(d=i=e,function(e){if(t)return t(e)}):(s=t,b||k(),p())}}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&u(i,n.prototype),i}).apply(null,arguments)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=function(e,t){var n=t.className,i=t.symbolName,c=Symbol.for(i),l=o({},n,function(t){function i(){var e,t,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];return n=this,t=!(o=(e=s(i)).call.apply(e,[this].concat(u)))||"object"!==r(o)&&"function"!=typeof o?f(n):o,Object.defineProperty(f(f(t)),c,{value:!0}),t}var o,l,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e),o=i,(l=[{key:Symbol.toStringTag,get:function(){return n}}])&&a(o.prototype,l),h&&a(o,h),i}())[n];return l["is".concat(n)]=function(e){return!(!e||!e[c])},l},e.exports.proto=function(e,t){var n=t.className,r=t.symbolName,a=t.withoutNew,s=Symbol.for(r),u=o({},n,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(a&&!(this instanceof u))return i(u,n);var o=e.call.apply(e,[this].concat(n))||this;return o&&!o[s]&&Object.defineProperty(o,s,{value:!0}),o})[n];return u.prototype=Object.create(e.prototype),u.prototype.constructor=u,Object.defineProperty(u.prototype,Symbol.toStringTag,{get:function(){return n}}),u["is".concat(n)]=function(e){return!(!e||!e[s])},u}},function(e,t,n){"use strict";e.exports={encode:n(158),decode:n(159),encodingLength:n(160)}},function(e,t,n){"use strict";(function(n){(t=e.exports).raw=n.from("55","hex"),t.base1=n.from("01","hex"),t.base2=n.from("00","hex"),t.base8=n.from("07","hex"),t.base10=n.from("09","hex"),t.cbor=n.from("51","hex"),t.protobuf=n.from("50","hex"),t.rlp=n.from("60","hex"),t.bencode=n.from("63","hex"),t.multicodec=n.from("30","hex"),t.multihash=n.from("31","hex"),t.multiaddr=n.from("32","hex"),t.multibase=n.from("33","hex"),t.md4=n.from("d4","hex"),t.md5=n.from("d5","hex"),t.sha1=n.from("11","hex"),t["sha2-256"]=n.from("12","hex"),t["sha2-512"]=n.from("13","hex"),t["dbl-sha2-256"]=n.from("56","hex"),t["sha3-224"]=n.from("17","hex"),t["sha3-256"]=n.from("16","hex"),t["sha3-384"]=n.from("15","hex"),t["sha3-512"]=n.from("14","hex"),t["shake-128"]=n.from("18","hex"),t["shake-256"]=n.from("19","hex"),t["keccak-224"]=n.from("1a","hex"),t["keccak-256"]=n.from("1b","hex"),t["keccak-384"]=n.from("1c","hex"),t["keccak-512"]=n.from("1d","hex"),t.murmur3=n.from("22","hex"),t["blake2b-8"]=n.from("b201","hex"),t["blake2b-16"]=n.from("b202","hex"),t["blake2b-24"]=n.from("b203","hex"),t["blake2b-32"]=n.from("b204","hex"),t["blake2b-40"]=n.from("b205","hex"),t["blake2b-48"]=n.from("b206","hex"),t["blake2b-56"]=n.from("b207","hex"),t["blake2b-64"]=n.from("b208","hex"),t["blake2b-72"]=n.from("b209","hex"),t["blake2b-80"]=n.from("b20a","hex"),t["blake2b-88"]=n.from("b20b","hex"),t["blake2b-96"]=n.from("b20c","hex"),t["blake2b-104"]=n.from("b20d","hex"),t["blake2b-112"]=n.from("b20e","hex"),t["blake2b-120"]=n.from("b20f","hex"),t["blake2b-128"]=n.from("b210","hex"),t["blake2b-136"]=n.from("b211","hex"),t["blake2b-144"]=n.from("b212","hex"),t["blake2b-152"]=n.from("b213","hex"),t["blake2b-160"]=n.from("b214","hex"),t["blake2b-168"]=n.from("b215","hex"),t["blake2b-176"]=n.from("b216","hex"),t["blake2b-184"]=n.from("b217","hex"),t["blake2b-192"]=n.from("b218","hex"),t["blake2b-200"]=n.from("b219","hex"),t["blake2b-208"]=n.from("b21a","hex"),t["blake2b-216"]=n.from("b21b","hex"),t["blake2b-224"]=n.from("b21c","hex"),t["blake2b-232"]=n.from("b21d","hex"),t["blake2b-240"]=n.from("b21e","hex"),t["blake2b-248"]=n.from("b21f","hex"),t["blake2b-256"]=n.from("b220","hex"),t["blake2b-264"]=n.from("b221","hex"),t["blake2b-272"]=n.from("b222","hex"),t["blake2b-280"]=n.from("b223","hex"),t["blake2b-288"]=n.from("b224","hex"),t["blake2b-296"]=n.from("b225","hex"),t["blake2b-304"]=n.from("b226","hex"),t["blake2b-312"]=n.from("b227","hex"),t["blake2b-320"]=n.from("b228","hex"),t["blake2b-328"]=n.from("b229","hex"),t["blake2b-336"]=n.from("b22a","hex"),t["blake2b-344"]=n.from("b22b","hex"),t["blake2b-352"]=n.from("b22c","hex"),t["blake2b-360"]=n.from("b22d","hex"),t["blake2b-368"]=n.from("b22e","hex"),t["blake2b-376"]=n.from("b22f","hex"),t["blake2b-384"]=n.from("b230","hex"),t["blake2b-392"]=n.from("b231","hex"),t["blake2b-400"]=n.from("b232","hex"),t["blake2b-408"]=n.from("b233","hex"),t["blake2b-416"]=n.from("b234","hex"),t["blake2b-424"]=n.from("b235","hex"),t["blake2b-432"]=n.from("b236","hex"),t["blake2b-440"]=n.from("b237","hex"),t["blake2b-448"]=n.from("b238","hex"),t["blake2b-456"]=n.from("b239","hex"),t["blake2b-464"]=n.from("b23a","hex"),t["blake2b-472"]=n.from("b23b","hex"),t["blake2b-480"]=n.from("b23c","hex"),t["blake2b-488"]=n.from("b23d","hex"),t["blake2b-496"]=n.from("b23e","hex"),t["blake2b-504"]=n.from("b23f","hex"),t["blake2b-512"]=n.from("b240","hex"),t["blake2s-8"]=n.from("b241","hex"),t["blake2s-16"]=n.from("b242","hex"),t["blake2s-24"]=n.from("b243","hex"),t["blake2s-32"]=n.from("b244","hex"),t["blake2s-40"]=n.from("b245","hex"),t["blake2s-48"]=n.from("b246","hex"),t["blake2s-56"]=n.from("b247","hex"),t["blake2s-64"]=n.from("b248","hex"),t["blake2s-72"]=n.from("b249","hex"),t["blake2s-80"]=n.from("b24a","hex"),t["blake2s-88"]=n.from("b24b","hex"),t["blake2s-96"]=n.from("b24c","hex"),t["blake2s-104"]=n.from("b24d","hex"),t["blake2s-112"]=n.from("b24e","hex"),t["blake2s-120"]=n.from("b24f","hex"),t["blake2s-128"]=n.from("b250","hex"),t["blake2s-136"]=n.from("b251","hex"),t["blake2s-144"]=n.from("b252","hex"),t["blake2s-152"]=n.from("b253","hex"),t["blake2s-160"]=n.from("b254","hex"),t["blake2s-168"]=n.from("b255","hex"),t["blake2s-176"]=n.from("b256","hex"),t["blake2s-184"]=n.from("b257","hex"),t["blake2s-192"]=n.from("b258","hex"),t["blake2s-200"]=n.from("b259","hex"),t["blake2s-208"]=n.from("b25a","hex"),t["blake2s-216"]=n.from("b25b","hex"),t["blake2s-224"]=n.from("b25c","hex"),t["blake2s-232"]=n.from("b25d","hex"),t["blake2s-240"]=n.from("b25e","hex"),t["blake2s-248"]=n.from("b25f","hex"),t["blake2s-256"]=n.from("b260","hex"),t["skein256-8"]=n.from("b301","hex"),t["skein256-16"]=n.from("b302","hex"),t["skein256-24"]=n.from("b303","hex"),t["skein256-32"]=n.from("b304","hex"),t["skein256-40"]=n.from("b305","hex"),t["skein256-48"]=n.from("b306","hex"),t["skein256-56"]=n.from("b307","hex"),t["skein256-64"]=n.from("b308","hex"),t["skein256-72"]=n.from("b309","hex"),t["skein256-80"]=n.from("b30a","hex"),t["skein256-88"]=n.from("b30b","hex"),t["skein256-96"]=n.from("b30c","hex"),t["skein256-104"]=n.from("b30d","hex"),t["skein256-112"]=n.from("b30e","hex"),t["skein256-120"]=n.from("b30f","hex"),t["skein256-128"]=n.from("b310","hex"),t["skein256-136"]=n.from("b311","hex"),t["skein256-144"]=n.from("b312","hex"),t["skein256-152"]=n.from("b313","hex"),t["skein256-160"]=n.from("b314","hex"),t["skein256-168"]=n.from("b315","hex"),t["skein256-176"]=n.from("b316","hex"),t["skein256-184"]=n.from("b317","hex"),t["skein256-192"]=n.from("b318","hex"),t["skein256-200"]=n.from("b319","hex"),t["skein256-208"]=n.from("b31a","hex"),t["skein256-216"]=n.from("b31b","hex"),t["skein256-224"]=n.from("b31c","hex"),t["skein256-232"]=n.from("b31d","hex"),t["skein256-240"]=n.from("b31e","hex"),t["skein256-248"]=n.from("b31f","hex"),t["skein256-256"]=n.from("b320","hex"),t["skein512-8"]=n.from("b321","hex"),t["skein512-16"]=n.from("b322","hex"),t["skein512-24"]=n.from("b323","hex"),t["skein512-32"]=n.from("b324","hex"),t["skein512-40"]=n.from("b325","hex"),t["skein512-48"]=n.from("b326","hex"),t["skein512-56"]=n.from("b327","hex"),t["skein512-64"]=n.from("b328","hex"),t["skein512-72"]=n.from("b329","hex"),t["skein512-80"]=n.from("b32a","hex"),t["skein512-88"]=n.from("b32b","hex"),t["skein512-96"]=n.from("b32c","hex"),t["skein512-104"]=n.from("b32d","hex"),t["skein512-112"]=n.from("b32e","hex"),t["skein512-120"]=n.from("b32f","hex"),t["skein512-128"]=n.from("b330","hex"),t["skein512-136"]=n.from("b331","hex"),t["skein512-144"]=n.from("b332","hex"),t["skein512-152"]=n.from("b333","hex"),t["skein512-160"]=n.from("b334","hex"),t["skein512-168"]=n.from("b335","hex"),t["skein512-176"]=n.from("b336","hex"),t["skein512-184"]=n.from("b337","hex"),t["skein512-192"]=n.from("b338","hex"),t["skein512-200"]=n.from("b339","hex"),t["skein512-208"]=n.from("b33a","hex"),t["skein512-216"]=n.from("b33b","hex"),t["skein512-224"]=n.from("b33c","hex"),t["skein512-232"]=n.from("b33d","hex"),t["skein512-240"]=n.from("b33e","hex"),t["skein512-248"]=n.from("b33f","hex"),t["skein512-256"]=n.from("b340","hex"),t["skein512-264"]=n.from("b341","hex"),t["skein512-272"]=n.from("b342","hex"),t["skein512-280"]=n.from("b343","hex"),t["skein512-288"]=n.from("b344","hex"),t["skein512-296"]=n.from("b345","hex"),t["skein512-304"]=n.from("b346","hex"),t["skein512-312"]=n.from("b347","hex"),t["skein512-320"]=n.from("b348","hex"),t["skein512-328"]=n.from("b349","hex"),t["skein512-336"]=n.from("b34a","hex"),t["skein512-344"]=n.from("b34b","hex"),t["skein512-352"]=n.from("b34c","hex"),t["skein512-360"]=n.from("b34d","hex"),t["skein512-368"]=n.from("b34e","hex"),t["skein512-376"]=n.from("b34f","hex"),t["skein512-384"]=n.from("b350","hex"),t["skein512-392"]=n.from("b351","hex"),t["skein512-400"]=n.from("b352","hex"),t["skein512-408"]=n.from("b353","hex"),t["skein512-416"]=n.from("b354","hex"),t["skein512-424"]=n.from("b355","hex"),t["skein512-432"]=n.from("b356","hex"),t["skein512-440"]=n.from("b357","hex"),t["skein512-448"]=n.from("b358","hex"),t["skein512-456"]=n.from("b359","hex"),t["skein512-464"]=n.from("b35a","hex"),t["skein512-472"]=n.from("b35b","hex"),t["skein512-480"]=n.from("b35c","hex"),t["skein512-488"]=n.from("b35d","hex"),t["skein512-496"]=n.from("b35e","hex"),t["skein512-504"]=n.from("b35f","hex"),t["skein512-512"]=n.from("b360","hex"),t["skein1024-8"]=n.from("b361","hex"),t["skein1024-16"]=n.from("b362","hex"),t["skein1024-24"]=n.from("b363","hex"),t["skein1024-32"]=n.from("b364","hex"),t["skein1024-40"]=n.from("b365","hex"),t["skein1024-48"]=n.from("b366","hex"),t["skein1024-56"]=n.from("b367","hex"),t["skein1024-64"]=n.from("b368","hex"),t["skein1024-72"]=n.from("b369","hex"),t["skein1024-80"]=n.from("b36a","hex"),t["skein1024-88"]=n.from("b36b","hex"),t["skein1024-96"]=n.from("b36c","hex"),t["skein1024-104"]=n.from("b36d","hex"),t["skein1024-112"]=n.from("b36e","hex"),t["skein1024-120"]=n.from("b36f","hex"),t["skein1024-128"]=n.from("b370","hex"),t["skein1024-136"]=n.from("b371","hex"),t["skein1024-144"]=n.from("b372","hex"),t["skein1024-152"]=n.from("b373","hex"),t["skein1024-160"]=n.from("b374","hex"),t["skein1024-168"]=n.from("b375","hex"),t["skein1024-176"]=n.from("b376","hex"),t["skein1024-184"]=n.from("b377","hex"),t["skein1024-192"]=n.from("b378","hex"),t["skein1024-200"]=n.from("b379","hex"),t["skein1024-208"]=n.from("b37a","hex"),t["skein1024-216"]=n.from("b37b","hex"),t["skein1024-224"]=n.from("b37c","hex"),t["skein1024-232"]=n.from("b37d","hex"),t["skein1024-240"]=n.from("b37e","hex"),t["skein1024-248"]=n.from("b37f","hex"),t["skein1024-256"]=n.from("b380","hex"),t["skein1024-264"]=n.from("b381","hex"),t["skein1024-272"]=n.from("b382","hex"),t["skein1024-280"]=n.from("b383","hex"),t["skein1024-288"]=n.from("b384","hex"),t["skein1024-296"]=n.from("b385","hex"),t["skein1024-304"]=n.from("b386","hex"),t["skein1024-312"]=n.from("b387","hex"),t["skein1024-320"]=n.from("b388","hex"),t["skein1024-328"]=n.from("b389","hex"),t["skein1024-336"]=n.from("b38a","hex"),t["skein1024-344"]=n.from("b38b","hex"),t["skein1024-352"]=n.from("b38c","hex"),t["skein1024-360"]=n.from("b38d","hex"),t["skein1024-368"]=n.from("b38e","hex"),t["skein1024-376"]=n.from("b38f","hex"),t["skein1024-384"]=n.from("b390","hex"),t["skein1024-392"]=n.from("b391","hex"),t["skein1024-400"]=n.from("b392","hex"),t["skein1024-408"]=n.from("b393","hex"),t["skein1024-416"]=n.from("b394","hex"),t["skein1024-424"]=n.from("b395","hex"),t["skein1024-432"]=n.from("b396","hex"),t["skein1024-440"]=n.from("b397","hex"),t["skein1024-448"]=n.from("b398","hex"),t["skein1024-456"]=n.from("b399","hex"),t["skein1024-464"]=n.from("b39a","hex"),t["skein1024-472"]=n.from("b39b","hex"),t["skein1024-480"]=n.from("b39c","hex"),t["skein1024-488"]=n.from("b39d","hex"),t["skein1024-496"]=n.from("b39e","hex"),t["skein1024-504"]=n.from("b39f","hex"),t["skein1024-512"]=n.from("b3a0","hex"),t["skein1024-520"]=n.from("b3a1","hex"),t["skein1024-528"]=n.from("b3a2","hex"),t["skein1024-536"]=n.from("b3a3","hex"),t["skein1024-544"]=n.from("b3a4","hex"),t["skein1024-552"]=n.from("b3a5","hex"),t["skein1024-560"]=n.from("b3a6","hex"),t["skein1024-568"]=n.from("b3a7","hex"),t["skein1024-576"]=n.from("b3a8","hex"),t["skein1024-584"]=n.from("b3a9","hex"),t["skein1024-592"]=n.from("b3aa","hex"),t["skein1024-600"]=n.from("b3ab","hex"),t["skein1024-608"]=n.from("b3ac","hex"),t["skein1024-616"]=n.from("b3ad","hex"),t["skein1024-624"]=n.from("b3ae","hex"),t["skein1024-632"]=n.from("b3af","hex"),t["skein1024-640"]=n.from("b3b0","hex"),t["skein1024-648"]=n.from("b3b1","hex"),t["skein1024-656"]=n.from("b3b2","hex"),t["skein1024-664"]=n.from("b3b3","hex"),t["skein1024-672"]=n.from("b3b4","hex"),t["skein1024-680"]=n.from("b3b5","hex"),t["skein1024-688"]=n.from("b3b6","hex"),t["skein1024-696"]=n.from("b3b7","hex"),t["skein1024-704"]=n.from("b3b8","hex"),t["skein1024-712"]=n.from("b3b9","hex"),t["skein1024-720"]=n.from("b3ba","hex"),t["skein1024-728"]=n.from("b3bb","hex"),t["skein1024-736"]=n.from("b3bc","hex"),t["skein1024-744"]=n.from("b3bd","hex"),t["skein1024-752"]=n.from("b3be","hex"),t["skein1024-760"]=n.from("b3bf","hex"),t["skein1024-768"]=n.from("b3c0","hex"),t["skein1024-776"]=n.from("b3c1","hex"),t["skein1024-784"]=n.from("b3c2","hex"),t["skein1024-792"]=n.from("b3c3","hex"),t["skein1024-800"]=n.from("b3c4","hex"),t["skein1024-808"]=n.from("b3c5","hex"),t["skein1024-816"]=n.from("b3c6","hex"),t["skein1024-824"]=n.from("b3c7","hex"),t["skein1024-832"]=n.from("b3c8","hex"),t["skein1024-840"]=n.from("b3c9","hex"),t["skein1024-848"]=n.from("b3ca","hex"),t["skein1024-856"]=n.from("b3cb","hex"),t["skein1024-864"]=n.from("b3cc","hex"),t["skein1024-872"]=n.from("b3cd","hex"),t["skein1024-880"]=n.from("b3ce","hex"),t["skein1024-888"]=n.from("b3cf","hex"),t["skein1024-896"]=n.from("b3d0","hex"),t["skein1024-904"]=n.from("b3d1","hex"),t["skein1024-912"]=n.from("b3d2","hex"),t["skein1024-920"]=n.from("b3d3","hex"),t["skein1024-928"]=n.from("b3d4","hex"),t["skein1024-936"]=n.from("b3d5","hex"),t["skein1024-944"]=n.from("b3d6","hex"),t["skein1024-952"]=n.from("b3d7","hex"),t["skein1024-960"]=n.from("b3d8","hex"),t["skein1024-968"]=n.from("b3d9","hex"),t["skein1024-976"]=n.from("b3da","hex"),t["skein1024-984"]=n.from("b3db","hex"),t["skein1024-992"]=n.from("b3dc","hex"),t["skein1024-1000"]=n.from("b3dd","hex"),t["skein1024-1008"]=n.from("b3de","hex"),t["skein1024-1016"]=n.from("b3df","hex"),t["skein1024-1024"]=n.from("b3e0","hex"),t.ip4=n.from("04","hex"),t.ip6=n.from("29","hex"),t.tcp=n.from("06","hex"),t.udp=n.from("0111","hex"),t.dccp=n.from("21","hex"),t.sctp=n.from("84","hex"),t.udt=n.from("012d","hex"),t.utp=n.from("012e","hex"),t.ipfs=n.from("01a5","hex"),t.http=n.from("01e0","hex"),t.https=n.from("01bb","hex"),t.quic=n.from("01cc","hex"),t.ws=n.from("01dd","hex"),t.onion=n.from("01bc","hex"),t["p2p-circuit"]=n.from("0122","hex"),t["git-raw"]=n.from("78","hex"),t["dag-pb"]=n.from("70","hex"),t["dag-cbor"]=n.from("71","hex"),t["git-raw"]=n.from("78","hex"),t["eth-block"]=n.from("90","hex"),t["eth-block-list"]=n.from("91","hex"),t["eth-tx-trie"]=n.from("92","hex"),t["eth-tx"]=n.from("93","hex"),t["eth-tx-receipt-trie"]=n.from("94","hex"),t["eth-tx-receipt"]=n.from("95","hex"),t["eth-state-trie"]=n.from("96","hex"),t["eth-account-snapshot"]=n.from("97","hex"),t["eth-storage-trie"]=n.from("98","hex"),t["bitcoin-block"]=n.from("b0","hex"),t["bitcoin-tx"]=n.from("b1","hex"),t["zcash-block"]=n.from("c0","hex"),t["zcash-tx"]=n.from("c1","hex"),t["stellar-block"]=n.from("d0","hex"),t["stellar-tx"]=n.from("d1","hex"),t["torrent-info"]=n.from("7b","hex"),t["torrent-file"]=n.from("7c","hex"),t["ed25519-pub"]=n.from("ed","hex")}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(e){var r=n(175),i=n(177);t.names=i.names,t.codes=i.codes,t.defaultLengths=i.defaultLengths;var o=n(5);function a(e){t.decode(e)}t.toHexString=function(t){if(!e.isBuffer(t))throw new Error("must be passed a buffer");return t.toString("hex")},t.fromHexString=function(t){return e.from(t,"hex")},t.toB58String=function(t){if(!e.isBuffer(t))throw new Error("must be passed a buffer");return r.encode(t)},t.fromB58String=function(t){var n=t;return e.isBuffer(t)&&(n=t.toString()),e.from(r.decode(n))},t.decode=function(n){if(!e.isBuffer(n))throw new Error("multihash must be a Buffer");if(n.length<3)throw new Error("multihash too short. must be > 3 bytes.");var r=o.decode(n);if(!t.isValidCode(r))throw new Error("multihash unknown function code: 0x".concat(r.toString(16)));n=n.slice(o.decode.bytes);var a=o.decode(n);if(a<1)throw new Error("multihash invalid length: 0x".concat(a.toString(16)));if((n=n.slice(o.decode.bytes)).length!==a)throw new Error("multihash length inconsistent: 0x".concat(n.toString("hex")));return{code:r,name:i.codes[r],length:a,digest:n}},t.encode=function(n,r,i){if(!n||!r)throw new Error("multihash encode requires at least two args: digest, code");var a=t.coerceCode(r);if(!e.isBuffer(n))throw new Error("digest should be a Buffer");if(null==i&&(i=n.length),i&&n.length!==i)throw new Error("digest length should be equal to specified length.");return e.concat([e.from(o.encode(a)),e.from(o.encode(i)),n])},t.coerceCode=function(e){var n=e;if("string"==typeof e){if(!i.names[e])throw new Error("Unrecognized hash function named: ".concat(e));n=i.names[e]}if("number"!=typeof n)throw new Error("Hash function code should be a number. Got: ".concat(n));if(!i.codes[n]&&!t.isAppCode(n))throw new Error("Unrecognized function code: ".concat(n));return n},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!i.codes[e]},t.validate=a,t.prefix=function(e){return a(e),e.slice(0,2)}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";e.exports=function(){var e,t;return{source:function(n,r){e?e(n,r):t=[n,r]},sink:function(n){if("function"!=typeof n)throw new Error("read must be function");if(e)throw new Error("already piped");if(e=n,t){var r=t;t=null,e.apply(null,r)}}}}},function(e,t,n){"use strict";var r=n(18);e.exports=function(e){var t=e||100,n=[];return r(function(e){for(n=n.concat(e);n.length>=t;){var r=t,i=n.slice(0,r);n=n.slice(r),this.queue(i)}},function(e){n.length&&(this.queue(n),n=[]),this.queue(null)})}},function(e,t,n){"use strict";e.exports=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=n||{},Object.assign(this,t)}},function(e,t,n){"use strict";(function(t){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=n(50),o=n(237),a=n(244),s=n(55),u=n(247),f=n(47)(function(){function n(r,s,u){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e.exports.isCID(r)){var f=r;return this.version=f.version,this.codec=f.codec,void(this.multihash=t.from(f.multihash))}if("string"==typeof r)if(o.isEncoded(r)){var c=o.decode(r);r=parseInt(c.slice(0,1).toString("hex"),16),s=a.getCodec(c.slice(1)),u=a.rmPrefix(c.slice(1))}else s="dag-pb",u=i.fromB58String(r),r=0;else if(t.isBuffer(r)){var l=r.slice(0,1),h=parseInt(l.toString("hex"),16);if(0===h||1===h){var b=r;r=h,s=a.getCodec(b.slice(1)),u=a.rmPrefix(b.slice(1))}else s="dag-pb",u=r,r=0}this.codec=s,this.version=r,this.multihash=u,n.validateCID(this)}var s,c,l;return s=n,l=[{key:"validateCID",value:function(e){var t=u.checkCIDComponents(e);if(t)throw new Error(t)}}],(c=[{key:"toV0",value:function(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");var e=i.decode(this.multihash),t=e.name,n=e.length;if("sha2-256"!==t)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==n)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new f(0,this.codec,this.multihash)}},{key:"toV1",value:function(){return new f(1,this.codec,this.multihash)}},{key:"toBaseEncodedString",value:function(e){switch(e=e||"base58btc",this.version){case 0:if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");return i.toB58String(this.multihash);case 1:return o.encode(e,this.buffer).toString();default:throw new Error("Unsupported version")}}},{key:"toString",value:function(e){return this.toBaseEncodedString(e)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(e){return this.codec===e.codec&&this.version===e.version&&this.multihash.equals(e.multihash)}},{key:"buffer",get:function(){switch(this.version){case 0:return this.multihash;case 1:return t.concat([t.from("01","hex"),a.getCodeVarint(this.codec),this.multihash]);default:throw new Error("unsupported version")}}},{key:"prefix",get:function(){return t.concat([t.from("0".concat(this.version),"hex"),a.getCodeVarint(this.codec),i.prefix(this.multihash)])}}])&&r(s.prototype,c),l&&r(s,l),n}(),{className:"CID",symbolName:"@ipld/js-cid/CID"});f.codecs=s,e.exports=f}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(n){(t=e.exports).raw=n.from("55","hex"),t.base1=n.from("01","hex"),t.base2=n.from("00","hex"),t.base8=n.from("07","hex"),t.base10=n.from("09","hex"),t.cbor=n.from("51","hex"),t.protobuf=n.from("50","hex"),t.rlp=n.from("60","hex"),t.bencode=n.from("63","hex"),t.multicodec=n.from("30","hex"),t.multihash=n.from("31","hex"),t.multiaddr=n.from("32","hex"),t.multibase=n.from("33","hex"),t.md4=n.from("d4","hex"),t.md5=n.from("d5","hex"),t.sha1=n.from("11","hex"),t["sha2-256"]=n.from("12","hex"),t["sha2-512"]=n.from("13","hex"),t["dbl-sha2-256"]=n.from("56","hex"),t["sha3-224"]=n.from("17","hex"),t["sha3-256"]=n.from("16","hex"),t["sha3-384"]=n.from("15","hex"),t["sha3-512"]=n.from("14","hex"),t["shake-128"]=n.from("18","hex"),t["shake-256"]=n.from("19","hex"),t["keccak-224"]=n.from("1a","hex"),t["keccak-256"]=n.from("1b","hex"),t["keccak-384"]=n.from("1c","hex"),t["keccak-512"]=n.from("1d","hex"),t.murmur3=n.from("22","hex"),t["blake2b-8"]=n.from("b201","hex"),t["blake2b-16"]=n.from("b202","hex"),t["blake2b-24"]=n.from("b203","hex"),t["blake2b-32"]=n.from("b204","hex"),t["blake2b-40"]=n.from("b205","hex"),t["blake2b-48"]=n.from("b206","hex"),t["blake2b-56"]=n.from("b207","hex"),t["blake2b-64"]=n.from("b208","hex"),t["blake2b-72"]=n.from("b209","hex"),t["blake2b-80"]=n.from("b20a","hex"),t["blake2b-88"]=n.from("b20b","hex"),t["blake2b-96"]=n.from("b20c","hex"),t["blake2b-104"]=n.from("b20d","hex"),t["blake2b-112"]=n.from("b20e","hex"),t["blake2b-120"]=n.from("b20f","hex"),t["blake2b-128"]=n.from("b210","hex"),t["blake2b-136"]=n.from("b211","hex"),t["blake2b-144"]=n.from("b212","hex"),t["blake2b-152"]=n.from("b213","hex"),t["blake2b-160"]=n.from("b214","hex"),t["blake2b-168"]=n.from("b215","hex"),t["blake2b-176"]=n.from("b216","hex"),t["blake2b-184"]=n.from("b217","hex"),t["blake2b-192"]=n.from("b218","hex"),t["blake2b-200"]=n.from("b219","hex"),t["blake2b-208"]=n.from("b21a","hex"),t["blake2b-216"]=n.from("b21b","hex"),t["blake2b-224"]=n.from("b21c","hex"),t["blake2b-232"]=n.from("b21d","hex"),t["blake2b-240"]=n.from("b21e","hex"),t["blake2b-248"]=n.from("b21f","hex"),t["blake2b-256"]=n.from("b220","hex"),t["blake2b-264"]=n.from("b221","hex"),t["blake2b-272"]=n.from("b222","hex"),t["blake2b-280"]=n.from("b223","hex"),t["blake2b-288"]=n.from("b224","hex"),t["blake2b-296"]=n.from("b225","hex"),t["blake2b-304"]=n.from("b226","hex"),t["blake2b-312"]=n.from("b227","hex"),t["blake2b-320"]=n.from("b228","hex"),t["blake2b-328"]=n.from("b229","hex"),t["blake2b-336"]=n.from("b22a","hex"),t["blake2b-344"]=n.from("b22b","hex"),t["blake2b-352"]=n.from("b22c","hex"),t["blake2b-360"]=n.from("b22d","hex"),t["blake2b-368"]=n.from("b22e","hex"),t["blake2b-376"]=n.from("b22f","hex"),t["blake2b-384"]=n.from("b230","hex"),t["blake2b-392"]=n.from("b231","hex"),t["blake2b-400"]=n.from("b232","hex"),t["blake2b-408"]=n.from("b233","hex"),t["blake2b-416"]=n.from("b234","hex"),t["blake2b-424"]=n.from("b235","hex"),t["blake2b-432"]=n.from("b236","hex"),t["blake2b-440"]=n.from("b237","hex"),t["blake2b-448"]=n.from("b238","hex"),t["blake2b-456"]=n.from("b239","hex"),t["blake2b-464"]=n.from("b23a","hex"),t["blake2b-472"]=n.from("b23b","hex"),t["blake2b-480"]=n.from("b23c","hex"),t["blake2b-488"]=n.from("b23d","hex"),t["blake2b-496"]=n.from("b23e","hex"),t["blake2b-504"]=n.from("b23f","hex"),t["blake2b-512"]=n.from("b240","hex"),t["blake2s-8"]=n.from("b241","hex"),t["blake2s-16"]=n.from("b242","hex"),t["blake2s-24"]=n.from("b243","hex"),t["blake2s-32"]=n.from("b244","hex"),t["blake2s-40"]=n.from("b245","hex"),t["blake2s-48"]=n.from("b246","hex"),t["blake2s-56"]=n.from("b247","hex"),t["blake2s-64"]=n.from("b248","hex"),t["blake2s-72"]=n.from("b249","hex"),t["blake2s-80"]=n.from("b24a","hex"),t["blake2s-88"]=n.from("b24b","hex"),t["blake2s-96"]=n.from("b24c","hex"),t["blake2s-104"]=n.from("b24d","hex"),t["blake2s-112"]=n.from("b24e","hex"),t["blake2s-120"]=n.from("b24f","hex"),t["blake2s-128"]=n.from("b250","hex"),t["blake2s-136"]=n.from("b251","hex"),t["blake2s-144"]=n.from("b252","hex"),t["blake2s-152"]=n.from("b253","hex"),t["blake2s-160"]=n.from("b254","hex"),t["blake2s-168"]=n.from("b255","hex"),t["blake2s-176"]=n.from("b256","hex"),t["blake2s-184"]=n.from("b257","hex"),t["blake2s-192"]=n.from("b258","hex"),t["blake2s-200"]=n.from("b259","hex"),t["blake2s-208"]=n.from("b25a","hex"),t["blake2s-216"]=n.from("b25b","hex"),t["blake2s-224"]=n.from("b25c","hex"),t["blake2s-232"]=n.from("b25d","hex"),t["blake2s-240"]=n.from("b25e","hex"),t["blake2s-248"]=n.from("b25f","hex"),t["blake2s-256"]=n.from("b260","hex"),t["skein256-8"]=n.from("b301","hex"),t["skein256-16"]=n.from("b302","hex"),t["skein256-24"]=n.from("b303","hex"),t["skein256-32"]=n.from("b304","hex"),t["skein256-40"]=n.from("b305","hex"),t["skein256-48"]=n.from("b306","hex"),t["skein256-56"]=n.from("b307","hex"),t["skein256-64"]=n.from("b308","hex"),t["skein256-72"]=n.from("b309","hex"),t["skein256-80"]=n.from("b30a","hex"),t["skein256-88"]=n.from("b30b","hex"),t["skein256-96"]=n.from("b30c","hex"),t["skein256-104"]=n.from("b30d","hex"),t["skein256-112"]=n.from("b30e","hex"),t["skein256-120"]=n.from("b30f","hex"),t["skein256-128"]=n.from("b310","hex"),t["skein256-136"]=n.from("b311","hex"),t["skein256-144"]=n.from("b312","hex"),t["skein256-152"]=n.from("b313","hex"),t["skein256-160"]=n.from("b314","hex"),t["skein256-168"]=n.from("b315","hex"),t["skein256-176"]=n.from("b316","hex"),t["skein256-184"]=n.from("b317","hex"),t["skein256-192"]=n.from("b318","hex"),t["skein256-200"]=n.from("b319","hex"),t["skein256-208"]=n.from("b31a","hex"),t["skein256-216"]=n.from("b31b","hex"),t["skein256-224"]=n.from("b31c","hex"),t["skein256-232"]=n.from("b31d","hex"),t["skein256-240"]=n.from("b31e","hex"),t["skein256-248"]=n.from("b31f","hex"),t["skein256-256"]=n.from("b320","hex"),t["skein512-8"]=n.from("b321","hex"),t["skein512-16"]=n.from("b322","hex"),t["skein512-24"]=n.from("b323","hex"),t["skein512-32"]=n.from("b324","hex"),t["skein512-40"]=n.from("b325","hex"),t["skein512-48"]=n.from("b326","hex"),t["skein512-56"]=n.from("b327","hex"),t["skein512-64"]=n.from("b328","hex"),t["skein512-72"]=n.from("b329","hex"),t["skein512-80"]=n.from("b32a","hex"),t["skein512-88"]=n.from("b32b","hex"),t["skein512-96"]=n.from("b32c","hex"),t["skein512-104"]=n.from("b32d","hex"),t["skein512-112"]=n.from("b32e","hex"),t["skein512-120"]=n.from("b32f","hex"),t["skein512-128"]=n.from("b330","hex"),t["skein512-136"]=n.from("b331","hex"),t["skein512-144"]=n.from("b332","hex"),t["skein512-152"]=n.from("b333","hex"),t["skein512-160"]=n.from("b334","hex"),t["skein512-168"]=n.from("b335","hex"),t["skein512-176"]=n.from("b336","hex"),t["skein512-184"]=n.from("b337","hex"),t["skein512-192"]=n.from("b338","hex"),t["skein512-200"]=n.from("b339","hex"),t["skein512-208"]=n.from("b33a","hex"),t["skein512-216"]=n.from("b33b","hex"),t["skein512-224"]=n.from("b33c","hex"),t["skein512-232"]=n.from("b33d","hex"),t["skein512-240"]=n.from("b33e","hex"),t["skein512-248"]=n.from("b33f","hex"),t["skein512-256"]=n.from("b340","hex"),t["skein512-264"]=n.from("b341","hex"),t["skein512-272"]=n.from("b342","hex"),t["skein512-280"]=n.from("b343","hex"),t["skein512-288"]=n.from("b344","hex"),t["skein512-296"]=n.from("b345","hex"),t["skein512-304"]=n.from("b346","hex"),t["skein512-312"]=n.from("b347","hex"),t["skein512-320"]=n.from("b348","hex"),t["skein512-328"]=n.from("b349","hex"),t["skein512-336"]=n.from("b34a","hex"),t["skein512-344"]=n.from("b34b","hex"),t["skein512-352"]=n.from("b34c","hex"),t["skein512-360"]=n.from("b34d","hex"),t["skein512-368"]=n.from("b34e","hex"),t["skein512-376"]=n.from("b34f","hex"),t["skein512-384"]=n.from("b350","hex"),t["skein512-392"]=n.from("b351","hex"),t["skein512-400"]=n.from("b352","hex"),t["skein512-408"]=n.from("b353","hex"),t["skein512-416"]=n.from("b354","hex"),t["skein512-424"]=n.from("b355","hex"),t["skein512-432"]=n.from("b356","hex"),t["skein512-440"]=n.from("b357","hex"),t["skein512-448"]=n.from("b358","hex"),t["skein512-456"]=n.from("b359","hex"),t["skein512-464"]=n.from("b35a","hex"),t["skein512-472"]=n.from("b35b","hex"),t["skein512-480"]=n.from("b35c","hex"),t["skein512-488"]=n.from("b35d","hex"),t["skein512-496"]=n.from("b35e","hex"),t["skein512-504"]=n.from("b35f","hex"),t["skein512-512"]=n.from("b360","hex"),t["skein1024-8"]=n.from("b361","hex"),t["skein1024-16"]=n.from("b362","hex"),t["skein1024-24"]=n.from("b363","hex"),t["skein1024-32"]=n.from("b364","hex"),t["skein1024-40"]=n.from("b365","hex"),t["skein1024-48"]=n.from("b366","hex"),t["skein1024-56"]=n.from("b367","hex"),t["skein1024-64"]=n.from("b368","hex"),t["skein1024-72"]=n.from("b369","hex"),t["skein1024-80"]=n.from("b36a","hex"),t["skein1024-88"]=n.from("b36b","hex"),t["skein1024-96"]=n.from("b36c","hex"),t["skein1024-104"]=n.from("b36d","hex"),t["skein1024-112"]=n.from("b36e","hex"),t["skein1024-120"]=n.from("b36f","hex"),t["skein1024-128"]=n.from("b370","hex"),t["skein1024-136"]=n.from("b371","hex"),t["skein1024-144"]=n.from("b372","hex"),t["skein1024-152"]=n.from("b373","hex"),t["skein1024-160"]=n.from("b374","hex"),t["skein1024-168"]=n.from("b375","hex"),t["skein1024-176"]=n.from("b376","hex"),t["skein1024-184"]=n.from("b377","hex"),t["skein1024-192"]=n.from("b378","hex"),t["skein1024-200"]=n.from("b379","hex"),t["skein1024-208"]=n.from("b37a","hex"),t["skein1024-216"]=n.from("b37b","hex"),t["skein1024-224"]=n.from("b37c","hex"),t["skein1024-232"]=n.from("b37d","hex"),t["skein1024-240"]=n.from("b37e","hex"),t["skein1024-248"]=n.from("b37f","hex"),t["skein1024-256"]=n.from("b380","hex"),t["skein1024-264"]=n.from("b381","hex"),t["skein1024-272"]=n.from("b382","hex"),t["skein1024-280"]=n.from("b383","hex"),t["skein1024-288"]=n.from("b384","hex"),t["skein1024-296"]=n.from("b385","hex"),t["skein1024-304"]=n.from("b386","hex"),t["skein1024-312"]=n.from("b387","hex"),t["skein1024-320"]=n.from("b388","hex"),t["skein1024-328"]=n.from("b389","hex"),t["skein1024-336"]=n.from("b38a","hex"),t["skein1024-344"]=n.from("b38b","hex"),t["skein1024-352"]=n.from("b38c","hex"),t["skein1024-360"]=n.from("b38d","hex"),t["skein1024-368"]=n.from("b38e","hex"),t["skein1024-376"]=n.from("b38f","hex"),t["skein1024-384"]=n.from("b390","hex"),t["skein1024-392"]=n.from("b391","hex"),t["skein1024-400"]=n.from("b392","hex"),t["skein1024-408"]=n.from("b393","hex"),t["skein1024-416"]=n.from("b394","hex"),t["skein1024-424"]=n.from("b395","hex"),t["skein1024-432"]=n.from("b396","hex"),t["skein1024-440"]=n.from("b397","hex"),t["skein1024-448"]=n.from("b398","hex"),t["skein1024-456"]=n.from("b399","hex"),t["skein1024-464"]=n.from("b39a","hex"),t["skein1024-472"]=n.from("b39b","hex"),t["skein1024-480"]=n.from("b39c","hex"),t["skein1024-488"]=n.from("b39d","hex"),t["skein1024-496"]=n.from("b39e","hex"),t["skein1024-504"]=n.from("b39f","hex"),t["skein1024-512"]=n.from("b3a0","hex"),t["skein1024-520"]=n.from("b3a1","hex"),t["skein1024-528"]=n.from("b3a2","hex"),t["skein1024-536"]=n.from("b3a3","hex"),t["skein1024-544"]=n.from("b3a4","hex"),t["skein1024-552"]=n.from("b3a5","hex"),t["skein1024-560"]=n.from("b3a6","hex"),t["skein1024-568"]=n.from("b3a7","hex"),t["skein1024-576"]=n.from("b3a8","hex"),t["skein1024-584"]=n.from("b3a9","hex"),t["skein1024-592"]=n.from("b3aa","hex"),t["skein1024-600"]=n.from("b3ab","hex"),t["skein1024-608"]=n.from("b3ac","hex"),t["skein1024-616"]=n.from("b3ad","hex"),t["skein1024-624"]=n.from("b3ae","hex"),t["skein1024-632"]=n.from("b3af","hex"),t["skein1024-640"]=n.from("b3b0","hex"),t["skein1024-648"]=n.from("b3b1","hex"),t["skein1024-656"]=n.from("b3b2","hex"),t["skein1024-664"]=n.from("b3b3","hex"),t["skein1024-672"]=n.from("b3b4","hex"),t["skein1024-680"]=n.from("b3b5","hex"),t["skein1024-688"]=n.from("b3b6","hex"),t["skein1024-696"]=n.from("b3b7","hex"),t["skein1024-704"]=n.from("b3b8","hex"),t["skein1024-712"]=n.from("b3b9","hex"),t["skein1024-720"]=n.from("b3ba","hex"),t["skein1024-728"]=n.from("b3bb","hex"),t["skein1024-736"]=n.from("b3bc","hex"),t["skein1024-744"]=n.from("b3bd","hex"),t["skein1024-752"]=n.from("b3be","hex"),t["skein1024-760"]=n.from("b3bf","hex"),t["skein1024-768"]=n.from("b3c0","hex"),t["skein1024-776"]=n.from("b3c1","hex"),t["skein1024-784"]=n.from("b3c2","hex"),t["skein1024-792"]=n.from("b3c3","hex"),t["skein1024-800"]=n.from("b3c4","hex"),t["skein1024-808"]=n.from("b3c5","hex"),t["skein1024-816"]=n.from("b3c6","hex"),t["skein1024-824"]=n.from("b3c7","hex"),t["skein1024-832"]=n.from("b3c8","hex"),t["skein1024-840"]=n.from("b3c9","hex"),t["skein1024-848"]=n.from("b3ca","hex"),t["skein1024-856"]=n.from("b3cb","hex"),t["skein1024-864"]=n.from("b3cc","hex"),t["skein1024-872"]=n.from("b3cd","hex"),t["skein1024-880"]=n.from("b3ce","hex"),t["skein1024-888"]=n.from("b3cf","hex"),t["skein1024-896"]=n.from("b3d0","hex"),t["skein1024-904"]=n.from("b3d1","hex"),t["skein1024-912"]=n.from("b3d2","hex"),t["skein1024-920"]=n.from("b3d3","hex"),t["skein1024-928"]=n.from("b3d4","hex"),t["skein1024-936"]=n.from("b3d5","hex"),t["skein1024-944"]=n.from("b3d6","hex"),t["skein1024-952"]=n.from("b3d7","hex"),t["skein1024-960"]=n.from("b3d8","hex"),t["skein1024-968"]=n.from("b3d9","hex"),t["skein1024-976"]=n.from("b3da","hex"),t["skein1024-984"]=n.from("b3db","hex"),t["skein1024-992"]=n.from("b3dc","hex"),t["skein1024-1000"]=n.from("b3dd","hex"),t["skein1024-1008"]=n.from("b3de","hex"),t["skein1024-1016"]=n.from("b3df","hex"),t["skein1024-1024"]=n.from("b3e0","hex"),t.ip4=n.from("04","hex"),t.ip6=n.from("29","hex"),t.tcp=n.from("06","hex"),t.udp=n.from("0111","hex"),t.dccp=n.from("21","hex"),t.sctp=n.from("84","hex"),t.udt=n.from("012d","hex"),t.utp=n.from("012e","hex"),t.ipfs=n.from("01a5","hex"),t.http=n.from("01e0","hex"),t.https=n.from("01bb","hex"),t.quic=n.from("01cc","hex"),t.ws=n.from("01dd","hex"),t.onion=n.from("01bc","hex"),t["p2p-circuit"]=n.from("0122","hex"),t["git-raw"]=n.from("78","hex"),t["dag-pb"]=n.from("70","hex"),t["dag-cbor"]=n.from("71","hex"),t["git-raw"]=n.from("78","hex"),t["eth-block"]=n.from("90","hex"),t["eth-block-list"]=n.from("91","hex"),t["eth-tx-trie"]=n.from("92","hex"),t["eth-tx"]=n.from("93","hex"),t["eth-tx-receipt-trie"]=n.from("94","hex"),t["eth-tx-receipt"]=n.from("95","hex"),t["eth-state-trie"]=n.from("96","hex"),t["eth-account-snapshot"]=n.from("97","hex"),t["eth-storage-trie"]=n.from("98","hex"),t["bitcoin-block"]=n.from("b0","hex"),t["bitcoin-tx"]=n.from("b1","hex"),t["zcash-block"]=n.from("c0","hex"),t["zcash-tx"]=n.from("c1","hex"),t["stellar-block"]=n.from("d0","hex"),t["stellar-tx"]=n.from("d1","hex"),t["torrent-info"]=n.from("7b","hex"),t["torrent-file"]=n.from("7c","hex"),t["ed25519-pub"]=n.from("ed","hex")}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(62);e.exports=function(e,t){return function(n,i){if(n)return r(i,n,t);if(null!=e){var o=e;e=null,i(null,o)}else i(!0)}}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r;function i(e){return n=e,function(e,i){r?t=[e,i]:n(e,i)}}return i.pause=function(){r||(r=!0,e&&e(r))},i.resume=function(){if(r&&(r=!1,e&&e(r),t)){var i=t;t=null,n(i[0],i[1])}},i}},function(e,t,n){"use strict";(function(e,r){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])k(s)||!x(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(n,i){if(v(e.process))return function(){return t.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return n.apply(this,arguments)}};var a,s={};function u(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),l(r,e,r.depth)}function f(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return y(i)||(i=l(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(k(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),w(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.length){if(_(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(w(n))return h(n)}var f,c="",x=!1,E=["{","}"];(d(n)&&(x=!0,E=["[","]"]),_(n))&&(c=" [Function"+(n.name?": "+n.name:"")+"]");return g(n)&&(c=" "+RegExp.prototype.toString.call(n)),S(n)&&(c=" "+Date.prototype.toUTCString.call(n)),w(n)&&(c=" "+h(n)),0!==a.length||x&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),f=x?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)j(t,String(a))?o.push(b(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(b(e,t,n,r,i,!0))}),o}(e,n,r,s,a):a.map(function(t){return b(e,n,r,s,t,x)}),e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(f,c,E)):E[0]+c+E[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function b(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=k(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function k(e){return null===e}function m(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function g(e){return x(e)&&"[object RegExp]"===E(e)}function x(e){return"object"===i(e)&&null!==e}function S(e){return x(e)&&"[object Date]"===E(e)}function w(e){return x(e)&&("[object Error]"===E(e)||e instanceof Error)}function _(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(a)&&(a=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=p,t.isNull=k,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=y,t.isSymbol=function(e){return"symbol"===i(e)},t.isUndefined=v,t.isRegExp=g,t.isObject=x,t.isDate=S,t.isError=w,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===i(e)||void 0===e},t.isBuffer=n(103);var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),B[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(12),t._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,n(3),n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(39),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){"use strict";var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,n){"use strict";(function(t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(111),o=n(115);e.exports=function(e,n){if(n||(n={}),!e)throw new Error("Pass in a .proto string or a protobuf-schema parsed object");var a="object"!==r(e)||t.isBuffer(e)?i.parse(e):e,s=function(){var e=this;o(a,n.encodings||{}).forEach(function(t){e[t.name]=function(e){if(!e)return null;var t={};return Object.keys(e).forEach(function(n){t[n]=e[n].value}),t}(t.values)||t})};return s.prototype.toString=function(){return i.stringify(a)},s.prototype.toJSON=function(){return a},new s}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";e.exports=function(e,t,n){e(t),n&&n(!0===t?null:t)}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r;function i(o){if(n=o,r)return i.abort();!function i(){for(var o=!0,a=!1;o;)if(a=!1,n(null,function(s,u){if(a=!0,s=s||r){if(o=!1,t)t(!0===s?null:s);else if(s&&!0!==s)throw s}else e&&!1===e(u)||r?(o=!1,n(r||!0,t||function(){})):o||i()}),!a)return void(o=!1)}()}return i.abort=function(e,t){if("function"==typeof e&&(t=e,e=!0),r=e||!0,n)return n(r,t||function(){})},i}},function(e,t,n){"use strict";e.exports=function(e){!function t(){var n=!0,r=!1;do{r=!0,n=!1,e.call(this,function(){r?n=!0:t()}),r=!1}while(n)}()}},function(e,t,n){"use strict";var r=n(66).Symbol;e.exports=r},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(67),o="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();e.exports=a},function(e,t,n){"use strict";(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(3))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=r(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var r=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){(0,r.default)(t)(e,(0,i.default)(n),o)};var r=o(n(72)),i=o(n(8));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,u){if(u=(0,i.default)(u||r.default),e<=0||!t)return u(null);var f=(0,o.default)(t),c=!1,l=0,h=!1;function b(e,t){if(l-=1,e)c=!0,u(e);else{if(t===s.default||c&&l<=0)return c=!0,u(null);h||d()}}function d(){for(h=!0;l<e&&!c;){var t=f();if(null===t)return c=!0,void(l<=0&&u(null));l+=1,n(t.value,t.key,(0,a.default)(b))}h=!1}d()}};var r=u(n(14)),i=u(n(42)),o=u(n(132)),a=u(n(19)),s=u(n(70));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";(function(e){var r=n(155),i=n(157);t.names=i.names,t.codes=i.codes,t.defaultLengths=i.defaultLengths;var o=n(48);function a(e){t.decode(e)}t.toHexString=function(t){if(!e.isBuffer(t))throw new Error("must be passed a buffer");return t.toString("hex")},t.fromHexString=function(t){return e.from(t,"hex")},t.toB58String=function(t){if(!e.isBuffer(t))throw new Error("must be passed a buffer");return r.encode(t)},t.fromB58String=function(t){var n=t;return e.isBuffer(t)&&(n=t.toString()),e.from(r.decode(n))},t.decode=function(n){if(!e.isBuffer(n))throw new Error("multihash must be a Buffer");if(n.length<3)throw new Error("multihash too short. must be > 3 bytes.");var r=o.decode(n);if(!t.isValidCode(r))throw new Error("multihash unknown function code: 0x".concat(r.toString(16)));n=n.slice(o.decode.bytes);var a=o.decode(n);if(a<1)throw new Error("multihash invalid length: 0x".concat(a.toString(16)));if((n=n.slice(o.decode.bytes)).length!==a)throw new Error("multihash length inconsistent: 0x".concat(n.toString("hex")));return{code:r,name:i.codes[r],length:a,digest:n}},t.encode=function(n,r,i){if(!n||!r)throw new Error("multihash encode requires at least two args: digest, code");var a=t.coerceCode(r);if(!e.isBuffer(n))throw new Error("digest should be a Buffer");if(null==i&&(i=n.length),i&&n.length!==i)throw new Error("digest length should be equal to specified length.");return e.concat([e.from(o.encode(a)),e.from(o.encode(i)),n])},t.coerceCode=function(e){var n=e;if("string"==typeof e){if(!i.names[e])throw new Error("Unrecognized hash function named: ".concat(e));n=i.names[e]}if("number"!=typeof n)throw new Error("Hash function code should be a number. Got: ".concat(n));if(!i.codes[n]&&!t.isAppCode(n))throw new Error("Unrecognized function code: ".concat(n));return n},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!i.codes[e]},t.validate=a,t.prefix=function(e){return a(e),e.slice(0,2)}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(156).Buffer;e.exports=function(e){for(var t={},n=e.length,i=e.charAt(0),o=0;o<e.length;o++){var a=e.charAt(o);if(void 0!==t[a])throw new TypeError(a+" is ambiguous");t[a]=o}function s(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return r.allocUnsafe(0);for(var o=[0],a=0;a<e.length;a++){var s=t[e[a]];if(void 0===s)return;for(var u=0,f=s;u<o.length;++u)f+=o[u]*n,o[u]=255&f,f>>=8;for(;f>0;)o.push(255&f),f>>=8}for(var c=0;e[c]===i&&c<e.length-1;++c)o.push(0);return r.from(o.reverse())}return{encode:function(t){if(0===t.length)return"";for(var r=[0],o=0;o<t.length;++o){for(var a=0,s=t[o];a<r.length;++a)s+=r[a]<<8,r[a]=s%n,s=s/n|0;for(;s>0;)r.push(s%n),s=s/n|0}for(var u="",f=0;0===t[f]&&f<t.length-1;++f)u+=i;for(var c=r.length-1;c>=0;--c)u+=e[r[c]];return u},decodeUnsafe:s,decode:function(e){var t=s(e);if(t)return t;throw new Error("Non-base"+n+" character")}}}},function(e,t,n){"use strict";(function(t){var r=n(48);function i(e){return parseInt(e.toString("hex"),16)}function o(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),t.from(n,"hex")}e.exports={numberToBuffer:o,bufferToNumber:i,varintBufferEncode:function(e){return t.from(r.encode(i(e)))},varintBufferDecode:function(e){return o(r.decode(e))}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(4),o=n(33),a=n(32);(t=e.exports).multicodec="dag-pb",t.defaultHashAlg="sha2-256",t.resolve=function(e,t,n){i([function(t){return a.deserialize(e,t)},function(e,r){if(!t)return n(null,{value:e,remainderPath:""});var i=t.split("/");if("Links"===i[0]){if(!i[1])return r(null,{value:e.links.map(function(e){return e.toJSON()}),remainderPath:""});var o={};e.links.forEach(function(e,t){var n=e.toJSON();o[t]=o[n.name]={cid:n.cid,name:n.name,size:n.size}});var a=o[i[1]];"Hash"===i[2]?a={"/":a.cid}:"Tsize"===i[2]?a=a.size:"Name"===i[2]&&(a=a.name),r(null,{value:a,remainderPath:i.slice(3).join("/")})}else if("Data"===i[0])r(null,{value:e.data,remainderPath:""});else{var s={};e.links.forEach(function(e,t){var n=e.toJSON();s[n.name]={cid:n.cid,name:n.name,size:n.size}});var u=s[i[0]];if(u)return r(null,{value:{"/":u.cid},remainderPath:i.slice(1).join("/")});r(new Error("path not available"))}}],n)},t.tree=function(e,t,n){"function"==typeof t&&(n=t,t={}),t=t||{},a.deserialize(e,function(e,t){if(e)return n(e);var r=[];r.push("Links"),t.links.forEach(function(e,t){r.push("Links/".concat(t,"/Name")),r.push("Links/".concat(t,"/Tsize")),r.push("Links/".concat(t,"/Hash"))}),r.push("Data"),n(null,r)})},t.isLink=function(e,n,i){t.resolve(e,n,function(e,t){if(e)return i(e);if(t.remainderPath.length>0)return i(new Error("path out of scope"));if("object"===r(t.value)&&t.value["/"]){var n;try{n=o.isCID(new o(t.value["/"]))}catch(e){n=!1}if(n)return i(null,t.value)}i(null,!1)})}},function(e,t,n){"use strict";(function(t){var r=n(50),i=n(178);function o(e,t,n,i){if("function"==typeof n&&(i=n,n=void 0),!i)throw new Error("Missing callback");o.digest(e,t,n,function(e,o){if(e)return i(e);i(null,r.encode(o,t,n))})}e.exports=o,o.Buffer=t,o.multihash=r,o.digest=function(e,t,n,r){if("function"==typeof n&&(r=n,n=void 0),!r)throw new Error("Missing callback");var i,a=r;n&&(a=function(e,t){if(e)return r(e);r(null,t.slice(0,n))});try{i=o.createHash(t)}catch(s){return a(s)}i(e,a)},o.createHash=function(e){if(e=r.coerceCode(e),!o.functions[e])throw new Error("multihash function "+e+" not yet supported");return o.functions[e]},o.functions={17:i.sha1,18:i.sha2256,19:i.sha2512,20:i.sha3512,21:i.sha3384,22:i.sha3256,23:i.sha3224,24:i.shake128,25:i.shake256,26:i.keccak224,27:i.keccak256,28:i.keccak384,29:i.keccak512,34:i.murmur3128,35:i.murmur332,86:i.dblSha2256},i.addBlake(o.functions)}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(e){var r=n(59);t.toCallback=function(e){return function(t,n){var i,o=function(e,t){return r(function(){n(e,t)})};try{i=e(t)}catch(a){return void o(a)}o(null,i)}},t.toBuf=function(t,n){return function(r){var i=t(r,n);return e.from(i,"hex")}},t.fromString=function(t,n){return function(r){var i=e.isBuffer(r)?r.toString():r;return t(i,n)}},t.fromNumberTo32BitBuf=function(t,n){return function(r){for(var i=t(r,n),o=new Array(4),a=0;a<4;a++)o[a]=255&i,i>>=8;return e.from(o)}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";e.exports=function(e){return e&&"function"==typeof e.then}},function(e,t,n){"use strict";(function(t){var n="Input must be an string, Buffer or Uint8Array";function r(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){var r;if(e instanceof Uint8Array)r=e;else if(e instanceof t)r=new Uint8Array(e);else{if("string"!=typeof e)throw new Error(n);r=new Uint8Array(t.from(e,"utf8"))}return r},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,t,n){for(var i="\n"+e+" = ",o=0;o<t.length;o+=2){if(32===n)i+=r(t[o]).toUpperCase(),i+=" ",i+=r(t[o+1]).toUpperCase();else{if(64!==n)throw new Error("Invalid size "+n);i+=r(t[o+1]).toUpperCase(),i+=r(t[o]).toUpperCase()}o%6==4?i+="\n"+new Array(e.length+4).join(" "):o<t.length-2&&(i+=" ")}console.log(i)},testSpeed:function(e,t,n){for(var r=(new Date).getTime(),i=new Uint8Array(t),o=0;o<t;o++)i[o]=o%256;var a=(new Date).getTime();for(console.log("Generated random input in "+(a-r)+"ms"),r=a,o=0;o<n;o++){var s=e(i),u=(new Date).getTime(),f=u-r;r=u,console.log("Hashed in "+f+"ms: "+s.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(f/1e3)*100)/100+" MB PER SECOND")}}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(200)),i=o(n(45));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r.default,1),e.exports=t.default},function(e,t,n){"use strict";(function(t){var r,i=(r=n(36))&&r.__esModule?r:{default:r};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(f){return void n(f)}s.done?t(u):Promise.resolve(u).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,u,"next",e)}function u(e){a(o,r,i,s,u,"throw",e)}s(void 0)})}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=n(214),b=n(215),d=n(4),p=n(20),k=n(13),m=p.DAGLink,y=p.DAGNode,v=n(77),g=n(53),x=n(29),S=n(216),w=n(2),_=n(217),E=n(35),A=n(218),B=function(e){return new Promise(function(n,r){v(e,"murmur3-128",function(e,i){if(e)r(e);else{for(var o=i.slice(2,10),a=o.length,s=t.alloc(a),u=0;u<a;u++)s[a-u-1]=o[u];n(s)}})})};B.code=34;var j={hashFn:B},O=function(e){function n(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var i=Object.assign({},j,t);return(r=f(this,c(n).call(this,e,i)))._bucket=A(i),r}var r,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,g),r=n,(o=[{key:"put",value:function(){var e=s(i.default.mark(function e(t,n,r){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._bucket.put(t,n);case 3:return e.abrupt("return",r());case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",r(e.t0));case 9:case"end":return e.stop()}},e,this,[[0,6]])}));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=s(i.default.mark(function e(t,n){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=n,e.next=4,this._bucket.get(t);case 4:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(null,e.t1));case 8:return e.prev=8,e.t2=e.catch(0),e.abrupt("return",n(e.t2));case 11:case"end":return e.stop()}},e,this,[[0,8]])}));return function(t,n){return e.apply(this,arguments)}}()},{key:"childCount",value:function(){return this._bucket.leafCount()}},{key:"directChildrenCount",value:function(){return this._bucket.childrenCount()}},{key:"onlyChild",value:function(e){try{return e(null,this._bucket.onlyChild())}catch(t){return e(t)}}},{key:"eachChildSeries",value:function(e,t){w(S(this._bucket.eachLeafSeries()),E(function(t,n){e(t.key,t.value,n)}),_(t))}},{key:"flush",value:function(e,n,r,i){var o=this;!function(e,n,r,i,o,a){var s=n._children;var u=0;var f=[];b(function(){return u<s.length},function(t){var n=s.get(u);n?function(t,n,o){var a=h(n.toString(16).toUpperCase(),2,"0");if(A.isBucket(t))C(e,t,r,i,null,function(e,t){var n=t.cid,r=t.node;e?o(e):(f.push(new m(a,r.size,n)),o())});else{var s=t.value,u=a+t.key;f.push(new m(u,s.size,s.multihash)),o()}}(n,u,function(e){u++,t(e)}):(u++,t())},function(u){u?a(u):function(a,u){var f=t.from(s.bitField().reverse()),c=new k("hamt-sharded-directory",f);c.fanout=n.tableSize(),c.hashType=e.hashFn.code,d([function(e){return y.create(c.marshal(),a,e)},function(t,n){return x(t,i,e,n)},function(e,t){var n=e.cid,i=e.node,a={path:r,size:i.size,multihash:n.buffer};o&&o.push(a),t(null,{cid:n,node:i})}],u)}(f,a)})}(this._options,this._bucket,e,n,r,function(e,t){if(e)return i(e);o.multihash=t.cid.buffer,o.size=t.node.size,i(null,t)})}}])&&u(r.prototype,o),a&&u(r,a),n}();function C(e,n,r,i,o,a){var s=n._children;var u=0;var f=[];b(function(){return u<s.length},function(e){var t=s.get(u);if(t){c(t,u,function(t){u++;e(t)})}else{u++;e()}},function(e){if(e){a(e);return}l(f,a)});function c(t,n,o){var a=h(n.toString(16).toUpperCase(),2,"0");if(A.isBucket(t)){C(e,t,r,i,null,function(e,t){var n=t.cid,r=t.node;if(e){o(e);return}f.push(new m(a,r.size,n));o()})}else{var s=t.value;var u=a+t.key;f.push(new m(u,s.size,s.multihash));o()}}function l(a,u){var f=t.from(s.bitField().reverse()),c=new k("hamt-sharded-directory",f);c.fanout=n.tableSize(),c.hashType=e.hashFn.code,d([function(e){return y.create(c.marshal(),a,e)},function(t,n){return x(t,i,e,n)},function(e,t){var n=e.cid,i=e.node;var a={path:r,size:i.size,multihash:n.buffer};if(o){o.push(a)}t(null,{cid:n,node:i})}],u)}}e.exports=function(e,t){return new O(e,t)},e.exports.hashFn=B}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r,i=(r=n(36))&&r.__esModule?r:{default:r};function o(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(f){return void n(f)}s.done?t(u):Promise.resolve(u).then(r,i)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)})}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=n(219),f=n(220),c={bits:8},l=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=Object.assign({},c,t),this._popCount=0,this._parent=n,this._posAtParent=r,!this._options.hashFn)throw new Error("please define an options.hashFn");this._options.hash||(this._options.hash=f(this._options.hashFn)),this._children=new u}var t,n,r;return t=e,n=[{key:"put",value:function(){var e=a(i.default.mark(function e(t,n){var r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._findNewBucketAndPos(t);case 2:return r=e.sent,e.next=5,r.bucket._putAt(r,t,n);case 5:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=a(i.default.mark(function e(t){var n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._findChild(t);case 2:if(!(n=e.sent)){e.next=5;break}return e.abrupt("return",n.value);case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"del",value:function(){var e=a(i.default.mark(function e(t){var n,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._findPlace(t);case 2:n=e.sent,(r=n.bucket._at(n.pos))&&r.key===t&&n.bucket._delAt(n.pos);case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"leafCount",value:function(){return this._children.compactArray().reduce(function(t,n){return n instanceof e?t+n.leafCount():t+1},0)}},{key:"childrenCount",value:function(){return this._children.length}},{key:"onlyChild",value:function(){return this._children.get(0)}},{key:"eachLeafSeries",value:i.default.mark(function t(){var n,r,o,a,s,u,f,c,l,h,b,d,p;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=this._children.compactArray(),r=!0,o=!1,a=void 0,t.prev=4,s=n[Symbol.iterator]();case 6:if(r=(u=s.next()).done){t.next=42;break}if(!((f=u.value)instanceof e)){t.next=37;break}c=!0,l=!1,h=void 0,t.prev=12,b=f.eachLeafSeries()[Symbol.iterator]();case 14:if(c=(d=b.next()).done){t.next=21;break}return p=d.value,t.next=18,p;case 18:c=!0,t.next=14;break;case 21:t.next=27;break;case 23:t.prev=23,t.t0=t.catch(12),l=!0,h=t.t0;case 27:t.prev=27,t.prev=28,c||null==b.return||b.return();case 30:if(t.prev=30,!l){t.next=33;break}throw h;case 33:return t.finish(30);case 34:return t.finish(27);case 35:t.next=39;break;case 37:return t.next=39,f;case 39:r=!0,t.next=6;break;case 42:t.next=48;break;case 44:t.prev=44,t.t1=t.catch(4),o=!0,a=t.t1;case 48:t.prev=48,t.prev=49,r||null==s.return||s.return();case 51:if(t.prev=51,!o){t.next=54;break}throw a;case 54:return t.finish(51);case 55:return t.finish(48);case 56:case"end":return t.stop()}},t,this,[[4,44,48,56],[12,23,27,35],[28,,30,34],[49,,51,55]])})},{key:"serialize",value:function(t,n){return n(this._children.reduce(function(r,i,o){return i&&(i instanceof e?r.push(i.serialize(t,n)):r.push(t(i,o))),r},[]))}},{key:"asyncTransform",value:function(){var e=a(i.default.mark(function e(t,n){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",p(this,t,n));case 1:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{key:"toJSON",value:function(){return this.serialize(b,d)}},{key:"prettyPrint",value:function(){return JSON.stringify(this.toJSON(),null,"  ")}},{key:"tableSize",value:function(){return Math.pow(2,this._options.bits)}},{key:"_findChild",value:function(){var e=a(i.default.mark(function e(t){var n,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._findPlace(t);case 2:if(n=e.sent,!(r=n.bucket._at(n.pos))||r.key!==t){e.next=6;break}return e.abrupt("return",r);case 6:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"_findPlace",value:function(){var t=a(i.default.mark(function t(n){var r,o,a;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._options.hash(n),t.next=3,r.take(this._options.bits);case 3:if(o=t.sent,!((a=this._children.get(o))instanceof e)){t.next=7;break}return t.abrupt("return",a._findPlace(r));case 7:return t.abrupt("return",{bucket:this,pos:o,hash:r});case 8:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"_findNewBucketAndPos",value:function(){var t=a(i.default.mark(function t(n){var r,o,a,s;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._findPlace(n);case 2:if(r=t.sent,!(o=r.bucket._at(r.pos))||o.key===n){t.next=12;break}return a=new e(this._options,r.bucket,r.pos),r.bucket._putObjectAt(r.pos,a),t.next=9,a._findPlace(o.hash);case 9:return(s=t.sent).bucket._putAt(s,o.key,o.value),t.abrupt("return",a._findNewBucketAndPos(r.hash));case 12:return t.abrupt("return",r);case 13:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"_putAt",value:function(e,t,n){this._putObjectAt(e.pos,{key:t,value:n,hash:e.hash})}},{key:"_putObjectAt",value:function(e,t){this._children.get(e)||this._popCount++,this._children.set(e,t)}},{key:"_delAt",value:function(e){this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}},{key:"_level",value:function(){if(this._parent&&this._popCount<=1)if(1===this._popCount){var t=this._children.find(h);if(!(t instanceof e)){var n=t.hash;n.untake(this._options.bits);var r={pos:this._posAtParent,hash:n};this._parent._putAt(r,t.key,t.value)}}else this._parent._delAt(this._posAtParent)}},{key:"_at",value:function(e){return this._children.get(e)}}],r=[{key:"isBucket",value:function(t){return t instanceof e}}],n&&s(t.prototype,n),r&&s(t,r),e}();function h(e){return Boolean(e)}function b(e,t){return e.key}function d(e){return e}function p(e,t,n){return k.apply(this,arguments)}function k(){return(k=a(i.default.mark(function e(t,n,r){var o,a,s,u,f,c,h,b;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=[],a=!0,s=!1,u=void 0,e.prev=4,f=t._children.compactArray()[Symbol.iterator]();case 6:if(a=(c=f.next()).done){e.next=21;break}if(!((h=c.value)instanceof l)){e.next=13;break}return e.next=11,p(h,n,r);case 11:e.next=17;break;case 13:return e.next=15,n(h);case 15:b=e.sent,o.push({bitField:t._children.bitField(),children:b});case 17:return e.abrupt("return",r(o));case 18:a=!0,e.next=6;break;case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(4),s=!0,u=e.t0;case 27:e.prev=27,e.prev=28,a||null==f.return||f.return();case 30:if(e.prev=30,!s){e.next=33;break}throw u;case 33:return e.finish(30);case 34:return e.finish(27);case 35:case"end":return e.stop()}},e,this,[[4,23,27,35],[28,,30,34]])}))).apply(this,arguments)}e.exports=l},function(e,t,n){"use strict";(function(t,r){var i=n(37);e.exports=v;var o,a=n(60);v.ReadableState=y;n(85).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=n(86),f=n(6).Buffer,c=t.Uint8Array||function(){};var l=n(21);l.inherits=n(12);var h=n(227),b=void 0;b=h&&h.debuglog?h.debuglog("stream"):function(){};var d,p=n(228),k=n(87);l.inherits(v,u);var m=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(o=o||n(15));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(89).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||n(15),!(this instanceof v))return new v(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function g(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,_(e)}(e,a)):(i||(o=function(e,t){var n;r=t,f.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?x(e,a,t,!1):A(e,a)):x(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function x(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&_(e)),A(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=k.destroy,v.prototype._undestroy=k.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=f.from(e,t),t=""),n=!0),g(this,e,t,!1,n)},v.prototype.unshift=function(e){return g(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return d||(d=n(89).StringDecoder),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};var S=8388608;function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){b("emit readable"),e.emit("readable"),C(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(B,e,t))}function B(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(b("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function j(e){b("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(b("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(b("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=f.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){b("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return b("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):_(this),null;if(0===(e=w(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,i=t.needReadable;return b("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&b("length less than watermark",i=!0),t.ended||t.reading?b("reading or ended",i=!1):i&&(b("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=w(n,t))),null===(r=e>0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,b("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:v;function f(t,r){b("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,b("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",k),e.removeListener("unpipe",f),n.removeListener("end",c),n.removeListener("end",v),n.removeListener("data",p),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){b("onend"),e.end()}o.endEmitted?i.nextTick(u):n.once("end",u),e.on("unpipe",f);var l=function(e){return function(){var t=e._readableState;b("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,C(e))}}(n);e.on("drain",l);var h=!1;var d=!1;function p(t){b("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!h&&(b("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function k(t){b("onerror",t),v(),e.removeListener("error",k),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",y),v()}function y(){b("onfinish"),e.removeListener("close",m),v()}function v(){b("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",k),e.once("close",m),e.once("finish",y),e.emit("pipe",n),o.flowing||(b("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=L(t.pipes,e);return-1===a?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},v.prototype.on=function(e,t){var n=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&_(this):i.nextTick(j,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(b("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(O,e,t))}(this,e)),this},v.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(b("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(b("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<m.length;o++)e.on(m[o],this.emit.bind(this,m[o]));return this._read=function(t){b("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=T}).call(this,n(3),n(1))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function a(e){return"object"===r(e)&&null!==e}function s(e){return void 0===e}e.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,n,r,i,u,f;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(s(n=this._events[e]))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(a(n))for(i=Array.prototype.slice.call(arguments,1),r=(f=n.slice()).length,u=0;u<r;u++)f[u].apply(this,i);return!0},i.prototype.addListener=function(e,t){var n;if(!o(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){if(!o(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},i.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(o(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";e.exports=n(85).EventEmitter},function(e,t,n){"use strict";var r=n(37);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,i){var o=n(37);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=m;var f=n(21);f.inherits=n(12);var c={deprecate:n(230)},l=n(86),h=n(6).Buffer,b=i.Uint8Array||function(){};var d,p=n(87);function k(){}function m(e,t){s=s||n(15),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,f=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(_,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),_(e,t))}(e,n,r,t,i);else{var a=S(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?u(g,e,n,a,i):g(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(15),!(d.call(y,this)||this instanceof s))return new y(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function v(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function g(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),_(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,c=n.encoding,l=n.callback;if(v(e,t,!1,t.objectMode?1:f.length,f,c,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),_(e,t)})}function _(e,t){var n=S(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}f.inherits(y,l),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===y&&(e&&e._writableState instanceof m)}})):d=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,h.isBuffer(r)||r instanceof b);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=k),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,r,i,o);return u}(this,i,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,_(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(1),n(25).setImmediate,n(3))},function(e,t,n){"use strict";var r=n(6).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=f,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=l,t=3;break;default:return this.write=h,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(15),i=n(21);function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){u(e,t,n)}):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(12),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t,n){"use strict";(function(t){var r=n(5);function i(e){return parseInt(e.toString("hex"),16)}function o(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),t.from(n,"hex")}e.exports={numberToBuffer:o,bufferToNumber:i,varintBufferEncode:function(e){return t.from(r.encode(i(e)))},varintBufferDecode:function(e){return o(r.decode(e))}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(7),o=n(56);e.exports=function(){return function(e){var t;return function(n,a){function s(){t(null,function(t,n){!0===t?u():t?e(!0,function(e){a(t)}):a(null,n)})}function u(){t=null,e(null,function(e,n){if(e)return a(e);Array.isArray(n)||n&&"object"===r(n)?n=i(n):"function"!=typeof n&&(n=o(n)),t=n,s()})}n?t?t(n,function(t){e(t||n,a)}):e(n,a):t?s():u()}}}},function(e,t,n){"use strict";function r(e,t,n){var r=e.length;if(!r)return n(t);function i(){--r||n(t)}e.forEach(function(e){e?e(t,i):i()}),r||i()}e.exports=function(e){return function(t,n){!function i(){t?r(e,t,n):e.length?e[0]?e[0](null,function(t,o){t?(e.shift(),!0===t?i():r(e,t,n)):n(null,o)}):(e.shift(),i()):n(!0)}()}}},function(e,t,n){"use strict";e.exports=function(){var e,t,n,r,i=function(i,o){e?e(i,o):i?(r=i,n=o):t=o};return i.resolve=function(i){if(e)throw new Error("already resolved");if(!(e=i))throw new Error("no read cannot resolve!"+e);t&&i(null,t),n&&i(r,n)},i.abort=function(e){i.resolve(function(t,n){n(e||!0)})},i}},function(e,t,n){"use strict";e.exports=function(e){var t,n=!1;function r(r){if(!r)throw new Error("must be passed a readable");t=r,n&&e(t)}return r.resolve=r.ready=r.start=function(i){return n=!0,e=i||e,t&&e(t),r},r}},function(e,t,n){"use strict";e.exports=function(){return function(e,t){t(!0)}}},function(e,t,n){"use strict";(function(t){e.exports=function(e,n,r,i){var o=n+e.length;return r>=o||i<n?t.alloc(0):(i>=n&&i<o&&(e=e.slice(0,i-n)),r>=n&&r<o&&(e=e.slice(r-n)),e)}}).call(this,n(0).Buffer)},function(e,t,n){e.exports=n(99)},function(e,t,n){"use strict";t.importer=t.Importer=n(100),t.exporter=t.Exporter=n(235)},function(e,t,n){"use strict";e.exports=n(101)},function(e,t,n){"use strict";(function(t){var r=n(57),i=n(2),o=n(10),a=n(23),s=n(11),u=n(24),f=n(59),c=n(105),l=n(199),h=n(223),b={chunker:"fixed",rawLeaves:!1,hashOnly:!1,cidVersion:0,hash:null,leafType:"file",hashAlg:"sha2-256"};e.exports=function(e,n){var d=Object.assign({},b,n);d.cidVersion=d.cidVersion||0,d.cidVersion>0&&void 0===n.rawLeaves&&(d.rawLeaves=!0),n&&void 0!==n.hash&&void 0===n.rawLeaves&&(d.rawLeaves=!0);var p=h[d.chunker];u(p,"Unknkown chunker named "+d.chunker);var k=0,m=[],y={sink:a(function(e,t){k+=e.length,e.forEach(function(e){return y.source.push(e)}),f(t)},null,1,function(e){return y.source.end(e)}),source:s()},v=c(p,e,d),g=l(e,d),x=g.stream(),S=r(function(){});return i(y,S,v,o(function(e){return--k||t.nextTick(function(){for(;m.length;)m.shift()()}),e}),x),{sink:y.sink,source:x.source,flush:function(e){S.pause(),k?m.push(t):t();function t(){g.flush(function(t,n){if(t)return x.source.end(t),void e(t);S.resume(),e(null,n)})}}}}}).call(this,n(1))},function(e,t,n){"use strict";e.exports=function(e){var t=!1,n=0;return function(){if(n=!0,!t){for(t=!0;n;)n=!1,e();t=!1}}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return e&&"object"===r(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t,n){"use strict";(function(e,t){!function(e,n){if(!e.setImmediate){var r,i,o,a,s,u=1,f={},c=!1,l=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){d(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},r=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,r=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(d,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&d(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return f[u]=i,r(u),u++},h.clearImmediate=b}function b(e){delete f[e]}function d(e){if(c)setTimeout(d,0,e);else{var t=f[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{b(e),c=!1}}}}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(this,n(3),n(1))},function(e,t,n){"use strict";var r=n(24),i=n(106),o=n(107),a={flat:n(194),balanced:n(195),trickle:n(197)},s={strategy:"balanced",highWaterMark:100,reduceSingleLeafToSelf:!0};e.exports=function(e,t,n){r(e,"Missing chunker creator function"),r(t,"Missing IPLD");var u=Object.assign({},s,n),f=u.strategy,c=a[f];r(c,"Unknown importer build strategy name: "+f);var l=o(e,t,c,u);return i(l,t,u)}},function(e,t,n){"use strict";var r=n(11),i=n(23);e.exports=function(e,t,n){var o=r(),a=i(e(o),null,n.highWaterMark,function(e){return o.end(e)});return{source:o,sink:a}}},function(e,t,n){"use strict";(function(t){var r=n(110),i=n(13),o=n(2),a=n(7),s=n(26),u=n(126),f=n(18),c=n(127),l=n(4),h=n(46),b=n(29),d=n(193),p=n(20).DAGNode,k={chunkerOptions:{maxChunkSize:262144,avgChunkSize:262144},rawLeaves:!1,hashAlg:"sha2-256",leafType:"file",cidVersion:0,progress:function(){}};e.exports=function(e,n,m,y){var v=r({},k,y);return function(r){return function(k,y){c(k.map(function(c){return function(k){if(!c.content)return function(e,t){var r=new i("directory");l([function(e){return p.create(r.marshal(),[],e)},function(e,t){return b(e,n,v,t)}],function(n,r){if(n)return t(n);t(null,{path:e.path,multihash:r.cid.buffer,size:r.node.size})})}(c,function(e,t){if(e)return k(e);t&&r.push(t),k()});!function(r,c){t.isBuffer(r.content)&&(r.content=a([r.content]));if("function"!=typeof r.content)return c(new Error("invalid content"));var k,y,g=m(d(r,n,v),v);try{k=e(v.chunkerOptions)}catch(S){return c(S)}var x=0;o(r.content,k,u(function(e){v.progress(e.length)}),h(function(e,t){l([function(t){if(v.rawLeaves)return t(null,{size:e.length,leafSize:e.length,data:e});var n=new i(v.leafType,e);p.create(n.marshal(),[],function(e,r){if(e)return t(e);t(null,{size:r.size,leafSize:n.fileSize(),data:r})})},function(e,t){b(e.data,n,v,function(n,r){if(n)return t(n);t(null,{size:e.size,leafSize:e.leafSize,data:r.node,multihash:r.cid.buffer,path:e.path,name:""})})}],t)}),f(function(e){x++,y&&this.queue(y),y=e},function(){y&&(1===x&&(y.single=!0),this.queue(y)),this.queue(null)}),g,s(function(e,t){e?c(e):c(null,t[0])}))}(c,function(e,t){if(e)return k(e);t&&r.push(t),k()})}}),y)}}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";t.byteLength=function(e){var t=f(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=f(e),r=n[0],a=n[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,r,a)),u=0,c=a>0?r-4:r,l=0;l<c;l+=4)t=i[e.charCodeAt(l)]<<18|i[e.charCodeAt(l+1)]<<12|i[e.charCodeAt(l+2)]<<6|i[e.charCodeAt(l+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(l)]<<2|i[e.charCodeAt(l+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(l)]<<10|i[e.charCodeAt(l+1)]<<4|i[e.charCodeAt(l+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function f(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t,n){"use strict";t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,f=u>>1,c=-7,l=n?i-1:0,h=n?-1:1,b=e[t+l];for(l+=h,o=b&(1<<-c)-1,b>>=-c,c+=s;c>0;o=256*o+e[t+l],l+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(b?-1:1);a+=Math.pow(2,r),o-=f}return(b?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,b=r?0:o-1,d=r?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[n+b]=255&s,b+=d,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;e[n+b]=255&a,b+=d,a/=256,f-=8);e[n+b-d]|=128*p}},function(e,t,n){"use strict";(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return e instanceof t||e instanceof Date||e instanceof RegExp}function i(e){if(e instanceof t){var n=t.alloc?t.alloc(e.length):new t(e.length);return e.copy(n),n}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}function o(e,t){return"__proto__"===t?void 0:e[t]}var a=e.exports=function(){if(arguments.length<1||"object"!==n(arguments[0]))return!1;if(arguments.length<2)return arguments[0];var e,t,s=arguments[0];return Array.prototype.slice.call(arguments,1).forEach(function(u){"object"!==n(u)||null===u||Array.isArray(u)||Object.keys(u).forEach(function(f){return t=o(s,f),(e=o(u,f))===s?void 0:"object"!==n(e)||null===e?void(s[f]=e):Array.isArray(e)?void(s[f]=function e(t){var o=[];return t.forEach(function(t,s){"object"===n(t)&&null!==t?Array.isArray(t)?o[s]=e(t):r(t)?o[s]=i(t):o[s]=a({},t):o[s]=t}),o}(e)):r(e)?void(s[f]=i(e)):"object"!==n(t)||null===t||Array.isArray(t)?void(s[f]=a({},e)):void(s[f]=a(t,e))})}),s}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(112),i=n(114);e.exports=r,e.exports.parse=r,e.exports.stringify=i},function(e,t,n){"use strict";var r=n(113),i=["int32","int64","uint32","uint64","sint32","sint64","bool","fixed64","sfixed64","double","fixed32","sfixed32","float"],o=function(e){for(var t={};e.length;)switch(e[0]){case"[":case",":e.shift();var n=e.shift();if("("===n&&(n=e.shift(),e.shift()),"="!==e[0])throw new Error("Unexpected token in field options: "+e[0]);if(e.shift(),"]"===e[0])throw new Error("Unexpected ] in field option");t[n]=e.shift();break;case"]":return e.shift(),t;default:throw new Error("Unexpected token in field options: "+e[0])}throw new Error("No closing tag for field options")},a=function(e){for(var t={name:null,type:null,tag:-1,map:null,oneof:null,required:!1,repeated:!1,options:{}};e.length;)switch(e[0]){case"=":e.shift(),t.tag=Number(e.shift());break;case"map":if(t.type="map",t.map={from:null,to:null},e.shift(),"<"!==e[0])throw new Error("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.from=e.shift(),","!==e[0])throw new Error("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.to=e.shift(),">"!==e[0])throw new Error("Unexpected token in map type: "+e[0]);e.shift(),t.name=e.shift();break;case"repeated":case"required":case"optional":var n=e.shift();t.required="required"===n,t.repeated="repeated"===n,t.type=e.shift(),t.name=e.shift();break;case"[":t.options=o(e);break;case";":if(null===t.name)throw new Error("Missing field name");if(null===t.type)throw new Error("Missing type in message field: "+t.name);if(-1===t.tag)throw new Error("Missing tag number in message field: "+t.name);return e.shift(),t;default:throw new Error("Unexpected token in message field: "+e[0])}throw new Error("No ; found for message field")},s=function(e){for(var t={enums:[],messages:[],fields:[],extends:[],extensions:null};e.length;)switch(e[0]){case"map":case"repeated":case"optional":case"required":t.fields.push(a(e));break;case"enum":t.enums.push(d(e));break;case"message":t.messages.push(c(e));break;case"extensions":t.extensions=f(e);break;case"oneof":e.shift();var n=e.shift();if("{"!==e[0])throw new Error("Unexpected token in oneof: "+e[0]);for(e.shift();"}"!==e[0];){e.unshift("optional");var r=a(e);r.oneof=n,t.fields.push(r)}e.shift();break;case"extend":t.extends.push(u(e));break;case";":e.shift();break;case"reserved":case"option":for(e.shift();";"!==e[0];)e.shift();break;default:e.unshift("optional"),t.fields.push(a(e))}return t},u=function(e){return{name:e[1],message:c(e)}},f=function(e){e.shift();var t=Number(e.shift());if(isNaN(t))throw new Error("Invalid from in extensions definition");if("to"!==e.shift())throw new Error("Expected keyword 'to' in extensions definition");var n=e.shift();if("max"===n&&(n=536870911),n=Number(n),isNaN(n))throw new Error("Invalid to in extensions definition");if(";"!==e.shift())throw new Error("Missing ; in extensions definition");return{from:t,to:n}},c=function(e){e.shift();var t=1,n=[],r={name:e.shift(),enums:[],extends:[],messages:[],fields:[]};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("{"===e[0]?t++:"}"===e[0]&&t--,!t)return e.shift(),n=s(n),r.enums=n.enums,r.messages=n.messages,r.fields=n.fields,r.extends=n.extends,r.extensions=n.extensions,r;n.push(e.shift())}if(t)throw new Error("No closing tag for message")},l=function(e){e.shift();var t=e.shift();if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},h=function(e){if(e.shift(),"="!==e[0])throw new Error("Expected = but found "+e[0]);e.shift();var t=e.shift();switch(t){case'"proto2"':t=2;break;case'"proto3"':t=3;break;default:throw new Error("Expected protobuf syntax version but found "+t)}if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},b=function(e){if(e.length<4)throw new Error("Invalid enum value: "+e.slice(0,3).join(" "));if("="!==e[1])throw new Error("Expected = but found "+e[1]);if(";"!==e[3]&&"["!==e[3])throw new Error("Expected ; or [ but found "+e[1]);var t=e.shift();e.shift();var n={value:null,options:{}};return n.value=Number(e.shift()),"["===e[0]&&(n.options=o(e)),e.shift(),{name:t,val:n}},d=function(e){e.shift();var t={},n={name:e.shift(),values:{},options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),n;if("option"!==e[0]){var r=b(e);n.values[r.name]=r.val}else t=p(e),n.options[t.name]=t.value}throw new Error("No closing tag for enum")},p=function(e){for(var t=null,n=null,r=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")};e.length;){if(";"===e[0])return e.shift(),{name:t,value:n};switch(e[0]){case"option":e.shift();var i="("===e[0];if(i&&e.shift(),t=e.shift(),i){if(")"!==e[0])throw new Error("Expected ) but found "+e[0]);e.shift()}"."===e[0][0]&&(t+=e.shift());break;case"=":if(e.shift(),null===t)throw new Error("Expected key for option with value: "+e[0]);if(n=r(e.shift()),"optimize_for"===t&&!/^(SPEED|CODE_SIZE|LITE_RUNTIME)$/.test(n))throw new Error("Unexpected value for option optimize_for: "+n);"{"===n&&(n=k(e));break;default:throw new Error("Unexpected token in option: "+e[0])}}},k=function e(t){for(var n=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")},r={};t.length;){if("}"===t[0])return t.shift(),r;var i="("===t[0];i&&t.shift();var o=t.shift();if(i){if(")"!==t[0])throw new Error("Expected ) but found "+t[0]);t.shift()}var a=null;switch(t[0]){case":":if(void 0!==r[o])throw new Error("Duplicate option map key "+o);t.shift(),"{"===(a=n(t.shift()))&&(a=e(t)),r[o]=a,";"===t[0]&&t.shift();break;case"{":if(t.shift(),a=e(t),void 0===r[o]&&(r[o]=[]),!Array.isArray(r[o]))throw new Error("Duplicate option map key "+o);r[o].push(a);break;default:throw new Error("Unexpected token in option map: "+t[0])}}throw new Error("No closing tag for option map")},m=function(e){e.shift();var t=e.shift().replace(/^"+|"+$/gm,"");if(";"!==e[0])throw new Error("Unexpected token: "+e[0]+'. Expected ";"');return e.shift(),t},y=function(e){e.shift();var t={name:e.shift(),methods:[],options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;switch(e[0]){case"option":var n=p(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value;break;case"rpc":t.methods.push(v(e));break;default:throw new Error("Unexpected token in service: "+e[0])}}throw new Error("No closing tag for service")},v=function(e){e.shift();var t={name:e.shift(),input_type:null,output_type:null,client_streaming:!1,server_streaming:!1,options:{}};if("("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.client_streaming=!0),t.input_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),"returns"!==e[0])throw new Error("Expected returns but found "+e[0]);if(e.shift(),"("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.server_streaming=!0),t.output_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),";"===e[0])return e.shift(),t;if("{"!==e[0])throw new Error("Expected { but found "+e[0]);for(e.shift();e.length;){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;if("option"!==e[0])throw new Error("Unexpected token in rpc options: "+e[0]);var n=p(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value}throw new Error("No closing tag for rpc")};e.exports=function(e){for(var t=r(e.toString()),n=0;n<t.length;n++){var o;if(/^("|')([^'"]*)$/.test(t[n]))for(o=1===t[n].length?n+1:n;o<t.length;o++)if(/^([^'"]*)("|')$/.test(t[o])){t=t.slice(0,n).concat(t.slice(n,o+1).join("")).concat(t.slice(o+1));break}}for(var a={syntax:3,package:null,imports:[],enums:[],messages:[],options:{},extends:[]},s=!0;t.length;){switch(t[0]){case"package":a.package=l(t);break;case"syntax":if(!s)throw new Error("Protobuf syntax version should be first thing in file");a.syntax=h(t);break;case"message":a.messages.push(c(t));break;case"enum":a.enums.push(d(t));break;case"option":var f=p(t);if(a.options[f.name])throw new Error("Duplicate option "+f.name);a.options[f.name]=f.value;break;case"import":a.imports.push(m(t));break;case"extend":a.extends.push(u(t));break;case"service":a.services||(a.services=[]),a.services.push(y(t));break;default:throw new Error("Unexpected token: "+t[0])}s=!1}return a.extends.forEach(function(e){a.messages.forEach(function(t){t.name===e.name&&e.message.fields.forEach(function(e){if(!t.extensions||e.tag<t.extensions.from||e.tag>t.extensions.to)throw new Error(t.name+" does not declare "+e.tag+" as an extension number");t.fields.push(e)})})}),a.messages.forEach(function(e){e.fields.forEach(function(t){var n,r,o,s;if(t.options&&"true"===t.options.packed&&-1===i.indexOf(t.type)){if(-1===t.type.indexOf(".")){if(e.enums&&e.enums.some(function(e){return e.name===t.type}))return}else{if((n=t.type.split(".")).length>2)throw new Error("what is this?");if(r=n[0],o=n[1],a.messages.some(function(e){if(e.name===r)return s=e,e}),s&&s.enums&&s.enums.some(function(e){return e.name===o}))return}throw new Error("Fields of type "+t.type+' cannot be declared [packed=true]. Only repeated fields of primitive numeric types (types which use the varint, 32-bit, or 64-bit wire types) can be declared "packed". See https://developers.google.com/protocol-buffers/docs/encoding#optional')}})}),a}},function(e,t,n){"use strict";e.exports=function(e){var t,n=function(e){return e.trim()};return e.replace(/([;,{}()=:[\]<>]|\/\*|\*\/)/g," $1 ").split(/\n/).map(n).filter(Boolean).map(function(e){var t=e.indexOf("//");return t>-1?e.slice(0,t):e}).map(n).filter(Boolean).join("\n").split(/\s+|\n+/gm).filter((t=!1,function(e){return"/*"===e?(t=!0,!1):"*/"===e?(t=!1,!1):!t}))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=function(e,t){var n=e.repeated?"repeated":e.required?"required":"optional";"map"===e.type&&(n="map<"+e.map.from+","+e.map.to+">"),e.oneof&&(n="");var r=Object.keys(e.options||{}).map(function(t){return t+" = "+e.options[t]}).join(",");return r&&(r=" ["+r+"]"),t.push((n?n+" ":"")+("map"===e.map?"":e.type+" ")+e.name+" = "+e.tag+r+";"),t},o=function(e,t){t.push("enum "+e.name+" {"),e.options||(e.options={});var n=s(e.options,[]);return n.length>1&&t.push(n.slice(0,-1)),Object.keys(e.values).map(function(n){var r=a(e.values[n]);t.push([n+" = "+r+";"])}),t.push("}",""),t},a=function(e,t){var n=Object.keys(e.options||{}).map(function(t){return t+" = "+e.options[t]}).join(",");return n&&(n=" ["+n+"]"),e.value+n},s=function(e,t){var n=Object.keys(e);return n.forEach(function(n){var i=e[n];~n.indexOf(".")&&(n="("+n+")");var o=r(i);"object"===o?(i=u(i,[])).length&&t.push("option "+n+" = {",i,"};"):("string"===o&&"optimize_for"!==n&&(i='"'+i+'"'),t.push("option "+n+" = "+i+";"))}),n.length>0&&t.push(""),t},u=function e(t,n){return Object.keys(t).forEach(function(i){var o=t[i],a=r(o);"object"===a?Array.isArray(o)?o.forEach(function(t){(t=e(t,[])).length&&n.push(i+" {",t,"}")}):(o=e(o,[])).length&&n.push(i+" {",o,"}"):("string"===a&&(o='"'+o+'"'),n.push(i+": "+o))}),n},f=function(e,t){var n="rpc "+e.name+"(";e.client_streaming&&(n+="stream "),n+=e.input_type+") returns (",e.server_streaming&&(n+="stream "),n+=e.output_type+")",e.options||(e.options={});var r=s(e.options,[]);return r.length>1?t.push(n+" {",r.slice(0,-1),"}"):t.push(n+";"),t};e.exports=function(e){var t=[];return t.push('syntax = "proto'+e.syntax+'";',""),e.package&&t.push("package "+e.package+";",""),e.options||(e.options={}),s(e.options,t),e.enums||(e.enums=[]),e.enums.forEach(function(e){o(e,t)}),e.messages||(e.messages=[]),e.messages.forEach(function(e){!function e(t,n){n.push("message "+t.name+" {"),t.enums||(t.enums=[]),t.enums.forEach(function(e){n.push(o(e,[]))}),t.messages||(t.messages=[]),t.messages.forEach(function(t){n.push(e(t,[]))});var r={};return t.fields||(t.fields=[]),t.fields.forEach(function(e){e.oneof?(r[e.oneof]||(r[e.oneof]=[]),r[e.oneof].push(i(e,[]))):n.push(i(e,[]))}),Object.keys(r).forEach(function(e){r[e].unshift("oneof "+e+" {"),r[e].push("}"),n.push(r[e])}),n.push("}",""),n}(e,t)}),e.services&&e.services.forEach(function(e){!function(e,t){t.push("service "+e.name+" {"),e.options||(e.options={}),s(e.options,t),e.methods||(e.methods=[]),e.methods.forEach(function(e){t.push(f(e,[]))}),t.push("}","")}(e,t)}),t.map(function e(t){return function(n){return Array.isArray(n)?n.map(e(t+"  ")).join("\n"):t+n}}("")).join("\n")}},function(e,t,n){"use strict";var r=n(116),i=n(121),o=n(122),a=n(123),s=n(5);e.exports=function(e,t){var n={},u={},f={};!function e(t,r){t.enums&&t.enums.forEach(function(t){t.id=r+(r?".":"")+t.name,u[t.id]=t,e(t,t.id)}),t.messages&&t.messages.forEach(function(i){i.id=r+(r?".":"")+i.name,n[i.id]=i,i.fields.forEach(function(e){if(e.map){var i="Map_"+e.map.from+"_"+e.map.to,o={name:i,enums:[],messages:[],fields:[{name:"key",type:e.map.from,tag:1,repeated:!1,required:!0},{name:"value",type:e.map.to,tag:2,repeated:!1,required:!1}],extensions:null,id:r+(r?".":"")+i};n[o.id]||(n[o.id]=o,t.messages.push(o)),e.type=i,e.repeated=!0}}),e(i,i.id)})}(e,"");var c=function(e,t){e.messages.forEach(function(n){t[n.name]=l(n.name,e.id)}),e.enums.forEach(function(e){t[e.name]=function(e){if(!e)return null;var t={};return Object.keys(e).forEach(function(n){t[n]=e[n].value}),t}(e.values)}),t.type=2,t.message=!0,t.name=e.name;var n={};e.fields.forEach(function(e){e.oneof&&(n[e.oneof]||(n[e.oneof]=[]),n[e.oneof].push(e.name))});var r=e.fields.map(function(t){return l(t.type,e.id)}),s=a(e,r,n),u=o(e,l,r,n,s),f=i(e,l,r);return u.bytes=f.bytes=0,t.buffer=!0,t.encode=u,t.decode=f,t.encodingLength=s,t},l=function(e,i,o){if(t&&t[e])return t[e];if(r[e])return r[e];var a,l,h=(i?i+"."+e:e).split(".").map(function(t,n,r){return r.slice(0,n).concat(e).join(".")}).reverse().reduce(function(e,t){return e||n[t]||u[t]},null);if(!1===o)return h;if(!h)throw new Error("Could not resolve "+e);return h.values?(a=h,l=Object.keys(a.values||[]).map(function(e){return parseInt(a.values[e].value,10)}),r.make(0,function e(t,n,r){if(!l.length||-1===l.indexOf(t))throw new Error("Invalid enum value: "+t);return s.encode(t,n,r),e.bytes=s.encode.bytes,n},function e(t,n){var r=s.decode(t,n);if(!l.length||-1===l.indexOf(r))throw new Error("Invalid enum value: "+r);return e.bytes=s.decode.bytes,r},s.encodingLength)):f[h.id]||c(h,f[h.id]={})};return(e.enums||[]).concat((e.messages||[]).map(function(e){return l(e.id)}))}},function(e,t,n){"use strict";var r,i=n(5),o=n(120),a=n(6).Buffer,s=function(e,t,n,r){return t.bytes=n.bytes=0,{type:e,encode:t,decode:n,encodingLength:r}};t.make=s,t.bytes=(r=function(e){return a.isBuffer(e)?e.length:a.byteLength(e)},s(2,function e(t,n,o){var s=o,u=r(t);return i.encode(u,n,o),o+=i.encode.bytes,a.isBuffer(t)?t.copy(n,o):n.write(t,o,u),e.bytes=(o+=u)-s,n},function e(t,n){var r=n,o=i.decode(t,n);n+=i.decode.bytes;var a=t.slice(n,n+o);return n+=a.length,e.bytes=n-r,a},function(e){var t=r(e);return i.encodingLength(t)+t})),t.string=s(2,function e(t,n,r){var o=r,s=a.byteLength(t);return i.encode(s,n,r,"utf-8"),r+=i.encode.bytes,n.write(t,r,s),e.bytes=(r+=s)-o,n},function e(t,n){var r=n,o=i.decode(t,n);n+=i.decode.bytes;var a=t.toString("utf-8",n,n+o);return e.bytes=(n+=o)-r,a},function(e){var t=a.byteLength(e);return i.encodingLength(t)+t}),t.bool=s(0,function e(t,n,r){return n[r]=t?1:0,e.bytes=1,n},function e(t,n){var r=t[n]>0;return e.bytes=1,r},function(e){return 1}),t.int32=s(0,i.encode,function e(t,n){var r=i.decode(t,n);return e.bytes=i.decode.bytes,r>2147483647?r-4294967296:r},function(e){return i.encodingLength(e<0?e+4294967296:e)}),t.int64=s(0,function e(t,n,r){if(t<0){var o=r+9;for(i.encode(-1*t,n,r),n[r+=i.encode.bytes-1]=128|n[r];r<o-1;)n[++r]=255;n[o]=1,e.bytes=10}else i.encode(t,n,r),e.bytes=i.encode.bytes;return n},function e(t,n){var r=i.decode(t,n);if(r>=Math.pow(2,63)){for(var o=9;255===t[n+o-1];)o--;o=o||9;var s=a.allocUnsafe(o);t.copy(s,0,n,n+o),s[o-1]=127&s[o-1],r=-1*i.decode(s,0),e.bytes=10}else e.bytes=i.decode.bytes;return r},function(e){return e<0?10:i.encodingLength(e)}),t.sint32=t.sint64=s(0,o.encode,o.decode,o.encodingLength),t.uint32=t.uint64=t.enum=t.varint=s(0,i.encode,i.decode,i.encodingLength),t.fixed64=t.sfixed64=s(1,function e(t,n,r){return t.copy(n,r),e.bytes=8,n},function e(t,n){var r=t.slice(n,n+8);return e.bytes=8,r},function(e){return 8}),t.double=s(1,function e(t,n,r){return n.writeDoubleLE(t,r),e.bytes=8,n},function e(t,n){var r=t.readDoubleLE(n);return e.bytes=8,r},function(e){return 8}),t.fixed32=s(5,function e(t,n,r){return n.writeUInt32LE(t,r),e.bytes=4,n},function e(t,n){var r=t.readUInt32LE(n);return e.bytes=4,r},function(e){return 4}),t.sfixed32=s(5,function e(t,n,r){return n.writeInt32LE(t,r),e.bytes=4,n},function e(t,n){var r=t.readInt32LE(n);return e.bytes=4,r},function(e){return 4}),t.float=s(5,function e(t,n,r){return n.writeFloatLE(t,r),e.bytes=4,n},function e(t,n){var r=t.readFloatLE(n);return e.bytes=4,r},function(e){return 4})},function(e,t,n){"use strict";e.exports=function e(t,n,a){n=n||[];a=a||0;var s=a;for(;t>=o;)n[a++]=255&t|r,t/=128;for(;t&i;)n[a++]=255&t|r,t>>>=7;n[a]=0|t;e.bytes=a-s+1;return n};var r=128,i=-128,o=Math.pow(2,31)},function(e,t,n){"use strict";e.exports=function e(t,n){var o,a=0,n=n||0,s=0,u=n,f=t.length;do{if(u>=f)throw e.bytes=0,new RangeError("Could not decode varint");o=t[u++],a+=s<28?(o&i)<<s:(o&i)*Math.pow(2,s),s+=7}while(o>=r);e.bytes=u-n;return a};var r=128,i=127},function(e,t,n){"use strict";var r=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),a=Math.pow(2,28),s=Math.pow(2,35),u=Math.pow(2,42),f=Math.pow(2,49),c=Math.pow(2,56),l=Math.pow(2,63);e.exports=function(e){return e<r?1:e<i?2:e<o?3:e<a?4:e<s?5:e<u?6:e<f?7:e<c?8:e<l?9:10}},function(e,t,n){"use strict";var r=n(5);t.encode=function e(t,n,i){t=t>=0?2*t:-2*t-1;var o=r.encode(t,n,i);return e.bytes=r.encode.bytes,o},t.decode=function e(t,n){var i=r.decode(t,n);return e.bytes=r.decode.bytes,1&i?(i+1)/-2:i/2},t.encodingLength=function(e){return r.encodingLength(e>=0?2*e:-2*e-1)}},function(e,t,n){"use strict";var r=n(5),i=n(40).defined;var o=function(e,t,n){switch(e){case 0:return r.decode(t,n),n+r.decode.bytes;case 1:return n+8;case 2:var i=r.decode(t,n);return n+r.decode.bytes+i;case 3:case 4:throw new Error("Groups are not supported");case 5:return n+4;default:throw new Error("Unknown wire type: "+e)}},a=function(e,t){if(e.map)return{};if(e.repeated)return[];switch(e.type){case"string":return null!=t?t:"";case"bool":return"true"===t;case"float":case"double":case"sfixed32":case"fixed32":case"varint":case"enum":case"uint64":case"uint32":case"int64":case"int32":case"sint64":case"sint32":return parseInt(t||0,10);default:return null}};e.exports=function(e,t,n){for(var s=[],u={},f=[],c=[],l=0;l<n.length;l++){var h=e.fields[l];u[h.tag]=l;var b=h.options&&h.options.default,d=t(h.type,e.id,!1);c[l]=[b,d&&d.values],e.fields[l].packed=h.repeated&&h.options&&h.options.packed&&"false"!==h.options.packed,h.required&&s.push(h.name),h.oneof&&f.push(h.name)}function p(e,t,n,i,o,a){var s=t.name;if(t.oneof)for(var u=Object.keys(n),c=0;c<u.length;c++)f.indexOf(u[c])>-1&&delete n[u[c]];if(e.message){var l=r.decode(i,o);o+=r.decode.bytes;var h=e.decode(i,o,o+l);t.map?(n[s]=n[s]||{},n[s][h.key]=h.value):t.repeated?(n[s]=n[s]||[],n[s].push(h)):n[s]=h}else t.repeated?(n[s]=n[s]||[],n[s].push(e.decode(i,o))):n[s]=e.decode(i,o);return o+=e.decode.bytes}return function t(l,h,b){if(null==h&&(h=0),null==b&&(b=l.length),!(b<=l.length&&h<=l.length))throw new Error("Decoded message is not valid");for(var d,k=h,m={};;){if(b<=h){var y,v,g="",x=0;for(x=0;x<s.length;x++)if(g=s[x],!i(m[g]))throw new Error("Decoded message is not valid, missing required field: "+g);for(x=0;x<n.length;x++)if(d=e.fields[x],v=c[x][0],y=c[x][1],g=d.name,!i(m[g])){var S=!1;if(d.oneof)for(var w=Object.keys(m),_=0;_<w.length;_++)if(f.indexOf(w[_])>-1){S=!0;break}S||(y?d.repeated?m[g]=[]:(v=v&&y[v]?y[v].value:y[Object.keys(y)[0]].value,m[g]=parseInt(v||0,10)):m[g]=a(d,v))}return t.bytes=h-k,m}var E=r.decode(l,h);h+=r.decode.bytes;var A=u[E>>3];if(null!=A){var B=n[A];if((d=e.fields[A]).packed){var j=r.decode(l,h);for(j+=h+=r.decode.bytes;h<j;)h=p(B,d,m,l,h)}else h=p(B,d,m,l,h)}else h=o(7&E,l,h)}}}},function(e,t,n){"use strict";(function(t){var r=n(40).defined,i=n(5);e.exports=function(e,n,o,a,s){for(var u=Object.keys(a),f=o.length,c={},l=0;l<f;l++){c[l]={p:i.encode(e.fields[l].tag<<3|2),h:i.encode(e.fields[l].tag<<3|o[l].type)};var h=e.fields[l];e.fields[l].packed=h.repeated&&h.options&&h.options.packed&&"false"!==h.options.packed}function b(e,t,n,r,o,a){var s=0;if(!o)for(s=0;s<n.length;s++)e[t++]=n[s];return r.message&&(i.encode(r.encodingLength(a),e,t),t+=i.encode.bytes),r.encode(a,e,t),t+r.encode.bytes}return function n(l,h,d){null==d&&(d=0),null==h&&(h=t.allocUnsafe(s(l)));var p=d,k=Object.keys(l),m=0,y=!1;for(m=0;m<u.length;m++){var v=u[m],g=a[m];if(k.indexOf(g)>-1){if(y)throw new Error("only one of the properties defined in oneof "+v+" can be set");y=!0}}for(m=0;m<f;m++){var x=o[m],S=e.fields[m],w=l[S.name],_=0;if(r(w)){var E,A=c[m].p,B=c[m].h,j=S.packed;if(S.map){var O=Object.keys(w);for(_=0;_<O.length;_++)O[_]={key:O[_],value:w[O[_]]};w=O}if(j){var C=0;for(_=0;_<w.length;_++)r(w[_])&&(C+=x.encodingLength(w[_]));if(C){for(_=0;_<B.length;_++)h[d++]=A[_];i.encode(C,h,d),d+=i.encode.bytes}}if(S.repeated)for(_=0;_<w.length;_++)E=w[_],r(E)&&(d=b(h,d,B,x,j,E));else d=b(h,d,B,x,j,w)}else if(S.required)throw new Error(S.name+" is required")}return n.bytes=d-p,h}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(40).defined,i=n(5);e.exports=function(e,t,n){for(var o=Object.keys(n),a=t.length,s=new Array(a),u=0;u<e.fields.length;u++){s[u]=i.encodingLength(e.fields[u].tag<<3|t[u].type);var f=e.fields[u];e.fields[u].packed=f.repeated&&f.options&&f.options.packed&&"false"!==f.options.packed}return function(u){var f=0,c=0,l=0;for(c=0;c<o.length;c++){var h=o[c],b=n[h],d=!1;for(l=0;l<b.length;l++)if(r(u[b[l]])){if(d)throw new Error("only one of the properties defined in oneof "+h+" can be set");d=!0}}for(c=0;c<a;c++){var p,k=t[c],m=e.fields[c],y=u[m.name],v=s[c];if(r(y)){if(m.map){var g=Object.keys(y);for(l=0;l<g.length;l++)g[l]={key:g[l],value:y[g[l]]};y=g}if(m.packed){var x=0;for(l=0;l<y.length;l++)r(y[l])&&(x+=p=k.encodingLength(y[l]),k.message&&(x+=i.encodingLength(p)));x&&(f+=v+x+i.encodingLength(x))}else if(m.repeated)for(l=0;l<y.length;l++)r(y[l])&&(f+=v+(p=k.encodingLength(y[l]))+(k.message?i.encodingLength(p):0));else f+=v+(p=k.encodingLength(y))+(k.message?i.encodingLength(p):0)}else if(m.required)throw new Error(m.name+" is required")}return f}}},function(e,t,n){"use strict";e.exports="message Data {\n  enum DataType {\n    Raw = 0;\n    Directory = 1;\n    File = 2;\n    Metadata = 3;\n    Symlink = 4;\n    HAMTShard = 5;\n  }\n\n  required DataType Type = 1;\n  optional bytes Data = 2;\n  optional uint64 filesize = 3;\n  repeated uint64 blocksizes = 4;\n\n  optional uint64 hashType = 5;\n  optional uint64 fanout = 6;\n}\n\nmessage Metadata {\n  optional string MimeType = 1;\n}"},function(e,t,n){"use strict";var r=n(63);e.exports=function(e,t,n){n||(n=t,t=null);var i=r(function(n){t=e(t,n)},function(e){n(e,t)});return 2===arguments.length?function(e){e(null,function(r,o){if(r)return n(!0===r?null:r);t=o,i(e)})}:i}},function(e,t,n){"use strict";e.exports=function(e,t){var n=!1;function r(e){!n&&t&&(n=!0,t(!0===e?null:e))}return function(t){return function(n,i){return n&&r(n),t(n,function(t,n){t?r(t):e&&e(n),i(t,n)})}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(r.default,e,t)};var r=o(n(128)),i=o(n(152));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){((0,r.default)(e)?h:b)(e,(0,c.default)(t),n)};var r=l(n(27)),i=l(n(70)),o=l(n(71)),a=l(n(45)),s=l(n(14)),u=l(n(42)),f=l(n(19)),c=l(n(8));function l(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){n=(0,u.default)(n||s.default);var r=0,o=0,a=e.length;function c(e,t){e?n(e):++o!==a&&t!==i.default||n(null)}for(0===a&&n(null);r<a;r++)t(e[r],r,(0,f.default)(c))}var b=(0,a.default)(o.default,1/0);e.exports=t.default},function(e,t,n){"use strict";var r=n(41),i=n(68),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==u}},function(e,t,n){"use strict";var r=n(65),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t=(0,i.default)(e);return t?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(t):(n=e,a=(0,o.default)(n),s=-1,u=a.length,function(){var e=a[++s];return s<u?{value:n[e],key:e}:null});var n,a,s,u};var r=a(n(27)),i=a(n(133)),o=a(n(134));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r&&e[r]&&e[r]()};var r="function"==typeof Symbol&&Symbol.iterator;e.exports=t.default},function(e,t,n){"use strict";var r=n(135),i=n(146),o=n(27);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){"use strict";var r=n(136),i=n(137),o=n(44),a=n(139),s=n(141),u=n(142),f=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),l=!n&&!c&&a(e),h=!n&&!c&&!l&&u(e),b=n||c||l||h,d=b?r(e.length,String):[],p=d.length;for(var k in e)!t&&!f.call(e,k)||b&&("length"==k||l&&("offset"==k||"parent"==k)||h&&("buffer"==k||"byteLength"==k||"byteOffset"==k)||s(k,p))||d.push(k);return d}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){"use strict";var r=n(138),i=n(43),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){"use strict";var r=n(41),i=n(43),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){"use strict";(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(66),o=n(140),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?i.Buffer:void 0,f=(u?u.isBuffer:void 0)||o;e.exports=f}).call(this,n(28)(e))},function(e,t,n){"use strict";e.exports=function(){return!1}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=r(e);return!!(t=null==t?i:t)&&("number"==n||"symbol"!=n&&o.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){"use strict";var r=n(143),i=n(144),o=n(145),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){"use strict";var r=n(41),i=n(69),o=n(43),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){"use strict";(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(67),o="object"==r(t)&&t&&!t.nodeType&&t,a=o&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o&&i.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=u}).call(this,n(28)(e))},function(e,t,n){"use strict";var r=n(147),i=n(148),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){"use strict";var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t,n){"use strict";var r=n(149)(Object.keys,Object);e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(function(t,n){var i;try{i=e.apply(this,t)}catch(o){return n(o)}(0,r.default)(i)&&"function"==typeof i.then?i.then(function(e){s(n,null,e)},function(e){s(n,e.message?e:new Error(e))}):n(null,i)})};var r=a(n(68)),i=a(n(151)),o=a(n(39));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){try{e(t,n)}catch(r){(0,o.default)(u,r)}}function u(e){throw e}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=(0,o.default)(arguments),n=t.pop();e.call(this,t,n)}};var r,i=n(17),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){n=n||r.default;var s=(0,i.default)(t)?[]:{};e(t,function(e,t,n){(0,a.default)(e)(function(e,r){arguments.length>2&&(r=(0,o.default)(arguments,1)),s[t]=r,n(e)})},function(e){n(e,s)})};var r=s(n(14)),i=s(n(27)),o=s(n(17)),a=s(n(8));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";e.exports=function(e){var t=!1,n=0;return function(){if(n=!0,!t){for(t=!0;n;)n=!1,e();t=!1}}}},function(e,t,n){"use strict";var r,i,o;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(){var e=function(e,n){return t(e.slice(),n)};function t(e,t){"function"!=typeof t&&(t=function(e,t){return String(e).localeCompare(t)});var r=e.length;if(r<=1)return e;for(var i=new Array(r),o=1;o<r;o*=2){n(e,t,o,i);var a=e;e=i,i=a}return e}e.inplace=function(e,r){var i=t(e,r);return i!==e&&n(i,null,e.length,e),e};var n=function(e,t,n,r){var i,o,a,s,u,f=e.length,c=0,l=2*n;for(i=0;i<f;i+=l)for(a=(o=i+n)+n,o>f&&(o=f),a>f&&(a=f),s=i,u=o;;)if(s<o&&u<a)t(e[s],e[u])<=0?r[c++]=e[s++]:r[c++]=e[u++];else if(s<o)r[c++]=e[s++];else{if(!(u<a))break;r[c++]=e[u++]}};return e},"object"===a(t)&&void 0!==e?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";var r=n(74);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,n){"use strict";var r=n(0),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";t.names=Object.freeze({id:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),t.codes=Object.freeze({17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46000:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),t.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46000:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},function(e,t,n){"use strict";e.exports=function e(t,n,a){n=n||[];a=a||0;var s=a;for(;t>=o;)n[a++]=255&t|r,t/=128;for(;t&i;)n[a++]=255&t|r,t>>>=7;n[a]=0|t;e.bytes=a-s+1;return n};var r=128,i=-128,o=Math.pow(2,31)},function(e,t,n){"use strict";e.exports=function e(t,n){var o,a=0,n=n||0,s=0,u=n,f=t.length;do{if(u>=f)throw e.bytes=0,new RangeError("Could not decode varint");o=t[u++],a+=s<28?(o&i)<<s:(o&i)*Math.pow(2,s),s+=7}while(o>=r);e.bytes=u-n;return a};var r=128,i=127},function(e,t,n){"use strict";var r=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),a=Math.pow(2,28),s=Math.pow(2,35),u=Math.pow(2,42),f=Math.pow(2,49),c=Math.pow(2,56),l=Math.pow(2,63);e.exports=function(e){return e<r?1:e<i?2:e<o?3:e<a?4:e<s?5:e<u?6:e<f?7:e<c?8:e<l?9:10}},function(e,t,n){"use strict";(function(r){var i=n(162);(t=e.exports=a).encode=function(e,t){var n=s(e);return a(n.name,r.from(n.encode(t)))},t.decode=function(e){r.isBuffer(e)&&(e=e.toString());var t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=r.from(e));var n=s(t);return r.from(n.decode(e.toString()))},t.isEncoded=function(e){r.isBuffer(e)&&(e=e.toString());if("[object String]"!==Object.prototype.toString.call(e))return!1;var t=e.substring(0,1);try{var n=s(t);return n.name}catch(i){return!1}},t.names=Object.freeze(Object.keys(i.names)),t.codes=Object.freeze(Object.keys(i.codes));var o=new Error("Unsupported encoding");function a(e,t){if(!t)throw new Error("requires an encoded buffer");var n=s(e),i=r.from(n.code);return function(e,t){s(e).decode(t.toString())}(n.name,t),r.concat([i,t])}function s(e){var t;if(i.names[e])t=i.names[e];else{if(!i.codes[e])throw o;t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(163),i=n(74),o=n(164),a=n(165),s=n(166),u=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],f=u.reduce(function(e,t){return e[t[0]]=new r(t[0],t[1],t[2],t[3]),e},{}),c=u.reduce(function(e,t){return e[t[1]]=f[t[0]],e},{});e.exports={names:f,codes:c}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.code=n,this.alphabet=i,r&&i&&(this.engine=r(i))}var t,n,i;return t=e,(n=[{key:"encode",value:function(e){return this.engine.encode(e)}},{key:"decode",value:function(e){return this.engine.decode(e)}},{key:"isImplemented",value:function(){return this.engine}}])&&r(t.prototype,n),i&&r(t,i),e}();e.exports=i},function(e,t,n){"use strict";(function(t){e.exports=function(e){return{encode:function(e){return"string"==typeof e?t.from(e).toString("hex"):e.toString("hex")},decode:function(n){var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(e.indexOf(u)<0)throw new Error("invalid base16 character")}}catch(f){i=!0,o=f}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return t.from(n,"hex")}}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(t){function n(e,t){var n=e.byteLength,r=new Uint8Array(e),i=t.indexOf("=")===t.length-1;i&&(t=t.substring(0,t.length-2));for(var o=0,a=0,s="",u=0;u<n;u++)for(a=a<<8|r[u],o+=8;o>=5;)s+=t[a>>>o-5&31],o-=5;if(o>0&&(s+=t[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}e.exports=function(e){return{encode:function(r){return n("string"==typeof r?t.from(r):r,e)},decode:function(t){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(e.indexOf(s)<0)throw new Error("invalid base32 character")}}catch(u){r=!0,i=u}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return function(e,t){for(var n=(e=e.replace(new RegExp("=","g"),"")).length,r=0,i=0,o=0,a=new Uint8Array(5*n/8|0),s=0;s<n;s++)i=i<<5|t.indexOf(e[s]),(r+=5)>=8&&(a[o++]=i>>>r-8&255,r-=8);return a.buffer}(t,e)}}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(t){e.exports=function(e){var n=e.indexOf("=")>-1,r=e.indexOf("-")>-1&&e.indexOf("_")>-1;return{encode:function(e){var i="";i="string"==typeof e?t.from(e).toString("base64"):e.toString("base64"),r&&(i=i.replace(/\+/g,"-").replace(/\//g,"_"));var o=i.indexOf("=");return o>0&&!n&&(i=i.substring(0,o)),i},decode:function(n){var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(e.indexOf(u)<0)throw new Error("invalid base64 character")}}catch(f){i=!0,o=f}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return t.from(n,"base64")}}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(r){var i=n(48),o=n(168),a=n(169),s=n(75);(t=e.exports).addPrefix=function(e,t){var n;if(r.isBuffer(e))n=s.varintBufferEncode(e);else{if(!o[e])throw new Error("multicodec not recognized");n=o[e]}return r.concat([n,t])},t.rmPrefix=function(e){return i.decode(e),e.slice(i.decode.bytes)},t.getCodec=function(e){var t=s.varintBufferDecode(e),n=a[t.toString("hex")];if(void 0===n)throw new Error("Code `0x"+t.toString("hex")+"` not found");return n},t.getCodeVarint=function(e){var t=o[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},t.addCodec=function(e,t){o[e]=s.varintBufferEncode(t),a[t.toString("hex")]=e}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(49),i=n(75).varintBufferEncode,o={};for(var a in e.exports=o,r){var s=r[a];o[a]=i(s)}},function(e,t,n){"use strict";var r=n(49),i={};for(var o in e.exports=i,r){i[r[o].toString("hex")]=o}},function(e,t,n){"use strict";(function(t){var r=n(73),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(!t.isBuffer(e.multihash))return"multihash must be a Buffer";try{r.validate(e.multihash)}catch(i){var n=i.message;return n||(n="Multihash validation failed"),n}}};e.exports=i}).call(this,n(0).Buffer)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&u(i,n.prototype),i}).apply(null,arguments)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=function(e,t){var n=t.className,i=t.symbolName,c=Symbol.for(i),l=o({},n,function(t){function i(){var e,t,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];return n=this,t=!(o=(e=s(i)).call.apply(e,[this].concat(u)))||"object"!==r(o)&&"function"!=typeof o?f(n):o,Object.defineProperty(f(f(t)),c,{value:!0}),t}var o,l,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e),o=i,(l=[{key:Symbol.toStringTag,get:function(){return n}}])&&a(o.prototype,l),h&&a(o,h),i}())[n];return l["is".concat(n)]=function(e){return!(!e||!e[c])},l},e.exports.proto=function(e,t){var n=t.className,r=t.symbolName,a=t.withoutNew,s=Symbol.for(r),u=o({},n,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(a&&!(this instanceof u))return i(u,n);var o=e.call.apply(e,[this].concat(n))||this;return o&&!o[s]&&Object.defineProperty(o,s,{value:!0}),o})[n];return u.prototype=Object.create(e.prototype),u.prototype.constructor=u,Object.defineProperty(u.prototype,Symbol.toStringTag,{get:function(){return n}}),u["is".concat(n)]=function(e){return!(!e||!e[s])},u}},function(e,t,n){"use strict";e.exports="// An IPFS MerkleDAG Link\nmessage PBLink {\n\n  // multihash of the target object\n  optional bytes Hash = 1;\n\n  // utf string name. should be unique per object\n  optional string Name = 2;\n\n  // cumulative size of target object\n  optional uint64 Tsize = 3;\n}\n\n// An IPFS MerkleDAG Node\nmessage PBNode {\n\n  // refs to other objects\n  repeated PBLink Links = 2;\n\n  // opaque user data\n  optional bytes Data = 1;\n}"},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n,i){i(null,new r(e,t,n))}},function(e,t,n){"use strict";var r=n(9);e.exports.createDagLinkFromB58EncodedHash=function(e){return new r(e.name?e.name:e.Name,e.size?e.size:e.Size,e.hash||e.Hash||e.multihash||e.cid)}},function(e,t,n){"use strict";var r=n(176);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,n){"use strict";var r=n(6).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");var t=new Uint8Array(256);t.fill(255);for(var n=0;n<e.length;n++){var i=e.charAt(n),o=i.charCodeAt(0);if(255!==t[o])throw new TypeError(i+" is ambiguous");t[o]=n}var a=e.length,s=e.charAt(0),u=Math.log(a)/Math.log(256),f=Math.log(256)/Math.log(a);function c(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return r.alloc(0);var n=0;if(" "!==e[n]){for(var i=0,o=0;e[n]===s;)i++,n++;for(var f=(e.length-n)*u+1>>>0,c=new Uint8Array(f);e[n];){var l=t[e.charCodeAt(n)];if(255===l)return;for(var h=0,b=f-1;(0!==l||h<o)&&-1!==b;b--,h++)l+=a*c[b]>>>0,c[b]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=h,n++}if(" "!==e[n]){for(var d=f-o;d!==f&&0===c[d];)d++;var p=r.allocUnsafe(i+(f-d));p.fill(0,0,i);for(var k=i;d!==f;)p[k++]=c[d++];return p}}}return{encode:function(t){if(!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,i=0,o=0,u=t.length;o!==u&&0===t[o];)o++,n++;for(var c=(u-o)*f+1>>>0,l=new Uint8Array(c);o!==u;){for(var h=t[o],b=0,d=c-1;(0!==h||b<i)&&-1!==d;d--,b++)h+=256*l[d]>>>0,l[d]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");i=b,o++}for(var p=c-i;p!==c&&0===l[p];)p++;for(var k=s.repeat(n);p<c;++p)k+=e.charAt(l[p]);return k},decodeUnsafe:c,decode:function(e){var t=c(e);if(t)return t;throw new Error("Non-base"+a+" character")}}}},function(e,t,n){"use strict";t.names=Object.freeze({id:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),t.codes=Object.freeze({17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46000:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),t.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46000:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},function(e,t,n){"use strict";(function(t){var r=n(179),i=n(181),o=n(78),a=n(183),s=o.toCallback,u=o.toBuf,f=o.fromString,c=o.fromNumberTo32BitBuf;e.exports={sha1:a.sha1,sha2256:a.sha2256,sha2512:a.sha2512,sha3512:s(u(r.sha3_512)),sha3384:s(u(r.sha3_384)),sha3256:s(u(r.sha3_256)),sha3224:s(u(r.sha3_224)),shake128:s(u(r.shake_128,128)),shake256:s(u(r.shake_256,256)),keccak224:s(u(r.keccak_224)),keccak256:s(u(r.keccak_256)),keccak384:s(u(r.keccak_384)),keccak512:s(u(r.keccak_512)),murmur3128:s(u(f(i.x64.hash128))),murmur332:s(c(f(i.x86.hash32))),addBlake:n(186),dblSha2256:function(e,n){a.sha2256(e,function(e,r){e&&n(e),a.sha2256(t.from(r),n)})}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(e,r,i){var o;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var s="input is invalid type",u="object"===("undefined"==typeof window?"undefined":a(window)),f=u?window:{};f.JS_SHA3_NO_WINDOW&&(u=!1);var c=!u&&"object"===("undefined"==typeof self?"undefined":a(self));!f.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":a(e))&&e.versions&&e.versions.node?f=r:c&&(f=self);var l=!f.JS_SHA3_NO_COMMON_JS&&"object"===a(i)&&i.exports,h=n(180),b=!f.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[4,1024,262144,67108864],k=[0,8,16,24],m=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],v=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],x={128:168,256:136};!f.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!b||!f.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===a(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var S=function(e,t,n){return function(r){return new R(e,t,e).update(r)[n]()}},w=function(e,t,n){return function(r,i){return new R(e,t,i).update(r)[n]()}},_=function(e,t,n){return function(t,r,i,o){return O["cshake"+e].update(t,r,i,o)[n]()}},E=function(e,t,n){return function(t,r,i,o){return O["kmac"+e].update(t,r,i,o)[n]()}},A=function(e,t,n,r){for(var i=0;i<g.length;++i){var o=g[i];e[o]=t(n,r,o)}return e},B=function(e,t){var n=S(e,t,"hex");return n.create=function(){return new R(e,t,e)},n.update=function(e){return n.create().update(e)},A(n,S,e,t)},j=[{name:"keccak",padding:[1,256,65536,16777216],bits:y,createMethod:B},{name:"sha3",padding:[6,1536,393216,100663296],bits:y,createMethod:B},{name:"shake",padding:[31,7936,2031616,520093696],bits:v,createMethod:function(e,t){var n=w(e,t,"hex");return n.create=function(n){return new R(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},A(n,w,e,t)}},{name:"cshake",padding:p,bits:v,createMethod:function(e,t){var n=x[e],r=_(e,0,"hex");return r.create=function(r,i,o){return i||o?new R(e,t,r).bytepad([i,o],n):O["shake"+e].create(r)},r.update=function(e,t,n,i){return r.create(t,n,i).update(e)},A(r,_,e,t)}},{name:"kmac",padding:p,bits:v,createMethod:function(e,t){var n=x[e],r=E(e,0,"hex");return r.create=function(r,i,o){return new I(e,t,i).bytepad(["KMAC",o],n).bytepad([r],n)},r.update=function(e,t,n,i){return r.create(e,n,i).update(t)},A(r,E,e,t)}}],O={},C=[],T=0;T<j.length;++T)for(var P=j[T],M=P.bits,L=0;L<M.length;++L){var z=P.name+"_"+M[L];if(C.push(z),O[z]=P.createMethod(M[L],P.padding),"sha3"!==P.name){var D=P.name+M[L];C.push(D),O[D]=O[z]}}function R(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function I(e,t,n){R.call(this,e,t,n)}R.prototype.update=function(e){if(!this.finalized){var t,n=a(e);if("string"!==n){if("object"!==n)throw s;if(null===e)throw s;if(b&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||b&&ArrayBuffer.isView(e)))throw s;t=!0}for(var r,i,o=this.blocks,u=this.byteCount,f=e.length,c=this.blockCount,l=0,h=this.s;l<f;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<c+1;++r)o[r]=0;if(t)for(r=this.start;l<f&&r<u;++l)o[r>>2]|=e[l]<<k[3&r++];else for(r=this.start;l<f&&r<u;++l)(i=e.charCodeAt(l))<128?o[r>>2]|=i<<k[3&r++]:i<2048?(o[r>>2]|=(192|i>>6)<<k[3&r++],o[r>>2]|=(128|63&i)<<k[3&r++]):i<55296||i>=57344?(o[r>>2]|=(224|i>>12)<<k[3&r++],o[r>>2]|=(128|i>>6&63)<<k[3&r++],o[r>>2]|=(128|63&i)<<k[3&r++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++l)),o[r>>2]|=(240|i>>18)<<k[3&r++],o[r>>2]|=(128|i>>12&63)<<k[3&r++],o[r>>2]|=(128|i>>6&63)<<k[3&r++],o[r>>2]|=(128|63&i)<<k[3&r++]);if(this.lastByteIndex=r,r>=u){for(this.start=r-u,this.block=o[c],r=0;r<c;++r)h[r]^=o[r];U(h),this.reset=!0}else this.start=r}return this}},R.prototype.encode=function(e,t){var n=255&e,r=1,i=[n];for(n=255&(e>>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},R.prototype.encodeString=function(e){var t,n=a(e);if("string"!==n){if("object"!==n)throw s;if(null===e)throw s;if(b&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||b&&ArrayBuffer.isView(e)))throw s;t=!0}var r=0,i=e.length;if(t)r=i;else for(var o=0;o<e.length;++o){var u=e.charCodeAt(o);u<128?r+=1:u<2048?r+=2:u<55296||u>=57344?r+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},R.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var i=t-n%t,o=[];return o.length=i,this.update(o),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];U(r)}},R.prototype.toString=R.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<r;){for(o=0;o<t&&a<r;++o,++a)e=n[o],s+=d[e>>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t==0&&(U(n),o=0)}return i&&(e=n[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},R.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)u[a]=n[o];a%t==0&&U(n)}return i&&(u[o]=n[o],e=e.slice(0,s)),e},R.prototype.buffer=R.prototype.arrayBuffer,R.prototype.digest=R.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%n==0&&U(r)}return o&&(e=s<<2,t=r[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},I.prototype=new R,I.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var U=function(e){var t,n,r,i,o,a,s,u,f,c,l,h,b,d,p,k,y,v,g,x,S,w,_,E,A,B,j,O,C,T,P,M,L,z,D,R,I,U,N,q,F,H,Y,G,W,V,J,Z,K,X,$,Q,ee,te,ne,re,ie,oe,ae,se,ue,fe,ce;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(b=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(u<<1|f>>>31),n=o^(f<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(c<<1|l>>>31),n=s^(l<<1|c>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(h<<1|b>>>31),n=f^(b<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=c^(i<<1|o>>>31),n=l^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,d=e[0],p=e[1],V=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,C=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,Y=e[41]<<18|e[40]>>>14,z=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,k=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,K=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,fe=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,R=e[14]<<6|e[15]>>>26,I=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,g=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,M=e[45]<<29|e[44]>>>3,L=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,N=e[27]<<25|e[26]>>>7,x=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,B=e[18]<<20|e[19]>>>12,j=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,F=e[39]<<8|e[38]>>>24,w=e[48]<<14|e[49]>>>18,_=e[49]<<14|e[48]>>>18,e[0]=d^~k&v,e[1]=p^~y&g,e[10]=E^~B&O,e[11]=A^~j&C,e[20]=z^~R&U,e[21]=D^~I&N,e[30]=G^~V&Z,e[31]=W^~J&K,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=k^~v&x,e[3]=y^~g&S,e[12]=B^~O&T,e[13]=j^~C&P,e[22]=R^~U&q,e[23]=I^~N&F,e[32]=V^~Z&X,e[33]=J^~K&$,e[42]=re^~oe&se,e[43]=ie^~ae&ue,e[4]=v^~x&w,e[5]=g^~S&_,e[14]=O^~T&M,e[15]=C^~P&L,e[24]=U^~q&H,e[25]=N^~F&Y,e[34]=Z^~X&Q,e[35]=K^~$&ee,e[44]=oe^~se&fe,e[45]=ae^~ue&ce,e[6]=x^~w&d,e[7]=S^~_&p,e[16]=T^~M&E,e[17]=P^~L&A,e[26]=q^~H&z,e[27]=F^~Y&D,e[36]=X^~Q&G,e[37]=$^~ee&W,e[46]=se^~fe&te,e[47]=ue^~ce&ne,e[8]=w^~d&k,e[9]=_^~p&y,e[18]=M^~E&B,e[19]=L^~A&j,e[28]=H^~z&R,e[29]=Y^~D&I,e[38]=Q^~G&V,e[39]=ee^~W&J,e[48]=fe^~te&re,e[49]=ce^~ne&ie,e[0]^=m[r],e[1]^=m[r+1]};if(l)i.exports=O;else{for(T=0;T<C.length;++T)f[C[T]]=O[C[T]];h&&(void 0===(o=function(){return O}.call(t,n,t,i))||(i.exports=o))}}()}).call(this,n(1),n(3),n(28)(e))},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";e.exports=n(182)},function(e,t,n){"use strict";!function(n,r){var i={version:"3.0.1",x86:{},x64:{}};function o(e,t){return(65535&e)*t+(((e>>>16)*t&65535)<<16)}function a(e,t){return e<<t|e>>>32-t}function s(e){return e=o(e^=e>>>16,2246822507),e=o(e^=e>>>13,3266489909),e^=e>>>16}function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function f(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function c(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function l(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function h(e,t){return[e[0]^t[0],e[1]^t[1]]}function b(e){return e=h(e,[0,e[0]>>>1]),e=h(e=f(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=h(e=f(e,[3301882366,444984403]),[0,e[0]>>>1])}i.x86.hash32=function(e,t){t=t||0;for(var n=(e=e||"").length%4,r=e.length-n,i=t,u=0,f=3432918353,c=461845907,l=0;l<r;l+=4)u=o(u=255&e.charCodeAt(l)|(255&e.charCodeAt(l+1))<<8|(255&e.charCodeAt(l+2))<<16|(255&e.charCodeAt(l+3))<<24,f),u=o(u=a(u,15),c),i=o(i=a(i^=u,13),5)+3864292196;switch(u=0,n){case 3:u^=(255&e.charCodeAt(l+2))<<16;case 2:u^=(255&e.charCodeAt(l+1))<<8;case 1:u=o(u^=255&e.charCodeAt(l),f),i^=u=o(u=a(u,15),c)}return(i=s(i^=e.length))>>>0},i.x86.hash128=function(e,t){t=t||0;for(var n=(e=e||"").length%16,r=e.length-n,i=t,u=t,f=t,c=t,l=0,h=0,b=0,d=0,p=597399067,k=2869860233,m=951274213,y=2716044179,v=0;v<r;v+=16)l=255&e.charCodeAt(v)|(255&e.charCodeAt(v+1))<<8|(255&e.charCodeAt(v+2))<<16|(255&e.charCodeAt(v+3))<<24,h=255&e.charCodeAt(v+4)|(255&e.charCodeAt(v+5))<<8|(255&e.charCodeAt(v+6))<<16|(255&e.charCodeAt(v+7))<<24,b=255&e.charCodeAt(v+8)|(255&e.charCodeAt(v+9))<<8|(255&e.charCodeAt(v+10))<<16|(255&e.charCodeAt(v+11))<<24,d=255&e.charCodeAt(v+12)|(255&e.charCodeAt(v+13))<<8|(255&e.charCodeAt(v+14))<<16|(255&e.charCodeAt(v+15))<<24,l=a(l=o(l,p),15),i=a(i^=l=o(l,k),19),i=o(i+=u,5)+1444728091,h=a(h=o(h,k),16),u=a(u^=h=o(h,m),17),u=o(u+=f,5)+197830471,b=a(b=o(b,m),17),f=a(f^=b=o(b,y),15),f=o(f+=c,5)+2530024501,d=a(d=o(d,y),18),c=a(c^=d=o(d,p),13),c=o(c+=i,5)+850148119;switch(l=0,h=0,b=0,d=0,n){case 15:d^=e.charCodeAt(v+14)<<16;case 14:d^=e.charCodeAt(v+13)<<8;case 13:d=o(d^=e.charCodeAt(v+12),y),c^=d=o(d=a(d,18),p);case 12:b^=e.charCodeAt(v+11)<<24;case 11:b^=e.charCodeAt(v+10)<<16;case 10:b^=e.charCodeAt(v+9)<<8;case 9:b=o(b^=e.charCodeAt(v+8),m),f^=b=o(b=a(b,17),y);case 8:h^=e.charCodeAt(v+7)<<24;case 7:h^=e.charCodeAt(v+6)<<16;case 6:h^=e.charCodeAt(v+5)<<8;case 5:h=o(h^=e.charCodeAt(v+4),k),u^=h=o(h=a(h,16),m);case 4:l^=e.charCodeAt(v+3)<<24;case 3:l^=e.charCodeAt(v+2)<<16;case 2:l^=e.charCodeAt(v+1)<<8;case 1:l=o(l^=e.charCodeAt(v),p),i^=l=o(l=a(l,15),k)}return i^=e.length,i+=u^=e.length,i+=f^=e.length,u+=i+=c^=e.length,f+=i,c+=i,i=s(i),i+=u=s(u),i+=f=s(f),u+=i+=c=s(c),f+=i,c+=i,("00000000"+(i>>>0).toString(16)).slice(-8)+("00000000"+(u>>>0).toString(16)).slice(-8)+("00000000"+(f>>>0).toString(16)).slice(-8)+("00000000"+(c>>>0).toString(16)).slice(-8)},i.x64.hash128=function(e,t){t=t||0;for(var n=(e=e||"").length%16,r=e.length-n,i=[0,t],o=[0,t],a=[0,0],s=[0,0],d=[2277735313,289559509],p=[1291169091,658871167],k=0;k<r;k+=16)a=[255&e.charCodeAt(k+4)|(255&e.charCodeAt(k+5))<<8|(255&e.charCodeAt(k+6))<<16|(255&e.charCodeAt(k+7))<<24,255&e.charCodeAt(k)|(255&e.charCodeAt(k+1))<<8|(255&e.charCodeAt(k+2))<<16|(255&e.charCodeAt(k+3))<<24],s=[255&e.charCodeAt(k+12)|(255&e.charCodeAt(k+13))<<8|(255&e.charCodeAt(k+14))<<16|(255&e.charCodeAt(k+15))<<24,255&e.charCodeAt(k+8)|(255&e.charCodeAt(k+9))<<8|(255&e.charCodeAt(k+10))<<16|(255&e.charCodeAt(k+11))<<24],a=c(a=f(a,d),31),i=u(i=c(i=h(i,a=f(a,p)),27),o),i=u(f(i,[0,5]),[0,1390208809]),s=c(s=f(s,p),33),o=u(o=c(o=h(o,s=f(s,d)),31),i),o=u(f(o,[0,5]),[0,944331445]);switch(a=[0,0],s=[0,0],n){case 15:s=h(s,l([0,e.charCodeAt(k+14)],48));case 14:s=h(s,l([0,e.charCodeAt(k+13)],40));case 13:s=h(s,l([0,e.charCodeAt(k+12)],32));case 12:s=h(s,l([0,e.charCodeAt(k+11)],24));case 11:s=h(s,l([0,e.charCodeAt(k+10)],16));case 10:s=h(s,l([0,e.charCodeAt(k+9)],8));case 9:s=f(s=h(s,[0,e.charCodeAt(k+8)]),p),o=h(o,s=f(s=c(s,33),d));case 8:a=h(a,l([0,e.charCodeAt(k+7)],56));case 7:a=h(a,l([0,e.charCodeAt(k+6)],48));case 6:a=h(a,l([0,e.charCodeAt(k+5)],40));case 5:a=h(a,l([0,e.charCodeAt(k+4)],32));case 4:a=h(a,l([0,e.charCodeAt(k+3)],24));case 3:a=h(a,l([0,e.charCodeAt(k+2)],16));case 2:a=h(a,l([0,e.charCodeAt(k+1)],8));case 1:a=f(a=h(a,[0,e.charCodeAt(k)]),d),i=h(i,a=f(a=c(a,31),p))}return i=u(i=h(i,[0,e.length]),o=h(o,[0,e.length])),o=u(o,i),i=u(i=b(i),o=b(o)),o=u(o,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)},e.exports&&(t=e.exports=i),t.murmurHash3=i}()},function(e,t,n){"use strict";(function(t){var r=n(184),i=function(){if(self.crypto)return self.crypto.subtle||self.crypto.webkitSubtle;if(self.msCrypto)return self.msCrypto.subtle}();function o(e){if(!i)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");return function(n,o){var a=i.digest({name:e},n);if("function"!=typeof a.then)return a.onerror=function(){o(new Error("hashing data using ".concat(e)))},void(a.oncomplete=function(e){o(null,e.target.result)});r(a.then(function(e){return t.from(new Uint8Array(e))}),o)}}e.exports={sha1:function(e,t){o("SHA-1")(e,t)},sha2256:function(e,t){o("SHA-256")(e,t)},sha2512:function(e,t){o("SHA-512")(e,t)}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,a=n(185),s=n(79);function u(e,t){return"function"!=typeof t?e:e.then(function(e){o(function(){t(null,e)})},function(e){o(function(){t(e)})})}function f(e){return u(this,e)}function c(e){if(e&&s(e)){e.nodeify=f;var t=e.then;return e.then=function(){return c(t.apply(this,arguments))},e}"function"==typeof e?e.prototype.nodeify=f:a.prototype.nodeify=f}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),c(this)}o="function"==typeof t?t:"object"===(void 0===r?"undefined":i(r))&&r&&r.nextTick?r.nextTick:function(e){setTimeout(e,0)},e.exports=u,u.extend=c,u.Promise=l,l.prototype=Object.create(a.prototype),l.prototype.constructor=l}).call(this,n(25).setImmediate,n(1))},function(e,t,n){"use strict";(function(t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o=n(79);i="function"==typeof setImediate?setImediate:"object"===(void 0===t?"undefined":r(t))&&t&&t.nextTick?t.nextTick:function(e){setTimeout(e,0)};var a=[];function s(e){if(!(this instanceof s))return"function"==typeof e?new s(e):(n=new s(function(e){t=e}),{resolver:t,promise:n});var t,n,r,u=!1,f=!1,c=[],l=!1;function h(e){c.length?(l=!0,c.shift()(e||!1)):l=!1}this.then=function(e,t){return new s(function(n){c.push(function(o){var a=f?e:t;if("function"==typeof a){var s=function(){var e;try{e=a(r)}catch(t){return n.reject(t),h()}n.fulfill(e),h(!0)};o?s():i(s)}else f?(n.fulfill(r),h(o)):(n.reject(r),h(o))}),u&&!l&&h()})},function(){function t(e){u||(u=!0,f=!1,r=e,h())}for(var n={fulfill:function e(n){u||(o(n)?n.then(e,t):(u=f=!0,r=n,h()))},reject:t},i=0;i<a.length;i++)a[i](this,n);if("function"==typeof e)try{e(n)}catch(s){n.reject(s)}}()}e.exports=s,s.use=function(e){a.push(e)}}).call(this,n(1))},function(e,t,n){"use strict";(function(t){var r=n(187),i=n(78).toCallback,o={init:r.blake2bInit,update:r.blake2bUpdate,digest:r.blake2bFinal},a={init:r.blake2sInit,update:r.blake2sUpdate,digest:r.blake2sFinal},s=function(e,n){return i(function(r){var i=n.init(e,null);return n.update(i,r),t.from(n.digest(i))})};e.exports=function(e){for(var t=0;t<64;t++)e[45569+t]=s(t+1,o);for(var n=0;n<32;n++)e[45633+n]=s(n+1,a)}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(188),i=n(189);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},function(e,t,n){"use strict";var r=n(80);function i(e,t,n){var r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function o(e,t,n,r){var i=e[t]+n;n<0&&(i+=4294967296);var o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){var u=l[a],f=l[a+1],h=l[s],b=l[s+1];i(c,e,t),o(c,e,u,f);var d=c[r]^c[e],p=c[r+1]^c[e+1];c[r]=p,c[r+1]=d,i(c,n,r),d=c[t]^c[n],p=c[t+1]^c[n+1],c[t]=d>>>24^p<<8,c[t+1]=p>>>24^d<<8,i(c,e,t),o(c,e,h,b),d=c[r]^c[e],p=c[r+1]^c[e+1],c[r]=d>>>16^p<<16,c[r+1]=p>>>16^d<<16,i(c,n,r),d=c[t]^c[n],p=c[t+1]^c[n+1],c[t]=p>>>31^d<<1,c[t+1]=d>>>31^p<<1}var u=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),f=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),l=new Uint32Array(32);function h(e,t){var n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=u[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)l[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,f[16*n+0],f[16*n+1]),s(2,10,18,26,f[16*n+2],f[16*n+3]),s(4,12,20,28,f[16*n+4],f[16*n+5]),s(6,14,22,30,f[16*n+6],f[16*n+7]),s(0,10,20,30,f[16*n+8],f[16*n+9]),s(2,12,22,24,f[16*n+10],f[16*n+11]),s(4,14,16,26,f[16*n+12],f[16*n+13]),s(6,8,18,28,f[16*n+14],f[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}function b(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");for(var n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e},r=0;r<16;r++)n.h[r]=u[r];var i=t?t.length:0;return n.h[0]^=16842752^i<<8^e,t&&(d(n,t),n.c=128),n}function d(e,t){for(var n=0;n<t.length;n++)128===e.c&&(e.t+=e.c,h(e,!1),e.c=0),e.b[e.c++]=t[n]}function p(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;h(e,!0);for(var t=new Uint8Array(e.outlen),n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n);return t}function k(e,t,n){n=n||64,e=r.normalizeInput(e);var i=b(n,t);return d(i,e),p(i)}e.exports={blake2b:k,blake2bHex:function(e,t,n){var i=k(e,t,n);return r.toHex(i)},blake2bInit:b,blake2bUpdate:d,blake2bFinal:p}},function(e,t,n){"use strict";var r=n(80);function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function o(e,t,n,r,i,o){f[e]=f[e]+f[t]+i,f[r]=a(f[r]^f[e],16),f[n]=f[n]+f[r],f[t]=a(f[t]^f[n],12),f[e]=f[e]+f[t]+o,f[r]=a(f[r]^f[e],8),f[n]=f[n]+f[r],f[t]=a(f[t]^f[n],7)}function a(e,t){return e>>>t^e<<32-t}var s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),f=new Uint32Array(16),c=new Uint32Array(16);function l(e,t){var n=0;for(n=0;n<8;n++)f[n]=e.h[n],f[n+8]=s[n];for(f[12]^=e.t,f[13]^=e.t/4294967296,t&&(f[14]=~f[14]),n=0;n<16;n++)c[n]=i(e.b,4*n);for(n=0;n<10;n++)o(0,4,8,12,c[u[16*n+0]],c[u[16*n+1]]),o(1,5,9,13,c[u[16*n+2]],c[u[16*n+3]]),o(2,6,10,14,c[u[16*n+4]],c[u[16*n+5]]),o(3,7,11,15,c[u[16*n+6]],c[u[16*n+7]]),o(0,5,10,15,c[u[16*n+8]],c[u[16*n+9]]),o(1,6,11,12,c[u[16*n+10]],c[u[16*n+11]]),o(2,7,8,13,c[u[16*n+12]],c[u[16*n+13]]),o(3,4,9,14,c[u[16*n+14]],c[u[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=f[n]^f[n+8]}function h(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");var n=t?t.length:0;if(t&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");var r={h:new Uint32Array(s),b:new Uint32Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(b(r,t),r.c=64),r}function b(e,t){for(var n=0;n<t.length;n++)64===e.c&&(e.t+=e.c,l(e,!1),e.c=0),e.b[e.c++]=t[n]}function d(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;l(e,!0);for(var t=new Uint8Array(e.outlen),n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);var i=h(n,t);return b(i,e),d(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){var i=p(e,t,n);return r.toHex(i)},blake2sInit:h,blake2sUpdate:b,blake2sFinal:d}},function(e,t,n){"use strict";var r=n(34),i=r.cloneLinks,o=r.cloneData,a=n(31);e.exports=function(e,t){var n=o(e),r=i(e);a(n,r,t)}},function(e,t,n){"use strict";var r=n(34),i=r.cloneLinks,o=r.cloneData,a=r.toDAGLink,s=n(9),u=n(30),f=n(31);e.exports=function(e,t,n){var r=i(e),c=o(e);!function(e,t){if(s.isDAGLink(e))return t(null,e);if(u.isDAGNode(e))return a(e,{},t);try{t(null,new s(e.name,e.size,e.multihash||e.hash||e.cid))}catch(n){return t(n)}}(t,function(e,t){if(e)return n(e);r.push(t),f(c,r,n)})}},function(e,t,n){"use strict";(function(t){var r=n(34),i=r.cloneLinks,o=r.cloneData,a=n(31),s=n(33);e.exports=function(e,n,r){var u=o(e),f=i(e);if("string"==typeof n)f=f.filter(function(e){return e.name!==n});else{if(!t.isBuffer(n)&&!s.isCID(n))return r(new Error("second arg needs to be a name or CID"),null);f=f.filter(function(e){return!e.cid.equals(n)})}a(u,f,r)}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(4),i=n(20),o=n(13),a=n(29),s=i.DAGLink,u=i.DAGNode;e.exports=function(e,t,n){return function(i,f){if(1===i.length&&i[0].single&&n.reduceSingleLeafToSelf){var c=i[0];return f(null,{size:c.size,leafSize:c.leafSize,multihash:c.multihash,path:e.path,name:c.name})}var l=new o("file"),h=i.map(function(e){return l.addBlockSize(e.leafSize),new s(e.name,e.size,e.multihash)});r([function(e){return u.create(l.marshal(),h,e)},function(e,r){return a(e,t,n,r)}],function(t,n){if(t)return f(t);f(null,{size:n.node.size,leafSize:l.fileSize(),multihash:n.cid.buffer,path:e.path,name:""})})}}},function(e,t,n){"use strict";var r=n(2),i=n(35),o=n(26),a=n(11),s=n(51),u=n(52);e.exports=function(e,t){var n=s(),f=n.source,c=a();return r(f,u(1/0),i(e),o(function(e,t){e?c.end(e):1===t.length?(c.push(t[0]),c.end()):t.length>1?c.end(new Error("expected a maximum of 1 roots and got "+t.length)):c.end()})),{sink:n.sink,source:c}}},function(e,t,n){"use strict";var r=n(196),i={maxChildrenPerNode:174};e.exports=function(e,t){var n=Object.assign({},i,t);return r(e,n)}},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(35),a=n(26),s=n(11),u=n(51),f=n(52);e.exports=function(e,t){var n=u(),c=n.source,l=s();return function n(s,u){var c=s;Array.isArray(c)&&(c=i(c));r(c,f(t.maxChildrenPerNode),o(e),a(function l(n,s){n?u(n):s.length>1?function n(s,u){var c=s;Array.isArray(c)&&(c=i(c));r(c,f(t.maxChildrenPerNode),o(e),a(l));function l(e,t){e?u(e):t.length>1?n(t,u):u(null,t)}}(s,u):u(null,s)}));function l(e,t){e?u(e):t.length>1?n(t,u):u(null,t)}}(c,function(e,t){e?l.end(e):1===t.length?(l.push(t[0]),l.end()):t.length>1?l.end(new Error("expected a maximum of 1 roots and got "+t.length)):l.end()}),{sink:n.sink,source:l}}},function(e,t,n){"use strict";var r=n(198),i={maxChildrenPerNode:174,layerRepeat:4};e.exports=function(e,t){var n=Object.assign({},i,t);return r(e,n)}},function(e,t,n){"use strict";var r=n(2),i=n(35),o=n(26),a=n(11),s=n(52),u=n(51),f=n(18),c=n(23),l=n(57);e.exports=function(e,t){var n=u(),h=a(),b=l(function(){}),d=0;return r(n.source,b,function n(u,l){var h=0;var p=0;var k;var m=!1;var y=a();return{source:y,sink:c(function v(n,l){var h=!1,m=n[0];p&&!k&&(k=a(),r(k,function n(u,l){var h=0;var p=0;var k;var m=!1;var y=a();return{source:y,sink:c(v,null,1,function(e){if(e)return void y.end(e);k?m||(m=!0,k.end()):y.end()})};function v(t,c){var l=!1,h=t[0];p&&!k&&(k=a(),r(k,n(u+1,p-1),f(function(e){this.queue(e)},function(e){e?this.emit("error",e):(l||(l=!0,d++,b.pause()),this.queue(null))}),s(1/0),i(e),o(function(e,t){d--,e?y.end(e):(t.forEach(function(e){y.push(e)}),g())}))),k?k.push(h):(y.push(h),g()),c()}function g(){k=null,h++,(0===p&&h===t.maxChildrenPerNode||p>0&&h===t.layerRepeat)&&(h=0,p++),(!m&&l>=0&&p>l||m&&!d)&&(m=!0,y.end()),d||b.resume()}}(u+1,p-1),f(function(e){this.queue(e)},function(e){e?this.emit("error",e):(h||(h=!0,d++,b.pause()),this.queue(null))}),s(1/0),i(e),o(function(e,t){d--,e?y.end(e):(t.forEach(function(e){y.push(e)}),g())})));k?k.push(m):(y.push(m),g());l()},null,1,function(e){if(e)return void y.end(e);k?m||(m=!0,k.end()):y.end()})};function v(t,c){var l=!1,h=t[0];p&&!k&&(k=a(),r(k,n(u+1,p-1),f(function(e){this.queue(e)},function(e){e?this.emit("error",e):(l||(l=!0,d++,b.pause()),this.queue(null))}),s(1/0),i(e),o(function(e,t){d--,e?y.end(e):(t.forEach(function(e){y.push(e)}),g())}))),k?k.push(h):(y.push(h),g()),c()}function g(){k=null,h++,(0===p&&h===t.maxChildrenPerNode||p>0&&h===t.layerRepeat)&&(h=0,p++),(!m&&l>=0&&p>l||m&&!d)&&(m=!0,y.end()),d||b.resume()}}(0,-1),s(1/0),i(e),o(function(e,t){e?h.end(e):1===t.length?(h.push(t[0]),h.end()):t.length>1?h.end(new Error("expected a maximum of 1 roots and got "+t.length)):h.end()})),{sink:n.sink,source:h}}},function(e,t,n){"use strict";(function(t){var r=n(81),i=n(202),o=n(4),a=n(203),s=n(23),u=n(11),f=n(210),c=n(211),l=n(53),h=n(222);e.exports=function(e,n){var d=Object.assign({},b,n),p=a(function(e,t){var n=e.args.concat(function(){e.cb.apply(null,arguments),t()});e.fn.apply(null,n)},1),k=function(){var e=s(function(e,n){r(e,function(e,n){p.push({fn:y,args:[e],cb:function(r){r?n(r):(t.push(e),n())}})},n)},null,1,function(e){v(function(n){t.end(n||e)})}),t=u();return{sink:e,source:t}}(),m=f({path:"",root:!0,dir:!0,dirty:!1,flat:!0},d);return{flush:v,stream:function(){return k}};function y(e,t){var n=h(e.path||""),r=m,a=n.length-1,s="";i(n,function(t,n,i){s&&(s+="/"),s+=t;var u=n===a;r.dirty=!0,r.multihash=null,r.size=null,u?o([function(n){return r.put(t,e,n)},function(e){return c(null,r,d.shardSplitThreshold,d,e)},function(e,t){m=e,t()}],i):r.get(t,function(e,n){if(e)i(e);else{var o=n;o&&o instanceof l||(o=f({dir:!0,parent:r,parentKey:t,path:s,dirty:!0,flat:!0},d));var a=r;r=o,a.put(t,o,i)}})},t)}function v(e){p.push({fn:g,args:["",m],cb:function(t,n){t?e(t):e(null,n&&n.multihash)}})}function g(n,r,i){if(r.dir){if(r.root&&r.childCount()>1&&!d.wrap)return void i(new Error("detected more than one root"));r.eachChildSeries(function(e,t,r){g(n?n+"/"+e:e,t,r)},function(t){t?i(t):function(t,n,r){if(n.root&&!d.wrap)return void n.onlyChild(function(e,t){e?r(e):r(null,t)});if(!n.dirty)return void r(null,n.multihash);n.dirty=!1,n.flush(t,e,k.source,function(e,t){e?r(e):r(null,t)})}(n,r,i)})}else t.nextTick(i)}};var b={wrap:!1,shardSplitThreshold:1e3,onlyHash:!1}}).call(this,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){(0,r.default)(t)(e,(0,i.default)((0,o.default)(n)),a)};var r=a(n(72)),i=a(n(201)),o=a(n(8));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,r){return e(t,r)}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(71)),i=o(n(45));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(r.default,1),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);return(0,r.default)(function(e,t){n(e[0],t)},t,1)};var r=o(n(204)),i=o(n(8));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var c=(0,f.default)(e),l=0,h=[],b=!1;function d(e,t,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(m.started=!0,(0,i.default)(e)||(e=[e]),0===e.length&&m.idle())return(0,s.default)(function(){m.drain()});for(var r=0,a=e.length;r<a;r++){var u={data:e[r],callback:n||o.default};t?m._tasks.unshift(u):m._tasks.push(u)}b||(b=!0,(0,s.default)(function(){b=!1,m.process()}))}function p(e){return function(t){l-=1;for(var n=0,i=e.length;n<i;n++){var o=e[n],a=(0,r.default)(h,o,0);0===a?h.shift():a>0&&h.splice(a,1),o.callback.apply(o,arguments),null!=t&&m.error(t,o.data)}l<=m.concurrency-m.buffer&&m.unsaturated(),m.idle()&&m.drain(),m.process()}}var k=!1,m={_tasks:new u.default,concurrency:t,payload:n,saturated:o.default,unsaturated:o.default,buffer:t/4,empty:o.default,drain:o.default,error:o.default,started:!1,paused:!1,push:function(e,t){d(e,!1,t)},kill:function(){m.drain=o.default,m._tasks.empty()},unshift:function(e,t){d(e,!0,t)},remove:function(e){m._tasks.remove(e)},process:function(){if(!k){for(k=!0;!m.paused&&l<m.concurrency&&m._tasks.length;){var e=[],t=[],n=m._tasks.length;m.payload&&(n=Math.min(n,m.payload));for(var r=0;r<n;r++){var i=m._tasks.shift();e.push(i),h.push(i),t.push(i.data)}l+=1,0===m._tasks.length&&m.empty(),l===m.concurrency&&m.saturated();var o=(0,a.default)(p(e));c(t,o)}k=!1}},length:function(){return m._tasks.length},running:function(){return l},workersList:function(){return h},idle:function(){return m._tasks.length+l===0},pause:function(){m.paused=!0},resume:function(){!1!==m.paused&&(m.paused=!1,(0,s.default)(m.process))}};return m};var r=c(n(205)),i=c(n(44)),o=c(n(14)),a=c(n(19)),s=c(n(39)),u=c(n(209)),f=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";var r=n(206),i=n(207),o=n(208);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){"use strict";e.exports=function(e){return e!=e}},function(e,t,n){"use strict";e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t,n){"use strict";function r(){this.head=this.tail=null,this.length=0}function i(e,t){e.length=1,e.head=e.tail=t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype.removeLink=function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e},r.prototype.empty=function(){for(;this.head;)this.shift();return this},r.prototype.insertAfter=function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1},r.prototype.insertBefore=function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1},r.prototype.unshift=function(e){this.head?this.insertBefore(this.head,e):i(this,e)},r.prototype.push=function(e){this.tail?this.insertAfter(this.tail,e):i(this,e)},r.prototype.shift=function(){return this.head&&this.removeLink(this.head)},r.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},r.prototype.toArray=function(){for(var e=Array(this.length),t=this.head,n=0;n<this.length;n++)e[n]=t.data,t=t.next;return e},r.prototype.remove=function(e){for(var t=this.head;t;){var n=t.next;e(t)&&this.removeLink(t),t=n}return this},e.exports=t.default},function(e,t,n){"use strict";(function(t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=n(81),f=n(4),c=n(20),l=n(13),h=c.DAGLink,b=c.DAGNode,d=n(53),p=n(29),k=function(e){function n(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=o(this,a(n).call(this,e,t)))._children={},r}var r,c,k;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(n,d),r=n,(c=[{key:"put",value:function(e,n,r){this.multihash=void 0,this.size=void 0,this._children[e]=n,t.nextTick(r)}},{key:"get",value:function(e,n){var r=this;t.nextTick(function(){return n(null,r._children[e])})}},{key:"childCount",value:function(){return Object.keys(this._children).length}},{key:"directChildrenCount",value:function(){return this.childCount()}},{key:"onlyChild",value:function(e){var n=this;t.nextTick(function(){return e(null,n._children[Object.keys(n._children)[0]])})}},{key:"eachChildSeries",value:function(e,t){var n=this;u(Object.keys(this._children),function(t,r){e(t,n._children[t],r)},t)}},{key:"flush",value:function(e,t,n,r){var i=this,o=Object.keys(this._children).map(function(e){var t=i._children[e];return new h(e,t.size,t.multihash)}),a=new l("directory");f([function(e){return b.create(a.marshal(),o,e)},function(e,n){return p(e,t,i._options,n)},function(t,r){var o=t.cid,a=t.node;i.multihash=o.buffer,i.size=a.size;var s={path:e,multihash:o.buffer,size:a.size};n.push(s),r(null,a)}],r)}}])&&i(r.prototype,c),k&&i(r,k),n}();e.exports=function(e,t){return new k(e,t)}}).call(this,n(1))},function(e,t,n){"use strict";var r=n(4),i=n(82);e.exports=function e(t,n,o,a,s){!function(e,t,n,r){e.flat&&e.directChildrenCount()>=t?function(e,t,n){var r=i({root:e.root,dir:!0,parent:e.parent,parentKey:e.parentKey,path:e.path,dirty:e.dirty,flat:!1},t);e.eachChildSeries(function(e,t,n){r.put(e,t,n)},function(e){e?n(e):n(e,r)})}(e,n,r):r(null,e)}(n,o,a,function(i,u){if(i)s(i);else{var f=u.parent;f?r([function(e){u!==n?(t&&(t.parent=u),f.put(u.parentKey,u,e)):e()},function(t){f?e(u,f,o,a,t):t(null,u)}],s):s(null,u)}})}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=function(){return this||"object"===("undefined"==typeof self?"undefined":r(self))&&self}()||Function("return this")(),o=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,a=o&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,e.exports=n(213),o)i.regeneratorRuntime=a;else try{delete i.regeneratorRuntime}catch(s){i.regeneratorRuntime=void 0}},function(e,t,n){"use strict";(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(n){var r,i=Object.prototype,o=i.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag",c="object"===t(e),l=n.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=n.regeneratorRuntime=c?e.exports:{}).wrap=x;var h="suspendedStart",b="suspendedYield",d="executing",p="completed",k={},m={};m[s]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(P([])));v&&v!==i&&o.call(v,s)&&(m=v);var g=E.prototype=w.prototype=Object.create(m);_.prototype=g.constructor=E,E.constructor=_,E[f]=_.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f in e||(e[f]="GeneratorFunction")),e.prototype=Object.create(g),e},l.awrap=function(e){return{__await:e}},A(B.prototype),B.prototype[u]=function(){return this},l.AsyncIterator=B,l.async=function(e,t,n,r){var i=new B(x(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},A(g),g[f]="Generator",g[s]=function(){return this},g.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=r),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,k):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),k},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),k}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),k}}}function x(e,t,n,r){var i=t&&t.prototype instanceof w?t:w,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r=h;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===k)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=S(e,t,n);if("normal"===u.type){if(r=n.done?p:b,u.arg===k)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function S(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function w(){}function _(){}function E(){}function A(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function B(e){var n;this._invoke=function(r,i){function a(){return new Promise(function(n,a){!function n(r,i,a,s){var u=S(e[r],e,i);if("throw"!==u.type){var f=u.arg,c=f.value;return c&&"object"===t(c)&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):Promise.resolve(c).then(function(e){f.value=e,a(f)},function(e){return n("throw",e,a,s)})}s(u.arg)}(r,i,n,a)})}return n=n?n.then(a,a):a()}}function j(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,j(e,t),"throw"===t.method))return k;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var i=S(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,k;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,k):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,k)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}return{next:M}}function M(){return{value:r,done:!0}}}(function(){return this||"object"===("undefined"==typeof self?"undefined":t(self))&&self}()||Function("return this")())}).call(this,n(28)(e))},function(e,t,n){"use strict";e.exports=function(e,t,n){if((t-=(e+="").length)<=0)return e;n||0===n||(n=" ");if(" "==(n+="")&&t<10)return r[t]+e;var i="";for(;1&t&&(i+=n),t>>=1;)n+=n;return i+e};var r=[""," ","  ","   ","    ","     ","      ","       ","        ","         "]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){n=(0,o.default)(n||r.default);var s=(0,a.default)(t);if(!e())return n(null);s(function t(r){if(r)return n(r);if(e())return s(t);var o=(0,i.default)(arguments,1);n.apply(null,[null].concat(o))})};var r=s(n(14)),i=s(n(17)),o=s(n(19)),a=s(n(8));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";var r,i=(r=n(36))&&r.__esModule?r:{default:r};function o(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(f){return void n(f)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return e.next||(e[Symbol.asyncIterator]?e=e[Symbol.asyncIterator]():e[Symbol.iterator]&&(e=e[Symbol.iterator]())),function(){var t,n=(t=i.default.mark(function t(n,r){var o;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt("return",r(n));case 2:return t.prev=2,t.next=5,e.next();case 5:o=t.sent,t.next=11;break;case 8:return t.prev=8,t.t0=t.catch(2),t.abrupt("return",r(t.t0));case 11:if(!o.done){t.next=13;break}return t.abrupt("return",r(!0));case 13:r(null,o.value);case 14:case"end":return t.stop()}},t,this,[[2,8]])}),function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)})});return function(e,t){return n.apply(this,arguments)}}()}},function(e,t,n){"use strict";var r=n(63);e.exports=function(e){return r(null,e)}},function(e,t,n){"use strict";var r=n(83);e.exports=function(e){return new r(e)},e.exports.isBucket=r.isBucket},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return e+o(t)}function o(e){var t=e;return 16843009*((t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135)>>24}function a(e,t){return e[0]-t[0]}function s(e){return e[1]}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}var t,n,u;return t=e,(n=[{key:"set",value:function(e,t){var n=this._internalPositionFor(e,!1);if(void 0===t)-1!==n&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{var r=!1;-1===n?(n=this._data.length,this._setBit(e),this._changedData=!0):r=!0,this._setInternalPos(n,e,t,r),this._changedLength=!0}}},{key:"unset",value:function(e){this.set(e,void 0)}},{key:"get",value:function(e){this._sortData();var t=this._internalPositionFor(e,!0);if(-1!==t)return this._data[t][1]}},{key:"push",value:function(e){return this.set(this.length,e),this.length}},{key:"forEach",value:function(e){for(var t=0;t<this.length;)e(this.get(t),t,this),t++}},{key:"map",value:function(e){for(var t=0,n=new Array(this.length);t<this.length;)n[t]=e(this.get(t),t,this),t++;return n}},{key:"reduce",value:function(e,t){for(var n=0,r=t;n<this.length;){r=e(r,this.get(n),n),n++}return r}},{key:"find",value:function(e){for(var t,n,r=0;r<this.length&&!t;)t=e(n=this.get(r)),r++;return t?n:void 0}},{key:"_internalPositionFor",value:function(e,t){var n=this._bytePosFor(e,t);if(n>=this._bitArrays.length)return-1;var r=this._bitArrays[n],a=e-7*n;return(r&1<<a)>0?this._bitArrays.slice(0,n).reduce(i,0)+o(r&~(4294967295<<a+1))-1:-1}},{key:"_bytePosFor",value:function(e,t){for(var n=Math.floor(e/7),r=n+1;!t&&this._bitArrays.length<r;)this._bitArrays.push(0);return n}},{key:"_setBit",value:function(e){var t=this._bytePosFor(e,!1);this._bitArrays[t]|=1<<e-7*t}},{key:"_unsetBit",value:function(e){var t=this._bytePosFor(e,!1);this._bitArrays[t]&=~(1<<e-7*t)}},{key:"_setInternalPos",value:function(e,t,n,r){var i=this._data,o=[t,n];if(r)this._sortData(),i[e]=o;else{if(i.length)if(i[i.length-1][0]>=t)i.push(o);else if(i[0][0]<=t)i.unshift(o);else{var a=Math.round(i.length/2);this._data=i.slice(0,a).concat(o).concat(i.slice(a))}else this._data.push(o);this._changedData=!0,this._changedLength=!0}}},{key:"_unsetInternalPos",value:function(e){this._data.splice(e,1)}},{key:"_sortData",value:function(){this._changedData&&this._data.sort(a),this._changedData=!1}},{key:"bitField",value:function(){for(var e,t=[],n=8,r=0,i=0,o=this._bitArrays.slice();o.length||r;){0===r&&(e=o.shift(),r=7);var a=Math.min(r,n);i|=(e&~(255<<a))<<8-n,e>>>=a,r-=a,(n-=a)&&(r||o.length)||(t.push(i),i=0,n=8)}for(var s=t.length-1;s>0;s--){if(0!==t[s])break;t.pop()}return t}},{key:"compactArray",value:function(){return this._sortData(),this._data.map(s)}},{key:"length",get:function(){if(this._sortData(),this._changedLength){var e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}}])&&r(t.prototype,n),u&&r(t,u),e}()},function(e,t,n){"use strict";(function(t){var r,i=(r=n(36))&&r.__esModule?r:{default:r};function o(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(f){return void n(f)}s.done?t(u):Promise.resolve(u).then(r,i)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)})}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=n(221);e.exports=function(e){return function(t){return t instanceof f?t:new f(t,e)}};var f=function(){function e(n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"!=typeof n&&!t.isBuffer(n))throw new Error("can only hash strings or buffers");this._value=n,this._hashFn=r,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}var n,r,o;return n=e,(r=[{key:"take",value:function(){var e=a(i.default.mark(function e(t){var n,r,o,a,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t;case 1:if(!(this._availableBits<n)){e.next=6;break}return e.next=4,this._produceMoreBits();case 4:e.next=1;break;case 6:for(r=0;n>0;)o=this._buffers[this._currentBufferIndex],a=Math.min(o.availableBits(),n),s=o.take(a),r=(r<<a)+s,n-=a,this._availableBits-=a,0===o.availableBits()&&this._currentBufferIndex++;return e.abrupt("return",r);case 9:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"untake",value:function(e){for(var t=e;t>0;){var n=this._buffers[this._currentBufferIndex],r=Math.min(n.totalBits()-n.availableBits(),t);n.untake(r),t-=r,this._availableBits+=r,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}},{key:"_produceMoreBits",value:function(){var e=a(i.default.mark(function e(){var t,n,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._depth++,t=this._depth?this._value+this._depth:this._value,e.next=4,this._hashFn(t);case 4:n=e.sent,r=new u(n),this._buffers.push(r),this._availableBits+=r.availableBits();case 8:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()}])&&s(n.prototype,r),o&&s(n,o),e}()}).call(this,n(0).Buffer)},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=[255,254,252,248,240,224,192,128],o=[1,3,7,15,31,63,127,255];function a(e,t,n){return(e&function(e,t){return i[e]&o[Math.min(t+e-1,7)]}(t,n))>>>t}e.exports=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._value=t,this._currentBytePos=t.length-1,this._currentBitPos=7}var t,n,i;return t=e,(n=[{key:"availableBits",value:function(){return this._currentBitPos+1+8*this._currentBytePos}},{key:"totalBits",value:function(){return 8*this._value.length}},{key:"take",value:function(e){for(var t=e,n=0;t&&this._haveBits();){var r=this._value[this._currentBytePos],i=this._currentBitPos+1,o=Math.min(i,t);n=(n<<o)+a(r,i-o,o),t-=o,this._currentBitPos-=o,this._currentBitPos<0&&(this._currentBitPos=7,this._currentBytePos--)}return n}},{key:"untake",value:function(e){for(this._currentBitPos+=e;this._currentBitPos>7;)this._currentBitPos-=8,this._currentBytePos+=1}},{key:"_haveBits",value:function(){return this._currentBytePos>=0}}])&&r(t.prototype,n),i&&r(t,i),e}()},function(e,t,n){"use strict";e.exports=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().match(/([^\\^\/]|\\\/)+/g)||[]).filter(Boolean)}},function(e,t,n){"use strict";var r={fixed:n(224),rabin:n(232)};e.exports=r},function(e,t,n){"use strict";(function(t){var r=n(225),i=n(18);e.exports=function(e){var n="number"==typeof e?e:e.maxChunkSize,o=new r,a=0,s=!1;return i(function(e){for(o.append(e),a+=e.length;a>=n;)if(this.queue(o.slice(0,n)),s=!0,n===o.length)o=new r,a=0;else{var t=new r;t.append(o.shallowSlice(n)),o=t,a-=n}},function(){a&&(this.queue(o.slice(0,a)),s=!0),s||this.queue(t.alloc(0)),this.queue(null)})}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(226).Duplex,i=n(58),o=n(6).Buffer;function a(e){if(!(this instanceof a))return new a(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",function(e){e.on("error",t)}),this.on("unpipe",function(e){e.removeListener("error",t)})}else this.append(e);r.call(this)}i.inherits(a,r),a.prototype._offset=function(e){var t,n=0,r=0;if(0===e)return[0,0];for(;r<this._bufs.length;r++){if(e<(t=n+this._bufs[r].length)||r==this._bufs.length-1)return[r,e-n];n=t}},a.prototype._reverseOffset=function(e){for(var t=e[0],n=e[1],r=0;r<t;r++)n+=this._bufs[r].length;return n},a.prototype.append=function(e){var t=0;if(o.isBuffer(e))this._appendBuffer(e);else if(Array.isArray(e))for(;t<e.length;t++)this.append(e[t]);else if(e instanceof a)for(;t<e._bufs.length;t++)this.append(e._bufs[t]);else null!=e&&("number"==typeof e&&(e=e.toString()),this._appendBuffer(o.from(e)));return this},a.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},a.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},a.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},a.prototype.end=function(e){r.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype.get=function(e){if(!(e>this.length||e<0)){var t=this._offset(e);return this._bufs[t[0]][t[1]]}},a.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},a.prototype.copy=function(e,t,n,r){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof r||r>this.length)&&(r=this.length),n>=this.length)return e||o.alloc(0);if(r<=0)return e||o.alloc(0);var i,a,s=!!e,u=this._offset(n),f=r-n,c=f,l=s&&t||0,h=u[1];if(0===n&&r==this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:o.concat(this._bufs,this.length);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,l),l+=this._bufs[a].length;return e}if(c<=this._bufs[u[0]].length-h)return s?this._bufs[u[0]].copy(e,t,h,h+c):this._bufs[u[0]].slice(h,h+c);for(s||(e=o.allocUnsafe(f)),a=u[0];a<this._bufs.length;a++){if(!(c>(i=this._bufs[a].length-h))){this._bufs[a].copy(e,l,h,h+c);break}this._bufs[a].copy(e,l,h),l+=i,c-=i,h&&(h=0)}return e},a.prototype.shallowSlice=function(e,t){e=e||0,t=t||this.length,e<0&&(e+=this.length),t<0&&(t+=this.length);var n=this._offset(e),r=this._offset(t),i=this._bufs.slice(n[0],r[0]+1);return 0==r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!=n[1]&&(i[0]=i[0].slice(n[1])),new a(i)},a.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},a.prototype.consume=function(e){for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},a.prototype.duplicate=function(){for(var e=0,t=new a;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},a.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},a.prototype.indexOf=function(e,t,n){if(void 0===n&&"string"==typeof t&&(n=t,t=void 0),"function"==typeof e||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if("number"==typeof e?e=o.from([e]):"string"==typeof e?e=o.from(e,n):e instanceof a?e=e.slice():o.isBuffer(e)||(e=o.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),0===e.length)return t>this.length?this.length:t;for(var r=this._offset(t),i=r[0],s=r[1];i<this._bufs.length;i++){for(var u=this._bufs[i];s<u.length;){if(u.length-s>=e.length){var f=u.indexOf(e,s);if(-1!==f)return this._reverseOffset([i,f]);s=u.length-e.length+1}else{var c=this._reverseOffset([i,s]);if(this._match(c,e))return c;s++}}s=0}return-1},a.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(var n=0;n<t.length;n++)if(this.get(e+n)!==t[n])return!1;return!0},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(var t in e)!function(t){a.prototype[t]=null===e[t]?function(e,n){return this.slice(e,e+n)[t](0,n)}:function(n){return this.slice(n,n+e[t])[t](0)}}(t)}(),e.exports=a},function(e,t,n){"use strict";(t=e.exports=n(84)).Stream=t,t.Readable=t,t.Writable=n(88),t.Duplex=n(15),t.Transform=n(90),t.PassThrough=n(231)},function(e,t){},function(e,t,n){"use strict";var r=n(6).Buffer,i=n(229);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,i=s,t.copy(n,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){"use strict";(function(t){function n(e){try{if(!t.localStorage)return!1}catch(r){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(3))},function(e,t,n){"use strict";e.exports=o;var r=n(90),i=n(21);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(12),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";var r,i=n(233),o=n(18);e.exports=function(e){if(!r)try{if("function"!=typeof(r=n(234)))throw new Error("createRabin was not a function")}catch(l){var t=new Error("Rabin chunker not available, it may have failed to install or not be supported on this platform");return o(function(){this.emit("error",t)})}var a,s,u;e.minChunkSize&&e.maxChunkSize&&e.avgChunkSize?(u=e.avgChunkSize,a=e.minChunkSize,s=e.maxChunkSize):(a=(u=e.avgChunkSize)/3,s=u+u/2);var f=Math.floor(Math.log2(u)),c=r({min:a,max:s,bits:f,window:e.window||16,polynomial:e.polynomial||"0x3DF305DFB2A805"});return i.duplex(c)}},function(e,t,n){"use strict";(function(r){n(2);var i=n(64);function o(e,t){function n(){i(),t()}function r(e){i(),t(e)}function i(){e.removeListener("close",n),e.removeListener("error",r)}e.on("close",n),e.on("error",r)}function o(e){e.destroy?e.destroy():console.error("warning, stream-to-pull-stream: \nthe wrapped node-stream does not implement `destroy`, \nthis may cause resource leaks.")}function a(e,t,n){var a,s,u=!1;function f(){s||(s=!0,n&&n(!0===a?null:a))}function c(){u||(u=!0,h(),a?f():e(a=!0,f))}function l(t){h(),a||e(a=t,f)}function h(){t.on("finish",c),t.removeListener("close",c),t.removeListener("error",l)}t.on("close",c),t.on("finish",c),t.on("error",l),r.nextTick(function(){i(function(n){e(null,function(e,r){if(a=a||e,!0===e)return t._isStdio?f():t.end();if(a=a||e)return o(t),f();t._isStdio?t.write(r,function(){n()}):!1===t.write(r)?t.once("drain",n):n()})})})}function s(e){var t,n=[],r=[],i=!1;function a(){for(;(n.length||t)&&r.length;)r.shift()(n.length?null:t,n.shift());!n.length&&i&&(i=!1,e.resume())}return e.on("data",function(t){n.push(t),a(),n.length&&e.pause&&(i=!0,e.pause())}),e.on("end",function(){t=!0,a()}),e.on("close",function(){t=!0,a()}),e.on("error",function(e){t=e,a()}),function(n,i){if(!i)throw new Error("*must* provide cb");if(n){var s=function(){for(;r.length;)r.shift()(n);i(n)};if(t)return s();e.once("close",s),o(e)}else r.push(i),a()}}var u=s,f=function(e,t){return function(n){return a(n,e,t)}},c=function(e){return s(e)};(t=e.exports=function(e,t){return e.writable&&e.write?e.readable?function(n){return a(n,e,t),s(e)}:f(e,t):c(e)}).sink=f,t.source=c,t.read=u,t.read1=s,t.read2=function(e){var t,n=!1,r=!1;function i(){var n=e.read();if(null!==n&&t){var r=t;t=null,r(null,n)}}return e.on("readable",function(){r=!0,t&&i()}).on("end",function(){n=!0,t&&t(n)}).on("error",function(e){n=e,t&&t(n)}),function(e,o){t=o,n?o(n):r&&i()}},t.duplex=function(e,t){return{source:c(e),sink:f(e,t)}},t.transform=function(e){return function(t){var n=c(e);return f(e)(t),n}}}).call(this,n(1))},function(e,t){},function(e,t,n){"use strict";(function(t){var r=n(2),i=n(7),o=n(16),a=n(22),s=n(10),u=n(54),f=n(248).createResolver;var c={maxDepth:1/0,offset:void 0,length:void 0,fullPath:!1};e.exports=function(e,n,h){var b;h=Object.assign({},c,h);try{b=function(e){var n=e,r="/";if(t.isBuffer(e)&&(n=new u(e).toBaseEncodedString()),"string"==typeof e){0===e.indexOf("/ipfs/")&&(e=n=e.substring(6));var i=e.indexOf("/");i>0&&(n=e.substring(0,i),r=e.substring(i))}else u.isCID(n)&&(n=n.toBaseEncodedString());return{base:n=new u(n).toBaseEncodedString(),rest:l(r)}}(e)}catch(y){return o(y)}var d,p=(d=[b.base].concat(b.rest.slice(0,b.rest.length-1)),d.reduce(function(e,t){return e.length&&(e+="/"),e+t},"")).length,k=new u(b.base);return r(i([{multihash:k.buffer,name:b.base,path:b.base,pathRest:b.rest,depth:0}]),f(n,h),a(Boolean),s(function(e){return{depth:e.depth,name:e.name,path:h.fullPath?e.path:m(e),size:e.size,hash:e.multihash,content:e.content,type:e.type}}));function m(e){if(!b.rest.length)return e.path;var t=e.path.substring(p);return"/"===t.charAt(0)&&(t=t.substring(1)),t||(t=b.rest[b.rest.length-1]||b.base),t}};var l=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().match(/([^\\^\/]|\\\/)+/g)||[]).filter(Boolean)}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(38);function o(e){return e}e.exports=function(e){return"object"===r(e)&&"function"==typeof e.test?function(t){return e.test(t)}:i(e)||o}},function(e,t,n){"use strict";(function(r){var i=n(238);(t=e.exports=a).encode=function(e,t){var n=s(e);return a(n.name,r.from(n.encode(t)))},t.decode=function(e){r.isBuffer(e)&&(e=e.toString());var t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=r.from(e));var n=s(t);return r.from(n.decode(e.toString()))},t.isEncoded=function(e){r.isBuffer(e)&&(e=e.toString());if("[object String]"!==Object.prototype.toString.call(e))return!1;var t=e.substring(0,1);try{var n=s(t);return n.name}catch(i){return!1}},t.names=Object.freeze(Object.keys(i.names)),t.codes=Object.freeze(Object.keys(i.codes));var o=new Error("Unsupported encoding");function a(e,t){if(!t)throw new Error("requires an encoded buffer");var n=s(e),i=r.from(n.code);return function(e,t){s(e).decode(t.toString())}(n.name,t),r.concat([i,t])}function s(e){var t;if(i.names[e])t=i.names[e];else{if(!i.codes[e])throw o;t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(239),i=n(240),o=n(241),a=n(242),s=n(243),u=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],f=u.reduce(function(e,t){return e[t[0]]=new r(t[0],t[1],t[2],t[3]),e},{}),c=u.reduce(function(e,t){return e[t[1]]=f[t[0]],e},{});e.exports={names:f,codes:c}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.code=n,this.alphabet=i,r&&i&&(this.engine=r(i))}var t,n,i;return t=e,(n=[{key:"encode",value:function(e){return this.engine.encode(e)}},{key:"decode",value:function(e){return this.engine.decode(e)}},{key:"isImplemented",value:function(){return this.engine}}])&&r(t.prototype,n),i&&r(t,i),e}();e.exports=i},function(e,t,n){"use strict";var r=n(6).Buffer;e.exports=function(e){for(var t={},n=e.length,i=e.charAt(0),o=0;o<e.length;o++){var a=e.charAt(o);if(void 0!==t[a])throw new TypeError(a+" is ambiguous");t[a]=o}function s(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return r.allocUnsafe(0);for(var o=[0],a=0;a<e.length;a++){var s=t[e[a]];if(void 0===s)return;for(var u=0,f=s;u<o.length;++u)f+=o[u]*n,o[u]=255&f,f>>=8;for(;f>0;)o.push(255&f),f>>=8}for(var c=0;e[c]===i&&c<e.length-1;++c)o.push(0);return r.from(o.reverse())}return{encode:function(t){if(0===t.length)return"";for(var r=[0],o=0;o<t.length;++o){for(var a=0,s=t[o];a<r.length;++a)s+=r[a]<<8,r[a]=s%n,s=s/n|0;for(;s>0;)r.push(s%n),s=s/n|0}for(var u="",f=0;0===t[f]&&f<t.length-1;++f)u+=i;for(var c=r.length-1;c>=0;--c)u+=e[r[c]];return u},decodeUnsafe:s,decode:function(e){var t=s(e);if(t)return t;throw new Error("Non-base"+n+" character")}}}},function(e,t,n){"use strict";(function(t){e.exports=function(e){return{encode:function(e){return"string"==typeof e?t.from(e).toString("hex"):e.toString("hex")},decode:function(n){var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(e.indexOf(u)<0)throw new Error("invalid base16 character")}}catch(f){i=!0,o=f}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return t.from(n,"hex")}}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(t){function n(e,t){var n=e.byteLength,r=new Uint8Array(e),i=t.indexOf("=")===t.length-1;i&&(t=t.substring(0,t.length-2));for(var o=0,a=0,s="",u=0;u<n;u++)for(a=a<<8|r[u],o+=8;o>=5;)s+=t[a>>>o-5&31],o-=5;if(o>0&&(s+=t[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}e.exports=function(e){return{encode:function(r){return n("string"==typeof r?t.from(r):r,e)},decode:function(t){var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(e.indexOf(s)<0)throw new Error("invalid base32 character")}}catch(u){r=!0,i=u}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return function(e,t){for(var n=(e=e.replace(new RegExp("=","g"),"")).length,r=0,i=0,o=0,a=new Uint8Array(5*n/8|0),s=0;s<n;s++)i=i<<5|t.indexOf(e[s]),(r+=5)>=8&&(a[o++]=i>>>r-8&255,r-=8);return a.buffer}(t,e)}}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(t){e.exports=function(e){var n=e.indexOf("=")>-1,r=e.indexOf("-")>-1&&e.indexOf("_")>-1;return{encode:function(e){var i="";i="string"==typeof e?t.from(e).toString("base64"):e.toString("base64"),r&&(i=i.replace(/\+/g,"-").replace(/\//g,"_"));var o=i.indexOf("=");return o>0&&!n&&(i=i.substring(0,o)),i},decode:function(n){var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(e.indexOf(u)<0)throw new Error("invalid base64 character")}}catch(f){i=!0,o=f}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return t.from(n,"base64")}}}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(r){var i=n(5),o=n(245),a=n(246),s=n(91);(t=e.exports).addPrefix=function(e,t){var n;if(r.isBuffer(e))n=s.varintBufferEncode(e);else{if(!o[e])throw new Error("multicodec not recognized");n=o[e]}return r.concat([n,t])},t.rmPrefix=function(e){return i.decode(e),e.slice(i.decode.bytes)},t.getCodec=function(e){var t=s.varintBufferDecode(e),n=a[t.toString("hex")];if(void 0===n)throw new Error("Code `0x"+t.toString("hex")+"` not found");return n},t.getCodeVarint=function(e){var t=o[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},t.addCodec=function(e,t){o[e]=s.varintBufferEncode(t),a[t.toString("hex")]=e}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(55),i=n(91).varintBufferEncode,o={};for(var a in e.exports=o,r){var s=r[a];o[a]=i(s)}},function(e,t,n){"use strict";var r=n(55),i={};for(var o in e.exports=i,r){i[r[o].toString("hex")]=o}},function(e,t,n){"use strict";(function(t){var r=n(50),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(!t.isBuffer(e.multihash))return"multihash must be a Buffer";try{r.validate(e.multihash)}catch(i){var n=i.message;return n||(n="Multihash validation failed"),n}}};e.exports=i}).call(this,n(0).Buffer)},function(e,t,n){"use strict";(function(t){var r=n(13),i=n(2),o=n(16),a=n(22),s=n(92),u=n(10),f=n(46),c=n(54),l=n(4),h={directory:n(249),"hamt-sharded-directory":n(250),file:n(254),object:n(256),raw:n(257)};function b(e,t,n,r){if(!n){n=0}if(n>t.maxDepth){return u(p)}return i(f(function(n,r){if(typeof n.depth!=="number"){return o(new Error("no depth"))}if(n.object){return r(null,k(null,n.object,n,t))}var i=new c(n.multihash);l([function(t){return e.get(i,t)},function(e,r){return r(null,k(i,e.value,n,t))}],r)}),s(),a(Boolean),a(function(e){return e.depth<=t.maxDepth}));function k(t,n,i,o){return m({cid:t,node:n,name:i.name,path:i.path,pathRest:i.pathRest,size:i.size,dag:e,parentNode:i.parent||r,depth:i.depth,options:o})}function m(e){var t=e.cid,n=e.node,r=e.name,i=e.path,a=e.pathRest,s=e.size,u=e.dag,f=e.parentNode,c=e.depth,l=e.options,p;try{p=d(n)}catch(y){return o(y)}var k=h[p];if(!k){return o(new Error("Unkown node type "+p))}var m=b(u,l,c,n);return k(t,n,r,i,a,m,s,u,f,c,l)}}function d(e){return t.isBuffer(e)?"raw":t.isBuffer(e.data)?r.unmarshal(e.data).type:"object"}function p(e){return e}e.exports=Object.assign({createResolver:function(e,t,n,r){n||(n=0);if(n>t.maxDepth)return u(p);return i(f(function(n,r){if("number"!=typeof n.depth)return o(new Error("no depth"));if(n.object)return r(null,k(null,n.object,n,t));var i=new c(n.multihash);l([function(t){return e.get(i,t)},function(e,r){return r(null,k(i,e.value,n,t))}],r)}),s(),a(Boolean),a(function(e){return e.depth<=t.maxDepth}));function k(t,n,i,a){return function(e){var t,n=e.cid,r=e.node,i=e.name,a=e.path,s=e.pathRest,u=e.size,f=e.dag,c=e.parentNode,l=e.depth,p=e.options;try{t=d(r)}catch(y){return o(y)}var k=h[t];if(!k)return o(new Error("Unkown node type "+t));var m=b(f,p,l,r);return k(n,r,i,a,s,m,u,f,c,l,p)}({cid:t,node:n,name:i.name,path:i.path,pathRest:i.pathRest,size:i.size,dag:e,parentNode:i.parent||r,depth:i.depth,options:a})}},typeOf:d},h)}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(22),a=n(10),s=n(93);e.exports=function(e,t,n,u,f,c,l,h,b,d,p){var k=f[0],m={name:n,depth:d,path:u,multihash:e.buffer,size:t.size,type:"dir"};if(p.maxDepth&&p.maxDepth<=d)return i([m]);var y=[r(i(t.links),o(function(e){return void 0===k||e.name===k}),a(function(e){return{depth:d+1,size:e.size,name:e.name,path:u+"/"+e.name,multihash:e.cid.buffer,linkName:e.name,pathRest:f.slice(1),type:"dir"}}),c)];f.length&&!p.fullPath||y.unshift(i([m]));return s(y)}},function(e,t,n){"use strict";var r=n(251),i=n(2),o=n(16),a=n(7),s=n(22),u=n(10),f=n(93),c=n(83),l=n(82),h=n(4);e.exports=function(e,t,n,m,y,v,g,x,S,w,_){var E;S&&S.path===m||(E={name:n,depth:w,path:m,multihash:e.buffer,size:t.size,type:"dir"});if(_.maxDepth&&_.maxDepth<=w)return a([E]);if(!y.length){var A=[i(a(t.links),u(function(e){var t=e.name.substring(2),n=t?m+"/"+t:m;return{depth:t?w+1:w,name:t,path:n,multihash:e.cid.buffer,pathRest:t?y.slice(1):y,parent:E||S}}),v)];return A.unshift(a([E])),f(A)}var B=r.source(),j=y[0];return h([function(e){return _.rootBucket?b(t.links,_.lastBucket,_.rootBucket,e):(_.rootBucket=new c({hashFn:l.hashFn}),_.hamtDepth=1,b(t.links,_.rootBucket,_.rootBucket,e))},function(e){return p(j,_.rootBucket,e)},function(e,n){var r=d(e.pos),o=k(e);o.length>_.hamtDepth&&(_.lastBucket=o[_.hamtDepth],r=d(_.lastBucket._posAtParent));var f=[i(a(t.links),u(function(e){var t=e.name.substring(0,2),n=e.name.substring(2),i=n?m+"/"+n:m;return t===r&&(!n||n===j)&&(n?(delete _.rootBucket,delete _.lastBucket,delete _.hamtDepth):_.hamtDepth++,{depth:n?w+1:w,name:n,path:i,multihash:e.cid.buffer,pathRest:n?y.slice(1):y,parent:E||S})}),s(Boolean),v)];_.fullPath&&f.unshift(a([E])),n(null,f)}],function(e,t){if(e)return B.resolve(o(e));B.resolve(f(t))}),B};var b=function(e,t,n,r){Promise.all(e.map(function(e){if(2===e.name.length){var r=parseInt(e.name,16);return t._putObjectAt(r,new c({hashFn:l.hashFn},t,r))}return n.put(e.name.substring(2),!0)})).catch(function(e){r(e),r=null}).then(function(){return r&&r()})},d=function(e){return e.toString("16").toUpperCase().padStart(2,"0").substring(0,2)},p=function(e,t,n){t._findNewBucketAndPos(e).catch(function(e){n(e),n=null}).then(function(e){n&&n(null,e)})},k=function(e){for(var t=e.bucket,n=[];t._parent;)n.push(t),t=t._parent;return n.push(t),n.reverse()}},function(e,t,n){"use strict";t.source=n(94),t.through=n(252),t.sink=n(95),t.duplex=n(253)},function(e,t,n){"use strict";e.exports=function(){var e,t,n,r,i;function o(o){return i?i(o):(e=o,function(e,i){t?t(e,i):(r=e,n=i)})}return o.resolve=function(o){if(i)throw new Error("already resolved");if(!(i=o))throw new Error("resolve *must* be passed a transform stream");e&&(t=i(e),n&&t(r,n))},o}},function(e,t,n){"use strict";var r=n(94),i=n(95);e.exports=function(){var e=r(),t=i();return{source:e,sink:t,resolve:function(n){e.resolve(n.source),t.resolve(n.sink)}}}},function(e,t,n){"use strict";(function(t){var r=n(255),i=n(13),o=n(2),a=n(7),s=n(16),u=n(56),f=n(96),c=n(22),l=n(92),h=n(10),b=n(46),d=n(97);e.exports=function(e,n,p,k,m,y,v,g,x,S,w){var _,E=m[0];if(void 0!==E&&E!==k)return f();try{_=i.unmarshal(n.data)}catch(C){return s(C)}var A=v||_.fileSize(),B=w.offset,j=w.length;if(B<0)return s(new Error("Offset must be greater than or equal to 0"));if(B>A)return s(new Error("Offset must be less than the file size"));if(j<0)return s(new Error("Length must be greater than or equal to 0"));if(0===j)return u({depth:S,content:u(t.alloc(0)),name:p,path:k,multihash:e.buffer,size:A,type:"file"});B||(B=0),(!j||B+j>A)&&(j=A-B);var O=function(e,n,a,p,k){if(p===a||0===k)return u(t.alloc(0));var m=p+k;return o(r.depthFirst({node:n,start:0,end:a},function(e,n,r){var a=0;return function(c){var h,d=c.node;if(t.isBuffer(d))return f();try{h=i.unmarshal(d.data)}catch(C){return s(C)}var p=Boolean(h.data&&h.data.length);p&&d.links.length&&(a+=h.data.length);var k=d.links.map(function(e,t){var n={link:e,start:a,end:a+h.blockSizes[t],size:h.blockSizes[t]};return a=n.end,n}).filter(function(e){return n>=e.start&&n<e.end||r>e.start&&r<=e.end||n<e.start&&r>e.end});return k.length&&(a=k[0].start),o(u(k),b(function(t,n){e.getMany(t.map(function(e){return e.link.cid}),function(e,r){if(e)return n(e);n(null,r.map(function(e,n){var r=t[n];return{start:r.start,end:r.end,node:e,size:r.size}}))})}),l())}}(e,p,m)),h((y=p,v=m,g=-1,function(e){var n,r=e.node,o=e.start;if(e.end,t.isBuffer(r))n=r;else try{var a=i.unmarshal(r.data);if(!a.data){if(a.blockSizes.length)return;return t.alloc(0)}n=a.data}catch(C){throw new Error("Failed to unmarshal node - ".concat(C.message))}if(n&&n.length){-1===g&&(g=o);var s=d(n,g,y,v);return g+=n.length,s}return t.alloc(0)})),c(Boolean));var y,v,g}(g,n,A,B,j);return a([{depth:S,content:O,name:p,path:k,multihash:e.buffer,size:A,type:"file"}])}}).call(this,n(0).Buffer)},function(e,t,n){"use strict";var r=t.once=function(e){return function(t,n){if(t)return n(t);if(null!=e){var r=e;e=null,n(null,r)}else n(!0)}};t.depthFirst=function(e,t){var n,i=[];return i.unshift(r(e)),function e(r,o){return i.length?n?o(n):void i[0](r,function(r,a){if(r){if(!0!==r){for(n=r,i.shift();i.length;)i.shift()(r,function(){});return o(r)}return i.shift(),e(null,o)}i.unshift(t(a)),o(r,a)}):o(!0)}},t.widthFirst=function(e,t){var n=[];return n.push(r(e)),function e(r,i){if(!n.length)return i(!0);n[0](r,function(r,o){if(r)return n.shift(),e(null,i);n.push(t(o)),i(r,o)})}},t.leafFirst=function(e,t){var n=[],i=[];return n.push(r(e)),function e(r,o){n[0](r,function(r,a){if(r)return n.shift(),i.length?o(null,i.shift()):o(!0);n.unshift(t(a)),i.unshift(a),e(null,o)})}}},function(e,t,n){"use strict";var r=n(54),i=n(2),o=n(7),a=n(16);e.exports=function(e,t,n,s,u,f,c,l,h,b){var d;if(u.length){var p=u[0],k=s+"/"+p;if(!(d=t[p]))return a(new Error("not found"));var m=r.isCID(d);return i(o([{depth:b,name:p,path:k,pathRest:u.slice(1),multihash:m&&d,object:!m&&d,parent:h}]),f)}return a(new Error("invalid node type"))}},function(e,t,n){"use strict";(function(t){var r=n(16),i=n(56),o=n(96),a=n(97);e.exports=function(e,n,s,u,f,c,l,h,b,d,p){var k=f[0];if(void 0!==k&&k!==u)return o();l=l||n.length;var m=p.offset,y=p.length;return m<0?r(new Error("Offset must be greater than or equal to 0")):m>l?r(new Error("Offset must be less than the file size")):y<0?r(new Error("Length must be greater than or equal to 0")):0===y?i({depth:d,content:i(t.alloc(0)),hash:e,name:s,path:u,size:l,type:"raw"}):(m||(m=0),(!y||m+y>l)&&(y=l-m),i({depth:d,content:i(a(n,0,m,m+y)),hash:e,name:s,path:u,size:l,type:"raw"}))}}).call(this,n(0).Buffer)}])});
  //# sourceMappingURL=index.min.js.map