UNPKG

dd-trace

Version:

Datadog APM tracing client for JavaScript

1 lines 87.6 kB
(()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js":function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),o=0,s=2,i=!0;s<arguments.length;)r[o++]=arguments[s++];return new Promise(function(s,n){r[o]=function(e){if(i)if(i=!1,e)n(e);else{for(var t=Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];s.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!1,n(e))}})}},"./@protobufjs/base64/index.js":function(e,t){var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var o=Array(64),s=Array(123),i=0;i<64;)s[o[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var s,i=null,n=[],u=0,f=0;t<r;){var a=e[t++];switch(f){case 0:n[u++]=o[a>>2],s=(3&a)<<4,f=1;break;case 1:n[u++]=o[s|a>>4],s=(15&a)<<2,f=2;break;case 2:n[u++]=o[s|a>>6],n[u++]=o[63&a],f=0}u>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,n)),u=0)}return(f&&(n[u++]=o[s],n[u++]=61,1===f&&(n[u++]=61)),i)?(u&&i.push(String.fromCharCode.apply(String,n.slice(0,u))),i.join("")):String.fromCharCode.apply(String,n.slice(0,u))};var n="invalid encoding";r.decode=function(e,t,r){for(var o,i=r,u=0,f=0;f<e.length;){var a=e.charCodeAt(f++);if(61===a&&u>1)break;if(void 0===(a=s[a]))throw Error(n);switch(u){case 0:o=a,u=1;break;case 1:t[r++]=o<<2|(48&a)>>4,o=a,u=2;break;case 2:t[r++]=(15&o)<<4|(60&a)>>2,o=a,u=3;break;case 3:t[r++]=(3&o)<<6|a,u=0}}if(1===u)throw Error(n);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},"./@protobufjs/codegen/index.js":function(e){function t(e,r){"string"==typeof e&&(r=e,e=void 0);var o=[];function s(e){if("string"!=typeof e){var r=i();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var n=Object.keys(e),u=Array(n.length+1),f=Array(n.length),a=0;a<n.length;)u[a]=n[a],f[a]=e[n[a++]];return u[a]=r,Function.apply(null,u).apply(null,f)}return Function(r)()}for(var l=Array(arguments.length-1),p=0;p<l.length;)l[p]=arguments[++p];if(p=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=l[p++];switch(t){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"%"}),p!==l.length)throw Error("parameter count mismatch");return o.push(e),s}function i(t){return"function "+(t||r||"")+"("+(e&&e.join(",")||"")+"){\n "+o.join("\n ")+"\n}"}return s.toString=i,s}e.exports=t,t.verbose=!1},"./@protobufjs/eventemitter/index.js":function(e){function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],o=0;o<r.length;)r[o].fn===t?r.splice(o,1):++o;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],o=1;o<arguments.length;)r.push(arguments[o++]);for(o=0;o<t.length;)t[o].fn.apply(t[o++].ctx,r)}return this}},"./@protobufjs/fetch/index.js":function(e,t,r){e.exports=i;var o=r("./@protobufjs/aspromise/index.js"),s=r("./@protobufjs/inquire/index.js")("fs");function i(e,t,r){return("function"==typeof t?(r=t,t={}):t||(t={}),r)?!t.xhr&&s&&s.readFile?s.readFile(e,function(o,s){return o&&"undefined"!=typeof XMLHttpRequest?i.xhr(e,t,r):o?r(o):r(null,t.binary?s:s.toString("utf8"))}):i.xhr(e,t,r):o(i,this,e,t)}i.xhr=function(e,t,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(t.binary){var e=o.response;if(!e){e=[];for(var s=0;s<o.responseText.length;++s)e.push(255&o.responseText.charCodeAt(s))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return r(null,o.responseText)}},t.binary&&("overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.responseType="arraybuffer"),o.open("GET",e),o.send()}},"./@protobufjs/float/index.js":function(e){function t(e){return"undefined"!=typeof Float32Array?!function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),o=128===r[3];function s(e,o,s){t[0]=e,o[s]=r[0],o[s+1]=r[1],o[s+2]=r[2],o[s+3]=r[3]}function i(e,o,s){t[0]=e,o[s]=r[3],o[s+1]=r[2],o[s+2]=r[1],o[s+3]=r[0]}function n(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],t[0]}function u(e,o){return r[3]=e[o],r[2]=e[o+1],r[1]=e[o+2],r[0]=e[o+3],t[0]}e.writeFloatLE=o?s:i,e.writeFloatBE=o?i:s,e.readFloatLE=o?n:u,e.readFloatBE=o?u:n}():!function(){function t(e,t,r,o){var s=+(t<0);if(s&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,o);else if(isNaN(t))e(0x7fc00000,r,o);else if(t>34028234663852886e22)e((s<<31|0x7f800000)>>>0,r,o);else if(t<11754943508222875e-54)e((s<<31|Math.round(t/1401298464324817e-60))>>>0,r,o);else{var i=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-i)*8388608);e((s<<31|i+127<<23|n)>>>0,r,o)}}function n(e,t,r){var o=e(t,r),s=(o>>31)*2+1,i=o>>>23&255,n=8388607&o;return 255===i?n?NaN:1/0*s:0===i?1401298464324817e-60*s*n:s*Math.pow(2,i-150)*(n+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,s),e.readFloatBE=n.bind(null,i)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),o=128===r[7];function s(e,o,s){t[0]=e,o[s]=r[0],o[s+1]=r[1],o[s+2]=r[2],o[s+3]=r[3],o[s+4]=r[4],o[s+5]=r[5],o[s+6]=r[6],o[s+7]=r[7]}function i(e,o,s){t[0]=e,o[s]=r[7],o[s+1]=r[6],o[s+2]=r[5],o[s+3]=r[4],o[s+4]=r[3],o[s+5]=r[2],o[s+6]=r[1],o[s+7]=r[0]}function n(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],r[4]=e[o+4],r[5]=e[o+5],r[6]=e[o+6],r[7]=e[o+7],t[0]}function u(e,o){return r[7]=e[o],r[6]=e[o+1],r[5]=e[o+2],r[4]=e[o+3],r[3]=e[o+4],r[2]=e[o+5],r[1]=e[o+6],r[0]=e[o+7],t[0]}e.writeDoubleLE=o?s:i,e.writeDoubleBE=o?i:s,e.readDoubleLE=o?n:u,e.readDoubleBE=o?u:n}():!function(){function t(e,t,r,o,s,i){var n,u=+(o<0);if(u&&(o=-o),0===o)e(0,s,i+t),e(1/o>0?0:0x80000000,s,i+r);else if(isNaN(o))e(0,s,i+t),e(0x7ff80000,s,i+r);else if(o>17976931348623157e292)e(0,s,i+t),e((u<<31|0x7ff00000)>>>0,s,i+r);else if(o<22250738585072014e-324)e((n=o/5e-324)>>>0,s,i+t),e((u<<31|n/0x100000000)>>>0,s,i+r);else{var f=Math.floor(Math.log(o)/Math.LN2);1024===f&&(f=1023),e(0x10000000000000*(n=o*Math.pow(2,-f))>>>0,s,i+t),e((u<<31|f+1023<<20|1048576*n&1048575)>>>0,s,i+r)}}function n(e,t,r,o,s){var i=e(o,s+t),n=e(o,s+r),u=(n>>31)*2+1,f=n>>>20&2047,a=0x100000000*(1048575&n)+i;return 2047===f?a?NaN:1/0*u:0===f?5e-324*u*a:u*Math.pow(2,f-1075)*(a+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,s,0,4),e.readDoubleBE=n.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function o(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},"./@protobufjs/inquire/index.js":function(module){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}},"./@protobufjs/path/index.js":function(e,t){var r=t,o=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},s=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=o(e),s="";r&&(s=t.shift()+"/");for(var i=0;i<t.length;)".."===t[i]?i>0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return s+t.join("/")};r.resolve=function(e,t,r){return(r||(t=s(t)),o(t))?t:(r||(e=s(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?s(e+"/"+t):t)}},"./@protobufjs/pool/index.js":function(e){e.exports=t;function t(e,t,r){var o=r||8192,s=o>>>1,i=null,n=o;return function(r){if(r<1||r>s)return e(r);n+r>o&&(i=e(o),n=0);var u=t.call(i,n,n+=r);return 7&n&&(n=(7|n)+1),u}}},"./@protobufjs/utf8/index.js":function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,o=0;o<e.length;++o)(r=e.charCodeAt(o))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(o+1))==56320?(++o,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var o,s=null,i=[],n=0;t<r;)(o=e[t++])<128?i[n++]=o:o>191&&o<224?i[n++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[n++]=55296+(o>>10),i[n++]=56320+(1023&o)):i[n++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],n>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),n=0);return s?(n&&s.push(String.fromCharCode.apply(String,i.slice(0,n))),s.join("")):String.fromCharCode.apply(String,i.slice(0,n))},r.write=function(e,t,r){for(var o,s,i=r,n=0;n<e.length;++n)(o=e.charCodeAt(n))<128?t[r++]=o:(o<2048?t[r++]=o>>6|192:((64512&o)==55296&&(64512&(s=e.charCodeAt(n+1)))==56320?(o=65536+((1023&o)<<10)+(1023&s),++n,t[r++]=o>>18|240,t[r++]=o>>12&63|128):t[r++]=o>>12|224,t[r++]=o>>6&63|128),t[r++]=63&o|128);return r-i}},"./protobufjs/index.js":function(e,t,r){e.exports=r("./protobufjs/src/index.js")},"./protobufjs/src/common.js":function(e){e.exports=o;var t,r=/\/|\./;function o(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),o[e]=t}o("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),o("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),o("timestamp",{Timestamp:t}),o("empty",{Empty:{fields:{}}}),o("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}}}}),o("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}}}}),o("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),o.get=function(e){return o[e]||null}},"./protobufjs/src/converter.js":function(e,t,r){var o=t,s=r("./protobufjs/src/enum.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,o){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof s){e("switch(d%s){",o);for(var n=t.resolvedType.values,u=Object.keys(n),f=0;f<u.length;++f)n[u[f]]!==t.typeDefault||i||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',o,o,o),t.repeated||e("break"),i=!0),e("case%j:",u[f])("case %i:",n[u[f]])("m%s=%j",o,n[u[f]])("break");e("}")}else e('if(typeof d%s!=="object")',o)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",o,r,o);else{var a=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",o,o);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":a=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,a)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,a?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length >= 0)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function u(e,t,r,o){if(t.resolvedType)t.resolvedType instanceof s?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",o,r,o,o,r,o,o):e("d%s=types[%i].toObject(m%s,o)",o,r,o);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("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",o,o,o,o,i?"true":"",o);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",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}o.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var o=0;o<t.length;++o){var u=t[o].resolve(),f=i.safeProp(u.name);u.map?(r("if(d%s){",f)('if(typeof d%s!=="object")',f)("throw TypeError(%j)",u.fullName+": object expected")("m%s={}",f)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",f),n(r,u,o,f+"[ks[i]]")("}")("}")):u.repeated?(r("if(d%s){",f)("if(!Array.isArray(d%s))",f)("throw TypeError(%j)",u.fullName+": array expected")("m%s=[]",f)("for(var i=0;i<d%s.length;++i){",f),n(r,u,o,f+"[i]")("}")("}")):(u.resolvedType instanceof s||r("if(d%s!=null){",f),n(r,u,o,f),u.resolvedType instanceof s||r("}"))}return r("return m")},o.toObject=function(e){var t=e.fieldsArray.slice().sort(i.compareFieldsById);if(!t.length)return i.codegen()("return {}");for(var r=i.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),o=[],n=[],f=[],a=0;a<t.length;++a)t[a].partOf||(t[a].resolve().repeated?o:t[a].map?n:f).push(t[a]);if(o.length){for(r("if(o.arrays||o.defaults){"),a=0;a<o.length;++a)r("d%s=[]",i.safeProp(o[a].name));r("}")}if(n.length){for(r("if(o.objects||o.defaults){"),a=0;a<n.length;++a)r("d%s={}",i.safeProp(n[a].name));r("}")}if(f.length){for(r("if(o.defaults){"),a=0;a<f.length;++a){var l=f[a],p=i.safeProp(l.name);if(l.resolvedType instanceof s)r("d%s=o.enums===String?%j:%j",p,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",p)("}else")("d%s=o.longs===String?%j:%i",p,l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var c="["+Array.prototype.slice.call(l.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",p,String.fromCharCode.apply(String,l.typeDefault))("else{")("d%s=%s",p,c)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",p,p)("}")}else r("d%s=%j",p,l.typeDefault)}r("}")}var h=!1;for(a=0;a<t.length;++a){var l=t[a],d=e._fieldsArray.indexOf(l),p=i.safeProp(l.name);l.map?(h||(h=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",p,p)("d%s={}",p)("for(var j=0;j<ks2.length;++j){"),u(r,l,d,p+"[ks2[j]]")("}")):l.repeated?(r("if(m%s&&m%s.length){",p,p)("d%s=[]",p)("for(var j=0;j<m%s.length;++j){",p),u(r,l,d,p+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",p,l.name),u(r,l,d,p),l.partOf&&r("if(o.oneofs)")("d%s=%j",i.safeProp(l.partOf.name),l.name)),r("}")}return r("return d")}},"./protobufjs/src/decoder.js":function(e,t,r){e.exports=u;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e){return"missing required '"+e.name+"'"}function u(e){for(var t=i.codegen(["r","l","e"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),r=0;r<e.fieldsArray.length;++r){var u=e._fieldsArray[r].resolve(),f=u.resolvedType instanceof o?"int32":u.type,a="m"+i.safeProp(u.name);t("case %i: {",u.id),u.map?(t("if(%s===util.emptyObject)",a)("%s={}",a)("var c2 = r.uint32()+r.pos"),void 0!==s.defaults[u.keyType]?t("k=%j",s.defaults[u.keyType]):t("k=null"),void 0!==s.defaults[f]?t("value=%j",s.defaults[f]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",u.keyType)("case 2:"),void 0===s.basic[f]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",f),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==s.long[u.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',a):t("%s[k]=value",a)):u.repeated?(t("if(!(%s&&%s.length))",a,a)("%s=[]",a),void 0!==s.packed[f]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",a,f)("}else"),void 0===s.basic[f]?t(u.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",a,r):t("%s.push(r.%s())",a,f)):void 0===s.basic[f]?t(u.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",a,r):t("%s=r.%s()",a,f),t("break")("}")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var l=e._fieldsArray[r];l.required&&t("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",n(l))}return t("return m")}},"./protobufjs/src/encoder.js":function(e,t,r){e.exports=u;var o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,o){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,o,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,o,(t.id<<3|2)>>>0)}function u(e){for(var t,r,u=i.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),f=e.fieldsArray.slice().sort(i.compareFieldsById),t=0;t<f.length;++t){var a=f[t].resolve(),l=e._fieldsArray.indexOf(a),p=a.resolvedType instanceof o?"int32":a.type,c=s.basic[p];r="m"+i.safeProp(a.name),a.map?(u("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",r,a.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",r)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(a.id<<3|2)>>>0,8|s.mapKey[a.keyType],a.keyType),void 0===c?u("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):u(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),u("}")("}")):a.repeated?(u("if(%s!=null&&%s.length){",r,r),a.packed&&void 0!==s.packed[p]?u("w.uint32(%i).fork()",(a.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(u("for(var i=0;i<%s.length;++i)",r),void 0===c?n(u,a,l,r+"[i]"):u("w.uint32(%i).%s(%s[i])",(a.id<<3|c)>>>0,p,r)),u("}")):(a.optional&&u("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,a.name),void 0===c?n(u,a,l,r):u("w.uint32(%i).%s(%s)",(a.id<<3|c)>>>0,p,r))}return u("return w")}},"./protobufjs/src/enum.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/object.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="Enum";var s=r("./protobufjs/src/namespace.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,i,n){if(o.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=s,this.comments=i||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,t)for(var u=Object.keys(t),f=0;f<u.length;++f)"number"==typeof t[u[f]]&&(this.valuesById[this.values[u[f]]=t[u[f]]]=u[f])}n.prototype._resolveFeatures=function(e){return e=this._edition||e,o.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach(e=>{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},n.fromJSON=function(e,t){var r=new n(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},n.prototype.add=function(e,t,r,o){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return o&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=o||null),this.comments[e]=r||null,this},n.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},n.prototype.isReservedId=function(e){return s.isReservedId(this.reserved,e)},n.prototype.isReservedName=function(e){return s.isReservedName(this.reserved,e)}},"./protobufjs/src/field.js":function(e,t,r){e.exports=a;var o,s=r("./protobufjs/src/object.js");((a.prototype=Object.create(s.prototype)).constructor=a).className="Field";var i=r("./protobufjs/src/enum.js"),n=r("./protobufjs/src/types.js"),u=r("./protobufjs/src/util.js"),f=/^required|optional|repeated$/;function a(e,t,r,o,i,a,l){if(u.isObject(o)?(l=i,a=o,o=i=void 0):u.isObject(i)&&(l=a,a=i,i=void 0),s.call(this,e,a),!u.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!u.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!f.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!u.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!u.Long&&void 0!==n.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}a.fromJSON=function(e,t){var r=new a(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(a.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(a.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(a.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(a.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(a.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),a.prototype.setOption=function(e,t,r){return s.prototype.setOption.call(this,e,t,r)},a.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return u.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",t?this.comment:void 0])},a.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=n.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?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 i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=u.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;u.base64.test(this.typeDefault)?u.base64.decode(this.typeDefault,e=u.newBuffer(u.base64.length(this.typeDefault)),0):u.utf8.write(this.typeDefault,e=u.newBuffer(u.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=u.emptyObject:this.repeated?this.defaultValue=u.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),s.prototype.resolve.call(this)},a.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===n.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},a.prototype._resolveFeatures=function(e){return s.prototype._resolveFeatures.call(this,this._edition||e)},a.d=function(e,t,r,o){return"function"==typeof t?t=u.decorateType(t).name:t&&"object"==typeof t&&(t=u.decorateEnum(t).name),function(s,i){u.decorateType(s.constructor).add(new a(i,e,t,r,{default:o}))}},a._configure=function(e){o=e}},"./protobufjs/src/index-light.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-minimal.js");function s(e,t,r){return"function"==typeof t?(r=t,t=new o.Root):t||(t=new o.Root),t.load(e,r)}function i(e,t){return t||(t=new o.Root),t.loadSync(e)}o.build="light",o.load=s,o.loadSync=i,o.encoder=r("./protobufjs/src/encoder.js"),o.decoder=r("./protobufjs/src/decoder.js"),o.verifier=r("./protobufjs/src/verifier.js"),o.converter=r("./protobufjs/src/converter.js"),o.ReflectionObject=r("./protobufjs/src/object.js"),o.Namespace=r("./protobufjs/src/namespace.js"),o.Root=r("./protobufjs/src/root.js"),o.Enum=r("./protobufjs/src/enum.js"),o.Type=r("./protobufjs/src/type.js"),o.Field=r("./protobufjs/src/field.js"),o.OneOf=r("./protobufjs/src/oneof.js"),o.MapField=r("./protobufjs/src/mapfield.js"),o.Service=r("./protobufjs/src/service.js"),o.Method=r("./protobufjs/src/method.js"),o.Message=r("./protobufjs/src/message.js"),o.wrappers=r("./protobufjs/src/wrappers.js"),o.types=r("./protobufjs/src/types.js"),o.util=r("./protobufjs/src/util.js"),o.ReflectionObject._configure(o.Root),o.Namespace._configure(o.Type,o.Service,o.Enum),o.Root._configure(o.Type),o.Field._configure(o.Type)},"./protobufjs/src/index-minimal.js":function(e,t,r){var o=t;function s(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=r("./protobufjs/src/writer.js"),o.BufferWriter=r("./protobufjs/src/writer_buffer.js"),o.Reader=r("./protobufjs/src/reader.js"),o.BufferReader=r("./protobufjs/src/reader_buffer.js"),o.util=r("./protobufjs/src/util/minimal.js"),o.rpc=r("./protobufjs/src/rpc.js"),o.roots=r("./protobufjs/src/roots.js"),o.configure=s,s()},"./protobufjs/src/index.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-light.js");o.build="full",o.tokenize=r("./protobufjs/src/tokenize.js"),o.parse=r("./protobufjs/src/parse.js"),o.common=r("./protobufjs/src/common.js"),o.Root._configure(o.Type,o.parse,o.common)},"./protobufjs/src/mapfield.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/field.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="MapField";var s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,n,u){if(o.call(this,e,t,s,void 0,void 0,n,u),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}n.fromJSON=function(e,t){return new n(e,t.id,t.keyType,t.type,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},n.prototype.resolve=function(){if(this.resolved)return this;if(void 0===s.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return o.prototype.resolve.call(this)},n.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(o,s){i.decorateType(o.constructor).add(new n(s,e,t,r))}}},"./protobufjs/src/message.js":function(e,t,r){e.exports=s;var o=r("./protobufjs/src/util/minimal.js");function s(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}s.create=function(e){return this.$type.create(e)},s.encode=function(e,t){return this.$type.encode(e,t)},s.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},s.decode=function(e){return this.$type.decode(e)},s.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},s.verify=function(e){return this.$type.verify(e)},s.fromObject=function(e){return this.$type.fromObject(e)},s.toObject=function(e,t){return this.$type.toObject(e,t)},s.prototype.toJSON=function(){return this.$type.toObject(this,o.toJSONOptions)}},"./protobufjs/src/method.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/object.js");((i.prototype=Object.create(o.prototype)).constructor=i).className="Method";var s=r("./protobufjs/src/util.js");function i(e,t,r,i,n,u,f,a,l){if(s.isObject(n)?(f=n,n=u=void 0):s.isObject(u)&&(f=u,u=void 0),!(void 0===t||s.isString(t)))throw TypeError("type must be a string");if(!s.isString(r))throw TypeError("requestType must be a string");if(!s.isString(i))throw TypeError("responseType must be a string");o.call(this,e,f),this.type=t||"rpc",this.requestType=r,this.requestStream=!!n||void 0,this.responseType=i,this.responseStream=!!u||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=a,this.parsedOptions=l}i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},i.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.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",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),o.prototype.resolve.call(this))}},"./protobufjs/src/namespace.js":function(e,t,r){e.exports=p;var o,s,i,n=r("./protobufjs/src/object.js");((p.prototype=Object.create(n.prototype)).constructor=p).className="Namespace";var u=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/util.js"),a=r("./protobufjs/src/oneof.js");function l(e,t){if(e&&e.length){for(var r={},o=0;o<e.length;++o)r[e[o].name]=e[o].toJSON(t);return r}}function p(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function c(e){e._nestedArray=null,e._lookupCache={};for(var t=e;t=t.parent;)t._lookupCache={};return e}p.fromJSON=function(e,t){return new p(e,t.options).addJSON(t.nested)},p.arrayToJSON=l,p.isReservedId=function(e,t){if(e){for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0}return!1},p.isReservedName=function(e,t){if(e){for(var r=0;r<e.length;++r)if(e[r]===t)return!0}return!1},Object.defineProperty(p.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),p.prototype.toJSON=function(e){return f.toObject(["options",this.options,"nested",l(this.nestedArray,e)])},p.prototype.addJSON=function(e){var t=this;if(e)for(var r,n=Object.keys(e),f=0;f<n.length;++f)r=e[n[f]],t.add((void 0!==r.fields?o.fromJSON:void 0!==r.values?i.fromJSON:void 0!==r.methods?s.fromJSON:void 0!==r.id?u.fromJSON:p.fromJSON)(n[f],r));return this},p.prototype.get=function(e){return this.nested&&this.nested[e]||null},p.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof i)return this.nested[e].values;throw Error("no such enum: "+e)},p.prototype.add=function(e){if(!(e instanceof u&&void 0!==e.extend||e instanceof o||e instanceof a||e instanceof i||e instanceof s||e instanceof p))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t)if(t instanceof p&&e instanceof p&&!(t instanceof o||t instanceof s)){for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}else throw Error("duplicate name '"+e.name+"' in "+this)}else this.nested={};this.nested[e.name]=e,this instanceof o||this instanceof s||this instanceof i||this instanceof u||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var f=this;f=f.parent;)f._needsRecursiveFeatureResolution=!0,f._needsRecursiveResolve=!0;return e.onAdd(this),c(this)},p.prototype.remove=function(e){if(!(e instanceof n))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),c(this)},p.prototype.define=function(e,t){if(f.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");for(var r=this;e.length>0;){var o=e.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 t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof p?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},p.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),f.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var o=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var s=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+o];if(s&&(!t||t.indexOf(s.constructor)>-1)||(s=this._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;if(r)return null;for(var i=this;i.parent;){if((s=i.parent._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;i=i.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),o=null;if(r)1===e.length?o=r:r instanceof p&&(e=e.slice(1),o=r._lookupImpl(e,e.join(".")));else for(var s=0;s<this.nestedArray.length;++s)this._nestedArray[s]instanceof p&&(r=this._nestedArray[s]._lookupImpl(e,t))&&(o=r);return this._lookupCache[t]=o,o},p.prototype.lookupType=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such type: "+e);return t},p.prototype.lookupEnum=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},p.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[o,i]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},p.prototype.lookupService=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},p._configure=function(e,t,r){o=e,s=t,i=r}},"./protobufjs/src/object.js":function(e,t,r){e.exports=a,a.className="ReflectionObject";let o=r("./protobufjs/src/oneof.js");var s,i=r("./protobufjs/src/util.js"),n={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},u={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},f={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function a(e,t){if(!i.isString(e))throw TypeError("name must be a string");if(t&&!i.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(a.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),a.prototype.toJSON=function(){throw Error()},a.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof s&&t._handleAdd(this)},a.prototype.onRemove=function(e){var t=e.root;t instanceof s&&t._handleRemove(this),this.parent=null,this.resolved=!1},a.prototype.resolve=function(){return this.resolved||this.root instanceof s&&(this.resolved=!0),this},a.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},a.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw Error("Unknown edition for "+this.fullName);var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},u);else if("proto3"===e)t=Object.assign({},f);else if("2023"===e)t=Object.assign({},n);else throw Error("Unknown edition: "+e);this._features=Object.assign(t,r||{}),this._featuresResolved=!0;return}if(this.partOf instanceof o){var s=Object.assign({},this.partOf._features);this._features=Object.assign(s,r||{})}else if(this.declaringField);else if(this.parent){var i=Object.assign({},this.parent._features);this._features=Object.assign(i,r||{})}else throw Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},a.prototype._inferLegacyProtoFeatures=function(){return{}},a.prototype.getOption=function(e){if(this.options)return this.options[e]},a.prototype.setOption=function(e,t,r){return this.options||(this.options={}),/^features\./.test(e)?i.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},a.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var o=this.parsedOptions;if(r){var s=o.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(s){var n=s[e];i.setProperty(n,r,t)}else(s={})[e]=i.setProperty({},r,t),o.push(s)}else{var u={};u[e]=t,o.push(u)}return this},a.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),o=0;o<r.length;++o)this.setOption(r[o],e[r[o]],t);return this},a.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},a.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},a._configure=function(e){s=e}},"./protobufjs/src/oneof.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/object.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="OneOf";var s=r("./protobufjs/src/field.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s){if(Array.isArray(t)||(r=t,t=void 0),o.call(this,e,r),!(void 0===t||Array.isArray(t)))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=s}function u(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}n.fromJSON=function(e,t){return new n(e,t.oneof,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},n.prototype.add=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,u(this),this},n.prototype.remove=function(e){if(!(e instanceof s))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},n.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=this,r=0;r<this.oneof.length;++r){var s=e.get(this.oneof[r]);s&&!s.partOf&&(s.partOf=t,t.fieldsArray.push(s))}u(this)},n.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);o.prototype.onRemove.call(this,e)},Object.defineProperty(n.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),n.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){i.decorateType(t.constructor).add(new n(r,e)),Object.defineProperty(t,r,{get:i.oneOfGetter(e),set:i.oneOfSetter(e)})}}},"./protobufjs/src/parse.js":function(e,t,r){e.exports=k,k.filename=null,k.defaults={keepCase:!1};var o=r("./protobufjs/src/tokenize.js"),s=r("./protobufjs/src/root.js"),i=r("./protobufjs/src/type.js"),n=r("./protobufjs/src/field.js"),u=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/oneof.js"),a=r("./protobufjs/src/enum.js"),l=r("./protobufjs/src/service.js"),p=r("./protobufjs/src/method.js"),c=r("./protobufjs/src/object.js"),h=r("./protobufjs/src/types.js"),d=r("./protobufjs/src/util.js"),y=/^[1-9][0-9]*$/,v=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,b=/^-?0[x][0-9a-fA-F]+$/,j=/^0[0-7]+$/,g=/^-?0[0-7]+$/,w=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,O=/^[a-zA-Z_][a-zA-Z_0-9]*$/,_=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function k(e,t,r){t instanceof s||(r=t,t=new s),r||(r=k.defaults);var x,A,E,S,T=r.preferTrailingComment||!1,N=o(e,r.alternateCommentMode||!1),R=N.next,F=N.push,I=N.peek,B=N.skip,P=N.cmnt,D=!0,L="proto2",C=t,J=[],$={},q=r.keepCase?function(e){return e}:d.camelCase;function V(){J.forEach(e=>{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function z(e,t,r){var o=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(o?o+", ":"")+"line "+N.line+")")}function M(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw z(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),M();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&_.test(t))return t;throw z(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,o,s=M();if(e.push(s),L>=2023)throw z(s,"id")}else try{e.push([o=G(R()),B("to",!0)?G(R()):o])}catch(o){if(t&&_.test(r)&&L>=2023)e.push(r);else throw o}while(B(",",!0));var i={options:void 0};i.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(i,function(e){if("option"===e)ef(i,e),B(";");else throw z(e)},function(){ec(i)})}function W(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(j.test(e))return r*parseInt(e,8);if(w.test(e))return r*parseFloat(e);throw z(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw z(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(g.test(e))return parseInt(e,8);throw z(e,"id")}function X(){if(void 0!==A)throw z("package");if(A=R(),!_.test(A))throw z(A,"name");C=C.define(A),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=M(),B(";"),e.push(t)}function K(){if(B("="),(L=M())<2023)throw z(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=M()))throw z(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return ef(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return en(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var o,s=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(o=R());)t(o);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(s)||e.comment)}function et(e,t){if(!O.test(t=R()))throw z(t,"type name");var r=new i(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":es(r,e);break;case"required":if("proto2"!==L)throw z(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw z(e);else er(r,"optional");break;case"oneof":ei(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!_.test(e))throw z(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var o=R();if("group"===o)return void eo(e,t);for(;o.endsWith(".")||I().startsWith(".");)o+=R();if(!_.test(o))throw z(o,"type");var s=R();if(!O.test(s))throw z(s,"name");s=q(s),B("=");var i=new n(s,G(R()),o,t,r);if(ee(i,function(e){if("option"===e)ef(i,e),B(";");else throw z(e)},function(){ec(i)}),"proto3_optional"===t){var u=new f("_"+s);i.setOption("proto3_optional",!0),u.add(i),e.add(u)}else e.add(i);e===C&&J.push(i)}function eo(e,t){if(L>=2023)throw z("group");var r=R();if(!O.test(r))throw z(r,"name");var o=d.lcFirst(r);r===o&&(r=d.ucFirst(r)),B("=");var s=G(R()),u=new i(r);u.group=!0;var f=new n(o,s,r,t);f.filename=k.filename,ee(u,function(e){switch(e){case"option":ef(u,e),B(";");break;case"required":case"repeated":er(u,e);break;case"optional":"proto3"===L?er(u,"proto3_optional"):er(u,"optional");break;case"message":et(u,e);break;case"enum":en(u,e);break;case"reserved":H(u.reserved||(u.reserved=[]),!0);break;default:throw z(e)}}),e.add(u).add(f)}function es(e){B("<");var t=R();if(void 0===h.mapKey[t])throw z(t,"type");B(",");var r=R();if(!_.test(r))throw z(r,"type");B(">");var o=R();if(!O.test(o))throw z(o,"name");B("=");var s=new u(q(o),G(R()),t,r);ee(s,function(e){if("option"===e)ef(s,e),B(";");else throw z(e)},function(){ec(s)}),e.add(s)}function ei(e,t){if(!O.test(t=R()))throw z(t,"name");var r=new f(q(t));ee(r,function(e){"option"===e?(ef(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function en(e,t){if(!O.test(t=R()))throw z(t,"name");var r=new a(t);ee(r,function(e){switch(e){case"option":ef(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:eu(r,e)}}),e.add(r),e===C&&J.push(r)}function eu(e,t){if(!O.test(t))throw z(t,"name");B("=");var r=G(R(),!0),o={options:void 0};o.getOption=function(e){return this.options[e]},o.setOption=function(e,t){c.prototype.setOption.call(o,e,t)},o.setParsedOption=function(){},ee(o,function(e){if("option"===e)ef(o,e),B(";");else throw z(e)},function(){ec(o)}),e.add(t,r,o.comment,o.parsedOptions||o.options)}function ef(e,t){var r,o,s=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var i=R();B(")"),t="("+i+")"}if(s){if(s=!1,t.includes(".")&&!t.includes("(")){var n=t.split(".");r=n[0]+".",t=n[1];continue}r=t}else o=o?o+=t:t;t=R()}var u=ea(e,o?r.concat(o):r);o=o&&"."===o[0]?o.slice(1):o,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,u,o)}function ea(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!O.test(x=R()))throw z(x,"name");if(null===x)throw z(x,"end of input");var o,s,i=x;if(B(":",!0),"{"===I())o=ea(e,t+"."+x);else if("["===I()){if(o=[],B("[",!0)){do s=U(!0),o.push(s);while(B(",",!0));B("]"),void 0!==s&&el(e,t+"."+x,s)}}else o=U(!0),el(e,t+"."+x,o);var n=r[i];n&&(o=[].concat(n).concat(o)),r[i]=o,B(",",!0),B(";",!0)}return r}var u=U(!0);return el(e,t,u),u}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,o){e.setParsedOption&&e.setParsedOption(t,r,o)}function ec(e){if(B("[",!0)){do ef(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!O.test(t=R()))throw z(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw z(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),o=t;if(!O.test(t=R()))throw z(t,"name");var s,i,n,u,f=t;if(B("("),B("stream",!0)&&(i=!0),!_.test(t=R())||(s=t,