web-dc-api 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/cjs/babel-tools-BoLJtxtW.js +1 -0
  2. package/dist/cjs/cache-CRG9ugF3.js +1 -0
  3. package/dist/cjs/helia-core-B1Xqha7a.js +1 -0
  4. package/dist/cjs/helia-core-D8Uv1KjQ.js +1 -0
  5. package/dist/cjs/{index-B9UlHr3P.js → index-DtuGISOe.js} +1 -1
  6. package/dist/cjs/index.js +1 -1
  7. package/dist/cjs/{jwt-CcLVpKo_.js → jwt-DW2WimlW.js} +1 -1
  8. package/dist/cjs/polkadot-api-7PhQf3ws.js +1 -0
  9. package/dist/cjs/polkadot-api-CtrJVWuZ.js +1 -0
  10. package/dist/cjs/protobuf-BYUoud7y.js +1 -0
  11. package/dist/cjs/{validation-DfsHeOHP.js → validation-DPN2BqQd.js} +1 -1
  12. package/dist/dc.min.js +1 -1
  13. package/dist/esm/chunks/babel-tools-sSecqeD4.js +1 -0
  14. package/dist/esm/chunks/cache-C0pUsIbC.js +1 -0
  15. package/dist/esm/chunks/helia-core-BxMqyK2Y.js +1 -0
  16. package/dist/esm/chunks/helia-core-DMXRpcO-.js +1 -0
  17. package/dist/esm/chunks/{index-BUlGxni-.js → index-CsnoYfJo.js} +1 -1
  18. package/dist/esm/chunks/{jwt-DLILrtNW.js → jwt-DfD7pIy4.js} +1 -1
  19. package/dist/esm/chunks/polkadot-api-5Y9Bw8VT.js +1 -0
  20. package/dist/esm/chunks/polkadot-api-D69Ioun_.js +1 -0
  21. package/dist/esm/chunks/protobuf-25futi__.js +1 -0
  22. package/dist/esm/chunks/{validation-D9YLFwug.js → validation-C90ZcLFM.js} +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +3 -2
  25. package/lib/common/define.ts +1 -1
  26. package/lib/implements/threaddb/common/logstore.ts +1 -1
  27. package/lib/implements/threaddb/core/logstore.ts +2 -2
  28. package/lib/implements/threaddb/dbclient.ts +34 -11
  29. package/lib/implements/threaddb/lsstoreds/addr_book.ts +134 -48
  30. package/lib/implements/threaddb/lsstoreds/headbook.ts +48 -24
  31. package/lib/implements/threaddb/net/net.ts +18 -3
  32. package/lib/implements/wallet/manager.ts +4 -2
  33. package/lib/interfaces/components/news-component.ts +0 -0
  34. package/lib/modules/auth-module.ts +2 -2
  35. package/lib/modules/components/news-components.ts +390 -0
  36. package/package.json +1 -1
  37. package/dist/cjs/babel-tools-BWeUL20Q.js +0 -1
  38. package/dist/cjs/cache-DB5vOYUa.js +0 -1
  39. package/dist/cjs/helia-core-CGrygIE7.js +0 -1
  40. package/dist/cjs/polkadot-api-9SXYLDre.js +0 -1
  41. package/dist/cjs/protobuf-89JdugaK.js +0 -1
  42. package/dist/esm/chunks/babel-tools-CmeA0jUH.js +0 -1
  43. package/dist/esm/chunks/cache-NFMLvSTk.js +0 -1
  44. package/dist/esm/chunks/helia-core-BkEzHB9G.js +0 -1
  45. package/dist/esm/chunks/polkadot-api-BIp1_8eq.js +0 -1
  46. package/dist/esm/chunks/protobuf-De5gI78A.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";var babelTools=require("./babel-tools-BWeUL20Q.js"),src={exports:{}},indexLight={exports:{}},indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=1,aspromise=function(t,e){var r=new Array(arguments.length-1),o=0,i=2,n=!0;for(;i<arguments.length;)r[o++]=arguments[i++];return new Promise((function(i,s){r[o]=function(t){if(n)if(n=!1,t)s(t);else{for(var e=new Array(arguments.length-1),r=0;r<e.length;)e[r++]=arguments[r];i.apply(null,e)}};try{t.apply(e||null,r)}catch(t){n&&(n=!1,s(t))}}))},aspromise}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,function(t){var e=t;e.length=function(t){var e=t.length;if(!e)return 0;for(var r=0;--e%4>1&&"="===t.charAt(e);)++r;return Math.ceil(3*t.length)/4-r};for(var r=new Array(64),o=new Array(123),i=0;i<64;)o[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;e.encode=function(t,e,o){for(var i,n=null,s=[],a=0,p=0;e<o;){var u=t[e++];switch(p){case 0:s[a++]=r[u>>2],i=(3&u)<<4,p=1;break;case 1:s[a++]=r[i|u>>4],i=(15&u)<<2,p=2;break;case 2:s[a++]=r[i|u>>6],s[a++]=r[63&u],p=0}a>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,s)),a=0)}return p&&(s[a++]=r[i],s[a++]=61,1===p&&(s[a++]=61)),n?(a&&n.push(String.fromCharCode.apply(String,s.slice(0,a))),n.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var n="invalid encoding";e.decode=function(t,e,r){for(var i,s=r,a=0,p=0;p<t.length;){var u=t.charCodeAt(p++);if(61===u&&a>1)break;if(void 0===(u=o[u]))throw Error(n);switch(a){case 0:i=u,a=1;break;case 1:e[r++]=i<<2|(48&u)>>4,i=u,a=2;break;case 2:e[r++]=(15&i)<<4|(60&u)>>2,i=u,a=3;break;case 3:e[r++]=(3&i)<<6|u,a=0}}if(1===a)throw Error(n);return r-s},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(base64)),base64}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function t(){this._listeners={}}return hasRequiredEventemitter=1,eventemitter=t,t.prototype.on=function(t,e,r){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:r||this}),this},t.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var r=this._listeners[t],o=0;o<r.length;)r[o].fn===e?r.splice(o,1):++o;return this},t.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var r=[],o=1;o<arguments.length;)r.push(arguments[o++]);for(o=0;o<e.length;)e[o].fn.apply(e[o++].ctx,r)}return this},eventemitter}function requireFloat(){if(hasRequiredFloat)return float;function t(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),o=128===r[3];function i(t,o,i){e[0]=t,o[i]=r[0],o[i+1]=r[1],o[i+2]=r[2],o[i+3]=r[3]}function n(t,o,i){e[0]=t,o[i]=r[3],o[i+1]=r[2],o[i+2]=r[1],o[i+3]=r[0]}function s(t,o){return r[0]=t[o],r[1]=t[o+1],r[2]=t[o+2],r[3]=t[o+3],e[0]}function a(t,o){return r[3]=t[o],r[2]=t[o+1],r[1]=t[o+2],r[0]=t[o+3],e[0]}t.writeFloatLE=o?i:n,t.writeFloatBE=o?n:i,t.readFloatLE=o?s:a,t.readFloatBE=o?a:s}():function(){function n(t,e,r,o){var i=e<0?1:0;if(i&&(e=-e),0===e)t(1/e>0?0:2147483648,r,o);else if(isNaN(e))t(2143289344,r,o);else if(e>34028234663852886e22)t((i<<31|2139095040)>>>0,r,o);else if(e<11754943508222875e-54)t((i<<31|Math.round(e/1401298464324817e-60))>>>0,r,o);else{var n=Math.floor(Math.log(e)/Math.LN2);t((i<<31|n+127<<23|8388607&Math.round(e*Math.pow(2,-n)*8388608))>>>0,r,o)}}function s(t,e,r){var o=t(e,r),i=2*(o>>31)+1,n=o>>>23&255,s=8388607&o;return 255===n?s?NaN:i*(1/0):0===n?1401298464324817e-60*i*s:i*Math.pow(2,n-150)*(s+8388608)}t.writeFloatLE=n.bind(null,e),t.writeFloatBE=n.bind(null,r),t.readFloatLE=s.bind(null,o),t.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),o=128===r[7];function i(t,o,i){e[0]=t,o[i]=r[0],o[i+1]=r[1],o[i+2]=r[2],o[i+3]=r[3],o[i+4]=r[4],o[i+5]=r[5],o[i+6]=r[6],o[i+7]=r[7]}function n(t,o,i){e[0]=t,o[i]=r[7],o[i+1]=r[6],o[i+2]=r[5],o[i+3]=r[4],o[i+4]=r[3],o[i+5]=r[2],o[i+6]=r[1],o[i+7]=r[0]}function s(t,o){return r[0]=t[o],r[1]=t[o+1],r[2]=t[o+2],r[3]=t[o+3],r[4]=t[o+4],r[5]=t[o+5],r[6]=t[o+6],r[7]=t[o+7],e[0]}function a(t,o){return r[7]=t[o],r[6]=t[o+1],r[5]=t[o+2],r[4]=t[o+3],r[3]=t[o+4],r[2]=t[o+5],r[1]=t[o+6],r[0]=t[o+7],e[0]}t.writeDoubleLE=o?i:n,t.writeDoubleBE=o?n:i,t.readDoubleLE=o?s:a,t.readDoubleBE=o?a:s}():function(){function n(t,e,r,o,i,n){var s=o<0?1:0;if(s&&(o=-o),0===o)t(0,i,n+e),t(1/o>0?0:2147483648,i,n+r);else if(isNaN(o))t(0,i,n+e),t(2146959360,i,n+r);else if(o>17976931348623157e292)t(0,i,n+e),t((s<<31|2146435072)>>>0,i,n+r);else{var a;if(o<22250738585072014e-324)t((a=o/5e-324)>>>0,i,n+e),t((s<<31|a/4294967296)>>>0,i,n+r);else{var p=Math.floor(Math.log(o)/Math.LN2);1024===p&&(p=1023),t(4503599627370496*(a=o*Math.pow(2,-p))>>>0,i,n+e),t((s<<31|p+1023<<20|1048576*a&1048575)>>>0,i,n+r)}}}function s(t,e,r,o,i){var n=t(o,i+e),s=t(o,i+r),a=2*(s>>31)+1,p=s>>>20&2047,u=4294967296*(1048575&s)+n;return 2047===p?u?NaN:a*(1/0):0===p?5e-324*a*u:a*Math.pow(2,p-1075)*(u+4503599627370496)}t.writeDoubleLE=n.bind(null,e,0,4),t.writeDoubleBE=n.bind(null,r,4,0),t.readDoubleLE=s.bind(null,o,0,4),t.readDoubleBE=s.bind(null,i,4,0)}(),t}function e(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function r(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function i(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}return hasRequiredFloat=1,float=t(t)}function requireInquire(){if(hasRequiredInquire)return inquire_1;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}return hasRequiredInquire=1,inquire_1=inquire,inquire_1}var utf8={},hasRequiredUtf8,pool_1,hasRequiredPool,longbits,hasRequiredLongbits,hasRequiredMinimal$1,writer,hasRequiredWriter,writer_buffer,hasRequiredWriter_buffer,reader,hasRequiredReader,reader_buffer,hasRequiredReader_buffer;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(t){var e=t;e.length=function(t){for(var e=0,r=0,o=0;o<t.length;++o)(r=t.charCodeAt(o))<128?e+=1:r<2048?e+=2:55296==(64512&r)&&56320==(64512&t.charCodeAt(o+1))?(++o,e+=4):e+=3;return e},e.read=function(t,e,r){if(r-e<1)return"";for(var o,i=null,n=[],s=0;e<r;)(o=t[e++])<128?n[s++]=o:o>191&&o<224?n[s++]=(31&o)<<6|63&t[e++]:o>239&&o<365?(o=((7&o)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,n[s++]=55296+(o>>10),n[s++]=56320+(1023&o)):n[s++]=(15&o)<<12|(63&t[e++])<<6|63&t[e++],s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,n)),s=0);return i?(s&&i.push(String.fromCharCode.apply(String,n.slice(0,s))),i.join("")):String.fromCharCode.apply(String,n.slice(0,s))},e.write=function(t,e,r){for(var o,i,n=r,s=0;s<t.length;++s)(o=t.charCodeAt(s))<128?e[r++]=o:o<2048?(e[r++]=o>>6|192,e[r++]=63&o|128):55296==(64512&o)&&56320==(64512&(i=t.charCodeAt(s+1)))?(o=65536+((1023&o)<<10)+(1023&i),++s,e[r++]=o>>18|240,e[r++]=o>>12&63|128,e[r++]=o>>6&63|128,e[r++]=63&o|128):(e[r++]=o>>12|224,e[r++]=o>>6&63|128,e[r++]=63&o|128);return r-n}}(utf8)),utf8}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=1,pool_1=function(t,e,r){var o=r||8192,i=o>>>1,n=null,s=o;return function(r){if(r<1||r>i)return t(r);s+r>o&&(n=t(o),s=0);var a=e.call(n,s,s+=r);return 7&s&&(s=1+(7|s)),a}}}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=e;var t=requireMinimal$1();function e(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=e.zero=new e(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var o=e.zeroHash="\0\0\0\0\0\0\0\0";e.fromNumber=function(t){if(0===t)return r;var o=t<0;o&&(t=-t);var i=t>>>0,n=(t-i)/4294967296>>>0;return o&&(n=~n>>>0,i=~i>>>0,++i>4294967295&&(i=0,++n>4294967295&&(n=0))),new e(i,n)},e.from=function(o){if("number"==typeof o)return e.fromNumber(o);if(t.isString(o)){if(!t.Long)return e.fromNumber(parseInt(o,10));o=t.Long.fromString(o)}return o.low||o.high?new e(o.low>>>0,o.high>>>0):r},e.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,r=~this.hi>>>0;return e||(r=r+1>>>0),-(e+4294967296*r)}return this.lo+4294967296*this.hi},e.prototype.toLong=function(e){return t.Long?new t.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var i=String.prototype.charCodeAt;return e.fromHash=function(t){return t===o?r:new e((i.call(t,0)|i.call(t,1)<<8|i.call(t,2)<<16|i.call(t,3)<<24)>>>0,(i.call(t,4)|i.call(t,5)<<8|i.call(t,6)<<16|i.call(t,7)<<24)>>>0)},e.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},e.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},e.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},e.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:r<128?9:10},longbits}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(){var t=minimal$1;function e(t,e,r){for(var o=Object.keys(e),i=0;i<o.length;++i)void 0!==t[o[i]]&&r||(t[o[i]]=e[o[i]]);return t}function r(t){function r(t,o){if(!(this instanceof r))return new r(t,o);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),o&&e(this,o)}return r.prototype=Object.create(Error.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),r}t.asPromise=requireAspromise(),t.base64=requireBase64(),t.EventEmitter=requireEventemitter(),t.float=requireFloat(),t.inquire=requireInquire(),t.utf8=requireUtf8(),t.pool=requirePool(),t.LongBits=requireLongbits(),t.isNode=Boolean(void 0!==babelTools.commonjsGlobal&&babelTools.commonjsGlobal&&babelTools.commonjsGlobal.process&&babelTools.commonjsGlobal.process.versions&&babelTools.commonjsGlobal.process.versions.node),t.global=t.isNode&&babelTools.commonjsGlobal||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||minimal$1,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},t.isString=function(t){return"string"==typeof t||t instanceof String},t.isObject=function(t){return t&&"object"==typeof t},t.isset=t.isSet=function(t,e){var r=t[e];return!(null==r||!t.hasOwnProperty(e))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},t.Buffer=function(){try{var e=t.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(t){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},t.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire("long"),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,r){var o=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(o.lo,o.hi,r):o.toNumber(Boolean(r))},t.merge=e,t.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},t.newError=r,t.ProtocolError=r("ProtocolError"),t.oneOfGetter=function(t){for(var e={},r=0;r<t.length;++r)e[t[r]]=1;return function(){for(var t=Object.keys(this),r=t.length-1;r>-1;--r)if(1===e[t[r]]&&void 0!==this[t[r]]&&null!==this[t[r]])return t[r]}},t.oneOfSetter=function(t){return function(e){for(var r=0;r<t.length;++r)t[r]!==e&&delete this[t[r]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},t._configure=function(){var e=t.Buffer;e?(t._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},t._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):t._Buffer_from=t._Buffer_allocUnsafe=null}}()),minimal$1}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=p;var t,e=requireMinimal$1(),r=e.LongBits,o=e.base64,i=e.utf8;function n(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function s(){}function a(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function p(){this.len=0,this.head=new n(s,0,0),this.tail=this.head,this.states=null}var u=function(){return e.Buffer?function(){return(p.create=function(){return new t})()}:function(){return new p}};function f(t,e,r){e[r]=255&t}function h(t,e){this.len=t,this.next=void 0,this.val=e}function l(t,e,r){for(;t.hi;)e[r++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[r++]=127&t.lo|128,t.lo=t.lo>>>7;e[r++]=t.lo}function c(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}p.create=u(),p.alloc=function(t){return new e.Array(t)},e.Array!==Array&&(p.alloc=e.pool(p.alloc,e.Array.prototype.subarray)),p.prototype._push=function(t,e,r){return this.tail=this.tail.next=new n(t,e,r),this.len+=e,this},h.prototype=Object.create(n.prototype),h.prototype.fn=function(t,e,r){for(;t>127;)e[r++]=127&t|128,t>>>=7;e[r]=t},p.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new h((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},p.prototype.int32=function(t){return t<0?this._push(l,10,r.fromNumber(t)):this.uint32(t)},p.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},p.prototype.uint64=function(t){var e=r.from(t);return this._push(l,e.length(),e)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(t){var e=r.from(t).zzEncode();return this._push(l,e.length(),e)},p.prototype.bool=function(t){return this._push(f,1,t?1:0)},p.prototype.fixed32=function(t){return this._push(c,4,t>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(t){var e=r.from(t);return this._push(c,4,e.lo)._push(c,4,e.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(t){return this._push(e.float.writeFloatLE,4,t)},p.prototype.double=function(t){return this._push(e.float.writeDoubleLE,8,t)};var d=e.Array.prototype.set?function(t,e,r){e.set(t,r)}:function(t,e,r){for(var o=0;o<t.length;++o)e[r+o]=t[o]};return p.prototype.bytes=function(t){var r=t.length>>>0;if(!r)return this._push(f,1,0);if(e.isString(t)){var i=p.alloc(r=o.length(t));o.decode(t,i,0),t=i}return this.uint32(r)._push(d,r,t)},p.prototype.string=function(t){var e=i.length(t);return e?this.uint32(e)._push(i.write,e,t):this._push(f,1,0)},p.prototype.fork=function(){return this.states=new a(this),this.head=this.tail=new n(s,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new n(s,0,0),this.len=0),this},p.prototype.ldelim=function(){var t=this.head,e=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=t.next,this.tail=e,this.len+=r),this},p.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),r=0;t;)t.fn(t.val,e,r),r+=t.len,t=t.next;return e},p._configure=function(e){t=e,p.create=u(),t._configure()},writer}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=r;var t=requireWriter();(r.prototype=Object.create(t.prototype)).constructor=r;var e=requireMinimal$1();function r(){t.call(this)}function o(t,r,o){t.length<40?e.utf8.write(t,r,o):r.utf8Write?r.utf8Write(t,o):r.write(t,o)}return r._configure=function(){r.alloc=e._Buffer_allocUnsafe,r.writeBytesBuffer=e.Buffer&&e.Buffer.prototype instanceof Uint8Array&&"set"===e.Buffer.prototype.set.name?function(t,e,r){e.set(t,r)}:function(t,e,r){if(t.copy)t.copy(e,r,0,t.length);else for(var o=0;o<t.length;)e[r++]=t[o++]}},r.prototype.bytes=function(t){e.isString(t)&&(t=e._Buffer_from(t,"base64"));var o=t.length>>>0;return this.uint32(o),o&&this._push(r.writeBytesBuffer,o,t),this},r.prototype.string=function(t){var r=e.Buffer.byteLength(t);return this.uint32(r),r&&this._push(o,r,t),this},r._configure(),writer_buffer}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=n;var t,e=requireMinimal$1(),r=e.LongBits,o=e.utf8;function i(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function n(t){this.buf=t,this.pos=0,this.len=t.length}var s,a="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new n(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new n(t);throw Error("illegal buffer")},p=function(){return e.Buffer?function(r){return(n.create=function(r){return e.Buffer.isBuffer(r)?new t(r):a(r)})(r)}:a};function u(){var t=new r(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw i(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw i(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function f(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw i(this,8);return new r(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}return n.create=p(),n.prototype._slice=e.Array.prototype.subarray||e.Array.prototype.slice,n.prototype.uint32=(s=4294967295,function(){if(s=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return s;if(s=(s|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return s;if(s=(s|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return s;if(s=(s|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return s;if(s=(s|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return s;if((this.pos+=5)>this.len)throw this.pos=this.len,i(this,10);return s}),n.prototype.int32=function(){return 0|this.uint32()},n.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},n.prototype.bool=function(){return 0!==this.uint32()},n.prototype.fixed32=function(){if(this.pos+4>this.len)throw i(this,4);return f(this.buf,this.pos+=4)},n.prototype.sfixed32=function(){if(this.pos+4>this.len)throw i(this,4);return 0|f(this.buf,this.pos+=4)},n.prototype.float=function(){if(this.pos+4>this.len)throw i(this,4);var t=e.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},n.prototype.double=function(){if(this.pos+8>this.len)throw i(this,4);var t=e.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},n.prototype.bytes=function(){var t=this.uint32(),r=this.pos,o=this.pos+t;if(o>this.len)throw i(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,o);if(r===o){var n=e.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,o)},n.prototype.string=function(){var t=this.bytes();return o.read(t,0,t.length)},n.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw i(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw i(this)}while(128&this.buf[this.pos++]);return this},n.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},n._configure=function(r){t=r,n.create=p(),t._configure();var o=e.Long?"toLong":"toNumber";e.merge(n.prototype,{int64:function(){return u.call(this)[o](!1)},uint64:function(){return u.call(this)[o](!0)},sint64:function(){return u.call(this).zzDecode()[o](!1)},fixed64:function(){return h.call(this)[o](!0)},sfixed64:function(){return h.call(this)[o](!1)}})},reader}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=r;var t=requireReader();(r.prototype=Object.create(t.prototype)).constructor=r;var e=requireMinimal$1();function r(e){t.call(this,e)}return r._configure=function(){e.Buffer&&(r.prototype._slice=e.Buffer.prototype.slice)},r.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},r._configure(),reader_buffer}var rpc={},service$1,hasRequiredService$1,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal;function requireService$1(){if(hasRequiredService$1)return service$1;hasRequiredService$1=1,service$1=e;var t=requireMinimal$1();function e(e,r,o){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");t.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(r),this.responseDelimited=Boolean(o)}return(e.prototype=Object.create(t.EventEmitter.prototype)).constructor=e,e.prototype.rpcCall=function e(r,o,i,n,s){if(!n)throw TypeError("request must be specified");var a=this;if(!s)return t.asPromise(e,a,r,o,i,n);if(a.rpcImpl)try{return a.rpcImpl(r,o[a.requestDelimited?"encodeDelimited":"encode"](n).finish(),(function(t,e){if(t)return a.emit("error",t,r),s(t);if(null!==e){if(!(e instanceof i))try{e=i[a.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return a.emit("error",t,r),s(t)}return a.emit("data",e,r),s(null,e)}a.end(!0)}))}catch(t){return a.emit("error",t,r),void setTimeout((function(){s(t)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},e.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service$1}function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,function(t){t.Service=requireService$1()}(rpc)),rpc}function requireRoots(){return hasRequiredRoots?roots:(hasRequiredRoots=1,roots={})}function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,function(){var t=indexMinimal;function e(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=requireWriter(),t.BufferWriter=requireWriter_buffer(),t.Reader=requireReader(),t.BufferReader=requireReader_buffer(),t.util=requireMinimal$1(),t.rpc=requireRpc(),t.roots=requireRoots(),t.configure=e,e()}()),indexMinimal}var types={},util={exports:{}},codegen_1,hasRequiredCodegen,fetch_1,hasRequiredFetch;function requireCodegen(){if(hasRequiredCodegen)return codegen_1;function t(e,r){"string"==typeof e&&(r=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var r=n();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=new Array(s.length+1),p=new Array(s.length),u=0;u<s.length;)a[u]=s[u],p[u]=e[s[u++]];return a[u]=r,Function.apply(null,a).apply(null,p)}return Function(r)()}for(var f=new Array(arguments.length-1),h=0;h<f.length;)f[h]=arguments[++h];if(h=0,e=e.replace(/%([%dfijs])/g,(function(t,e){var r=f[h++];switch(e){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"})),h!==f.length)throw Error("parameter count mismatch");return o.push(e),i}function n(t){return"function "+(t||r||"")+"("+(e&&e.join(",")||"")+"){\n "+o.join("\n ")+"\n}"}return i.toString=n,i}return hasRequiredCodegen=1,codegen_1=t,t.verbose=!1,codegen_1}function requireFetch(){if(hasRequiredFetch)return fetch_1;hasRequiredFetch=1,fetch_1=r;var t=requireAspromise(),e=requireInquire()("fs");function r(o,i,n){return"function"==typeof i?(n=i,i={}):i||(i={}),n?!i.xhr&&e&&e.readFile?e.readFile(o,(function(t,e){return t&&"undefined"!=typeof XMLHttpRequest?r.xhr(o,i,n):t?n(t):n(null,i.binary?e:e.toString("utf8"))})):r.xhr(o,i,n):t(r,this,o,i)}return r.xhr=function(t,e,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===o.readyState){if(0!==o.status&&200!==o.status)return r(Error("status "+o.status));if(e.binary){var t=o.response;if(!t){t=[];for(var i=0;i<o.responseText.length;++i)t.push(255&o.responseText.charCodeAt(i))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(t):t)}return r(null,o.responseText)}},e.binary&&("overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.responseType="arraybuffer"),o.open("GET",t),o.send()},fetch_1}var path={},hasRequiredPath,namespace,hasRequiredNamespace,mapfield,hasRequiredMapfield,method,hasRequiredMethod,service,hasRequiredService,message,hasRequiredMessage,decoder_1,hasRequiredDecoder,verifier_1,hasRequiredVerifier;function requirePath(){return hasRequiredPath||(hasRequiredPath=1,function(t){var e=t,r=e.isAbsolute=function(t){return/^(?:\/|\w+:)/.test(t)},o=e.normalize=function(t){var e=(t=t.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),o=r(t),i="";o&&(i=e.shift()+"/");for(var n=0;n<e.length;)".."===e[n]?n>0&&".."!==e[n-1]?e.splice(--n,2):o?e.splice(n,1):++n:"."===e[n]?e.splice(n,1):++n;return i+e.join("/")};e.resolve=function(t,e,i){return i||(e=o(e)),r(e)?e:(i||(t=o(t)),(t=t.replace(/(?:\/|^)[^/]+$/,"")).length?o(t+"/"+e):e)}}(path)),path}function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=p;var t=requireObject();((p.prototype=Object.create(t.prototype)).constructor=p).className="Namespace";var e,r,o,i=requireField(),n=requireUtil(),s=requireOneof();function a(t,e){if(t&&t.length){for(var r={},o=0;o<t.length;++o)r[t[o].name]=t[o].toJSON(e);return r}}function p(e,r){t.call(this,e,r),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function u(t){t._nestedArray=null,t._lookupCache={};for(var e=t;e=e.parent;)e._lookupCache={};return t}return p.fromJSON=function(t,e){return new p(t,e.options).addJSON(e.nested)},p.arrayToJSON=a,p.isReservedId=function(t,e){if(t)for(var r=0;r<t.length;++r)if("string"!=typeof t[r]&&t[r][0]<=e&&t[r][1]>e)return!0;return!1},p.isReservedName=function(t,e){if(t)for(var r=0;r<t.length;++r)if(t[r]===e)return!0;return!1},Object.defineProperty(p.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=n.toArray(this.nested))}}),p.prototype.toJSON=function(t){return n.toObject(["options",this.options,"nested",a(this.nestedArray,t)])},p.prototype.addJSON=function(t){if(t)for(var n,s=Object.keys(t),a=0;a<s.length;++a)n=t[s[a]],this.add((void 0!==n.fields?e.fromJSON:void 0!==n.values?o.fromJSON:void 0!==n.methods?r.fromJSON:void 0!==n.id?i.fromJSON:p.fromJSON)(s[a],n));return this},p.prototype.get=function(t){return this.nested&&this.nested[t]||null},p.prototype.getEnum=function(t){if(this.nested&&this.nested[t]instanceof o)return this.nested[t].values;throw Error("no such enum: "+t)},p.prototype.add=function(t){if(!(t instanceof i&&void 0!==t.extend||t instanceof e||t instanceof s||t instanceof o||t instanceof r||t instanceof p))throw TypeError("object must be a valid nested object");if(this.nested){var n=this.get(t.name);if(n){if(!(n instanceof p&&t instanceof p)||n instanceof e||n instanceof r)throw Error("duplicate name '"+t.name+"' in "+this);for(var a=n.nestedArray,f=0;f<a.length;++f)t.add(a[f]);this.remove(n),this.nested||(this.nested={}),t.setOptions(n.options,!0)}}else this.nested={};this.nested[t.name]=t,this instanceof e||this instanceof r||this instanceof o||this instanceof i||t._edition||(t._edition=t._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var h=this;h=h.parent;)h._needsRecursiveFeatureResolution=!0,h._needsRecursiveResolve=!0;return t.onAdd(this),u(this)},p.prototype.remove=function(e){if(!(e instanceof t))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),u(this)},p.prototype.define=function(t,e){if(n.isString(t))t=t.split(".");else if(!Array.isArray(t))throw TypeError("illegal path");if(t&&t.length&&""===t[0])throw Error("path must be relative");for(var r=this;t.length>0;){var o=t.shift();if(r.nested&&r.nested[o]){if(!((r=r.nested[o])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(o))}return e&&r.addJSON(e),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var t=this.nestedArray,e=0;for(this.resolve();e<t.length;)t[e]instanceof p?t[e++].resolveAll():t[e++].resolve();return this._needsRecursiveResolve=!1,this},p.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,t.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach((t=>{t._resolveFeaturesRecursive(e)})),this):this},p.prototype.lookup=function(t,e,r){if("boolean"==typeof e?(r=e,e=void 0):e&&!Array.isArray(e)&&(e=[e]),n.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;var o=t.join(".");if(""===t[0])return this.root.lookup(t.slice(1),e);var i=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+o];if(i&&(!e||e.indexOf(i.constructor)>-1))return i;if((i=this._lookupImpl(t,o))&&(!e||e.indexOf(i.constructor)>-1))return i;if(r)return null;for(var s=this;s.parent;){if((i=s.parent._lookupImpl(t,o))&&(!e||e.indexOf(i.constructor)>-1))return i;s=s.parent}return null},p.prototype._lookupImpl=function(t,e){if(Object.prototype.hasOwnProperty.call(this._lookupCache,e))return this._lookupCache[e];var r=this.get(t[0]),o=null;if(r)1===t.length?o=r:r instanceof p&&(t=t.slice(1),o=r._lookupImpl(t,t.join(".")));else for(var i=0;i<this.nestedArray.length;++i)this._nestedArray[i]instanceof p&&(r=this._nestedArray[i]._lookupImpl(t,e))&&(o=r);return this._lookupCache[e]=o,o},p.prototype.lookupType=function(t){var r=this.lookup(t,[e]);if(!r)throw Error("no such type: "+t);return r},p.prototype.lookupEnum=function(t){var e=this.lookup(t,[o]);if(!e)throw Error("no such Enum '"+t+"' in "+this);return e},p.prototype.lookupTypeOrEnum=function(t){var r=this.lookup(t,[e,o]);if(!r)throw Error("no such Type or Enum '"+t+"' in "+this);return r},p.prototype.lookupService=function(t){var e=this.lookup(t,[r]);if(!e)throw Error("no such Service '"+t+"' in "+this);return e},p._configure=function(t,i,n){e=t,r=i,o=n},namespace}function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=o;var t=requireField();((o.prototype=Object.create(t.prototype)).constructor=o).className="MapField";var e=requireTypes(),r=requireUtil();function o(e,o,i,n,s,a){if(t.call(this,e,o,n,void 0,void 0,s,a),!r.isString(i))throw TypeError("keyType must be a string");this.keyType=i,this.resolvedKeyType=null,this.map=!0}return o.fromJSON=function(t,e){return new o(t,e.id,e.keyType,e.type,e.options,e.comment)},o.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return r.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:void 0])},o.prototype.resolve=function(){if(this.resolved)return this;if(void 0===e.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return t.prototype.resolve.call(this)},o.d=function(t,e,i){return"function"==typeof i?i=r.decorateType(i).name:i&&"object"==typeof i&&(i=r.decorateEnum(i).name),function(n,s){r.decorateType(n.constructor).add(new o(s,t,e,i))}},mapfield}function requireMethod(){if(hasRequiredMethod)return method;hasRequiredMethod=1,method=r;var t=requireObject();((r.prototype=Object.create(t.prototype)).constructor=r).className="Method";var e=requireUtil();function r(r,o,i,n,s,a,p,u,f){if(e.isObject(s)?(p=s,s=a=void 0):e.isObject(a)&&(p=a,a=void 0),void 0!==o&&!e.isString(o))throw TypeError("type must be a string");if(!e.isString(i))throw TypeError("requestType must be a string");if(!e.isString(n))throw TypeError("responseType must be a string");t.call(this,r,p),this.type=o||"rpc",this.requestType=i,this.requestStream=!!s||void 0,this.responseType=n,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u,this.parsedOptions=f}return r.fromJSON=function(t,e){return new r(t,e.type,e.requestType,e.responseType,e.requestStream,e.responseStream,e.options,e.comment,e.parsedOptions)},r.prototype.toJSON=function(t){var r=!!t&&Boolean(t.keepComments);return e.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",r?this.comment:void 0,"parsedOptions",this.parsedOptions])},r.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),t.prototype.resolve.call(this))},method}function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=i;var t=requireNamespace();((i.prototype=Object.create(t.prototype)).constructor=i).className="Service";var e=requireMethod(),r=requireUtil(),o=requireRpc();function i(e,r){t.call(this,e,r),this.methods={},this._methodsArray=null}function n(t){return t._methodsArray=null,t}return i.fromJSON=function(t,r){var o=new i(t,r.options);if(r.methods)for(var n=Object.keys(r.methods),s=0;s<n.length;++s)o.add(e.fromJSON(n[s],r.methods[n[s]]));return r.nested&&o.addJSON(r.nested),r.edition&&(o._edition=r.edition),o.comment=r.comment,o._defaultEdition="proto3",o},i.prototype.toJSON=function(e){var o=t.prototype.toJSON.call(this,e),i=!!e&&Boolean(e.keepComments);return r.toObject(["edition",this._editionToJSON(),"options",o&&o.options||void 0,"methods",t.arrayToJSON(this.methodsArray,e)||{},"nested",o&&o.nested||void 0,"comment",i?this.comment:void 0])},Object.defineProperty(i.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=r.toArray(this.methods))}}),i.prototype.get=function(e){return this.methods[e]||t.prototype.get.call(this,e)},i.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;t.prototype.resolve.call(this);for(var e=this.methodsArray,r=0;r<e.length;++r)e[r].resolve();return this},i.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(e=this._edition||e,t.prototype._resolveFeaturesRecursive.call(this,e),this.methodsArray.forEach((t=>{t._resolveFeaturesRecursive(e)})),this):this},i.prototype.add=function(r){if(this.get(r.name))throw Error("duplicate name '"+r.name+"' in "+this);return r instanceof e?(this.methods[r.name]=r,r.parent=this,n(this)):t.prototype.add.call(this,r)},i.prototype.remove=function(r){if(r instanceof e){if(this.methods[r.name]!==r)throw Error(r+" is not a member of "+this);return delete this.methods[r.name],r.parent=null,n(this)}return t.prototype.remove.call(this,r)},i.prototype.create=function(t,e,i){for(var n,s=new o.Service(t,e,i),a=0;a<this.methodsArray.length;++a){var p=r.lcFirst((n=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"");s[p]=r.codegen(["r","c"],r.isReserved(p)?p+"_":p)("return this.rpcCall(m,q,s,r,c)")({m:n,q:n.resolvedRequestType.ctor,s:n.resolvedResponseType.ctor})}return s},service}function requireMessage(){if(hasRequiredMessage)return message;hasRequiredMessage=1,message=e;var t=requireMinimal$1();function e(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)this[e[r]]=t[e[r]]}return e.create=function(t){return this.$type.create(t)},e.encode=function(t,e){return this.$type.encode(t,e)},e.encodeDelimited=function(t,e){return this.$type.encodeDelimited(t,e)},e.decode=function(t){return this.$type.decode(t)},e.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},e.verify=function(t){return this.$type.verify(t)},e.fromObject=function(t){return this.$type.fromObject(t)},e.toObject=function(t,e){return this.$type.toObject(t,e)},e.prototype.toJSON=function(){return this.$type.toObject(this,t.toJSONOptions)},message}function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=function(i){for(var n=r.codegen(["r","l","e"],i.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(i.fieldsArray.filter((function(t){return t.map})).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),s=0;s<i.fieldsArray.length;++s){var a=i._fieldsArray[s].resolve(),p=a.resolvedType instanceof t?"int32":a.type,u="m"+r.safeProp(a.name);n("case %i: {",a.id),a.map?(n("if(%s===util.emptyObject)",u)("%s={}",u)("var c2 = r.uint32()+r.pos"),void 0!==e.defaults[a.keyType]?n("k=%j",e.defaults[a.keyType]):n("k=null"),void 0!==e.defaults[p]?n("value=%j",e.defaults[p]):n("value=null"),n("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===e.basic[p]?n("value=types[%i].decode(r,r.uint32())",s):n("value=r.%s()",p),n("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==e.long[a.keyType]?n('%s[typeof k==="object"?util.longToHash(k):k]=value',u):n("%s[k]=value",u)):a.repeated?(n("if(!(%s&&%s.length))",u,u)("%s=[]",u),void 0!==e.packed[p]&&n("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",u,p)("}else"),void 0===e.basic[p]?n(a.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",u,s):n("%s.push(r.%s())",u,p)):void 0===e.basic[p]?n(a.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",u,s):n("%s=r.%s()",u,p),n("break")("}")}for(n("default:")("r.skipType(t&7)")("break")("}")("}"),s=0;s<i._fieldsArray.length;++s){var f=i._fieldsArray[s];f.required&&n("if(!m.hasOwnProperty(%j))",f.name)("throw util.ProtocolError(%j,{instance:m})",o(f))}return n("return m")};var t=require_enum(),e=requireTypes(),r=requireUtil();function o(t){return"missing required '"+t.name+"'"}return decoder_1}function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=function(t){var n=e.codegen(["m"],t.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),s=t.oneofsArray,a={};s.length&&n("var p={}");for(var p=0;p<t.fieldsArray.length;++p){var u=t._fieldsArray[p].resolve(),f="m"+e.safeProp(u.name);if(u.optional&&n("if(%s!=null&&m.hasOwnProperty(%j)){",f,u.name),u.map)n("if(!util.isObject(%s))",f)("return%j",r(u,"object"))("var k=Object.keys(%s)",f)("for(var i=0;i<k.length;++i){"),i(n,u,"k[i]"),o(n,u,p,f+"[k[i]]")("}");else if(u.repeated)n("if(!Array.isArray(%s))",f)("return%j",r(u,"array"))("for(var i=0;i<%s.length;++i){",f),o(n,u,p,f+"[i]")("}");else{if(u.partOf){var h=e.safeProp(u.partOf.name);1===a[u.partOf.name]&&n("if(p%s===1)",h)("return%j",u.partOf.name+": multiple values"),a[u.partOf.name]=1,n("p%s=1",h)}o(n,u,p,f)}u.optional&&n("}")}return n("return null")};var t=require_enum(),e=requireUtil();function r(t,e){return t.name+": "+e+(t.repeated&&"array"!==e?"[]":t.map&&"object"!==e?"{k:"+t.keyType+"}":"")+" expected"}function o(e,o,i,n){if(o.resolvedType)if(o.resolvedType instanceof t){e("switch(%s){",n)("default:")("return%j",r(o,"enum value"));for(var s=Object.keys(o.resolvedType.values),a=0;a<s.length;++a)e("case %i:",o.resolvedType.values[s[a]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",i,n)("if(e)")("return%j+e",o.name+".")("}");else switch(o.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",n)("return%j",r(o,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",n,n,n,n)("return%j",r(o,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',n)("return%j",r(o,"number"));break;case"bool":e('if(typeof %s!=="boolean")',n)("return%j",r(o,"boolean"));break;case"string":e("if(!util.isString(%s))",n)("return%j",r(o,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',n,n,n)("return%j",r(o,"buffer"))}return e}function i(t,e,o){switch(e.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.key32Re.test(%s))",o)("return%j",r(e,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.key64Re.test(%s))",o)("return%j",r(e,"integer|Long key"));break;case"bool":t("if(!util.key2Re.test(%s))",o)("return%j",r(e,"boolean key"))}return t}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,function(t){var e=t,r=require_enum(),o=requireUtil();function i(t,e,o,i){var n=!1;if(e.resolvedType)if(e.resolvedType instanceof r){t("switch(d%s){",i);for(var s=e.resolvedType.values,a=Object.keys(s),p=0;p<a.length;++p)s[a[p]]!==e.typeDefault||n||(t("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',i,i,i),e.repeated||t("break"),n=!0),t("case%j:",a[p])("case %i:",s[a[p]])("m%s=%j",i,s[a[p]])("break");t("}")}else t('if(typeof d%s!=="object")',i)("throw TypeError(%j)",e.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",i,o,i);else{var u=!1;switch(e.type){case"double":case"float":t("m%s=Number(d%s)",i,i);break;case"uint32":case"fixed32":t("m%s=d%s>>>0",i,i);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",i,i);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,u)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,u?"true":"");break;case"bytes":t('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":t("m%s=String(d%s)",i,i);break;case"bool":t("m%s=Boolean(d%s)",i,i)}}return t}function n(t,e,o,i){if(e.resolvedType)e.resolvedType instanceof r?t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,o,i,i,o,i,i):t("d%s=types[%i].toObject(m%s,o)",i,o,i);else{var n=!1;switch(e.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":n=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,n?"true":"",i);break;case"bytes":t("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:t("d%s=m%s",i,i)}}return t}e.fromObject=function(t){var e=t.fieldsArray,n=o.codegen(["d"],t.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!e.length)return n("return new this.ctor");n("var m=new this.ctor");for(var s=0;s<e.length;++s){var a=e[s].resolve(),p=o.safeProp(a.name);a.map?(n("if(d%s){",p)('if(typeof d%s!=="object")',p)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",p)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",p),i(n,a,s,p+"[ks[i]]")("}")("}")):a.repeated?(n("if(d%s){",p)("if(!Array.isArray(d%s))",p)("throw TypeError(%j)",a.fullName+": array expected")("m%s=[]",p)("for(var i=0;i<d%s.length;++i){",p),i(n,a,s,p+"[i]")("}")("}")):(a.resolvedType instanceof r||n("if(d%s!=null){",p),i(n,a,s,p),a.resolvedType instanceof r||n("}"))}return n("return m")},e.toObject=function(t){var e=t.fieldsArray.slice().sort(o.compareFieldsById);if(!e.length)return o.codegen()("return {}");for(var i=o.codegen(["m","o"],t.name+"$toObject")("if(!o)")("o={}")("var d={}"),s=[],a=[],p=[],u=0;u<e.length;++u)e[u].partOf||(e[u].resolve().repeated?s:e[u].map?a:p).push(e[u]);if(s.length){for(i("if(o.arrays||o.defaults){"),u=0;u<s.length;++u)i("d%s=[]",o.safeProp(s[u].name));i("}")}if(a.length){for(i("if(o.objects||o.defaults){"),u=0;u<a.length;++u)i("d%s={}",o.safeProp(a[u].name));i("}")}if(p.length){for(i("if(o.defaults){"),u=0;u<p.length;++u){var f=p[u],h=o.safeProp(f.name);if(f.resolvedType instanceof r)i("d%s=o.enums===String?%j:%j",h,f.resolvedType.valuesById[f.typeDefault],f.typeDefault);else if(f.long)i("if(util.Long){")("var n=new util.Long(%i,%i,%j)",f.typeDefault.low,f.typeDefault.high,f.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",h)("}else")("d%s=o.longs===String?%j:%i",h,f.typeDefault.toString(),f.typeDefault.toNumber());else if(f.bytes){var l="["+Array.prototype.slice.call(f.typeDefault).join(",")+"]";i("if(o.bytes===String)d%s=%j",h,String.fromCharCode.apply(String,f.typeDefault))("else{")("d%s=%s",h,l)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",h,h)("}")}else i("d%s=%j",h,f.typeDefault)}i("}")}var c=!1;for(u=0;u<e.length;++u){f=e[u];var d=t._fieldsArray.indexOf(f);h=o.safeProp(f.name);f.map?(c||(c=!0,i("var ks2")),i("if(m%s&&(ks2=Object.keys(m%s)).length){",h,h)("d%s={}",h)("for(var j=0;j<ks2.length;++j){"),n(i,f,d,h+"[ks2[j]]")("}")):f.repeated?(i("if(m%s&&m%s.length){",h,h)("d%s=[]",h)("for(var j=0;j<m%s.length;++j){",h),n(i,f,d,h+"[j]")("}")):(i("if(m%s!=null&&m.hasOwnProperty(%j)){",h,f.name),n(i,f,d,h),f.partOf&&i("if(o.oneofs)")("d%s=%j",o.safeProp(f.partOf.name),f.name)),i("}")}return i("return d")}}(converter)),converter}var wrappers={},hasRequiredWrappers,type,hasRequiredType,root,hasRequiredRoot,hasRequiredUtil,hasRequiredTypes,field,hasRequiredField,oneof,hasRequiredOneof,object,hasRequiredObject,_enum,hasRequired_enum,encoder_1,hasRequiredEncoder,hasRequiredIndexLight,tokenize_1,hasRequiredTokenize,parse_1,hasRequiredParse,common_1,hasRequiredCommon,hasRequiredSrc,protobufjs,hasRequiredProtobufjs;function requireWrappers(){return hasRequiredWrappers||(hasRequiredWrappers=1,function(t){var e=t,r=requireMessage();e[".google.protobuf.Any"]={fromObject:function(t){if(t&&t["@type"]){var e=t["@type"].substring(t["@type"].lastIndexOf("/")+1),r=this.lookup(e);if(r){var o="."===t["@type"].charAt(0)?t["@type"].slice(1):t["@type"];return-1===o.indexOf("/")&&(o="/"+o),this.create({type_url:o,value:r.encode(r.fromObject(t)).finish()})}}return this.fromObject(t)},toObject:function(t,e){var o="",i="";if(e&&e.json&&t.type_url&&t.value){i=t.type_url.substring(t.type_url.lastIndexOf("/")+1),o=t.type_url.substring(0,t.type_url.lastIndexOf("/")+1);var n=this.lookup(i);n&&(t=n.decode(t.value))}if(!(t instanceof this.ctor)&&t instanceof r){var s=t.$type.toObject(t,e);return""===o&&(o="type.googleapis.com/"),i=o+("."===t.$type.fullName[0]?t.$type.fullName.slice(1):t.$type.fullName),s["@type"]=i,s}return this.toObject(t,e)}}}(wrappers)),wrappers}function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=y;var t=requireNamespace();((y.prototype=Object.create(t.prototype)).constructor=y).className="Type";var e=require_enum(),r=requireOneof(),o=requireField(),i=requireMapfield(),n=requireService(),s=requireMessage(),a=requireReader(),p=requireWriter(),u=requireUtil(),f=requireEncoder(),h=requireDecoder(),l=requireVerifier(),c=requireConverter(),d=requireWrappers();function y(e,r){t.call(this,e,r),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function v(t){return t._fieldsById=t._fieldsArray=t._oneofsArray=null,delete t.encode,delete t.decode,delete t.verify,t}return Object.defineProperties(y.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var r=this.fields[t[e]],o=r.id;if(this._fieldsById[o])throw Error("duplicate id "+o+" in "+this);this._fieldsById[o]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=u.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=u.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=y.generateConstructor(this)())},set:function(t){var e=t.prototype;e instanceof s||((t.prototype=new s).constructor=t,u.merge(t.prototype,e)),t.$type=t.prototype.$type=this,u.merge(t,s,!0),this._ctor=t;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var o={};for(r=0;r<this.oneofsArray.length;++r)o[this._oneofsArray[r].resolve().name]={get:u.oneOfGetter(this._oneofsArray[r].oneof),set:u.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(t.prototype,o)}}}),y.generateConstructor=function(t){for(var e,r=u.codegen(["p"],t.name),o=0;o<t.fieldsArray.length;++o)(e=t._fieldsArray[o]).map?r("this%s={}",u.safeProp(e.name)):e.repeated&&r("this%s=[]",u.safeProp(e.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},y.fromJSON=function(s,a){var p=new y(s,a.options);p.extensions=a.extensions,p.reserved=a.reserved;for(var u=Object.keys(a.fields),f=0;f<u.length;++f)p.add((void 0!==a.fields[u[f]].keyType?i.fromJSON:o.fromJSON)(u[f],a.fields[u[f]]));if(a.oneofs)for(u=Object.keys(a.oneofs),f=0;f<u.length;++f)p.add(r.fromJSON(u[f],a.oneofs[u[f]]));if(a.nested)for(u=Object.keys(a.nested),f=0;f<u.length;++f){var h=a.nested[u[f]];p.add((void 0!==h.id?o.fromJSON:void 0!==h.fields?y.fromJSON:void 0!==h.values?e.fromJSON:void 0!==h.methods?n.fromJSON:t.fromJSON)(u[f],h))}return a.extensions&&a.extensions.length&&(p.extensions=a.extensions),a.reserved&&a.reserved.length&&(p.reserved=a.reserved),a.group&&(p.group=!0),a.comment&&(p.comment=a.comment),a.edition&&(p._edition=a.edition),p._defaultEdition="proto3",p},y.prototype.toJSON=function(e){var r=t.prototype.toJSON.call(this,e),o=!!e&&Boolean(e.keepComments);return u.toObject(["edition",this._editionToJSON(),"options",r&&r.options||void 0,"oneofs",t.arrayToJSON(this.oneofsArray,e),"fields",t.arrayToJSON(this.fieldsArray.filter((function(t){return!t.declaringField})),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",r&&r.nested||void 0,"comment",o?this.comment:void 0])},y.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;t.prototype.resolveAll.call(this);var e=this.oneofsArray;for(o=0;o<e.length;)e[o++].resolve();for(var r=this.fieldsArray,o=0;o<r.length;)r[o++].resolve();return this},y.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution?(e=this._edition||e,t.prototype._resolveFeaturesRecursive.call(this,e),this.oneofsArray.forEach((t=>{t._resolveFeatures(e)})),this.fieldsArray.forEach((t=>{t._resolveFeatures(e)})),this):this},y.prototype.get=function(t){return this.fields[t]||this.oneofs&&this.oneofs[t]||this.nested&&this.nested[t]||null},y.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof o&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),v(this)}return e instanceof r?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),v(this)):t.prototype.add.call(this,e)},y.prototype.remove=function(e){if(e instanceof o&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),v(this)}if(e instanceof r){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),v(this)}return t.prototype.remove.call(this,e)},y.prototype.isReservedId=function(e){return t.isReservedId(this.reserved,e)},y.prototype.isReservedName=function(e){return t.isReservedName(this.reserved,e)},y.prototype.create=function(t){return new this.ctor(t)},y.prototype.setup=function(){for(var t=this.fullName,e=[],r=0;r<this.fieldsArray.length;++r)e.push(this._fieldsArray[r].resolve().resolvedType);this.encode=f(this)({Writer:p,types:e,util:u}),this.decode=h(this)({Reader:a,types:e,util:u}),this.verify=l(this)({types:e,util:u}),this.fromObject=c.fromObject(this)({types:e,util:u}),this.toObject=c.toObject(this)({types:e,util:u});var o=d[t];if(o){var i=Object.create(this);i.fromObject=this.fromObject,this.fromObject=o.fromObject.bind(i),i.toObject=this.toObject,this.toObject=o.toObject.bind(i)}return this},y.prototype.encode=function(t,e){return this.setup().encode(t,e)},y.prototype.encodeDelimited=function(t,e){return this.encode(t,e&&e.len?e.fork():e).ldelim()},y.prototype.decode=function(t,e){return this.setup().decode(t,e)},y.prototype.decodeDelimited=function(t){return t instanceof a||(t=a.create(t)),this.decode(t,t.uint32())},y.prototype.verify=function(t){return this.setup().verify(t)},y.prototype.fromObject=function(t){return this.setup().fromObject(t)},y.prototype.toObject=function(t,e){return this.setup().toObject(t,e)},y.d=function(t){return function(e){u.decorateType(e,t)}},type}function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=p;var t=requireNamespace();((p.prototype=Object.create(t.prototype)).constructor=p).className="Root";var e,r,o,i=requireField(),n=require_enum(),s=requireOneof(),a=requireUtil();function p(e){t.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function u(){}p.fromJSON=function(t,e){return e||(e=new p),t.options&&e.setOptions(t.options),e.addJSON(t.nested).resolveAll()},p.prototype.resolvePath=a.path.resolve,p.prototype.fetch=a.fetch,p.prototype.load=function t(e,i,n){"function"==typeof i&&(n=i,i=void 0);var s=this;if(!n)return a.asPromise(t,s,e,i);var p=n===u;function f(t,e){if(n){if(p)throw t;e&&e.resolveAll();var r=n;n=null,r(t,e)}}function h(t){var e=t.lastIndexOf("google/protobuf/");if(e>-1){var r=t.substring(e);if(r in o)return r}return null}function l(t,e){try{if(a.isString(e)&&"{"===e.charAt(0)&&(e=JSON.parse(e)),a.isString(e)){r.filename=t;var o,n=r(e,s,i),u=0;if(n.imports)for(;u<n.imports.length;++u)(o=h(n.imports[u])||s.resolvePath(t,n.imports[u]))&&c(o);if(n.weakImports)for(u=0;u<n.weakImports.length;++u)(o=h(n.weakImports[u])||s.resolvePath(t,n.weakImports[u]))&&c(o,!0)}else s.setOptions(e.options).addJSON(e.nested)}catch(t){f(t)}p||d||f(null,s)}function c(t,e){if(t=h(t)||t,!(s.files.indexOf(t)>-1))if(s.files.push(t),t in o)p?l(t,o[t]):(++d,setTimeout((function(){--d,l(t,o[t])})));else if(p){var r;try{r=a.fs.readFileSync(t).toString("utf8")}catch(t){return void(e||f(t))}l(t,r)}else++d,s.fetch(t,(function(r,o){--d,n&&(r?e?d||f(null,s):f(r):l(t,o))}))}var d=0;a.isString(e)&&(e=[e]);for(var y,v=0;v<e.length;++v)(y=s.resolvePath("",e[v]))&&c(y);return p?(s.resolveAll(),s):(d||f(null,s),s)},p.prototype.loadSync=function(t,e){if(!a.isNode)throw Error("not supported");return this.load(t,e,u)},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map((function(t){return"'extend "+t.extend+"' in "+t.parent.fullName})).join(", "));return t.prototype.resolveAll.call(this)};var f=/^[A-Z]/;function h(t,e){var r=e.parent.lookup(e.extend);if(r){var o=new i(e.fullName,e.id,e.type,e.rule,void 0,e.options);return r.get(o.name)||(o.declaringField=e,e.extensionField=o,r.add(o)),!0}return!1}return p.prototype._handleAdd=function(t){if(t instanceof i)void 0===t.extend||t.extensionField||h(0,t)||this.deferred.push(t);else if(t instanceof n)f.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof s)){if(t instanceof e)for(var r=0;r<this.deferred.length;)h(0,this.deferred[r])?this.deferred.splice(r,1):++r;for(var o=0;o<t.nestedArray.length;++o)this._handleAdd(t._nestedArray[o]);f.test(t.name)&&(t.parent[t.name]=t)}(t instanceof e||t instanceof n||t instanceof i)&&(this._fullyQualifiedObjects[t.fullName]=t)},p.prototype._handleRemove=function(e){if(e instanceof i){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var r=this.deferred.indexOf(e);r>-1&&this.deferred.splice(r,1)}}else if(e instanceof n)f.test(e.name)&&delete e.parent[e.name];else if(e instanceof t){for(var o=0;o<e.nestedArray.length;++o)this._handleRemove(e._nestedArray[o]);f.test(e.name)&&delete e.parent[e.name]}delete this._fullyQualifiedObjects[e.fullName]},p._configure=function(t,i,n){e=t,r=i,o=n},root}function requireUtil(){if(hasRequiredUtil)return util.exports;hasRequiredUtil=1;var t,e,r=util.exports=requireMinimal$1(),o=requireRoots();r.codegen=requireCodegen(),r.fetch=requireFetch(),r.path=requirePath(),r.fs=r.inquire("fs"),r.toArray=function(t){if(t){for(var e=Object.keys(t),r=new Array(e.length),o=0;o<e.length;)r[o]=t[e[o++]];return r}return[]},r.toObject=function(t){for(var e={},r=0;r<t.length;){var o=t[r++],i=t[r++];void 0!==i&&(e[o]=i)}return e};var i=/\\/g,n=/"/g;r.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},r.safeProp=function(t){return!/^[$\w_]+$/.test(t)||r.isReserved(t)?'["'+t.replace(i,"\\\\").replace(n,'\\"')+'"]':"."+t},r.ucFirst=function(t){return t.charAt(0).toUpperCase()+t.substring(1)};var s=/_([a-z])/g;r.camelCase=function(t){return t.substring(0,1)+t.substring(1).replace(s,(function(t,e){return e.toUpperCase()}))},r.compareFieldsById=function(t,e){return t.id-e.id},r.decorateType=function(e,o){if(e.$type)return o&&e.$type.name!==o&&(r.decorateRoot.remove(e.$type),e.$type.name=o,r.decorateRoot.add(e.$type)),e.$type;t||(t=requireType());var i=new t(o||e.name);return r.decorateRoot.add(i),i.ctor=e,Object.defineProperty(e,"$type",{value:i,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:i,enumerable:!1}),i};var a=0;return r.decorateEnum=function(t){if(t.$type)return t.$type;e||(e=require_enum());var o=new e("Enum"+a++,t);return r.decorateRoot.add(o),Object.defineProperty(t,"$type",{value:o,enumerable:!1}),o},r.setProperty=function(t,e,r,o){if("object"!=typeof t)throw TypeError("dst must be an object");if(!e)throw TypeError("path must be specified");return function t(e,r,i){var n=r.shift();if("__proto__"===n||"prototype"===n)return e;if(r.length>0)e[n]=t(e[n]||{},r,i);else{var s=e[n];if(s&&o)return e;s&&(i=[].concat(s).concat(i)),e[n]=i}return e}(t,e=e.split("."),r)},Object.defineProperty(r,"decorateRoot",{get:function(){return o.decorated||(o.decorated=new(requireRoot()))}}),util.exports}function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(t){var e=t,r=requireUtil(),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function i(t,e){var r=0,i={};for(e|=0;r<t.length;)i[o[r+e]]=t[r++];return i}e.basic=i([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),e.defaults=i([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",r.emptyArray,null]),e.long=i([0,0,0,1,1],7),e.mapKey=i([0,0,0,5,5,0,0,0,1,1,0,2],2),e.packed=i([1,5,0,0,0,5,5,0,0,0,1,1,0])}(types)),types}function requireField(){if(hasRequiredField)return field;hasRequiredField=1,field=s;var t=requireObject();((s.prototype=Object.create(t.prototype)).constructor=s).className="Field";var e,r=require_enum(),o=requireTypes(),i=requireUtil(),n=/^required|optional|repeated$/;function s(e,r,s,a,p,u,f){if(i.isObject(a)?(f=p,u=a,a=p=void 0):i.isObject(p)&&(f=u,u=p,p=void 0),t.call(this,e,u),!i.isInteger(r)||r<0)throw TypeError("id must be a non-negative integer");if(!i.isString(s))throw TypeError("type must be a string");if(void 0!==a&&!n.test(a=a.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==p&&!i.isString(p))throw TypeError("extend must be a string");"proto3_optional"===a&&(a="optional"),this.rule=a&&"optional"!==a?a:void 0,this.type=s,this.id=r,this.extend=p||void 0,this.repeated="repeated"===a,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!i.Long&&void 0!==o.long[s],this.bytes="bytes"===s,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=f}return s.fromJSON=function(t,e){var r=new s(t,e.id,e.type,e.rule,e.extend,e.options,e.comment);return e.edition&&(r._edition=e.edition),r._defaultEdition="proto3",r},Object.defineProperty(s.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(s.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(s.prototype,"delimited",{get:function(){return this.resolvedType instanceof e&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(s.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(s.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),s.prototype.setOption=function(e,r,o){return t.prototype.setOption.call(this,e,r,o)},s.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return i.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=o.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof e?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof r&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof r||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=i.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var n;i.base64.test(this.typeDefault)?i.base64.decode(this.typeDefault,n=i.newBuffer(i.base64.length(this.typeDefault)),0):i.utf8.write(this.typeDefault,n=i.newBuffer(i.utf8.length(this.typeDefault)),0),this.typeDefault=n}return this.map?this.defaultValue=i.emptyObject:this.repeated?this.defaultValue=i.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof e&&(this.parent.ctor.prototype[this.name]=this.defaultValue),t.prototype.resolve.call(this)},s.prototype._inferLegacyProtoFeatures=function(t){if("proto2"!==t&&"proto3"!==t)return{};var r={};if("required"===this.rule&&(r.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===o.defaults[this.type]){var i=this.parent.get(this.type.split(".").pop());i&&i instanceof e&&i.group&&(r.message_encoding="DELIMITED")}return!0===this.getOption("packed")?r.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(r.repeated_field_encoding="EXPANDED"),r},s.prototype._resolveFeatures=function(e){return t.prototype._resolveFeatures.call(this,this._edition||e)},s.d=function(t,e,r,o){return"function"==typeof e?e=i.decorateType(e).name:e&&"object"==typeof e&&(e=i.decorateEnum(e).name),function(n,a){i.decorateType(n.constructor).add(new s(a,t,e,r,{default:o}))}},s._configure=function(t){e=t},field}function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=o;var t=requireObject();((o.prototype=Object.create(t.prototype)).constructor=o).className="OneOf";var e=requireField(),r=requireUtil();function o(e,r,o,i){if(Array.isArray(r)||(o=r,r=void 0),t.call(this,e,o),void 0!==r&&!Array.isArray(r))throw TypeError("fieldNames must be an Array");this.oneof=r||[],this.fieldsArray=[],this.comment=i}function i(t){if(t.parent)for(var e=0;e<t.fieldsArray.length;++e)t.fieldsArray[e].parent||t.parent.add(t.fieldsArray[e])}return o.fromJSON=function(t,e){return new o(t,e.oneof,e.options,e.comment)},o.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return r.toObject(["options",this.options,"oneof",this.oneof,"comment",e?this.comment:void 0])},o.prototype.add=function(t){if(!(t instanceof e))throw TypeError("field must be a Field");return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),t.partOf=this,i(this),this},o.prototype.remove=function(t){if(!(t instanceof e))throw TypeError("field must be a Field");var r=this.fieldsArray.indexOf(t);if(r<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(r,1),(r=this.oneof.indexOf(t.name))>-1&&this.oneof.splice(r,1),t.partOf=null,this},o.prototype.onAdd=function(e){t.prototype.onAdd.call(this,e);for(var r=0;r<this.oneof.length;++r){var o=e.get(this.oneof[r]);o&&!o.partOf&&(o.partOf=this,this.fieldsArray.push(o))}i(this)},o.prototype.onRemove=function(e){for(var r,o=0;o<this.fieldsArray.length;++o)(r=this.fieldsArray[o]).parent&&r.parent.remove(r);t.prototype.onRemove.call(this,e)},Object.defineProperty(o.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var t=this.fieldsArray[0];return null!=t.options&&!0===t.options.proto3_optional}}),o.d=function(){for(var t=new Array(arguments.length),e=0;e<arguments.length;)t[e]=arguments[e++];return function(e,i){r.decorateType(e.constructor).add(new o(i,t)),Object.defineProperty(e,i,{get:r.oneOfGetter(t),set:r.oneOfSetter(t)})}},oneof}function requireObject(){if(hasRequiredObject)return object;hasRequiredObject=1,object=s,s.className="ReflectionObject";var t,e=requireOneof(),r=requireUtil(),o={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},i={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},n={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function s(t,e){if(!r.isString(t))throw TypeError("name must be a string");if(e&&!r.isObject(e))throw TypeError("options must be an object");this.options=e,this.parsedOptions=null,this.name=t,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(s.prototype,{root:{get:function(){for(var t=this;null!==t.parent;)t=t.parent;return t}},fullName:{get:function(){for(var t=[this.name],e=this.parent;e;)t.unshift(e.name),e=e.parent;return t.join(".")}}}),s.prototype.toJSON=function(){throw Error()},s.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var r=e.root;r instanceof t&&r._handleAdd(this)},s.prototype.onRemove=function(e){var r=e.root;r instanceof t&&r._handleRemove(this),this.parent=null,this.resolved=!1},s.prototype.resolve=function(){return this.resolved||this.root instanceof t&&(this.resolved=!0),this},s.prototype._resolveFeaturesRecursive=function(t){return this._resolveFeatures(this._edition||t)},s.prototype._resolveFeatures=function(t){if(!this._featuresResolved){var r={};if(!t)throw new Error("Unknown edition for "+this.fullName);var s=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(t));if(this._edition){if("proto2"===t)r=Object.assign({},i);else if("proto3"===t)r=Object.assign({},n);else{if("2023"!==t)throw new Error("Unknown edition: "+t);r=Object.assign({},o)}return this._features=Object.assign(r,s||{}),void(this._featuresResolved=!0)}if(this.partOf instanceof e){var a=Object.assign({},this.partOf._features);this._features=Object.assign(a,s||{})}else if(this.declaringField);else{if(!this.parent)throw new Error("Unable to find a parent for "+this.fullName);var p=Object.assign({},this.parent._features);this._features=Object.assign(p,s||{})}this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},s.prototype._inferLegacyProtoFeatures=function(){return{}},s.prototype.getOption=function(t){if(this.options)return this.options[t]},s.prototype.setOption=function(t,e,o){return this.options||(this.options={}),/^features\./.test(t)?r.setProperty(this.options,t,e,o):o&&void 0!==this.options[t]||(this.getOption(t)!==e&&(this.resolved=!1),this.options[t]=e),this},s.prototype.setParsedOption=function(t,e,o){this.parsedOptions||(this.parsedOptions=[]);var i=this.parsedOptions;if(o){var n=i.find((function(e){return Object.prototype.hasOwnProperty.call(e,t)}));if(n){var s=n[t];r.setProperty(s,o,e)}else(n={})[t]=r.setProperty({},o,e),i.push(n)}else{var a={};a[t]=e,i.push(a)}return this},s.prototype.setOptions=function(t,e){if(t)for(var r=Object.keys(t),o=0;o<r.length;++o)this.setOption(r[o],t[r[o]],e);return this},s.prototype.toString=function(){var t=this.constructor.className,e=this.fullName;return e.length?t+" "+e:t},s.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},s._configure=function(e){t=e},object}function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=o;var t=requireObject();((o.prototype=Object.create(t.prototype)).constructor=o).className="Enum";var e=requireNamespace(),r=requireUtil();function o(e,r,o,i,n,s){if(t.call(this,e,o),r&&"object"!=typeof r)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=n||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,r)for(var a=Object.keys(r),p=0;p<a.length;++p)"number"==typeof r[a[p]]&&(this.valuesById[this.values[a[p]]=r[a[p]]]=a[p])}return o.prototype._resolveFeatures=function(e){return e=this._edition||e,t.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach((t=>{var e=Object.assign({},this._features);this._valuesFeatures[t]=Object.assign(e,this.valuesOptions&&this.valuesOptions[t]&&this.valuesOptions[t].features)})),this},o.fromJSON=function(t,e){var r=new o(t,e.values,e.options,e.comment,e.comments);return r.reserved=e.reserved,e.edition&&(r._edition=e.edition),r._defaultEdition="proto3",r},o.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return r.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",e?this.comment:void 0,"comments",e?this.comments:void 0])},o.prototype.add=function(t,e,o,i){if(!r.isString(t))throw TypeError("name must be a string");if(!r.isInteger(e))throw TypeError("id must be an integer");if(void 0!==this.values[t])throw Error("duplicate name '"+t+"' in "+this);if(this.isReservedId(e))throw Error("id "+e+" is reserved in "+this);if(this.isReservedName(t))throw Error("name '"+t+"' is reserved in "+this);if(void 0!==this.valuesById[e]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+e+" in "+this);this.values[t]=e}else this.valuesById[this.values[t]=e]=t;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[t]=i||null),this.comments[t]=o||null,this},o.prototype.remove=function(t){if(!r.isString(t))throw TypeError("name must be a string");var e=this.values[t];if(null==e)throw Error("name '"+t+"' does not exist in "+this);return delete this.valuesById[e],delete this.values[t],delete this.comments[t],this.valuesOptions&&delete this.valuesOptions[t],this},o.prototype.isReservedId=function(t){return e.isReservedId(this.reserved,t)},o.prototype.isReservedName=function(t){return e.isReservedName(this.reserved,t)},_enum}function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=function(i){for(var n,s=r.codegen(["m","w"],i.name+"$encode")("if(!w)")("w=Writer.create()"),a=i.fieldsArray.slice().sort(r.compareFieldsById),p=0;p<a.length;++p){var u=a[p].resolve(),f=i._fieldsArray.indexOf(u),h=u.resolvedType instanceof t?"int32":u.type,l=e.basic[h];n="m"+r.safeProp(u.name),u.map?(s("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",n,u.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",n)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(u.id<<3|2)>>>0,8|e.mapKey[u.keyType],u.keyType),void 0===l?s("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",f,n):s(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|l,h,n),s("}")("}")):u.repeated?(s("if(%s!=null&&%s.length){",n,n),u.packed&&void 0!==e.packed[h]?s("w.uint32(%i).fork()",(u.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",n)("w.%s(%s[i])",h,n)("w.ldelim()"):(s("for(var i=0;i<%s.length;++i)",n),void 0===l?o(s,u,f,n+"[i]"):s("w.uint32(%i).%s(%s[i])",(u.id<<3|l)>>>0,h,n)),s("}")):(u.optional&&s("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",n,u.name),void 0===l?o(s,u,f,n):s("w.uint32(%i).%s(%s)",(u.id<<3|l)>>>0,h,n))}return s("return w")};var t=require_enum(),e=requireTypes(),r=requireUtil();function o(t,e,r,o){return e.delimited?t("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,o,(e.id<<3|3)>>>0,(e.id<<3|4)>>>0):t("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,o,(e.id<<3|2)>>>0)}return encoder_1}function requireIndexLight(){if(hasRequiredIndexLight)return indexLight.exports;hasRequiredIndexLight=1;var t=indexLight.exports=requireIndexMinimal();return t.build="light",t.load=function(e,r,o){return"function"==typeof r?(o=r,r=new t.Root):r||(r=new t.Root),r.load(e,o)},t.loadSync=function(e,r){return r||(r=new t.Root),r.loadSync(e)},t.encoder=requireEncoder(),t.decoder=requireDecoder(),t.verifier=requireVerifier(),t.converter=requireConverter(),t.ReflectionObject=requireObject(),t.Namespace=requireNamespace(),t.Root=requireRoot(),t.Enum=require_enum(),t.Type=requireType(),t.Field=requireField(),t.OneOf=requireOneof(),t.MapField=requireMapfield(),t.Service=requireService(),t.Method=requireMethod(),t.Message=requireMessage(),t.wrappers=requireWrappers(),t.types=requireTypes(),t.util=requireUtil(),t.ReflectionObject._configure(t.Root),t.Namespace._configure(t.Type,t.Service,t.Enum),t.Root._configure(t.Type),t.Field._configure(t.Type),indexLight.exports}function requireTokenize(){if(hasRequiredTokenize)return tokenize_1;hasRequiredTokenize=1,tokenize_1=f;var t=/[\s{}=;:[\],'"()<>]/g,e=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,r=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,n=/\n/g,s=/\s/,a=/\\(.?)/g,p={0:"\0",r:"\r",n:"\n",t:"\t"};function u(t){return t.replace(a,(function(t,e){switch(e){case"\\":case"":return e;default:return p[e]||""}}))}function f(a,p){a=a.toString();var f=0,h=a.length,l=1,c=0,d={},y=[],v=null;function g(t){return Error("illegal "+t+" (line "+l+")")}function b(t){return a.charAt(t)}function m(t,e,r){var s,u={type:a.charAt(t++),lineEmpty:!1,leading:r},f=t-(p?2:3);do{if(--f<0||"\n"===(s=a.charAt(f))){u.lineEmpty=!0;break}}while(" "===s||"\t"===s);for(var h=a.substring(t,e).split(n),y=0;y<h.length;++y)h[y]=h[y].replace(p?i:o,"").trim();u.text=h.join("\n").trim(),d[l]=u,c=l}function w(t){var e=j(t),r=a.substring(t,e);return/^\s*\/\//.test(r)}function j(t){for(var e=t;e<h&&"\n"!==b(e);)e++;return e}function O(){if(y.length>0)return y.shift();if(v)return function(){var t="'"===v?r:e;t.lastIndex=f-1;var o=t.exec(a);if(!o)throw g("string");return f=t.lastIndex,_(v),v=null,u(o[1])}();var o,i,n,c,d,O=0===f;do{if(f===h)return null;for(o=!1;s.test(n=b(f));)if("\n"===n&&(O=!0,++l),++f===h)return null;if("/"===b(f)){if(++f===h)throw g("comment");if("/"===b(f))if(p){if(c=f,d=!1,w(f-1)){d=!0;do{if((f=j(f))===h)break;if(f++,!O)break}while(w(f))}else f=Math.min(h,j(f)+1);d&&(m(c,f,O),O=!0),l++,o=!0}else{for(d="/"===b(c=f+1);"\n"!==b(++f);)if(f===h)return null;++f,d&&(m(c,f-1,O),O=!0),++l,o=!0}else{if("*"!==(n=b(f)))return"/";c=f+1,d=p||"*"===b(c);do{if("\n"===n&&++l,++f===h)throw g("comment");i=n,n=b(f)}while("*"!==i||"/"!==n);++f,d&&(m(c,f-2,O),O=!0),o=!0}}}while(o);var S=f;if(t.lastIndex=0,!t.test(b(S++)))for(;S<h&&!t.test(b(S));)++S;var q=a.substring(f,f=S);return'"'!==q&&"'"!==q||(v=q),q}function _(t){y.push(t)}function S(){if(!y.length){var t=O();if(null===t)return null;_(t)}return y[0]}return Object.defineProperty({next:O,peek:S,push:_,skip:function(t,e){var r=S();if(r===t)return O(),!0;if(!e)throw g("token '"+r+"', '"+t+"' expected");return!1},cmnt:function(t){var e,r=null;return void 0===t?(e=d[l-1],delete d[l-1],e&&(p||"*"===e.type||e.lineEmpty)&&(r=e.leading?e.text:null)):(c<t&&S(),e=d[t],delete d[t],!e||e.lineEmpty||!p&&"/"!==e.type||(r=e.leading?null:e.text)),r}},"line",{get:function(){return l}})}return f.unescape=u,tokenize_1}function requireParse(){if(hasRequiredParse)return parse_1;hasRequiredParse=1,parse_1=j,j.filename=null,j.defaults={keepCase:!1};var t=requireTokenize(),e=requireRoot(),r=requireType(),o=requireField(),i=requireMapfield(),n=requireOneof(),s=require_enum(),a=requireService(),p=requireMethod(),u=requireObject(),f=requireTypes(),h=requireUtil(),l=/^[1-9][0-9]*$/,c=/^-?[1-9][0-9]*$/,d=/^0[x][0-9a-fA-F]+$/,y=/^-?0[x][0-9a-fA-F]+$/,v=/^0[0-7]+$/,g=/^-?0[0-7]+$/,b=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,m=/^[a-zA-Z_][a-zA-Z_0-9]*$/,w=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function j(O,_,S){_ instanceof e||(S=_,_=new e),S||(S=j.defaults);var q,k,R,A,x=S.preferTrailingComment||!1,E=t(O,S.alternateCommentMode||!1),F=E.next,T=E.push,P=E.peek,I=E.skip,N=E.cmnt,B=!0,M="proto2",C=_,U=[],L={},D=S.keepCase?function(t){return t}:h.camelCase;function V(t,e,r){var o=j.filename;return r||(j.filename=null),Error("illegal "+(e||"token")+" '"+t+"' ("+(o?o+", ":"")+"line "+E.line+")")}function $(){var t,e=[];do{if('"'!==(t=F())&&"'"!==t)throw V(t);e.push(F()),I(t),t=P()}while('"'===t||"'"===t);return e.join("")}function z(t){var e=F();switch(e){case"'":case'"':return T(e),$();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(t,e){var r=1;"-"===t.charAt(0)&&(r=-1,t=t.substring(1));switch(t){case"inf":case"INF":case"Inf":return r*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(l.test(t))return r*parseInt(t,10);if(d.test(t))return r*parseInt(t,16);if(v.test(t))return r*parseInt(t,8);if(b.test(t))return r*parseFloat(t);throw V(t,"number",e)}(e,!0)}catch(t){if(w.test(e))return e;throw V(e,"value")}}function J(t,e){var r,o;do{if(!e||'"'!==(r=P())&&"'"!==r)try{t.push([o=W(F()),I("to",!0)?W(F()):o])}catch(o){if(!(e&&w.test(r)&&M>=2023))throw o;t.push(r)}else{var i=$();if(t.push(i),M>=2023)throw V(i,"id")}}while(I(",",!0));var n={options:void 0,setOption:function(t,e){void 0===this.options&&(this.options={}),this.options[t]=e}};Y(n,(function(t){if("option"!==t)throw V(t);rt(n,t),I(";")}),(function(){nt(n)}))}function W(t,e){switch(t){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!e&&"-"===t.charAt(0))throw V(t,"id");if(c.test(t))return parseInt(t,10);if(y.test(t))return parseInt(t,16);if(g.test(t))return parseInt(t,8);throw V(t,"id")}function H(){if(void 0!==q)throw V("package");if(q=F(),!w.test(q))throw V(q,"name");C=C.define(q),I(";")}function G(){var t,e=P();switch(e){case"weak":t=R||(R=[]),F();break;case"public":F();default:t=k||(k=[])}e=$(),I(";"),t.push(e)}function Z(){if(I("="),(M=$())<2023)throw V(M,"syntax");I(";")}function X(){I("="),M=$();if(!["2023"].includes(M))throw V(M,"edition");I(";")}function K(t,e){switch(e){case"option":return rt(t,e),I(";"),!0;case"message":return Q(t,e),!0;case"enum":return et(t,e),!0;case"service":return function(t,e){if(!m.test(e=F()))throw V(e,"service name");var r=new a(e);Y(r,(function(t){if(!K(r,t)){if("rpc"!==t)throw V(t);!function(t,e){var r=N(),o=e;if(!m.test(e=F()))throw V(e,"name");var i,n,s,a,u=e;I("("),I("stream",!0)&&(n=!0);if(!w.test(e=F()))throw V(e);i=e,I(")"),I("returns"),I("("),I("stream",!0)&&(a=!0);if(!w.test(e=F()))throw V(e);s=e,I(")");var f=new p(u,o,i,s,n,a);f.comment=r,Y(f,(function(t){if("option"!==t)throw V(t);rt(f,t),I(";")})),t.add(f)}(r,t)}})),t.add(r),t===C&&U.push(r)}(t,e),!0;case"extend":return function(t,e){if(!w.test(e=F()))throw V(e,"reference");var r=e;Y(null,(function(e){switch(e){case"required":case"repeated":tt(t,e,r);break;case"optional":tt(t,"proto3"===M?"proto3_optional":"optional",r);break;default:if("proto2"===M||!w.test(e))throw V(e);T(e),tt(t,"optional",r)}}))}(t,e),!0}return!1}function Y(t,e,r){var o=E.line;if(t&&("string"!=typeof t.comment&&(t.comment=N()),t.filename=j.filename),I("{",!0)){for(var i;"}"!==(i=F());)e(i);I(";",!0)}else r&&r(),I(";"),t&&("string"!=typeof t.comment||x)&&(t.comment=N(o)||t.comment)}function Q(t,e){if(!m.test(e=F()))throw V(e,"type name");var o=new r(e);Y(o,(function(t){if(!K(o,t))switch(t){case"map":!function(t){I("<");var e=F();if(void 0===f.mapKey[e])throw V(e,"type");I(",");var r=F();if(!w.test(r))throw V(r,"type");I(">");var o=F();if(!m.test(o))throw V(o,"name");I("=");var n=new i(D(o),W(F()),e,r);Y(n,(function(t){if("option"!==t)throw V(t);rt(n,t),I(";")}),(function(){nt(n)})),t.add(n)}(o);break;case"required":if("proto2"!==M)throw V(t);case"repeated":tt(o,t);break;case"optional":if("proto3"===M)tt(o,"proto3_optional");else{if("proto2"!==M)throw V(t);tt(o,"optional")}break;case"oneof":!function(t,e){if(!m.test(e=F()))throw V(e,"name");var r=new n(D(e));Y(r,(function(t){"option"===t?(rt(r,t),I(";")):(T(t),tt(r,"optional"))})),t.add(r)}(o,t);break;case"extensions":J(o.extensions||(o.extensions=[]));break;case"reserved":J(o.reserved||(o.reserved=[]),!0);break;default:if("proto2"===M||!w.test(t))throw V(t);T(t),tt(o,"optional")}})),t.add(o),t===C&&U.push(o)}function tt(t,e,i){var s=F();if("group"!==s){for(;s.endsWith(".")||P().startsWith(".");)s+=F();if(!w.test(s))throw V(s,"type");var a=F();if(!m.test(a))throw V(a,"name");a=D(a),I("=");var p=new o(a,W(F()),s,e,i);if(Y(p,(function(t){if("option"!==t)throw V(t);rt(p,t),I(";")}),(function(){nt(p)})),"proto3_optional"===e){var u=new n("_"+a);p.setOption("proto3_optional",!0),u.add(p),t.add(u)}else t.add(p);t===C&&U.push(p)}else!function(t,e){if(M>=2023)throw V("group");var i=F();if(!m.test(i))throw V(i,"name");var n=h.lcFirst(i);i===n&&(i=h.ucFirst(i));I("=");var s=W(F()),a=new r(i);a.group=!0;var p=new o(n,s,i,e);p.filename=j.filename,Y(a,(function(t){switch(t){case"option":rt(a,t),I(";");break;case"required":case"repeated":tt(a,t);break;case"optional":tt(a,"proto3"===M?"proto3_optional":"optional");break;case"message":Q(a,t);break;case"enum":et(a,t);break;case"reserved":J(a.reserved||(a.reserved=[]),!0);break;default:throw V(t)}})),t.add(a).add(p)}(t,e)}function et(t,e){if(!m.test(e=F()))throw V(e,"name");var r=new s(e);Y(r,(function(t){switch(t){case"option":rt(r,t),I(";");break;case"reserved":J(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(t,e){if(!m.test(e))throw V(e,"name");I("=");var r=W(F(),!0),o={options:void 0,getOption:function(t){return this.options[t]}};o.setOption=function(t,e){u.prototype.setOption.call(o,t,e)},o.setParsedOption=function(){},Y(o,(function(t){if("option"!==t)throw V(t);rt(o,t),I(";")}),(function(){nt(o)})),t.add(e,r,o.comment,o.parsedOptions||o.options)}(r,t)}})),t.add(r),t===C&&U.push(r)}function rt(t,e){var r,o,i=!0;for("option"===e&&(e=F());"="!==e;){if("("===e){var n=F();I(")"),e="("+n+")"}if(i){if(i=!1,e.includes(".")&&!e.includes("(")){var s=e.split(".");r=s[0]+".",e=s[1];continue}r=e}else o=o?o+=e:e;e=F()}var a=ot(t,o?r.concat(o):r);o=o&&"."===o[0]?o.slice(1):o,function(t,e,r,o){t.setParsedOption&&t.setParsedOption(e,r,o)}(t,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,o)}function ot(t,e){if(I("{",!0)){for(var r={};!I("}",!0);){if(!m.test(A=F()))throw V(A,"name");if(null===A)throw V(A,"end of input");var o,i=A;if(I(":",!0),"{"===P())o=ot(t,e+"."+A);else if("["===P()){var n;if(o=[],I("[",!0)){do{n=z(),o.push(n)}while(I(",",!0));I("]"),void 0!==n&&it(t,e+"."+A,n)}}else o=z(),it(t,e+"."+A,o);var s=r[i];s&&(o=[].concat(s).concat(o)),r[i]=o,I(",",!0),I(";",!0)}return r}var a=z();return it(t,e,a),a}function it(t,e,r){C===t&&/^features\./.test(e)?L[e]=r:t.setOption&&t.setOption(e,r)}function nt(t){if(I("[",!0)){do{rt(t,"option")}while(I(",",!0));I("]")}return t}for(;null!==(A=F());)switch(A){case"package":if(!B)throw V(A);H();break;case"import":if(!B)throw V(A);G();break;case"syntax":if(!B)throw V(A);Z();break;case"edition":if(!B)throw V(A);X();break;case"option":rt(C,A),I(";",!0);break;default:if(K(C,A)){B=!1;continue}throw V(A)}return U.forEach((t=>{t._edition=M,Object.keys(L).forEach((e=>{void 0===t.getOption(e)&&t.setOption(e,L[e],!0)}))})),j.filename=null,{package:q,imports:k,weakImports:R,root:_}}return parse_1}function requireCommon(){if(hasRequiredCommon)return common_1;hasRequiredCommon=1,common_1=r;var t,e=/\/|\./;function r(t,o){e.test(t)||(t="google/protobuf/"+t+".proto",o={nested:{google:{nested:{protobuf:{nested:o}}}}}),r[t]=o}return r("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),r("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),r("timestamp",{Timestamp:t}),r("empty",{Empty:{fields:{}}}),r("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),r("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),r("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),r.get=function(t){return r[t]||null},common_1}function requireSrc(){if(hasRequiredSrc)return src.exports;hasRequiredSrc=1;var t=src.exports=requireIndexLight();return t.build="full",t.tokenize=requireTokenize(),t.parse=requireParse(),t.common=requireCommon(),t.Root._configure(t.Type,t.parse,t.common),src.exports}function requireProtobufjs(){return hasRequiredProtobufjs?protobufjs:(hasRequiredProtobufjs=1,protobufjs=requireSrc())}var protobufjsExports=requireProtobufjs(),minimal,hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal?minimal:(hasRequiredMinimal=1,minimal=requireIndexMinimal())}var minimalExports=requireMinimal(),googleProtobuf={},hasRequiredGoogleProtobuf;function requireGoogleProtobuf(){return hasRequiredGoogleProtobuf||(hasRequiredGoogleProtobuf=1,function(t){var e="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){t!=Array.prototype&&t!=Object.prototype&&(t[e]=r.value)},r="undefined"!=typeof window&&window===googleProtobuf?googleProtobuf:void 0!==babelTools.commonjsGlobal&&null!=babelTools.commonjsGlobal?babelTools.commonjsGlobal:googleProtobuf;function o(){o=function(){},r.Symbol||(r.Symbol=s)}function i(t,r){this.a=t,e(this,"description",{configurable:!0,writable:!0,value:r})}i.prototype.toString=function(){return this.a};var n,s=(n=0,function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new i("jscomp_symbol_"+(e||"")+"_"+n++,e)});function a(){o();var t=r.Symbol.iterator;t||(t=r.Symbol.iterator=r.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[t]&&e(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return function(t){return a(),t={next:t},t[r.Symbol.iterator]=function(){return this},t}(function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}(this))}}),a=function(){}}!function(t,o){if(o){var i=r;t=t.split(".");for(var n=0;n<t.length-1;n++){var s=t[n];s in i||(i[s]={}),i=i[s]}(o=o(n=i[t=t[t.length-1]]))!=n&&null!=o&&e(i,t,{configurable:!0,writable:!0,value:o})}}("Array.prototype.entries",(function(t){return t||function(){return function(t,e){a(),t instanceof String&&(t+="");var r=0,o={next:function(){if(r<t.length){var i=r++;return{value:e(i,t[i]),done:!1}}return o.next=function(){return{done:!0,value:void 0}},o.next()}};return o[Symbol.iterator]=function(){return o},o}(this,(function(t,e){return[t,e]}))}}));var p=googleProtobuf||self;function u(t,e,r){t=t.split("."),r=r||p,t[0]in r||void 0===r.execScript||r.execScript("var "+t[0]);for(var o;t.length&&(o=t.shift());)t.length||void 0===e?r=r[o]&&r[o]!==Object.prototype[o]?r[o]:r[o]={}:r[o]=e}function f(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var r=Object.prototype.toString.call(t);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function h(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var l="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var c=Array.prototype.forEach?function(t,e){Array.prototype.forEach.call(t,e,void 0)}:function(t,e){for(var r=t.length,o="string"==typeof t?t.split(""):t,i=0;i<r;i++)i in o&&e.call(void 0,o[i],i,t)},d=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var r=t.length,o=Array(r),i="string"==typeof t?t.split(""):t,n=0;n<r;n++)n in i&&(o[n]=e.call(void 0,i[n],n,t));return o};function y(t,e,r){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,r)}function v(t,e,r,o){var i="Assertion failed";if(r){i+=": "+r;var n=o}else t&&(i+=": "+t,n=e);throw Error(i,n||[])}function g(t,e,r){for(var o=[],i=2;i<arguments.length;++i)o[i-2]=arguments[i];return t||v("",null,e,o),t}function b(t,e){for(var r=[],o=1;o<arguments.length;++o)r[o-1]=arguments[o];throw Error("Failure"+(t?": "+t:""),r)}function m(t,e,r,o){for(var i=[],n=3;n<arguments.length;++n)i[n-3]=arguments[n];t instanceof e||v("Expected instanceof %s but got %s.",[w(e),w(t)],r,i)}function w(t){return t instanceof Function?t.displayName||t.name||"unknown type name":t instanceof Object?t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t):null===t?"null":typeof t}function j(t,e){if(this.c=t,this.b=e,this.a={},this.arrClean=!0,0<this.c.length){for(t=0;t<this.c.length;t++){var r=(e=this.c[t])[0];this.a[r.toString()]=new q(r,e[1])}this.arrClean=!0}}function O(t){this.a=0,this.b=t}function _(t,e){return t.b?(e.a||(e.a=new t.b(e.value)),e.a):e.value}function S(t){t=t.a;var e,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r}function q(t,e){this.key=t,this.value=e,this.a=void 0}function k(t){if(8192>=t.length)return String.fromCharCode.apply(null,t);for(var e="",r=0;r<t.length;r+=8192)e+=String.fromCharCode.apply(null,y(t,r,r+8192));return e}u("jspb.Map",j,void 0),j.prototype.g=function(){if(this.arrClean){if(this.b){var t,e=this.a;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t].a;r&&r.g()}}}else{for(this.c.length=0,(e=S(this)).sort(),t=0;t<e.length;t++){var o=this.a[e[t]];(r=o.a)&&r.g(),this.c.push([o.key,o.value])}this.arrClean=!0}return this.c},j.prototype.toArray=j.prototype.g,j.prototype.Mc=function(t,e){for(var r=this.g(),o=[],i=0;i<r.length;i++){var n=this.a[r[i][0].toString()];_(this,n);var s=n.a;s?(g(e),o.push([n.key,e(t,s)])):o.push([n.key,n.value])}return o},j.prototype.toObject=j.prototype.Mc,j.fromObject=function(t,e,r){e=new j([],e);for(var o=0;o<t.length;o++){var i=t[o][0],n=r(t[o][1]);e.set(i,n)}return e},O.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(O.prototype[Symbol.iterator]=function(){return this}),j.prototype.Jb=function(){return S(this).length},j.prototype.getLength=j.prototype.Jb,j.prototype.clear=function(){this.a={},this.arrClean=!1},j.prototype.clear=j.prototype.clear,j.prototype.Cb=function(t){t=t.toString();var e=this.a.hasOwnProperty(t);return delete this.a[t],this.arrClean=!1,e},j.prototype.del=j.prototype.Cb,j.prototype.Eb=function(){var t=[],e=S(this);e.sort();for(var r=0;r<e.length;r++){var o=this.a[e[r]];t.push([o.key,o.value])}return t},j.prototype.getEntryList=j.prototype.Eb,j.prototype.entries=function(){var t=[],e=S(this);e.sort();for(var r=0;r<e.length;r++){var o=this.a[e[r]];t.push([o.key,_(this,o)])}return new O(t)},j.prototype.entries=j.prototype.entries,j.prototype.keys=function(){var t=[],e=S(this);e.sort();for(var r=0;r<e.length;r++)t.push(this.a[e[r]].key);return new O(t)},j.prototype.keys=j.prototype.keys,j.prototype.values=function(){var t=[],e=S(this);e.sort();for(var r=0;r<e.length;r++)t.push(_(this,this.a[e[r]]));return new O(t)},j.prototype.values=j.prototype.values,j.prototype.forEach=function(t,e){var r=S(this);r.sort();for(var o=0;o<r.length;o++){var i=this.a[r[o]];t.call(e,_(this,i),i.key,this)}},j.prototype.forEach=j.prototype.forEach,j.prototype.set=function(t,e){var r=new q(t);return this.b?(r.a=e,r.value=e.g()):r.value=e,this.a[t.toString()]=r,this.arrClean=!1,this},j.prototype.set=j.prototype.set,j.prototype.get=function(t){if(t=this.a[t.toString()])return _(this,t)},j.prototype.get=j.prototype.get,j.prototype.has=function(t){return t.toString()in this.a},j.prototype.has=j.prototype.has,j.prototype.Jc=function(t,e,r,o,i){var n=S(this);n.sort();for(var s=0;s<n.length;s++){var a=this.a[n[s]];e.Va(t),r.call(e,1,a.key),this.b?o.call(e,2,_(this,a),i):o.call(e,2,a.value),e.Ya()}},j.prototype.serializeBinary=j.prototype.Jc,j.deserializeBinary=function(t,e,r,o,i,n,s){for(;e.oa()&&!e.bb();){var a=e.c;1==a?n=r.call(e):2==a&&(t.b?(g(i),s||(s=new t.b),o.call(e,s,i)):s=o.call(e))}g(null!=n),g(null!=s),t.set(n,s)};var R={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},A={"'":"\\'"},x={},E=null;function F(t,e){void 0===e&&(e=0),P(),e=x[e];for(var r=[],o=0;o<t.length;o+=3){var i=t[o],n=o+1<t.length,s=n?t[o+1]:0,a=o+2<t.length,p=a?t[o+2]:0,u=i>>2;i=(3&i)<<4|s>>4,s=(15&s)<<2|p>>6,p&=63,a||(p=64,n||(s=64)),r.push(e[u],e[i],e[s]||"",e[p]||"")}return r.join("")}function T(t){var e=t.length,r=3*e/4;r%3?r=Math.floor(r):-1!="=.".indexOf(t[e-1])&&(r=-1!="=.".indexOf(t[e-2])?r-2:r-1);var o=new Uint8Array(r),i=0;return function(t,e){function r(e){for(;o<t.length;){var r=t.charAt(o++),i=E[r];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return e}P();for(var o=0;;){var i=r(-1),n=r(0),s=r(64),a=r(64);if(64===a&&-1===i)break;e(i<<2|n>>4),64!=s&&(e(n<<4&240|s>>2),64!=a&&e(s<<6&192|a))}}(t,(function(t){o[i++]=t})),o.subarray(0,i)}function P(){if(!E){E={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var o=t.concat(e[r].split(""));x[r]=o;for(var i=0;i<o.length;i++){var n=o[i];void 0===E[n]&&(E[n]=i)}}}}u("jspb.ConstBinaryMessage",(function(){}),void 0),u("jspb.BinaryMessage",(function(){}),void 0),u("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),u("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),u("jspb.BinaryConstants.FieldTypeToWireType",(function(t){switch(t){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}}),void 0),u("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),u("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),u("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),u("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),u("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),u("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),u("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),u("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),u("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),u("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),u("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),u("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),u("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),u("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),u("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var I=0,N=0;function B(t){var e=t>>>0;t=Math.floor((t-e)/4294967296)>>>0,I=e,N=t}function M(t){var e=0>t,r=(t=Math.abs(t))>>>0;t=Math.floor((t-r)/4294967296),t>>>=0,e&&(t=~t>>>0,4294967295<(r=(~r>>>0)+1)&&(r=0,4294967295<++t&&(t=0))),I=r,N=t}function C(t){var e=0>t;B(t=2*Math.abs(t)),t=I;var r=N;e&&(0==t?0==r?r=t=4294967295:(r--,t=4294967295):t--),I=t,N=r}function U(t){var e=0>t?1:0;if(0===(t=e?-t:t))0<1/t?I=N=0:(N=0,I=2147483648);else if(isNaN(t))N=0,I=2147483647;else if(34028234663852886e22<t)N=0,I=(e<<31|2139095040)>>>0;else if(11754943508222875e-54>t)t=Math.round(t/Math.pow(2,-149)),N=0,I=(e<<31|t)>>>0;else{var r=Math.floor(Math.log(t)/Math.LN2);t*=Math.pow(2,-r),16777216<=(t=Math.round(8388608*t))&&++r,N=0,I=(e<<31|r+127<<23|8388607&t)>>>0}}function L(t){var e=0>t?1:0;if(0===(t=e?-t:t))N=0<1/t?0:2147483648,I=0;else if(isNaN(t))N=2147483647,I=4294967295;else if(17976931348623157e292<t)N=(e<<31|2146435072)>>>0,I=0;else if(22250738585072014e-324>t)t/=Math.pow(2,-1074),N=(e<<31|t/4294967296)>>>0,I=t>>>0;else{var r=t,o=0;if(2<=r)for(;2<=r&&1023>o;)o++,r/=2;else for(;1>r&&-1022<o;)r*=2,o--;t*=Math.pow(2,-o),N=(e<<31|o+1023<<20|1048576*t&1048575)>>>0,I=4503599627370496*t>>>0}}function D(t){var e=t.charCodeAt(4),r=t.charCodeAt(5),o=t.charCodeAt(6),i=t.charCodeAt(7);I=t.charCodeAt(0)+(t.charCodeAt(1)<<8)+(t.charCodeAt(2)<<16)+(t.charCodeAt(3)<<24)>>>0,N=e+(r<<8)+(o<<16)+(i<<24)>>>0}function V(t,e){return 4294967296*e+(t>>>0)}function $(t,e){var r=2147483648&e;return r&&(e=~e>>>0,0==(t=1+~t>>>0)&&(e=e+1>>>0)),t=V(t,e),r?-t:t}function z(t,e,r){var o=e>>31;return r(t<<1^o,(e<<1|t>>>31)^o)}function J(t,e){return W(t,e,$)}function W(t,e,r){var o=-(1&t);return r((t>>>1|e<<31)^o,e>>>1^o)}function H(t){var e=2*(t>>31)+1,r=t>>>23&255;return t&=8388607,255==r?t?NaN:1/0*e:0==r?e*Math.pow(2,-149)*t:e*Math.pow(2,r-150)*(t+Math.pow(2,23))}function G(t,e){var r=2*(e>>31)+1,o=e>>>20&2047;return t=4294967296*(1048575&e)+t,2047==o?t?NaN:1/0*r:0==o?r*Math.pow(2,-1074)*t:r*Math.pow(2,o-1075)*(t+4503599627370496)}function Z(t,e){return String.fromCharCode(t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255,e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255)}function X(t,e){function r(t,e){return t=t?String(t):"",e?"0000000".slice(t.length)+t:t}if(2097151>=e)return""+V(t,e);var o=(t>>>24|e<<8)>>>0&16777215;return t=(16777215&t)+6777216*o+6710656*(e=e>>16&65535),o+=8147497*e,e*=2,1e7<=t&&(o+=Math.floor(t/1e7),t%=1e7),1e7<=o&&(e+=Math.floor(o/1e7),o%=1e7),r(e,0)+r(o,e)+r(t,1)}function K(t,e){var r=2147483648&e;return r&&(e=~e+(0==(t=1+~t>>>0)?1:0)>>>0),t=X(t,e),r?"-"+t:t}function Y(t,e){D(t),t=I;var r=N;return e?K(t,r):X(t,r)}function Q(t){function e(t,e){for(var r=0;8>r&&(1!==t||0<e);r++)e=t*o[r]+e,o[r]=255&e,e>>>=8}g(0<t.length);var r=!1;"-"===t[0]&&(r=!0,t=t.slice(1));for(var o=[0,0,0,0,0,0,0,0],i=0;i<t.length;i++)e(10,t.charCodeAt(i)-48);return r&&(function(){for(var t=0;8>t;t++)o[t]=255&~o[t]}(),e(1,1)),k(o)}function tt(t){return String.fromCharCode(10>t?48+t:87+t)}function et(t){return 97<=t?t-97+10:t-48}function rt(t,e,r,o,i){var n=0;if(128>o)for(;e<r&&t[e++]==o;)n++,e+=i;else for(;e<r;){for(var s=o;128<s;){if(t[e++]!=(127&s|128))return n;s>>=7}if(t[e++]!=s)break;n++,e+=i}return n}function ot(t){return t.constructor===Uint8Array?t:t.constructor===ArrayBuffer||t.constructor===Array?new Uint8Array(t):t.constructor===String?T(t):t instanceof Uint8Array?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):(b("Type not convertible to Uint8Array."),new Uint8Array(0))}function it(t,e,r){this.b=null,this.a=this.c=this.h=0,this.v=!1,t&&this.H(t,e,r)}u("jspb.utils.getSplit64Low",(function(){return I}),void 0),u("jspb.utils.getSplit64High",(function(){return N}),void 0),u("jspb.utils.splitUint64",B,void 0),u("jspb.utils.splitInt64",M,void 0),u("jspb.utils.splitZigzag64",C,void 0),u("jspb.utils.splitFloat32",U,void 0),u("jspb.utils.splitFloat64",L,void 0),u("jspb.utils.splitHash64",D,void 0),u("jspb.utils.joinUint64",V,void 0),u("jspb.utils.joinInt64",$,void 0),u("jspb.utils.toZigzag64",z,void 0),u("jspb.utils.joinZigzag64",J,void 0),u("jspb.utils.fromZigzag64",W,void 0),u("jspb.utils.joinFloat32",H,void 0),u("jspb.utils.joinFloat64",G,void 0),u("jspb.utils.joinHash64",Z,void 0),u("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),u("jspb.utils.joinUnsignedDecimalString",X,void 0),u("jspb.utils.joinSignedDecimalString",K,void 0),u("jspb.utils.hash64ToDecimalString",Y,void 0),u("jspb.utils.hash64ArrayToDecimalStrings",(function(t,e){for(var r=Array(t.length),o=0;o<t.length;o++)r[o]=Y(t[o],e);return r}),void 0),u("jspb.utils.decimalStringToHash64",Q,void 0),u("jspb.utils.splitDecimalString",(function(t){D(Q(t))}),void 0),u("jspb.utils.hash64ToHexString",(function(t){var e=Array(18);e[0]="0",e[1]="x";for(var r=0;8>r;r++){var o=t.charCodeAt(7-r);e[2*r+2]=tt(o>>4),e[2*r+3]=tt(15&o)}return e.join("")}),void 0),u("jspb.utils.hexStringToHash64",(function(t){g(18==(t=t.toLowerCase()).length),g("0"==t[0]),g("x"==t[1]);for(var e="",r=0;8>r;r++)e=String.fromCharCode(16*et(t.charCodeAt(2*r+2))+et(t.charCodeAt(2*r+3)))+e;return e}),void 0),u("jspb.utils.hash64ToNumber",(function(t,e){D(t),t=I;var r=N;return e?$(t,r):V(t,r)}),void 0),u("jspb.utils.numberToHash64",(function(t){return M(t),Z(I,N)}),void 0),u("jspb.utils.countVarints",(function(t,e,r){for(var o=0,i=e;i<r;i++)o+=t[i]>>7;return r-e-o}),void 0),u("jspb.utils.countVarintFields",(function(t,e,r,o){var i=0;if(128>(o*=8))for(;e<r&&t[e++]==o;)for(i++;;){var n=t[e++];if(!(128&n))break}else for(;e<r;){for(n=o;128<n;){if(t[e]!=(127&n|128))return i;e++,n>>=7}if(t[e++]!=n)break;for(i++;128&(n=t[e++]););}return i}),void 0),u("jspb.utils.countFixed32Fields",(function(t,e,r,o){return rt(t,e,r,8*o+5,4)}),void 0),u("jspb.utils.countFixed64Fields",(function(t,e,r,o){return rt(t,e,r,8*o+1,8)}),void 0),u("jspb.utils.countDelimitedFields",(function(t,e,r,o){var i=0;for(o=8*o+2;e<r;){for(var n=o;128<n;){if(t[e++]!=(127&n|128))return i;n>>=7}if(t[e++]!=n)break;i++;for(var s=0,a=1;s+=(127&(n=t[e++]))*a,a*=128,128&n;);e+=s}return i}),void 0),u("jspb.utils.debugBytesToTextFormat",(function(t){var e='"';if(t){t=ot(t);for(var r=0;r<t.length;r++)e+="\\x",16>t[r]&&(e+="0"),e+=t[r].toString(16)}return e+'"'}),void 0),u("jspb.utils.debugScalarToTextFormat",(function(t){if("string"==typeof t){t=String(t);for(var e=['"'],r=0;r<t.length;r++){var o,i=t.charAt(r),n=i.charCodeAt(0),s=r+1;(o=R[i])||(31<n&&127>n||((n=i)in A?i=A[n]:n in R?i=A[n]=R[n]:(31<(o=n.charCodeAt(0))&&127>o?i=n:(256>o?(i="\\x",(16>o||256<o)&&(i+="0")):(i="\\u",4096>o&&(i+="0")),i+=o.toString(16).toUpperCase()),i=A[n]=i)),o=i),e[s]=o}e.push('"'),t=e.join("")}else t=t.toString();return t}),void 0),u("jspb.utils.stringToByteArray",(function(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++){var o=t.charCodeAt(r);if(255<o)throw Error("Conversion error: string contains codepoint outside of byte range");e[r]=o}return e}),void 0),u("jspb.utils.byteSourceToUint8Array",ot,void 0),u("jspb.BinaryDecoder",it,void 0);var nt=[];function st(t,e,r){if(nt.length){var o=nt.pop();return t&&o.H(t,e,r),o}return new it(t,e,r)}function at(t,e,r){this.a=st(t,e,r),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}it.getInstanceCacheLength=function(){return nt.length},it.alloc=st,it.prototype.Ca=function(){this.clear(),100>nt.length&&nt.push(this)},it.prototype.free=it.prototype.Ca,it.prototype.clone=function(){return st(this.b,this.h,this.c-this.h)},it.prototype.clone=it.prototype.clone,it.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},it.prototype.clear=it.prototype.clear,it.prototype.Y=function(){return this.b},it.prototype.getBuffer=it.prototype.Y,it.prototype.H=function(t,e,r){this.b=ot(t),this.h=void 0!==e?e:0,this.c=void 0!==r?this.h+r:this.b.length,this.a=this.h},it.prototype.setBlock=it.prototype.H,it.prototype.Db=function(){return this.c},it.prototype.getEnd=it.prototype.Db,it.prototype.setEnd=function(t){this.c=t},it.prototype.setEnd=it.prototype.setEnd,it.prototype.reset=function(){this.a=this.h},it.prototype.reset=it.prototype.reset,it.prototype.B=function(){return this.a},it.prototype.getCursor=it.prototype.B,it.prototype.Ma=function(t){this.a=t},it.prototype.setCursor=it.prototype.Ma,it.prototype.advance=function(t){this.a+=t,g(this.a<=this.c)},it.prototype.advance=it.prototype.advance,it.prototype.ya=function(){return this.a==this.c},it.prototype.atEnd=it.prototype.ya,it.prototype.Qb=function(){return this.a>this.c},it.prototype.pastEnd=it.prototype.Qb,it.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},it.prototype.getError=it.prototype.getError,it.prototype.w=function(t){for(var e=128,r=0,o=0,i=0;4>i&&128<=e;i++)r|=(127&(e=this.b[this.a++]))<<7*i;if(128<=e&&(r|=(127&(e=this.b[this.a++]))<<28,o|=(127&e)>>4),128<=e)for(i=0;5>i&&128<=e;i++)o|=(127&(e=this.b[this.a++]))<<7*i+3;if(128>e)return t(r>>>0,o>>>0);b("Failed to read varint, encoding is invalid."),this.v=!0},it.prototype.readSplitVarint64=it.prototype.w,it.prototype.ea=function(t){return this.w((function(e,r){return W(e,r,t)}))},it.prototype.readSplitZigzagVarint64=it.prototype.ea,it.prototype.ta=function(t){var e=this.b,r=this.a;this.a+=8;for(var o=0,i=0,n=r+7;n>=r;n--)o=o<<8|e[n],i=i<<8|e[n+4];return t(o,i)},it.prototype.readSplitFixed64=it.prototype.ta,it.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},it.prototype.skipVarint=it.prototype.kb,it.prototype.mb=function(t){for(;128<t;)this.a--,t>>>=7;this.a--},it.prototype.unskipVarint=it.prototype.mb,it.prototype.o=function(){var t=this.b,e=t[this.a],r=127&e;return 128>e?(this.a+=1,g(this.a<=this.c),r):(r|=(127&(e=t[this.a+1]))<<7,128>e?(this.a+=2,g(this.a<=this.c),r):(r|=(127&(e=t[this.a+2]))<<14,128>e?(this.a+=3,g(this.a<=this.c),r):(r|=(127&(e=t[this.a+3]))<<21,128>e?(this.a+=4,g(this.a<=this.c),r):(r|=(15&(e=t[this.a+4]))<<28,128>e?(this.a+=5,g(this.a<=this.c),r>>>0):(this.a+=5,128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&g(!1),g(this.a<=this.c),r)))))},it.prototype.readUnsignedVarint32=it.prototype.o,it.prototype.da=function(){return~~this.o()},it.prototype.readSignedVarint32=it.prototype.da,it.prototype.O=function(){return this.o().toString()},it.prototype.Ea=function(){return this.da().toString()},it.prototype.readSignedVarint32String=it.prototype.Ea,it.prototype.Ia=function(){var t=this.o();return t>>>1^-(1&t)},it.prototype.readZigzagVarint32=it.prototype.Ia,it.prototype.Ga=function(){return this.w(V)},it.prototype.readUnsignedVarint64=it.prototype.Ga,it.prototype.Ha=function(){return this.w(X)},it.prototype.readUnsignedVarint64String=it.prototype.Ha,it.prototype.sa=function(){return this.w($)},it.prototype.readSignedVarint64=it.prototype.sa,it.prototype.Fa=function(){return this.w(K)},it.prototype.readSignedVarint64String=it.prototype.Fa,it.prototype.Ja=function(){return this.w(J)},it.prototype.readZigzagVarint64=it.prototype.Ja,it.prototype.fb=function(){return this.ea(Z)},it.prototype.readZigzagVarintHash64=it.prototype.fb,it.prototype.Ka=function(){return this.ea(K)},it.prototype.readZigzagVarint64String=it.prototype.Ka,it.prototype.Gc=function(){var t=this.b[this.a];return this.a+=1,g(this.a<=this.c),t},it.prototype.readUint8=it.prototype.Gc,it.prototype.Ec=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,g(this.a<=this.c),t|e<<8},it.prototype.readUint16=it.prototype.Ec,it.prototype.m=function(){var t=this.b[this.a],e=this.b[this.a+1],r=this.b[this.a+2],o=this.b[this.a+3];return this.a+=4,g(this.a<=this.c),(t|e<<8|r<<16|o<<24)>>>0},it.prototype.readUint32=it.prototype.m,it.prototype.ga=function(){return V(this.m(),this.m())},it.prototype.readUint64=it.prototype.ga,it.prototype.ha=function(){return X(this.m(),this.m())},it.prototype.readUint64String=it.prototype.ha,it.prototype.Xb=function(){var t=this.b[this.a];return this.a+=1,g(this.a<=this.c),t<<24>>24},it.prototype.readInt8=it.prototype.Xb,it.prototype.Vb=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,g(this.a<=this.c),(t|e<<8)<<16>>16},it.prototype.readInt16=it.prototype.Vb,it.prototype.P=function(){var t=this.b[this.a],e=this.b[this.a+1],r=this.b[this.a+2],o=this.b[this.a+3];return this.a+=4,g(this.a<=this.c),t|e<<8|r<<16|o<<24},it.prototype.readInt32=it.prototype.P,it.prototype.ba=function(){return $(this.m(),this.m())},it.prototype.readInt64=it.prototype.ba,it.prototype.ca=function(){return K(this.m(),this.m())},it.prototype.readInt64String=it.prototype.ca,it.prototype.aa=function(){return H(this.m())},it.prototype.readFloat=it.prototype.aa,it.prototype.Z=function(){return G(this.m(),this.m())},it.prototype.readDouble=it.prototype.Z,it.prototype.pa=function(){return!!this.b[this.a++]},it.prototype.readBool=it.prototype.pa,it.prototype.ra=function(){return this.da()},it.prototype.readEnum=it.prototype.ra,it.prototype.fa=function(t){var e=this.b,r=this.a;t=r+t;for(var o=[],i="";r<t;){var n=e[r++];if(128>n)o.push(n);else{if(192>n)continue;if(224>n){var s=e[r++];o.push((31&n)<<6|63&s)}else if(240>n){s=e[r++];var a=e[r++];o.push((15&n)<<12|(63&s)<<6|63&a)}else if(248>n){n=(7&n)<<18|(63&(s=e[r++]))<<12|(63&(a=e[r++]))<<6|63&e[r++],n-=65536,o.push(55296+(n>>10&1023),56320+(1023&n))}}8192<=o.length&&(i+=String.fromCharCode.apply(null,o),o.length=0)}return i+=k(o),this.a=r,i},it.prototype.readString=it.prototype.fa,it.prototype.Dc=function(){var t=this.o();return this.fa(t)},it.prototype.readStringWithLength=it.prototype.Dc,it.prototype.qa=function(t){if(0>t||this.a+t>this.b.length)return this.v=!0,b("Invalid byte length!"),new Uint8Array(0);var e=this.b.subarray(this.a,this.a+t);return this.a+=t,g(this.a<=this.c),e},it.prototype.readBytes=it.prototype.qa,it.prototype.ia=function(){return this.w(Z)},it.prototype.readVarintHash64=it.prototype.ia,it.prototype.$=function(){var t=this.b,e=this.a,r=t[e],o=t[e+1],i=t[e+2],n=t[e+3],s=t[e+4],a=t[e+5],p=t[e+6];return t=t[e+7],this.a+=8,String.fromCharCode(r,o,i,n,s,a,p,t)},it.prototype.readFixedHash64=it.prototype.$,u("jspb.BinaryReader",at,void 0);var pt=[];function ut(t,e,r){if(pt.length){var o=pt.pop();return t&&o.a.H(t,e,r),o}return new at(t,e,r)}function ft(t,e){g(2==t.b);var r=t.a.o();r=t.a.B()+r;for(var o=[];t.a.B()<r;)o.push(e.call(t.a));return o}function ht(t,e,r,o,i){this.ma=t,this.Ba=e,this.la=r,this.Na=o,this.na=i}function lt(t,e,r,o,i,n){this.Za=t,this.za=e,this.Aa=r,this.Wa=o,this.Ab=i,this.Nb=n}function ct(){}at.clearInstanceCache=function(){pt=[]},at.getInstanceCacheLength=function(){return pt.length},at.alloc=ut,at.prototype.zb=ut,at.prototype.alloc=at.prototype.zb,at.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>pt.length&&pt.push(this)},at.prototype.free=at.prototype.Ca,at.prototype.Fb=function(){return this.O},at.prototype.getFieldCursor=at.prototype.Fb,at.prototype.B=function(){return this.a.B()},at.prototype.getCursor=at.prototype.B,at.prototype.Y=function(){return this.a.Y()},at.prototype.getBuffer=at.prototype.Y,at.prototype.Hb=function(){return this.c},at.prototype.getFieldNumber=at.prototype.Hb,at.prototype.Lb=function(){return this.b},at.prototype.getWireType=at.prototype.Lb,at.prototype.Mb=function(){return 2==this.b},at.prototype.isDelimited=at.prototype.Mb,at.prototype.bb=function(){return 4==this.b},at.prototype.isEndGroup=at.prototype.bb,at.prototype.getError=function(){return this.h||this.a.getError()},at.prototype.getError=at.prototype.getError,at.prototype.H=function(t,e,r){this.a.H(t,e,r),this.b=this.c=-1},at.prototype.setBlock=at.prototype.H,at.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},at.prototype.reset=at.prototype.reset,at.prototype.advance=function(t){this.a.advance(t)},at.prototype.advance=at.prototype.advance,at.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return b("Decoder hit an error"),!1;this.O=this.a.B();var t=this.a.o(),e=t>>>3;return 0!=(t&=7)&&5!=t&&1!=t&&2!=t&&3!=t&&4!=t?(b("Invalid wire type: %s (at position %s)",t,this.O),this.h=!0,!1):(this.c=e,this.b=t,!0)},at.prototype.nextField=at.prototype.oa,at.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},at.prototype.unskipHeader=at.prototype.Oa,at.prototype.Lc=function(){var t=this.c;for(this.Oa();this.oa()&&this.c==t;)this.C();this.a.ya()||this.Oa()},at.prototype.skipMatchingFields=at.prototype.Lc,at.prototype.lb=function(){0!=this.b?(b("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},at.prototype.skipVarintField=at.prototype.lb,at.prototype.gb=function(){if(2!=this.b)b("Invalid wire type for skipDelimitedField"),this.C();else{var t=this.a.o();this.a.advance(t)}},at.prototype.skipDelimitedField=at.prototype.gb,at.prototype.hb=function(){5!=this.b?(b("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},at.prototype.skipFixed32Field=at.prototype.hb,at.prototype.ib=function(){1!=this.b?(b("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},at.prototype.skipFixed64Field=at.prototype.ib,at.prototype.jb=function(){for(var t=this.c;;){if(!this.oa()){b("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=t&&(b("Unmatched end-group tag"),this.h=!0);break}this.C()}},at.prototype.skipGroup=at.prototype.jb,at.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:b("Invalid wire encoding for field.")}},at.prototype.skipField=at.prototype.C,at.prototype.Hc=function(t,e){null===this.v&&(this.v={}),g(!this.v[t]),this.v[t]=e},at.prototype.registerReadCallback=at.prototype.Hc,at.prototype.Ic=function(t){return g(null!==this.v),g(t=this.v[t]),t(this)},at.prototype.runReadCallback=at.prototype.Ic,at.prototype.Yb=function(t,e){g(2==this.b);var r=this.a.c,o=this.a.o();o=this.a.B()+o,this.a.setEnd(o),e(t,this),this.a.Ma(o),this.a.setEnd(r)},at.prototype.readMessage=at.prototype.Yb,at.prototype.Ub=function(t,e,r){g(3==this.b),g(this.c==t),r(e,this),this.h||4==this.b||(b("Group submessage did not end with an END_GROUP tag"),this.h=!0)},at.prototype.readGroup=at.prototype.Ub,at.prototype.Gb=function(){g(2==this.b);var t=this.a.o(),e=this.a.B(),r=e+t;return t=st(this.a.Y(),e,t),this.a.Ma(r),t},at.prototype.getFieldDecoder=at.prototype.Gb,at.prototype.P=function(){return g(0==this.b),this.a.da()},at.prototype.readInt32=at.prototype.P,at.prototype.Wb=function(){return g(0==this.b),this.a.Ea()},at.prototype.readInt32String=at.prototype.Wb,at.prototype.ba=function(){return g(0==this.b),this.a.sa()},at.prototype.readInt64=at.prototype.ba,at.prototype.ca=function(){return g(0==this.b),this.a.Fa()},at.prototype.readInt64String=at.prototype.ca,at.prototype.m=function(){return g(0==this.b),this.a.o()},at.prototype.readUint32=at.prototype.m,at.prototype.Fc=function(){return g(0==this.b),this.a.O()},at.prototype.readUint32String=at.prototype.Fc,at.prototype.ga=function(){return g(0==this.b),this.a.Ga()},at.prototype.readUint64=at.prototype.ga,at.prototype.ha=function(){return g(0==this.b),this.a.Ha()},at.prototype.readUint64String=at.prototype.ha,at.prototype.zc=function(){return g(0==this.b),this.a.Ia()},at.prototype.readSint32=at.prototype.zc,at.prototype.Ac=function(){return g(0==this.b),this.a.Ja()},at.prototype.readSint64=at.prototype.Ac,at.prototype.Bc=function(){return g(0==this.b),this.a.Ka()},at.prototype.readSint64String=at.prototype.Bc,at.prototype.Rb=function(){return g(5==this.b),this.a.m()},at.prototype.readFixed32=at.prototype.Rb,at.prototype.Sb=function(){return g(1==this.b),this.a.ga()},at.prototype.readFixed64=at.prototype.Sb,at.prototype.Tb=function(){return g(1==this.b),this.a.ha()},at.prototype.readFixed64String=at.prototype.Tb,at.prototype.vc=function(){return g(5==this.b),this.a.P()},at.prototype.readSfixed32=at.prototype.vc,at.prototype.wc=function(){return g(5==this.b),this.a.P().toString()},at.prototype.readSfixed32String=at.prototype.wc,at.prototype.xc=function(){return g(1==this.b),this.a.ba()},at.prototype.readSfixed64=at.prototype.xc,at.prototype.yc=function(){return g(1==this.b),this.a.ca()},at.prototype.readSfixed64String=at.prototype.yc,at.prototype.aa=function(){return g(5==this.b),this.a.aa()},at.prototype.readFloat=at.prototype.aa,at.prototype.Z=function(){return g(1==this.b),this.a.Z()},at.prototype.readDouble=at.prototype.Z,at.prototype.pa=function(){return g(0==this.b),!!this.a.o()},at.prototype.readBool=at.prototype.pa,at.prototype.ra=function(){return g(0==this.b),this.a.sa()},at.prototype.readEnum=at.prototype.ra,at.prototype.fa=function(){g(2==this.b);var t=this.a.o();return this.a.fa(t)},at.prototype.readString=at.prototype.fa,at.prototype.qa=function(){g(2==this.b);var t=this.a.o();return this.a.qa(t)},at.prototype.readBytes=at.prototype.qa,at.prototype.ia=function(){return g(0==this.b),this.a.ia()},at.prototype.readVarintHash64=at.prototype.ia,at.prototype.Cc=function(){return g(0==this.b),this.a.fb()},at.prototype.readSintHash64=at.prototype.Cc,at.prototype.w=function(t){return g(0==this.b),this.a.w(t)},at.prototype.readSplitVarint64=at.prototype.w,at.prototype.ea=function(t){return g(0==this.b),this.a.w((function(e,r){return W(e,r,t)}))},at.prototype.readSplitZigzagVarint64=at.prototype.ea,at.prototype.$=function(){return g(1==this.b),this.a.$()},at.prototype.readFixedHash64=at.prototype.$,at.prototype.ta=function(t){return g(1==this.b),this.a.ta(t)},at.prototype.readSplitFixed64=at.prototype.ta,at.prototype.gc=function(){return ft(this,this.a.da)},at.prototype.readPackedInt32=at.prototype.gc,at.prototype.hc=function(){return ft(this,this.a.Ea)},at.prototype.readPackedInt32String=at.prototype.hc,at.prototype.ic=function(){return ft(this,this.a.sa)},at.prototype.readPackedInt64=at.prototype.ic,at.prototype.jc=function(){return ft(this,this.a.Fa)},at.prototype.readPackedInt64String=at.prototype.jc,at.prototype.qc=function(){return ft(this,this.a.o)},at.prototype.readPackedUint32=at.prototype.qc,at.prototype.rc=function(){return ft(this,this.a.O)},at.prototype.readPackedUint32String=at.prototype.rc,at.prototype.sc=function(){return ft(this,this.a.Ga)},at.prototype.readPackedUint64=at.prototype.sc,at.prototype.tc=function(){return ft(this,this.a.Ha)},at.prototype.readPackedUint64String=at.prototype.tc,at.prototype.nc=function(){return ft(this,this.a.Ia)},at.prototype.readPackedSint32=at.prototype.nc,at.prototype.oc=function(){return ft(this,this.a.Ja)},at.prototype.readPackedSint64=at.prototype.oc,at.prototype.pc=function(){return ft(this,this.a.Ka)},at.prototype.readPackedSint64String=at.prototype.pc,at.prototype.bc=function(){return ft(this,this.a.m)},at.prototype.readPackedFixed32=at.prototype.bc,at.prototype.cc=function(){return ft(this,this.a.ga)},at.prototype.readPackedFixed64=at.prototype.cc,at.prototype.dc=function(){return ft(this,this.a.ha)},at.prototype.readPackedFixed64String=at.prototype.dc,at.prototype.kc=function(){return ft(this,this.a.P)},at.prototype.readPackedSfixed32=at.prototype.kc,at.prototype.lc=function(){return ft(this,this.a.ba)},at.prototype.readPackedSfixed64=at.prototype.lc,at.prototype.mc=function(){return ft(this,this.a.ca)},at.prototype.readPackedSfixed64String=at.prototype.mc,at.prototype.fc=function(){return ft(this,this.a.aa)},at.prototype.readPackedFloat=at.prototype.fc,at.prototype.$b=function(){return ft(this,this.a.Z)},at.prototype.readPackedDouble=at.prototype.$b,at.prototype.Zb=function(){return ft(this,this.a.pa)},at.prototype.readPackedBool=at.prototype.Zb,at.prototype.ac=function(){return ft(this,this.a.ra)},at.prototype.readPackedEnum=at.prototype.ac,at.prototype.uc=function(){return ft(this,this.a.ia)},at.prototype.readPackedVarintHash64=at.prototype.uc,at.prototype.ec=function(){return ft(this,this.a.$)},at.prototype.readPackedFixedHash64=at.prototype.ec,u("jspb.ExtensionFieldInfo",ht,void 0),u("jspb.ExtensionFieldBinaryInfo",lt,void 0),ht.prototype.F=function(){return!!this.la},ht.prototype.isMessageType=ht.prototype.F,u("jspb.Message",ct,void 0),ct.GENERATE_TO_OBJECT=!0,ct.GENERATE_FROM_OBJECT=!0;var dt="function"==typeof Uint8Array;ct.prototype.Ib=function(){return this.b},ct.prototype.getJsPbMessageId=ct.prototype.Ib,ct.initialize=function(t,e,r,o,i,n){if(t.f=null,e||(e=r?[r]:[]),t.b=r?String(r):void 0,t.D=0===r?-1:0,t.u=e,e=-1,!(r=t.u.length)||(e=r-1,null===(r=t.u[e])||"object"!=typeof r||Array.isArray(r)||dt&&r instanceof Uint8Array)?-1<o?(t.G=Math.max(o,e+1-t.D),t.i=null):t.G=Number.MAX_VALUE:(t.G=e-t.D,t.i=r),t.a={},i)for(o=0;o<i.length;o++)(e=i[o])<t.G?(e+=t.D,t.u[e]=t.u[e]||yt):(vt(t),t.i[e]=t.i[e]||yt);if(n&&n.length)for(o=0;o<n.length;o++)At(t,n[o])};var yt=Object.freeze?Object.freeze([]):[];function vt(t){var e=t.G+t.D;t.u[e]||(t.i=t.u[e]={})}function gt(t,e,r){for(var o=[],i=0;i<t.length;i++)o[i]=e.call(t[i],r,t[i]);return o}function bt(t,e){if(e<t.G){e+=t.D;var r=t.u[e];return r===yt?t.u[e]=[]:r}if(t.i)return(r=t.i[e])===yt?t.i[e]=[]:r}function mt(t,e){return null==(t=bt(t,e))?t:+t}function wt(t,e){return null==(t=bt(t,e))?t:!!t}function jt(t){return null==t||"string"==typeof t?t:dt&&t instanceof Uint8Array?F(t):(b("Cannot coerce to b64 string: "+f(t)),null)}function Ot(t){return null==t||t instanceof Uint8Array?t:"string"==typeof t?T(t):(b("Cannot coerce to Uint8Array: "+f(t)),null)}function _t(t){if(t&&1<t.length){var e=f(t[0]);c(t,(function(t){f(t)!=e&&b("Inconsistent type in JSPB repeated field array. Got "+f(t)+" expected "+e)}))}}function St(t,e,r){return null==(t=bt(t,e))?r:t}function qt(t,e,r){return m(t,ct),e<t.G?t.u[e+t.D]=r:(vt(t),t.i[e]=r),t}function kt(t,e,r,o){return m(t,ct),r!==o?qt(t,e,r):e<t.G?t.u[e+t.D]=null:(vt(t),delete t.i[e]),t}function Rt(t,e,r,o){return m(t,ct),(r=At(t,r))&&r!==e&&void 0!==o&&(t.f&&r in t.f&&(t.f[r]=void 0),qt(t,r,void 0)),qt(t,e,o)}function At(t,e){for(var r,o,i=0;i<e.length;i++){var n=e[i],s=bt(t,n);null!=s&&(r=n,o=s,qt(t,n,void 0))}return r?(qt(t,r,o),r):0}function xt(t,e,r){if(t.f||(t.f={}),!t.f[r]){for(var o=bt(t,r),i=[],n=0;n<o.length;n++)i[n]=new e(o[n]);t.f[r]=i}}function Et(t){if(t.f)for(var e in t.f){var r=t.f[e];if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]&&r[o].g();else r&&r.g()}}function Ft(t,e){t=t||{},e=e||{};var r,o={};for(r in t)o[r]=0;for(r in e)o[r]=0;for(r in o)if(!Tt(t[r],e[r]))return!1;return!0}function Tt(t,e){if(t==e)return!0;if(!h(t)||!h(e))return!!("number"==typeof t&&isNaN(t)||"number"==typeof e&&isNaN(e))&&String(t)==String(e);if(t.constructor!=e.constructor)return!1;if(dt&&t.constructor===Uint8Array){if(t.length!=e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}if(t.constructor===Array){var o=void 0,i=void 0,n=Math.max(t.length,e.length);for(r=0;r<n;r++){var s=t[r],a=e[r];if(s&&s.constructor==Object&&(g(void 0===o),g(r===t.length-1),o=s,s=void 0),a&&a.constructor==Object&&(g(void 0===i),g(r===e.length-1),i=a,a=void 0),!Tt(s,a))return!1}return!o&&!i||Ft(o=o||{},i=i||{})}if(t.constructor===Object)return Ft(t,e);throw Error("Invalid type in JSPB array")}function Pt(t){return new t.constructor(It(t.g()))}function It(t){if(Array.isArray(t)){for(var e=Array(t.length),r=0;r<t.length;r++){var o=t[r];null!=o&&(e[r]="object"==typeof o?It(g(o)):o)}return e}if(dt&&t instanceof Uint8Array)return new Uint8Array(t);for(r in e={},t)null!=(o=t[r])&&(e[r]="object"==typeof o?It(g(o)):o);return e}ct.toObjectList=gt,ct.toObjectExtension=function(t,e,r,o,i){for(var n in r){var s=r[n],a=o.call(t,s);if(null!=a){for(var p in s.Ba)if(s.Ba.hasOwnProperty(p))break;e[p]=s.Na?s.na?gt(a,s.Na,i):s.Na(i,a):a}}},ct.serializeBinaryExtensions=function(t,e,r,o){for(var i in r){var n=r[i],s=n.Za;if(!n.Aa)throw Error("Message extension present that was generated without binary serialization support");var a=o.call(t,s);if(null!=a)if(s.F()){if(!n.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");n.Aa.call(e,s.ma,a,n.Wa)}else n.Aa.call(e,s.ma,a)}},ct.readBinaryExtension=function(t,e,r,o,i){var n=r[e.c];if(n){if(r=n.Za,!n.za)throw Error("Deserializing extension whose generated code does not support binary format");if(r.F()){var s=new r.la;n.za.call(e,s,n.Ab)}else s=n.za.call(e);r.na&&!n.Nb?(e=o.call(t,r))?e.push(s):i.call(t,r,[s]):i.call(t,r,s)}else e.C()},ct.getField=bt,ct.getRepeatedField=function(t,e){return bt(t,e)},ct.getOptionalFloatingPointField=mt,ct.getBooleanField=wt,ct.getRepeatedFloatingPointField=function(t,e){var r=bt(t,e);if(t.a||(t.a={}),!t.a[e]){for(var o=0;o<r.length;o++)r[o]=+r[o];t.a[e]=!0}return r},ct.getRepeatedBooleanField=function(t,e){var r=bt(t,e);if(t.a||(t.a={}),!t.a[e]){for(var o=0;o<r.length;o++)r[o]=!!r[o];t.a[e]=!0}return r},ct.bytesAsB64=jt,ct.bytesAsU8=Ot,ct.bytesListAsB64=function(t){return _t(t),t.length&&"string"!=typeof t[0]?d(t,jt):t},ct.bytesListAsU8=function(t){return _t(t),!t.length||t[0]instanceof Uint8Array?t:d(t,Ot)},ct.getFieldWithDefault=St,ct.getBooleanFieldWithDefault=function(t,e,r){return null==(t=wt(t,e))?r:t},ct.getFloatingPointFieldWithDefault=function(t,e,r){return null==(t=mt(t,e))?r:t},ct.getFieldProto3=St,ct.getMapField=function(t,e,r,o){if(t.f||(t.f={}),e in t.f)return t.f[e];var i=bt(t,e);if(!i){if(r)return;qt(t,e,i=[])}return t.f[e]=new j(i,o)},ct.setField=qt,ct.setProto3IntField=function(t,e,r){return kt(t,e,r,0)},ct.setProto3FloatField=function(t,e,r){return kt(t,e,r,0)},ct.setProto3BooleanField=function(t,e,r){return kt(t,e,r,!1)},ct.setProto3StringField=function(t,e,r){return kt(t,e,r,"")},ct.setProto3BytesField=function(t,e,r){return kt(t,e,r,"")},ct.setProto3EnumField=function(t,e,r){return kt(t,e,r,0)},ct.setProto3StringIntField=function(t,e,r){return kt(t,e,r,"0")},ct.addToRepeatedField=function(t,e,r,o){return m(t,ct),e=bt(t,e),null!=o?e.splice(o,0,r):e.push(r),t},ct.setOneofField=Rt,ct.computeOneofCase=At,ct.getWrapperField=function(t,e,r,o){if(t.f||(t.f={}),!t.f[r]){var i=bt(t,r);(o||i)&&(t.f[r]=new e(i))}return t.f[r]},ct.getRepeatedWrapperField=function(t,e,r){return xt(t,e,r),(e=t.f[r])==yt&&(e=t.f[r]=[]),e},ct.setWrapperField=function(t,e,r){m(t,ct),t.f||(t.f={});var o=r?r.g():r;return t.f[e]=r,qt(t,e,o)},ct.setOneofWrapperField=function(t,e,r,o){m(t,ct),t.f||(t.f={});var i=o?o.g():o;return t.f[e]=o,Rt(t,e,r,i)},ct.setRepeatedWrapperField=function(t,e,r){m(t,ct),t.f||(t.f={}),r=r||[];for(var o=[],i=0;i<r.length;i++)o[i]=r[i].g();return t.f[e]=r,qt(t,e,o)},ct.addToRepeatedWrapperField=function(t,e,r,o,i){xt(t,o,e);var n=t.f[e];return n||(n=t.f[e]=[]),r=r||new o,t=bt(t,e),null!=i?(n.splice(i,0,r),t.splice(i,0,r.g())):(n.push(r),t.push(r.g())),r},ct.toMap=function(t,e,r,o){for(var i={},n=0;n<t.length;n++)i[e.call(t[n])]=r?r.call(t[n],o,t[n]):t[n];return i},ct.prototype.g=function(){return Et(this),this.u},ct.prototype.toArray=ct.prototype.g,ct.prototype.toString=function(){return Et(this),this.u.toString()},ct.prototype.getExtension=function(t){if(this.i){this.f||(this.f={});var e=t.ma;if(t.na){if(t.F())return this.f[e]||(this.f[e]=d(this.i[e]||[],(function(e){return new t.la(e)}))),this.f[e]}else if(t.F())return!this.f[e]&&this.i[e]&&(this.f[e]=new t.la(this.i[e])),this.f[e];return this.i[e]}},ct.prototype.getExtension=ct.prototype.getExtension,ct.prototype.Kc=function(t,e){this.f||(this.f={}),vt(this);var r=t.ma;return t.na?(e=e||[],t.F()?(this.f[r]=e,this.i[r]=d(e,(function(t){return t.g()}))):this.i[r]=e):t.F()?(this.f[r]=e,this.i[r]=e?e.g():e):this.i[r]=e,this},ct.prototype.setExtension=ct.prototype.Kc,ct.difference=function(t,e){if(!(t instanceof e.constructor))throw Error("Messages have different types.");var r=t.g();e=e.g();var o=[],i=0,n=r.length>e.length?r.length:e.length;for(t.b&&(o[0]=t.b,i=1);i<n;i++)Tt(r[i],e[i])||(o[i]=e[i]);return new t.constructor(o)},ct.equals=function(t,e){return t==e||!(!t||!e)&&t instanceof e.constructor&&Tt(t.g(),e.g())},ct.compareExtensions=Ft,ct.compareFields=Tt,ct.prototype.Bb=function(){return Pt(this)},ct.prototype.cloneMessage=ct.prototype.Bb,ct.prototype.clone=function(){return Pt(this)},ct.prototype.clone=ct.prototype.clone,ct.clone=function(t){return Pt(t)},ct.copyInto=function(t,e){m(t,ct),m(e,ct),g(t.constructor==e.constructor,"Copy source and target message should have the same type."),t=Pt(t);for(var r=e.g(),o=t.g(),i=r.length=0;i<o.length;i++)r[i]=o[i];e.f=t.f,e.i=t.i},ct.registerMessageType=function(t,e){e.we=t};var Nt={dump:function(t){return m(t,ct,"jspb.Message instance expected"),g(t.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Nt.X(t)}};function Bt(){this.a=[]}function Mt(t,e){this.lo=t,this.hi=e}function Ct(t,e){var r=65535&t,o=65535&e,i=e>>>16;for(e=r*o+65536*(r*i&65535)+65536*((t>>>=16)*o&65535),r=t*i+(r*i>>>16)+(t*o>>>16);4294967296<=e;)e-=4294967296,r+=1;return new Mt(e>>>0,r>>>0)}function Ut(t){for(var e=new Mt(0,0),r=new Mt(0,0),o=0;o<t.length;o++){if("0">t[o]||"9"<t[o])return null;r.lo=parseInt(t[o],10),e=e.eb(10).add(r)}return e}function Lt(t,e){this.lo=t,this.hi=e}function Dt(t){var e=0<t.length&&"-"==t[0];return e&&(t=t.substring(1)),null===(t=Ut(t))?null:(e&&(t=new Mt(0,0).sub(t)),new Lt(t.lo,t.hi))}function Vt(){this.c=[],this.b=0,this.a=new Bt,this.h=[]}function $t(t,e){var r=t.a.end();t.c.push(r),t.c.push(e),t.b+=r.length+e.length}function zt(t,e){return Wt(t,e,2),e=t.a.end(),t.c.push(e),t.b+=e.length,e.push(t.b),e}function Jt(t,e){var r=e.pop();for(g(0<=(r=t.b+t.a.length()-r));127<r;)e.push(127&r|128),r>>>=7,t.b++;e.push(r),t.b++}function Wt(t,e,r){g(1<=e&&e==Math.floor(e)),t.a.j(8*e+r)}function Ht(t,e,r){null!=r&&(Wt(t,e,0),t.a.j(r))}function Gt(t,e,r){null!=r&&(Wt(t,e,0),t.a.M(r))}u("jspb.debug.dump",Nt.dump,void 0),Nt.X=function(t){var e=f(t);if("number"==e||"string"==e||"boolean"==e||"null"==e||"undefined"==e||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array)return t;if("array"==e)return function(t,e,r){for(var o=[],i=2;i<arguments.length;++i)o[i-2]=arguments[i];Array.isArray(t)||v("Expected array but got %s: %s.",[f(t),t],e,o)}(t),d(t,Nt.X);if(t instanceof j){for(var r={},o=(t=t.entries()).next();!o.done;o=t.next())r[o.value[0]]=Nt.X(o.value[1]);return r}m(t,ct,"Only messages expected: "+t);var i={$name:(e=t.constructor).name||e.displayName};for(a in e.prototype){var n=/^get([A-Z]\w*)/.exec(a);if(n&&"getExtension"!=a&&"getJsPbMessageId"!=a){var s="has"+n[1];t[s]&&!t[s]()||(s=t[a](),i[Nt.$a(n[1])]=Nt.X(s))}}if(t.extensionObject_)return i.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",i;for(o in e.extensions)if(/^\d+$/.test(o)){s=e.extensions[o];var a=t.getExtension(s);n=void 0,s=s.Ba;var p=[],u=0;for(n in s)p[u++]=n;n=p[0],null!=a&&(r||(r=i.$extensions={}),r[Nt.$a(n)]=Nt.X(a))}return i},Nt.$a=function(t){return t.replace(/^[A-Z]/,(function(t){return t.toLowerCase()}))},u("jspb.BinaryEncoder",Bt,void 0),Bt.prototype.length=function(){return this.a.length},Bt.prototype.length=Bt.prototype.length,Bt.prototype.end=function(){var t=this.a;return this.a=[],t},Bt.prototype.end=Bt.prototype.end,Bt.prototype.l=function(t,e){for(g(t==Math.floor(t)),g(e==Math.floor(e)),g(0<=t&&4294967296>t),g(0<=e&&4294967296>e);0<e||127<t;)this.a.push(127&t|128),t=(t>>>7|e<<25)>>>0,e>>>=7;this.a.push(t)},Bt.prototype.writeSplitVarint64=Bt.prototype.l,Bt.prototype.A=function(t,e){g(t==Math.floor(t)),g(e==Math.floor(e)),g(0<=t&&4294967296>t),g(0<=e&&4294967296>e),this.s(t),this.s(e)},Bt.prototype.writeSplitFixed64=Bt.prototype.A,Bt.prototype.j=function(t){for(g(t==Math.floor(t)),g(0<=t&&4294967296>t);127<t;)this.a.push(127&t|128),t>>>=7;this.a.push(t)},Bt.prototype.writeUnsignedVarint32=Bt.prototype.j,Bt.prototype.M=function(t){if(g(t==Math.floor(t)),g(-2147483648<=t&&2147483648>t),0<=t)this.j(t);else{for(var e=0;9>e;e++)this.a.push(127&t|128),t>>=7;this.a.push(1)}},Bt.prototype.writeSignedVarint32=Bt.prototype.M,Bt.prototype.va=function(t){g(t==Math.floor(t)),g(0<=t&&0x10000000000000000>t),M(t),this.l(I,N)},Bt.prototype.writeUnsignedVarint64=Bt.prototype.va,Bt.prototype.ua=function(t){g(t==Math.floor(t)),g(-0x8000000000000000<=t&&0x8000000000000000>t),M(t),this.l(I,N)},Bt.prototype.writeSignedVarint64=Bt.prototype.ua,Bt.prototype.wa=function(t){g(t==Math.floor(t)),g(-2147483648<=t&&2147483648>t),this.j((t<<1^t>>31)>>>0)},Bt.prototype.writeZigzagVarint32=Bt.prototype.wa,Bt.prototype.xa=function(t){g(t==Math.floor(t)),g(-0x8000000000000000<=t&&0x8000000000000000>t),C(t),this.l(I,N)},Bt.prototype.writeZigzagVarint64=Bt.prototype.xa,Bt.prototype.Ta=function(t){this.W(Q(t))},Bt.prototype.writeZigzagVarint64String=Bt.prototype.Ta,Bt.prototype.W=function(t){var e=this;D(t),z(I,N,(function(t,r){e.l(t>>>0,r>>>0)}))},Bt.prototype.writeZigzagVarintHash64=Bt.prototype.W,Bt.prototype.be=function(t){g(t==Math.floor(t)),g(0<=t&&256>t),this.a.push(t>>>0&255)},Bt.prototype.writeUint8=Bt.prototype.be,Bt.prototype.ae=function(t){g(t==Math.floor(t)),g(0<=t&&65536>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},Bt.prototype.writeUint16=Bt.prototype.ae,Bt.prototype.s=function(t){g(t==Math.floor(t)),g(0<=t&&4294967296>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},Bt.prototype.writeUint32=Bt.prototype.s,Bt.prototype.V=function(t){g(t==Math.floor(t)),g(0<=t&&0x10000000000000000>t),B(t),this.s(I),this.s(N)},Bt.prototype.writeUint64=Bt.prototype.V,Bt.prototype.Qc=function(t){g(t==Math.floor(t)),g(-128<=t&&128>t),this.a.push(t>>>0&255)},Bt.prototype.writeInt8=Bt.prototype.Qc,Bt.prototype.Pc=function(t){g(t==Math.floor(t)),g(-32768<=t&&32768>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},Bt.prototype.writeInt16=Bt.prototype.Pc,Bt.prototype.S=function(t){g(t==Math.floor(t)),g(-2147483648<=t&&2147483648>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},Bt.prototype.writeInt32=Bt.prototype.S,Bt.prototype.T=function(t){g(t==Math.floor(t)),g(-0x8000000000000000<=t&&0x8000000000000000>t),M(t),this.A(I,N)},Bt.prototype.writeInt64=Bt.prototype.T,Bt.prototype.ka=function(t){g(t==Math.floor(t)),g(-0x8000000000000000<=+t&&0x8000000000000000>+t),D(Q(t)),this.A(I,N)},Bt.prototype.writeInt64String=Bt.prototype.ka,Bt.prototype.L=function(t){g(1/0===t||-1/0===t||isNaN(t)||-34028234663852886e22<=t&&34028234663852886e22>=t),U(t),this.s(I)},Bt.prototype.writeFloat=Bt.prototype.L,Bt.prototype.J=function(t){g(1/0===t||-1/0===t||isNaN(t)||-17976931348623157e292<=t&&17976931348623157e292>=t),L(t),this.s(I),this.s(N)},Bt.prototype.writeDouble=Bt.prototype.J,Bt.prototype.I=function(t){g("boolean"==typeof t||"number"==typeof t),this.a.push(t?1:0)},Bt.prototype.writeBool=Bt.prototype.I,Bt.prototype.R=function(t){g(t==Math.floor(t)),g(-2147483648<=t&&2147483648>t),this.M(t)},Bt.prototype.writeEnum=Bt.prototype.R,Bt.prototype.ja=function(t){this.a.push.apply(this.a,t)},Bt.prototype.writeBytes=Bt.prototype.ja,Bt.prototype.N=function(t){D(t),this.l(I,N)},Bt.prototype.writeVarintHash64=Bt.prototype.N,Bt.prototype.K=function(t){D(t),this.s(I),this.s(N)},Bt.prototype.writeFixedHash64=Bt.prototype.K,Bt.prototype.U=function(t){var e=this.a.length;!function(t,e,r){for(var o=[],i=2;i<arguments.length;++i)o[i-2]=arguments[i];"string"!=typeof t&&v("Expected string but got %s: %s.",[f(t),t],e,o)}(t);for(var r=0;r<t.length;r++){var o=t.charCodeAt(r);if(128>o)this.a.push(o);else if(2048>o)this.a.push(o>>6|192),this.a.push(63&o|128);else if(65536>o)if(55296<=o&&56319>=o&&r+1<t.length){var i=t.charCodeAt(r+1);56320<=i&&57343>=i&&(o=1024*(o-55296)+i-56320+65536,this.a.push(o>>18|240),this.a.push(o>>12&63|128),this.a.push(o>>6&63|128),this.a.push(63&o|128),r++)}else this.a.push(o>>12|224),this.a.push(o>>6&63|128),this.a.push(63&o|128)}return this.a.length-e},Bt.prototype.writeString=Bt.prototype.U,u("jspb.arith.UInt64",Mt,void 0),Mt.prototype.cmp=function(t){return this.hi<t.hi||this.hi==t.hi&&this.lo<t.lo?-1:this.hi==t.hi&&this.lo==t.lo?0:1},Mt.prototype.cmp=Mt.prototype.cmp,Mt.prototype.La=function(){return new Mt((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},Mt.prototype.rightShift=Mt.prototype.La,Mt.prototype.Da=function(){return new Mt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Mt.prototype.leftShift=Mt.prototype.Da,Mt.prototype.cb=function(){return!!(2147483648&this.hi)},Mt.prototype.msb=Mt.prototype.cb,Mt.prototype.Ob=function(){return!!(1&this.lo)},Mt.prototype.lsb=Mt.prototype.Ob,Mt.prototype.Ua=function(){return 0==this.lo&&0==this.hi},Mt.prototype.zero=Mt.prototype.Ua,Mt.prototype.add=function(t){return new Mt((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)},Mt.prototype.add=Mt.prototype.add,Mt.prototype.sub=function(t){return new Mt((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)},Mt.prototype.sub=Mt.prototype.sub,Mt.mul32x32=Ct,Mt.prototype.eb=function(t){var e=Ct(this.lo,t);return(t=Ct(this.hi,t)).hi=t.lo,t.lo=0,e.add(t)},Mt.prototype.mul=Mt.prototype.eb,Mt.prototype.Xa=function(t){if(0==t)return[];var e=new Mt(0,0),r=new Mt(this.lo,this.hi);t=new Mt(t,0);for(var o=new Mt(1,0);!t.cb();)t=t.Da(),o=o.Da();for(;!o.Ua();)0>=t.cmp(r)&&(e=e.add(o),r=r.sub(t)),t=t.La(),o=o.La();return[e,r]},Mt.prototype.div=Mt.prototype.Xa,Mt.prototype.toString=function(){for(var t="",e=this;!e.Ua();){var r=(e=e.Xa(10))[0];t=e[1].lo+t,e=r}return""==t&&(t="0"),t},Mt.prototype.toString=Mt.prototype.toString,Mt.fromString=Ut,Mt.prototype.clone=function(){return new Mt(this.lo,this.hi)},Mt.prototype.clone=Mt.prototype.clone,u("jspb.arith.Int64",Lt,void 0),Lt.prototype.add=function(t){return new Lt((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)},Lt.prototype.add=Lt.prototype.add,Lt.prototype.sub=function(t){return new Lt((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)},Lt.prototype.sub=Lt.prototype.sub,Lt.prototype.clone=function(){return new Lt(this.lo,this.hi)},Lt.prototype.clone=Lt.prototype.clone,Lt.prototype.toString=function(){var t=!!(2147483648&this.hi),e=new Mt(this.lo,this.hi);return t&&(e=new Mt(0,0).sub(e)),(t?"-":"")+e.toString()},Lt.prototype.toString=Lt.prototype.toString,Lt.fromString=Dt,u("jspb.BinaryWriter",Vt,void 0),Vt.prototype.pb=function(t,e,r){$t(this,t.subarray(e,r))},Vt.prototype.writeSerializedMessage=Vt.prototype.pb,Vt.prototype.Pb=function(t,e,r){null!=t&&null!=e&&null!=r&&this.pb(t,e,r)},Vt.prototype.maybeWriteSerializedMessage=Vt.prototype.Pb,Vt.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Vt.prototype.reset=Vt.prototype.reset,Vt.prototype.ab=function(){g(0==this.h.length);for(var t=new Uint8Array(this.b+this.a.length()),e=this.c,r=e.length,o=0,i=0;i<r;i++){var n=e[i];t.set(n,o),o+=n.length}return e=this.a.end(),t.set(e,o),g((o+=e.length)==t.length),this.c=[t],t},Vt.prototype.getResultBuffer=Vt.prototype.ab,Vt.prototype.Kb=function(t){return F(this.ab(),t)},Vt.prototype.getResultBase64String=Vt.prototype.Kb,Vt.prototype.Va=function(t){this.h.push(zt(this,t))},Vt.prototype.beginSubMessage=Vt.prototype.Va,Vt.prototype.Ya=function(){g(0<=this.h.length),Jt(this,this.h.pop())},Vt.prototype.endSubMessage=Vt.prototype.Ya,Vt.prototype.Nc=function(t,e,r){switch(t){case 1:this.J(e,r);break;case 2:this.L(e,r);break;case 3:this.T(e,r);break;case 4:this.V(e,r);break;case 5:this.S(e,r);break;case 6:this.Qa(e,r);break;case 7:this.Pa(e,r);break;case 8:this.I(e,r);break;case 9:this.U(e,r);break;case 10:b("Group field type not supported in writeAny()");break;case 11:b("Message field type not supported in writeAny()");break;case 12:this.ja(e,r);break;case 13:this.s(e,r);break;case 14:this.R(e,r);break;case 15:this.Ra(e,r);break;case 16:this.Sa(e,r);break;case 17:this.rb(e,r);break;case 18:this.sb(e,r);break;case 30:this.K(e,r);break;case 31:this.N(e,r);break;default:b("Invalid field type in writeAny()")}},Vt.prototype.writeAny=Vt.prototype.Nc,Vt.prototype.S=function(t,e){null!=e&&(g(-2147483648<=e&&2147483648>e),Gt(this,t,e))},Vt.prototype.writeInt32=Vt.prototype.S,Vt.prototype.ob=function(t,e){null!=e&&(g(-2147483648<=(e=parseInt(e,10))&&2147483648>e),Gt(this,t,e))},Vt.prototype.writeInt32String=Vt.prototype.ob,Vt.prototype.T=function(t,e){null!=e&&(g(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(Wt(this,t,0),this.a.ua(e)))},Vt.prototype.writeInt64=Vt.prototype.T,Vt.prototype.ka=function(t,e){null!=e&&(e=Dt(e),Wt(this,t,0),this.a.l(e.lo,e.hi))},Vt.prototype.writeInt64String=Vt.prototype.ka,Vt.prototype.s=function(t,e){null!=e&&(g(0<=e&&4294967296>e),Ht(this,t,e))},Vt.prototype.writeUint32=Vt.prototype.s,Vt.prototype.ub=function(t,e){null!=e&&(g(0<=(e=parseInt(e,10))&&4294967296>e),Ht(this,t,e))},Vt.prototype.writeUint32String=Vt.prototype.ub,Vt.prototype.V=function(t,e){null!=e&&(g(0<=e&&0x10000000000000000>e),null!=e&&(Wt(this,t,0),this.a.va(e)))},Vt.prototype.writeUint64=Vt.prototype.V,Vt.prototype.vb=function(t,e){null!=e&&(e=Ut(e),Wt(this,t,0),this.a.l(e.lo,e.hi))},Vt.prototype.writeUint64String=Vt.prototype.vb,Vt.prototype.rb=function(t,e){null!=e&&(g(-2147483648<=e&&2147483648>e),null!=e&&(Wt(this,t,0),this.a.wa(e)))},Vt.prototype.writeSint32=Vt.prototype.rb,Vt.prototype.sb=function(t,e){null!=e&&(g(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(Wt(this,t,0),this.a.xa(e)))},Vt.prototype.writeSint64=Vt.prototype.sb,Vt.prototype.$d=function(t,e){null!=e&&null!=e&&(Wt(this,t,0),this.a.W(e))},Vt.prototype.writeSintHash64=Vt.prototype.$d,Vt.prototype.Zd=function(t,e){null!=e&&null!=e&&(Wt(this,t,0),this.a.Ta(e))},Vt.prototype.writeSint64String=Vt.prototype.Zd,Vt.prototype.Pa=function(t,e){null!=e&&(g(0<=e&&4294967296>e),Wt(this,t,5),this.a.s(e))},Vt.prototype.writeFixed32=Vt.prototype.Pa,Vt.prototype.Qa=function(t,e){null!=e&&(g(0<=e&&0x10000000000000000>e),Wt(this,t,1),this.a.V(e))},Vt.prototype.writeFixed64=Vt.prototype.Qa,Vt.prototype.nb=function(t,e){null!=e&&(e=Ut(e),Wt(this,t,1),this.a.A(e.lo,e.hi))},Vt.prototype.writeFixed64String=Vt.prototype.nb,Vt.prototype.Ra=function(t,e){null!=e&&(g(-2147483648<=e&&2147483648>e),Wt(this,t,5),this.a.S(e))},Vt.prototype.writeSfixed32=Vt.prototype.Ra,Vt.prototype.Sa=function(t,e){null!=e&&(g(-0x8000000000000000<=e&&0x8000000000000000>e),Wt(this,t,1),this.a.T(e))},Vt.prototype.writeSfixed64=Vt.prototype.Sa,Vt.prototype.qb=function(t,e){null!=e&&(e=Dt(e),Wt(this,t,1),this.a.A(e.lo,e.hi))},Vt.prototype.writeSfixed64String=Vt.prototype.qb,Vt.prototype.L=function(t,e){null!=e&&(Wt(this,t,5),this.a.L(e))},Vt.prototype.writeFloat=Vt.prototype.L,Vt.prototype.J=function(t,e){null!=e&&(Wt(this,t,1),this.a.J(e))},Vt.prototype.writeDouble=Vt.prototype.J,Vt.prototype.I=function(t,e){null!=e&&(g("boolean"==typeof e||"number"==typeof e),Wt(this,t,0),this.a.I(e))},Vt.prototype.writeBool=Vt.prototype.I,Vt.prototype.R=function(t,e){null!=e&&(g(-2147483648<=e&&2147483648>e),Wt(this,t,0),this.a.M(e))},Vt.prototype.writeEnum=Vt.prototype.R,Vt.prototype.U=function(t,e){null!=e&&(t=zt(this,t),this.a.U(e),Jt(this,t))},Vt.prototype.writeString=Vt.prototype.U,Vt.prototype.ja=function(t,e){null!=e&&(e=ot(e),Wt(this,t,2),this.a.j(e.length),$t(this,e))},Vt.prototype.writeBytes=Vt.prototype.ja,Vt.prototype.Rc=function(t,e,r){null!=e&&(t=zt(this,t),r(e,this),Jt(this,t))},Vt.prototype.writeMessage=Vt.prototype.Rc,Vt.prototype.Sc=function(t,e,r){null!=e&&(Wt(this,1,3),Wt(this,2,0),this.a.M(t),t=zt(this,3),r(e,this),Jt(this,t),Wt(this,1,4))},Vt.prototype.writeMessageSet=Vt.prototype.Sc,Vt.prototype.Oc=function(t,e,r){null!=e&&(Wt(this,t,3),r(e,this),Wt(this,t,4))},Vt.prototype.writeGroup=Vt.prototype.Oc,Vt.prototype.K=function(t,e){null!=e&&(g(8==e.length),Wt(this,t,1),this.a.K(e))},Vt.prototype.writeFixedHash64=Vt.prototype.K,Vt.prototype.N=function(t,e){null!=e&&(g(8==e.length),Wt(this,t,0),this.a.N(e))},Vt.prototype.writeVarintHash64=Vt.prototype.N,Vt.prototype.A=function(t,e,r){Wt(this,t,1),this.a.A(e,r)},Vt.prototype.writeSplitFixed64=Vt.prototype.A,Vt.prototype.l=function(t,e,r){Wt(this,t,0),this.a.l(e,r)},Vt.prototype.writeSplitVarint64=Vt.prototype.l,Vt.prototype.tb=function(t,e,r){Wt(this,t,0);var o=this.a;z(e,r,(function(t,e){o.l(t>>>0,e>>>0)}))},Vt.prototype.writeSplitZigzagVarint64=Vt.prototype.tb,Vt.prototype.Ed=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)Gt(this,t,e[r])},Vt.prototype.writeRepeatedInt32=Vt.prototype.Ed,Vt.prototype.Fd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ob(t,e[r])},Vt.prototype.writeRepeatedInt32String=Vt.prototype.Fd,Vt.prototype.Gd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Wt(this,t,0),this.a.ua(o))}},Vt.prototype.writeRepeatedInt64=Vt.prototype.Gd,Vt.prototype.Qd=function(t,e,r,o){if(null!=e)for(var i=0;i<e.length;i++)this.A(t,r(e[i]),o(e[i]))},Vt.prototype.writeRepeatedSplitFixed64=Vt.prototype.Qd,Vt.prototype.Rd=function(t,e,r,o){if(null!=e)for(var i=0;i<e.length;i++)this.l(t,r(e[i]),o(e[i]))},Vt.prototype.writeRepeatedSplitVarint64=Vt.prototype.Rd,Vt.prototype.Sd=function(t,e,r,o){if(null!=e)for(var i=0;i<e.length;i++)this.tb(t,r(e[i]),o(e[i]))},Vt.prototype.writeRepeatedSplitZigzagVarint64=Vt.prototype.Sd,Vt.prototype.Hd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ka(t,e[r])},Vt.prototype.writeRepeatedInt64String=Vt.prototype.Hd,Vt.prototype.Ud=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)Ht(this,t,e[r])},Vt.prototype.writeRepeatedUint32=Vt.prototype.Ud,Vt.prototype.Vd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ub(t,e[r])},Vt.prototype.writeRepeatedUint32String=Vt.prototype.Vd,Vt.prototype.Wd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Wt(this,t,0),this.a.va(o))}},Vt.prototype.writeRepeatedUint64=Vt.prototype.Wd,Vt.prototype.Xd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.vb(t,e[r])},Vt.prototype.writeRepeatedUint64String=Vt.prototype.Xd,Vt.prototype.Md=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Wt(this,t,0),this.a.wa(o))}},Vt.prototype.writeRepeatedSint32=Vt.prototype.Md,Vt.prototype.Nd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Wt(this,t,0),this.a.xa(o))}},Vt.prototype.writeRepeatedSint64=Vt.prototype.Nd,Vt.prototype.Od=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Wt(this,t,0),this.a.Ta(o))}},Vt.prototype.writeRepeatedSint64String=Vt.prototype.Od,Vt.prototype.Pd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Wt(this,t,0),this.a.W(o))}},Vt.prototype.writeRepeatedSintHash64=Vt.prototype.Pd,Vt.prototype.yd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Pa(t,e[r])},Vt.prototype.writeRepeatedFixed32=Vt.prototype.yd,Vt.prototype.zd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Qa(t,e[r])},Vt.prototype.writeRepeatedFixed64=Vt.prototype.zd,Vt.prototype.Ad=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.nb(t,e[r])},Vt.prototype.writeRepeatedFixed64String=Vt.prototype.Ad,Vt.prototype.Jd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Ra(t,e[r])},Vt.prototype.writeRepeatedSfixed32=Vt.prototype.Jd,Vt.prototype.Kd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Sa(t,e[r])},Vt.prototype.writeRepeatedSfixed64=Vt.prototype.Kd,Vt.prototype.Ld=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.qb(t,e[r])},Vt.prototype.writeRepeatedSfixed64String=Vt.prototype.Ld,Vt.prototype.Cd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.L(t,e[r])},Vt.prototype.writeRepeatedFloat=Vt.prototype.Cd,Vt.prototype.wd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.J(t,e[r])},Vt.prototype.writeRepeatedDouble=Vt.prototype.wd,Vt.prototype.ud=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.I(t,e[r])},Vt.prototype.writeRepeatedBool=Vt.prototype.ud,Vt.prototype.xd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.R(t,e[r])},Vt.prototype.writeRepeatedEnum=Vt.prototype.xd,Vt.prototype.Td=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.U(t,e[r])},Vt.prototype.writeRepeatedString=Vt.prototype.Td,Vt.prototype.vd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ja(t,e[r])},Vt.prototype.writeRepeatedBytes=Vt.prototype.vd,Vt.prototype.Id=function(t,e,r){if(null!=e)for(var o=0;o<e.length;o++){var i=zt(this,t);r(e[o],this),Jt(this,i)}},Vt.prototype.writeRepeatedMessage=Vt.prototype.Id,Vt.prototype.Dd=function(t,e,r){if(null!=e)for(var o=0;o<e.length;o++)Wt(this,t,3),r(e[o],this),Wt(this,t,4)},Vt.prototype.writeRepeatedGroup=Vt.prototype.Dd,Vt.prototype.Bd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.K(t,e[r])},Vt.prototype.writeRepeatedFixedHash64=Vt.prototype.Bd,Vt.prototype.Yd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.N(t,e[r])},Vt.prototype.writeRepeatedVarintHash64=Vt.prototype.Yd,Vt.prototype.ad=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.M(e[r]);Jt(this,t)}},Vt.prototype.writePackedInt32=Vt.prototype.ad,Vt.prototype.bd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.M(parseInt(e[r],10));Jt(this,t)}},Vt.prototype.writePackedInt32String=Vt.prototype.bd,Vt.prototype.cd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.ua(e[r]);Jt(this,t)}},Vt.prototype.writePackedInt64=Vt.prototype.cd,Vt.prototype.md=function(t,e,r,o){if(null!=e){t=zt(this,t);for(var i=0;i<e.length;i++)this.a.A(r(e[i]),o(e[i]));Jt(this,t)}},Vt.prototype.writePackedSplitFixed64=Vt.prototype.md,Vt.prototype.nd=function(t,e,r,o){if(null!=e){t=zt(this,t);for(var i=0;i<e.length;i++)this.a.l(r(e[i]),o(e[i]));Jt(this,t)}},Vt.prototype.writePackedSplitVarint64=Vt.prototype.nd,Vt.prototype.od=function(t,e,r,o){if(null!=e){t=zt(this,t);for(var i=this.a,n=0;n<e.length;n++)z(r(e[n]),o(e[n]),(function(t,e){i.l(t>>>0,e>>>0)}));Jt(this,t)}},Vt.prototype.writePackedSplitZigzagVarint64=Vt.prototype.od,Vt.prototype.dd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++){var o=Dt(e[r]);this.a.l(o.lo,o.hi)}Jt(this,t)}},Vt.prototype.writePackedInt64String=Vt.prototype.dd,Vt.prototype.pd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.j(e[r]);Jt(this,t)}},Vt.prototype.writePackedUint32=Vt.prototype.pd,Vt.prototype.qd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.j(parseInt(e[r],10));Jt(this,t)}},Vt.prototype.writePackedUint32String=Vt.prototype.qd,Vt.prototype.rd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.va(e[r]);Jt(this,t)}},Vt.prototype.writePackedUint64=Vt.prototype.rd,Vt.prototype.sd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++){var o=Ut(e[r]);this.a.l(o.lo,o.hi)}Jt(this,t)}},Vt.prototype.writePackedUint64String=Vt.prototype.sd,Vt.prototype.hd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.wa(e[r]);Jt(this,t)}},Vt.prototype.writePackedSint32=Vt.prototype.hd,Vt.prototype.jd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.xa(e[r]);Jt(this,t)}},Vt.prototype.writePackedSint64=Vt.prototype.jd,Vt.prototype.kd=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.W(Q(e[r]));Jt(this,t)}},Vt.prototype.writePackedSint64String=Vt.prototype.kd,Vt.prototype.ld=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.W(e[r]);Jt(this,t)}},Vt.prototype.writePackedSintHash64=Vt.prototype.ld,Vt.prototype.Wc=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.s(e[t])},Vt.prototype.writePackedFixed32=Vt.prototype.Wc,Vt.prototype.Xc=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.V(e[t])},Vt.prototype.writePackedFixed64=Vt.prototype.Xc,Vt.prototype.Yc=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++){var r=Ut(e[t]);this.a.A(r.lo,r.hi)}},Vt.prototype.writePackedFixed64String=Vt.prototype.Yc,Vt.prototype.ed=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.S(e[t])},Vt.prototype.writePackedSfixed32=Vt.prototype.ed,Vt.prototype.fd=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.T(e[t])},Vt.prototype.writePackedSfixed64=Vt.prototype.fd,Vt.prototype.gd=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.ka(e[t])},Vt.prototype.writePackedSfixed64String=Vt.prototype.gd,Vt.prototype.$c=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.L(e[t])},Vt.prototype.writePackedFloat=Vt.prototype.$c,Vt.prototype.Uc=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.J(e[t])},Vt.prototype.writePackedDouble=Vt.prototype.Uc,Vt.prototype.Tc=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(e.length),t=0;t<e.length;t++)this.a.I(e[t])},Vt.prototype.writePackedBool=Vt.prototype.Tc,Vt.prototype.Vc=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.R(e[r]);Jt(this,t)}},Vt.prototype.writePackedEnum=Vt.prototype.Vc,Vt.prototype.Zc=function(t,e){if(null!=e&&e.length)for(Wt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.K(e[t])},Vt.prototype.writePackedFixedHash64=Vt.prototype.Zc,Vt.prototype.td=function(t,e){if(null!=e&&e.length){t=zt(this,t);for(var r=0;r<e.length;r++)this.a.N(e[r]);Jt(this,t)}},Vt.prototype.writePackedVarintHash64=Vt.prototype.td,t.debug=Nt,t.Map=j,t.Message=ct,t.BinaryReader=at,t.BinaryWriter=Vt,t.ExtensionFieldInfo=ht,t.ExtensionFieldBinaryInfo=lt,t.exportSymbol=function(t,e,r){u(t,e,r)},t.inherits=function(t,e){function r(){}r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},t.object={extend:function(t,e){for(var r,o,i=1;i<arguments.length;i++){for(r in o=arguments[i])t[r]=o[r];for(var n=0;n<l.length;n++)r=l[n],Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}}},t.typeOf=f}(googleProtobuf)),googleProtobuf}var googleProtobufExports=requireGoogleProtobuf();exports.googleProtobufExports=googleProtobufExports,exports.minimalExports=minimalExports,exports.protobufjsExports=protobufjsExports;