forked from protocolbuffers/protobuf-javascript
-
Notifications
You must be signed in to change notification settings - Fork 1
/
google-protobuf.js
150 lines (149 loc) · 66.7 KB
/
google-protobuf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},e="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ba(a,b){if(b){var c=e;a=a.split(".");for(var d=0;d<a.length-1;d++){var f=a[d];f in c||(c[f]={});c=c[f]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}
function ca(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function da(){da=function(){};e.Symbol||(e.Symbol=ea)}function fa(a,b){this.a=a;aa(this,"description",{configurable:!0,writable:!0,value:b})}fa.prototype.toString=function(){return this.a};var ea=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new fa("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
function ha(){da();var a=e.Symbol.iterator;a||(a=e.Symbol.iterator=e.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(ca(this))}});ha=function(){}}function ia(a){ha();a={next:a};a[e.Symbol.iterator]=function(){return this};return a}
function ka(a,b){ha();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d}ba("Array.prototype.entries",function(a){return a?a:function(){return ka(this,function(b,c){return[b,c]})}});var la=this||self;
function g(a,b,c){a=a.split(".");c=c||la;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}
function k(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ma(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function na(a,b,c){g(a,b,c)}function oa(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};var pa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function qa(a,b){for(var c,d,f=1;f<arguments.length;f++){d=arguments[f];for(c in d)a[c]=d[c];for(var h=0;h<pa.length;h++)c=pa[h],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var ra=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,f=0;f<c;f++)f in d&&b.call(void 0,d[f],f,a)},l=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),f="string"===typeof a?a.split(""):a,h=0;h<c;h++)h in f&&(d[h]=b.call(void 0,f[h],h,a));return d};
function sa(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function ta(a,b,c,d){var f="Assertion failed";if(c){f+=": "+c;var h=d}else a&&(f+=": "+a,h=b);throw Error(f,h||[]);}function n(a,b,c){for(var d=[],f=2;f<arguments.length;++f)d[f-2]=arguments[f];a||ta("",null,b,d);return a}function ua(a,b,c){for(var d=[],f=2;f<arguments.length;++f)d[f-2]=arguments[f];"string"!==typeof a&&ta("Expected string but got %s: %s.",[k(a),a],b,d)}
function va(a,b,c){for(var d=[],f=2;f<arguments.length;++f)d[f-2]=arguments[f];Array.isArray(a)||ta("Expected array but got %s: %s.",[k(a),a],b,d)}function p(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];throw Error("Failure"+(a?": "+a:""),c);}function q(a,b,c,d){for(var f=[],h=3;h<arguments.length;++h)f[h-3]=arguments[h];a instanceof b||ta("Expected instanceof %s but got %s.",[wa(b),wa(a)],c,f)}
function wa(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};function r(a,b){this.f=a;this.b=b;this.a={};this.arrClean=!0;if(0<this.f.length){for(a=0;a<this.f.length;a++){b=this.f[a];var c=b[0];this.a[c.toString()]=new xa(c,b[1])}this.arrClean=!0}}g("jspb.Map",r,void 0);
r.prototype.g=function(){if(this.arrClean){if(this.b){var a=this.a,b;for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b].a;c&&c.g()}}}else{this.f.length=0;a=u(this);a.sort();for(b=0;b<a.length;b++){var d=this.a[a[b]];(c=d.a)&&c.g();this.f.push([d.key,d.value])}this.arrClean=!0}return this.f};r.prototype.toArray=r.prototype.g;
r.prototype.Lc=function(a,b){for(var c=this.g(),d=[],f=0;f<c.length;f++){var h=this.a[c[f][0].toString()];v(this,h);var m=h.a;m?(n(b),d.push([h.key,b(a,m)])):d.push([h.key,h.value])}return d};r.prototype.toObject=r.prototype.Lc;r.fromObject=function(a,b,c){b=new r([],b);for(var d=0;d<a.length;d++){var f=a[d][0],h=c(a[d][1]);b.set(f,h)}return b};function x(a){this.a=0;this.b=a}x.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}};
"undefined"!=typeof Symbol&&(x.prototype[Symbol.iterator]=function(){return this});r.prototype.Jb=function(){return u(this).length};r.prototype.getLength=r.prototype.Jb;r.prototype.clear=function(){this.a={};this.arrClean=!1};r.prototype.clear=r.prototype.clear;r.prototype.Cb=function(a){a=a.toString();var b=this.a.hasOwnProperty(a);delete this.a[a];this.arrClean=!1;return b};r.prototype.del=r.prototype.Cb;
r.prototype.Eb=function(){var a=[],b=u(this);b.sort();for(var c=0;c<b.length;c++){var d=this.a[b[c]];a.push([d.key,d.value])}return a};r.prototype.getEntryList=r.prototype.Eb;r.prototype.entries=function(){var a=[],b=u(this);b.sort();for(var c=0;c<b.length;c++){var d=this.a[b[c]];a.push([d.key,v(this,d)])}return new x(a)};r.prototype.entries=r.prototype.entries;r.prototype.keys=function(){var a=[],b=u(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.a[b[c]].key);return new x(a)};
r.prototype.keys=r.prototype.keys;r.prototype.values=function(){var a=[],b=u(this);b.sort();for(var c=0;c<b.length;c++)a.push(v(this,this.a[b[c]]));return new x(a)};r.prototype.values=r.prototype.values;r.prototype.forEach=function(a,b){var c=u(this);c.sort();for(var d=0;d<c.length;d++){var f=this.a[c[d]];a.call(b,v(this,f),f.key,this)}};r.prototype.forEach=r.prototype.forEach;
r.prototype.set=function(a,b){var c=new xa(a);this.b?(c.a=b,c.value=b.g()):c.value=b;this.a[a.toString()]=c;this.arrClean=!1;return this};r.prototype.set=r.prototype.set;function v(a,b){return a.b?(b.a||(b.a=new a.b(b.value)),b.a):b.value}r.prototype.get=function(a){if(a=this.a[a.toString()])return v(this,a)};r.prototype.get=r.prototype.get;r.prototype.has=function(a){return a.toString()in this.a};r.prototype.has=r.prototype.has;
r.prototype.Ic=function(a,b,c,d,f){var h=u(this);h.sort();for(var m=0;m<h.length;m++){var t=this.a[h[m]];b.Va(a);c.call(b,1,t.key);this.b?d.call(b,2,v(this,t),f):d.call(b,2,t.value);b.Ya()}};r.prototype.serializeBinary=r.prototype.Ic;r.deserializeBinary=function(a,b,c,d,f,h,m){for(;b.na()&&!b.bb();){var t=b.f;1==t?h=c.call(b):2==t&&(a.b?(n(f),m||(m=new a.b),d.call(b,m,f)):m=d.call(b))}n(void 0!=h);n(void 0!=m);a.set(h,m)};
function u(a){a=a.a;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}function xa(a,b){this.key=a;this.value=b;this.a=void 0};function ya(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,sa(a,c,c+8192));return b};var za={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},Aa={"'":"\\'"};var Ba={},y=null;function Ca(a,b){void 0===b&&(b=0);Da();b=Ba[b];for(var c=[],d=0;d<a.length;d+=3){var f=a[d],h=d+1<a.length,m=h?a[d+1]:0,t=d+2<a.length,w=t?a[d+2]:0,D=f>>2;f=(f&3)<<4|m>>4;m=(m&15)<<2|w>>6;w&=63;t||(w=64,h||(m=64));c.push(b[D],b[f],b[m]||"",b[w]||"")}return c.join("")}function Ea(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),f=0;Fa(a,function(h){d[f++]=h});return d.subarray(0,f)}
function Fa(a,b){function c(w){for(;d<a.length;){var D=a.charAt(d++),ja=y[D];if(null!=ja)return ja;if(!/^[\s\xa0]*$/.test(D))throw Error("Unknown base64 encoding at char: "+D);}return w}Da();for(var d=0;;){var f=c(-1),h=c(0),m=c(64),t=c(64);if(64===t&&-1===f)break;b(f<<2|h>>4);64!=m&&(b(h<<4&240|m>>2),64!=t&&b(m<<6&192|t))}}
function Da(){if(!y){y={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Ba[c]=d;for(var f=0;f<d.length;f++){var h=d[f];void 0===y[h]&&(y[h]=f)}}}};g("jspb.ConstBinaryMessage",function(){},void 0);g("jspb.BinaryMessage",function(){},void 0);g("jspb.BinaryConstants.FieldType",{yb:-1,de:1,FLOAT:2,je:3,se:4,ie:5,xb:6,wb:7,BOOL:8,qe:9,he:10,ke:11,be:12,re:13,fe:14,le:15,me:16,ne:17,oe:18,ge:30,ue:31},void 0);g("jspb.BinaryConstants.WireType",{yb:-1,te:0,xb:1,ce:2,pe:3,ee:4,wb:5},void 0);
g("jspb.BinaryConstants.FieldTypeToWireType",function(a){switch(a){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0);g("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0);g("jspb.BinaryConstants.FLOAT32_EPS",1.401298464324817E-45,void 0);g("jspb.BinaryConstants.FLOAT32_MIN",1.1754943508222875E-38,void 0);
g("jspb.BinaryConstants.FLOAT32_MAX",3.4028234663852886E38,void 0);g("jspb.BinaryConstants.FLOAT64_EPS",4.9E-324,void 0);g("jspb.BinaryConstants.FLOAT64_MIN",2.2250738585072014E-308,void 0);g("jspb.BinaryConstants.FLOAT64_MAX",1.7976931348623157E308,void 0);g("jspb.BinaryConstants.TWO_TO_20",1048576,void 0);g("jspb.BinaryConstants.TWO_TO_23",8388608,void 0);g("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0);g("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0);
g("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0);g("jspb.BinaryConstants.TWO_TO_63",0x7fffffffffffffff,void 0);g("jspb.BinaryConstants.TWO_TO_64",1.8446744073709552E19,void 0);g("jspb.BinaryConstants.ZERO_HASH","\x00\x00\x00\x00\x00\x00\x00\x00",void 0);function z(a,b){if(a)throw Error("Invalid UTF8");b.push(65533)}function Ga(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b}var Ha=void 0,Ia,Ja,Ka="undefined"!==typeof TextDecoder;var A=0,B=0;g("jspb.utils.getSplit64Low",function(){return A},void 0);g("jspb.utils.getSplit64High",function(){return B},void 0);function La(a){var b=a>>>0;a=Math.floor((a-b)/4294967296)>>>0;A=b;B=a}g("jspb.utils.splitUint64",La,void 0);function C(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);a>>>=0;b&&(a=~a>>>0,c=(~c>>>0)+1,4294967295<c&&(c=0,a++,4294967295<a&&(a=0)));A=c;B=a}g("jspb.utils.splitInt64",C,void 0);
function Ma(a){var b=0>a;a=2*Math.abs(a);La(a);a=A;var c=B;b&&(0==a?0==c?c=a=4294967295:(c--,a=4294967295):a--);A=a;B=c}g("jspb.utils.splitZigzag64",Ma,void 0);
function Na(a){var b=0>a?1:0;a=b?-a:a;if(0===a)0<1/a?A=B=0:(B=0,A=2147483648);else if(isNaN(a))B=0,A=2147483647;else if(3.4028234663852886E38<a)B=0,A=(b<<31|2139095040)>>>0;else if(1.1754943508222875E-38>a)a=Math.round(a/Math.pow(2,-149)),B=0,A=(b<<31|a)>>>0;else{var c=Math.floor(Math.log(a)/Math.LN2);a*=Math.pow(2,-c);a=Math.round(8388608*a);16777216<=a&&++c;B=0;A=(b<<31|c+127<<23|a&8388607)>>>0}}g("jspb.utils.splitFloat32",Na,void 0);
function Oa(a){var b=0>a?1:0;a=b?-a:a;if(0===a)B=0<1/a?0:2147483648,A=0;else if(isNaN(a))B=2147483647,A=4294967295;else if(1.7976931348623157E308<a)B=(b<<31|2146435072)>>>0,A=0;else if(2.2250738585072014E-308>a)a/=Math.pow(2,-1074),B=(b<<31|a/4294967296)>>>0,A=a>>>0;else{var c=a,d=0;if(2<=c)for(;2<=c&&1023>d;)d++,c/=2;else for(;1>c&&-1022<d;)c*=2,d--;a*=Math.pow(2,-d);B=(b<<31|d+1023<<20|1048576*a&1048575)>>>0;A=4503599627370496*a>>>0}}g("jspb.utils.splitFloat64",Oa,void 0);
function E(a){var b=a.charCodeAt(4),c=a.charCodeAt(5),d=a.charCodeAt(6),f=a.charCodeAt(7);A=a.charCodeAt(0)+(a.charCodeAt(1)<<8)+(a.charCodeAt(2)<<16)+(a.charCodeAt(3)<<24)>>>0;B=b+(c<<8)+(d<<16)+(f<<24)>>>0}g("jspb.utils.splitHash64",E,void 0);function F(a,b){return 4294967296*b+(a>>>0)}g("jspb.utils.joinUint64",F,void 0);function G(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=F(a,b);return c?-a:a}g("jspb.utils.joinInt64",G,void 0);
function Pa(a,b,c){var d=b>>31;return c(a<<1^d,(b<<1|a>>>31)^d)}g("jspb.utils.toZigzag64",Pa,void 0);function Qa(a,b){return Ra(a,b,G)}g("jspb.utils.joinZigzag64",Qa,void 0);function Ra(a,b,c){var d=-(a&1);return c((a>>>1|b<<31)^d,b>>>1^d)}g("jspb.utils.fromZigzag64",Ra,void 0);function Sa(a){var b=2*(a>>31)+1,c=a>>>23&255;a&=8388607;return 255==c?a?NaN:Infinity*b:0==c?b*Math.pow(2,-149)*a:b*Math.pow(2,c-150)*(a+Math.pow(2,23))}g("jspb.utils.joinFloat32",Sa,void 0);
function Ta(a,b){var c=2*(b>>31)+1,d=b>>>20&2047;a=4294967296*(b&1048575)+a;return 2047==d?a?NaN:Infinity*c:0==d?c*Math.pow(2,-1074)*a:c*Math.pow(2,d-1075)*(a+4503599627370496)}g("jspb.utils.joinFloat64",Ta,void 0);function Ua(a,b){return String.fromCharCode(a>>>0&255,a>>>8&255,a>>>16&255,a>>>24&255,b>>>0&255,b>>>8&255,b>>>16&255,b>>>24&255)}g("jspb.utils.joinHash64",Ua,void 0);g("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);
function H(a,b){function c(f,h){f=f?String(f):"";return h?"0000000".slice(f.length)+f:f}if(2097151>=b)return""+F(a,b);var d=(a>>>24|b<<8)>>>0&16777215;b=b>>16&65535;a=(a&16777215)+6777216*d+6710656*b;d+=8147497*b;b*=2;1E7<=a&&(d+=Math.floor(a/1E7),a%=1E7);1E7<=d&&(b+=Math.floor(d/1E7),d%=1E7);return c(b,0)+c(d,b)+c(a,1)}g("jspb.utils.joinUnsignedDecimalString",H,void 0);function Va(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b+(0==a?1:0)>>>0);a=H(a,b);return c?"-"+a:a}
g("jspb.utils.joinSignedDecimalString",Va,void 0);function Wa(a,b){E(a);a=A;var c=B;return b?Va(a,c):H(a,c)}g("jspb.utils.hash64ToDecimalString",Wa,void 0);g("jspb.utils.hash64ArrayToDecimalStrings",function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]=Wa(a[d],b);return c},void 0);
function Xa(a){function b(m,t){for(var w=0;8>w&&(1!==m||0<t);w++)t=m*f[w]+t,f[w]=t&255,t>>>=8}function c(){for(var m=0;8>m;m++)f[m]=~f[m]&255}n(0<a.length);var d=!1;"-"===a[0]&&(d=!0,a=a.slice(1));for(var f=[0,0,0,0,0,0,0,0],h=0;h<a.length;h++)b(10,a.charCodeAt(h)-48);d&&(c(),b(1,1));return ya(f)}g("jspb.utils.decimalStringToHash64",Xa,void 0);g("jspb.utils.splitDecimalString",function(a){E(Xa(a))},void 0);function Ya(a){return String.fromCharCode(10>a?48+a:87+a)}
function Za(a){return 97<=a?a-97+10:a-48}g("jspb.utils.hash64ToHexString",function(a){var b=Array(18);b[0]="0";b[1]="x";for(var c=0;8>c;c++){var d=a.charCodeAt(7-c);b[2*c+2]=Ya(d>>4);b[2*c+3]=Ya(d&15)}return b.join("")},void 0);g("jspb.utils.hexStringToHash64",function(a){a=a.toLowerCase();n(18==a.length);n("0"==a[0]);n("x"==a[1]);for(var b="",c=0;8>c;c++)b=String.fromCharCode(16*Za(a.charCodeAt(2*c+2))+Za(a.charCodeAt(2*c+3)))+b;return b},void 0);
g("jspb.utils.hash64ToNumber",function(a,b){E(a);a=A;var c=B;return b?G(a,c):F(a,c)},void 0);g("jspb.utils.numberToHash64",function(a){C(a);return Ua(A,B)},void 0);g("jspb.utils.countVarints",function(a,b,c){for(var d=0,f=b;f<c;f++)d+=a[f]>>7;return c-b-d},void 0);
g("jspb.utils.countVarintFields",function(a,b,c,d){var f=0;d*=8;if(128>d)for(;b<c&&a[b++]==d;)for(f++;;){var h=a[b++];if(0==(h&128))break}else for(;b<c;){for(h=d;128<h;){if(a[b]!=(h&127|128))return f;b++;h>>=7}if(a[b++]!=h)break;for(f++;h=a[b++],0!=(h&128););}return f},void 0);function $a(a,b,c,d,f){var h=0;if(128>d)for(;b<c&&a[b++]==d;)h++,b+=f;else for(;b<c;){for(var m=d;128<m;){if(a[b++]!=(m&127|128))return h;m>>=7}if(a[b++]!=m)break;h++;b+=f}return h}
g("jspb.utils.countFixed32Fields",function(a,b,c,d){return $a(a,b,c,8*d+5,4)},void 0);g("jspb.utils.countFixed64Fields",function(a,b,c,d){return $a(a,b,c,8*d+1,8)},void 0);g("jspb.utils.countDelimitedFields",function(a,b,c,d){var f=0;for(d=8*d+2;b<c;){for(var h=d;128<h;){if(a[b++]!=(h&127|128))return f;h>>=7}if(a[b++]!=h)break;f++;for(var m=0,t=1;h=a[b++],m+=(h&127)*t,t*=128,0!=(h&128););b+=m}return f},void 0);
g("jspb.utils.debugBytesToTextFormat",function(a){var b='"';if(a){a=ab(a);for(var c=0;c<a.length;c++)b+="\\x",16>a[c]&&(b+="0"),b+=a[c].toString(16)}return b+'"'},void 0);
g("jspb.utils.debugScalarToTextFormat",function(a){if("string"===typeof a){a=String(a);for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),f=d.charCodeAt(0),h=c+1,m;if(!(m=za[d])){if(!(31<f&&127>f))if(f=d,f in Aa)d=Aa[f];else if(f in za)d=Aa[f]=za[f];else{m=f.charCodeAt(0);if(31<m&&127>m)d=f;else{if(256>m){if(d="\\x",16>m||256<m)d+="0"}else d="\\u",4096>m&&(d+="0");d+=m.toString(16).toUpperCase()}d=Aa[f]=d}m=d}b[h]=m}b.push('"');a=b.join("")}else a=a.toString();return a},void 0);
g("jspb.utils.stringToByteArray",function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);if(255<d)throw Error("Conversion error: string contains codepoint outside of byte range");b[c]=d}return b},void 0);
function ab(a){if(a.constructor===Uint8Array)return a;if(a.constructor===ArrayBuffer)return new Uint8Array(a);if(a.constructor===Array)return new Uint8Array(a);if(a.constructor===String)return Ea(a);if(a instanceof Uint8Array)return new Uint8Array(a.buffer,a.byteOffset,a.byteLength);p("Type not convertible to Uint8Array.");return new Uint8Array(0)}g("jspb.utils.byteSourceToUint8Array",ab,void 0);function I(a,b,c){this.b=null;this.a=this.f=this.h=0;this.v=!1;a&&this.H(a,b,c)}g("jspb.BinaryDecoder",I,void 0);var bb=[];I.getInstanceCacheLength=function(){return bb.length};function cb(a,b,c){if(bb.length){var d=bb.pop();a&&d.H(a,b,c);return d}return new I(a,b,c)}I.alloc=cb;I.prototype.Ca=function(){this.clear();100>bb.length&&bb.push(this)};I.prototype.free=I.prototype.Ca;I.prototype.clone=function(){return cb(this.b,this.h,this.f-this.h)};I.prototype.clone=I.prototype.clone;
I.prototype.clear=function(){this.b=null;this.a=this.f=this.h=0;this.v=!1};I.prototype.clear=I.prototype.clear;I.prototype.Y=function(){return this.b};I.prototype.getBuffer=I.prototype.Y;I.prototype.H=function(a,b,c){this.b=ab(a);this.h=void 0!==b?b:0;this.f=void 0!==c?this.h+c:this.b.length;this.a=this.h};I.prototype.setBlock=I.prototype.H;I.prototype.Db=function(){return this.f};I.prototype.getEnd=I.prototype.Db;I.prototype.setEnd=function(a){this.f=a};I.prototype.setEnd=I.prototype.setEnd;
I.prototype.reset=function(){this.a=this.h};I.prototype.reset=I.prototype.reset;I.prototype.B=function(){return this.a};I.prototype.getCursor=I.prototype.B;I.prototype.Ma=function(a){this.a=a};I.prototype.setCursor=I.prototype.Ma;I.prototype.advance=function(a){this.a+=a;J(this)};I.prototype.advance=I.prototype.advance;I.prototype.ya=function(){return this.a==this.f};I.prototype.atEnd=I.prototype.ya;I.prototype.Qb=function(){return this.a>this.f};I.prototype.pastEnd=I.prototype.Qb;
I.prototype.getError=function(){return this.v||0>this.a||this.a>this.f};I.prototype.getError=I.prototype.getError;I.prototype.w=function(a){for(var b=128,c=0,d=0,f=0;4>f&&128<=b;f++)b=this.b[this.a++],c|=(b&127)<<7*f;128<=b&&(b=this.b[this.a++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(f=0;5>f&&128<=b;f++)b=this.b[this.a++],d|=(b&127)<<7*f+3;if(128>b)return a(c>>>0,d>>>0);p("Failed to read varint, encoding is invalid.");this.v=!0};I.prototype.readSplitVarint64=I.prototype.w;
I.prototype.ea=function(a){return this.w(function(b,c){return Ra(b,c,a)})};I.prototype.readSplitZigzagVarint64=I.prototype.ea;I.prototype.sa=function(a){var b=this.b,c=this.a;this.a+=8;for(var d=0,f=0,h=c+7;h>=c;h--)d=d<<8|b[h],f=f<<8|b[h+4];return a(d,f)};I.prototype.readSplitFixed64=I.prototype.sa;function J(a){a.a>a.f&&p("Read past the end "+a.a+" > "+a.f)}I.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++};I.prototype.skipVarint=I.prototype.kb;
I.prototype.mb=function(a){for(;128<a;)this.a--,a>>>=7;this.a--};I.prototype.unskipVarint=I.prototype.mb;
I.prototype.s=function(){var a=this.b;var b=a[this.a];var c=b&127;if(128>b)return this.a+=1,J(this),c;b=a[this.a+1];c|=(b&127)<<7;if(128>b)return this.a+=2,J(this),c;b=a[this.a+2];c|=(b&127)<<14;if(128>b)return this.a+=3,J(this),c;b=a[this.a+3];c|=(b&127)<<21;if(128>b)return this.a+=4,J(this),c;b=a[this.a+4];c|=(b&15)<<28;if(128>b)return this.a+=5,J(this),c>>>0;this.a+=5;128<=a[this.a++]&&128<=a[this.a++]&&128<=a[this.a++]&&128<=a[this.a++]&&128<=a[this.a++]&&n(!1);J(this);return c};
I.prototype.readUnsignedVarint32=I.prototype.s;I.prototype.da=function(){return~~this.s()};I.prototype.readSignedVarint32=I.prototype.da;I.prototype.O=function(){return this.s().toString()};I.prototype.Ea=function(){return this.da().toString()};I.prototype.readSignedVarint32String=I.prototype.Ea;I.prototype.Ia=function(){var a=this.s();return a>>>1^-(a&1)};I.prototype.readZigzagVarint32=I.prototype.Ia;I.prototype.Ga=function(){return this.w(F)};I.prototype.readUnsignedVarint64=I.prototype.Ga;
I.prototype.Ha=function(){return this.w(H)};I.prototype.readUnsignedVarint64String=I.prototype.Ha;I.prototype.ra=function(){return this.w(G)};I.prototype.readSignedVarint64=I.prototype.ra;I.prototype.Fa=function(){return this.w(Va)};I.prototype.readSignedVarint64String=I.prototype.Fa;I.prototype.Ja=function(){return this.w(Qa)};I.prototype.readZigzagVarint64=I.prototype.Ja;I.prototype.fb=function(){return this.ea(Ua)};I.prototype.readZigzagVarintHash64=I.prototype.fb;I.prototype.Ka=function(){return this.ea(Va)};
I.prototype.readZigzagVarint64String=I.prototype.Ka;I.prototype.Fc=function(){var a=this.b[this.a];this.a+=1;J(this);return a};I.prototype.readUint8=I.prototype.Fc;I.prototype.Dc=function(){var a=this.b[this.a],b=this.b[this.a+1];this.a+=2;J(this);return a<<0|b<<8};I.prototype.readUint16=I.prototype.Dc;I.prototype.m=function(){var a=this.b[this.a],b=this.b[this.a+1],c=this.b[this.a+2],d=this.b[this.a+3];this.a+=4;J(this);return(a<<0|b<<8|c<<16|d<<24)>>>0};I.prototype.readUint32=I.prototype.m;
I.prototype.fa=function(){var a=this.m(),b=this.m();return F(a,b)};I.prototype.readUint64=I.prototype.fa;I.prototype.ga=function(){var a=this.m(),b=this.m();return H(a,b)};I.prototype.readUint64String=I.prototype.ga;I.prototype.Xb=function(){var a=this.b[this.a];this.a+=1;J(this);return a<<24>>24};I.prototype.readInt8=I.prototype.Xb;I.prototype.Vb=function(){var a=this.b[this.a],b=this.b[this.a+1];this.a+=2;J(this);return(a<<0|b<<8)<<16>>16};I.prototype.readInt16=I.prototype.Vb;
I.prototype.P=function(){var a=this.b[this.a],b=this.b[this.a+1],c=this.b[this.a+2],d=this.b[this.a+3];this.a+=4;J(this);return a<<0|b<<8|c<<16|d<<24};I.prototype.readInt32=I.prototype.P;I.prototype.ba=function(){var a=this.m(),b=this.m();return G(a,b)};I.prototype.readInt64=I.prototype.ba;I.prototype.ca=function(){var a=this.m(),b=this.m();return Va(a,b)};I.prototype.readInt64String=I.prototype.ca;I.prototype.aa=function(){var a=this.m();return Sa(a,0)};I.prototype.readFloat=I.prototype.aa;
I.prototype.Z=function(){var a=this.m(),b=this.m();return Ta(a,b)};I.prototype.readDouble=I.prototype.Z;I.prototype.oa=function(){var a=!!this.b[this.a++];J(this);return a};I.prototype.readBool=I.prototype.oa;I.prototype.qa=function(){return this.da()};I.prototype.readEnum=I.prototype.qa;
I.prototype.ta=function(a,b){var c=this.a;this.a+=a;J(this);var d=n(this.b);if(Ka){var f;b?(f=Ia)||(f=Ia=new TextDecoder("utf-8",{fatal:!0})):(f=Ja)||(f=Ja=new TextDecoder("utf-8",{fatal:!1}));var h=c+a;d=0===c&&h===d.length?d:d.subarray(c,h);try{var m=f.decode(d)}catch(ja){if(b){if(void 0===Ha){try{f.decode(new Uint8Array([128]))}catch(Db){}try{f.decode(new Uint8Array([97])),Ha=!0}catch(Db){Ha=!1}}b=!Ha}b&&(Ia=void 0);throw ja;}}else{a=c+a;m=[];for(var t=null,w,D;c<a;)w=d[c++],128>w?m.push(w):224>
w?c>=a?z(b,m):(D=d[c++],194>w||128!==(D&192)?(c--,z(b,m)):(w=(w&31)<<6|D&63,n(128<=w&&2047>=w),m.push(w))):240>w?c>=a-1?z(b,m):(D=d[c++],128!==(D&192)||224===w&&160>D||237===w&&160<=D||128!==((f=d[c++])&192)?(c--,z(b,m)):(w=(w&15)<<12|(D&63)<<6|f&63,n(2048<=w&&65535>=w),n(55296>w||57343<w),m.push(w))):244>=w?c>=a-2?z(b,m):(D=d[c++],128!==(D&192)||0!==(w<<28)+(D-144)>>30||128!==((f=d[c++])&192)||128!==((h=d[c++])&192)?(c--,z(b,m)):(w=(w&7)<<18|(D&63)<<12|(f&63)<<6|h&63,n(65536<=w&&1114111>=w),w-=65536,
m.push((w>>10&1023)+55296,(w&1023)+56320))):z(b,m),8192<=m.length&&(t=Ga(t,m),m.length=0);n(c===a,"expected "+c+" === "+a);m=Ga(t,m)}return m};I.prototype.readString=I.prototype.ta;I.prototype.pa=function(a){if(0>a||this.a+a>this.b.length)return this.v=!0,p("Invalid byte length!"),new Uint8Array(0);var b=this.b.subarray(this.a,this.a+a);this.a+=a;J(this);return b};I.prototype.readBytes=I.prototype.pa;I.prototype.ha=function(){return this.w(Ua)};I.prototype.readVarintHash64=I.prototype.ha;
I.prototype.$=function(){var a=this.b,b=this.a,c=a[b],d=a[b+1],f=a[b+2],h=a[b+3],m=a[b+4],t=a[b+5],w=a[b+6];a=a[b+7];this.a+=8;return String.fromCharCode(c,d,f,h,m,t,w,a)};I.prototype.readFixedHash64=I.prototype.$;n(!0);function K(a,b,c){this.a=cb(a,b,c);this.O=this.a.B();this.b=this.f=-1;this.h=!1;this.v=null}g("jspb.BinaryReader",K,void 0);var L=[];K.clearInstanceCache=function(){L=[]};K.getInstanceCacheLength=function(){return L.length};function db(a,b,c){if(L.length){var d=L.pop();a&&d.a.H(a,b,c);return d}return new K(a,b,c)}K.alloc=db;K.prototype.zb=db;K.prototype.alloc=K.prototype.zb;K.prototype.Ca=function(){this.a.clear();this.b=this.f=-1;this.h=!1;this.v=null;100>L.length&&L.push(this)};
K.prototype.free=K.prototype.Ca;K.prototype.Fb=function(){return this.O};K.prototype.getFieldCursor=K.prototype.Fb;K.prototype.B=function(){return this.a.B()};K.prototype.getCursor=K.prototype.B;K.prototype.Y=function(){return this.a.Y()};K.prototype.getBuffer=K.prototype.Y;K.prototype.Hb=function(){return this.f};K.prototype.getFieldNumber=K.prototype.Hb;K.prototype.Lb=function(){return this.b};K.prototype.getWireType=K.prototype.Lb;K.prototype.Mb=function(){return 2==this.b};
K.prototype.isDelimited=K.prototype.Mb;K.prototype.bb=function(){return 4==this.b};K.prototype.isEndGroup=K.prototype.bb;K.prototype.getError=function(){return this.h||this.a.getError()};K.prototype.getError=K.prototype.getError;K.prototype.H=function(a,b,c){this.a.H(a,b,c);this.b=this.f=-1};K.prototype.setBlock=K.prototype.H;K.prototype.reset=function(){this.a.reset();this.b=this.f=-1};K.prototype.reset=K.prototype.reset;K.prototype.advance=function(a){this.a.advance(a)};K.prototype.advance=K.prototype.advance;
K.prototype.na=function(){if(this.a.ya())return!1;if(this.getError())return p("Decoder hit an error"),!1;this.O=this.a.B();var a=this.a.s(),b=a>>>3;a&=7;if(0!=a&&5!=a&&1!=a&&2!=a&&3!=a&&4!=a)return p("Invalid wire type: %s (at position %s)",a,this.O),this.h=!0,!1;this.f=b;this.b=a;return!0};K.prototype.nextField=K.prototype.na;K.prototype.Oa=function(){this.a.mb(this.f<<3|this.b)};K.prototype.unskipHeader=K.prototype.Oa;
K.prototype.Kc=function(){var a=this.f;for(this.Oa();this.na()&&this.f==a;)this.C();this.a.ya()||this.Oa()};K.prototype.skipMatchingFields=K.prototype.Kc;K.prototype.lb=function(){0!=this.b?(p("Invalid wire type for skipVarintField"),this.C()):this.a.kb()};K.prototype.skipVarintField=K.prototype.lb;K.prototype.gb=function(){if(2!=this.b)p("Invalid wire type for skipDelimitedField"),this.C();else{var a=this.a.s();this.a.advance(a)}};K.prototype.skipDelimitedField=K.prototype.gb;
K.prototype.hb=function(){5!=this.b?(p("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)};K.prototype.skipFixed32Field=K.prototype.hb;K.prototype.ib=function(){1!=this.b?(p("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)};K.prototype.skipFixed64Field=K.prototype.ib;K.prototype.jb=function(){var a=this.f;do{if(!this.na()){p("Unmatched start-group tag: stream EOF");this.h=!0;break}if(4==this.b){this.f!=a&&(p("Unmatched end-group tag"),this.h=!0);break}this.C()}while(1)};
K.prototype.skipGroup=K.prototype.jb;K.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:p("Invalid wire encoding for field.")}};K.prototype.skipField=K.prototype.C;K.prototype.Gc=function(a,b){null===this.v&&(this.v={});n(!this.v[a]);this.v[a]=b};K.prototype.registerReadCallback=K.prototype.Gc;K.prototype.Hc=function(a){n(null!==this.v);a=this.v[a];n(a);return a(this)};
K.prototype.runReadCallback=K.prototype.Hc;K.prototype.Yb=function(a,b){n(2==this.b);var c=this.a.f,d=this.a.s();d=this.a.B()+d;this.a.setEnd(d);b(a,this);this.a.Ma(d);this.a.setEnd(c)};K.prototype.readMessage=K.prototype.Yb;K.prototype.Ub=function(a,b,c){n(3==this.b);n(this.f==a);c(b,this);this.h||4==this.b||(p("Group submessage did not end with an END_GROUP tag"),this.h=!0)};K.prototype.readGroup=K.prototype.Ub;
K.prototype.Gb=function(){n(2==this.b);var a=this.a.s(),b=this.a.B(),c=b+a;a=cb(this.a.Y(),b,a);this.a.Ma(c);return a};K.prototype.getFieldDecoder=K.prototype.Gb;K.prototype.P=function(){n(0==this.b);return this.a.da()};K.prototype.readInt32=K.prototype.P;K.prototype.Wb=function(){n(0==this.b);return this.a.Ea()};K.prototype.readInt32String=K.prototype.Wb;K.prototype.ba=function(){n(0==this.b);return this.a.ra()};K.prototype.readInt64=K.prototype.ba;K.prototype.ca=function(){n(0==this.b);return this.a.Fa()};
K.prototype.readInt64String=K.prototype.ca;K.prototype.m=function(){n(0==this.b);return this.a.s()};K.prototype.readUint32=K.prototype.m;K.prototype.Ec=function(){n(0==this.b);return this.a.O()};K.prototype.readUint32String=K.prototype.Ec;K.prototype.fa=function(){n(0==this.b);return this.a.Ga()};K.prototype.readUint64=K.prototype.fa;K.prototype.ga=function(){n(0==this.b);return this.a.Ha()};K.prototype.readUint64String=K.prototype.ga;K.prototype.zc=function(){n(0==this.b);return this.a.Ia()};
K.prototype.readSint32=K.prototype.zc;K.prototype.Ac=function(){n(0==this.b);return this.a.Ja()};K.prototype.readSint64=K.prototype.Ac;K.prototype.Bc=function(){n(0==this.b);return this.a.Ka()};K.prototype.readSint64String=K.prototype.Bc;K.prototype.Rb=function(){n(5==this.b);return this.a.m()};K.prototype.readFixed32=K.prototype.Rb;K.prototype.Sb=function(){n(1==this.b);return this.a.fa()};K.prototype.readFixed64=K.prototype.Sb;K.prototype.Tb=function(){n(1==this.b);return this.a.ga()};
K.prototype.readFixed64String=K.prototype.Tb;K.prototype.vc=function(){n(5==this.b);return this.a.P()};K.prototype.readSfixed32=K.prototype.vc;K.prototype.wc=function(){n(5==this.b);return this.a.P().toString()};K.prototype.readSfixed32String=K.prototype.wc;K.prototype.xc=function(){n(1==this.b);return this.a.ba()};K.prototype.readSfixed64=K.prototype.xc;K.prototype.yc=function(){n(1==this.b);return this.a.ca()};K.prototype.readSfixed64String=K.prototype.yc;
K.prototype.aa=function(){n(5==this.b);return this.a.aa()};K.prototype.readFloat=K.prototype.aa;K.prototype.Z=function(){n(1==this.b);return this.a.Z()};K.prototype.readDouble=K.prototype.Z;K.prototype.oa=function(){n(0==this.b);return!!this.a.s()};K.prototype.readBool=K.prototype.oa;K.prototype.qa=function(){n(0==this.b);return this.a.ra()};K.prototype.readEnum=K.prototype.qa;K.prototype.ta=function(){n(2==this.b);var a=this.a.s();return this.a.ta(a,!0)};K.prototype.readString=K.prototype.ta;
K.prototype.pa=function(){n(2==this.b);var a=this.a.s();return this.a.pa(a)};K.prototype.readBytes=K.prototype.pa;K.prototype.ha=function(){n(0==this.b);return this.a.ha()};K.prototype.readVarintHash64=K.prototype.ha;K.prototype.Cc=function(){n(0==this.b);return this.a.fb()};K.prototype.readSintHash64=K.prototype.Cc;K.prototype.w=function(a){n(0==this.b);return this.a.w(a)};K.prototype.readSplitVarint64=K.prototype.w;
K.prototype.ea=function(a){n(0==this.b);return this.a.w(function(b,c){return Ra(b,c,a)})};K.prototype.readSplitZigzagVarint64=K.prototype.ea;K.prototype.$=function(){n(1==this.b);return this.a.$()};K.prototype.readFixedHash64=K.prototype.$;K.prototype.sa=function(a){n(1==this.b);return this.a.sa(a)};K.prototype.readSplitFixed64=K.prototype.sa;function M(a,b){n(2==a.b);var c=a.a.s();c=a.a.B()+c;for(var d=[];a.a.B()<c;)d.push(b.call(a.a));return d}K.prototype.gc=function(){return M(this,this.a.da)};
K.prototype.readPackedInt32=K.prototype.gc;K.prototype.hc=function(){return M(this,this.a.Ea)};K.prototype.readPackedInt32String=K.prototype.hc;K.prototype.ic=function(){return M(this,this.a.ra)};K.prototype.readPackedInt64=K.prototype.ic;K.prototype.jc=function(){return M(this,this.a.Fa)};K.prototype.readPackedInt64String=K.prototype.jc;K.prototype.qc=function(){return M(this,this.a.s)};K.prototype.readPackedUint32=K.prototype.qc;K.prototype.rc=function(){return M(this,this.a.O)};
K.prototype.readPackedUint32String=K.prototype.rc;K.prototype.sc=function(){return M(this,this.a.Ga)};K.prototype.readPackedUint64=K.prototype.sc;K.prototype.tc=function(){return M(this,this.a.Ha)};K.prototype.readPackedUint64String=K.prototype.tc;K.prototype.nc=function(){return M(this,this.a.Ia)};K.prototype.readPackedSint32=K.prototype.nc;K.prototype.oc=function(){return M(this,this.a.Ja)};K.prototype.readPackedSint64=K.prototype.oc;K.prototype.pc=function(){return M(this,this.a.Ka)};
K.prototype.readPackedSint64String=K.prototype.pc;K.prototype.bc=function(){return M(this,this.a.m)};K.prototype.readPackedFixed32=K.prototype.bc;K.prototype.cc=function(){return M(this,this.a.fa)};K.prototype.readPackedFixed64=K.prototype.cc;K.prototype.dc=function(){return M(this,this.a.ga)};K.prototype.readPackedFixed64String=K.prototype.dc;K.prototype.kc=function(){return M(this,this.a.P)};K.prototype.readPackedSfixed32=K.prototype.kc;K.prototype.lc=function(){return M(this,this.a.ba)};
K.prototype.readPackedSfixed64=K.prototype.lc;K.prototype.mc=function(){return M(this,this.a.ca)};K.prototype.readPackedSfixed64String=K.prototype.mc;K.prototype.fc=function(){return M(this,this.a.aa)};K.prototype.readPackedFloat=K.prototype.fc;K.prototype.$b=function(){return M(this,this.a.Z)};K.prototype.readPackedDouble=K.prototype.$b;K.prototype.Zb=function(){return M(this,this.a.oa)};K.prototype.readPackedBool=K.prototype.Zb;K.prototype.ac=function(){return M(this,this.a.qa)};
K.prototype.readPackedEnum=K.prototype.ac;K.prototype.uc=function(){return M(this,this.a.ha)};K.prototype.readPackedVarintHash64=K.prototype.uc;K.prototype.ec=function(){return M(this,this.a.$)};K.prototype.readPackedFixedHash64=K.prototype.ec;function eb(a,b,c,d,f){this.la=a;this.Ba=b;this.ka=c;this.Na=d;this.ma=f}g("jspb.ExtensionFieldInfo",eb,void 0);function fb(a,b,c,d,f,h){this.Za=a;this.za=b;this.Aa=c;this.Wa=d;this.Ab=f;this.Nb=h}g("jspb.ExtensionFieldBinaryInfo",fb,void 0);eb.prototype.F=function(){return!!this.ka};eb.prototype.isMessageType=eb.prototype.F;function N(){}g("jspb.Message",N,void 0);N.GENERATE_TO_OBJECT=!0;N.GENERATE_FROM_OBJECT=!0;var gb="function"==typeof Uint8Array;N.prototype.Ib=function(){return this.b};
N.prototype.getJsPbMessageId=N.prototype.Ib;
N.initialize=function(a,b,c,d,f,h){a.c=null;b||(b=c?[c]:[]);a.b=c?String(c):void 0;a.D=0===c?-1:0;a.u=b;a:{c=a.u.length;b=-1;if(c&&(b=c-1,c=a.u[b],!(null===c||"object"!=typeof c||Array.isArray(c)||gb&&c instanceof Uint8Array))){a.G=b-a.D;a.i=c;break a}-1<d?(a.G=Math.max(d,b+1-a.D),a.i=null):a.G=Number.MAX_VALUE}a.a={};if(f)for(d=0;d<f.length;d++)b=f[d],b<a.G?(b+=a.D,a.u[b]=a.u[b]||hb):(ib(a),a.i[b]=a.i[b]||hb);if(h&&h.length)for(d=0;d<h.length;d++)jb(a,h[d])};
var hb=Object.freeze?Object.freeze([]):[];function ib(a){var b=a.G+a.D;a.u[b]||(a.i=a.u[b]={})}function kb(a,b,c){for(var d=[],f=0;f<a.length;f++)d[f]=b.call(a[f],c,a[f]);return d}N.toObjectList=kb;N.toObjectExtension=function(a,b,c,d,f){for(var h in c){var m=c[h],t=d.call(a,m);if(null!=t){for(var w in m.Ba)if(m.Ba.hasOwnProperty(w))break;b[w]=m.Na?m.ma?kb(t,m.Na,f):m.Na(f,t):t}}};
N.serializeBinaryExtensions=function(a,b,c,d){for(var f in c){var h=c[f],m=h.Za;if(!h.Aa)throw Error("Message extension present that was generated without binary serialization support");var t=d.call(a,m);if(null!=t)if(m.F())if(h.Wa)h.Aa.call(b,m.la,t,h.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else h.Aa.call(b,m.la,t)}};
N.readBinaryExtension=function(a,b,c,d,f){var h=c[b.f];if(h){c=h.Za;if(!h.za)throw Error("Deserializing extension whose generated code does not support binary format");if(c.F()){var m=new c.ka;h.za.call(b,m,h.Ab)}else m=h.za.call(b);c.ma&&!h.Nb?(b=d.call(a,c))?b.push(m):f.call(a,c,[m]):f.call(a,c,m)}else b.C()};function O(a,b){if(b<a.G){b+=a.D;var c=a.u[b];return c===hb?a.u[b]=[]:c}if(a.i)return c=a.i[b],c===hb?a.i[b]=[]:c}N.getField=O;N.getRepeatedField=function(a,b){return O(a,b)};
function lb(a,b){a=O(a,b);return null==a?a:+a}N.getOptionalFloatingPointField=lb;function mb(a,b){a=O(a,b);return null==a?a:!!a}N.getBooleanField=mb;N.getRepeatedFloatingPointField=function(a,b){var c=O(a,b);a.a||(a.a={});if(!a.a[b]){for(var d=0;d<c.length;d++)c[d]=+c[d];a.a[b]=!0}return c};N.getRepeatedBooleanField=function(a,b){var c=O(a,b);a.a||(a.a={});if(!a.a[b]){for(var d=0;d<c.length;d++)c[d]=!!c[d];a.a[b]=!0}return c};
function nb(a){if(null==a||"string"===typeof a)return a;if(gb&&a instanceof Uint8Array)return Ca(a);p("Cannot coerce to b64 string: "+k(a));return null}N.bytesAsB64=nb;function ob(a){if(null==a||a instanceof Uint8Array)return a;if("string"===typeof a)return Ea(a);p("Cannot coerce to Uint8Array: "+k(a));return null}N.bytesAsU8=ob;N.bytesListAsB64=function(a){pb(a);return a.length&&"string"!==typeof a[0]?l(a,nb):a};N.bytesListAsU8=function(a){pb(a);return!a.length||a[0]instanceof Uint8Array?a:l(a,ob)};
function pb(a){if(a&&1<a.length){var b=k(a[0]);ra(a,function(c){k(c)!=b&&p("Inconsistent type in JSPB repeated field array. Got "+k(c)+" expected "+b)})}}function qb(a,b,c){a=O(a,b);return null==a?c:a}N.getFieldWithDefault=qb;N.getBooleanFieldWithDefault=function(a,b,c){a=mb(a,b);return null==a?c:a};N.getFloatingPointFieldWithDefault=function(a,b,c){a=lb(a,b);return null==a?c:a};N.getFieldProto3=qb;
N.getMapField=function(a,b,c,d){a.c||(a.c={});if(b in a.c)return a.c[b];var f=O(a,b);if(!f){if(c)return;f=[];P(a,b,f)}return a.c[b]=new r(f,d)};function P(a,b,c){q(a,N);b<a.G?a.u[b+a.D]=c:(ib(a),a.i[b]=c);return a}N.setField=P;N.setProto3IntField=function(a,b,c){return Q(a,b,c,0)};N.setProto3FloatField=function(a,b,c){return Q(a,b,c,0)};N.setProto3BooleanField=function(a,b,c){return Q(a,b,c,!1)};N.setProto3StringField=function(a,b,c){return Q(a,b,c,"")};
N.setProto3BytesField=function(a,b,c){return Q(a,b,c,"")};N.setProto3EnumField=function(a,b,c){return Q(a,b,c,0)};N.setProto3StringIntField=function(a,b,c){return Q(a,b,c,"0")};function Q(a,b,c,d){q(a,N);c!==d?P(a,b,c):b<a.G?a.u[b+a.D]=null:(ib(a),delete a.i[b]);return a}N.addToRepeatedField=function(a,b,c,d){q(a,N);b=O(a,b);void 0!=d?b.splice(d,0,c):b.push(c);return a};function rb(a,b,c,d){q(a,N);(c=jb(a,c))&&c!==b&&void 0!==d&&(a.c&&c in a.c&&(a.c[c]=void 0),P(a,c,void 0));return P(a,b,d)}
N.setOneofField=rb;function jb(a,b){for(var c,d,f=0;f<b.length;f++){var h=b[f],m=O(a,h);null!=m&&(c=h,d=m,P(a,h,void 0))}return c?(P(a,c,d),c):0}N.computeOneofCase=jb;N.getWrapperField=function(a,b,c,d){a.c||(a.c={});if(!a.c[c]){var f=O(a,c);if(d||f)a.c[c]=new b(f)}return a.c[c]};N.getRepeatedWrapperField=function(a,b,c){sb(a,b,c);b=a.c[c];b==hb&&(b=a.c[c]=[]);return b};function sb(a,b,c){a.c||(a.c={});if(!a.c[c]){for(var d=O(a,c),f=[],h=0;h<d.length;h++)f[h]=new b(d[h]);a.c[c]=f}}
N.setWrapperField=function(a,b,c){q(a,N);a.c||(a.c={});var d=c?c.g():c;a.c[b]=c;return P(a,b,d)};N.setOneofWrapperField=function(a,b,c,d){q(a,N);a.c||(a.c={});var f=d?d.g():d;a.c[b]=d;return rb(a,b,c,f)};N.setRepeatedWrapperField=function(a,b,c){q(a,N);a.c||(a.c={});c=c||[];for(var d=[],f=0;f<c.length;f++)d[f]=c[f].g();a.c[b]=c;return P(a,b,d)};
N.addToRepeatedWrapperField=function(a,b,c,d,f){sb(a,d,b);var h=a.c[b];h||(h=a.c[b]=[]);c=c?c:new d;a=O(a,b);void 0!=f?(h.splice(f,0,c),a.splice(f,0,c.g())):(h.push(c),a.push(c.g()));return c};N.toMap=function(a,b,c,d){for(var f={},h=0;h<a.length;h++)f[b.call(a[h])]=c?c.call(a[h],d,a[h]):a[h];return f};function tb(a){if(a.c)for(var b in a.c){var c=a.c[b];if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&c[d].g();else c&&c.g()}}N.prototype.g=function(){tb(this);return this.u};
N.prototype.toArray=N.prototype.g;N.prototype.toString=function(){tb(this);return this.u.toString()};N.prototype.getExtension=function(a){if(this.i){this.c||(this.c={});var b=a.la;if(a.ma){if(a.F())return this.c[b]||(this.c[b]=l(this.i[b]||[],function(c){return new a.ka(c)})),this.c[b]}else if(a.F())return!this.c[b]&&this.i[b]&&(this.c[b]=new a.ka(this.i[b])),this.c[b];return this.i[b]}};N.prototype.getExtension=N.prototype.getExtension;
N.prototype.Jc=function(a,b){this.c||(this.c={});ib(this);var c=a.la;a.ma?(b=b||[],a.F()?(this.c[c]=b,this.i[c]=l(b,function(d){return d.g()})):this.i[c]=b):a.F()?(this.c[c]=b,this.i[c]=b?b.g():b):this.i[c]=b;return this};N.prototype.setExtension=N.prototype.Jc;N.difference=function(a,b){if(!(a instanceof b.constructor))throw Error("Messages have different types.");var c=a.g();b=b.g();var d=[],f=0,h=c.length>b.length?c.length:b.length;a.b&&(d[0]=a.b,f=1);for(;f<h;f++)ub(c[f],b[f])||(d[f]=b[f]);return new a.constructor(d)};
N.equals=function(a,b){return a==b||!(!a||!b)&&a instanceof b.constructor&&ub(a.g(),b.g())};function vb(a,b){a=a||{};b=b||{};var c={},d;for(d in a)c[d]=0;for(d in b)c[d]=0;for(d in c)if(!ub(a[d],b[d]))return!1;return!0}N.compareExtensions=vb;
function ub(a,b){if(a==b)return!0;if(!ma(a)||!ma(b))return"number"===typeof a&&isNaN(a)||"number"===typeof b&&isNaN(b)?String(a)==String(b):!1;if(a.constructor!=b.constructor)return!1;if(gb&&a.constructor===Uint8Array){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}if(a.constructor===Array){var d=void 0,f=void 0,h=Math.max(a.length,b.length);for(c=0;c<h;c++){var m=a[c],t=b[c];m&&m.constructor==Object&&(n(void 0===d),n(c===a.length-1),d=m,m=void 0);t&&t.constructor==
Object&&(n(void 0===f),n(c===b.length-1),f=t,t=void 0);if(!ub(m,t))return!1}return d||f?(d=d||{},f=f||{},vb(d,f)):!0}if(a.constructor===Object)return vb(a,b);throw Error("Invalid type in JSPB array");}N.compareFields=ub;N.prototype.Bb=function(){return wb(this)};N.prototype.cloneMessage=N.prototype.Bb;N.prototype.clone=function(){return wb(this)};N.prototype.clone=N.prototype.clone;N.clone=function(a){return wb(a)};function wb(a){return new a.constructor(xb(a.g()))}
N.copyInto=function(a,b){q(a,N);q(b,N);n(a.constructor==b.constructor,"Copy source and target message should have the same type.");a=wb(a);for(var c=b.g(),d=a.g(),f=c.length=0;f<d.length;f++)c[f]=d[f];b.c=a.c;b.i=a.i};function xb(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?xb(n(d)):d)}return b}if(gb&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?xb(n(d)):d);return b}
N.registerMessageType=function(a,b){b.ve=a};var R={dump:function(a){q(a,N,"jspb.Message instance expected");n(a.getExtension,"Only unobfuscated and unoptimized compilation modes supported.");return R.X(a)}};g("jspb.debug.dump",R.dump,void 0);
R.X=function(a){var b=k(a);if("number"==b||"string"==b||"boolean"==b||"null"==b||"undefined"==b||"undefined"!==typeof Uint8Array&&a instanceof Uint8Array)return a;if("array"==b)return va(a),l(a,R.X);if(a instanceof r){var c={};a=a.entries();for(var d=a.next();!d.done;d=a.next())c[d.value[0]]=R.X(d.value[1]);return c}q(a,N,"Only messages expected: "+a);b=a.constructor;var f={$name:b.name||b.displayName};for(t in b.prototype){var h=/^get([A-Z]\w*)/.exec(t);if(h&&"getExtension"!=t&&"getJsPbMessageId"!=
t){var m="has"+h[1];if(!a[m]||a[m]())m=a[t](),f[R.$a(h[1])]=R.X(m)}}if(a.extensionObject_)return f.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",f;for(d in b.extensions)if(/^\d+$/.test(d)){m=b.extensions[d];var t=a.getExtension(m);h=void 0;m=m.Ba;var w=[],D=0;for(h in m)w[D++]=h;h=w[0];null!=t&&(c||(c=f.$extensions={}),c[R.$a(h)]=R.X(t))}return f};R.$a=function(a){return a.replace(/^[A-Z]/,function(b){return b.toLowerCase()})};function S(){this.a=[]}g("jspb.BinaryEncoder",S,void 0);S.prototype.length=function(){return this.a.length};S.prototype.length=S.prototype.length;S.prototype.end=function(){var a=this.a;this.a=[];return a};S.prototype.end=S.prototype.end;S.prototype.l=function(a,b){n(a==Math.floor(a));n(b==Math.floor(b));n(0<=a&&4294967296>a);for(n(0<=b&&4294967296>b);0<b||127<a;)this.a.push(a&127|128),a=(a>>>7|b<<25)>>>0,b>>>=7;this.a.push(a)};S.prototype.writeSplitVarint64=S.prototype.l;
S.prototype.A=function(a,b){n(a==Math.floor(a));n(b==Math.floor(b));n(0<=a&&4294967296>a);n(0<=b&&4294967296>b);this.o(a);this.o(b)};S.prototype.writeSplitFixed64=S.prototype.A;S.prototype.j=function(a){n(a==Math.floor(a));for(n(0<=a&&4294967296>a);127<a;)this.a.push(a&127|128),a>>>=7;this.a.push(a)};S.prototype.writeUnsignedVarint32=S.prototype.j;S.prototype.M=function(a){n(a==Math.floor(a));n(-2147483648<=a&&2147483648>a);if(0<=a)this.j(a);else{for(var b=0;9>b;b++)this.a.push(a&127|128),a>>=7;this.a.push(1)}};
S.prototype.writeSignedVarint32=S.prototype.M;S.prototype.va=function(a){n(a==Math.floor(a));n(0<=a&&1.8446744073709552E19>a);C(a);this.l(A,B)};S.prototype.writeUnsignedVarint64=S.prototype.va;S.prototype.ua=function(a){n(a==Math.floor(a));n(-9223372036854775808<=a&&0x7fffffffffffffff>a);C(a);this.l(A,B)};S.prototype.writeSignedVarint64=S.prototype.ua;S.prototype.wa=function(a){n(a==Math.floor(a));n(-2147483648<=a&&2147483648>a);this.j((a<<1^a>>31)>>>0)};S.prototype.writeZigzagVarint32=S.prototype.wa;
S.prototype.xa=function(a){n(a==Math.floor(a));n(-9223372036854775808<=a&&0x7fffffffffffffff>a);Ma(a);this.l(A,B)};S.prototype.writeZigzagVarint64=S.prototype.xa;S.prototype.Ta=function(a){this.W(Xa(a))};S.prototype.writeZigzagVarint64String=S.prototype.Ta;S.prototype.W=function(a){var b=this;E(a);Pa(A,B,function(c,d){b.l(c>>>0,d>>>0)})};S.prototype.writeZigzagVarintHash64=S.prototype.W;S.prototype.ae=function(a){n(a==Math.floor(a));n(0<=a&&256>a);this.a.push(a>>>0&255)};S.prototype.writeUint8=S.prototype.ae;
S.prototype.$d=function(a){n(a==Math.floor(a));n(0<=a&&65536>a);this.a.push(a>>>0&255);this.a.push(a>>>8&255)};S.prototype.writeUint16=S.prototype.$d;S.prototype.o=function(a){n(a==Math.floor(a));n(0<=a&&4294967296>a);this.a.push(a>>>0&255);this.a.push(a>>>8&255);this.a.push(a>>>16&255);this.a.push(a>>>24&255)};S.prototype.writeUint32=S.prototype.o;S.prototype.V=function(a){n(a==Math.floor(a));n(0<=a&&1.8446744073709552E19>a);La(a);this.o(A);this.o(B)};S.prototype.writeUint64=S.prototype.V;
S.prototype.Pc=function(a){n(a==Math.floor(a));n(-128<=a&&128>a);this.a.push(a>>>0&255)};S.prototype.writeInt8=S.prototype.Pc;S.prototype.Oc=function(a){n(a==Math.floor(a));n(-32768<=a&&32768>a);this.a.push(a>>>0&255);this.a.push(a>>>8&255)};S.prototype.writeInt16=S.prototype.Oc;S.prototype.S=function(a){n(a==Math.floor(a));n(-2147483648<=a&&2147483648>a);this.a.push(a>>>0&255);this.a.push(a>>>8&255);this.a.push(a>>>16&255);this.a.push(a>>>24&255)};S.prototype.writeInt32=S.prototype.S;
S.prototype.T=function(a){n(a==Math.floor(a));n(-9223372036854775808<=a&&0x7fffffffffffffff>a);C(a);this.A(A,B)};S.prototype.writeInt64=S.prototype.T;S.prototype.ja=function(a){n(a==Math.floor(a));n(-9223372036854775808<=+a&&0x7fffffffffffffff>+a);E(Xa(a));this.A(A,B)};S.prototype.writeInt64String=S.prototype.ja;S.prototype.L=function(a){n(Infinity===a||-Infinity===a||isNaN(a)||-3.4028234663852886E38<=a&&3.4028234663852886E38>=a);Na(a);this.o(A)};S.prototype.writeFloat=S.prototype.L;
S.prototype.J=function(a){n(Infinity===a||-Infinity===a||isNaN(a)||-1.7976931348623157E308<=a&&1.7976931348623157E308>=a);Oa(a);this.o(A);this.o(B)};S.prototype.writeDouble=S.prototype.J;S.prototype.I=function(a){n("boolean"===typeof a||"number"===typeof a);this.a.push(a?1:0)};S.prototype.writeBool=S.prototype.I;S.prototype.R=function(a){n(a==Math.floor(a));n(-2147483648<=a&&2147483648>a);this.M(a)};S.prototype.writeEnum=S.prototype.R;S.prototype.ia=function(a){this.a.push.apply(this.a,a)};
S.prototype.writeBytes=S.prototype.ia;S.prototype.N=function(a){E(a);this.l(A,B)};S.prototype.writeVarintHash64=S.prototype.N;S.prototype.K=function(a){E(a);this.o(A);this.o(B)};S.prototype.writeFixedHash64=S.prototype.K;
S.prototype.U=function(a){var b=this.a.length;ua(a);for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);if(128>d)this.a.push(d);else if(2048>d)this.a.push(d>>6|192),this.a.push(d&63|128);else if(65536>d)if(55296<=d&&56319>=d&&c+1<a.length){var f=a.charCodeAt(c+1);56320<=f&&57343>=f&&(d=1024*(d-55296)+f-56320+65536,this.a.push(d>>18|240),this.a.push(d>>12&63|128),this.a.push(d>>6&63|128),this.a.push(d&63|128),c++)}else this.a.push(d>>12|224),this.a.push(d>>6&63|128),this.a.push(d&63|128)}return this.a.length-
b};S.prototype.writeString=S.prototype.U;function T(a,b){this.lo=a;this.hi=b}g("jspb.arith.UInt64",T,void 0);T.prototype.cmp=function(a){return this.hi<a.hi||this.hi==a.hi&&this.lo<a.lo?-1:this.hi==a.hi&&this.lo==a.lo?0:1};T.prototype.cmp=T.prototype.cmp;T.prototype.La=function(){return new T((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)};T.prototype.rightShift=T.prototype.La;T.prototype.Da=function(){return new T(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)};T.prototype.leftShift=T.prototype.Da;
T.prototype.cb=function(){return!!(this.hi&2147483648)};T.prototype.msb=T.prototype.cb;T.prototype.Ob=function(){return!!(this.lo&1)};T.prototype.lsb=T.prototype.Ob;T.prototype.Ua=function(){return 0==this.lo&&0==this.hi};T.prototype.zero=T.prototype.Ua;T.prototype.add=function(a){return new T((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};T.prototype.add=T.prototype.add;
T.prototype.sub=function(a){return new T((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};T.prototype.sub=T.prototype.sub;function yb(a,b){var c=a&65535;a>>>=16;var d=b&65535,f=b>>>16;b=c*d+65536*(c*f&65535)+65536*(a*d&65535);for(c=a*f+(c*f>>>16)+(a*d>>>16);4294967296<=b;)b-=4294967296,c+=1;return new T(b>>>0,c>>>0)}T.mul32x32=yb;T.prototype.eb=function(a){var b=yb(this.lo,a);a=yb(this.hi,a);a.hi=a.lo;a.lo=0;return b.add(a)};T.prototype.mul=T.prototype.eb;
T.prototype.Xa=function(a){if(0==a)return[];var b=new T(0,0),c=new T(this.lo,this.hi);a=new T(a,0);for(var d=new T(1,0);!a.cb();)a=a.Da(),d=d.Da();for(;!d.Ua();)0>=a.cmp(c)&&(b=b.add(d),c=c.sub(a)),a=a.La(),d=d.La();return[b,c]};T.prototype.div=T.prototype.Xa;T.prototype.toString=function(){for(var a="",b=this;!b.Ua();){b=b.Xa(10);var c=b[0];a=b[1].lo+a;b=c}""==a&&(a="0");return a};T.prototype.toString=T.prototype.toString;
function U(a){for(var b=new T(0,0),c=new T(0,0),d=0;d<a.length;d++){if("0">a[d]||"9"<a[d])return null;c.lo=parseInt(a[d],10);b=b.eb(10).add(c)}return b}T.fromString=U;T.prototype.clone=function(){return new T(this.lo,this.hi)};T.prototype.clone=T.prototype.clone;function V(a,b){this.lo=a;this.hi=b}g("jspb.arith.Int64",V,void 0);V.prototype.add=function(a){return new V((this.lo+a.lo&4294967295)>>>0>>>0,((this.hi+a.hi&4294967295)>>>0)+(4294967296<=this.lo+a.lo?1:0)>>>0)};V.prototype.add=V.prototype.add;
V.prototype.sub=function(a){return new V((this.lo-a.lo&4294967295)>>>0>>>0,((this.hi-a.hi&4294967295)>>>0)-(0>this.lo-a.lo?1:0)>>>0)};V.prototype.sub=V.prototype.sub;V.prototype.clone=function(){return new V(this.lo,this.hi)};V.prototype.clone=V.prototype.clone;V.prototype.toString=function(){var a=0!=(this.hi&2147483648),b=new T(this.lo,this.hi);a&&(b=(new T(0,0)).sub(b));return(a?"-":"")+b.toString()};V.prototype.toString=V.prototype.toString;
function zb(a){var b=0<a.length&&"-"==a[0];b&&(a=a.substring(1));a=U(a);if(null===a)return null;b&&(a=(new T(0,0)).sub(a));return new V(a.lo,a.hi)}V.fromString=zb;function W(){this.f=[];this.b=0;this.a=new S;this.h=[]}g("jspb.BinaryWriter",W,void 0);function Ab(a,b){var c=a.a.end();a.f.push(c);a.f.push(b);a.b+=c.length+b.length}function X(a,b){Y(a,b,2);b=a.a.end();a.f.push(b);a.b+=b.length;b.push(a.b);return b}function Z(a,b){var c=b.pop();c=a.b+a.a.length()-c;for(n(0<=c);127<c;)b.push(c&127|128),c>>>=7,a.b++;b.push(c);a.b++}W.prototype.pb=function(a,b,c){Ab(this,a.subarray(b,c))};W.prototype.writeSerializedMessage=W.prototype.pb;
W.prototype.Pb=function(a,b,c){null!=a&&null!=b&&null!=c&&this.pb(a,b,c)};W.prototype.maybeWriteSerializedMessage=W.prototype.Pb;W.prototype.reset=function(){this.f=[];this.a.end();this.b=0;this.h=[]};W.prototype.reset=W.prototype.reset;W.prototype.ab=function(){n(0==this.h.length);for(var a=new Uint8Array(this.b+this.a.length()),b=this.f,c=b.length,d=0,f=0;f<c;f++){var h=b[f];a.set(h,d);d+=h.length}b=this.a.end();a.set(b,d);d+=b.length;n(d==a.length);this.f=[a];return a};
W.prototype.getResultBuffer=W.prototype.ab;W.prototype.Kb=function(a){return Ca(this.ab(),a)};W.prototype.getResultBase64String=W.prototype.Kb;W.prototype.Va=function(a){this.h.push(X(this,a))};W.prototype.beginSubMessage=W.prototype.Va;W.prototype.Ya=function(){n(0<=this.h.length);Z(this,this.h.pop())};W.prototype.endSubMessage=W.prototype.Ya;function Y(a,b,c){n(1<=b&&b==Math.floor(b));a.a.j(8*b+c)}
W.prototype.Mc=function(a,b,c){switch(a){case 1:this.J(b,c);break;case 2:this.L(b,c);break;case 3:this.T(b,c);break;case 4:this.V(b,c);break;case 5:this.S(b,c);break;case 6:this.Qa(b,c);break;case 7:this.Pa(b,c);break;case 8:this.I(b,c);break;case 9:this.U(b,c);break;case 10:p("Group field type not supported in writeAny()");break;case 11:p("Message field type not supported in writeAny()");break;case 12:this.ia(b,c);break;case 13:this.o(b,c);break;case 14:this.R(b,c);break;case 15:this.Ra(b,c);break;
case 16:this.Sa(b,c);break;case 17:this.rb(b,c);break;case 18:this.sb(b,c);break;case 30:this.K(b,c);break;case 31:this.N(b,c);break;default:p("Invalid field type in writeAny()")}};W.prototype.writeAny=W.prototype.Mc;function Bb(a,b,c){null!=c&&(Y(a,b,0),a.a.j(c))}function Cb(a,b,c){null!=c&&(Y(a,b,0),a.a.M(c))}W.prototype.S=function(a,b){null!=b&&(n(-2147483648<=b&&2147483648>b),Cb(this,a,b))};W.prototype.writeInt32=W.prototype.S;
W.prototype.ob=function(a,b){null!=b&&(b=parseInt(b,10),n(-2147483648<=b&&2147483648>b),Cb(this,a,b))};W.prototype.writeInt32String=W.prototype.ob;W.prototype.T=function(a,b){null!=b&&(n(-9223372036854775808<=b&&0x7fffffffffffffff>b),null!=b&&(Y(this,a,0),this.a.ua(b)))};W.prototype.writeInt64=W.prototype.T;W.prototype.ja=function(a,b){null!=b&&(b=zb(b),Y(this,a,0),this.a.l(b.lo,b.hi))};W.prototype.writeInt64String=W.prototype.ja;
W.prototype.o=function(a,b){null!=b&&(n(0<=b&&4294967296>b),Bb(this,a,b))};W.prototype.writeUint32=W.prototype.o;W.prototype.ub=function(a,b){null!=b&&(b=parseInt(b,10),n(0<=b&&4294967296>b),Bb(this,a,b))};W.prototype.writeUint32String=W.prototype.ub;W.prototype.V=function(a,b){null!=b&&(n(0<=b&&1.8446744073709552E19>b),null!=b&&(Y(this,a,0),this.a.va(b)))};W.prototype.writeUint64=W.prototype.V;W.prototype.vb=function(a,b){null!=b&&(b=U(b),Y(this,a,0),this.a.l(b.lo,b.hi))};
W.prototype.writeUint64String=W.prototype.vb;W.prototype.rb=function(a,b){null!=b&&(n(-2147483648<=b&&2147483648>b),null!=b&&(Y(this,a,0),this.a.wa(b)))};W.prototype.writeSint32=W.prototype.rb;W.prototype.sb=function(a,b){null!=b&&(n(-9223372036854775808<=b&&0x7fffffffffffffff>b),null!=b&&(Y(this,a,0),this.a.xa(b)))};W.prototype.writeSint64=W.prototype.sb;W.prototype.Zd=function(a,b){null!=b&&null!=b&&(Y(this,a,0),this.a.W(b))};W.prototype.writeSintHash64=W.prototype.Zd;
W.prototype.Yd=function(a,b){null!=b&&null!=b&&(Y(this,a,0),this.a.Ta(b))};W.prototype.writeSint64String=W.prototype.Yd;W.prototype.Pa=function(a,b){null!=b&&(n(0<=b&&4294967296>b),Y(this,a,5),this.a.o(b))};W.prototype.writeFixed32=W.prototype.Pa;W.prototype.Qa=function(a,b){null!=b&&(n(0<=b&&1.8446744073709552E19>b),Y(this,a,1),this.a.V(b))};W.prototype.writeFixed64=W.prototype.Qa;W.prototype.nb=function(a,b){null!=b&&(b=U(b),Y(this,a,1),this.a.A(b.lo,b.hi))};W.prototype.writeFixed64String=W.prototype.nb;
W.prototype.Ra=function(a,b){null!=b&&(n(-2147483648<=b&&2147483648>b),Y(this,a,5),this.a.S(b))};W.prototype.writeSfixed32=W.prototype.Ra;W.prototype.Sa=function(a,b){null!=b&&(n(-9223372036854775808<=b&&0x7fffffffffffffff>b),Y(this,a,1),this.a.T(b))};W.prototype.writeSfixed64=W.prototype.Sa;W.prototype.qb=function(a,b){null!=b&&(b=zb(b),Y(this,a,1),this.a.A(b.lo,b.hi))};W.prototype.writeSfixed64String=W.prototype.qb;W.prototype.L=function(a,b){null!=b&&(Y(this,a,5),this.a.L(b))};
W.prototype.writeFloat=W.prototype.L;W.prototype.J=function(a,b){null!=b&&(Y(this,a,1),this.a.J(b))};W.prototype.writeDouble=W.prototype.J;W.prototype.I=function(a,b){null!=b&&(n("boolean"===typeof b||"number"===typeof b),Y(this,a,0),this.a.I(b))};W.prototype.writeBool=W.prototype.I;W.prototype.R=function(a,b){null!=b&&(n(-2147483648<=b&&2147483648>b),Y(this,a,0),this.a.M(b))};W.prototype.writeEnum=W.prototype.R;W.prototype.U=function(a,b){null!=b&&(a=X(this,a),this.a.U(b),Z(this,a))};
W.prototype.writeString=W.prototype.U;W.prototype.ia=function(a,b){null!=b&&(b=ab(b),Y(this,a,2),this.a.j(b.length),Ab(this,b))};W.prototype.writeBytes=W.prototype.ia;W.prototype.Qc=function(a,b,c){null!=b&&(a=X(this,a),c(b,this),Z(this,a))};W.prototype.writeMessage=W.prototype.Qc;W.prototype.Rc=function(a,b,c){null!=b&&(Y(this,1,3),Y(this,2,0),this.a.M(a),a=X(this,3),c(b,this),Z(this,a),Y(this,1,4))};W.prototype.writeMessageSet=W.prototype.Rc;
W.prototype.Nc=function(a,b,c){null!=b&&(Y(this,a,3),c(b,this),Y(this,a,4))};W.prototype.writeGroup=W.prototype.Nc;W.prototype.K=function(a,b){null!=b&&(n(8==b.length),Y(this,a,1),this.a.K(b))};W.prototype.writeFixedHash64=W.prototype.K;W.prototype.N=function(a,b){null!=b&&(n(8==b.length),Y(this,a,0),this.a.N(b))};W.prototype.writeVarintHash64=W.prototype.N;W.prototype.A=function(a,b,c){Y(this,a,1);this.a.A(b,c)};W.prototype.writeSplitFixed64=W.prototype.A;
W.prototype.l=function(a,b,c){Y(this,a,0);this.a.l(b,c)};W.prototype.writeSplitVarint64=W.prototype.l;W.prototype.tb=function(a,b,c){Y(this,a,0);var d=this.a;Pa(b,c,function(f,h){d.l(f>>>0,h>>>0)})};W.prototype.writeSplitZigzagVarint64=W.prototype.tb;W.prototype.Dd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)Cb(this,a,b[c])};W.prototype.writeRepeatedInt32=W.prototype.Dd;W.prototype.Ed=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ob(a,b[c])};
W.prototype.writeRepeatedInt32String=W.prototype.Ed;W.prototype.Fd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.ua(d))}};W.prototype.writeRepeatedInt64=W.prototype.Fd;W.prototype.Pd=function(a,b,c,d){if(null!=b)for(var f=0;f<b.length;f++)this.A(a,c(b[f]),d(b[f]))};W.prototype.writeRepeatedSplitFixed64=W.prototype.Pd;W.prototype.Qd=function(a,b,c,d){if(null!=b)for(var f=0;f<b.length;f++)this.l(a,c(b[f]),d(b[f]))};
W.prototype.writeRepeatedSplitVarint64=W.prototype.Qd;W.prototype.Rd=function(a,b,c,d){if(null!=b)for(var f=0;f<b.length;f++)this.tb(a,c(b[f]),d(b[f]))};W.prototype.writeRepeatedSplitZigzagVarint64=W.prototype.Rd;W.prototype.Gd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ja(a,b[c])};W.prototype.writeRepeatedInt64String=W.prototype.Gd;W.prototype.Td=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)Bb(this,a,b[c])};W.prototype.writeRepeatedUint32=W.prototype.Td;
W.prototype.Ud=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ub(a,b[c])};W.prototype.writeRepeatedUint32String=W.prototype.Ud;W.prototype.Vd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.va(d))}};W.prototype.writeRepeatedUint64=W.prototype.Vd;W.prototype.Wd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.vb(a,b[c])};W.prototype.writeRepeatedUint64String=W.prototype.Wd;
W.prototype.Ld=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.wa(d))}};W.prototype.writeRepeatedSint32=W.prototype.Ld;W.prototype.Md=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.xa(d))}};W.prototype.writeRepeatedSint64=W.prototype.Md;W.prototype.Nd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.Ta(d))}};W.prototype.writeRepeatedSint64String=W.prototype.Nd;
W.prototype.Od=function(a,b){if(null!=b)for(var c=0;c<b.length;c++){var d=b[c];null!=d&&(Y(this,a,0),this.a.W(d))}};W.prototype.writeRepeatedSintHash64=W.prototype.Od;W.prototype.xd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Pa(a,b[c])};W.prototype.writeRepeatedFixed32=W.prototype.xd;W.prototype.yd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Qa(a,b[c])};W.prototype.writeRepeatedFixed64=W.prototype.yd;
W.prototype.zd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.nb(a,b[c])};W.prototype.writeRepeatedFixed64String=W.prototype.zd;W.prototype.Id=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Ra(a,b[c])};W.prototype.writeRepeatedSfixed32=W.prototype.Id;W.prototype.Jd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.Sa(a,b[c])};W.prototype.writeRepeatedSfixed64=W.prototype.Jd;W.prototype.Kd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.qb(a,b[c])};
W.prototype.writeRepeatedSfixed64String=W.prototype.Kd;W.prototype.Bd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.L(a,b[c])};W.prototype.writeRepeatedFloat=W.prototype.Bd;W.prototype.vd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.J(a,b[c])};W.prototype.writeRepeatedDouble=W.prototype.vd;W.prototype.td=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.I(a,b[c])};W.prototype.writeRepeatedBool=W.prototype.td;
W.prototype.wd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.R(a,b[c])};W.prototype.writeRepeatedEnum=W.prototype.wd;W.prototype.Sd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.U(a,b[c])};W.prototype.writeRepeatedString=W.prototype.Sd;W.prototype.ud=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.ia(a,b[c])};W.prototype.writeRepeatedBytes=W.prototype.ud;W.prototype.Hd=function(a,b,c){if(null!=b)for(var d=0;d<b.length;d++){var f=X(this,a);c(b[d],this);Z(this,f)}};
W.prototype.writeRepeatedMessage=W.prototype.Hd;W.prototype.Cd=function(a,b,c){if(null!=b)for(var d=0;d<b.length;d++)Y(this,a,3),c(b[d],this),Y(this,a,4)};W.prototype.writeRepeatedGroup=W.prototype.Cd;W.prototype.Ad=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.K(a,b[c])};W.prototype.writeRepeatedFixedHash64=W.prototype.Ad;W.prototype.Xd=function(a,b){if(null!=b)for(var c=0;c<b.length;c++)this.N(a,b[c])};W.prototype.writeRepeatedVarintHash64=W.prototype.Xd;
W.prototype.$c=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.M(b[c]);Z(this,a)}};W.prototype.writePackedInt32=W.prototype.$c;W.prototype.ad=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.M(parseInt(b[c],10));Z(this,a)}};W.prototype.writePackedInt32String=W.prototype.ad;W.prototype.bd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.ua(b[c]);Z(this,a)}};W.prototype.writePackedInt64=W.prototype.bd;
W.prototype.ld=function(a,b,c,d){if(null!=b){a=X(this,a);for(var f=0;f<b.length;f++)this.a.A(c(b[f]),d(b[f]));Z(this,a)}};W.prototype.writePackedSplitFixed64=W.prototype.ld;W.prototype.md=function(a,b,c,d){if(null!=b){a=X(this,a);for(var f=0;f<b.length;f++)this.a.l(c(b[f]),d(b[f]));Z(this,a)}};W.prototype.writePackedSplitVarint64=W.prototype.md;W.prototype.nd=function(a,b,c,d){if(null!=b){a=X(this,a);for(var f=this.a,h=0;h<b.length;h++)Pa(c(b[h]),d(b[h]),function(m,t){f.l(m>>>0,t>>>0)});Z(this,a)}};
W.prototype.writePackedSplitZigzagVarint64=W.prototype.nd;W.prototype.cd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++){var d=zb(b[c]);this.a.l(d.lo,d.hi)}Z(this,a)}};W.prototype.writePackedInt64String=W.prototype.cd;W.prototype.od=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.j(b[c]);Z(this,a)}};W.prototype.writePackedUint32=W.prototype.od;
W.prototype.pd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.j(parseInt(b[c],10));Z(this,a)}};W.prototype.writePackedUint32String=W.prototype.pd;W.prototype.qd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.va(b[c]);Z(this,a)}};W.prototype.writePackedUint64=W.prototype.qd;W.prototype.rd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++){var d=U(b[c]);this.a.l(d.lo,d.hi)}Z(this,a)}};
W.prototype.writePackedUint64String=W.prototype.rd;W.prototype.gd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.wa(b[c]);Z(this,a)}};W.prototype.writePackedSint32=W.prototype.gd;W.prototype.hd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.xa(b[c]);Z(this,a)}};W.prototype.writePackedSint64=W.prototype.hd;W.prototype.jd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.W(Xa(b[c]));Z(this,a)}};
W.prototype.writePackedSint64String=W.prototype.jd;W.prototype.kd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.W(b[c]);Z(this,a)}};W.prototype.writePackedSintHash64=W.prototype.kd;W.prototype.Vc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(4*b.length),a=0;a<b.length;a++)this.a.o(b[a])};W.prototype.writePackedFixed32=W.prototype.Vc;W.prototype.Wc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.V(b[a])};
W.prototype.writePackedFixed64=W.prototype.Wc;W.prototype.Xc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++){var c=U(b[a]);this.a.A(c.lo,c.hi)}};W.prototype.writePackedFixed64String=W.prototype.Xc;W.prototype.dd=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(4*b.length),a=0;a<b.length;a++)this.a.S(b[a])};W.prototype.writePackedSfixed32=W.prototype.dd;
W.prototype.ed=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.T(b[a])};W.prototype.writePackedSfixed64=W.prototype.ed;W.prototype.fd=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.ja(b[a])};W.prototype.writePackedSfixed64String=W.prototype.fd;W.prototype.Zc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(4*b.length),a=0;a<b.length;a++)this.a.L(b[a])};W.prototype.writePackedFloat=W.prototype.Zc;
W.prototype.Tc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.J(b[a])};W.prototype.writePackedDouble=W.prototype.Tc;W.prototype.Sc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(b.length),a=0;a<b.length;a++)this.a.I(b[a])};W.prototype.writePackedBool=W.prototype.Sc;W.prototype.Uc=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.R(b[c]);Z(this,a)}};W.prototype.writePackedEnum=W.prototype.Uc;
W.prototype.Yc=function(a,b){if(null!=b&&b.length)for(Y(this,a,2),this.a.j(8*b.length),a=0;a<b.length;a++)this.a.K(b[a])};W.prototype.writePackedFixedHash64=W.prototype.Yc;W.prototype.sd=function(a,b){if(null!=b&&b.length){a=X(this,a);for(var c=0;c<b.length;c++)this.a.N(b[c]);Z(this,a)}};W.prototype.writePackedVarintHash64=W.prototype.sd;"object"===typeof exports&&(exports.debug=R,exports.Map=r,exports.Message=N,exports.BinaryReader=K,exports.BinaryWriter=W,exports.ExtensionFieldInfo=eb,exports.ExtensionFieldBinaryInfo=fb,exports.exportSymbol=na,exports.inherits=oa,exports.object={extend:qa},exports.typeOf=k);