dd-trace
Version:
Datadog APM tracing client for JavaScript
1 lines • 24.7 kB
JavaScript
(()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js"(t){t.exports=asPromise;function asPromise(t,r){for(var e=Array(arguments.length-1),i=0,o=2,n=!0;o<arguments.length;)e[i++]=arguments[o++];return new Promise(function(o,s){e[i]=function(t){if(n)if(n=!1,t)s(t);else{for(var r=Array(arguments.length-1),e=0;e<r.length;)r[e++]=arguments[e];o.apply(null,r)}};try{t.apply(r||null,e)}catch(t){n&&(n=!1,s(t))}})}},"./@protobufjs/base64/index.js"(t,r){var e=r;e.length=function(t){var r=t.length;if(!r)return 0;for(var e=0;--r%4>1&&"="===t.charAt(r);)++e;return Math.ceil(3*t.length)/4-e};for(var i=Array(64),o=Array(123),n=0;n<64;)o[i[n]=n<26?n+65:n<52?n+71:n<62?n-4:n-59|43]=n++;e.encode=function(t,r,e){for(var o,n=null,s=[],u=0,f=0;r<e;){var a=t[r++];switch(f){case 0:s[u++]=i[a>>2],o=(3&a)<<4,f=1;break;case 1:s[u++]=i[o|a>>4],o=(15&a)<<2,f=2;break;case 2:s[u++]=i[o|a>>6],s[u++]=i[63&a],f=0}u>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(f&&(s[u++]=i[o],s[u++]=61,1===f&&(s[u++]=61)),n)?(u&&n.push(String.fromCharCode.apply(String,s.slice(0,u))),n.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";e.decode=function(t,r,e){for(var i,n=e,u=0,f=0;f<t.length;){var a=t.charCodeAt(f++);if(61===a&&u>1)break;if(void 0===(a=o[a]))throw Error(s);switch(u){case 0:i=a,u=1;break;case 1:r[e++]=i<<2|(48&a)>>4,i=a,u=2;break;case 2:r[e++]=(15&i)<<4|(60&a)>>2,i=a,u=3;break;case 3:r[e++]=(3&i)<<6|a,u=0}}if(1===u)throw Error(s);return e-n},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},"./@protobufjs/eventemitter/index.js"(t){function EventEmitter(){this._listeners={}}t.exports=EventEmitter,EventEmitter.prototype.on=function(t,r,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:e||this}),this},EventEmitter.prototype.off=function(t,r){if(void 0===t)this._listeners={};else if(void 0===r)this._listeners[t]=[];else for(var e=this._listeners[t],i=0;i<e.length;)e[i].fn===r?e.splice(i,1):++i;return this},EventEmitter.prototype.emit=function(t){var r=this._listeners[t];if(r){for(var e=[],i=1;i<arguments.length;)e.push(arguments[i++]);for(i=0;i<r.length;)r[i].fn.apply(r[i++].ctx,e)}return this}},"./@protobufjs/float/index.js"(t){function factory(t){return"u">typeof Float32Array?!function(){var r=new Float32Array([-0]),e=new Uint8Array(r.buffer),i=128===e[3];function writeFloat_f32_cpy(t,i,o){r[0]=t,i[o]=e[0],i[o+1]=e[1],i[o+2]=e[2],i[o+3]=e[3]}function writeFloat_f32_rev(t,i,o){r[0]=t,i[o]=e[3],i[o+1]=e[2],i[o+2]=e[1],i[o+3]=e[0]}function readFloat_f32_cpy(t,i){return e[0]=t[i],e[1]=t[i+1],e[2]=t[i+2],e[3]=t[i+3],r[0]}function readFloat_f32_rev(t,i){return e[3]=t[i],e[2]=t[i+1],e[1]=t[i+2],e[0]=t[i+3],r[0]}t.writeFloatLE=i?writeFloat_f32_cpy:writeFloat_f32_rev,t.writeFloatBE=i?writeFloat_f32_rev:writeFloat_f32_cpy,t.readFloatLE=i?readFloat_f32_cpy:readFloat_f32_rev,t.readFloatBE=i?readFloat_f32_rev:readFloat_f32_cpy}():!function(){function writeFloat_ieee754(t,r,e,i){var o=+(r<0);if(o&&(r=-r),0===r)t(1/r>0?0:0x80000000,e,i);else if(isNaN(r))t(0x7fc00000,e,i);else if(r>34028234663852886e22)t((o<<31|0x7f800000)>>>0,e,i);else if(r<11754943508222875e-54)t((o<<31|Math.round(r/1401298464324817e-60))>>>0,e,i);else{var n=Math.floor(Math.log(r)/Math.LN2),s=8388607&Math.round(r*Math.pow(2,-n)*8388608);t((o<<31|n+127<<23|s)>>>0,e,i)}}function readFloat_ieee754(t,r,e){var i=t(r,e),o=(i>>31)*2+1,n=i>>>23&255,s=8388607&i;return 255===n?s?NaN:1/0*o:0===n?1401298464324817e-60*o*s:o*Math.pow(2,n-150)*(s+8388608)}t.writeFloatLE=writeFloat_ieee754.bind(null,writeUintLE),t.writeFloatBE=writeFloat_ieee754.bind(null,writeUintBE),t.readFloatLE=readFloat_ieee754.bind(null,readUintLE),t.readFloatBE=readFloat_ieee754.bind(null,readUintBE)}(),"u">typeof Float64Array?!function(){var r=new Float64Array([-0]),e=new Uint8Array(r.buffer),i=128===e[7];function writeDouble_f64_cpy(t,i,o){r[0]=t,i[o]=e[0],i[o+1]=e[1],i[o+2]=e[2],i[o+3]=e[3],i[o+4]=e[4],i[o+5]=e[5],i[o+6]=e[6],i[o+7]=e[7]}function writeDouble_f64_rev(t,i,o){r[0]=t,i[o]=e[7],i[o+1]=e[6],i[o+2]=e[5],i[o+3]=e[4],i[o+4]=e[3],i[o+5]=e[2],i[o+6]=e[1],i[o+7]=e[0]}function readDouble_f64_cpy(t,i){return e[0]=t[i],e[1]=t[i+1],e[2]=t[i+2],e[3]=t[i+3],e[4]=t[i+4],e[5]=t[i+5],e[6]=t[i+6],e[7]=t[i+7],r[0]}function readDouble_f64_rev(t,i){return e[7]=t[i],e[6]=t[i+1],e[5]=t[i+2],e[4]=t[i+3],e[3]=t[i+4],e[2]=t[i+5],e[1]=t[i+6],e[0]=t[i+7],r[0]}t.writeDoubleLE=i?writeDouble_f64_cpy:writeDouble_f64_rev,t.writeDoubleBE=i?writeDouble_f64_rev:writeDouble_f64_cpy,t.readDoubleLE=i?readDouble_f64_cpy:readDouble_f64_rev,t.readDoubleBE=i?readDouble_f64_rev:readDouble_f64_cpy}():!function(){function writeDouble_ieee754(t,r,e,i,o,n){var s,u=+(i<0);if(u&&(i=-i),0===i)t(0,o,n+r),t(1/i>0?0:0x80000000,o,n+e);else if(isNaN(i))t(0,o,n+r),t(0x7ff80000,o,n+e);else if(i>17976931348623157e292)t(0,o,n+r),t((u<<31|0x7ff00000)>>>0,o,n+e);else if(i<22250738585072014e-324)t((s=i/5e-324)>>>0,o,n+r),t((u<<31|s/0x100000000)>>>0,o,n+e);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),t(0x10000000000000*(s=i*Math.pow(2,-f))>>>0,o,n+r),t((u<<31|f+1023<<20|1048576*s&1048575)>>>0,o,n+e)}}function readDouble_ieee754(t,r,e,i,o){var n=t(i,o+r),s=t(i,o+e),u=(s>>31)*2+1,f=s>>>20&2047,a=0x100000000*(1048575&s)+n;return 2047===f?a?NaN:1/0*u:0===f?5e-324*u*a:u*Math.pow(2,f-1075)*(a+0x10000000000000)}t.writeDoubleLE=writeDouble_ieee754.bind(null,writeUintLE,0,4),t.writeDoubleBE=writeDouble_ieee754.bind(null,writeUintBE,4,0),t.readDoubleLE=readDouble_ieee754.bind(null,readUintLE,0,4),t.readDoubleBE=readDouble_ieee754.bind(null,readUintBE,4,0)}(),t}function writeUintLE(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}function writeUintBE(t,r,e){r[e]=t>>>24,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t}function readUintLE(t,r){return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0}function readUintBE(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}t.exports=factory(factory)},"./@protobufjs/inquire/index.js"(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/pool/index.js"(t){t.exports=pool;function pool(t,r,e){var i=e||8192,o=i>>>1,n=null,s=i;return function(e){if(e<1||e>o)return t(e);s+e>i&&(n=t(i),s=0);var u=r.call(n,s,s+=e);return 7&s&&(s=(7|s)+1),u}}},"./@protobufjs/utf8/index.js"(t,r){var e=r;e.length=function(t){for(var r=0,e=0,i=0;i<t.length;++i)(e=t.charCodeAt(i))<128?r+=1:e<2048?r+=2:(64512&e)==55296&&(64512&t.charCodeAt(i+1))==56320?(++i,r+=4):r+=3;return r},e.read=function(t,r,e){if(e-r<1)return"";for(var i,o=null,n=[],s=0;r<e;)(i=t[r++])<128?n[s++]=i:i>191&&i<224?n[s++]=(31&i)<<6|63&t[r++]:i>239&&i<365?(i=((7&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,n[s++]=55296+(i>>10),n[s++]=56320+(1023&i)):n[s++]=(15&i)<<12|(63&t[r++])<<6|63&t[r++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,n)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,n.slice(0,s))),o.join("")):String.fromCharCode.apply(String,n.slice(0,s))},e.write=function(t,r,e){for(var i,o,n=e,s=0;s<t.length;++s)(i=t.charCodeAt(s))<128?r[e++]=i:(i<2048?r[e++]=i>>6|192:((64512&i)==55296&&(64512&(o=t.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++s,r[e++]=i>>18|240,r[e++]=i>>12&63|128):r[e++]=i>>12|224,r[e++]=i>>6&63|128),r[e++]=63&i|128);return e-n}},"./protobufjs/minimal.js"(t,r,e){t.exports=e("./protobufjs/src/index-minimal.js")},"./protobufjs/src/index-minimal.js"(t,r,e){var i=r;function configure(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=e("./protobufjs/src/writer.js"),i.BufferWriter=e("./protobufjs/src/writer_buffer.js"),i.Reader=e("./protobufjs/src/reader.js"),i.BufferReader=e("./protobufjs/src/reader_buffer.js"),i.util=e("./protobufjs/src/util/minimal.js"),i.rpc=e("./protobufjs/src/rpc.js"),i.roots=e("./protobufjs/src/roots.js"),i.configure=configure,configure()},"./protobufjs/src/reader.js"(t,r,e){t.exports=Reader;var i,o=e("./protobufjs/src/util/minimal.js"),n=o.LongBits,s=o.utf8;function indexOutOfRange(t,r){return RangeError("index out of range: "+t.pos+" + "+(r||1)+" > "+t.len)}function Reader(t){this.buf=t,this.pos=0,this.len=t.length}var u="u">typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new Reader(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new Reader(t);throw Error("illegal buffer")},create=function(){return o.Buffer?function(t){return(Reader.create=function(t){return o.Buffer.isBuffer(t)?new i(t):u(t)})(t)}:u};function readLongVarint(){var t=new n(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>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;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw indexOutOfRange(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*r)>>>0,t}if(this.len-this.pos>4){for(;r<5;++r)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}else for(;r<5;++r){if(this.pos>=this.len)throw indexOutOfRange(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function readFixed32_end(t,r){return(t[r-4]|t[r-3]<<8|t[r-2]<<16|t[r-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new n(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,Reader.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(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,indexOutOfRange(this,10);return t}}(),Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},Reader.prototype.bool=function(){return 0!==this.uint32()},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},Reader.prototype.bytes=function(){var t=this.uint32(),r=this.pos,e=this.pos+t;if(e>this.len)throw indexOutOfRange(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,e);if(r===e){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,e)},Reader.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},Reader.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw indexOutOfRange(this,t);this.pos+=t}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},Reader._configure=function(t){i=t,Reader.create=create(),i._configure();var r=o.Long?"toLong":"toNumber";o.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[r](!1)},uint64:function(){return readLongVarint.call(this)[r](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[r](!1)},fixed64:function(){return readFixed64.call(this)[r](!0)},sfixed64:function(){return readFixed64.call(this)[r](!1)}})}},"./protobufjs/src/reader_buffer.js"(t,r,e){t.exports=BufferReader;var i=e("./protobufjs/src/reader.js");(BufferReader.prototype=Object.create(i.prototype)).constructor=BufferReader;var o=e("./protobufjs/src/util/minimal.js");function BufferReader(t){i.call(this,t)}BufferReader._configure=function(){o.Buffer&&(BufferReader.prototype._slice=o.Buffer.prototype.slice)},BufferReader.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},BufferReader._configure()},"./protobufjs/src/roots.js"(t){t.exports={}},"./protobufjs/src/rpc.js"(t,r,e){r.Service=e("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js"(t,r,e){t.exports=Service;var i=e("./protobufjs/src/util/minimal.js");function Service(t,r,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!r,this.responseDelimited=!!e}(Service.prototype=Object.create(i.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(t,r,e,o,n){if(!o)throw TypeError("request must be specified");var s=this;if(!n)return i.asPromise(rpcCall,s,t,r,e,o);if(!s.rpcImpl)return void setTimeout(function(){n(Error("already ended"))},0);try{return s.rpcImpl(t,r[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(r,i){if(r)return s.emit("error",r,t),n(r);if(null===i)return void s.end(!0);if(!(i instanceof e))try{i=e[s.responseDelimited?"decodeDelimited":"decode"](i)}catch(r){return s.emit("error",r,t),n(r)}return s.emit("data",i,t),n(null,i)})}catch(r){s.emit("error",r,t),setTimeout(function(){n(r)},0);return}},Service.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/util/longbits.js"(t,r,e){t.exports=LongBits;var i=e("./protobufjs/src/util/minimal.js");function LongBits(t,r){this.lo=t>>>0,this.hi=r>>>0}var o=LongBits.zero=new LongBits(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var n=LongBits.zeroHash="\0\0\0\0\0\0\0\0";LongBits.fromNumber=function(t){if(0===t)return o;var r=t<0;r&&(t=-t);var e=t>>>0,i=(t-e)/0x100000000>>>0;return r&&(i=~i>>>0,e=~e>>>0,++e>0xffffffff&&(e=0,++i>0xffffffff&&(i=0))),new LongBits(e,i)},LongBits.from=function(t){if("number"==typeof t)return LongBits.fromNumber(t);if(i.isString(t))if(!i.Long)return LongBits.fromNumber(parseInt(t,10));else t=i.Long.fromString(t);return t.low||t.high?new LongBits(t.low>>>0,t.high>>>0):o},LongBits.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,e=~this.hi>>>0;return r||(e=e+1>>>0),-(r+0x100000000*e)}return this.lo+0x100000000*this.hi},LongBits.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var s=String.prototype.charCodeAt;LongBits.fromHash=function(t){return t===n?o:new LongBits((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},LongBits.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},LongBits.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===r?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:e<128?9:10}},"./protobufjs/src/util/minimal.js"(t,r,e){var i=r;function merge(t,r,e){for(var i=Object.keys(r),o=0;o<i.length;++o)void 0!==t[i[o]]&&e||(t[i[o]]=r[i[o]]);return t}function newError(t){function CustomError(t,r){if(!(this instanceof CustomError))return new CustomError(t,r);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),r&&merge(this,r)}return CustomError.prototype=Object.create(Error.prototype,{constructor:{value:CustomError,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),CustomError}i.asPromise=e("./@protobufjs/aspromise/index.js"),i.base64=e("./@protobufjs/base64/index.js"),i.EventEmitter=e("./@protobufjs/eventemitter/index.js"),i.float=e("./@protobufjs/float/index.js"),i.inquire=e("./@protobufjs/inquire/index.js"),i.utf8=e("./@protobufjs/utf8/index.js"),i.pool=e("./@protobufjs/pool/index.js"),i.LongBits=e("./protobufjs/src/util/longbits.js"),i.isNode=!!("u">typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),i.global=i.isNode&&global||"u">typeof window&&window||"u">typeof self&&self||this,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},i.isString=function(t){return"string"==typeof t||t instanceof String},i.isObject=function(t){return t&&"object"==typeof t},i.isset=i.isSet=function(t,r){var e=t[r];return!!(null!=e&&t.hasOwnProperty(r))&&("object"!=typeof e||(Array.isArray(e)?e.length:Object.keys(e).length)>0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"u"<typeof Uint8Array?t:new Uint8Array(t)},i.Array="u">typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.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(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,r){var e=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(e.lo,e.hi,r):e.toNumber(!!r)},i.merge=merge,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=newError,i.ProtocolError=newError("ProtocolError"),i.oneOfGetter=function(t){for(var r={},e=0;e<t.length;++e)r[t[e]]=1;return function(){for(var t=Object.keys(this),e=t.length-1;e>-1;--e)if(1===r[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},i.oneOfSetter=function(t){return function(r){for(var e=0;e<t.length;++e)t[e]!==r&&delete this[t[e]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var t=i.Buffer;if(!t){i._Buffer_from=i._Buffer_allocUnsafe=null;return}i._Buffer_from=t.from!==Uint8Array.from&&t.from||function(r,e){return new t(r,e)},i._Buffer_allocUnsafe=t.allocUnsafe||function(r){return new t(r)}}},"./protobufjs/src/writer.js"(t,r,e){t.exports=Writer;var i,o=e("./protobufjs/src/util/minimal.js"),n=o.LongBits,s=o.base64,u=o.utf8;function Op(t,r,e){this.fn=t,this.len=r,this.next=void 0,this.val=e}function noop(){}function State(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return o.Buffer?function(){return(Writer.create=function(){return new i})()}:function(){return new Writer}};function writeByte(t,r,e){r[e]=255&t}function writeVarint32(t,r,e){for(;t>127;)r[e++]=127&t|128,t>>>=7;r[e]=t}function VarintOp(t,r){this.len=t,this.next=void 0,this.val=r}function writeVarint64(t,r,e){for(;t.hi;)r[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)r[e++]=127&t.lo|128,t.lo=t.lo>>>7;r[e++]=t.lo}function writeFixed32(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}Writer.create=create(),Writer.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(Writer.alloc=o.pool(Writer.alloc,o.Array.prototype.subarray)),Writer.prototype._push=function(t,r,e){return this.tail=this.tail.next=new Op(t,r,e),this.len+=r,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new VarintOp((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},Writer.prototype.int32=function(t){return t<0?this._push(writeVarint64,10,n.fromNumber(t)):this.uint32(t)},Writer.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},Writer.prototype.uint64=function(t){var r=n.from(t);return this._push(writeVarint64,r.length(),r)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(t){var r=n.from(t).zzEncode();return this._push(writeVarint64,r.length(),r)},Writer.prototype.bool=function(t){return this._push(writeByte,1,+!!t)},Writer.prototype.fixed32=function(t){return this._push(writeFixed32,4,t>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(t){var r=n.from(t);return this._push(writeFixed32,4,r.lo)._push(writeFixed32,4,r.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},Writer.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var f=o.Array.prototype.set?function(t,r,e){r.set(t,e)}:function(t,r,e){for(var i=0;i<t.length;++i)r[e+i]=t[i]};Writer.prototype.bytes=function(t){var r=t.length>>>0;if(!r)return this._push(writeByte,1,0);if(o.isString(t)){var e=Writer.alloc(r=s.length(t));s.decode(t,e,0),t=e}return this.uint32(r)._push(f,r,t)},Writer.prototype.string=function(t){var r=u.length(t);return r?this.uint32(r)._push(u.write,r,t):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var t=this.head,r=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=r,this.len+=e),this},Writer.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,r,e),e+=t.len,t=t.next;return r},Writer._configure=function(t){i=t,Writer.create=create(),i._configure()}},"./protobufjs/src/writer_buffer.js"(t,r,e){t.exports=BufferWriter;var i=e("./protobufjs/src/writer.js");(BufferWriter.prototype=Object.create(i.prototype)).constructor=BufferWriter;var o=e("./protobufjs/src/util/minimal.js");function BufferWriter(){i.call(this)}function writeStringBuffer(t,r,e){t.length<40?o.utf8.write(t,r,e):r.utf8Write?r.utf8Write(t,e):r.write(t,e)}BufferWriter._configure=function(){BufferWriter.alloc=o._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,r,e){r.set(t,e)}:function(t,r,e){if(t.copy)t.copy(r,e,0,t.length);else for(var i=0;i<t.length;)r[e++]=t[i++]}},BufferWriter.prototype.bytes=function(t){o.isString(t)&&(t=o._Buffer_from(t,"base64"));var r=t.length>>>0;return this.uint32(r),r&&this._push(BufferWriter.writeBytesBuffer,r,t),this},BufferWriter.prototype.string=function(t){var r=o.Buffer.byteLength(t);return this.uint32(r),r&&this._push(writeStringBuffer,r,t),this},BufferWriter._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var r=__webpack_module_cache__[t];if(void 0!==r)return r.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}var __webpack_exports__=__webpack_require__("./protobufjs/minimal.js");module.exports=__webpack_exports__})();