(function(global,undefined){"use strict";(function e(t,r,i){function n(e){var i=r[e];if(!i)t[e][0].call(i=r[e]={exports:{}},n,i,i.exports);return i.exports}var s=global.protobuf=n(i[0])})({1:[function(e,t,r){"use strict";t.exports=i;function i(e,t){var r=new Array(arguments.length-1),i=0,n=2,s=true;while(n1&&t.charAt(r)==="=")++i;return Math.ceil(t.length*3)/4-i};var n=new Array(64);var s=new Array(123);for(var o=0;o<64;)s[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i.encode=function e(t,r,i){var s=null,o=[];var f=0,a=0,u;while(r>2];u=(l&3)<<4;a=1;break;case 1:o[f++]=n[u|l>>4];u=(l&15)<<2;a=2;break;case 2:o[f++]=n[u|l>>6];o[f++]=n[l&63];a=0;break}if(f>8191){(s||(s=[])).push(String.fromCharCode.apply(String,o));f=0}}if(a){o[f++]=n[u];o[f++]=61;if(a===1)o[f++]=61}if(s){if(f)s.push(String.fromCharCode.apply(String,o.slice(0,f)));return s.join("")}return String.fromCharCode.apply(String,o.slice(0,f))};var f="invalid encoding";i.decode=function e(t,r,i){var n=i;var o=0,a;for(var u=0;u1)break;if((l=s[l])===undefined)throw Error(f);switch(o){case 0:a=l;o=1;break;case 1:r[i++]=a<<2|(l&48)>>4;a=l;o=2;break;case 2:r[i++]=(a&15)<<4|(l&60)>>2;a=l;o=3;break;case 3:r[i++]=(a&3)<<6|l;o=0;break}}if(o===1)throw Error(f);return i-n};i.test=function e(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},{}],3:[function(e,t,r){"use strict";t.exports=i;function i(e,t){if(typeof e==="string"){t=e;e=undefined}var r=[];function n(e){if(typeof e!=="string"){var t=s();if(i.verbose)console.log("codegen: "+t);t="return "+t;if(e){var o=Object.keys(e),f=new Array(o.length+1),a=new Array(o.length),u=0;while(u0?0:2147483648,r,i);else if(isNaN(t))e(2143289344,r,i);else if(t>3.4028234663852886e38)e((n<<31|2139095040)>>>0,r,i);else if(t<1.1754943508222875e-38)e((n<<31|Math.round(t/1.401298464324817e-45))>>>0,r,i);else{var s=Math.floor(Math.log(t)/Math.LN2),o=Math.round(t*Math.pow(2,-s)*8388608)&8388607;e((n<<31|s+127<<23|o)>>>0,r,i)}}e.writeFloatLE=t.bind(null,n);e.writeFloatBE=t.bind(null,s);function r(e,t,r){var i=e(t,r),n=(i>>31)*2+1,s=i>>>23&255,o=i&8388607;return s===255?o?NaN:n*Infinity:s===0?n*1.401298464324817e-45*o:n*Math.pow(2,s-150)*(o+8388608)}e.readFloatLE=r.bind(null,o);e.readFloatBE=r.bind(null,f)})();if(typeof Float64Array!=="undefined")(function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=r[7]===128;function n(e,i,n){t[0]=e;i[n]=r[0];i[n+1]=r[1];i[n+2]=r[2];i[n+3]=r[3];i[n+4]=r[4];i[n+5]=r[5];i[n+6]=r[6];i[n+7]=r[7]}function s(e,i,n){t[0]=e;i[n]=r[7];i[n+1]=r[6];i[n+2]=r[5];i[n+3]=r[4];i[n+4]=r[3];i[n+5]=r[2];i[n+6]=r[1];i[n+7]=r[0]}e.writeDoubleLE=i?n:s;e.writeDoubleBE=i?s:n;function o(e,i){r[0]=e[i];r[1]=e[i+1];r[2]=e[i+2];r[3]=e[i+3];r[4]=e[i+4];r[5]=e[i+5];r[6]=e[i+6];r[7]=e[i+7];return t[0]}function f(e,i){r[7]=e[i];r[6]=e[i+1];r[5]=e[i+2];r[4]=e[i+3];r[3]=e[i+4];r[2]=e[i+5];r[1]=e[i+6];r[0]=e[i+7];return t[0]}e.readDoubleLE=i?o:f;e.readDoubleBE=i?f:o})();else(function(){function t(e,t,r,i,n,s){var o=i<0?1:0;if(o)i=-i;if(i===0){e(0,n,s+t);e(1/i>0?0:2147483648,n,s+r)}else if(isNaN(i)){e(0,n,s+t);e(2146959360,n,s+r)}else if(i>1.7976931348623157e308){e(0,n,s+t);e((o<<31|2146435072)>>>0,n,s+r)}else{var f;if(i<2.2250738585072014e-308){f=i/5e-324;e(f>>>0,n,s+t);e((o<<31|f/4294967296)>>>0,n,s+r)}else{var a=Math.floor(Math.log(i)/Math.LN2);if(a===1024)a=1023;f=i*Math.pow(2,-a);e(f*4503599627370496>>>0,n,s+t);e((o<<31|a+1023<<20|f*1048576&1048575)>>>0,n,s+r)}}}e.writeDoubleLE=t.bind(null,n,0,4);e.writeDoubleBE=t.bind(null,s,4,0);function r(e,t,r,i,n){var s=e(i,n+t),o=e(i,n+r);var f=(o>>31)*2+1,a=o>>>20&2047,u=4294967296*(o&1048575)+s;return a===2047?u?NaN:f*Infinity:a===0?f*5e-324*u:f*Math.pow(2,a-1075)*(u+4503599627370496)}e.readDoubleLE=r.bind(null,o,0,4);e.readDoubleBE=r.bind(null,f,4,0)})();return e}function n(e,t,r){t[r]=e&255;t[r+1]=e>>>8&255;t[r+2]=e>>>16&255;t[r+3]=e>>>24}function s(e,t,r){t[r]=e>>>24;t[r+1]=e>>>16&255;t[r+2]=e>>>8&255;t[r+3]=e&255}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function f(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}},{}],7:[function(require,module,exports){"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},{}],8:[function(e,t,r){"use strict";var i=r;var n=i.isAbsolute=function e(t){return/^(?:\/|\w+:)/.test(t)};var s=i.normalize=function e(t){t=t.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var r=t.split("/"),i=n(t),s="";if(i)s=r.shift()+"/";for(var o=0;o0&&r[o-1]!=="..")r.splice(--o,2);else if(i)r.splice(o,1);else++o}else if(r[o]===".")r.splice(o,1);else++o}return s+r.join("/")};i.resolve=function e(t,r,i){if(!i)r=s(r);if(n(r))return r;if(!i)t=s(t);return(t=t.replace(/(?:\/|^)[^/]+$/,"")).length?s(t+"/"+r):r}},{}],9:[function(e,t,r){"use strict";t.exports=i;function i(e,t,r){var i=r||8192;var n=i>>>1;var s=null;var o=i;return function r(f){if(f<1||f>n)return e(f);if(o+f>i){s=e(i);o=0}var a=t.call(s,o,o+=f);if(o&7)o=(o|7)+1;return a}}},{}],10:[function(e,t,r){"use strict";var i=r;i.length=function e(t){var r=0,i=0;for(var n=0;n191&&a<224)o[f++]=(a&31)<<6|t[r++]&63;else if(a>239&&a<365){a=((a&7)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536;o[f++]=55296+(a>>10);o[f++]=56320+(a&1023)}else o[f++]=(a&15)<<12|(t[r++]&63)<<6|t[r++]&63;if(f>8191){(s||(s=[])).push(String.fromCharCode.apply(String,o));f=0}}if(s){if(f)s.push(String.fromCharCode.apply(String,o.slice(0,f)));return s.join("")}return String.fromCharCode.apply(String,o.slice(0,f))};i.write=function e(t,r,i){var n=i,s,o;for(var f=0;f>6|192;r[i++]=s&63|128}else if((s&64512)===55296&&((o=t.charCodeAt(f+1))&64512)===56320){s=65536+((s&1023)<<10)+(o&1023);++f;r[i++]=s>>18|240;r[i++]=s>>12&63|128;r[i++]=s>>6&63|128;r[i++]=s&63|128}else{r[i++]=s>>12|224;r[i++]=s>>6&63|128;r[i++]=s&63|128}}return i-n}},{}],11:[function(e,t,r){"use strict";t.exports=n;var i=/\/|\./;function n(e,t){if(!i.test(e)){e="google/protobuf/"+e+".proto";t={nested:{google:{nested:{protobuf:{nested:t}}}}}}n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var s;n("duration",{Duration:s={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}});n("timestamp",{Timestamp:s});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}}}});n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}});n.get=function e(t){return n[t]||null}},{}],12:[function(e,t,r){"use strict";var i=r;var n=e(15),s=e(37);function o(e,t,r,i){if(t.resolvedType){if(t.resolvedType instanceof n){e("switch(d%s){",i);for(var s=t.resolvedType.values,o=Object.keys(s),f=0;f>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":a=true;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,a)('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,a?"true":"");break;case"bytes":e('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)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i);break}}return e}i.fromObject=function e(t){var r=t.fieldsArray;var i=s.codegen(["d"],t.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!r.length)return i("return new this.ctor");i("var m=new this.ctor");for(var f=0;f>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,s?"true":"",i);break;case"bytes":e("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:e("d%s=m%s",i,i);break}}return e}i.toObject=function e(t){var r=t.fieldsArray.slice().sort(s.compareFieldsById);if(!r.length)return s.codegen()("return {}");var i=s.codegen(["m","o"],t.name+"$toObject")("if(!o)")("o={}")("var d={}");var o=[],a=[],u=[],l=0;for(;l>>3){");var r=0;for(;r>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function f(e){var t=s.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()");var r,f;var a=e.fieldsArray.slice().sort(s.compareFieldsById);for(var r=0;r>>0,8|n.mapKey[u.keyType],u.keyType);if(p===undefined)t("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,f);else t(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,c,f);t("}")("}")}else if(u.repeated){t("if(%s!=null&&%s.length){",f,f);if(u.packed&&n.packed[c]!==undefined){t("w.uint32(%i).fork()",(u.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",f)("w.%s(%s[i])",c,f)("w.ldelim()")}else{t("for(var i=0;i<%s.length;++i)",f);if(p===undefined)o(t,u,l,f+"[i]");else t("w.uint32(%i).%s(%s[i])",(u.id<<3|p)>>>0,c,f)}t("}")}else{if(u.optional)t("if(%s!=null&&m.hasOwnProperty(%j))",f,u.name);if(p===undefined)o(t,u,l,f);else t("w.uint32(%i).%s(%s)",(u.id<<3|p)>>>0,c,f)}}return t("return w")}},{15:15,36:36,37:37}],15:[function(e,t,r){"use strict";t.exports=o;var i=e(24);((o.prototype=Object.create(i.prototype)).constructor=o).className="Enum";var n=e(23),s=e(37);function o(e,t,r,n,s){i.call(this,e,r);if(t&&typeof t!=="object")throw TypeError("values must be an object");this.valuesById={};this.values=Object.create(this.valuesById);this.comment=n;this.comments=s||{};this.reserved=undefined;if(t)for(var o=Object.keys(t),f=0;f=r)return true;return false};l.isReservedName=function e(t,r){if(t)for(var i=0;i0){var n=t.shift();if(i.nested&&i.nested[n]){i=i.nested[n];if(!(i instanceof l))throw Error("path conflicts with non-namespace objects")}else i.add(i=new l(n))}if(r)i.addJSON(r);return i};l.prototype.resolveAll=function e(){var t=this.nestedArray,r=0;while(r-1)return n}else if(n instanceof l&&(n=n.lookup(t.slice(1),r,true)))return n}else for(var s=0;s-1)this.oneof.splice(r,1);t.partOf=null;return this};o.prototype.onAdd=function e(t){i.prototype.onAdd.call(this,t);var r=this;for(var n=0;n");var i=S();if(!k.test(i))throw P(i,"name");N("=");var n=new f($(i),M(S()),t,r);K(n,function e(t){if(t==="option"){ie(n,t);N(";")}else throw P(t)},function e(){oe(n)});e.add(n)}function ee(e,t){if(!k.test(t=S()))throw P(t,"name");var r=new a($(t));K(r,function e(t){if(t==="option"){ie(r,t);N(";")}else{_(t);X(r,"optional")}});e.add(r)}function te(e,t){if(!k.test(t=S()))throw P(t,"name");var r=new u(t);K(r,function e(t){switch(t){case"option":ie(r,t);N(";");break;case"reserved":z(r.reserved||(r.reserved=[]),true);break;default:re(r,t)}});e.add(r)}function re(e,t){if(!k.test(t))throw P(t,"name");N("=");var r=M(S(),true),i={};K(i,function e(t){if(t==="option"){ie(i,t);N(";")}else throw P(t)},function e(){oe(i)});e.add(t,r,i.comment)}function ie(e,t){var r=N("(",true);if(!O.test(t=S()))throw P(t,"name");var i=t;if(r){N(")");i="("+i+")";t=T();if(j.test(t)){i+=t;S()}}N("=");ne(e,i)}function ne(e,t){if(N("{",true)){do{if(!k.test(le=S()))throw P(le,"name");if(T()==="{")ne(e,t+"."+le);else{N(":");if(T()==="{")ne(e,t+"."+le);else se(e,t+"."+le,q(true))}}while(!N("}",true))}else se(e,t,q(true))}function se(e,t,r){if(e.setOption)e.setOption(t,r)}function oe(e){if(N("[",true)){do{ie(e,"option")}while(N(",",true));N("]")}return e}function fe(e,t){if(!k.test(t=S()))throw P(t,"service name");var r=new l(t);K(r,function e(t){if(W(r,t))return;if(t==="rpc")ae(r,t);else throw P(t)});e.add(r)}function ae(e,t){var r=t;if(!k.test(t=S()))throw P(t,"name");var i=t,n,s,o,f;N("(");if(N("stream",true))s=true;if(!O.test(t=S()))throw P(t);n=t;N(")");N("returns");N("(");if(N("stream",true))f=true;if(!O.test(t=S()))throw P(t);o=t;N(")");var a=new c(i,r,n,o,s,f);K(a,function e(t){if(t==="option"){ie(a,t);N(";")}else throw P(t)});e.add(a)}function ue(e,t){if(!O.test(t=S()))throw P(t,"reference");var r=t;K(null,function t(i){switch(i){case"required":case"repeated":case"optional":X(e,i,r);break;default:if(!L||!O.test(i))throw P(i);_(i);X(e,"optional",r);break}})}var le;while((le=S())!==null){switch(le){case"package":if(!B)throw P(le);U();break;case"import":if(!B)throw P(le);H();break;case"syntax":if(!B)throw P(le);Z();break;case"option":if(!B)throw P(le);ie(J,le);N(";");break;default:if(W(J,le)){B=false;continue}throw P(le)}}A.filename=null;return{package:I,imports:R,weakImports:D,syntax:F,root:t}}},{15:15,16:16,20:20,22:22,25:25,29:29,33:33,34:34,35:35,36:36,37:37}],27:[function(e,t,r){"use strict";t.exports=a;var i=e(39);var n;var s=i.LongBits,o=i.utf8;function f(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function a(e){this.buf=e;this.pos=0;this.len=e.length}var u=typeof Uint8Array!=="undefined"?function e(t){if(t instanceof Uint8Array||Array.isArray(t))return new a(t);throw Error("illegal buffer")}:function e(t){if(Array.isArray(t))return new a(t);throw Error("illegal buffer")};a.create=i.Buffer?function e(t){return(a.create=function e(t){return i.Buffer.isBuffer(t)?new n(t):u(t)})(t)}:u;a.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice;a.prototype.uint32=function e(){var t=4294967295;return function e(){t=(this.buf[this.pos]&127)>>>0;if(this.buf[this.pos++]<128)return t;t=(t|(this.buf[this.pos]&127)<<7)>>>0;if(this.buf[this.pos++]<128)return t;t=(t|(this.buf[this.pos]&127)<<14)>>>0;if(this.buf[this.pos++]<128)return t;t=(t|(this.buf[this.pos]&127)<<21)>>>0;if(this.buf[this.pos++]<128)return t;t=(t|(this.buf[this.pos]&15)<<28)>>>0;if(this.buf[this.pos++]<128)return t;if((this.pos+=5)>this.len){this.pos=this.len;throw f(this,10)}return t}}();a.prototype.int32=function e(){return this.uint32()|0};a.prototype.sint32=function e(){var t=this.uint32();return t>>>1^-(t&1)|0};function l(){var e=new s(0,0);var t=0;if(this.len-this.pos>4){for(;t<4;++t){e.lo=(e.lo|(this.buf[this.pos]&127)<>>0;if(this.buf[this.pos++]<128)return e}e.lo=(e.lo|(this.buf[this.pos]&127)<<28)>>>0;e.hi=(e.hi|(this.buf[this.pos]&127)>>4)>>>0;if(this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw f(this);e.lo=(e.lo|(this.buf[this.pos]&127)<>>0;if(this.buf[this.pos++]<128)return e}e.lo=(e.lo|(this.buf[this.pos++]&127)<>>0;return e}if(this.len-this.pos>4){for(;t<5;++t){e.hi=(e.hi|(this.buf[this.pos]&127)<>>0;if(this.buf[this.pos++]<128)return e}}else{for(;t<5;++t){if(this.pos>=this.len)throw f(this);e.hi=(e.hi|(this.buf[this.pos]&127)<>>0;if(this.buf[this.pos++]<128)return e}}throw Error("invalid varint encoding")}a.prototype.bool=function e(){return this.uint32()!==0};function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}a.prototype.fixed32=function e(){if(this.pos+4>this.len)throw f(this,4);return c(this.buf,this.pos+=4)};a.prototype.sfixed32=function e(){if(this.pos+4>this.len)throw f(this,4);return c(this.buf,this.pos+=4)|0};function p(){if(this.pos+8>this.len)throw f(this,8);return new s(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}a.prototype.float=function e(){if(this.pos+4>this.len)throw f(this,4);var t=i.float.readFloatLE(this.buf,this.pos);this.pos+=4;return t};a.prototype.double=function e(){if(this.pos+8>this.len)throw f(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);this.pos+=8;return t};a.prototype.bytes=function e(){var t=this.uint32(),r=this.pos,i=this.pos+t;if(i>this.len)throw f(this,t);this.pos+=t;if(Array.isArray(this.buf))return this.buf.slice(r,i);return r===i?new this.buf.constructor(0):this._slice.call(this.buf,r,i)};a.prototype.string=function e(){var t=this.bytes();return o.read(t,0,t.length)};a.prototype.skip=function e(t){if(typeof t==="number"){if(this.pos+t>this.len)throw f(this,t);this.pos+=t}else{do{if(this.pos>=this.len)throw f(this)}while(this.buf[this.pos++]&128)}return this};a.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:do{if((e=this.uint32()&7)===4)break;this.skipType(e)}while(true);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this};a._configure=function(e){n=e;var t=i.Long?"toLong":"toNumber";i.merge(a.prototype,{int64:function e(){return l.call(this)[t](false)},uint64:function e(){return l.call(this)[t](true)},sint64:function e(){return l.call(this).zzDecode()[t](false)},fixed64:function e(){return p.call(this)[t](true)},sfixed64:function e(){return p.call(this)[t](false)}})}},{39:39}],28:[function(e,t,r){"use strict";t.exports=s;var i=e(27);(s.prototype=Object.create(i.prototype)).constructor=s;var n=e(39);function s(e){i.call(this,e)}if(n.Buffer)s.prototype._slice=n.Buffer.prototype.slice;s.prototype.string=function e(){var t=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len))}},{27:27,39:39}],29:[function(e,t,r){"use strict";t.exports=c;var i=e(23);((c.prototype=Object.create(i.prototype)).constructor=c).className="Root";var n=e(16),s=e(15),o=e(25),f=e(37);var a,u,l;function c(e){i.call(this,"",e);this.deferred=[];this.files=[]}c.fromJSON=function e(t,r){if(!r)r=new c;if(t.options)r.setOptions(t.options);return r.addJSON(t.nested)};c.prototype.resolvePath=f.path.resolve;function p(){}c.prototype.load=function e(t,r,i){if(typeof r==="function"){i=r;r=undefined}var n=this;if(!i)return f.asPromise(e,n,t,r);var s=i===p;function o(e,t){if(!i)return;var r=i;i=null;if(s)throw e;r(e,t)}function a(e,t){try{if(f.isString(t)&&t.charAt(0)==="{")t=JSON.parse(t);if(!f.isString(t))n.setOptions(t.options).addJSON(t.nested);else{u.filename=e;var i=u(t,n,r),a,l=0;if(i.imports)for(;l-1){var u=e.substring(r);if(u in l)e=u}if(n.files.indexOf(e)>-1)return;n.files.push(e);if(e in l){if(s)a(e,l[e]);else{++h;setTimeout(function(){--h;a(e,l[e])})}return}if(s){var c;try{c=f.fs.readFileSync(e).toString("utf8")}catch(e){if(!t)o(e);return}a(e,c)}else{++h;f.fetch(e,function(r,s){--h;if(!i)return;if(r){if(!t)o(r);else if(!h)o(null,n);return}a(e,s)})}}var h=0;if(f.isString(t))t=[t];for(var d=0,y;d-1)this.deferred.splice(r,1)}}}else if(t instanceof s){if(h.test(t.name))delete t.parent[t.name]}else if(t instanceof i){for(var o=0;o]/g,n=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,s=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g;var o=/^ *[*/]+ */,f=/^\s*\*?\/*/,a=/\n/g,u=/\s/,l=/\\(.?)/g;var c={0:"\0",r:"\r",n:"\n",t:"\t"};function p(e){return e.replace(l,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}h.unescape=p;function h(e,t){e=e.toString();var r=0,l=e.length,c=1,h=null,d=null,y=0,m=false;var v=[];var g=null;function b(e){return Error("illegal "+e+" (line "+c+")")}function w(){var t=g==="'"?s:n;t.lastIndex=r-1;var i=t.exec(e);if(!i)throw b("string");r=t.lastIndex;S(g);g=null;return p(i[1])}function k(t){return e.charAt(t)}function O(r,i){h=e.charAt(r++);y=c;m=false;var n;if(t){n=2}else{n=3}var s=r-n,u;do{if(--s<0||(u=e.charAt(s))==="\n"){m=true;break}}while(u===" "||u==="\t");var l=e.substring(r,i).split(a);for(var p=0;p0)return v.shift();if(g)return w();var n,s,o,f,a;do{if(r===l)return null;n=false;while(u.test(o=k(r))){if(o==="\n")++c;if(++r===l)return null}if(k(r)==="/"){if(++r===l){throw b("comment")}if(k(r)==="/"){if(!t){a=k(f=r+1)==="/";while(k(++r)!=="\n"){if(r===l){return null}}++r;if(a){O(f,r-1)}++c;n=true}else{f=r;a=false;if(j(r)){a=true;do{r=A(r);if(r===l){break}r++}while(j(r))}else{r=Math.min(l,A(r)+1)}if(a){O(f,r)}c++;n=true}}else if((o=k(r))==="*"){f=r+1;a=t||k(f)==="*";do{if(o==="\n"){++c}if(++r===l){throw b("comment")}s=o;o=k(r)}while(s!=="*"||o!=="/");++r;if(a){O(f,r-2)}n=true}else{return"/"}}}while(n);var p=r;i.lastIndex=0;var h=i.test(k(p++));if(!h)while(p>>0;this.hi=t>>>0}var s=n.zero=new n(0,0);s.toNumber=function(){return 0};s.zzEncode=s.zzDecode=function(){return this};s.length=function(){return 1};var o=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function e(t){if(t===0)return s;var r=t<0;if(r)t=-t;var i=t>>>0,o=(t-i)/4294967296>>>0;if(r){o=~o>>>0;i=~i>>>0;if(++i>4294967295){i=0;if(++o>4294967295)o=0}}return new n(i,o)};n.from=function e(t){if(typeof t==="number")return n.fromNumber(t);if(i.isString(t)){if(i.Long)t=i.Long.fromString(t);else return n.fromNumber(parseInt(t,10))}return t.low||t.high?new n(t.low>>>0,t.high>>>0):s};n.prototype.toNumber=function e(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,i=~this.hi>>>0;if(!r)i=i+1>>>0;return-(r+i*4294967296)}return this.lo+this.hi*4294967296};n.prototype.toLong=function e(t){return i.Long?new i.Long(this.lo|0,this.hi|0,Boolean(t)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(t)}};var f=String.prototype.charCodeAt;n.fromHash=function e(t){if(t===o)return s;return new n((f.call(t,0)|f.call(t,1)<<8|f.call(t,2)<<16|f.call(t,3)<<24)>>>0,(f.call(t,4)|f.call(t,5)<<8|f.call(t,6)<<16|f.call(t,7)<<24)>>>0)};n.prototype.toHash=function e(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};n.prototype.zzEncode=function e(){var t=this.hi>>31;this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0;this.lo=(this.lo<<1^t)>>>0;return this};n.prototype.zzDecode=function e(){var t=-(this.lo&1);this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0;this.hi=(this.hi>>>1^t)>>>0;return this};n.prototype.length=function e(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return i===0?r===0?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:i<128?9:10}},{39:39}],39:[function(e,t,r){"use strict";var i=r;i.asPromise=e(1);i.base64=e(2);i.EventEmitter=e(4);i.float=e(6);i.inquire=e(7);i.utf8=e(10);i.pool=e(9);i.LongBits=e(38);i.emptyArray=Object.freeze?Object.freeze([]):[];i.emptyObject=Object.freeze?Object.freeze({}):{};i.isNode=Boolean(global.process&&global.process.versions&&global.process.versions.node);i.isInteger=Number.isInteger||function e(t){return typeof t==="number"&&isFinite(t)&&Math.floor(t)===t};i.isString=function e(t){return typeof t==="string"||t instanceof String};i.isObject=function e(t){return t&&typeof t==="object"};i.isset=i.isSet=function e(t,r){var i=t[r];if(i!=null&&t.hasOwnProperty(r))return typeof i!=="object"||(Array.isArray(i)?i.length:Object.keys(i).length)>0;return false};i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}();i._Buffer_from=null;i._Buffer_allocUnsafe=null;i.newBuffer=function e(t){return typeof t==="number"?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):typeof Uint8Array==="undefined"?t:new Uint8Array(t)};i.Array=typeof Uint8Array!=="undefined"?Uint8Array:Array;i.Long=global.dcodeIO&&global.dcodeIO.Long||i.inquire("long");i.key2Re=/^true|false|0|1$/;i.key32Re=/^-?(?:0|[1-9][0-9]*)$/;i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;i.longToHash=function e(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash};i.longFromHash=function e(t,r){var n=i.LongBits.fromHash(t);if(i.Long)return i.Long.fromBits(n.lo,n.hi,r);return n.toNumber(Boolean(r))};function n(e,t,r){for(var i=Object.keys(t),n=0;n-1;--t)if(r[e[t]]===1&&this[e[t]]!==undefined&&this[e[t]]!==null)return e[t]}};i.oneOfSetter=function e(t){return function(e){for(var r=0;r127){t[r++]=e&127|128;e>>>=7}t[r]=e}function d(e,t){this.len=e;this.next=undefined;this.val=t}d.prototype=Object.create(a.prototype);d.prototype.fn=h;c.prototype.uint32=function e(t){this.len+=(this.tail=this.tail.next=new d((t=t>>>0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len;return this};c.prototype.int32=function e(t){return t<0?this._push(y,10,s.fromNumber(t)):this.uint32(t)};c.prototype.sint32=function e(t){return this.uint32((t<<1^t>>31)>>>0)};function y(e,t,r){while(e.hi){t[r++]=e.lo&127|128;e.lo=(e.lo>>>7|e.hi<<25)>>>0;e.hi>>>=7}while(e.lo>127){t[r++]=e.lo&127|128;e.lo=e.lo>>>7}t[r++]=e.lo}c.prototype.uint64=function e(t){var r=s.from(t);return this._push(y,r.length(),r)};c.prototype.int64=c.prototype.uint64;c.prototype.sint64=function e(t){var r=s.from(t).zzEncode();return this._push(y,r.length(),r)};c.prototype.bool=function e(t){return this._push(p,1,t?1:0)};function m(e,t,r){t[r]=e&255;t[r+1]=e>>>8&255;t[r+2]=e>>>16&255;t[r+3]=e>>>24}c.prototype.fixed32=function e(t){return this._push(m,4,t>>>0)};c.prototype.sfixed32=c.prototype.fixed32;c.prototype.fixed64=function e(t){var r=s.from(t);return this._push(m,4,r.lo)._push(m,4,r.hi)};c.prototype.sfixed64=c.prototype.fixed64;c.prototype.float=function e(t){return this._push(i.float.writeFloatLE,4,t)};c.prototype.double=function e(t){return this._push(i.float.writeDoubleLE,8,t)};var v=i.Array.prototype.set?function e(t,r,i){r.set(t,i)}:function e(t,r,i){for(var n=0;n>>0;if(!r)return this._push(p,1,0);if(i.isString(t)){var n=c.alloc(r=o.length(t));o.decode(t,n,0);t=n}return this.uint32(r)._push(v,r,t)};c.prototype.string=function e(t){var r=f.length(t);return r?this.uint32(r)._push(f.write,r,t):this._push(p,1,0)};c.prototype.fork=function e(){this.states=new l(this);this.head=this.tail=new a(u,0,0);this.len=0;return this};c.prototype.reset=function e(){if(this.states){this.head=this.states.head;this.tail=this.states.tail;this.len=this.states.len;this.states=this.states.next}else{this.head=this.tail=new a(u,0,0);this.len=0}return this};c.prototype.ldelim=function e(){var t=this.head,r=this.tail,i=this.len;this.reset().uint32(i);if(i){this.tail.next=t.next;this.tail=r;this.len+=i}return this};c.prototype.finish=function e(){var t=this.head.next,r=this.constructor.alloc(this.len),i=0;while(t){t.fn(t.val,r,i);i+=t.len;t=t.next}return r};c._configure=function(e){n=e}},{39:39}],43:[function(e,t,r){"use strict";t.exports=o;var i=e(42);(o.prototype=Object.create(i.prototype)).constructor=o;var n=e(39);var s=n.Buffer;function o(){i.call(this)}o.alloc=function e(t){return(o.alloc=n._Buffer_allocUnsafe)(t)};var f=s&&s.prototype instanceof Uint8Array&&s.prototype.set.name==="set"?function e(t,r,i){r.set(t,i)}:function e(t,r,i){if(t.copy)t.copy(r,i,0,t.length);else for(var n=0;n>>0;this.uint32(r);if(r)this._push(f,r,t);return this};function a(e,t,r){if(e.length<40)n.utf8.write(e,t,r);else t.utf8Write(e,r)}o.prototype.string=function e(t){var r=s.byteLength(t);this.uint32(r);if(r)this._push(a,r,t);return this}},{39:39,42:42}]},{},[19])})(typeof window==="object"&&window||typeof self==="object"&&self||this); //# sourceMappingURL=protobuf.map.js