ord-schema-protobufjs 0.3.96 → 0.3.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +1 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var __webpack_modules__={45:e=>{e.exports=function(e,t){for(var r=new Array(arguments.length-1),o=0,n=2,i=!0;n<arguments.length;)r[o++]=arguments[n++];return new Promise((function(n,a){r[o]=function(e){if(i)if(i=!1,e)a(e);else{for(var t=new Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];n.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!1,a(e))}}))}},839:(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=new Array(64),n=new Array(123),i=0;i<64;)n[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 n,i=null,a=[],s=0,l=0;t<r;){var u=e[t++];switch(l){case 0:a[s++]=o[u>>2],n=(3&u)<<4,l=1;break;case 1:a[s++]=o[n|u>>4],n=(15&u)<<2,l=2;break;case 2:a[s++]=o[n|u>>6],a[s++]=o[63&u],l=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=o[n],a[s++]=61,1===l&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";r.decode=function(e,t,r){for(var o,i=r,s=0,l=0;l<e.length;){var u=e.charCodeAt(l++);if(61===u&&s>1)break;if(void 0===(u=n[u]))throw Error(a);switch(s){case 0:o=u,s=1;break;case 1:t[r++]=o<<2|(48&u)>>4,o=u,s=2;break;case 2:t[r++]=(15&o)<<4|(60&u)>>2,o=u,s=3;break;case 3:t[r++]=(3&o)<<6|u,s=0}}if(1===s)throw Error(a);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)}},358: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}},410:e=>{function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),o=128===r[3];function n(e,o,n){t[0]=e,o[n]=r[0],o[n+1]=r[1],o[n+2]=r[2],o[n+3]=r[3]}function i(e,o,n){t[0]=e,o[n]=r[3],o[n+1]=r[2],o[n+2]=r[1],o[n+3]=r[0]}function a(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 s(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?n:i,e.writeFloatBE=o?i:n,e.readFloatLE=o?a:s,e.readFloatBE=o?s:a}():function(){function t(e,t,r,o){var n=t<0?1:0;if(n&&(t=-t),0===t)e(1/t>0?0:2147483648,r,o);else if(isNaN(t))e(2143289344,r,o);else if(t>34028234663852886e22)e((n<<31|2139095040)>>>0,r,o);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,o);else{var i=Math.floor(Math.log(t)/Math.LN2);e((n<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,o)}}function a(e,t,r){var o=e(t,r),n=2*(o>>31)+1,i=o>>>23&255,a=8388607&o;return 255===i?a?NaN:n*(1/0):0===i?1401298464324817e-60*n*a:n*Math.pow(2,i-150)*(a+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=a.bind(null,n),e.readFloatBE=a.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),o=128===r[7];function n(e,o,n){t[0]=e,o[n]=r[0],o[n+1]=r[1],o[n+2]=r[2],o[n+3]=r[3],o[n+4]=r[4],o[n+5]=r[5],o[n+6]=r[6],o[n+7]=r[7]}function i(e,o,n){t[0]=e,o[n]=r[7],o[n+1]=r[6],o[n+2]=r[5],o[n+3]=r[4],o[n+4]=r[3],o[n+5]=r[2],o[n+6]=r[1],o[n+7]=r[0]}function a(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 s(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?n:i,e.writeDoubleBE=o?i:n,e.readDoubleLE=o?a:s,e.readDoubleBE=o?s:a}():function(){function t(e,t,r,o,n,i){var a=o<0?1:0;if(a&&(o=-o),0===o)e(0,n,i+t),e(1/o>0?0:2147483648,n,i+r);else if(isNaN(o))e(0,n,i+t),e(2146959360,n,i+r);else if(o>17976931348623157e292)e(0,n,i+t),e((a<<31|2146435072)>>>0,n,i+r);else{var s;if(o<22250738585072014e-324)e((s=o/5e-324)>>>0,n,i+t),e((a<<31|s/4294967296)>>>0,n,i+r);else{var l=Math.floor(Math.log(o)/Math.LN2);1024===l&&(l=1023),e(4503599627370496*(s=o*Math.pow(2,-l))>>>0,n,i+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,n,i+r)}}}function a(e,t,r,o,n){var i=e(o,n+t),a=e(o,n+r),s=2*(a>>31)+1,l=a>>>20&2047,u=4294967296*(1048575&a)+i;return 2047===l?u?NaN:s*(1/0):0===l?5e-324*s*u:s*Math.pow(2,l-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=a.bind(null,n,0,4),e.readDoubleBE=a.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 n(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)},153:module=>{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}module.exports=inquire},390:e=>{e.exports=function(e,t,r){var o=r||8192,n=o>>>1,i=null,a=o;return function(r){if(r<1||r>n)return e(r);a+r>o&&(i=e(o),a=0);var s=t.call(i,a,a+=r);return 7&a&&(a=1+(7|a)),s}}},447:(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:55296==(64512&r)&&56320==(64512&e.charCodeAt(o+1))?(++o,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var o,n=null,i=[],a=0;t<r;)(o=e[t++])<128?i[a++]=o:o>191&&o<224?i[a++]=(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[a++]=55296+(o>>10),i[a++]=56320+(1023&o)):i[a++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,i)),a=0);return n?(a&&n.push(String.fromCharCode.apply(String,i.slice(0,a))),n.join("")):String.fromCharCode.apply(String,i.slice(0,a))},r.write=function(e,t,r){for(var o,n,i=r,a=0;a<e.length;++a)(o=e.charCodeAt(a))<128?t[r++]=o:o<2048?(t[r++]=o>>6|192,t[r++]=63&o|128):55296==(64512&o)&&56320==(64512&(n=e.charCodeAt(a+1)))?(o=65536+((1023&o)<<10)+(1023&n),++a,t[r++]=o>>18|240,t[r++]=o>>12&63|128,t[r++]=o>>6&63|128,t[r++]=63&o|128):(t[r++]=o>>12|224,t[r++]=o>>6&63|128,t[r++]=63&o|128);return r-i}},946:(e,t,r)=>{e.exports=r(394)},394:(e,t,r)=>{var o=t;function n(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=r(449),o.BufferWriter=r(818),o.Reader=r(618),o.BufferReader=r(158),o.util=r(610),o.rpc=r(47),o.roots=r(529),o.configure=n,n()},618:(e,t,r)=>{e.exports=l;var o,n=r(610),i=n.LongBits,a=n.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function l(e){this.buf=e,this.pos=0,this.len=e.length}var u,c="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},d=function(){return n.Buffer?function(e){return(l.create=function(e){return n.Buffer.isBuffer(e)?new o(e):c(e)})(e)}:c};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function f(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function y(){if(this.pos+8>this.len)throw s(this,8);return new i(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}l.create=d(),l.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,l.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return f(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|f(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},l.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},l.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw s(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var o=n.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},l.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},l.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},l.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:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){o=e,l.create=d(),o._configure();var t=n.Long?"toLong":"toNumber";n.merge(l.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return y.call(this)[t](!0)},sfixed64:function(){return y.call(this)[t](!1)}})}},158:(e,t,r)=>{e.exports=i;var o=r(618);(i.prototype=Object.create(o.prototype)).constructor=i;var n=r(610);function i(e){o.call(this,e)}i._configure=function(){n.Buffer&&(i.prototype._slice=n.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},529:e=>{e.exports={}},47:(e,t,r)=>{t.Service=r(595)},595:(e,t,r)=>{e.exports=n;var o=r(610);function n(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");o.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(n.prototype=Object.create(o.EventEmitter.prototype)).constructor=n,n.prototype.rpcCall=function e(t,r,n,i,a){if(!i)throw TypeError("request must be specified");var s=this;if(!a)return o.asPromise(e,s,t,r,n,i);if(s.rpcImpl)try{return s.rpcImpl(t,r[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,r){if(e)return s.emit("error",e,t),a(e);if(null!==r){if(!(r instanceof n))try{r=n[s.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",r,t),a(null,r)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},n.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},239:(e,t,r)=>{e.exports=n;var o=r(610);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=n.zero=new n(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,o=(e-r)/4294967296>>>0;return t&&(o=~o>>>0,r=~r>>>0,++r>4294967295&&(r=0,++o>4294967295&&(o=0))),new n(r,o)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(o.isString(e)){if(!o.Long)return n.fromNumber(parseInt(e,10));e=o.Long.fromString(e)}return e.low||e.high?new n(e.low>>>0,e.high>>>0):i},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(e){return o.Long?new o.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;n.fromHash=function(e){return e===a?i:new n((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},n.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)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},610:function(e,t,r){var o=t;function n(e,t,r){for(var o=Object.keys(t),n=0;n<o.length;++n)void 0!==e[o[n]]&&r||(e[o[n]]=t[o[n]]);return e}function i(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&n(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}o.asPromise=r(45),o.base64=r(839),o.EventEmitter=r(358),o.float=r(410),o.inquire=r(153),o.utf8=r(447),o.pool=r(390),o.LongBits=r(239),o.isNode=Boolean(void 0!==r.g&&r.g&&r.g.process&&r.g.process.versions&&r.g.process.versions.node),o.global=o.isNode&&r.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o.isString=function(e){return"string"==typeof e||e instanceof String},o.isObject=function(e){return e&&"object"==typeof e},o.isset=o.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var r=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},o.merge=n,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=i,o.ProtocolError=i("ProtocolError"),o.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},o.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o._configure=function(){var e=o.Buffer;e?(o._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},o._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):o._Buffer_from=o._Buffer_allocUnsafe=null}},449:(e,t,r)=>{e.exports=d;var o,n=r(610),i=n.LongBits,a=n.base64,s=n.utf8;function l(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function u(){}function c(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new l(u,0,0),this.tail=this.head,this.states=null}var p=function(){return n.Buffer?function(){return(d.create=function(){return new o})()}:function(){return new d}};function f(e,t,r){t[r]=255&e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function h(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}d.create=p(),d.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(d.alloc=n.pool(d.alloc,n.Array.prototype.subarray)),d.prototype._push=function(e,t,r){return this.tail=this.tail.next=new l(e,t,r),this.len+=t,this},y.prototype=Object.create(l.prototype),y.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(m,10,i.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=i.from(e);return this._push(m,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(m,t.length(),t)},d.prototype.bool=function(e){return this._push(f,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(h,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=i.from(e);return this._push(h,4,t.lo)._push(h,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var b=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var o=0;o<e.length;++o)t[r+o]=e[o]};d.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(f,1,0);if(n.isString(e)){var r=d.alloc(t=a.length(e));a.decode(e,r,0),e=r}return this.uint32(t)._push(b,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(f,1,0)},d.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new l(u,0,0),this.len=0,this},d.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 l(u,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},d._configure=function(e){o=e,d.create=p(),o._configure()}},818:(e,t,r)=>{e.exports=i;var o=r(449);(i.prototype=Object.create(o.prototype)).constructor=i;var n=r(610);function i(){o.call(this)}function a(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=n._Buffer_allocUnsafe,i.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var o=0;o<e.length;)t[r++]=e[o++]}},i.prototype.bytes=function(e){n.isString(e)&&(e=n._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},i._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={},protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(946),protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__);const $Reader=protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.Reader,$Writer=protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.Writer,$util=protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util,$root=protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.roots.default||(protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.roots.default={}),ord=$root.ord=(()=>{const e={};return e.Reaction=function(){function e(e){if(this.identifiers=[],this.inputs={},this.observations=[],this.workups=[],this.outcomes=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.identifiers=$util.emptyArray,e.prototype.inputs=$util.emptyObject,e.prototype.setup=null,e.prototype.conditions=null,e.prototype.notes=null,e.prototype.observations=$util.emptyArray,e.prototype.workups=$util.emptyArray,e.prototype.outcomes=$util.emptyArray,e.prototype.provenance=null,e.prototype.reactionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.identifiers&&e.identifiers.length)for(let r=0;r<e.identifiers.length;++r)$root.ord.ReactionIdentifier.encode(e.identifiers[r],t.uint32(10).fork()).ldelim();if(null!=e.inputs&&Object.hasOwnProperty.call(e,"inputs"))for(let r=Object.keys(e.inputs),o=0;o<r.length;++o)t.uint32(18).fork().uint32(10).string(r[o]),$root.ord.ReactionInput.encode(e.inputs[r[o]],t.uint32(18).fork()).ldelim().ldelim();if(null!=e.setup&&Object.hasOwnProperty.call(e,"setup")&&$root.ord.ReactionSetup.encode(e.setup,t.uint32(26).fork()).ldelim(),null!=e.conditions&&Object.hasOwnProperty.call(e,"conditions")&&$root.ord.ReactionConditions.encode(e.conditions,t.uint32(34).fork()).ldelim(),null!=e.notes&&Object.hasOwnProperty.call(e,"notes")&&$root.ord.ReactionNotes.encode(e.notes,t.uint32(42).fork()).ldelim(),null!=e.observations&&e.observations.length)for(let r=0;r<e.observations.length;++r)$root.ord.ReactionObservation.encode(e.observations[r],t.uint32(50).fork()).ldelim();if(null!=e.workups&&e.workups.length)for(let r=0;r<e.workups.length;++r)$root.ord.ReactionWorkup.encode(e.workups[r],t.uint32(58).fork()).ldelim();if(null!=e.outcomes&&e.outcomes.length)for(let r=0;r<e.outcomes.length;++r)$root.ord.ReactionOutcome.encode(e.outcomes[r],t.uint32(66).fork()).ldelim();return null!=e.provenance&&Object.hasOwnProperty.call(e,"provenance")&&$root.ord.ReactionProvenance.encode(e.provenance,t.uint32(74).fork()).ldelim(),null!=e.reactionId&&Object.hasOwnProperty.call(e,"reactionId")&&t.uint32(82).string(e.reactionId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.Reaction;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.identifiers&&i.identifiers.length||(i.identifiers=[]),i.identifiers.push($root.ord.ReactionIdentifier.decode(e,e.uint32()));break;case 2:{i.inputs===$util.emptyObject&&(i.inputs={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.ReactionInput.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.inputs[r]=o;break}case 3:i.setup=$root.ord.ReactionSetup.decode(e,e.uint32());break;case 4:i.conditions=$root.ord.ReactionConditions.decode(e,e.uint32());break;case 5:i.notes=$root.ord.ReactionNotes.decode(e,e.uint32());break;case 6:i.observations&&i.observations.length||(i.observations=[]),i.observations.push($root.ord.ReactionObservation.decode(e,e.uint32()));break;case 7:i.workups&&i.workups.length||(i.workups=[]),i.workups.push($root.ord.ReactionWorkup.decode(e,e.uint32()));break;case 8:i.outcomes&&i.outcomes.length||(i.outcomes=[]),i.outcomes.push($root.ord.ReactionOutcome.decode(e,e.uint32()));break;case 9:i.provenance=$root.ord.ReactionProvenance.decode(e,e.uint32());break;case 10:i.reactionId=e.string();break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.identifiers&&e.hasOwnProperty("identifiers")){if(!Array.isArray(e.identifiers))return"identifiers: array expected";for(let t=0;t<e.identifiers.length;++t){let r=$root.ord.ReactionIdentifier.verify(e.identifiers[t]);if(r)return"identifiers."+r}}if(null!=e.inputs&&e.hasOwnProperty("inputs")){if(!$util.isObject(e.inputs))return"inputs: object expected";let t=Object.keys(e.inputs);for(let r=0;r<t.length;++r){let o=$root.ord.ReactionInput.verify(e.inputs[t[r]]);if(o)return"inputs."+o}}if(null!=e.setup&&e.hasOwnProperty("setup")){let t=$root.ord.ReactionSetup.verify(e.setup);if(t)return"setup."+t}if(null!=e.conditions&&e.hasOwnProperty("conditions")){let t=$root.ord.ReactionConditions.verify(e.conditions);if(t)return"conditions."+t}if(null!=e.notes&&e.hasOwnProperty("notes")){let t=$root.ord.ReactionNotes.verify(e.notes);if(t)return"notes."+t}if(null!=e.observations&&e.hasOwnProperty("observations")){if(!Array.isArray(e.observations))return"observations: array expected";for(let t=0;t<e.observations.length;++t){let r=$root.ord.ReactionObservation.verify(e.observations[t]);if(r)return"observations."+r}}if(null!=e.workups&&e.hasOwnProperty("workups")){if(!Array.isArray(e.workups))return"workups: array expected";for(let t=0;t<e.workups.length;++t){let r=$root.ord.ReactionWorkup.verify(e.workups[t]);if(r)return"workups."+r}}if(null!=e.outcomes&&e.hasOwnProperty("outcomes")){if(!Array.isArray(e.outcomes))return"outcomes: array expected";for(let t=0;t<e.outcomes.length;++t){let r=$root.ord.ReactionOutcome.verify(e.outcomes[t]);if(r)return"outcomes."+r}}if(null!=e.provenance&&e.hasOwnProperty("provenance")){let t=$root.ord.ReactionProvenance.verify(e.provenance);if(t)return"provenance."+t}return null!=e.reactionId&&e.hasOwnProperty("reactionId")&&!$util.isString(e.reactionId)?"reactionId: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Reaction)return e;let t=new $root.ord.Reaction;if(e.identifiers){if(!Array.isArray(e.identifiers))throw TypeError(".ord.Reaction.identifiers: array expected");t.identifiers=[];for(let r=0;r<e.identifiers.length;++r){if("object"!=typeof e.identifiers[r])throw TypeError(".ord.Reaction.identifiers: object expected");t.identifiers[r]=$root.ord.ReactionIdentifier.fromObject(e.identifiers[r])}}if(e.inputs){if("object"!=typeof e.inputs)throw TypeError(".ord.Reaction.inputs: object expected");t.inputs={};for(let r=Object.keys(e.inputs),o=0;o<r.length;++o){if("object"!=typeof e.inputs[r[o]])throw TypeError(".ord.Reaction.inputs: object expected");t.inputs[r[o]]=$root.ord.ReactionInput.fromObject(e.inputs[r[o]])}}if(null!=e.setup){if("object"!=typeof e.setup)throw TypeError(".ord.Reaction.setup: object expected");t.setup=$root.ord.ReactionSetup.fromObject(e.setup)}if(null!=e.conditions){if("object"!=typeof e.conditions)throw TypeError(".ord.Reaction.conditions: object expected");t.conditions=$root.ord.ReactionConditions.fromObject(e.conditions)}if(null!=e.notes){if("object"!=typeof e.notes)throw TypeError(".ord.Reaction.notes: object expected");t.notes=$root.ord.ReactionNotes.fromObject(e.notes)}if(e.observations){if(!Array.isArray(e.observations))throw TypeError(".ord.Reaction.observations: array expected");t.observations=[];for(let r=0;r<e.observations.length;++r){if("object"!=typeof e.observations[r])throw TypeError(".ord.Reaction.observations: object expected");t.observations[r]=$root.ord.ReactionObservation.fromObject(e.observations[r])}}if(e.workups){if(!Array.isArray(e.workups))throw TypeError(".ord.Reaction.workups: array expected");t.workups=[];for(let r=0;r<e.workups.length;++r){if("object"!=typeof e.workups[r])throw TypeError(".ord.Reaction.workups: object expected");t.workups[r]=$root.ord.ReactionWorkup.fromObject(e.workups[r])}}if(e.outcomes){if(!Array.isArray(e.outcomes))throw TypeError(".ord.Reaction.outcomes: array expected");t.outcomes=[];for(let r=0;r<e.outcomes.length;++r){if("object"!=typeof e.outcomes[r])throw TypeError(".ord.Reaction.outcomes: object expected");t.outcomes[r]=$root.ord.ReactionOutcome.fromObject(e.outcomes[r])}}if(null!=e.provenance){if("object"!=typeof e.provenance)throw TypeError(".ord.Reaction.provenance: object expected");t.provenance=$root.ord.ReactionProvenance.fromObject(e.provenance)}return null!=e.reactionId&&(t.reactionId=String(e.reactionId)),t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.identifiers=[],o.observations=[],o.workups=[],o.outcomes=[]),(t.objects||t.defaults)&&(o.inputs={}),t.defaults&&(o.setup=null,o.conditions=null,o.notes=null,o.provenance=null,o.reactionId=""),e.identifiers&&e.identifiers.length){o.identifiers=[];for(let r=0;r<e.identifiers.length;++r)o.identifiers[r]=$root.ord.ReactionIdentifier.toObject(e.identifiers[r],t)}if(e.inputs&&(r=Object.keys(e.inputs)).length){o.inputs={};for(let n=0;n<r.length;++n)o.inputs[r[n]]=$root.ord.ReactionInput.toObject(e.inputs[r[n]],t)}if(null!=e.setup&&e.hasOwnProperty("setup")&&(o.setup=$root.ord.ReactionSetup.toObject(e.setup,t)),null!=e.conditions&&e.hasOwnProperty("conditions")&&(o.conditions=$root.ord.ReactionConditions.toObject(e.conditions,t)),null!=e.notes&&e.hasOwnProperty("notes")&&(o.notes=$root.ord.ReactionNotes.toObject(e.notes,t)),e.observations&&e.observations.length){o.observations=[];for(let r=0;r<e.observations.length;++r)o.observations[r]=$root.ord.ReactionObservation.toObject(e.observations[r],t)}if(e.workups&&e.workups.length){o.workups=[];for(let r=0;r<e.workups.length;++r)o.workups[r]=$root.ord.ReactionWorkup.toObject(e.workups[r],t)}if(e.outcomes&&e.outcomes.length){o.outcomes=[];for(let r=0;r<e.outcomes.length;++r)o.outcomes[r]=$root.ord.ReactionOutcome.toObject(e.outcomes[r],t)}return null!=e.provenance&&e.hasOwnProperty("provenance")&&(o.provenance=$root.ord.ReactionProvenance.toObject(e.provenance,t)),null!=e.reactionId&&e.hasOwnProperty("reactionId")&&(o.reactionId=e.reactionId),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Reaction"},e}(),e.ReactionIdentifier=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.type=0,e.prototype.details="",e.prototype.value="",e.prototype.isMapped=null,Object.defineProperty(e.prototype,"_isMapped",{get:$util.oneOfGetter(t=["isMapped"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(26).string(e.value),null!=e.isMapped&&Object.hasOwnProperty.call(e,"isMapped")&&t.uint32(32).bool(e.isMapped),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionIdentifier;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.value=e.string();break;case 4:o.isMapped=e.bool();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 6:case 3:case 4:case 5:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null!=e.value&&e.hasOwnProperty("value")&&!$util.isString(e.value)?"value: string expected":null!=e.isMapped&&e.hasOwnProperty("isMapped")&&"boolean"!=typeof e.isMapped?"isMapped: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionIdentifier)return e;let t=new $root.ord.ReactionIdentifier;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"REACTION_SMILES":case 2:t.type=2;break;case"REACTION_CXSMILES":case 6:t.type=6;break;case"RDFILE":case 3:t.type=3;break;case"RINCHI":case 4:t.type=4;break;case"REACTION_TYPE":case 5:t.type=5}return null!=e.details&&(t.details=String(e.details)),null!=e.value&&(t.value=String(e.value)),null!=e.isMapped&&(t.isMapped=Boolean(e.isMapped)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.value=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionIdentifier.ReactionIdentifierType[e.type]?e.type:$root.ord.ReactionIdentifier.ReactionIdentifierType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.value&&e.hasOwnProperty("value")&&(r.value=e.value),null!=e.isMapped&&e.hasOwnProperty("isMapped")&&(r.isMapped=e.isMapped,t.oneofs&&(r._isMapped="isMapped")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionIdentifier"},e.ReactionIdentifierType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="REACTION_SMILES"]=2,t[e[6]="REACTION_CXSMILES"]=6,t[e[3]="RDFILE"]=3,t[e[4]="RINCHI"]=4,t[e[5]="REACTION_TYPE"]=5,t}(),e}(),e.ReactionInput=function(){function e(e){if(this.components=[],this.crudeComponents=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.components=$util.emptyArray,e.prototype.crudeComponents=$util.emptyArray,e.prototype.additionOrder=0,e.prototype.additionTime=null,e.prototype.additionSpeed=null,e.prototype.additionDuration=null,e.prototype.flowRate=null,e.prototype.additionDevice=null,e.prototype.additionTemperature=null,e.prototype.texture=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.components&&e.components.length)for(let r=0;r<e.components.length;++r)$root.ord.Compound.encode(e.components[r],t.uint32(10).fork()).ldelim();if(null!=e.crudeComponents&&e.crudeComponents.length)for(let r=0;r<e.crudeComponents.length;++r)$root.ord.CrudeComponent.encode(e.crudeComponents[r],t.uint32(18).fork()).ldelim();return null!=e.additionOrder&&Object.hasOwnProperty.call(e,"additionOrder")&&t.uint32(24).int32(e.additionOrder),null!=e.additionTime&&Object.hasOwnProperty.call(e,"additionTime")&&$root.ord.Time.encode(e.additionTime,t.uint32(34).fork()).ldelim(),null!=e.additionSpeed&&Object.hasOwnProperty.call(e,"additionSpeed")&&$root.ord.ReactionInput.AdditionSpeed.encode(e.additionSpeed,t.uint32(42).fork()).ldelim(),null!=e.additionDuration&&Object.hasOwnProperty.call(e,"additionDuration")&&$root.ord.Time.encode(e.additionDuration,t.uint32(50).fork()).ldelim(),null!=e.flowRate&&Object.hasOwnProperty.call(e,"flowRate")&&$root.ord.FlowRate.encode(e.flowRate,t.uint32(58).fork()).ldelim(),null!=e.additionDevice&&Object.hasOwnProperty.call(e,"additionDevice")&&$root.ord.ReactionInput.AdditionDevice.encode(e.additionDevice,t.uint32(66).fork()).ldelim(),null!=e.additionTemperature&&Object.hasOwnProperty.call(e,"additionTemperature")&&$root.ord.Temperature.encode(e.additionTemperature,t.uint32(74).fork()).ldelim(),null!=e.texture&&Object.hasOwnProperty.call(e,"texture")&&$root.ord.Texture.encode(e.texture,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionInput;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.components&&o.components.length||(o.components=[]),o.components.push($root.ord.Compound.decode(e,e.uint32()));break;case 2:o.crudeComponents&&o.crudeComponents.length||(o.crudeComponents=[]),o.crudeComponents.push($root.ord.CrudeComponent.decode(e,e.uint32()));break;case 3:o.additionOrder=e.int32();break;case 4:o.additionTime=$root.ord.Time.decode(e,e.uint32());break;case 5:o.additionSpeed=$root.ord.ReactionInput.AdditionSpeed.decode(e,e.uint32());break;case 6:o.additionDuration=$root.ord.Time.decode(e,e.uint32());break;case 7:o.flowRate=$root.ord.FlowRate.decode(e,e.uint32());break;case 8:o.additionDevice=$root.ord.ReactionInput.AdditionDevice.decode(e,e.uint32());break;case 9:o.additionTemperature=$root.ord.Temperature.decode(e,e.uint32());break;case 10:o.texture=$root.ord.Texture.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.components&&e.hasOwnProperty("components")){if(!Array.isArray(e.components))return"components: array expected";for(let t=0;t<e.components.length;++t){let r=$root.ord.Compound.verify(e.components[t]);if(r)return"components."+r}}if(null!=e.crudeComponents&&e.hasOwnProperty("crudeComponents")){if(!Array.isArray(e.crudeComponents))return"crudeComponents: array expected";for(let t=0;t<e.crudeComponents.length;++t){let r=$root.ord.CrudeComponent.verify(e.crudeComponents[t]);if(r)return"crudeComponents."+r}}if(null!=e.additionOrder&&e.hasOwnProperty("additionOrder")&&!$util.isInteger(e.additionOrder))return"additionOrder: integer expected";if(null!=e.additionTime&&e.hasOwnProperty("additionTime")){let t=$root.ord.Time.verify(e.additionTime);if(t)return"additionTime."+t}if(null!=e.additionSpeed&&e.hasOwnProperty("additionSpeed")){let t=$root.ord.ReactionInput.AdditionSpeed.verify(e.additionSpeed);if(t)return"additionSpeed."+t}if(null!=e.additionDuration&&e.hasOwnProperty("additionDuration")){let t=$root.ord.Time.verify(e.additionDuration);if(t)return"additionDuration."+t}if(null!=e.flowRate&&e.hasOwnProperty("flowRate")){let t=$root.ord.FlowRate.verify(e.flowRate);if(t)return"flowRate."+t}if(null!=e.additionDevice&&e.hasOwnProperty("additionDevice")){let t=$root.ord.ReactionInput.AdditionDevice.verify(e.additionDevice);if(t)return"additionDevice."+t}if(null!=e.additionTemperature&&e.hasOwnProperty("additionTemperature")){let t=$root.ord.Temperature.verify(e.additionTemperature);if(t)return"additionTemperature."+t}if(null!=e.texture&&e.hasOwnProperty("texture")){let t=$root.ord.Texture.verify(e.texture);if(t)return"texture."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionInput)return e;let t=new $root.ord.ReactionInput;if(e.components){if(!Array.isArray(e.components))throw TypeError(".ord.ReactionInput.components: array expected");t.components=[];for(let r=0;r<e.components.length;++r){if("object"!=typeof e.components[r])throw TypeError(".ord.ReactionInput.components: object expected");t.components[r]=$root.ord.Compound.fromObject(e.components[r])}}if(e.crudeComponents){if(!Array.isArray(e.crudeComponents))throw TypeError(".ord.ReactionInput.crudeComponents: array expected");t.crudeComponents=[];for(let r=0;r<e.crudeComponents.length;++r){if("object"!=typeof e.crudeComponents[r])throw TypeError(".ord.ReactionInput.crudeComponents: object expected");t.crudeComponents[r]=$root.ord.CrudeComponent.fromObject(e.crudeComponents[r])}}if(null!=e.additionOrder&&(t.additionOrder=0|e.additionOrder),null!=e.additionTime){if("object"!=typeof e.additionTime)throw TypeError(".ord.ReactionInput.additionTime: object expected");t.additionTime=$root.ord.Time.fromObject(e.additionTime)}if(null!=e.additionSpeed){if("object"!=typeof e.additionSpeed)throw TypeError(".ord.ReactionInput.additionSpeed: object expected");t.additionSpeed=$root.ord.ReactionInput.AdditionSpeed.fromObject(e.additionSpeed)}if(null!=e.additionDuration){if("object"!=typeof e.additionDuration)throw TypeError(".ord.ReactionInput.additionDuration: object expected");t.additionDuration=$root.ord.Time.fromObject(e.additionDuration)}if(null!=e.flowRate){if("object"!=typeof e.flowRate)throw TypeError(".ord.ReactionInput.flowRate: object expected");t.flowRate=$root.ord.FlowRate.fromObject(e.flowRate)}if(null!=e.additionDevice){if("object"!=typeof e.additionDevice)throw TypeError(".ord.ReactionInput.additionDevice: object expected");t.additionDevice=$root.ord.ReactionInput.AdditionDevice.fromObject(e.additionDevice)}if(null!=e.additionTemperature){if("object"!=typeof e.additionTemperature)throw TypeError(".ord.ReactionInput.additionTemperature: object expected");t.additionTemperature=$root.ord.Temperature.fromObject(e.additionTemperature)}if(null!=e.texture){if("object"!=typeof e.texture)throw TypeError(".ord.ReactionInput.texture: object expected");t.texture=$root.ord.Texture.fromObject(e.texture)}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.components=[],r.crudeComponents=[]),t.defaults&&(r.additionOrder=0,r.additionTime=null,r.additionSpeed=null,r.additionDuration=null,r.flowRate=null,r.additionDevice=null,r.additionTemperature=null,r.texture=null),e.components&&e.components.length){r.components=[];for(let o=0;o<e.components.length;++o)r.components[o]=$root.ord.Compound.toObject(e.components[o],t)}if(e.crudeComponents&&e.crudeComponents.length){r.crudeComponents=[];for(let o=0;o<e.crudeComponents.length;++o)r.crudeComponents[o]=$root.ord.CrudeComponent.toObject(e.crudeComponents[o],t)}return null!=e.additionOrder&&e.hasOwnProperty("additionOrder")&&(r.additionOrder=e.additionOrder),null!=e.additionTime&&e.hasOwnProperty("additionTime")&&(r.additionTime=$root.ord.Time.toObject(e.additionTime,t)),null!=e.additionSpeed&&e.hasOwnProperty("additionSpeed")&&(r.additionSpeed=$root.ord.ReactionInput.AdditionSpeed.toObject(e.additionSpeed,t)),null!=e.additionDuration&&e.hasOwnProperty("additionDuration")&&(r.additionDuration=$root.ord.Time.toObject(e.additionDuration,t)),null!=e.flowRate&&e.hasOwnProperty("flowRate")&&(r.flowRate=$root.ord.FlowRate.toObject(e.flowRate,t)),null!=e.additionDevice&&e.hasOwnProperty("additionDevice")&&(r.additionDevice=$root.ord.ReactionInput.AdditionDevice.toObject(e.additionDevice,t)),null!=e.additionTemperature&&e.hasOwnProperty("additionTemperature")&&(r.additionTemperature=$root.ord.Temperature.toObject(e.additionTemperature,t)),null!=e.texture&&e.hasOwnProperty("texture")&&(r.texture=$root.ord.Texture.toObject(e.texture,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionInput"},e.AdditionSpeed=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionInput.AdditionSpeed;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionInput.AdditionSpeed)return e;let t=new $root.ord.ReactionInput.AdditionSpeed;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"ALL_AT_ONCE":case 1:t.type=1;break;case"FAST":case 2:t.type=2;break;case"SLOW":case 3:t.type=3;break;case"DROPWISE":case 4:t.type=4;break;case"CONTINUOUS":case 5:t.type=5;break;case"PORTIONWISE":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionInput.AdditionSpeed.AdditionSpeedType[e.type]?e.type:$root.ord.ReactionInput.AdditionSpeed.AdditionSpeedType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionInput.AdditionSpeed"},e.AdditionSpeedType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="ALL_AT_ONCE"]=1,t[e[2]="FAST"]=2,t[e[3]="SLOW"]=3,t[e[4]="DROPWISE"]=4,t[e[5]="CONTINUOUS"]=5,t[e[6]="PORTIONWISE"]=6,t}(),e}(),e.AdditionDevice=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionInput.AdditionDevice;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionInput.AdditionDevice)return e;let t=new $root.ord.ReactionInput.AdditionDevice;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"NONE":case 2:t.type=2;break;case"SYRINGE":case 3:t.type=3;break;case"CANNULA":case 4:t.type=4;break;case"ADDITION_FUNNEL":case 5:t.type=5;break;case"PIPETTE":case 6:t.type=6;break;case"POSITIVE_DISPLACEMENT_PIPETTE":case 7:t.type=7;break;case"PISTON_PUMP":case 8:t.type=8;break;case"SYRINGE_PUMP":case 9:t.type=9;break;case"PERISTALTIC_PUMP":case 10:t.type=10}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionInput.AdditionDevice.AdditionDeviceType[e.type]?e.type:$root.ord.ReactionInput.AdditionDevice.AdditionDeviceType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionInput.AdditionDevice"},e.AdditionDeviceType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="NONE"]=2,t[e[3]="SYRINGE"]=3,t[e[4]="CANNULA"]=4,t[e[5]="ADDITION_FUNNEL"]=5,t[e[6]="PIPETTE"]=6,t[e[7]="POSITIVE_DISPLACEMENT_PIPETTE"]=7,t[e[8]="PISTON_PUMP"]=8,t[e[9]="SYRINGE_PUMP"]=9,t[e[10]="PERISTALTIC_PUMP"]=10,t}(),e}(),e}(),e.Amount=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.mass=null,e.prototype.moles=null,e.prototype.volume=null,e.prototype.unmeasured=null,e.prototype.volumeIncludesSolutes=null,Object.defineProperty(e.prototype,"kind",{get:$util.oneOfGetter(t=["mass","moles","volume","unmeasured"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_volumeIncludesSolutes",{get:$util.oneOfGetter(t=["volumeIncludesSolutes"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.mass&&Object.hasOwnProperty.call(e,"mass")&&$root.ord.Mass.encode(e.mass,t.uint32(10).fork()).ldelim(),null!=e.moles&&Object.hasOwnProperty.call(e,"moles")&&$root.ord.Moles.encode(e.moles,t.uint32(18).fork()).ldelim(),null!=e.volume&&Object.hasOwnProperty.call(e,"volume")&&$root.ord.Volume.encode(e.volume,t.uint32(26).fork()).ldelim(),null!=e.volumeIncludesSolutes&&Object.hasOwnProperty.call(e,"volumeIncludesSolutes")&&t.uint32(32).bool(e.volumeIncludesSolutes),null!=e.unmeasured&&Object.hasOwnProperty.call(e,"unmeasured")&&$root.ord.UnmeasuredAmount.encode(e.unmeasured,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Amount;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.mass=$root.ord.Mass.decode(e,e.uint32());break;case 2:o.moles=$root.ord.Moles.decode(e,e.uint32());break;case 3:o.volume=$root.ord.Volume.decode(e,e.uint32());break;case 5:o.unmeasured=$root.ord.UnmeasuredAmount.decode(e,e.uint32());break;case 4:o.volumeIncludesSolutes=e.bool();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.mass&&e.hasOwnProperty("mass")){t.kind=1;{let t=$root.ord.Mass.verify(e.mass);if(t)return"mass."+t}}if(null!=e.moles&&e.hasOwnProperty("moles")){if(1===t.kind)return"kind: multiple values";t.kind=1;{let t=$root.ord.Moles.verify(e.moles);if(t)return"moles."+t}}if(null!=e.volume&&e.hasOwnProperty("volume")){if(1===t.kind)return"kind: multiple values";t.kind=1;{let t=$root.ord.Volume.verify(e.volume);if(t)return"volume."+t}}if(null!=e.unmeasured&&e.hasOwnProperty("unmeasured")){if(1===t.kind)return"kind: multiple values";t.kind=1;{let t=$root.ord.UnmeasuredAmount.verify(e.unmeasured);if(t)return"unmeasured."+t}}return null!=e.volumeIncludesSolutes&&e.hasOwnProperty("volumeIncludesSolutes")&&(t._volumeIncludesSolutes=1,"boolean"!=typeof e.volumeIncludesSolutes)?"volumeIncludesSolutes: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Amount)return e;let t=new $root.ord.Amount;if(null!=e.mass){if("object"!=typeof e.mass)throw TypeError(".ord.Amount.mass: object expected");t.mass=$root.ord.Mass.fromObject(e.mass)}if(null!=e.moles){if("object"!=typeof e.moles)throw TypeError(".ord.Amount.moles: object expected");t.moles=$root.ord.Moles.fromObject(e.moles)}if(null!=e.volume){if("object"!=typeof e.volume)throw TypeError(".ord.Amount.volume: object expected");t.volume=$root.ord.Volume.fromObject(e.volume)}if(null!=e.unmeasured){if("object"!=typeof e.unmeasured)throw TypeError(".ord.Amount.unmeasured: object expected");t.unmeasured=$root.ord.UnmeasuredAmount.fromObject(e.unmeasured)}return null!=e.volumeIncludesSolutes&&(t.volumeIncludesSolutes=Boolean(e.volumeIncludesSolutes)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.mass&&e.hasOwnProperty("mass")&&(r.mass=$root.ord.Mass.toObject(e.mass,t),t.oneofs&&(r.kind="mass")),null!=e.moles&&e.hasOwnProperty("moles")&&(r.moles=$root.ord.Moles.toObject(e.moles,t),t.oneofs&&(r.kind="moles")),null!=e.volume&&e.hasOwnProperty("volume")&&(r.volume=$root.ord.Volume.toObject(e.volume,t),t.oneofs&&(r.kind="volume")),null!=e.volumeIncludesSolutes&&e.hasOwnProperty("volumeIncludesSolutes")&&(r.volumeIncludesSolutes=e.volumeIncludesSolutes,t.oneofs&&(r._volumeIncludesSolutes="volumeIncludesSolutes")),null!=e.unmeasured&&e.hasOwnProperty("unmeasured")&&(r.unmeasured=$root.ord.UnmeasuredAmount.toObject(e.unmeasured,t),t.oneofs&&(r.kind="unmeasured")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Amount"},e}(),e.UnmeasuredAmount=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.UnmeasuredAmount;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.UnmeasuredAmount)return e;let t=new $root.ord.UnmeasuredAmount;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"SATURATED":case 2:t.type=2;break;case"CATALYTIC":case 3:t.type=3;break;case"TITRATED":case 4:t.type=4}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.UnmeasuredAmount.UnmeasuredAmountType[e.type]?e.type:$root.ord.UnmeasuredAmount.UnmeasuredAmountType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.UnmeasuredAmount"},e.UnmeasuredAmountType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="SATURATED"]=2,t[e[3]="CATALYTIC"]=3,t[e[4]="TITRATED"]=4,t}(),e}(),e.Texture=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Texture;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Texture)return e;let t=new $root.ord.Texture;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"POWDER":case 2:t.type=2;break;case"CRYSTAL":case 3:t.type=3;break;case"OIL":case 4:t.type=4;break;case"AMORPHOUS_SOLID":case 5:t.type=5;break;case"FOAM":case 6:t.type=6;break;case"WAX":case 7:t.type=7;break;case"SEMI_SOLID":case 8:t.type=8;break;case"SOLID":case 9:t.type=9;break;case"LIQUID":case 10:t.type=10;break;case"GAS":case 11:t.type=11}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.Texture.TextureType[e.type]?e.type:$root.ord.Texture.TextureType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Texture"},e.TextureType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="POWDER"]=2,t[e[3]="CRYSTAL"]=3,t[e[4]="OIL"]=4,t[e[5]="AMORPHOUS_SOLID"]=5,t[e[6]="FOAM"]=6,t[e[7]="WAX"]=7,t[e[8]="SEMI_SOLID"]=8,t[e[9]="SOLID"]=9,t[e[10]="LIQUID"]=10,t[e[11]="GAS"]=11,t}(),e}(),e.CrudeComponent=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.reactionId="",e.prototype.includesWorkup=null,e.prototype.hasDerivedAmount=null,e.prototype.amount=null,e.prototype.texture=null,Object.defineProperty(e.prototype,"_includesWorkup",{get:$util.oneOfGetter(t=["includesWorkup"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_hasDerivedAmount",{get:$util.oneOfGetter(t=["hasDerivedAmount"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.reactionId&&Object.hasOwnProperty.call(e,"reactionId")&&t.uint32(10).string(e.reactionId),null!=e.includesWorkup&&Object.hasOwnProperty.call(e,"includesWorkup")&&t.uint32(16).bool(e.includesWorkup),null!=e.hasDerivedAmount&&Object.hasOwnProperty.call(e,"hasDerivedAmount")&&t.uint32(24).bool(e.hasDerivedAmount),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&$root.ord.Amount.encode(e.amount,t.uint32(34).fork()).ldelim(),null!=e.texture&&Object.hasOwnProperty.call(e,"texture")&&$root.ord.Texture.encode(e.texture,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.CrudeComponent;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.reactionId=e.string();break;case 2:o.includesWorkup=e.bool();break;case 3:o.hasDerivedAmount=e.bool();break;case 4:o.amount=$root.ord.Amount.decode(e,e.uint32());break;case 5:o.texture=$root.ord.Texture.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.reactionId&&e.hasOwnProperty("reactionId")&&!$util.isString(e.reactionId))return"reactionId: string expected";if(null!=e.includesWorkup&&e.hasOwnProperty("includesWorkup")&&(t._includesWorkup=1,"boolean"!=typeof e.includesWorkup))return"includesWorkup: boolean expected";if(null!=e.hasDerivedAmount&&e.hasOwnProperty("hasDerivedAmount")&&(t._hasDerivedAmount=1,"boolean"!=typeof e.hasDerivedAmount))return"hasDerivedAmount: boolean expected";if(null!=e.amount&&e.hasOwnProperty("amount")){let t=$root.ord.Amount.verify(e.amount);if(t)return"amount."+t}if(null!=e.texture&&e.hasOwnProperty("texture")){let t=$root.ord.Texture.verify(e.texture);if(t)return"texture."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.CrudeComponent)return e;let t=new $root.ord.CrudeComponent;if(null!=e.reactionId&&(t.reactionId=String(e.reactionId)),null!=e.includesWorkup&&(t.includesWorkup=Boolean(e.includesWorkup)),null!=e.hasDerivedAmount&&(t.hasDerivedAmount=Boolean(e.hasDerivedAmount)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".ord.CrudeComponent.amount: object expected");t.amount=$root.ord.Amount.fromObject(e.amount)}if(null!=e.texture){if("object"!=typeof e.texture)throw TypeError(".ord.CrudeComponent.texture: object expected");t.texture=$root.ord.Texture.fromObject(e.texture)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.reactionId="",r.amount=null,r.texture=null),null!=e.reactionId&&e.hasOwnProperty("reactionId")&&(r.reactionId=e.reactionId),null!=e.includesWorkup&&e.hasOwnProperty("includesWorkup")&&(r.includesWorkup=e.includesWorkup,t.oneofs&&(r._includesWorkup="includesWorkup")),null!=e.hasDerivedAmount&&e.hasOwnProperty("hasDerivedAmount")&&(r.hasDerivedAmount=e.hasDerivedAmount,t.oneofs&&(r._hasDerivedAmount="hasDerivedAmount")),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=$root.ord.Amount.toObject(e.amount,t)),null!=e.texture&&e.hasOwnProperty("texture")&&(r.texture=$root.ord.Texture.toObject(e.texture,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.CrudeComponent"},e}(),e.Compound=function(){function e(e){if(this.identifiers=[],this.preparations=[],this.features={},this.analyses={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.identifiers=$util.emptyArray,e.prototype.amount=null,e.prototype.reactionRole=0,e.prototype.isLimiting=null,e.prototype.preparations=$util.emptyArray,e.prototype.source=null,e.prototype.features=$util.emptyObject,e.prototype.analyses=$util.emptyObject,e.prototype.texture=null,Object.defineProperty(e.prototype,"_isLimiting",{get:$util.oneOfGetter(t=["isLimiting"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.identifiers&&e.identifiers.length)for(let r=0;r<e.identifiers.length;++r)$root.ord.CompoundIdentifier.encode(e.identifiers[r],t.uint32(10).fork()).ldelim();if(null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&$root.ord.Amount.encode(e.amount,t.uint32(18).fork()).ldelim(),null!=e.reactionRole&&Object.hasOwnProperty.call(e,"reactionRole")&&t.uint32(24).int32(e.reactionRole),null!=e.isLimiting&&Object.hasOwnProperty.call(e,"isLimiting")&&t.uint32(32).bool(e.isLimiting),null!=e.preparations&&e.preparations.length)for(let r=0;r<e.preparations.length;++r)$root.ord.CompoundPreparation.encode(e.preparations[r],t.uint32(42).fork()).ldelim();if(null!=e.source&&Object.hasOwnProperty.call(e,"source")&&$root.ord.Compound.Source.encode(e.source,t.uint32(50).fork()).ldelim(),null!=e.features&&Object.hasOwnProperty.call(e,"features"))for(let r=Object.keys(e.features),o=0;o<r.length;++o)t.uint32(58).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.features[r[o]],t.uint32(18).fork()).ldelim().ldelim();if(null!=e.analyses&&Object.hasOwnProperty.call(e,"analyses"))for(let r=Object.keys(e.analyses),o=0;o<r.length;++o)t.uint32(66).fork().uint32(10).string(r[o]),$root.ord.Analysis.encode(e.analyses[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.texture&&Object.hasOwnProperty.call(e,"texture")&&$root.ord.Texture.encode(e.texture,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.Compound;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.identifiers&&i.identifiers.length||(i.identifiers=[]),i.identifiers.push($root.ord.CompoundIdentifier.decode(e,e.uint32()));break;case 2:i.amount=$root.ord.Amount.decode(e,e.uint32());break;case 3:i.reactionRole=e.int32();break;case 4:i.isLimiting=e.bool();break;case 5:i.preparations&&i.preparations.length||(i.preparations=[]),i.preparations.push($root.ord.CompoundPreparation.decode(e,e.uint32()));break;case 6:i.source=$root.ord.Compound.Source.decode(e,e.uint32());break;case 7:{i.features===$util.emptyObject&&(i.features={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.features[r]=o;break}case 8:{i.analyses===$util.emptyObject&&(i.analyses={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Analysis.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.analyses[r]=o;break}case 9:i.texture=$root.ord.Texture.decode(e,e.uint32());break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.identifiers&&e.hasOwnProperty("identifiers")){if(!Array.isArray(e.identifiers))return"identifiers: array expected";for(let t=0;t<e.identifiers.length;++t){let r=$root.ord.CompoundIdentifier.verify(e.identifiers[t]);if(r)return"identifiers."+r}}if(null!=e.amount&&e.hasOwnProperty("amount")){let t=$root.ord.Amount.verify(e.amount);if(t)return"amount."+t}if(null!=e.reactionRole&&e.hasOwnProperty("reactionRole"))switch(e.reactionRole){default:return"reactionRole: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:}if(null!=e.isLimiting&&e.hasOwnProperty("isLimiting")&&"boolean"!=typeof e.isLimiting)return"isLimiting: boolean expected";if(null!=e.preparations&&e.hasOwnProperty("preparations")){if(!Array.isArray(e.preparations))return"preparations: array expected";for(let t=0;t<e.preparations.length;++t){let r=$root.ord.CompoundPreparation.verify(e.preparations[t]);if(r)return"preparations."+r}}if(null!=e.source&&e.hasOwnProperty("source")){let t=$root.ord.Compound.Source.verify(e.source);if(t)return"source."+t}if(null!=e.features&&e.hasOwnProperty("features")){if(!$util.isObject(e.features))return"features: object expected";let t=Object.keys(e.features);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.features[t[r]]);if(o)return"features."+o}}if(null!=e.analyses&&e.hasOwnProperty("analyses")){if(!$util.isObject(e.analyses))return"analyses: object expected";let t=Object.keys(e.analyses);for(let r=0;r<t.length;++r){let o=$root.ord.Analysis.verify(e.analyses[t[r]]);if(o)return"analyses."+o}}if(null!=e.texture&&e.hasOwnProperty("texture")){let t=$root.ord.Texture.verify(e.texture);if(t)return"texture."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.Compound)return e;let t=new $root.ord.Compound;if(e.identifiers){if(!Array.isArray(e.identifiers))throw TypeError(".ord.Compound.identifiers: array expected");t.identifiers=[];for(let r=0;r<e.identifiers.length;++r){if("object"!=typeof e.identifiers[r])throw TypeError(".ord.Compound.identifiers: object expected");t.identifiers[r]=$root.ord.CompoundIdentifier.fromObject(e.identifiers[r])}}if(null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".ord.Compound.amount: object expected");t.amount=$root.ord.Amount.fromObject(e.amount)}switch(e.reactionRole){default:if("number"==typeof e.reactionRole){t.reactionRole=e.reactionRole;break}break;case"UNSPECIFIED":case 0:t.reactionRole=0;break;case"REACTANT":case 1:t.reactionRole=1;break;case"REAGENT":case 2:t.reactionRole=2;break;case"SOLVENT":case 3:t.reactionRole=3;break;case"CATALYST":case 4:t.reactionRole=4;break;case"WORKUP":case 5:t.reactionRole=5;break;case"INTERNAL_STANDARD":case 6:t.reactionRole=6;break;case"AUTHENTIC_STANDARD":case 7:t.reactionRole=7;break;case"PRODUCT":case 8:t.reactionRole=8;break;case"BYPRODUCT":case 9:t.reactionRole=9;break;case"SIDE_PRODUCT":case 10:t.reactionRole=10}if(null!=e.isLimiting&&(t.isLimiting=Boolean(e.isLimiting)),e.preparations){if(!Array.isArray(e.preparations))throw TypeError(".ord.Compound.preparations: array expected");t.preparations=[];for(let r=0;r<e.preparations.length;++r){if("object"!=typeof e.preparations[r])throw TypeError(".ord.Compound.preparations: object expected");t.preparations[r]=$root.ord.CompoundPreparation.fromObject(e.preparations[r])}}if(null!=e.source){if("object"!=typeof e.source)throw TypeError(".ord.Compound.source: object expected");t.source=$root.ord.Compound.Source.fromObject(e.source)}if(e.features){if("object"!=typeof e.features)throw TypeError(".ord.Compound.features: object expected");t.features={};for(let r=Object.keys(e.features),o=0;o<r.length;++o){if("object"!=typeof e.features[r[o]])throw TypeError(".ord.Compound.features: object expected");t.features[r[o]]=$root.ord.Data.fromObject(e.features[r[o]])}}if(e.analyses){if("object"!=typeof e.analyses)throw TypeError(".ord.Compound.analyses: object expected");t.analyses={};for(let r=Object.keys(e.analyses),o=0;o<r.length;++o){if("object"!=typeof e.analyses[r[o]])throw TypeError(".ord.Compound.analyses: object expected");t.analyses[r[o]]=$root.ord.Analysis.fromObject(e.analyses[r[o]])}}if(null!=e.texture){if("object"!=typeof e.texture)throw TypeError(".ord.Compound.texture: object expected");t.texture=$root.ord.Texture.fromObject(e.texture)}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.identifiers=[],o.preparations=[]),(t.objects||t.defaults)&&(o.features={},o.analyses={}),t.defaults&&(o.amount=null,o.reactionRole=t.enums===String?"UNSPECIFIED":0,o.source=null,o.texture=null),e.identifiers&&e.identifiers.length){o.identifiers=[];for(let r=0;r<e.identifiers.length;++r)o.identifiers[r]=$root.ord.CompoundIdentifier.toObject(e.identifiers[r],t)}if(null!=e.amount&&e.hasOwnProperty("amount")&&(o.amount=$root.ord.Amount.toObject(e.amount,t)),null!=e.reactionRole&&e.hasOwnProperty("reactionRole")&&(o.reactionRole=t.enums===String?void 0===$root.ord.ReactionRole.ReactionRoleType[e.reactionRole]?e.reactionRole:$root.ord.ReactionRole.ReactionRoleType[e.reactionRole]:e.reactionRole),null!=e.isLimiting&&e.hasOwnProperty("isLimiting")&&(o.isLimiting=e.isLimiting,t.oneofs&&(o._isLimiting="isLimiting")),e.preparations&&e.preparations.length){o.preparations=[];for(let r=0;r<e.preparations.length;++r)o.preparations[r]=$root.ord.CompoundPreparation.toObject(e.preparations[r],t)}if(null!=e.source&&e.hasOwnProperty("source")&&(o.source=$root.ord.Compound.Source.toObject(e.source,t)),e.features&&(r=Object.keys(e.features)).length){o.features={};for(let n=0;n<r.length;++n)o.features[r[n]]=$root.ord.Data.toObject(e.features[r[n]],t)}if(e.analyses&&(r=Object.keys(e.analyses)).length){o.analyses={};for(let n=0;n<r.length;++n)o.analyses[r[n]]=$root.ord.Analysis.toObject(e.analyses[r[n]],t)}return null!=e.texture&&e.hasOwnProperty("texture")&&(o.texture=$root.ord.Texture.toObject(e.texture,t)),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Compound"},e.Source=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.vendor="",e.prototype.catalogId="",e.prototype.lot="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.vendor&&Object.hasOwnProperty.call(e,"vendor")&&t.uint32(10).string(e.vendor),null!=e.catalogId&&Object.hasOwnProperty.call(e,"catalogId")&&t.uint32(18).string(e.catalogId),null!=e.lot&&Object.hasOwnProperty.call(e,"lot")&&t.uint32(26).string(e.lot),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Compound.Source;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.vendor=e.string();break;case 2:o.catalogId=e.string();break;case 3:o.lot=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.vendor&&e.hasOwnProperty("vendor")&&!$util.isString(e.vendor)?"vendor: string expected":null!=e.catalogId&&e.hasOwnProperty("catalogId")&&!$util.isString(e.catalogId)?"catalogId: string expected":null!=e.lot&&e.hasOwnProperty("lot")&&!$util.isString(e.lot)?"lot: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Compound.Source)return e;let t=new $root.ord.Compound.Source;return null!=e.vendor&&(t.vendor=String(e.vendor)),null!=e.catalogId&&(t.catalogId=String(e.catalogId)),null!=e.lot&&(t.lot=String(e.lot)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.vendor="",r.catalogId="",r.lot=""),null!=e.vendor&&e.hasOwnProperty("vendor")&&(r.vendor=e.vendor),null!=e.catalogId&&e.hasOwnProperty("catalogId")&&(r.catalogId=e.catalogId),null!=e.lot&&e.hasOwnProperty("lot")&&(r.lot=e.lot),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Compound.Source"},e}(),e}(),e.ReactionRole=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionRole;for(;e.pos<r;){let t=e.uint32();e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof $root.ord.ReactionRole?e:new $root.ord.ReactionRole},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionRole"},e.ReactionRoleType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="REACTANT"]=1,t[e[2]="REAGENT"]=2,t[e[3]="SOLVENT"]=3,t[e[4]="CATALYST"]=4,t[e[5]="WORKUP"]=5,t[e[6]="INTERNAL_STANDARD"]=6,t[e[7]="AUTHENTIC_STANDARD"]=7,t[e[8]="PRODUCT"]=8,t[e[9]="BYPRODUCT"]=9,t[e[10]="SIDE_PRODUCT"]=10,t}(),e}(),e.CompoundPreparation=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.reactionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.reactionId&&Object.hasOwnProperty.call(e,"reactionId")&&t.uint32(26).string(e.reactionId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.CompoundPreparation;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.reactionId=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null!=e.reactionId&&e.hasOwnProperty("reactionId")&&!$util.isString(e.reactionId)?"reactionId: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.CompoundPreparation)return e;let t=new $root.ord.CompoundPreparation;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"NONE":case 2:t.type=2;break;case"REPURIFIED":case 3:t.type=3;break;case"SPARGED":case 4:t.type=4;break;case"DRIED":case 5:t.type=5;break;case"SYNTHESIZED":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),null!=e.reactionId&&(t.reactionId=String(e.reactionId)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.reactionId=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.CompoundPreparation.CompoundPreparationType[e.type]?e.type:$root.ord.CompoundPreparation.CompoundPreparationType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.reactionId&&e.hasOwnProperty("reactionId")&&(r.reactionId=e.reactionId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.CompoundPreparation"},e.CompoundPreparationType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="NONE"]=2,t[e[3]="REPURIFIED"]=3,t[e[4]="SPARGED"]=4,t[e[5]="DRIED"]=5,t[e[6]="SYNTHESIZED"]=6,t}(),e}(),e.CompoundIdentifier=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(26).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.CompoundIdentifier;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.value=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null!=e.value&&e.hasOwnProperty("value")&&!$util.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.CompoundIdentifier)return e;let t=new $root.ord.CompoundIdentifier;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"SMILES":case 2:t.type=2;break;case"INCHI":case 3:t.type=3;break;case"MOLBLOCK":case 4:t.type=4;break;case"IUPAC_NAME":case 5:t.type=5;break;case"NAME":case 6:t.type=6;break;case"CAS_NUMBER":case 7:t.type=7;break;case"PUBCHEM_CID":case 8:t.type=8;break;case"CHEMSPIDER_ID":case 9:t.type=9;break;case"CXSMILES":case 10:t.type=10;break;case"INCHI_KEY":case 11:t.type=11;break;case"XYZ":case 12:t.type=12;break;case"UNIPROT_ID":case 13:t.type=13;break;case"PDB_ID":case 14:t.type=14;break;case"AMINO_ACID_SEQUENCE":case 15:t.type=15;break;case"HELM":case 16:t.type=16;break;case"MDL":case 17:t.type=17}return null!=e.details&&(t.details=String(e.details)),null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.value=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.CompoundIdentifier.CompoundIdentifierType[e.type]?e.type:$root.ord.CompoundIdentifier.CompoundIdentifierType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.value&&e.hasOwnProperty("value")&&(r.value=e.value),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.CompoundIdentifier"},e.CompoundIdentifierType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="SMILES"]=2,t[e[3]="INCHI"]=3,t[e[4]="MOLBLOCK"]=4,t[e[5]="IUPAC_NAME"]=5,t[e[6]="NAME"]=6,t[e[7]="CAS_NUMBER"]=7,t[e[8]="PUBCHEM_CID"]=8,t[e[9]="CHEMSPIDER_ID"]=9,t[e[10]="CXSMILES"]=10,t[e[11]="INCHI_KEY"]=11,t[e[12]="XYZ"]=12,t[e[13]="UNIPROT_ID"]=13,t[e[14]="PDB_ID"]=14,t[e[15]="AMINO_ACID_SEQUENCE"]=15,t[e[16]="HELM"]=16,t[e[17]="MDL"]=17,t}(),e}(),e.Vessel=function(){function e(e){if(this.preparations=[],this.attachments=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.material=null,e.prototype.preparations=$util.emptyArray,e.prototype.attachments=$util.emptyArray,e.prototype.volume=null,e.prototype.vesselId="",e.prototype.position="",e.prototype.row="",e.prototype.col="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.material&&Object.hasOwnProperty.call(e,"material")&&$root.ord.VesselMaterial.encode(e.material,t.uint32(26).fork()).ldelim(),null!=e.preparations&&e.preparations.length)for(let r=0;r<e.preparations.length;++r)$root.ord.VesselPreparation.encode(e.preparations[r],t.uint32(34).fork()).ldelim();if(null!=e.attachments&&e.attachments.length)for(let r=0;r<e.attachments.length;++r)$root.ord.VesselAttachment.encode(e.attachments[r],t.uint32(42).fork()).ldelim();return null!=e.volume&&Object.hasOwnProperty.call(e,"volume")&&$root.ord.Volume.encode(e.volume,t.uint32(50).fork()).ldelim(),null!=e.vesselId&&Object.hasOwnProperty.call(e,"vesselId")&&t.uint32(58).string(e.vesselId),null!=e.position&&Object.hasOwnProperty.call(e,"position")&&t.uint32(66).string(e.position),null!=e.row&&Object.hasOwnProperty.call(e,"row")&&t.uint32(74).string(e.row),null!=e.col&&Object.hasOwnProperty.call(e,"col")&&t.uint32(82).string(e.col),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Vessel;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.material=$root.ord.VesselMaterial.decode(e,e.uint32());break;case 4:o.preparations&&o.preparations.length||(o.preparations=[]),o.preparations.push($root.ord.VesselPreparation.decode(e,e.uint32()));break;case 5:o.attachments&&o.attachments.length||(o.attachments=[]),o.attachments.push($root.ord.VesselAttachment.decode(e,e.uint32()));break;case 6:o.volume=$root.ord.Volume.decode(e,e.uint32());break;case 7:o.vesselId=e.string();break;case 8:o.position=e.string();break;case 9:o.row=e.string();break;case 10:o.col=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.material&&e.hasOwnProperty("material")){let t=$root.ord.VesselMaterial.verify(e.material);if(t)return"material."+t}if(null!=e.preparations&&e.hasOwnProperty("preparations")){if(!Array.isArray(e.preparations))return"preparations: array expected";for(let t=0;t<e.preparations.length;++t){let r=$root.ord.VesselPreparation.verify(e.preparations[t]);if(r)return"preparations."+r}}if(null!=e.attachments&&e.hasOwnProperty("attachments")){if(!Array.isArray(e.attachments))return"attachments: array expected";for(let t=0;t<e.attachments.length;++t){let r=$root.ord.VesselAttachment.verify(e.attachments[t]);if(r)return"attachments."+r}}if(null!=e.volume&&e.hasOwnProperty("volume")){let t=$root.ord.Volume.verify(e.volume);if(t)return"volume."+t}return null!=e.vesselId&&e.hasOwnProperty("vesselId")&&!$util.isString(e.vesselId)?"vesselId: string expected":null!=e.position&&e.hasOwnProperty("position")&&!$util.isString(e.position)?"position: string expected":null!=e.row&&e.hasOwnProperty("row")&&!$util.isString(e.row)?"row: string expected":null!=e.col&&e.hasOwnProperty("col")&&!$util.isString(e.col)?"col: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Vessel)return e;let t=new $root.ord.Vessel;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"ROUND_BOTTOM_FLASK":case 2:t.type=2;break;case"VIAL":case 3:t.type=3;break;case"WELL_PLATE":case 4:t.type=4;break;case"MICROWAVE_VIAL":case 5:t.type=5;break;case"TUBE":case 6:t.type=6;break;case"CONTINUOUS_STIRRED_TANK_REACTOR":case 7:t.type=7;break;case"PACKED_BED_REACTOR":case 8:t.type=8;break;case"NMR_TUBE":case 9:t.type=9;break;case"PRESSURE_FLASK":case 10:t.type=10;break;case"PRESSURE_REACTOR":case 11:t.type=11;break;case"ELECTROCHEMICAL_CELL":case 12:t.type=12}if(null!=e.details&&(t.details=String(e.details)),null!=e.material){if("object"!=typeof e.material)throw TypeError(".ord.Vessel.material: object expected");t.material=$root.ord.VesselMaterial.fromObject(e.material)}if(e.preparations){if(!Array.isArray(e.preparations))throw TypeError(".ord.Vessel.preparations: array expected");t.preparations=[];for(let r=0;r<e.preparations.length;++r){if("object"!=typeof e.preparations[r])throw TypeError(".ord.Vessel.preparations: object expected");t.preparations[r]=$root.ord.VesselPreparation.fromObject(e.preparations[r])}}if(e.attachments){if(!Array.isArray(e.attachments))throw TypeError(".ord.Vessel.attachments: array expected");t.attachments=[];for(let r=0;r<e.attachments.length;++r){if("object"!=typeof e.attachments[r])throw TypeError(".ord.Vessel.attachments: object expected");t.attachments[r]=$root.ord.VesselAttachment.fromObject(e.attachments[r])}}if(null!=e.volume){if("object"!=typeof e.volume)throw TypeError(".ord.Vessel.volume: object expected");t.volume=$root.ord.Volume.fromObject(e.volume)}return null!=e.vesselId&&(t.vesselId=String(e.vesselId)),null!=e.position&&(t.position=String(e.position)),null!=e.row&&(t.row=String(e.row)),null!=e.col&&(t.col=String(e.col)),t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.preparations=[],r.attachments=[]),t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.material=null,r.volume=null,r.vesselId="",r.position="",r.row="",r.col=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.Vessel.VesselType[e.type]?e.type:$root.ord.Vessel.VesselType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.material&&e.hasOwnProperty("material")&&(r.material=$root.ord.VesselMaterial.toObject(e.material,t)),e.preparations&&e.preparations.length){r.preparations=[];for(let o=0;o<e.preparations.length;++o)r.preparations[o]=$root.ord.VesselPreparation.toObject(e.preparations[o],t)}if(e.attachments&&e.attachments.length){r.attachments=[];for(let o=0;o<e.attachments.length;++o)r.attachments[o]=$root.ord.VesselAttachment.toObject(e.attachments[o],t)}return null!=e.volume&&e.hasOwnProperty("volume")&&(r.volume=$root.ord.Volume.toObject(e.volume,t)),null!=e.vesselId&&e.hasOwnProperty("vesselId")&&(r.vesselId=e.vesselId),null!=e.position&&e.hasOwnProperty("position")&&(r.position=e.position),null!=e.row&&e.hasOwnProperty("row")&&(r.row=e.row),null!=e.col&&e.hasOwnProperty("col")&&(r.col=e.col),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Vessel"},e.VesselType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="ROUND_BOTTOM_FLASK"]=2,t[e[3]="VIAL"]=3,t[e[4]="WELL_PLATE"]=4,t[e[5]="MICROWAVE_VIAL"]=5,t[e[6]="TUBE"]=6,t[e[7]="CONTINUOUS_STIRRED_TANK_REACTOR"]=7,t[e[8]="PACKED_BED_REACTOR"]=8,t[e[9]="NMR_TUBE"]=9,t[e[10]="PRESSURE_FLASK"]=10,t[e[11]="PRESSURE_REACTOR"]=11,t[e[12]="ELECTROCHEMICAL_CELL"]=12,t}(),e}(),e.VesselMaterial=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.VesselMaterial;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.VesselMaterial)return e;let t=new $root.ord.VesselMaterial;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"GLASS":case 2:t.type=2;break;case"POLYPROPYLENE":case 3:t.type=3;break;case"PLASTIC":case 4:t.type=4;break;case"METAL":case 5:t.type=5;break;case"QUARTZ":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.VesselMaterial.VesselMaterialType[e.type]?e.type:$root.ord.VesselMaterial.VesselMaterialType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.VesselMaterial"},e.VesselMaterialType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="GLASS"]=2,t[e[3]="POLYPROPYLENE"]=3,t[e[4]="PLASTIC"]=4,t[e[5]="METAL"]=5,t[e[6]="QUARTZ"]=6,t}(),e}(),e.VesselAttachment=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.VesselAttachment;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.VesselAttachment)return e;let t=new $root.ord.VesselAttachment;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"NONE":case 1:t.type=1;break;case"CUSTOM":case 2:t.type=2;break;case"SEPTUM":case 3:t.type=3;break;case"CAP":case 4:t.type=4;break;case"MAT":case 5:t.type=5;break;case"REFLUX_CONDENSER":case 6:t.type=6;break;case"VENT_NEEDLE":case 7:t.type=7;break;case"DEAN_STARK":case 8:t.type=8;break;case"VACUUM_TUBE":case 9:t.type=9;break;case"ADDITION_FUNNEL":case 10:t.type=10;break;case"DRYING_TUBE":case 11:t.type=11;break;case"ALUMINUM_FOIL":case 12:t.type=12;break;case"THERMOCOUPLE":case 13:t.type=13;break;case"BALLOON":case 14:t.type=14;break;case"GAS_ADAPTER":case 15:t.type=15;break;case"PRESSURE_REGULATOR":case 16:t.type=16;break;case"RELEASE_VALVE":case 17:t.type=17}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.VesselAttachment.VesselAttachmentType[e.type]?e.type:$root.ord.VesselAttachment.VesselAttachmentType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.VesselAttachment"},e.VesselAttachmentType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="NONE"]=1,t[e[2]="CUSTOM"]=2,t[e[3]="SEPTUM"]=3,t[e[4]="CAP"]=4,t[e[5]="MAT"]=5,t[e[6]="REFLUX_CONDENSER"]=6,t[e[7]="VENT_NEEDLE"]=7,t[e[8]="DEAN_STARK"]=8,t[e[9]="VACUUM_TUBE"]=9,t[e[10]="ADDITION_FUNNEL"]=10,t[e[11]="DRYING_TUBE"]=11,t[e[12]="ALUMINUM_FOIL"]=12,t[e[13]="THERMOCOUPLE"]=13,t[e[14]="BALLOON"]=14,t[e[15]="GAS_ADAPTER"]=15,t[e[16]="PRESSURE_REGULATOR"]=16,t[e[17]="RELEASE_VALVE"]=17,t}(),e}(),e.VesselPreparation=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.VesselPreparation;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.VesselPreparation)return e;let t=new $root.ord.VesselPreparation;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"NONE":case 2:t.type=2;break;case"OVEN_DRIED":case 3:t.type=3;break;case"FLAME_DRIED":case 4:t.type=4;break;case"EVACUATED_BACKFILLED":case 5:t.type=5;break;case"PURGED":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.VesselPreparation.VesselPreparationType[e.type]?e.type:$root.ord.VesselPreparation.VesselPreparationType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.VesselPreparation"},e.VesselPreparationType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="NONE"]=2,t[e[3]="OVEN_DRIED"]=3,t[e[4]="FLAME_DRIED"]=4,t[e[5]="EVACUATED_BACKFILLED"]=5,t[e[6]="PURGED"]=6,t}(),e}(),e.ReactionSetup=function(){function e(e){if(this.automationCode={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.vessel=null,e.prototype.isAutomated=null,e.prototype.automationPlatform="",e.prototype.automationCode=$util.emptyObject,e.prototype.environment=null,Object.defineProperty(e.prototype,"_isAutomated",{get:$util.oneOfGetter(t=["isAutomated"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.vessel&&Object.hasOwnProperty.call(e,"vessel")&&$root.ord.Vessel.encode(e.vessel,t.uint32(10).fork()).ldelim(),null!=e.isAutomated&&Object.hasOwnProperty.call(e,"isAutomated")&&t.uint32(16).bool(e.isAutomated),null!=e.automationPlatform&&Object.hasOwnProperty.call(e,"automationPlatform")&&t.uint32(26).string(e.automationPlatform),null!=e.automationCode&&Object.hasOwnProperty.call(e,"automationCode"))for(let r=Object.keys(e.automationCode),o=0;o<r.length;++o)t.uint32(34).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.automationCode[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.environment&&Object.hasOwnProperty.call(e,"environment")&&$root.ord.ReactionSetup.ReactionEnvironment.encode(e.environment,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.ReactionSetup;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.vessel=$root.ord.Vessel.decode(e,e.uint32());break;case 2:i.isAutomated=e.bool();break;case 3:i.automationPlatform=e.string();break;case 4:{i.automationCode===$util.emptyObject&&(i.automationCode={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.automationCode[r]=o;break}case 5:i.environment=$root.ord.ReactionSetup.ReactionEnvironment.decode(e,e.uint32());break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.vessel&&e.hasOwnProperty("vessel")){let t=$root.ord.Vessel.verify(e.vessel);if(t)return"vessel."+t}if(null!=e.isAutomated&&e.hasOwnProperty("isAutomated")&&"boolean"!=typeof e.isAutomated)return"isAutomated: boolean expected";if(null!=e.automationPlatform&&e.hasOwnProperty("automationPlatform")&&!$util.isString(e.automationPlatform))return"automationPlatform: string expected";if(null!=e.automationCode&&e.hasOwnProperty("automationCode")){if(!$util.isObject(e.automationCode))return"automationCode: object expected";let t=Object.keys(e.automationCode);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.automationCode[t[r]]);if(o)return"automationCode."+o}}if(null!=e.environment&&e.hasOwnProperty("environment")){let t=$root.ord.ReactionSetup.ReactionEnvironment.verify(e.environment);if(t)return"environment."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionSetup)return e;let t=new $root.ord.ReactionSetup;if(null!=e.vessel){if("object"!=typeof e.vessel)throw TypeError(".ord.ReactionSetup.vessel: object expected");t.vessel=$root.ord.Vessel.fromObject(e.vessel)}if(null!=e.isAutomated&&(t.isAutomated=Boolean(e.isAutomated)),null!=e.automationPlatform&&(t.automationPlatform=String(e.automationPlatform)),e.automationCode){if("object"!=typeof e.automationCode)throw TypeError(".ord.ReactionSetup.automationCode: object expected");t.automationCode={};for(let r=Object.keys(e.automationCode),o=0;o<r.length;++o){if("object"!=typeof e.automationCode[r[o]])throw TypeError(".ord.ReactionSetup.automationCode: object expected");t.automationCode[r[o]]=$root.ord.Data.fromObject(e.automationCode[r[o]])}}if(null!=e.environment){if("object"!=typeof e.environment)throw TypeError(".ord.ReactionSetup.environment: object expected");t.environment=$root.ord.ReactionSetup.ReactionEnvironment.fromObject(e.environment)}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.objects||t.defaults)&&(o.automationCode={}),t.defaults&&(o.vessel=null,o.automationPlatform="",o.environment=null),null!=e.vessel&&e.hasOwnProperty("vessel")&&(o.vessel=$root.ord.Vessel.toObject(e.vessel,t)),null!=e.isAutomated&&e.hasOwnProperty("isAutomated")&&(o.isAutomated=e.isAutomated,t.oneofs&&(o._isAutomated="isAutomated")),null!=e.automationPlatform&&e.hasOwnProperty("automationPlatform")&&(o.automationPlatform=e.automationPlatform),e.automationCode&&(r=Object.keys(e.automationCode)).length){o.automationCode={};for(let n=0;n<r.length;++n)o.automationCode[r[n]]=$root.ord.Data.toObject(e.automationCode[r[n]],t)}return null!=e.environment&&e.hasOwnProperty("environment")&&(o.environment=$root.ord.ReactionSetup.ReactionEnvironment.toObject(e.environment,t)),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionSetup"},e.ReactionEnvironment=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionSetup.ReactionEnvironment;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionSetup.ReactionEnvironment)return e;let t=new $root.ord.ReactionSetup.ReactionEnvironment;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"FUME_HOOD":case 2:t.type=2;break;case"BENCH_TOP":case 3:t.type=3;break;case"GLOVE_BOX":case 4:t.type=4;break;case"GLOVE_BAG":case 5:t.type=5}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionSetup.ReactionEnvironment.ReactionEnvironmentType[e.type]?e.type:$root.ord.ReactionSetup.ReactionEnvironment.ReactionEnvironmentType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionSetup.ReactionEnvironment"},e.ReactionEnvironmentType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="FUME_HOOD"]=2,t[e[3]="BENCH_TOP"]=3,t[e[4]="GLOVE_BOX"]=4,t[e[5]="GLOVE_BAG"]=5,t}(),e}(),e}(),e.ReactionConditions=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.temperature=null,e.prototype.pressure=null,e.prototype.stirring=null,e.prototype.illumination=null,e.prototype.electrochemistry=null,e.prototype.flow=null,e.prototype.reflux=null,e.prototype.ph=null,e.prototype.conditionsAreDynamic=null,e.prototype.details="",Object.defineProperty(e.prototype,"_reflux",{get:$util.oneOfGetter(t=["reflux"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_ph",{get:$util.oneOfGetter(t=["ph"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_conditionsAreDynamic",{get:$util.oneOfGetter(t=["conditionsAreDynamic"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.temperature&&Object.hasOwnProperty.call(e,"temperature")&&$root.ord.TemperatureConditions.encode(e.temperature,t.uint32(10).fork()).ldelim(),null!=e.pressure&&Object.hasOwnProperty.call(e,"pressure")&&$root.ord.PressureConditions.encode(e.pressure,t.uint32(18).fork()).ldelim(),null!=e.stirring&&Object.hasOwnProperty.call(e,"stirring")&&$root.ord.StirringConditions.encode(e.stirring,t.uint32(26).fork()).ldelim(),null!=e.illumination&&Object.hasOwnProperty.call(e,"illumination")&&$root.ord.IlluminationConditions.encode(e.illumination,t.uint32(34).fork()).ldelim(),null!=e.electrochemistry&&Object.hasOwnProperty.call(e,"electrochemistry")&&$root.ord.ElectrochemistryConditions.encode(e.electrochemistry,t.uint32(42).fork()).ldelim(),null!=e.flow&&Object.hasOwnProperty.call(e,"flow")&&$root.ord.FlowConditions.encode(e.flow,t.uint32(50).fork()).ldelim(),null!=e.reflux&&Object.hasOwnProperty.call(e,"reflux")&&t.uint32(56).bool(e.reflux),null!=e.ph&&Object.hasOwnProperty.call(e,"ph")&&t.uint32(69).float(e.ph),null!=e.conditionsAreDynamic&&Object.hasOwnProperty.call(e,"conditionsAreDynamic")&&t.uint32(72).bool(e.conditionsAreDynamic),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(82).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.temperature=$root.ord.TemperatureConditions.decode(e,e.uint32());break;case 2:o.pressure=$root.ord.PressureConditions.decode(e,e.uint32());break;case 3:o.stirring=$root.ord.StirringConditions.decode(e,e.uint32());break;case 4:o.illumination=$root.ord.IlluminationConditions.decode(e,e.uint32());break;case 5:o.electrochemistry=$root.ord.ElectrochemistryConditions.decode(e,e.uint32());break;case 6:o.flow=$root.ord.FlowConditions.decode(e,e.uint32());break;case 7:o.reflux=e.bool();break;case 8:o.ph=e.float();break;case 9:o.conditionsAreDynamic=e.bool();break;case 10:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.temperature&&e.hasOwnProperty("temperature")){let t=$root.ord.TemperatureConditions.verify(e.temperature);if(t)return"temperature."+t}if(null!=e.pressure&&e.hasOwnProperty("pressure")){let t=$root.ord.PressureConditions.verify(e.pressure);if(t)return"pressure."+t}if(null!=e.stirring&&e.hasOwnProperty("stirring")){let t=$root.ord.StirringConditions.verify(e.stirring);if(t)return"stirring."+t}if(null!=e.illumination&&e.hasOwnProperty("illumination")){let t=$root.ord.IlluminationConditions.verify(e.illumination);if(t)return"illumination."+t}if(null!=e.electrochemistry&&e.hasOwnProperty("electrochemistry")){let t=$root.ord.ElectrochemistryConditions.verify(e.electrochemistry);if(t)return"electrochemistry."+t}if(null!=e.flow&&e.hasOwnProperty("flow")){let t=$root.ord.FlowConditions.verify(e.flow);if(t)return"flow."+t}return null!=e.reflux&&e.hasOwnProperty("reflux")&&(t._reflux=1,"boolean"!=typeof e.reflux)?"reflux: boolean expected":null!=e.ph&&e.hasOwnProperty("ph")&&(t._ph=1,"number"!=typeof e.ph)?"ph: number expected":null!=e.conditionsAreDynamic&&e.hasOwnProperty("conditionsAreDynamic")&&(t._conditionsAreDynamic=1,"boolean"!=typeof e.conditionsAreDynamic)?"conditionsAreDynamic: boolean expected":null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionConditions)return e;let t=new $root.ord.ReactionConditions;if(null!=e.temperature){if("object"!=typeof e.temperature)throw TypeError(".ord.ReactionConditions.temperature: object expected");t.temperature=$root.ord.TemperatureConditions.fromObject(e.temperature)}if(null!=e.pressure){if("object"!=typeof e.pressure)throw TypeError(".ord.ReactionConditions.pressure: object expected");t.pressure=$root.ord.PressureConditions.fromObject(e.pressure)}if(null!=e.stirring){if("object"!=typeof e.stirring)throw TypeError(".ord.ReactionConditions.stirring: object expected");t.stirring=$root.ord.StirringConditions.fromObject(e.stirring)}if(null!=e.illumination){if("object"!=typeof e.illumination)throw TypeError(".ord.ReactionConditions.illumination: object expected");t.illumination=$root.ord.IlluminationConditions.fromObject(e.illumination)}if(null!=e.electrochemistry){if("object"!=typeof e.electrochemistry)throw TypeError(".ord.ReactionConditions.electrochemistry: object expected");t.electrochemistry=$root.ord.ElectrochemistryConditions.fromObject(e.electrochemistry)}if(null!=e.flow){if("object"!=typeof e.flow)throw TypeError(".ord.ReactionConditions.flow: object expected");t.flow=$root.ord.FlowConditions.fromObject(e.flow)}return null!=e.reflux&&(t.reflux=Boolean(e.reflux)),null!=e.ph&&(t.ph=Number(e.ph)),null!=e.conditionsAreDynamic&&(t.conditionsAreDynamic=Boolean(e.conditionsAreDynamic)),null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.temperature=null,r.pressure=null,r.stirring=null,r.illumination=null,r.electrochemistry=null,r.flow=null,r.details=""),null!=e.temperature&&e.hasOwnProperty("temperature")&&(r.temperature=$root.ord.TemperatureConditions.toObject(e.temperature,t)),null!=e.pressure&&e.hasOwnProperty("pressure")&&(r.pressure=$root.ord.PressureConditions.toObject(e.pressure,t)),null!=e.stirring&&e.hasOwnProperty("stirring")&&(r.stirring=$root.ord.StirringConditions.toObject(e.stirring,t)),null!=e.illumination&&e.hasOwnProperty("illumination")&&(r.illumination=$root.ord.IlluminationConditions.toObject(e.illumination,t)),null!=e.electrochemistry&&e.hasOwnProperty("electrochemistry")&&(r.electrochemistry=$root.ord.ElectrochemistryConditions.toObject(e.electrochemistry,t)),null!=e.flow&&e.hasOwnProperty("flow")&&(r.flow=$root.ord.FlowConditions.toObject(e.flow,t)),null!=e.reflux&&e.hasOwnProperty("reflux")&&(r.reflux=e.reflux,t.oneofs&&(r._reflux="reflux")),null!=e.ph&&e.hasOwnProperty("ph")&&(r.ph=t.json&&!isFinite(e.ph)?String(e.ph):e.ph,t.oneofs&&(r._ph="ph")),null!=e.conditionsAreDynamic&&e.hasOwnProperty("conditionsAreDynamic")&&(r.conditionsAreDynamic=e.conditionsAreDynamic,t.oneofs&&(r._conditionsAreDynamic="conditionsAreDynamic")),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionConditions"},e}(),e.TemperatureConditions=function(){function e(e){if(this.measurements=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.control=null,e.prototype.setpoint=null,e.prototype.measurements=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.control&&Object.hasOwnProperty.call(e,"control")&&$root.ord.TemperatureConditions.TemperatureControl.encode(e.control,t.uint32(10).fork()).ldelim(),null!=e.setpoint&&Object.hasOwnProperty.call(e,"setpoint")&&$root.ord.Temperature.encode(e.setpoint,t.uint32(18).fork()).ldelim(),null!=e.measurements&&e.measurements.length)for(let r=0;r<e.measurements.length;++r)$root.ord.TemperatureConditions.TemperatureMeasurement.encode(e.measurements[r],t.uint32(26).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.TemperatureConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.control=$root.ord.TemperatureConditions.TemperatureControl.decode(e,e.uint32());break;case 2:o.setpoint=$root.ord.Temperature.decode(e,e.uint32());break;case 3:o.measurements&&o.measurements.length||(o.measurements=[]),o.measurements.push($root.ord.TemperatureConditions.TemperatureMeasurement.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.control&&e.hasOwnProperty("control")){let t=$root.ord.TemperatureConditions.TemperatureControl.verify(e.control);if(t)return"control."+t}if(null!=e.setpoint&&e.hasOwnProperty("setpoint")){let t=$root.ord.Temperature.verify(e.setpoint);if(t)return"setpoint."+t}if(null!=e.measurements&&e.hasOwnProperty("measurements")){if(!Array.isArray(e.measurements))return"measurements: array expected";for(let t=0;t<e.measurements.length;++t){let r=$root.ord.TemperatureConditions.TemperatureMeasurement.verify(e.measurements[t]);if(r)return"measurements."+r}}return null},e.fromObject=function(e){if(e instanceof $root.ord.TemperatureConditions)return e;let t=new $root.ord.TemperatureConditions;if(null!=e.control){if("object"!=typeof e.control)throw TypeError(".ord.TemperatureConditions.control: object expected");t.control=$root.ord.TemperatureConditions.TemperatureControl.fromObject(e.control)}if(null!=e.setpoint){if("object"!=typeof e.setpoint)throw TypeError(".ord.TemperatureConditions.setpoint: object expected");t.setpoint=$root.ord.Temperature.fromObject(e.setpoint)}if(e.measurements){if(!Array.isArray(e.measurements))throw TypeError(".ord.TemperatureConditions.measurements: array expected");t.measurements=[];for(let r=0;r<e.measurements.length;++r){if("object"!=typeof e.measurements[r])throw TypeError(".ord.TemperatureConditions.measurements: object expected");t.measurements[r]=$root.ord.TemperatureConditions.TemperatureMeasurement.fromObject(e.measurements[r])}}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.measurements=[]),t.defaults&&(r.control=null,r.setpoint=null),null!=e.control&&e.hasOwnProperty("control")&&(r.control=$root.ord.TemperatureConditions.TemperatureControl.toObject(e.control,t)),null!=e.setpoint&&e.hasOwnProperty("setpoint")&&(r.setpoint=$root.ord.Temperature.toObject(e.setpoint,t)),e.measurements&&e.measurements.length){r.measurements=[];for(let o=0;o<e.measurements.length;++o)r.measurements[o]=$root.ord.TemperatureConditions.TemperatureMeasurement.toObject(e.measurements[o],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.TemperatureConditions"},e.TemperatureControl=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.TemperatureConditions.TemperatureControl;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.TemperatureConditions.TemperatureControl)return e;let t=new $root.ord.TemperatureConditions.TemperatureControl;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"AMBIENT":case 2:t.type=2;break;case"OIL_BATH":case 3:t.type=3;break;case"WATER_BATH":case 4:t.type=4;break;case"SAND_BATH":case 5:t.type=5;break;case"ICE_BATH":case 6:t.type=6;break;case"DRY_ALUMINUM_PLATE":case 7:t.type=7;break;case"MICROWAVE":case 8:t.type=8;break;case"DRY_ICE_BATH":case 9:t.type=9;break;case"AIR_FAN":case 10:t.type=10;break;case"LIQUID_NITROGEN":case 11:t.type=11}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.TemperatureConditions.TemperatureControl.TemperatureControlType[e.type]?e.type:$root.ord.TemperatureConditions.TemperatureControl.TemperatureControlType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.TemperatureConditions.TemperatureControl"},e.TemperatureControlType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="AMBIENT"]=2,t[e[3]="OIL_BATH"]=3,t[e[4]="WATER_BATH"]=4,t[e[5]="SAND_BATH"]=5,t[e[6]="ICE_BATH"]=6,t[e[7]="DRY_ALUMINUM_PLATE"]=7,t[e[8]="MICROWAVE"]=8,t[e[9]="DRY_ICE_BATH"]=9,t[e[10]="AIR_FAN"]=10,t[e[11]="LIQUID_NITROGEN"]=11,t}(),e}(),e.TemperatureMeasurement=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.time=null,e.prototype.temperature=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.Time.encode(e.time,t.uint32(26).fork()).ldelim(),null!=e.temperature&&Object.hasOwnProperty.call(e,"temperature")&&$root.ord.Temperature.encode(e.temperature,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.TemperatureConditions.TemperatureMeasurement;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.time=$root.ord.Time.decode(e,e.uint32());break;case 4:o.temperature=$root.ord.Temperature.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.Time.verify(e.time);if(t)return"time."+t}if(null!=e.temperature&&e.hasOwnProperty("temperature")){let t=$root.ord.Temperature.verify(e.temperature);if(t)return"temperature."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.TemperatureConditions.TemperatureMeasurement)return e;let t=new $root.ord.TemperatureConditions.TemperatureMeasurement;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"THERMOCOUPLE_INTERNAL":case 2:t.type=2;break;case"THERMOCOUPLE_EXTERNAL":case 3:t.type=3;break;case"INFRARED":case 4:t.type=4}if(null!=e.details&&(t.details=String(e.details)),null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.TemperatureConditions.TemperatureMeasurement.time: object expected");t.time=$root.ord.Time.fromObject(e.time)}if(null!=e.temperature){if("object"!=typeof e.temperature)throw TypeError(".ord.TemperatureConditions.TemperatureMeasurement.temperature: object expected");t.temperature=$root.ord.Temperature.fromObject(e.temperature)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.time=null,r.temperature=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.TemperatureConditions.TemperatureMeasurement.TemperatureMeasurementType[e.type]?e.type:$root.ord.TemperatureConditions.TemperatureMeasurement.TemperatureMeasurementType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.Time.toObject(e.time,t)),null!=e.temperature&&e.hasOwnProperty("temperature")&&(r.temperature=$root.ord.Temperature.toObject(e.temperature,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.TemperatureConditions.TemperatureMeasurement"},e.TemperatureMeasurementType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="THERMOCOUPLE_INTERNAL"]=2,t[e[3]="THERMOCOUPLE_EXTERNAL"]=3,t[e[4]="INFRARED"]=4,t}(),e}(),e}(),e.PressureConditions=function(){function e(e){if(this.measurements=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.control=null,e.prototype.setpoint=null,e.prototype.atmosphere=null,e.prototype.measurements=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.control&&Object.hasOwnProperty.call(e,"control")&&$root.ord.PressureConditions.PressureControl.encode(e.control,t.uint32(10).fork()).ldelim(),null!=e.setpoint&&Object.hasOwnProperty.call(e,"setpoint")&&$root.ord.Pressure.encode(e.setpoint,t.uint32(18).fork()).ldelim(),null!=e.atmosphere&&Object.hasOwnProperty.call(e,"atmosphere")&&$root.ord.PressureConditions.Atmosphere.encode(e.atmosphere,t.uint32(26).fork()).ldelim(),null!=e.measurements&&e.measurements.length)for(let r=0;r<e.measurements.length;++r)$root.ord.PressureConditions.PressureMeasurement.encode(e.measurements[r],t.uint32(34).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.PressureConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.control=$root.ord.PressureConditions.PressureControl.decode(e,e.uint32());break;case 2:o.setpoint=$root.ord.Pressure.decode(e,e.uint32());break;case 3:o.atmosphere=$root.ord.PressureConditions.Atmosphere.decode(e,e.uint32());break;case 4:o.measurements&&o.measurements.length||(o.measurements=[]),o.measurements.push($root.ord.PressureConditions.PressureMeasurement.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.control&&e.hasOwnProperty("control")){let t=$root.ord.PressureConditions.PressureControl.verify(e.control);if(t)return"control."+t}if(null!=e.setpoint&&e.hasOwnProperty("setpoint")){let t=$root.ord.Pressure.verify(e.setpoint);if(t)return"setpoint."+t}if(null!=e.atmosphere&&e.hasOwnProperty("atmosphere")){let t=$root.ord.PressureConditions.Atmosphere.verify(e.atmosphere);if(t)return"atmosphere."+t}if(null!=e.measurements&&e.hasOwnProperty("measurements")){if(!Array.isArray(e.measurements))return"measurements: array expected";for(let t=0;t<e.measurements.length;++t){let r=$root.ord.PressureConditions.PressureMeasurement.verify(e.measurements[t]);if(r)return"measurements."+r}}return null},e.fromObject=function(e){if(e instanceof $root.ord.PressureConditions)return e;let t=new $root.ord.PressureConditions;if(null!=e.control){if("object"!=typeof e.control)throw TypeError(".ord.PressureConditions.control: object expected");t.control=$root.ord.PressureConditions.PressureControl.fromObject(e.control)}if(null!=e.setpoint){if("object"!=typeof e.setpoint)throw TypeError(".ord.PressureConditions.setpoint: object expected");t.setpoint=$root.ord.Pressure.fromObject(e.setpoint)}if(null!=e.atmosphere){if("object"!=typeof e.atmosphere)throw TypeError(".ord.PressureConditions.atmosphere: object expected");t.atmosphere=$root.ord.PressureConditions.Atmosphere.fromObject(e.atmosphere)}if(e.measurements){if(!Array.isArray(e.measurements))throw TypeError(".ord.PressureConditions.measurements: array expected");t.measurements=[];for(let r=0;r<e.measurements.length;++r){if("object"!=typeof e.measurements[r])throw TypeError(".ord.PressureConditions.measurements: object expected");t.measurements[r]=$root.ord.PressureConditions.PressureMeasurement.fromObject(e.measurements[r])}}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.measurements=[]),t.defaults&&(r.control=null,r.setpoint=null,r.atmosphere=null),null!=e.control&&e.hasOwnProperty("control")&&(r.control=$root.ord.PressureConditions.PressureControl.toObject(e.control,t)),null!=e.setpoint&&e.hasOwnProperty("setpoint")&&(r.setpoint=$root.ord.Pressure.toObject(e.setpoint,t)),null!=e.atmosphere&&e.hasOwnProperty("atmosphere")&&(r.atmosphere=$root.ord.PressureConditions.Atmosphere.toObject(e.atmosphere,t)),e.measurements&&e.measurements.length){r.measurements=[];for(let o=0;o<e.measurements.length;++o)r.measurements[o]=$root.ord.PressureConditions.PressureMeasurement.toObject(e.measurements[o],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.PressureConditions"},e.PressureControl=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.PressureConditions.PressureControl;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.PressureConditions.PressureControl)return e;let t=new $root.ord.PressureConditions.PressureControl;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"AMBIENT":case 2:t.type=2;break;case"SLIGHT_POSITIVE":case 3:t.type=3;break;case"SEALED":case 4:t.type=4;break;case"PRESSURIZED":case 5:t.type=5}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.PressureConditions.PressureControl.PressureControlType[e.type]?e.type:$root.ord.PressureConditions.PressureControl.PressureControlType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.PressureConditions.PressureControl"},e.PressureControlType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="AMBIENT"]=2,t[e[3]="SLIGHT_POSITIVE"]=3,t[e[4]="SEALED"]=4,t[e[5]="PRESSURIZED"]=5,t}(),e}(),e.Atmosphere=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.PressureConditions.Atmosphere;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.PressureConditions.Atmosphere)return e;let t=new $root.ord.PressureConditions.Atmosphere;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"AIR":case 2:t.type=2;break;case"NITROGEN":case 3:t.type=3;break;case"ARGON":case 4:t.type=4;break;case"OXYGEN":case 5:t.type=5;break;case"HYDROGEN":case 6:t.type=6;break;case"CARBON_MONOXIDE":case 7:t.type=7;break;case"CARBON_DIOXIDE":case 8:t.type=8;break;case"METHANE":case 9:t.type=9;break;case"AMMONIA":case 10:t.type=10;break;case"OZONE":case 11:t.type=11;break;case"ETHYLENE":case 12:t.type=12;break;case"ACETYLENE":case 13:t.type=13}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.PressureConditions.Atmosphere.AtmosphereType[e.type]?e.type:$root.ord.PressureConditions.Atmosphere.AtmosphereType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.PressureConditions.Atmosphere"},e.AtmosphereType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="AIR"]=2,t[e[3]="NITROGEN"]=3,t[e[4]="ARGON"]=4,t[e[5]="OXYGEN"]=5,t[e[6]="HYDROGEN"]=6,t[e[7]="CARBON_MONOXIDE"]=7,t[e[8]="CARBON_DIOXIDE"]=8,t[e[9]="METHANE"]=9,t[e[10]="AMMONIA"]=10,t[e[11]="OZONE"]=11,t[e[12]="ETHYLENE"]=12,t[e[13]="ACETYLENE"]=13,t}(),e}(),e.PressureMeasurement=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.time=null,e.prototype.pressure=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.Time.encode(e.time,t.uint32(26).fork()).ldelim(),null!=e.pressure&&Object.hasOwnProperty.call(e,"pressure")&&$root.ord.Pressure.encode(e.pressure,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.PressureConditions.PressureMeasurement;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.time=$root.ord.Time.decode(e,e.uint32());break;case 4:o.pressure=$root.ord.Pressure.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.Time.verify(e.time);if(t)return"time."+t}if(null!=e.pressure&&e.hasOwnProperty("pressure")){let t=$root.ord.Pressure.verify(e.pressure);if(t)return"pressure."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.PressureConditions.PressureMeasurement)return e;let t=new $root.ord.PressureConditions.PressureMeasurement;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"PRESSURE_TRANSDUCER":case 2:t.type=2}if(null!=e.details&&(t.details=String(e.details)),null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.PressureConditions.PressureMeasurement.time: object expected");t.time=$root.ord.Time.fromObject(e.time)}if(null!=e.pressure){if("object"!=typeof e.pressure)throw TypeError(".ord.PressureConditions.PressureMeasurement.pressure: object expected");t.pressure=$root.ord.Pressure.fromObject(e.pressure)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.time=null,r.pressure=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.PressureConditions.PressureMeasurement.PressureMeasurementType[e.type]?e.type:$root.ord.PressureConditions.PressureMeasurement.PressureMeasurementType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.Time.toObject(e.time,t)),null!=e.pressure&&e.hasOwnProperty("pressure")&&(r.pressure=$root.ord.Pressure.toObject(e.pressure,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.PressureConditions.PressureMeasurement"},e.PressureMeasurementType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="PRESSURE_TRANSDUCER"]=2,t}(),e}(),e}(),e.StirringConditions=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.rate=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.rate&&Object.hasOwnProperty.call(e,"rate")&&$root.ord.StirringConditions.StirringRate.encode(e.rate,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.StirringConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.rate=$root.ord.StirringConditions.StirringRate.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.rate&&e.hasOwnProperty("rate")){let t=$root.ord.StirringConditions.StirringRate.verify(e.rate);if(t)return"rate."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.StirringConditions)return e;let t=new $root.ord.StirringConditions;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"NONE":case 2:t.type=2;break;case"STIR_BAR":case 3:t.type=3;break;case"OVERHEAD_MIXER":case 4:t.type=4;break;case"AGITATION":case 5:t.type=5;break;case"BALL_MILLING":case 6:t.type=6;break;case"SONICATION":case 7:t.type=7}if(null!=e.details&&(t.details=String(e.details)),null!=e.rate){if("object"!=typeof e.rate)throw TypeError(".ord.StirringConditions.rate: object expected");t.rate=$root.ord.StirringConditions.StirringRate.fromObject(e.rate)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.rate=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.StirringConditions.StirringMethodType[e.type]?e.type:$root.ord.StirringConditions.StirringMethodType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.rate&&e.hasOwnProperty("rate")&&(r.rate=$root.ord.StirringConditions.StirringRate.toObject(e.rate,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.StirringConditions"},e.StirringMethodType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="NONE"]=2,t[e[3]="STIR_BAR"]=3,t[e[4]="OVERHEAD_MIXER"]=4,t[e[5]="AGITATION"]=5,t[e[6]="BALL_MILLING"]=6,t[e[7]="SONICATION"]=7,t}(),e.StirringRate=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.rpm=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.rpm&&Object.hasOwnProperty.call(e,"rpm")&&t.uint32(24).int32(e.rpm),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.StirringConditions.StirringRate;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.rpm=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null!=e.rpm&&e.hasOwnProperty("rpm")&&!$util.isInteger(e.rpm)?"rpm: integer expected":null},e.fromObject=function(e){if(e instanceof $root.ord.StirringConditions.StirringRate)return e;let t=new $root.ord.StirringConditions.StirringRate;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"HIGH":case 1:t.type=1;break;case"MEDIUM":case 2:t.type=2;break;case"LOW":case 3:t.type=3}return null!=e.details&&(t.details=String(e.details)),null!=e.rpm&&(t.rpm=0|e.rpm),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.rpm=0),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.StirringConditions.StirringRate.StirringRateType[e.type]?e.type:$root.ord.StirringConditions.StirringRate.StirringRateType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.rpm&&e.hasOwnProperty("rpm")&&(r.rpm=e.rpm),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.StirringConditions.StirringRate"},e.StirringRateType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="HIGH"]=1,t[e[2]="MEDIUM"]=2,t[e[3]="LOW"]=3,t}(),e}(),e}(),e.IlluminationConditions=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.peakWavelength=null,e.prototype.color="",e.prototype.distanceToVessel=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.peakWavelength&&Object.hasOwnProperty.call(e,"peakWavelength")&&$root.ord.Wavelength.encode(e.peakWavelength,t.uint32(26).fork()).ldelim(),null!=e.color&&Object.hasOwnProperty.call(e,"color")&&t.uint32(34).string(e.color),null!=e.distanceToVessel&&Object.hasOwnProperty.call(e,"distanceToVessel")&&$root.ord.Length.encode(e.distanceToVessel,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.IlluminationConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.peakWavelength=$root.ord.Wavelength.decode(e,e.uint32());break;case 4:o.color=e.string();break;case 5:o.distanceToVessel=$root.ord.Length.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.peakWavelength&&e.hasOwnProperty("peakWavelength")){let t=$root.ord.Wavelength.verify(e.peakWavelength);if(t)return"peakWavelength."+t}if(null!=e.color&&e.hasOwnProperty("color")&&!$util.isString(e.color))return"color: string expected";if(null!=e.distanceToVessel&&e.hasOwnProperty("distanceToVessel")){let t=$root.ord.Length.verify(e.distanceToVessel);if(t)return"distanceToVessel."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.IlluminationConditions)return e;let t=new $root.ord.IlluminationConditions;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"AMBIENT":case 2:t.type=2;break;case"DARK":case 3:t.type=3;break;case"LED":case 4:t.type=4;break;case"HALOGEN_LAMP":case 5:t.type=5;break;case"DEUTERIUM_LAMP":case 6:t.type=6;break;case"SOLAR_SIMULATOR":case 7:t.type=7;break;case"BROAD_SPECTRUM":case 8:t.type=8}if(null!=e.details&&(t.details=String(e.details)),null!=e.peakWavelength){if("object"!=typeof e.peakWavelength)throw TypeError(".ord.IlluminationConditions.peakWavelength: object expected");t.peakWavelength=$root.ord.Wavelength.fromObject(e.peakWavelength)}if(null!=e.color&&(t.color=String(e.color)),null!=e.distanceToVessel){if("object"!=typeof e.distanceToVessel)throw TypeError(".ord.IlluminationConditions.distanceToVessel: object expected");t.distanceToVessel=$root.ord.Length.fromObject(e.distanceToVessel)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.peakWavelength=null,r.color="",r.distanceToVessel=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.IlluminationConditions.IlluminationType[e.type]?e.type:$root.ord.IlluminationConditions.IlluminationType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.peakWavelength&&e.hasOwnProperty("peakWavelength")&&(r.peakWavelength=$root.ord.Wavelength.toObject(e.peakWavelength,t)),null!=e.color&&e.hasOwnProperty("color")&&(r.color=e.color),null!=e.distanceToVessel&&e.hasOwnProperty("distanceToVessel")&&(r.distanceToVessel=$root.ord.Length.toObject(e.distanceToVessel,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.IlluminationConditions"},e.IlluminationType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="AMBIENT"]=2,t[e[3]="DARK"]=3,t[e[4]="LED"]=4,t[e[5]="HALOGEN_LAMP"]=5,t[e[6]="DEUTERIUM_LAMP"]=6,t[e[7]="SOLAR_SIMULATOR"]=7,t[e[8]="BROAD_SPECTRUM"]=8,t}(),e}(),e.ElectrochemistryConditions=function(){function e(e){if(this.measurements=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.current=null,e.prototype.voltage=null,e.prototype.anodeMaterial="",e.prototype.cathodeMaterial="",e.prototype.electrodeSeparation=null,e.prototype.measurements=$util.emptyArray,e.prototype.cell=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.current&&Object.hasOwnProperty.call(e,"current")&&$root.ord.Current.encode(e.current,t.uint32(26).fork()).ldelim(),null!=e.voltage&&Object.hasOwnProperty.call(e,"voltage")&&$root.ord.Voltage.encode(e.voltage,t.uint32(34).fork()).ldelim(),null!=e.anodeMaterial&&Object.hasOwnProperty.call(e,"anodeMaterial")&&t.uint32(42).string(e.anodeMaterial),null!=e.cathodeMaterial&&Object.hasOwnProperty.call(e,"cathodeMaterial")&&t.uint32(50).string(e.cathodeMaterial),null!=e.electrodeSeparation&&Object.hasOwnProperty.call(e,"electrodeSeparation")&&$root.ord.Length.encode(e.electrodeSeparation,t.uint32(58).fork()).ldelim(),null!=e.measurements&&e.measurements.length)for(let r=0;r<e.measurements.length;++r)$root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.encode(e.measurements[r],t.uint32(66).fork()).ldelim();return null!=e.cell&&Object.hasOwnProperty.call(e,"cell")&&$root.ord.ElectrochemistryConditions.ElectrochemistryCell.encode(e.cell,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ElectrochemistryConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.current=$root.ord.Current.decode(e,e.uint32());break;case 4:o.voltage=$root.ord.Voltage.decode(e,e.uint32());break;case 5:o.anodeMaterial=e.string();break;case 6:o.cathodeMaterial=e.string();break;case 7:o.electrodeSeparation=$root.ord.Length.decode(e,e.uint32());break;case 8:o.measurements&&o.measurements.length||(o.measurements=[]),o.measurements.push($root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.decode(e,e.uint32()));break;case 9:o.cell=$root.ord.ElectrochemistryConditions.ElectrochemistryCell.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.current&&e.hasOwnProperty("current")){let t=$root.ord.Current.verify(e.current);if(t)return"current."+t}if(null!=e.voltage&&e.hasOwnProperty("voltage")){let t=$root.ord.Voltage.verify(e.voltage);if(t)return"voltage."+t}if(null!=e.anodeMaterial&&e.hasOwnProperty("anodeMaterial")&&!$util.isString(e.anodeMaterial))return"anodeMaterial: string expected";if(null!=e.cathodeMaterial&&e.hasOwnProperty("cathodeMaterial")&&!$util.isString(e.cathodeMaterial))return"cathodeMaterial: string expected";if(null!=e.electrodeSeparation&&e.hasOwnProperty("electrodeSeparation")){let t=$root.ord.Length.verify(e.electrodeSeparation);if(t)return"electrodeSeparation."+t}if(null!=e.measurements&&e.hasOwnProperty("measurements")){if(!Array.isArray(e.measurements))return"measurements: array expected";for(let t=0;t<e.measurements.length;++t){let r=$root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.verify(e.measurements[t]);if(r)return"measurements."+r}}if(null!=e.cell&&e.hasOwnProperty("cell")){let t=$root.ord.ElectrochemistryConditions.ElectrochemistryCell.verify(e.cell);if(t)return"cell."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ElectrochemistryConditions)return e;let t=new $root.ord.ElectrochemistryConditions;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"CONSTANT_CURRENT":case 2:t.type=2;break;case"CONSTANT_VOLTAGE":case 3:t.type=3}if(null!=e.details&&(t.details=String(e.details)),null!=e.current){if("object"!=typeof e.current)throw TypeError(".ord.ElectrochemistryConditions.current: object expected");t.current=$root.ord.Current.fromObject(e.current)}if(null!=e.voltage){if("object"!=typeof e.voltage)throw TypeError(".ord.ElectrochemistryConditions.voltage: object expected");t.voltage=$root.ord.Voltage.fromObject(e.voltage)}if(null!=e.anodeMaterial&&(t.anodeMaterial=String(e.anodeMaterial)),null!=e.cathodeMaterial&&(t.cathodeMaterial=String(e.cathodeMaterial)),null!=e.electrodeSeparation){if("object"!=typeof e.electrodeSeparation)throw TypeError(".ord.ElectrochemistryConditions.electrodeSeparation: object expected");t.electrodeSeparation=$root.ord.Length.fromObject(e.electrodeSeparation)}if(e.measurements){if(!Array.isArray(e.measurements))throw TypeError(".ord.ElectrochemistryConditions.measurements: array expected");t.measurements=[];for(let r=0;r<e.measurements.length;++r){if("object"!=typeof e.measurements[r])throw TypeError(".ord.ElectrochemistryConditions.measurements: object expected");t.measurements[r]=$root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.fromObject(e.measurements[r])}}if(null!=e.cell){if("object"!=typeof e.cell)throw TypeError(".ord.ElectrochemistryConditions.cell: object expected");t.cell=$root.ord.ElectrochemistryConditions.ElectrochemistryCell.fromObject(e.cell)}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.measurements=[]),t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.current=null,r.voltage=null,r.anodeMaterial="",r.cathodeMaterial="",r.electrodeSeparation=null,r.cell=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ElectrochemistryConditions.ElectrochemistryType[e.type]?e.type:$root.ord.ElectrochemistryConditions.ElectrochemistryType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.current&&e.hasOwnProperty("current")&&(r.current=$root.ord.Current.toObject(e.current,t)),null!=e.voltage&&e.hasOwnProperty("voltage")&&(r.voltage=$root.ord.Voltage.toObject(e.voltage,t)),null!=e.anodeMaterial&&e.hasOwnProperty("anodeMaterial")&&(r.anodeMaterial=e.anodeMaterial),null!=e.cathodeMaterial&&e.hasOwnProperty("cathodeMaterial")&&(r.cathodeMaterial=e.cathodeMaterial),null!=e.electrodeSeparation&&e.hasOwnProperty("electrodeSeparation")&&(r.electrodeSeparation=$root.ord.Length.toObject(e.electrodeSeparation,t)),e.measurements&&e.measurements.length){r.measurements=[];for(let o=0;o<e.measurements.length;++o)r.measurements[o]=$root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.toObject(e.measurements[o],t)}return null!=e.cell&&e.hasOwnProperty("cell")&&(r.cell=$root.ord.ElectrochemistryConditions.ElectrochemistryCell.toObject(e.cell,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ElectrochemistryConditions"},e.ElectrochemistryType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="CONSTANT_CURRENT"]=2,t[e[3]="CONSTANT_VOLTAGE"]=3,t}(),e.ElectrochemistryMeasurement=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.time=null,e.prototype.current=null,e.prototype.voltage=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.Time.encode(e.time,t.uint32(10).fork()).ldelim(),null!=e.current&&Object.hasOwnProperty.call(e,"current")&&$root.ord.Current.encode(e.current,t.uint32(18).fork()).ldelim(),null!=e.voltage&&Object.hasOwnProperty.call(e,"voltage")&&$root.ord.Voltage.encode(e.voltage,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.time=$root.ord.Time.decode(e,e.uint32());break;case 2:o.current=$root.ord.Current.decode(e,e.uint32());break;case 3:o.voltage=$root.ord.Voltage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.Time.verify(e.time);if(t)return"time."+t}if(null!=e.current&&e.hasOwnProperty("current")){let t=$root.ord.Current.verify(e.current);if(t)return"current."+t}if(null!=e.voltage&&e.hasOwnProperty("voltage")){let t=$root.ord.Voltage.verify(e.voltage);if(t)return"voltage."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement)return e;let t=new $root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement;if(null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.ElectrochemistryConditions.ElectrochemistryMeasurement.time: object expected");t.time=$root.ord.Time.fromObject(e.time)}if(null!=e.current){if("object"!=typeof e.current)throw TypeError(".ord.ElectrochemistryConditions.ElectrochemistryMeasurement.current: object expected");t.current=$root.ord.Current.fromObject(e.current)}if(null!=e.voltage){if("object"!=typeof e.voltage)throw TypeError(".ord.ElectrochemistryConditions.ElectrochemistryMeasurement.voltage: object expected");t.voltage=$root.ord.Voltage.fromObject(e.voltage)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.time=null,r.current=null,r.voltage=null),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.Time.toObject(e.time,t)),null!=e.current&&e.hasOwnProperty("current")&&(r.current=$root.ord.Current.toObject(e.current,t)),null!=e.voltage&&e.hasOwnProperty("voltage")&&(r.voltage=$root.ord.Voltage.toObject(e.voltage,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ElectrochemistryConditions.ElectrochemistryMeasurement"},e}(),e.ElectrochemistryCell=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ElectrochemistryConditions.ElectrochemistryCell;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ElectrochemistryConditions.ElectrochemistryCell)return e;let t=new $root.ord.ElectrochemistryConditions.ElectrochemistryCell;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"DIVIDED_CELL":case 2:t.type=2;break;case"UNDIVIDED_CELL":case 3:t.type=3}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ElectrochemistryConditions.ElectrochemistryCell.ElectrochemistryCellType[e.type]?e.type:$root.ord.ElectrochemistryConditions.ElectrochemistryCell.ElectrochemistryCellType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ElectrochemistryConditions.ElectrochemistryCell"},e.ElectrochemistryCellType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="DIVIDED_CELL"]=2,t[e[3]="UNDIVIDED_CELL"]=3,t}(),e}(),e}(),e.FlowConditions=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.pumpType="",e.prototype.tubing=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.pumpType&&Object.hasOwnProperty.call(e,"pumpType")&&t.uint32(26).string(e.pumpType),null!=e.tubing&&Object.hasOwnProperty.call(e,"tubing")&&$root.ord.FlowConditions.Tubing.encode(e.tubing,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.FlowConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.pumpType=e.string();break;case 4:o.tubing=$root.ord.FlowConditions.Tubing.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.pumpType&&e.hasOwnProperty("pumpType")&&!$util.isString(e.pumpType))return"pumpType: string expected";if(null!=e.tubing&&e.hasOwnProperty("tubing")){let t=$root.ord.FlowConditions.Tubing.verify(e.tubing);if(t)return"tubing."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.FlowConditions)return e;let t=new $root.ord.FlowConditions;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"PLUG_FLOW_REACTOR":case 2:t.type=2;break;case"CONTINUOUS_STIRRED_TANK_REACTOR":case 3:t.type=3;break;case"PACKED_BED_REACTOR":case 4:t.type=4}if(null!=e.details&&(t.details=String(e.details)),null!=e.pumpType&&(t.pumpType=String(e.pumpType)),null!=e.tubing){if("object"!=typeof e.tubing)throw TypeError(".ord.FlowConditions.tubing: object expected");t.tubing=$root.ord.FlowConditions.Tubing.fromObject(e.tubing)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.pumpType="",r.tubing=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.FlowConditions.FlowType[e.type]?e.type:$root.ord.FlowConditions.FlowType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.pumpType&&e.hasOwnProperty("pumpType")&&(r.pumpType=e.pumpType),null!=e.tubing&&e.hasOwnProperty("tubing")&&(r.tubing=$root.ord.FlowConditions.Tubing.toObject(e.tubing,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.FlowConditions"},e.FlowType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="PLUG_FLOW_REACTOR"]=2,t[e[3]="CONTINUOUS_STIRRED_TANK_REACTOR"]=3,t[e[4]="PACKED_BED_REACTOR"]=4,t}(),e.Tubing=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.diameter=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.diameter&&Object.hasOwnProperty.call(e,"diameter")&&$root.ord.Length.encode(e.diameter,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.FlowConditions.Tubing;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.diameter=$root.ord.Length.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.diameter&&e.hasOwnProperty("diameter")){let t=$root.ord.Length.verify(e.diameter);if(t)return"diameter."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.FlowConditions.Tubing)return e;let t=new $root.ord.FlowConditions.Tubing;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"STEEL":case 2:t.type=2;break;case"COPPER":case 3:t.type=3;break;case"PFA":case 4:t.type=4;break;case"FEP":case 5:t.type=5;break;case"TEFLONAF":case 6:t.type=6;break;case"PTFE":case 7:t.type=7;break;case"GLASS":case 8:t.type=8;break;case"QUARTZ":case 9:t.type=9;break;case"SILICON":case 10:t.type=10;break;case"PDMS":case 11:t.type=11}if(null!=e.details&&(t.details=String(e.details)),null!=e.diameter){if("object"!=typeof e.diameter)throw TypeError(".ord.FlowConditions.Tubing.diameter: object expected");t.diameter=$root.ord.Length.fromObject(e.diameter)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.diameter=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.FlowConditions.Tubing.TubingType[e.type]?e.type:$root.ord.FlowConditions.Tubing.TubingType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.diameter&&e.hasOwnProperty("diameter")&&(r.diameter=$root.ord.Length.toObject(e.diameter,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.FlowConditions.Tubing"},e.TubingType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="STEEL"]=2,t[e[3]="COPPER"]=3,t[e[4]="PFA"]=4,t[e[5]="FEP"]=5,t[e[6]="TEFLONAF"]=6,t[e[7]="PTFE"]=7,t[e[8]="GLASS"]=8,t[e[9]="QUARTZ"]=9,t[e[10]="SILICON"]=10,t[e[11]="PDMS"]=11,t}(),e}(),e}(),e.ReactionNotes=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.isHeterogeneous=null,e.prototype.formsPrecipitate=null,e.prototype.isExothermic=null,e.prototype.offgasses=null,e.prototype.isSensitiveToMoisture=null,e.prototype.isSensitiveToOxygen=null,e.prototype.isSensitiveToLight=null,e.prototype.safetyNotes="",e.prototype.procedureDetails="",Object.defineProperty(e.prototype,"_isHeterogeneous",{get:$util.oneOfGetter(t=["isHeterogeneous"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_formsPrecipitate",{get:$util.oneOfGetter(t=["formsPrecipitate"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isExothermic",{get:$util.oneOfGetter(t=["isExothermic"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_offgasses",{get:$util.oneOfGetter(t=["offgasses"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isSensitiveToMoisture",{get:$util.oneOfGetter(t=["isSensitiveToMoisture"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isSensitiveToOxygen",{get:$util.oneOfGetter(t=["isSensitiveToOxygen"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isSensitiveToLight",{get:$util.oneOfGetter(t=["isSensitiveToLight"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.isHeterogeneous&&Object.hasOwnProperty.call(e,"isHeterogeneous")&&t.uint32(8).bool(e.isHeterogeneous),null!=e.formsPrecipitate&&Object.hasOwnProperty.call(e,"formsPrecipitate")&&t.uint32(16).bool(e.formsPrecipitate),null!=e.isExothermic&&Object.hasOwnProperty.call(e,"isExothermic")&&t.uint32(24).bool(e.isExothermic),null!=e.offgasses&&Object.hasOwnProperty.call(e,"offgasses")&&t.uint32(32).bool(e.offgasses),null!=e.isSensitiveToMoisture&&Object.hasOwnProperty.call(e,"isSensitiveToMoisture")&&t.uint32(40).bool(e.isSensitiveToMoisture),null!=e.isSensitiveToOxygen&&Object.hasOwnProperty.call(e,"isSensitiveToOxygen")&&t.uint32(48).bool(e.isSensitiveToOxygen),null!=e.isSensitiveToLight&&Object.hasOwnProperty.call(e,"isSensitiveToLight")&&t.uint32(56).bool(e.isSensitiveToLight),null!=e.safetyNotes&&Object.hasOwnProperty.call(e,"safetyNotes")&&t.uint32(66).string(e.safetyNotes),null!=e.procedureDetails&&Object.hasOwnProperty.call(e,"procedureDetails")&&t.uint32(74).string(e.procedureDetails),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionNotes;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.isHeterogeneous=e.bool();break;case 2:o.formsPrecipitate=e.bool();break;case 3:o.isExothermic=e.bool();break;case 4:o.offgasses=e.bool();break;case 5:o.isSensitiveToMoisture=e.bool();break;case 6:o.isSensitiveToOxygen=e.bool();break;case 7:o.isSensitiveToLight=e.bool();break;case 8:o.safetyNotes=e.string();break;case 9:o.procedureDetails=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};return null!=e.isHeterogeneous&&e.hasOwnProperty("isHeterogeneous")&&(t._isHeterogeneous=1,"boolean"!=typeof e.isHeterogeneous)?"isHeterogeneous: boolean expected":null!=e.formsPrecipitate&&e.hasOwnProperty("formsPrecipitate")&&(t._formsPrecipitate=1,"boolean"!=typeof e.formsPrecipitate)?"formsPrecipitate: boolean expected":null!=e.isExothermic&&e.hasOwnProperty("isExothermic")&&(t._isExothermic=1,"boolean"!=typeof e.isExothermic)?"isExothermic: boolean expected":null!=e.offgasses&&e.hasOwnProperty("offgasses")&&(t._offgasses=1,"boolean"!=typeof e.offgasses)?"offgasses: boolean expected":null!=e.isSensitiveToMoisture&&e.hasOwnProperty("isSensitiveToMoisture")&&(t._isSensitiveToMoisture=1,"boolean"!=typeof e.isSensitiveToMoisture)?"isSensitiveToMoisture: boolean expected":null!=e.isSensitiveToOxygen&&e.hasOwnProperty("isSensitiveToOxygen")&&(t._isSensitiveToOxygen=1,"boolean"!=typeof e.isSensitiveToOxygen)?"isSensitiveToOxygen: boolean expected":null!=e.isSensitiveToLight&&e.hasOwnProperty("isSensitiveToLight")&&(t._isSensitiveToLight=1,"boolean"!=typeof e.isSensitiveToLight)?"isSensitiveToLight: boolean expected":null!=e.safetyNotes&&e.hasOwnProperty("safetyNotes")&&!$util.isString(e.safetyNotes)?"safetyNotes: string expected":null!=e.procedureDetails&&e.hasOwnProperty("procedureDetails")&&!$util.isString(e.procedureDetails)?"procedureDetails: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionNotes)return e;let t=new $root.ord.ReactionNotes;return null!=e.isHeterogeneous&&(t.isHeterogeneous=Boolean(e.isHeterogeneous)),null!=e.formsPrecipitate&&(t.formsPrecipitate=Boolean(e.formsPrecipitate)),null!=e.isExothermic&&(t.isExothermic=Boolean(e.isExothermic)),null!=e.offgasses&&(t.offgasses=Boolean(e.offgasses)),null!=e.isSensitiveToMoisture&&(t.isSensitiveToMoisture=Boolean(e.isSensitiveToMoisture)),null!=e.isSensitiveToOxygen&&(t.isSensitiveToOxygen=Boolean(e.isSensitiveToOxygen)),null!=e.isSensitiveToLight&&(t.isSensitiveToLight=Boolean(e.isSensitiveToLight)),null!=e.safetyNotes&&(t.safetyNotes=String(e.safetyNotes)),null!=e.procedureDetails&&(t.procedureDetails=String(e.procedureDetails)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.safetyNotes="",r.procedureDetails=""),null!=e.isHeterogeneous&&e.hasOwnProperty("isHeterogeneous")&&(r.isHeterogeneous=e.isHeterogeneous,t.oneofs&&(r._isHeterogeneous="isHeterogeneous")),null!=e.formsPrecipitate&&e.hasOwnProperty("formsPrecipitate")&&(r.formsPrecipitate=e.formsPrecipitate,t.oneofs&&(r._formsPrecipitate="formsPrecipitate")),null!=e.isExothermic&&e.hasOwnProperty("isExothermic")&&(r.isExothermic=e.isExothermic,t.oneofs&&(r._isExothermic="isExothermic")),null!=e.offgasses&&e.hasOwnProperty("offgasses")&&(r.offgasses=e.offgasses,t.oneofs&&(r._offgasses="offgasses")),null!=e.isSensitiveToMoisture&&e.hasOwnProperty("isSensitiveToMoisture")&&(r.isSensitiveToMoisture=e.isSensitiveToMoisture,t.oneofs&&(r._isSensitiveToMoisture="isSensitiveToMoisture")),null!=e.isSensitiveToOxygen&&e.hasOwnProperty("isSensitiveToOxygen")&&(r.isSensitiveToOxygen=e.isSensitiveToOxygen,t.oneofs&&(r._isSensitiveToOxygen="isSensitiveToOxygen")),null!=e.isSensitiveToLight&&e.hasOwnProperty("isSensitiveToLight")&&(r.isSensitiveToLight=e.isSensitiveToLight,t.oneofs&&(r._isSensitiveToLight="isSensitiveToLight")),null!=e.safetyNotes&&e.hasOwnProperty("safetyNotes")&&(r.safetyNotes=e.safetyNotes),null!=e.procedureDetails&&e.hasOwnProperty("procedureDetails")&&(r.procedureDetails=e.procedureDetails),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionNotes"},e}(),e.ReactionObservation=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.time=null,e.prototype.comment="",e.prototype.image=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.Time.encode(e.time,t.uint32(10).fork()).ldelim(),null!=e.comment&&Object.hasOwnProperty.call(e,"comment")&&t.uint32(18).string(e.comment),null!=e.image&&Object.hasOwnProperty.call(e,"image")&&$root.ord.Data.encode(e.image,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionObservation;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.time=$root.ord.Time.decode(e,e.uint32());break;case 2:o.comment=e.string();break;case 3:o.image=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.Time.verify(e.time);if(t)return"time."+t}if(null!=e.comment&&e.hasOwnProperty("comment")&&!$util.isString(e.comment))return"comment: string expected";if(null!=e.image&&e.hasOwnProperty("image")){let t=$root.ord.Data.verify(e.image);if(t)return"image."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionObservation)return e;let t=new $root.ord.ReactionObservation;if(null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.ReactionObservation.time: object expected");t.time=$root.ord.Time.fromObject(e.time)}if(null!=e.comment&&(t.comment=String(e.comment)),null!=e.image){if("object"!=typeof e.image)throw TypeError(".ord.ReactionObservation.image: object expected");t.image=$root.ord.Data.fromObject(e.image)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.time=null,r.comment="",r.image=null),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.Time.toObject(e.time,t)),null!=e.comment&&e.hasOwnProperty("comment")&&(r.comment=e.comment),null!=e.image&&e.hasOwnProperty("image")&&(r.image=$root.ord.Data.toObject(e.image,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionObservation"},e}(),e.ReactionWorkup=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.type=0,e.prototype.details="",e.prototype.duration=null,e.prototype.input=null,e.prototype.amount=null,e.prototype.temperature=null,e.prototype.keepPhase="",e.prototype.stirring=null,e.prototype.targetPh=null,e.prototype.isAutomated=null,Object.defineProperty(e.prototype,"_targetPh",{get:$util.oneOfGetter(t=["targetPh"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isAutomated",{get:$util.oneOfGetter(t=["isAutomated"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.duration&&Object.hasOwnProperty.call(e,"duration")&&$root.ord.Time.encode(e.duration,t.uint32(26).fork()).ldelim(),null!=e.input&&Object.hasOwnProperty.call(e,"input")&&$root.ord.ReactionInput.encode(e.input,t.uint32(34).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&$root.ord.Amount.encode(e.amount,t.uint32(42).fork()).ldelim(),null!=e.temperature&&Object.hasOwnProperty.call(e,"temperature")&&$root.ord.TemperatureConditions.encode(e.temperature,t.uint32(50).fork()).ldelim(),null!=e.keepPhase&&Object.hasOwnProperty.call(e,"keepPhase")&&t.uint32(58).string(e.keepPhase),null!=e.stirring&&Object.hasOwnProperty.call(e,"stirring")&&$root.ord.StirringConditions.encode(e.stirring,t.uint32(66).fork()).ldelim(),null!=e.targetPh&&Object.hasOwnProperty.call(e,"targetPh")&&t.uint32(77).float(e.targetPh),null!=e.isAutomated&&Object.hasOwnProperty.call(e,"isAutomated")&&t.uint32(80).bool(e.isAutomated),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionWorkup;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.duration=$root.ord.Time.decode(e,e.uint32());break;case 4:o.input=$root.ord.ReactionInput.decode(e,e.uint32());break;case 5:o.amount=$root.ord.Amount.decode(e,e.uint32());break;case 6:o.temperature=$root.ord.TemperatureConditions.decode(e,e.uint32());break;case 7:o.keepPhase=e.string();break;case 8:o.stirring=$root.ord.StirringConditions.decode(e,e.uint32());break;case 9:o.targetPh=e.float();break;case 10:o.isAutomated=e.bool();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.duration&&e.hasOwnProperty("duration")){let t=$root.ord.Time.verify(e.duration);if(t)return"duration."+t}if(null!=e.input&&e.hasOwnProperty("input")){let t=$root.ord.ReactionInput.verify(e.input);if(t)return"input."+t}if(null!=e.amount&&e.hasOwnProperty("amount")){let t=$root.ord.Amount.verify(e.amount);if(t)return"amount."+t}if(null!=e.temperature&&e.hasOwnProperty("temperature")){let t=$root.ord.TemperatureConditions.verify(e.temperature);if(t)return"temperature."+t}if(null!=e.keepPhase&&e.hasOwnProperty("keepPhase")&&!$util.isString(e.keepPhase))return"keepPhase: string expected";if(null!=e.stirring&&e.hasOwnProperty("stirring")){let t=$root.ord.StirringConditions.verify(e.stirring);if(t)return"stirring."+t}return null!=e.targetPh&&e.hasOwnProperty("targetPh")&&(t._targetPh=1,"number"!=typeof e.targetPh)?"targetPh: number expected":null!=e.isAutomated&&e.hasOwnProperty("isAutomated")&&(t._isAutomated=1,"boolean"!=typeof e.isAutomated)?"isAutomated: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionWorkup)return e;let t=new $root.ord.ReactionWorkup;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"ADDITION":case 2:t.type=2;break;case"ALIQUOT":case 3:t.type=3;break;case"TEMPERATURE":case 4:t.type=4;break;case"CONCENTRATION":case 5:t.type=5;break;case"EXTRACTION":case 6:t.type=6;break;case"FILTRATION":case 7:t.type=7;break;case"WASH":case 8:t.type=8;break;case"DRY_IN_VACUUM":case 9:t.type=9;break;case"DRY_WITH_MATERIAL":case 10:t.type=10;break;case"FLASH_CHROMATOGRAPHY":case 11:t.type=11;break;case"OTHER_CHROMATOGRAPHY":case 12:t.type=12;break;case"SCAVENGING":case 13:t.type=13;break;case"WAIT":case 14:t.type=14;break;case"STIRRING":case 15:t.type=15;break;case"PH_ADJUST":case 16:t.type=16;break;case"DISSOLUTION":case 17:t.type=17;break;case"DISTILLATION":case 18:t.type=18}if(null!=e.details&&(t.details=String(e.details)),null!=e.duration){if("object"!=typeof e.duration)throw TypeError(".ord.ReactionWorkup.duration: object expected");t.duration=$root.ord.Time.fromObject(e.duration)}if(null!=e.input){if("object"!=typeof e.input)throw TypeError(".ord.ReactionWorkup.input: object expected");t.input=$root.ord.ReactionInput.fromObject(e.input)}if(null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".ord.ReactionWorkup.amount: object expected");t.amount=$root.ord.Amount.fromObject(e.amount)}if(null!=e.temperature){if("object"!=typeof e.temperature)throw TypeError(".ord.ReactionWorkup.temperature: object expected");t.temperature=$root.ord.TemperatureConditions.fromObject(e.temperature)}if(null!=e.keepPhase&&(t.keepPhase=String(e.keepPhase)),null!=e.stirring){if("object"!=typeof e.stirring)throw TypeError(".ord.ReactionWorkup.stirring: object expected");t.stirring=$root.ord.StirringConditions.fromObject(e.stirring)}return null!=e.targetPh&&(t.targetPh=Number(e.targetPh)),null!=e.isAutomated&&(t.isAutomated=Boolean(e.isAutomated)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.duration=null,r.input=null,r.amount=null,r.temperature=null,r.keepPhase="",r.stirring=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionWorkup.ReactionWorkupType[e.type]?e.type:$root.ord.ReactionWorkup.ReactionWorkupType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.duration&&e.hasOwnProperty("duration")&&(r.duration=$root.ord.Time.toObject(e.duration,t)),null!=e.input&&e.hasOwnProperty("input")&&(r.input=$root.ord.ReactionInput.toObject(e.input,t)),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=$root.ord.Amount.toObject(e.amount,t)),null!=e.temperature&&e.hasOwnProperty("temperature")&&(r.temperature=$root.ord.TemperatureConditions.toObject(e.temperature,t)),null!=e.keepPhase&&e.hasOwnProperty("keepPhase")&&(r.keepPhase=e.keepPhase),null!=e.stirring&&e.hasOwnProperty("stirring")&&(r.stirring=$root.ord.StirringConditions.toObject(e.stirring,t)),null!=e.targetPh&&e.hasOwnProperty("targetPh")&&(r.targetPh=t.json&&!isFinite(e.targetPh)?String(e.targetPh):e.targetPh,t.oneofs&&(r._targetPh="targetPh")),null!=e.isAutomated&&e.hasOwnProperty("isAutomated")&&(r.isAutomated=e.isAutomated,t.oneofs&&(r._isAutomated="isAutomated")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionWorkup"},e.ReactionWorkupType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="ADDITION"]=2,t[e[3]="ALIQUOT"]=3,t[e[4]="TEMPERATURE"]=4,t[e[5]="CONCENTRATION"]=5,t[e[6]="EXTRACTION"]=6,t[e[7]="FILTRATION"]=7,t[e[8]="WASH"]=8,t[e[9]="DRY_IN_VACUUM"]=9,t[e[10]="DRY_WITH_MATERIAL"]=10,t[e[11]="FLASH_CHROMATOGRAPHY"]=11,t[e[12]="OTHER_CHROMATOGRAPHY"]=12,t[e[13]="SCAVENGING"]=13,t[e[14]="WAIT"]=14,t[e[15]="STIRRING"]=15,t[e[16]="PH_ADJUST"]=16,t[e[17]="DISSOLUTION"]=17,t[e[18]="DISTILLATION"]=18,t}(),e}(),e.ReactionOutcome=function(){function e(e){if(this.products=[],this.analyses={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.reactionTime=null,e.prototype.conversion=null,e.prototype.products=$util.emptyArray,e.prototype.analyses=$util.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.reactionTime&&Object.hasOwnProperty.call(e,"reactionTime")&&$root.ord.Time.encode(e.reactionTime,t.uint32(10).fork()).ldelim(),null!=e.conversion&&Object.hasOwnProperty.call(e,"conversion")&&$root.ord.Percentage.encode(e.conversion,t.uint32(18).fork()).ldelim(),null!=e.products&&e.products.length)for(let r=0;r<e.products.length;++r)$root.ord.ProductCompound.encode(e.products[r],t.uint32(26).fork()).ldelim();if(null!=e.analyses&&Object.hasOwnProperty.call(e,"analyses"))for(let r=Object.keys(e.analyses),o=0;o<r.length;++o)t.uint32(34).fork().uint32(10).string(r[o]),$root.ord.Analysis.encode(e.analyses[r[o]],t.uint32(18).fork()).ldelim().ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.ReactionOutcome;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.reactionTime=$root.ord.Time.decode(e,e.uint32());break;case 2:i.conversion=$root.ord.Percentage.decode(e,e.uint32());break;case 3:i.products&&i.products.length||(i.products=[]),i.products.push($root.ord.ProductCompound.decode(e,e.uint32()));break;case 4:{i.analyses===$util.emptyObject&&(i.analyses={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Analysis.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.analyses[r]=o;break}default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.reactionTime&&e.hasOwnProperty("reactionTime")){let t=$root.ord.Time.verify(e.reactionTime);if(t)return"reactionTime."+t}if(null!=e.conversion&&e.hasOwnProperty("conversion")){let t=$root.ord.Percentage.verify(e.conversion);if(t)return"conversion."+t}if(null!=e.products&&e.hasOwnProperty("products")){if(!Array.isArray(e.products))return"products: array expected";for(let t=0;t<e.products.length;++t){let r=$root.ord.ProductCompound.verify(e.products[t]);if(r)return"products."+r}}if(null!=e.analyses&&e.hasOwnProperty("analyses")){if(!$util.isObject(e.analyses))return"analyses: object expected";let t=Object.keys(e.analyses);for(let r=0;r<t.length;++r){let o=$root.ord.Analysis.verify(e.analyses[t[r]]);if(o)return"analyses."+o}}return null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionOutcome)return e;let t=new $root.ord.ReactionOutcome;if(null!=e.reactionTime){if("object"!=typeof e.reactionTime)throw TypeError(".ord.ReactionOutcome.reactionTime: object expected");t.reactionTime=$root.ord.Time.fromObject(e.reactionTime)}if(null!=e.conversion){if("object"!=typeof e.conversion)throw TypeError(".ord.ReactionOutcome.conversion: object expected");t.conversion=$root.ord.Percentage.fromObject(e.conversion)}if(e.products){if(!Array.isArray(e.products))throw TypeError(".ord.ReactionOutcome.products: array expected");t.products=[];for(let r=0;r<e.products.length;++r){if("object"!=typeof e.products[r])throw TypeError(".ord.ReactionOutcome.products: object expected");t.products[r]=$root.ord.ProductCompound.fromObject(e.products[r])}}if(e.analyses){if("object"!=typeof e.analyses)throw TypeError(".ord.ReactionOutcome.analyses: object expected");t.analyses={};for(let r=Object.keys(e.analyses),o=0;o<r.length;++o){if("object"!=typeof e.analyses[r[o]])throw TypeError(".ord.ReactionOutcome.analyses: object expected");t.analyses[r[o]]=$root.ord.Analysis.fromObject(e.analyses[r[o]])}}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.products=[]),(t.objects||t.defaults)&&(o.analyses={}),t.defaults&&(o.reactionTime=null,o.conversion=null),null!=e.reactionTime&&e.hasOwnProperty("reactionTime")&&(o.reactionTime=$root.ord.Time.toObject(e.reactionTime,t)),null!=e.conversion&&e.hasOwnProperty("conversion")&&(o.conversion=$root.ord.Percentage.toObject(e.conversion,t)),e.products&&e.products.length){o.products=[];for(let r=0;r<e.products.length;++r)o.products[r]=$root.ord.ProductCompound.toObject(e.products[r],t)}if(e.analyses&&(r=Object.keys(e.analyses)).length){o.analyses={};for(let n=0;n<r.length;++n)o.analyses[r[n]]=$root.ord.Analysis.toObject(e.analyses[r[n]],t)}return o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionOutcome"},e}(),e.ProductCompound=function(){function e(e){if(this.identifiers=[],this.measurements=[],this.features={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.identifiers=$util.emptyArray,e.prototype.isDesiredProduct=null,e.prototype.measurements=$util.emptyArray,e.prototype.isolatedColor="",e.prototype.texture=null,e.prototype.features=$util.emptyObject,e.prototype.reactionRole=0,Object.defineProperty(e.prototype,"_isDesiredProduct",{get:$util.oneOfGetter(t=["isDesiredProduct"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.identifiers&&e.identifiers.length)for(let r=0;r<e.identifiers.length;++r)$root.ord.CompoundIdentifier.encode(e.identifiers[r],t.uint32(10).fork()).ldelim();if(null!=e.isDesiredProduct&&Object.hasOwnProperty.call(e,"isDesiredProduct")&&t.uint32(16).bool(e.isDesiredProduct),null!=e.measurements&&e.measurements.length)for(let r=0;r<e.measurements.length;++r)$root.ord.ProductMeasurement.encode(e.measurements[r],t.uint32(26).fork()).ldelim();if(null!=e.isolatedColor&&Object.hasOwnProperty.call(e,"isolatedColor")&&t.uint32(34).string(e.isolatedColor),null!=e.texture&&Object.hasOwnProperty.call(e,"texture")&&$root.ord.Texture.encode(e.texture,t.uint32(42).fork()).ldelim(),null!=e.features&&Object.hasOwnProperty.call(e,"features"))for(let r=Object.keys(e.features),o=0;o<r.length;++o)t.uint32(50).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.features[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.reactionRole&&Object.hasOwnProperty.call(e,"reactionRole")&&t.uint32(56).int32(e.reactionRole),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.ProductCompound;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.identifiers&&i.identifiers.length||(i.identifiers=[]),i.identifiers.push($root.ord.CompoundIdentifier.decode(e,e.uint32()));break;case 2:i.isDesiredProduct=e.bool();break;case 3:i.measurements&&i.measurements.length||(i.measurements=[]),i.measurements.push($root.ord.ProductMeasurement.decode(e,e.uint32()));break;case 4:i.isolatedColor=e.string();break;case 5:i.texture=$root.ord.Texture.decode(e,e.uint32());break;case 6:{i.features===$util.emptyObject&&(i.features={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.features[r]=o;break}case 7:i.reactionRole=e.int32();break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.identifiers&&e.hasOwnProperty("identifiers")){if(!Array.isArray(e.identifiers))return"identifiers: array expected";for(let t=0;t<e.identifiers.length;++t){let r=$root.ord.CompoundIdentifier.verify(e.identifiers[t]);if(r)return"identifiers."+r}}if(null!=e.isDesiredProduct&&e.hasOwnProperty("isDesiredProduct")&&"boolean"!=typeof e.isDesiredProduct)return"isDesiredProduct: boolean expected";if(null!=e.measurements&&e.hasOwnProperty("measurements")){if(!Array.isArray(e.measurements))return"measurements: array expected";for(let t=0;t<e.measurements.length;++t){let r=$root.ord.ProductMeasurement.verify(e.measurements[t]);if(r)return"measurements."+r}}if(null!=e.isolatedColor&&e.hasOwnProperty("isolatedColor")&&!$util.isString(e.isolatedColor))return"isolatedColor: string expected";if(null!=e.texture&&e.hasOwnProperty("texture")){let t=$root.ord.Texture.verify(e.texture);if(t)return"texture."+t}if(null!=e.features&&e.hasOwnProperty("features")){if(!$util.isObject(e.features))return"features: object expected";let t=Object.keys(e.features);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.features[t[r]]);if(o)return"features."+o}}if(null!=e.reactionRole&&e.hasOwnProperty("reactionRole"))switch(e.reactionRole){default:return"reactionRole: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:}return null},e.fromObject=function(e){if(e instanceof $root.ord.ProductCompound)return e;let t=new $root.ord.ProductCompound;if(e.identifiers){if(!Array.isArray(e.identifiers))throw TypeError(".ord.ProductCompound.identifiers: array expected");t.identifiers=[];for(let r=0;r<e.identifiers.length;++r){if("object"!=typeof e.identifiers[r])throw TypeError(".ord.ProductCompound.identifiers: object expected");t.identifiers[r]=$root.ord.CompoundIdentifier.fromObject(e.identifiers[r])}}if(null!=e.isDesiredProduct&&(t.isDesiredProduct=Boolean(e.isDesiredProduct)),e.measurements){if(!Array.isArray(e.measurements))throw TypeError(".ord.ProductCompound.measurements: array expected");t.measurements=[];for(let r=0;r<e.measurements.length;++r){if("object"!=typeof e.measurements[r])throw TypeError(".ord.ProductCompound.measurements: object expected");t.measurements[r]=$root.ord.ProductMeasurement.fromObject(e.measurements[r])}}if(null!=e.isolatedColor&&(t.isolatedColor=String(e.isolatedColor)),null!=e.texture){if("object"!=typeof e.texture)throw TypeError(".ord.ProductCompound.texture: object expected");t.texture=$root.ord.Texture.fromObject(e.texture)}if(e.features){if("object"!=typeof e.features)throw TypeError(".ord.ProductCompound.features: object expected");t.features={};for(let r=Object.keys(e.features),o=0;o<r.length;++o){if("object"!=typeof e.features[r[o]])throw TypeError(".ord.ProductCompound.features: object expected");t.features[r[o]]=$root.ord.Data.fromObject(e.features[r[o]])}}switch(e.reactionRole){default:if("number"==typeof e.reactionRole){t.reactionRole=e.reactionRole;break}break;case"UNSPECIFIED":case 0:t.reactionRole=0;break;case"REACTANT":case 1:t.reactionRole=1;break;case"REAGENT":case 2:t.reactionRole=2;break;case"SOLVENT":case 3:t.reactionRole=3;break;case"CATALYST":case 4:t.reactionRole=4;break;case"WORKUP":case 5:t.reactionRole=5;break;case"INTERNAL_STANDARD":case 6:t.reactionRole=6;break;case"AUTHENTIC_STANDARD":case 7:t.reactionRole=7;break;case"PRODUCT":case 8:t.reactionRole=8;break;case"BYPRODUCT":case 9:t.reactionRole=9;break;case"SIDE_PRODUCT":case 10:t.reactionRole=10}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.identifiers=[],o.measurements=[]),(t.objects||t.defaults)&&(o.features={}),t.defaults&&(o.isolatedColor="",o.texture=null,o.reactionRole=t.enums===String?"UNSPECIFIED":0),e.identifiers&&e.identifiers.length){o.identifiers=[];for(let r=0;r<e.identifiers.length;++r)o.identifiers[r]=$root.ord.CompoundIdentifier.toObject(e.identifiers[r],t)}if(null!=e.isDesiredProduct&&e.hasOwnProperty("isDesiredProduct")&&(o.isDesiredProduct=e.isDesiredProduct,t.oneofs&&(o._isDesiredProduct="isDesiredProduct")),e.measurements&&e.measurements.length){o.measurements=[];for(let r=0;r<e.measurements.length;++r)o.measurements[r]=$root.ord.ProductMeasurement.toObject(e.measurements[r],t)}if(null!=e.isolatedColor&&e.hasOwnProperty("isolatedColor")&&(o.isolatedColor=e.isolatedColor),null!=e.texture&&e.hasOwnProperty("texture")&&(o.texture=$root.ord.Texture.toObject(e.texture,t)),e.features&&(r=Object.keys(e.features)).length){o.features={};for(let n=0;n<r.length;++n)o.features[r[n]]=$root.ord.Data.toObject(e.features[r[n]],t)}return null!=e.reactionRole&&e.hasOwnProperty("reactionRole")&&(o.reactionRole=t.enums===String?void 0===$root.ord.ReactionRole.ReactionRoleType[e.reactionRole]?e.reactionRole:$root.ord.ReactionRole.ReactionRoleType[e.reactionRole]:e.reactionRole),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ProductCompound"},e}(),e.ProductMeasurement=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.analysisKey="",e.prototype.type=0,e.prototype.details="",e.prototype.usesInternalStandard=null,e.prototype.isNormalized=null,e.prototype.usesAuthenticStandard=null,e.prototype.authenticStandard=null,e.prototype.percentage=null,e.prototype.floatValue=null,e.prototype.stringValue=null,e.prototype.amount=null,e.prototype.retentionTime=null,e.prototype.massSpecDetails=null,e.prototype.selectivity=null,e.prototype.wavelength=null,Object.defineProperty(e.prototype,"_usesInternalStandard",{get:$util.oneOfGetter(t=["usesInternalStandard"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isNormalized",{get:$util.oneOfGetter(t=["isNormalized"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_usesAuthenticStandard",{get:$util.oneOfGetter(t=["usesAuthenticStandard"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"value",{get:$util.oneOfGetter(t=["percentage","floatValue","stringValue","amount"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.analysisKey&&Object.hasOwnProperty.call(e,"analysisKey")&&t.uint32(10).string(e.analysisKey),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(26).string(e.details),null!=e.usesInternalStandard&&Object.hasOwnProperty.call(e,"usesInternalStandard")&&t.uint32(32).bool(e.usesInternalStandard),null!=e.isNormalized&&Object.hasOwnProperty.call(e,"isNormalized")&&t.uint32(40).bool(e.isNormalized),null!=e.usesAuthenticStandard&&Object.hasOwnProperty.call(e,"usesAuthenticStandard")&&t.uint32(48).bool(e.usesAuthenticStandard),null!=e.authenticStandard&&Object.hasOwnProperty.call(e,"authenticStandard")&&$root.ord.Compound.encode(e.authenticStandard,t.uint32(58).fork()).ldelim(),null!=e.percentage&&Object.hasOwnProperty.call(e,"percentage")&&$root.ord.Percentage.encode(e.percentage,t.uint32(66).fork()).ldelim(),null!=e.floatValue&&Object.hasOwnProperty.call(e,"floatValue")&&$root.ord.FloatValue.encode(e.floatValue,t.uint32(74).fork()).ldelim(),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(82).string(e.stringValue),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&$root.ord.Amount.encode(e.amount,t.uint32(90).fork()).ldelim(),null!=e.retentionTime&&Object.hasOwnProperty.call(e,"retentionTime")&&$root.ord.Time.encode(e.retentionTime,t.uint32(98).fork()).ldelim(),null!=e.massSpecDetails&&Object.hasOwnProperty.call(e,"massSpecDetails")&&$root.ord.ProductMeasurement.MassSpecMeasurementDetails.encode(e.massSpecDetails,t.uint32(106).fork()).ldelim(),null!=e.selectivity&&Object.hasOwnProperty.call(e,"selectivity")&&$root.ord.ProductMeasurement.Selectivity.encode(e.selectivity,t.uint32(114).fork()).ldelim(),null!=e.wavelength&&Object.hasOwnProperty.call(e,"wavelength")&&$root.ord.Wavelength.encode(e.wavelength,t.uint32(122).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ProductMeasurement;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.analysisKey=e.string();break;case 2:o.type=e.int32();break;case 3:o.details=e.string();break;case 4:o.usesInternalStandard=e.bool();break;case 5:o.isNormalized=e.bool();break;case 6:o.usesAuthenticStandard=e.bool();break;case 7:o.authenticStandard=$root.ord.Compound.decode(e,e.uint32());break;case 8:o.percentage=$root.ord.Percentage.decode(e,e.uint32());break;case 9:o.floatValue=$root.ord.FloatValue.decode(e,e.uint32());break;case 10:o.stringValue=e.string();break;case 11:o.amount=$root.ord.Amount.decode(e,e.uint32());break;case 12:o.retentionTime=$root.ord.Time.decode(e,e.uint32());break;case 13:o.massSpecDetails=$root.ord.ProductMeasurement.MassSpecMeasurementDetails.decode(e,e.uint32());break;case 14:o.selectivity=$root.ord.ProductMeasurement.Selectivity.decode(e,e.uint32());break;case 15:o.wavelength=$root.ord.Wavelength.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.analysisKey&&e.hasOwnProperty("analysisKey")&&!$util.isString(e.analysisKey))return"analysisKey: string expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.usesInternalStandard&&e.hasOwnProperty("usesInternalStandard")&&(t._usesInternalStandard=1,"boolean"!=typeof e.usesInternalStandard))return"usesInternalStandard: boolean expected";if(null!=e.isNormalized&&e.hasOwnProperty("isNormalized")&&(t._isNormalized=1,"boolean"!=typeof e.isNormalized))return"isNormalized: boolean expected";if(null!=e.usesAuthenticStandard&&e.hasOwnProperty("usesAuthenticStandard")&&(t._usesAuthenticStandard=1,"boolean"!=typeof e.usesAuthenticStandard))return"usesAuthenticStandard: boolean expected";if(null!=e.authenticStandard&&e.hasOwnProperty("authenticStandard")){let t=$root.ord.Compound.verify(e.authenticStandard);if(t)return"authenticStandard."+t}if(null!=e.percentage&&e.hasOwnProperty("percentage")){t.value=1;{let t=$root.ord.Percentage.verify(e.percentage);if(t)return"percentage."+t}}if(null!=e.floatValue&&e.hasOwnProperty("floatValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=$root.ord.FloatValue.verify(e.floatValue);if(t)return"floatValue."+t}}if(null!=e.stringValue&&e.hasOwnProperty("stringValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!$util.isString(e.stringValue))return"stringValue: string expected"}if(null!=e.amount&&e.hasOwnProperty("amount")){if(1===t.value)return"value: multiple values";t.value=1;{let t=$root.ord.Amount.verify(e.amount);if(t)return"amount."+t}}if(null!=e.retentionTime&&e.hasOwnProperty("retentionTime")){let t=$root.ord.Time.verify(e.retentionTime);if(t)return"retentionTime."+t}if(null!=e.massSpecDetails&&e.hasOwnProperty("massSpecDetails")){let t=$root.ord.ProductMeasurement.MassSpecMeasurementDetails.verify(e.massSpecDetails);if(t)return"massSpecDetails."+t}if(null!=e.selectivity&&e.hasOwnProperty("selectivity")){let t=$root.ord.ProductMeasurement.Selectivity.verify(e.selectivity);if(t)return"selectivity."+t}if(null!=e.wavelength&&e.hasOwnProperty("wavelength")){let t=$root.ord.Wavelength.verify(e.wavelength);if(t)return"wavelength."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ProductMeasurement)return e;let t=new $root.ord.ProductMeasurement;switch(null!=e.analysisKey&&(t.analysisKey=String(e.analysisKey)),e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"IDENTITY":case 2:t.type=2;break;case"YIELD":case 3:t.type=3;break;case"SELECTIVITY":case 4:t.type=4;break;case"PURITY":case 5:t.type=5;break;case"AREA":case 6:t.type=6;break;case"COUNTS":case 7:t.type=7;break;case"INTENSITY":case 8:t.type=8;break;case"AMOUNT":case 9:t.type=9}if(null!=e.details&&(t.details=String(e.details)),null!=e.usesInternalStandard&&(t.usesInternalStandard=Boolean(e.usesInternalStandard)),null!=e.isNormalized&&(t.isNormalized=Boolean(e.isNormalized)),null!=e.usesAuthenticStandard&&(t.usesAuthenticStandard=Boolean(e.usesAuthenticStandard)),null!=e.authenticStandard){if("object"!=typeof e.authenticStandard)throw TypeError(".ord.ProductMeasurement.authenticStandard: object expected");t.authenticStandard=$root.ord.Compound.fromObject(e.authenticStandard)}if(null!=e.percentage){if("object"!=typeof e.percentage)throw TypeError(".ord.ProductMeasurement.percentage: object expected");t.percentage=$root.ord.Percentage.fromObject(e.percentage)}if(null!=e.floatValue){if("object"!=typeof e.floatValue)throw TypeError(".ord.ProductMeasurement.floatValue: object expected");t.floatValue=$root.ord.FloatValue.fromObject(e.floatValue)}if(null!=e.stringValue&&(t.stringValue=String(e.stringValue)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".ord.ProductMeasurement.amount: object expected");t.amount=$root.ord.Amount.fromObject(e.amount)}if(null!=e.retentionTime){if("object"!=typeof e.retentionTime)throw TypeError(".ord.ProductMeasurement.retentionTime: object expected");t.retentionTime=$root.ord.Time.fromObject(e.retentionTime)}if(null!=e.massSpecDetails){if("object"!=typeof e.massSpecDetails)throw TypeError(".ord.ProductMeasurement.massSpecDetails: object expected");t.massSpecDetails=$root.ord.ProductMeasurement.MassSpecMeasurementDetails.fromObject(e.massSpecDetails)}if(null!=e.selectivity){if("object"!=typeof e.selectivity)throw TypeError(".ord.ProductMeasurement.selectivity: object expected");t.selectivity=$root.ord.ProductMeasurement.Selectivity.fromObject(e.selectivity)}if(null!=e.wavelength){if("object"!=typeof e.wavelength)throw TypeError(".ord.ProductMeasurement.wavelength: object expected");t.wavelength=$root.ord.Wavelength.fromObject(e.wavelength)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.analysisKey="",r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.authenticStandard=null,r.retentionTime=null,r.massSpecDetails=null,r.selectivity=null,r.wavelength=null),null!=e.analysisKey&&e.hasOwnProperty("analysisKey")&&(r.analysisKey=e.analysisKey),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ProductMeasurement.ProductMeasurementType[e.type]?e.type:$root.ord.ProductMeasurement.ProductMeasurementType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.usesInternalStandard&&e.hasOwnProperty("usesInternalStandard")&&(r.usesInternalStandard=e.usesInternalStandard,t.oneofs&&(r._usesInternalStandard="usesInternalStandard")),null!=e.isNormalized&&e.hasOwnProperty("isNormalized")&&(r.isNormalized=e.isNormalized,t.oneofs&&(r._isNormalized="isNormalized")),null!=e.usesAuthenticStandard&&e.hasOwnProperty("usesAuthenticStandard")&&(r.usesAuthenticStandard=e.usesAuthenticStandard,t.oneofs&&(r._usesAuthenticStandard="usesAuthenticStandard")),null!=e.authenticStandard&&e.hasOwnProperty("authenticStandard")&&(r.authenticStandard=$root.ord.Compound.toObject(e.authenticStandard,t)),null!=e.percentage&&e.hasOwnProperty("percentage")&&(r.percentage=$root.ord.Percentage.toObject(e.percentage,t),t.oneofs&&(r.value="percentage")),null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(r.floatValue=$root.ord.FloatValue.toObject(e.floatValue,t),t.oneofs&&(r.value="floatValue")),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(r.stringValue=e.stringValue,t.oneofs&&(r.value="stringValue")),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=$root.ord.Amount.toObject(e.amount,t),t.oneofs&&(r.value="amount")),null!=e.retentionTime&&e.hasOwnProperty("retentionTime")&&(r.retentionTime=$root.ord.Time.toObject(e.retentionTime,t)),null!=e.massSpecDetails&&e.hasOwnProperty("massSpecDetails")&&(r.massSpecDetails=$root.ord.ProductMeasurement.MassSpecMeasurementDetails.toObject(e.massSpecDetails,t)),null!=e.selectivity&&e.hasOwnProperty("selectivity")&&(r.selectivity=$root.ord.ProductMeasurement.Selectivity.toObject(e.selectivity,t)),null!=e.wavelength&&e.hasOwnProperty("wavelength")&&(r.wavelength=$root.ord.Wavelength.toObject(e.wavelength,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ProductMeasurement"},e.ProductMeasurementType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="IDENTITY"]=2,t[e[3]="YIELD"]=3,t[e[4]="SELECTIVITY"]=4,t[e[5]="PURITY"]=5,t[e[6]="AREA"]=6,t[e[7]="COUNTS"]=7,t[e[8]="INTENSITY"]=8,t[e[9]="AMOUNT"]=9,t}(),e.MassSpecMeasurementDetails=function(){function e(e){if(this.eicMasses=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.type=0,e.prototype.details="",e.prototype.ticMinimumMz=null,e.prototype.ticMaximumMz=null,e.prototype.eicMasses=$util.emptyArray,Object.defineProperty(e.prototype,"_ticMinimumMz",{get:$util.oneOfGetter(t=["ticMinimumMz"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_ticMaximumMz",{get:$util.oneOfGetter(t=["ticMaximumMz"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.ticMinimumMz&&Object.hasOwnProperty.call(e,"ticMinimumMz")&&t.uint32(29).float(e.ticMinimumMz),null!=e.ticMaximumMz&&Object.hasOwnProperty.call(e,"ticMaximumMz")&&t.uint32(37).float(e.ticMaximumMz),null!=e.eicMasses&&e.eicMasses.length){t.uint32(42).fork();for(let r=0;r<e.eicMasses.length;++r)t.float(e.eicMasses[r]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ProductMeasurement.MassSpecMeasurementDetails;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.ticMinimumMz=e.float();break;case 4:o.ticMaximumMz=e.float();break;case 5:if(o.eicMasses&&o.eicMasses.length||(o.eicMasses=[]),2==(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)o.eicMasses.push(e.float())}else o.eicMasses.push(e.float());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.ticMinimumMz&&e.hasOwnProperty("ticMinimumMz")&&(t._ticMinimumMz=1,"number"!=typeof e.ticMinimumMz))return"ticMinimumMz: number expected";if(null!=e.ticMaximumMz&&e.hasOwnProperty("ticMaximumMz")&&(t._ticMaximumMz=1,"number"!=typeof e.ticMaximumMz))return"ticMaximumMz: number expected";if(null!=e.eicMasses&&e.hasOwnProperty("eicMasses")){if(!Array.isArray(e.eicMasses))return"eicMasses: array expected";for(let t=0;t<e.eicMasses.length;++t)if("number"!=typeof e.eicMasses[t])return"eicMasses: number[] expected"}return null},e.fromObject=function(e){if(e instanceof $root.ord.ProductMeasurement.MassSpecMeasurementDetails)return e;let t=new $root.ord.ProductMeasurement.MassSpecMeasurementDetails;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"TIC":case 2:t.type=2;break;case"TIC_POSITIVE":case 3:t.type=3;break;case"TIC_NEGATIVE":case 4:t.type=4;break;case"EIC":case 5:t.type=5}if(null!=e.details&&(t.details=String(e.details)),null!=e.ticMinimumMz&&(t.ticMinimumMz=Number(e.ticMinimumMz)),null!=e.ticMaximumMz&&(t.ticMaximumMz=Number(e.ticMaximumMz)),e.eicMasses){if(!Array.isArray(e.eicMasses))throw TypeError(".ord.ProductMeasurement.MassSpecMeasurementDetails.eicMasses: array expected");t.eicMasses=[];for(let r=0;r<e.eicMasses.length;++r)t.eicMasses[r]=Number(e.eicMasses[r])}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.eicMasses=[]),t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ProductMeasurement.MassSpecMeasurementDetails.MassSpecMeasurementType[e.type]?e.type:$root.ord.ProductMeasurement.MassSpecMeasurementDetails.MassSpecMeasurementType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.ticMinimumMz&&e.hasOwnProperty("ticMinimumMz")&&(r.ticMinimumMz=t.json&&!isFinite(e.ticMinimumMz)?String(e.ticMinimumMz):e.ticMinimumMz,t.oneofs&&(r._ticMinimumMz="ticMinimumMz")),null!=e.ticMaximumMz&&e.hasOwnProperty("ticMaximumMz")&&(r.ticMaximumMz=t.json&&!isFinite(e.ticMaximumMz)?String(e.ticMaximumMz):e.ticMaximumMz,t.oneofs&&(r._ticMaximumMz="ticMaximumMz")),e.eicMasses&&e.eicMasses.length){r.eicMasses=[];for(let o=0;o<e.eicMasses.length;++o)r.eicMasses[o]=t.json&&!isFinite(e.eicMasses[o])?String(e.eicMasses[o]):e.eicMasses[o]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ProductMeasurement.MassSpecMeasurementDetails"},e.MassSpecMeasurementType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="TIC"]=2,t[e[3]="TIC_POSITIVE"]=3,t[e[4]="TIC_NEGATIVE"]=4,t[e[5]="EIC"]=5,t}(),e}(),e.Selectivity=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ProductMeasurement.Selectivity;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ProductMeasurement.Selectivity)return e;let t=new $root.ord.ProductMeasurement.Selectivity;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"EE":case 2:t.type=2;break;case"ER":case 3:t.type=3;break;case"DR":case 4:t.type=4;break;case"EZ":case 5:t.type=5;break;case"ZE":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ProductMeasurement.Selectivity.SelectivityType[e.type]?e.type:$root.ord.ProductMeasurement.Selectivity.SelectivityType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ProductMeasurement.Selectivity"},e.SelectivityType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="EE"]=2,t[e[3]="ER"]=3,t[e[4]="DR"]=4,t[e[5]="EZ"]=5,t[e[6]="ZE"]=6,t}(),e}(),e}(),e.DateTime=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.DateTime;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.string():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.value&&e.hasOwnProperty("value")&&!$util.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.DateTime)return e;let t=new $root.ord.DateTime;return null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.value=""),null!=e.value&&e.hasOwnProperty("value")&&(r.value=e.value),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.DateTime"},e}(),e.Analysis=function(){function e(e){if(this.data={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.type=0,e.prototype.details="",e.prototype.chmoId=0,e.prototype.isOfIsolatedSpecies=null,e.prototype.data=$util.emptyObject,e.prototype.instrumentManufacturer="",e.prototype.instrumentLastCalibrated=null,Object.defineProperty(e.prototype,"_isOfIsolatedSpecies",{get:$util.oneOfGetter(t=["isOfIsolatedSpecies"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.chmoId&&Object.hasOwnProperty.call(e,"chmoId")&&t.uint32(24).int32(e.chmoId),null!=e.isOfIsolatedSpecies&&Object.hasOwnProperty.call(e,"isOfIsolatedSpecies")&&t.uint32(32).bool(e.isOfIsolatedSpecies),null!=e.data&&Object.hasOwnProperty.call(e,"data"))for(let r=Object.keys(e.data),o=0;o<r.length;++o)t.uint32(42).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.data[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.instrumentManufacturer&&Object.hasOwnProperty.call(e,"instrumentManufacturer")&&t.uint32(50).string(e.instrumentManufacturer),null!=e.instrumentLastCalibrated&&Object.hasOwnProperty.call(e,"instrumentLastCalibrated")&&$root.ord.DateTime.encode(e.instrumentLastCalibrated,t.uint32(58).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.Analysis;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.type=e.int32();break;case 2:i.details=e.string();break;case 3:i.chmoId=e.int32();break;case 4:i.isOfIsolatedSpecies=e.bool();break;case 5:{i.data===$util.emptyObject&&(i.data={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.data[r]=o;break}case 6:i.instrumentManufacturer=e.string();break;case 7:i.instrumentLastCalibrated=$root.ord.DateTime.decode(e,e.uint32());break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.chmoId&&e.hasOwnProperty("chmoId")&&!$util.isInteger(e.chmoId))return"chmoId: integer expected";if(null!=e.isOfIsolatedSpecies&&e.hasOwnProperty("isOfIsolatedSpecies")&&"boolean"!=typeof e.isOfIsolatedSpecies)return"isOfIsolatedSpecies: boolean expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!$util.isObject(e.data))return"data: object expected";let t=Object.keys(e.data);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.data[t[r]]);if(o)return"data."+o}}if(null!=e.instrumentManufacturer&&e.hasOwnProperty("instrumentManufacturer")&&!$util.isString(e.instrumentManufacturer))return"instrumentManufacturer: string expected";if(null!=e.instrumentLastCalibrated&&e.hasOwnProperty("instrumentLastCalibrated")){let t=$root.ord.DateTime.verify(e.instrumentLastCalibrated);if(t)return"instrumentLastCalibrated."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.Analysis)return e;let t=new $root.ord.Analysis;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"LC":case 2:t.type=2;break;case"GC":case 3:t.type=3;break;case"IR":case 4:t.type=4;break;case"NMR_1H":case 5:t.type=5;break;case"NMR_13C":case 6:t.type=6;break;case"NMR_OTHER":case 7:t.type=7;break;case"MP":case 8:t.type=8;break;case"UV":case 9:t.type=9;break;case"TLC":case 10:t.type=10;break;case"MS":case 11:t.type=11;break;case"HRMS":case 12:t.type=12;break;case"MSMS":case 13:t.type=13;break;case"WEIGHT":case 14:t.type=14;break;case"LCMS":case 15:t.type=15;break;case"GCMS":case 16:t.type=16;break;case"ELSD":case 17:t.type=17;break;case"CD":case 18:t.type=18;break;case"SFC":case 19:t.type=19;break;case"EPR":case 20:t.type=20;break;case"XRD":case 21:t.type=21;break;case"RAMAN":case 22:t.type=22;break;case"ED":case 23:t.type=23;break;case"OPTICAL_ROTATION":case 24:t.type=24;break;case"CAD":case 25:t.type=25}if(null!=e.details&&(t.details=String(e.details)),null!=e.chmoId&&(t.chmoId=0|e.chmoId),null!=e.isOfIsolatedSpecies&&(t.isOfIsolatedSpecies=Boolean(e.isOfIsolatedSpecies)),e.data){if("object"!=typeof e.data)throw TypeError(".ord.Analysis.data: object expected");t.data={};for(let r=Object.keys(e.data),o=0;o<r.length;++o){if("object"!=typeof e.data[r[o]])throw TypeError(".ord.Analysis.data: object expected");t.data[r[o]]=$root.ord.Data.fromObject(e.data[r[o]])}}if(null!=e.instrumentManufacturer&&(t.instrumentManufacturer=String(e.instrumentManufacturer)),null!=e.instrumentLastCalibrated){if("object"!=typeof e.instrumentLastCalibrated)throw TypeError(".ord.Analysis.instrumentLastCalibrated: object expected");t.instrumentLastCalibrated=$root.ord.DateTime.fromObject(e.instrumentLastCalibrated)}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.objects||t.defaults)&&(o.data={}),t.defaults&&(o.type=t.enums===String?"UNSPECIFIED":0,o.details="",o.chmoId=0,o.instrumentManufacturer="",o.instrumentLastCalibrated=null),null!=e.type&&e.hasOwnProperty("type")&&(o.type=t.enums===String?void 0===$root.ord.Analysis.AnalysisType[e.type]?e.type:$root.ord.Analysis.AnalysisType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(o.details=e.details),null!=e.chmoId&&e.hasOwnProperty("chmoId")&&(o.chmoId=e.chmoId),null!=e.isOfIsolatedSpecies&&e.hasOwnProperty("isOfIsolatedSpecies")&&(o.isOfIsolatedSpecies=e.isOfIsolatedSpecies,t.oneofs&&(o._isOfIsolatedSpecies="isOfIsolatedSpecies")),e.data&&(r=Object.keys(e.data)).length){o.data={};for(let n=0;n<r.length;++n)o.data[r[n]]=$root.ord.Data.toObject(e.data[r[n]],t)}return null!=e.instrumentManufacturer&&e.hasOwnProperty("instrumentManufacturer")&&(o.instrumentManufacturer=e.instrumentManufacturer),null!=e.instrumentLastCalibrated&&e.hasOwnProperty("instrumentLastCalibrated")&&(o.instrumentLastCalibrated=$root.ord.DateTime.toObject(e.instrumentLastCalibrated,t)),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Analysis"},e.AnalysisType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="LC"]=2,t[e[3]="GC"]=3,t[e[4]="IR"]=4,t[e[5]="NMR_1H"]=5,t[e[6]="NMR_13C"]=6,t[e[7]="NMR_OTHER"]=7,t[e[8]="MP"]=8,t[e[9]="UV"]=9,t[e[10]="TLC"]=10,t[e[11]="MS"]=11,t[e[12]="HRMS"]=12,t[e[13]="MSMS"]=13,t[e[14]="WEIGHT"]=14,t[e[15]="LCMS"]=15,t[e[16]="GCMS"]=16,t[e[17]="ELSD"]=17,t[e[18]="CD"]=18,t[e[19]="SFC"]=19,t[e[20]="EPR"]=20,t[e[21]="XRD"]=21,t[e[22]="RAMAN"]=22,t[e[23]="ED"]=23,t[e[24]="OPTICAL_ROTATION"]=24,t[e[25]="CAD"]=25,t}(),e}(),e.ReactionProvenance=function(){function e(e){if(this.recordModified=[],this.reactionMetadata={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.experimenter=null,e.prototype.city="",e.prototype.experimentStart=null,e.prototype.doi="",e.prototype.patent="",e.prototype.publicationUrl="",e.prototype.recordCreated=null,e.prototype.recordModified=$util.emptyArray,e.prototype.reactionMetadata=$util.emptyObject,e.prototype.isMined=null,Object.defineProperty(e.prototype,"_isMined",{get:$util.oneOfGetter(t=["isMined"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.experimenter&&Object.hasOwnProperty.call(e,"experimenter")&&$root.ord.Person.encode(e.experimenter,t.uint32(10).fork()).ldelim(),null!=e.city&&Object.hasOwnProperty.call(e,"city")&&t.uint32(18).string(e.city),null!=e.experimentStart&&Object.hasOwnProperty.call(e,"experimentStart")&&$root.ord.DateTime.encode(e.experimentStart,t.uint32(26).fork()).ldelim(),null!=e.doi&&Object.hasOwnProperty.call(e,"doi")&&t.uint32(34).string(e.doi),null!=e.patent&&Object.hasOwnProperty.call(e,"patent")&&t.uint32(42).string(e.patent),null!=e.publicationUrl&&Object.hasOwnProperty.call(e,"publicationUrl")&&t.uint32(50).string(e.publicationUrl),null!=e.recordCreated&&Object.hasOwnProperty.call(e,"recordCreated")&&$root.ord.RecordEvent.encode(e.recordCreated,t.uint32(58).fork()).ldelim(),null!=e.recordModified&&e.recordModified.length)for(let r=0;r<e.recordModified.length;++r)$root.ord.RecordEvent.encode(e.recordModified[r],t.uint32(66).fork()).ldelim();if(null!=e.reactionMetadata&&Object.hasOwnProperty.call(e,"reactionMetadata"))for(let r=Object.keys(e.reactionMetadata),o=0;o<r.length;++o)t.uint32(74).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.reactionMetadata[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.isMined&&Object.hasOwnProperty.call(e,"isMined")&&t.uint32(80).bool(e.isMined),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.ReactionProvenance;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.experimenter=$root.ord.Person.decode(e,e.uint32());break;case 2:i.city=e.string();break;case 3:i.experimentStart=$root.ord.DateTime.decode(e,e.uint32());break;case 4:i.doi=e.string();break;case 5:i.patent=e.string();break;case 6:i.publicationUrl=e.string();break;case 7:i.recordCreated=$root.ord.RecordEvent.decode(e,e.uint32());break;case 8:i.recordModified&&i.recordModified.length||(i.recordModified=[]),i.recordModified.push($root.ord.RecordEvent.decode(e,e.uint32()));break;case 9:{i.reactionMetadata===$util.emptyObject&&(i.reactionMetadata={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.reactionMetadata[r]=o;break}case 10:i.isMined=e.bool();break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.experimenter&&e.hasOwnProperty("experimenter")){let t=$root.ord.Person.verify(e.experimenter);if(t)return"experimenter."+t}if(null!=e.city&&e.hasOwnProperty("city")&&!$util.isString(e.city))return"city: string expected";if(null!=e.experimentStart&&e.hasOwnProperty("experimentStart")){let t=$root.ord.DateTime.verify(e.experimentStart);if(t)return"experimentStart."+t}if(null!=e.doi&&e.hasOwnProperty("doi")&&!$util.isString(e.doi))return"doi: string expected";if(null!=e.patent&&e.hasOwnProperty("patent")&&!$util.isString(e.patent))return"patent: string expected";if(null!=e.publicationUrl&&e.hasOwnProperty("publicationUrl")&&!$util.isString(e.publicationUrl))return"publicationUrl: string expected";if(null!=e.recordCreated&&e.hasOwnProperty("recordCreated")){let t=$root.ord.RecordEvent.verify(e.recordCreated);if(t)return"recordCreated."+t}if(null!=e.recordModified&&e.hasOwnProperty("recordModified")){if(!Array.isArray(e.recordModified))return"recordModified: array expected";for(let t=0;t<e.recordModified.length;++t){let r=$root.ord.RecordEvent.verify(e.recordModified[t]);if(r)return"recordModified."+r}}if(null!=e.reactionMetadata&&e.hasOwnProperty("reactionMetadata")){if(!$util.isObject(e.reactionMetadata))return"reactionMetadata: object expected";let t=Object.keys(e.reactionMetadata);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.reactionMetadata[t[r]]);if(o)return"reactionMetadata."+o}}return null!=e.isMined&&e.hasOwnProperty("isMined")&&"boolean"!=typeof e.isMined?"isMined: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionProvenance)return e;let t=new $root.ord.ReactionProvenance;if(null!=e.experimenter){if("object"!=typeof e.experimenter)throw TypeError(".ord.ReactionProvenance.experimenter: object expected");t.experimenter=$root.ord.Person.fromObject(e.experimenter)}if(null!=e.city&&(t.city=String(e.city)),null!=e.experimentStart){if("object"!=typeof e.experimentStart)throw TypeError(".ord.ReactionProvenance.experimentStart: object expected");t.experimentStart=$root.ord.DateTime.fromObject(e.experimentStart)}if(null!=e.doi&&(t.doi=String(e.doi)),null!=e.patent&&(t.patent=String(e.patent)),null!=e.publicationUrl&&(t.publicationUrl=String(e.publicationUrl)),null!=e.recordCreated){if("object"!=typeof e.recordCreated)throw TypeError(".ord.ReactionProvenance.recordCreated: object expected");t.recordCreated=$root.ord.RecordEvent.fromObject(e.recordCreated)}if(e.recordModified){if(!Array.isArray(e.recordModified))throw TypeError(".ord.ReactionProvenance.recordModified: array expected");t.recordModified=[];for(let r=0;r<e.recordModified.length;++r){if("object"!=typeof e.recordModified[r])throw TypeError(".ord.ReactionProvenance.recordModified: object expected");t.recordModified[r]=$root.ord.RecordEvent.fromObject(e.recordModified[r])}}if(e.reactionMetadata){if("object"!=typeof e.reactionMetadata)throw TypeError(".ord.ReactionProvenance.reactionMetadata: object expected");t.reactionMetadata={};for(let r=Object.keys(e.reactionMetadata),o=0;o<r.length;++o){if("object"!=typeof e.reactionMetadata[r[o]])throw TypeError(".ord.ReactionProvenance.reactionMetadata: object expected");t.reactionMetadata[r[o]]=$root.ord.Data.fromObject(e.reactionMetadata[r[o]])}}return null!=e.isMined&&(t.isMined=Boolean(e.isMined)),t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.recordModified=[]),(t.objects||t.defaults)&&(o.reactionMetadata={}),t.defaults&&(o.experimenter=null,o.city="",o.experimentStart=null,o.doi="",o.patent="",o.publicationUrl="",o.recordCreated=null),null!=e.experimenter&&e.hasOwnProperty("experimenter")&&(o.experimenter=$root.ord.Person.toObject(e.experimenter,t)),null!=e.city&&e.hasOwnProperty("city")&&(o.city=e.city),null!=e.experimentStart&&e.hasOwnProperty("experimentStart")&&(o.experimentStart=$root.ord.DateTime.toObject(e.experimentStart,t)),null!=e.doi&&e.hasOwnProperty("doi")&&(o.doi=e.doi),null!=e.patent&&e.hasOwnProperty("patent")&&(o.patent=e.patent),null!=e.publicationUrl&&e.hasOwnProperty("publicationUrl")&&(o.publicationUrl=e.publicationUrl),null!=e.recordCreated&&e.hasOwnProperty("recordCreated")&&(o.recordCreated=$root.ord.RecordEvent.toObject(e.recordCreated,t)),e.recordModified&&e.recordModified.length){o.recordModified=[];for(let r=0;r<e.recordModified.length;++r)o.recordModified[r]=$root.ord.RecordEvent.toObject(e.recordModified[r],t)}if(e.reactionMetadata&&(r=Object.keys(e.reactionMetadata)).length){o.reactionMetadata={};for(let n=0;n<r.length;++n)o.reactionMetadata[r[n]]=$root.ord.Data.toObject(e.reactionMetadata[r[n]],t)}return null!=e.isMined&&e.hasOwnProperty("isMined")&&(o.isMined=e.isMined,t.oneofs&&(o._isMined="isMined")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionProvenance"},e}(),e.Person=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.username="",e.prototype.name="",e.prototype.orcid="",e.prototype.organization="",e.prototype.email="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.username&&Object.hasOwnProperty.call(e,"username")&&t.uint32(10).string(e.username),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.orcid&&Object.hasOwnProperty.call(e,"orcid")&&t.uint32(26).string(e.orcid),null!=e.organization&&Object.hasOwnProperty.call(e,"organization")&&t.uint32(34).string(e.organization),null!=e.email&&Object.hasOwnProperty.call(e,"email")&&t.uint32(42).string(e.email),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Person;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.username=e.string();break;case 2:o.name=e.string();break;case 3:o.orcid=e.string();break;case 4:o.organization=e.string();break;case 5:o.email=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.username&&e.hasOwnProperty("username")&&!$util.isString(e.username)?"username: string expected":null!=e.name&&e.hasOwnProperty("name")&&!$util.isString(e.name)?"name: string expected":null!=e.orcid&&e.hasOwnProperty("orcid")&&!$util.isString(e.orcid)?"orcid: string expected":null!=e.organization&&e.hasOwnProperty("organization")&&!$util.isString(e.organization)?"organization: string expected":null!=e.email&&e.hasOwnProperty("email")&&!$util.isString(e.email)?"email: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Person)return e;let t=new $root.ord.Person;return null!=e.username&&(t.username=String(e.username)),null!=e.name&&(t.name=String(e.name)),null!=e.orcid&&(t.orcid=String(e.orcid)),null!=e.organization&&(t.organization=String(e.organization)),null!=e.email&&(t.email=String(e.email)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.username="",r.name="",r.orcid="",r.organization="",r.email=""),null!=e.username&&e.hasOwnProperty("username")&&(r.username=e.username),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.orcid&&e.hasOwnProperty("orcid")&&(r.orcid=e.orcid),null!=e.organization&&e.hasOwnProperty("organization")&&(r.organization=e.organization),null!=e.email&&e.hasOwnProperty("email")&&(r.email=e.email),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Person"},e}(),e.RecordEvent=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.time=null,e.prototype.person=null,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.DateTime.encode(e.time,t.uint32(10).fork()).ldelim(),null!=e.person&&Object.hasOwnProperty.call(e,"person")&&$root.ord.Person.encode(e.person,t.uint32(18).fork()).ldelim(),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(26).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.RecordEvent;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.time=$root.ord.DateTime.decode(e,e.uint32());break;case 2:o.person=$root.ord.Person.decode(e,e.uint32());break;case 3:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.DateTime.verify(e.time);if(t)return"time."+t}if(null!=e.person&&e.hasOwnProperty("person")){let t=$root.ord.Person.verify(e.person);if(t)return"person."+t}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.RecordEvent)return e;let t=new $root.ord.RecordEvent;if(null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.RecordEvent.time: object expected");t.time=$root.ord.DateTime.fromObject(e.time)}if(null!=e.person){if("object"!=typeof e.person)throw TypeError(".ord.RecordEvent.person: object expected");t.person=$root.ord.Person.fromObject(e.person)}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.time=null,r.person=null,r.details=""),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.DateTime.toObject(e.time,t)),null!=e.person&&e.hasOwnProperty("person")&&(r.person=$root.ord.Person.toObject(e.person,t)),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.RecordEvent"},e}(),e.Time=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Time;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 4:case 1:case 2:case 3:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Time)return e;let t=new $root.ord.Time;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"DAY":case 4:t.units=4;break;case"HOUR":case 1:t.units=1;break;case"MINUTE":case 2:t.units=2;break;case"SECOND":case 3:t.units=3}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Time.TimeUnit[e.units]?e.units:$root.ord.Time.TimeUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Time"},e.TimeUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[4]="DAY"]=4,t[e[1]="HOUR"]=1,t[e[2]="MINUTE"]=2,t[e[3]="SECOND"]=3,t}(),e}(),e.Mass=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Mass;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Mass)return e;let t=new $root.ord.Mass;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"KILOGRAM":case 1:t.units=1;break;case"GRAM":case 2:t.units=2;break;case"MILLIGRAM":case 3:t.units=3;break;case"MICROGRAM":case 4:t.units=4}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Mass.MassUnit[e.units]?e.units:$root.ord.Mass.MassUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Mass"},e.MassUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="KILOGRAM"]=1,t[e[2]="GRAM"]=2,t[e[3]="MILLIGRAM"]=3,t[e[4]="MICROGRAM"]=4,t}(),e}(),e.Moles=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Moles;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Moles)return e;let t=new $root.ord.Moles;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"MOLE":case 1:t.units=1;break;case"MILLIMOLE":case 2:t.units=2;break;case"MICROMOLE":case 3:t.units=3;break;case"NANOMOLE":case 4:t.units=4}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Moles.MolesUnit[e.units]?e.units:$root.ord.Moles.MolesUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Moles"},e.MolesUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="MOLE"]=1,t[e[2]="MILLIMOLE"]=2,t[e[3]="MICROMOLE"]=3,t[e[4]="NANOMOLE"]=4,t}(),e}(),e.Volume=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Volume;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Volume)return e;let t=new $root.ord.Volume;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"LITER":case 1:t.units=1;break;case"MILLILITER":case 2:t.units=2;break;case"MICROLITER":case 3:t.units=3;break;case"NANOLITER":case 4:t.units=4}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Volume.VolumeUnit[e.units]?e.units:$root.ord.Volume.VolumeUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Volume"},e.VolumeUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="LITER"]=1,t[e[2]="MILLILITER"]=2,t[e[3]="MICROLITER"]=3,t[e[4]="NANOLITER"]=4,t}(),e}(),e.Concentration=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Concentration;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Concentration)return e;let t=new $root.ord.Concentration;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"MOLAR":case 1:t.units=1;break;case"MILLIMOLAR":case 2:t.units=2;break;case"MICROMOLAR":case 3:t.units=3}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Concentration.ConcentrationUnit[e.units]?e.units:$root.ord.Concentration.ConcentrationUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Concentration"},e.ConcentrationUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="MOLAR"]=1,t[e[2]="MILLIMOLAR"]=2,t[e[3]="MICROMOLAR"]=3,t}(),e}(),e.Pressure=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Pressure;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Pressure)return e;let t=new $root.ord.Pressure;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"BAR":case 1:t.units=1;break;case"ATMOSPHERE":case 2:t.units=2;break;case"PSI":case 3:t.units=3;break;case"KPSI":case 4:t.units=4;break;case"PASCAL":case 5:t.units=5;break;case"KILOPASCAL":case 6:t.units=6;break;case"TORR":case 7:t.units=7;break;case"MM_HG":case 8:t.units=8}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Pressure.PressureUnit[e.units]?e.units:$root.ord.Pressure.PressureUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Pressure"},e.PressureUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="BAR"]=1,t[e[2]="ATMOSPHERE"]=2,t[e[3]="PSI"]=3,t[e[4]="KPSI"]=4,t[e[5]="PASCAL"]=5,t[e[6]="KILOPASCAL"]=6,t[e[7]="TORR"]=7,t[e[8]="MM_HG"]=8,t}(),e}(),e.Temperature=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Temperature;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Temperature)return e;let t=new $root.ord.Temperature;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"CELSIUS":case 1:t.units=1;break;case"FAHRENHEIT":case 2:t.units=2;break;case"KELVIN":case 3:t.units=3}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Temperature.TemperatureUnit[e.units]?e.units:$root.ord.Temperature.TemperatureUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Temperature"},e.TemperatureUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CELSIUS"]=1,t[e[2]="FAHRENHEIT"]=2,t[e[3]="KELVIN"]=3,t}(),e}(),e.Current=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Current;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Current)return e;let t=new $root.ord.Current;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"AMPERE":case 1:t.units=1;break;case"MILLIAMPERE":case 2:t.units=2}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Current.CurrentUnit[e.units]?e.units:$root.ord.Current.CurrentUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Current"},e.CurrentUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="AMPERE"]=1,t[e[2]="MILLIAMPERE"]=2,t}(),e}(),e.Voltage=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Voltage;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Voltage)return e;let t=new $root.ord.Voltage;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"VOLT":case 1:t.units=1;break;case"MILLIVOLT":case 2:t.units=2}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Voltage.VoltageUnit[e.units]?e.units:$root.ord.Voltage.VoltageUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Voltage"},e.VoltageUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="VOLT"]=1,t[e[2]="MILLIVOLT"]=2,t}(),e}(),e.Length=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Length;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Length)return e;let t=new $root.ord.Length;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"CENTIMETER":case 1:t.units=1;break;case"MILLIMETER":case 2:t.units=2;break;case"METER":case 3:t.units=3;break;case"INCH":case 4:t.units=4;break;case"FOOT":case 5:t.units=5}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Length.LengthUnit[e.units]?e.units:$root.ord.Length.LengthUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Length"},e.LengthUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CENTIMETER"]=1,t[e[2]="MILLIMETER"]=2,t[e[3]="METER"]=3,t[e[4]="INCH"]=4,t[e[5]="FOOT"]=5,t}(),e}(),e.Wavelength=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Wavelength;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Wavelength)return e;let t=new $root.ord.Wavelength;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"NANOMETER":case 1:t.units=1;break;case"WAVENUMBER":case 2:t.units=2}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Wavelength.WavelengthUnit[e.units]?e.units:$root.ord.Wavelength.WavelengthUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Wavelength"},e.WavelengthUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="NANOMETER"]=1,t[e[2]="WAVENUMBER"]=2,t}(),e}(),e.FlowRate=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.FlowRate;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null},e.fromObject=function(e){if(e instanceof $root.ord.FlowRate)return e;let t=new $root.ord.FlowRate;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"MICROLITER_PER_MINUTE":case 1:t.units=1;break;case"MICROLITER_PER_SECOND":case 2:t.units=2;break;case"MILLILITER_PER_MINUTE":case 3:t.units=3;break;case"MILLILITER_PER_SECOND":case 4:t.units=4;break;case"MICROLITER_PER_HOUR":case 5:t.units=5}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.FlowRate.FlowRateUnit[e.units]?e.units:$root.ord.FlowRate.FlowRateUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.FlowRate"},e.FlowRateUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="MICROLITER_PER_MINUTE"]=1,t[e[2]="MICROLITER_PER_SECOND"]=2,t[e[3]="MILLILITER_PER_MINUTE"]=3,t[e[4]="MILLILITER_PER_SECOND"]=4,t[e[5]="MICROLITER_PER_HOUR"]=5,t}(),e}(),e.Percentage=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Percentage;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};return null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value)?"value: number expected":null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision)?"precision: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Percentage)return e;let t=new $root.ord.Percentage;return null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Percentage"},e}(),e.FloatValue=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.FloatValue;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};return null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value)?"value: number expected":null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision)?"precision: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord.FloatValue)return e;let t=new $root.ord.FloatValue;return null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.FloatValue"},e}(),e.Data=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.floatValue=null,e.prototype.integerValue=null,e.prototype.bytesValue=null,e.prototype.stringValue=null,e.prototype.url=null,e.prototype.description="",e.prototype.format="",Object.defineProperty(e.prototype,"kind",{get:$util.oneOfGetter(t=["floatValue","integerValue","bytesValue","stringValue","url"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.floatValue&&Object.hasOwnProperty.call(e,"floatValue")&&t.uint32(13).float(e.floatValue),null!=e.integerValue&&Object.hasOwnProperty.call(e,"integerValue")&&t.uint32(16).int32(e.integerValue),null!=e.bytesValue&&Object.hasOwnProperty.call(e,"bytesValue")&&t.uint32(26).bytes(e.bytesValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(34).string(e.stringValue),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(42).string(e.url),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(50).string(e.description),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(58).string(e.format),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Data;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.floatValue=e.float();break;case 2:o.integerValue=e.int32();break;case 3:o.bytesValue=e.bytes();break;case 4:o.stringValue=e.string();break;case 5:o.url=e.string();break;case 6:o.description=e.string();break;case 7:o.format=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(t.kind=1,"number"!=typeof e.floatValue))return"floatValue: number expected";if(null!=e.integerValue&&e.hasOwnProperty("integerValue")){if(1===t.kind)return"kind: multiple values";if(t.kind=1,!$util.isInteger(e.integerValue))return"integerValue: integer expected"}if(null!=e.bytesValue&&e.hasOwnProperty("bytesValue")){if(1===t.kind)return"kind: multiple values";if(t.kind=1,!(e.bytesValue&&"number"==typeof e.bytesValue.length||$util.isString(e.bytesValue)))return"bytesValue: buffer expected"}if(null!=e.stringValue&&e.hasOwnProperty("stringValue")){if(1===t.kind)return"kind: multiple values";if(t.kind=1,!$util.isString(e.stringValue))return"stringValue: string expected"}if(null!=e.url&&e.hasOwnProperty("url")){if(1===t.kind)return"kind: multiple values";if(t.kind=1,!$util.isString(e.url))return"url: string expected"}return null!=e.description&&e.hasOwnProperty("description")&&!$util.isString(e.description)?"description: string expected":null!=e.format&&e.hasOwnProperty("format")&&!$util.isString(e.format)?"format: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Data)return e;let t=new $root.ord.Data;return null!=e.floatValue&&(t.floatValue=Number(e.floatValue)),null!=e.integerValue&&(t.integerValue=0|e.integerValue),null!=e.bytesValue&&("string"==typeof e.bytesValue?$util.base64.decode(e.bytesValue,t.bytesValue=$util.newBuffer($util.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(t.bytesValue=e.bytesValue)),null!=e.stringValue&&(t.stringValue=String(e.stringValue)),null!=e.url&&(t.url=String(e.url)),null!=e.description&&(t.description=String(e.description)),null!=e.format&&(t.format=String(e.format)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.description="",r.format=""),null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(r.floatValue=t.json&&!isFinite(e.floatValue)?String(e.floatValue):e.floatValue,t.oneofs&&(r.kind="floatValue")),null!=e.integerValue&&e.hasOwnProperty("integerValue")&&(r.integerValue=e.integerValue,t.oneofs&&(r.kind="integerValue")),null!=e.bytesValue&&e.hasOwnProperty("bytesValue")&&(r.bytesValue=t.bytes===String?$util.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,t.oneofs&&(r.kind="bytesValue")),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(r.stringValue=e.stringValue,t.oneofs&&(r.kind="stringValue")),null!=e.url&&e.hasOwnProperty("url")&&(r.url=e.url,t.oneofs&&(r.kind="url")),null!=e.description&&e.hasOwnProperty("description")&&(r.description=e.description),null!=e.format&&e.hasOwnProperty("format")&&(r.format=e.format),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Data"},e}(),e})(),ord_test=$root.ord_test=(()=>{const e={};return e.Scalar=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.int32Value=0,e.prototype.int64Value=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.floatValue=null,e.prototype.stringValue="",e.prototype.bytesValue=$util.newBuffer([]),e.prototype.boolValue=null,Object.defineProperty(e.prototype,"_floatValue",{get:$util.oneOfGetter(t=["floatValue"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_boolValue",{get:$util.oneOfGetter(t=["boolValue"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.int32Value&&Object.hasOwnProperty.call(e,"int32Value")&&t.uint32(8).int32(e.int32Value),null!=e.int64Value&&Object.hasOwnProperty.call(e,"int64Value")&&t.uint32(16).int64(e.int64Value),null!=e.floatValue&&Object.hasOwnProperty.call(e,"floatValue")&&t.uint32(29).float(e.floatValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(34).string(e.stringValue),null!=e.bytesValue&&Object.hasOwnProperty.call(e,"bytesValue")&&t.uint32(42).bytes(e.bytesValue),null!=e.boolValue&&Object.hasOwnProperty.call(e,"boolValue")&&t.uint32(48).bool(e.boolValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.Scalar;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.int32Value=e.int32();break;case 2:o.int64Value=e.int64();break;case 3:o.floatValue=e.float();break;case 4:o.stringValue=e.string();break;case 5:o.bytesValue=e.bytes();break;case 6:o.boolValue=e.bool();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};return null!=e.int32Value&&e.hasOwnProperty("int32Value")&&!$util.isInteger(e.int32Value)?"int32Value: integer expected":null!=e.int64Value&&e.hasOwnProperty("int64Value")&&!($util.isInteger(e.int64Value)||e.int64Value&&$util.isInteger(e.int64Value.low)&&$util.isInteger(e.int64Value.high))?"int64Value: integer|Long expected":null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(t._floatValue=1,"number"!=typeof e.floatValue)?"floatValue: number expected":null!=e.stringValue&&e.hasOwnProperty("stringValue")&&!$util.isString(e.stringValue)?"stringValue: string expected":null!=e.bytesValue&&e.hasOwnProperty("bytesValue")&&!(e.bytesValue&&"number"==typeof e.bytesValue.length||$util.isString(e.bytesValue))?"bytesValue: buffer expected":null!=e.boolValue&&e.hasOwnProperty("boolValue")&&(t._boolValue=1,"boolean"!=typeof e.boolValue)?"boolValue: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord_test.Scalar)return e;let t=new $root.ord_test.Scalar;return null!=e.int32Value&&(t.int32Value=0|e.int32Value),null!=e.int64Value&&($util.Long?(t.int64Value=$util.Long.fromValue(e.int64Value)).unsigned=!1:"string"==typeof e.int64Value?t.int64Value=parseInt(e.int64Value,10):"number"==typeof e.int64Value?t.int64Value=e.int64Value:"object"==typeof e.int64Value&&(t.int64Value=new $util.LongBits(e.int64Value.low>>>0,e.int64Value.high>>>0).toNumber())),null!=e.floatValue&&(t.floatValue=Number(e.floatValue)),null!=e.stringValue&&(t.stringValue=String(e.stringValue)),null!=e.bytesValue&&("string"==typeof e.bytesValue?$util.base64.decode(e.bytesValue,t.bytesValue=$util.newBuffer($util.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(t.bytesValue=e.bytesValue)),null!=e.boolValue&&(t.boolValue=Boolean(e.boolValue)),t},e.toObject=function(e,t){t||(t={});let r={};if(t.defaults){if(r.int32Value=0,$util.Long){let e=new $util.Long(0,0,!1);r.int64Value=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else r.int64Value=t.longs===String?"0":0;r.stringValue="",t.bytes===String?r.bytesValue="":(r.bytesValue=[],t.bytes!==Array&&(r.bytesValue=$util.newBuffer(r.bytesValue)))}return null!=e.int32Value&&e.hasOwnProperty("int32Value")&&(r.int32Value=e.int32Value),null!=e.int64Value&&e.hasOwnProperty("int64Value")&&("number"==typeof e.int64Value?r.int64Value=t.longs===String?String(e.int64Value):e.int64Value:r.int64Value=t.longs===String?$util.Long.prototype.toString.call(e.int64Value):t.longs===Number?new $util.LongBits(e.int64Value.low>>>0,e.int64Value.high>>>0).toNumber():e.int64Value),null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(r.floatValue=t.json&&!isFinite(e.floatValue)?String(e.floatValue):e.floatValue,t.oneofs&&(r._floatValue="floatValue")),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(r.stringValue=e.stringValue),null!=e.bytesValue&&e.hasOwnProperty("bytesValue")&&(r.bytesValue=t.bytes===String?$util.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue),null!=e.boolValue&&e.hasOwnProperty("boolValue")&&(r.boolValue=e.boolValue,t.oneofs&&(r._boolValue="boolValue")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Scalar"},e}(),e.RepeatedScalar=function(){function e(e){if(this.values=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.values=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.values&&e.values.length){t.uint32(10).fork();for(let r=0;r<e.values.length;++r)t.float(e.values[r]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.RepeatedScalar;for(;e.pos<r;){let t=e.uint32();if(t>>>3==1)if(o.values&&o.values.length||(o.values=[]),2==(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)o.values.push(e.float())}else o.values.push(e.float());else e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.values&&e.hasOwnProperty("values")){if(!Array.isArray(e.values))return"values: array expected";for(let t=0;t<e.values.length;++t)if("number"!=typeof e.values[t])return"values: number[] expected"}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.RepeatedScalar)return e;let t=new $root.ord_test.RepeatedScalar;if(e.values){if(!Array.isArray(e.values))throw TypeError(".ord_test.RepeatedScalar.values: array expected");t.values=[];for(let r=0;r<e.values.length;++r)t.values[r]=Number(e.values[r])}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.values=[]),e.values&&e.values.length){r.values=[];for(let o=0;o<e.values.length;++o)r.values[o]=t.json&&!isFinite(e.values[o])?String(e.values[o]):e.values[o]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.RepeatedScalar"},e}(),e.Enum=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.Enum;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.int32():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.value&&e.hasOwnProperty("value"))switch(e.value){default:return"value: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.Enum)return e;let t=new $root.ord_test.Enum;switch(e.value){default:if("number"==typeof e.value){t.value=e.value;break}break;case"UNSPECIFIED":case 0:t.value=0;break;case"FIRST":case 1:t.value=1;break;case"SECOND":case 2:t.value=2}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.value=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.enums===String?void 0===$root.ord_test.Enum.EnumValues[e.value]?e.value:$root.ord_test.Enum.EnumValues[e.value]:e.value),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Enum"},e.EnumValues=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="FIRST"]=1,t[e[2]="SECOND"]=2,t}(),e}(),e.RepeatedEnum=function(){function e(e){if(this.values=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.values=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.values&&e.values.length){t.uint32(10).fork();for(let r=0;r<e.values.length;++r)t.int32(e.values[r]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.RepeatedEnum;for(;e.pos<r;){let t=e.uint32();if(t>>>3==1)if(o.values&&o.values.length||(o.values=[]),2==(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)o.values.push(e.int32())}else o.values.push(e.int32());else e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.values&&e.hasOwnProperty("values")){if(!Array.isArray(e.values))return"values: array expected";for(let t=0;t<e.values.length;++t)switch(e.values[t]){default:return"values: enum value[] expected";case 0:case 1:case 2:}}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.RepeatedEnum)return e;let t=new $root.ord_test.RepeatedEnum;if(e.values){if(!Array.isArray(e.values))throw TypeError(".ord_test.RepeatedEnum.values: array expected");t.values=[];for(let r=0;r<e.values.length;++r)switch(e.values[r]){default:if("number"==typeof e.values[r]){t.values[r]=e.values[r];break}case"UNSPECIFIED":case 0:t.values[r]=0;break;case"FIRST":case 1:t.values[r]=1;break;case"SECOND":case 2:t.values[r]=2}}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.values=[]),e.values&&e.values.length){r.values=[];for(let o=0;o<e.values.length;++o)r.values[o]=t.enums===String?void 0===$root.ord_test.RepeatedEnum.EnumValues[e.values[o]]?e.values[o]:$root.ord_test.RepeatedEnum.EnumValues[e.values[o]]:e.values[o]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.RepeatedEnum"},e.EnumValues=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="FIRST"]=1,t[e[2]="SECOND"]=2,t}(),e}(),e.Nested=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.child=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.child&&Object.hasOwnProperty.call(e,"child")&&$root.ord_test.Nested.Child.encode(e.child,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.Nested;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.child=$root.ord_test.Nested.Child.decode(e,e.uint32()):e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.child&&e.hasOwnProperty("child")){let t=$root.ord_test.Nested.Child.verify(e.child);if(t)return"child."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.Nested)return e;let t=new $root.ord_test.Nested;if(null!=e.child){if("object"!=typeof e.child)throw TypeError(".ord_test.Nested.child: object expected");t.child=$root.ord_test.Nested.Child.fromObject(e.child)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.child=null),null!=e.child&&e.hasOwnProperty("child")&&(r.child=$root.ord_test.Nested.Child.toObject(e.child,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Nested"},e.Child=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.Nested.Child;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.float():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";return null!=e.value&&e.hasOwnProperty("value")&&"number"!=typeof e.value?"value: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord_test.Nested.Child)return e;let t=new $root.ord_test.Nested.Child;return null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Nested.Child"},e}(),e}(),e.RepeatedNested=function(){function e(e){if(this.children=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.children=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.children&&e.children.length)for(let r=0;r<e.children.length;++r)$root.ord_test.RepeatedNested.Child.encode(e.children[r],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.RepeatedNested;for(;e.pos<r;){let t=e.uint32();t>>>3==1?(o.children&&o.children.length||(o.children=[]),o.children.push($root.ord_test.RepeatedNested.Child.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.children&&e.hasOwnProperty("children")){if(!Array.isArray(e.children))return"children: array expected";for(let t=0;t<e.children.length;++t){let r=$root.ord_test.RepeatedNested.Child.verify(e.children[t]);if(r)return"children."+r}}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.RepeatedNested)return e;let t=new $root.ord_test.RepeatedNested;if(e.children){if(!Array.isArray(e.children))throw TypeError(".ord_test.RepeatedNested.children: array expected");t.children=[];for(let r=0;r<e.children.length;++r){if("object"!=typeof e.children[r])throw TypeError(".ord_test.RepeatedNested.children: object expected");t.children[r]=$root.ord_test.RepeatedNested.Child.fromObject(e.children[r])}}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.children=[]),e.children&&e.children.length){r.children=[];for(let o=0;o<e.children.length;++o)r.children[o]=$root.ord_test.RepeatedNested.Child.toObject(e.children[o],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.RepeatedNested"},e.Child=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.RepeatedNested.Child;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.float():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";return null!=e.value&&e.hasOwnProperty("value")&&"number"!=typeof e.value?"value: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord_test.RepeatedNested.Child)return e;let t=new $root.ord_test.RepeatedNested.Child;return null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.RepeatedNested.Child"},e}(),e}(),e.Map=function(){function e(e){if(this.values={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.values=$util.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.values&&Object.hasOwnProperty.call(e,"values"))for(let r=Object.keys(e.values),o=0;o<r.length;++o)t.uint32(10).fork().uint32(10).string(r[o]).uint32(21).float(e.values[r[o]]).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord_test.Map;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:{i.values===$util.emptyObject&&(i.values={});let t=e.uint32()+e.pos;for(r="",o=0;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=e.float();break;default:e.skipType(7&t)}}i.values[r]=o;break}default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.values&&e.hasOwnProperty("values")){if(!$util.isObject(e.values))return"values: object expected";let t=Object.keys(e.values);for(let r=0;r<t.length;++r)if("number"!=typeof e.values[t[r]])return"values: number{k:string} expected"}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.Map)return e;let t=new $root.ord_test.Map;if(e.values){if("object"!=typeof e.values)throw TypeError(".ord_test.Map.values: object expected");t.values={};for(let r=Object.keys(e.values),o=0;o<r.length;++o)t.values[r[o]]=Number(e.values[r[o]])}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.objects||t.defaults)&&(o.values={}),e.values&&(r=Object.keys(e.values)).length){o.values={};for(let n=0;n<r.length;++n)o.values[r[n]]=t.json&&!isFinite(e.values[r[n]])?String(e.values[r[n]]):e.values[r[n]]}return o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Map"},e}(),e.MapNested=function(){function e(e){if(this.children={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.children=$util.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.children&&Object.hasOwnProperty.call(e,"children"))for(let r=Object.keys(e.children),o=0;o<r.length;++o)t.uint32(10).fork().uint32(10).string(r[o]),$root.ord_test.MapNested.Child.encode(e.children[r[o]],t.uint32(18).fork()).ldelim().ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord_test.MapNested;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:{i.children===$util.emptyObject&&(i.children={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord_test.MapNested.Child.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.children[r]=o;break}default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.children&&e.hasOwnProperty("children")){if(!$util.isObject(e.children))return"children: object expected";let t=Object.keys(e.children);for(let r=0;r<t.length;++r){let o=$root.ord_test.MapNested.Child.verify(e.children[t[r]]);if(o)return"children."+o}}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.MapNested)return e;let t=new $root.ord_test.MapNested;if(e.children){if("object"!=typeof e.children)throw TypeError(".ord_test.MapNested.children: object expected");t.children={};for(let r=Object.keys(e.children),o=0;o<r.length;++o){if("object"!=typeof e.children[r[o]])throw TypeError(".ord_test.MapNested.children: object expected");t.children[r[o]]=$root.ord_test.MapNested.Child.fromObject(e.children[r[o]])}}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.objects||t.defaults)&&(o.children={}),e.children&&(r=Object.keys(e.children)).length){o.children={};for(let n=0;n<r.length;++n)o.children[r[n]]=$root.ord_test.MapNested.Child.toObject(e.children[r[n]],t)}return o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.MapNested"},e.Child=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.MapNested.Child;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.float():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";return null!=e.value&&e.hasOwnProperty("value")&&"number"!=typeof e.value?"value: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord_test.MapNested.Child)return e;let t=new $root.ord_test.MapNested.Child;return null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.MapNested.Child"},e}(),e}(),e})()})();
1
+ (()=>{"use strict";var __webpack_modules__={45:e=>{e.exports=function(e,t){for(var r=new Array(arguments.length-1),o=0,n=2,i=!0;n<arguments.length;)r[o++]=arguments[n++];return new Promise((function(n,a){r[o]=function(e){if(i)if(i=!1,e)a(e);else{for(var t=new Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];n.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!1,a(e))}}))}},47:(e,t,r)=>{t.Service=r(595)},153:module=>{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}module.exports=inquire},158:(e,t,r)=>{e.exports=i;var o=r(618);(i.prototype=Object.create(o.prototype)).constructor=i;var n=r(610);function i(e){o.call(this,e)}i._configure=function(){n.Buffer&&(i.prototype._slice=n.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},239:(e,t,r)=>{e.exports=n;var o=r(610);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=n.zero=new n(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,o=(e-r)/4294967296>>>0;return t&&(o=~o>>>0,r=~r>>>0,++r>4294967295&&(r=0,++o>4294967295&&(o=0))),new n(r,o)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(o.isString(e)){if(!o.Long)return n.fromNumber(parseInt(e,10));e=o.Long.fromString(e)}return e.low||e.high?new n(e.low>>>0,e.high>>>0):i},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(e){return o.Long?new o.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;n.fromHash=function(e){return e===a?i:new n((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},n.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)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},358: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}},390:e=>{e.exports=function(e,t,r){var o=r||8192,n=o>>>1,i=null,a=o;return function(r){if(r<1||r>n)return e(r);a+r>o&&(i=e(o),a=0);var s=t.call(i,a,a+=r);return 7&a&&(a=1+(7|a)),s}}},394:(e,t,r)=>{var o=t;function n(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=r(449),o.BufferWriter=r(818),o.Reader=r(618),o.BufferReader=r(158),o.util=r(610),o.rpc=r(47),o.roots=r(529),o.configure=n,n()},410:e=>{function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),o=128===r[3];function n(e,o,n){t[0]=e,o[n]=r[0],o[n+1]=r[1],o[n+2]=r[2],o[n+3]=r[3]}function i(e,o,n){t[0]=e,o[n]=r[3],o[n+1]=r[2],o[n+2]=r[1],o[n+3]=r[0]}function a(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 s(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?n:i,e.writeFloatBE=o?i:n,e.readFloatLE=o?a:s,e.readFloatBE=o?s:a}():function(){function t(e,t,r,o){var n=t<0?1:0;if(n&&(t=-t),0===t)e(1/t>0?0:2147483648,r,o);else if(isNaN(t))e(2143289344,r,o);else if(t>34028234663852886e22)e((n<<31|2139095040)>>>0,r,o);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,o);else{var i=Math.floor(Math.log(t)/Math.LN2);e((n<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,o)}}function a(e,t,r){var o=e(t,r),n=2*(o>>31)+1,i=o>>>23&255,a=8388607&o;return 255===i?a?NaN:n*(1/0):0===i?1401298464324817e-60*n*a:n*Math.pow(2,i-150)*(a+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=a.bind(null,n),e.readFloatBE=a.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),o=128===r[7];function n(e,o,n){t[0]=e,o[n]=r[0],o[n+1]=r[1],o[n+2]=r[2],o[n+3]=r[3],o[n+4]=r[4],o[n+5]=r[5],o[n+6]=r[6],o[n+7]=r[7]}function i(e,o,n){t[0]=e,o[n]=r[7],o[n+1]=r[6],o[n+2]=r[5],o[n+3]=r[4],o[n+4]=r[3],o[n+5]=r[2],o[n+6]=r[1],o[n+7]=r[0]}function a(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 s(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?n:i,e.writeDoubleBE=o?i:n,e.readDoubleLE=o?a:s,e.readDoubleBE=o?s:a}():function(){function t(e,t,r,o,n,i){var a=o<0?1:0;if(a&&(o=-o),0===o)e(0,n,i+t),e(1/o>0?0:2147483648,n,i+r);else if(isNaN(o))e(0,n,i+t),e(2146959360,n,i+r);else if(o>17976931348623157e292)e(0,n,i+t),e((a<<31|2146435072)>>>0,n,i+r);else{var s;if(o<22250738585072014e-324)e((s=o/5e-324)>>>0,n,i+t),e((a<<31|s/4294967296)>>>0,n,i+r);else{var l=Math.floor(Math.log(o)/Math.LN2);1024===l&&(l=1023),e(4503599627370496*(s=o*Math.pow(2,-l))>>>0,n,i+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,n,i+r)}}}function a(e,t,r,o,n){var i=e(o,n+t),a=e(o,n+r),s=2*(a>>31)+1,l=a>>>20&2047,u=4294967296*(1048575&a)+i;return 2047===l?u?NaN:s*(1/0):0===l?5e-324*s*u:s*Math.pow(2,l-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=a.bind(null,n,0,4),e.readDoubleBE=a.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 n(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)},447:(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:55296==(64512&r)&&56320==(64512&e.charCodeAt(o+1))?(++o,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var o,n=null,i=[],a=0;t<r;)(o=e[t++])<128?i[a++]=o:o>191&&o<224?i[a++]=(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[a++]=55296+(o>>10),i[a++]=56320+(1023&o)):i[a++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,i)),a=0);return n?(a&&n.push(String.fromCharCode.apply(String,i.slice(0,a))),n.join("")):String.fromCharCode.apply(String,i.slice(0,a))},r.write=function(e,t,r){for(var o,n,i=r,a=0;a<e.length;++a)(o=e.charCodeAt(a))<128?t[r++]=o:o<2048?(t[r++]=o>>6|192,t[r++]=63&o|128):55296==(64512&o)&&56320==(64512&(n=e.charCodeAt(a+1)))?(o=65536+((1023&o)<<10)+(1023&n),++a,t[r++]=o>>18|240,t[r++]=o>>12&63|128,t[r++]=o>>6&63|128,t[r++]=63&o|128):(t[r++]=o>>12|224,t[r++]=o>>6&63|128,t[r++]=63&o|128);return r-i}},449:(e,t,r)=>{e.exports=d;var o,n=r(610),i=n.LongBits,a=n.base64,s=n.utf8;function l(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function u(){}function c(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new l(u,0,0),this.tail=this.head,this.states=null}var p=function(){return n.Buffer?function(){return(d.create=function(){return new o})()}:function(){return new d}};function f(e,t,r){t[r]=255&e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function h(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}d.create=p(),d.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(d.alloc=n.pool(d.alloc,n.Array.prototype.subarray)),d.prototype._push=function(e,t,r){return this.tail=this.tail.next=new l(e,t,r),this.len+=t,this},y.prototype=Object.create(l.prototype),y.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(m,10,i.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=i.from(e);return this._push(m,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(m,t.length(),t)},d.prototype.bool=function(e){return this._push(f,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(h,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=i.from(e);return this._push(h,4,t.lo)._push(h,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var b=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var o=0;o<e.length;++o)t[r+o]=e[o]};d.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(f,1,0);if(n.isString(e)){var r=d.alloc(t=a.length(e));a.decode(e,r,0),e=r}return this.uint32(t)._push(b,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(f,1,0)},d.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new l(u,0,0),this.len=0,this},d.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 l(u,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},d._configure=function(e){o=e,d.create=p(),o._configure()}},529:e=>{e.exports={}},595:(e,t,r)=>{e.exports=n;var o=r(610);function n(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");o.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(n.prototype=Object.create(o.EventEmitter.prototype)).constructor=n,n.prototype.rpcCall=function e(t,r,n,i,a){if(!i)throw TypeError("request must be specified");var s=this;if(!a)return o.asPromise(e,s,t,r,n,i);if(s.rpcImpl)try{return s.rpcImpl(t,r[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,r){if(e)return s.emit("error",e,t),a(e);if(null!==r){if(!(r instanceof n))try{r=n[s.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",r,t),a(null,r)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},n.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},610:function(e,t,r){var o=t;function n(e,t,r){for(var o=Object.keys(t),n=0;n<o.length;++n)void 0!==e[o[n]]&&r||(e[o[n]]=t[o[n]]);return e}function i(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&n(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}o.asPromise=r(45),o.base64=r(839),o.EventEmitter=r(358),o.float=r(410),o.inquire=r(153),o.utf8=r(447),o.pool=r(390),o.LongBits=r(239),o.isNode=Boolean(void 0!==r.g&&r.g&&r.g.process&&r.g.process.versions&&r.g.process.versions.node),o.global=o.isNode&&r.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o.isString=function(e){return"string"==typeof e||e instanceof String},o.isObject=function(e){return e&&"object"==typeof e},o.isset=o.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var r=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},o.merge=n,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=i,o.ProtocolError=i("ProtocolError"),o.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},o.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o._configure=function(){var e=o.Buffer;e?(o._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},o._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):o._Buffer_from=o._Buffer_allocUnsafe=null}},618:(e,t,r)=>{e.exports=l;var o,n=r(610),i=n.LongBits,a=n.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function l(e){this.buf=e,this.pos=0,this.len=e.length}var u,c="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},d=function(){return n.Buffer?function(e){return(l.create=function(e){return n.Buffer.isBuffer(e)?new o(e):c(e)})(e)}:c};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function f(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function y(){if(this.pos+8>this.len)throw s(this,8);return new i(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}l.create=d(),l.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,l.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return f(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|f(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},l.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},l.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw s(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var o=n.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},l.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},l.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},l.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:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){o=e,l.create=d(),o._configure();var t=n.Long?"toLong":"toNumber";n.merge(l.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return y.call(this)[t](!0)},sfixed64:function(){return y.call(this)[t](!1)}})}},818:(e,t,r)=>{e.exports=i;var o=r(449);(i.prototype=Object.create(o.prototype)).constructor=i;var n=r(610);function i(){o.call(this)}function a(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=n._Buffer_allocUnsafe,i.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var o=0;o<e.length;)t[r++]=e[o++]}},i.prototype.bytes=function(e){n.isString(e)&&(e=n._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},i._configure()},839:(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=new Array(64),n=new Array(123),i=0;i<64;)n[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 n,i=null,a=[],s=0,l=0;t<r;){var u=e[t++];switch(l){case 0:a[s++]=o[u>>2],n=(3&u)<<4,l=1;break;case 1:a[s++]=o[n|u>>4],n=(15&u)<<2,l=2;break;case 2:a[s++]=o[n|u>>6],a[s++]=o[63&u],l=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=o[n],a[s++]=61,1===l&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";r.decode=function(e,t,r){for(var o,i=r,s=0,l=0;l<e.length;){var u=e.charCodeAt(l++);if(61===u&&s>1)break;if(void 0===(u=n[u]))throw Error(a);switch(s){case 0:o=u,s=1;break;case 1:t[r++]=o<<2|(48&u)>>4,o=u,s=2;break;case 2:t[r++]=(15&o)<<4|(60&u)>>2,o=u,s=3;break;case 3:t[r++]=(3&o)<<6|u,s=0}}if(1===s)throw Error(a);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)}},946:(e,t,r)=>{e.exports=r(394)}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={},protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(946),protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__);const $Reader=protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.Reader,$Writer=protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.Writer,$util=protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util,$root=protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.roots.default||(protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.roots.default={}),ord=$root.ord=(()=>{const e={};return e.Reaction=function(){function e(e){if(this.identifiers=[],this.inputs={},this.observations=[],this.workups=[],this.outcomes=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.identifiers=$util.emptyArray,e.prototype.inputs=$util.emptyObject,e.prototype.setup=null,e.prototype.conditions=null,e.prototype.notes=null,e.prototype.observations=$util.emptyArray,e.prototype.workups=$util.emptyArray,e.prototype.outcomes=$util.emptyArray,e.prototype.provenance=null,e.prototype.reactionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.identifiers&&e.identifiers.length)for(let r=0;r<e.identifiers.length;++r)$root.ord.ReactionIdentifier.encode(e.identifiers[r],t.uint32(10).fork()).ldelim();if(null!=e.inputs&&Object.hasOwnProperty.call(e,"inputs"))for(let r=Object.keys(e.inputs),o=0;o<r.length;++o)t.uint32(18).fork().uint32(10).string(r[o]),$root.ord.ReactionInput.encode(e.inputs[r[o]],t.uint32(18).fork()).ldelim().ldelim();if(null!=e.setup&&Object.hasOwnProperty.call(e,"setup")&&$root.ord.ReactionSetup.encode(e.setup,t.uint32(26).fork()).ldelim(),null!=e.conditions&&Object.hasOwnProperty.call(e,"conditions")&&$root.ord.ReactionConditions.encode(e.conditions,t.uint32(34).fork()).ldelim(),null!=e.notes&&Object.hasOwnProperty.call(e,"notes")&&$root.ord.ReactionNotes.encode(e.notes,t.uint32(42).fork()).ldelim(),null!=e.observations&&e.observations.length)for(let r=0;r<e.observations.length;++r)$root.ord.ReactionObservation.encode(e.observations[r],t.uint32(50).fork()).ldelim();if(null!=e.workups&&e.workups.length)for(let r=0;r<e.workups.length;++r)$root.ord.ReactionWorkup.encode(e.workups[r],t.uint32(58).fork()).ldelim();if(null!=e.outcomes&&e.outcomes.length)for(let r=0;r<e.outcomes.length;++r)$root.ord.ReactionOutcome.encode(e.outcomes[r],t.uint32(66).fork()).ldelim();return null!=e.provenance&&Object.hasOwnProperty.call(e,"provenance")&&$root.ord.ReactionProvenance.encode(e.provenance,t.uint32(74).fork()).ldelim(),null!=e.reactionId&&Object.hasOwnProperty.call(e,"reactionId")&&t.uint32(82).string(e.reactionId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.Reaction;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.identifiers&&i.identifiers.length||(i.identifiers=[]),i.identifiers.push($root.ord.ReactionIdentifier.decode(e,e.uint32()));break;case 2:{i.inputs===$util.emptyObject&&(i.inputs={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.ReactionInput.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.inputs[r]=o;break}case 3:i.setup=$root.ord.ReactionSetup.decode(e,e.uint32());break;case 4:i.conditions=$root.ord.ReactionConditions.decode(e,e.uint32());break;case 5:i.notes=$root.ord.ReactionNotes.decode(e,e.uint32());break;case 6:i.observations&&i.observations.length||(i.observations=[]),i.observations.push($root.ord.ReactionObservation.decode(e,e.uint32()));break;case 7:i.workups&&i.workups.length||(i.workups=[]),i.workups.push($root.ord.ReactionWorkup.decode(e,e.uint32()));break;case 8:i.outcomes&&i.outcomes.length||(i.outcomes=[]),i.outcomes.push($root.ord.ReactionOutcome.decode(e,e.uint32()));break;case 9:i.provenance=$root.ord.ReactionProvenance.decode(e,e.uint32());break;case 10:i.reactionId=e.string();break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.identifiers&&e.hasOwnProperty("identifiers")){if(!Array.isArray(e.identifiers))return"identifiers: array expected";for(let t=0;t<e.identifiers.length;++t){let r=$root.ord.ReactionIdentifier.verify(e.identifiers[t]);if(r)return"identifiers."+r}}if(null!=e.inputs&&e.hasOwnProperty("inputs")){if(!$util.isObject(e.inputs))return"inputs: object expected";let t=Object.keys(e.inputs);for(let r=0;r<t.length;++r){let o=$root.ord.ReactionInput.verify(e.inputs[t[r]]);if(o)return"inputs."+o}}if(null!=e.setup&&e.hasOwnProperty("setup")){let t=$root.ord.ReactionSetup.verify(e.setup);if(t)return"setup."+t}if(null!=e.conditions&&e.hasOwnProperty("conditions")){let t=$root.ord.ReactionConditions.verify(e.conditions);if(t)return"conditions."+t}if(null!=e.notes&&e.hasOwnProperty("notes")){let t=$root.ord.ReactionNotes.verify(e.notes);if(t)return"notes."+t}if(null!=e.observations&&e.hasOwnProperty("observations")){if(!Array.isArray(e.observations))return"observations: array expected";for(let t=0;t<e.observations.length;++t){let r=$root.ord.ReactionObservation.verify(e.observations[t]);if(r)return"observations."+r}}if(null!=e.workups&&e.hasOwnProperty("workups")){if(!Array.isArray(e.workups))return"workups: array expected";for(let t=0;t<e.workups.length;++t){let r=$root.ord.ReactionWorkup.verify(e.workups[t]);if(r)return"workups."+r}}if(null!=e.outcomes&&e.hasOwnProperty("outcomes")){if(!Array.isArray(e.outcomes))return"outcomes: array expected";for(let t=0;t<e.outcomes.length;++t){let r=$root.ord.ReactionOutcome.verify(e.outcomes[t]);if(r)return"outcomes."+r}}if(null!=e.provenance&&e.hasOwnProperty("provenance")){let t=$root.ord.ReactionProvenance.verify(e.provenance);if(t)return"provenance."+t}return null!=e.reactionId&&e.hasOwnProperty("reactionId")&&!$util.isString(e.reactionId)?"reactionId: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Reaction)return e;let t=new $root.ord.Reaction;if(e.identifiers){if(!Array.isArray(e.identifiers))throw TypeError(".ord.Reaction.identifiers: array expected");t.identifiers=[];for(let r=0;r<e.identifiers.length;++r){if("object"!=typeof e.identifiers[r])throw TypeError(".ord.Reaction.identifiers: object expected");t.identifiers[r]=$root.ord.ReactionIdentifier.fromObject(e.identifiers[r])}}if(e.inputs){if("object"!=typeof e.inputs)throw TypeError(".ord.Reaction.inputs: object expected");t.inputs={};for(let r=Object.keys(e.inputs),o=0;o<r.length;++o){if("object"!=typeof e.inputs[r[o]])throw TypeError(".ord.Reaction.inputs: object expected");t.inputs[r[o]]=$root.ord.ReactionInput.fromObject(e.inputs[r[o]])}}if(null!=e.setup){if("object"!=typeof e.setup)throw TypeError(".ord.Reaction.setup: object expected");t.setup=$root.ord.ReactionSetup.fromObject(e.setup)}if(null!=e.conditions){if("object"!=typeof e.conditions)throw TypeError(".ord.Reaction.conditions: object expected");t.conditions=$root.ord.ReactionConditions.fromObject(e.conditions)}if(null!=e.notes){if("object"!=typeof e.notes)throw TypeError(".ord.Reaction.notes: object expected");t.notes=$root.ord.ReactionNotes.fromObject(e.notes)}if(e.observations){if(!Array.isArray(e.observations))throw TypeError(".ord.Reaction.observations: array expected");t.observations=[];for(let r=0;r<e.observations.length;++r){if("object"!=typeof e.observations[r])throw TypeError(".ord.Reaction.observations: object expected");t.observations[r]=$root.ord.ReactionObservation.fromObject(e.observations[r])}}if(e.workups){if(!Array.isArray(e.workups))throw TypeError(".ord.Reaction.workups: array expected");t.workups=[];for(let r=0;r<e.workups.length;++r){if("object"!=typeof e.workups[r])throw TypeError(".ord.Reaction.workups: object expected");t.workups[r]=$root.ord.ReactionWorkup.fromObject(e.workups[r])}}if(e.outcomes){if(!Array.isArray(e.outcomes))throw TypeError(".ord.Reaction.outcomes: array expected");t.outcomes=[];for(let r=0;r<e.outcomes.length;++r){if("object"!=typeof e.outcomes[r])throw TypeError(".ord.Reaction.outcomes: object expected");t.outcomes[r]=$root.ord.ReactionOutcome.fromObject(e.outcomes[r])}}if(null!=e.provenance){if("object"!=typeof e.provenance)throw TypeError(".ord.Reaction.provenance: object expected");t.provenance=$root.ord.ReactionProvenance.fromObject(e.provenance)}return null!=e.reactionId&&(t.reactionId=String(e.reactionId)),t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.identifiers=[],o.observations=[],o.workups=[],o.outcomes=[]),(t.objects||t.defaults)&&(o.inputs={}),t.defaults&&(o.setup=null,o.conditions=null,o.notes=null,o.provenance=null,o.reactionId=""),e.identifiers&&e.identifiers.length){o.identifiers=[];for(let r=0;r<e.identifiers.length;++r)o.identifiers[r]=$root.ord.ReactionIdentifier.toObject(e.identifiers[r],t)}if(e.inputs&&(r=Object.keys(e.inputs)).length){o.inputs={};for(let n=0;n<r.length;++n)o.inputs[r[n]]=$root.ord.ReactionInput.toObject(e.inputs[r[n]],t)}if(null!=e.setup&&e.hasOwnProperty("setup")&&(o.setup=$root.ord.ReactionSetup.toObject(e.setup,t)),null!=e.conditions&&e.hasOwnProperty("conditions")&&(o.conditions=$root.ord.ReactionConditions.toObject(e.conditions,t)),null!=e.notes&&e.hasOwnProperty("notes")&&(o.notes=$root.ord.ReactionNotes.toObject(e.notes,t)),e.observations&&e.observations.length){o.observations=[];for(let r=0;r<e.observations.length;++r)o.observations[r]=$root.ord.ReactionObservation.toObject(e.observations[r],t)}if(e.workups&&e.workups.length){o.workups=[];for(let r=0;r<e.workups.length;++r)o.workups[r]=$root.ord.ReactionWorkup.toObject(e.workups[r],t)}if(e.outcomes&&e.outcomes.length){o.outcomes=[];for(let r=0;r<e.outcomes.length;++r)o.outcomes[r]=$root.ord.ReactionOutcome.toObject(e.outcomes[r],t)}return null!=e.provenance&&e.hasOwnProperty("provenance")&&(o.provenance=$root.ord.ReactionProvenance.toObject(e.provenance,t)),null!=e.reactionId&&e.hasOwnProperty("reactionId")&&(o.reactionId=e.reactionId),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Reaction"},e}(),e.ReactionIdentifier=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.type=0,e.prototype.details="",e.prototype.value="",e.prototype.isMapped=null,Object.defineProperty(e.prototype,"_isMapped",{get:$util.oneOfGetter(t=["isMapped"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(26).string(e.value),null!=e.isMapped&&Object.hasOwnProperty.call(e,"isMapped")&&t.uint32(32).bool(e.isMapped),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionIdentifier;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.value=e.string();break;case 4:o.isMapped=e.bool();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 6:case 3:case 4:case 5:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null!=e.value&&e.hasOwnProperty("value")&&!$util.isString(e.value)?"value: string expected":null!=e.isMapped&&e.hasOwnProperty("isMapped")&&"boolean"!=typeof e.isMapped?"isMapped: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionIdentifier)return e;let t=new $root.ord.ReactionIdentifier;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"REACTION_SMILES":case 2:t.type=2;break;case"REACTION_CXSMILES":case 6:t.type=6;break;case"RDFILE":case 3:t.type=3;break;case"RINCHI":case 4:t.type=4;break;case"REACTION_TYPE":case 5:t.type=5}return null!=e.details&&(t.details=String(e.details)),null!=e.value&&(t.value=String(e.value)),null!=e.isMapped&&(t.isMapped=Boolean(e.isMapped)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.value=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionIdentifier.ReactionIdentifierType[e.type]?e.type:$root.ord.ReactionIdentifier.ReactionIdentifierType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.value&&e.hasOwnProperty("value")&&(r.value=e.value),null!=e.isMapped&&e.hasOwnProperty("isMapped")&&(r.isMapped=e.isMapped,t.oneofs&&(r._isMapped="isMapped")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionIdentifier"},e.ReactionIdentifierType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="REACTION_SMILES"]=2,t[e[6]="REACTION_CXSMILES"]=6,t[e[3]="RDFILE"]=3,t[e[4]="RINCHI"]=4,t[e[5]="REACTION_TYPE"]=5,t}(),e}(),e.ReactionInput=function(){function e(e){if(this.components=[],this.crudeComponents=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.components=$util.emptyArray,e.prototype.crudeComponents=$util.emptyArray,e.prototype.additionOrder=0,e.prototype.additionTime=null,e.prototype.additionSpeed=null,e.prototype.additionDuration=null,e.prototype.flowRate=null,e.prototype.additionDevice=null,e.prototype.additionTemperature=null,e.prototype.texture=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.components&&e.components.length)for(let r=0;r<e.components.length;++r)$root.ord.Compound.encode(e.components[r],t.uint32(10).fork()).ldelim();if(null!=e.crudeComponents&&e.crudeComponents.length)for(let r=0;r<e.crudeComponents.length;++r)$root.ord.CrudeComponent.encode(e.crudeComponents[r],t.uint32(18).fork()).ldelim();return null!=e.additionOrder&&Object.hasOwnProperty.call(e,"additionOrder")&&t.uint32(24).int32(e.additionOrder),null!=e.additionTime&&Object.hasOwnProperty.call(e,"additionTime")&&$root.ord.Time.encode(e.additionTime,t.uint32(34).fork()).ldelim(),null!=e.additionSpeed&&Object.hasOwnProperty.call(e,"additionSpeed")&&$root.ord.ReactionInput.AdditionSpeed.encode(e.additionSpeed,t.uint32(42).fork()).ldelim(),null!=e.additionDuration&&Object.hasOwnProperty.call(e,"additionDuration")&&$root.ord.Time.encode(e.additionDuration,t.uint32(50).fork()).ldelim(),null!=e.flowRate&&Object.hasOwnProperty.call(e,"flowRate")&&$root.ord.FlowRate.encode(e.flowRate,t.uint32(58).fork()).ldelim(),null!=e.additionDevice&&Object.hasOwnProperty.call(e,"additionDevice")&&$root.ord.ReactionInput.AdditionDevice.encode(e.additionDevice,t.uint32(66).fork()).ldelim(),null!=e.additionTemperature&&Object.hasOwnProperty.call(e,"additionTemperature")&&$root.ord.Temperature.encode(e.additionTemperature,t.uint32(74).fork()).ldelim(),null!=e.texture&&Object.hasOwnProperty.call(e,"texture")&&$root.ord.Texture.encode(e.texture,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionInput;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.components&&o.components.length||(o.components=[]),o.components.push($root.ord.Compound.decode(e,e.uint32()));break;case 2:o.crudeComponents&&o.crudeComponents.length||(o.crudeComponents=[]),o.crudeComponents.push($root.ord.CrudeComponent.decode(e,e.uint32()));break;case 3:o.additionOrder=e.int32();break;case 4:o.additionTime=$root.ord.Time.decode(e,e.uint32());break;case 5:o.additionSpeed=$root.ord.ReactionInput.AdditionSpeed.decode(e,e.uint32());break;case 6:o.additionDuration=$root.ord.Time.decode(e,e.uint32());break;case 7:o.flowRate=$root.ord.FlowRate.decode(e,e.uint32());break;case 8:o.additionDevice=$root.ord.ReactionInput.AdditionDevice.decode(e,e.uint32());break;case 9:o.additionTemperature=$root.ord.Temperature.decode(e,e.uint32());break;case 10:o.texture=$root.ord.Texture.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.components&&e.hasOwnProperty("components")){if(!Array.isArray(e.components))return"components: array expected";for(let t=0;t<e.components.length;++t){let r=$root.ord.Compound.verify(e.components[t]);if(r)return"components."+r}}if(null!=e.crudeComponents&&e.hasOwnProperty("crudeComponents")){if(!Array.isArray(e.crudeComponents))return"crudeComponents: array expected";for(let t=0;t<e.crudeComponents.length;++t){let r=$root.ord.CrudeComponent.verify(e.crudeComponents[t]);if(r)return"crudeComponents."+r}}if(null!=e.additionOrder&&e.hasOwnProperty("additionOrder")&&!$util.isInteger(e.additionOrder))return"additionOrder: integer expected";if(null!=e.additionTime&&e.hasOwnProperty("additionTime")){let t=$root.ord.Time.verify(e.additionTime);if(t)return"additionTime."+t}if(null!=e.additionSpeed&&e.hasOwnProperty("additionSpeed")){let t=$root.ord.ReactionInput.AdditionSpeed.verify(e.additionSpeed);if(t)return"additionSpeed."+t}if(null!=e.additionDuration&&e.hasOwnProperty("additionDuration")){let t=$root.ord.Time.verify(e.additionDuration);if(t)return"additionDuration."+t}if(null!=e.flowRate&&e.hasOwnProperty("flowRate")){let t=$root.ord.FlowRate.verify(e.flowRate);if(t)return"flowRate."+t}if(null!=e.additionDevice&&e.hasOwnProperty("additionDevice")){let t=$root.ord.ReactionInput.AdditionDevice.verify(e.additionDevice);if(t)return"additionDevice."+t}if(null!=e.additionTemperature&&e.hasOwnProperty("additionTemperature")){let t=$root.ord.Temperature.verify(e.additionTemperature);if(t)return"additionTemperature."+t}if(null!=e.texture&&e.hasOwnProperty("texture")){let t=$root.ord.Texture.verify(e.texture);if(t)return"texture."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionInput)return e;let t=new $root.ord.ReactionInput;if(e.components){if(!Array.isArray(e.components))throw TypeError(".ord.ReactionInput.components: array expected");t.components=[];for(let r=0;r<e.components.length;++r){if("object"!=typeof e.components[r])throw TypeError(".ord.ReactionInput.components: object expected");t.components[r]=$root.ord.Compound.fromObject(e.components[r])}}if(e.crudeComponents){if(!Array.isArray(e.crudeComponents))throw TypeError(".ord.ReactionInput.crudeComponents: array expected");t.crudeComponents=[];for(let r=0;r<e.crudeComponents.length;++r){if("object"!=typeof e.crudeComponents[r])throw TypeError(".ord.ReactionInput.crudeComponents: object expected");t.crudeComponents[r]=$root.ord.CrudeComponent.fromObject(e.crudeComponents[r])}}if(null!=e.additionOrder&&(t.additionOrder=0|e.additionOrder),null!=e.additionTime){if("object"!=typeof e.additionTime)throw TypeError(".ord.ReactionInput.additionTime: object expected");t.additionTime=$root.ord.Time.fromObject(e.additionTime)}if(null!=e.additionSpeed){if("object"!=typeof e.additionSpeed)throw TypeError(".ord.ReactionInput.additionSpeed: object expected");t.additionSpeed=$root.ord.ReactionInput.AdditionSpeed.fromObject(e.additionSpeed)}if(null!=e.additionDuration){if("object"!=typeof e.additionDuration)throw TypeError(".ord.ReactionInput.additionDuration: object expected");t.additionDuration=$root.ord.Time.fromObject(e.additionDuration)}if(null!=e.flowRate){if("object"!=typeof e.flowRate)throw TypeError(".ord.ReactionInput.flowRate: object expected");t.flowRate=$root.ord.FlowRate.fromObject(e.flowRate)}if(null!=e.additionDevice){if("object"!=typeof e.additionDevice)throw TypeError(".ord.ReactionInput.additionDevice: object expected");t.additionDevice=$root.ord.ReactionInput.AdditionDevice.fromObject(e.additionDevice)}if(null!=e.additionTemperature){if("object"!=typeof e.additionTemperature)throw TypeError(".ord.ReactionInput.additionTemperature: object expected");t.additionTemperature=$root.ord.Temperature.fromObject(e.additionTemperature)}if(null!=e.texture){if("object"!=typeof e.texture)throw TypeError(".ord.ReactionInput.texture: object expected");t.texture=$root.ord.Texture.fromObject(e.texture)}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.components=[],r.crudeComponents=[]),t.defaults&&(r.additionOrder=0,r.additionTime=null,r.additionSpeed=null,r.additionDuration=null,r.flowRate=null,r.additionDevice=null,r.additionTemperature=null,r.texture=null),e.components&&e.components.length){r.components=[];for(let o=0;o<e.components.length;++o)r.components[o]=$root.ord.Compound.toObject(e.components[o],t)}if(e.crudeComponents&&e.crudeComponents.length){r.crudeComponents=[];for(let o=0;o<e.crudeComponents.length;++o)r.crudeComponents[o]=$root.ord.CrudeComponent.toObject(e.crudeComponents[o],t)}return null!=e.additionOrder&&e.hasOwnProperty("additionOrder")&&(r.additionOrder=e.additionOrder),null!=e.additionTime&&e.hasOwnProperty("additionTime")&&(r.additionTime=$root.ord.Time.toObject(e.additionTime,t)),null!=e.additionSpeed&&e.hasOwnProperty("additionSpeed")&&(r.additionSpeed=$root.ord.ReactionInput.AdditionSpeed.toObject(e.additionSpeed,t)),null!=e.additionDuration&&e.hasOwnProperty("additionDuration")&&(r.additionDuration=$root.ord.Time.toObject(e.additionDuration,t)),null!=e.flowRate&&e.hasOwnProperty("flowRate")&&(r.flowRate=$root.ord.FlowRate.toObject(e.flowRate,t)),null!=e.additionDevice&&e.hasOwnProperty("additionDevice")&&(r.additionDevice=$root.ord.ReactionInput.AdditionDevice.toObject(e.additionDevice,t)),null!=e.additionTemperature&&e.hasOwnProperty("additionTemperature")&&(r.additionTemperature=$root.ord.Temperature.toObject(e.additionTemperature,t)),null!=e.texture&&e.hasOwnProperty("texture")&&(r.texture=$root.ord.Texture.toObject(e.texture,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionInput"},e.AdditionSpeed=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionInput.AdditionSpeed;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionInput.AdditionSpeed)return e;let t=new $root.ord.ReactionInput.AdditionSpeed;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"ALL_AT_ONCE":case 1:t.type=1;break;case"FAST":case 2:t.type=2;break;case"SLOW":case 3:t.type=3;break;case"DROPWISE":case 4:t.type=4;break;case"CONTINUOUS":case 5:t.type=5;break;case"PORTIONWISE":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionInput.AdditionSpeed.AdditionSpeedType[e.type]?e.type:$root.ord.ReactionInput.AdditionSpeed.AdditionSpeedType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionInput.AdditionSpeed"},e.AdditionSpeedType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="ALL_AT_ONCE"]=1,t[e[2]="FAST"]=2,t[e[3]="SLOW"]=3,t[e[4]="DROPWISE"]=4,t[e[5]="CONTINUOUS"]=5,t[e[6]="PORTIONWISE"]=6,t}(),e}(),e.AdditionDevice=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionInput.AdditionDevice;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionInput.AdditionDevice)return e;let t=new $root.ord.ReactionInput.AdditionDevice;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"NONE":case 2:t.type=2;break;case"SYRINGE":case 3:t.type=3;break;case"CANNULA":case 4:t.type=4;break;case"ADDITION_FUNNEL":case 5:t.type=5;break;case"PIPETTE":case 6:t.type=6;break;case"POSITIVE_DISPLACEMENT_PIPETTE":case 7:t.type=7;break;case"PISTON_PUMP":case 8:t.type=8;break;case"SYRINGE_PUMP":case 9:t.type=9;break;case"PERISTALTIC_PUMP":case 10:t.type=10}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionInput.AdditionDevice.AdditionDeviceType[e.type]?e.type:$root.ord.ReactionInput.AdditionDevice.AdditionDeviceType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionInput.AdditionDevice"},e.AdditionDeviceType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="NONE"]=2,t[e[3]="SYRINGE"]=3,t[e[4]="CANNULA"]=4,t[e[5]="ADDITION_FUNNEL"]=5,t[e[6]="PIPETTE"]=6,t[e[7]="POSITIVE_DISPLACEMENT_PIPETTE"]=7,t[e[8]="PISTON_PUMP"]=8,t[e[9]="SYRINGE_PUMP"]=9,t[e[10]="PERISTALTIC_PUMP"]=10,t}(),e}(),e}(),e.Amount=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.mass=null,e.prototype.moles=null,e.prototype.volume=null,e.prototype.unmeasured=null,e.prototype.volumeIncludesSolutes=null,Object.defineProperty(e.prototype,"kind",{get:$util.oneOfGetter(t=["mass","moles","volume","unmeasured"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_volumeIncludesSolutes",{get:$util.oneOfGetter(t=["volumeIncludesSolutes"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.mass&&Object.hasOwnProperty.call(e,"mass")&&$root.ord.Mass.encode(e.mass,t.uint32(10).fork()).ldelim(),null!=e.moles&&Object.hasOwnProperty.call(e,"moles")&&$root.ord.Moles.encode(e.moles,t.uint32(18).fork()).ldelim(),null!=e.volume&&Object.hasOwnProperty.call(e,"volume")&&$root.ord.Volume.encode(e.volume,t.uint32(26).fork()).ldelim(),null!=e.volumeIncludesSolutes&&Object.hasOwnProperty.call(e,"volumeIncludesSolutes")&&t.uint32(32).bool(e.volumeIncludesSolutes),null!=e.unmeasured&&Object.hasOwnProperty.call(e,"unmeasured")&&$root.ord.UnmeasuredAmount.encode(e.unmeasured,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Amount;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.mass=$root.ord.Mass.decode(e,e.uint32());break;case 2:o.moles=$root.ord.Moles.decode(e,e.uint32());break;case 3:o.volume=$root.ord.Volume.decode(e,e.uint32());break;case 5:o.unmeasured=$root.ord.UnmeasuredAmount.decode(e,e.uint32());break;case 4:o.volumeIncludesSolutes=e.bool();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.mass&&e.hasOwnProperty("mass")){t.kind=1;{let t=$root.ord.Mass.verify(e.mass);if(t)return"mass."+t}}if(null!=e.moles&&e.hasOwnProperty("moles")){if(1===t.kind)return"kind: multiple values";t.kind=1;{let t=$root.ord.Moles.verify(e.moles);if(t)return"moles."+t}}if(null!=e.volume&&e.hasOwnProperty("volume")){if(1===t.kind)return"kind: multiple values";t.kind=1;{let t=$root.ord.Volume.verify(e.volume);if(t)return"volume."+t}}if(null!=e.unmeasured&&e.hasOwnProperty("unmeasured")){if(1===t.kind)return"kind: multiple values";t.kind=1;{let t=$root.ord.UnmeasuredAmount.verify(e.unmeasured);if(t)return"unmeasured."+t}}return null!=e.volumeIncludesSolutes&&e.hasOwnProperty("volumeIncludesSolutes")&&(t._volumeIncludesSolutes=1,"boolean"!=typeof e.volumeIncludesSolutes)?"volumeIncludesSolutes: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Amount)return e;let t=new $root.ord.Amount;if(null!=e.mass){if("object"!=typeof e.mass)throw TypeError(".ord.Amount.mass: object expected");t.mass=$root.ord.Mass.fromObject(e.mass)}if(null!=e.moles){if("object"!=typeof e.moles)throw TypeError(".ord.Amount.moles: object expected");t.moles=$root.ord.Moles.fromObject(e.moles)}if(null!=e.volume){if("object"!=typeof e.volume)throw TypeError(".ord.Amount.volume: object expected");t.volume=$root.ord.Volume.fromObject(e.volume)}if(null!=e.unmeasured){if("object"!=typeof e.unmeasured)throw TypeError(".ord.Amount.unmeasured: object expected");t.unmeasured=$root.ord.UnmeasuredAmount.fromObject(e.unmeasured)}return null!=e.volumeIncludesSolutes&&(t.volumeIncludesSolutes=Boolean(e.volumeIncludesSolutes)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.mass&&e.hasOwnProperty("mass")&&(r.mass=$root.ord.Mass.toObject(e.mass,t),t.oneofs&&(r.kind="mass")),null!=e.moles&&e.hasOwnProperty("moles")&&(r.moles=$root.ord.Moles.toObject(e.moles,t),t.oneofs&&(r.kind="moles")),null!=e.volume&&e.hasOwnProperty("volume")&&(r.volume=$root.ord.Volume.toObject(e.volume,t),t.oneofs&&(r.kind="volume")),null!=e.volumeIncludesSolutes&&e.hasOwnProperty("volumeIncludesSolutes")&&(r.volumeIncludesSolutes=e.volumeIncludesSolutes,t.oneofs&&(r._volumeIncludesSolutes="volumeIncludesSolutes")),null!=e.unmeasured&&e.hasOwnProperty("unmeasured")&&(r.unmeasured=$root.ord.UnmeasuredAmount.toObject(e.unmeasured,t),t.oneofs&&(r.kind="unmeasured")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Amount"},e}(),e.UnmeasuredAmount=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.UnmeasuredAmount;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.UnmeasuredAmount)return e;let t=new $root.ord.UnmeasuredAmount;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"SATURATED":case 2:t.type=2;break;case"CATALYTIC":case 3:t.type=3;break;case"TITRATED":case 4:t.type=4}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.UnmeasuredAmount.UnmeasuredAmountType[e.type]?e.type:$root.ord.UnmeasuredAmount.UnmeasuredAmountType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.UnmeasuredAmount"},e.UnmeasuredAmountType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="SATURATED"]=2,t[e[3]="CATALYTIC"]=3,t[e[4]="TITRATED"]=4,t}(),e}(),e.Texture=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Texture;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Texture)return e;let t=new $root.ord.Texture;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"POWDER":case 2:t.type=2;break;case"CRYSTAL":case 3:t.type=3;break;case"OIL":case 4:t.type=4;break;case"AMORPHOUS_SOLID":case 5:t.type=5;break;case"FOAM":case 6:t.type=6;break;case"WAX":case 7:t.type=7;break;case"SEMI_SOLID":case 8:t.type=8;break;case"SOLID":case 9:t.type=9;break;case"LIQUID":case 10:t.type=10;break;case"GAS":case 11:t.type=11}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.Texture.TextureType[e.type]?e.type:$root.ord.Texture.TextureType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Texture"},e.TextureType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="POWDER"]=2,t[e[3]="CRYSTAL"]=3,t[e[4]="OIL"]=4,t[e[5]="AMORPHOUS_SOLID"]=5,t[e[6]="FOAM"]=6,t[e[7]="WAX"]=7,t[e[8]="SEMI_SOLID"]=8,t[e[9]="SOLID"]=9,t[e[10]="LIQUID"]=10,t[e[11]="GAS"]=11,t}(),e}(),e.CrudeComponent=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.reactionId="",e.prototype.includesWorkup=null,e.prototype.hasDerivedAmount=null,e.prototype.amount=null,e.prototype.texture=null,Object.defineProperty(e.prototype,"_includesWorkup",{get:$util.oneOfGetter(t=["includesWorkup"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_hasDerivedAmount",{get:$util.oneOfGetter(t=["hasDerivedAmount"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.reactionId&&Object.hasOwnProperty.call(e,"reactionId")&&t.uint32(10).string(e.reactionId),null!=e.includesWorkup&&Object.hasOwnProperty.call(e,"includesWorkup")&&t.uint32(16).bool(e.includesWorkup),null!=e.hasDerivedAmount&&Object.hasOwnProperty.call(e,"hasDerivedAmount")&&t.uint32(24).bool(e.hasDerivedAmount),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&$root.ord.Amount.encode(e.amount,t.uint32(34).fork()).ldelim(),null!=e.texture&&Object.hasOwnProperty.call(e,"texture")&&$root.ord.Texture.encode(e.texture,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.CrudeComponent;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.reactionId=e.string();break;case 2:o.includesWorkup=e.bool();break;case 3:o.hasDerivedAmount=e.bool();break;case 4:o.amount=$root.ord.Amount.decode(e,e.uint32());break;case 5:o.texture=$root.ord.Texture.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.reactionId&&e.hasOwnProperty("reactionId")&&!$util.isString(e.reactionId))return"reactionId: string expected";if(null!=e.includesWorkup&&e.hasOwnProperty("includesWorkup")&&(t._includesWorkup=1,"boolean"!=typeof e.includesWorkup))return"includesWorkup: boolean expected";if(null!=e.hasDerivedAmount&&e.hasOwnProperty("hasDerivedAmount")&&(t._hasDerivedAmount=1,"boolean"!=typeof e.hasDerivedAmount))return"hasDerivedAmount: boolean expected";if(null!=e.amount&&e.hasOwnProperty("amount")){let t=$root.ord.Amount.verify(e.amount);if(t)return"amount."+t}if(null!=e.texture&&e.hasOwnProperty("texture")){let t=$root.ord.Texture.verify(e.texture);if(t)return"texture."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.CrudeComponent)return e;let t=new $root.ord.CrudeComponent;if(null!=e.reactionId&&(t.reactionId=String(e.reactionId)),null!=e.includesWorkup&&(t.includesWorkup=Boolean(e.includesWorkup)),null!=e.hasDerivedAmount&&(t.hasDerivedAmount=Boolean(e.hasDerivedAmount)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".ord.CrudeComponent.amount: object expected");t.amount=$root.ord.Amount.fromObject(e.amount)}if(null!=e.texture){if("object"!=typeof e.texture)throw TypeError(".ord.CrudeComponent.texture: object expected");t.texture=$root.ord.Texture.fromObject(e.texture)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.reactionId="",r.amount=null,r.texture=null),null!=e.reactionId&&e.hasOwnProperty("reactionId")&&(r.reactionId=e.reactionId),null!=e.includesWorkup&&e.hasOwnProperty("includesWorkup")&&(r.includesWorkup=e.includesWorkup,t.oneofs&&(r._includesWorkup="includesWorkup")),null!=e.hasDerivedAmount&&e.hasOwnProperty("hasDerivedAmount")&&(r.hasDerivedAmount=e.hasDerivedAmount,t.oneofs&&(r._hasDerivedAmount="hasDerivedAmount")),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=$root.ord.Amount.toObject(e.amount,t)),null!=e.texture&&e.hasOwnProperty("texture")&&(r.texture=$root.ord.Texture.toObject(e.texture,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.CrudeComponent"},e}(),e.Compound=function(){function e(e){if(this.identifiers=[],this.preparations=[],this.features={},this.analyses={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.identifiers=$util.emptyArray,e.prototype.amount=null,e.prototype.reactionRole=0,e.prototype.isLimiting=null,e.prototype.preparations=$util.emptyArray,e.prototype.source=null,e.prototype.features=$util.emptyObject,e.prototype.analyses=$util.emptyObject,e.prototype.texture=null,Object.defineProperty(e.prototype,"_isLimiting",{get:$util.oneOfGetter(t=["isLimiting"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.identifiers&&e.identifiers.length)for(let r=0;r<e.identifiers.length;++r)$root.ord.CompoundIdentifier.encode(e.identifiers[r],t.uint32(10).fork()).ldelim();if(null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&$root.ord.Amount.encode(e.amount,t.uint32(18).fork()).ldelim(),null!=e.reactionRole&&Object.hasOwnProperty.call(e,"reactionRole")&&t.uint32(24).int32(e.reactionRole),null!=e.isLimiting&&Object.hasOwnProperty.call(e,"isLimiting")&&t.uint32(32).bool(e.isLimiting),null!=e.preparations&&e.preparations.length)for(let r=0;r<e.preparations.length;++r)$root.ord.CompoundPreparation.encode(e.preparations[r],t.uint32(42).fork()).ldelim();if(null!=e.source&&Object.hasOwnProperty.call(e,"source")&&$root.ord.Compound.Source.encode(e.source,t.uint32(50).fork()).ldelim(),null!=e.features&&Object.hasOwnProperty.call(e,"features"))for(let r=Object.keys(e.features),o=0;o<r.length;++o)t.uint32(58).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.features[r[o]],t.uint32(18).fork()).ldelim().ldelim();if(null!=e.analyses&&Object.hasOwnProperty.call(e,"analyses"))for(let r=Object.keys(e.analyses),o=0;o<r.length;++o)t.uint32(66).fork().uint32(10).string(r[o]),$root.ord.Analysis.encode(e.analyses[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.texture&&Object.hasOwnProperty.call(e,"texture")&&$root.ord.Texture.encode(e.texture,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.Compound;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.identifiers&&i.identifiers.length||(i.identifiers=[]),i.identifiers.push($root.ord.CompoundIdentifier.decode(e,e.uint32()));break;case 2:i.amount=$root.ord.Amount.decode(e,e.uint32());break;case 3:i.reactionRole=e.int32();break;case 4:i.isLimiting=e.bool();break;case 5:i.preparations&&i.preparations.length||(i.preparations=[]),i.preparations.push($root.ord.CompoundPreparation.decode(e,e.uint32()));break;case 6:i.source=$root.ord.Compound.Source.decode(e,e.uint32());break;case 7:{i.features===$util.emptyObject&&(i.features={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.features[r]=o;break}case 8:{i.analyses===$util.emptyObject&&(i.analyses={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Analysis.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.analyses[r]=o;break}case 9:i.texture=$root.ord.Texture.decode(e,e.uint32());break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.identifiers&&e.hasOwnProperty("identifiers")){if(!Array.isArray(e.identifiers))return"identifiers: array expected";for(let t=0;t<e.identifiers.length;++t){let r=$root.ord.CompoundIdentifier.verify(e.identifiers[t]);if(r)return"identifiers."+r}}if(null!=e.amount&&e.hasOwnProperty("amount")){let t=$root.ord.Amount.verify(e.amount);if(t)return"amount."+t}if(null!=e.reactionRole&&e.hasOwnProperty("reactionRole"))switch(e.reactionRole){default:return"reactionRole: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:}if(null!=e.isLimiting&&e.hasOwnProperty("isLimiting")&&"boolean"!=typeof e.isLimiting)return"isLimiting: boolean expected";if(null!=e.preparations&&e.hasOwnProperty("preparations")){if(!Array.isArray(e.preparations))return"preparations: array expected";for(let t=0;t<e.preparations.length;++t){let r=$root.ord.CompoundPreparation.verify(e.preparations[t]);if(r)return"preparations."+r}}if(null!=e.source&&e.hasOwnProperty("source")){let t=$root.ord.Compound.Source.verify(e.source);if(t)return"source."+t}if(null!=e.features&&e.hasOwnProperty("features")){if(!$util.isObject(e.features))return"features: object expected";let t=Object.keys(e.features);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.features[t[r]]);if(o)return"features."+o}}if(null!=e.analyses&&e.hasOwnProperty("analyses")){if(!$util.isObject(e.analyses))return"analyses: object expected";let t=Object.keys(e.analyses);for(let r=0;r<t.length;++r){let o=$root.ord.Analysis.verify(e.analyses[t[r]]);if(o)return"analyses."+o}}if(null!=e.texture&&e.hasOwnProperty("texture")){let t=$root.ord.Texture.verify(e.texture);if(t)return"texture."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.Compound)return e;let t=new $root.ord.Compound;if(e.identifiers){if(!Array.isArray(e.identifiers))throw TypeError(".ord.Compound.identifiers: array expected");t.identifiers=[];for(let r=0;r<e.identifiers.length;++r){if("object"!=typeof e.identifiers[r])throw TypeError(".ord.Compound.identifiers: object expected");t.identifiers[r]=$root.ord.CompoundIdentifier.fromObject(e.identifiers[r])}}if(null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".ord.Compound.amount: object expected");t.amount=$root.ord.Amount.fromObject(e.amount)}switch(e.reactionRole){default:if("number"==typeof e.reactionRole){t.reactionRole=e.reactionRole;break}break;case"UNSPECIFIED":case 0:t.reactionRole=0;break;case"REACTANT":case 1:t.reactionRole=1;break;case"REAGENT":case 2:t.reactionRole=2;break;case"SOLVENT":case 3:t.reactionRole=3;break;case"CATALYST":case 4:t.reactionRole=4;break;case"WORKUP":case 5:t.reactionRole=5;break;case"INTERNAL_STANDARD":case 6:t.reactionRole=6;break;case"AUTHENTIC_STANDARD":case 7:t.reactionRole=7;break;case"PRODUCT":case 8:t.reactionRole=8;break;case"BYPRODUCT":case 9:t.reactionRole=9;break;case"SIDE_PRODUCT":case 10:t.reactionRole=10}if(null!=e.isLimiting&&(t.isLimiting=Boolean(e.isLimiting)),e.preparations){if(!Array.isArray(e.preparations))throw TypeError(".ord.Compound.preparations: array expected");t.preparations=[];for(let r=0;r<e.preparations.length;++r){if("object"!=typeof e.preparations[r])throw TypeError(".ord.Compound.preparations: object expected");t.preparations[r]=$root.ord.CompoundPreparation.fromObject(e.preparations[r])}}if(null!=e.source){if("object"!=typeof e.source)throw TypeError(".ord.Compound.source: object expected");t.source=$root.ord.Compound.Source.fromObject(e.source)}if(e.features){if("object"!=typeof e.features)throw TypeError(".ord.Compound.features: object expected");t.features={};for(let r=Object.keys(e.features),o=0;o<r.length;++o){if("object"!=typeof e.features[r[o]])throw TypeError(".ord.Compound.features: object expected");t.features[r[o]]=$root.ord.Data.fromObject(e.features[r[o]])}}if(e.analyses){if("object"!=typeof e.analyses)throw TypeError(".ord.Compound.analyses: object expected");t.analyses={};for(let r=Object.keys(e.analyses),o=0;o<r.length;++o){if("object"!=typeof e.analyses[r[o]])throw TypeError(".ord.Compound.analyses: object expected");t.analyses[r[o]]=$root.ord.Analysis.fromObject(e.analyses[r[o]])}}if(null!=e.texture){if("object"!=typeof e.texture)throw TypeError(".ord.Compound.texture: object expected");t.texture=$root.ord.Texture.fromObject(e.texture)}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.identifiers=[],o.preparations=[]),(t.objects||t.defaults)&&(o.features={},o.analyses={}),t.defaults&&(o.amount=null,o.reactionRole=t.enums===String?"UNSPECIFIED":0,o.source=null,o.texture=null),e.identifiers&&e.identifiers.length){o.identifiers=[];for(let r=0;r<e.identifiers.length;++r)o.identifiers[r]=$root.ord.CompoundIdentifier.toObject(e.identifiers[r],t)}if(null!=e.amount&&e.hasOwnProperty("amount")&&(o.amount=$root.ord.Amount.toObject(e.amount,t)),null!=e.reactionRole&&e.hasOwnProperty("reactionRole")&&(o.reactionRole=t.enums===String?void 0===$root.ord.ReactionRole.ReactionRoleType[e.reactionRole]?e.reactionRole:$root.ord.ReactionRole.ReactionRoleType[e.reactionRole]:e.reactionRole),null!=e.isLimiting&&e.hasOwnProperty("isLimiting")&&(o.isLimiting=e.isLimiting,t.oneofs&&(o._isLimiting="isLimiting")),e.preparations&&e.preparations.length){o.preparations=[];for(let r=0;r<e.preparations.length;++r)o.preparations[r]=$root.ord.CompoundPreparation.toObject(e.preparations[r],t)}if(null!=e.source&&e.hasOwnProperty("source")&&(o.source=$root.ord.Compound.Source.toObject(e.source,t)),e.features&&(r=Object.keys(e.features)).length){o.features={};for(let n=0;n<r.length;++n)o.features[r[n]]=$root.ord.Data.toObject(e.features[r[n]],t)}if(e.analyses&&(r=Object.keys(e.analyses)).length){o.analyses={};for(let n=0;n<r.length;++n)o.analyses[r[n]]=$root.ord.Analysis.toObject(e.analyses[r[n]],t)}return null!=e.texture&&e.hasOwnProperty("texture")&&(o.texture=$root.ord.Texture.toObject(e.texture,t)),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Compound"},e.Source=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.vendor="",e.prototype.catalogId="",e.prototype.lot="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.vendor&&Object.hasOwnProperty.call(e,"vendor")&&t.uint32(10).string(e.vendor),null!=e.catalogId&&Object.hasOwnProperty.call(e,"catalogId")&&t.uint32(18).string(e.catalogId),null!=e.lot&&Object.hasOwnProperty.call(e,"lot")&&t.uint32(26).string(e.lot),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Compound.Source;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.vendor=e.string();break;case 2:o.catalogId=e.string();break;case 3:o.lot=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.vendor&&e.hasOwnProperty("vendor")&&!$util.isString(e.vendor)?"vendor: string expected":null!=e.catalogId&&e.hasOwnProperty("catalogId")&&!$util.isString(e.catalogId)?"catalogId: string expected":null!=e.lot&&e.hasOwnProperty("lot")&&!$util.isString(e.lot)?"lot: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Compound.Source)return e;let t=new $root.ord.Compound.Source;return null!=e.vendor&&(t.vendor=String(e.vendor)),null!=e.catalogId&&(t.catalogId=String(e.catalogId)),null!=e.lot&&(t.lot=String(e.lot)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.vendor="",r.catalogId="",r.lot=""),null!=e.vendor&&e.hasOwnProperty("vendor")&&(r.vendor=e.vendor),null!=e.catalogId&&e.hasOwnProperty("catalogId")&&(r.catalogId=e.catalogId),null!=e.lot&&e.hasOwnProperty("lot")&&(r.lot=e.lot),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Compound.Source"},e}(),e}(),e.ReactionRole=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionRole;for(;e.pos<r;){let t=e.uint32();e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof $root.ord.ReactionRole?e:new $root.ord.ReactionRole},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionRole"},e.ReactionRoleType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="REACTANT"]=1,t[e[2]="REAGENT"]=2,t[e[3]="SOLVENT"]=3,t[e[4]="CATALYST"]=4,t[e[5]="WORKUP"]=5,t[e[6]="INTERNAL_STANDARD"]=6,t[e[7]="AUTHENTIC_STANDARD"]=7,t[e[8]="PRODUCT"]=8,t[e[9]="BYPRODUCT"]=9,t[e[10]="SIDE_PRODUCT"]=10,t}(),e}(),e.CompoundPreparation=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.reactionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.reactionId&&Object.hasOwnProperty.call(e,"reactionId")&&t.uint32(26).string(e.reactionId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.CompoundPreparation;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.reactionId=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null!=e.reactionId&&e.hasOwnProperty("reactionId")&&!$util.isString(e.reactionId)?"reactionId: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.CompoundPreparation)return e;let t=new $root.ord.CompoundPreparation;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"NONE":case 2:t.type=2;break;case"REPURIFIED":case 3:t.type=3;break;case"SPARGED":case 4:t.type=4;break;case"DRIED":case 5:t.type=5;break;case"SYNTHESIZED":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),null!=e.reactionId&&(t.reactionId=String(e.reactionId)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.reactionId=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.CompoundPreparation.CompoundPreparationType[e.type]?e.type:$root.ord.CompoundPreparation.CompoundPreparationType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.reactionId&&e.hasOwnProperty("reactionId")&&(r.reactionId=e.reactionId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.CompoundPreparation"},e.CompoundPreparationType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="NONE"]=2,t[e[3]="REPURIFIED"]=3,t[e[4]="SPARGED"]=4,t[e[5]="DRIED"]=5,t[e[6]="SYNTHESIZED"]=6,t}(),e}(),e.CompoundIdentifier=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(26).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.CompoundIdentifier;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.value=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null!=e.value&&e.hasOwnProperty("value")&&!$util.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.CompoundIdentifier)return e;let t=new $root.ord.CompoundIdentifier;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"SMILES":case 2:t.type=2;break;case"INCHI":case 3:t.type=3;break;case"MOLBLOCK":case 4:t.type=4;break;case"IUPAC_NAME":case 5:t.type=5;break;case"NAME":case 6:t.type=6;break;case"CAS_NUMBER":case 7:t.type=7;break;case"PUBCHEM_CID":case 8:t.type=8;break;case"CHEMSPIDER_ID":case 9:t.type=9;break;case"CXSMILES":case 10:t.type=10;break;case"INCHI_KEY":case 11:t.type=11;break;case"XYZ":case 12:t.type=12;break;case"UNIPROT_ID":case 13:t.type=13;break;case"PDB_ID":case 14:t.type=14;break;case"AMINO_ACID_SEQUENCE":case 15:t.type=15;break;case"HELM":case 16:t.type=16;break;case"MDL":case 17:t.type=17}return null!=e.details&&(t.details=String(e.details)),null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.value=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.CompoundIdentifier.CompoundIdentifierType[e.type]?e.type:$root.ord.CompoundIdentifier.CompoundIdentifierType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.value&&e.hasOwnProperty("value")&&(r.value=e.value),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.CompoundIdentifier"},e.CompoundIdentifierType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="SMILES"]=2,t[e[3]="INCHI"]=3,t[e[4]="MOLBLOCK"]=4,t[e[5]="IUPAC_NAME"]=5,t[e[6]="NAME"]=6,t[e[7]="CAS_NUMBER"]=7,t[e[8]="PUBCHEM_CID"]=8,t[e[9]="CHEMSPIDER_ID"]=9,t[e[10]="CXSMILES"]=10,t[e[11]="INCHI_KEY"]=11,t[e[12]="XYZ"]=12,t[e[13]="UNIPROT_ID"]=13,t[e[14]="PDB_ID"]=14,t[e[15]="AMINO_ACID_SEQUENCE"]=15,t[e[16]="HELM"]=16,t[e[17]="MDL"]=17,t}(),e}(),e.Vessel=function(){function e(e){if(this.preparations=[],this.attachments=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.material=null,e.prototype.preparations=$util.emptyArray,e.prototype.attachments=$util.emptyArray,e.prototype.volume=null,e.prototype.vesselId="",e.prototype.position="",e.prototype.row="",e.prototype.col="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.material&&Object.hasOwnProperty.call(e,"material")&&$root.ord.VesselMaterial.encode(e.material,t.uint32(26).fork()).ldelim(),null!=e.preparations&&e.preparations.length)for(let r=0;r<e.preparations.length;++r)$root.ord.VesselPreparation.encode(e.preparations[r],t.uint32(34).fork()).ldelim();if(null!=e.attachments&&e.attachments.length)for(let r=0;r<e.attachments.length;++r)$root.ord.VesselAttachment.encode(e.attachments[r],t.uint32(42).fork()).ldelim();return null!=e.volume&&Object.hasOwnProperty.call(e,"volume")&&$root.ord.Volume.encode(e.volume,t.uint32(50).fork()).ldelim(),null!=e.vesselId&&Object.hasOwnProperty.call(e,"vesselId")&&t.uint32(58).string(e.vesselId),null!=e.position&&Object.hasOwnProperty.call(e,"position")&&t.uint32(66).string(e.position),null!=e.row&&Object.hasOwnProperty.call(e,"row")&&t.uint32(74).string(e.row),null!=e.col&&Object.hasOwnProperty.call(e,"col")&&t.uint32(82).string(e.col),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Vessel;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.material=$root.ord.VesselMaterial.decode(e,e.uint32());break;case 4:o.preparations&&o.preparations.length||(o.preparations=[]),o.preparations.push($root.ord.VesselPreparation.decode(e,e.uint32()));break;case 5:o.attachments&&o.attachments.length||(o.attachments=[]),o.attachments.push($root.ord.VesselAttachment.decode(e,e.uint32()));break;case 6:o.volume=$root.ord.Volume.decode(e,e.uint32());break;case 7:o.vesselId=e.string();break;case 8:o.position=e.string();break;case 9:o.row=e.string();break;case 10:o.col=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.material&&e.hasOwnProperty("material")){let t=$root.ord.VesselMaterial.verify(e.material);if(t)return"material."+t}if(null!=e.preparations&&e.hasOwnProperty("preparations")){if(!Array.isArray(e.preparations))return"preparations: array expected";for(let t=0;t<e.preparations.length;++t){let r=$root.ord.VesselPreparation.verify(e.preparations[t]);if(r)return"preparations."+r}}if(null!=e.attachments&&e.hasOwnProperty("attachments")){if(!Array.isArray(e.attachments))return"attachments: array expected";for(let t=0;t<e.attachments.length;++t){let r=$root.ord.VesselAttachment.verify(e.attachments[t]);if(r)return"attachments."+r}}if(null!=e.volume&&e.hasOwnProperty("volume")){let t=$root.ord.Volume.verify(e.volume);if(t)return"volume."+t}return null!=e.vesselId&&e.hasOwnProperty("vesselId")&&!$util.isString(e.vesselId)?"vesselId: string expected":null!=e.position&&e.hasOwnProperty("position")&&!$util.isString(e.position)?"position: string expected":null!=e.row&&e.hasOwnProperty("row")&&!$util.isString(e.row)?"row: string expected":null!=e.col&&e.hasOwnProperty("col")&&!$util.isString(e.col)?"col: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Vessel)return e;let t=new $root.ord.Vessel;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"ROUND_BOTTOM_FLASK":case 2:t.type=2;break;case"VIAL":case 3:t.type=3;break;case"WELL_PLATE":case 4:t.type=4;break;case"MICROWAVE_VIAL":case 5:t.type=5;break;case"TUBE":case 6:t.type=6;break;case"CONTINUOUS_STIRRED_TANK_REACTOR":case 7:t.type=7;break;case"PACKED_BED_REACTOR":case 8:t.type=8;break;case"NMR_TUBE":case 9:t.type=9;break;case"PRESSURE_FLASK":case 10:t.type=10;break;case"PRESSURE_REACTOR":case 11:t.type=11;break;case"ELECTROCHEMICAL_CELL":case 12:t.type=12}if(null!=e.details&&(t.details=String(e.details)),null!=e.material){if("object"!=typeof e.material)throw TypeError(".ord.Vessel.material: object expected");t.material=$root.ord.VesselMaterial.fromObject(e.material)}if(e.preparations){if(!Array.isArray(e.preparations))throw TypeError(".ord.Vessel.preparations: array expected");t.preparations=[];for(let r=0;r<e.preparations.length;++r){if("object"!=typeof e.preparations[r])throw TypeError(".ord.Vessel.preparations: object expected");t.preparations[r]=$root.ord.VesselPreparation.fromObject(e.preparations[r])}}if(e.attachments){if(!Array.isArray(e.attachments))throw TypeError(".ord.Vessel.attachments: array expected");t.attachments=[];for(let r=0;r<e.attachments.length;++r){if("object"!=typeof e.attachments[r])throw TypeError(".ord.Vessel.attachments: object expected");t.attachments[r]=$root.ord.VesselAttachment.fromObject(e.attachments[r])}}if(null!=e.volume){if("object"!=typeof e.volume)throw TypeError(".ord.Vessel.volume: object expected");t.volume=$root.ord.Volume.fromObject(e.volume)}return null!=e.vesselId&&(t.vesselId=String(e.vesselId)),null!=e.position&&(t.position=String(e.position)),null!=e.row&&(t.row=String(e.row)),null!=e.col&&(t.col=String(e.col)),t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.preparations=[],r.attachments=[]),t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.material=null,r.volume=null,r.vesselId="",r.position="",r.row="",r.col=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.Vessel.VesselType[e.type]?e.type:$root.ord.Vessel.VesselType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.material&&e.hasOwnProperty("material")&&(r.material=$root.ord.VesselMaterial.toObject(e.material,t)),e.preparations&&e.preparations.length){r.preparations=[];for(let o=0;o<e.preparations.length;++o)r.preparations[o]=$root.ord.VesselPreparation.toObject(e.preparations[o],t)}if(e.attachments&&e.attachments.length){r.attachments=[];for(let o=0;o<e.attachments.length;++o)r.attachments[o]=$root.ord.VesselAttachment.toObject(e.attachments[o],t)}return null!=e.volume&&e.hasOwnProperty("volume")&&(r.volume=$root.ord.Volume.toObject(e.volume,t)),null!=e.vesselId&&e.hasOwnProperty("vesselId")&&(r.vesselId=e.vesselId),null!=e.position&&e.hasOwnProperty("position")&&(r.position=e.position),null!=e.row&&e.hasOwnProperty("row")&&(r.row=e.row),null!=e.col&&e.hasOwnProperty("col")&&(r.col=e.col),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Vessel"},e.VesselType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="ROUND_BOTTOM_FLASK"]=2,t[e[3]="VIAL"]=3,t[e[4]="WELL_PLATE"]=4,t[e[5]="MICROWAVE_VIAL"]=5,t[e[6]="TUBE"]=6,t[e[7]="CONTINUOUS_STIRRED_TANK_REACTOR"]=7,t[e[8]="PACKED_BED_REACTOR"]=8,t[e[9]="NMR_TUBE"]=9,t[e[10]="PRESSURE_FLASK"]=10,t[e[11]="PRESSURE_REACTOR"]=11,t[e[12]="ELECTROCHEMICAL_CELL"]=12,t}(),e}(),e.VesselMaterial=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.VesselMaterial;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.VesselMaterial)return e;let t=new $root.ord.VesselMaterial;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"GLASS":case 2:t.type=2;break;case"POLYPROPYLENE":case 3:t.type=3;break;case"PLASTIC":case 4:t.type=4;break;case"METAL":case 5:t.type=5;break;case"QUARTZ":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.VesselMaterial.VesselMaterialType[e.type]?e.type:$root.ord.VesselMaterial.VesselMaterialType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.VesselMaterial"},e.VesselMaterialType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="GLASS"]=2,t[e[3]="POLYPROPYLENE"]=3,t[e[4]="PLASTIC"]=4,t[e[5]="METAL"]=5,t[e[6]="QUARTZ"]=6,t}(),e}(),e.VesselAttachment=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.VesselAttachment;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.VesselAttachment)return e;let t=new $root.ord.VesselAttachment;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"NONE":case 1:t.type=1;break;case"CUSTOM":case 2:t.type=2;break;case"SEPTUM":case 3:t.type=3;break;case"CAP":case 4:t.type=4;break;case"MAT":case 5:t.type=5;break;case"REFLUX_CONDENSER":case 6:t.type=6;break;case"VENT_NEEDLE":case 7:t.type=7;break;case"DEAN_STARK":case 8:t.type=8;break;case"VACUUM_TUBE":case 9:t.type=9;break;case"ADDITION_FUNNEL":case 10:t.type=10;break;case"DRYING_TUBE":case 11:t.type=11;break;case"ALUMINUM_FOIL":case 12:t.type=12;break;case"THERMOCOUPLE":case 13:t.type=13;break;case"BALLOON":case 14:t.type=14;break;case"GAS_ADAPTER":case 15:t.type=15;break;case"PRESSURE_REGULATOR":case 16:t.type=16;break;case"RELEASE_VALVE":case 17:t.type=17}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.VesselAttachment.VesselAttachmentType[e.type]?e.type:$root.ord.VesselAttachment.VesselAttachmentType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.VesselAttachment"},e.VesselAttachmentType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="NONE"]=1,t[e[2]="CUSTOM"]=2,t[e[3]="SEPTUM"]=3,t[e[4]="CAP"]=4,t[e[5]="MAT"]=5,t[e[6]="REFLUX_CONDENSER"]=6,t[e[7]="VENT_NEEDLE"]=7,t[e[8]="DEAN_STARK"]=8,t[e[9]="VACUUM_TUBE"]=9,t[e[10]="ADDITION_FUNNEL"]=10,t[e[11]="DRYING_TUBE"]=11,t[e[12]="ALUMINUM_FOIL"]=12,t[e[13]="THERMOCOUPLE"]=13,t[e[14]="BALLOON"]=14,t[e[15]="GAS_ADAPTER"]=15,t[e[16]="PRESSURE_REGULATOR"]=16,t[e[17]="RELEASE_VALVE"]=17,t}(),e}(),e.VesselPreparation=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.VesselPreparation;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.VesselPreparation)return e;let t=new $root.ord.VesselPreparation;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"NONE":case 2:t.type=2;break;case"OVEN_DRIED":case 3:t.type=3;break;case"FLAME_DRIED":case 4:t.type=4;break;case"EVACUATED_BACKFILLED":case 5:t.type=5;break;case"PURGED":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.VesselPreparation.VesselPreparationType[e.type]?e.type:$root.ord.VesselPreparation.VesselPreparationType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.VesselPreparation"},e.VesselPreparationType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="NONE"]=2,t[e[3]="OVEN_DRIED"]=3,t[e[4]="FLAME_DRIED"]=4,t[e[5]="EVACUATED_BACKFILLED"]=5,t[e[6]="PURGED"]=6,t}(),e}(),e.ReactionSetup=function(){function e(e){if(this.automationCode={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.vessel=null,e.prototype.isAutomated=null,e.prototype.automationPlatform="",e.prototype.automationCode=$util.emptyObject,e.prototype.environment=null,Object.defineProperty(e.prototype,"_isAutomated",{get:$util.oneOfGetter(t=["isAutomated"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.vessel&&Object.hasOwnProperty.call(e,"vessel")&&$root.ord.Vessel.encode(e.vessel,t.uint32(10).fork()).ldelim(),null!=e.isAutomated&&Object.hasOwnProperty.call(e,"isAutomated")&&t.uint32(16).bool(e.isAutomated),null!=e.automationPlatform&&Object.hasOwnProperty.call(e,"automationPlatform")&&t.uint32(26).string(e.automationPlatform),null!=e.automationCode&&Object.hasOwnProperty.call(e,"automationCode"))for(let r=Object.keys(e.automationCode),o=0;o<r.length;++o)t.uint32(34).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.automationCode[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.environment&&Object.hasOwnProperty.call(e,"environment")&&$root.ord.ReactionSetup.ReactionEnvironment.encode(e.environment,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.ReactionSetup;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.vessel=$root.ord.Vessel.decode(e,e.uint32());break;case 2:i.isAutomated=e.bool();break;case 3:i.automationPlatform=e.string();break;case 4:{i.automationCode===$util.emptyObject&&(i.automationCode={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.automationCode[r]=o;break}case 5:i.environment=$root.ord.ReactionSetup.ReactionEnvironment.decode(e,e.uint32());break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.vessel&&e.hasOwnProperty("vessel")){let t=$root.ord.Vessel.verify(e.vessel);if(t)return"vessel."+t}if(null!=e.isAutomated&&e.hasOwnProperty("isAutomated")&&"boolean"!=typeof e.isAutomated)return"isAutomated: boolean expected";if(null!=e.automationPlatform&&e.hasOwnProperty("automationPlatform")&&!$util.isString(e.automationPlatform))return"automationPlatform: string expected";if(null!=e.automationCode&&e.hasOwnProperty("automationCode")){if(!$util.isObject(e.automationCode))return"automationCode: object expected";let t=Object.keys(e.automationCode);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.automationCode[t[r]]);if(o)return"automationCode."+o}}if(null!=e.environment&&e.hasOwnProperty("environment")){let t=$root.ord.ReactionSetup.ReactionEnvironment.verify(e.environment);if(t)return"environment."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionSetup)return e;let t=new $root.ord.ReactionSetup;if(null!=e.vessel){if("object"!=typeof e.vessel)throw TypeError(".ord.ReactionSetup.vessel: object expected");t.vessel=$root.ord.Vessel.fromObject(e.vessel)}if(null!=e.isAutomated&&(t.isAutomated=Boolean(e.isAutomated)),null!=e.automationPlatform&&(t.automationPlatform=String(e.automationPlatform)),e.automationCode){if("object"!=typeof e.automationCode)throw TypeError(".ord.ReactionSetup.automationCode: object expected");t.automationCode={};for(let r=Object.keys(e.automationCode),o=0;o<r.length;++o){if("object"!=typeof e.automationCode[r[o]])throw TypeError(".ord.ReactionSetup.automationCode: object expected");t.automationCode[r[o]]=$root.ord.Data.fromObject(e.automationCode[r[o]])}}if(null!=e.environment){if("object"!=typeof e.environment)throw TypeError(".ord.ReactionSetup.environment: object expected");t.environment=$root.ord.ReactionSetup.ReactionEnvironment.fromObject(e.environment)}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.objects||t.defaults)&&(o.automationCode={}),t.defaults&&(o.vessel=null,o.automationPlatform="",o.environment=null),null!=e.vessel&&e.hasOwnProperty("vessel")&&(o.vessel=$root.ord.Vessel.toObject(e.vessel,t)),null!=e.isAutomated&&e.hasOwnProperty("isAutomated")&&(o.isAutomated=e.isAutomated,t.oneofs&&(o._isAutomated="isAutomated")),null!=e.automationPlatform&&e.hasOwnProperty("automationPlatform")&&(o.automationPlatform=e.automationPlatform),e.automationCode&&(r=Object.keys(e.automationCode)).length){o.automationCode={};for(let n=0;n<r.length;++n)o.automationCode[r[n]]=$root.ord.Data.toObject(e.automationCode[r[n]],t)}return null!=e.environment&&e.hasOwnProperty("environment")&&(o.environment=$root.ord.ReactionSetup.ReactionEnvironment.toObject(e.environment,t)),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionSetup"},e.ReactionEnvironment=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionSetup.ReactionEnvironment;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionSetup.ReactionEnvironment)return e;let t=new $root.ord.ReactionSetup.ReactionEnvironment;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"FUME_HOOD":case 2:t.type=2;break;case"BENCH_TOP":case 3:t.type=3;break;case"GLOVE_BOX":case 4:t.type=4;break;case"GLOVE_BAG":case 5:t.type=5}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionSetup.ReactionEnvironment.ReactionEnvironmentType[e.type]?e.type:$root.ord.ReactionSetup.ReactionEnvironment.ReactionEnvironmentType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionSetup.ReactionEnvironment"},e.ReactionEnvironmentType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="FUME_HOOD"]=2,t[e[3]="BENCH_TOP"]=3,t[e[4]="GLOVE_BOX"]=4,t[e[5]="GLOVE_BAG"]=5,t}(),e}(),e}(),e.ReactionConditions=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.temperature=null,e.prototype.pressure=null,e.prototype.stirring=null,e.prototype.illumination=null,e.prototype.electrochemistry=null,e.prototype.flow=null,e.prototype.reflux=null,e.prototype.ph=null,e.prototype.conditionsAreDynamic=null,e.prototype.details="",Object.defineProperty(e.prototype,"_reflux",{get:$util.oneOfGetter(t=["reflux"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_ph",{get:$util.oneOfGetter(t=["ph"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_conditionsAreDynamic",{get:$util.oneOfGetter(t=["conditionsAreDynamic"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.temperature&&Object.hasOwnProperty.call(e,"temperature")&&$root.ord.TemperatureConditions.encode(e.temperature,t.uint32(10).fork()).ldelim(),null!=e.pressure&&Object.hasOwnProperty.call(e,"pressure")&&$root.ord.PressureConditions.encode(e.pressure,t.uint32(18).fork()).ldelim(),null!=e.stirring&&Object.hasOwnProperty.call(e,"stirring")&&$root.ord.StirringConditions.encode(e.stirring,t.uint32(26).fork()).ldelim(),null!=e.illumination&&Object.hasOwnProperty.call(e,"illumination")&&$root.ord.IlluminationConditions.encode(e.illumination,t.uint32(34).fork()).ldelim(),null!=e.electrochemistry&&Object.hasOwnProperty.call(e,"electrochemistry")&&$root.ord.ElectrochemistryConditions.encode(e.electrochemistry,t.uint32(42).fork()).ldelim(),null!=e.flow&&Object.hasOwnProperty.call(e,"flow")&&$root.ord.FlowConditions.encode(e.flow,t.uint32(50).fork()).ldelim(),null!=e.reflux&&Object.hasOwnProperty.call(e,"reflux")&&t.uint32(56).bool(e.reflux),null!=e.ph&&Object.hasOwnProperty.call(e,"ph")&&t.uint32(69).float(e.ph),null!=e.conditionsAreDynamic&&Object.hasOwnProperty.call(e,"conditionsAreDynamic")&&t.uint32(72).bool(e.conditionsAreDynamic),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(82).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.temperature=$root.ord.TemperatureConditions.decode(e,e.uint32());break;case 2:o.pressure=$root.ord.PressureConditions.decode(e,e.uint32());break;case 3:o.stirring=$root.ord.StirringConditions.decode(e,e.uint32());break;case 4:o.illumination=$root.ord.IlluminationConditions.decode(e,e.uint32());break;case 5:o.electrochemistry=$root.ord.ElectrochemistryConditions.decode(e,e.uint32());break;case 6:o.flow=$root.ord.FlowConditions.decode(e,e.uint32());break;case 7:o.reflux=e.bool();break;case 8:o.ph=e.float();break;case 9:o.conditionsAreDynamic=e.bool();break;case 10:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.temperature&&e.hasOwnProperty("temperature")){let t=$root.ord.TemperatureConditions.verify(e.temperature);if(t)return"temperature."+t}if(null!=e.pressure&&e.hasOwnProperty("pressure")){let t=$root.ord.PressureConditions.verify(e.pressure);if(t)return"pressure."+t}if(null!=e.stirring&&e.hasOwnProperty("stirring")){let t=$root.ord.StirringConditions.verify(e.stirring);if(t)return"stirring."+t}if(null!=e.illumination&&e.hasOwnProperty("illumination")){let t=$root.ord.IlluminationConditions.verify(e.illumination);if(t)return"illumination."+t}if(null!=e.electrochemistry&&e.hasOwnProperty("electrochemistry")){let t=$root.ord.ElectrochemistryConditions.verify(e.electrochemistry);if(t)return"electrochemistry."+t}if(null!=e.flow&&e.hasOwnProperty("flow")){let t=$root.ord.FlowConditions.verify(e.flow);if(t)return"flow."+t}return null!=e.reflux&&e.hasOwnProperty("reflux")&&(t._reflux=1,"boolean"!=typeof e.reflux)?"reflux: boolean expected":null!=e.ph&&e.hasOwnProperty("ph")&&(t._ph=1,"number"!=typeof e.ph)?"ph: number expected":null!=e.conditionsAreDynamic&&e.hasOwnProperty("conditionsAreDynamic")&&(t._conditionsAreDynamic=1,"boolean"!=typeof e.conditionsAreDynamic)?"conditionsAreDynamic: boolean expected":null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionConditions)return e;let t=new $root.ord.ReactionConditions;if(null!=e.temperature){if("object"!=typeof e.temperature)throw TypeError(".ord.ReactionConditions.temperature: object expected");t.temperature=$root.ord.TemperatureConditions.fromObject(e.temperature)}if(null!=e.pressure){if("object"!=typeof e.pressure)throw TypeError(".ord.ReactionConditions.pressure: object expected");t.pressure=$root.ord.PressureConditions.fromObject(e.pressure)}if(null!=e.stirring){if("object"!=typeof e.stirring)throw TypeError(".ord.ReactionConditions.stirring: object expected");t.stirring=$root.ord.StirringConditions.fromObject(e.stirring)}if(null!=e.illumination){if("object"!=typeof e.illumination)throw TypeError(".ord.ReactionConditions.illumination: object expected");t.illumination=$root.ord.IlluminationConditions.fromObject(e.illumination)}if(null!=e.electrochemistry){if("object"!=typeof e.electrochemistry)throw TypeError(".ord.ReactionConditions.electrochemistry: object expected");t.electrochemistry=$root.ord.ElectrochemistryConditions.fromObject(e.electrochemistry)}if(null!=e.flow){if("object"!=typeof e.flow)throw TypeError(".ord.ReactionConditions.flow: object expected");t.flow=$root.ord.FlowConditions.fromObject(e.flow)}return null!=e.reflux&&(t.reflux=Boolean(e.reflux)),null!=e.ph&&(t.ph=Number(e.ph)),null!=e.conditionsAreDynamic&&(t.conditionsAreDynamic=Boolean(e.conditionsAreDynamic)),null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.temperature=null,r.pressure=null,r.stirring=null,r.illumination=null,r.electrochemistry=null,r.flow=null,r.details=""),null!=e.temperature&&e.hasOwnProperty("temperature")&&(r.temperature=$root.ord.TemperatureConditions.toObject(e.temperature,t)),null!=e.pressure&&e.hasOwnProperty("pressure")&&(r.pressure=$root.ord.PressureConditions.toObject(e.pressure,t)),null!=e.stirring&&e.hasOwnProperty("stirring")&&(r.stirring=$root.ord.StirringConditions.toObject(e.stirring,t)),null!=e.illumination&&e.hasOwnProperty("illumination")&&(r.illumination=$root.ord.IlluminationConditions.toObject(e.illumination,t)),null!=e.electrochemistry&&e.hasOwnProperty("electrochemistry")&&(r.electrochemistry=$root.ord.ElectrochemistryConditions.toObject(e.electrochemistry,t)),null!=e.flow&&e.hasOwnProperty("flow")&&(r.flow=$root.ord.FlowConditions.toObject(e.flow,t)),null!=e.reflux&&e.hasOwnProperty("reflux")&&(r.reflux=e.reflux,t.oneofs&&(r._reflux="reflux")),null!=e.ph&&e.hasOwnProperty("ph")&&(r.ph=t.json&&!isFinite(e.ph)?String(e.ph):e.ph,t.oneofs&&(r._ph="ph")),null!=e.conditionsAreDynamic&&e.hasOwnProperty("conditionsAreDynamic")&&(r.conditionsAreDynamic=e.conditionsAreDynamic,t.oneofs&&(r._conditionsAreDynamic="conditionsAreDynamic")),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionConditions"},e}(),e.TemperatureConditions=function(){function e(e){if(this.measurements=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.control=null,e.prototype.setpoint=null,e.prototype.measurements=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.control&&Object.hasOwnProperty.call(e,"control")&&$root.ord.TemperatureConditions.TemperatureControl.encode(e.control,t.uint32(10).fork()).ldelim(),null!=e.setpoint&&Object.hasOwnProperty.call(e,"setpoint")&&$root.ord.Temperature.encode(e.setpoint,t.uint32(18).fork()).ldelim(),null!=e.measurements&&e.measurements.length)for(let r=0;r<e.measurements.length;++r)$root.ord.TemperatureConditions.TemperatureMeasurement.encode(e.measurements[r],t.uint32(26).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.TemperatureConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.control=$root.ord.TemperatureConditions.TemperatureControl.decode(e,e.uint32());break;case 2:o.setpoint=$root.ord.Temperature.decode(e,e.uint32());break;case 3:o.measurements&&o.measurements.length||(o.measurements=[]),o.measurements.push($root.ord.TemperatureConditions.TemperatureMeasurement.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.control&&e.hasOwnProperty("control")){let t=$root.ord.TemperatureConditions.TemperatureControl.verify(e.control);if(t)return"control."+t}if(null!=e.setpoint&&e.hasOwnProperty("setpoint")){let t=$root.ord.Temperature.verify(e.setpoint);if(t)return"setpoint."+t}if(null!=e.measurements&&e.hasOwnProperty("measurements")){if(!Array.isArray(e.measurements))return"measurements: array expected";for(let t=0;t<e.measurements.length;++t){let r=$root.ord.TemperatureConditions.TemperatureMeasurement.verify(e.measurements[t]);if(r)return"measurements."+r}}return null},e.fromObject=function(e){if(e instanceof $root.ord.TemperatureConditions)return e;let t=new $root.ord.TemperatureConditions;if(null!=e.control){if("object"!=typeof e.control)throw TypeError(".ord.TemperatureConditions.control: object expected");t.control=$root.ord.TemperatureConditions.TemperatureControl.fromObject(e.control)}if(null!=e.setpoint){if("object"!=typeof e.setpoint)throw TypeError(".ord.TemperatureConditions.setpoint: object expected");t.setpoint=$root.ord.Temperature.fromObject(e.setpoint)}if(e.measurements){if(!Array.isArray(e.measurements))throw TypeError(".ord.TemperatureConditions.measurements: array expected");t.measurements=[];for(let r=0;r<e.measurements.length;++r){if("object"!=typeof e.measurements[r])throw TypeError(".ord.TemperatureConditions.measurements: object expected");t.measurements[r]=$root.ord.TemperatureConditions.TemperatureMeasurement.fromObject(e.measurements[r])}}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.measurements=[]),t.defaults&&(r.control=null,r.setpoint=null),null!=e.control&&e.hasOwnProperty("control")&&(r.control=$root.ord.TemperatureConditions.TemperatureControl.toObject(e.control,t)),null!=e.setpoint&&e.hasOwnProperty("setpoint")&&(r.setpoint=$root.ord.Temperature.toObject(e.setpoint,t)),e.measurements&&e.measurements.length){r.measurements=[];for(let o=0;o<e.measurements.length;++o)r.measurements[o]=$root.ord.TemperatureConditions.TemperatureMeasurement.toObject(e.measurements[o],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.TemperatureConditions"},e.TemperatureControl=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.TemperatureConditions.TemperatureControl;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.TemperatureConditions.TemperatureControl)return e;let t=new $root.ord.TemperatureConditions.TemperatureControl;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"AMBIENT":case 2:t.type=2;break;case"OIL_BATH":case 3:t.type=3;break;case"WATER_BATH":case 4:t.type=4;break;case"SAND_BATH":case 5:t.type=5;break;case"ICE_BATH":case 6:t.type=6;break;case"DRY_ALUMINUM_PLATE":case 7:t.type=7;break;case"MICROWAVE":case 8:t.type=8;break;case"DRY_ICE_BATH":case 9:t.type=9;break;case"AIR_FAN":case 10:t.type=10;break;case"LIQUID_NITROGEN":case 11:t.type=11}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.TemperatureConditions.TemperatureControl.TemperatureControlType[e.type]?e.type:$root.ord.TemperatureConditions.TemperatureControl.TemperatureControlType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.TemperatureConditions.TemperatureControl"},e.TemperatureControlType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="AMBIENT"]=2,t[e[3]="OIL_BATH"]=3,t[e[4]="WATER_BATH"]=4,t[e[5]="SAND_BATH"]=5,t[e[6]="ICE_BATH"]=6,t[e[7]="DRY_ALUMINUM_PLATE"]=7,t[e[8]="MICROWAVE"]=8,t[e[9]="DRY_ICE_BATH"]=9,t[e[10]="AIR_FAN"]=10,t[e[11]="LIQUID_NITROGEN"]=11,t}(),e}(),e.TemperatureMeasurement=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.time=null,e.prototype.temperature=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.Time.encode(e.time,t.uint32(26).fork()).ldelim(),null!=e.temperature&&Object.hasOwnProperty.call(e,"temperature")&&$root.ord.Temperature.encode(e.temperature,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.TemperatureConditions.TemperatureMeasurement;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.time=$root.ord.Time.decode(e,e.uint32());break;case 4:o.temperature=$root.ord.Temperature.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.Time.verify(e.time);if(t)return"time."+t}if(null!=e.temperature&&e.hasOwnProperty("temperature")){let t=$root.ord.Temperature.verify(e.temperature);if(t)return"temperature."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.TemperatureConditions.TemperatureMeasurement)return e;let t=new $root.ord.TemperatureConditions.TemperatureMeasurement;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"THERMOCOUPLE_INTERNAL":case 2:t.type=2;break;case"THERMOCOUPLE_EXTERNAL":case 3:t.type=3;break;case"INFRARED":case 4:t.type=4}if(null!=e.details&&(t.details=String(e.details)),null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.TemperatureConditions.TemperatureMeasurement.time: object expected");t.time=$root.ord.Time.fromObject(e.time)}if(null!=e.temperature){if("object"!=typeof e.temperature)throw TypeError(".ord.TemperatureConditions.TemperatureMeasurement.temperature: object expected");t.temperature=$root.ord.Temperature.fromObject(e.temperature)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.time=null,r.temperature=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.TemperatureConditions.TemperatureMeasurement.TemperatureMeasurementType[e.type]?e.type:$root.ord.TemperatureConditions.TemperatureMeasurement.TemperatureMeasurementType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.Time.toObject(e.time,t)),null!=e.temperature&&e.hasOwnProperty("temperature")&&(r.temperature=$root.ord.Temperature.toObject(e.temperature,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.TemperatureConditions.TemperatureMeasurement"},e.TemperatureMeasurementType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="THERMOCOUPLE_INTERNAL"]=2,t[e[3]="THERMOCOUPLE_EXTERNAL"]=3,t[e[4]="INFRARED"]=4,t}(),e}(),e}(),e.PressureConditions=function(){function e(e){if(this.measurements=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.control=null,e.prototype.setpoint=null,e.prototype.atmosphere=null,e.prototype.measurements=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.control&&Object.hasOwnProperty.call(e,"control")&&$root.ord.PressureConditions.PressureControl.encode(e.control,t.uint32(10).fork()).ldelim(),null!=e.setpoint&&Object.hasOwnProperty.call(e,"setpoint")&&$root.ord.Pressure.encode(e.setpoint,t.uint32(18).fork()).ldelim(),null!=e.atmosphere&&Object.hasOwnProperty.call(e,"atmosphere")&&$root.ord.PressureConditions.Atmosphere.encode(e.atmosphere,t.uint32(26).fork()).ldelim(),null!=e.measurements&&e.measurements.length)for(let r=0;r<e.measurements.length;++r)$root.ord.PressureConditions.PressureMeasurement.encode(e.measurements[r],t.uint32(34).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.PressureConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.control=$root.ord.PressureConditions.PressureControl.decode(e,e.uint32());break;case 2:o.setpoint=$root.ord.Pressure.decode(e,e.uint32());break;case 3:o.atmosphere=$root.ord.PressureConditions.Atmosphere.decode(e,e.uint32());break;case 4:o.measurements&&o.measurements.length||(o.measurements=[]),o.measurements.push($root.ord.PressureConditions.PressureMeasurement.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.control&&e.hasOwnProperty("control")){let t=$root.ord.PressureConditions.PressureControl.verify(e.control);if(t)return"control."+t}if(null!=e.setpoint&&e.hasOwnProperty("setpoint")){let t=$root.ord.Pressure.verify(e.setpoint);if(t)return"setpoint."+t}if(null!=e.atmosphere&&e.hasOwnProperty("atmosphere")){let t=$root.ord.PressureConditions.Atmosphere.verify(e.atmosphere);if(t)return"atmosphere."+t}if(null!=e.measurements&&e.hasOwnProperty("measurements")){if(!Array.isArray(e.measurements))return"measurements: array expected";for(let t=0;t<e.measurements.length;++t){let r=$root.ord.PressureConditions.PressureMeasurement.verify(e.measurements[t]);if(r)return"measurements."+r}}return null},e.fromObject=function(e){if(e instanceof $root.ord.PressureConditions)return e;let t=new $root.ord.PressureConditions;if(null!=e.control){if("object"!=typeof e.control)throw TypeError(".ord.PressureConditions.control: object expected");t.control=$root.ord.PressureConditions.PressureControl.fromObject(e.control)}if(null!=e.setpoint){if("object"!=typeof e.setpoint)throw TypeError(".ord.PressureConditions.setpoint: object expected");t.setpoint=$root.ord.Pressure.fromObject(e.setpoint)}if(null!=e.atmosphere){if("object"!=typeof e.atmosphere)throw TypeError(".ord.PressureConditions.atmosphere: object expected");t.atmosphere=$root.ord.PressureConditions.Atmosphere.fromObject(e.atmosphere)}if(e.measurements){if(!Array.isArray(e.measurements))throw TypeError(".ord.PressureConditions.measurements: array expected");t.measurements=[];for(let r=0;r<e.measurements.length;++r){if("object"!=typeof e.measurements[r])throw TypeError(".ord.PressureConditions.measurements: object expected");t.measurements[r]=$root.ord.PressureConditions.PressureMeasurement.fromObject(e.measurements[r])}}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.measurements=[]),t.defaults&&(r.control=null,r.setpoint=null,r.atmosphere=null),null!=e.control&&e.hasOwnProperty("control")&&(r.control=$root.ord.PressureConditions.PressureControl.toObject(e.control,t)),null!=e.setpoint&&e.hasOwnProperty("setpoint")&&(r.setpoint=$root.ord.Pressure.toObject(e.setpoint,t)),null!=e.atmosphere&&e.hasOwnProperty("atmosphere")&&(r.atmosphere=$root.ord.PressureConditions.Atmosphere.toObject(e.atmosphere,t)),e.measurements&&e.measurements.length){r.measurements=[];for(let o=0;o<e.measurements.length;++o)r.measurements[o]=$root.ord.PressureConditions.PressureMeasurement.toObject(e.measurements[o],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.PressureConditions"},e.PressureControl=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.PressureConditions.PressureControl;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.PressureConditions.PressureControl)return e;let t=new $root.ord.PressureConditions.PressureControl;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"AMBIENT":case 2:t.type=2;break;case"SLIGHT_POSITIVE":case 3:t.type=3;break;case"SEALED":case 4:t.type=4;break;case"PRESSURIZED":case 5:t.type=5}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.PressureConditions.PressureControl.PressureControlType[e.type]?e.type:$root.ord.PressureConditions.PressureControl.PressureControlType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.PressureConditions.PressureControl"},e.PressureControlType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="AMBIENT"]=2,t[e[3]="SLIGHT_POSITIVE"]=3,t[e[4]="SEALED"]=4,t[e[5]="PRESSURIZED"]=5,t}(),e}(),e.Atmosphere=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.PressureConditions.Atmosphere;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.PressureConditions.Atmosphere)return e;let t=new $root.ord.PressureConditions.Atmosphere;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"AIR":case 2:t.type=2;break;case"NITROGEN":case 3:t.type=3;break;case"ARGON":case 4:t.type=4;break;case"OXYGEN":case 5:t.type=5;break;case"HYDROGEN":case 6:t.type=6;break;case"CARBON_MONOXIDE":case 7:t.type=7;break;case"CARBON_DIOXIDE":case 8:t.type=8;break;case"METHANE":case 9:t.type=9;break;case"AMMONIA":case 10:t.type=10;break;case"OZONE":case 11:t.type=11;break;case"ETHYLENE":case 12:t.type=12;break;case"ACETYLENE":case 13:t.type=13}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.PressureConditions.Atmosphere.AtmosphereType[e.type]?e.type:$root.ord.PressureConditions.Atmosphere.AtmosphereType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.PressureConditions.Atmosphere"},e.AtmosphereType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="AIR"]=2,t[e[3]="NITROGEN"]=3,t[e[4]="ARGON"]=4,t[e[5]="OXYGEN"]=5,t[e[6]="HYDROGEN"]=6,t[e[7]="CARBON_MONOXIDE"]=7,t[e[8]="CARBON_DIOXIDE"]=8,t[e[9]="METHANE"]=9,t[e[10]="AMMONIA"]=10,t[e[11]="OZONE"]=11,t[e[12]="ETHYLENE"]=12,t[e[13]="ACETYLENE"]=13,t}(),e}(),e.PressureMeasurement=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.time=null,e.prototype.pressure=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.Time.encode(e.time,t.uint32(26).fork()).ldelim(),null!=e.pressure&&Object.hasOwnProperty.call(e,"pressure")&&$root.ord.Pressure.encode(e.pressure,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.PressureConditions.PressureMeasurement;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.time=$root.ord.Time.decode(e,e.uint32());break;case 4:o.pressure=$root.ord.Pressure.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.Time.verify(e.time);if(t)return"time."+t}if(null!=e.pressure&&e.hasOwnProperty("pressure")){let t=$root.ord.Pressure.verify(e.pressure);if(t)return"pressure."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.PressureConditions.PressureMeasurement)return e;let t=new $root.ord.PressureConditions.PressureMeasurement;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"PRESSURE_TRANSDUCER":case 2:t.type=2}if(null!=e.details&&(t.details=String(e.details)),null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.PressureConditions.PressureMeasurement.time: object expected");t.time=$root.ord.Time.fromObject(e.time)}if(null!=e.pressure){if("object"!=typeof e.pressure)throw TypeError(".ord.PressureConditions.PressureMeasurement.pressure: object expected");t.pressure=$root.ord.Pressure.fromObject(e.pressure)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.time=null,r.pressure=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.PressureConditions.PressureMeasurement.PressureMeasurementType[e.type]?e.type:$root.ord.PressureConditions.PressureMeasurement.PressureMeasurementType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.Time.toObject(e.time,t)),null!=e.pressure&&e.hasOwnProperty("pressure")&&(r.pressure=$root.ord.Pressure.toObject(e.pressure,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.PressureConditions.PressureMeasurement"},e.PressureMeasurementType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="PRESSURE_TRANSDUCER"]=2,t}(),e}(),e}(),e.StirringConditions=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.rate=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.rate&&Object.hasOwnProperty.call(e,"rate")&&$root.ord.StirringConditions.StirringRate.encode(e.rate,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.StirringConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.rate=$root.ord.StirringConditions.StirringRate.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.rate&&e.hasOwnProperty("rate")){let t=$root.ord.StirringConditions.StirringRate.verify(e.rate);if(t)return"rate."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.StirringConditions)return e;let t=new $root.ord.StirringConditions;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"NONE":case 2:t.type=2;break;case"STIR_BAR":case 3:t.type=3;break;case"OVERHEAD_MIXER":case 4:t.type=4;break;case"AGITATION":case 5:t.type=5;break;case"BALL_MILLING":case 6:t.type=6;break;case"SONICATION":case 7:t.type=7}if(null!=e.details&&(t.details=String(e.details)),null!=e.rate){if("object"!=typeof e.rate)throw TypeError(".ord.StirringConditions.rate: object expected");t.rate=$root.ord.StirringConditions.StirringRate.fromObject(e.rate)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.rate=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.StirringConditions.StirringMethodType[e.type]?e.type:$root.ord.StirringConditions.StirringMethodType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.rate&&e.hasOwnProperty("rate")&&(r.rate=$root.ord.StirringConditions.StirringRate.toObject(e.rate,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.StirringConditions"},e.StirringMethodType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="NONE"]=2,t[e[3]="STIR_BAR"]=3,t[e[4]="OVERHEAD_MIXER"]=4,t[e[5]="AGITATION"]=5,t[e[6]="BALL_MILLING"]=6,t[e[7]="SONICATION"]=7,t}(),e.StirringRate=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.rpm=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.rpm&&Object.hasOwnProperty.call(e,"rpm")&&t.uint32(24).int32(e.rpm),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.StirringConditions.StirringRate;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.rpm=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null!=e.rpm&&e.hasOwnProperty("rpm")&&!$util.isInteger(e.rpm)?"rpm: integer expected":null},e.fromObject=function(e){if(e instanceof $root.ord.StirringConditions.StirringRate)return e;let t=new $root.ord.StirringConditions.StirringRate;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"HIGH":case 1:t.type=1;break;case"MEDIUM":case 2:t.type=2;break;case"LOW":case 3:t.type=3}return null!=e.details&&(t.details=String(e.details)),null!=e.rpm&&(t.rpm=0|e.rpm),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.rpm=0),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.StirringConditions.StirringRate.StirringRateType[e.type]?e.type:$root.ord.StirringConditions.StirringRate.StirringRateType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.rpm&&e.hasOwnProperty("rpm")&&(r.rpm=e.rpm),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.StirringConditions.StirringRate"},e.StirringRateType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="HIGH"]=1,t[e[2]="MEDIUM"]=2,t[e[3]="LOW"]=3,t}(),e}(),e}(),e.IlluminationConditions=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.peakWavelength=null,e.prototype.color="",e.prototype.distanceToVessel=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.peakWavelength&&Object.hasOwnProperty.call(e,"peakWavelength")&&$root.ord.Wavelength.encode(e.peakWavelength,t.uint32(26).fork()).ldelim(),null!=e.color&&Object.hasOwnProperty.call(e,"color")&&t.uint32(34).string(e.color),null!=e.distanceToVessel&&Object.hasOwnProperty.call(e,"distanceToVessel")&&$root.ord.Length.encode(e.distanceToVessel,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.IlluminationConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.peakWavelength=$root.ord.Wavelength.decode(e,e.uint32());break;case 4:o.color=e.string();break;case 5:o.distanceToVessel=$root.ord.Length.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.peakWavelength&&e.hasOwnProperty("peakWavelength")){let t=$root.ord.Wavelength.verify(e.peakWavelength);if(t)return"peakWavelength."+t}if(null!=e.color&&e.hasOwnProperty("color")&&!$util.isString(e.color))return"color: string expected";if(null!=e.distanceToVessel&&e.hasOwnProperty("distanceToVessel")){let t=$root.ord.Length.verify(e.distanceToVessel);if(t)return"distanceToVessel."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.IlluminationConditions)return e;let t=new $root.ord.IlluminationConditions;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"AMBIENT":case 2:t.type=2;break;case"DARK":case 3:t.type=3;break;case"LED":case 4:t.type=4;break;case"HALOGEN_LAMP":case 5:t.type=5;break;case"DEUTERIUM_LAMP":case 6:t.type=6;break;case"SOLAR_SIMULATOR":case 7:t.type=7;break;case"BROAD_SPECTRUM":case 8:t.type=8}if(null!=e.details&&(t.details=String(e.details)),null!=e.peakWavelength){if("object"!=typeof e.peakWavelength)throw TypeError(".ord.IlluminationConditions.peakWavelength: object expected");t.peakWavelength=$root.ord.Wavelength.fromObject(e.peakWavelength)}if(null!=e.color&&(t.color=String(e.color)),null!=e.distanceToVessel){if("object"!=typeof e.distanceToVessel)throw TypeError(".ord.IlluminationConditions.distanceToVessel: object expected");t.distanceToVessel=$root.ord.Length.fromObject(e.distanceToVessel)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.peakWavelength=null,r.color="",r.distanceToVessel=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.IlluminationConditions.IlluminationType[e.type]?e.type:$root.ord.IlluminationConditions.IlluminationType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.peakWavelength&&e.hasOwnProperty("peakWavelength")&&(r.peakWavelength=$root.ord.Wavelength.toObject(e.peakWavelength,t)),null!=e.color&&e.hasOwnProperty("color")&&(r.color=e.color),null!=e.distanceToVessel&&e.hasOwnProperty("distanceToVessel")&&(r.distanceToVessel=$root.ord.Length.toObject(e.distanceToVessel,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.IlluminationConditions"},e.IlluminationType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="AMBIENT"]=2,t[e[3]="DARK"]=3,t[e[4]="LED"]=4,t[e[5]="HALOGEN_LAMP"]=5,t[e[6]="DEUTERIUM_LAMP"]=6,t[e[7]="SOLAR_SIMULATOR"]=7,t[e[8]="BROAD_SPECTRUM"]=8,t}(),e}(),e.ElectrochemistryConditions=function(){function e(e){if(this.measurements=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.current=null,e.prototype.voltage=null,e.prototype.anodeMaterial="",e.prototype.cathodeMaterial="",e.prototype.electrodeSeparation=null,e.prototype.measurements=$util.emptyArray,e.prototype.cell=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.current&&Object.hasOwnProperty.call(e,"current")&&$root.ord.Current.encode(e.current,t.uint32(26).fork()).ldelim(),null!=e.voltage&&Object.hasOwnProperty.call(e,"voltage")&&$root.ord.Voltage.encode(e.voltage,t.uint32(34).fork()).ldelim(),null!=e.anodeMaterial&&Object.hasOwnProperty.call(e,"anodeMaterial")&&t.uint32(42).string(e.anodeMaterial),null!=e.cathodeMaterial&&Object.hasOwnProperty.call(e,"cathodeMaterial")&&t.uint32(50).string(e.cathodeMaterial),null!=e.electrodeSeparation&&Object.hasOwnProperty.call(e,"electrodeSeparation")&&$root.ord.Length.encode(e.electrodeSeparation,t.uint32(58).fork()).ldelim(),null!=e.measurements&&e.measurements.length)for(let r=0;r<e.measurements.length;++r)$root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.encode(e.measurements[r],t.uint32(66).fork()).ldelim();return null!=e.cell&&Object.hasOwnProperty.call(e,"cell")&&$root.ord.ElectrochemistryConditions.ElectrochemistryCell.encode(e.cell,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ElectrochemistryConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.current=$root.ord.Current.decode(e,e.uint32());break;case 4:o.voltage=$root.ord.Voltage.decode(e,e.uint32());break;case 5:o.anodeMaterial=e.string();break;case 6:o.cathodeMaterial=e.string();break;case 7:o.electrodeSeparation=$root.ord.Length.decode(e,e.uint32());break;case 8:o.measurements&&o.measurements.length||(o.measurements=[]),o.measurements.push($root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.decode(e,e.uint32()));break;case 9:o.cell=$root.ord.ElectrochemistryConditions.ElectrochemistryCell.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.current&&e.hasOwnProperty("current")){let t=$root.ord.Current.verify(e.current);if(t)return"current."+t}if(null!=e.voltage&&e.hasOwnProperty("voltage")){let t=$root.ord.Voltage.verify(e.voltage);if(t)return"voltage."+t}if(null!=e.anodeMaterial&&e.hasOwnProperty("anodeMaterial")&&!$util.isString(e.anodeMaterial))return"anodeMaterial: string expected";if(null!=e.cathodeMaterial&&e.hasOwnProperty("cathodeMaterial")&&!$util.isString(e.cathodeMaterial))return"cathodeMaterial: string expected";if(null!=e.electrodeSeparation&&e.hasOwnProperty("electrodeSeparation")){let t=$root.ord.Length.verify(e.electrodeSeparation);if(t)return"electrodeSeparation."+t}if(null!=e.measurements&&e.hasOwnProperty("measurements")){if(!Array.isArray(e.measurements))return"measurements: array expected";for(let t=0;t<e.measurements.length;++t){let r=$root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.verify(e.measurements[t]);if(r)return"measurements."+r}}if(null!=e.cell&&e.hasOwnProperty("cell")){let t=$root.ord.ElectrochemistryConditions.ElectrochemistryCell.verify(e.cell);if(t)return"cell."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ElectrochemistryConditions)return e;let t=new $root.ord.ElectrochemistryConditions;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"CONSTANT_CURRENT":case 2:t.type=2;break;case"CONSTANT_VOLTAGE":case 3:t.type=3}if(null!=e.details&&(t.details=String(e.details)),null!=e.current){if("object"!=typeof e.current)throw TypeError(".ord.ElectrochemistryConditions.current: object expected");t.current=$root.ord.Current.fromObject(e.current)}if(null!=e.voltage){if("object"!=typeof e.voltage)throw TypeError(".ord.ElectrochemistryConditions.voltage: object expected");t.voltage=$root.ord.Voltage.fromObject(e.voltage)}if(null!=e.anodeMaterial&&(t.anodeMaterial=String(e.anodeMaterial)),null!=e.cathodeMaterial&&(t.cathodeMaterial=String(e.cathodeMaterial)),null!=e.electrodeSeparation){if("object"!=typeof e.electrodeSeparation)throw TypeError(".ord.ElectrochemistryConditions.electrodeSeparation: object expected");t.electrodeSeparation=$root.ord.Length.fromObject(e.electrodeSeparation)}if(e.measurements){if(!Array.isArray(e.measurements))throw TypeError(".ord.ElectrochemistryConditions.measurements: array expected");t.measurements=[];for(let r=0;r<e.measurements.length;++r){if("object"!=typeof e.measurements[r])throw TypeError(".ord.ElectrochemistryConditions.measurements: object expected");t.measurements[r]=$root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.fromObject(e.measurements[r])}}if(null!=e.cell){if("object"!=typeof e.cell)throw TypeError(".ord.ElectrochemistryConditions.cell: object expected");t.cell=$root.ord.ElectrochemistryConditions.ElectrochemistryCell.fromObject(e.cell)}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.measurements=[]),t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.current=null,r.voltage=null,r.anodeMaterial="",r.cathodeMaterial="",r.electrodeSeparation=null,r.cell=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ElectrochemistryConditions.ElectrochemistryType[e.type]?e.type:$root.ord.ElectrochemistryConditions.ElectrochemistryType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.current&&e.hasOwnProperty("current")&&(r.current=$root.ord.Current.toObject(e.current,t)),null!=e.voltage&&e.hasOwnProperty("voltage")&&(r.voltage=$root.ord.Voltage.toObject(e.voltage,t)),null!=e.anodeMaterial&&e.hasOwnProperty("anodeMaterial")&&(r.anodeMaterial=e.anodeMaterial),null!=e.cathodeMaterial&&e.hasOwnProperty("cathodeMaterial")&&(r.cathodeMaterial=e.cathodeMaterial),null!=e.electrodeSeparation&&e.hasOwnProperty("electrodeSeparation")&&(r.electrodeSeparation=$root.ord.Length.toObject(e.electrodeSeparation,t)),e.measurements&&e.measurements.length){r.measurements=[];for(let o=0;o<e.measurements.length;++o)r.measurements[o]=$root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement.toObject(e.measurements[o],t)}return null!=e.cell&&e.hasOwnProperty("cell")&&(r.cell=$root.ord.ElectrochemistryConditions.ElectrochemistryCell.toObject(e.cell,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ElectrochemistryConditions"},e.ElectrochemistryType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="CONSTANT_CURRENT"]=2,t[e[3]="CONSTANT_VOLTAGE"]=3,t}(),e.ElectrochemistryMeasurement=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.time=null,e.prototype.current=null,e.prototype.voltage=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.Time.encode(e.time,t.uint32(10).fork()).ldelim(),null!=e.current&&Object.hasOwnProperty.call(e,"current")&&$root.ord.Current.encode(e.current,t.uint32(18).fork()).ldelim(),null!=e.voltage&&Object.hasOwnProperty.call(e,"voltage")&&$root.ord.Voltage.encode(e.voltage,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.time=$root.ord.Time.decode(e,e.uint32());break;case 2:o.current=$root.ord.Current.decode(e,e.uint32());break;case 3:o.voltage=$root.ord.Voltage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.Time.verify(e.time);if(t)return"time."+t}if(null!=e.current&&e.hasOwnProperty("current")){let t=$root.ord.Current.verify(e.current);if(t)return"current."+t}if(null!=e.voltage&&e.hasOwnProperty("voltage")){let t=$root.ord.Voltage.verify(e.voltage);if(t)return"voltage."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement)return e;let t=new $root.ord.ElectrochemistryConditions.ElectrochemistryMeasurement;if(null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.ElectrochemistryConditions.ElectrochemistryMeasurement.time: object expected");t.time=$root.ord.Time.fromObject(e.time)}if(null!=e.current){if("object"!=typeof e.current)throw TypeError(".ord.ElectrochemistryConditions.ElectrochemistryMeasurement.current: object expected");t.current=$root.ord.Current.fromObject(e.current)}if(null!=e.voltage){if("object"!=typeof e.voltage)throw TypeError(".ord.ElectrochemistryConditions.ElectrochemistryMeasurement.voltage: object expected");t.voltage=$root.ord.Voltage.fromObject(e.voltage)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.time=null,r.current=null,r.voltage=null),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.Time.toObject(e.time,t)),null!=e.current&&e.hasOwnProperty("current")&&(r.current=$root.ord.Current.toObject(e.current,t)),null!=e.voltage&&e.hasOwnProperty("voltage")&&(r.voltage=$root.ord.Voltage.toObject(e.voltage,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ElectrochemistryConditions.ElectrochemistryMeasurement"},e}(),e.ElectrochemistryCell=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ElectrochemistryConditions.ElectrochemistryCell;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ElectrochemistryConditions.ElectrochemistryCell)return e;let t=new $root.ord.ElectrochemistryConditions.ElectrochemistryCell;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"DIVIDED_CELL":case 2:t.type=2;break;case"UNDIVIDED_CELL":case 3:t.type=3}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ElectrochemistryConditions.ElectrochemistryCell.ElectrochemistryCellType[e.type]?e.type:$root.ord.ElectrochemistryConditions.ElectrochemistryCell.ElectrochemistryCellType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ElectrochemistryConditions.ElectrochemistryCell"},e.ElectrochemistryCellType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="DIVIDED_CELL"]=2,t[e[3]="UNDIVIDED_CELL"]=3,t}(),e}(),e}(),e.FlowConditions=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.pumpType="",e.prototype.tubing=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.pumpType&&Object.hasOwnProperty.call(e,"pumpType")&&t.uint32(26).string(e.pumpType),null!=e.tubing&&Object.hasOwnProperty.call(e,"tubing")&&$root.ord.FlowConditions.Tubing.encode(e.tubing,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.FlowConditions;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.pumpType=e.string();break;case 4:o.tubing=$root.ord.FlowConditions.Tubing.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.pumpType&&e.hasOwnProperty("pumpType")&&!$util.isString(e.pumpType))return"pumpType: string expected";if(null!=e.tubing&&e.hasOwnProperty("tubing")){let t=$root.ord.FlowConditions.Tubing.verify(e.tubing);if(t)return"tubing."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.FlowConditions)return e;let t=new $root.ord.FlowConditions;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"PLUG_FLOW_REACTOR":case 2:t.type=2;break;case"CONTINUOUS_STIRRED_TANK_REACTOR":case 3:t.type=3;break;case"PACKED_BED_REACTOR":case 4:t.type=4}if(null!=e.details&&(t.details=String(e.details)),null!=e.pumpType&&(t.pumpType=String(e.pumpType)),null!=e.tubing){if("object"!=typeof e.tubing)throw TypeError(".ord.FlowConditions.tubing: object expected");t.tubing=$root.ord.FlowConditions.Tubing.fromObject(e.tubing)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.pumpType="",r.tubing=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.FlowConditions.FlowType[e.type]?e.type:$root.ord.FlowConditions.FlowType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.pumpType&&e.hasOwnProperty("pumpType")&&(r.pumpType=e.pumpType),null!=e.tubing&&e.hasOwnProperty("tubing")&&(r.tubing=$root.ord.FlowConditions.Tubing.toObject(e.tubing,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.FlowConditions"},e.FlowType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="PLUG_FLOW_REACTOR"]=2,t[e[3]="CONTINUOUS_STIRRED_TANK_REACTOR"]=3,t[e[4]="PACKED_BED_REACTOR"]=4,t}(),e.Tubing=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.prototype.diameter=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.diameter&&Object.hasOwnProperty.call(e,"diameter")&&$root.ord.Length.encode(e.diameter,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.FlowConditions.Tubing;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.diameter=$root.ord.Length.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.diameter&&e.hasOwnProperty("diameter")){let t=$root.ord.Length.verify(e.diameter);if(t)return"diameter."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.FlowConditions.Tubing)return e;let t=new $root.ord.FlowConditions.Tubing;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"STEEL":case 2:t.type=2;break;case"COPPER":case 3:t.type=3;break;case"PFA":case 4:t.type=4;break;case"FEP":case 5:t.type=5;break;case"TEFLONAF":case 6:t.type=6;break;case"PTFE":case 7:t.type=7;break;case"GLASS":case 8:t.type=8;break;case"QUARTZ":case 9:t.type=9;break;case"SILICON":case 10:t.type=10;break;case"PDMS":case 11:t.type=11}if(null!=e.details&&(t.details=String(e.details)),null!=e.diameter){if("object"!=typeof e.diameter)throw TypeError(".ord.FlowConditions.Tubing.diameter: object expected");t.diameter=$root.ord.Length.fromObject(e.diameter)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.diameter=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.FlowConditions.Tubing.TubingType[e.type]?e.type:$root.ord.FlowConditions.Tubing.TubingType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.diameter&&e.hasOwnProperty("diameter")&&(r.diameter=$root.ord.Length.toObject(e.diameter,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.FlowConditions.Tubing"},e.TubingType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="STEEL"]=2,t[e[3]="COPPER"]=3,t[e[4]="PFA"]=4,t[e[5]="FEP"]=5,t[e[6]="TEFLONAF"]=6,t[e[7]="PTFE"]=7,t[e[8]="GLASS"]=8,t[e[9]="QUARTZ"]=9,t[e[10]="SILICON"]=10,t[e[11]="PDMS"]=11,t}(),e}(),e}(),e.ReactionNotes=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.isHeterogeneous=null,e.prototype.formsPrecipitate=null,e.prototype.isExothermic=null,e.prototype.offgasses=null,e.prototype.isSensitiveToMoisture=null,e.prototype.isSensitiveToOxygen=null,e.prototype.isSensitiveToLight=null,e.prototype.safetyNotes="",e.prototype.procedureDetails="",Object.defineProperty(e.prototype,"_isHeterogeneous",{get:$util.oneOfGetter(t=["isHeterogeneous"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_formsPrecipitate",{get:$util.oneOfGetter(t=["formsPrecipitate"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isExothermic",{get:$util.oneOfGetter(t=["isExothermic"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_offgasses",{get:$util.oneOfGetter(t=["offgasses"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isSensitiveToMoisture",{get:$util.oneOfGetter(t=["isSensitiveToMoisture"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isSensitiveToOxygen",{get:$util.oneOfGetter(t=["isSensitiveToOxygen"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isSensitiveToLight",{get:$util.oneOfGetter(t=["isSensitiveToLight"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.isHeterogeneous&&Object.hasOwnProperty.call(e,"isHeterogeneous")&&t.uint32(8).bool(e.isHeterogeneous),null!=e.formsPrecipitate&&Object.hasOwnProperty.call(e,"formsPrecipitate")&&t.uint32(16).bool(e.formsPrecipitate),null!=e.isExothermic&&Object.hasOwnProperty.call(e,"isExothermic")&&t.uint32(24).bool(e.isExothermic),null!=e.offgasses&&Object.hasOwnProperty.call(e,"offgasses")&&t.uint32(32).bool(e.offgasses),null!=e.isSensitiveToMoisture&&Object.hasOwnProperty.call(e,"isSensitiveToMoisture")&&t.uint32(40).bool(e.isSensitiveToMoisture),null!=e.isSensitiveToOxygen&&Object.hasOwnProperty.call(e,"isSensitiveToOxygen")&&t.uint32(48).bool(e.isSensitiveToOxygen),null!=e.isSensitiveToLight&&Object.hasOwnProperty.call(e,"isSensitiveToLight")&&t.uint32(56).bool(e.isSensitiveToLight),null!=e.safetyNotes&&Object.hasOwnProperty.call(e,"safetyNotes")&&t.uint32(66).string(e.safetyNotes),null!=e.procedureDetails&&Object.hasOwnProperty.call(e,"procedureDetails")&&t.uint32(74).string(e.procedureDetails),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionNotes;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.isHeterogeneous=e.bool();break;case 2:o.formsPrecipitate=e.bool();break;case 3:o.isExothermic=e.bool();break;case 4:o.offgasses=e.bool();break;case 5:o.isSensitiveToMoisture=e.bool();break;case 6:o.isSensitiveToOxygen=e.bool();break;case 7:o.isSensitiveToLight=e.bool();break;case 8:o.safetyNotes=e.string();break;case 9:o.procedureDetails=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};return null!=e.isHeterogeneous&&e.hasOwnProperty("isHeterogeneous")&&(t._isHeterogeneous=1,"boolean"!=typeof e.isHeterogeneous)?"isHeterogeneous: boolean expected":null!=e.formsPrecipitate&&e.hasOwnProperty("formsPrecipitate")&&(t._formsPrecipitate=1,"boolean"!=typeof e.formsPrecipitate)?"formsPrecipitate: boolean expected":null!=e.isExothermic&&e.hasOwnProperty("isExothermic")&&(t._isExothermic=1,"boolean"!=typeof e.isExothermic)?"isExothermic: boolean expected":null!=e.offgasses&&e.hasOwnProperty("offgasses")&&(t._offgasses=1,"boolean"!=typeof e.offgasses)?"offgasses: boolean expected":null!=e.isSensitiveToMoisture&&e.hasOwnProperty("isSensitiveToMoisture")&&(t._isSensitiveToMoisture=1,"boolean"!=typeof e.isSensitiveToMoisture)?"isSensitiveToMoisture: boolean expected":null!=e.isSensitiveToOxygen&&e.hasOwnProperty("isSensitiveToOxygen")&&(t._isSensitiveToOxygen=1,"boolean"!=typeof e.isSensitiveToOxygen)?"isSensitiveToOxygen: boolean expected":null!=e.isSensitiveToLight&&e.hasOwnProperty("isSensitiveToLight")&&(t._isSensitiveToLight=1,"boolean"!=typeof e.isSensitiveToLight)?"isSensitiveToLight: boolean expected":null!=e.safetyNotes&&e.hasOwnProperty("safetyNotes")&&!$util.isString(e.safetyNotes)?"safetyNotes: string expected":null!=e.procedureDetails&&e.hasOwnProperty("procedureDetails")&&!$util.isString(e.procedureDetails)?"procedureDetails: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionNotes)return e;let t=new $root.ord.ReactionNotes;return null!=e.isHeterogeneous&&(t.isHeterogeneous=Boolean(e.isHeterogeneous)),null!=e.formsPrecipitate&&(t.formsPrecipitate=Boolean(e.formsPrecipitate)),null!=e.isExothermic&&(t.isExothermic=Boolean(e.isExothermic)),null!=e.offgasses&&(t.offgasses=Boolean(e.offgasses)),null!=e.isSensitiveToMoisture&&(t.isSensitiveToMoisture=Boolean(e.isSensitiveToMoisture)),null!=e.isSensitiveToOxygen&&(t.isSensitiveToOxygen=Boolean(e.isSensitiveToOxygen)),null!=e.isSensitiveToLight&&(t.isSensitiveToLight=Boolean(e.isSensitiveToLight)),null!=e.safetyNotes&&(t.safetyNotes=String(e.safetyNotes)),null!=e.procedureDetails&&(t.procedureDetails=String(e.procedureDetails)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.safetyNotes="",r.procedureDetails=""),null!=e.isHeterogeneous&&e.hasOwnProperty("isHeterogeneous")&&(r.isHeterogeneous=e.isHeterogeneous,t.oneofs&&(r._isHeterogeneous="isHeterogeneous")),null!=e.formsPrecipitate&&e.hasOwnProperty("formsPrecipitate")&&(r.formsPrecipitate=e.formsPrecipitate,t.oneofs&&(r._formsPrecipitate="formsPrecipitate")),null!=e.isExothermic&&e.hasOwnProperty("isExothermic")&&(r.isExothermic=e.isExothermic,t.oneofs&&(r._isExothermic="isExothermic")),null!=e.offgasses&&e.hasOwnProperty("offgasses")&&(r.offgasses=e.offgasses,t.oneofs&&(r._offgasses="offgasses")),null!=e.isSensitiveToMoisture&&e.hasOwnProperty("isSensitiveToMoisture")&&(r.isSensitiveToMoisture=e.isSensitiveToMoisture,t.oneofs&&(r._isSensitiveToMoisture="isSensitiveToMoisture")),null!=e.isSensitiveToOxygen&&e.hasOwnProperty("isSensitiveToOxygen")&&(r.isSensitiveToOxygen=e.isSensitiveToOxygen,t.oneofs&&(r._isSensitiveToOxygen="isSensitiveToOxygen")),null!=e.isSensitiveToLight&&e.hasOwnProperty("isSensitiveToLight")&&(r.isSensitiveToLight=e.isSensitiveToLight,t.oneofs&&(r._isSensitiveToLight="isSensitiveToLight")),null!=e.safetyNotes&&e.hasOwnProperty("safetyNotes")&&(r.safetyNotes=e.safetyNotes),null!=e.procedureDetails&&e.hasOwnProperty("procedureDetails")&&(r.procedureDetails=e.procedureDetails),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionNotes"},e}(),e.ReactionObservation=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.time=null,e.prototype.comment="",e.prototype.image=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.Time.encode(e.time,t.uint32(10).fork()).ldelim(),null!=e.comment&&Object.hasOwnProperty.call(e,"comment")&&t.uint32(18).string(e.comment),null!=e.image&&Object.hasOwnProperty.call(e,"image")&&$root.ord.Data.encode(e.image,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionObservation;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.time=$root.ord.Time.decode(e,e.uint32());break;case 2:o.comment=e.string();break;case 3:o.image=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.Time.verify(e.time);if(t)return"time."+t}if(null!=e.comment&&e.hasOwnProperty("comment")&&!$util.isString(e.comment))return"comment: string expected";if(null!=e.image&&e.hasOwnProperty("image")){let t=$root.ord.Data.verify(e.image);if(t)return"image."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionObservation)return e;let t=new $root.ord.ReactionObservation;if(null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.ReactionObservation.time: object expected");t.time=$root.ord.Time.fromObject(e.time)}if(null!=e.comment&&(t.comment=String(e.comment)),null!=e.image){if("object"!=typeof e.image)throw TypeError(".ord.ReactionObservation.image: object expected");t.image=$root.ord.Data.fromObject(e.image)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.time=null,r.comment="",r.image=null),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.Time.toObject(e.time,t)),null!=e.comment&&e.hasOwnProperty("comment")&&(r.comment=e.comment),null!=e.image&&e.hasOwnProperty("image")&&(r.image=$root.ord.Data.toObject(e.image,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionObservation"},e}(),e.ReactionWorkup=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.type=0,e.prototype.details="",e.prototype.duration=null,e.prototype.input=null,e.prototype.amount=null,e.prototype.temperature=null,e.prototype.keepPhase="",e.prototype.stirring=null,e.prototype.targetPh=null,e.prototype.isAutomated=null,Object.defineProperty(e.prototype,"_targetPh",{get:$util.oneOfGetter(t=["targetPh"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isAutomated",{get:$util.oneOfGetter(t=["isAutomated"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.duration&&Object.hasOwnProperty.call(e,"duration")&&$root.ord.Time.encode(e.duration,t.uint32(26).fork()).ldelim(),null!=e.input&&Object.hasOwnProperty.call(e,"input")&&$root.ord.ReactionInput.encode(e.input,t.uint32(34).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&$root.ord.Amount.encode(e.amount,t.uint32(42).fork()).ldelim(),null!=e.temperature&&Object.hasOwnProperty.call(e,"temperature")&&$root.ord.TemperatureConditions.encode(e.temperature,t.uint32(50).fork()).ldelim(),null!=e.keepPhase&&Object.hasOwnProperty.call(e,"keepPhase")&&t.uint32(58).string(e.keepPhase),null!=e.stirring&&Object.hasOwnProperty.call(e,"stirring")&&$root.ord.StirringConditions.encode(e.stirring,t.uint32(66).fork()).ldelim(),null!=e.targetPh&&Object.hasOwnProperty.call(e,"targetPh")&&t.uint32(77).float(e.targetPh),null!=e.isAutomated&&Object.hasOwnProperty.call(e,"isAutomated")&&t.uint32(80).bool(e.isAutomated),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ReactionWorkup;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.duration=$root.ord.Time.decode(e,e.uint32());break;case 4:o.input=$root.ord.ReactionInput.decode(e,e.uint32());break;case 5:o.amount=$root.ord.Amount.decode(e,e.uint32());break;case 6:o.temperature=$root.ord.TemperatureConditions.decode(e,e.uint32());break;case 7:o.keepPhase=e.string();break;case 8:o.stirring=$root.ord.StirringConditions.decode(e,e.uint32());break;case 9:o.targetPh=e.float();break;case 10:o.isAutomated=e.bool();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.duration&&e.hasOwnProperty("duration")){let t=$root.ord.Time.verify(e.duration);if(t)return"duration."+t}if(null!=e.input&&e.hasOwnProperty("input")){let t=$root.ord.ReactionInput.verify(e.input);if(t)return"input."+t}if(null!=e.amount&&e.hasOwnProperty("amount")){let t=$root.ord.Amount.verify(e.amount);if(t)return"amount."+t}if(null!=e.temperature&&e.hasOwnProperty("temperature")){let t=$root.ord.TemperatureConditions.verify(e.temperature);if(t)return"temperature."+t}if(null!=e.keepPhase&&e.hasOwnProperty("keepPhase")&&!$util.isString(e.keepPhase))return"keepPhase: string expected";if(null!=e.stirring&&e.hasOwnProperty("stirring")){let t=$root.ord.StirringConditions.verify(e.stirring);if(t)return"stirring."+t}return null!=e.targetPh&&e.hasOwnProperty("targetPh")&&(t._targetPh=1,"number"!=typeof e.targetPh)?"targetPh: number expected":null!=e.isAutomated&&e.hasOwnProperty("isAutomated")&&(t._isAutomated=1,"boolean"!=typeof e.isAutomated)?"isAutomated: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionWorkup)return e;let t=new $root.ord.ReactionWorkup;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"ADDITION":case 2:t.type=2;break;case"ALIQUOT":case 3:t.type=3;break;case"TEMPERATURE":case 4:t.type=4;break;case"CONCENTRATION":case 5:t.type=5;break;case"EXTRACTION":case 6:t.type=6;break;case"FILTRATION":case 7:t.type=7;break;case"WASH":case 8:t.type=8;break;case"DRY_IN_VACUUM":case 9:t.type=9;break;case"DRY_WITH_MATERIAL":case 10:t.type=10;break;case"FLASH_CHROMATOGRAPHY":case 11:t.type=11;break;case"OTHER_CHROMATOGRAPHY":case 12:t.type=12;break;case"SCAVENGING":case 13:t.type=13;break;case"WAIT":case 14:t.type=14;break;case"STIRRING":case 15:t.type=15;break;case"PH_ADJUST":case 16:t.type=16;break;case"DISSOLUTION":case 17:t.type=17;break;case"DISTILLATION":case 18:t.type=18}if(null!=e.details&&(t.details=String(e.details)),null!=e.duration){if("object"!=typeof e.duration)throw TypeError(".ord.ReactionWorkup.duration: object expected");t.duration=$root.ord.Time.fromObject(e.duration)}if(null!=e.input){if("object"!=typeof e.input)throw TypeError(".ord.ReactionWorkup.input: object expected");t.input=$root.ord.ReactionInput.fromObject(e.input)}if(null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".ord.ReactionWorkup.amount: object expected");t.amount=$root.ord.Amount.fromObject(e.amount)}if(null!=e.temperature){if("object"!=typeof e.temperature)throw TypeError(".ord.ReactionWorkup.temperature: object expected");t.temperature=$root.ord.TemperatureConditions.fromObject(e.temperature)}if(null!=e.keepPhase&&(t.keepPhase=String(e.keepPhase)),null!=e.stirring){if("object"!=typeof e.stirring)throw TypeError(".ord.ReactionWorkup.stirring: object expected");t.stirring=$root.ord.StirringConditions.fromObject(e.stirring)}return null!=e.targetPh&&(t.targetPh=Number(e.targetPh)),null!=e.isAutomated&&(t.isAutomated=Boolean(e.isAutomated)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.duration=null,r.input=null,r.amount=null,r.temperature=null,r.keepPhase="",r.stirring=null),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ReactionWorkup.ReactionWorkupType[e.type]?e.type:$root.ord.ReactionWorkup.ReactionWorkupType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.duration&&e.hasOwnProperty("duration")&&(r.duration=$root.ord.Time.toObject(e.duration,t)),null!=e.input&&e.hasOwnProperty("input")&&(r.input=$root.ord.ReactionInput.toObject(e.input,t)),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=$root.ord.Amount.toObject(e.amount,t)),null!=e.temperature&&e.hasOwnProperty("temperature")&&(r.temperature=$root.ord.TemperatureConditions.toObject(e.temperature,t)),null!=e.keepPhase&&e.hasOwnProperty("keepPhase")&&(r.keepPhase=e.keepPhase),null!=e.stirring&&e.hasOwnProperty("stirring")&&(r.stirring=$root.ord.StirringConditions.toObject(e.stirring,t)),null!=e.targetPh&&e.hasOwnProperty("targetPh")&&(r.targetPh=t.json&&!isFinite(e.targetPh)?String(e.targetPh):e.targetPh,t.oneofs&&(r._targetPh="targetPh")),null!=e.isAutomated&&e.hasOwnProperty("isAutomated")&&(r.isAutomated=e.isAutomated,t.oneofs&&(r._isAutomated="isAutomated")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionWorkup"},e.ReactionWorkupType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="ADDITION"]=2,t[e[3]="ALIQUOT"]=3,t[e[4]="TEMPERATURE"]=4,t[e[5]="CONCENTRATION"]=5,t[e[6]="EXTRACTION"]=6,t[e[7]="FILTRATION"]=7,t[e[8]="WASH"]=8,t[e[9]="DRY_IN_VACUUM"]=9,t[e[10]="DRY_WITH_MATERIAL"]=10,t[e[11]="FLASH_CHROMATOGRAPHY"]=11,t[e[12]="OTHER_CHROMATOGRAPHY"]=12,t[e[13]="SCAVENGING"]=13,t[e[14]="WAIT"]=14,t[e[15]="STIRRING"]=15,t[e[16]="PH_ADJUST"]=16,t[e[17]="DISSOLUTION"]=17,t[e[18]="DISTILLATION"]=18,t}(),e}(),e.ReactionOutcome=function(){function e(e){if(this.products=[],this.analyses={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.reactionTime=null,e.prototype.conversion=null,e.prototype.products=$util.emptyArray,e.prototype.analyses=$util.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.reactionTime&&Object.hasOwnProperty.call(e,"reactionTime")&&$root.ord.Time.encode(e.reactionTime,t.uint32(10).fork()).ldelim(),null!=e.conversion&&Object.hasOwnProperty.call(e,"conversion")&&$root.ord.Percentage.encode(e.conversion,t.uint32(18).fork()).ldelim(),null!=e.products&&e.products.length)for(let r=0;r<e.products.length;++r)$root.ord.ProductCompound.encode(e.products[r],t.uint32(26).fork()).ldelim();if(null!=e.analyses&&Object.hasOwnProperty.call(e,"analyses"))for(let r=Object.keys(e.analyses),o=0;o<r.length;++o)t.uint32(34).fork().uint32(10).string(r[o]),$root.ord.Analysis.encode(e.analyses[r[o]],t.uint32(18).fork()).ldelim().ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.ReactionOutcome;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.reactionTime=$root.ord.Time.decode(e,e.uint32());break;case 2:i.conversion=$root.ord.Percentage.decode(e,e.uint32());break;case 3:i.products&&i.products.length||(i.products=[]),i.products.push($root.ord.ProductCompound.decode(e,e.uint32()));break;case 4:{i.analyses===$util.emptyObject&&(i.analyses={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Analysis.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.analyses[r]=o;break}default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.reactionTime&&e.hasOwnProperty("reactionTime")){let t=$root.ord.Time.verify(e.reactionTime);if(t)return"reactionTime."+t}if(null!=e.conversion&&e.hasOwnProperty("conversion")){let t=$root.ord.Percentage.verify(e.conversion);if(t)return"conversion."+t}if(null!=e.products&&e.hasOwnProperty("products")){if(!Array.isArray(e.products))return"products: array expected";for(let t=0;t<e.products.length;++t){let r=$root.ord.ProductCompound.verify(e.products[t]);if(r)return"products."+r}}if(null!=e.analyses&&e.hasOwnProperty("analyses")){if(!$util.isObject(e.analyses))return"analyses: object expected";let t=Object.keys(e.analyses);for(let r=0;r<t.length;++r){let o=$root.ord.Analysis.verify(e.analyses[t[r]]);if(o)return"analyses."+o}}return null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionOutcome)return e;let t=new $root.ord.ReactionOutcome;if(null!=e.reactionTime){if("object"!=typeof e.reactionTime)throw TypeError(".ord.ReactionOutcome.reactionTime: object expected");t.reactionTime=$root.ord.Time.fromObject(e.reactionTime)}if(null!=e.conversion){if("object"!=typeof e.conversion)throw TypeError(".ord.ReactionOutcome.conversion: object expected");t.conversion=$root.ord.Percentage.fromObject(e.conversion)}if(e.products){if(!Array.isArray(e.products))throw TypeError(".ord.ReactionOutcome.products: array expected");t.products=[];for(let r=0;r<e.products.length;++r){if("object"!=typeof e.products[r])throw TypeError(".ord.ReactionOutcome.products: object expected");t.products[r]=$root.ord.ProductCompound.fromObject(e.products[r])}}if(e.analyses){if("object"!=typeof e.analyses)throw TypeError(".ord.ReactionOutcome.analyses: object expected");t.analyses={};for(let r=Object.keys(e.analyses),o=0;o<r.length;++o){if("object"!=typeof e.analyses[r[o]])throw TypeError(".ord.ReactionOutcome.analyses: object expected");t.analyses[r[o]]=$root.ord.Analysis.fromObject(e.analyses[r[o]])}}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.products=[]),(t.objects||t.defaults)&&(o.analyses={}),t.defaults&&(o.reactionTime=null,o.conversion=null),null!=e.reactionTime&&e.hasOwnProperty("reactionTime")&&(o.reactionTime=$root.ord.Time.toObject(e.reactionTime,t)),null!=e.conversion&&e.hasOwnProperty("conversion")&&(o.conversion=$root.ord.Percentage.toObject(e.conversion,t)),e.products&&e.products.length){o.products=[];for(let r=0;r<e.products.length;++r)o.products[r]=$root.ord.ProductCompound.toObject(e.products[r],t)}if(e.analyses&&(r=Object.keys(e.analyses)).length){o.analyses={};for(let n=0;n<r.length;++n)o.analyses[r[n]]=$root.ord.Analysis.toObject(e.analyses[r[n]],t)}return o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionOutcome"},e}(),e.ProductCompound=function(){function e(e){if(this.identifiers=[],this.measurements=[],this.features={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.identifiers=$util.emptyArray,e.prototype.isDesiredProduct=null,e.prototype.measurements=$util.emptyArray,e.prototype.isolatedColor="",e.prototype.texture=null,e.prototype.features=$util.emptyObject,e.prototype.reactionRole=0,Object.defineProperty(e.prototype,"_isDesiredProduct",{get:$util.oneOfGetter(t=["isDesiredProduct"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.identifiers&&e.identifiers.length)for(let r=0;r<e.identifiers.length;++r)$root.ord.CompoundIdentifier.encode(e.identifiers[r],t.uint32(10).fork()).ldelim();if(null!=e.isDesiredProduct&&Object.hasOwnProperty.call(e,"isDesiredProduct")&&t.uint32(16).bool(e.isDesiredProduct),null!=e.measurements&&e.measurements.length)for(let r=0;r<e.measurements.length;++r)$root.ord.ProductMeasurement.encode(e.measurements[r],t.uint32(26).fork()).ldelim();if(null!=e.isolatedColor&&Object.hasOwnProperty.call(e,"isolatedColor")&&t.uint32(34).string(e.isolatedColor),null!=e.texture&&Object.hasOwnProperty.call(e,"texture")&&$root.ord.Texture.encode(e.texture,t.uint32(42).fork()).ldelim(),null!=e.features&&Object.hasOwnProperty.call(e,"features"))for(let r=Object.keys(e.features),o=0;o<r.length;++o)t.uint32(50).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.features[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.reactionRole&&Object.hasOwnProperty.call(e,"reactionRole")&&t.uint32(56).int32(e.reactionRole),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.ProductCompound;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.identifiers&&i.identifiers.length||(i.identifiers=[]),i.identifiers.push($root.ord.CompoundIdentifier.decode(e,e.uint32()));break;case 2:i.isDesiredProduct=e.bool();break;case 3:i.measurements&&i.measurements.length||(i.measurements=[]),i.measurements.push($root.ord.ProductMeasurement.decode(e,e.uint32()));break;case 4:i.isolatedColor=e.string();break;case 5:i.texture=$root.ord.Texture.decode(e,e.uint32());break;case 6:{i.features===$util.emptyObject&&(i.features={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.features[r]=o;break}case 7:i.reactionRole=e.int32();break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.identifiers&&e.hasOwnProperty("identifiers")){if(!Array.isArray(e.identifiers))return"identifiers: array expected";for(let t=0;t<e.identifiers.length;++t){let r=$root.ord.CompoundIdentifier.verify(e.identifiers[t]);if(r)return"identifiers."+r}}if(null!=e.isDesiredProduct&&e.hasOwnProperty("isDesiredProduct")&&"boolean"!=typeof e.isDesiredProduct)return"isDesiredProduct: boolean expected";if(null!=e.measurements&&e.hasOwnProperty("measurements")){if(!Array.isArray(e.measurements))return"measurements: array expected";for(let t=0;t<e.measurements.length;++t){let r=$root.ord.ProductMeasurement.verify(e.measurements[t]);if(r)return"measurements."+r}}if(null!=e.isolatedColor&&e.hasOwnProperty("isolatedColor")&&!$util.isString(e.isolatedColor))return"isolatedColor: string expected";if(null!=e.texture&&e.hasOwnProperty("texture")){let t=$root.ord.Texture.verify(e.texture);if(t)return"texture."+t}if(null!=e.features&&e.hasOwnProperty("features")){if(!$util.isObject(e.features))return"features: object expected";let t=Object.keys(e.features);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.features[t[r]]);if(o)return"features."+o}}if(null!=e.reactionRole&&e.hasOwnProperty("reactionRole"))switch(e.reactionRole){default:return"reactionRole: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:}return null},e.fromObject=function(e){if(e instanceof $root.ord.ProductCompound)return e;let t=new $root.ord.ProductCompound;if(e.identifiers){if(!Array.isArray(e.identifiers))throw TypeError(".ord.ProductCompound.identifiers: array expected");t.identifiers=[];for(let r=0;r<e.identifiers.length;++r){if("object"!=typeof e.identifiers[r])throw TypeError(".ord.ProductCompound.identifiers: object expected");t.identifiers[r]=$root.ord.CompoundIdentifier.fromObject(e.identifiers[r])}}if(null!=e.isDesiredProduct&&(t.isDesiredProduct=Boolean(e.isDesiredProduct)),e.measurements){if(!Array.isArray(e.measurements))throw TypeError(".ord.ProductCompound.measurements: array expected");t.measurements=[];for(let r=0;r<e.measurements.length;++r){if("object"!=typeof e.measurements[r])throw TypeError(".ord.ProductCompound.measurements: object expected");t.measurements[r]=$root.ord.ProductMeasurement.fromObject(e.measurements[r])}}if(null!=e.isolatedColor&&(t.isolatedColor=String(e.isolatedColor)),null!=e.texture){if("object"!=typeof e.texture)throw TypeError(".ord.ProductCompound.texture: object expected");t.texture=$root.ord.Texture.fromObject(e.texture)}if(e.features){if("object"!=typeof e.features)throw TypeError(".ord.ProductCompound.features: object expected");t.features={};for(let r=Object.keys(e.features),o=0;o<r.length;++o){if("object"!=typeof e.features[r[o]])throw TypeError(".ord.ProductCompound.features: object expected");t.features[r[o]]=$root.ord.Data.fromObject(e.features[r[o]])}}switch(e.reactionRole){default:if("number"==typeof e.reactionRole){t.reactionRole=e.reactionRole;break}break;case"UNSPECIFIED":case 0:t.reactionRole=0;break;case"REACTANT":case 1:t.reactionRole=1;break;case"REAGENT":case 2:t.reactionRole=2;break;case"SOLVENT":case 3:t.reactionRole=3;break;case"CATALYST":case 4:t.reactionRole=4;break;case"WORKUP":case 5:t.reactionRole=5;break;case"INTERNAL_STANDARD":case 6:t.reactionRole=6;break;case"AUTHENTIC_STANDARD":case 7:t.reactionRole=7;break;case"PRODUCT":case 8:t.reactionRole=8;break;case"BYPRODUCT":case 9:t.reactionRole=9;break;case"SIDE_PRODUCT":case 10:t.reactionRole=10}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.identifiers=[],o.measurements=[]),(t.objects||t.defaults)&&(o.features={}),t.defaults&&(o.isolatedColor="",o.texture=null,o.reactionRole=t.enums===String?"UNSPECIFIED":0),e.identifiers&&e.identifiers.length){o.identifiers=[];for(let r=0;r<e.identifiers.length;++r)o.identifiers[r]=$root.ord.CompoundIdentifier.toObject(e.identifiers[r],t)}if(null!=e.isDesiredProduct&&e.hasOwnProperty("isDesiredProduct")&&(o.isDesiredProduct=e.isDesiredProduct,t.oneofs&&(o._isDesiredProduct="isDesiredProduct")),e.measurements&&e.measurements.length){o.measurements=[];for(let r=0;r<e.measurements.length;++r)o.measurements[r]=$root.ord.ProductMeasurement.toObject(e.measurements[r],t)}if(null!=e.isolatedColor&&e.hasOwnProperty("isolatedColor")&&(o.isolatedColor=e.isolatedColor),null!=e.texture&&e.hasOwnProperty("texture")&&(o.texture=$root.ord.Texture.toObject(e.texture,t)),e.features&&(r=Object.keys(e.features)).length){o.features={};for(let n=0;n<r.length;++n)o.features[r[n]]=$root.ord.Data.toObject(e.features[r[n]],t)}return null!=e.reactionRole&&e.hasOwnProperty("reactionRole")&&(o.reactionRole=t.enums===String?void 0===$root.ord.ReactionRole.ReactionRoleType[e.reactionRole]?e.reactionRole:$root.ord.ReactionRole.ReactionRoleType[e.reactionRole]:e.reactionRole),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ProductCompound"},e}(),e.ProductMeasurement=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.analysisKey="",e.prototype.type=0,e.prototype.details="",e.prototype.usesInternalStandard=null,e.prototype.isNormalized=null,e.prototype.usesAuthenticStandard=null,e.prototype.authenticStandard=null,e.prototype.percentage=null,e.prototype.floatValue=null,e.prototype.stringValue=null,e.prototype.amount=null,e.prototype.retentionTime=null,e.prototype.massSpecDetails=null,e.prototype.selectivity=null,e.prototype.wavelength=null,Object.defineProperty(e.prototype,"_usesInternalStandard",{get:$util.oneOfGetter(t=["usesInternalStandard"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_isNormalized",{get:$util.oneOfGetter(t=["isNormalized"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_usesAuthenticStandard",{get:$util.oneOfGetter(t=["usesAuthenticStandard"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"value",{get:$util.oneOfGetter(t=["percentage","floatValue","stringValue","amount"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.analysisKey&&Object.hasOwnProperty.call(e,"analysisKey")&&t.uint32(10).string(e.analysisKey),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(26).string(e.details),null!=e.usesInternalStandard&&Object.hasOwnProperty.call(e,"usesInternalStandard")&&t.uint32(32).bool(e.usesInternalStandard),null!=e.isNormalized&&Object.hasOwnProperty.call(e,"isNormalized")&&t.uint32(40).bool(e.isNormalized),null!=e.usesAuthenticStandard&&Object.hasOwnProperty.call(e,"usesAuthenticStandard")&&t.uint32(48).bool(e.usesAuthenticStandard),null!=e.authenticStandard&&Object.hasOwnProperty.call(e,"authenticStandard")&&$root.ord.Compound.encode(e.authenticStandard,t.uint32(58).fork()).ldelim(),null!=e.percentage&&Object.hasOwnProperty.call(e,"percentage")&&$root.ord.Percentage.encode(e.percentage,t.uint32(66).fork()).ldelim(),null!=e.floatValue&&Object.hasOwnProperty.call(e,"floatValue")&&$root.ord.FloatValue.encode(e.floatValue,t.uint32(74).fork()).ldelim(),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(82).string(e.stringValue),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&$root.ord.Amount.encode(e.amount,t.uint32(90).fork()).ldelim(),null!=e.retentionTime&&Object.hasOwnProperty.call(e,"retentionTime")&&$root.ord.Time.encode(e.retentionTime,t.uint32(98).fork()).ldelim(),null!=e.massSpecDetails&&Object.hasOwnProperty.call(e,"massSpecDetails")&&$root.ord.ProductMeasurement.MassSpecMeasurementDetails.encode(e.massSpecDetails,t.uint32(106).fork()).ldelim(),null!=e.selectivity&&Object.hasOwnProperty.call(e,"selectivity")&&$root.ord.ProductMeasurement.Selectivity.encode(e.selectivity,t.uint32(114).fork()).ldelim(),null!=e.wavelength&&Object.hasOwnProperty.call(e,"wavelength")&&$root.ord.Wavelength.encode(e.wavelength,t.uint32(122).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ProductMeasurement;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.analysisKey=e.string();break;case 2:o.type=e.int32();break;case 3:o.details=e.string();break;case 4:o.usesInternalStandard=e.bool();break;case 5:o.isNormalized=e.bool();break;case 6:o.usesAuthenticStandard=e.bool();break;case 7:o.authenticStandard=$root.ord.Compound.decode(e,e.uint32());break;case 8:o.percentage=$root.ord.Percentage.decode(e,e.uint32());break;case 9:o.floatValue=$root.ord.FloatValue.decode(e,e.uint32());break;case 10:o.stringValue=e.string();break;case 11:o.amount=$root.ord.Amount.decode(e,e.uint32());break;case 12:o.retentionTime=$root.ord.Time.decode(e,e.uint32());break;case 13:o.massSpecDetails=$root.ord.ProductMeasurement.MassSpecMeasurementDetails.decode(e,e.uint32());break;case 14:o.selectivity=$root.ord.ProductMeasurement.Selectivity.decode(e,e.uint32());break;case 15:o.wavelength=$root.ord.Wavelength.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.analysisKey&&e.hasOwnProperty("analysisKey")&&!$util.isString(e.analysisKey))return"analysisKey: string expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.usesInternalStandard&&e.hasOwnProperty("usesInternalStandard")&&(t._usesInternalStandard=1,"boolean"!=typeof e.usesInternalStandard))return"usesInternalStandard: boolean expected";if(null!=e.isNormalized&&e.hasOwnProperty("isNormalized")&&(t._isNormalized=1,"boolean"!=typeof e.isNormalized))return"isNormalized: boolean expected";if(null!=e.usesAuthenticStandard&&e.hasOwnProperty("usesAuthenticStandard")&&(t._usesAuthenticStandard=1,"boolean"!=typeof e.usesAuthenticStandard))return"usesAuthenticStandard: boolean expected";if(null!=e.authenticStandard&&e.hasOwnProperty("authenticStandard")){let t=$root.ord.Compound.verify(e.authenticStandard);if(t)return"authenticStandard."+t}if(null!=e.percentage&&e.hasOwnProperty("percentage")){t.value=1;{let t=$root.ord.Percentage.verify(e.percentage);if(t)return"percentage."+t}}if(null!=e.floatValue&&e.hasOwnProperty("floatValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=$root.ord.FloatValue.verify(e.floatValue);if(t)return"floatValue."+t}}if(null!=e.stringValue&&e.hasOwnProperty("stringValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!$util.isString(e.stringValue))return"stringValue: string expected"}if(null!=e.amount&&e.hasOwnProperty("amount")){if(1===t.value)return"value: multiple values";t.value=1;{let t=$root.ord.Amount.verify(e.amount);if(t)return"amount."+t}}if(null!=e.retentionTime&&e.hasOwnProperty("retentionTime")){let t=$root.ord.Time.verify(e.retentionTime);if(t)return"retentionTime."+t}if(null!=e.massSpecDetails&&e.hasOwnProperty("massSpecDetails")){let t=$root.ord.ProductMeasurement.MassSpecMeasurementDetails.verify(e.massSpecDetails);if(t)return"massSpecDetails."+t}if(null!=e.selectivity&&e.hasOwnProperty("selectivity")){let t=$root.ord.ProductMeasurement.Selectivity.verify(e.selectivity);if(t)return"selectivity."+t}if(null!=e.wavelength&&e.hasOwnProperty("wavelength")){let t=$root.ord.Wavelength.verify(e.wavelength);if(t)return"wavelength."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.ProductMeasurement)return e;let t=new $root.ord.ProductMeasurement;switch(null!=e.analysisKey&&(t.analysisKey=String(e.analysisKey)),e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"IDENTITY":case 2:t.type=2;break;case"YIELD":case 3:t.type=3;break;case"SELECTIVITY":case 4:t.type=4;break;case"PURITY":case 5:t.type=5;break;case"AREA":case 6:t.type=6;break;case"COUNTS":case 7:t.type=7;break;case"INTENSITY":case 8:t.type=8;break;case"AMOUNT":case 9:t.type=9}if(null!=e.details&&(t.details=String(e.details)),null!=e.usesInternalStandard&&(t.usesInternalStandard=Boolean(e.usesInternalStandard)),null!=e.isNormalized&&(t.isNormalized=Boolean(e.isNormalized)),null!=e.usesAuthenticStandard&&(t.usesAuthenticStandard=Boolean(e.usesAuthenticStandard)),null!=e.authenticStandard){if("object"!=typeof e.authenticStandard)throw TypeError(".ord.ProductMeasurement.authenticStandard: object expected");t.authenticStandard=$root.ord.Compound.fromObject(e.authenticStandard)}if(null!=e.percentage){if("object"!=typeof e.percentage)throw TypeError(".ord.ProductMeasurement.percentage: object expected");t.percentage=$root.ord.Percentage.fromObject(e.percentage)}if(null!=e.floatValue){if("object"!=typeof e.floatValue)throw TypeError(".ord.ProductMeasurement.floatValue: object expected");t.floatValue=$root.ord.FloatValue.fromObject(e.floatValue)}if(null!=e.stringValue&&(t.stringValue=String(e.stringValue)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".ord.ProductMeasurement.amount: object expected");t.amount=$root.ord.Amount.fromObject(e.amount)}if(null!=e.retentionTime){if("object"!=typeof e.retentionTime)throw TypeError(".ord.ProductMeasurement.retentionTime: object expected");t.retentionTime=$root.ord.Time.fromObject(e.retentionTime)}if(null!=e.massSpecDetails){if("object"!=typeof e.massSpecDetails)throw TypeError(".ord.ProductMeasurement.massSpecDetails: object expected");t.massSpecDetails=$root.ord.ProductMeasurement.MassSpecMeasurementDetails.fromObject(e.massSpecDetails)}if(null!=e.selectivity){if("object"!=typeof e.selectivity)throw TypeError(".ord.ProductMeasurement.selectivity: object expected");t.selectivity=$root.ord.ProductMeasurement.Selectivity.fromObject(e.selectivity)}if(null!=e.wavelength){if("object"!=typeof e.wavelength)throw TypeError(".ord.ProductMeasurement.wavelength: object expected");t.wavelength=$root.ord.Wavelength.fromObject(e.wavelength)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.analysisKey="",r.type=t.enums===String?"UNSPECIFIED":0,r.details="",r.authenticStandard=null,r.retentionTime=null,r.massSpecDetails=null,r.selectivity=null,r.wavelength=null),null!=e.analysisKey&&e.hasOwnProperty("analysisKey")&&(r.analysisKey=e.analysisKey),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ProductMeasurement.ProductMeasurementType[e.type]?e.type:$root.ord.ProductMeasurement.ProductMeasurementType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.usesInternalStandard&&e.hasOwnProperty("usesInternalStandard")&&(r.usesInternalStandard=e.usesInternalStandard,t.oneofs&&(r._usesInternalStandard="usesInternalStandard")),null!=e.isNormalized&&e.hasOwnProperty("isNormalized")&&(r.isNormalized=e.isNormalized,t.oneofs&&(r._isNormalized="isNormalized")),null!=e.usesAuthenticStandard&&e.hasOwnProperty("usesAuthenticStandard")&&(r.usesAuthenticStandard=e.usesAuthenticStandard,t.oneofs&&(r._usesAuthenticStandard="usesAuthenticStandard")),null!=e.authenticStandard&&e.hasOwnProperty("authenticStandard")&&(r.authenticStandard=$root.ord.Compound.toObject(e.authenticStandard,t)),null!=e.percentage&&e.hasOwnProperty("percentage")&&(r.percentage=$root.ord.Percentage.toObject(e.percentage,t),t.oneofs&&(r.value="percentage")),null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(r.floatValue=$root.ord.FloatValue.toObject(e.floatValue,t),t.oneofs&&(r.value="floatValue")),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(r.stringValue=e.stringValue,t.oneofs&&(r.value="stringValue")),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=$root.ord.Amount.toObject(e.amount,t),t.oneofs&&(r.value="amount")),null!=e.retentionTime&&e.hasOwnProperty("retentionTime")&&(r.retentionTime=$root.ord.Time.toObject(e.retentionTime,t)),null!=e.massSpecDetails&&e.hasOwnProperty("massSpecDetails")&&(r.massSpecDetails=$root.ord.ProductMeasurement.MassSpecMeasurementDetails.toObject(e.massSpecDetails,t)),null!=e.selectivity&&e.hasOwnProperty("selectivity")&&(r.selectivity=$root.ord.ProductMeasurement.Selectivity.toObject(e.selectivity,t)),null!=e.wavelength&&e.hasOwnProperty("wavelength")&&(r.wavelength=$root.ord.Wavelength.toObject(e.wavelength,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ProductMeasurement"},e.ProductMeasurementType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="IDENTITY"]=2,t[e[3]="YIELD"]=3,t[e[4]="SELECTIVITY"]=4,t[e[5]="PURITY"]=5,t[e[6]="AREA"]=6,t[e[7]="COUNTS"]=7,t[e[8]="INTENSITY"]=8,t[e[9]="AMOUNT"]=9,t}(),e.MassSpecMeasurementDetails=function(){function e(e){if(this.eicMasses=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.type=0,e.prototype.details="",e.prototype.ticMinimumMz=null,e.prototype.ticMaximumMz=null,e.prototype.eicMasses=$util.emptyArray,Object.defineProperty(e.prototype,"_ticMinimumMz",{get:$util.oneOfGetter(t=["ticMinimumMz"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_ticMaximumMz",{get:$util.oneOfGetter(t=["ticMaximumMz"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.ticMinimumMz&&Object.hasOwnProperty.call(e,"ticMinimumMz")&&t.uint32(29).float(e.ticMinimumMz),null!=e.ticMaximumMz&&Object.hasOwnProperty.call(e,"ticMaximumMz")&&t.uint32(37).float(e.ticMaximumMz),null!=e.eicMasses&&e.eicMasses.length){t.uint32(42).fork();for(let r=0;r<e.eicMasses.length;++r)t.float(e.eicMasses[r]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ProductMeasurement.MassSpecMeasurementDetails;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;case 3:o.ticMinimumMz=e.float();break;case 4:o.ticMaximumMz=e.float();break;case 5:if(o.eicMasses&&o.eicMasses.length||(o.eicMasses=[]),2==(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)o.eicMasses.push(e.float())}else o.eicMasses.push(e.float());break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.ticMinimumMz&&e.hasOwnProperty("ticMinimumMz")&&(t._ticMinimumMz=1,"number"!=typeof e.ticMinimumMz))return"ticMinimumMz: number expected";if(null!=e.ticMaximumMz&&e.hasOwnProperty("ticMaximumMz")&&(t._ticMaximumMz=1,"number"!=typeof e.ticMaximumMz))return"ticMaximumMz: number expected";if(null!=e.eicMasses&&e.hasOwnProperty("eicMasses")){if(!Array.isArray(e.eicMasses))return"eicMasses: array expected";for(let t=0;t<e.eicMasses.length;++t)if("number"!=typeof e.eicMasses[t])return"eicMasses: number[] expected"}return null},e.fromObject=function(e){if(e instanceof $root.ord.ProductMeasurement.MassSpecMeasurementDetails)return e;let t=new $root.ord.ProductMeasurement.MassSpecMeasurementDetails;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"TIC":case 2:t.type=2;break;case"TIC_POSITIVE":case 3:t.type=3;break;case"TIC_NEGATIVE":case 4:t.type=4;break;case"EIC":case 5:t.type=5}if(null!=e.details&&(t.details=String(e.details)),null!=e.ticMinimumMz&&(t.ticMinimumMz=Number(e.ticMinimumMz)),null!=e.ticMaximumMz&&(t.ticMaximumMz=Number(e.ticMaximumMz)),e.eicMasses){if(!Array.isArray(e.eicMasses))throw TypeError(".ord.ProductMeasurement.MassSpecMeasurementDetails.eicMasses: array expected");t.eicMasses=[];for(let r=0;r<e.eicMasses.length;++r)t.eicMasses[r]=Number(e.eicMasses[r])}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.eicMasses=[]),t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ProductMeasurement.MassSpecMeasurementDetails.MassSpecMeasurementType[e.type]?e.type:$root.ord.ProductMeasurement.MassSpecMeasurementDetails.MassSpecMeasurementType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),null!=e.ticMinimumMz&&e.hasOwnProperty("ticMinimumMz")&&(r.ticMinimumMz=t.json&&!isFinite(e.ticMinimumMz)?String(e.ticMinimumMz):e.ticMinimumMz,t.oneofs&&(r._ticMinimumMz="ticMinimumMz")),null!=e.ticMaximumMz&&e.hasOwnProperty("ticMaximumMz")&&(r.ticMaximumMz=t.json&&!isFinite(e.ticMaximumMz)?String(e.ticMaximumMz):e.ticMaximumMz,t.oneofs&&(r._ticMaximumMz="ticMaximumMz")),e.eicMasses&&e.eicMasses.length){r.eicMasses=[];for(let o=0;o<e.eicMasses.length;++o)r.eicMasses[o]=t.json&&!isFinite(e.eicMasses[o])?String(e.eicMasses[o]):e.eicMasses[o]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ProductMeasurement.MassSpecMeasurementDetails"},e.MassSpecMeasurementType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="TIC"]=2,t[e[3]="TIC_POSITIVE"]=3,t[e[4]="TIC_NEGATIVE"]=4,t[e[5]="EIC"]=5,t}(),e}(),e.Selectivity=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.ProductMeasurement.Selectivity;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ProductMeasurement.Selectivity)return e;let t=new $root.ord.ProductMeasurement.Selectivity;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"EE":case 2:t.type=2;break;case"ER":case 3:t.type=3;break;case"DR":case 4:t.type=4;break;case"EZ":case 5:t.type=5;break;case"ZE":case 6:t.type=6}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.type=t.enums===String?"UNSPECIFIED":0,r.details=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?void 0===$root.ord.ProductMeasurement.Selectivity.SelectivityType[e.type]?e.type:$root.ord.ProductMeasurement.Selectivity.SelectivityType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ProductMeasurement.Selectivity"},e.SelectivityType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="EE"]=2,t[e[3]="ER"]=3,t[e[4]="DR"]=4,t[e[5]="EZ"]=5,t[e[6]="ZE"]=6,t}(),e}(),e}(),e.DateTime=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(10).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.DateTime;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.string():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.value&&e.hasOwnProperty("value")&&!$util.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.DateTime)return e;let t=new $root.ord.DateTime;return null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.value=""),null!=e.value&&e.hasOwnProperty("value")&&(r.value=e.value),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.DateTime"},e}(),e.Analysis=function(){function e(e){if(this.data={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.type=0,e.prototype.details="",e.prototype.chmoId=0,e.prototype.isOfIsolatedSpecies=null,e.prototype.data=$util.emptyObject,e.prototype.instrumentManufacturer="",e.prototype.instrumentLastCalibrated=null,Object.defineProperty(e.prototype,"_isOfIsolatedSpecies",{get:$util.oneOfGetter(t=["isOfIsolatedSpecies"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(18).string(e.details),null!=e.chmoId&&Object.hasOwnProperty.call(e,"chmoId")&&t.uint32(24).int32(e.chmoId),null!=e.isOfIsolatedSpecies&&Object.hasOwnProperty.call(e,"isOfIsolatedSpecies")&&t.uint32(32).bool(e.isOfIsolatedSpecies),null!=e.data&&Object.hasOwnProperty.call(e,"data"))for(let r=Object.keys(e.data),o=0;o<r.length;++o)t.uint32(42).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.data[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.instrumentManufacturer&&Object.hasOwnProperty.call(e,"instrumentManufacturer")&&t.uint32(50).string(e.instrumentManufacturer),null!=e.instrumentLastCalibrated&&Object.hasOwnProperty.call(e,"instrumentLastCalibrated")&&$root.ord.DateTime.encode(e.instrumentLastCalibrated,t.uint32(58).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.Analysis;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.type=e.int32();break;case 2:i.details=e.string();break;case 3:i.chmoId=e.int32();break;case 4:i.isOfIsolatedSpecies=e.bool();break;case 5:{i.data===$util.emptyObject&&(i.data={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.data[r]=o;break}case 6:i.instrumentManufacturer=e.string();break;case 7:i.instrumentLastCalibrated=$root.ord.DateTime.decode(e,e.uint32());break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:}if(null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details))return"details: string expected";if(null!=e.chmoId&&e.hasOwnProperty("chmoId")&&!$util.isInteger(e.chmoId))return"chmoId: integer expected";if(null!=e.isOfIsolatedSpecies&&e.hasOwnProperty("isOfIsolatedSpecies")&&"boolean"!=typeof e.isOfIsolatedSpecies)return"isOfIsolatedSpecies: boolean expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!$util.isObject(e.data))return"data: object expected";let t=Object.keys(e.data);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.data[t[r]]);if(o)return"data."+o}}if(null!=e.instrumentManufacturer&&e.hasOwnProperty("instrumentManufacturer")&&!$util.isString(e.instrumentManufacturer))return"instrumentManufacturer: string expected";if(null!=e.instrumentLastCalibrated&&e.hasOwnProperty("instrumentLastCalibrated")){let t=$root.ord.DateTime.verify(e.instrumentLastCalibrated);if(t)return"instrumentLastCalibrated."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord.Analysis)return e;let t=new $root.ord.Analysis;switch(e.type){default:if("number"==typeof e.type){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"CUSTOM":case 1:t.type=1;break;case"LC":case 2:t.type=2;break;case"GC":case 3:t.type=3;break;case"IR":case 4:t.type=4;break;case"NMR_1H":case 5:t.type=5;break;case"NMR_13C":case 6:t.type=6;break;case"NMR_OTHER":case 7:t.type=7;break;case"MP":case 8:t.type=8;break;case"UV":case 9:t.type=9;break;case"TLC":case 10:t.type=10;break;case"MS":case 11:t.type=11;break;case"HRMS":case 12:t.type=12;break;case"MSMS":case 13:t.type=13;break;case"WEIGHT":case 14:t.type=14;break;case"LCMS":case 15:t.type=15;break;case"GCMS":case 16:t.type=16;break;case"ELSD":case 17:t.type=17;break;case"CD":case 18:t.type=18;break;case"SFC":case 19:t.type=19;break;case"EPR":case 20:t.type=20;break;case"XRD":case 21:t.type=21;break;case"RAMAN":case 22:t.type=22;break;case"ED":case 23:t.type=23;break;case"OPTICAL_ROTATION":case 24:t.type=24;break;case"CAD":case 25:t.type=25}if(null!=e.details&&(t.details=String(e.details)),null!=e.chmoId&&(t.chmoId=0|e.chmoId),null!=e.isOfIsolatedSpecies&&(t.isOfIsolatedSpecies=Boolean(e.isOfIsolatedSpecies)),e.data){if("object"!=typeof e.data)throw TypeError(".ord.Analysis.data: object expected");t.data={};for(let r=Object.keys(e.data),o=0;o<r.length;++o){if("object"!=typeof e.data[r[o]])throw TypeError(".ord.Analysis.data: object expected");t.data[r[o]]=$root.ord.Data.fromObject(e.data[r[o]])}}if(null!=e.instrumentManufacturer&&(t.instrumentManufacturer=String(e.instrumentManufacturer)),null!=e.instrumentLastCalibrated){if("object"!=typeof e.instrumentLastCalibrated)throw TypeError(".ord.Analysis.instrumentLastCalibrated: object expected");t.instrumentLastCalibrated=$root.ord.DateTime.fromObject(e.instrumentLastCalibrated)}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.objects||t.defaults)&&(o.data={}),t.defaults&&(o.type=t.enums===String?"UNSPECIFIED":0,o.details="",o.chmoId=0,o.instrumentManufacturer="",o.instrumentLastCalibrated=null),null!=e.type&&e.hasOwnProperty("type")&&(o.type=t.enums===String?void 0===$root.ord.Analysis.AnalysisType[e.type]?e.type:$root.ord.Analysis.AnalysisType[e.type]:e.type),null!=e.details&&e.hasOwnProperty("details")&&(o.details=e.details),null!=e.chmoId&&e.hasOwnProperty("chmoId")&&(o.chmoId=e.chmoId),null!=e.isOfIsolatedSpecies&&e.hasOwnProperty("isOfIsolatedSpecies")&&(o.isOfIsolatedSpecies=e.isOfIsolatedSpecies,t.oneofs&&(o._isOfIsolatedSpecies="isOfIsolatedSpecies")),e.data&&(r=Object.keys(e.data)).length){o.data={};for(let n=0;n<r.length;++n)o.data[r[n]]=$root.ord.Data.toObject(e.data[r[n]],t)}return null!=e.instrumentManufacturer&&e.hasOwnProperty("instrumentManufacturer")&&(o.instrumentManufacturer=e.instrumentManufacturer),null!=e.instrumentLastCalibrated&&e.hasOwnProperty("instrumentLastCalibrated")&&(o.instrumentLastCalibrated=$root.ord.DateTime.toObject(e.instrumentLastCalibrated,t)),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Analysis"},e.AnalysisType=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CUSTOM"]=1,t[e[2]="LC"]=2,t[e[3]="GC"]=3,t[e[4]="IR"]=4,t[e[5]="NMR_1H"]=5,t[e[6]="NMR_13C"]=6,t[e[7]="NMR_OTHER"]=7,t[e[8]="MP"]=8,t[e[9]="UV"]=9,t[e[10]="TLC"]=10,t[e[11]="MS"]=11,t[e[12]="HRMS"]=12,t[e[13]="MSMS"]=13,t[e[14]="WEIGHT"]=14,t[e[15]="LCMS"]=15,t[e[16]="GCMS"]=16,t[e[17]="ELSD"]=17,t[e[18]="CD"]=18,t[e[19]="SFC"]=19,t[e[20]="EPR"]=20,t[e[21]="XRD"]=21,t[e[22]="RAMAN"]=22,t[e[23]="ED"]=23,t[e[24]="OPTICAL_ROTATION"]=24,t[e[25]="CAD"]=25,t}(),e}(),e.ReactionProvenance=function(){function e(e){if(this.recordModified=[],this.reactionMetadata={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.experimenter=null,e.prototype.city="",e.prototype.experimentStart=null,e.prototype.doi="",e.prototype.patent="",e.prototype.publicationUrl="",e.prototype.recordCreated=null,e.prototype.recordModified=$util.emptyArray,e.prototype.reactionMetadata=$util.emptyObject,e.prototype.isMined=null,Object.defineProperty(e.prototype,"_isMined",{get:$util.oneOfGetter(t=["isMined"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.experimenter&&Object.hasOwnProperty.call(e,"experimenter")&&$root.ord.Person.encode(e.experimenter,t.uint32(10).fork()).ldelim(),null!=e.city&&Object.hasOwnProperty.call(e,"city")&&t.uint32(18).string(e.city),null!=e.experimentStart&&Object.hasOwnProperty.call(e,"experimentStart")&&$root.ord.DateTime.encode(e.experimentStart,t.uint32(26).fork()).ldelim(),null!=e.doi&&Object.hasOwnProperty.call(e,"doi")&&t.uint32(34).string(e.doi),null!=e.patent&&Object.hasOwnProperty.call(e,"patent")&&t.uint32(42).string(e.patent),null!=e.publicationUrl&&Object.hasOwnProperty.call(e,"publicationUrl")&&t.uint32(50).string(e.publicationUrl),null!=e.recordCreated&&Object.hasOwnProperty.call(e,"recordCreated")&&$root.ord.RecordEvent.encode(e.recordCreated,t.uint32(58).fork()).ldelim(),null!=e.recordModified&&e.recordModified.length)for(let r=0;r<e.recordModified.length;++r)$root.ord.RecordEvent.encode(e.recordModified[r],t.uint32(66).fork()).ldelim();if(null!=e.reactionMetadata&&Object.hasOwnProperty.call(e,"reactionMetadata"))for(let r=Object.keys(e.reactionMetadata),o=0;o<r.length;++o)t.uint32(74).fork().uint32(10).string(r[o]),$root.ord.Data.encode(e.reactionMetadata[r[o]],t.uint32(18).fork()).ldelim().ldelim();return null!=e.isMined&&Object.hasOwnProperty.call(e,"isMined")&&t.uint32(80).bool(e.isMined),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord.ReactionProvenance;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:i.experimenter=$root.ord.Person.decode(e,e.uint32());break;case 2:i.city=e.string();break;case 3:i.experimentStart=$root.ord.DateTime.decode(e,e.uint32());break;case 4:i.doi=e.string();break;case 5:i.patent=e.string();break;case 6:i.publicationUrl=e.string();break;case 7:i.recordCreated=$root.ord.RecordEvent.decode(e,e.uint32());break;case 8:i.recordModified&&i.recordModified.length||(i.recordModified=[]),i.recordModified.push($root.ord.RecordEvent.decode(e,e.uint32()));break;case 9:{i.reactionMetadata===$util.emptyObject&&(i.reactionMetadata={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord.Data.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.reactionMetadata[r]=o;break}case 10:i.isMined=e.bool();break;default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.experimenter&&e.hasOwnProperty("experimenter")){let t=$root.ord.Person.verify(e.experimenter);if(t)return"experimenter."+t}if(null!=e.city&&e.hasOwnProperty("city")&&!$util.isString(e.city))return"city: string expected";if(null!=e.experimentStart&&e.hasOwnProperty("experimentStart")){let t=$root.ord.DateTime.verify(e.experimentStart);if(t)return"experimentStart."+t}if(null!=e.doi&&e.hasOwnProperty("doi")&&!$util.isString(e.doi))return"doi: string expected";if(null!=e.patent&&e.hasOwnProperty("patent")&&!$util.isString(e.patent))return"patent: string expected";if(null!=e.publicationUrl&&e.hasOwnProperty("publicationUrl")&&!$util.isString(e.publicationUrl))return"publicationUrl: string expected";if(null!=e.recordCreated&&e.hasOwnProperty("recordCreated")){let t=$root.ord.RecordEvent.verify(e.recordCreated);if(t)return"recordCreated."+t}if(null!=e.recordModified&&e.hasOwnProperty("recordModified")){if(!Array.isArray(e.recordModified))return"recordModified: array expected";for(let t=0;t<e.recordModified.length;++t){let r=$root.ord.RecordEvent.verify(e.recordModified[t]);if(r)return"recordModified."+r}}if(null!=e.reactionMetadata&&e.hasOwnProperty("reactionMetadata")){if(!$util.isObject(e.reactionMetadata))return"reactionMetadata: object expected";let t=Object.keys(e.reactionMetadata);for(let r=0;r<t.length;++r){let o=$root.ord.Data.verify(e.reactionMetadata[t[r]]);if(o)return"reactionMetadata."+o}}return null!=e.isMined&&e.hasOwnProperty("isMined")&&"boolean"!=typeof e.isMined?"isMined: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord.ReactionProvenance)return e;let t=new $root.ord.ReactionProvenance;if(null!=e.experimenter){if("object"!=typeof e.experimenter)throw TypeError(".ord.ReactionProvenance.experimenter: object expected");t.experimenter=$root.ord.Person.fromObject(e.experimenter)}if(null!=e.city&&(t.city=String(e.city)),null!=e.experimentStart){if("object"!=typeof e.experimentStart)throw TypeError(".ord.ReactionProvenance.experimentStart: object expected");t.experimentStart=$root.ord.DateTime.fromObject(e.experimentStart)}if(null!=e.doi&&(t.doi=String(e.doi)),null!=e.patent&&(t.patent=String(e.patent)),null!=e.publicationUrl&&(t.publicationUrl=String(e.publicationUrl)),null!=e.recordCreated){if("object"!=typeof e.recordCreated)throw TypeError(".ord.ReactionProvenance.recordCreated: object expected");t.recordCreated=$root.ord.RecordEvent.fromObject(e.recordCreated)}if(e.recordModified){if(!Array.isArray(e.recordModified))throw TypeError(".ord.ReactionProvenance.recordModified: array expected");t.recordModified=[];for(let r=0;r<e.recordModified.length;++r){if("object"!=typeof e.recordModified[r])throw TypeError(".ord.ReactionProvenance.recordModified: object expected");t.recordModified[r]=$root.ord.RecordEvent.fromObject(e.recordModified[r])}}if(e.reactionMetadata){if("object"!=typeof e.reactionMetadata)throw TypeError(".ord.ReactionProvenance.reactionMetadata: object expected");t.reactionMetadata={};for(let r=Object.keys(e.reactionMetadata),o=0;o<r.length;++o){if("object"!=typeof e.reactionMetadata[r[o]])throw TypeError(".ord.ReactionProvenance.reactionMetadata: object expected");t.reactionMetadata[r[o]]=$root.ord.Data.fromObject(e.reactionMetadata[r[o]])}}return null!=e.isMined&&(t.isMined=Boolean(e.isMined)),t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.arrays||t.defaults)&&(o.recordModified=[]),(t.objects||t.defaults)&&(o.reactionMetadata={}),t.defaults&&(o.experimenter=null,o.city="",o.experimentStart=null,o.doi="",o.patent="",o.publicationUrl="",o.recordCreated=null),null!=e.experimenter&&e.hasOwnProperty("experimenter")&&(o.experimenter=$root.ord.Person.toObject(e.experimenter,t)),null!=e.city&&e.hasOwnProperty("city")&&(o.city=e.city),null!=e.experimentStart&&e.hasOwnProperty("experimentStart")&&(o.experimentStart=$root.ord.DateTime.toObject(e.experimentStart,t)),null!=e.doi&&e.hasOwnProperty("doi")&&(o.doi=e.doi),null!=e.patent&&e.hasOwnProperty("patent")&&(o.patent=e.patent),null!=e.publicationUrl&&e.hasOwnProperty("publicationUrl")&&(o.publicationUrl=e.publicationUrl),null!=e.recordCreated&&e.hasOwnProperty("recordCreated")&&(o.recordCreated=$root.ord.RecordEvent.toObject(e.recordCreated,t)),e.recordModified&&e.recordModified.length){o.recordModified=[];for(let r=0;r<e.recordModified.length;++r)o.recordModified[r]=$root.ord.RecordEvent.toObject(e.recordModified[r],t)}if(e.reactionMetadata&&(r=Object.keys(e.reactionMetadata)).length){o.reactionMetadata={};for(let n=0;n<r.length;++n)o.reactionMetadata[r[n]]=$root.ord.Data.toObject(e.reactionMetadata[r[n]],t)}return null!=e.isMined&&e.hasOwnProperty("isMined")&&(o.isMined=e.isMined,t.oneofs&&(o._isMined="isMined")),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.ReactionProvenance"},e}(),e.Person=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.username="",e.prototype.name="",e.prototype.orcid="",e.prototype.organization="",e.prototype.email="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.username&&Object.hasOwnProperty.call(e,"username")&&t.uint32(10).string(e.username),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.orcid&&Object.hasOwnProperty.call(e,"orcid")&&t.uint32(26).string(e.orcid),null!=e.organization&&Object.hasOwnProperty.call(e,"organization")&&t.uint32(34).string(e.organization),null!=e.email&&Object.hasOwnProperty.call(e,"email")&&t.uint32(42).string(e.email),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Person;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.username=e.string();break;case 2:o.name=e.string();break;case 3:o.orcid=e.string();break;case 4:o.organization=e.string();break;case 5:o.email=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.username&&e.hasOwnProperty("username")&&!$util.isString(e.username)?"username: string expected":null!=e.name&&e.hasOwnProperty("name")&&!$util.isString(e.name)?"name: string expected":null!=e.orcid&&e.hasOwnProperty("orcid")&&!$util.isString(e.orcid)?"orcid: string expected":null!=e.organization&&e.hasOwnProperty("organization")&&!$util.isString(e.organization)?"organization: string expected":null!=e.email&&e.hasOwnProperty("email")&&!$util.isString(e.email)?"email: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Person)return e;let t=new $root.ord.Person;return null!=e.username&&(t.username=String(e.username)),null!=e.name&&(t.name=String(e.name)),null!=e.orcid&&(t.orcid=String(e.orcid)),null!=e.organization&&(t.organization=String(e.organization)),null!=e.email&&(t.email=String(e.email)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.username="",r.name="",r.orcid="",r.organization="",r.email=""),null!=e.username&&e.hasOwnProperty("username")&&(r.username=e.username),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.orcid&&e.hasOwnProperty("orcid")&&(r.orcid=e.orcid),null!=e.organization&&e.hasOwnProperty("organization")&&(r.organization=e.organization),null!=e.email&&e.hasOwnProperty("email")&&(r.email=e.email),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Person"},e}(),e.RecordEvent=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.time=null,e.prototype.person=null,e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&$root.ord.DateTime.encode(e.time,t.uint32(10).fork()).ldelim(),null!=e.person&&Object.hasOwnProperty.call(e,"person")&&$root.ord.Person.encode(e.person,t.uint32(18).fork()).ldelim(),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(26).string(e.details),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.RecordEvent;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.time=$root.ord.DateTime.decode(e,e.uint32());break;case 2:o.person=$root.ord.Person.decode(e,e.uint32());break;case 3:o.details=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.time&&e.hasOwnProperty("time")){let t=$root.ord.DateTime.verify(e.time);if(t)return"time."+t}if(null!=e.person&&e.hasOwnProperty("person")){let t=$root.ord.Person.verify(e.person);if(t)return"person."+t}return null!=e.details&&e.hasOwnProperty("details")&&!$util.isString(e.details)?"details: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.RecordEvent)return e;let t=new $root.ord.RecordEvent;if(null!=e.time){if("object"!=typeof e.time)throw TypeError(".ord.RecordEvent.time: object expected");t.time=$root.ord.DateTime.fromObject(e.time)}if(null!=e.person){if("object"!=typeof e.person)throw TypeError(".ord.RecordEvent.person: object expected");t.person=$root.ord.Person.fromObject(e.person)}return null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.time=null,r.person=null,r.details=""),null!=e.time&&e.hasOwnProperty("time")&&(r.time=$root.ord.DateTime.toObject(e.time,t)),null!=e.person&&e.hasOwnProperty("person")&&(r.person=$root.ord.Person.toObject(e.person,t)),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.RecordEvent"},e}(),e.Time=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Time;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 4:case 1:case 2:case 3:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Time)return e;let t=new $root.ord.Time;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"DAY":case 4:t.units=4;break;case"HOUR":case 1:t.units=1;break;case"MINUTE":case 2:t.units=2;break;case"SECOND":case 3:t.units=3}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Time.TimeUnit[e.units]?e.units:$root.ord.Time.TimeUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Time"},e.TimeUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[4]="DAY"]=4,t[e[1]="HOUR"]=1,t[e[2]="MINUTE"]=2,t[e[3]="SECOND"]=3,t}(),e}(),e.Mass=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Mass;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Mass)return e;let t=new $root.ord.Mass;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"KILOGRAM":case 1:t.units=1;break;case"GRAM":case 2:t.units=2;break;case"MILLIGRAM":case 3:t.units=3;break;case"MICROGRAM":case 4:t.units=4}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Mass.MassUnit[e.units]?e.units:$root.ord.Mass.MassUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Mass"},e.MassUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="KILOGRAM"]=1,t[e[2]="GRAM"]=2,t[e[3]="MILLIGRAM"]=3,t[e[4]="MICROGRAM"]=4,t}(),e}(),e.Moles=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Moles;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Moles)return e;let t=new $root.ord.Moles;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"MOLE":case 1:t.units=1;break;case"MILLIMOLE":case 2:t.units=2;break;case"MICROMOLE":case 3:t.units=3;break;case"NANOMOLE":case 4:t.units=4}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Moles.MolesUnit[e.units]?e.units:$root.ord.Moles.MolesUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Moles"},e.MolesUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="MOLE"]=1,t[e[2]="MILLIMOLE"]=2,t[e[3]="MICROMOLE"]=3,t[e[4]="NANOMOLE"]=4,t}(),e}(),e.Volume=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Volume;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Volume)return e;let t=new $root.ord.Volume;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"LITER":case 1:t.units=1;break;case"MILLILITER":case 2:t.units=2;break;case"MICROLITER":case 3:t.units=3;break;case"NANOLITER":case 4:t.units=4}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Volume.VolumeUnit[e.units]?e.units:$root.ord.Volume.VolumeUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Volume"},e.VolumeUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="LITER"]=1,t[e[2]="MILLILITER"]=2,t[e[3]="MICROLITER"]=3,t[e[4]="NANOLITER"]=4,t}(),e}(),e.Concentration=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Concentration;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Concentration)return e;let t=new $root.ord.Concentration;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"MOLAR":case 1:t.units=1;break;case"MILLIMOLAR":case 2:t.units=2;break;case"MICROMOLAR":case 3:t.units=3}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Concentration.ConcentrationUnit[e.units]?e.units:$root.ord.Concentration.ConcentrationUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Concentration"},e.ConcentrationUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="MOLAR"]=1,t[e[2]="MILLIMOLAR"]=2,t[e[3]="MICROMOLAR"]=3,t}(),e}(),e.Pressure=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Pressure;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Pressure)return e;let t=new $root.ord.Pressure;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"BAR":case 1:t.units=1;break;case"ATMOSPHERE":case 2:t.units=2;break;case"PSI":case 3:t.units=3;break;case"KPSI":case 4:t.units=4;break;case"PASCAL":case 5:t.units=5;break;case"KILOPASCAL":case 6:t.units=6;break;case"TORR":case 7:t.units=7;break;case"MM_HG":case 8:t.units=8}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Pressure.PressureUnit[e.units]?e.units:$root.ord.Pressure.PressureUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Pressure"},e.PressureUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="BAR"]=1,t[e[2]="ATMOSPHERE"]=2,t[e[3]="PSI"]=3,t[e[4]="KPSI"]=4,t[e[5]="PASCAL"]=5,t[e[6]="KILOPASCAL"]=6,t[e[7]="TORR"]=7,t[e[8]="MM_HG"]=8,t}(),e}(),e.Temperature=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Temperature;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Temperature)return e;let t=new $root.ord.Temperature;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"CELSIUS":case 1:t.units=1;break;case"FAHRENHEIT":case 2:t.units=2;break;case"KELVIN":case 3:t.units=3}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Temperature.TemperatureUnit[e.units]?e.units:$root.ord.Temperature.TemperatureUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Temperature"},e.TemperatureUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CELSIUS"]=1,t[e[2]="FAHRENHEIT"]=2,t[e[3]="KELVIN"]=3,t}(),e}(),e.Current=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Current;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Current)return e;let t=new $root.ord.Current;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"AMPERE":case 1:t.units=1;break;case"MILLIAMPERE":case 2:t.units=2}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Current.CurrentUnit[e.units]?e.units:$root.ord.Current.CurrentUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Current"},e.CurrentUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="AMPERE"]=1,t[e[2]="MILLIAMPERE"]=2,t}(),e}(),e.Voltage=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Voltage;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Voltage)return e;let t=new $root.ord.Voltage;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"VOLT":case 1:t.units=1;break;case"MILLIVOLT":case 2:t.units=2}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Voltage.VoltageUnit[e.units]?e.units:$root.ord.Voltage.VoltageUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Voltage"},e.VoltageUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="VOLT"]=1,t[e[2]="MILLIVOLT"]=2,t}(),e}(),e.Length=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Length;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Length)return e;let t=new $root.ord.Length;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"CENTIMETER":case 1:t.units=1;break;case"MILLIMETER":case 2:t.units=2;break;case"METER":case 3:t.units=3;break;case"INCH":case 4:t.units=4;break;case"FOOT":case 5:t.units=5}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Length.LengthUnit[e.units]?e.units:$root.ord.Length.LengthUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Length"},e.LengthUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="CENTIMETER"]=1,t[e[2]="MILLIMETER"]=2,t[e[3]="METER"]=3,t[e[4]="INCH"]=4,t[e[5]="FOOT"]=5,t}(),e}(),e.Wavelength=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Wavelength;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof $root.ord.Wavelength)return e;let t=new $root.ord.Wavelength;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"NANOMETER":case 1:t.units=1;break;case"WAVENUMBER":case 2:t.units=2}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.Wavelength.WavelengthUnit[e.units]?e.units:$root.ord.Wavelength.WavelengthUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Wavelength"},e.WavelengthUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="NANOMETER"]=1,t[e[2]="WAVENUMBER"]=2,t}(),e}(),e.FlowRate=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,e.prototype.units=0,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),null!=e.units&&Object.hasOwnProperty.call(e,"units")&&t.uint32(24).int32(e.units),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.FlowRate;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;case 3:o.units=e.int32();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value))return"value: number expected";if(null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision))return"precision: number expected";if(null!=e.units&&e.hasOwnProperty("units"))switch(e.units){default:return"units: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null},e.fromObject=function(e){if(e instanceof $root.ord.FlowRate)return e;let t=new $root.ord.FlowRate;switch(null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),e.units){default:if("number"==typeof e.units){t.units=e.units;break}break;case"UNSPECIFIED":case 0:t.units=0;break;case"MICROLITER_PER_MINUTE":case 1:t.units=1;break;case"MICROLITER_PER_SECOND":case 2:t.units=2;break;case"MILLILITER_PER_MINUTE":case 3:t.units=3;break;case"MILLILITER_PER_SECOND":case 4:t.units=4;break;case"MICROLITER_PER_HOUR":case 5:t.units=5}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.units=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),null!=e.units&&e.hasOwnProperty("units")&&(r.units=t.enums===String?void 0===$root.ord.FlowRate.FlowRateUnit[e.units]?e.units:$root.ord.FlowRate.FlowRateUnit[e.units]:e.units),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.FlowRate"},e.FlowRateUnit=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="MICROLITER_PER_MINUTE"]=1,t[e[2]="MICROLITER_PER_SECOND"]=2,t[e[3]="MILLILITER_PER_MINUTE"]=3,t[e[4]="MILLILITER_PER_SECOND"]=4,t[e[5]="MICROLITER_PER_HOUR"]=5,t}(),e}(),e.Percentage=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Percentage;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};return null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value)?"value: number expected":null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision)?"precision: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Percentage)return e;let t=new $root.ord.Percentage;return null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Percentage"},e}(),e.FloatValue=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,e.prototype.precision=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_precision",{get:$util.oneOfGetter(t=["precision"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),null!=e.precision&&Object.hasOwnProperty.call(e,"precision")&&t.uint32(21).float(e.precision),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.FloatValue;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.value=e.float();break;case 2:o.precision=e.float();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};return null!=e.value&&e.hasOwnProperty("value")&&(t._value=1,"number"!=typeof e.value)?"value: number expected":null!=e.precision&&e.hasOwnProperty("precision")&&(t._precision=1,"number"!=typeof e.precision)?"precision: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord.FloatValue)return e;let t=new $root.ord.FloatValue;return null!=e.value&&(t.value=Number(e.value)),null!=e.precision&&(t.precision=Number(e.precision)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),null!=e.precision&&e.hasOwnProperty("precision")&&(r.precision=t.json&&!isFinite(e.precision)?String(e.precision):e.precision,t.oneofs&&(r._precision="precision")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.FloatValue"},e}(),e.Data=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.floatValue=null,e.prototype.integerValue=null,e.prototype.bytesValue=null,e.prototype.stringValue=null,e.prototype.url=null,e.prototype.description="",e.prototype.format="",Object.defineProperty(e.prototype,"kind",{get:$util.oneOfGetter(t=["floatValue","integerValue","bytesValue","stringValue","url"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.floatValue&&Object.hasOwnProperty.call(e,"floatValue")&&t.uint32(13).float(e.floatValue),null!=e.integerValue&&Object.hasOwnProperty.call(e,"integerValue")&&t.uint32(16).int32(e.integerValue),null!=e.bytesValue&&Object.hasOwnProperty.call(e,"bytesValue")&&t.uint32(26).bytes(e.bytesValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(34).string(e.stringValue),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(42).string(e.url),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(50).string(e.description),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(58).string(e.format),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord.Data;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.floatValue=e.float();break;case 2:o.integerValue=e.int32();break;case 3:o.bytesValue=e.bytes();break;case 4:o.stringValue=e.string();break;case 5:o.url=e.string();break;case 6:o.description=e.string();break;case 7:o.format=e.string();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};if(null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(t.kind=1,"number"!=typeof e.floatValue))return"floatValue: number expected";if(null!=e.integerValue&&e.hasOwnProperty("integerValue")){if(1===t.kind)return"kind: multiple values";if(t.kind=1,!$util.isInteger(e.integerValue))return"integerValue: integer expected"}if(null!=e.bytesValue&&e.hasOwnProperty("bytesValue")){if(1===t.kind)return"kind: multiple values";if(t.kind=1,!(e.bytesValue&&"number"==typeof e.bytesValue.length||$util.isString(e.bytesValue)))return"bytesValue: buffer expected"}if(null!=e.stringValue&&e.hasOwnProperty("stringValue")){if(1===t.kind)return"kind: multiple values";if(t.kind=1,!$util.isString(e.stringValue))return"stringValue: string expected"}if(null!=e.url&&e.hasOwnProperty("url")){if(1===t.kind)return"kind: multiple values";if(t.kind=1,!$util.isString(e.url))return"url: string expected"}return null!=e.description&&e.hasOwnProperty("description")&&!$util.isString(e.description)?"description: string expected":null!=e.format&&e.hasOwnProperty("format")&&!$util.isString(e.format)?"format: string expected":null},e.fromObject=function(e){if(e instanceof $root.ord.Data)return e;let t=new $root.ord.Data;return null!=e.floatValue&&(t.floatValue=Number(e.floatValue)),null!=e.integerValue&&(t.integerValue=0|e.integerValue),null!=e.bytesValue&&("string"==typeof e.bytesValue?$util.base64.decode(e.bytesValue,t.bytesValue=$util.newBuffer($util.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(t.bytesValue=e.bytesValue)),null!=e.stringValue&&(t.stringValue=String(e.stringValue)),null!=e.url&&(t.url=String(e.url)),null!=e.description&&(t.description=String(e.description)),null!=e.format&&(t.format=String(e.format)),t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.description="",r.format=""),null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(r.floatValue=t.json&&!isFinite(e.floatValue)?String(e.floatValue):e.floatValue,t.oneofs&&(r.kind="floatValue")),null!=e.integerValue&&e.hasOwnProperty("integerValue")&&(r.integerValue=e.integerValue,t.oneofs&&(r.kind="integerValue")),null!=e.bytesValue&&e.hasOwnProperty("bytesValue")&&(r.bytesValue=t.bytes===String?$util.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,t.oneofs&&(r.kind="bytesValue")),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(r.stringValue=e.stringValue,t.oneofs&&(r.kind="stringValue")),null!=e.url&&e.hasOwnProperty("url")&&(r.url=e.url,t.oneofs&&(r.kind="url")),null!=e.description&&e.hasOwnProperty("description")&&(r.description=e.description),null!=e.format&&e.hasOwnProperty("format")&&(r.format=e.format),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord.Data"},e}(),e})(),ord_test=$root.ord_test=(()=>{const e={};return e.Scalar=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.int32Value=0,e.prototype.int64Value=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.floatValue=null,e.prototype.stringValue="",e.prototype.bytesValue=$util.newBuffer([]),e.prototype.boolValue=null,Object.defineProperty(e.prototype,"_floatValue",{get:$util.oneOfGetter(t=["floatValue"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_boolValue",{get:$util.oneOfGetter(t=["boolValue"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.int32Value&&Object.hasOwnProperty.call(e,"int32Value")&&t.uint32(8).int32(e.int32Value),null!=e.int64Value&&Object.hasOwnProperty.call(e,"int64Value")&&t.uint32(16).int64(e.int64Value),null!=e.floatValue&&Object.hasOwnProperty.call(e,"floatValue")&&t.uint32(29).float(e.floatValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(34).string(e.stringValue),null!=e.bytesValue&&Object.hasOwnProperty.call(e,"bytesValue")&&t.uint32(42).bytes(e.bytesValue),null!=e.boolValue&&Object.hasOwnProperty.call(e,"boolValue")&&t.uint32(48).bool(e.boolValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.Scalar;for(;e.pos<r;){let t=e.uint32();switch(t>>>3){case 1:o.int32Value=e.int32();break;case 2:o.int64Value=e.int64();break;case 3:o.floatValue=e.float();break;case 4:o.stringValue=e.string();break;case 5:o.bytesValue=e.bytes();break;case 6:o.boolValue=e.bool();break;default:e.skipType(7&t)}}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";let t={};return null!=e.int32Value&&e.hasOwnProperty("int32Value")&&!$util.isInteger(e.int32Value)?"int32Value: integer expected":null!=e.int64Value&&e.hasOwnProperty("int64Value")&&!($util.isInteger(e.int64Value)||e.int64Value&&$util.isInteger(e.int64Value.low)&&$util.isInteger(e.int64Value.high))?"int64Value: integer|Long expected":null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(t._floatValue=1,"number"!=typeof e.floatValue)?"floatValue: number expected":null!=e.stringValue&&e.hasOwnProperty("stringValue")&&!$util.isString(e.stringValue)?"stringValue: string expected":null!=e.bytesValue&&e.hasOwnProperty("bytesValue")&&!(e.bytesValue&&"number"==typeof e.bytesValue.length||$util.isString(e.bytesValue))?"bytesValue: buffer expected":null!=e.boolValue&&e.hasOwnProperty("boolValue")&&(t._boolValue=1,"boolean"!=typeof e.boolValue)?"boolValue: boolean expected":null},e.fromObject=function(e){if(e instanceof $root.ord_test.Scalar)return e;let t=new $root.ord_test.Scalar;return null!=e.int32Value&&(t.int32Value=0|e.int32Value),null!=e.int64Value&&($util.Long?(t.int64Value=$util.Long.fromValue(e.int64Value)).unsigned=!1:"string"==typeof e.int64Value?t.int64Value=parseInt(e.int64Value,10):"number"==typeof e.int64Value?t.int64Value=e.int64Value:"object"==typeof e.int64Value&&(t.int64Value=new $util.LongBits(e.int64Value.low>>>0,e.int64Value.high>>>0).toNumber())),null!=e.floatValue&&(t.floatValue=Number(e.floatValue)),null!=e.stringValue&&(t.stringValue=String(e.stringValue)),null!=e.bytesValue&&("string"==typeof e.bytesValue?$util.base64.decode(e.bytesValue,t.bytesValue=$util.newBuffer($util.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(t.bytesValue=e.bytesValue)),null!=e.boolValue&&(t.boolValue=Boolean(e.boolValue)),t},e.toObject=function(e,t){t||(t={});let r={};if(t.defaults){if(r.int32Value=0,$util.Long){let e=new $util.Long(0,0,!1);r.int64Value=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else r.int64Value=t.longs===String?"0":0;r.stringValue="",t.bytes===String?r.bytesValue="":(r.bytesValue=[],t.bytes!==Array&&(r.bytesValue=$util.newBuffer(r.bytesValue)))}return null!=e.int32Value&&e.hasOwnProperty("int32Value")&&(r.int32Value=e.int32Value),null!=e.int64Value&&e.hasOwnProperty("int64Value")&&("number"==typeof e.int64Value?r.int64Value=t.longs===String?String(e.int64Value):e.int64Value:r.int64Value=t.longs===String?$util.Long.prototype.toString.call(e.int64Value):t.longs===Number?new $util.LongBits(e.int64Value.low>>>0,e.int64Value.high>>>0).toNumber():e.int64Value),null!=e.floatValue&&e.hasOwnProperty("floatValue")&&(r.floatValue=t.json&&!isFinite(e.floatValue)?String(e.floatValue):e.floatValue,t.oneofs&&(r._floatValue="floatValue")),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(r.stringValue=e.stringValue),null!=e.bytesValue&&e.hasOwnProperty("bytesValue")&&(r.bytesValue=t.bytes===String?$util.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue),null!=e.boolValue&&e.hasOwnProperty("boolValue")&&(r.boolValue=e.boolValue,t.oneofs&&(r._boolValue="boolValue")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Scalar"},e}(),e.RepeatedScalar=function(){function e(e){if(this.values=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.values=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.values&&e.values.length){t.uint32(10).fork();for(let r=0;r<e.values.length;++r)t.float(e.values[r]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.RepeatedScalar;for(;e.pos<r;){let t=e.uint32();if(t>>>3==1)if(o.values&&o.values.length||(o.values=[]),2==(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)o.values.push(e.float())}else o.values.push(e.float());else e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.values&&e.hasOwnProperty("values")){if(!Array.isArray(e.values))return"values: array expected";for(let t=0;t<e.values.length;++t)if("number"!=typeof e.values[t])return"values: number[] expected"}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.RepeatedScalar)return e;let t=new $root.ord_test.RepeatedScalar;if(e.values){if(!Array.isArray(e.values))throw TypeError(".ord_test.RepeatedScalar.values: array expected");t.values=[];for(let r=0;r<e.values.length;++r)t.values[r]=Number(e.values[r])}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.values=[]),e.values&&e.values.length){r.values=[];for(let o=0;o<e.values.length;++o)r.values[o]=t.json&&!isFinite(e.values[o])?String(e.values[o]):e.values[o]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.RepeatedScalar"},e}(),e.Enum=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.Enum;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.int32():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.value&&e.hasOwnProperty("value"))switch(e.value){default:return"value: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.Enum)return e;let t=new $root.ord_test.Enum;switch(e.value){default:if("number"==typeof e.value){t.value=e.value;break}break;case"UNSPECIFIED":case 0:t.value=0;break;case"FIRST":case 1:t.value=1;break;case"SECOND":case 2:t.value=2}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.value=t.enums===String?"UNSPECIFIED":0),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.enums===String?void 0===$root.ord_test.Enum.EnumValues[e.value]?e.value:$root.ord_test.Enum.EnumValues[e.value]:e.value),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Enum"},e.EnumValues=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="FIRST"]=1,t[e[2]="SECOND"]=2,t}(),e}(),e.RepeatedEnum=function(){function e(e){if(this.values=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.values=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.values&&e.values.length){t.uint32(10).fork();for(let r=0;r<e.values.length;++r)t.int32(e.values[r]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.RepeatedEnum;for(;e.pos<r;){let t=e.uint32();if(t>>>3==1)if(o.values&&o.values.length||(o.values=[]),2==(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)o.values.push(e.int32())}else o.values.push(e.int32());else e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.values&&e.hasOwnProperty("values")){if(!Array.isArray(e.values))return"values: array expected";for(let t=0;t<e.values.length;++t)switch(e.values[t]){default:return"values: enum value[] expected";case 0:case 1:case 2:}}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.RepeatedEnum)return e;let t=new $root.ord_test.RepeatedEnum;if(e.values){if(!Array.isArray(e.values))throw TypeError(".ord_test.RepeatedEnum.values: array expected");t.values=[];for(let r=0;r<e.values.length;++r)switch(e.values[r]){default:if("number"==typeof e.values[r]){t.values[r]=e.values[r];break}case"UNSPECIFIED":case 0:t.values[r]=0;break;case"FIRST":case 1:t.values[r]=1;break;case"SECOND":case 2:t.values[r]=2}}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.values=[]),e.values&&e.values.length){r.values=[];for(let o=0;o<e.values.length;++o)r.values[o]=t.enums===String?void 0===$root.ord_test.RepeatedEnum.EnumValues[e.values[o]]?e.values[o]:$root.ord_test.RepeatedEnum.EnumValues[e.values[o]]:e.values[o]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.RepeatedEnum"},e.EnumValues=function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="FIRST"]=1,t[e[2]="SECOND"]=2,t}(),e}(),e.Nested=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.child=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.child&&Object.hasOwnProperty.call(e,"child")&&$root.ord_test.Nested.Child.encode(e.child,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.Nested;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.child=$root.ord_test.Nested.Child.decode(e,e.uint32()):e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.child&&e.hasOwnProperty("child")){let t=$root.ord_test.Nested.Child.verify(e.child);if(t)return"child."+t}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.Nested)return e;let t=new $root.ord_test.Nested;if(null!=e.child){if("object"!=typeof e.child)throw TypeError(".ord_test.Nested.child: object expected");t.child=$root.ord_test.Nested.Child.fromObject(e.child)}return t},e.toObject=function(e,t){t||(t={});let r={};return t.defaults&&(r.child=null),null!=e.child&&e.hasOwnProperty("child")&&(r.child=$root.ord_test.Nested.Child.toObject(e.child,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Nested"},e.Child=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.Nested.Child;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.float():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";return null!=e.value&&e.hasOwnProperty("value")&&"number"!=typeof e.value?"value: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord_test.Nested.Child)return e;let t=new $root.ord_test.Nested.Child;return null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Nested.Child"},e}(),e}(),e.RepeatedNested=function(){function e(e){if(this.children=[],e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.children=$util.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.children&&e.children.length)for(let r=0;r<e.children.length;++r)$root.ord_test.RepeatedNested.Child.encode(e.children[r],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.RepeatedNested;for(;e.pos<r;){let t=e.uint32();t>>>3==1?(o.children&&o.children.length||(o.children=[]),o.children.push($root.ord_test.RepeatedNested.Child.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.children&&e.hasOwnProperty("children")){if(!Array.isArray(e.children))return"children: array expected";for(let t=0;t<e.children.length;++t){let r=$root.ord_test.RepeatedNested.Child.verify(e.children[t]);if(r)return"children."+r}}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.RepeatedNested)return e;let t=new $root.ord_test.RepeatedNested;if(e.children){if(!Array.isArray(e.children))throw TypeError(".ord_test.RepeatedNested.children: array expected");t.children=[];for(let r=0;r<e.children.length;++r){if("object"!=typeof e.children[r])throw TypeError(".ord_test.RepeatedNested.children: object expected");t.children[r]=$root.ord_test.RepeatedNested.Child.fromObject(e.children[r])}}return t},e.toObject=function(e,t){t||(t={});let r={};if((t.arrays||t.defaults)&&(r.children=[]),e.children&&e.children.length){r.children=[];for(let o=0;o<e.children.length;++o)r.children[o]=$root.ord_test.RepeatedNested.Child.toObject(e.children[o],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.RepeatedNested"},e.Child=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.RepeatedNested.Child;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.float():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";return null!=e.value&&e.hasOwnProperty("value")&&"number"!=typeof e.value?"value: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord_test.RepeatedNested.Child)return e;let t=new $root.ord_test.RepeatedNested.Child;return null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.RepeatedNested.Child"},e}(),e}(),e.Map=function(){function e(e){if(this.values={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.values=$util.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.values&&Object.hasOwnProperty.call(e,"values"))for(let r=Object.keys(e.values),o=0;o<r.length;++o)t.uint32(10).fork().uint32(10).string(r[o]).uint32(21).float(e.values[r[o]]).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord_test.Map;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:{i.values===$util.emptyObject&&(i.values={});let t=e.uint32()+e.pos;for(r="",o=0;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=e.float();break;default:e.skipType(7&t)}}i.values[r]=o;break}default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.values&&e.hasOwnProperty("values")){if(!$util.isObject(e.values))return"values: object expected";let t=Object.keys(e.values);for(let r=0;r<t.length;++r)if("number"!=typeof e.values[t[r]])return"values: number{k:string} expected"}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.Map)return e;let t=new $root.ord_test.Map;if(e.values){if("object"!=typeof e.values)throw TypeError(".ord_test.Map.values: object expected");t.values={};for(let r=Object.keys(e.values),o=0;o<r.length;++o)t.values[r[o]]=Number(e.values[r[o]])}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.objects||t.defaults)&&(o.values={}),e.values&&(r=Object.keys(e.values)).length){o.values={};for(let n=0;n<r.length;++n)o.values[r[n]]=t.json&&!isFinite(e.values[r[n]])?String(e.values[r[n]]):e.values[r[n]]}return o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.Map"},e}(),e.MapNested=function(){function e(e){if(this.children={},e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.children=$util.emptyObject,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=$Writer.create()),null!=e.children&&Object.hasOwnProperty.call(e,"children"))for(let r=Object.keys(e.children),o=0;o<r.length;++o)t.uint32(10).fork().uint32(10).string(r[o]),$root.ord_test.MapNested.Child.encode(e.children[r[o]],t.uint32(18).fork()).ldelim().ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r,o,n=void 0===t?e.len:e.pos+t,i=new $root.ord_test.MapNested;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:{i.children===$util.emptyObject&&(i.children={});let t=e.uint32()+e.pos;for(r="",o=null;e.pos<t;){let t=e.uint32();switch(t>>>3){case 1:r=e.string();break;case 2:o=$root.ord_test.MapNested.Child.decode(e,e.uint32());break;default:e.skipType(7&t)}}i.children[r]=o;break}default:e.skipType(7&t)}}return i},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.children&&e.hasOwnProperty("children")){if(!$util.isObject(e.children))return"children: object expected";let t=Object.keys(e.children);for(let r=0;r<t.length;++r){let o=$root.ord_test.MapNested.Child.verify(e.children[t[r]]);if(o)return"children."+o}}return null},e.fromObject=function(e){if(e instanceof $root.ord_test.MapNested)return e;let t=new $root.ord_test.MapNested;if(e.children){if("object"!=typeof e.children)throw TypeError(".ord_test.MapNested.children: object expected");t.children={};for(let r=Object.keys(e.children),o=0;o<r.length;++o){if("object"!=typeof e.children[r[o]])throw TypeError(".ord_test.MapNested.children: object expected");t.children[r[o]]=$root.ord_test.MapNested.Child.fromObject(e.children[r[o]])}}return t},e.toObject=function(e,t){t||(t={});let r,o={};if((t.objects||t.defaults)&&(o.children={}),e.children&&(r=Object.keys(e.children)).length){o.children={};for(let n=0;n<r.length;++n)o.children[r[n]]=$root.ord_test.MapNested.Child.toObject(e.children[r[n]],t)}return o},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.MapNested"},e.Child=function(){function e(e){if(e)for(let t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.value=null,Object.defineProperty(e.prototype,"_value",{get:$util.oneOfGetter(t=["value"]),set:$util.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=$Writer.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(13).float(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof $Reader||(e=$Reader.create(e));let r=void 0===t?e.len:e.pos+t,o=new $root.ord_test.MapNested.Child;for(;e.pos<r;){let t=e.uint32();t>>>3==1?o.value=e.float():e.skipType(7&t)}return o},e.decodeDelimited=function(e){return e instanceof $Reader||(e=new $Reader(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!=typeof e||null===e)return"object expected";return null!=e.value&&e.hasOwnProperty("value")&&"number"!=typeof e.value?"value: number expected":null},e.fromObject=function(e){if(e instanceof $root.ord_test.MapNested.Child)return e;let t=new $root.ord_test.MapNested.Child;return null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});let r={};return null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value,t.oneofs&&(r._value="value")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,protobufjs_minimal__WEBPACK_IMPORTED_MODULE_0__.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/ord_test.MapNested.Child"},e}(),e}(),e})()})();