-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
protobuf.min.js
9 lines (9 loc) · 59 KB
/
protobuf.min.js
1
2
3
4
5
6
7
8
9
/*!
* protobuf.js v6.3.0 (c) 2016, Daniel Wirtz
* Compiled Fri, 23 Dec 2016 11:04:05 UTC
* Licensed under the BSD-3-Clause License
* see: https://github.com/dcodeIO/protobuf.js for details
*/
!function t(e,r,n){function i(o,u){if(!r[o]){if(!e[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(s)return s(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=r[o]={exports:{}};e[o][0].call(l.exports,function(t){var r=e[o][1][t];return i(r?r:t)},l,l.exports,t,e,r,n)}return r[o].exports}for(var s="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(t,e,r){"use strict";function n(t,e){for(var r=[],n=2;n<arguments.length;)r.push(arguments[n++]);var i=!0;return new Promise(function(n,s){r.push(function(t){if(i)if(i=!1,t)s(t);else{for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);n.apply(null,e)}});try{t.apply(e||this,r)}catch(t){i&&(i=!1,s(t))}})}e.exports=n},{}],2:[function(t,e,r){"use strict";var n=r;n.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 i=new Array(64),s=new Array(123),o=0;o<64;)s[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;n.encode=function(t,e,r){for(var n,s=[],o=0,u=0;e<r;){var a=t[e++];switch(u){case 0:s[o++]=i[a>>2],n=(3&a)<<4,u=1;break;case 1:s[o++]=i[n|a>>4],n=(15&a)<<2,u=2;break;case 2:s[o++]=i[n|a>>6],s[o++]=i[63&a],u=0}}return u&&(s[o++]=i[n],s[o]=61,1===u&&(s[o+1]=61)),String.fromCharCode.apply(String,s)};var u="invalid encoding";n.decode=function(t,e,r){for(var n,i=r,o=0,a=0;a<t.length;){var f=t.charCodeAt(a++);if(61===f&&o>1)break;if(void 0===(f=s[f]))throw Error(u);switch(o){case 0:n=f,o=1;break;case 1:e[r++]=n<<2|(48&f)>>4,n=f,o=2;break;case 2:e[r++]=(15&n)<<4|(60&f)>>2,n=f,o=3;break;case 3:e[r++]=(3&n)<<6|f,o=0}}if(1===o)throw Error(u);return r-i}},{}],3:[function(t,e,r){"use strict";function n(){function t(){for(var e=[],r=0;r<arguments.length;)e.push(arguments[r++]);var n=i.apply(null,e),l=c;if(h.length){var p=h[h.length-1];s.test(p)?l=++c:a.test(p)&&++l,u.test(p)&&!u.test(n)?(l=++c,d=!0):d&&f.test(p)&&(l=--c,d=!1),o.test(n)&&(l=--c)}for(r=0;r<l;++r)n="\t"+n;return h.push(n),t}function e(t){return"function "+(t?t.replace(/[^\w_$]/g,"_"):"")+"("+l.join(", ")+") {\n"+h.join("\n")+"\n}"}function r(e,r){"object"==typeof e&&(r=e,e=void 0);var i=t.str(e);n.verbose&&console.log("--- codegen ---\n"+i.replace(/^/gm,"> ").replace(/\t/g," "));var s=Object.keys(r||(r={}));return Function.apply(null,s.concat("return "+i)).apply(null,s.map(function(t){return r[t]}))}for(var l=[],h=[],c=1,d=!1,p=0;p<arguments.length;)l.push(arguments[p++]);return t.str=e,t.eof=r,t}function i(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return r=0,t.replace(/%([djs])/g,function(t,n){var i=e[r++];switch(n){case"j":return JSON.stringify(i);default:return String(i)}})}e.exports=n;var s=/[{[]$/,o=/^[}\]]/,u=/:$/,a=/^\s*(?:if|else if|while|for)\b|\b(?:else)\s*$/,f=/\b(?:break|continue);?$|^\s*return\b/;n.supported=!1;try{n.supported=1===n("a","b")("return a-b").eof()(2,1)}catch(t){}n.verbose=!1},{}],4:[function(t,e,r){"use strict";function n(){this.a={}}e.exports=n;var i=n.prototype;i.on=function(t,e,r){return(this.a[t]||(this.a[t]=[])).push({fn:e,ctx:r||this}),this},i.off=function(t,e){if(void 0===t)this.a={};else if(void 0===e)this.a[t]=[];else for(var r=this.a[t],n=0;n<r.length;)r[n].fn===e?r.splice(n,1):++n;return this},i.emit=function(t){var e=this.a[t];if(e){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<e.length;)e[n].fn.apply(e[n++].ctx,r)}return this}},{}],5:[function(t,e,r){"use strict";function n(t){for(var e=Object.keys(this),r=0;r<e.length;++r)t[e[r]]=this[e[r]];var n=t.prototype=Object.create(this.prototype);return n.constructor=t,n}e.exports=n},{}],6:[function(t,e,r){"use strict";function n(t,e){return e?u&&u.readFile?u.readFile(t,"utf8",function(r,n){return r&&"undefined"!=typeof XMLHttpRequest?i(t,e):e(r,n)}):i(t,e):s(n,this,t)}function i(t,e){var r=new XMLHttpRequest;r.onreadystatechange=function(){return 4===r.readyState?0===r.status||200===r.status?e(null,r.responseText):e(Error("status "+r.status)):void 0},r.open("GET",t),r.send()}e.exports=n;var s=t(1),o=t(7),u=o("fs")},{1:1,7:7}],7:[function(require,module,exports){"use strict";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}module.exports=inquire},{}],8:[function(t,e,r){"use strict";var n=r,i=n.isAbsolute=function(t){return/^(?:\/|\w+:)/.test(t)},s=n.normalize=function(t){t=t.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var e=t.split("/"),r=i(t),n="";r&&(n=e.shift()+"/");for(var s=0;s<e.length;)".."===e[s]?s>0?e.splice(--s,2):r?e.splice(s,1):++s:"."===e[s]?e.splice(s,1):++s;return n+e.join("/")};n.resolve=function(t,e,r){return r||(e=s(e)),i(e)?e:(r||(t=s(t)),(t=t.replace(/(?:\/|^)[^\/]+$/,"")).length?s(t+"/"+e):e)}},{}],9:[function(t,e,r){"use strict";function n(t,e,r){var n=r||8192,i=n>>>1,s=null,o=n;return function(r){if(r<1||r>i)return t(r);o+r>n&&(s=t(n),o=0);var u=e.call(s,o,o+=r);return 7&o&&(o=(7|o)+1),u}}e.exports=n},{}],10:[function(t,e,r){"use strict";var n=r;n.length=function(t){for(var e=0,r=0,n=0;n<t.length;++n)r=t.charCodeAt(n),r<128?e+=1:r<2048?e+=2:55296===(64512&r)&&56320===(64512&t.charCodeAt(n+1))?(++n,e+=4):e+=3;return e},n.read=function(t,e,r){var n=r-e;if(n<1)return"";for(var i,s=[],o=[],u=0;e<r;)i=t[e++],i<128?o[u++]=i:i>191&&i<224?o[u++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,o[u++]=55296+(i>>10),o[u++]=56320+(1023&i)):o[u++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],u>8191&&(s.push(String.fromCharCode.apply(String,o)),u=0);return u&&s.push(String.fromCharCode.apply(String,o.slice(0,u))),s.join("")},n.write=function(t,e,r){for(var n,i,s=r,o=0;o<t.length;++o)n=t.charCodeAt(o),n<128?e[r++]=n:n<2048?(e[r++]=n>>6|192,e[r++]=63&n|128):55296===(64512&n)&&56320===(64512&(i=t.charCodeAt(o+1)))?(n=65536+((1023&n)<<10)+(1023&i),++o,e[r++]=n>>18|240,e[r++]=n>>12&63|128,e[r++]=n>>6&63|128,e[r++]=63&n|128):(e[r++]=n>>12|224,e[r++]=n>>6&63|128,e[r++]=63&n|128);return r-s}},{}],11:[function(t,e,r){"use strict";function n(t){return i(t)}function i(e,r){if(s||(s=t(32)),!(e instanceof s))throw a("type","a Type");if(r){if("function"!=typeof r)throw a("ctor","a function")}else r=function(t){return function(e){t.call(this,e)}}(o);r.constructor=n;var i=r.prototype=new o;return i.constructor=r,u.merge(r,o,!0),r.$type=e,i.$type=e,e.getFieldsArray().forEach(function(t){i[t.name]=Array.isArray(t.resolve().defaultValue)?u.emptyArray:u.isObject(t.defaultValue)&&!t.long?u.emptyObject:t.defaultValue}),e.getOneofsArray().forEach(function(t){u.prop(i,t.resolve().name,{get:function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(t.oneof.indexOf(e[r])>-1)return e[r]},set:function(e){for(var r=t.oneof,n=0;n<r.length;++n)r[n]!==e&&delete this[r[n]]}})}),e.setCtor(r),i}e.exports=n;var s,o=t(19),u=t(34),a=u.b;n.create=i,n.prototype=o},{19:19,32:32,34:34}],12:[function(t,e,r){"use strict";function n(t,e){/\/|\./.test(t)||(t="google/protobuf/"+t+".proto",e={nested:{google:{nested:{protobuf:{nested:e}}}}}),n[t]=e}e.exports=n,n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var i;n("duration",{Duration:i={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:i}),n("empty",{Empty:{fields:{}}}),n("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}}}}),n("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}}}})},{}],13:[function(t,e,r){"use strict";function n(e,r,n,o,u){i||(i=t(32),s=t(19)),o||(o={});for(var a,f=Object.keys(o.defaults?e.fields:r),l=0;l<f.length;++l){var h=e.fields[a=f[l]],c=r[a];if(h)if(h.repeated){if((c||o.defaults)&&(n[a]=[],c))for(var d=0,p=c.length;d<p;++d)n[a].push(u(h,c[d],o))}else n[a]=u(h,c,o);else o.fieldsOnly||(n[a]=c)}return n}e.exports=n;var i,s,o=t(16),u=t(34);n.toJson=function t(e,r,i){if(i||(i={}),r instanceof s)return n(r.$type,r,{},i,t);if(i.enums&&e.resolvedType instanceof o)return i.enums===String?e.resolvedType.getValuesById()[r]:0|r;if(i.longs&&e.long){var a="u"===e.type.charAt(0);if(i.longs===Number)return"number"==typeof r?r:u.LongBits.from(r).toNumber(a);if(i.longs===String)return"number"==typeof r?u.Long.fromNumber(r,a).toString():(r=u.Long.fromValue(r),r.unsigned=a,r.toString())}if(i.bytes&&e.bytes){if(i.bytes===String)return u.base64.encode(r,0,r.length);if(i.bytes===Array)return Array.prototype.slice.call(r);if(i.bytes===u.Buffer&&!u.Buffer.isBuffer(r))return u.Buffer.from(r)}return r},n.toMessage=function t(e,r,s){switch(typeof r){case"object":if(r){if(e.resolvedType instanceof i)return n(e.resolvedType,r,new(e.resolvedType.getCtor()),s,t);if("bytes"===e.type)return u.Buffer?u.Buffer.isBuffer(r)?r:u.Buffer.from(r):r instanceof u.Array?r:new u.Array(r)}break;case"string":if(e.resolvedType instanceof o)return e.resolvedType.values[r]||0;if(e.long)return u.Long.fromString(r,"u"===e.type.charAt(0));if(e.bytes){var a=u.newBuffer(u.base64.length(r));return u.base64.decode(r,a,0),a}break;case"number":if(e.long)return u.Long.fromNumber(r,"u"===e.type.charAt(0))}return r}},{16:16,19:19,32:32,34:34}],14:[function(t,e,r){"use strict";function n(t){var e=t.getFieldsArray(),r=o.codegen("r","l")("r instanceof Reader||(r=Reader.create(r))")("var c=l===undefined?r.len:r.pos+l,m=new(this.getCtor())")("while(r.pos<c){")("var t=r.uint32()");t.group&&r("if((t&7)===4)")("break"),r("switch(t>>>3){");for(var n=0;n<e.length;++n){var u=e[n].resolve(),a=u.resolvedType instanceof i?"uint32":u.type,f=o.safeProp(u.name);if(r("case %d:",u.id),u.map){var l=u.resolvedKeyType?"uint32":u.keyType;r("r.skip().pos++")("if(m%s===util.emptyObject)",f)("m%s={}",f)("var k=r.%s()",l)('if(typeof k==="object")')("k=util.longToHash(k)")("r.pos++"),void 0===s.basic[a]?r("m%s[k]=types[%d].decode(r,r.uint32())",f,n):r("m%s[k]=r.%s()",f,a)}else u.repeated?(r("m%s&&m%s.length?m%s:m%s=[]",f,f,f,f),u.packed&&void 0!==s.packed[a]&&r("if((t&7)===2){")("var e=r.uint32()+r.pos")("while(r.pos<e)")("m%s.push(r.%s())",f,a)("}else"),void 0===s.basic[a]?r(u.resolvedType.group?"m%s.push(types[%d].decode(r))":"m%s.push(types[%d].decode(r,r.uint32()))",f,n):r("m%s.push(r.%s())",f,a)):void 0===s.basic[a]?r(u.resolvedType.group?"m%s=types[%d].decode(r)":"m%s=types[%d].decode(r,r.uint32())",f,n):r("m%s=r.%s()",f,a);r("break")}return r("default:")("r.skipType(t&7)")("break")("}")("}")("return m")}e.exports=n;var i=t(16),s=t(33),o=t(34)},{16:16,33:33,34:34}],15:[function(t,e,r){"use strict";function n(t,e,r,n,i){return e.resolvedType.group?t("types[%d].encode(%s,w.uint32(%d)).uint32(%d)",r,n,(e.id<<3|3)>>>0,(e.id<<3|4)>>>0):i||e.required?t("types[%d].encode(%s,w.uint32(%d).fork()).ldelim()",r,n,(e.id<<3|2)>>>0):t("types[%d].encode(%s,w.fork()).len&&w.ldelim(%d)||w.reset()",r,n,e.id)}function i(t){for(var e,r=t.getFieldsArray(),i=t.getOneofsArray(),f=u.codegen("m","w")("w||(w=Writer.create())"),e=0;e<r.length;++e){var l=r[e].resolve(),h=l.resolvedType instanceof s?"uint32":l.type,c=o.basic[h],d=a(l.name);if(l.map){var p=l.resolvedKeyType?"uint32":l.keyType;f("if(m%s&&m%s!==util.emptyObject){",d,d)("for(var ks=Object.keys(m%s),i=0;i<ks.length;++i){",d)("w.uint32(%d).fork().uint32(%d).%s(ks[i])",(l.id<<3|2)>>>0,8|o.mapKey[p],p),void 0===c?f("types[%d].encode(m%s[ks[i]],w.uint32(18).fork()).ldelim()",e,d):f("w.uint32(%d).%s(m%s[ks[i]])",16|c,h,d),f("w.ldelim()")("}")("}")}else l.repeated?l.packed&&void 0!==o.packed[h]?f("if(m%s&&m%s.length){",d,d)("w.uint32(%d).fork()",(l.id<<3|2)>>>0)("for(var i=0;i<m%s.length;++i)",d)("w.%s(m%s[i])",h,d)("w.ldelim()",l.id)("}"):(f("if(m%s)",d)("for(var i=0;i<m%s.length;++i)",d),void 0===c?n(f,l,e,"m"+d+"[i]",!0):f("w.uint32(%d).%s(m%s[i])",(l.id<<3|c)>>>0,h,d)):l.partOf||(l.required||(l.long?f("if(m%s!==undefined&&util.longNe(m%s,%d,%d))",d,d,l.defaultValue.low,l.defaultValue.high):f("if(m%s!==undefined&&m%s!==%j)",d,d,l.defaultValue)),void 0===c?n(f,l,e,"m"+d,!0):f("w.uint32(%d).%s(m%s)",(l.id<<3|c)>>>0,h,d))}for(var e=0;e<i.length;++e){var v=i[e],d=a(v.name);f("switch(m%s){",d);for(var y=v.getFieldsArray(),m=0;m<y.length;++m){var l=y[m],h=l.resolvedType instanceof s?"uint32":l.type,c=o.basic[h],d=a(l.name);f("case%j:",l.name),void 0===c?n(f,l,r.indexOf(l),"m"+d):f("w.uint32(%d).%s(m%s)",(l.id<<3|c)>>>0,h,d),f("break;")}f("}")}return f("return w")}e.exports=i;var s=t(16),o=t(33),u=t(34),a=u.safeProp},{16:16,33:33,34:34}],16:[function(t,e,r){"use strict";function n(t,e,r){s.call(this,t,r),this.values=e||{},this.c=null}function i(t){return t.c=null,t}e.exports=n;var s=t(22),o=s.extend(n);n.className="Enum";var u=t(34),a=u.b;u.props(o,{valuesById:{get:function(){return this.c||(this.c={},Object.keys(this.values).forEach(function(t){var e=this.values[t];if(this.c[e])throw Error("duplicate id "+e+" in "+this);this.c[e]=t},this)),this.c}}}),n.testJSON=function(t){return Boolean(t&&t.values)},n.fromJSON=function(t,e){return new n(t,e.values,e.options)},o.toJSON=function(){return{options:this.options,values:this.values}},o.add=function(t,e){if(!u.isString(t))throw a("name");if(!u.isInteger(e)||e<0)throw a("id","a non-negative integer");if(void 0!==this.values[t])throw Error("duplicate name '"+t+"' in "+this);if(void 0!==this.getValuesById()[e])throw Error("duplicate id "+e+" in "+this);return this.values[t]=e,i(this)},o.remove=function(t){if(!u.isString(t))throw a("name");if(void 0===this.values[t])throw Error("'"+t+"' is not a name of "+this);return delete this.values[t],i(this)}},{22:22,34:34}],17:[function(t,e,r){"use strict";function n(t,e,r,n,s,o){if(l.isObject(n)?(o=n,n=s=void 0):l.isObject(s)&&(o=s,s=void 0),i.call(this,t,o),!l.isInteger(e)||e<0)throw h("id","a non-negative integer");if(!l.isString(r))throw h("type");if(void 0!==s&&!l.isString(s))throw h("extend");if(void 0!==n&&!/^required|optional|repeated$/.test(n=n.toString().toLowerCase()))throw h("rule","a valid rule string");this.rule=n&&"optional"!==n?n:void 0,this.type=r,this.id=e,this.extend=s||void 0,this.required="required"===n,this.optional=!this.required,this.repeated="repeated"===n,this.map=!1,this.message=null,this.partOf=null,this.defaultValue=null,this.long=!!l.Long&&void 0!==f.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.d=null}e.exports=n;var i=t(22),s=i.extend(n);n.className="Field";var o,u,a=t(16),f=t(33),l=t(34),h=l.b;l.props(s,{packed:{get:s.isPacked=function(){return null===this.d&&(this.d=this.getOption("packed")!==!1),this.d}}}),s.setOption=function(t,e,r){return"packed"===t&&(this.d=null),i.prototype.setOption.call(this,t,e,r)},n.testJSON=function(t){return Boolean(t&&void 0!==t.id)},n.fromJSON=function(e,r){return void 0!==r.keyType?(u||(u=t(18)),u.fromJSON(e,r)):new n(e,r.id,r.type,r.rule,r.extend,r.options)},s.toJSON=function(){return{rule:"optional"!==this.rule&&this.rule||void 0,type:this.type,id:this.id,extend:this.extend,options:this.options}},s.resolve=function(){if(this.resolved)return this;var e=f.defaults[this.type];if(void 0===e)if(o||(o=t(32)),this.resolvedType=this.parent.lookup(this.type,o))e=null;else{if(!(this.resolvedType=this.parent.lookup(this.type,a)))throw Error("unresolvable field type: "+this.type);e=0}return this.map?this.defaultValue={}:this.repeated?this.defaultValue=[]:(this.options&&void 0!==this.options.default?this.defaultValue=this.options.default:this.defaultValue=e,this.long&&(this.defaultValue=l.Long.fromNumber(this.defaultValue,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.defaultValue))),i.prototype.resolve.call(this)}},{16:16,18:18,22:22,32:32,33:33,34:34}],18:[function(t,e,r){"use strict";function n(t,e,r,n,s){if(i.call(this,t,e,n,s),!a.isString(r))throw a.b("keyType");this.keyType=r,this.resolvedKeyType=null,this.map=!0}e.exports=n;var i=t(17),s=i.prototype,o=i.extend(n);n.className="MapField";var u=t(33),a=t(34);n.testJSON=function(t){return i.testJSON(t)&&void 0!==t.keyType},n.fromJSON=function(t,e){return new n(t,e.id,e.keyType,e.type,e.options)},o.toJSON=function(){return{keyType:this.keyType,type:this.type,id:this.id,extend:this.extend,options:this.options}},o.resolve=function(){if(this.resolved)return this;if(void 0===u.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return s.resolve.call(this)}},{17:17,33:33,34:34}],19:[function(t,e,r){"use strict";function n(t){if(t)for(var e=Object.keys(t),r=0;r<e.length;++r)this[e[r]]=t[e[r]]}e.exports=n;var i=t(13),s=n.prototype;s.asJSON=function(t){return i(this.$type,this,{},t,i.toJson)},n.from=function(t,e){return i(this.$type,t,new this.constructor,e,i.toMessage)},n.encode=function(t,e){return this.$type.encode(t,e)},n.encodeDelimited=function(t,e){return this.$type.encodeDelimited(t,e)},n.decode=function(t){return this.$type.decode(t)},n.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},n.verify=function(t){return this.$type.verify(t)}},{13:13}],20:[function(t,e,r){"use strict";function n(t,e,r,n,s,o,f){if(u.isObject(s)?(f=s,s=o=void 0):u.isObject(o)&&(f=o,o=void 0),e&&!u.isString(e))throw a("type");if(!u.isString(r))throw a("requestType");if(!u.isString(n))throw a("responseType");i.call(this,t,f),this.type=e||"rpc",this.requestType=r,this.requestStream=!!s||void 0,this.responseType=n,this.responseStream=!!o||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null}e.exports=n;var i=t(22),s=i.extend(n);n.className="Method";var o=t(32),u=t(34),a=u.b;n.testJSON=function(t){return Boolean(t&&void 0!==t.requestType)},n.fromJSON=function(t,e){return new n(t,e.type,e.requestType,e.responseType,e.requestStream,e.responseStream,e.options)},s.toJSON=function(){return{type:"rpc"!==this.type&&this.type||void 0,requestType:this.requestType,requestStream:this.requestStream||void 0,responseType:this.responseType,responseStream:this.responseStream||void 0,options:this.options}},s.resolve=function(){if(this.resolved)return this;if(!(this.resolvedRequestType=this.parent.lookup(this.requestType,o)))throw Error("unresolvable request type: "+this.requestType);if(!(this.resolvedResponseType=this.parent.lookup(this.responseType,o)))throw Error("unresolvable response type: "+this.requestType);return i.prototype.resolve.call(this)}},{22:22,32:32,34:34}],21:[function(t,e,r){"use strict";function n(){f||(f=t(32)),l||(l=t(30)),h=[d,f,l,p,i],c="one of "+h.map(function(t){return t.name}).join(", ")}function i(t,e){u.call(this,t,e),this.nested=void 0,this.e=null,this.f=[]}function s(t){t.e=null;for(var e=0;e<t.f.length;++e)delete t[t.f[e]];return t.f=[],t}function o(t){if(t&&t.length){for(var e={},r=0;r<t.length;++r)e[t[r].name]=t[r].toJSON();return e}}e.exports=i;var u=t(22),a=u.extend(i);i.className="Namespace";var f,l,h,c,d=t(16),p=t(17),v=t(34),y=v.b;v.props(a,{nestedArray:{get:function(){return this.e||(this.e=v.toArray(this.nested))}}}),i.testJSON=function(t){return Boolean(t&&!t.fields&&!t.values&&void 0===t.id&&!t.oneof&&!t.methods&&void 0===t.requestType)},i.fromJSON=function(t,e){return new i(t,e.options).addJSON(e.nested)},a.toJSON=function(){return{options:this.options,nested:o(this.getNestedArray())}},i.arrayToJSON=o,a.addJSON=function(t){var e=this;return t&&(h||n(),Object.keys(t).forEach(function(r){for(var n=t[r],i=0;i<h.length;++i)if(h[i].testJSON(n))return e.add(h[i].fromJSON(r,n));throw y("nested."+r,"JSON for "+c)})),this},a.get=function(t){return void 0===this.nested?null:this.nested[t]||null},a.getEnum=function(t){if(this.nested&&this.nested[t]instanceof d)return this.nested[t].values;throw Error("no such enum")},a.add=function(t){if(h||n(),!t||h.indexOf(t.constructor)<0)throw y("object",c);if(t instanceof p&&void 0===t.extend)throw y("object","an extension field when not part of a type");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof i&&t instanceof i)||e instanceof f||e instanceof l)throw Error("duplicate name '"+t.name+"' in "+this);for(var r=e.getNestedArray(),o=0;o<r.length;++o)t.add(r[o]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return this.nested[t.name]=t,t.onAdd(this),s(this)},a.remove=function(t){if(!(t instanceof u))throw y("object","a ReflectionObject");if(t.parent!==this||!this.nested)throw Error(t+" is not a member of "+this);return delete this.nested[t.name],Object.keys(this.nested).length||(this.nested=void 0),t.onRemove(this),s(this)},a.define=function(t,e){v.isString(t)?t=t.split("."):Array.isArray(t)||(e=t,t=void 0);var r=this;if(t)for(;t.length>0;){var n=t.shift();if(r.nested&&r.nested[n]){if(r=r.nested[n],!(r instanceof i))throw Error("path conflicts with non-namespace objects")}else r.add(r=new i(n))}return e&&r.addJSON(e),r},a.resolve=function(){f||(f=t(32)),l||(f=t(30));for(var e=this.getNestedArray(),r=0;r<e.length;++r)if(/^[A-Z]/.test(e[r].name)){if(e[r]instanceof f||e[r]instanceof l)this[e[r].name]=e[r];else{if(!(e[r]instanceof d))continue;this[e[r].name]=e[r].values}this.f.push(e[r].name)}return u.prototype.resolve.call(this)},a.resolveAll=function(){for(var t=this.getNestedArray(),e=0;e<t.length;)t[e]instanceof i?t[e++].resolveAll():t[e++].resolve();return a.resolve.call(this)},a.lookup=function(t,e,r){if("boolean"==typeof e&&(r=e,e=void 0),v.isString(t)&&t.length)t=t.split(".");else if(!t.length)return null;if(""===t[0])return this.getRoot().lookup(t.slice(1),e);var n=this.get(t[0]);return n&&1===t.length&&(!e||n instanceof e)||n instanceof i&&(n=n.lookup(t.slice(1),e,!0))?n:null===this.parent||r?null:this.parent.lookup(t,e)},a.lookupType=function(e){f||(f=t(32));var r=this.lookup(e,f);if(!r)throw Error("no such type");return r},a.lookupService=function(e){l||(l=t(30));var r=this.lookup(e,l);if(!r)throw Error("no such service");return r},a.lookupEnum=function(t){var e=this.lookup(t,d);if(!e)throw Error("no such enum");return e.values}},{16:16,17:17,22:22,30:30,32:32,34:34}],22:[function(t,e,r){"use strict";function n(t,e){if(!i.isString(t))throw o("name");if(e&&!i.isObject(e))throw o("options","an object");this.options=e,this.name=t,this.parent=null,this.resolved=!1}e.exports=n;var i=t(34);n.className="ReflectionObject",n.extend=i.extend;var s,o=i.b,u=n.prototype;i.props(u,{root:{get:function(){for(var t=this;null!==t.parent;)t=t.parent;return t}},fullName:{get:u.getFullName=function(){for(var t=[this.name],e=this.parent;e;)t.unshift(e.name),e=e.parent;return t.join(".")}}}),u.toJSON=function(){throw Error()},u.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var r=e.getRoot();s||(s=t(27)),r instanceof s&&r.g(this)},u.onRemove=function(e){var r=e.getRoot();s||(s=t(27)),r instanceof s&&r.h(this),this.parent=null,this.resolved=!1},u.resolve=function(){if(this.resolved)return this;var e=this.getRoot();return s||(s=t(27)),e instanceof s&&(this.resolved=!0),this},u.getOption=function(t){if(this.options)return this.options[t]},u.setOption=function(t,e,r){return r&&this.options&&void 0!==this.options[t]||((this.options||(this.options={}))[t]=e),this},u.setOptions=function(t,e){return t&&Object.keys(t).forEach(function(r){this.setOption(r,t[r],e)},this),this},u.toString=function(){var t=this.constructor.className,e=this.getFullName();return e.length?t+" "+e:t}},{27:27,34:34}],23:[function(t,e,r){"use strict";function n(t,e,r){if(Array.isArray(e)||(r=e,e=void 0),s.call(this,t,r),e&&!Array.isArray(e))throw f("fieldNames","an Array");this.ucName=a.ucFirst(this.name),this.oneof=e||[],this.i=[]}function i(t){t.parent&&t.i.forEach(function(e){e.parent||t.parent.add(e)})}e.exports=n;var s=t(22),o=s.extend(n);n.className="OneOf";var u=t(17),a=t(34),f=a.b;a.prop(o,"fieldsArray",{get:function(){return this.i}}),n.testJSON=function(t){return Boolean(t.oneof)},n.fromJSON=function(t,e){return new n(t,e.oneof,e.options)},o.toJSON=function(){return{oneof:this.oneof,options:this.options}},o.add=function(t){if(!(t instanceof u))throw f("field","a Field");return t.parent&&t.parent.remove(t),this.oneof.push(t.name),this.i.push(t),t.partOf=this,i(this),this},o.remove=function(t){if(!(t instanceof u))throw f("field","a Field");var e=this.i.indexOf(t);if(e<0)throw Error(t+" is not a member of "+this);return this.i.splice(e,1),e=this.oneof.indexOf(t.name),e>-1&&this.oneof.splice(e,1),t.parent&&t.parent.remove(t),t.partOf=null,this},o.onAdd=function(t){s.prototype.onAdd.call(this,t),i(this)},o.onRemove=function(t){this.i.forEach(function(t){t.parent&&t.parent.remove(t)}),s.prototype.onRemove.call(this,t)}},{17:17,22:22,34:34}],24:[function(t,e,r){"use strict";function n(t){return/^[a-zA-Z_][a-zA-Z_0-9]*$/.test(t)}function i(t){return/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/.test(t)}function s(t){return/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/.test(t)}function o(t){return null===t?null:t.toLowerCase()}function u(t){return t.substring(0,1)+t.substring(1).replace(/_([a-z])(?=[a-z]|$)/g,function(t,e){return e.toUpperCase()})}function a(t,e,r){function w(t,e){var r=a.filename;return a.filename=null,Error("illegal "+(e||"token")+" '"+t+"' ("+(r?r+", ":"")+"line "+Z.line()+")")}function k(){var t,e=[];do{if('"'!==(t=W())&&"'"!==t)throw w(t);e.push(W()),Q(t),t=G()}while('"'===t||"'"===t);return e.join("")}function x(t){var e=W();switch(o(e)){case"'":case'"':return X(e),k();case"true":return!0;case"false":return!1}try{return N(e)}catch(r){if(t&&i(e))return e;throw w(e,"value")}}function O(){var t=A(W()),e=t;return Q("to",!0)&&(e=A(W())),Q(";"),[t,e]}function N(t){var e=1;"-"===t.charAt(0)&&(e=-1,t=t.substring(1));var r=o(t);switch(r){case"inf":return e*(1/0);case"nan":return NaN;case"0":return 0}if(/^[1-9][0-9]*$/.test(t))return e*parseInt(t,10);if(/^0[x][0-9a-f]+$/.test(r))return e*parseInt(t,16);if(/^0[0-7]+$/.test(t))return e*parseInt(t,8);if(/^(?!e)[0-9]*(?:\.[0-9]*)?(?:[e][+-]?[0-9]+)?$/.test(r))return e*parseFloat(t);throw w(t,"number")}function A(t,e){var r=o(t);switch(r){case"max":return 536870911;case"0":return 0}if("-"===t.charAt(0)&&!e)throw w(t,"id");if(/^-?[1-9][0-9]*$/.test(t))return parseInt(t,10);if(/^-?0[x][0-9a-f]+$/.test(r))return parseInt(t,16);if(/^-?0[0-7]+$/.test(t))return parseInt(t,8);throw w(t,"id")}function S(){if(void 0!==P)throw w("package");if(P=W(),!i(P))throw w(P,"name");rt=rt.define(P),Q(";")}function j(){var t,e=G();switch(e){case"weak":t=H||(H=[]),W();break;case"public":W();default:t=_||(_=[])}e=k(),Q(";"),t.push(e)}function T(){if(Q("="),K=o(k()),tt="proto3"===K,!tt&&"proto2"!==K)throw w(K,"syntax");Q(";")}function E(t,e){switch(e){case"option":return $(t,e),Q(";"),!0;case"message":return F(t,e),!0;case"enum":return V(t,e),!0;case"service":return C(t,e),!0;case"extend":return D(t,e),!0}return!1}function F(t,e){var r=W();if(!n(r))throw w(r,"type name");var s=new h(r);if(Q("{",!0)){for(;"}"!==(e=W());){var u=o(e);if(!E(s,e))switch(u){case"map":q(s,u);break;case"required":case"optional":case"repeated":B(s,u);break;case"oneof":L(s,u);break;case"extensions":(s.extensions||(s.extensions=[])).push(O(s,u));break;case"reserved":(s.reserved||(s.reserved=[])).push(O(s,u));break;default:if(!tt||!i(e))throw w(e);X(e),B(s,"optional")}}Q(";",!0)}else Q(";");t.add(s)}function B(t,e,r){var s=W();if("group"===o(s))return void J(t,e);if(!i(s))throw w(s,"type");var u=W();if(!n(u))throw w(u,"name");u=nt(u),Q("=");var a=A(W()),f=M(new c(u,a,s,e,r));f.repeated&&void 0!==g.packed[s]&&!tt&&f.setOption("packed",!1,!0),t.add(f)}function J(t,e){var r=W();if(!n(r))throw w(r,"name");var i=b.lcFirst(r);r===i&&(r=b.ucFirst(r)),Q("=");var s=A(W()),u=new h(r);u.group=!0;var a=new c(i,s,r,e);for(Q("{");"}"!==(et=W());)switch(et=o(et)){case"option":$(u,et),Q(";");break;case"required":case"optional":case"repeated":B(u,et);break;default:throw w(et)}Q(";",!0),t.add(u).add(a)}function q(t){Q("<");var e=W();if(void 0===g.mapKey[e])throw w(e,"type");Q(",");var r=W();if(!i(r))throw w(r,"type");Q(">");var s=W();if(!n(s))throw w(s,"name");s=nt(s),Q("=");var o=A(W()),u=M(new d(s,o,e,r));t.add(u)}function L(t,e){var r=W();if(!n(r))throw w(r,"name");r=nt(r);var i=new p(r);if(Q("{",!0)){for(;"}"!==(e=W());)"option"===e?($(i,e),Q(";")):(X(e),B(i,"optional"));Q(";",!0)}else Q(";");t.add(i)}function V(t,e){var r=W();if(!n(r))throw w(r,"name");var i={},s=new v(r,i);if(Q("{",!0)){for(;"}"!==(e=W());)"option"===o(e)?($(s,e),Q(";")):I(s,e);Q(";",!0)}else Q(";");t.add(s)}function I(t,e){if(!n(e))throw w(e,"name");var r=e;Q("=");var i=A(W(),!0);t.values[r]=i,M({})}function $(t,e){var r=Q("(",!0),n=W();if(!i(n))throw w(n,"name");r&&(Q(")"),n="("+n+")",e=G(),s(e)||(n+=e,W())),Q("="),z(t,n)}function z(t,e){if(Q("{",!0))for(;"}"!==(et=W());){if(!n(et))throw w(et,"name");e=e+"."+et,Q(":",!0)?R(t,e,x(!0)):z(t,e)}else R(t,e,x(!0))}function R(t,e,r){t.setOption?t.setOption(e,r):t[e]=r}function M(t){if(Q("[",!0)){do $(t,"option");while(Q(",",!0));Q("]")}return Q(";"),t}function C(t,e){if(e=W(),!n(e))throw w(e,"service name");var r=e,i=new y(r);if(Q("{",!0)){for(;"}"!==(e=W());){var s=o(e);switch(s){case"option":$(i,s),Q(";");break;case"rpc":U(i,s);break;default:throw w(e)}}Q(";",!0)}else Q(";");t.add(i)}function U(t,e){var r=e,s=W();if(!n(s))throw w(s,"name");var u,a,f,l;Q("(");var h;if(Q(h="stream",!0)&&(a=!0),!i(e=W()))throw w(e);if(u=e,Q(")"),Q("returns"),Q("("),Q(h,!0)&&(l=!0),!i(e=W()))throw w(e);f=e,Q(")");var c=new m(s,r,u,f,a,l);if(Q("{",!0)){for(;"}"!==(e=W());){var d=o(e);switch(d){case"option":$(c,d),Q(";");break;default:throw w(e)}}Q(";",!0)}else Q(";");t.add(c)}function D(t,e){var r=W();if(!i(r))throw w(r,"reference");if(Q("{",!0)){for(;"}"!==(e=W());){var n=o(e);switch(n){case"required":case"repeated":case"optional":B(t,n,r);break;default:if(!tt||!i(e))throw w(e);X(e),B(t,"optional",r)}}Q(";",!0)}else Q(";")}e instanceof l?r||(r={}):(e=new l,r=e||{});var P,_,H,K,Z=f(t),W=Z.next,X=Z.push,G=Z.peek,Q=Z.skip,Y=!0,tt=!1;e||(e=new l);for(var et,rt=e,nt=r.keepCase?function(t){return t}:u;null!==(et=W());){var it=o(et);switch(it){case"package":if(!Y)throw w(et);S();break;case"import":if(!Y)throw w(et);j();break;case"syntax":if(!Y)throw w(et);T();break;case"option":if(!Y)throw w(et);$(rt,et),Q(";");break;default:if(E(rt,et)){Y=!1;continue}throw w(et)}}return a.filename=null,{package:P,imports:_,weakImports:H,syntax:K,root:e}}e.exports=a;var f=t(31),l=t(27),h=t(32),c=t(17),d=t(18),p=t(23),v=t(16),y=t(30),m=t(20),g=t(33),b=t(34)},{16:16,17:17,18:18,20:20,23:23,27:27,30:30,31:31,32:32,33:33,34:34}],25:[function(t,e,r){"use strict";function n(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function i(t){this.buf=t,this.pos=0,this.len=t.length}function s(){var t=new k(0,0),e=0;if(this.len-this.pos>4){for(e=0;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}else{for(e=0;e<4;++e){if(this.pos>=this.len)throw n(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}if(this.pos>=this.len)throw n(this);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(this.len-this.pos>4){for(e=0;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=0;e<5;++e){if(this.pos>=this.len)throw n(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 o(){return s.call(this).toLong()}function u(){return s.call(this).toNumber()}function a(){return s.call(this).toLong(!0)}function f(){return s.call(this).toNumber(!0)}function l(){return s.call(this).zzDecode().toLong()}function h(){return s.call(this).zzDecode().toNumber()}function c(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw n(this,8);return new k(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}function p(){return d.call(this).toLong(!0)}function v(){return d.call(this).toNumber(!0)}function y(){return d.call(this).zzDecode().toLong()}function m(){return d.call(this).zzDecode().toNumber()}function g(){w.Long?(O.int64=o,O.uint64=a,O.sint64=l,O.fixed64=p,O.sfixed64=y):(O.int64=u,O.uint64=f,O.sint64=h,O.fixed64=v,O.sfixed64=m)}e.exports=i;var b,w=t(36),k=w.LongBits,x=w.utf8;i.create=w.Buffer?function(e){return b||(b=t(26)),(i.create=function(t){return new b(t)})(e)}:function(t){return new i(t)};var O=i.prototype;O.j=w.Array.prototype.subarray||w.Array.prototype.slice,O.uint32=function(){var t=4294967295;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return t;if(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return t;if((this.pos+=5)>this.len)throw this.pos=this.len,n(this,10);return t}}(),O.int32=function(){return 0|this.uint32()},O.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},O.bool=function(){return 0!==this.uint32()},O.fixed32=function(){if(this.pos+4>this.len)throw n(this,4);return c(this.buf,this.pos+=4)},O.sfixed32=function(){var t=this.fixed32();return t>>>1^-(1&t)};var N="undefined"!=typeof Float32Array?function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=-0,e[3]?function(r,n){return e[0]=r[n],e[1]=r[n+1],e[2]=r[n+2],e[3]=r[n+3],t[0]}:function(r,n){return e[3]=r[n],e[2]=r[n+1],e[1]=r[n+2],e[0]=r[n+3],t[0]}}():function(t,e){var r=c(t,e+4),n=2*(r>>31)+1,i=r>>>23&255,s=8388607&r;return 255===i?s?NaN:n*(1/0):0===i?1.401298464324817e-45*n*s:n*Math.pow(2,i-150)*(s+8388608)};O.float=function(){if(this.pos+4>this.len)throw n(this,4);var t=N(this.buf,this.pos);return this.pos+=4,t};var A="undefined"!=typeof Float64Array?function(){var t=new Float64Array(1),e=new Uint8Array(t.buffer);return t[0]=-0,e[7]?function(r,n){return e[0]=r[n],e[1]=r[n+1],e[2]=r[n+2],e[3]=r[n+3],e[4]=r[n+4],e[5]=r[n+5],e[6]=r[n+6],e[7]=r[n+7],t[0]}:function(r,n){return e[7]=r[n],e[6]=r[n+1],e[5]=r[n+2],e[4]=r[n+3],e[3]=r[n+4],e[2]=r[n+5],e[1]=r[n+6],e[0]=r[n+7],t[0]}}():function(t,e){var r=c(t,e+4),n=c(t,e+8),i=2*(n>>31)+1,s=n>>>20&2047,o=4294967296*(1048575&n)+r;return 2047===s?o?NaN:i*(1/0):0===s?5e-324*i*o:i*Math.pow(2,s-1075)*(o+4503599627370496)};O.double=function(){if(this.pos+8>this.len)throw n(this,4);var t=A(this.buf,this.pos);return this.pos+=8,t},O.bytes=function(){var t=this.uint32(),e=this.pos,r=this.pos+t;if(r>this.len)throw n(this,t);return this.pos+=t,e===r?new this.buf.constructor(0):this.j.call(this.buf,e,r)},O.string=function(){var t=this.bytes();return x.read(t,0,t.length)},O.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw n(this,t);this.pos+=t}else do if(this.pos>=this.len)throw n(this);while(128&this.buf[this.pos++]);return this},O.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(;;){if(4===(t=7&this.uint32()))break;this.skipType(t)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type: "+t)}return this},i.k=g,g()},{26:26,36:36}],26:[function(t,e,r){"use strict";function n(t){i.call(this,t)}e.exports=n;var i=t(25),s=n.prototype=Object.create(i.prototype);s.constructor=n;var o=t(36);o.Buffer&&(s.j=o.Buffer.prototype.slice),s.string=function(){var t=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len))}},{25:25,36:36}],27:[function(t,e,r){"use strict";function n(t){o.call(this,"",t),this.deferred=[],this.files=[]}function i(){}function s(t){var e=t.parent.lookup(t.extend);if(e){var r=new f(t.getFullName(),t.id,t.type,t.rule,(void 0),t.options);return r.declaringField=t,t.extensionField=r,e.add(r),!0}return!1}e.exports=n;var o=t(21),u=o.extend(n);n.className="Root";var a,f=t(17),l=t(34),h=t(12);n.fromJSON=function(t,e){return e||(e=new n),e.setOptions(t.options).addJSON(t.nested)},u.resolvePath=l.path.resolve;var c=function(){try{a=t(24)}catch(t){}c=null};u.load=function t(e,r,n){function s(t,e){if(n){var r=n;n=null,r(t,e)}}function o(t,e){try{if((l.isString(e)&&"{"===e.charAt(0)||!a)&&(e=JSON.parse(e)),l.isString(e)){a.filename=t;var n=a(e,f,r);n.imports&&n.imports.forEach(function(e){u(f.resolvePath(t,e))}),n.weakImports&&n.weakImports.forEach(function(e){u(f.resolvePath(t,e),!0)})}else f.setOptions(e.options).addJSON(e.nested)}catch(t){return void s(t)}d||p||s(null,f)}function u(t,e){var r=t.lastIndexOf("google/protobuf/");if(r>-1){var i=t.substring(r);i in h&&(t=i)}if(!(f.files.indexOf(t)>-1)){if(f.files.push(t),t in h)return void(d?o(t,h[t]):(++p,setTimeout(function(){--p,o(t,h[t])})));if(d){var u;try{u=l.fs.readFileSync(t).toString("utf8")}catch(t){return void(e||s(t))}o(t,u)}else++p,l.fetch(t,function(r,i){if(--p,n)return r?void(e||s(r)):void o(t,i)})}}c&&c(),"function"==typeof r&&(n=r,r=void 0);var f=this;if(!n)return l.asPromise(t,f,e);var d=n===i,p=0;return l.isString(e)&&(e=[e]),e.forEach(function(t){u(f.resolvePath("",t))}),d?f:void(p||s(null,f))},u.loadSync=function(t,e){return this.load(t,e,i)},u.g=function(t){var e=this.deferred.slice();this.deferred=[];for(var r=0;r<e.length;)s(e[r])?e.splice(r,1):++r;if(this.deferred=e,t instanceof f&&void 0!==t.extend&&!t.extensionField&&!s(t)&&this.deferred.indexOf(t)<0)this.deferred.push(t);else if(t instanceof o){var n=t.getNestedArray();for(r=0;r<n.length;++r)this.g(n[r])}},u.h=function(t){if(t instanceof f){if(void 0!==t.extend&&!t.extensionField){var e=this.deferred.indexOf(t);e>-1&&this.deferred.splice(e,1)}t.extensionField&&(t.extensionField.parent.remove(t.extensionField),t.extensionField=null)}else if(t instanceof o)for(var r=t.getNestedArray(),n=0;n<r.length;++n)this.h(r[n])}},{12:12,17:17,21:21,24:24,34:34}],28:[function(t,e,r){"use strict";var n=r;n.Service=t(29)},{29:29}],29:[function(t,e,r){"use strict";function n(t){s.call(this),this.$rpc=t}e.exports=n;var i=t(34),s=i.EventEmitter,o=n.prototype=Object.create(s.prototype);o.constructor=n,o.end=function(t){return this.$rpc&&(t||this.$rpc(null,null,null),this.$rpc=null,this.emit("end").off()),this}},{34:34}],30:[function(t,e,r){"use strict";function n(t,e){s.call(this,t,e),this.methods={},this.l=null}function i(t){return t.l=null,t}e.exports=n;var s=t(21),o=s.prototype,u=s.extend(n);n.className="Service";var a=t(20),f=t(34),l=t(28);f.props(u,{methodsArray:{get:function(){return this.l||(this.l=f.toArray(this.methods))}}}),n.testJSON=function(t){return Boolean(t&&t.methods)},n.fromJSON=function(t,e){var r=new n(t,e.options);return e.methods&&Object.keys(e.methods).forEach(function(t){r.add(a.fromJSON(t,e.methods[t]))}),r},u.toJSON=function(){var t=o.toJSON.call(this);return{options:t&&t.options||void 0,methods:s.arrayToJSON(this.getMethodsArray())||{},nested:t&&t.nested||void 0}},u.get=function(t){return o.get.call(this,t)||this.methods[t]||null},u.resolveAll=function(){for(var t=this.getMethodsArray(),e=0;e<t.length;++e)t[e].resolve();return o.resolve.call(this)},u.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);return t instanceof a?(this.methods[t.name]=t,t.parent=this,i(this)):o.add.call(this,t)},u.remove=function(t){if(t instanceof a){if(this.methods[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.methods[t.name],t.parent=null,i(this)}return o.remove.call(this,t)},u.create=function(t,e,r){var n=new l.Service(t);return this.getMethodsArray().forEach(function(i){n[f.lcFirst(i.name)]=function(s,o){if(n.$rpc){if(!s)throw f.b("request","not null");i.resolve();var u;try{u=(e?i.resolvedRequestType.encodeDelimited(s):i.resolvedRequestType.encode(s)).finish()}catch(t){return void("function"==typeof setImmediate?setImmediate:setTimeout)(function(){o(t)})}t(i,u,function(t,e){if(t)return n.emit("error",t,i),o?o(t):void 0;if(null===e)return void n.end(!0);var s;try{s=r?i.resolvedResponseType.decodeDelimited(e):i.resolvedResponseType.decode(e)}catch(t){return n.emit("error",t,i),o?o("error",t):void 0}return n.emit("data",s,i),o?o(null,s):void 0})}}}),n}},{20:20,21:21,28:28,34:34}],31:[function(t,e,r){"use strict";function n(t){return t.replace(/\\(.?)/g,function(t,e){switch(e){case"\\":case"":return e;case"0":return"\0";default:return e}})}function i(t){function e(t){return Error("illegal "+t+" (line "+p+")")}function r(){var r="'"===y?u:o;r.lastIndex=c-1;var i=r.exec(t);if(!i)throw e("string");return c=r.lastIndex,f(y),y=null,n(i[1])}function i(e){return t.charAt(e)}function a(){if(v.length>0)return v.shift();if(y)return r();var n,o,u;do{if(c===d)return null;for(n=!1;/\s/.test(u=i(c));)if("\n"===u&&++p,++c===d)return null;if("/"===i(c)){if(++c===d)throw e("comment");if("/"===i(c)){for(;"\n"!==i(++c);)if(c===d)return null;++c,++p,n=!0}else{if("*"!==(u=i(c)))return"/";do{if("\n"===u&&++p,++c===d)return null;o=u,u=i(c)}while("*"!==o||"/"!==u);++c,n=!0}}}while(n);if(c===d)return null;var a=c;s.lastIndex=0;var f=s.test(i(a++));if(!f)for(;a<d&&!s.test(i(a));)++a;var l=t.substring(c,c=a);return'"'!==l&&"'"!==l||(y=l),l}function f(t){v.push(t)}function l(){if(!v.length){var t=a();if(null===t)return null;f(t)}return v[0]}function h(t,r){var n=l(),i=n===t;if(i)return a(),!0;if(!r)throw e("token '"+n+"', '"+t+"' expected");return!1}t=t.toString();var c=0,d=t.length,p=1,v=[],y=null;return{line:function(){return p},next:a,peek:l,push:f,skip:h}}e.exports=i;var s=/[\s{}=;:[\],'"()<>]/g,o=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,u=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g},{}],32:[function(t,e,r){"use strict";function n(t,e){s.call(this,t,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this.m=null,this.i=null,this.n=null,this.o=null,this.p=null}function i(t){return t.m=t.i=t.o=t.p=null,delete t.encode,delete t.decode,delete t.verify,t}e.exports=n;var s=t(21),o=s.prototype,u=s.extend(n);n.className="Type";var a,f,l,h=t(16),c=t(23),d=t(17),p=t(30),v=t(11),y=t(19),m=t(25),g=t(38),b=t(13),w=t(34);w.props(u,{fieldsById:{get:function(){if(this.m)return this.m;this.m={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var r=this.fields[t[e]],n=r.id;if(this.m[n])throw Error("duplicate id "+n+" in "+this);this.m[n]=r}return this.m}},fieldsArray:{get:function(){return this.i||(this.i=w.toArray(this.fields))}},repeatedFieldsArray:{get:function(){return this.n||(this.n=this.getFieldsArray().filter(function(t){return t.repeated}))}},oneofsArray:{get:function(){return this.o||(this.o=w.toArray(this.oneofs))}},ctor:{get:function(){return this.p||(this.p=v.create(this).constructor)},set:function(t){if(t&&!(t.prototype instanceof y))throw w.b("ctor","a Message constructor");t.from||(t.from=y.from),this.p=t}}}),n.testJSON=function(t){return Boolean(t&&t.fields)};var k=[h,n,d,p];n.fromJSON=function(t,e){var r=new n(t,e.options);return r.extensions=e.extensions,r.reserved=e.reserved,e.fields&&Object.keys(e.fields).forEach(function(t){r.add(d.fromJSON(t,e.fields[t]))}),e.oneofs&&Object.keys(e.oneofs).forEach(function(t){r.add(c.fromJSON(t,e.oneofs[t]))}),e.nested&&Object.keys(e.nested).forEach(function(t){for(var n=e.nested[t],i=0;i<k.length;++i)if(k[i].testJSON(n))return void r.add(k[i].fromJSON(t,n));throw Error("invalid nested object in "+r+": "+t)}),e.extensions&&e.extensions.length&&(r.extensions=e.extensions),e.reserved&&e.reserved.length&&(r.reserved=e.reserved),e.group&&(r.group=!0),r},u.toJSON=function(){var t=o.toJSON.call(this);return{options:t&&t.options||void 0,oneofs:s.arrayToJSON(this.getOneofsArray()),fields:s.arrayToJSON(this.getFieldsArray().filter(function(t){return!t.declaringField}))||{},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:t&&t.nested||void 0}},u.resolveAll=function(){for(var t=this.getFieldsArray(),e=0;e<t.length;)t[e++].resolve();var r=this.getOneofsArray();for(e=0;e<r.length;)r[e++].resolve();return o.resolve.call(this)},u.get=function(t){return o.get.call(this,t)||this.fields&&this.fields[t]||this.oneofs&&this.oneofs[t]||null},u.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof d&&void 0===t.extend){if(this.getFieldsById()[t.id])throw Error("duplicate id "+t.id+" in "+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),i(this)}return t instanceof c?(this.oneofs||(this.oneofs={}),this.oneofs[t.name]=t,t.onAdd(this),i(this)):o.add.call(this,t)},u.remove=function(t){if(t instanceof d&&void 0===t.extend){if(this.fields[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.fields[t.name],t.message=null,i(this)}return o.remove.call(this,t)},u.create=function(t){return new(this.getCtor())(t)},u.from=function(t,e){return b(this,t,new(this.getCtor()),e,b.toMessage)},u.setup=function(){return a||(a=t(15),f=t(14),l=t(37)),this.encode=a(this).eof(this.getFullName()+"$encode",{Writer:g,types:this.getFieldsArray().map(function(t){return t.resolvedType}),util:w}),this.decode=f(this).eof(this.getFullName()+"$decode",{Reader:m,types:this.getFieldsArray().map(function(t){return t.resolvedType}),util:w}),this.verify=l(this).eof(this.getFullName()+"$verify",{types:this.getFieldsArray().map(function(t){return t.resolvedType}),util:w}),this},u.encode=function(t,e){return this.setup().encode(t,e)},u.encodeDelimited=function(t,e){return this.encode(t,e&&e.len?e.fork():e).ldelim()},u.decode=function(t,e){return this.setup().decode(t,e)},u.decodeDelimited=function(t){return t=t instanceof m?t:m.create(t),this.decode(t,t.uint32())},u.verify=function(t){return this.setup().verify(t)}},{11:11,13:13,14:14,15:15,16:16,17:17,19:19,21:21,23:23,25:25,30:30,34:34,37:37,38:38}],33:[function(t,e,r){"use strict";function n(t,e){var r=0,n={};for(e|=0;r<t.length;)n[o[r+e]]=t[r++];return n}var i=r,s=t(34),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes","message"];i.basic=n([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=n([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",s.emptyArray,null]),i.long=n([0,0,0,1,1],7),i.mapKey=n([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=n([1,5,0,0,0,5,5,0,0,0,1,1,0])},{34:34}],34:[function(t,e,r){"use strict";var n=e.exports=t(36);n.asPromise=t(1),n.codegen=t(3),n.EventEmitter=t(4),n.extend=t(5),n.fetch=t(6),n.path=t(8),n.fs=n.inquire("fs"),n.toArray=function(t){if(!t)return[];for(var e=Object.keys(t),r=e.length,n=new Array(r),i=0;i<r;++i)n[i]=t[e[i]];return n},n.b=function(t,e){return TypeError(t+" must be "+(e||"a string"))},n.merge=function(t,e,r){if(e)for(var n=Object.keys(e),i=0;i<n.length;++i)void 0!==t[n[i]]&&r||(t[n[i]]=e[n[i]]);return t},n.safeProp=function(t){return'["'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"]'},n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newBuffer=function(t){return t=t||0,n.Buffer?n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(t):new n.Buffer(t):new("undefined"!=typeof Uint8Array?Uint8Array:Array)(t)}},{1:1,3:3,36:36,4:4,5:5,6:6,8:8}],35:[function(t,e,r){"use strict";function n(t,e){this.lo=t,this.hi=e}e.exports=n;var i=t(36),s=n.prototype,o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1},n.fromNumber=function(t){if(0===t)return o;var e=t<0;t=Math.abs(t);var r=t>>>0,i=(t-r)/4294967296>>>0;return e&&(i=~i>>>0,r=~r>>>0,++r>4294967295&&(r=0,++i>4294967295&&(i=0))),new n(r,i)},n.from=function(t){if("number"==typeof t)return n.fromNumber(t);if("string"==typeof t){if(!i.Long)return n.fromNumber(parseInt(t,10));t=i.Long.fromString(t)}return t.low||t.high?new n(t.low>>>0,t.high>>>0):o},s.toNumber=function(t){return!t&&this.hi>>>31?(this.lo=~this.lo+1>>>0,this.hi=~this.hi>>>0,this.lo||(this.hi=this.hi+1>>>0),-(this.lo+4294967296*this.hi)):this.lo+4294967296*this.hi},s.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var u=String.prototype.charCodeAt;n.fromHash=function(t){return new n((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},s.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)},s.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},s.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},s.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}},{36:36}],36:[function(require,module,exports){(function(global){"use strict";var util=exports;util.LongBits=require(35),util.base64=require(2),util.inquire=require(7),util.utf8=require(10),util.pool=require(9),util.isNode=Boolean(global.process&&global.process.versions&&global.process.versions.node),util.isIE8=!1;try{util.isIE8=eval("!-[1,]")}catch(t){}util.Buffer=(util.Buffer=util.inquire("buffer"))&&util.Buffer.Buffer||null,util.Buffer&&(util.Buffer.prototype.utf8Write?util.Buffer.from||(util.Buffer.from=function(t,e){return new util.Buffer(t,e)}):util.Buffer=null),util.Array="undefined"==typeof Uint8Array?Array:Uint8Array,util.Long=global.dcodeIO&&global.dcodeIO.Long||util.inquire("long"),util.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},util.isString=function(t){return"string"==typeof t||t instanceof String},util.isObject=function(t){return t&&"object"==typeof t},util.longToHash=function(t){return t?util.LongBits.from(t).toHash():"\0\0\0\0\0\0\0\0"},util.longFromHash=function(t,e){var r=util.LongBits.fromHash(t);return util.Long?util.Long.fromBits(r.lo,r.hi,e):r.toNumber(Boolean(e))},util.longNeq=function(t,e){return"number"==typeof t?"number"==typeof e?t!==e:(t=util.LongBits.fromNumber(t)).lo!==e.low||t.hi!==e.high:"number"==typeof e?(e=util.LongBits.fromNumber(e)).lo!==t.low||e.hi!==t.high:t.low!==e.low||t.high!==e.high},util.longNe=function(t,e,r){if("object"==typeof t)return t.low!==e||t.high!==r;var n=util.LongBits.from(t);return n.lo!==e||n.hi!==r},util.ucFirst=function(t){return t.charAt(0).toUpperCase()+t.substring(1)},util.props=function(t,e){Object.keys(e).forEach(function(r){util.prop(t,r,e[r])})},util.prop=function(t,e,r){var n=util.ucFirst(e);r.get&&(t["get"+n]=r.get),r.set&&(t["set"+n]=util.isIE8?function(t){r.set.call(this,t),this[e]=t}:r.set),util.isIE8?void 0!==r.value&&(t[e]=r.value):Object.defineProperty(t,e,r)},util.emptyArray=Object.freeze?Object.freeze([]):[],util.emptyObject=Object.freeze?Object.freeze({}):{}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{10:10,2:2,35:35,7:7,9:9}],37:[function(t,e,r){"use strict";function n(t,e){return"invalid value for field "+t.getFullName()+" ("+e+(t.repeated&&"array"!==e?"[]":t.map&&"object"!==e?"{k:"+t.keyType+"}":"")+" expected)"}function i(t,e,r,i){if(e.resolvedType)if(e.resolvedType instanceof u){t("switch(%s){",i)("default:")("return%j",n(e,"enum value"));for(var s=f.toArray(e.resolvedType.values),o=0;o<s.length;++o)t("case %d:",s[o]);t("break")("}")}else e.resolvedType instanceof a&&t("var r;")("if(r=types[%d].verify(%s))",r,i)("return r");else switch(e.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.isInteger(%s))",i)("return%j",n(e,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",i,i,i,i)("return%j",n(e,"integer|Long"));break;case"float":case"double":t('if(typeof %s!=="number")',i)("return%j",n(e,"number"));break;case"bool":t('if(typeof %s!=="boolean")',i)("return%j",n(e,"boolean"));break;case"string":t("if(!util.isString(%s))",i)("return%j",n(e,"string"));break;case"bytes":t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',i,i,i)("return%j",n(e,"buffer"))}}function s(t,e,r){switch(e.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!/^-?(?:0|[1-9]\\d*)$/.test(%s))",r)("return%j",n(e,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9]\\d*))$/.test(%s))",r)("return%j",n(e,"integer|Long key"));break;case"bool":t("if(!/^true|false|0|1$/.test(%s))",r)("return%j",n(e,"boolean key"))}}function o(t){for(var e=t.getFieldsArray(),r=f.codegen("m"),o=0;o<e.length;++o){var u=e[o].resolve(),l=f.safeProp(u.name);u.map?(r("if(m%s!==undefined){",l)("if(!util.isObject(m%s))",l)("return%j",n(u,"object"))("var k=Object.keys(m%s)",l)("for(var i=0;i<k.length;++i){"),s(r,u,"k[i]"),i(r,u,o,"m"+l+"[k[i]]"),r("}")("}")):u.repeated?(r("if(m%s!==undefined){",l)("if(!Array.isArray(m%s))",l)("return%j",n(u,"array"))("for(var i=0;i<m%s.length;++i){",l),i(r,u,o,"m"+l+"[i]"),r("}")("}")):(u.required||(u.resolvedType instanceof a?r("if(m%s!==undefined&&m%s!==null){",l,l):r("if(m%s!==undefined){",l)),i(r,u,o,"m"+l),u.required||r("}"))}return r("return null")}e.exports=o;var u=t(16),a=t(32),f=t(34)},{16:16,32:32,34:34}],38:[function(t,e,r){"use strict";function n(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function i(){}function s(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function o(){this.len=0,this.head=new n(i,0,0),this.tail=this.head,this.states=null}function u(t,e,r){e[r]=255&t}function a(t,e,r){for(;t>127;)e[r++]=127&t|128,t>>>=7;e[r]=t}function f(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 l(t,e,r){e[r++]=255&t,e[r++]=t>>>8&255,e[r++]=t>>>16&255,e[r]=t>>>24}e.exports=o;var h,c=t(36),d=c.LongBits,p=c.base64,v=c.utf8;o.create=c.Buffer?function(){return h||(h=t(39)),(o.create=function(){return new h})()}:function(){return new o},o.alloc=function(t){return new c.Array(t)},c.Array!==Array&&(o.alloc=c.pool(o.alloc,c.Array.prototype.subarray));var y=o.prototype;y.push=function(t,e,r){return this.tail=this.tail.next=new n(t,e,r),this.len+=e,this},y.uint32=function(t){return t>>>=0,this.push(a,t<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)},y.int32=function(t){return t<0?this.push(f,10,d.fromNumber(t)):this.uint32(t)},y.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},y.uint64=function(t){var e=d.from(t);return this.push(f,e.length(),e)},y.int64=y.uint64,y.sint64=function(t){var e=d.from(t).zzEncode();return this.push(f,e.length(),e)},y.bool=function(t){return this.push(u,1,t?1:0)},y.fixed32=function(t){return this.push(l,4,t>>>0)},y.sfixed32=function(t){return this.push(l,4,t<<1^t>>31)},y.fixed64=function(t){var e=d.from(t);return this.push(l,4,e.lo).push(l,4,e.hi)},y.sfixed64=function(t){var e=d.from(t).zzEncode();return this.push(l,4,e.lo).push(l,4,e.hi)};var m="undefined"!=typeof Float32Array?function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=-0,e[3]?function(r,n,i){t[0]=r,n[i++]=e[0],n[i++]=e[1],n[i++]=e[2],n[i]=e[3]}:function(r,n,i){t[0]=r,n[i++]=e[3],n[i++]=e[2],n[i++]=e[1],n[i]=e[0]}}():function(t,e,r){var n=t<0?1:0;if(n&&(t=-t),0===t)l(1/t>0?0:2147483648,e,r);else if(isNaN(t))l(2147483647,e,r);else if(t>3.4028234663852886e38)l((n<<31|2139095040)>>>0,e,r);else if(t<1.1754943508222875e-38)l((n<<31|Math.round(t/1.401298464324817e-45))>>>0,e,r);else{var i=Math.floor(Math.log(t)/Math.LN2),s=8388607&Math.round(t*Math.pow(2,-i)*8388608);l((n<<31|i+127<<23|s)>>>0,e,r)}};y.float=function(t){return this.push(m,4,t)};var g="undefined"!=typeof Float64Array?function(){var t=new Float64Array(1),e=new Uint8Array(t.buffer);return t[0]=-0,e[7]?function(r,n,i){t[0]=r,n[i++]=e[0],n[i++]=e[1],n[i++]=e[2],n[i++]=e[3],n[i++]=e[4],n[i++]=e[5],n[i++]=e[6],n[i]=e[7]}:function(r,n,i){t[0]=r,n[i++]=e[7],n[i++]=e[6],n[i++]=e[5],n[i++]=e[4],n[i++]=e[3],n[i++]=e[2],n[i++]=e[1],n[i]=e[0]}}():function(t,e,r){var n=t<0?1:0;if(n&&(t=-t),0===t)l(0,e,r),l(1/t>0?0:2147483648,e,r+4);else if(isNaN(t))l(4294967295,e,r),l(2147483647,e,r+4);else if(t>1.7976931348623157e308)l(0,e,r),l((n<<31|2146435072)>>>0,e,r+4);else{var i;if(t<2.2250738585072014e-308)i=t/5e-324,l(i>>>0,e,r),l((n<<31|i/4294967296)>>>0,e,r+4);else{var s=Math.floor(Math.log(t)/Math.LN2);1024===s&&(s=1023),i=t*Math.pow(2,-s),l(4503599627370496*i>>>0,e,r),l((n<<31|s+1023<<20|1048576*i&1048575)>>>0,e,r+4)}}};y.double=function(t){return this.push(g,8,t)};var b=c.Array.prototype.set?function(t,e,r){e.set(t,r)}:function(t,e,r){for(var n=0;n<t.length;++n)e[r+n]=t[n]};y.bytes=function(t){var e=t.length>>>0;if("string"==typeof t&&e){var r=o.alloc(e=p.length(t));p.decode(t,r,0),t=r}return e?this.uint32(e).push(b,e,t):this.push(u,1,0)},y.string=function(t){var e=v.length(t);return e?this.uint32(e).push(v.write,e,t):this.push(u,1,0)},y.fork=function(){return this.states=new s(this),this.head=this.tail=new n(i,0,0),this.len=0,this},y.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(i,0,0),this.len=0),this},y.ldelim=function(t){var e=this.head,r=this.tail,n=this.len;return this.reset(),"number"==typeof t&&this.uint32((t<<3|2)>>>0),this.uint32(n),this.tail.next=e.next,this.tail=r,this.len+=n,this},y.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}},{36:36,39:39}],39:[function(t,e,r){"use strict";function n(){s.call(this)}function i(t,e,r){t.length<40?a.write(t,e,r):e.utf8Write(t,r)}e.exports=n;var s=t(38),o=n.prototype=Object.create(s.prototype);o.constructor=n;var u=t(36),a=u.utf8,f=u.Buffer;n.alloc=function(t){return(n.alloc=f.allocUnsafe?f.allocUnsafe:function(t){return new f(t)})(t)};var l=f&&f.prototype instanceof Uint8Array&&"s"===f.prototype.set.name[0]?function(t,e,r){e.set(t,r)}:function(t,e,r){t.copy(e,r,0,t.length)};o.bytes=function(t){"string"==typeof t&&(t=f.from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this.push(l,e,t),this},o.string=function(t){var e=f.byteLength(t);return this.uint32(e),e&&this.push(i,e,t),this}},{36:36,38:38}],40:[function(t,e,r){(function(e){"use strict";function n(t,e,r){return"function"==typeof e?(r=e,e=new o.Root):e||(e=new o.Root),e.load(t,r)}function i(t,e){return e||(e=new o.Root),e.loadSync(t)}function s(){o.Reader.k()}var o=e.protobuf=r;o.load=n,o.loadSync=i,o.roots={},o.tokenize=t(31),o.parse=t(24),o.Writer=t(38),o.BufferWriter=t(39),o.Reader=t(25),o.BufferReader=t(26),o.encoder=t(15),o.decoder=t(14),o.verifier=t(37),o.ReflectionObject=t(22),o.Namespace=t(21),o.Root=t(27),o.Enum=t(16),o.Type=t(32),o.Field=t(17),o.OneOf=t(23),o.MapField=t(18),o.Service=t(30),o.Method=t(20),o.Class=t(11),o.Message=t(19),o.types=t(33),o.common=t(12),o.rpc=t(28),o.util=t(34),o.configure=s,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&(o.util.Long=t,s()),o})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{11:11,12:12,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,30:30,31:31,32:32,33:33,34:34,37:37,38:38,39:39}]},{},[40]);
//# sourceMappingURL=protobuf.min.js.map