varn=r(682),i=r(346),o=r(37);functions(){try{vare=newUint8Array(1);returne.__proto__={__proto__:Uint8Array.prototype,foo:function(){return42}},42===e.foo()&&"function"==typeofe.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}functiona(){returnc.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functionu(e,t){if(a()<t)thrownewRangeError("Invalid typed array length");returnc.TYPED_ARRAY_SUPPORT?(e=newUint8Array(t),e.__proto__=c.prototype):(null===e&&(e=newc(t)),e.length=t),e}functionc(e,t,r){if(!(c.TYPED_ARRAY_SUPPORT||thisinstanceofc))returnnewc(e,t,r);if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returnd(this,e)}returnf(this,e,t,r)}functionf(e,t,r,n){if("number"==typeoft)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer?m(e,t,r,n):"string"==typeoft?p(e,t,r):b(e,t)}functionh(e){if("number"!=typeofe)thrownewTypeError('"size" argument must be a number');if(e<0)thrownewRangeError('"size" argument must not be negative')}functionl(e,t,r,n){returnh(t),t<=0?u(e,t):void0!==r?"string"==typeofn?u(e,t).fill(r,n):u(e,t).fill(r):u(e,t)}functiond(e,t){if(h(t),e=u(e,t<0?0:0|y(t)),!c.TYPED_ARRAY_SUPPORT)for(varr=0;r<t;++r)e[r]=0;returne}functionp(e,t,r){if("string"==typeofr&&""!==r||(r="utf8"),!c.isEncoding(r))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|_(t,r);e=u(e,n);vari=e.write(t,r);returni!==n&&(e=e.slice(0,i)),e}functiong(e,t){varr=t.length<0?0:0|y(t.length);e=u(e,r);for(varn=0;n<r;n+=1)e[n]=255&t[n];returne}functionm(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))thrownewRangeError("'length' is out of bounds");returnt=void0===r&&void0===n?newUint8Array(t):void0===n?newUint8Array(t,r):newUint8Array(t,r,n),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}functionb(e,t){if(c.isBuffer(t)){varr=0|y(t.length);returne=u(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeofArrayBuffer&&t.bufferinstanceofArrayBuffer||"length"int)return"number"!=typeoft.length||te(t.length)?u(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))returng(e,t.data)}thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}functiony(e){if(e>=a())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return0|e}functionv(e){return+e!=e&&(e=0),c.alloc(+e)}function_(e,t){if(c.isBuffer(e))returne.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(e)||einstanceofArrayBuffer))returne.byteLength;"string"!=typeofe&&(e=""+e);varr=e.length;if(0===r)return0;for(varn=!1;;)switch(t){case"ascii":case"latin1":case"binary":returnr;case"utf8":case"utf-8":casevoid0:returnJ(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnQ(e).length;default:if(n)returnJ(e).length;t=(""+t).toLowerCase(),n=!0}}functionw(e,t,r){varn=!1;if((void0===t||t<0)&&(t=0),t>this.length)return"";if((void0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":returnj(this,t,r);case"utf8":case"utf-8":returnB(this,t,r);case"ascii":returnN(this,t,r);case"latin1":case"binary":returnL(this,t,r);case"base64":returnR(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnD(this,t,r);default:if(n)thrownewTypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}functionS(e,t,r){varn=e[t];e[t]=e[r],e[r]=n}functionE(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeofr?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}elseif(r<0){if(!i)return-1;r=0}if("string"==typeoft&&(t=c.from(t,n)),c.isBuffer(t))return0===t.length?-1:k(e,t,r,n,
varn=function(e,t){returnfunction(){varr=Array.prototype.slice.call(arguments),n=r.length-1,i=r&&r.length>0?r[n]:null,o="function"==typeofi?i:null;returno?e.apply(t,r):newPromise(function(n,i){r.push(function(e,t){if(e)returni(e);n(t)}),e.apply(t,r)})}};e.exports=function(e,t){t=t||{};varr=Object.prototype.toString.call(e);if("[object Object]"===r||"[object Array]"===r){vari=t.replace?e:{};for(varoine)e.hasOwnProperty(o)&&(i[o]=n(e[o]));returni}returnn(e,t.context||e)}},function(e,t,r){varn=r(0),i=n.Buffer;functiono(e,t){for(varrine)t[r]=e[r]}functions(e,t,r){returni(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"==typeofe)thrownewTypeError("Argument must not be a number");returni(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeofe)thrownewTypeError("Argument must be a number");varn=i(e);returnvoid0!==t?"string"==typeofr?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeofe)thrownewTypeError("Argument must be a number");returni(e)},s.allocUnsafeSlow=function(e){if("number"!=typeofe)thrownewTypeError("Argument must be a number");returnn.SlowBuffer(e)}},function(e,t,r){(function(e){functionr(e){returnArray.isArray?Array.isArray(e):"[object Array]"===m(e)}functionn(e){return"boolean"==typeofe}functioni(e){returnnull===e}functiono(e){returnnull==e}functions(e){return"number"==typeofe}functiona(e){return"string"==typeofe}functionu(e){return"symbol"==typeofe}functionc(e){returnvoid0===e}functionf(e){return"[object RegExp]"===m(e)}functionh(e){return"object"==typeofe&&null!==e}functionl(e){return"[object Date]"===m(e)}functiond(e){return"[object Error]"===m(e)||einstanceofError}functionp(e){return"function"==typeofe}functiong(e){returnnull===e||"boolean"==typeofe||"number"==typeofe||"string"==typeofe||"symbol"==typeofe||void0===e}functionm(e){returnObject.prototype.toString.call(e)}t.isArray=r,t.isBoolean=n,t.isNull=i,t.isNullOrUndefined=o,t.isNumber=s,t.isString=a,t.isSymbol=u,t.isUndefined=c,t.isRegExp=f,t.isObject=h,t.isDate=l,t.isError=d,t.isFunction=p,t.isPrimitive=g,t.isBuffer=e.isBuffer}).call(this,r(0).Buffer)},function(e,t,r){(function(n){functioni(){return!("undefined"==typeofwindow||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeofnavigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeofdocument&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeofwindow&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeofnavigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeofnavigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}functiono(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;constr="color: "+this.color;t.splice(1,0,r,"color: inherit");letn=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)}functions(...e){return"object"==typeofconsole&&console.log&&console.log(...e)}functiona(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}functionu(){lete;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void0!==n&&"env"inn&&(e=n.env.DEBUG),e}functionc(){try{returnlocalStorage}catch(e){}}t.log=s,t.formatArgs=o,t.save=a,t.load=u,t.useColors=i,t.storage=c(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","
varn=r(33),i=r(34),o=r(35);functions(){try{vare=newUint8Array(1);returne.__proto__={__proto__:Uint8Array.prototype,foo:function(){return42}},42===e.foo()&&"function"==typeofe.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}functiona(){returnc.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functionu(e,t){if(a()<t)thrownewRangeError("Invalid typed array length");returnc.TYPED_ARRAY_SUPPORT?(e=newUint8Array(t),e.__proto__=c.prototype):(null===e&&(e=newc(t)),e.length=t),e}functionc(e,t,r){if(!(c.TYPED_ARRAY_SUPPORT||thisinstanceofc))returnnewc(e,t,r);if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returnd(this,e)}returnf(this,e,t,r)}functionf(e,t,r,n){if("number"==typeoft)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer?m(e,t,r,n):"string"==typeoft?p(e,t,r):b(e,t)}functionh(e){if("number"!=typeofe)thrownewTypeError('"size" argument must be a number');if(e<0)thrownewRangeError('"size" argument must not be negative')}functionl(e,t,r,n){returnh(t),t<=0?u(e,t):void0!==r?"string"==typeofn?u(e,t).fill(r,n):u(e,t).fill(r):u(e,t)}functiond(e,t){if(h(t),e=u(e,t<0?0:0|y(t)),!c.TYPED_ARRAY_SUPPORT)for(varr=0;r<t;++r)e[r]=0;returne}functionp(e,t,r){if("string"==typeofr&&""!==r||(r="utf8"),!c.isEncoding(r))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|_(t,r);e=u(e,n);vari=e.write(t,r);returni!==n&&(e=e.slice(0,i)),e}functiong(e,t){varr=t.length<0?0:0|y(t.length);e=u(e,r);for(varn=0;n<r;n+=1)e[n]=255&t[n];returne}functionm(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))thrownewRangeError("'length' is out of bounds");returnt=void0===r&&void0===n?newUint8Array(t):void0===n?newUint8Array(t,r):newUint8Array(t,r,n),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}functionb(e,t){if(c.isBuffer(t)){varr=0|y(t.length);returne=u(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeofArrayBuffer&&t.bufferinstanceofArrayBuffer||"length"int)return"number"!=typeoft.length||te(t.length)?u(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))returng(e,t.data)}thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}functiony(e){if(e>=a())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return0|e}functionv(e){return+e!=e&&(e=0),c.alloc(+e)}function_(e,t){if(c.isBuffer(e))returne.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(e)||einstanceofArrayBuffer))returne.byteLength;"string"!=typeofe&&(e=""+e);varr=e.length;if(0===r)return0;for(varn=!1;;)switch(t){case"ascii":case"latin1":case"binary":returnr;case"utf8":case"utf-8":casevoid0:returnJ(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnQ(e).length;default:if(n)returnJ(e).length;t=(""+t).toLowerCase(),n=!0}}functionw(e,t,r){varn=!1;if((void0===t||t<0)&&(t=0),t>this.length)return"";if((void0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":returnj(this,t,r);case"utf8":case"utf-8":returnB(this,t,r);case"ascii":returnN(this,t,r);case"latin1":case"binary":returnL(this,t,r);case"base64":returnR(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnD(this,t,r);default:if(n)thrownewTypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}functionS(e,t,r){varn=e[t];e[t]=e[r],e[r]=n}functionE(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeofr?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}elseif(r<0){if(!i)return-1;r=0}if("string"==typeoft&&(t=c.from(t,n)),c.isBuffer(t))return0===t.length?-1:k(e,t,r,n,i)
varn,i,o;n="prr",i=this,o=function(){vare="function"==typeofObject.defineProperty?function(e,t,r){returnObject.defineProperty(e,t,r),e}:function(e,t,r){returne[t]=r.value,e},t=function(e,t){varr="object"==typeoft,n=!r&&"string"==typeoft,i=function(e){returnr?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}},r=function(r,n,i,o){vars;if(o=t(i,o),"object"==typeofn){for(sinn)Object.hasOwnProperty.call(n,s)&&(o.value=n[s],e(r,s,o));returnr}returne(r,n,o)};returnr},e.exports?e.exports=o():i.prr=o()},function(e,t,r){"use strict";varn=r(272).AbstractLevelDOWN,i=r(272).AbstractChainedBatch,o=r(272).AbstractIterator,s=r(1),a=r(41),u=r(775),c=r(777).EncodingError;functionf(e,t){if(!(thisinstanceoff))returnnewf(e,t);n.call(this,""),t=t||{},void0===t.keyEncoding&&(t.keyEncoding="utf8"),void0===t.valueEncoding&&(t.valueEncoding="utf8"),this.db=e,this.codec=newu(t)}functionh(e,t){o.call(this,e),this.codec=e.codec,this.keys=t.keys,this.values=t.values,this.opts=this.codec.encodeLtgt(t),this.it=e.db.iterator(this.opts)}functionl(e,t){i.call(this,e),this.codec=e.codec,this.batch=e.db.batch()}e.exports=f.default=f,s(f,n),f.prototype._serializeKey=f.prototype._serializeValue=function(e){returne},f.prototype._open=function(e,t){this.db.open(e,t)},f.prototype._close=function(e){this.db.close(e)},f.prototype._put=function(e,t,r,n){e=this.codec.encodeKey(e,r),t=this.codec.encodeValue(t,r),this.db.put(e,t,r,n)},f.prototype._get=function(e,t,r){varn=this;e=this.codec.encodeKey(e,t),t.asBuffer=this.codec.valueAsBuffer(t),this.db.get(e,t,function(e,i){if(e)returnr(e);try{i=n.codec.decodeValue(i,t)}catch(e){returnr(newc(e))}r(null,i)})},f.prototype._del=function(e,t,r){e=this.codec.encodeKey(e,t),this.db.del(e,t,r)},f.prototype._chainedBatch=function(){returnnewl(this)},f.prototype._batch=function(e,t,r){e=this.codec.encodeBatch(e,t),this.db.batch(e,t,r)},f.prototype._iterator=function(e){returne.keyAsBuffer=this.codec.keyAsBuffer(e),e.valueAsBuffer=this.codec.valueAsBuffer(e),newh(this,e)},f.prototype._setupIteratorOptions=function(e){returne=a(e),e.reverse=!!e.reverse,e.keys=!1!==e.keys,e.values=!1!==e.values,e.limit="limit"ine?e.limit:-1,e.keyAsBuffer=!1!==e.keyAsBuffer,e.valueAsBuffer=!1!==e.valueAsBuffer,e},f.prototype.approximateSize=function(e,t,r,n){returnthis.db.approximateSize(e,t,r,n)},s(h,o),h.prototype._next=function(e){vart=this;this.it.next(function(r,n,i){if(r)returne(r);try{n=t.keys&&void0!==n?t.codec.decodeKey(n,t.opts):void0,i=t.values&&void0!==i?t.codec.decodeValue(i,t.opts):void0}catch(r){returne(newc(r))}e(null,n,i)})},h.prototype._end=function(e){this.it.end(e)},s(l,i),l.prototype._put=function(e,t){e=this.codec.encodeKey(e),t=this.codec.encodeValue(t),this.batch.put(e,t)},l.prototype._del=function(e){e=this.codec.encodeKey(e),this.batch.del(e)},l.prototype._clear=function(){this.batch.clear()},l.prototype._write=function(e,t){this.batch.write(e,t)}},function(e,t,r){(function(t,n){vari=r(41),o=r(393),s=r(394),a=Object.prototype.hasOwnProperty,u="start end gt gte lt lte".split(" ");functionc(e){if(!arguments.length||void0===e)thrownewError("constructor requires at least a location argument");if("string"!=typeofe)thrownewError("constructor requires a location string argument");this.location=e,this.status="new"}functionf(e){vart={};for(varrine)a.call(e,r)&&(h(r)&&l(e[r])||(t[r]=e[r]));returnt}functionh(e){return-1!==u.indexOf(e)}functionl(e){return""===e||null==e||d(e)}functiond(e){returnn.isBuffer(e)&&0===e.length}c.prototype.open=function(e,t){varr=this,n=this.status;if("function"==typeofe&&(t=e),"function"!=typeoft)thrownewError("open() requires a callback argument");"object"!=typeofe&&(e={}),e.createIfMissing=!1!==e.createIfMissing,e.errorIfExists=!!e.errorIfExists,this.status="opening",this._open(e,function(e){if(e)returnr.status=n,t(e);r.status="open",t()})},c.prototype._open=function(e,r){t.nextTick(r)},c.prototype.close=function(e){vart=this,r=this.status;if("function"!=
varn,i;n=this,i=function(){"use strict";vare=function(e,r){returnt(e.slice(),r)};functiont(e,t){"function"!=typeoft&&(t=function(e,t){returnString(e).localeCompare(t)});varn=e.length;if(n<=1)returne;for(vari=newArray(n),o=1;o<n;o*=2){r(e,t,o,i);vars=e;e=i,i=s}returne}e.inplace=function(e,n){vari=t(e,n);returni!==e&&r(i,null,e.length,e),e};varr=function(e,t,r,n){vari=e.length,o=0,s=2*r,a,u,c,f,h;for(a=0;a<i;a+=s)for(u=a+r,c=u+r,u>i&&(u=i),c>i&&(c=i),f=a,h=u;;)if(f<u&&h<c)t(e[f],e[h])<=0?n[o++]=e[f++]:n[o++]=e[h++];elseif(f<u)n[o++]=e[f++];else{if(!(h<c))break;n[o++]=e[h++]}};returne},e.exports=i()},function(e,t,r){varn=r(812),i=r(814);e.exports=n,e.exports.parse=n,e.exports.stringify=i},function(e,t,r){varn=r(813),i=536870911,o=["int32","int64","uint32","uint64","sint32","sint64","bool","fixed64","sfixed64","double","fixed32","sfixed32","float"],s=function(e){for(vart={};e.length;)switch(e[0]){case"[":case",":e.shift();varr=e.shift();if("("===r&&(r=e.shift(),e.shift()),"="!==e[0])thrownewError("Unexpected token in field options: "+e[0]);if(e.shift(),"]"===e[0])thrownewError("Unexpected ] in field option");t[r]=e.shift();break;case"]":returne.shift(),t;default:thrownewError("Unexpected token in field options: "+e[0])}thrownewError("No closing tag for field options")},a=function(e){for(vart={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])thrownewError("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.from=e.shift(),","!==e[0])thrownewError("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.to=e.shift(),">"!==e[0])thrownewError("Unexpected token in map type: "+e[0]);e.shift(),t.name=e.shift();break;case"repeated":case"required":case"optional":varr=e.shift();t.required="required"===r,t.repeated="repeated"===r,t.type=e.shift(),t.name=e.shift();break;case"[":t.options=s(e);break;case";":if(null===t.name)thrownewError("Missing field name");if(null===t.type)thrownewError("Missing type in message field: "+t.name);if(-1===t.tag)thrownewError("Missing tag number in message field: "+t.name);returne.shift(),t;default:thrownewError("Unexpected token in message field: "+e[0])}thrownewError("No ; found for message field")},u=function(e){for(vart={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(g(e));break;case"message":t.messages.push(h(e));break;case"extensions":t.extensions=f(e);break;case"oneof":e.shift();varr=e.shift();if("{"!==e[0])thrownewError("Unexpected token in oneof: "+e[0]);for(e.shift();"}"!==e[0];){e.unshift("optional");varn=a(e);n.oneof=r,t.fields.push(n)}e.shift();break;case"extend":t.extends.push(c(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))}returnt},c=function(e){vart={name:e[1],message:h(e)};returnt},f=function(e){e.shift();vart=Number(e.shift());if(isNaN(t))thrownewError("Invalid from in extensions definition");if("to"!==e.shift())thrownewError("Expected keyword 'to' in extensions definition");varr=e.shift();if("max"===r&&(r=536870911),r=Number(r),isNaN(r))thrownewError("Invalid to in extensions definition");if(";"!==e.shift())thrownewError("Missing ; in extensions definition");return{from:t,to:r}},h=function(e){e.shift();vart=1,r=[],n={name:e.shift(),enums:[],extends:[],messages:[],fields:[]};if("{"!==e[0])thrownewError("Expected { but found "+e[0]);for(e.shift();e.length;){if("{"===e[0]?t++:"}"===e[0]&&t--,!t)returne.shift(),r=u(r),n.enums=r.enums,n.messages=r.messages,n.fields=r.fields,n.extends=r.extends,n.extensions=r.extensions,n;r.push(e.shift())}if(t)thrownewError("No closing tag for message")},l=function(e){e.shift();vart=e.shift();if(";"!==e[0])thrownewError("Expected ; but found "+e[0]);returne
varn=function(){e.exports=y;vart=86400,r=3200,n=146097*r/400,i=t*n,o=1e3*i,s=1e11*t,a=16777216,u=4294967296,c=1e6,f=1e9,h="000000000",l=Math.trunc||N,d=y.prototype;y.fromDate=C,y.fromInt64BE=P(0,1,2,3,0,4),y.fromInt64LE=P(3,2,1,0,4,0),y.fromString=x,y.fromTimeT=A,d.year=0,d.time=0,d.nano=0,d.addNano=E,d.getNano=k,d.getTimeT=T,d.getYear=v,d.toDate=w,d.toJSON=O,d.toString=R,d.writeInt64BE=B(0,1,2,3,0,4),d.writeInt64LE=B(3,2,1,0,4,0);varp="%Y-%m-%dT%H:%M:%S.%NZ",g=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],b={"%":"%",F:"%Y-%m-%d",n:"\n",R:"%H:%M",T:"%H:%M:%S",t:"\t",X:"%T",Z:"GMT",z:"+0000"};returny;functiony(e,t,r){varn=this;if(!(ninstanceofy))returnnewy(e,t,r);n.time=+e||0,n.nano=+t||0,n.year=+r||0,_(n)}functionv(){vare=this.toDate().getUTCFullYear();returne+this.year}function_(e){vart=e.year,n=e.time,i=e.nano,a,u;if(i<0||c<=i){varf=Math.floor(i/c);i-=f*c,n+=f,a=1}varh=t%r;if(n<-s||s<n||h){u=l(n/o),u&&(t+=u*r,n-=u*o);vard=S(n);d.setUTCFullYear(h+d.getUTCFullYear()),t-=h,n=+d,u=l(t/r);varp=n+u*o;u&&-s<=p&&p<=s&&(t-=u*r,n=p),a=1}returna&&(e.year=t,e.time=n,e.nano=i),e}functionw(){vare=_(this);returnS(e.time)}functionS(e){vart=newDate(0);returnt.setTime(e),t}functionE(e){returnthis.nano+=+e||0,this}functionk(){vare=_(this);return(e.time%1e3*c++e.nano+f)%f}functionx(e){vart,r=newy;e+="";varn=e.replace(/^\s*[+\-]?\d+/,function(e){vart=+e,n=1970+(t-1970)%400;returnr.year=t-n,n}).replace(/(?:Z|([+\-]\d{2}):?(\d{2}))$/,function(e,r,n){returnr<0&&(n*=-1),t=6e4*(60*+r++n),""}).replace(/\.\d+$/,function(e){returnr.nano=+(e+h).substr(1,9),""}).split(/\D+/);if(n.length>1?n[1]--:n[1]=0,r.time=t=Date.UTC.apply(Date,n)-(t||0),isNaN(t))thrownewTypeError("Invalid Date");return_(r)}functionC(e){returnnewy(+e)}functionA(e){returnI(e,0)}functionI(e,t){t|=0,t*=u,e=+e||0;varn=l(t/i)+l(e/i),o=t%i+e%i,s=l(o/i);returns&&(n+=s,o-=s*i),newy(1e3*o,0,n*r)}functionT(){vare=_(this),i=Math.floor(e.time/1e3),o=e.year;returno&&(i+=o*n*t/r),i}functionO(){returnthis.toString().replace(/0{1,6}Z$/,"Z")}functionR(e){vart=this,r=t.toDate(),n={H:c,L:l,M:f,N:d,S:h,Y:o,a:y,b:v,d:a,e:u,m:s};returni(e||p);functioni(e){returne.replace(/%./g,function(e){vart=e[1],r=b[t],o=n[t];returnr?i(r):o?o():e})}functiono(){vare=t.getYear();returne>999999?"+"+e:e>9999?"+"+D(e,6):e>=0?D(e,4):e>=-999999?"-"+D(-e,6):e}functions(){returnj(r.getUTCMonth()+1)}functiona(){returnj(r.getUTCDate())}functionu(){returnL(r.getUTCDate())}functionc(){returnj(r.getUTCHours())}functionf(){returnj(r.getUTCMinutes())}functionh(){returnj(r.getUTCSeconds())}functionl(){returnD(r.getUTCMilliseconds(),3)}functiond(){returnD(t.getNano(),9)}functiony(){returnm[r.getUTCDay()]}functionv(){returng[r.getUTCMonth()]}}functionB(e,i,o,s,a,c){returnf;functionf(e,i){varo=_(this);e||(e=newArray(8)),M(e,i|=0);vars=Math.floor(o.time/1e3),f=o.year*(n*t/r),d=l(f/u)+l(s/u),p=f%u+s%u,g=Math.floor(p/u);returng&&(d+=g,p-=g*u),h(e,i+a,d),h(e,i+c,p),e}functionh(t,r,n){t[r+e]=n>>24&255,t[r+i]=n>>16&255,t[r+o]=n>>8&255,t[r+s]=255&n}}functionP(e,t,r,n,i,o){returns;functions(e,t){M(e,t|=0);varr=u(e,t+i),n=u(e,t+o);returnI(n,r)}functionu(i,o){returni[o+e]*a+(i[o+t]<<16|i[o+r]<<8|i[o+n])}}functionM(e,t){varr=e&&e.length;if(null==r)thrownewTypeError("Invalid Buffer");if(r<t+8)thrownewRangeError("Out of range")}functionN(e){vart=e-e%1;return0===t&&(e<0||0===e&&1/e!=1/0)?-0:t}functionL(e){return(e>9?"":" ")+(0|e)}functionj(e){return(e>9?"":"0")+(0|e)}functionD(e,t){return(h+(0|e)).substr(-t)}}()},function(e,t,r){"use strict";constn=r(60),i='\nmessageIpnsEntry{\nenumValidityType{\n\t\tEOL=0;// setting an EOL says "this record is valid until..."\n\t}\n\n required bytes value = 1;\n\trequired bytes signature = 2;\n\n\toptional ValidityType validityType = 3;\n\toptional bytes validity = 4;\n\n\toptional uint64 sequence = 5;\n\n\toptional uint64 ttl = 6;\n\n\t// in order for nodes to properly validate a record upon receipt, they need the p
functionr(e){returneinstanceoft||einstanceofDate||einstanceofRegExp}functionn(e){if(einstanceoft){varr=t.alloc?t.alloc(e.length):newt(e.length);returne.copy(r),r}if(einstanceofDate)returnnewDate(e.getTime());if(einstanceofRegExp)returnnewRegExp(e);thrownewError("Unexpected situation")}functioni(e){vart=[];returne.forEach(function(e,o){"object"==typeofe&&null!==e?Array.isArray(e)?t[o]=i(e):r(e)?t[o]=n(e):t[o]=s({},e):t[o]=e}),t}functiono(e,t){return"__proto__"===t?void0:e[t]}vars=e.exports=function(){if(arguments.length<1||"object"!=typeofarguments[0])return!1;if(arguments.length<2)returnarguments[0];vare=arguments[0],t=Array.prototype.slice.call(arguments,1),a,u,c;returnt.forEach(function(t){"object"!=typeoft||null===t||Array.isArray(t)||Object.keys(t).forEach(function(c){returnu=o(e,c),a=o(t,c),a===e?void0:"object"!=typeofa||null===a?void(e[c]=a):Array.isArray(a)?void(e[c]=i(a)):r(a)?void(e[c]=n(a)):"object"!=typeofu||null===u||Array.isArray(u)?void(e[c]=s({},a)):void(e[c]=s(u,a))})}),e}}).call(this,r(0).Buffer)},function(e,t){e.exports=function(e){vart=!1,r=0;returnfunction(){if(r=!0,!t){for(t=!0;r;)r=!1,e();t=!1}}}},function(e,t,r){"use strict";constn=r(11),i=r(32),o=r(44),s=r(234),a=i.DAGLink,u=i.DAGNode;e.exports=functione(t,r,i){returnfunction(e,c){if(1===e.length&&e[0].single&&i.reduceSingleLeafToSelf){constr=e[0];returnc(null,{size:r.size,leafSize:r.leafSize,multihash:r.multihash,path:t.path,name:r.name})}constf=newo("file"),h=e.map(e=>(f.addBlockSize(e.leafSize),newa(e.name,e.size,e.multihash)));n([e=>u.create(f.marshal(),h,e),(e,t)=>s(e,r,i,t)],(e,r)=>{if(e)returnc(e);c(null,{size:r.node.size,leafSize:f.fileSize(),multihash:r.cid.buffer,path:t.path,name:""})})}}},function(e,t,r){"use strict";constn=r(12),i=r(80),o=r(31),s=r(63),a=r(229),u=r(310);e.exports=function(e,t){constr=a(),c=r.source,f=s();returnn(c,u(1/0),i(e),o((e,t)=>{e?f.end(e):1===t.length?(f.push(t[0]),f.end()):t.length>1?f.end(newError("expected a maximum of 1 roots and got "+t.length)):f.end()})),{sink:r.sink,source:f}}},function(e,t,r){"use strict";constn=r(1168),i={maxChildrenPerNode:174};e.exports=function(e,t){constr=Object.assign({},i,t);returnn(e,r)}},function(e,t,r){"use strict";constn=r(12),i=r(40),o=r(80),s=r(31),a=r(63),u=r(229),c=r(310);e.exports=functione(t,r){constf=u(),h=f.source,l=a();functiond(e,a){letu=e;functionf(e,t){e?a(e):t.length>1?d(t,a):a(null,t)}Array.isArray(u)&&(u=i(u)),n(u,c(r.maxChildrenPerNode),o(t),s(f))}returnd(h,(e,t)=>{e?l.end(e):1===t.length?(l.push(t[0]),l.end()):t.length>1?l.end(newError("expected a maximum of 1 roots and got "+t.length)):l.end()}),{sink:f.sink,source:l}}},function(e,t,r){"use strict";constn=r(1170),i={maxChildrenPerNode:174,layerRepeat:4};e.exports=function(e,t){constr=Object.assign({},i,t);returnn(e,r)}},function(e,t,r){"use strict";constn=r(12),i=r(80),o=r(31),s=r(63),a=r(310),u=r(229),c=r(175),f=r(233),h=r(524);e.exports=functione(t,r){constl=u(),d=s(),p=h(()=>{});letg=0;returnn(l.source,p,m(0,-1),a(1/0),i(t),o((e,t)=>{e?d.end(e):1===t.length?(d.push(t[0]),d.end()):t.length>1?d.end(newError("expected a maximum of 1 roots and got "+t.length)):d.end()})),{sink:l.sink,source:d};functionm(e,u){leth=0,l=0,d,b=!1;consty=s();return{source:y,sink:f(v,null,1,w)};functionv(r,u){letf=!1;consth=r[0];l&&!d&&(d=s(),n(d,m(e+1,l-1),c(function(e){this.queue(e)},function(e){e?this.emit("error",e):(f||(f=!0,g++,p.pause()),this.queue(null))}),a(1/0),i(t),o((e,t)=>{g--,e?y.end(e):(t.forEach(e=>{y.push(e)}),_())}))),d?d.push(h):(y.push(h),_()),u()}function_(){d=null,h++,(0===l&&h===r.maxChildrenPerNode||l>0&&h===r.layerRepeat)&&(h=0,l++),(!b&&u>=0&&l>u||b&&!g)&&(b=!0,y.end()),g||p.resume()}functionw(e){e?y.end(e):d?b||(b=!0,d.end()):y.end()}}}},function(e,t,r){"use strict";(function(t){constn=r(134),i=r(267),o=r(11),s=r(200),a=r(233),u=r(63),c=r(1172),f=r(1173),h=r(311),l=r(1179);e.exports=p;constd={wrap:!1,shardSplitThreshold:1e3,onlyHash:!1};functionp(e,r){constp=Object.assign({},d,r),g=s(y,1);letm=_(),b=c({path:"",root:!